|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+6XX":function(R,D,i){var y=i("y1pI");function p(x){return y(this.__data__,x)>-1}R.exports=p},"+BJd":function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("6MrE"),v=i.n(x)},"+QRC":function(R,D,i){"use strict";var y=i("E9nw"),p={"text/plain":"Text","text/html":"Url",default:"Text"},x="Copy to clipboard: #{key}, Enter";function v(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=v("message"in d?d.message:x),window.prompt(o,f)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(t):a.removeAllRanges()),e&&document.body.removeChild(e),n()}return u}R.exports=m},"+TT/":function(R,D,i){var y=i("bYtY"),p=i("mFDi"),x=i("OELB"),v=x.parsePercent,m=i("7aKB"),f=y.each,d=["left","right","top","bottom","width","height"],l=[["width","left","right"],["height","top","bottom"]];function o(A,b,w,E,C){var _=0,T=0;E==null&&(E=Infinity),C==null&&(C=Infinity);var S=0;b.eachChild(function(O,I){var F=O.position,P=O.getBoundingRect(),B=b.childAt(I+1),k=B&&B.getBoundingRect(),G,M;if(A==="horizontal"){var j=P.width+(k?-k.x+P.x:0);G=_+j,G>E||O.newline?(_=0,G=j,T+=S+w,S=P.height):S=Math.max(S,P.height)}else{var K=P.height+(k?-k.y+P.y:0);M=T+K,M>C||O.newline?(_+=S+w,T=0,M=K,S=P.width):S=Math.max(S,P.width)}if(O.newline)return;F[0]=_,F[1]=T,A==="horizontal"?_=G+w:T=M+w})}var n=o,t=y.curry(o,"vertical"),a=y.curry(o,"horizontal");function e(A,b,w){var E=b.width,C=b.height,_=v(A.x,E),T=v(A.y,C),S=v(A.x2,E),O=v(A.y2,C);return(isNaN(_)||isNaN(parseFloat(A.x)))&&(_=0),(isNaN(S)||isNaN(parseFloat(A.x2)))&&(S=E),(isNaN(T)||isNaN(parseFloat(A.y)))&&(T=0),(isNaN(O)||isNaN(parseFloat(A.y2)))&&(O=C),w=m.normalizeCssArray(w||0),{width:Math.max(S-_-w[1]-w[3],0),height:Math.max(O-T-w[0]-w[2],0)}}function u(A,b,w){w=m.normalizeCssArray(w||0);var E=b.width,C=b.height,_=v(A.left,E),T=v(A.top,C),S=v(A.right,E),O=v(A.bottom,C),I=v(A.width,E),F=v(A.height,C),P=w[2]+w[0],B=w[1]+w[3],k=A.aspect;isNaN(I)&&(I=E-S-B-_),isNaN(F)&&(F=C-O-P-T),k!=null&&(isNaN(I)&&isNaN(F)&&(k>E/C?I=E*.8:F=C*.8),isNaN(I)&&(I=k*F),isNaN(F)&&(F=I/k)),isNaN(_)&&(_=E-S-I-B),isNaN(T)&&(T=C-O-F-P);switch(A.left||A.right){case"center":_=E/2-I/2-w[3];break;case"right":_=E-I-B;break}switch(A.top||A.bottom){case"middle":case"center":T=C/2-F/2-w[0];break;case"bottom":T=C-F-P;break}_=_||0,T=T||0,isNaN(I)&&(I=E-B-_-(S||0)),isNaN(F)&&(F=C-P-T-(O||0));var G=new p(_+w[3],T+w[0],I,F);return G.margin=w,G}function r(A,b,w,E,C){var _=!C||!C.hv||C.hv[0],T=!C||!C.hv||C.hv[1],S=C&&C.boundingMode||"all";if(!_&&!T)return;var O;if(S==="raw")O=A.type==="group"?new p(0,0,+b.width||0,+b.height||0):A.getBoundingRect();else if(O=A.getBoundingRect(),A.needLocalTransform()){var I=A.getLocalTransform();O=O.clone(),O.applyTransform(I)}b=u(y.defaults({width:O.width,height:O.height},b),w,E);var F=A.position,P=_?b.x-O.x:0,B=T?b.y-O.y:0;A.attr("position",S==="raw"?[P,B]:[F[0]+P,F[1]+B])}function s(A,b){return A[l[b][0]]!=null||A[l[b][1]]!=null&&A[l[b][2]]!=null}function c(A,b,w){!y.isObject(w)&&(w={});var E=w.ignoreSize;!y.isArray(E)&&(E=[E,E]);var C=T(l[0],0),_=T(l[1],1);I(l[0],A,C),I(l[1],A,_);function T(F,P){var B={},k=0,G={},M=0,j=2;if(f(F,function(V){G[V]=A[V]}),f(F,function(V){S(b,V)&&(B[V]=G[V]=b[V]),O(B,V)&&k++,O(G,V)&&M++}),E[P])return O(b,F[1])?G[F[2]]=null:O(b,F[2])&&(G[F[1]]=null),G;if(M===j||!k)return G;if(k>=j)return B;for(var K=0;K<F.length;K++){var z=F[K];if(!S(B,z)&&S(A,z)){B[z]=A[z];break}}return B}function S(F,P){return F.hasOwnProperty(P)}function O(F,P){return F[P]!=null&&F[P]!=="auto"}function I(F,P,B){f(F,function(k){P[k]=B[k]})}}function h(A){return g({},A)}function g(A,b){return b&&A&&f(d,function(w){b.hasOwnProperty(w)&&(A[w]=b[w])}),A}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(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="CalendarOutlined";var n=v.forwardRef(o);D.default=n},"+d4F":function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("y3Yb"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"+eQT":function(R,D,i){"use strict";var y=i("wd/R"),p=i.n(y),x=i("Kwbf"),v={getNow:function(){return p()()},getWeekDay:function(Tr){var qr=Tr.clone().locale("en_US");return qr.weekday()+qr.localeData().firstDayOfWeek()},getYear:function(Tr){return Tr.year()},getMonth:function(Tr){return Tr.month()},getDate:function(Tr){return Tr.date()},getHour:function(Tr){return Tr.hour()},getMinute:function(Tr){return Tr.minute()},getSecond:function(Tr){return Tr.second()},addYear:function(Tr,qr){var Yr=Tr.clone();return Yr.add(qr,"year")},addMonth:function(Tr,qr){var Yr=Tr.clone();return Yr.add(qr,"month")},addDate:function(Tr,qr){var Yr=Tr.clone();return Yr.add(qr,"day")},setYear:function(Tr,qr){var Yr=Tr.clone();return Yr.year(qr)},setMonth:function(Tr,qr){var Yr=Tr.clone();return Yr.month(qr)},setDate:function(Tr,qr){var Yr=Tr.clone();return Yr.date(qr)},setHour:function(Tr,qr){var Yr=Tr.clone();return Yr.hour(qr)},setMinute:function(Tr,qr){var Yr=Tr.clone();return Yr.minute(qr)},setSecond:function(Tr,qr){var Yr=Tr.clone();return Yr.second(qr)},isAfter:function(Tr,qr){return Tr.isAfter(qr)},isValidate:function(Tr){return Tr.isValid()},locale:{getWeekFirstDay:function(Tr){var qr=p()().locale(Tr);return qr.localeData().firstDayOfWeek()},getWeek:function(Tr,qr){var Yr=qr.clone(),Yn=Yr.locale(Tr);return Yn.week()},getShortWeekDays:function(Tr){var qr=p()().locale(Tr);return qr.localeData().weekdaysMin()},getShortMonths:function(Tr){var qr=p()().locale(Tr);return qr.localeData().monthsShort()},format:function(Tr,qr,Yr){var Yn=qr.clone(),dn=Yn.locale(Tr);return dn.format(Yr)},parse:function(Tr,qr,Yr){for(var Yn=[],dn=0;dn<Yr.length;dn+=1){var Gr=Yr[dn],ri=qr;if(Gr.includes("wo")||Gr.includes("Wo")){Gr=Gr.replace(/wo/g,"w").replace(/Wo/g,"W");var rn=Gr.match(/[-YyMmDdHhSsWwGg]+/g),Hn=ri.match(/[-\d]+/g);rn&&Hn?(Gr=rn.join(""),ri=Hn.join("")):Yn.push(Gr.replace(/o/g,""))}var li=p()(ri,Gr,Tr,!0);if(li.isValid())return li}for(var ci=0;ci<Yn.length;ci+=1){var si=p()(qr,Yn[ci],Tr,!1);if(si.isValid())return Object(x.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),si}return null}}},m=v,f=i("pVnL"),d=i.n(f),l=i("q1tI"),o=i.n(l),n=i("2/Rp");function t(ft){return l.createElement(n.a,d()({size:"small",type:"primary"},ft))}var a=i("mr32");function e(ft){return l.createElement(a.a,d()({color:"blue"},ft))}var u=i("lSNA"),r=i.n(u),s=i("lwsE"),c=i.n(s),h=i("W8MJ"),g=i.n(h),A=i("7W2i"),b=i.n(A),w=i("LQ03"),E=i.n(w),C=i("TSYQ"),_=i.n(C),T=i("r/2G"),S=i.n(T),O=i("XzQk"),I=i.n(O),F=i("kbBi"),P=i.n(F),B=i("1OyB"),k=i("vuIU"),G=i("Ji7U"),M=i("LK+K"),j=i("rePB"),K=i("VTBJ"),z=i("ODXe"),V=i("6cGi"),Q=i("U8pU"),X=i("4IlW"),te=l.createContext({}),$=te,le={visibility:"hidden"};function re(ft){var Tr=ft.prefixCls,qr=ft.prevIcon,Yr=qr===void 0?"\u2039":qr,Yn=ft.nextIcon,dn=Yn===void 0?"\u203A":Yn,Gr=ft.superPrevIcon,ri=Gr===void 0?"\xAB":Gr,rn=ft.superNextIcon,Hn=rn===void 0?"\xBB":rn,li=ft.onSuperPrev,ci=ft.onSuperNext,si=ft.onPrev,Ti=ft.onNext,mi=ft.children,vi=l.useContext($),Li=vi.hideNextBtn,ia=vi.hidePrevBtn;return l.createElement("div",{className:Tr},li&&l.createElement("button",{type:"button",onClick:li,tabIndex:-1,className:"".concat(Tr,"-super-prev-btn"),style:ia?le:{}},ri),si&&l.createElement("button",{type:"button",onClick:si,tabIndex:-1,className:"".concat(Tr,"-prev-btn"),style:ia?le:{}},Yr),l.createElement("div",{className:"".concat(Tr,"-view")},mi),Ti&&l.createElement("button",{type:"button",onClick:Ti,tabIndex:-1,className:"".concat(Tr,"-next-btn"),style:Li?le:{}},dn),ci&&l.createElement("button",{type:"button",onClick:ci,tabIndex:-1,className:"".concat(Tr,"-super-next-btn"),style:Li?le:{}},Hn))}var Se=re;function Re(ft){var Tr=l.useContext($),qr=Tr.hideHeader;if(qr)return null;var Yr=ft.prefixCls,Yn=ft.generateConfig,dn=ft.locale,Gr=ft.value,ri=ft.format,rn="".concat(Yr,"-header");return l.createElement(Se,{prefixCls:rn},Gr?Yn.locale.format(dn.locale,Gr,ri):"\xA0")}var Pe=Re,Je=i("YrtM"),Ge=i("KQm4"),ct=new Map;function Ue(ft,Tr,qr){if(ct.get(ft)&&cancelAnimationFrame(ct.get(ft)),qr<=0){ct.set(ft,requestAnimationFrame(function(){ft.scrollTop=Tr}));return}var Yr=Tr-ft.scrollTop,Yn=Yr/qr*10;ct.set(ft,requestAnimationFrame(function(){ft.scrollTop+=Yn,ft.scrollTop!==Tr&&Ue(ft,Tr,qr-10)}))}function ae(ft,Tr){var qr=Tr.onLeftRight,Yr=Tr.onCtrlLeftRight,Yn=Tr.onUpDown,dn=Tr.onPageUpDown,Gr=Tr.onEnter,ri=ft.which,rn=ft.ctrlKey,Hn=ft.metaKey;switch(ri){case X.a.LEFT:if(rn||Hn){if(Yr)return Yr(-1),!0}else if(qr)return qr(-1),!0;break;case X.a.RIGHT:if(rn||Hn){if(Yr)return Yr(1),!0}else if(qr)return qr(1),!0;break;case X.a.UP:if(Yn)return Yn(-1),!0;break;case X.a.DOWN:if(Yn)return Yn(1),!0;break;case X.a.PAGE_UP:if(dn)return dn(-1),!0;break;case X.a.PAGE_DOWN:if(dn)return dn(1),!0;break;case X.a.ENTER:if(Gr)return Gr(),!0;break}return!1}function lt(ft,Tr,qr,Yr){var Yn=ft;if(!Yn)switch(Tr){case"time":Yn=Yr?"hh:mm:ss a":"HH:mm:ss";break;case"week":Yn="gggg-wo";break;case"month":Yn="YYYY-MM";break;case"quarter":Yn="YYYY-[Q]Q";break;case"year":Yn="YYYY";break;default:Yn=qr?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Yn}function pe(ft,Tr){var qr=ft==="time"?8:10;return Math.max(qr,Tr.length)+2}var J=null,Y=new Set;function ee(ft){return!J&&typeof window!="undefined"&&window.addEventListener&&(J=function(qr){Object(Ge.a)(Y).forEach(function(Yr){Yr(qr)})},window.addEventListener("mousedown",J)),Y.add(ft),function(){Y.delete(ft),Y.size===0&&(window.removeEventListener("mousedown",J),J=null)}}var fe=function(Tr){return Tr==="month"||Tr==="date"?"year":Tr},we=function(Tr){return Tr==="date"?"month":Tr},Ce=function(Tr){return Tr==="month"||Tr==="date"?"quarter":Tr},_e=function(Tr){return Tr==="date"?"week":Tr},he={year:fe,month:we,quarter:Ce,week:_e,time:null,date:null};function ye(ft,Tr){return ft.some(function(qr){return qr&&qr.contains(Tr)})}function Le(ft){var Tr=ft.prefixCls,qr=ft.units,Yr=ft.onSelect,Yn=ft.value,dn=ft.active,Gr=ft.hideDisabledOptions,ri="".concat(Tr,"-cell"),rn=l.useContext($),Hn=rn.open,li=l.useRef(null),ci=l.useRef(new Map);return l.useLayoutEffect(function(){var si=ci.current.get(Yn);si&&Hn!==!1&&Ue(li.current,si.offsetTop,120)},[Yn]),l.useLayoutEffect(function(){if(Hn){var si=ci.current.get(Yn);si&&Ue(li.current,si.offsetTop,0)}},[Hn]),l.createElement("ul",{className:_()("".concat(Tr,"-column"),Object(j.a)({},"".concat(Tr,"-column-active"),dn)),ref:li,style:{position:"relative"}},qr.map(function(si){var Ti;return Gr&&si.disabled?null:l.createElement("li",{key:si.value,ref:function(vi){ci.current.set(si.value,vi)},className:_()(ri,(Ti={},Object(j.a)(Ti,"".concat(ri,"-disabled"),si.disabled),Object(j.a)(Ti,"".concat(ri,"-selected"),Yn===si.value),Ti)),onClick:function(){if(si.disabled)return;Yr(si.value)}},l.createElement("div",{className:"".concat(ri,"-inner")},si.label))}))}var tt=Le;function gt(ft,Tr){for(var qr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Yr=String(ft);Yr.length<Tr;)Yr="".concat(qr).concat(ft);return Yr}var at=function(){for(var Tr=arguments.length,qr=new Array(Tr),Yr=0;Yr<Tr;Yr++)qr[Yr]=arguments[Yr];return qr};function Fe(ft){return ft==null?[]:Array.isArray(ft)?ft:[ft]}function mt(ft){var Tr={};return Object.keys(ft).forEach(function(qr){(qr.substr(0,5)==="data-"||qr.substr(0,5)==="aria-"||qr==="role"||qr==="name")&&qr.substr(0,7)!=="data-__"&&(Tr[qr]=ft[qr])}),Tr}function et(ft,Tr){return ft?ft[Tr]:null}function St(ft,Tr,qr){var Yr=[et(ft,0),et(ft,1)];return Yr[qr]=typeof Tr=="function"?Tr(Yr[qr]):Tr,!Yr[0]&&!Yr[1]?null:Yr}function jt(ft,Tr,qr,Yr,Yn){var dn=ft.setHour(Tr,qr);return dn=ft.setMinute(dn,Yr),dn=ft.setSecond(dn,Yn),dn}function Mt(ft,Tr,qr,Yr,Yn,dn){var Gr=Math.floor(ft/Yr)*Yr;if(Gr<ft)return[Gr,60-Yn,60-dn];var ri=Math.floor(Tr/Yn)*Yn;if(ri<Tr)return[Gr,ri,60-dn];var rn=Math.floor(qr/dn)*dn;return[Gr,ri,rn]}function Ot(ft,Tr){if(ft.length!==Tr.length)return!0;for(var qr=0;qr<ft.length;qr+=1)if(ft[qr].disabled!==Tr[qr].disabled)return!0;return!1}function Bt(ft,Tr,qr,Yr){for(var Yn=[],dn=ft;dn<=Tr;dn+=qr)Yn.push({label:gt(dn,2),value:dn,disabled:(Yr||[]).includes(dn)});return Yn}function Ke(ft){var Tr=ft.generateConfig,qr=ft.prefixCls,Yr=ft.operationRef,Yn=ft.activeColumnIndex,dn=ft.value,Gr=ft.showHour,ri=ft.showMinute,rn=ft.showSecond,Hn=ft.use12Hours,li=ft.hourStep,ci=li===void 0?1:li,si=ft.minuteStep,Ti=si===void 0?1:si,mi=ft.secondStep,vi=mi===void 0?1:mi,Li=ft.disabledHours,ia=ft.disabledMinutes,Ki=ft.disabledSeconds,fa=ft.hideDisabledOptions,Ya=ft.onSelect,xa=[],wa="".concat(qr,"-content"),Da="".concat(qr,"-time-panel"),ja,ko=dn?Tr.getHour(dn):-1,ro=dn?Tr.getMinute(dn):-1,pa=dn?Tr.getSecond(dn):-1,Ea=function(Ao,$a,ss,_s){var Fo=dn||Tr.getNow(),il=Math.max(0,$a),Eo=Math.max(0,ss),zo=Math.max(0,_s);return Fo=jt(Tr,Fo,!Hn||!Ao?il:il+12,Eo,zo),Fo},Fa=Bt(0,23,ci,Li&&Li()),Ka=Object(Je.a)(function(){return Fa},Fa,Ot);Hn&&(ja=ko>=12,ko%=12);var lo=l.useMemo(function(){if(!Hn)return[!1,!1];var co=[!0,!0];return Ka.forEach(function(Ao){var $a=Ao.disabled,ss=Ao.value;if($a)return;ss>=12?co[1]=!1:co[0]=!1}),co},[Hn,Ka]),so=Object(z.a)(lo,2),Co=so[0],Lo=so[1],is=l.useMemo(function(){return Hn?Ka.filter(ja?function(co){return co.value>=12}:function(co){return co.value<12}).map(function(co){var Ao=co.value%12,$a=Ao===0?"12":gt(Ao,2);return Object(K.a)(Object(K.a)({},co),{},{label:$a,value:Ao})}):Ka},[Hn,Ka]),cs=Bt(0,59,Ti,ia&&ia(ko)),Rs=Bt(0,59,vi,Ki&&Ki(ko,ro));Yr.current={onUpDown:function(Ao){var $a=xa[Yn];if($a)for(var ss=$a.units.findIndex(function(Eo){return Eo.value===$a.value}),_s=$a.units.length,Fo=1;Fo<_s;Fo+=1){var il=$a.units[(ss+Ao*Fo+_s)%_s];if(il.disabled!==!0){$a.onSelect(il.value);break}}}};function Ko(co,Ao,$a,ss,_s){co!==!1&&xa.push({node:l.cloneElement(Ao,{prefixCls:Da,value:$a,active:Yn===xa.length,onSelect:_s,units:ss,hideDisabledOptions:fa}),onSelect:_s,value:$a,units:ss})}Ko(Gr,l.createElement(tt,{key:"hour"}),ko,is,function(co){Ya(Ea(ja,co,ro,pa),"mouse")}),Ko(ri,l.createElement(tt,{key:"minute"}),ro,cs,function(co){Ya(Ea(ja,ko,co,pa),"mouse")}),Ko(rn,l.createElement(tt,{key:"second"}),pa,Rs,function(co){Ya(Ea(ja,ko,ro,co),"mouse")});var as=-1;return typeof ja=="boolean"&&(as=ja?1:0),Ko(Hn===!0,l.createElement(tt,{key:"12hours"}),as,[{label:"AM",value:0,disabled:Co},{label:"PM",value:1,disabled:Lo}],function(co){Ya(Ea(!!co,ko,ro,pa),"mouse")}),l.createElement("div",{className:wa},xa.map(function(co){var Ao=co.node;return Ao}))}var de=Ke,se=function(Tr){return Tr.filter(function(qr){return qr!==!1}).length};function ut(ft){var Tr=ft.generateConfig,qr=ft.format,Yr=qr===void 0?"HH:mm:ss":qr,Yn=ft.prefixCls,dn=ft.active,Gr=ft.operationRef,ri=ft.showHour,rn=ft.showMinute,Hn=ft.showSecond,li=ft.use12Hours,ci=li===void 0?!1:li,si=ft.onSelect,Ti=ft.value,mi="".concat(Yn,"-time-panel"),vi=l.useRef(),Li=l.useState(-1),ia=Object(z.a)(Li,2),Ki=ia[0],fa=ia[1],Ya=se([ri,rn,Hn,ci]);return Gr.current={onKeyDown:function(wa){return ae(wa,{onLeftRight:function(ja){fa((Ki+ja+Ya)%Ya)},onUpDown:function(ja){Ki===-1?fa(0):vi.current&&vi.current.onUpDown(ja)},onEnter:function(){si(Ti||Tr.getNow(),"key"),fa(-1)}})},onBlur:function(){fa(-1)}},l.createElement("div",{className:_()(mi,Object(j.a)({},"".concat(mi,"-active"),dn))},l.createElement(Pe,Object.assign({},ft,{format:Yr,prefixCls:Yn})),l.createElement(de,Object.assign({},ft,{prefixCls:Yn,activeColumnIndex:Ki,operationRef:vi})))}var qe=ut,me=7;function Wt(ft,Tr){return!ft&&!Tr?!0:!ft||!Tr?!1:void 0}function dr(ft,Tr,qr){var Yr=Wt(Tr,qr);if(typeof Yr=="boolean")return Yr;var Yn=Math.floor(ft.getYear(Tr)/10),dn=Math.floor(ft.getYear(qr)/10);return Yn===dn}function vt(ft,Tr,qr){var Yr=Wt(Tr,qr);return typeof Yr=="boolean"?Yr:ft.getYear(Tr)===ft.getYear(qr)}function rr(ft,Tr){var qr=Math.floor(ft.getMonth(Tr)/3);return qr+1}function ur(ft,Tr,qr){var Yr=Wt(Tr,qr);return typeof Yr=="boolean"?Yr:vt(ft,Tr,qr)&&rr(ft,Tr)===rr(ft,qr)}function mn(ft,Tr,qr){var Yr=Wt(Tr,qr);return typeof Yr=="boolean"?Yr:vt(ft,Tr,qr)&&ft.getMonth(Tr)===ft.getMonth(qr)}function sr(ft,Tr,qr){var Yr=Wt(Tr,qr);return typeof Yr=="boolean"?Yr:ft.getYear(Tr)===ft.getYear(qr)&&ft.getMonth(Tr)===ft.getMonth(qr)&&ft.getDate(Tr)===ft.getDate(qr)}function xr(ft,Tr,qr){var Yr=Wt(Tr,qr);return typeof Yr=="boolean"?Yr:ft.getHour(Tr)===ft.getHour(qr)&&ft.getMinute(Tr)===ft.getMinute(qr)&&ft.getSecond(Tr)===ft.getSecond(qr)}function pr(ft,Tr,qr,Yr){var Yn=Wt(qr,Yr);return typeof Yn=="boolean"?Yn:ft.locale.getWeek(Tr,qr)===ft.locale.getWeek(Tr,Yr)}function Zt(ft,Tr,qr){return sr(ft,Tr,qr)&&xr(ft,Tr,qr)}function Ct(ft,Tr,qr,Yr){return!Tr||!qr||!Yr?!1:!sr(ft,Tr,Yr)&&!sr(ft,qr,Yr)&&ft.isAfter(Yr,Tr)&&ft.isAfter(qr,Yr)}function on(ft,Tr,qr){var Yr=Tr.locale.getWeekFirstDay(ft),Yn=Tr.setDate(qr,1),dn=Tr.getWeekDay(Yn),Gr=Tr.addDate(Yn,Yr-dn);return Tr.getMonth(Gr)===Tr.getMonth(qr)&&Tr.getDate(Gr)>1&&(Gr=Tr.addDate(Gr,-7)),Gr}function Mn(ft,Tr,qr){var Yr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Tr){case"year":return qr.addYear(ft,Yr*10);case"quarter":case"month":return qr.addYear(ft,Yr);default:return qr.addMonth(ft,Yr)}}var Xn=l.createContext({}),oi=Xn;function Ui(ft){var Tr=ft.cellPrefixCls,qr=ft.generateConfig,Yr=ft.rangedValue,Yn=ft.hoverRangedValue,dn=ft.isInView,Gr=ft.isSameCell,ri=ft.offsetCell,rn=ft.today,Hn=ft.value;function li(ci){var si,Ti=ri(ci,-1),mi=ri(ci,1),vi=et(Yr,0),Li=et(Yr,1),ia=et(Yn,0),Ki=et(Yn,1),fa=Ct(qr,ia,Ki,ci);function Ya(ro){return Gr(vi,ro)}function xa(ro){return Gr(Li,ro)}var wa=Gr(ia,ci),Da=Gr(Ki,ci),ja=(fa||Da)&&(!dn(Ti)||xa(Ti)),ko=(fa||wa)&&(!dn(mi)||Ya(mi));return si={},Object(j.a)(si,"".concat(Tr,"-in-view"),dn(ci)),Object(j.a)(si,"".concat(Tr,"-in-range"),Ct(qr,vi,Li,ci)),Object(j.a)(si,"".concat(Tr,"-range-start"),Ya(ci)),Object(j.a)(si,"".concat(Tr,"-range-end"),xa(ci)),Object(j.a)(si,"".concat(Tr,"-range-start-single"),Ya(ci)&&!Li),Object(j.a)(si,"".concat(Tr,"-range-end-single"),xa(ci)&&!vi),Object(j.a)(si,"".concat(Tr,"-range-start-near-hover"),Ya(ci)&&(Gr(Ti,ia)||Ct(qr,ia,Ki,Ti))),Object(j.a)(si,"".concat(Tr,"-range-end-near-hover"),xa(ci)&&(Gr(mi,Ki)||Ct(qr,ia,Ki,mi))),Object(j.a)(si,"".concat(Tr,"-range-hover"),fa),Object(j.a)(si,"".concat(Tr,"-range-hover-start"),wa),Object(j.a)(si,"".concat(Tr,"-range-hover-end"),Da),Object(j.a)(si,"".concat(Tr,"-range-hover-edge-start"),ja),Object(j.a)(si,"".concat(Tr,"-range-hover-edge-end"),ko),Object(j.a)(si,"".concat(Tr,"-range-hover-edge-start-near-range"),ja&&Gr(Ti,Li)),Object(j.a)(si,"".concat(Tr,"-range-hover-edge-end-near-range"),ko&&Gr(mi,vi)),Object(j.a)(si,"".concat(Tr,"-today"),Gr(rn,ci)),Object(j.a)(si,"".concat(Tr,"-selected"),Gr(Hn,ci)),si}return li}function Un(ft){for(var Tr=ft.prefixCls,qr=ft.disabledDate,Yr=ft.onSelect,Yn=ft.rowNum,dn=ft.colNum,Gr=ft.prefixColumn,ri=ft.rowClassName,rn=ft.baseDate,Hn=ft.getCellClassName,li=ft.getCellText,ci=ft.getCellNode,si=ft.getCellDate,Ti=ft.titleCell,mi=ft.headerCells,vi=l.useContext($),Li=vi.onDateMouseEnter,ia=vi.onDateMouseLeave,Ki="".concat(Tr,"-cell"),fa=[],Ya=0;Ya<Yn;Ya+=1){for(var xa=[],wa=void 0,Da=function(ro){var pa=Ya*dn+ro,Ea=si(rn,pa),Fa=qr&&qr(Ea);ro===0&&(wa=Ea,Gr&&xa.push(Gr(wa))),xa.push(l.createElement("td",{key:ro,title:Ti&&Ti(Ea),className:_()(Ki,Object(K.a)(Object(j.a)({},"".concat(Ki,"-disabled"),Fa),Hn(Ea))),onClick:function(){Fa||Yr(Ea)},onMouseEnter:function(){!Fa&&Li&&Li(Ea)},onMouseLeave:function(){!Fa&&ia&&ia(Ea)}},ci?ci(Ea):l.createElement("div",{className:"".concat(Ki,"-inner")},li(Ea))))},ja=0;ja<dn;ja+=1)Da(ja);fa.push(l.createElement("tr",{key:Ya,className:ri&&ri(wa)},xa))}return l.createElement("div",{className:"".concat(Tr,"-body")},l.createElement("table",{className:"".concat(Tr,"-content")},mi&&l.createElement("thead",null,l.createElement("tr",null,mi)),l.createElement("tbody",null,fa)))}function Qn(ft){var Tr=ft.prefixCls,qr=ft.generateConfig,Yr=ft.prefixColumn,Yn=ft.locale,dn=ft.rowCount,Gr=ft.viewDate,ri=ft.value,rn=ft.dateRender,Hn=l.useContext(oi),li=Hn.rangedValue,ci=Hn.hoverRangedValue,si=on(Yn.locale,qr,Gr),Ti="".concat(Tr,"-cell"),mi=qr.locale.getWeekFirstDay(Yn.locale),vi=qr.getNow(),Li=[],ia=Yn.shortWeekDays||(qr.locale.getShortWeekDays?qr.locale.getShortWeekDays(Yn.locale):[]);Yr&&Li.push(l.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Ki=0;Ki<me;Ki+=1)Li.push(l.createElement("th",{key:Ki},ia[(Ki+mi)%me]));var fa=Ui({cellPrefixCls:Ti,today:vi,value:ri,generateConfig:qr,rangedValue:Yr?null:li,hoverRangedValue:Yr?null:ci,isSameCell:function(wa,Da){return sr(qr,wa,Da)},isInView:function(wa){return mn(qr,wa,Gr)},offsetCell:function(wa,Da){return qr.addDate(wa,Da)}}),Ya=rn?function(xa){return rn(xa,vi)}:void 0;return l.createElement(Un,Object.assign({},ft,{rowNum:dn,colNum:me,baseDate:si,getCellNode:Ya,getCellText:qr.getDate,getCellClassName:fa,getCellDate:qr.addDate,titleCell:function(wa){return qr.locale.format(Yn.locale,wa,"YYYY-MM-DD")},headerCells:Li}))}var $t=Qn;function Nt(ft){var Tr=ft.prefixCls,qr=ft.generateConfig,Yr=ft.locale,Yn=ft.viewDate,dn=ft.onNextMonth,Gr=ft.onPrevMonth,ri=ft.onNextYear,rn=ft.onPrevYear,Hn=ft.onYearClick,li=ft.onMonthClick,ci=l.useContext($),si=ci.hideHeader;if(si)return null;var Ti="".concat(Tr,"-header"),mi=Yr.shortMonths||(qr.locale.getShortMonths?qr.locale.getShortMonths(Yr.locale):[]),vi=qr.getMonth(Yn),Li=l.createElement("button",{type:"button",key:"year",onClick:Hn,tabIndex:-1,className:"".concat(Tr,"-year-btn")},qr.locale.format(Yr.locale,Yn,Yr.yearFormat)),ia=l.createElement("button",{type:"button",key:"month",onClick:li,tabIndex:-1,className:"".concat(Tr,"-month-btn")},Yr.monthFormat?qr.locale.format(Yr.locale,Yn,Yr.monthFormat):mi[vi]),Ki=Yr.monthBeforeYear?[ia,Li]:[Li,ia];return l.createElement(Se,Object.assign({},ft,{prefixCls:Ti,onSuperPrev:rn,onPrev:Gr,onNext:dn,onSuperNext:ri}),Ki)}var Me=Nt,ke=6;function Be(ft){var Tr=ft.prefixCls,qr=ft.panelName,Yr=qr===void 0?"date":qr,Yn=ft.keyboardConfig,dn=ft.active,Gr=ft.operationRef,ri=ft.generateConfig,rn=ft.value,Hn=ft.viewDate,li=ft.onViewDateChange,ci=ft.onPanelChange,si=ft.onSelect,Ti="".concat(Tr,"-").concat(Yr,"-panel");Gr.current={onKeyDown:function(ia){return ae(ia,Object(K.a)({onLeftRight:function(fa){si(ri.addDate(rn||Hn,fa),"key")},onCtrlLeftRight:function(fa){si(ri.addYear(rn||Hn,fa),"key")},onUpDown:function(fa){si(ri.addDate(rn||Hn,fa*me),"key")},onPageUpDown:function(fa){si(ri.addMonth(rn||Hn,fa),"key")}},Yn))}};var mi=function(ia){var Ki=ri.addYear(Hn,ia);li(Ki),ci(null,Ki)},vi=function(ia){var Ki=ri.addMonth(Hn,ia);li(Ki),ci(null,Ki)};return l.createElement("div",{className:_()(Ti,Object(j.a)({},"".concat(Ti,"-active"),dn))},l.createElement(Me,Object.assign({},ft,{prefixCls:Tr,value:rn,viewDate:Hn,onPrevYear:function(){mi(-1)},onNextYear:function(){mi(1)},onPrevMonth:function(){vi(-1)},onNextMonth:function(){vi(1)},onMonthClick:function(){ci("month",Hn)},onYearClick:function(){ci("year",Hn)}})),l.createElement($t,Object.assign({},ft,{onSelect:function(ia){return si(ia,"mouse")},prefixCls:Tr,value:rn,viewDate:Hn,rowCount:ke})))}var it=Be;function yt(ft,Tr,qr){if(!qr)return Tr;var Yr=Tr;return Yr=ft.setHour(Yr,ft.getHour(qr)),Yr=ft.setMinute(Yr,ft.getMinute(qr)),Yr=ft.setSecond(Yr,ft.getSecond(qr)),Yr}var Tt=at("date","time");function Yt(ft){var Tr=ft.prefixCls,qr=ft.operationRef,Yr=ft.generateConfig,Yn=ft.value,dn=ft.defaultValue,Gr=ft.disabledTime,ri=ft.showTime,rn=ft.onSelect,Hn="".concat(Tr,"-datetime-panel"),li=l.useState(null),ci=Object(z.a)(li,2),si=ci[0],Ti=ci[1],mi=l.useRef({}),vi=l.useRef({}),Li=Object(Q.a)(ri)==="object"?Object(K.a)({},ri):{};function ia(xa){var wa=Tt.indexOf(si)+xa,Da=Tt[wa]||null;return Da}var Ki=function(wa){vi.current.onBlur&&vi.current.onBlur(wa),Ti(null)};qr.current={onKeyDown:function(wa){if(wa.which===X.a.TAB){var Da=ia(wa.shiftKey?-1:1);return Ti(Da),Da&&wa.preventDefault(),!0}if(si){var ja=si==="date"?mi:vi;return ja.current&&ja.current.onKeyDown&&ja.current.onKeyDown(wa),!0}return[X.a.LEFT,X.a.RIGHT,X.a.UP,X.a.DOWN].includes(wa.which)?(Ti("date"),!0):!1},onBlur:Ki,onClose:Ki};var fa=function(wa,Da){var ja=wa;Da==="date"&&!Yn&&Li.defaultValue?(ja=Yr.setHour(ja,Yr.getHour(Li.defaultValue)),ja=Yr.setMinute(ja,Yr.getMinute(Li.defaultValue)),ja=Yr.setSecond(ja,Yr.getSecond(Li.defaultValue))):Da==="time"&&!Yn&&dn&&(ja=Yr.setYear(ja,Yr.getYear(dn)),ja=Yr.setMonth(ja,Yr.getMonth(dn)),ja=Yr.setDate(ja,Yr.getDate(dn))),rn&&rn(ja,"mouse")},Ya=Gr?Gr(Yn||null):{};return l.createElement("div",{className:_()(Hn,Object(j.a)({},"".concat(Hn,"-active"),si))},l.createElement(it,Object.assign({},ft,{operationRef:mi,active:si==="date",onSelect:function(wa){fa(yt(Yr,wa,ri&&Object(Q.a)(ri)==="object"?ri.defaultValue:null),"date")}})),l.createElement(qe,Object.assign({},ft,{format:void 0},Li,Ya,{defaultValue:void 0,operationRef:vi,active:si==="time",onSelect:function(wa){fa(wa,"time")}})))}var Pr=Yt;function $r(ft){var Tr=ft.prefixCls,qr=ft.generateConfig,Yr=ft.locale,Yn=ft.value,dn="".concat(Tr,"-cell"),Gr=function(li){return l.createElement("td",{key:"week",className:_()(dn,"".concat(dn,"-week"))},qr.locale.getWeek(Yr.locale,li))},ri="".concat(Tr,"-week-panel-row"),rn=function(li){return _()(ri,Object(j.a)({},"".concat(ri,"-selected"),pr(qr,Yr.locale,Yn,li)))};return l.createElement(it,Object.assign({},ft,{panelName:"week",prefixColumn:Gr,rowClassName:rn,keyboardConfig:{onLeftRight:null}}))}var An=$r;function zt(ft){var Tr=ft.prefixCls,qr=ft.generateConfig,Yr=ft.locale,Yn=ft.viewDate,dn=ft.onNextYear,Gr=ft.onPrevYear,ri=ft.onYearClick,rn=l.useContext($),Hn=rn.hideHeader;if(Hn)return null;var li="".concat(Tr,"-header");return l.createElement(Se,Object.assign({},ft,{prefixCls:li,onSuperPrev:Gr,onSuperNext:dn}),l.createElement("button",{type:"button",onClick:ri,className:"".concat(Tr,"-year-btn")},qr.locale.format(Yr.locale,Yn,Yr.yearFormat)))}var At=zt,wt=3,vr=4;function Jt(ft){var Tr=ft.prefixCls,qr=ft.locale,Yr=ft.value,Yn=ft.viewDate,dn=ft.generateConfig,Gr=ft.monthCellRender,ri=l.useContext(oi),rn=ri.rangedValue,Hn=ri.hoverRangedValue,li="".concat(Tr,"-cell"),ci=Ui({cellPrefixCls:li,value:Yr,generateConfig:dn,rangedValue:rn,hoverRangedValue:Hn,isSameCell:function(Li,ia){return mn(dn,Li,ia)},isInView:function(){return!0},offsetCell:function(Li,ia){return dn.addMonth(Li,ia)}}),si=qr.shortMonths||(dn.locale.getShortMonths?dn.locale.getShortMonths(qr.locale):[]),Ti=dn.setMonth(Yn,0),mi=Gr?function(vi){return Gr(vi,qr)}:void 0;return l.createElement(Un,Object.assign({},ft,{rowNum:vr,colNum:wt,baseDate:Ti,getCellNode:mi,getCellText:function(Li){return qr.monthFormat?dn.locale.format(qr.locale,Li,qr.monthFormat):si[dn.getMonth(Li)]},getCellClassName:ci,getCellDate:dn.addMonth,titleCell:function(Li){return dn.locale.format(qr.locale,Li,"YYYY-MM")}}))}var Ut=Jt;function tr(ft){var Tr=ft.prefixCls,qr=ft.operationRef,Yr=ft.onViewDateChange,Yn=ft.generateConfig,dn=ft.value,Gr=ft.viewDate,ri=ft.onPanelChange,rn=ft.onSelect,Hn="".concat(Tr,"-month-panel");qr.current={onKeyDown:function(si){return ae(si,{onLeftRight:function(mi){rn(Yn.addMonth(dn||Gr,mi),"key")},onCtrlLeftRight:function(mi){rn(Yn.addYear(dn||Gr,mi),"key")},onUpDown:function(mi){rn(Yn.addMonth(dn||Gr,mi*wt),"key")},onEnter:function(){ri("date",dn||Gr)}})}};var li=function(si){var Ti=Yn.addYear(Gr,si);Yr(Ti),ri(null,Ti)};return l.createElement("div",{className:Hn},l.createElement(At,Object.assign({},ft,{prefixCls:Tr,onPrevYear:function(){li(-1)},onNextYear:function(){li(1)},onYearClick:function(){ri("year",Gr)}})),l.createElement(Ut,Object.assign({},ft,{prefixCls:Tr,onSelect:function(si){rn(si,"mouse"),ri("date",si)}})))}var Ft=tr;function qt(ft){var Tr=ft.prefixCls,qr=ft.generateConfig,Yr=ft.locale,Yn=ft.viewDate,dn=ft.onNextYear,Gr=ft.onPrevYear,ri=ft.onYearClick,rn=l.useContext($),Hn=rn.hideHeader;if(Hn)return null;var li="".concat(Tr,"-header");return l.createElement(Se,Object.assign({},ft,{prefixCls:li,onSuperPrev:Gr,onSuperNext:dn}),l.createElement("button",{type:"button",onClick:ri,className:"".concat(Tr,"-year-btn")},qr.locale.format(Yr.locale,Yn,Yr.yearFormat)))}var Hr=qt,Nr=4,Dr=1;function cn(ft){var Tr=ft.prefixCls,qr=ft.locale,Yr=ft.value,Yn=ft.viewDate,dn=ft.generateConfig,Gr=l.useContext(oi),ri=Gr.rangedValue,rn=Gr.hoverRangedValue,Hn="".concat(Tr,"-cell"),li=Ui({cellPrefixCls:Hn,value:Yr,generateConfig:dn,rangedValue:ri,hoverRangedValue:rn,isSameCell:function(Ti,mi){return ur(dn,Ti,mi)},isInView:function(){return!0},offsetCell:function(Ti,mi){return dn.addMonth(Ti,mi*3)}}),ci=dn.setDate(dn.setMonth(Yn,0),1);return l.createElement(Un,Object.assign({},ft,{rowNum:Dr,colNum:Nr,baseDate:ci,getCellText:function(Ti){return dn.locale.format(qr.locale,Ti,qr.quarterFormat||"[Q]Q")},getCellClassName:li,getCellDate:function(Ti,mi){return dn.addMonth(Ti,mi*3)},titleCell:function(Ti){return dn.locale.format(qr.locale,Ti,"YYYY-[Q]Q")}}))}var vn=cn;function ei(ft){var Tr=ft.prefixCls,qr=ft.operationRef,Yr=ft.onViewDateChange,Yn=ft.generateConfig,dn=ft.value,Gr=ft.viewDate,ri=ft.onPanelChange,rn=ft.onSelect,Hn="".concat(Tr,"-quarter-panel");qr.current={onKeyDown:function(si){return ae(si,{onLeftRight:function(mi){rn(Yn.addMonth(dn||Gr,mi*3),"key")},onCtrlLeftRight:function(mi){rn(Yn.addYear(dn||Gr,mi),"key")},onUpDown:function(mi){rn(Yn.addYear(dn||Gr,mi),"key")}})}};var li=function(si){var Ti=Yn.addYear(Gr,si);Yr(Ti),ri(null,Ti)};return l.createElement("div",{className:Hn},l.createElement(Hr,Object.assign({},ft,{prefixCls:Tr,onPrevYear:function(){li(-1)},onNextYear:function(){li(1)},onYearClick:function(){ri("year",Gr)}})),l.createElement(vn,Object.assign({},ft,{prefixCls:Tr,onSelect:function(si){rn(si,"mouse")}})))}var qn=ei;function fi(ft){var Tr=ft.prefixCls,qr=ft.generateConfig,Yr=ft.viewDate,Yn=ft.onPrevDecade,dn=ft.onNextDecade,Gr=ft.onDecadeClick,ri=l.useContext($),rn=ri.hideHeader;if(rn)return null;var Hn="".concat(Tr,"-header"),li=qr.getYear(Yr),ci=Math.floor(li/He)*He,si=ci+He-1;return l.createElement(Se,Object.assign({},ft,{prefixCls:Hn,onSuperPrev:Yn,onSuperNext:dn}),l.createElement("button",{type:"button",onClick:Gr,className:"".concat(Tr,"-decade-btn")},ci,"-",si))}var xi=fi,Ni=3,Hi=4;function nt(ft){var Tr=ft.prefixCls,qr=ft.value,Yr=ft.viewDate,Yn=ft.locale,dn=ft.generateConfig,Gr=l.useContext(oi),ri=Gr.rangedValue,rn=Gr.hoverRangedValue,Hn="".concat(Tr,"-cell"),li=dn.getYear(Yr),ci=Math.floor(li/He)*He,si=ci+He-1,Ti=dn.setYear(Yr,ci-Math.ceil((Ni*Hi-He)/2)),mi=function(ia){var Ki=dn.getYear(ia);return ci<=Ki&&Ki<=si},vi=Ui({cellPrefixCls:Hn,value:qr,generateConfig:dn,rangedValue:ri,hoverRangedValue:rn,isSameCell:function(ia,Ki){return vt(dn,ia,Ki)},isInView:mi,offsetCell:function(ia,Ki){return dn.addYear(ia,Ki)}});return l.createElement(Un,Object.assign({},ft,{rowNum:Hi,colNum:Ni,baseDate:Ti,getCellText:dn.getYear,getCellClassName:vi,getCellDate:dn.addYear,titleCell:function(ia){return dn.locale.format(Yn.locale,ia,"YYYY")}}))}var Ne=nt,He=10;function Xe(ft){var Tr=ft.prefixCls,qr=ft.operationRef,Yr=ft.onViewDateChange,Yn=ft.generateConfig,dn=ft.value,Gr=ft.viewDate,ri=ft.sourceMode,rn=ft.onSelect,Hn=ft.onPanelChange,li="".concat(Tr,"-year-panel");qr.current={onKeyDown:function(Ti){return ae(Ti,{onLeftRight:function(vi){rn(Yn.addYear(dn||Gr,vi),"key")},onCtrlLeftRight:function(vi){rn(Yn.addYear(dn||Gr,vi*He),"key")},onUpDown:function(vi){rn(Yn.addYear(dn||Gr,vi*Ni),"key")},onEnter:function(){Hn(ri==="date"?"date":"month",dn||Gr)}})}};var ci=function(Ti){var mi=Yn.addYear(Gr,Ti*10);Yr(mi),Hn(null,mi)};return l.createElement("div",{className:li},l.createElement(xi,Object.assign({},ft,{prefixCls:Tr,onPrevDecade:function(){ci(-1)},onNextDecade:function(){ci(1)},onDecadeClick:function(){Hn("decade",Gr)}})),l.createElement(Ne,Object.assign({},ft,{prefixCls:Tr,onSelect:function(Ti){Hn(ri==="date"?"date":"month",Ti),rn(Ti,"mouse")}})))}var rt=Xe;function Ze(ft){var Tr=ft.prefixCls,qr=ft.generateConfig,Yr=ft.viewDate,Yn=ft.onPrevDecades,dn=ft.onNextDecades,Gr=l.useContext($),ri=Gr.hideHeader;if(ri)return null;var rn="".concat(Tr,"-header"),Hn=qr.getYear(Yr),li=Math.floor(Hn/pn)*pn,ci=li+pn-1;return l.createElement(Se,Object.assign({},ft,{prefixCls:rn,onSuperPrev:Yn,onSuperNext:dn}),li,"-",ci)}var st=Ze,xt=3,pt=4;function hr(ft){var Tr=Xr-1,qr=ft.prefixCls,Yr=ft.viewDate,Yn=ft.generateConfig,dn=ft.disabledDate,Gr="".concat(qr,"-cell"),ri=Yn.getYear(Yr),rn=Math.floor(ri/Xr)*Xr,Hn=Math.floor(ri/pn)*pn,li=Hn+pn-1,ci=Yn.setYear(Yr,Hn-Math.ceil((xt*pt*Xr-pn)/2)),si=function(mi){var vi,Li=dn&&dn(mi),ia=Yn.getYear(mi),Ki=ia+Tr;return vi={},Object(j.a)(vi,"".concat(Gr,"-disabled"),Li),Object(j.a)(vi,"".concat(Gr,"-in-view"),Hn<=ia&&Ki<=li),Object(j.a)(vi,"".concat(Gr,"-selected"),ia===rn),vi};return l.createElement(Un,Object.assign({},ft,{rowNum:pt,colNum:xt,baseDate:ci,getCellText:function(mi){var vi=Yn.getYear(mi);return"".concat(vi,"-").concat(vi+Tr)},getCellClassName:si,getCellDate:function(mi,vi){return Yn.addYear(mi,vi*Xr)}}))}var Zr=hr,Xr=10,pn=Xr*10;function gr(ft){var Tr=ft.prefixCls,qr=ft.onViewDateChange,Yr=ft.generateConfig,Yn=ft.viewDate,dn=ft.operationRef,Gr=ft.onSelect,ri=ft.onPanelChange,rn="".concat(Tr,"-decade-panel");dn.current={onKeyDown:function(si){return ae(si,{onLeftRight:function(mi){Gr(Yr.addYear(Yn,mi*Xr),"key")},onCtrlLeftRight:function(mi){Gr(Yr.addYear(Yn,mi*pn),"key")},onUpDown:function(mi){Gr(Yr.addYear(Yn,mi*Xr*xt),"key")},onEnter:function(){ri("year",Yn)}})}};var Hn=function(si){var Ti=Yr.addYear(Yn,si*pn);qr(Ti),ri(null,Ti)},li=function(si){Gr(si,"mouse"),ri("year",si)};return l.createElement("div",{className:rn},l.createElement(st,Object.assign({},ft,{prefixCls:Tr,onPrevDecades:function(){Hn(-1)},onNextDecades:function(){Hn(1)}})),l.createElement(Zr,Object.assign({},ft,{prefixCls:Tr,onSelect:li})))}var Kn=gr;function Rr(ft,Tr,qr){return qr?l.createElement("div",{className:"".concat(ft,"-footer-extra")},qr(Tr)):null}function Pn(ft){var Tr=ft.prefixCls,qr=ft.rangeList,Yr=qr===void 0?[]:qr,Yn=ft.components,dn=Yn===void 0?{}:Yn,Gr=ft.needConfirmButton,ri=ft.onNow,rn=ft.onOk,Hn=ft.okDisabled,li=ft.showNow,ci=ft.locale,si,Ti;if(Yr.length){var mi=dn.rangeItem||"span";si=l.createElement(l.Fragment,null,Yr.map(function(Li){var ia=Li.label,Ki=Li.onClick,fa=Li.onMouseEnter,Ya=Li.onMouseLeave;return l.createElement("li",{key:ia,className:"".concat(Tr,"-preset")},l.createElement(mi,{onClick:Ki,onMouseEnter:fa,onMouseLeave:Ya},ia))}))}if(Gr){var vi=dn.button||"button";ri&&!si&&li!==!1&&(si=l.createElement("li",{className:"".concat(Tr,"-now")},l.createElement("a",{className:"".concat(Tr,"-now-btn"),onClick:ri},ci.now))),Ti=Gr&&l.createElement("li",{className:"".concat(Tr,"-ok")},l.createElement(vi,{disabled:Hn,onClick:rn},ci.ok))}return!si&&!Ti?null:l.createElement("ul",{className:"".concat(Tr,"-ranges")},si,Ti)}function an(ft){var Tr,qr=ft.prefixCls,Yr=qr===void 0?"rc-picker":qr,Yn=ft.className,dn=ft.style,Gr=ft.locale,ri=ft.generateConfig,rn=ft.value,Hn=ft.defaultValue,li=ft.pickerValue,ci=ft.defaultPickerValue,si=ft.disabledDate,Ti=ft.mode,mi=ft.picker,vi=mi===void 0?"date":mi,Li=ft.tabIndex,ia=Li===void 0?0:Li,Ki=ft.showNow,fa=ft.showTime,Ya=ft.showToday,xa=ft.renderExtraFooter,wa=ft.hideHeader,Da=ft.onSelect,ja=ft.onChange,ko=ft.onPanelChange,ro=ft.onMouseDown,pa=ft.onPickerValueChange,Ea=ft.onOk,Fa=ft.components,Ka=ft.direction,lo=ft.hourStep,so=lo===void 0?1:lo,Co=ft.minuteStep,Lo=Co===void 0?1:Co,is=ft.secondStep,cs=is===void 0?1:is,Rs=vi==="date"&&!!fa||vi==="time",Ko=24%so===0,as=60%Lo===0,co=60%cs===0,Ao=l.useContext($),$a=Ao.operationRef,ss=Ao.panelRef,_s=Ao.onSelect,Fo=Ao.hideRanges,il=Ao.defaultOpenValue,Eo=l.useContext(oi),zo=Eo.inRange,Fs=Eo.panelPosition,ms=Eo.rangedValue,hs=Eo.hoverRangedValue,bn=l.useRef({}),Ns=l.useRef(!0),Ll=Object(V.a)(null,{value:rn,defaultValue:Hn,postState:function(gi){return!gi&&il&&vi==="time"?il:gi}}),el=Object(z.a)(Ll,2),Gs=el[0],ds=el[1],ks=Object(V.a)(null,{value:li,defaultValue:ci||Gs,postState:function(gi){return gi||ri.getNow()}}),Qs=Object(z.a)(ks,2),tl=Qs[0],xs=Qs[1],Bs=function(gi){xs(gi),pa&&pa(gi)},al=function(gi){var Qi=he[vi];return Qi?Qi(gi):gi},Js=Object(V.a)(function(){return vi==="time"?"time":al("date")},{value:Ti}),Vo=Object(z.a)(Js,2),No=Vo[0],fs=Vo[1];l.useEffect(function(){fs(vi)},[vi]);var Ds=l.useState(function(){return No}),go=Object(z.a)(Ds,2),Ht=go[0],ar=go[1],In=function(gi,Qi){var sa=al(gi||No);ar(No),fs(sa),ko&&(No!==sa||Zt(ri,tl,tl))&&ko(Qi,sa)},hi=function(gi,Qi){var sa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(No===vi||sa)&&(ds(gi),Da&&Da(gi),_s&&_s(gi,Qi),ja&&!Zt(ri,gi,Gs)&&ja(gi))},Rt=function(gi){return bn.current&&bn.current.onKeyDown?([X.a.LEFT,X.a.RIGHT,X.a.UP,X.a.DOWN,X.a.PAGE_UP,X.a.PAGE_DOWN,X.a.ENTER].includes(gi.which)&&gi.preventDefault(),bn.current.onKeyDown(gi)):(Object(x.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},ce=function(gi){bn.current&&bn.current.onBlur&&bn.current.onBlur(gi)};$a&&Fs!=="right"&&($a.current={onKeyDown:Rt,onClose:function(){bn.current&&bn.current.onClose&&bn.current.onClose()}}),l.useEffect(function(){rn&&!Ns.current&&xs(rn)},[rn]),l.useEffect(function(){Ns.current=!1},[]);var xe,Ie=Object(K.a)(Object(K.a)({},ft),{},{operationRef:bn,prefixCls:Yr,viewDate:tl,value:Gs,onViewDateChange:Bs,sourceMode:Ht,onPanelChange:In,disabledDate:No!=="decade"?si:void 0});delete Ie.onChange,delete Ie.onSelect;switch(No){case"decade":xe=l.createElement(Kn,Object.assign({},Ie,{onSelect:function(gi,Qi){Bs(gi),hi(gi,Qi)}}));break;case"year":xe=l.createElement(rt,Object.assign({},Ie,{onSelect:function(gi,Qi){Bs(gi),hi(gi,Qi)}}));break;case"month":xe=l.createElement(Ft,Object.assign({},Ie,{onSelect:function(gi,Qi){Bs(gi),hi(gi,Qi)}}));break;case"quarter":xe=l.createElement(qn,Object.assign({},Ie,{onSelect:function(gi,Qi){Bs(gi),hi(gi,Qi)}}));break;case"week":xe=l.createElement(An,Object.assign({},Ie,{onSelect:function(gi,Qi){Bs(gi),hi(gi,Qi)}}));break;case"time":delete Ie.showTime,xe=l.createElement(qe,Object.assign({},Ie,Object(Q.a)(fa)==="object"?fa:null,{onSelect:function(gi,Qi){Bs(gi),hi(gi,Qi)}}));break;default:fa?xe=l.createElement(Pr,Object.assign({},Ie,{onSelect:function(gi,Qi){Bs(gi),hi(gi,Qi)}})):xe=l.createElement(it,Object.assign({},Ie,{onSelect:function(gi,Qi){Bs(gi),hi(gi,Qi)}}))}var Qe,kt,or=function(){var gi=ri.getNow(),Qi=Mt(ri.getHour(gi),ri.getMinute(gi),ri.getSecond(gi),Ko?so:1,as?Lo:1,co?cs:1),sa=jt(ri,gi,Qi[0],Qi[1],Qi[2]);hi(sa,"submit")};Fo||(Qe=Rr(Yr,No,xa),kt=Pn({prefixCls:Yr,components:Fa,needConfirmButton:Rs,okDisabled:!Gs||si&&si(Gs),locale:Gr,showNow:Ki,onNow:Rs&&or,onOk:function(){Gs&&(hi(Gs,"submit",!0),Ea&&Ea(Gs))}}));var Qr;if(Ya&&No==="date"&&vi==="date"&&!fa){var fn=ri.getNow(),Ln="".concat(Yr,"-today-btn"),ui=si&&si(fn);Qr=l.createElement("a",{className:_()(Ln,ui&&"".concat(Ln,"-disabled")),"aria-disabled":ui,onClick:function(){ui||hi(fn,"mouse",!0)}},Gr.today)}return l.createElement($.Provider,{value:Object(K.a)(Object(K.a)({},Ao),{},{hideHeader:"hideHeader"in ft?wa:Ao.hideHeader,hidePrevBtn:zo&&Fs==="right",hideNextBtn:zo&&Fs==="left"})},l.createElement("div",{tabIndex:ia,className:_()("".concat(Yr,"-panel"),Yn,(Tr={},Object(j.a)(Tr,"".concat(Yr,"-panel-has-range"),ms&&ms[0]&&ms[1]),Object(j.a)(Tr,"".concat(Yr,"-panel-has-range-hover"),hs&&hs[0]&&hs[1]),Object(j.a)(Tr,"".concat(Yr,"-panel-rtl"),Ka==="rtl"),Tr)),style:dn,onKeyDown:Rt,onBlur:ce,onMouseDown:ro,ref:ss},xe,Qe||kt||Qr?l.createElement("div",{className:"".concat(Yr,"-footer")},Qe,kt,Qr):null))}var Ur=an,ii=i("JX7q"),_i=i("i8i4"),Gi=i.n(_i),tn=i("l4aY"),Tn=i("m+aA"),Vn=i("c+Xe"),Xt=i("zT1h"),It=i("QC+M");function Pt(ft,Tr,qr){return qr?ft[0]===Tr[0]:ft[0]===Tr[0]&&ft[1]===Tr[1]}function Kt(ft,Tr,qr){var Yr=ft[Tr]||{};return Object(K.a)(Object(K.a)({},Yr),qr)}function Gt(ft,Tr,qr,Yr){for(var Yn=qr.points,dn=Object.keys(ft),Gr=0;Gr<dn.length;Gr+=1){var ri=dn[Gr];if(Pt(ft[ri].points,Yn,Yr))return"".concat(Tr,"-placement-").concat(ri)}return""}var Dt=i("Ff2n"),lr=i("xEkU"),Ar=i.n(lr),yr=i("9mu1"),Mr=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function zn(ft,Tr){var qr={};return qr[ft.toLowerCase()]=Tr.toLowerCase(),qr["Webkit".concat(ft)]="webkit".concat(Tr),qr["Moz".concat(ft)]="moz".concat(Tr),qr["ms".concat(ft)]="MS".concat(Tr),qr["O".concat(ft)]="o".concat(Tr.toLowerCase()),qr}function Rn(ft,Tr){var qr={animationend:zn("Animation","AnimationEnd"),transitionend:zn("Transition","TransitionEnd")};return ft&&("AnimationEvent"in Tr||delete qr.animationend.animation,"TransitionEvent"in Tr||delete qr.transitionend.transition),qr}var di=Rn(Mr,typeof window!="undefined"?window:{}),gn={};if(Mr){var Br=document.createElement("div");gn=Br.style}var _n={};function Gn(ft){if(_n[ft])return _n[ft];var Tr=di[ft];if(Tr)for(var qr=Object.keys(Tr),Yr=qr.length,Yn=0;Yn<Yr;Yn+=1){var dn=qr[Yn];if(Object.prototype.hasOwnProperty.call(Tr,dn)&&dn in gn)return _n[ft]=Tr[dn],_n[ft]}return""}var Zn=Gn("animationend"),ai=Gn("transitionend"),Ei=!!(Zn&&ai);function Ri(ft,Tr){if(!ft)return null;if(Object(Q.a)(ft)==="object"){var qr=Tr.replace(/-\w/g,function(Yr){return Yr[1].toUpperCase()});return ft[qr]}return"".concat(ft,"-").concat(Tr)}var Di="none",oa="appear",ma="enter",aa="leave";function ba(ft){var Tr=ft,qr=!!l.forwardRef;Object(Q.a)(ft)==="object"&&(Tr=ft.transitionSupport,qr="forwardRef"in ft?ft.forwardRef:qr);function Yr(dn){return!!(dn.motionName&&Tr)}var Yn=function(dn){Object(G.a)(ri,dn);var Gr=Object(M.a)(ri);function ri(){var rn;return Object(B.a)(this,ri),rn=Gr.apply(this,arguments),rn.$cacheEle=null,rn.node=null,rn.raf=null,rn.destroyed=!1,rn.deadlineId=null,rn.state={status:Di,statusActive:!1,newStatus:!1,statusStyle:null},rn.onDomUpdate=function(){var Hn=rn.state,li=Hn.status,ci=Hn.newStatus,si=rn.props,Ti=si.onAppearStart,mi=si.onEnterStart,vi=si.onLeaveStart,Li=si.onAppearActive,ia=si.onEnterActive,Ki=si.onLeaveActive,fa=si.motionAppear,Ya=si.motionEnter,xa=si.motionLeave;if(!Yr(rn.props))return;var wa=rn.getElement();rn.$cacheEle!==wa&&(rn.removeEventListener(rn.$cacheEle),rn.addEventListener(wa),rn.$cacheEle=wa),ci&&li===oa&&fa?rn.updateStatus(Ti,null,null,function(){rn.updateActiveStatus(Li,oa)}):ci&&li===ma&&Ya?rn.updateStatus(mi,null,null,function(){rn.updateActiveStatus(ia,ma)}):ci&&li===aa&&xa&&rn.updateStatus(vi,null,null,function(){rn.updateActiveStatus(Ki,aa)})},rn.onMotionEnd=function(Hn){if(Hn&&!Hn.deadline&&Hn.target!==rn.getElement())return;var li=rn.state,ci=li.status,si=li.statusActive,Ti=rn.props,mi=Ti.onAppearEnd,vi=Ti.onEnterEnd,Li=Ti.onLeaveEnd;ci===oa&&si?rn.updateStatus(mi,{status:Di},Hn):ci===ma&&si?rn.updateStatus(vi,{status:Di},Hn):ci===aa&&si&&rn.updateStatus(Li,{status:Di},Hn)},rn.setNodeRef=function(Hn){var li=rn.props.internalRef;rn.node=Hn,Object(Vn.b)(li,Hn)},rn.getElement=function(){try{return Object(Tn.a)(rn.node||Object(ii.a)(rn))}catch(Hn){return rn.$cacheEle}},rn.addEventListener=function(Hn){if(!Hn)return;Hn.addEventListener(ai,rn.onMotionEnd),Hn.addEventListener(Zn,rn.onMotionEnd)},rn.removeEventListener=function(Hn){if(!Hn)return;Hn.removeEventListener(ai,rn.onMotionEnd),Hn.removeEventListener(Zn,rn.onMotionEnd)},rn.updateStatus=function(Hn,li,ci,si){var Ti=Hn?Hn(rn.getElement(),ci):null;if(Ti===!1||rn.destroyed)return;var mi;si&&(mi=function(){rn.nextFrame(si)}),rn.setState(Object(K.a)({statusStyle:Object(Q.a)(Ti)==="object"?Ti:null,newStatus:!1},li),mi)},rn.updateActiveStatus=function(Hn,li){rn.nextFrame(function(){var ci=rn.state.status;if(ci!==li)return;var si=rn.props.motionDeadline;rn.updateStatus(Hn,{statusActive:!0}),si>0&&(rn.deadlineId=setTimeout(function(){rn.onMotionEnd({deadline:!0})},si))})},rn.nextFrame=function(Hn){rn.cancelNextFrame(),rn.raf=Ar()(Hn)},rn.cancelNextFrame=function(){rn.raf&&(Ar.a.cancel(rn.raf),rn.raf=null)},rn}return Object(k.a)(ri,[{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 Hn,li=this.state,ci=li.status,si=li.statusActive,Ti=li.statusStyle,mi=this.props,vi=mi.children,Li=mi.motionName,ia=mi.visible,Ki=mi.removeOnLeave,fa=mi.leavedClassName,Ya=mi.eventProps;return vi?ci===Di||!Yr(this.props)?ia?vi(Object(K.a)({},Ya),this.setNodeRef):Ki?null:vi(Object(K.a)(Object(K.a)({},Ya),{},{className:fa}),this.setNodeRef):vi(Object(K.a)(Object(K.a)({},Ya),{},{className:_()(Ri(Li,ci),(Hn={},Object(j.a)(Hn,Ri(Li,"".concat(ci,"-active")),si),Object(j.a)(Hn,Li,typeof Li=="string"),Hn)),style:Ti}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Hn,li){var ci=li.prevProps,si=li.status;if(!Yr(Hn))return{};var Ti=Hn.visible,mi=Hn.motionAppear,vi=Hn.motionEnter,Li=Hn.motionLeave,ia=Hn.motionLeaveImmediately,Ki={prevProps:Hn};return(si===oa&&!mi||si===ma&&!vi||si===aa&&!Li)&&(Ki.status=Di,Ki.statusActive=!1,Ki.newStatus=!1),!ci&&Ti&&mi&&(Ki.status=oa,Ki.statusActive=!1,Ki.newStatus=!0),ci&&!ci.visible&&Ti&&vi&&(Ki.status=ma,Ki.statusActive=!1,Ki.newStatus=!0),(ci&&ci.visible&&!Ti&&Li||!ci&&ia&&!Ti&&Li)&&(Ki.status=aa,Ki.statusActive=!1,Ki.newStatus=!0),Ki}}]),ri}(l.Component);return Yn.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},qr?l.forwardRef(function(dn,Gr){return l.createElement(Yn,Object.assign({internalRef:Gr},dn))}):Yn}var Ai=ba(Ei),Dn="add",Bi="keep",ha="remove",ta="removed";function ra(ft){var Tr;return ft&&Object(Q.a)(ft)==="object"&&"key"in ft?Tr=ft:Tr={key:ft},Object(K.a)(Object(K.a)({},Tr),{},{key:String(Tr.key)})}function Ir(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ft.map(ra)}function Sr(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],qr=[],Yr=0,Yn=Tr.length,dn=Ir(ft),Gr=Ir(Tr);dn.forEach(function(Hn){for(var li=!1,ci=Yr;ci<Yn;ci+=1){var si=Gr[ci];if(si.key===Hn.key){Yr<ci&&(qr=qr.concat(Gr.slice(Yr,ci).map(function(Ti){return Object(K.a)(Object(K.a)({},Ti),{},{status:Dn})})),Yr=ci),qr.push(Object(K.a)(Object(K.a)({},si),{},{status:Bi})),Yr+=1,li=!0;break}}li||qr.push(Object(K.a)(Object(K.a)({},Hn),{},{status:ha}))}),Yr<Yn&&(qr=qr.concat(Gr.slice(Yr).map(function(Hn){return Object(K.a)(Object(K.a)({},Hn),{},{status:Dn})})));var ri={};qr.forEach(function(Hn){var li=Hn.key;ri[li]=(ri[li]||0)+1});var rn=Object.keys(ri).filter(function(Hn){return ri[Hn]>1});return rn.forEach(function(Hn){qr=qr.filter(function(li){var ci=li.key,si=li.status;return ci!==Hn||si!==ha}),qr.forEach(function(li){li.key===Hn&&(li.status=Bi)})}),qr}var En=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fr(ft){var Tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ai,qr=function(Yr){Object(G.a)(dn,Yr);var Yn=Object(M.a)(dn);function dn(){var Gr;return Object(B.a)(this,dn),Gr=Yn.apply(this,arguments),Gr.state={keyEntities:[]},Gr.removeKey=function(ri){Gr.setState(function(rn){var Hn=rn.keyEntities;return{keyEntities:Hn.map(function(li){return li.key!==ri?li:Object(K.a)(Object(K.a)({},li),{},{status:ta})})}})},Gr}return Object(k.a)(dn,[{key:"render",value:function(){var ri=this,rn=this.state.keyEntities,Hn=this.props,li=Hn.component,ci=Hn.children,si=Object(Dt.a)(Hn,["component","children"]),Ti=li||l.Fragment,mi={};return En.forEach(function(vi){mi[vi]=si[vi],delete si[vi]}),delete si.keys,l.createElement(Ti,Object.assign({},si),rn.map(function(vi){var Li=vi.status,ia=Object(Dt.a)(vi,["status"]),Ki=Li===Dn||Li===Bi;return l.createElement(Tr,Object.assign({},mi,{key:ia.key,visible:Ki,eventProps:ia,onLeaveEnd:function(){mi.onLeaveEnd&&mi.onLeaveEnd.apply(mi,arguments),ri.removeKey(ia.key)}}),ci)}))}}],[{key:"getDerivedStateFromProps",value:function(ri,rn){var Hn=ri.keys,li=rn.keyEntities,ci=Ir(Hn);if(!ft)return{keyEntities:ci.map(function(mi){return Object(K.a)(Object(K.a)({},mi),{},{status:Bi})})};var si=Sr(li,ci),Ti=li.length;return{keyEntities:si.filter(function(mi){for(var vi=null,Li=0;Li<Ti;Li+=1){var ia=li[Li];if(ia.key===mi.key){vi=ia;break}}return!(vi&&vi.status===ta&&mi.status===ha)})}}}]),dn}(l.Component);return qr.defaultProps={component:"div"},qr}var kr=fr(Ei),Vr=Ai,un=function(Tr,qr){var Yr=Tr.prefixCls,Yn=Tr.className,dn=Tr.style,Gr=Tr.children,ri=Tr.onMouseEnter,rn=Tr.onMouseLeave,Hn=Tr.onMouseDown,li=Tr.onTouchStart,ci=Gr;return l.Children.count(Gr)>1&&(ci=l.createElement("div",{className:"".concat(Yr,"-content")},Gr)),l.createElement("div",{ref:qr,className:Yn,onMouseEnter:ri,onMouseLeave:rn,onMouseDown:Hn,onTouchStart:li,style:dn},ci)},kn=l.forwardRef(un);kn.displayName="PopupInner";var _t=kn;function Or(ft){var Tr=ft.prefixCls,qr=ft.motion,Yr=ft.animation,Yn=ft.transitionName;return qr||(Yr?{motionName:"".concat(Tr,"-").concat(Yr)}:Yn?{motionName:Yn}:null)}function Lr(ft){return ft&&ft.motionName}var en=function(ft){Object(G.a)(qr,ft);var Tr=Object(M.a)(qr);function qr(){var Yr;return Object(B.a)(this,qr),Yr=Tr.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(Yn,dn){var Gr=Yr.state.status,ri=Yr.props,rn=ri.getClassNameFromAlign,Hn=ri.onAlign,li=rn(dn);Gr==="align"?Yr.setState({alignClassName:li,status:"aligned"},function(){Yr.alignRef.current.forceAlign()}):Gr==="aligned"?(Yr.setState({alignClassName:li,status:"afterAlign"}),Hn(Yn,dn)):Yr.setState({alignClassName:li})},Yr.onMotionEnd=function(){var Yn=Yr.props.visible;Yr.setState({status:Yn?"AfterMotion":"stable",inMotion:!1})},Yr.setStateOnNextFrame=function(Yn){Yr.cancelFrameState(),Yr.nextFrameState=Object(K.a)(Object(K.a)({},Yr.nextFrameState),Yn),Yr.nextFrameId=Ar()(function(){var dn=Object(K.a)({},Yr.nextFrameState);Yr.nextFrameState=null,Yr.setState(dn)})},Yr.getMotion=function(){return Object(K.a)({},Or(Yr.props))},Yr.getAlignTarget=function(){var Yn=Yr.props,dn=Yn.point,Gr=Yn.getRootDomNode;return dn||Gr},Yr.cancelFrameState=function(){Ar.a.cancel(Yr.nextFrameId)},Yr.renderPopupElement=function(){var Yn=Yr.state,dn=Yn.status,Gr=Yn.targetHeight,ri=Yn.targetWidth,rn=Yn.alignClassName,Hn=Yr.props,li=Hn.prefixCls,ci=Hn.className,si=Hn.style,Ti=Hn.stretch,mi=Hn.visible,vi=Hn.align,Li=Hn.destroyPopupOnHide,ia=Hn.onMouseEnter,Ki=Hn.onMouseLeave,fa=Hn.onMouseDown,Ya=Hn.onTouchStart,xa=Hn.children,wa=_()(li,ci,rn),Da="".concat(li,"-hidden"),ja={};Ti&&(Ti.indexOf("height")!==-1?ja.height=Gr:Ti.indexOf("minHeight")!==-1&&(ja.minHeight=Gr),Ti.indexOf("width")!==-1?ja.width=ri:Ti.indexOf("minWidth")!==-1&&(ja.minWidth=ri));var ko=Object(K.a)(Object(K.a)(Object(K.a)(Object(K.a)({},ja),Yr.getZIndexStyle()),si),{},{opacity:dn==="stable"||!mi?void 0:0,pointerEvents:dn==="stable"||!mi?void 0:"none"}),ro=Yr.getMotion(),pa=mi;mi&&dn!=="beforeMotion"&&dn!=="motion"&&dn!=="stable"&&(ro.motionAppear=!1,ro.motionEnter=!1,ro.motionLeave=!1),(dn==="afterAlign"||dn==="beforeMotion")&&(pa=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(Ka){var lo=ro==null?void 0:ro[Ka];ro[Ka]=function(){for(var so=arguments.length,Co=new Array(so),Lo=0;Lo<so;Lo++)Co[Lo]=arguments[Lo];lo==null||lo.apply(void 0,Co),Yr.setState({inMotion:!0})}});var Ea=!mi||dn!=="align"&&dn!=="aligned"&&dn!=="stable",Fa=!0;return dn==="stable"&&(Fa=mi),Li&&!Fa?null:o.a.createElement(Vr,Object.assign({visible:pa},ro,{removeOnLeave:!1,onEnterEnd:Yr.onMotionEnd,onLeaveEnd:Yr.onMotionEnd,leavedClassName:Da}),function(Ka,lo){var so=Ka.style,Co=Ka.className;return o.a.createElement(yr.a,{target:Yr.getAlignTarget(),key:"popup",ref:Yr.alignRef,monitorWindowResize:!0,disabled:Ea,align:vi,onAlign:Yr.onAlign},o.a.createElement(_t,{prefixCls:li,className:_()(wa,Co),ref:Object(Vn.a)(lo,Yr.popupRef),onMouseEnter:ia,onMouseLeave:Ki,onMouseDown:fa,onTouchStart:Ya,style:Object(K.a)(Object(K.a)({},ko),so)},xa))})},Yr.renderMaskElement=function(){var Yn=Yr.props,dn=Yn.mask,Gr=Yn.maskMotion,ri=Yn.maskTransitionName,rn=Yn.maskAnimation,Hn=Yn.prefixCls,li=Yn.visible;if(!dn)return null;var ci={};return Gr&&Gr.motionName&&(ci=Object(K.a)({motionAppear:!0},Or({motion:Gr,prefixCls:Hn,transitionName:ri,animation:rn}))),o.a.createElement(Vr,Object.assign({},ci,{visible:li,removeOnLeave:!0}),function(si){var Ti=si.className;return o.a.createElement("div",{style:Yr.getZIndexStyle(),key:"mask",className:_()("".concat(Hn,"-mask"),Ti)})})},Yr}return Object(k.a)(qr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Yn=this.state.status,dn=this.props,Gr=dn.getRootDomNode,ri=dn.visible,rn=dn.stretch;if(this.cancelFrameState(),ri&&Yn!=="stable")switch(Yn){case null:{this.setStateOnNextFrame({status:rn?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Lr(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Hn=["measure","align",null,"beforeMotion","motion"],li=Hn.indexOf(Yn),ci=Hn[li+1];li!==-1&&ci&&this.setStateOnNextFrame({status:ci})}}if(Yn==="measure"){var si=Gr();si&&this.setStateOnNextFrame({targetHeight:si.offsetHeight,targetWidth:si.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Yn=this.props.zIndex;return{zIndex:Yn}}},{key:"render",value:function(){return o.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Yn,dn){var Gr=Yn.visible,ri=Object(Dt.a)(Yn,["visible"]),rn=dn.prevVisible,Hn=dn.status,li=dn.inMotion,ci={prevVisible:Gr,status:Hn},si=Or(ri);return rn===null&&Gr===!1?(ci.status="stable",ci.inMotion=!1):Gr!==rn&&(ci.inMotion=!1,Gr||Lr(si)&&li?ci.status=null:ci.status="stable",Gr&&(ci.alignClassName=null)),ci}}]),qr}(l.Component),Sn=en,On=l.createContext(null),wn=On;function $n(){}function jn(){return""}function pi(){return window.document}var Mi=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function yi(ft){var Tr=function(qr){Object(G.a)(Yn,qr);var Yr=Object(M.a)(Yn);function Yn(dn){var Gr;Object(B.a)(this,Yn),Gr=Yr.call(this,dn),Gr.popupRef=o.a.createRef(),Gr.triggerRef=o.a.createRef(),Gr.onMouseEnter=function(rn){var Hn=Gr.props.mouseEnterDelay;Gr.fireEvents("onMouseEnter",rn),Gr.delaySetPopupVisible(!0,Hn,Hn?null:rn)},Gr.onMouseMove=function(rn){Gr.fireEvents("onMouseMove",rn),Gr.setPoint(rn)},Gr.onMouseLeave=function(rn){Gr.fireEvents("onMouseLeave",rn),Gr.delaySetPopupVisible(!1,Gr.props.mouseLeaveDelay)},Gr.onPopupMouseEnter=function(){Gr.clearDelayTimer()},Gr.onPopupMouseLeave=function(rn){if(rn.relatedTarget&&!rn.relatedTarget.setTimeout&&Gr.popupRef.current&&Gr.popupRef.current.popupRef.current&&Object(tn.a)(Gr.popupRef.current.popupRef.current,rn.relatedTarget))return;Gr.delaySetPopupVisible(!1,Gr.props.mouseLeaveDelay)},Gr.onFocus=function(rn){Gr.fireEvents("onFocus",rn),Gr.clearDelayTimer(),Gr.isFocusToShow()&&(Gr.focusTime=Date.now(),Gr.delaySetPopupVisible(!0,Gr.props.focusDelay))},Gr.onMouseDown=function(rn){Gr.fireEvents("onMouseDown",rn),Gr.preClickTime=Date.now()},Gr.onTouchStart=function(rn){Gr.fireEvents("onTouchStart",rn),Gr.preTouchTime=Date.now()},Gr.onBlur=function(rn){Gr.fireEvents("onBlur",rn),Gr.clearDelayTimer(),Gr.isBlurToHide()&&Gr.delaySetPopupVisible(!1,Gr.props.blurDelay)},Gr.onContextMenu=function(rn){rn.preventDefault(),Gr.fireEvents("onContextMenu",rn),Gr.setPopupVisible(!0,rn)},Gr.onContextMenuClose=function(){Gr.isContextMenuToShow()&&Gr.close()},Gr.onClick=function(rn){if(Gr.fireEvents("onClick",rn),Gr.focusTime){var Hn;if(Gr.preClickTime&&Gr.preTouchTime?Hn=Math.min(Gr.preClickTime,Gr.preTouchTime):Gr.preClickTime?Hn=Gr.preClickTime:Gr.preTouchTime&&(Hn=Gr.preTouchTime),Math.abs(Hn-Gr.focusTime)<20)return;Gr.focusTime=0}Gr.preClickTime=0,Gr.preTouchTime=0,Gr.isClickToShow()&&(Gr.isClickToHide()||Gr.isBlurToHide())&&rn&&rn.preventDefault&&rn.preventDefault();var li=!Gr.state.popupVisible;(Gr.isClickToHide()&&!li||li&&Gr.isClickToShow())&&Gr.setPopupVisible(!Gr.state.popupVisible,rn)},Gr.onPopupMouseDown=function(){if(Gr.hasPopupMouseDown=!0,clearTimeout(Gr.mouseDownTimeout),Gr.mouseDownTimeout=window.setTimeout(function(){Gr.hasPopupMouseDown=!1},0),Gr.context){var rn;(rn=Gr.context).onPopupMouseDown.apply(rn,arguments)}},Gr.onDocumentClick=function(rn){if(Gr.props.mask&&!Gr.props.maskClosable)return;var Hn=rn.target,li=Gr.getRootDomNode(),ci=Gr.getPopupDomNode();!Object(tn.a)(li,Hn)&&!Object(tn.a)(ci,Hn)&&!Gr.hasPopupMouseDown&&Gr.close()},Gr.getRootDomNode=function(){var rn=Gr.props.getTriggerDOMNode;if(rn)return rn(Gr.triggerRef.current);try{var Hn=Object(Tn.a)(Gr.triggerRef.current);if(Hn)return Hn}catch(li){}return Gi.a.findDOMNode(Object(ii.a)(Gr))},Gr.getPopupClassNameFromAlign=function(rn){var Hn=[],li=Gr.props,ci=li.popupPlacement,si=li.builtinPlacements,Ti=li.prefixCls,mi=li.alignPoint,vi=li.getPopupClassNameFromAlign;return ci&&si&&Hn.push(Gt(si,Ti,rn,mi)),vi&&Hn.push(vi(rn)),Hn.join(" ")},Gr.getComponent=function(){var rn=Gr.props,Hn=rn.prefixCls,li=rn.destroyPopupOnHide,ci=rn.popupClassName,si=rn.onPopupAlign,Ti=rn.popupMotion,mi=rn.popupAnimation,vi=rn.popupTransitionName,Li=rn.popupStyle,ia=rn.mask,Ki=rn.maskAnimation,fa=rn.maskTransitionName,Ya=rn.maskMotion,xa=rn.zIndex,wa=rn.popup,Da=rn.stretch,ja=rn.alignPoint,ko=Gr.state,ro=ko.popupVisible,pa=ko.point,Ea=Gr.getPopupAlign(),Fa={};return Gr.isMouseEnterToShow()&&(Fa.onMouseEnter=Gr.onPopupMouseEnter),Gr.isMouseLeaveToHide()&&(Fa.onMouseLeave=Gr.onPopupMouseLeave),Fa.onMouseDown=Gr.onPopupMouseDown,Fa.onTouchStart=Gr.onPopupMouseDown,o.a.createElement(Sn,Object.assign({prefixCls:Hn,destroyPopupOnHide:li,visible:ro,point:ja&&pa,className:ci,align:Ea,onAlign:si,animation:mi,getClassNameFromAlign:Gr.getPopupClassNameFromAlign},Fa,{stretch:Da,getRootDomNode:Gr.getRootDomNode,style:Li,mask:ia,zIndex:xa,transitionName:vi,maskAnimation:Ki,maskTransitionName:fa,maskMotion:Ya,ref:Gr.popupRef,motion:Ti}),typeof wa=="function"?wa():wa)},Gr.getContainer=function(){var rn=Object(ii.a)(Gr),Hn=rn.props,li=document.createElement("div");li.style.position="absolute",li.style.top="0",li.style.left="0",li.style.width="100%";var ci=Hn.getPopupContainer?Hn.getPopupContainer(Gr.getRootDomNode()):Hn.getDocument().body;return ci.appendChild(li),li},Gr.setPoint=function(rn){var Hn=Gr.props.alignPoint;if(!Hn||!rn)return;Gr.setState({point:{pageX:rn.pageX,pageY:rn.pageY}})},Gr.handlePortalUpdate=function(){Gr.state.prevPopupVisible!==Gr.state.popupVisible&&Gr.props.afterPopupVisibleChange(Gr.state.popupVisible)};var ri;return"popupVisible"in dn?ri=!!dn.popupVisible:ri=!!dn.defaultPopupVisible,Gr.state={prevPopupVisible:ri,popupVisible:ri},Mi.forEach(function(rn){Gr["fire".concat(rn)]=function(Hn){Gr.fireEvents(rn,Hn)}}),Gr}return Object(k.a)(Yn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Gr=this.props,ri=this.state;if(ri.popupVisible){var rn;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(rn=Gr.getDocument(),this.clickOutsideHandler=Object(Xt.a)(rn,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(rn=rn||Gr.getDocument(),this.touchOutsideHandler=Object(Xt.a)(rn,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(rn=rn||Gr.getDocument(),this.contextMenuOutsideHandler1=Object(Xt.a)(rn,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Xt.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 Gr=this.props,ri=Gr.popupPlacement,rn=Gr.popupAlign,Hn=Gr.builtinPlacements;return ri&&Hn?Kt(Hn,ri,rn):rn}},{key:"setPopupVisible",value:function(Gr,ri){var rn=this.props.alignPoint,Hn=this.state.popupVisible;this.clearDelayTimer(),Hn!==Gr&&("popupVisible"in this.props||this.setState({popupVisible:Gr,prevPopupVisible:Hn}),this.props.onPopupVisibleChange(Gr)),rn&&ri&&this.setPoint(ri)}},{key:"delaySetPopupVisible",value:function(Gr,ri,rn){var Hn=this,li=ri*1e3;if(this.clearDelayTimer(),li){var ci=rn?{pageX:rn.pageX,pageY:rn.pageY}:null;this.delayTimer=window.setTimeout(function(){Hn.setPopupVisible(Gr,ci),Hn.clearDelayTimer()},li)}else this.setPopupVisible(Gr,rn)}},{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(Gr){var ri=this.props.children.props,rn=this.props;return ri[Gr]&&rn[Gr]?this["fire".concat(Gr)]:ri[Gr]||rn[Gr]}},{key:"isClickToShow",value:function(){var Gr=this.props,ri=Gr.action,rn=Gr.showAction;return ri.indexOf("click")!==-1||rn.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Gr=this.props,ri=Gr.action,rn=Gr.showAction;return ri.indexOf("contextMenu")!==-1||rn.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Gr=this.props,ri=Gr.action,rn=Gr.hideAction;return ri.indexOf("click")!==-1||rn.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Gr=this.props,ri=Gr.action,rn=Gr.showAction;return ri.indexOf("hover")!==-1||rn.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Gr=this.props,ri=Gr.action,rn=Gr.hideAction;return ri.indexOf("hover")!==-1||rn.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Gr=this.props,ri=Gr.action,rn=Gr.showAction;return ri.indexOf("focus")!==-1||rn.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Gr=this.props,ri=Gr.action,rn=Gr.hideAction;return ri.indexOf("focus")!==-1||rn.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(Gr,ri){var rn=this.props.children.props[Gr];rn&&rn(ri);var Hn=this.props[Gr];Hn&&Hn(ri)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Gr=this.state.popupVisible,ri=this.props,rn=ri.children,Hn=ri.forceRender,li=ri.alignPoint,ci=ri.className,si=ri.autoDestroy,Ti=o.a.Children.only(rn),mi={key:"trigger"};this.isContextMenuToShow()?mi.onContextMenu=this.onContextMenu:mi.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(mi.onClick=this.onClick,mi.onMouseDown=this.onMouseDown,mi.onTouchStart=this.onTouchStart):(mi.onClick=this.createTwoChains("onClick"),mi.onMouseDown=this.createTwoChains("onMouseDown"),mi.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(mi.onMouseEnter=this.onMouseEnter,li&&(mi.onMouseMove=this.onMouseMove)):mi.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?mi.onMouseLeave=this.onMouseLeave:mi.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(mi.onFocus=this.onFocus,mi.onBlur=this.onBlur):(mi.onFocus=this.createTwoChains("onFocus"),mi.onBlur=this.createTwoChains("onBlur"));var vi=_()(Ti&&Ti.props&&Ti.props.className,ci);vi&&(mi.className=vi);var Li=Object(K.a)({},mi);Object(Vn.c)(Ti)&&(Li.ref=Object(Vn.a)(this.triggerRef,Ti.ref));var ia=o.a.cloneElement(Ti,Li),Ki;return(Gr||this.popupRef.current||Hn)&&(Ki=o.a.createElement(ft,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Gr&&si&&(Ki=null),o.a.createElement(wn.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},ia,Ki)}}],[{key:"getDerivedStateFromProps",value:function(Gr,ri){var rn=Gr.popupVisible,Hn={};return rn!==void 0&&ri.popupVisible!==rn&&(Hn.popupVisible=rn,Hn.prevPopupVisible=ri.popupVisible),Hn}}]),Yn}(o.a.Component);return Tr.contextType=wn,Tr.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:jn,getDocument:pi,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},Tr}var Oi=yi(It.a),zi={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function ea(ft){var Tr,qr=ft.prefixCls,Yr=ft.popupElement,Yn=ft.popupStyle,dn=ft.visible,Gr=ft.dropdownClassName,ri=ft.dropdownAlign,rn=ft.transitionName,Hn=ft.getPopupContainer,li=ft.children,ci=ft.range,si=ft.popupPlacement,Ti=ft.direction,mi="".concat(qr,"-dropdown"),vi=function(){return si!==void 0?si:Ti==="rtl"?"bottomRight":"bottomLeft"};return l.createElement(Oi,{showAction:[],hideAction:[],popupPlacement:vi(),builtinPlacements:zi,prefixCls:mi,popupTransitionName:rn,popup:Yr,popupAlign:ri,popupVisible:dn,popupClassName:_()(Gr,(Tr={},Object(j.a)(Tr,"".concat(mi,"-range"),ci),Object(j.a)(Tr,"".concat(mi,"-rtl"),Ti==="rtl"),Tr)),popupStyle:Yn,getPopupContainer:Hn},li)}var Xi=ea;function Wi(ft){var Tr=ft.open,qr=ft.value,Yr=ft.isClickOutside,Yn=ft.triggerOpen,dn=ft.forwardKeyDown,Gr=ft.blurToCancel,ri=ft.onSubmit,rn=ft.onCancel,Hn=ft.onFocus,li=ft.onBlur,ci=Object(l.useState)(!1),si=Object(z.a)(ci,2),Ti=si[0],mi=si[1],vi=Object(l.useState)(!1),Li=Object(z.a)(vi,2),ia=Li[0],Ki=Li[1],fa=Object(l.useRef)(!1),Ya=Object(l.useRef)(!1),xa={onMouseDown:function(){mi(!0),Yn(!0)},onKeyDown:function(Da){switch(Da.which){case X.a.ENTER:{Tr?ri()!==!1&&mi(!0):Yn(!0),Da.preventDefault();return}case X.a.TAB:{Ti&&Tr&&!Da.shiftKey?(mi(!1),Da.preventDefault()):!Ti&&Tr&&(!dn(Da)&&Da.shiftKey&&(mi(!0),Da.preventDefault()));return}case X.a.ESC:{mi(!0),rn();return}}!Tr&&![X.a.SHIFT].includes(Da.which)?Yn(!0):Ti||dn(Da)},onFocus:function(Da){mi(!0),Ki(!0),Hn&&Hn(Da)},onBlur:function(Da){if(fa.current||!Yr(document.activeElement)){fa.current=!1;return}Gr?setTimeout(function(){Yr(document.activeElement)&&rn()},0):Tr&&(Yn(!1),Ya.current&&ri()),Ki(!1),li&&li(Da)}};return Object(l.useEffect)(function(){Ya.current=!1},[Tr]),Object(l.useEffect)(function(){Ya.current=!0},[qr]),Object(l.useEffect)(function(){return ee(function(wa){var Da=wa.target;Tr&&(Yr(Da)?ia||Yn(!1):(fa.current=!0,requestAnimationFrame(function(){fa.current=!1})))})}),[xa,{focused:ia,typing:Ti}]}function ji(ft){var Tr=ft.valueTexts,qr=ft.onTextChange,Yr=l.useState(""),Yn=Object(z.a)(Yr,2),dn=Yn[0],Gr=Yn[1],ri=l.useRef([]);ri.current=Tr;function rn(li){Gr(li),qr(li)}function Hn(){Gr(ri.current[0])}return l.useEffect(function(){Tr.every(function(li){return li!==dn})&&Hn()},[Tr.join("||")]),[dn,rn,Hn]}var Ji=i("Gytx"),ca=i.n(Ji);function Ca(ft,Tr){var qr=Tr.formatList,Yr=Tr.generateConfig,Yn=Tr.locale;return Object(Je.a)(function(){if(!ft)return[[""],""];for(var dn="",Gr=[],ri=0;ri<qr.length;ri+=1){var rn=qr[ri],Hn=Yr.locale.format(Yn.locale,ft,rn);Gr.push(Hn),ri===0&&(dn=Hn)}return[Gr,dn]},[ft,qr],function(dn,Gr){return dn[0]!==Gr[0]||!ca()(dn[1],Gr[1])})}function na(ft,Tr){var qr=Tr.formatList,Yr=Tr.generateConfig,Yn=Tr.locale,dn=Object(l.useState)(null),Gr=Object(z.a)(dn,2),ri=Gr[0],rn=Gr[1],Hn=Object(l.useRef)(null);function li(Li){var ia=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Hn.current),ia){rn(Li);return}Hn.current=requestAnimationFrame(function(){rn(Li)})}var ci=Ca(ri,{formatList:qr,generateConfig:Yr,locale:Yn}),si=Object(z.a)(ci,2),Ti=si[1];function mi(Li){li(Li)}function vi(){var Li=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;li(null,Li)}return Object(l.useEffect)(function(){vi(!0)},[ft]),Object(l.useEffect)(function(){return function(){return cancelAnimationFrame(Hn.current)}},[]),[Ti,mi,vi]}function Pa(ft){var Tr,qr=ft.prefixCls,Yr=qr===void 0?"rc-picker":qr,Yn=ft.id,dn=ft.tabIndex,Gr=ft.style,ri=ft.className,rn=ft.dropdownClassName,Hn=ft.dropdownAlign,li=ft.popupStyle,ci=ft.transitionName,si=ft.generateConfig,Ti=ft.locale,mi=ft.inputReadOnly,vi=ft.allowClear,Li=ft.autoFocus,ia=ft.showTime,Ki=ft.picker,fa=Ki===void 0?"date":Ki,Ya=ft.format,xa=ft.use12Hours,wa=ft.value,Da=ft.defaultValue,ja=ft.open,ko=ft.defaultOpen,ro=ft.defaultOpenValue,pa=ft.suffixIcon,Ea=ft.clearIcon,Fa=ft.disabled,Ka=ft.disabledDate,lo=ft.placeholder,so=ft.getPopupContainer,Co=ft.pickerRef,Lo=ft.panelRender,is=ft.onChange,cs=ft.onOpenChange,Rs=ft.onFocus,Ko=ft.onBlur,as=ft.onMouseDown,co=ft.onMouseUp,Ao=ft.onMouseEnter,$a=ft.onMouseLeave,ss=ft.onContextMenu,_s=ft.onClick,Fo=ft.direction,il=ft.autoComplete,Eo=il===void 0?"off":il,zo=l.useRef(null),Fs=fa==="date"&&!!ia||fa==="time",ms=Fe(lt(Ya,fa,ia,xa)),hs=l.useRef(null),bn=l.useRef(null),Ns=Object(V.a)(null,{value:wa,defaultValue:Da}),Ll=Object(z.a)(Ns,2),el=Ll[0],Gs=Ll[1],ds=l.useState(el),ks=Object(z.a)(ds,2),Qs=ks[0],tl=ks[1],xs=l.useRef(null),Bs=Object(V.a)(!1,{value:ja,defaultValue:ko,postState:function(vo){return Fa?!1:vo},onChange:function(vo){cs&&cs(vo),!vo&&xs.current&&xs.current.onClose&&xs.current.onClose()}}),al=Object(z.a)(Bs,2),Js=al[0],Vo=al[1],No=Ca(Qs,{formatList:ms,generateConfig:si,locale:Ti}),fs=Object(z.a)(No,2),Ds=fs[0],go=fs[1],Ht=ji({valueTexts:Ds,onTextChange:function(vo){var Ms=si.locale.parse(Ti.locale,vo,ms);Ms&&(!Ka||!Ka(Ms))&&tl(Ms)}}),ar=Object(z.a)(Ht,3),In=ar[0],hi=ar[1],Rt=ar[2],ce=function(vo){tl(vo),Gs(vo),is&&!Zt(si,el,vo)&&is(vo,vo?si.locale.format(Ti.locale,vo,ms[0]):"")},xe=function(vo){if(Fa&&vo)return;Vo(vo)},Ie=function(vo){return Js&&xs.current&&xs.current.onKeyDown?xs.current.onKeyDown(vo):(Object(x.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Qe=function(){co&&co.apply(void 0,arguments),zo.current&&(zo.current.focus(),xe(!0))},kt=Wi({blurToCancel:Fs,open:Js,value:In,triggerOpen:xe,forwardKeyDown:Ie,isClickOutside:function(vo){return!ye([hs.current,bn.current],vo)},onSubmit:function(){return Ka&&Ka(Qs)?!1:(ce(Qs),xe(!1),Rt(),!0)},onCancel:function(){xe(!1),tl(el),Rt()},onFocus:Rs,onBlur:Ko}),or=Object(z.a)(kt,2),Qr=or[0],fn=or[1],Ln=fn.focused,ui=fn.typing;l.useEffect(function(){Js||(tl(el),!Ds.length||Ds[0]===""?hi(""):go!==In&&Rt())},[Js,Ds]),l.useEffect(function(){Js||Rt()},[fa]),l.useEffect(function(){tl(el)},[el]),Co&&(Co.current={focus:function(){zo.current&&zo.current.focus()},blur:function(){zo.current&&zo.current.blur()}});var wi=Object(K.a)(Object(K.a)({},ft),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),gi=l.createElement(Ur,Object.assign({},wi,{generateConfig:si,className:_()(Object(j.a)({},"".concat(Yr,"-panel-focused"),!ui)),value:Qs,locale:Ti,tabIndex:-1,onChange:tl,direction:Fo}));Lo&&(gi=Lo(gi));var Qi=l.createElement("div",{className:"".concat(Yr,"-panel-container"),onMouseDown:function(vo){vo.preventDefault()}},gi),sa;pa&&(sa=l.createElement("span",{className:"".concat(Yr,"-suffix")},pa));var Ua;vi&&el&&!Fa&&(Ua=l.createElement("span",{onMouseDown:function(vo){vo.preventDefault(),vo.stopPropagation()},onMouseUp:function(vo){vo.preventDefault(),vo.stopPropagation(),ce(null),xe(!1)},className:"".concat(Yr,"-clear")},Ea||l.createElement("span",{className:"".concat(Yr,"-clear-btn")})));var no=function(vo,Ms){(Ms==="submit"||Ms!=="key"&&!Fs)&&(ce(vo),xe(!1))},Wo=Fo==="rtl"?"bottomRight":"bottomLeft",Zo=na(In,{formatList:ms,generateConfig:si,locale:Ti}),Bo=Object(z.a)(Zo,3),Es=Bo[0],As=Bo[1],$o=Bo[2];return l.createElement($.Provider,{value:{operationRef:xs,hideHeader:fa==="time",panelRef:hs,onSelect:no,open:Js,defaultOpenValue:ro,onDateMouseEnter:As,onDateMouseLeave:$o}},l.createElement(Xi,{visible:Js,popupElement:Qi,popupStyle:li,prefixCls:Yr,dropdownClassName:rn,dropdownAlign:Hn,getPopupContainer:so,transitionName:ci,popupPlacement:Wo,direction:Fo},l.createElement("div",{className:_()(Yr,ri,(Tr={},Object(j.a)(Tr,"".concat(Yr,"-disabled"),Fa),Object(j.a)(Tr,"".concat(Yr,"-focused"),Ln),Object(j.a)(Tr,"".concat(Yr,"-rtl"),Fo==="rtl"),Tr)),style:Gr,onMouseDown:as,onMouseUp:Qe,onMouseEnter:Ao,onMouseLeave:$a,onContextMenu:ss,onClick:_s},l.createElement("div",{className:_()("".concat(Yr,"-input"),Object(j.a)({},"".concat(Yr,"-input-placeholder"),!!Es)),ref:bn},l.createElement("input",Object.assign({id:Yn,tabIndex:dn,disabled:Fa,readOnly:mi||!ui,value:Es||In,onChange:function(vo){hi(vo.target.value)},autoFocus:Li,placeholder:lo,ref:zo,title:In},Qr,{size:pe(fa,ms[0])},mt(ft),{autoComplete:Eo})),sa,Ua))))}var La=function(ft){Object(G.a)(qr,ft);var Tr=Object(M.a)(qr);function qr(){var Yr;return Object(B.a)(this,qr),Yr=Tr.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(k.a)(qr,[{key:"render",value:function(){return l.createElement(Pa,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),qr}(l.Component),va=La;function ga(ft,Tr,qr){var Yr=ft.picker,Yn=ft.locale,dn=ft.selectedValue,Gr=ft.disabledDate,ri=ft.disabled,rn=ft.generateConfig,Hn=et(dn,0),li=et(dn,1);function ci(Li){var ia=rn.getYear(Li),Ki=rn.locale.getWeek(Yn.locale,Li);return ia*100+Ki}function si(Li){var ia=rn.getYear(Li),Ki=rn.getMonth(Li);return ia*100+Ki}function Ti(Li){var ia=rn.getYear(Li),Ki=rr(rn,Li);return ia*10+Ki}var mi=l.useCallback(function(Li){if(Gr&&Gr(Li))return!0;if(ri[1]&&li)return!sr(rn,Li,li)&&rn.isAfter(Li,li);if(Tr&&li)switch(Yr){case"quarter":return Ti(Li)>Ti(li);case"month":return si(Li)>si(li);case"week":return ci(Li)>ci(li);default:return!sr(rn,Li,li)&&rn.isAfter(Li,li)}return!1},[Gr,ri[1],li,Tr]),vi=l.useCallback(function(Li){if(Gr&&Gr(Li))return!0;if(ri[0]&&Hn)return!sr(rn,Li,li)&&rn.isAfter(Hn,Li);if(qr&&Hn)switch(Yr){case"quarter":return Ti(Li)<Ti(Hn);case"month":return si(Li)<si(Hn);case"week":return ci(Li)<ci(Hn);default:return!sr(rn,Li,Hn)&&rn.isAfter(Hn,Li)}return!1},[Gr,ri[0],Hn,qr]);return[mi,vi]}function Oa(ft,Tr,qr,Yr){var Yn=Mn(ft,qr,Yr,1);function dn(Gr){return Gr(ft,Tr)?"same":Gr(Yn,Tr)?"closing":"far"}switch(qr){case"year":return dn(function(Gr,ri){return dr(Yr,Gr,ri)});case"quarter":case"month":return dn(function(Gr,ri){return vt(Yr,Gr,ri)});default:return dn(function(Gr,ri){return mn(Yr,Gr,ri)})}}function Aa(ft,Tr,qr,Yr){var Yn=et(ft,0),dn=et(ft,1);if(Tr===0)return Yn;if(Yn&&dn){var Gr=Oa(Yn,dn,qr,Yr);switch(Gr){case"same":return Yn;case"closing":return Yn;default:return Mn(dn,qr,Yr,-1)}}return Yn}function Xa(ft){var Tr=ft.values,qr=ft.picker,Yr=ft.defaultDates,Yn=ft.generateConfig,dn=l.useState(function(){return[et(Yr,0),et(Yr,1)]}),Gr=Object(z.a)(dn,2),ri=Gr[0],rn=Gr[1],Hn=l.useState(null),li=Object(z.a)(Hn,2),ci=li[0],si=li[1],Ti=et(Tr,0),mi=et(Tr,1);function vi(ia){return ri[ia]?ri[ia]:et(ci,ia)||Aa(Tr,ia,qr,Yn)||Ti||mi||Yn.getNow()}function Li(ia,Ki){if(ia){var fa=St(ci,ia,Ki);rn(St(ri,null,Ki)||[null,null]);var Ya=(Ki+1)%2;et(Tr,Ya)||(fa=St(fa,ia,Ya)),si(fa)}else(Ti||mi)&&si(null)}return[vi,Li]}function _a(ft,Tr){return ft&&ft[0]&&ft[1]&&Tr.isAfter(ft[0],ft[1])?[ft[1],ft[0]]:ft}function Va(ft,Tr,qr,Yr){return ft||Yr&&Yr[Tr]?!0:!!qr[(Tr+1)%2]}function Pi(ft){var Tr,qr,Yr,Yn=ft.prefixCls,dn=Yn===void 0?"rc-picker":Yn,Gr=ft.id,ri=ft.style,rn=ft.className,Hn=ft.popupStyle,li=ft.dropdownClassName,ci=ft.transitionName,si=ft.dropdownAlign,Ti=ft.getPopupContainer,mi=ft.generateConfig,vi=ft.locale,Li=ft.placeholder,ia=ft.autoFocus,Ki=ft.disabled,fa=ft.format,Ya=ft.picker,xa=Ya===void 0?"date":Ya,wa=ft.showTime,Da=ft.use12Hours,ja=ft.separator,ko=ja===void 0?"~":ja,ro=ft.value,pa=ft.defaultValue,Ea=ft.defaultPickerValue,Fa=ft.open,Ka=ft.defaultOpen,lo=ft.disabledDate,so=ft.disabledTime,Co=ft.dateRender,Lo=ft.panelRender,is=ft.ranges,cs=ft.allowEmpty,Rs=ft.allowClear,Ko=ft.suffixIcon,as=ft.clearIcon,co=ft.pickerRef,Ao=ft.inputReadOnly,$a=ft.mode,ss=ft.renderExtraFooter,_s=ft.onChange,Fo=ft.onOpenChange,il=ft.onPanelChange,Eo=ft.onCalendarChange,zo=ft.onFocus,Fs=ft.onBlur,ms=ft.onOk,hs=ft.components,bn=ft.order,Ns=ft.direction,Ll=ft.activePickerIndex,el=ft.autoComplete,Gs=el===void 0?"off":el,ds=xa==="date"&&!!wa||xa==="time",ks=Object(l.useRef)({}),Qs=Object(l.useRef)(null),tl=Object(l.useRef)(null),xs=Object(l.useRef)(null),Bs=Object(l.useRef)(null),al=Object(l.useRef)(null),Js=Object(l.useRef)(null),Vo=Object(l.useRef)(null),No=Fe(lt(fa,xa,wa,Da)),fs=Object(V.a)(0,{value:Ll}),Ds=Object(z.a)(fs,2),go=Ds[0],Ht=Ds[1],ar=Object(l.useRef)(null),In=l.useMemo(function(){return Array.isArray(Ki)?Ki:[Ki||!1,Ki||!1]},[Ki]),hi=Object(V.a)(null,{value:ro,defaultValue:pa,postState:function(ve){return xa==="time"&&!bn?ve:_a(ve,mi)}}),Rt=Object(z.a)(hi,2),ce=Rt[0],xe=Rt[1],Ie=Xa({values:ce,picker:xa,defaultDates:Ea,generateConfig:mi}),Qe=Object(z.a)(Ie,2),kt=Qe[0],or=Qe[1],Qr=Object(V.a)(ce,{postState:function(ve){var Te=ve;if(In[0]&&In[1])return Te;for(var Ve=0;Ve<2;Ve+=1)In[Ve]&&!et(Te,Ve)&&!et(cs,Ve)&&(Te=St(Te,mi.getNow(),Ve));return Te}}),fn=Object(z.a)(Qr,2),Ln=fn[0],ui=fn[1],wi=Object(V.a)([xa,xa],{value:$a}),gi=Object(z.a)(wi,2),Qi=gi[0],sa=gi[1];Object(l.useEffect)(function(){sa([xa,xa])},[xa]);var Ua=function(ve,Te){sa(ve),il&&il(Te,ve)},no=ga({picker:xa,selectedValue:Ln,locale:vi,disabled:In,disabledDate:lo,generateConfig:mi},ks.current[1],ks.current[0]),Wo=Object(z.a)(no,2),Zo=Wo[0],Bo=Wo[1],Es=Object(V.a)(!1,{value:Fa,defaultValue:Ka,postState:function(ve){return In[go]?!1:ve},onChange:function(ve){Fo&&Fo(ve),!ve&&ar.current&&ar.current.onClose&&ar.current.onClose()}}),As=Object(z.a)(Es,2),$o=As[0],Do=As[1],vo=$o&&go===0,Ms=$o&&go===1,rl=Object(l.useState)(0),gs=Object(z.a)(rl,2),Ra=gs[0],dl=gs[1];Object(l.useEffect)(function(){!$o&&Qs.current&&dl(Qs.current.offsetWidth)},[$o]);var fl=l.useRef();function Us(ne,ve){if(ne)clearTimeout(fl.current),ks.current[ve]=!0,Ht(ve),Do(ne),$o||or(null,ve);else if(go===ve){Do(ne);var Te=ks.current;fl.current=setTimeout(function(){Te===ks.current&&(ks.current={})})}}function Os(ne){Us(!0,ne),setTimeout(function(){var ve=[Js,Vo][ne];ve.current&&ve.current.focus()},0)}function Xs(ne,ve){var Te=ne,Ve=et(Te,0),ot=et(Te,1);Ve&&ot&&mi.isAfter(Ve,ot)&&(xa==="week"&&!pr(mi,vi.locale,Ve,ot)||xa==="quarter"&&!ur(mi,Ve,ot)||xa!=="week"&&xa!=="quarter"&&xa!=="time"&&!sr(mi,Ve,ot)?(ve===0?(Te=[Ve,null],ot=null):(Ve=null,Te=[null,ot]),ks.current=Object(j.a)({},ve,!0)):(xa!=="time"||bn!==!1)&&(Te=_a(Te,mi))),ui(Te);var ht=Te&&Te[0]?mi.locale.format(vi.locale,Te[0],No[0]):"",Qt=Te&&Te[1]?mi.locale.format(vi.locale,Te[1],No[0]):"";if(Eo){var Cr={range:ve===0?"start":"end"};Eo(Te,[ht,Qt],Cr)}var wr=Va(Ve,0,In,cs),Kr=Va(ot,1,In,cs),Jr=Te===null||wr&&Kr;Jr&&(xe(Te),_s&&(!Zt(mi,et(ce,0),Ve)||!Zt(mi,et(ce,1),ot))&&_s(Te,[ht,Qt]));var Cn=null;ve===0&&!In[1]?Cn=1:ve===1&&!In[0]&&(Cn=0),Cn!==null&&Cn!==go&&(!ks.current[Cn]||!et(Te,Cn))&&et(Te,ve)?Os(Cn):Us(!1,ve)}var Ql=function(ve){return $o&&ar.current&&ar.current.onKeyDown?ar.current.onKeyDown(ve):(Object(x.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ul={formatList:No,generateConfig:mi,locale:vi},wl=Ca(et(Ln,0),Ul),Ts=Object(z.a)(wl,2),Ws=Ts[0],Tl=Ts[1],pl=Ca(et(Ln,1),Ul),jo=Object(z.a)(pl,2),yo=jo[0],qo=jo[1],ps=function(ve,Te){var Ve=mi.locale.parse(vi.locale,ve,No),ot=Te===0?Zo:Bo;Ve&&!ot(Ve)&&(ui(St(Ln,Ve,Te)),or(Ve,Te))},Is=ji({valueTexts:Ws,onTextChange:function(ve){return ps(ve,0)}}),es=Object(z.a)(Is,3),Ls=es[0],Ps=es[1],ml=es[2],Rl=ji({valueTexts:yo,onTextChange:function(ve){return ps(ve,1)}}),_l=Object(z.a)(Rl,3),Bl=_l[0],jl=_l[1],kl=_l[2],Xl=Object(l.useState)(null),ol=Object(z.a)(Xl,2),Ys=ol[0],sl=ol[1],nl=Object(l.useState)(null),xl=Object(z.a)(nl,2),Ml=xl[0],Wl=xl[1],au=na(Ls,{formatList:No,generateConfig:mi,locale:vi}),Nl=Object(z.a)(au,3),$l=Nl[0],tu=Nl[1],Iu=Nl[2],pu=na(Bl,{formatList:No,generateConfig:mi,locale:vi}),mu=Object(z.a)(pu,3),gu=mu[0],ql=mu[1],Cl=mu[2],ll=function(ve){Wl(St(Ln,ve,go)),go===0?tu(ve):ql(ve)},Hl=function(){Wl(St(Ln,null,go)),go===0?Iu():Cl()},Sl=function(ve,Te){return{blurToCancel:ds,forwardKeyDown:Ql,onBlur:Fs,isClickOutside:function(ot){return!ye([tl.current,xs.current,Bs.current],ot)},onFocus:function(ot){Ht(ve),zo&&zo(ot)},triggerOpen:function(ot){Us(ot,ve)},onSubmit:function(){Xs(Ln,ve),Te()},onCancel:function(){Us(!1,ve),ui(ce),Te()}}},Su=Wi(Object(K.a)(Object(K.a)({},Sl(0,ml)),{},{open:vo,value:Ls})),vu=Object(z.a)(Su,2),Au=vu[0],Ol=vu[1],cu=Ol.focused,du=Ol.typing,Lu=Wi(Object(K.a)(Object(K.a)({},Sl(1,kl)),{},{open:Ms,value:Bl})),zl=Object(z.a)(Lu,2),ru=zl[0],ou=zl[1],su=ou.focused,Jl=ou.typing,Du=function(ve){!$o&&!Js.current.contains(ve.target)&&!Vo.current.contains(ve.target)&&(In[0]?In[1]||Os(1):Os(0))},Ru=function(ve){$o&&(cu||su)&&!Js.current.contains(ve.target)&&!Vo.current.contains(ve.target)&&ve.preventDefault()},Zl=ce&&ce[0]?mi.locale.format(vi.locale,ce[0],"YYYYMMDDHHmmss"):"",yu=ce&&ce[1]?mi.locale.format(vi.locale,ce[1],"YYYYMMDDHHmmss"):"";Object(l.useEffect)(function(){$o||(ui(ce),!Ws.length||Ws[0]===""?Ps(""):Tl!==Ls&&ml(),!yo.length||yo[0]===""?jl(""):qo!==Bl&&kl())},[$o,Ws,yo]),Object(l.useEffect)(function(){ui(ce)},[Zl,yu]),co&&(co.current={focus:function(){Js.current&&Js.current.focus()},blur:function(){Js.current&&Js.current.blur(),Vo.current&&Vo.current.blur()}});var xu=Object.keys(is||{}),bu=xu.map(function(ne){var ve=is[ne],Te=typeof ve=="function"?ve():ve;return{label:ne,onClick:function(){Xs(Te,null),Us(!1,go)},onMouseEnter:function(){sl(Te)},onMouseLeave:function(){sl(null)}}});function hl(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=null;$o&&Ml&&Ml[0]&&Ml[1]&&mi.isAfter(Ml[1],Ml[0])&&(Te=Ml);var Ve=wa;if(wa&&Object(Q.a)(wa)==="object"&&wa.defaultValue){var ot=wa.defaultValue;Ve=Object(K.a)(Object(K.a)({},wa),{},{defaultValue:et(ot,go)||void 0})}var ht=null;return Co&&(ht=function(Cr,wr){return Co(Cr,wr,{range:go?"end":"start"})}),l.createElement(oi.Provider,{value:{inRange:!0,panelPosition:ne,rangedValue:Ys||Ln,hoverRangedValue:Te}},l.createElement(Ur,Object.assign({},ft,ve,{dateRender:ht,showTime:Ve,mode:Qi[go],generateConfig:mi,style:void 0,direction:Ns,disabledDate:go===0?Zo:Bo,disabledTime:function(Cr){return so?so(Cr,go===0?"start":"end"):!1},className:_()(Object(j.a)({},"".concat(dn,"-panel-focused"),go===0?!du:!Jl)),value:et(Ln,go),locale:vi,tabIndex:-1,onPanelChange:function(Cr,wr){Ua(St(Qi,wr,go),St(Ln,Cr,go));var Kr=Cr;ne==="right"&&Qi[go]===wr&&(Kr=Mn(Kr,wr,mi,-1)),or(Kr,go)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Dl=0,nu=0;go&&xs.current&&al.current&&tl.current&&(Dl=xs.current.offsetWidth+al.current.offsetWidth,tl.current.offsetWidth&&Dl>tl.current.offsetWidth&&(nu=Dl));var Nu=Ns==="rtl"?{right:Dl}:{left:Dl};function hu(){var ne,ve=Rr(dn,Qi[go],ss),Te=Pn({prefixCls:dn,components:hs,needConfirmButton:ds,okDisabled:!et(Ln,go)||lo&&lo(Ln[go]),locale:vi,rangeList:bu,onOk:function(){et(Ln,go)&&(Xs(Ln,go),ms&&ms(Ln))}});if(xa!=="time"&&!wa){var Ve=kt(go),ot=Mn(Ve,xa,mi),ht=Qi[go],Qt=ht===xa,Cr=hl(Qt?"left":!1,{pickerValue:Ve,onPickerValueChange:function(Cn){or(Cn,go)}}),wr=hl("right",{pickerValue:ot,onPickerValueChange:function(Cn){or(Mn(Cn,xa,mi,-1),go)}});Ns==="rtl"?ne=l.createElement(l.Fragment,null,wr,Qt&&Cr):ne=l.createElement(l.Fragment,null,Cr,Qt&&wr)}else ne=hl();var Kr=l.createElement(l.Fragment,null,l.createElement("div",{className:"".concat(dn,"-panels")},ne),(ve||Te)&&l.createElement("div",{className:"".concat(dn,"-footer")},ve,Te));return Lo&&(Kr=Lo(Kr)),l.createElement("div",{className:"".concat(dn,"-panel-container"),style:{marginLeft:nu},ref:tl,onMouseDown:function(Cn){Cn.preventDefault()}},Kr)}var fu=l.createElement("div",{className:_()("".concat(dn,"-range-wrapper"),"".concat(dn,"-").concat(xa,"-range-wrapper")),style:{minWidth:Ra}},l.createElement("div",{className:"".concat(dn,"-range-arrow"),style:Nu}),hu()),iu;Ko&&(iu=l.createElement("span",{className:"".concat(dn,"-suffix")},Ko));var Ae;Rs&&(et(ce,0)&&!In[0]||et(ce,1)&&!In[1])&&(Ae=l.createElement("span",{onMouseDown:function(ve){ve.preventDefault(),ve.stopPropagation()},onMouseUp:function(ve){ve.preventDefault(),ve.stopPropagation();var Te=ce;In[0]||(Te=St(Te,null,0)),In[1]||(Te=St(Te,null,1)),Xs(Te,null),Us(!1,go)},className:"".concat(dn,"-clear")},as||l.createElement("span",{className:"".concat(dn,"-clear-btn")})));var q={size:pe(xa,No[0])},L=0,W=0;xs.current&&Bs.current&&al.current&&(go===0?W=xs.current.offsetWidth:(L=Dl,W=Bs.current.offsetWidth));var H=Ns==="rtl"?{right:L}:{left:L},Z=function(ve,Te){var Ve=St(Ln,ve,go);Te==="submit"||Te!=="key"&&!ds?(Xs(Ve,go),go===0?Iu():Cl()):ui(Ve)};return l.createElement($.Provider,{value:{operationRef:ar,hideHeader:xa==="time",onDateMouseEnter:ll,onDateMouseLeave:Hl,hideRanges:!0,onSelect:Z,open:$o}},l.createElement(Xi,{visible:$o,popupElement:fu,popupStyle:Hn,prefixCls:dn,dropdownClassName:li,dropdownAlign:si,getPopupContainer:Ti,transitionName:ci,range:!0,direction:Ns},l.createElement("div",Object.assign({ref:Qs,className:_()(dn,"".concat(dn,"-range"),rn,(Tr={},Object(j.a)(Tr,"".concat(dn,"-disabled"),In[0]&&In[1]),Object(j.a)(Tr,"".concat(dn,"-focused"),go===0?cu:su),Object(j.a)(Tr,"".concat(dn,"-rtl"),Ns==="rtl"),Tr)),style:ri,onClick:Du,onMouseDown:Ru},mt(ft)),l.createElement("div",{className:_()("".concat(dn,"-input"),(qr={},Object(j.a)(qr,"".concat(dn,"-input-active"),go===0),Object(j.a)(qr,"".concat(dn,"-input-placeholder"),!!$l),qr)),ref:xs},l.createElement("input",Object.assign({id:Gr,disabled:In[0],readOnly:Ao||!du,value:$l||Ls,onChange:function(ve){Ps(ve.target.value)},autoFocus:ia,placeholder:et(Li,0)||"",ref:Js},Au,q,{autoComplete:Gs}))),l.createElement("div",{className:"".concat(dn,"-range-separator"),ref:al},ko),l.createElement("div",{className:_()("".concat(dn,"-input"),(Yr={},Object(j.a)(Yr,"".concat(dn,"-input-active"),go===1),Object(j.a)(Yr,"".concat(dn,"-input-placeholder"),!!gu),Yr)),ref:Bs},l.createElement("input",Object.assign({disabled:In[1],readOnly:Ao||!Jl,value:gu||Bl,onChange:function(ve){jl(ve.target.value)},placeholder:et(Li,1)||"",ref:Vo},ru,q,{autoComplete:Gs}))),l.createElement("div",{className:"".concat(dn,"-active-bar"),style:Object(K.a)(Object(K.a)({},H),{},{width:W,position:"absolute"})}),iu,Ae)))}var io=function(ft){Object(G.a)(qr,ft);var Tr=Object(M.a)(qr);function qr(){var Yr;return Object(B.a)(this,qr),Yr=Tr.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(k.a)(qr,[{key:"render",value:function(){return l.createElement(Pi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),qr}(l.Component),oo=io,Qo=va,mo=i("61s2");function To(ft,Tr,qr){return qr!==void 0?qr:ft==="year"&&Tr.lang.yearPlaceholder?Tr.lang.yearPlaceholder:ft==="quarter"&&Tr.lang.quarterPlaceholder?Tr.lang.quarterPlaceholder:ft==="month"&&Tr.lang.monthPlaceholder?Tr.lang.monthPlaceholder:ft==="week"&&Tr.lang.weekPlaceholder?Tr.lang.weekPlaceholder:ft==="time"&&Tr.timePickerLocale.placeholder?Tr.timePickerLocale.placeholder:Tr.lang.placeholder}function ao(ft,Tr,qr){return qr!==void 0?qr:ft==="year"&&Tr.lang.yearPlaceholder?Tr.lang.rangeYearPlaceholder:ft==="month"&&Tr.lang.monthPlaceholder?Tr.lang.rangeMonthPlaceholder:ft==="week"&&Tr.lang.weekPlaceholder?Tr.lang.rangeWeekPlaceholder:ft==="time"&&Tr.timePickerLocale.placeholder?Tr.timePickerLocale.rangePlaceholder:Tr.lang.rangePlaceholder}var So=i("uaoM"),bo=i("H84U"),to=i("YMnH"),Jo=i("3Nzz"),Uo=function(ft,Tr){var qr={};for(var Yr in ft)Object.prototype.hasOwnProperty.call(ft,Yr)&&Tr.indexOf(Yr)<0&&(qr[Yr]=ft[Yr]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yn=0,Yr=Object.getOwnPropertySymbols(ft);Yn<Yr.length;Yn++)Tr.indexOf(Yr[Yn])<0&&Object.prototype.propertyIsEnumerable.call(ft,Yr[Yn])&&(qr[Yr[Yn]]=ft[Yr[Yn]]);return qr};function wo(ft){function Tr(rn,Hn){var li=function(ci){b()(Ti,ci);var si=E()(Ti);function Ti(mi){var vi;return c()(this,Ti),vi=si.call(this,mi),vi.pickerRef=l.createRef(),vi.focus=function(){vi.pickerRef.current&&vi.pickerRef.current.focus()},vi.blur=function(){vi.pickerRef.current&&vi.pickerRef.current.blur()},vi.getDefaultLocale=function(){var Li=vi.props.locale,ia=d()(d()({},mo.a),Li);return ia.lang=d()(d()({},ia.lang),(Li||{}).lang),ia},vi.renderPicker=function(Li){var ia=vi.context,Ki=ia.getPrefixCls,fa=ia.direction,Ya=ia.getPopupContainer,xa=vi.props,wa=xa.prefixCls,Da=xa.getPopupContainer,ja=xa.className,ko=xa.size,ro=xa.bordered,pa=ro===void 0?!0:ro,Ea=xa.placeholder,Fa=Uo(xa,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Ka=vi.props,lo=Ka.format,so=Ka.showTime,Co=Ki("picker",wa),Lo={showToday:!0},is={};rn&&(is.picker=rn);var cs=rn||vi.props.picker;return is=d()(d()(d()({},is),so?rs(d()({format:lo,picker:cs},so)):{}),cs==="time"?rs(d()(d()({format:lo},vi.props),{picker:cs})):{}),l.createElement(Jo.b.Consumer,null,function(Rs){var Ko,as=ko||Rs;return l.createElement(Qo,d()({ref:vi.pickerRef,placeholder:To(cs,Li,Ea),suffixIcon:cs==="time"?l.createElement(I.a,null):l.createElement(S.a,null),clearIcon:l.createElement(P.a,null),allowClear:!0,transitionName:"slide-up"},Lo,Fa,is,{locale:Li.lang,className:_()(ja,(Ko={},r()(Ko,"".concat(Co,"-").concat(as),as),r()(Ko,"".concat(Co,"-borderless"),!pa),Ko)),prefixCls:Co,getPopupContainer:Da||Ya,generateConfig:ft,prevIcon:l.createElement("span",{className:"".concat(Co,"-prev-icon")}),nextIcon:l.createElement("span",{className:"".concat(Co,"-next-icon")}),superPrevIcon:l.createElement("span",{className:"".concat(Co,"-super-prev-icon")}),superNextIcon:l.createElement("span",{className:"".concat(Co,"-super-next-icon")}),components:os,direction:fa}))})},Object(So.a)(rn!=="quarter",Hn,"DatePicker.".concat(Hn," is legacy usage. Please use DatePicker[picker='").concat(rn,"'] directly.")),vi}return g()(Ti,[{key:"render",value:function(){return l.createElement(to.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Ti}(l.Component);return li.contextType=bo.b,Hn&&(li.displayName=Hn),li}var qr=Tr(),Yr=Tr("week","WeekPicker"),Yn=Tr("month","MonthPicker"),dn=Tr("year","YearPicker"),Gr=Tr("time","TimePicker"),ri=Tr("quarter","QuarterPicker");return{DatePicker:qr,WeekPicker:Yr,MonthPicker:Yn,YearPicker:dn,TimePicker:Gr,QuarterPicker:ri}}var ts=i("8ISB"),Ia=i.n(ts),Oo=function(ft,Tr){var qr={};for(var Yr in ft)Object.prototype.hasOwnProperty.call(ft,Yr)&&Tr.indexOf(Yr)<0&&(qr[Yr]=ft[Yr]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yn=0,Yr=Object.getOwnPropertySymbols(ft);Yn<Yr.length;Yn++)Tr.indexOf(Yr[Yn])<0&&Object.prototype.propertyIsEnumerable.call(ft,Yr[Yn])&&(qr[Yr[Yn]]=ft[Yr[Yn]]);return qr};function Io(ft){var Tr=function(qr){b()(Yn,qr);var Yr=E()(Yn);function Yn(){var dn;return c()(this,Yn),dn=Yr.apply(this,arguments),dn.pickerRef=l.createRef(),dn.focus=function(){dn.pickerRef.current&&dn.pickerRef.current.focus()},dn.blur=function(){dn.pickerRef.current&&dn.pickerRef.current.blur()},dn.getDefaultLocale=function(){var Gr=dn.props.locale,ri=d()(d()({},mo.a),Gr);return ri.lang=d()(d()({},ri.lang),(Gr||{}).lang),ri},dn.renderPicker=function(Gr){var ri=dn.context,rn=ri.getPrefixCls,Hn=ri.direction,li=ri.getPopupContainer,ci=dn.props,si=ci.prefixCls,Ti=ci.getPopupContainer,mi=ci.className,vi=ci.size,Li=ci.bordered,ia=Li===void 0?!0:Li,Ki=ci.placeholder,fa=Oo(ci,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Ya=dn.props,xa=Ya.format,wa=Ya.showTime,Da=Ya.picker,ja=rn("picker",si),ko={};return ko=d()(d()(d()({},ko),wa?rs(d()({format:xa,picker:Da},wa)):{}),Da==="time"?rs(d()(d()({format:xa},dn.props),{picker:Da})):{}),l.createElement(Jo.b.Consumer,null,function(ro){var pa,Ea=vi||ro;return l.createElement(oo,d()({separator:l.createElement("span",{"aria-label":"to",className:"".concat(ja,"-separator")},l.createElement(Ia.a,null)),ref:dn.pickerRef,placeholder:ao(Da,Gr,Ki),suffixIcon:Da==="time"?l.createElement(I.a,null):l.createElement(S.a,null),clearIcon:l.createElement(P.a,null),allowClear:!0,transitionName:"slide-up"},fa,ko,{className:_()(mi,(pa={},r()(pa,"".concat(ja,"-").concat(Ea),Ea),r()(pa,"".concat(ja,"-borderless"),!ia),pa)),locale:Gr.lang,prefixCls:ja,getPopupContainer:Ti||li,generateConfig:ft,prevIcon:l.createElement("span",{className:"".concat(ja,"-prev-icon")}),nextIcon:l.createElement("span",{className:"".concat(ja,"-next-icon")}),superPrevIcon:l.createElement("span",{className:"".concat(ja,"-super-prev-icon")}),superNextIcon:l.createElement("span",{className:"".concat(ja,"-super-next-icon")}),components:os,direction:Hn}))})},dn}return g()(Yn,[{key:"render",value:function(){return l.createElement(to.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Yn}(l.Component);return Tr.contextType=bo.b,Tr}var os={button:t,rangeItem:e};function xo(ft){return ft?Array.isArray(ft)?ft:[ft]:[]}function rs(ft){var Tr=ft.format,qr=ft.picker,Yr=ft.showHour,Yn=ft.showMinute,dn=ft.showSecond,Gr=ft.use12Hours,ri=xo(Tr)[0],rn=d()({},ft);return ri&&(!ri.includes("s")&&dn===void 0&&(rn.showSecond=!1),!ri.includes("m")&&Yn===void 0&&(rn.showMinute=!1),!ri.includes("H")&&!ri.includes("h")&&Yr===void 0&&(rn.showHour=!1),(ri.includes("a")||ri.includes("A"))&&Gr===void 0&&(rn.use12Hours=!0)),qr==="time"?rn:{showTime:rn}}function Ho(ft){var Tr=wo(ft),qr=Tr.DatePicker,Yr=Tr.WeekPicker,Yn=Tr.MonthPicker,dn=Tr.YearPicker,Gr=Tr.TimePicker,ri=Tr.QuarterPicker,rn=Io(ft),Hn=qr;return Hn.WeekPicker=Yr,Hn.MonthPicker=Yn,Hn.YearPicker=dn,Hn.RangePicker=rn,Hn.TimePicker=Gr,Hn.QuarterPicker=ri,Hn}var _o=Ho,uo=_o(m),Ha=D.a=uo},"+lIL":function(R,D,i){var y=i("ProS");i("/ry/"),i("3OrL");var p=i("L5E0"),x=i("7Phj");y.registerVisual(p),y.registerLayout(x)},"+nKL":function(R,D,i){"use strict";var y=i("wx14"),p=i("VTBJ"),x=i("U8pU"),v=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(ae,lt){var pe=ae.height,J=ae.offsetY,Y=ae.offsetX,ee=ae.children,fe=ae.prefixCls,we=ae.onInnerResize,Ce=ae.innerProps,_e=ae.rtl,he=ae.extra,ye={},Le={display:"flex",flexDirection:"column"};if(J!==void 0){var tt;ye={height:pe,position:"relative",overflow:"hidden"},Le=Object(p.a)(Object(p.a)({},Le),{},(tt={transform:"translateY(".concat(J,"px)")},Object(m.a)(tt,_e?"marginRight":"marginLeft",-Y),Object(m.a)(tt,"position","absolute"),Object(m.a)(tt,"left",0),Object(m.a)(tt,"right",0),Object(m.a)(tt,"top",0),tt))}return d.createElement("div",{style:ye},d.createElement(t.a,{onResize:function(at){var Fe=at.offsetHeight;Fe&&we&&we()}},d.createElement("div",Object(y.a)({style:Le,className:n()(Object(m.a)({},"".concat(fe,"-holder-inner"),fe)),ref:lt},Ce),ee,he)))});a.displayName="Filler";var e=a,u=i("wgJM");function r(ae,lt){var pe="touches"in ae?ae.touches[0]:ae;return pe[lt?"pageX":"pageY"]}var s=d.forwardRef(function(ae,lt){var pe,J=ae.prefixCls,Y=ae.rtl,ee=ae.scrollOffset,fe=ae.scrollRange,we=ae.onStartMove,Ce=ae.onStopMove,_e=ae.onScroll,he=ae.horizontal,ye=ae.spinSize,Le=ae.containerSize,tt=d.useState(!1),gt=Object(v.a)(tt,2),at=gt[0],Fe=gt[1],mt=d.useState(null),et=Object(v.a)(mt,2),St=et[0],jt=et[1],Mt=d.useState(null),Ot=Object(v.a)(Mt,2),Bt=Ot[0],Ke=Ot[1],de=!Y,se=d.useRef(),ut=d.useRef(),qe=d.useState(!1),me=Object(v.a)(qe,2),Wt=me[0],dr=me[1],vt=d.useRef(),rr=function(){clearTimeout(vt.current),dr(!0),vt.current=setTimeout(function(){dr(!1)},3e3)},ur=fe-Le||0,mn=Le-ye||0,sr=ur>0,xr=d.useMemo(function(){if(ee===0||ur===0)return 0;var Un=ee/ur;return Un*mn},[ee,ur,mn]),pr=function(Qn){Qn.stopPropagation(),Qn.preventDefault()},Zt=d.useRef({top:xr,dragging:at,pageY:St,startTop:Bt});Zt.current={top:xr,dragging:at,pageY:St,startTop:Bt};var Ct=function(Qn){Fe(!0),jt(r(Qn,he)),Ke(Zt.current.top),we(),Qn.stopPropagation(),Qn.preventDefault()};d.useEffect(function(){var Un=function(Me){Me.preventDefault()},Qn=se.current,$t=ut.current;return Qn.addEventListener("touchstart",Un),$t.addEventListener("touchstart",Ct),function(){Qn.removeEventListener("touchstart",Un),$t.removeEventListener("touchstart",Ct)}},[]);var on=d.useRef();on.current=ur;var Mn=d.useRef();Mn.current=mn,d.useEffect(function(){if(at){var Un,Qn=function(Me){var ke=Zt.current,Be=ke.dragging,it=ke.pageY,yt=ke.startTop;if(u.a.cancel(Un),Be){var Tt=r(Me,he)-it,Yt=yt;!de&&he?Yt-=Tt:Yt+=Tt;var Pr=on.current,$r=Mn.current,An=$r?Yt/$r:0,zt=Math.ceil(An*Pr);zt=Math.max(zt,0),zt=Math.min(zt,Pr),Un=Object(u.a)(function(){_e(zt,he)})}},$t=function(){Fe(!1),Ce()};return window.addEventListener("mousemove",Qn),window.addEventListener("touchmove",Qn),window.addEventListener("mouseup",$t),window.addEventListener("touchend",$t),function(){window.removeEventListener("mousemove",Qn),window.removeEventListener("touchmove",Qn),window.removeEventListener("mouseup",$t),window.removeEventListener("touchend",$t),u.a.cancel(Un)}}},[at]),d.useEffect(function(){rr()},[ee]),d.useImperativeHandle(lt,function(){return{delayHidden:rr}});var Xn="".concat(J,"-scrollbar"),oi={position:"absolute",visibility:Wt&&sr?null:"hidden"},Ui={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return he?(oi.height=8,oi.left=0,oi.right=0,oi.bottom=0,Ui.height="100%",Ui.width=ye,de?Ui.left=xr:Ui.right=xr):(oi.width=8,oi.top=0,oi.bottom=0,de?oi.right=0:oi.left=0,Ui.width="100%",Ui.height=ye,Ui.top=xr),d.createElement("div",{ref:se,className:n()(Xn,(pe={},Object(m.a)(pe,"".concat(Xn,"-horizontal"),he),Object(m.a)(pe,"".concat(Xn,"-vertical"),!he),Object(m.a)(pe,"".concat(Xn,"-visible"),Wt),pe)),style:oi,onMouseDown:pr,onMouseMove:rr},d.createElement("div",{ref:ut,className:n()("".concat(Xn,"-thumb"),Object(m.a)({},"".concat(Xn,"-thumb-moving"),at)),style:Ui,onMouseDown:Ct}))}),c=s;function h(ae){var lt=ae.children,pe=ae.setRef,J=d.useCallback(function(Y){pe(Y)},[]);return d.cloneElement(lt,{ref:J})}function g(ae,lt,pe,J,Y,ee,fe){var we=fe.getKey;return ae.slice(lt,pe+1).map(function(Ce,_e){var he=lt+_e,ye=ee(Ce,he,{style:{width:J}}),Le=we(Ce);return d.createElement(h,{key:Le,setRef:function(gt){return Y(Ce,gt)}},ye)})}var A=i("m+aA"),b=i("1OyB"),w=i("vuIU"),E=function(){function ae(){Object(b.a)(this,ae),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return Object(w.a)(ae,[{key:"set",value:function(pe,J){this.maps[pe]=J,this.id+=1}},{key:"get",value:function(pe){return this.maps[pe]}}]),ae}(),C=E;function _(ae,lt,pe){var J=d.useState(0),Y=Object(v.a)(J,2),ee=Y[0],fe=Y[1],we=Object(d.useRef)(new Map),Ce=Object(d.useRef)(new C),_e=Object(d.useRef)();function he(){u.a.cancel(_e.current)}function ye(){he(),_e.current=Object(u.a)(function(){we.current.forEach(function(tt,gt){if(tt&&tt.offsetParent){var at=Object(A.a)(tt),Fe=at.offsetHeight;Ce.current.get(gt)!==Fe&&Ce.current.set(gt,at.offsetHeight)}}),fe(function(tt){return tt+1})})}function Le(tt,gt){var at=ae(tt),Fe=we.current.get(at);gt?(we.current.set(at,gt),ye()):we.current.delete(at),!Fe!==!gt&&(gt?lt==null||lt(tt):pe==null||pe(tt))}return Object(d.useEffect)(function(){return he},[]),[Le,ye,Ce.current,ee]}function T(ae,lt,pe,J,Y,ee,fe,we){var Ce=d.useRef();return function(_e){if(_e==null){we();return}if(u.a.cancel(Ce.current),typeof _e=="number")fe(_e);else if(_e&&Object(x.a)(_e)==="object"){var he,ye=_e.align;"index"in _e?he=_e.index:he=lt.findIndex(function(at){return Y(at)===_e.key});var Le=_e.offset,tt=Le===void 0?0:Le,gt=function at(Fe,mt){if(Fe<0||!ae.current)return;var et=ae.current.clientHeight,St=!1,jt=mt;if(et){for(var Mt=mt||ye,Ot=0,Bt=0,Ke=0,de=Math.min(lt.length,he),se=0;se<=de;se+=1){var ut=Y(lt[se]);Bt=Ot;var qe=pe.get(ut);Ke=Bt+(qe===void 0?J:qe),Ot=Ke,se===he&&qe===void 0&&(St=!0)}var me=null;switch(Mt){case"top":me=Bt-tt;break;case"bottom":me=Ke-et+tt;break;default:{var Wt=ae.current.scrollTop,dr=Wt+et;Bt<Wt?jt="top":Ke>dr&&(jt="bottom")}}me!==null&&me!==ae.current.scrollTop&&fe(me)}Ce.current=Object(u.a)(function(){St&&ee(),at(Fe-1,jt)},2)};gt(3)}}}function S(ae,lt,pe,J){var Y=pe-ae,ee=lt-pe,fe=Math.min(Y,ee)*2;if(J<=fe){var we=Math.floor(J/2);return J%2?pe+we+1:pe-we}return Y>ee?pe-(J-ee):pe+(J-Y)}function O(ae,lt,pe){var J=ae.length,Y=lt.length,ee,fe;if(J===0&&Y===0)return null;J<Y?(ee=ae,fe=lt):(ee=lt,fe=ae);var we={__EMPTY_ITEM__:!0};function Ce(gt){return gt!==void 0?pe(gt):we}for(var _e=null,he=Math.abs(J-Y)!==1,ye=0;ye<fe.length;ye+=1){var Le=Ce(ee[ye]),tt=Ce(fe[ye]);if(Le!==tt){_e=ye,he=he||Le!==Ce(fe[ye+1]);break}}return _e===null?null:{index:_e,multiple:he}}function I(ae,lt,pe){var J=d.useState(ae),Y=Object(v.a)(J,2),ee=Y[0],fe=Y[1],we=d.useState(null),Ce=Object(v.a)(we,2),_e=Ce[0],he=Ce[1];return d.useEffect(function(){var ye=O(ee||[],ae||[],lt);(ye==null?void 0:ye.index)!==void 0&&(pe==null||pe(ye.index),he(ae[ye.index])),fe(ae)},[ae]),[_e]}var F=(typeof navigator=="undefined"?"undefined":Object(x.a)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),P=F,B=function(ae,lt){var pe=Object(d.useRef)(!1),J=Object(d.useRef)(null);function Y(){clearTimeout(J.current),pe.current=!0,J.current=setTimeout(function(){pe.current=!1},50)}var ee=Object(d.useRef)({top:ae,bottom:lt});return ee.current.top=ae,ee.current.bottom=lt,function(fe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ce=fe<0&&ee.current.top||fe>0&&ee.current.bottom;return we&&Ce?(clearTimeout(J.current),pe.current=!1):(!Ce||pe.current)&&Y(),!pe.current&&Ce}};function k(ae,lt,pe,J,Y){var ee=Object(d.useRef)(0),fe=Object(d.useRef)(null),we=Object(d.useRef)(null),Ce=Object(d.useRef)(!1),_e=B(lt,pe);function he(Fe,mt){if(u.a.cancel(fe.current),ee.current+=mt,we.current=mt,_e(mt))return;P||Fe.preventDefault(),fe.current=Object(u.a)(function(){var et=Ce.current?10:1;Y(ee.current*et),ee.current=0})}function ye(Fe,mt){Y(mt,!0),P||Fe.preventDefault()}var Le=Object(d.useRef)(null),tt=Object(d.useRef)(null);function gt(Fe){if(!ae)return;u.a.cancel(tt.current),tt.current=Object(u.a)(function(){Le.current=null},2);var mt=Fe.deltaX,et=Fe.deltaY,St=Fe.shiftKey,jt=mt,Mt=et;(Le.current==="sx"||!Le.current&&(St||!1)&&et&&!mt)&&(jt=et,Mt=0,Le.current="sx");var Ot=Math.abs(jt),Bt=Math.abs(Mt);Le.current===null&&(Le.current=J&&Ot>Bt?"x":"y"),Le.current==="y"?he(Fe,Mt):ye(Fe,jt)}function at(Fe){if(!ae)return;Ce.current=Fe.detail===we.current}return[gt,at]}var G=i("TNol"),M=14/15;function j(ae,lt,pe){var J=Object(d.useRef)(!1),Y=Object(d.useRef)(0),ee=Object(d.useRef)(null),fe=Object(d.useRef)(null),we,Ce=function(Le){if(J.current){var tt=Math.ceil(Le.touches[0].pageY),gt=Y.current-tt;Y.current=tt,pe(gt)&&Le.preventDefault(),clearInterval(fe.current),fe.current=setInterval(function(){gt*=M,(!pe(gt,!0)||Math.abs(gt)<=.1)&&clearInterval(fe.current)},16)}},_e=function(){J.current=!1,we()},he=function(Le){we(),Le.touches.length===1&&!J.current&&(J.current=!0,Y.current=Math.ceil(Le.touches[0].pageY),ee.current=Le.target,ee.current.addEventListener("touchmove",Ce),ee.current.addEventListener("touchend",_e))};we=function(){ee.current&&(ee.current.removeEventListener("touchmove",Ce),ee.current.removeEventListener("touchend",_e))},Object(G.a)(function(){return ae&<.current.addEventListener("touchstart",he),function(){var ye;(ye=lt.current)===null||ye===void 0||ye.removeEventListener("touchstart",he),we(),clearInterval(fe.current)}},[ae])}var K=20;function z(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,pe=ae/lt*100;return isNaN(pe)&&(pe=0),pe=Math.max(pe,K),pe=Math.min(pe,ae/2),Math.floor(pe)}var V=i("mBDr"),Q=i("6cGi"),X=i("c+Xe"),te=i("ub+h"),$=i("bG1m"),le=i("Kwbf");function re(ae,lt,pe,J){var Y=d.useMemo(function(){return[new Map,[]]},[ae,pe.id,J]),ee=Object(v.a)(Y,2),fe=ee[0],we=ee[1],Ce=function(he){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:he,Le=fe.get(he),tt=fe.get(ye);if(Le===void 0||tt===void 0)for(var gt=ae.length,at=we.length;at<gt;at+=1){var Fe,mt=ae[at],et=lt(mt);fe.set(et,at);var St=(Fe=pe.get(et))!==null&&Fe!==void 0?Fe:J;if(we[at]=(we[at-1]||0)+St,et===he&&(Le=at),et===ye&&(tt=at),Le!==void 0&&tt!==void 0)break}return{top:we[Le-1]||0,bottom:we[tt]}};return Ce}var Se=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender"],Re=[],Pe={overflowY:"auto",overflowAnchor:"none"};function Je(ae,lt){var pe=ae.prefixCls,J=pe===void 0?"rc-virtual-list":pe,Y=ae.className,ee=ae.height,fe=ae.itemHeight,we=ae.fullHeight,Ce=we===void 0?!0:we,_e=ae.style,he=ae.data,ye=ae.children,Le=ae.itemKey,tt=ae.virtual,gt=ae.direction,at=ae.scrollWidth,Fe=ae.component,mt=Fe===void 0?"div":Fe,et=ae.onScroll,St=ae.onVirtualScroll,jt=ae.onVisibleChange,Mt=ae.innerProps,Ot=ae.extraRender,Bt=Object(f.a)(ae,Se),Ke=!!(tt!==!1&&ee&&fe),de=Ke&&he&&fe*he.length>ee,se=gt==="rtl",ut=n()(J,Object(m.a)({},"".concat(J,"-rtl"),se),Y),qe=he||Re,me=Object(d.useRef)(),Wt=Object(d.useRef)(),dr=Object(d.useState)(0),vt=Object(v.a)(dr,2),rr=vt[0],ur=vt[1],mn=Object(d.useState)(0),sr=Object(v.a)(mn,2),xr=sr[0],pr=sr[1],Zt=Object(d.useState)(!1),Ct=Object(v.a)(Zt,2),on=Ct[0],Mn=Ct[1],Xn=function(){Mn(!0)},oi=function(){Mn(!1)},Ui=d.useCallback(function(an){return typeof Le=="function"?Le(an):an==null?void 0:an[Le]},[Le]),Un={getKey:Ui};function Qn(an){ur(function(Ur){var ii;typeof an=="function"?ii=an(Ur):ii=an;var _i=qn(ii);return me.current.scrollTop=_i,_i})}var $t=Object(d.useRef)({start:0,end:qe.length}),Nt=Object(d.useRef)(),Me=I(qe,Ui),ke=Object(v.a)(Me,1),Be=ke[0];Nt.current=Be;var it=_(Ui,null,null),yt=Object(v.a)(it,4),Tt=yt[0],Yt=yt[1],Pr=yt[2],$r=yt[3],An=d.useMemo(function(){if(!Ke)return{scrollHeight:void 0,start:0,end:qe.length-1,offset:void 0};if(!de){var an;return{scrollHeight:((an=Wt.current)===null||an===void 0?void 0:an.offsetHeight)||0,start:0,end:qe.length-1,offset:void 0}}for(var Ur=0,ii,_i,Gi,tn=qe.length,Tn=0;Tn<tn;Tn+=1){var Vn=qe[Tn],Xt=Ui(Vn),It=Pr.get(Xt),Pt=Ur+(It===void 0?fe:It);Pt>=rr&&ii===void 0&&(ii=Tn,_i=Ur),Pt>rr+ee&&Gi===void 0&&(Gi=Tn),Ur=Pt}return ii===void 0&&(ii=0,_i=0,Gi=Math.ceil(ee/fe)),Gi===void 0&&(Gi=qe.length-1),Gi=Math.min(Gi+1,qe.length-1),{scrollHeight:Ur,start:ii,end:Gi,offset:_i}},[de,Ke,rr,qe,$r,ee]),zt=An.scrollHeight,At=An.start,wt=An.end,vr=An.offset;$t.current.start=At,$t.current.end=wt;var Jt=d.useState({width:0,height:ee}),Ut=Object(v.a)(Jt,2),tr=Ut[0],Ft=Ut[1],qt=function(Ur){Ft(Ur)},Hr=Object(d.useRef)(),Nr=Object(d.useRef)(),Dr=d.useMemo(function(){return z(tr.width,at)},[tr.width,at]),cn=d.useMemo(function(){return z(tr.height,zt)},[tr.height,zt]),vn=zt-ee,ei=Object(d.useRef)(vn);ei.current=vn;function qn(an){var Ur=an;return Number.isNaN(ei.current)||(Ur=Math.min(Ur,ei.current)),Ur=Math.max(Ur,0),Ur}var fi=rr<=0,xi=rr>=vn,Ni=B(fi,xi),Hi=function(){return{x:se?-xr:xr,y:rr}},nt=Object(d.useRef)(Hi()),Ne=Object(V.a)(function(){if(St){var an=Hi();(nt.current.x!==an.x||nt.current.y!==an.y)&&(St(an),nt.current=an)}});function He(an,Ur){var ii=an;Ur?(Object(l.flushSync)(function(){pr(ii)}),Ne()):Qn(ii)}function Xe(an){var Ur=an.currentTarget.scrollTop;Ur!==rr&&Qn(Ur),et==null||et(an),Ne()}var rt=function(Ur){var ii=Ur,_i=at-tr.width;return ii=Math.max(ii,0),ii=Math.min(ii,_i),ii},Ze=Object(V.a)(function(an,Ur){Ur?(Object(l.flushSync)(function(){pr(function(ii){var _i=ii+(se?-an:an);return rt(_i)})}),Ne()):Qn(function(ii){var _i=ii+an;return _i})}),st=k(Ke,fi,xi,!!at,Ze),xt=Object(v.a)(st,2),pt=xt[0],hr=xt[1];j(Ke,me,function(an,Ur){return Ni(an,Ur)?!1:(pt({preventDefault:function(){},deltaY:an}),!0)}),Object(G.a)(function(){function an(ii){Ke&&ii.preventDefault()}var Ur=me.current;return Ur.addEventListener("wheel",pt),Ur.addEventListener("DOMMouseScroll",hr),Ur.addEventListener("MozMousePixelScroll",an),function(){Ur.removeEventListener("wheel",pt),Ur.removeEventListener("DOMMouseScroll",hr),Ur.removeEventListener("MozMousePixelScroll",an)}},[Ke]);var Zr=function(){var Ur,ii;(Ur=Hr.current)===null||Ur===void 0||Ur.delayHidden(),(ii=Nr.current)===null||ii===void 0||ii.delayHidden()},Xr=T(me,qe,Pr,fe,Ui,Yt,Qn,Zr);d.useImperativeHandle(lt,function(){return{getScrollInfo:Hi,scrollTo:function(Ur){function ii(_i){return _i&&Object(x.a)(_i)==="object"&&("left"in _i||"top"in _i)}ii(Ur)?(Ur.left!==void 0&&pr(rt(Ur.left)),Xr(Ur.top)):Xr(Ur)}}}),Object(G.a)(function(){if(jt){var an=qe.slice(At,wt+1);jt(an,qe)}},[At,wt,qe]);var pn=re(qe,Ui,Pr,fe),gr=Ot==null?void 0:Ot({start:At,end:wt,virtual:de,offsetX:xr,offsetY:vr,rtl:se,getSize:pn}),Kn=g(qe,At,wt,at,Tt,ye,Un),Rr=null;ee&&(Rr=Object(p.a)(Object(m.a)({},Ce?"height":"maxHeight",ee),Pe),Ke&&(Rr.overflowY="hidden",at&&(Rr.overflowX="hidden"),on&&(Rr.pointerEvents="none")));var Pn={};return se&&(Pn.dir="rtl"),d.createElement("div",Object(y.a)({style:Object(p.a)(Object(p.a)({},_e),{},{position:"relative"}),className:ut},Pn,Bt),d.createElement(t.a,{onResize:qt},d.createElement(mt,{className:"".concat(J,"-holder"),style:Rr,ref:me,onScroll:Xe,onMouseEnter:Zr},d.createElement(e,{prefixCls:J,height:zt,offsetX:xr,offsetY:vr,scrollWidth:at,onInnerResize:Yt,ref:Wt,innerProps:Mt,rtl:se,extra:gr},Kn))),de&&zt>ee&&d.createElement(c,{ref:Hr,prefixCls:J,scrollOffset:rr,scrollRange:zt,rtl:se,onScroll:He,onStartMove:Xn,onStopMove:oi,spinSize:cn,containerSize:tr.height}),de&&at&&d.createElement(c,{ref:Nr,prefixCls:J,scrollOffset:xr,scrollRange:at,rtl:se,onScroll:He,onStartMove:Xn,onStopMove:oi,spinSize:Dr,containerSize:tr.width,horizontal:!0}))}var Ge=d.forwardRef(Je);Ge.displayName="List";var ct=Ge,Ue=D.a=ct},"+rIm":function(R,D,i){var y=i("bYtY"),p=y.retrieve,x=y.defaults,v=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,A=function(M,j){this.opt=j,this.axisModel=M,x(j,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new d.Group;var K=new d.Group({position:j.position.slice(),rotation:j.rotation});K.updateTransform(),this._transform=K.transform,this._dumbGroup=K};A.prototype={constructor:A,hasBuilder:function(M){return!!b[M]},add:function(M){b[M].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var M=this.opt,j=this.axisModel;if(!j.get("axisLine.show"))return;var K=this.axisModel.axis.getExtent(),z=this._transform,V=[K[0],0],Q=[K[1],0];z&&(s(V,V,z),s(Q,Q,z));var X=v({lineCap:"round"},j.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new d.Line({anid:"line",subPixelOptimize:!0,shape:{x1:V[0],y1:V[1],x2:Q[0],y2:Q[1]},style:X,strokeContainThreshold:M.strokeContainThreshold||5,silent:!0,z2:1}));var te=j.get("axisLine.symbol"),$=j.get("axisLine.symbolSize"),le=j.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:M.rotation+Math.PI/2,offset:le[0],r:0},{rotate:M.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,X.stroke,!0),Ge=Re.r+Re.offset,ct=[V[0]+Ge*Math.cos(M.rotation),V[1]-Ge*Math.sin(M.rotation)];Je.attr({rotation:Re.rotate,position:ct,silent:!0,z2:11}),this.group.add(Je)}},this)}},axisTickLabel:function(){var M=this.axisModel,j=this.opt,K=P(this,M,j),z=k(this,M,j);T(M,z,K),B(this,M,j)},axisName:function(){var M=this.opt,j=this.axisModel,K=p(M.axisName,j.get("name"));if(!K)return;var z=j.get("nameLocation"),V=M.nameDirection,Q=j.getModel("nameTextStyle"),X=j.get("nameGap")||0,te=this.axisModel.axis.getExtent(),$=te[0]>te[1]?-1:1,le=[z==="start"?te[0]-$*X:z==="end"?te[1]+$*X:(te[0]+te[1])/2,I(z)?M.labelOffset+V*X:0],re,Se=j.get("nameRotate");Se!=null&&(Se=Se*g/180);var Re;I(z)?re=E(M.rotation,Se!=null?Se:M.rotation,V):(re=C(M,z,Se||0,te),Re=M.axisNameAvailableWidth,Re!=null&&(Re=Math.abs(Re/Math.sin(re.rotation)),!isFinite(Re)&&(Re=null)));var Pe=Q.getFont(),Je=j.get("nameTruncate",!0)||{},Ge=Je.ellipsis,ct=p(M.nameTruncateMaxWidth,Je.maxWidth,Re),Ue=Ge!=null&&ct!=null?f.truncateText(K,ct,Pe,Ge,{minChar:2,placeholder:Je.placeholder}):K,ae=j.get("tooltip",!0),lt=j.mainType,pe={componentType:lt,name:K,$vars:["name"]};pe[lt+"Index"]=j.componentIndex;var J=new d.Text({anid:"name",__fullText:K,__truncatedText:Ue,position:le,rotation:re.rotation,silent:_(j),z2:1,tooltip:ae&&ae.show?v({content:K,formatter:function(){return K},formatterParams:pe},ae):null});d.setTextStyle(J.style,Q,{text:Ue,textFont:Pe,textFill:Q.getTextColor()||j.get("axisLine.lineStyle.color"),textAlign:Q.get("align")||re.textAlign,textVerticalAlign:Q.get("verticalAlign")||re.textVerticalAlign}),j.get("triggerEvent")&&(J.eventData=w(j),J.eventData.targetType="axisName",J.eventData.name=K),this._dumbGroup.add(J),J.updateTransform(),this.group.add(J),J.decomposeTransform()}},w=A.makeAxisEventDataBase=function(M){var j={componentType:M.mainType,componentIndex:M.componentIndex};return j[M.mainType+"Index"]=M.componentIndex,j},E=A.innerTextLayout=function(M,j,K){var z=t(j-M),V,Q;return n(z)?(Q=K>0?"top":"bottom",V="center"):n(z-g)?(Q=K>0?"bottom":"top",V="center"):(Q="middle",z>0&&z<g?V=K>0?"right":"left":V=K>0?"left":"right"),{rotation:z,textAlign:V,textVerticalAlign:Q}};function C(M,j,K,z){var V=t(K-M.rotation),Q,X,te=z[0]>z[1],$=j==="start"&&!te||j!=="start"&&te;return n(V-g/2)?(X=$?"bottom":"top",Q="center"):n(V-g*1.5)?(X=$?"top":"bottom",Q="center"):(X="middle",V<g*1.5&&V>g/2?Q=$?"left":"right":Q=$?"right":"left"),{rotation:V,textAlign:Q,textVerticalAlign:X}}var _=A.isLabelSilent=function(M){var j=M.get("tooltip");return M.get("silent")||!(M.get("triggerEvent")||j&&j.show)};function T(M,j,K){if(h(M.axis))return;var z=M.get("axisLabel.showMinLabel"),V=M.get("axisLabel.showMaxLabel");j=j||[],K=K||[];var Q=j[0],X=j[1],te=j[j.length-1],$=j[j.length-2],le=K[0],re=K[1],Se=K[K.length-1],Re=K[K.length-2];z===!1?(S(Q),S(le)):O(Q,X)&&(z?(S(X),S(re)):(S(Q),S(le))),V===!1?(S(te),S(Se)):O($,te)&&(V?(S($),S(Re)):(S(te),S(Se)))}function S(M){M&&(M.ignore=!0)}function O(M,j,K){var z=M&&M.getBoundingRect().clone(),V=j&&j.getBoundingRect().clone();if(!z||!V)return;var Q=u.identity([]);return u.rotate(Q,Q,-M.rotation),z.applyTransform(u.mul([],Q,M.getLocalTransform())),V.applyTransform(u.mul([],Q,j.getLocalTransform())),z.intersect(V)}function I(M){return M==="middle"||M==="center"}function F(M,j,K,z,V){for(var Q=[],X=[],te=[],$=0;$<M.length;$++){var le=M[$].coord;X[0]=le,X[1]=0,te[0]=le,te[1]=K,j&&(s(X,X,j),s(te,te,j));var re=new d.Line({anid:V+"_"+M[$].tickValue,subPixelOptimize:!0,shape:{x1:X[0],y1:X[1],x2:te[0],y2:te[1]},style:z,z2:2,silent:!0});Q.push(re)}return Q}function P(M,j,K){var z=j.axis,V=j.getModel("axisTick");if(!V.get("show")||z.scale.isBlank())return;for(var Q=V.getModel("lineStyle"),X=K.tickDirection*V.get("length"),te=z.getTicksCoords(),$=F(te,M._transform,X,x(Q.getLineStyle(),{stroke:j.get("axisLine.lineStyle.color")}),"ticks"),le=0;le<$.length;le++)M.group.add($[le]);return $}function B(M,j,K){var z=j.axis,V=j.getModel("minorTick");if(!V.get("show")||z.scale.isBlank())return;var Q=z.getMinorTicksCoords();if(!Q.length)return;for(var X=V.getModel("lineStyle"),te=K.tickDirection*V.get("length"),$=x(X.getLineStyle(),x(j.getModel("axisTick").getLineStyle(),{stroke:j.get("axisLine.lineStyle.color")})),le=0;le<Q.length;le++)for(var re=F(Q[le],M._transform,te,$,"minorticks_"+le),Se=0;Se<re.length;Se++)M.group.add(re[Se])}function k(M,j,K){var z=j.axis,V=p(K.axisLabelShow,j.get("axisLabel.show"));if(!V||z.scale.isBlank())return;var Q=j.getModel("axisLabel"),X=Q.get("margin"),te=z.getViewLabels(),$=(p(K.labelRotate,Q.get("rotate"))||0)*g/180,le=E(K.rotation,$,K.labelDirection),re=j.getCategories&&j.getCategories(!0),Se=[],Re=_(j),Pe=j.get("triggerEvent");return m(te,function(Je,Ge){var ct=Je.tickValue,Ue=Je.formattedLabel,ae=Je.rawLabel,lt=Q;re&&re[ct]&&re[ct].textStyle&&(lt=new l(re[ct].textStyle,Q,j.ecModel));var pe=lt.getTextColor()||j.get("axisLine.lineStyle.color"),J=z.dataToCoord(ct),Y=[J,K.labelOffset+K.labelDirection*X],ee=new d.Text({anid:"label_"+ct,position:Y,rotation:le.rotation,silent:Re,z2:10});d.setTextStyle(ee.style,lt,{text:Ue,textAlign:lt.getShallow("align",!0)||le.textAlign,textVerticalAlign:lt.getShallow("verticalAlign",!0)||lt.getShallow("baseline",!0)||le.textVerticalAlign,textFill:typeof pe=="function"?pe(z.type==="category"?ae:z.type==="value"?ct+"":ct,Ge):pe}),Pe&&(ee.eventData=w(j),ee.eventData.targetType="axisLabel",ee.eventData.value=ae),M._dumbGroup.add(ee),ee.updateTransform(),Se.push(ee),M.group.add(ee),ee.decomposeTransform()}),Se}var G=A;R.exports=G},"+wW9":function(R,D,i){var y=i("bYtY"),p=y.each,x=y.isArray,v=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,A=0;A<r.length-1;A++)g=r[A],h[g]==null&&(h[g]={}),h=h[g];(c||h[r[A]]==null)&&(h[r[A]]=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(!v(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&&(x(c)||(c=[c]),p(c,function(h){n(h)}))})}R.exports=e},"/IIm":function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=i("H6uX"),m=i("IwbS"),f=i("pP6R"),d=i("gPAo"),l=x.curry,o=x.each,n=x.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"},A={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},b=0;function w(he){v.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,Le){this._handlers[Le]=x.bind(ye,this)},this)}w.prototype={constructor:w,enableBrush:function(he){return this._brushType&&C(this),he.brushType&&E(this,he),this},setPanels:function(he){if(he&&he.length){var ye=this._panels={};x.each(he,function(Le){ye[Le.panelId]=x.clone(Le)})}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=x.map(he,function(jt){return x.merge(x.clone(A),jt,!0)});var ye="\0-brush-index-",Le=this._covers,tt=this._covers=[],gt=this,at=this._creatingCover;return new d(Le,he,mt,Fe).add(et).update(et).remove(St).execute(),this;function Fe(jt,Mt){return(jt.id!=null?jt.id:ye+Mt)+"-"+jt.brushType}function mt(jt,Mt){return Fe(jt.__brushOption,Mt)}function et(jt,Mt){var Ot=he[jt];if(Mt!=null&&Le[Mt]===at)tt[jt]=Le[Mt];else{var Bt=tt[jt]=Mt!=null?(Le[Mt].__brushOption=Ot,Le[Mt]):O(gt,S(gt,Ot));P(gt,Bt)}}function St(jt){Le[jt]!==at&>.group.remove(Le[jt])}},unmount:function(){return this.enableBrush(!1),M(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},x.mixin(w,v);function E(he,ye){var Le=he._zr;he._enableGlobalPan||f.take(Le,c,he._uid),_(Le,he._handlers),he._brushType=ye.brushType,he._brushOption=x.merge(x.clone(A),ye,!0)}function C(he){var ye=he._zr;f.release(ye,c,he._uid),T(ye,he._handlers),he._brushType=he._brushOption=null}function _(he,ye){o(ye,function(Le,tt){he.on(tt,Le)})}function T(he,ye){o(ye,function(Le,tt){he.off(tt,Le)})}function S(he,ye){var Le=we[ye.brushType].createCover(he,ye);return Le.__brushOption=ye,F(Le,ye),he.group.add(Le),Le}function O(he,ye){var Le=B(ye);return Le.endCreating&&(Le.endCreating(he,ye),F(ye,ye.__brushOption)),ye}function I(he,ye){var Le=ye.__brushOption;B(ye).updateCoverShape(he,ye,Le.range,Le)}function F(he,ye){var Le=ye.z;Le==null&&(Le=u),he.traverse(function(tt){tt.z=Le,tt.z2=Le})}function P(he,ye){B(ye).updateCommon(he,ye),I(he,ye)}function B(he){return we[he.__brushOption.brushType]}function k(he,ye,Le){var tt=he._panels;if(!tt)return!0;var gt,at=he._transform;return o(tt,function(Fe){Fe.isTargetByCursor(ye,Le,at)&&(gt=Fe)}),gt}function G(he,ye){var Le=he._panels;if(!Le)return!0;var tt=ye.__brushOption.panelId;return tt!=null?Le[tt]:!0}function M(he){var ye=he._covers,Le=ye.length;return o(ye,function(tt){he.group.remove(tt)},he),ye.length=0,!!Le}function j(he,ye){var Le=n(he._covers,function(tt){var gt=tt.__brushOption,at=x.clone(gt.range);return{brushType:gt.brushType,panelId:gt.panelId,range:at}});he.trigger("brush",Le,{isEnd:!!ye.isEnd,removeOnClick:!!ye.removeOnClick})}function K(he){var ye=he._track;if(!ye.length)return!1;var Le=ye[ye.length-1],tt=ye[0],gt=Le[0]-tt[0],at=Le[1]-tt[1],Fe=e(gt*gt+at*at,.5);return Fe>r}function z(he){var ye=he.length-1;return ye<0&&(ye=0),[he[0],he[ye]]}function V(he,ye,Le,tt){var gt=new m.Group;return gt.add(new m.Rect({name:"main",style:$(Le),silent:!0,draggable:!0,cursor:"move",drift:l(he,ye,gt,"nswe"),ondragend:l(j,ye,{isEnd:!0})})),o(tt,function(at){gt.add(new m.Rect({name:at,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:l(he,ye,gt,at),ondragend:l(j,ye,{isEnd:!0})}))}),gt}function Q(he,ye,Le,tt){var gt=tt.brushStyle.lineWidth||0,at=a(gt,s),Fe=Le[0][0],mt=Le[1][0],et=Fe-gt/2,St=mt-gt/2,jt=Le[0][1],Mt=Le[1][1],Ot=jt-at+gt/2,Bt=Mt-at+gt/2,Ke=jt-Fe,de=Mt-mt,se=Ke+gt,ut=de+gt;te(he,ye,"main",Fe,mt,Ke,de),tt.transformable&&(te(he,ye,"w",et,St,at,ut),te(he,ye,"e",Ot,St,at,ut),te(he,ye,"n",et,St,se,at),te(he,ye,"s",et,Bt,se,at),te(he,ye,"nw",et,St,at,at),te(he,ye,"ne",Ot,St,at,at),te(he,ye,"sw",et,Bt,at,at),te(he,ye,"se",Ot,Bt,at,at))}function X(he,ye){var Le=ye.__brushOption,tt=Le.transformable,gt=ye.childAt(0);gt.useStyle($(Le)),gt.attr({silent:!tt,cursor:tt?"move":"default"}),o(["w","e","n","s","se","sw","ne","nw"],function(at){var Fe=ye.childOfName(at),mt=Se(he,at);Fe&&Fe.attr({silent:!tt,invisible:!tt,cursor:tt?g[mt]+"-resize":null})})}function te(he,ye,Le,tt,gt,at,Fe){var mt=ye.childOfName(Le);mt&&mt.setShape(ct(Ge(he,ye,[[tt,gt],[tt+at,gt+Fe]])))}function $(he){return x.defaults({strokeNoScale:!0},he.brushStyle)}function le(he,ye,Le,tt){var gt=[t(he,Le),t(ye,tt)],at=[a(he,Le),a(ye,tt)];return[[gt[0],at[0]],[gt[1],at[1]]]}function re(he){return m.getTransform(he.group)}function Se(he,ye){if(ye.length>1){ye=ye.split("");var Le=[Se(he,ye[0]),Se(he,ye[1])];return(Le[0]==="e"||Le[0]==="w")&&Le.reverse(),Le.join("")}else{var tt={w:"left",e:"right",n:"top",s:"bottom"},gt={left:"w",right:"e",top:"n",bottom:"s"},Le=m.transformDirection(tt[ye],re(he));return gt[Le]}}function Re(he,ye,Le,tt,gt,at,Fe,mt){var et=tt.__brushOption,St=he(et.range),jt=Je(Le,at,Fe);o(gt.split(""),function(Mt){var Ot=h[Mt];St[Ot[0]][Ot[1]]+=jt[Ot[0]]}),et.range=ye(le(St[0][0],St[1][0],St[0][1],St[1][1])),P(Le,tt),j(Le,{isEnd:!1})}function Pe(he,ye,Le,tt,gt){var at=ye.__brushOption.range,Fe=Je(he,Le,tt);o(at,function(mt){mt[0]+=Fe[0],mt[1]+=Fe[1]}),P(he,ye),j(he,{isEnd:!1})}function Je(he,ye,Le){var tt=he.group,gt=tt.transformCoordToLocal(ye,Le),at=tt.transformCoordToLocal(0,0);return[gt[0]-at[0],gt[1]-at[1]]}function Ge(he,ye,Le){var tt=G(he,ye);return tt&&tt!==!0?tt.clipPath(Le,he._transform):x.clone(Le)}function ct(he){var ye=t(he[0][0],he[1][0]),Le=t(he[0][1],he[1][1]),tt=a(he[0][0],he[1][0]),gt=a(he[0][1],he[1][1]);return{x:ye,y:Le,width:tt-ye,height:gt-Le}}function Ue(he,ye,Le){if(!he._brushType||fe(he,ye))return;var tt=he._zr,gt=he._covers,at=k(he,ye,Le);if(!he._dragging)for(var Fe=0;Fe<gt.length;Fe++){var mt=gt[Fe].__brushOption;if(at&&(at===!0||mt.panelId===at.panelId)&&we[mt.brushType].contain(gt[Fe],Le[0],Le[1]))return}at&&tt.setCursorStyle("crosshair")}function ae(he){var ye=he.event;ye.preventDefault&&ye.preventDefault()}function lt(he,ye,Le){return he.childOfName("main").contain(ye,Le)}function pe(he,ye,Le,tt){var gt=he._creatingCover,at=he._creatingPanel,Fe=he._brushOption,mt;if(he._track.push(Le.slice()),K(he)||gt){if(at&&!gt){Fe.brushMode==="single"&&M(he);var et=x.clone(Fe);et.brushType=J(et.brushType,at),et.panelId=at===!0?null:at.panelId,gt=he._creatingCover=S(he,et),he._covers.push(gt)}if(gt){var St=we[J(he._brushType,at)],jt=gt.__brushOption;jt.range=St.getCreatingRange(Ge(he,gt,he._track)),tt&&(O(he,gt),St.updateCommon(he,gt)),I(he,gt),mt={isEnd:tt}}}else tt&&Fe.brushMode==="single"&&Fe.removeOnClick&&(k(he,ye,Le)&&M(he)&&(mt={isEnd:tt,removeOnClick:!0}));return mt}function J(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){ae(he);var ye=this.group.transformCoordToLocal(he.offsetX,he.offsetY);this._creatingCover=null;var Le=this._creatingPanel=k(this,he,ye);Le&&(this._dragging=!0,this._track=[ye.slice()])}},mousemove:function(he){var ye=he.offsetX,Le=he.offsetY,tt=this.group.transformCoordToLocal(ye,Le);if(Ue(this,he,tt),this._dragging){ae(he);var gt=pe(this,he,tt,!1);gt&&j(this,gt)}},mouseup:function(he){ee(this,he)}};function ee(he,ye){if(he._dragging){ae(ye);var Le=ye.offsetX,tt=ye.offsetY,gt=he.group.transformCoordToLocal(Le,tt),at=pe(he,ye,gt,!0);he._dragging=!1,he._track=[],he._creatingCover=null,at&&j(he,at)}}function fe(he,ye,Le){var tt=he._zr;return ye<0||ye>tt.getWidth()||Le<0||Le>tt.getHeight()}var we={lineX:Ce(0),lineY:Ce(1),rect:{createCover:function(he,ye){return V(l(Re,function(Le){return Le},function(Le){return Le}),he,ye,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(he){var ye=z(he);return le(ye[1][0],ye[1][1],ye[0][0],ye[0][1])},updateCoverShape:function(he,ye,Le,tt){Q(he,ye,Le,tt)},updateCommon:X,contain:lt},polygon:{createCover:function(he,ye){var Le=new m.Group;return Le.add(new m.Polyline({name:"main",style:$(ye),silent:!0})),Le},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(j,he,{isEnd:!0})}))},updateCoverShape:function(he,ye,Le,tt){ye.childAt(0).setShape({points:Ge(he,ye,Le)})},updateCommon:X,contain:lt}};function Ce(he){return{createCover:function(ye,Le){return V(l(Re,function(tt){var gt=[tt,[0,100]];return he&>.reverse(),gt},function(tt){return tt[he]}),ye,Le,[["w","e"],["n","s"]][he])},getCreatingRange:function(ye){var Le=z(ye),tt=t(Le[0][he],Le[1][he]),gt=a(Le[0][he],Le[1][he]);return[tt,gt]},updateCoverShape:function(ye,Le,tt,gt){var at,Fe=G(ye,Le);if(Fe!==!0&&Fe.getLinearBrushOtherExtent)at=Fe.getLinearBrushOtherExtent(he,ye._transform);else{var mt=ye._zr;at=[0,[mt.getWidth(),mt.getHeight()][1-he]]}var et=[tt,at];he&&et.reverse(),Q(ye,Le,et,gt)},updateCommon:X,contain:lt}}var _e=w;R.exports=_e},"/MfK":function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="DeleteOutlined";var d=D.a=p.forwardRef(f)},"/POA":function(R,D,i){!function(y,p){if(!0)R.exports=p();else var x,v}(window,function(){return function(y){var p={};function x(v){if(p[v])return p[v].exports;var m=p[v]={i:v,l:!1,exports:{}};return y[v].call(m.exports,m,m.exports,x),m.l=!0,m.exports}return x.m=y,x.c=p,x.d=function(v,m,f){x.o(v,m)||Object.defineProperty(v,m,{enumerable:!0,get:f})},x.r=function(v){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},x.t=function(v,m){if(1&m&&(v=x(v)),8&m)return v;if(4&m&&typeof v=="object"&&v&&v.__esModule)return v;var f=Object.create(null);if(x.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:v}),2&m&&typeof v!="string")for(var d in v)x.d(f,d,function(l){return v[l]}.bind(null,d));return f},x.n=function(v){var m=v&&v.__esModule?function(){return v.default}:function(){return v};return x.d(m,"a",m),m},x.o=function(v,m){return Object.prototype.hasOwnProperty.call(v,m)},x.p="",x(x.s=34)}([function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.forwardEvent=p.EventEmitter=void 0;var v=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=v,p.forwardEvent=function(m,f){return m(function(d){return f.fire(d)})}},function(y,p,x){"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 v=x(14);p.IBufferService=v.createDecorator("BufferService"),p.ICoreMouseService=v.createDecorator("CoreMouseService"),p.ICoreService=v.createDecorator("CoreService"),p.ICharsetService=v.createDecorator("CharsetService"),p.IDirtyRowService=v.createDecorator("DirtyRowService"),p.IInstantiationService=v.createDecorator("InstantiationService"),p.ILogService=v.createDecorator("LogService"),p.IOptionsService=v.createDecorator("OptionsService"),p.IUnicodeService=v.createDecorator("UnicodeService")},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getDisposeArrayDisposable=p.disposeArray=p.Disposable=void 0;var v=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=v,p.disposeArray=m,p.getDisposeArrayDisposable=function(f){return{dispose:function(){return m(f)}}}},function(y,p,x){"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,x){"use strict";var v,m=this&&this.__extends||(v=function(t,a){return(v=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}v(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=x(8),d=x(3),l=x(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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ISoundService=p.ISelectionService=p.IRenderService=p.IMouseService=p.ICoreBrowserService=p.ICharSizeService=void 0;var v=x(14);p.ICharSizeService=v.createDecorator("CharSizeService"),p.ICoreBrowserService=v.createDecorator("CoreBrowserService"),p.IMouseService=v.createDecorator("MouseService"),p.IRenderService=v.createDecorator("RenderService"),p.ISelectionService=v.createDecorator("SelectionService"),p.ISoundService=v.createDecorator("SoundService")},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ExtendedAttrs=p.AttributeData=void 0;var v=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=v;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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.addDisposableDomListener=void 0,p.addDisposableDomListener=function(v,m,f,d){v.addEventListener(m,f,d);var l=!1;return{dispose:function(){l||(l=!0,v.removeEventListener(m,f,d))}}}},function(y,p,x){"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 v=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=v;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,A=void 0;(A=63&this.interim[++g])&&g<4;)h<<=6,h|=A;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&(A=d[s++]))!=128){s--,c=!0;break}this.interim[g++]=A,h<<=6,h|=63&A}c||(b===2?h<128?s--:l[u++]=h:b===3?h<2048||h>=55296&&h<=57343||(l[u++]=h):h<65536||h>1114111||(l[u++]=h)),this.interim.fill(0)}for(var E=o-4,C=s;C<o;){for(;!(!(C<E)||128&(n=d[C])||128&(t=d[C+1])||128&(a=d[C+2])||128&(e=d[C+3]));)l[u++]=n,l[u++]=t,l[u++]=a,l[u++]=e,C+=4;if((n=d[C++])<128)l[u++]=n;else if((224&n)==192){if(C>=o)return this.interim[0]=n,u;if((192&(t=d[C++]))!=128){C--;continue}if((r=(31&n)<<6|63&t)<128){C--;continue}l[u++]=r}else if((240&n)==224){if(C>=o)return this.interim[0]=n,u;if((192&(t=d[C++]))!=128){C--;continue}if(C>=o)return this.interim[0]=n,this.interim[1]=t,u;if((192&(a=d[C++]))!=128){C--;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(C>=o)return this.interim[0]=n,u;if((192&(t=d[C++]))!=128){C--;continue}if(C>=o)return this.interim[0]=n,this.interim[1]=t,u;if((192&(a=d[C++]))!=128){C--;continue}if(C>=o)return this.interim[0]=n,this.interim[1]=t,this.interim[2]=a,u;if((192&(e=d[C++]))!=128){C--;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,x){"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,x){"use strict";var v,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}}(v=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),A=c+Math.round((u-c)*a),b=h+Math.round((r-h)*a);return{css:v.toCss(g,A,b),rgba:v.toRgba(g,A,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:v.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:v.toCss(u,r,s,a),rgba:v.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,A=u>>16&255,b=u>>8&255,w=o(f.relativeLuminance2(g,b,A),f.relativeLuminance2(s,c,h));w<r&&(g>0||A>0||b>0);)g-=Math.max(0,Math.ceil(.1*g)),A-=Math.max(0,Math.ceil(.1*A)),b-=Math.max(0,Math.ceil(.1*b)),w=o(f.relativeLuminance2(g,b,A),f.relativeLuminance2(s,c,h));return(g<<24|A<<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,A=u>>16&255,b=u>>8&255,w=o(f.relativeLuminance2(g,b,A),f.relativeLuminance2(s,c,h));w<r&&(g<255||A<255||b<255);)g=Math.min(255,g+Math.ceil(.1*(255-g))),A=Math.min(255,A+Math.ceil(.1*(255-A))),b=Math.min(255,b+Math.ceil(.1*(255-b))),w=o(f.relativeLuminance2(g,b,A),f.relativeLuminance2(s,c,h));return(g<<24|A<<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:v.toCss(e,u,r),rgba:v.toRgba(e,u,r)}}}(d=p.rgba||(p.rgba={})),p.toPaddedHex=l,p.contrastRatio=o},function(y,p,x){"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 v=typeof navigator=="undefined",m=v?"node":navigator.userAgent,f=v?"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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.C1=p.C0=void 0,function(v){v.NUL="\0",v.SOH="",v.STX="",v.ETX="",v.EOT="",v.ENQ="",v.ACK="",v.BEL="\x07",v.BS="\b",v.HT=" ",v.LF=`
|
|
|
`,v.VT="\v",v.FF="\f",v.CR="\r",v.SO="",v.SI="",v.DLE="",v.DC1="",v.DC2="",v.DC3="",v.DC4="",v.NAK="",v.SYN="",v.ETB="",v.CAN="",v.EM="",v.SUB="",v.ESC="",v.FS="",v.GS="",v.RS="",v.US="",v.SP=" ",v.DEL="\x7F"}(p.C0||(p.C0={})),function(v){v.PAD="\x80",v.HOP="\x81",v.BPH="\x82",v.NBH="\x83",v.IND="\x84",v.NEL="\x85",v.SSA="\x86",v.ESA="\x87",v.HTS="\x88",v.HTJ="\x89",v.VTS="\x8A",v.PLD="\x8B",v.PLU="\x8C",v.RI="\x8D",v.SS2="\x8E",v.SS3="\x8F",v.DCS="\x90",v.PU1="\x91",v.PU2="\x92",v.STS="\x93",v.CCH="\x94",v.MW="\x95",v.SPA="\x96",v.EPA="\x97",v.SOS="\x98",v.SGCI="\x99",v.SCI="\x9A",v.CSI="\x9B",v.ST="\x9C",v.OSC="\x9D",v.PM="\x9E",v.APC="\x9F"}(p.C1||(p.C1={}))},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BaseRenderLayer=void 0;var v=x(3),m=x(9),f=x(25),d=x(6),l=x(28),o=x(10),n=x(17),t=function(){function a(e,u,r,s,c,h,g,A){this._container=e,this._alpha=s,this._colors=c,this._rendererId=h,this._bufferService=g,this._optionsService=A,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+u+"-layer"),this._canvas.style.zIndex=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return 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()?v.DEFAULT_COLOR:e.getBgColor(),s=e.isFgDefault()?v.DEFAULT_COLOR:e.getFgColor()),s+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&s<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||v.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||v.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(),A=!!e.isInverse();if(g){var b=r;r=c,c=b;var w=s;s=h,h=w}var E=this._resolveBackgroundRgba(h,c,g),C=this._resolveForegroundRgba(s,r,g,A),_=o.rgba.ensureContrastRatio(E,C,this._optionsService.options.minimumContrastRatio);if(_){var T={css:o.channels.toCss(_>>24&255,_>>16&255,_>>8&255),rgba:_};return this._colors.contrastCache.setColor(e.bg,e.fg,T),T}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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createDecorator=p.getServiceDependencies=p.serviceRegistry=void 0;function v(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");v(d,l,n)};return f.toString=function(){return m},p.serviceRegistry.set(m,f),f}},function(y,p,x){"use strict";function v(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):v(m,f,d,l)},p.fillFallback=v,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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BufferLine=p.DEFAULT_ATTR_DATA=void 0;var v=x(8),m=x(3),f=x(4),d=x(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?v.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?v.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]+=v.stringFromCodePoint(t):(2097151&a?(this._combined[n]=v.stringFromCodePoint(2097151&a)+v.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?v.stringFromCodePoint(r):m.WHITESPACE_CELL_CHAR,t+=u>>22||1}return e},o}();p.BufferLine=l},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.removeElementFromParent=void 0,p.removeElementFromParent=function(){for(var v,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];(v=o==null?void 0:o.parentElement)===null||v===void 0||v.removeChild(o)}}},function(y,p,x){"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,x){"use strict";var v,m=this&&this.__extends||(v=function(_,T){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var I in O)O.hasOwnProperty(I)&&(S[I]=O[I])})(_,T)},function(C,_){function T(){this.constructor=C}v(C,_),C.prototype=_===null?Object.create(_):(T.prototype=_.prototype,new T)});Object.defineProperty(p,"__esModule",{value:!0}),p.InputHandler=p.WindowsOptionsReportType=void 0;var f,d=x(12),l=x(20),o=x(39),n=x(2),t=x(15),a=x(8),e=x(16),u=x(0),r=x(3),s=x(4),c=x(6),h=x(22),g=x(24),A={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function b(C,_){if(C>24)return _.setWinLines||!1;switch(C){case 1:return!!_.restoreWin;case 2:return!!_.minimizeWin;case 3:return!!_.setWinPosition;case 4:return!!_.setWinSizePixels;case 5:return!!_.raiseWin;case 6:return!!_.lowerWin;case 7:return!!_.refreshWin;case 8:return!!_.setWinSizeChars;case 9:return!!_.maximizeWin;case 10:return!!_.fullscreenWin;case 11:return!!_.getWinState;case 13:return!!_.getWinPosition;case 14:return!!_.getWinSizePixels;case 15:return!!_.getScreenSizePixels;case 16:return!!_.getCellSizePixels;case 18:return!!_.getWinSizeChars;case 19:return!!_.getScreenSizeChars;case 20:return!!_.getIconTitle;case 21:return!!_.getWinTitle;case 22:return!!_.pushTitle;case 23:return!!_.popTitle;case 24:return!!_.setWinLines}return!1}!function(C){C[C.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",C[C.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(f=p.WindowsOptionsReportType||(p.WindowsOptionsReportType={}));var w=function(){function C(_,T,S,O){this._bufferService=_,this._coreService=T,this._logService=S,this._optionsService=O,this._data=new Uint32Array(0)}return C.prototype.hook=function(_){this._data=new Uint32Array(0)},C.prototype.put=function(_,T,S){this._data=t.concat(this._data,_.subarray(T,S))},C.prototype.unhook=function(_){if(_){var T=a.utf32ToString(this._data);switch(this._data=new Uint32Array(0),T){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 S=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r"+S+d.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r0m"+d.C0.ESC+"\\");case" q":var O={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return O-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(d.C0.ESC+"P1$r"+O+" q"+d.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",T),this._coreService.triggerDataEvent(d.C0.ESC+"P0$r"+d.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},C}(),E=function(C){function _(T,S,O,I,F,P,B,k,G){G===void 0&&(G=new o.EscapeSequenceParser);var M=C.call(this)||this;M._bufferService=T,M._charsetService=S,M._coreService=O,M._dirtyRowService=I,M._logService=F,M._optionsService=P,M._coreMouseService=B,M._unicodeService=k,M._parser=G,M._parseBuffer=new Uint32Array(4096),M._stringDecoder=new a.StringToUtf32,M._utf8Decoder=new a.Utf8ToUtf32,M._workCell=new s.CellData,M._windowTitle="",M._iconName="",M._windowTitleStack=[],M._iconNameStack=[],M._curAttrData=e.DEFAULT_ATTR_DATA.clone(),M._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),M._onRequestBell=new u.EventEmitter,M._onRequestRefreshRows=new u.EventEmitter,M._onRequestReset=new u.EventEmitter,M._onRequestScroll=new u.EventEmitter,M._onRequestSyncScrollBar=new u.EventEmitter,M._onRequestWindowsOptionsReport=new u.EventEmitter,M._onA11yChar=new u.EventEmitter,M._onA11yTab=new u.EventEmitter,M._onCursorMove=new u.EventEmitter,M._onLineFeed=new u.EventEmitter,M._onScroll=new u.EventEmitter,M._onTitleChange=new u.EventEmitter,M.register(M._parser),M._parser.setCsiHandlerFallback(function(V,Q){M._logService.debug("Unknown CSI code: ",{identifier:M._parser.identToString(V),params:Q.toArray()})}),M._parser.setEscHandlerFallback(function(V){M._logService.debug("Unknown ESC code: ",{identifier:M._parser.identToString(V)})}),M._parser.setExecuteHandlerFallback(function(V){M._logService.debug("Unknown EXECUTE code: ",{code:V})}),M._parser.setOscHandlerFallback(function(V,Q,X){M._logService.debug("Unknown OSC code: ",{identifier:V,action:Q,data:X})}),M._parser.setDcsHandlerFallback(function(V,Q,X){Q==="HOOK"&&(X=X.toArray()),M._logService.debug("Unknown DCS code: ",{identifier:M._parser.identToString(V),action:Q,payload:X})}),M._parser.setPrintHandler(function(V,Q,X){return M.print(V,Q,X)}),M._parser.setCsiHandler({final:"@"},function(V){return M.insertChars(V)}),M._parser.setCsiHandler({intermediates:" ",final:"@"},function(V){return M.scrollLeft(V)}),M._parser.setCsiHandler({final:"A"},function(V){return M.cursorUp(V)}),M._parser.setCsiHandler({intermediates:" ",final:"A"},function(V){return M.scrollRight(V)}),M._parser.setCsiHandler({final:"B"},function(V){return M.cursorDown(V)}),M._parser.setCsiHandler({final:"C"},function(V){return M.cursorForward(V)}),M._parser.setCsiHandler({final:"D"},function(V){return M.cursorBackward(V)}),M._parser.setCsiHandler({final:"E"},function(V){return M.cursorNextLine(V)}),M._parser.setCsiHandler({final:"F"},function(V){return M.cursorPrecedingLine(V)}),M._parser.setCsiHandler({final:"G"},function(V){return M.cursorCharAbsolute(V)}),M._parser.setCsiHandler({final:"H"},function(V){return M.cursorPosition(V)}),M._parser.setCsiHandler({final:"I"},function(V){return M.cursorForwardTab(V)}),M._parser.setCsiHandler({final:"J"},function(V){return M.eraseInDisplay(V)}),M._parser.setCsiHandler({prefix:"?",final:"J"},function(V){return M.eraseInDisplay(V)}),M._parser.setCsiHandler({final:"K"},function(V){return M.eraseInLine(V)}),M._parser.setCsiHandler({prefix:"?",final:"K"},function(V){return M.eraseInLine(V)}),M._parser.setCsiHandler({final:"L"},function(V){return M.insertLines(V)}),M._parser.setCsiHandler({final:"M"},function(V){return M.deleteLines(V)}),M._parser.setCsiHandler({final:"P"},function(V){return M.deleteChars(V)}),M._parser.setCsiHandler({final:"S"},function(V){return M.scrollUp(V)}),M._parser.setCsiHandler({final:"T"},function(V){return M.scrollDown(V)}),M._parser.setCsiHandler({final:"X"},function(V){return M.eraseChars(V)}),M._parser.setCsiHandler({final:"Z"},function(V){return M.cursorBackwardTab(V)}),M._parser.setCsiHandler({final:"`"},function(V){return M.charPosAbsolute(V)}),M._parser.setCsiHandler({final:"a"},function(V){return M.hPositionRelative(V)}),M._parser.setCsiHandler({final:"b"},function(V){return M.repeatPrecedingCharacter(V)}),M._parser.setCsiHandler({final:"c"},function(V){return M.sendDeviceAttributesPrimary(V)}),M._parser.setCsiHandler({prefix:">",final:"c"},function(V){return M.sendDeviceAttributesSecondary(V)}),M._parser.setCsiHandler({final:"d"},function(V){return M.linePosAbsolute(V)}),M._parser.setCsiHandler({final:"e"},function(V){return M.vPositionRelative(V)}),M._parser.setCsiHandler({final:"f"},function(V){return M.hVPosition(V)}),M._parser.setCsiHandler({final:"g"},function(V){return M.tabClear(V)}),M._parser.setCsiHandler({final:"h"},function(V){return M.setMode(V)}),M._parser.setCsiHandler({prefix:"?",final:"h"},function(V){return M.setModePrivate(V)}),M._parser.setCsiHandler({final:"l"},function(V){return M.resetMode(V)}),M._parser.setCsiHandler({prefix:"?",final:"l"},function(V){return M.resetModePrivate(V)}),M._parser.setCsiHandler({final:"m"},function(V){return M.charAttributes(V)}),M._parser.setCsiHandler({final:"n"},function(V){return M.deviceStatus(V)}),M._parser.setCsiHandler({prefix:"?",final:"n"},function(V){return M.deviceStatusPrivate(V)}),M._parser.setCsiHandler({intermediates:"!",final:"p"},function(V){return M.softReset(V)}),M._parser.setCsiHandler({intermediates:" ",final:"q"},function(V){return M.setCursorStyle(V)}),M._parser.setCsiHandler({final:"r"},function(V){return M.setScrollRegion(V)}),M._parser.setCsiHandler({final:"s"},function(V){return M.saveCursor(V)}),M._parser.setCsiHandler({final:"t"},function(V){return M.windowOptions(V)}),M._parser.setCsiHandler({final:"u"},function(V){return M.restoreCursor(V)}),M._parser.setCsiHandler({intermediates:"'",final:"}"},function(V){return M.insertColumns(V)}),M._parser.setCsiHandler({intermediates:"'",final:"~"},function(V){return M.deleteColumns(V)}),M._parser.setExecuteHandler(d.C0.BEL,function(){return M.bell()}),M._parser.setExecuteHandler(d.C0.LF,function(){return M.lineFeed()}),M._parser.setExecuteHandler(d.C0.VT,function(){return M.lineFeed()}),M._parser.setExecuteHandler(d.C0.FF,function(){return M.lineFeed()}),M._parser.setExecuteHandler(d.C0.CR,function(){return M.carriageReturn()}),M._parser.setExecuteHandler(d.C0.BS,function(){return M.backspace()}),M._parser.setExecuteHandler(d.C0.HT,function(){return M.tab()}),M._parser.setExecuteHandler(d.C0.SO,function(){return M.shiftOut()}),M._parser.setExecuteHandler(d.C0.SI,function(){return M.shiftIn()}),M._parser.setExecuteHandler(d.C1.IND,function(){return M.index()}),M._parser.setExecuteHandler(d.C1.NEL,function(){return M.nextLine()}),M._parser.setExecuteHandler(d.C1.HTS,function(){return M.tabSet()}),M._parser.setOscHandler(0,new h.OscHandler(function(V){M.setTitle(V),M.setIconName(V)})),M._parser.setOscHandler(1,new h.OscHandler(function(V){return M.setIconName(V)})),M._parser.setOscHandler(2,new h.OscHandler(function(V){return M.setTitle(V)})),M._parser.setEscHandler({final:"7"},function(){return M.saveCursor()}),M._parser.setEscHandler({final:"8"},function(){return M.restoreCursor()}),M._parser.setEscHandler({final:"D"},function(){return M.index()}),M._parser.setEscHandler({final:"E"},function(){return M.nextLine()}),M._parser.setEscHandler({final:"H"},function(){return M.tabSet()}),M._parser.setEscHandler({final:"M"},function(){return M.reverseIndex()}),M._parser.setEscHandler({final:"="},function(){return M.keypadApplicationMode()}),M._parser.setEscHandler({final:">"},function(){return M.keypadNumericMode()}),M._parser.setEscHandler({final:"c"},function(){return M.fullReset()}),M._parser.setEscHandler({final:"n"},function(){return M.setgLevel(2)}),M._parser.setEscHandler({final:"o"},function(){return M.setgLevel(3)}),M._parser.setEscHandler({final:"|"},function(){return M.setgLevel(3)}),M._parser.setEscHandler({final:"}"},function(){return M.setgLevel(2)}),M._parser.setEscHandler({final:"~"},function(){return M.setgLevel(1)}),M._parser.setEscHandler({intermediates:"%",final:"@"},function(){return M.selectDefaultCharset()}),M._parser.setEscHandler({intermediates:"%",final:"G"},function(){return M.selectDefaultCharset()});var j=function(Q){K._parser.setEscHandler({intermediates:"(",final:Q},function(){return M.selectCharset("("+Q)}),K._parser.setEscHandler({intermediates:")",final:Q},function(){return M.selectCharset(")"+Q)}),K._parser.setEscHandler({intermediates:"*",final:Q},function(){return M.selectCharset("*"+Q)}),K._parser.setEscHandler({intermediates:"+",final:Q},function(){return M.selectCharset("+"+Q)}),K._parser.setEscHandler({intermediates:"-",final:Q},function(){return M.selectCharset("-"+Q)}),K._parser.setEscHandler({intermediates:".",final:Q},function(){return M.selectCharset("."+Q)}),K._parser.setEscHandler({intermediates:"/",final:Q},function(){return M.selectCharset("/"+Q)})},K=this;for(var z in l.CHARSETS)j(z);return M._parser.setEscHandler({intermediates:"#",final:"8"},function(){return M.screenAlignmentPattern()}),M._parser.setErrorHandler(function(V){return M._logService.error("Parsing error: ",V),V}),M._parser.setDcsHandler({intermediates:"$",final:"q"},new w(M._bufferService,M._coreService,M._logService,M._optionsService)),M}return m(_,C),Object.defineProperty(_.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),_.prototype.dispose=function(){C.prototype.dispose.call(this)},_.prototype.parse=function(T){var S=this._bufferService.buffer,O=S.x,I=S.y;if(this._logService.debug("parsing data",T),this._parseBuffer.length<T.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(T.length,131072))),this._dirtyRowService.clearRange(),T.length>131072)for(var F=0;F<T.length;F+=131072){var P=F+131072<T.length?F+131072:T.length,B=typeof T=="string"?this._stringDecoder.decode(T.substring(F,P),this._parseBuffer):this._utf8Decoder.decode(T.subarray(F,P),this._parseBuffer);this._parser.parse(this._parseBuffer,B)}else B=typeof T=="string"?this._stringDecoder.decode(T,this._parseBuffer):this._utf8Decoder.decode(T,this._parseBuffer),this._parser.parse(this._parseBuffer,B);(S=this._bufferService.buffer).x===O&&S.y===I||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},_.prototype.print=function(T,S,O){var I,F,P=this._bufferService.buffer,B=this._charsetService.charset,k=this._optionsService.options.screenReaderMode,G=this._bufferService.cols,M=this._coreService.decPrivateModes.wraparound,j=this._coreService.modes.insertMode,K=this._curAttrData,z=P.lines.get(P.ybase+P.y);this._dirtyRowService.markDirty(P.y),P.x&&O-S>0&&z.getWidth(P.x-1)===2&&z.setCellFromCodePoint(P.x-1,0,1,K.fg,K.bg,K.extended);for(var V=S;V<O;++V){if(I=T[V],F=this._unicodeService.wcwidth(I),I<127&&B){var Q=B[String.fromCharCode(I)];Q&&(I=Q.charCodeAt(0))}if(k&&this._onA11yChar.fire(a.stringFromCodePoint(I)),F||!P.x){if(P.x+F-1>=G){if(M){for(;P.x<G;)z.setCellFromCodePoint(P.x++,0,1,K.fg,K.bg,K.extended);P.x=0,P.y++,P.y===P.scrollBottom+1?(P.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(P.y>=this._bufferService.rows&&(P.y=this._bufferService.rows-1),P.lines.get(P.ybase+P.y).isWrapped=!0),z=P.lines.get(P.ybase+P.y)}else if(P.x=G-1,F===2)continue}if(j&&(z.insertCells(P.x,F,P.getNullCell(K),K),z.getWidth(G-1)===2&&z.setCellFromCodePoint(G-1,r.NULL_CELL_CODE,r.NULL_CELL_WIDTH,K.fg,K.bg,K.extended)),z.setCellFromCodePoint(P.x++,I,F,K.fg,K.bg,K.extended),F>0)for(;--F;)z.setCellFromCodePoint(P.x++,0,0,K.fg,K.bg,K.extended)}else z.getWidth(P.x-1)?z.addCodepointToCell(P.x-1,I):z.addCodepointToCell(P.x-2,I)}O-S>0&&(z.loadCell(P.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),P.x<G&&O-S>0&&z.getWidth(P.x)===0&&!z.hasContent(P.x)&&z.setCellFromCodePoint(P.x,0,1,K.fg,K.bg,K.extended),this._dirtyRowService.markDirty(P.y)},_.prototype.addCsiHandler=function(T,S){var O=this;return T.final!=="t"||T.prefix||T.intermediates?this._parser.addCsiHandler(T,S):this._parser.addCsiHandler(T,function(I){return!b(I.params[0],O._optionsService.options.windowOptions)||S(I)})},_.prototype.addDcsHandler=function(T,S){return this._parser.addDcsHandler(T,new g.DcsHandler(S))},_.prototype.addEscHandler=function(T,S){return this._parser.addEscHandler(T,S)},_.prototype.addOscHandler=function(T,S){return this._parser.addOscHandler(T,new h.OscHandler(S))},_.prototype.bell=function(){this._onRequestBell.fire()},_.prototype.lineFeed=function(){var T=this._bufferService.buffer;this._dirtyRowService.markDirty(T.y),this._optionsService.options.convertEol&&(T.x=0),T.y++,T.y===T.scrollBottom+1?(T.y--,this._onRequestScroll.fire(this._eraseAttrData())):T.y>=this._bufferService.rows&&(T.y=this._bufferService.rows-1),T.x>=this._bufferService.cols&&T.x--,this._dirtyRowService.markDirty(T.y),this._onLineFeed.fire()},_.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},_.prototype.backspace=function(){var T,S=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(S.x>0&&S.x--);if(this._restrictCursor(this._bufferService.cols),S.x>0)S.x--;else if(S.x===0&&S.y>S.scrollTop&&S.y<=S.scrollBottom&&((T=S.lines.get(S.ybase+S.y))===null||T===void 0?void 0:T.isWrapped)){S.lines.get(S.ybase+S.y).isWrapped=!1,S.y--,S.x=this._bufferService.cols-1;var O=S.lines.get(S.ybase+S.y);O.hasWidth(S.x)&&!O.hasContent(S.x)&&S.x--}this._restrictCursor()},_.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var T=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-T)}},_.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},_.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},_.prototype._restrictCursor=function(T){T===void 0&&(T=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(T,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},_.prototype._setCursor=function(T,S){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=T,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+S):(this._bufferService.buffer.x=T,this._bufferService.buffer.y=S),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},_.prototype._moveCursor=function(T,S){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+T,this._bufferService.buffer.y+S)},_.prototype.cursorUp=function(T){var S=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;S>=0?this._moveCursor(0,-Math.min(S,T.params[0]||1)):this._moveCursor(0,-(T.params[0]||1))},_.prototype.cursorDown=function(T){var S=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;S>=0?this._moveCursor(0,Math.min(S,T.params[0]||1)):this._moveCursor(0,T.params[0]||1)},_.prototype.cursorForward=function(T){this._moveCursor(T.params[0]||1,0)},_.prototype.cursorBackward=function(T){this._moveCursor(-(T.params[0]||1),0)},_.prototype.cursorNextLine=function(T){this.cursorDown(T),this._bufferService.buffer.x=0},_.prototype.cursorPrecedingLine=function(T){this.cursorUp(T),this._bufferService.buffer.x=0},_.prototype.cursorCharAbsolute=function(T){this._setCursor((T.params[0]||1)-1,this._bufferService.buffer.y)},_.prototype.cursorPosition=function(T){this._setCursor(T.length>=2?(T.params[1]||1)-1:0,(T.params[0]||1)-1)},_.prototype.charPosAbsolute=function(T){this._setCursor((T.params[0]||1)-1,this._bufferService.buffer.y)},_.prototype.hPositionRelative=function(T){this._moveCursor(T.params[0]||1,0)},_.prototype.linePosAbsolute=function(T){this._setCursor(this._bufferService.buffer.x,(T.params[0]||1)-1)},_.prototype.vPositionRelative=function(T){this._moveCursor(0,T.params[0]||1)},_.prototype.hVPosition=function(T){this.cursorPosition(T)},_.prototype.tabClear=function(T){var S=T.params[0];S===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:S===3&&(this._bufferService.buffer.tabs={})},_.prototype.cursorForwardTab=function(T){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var S=T.params[0]||1;S--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},_.prototype.cursorBackwardTab=function(T){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var S=T.params[0]||1,O=this._bufferService.buffer;S--;)O.x=O.prevStop()},_.prototype._eraseInBufferLine=function(T,S,O,I){I===void 0&&(I=!1);var F=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+T);F.replaceCells(S,O,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),I&&(F.isWrapped=!1)},_.prototype._resetBufferLine=function(T){var S=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+T);S.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),S.isWrapped=!1},_.prototype.eraseInDisplay=function(T){var S;switch(this._restrictCursor(),T.params[0]){case 0:for(S=this._bufferService.buffer.y,this._dirtyRowService.markDirty(S),this._eraseInBufferLine(S++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);S<this._bufferService.rows;S++)this._resetBufferLine(S);this._dirtyRowService.markDirty(S);break;case 1:for(S=this._bufferService.buffer.y,this._dirtyRowService.markDirty(S),this._eraseInBufferLine(S,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(S+1).isWrapped=!1);S--;)this._resetBufferLine(S);this._dirtyRowService.markDirty(0);break;case 2:for(S=this._bufferService.rows,this._dirtyRowService.markDirty(S-1);S--;)this._resetBufferLine(S);this._dirtyRowService.markDirty(0);break;case 3:var O=this._bufferService.buffer.lines.length-this._bufferService.rows;O>0&&(this._bufferService.buffer.lines.trimStart(O),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-O,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-O,0),this._onScroll.fire(0))}},_.prototype.eraseInLine=function(T){switch(this._restrictCursor(),T.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},_.prototype.insertLines=function(T){this._restrictCursor();var S=T.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.y<O.scrollTop)){for(var I=O.ybase+O.y,F=this._bufferService.rows-1-O.scrollBottom,P=this._bufferService.rows-1+O.ybase-F+1;S--;)O.lines.splice(P-1,1),O.lines.splice(I,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.y,O.scrollBottom),O.x=0}},_.prototype.deleteLines=function(T){this._restrictCursor();var S=T.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.y<O.scrollTop)){var I,F=O.ybase+O.y;for(I=this._bufferService.rows-1-O.scrollBottom,I=this._bufferService.rows-1+O.ybase-I;S--;)O.lines.splice(F,1),O.lines.splice(I,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.y,O.scrollBottom),O.x=0}},_.prototype.insertChars=function(T){this._restrictCursor();var S=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);S&&(S.insertCells(this._bufferService.buffer.x,T.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.deleteChars=function(T){this._restrictCursor();var S=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);S&&(S.deleteCells(this._bufferService.buffer.x,T.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.scrollUp=function(T){for(var S=T.params[0]||1,O=this._bufferService.buffer;S--;)O.lines.splice(O.ybase+O.scrollTop,1),O.lines.splice(O.ybase+O.scrollBottom,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.scrollTop,O.scrollBottom)},_.prototype.scrollDown=function(T){for(var S=T.params[0]||1,O=this._bufferService.buffer;S--;)O.lines.splice(O.ybase+O.scrollBottom,1),O.lines.splice(O.ybase+O.scrollTop,0,O.getBlankLine(e.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(O.scrollTop,O.scrollBottom)},_.prototype.scrollLeft=function(T){var S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var O=T.params[0]||1,I=S.scrollTop;I<=S.scrollBottom;++I){var F=S.lines.get(S.ybase+I);F.deleteCells(0,O,S.getNullCell(this._eraseAttrData()),this._eraseAttrData()),F.isWrapped=!1}this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}},_.prototype.scrollRight=function(T){var S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var O=T.params[0]||1,I=S.scrollTop;I<=S.scrollBottom;++I){var F=S.lines.get(S.ybase+I);F.insertCells(0,O,S.getNullCell(this._eraseAttrData()),this._eraseAttrData()),F.isWrapped=!1}this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}},_.prototype.insertColumns=function(T){var S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var O=T.params[0]||1,I=S.scrollTop;I<=S.scrollBottom;++I){var F=this._bufferService.buffer.lines.get(S.ybase+I);F.insertCells(S.x,O,S.getNullCell(this._eraseAttrData()),this._eraseAttrData()),F.isWrapped=!1}this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}},_.prototype.deleteColumns=function(T){var S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var O=T.params[0]||1,I=S.scrollTop;I<=S.scrollBottom;++I){var F=S.lines.get(S.ybase+I);F.deleteCells(S.x,O,S.getNullCell(this._eraseAttrData()),this._eraseAttrData()),F.isWrapped=!1}this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}},_.prototype.eraseChars=function(T){this._restrictCursor();var S=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);S&&(S.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(T.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.repeatPrecedingCharacter=function(T){if(this._parser.precedingCodepoint){for(var S=T.params[0]||1,O=new Uint32Array(S),I=0;I<S;++I)O[I]=this._parser.precedingCodepoint;this.print(O,0,O.length)}},_.prototype.sendDeviceAttributesPrimary=function(T){T.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(d.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(d.C0.ESC+"[?6c"))},_.prototype.sendDeviceAttributesSecondary=function(T){T.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(T.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(d.C0.ESC+"[>83;40003;0c"))},_.prototype._is=function(T){return(this._optionsService.options.termName+"").indexOf(T)===0},_.prototype.setMode=function(T){for(var S=0;S<T.length;S++)switch(T.params[S]){case 4:this._coreService.modes.insertMode=!0}},_.prototype.setModePrivate=function(T){for(var S=0;S<T.length;S++)switch(T.params[S]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,l.DEFAULT_CHARSET),this._charsetService.setgCharset(1,l.DEFAULT_CHARSET),this._charsetService.setgCharset(2,l.DEFAULT_CHARSET),this._charsetService.setgCharset(3,l.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},_.prototype.resetMode=function(T){for(var S=0;S<T.length;S++)switch(T.params[S]){case 4:this._coreService.modes.insertMode=!1}},_.prototype.resetModePrivate=function(T){for(var S=0;S<T.length;S++)switch(T.params[S]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),T.params[S]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},_.prototype._updateAttrColor=function(T,S,O,I,F){return S===2?(T|=50331648,T&=-16777216,T|=c.AttributeData.fromColorRGB([O,I,F])):S===5&&(T&=-50331904,T|=33554432|255&O),T},_.prototype._extractColor=function(T,S,O){var I=[0,0,-1,0,0,0],F=0,P=0;do{if(I[P+F]=T.params[S+P],T.hasSubParams(S+P)){var B=T.getSubParams(S+P),k=0;do I[1]===5&&(F=1),I[P+k+1+F]=B[k];while(++k<B.length&&k+P+1+F<I.length);break}if(I[1]===5&&P+F>=2||I[1]===2&&P+F>=5)break;I[1]&&(F=1)}while(++P+S<T.length&&P+F<I.length);for(k=2;k<I.length;++k)I[k]===-1&&(I[k]=0);switch(I[0]){case 38:O.fg=this._updateAttrColor(O.fg,I[1],I[3],I[4],I[5]);break;case 48:O.bg=this._updateAttrColor(O.bg,I[1],I[3],I[4],I[5]);break;case 58:O.extended=O.extended.clone(),O.extended.underlineColor=this._updateAttrColor(O.extended.underlineColor,I[1],I[3],I[4],I[5])}return P},_.prototype._processUnderline=function(T,S){S.extended=S.extended.clone(),(!~T||T>5)&&(T=1),S.extended.underlineStyle=T,S.fg|=268435456,T===0&&(S.fg&=-268435457),S.updateExtended()},_.prototype.charAttributes=function(T){if(T.length===1&&T.params[0]===0)return this._curAttrData.fg=e.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=e.DEFAULT_ATTR_DATA.bg);for(var S,O=T.length,I=this._curAttrData,F=0;F<O;F++)(S=T.params[F])>=30&&S<=37?(I.fg&=-50331904,I.fg|=16777216|S-30):S>=40&&S<=47?(I.bg&=-50331904,I.bg|=16777216|S-40):S>=90&&S<=97?(I.fg&=-50331904,I.fg|=16777224|S-90):S>=100&&S<=107?(I.bg&=-50331904,I.bg|=16777224|S-100):S===0?(I.fg=e.DEFAULT_ATTR_DATA.fg,I.bg=e.DEFAULT_ATTR_DATA.bg):S===1?I.fg|=134217728:S===3?I.bg|=67108864:S===4?(I.fg|=268435456,this._processUnderline(T.hasSubParams(F)?T.getSubParams(F)[0]:1,I)):S===5?I.fg|=536870912:S===7?I.fg|=67108864:S===8?I.fg|=1073741824:S===2?I.bg|=134217728:S===21?this._processUnderline(2,I):S===22?(I.fg&=-134217729,I.bg&=-134217729):S===23?I.bg&=-67108865:S===24?I.fg&=-268435457:S===25?I.fg&=-536870913:S===27?I.fg&=-67108865:S===28?I.fg&=-1073741825:S===39?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):S===49?(I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):S===38||S===48||S===58?F+=this._extractColor(T,F,I):S===59?(I.extended=I.extended.clone(),I.extended.underlineColor=-1,I.updateExtended()):S===100?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",S)},_.prototype.deviceStatus=function(T){switch(T.params[0]){case 5:this._coreService.triggerDataEvent(d.C0.ESC+"[0n");break;case 6:var S=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(d.C0.ESC+"["+S+";"+O+"R")}},_.prototype.deviceStatusPrivate=function(T){switch(T.params[0]){case 6:var S=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(d.C0.ESC+"[?"+S+";"+O+"R")}},_.prototype.softReset=function(T){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},_.prototype.setCursorStyle=function(T){var S=T.params[0]||1;switch(S){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var O=S%2==1;this._optionsService.options.cursorBlink=O},_.prototype.setScrollRegion=function(T){var S,O=T.params[0]||1;(T.length<2||(S=T.params[1])>this._bufferService.rows||S===0)&&(S=this._bufferService.rows),S>O&&(this._bufferService.buffer.scrollTop=O-1,this._bufferService.buffer.scrollBottom=S-1,this._setCursor(0,0))},_.prototype.windowOptions=function(T){if(b(T.params[0],this._optionsService.options.windowOptions)){var S=T.length>1?T.params[1]:0;switch(T.params[0]){case 14:S!==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:S!==0&&S!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),S!==0&&S!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:S!==0&&S!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),S!==0&&S!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},_.prototype.saveCursor=function(T){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},_.prototype.restoreCursor=function(T){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},_.prototype.setTitle=function(T){this._windowTitle=T,this._onTitleChange.fire(T)},_.prototype.setIconName=function(T){this._iconName=T},_.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},_.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},_.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},_.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,l.DEFAULT_CHARSET)},_.prototype.selectCharset=function(T){T.length===2?T[0]!=="/"&&this._charsetService.setgCharset(A[T[0]],l.CHARSETS[T[1]]||l.DEFAULT_CHARSET):this.selectDefaultCharset()},_.prototype.index=function(){this._restrictCursor();var T=this._bufferService.buffer;this._bufferService.buffer.y++,T.y===T.scrollBottom+1?(T.y--,this._onRequestScroll.fire(this._eraseAttrData())):T.y>=this._bufferService.rows&&(T.y=this._bufferService.rows-1),this._restrictCursor()},_.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},_.prototype.reverseIndex=function(){this._restrictCursor();var T=this._bufferService.buffer;if(T.y===T.scrollTop){var S=T.scrollBottom-T.scrollTop;T.lines.shiftElements(T.ybase+T.y,S,1),T.lines.set(T.ybase+T.y,T.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(T.scrollTop,T.scrollBottom)}else T.y--,this._restrictCursor()},_.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},_.prototype.reset=function(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()},_.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},_.prototype.setgLevel=function(T){this._charsetService.setgLevel(T)},_.prototype.screenAlignmentPattern=function(){var T=new s.CellData;T.content=1<<22|"E".charCodeAt(0),T.fg=this._curAttrData.fg,T.bg=this._curAttrData.bg;var S=this._bufferService.buffer;this._setCursor(0,0);for(var O=0;O<this._bufferService.rows;++O){var I=S.ybase+S.y+O,F=S.lines.get(I);F&&(F.fill(T),F.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},_}(n.Disposable);p.InputHandler=E},function(y,p,x){"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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.Params=void 0;var v=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=v},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.OscHandler=p.OscParser=void 0;var v=x(23),m=x(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>v.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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PAYLOAD_LIMIT=void 0,p.PAYLOAD_LIMIT=1e7},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DcsHandler=p.DcsParser=void 0;var v=x(8),m=x(21),f=x(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",v.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+=v.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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.removeTerminalFromCache=p.acquireCharAtlas=void 0;var v=x(26),m=x(43),f=[];p.acquireCharAtlas=function(d,l,o,n,t){for(var a=v.generateConfig(n,t,d,o),e=0;e<f.length;e++){var u=(r=f[e]).ownedBy.indexOf(l);if(u>=0){if(v.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(v.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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.is256Color=p.configEquals=p.generateConfig=void 0;var v=x(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<v.DEFAULT_COLOR}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColorManager=p.DEFAULT_ANSI_COLORS=void 0;var v=x(10),m=x(45),f=v.css.toColor("#ffffff"),d=v.css.toColor("#000000"),l=v.css.toColor("#ffffff"),o=v.css.toColor("#000000"),n={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};p.DEFAULT_ANSI_COLORS=function(){for(var a=[v.css.toColor("#2e3436"),v.css.toColor("#cc0000"),v.css.toColor("#4e9a06"),v.css.toColor("#c4a000"),v.css.toColor("#3465a4"),v.css.toColor("#75507b"),v.css.toColor("#06989a"),v.css.toColor("#d3d7cf"),v.css.toColor("#555753"),v.css.toColor("#ef2929"),v.css.toColor("#8ae234"),v.css.toColor("#fce94f"),v.css.toColor("#729fcf"),v.css.toColor("#ad7fa8"),v.css.toColor("#34e2e2"),v.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:v.channels.toCss(r,s,c),rgba:v.channels.toRgba(r,s,c)})}for(u=0;u<24;u++){var h=8+10*u;a.push({css:v.channels.toCss(h,h,h),rgba:v.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:v.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=v.color.blend(this.colors.background,this.colors.selectionTransparent),v.color.isOpaque(this.colors.selectionTransparent))&&(this.colors.selectionTransparent=v.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(E){return Number(E)}),h=c[0],g=c[1],A=c[2],b=c[3],w=Math.round(255*b);return{rgba:v.channels.toRgba(h,g,A,w),css:e}}return{css:this._ctx.fillStyle,rgba:v.channels.toRgba(s[0],s[1],s[2],s[3])}},a}();p.ColorManager=t},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.throwIfFalsy=void 0,p.throwIfFalsy=function(v){if(!v)throw new Error("value must not be falsy");return v}},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(a,e){return(v=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}v(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=x(6),d=x(3),l=x(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),A=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!==A){if(b-s>1)for(var w=this._getJoinedRanges(r,h,c,e,s),E=0;E<w.length;E++)u.push(w[E]);s=b,h=c,g=this._workCell.fg,A=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),E=0;E<w.length;E++)u.push(w[E]);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 A=this._characterJoiners[g].handler(c),b=0;b<A.length;b++)t._mergeRanges(h,A[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 A=e.getWidth(g),b=e.getString(g).length||d.WHITESPACE_CELL_CHAR.length;if(A!==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,x){"use strict";function v(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=v,p.getCoords=function(m,f,d,l,o,n,t,a){if(o){var e=v(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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RenderDebouncer=void 0;var v=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=v},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(l,o){return(v=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}v(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}(x(2).Disposable);p.ScreenDprMonitor=f},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.clone=void 0,p.clone=function v(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]?v(m[l],f-1):m[l];return d}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.Terminal=void 0;var v=x(4),m=x(35),f=x(18),d=x(0),l=x(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 A=g[h];if(A===1/0||isNaN(A)||A%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 v.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 v.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,x){"use strict";var v,m=this&&this.__extends||(v=function(M,j){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,z){K.__proto__=z}||function(K,z){for(var V in z)z.hasOwnProperty(V)&&(K[V]=z[V])})(M,j)},function(G,M){function j(){this.constructor=G}v(G,M),G.prototype=M===null?Object.create(M):(j.prototype=M.prototype,new j)});Object.defineProperty(p,"__esModule",{value:!0}),p.Terminal=void 0;var f=x(36),d=x(37),l=x(38),o=x(12),n=x(19),t=x(40),a=x(50),e=x(51),u=x(11),r=x(7),s=x(18),c=x(54),h=x(55),g=x(56),A=x(57),b=x(59),w=x(0),E=x(16),C=x(27),_=x(60),T=x(5),S=x(61),O=x(62),I=x(63),F=x(64),P=x(65),B=typeof window!="undefined"?window.document:null,k=function(G){function M(j){j===void 0&&(j={});var K=G.call(this,j)||this;return K.browser=u,K._keyDownHandled=!1,K._onCursorMove=new w.EventEmitter,K._onKey=new w.EventEmitter,K._onRender=new w.EventEmitter,K._onSelectionChange=new w.EventEmitter,K._onTitleChange=new w.EventEmitter,K._onFocus=new w.EventEmitter,K._onBlur=new w.EventEmitter,K._onA11yCharEmitter=new w.EventEmitter,K._onA11yTabEmitter=new w.EventEmitter,K._setup(),K.linkifier=K._instantiationService.createInstance(a.Linkifier),K.linkifier2=K.register(K._instantiationService.createInstance(I.Linkifier2)),K.register(K._inputHandler.onRequestBell(function(){return K.bell()})),K.register(K._inputHandler.onRequestRefreshRows(function(z,V){return K.refresh(z,V)})),K.register(K._inputHandler.onRequestReset(function(){return K.reset()})),K.register(K._inputHandler.onRequestScroll(function(z,V){return K.scroll(z,V||void 0)})),K.register(K._inputHandler.onRequestWindowsOptionsReport(function(z){return K._reportWindowsOptions(z)})),K.register(w.forwardEvent(K._inputHandler.onCursorMove,K._onCursorMove)),K.register(w.forwardEvent(K._inputHandler.onTitleChange,K._onTitleChange)),K.register(w.forwardEvent(K._inputHandler.onA11yChar,K._onA11yCharEmitter)),K.register(w.forwardEvent(K._inputHandler.onA11yTab,K._onA11yTabEmitter)),K.register(K._bufferService.onResize(function(z){return K._afterResize(z.cols,z.rows)})),K}return m(M,G),Object.defineProperty(M.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),M.prototype.dispose=function(){var j,K,z;this._isDisposed||(G.prototype.dispose.call(this),(j=this._renderService)===null||j===void 0||j.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(z=(K=this.element)===null||K===void 0?void 0:K.parentNode)===null||z===void 0||z.removeChild(this.element))},M.prototype._setup=function(){G.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(M.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),M.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},M.prototype._updateOptions=function(j){var K,z,V,Q;switch(G.prototype._updateOptions.call(this,j),j){case"fontFamily":case"fontSize":(K=this._renderService)===null||K===void 0||K.clear(),(z=this._charSizeService)===null||z===void 0||z.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(V=this.viewport)===null||V===void 0||V.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new 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)}},M.prototype._onTextAreaFocus=function(j){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(o.C0.ESC+"[I"),this.updateCursorStyle(j),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},M.prototype.blur=function(){var j;return(j=this.textarea)===null||j===void 0?void 0:j.blur()},M.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(o.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},M.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var j=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),K=this._bufferService.buffer.y*j,z=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=z+"px",this.textarea.style.top=K+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=j+"px",this.textarea.style.lineHeight=j+"px",this.textarea.style.zIndex="-5"}},M.prototype._initGlobal=function(){var j=this;this._bindKeys(),this.register(r.addDisposableDomListener(this.element,"copy",function(z){j.hasSelection()&&l.copyHandler(z,j._selectionService)}));var K=function(V){return l.handlePasteEvent(V,j.textarea,j._coreService)};this.register(r.addDisposableDomListener(this.textarea,"paste",K)),this.register(r.addDisposableDomListener(this.element,"paste",K)),u.isFirefox?this.register(r.addDisposableDomListener(this.element,"mousedown",function(z){z.button===2&&l.rightClickHandler(z,j.textarea,j.screenElement,j._selectionService,j.options.rightClickSelectsWord)})):this.register(r.addDisposableDomListener(this.element,"contextmenu",function(z){l.rightClickHandler(z,j.textarea,j.screenElement,j._selectionService,j.options.rightClickSelectsWord)})),u.isLinux&&this.register(r.addDisposableDomListener(this.element,"auxclick",function(z){z.button===1&&l.moveTextAreaUnderMouseCursor(z,j.textarea,j.screenElement)}))},M.prototype._bindKeys=function(){var j=this;this.register(r.addDisposableDomListener(this.textarea,"keyup",function(K){return j._keyUp(K)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keydown",function(K){return j._keyDown(K)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keypress",function(K){return j._keyPress(K)},!0)),this.register(r.addDisposableDomListener(this.textarea,"compositionstart",function(){return j._compositionHelper.compositionstart()})),this.register(r.addDisposableDomListener(this.textarea,"compositionupdate",function(K){return j._compositionHelper.compositionupdate(K)})),this.register(r.addDisposableDomListener(this.textarea,"compositionend",function(){return j._compositionHelper.compositionend()})),this.register(this.onRender(function(){return j._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(K){return j._queueLinkification(K.start,K.end)}))},M.prototype.open=function(j){var K=this;if(!j)throw new Error("Terminal requires a parent element.");B.body.contains(j)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=j.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),j.appendChild(this.element);var z=B.createDocumentFragment();this._viewportElement=B.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),z.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),z.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(X){return K._onTextAreaFocus(X)})),this.register(r.addDisposableDomListener(this.textarea,"blur",function(){return K._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var V=this._instantiationService.createInstance(F.CoreBrowserService,this.textarea);this._instantiationService.setService(T.ICoreBrowserService,V),this._charSizeService=this._instantiationService.createInstance(S.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(T.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(z),this._theme=this.options.theme||this._theme,this._colorManager=new C.ColorManager(B,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(X){return K._colorManager.onOptionsChange(X)})),this._colorManager.setTheme(this._theme);var Q=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(_.RenderService,Q,this.rows,this.screenElement)),this._instantiationService.setService(T.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(X){return K._onRender.fire(X)})),this.onResize(function(X){return K._renderService.resize(X.cols,X.rows)}),this._soundService=this._instantiationService.createInstance(c.SoundService),this._instantiationService.setService(T.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(O.MouseService),this._instantiationService.setService(T.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(d.Viewport,function(X,te){return K.scrollLines(X,te)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return K.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){K._renderService.onCursorMove(),K._syncTextArea()})),this.register(this.onResize(function(){return K._renderService.onResize(K.cols,K.rows)})),this.register(this.onBlur(function(){return K._renderService.onBlur()})),this.register(this.onFocus(function(){return K._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return K.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(e.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(T.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(X){return K.scrollLines(X.amount,X.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return K._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(X){return K._renderService.onSelectionChanged(X.start,X.end,X.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(X){K.textarea.value=X,K.textarea.focus(),K.textarea.select()})),this.register(this.onScroll(function(){K.viewport.syncScrollArea(),K._selectionService.refresh()})),this.register(r.addDisposableDomListener(this._viewportElement,"scroll",function(){return K._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(h.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return K._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(r.addDisposableDomListener(this.element,"mousedown",function(X){return K._selectionService.onMouseDown(X)})),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()},M.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(t.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(A.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},M.prototype._setTheme=function(j){var K,z,V;this._theme=j,(K=this._colorManager)===null||K===void 0||K.setTheme(j),(z=this._renderService)===null||z===void 0||z.setColors(this._colorManager.colors),(V=this.viewport)===null||V===void 0||V.onThemeChange(this._colorManager.colors)},M.prototype.bindMouse=function(){var j=this,K=this,z=this.element;function V(re){var Se,Re,Pe=K._mouseService.getRawByteCoords(re,K.screenElement,K.cols,K.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)&&K._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},X=function(Se){return V(Se),Se.buttons||(j._document.removeEventListener("mouseup",Q.mouseup),Q.mousedrag&&j._document.removeEventListener("mousemove",Q.mousedrag)),j.cancel(Se)},te=function(Se){return V(Se),Se.preventDefault(),j.cancel(Se)},$=function(Se){Se.buttons&&V(Se)},le=function(Se){Se.buttons||V(Se)};this.register(this._coreMouseService.onProtocolChange(function(re){re?(j.optionsService.options.logLevel==="debug"&&j._logService.debug("Binding to mouse events:",j._coreMouseService.explainEvents(re)),j.element.classList.add("enable-mouse-events"),j._selectionService.disable()):(j._logService.debug("Unbinding from mouse events."),j.element.classList.remove("enable-mouse-events"),j._selectionService.enable()),8&re?Q.mousemove||(z.addEventListener("mousemove",le),Q.mousemove=le):(z.removeEventListener("mousemove",Q.mousemove),Q.mousemove=null),16&re?Q.wheel||(z.addEventListener("wheel",te,{passive:!1}),Q.wheel=te):(z.removeEventListener("wheel",Q.wheel),Q.wheel=null),2&re?Q.mouseup||(Q.mouseup=X):(j._document.removeEventListener("mouseup",Q.mouseup),Q.mouseup=null),4&re?Q.mousedrag||(Q.mousedrag=$):(j._document.removeEventListener("mousemove",Q.mousedrag),Q.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(r.addDisposableDomListener(z,"mousedown",function(re){if(re.preventDefault(),j.focus(),j._coreMouseService.areMouseEventsActive&&!j._selectionService.shouldForceSelection(re))return V(re),Q.mouseup&&j._document.addEventListener("mouseup",Q.mouseup),Q.mousedrag&&j._document.addEventListener("mousemove",Q.mousedrag),j.cancel(re)})),this.register(r.addDisposableDomListener(z,"wheel",function(re){if(!Q.wheel){if(!j.buffer.hasScrollback){var Se=j.viewport.getLinesScrolled(re);if(Se===0)return;for(var Re=o.C0.ESC+(j._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(re.deltaY<0?"A":"B"),Pe="",Je=0;Je<Math.abs(Se);Je++)Pe+=Re;j._coreService.triggerDataEvent(Pe,!0)}}},{passive:!0})),this.register(r.addDisposableDomListener(z,"wheel",function(re){if(!Q.wheel)return j.viewport.onWheel(re)?void 0:j.cancel(re)},{passive:!1})),this.register(r.addDisposableDomListener(z,"touchstart",function(re){if(!j._coreMouseService.areMouseEventsActive)return j.viewport.onTouchStart(re),j.cancel(re)},{passive:!0})),this.register(r.addDisposableDomListener(z,"touchmove",function(re){if(!j._coreMouseService.areMouseEventsActive)return j.viewport.onTouchMove(re)?void 0:j.cancel(re)},{passive:!1}))},M.prototype.refresh=function(j,K){var z;(z=this._renderService)===null||z===void 0||z.refreshRows(j,K)},M.prototype._queueLinkification=function(j,K){var z;(z=this.linkifier)===null||z===void 0||z.linkifyRows(j,K)},M.prototype.updateCursorStyle=function(j){this._selectionService&&this._selectionService.shouldColumnSelect(j)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},M.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},M.prototype.scrollLines=function(j,K){G.prototype.scrollLines.call(this,j,K),this.refresh(0,this.rows-1)},M.prototype.paste=function(j){l.paste(j,this.textarea,this._coreService)},M.prototype.attachCustomKeyEventHandler=function(j){this._customKeyEventHandler=j},M.prototype.registerLinkMatcher=function(j,K,z){var V=this.linkifier.registerLinkMatcher(j,K,z);return this.refresh(0,this.rows-1),V},M.prototype.deregisterLinkMatcher=function(j){this.linkifier.deregisterLinkMatcher(j)&&this.refresh(0,this.rows-1)},M.prototype.registerLinkProvider=function(j){return this.linkifier2.registerLinkProvider(j)},M.prototype.registerCharacterJoiner=function(j){var K=this._renderService.registerCharacterJoiner(j);return this.refresh(0,this.rows-1),K},M.prototype.deregisterCharacterJoiner=function(j){this._renderService.deregisterCharacterJoiner(j)&&this.refresh(0,this.rows-1)},Object.defineProperty(M.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),M.prototype.addMarker=function(j){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+j)},M.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},M.prototype.select=function(j,K,z){this._selectionService.setSelection(j,K,z)},M.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},M.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},M.prototype.clearSelection=function(){var j;(j=this._selectionService)===null||j===void 0||j.clearSelection()},M.prototype.selectAll=function(){var j;(j=this._selectionService)===null||j===void 0||j.selectAll()},M.prototype.selectLines=function(j,K){var z;(z=this._selectionService)===null||z===void 0||z.selectLines(j,K)},M.prototype._keyDown=function(j){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1)return!1;if(!this._compositionHelper.keydown(j))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var K=b.evaluateKeyboardEvent(j,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(j),K.type===3||K.type===2){var z=this.rows-1;return this.scrollLines(K.type===2?-z:z),this.cancel(j,!0)}return K.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,j)||(K.cancel&&this.cancel(j,!0),!K.key||(K.key!==o.C0.ETX&&K.key!==o.C0.CR||(this.textarea.value=""),this._onKey.fire({key:K.key,domEvent:j}),this._showCursor(),this._coreService.triggerDataEvent(K.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(j,!0)))},M.prototype._isThirdLevelShift=function(j,K){var z=j.isMac&&!this.options.macOptionIsMeta&&K.altKey&&!K.ctrlKey&&!K.metaKey||j.isWindows&&K.altKey&&K.ctrlKey&&!K.metaKey;return K.type==="keypress"?z:z&&(!K.keyCode||K.keyCode>47)},M.prototype._keyUp=function(j){this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1||(function(K){return K.keyCode===16||K.keyCode===17||K.keyCode===18}(j)||this.focus(),this.updateCursorStyle(j))},M.prototype._keyPress=function(j){var K;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1)return!1;if(this.cancel(j),j.charCode)K=j.charCode;else if(j.which===null||j.which===void 0)K=j.keyCode;else{if(j.which===0||j.charCode===0)return!1;K=j.which}return!(!K||(j.altKey||j.ctrlKey||j.metaKey)&&!this._isThirdLevelShift(this.browser,j))&&(K=String.fromCharCode(K),this._onKey.fire({key:K,domEvent:j}),this._showCursor(),this._coreService.triggerDataEvent(K,!0),!0)},M.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},M.prototype.resize=function(j,K){j!==this.cols||K!==this.rows?G.prototype.resize.call(this,j,K):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},M.prototype._afterResize=function(j,K){var z,V;(z=this._charSizeService)===null||z===void 0||z.measure(),(V=this.viewport)===null||V===void 0||V.syncScrollArea(!0)},M.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var j=1;j<this.rows;j++)this.buffer.lines.push(this.buffer.getBlankLine(E.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},M.prototype.reset=function(){var j,K;this.options.rows=this.rows,this.options.cols=this.cols;var z=this._customKeyEventHandler;this._setup(),G.prototype.reset.call(this),(j=this._selectionService)===null||j===void 0||j.reset(),this._customKeyEventHandler=z,this.refresh(0,this.rows-1),(K=this.viewport)===null||K===void 0||K.syncScrollArea()},M.prototype._reportWindowsOptions=function(j){if(this._renderService)switch(j){case n.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var K=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),z=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(o.C0.ESC+"[4;"+z+";"+K+"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")}},M.prototype.cancel=function(j,K){if(this.options.cancelEvents||K)return j.preventDefault(),j.stopPropagation(),!1},M.prototype._visualBell=function(){return!1},M.prototype._soundBell=function(){return this.options.bellStyle==="sound"},M}(P.CoreTerminal);p.Terminal=k},function(y,p,x){"use strict";var v=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=x(5),d=x(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=v([m(2,d.IBufferService),m(3,d.IOptionsService),m(4,f.ICharSizeService),m(5,d.ICoreService)],o)}();p.CompositionHelper=l},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(u,r){return(v=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}v(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 A=e.length-1;A>=0;A--)(c=e[A])&&(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=x(2),o=x(7),n=x(5),t=x(1),a=function(e){function u(r,s,c,h,g,A,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=A,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,x){"use strict";function v(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=v(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=v,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,x){"use strict";var v,m=this&&this.__extends||(v=function(u,r){return(v=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}v(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=x(2),d=x(15),l=x(21),o=x(22),n=x(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(A,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 A=r.final.charCodeAt(0);if(s[0]>A||A>s[1])throw new Error("final must be in range "+s[0]+" .. "+s[1]);return c<<=8,c|=A},u.prototype.identToString=function(r){for(var s=[];r;)s.push(String.fromCharCode(255&r)),r>>=8;return s.reverse().join("")},u.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},u.prototype.setPrintHandler=function(r){this._printHandler=r},u.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},u.prototype.addEscHandler=function(r,s){var c=this._identifier(r,[48,126]);this._escHandlers[c]===void 0&&(this._escHandlers[c]=[]);var h=this._escHandlers[c];return h.push(s),{dispose:function(){var A=h.indexOf(s);A!==-1&&h.splice(A,1)}}},u.prototype.setEscHandler=function(r,s){this._escHandlers[this._identifier(r,[48,126])]=[s]},u.prototype.clearEscHandler=function(r){this._escHandlers[this._identifier(r,[48,126])]&&delete this._escHandlers[this._identifier(r,[48,126])]},u.prototype.setEscHandlerFallback=function(r){this._escHandlerFb=r},u.prototype.setExecuteHandler=function(r,s){this._executeHandlers[r.charCodeAt(0)]=s},u.prototype.clearExecuteHandler=function(r){this._executeHandlers[r.charCodeAt(0)]&&delete this._executeHandlers[r.charCodeAt(0)]},u.prototype.setExecuteHandlerFallback=function(r){this._executeHandlerFb=r},u.prototype.addCsiHandler=function(r,s){var c=this._identifier(r);this._csiHandlers[c]===void 0&&(this._csiHandlers[c]=[]);var h=this._csiHandlers[c];return h.push(s),{dispose:function(){var A=h.indexOf(s);A!==-1&&h.splice(A,1)}}},u.prototype.setCsiHandler=function(r,s){this._csiHandlers[this._identifier(r)]=[s]},u.prototype.clearCsiHandler=function(r){this._csiHandlers[this._identifier(r)]&&delete this._csiHandlers[this._identifier(r)]},u.prototype.setCsiHandlerFallback=function(r){this._csiHandlerFb=r},u.prototype.addDcsHandler=function(r,s){return this._dcsParser.addHandler(this._identifier(r),s)},u.prototype.setDcsHandler=function(r,s){this._dcsParser.setHandler(this._identifier(r),s)},u.prototype.clearDcsHandler=function(r){this._dcsParser.clearHandler(this._identifier(r))},u.prototype.setDcsHandlerFallback=function(r){this._dcsParser.setHandlerFallback(r)},u.prototype.addOscHandler=function(r,s){return this._oscParser.addHandler(r,s)},u.prototype.setOscHandler=function(r,s){this._oscParser.setHandler(r,s)},u.prototype.clearOscHandler=function(r){this._oscParser.clearHandler(r)},u.prototype.setOscHandlerFallback=function(r){this._oscParser.setHandlerFallback(r)},u.prototype.setErrorHandler=function(r){this._errorHandler=r},u.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},u.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},u.prototype.parse=function(r,s){for(var c=0,h=0,g=this.currentState,A=this._oscParser,b=this._dcsParser,w=this._collect,E=this._params,C=this._transitions.table,_=0;_<s;++_){switch((h=C[g<<8|((c=r[_])<160?c:160)])>>4){case 2:for(var T=_+1;;++T){if(T>=s||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}if(++T>=s||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}if(++T>=s||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}if(++T>=s||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}}break;case 3:this._executeHandlers[c]?this._executeHandlers[c]():this._executeHandlerFb(c),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:_,code:c,currentState:g,collect:w,params:E,abort:!1}).abort)return;break;case 7:for(var S=this._csiHandlers[w<<8|c],O=S?S.length-1:-1;O>=0&&S[O](E)===!1;O--);O<0&&this._csiHandlerFb(w<<8|c,E),this.precedingCodepoint=0;break;case 8:do switch(c){case 59:E.addParam(0);break;case 58:E.addSubParam(-1);break;default:E.addDigit(c-48)}while(++_<s&&(c=r[_])>47&&c<60);_--;break;case 9:w<<=8,w|=c;break;case 10:for(var I=this._escHandlers[w<<8|c],F=I?I.length-1:-1;F>=0&&I[F]()===!1;F--);F<0&&this._escHandlerFb(w<<8|c),this.precedingCodepoint=0;break;case 11:E.reset(),E.addParam(0),w=0;break;case 12:b.hook(w<<8|c,E);break;case 13:for(var P=_+1;;++P)if(P>=s||(c=r[P])===24||c===26||c===27||c>127&&c<160){b.put(r,_,P),_=P-1;break}break;case 14:b.unhook(c!==24&&c!==26),c===27&&(h|=1),E.reset(),E.addParam(0),w=0,this.precedingCodepoint=0;break;case 4:A.start();break;case 5:for(var B=_+1;;B++)if(B>=s||(c=r[B])<32||c>127&&c<=159){A.put(r,_,B),_=B-1;break}break;case 6:A.end(c!==24&&c!==26),c===27&&(h|=1),E.reset(),E.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,x){"use strict";var v,m=this&&this.__extends||(v=function(b,w){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,C){E.__proto__=C}||function(E,C){for(var _ in C)C.hasOwnProperty(_)&&(E[_]=C[_])})(b,w)},function(A,b){function w(){this.constructor=A}v(A,b),A.prototype=b===null?Object.create(b):(w.prototype=b.prototype,new w)}),f=this&&this.__decorate||function(A,b,w,E){var C,_=arguments.length,T=_<3?b:E===null?E=Object.getOwnPropertyDescriptor(b,w):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(A,b,w,E);else for(var S=A.length-1;S>=0;S--)(C=A[S])&&(T=(_<3?C(T):_>3?C(b,w,T):C(b,w))||T);return _>3&&T&&Object.defineProperty(b,w,T),T},d=this&&this.__param||function(A,b){return function(w,E){b(w,E,A)}};Object.defineProperty(p,"__esModule",{value:!0}),p.Renderer=void 0;var l=x(41),o=x(47),n=x(48),t=x(49),a=x(29),e=x(2),u=x(5),r=x(1),s=x(25),c=x(0),h=1,g=function(A){function b(w,E,C,_,T,S,O,I,F){var P=A.call(this)||this;P._colors=w,P._screenElement=E,P._bufferService=T,P._charSizeService=S,P._optionsService=O,P._id=h++,P._onRequestRedraw=new c.EventEmitter;var B=P._optionsService.options.allowTransparency;return P._characterJoinerRegistry=new a.CharacterJoinerRegistry(P._bufferService),P._renderLayers=[new l.TextRenderLayer(P._screenElement,0,P._colors,P._characterJoinerRegistry,B,P._id,P._bufferService,O),new o.SelectionRenderLayer(P._screenElement,1,P._colors,P._id,P._bufferService,O),new t.LinkRenderLayer(P._screenElement,2,P._colors,P._id,C,_,P._bufferService,O),new n.CursorRenderLayer(P._screenElement,3,P._colors,P._id,P._onRequestRedraw,P._bufferService,O,I,F)],P.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},P._devicePixelRatio=window.devicePixelRatio,P._updateDimensions(),P.onOptionsChanged(),P}return m(b,A),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){for(var w=0,E=this._renderLayers;w<E.length;w++)E[w].dispose();A.prototype.dispose.call(this),s.removeTerminalFromCache(this._id)},b.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},b.prototype.setColors=function(w){this._colors=w;for(var E=0,C=this._renderLayers;E<C.length;E++){var _=C[E];_.setColors(this._colors),_.reset()}},b.prototype.onResize=function(w,E){this._updateDimensions();for(var C=0,_=this._renderLayers;C<_.length;C++)_[C].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,E,C){C===void 0&&(C=!1),this._runOperation(function(_){return _.onSelectionChanged(w,E,C)})},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 E=0,C=this._renderLayers;E<C.length;E++)w(C[E])},b.prototype.renderRows=function(w,E){for(var C=0,_=this._renderLayers;C<_.length;C++)_[C].onGridChanged(w,E)},b.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},b.prototype.registerCharacterJoiner=function(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,x){"use strict";var v,m=this&&this.__extends||(v=function(u,r){return(v=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}v(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=x(42),d=x(13),l=x(6),o=x(3),n=x(29),t=x(4),a=function(e){function u(r,s,c,h,g,A,b,w){var E=e.call(this,r,"text",s,g,c,A,b,w)||this;return E._characterWidth=0,E._characterFont="",E._characterOverlapCache={},E._workCell=new t.CellData,E._state=new f.GridCache,E._characterJoinerRegistry=h,E}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 A=g+this._bufferService.buffer.ydisp,b=this._bufferService.buffer.lines.get(A),w=c?c.getJoinedCharacters(A):[],E=0;E<this._bufferService.cols;E++){b.loadCell(E,this._workCell);var C=this._workCell,_=!1,T=E;if(C.getWidth()!==0){if(w.length>0&&E===w[0][0]){_=!0;var S=w.shift();C=new n.JoinedCellData(this._workCell,b.translateToString(!0,S[0],S[1]),S[1]-S[0]),T=S[1]-1}!_&&this._isOverlapping(C)&&T<b.length-1&&b.getCodePoint(T+1)===o.NULL_CELL_CODE&&(C.content&=-12582913,C.content|=2<<22),h(C,E,g),E=T}}},u.prototype._drawBackground=function(r,s){var c=this,h=this._ctx,g=this._bufferService.cols,A=0,b=0,w=null;h.save(),this._forEachCell(r,s,null,function(E,C,_){var T=null;E.isInverse()?T=E.isFgDefault()?c._colors.foreground.css:E.isFgRGB()?"rgb("+l.AttributeData.toColorRGB(E.getFgColor()).join(",")+")":c._colors.ansi[E.getFgColor()].css:E.isBgRGB()?T="rgb("+l.AttributeData.toColorRGB(E.getBgColor()).join(",")+")":E.isBgPalette()&&(T=c._colors.ansi[E.getBgColor()].css),w===null&&(A=C,b=_),_!==b?(h.fillStyle=w||"",c._fillCells(A,b,g-A,1),A=C,b=_):w!==T&&(h.fillStyle=w||"",c._fillCells(A,b,C-A,1),A=C,b=_),w=T}),w!==null&&(h.fillStyle=w,this._fillCells(A,b,g-A,1)),h.restore()},u.prototype._drawForeground=function(r,s){var c=this;this._forEachCell(r,s,this._characterJoinerRegistry,function(h,g,A){if(!h.isInvisible()&&(c._drawChars(h,g,A),h.isUnderline())){if(c._ctx.save(),h.isInverse())if(h.isBgDefault())c._ctx.fillStyle=c._colors.background.css;else if(h.isBgRGB())c._ctx.fillStyle="rgb("+l.AttributeData.toColorRGB(h.getBgColor()).join(",")+")";else{var b=h.getBgColor();c._optionsService.options.drawBoldTextInBrightColors&&h.isBold()&&b<8&&(b+=8),c._ctx.fillStyle=c._colors.ansi[b].css}else if(h.isFgDefault())c._ctx.fillStyle=c._colors.foreground.css;else if(h.isFgRGB())c._ctx.fillStyle="rgb("+l.AttributeData.toColorRGB(h.getFgColor()).join(",")+")";else{var w=h.getFgColor();c._optionsService.options.drawBoldTextInBrightColors&&h.isBold()&&w<8&&(w+=8),c._ctx.fillStyle=c._colors.ansi[w].css}c._fillBottomLineAtCells(g,A,h.getWidth()),c._ctx.restore()}})},u.prototype.onGridChanged=function(r,s){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,r,this._bufferService.cols,s-r+1),this._drawBackground(r,s),this._drawForeground(r,s))},u.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},u.prototype._isOverlapping=function(r){if(r.getWidth()!==1)return!1;if(r.getCode()<256)return!1;var s=r.getChars();if(this._characterOverlapCache.hasOwnProperty(s))return this._characterOverlapCache[s];this._ctx.save(),this._ctx.font=this._characterFont;var c=Math.floor(this._ctx.measureText(s).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[s]=c,c},u}(d.BaseRenderLayer);p.TextRenderLayer=a},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GridCache=void 0;var v=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=v},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(h,g){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,b){A.__proto__=b}||function(A,b){for(var w in b)b.hasOwnProperty(w)&&(A[w]=b[w])})(h,g)},function(c,h){function g(){this.constructor=c}v(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=x(9),d=x(44),l=x(27),o=x(46),n=x(11),t=x(28),a=x(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,A){var b=c.call(this)||this;b._config=A,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 E=b._width*b._height;return b._cacheMap=new o.LRUMap(E),b._cacheMap.prealloc(E),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,A,b,w){if(A.code===32)return!0;if(!this._canCache(A))return!1;var E=u(A),C=this._cacheMap.get(E);if(C!=null)return this._drawFromCache(g,C,b,w),!0;if(this._drawToCacheCount<100){var _=void 0;_=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var T=this._drawToCache(A,_);return this._cacheMap.set(E,T),this._drawFromCache(g,T,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,A,b,w){if(!A.isEmpty){var E=this._toCoordinateX(A.index),C=this._toCoordinateY(A.index);g.drawImage(A.inBitmap?this._bitmap:this._cacheCanvas,E,C,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,A){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,E=g.italic?"italic":"";this._tmpCtx.font=E+" "+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 C=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),_=!1;this._config.allowTransparency||(_=function(I,F){for(var P=!0,B=F.rgba>>>24,k=F.rgba>>>16&255,G=F.rgba>>>8&255,M=0;M<I.data.length;M+=4)I.data[M]===B&&I.data[M+1]===k&&I.data[M+2]===G?I.data[M+3]=0:P=!1;return P}(C,b));var T=this._toCoordinateX(A),S=this._toCoordinateY(A);this._cacheCtx.putImageData(C,T,S);var O={index:A,isEmpty:_,inBitmap:!1};return this._addGlyphToBitmap(O),O},h.prototype._addGlyphToBitmap=function(g){var A=this;!("createImageBitmap"in window)||n.isFirefox||n.isSafari||(this._glyphsWaitingOnBitmap.push(g),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return A._generateBitmap()},100)))},h.prototype._generateBitmap=function(){var g=this,A=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(b){g._bitmap=b;for(var w=0;w<A.length;w++)A[w].inBitmap=!0}),this._bitmapCommitTimeout=null},h}(d.BaseCharAtlas);p.DynamicCharAtlas=r;var s=function(c){function h(g,A){return c.call(this)||this}return m(h,c),h.prototype.draw=function(g,A,b,w){return!1},h}(d.BaseCharAtlas);p.NoneCharAtlas=s},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BaseCharAtlas=void 0;var v=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=v},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColorContrastCache=void 0;var v=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=v},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LRUMap=void 0;var v=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=v},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(l,o){return(v=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}v(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 A=Math.max(r-u-1,0);if(this._fillCells(0,u+1,this._bufferService.cols,A),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}(x(13).BaseRenderLayer);p.SelectionRenderLayer=f},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(t,a){return(v=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}v(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=x(13),d=x(4),l=function(n){function t(a,e,u,r,s,c,h,g,A){var b=n.call(this,a,"cursor",e,!0,u,r,c,h)||this;return b._onRequestRedraw=s,b._coreService=g,b._coreBrowserService=A,b._cell=new d.CellData,b._state={x:0,y:0,isFocused:!1,style:"",width:0},b._cursorRenderers={bar:b._renderBarCursor.bind(b),block:b._renderBlockCursor.bind(b),underline:b._renderUnderlineCursor.bind(b)},b}return 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,x){"use strict";var v,m=this&&this.__extends||(v=function(t,a){return(v=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}v(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=x(13),d=x(9),l=x(26),o=function(n){function t(a,e,u,r,s,c,h,g){var A=n.call(this,a,"link",e,!0,u,r,h,g)||this;return s.onShowLinkUnderline(function(b){return A._onShowLinkUnderline(b)}),s.onHideLinkUnderline(function(b){return A._onHideLinkUnderline(b)}),c.onShowLinkUnderline(function(b){return A._onShowLinkUnderline(b)}),c.onHideLinkUnderline(function(b){return A._onHideLinkUnderline(b)}),A}return 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,x){"use strict";var v=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=x(0),d=x(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 E=g._bufferService.buffer.lines.get(w[0]);if(!E)return"break";var C=E.getFg(w[1]),_=C?C>>9&511:void 0;e.validationCallback?e.validationCallback(b,function(T){r._rowsTimeoutId||T&&r._addLink(w[1],w[0]-r._bufferService.buffer.ydisp,b,e,_)}):g._addLink(w[1],w[0]-g._bufferService.buffer.ydisp,b,e,_)},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),A=(h+c)%this._bufferService.cols,b=g+Math.floor((h+c)/this._bufferService.cols);A===0&&(A=this._bufferService.cols,b--),this._mouseZoneManager.add(new o(h+1,g+1,A+1,b+1,function(w){if(u.handler)return u.handler(w,e);var E=window.open();E?(E.opener=null,E.location.href=e):console.warn("Opening link blocked as opener could not be cleared")},function(){s._onShowLinkUnderline.fire(s._createLinkHoverEvent(h,g,A,b,r)),s._element.classList.add("xterm-cursor-pointer")},function(w){s._onLinkTooltip.fire(s._createLinkHoverEvent(h,g,A,b,r)),u.hoverTooltipCallback&&u.hoverTooltipCallback(w,e,{start:{x:h,y:g},end:{x:A,y:b}})},function(){s._onHideLinkUnderline.fire(s._createLinkHoverEvent(h,g,A,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=v([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,x){"use strict";var v,m=this&&this.__extends||(v=function(b,w){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,C){E.__proto__=C}||function(E,C){for(var _ in C)C.hasOwnProperty(_)&&(E[_]=C[_])})(b,w)},function(A,b){function w(){this.constructor=A}v(A,b),A.prototype=b===null?Object.create(b):(w.prototype=b.prototype,new w)}),f=this&&this.__decorate||function(A,b,w,E){var C,_=arguments.length,T=_<3?b:E===null?E=Object.getOwnPropertyDescriptor(b,w):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(A,b,w,E);else for(var S=A.length-1;S>=0;S--)(C=A[S])&&(T=(_<3?C(T):_>3?C(b,w,T):C(b,w))||T);return _>3&&T&&Object.defineProperty(b,w,T),T},d=this&&this.__param||function(A,b){return function(w,E){b(w,E,A)}};Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionService=void 0;var l=x(11),o=x(52),n=x(4),t=x(0),a=x(5),e=x(1),u=x(30),r=x(53),s=x(2),c=String.fromCharCode(160),h=new RegExp(c,"g"),g=function(A){function b(w,E,C,_,T,S,O){var I=A.call(this)||this;return I._element=w,I._screenElement=E,I._bufferService=C,I._coreService=_,I._mouseService=T,I._optionsService=S,I._renderService=O,I._dragScrollAmount=0,I._enabled=!0,I._workCell=new n.CellData,I._mouseDownTimeStamp=0,I._onLinuxMouseSelection=I.register(new t.EventEmitter),I._onRedrawRequest=I.register(new t.EventEmitter),I._onSelectionChange=I.register(new t.EventEmitter),I._onRequestScrollLines=I.register(new t.EventEmitter),I._mouseMoveListener=function(F){return I._onMouseMove(F)},I._mouseUpListener=function(F){return I._onMouseUp(F)},I._coreService.onUserInput(function(){I.hasSelection&&I.clearSelection()}),I._trimListener=I._bufferService.buffer.lines.onTrim(function(F){return I._onTrim(F)}),I.register(I._bufferService.buffers.onBufferActivate(function(F){return I._onBufferActivate(F)})),I.enable(),I._model=new o.SelectionModel(I._bufferService),I._activeSelectionMode=0,I}return m(b,A),Object.defineProperty(b.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._removeMouseDownListeners()},b.prototype.reset=function(){this.clearSelection()},b.prototype.disable=function(){this.clearSelection(),this._enabled=!1},b.prototype.enable=function(){this._enabled=!0},Object.defineProperty(b.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"hasSelection",{get:function(){var E=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;return!(!E||!C)&&(E[0]!==C[0]||E[1]!==C[1])},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionText",{get:function(){var E=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;if(!E||!C)return"";var _=this._bufferService.buffer,T=[];if(this._activeSelectionMode===3){if(E[0]===C[0])return"";for(var S=E[1];S<=C[1];S++){var O=_.translateBufferLineToString(S,!0,E[0],C[0]);T.push(O)}}else{var I=E[1]===C[1]?C[0]:void 0;for(T.push(_.translateBufferLineToString(E[1],!0,E[0],I)),S=E[1]+1;S<=C[1]-1;S++){var F=_.lines.get(S);O=_.translateBufferLineToString(S,!0),F&&F.isWrapped?T[T.length-1]+=O:T.push(O)}E[1]!==C[1]&&(F=_.lines.get(C[1]),O=_.translateBufferLineToString(C[1],!0,0,C[0]),F&&F.isWrapped?T[T.length-1]+=O:T.push(O))}return T.map(function(P){return P.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 E=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return E._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 E=this._getMouseBufferCoords(w),C=this._model.finalSelectionStart,_=this._model.finalSelectionEnd;return!!(C&&_&&E)&&this._areCoordsInSelection(E,C,_)},b.prototype._areCoordsInSelection=function(w,E,C){return w[1]>E[1]&&w[1]<C[1]||E[1]===C[1]&&w[1]===E[1]&&w[0]>=E[0]&&w[0]<C[0]||E[1]<C[1]&&w[1]===C[1]&&w[0]<C[0]||E[1]<C[1]&&w[1]===E[1]&&w[0]>=E[0]},b.prototype.selectWordAtCursor=function(w){var E=this._getMouseBufferCoords(w);E&&(this._selectWordAt(E,!1),this._model.selectionEnd=void 0,this.refresh(!0))},b.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},b.prototype.selectLines=function(w,E){this._model.clearSelection(),w=Math.max(w,0),E=Math.min(E,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,w],this._model.selectionEnd=[this._bufferService.cols,E],this.refresh(),this._onSelectionChange.fire()},b.prototype._onTrim=function(w){this._model.onTrim(w)&&this.refresh()},b.prototype._getMouseBufferCoords=function(w){var E=this._mouseService.getCoords(w,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(E)return E[0]--,E[1]--,E[1]+=this._bufferService.buffer.ydisp,E},b.prototype._getMouseEventScrollAmount=function(w){var E=u.getCoordsRelativeToElement(w,this._screenElement)[1],C=this._renderService.dimensions.canvasHeight;return E>=0&&E<=C?0:(E>C&&(E-=C),E=Math.min(Math.max(E,-50),50),(E/=50)/Math.abs(E)+Math.round(14*E))},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 E=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);E&&E.length!==this._model.selectionStart[0]&&E.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},b.prototype._onDoubleClick=function(w){var E=this._getMouseBufferCoords(w);E&&(this._activeSelectionMode=1,this._selectWordAt(E,!0))},b.prototype._onTripleClick=function(w){var E=this._getMouseBufferCoords(w);E&&(this._activeSelectionMode=2,this._selectLineAt(E[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 E=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 C=this._bufferService.buffer;if(this._model.selectionEnd[1]<C.lines.length){var _=C.lines.get(this._model.selectionEnd[1]);_&&_.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}E&&E[0]===this._model.selectionEnd[0]&&E[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},b.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var 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 E=w.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&E<500&&w.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var C=this._mouseService.getCoords(w,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(C&&C[0]!==void 0&&C[1]!==void 0){var _=r.moveToCellSequence(C[0]-1,C[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(_,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},b.prototype._onBufferActivate=function(w){var E=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=w.activeBuffer.lines.onTrim(function(C){return E._onTrim(C)})},b.prototype._convertViewportColToCharacterIndex=function(w,E){for(var C=E[0],_=0;E[0]>=_;_++){var T=w.loadCell(_,this._workCell).getChars().length;this._workCell.getWidth()===0?C--:T>1&&E[0]!==_&&(C+=T-1)}return C},b.prototype.setSelection=function(w,E,C){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[w,E],this._model.selectionStartLength=C,this.refresh()},b.prototype._getWordAt=function(w,E,C,_){if(C===void 0&&(C=!0),_===void 0&&(_=!0),!(w[0]>=this._bufferService.cols)){var T=this._bufferService.buffer,S=T.lines.get(w[1]);if(S){var O=T.translateBufferLineToString(w[1],!1),I=this._convertViewportColToCharacterIndex(S,w),F=I,P=w[0]-I,B=0,k=0,G=0,M=0;if(O.charAt(I)===" "){for(;I>0&&O.charAt(I-1)===" ";)I--;for(;F<O.length&&O.charAt(F+1)===" ";)F++}else{var j=w[0],K=w[0];S.getWidth(j)===0&&(B++,j--),S.getWidth(K)===2&&(k++,K++);var z=S.getString(K).length;for(z>1&&(M+=z-1,F+=z-1);j>0&&I>0&&!this._isCharWordSeparator(S.loadCell(j-1,this._workCell));){S.loadCell(j-1,this._workCell);var V=this._workCell.getChars().length;this._workCell.getWidth()===0?(B++,j--):V>1&&(G+=V-1,I-=V-1),I--,j--}for(;K<S.length&&F+1<O.length&&!this._isCharWordSeparator(S.loadCell(K+1,this._workCell));){S.loadCell(K+1,this._workCell);var Q=this._workCell.getChars().length;this._workCell.getWidth()===2?(k++,K++):Q>1&&(M+=Q-1,F+=Q-1),F++,K++}}F++;var X=I+P-B+G,te=Math.min(this._bufferService.cols,F-I+B+k-G-M);if(E||O.slice(I,F).trim()!==""){if(C&&X===0&&S.getCodePoint(0)!==32){var $=T.lines.get(w[1]-1);if($&&S.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;X-=re,te+=re}}}if(_&&X+te===this._bufferService.cols&&S.getCodePoint(this._bufferService.cols-1)!==32){var Se=T.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:X,length:te}}}}},b.prototype._selectWordAt=function(w,E){var C=this._getWordAt(w,E);if(C){for(;C.start<0;)C.start+=this._bufferService.cols,w[1]--;this._model.selectionStart=[C.start,w[1]],this._model.selectionStartLength=C.length}},b.prototype._selectToWordAt=function(w){var E=this._getWordAt(w,!0);if(E){for(var C=w[1];E.start<0;)E.start+=this._bufferService.cols,C--;if(!this._model.areSelectionValuesReversed())for(;E.start+E.length>this._bufferService.cols;)E.length-=this._bufferService.cols,C++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?E.start:E.start+E.length,C]}},b.prototype._isCharWordSeparator=function(w){return w.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(w.getChars())>=0},b.prototype._selectLineAt=function(w){var E=this._bufferService.buffer.getWrappedRangeForLine(w);this._model.selectionStart=[0,E.first],this._model.selectionEnd=[this._bufferService.cols,E.last],this._model.selectionStartLength=0},b=f([d(2,e.IBufferService),d(3,e.ICoreService),d(4,a.IMouseService),d(5,e.IOptionsService),d(6,a.IRenderService)],b)}(s.Disposable);p.SelectionService=g},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionModel=void 0;var v=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=v},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.moveToCellSequence=void 0;var v=x(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 A=0,b=c-f(g,c),w=h-f(g,h),E=0;E<Math.abs(b-w);E++){var C=d(c,h)==="A"?-1:1,_=g.buffer.lines.get(b+C*E);_&&_.isWrapped&&A++}return A}(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 v.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,A,b,w,E,C){return m(A,w,E,C).length===0?"":n(l(g,A,g,A-f(E,A),!1,E).length,o("D",C))}(s,c,0,a,e,u)+m(c,a,e,u)+function(g,A,b,w,E,C){var _;_=m(A,w,E,C).length>0?w-f(E,w):A;var T=w,S=function(O,I,F,P,B,k){var G;return G=m(F,P,B,k).length>0?P-f(B,P):I,O<F&&G<=P||O>=F&&G<P?"C":"D"}(g,A,b,w,E,C);return n(l(g,_,b,T,S==="C",E).length,o(S,C))}(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,A){return A.cols-g}(c>a?t:s,e)+(h-1)*e.cols+1+((c>a?s:t)-1),o(r,u))}},function(y,p,x){"use strict";var v=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=x(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=v([m(0,f.IOptionsService)],l)}();p.SoundService=d},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(u,r){return(v=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}v(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 A=e.length-1;A>=0;A--)(c=e[A])&&(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=x(2),o=x(7),n=x(5),t=x(1),a=function(e){function u(r,s,c,h,g,A){var b=e.call(this)||this;return b._element=r,b._screenElement=s,b._bufferService=c,b._mouseService=h,b._selectionService=g,b._optionsService=A,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 A=this._zones[g];if(A.y1===A.y2){if(h===A.y1&&c>=A.x1&&c<A.x2)return A}else if(h===A.y1&&c>=A.x1||h===A.y2&&c<A.x2||h>A.y1&&h<A.y2)return A}},u=f([d(2,t.IBufferService),d(3,n.IMouseService),d(4,n.ISelectionService),d(5,t.IOptionsService)],u)}(l.Disposable);p.MouseZoneManager=a},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(r,s){return(v=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}v(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=x(18),d=x(11),l=x(31),o=x(7),n=x(2),t=x(32),a=x(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(A){return h._onBoundaryFocus(A,0)},h._bottomBoundaryFocusListener=function(A){return h._onBoundaryFocus(A,1)},h._rowElements[0].addEventListener("focus",h._topBoundaryFocusListener),h._rowElements[h._rowElements.length-1].addEventListener("focus",h._bottomBoundaryFocusListener),h._refreshRowsDimensions(),h._accessibilityTreeRoot.appendChild(h._rowContainer),h._renderRowsDebouncer=new l.RenderDebouncer(h._renderRows.bind(h)),h._refreshRows(),h._liveRegion=document.createElement("div"),h._liveRegion.classList.add("live-region"),h._liveRegion.setAttribute("aria-live","assertive"),h._accessibilityTreeRoot.appendChild(h._liveRegion),!h._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return h._terminal.element.insertAdjacentElement("afterbegin",h._accessibilityTreeRoot),h.register(h._renderRowsDebouncer),h.register(h._terminal.onResize(function(A){return h._onResize(A.rows)})),h.register(h._terminal.onRender(function(A){return h._refreshRows(A.start,A.end)})),h.register(h._terminal.onScroll(function(){return h._refreshRows()})),h.register(h._terminal.onA11yChar(function(A){return h._onChar(A)})),h.register(h._terminal.onLineFeed(function(){return h._onChar(`
|
|
|
`)})),h.register(h._terminal.onA11yTab(function(A){return h._onTab(A)})),h.register(h._terminal.onKey(function(A){return h._onKey(A.key)})),h.register(h._terminal.onBlur(function(){return h._clearLiveRegion()})),h.register(h._renderService.onDimensionsChange(function(){return h._refreshRowsDimensions()})),h._screenDprMonitor=new t.ScreenDprMonitor,h.register(h._screenDprMonitor),h._screenDprMonitor.setListener(function(){return h._refreshRowsDimensions()}),h.register(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 A,b;if(c===0?(A=h,b=this._rowElements.pop(),this._rowContainer.removeChild(b)):(A=this._rowElements.shift(),b=h,this._rowContainer.removeChild(A)),A.removeEventListener("focus",this._topBoundaryFocusListener),b.removeEventListener("focus",this._bottomBoundaryFocusListener),c===0){var 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(),A=s;A<=c;A++){var b=h.translateBufferLineToString(h.ydisp+A,!0),w=(h.ydisp+A+1).toString(),E=this._rowElements[A];E&&(b.length===0?E.innerHTML=" ":E.textContent=b,E.setAttribute("aria-posinset",w),E.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,x){"use strict";var v,m=this&&this.__extends||(v=function(g,A){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var E in w)w.hasOwnProperty(E)&&(b[E]=w[E])})(g,A)},function(h,g){function A(){this.constructor=h}v(h,g),h.prototype=g===null?Object.create(g):(A.prototype=g.prototype,new A)}),f=this&&this.__decorate||function(h,g,A,b){var w,E=arguments.length,C=E<3?g:b===null?b=Object.getOwnPropertyDescriptor(g,A):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(h,g,A,b);else for(var _=h.length-1;_>=0;_--)(w=h[_])&&(C=(E<3?w(C):E>3?w(g,A,C):w(g,A))||C);return E>3&&C&&Object.defineProperty(g,A,C),C},d=this&&this.__param||function(h,g){return function(A,b){g(A,b,h)}};Object.defineProperty(p,"__esModule",{value:!0}),p.DomRenderer=void 0;var l=x(58),o=x(9),n=x(2),t=x(5),a=x(1),e=x(0),u=x(10),r=x(17),s=1,c=function(h){function g(A,b,w,E,C,_,T,S,O){var I=h.call(this)||this;return I._colors=A,I._element=b,I._screenElement=w,I._viewportElement=E,I._linkifier=C,I._linkifier2=_,I._charSizeService=T,I._optionsService=S,I._bufferService=O,I._terminalClass=s++,I._rowElements=[],I._rowContainer=document.createElement("div"),I._rowContainer.classList.add("xterm-rows"),I._rowContainer.style.lineHeight="normal",I._rowContainer.setAttribute("aria-hidden","true"),I._refreshRowElements(I._bufferService.cols,I._bufferService.rows),I._selectionContainer=document.createElement("div"),I._selectionContainer.classList.add("xterm-selection"),I._selectionContainer.setAttribute("aria-hidden","true"),I.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},I._updateDimensions(),I._injectCss(),I._rowFactory=new l.DomRendererRowFactory(document,I._optionsService,I._colors),I._element.classList.add("xterm-dom-renderer-owner-"+I._terminalClass),I._screenElement.appendChild(I._rowContainer),I._screenElement.appendChild(I._selectionContainer),I._linkifier.onShowLinkUnderline(function(F){return I._onLinkHover(F)}),I._linkifier.onHideLinkUnderline(function(F){return I._onLinkLeave(F)}),I._linkifier2.onShowLinkUnderline(function(F){return I._onLinkHover(F)}),I._linkifier2.onHideLinkUnderline(function(F){return I._onLinkLeave(F)}),I}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 A=0,b=this._rowElements;A<b.length;A++){var w=b[A];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 E=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=E,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},g.prototype.setColors=function(A){this._colors=A,this._injectCss()},g.prototype._injectCss=function(){var A=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var b=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";b+=this._terminalSelector+" span:not(."+l.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+l.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+l.ITALIC_CLASS+" { font-style: italic;}",b+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",b+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",b+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+l.CURSOR_CLASS+"."+l.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+l.CURSOR_CLASS+"."+l.CURSOR_BLINK_CLASS+":not(."+l.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+l.CURSOR_CLASS+"."+l.CURSOR_BLINK_CLASS+"."+l.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+l.CURSOR_CLASS+"."+l.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+l.CURSOR_CLASS+"."+l.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+l.CURSOR_CLASS+"."+l.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",b+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(w,E){b+=A._terminalSelector+" .xterm-fg-"+E+" { color: "+w.css+"; }"+A._terminalSelector+" .xterm-bg-"+E+" { 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(A,b){for(var w=this._rowElements.length;w<=b;w++){var E=document.createElement("div");this._rowContainer.appendChild(E),this._rowElements.push(E)}for(;this._rowElements.length>b;)this._rowContainer.removeChild(this._rowElements.pop())},g.prototype.onResize=function(A,b){this._refreshRowElements(A,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(A,b,w){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(A&&b){var E=A[1]-this._bufferService.buffer.ydisp,C=b[1]-this._bufferService.buffer.ydisp,_=Math.max(E,0),T=Math.min(C,this._bufferService.rows-1);if(!(_>=this._bufferService.rows||T<0)){var S=document.createDocumentFragment();if(w)S.appendChild(this._createSelectionElement(_,A[0],b[0],T-_+1));else{var O=E===_?A[0]:0,I=_===T?b[0]:this._bufferService.cols;S.appendChild(this._createSelectionElement(_,O,I));var F=T-_-1;if(S.appendChild(this._createSelectionElement(_+1,0,this._bufferService.cols,F)),_!==T){var P=C===T?b[0]:this._bufferService.cols;S.appendChild(this._createSelectionElement(T,0,P))}}this._selectionContainer.appendChild(S)}}},g.prototype._createSelectionElement=function(A,b,w,E){E===void 0&&(E=1);var C=document.createElement("div");return C.style.height=E*this.dimensions.actualCellHeight+"px",C.style.top=A*this.dimensions.actualCellHeight+"px",C.style.left=b*this.dimensions.actualCellWidth+"px",C.style.width=this.dimensions.actualCellWidth*(w-b)+"px",C},g.prototype.onCursorMove=function(){},g.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},g.prototype.clear=function(){for(var A=0,b=this._rowElements;A<b.length;A++)b[A].innerHTML=""},g.prototype.renderRows=function(A,b){for(var w=this._bufferService.buffer.ybase+this._bufferService.buffer.y,E=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),C=this._optionsService.options.cursorBlink,_=A;_<=b;_++){var T=this._rowElements[_];T.innerHTML="";var S=_+this._bufferService.buffer.ydisp,O=this._bufferService.buffer.lines.get(S),I=this._optionsService.options.cursorStyle;T.appendChild(this._rowFactory.createRow(O,S===w,I,E,C,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(A){return-1},g.prototype.deregisterCharacterJoiner=function(A){return!1},g.prototype._onLinkHover=function(A){this._setCellUnderline(A.x1,A.x2,A.y1,A.y2,A.cols,!0)},g.prototype._onLinkLeave=function(A){this._setCellUnderline(A.x1,A.x2,A.y1,A.y2,A.cols,!1)},g.prototype._setCellUnderline=function(A,b,w,E,C,_){for(;A!==b||w!==E;){var T=this._rowElements[w];if(!T)return;var S=T.children[A];S&&(S.style.textDecoration=_?"underline":"none"),++A>=C&&(A=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,x){"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 v=x(9),m=x(3),f=x(4),d=x(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,A=Math.min(t.length,c)-1;A>=0;A--)if(t.loadCell(A,this._workCell).getCode()!==m.NULL_CELL_CODE||a&&A===u){g=A+1;break}for(A=0;A<g;A++){t.loadCell(A,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&&A===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 E=this._workCell.getFgColor(),C=this._workCell.getFgColorMode(),_=this._workCell.getBgColor(),T=this._workCell.getBgColorMode(),S=!!this._workCell.isInverse();if(S){var O=E;E=_,_=O;var I=C;C=T,T=I}switch(C){case 16777216:case 33554432:this._workCell.isBold()&&E<8&&this._optionsService.options.drawBoldTextInBrightColors&&(E+=8),this._applyMinimumContrast(w,this._colors.background,this._colors.ansi[E])||w.classList.add("xterm-fg-"+E);break;case 50331648:var F=d.rgba.toColor(E>>16&255,E>>8&255,255&E);this._applyMinimumContrast(w,this._colors.background,F)||this._addStyle(w,"color:#"+o(E.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(w,this._colors.background,this._colors.foreground)||S&&w.classList.add("xterm-fg-"+v.INVERTED_DEFAULT_COLOR)}switch(T){case 16777216:case 33554432:w.classList.add("xterm-bg-"+_);break;case 50331648:this._addStyle(w,"background-color:#"+o(_.toString(16),"0",6));break;case 0:default:S&&w.classList.add("xterm-bg-"+v.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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.evaluateKeyboardEvent=void 0;var v=x(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?v.C0.ESC+"OA":v.C0.ESC+"[A":f.key==="UIKeyInputLeftArrow"?n.key=d?v.C0.ESC+"OD":v.C0.ESC+"[D":f.key==="UIKeyInputRightArrow"?n.key=d?v.C0.ESC+"OC":v.C0.ESC+"[C":f.key==="UIKeyInputDownArrow"&&(n.key=d?v.C0.ESC+"OB":v.C0.ESC+"[B");break;case 8:if(f.shiftKey){n.key=v.C0.BS;break}if(f.altKey){n.key=v.C0.ESC+v.C0.DEL;break}n.key=v.C0.DEL;break;case 9:if(f.shiftKey){n.key=v.C0.ESC+"[Z";break}n.key=v.C0.HT,n.cancel=!0;break;case 13:n.key=f.altKey?v.C0.ESC+v.C0.CR:v.C0.CR,n.cancel=!0;break;case 27:n.key=v.C0.ESC,f.altKey&&(n.key=v.C0.ESC+v.C0.ESC),n.cancel=!0;break;case 37:if(f.metaKey)break;t?(n.key=v.C0.ESC+"[1;"+(t+1)+"D",n.key===v.C0.ESC+"[1;3D"&&(n.key=v.C0.ESC+(l?"b":"[1;5D"))):n.key=d?v.C0.ESC+"OD":v.C0.ESC+"[D";break;case 39:if(f.metaKey)break;t?(n.key=v.C0.ESC+"[1;"+(t+1)+"C",n.key===v.C0.ESC+"[1;3C"&&(n.key=v.C0.ESC+(l?"f":"[1;5C"))):n.key=d?v.C0.ESC+"OC":v.C0.ESC+"[C";break;case 38:if(f.metaKey)break;t?(n.key=v.C0.ESC+"[1;"+(t+1)+"A",l||n.key!==v.C0.ESC+"[1;3A"||(n.key=v.C0.ESC+"[1;5A")):n.key=d?v.C0.ESC+"OA":v.C0.ESC+"[A";break;case 40:if(f.metaKey)break;t?(n.key=v.C0.ESC+"[1;"+(t+1)+"B",l||n.key!==v.C0.ESC+"[1;3B"||(n.key=v.C0.ESC+"[1;5B")):n.key=d?v.C0.ESC+"OB":v.C0.ESC+"[B";break;case 45:f.shiftKey||f.ctrlKey||(n.key=v.C0.ESC+"[2~");break;case 46:n.key=t?v.C0.ESC+"[3;"+(t+1)+"~":v.C0.ESC+"[3~";break;case 36:n.key=t?v.C0.ESC+"[1;"+(t+1)+"H":d?v.C0.ESC+"OH":v.C0.ESC+"[H";break;case 35:n.key=t?v.C0.ESC+"[1;"+(t+1)+"F":d?v.C0.ESC+"OF":v.C0.ESC+"[F";break;case 33:f.shiftKey?n.type=2:n.key=v.C0.ESC+"[5~";break;case 34:f.shiftKey?n.type=3:n.key=v.C0.ESC+"[6~";break;case 112:n.key=t?v.C0.ESC+"[1;"+(t+1)+"P":v.C0.ESC+"OP";break;case 113:n.key=t?v.C0.ESC+"[1;"+(t+1)+"Q":v.C0.ESC+"OQ";break;case 114:n.key=t?v.C0.ESC+"[1;"+(t+1)+"R":v.C0.ESC+"OR";break;case 115:n.key=t?v.C0.ESC+"[1;"+(t+1)+"S":v.C0.ESC+"OS";break;case 116:n.key=t?v.C0.ESC+"[15;"+(t+1)+"~":v.C0.ESC+"[15~";break;case 117:n.key=t?v.C0.ESC+"[17;"+(t+1)+"~":v.C0.ESC+"[17~";break;case 118:n.key=t?v.C0.ESC+"[18;"+(t+1)+"~":v.C0.ESC+"[18~";break;case 119:n.key=t?v.C0.ESC+"[19;"+(t+1)+"~":v.C0.ESC+"[19~";break;case 120:n.key=t?v.C0.ESC+"[20;"+(t+1)+"~":v.C0.ESC+"[20~";break;case 121:n.key=t?v.C0.ESC+"[21;"+(t+1)+"~":v.C0.ESC+"[21~";break;case 122:n.key=t?v.C0.ESC+"[23;"+(t+1)+"~":v.C0.ESC+"[23~";break;case 123:n.key=t?v.C0.ESC+"[24;"+(t+1)+"~":v.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=v.C0.US);else{var a=m[f.keyCode],e=a&&a[f.shiftKey?1:0];if(e)n.key=v.C0.ESC+e;else if(f.keyCode>=65&&f.keyCode<=90){var u=f.ctrlKey?f.keyCode-64:f.keyCode+32;n.key=v.C0.ESC+String.fromCharCode(u)}}else f.keyCode>=65&&f.keyCode<=90?n.key=String.fromCharCode(f.keyCode-64):f.keyCode===32?n.key=v.C0.NUL:f.keyCode>=51&&f.keyCode<=55?n.key=String.fromCharCode(f.keyCode-51+27):f.keyCode===56?n.key=v.C0.DEL:f.keyCode===219?n.key=v.C0.ESC:f.keyCode===220?n.key=v.C0.FS:f.keyCode===221&&(n.key=v.C0.GS)}return n}},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(c,h){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,A){g.__proto__=A}||function(g,A){for(var b in A)A.hasOwnProperty(b)&&(g[b]=A[b])})(c,h)},function(s,c){function h(){this.constructor=s}v(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 A,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 E=s.length-1;E>=0;E--)(A=s[E])&&(w=(b<3?A(w):b>3?A(c,h,w):A(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=x(31),o=x(0),n=x(2),t=x(32),a=x(7),e=x(1),u=x(5),r=function(s){function c(h,g,A,b,w,E){var C=s.call(this)||this;if(C._renderer=h,C._rowCount=g,C._isPaused=!1,C._needsFullRefresh=!1,C._isNextRenderRedrawOnly=!0,C._needsSelectionRefresh=!1,C._canvasWidth=0,C._canvasHeight=0,C._selectionState={start:void 0,end:void 0,columnSelectMode:!1},C._onDimensionsChange=new o.EventEmitter,C._onRender=new o.EventEmitter,C._onRefreshRequest=new o.EventEmitter,C.register({dispose:function(){return C._renderer.dispose()}}),C._renderDebouncer=new l.RenderDebouncer(function(T,S){return C._renderRows(T,S)}),C.register(C._renderDebouncer),C._screenDprMonitor=new t.ScreenDprMonitor,C._screenDprMonitor.setListener(function(){return C.onDevicePixelRatioChange()}),C.register(C._screenDprMonitor),C.register(E.onResize(function(T){return C._fullRefresh()})),C.register(b.onOptionChange(function(){return C._renderer.onOptionsChanged()})),C.register(w.onCharSizeChange(function(){return C.onCharSizeChanged()})),C._renderer.onRequestRedraw(function(T){return C.refreshRows(T.start,T.end,!0)}),C.register(a.addDisposableDomListener(window,"resize",function(){return C.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var _=new IntersectionObserver(function(T){return C._onIntersectionChange(T[T.length-1])},{threshold:0});_.observe(A),C.register({dispose:function(){return _.disconnect()}})}return C}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,A){A===void 0&&(A=!1),this._isPaused?this._needsFullRefresh=!0:(A||(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(A){return g.refreshRows(A.start,A.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},c.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},c.prototype.setColors=function(h){this._renderer.setColors(h),this._fullRefresh()},c.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},c.prototype.onResize=function(h,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,A){this._selectionState.start=h,this._selectionState.end=g,this._selectionState.columnSelectMode=A,this._renderer.onSelectionChanged(h,g,A)},c.prototype.onCursorMove=function(){this._renderer.onCursorMove()},c.prototype.clear=function(){this._renderer.clear()},c.prototype.registerCharacterJoiner=function(h){return this._renderer.registerCharacterJoiner(h)},c.prototype.deregisterCharacterJoiner=function(h){return this._renderer.deregisterCharacterJoiner(h)},c=f([d(3,e.IOptionsService),d(4,u.ICharSizeService),d(5,e.IBufferService)],c)}(n.Disposable);p.RenderService=r},function(y,p,x){"use strict";var v=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=x(1),d=x(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=v([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,x){"use strict";var v=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=x(5),d=x(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=v([m(0,f.IRenderService),m(1,f.ICharSizeService)],o)}();p.MouseService=l},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(u,r){return(v=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}v(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 A=e.length-1;A>=0;A--)(c=e[A])&&(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=x(1),o=x(0),n=x(2),t=x(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,A){var b;s?((b=c._activeProviderReplies)===null||b===void 0?void 0:b.get(A))&&(h=c._checkLinkProviderResult(A,r,h)):g.provideLinks(r.y,function(w){var E,C;if(!c._isMouseOut){var _=w==null?void 0:w.map(function(T){return{link:T}});(E=c._activeProviderReplies)===null||E===void 0||E.set(A,_),h=c._checkLinkProviderResult(A,r,h),((C=c._activeProviderReplies)===null||C===void 0?void 0:C.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 A=0;A<g.length;A++)for(var b=g[A],w=b.link.range.start.y<r?0:b.link.range.start.x,E=b.link.range.end.y>r?this._bufferService.cols:b.link.range.end.x,C=w;C<=E;C++){if(c.has(C)){g.splice(A--,1);break}c.add(C)}}},u.prototype._checkLinkProviderResult=function(r,s,c){var h,g=this;if(!this._activeProviderReplies)return c;for(var A=this._activeProviderReplies.get(r),b=!1,w=0;w<r;w++)this._activeProviderReplies.has(w)&&!this._activeProviderReplies.get(w)||(b=!0);if(!b&&A){var E=A.find(function(_){return g._linkAtPosition(_.link,s)});E&&(c=!0,this._handleNewLink(E))}if(this._activeProviderReplies.size===this._linkProviders.length&&!c)for(w=0;w<this._activeProviderReplies.size;w++){var C=(h=this._activeProviderReplies.get(w))===null||h===void 0?void 0:h.find(function(_){return g._linkAtPosition(_.link,s)});if(C){c=!0,this._handleNewLink(C);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,A;return(A=(g=s._currentLink)===null||g===void 0?void 0:g.state)===null||A===void 0?void 0:A.decorations.pointerCursor},set:function(g){var A,b;((A=s._currentLink)===null||A===void 0?void 0:A.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,A;return(A=(g=s._currentLink)===null||g===void 0?void 0:g.state)===null||A===void 0?void 0:A.decorations.underline},set:function(g){var A,b,w;((A=s._currentLink)===null||A===void 0?void 0:A.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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CoreBrowserService=void 0;var v=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=v},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(E,C){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,T){_.__proto__=T}||function(_,T){for(var S in T)T.hasOwnProperty(S)&&(_[S]=T[S])})(E,C)},function(w,E){function C(){this.constructor=w}v(w,E),w.prototype=E===null?Object.create(E):(C.prototype=E.prototype,new C)});Object.defineProperty(p,"__esModule",{value:!0}),p.CoreTerminal=void 0;var f=x(2),d=x(1),l=x(66),o=x(67),n=x(68),t=x(74),a=x(75),e=x(0),u=x(76),r=x(77),s=x(78),c=x(80),h=x(81),g=x(19),A=x(82),b=function(w){function E(C){var _=w.call(this)||this;return _._onBinary=new e.EventEmitter,_._onData=new e.EventEmitter,_._onLineFeed=new e.EventEmitter,_._onResize=new e.EventEmitter,_._onScroll=new e.EventEmitter,_._instantiationService=new l.InstantiationService,_.optionsService=new t.OptionsService(C),_._instantiationService.setService(d.IOptionsService,_.optionsService),_._bufferService=_.register(_._instantiationService.createInstance(n.BufferService)),_._instantiationService.setService(d.IBufferService,_._bufferService),_._logService=_._instantiationService.createInstance(o.LogService),_._instantiationService.setService(d.ILogService,_._logService),_._coreService=_.register(_._instantiationService.createInstance(a.CoreService,function(){return _.scrollToBottom()})),_._instantiationService.setService(d.ICoreService,_._coreService),_._coreMouseService=_._instantiationService.createInstance(u.CoreMouseService),_._instantiationService.setService(d.ICoreMouseService,_._coreMouseService),_._dirtyRowService=_._instantiationService.createInstance(r.DirtyRowService),_._instantiationService.setService(d.IDirtyRowService,_._dirtyRowService),_.unicodeService=_._instantiationService.createInstance(s.UnicodeService),_._instantiationService.setService(d.IUnicodeService,_.unicodeService),_._charsetService=_._instantiationService.createInstance(c.CharsetService),_._instantiationService.setService(d.ICharsetService,_._charsetService),_._inputHandler=new g.InputHandler(_._bufferService,_._charsetService,_._coreService,_._dirtyRowService,_._logService,_.optionsService,_._coreMouseService,_.unicodeService),_.register(e.forwardEvent(_._inputHandler.onLineFeed,_._onLineFeed)),_.register(_._inputHandler),_.register(e.forwardEvent(_._bufferService.onResize,_._onResize)),_.register(e.forwardEvent(_._coreService.onData,_._onData)),_.register(e.forwardEvent(_._coreService.onBinary,_._onBinary)),_.register(_.optionsService.onOptionChange(function(T){return _._updateOptions(T)})),_._writeBuffer=new A.WriteBuffer(function(T){return _._inputHandler.parse(T)}),_}return m(E,w),Object.defineProperty(E.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){var C;this._isDisposed||(w.prototype.dispose.call(this),(C=this._windowsMode)===null||C===void 0||C.dispose(),this._windowsMode=void 0)},E.prototype.write=function(C,_){this._writeBuffer.write(C,_)},E.prototype.writeSync=function(C){this._writeBuffer.writeSync(C)},E.prototype.resize=function(C,_){isNaN(C)||isNaN(_)||(C=Math.max(C,n.MINIMUM_COLS),_=Math.max(_,n.MINIMUM_ROWS),this._bufferService.resize(C,_))},E.prototype.scroll=function(C,_){_===void 0&&(_=!1);var T,S=this._bufferService.buffer;(T=this._cachedBlankLine)&&T.length===this.cols&&T.getFg(0)===C.fg&&T.getBg(0)===C.bg||(T=S.getBlankLine(C,_),this._cachedBlankLine=T),T.isWrapped=_;var O=S.ybase+S.scrollTop,I=S.ybase+S.scrollBottom;if(S.scrollTop===0){var F=S.lines.isFull;I===S.lines.length-1?F?S.lines.recycle().copyFrom(T):S.lines.push(T.clone()):S.lines.splice(I+1,0,T.clone()),F?this._bufferService.isUserScrolling&&(S.ydisp=Math.max(S.ydisp-1,0)):(S.ybase++,this._bufferService.isUserScrolling||S.ydisp++)}else{var P=I-O+1;S.lines.shiftElements(O+1,P-1,-1),S.lines.set(I,T.clone())}this._bufferService.isUserScrolling||(S.ydisp=S.ybase),this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom),this._onScroll.fire(S.ydisp)},E.prototype.scrollLines=function(C,_){var T=this._bufferService.buffer;if(C<0){if(T.ydisp===0)return;this._bufferService.isUserScrolling=!0}else C+T.ydisp>=T.ybase&&(this._bufferService.isUserScrolling=!1);var S=T.ydisp;T.ydisp=Math.max(Math.min(T.ydisp+C,T.ybase),0),S!==T.ydisp&&(_||this._onScroll.fire(T.ydisp))},E.prototype.scrollPages=function(C){this.scrollLines(C*(this.rows-1))},E.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},E.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},E.prototype.scrollToLine=function(C){var _=C-this._bufferService.buffer.ydisp;_!==0&&this.scrollLines(_)},E.prototype.addEscHandler=function(C,_){return this._inputHandler.addEscHandler(C,_)},E.prototype.addDcsHandler=function(C,_){return this._inputHandler.addDcsHandler(C,_)},E.prototype.addCsiHandler=function(C,_){return this._inputHandler.addCsiHandler(C,_)},E.prototype.addOscHandler=function(C,_){return this._inputHandler.addOscHandler(C,_)},E.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},E.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},E.prototype._updateOptions=function(C){var _;switch(C){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((_=this._windowsMode)===null||_===void 0||_.dispose(),this._windowsMode=void 0)}},E.prototype._enableWindowsMode=function(){var C=this;if(!this._windowsMode){var _=[];_.push(this.onLineFeed(h.updateWindowsModeWrappedState.bind(null,this._bufferService))),_.push(this.addCsiHandler({final:"H"},function(){return h.updateWindowsModeWrappedState(C._bufferService),!1})),this._windowsMode={dispose:function(){for(var S=0,O=_;S<O.length;S++)O[S].dispose()}}}},E}(f.Disposable);p.CoreTerminal=b},function(y,p,x){"use strict";var v=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=x(1),f=x(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(A,b){return A.index-b.index}),u=[],r=0,s=e;r<s.length;r++){var c=s[r],h=this._services.get(c.id);if(!h)throw new Error("[createInstance] "+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,v([void 0],v(t,u))))},o}();p.InstantiationService=l},function(y,p,x){"use strict";var v=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=x(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=v([m(0,l.IOptionsService)],t)}();p.LogService=n},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(u,r){return(v=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}v(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 A=e.length-1;A>=0;A--)(c=e[A])&&(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=x(1),o=x(69),n=x(0),t=x(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,x){"use strict";var v,m=this&&this.__extends||(v=function(n,t){return(v=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}v(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=x(70),d=x(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}(x(2).Disposable);p.BufferSet=l},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BufferStringIterator=p.Buffer=p.MAX_BUFFER_SIZE=void 0;var v=x(71),m=x(16),f=x(4),d=x(3),l=x(72),o=x(73),n=x(20),t=x(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 v.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 v.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 A=0;if(this._rows<s)for(var b=this._rows;b<s;b++)this.lines.length<s+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new m.BufferLine(r,c)):this.ybase>0&&this.lines.length<=this.ybase+this.y+A+1?(this.ybase--,A++,this.ydisp>0&&this.ydisp--):this.lines.push(new 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),A&&(this.y+=A),this.savedX=Math.min(this.savedX,r-1),this.scrollTop=0}if(this.scrollBottom=s-1,this._isReflowEnabled&&(this._reflow(r,s),this._cols>r))for(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,A=this.lines.length-1;A>=0;A--){var b=this.lines.get(A);if(!(!b||!b.isWrapped&&b.getTrimmedLength()<=r)){for(var w=[b];b.isWrapped&&A>0;)b=this.lines.get(--A),w.unshift(b);var E=this.ybase+this.y;if(!(E>=A&&E<A+w.length)){var C=w[w.length-1].getTrimmedLength(),_=l.reflowSmallerGetNewLineLengths(w,this._cols,r),T=_.length-w.length,S=void 0;S=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+T):Math.max(0,this.lines.length-this.lines.maxLength+T);for(var O=[],I=0;I<T;I++){var F=this.getBlankLine(m.DEFAULT_ATTR_DATA,!0);O.push(F)}O.length>0&&(h.push({start:A+w.length+g,newLines:O}),g+=O.length),w.push.apply(w,O);var P=_.length-1,B=_[P];B===0&&(B=_[--P]);for(var k=w.length-T-1,G=C;k>=0;){var M=Math.min(G,B);if(w[P].copyCellsFrom(w[k],G-M,B-M,M,!0),(B-=M)===0&&(B=_[--P]),(G-=M)===0){k--;var j=Math.max(k,0);G=l.getWrappedLineTrimmedLength(w,j,this._cols)}}for(I=0;I<w.length;I++)_[I]<r&&w[I].setCell(_[I],c);for(var K=T-S;K-- >0;)this.ybase===0?this.y<s-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+g)-s&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+T,this.ybase+s-1)}}}if(h.length>0){var z=[],V=[];for(I=0;I<this.lines.length;I++)V.push(this.lines.get(I));var Q=this.lines.length,X=Q-1,te=0,$=h[te];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+g);var le=0;for(I=Math.min(this.lines.maxLength-1,Q+g-1);I>=0;I--)if($&&$.start>X+le){for(var re=$.newLines.length-1;re>=0;re--)this.lines.set(I--,$.newLines[re]);I++,z.push({index:X+1,amount:$.newLines.length}),le+=$.newLines.length,$=h[++te]}else this.lines.set(I,V[X--]);var Se=0;for(I=z.length-1;I>=0;I--)z[I].index+=Se,this.lines.onInsertEmitter.fire(z[I]),Se+=z[I].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,A=0;A<g;++A)if(h.get(A)[d.CHAR_DATA_WIDTH_INDEX]&&(s-=h.get(A)[d.CHAR_DATA_CHAR_INDEX].length||1),s<0)return[r,A];r++}return[r,0]},u.prototype.translateBufferLineToString=function(r,s,c,h){c===void 0&&(c=0);var 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,A){c===void 0&&(c=0),h===void 0&&(h=r.lines.length),g===void 0&&(g=0),A===void 0&&(A=0),this._buffer=r,this._trimRight=s,this._startIndex=c,this._endIndex=h,this._startOverscan=g,this._endOverscan=A,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return u.prototype.hasNext=function(){return this._current<this._endIndex},u.prototype.next=function(){var r=this._buffer.getWrappedRangeForLine(this._current);r.first<this._startIndex-this._startOverscan&&(r.first=this._startIndex-this._startOverscan),r.last>this._endIndex+this._endOverscan&&(r.last=this._endIndex+this._endOverscan),r.first=Math.max(r.first,0),r.last=Math.min(r.last,this._buffer.lines.length);for(var s="",c=r.first;c<=r.last;++c)s+=this._buffer.translateBufferLineToString(c,this._trimRight);return this._current=r.last+1,{range:r,content:s}},u}();p.BufferStringIterator=e},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CircularList=void 0;var v=x(0),m=function(){function f(d){this._maxLength=d,this.onDeleteEmitter=new v.EventEmitter,this.onInsertEmitter=new v.EventEmitter,this.onTrimEmitter=new v.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,x){"use strict";function v(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=v(u,r,f),c=1,h=0;c<u.length;){var g=v(u,c,f),A=g-h,b=d-s,w=Math.min(A,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 E=0,C=u.length-1;C>0&&(C>r||u[C].getTrimmedLength()===0);C--)E++;E>0&&(n.push(t+u.length-E),n.push(E)),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 v(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=v(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=v},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(o,n){return(v=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}v(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=x(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}(x(2).Disposable);p.Marker=d},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.OptionsService=p.DEFAULT_OPTIONS=p.DEFAULT_BELL_SOUND=void 0;var v=x(0),m=x(11),f=x(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 v.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,x){"use strict";var v,m=this&&this.__extends||(v=function(s,c){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var A in g)g.hasOwnProperty(A)&&(h[A]=g[A])})(s,c)},function(r,s){function c(){this.constructor=r}v(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,A=arguments.length,b=A<3?s:h===null?h=Object.getOwnPropertyDescriptor(s,c):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(r,s,c,h);else for(var w=r.length-1;w>=0;w--)(g=r[w])&&(b=(A<3?g(b):A>3?g(s,c,b):g(s,c))||b);return A>3&&b&&Object.defineProperty(s,c,b),b},d=this&&this.__param||function(r,s){return function(c,h){s(c,h,r)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CoreService=void 0;var l=x(1),o=x(0),n=x(33),t=x(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,A){var b=r.call(this)||this;return b._bufferService=h,b._logService=g,b._optionsService=A,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(A){return A.charCodeAt(0)})}),this._onData.fire(c)}},s.prototype.triggerBinaryEvent=function(c){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+c+'"',function(){return c.split("").map(function(h){return h.charCodeAt(0)})}),this._onBinary.fire(c))},s=f([d(1,l.IBufferService),d(2,l.ILogService),d(3,l.IOptionsService)],s)}(t.Disposable);p.CoreService=u},function(y,p,x){"use strict";var v=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 A=e.length-1;A>=0;A--)(c=e[A])&&(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=x(1),d=x(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?"":"[M"+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,A=Object.keys(t);g<A.length;g++){var b=A[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=v([m(0,f.IBufferService),m(1,f.ICoreService)],e)}();p.CoreMouseService=a},function(y,p,x){"use strict";var v=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=x(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=v([m(0,f.IBufferService)],l)}();p.DirtyRowService=d},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.UnicodeService=void 0;var v=x(0),m=x(79),f=function(){function d(){this._providers=Object.create(null),this._active="",this._onChange=new v.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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.UnicodeV6=void 0;var v,m=x(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",!v){v=new Uint8Array(65536),m.fill(v,1),v[0]=0,m.fill(v,0,1,32),m.fill(v,0,127,160),m.fill(v,2,4352,4448),v[9001]=2,v[9002]=2,m.fill(v,2,11904,42192),v[12351]=1,m.fill(v,2,44032,55204),m.fill(v,2,63744,64256),m.fill(v,2,65040,65050),m.fill(v,2,65072,65136),m.fill(v,2,65280,65377),m.fill(v,2,65504,65511);for(var n=0;n<f.length;++n)m.fill(v,0,f[n][0],f[n][1]+1)}}return o.prototype.wcwidth=function(n){return n<32?0:n<127?1:n<65536?v[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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CharsetService=void 0;var v=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=v},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.updateWindowsModeWrappedState=void 0;var v=x(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[v.CHAR_DATA_CODE_INDEX]!==v.NULL_CELL_CODE&&d[v.CHAR_DATA_CODE_INDEX]!==v.WHITESPACE_CELL_CODE)}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.WriteBuffer=void 0;var v=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=v},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AddonManager=void 0;var v=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=v}])})},"/SeX":function(R,D,i){var y=i("knOB"),p=i("qZFw"),x=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};x.prototype={type:"polar",axisPointerEnabled:!0,constructor:x,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 v=x;R.exports=v},"/WM3":function(R,D,i){var y=i("QuXc"),p=i("bYtY"),x=p.isFunction,v={createOnAllSeries:!0,performRawSeries:!0,reset:function(m,f){var d=m.getData(),l=(m.visualColorAccessPath||"itemStyle.color").split("."),o=m.get(l),n=x(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}}}};R.exports=v},"/d5a":function(R,D){var i={average:function(x){for(var v=0,m=0,f=0;f<x.length;f++)isNaN(x[f])||(v+=x[f],m++);return m===0?NaN:v/m},sum:function(x){for(var v=0,m=0;m<x.length;m++)v+=x[m]||0;return v},max:function(x){for(var v=-Infinity,m=0;m<x.length;m++)x[m]>v&&(v=x[m]);return isFinite(v)?v:NaN},min:function(x){for(var v=Infinity,m=0;m<x.length;m++)x[m]<v&&(v=x[m]);return isFinite(v)?v:NaN},nearest:function(x){return x[0]}},y=function(x,v){return Math.round(x.length/2)};function p(x){return{seriesType:x,modifyOutputEnd:!0,reset:function(v,m,f){var d=v.getData(),l=v.get("sampling"),o=v.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&&v.setData(d.downSample(d.mapDimension(t.dim),1/u,r,y))}}}}}R.exports=p},"/ezw":function(R,D,i){"use strict";var y=i("lSNA"),p=i.n(y),x=i("pVnL"),v=i.n(x),m=i("cDf5"),f=i.n(m),d=i("q1tI"),l=i("TSYQ"),o=i.n(l),n=function(K){var z=K.prefixCls,V=K.className,Q=K.width,X=K.style;return d.createElement("h3",{className:o()(z,V),style:v()({width:Q},X)})},t=n,a=i("RIqP"),e=i.n(a),u=function(K){var z=function(re){var Se=K.width,Re=K.rows,Pe=Re===void 0?2:Re;return Array.isArray(Se)?Se[re]:Pe-1===re?Se:void 0},V=K.prefixCls,Q=K.className,X=K.style,te=K.rows,$=e()(Array(te)).map(function(le,re){return d.createElement("li",{key:re,style:{width:z(re)}})});return d.createElement("ul",{className:o()(V,Q),style:X},$)},r=u,s=i("H84U"),c=function(K){var z,V,Q=K.prefixCls,X=K.className,te=K.style,$=K.size,le=K.shape,re=o()((z={},p()(z,"".concat(Q,"-lg"),$==="large"),p()(z,"".concat(Q,"-sm"),$==="small"),z)),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,X,re,Se),style:v()(v()({},Re),te)})},h=c,g=i("BGR+"),A=function(K){var z=function(Q){var X=Q.getPrefixCls,te=K.prefixCls,$=K.className,le=K.active,re=X("skeleton",te),Se=Object(g.default)(K,["prefixCls"]),Re=o()(re,$,"".concat(re,"-element"),p()({},"".concat(re,"-active"),le));return d.createElement("div",{className:Re},d.createElement(h,v()({prefixCls:"".concat(re,"-avatar")},Se)))};return d.createElement(s.a,null,z)};A.defaultProps={size:"default",shape:"circle"};var b=A,w=function(K){var z=function(Q){var X=Q.getPrefixCls,te=K.prefixCls,$=K.className,le=K.active,re=X("skeleton",te),Se=Object(g.default)(K,["prefixCls"]),Re=o()(re,$,"".concat(re,"-element"),p()({},"".concat(re,"-active"),le));return d.createElement("div",{className:Re},d.createElement(h,v()({prefixCls:"".concat(re,"-button")},Se)))};return d.createElement(s.a,null,z)};w.defaultProps={size:"default"};var E=w,C=function(K){var z=function(Q){var X=Q.getPrefixCls,te=K.prefixCls,$=K.className,le=K.active,re=X("skeleton",te),Se=Object(g.default)(K,["prefixCls"]),Re=o()(re,$,"".concat(re,"-element"),p()({},"".concat(re,"-active"),le));return d.createElement("div",{className:Re},d.createElement(h,v()({prefixCls:"".concat(re,"-input")},Se)))};return d.createElement(s.a,null,z)};C.defaultProps={size:"default"};var _=C,T="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",S=function(K){var z=function(Q){var X=Q.getPrefixCls,te=K.prefixCls,$=K.className,le=K.style,re=X("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:T,className:"".concat(re,"-image-path")}))))};return d.createElement(s.a,null,z)},O=S;function I(j){return j&&f()(j)==="object"?j:{}}function F(j,K){return j&&!K?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function P(j,K){return!j&&K?{width:"38%"}:j&&K?{width:"50%"}:{}}function B(j,K){var z={};return(!j||!K)&&(z.width="61%"),!j&&K?z.rows=3:z.rows=2,z}var k=function(K){var z=function(Q){var X=Q.getPrefixCls,te=Q.direction,$=K.prefixCls,le=K.loading,re=K.className,Se=K.children,Re=K.avatar,Pe=K.title,Je=K.paragraph,Ge=K.active,ct=K.round,Ue=X("skeleton",$);if(le||!("loading"in K)){var ae,lt=!!Re,pe=!!Pe,J=!!Je,Y;if(lt){var ee=v()(v()({prefixCls:"".concat(Ue,"-avatar")},F(pe,J)),I(Re));Y=d.createElement("div",{className:"".concat(Ue,"-header")},d.createElement(h,ee))}var fe;if(pe||J){var we;if(pe){var Ce=v()(v()({prefixCls:"".concat(Ue,"-title")},P(lt,J)),I(Pe));we=d.createElement(t,Ce)}var _e;if(J){var he=v()(v()({prefixCls:"".concat(Ue,"-paragraph")},B(lt,pe)),I(Je));_e=d.createElement(r,he)}fe=d.createElement("div",{className:"".concat(Ue,"-content")},we,_e)}var ye=o()(Ue,re,(ae={},p()(ae,"".concat(Ue,"-with-avatar"),lt),p()(ae,"".concat(Ue,"-active"),Ge),p()(ae,"".concat(Ue,"-rtl"),te==="rtl"),p()(ae,"".concat(Ue,"-round"),ct),ae));return d.createElement("div",{className:ye},Y,fe)}return Se};return d.createElement(s.a,null,z)};k.defaultProps={avatar:!1,title:!0,paragraph:!0},k.Button=E,k.Avatar=b,k.Input=_,k.Image=O;var G=k,M=D.a=G},"/iHx":function(R,D,i){var y=i("6GrX"),p=i("IwbS"),x=["textStyle","color"],v={getTextColor:function(m){var f=this.ecModel;return this.getShallow("color")||(!m&&f?f.get(x):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"))}};R.exports=v},"/ry/":function(R,D,i){var y=i("bYtY"),p=i("T4UG"),x=i("5GhG"),v=x.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,v,!0);var f=m;R.exports=f},"/stD":function(R,D,i){var y=i("bYtY"),p=i("IUWy"),x=i("Kagy"),v=x.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(v.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;R.exports=d},"/wGt":function(R,D,i){"use strict";var y=i("lSNA"),p=i.n(y),x=i("pVnL"),v=i.n(x),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"),A=i("md7G"),b=i("foSv"),w=i("1W/9"),E=i("rePB"),C=i("JX7q"),_=i("TSYQ"),T=i.n(_),S=i("qx4F"),O=i("4IlW");function I(we){return Array.isArray(we)?we:[we]}var F={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},P=Object.keys(F).filter(function(we){if(typeof document=="undefined")return!1;var Ce=document.getElementsByTagName("html")[0];return we in(Ce?Ce.style:{})})[0],B=F[P];function k(we,Ce,_e,he){we.addEventListener?we.addEventListener(Ce,_e,he):we.attachEvent&&we.attachEvent("on".concat(Ce),_e)}function G(we,Ce,_e,he){we.removeEventListener?we.removeEventListener(Ce,_e,he):we.attachEvent&&we.detachEvent("on".concat(Ce),_e)}function M(we,Ce){var _e=typeof we=="function"?we(Ce):we;return Array.isArray(_e)?_e.length===2?_e:[_e[0],_e[1]]:[_e]}var j=function(Ce){return!isNaN(parseFloat(Ce))&&isFinite(Ce)},K=!(typeof window!="undefined"&&window.document&&window.document.createElement),z=function we(Ce,_e,he,ye){if(!_e||_e===document||_e instanceof Document)return!1;if(_e===Ce.parentNode)return!0;var Le=Math.max(Math.abs(he),Math.abs(ye))===Math.abs(ye),tt=Math.max(Math.abs(he),Math.abs(ye))===Math.abs(he),gt=_e.scrollHeight-_e.clientHeight,at=_e.scrollWidth-_e.clientWidth,Fe=document.defaultView.getComputedStyle(_e),mt=Fe.overflowY==="auto"||Fe.overflowY==="scroll",et=Fe.overflowX==="auto"||Fe.overflowX==="scroll",St=gt&&mt,jt=at&&et;return Le&&(!St||St&&(_e.scrollTop>=gt&&ye<0||_e.scrollTop<=0&&ye>0))||tt&&(!jt||jt&&(_e.scrollLeft>=at&&he<0||_e.scrollLeft<=0&&he>0))?we(Ce,_e.parentNode,he,ye):!1};function V(we){var Ce=Q();return function(){var he=Object(b.a)(we),ye;if(Ce){var Le=Object(b.a)(this).constructor;ye=Reflect.construct(he,arguments,Le)}else ye=he.apply(this,arguments);return Object(A.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(we){return!1}}var X={},te=function(we){Object(g.a)(_e,we);var Ce=V(_e);function _e(he){var ye;return Object(c.a)(this,_e),ye=Ce.call(this,he),ye.domFocus=function(){ye.dom&&ye.dom.focus()},ye.removeStartHandler=function(Le){if(Le.touches.length>1)return;ye.startPos={x:Le.touches[0].clientX,y:Le.touches[0].clientY}},ye.removeMoveHandler=function(Le){if(Le.changedTouches.length>1)return;var tt=Le.currentTarget,gt=Le.changedTouches[0].clientX-ye.startPos.x,at=Le.changedTouches[0].clientY-ye.startPos.y;(tt===ye.maskDom||tt===ye.handlerDom||tt===ye.contentDom&&z(tt,Le.target,gt,at))&&Le.cancelable&&Le.preventDefault()},ye.transitionEnd=function(Le){var tt=Le.target;G(tt,B,ye.transitionEnd),tt.style.transition=""},ye.onKeyDown=function(Le){if(Le.keyCode===O.a.ESC){var tt=ye.props.onClose;Le.stopPropagation(),tt&&tt(Le)}},ye.onWrapperTransitionEnd=function(Le){var tt=ye.props,gt=tt.open,at=tt.afterVisibleChange;Le.target===ye.contentWrapper&&Le.propertyName.match(/transform$/)&&(ye.dom.style.transition="",!gt&&ye.getCurrentDrawerSome()&&(document.body.style.overflowX="",ye.maskDom&&(ye.maskDom.style.left="",ye.maskDom.style.width="")),at&&at(!!gt))},ye.openLevelTransition=function(){var Le=ye.props,tt=Le.open,gt=Le.width,at=Le.height,Fe=ye.getHorizontalBoolAndPlacementName(),mt=Fe.isHorizontal,et=Fe.placementName,St=ye.contentDom?ye.contentDom.getBoundingClientRect()[mt?"width":"height"]:0,jt=(mt?gt:at)||St;ye.setLevelAndScrolling(tt,et,jt)},ye.setLevelTransform=function(Le,tt,gt,at){var Fe=ye.props,mt=Fe.placement,et=Fe.levelMove,St=Fe.duration,jt=Fe.ease,Mt=Fe.showMask;ye.levelDom.forEach(function(Ot){Ot.style.transition="transform ".concat(St," ").concat(jt),k(Ot,B,ye.transitionEnd);var Bt=Le?gt:0;if(et){var Ke=M(et,{target:Ot,open:Le});Bt=Le?Ke[0]:Ke[1]||0}var de=typeof Bt=="number"?"".concat(Bt,"px"):Bt,se=mt==="left"||mt==="top"?de:"-".concat(de);se=Mt&&mt==="right"&&at?"calc(".concat(se," + ").concat(at,"px)"):se,Ot.style.transform=Bt?"".concat(tt,"(").concat(se,")"):""})},ye.setLevelAndScrolling=function(Le,tt,gt){var at=ye.props.onChange;if(!K){var Fe=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(S.a)(!0):0;ye.setLevelTransform(Le,tt,gt,Fe),ye.toggleScrollingToDrawerAndBody(Fe)}at&&at(Le)},ye.toggleScrollingToDrawerAndBody=function(Le){var tt=ye.props,gt=tt.getOpenCount,at=tt.getContainer,Fe=tt.showMask,mt=tt.open,et=at&&at(),St=gt&>();if(et&&et.parentNode===document.body&&Fe){var jt=["touchstart"],Mt=[document.body,ye.maskDom,ye.handlerDom,ye.contentDom];mt&&document.body.style.overflow!=="hidden"?(Le&&ye.addScrollingEffect(Le),St===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",Mt.forEach(function(Ot,Bt){if(!Ot)return;k(Ot,jt[Bt]||"touchmove",Bt?ye.removeMoveHandler:ye.removeStartHandler,ye.passive)})):ye.getCurrentDrawerSome()&&(St||(document.body.style.overflow=""),document.body.style.touchAction="",Le&&ye.remScrollingEffect(Le),Mt.forEach(function(Ot,Bt){if(!Ot)return;G(Ot,jt[Bt]||"touchmove",Bt?ye.removeMoveHandler:ye.removeStartHandler,ye.passive)}))}},ye.addScrollingEffect=function(Le){var tt=ye.props,gt=tt.placement,at=tt.duration,Fe=tt.ease,mt=tt.getOpenCount,et=tt.switchScrollingEffect,St=mt&&mt();St===1&&et();var jt="width ".concat(at," ").concat(Fe),Mt="transform ".concat(at," ").concat(Fe);ye.dom.style.transition="none";switch(gt){case"right":ye.dom.style.transform="translateX(-".concat(Le,"px)");break;case"top":case"bottom":ye.dom.style.width="calc(100% - ".concat(Le,"px)"),ye.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(ye.timeout),ye.timeout=setTimeout(function(){ye.dom&&(ye.dom.style.transition="".concat(Mt,",").concat(jt),ye.dom.style.width="",ye.dom.style.transform="")})},ye.remScrollingEffect=function(Le){var tt=ye.props,gt=tt.placement,at=tt.duration,Fe=tt.ease,mt=tt.getOpenCount,et=tt.switchScrollingEffect,St=mt&&mt();St||et(!0),P&&(document.body.style.overflowX="hidden"),ye.dom.style.transition="none";var jt,Mt="width ".concat(at," ").concat(Fe),Ot="transform ".concat(at," ").concat(Fe);switch(gt){case"left":{ye.dom.style.width="100%",Mt="width 0s ".concat(Fe," ").concat(at);break}case"right":{ye.dom.style.transform="translateX(".concat(Le,"px)"),ye.dom.style.width="100%",Mt="width 0s ".concat(Fe," ").concat(at),ye.maskDom&&(ye.maskDom.style.left="-".concat(Le,"px"),ye.maskDom.style.width="calc(100% + ".concat(Le,"px)"));break}case"top":case"bottom":{ye.dom.style.width="calc(100% + ".concat(Le,"px)"),ye.dom.style.height="100%",ye.dom.style.transform="translateZ(0)",jt="height 0s ".concat(Fe," ").concat(at);break}default:break}clearTimeout(ye.timeout),ye.timeout=setTimeout(function(){ye.dom&&(ye.dom.style.transition="".concat(Ot,",").concat(jt?"".concat(jt,","):"").concat(Mt),ye.dom.style.transform="",ye.dom.style.width="",ye.dom.style.height="")})},ye.getCurrentDrawerSome=function(){return!Object.keys(X).some(function(Le){return X[Le]})},ye.getLevelDom=function(Le){var tt=Le.level,gt=Le.getContainer;if(K)return;var at=gt&>(),Fe=at?at.parentNode:null;if(ye.levelDom=[],tt==="all"){var mt=Fe?Array.prototype.slice.call(Fe.children):[];mt.forEach(function(et){et.nodeName!=="SCRIPT"&&et.nodeName!=="STYLE"&&et.nodeName!=="LINK"&&et!==at&&ye.levelDom.push(et)})}else tt&&I(tt).forEach(function(et){document.querySelectorAll(et).forEach(function(St){ye.levelDom.push(St)})})},ye.getHorizontalBoolAndPlacementName=function(){var Le=ye.props.placement,tt=Le==="left"||Le==="right",gt="translate".concat(tt?"X":"Y");return{isHorizontal:tt,placementName:gt}},ye.state={_self:Object(C.a)(ye)},ye}return Object(h.a)(_e,[{key:"componentDidMount",value:function(){var ye=this;if(!K){var Le=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Le=!0,null}}))}catch(mt){}this.passive=Le?{passive:!1}:!1}var tt=this.props,gt=tt.open,at=tt.getContainer,Fe=at&&at();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),gt&&(Fe&&Fe.parentNode===document.body&&(X[this.drawerId]=gt),this.openLevelTransition(),this.forceUpdate(function(){ye.domFocus()}))}},{key:"componentDidUpdate",value:function(ye){var Le=this.props,tt=Le.open,gt=Le.getContainer,at=gt&>();tt!==ye.open&&(tt&&this.domFocus(),at&&at.parentNode===document.body&&(X[this.drawerId]=!!tt),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var ye=this.props,Le=ye.getOpenCount,tt=ye.open,gt=ye.switchScrollingEffect,at=typeof Le=="function"&&Le();delete X[this.drawerId],tt&&(this.setLevelTransform(!1),document.body.style.touchAction=""),at||(document.body.style.overflow="",gt(!0))}},{key:"render",value:function(){var ye,Le=this,tt=this.props,gt=tt.className,at=tt.children,Fe=tt.style,mt=tt.width,et=tt.height,St=tt.defaultOpen,jt=tt.open,Mt=tt.prefixCls,Ot=tt.placement,Bt=tt.level,Ke=tt.levelMove,de=tt.ease,se=tt.duration,ut=tt.getContainer,qe=tt.handler,me=tt.onChange,Wt=tt.afterVisibleChange,dr=tt.showMask,vt=tt.maskClosable,rr=tt.maskStyle,ur=tt.onClose,mn=tt.onHandleClick,sr=tt.keyboard,xr=tt.getOpenCount,pr=tt.switchScrollingEffect,Zt=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"]),Ct=this.dom?jt:!1,on=T()(Mt,(ye={},Object(E.a)(ye,"".concat(Mt,"-").concat(Ot),!0),Object(E.a)(ye,"".concat(Mt,"-open"),Ct),Object(E.a)(ye,gt||"",!!gt),Object(E.a)(ye,"no-mask",!dr),ye)),Mn=this.getHorizontalBoolAndPlacementName(),Xn=Mn.placementName,oi=Ot==="left"||Ot==="top"?"-100%":"100%",Ui=Ct?"":"".concat(Xn,"(").concat(oi,")"),Un=qe&&r.cloneElement(qe,{onClick:function($t){qe.props.onClick&&qe.props.onClick(),mn&&mn($t)},ref:function($t){Le.handlerDom=$t}});return r.createElement("div",Object.assign({},Zt,{tabIndex:-1,className:on,style:Fe,ref:function($t){Le.dom=$t},onKeyDown:Ct&&sr?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),dr&&r.createElement("div",{className:"".concat(Mt,"-mask"),onClick:vt?ur:void 0,style:rr,ref:function($t){Le.maskDom=$t}}),r.createElement("div",{className:"".concat(Mt,"-content-wrapper"),style:{transform:Ui,msTransform:Ui,width:j(mt)?"".concat(mt,"px"):mt,height:j(et)?"".concat(et,"px"):et},ref:function($t){Le.contentWrapper=$t}},r.createElement("div",{className:"".concat(Mt,"-content"),ref:function($t){Le.contentDom=$t},onTouchStart:Ct&&dr?this.removeStartHandler:void 0,onTouchMove:Ct&&dr?this.removeMoveHandler:void 0},at),Un))}}],[{key:"getDerivedStateFromProps",value:function(ye,Le){var tt=Le.prevProps,gt=Le._self,at={prevProps:ye};if(tt!==void 0){var Fe=ye.placement,mt=ye.level;Fe!==tt.placement&&(gt.contentDom=null),mt!==tt.level&>.getLevelDom(ye)}return at}}]),_e}(r.Component);te.defaultProps={switchScrollingEffect:function(){}};var $=te;function le(we){var Ce=re();return function(){var he=Object(b.a)(we),ye;if(Ce){var Le=Object(b.a)(this).constructor;ye=Reflect.construct(he,arguments,Le)}else ye=he.apply(this,arguments);return Object(A.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(we){return!1}}var Se=function(we){Object(g.a)(_e,we);var Ce=le(_e);function _e(he){var ye;Object(c.a)(this,_e),ye=Ce.call(this,he),ye.onHandleClick=function(tt){var gt=ye.props,at=gt.onHandleClick,Fe=gt.open;if(at&&at(tt),typeof Fe=="undefined"){var mt=ye.state.open;ye.setState({open:!mt})}},ye.onClose=function(tt){var gt=ye.props,at=gt.onClose,Fe=gt.open;at&&at(tt),typeof Fe=="undefined"&&ye.setState({open:!1})};var Le=typeof he.open!="undefined"?he.open:!!he.defaultOpen;return ye.state={open:Le},"onMaskClick"in he&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),ye}return Object(h.a)(_e,[{key:"render",value:function(){var ye=this,Le=this.props,tt=Le.defaultOpen,gt=Le.getContainer,at=Le.wrapperClassName,Fe=Le.forceRender,mt=Le.handler,et=Object(s.a)(Le,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),St=this.state.open;if(!gt)return r.createElement("div",{className:at,ref:function(Ot){ye.dom=Ot}},r.createElement($,Object.assign({},et,{open:St,handler:mt,getContainer:function(){return ye.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var jt=!!mt||Fe;return r.createElement(w.a,{visible:St,forceRender:jt,getContainer:gt,wrapperClassName:at},function(Mt){var Ot=Mt.visible,Bt=Mt.afterClose,Ke=Object(s.a)(Mt,["visible","afterClose"]);return r.createElement($,Object.assign({},et,Ke,{open:Ot!==void 0?Ot:St,afterVisibleChange:Bt!==void 0?Bt:et.afterVisibleChange,handler:mt,onClose:ye.onClose,onHandleClick:ye.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(ye,Le){var tt=Le.prevProps,gt={prevProps:ye};return typeof tt!="undefined"&&ye.open!==tt.open&&(gt.open=ye.open),gt}}]),_e}(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"),Ge=i.n(Je),ct=i("BGR+"),Ue=i("H84U"),ae=i("CWQg"),lt=function(we,Ce){var _e={};for(var he in we)Object.prototype.hasOwnProperty.call(we,he)&&Ce.indexOf(he)<0&&(_e[he]=we[he]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,he=Object.getOwnPropertySymbols(we);ye<he.length;ye++)Ce.indexOf(he[ye])<0&&Object.prototype.propertyIsEnumerable.call(we,he[ye])&&(_e[he[ye]]=we[he[ye]]);return _e},pe=r.createContext(null),J=Object(ae.a)("top","right","bottom","left"),Y={distance:180},ee=function(we){a()(_e,we);var Ce=u()(_e);function _e(){var he;return f()(this,_e),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,Le;return typeof ye=="boolean"?Le=ye?Y.distance:0:Le=ye.distance,parseFloat(String(Le||0))},he.getPushTransform=function(ye){var Le=he.getPushDistance();if(ye==="left"||ye==="right")return"translateX(".concat(ye==="left"?Le:-Le,"px)");if(ye==="top"||ye==="bottom")return"translateY(".concat(ye==="top"?Le:-Le,"px)")},he.getRcDrawerStyle=function(){var ye=he.props,Le=ye.zIndex,tt=ye.placement,gt=ye.mask,at=ye.style,Fe=he.state.push,mt=gt?{}:he.getOffsetStyle();return v()(v()({zIndex:Le,transform:Fe?he.getPushTransform(tt):void 0},mt),at)},he.renderBody=function(){var ye=he.props,Le=ye.bodyStyle,tt=ye.drawerStyle,gt=ye.prefixCls,at=ye.visible;if(he.destroyClose&&!at)return null;he.destroyClose=!1;var Fe={},mt=he.getDestroyOnClose();return mt&&(Fe.opacity=0,Fe.transition="opacity .3s"),r.createElement("div",{className:"".concat(gt,"-wrapper-body"),style:v()(v()({},Fe),tt),onTransitionEnd:he.onDestroyTransitionEnd},he.renderHeader(),r.createElement("div",{className:"".concat(gt,"-body"),style:Le},he.props.children),he.renderFooter())},he.renderProvider=function(ye){return he.parentDrawer=ye,r.createElement(Ue.a,null,function(Le){var tt=Le.getPopupContainer,gt=Le.getPrefixCls,at=he.props,Fe=at.prefixCls,mt=at.placement,et=at.className,St=at.mask,jt=at.direction,Mt=at.visible,Ot=lt(at,["prefixCls","placement","className","mask","direction","visible"]),Bt=gt("select",Fe),Ke=T()(et,p()({"no-mask":!St},"".concat(Bt,"-rtl"),jt==="rtl")),de=St?he.getOffsetStyle():{};return r.createElement(pe.Provider,{value:n()(he)},r.createElement(Pe,v()({handler:!1},Object(ct.default)(Ot,["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:Ot.getContainer===void 0&&tt?function(){return tt(document.body)}:Ot.getContainer},de,{prefixCls:Bt,open:Mt,showMask:St,placement:mt,style:he.getRcDrawerStyle(),className:Ke}),he.renderBody()))})},he}return l()(_e,[{key:"componentDidMount",value:function(){var ye=this.props.visible;ye&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(ye){var Le=this.props.visible;ye.visible!==Le&&this.parentDrawer&&(Le?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,Le=ye.placement,tt=ye.width,gt=ye.height,at=ye.visible,Fe=ye.mask;if(!at&&!Fe)return{};var mt={};return Le==="left"||Le==="right"?mt.width=tt:mt.height=gt,mt}},{key:"renderHeader",value:function(){var ye=this.props,Le=ye.title,tt=ye.prefixCls,gt=ye.closable,at=ye.headerStyle;if(!Le&&!gt)return null;var Fe=Le?"".concat(tt,"-header"):"".concat(tt,"-header-no-title");return r.createElement("div",{className:Fe,style:at},Le&&r.createElement("div",{className:"".concat(tt,"-title")},Le),gt&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var ye=this.props,Le=ye.footer,tt=ye.footerStyle,gt=ye.prefixCls;if(!Le)return null;var at="".concat(gt,"-footer");return r.createElement("div",{className:at,style:tt},Le)}},{key:"renderCloseIcon",value:function(){var ye=this.props,Le=ye.closable,tt=ye.closeIcon,gt=tt===void 0?r.createElement(Ge.a,null):tt,at=ye.prefixCls,Fe=ye.onClose;return Le&&r.createElement("button",{onClick:Fe,"aria-label":"Close",className:"".concat(at,"-close"),style:{"--scroll-bar":"".concat(Object(S.a)(),"px")}},gt)}},{key:"render",value:function(){return r.createElement(pe.Consumer,null,this.renderProvider)}}]),_e}(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(R,D,i){var y=i("bYtY"),p=i("IwbS"),x=i("6GrX"),v=i("7aKB"),m=i("Fofx"),f=i("aX7z"),d=i("+rIm");function l(c){var h=c.get("type"),g=c.getModel(h+"Style"),A;return h==="line"?(A=g.getLineStyle(),A.fill=null):h==="shadow"&&(A=g.getAreaStyle(),A.stroke=null),A}function o(c,h,g,A,b){var w=g.get("value"),E=t(w,h.axis,h.ecModel,g.get("seriesDataIndices"),{precision:g.get("label.precision"),formatter:g.get("label.formatter")}),C=g.getModel("label"),_=v.normalizeCssArray(C.get("padding")||0),T=C.getFont(),S=x.getBoundingRect(E,T),O=b.position,I=S.width+_[1]+_[3],F=S.height+_[0]+_[2],P=b.align;P==="right"&&(O[0]-=I),P==="center"&&(O[0]-=I/2);var B=b.verticalAlign;B==="bottom"&&(O[1]-=F),B==="middle"&&(O[1]-=F/2),n(O,I,F,A);var k=C.get("backgroundColor");(!k||k==="auto")&&(k=h.get("axisLine.lineStyle.color")),c.label={shape:{x:0,y:0,width:I,height:F,r:C.get("borderRadius")},position:O.slice(),style:{text:E,textFont:T,textFill:C.getTextColor(),textPosition:"inside",textPadding:_,fill:k,stroke:C.get("borderColor")||"transparent",lineWidth:C.get("borderWidth")||0,shadowBlur:C.get("shadowBlur"),shadowColor:C.get("shadowColor"),shadowOffsetX:C.get("shadowOffsetX"),shadowOffsetY:C.get("shadowOffsetY")},z2:10}}function n(c,h,g,A){var b=A.getWidth(),w=A.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,A,b){c=h.scale.parse(c);var w=h.scale.getLabel(c,{precision:b.precision}),E=b.formatter;if(E){var C={value:f.getAxisRawValue(h,c),axisDimension:h.dim,axisIndex:h.index,seriesData:[]};y.each(A,function(_){var T=g.getSeriesByIndex(_.seriesIndex),S=_.dataIndexInside,O=T&&T.getDataParams(S);O&&C.seriesData.push(O)}),y.isString(E)?w=E.replace("{value}",w):y.isFunction(E)&&(w=E(C))}return w}function a(c,h,g){var A=m.create();return m.rotate(A,A,g.rotation),m.translate(A,A,g.position),p.applyTransform([c.dataToCoord(h),(g.labelOffset||0)+(g.labelDirection||1)*(g.labelMargin||0)],A)}function e(c,h,g,A,b,w){var E=d.innerTextLayout(g.rotation,0,g.labelDirection);g.labelMargin=b.get("label.margin"),o(h,A,b,w,{position:a(A.axis,c,g),align:E.textAlign,verticalAlign:E.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,A,b,w){return{cx:c,cy:h,r0:g,r:A,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(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("bE4E"),v=i.n(x)},"0/Rx":function(R,D){function i(y){return{seriesType:y,reset:function(p,x){var v=x.findComponents({mainType:"legend"});if(!v||!v.length)return;var m=p.getData();m.filterSelf(function(f){for(var d=m.getName(f),l=0;l<v.length;l++)if(!v[l].isSelected(d))return!1;return!0})}}}R.exports=i},"01d+":function(R,D,i){var y=i("bYtY"),p=y.each,x=i("HF/U"),v=x.simpleLayout,m=x.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")&&v(o)})}R.exports=f},"03A+":function(R,D,i){var y=i("JTzB"),p=i("ExA7"),x=Object.prototype,v=x.hasOwnProperty,m=x.propertyIsEnumerable,f=y(function(){return arguments}())?y:function(d){return p(d)&&v.call(d,"callee")&&!m.call(d,"callee")};R.exports=f},"06DH":function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("Kagy"),v=i("IUWy"),m=x.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,E=b.id,C=o[u](w,E,b,r);C&&(p.defaults(C,b.option),c.series.push(C));var _=b.coordinateSystem;if(_&&_.type==="cartesian2d"&&(u==="line"||u==="bar")){var T=_.getAxesByScale("ordinal")[0];if(T){var S=T.dim,O=S+"Axis",I=a.queryComponents({mainType:O,index:b.get(name+"Index"),id:b.get(name+"Id")})[0],F=I.componentIndex;c[O]=c[O]||[];for(var P=0;P<=F;P++)c[O][F]=c[O][F]||{};c[O][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 A=c.series&&c.series[0]&&c.series[0].stack===f;g=A?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)}),v.register("magicType",d);var t=d;R.exports=t},"06Qe":function(R,D,i){var y=i("ItGF"),p="urn:schemas-microsoft-com:vml",x=typeof window=="undefined"?null:window,v=!1,m=x&&x.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(v||!m)return;v=!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(R,D,i){"use strict";i.d(D,"b",function(){return p}),i.d(D,"a",function(){return x});var y=i("CWQg"),p=Object(y.a)("success","processing","error","default","warning"),x=Object(y.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(R,D,i){var y=i("T4UG"),p=i("I3/A"),x=i("7aKB"),v=x.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,A){g.wrapMethod("getItemModel",function(b,w){return b.customizeGetParent(function(E){var C=this.parentModel,_=C.getData().getItemLayout(w).depth,T=C.levelModels[_];return T||this.parentModel}),b}),A.wrapMethod("getItemModel",function(b,w){return b.customizeGetParent(function(E){var C=this.parentModel,_=C.getGraph().getEdgeByIndex(w),T=_.node1.getLayout().depth,S=C.levelModels[T];return S||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),v(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 v(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;R.exports=o},"0Cz8":function(R,D,i){var y=i("Xi7e"),p=i("ebwN"),x=i("e4Nc"),v=200;function m(f,d){var l=this.__data__;if(l instanceof y){var o=l.__data__;if(!p||o.length<v-1)return o.push([f,d]),this.size=++l.size,this;l=this.__data__=new x(o)}return l.set(f,d),this.size=l.size,this}R.exports=m},"0HBW":function(R,D,i){var y=i("ProS"),p=i("bYtY");i("Hxpc"),i("7uqq"),i("dmGj"),i("SehX");function x(v,m){m.update="updateView",y.registerAction(m,function(f,d){var l={};return d.eachComponent({mainType:"geo",query:f},function(o){o[v](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}})}x("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),x("select",{type:"geoSelect",event:"geoselected"}),x("unSelect",{type:"geoUnSelect",event:"geounselected"})},"0JAE":function(R,D,i){var y=i("bYtY"),p=i("+TT/"),x=i("OELB"),v=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=x.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,A){return g[A]!=null&&g[A]!=="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}v.register("calendar",f);var l=f;R.exports=l},"0NbB":function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="CaretDownOutlined";var d=D.a=p.forwardRef(f)},"0V0F":function(R,D,i){var y=i("bYtY"),p=y.createHashMap,x=y.each;function v(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){x(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,A;e?A=a.getRawIndex(c):g=a.get(d.stackedByDimension,c);for(var b=NaN,w=l-1;w>=0;w--){var E=f[w];if(e||(A=E.data.rawIndexOf(E.stackedByDimension,g)),A>=0){var C=E.data.getByRawIndex(E.stackResultDimension,A);if(h>=0&&C>0||h<=0&&C<0){h+=C,b=C;break}}}return o[0]=h,o[1]=b,o});a.hostModel.setData(u),d.data=u})}R.exports=v},"0XgM":function(R,D,i){},"0fbx":function(R,D,i){},"0o9m":function(R,D,i){var y=i("ProS");i("hNWo"),i("RlCK"),i("XpcN");var p=i("kDyi"),x=i("bLfw");y.registerProcessor(y.PRIORITY.PROCESSOR.SERIES_FILTER,p),x.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(R,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(R,D){var i=arguments[3],y=arguments[4],p=arguments[5],x=JSON.stringify;R.exports=function(v,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===v||t&&t.default===v){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){"+v+"(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("+x(f)+");(f.default ? f.default : f)(self);}",u];var r={};s(e);function s(w){r[w]=!0;for(var E in y[w][1]){var C=y[w][1][E];r[C]||s(C)}}var c="("+i+")({"+Object.keys(r).map(function(w){return x(w)+":["+y[w][0]+","+x(y[w][1])+"]"}).join(",")+"},{},["+x(e)+"])",h=window.URL||window.webkitURL||window.mozURL||window.msURL,g=new Blob([c],{type:"text/javascript"});if(m&&m.bare)return g;var A=h.createObjectURL(g),b=new Worker(A);return b.objectURL=A,b}},"0s+r":function(R,D,i){var y=i("bYtY"),p=i("QBsz"),x=i("y23F"),v=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,A){v.call(this),this.storage=c,this.painter=h,this.painterRoot=A,g=g||new n,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,x.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,A=u(this,h,g),b=this._hovered,w=b.target;w&&!w.__zr&&(b=this.findHover(b.x,b.y),w=b.target);var E=this._hovered=A?{x:h,y:g}:this.findHover(h,g),C=E.target,_=this.proxy;_.setCursor&&_.setCursor(C?C.cursor:"default"),w&&C!==w&&this.dispatchToElement(b,"mouseout",c),this.dispatchToElement(E,"mousemove",c),C&&C!==w&&this.dispatchToElement(E,"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 A=c.target;if(A&&A.silent)return;for(var b="on"+h,w=l(h,c,g);A&&!(A[b]&&(w.cancelBubble=A[b].call(A,w)),A.trigger(h,w),A=A.parent,w.cancelBubble););w.cancelBubble||(this.trigger(h,w),this.painter&&this.painter.eachOtherLayer(function(E){typeof E[b]=="function"&&E[b].call(E,w),E.trigger&&E.trigger(h,w)}))},findHover:function(c,h,g){for(var A=this.storage.getDisplayList(),b={x:c,y:h},w=A.length-1;w>=0;w--){var E;if(A[w]!==g&&!A[w].ignore&&(E=e(A[w],c,h))&&(!b.topTarget&&(b.topTarget=A[w]),E!==d)){b.target=A[w];break}}return b},processGesture:function(c,h){this._gestureMgr||(this._gestureMgr=new f);var g=this._gestureMgr;h==="start"&&g.clear();var A=g.recognize(c,this.findHover(c.zrX,c.zrY,null).target,this.proxy.dom);if(h==="end"&&g.clear(),A){var b=A.type;c.gestureEvent=b,this.dispatchToElement({target:A.target},b,A.event)}}},y.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(s){a.prototype[s]=function(c){var h=c.zrX,g=c.zrY,A=u(this,h,g),b,w;if((s!=="mouseup"||!A)&&(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,A;g;){if(g.clipPath&&!g.clipPath.contain(c,h))return!1;g.silent&&(A=!0),g=g.parent}return A?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,v),y.mixin(a,x);var r=a;R.exports=r},"0ycA":function(R,D){function i(){return[]}R.exports=i},"10cm":function(R,D,i){var y=i("ProS"),p=i("2B6p"),x=p.updateCenterAndZoom;i("0qV/");var v={type:"graphRoam",event:"graphRoam",update:"none"};y.registerAction(v,function(m,f){f.eachComponent({mainType:"series",query:m},function(d){var l=d.coordinateSystem,o=x(l,m);d.setCenter&&d.setCenter(o.center),d.setZoom&&d.setZoom(o.zoom)})})},"15/o":function(R,D,i){},"19Vz":function(R,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(){v(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 x(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 v(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?x(l):p(l)},20)}function m(l){d(l)&&x(l)}function f(l){var o=l.getWrapperElement(),n=d(l);o.className=o.className.replace(" CodeMirror-empty","")+(n?" CodeMirror-empty":""),n?x(l):p(l)}function d(l){return l.lineCount()===1&&l.getLine(0)===""}})},"1Jh7":function(R,D,i){var y=i("y+Vt"),p=i("T6xi"),x=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)}});R.exports=x},"1LEl":function(R,D,i){var y=i("ProS"),p=i("F9bG"),x=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"),x.superApply(this._model,"remove",arguments)},dispose:function(m,f){p.unregister("axisPointer",f),x.superApply(this._model,"dispose",arguments)}}),v=x;R.exports=v},"1MYJ":function(R,D,i){var y=i("y+Vt"),p=y.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var v=this.__dirtyPath,m=this.shape.paths,f=0;f<m.length;f++)v=v||m[f].__dirtyPath;this.__dirtyPath=v,this.__dirty=this.__dirty||v},beforeBrush:function(){this._updatePathDirty();for(var v=this.shape.paths||[],m=this.getGlobalScale(),f=0;f<v.length;f++)v[f].path||v[f].createPathProxy(),v[f].path.setScale(m[0],m[1],v[f].segmentIgnoreThreshold)},buildPath:function(v,m){for(var f=m.paths||[],d=0;d<f.length;d++)f[d].buildPath(v,f[d].shape,!0)},afterBrush:function(){for(var v=this.shape.paths||[],m=0;m<v.length;m++)v[m].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),y.prototype.getBoundingRect.call(this)}});R.exports=p},"1NG9":function(R,D,i){var y=i("y+Vt"),p=i("QBsz"),x=i("iXp4"),v=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,A,b,w,E,C,_,T,S,O){return S==="none"||!S?u.apply(this,arguments):e.apply(this,arguments)}function e(h,g,A,b,w,E,C,_,T,S,O){for(var I=0,F=A,P=0;P<b;P++){var B=g[F];if(F>=w||F<0)break;if(t(B)){if(O){F+=E;continue}break}if(F===A)h[E>0?"moveTo":"lineTo"](B[0],B[1]);else if(T>0){var k=g[I],G=S==="y"?1:0,M=(B[G]-k[G])*T;d(o,k),o[G]=k[G]+M,d(n,B),n[G]=B[G]-M,h.bezierCurveTo(o[0],o[1],n[0],n[1],B[0],B[1])}else h.lineTo(B[0],B[1]);I=F,F+=E}return P}function u(h,g,A,b,w,E,C,_,T,S,O){for(var I=0,F=A,P=0;P<b;P++){var B=g[F];if(F>=w||F<0)break;if(t(B)){if(O){F+=E;continue}break}if(F===A)h[E>0?"moveTo":"lineTo"](B[0],B[1]),d(o,B);else if(T>0){var k=F+E,G=g[k];if(O)for(;G&&t(g[k]);)k+=E,G=g[k];var M=.5,j=g[I],G=g[k];if(!G||t(G))d(n,B);else{t(G)&&!O&&(G=B),p.sub(l,G,j);var K,z;if(S==="x"||S==="y"){var V=S==="x"?0:1;K=Math.abs(B[V]-j[V]),z=Math.abs(B[V]-G[V])}else K=p.dist(B,j),z=p.dist(B,G);M=z/(z+K),f(n,B,l,-T*(1-M))}v(o,o,_),m(o,o,C),v(n,n,_),m(n,n,C),h.bezierCurveTo(o[0],o[1],n[0],n[1],B[0],B[1]),f(o,B,l,T*M)}else h.lineTo(B[0],B[1]);I=F,F+=E}return P}function r(h,g){var A=[Infinity,Infinity],b=[-Infinity,-Infinity];if(g)for(var w=0;w<h.length;w++){var E=h[w];E[0]<A[0]&&(A[0]=E[0]),E[1]<A[1]&&(A[1]=E[1]),E[0]>b[0]&&(b[0]=E[0]),E[1]>b[1]&&(b[1]=E[1])}return{min:g?A:b,max:g?b:A}}var s=y.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:x(y.prototype.brush),buildPath:function(h,g){var A=g.points,b=0,w=A.length,E=r(A,g.smoothConstraint);if(g.connectNulls){for(;w>0&&t(A[w-1]);w--);for(;b<w&&t(A[b]);b++);}for(;b<w;)b+=a(h,A,b,w,w,1,E.min,E.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:x(y.prototype.brush),buildPath:function(h,g){var A=g.points,b=g.stackedOnPoints,w=0,E=A.length,C=g.smoothMonotone,_=r(A,g.smoothConstraint),T=r(b,g.smoothConstraint);if(g.connectNulls){for(;E>0&&t(A[E-1]);E--);for(;w<E&&t(A[w]);w++);}for(;w<E;){var S=a(h,A,w,E,E,1,_.min,_.max,g.smooth,C,g.connectNulls);a(h,b,w+S-1,S,E,-1,T.min,T.max,g.stackedOnSmooth,C,g.connectNulls),w+=S+1,h.closePath()}}});D.Polyline=s,D.Polygon=c},"1RvN":function(R,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},x=function(d){this._list=new i,this._map={},this._maxSize=d||10,this._lastRemovedEntry=null},v=x.prototype;v.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},v.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},v.clear=function(){this._list.clear(),this._map={}};var m=x;R.exports=m},"1bdT":function(R,D,i){var y=i("3gBT"),p=i("H6uX"),x=i("DN4a"),v=i("vWvF"),m=i("bYtY"),f=function(o){x.call(this,o),p.call(this,o),v.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,v),m.mixin(f,x),m.mixin(f,p);var d=f;R.exports=d},"1dTM":function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=i("GQ8N"),p=S(i("Lo0S")),x=i("VSMT"),v=i("GdRQ"),m=i("SZEN"),f=i("vewr"),d=_(i("YJ9k")),l=_(i("MZdM")),o=_(i("ItS6")),n=_(i("whVF")),t=_(i("Fv0C")),a=_(i("LCi9")),e=_(i("rwxt")),u=_(i("Mmt2")),r=_(i("iUHT")),s=_(i("mHUz")),c=_(i("P2ho")),h=i("NBmB");i("mdZa");var g=_(i("34/K")),A=_(i("hXwI")),b=_(i("SgaC")),w=_(i("3690")),E=_(i("8K/p")),C=_(i("xO64"));function _(fe){return fe&&fe.__esModule?fe:{default:fe}}function T(){if(typeof WeakMap!="function")return null;var fe=new WeakMap;return T=function(){return fe},fe}function S(fe){if(fe&&fe.__esModule)return fe;if(fe===null||O(fe)!=="object"&&typeof fe!="function")return{default:fe};var we=T();if(we&&we.has(fe))return we.get(fe);var Ce={},_e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var he in fe)if(Object.prototype.hasOwnProperty.call(fe,he)){var ye=_e?Object.getOwnPropertyDescriptor(fe,he):null;ye&&(ye.get||ye.set)?Object.defineProperty(Ce,he,ye):Ce[he]=fe[he]}return Ce.default=fe,we&&we.set(fe,Ce),Ce}function O(fe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(Ce){return typeof Ce}:O=function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce},O(fe)}function I(fe,we){if(!(fe instanceof we))throw new TypeError("Cannot call a class as a function")}function F(fe,we){for(var Ce=0;Ce<we.length;Ce++){var _e=we[Ce];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(fe,_e.key,_e)}}function P(fe,we,Ce){return we&&F(fe.prototype,we),Ce&&F(fe,Ce),fe}function B(fe,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function");fe.prototype=Object.create(we&&we.prototype,{constructor:{value:fe,writable:!0,configurable:!0}}),we&&k(fe,we)}function k(fe,we){return k=Object.setPrototypeOf||function(_e,he){return _e.__proto__=he,_e},k(fe,we)}function G(fe){var we=K();return function(){var _e=z(fe),he;if(we){var ye=z(this).constructor;he=Reflect.construct(_e,arguments,ye)}else he=_e.apply(this,arguments);return M(this,he)}}function M(fe,we){return we&&(O(we)==="object"||typeof we=="function")?we:j(fe)}function j(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}function K(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(fe){return!1}}function z(fe){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(Ce){return Ce.__proto__||Object.getPrototypeOf(Ce)},z(fe)}var V=3,Q="rgb(40, 40, 40)",X=17,te=50,$=19,le=75,re=50,Se=1e3,Re=50,Pe=1,Je=1<<1,Ge=1<<2,ct=1<<3,Ue=1<<4,ae=1<<24,lt=1<<25,pe=1<<26,J=1<<27,Y=1<<28,ee=function(fe){B(Ce,fe);var we=G(Ce);function Ce(_e,he,ye){var Le;if(I(this,Ce),!_e)throw new Error("Must specify target");if(!he)throw new Error("Must specify URL");Le=we.call(this),Le._target=_e,Le._url=he,ye=ye||{},Le._rfbCredentials=ye.credentials||{},Le._shared="shared"in ye?!!ye.shared:!0,Le._repeaterID=ye.repeaterID||"",Le._wsProtocols=ye.wsProtocols||[],Le._rfbConnectionState="",Le._rfbInitState="",Le._rfbAuthScheme=-1,Le._rfbCleanDisconnect=!0,Le._rfbVersion=0,Le._rfbMaxVersion=3.8,Le._rfbTightVNC=!1,Le._rfbVeNCryptState=0,Le._rfbXvpVer=0,Le._fbWidth=0,Le._fbHeight=0,Le._fbName="",Le._capabilities={power:!1},Le._supportsFence=!1,Le._supportsContinuousUpdates=!1,Le._enabledContinuousUpdates=!1,Le._supportsSetDesktopSize=!1,Le._screenID=0,Le._screenFlags=0,Le._qemuExtKeyEventSupported=!1,Le._clipboardText=null,Le._clipboardServerCapabilitiesActions={},Le._clipboardServerCapabilitiesFormats={},Le._sock=null,Le._display=null,Le._flushing=!1,Le._keyboard=null,Le._gestures=null,Le._disconnTimer=null,Le._resizeTimeout=null,Le._mouseMoveTimer=null,Le._decoders={},Le._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},Le._mousePos={},Le._mouseButtonMask=0,Le._mouseLastMoveTime=0,Le._viewportDragging=!1,Le._viewportDragPos={},Le._viewportHasMoved=!1,Le._accumulatedWheelDeltaX=0,Le._accumulatedWheelDeltaY=0,Le._gestureLastTapTime=null,Le._gestureFirstDoubleTapEv=null,Le._gestureLastMagnitudeX=0,Le._gestureLastMagnitudeY=0,Le._eventHandlers={focusCanvas:Le._focusCanvas.bind(j(Le)),windowResize:Le._windowResize.bind(j(Le)),handleMouse:Le._handleMouse.bind(j(Le)),handleWheel:Le._handleWheel.bind(j(Le)),handleGesture:Le._handleGesture.bind(j(Le))},p.Debug(">> RFB.constructor"),Le._screen=document.createElement("div"),Le._screen.style.display="flex",Le._screen.style.width="100%",Le._screen.style.height="100%",Le._screen.style.overflow="auto",Le._screen.style.background=Q,Le._canvas=document.createElement("canvas"),Le._canvas.style.margin="auto",Le._canvas.style.outline="none",Le._canvas.style.flexShrink="0",Le._canvas.width=0,Le._canvas.height=0,Le._canvas.tabIndex=-1,Le._screen.appendChild(Le._canvas),Le._cursor=new e.default,Le._cursorImage=Ce.cursors.none,Le._decoders[h.encodings.encodingRaw]=new g.default,Le._decoders[h.encodings.encodingCopyRect]=new A.default,Le._decoders[h.encodings.encodingRRE]=new b.default,Le._decoders[h.encodings.encodingHextile]=new w.default,Le._decoders[h.encodings.encodingTight]=new E.default,Le._decoders[h.encodings.encodingTightPNG]=new C.default;try{Le._display=new l.default(Le._canvas)}catch(tt){throw p.Error("Display exception: "+tt),tt}return Le._display.onflush=Le._onFlush.bind(j(Le)),Le._keyboard=new t.default(Le._canvas),Le._keyboard.onkeyevent=Le._handleKeyEvent.bind(j(Le)),Le._gestures=new a.default,Le._sock=new u.default,Le._sock.on("message",function(){Le._handleMessage()}),Le._sock.on("open",function(){Le._rfbConnectionState==="connecting"&&Le._rfbInitState===""?(Le._rfbInitState="ProtocolVersion",p.Debug("Starting VNC handshake")):Le._fail("Unexpected server connection while "+Le._rfbConnectionState)}),Le._sock.on("close",function(tt){p.Debug("WebSocket on-close event");var gt="";tt.code&&(gt="(code: "+tt.code,tt.reason&&(gt+=", reason: "+tt.reason),gt+=")");switch(Le._rfbConnectionState){case"connecting":Le._fail("Connection closed "+gt);break;case"connected":Le._updateConnectionState("disconnecting"),Le._updateConnectionState("disconnected");break;case"disconnecting":Le._updateConnectionState("disconnected");break;case"disconnected":Le._fail("Unexpected server disconnect when already disconnected "+gt);break;default:Le._fail("Unexpected server disconnect before connecting "+gt);break}Le._sock.off("close")}),Le._sock.on("error",function(tt){return p.Warn("WebSocket on-error event")}),setTimeout(Le._updateConnectionState.bind(j(Le),"connecting")),p.Debug("<< RFB.constructor"),Le.dragViewport=!1,Le.focusOnClick=!0,Le._viewOnly=!1,Le._clipViewport=!1,Le._scaleViewport=!1,Le._resizeSession=!1,Le._showDotCursor=!1,ye.showDotCursor!==void 0&&(p.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),Le._showDotCursor=ye.showDotCursor),Le._qualityLevel=6,Le._compressionLevel=2,Le}return P(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,Le){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(Le===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 ("+(Le?"down":"up")+"): keysym "+he+", scancode "+tt),Ce.messages.QEMUExtendedKeyEvent(this._sock,he,Le,tt);else{if(!he)return;p.Info("Sending keysym ("+(Le?"down":"up")+"): "+he),Ce.messages.keyEvent(this._sock,he,Le?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[J])this._clipboardText=he,Ce.messages.extendedClipboardNotify(this._sock,[Pe]);else{for(var ye=new Uint8Array(he.length),Le=0;Le<he.length;Le++)ye[Le]=he.charCodeAt(Le);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 Le=this._screenSize();this._display.viewportChangeSize(Le.w,Le.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,Le=this._rfbConnectionState;if(he===Le){p.Debug("Already in state '"+he+"', ignoring");return}if(Le==="disconnected"){p.Error("Tried changing state of a disconnected RFB object");return}switch(he){case"connected":if(Le!=="connecting"){p.Error("Bad transition to connected state, previous connection state: "+Le);return}break;case"disconnected":if(Le!=="disconnecting"){p.Error("Bad transition to disconnected state, previous connection state: "+Le);return}break;case"connecting":if(Le!==""){p.Error("Bad transition to connecting state, previous connection state: "+Le);return}break;case"disconnecting":if(Le!=="connected"&&Le!=="connecting"){p.Error("Bad transition to disconnecting state, previous connection state: "+Le);return}break;default:p.Error("Unknown connection state: "+he);return}this._rfbConnectionState=he,p.Debug("New state '"+he+"', was '"+Le+"'."),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,Le){this.sendKey(he,ye,Le)}},{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,Le,tt){if(this.dragViewport)if(Le&&!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)),Le?this._mouseButtonMask|=tt:this._mouseButtonMask&=~tt,this._sendMouse(he,ye,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(he,ye){var Le=this;if(this._viewportDragging){var tt=this._viewportDragPos.x-he,gt=this._viewportDragPos.y-ye;(this._viewportHasMoved||Math.abs(tt)>v.dragThreshold||Math.abs(gt)>v.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:he,y:ye},this._display.viewportChangePos(tt,gt));return}if(this._mousePos={x:he,y:ye},this._mouseMoveTimer==null){var at=Date.now()-this._mouseLastMoveTime;at>X?(this._sendMouse(he,ye,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){Le._handleDelayedMouseMove()},X-at)}}},{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,Le){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Ce.messages.pointerEvent(this._sock,this._display.absX(he),this._display.absY(ye),Le)}},{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),Le=he.deltaX,tt=he.deltaY;he.deltaMode!==0&&(Le*=$,tt*=$),this._accumulatedWheelDeltaX+=Le,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,Le){this._handleMouseMove(ye,Le),this._cursor.move(he.detail.clientX,he.detail.clientY)}},{key:"_handleTapEvent",value:function(he,ye){var Le=(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,gt=this._gestureFirstDoubleTapEv.detail.clientY-he.detail.clientY,at=Math.hypot(tt,gt);at<Re?Le=(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,Le.x,Le.y),this._handleMouseButton(Le.x,Le.y,!0,ye),this._handleMouseButton(Le.x,Le.y,!1,ye)}},{key:"_handleGesture",value:function(he){var ye,Le=(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,Le.x,Le.y),this._handleMouseButton(Le.x,Le.y,!0,1);break;case"longpress":this._fakeMouseMove(he,Le.x,Le.y),this._handleMouseButton(Le.x,Le.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=he.detail.magnitudeX,this._gestureLastMagnitudeY=he.detail.magnitudeY,this._fakeMouseMove(he,Le.x,Le.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(he.detail.magnitudeX,he.detail.magnitudeY),this._fakeMouseMove(he,Le.x,Le.y);break}break;case"gesturemove":switch(he.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(he,Le.x,Le.y);break;case"twodrag":for(this._fakeMouseMove(he,Le.x,Le.y);he.detail.magnitudeY-this._gestureLastMagnitudeY>re;)this._handleMouseButton(Le.x,Le.y,!0,8),this._handleMouseButton(Le.x,Le.y,!1,8),this._gestureLastMagnitudeY+=re;for(;he.detail.magnitudeY-this._gestureLastMagnitudeY<-re;)this._handleMouseButton(Le.x,Le.y,!0,16),this._handleMouseButton(Le.x,Le.y,!1,16),this._gestureLastMagnitudeY-=re;for(;he.detail.magnitudeX-this._gestureLastMagnitudeX>re;)this._handleMouseButton(Le.x,Le.y,!0,32),this._handleMouseButton(Le.x,Le.y,!1,32),this._gestureLastMagnitudeX+=re;for(;he.detail.magnitudeX-this._gestureLastMagnitudeX<-re;)this._handleMouseButton(Le.x,Le.y,!0,64),this._handleMouseButton(Le.x,Le.y,!1,64),this._gestureLastMagnitudeX-=re;break;case"pinch":if(this._fakeMouseMove(he,Le.x,Le.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(Le.x,Le.y,!0,8),this._handleMouseButton(Le.x,Le.y,!1,8),this._gestureLastMagnitudeX+=le;for(;ye-this._gestureLastMagnitudeX<-le;)this._handleMouseButton(Le.x,Le.y,!0,16),this._handleMouseButton(Le.x,Le.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,Le.x,Le.y),this._handleMouseButton(Le.x,Le.y,!1,1);break;case"longpress":this._fakeMouseMove(he,Le.x,Le.y),this._handleMouseButton(Le.x,Le.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 Le="ID:"+this._repeaterID;Le.length<250;)Le+="\0";return this._sock.sendString(Le),!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,gt){for(var at=0;at<gt.length;at++)if(gt[at]===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 Le=this._sock.rQshiftBytes(ye);if(p.Debug("Server security types: "+Le),he(1,Le))this._rfbAuthScheme=1;else if(he(22,Le))this._rfbAuthScheme=22;else if(he(16,Le))this._rfbAuthScheme=16;else if(he(2,Le))this._rfbAuthScheme=2;else if(he(19,Le))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+Le+")");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 Le=this._sock.rQshift8();if(Le!=0)return this._fail("VeNCrypt failure "+Le);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 gt=[],at=0;at<this._rfbVeNCryptSubtypesLength;at++)gt.push(this._sock.rQshift32());if(gt.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,x.encodeUTF8)(this._rfbCredentials.username),mt=(0,x.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,Fe.length]),this._sock.send([0,0,0,mt.length]),this._sock.sendString(Fe),this._sock.sendString(mt),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"}},Le={},tt=0;tt<he;tt++){var gt=this._sock.rQshift32(),at=this._sock.rQshiftStr(4),Fe=this._sock.rQshiftStr(8);Le[gt]={vendor:at,signature:Fe}}return p.Debug("Server Tight tunnel types: "+Le),Le[1]&&Le[1].vendor==="SICR"&&Le[1].signature==="SCHANNEL"&&(p.Debug("Detected Siemens server. Assuming NOTUNNEL support."),Le[0]={vendor:"TGHT",signature:"NOTUNNEL"}),Le[0]?Le[0].vendor!=ye[0].vendor||Le[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 Le={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},tt=[],gt=0;gt<ye;gt++){this._sock.rQshift32();var at=this._sock.rQshiftStr(12);tt.push(at)}p.Debug("Server Tight authentication types: "+tt);for(var Fe in Le)if(tt.indexOf(Fe)!=-1){this._sock.send([0,0,0,Le[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(),Le=this._sock.rQshift8(),tt=this._sock.rQshift8(),gt=this._sock.rQshift8(),at=this._sock.rQshift8(),Fe=this._sock.rQshift16(),mt=this._sock.rQshift16(),et=this._sock.rQshift16(),St=this._sock.rQshift8(),jt=this._sock.rQshift8(),Mt=this._sock.rQshift8();this._sock.rQskipBytes(3);var Ot=this._sock.rQshift32();if(this._sock.rQwait("server init name",Ot,24))return!1;var Bt=this._sock.rQshiftStr(Ot);if(Bt=(0,x.decodeUTF8)(Bt,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+Ot))return!1;var Ke=this._sock.rQshift16(),de=this._sock.rQshift16(),se=this._sock.rQshift16();this._sock.rQskipBytes(2);var ut=(Ke+de+se)*16;if(this._sock.rQwait("TightVNC extended server init header",ut,32+Ot))return!1;this._sock.rQskipBytes(16*Ke),this._sock.rQskipBytes(16*de),this._sock.rQskipBytes(16*se)}return p.Info("Screen: "+he+"x"+ye+", bpp: "+Le+", depth: "+tt+", bigEndian: "+gt+", trueColor: "+at+", redMax: "+Fe+", greenMax: "+mt+", blueMax: "+et+", redShift: "+St+", greenShift: "+jt+", blueShift: "+Mt),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 Le=this._sock.rQshift32(),tt=Le&65535,gt=Le&4278190080,at=!!(gt&ae);if(at){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Fe=0;Fe<=15;Fe++){var mt=1<<Fe;tt&mt&&(this._clipboardServerCapabilitiesFormats[mt]=!0,this._sock.rQshift32())}for(var et=24;et<=31;et++){var St=1<<et;this._clipboardServerCapabilitiesActions[St]=!!(gt&St)}var jt=[ae,lt,pe,J,Y];Ce.messages.extendedClipboardCaps(this._sock,jt,{extendedClipboardFormatText:0})}else if(gt===lt){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[Y]&&(tt&Pe&&Ce.messages.extendedClipboardProvide(this._sock,[Pe],[this._clipboardText]))}else if(gt===pe){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[J]&&(this._clipboardText!=null?Ce.messages.extendedClipboardNotify(this._sock,[Pe]):Ce.messages.extendedClipboardNotify(this._sock,[]))}else if(gt===J){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[lt]&&(tt&Pe&&Ce.messages.extendedClipboardRequest(this._sock,[Pe]))}else if(gt===Y){if(this._viewOnly)return!0;if(!(tt&Pe))return!0;this._clipboardText=null;var Mt=this._sock.rQshiftBytes(he-4),Ot=new o.default,Bt=null;Ot.setInput(Mt);for(var Ke=0;Ke<=15;Ke++){var de=1<<Ke;if(tt&de){var se=0,ut=Ot.inflate(4);se|=ut[0]<<24,se|=ut[1]<<16,se|=ut[2]<<8,se|=ut[3];var qe=Ot.inflate(se);de===Pe&&(Bt=qe)}}if(Ot.setInput(null),Bt!==null){for(var me="",Wt=0;Wt<Bt.length;Wt++)me+=String.fromCharCode(Bt[Wt]);Bt=me,Bt=(0,x.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: "+gt)}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 Le=this._sock.rQshiftStr(ye);return this._supportsFence=!0,he&1<<31?(he&=1<<0|1<<1,Ce.messages.clientFence(this._sock,he,Le),!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,Le;switch(he){case 0:return Le=this._framebufferUpdate(),Le&&!this._enabledContinuousUpdates&&Ce.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),Le;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,Le=this._FBU.width,tt=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var gt=this._sock.rQshift8();this._sock.rQshift8();var at,Fe=4;if(gt==0){var mt=4294967040|0;if(at=new Array(Le*tt*Fe),this._sock.rQwait("VMware cursor classic encoding",Le*tt*Fe*2,2))return!1;for(var et=new Array(Le*tt),St=0;St<Le*tt;St++)et[St]=this._sock.rQshift32();for(var jt=new Array(Le*tt),Mt=0;Mt<Le*tt;Mt++)jt[Mt]=this._sock.rQshift32();for(var Ot=0;Ot<Le*tt;Ot++)if(et[Ot]==0){var Bt=jt[Ot],Ke=Bt>>8&255,de=Bt>>16&255,se=Bt>>24&255;at[Ot*Fe]=Ke,at[Ot*Fe+1]=de,at[Ot*Fe+2]=se,at[Ot*Fe+3]=255}else(et[Ot]&mt)==mt?jt[Ot]==0?(at[Ot*Fe]=0,at[Ot*Fe+1]=0,at[Ot*Fe+2]=0,at[Ot*Fe+3]=0):((jt[Ot]&mt)==mt,at[Ot*Fe]=0,at[Ot*Fe+1]=0,at[Ot*Fe+2]=0,at[Ot*Fe+3]=255):(at[Ot*Fe]=0,at[Ot*Fe+1]=0,at[Ot*Fe+2]=0,at[Ot*Fe+3]=255)}else if(gt==1){if(this._sock.rQwait("VMware cursor alpha encoding",Le*tt*4,2))return!1;at=new Array(Le*tt*Fe);for(var ut=0;ut<Le*tt;ut++){var qe=this._sock.rQshift32();at[ut*4]=qe>>24&255,at[ut*4+1]=qe>>16&255,at[ut*4+2]=qe>>8&255,at[ut*4+3]=qe&255}}else return p.Warn("The given cursor type is not supported: "+gt+" given."),!1;return this._updateCursor(at,he,ye,Le,tt),!0}},{key:"_handleCursor",value:function(){var he=this._FBU.x,ye=this._FBU.y,Le=this._FBU.width,tt=this._FBU.height,gt=Le*tt*4,at=Math.ceil(Le/8)*tt,Fe=gt+at;if(this._sock.rQwait("cursor encoding",Fe))return!1;for(var mt=this._sock.rQshiftBytes(gt),et=this._sock.rQshiftBytes(at),St=new Uint8Array(Le*tt*4),jt=0,Mt=0;Mt<tt;Mt++)for(var Ot=0;Ot<Le;Ot++){var Bt=Mt*Math.ceil(Le/8)+Math.floor(Ot/8),Ke=et[Bt]<<Ot%8&128?255:0;St[jt]=mt[jt+2],St[jt+1]=mt[jt+1],St[jt+2]=mt[jt],St[jt+3]=Ke,jt+=4}return this._updateCursor(St,he,ye,Le,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,x.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 Le=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,Le&&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 gt="";switch(this._FBU.y){case 1:gt="Resize is administratively prohibited";break;case 2:gt="Out of resources";break;case 3:gt="Invalid screen layout";break;default:gt="Unknown reason";break}p.Warn("Server did not accept the resize request: "+gt)}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,Le,tt,gt){this._cursorImage={rgbaPixels:he,hotx:ye,hoty:Le,w:tt,h:gt},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 Le=he.split("").map(function(tt){return tt.charCodeAt(0)});return new r.default(Le).encrypt(ye)}}]),Ce}(d.default);D.default=ee,ee.messages={keyEvent:function(we,Ce,_e){var he=we._sQ,ye=we._sQlen;he[ye]=4,he[ye+1]=_e,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,we._sQlen+=8,we.flush()},QEMUExtendedKeyEvent:function(we,Ce,_e,he){function ye(at){var Fe=he>>8,mt=he&255;return Fe===224&&mt<127?mt|128:at}var Le=we._sQ,tt=we._sQlen;Le[tt]=255,Le[tt+1]=0,Le[tt+2]=_e>>8,Le[tt+3]=_e,Le[tt+4]=Ce>>24,Le[tt+5]=Ce>>16,Le[tt+6]=Ce>>8,Le[tt+7]=Ce;var gt=ye(he);Le[tt+8]=gt>>24,Le[tt+9]=gt>>16,Le[tt+10]=gt>>8,Le[tt+11]=gt,we._sQlen+=12,we.flush()},pointerEvent:function(we,Ce,_e,he){var ye=we._sQ,Le=we._sQlen;ye[Le]=5,ye[Le+1]=he,ye[Le+2]=Ce>>8,ye[Le+3]=Ce,ye[Le+4]=_e>>8,ye[Le+5]=_e,we._sQlen+=6,we.flush()},_buildExtendedClipboardFlags:function(we,Ce){for(var _e=new Uint8Array(4),he=0,ye=0,Le=0;Le<we.length;Le++)ye|=we[Le];for(var tt=0;tt<Ce.length;tt++)he|=Ce[tt];return _e[0]=ye>>24,_e[1]=0,_e[2]=0,_e[3]=he,_e},extendedClipboardProvide:function(we,Ce,_e){for(var he=new n.default,ye=[],Le=0;Le<Ce.length;Le++){if(Ce[Le]!=Pe)throw new Error("Unsupported extended clipboard format for Provide message.");_e[Le]=_e[Le].replace(/\r\n|\r|\n/gm,`\r
|
|
|
`);var tt=(0,x.encodeUTF8)(_e[Le]+"\0");ye.push(tt.length>>24&255,tt.length>>16&255,tt.length>>8&255,tt.length&255);for(var gt=0;gt<tt.length;gt++)ye.push(tt.charCodeAt(gt))}var at=he.deflate(new Uint8Array(ye)),Fe=new Uint8Array(4+at.length);Fe.set(ee.messages._buildExtendedClipboardFlags([Y],Ce)),Fe.set(at,4),ee.messages.clientCutText(we,Fe,!0)},extendedClipboardNotify:function(we,Ce){var _e=ee.messages._buildExtendedClipboardFlags([J],Ce);ee.messages.clientCutText(we,_e,!0)},extendedClipboardRequest:function(we,Ce){var _e=ee.messages._buildExtendedClipboardFlags([lt],Ce);ee.messages.clientCutText(we,_e,!0)},extendedClipboardCaps:function(we,Ce,_e){var he=Object.keys(_e),ye=new Uint8Array(4+4*he.length);he.map(function(gt){return parseInt(gt)}),he.sort(function(gt,at){return gt-at}),ye.set(ee.messages._buildExtendedClipboardFlags(Ce,[]));for(var Le=4,tt=0;tt<he.length;tt++)ye[Le]=_e[he[tt]]>>24,ye[Le+1]=_e[he[tt]]>>16,ye[Le+2]=_e[he[tt]]>>8,ye[Le+3]=_e[he[tt]]>>0,Le+=4,ye[3]|=1<<he[tt];ee.messages.clientCutText(we,ye,!0)},clientCutText:function(we,Ce){var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,he=we._sQ,ye=we._sQlen;he[ye]=6,he[ye+1]=0,he[ye+2]=0,he[ye+3]=0;var Le;_e?Le=(0,y.toUnsigned32bit)(-Ce.length):Le=Ce.length,he[ye+4]=Le>>24,he[ye+5]=Le>>16,he[ye+6]=Le>>8,he[ye+7]=Le,we._sQlen+=8;for(var tt=0,gt=Ce.length;gt>0;){for(var at=Math.min(gt,we._sQbufferSize-we._sQlen),Fe=0;Fe<at;Fe++)he[we._sQlen+Fe]=Ce[tt+Fe];we._sQlen+=at,we.flush(),gt-=at,tt+=at}},setDesktopSize:function(we,Ce,_e,he,ye){var Le=we._sQ,tt=we._sQlen;Le[tt]=251,Le[tt+1]=0,Le[tt+2]=Ce>>8,Le[tt+3]=Ce,Le[tt+4]=_e>>8,Le[tt+5]=_e,Le[tt+6]=1,Le[tt+7]=0,Le[tt+8]=he>>24,Le[tt+9]=he>>16,Le[tt+10]=he>>8,Le[tt+11]=he,Le[tt+12]=0,Le[tt+13]=0,Le[tt+14]=0,Le[tt+15]=0,Le[tt+16]=Ce>>8,Le[tt+17]=Ce,Le[tt+18]=_e>>8,Le[tt+19]=_e,Le[tt+20]=ye>>24,Le[tt+21]=ye>>16,Le[tt+22]=ye>>8,Le[tt+23]=ye,we._sQlen+=24,we.flush()},clientFence:function(we,Ce,_e){var he=we._sQ,ye=we._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 Le=_e.length;he[ye+8]=Le;for(var tt=0;tt<Le;tt++)he[ye+9+tt]=_e.charCodeAt(tt);we._sQlen+=9+Le,we.flush()},enableContinuousUpdates:function(we,Ce,_e,he,ye,Le){var tt=we._sQ,gt=we._sQlen;tt[gt]=150,tt[gt+1]=Ce,tt[gt+2]=_e>>8,tt[gt+3]=_e,tt[gt+4]=he>>8,tt[gt+5]=he,tt[gt+6]=ye>>8,tt[gt+7]=ye,tt[gt+8]=Le>>8,tt[gt+9]=Le,we._sQlen+=10,we.flush()},pixelFormat:function(we,Ce,_e){var he=we._sQ,ye=we._sQlen,Le;Ce>16?Le=32:Ce>8?Le=16:Le=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]=Le,he[ye+5]=Ce,he[ye+6]=0,he[ye+7]=_e?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,we._sQlen+=20,we.flush()},clientEncodings:function(we,Ce){var _e=we._sQ,he=we._sQlen;_e[he]=2,_e[he+1]=0,_e[he+2]=Ce.length>>8,_e[he+3]=Ce.length;for(var ye=he+4,Le=0;Le<Ce.length;Le++){var tt=Ce[Le];_e[ye]=tt>>24,_e[ye+1]=tt>>16,_e[ye+2]=tt>>8,_e[ye+3]=tt,ye+=4}we._sQlen+=ye-he,we.flush()},fbUpdateRequest:function(we,Ce,_e,he,ye,Le){var tt=we._sQ,gt=we._sQlen;typeof _e=="undefined"&&(_e=0),typeof he=="undefined"&&(he=0),tt[gt]=3,tt[gt+1]=Ce?1:0,tt[gt+2]=_e>>8&255,tt[gt+3]=_e&255,tt[gt+4]=he>>8&255,tt[gt+5]=he&255,tt[gt+6]=ye>>8&255,tt[gt+7]=ye&255,tt[gt+8]=Le>>8&255,tt[gt+9]=Le&255,we._sQlen+=10,we.flush()},xvpOp:function(we,Ce,_e){var he=we._sQ,ye=we._sQlen;he[ye]=250,he[ye+1]=0,he[ye+2]=Ce,he[ye+3]=_e,we._sQlen+=4,we.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(R,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},x={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};y.defineMode("xml",function(v,m){var f=v.indentUnit,d={},l=m.htmlMode?p:x;for(var o in l)d[o]=l[o];for(var o in m)d[o]=m[o];var n,t;function a(I,F){function P(G){return F.tokenize=G,G(I,F)}var B=I.next();if(B=="<")return I.eat("!")?I.eat("[")?I.match("CDATA[")?P(r("atom","]]>")):null:I.match("--")?P(r("comment","-->")):I.match("DOCTYPE",!0,!0)?(I.eatWhile(/[\w\._\-]/),P(s(1))):null:I.eat("?")?(I.eatWhile(/[\w\._\-]/),F.tokenize=r("meta","?>"),"meta"):(n=I.eat("/")?"closeTag":"openTag",F.tokenize=e,"tag bracket");if(B=="&"){var k;return I.eat("#")?I.eat("x")?k=I.eatWhile(/[a-fA-F\d]/)&&I.eat(";"):k=I.eatWhile(/[\d]/)&&I.eat(";"):k=I.eatWhile(/[\w\.\-:]/)&&I.eat(";"),k?"atom":"error"}else return I.eatWhile(/[^&<]/),null}a.isInText=!0;function e(I,F){var P=I.next();if(P==">"||P=="/"&&I.eat(">"))return F.tokenize=a,n=P==">"?"endTag":"selfcloseTag","tag bracket";if(P=="=")return n="equals",null;if(P=="<"){F.tokenize=a,F.state=A,F.tagName=F.tagStart=null;var B=F.tokenize(I,F);return B?B+" tag error":"tag error"}else return/[\'\"]/.test(P)?(F.tokenize=u(P),F.stringStartCol=I.column(),F.tokenize(I,F)):(I.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function u(I){var F=function(B,k){for(;!B.eol();)if(B.next()==I){k.tokenize=e;break}return"string"};return F.isInAttribute=!0,F}function r(I,F){return function(P,B){for(;!P.eol();){if(P.match(F)){B.tokenize=a;break}P.next()}return I}}function s(I){return function(F,P){for(var B;(B=F.next())!=null;){if(B=="<")return P.tokenize=s(I+1),P.tokenize(F,P);if(B==">")if(I==1){P.tokenize=a;break}else return P.tokenize=s(I-1),P.tokenize(F,P)}return"meta"}}function c(I,F,P){this.prev=I.context,this.tagName=F,this.indent=I.indented,this.startOfLine=P,(d.doNotIndent.hasOwnProperty(F)||I.context&&I.context.noIndent)&&(this.noIndent=!0)}function h(I){I.context&&(I.context=I.context.prev)}function g(I,F){for(var P;;){if(!I.context)return;if(P=I.context.tagName,!d.contextGrabbers.hasOwnProperty(P)||!d.contextGrabbers[P].hasOwnProperty(F))return;h(I)}}function A(I,F,P){return I=="openTag"?(P.tagStart=F.column(),b):I=="closeTag"?w:A}function b(I,F,P){return I=="word"?(P.tagName=F.current(),t="tag",_):d.allowMissingTagName&&I=="endTag"?(t="tag bracket",_(I,F,P)):(t="error",b)}function w(I,F,P){if(I=="word"){var B=F.current();return P.context&&P.context.tagName!=B&&d.implicitlyClosed.hasOwnProperty(P.context.tagName)&&h(P),P.context&&P.context.tagName==B||d.matchClosing===!1?(t="tag",E):(t="tag error",C)}else return d.allowMissingTagName&&I=="endTag"?(t="tag bracket",E(I,F,P)):(t="error",C)}function E(I,F,P){return I!="endTag"?(t="error",E):(h(P),A)}function C(I,F,P){return t="error",E(I,F,P)}function _(I,F,P){if(I=="word")return t="attribute",T;if(I=="endTag"||I=="selfcloseTag"){var B=P.tagName,k=P.tagStart;return P.tagName=P.tagStart=null,I=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(B)?g(P,B):(g(P,B),P.context=new c(P,B,k==P.indented)),A}return t="error",_}function T(I,F,P){return I=="equals"?S:(d.allowMissing||(t="error"),_(I,F,P))}function S(I,F,P){return I=="string"?O:I=="word"&&d.allowUnquoted?(t="string",_):(t="error",_(I,F,P))}function O(I,F,P){return I=="string"?O:_(I,F,P)}return{startState:function(F){var P={tokenize:a,state:A,indented:F||0,tagName:null,tagStart:null,context:null};return F!=null&&(P.baseIndent=F),P},token:function(F,P){if(!P.tagName&&F.sol()&&(P.indented=F.indentation()),F.eatSpace())return null;n=null;var B=P.tokenize(F,P);return(B||n)&&B!="comment"&&(t=null,P.state=P.state(n||B,F,P),t&&(B=t=="error"?B+" error":t)),B},indent:function(F,P,B){var k=F.context;if(F.tokenize.isInAttribute)return F.tagStart==F.indented?F.stringStartCol+1:F.indented+f;if(k&&k.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(P))return 0;var G=P&&/^<(\/)?([\w_:\.-]*)/.exec(P);if(G&&G[1])for(;k;)if(k.tagName==G[2]){k=k.prev;break}else if(d.implicitlyClosed.hasOwnProperty(k.tagName))k=k.prev;else break;else if(G)for(;k;){var M=d.contextGrabbers[k.tagName];if(M&&M.hasOwnProperty(G[2]))k=k.prev;else break}for(;k&&k.prev&&!k.startOfLine;)k=k.prev;return k?k.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==S&&(F.state=_)},xmlCurrentTag:function(F){return F.tagName?{name:F.tagName,close:F.type=="closeTag"}:null},xmlCurrentContext:function(F){for(var P=[],B=F.context;B;B=B.prev)B.tagName&&P.push(B.tagName);return P.reverse()}}}),y.defineMIME("text/xml","xml"),y.defineMIME("application/xml","xml"),y.mimeModes.hasOwnProperty("text/html")||y.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1hJj":function(R,D,i){var y=i("e4Nc"),p=i("ftKO"),x=i("3A9y");function v(m){var f=-1,d=m==null?0:m.length;for(this.__data__=new y;++f<d;)this.add(m[f])}v.prototype.add=v.prototype.push=p,v.prototype.has=x,R.exports=v},"1n7x":function(R,D,i){(function(y,p){/*!
|
|
|
* html2pdf.js v0.10.1
|
|
|
* Copyright (c) 2021 Erik Koopmans
|
|
|
* Released under the MIT License.
|
|
|
*/(function(v,m){R.exports=m(i("dtIV"),i("wOnQ"))})(self,function(x,v){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=[],A={toContainer:c.default.prototype.toContainer,toPdf:c.default.prototype.toPdf};c.default.prototype.toContainer=function(){return A.toContainer.call(this).then(function(){if(this.opt.enableLinks){var E=this.prop.container,C=E.querySelectorAll("a"),_=(0,h.unitConvert)(E.getBoundingClientRect(),this.prop.pageSize.k);g=[],Array.prototype.forEach.call(C,function(T){for(var S=T.getClientRects(),O=0;O<S.length;O++){var I=(0,h.unitConvert)(S[O],this.prop.pageSize.k);I.left-=_.left,I.top-=_.top;var F=Math.floor(I.top/this.prop.pageSize.inner.height)+1,P=this.opt.margin[0]+I.top%this.prop.pageSize.inner.height,B=this.opt.margin[1]+I.left;g.push({page:F,top:P,left:B,clientRect:I,link:T})}},this)}})},c.default.prototype.toPdf=function(){return A.toPdf.call(this).then(function(){if(this.opt.enableLinks){g.forEach(function(C){this.prop.pdf.setPage(C.page),this.prop.pdf.link(C.left,C.top,C.clientRect.width,C.clientRect.height,{url:C.link.href})},this);var E=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(E)}})}},"./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"),A=a.n(g),b=a("./node_modules/core-js/modules/es.array.iterator.js"),w=a.n(b),E=a("./node_modules/core-js/modules/es.string.iterator.js"),C=a.n(E),_=a("./node_modules/core-js/modules/web.dom-collections.iterator.js"),T=a.n(_),S=a("jspdf"),O=a.n(S);function I(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(B){return typeof B}:I=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},I(F)}S.jsPDF.getPageSize=function(F,P,B){if(I(F)==="object"){var k=F;F=k.orientation,P=k.unit||P,B=k.format||B}P=P||"mm",B=B||"a4",F=(""+(F||"P")).toLowerCase();var G=(""+B).toLowerCase(),M={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(P){case"pt":var j=1;break;case"mm":var j=72/25.4;break;case"cm":var j=72/2.54;break;case"in":var j=72;break;case"px":var j=72/96;break;case"pc":var j=12;break;case"em":var j=12;break;case"ex":var j=6;break;default:throw"Invalid unit: "+P}if(M.hasOwnProperty(G))var K=M[G][1]/j,z=M[G][0]/j;else try{var K=B[1],z=B[0]}catch(X){throw new Error("Invalid format: "+B)}if(F==="p"||F==="portrait"){if(F="p",z>K){var V=z;z=K,K=V}}else if(F==="l"||F==="landscape"){if(F="l",K>z){var V=z;z=K,K=V}}else throw"Invalid orientation: "+F;var Q={width:z,height:K,unit:P,k:j};return Q},t.default=S.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"),A=a.n(g),b=a("./node_modules/core-js/modules/es.object.keys.js"),w=a.n(b),E=a("./src/worker.js"),C=a("./src/utils.js"),_={toContainer:E.default.prototype.toContainer};E.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},E.default.prototype.toContainer=function(){return _.toContainer.call(this).then(function(){var O=this.prop.container,I=this.prop.pageSize.inner.px.height,F=[].concat(this.opt.pagebreak.mode),P={avoidAll:F.indexOf("avoid-all")!==-1,css:F.indexOf("css")!==-1,legacy:F.indexOf("legacy")!==-1},B={},k=this;["before","after","avoid"].forEach(function(j){var K=P.avoidAll&&j==="avoid";B[j]=K?[]:[].concat(k.opt.pagebreak[j]||[]),B[j].length>0&&(B[j]=Array.prototype.slice.call(O.querySelectorAll(B[j].join(", "))))});var G=O.querySelectorAll(".html2pdf__page-break");G=Array.prototype.slice.call(G);var M=O.querySelectorAll("*");Array.prototype.forEach.call(M,function(K){var z={before:!1,after:P.legacy&&G.indexOf(K)!==-1,avoid:P.avoidAll};if(P.css){var V=window.getComputedStyle(K),Q=["always","page","left","right"],X=["avoid","avoid-page"];z={before:z.before||Q.indexOf(V.breakBefore||V.pageBreakBefore)!==-1,after:z.after||Q.indexOf(V.breakAfter||V.pageBreakAfter)!==-1,avoid:z.avoid||X.indexOf(V.breakInside||V.pageBreakInside)!==-1}}Object.keys(z).forEach(function(Re){z[Re]=z[Re]||B[Re].indexOf(K)!==-1});var te=K.getBoundingClientRect();if(z.avoid&&!z.before){var $=Math.floor(te.top/I),le=Math.floor(te.bottom/I),re=Math.abs(te.bottom-te.top)/I;le!==$&&re<=1&&(z.before=!0)}if(z.before){var Se=(0,C.createElement)("div",{style:{display:"block",height:I-te.top%I+"px"}});K.parentNode.insertBefore(Se,K)}if(z.after){var Se=(0,C.createElement)("div",{style:{display:"block",height:I-te.bottom%I+"px"}});K.parentNode.insertBefore(Se,K.nextSibling)}})})}},"./src/utils.js":function(n,t,a){"use strict";a.r(t),a.d(t,{objType:function(){return F},createElement:function(){return P},cloneNode:function(){return B},unitConvert:function(){return k},toPx:function(){return G}});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"),A=a.n(g),b=a("./node_modules/core-js/modules/es.symbol.iterator.js"),w=a.n(b),E=a("./node_modules/core-js/modules/es.array.iterator.js"),C=a.n(E),_=a("./node_modules/core-js/modules/es.string.iterator.js"),T=a.n(_),S=a("./node_modules/core-js/modules/web.dom-collections.iterator.js"),O=a.n(S);function I(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(K){return typeof K}:I=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},I(M)}var F=function(j){var K=I(j);return K==="undefined"?"undefined":K==="string"||j instanceof String?"string":K==="number"||j instanceof Number?"number":K==="function"||j instanceof Function?"function":!!j&&j.constructor===Array?"array":j&&j.nodeType===1?"element":K==="object"?"object":"unknown"},P=function(j,K){var z=document.createElement(j);if(K.className&&(z.className=K.className),K.innerHTML){z.innerHTML=K.innerHTML;for(var V=z.getElementsByTagName("script"),Q=V.length;Q-- >0;null)V[Q].parentNode.removeChild(V[Q])}for(var X in K.style)z.style[X]=K.style[X];return z},B=function M(j,K){for(var z=j.nodeType===3?document.createTextNode(j.nodeValue):j.cloneNode(!1),V=j.firstChild;V;V=V.nextSibling)(K===!0||V.nodeType!==1||V.nodeName!=="SCRIPT")&&z.appendChild(M(V,K));return j.nodeType===1&&(j.nodeName==="CANVAS"?(z.width=j.width,z.height=j.height,z.getContext("2d").drawImage(j,0,0)):(j.nodeName==="TEXTAREA"||j.nodeName==="SELECT")&&(z.value=j.value),z.addEventListener("load",function(){z.scrollTop=j.scrollTop,z.scrollLeft=j.scrollLeft},!0)),z},k=function(j,K){if(F(j)==="number")return j*72/96/K;var z={};for(var V in j)z[V]=j[V]*72/96/K;return z},G=function(j,K){return Math.floor(j*K/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"),A=a.n(g),b=a("./node_modules/core-js/modules/es.object.to-string.js"),w=a.n(b),E=a("./node_modules/core-js/modules/es.regexp.to-string.js"),C=a.n(E),_=a("./node_modules/core-js/modules/es.function.name.js"),T=a.n(_),S=a("./node_modules/core-js/modules/web.dom-collections.for-each.js"),O=a.n(S),I=a("jspdf"),F=a.n(I),P=a("html2canvas"),B=a.n(P),k=a("./src/utils.js"),G=a("./node_modules/es6-promise/dist/es6-promise.js"),M=a.n(G),j=M().Promise,K=function z(V){var Q=Object.assign(z.convert(j.resolve()),JSON.parse(JSON.stringify(z.template))),X=z.convert(j.resolve(),Q);return X=X.setProgress(1,z,1,[z]),X=X.set(V),X};K.prototype=Object.create(j.prototype),K.prototype.constructor=K,K.convert=function(V,Q){return V.__proto__=Q||K.prototype,V},K.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},K.prototype.from=function(V,Q){function X(te){switch((0,k.objType)(te)){case"string":return"string";case"element":return te.nodeName.toLowerCase==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){Q=Q||X(V);switch(Q){case"string":return this.set({src:(0,k.createElement)("div",{innerHTML:V})});case"element":return this.set({src:V});case"canvas":return this.set({canvas:V});case"img":return this.set({img:V});default:return this.error("Unknown source type.")}})},K.prototype.to=function(V){switch(V){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},K.prototype.toContainer=function(){var V=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(V).then(function(){var X={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"};X.opacity=0;var $=(0,k.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,k.createElement)("div",{className:"html2pdf__overlay",style:X}),this.prop.container=(0,k.createElement)("div",{className:"html2pdf__container",style:te}),this.prop.container.appendChild($),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},K.prototype.toCanvas=function(){var V=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(V).then(function(){var X=Object.assign({},this.opt.html2canvas);return delete X.onrendered,P(this.prop.container,X)}).then(function(X){var te=this.opt.html2canvas.onrendered||function(){};te(X),this.prop.canvas=X,document.body.removeChild(this.prop.overlay)})},K.prototype.toImg=function(){var V=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(V).then(function(){var X=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=X})},K.prototype.toPdf=function(){var V=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(V).then(function(){var X=this.prop.canvas,te=this.opt,$=X.height,le=Math.floor(X.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=X.width,Re.height=le,this.prop.pdf=this.prop.pdf||new I.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 Ge=Re.width,ct=Re.height;Pe.fillStyle="white",Pe.fillRect(0,0,Ge,ct),Pe.drawImage(X,0,Je*le,Ge,ct,0,0,Ge,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)}})},K.prototype.output=function(V,Q,X){return X=X||"pdf",X.toLowerCase()==="img"||X.toLowerCase()==="image"?this.outputImg(V,Q):this.outputPdf(V,Q)},K.prototype.outputPdf=function(V,Q){var X=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(X).then(function(){return this.prop.pdf.output(V,Q)})},K.prototype.outputImg=function(V,Q){var X=[function(){return this.prop.img||this.toImg()}];return this.thenList(X).then(function(){switch(V){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+V+'" is not supported.'}})},K.prototype.save=function(V){var Q=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Q).set(V?{filename:V}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},K.prototype.set=function(V){if((0,k.objType)(V)!=="object")return this;var Q=Object.keys(V||{}).map(function(X){switch(X){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 X in K.template.prop?function(){this.prop[X]=V[X]}:function(){this.opt[X]=V[X]}}},this);return this.then(function(){return this.thenList(Q)})},K.prototype.get=function(V,Q){return this.then(function(){var te=V in K.template.prop?this.prop[V]:this.opt[V];return Q?Q(te):te})},K.prototype.setMargin=function(V){return this.then(function(){switch((0,k.objType)(V)){case"number":V=[V,V,V,V];case"array":if(V.length===2&&(V=[V[0],V[1],V[0],V[1]]),V.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=V}).then(this.setPageSize)},K.prototype.setPageSize=function(V){return this.then(function(){V=V||I.jsPDF.getPageSize(this.opt.jsPDF),V.hasOwnProperty("inner")||(V.inner={width:V.width-this.opt.margin[1]-this.opt.margin[3],height:V.height-this.opt.margin[0]-this.opt.margin[2]},V.inner.px={width:(0,k.toPx)(V.inner.width,V.k),height:(0,k.toPx)(V.inner.height,V.k)},V.inner.ratio=V.inner.height/V.inner.width),this.prop.pageSize=V})},K.prototype.setProgress=function(V,Q,X,te){return V!=null&&(this.progress.val=V),Q!=null&&(this.progress.state=Q),X!=null&&(this.progress.n=X),te!=null&&(this.progress.stack=te),this.progress.ratio=this.progress.val/this.progress.state,this},K.prototype.updateProgress=function(V,Q,X,te){return this.setProgress(V?this.progress.val+V:null,Q||null,X?this.progress.n+X:null,te?this.progress.stack.concat(te):null)},K.prototype.then=function(V,Q){var X=this;return this.thenCore(V,Q,function($,le){return X.updateProgress(null,null,1,[$]),j.prototype.then.call(this,function(Se){return X.updateProgress(null,$),Se}).then($,le).then(function(Se){return X.updateProgress(1),Se})})},K.prototype.thenCore=function(V,Q,X){X=X||j.prototype.then;var te=this;V&&(V=V.bind(te)),Q&&(Q=Q.bind(te));var $=j.toString().indexOf("[native code]")!==-1&&j.name==="Promise",le=$?te:K.convert(Object.assign({},te),j.prototype),re=X.call(le,V,Q);return K.convert(re,te.__proto__)},K.prototype.thenExternal=function(V,Q){return j.prototype.then.call(this,V,Q)},K.prototype.thenList=function(V){var Q=this;return V.forEach(function(te){Q=Q.thenCore(te)}),Q},K.prototype.catch=function(z){z&&(z=z.bind(this));var V=j.prototype.catch.call(this,z);return K.convert(V,this)},K.prototype.catchExternal=function(V){return j.prototype.catch.call(this,V)},K.prototype.error=function(V){return this.then(function(){throw new Error(V)})},K.prototype.using=K.prototype.set,K.prototype.saveAs=K.prototype.save,K.prototype.export=K.prototype.output,K.prototype.run=K.prototype.then,t.default=K},"./node_modules/core-js/internals/a-function.js":function(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,A,b){var w=e(g),E=u(w.length),C=r(b,E),_;if(h&&A!=A){for(;E>C;)if(_=w[C++],_!=_)return!0}else for(;E>C;C++)if((h||C in w)&&w[C]===A)return h||C||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,E=b==2,C=b==3,_=b==4,T=b==6,S=b==7,O=b==5||T;return function(I,F,P,B){for(var k=r(I),G=u(k),M=e(F,P,3),j=s(G.length),K=0,z=B||c,V=w?z(I,j):E||S?z(I,0):void 0,Q,X;j>K;K++)if((O||K in G)&&(Q=G[K],X=M(Q,K,k),b))if(w)V[K]=X;else if(X)switch(b){case 3:return!0;case 5:return Q;case 6:return K;case 2:h.call(V,Q)}else switch(b){case 4:return!1;case 7:h.call(V,Q)}return T?-1:C||_?_: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(A,b){try{return A[b]}catch(w){}};n.exports=e?u:function(g){var A,b,w;return g===void 0?"Undefined":g===null?"Null":typeof(b=h(A=Object(g),s))=="string"?b:c?u(A):(w=u(A))=="Object"&&typeof A.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),A=s.f,b=r.f,w=0;w<g.length;w++){var E=g[w];e(c,E)||A(c,E,b(h,E))}}},"./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 A=u(e(s)),b="<"+c;return h!==""&&(b+=" "+h+'="'+u(g).replace(r,""")+'"'),b+">"+A+"</"+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,A,b){var w=A+" 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"),A=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"),E=a("./node_modules/core-js/internals/iterators-core.js"),C=E.IteratorPrototype,_=E.BUGGY_SAFARI_ITERATORS,T=A("iterator"),S="keys",O="values",I="entries",F=function(){return this};n.exports=function(P,B,k,G,M,j,K){u(k,B,G);var z=function(Je){if(Je===M&&$)return $;if(!_&&Je in X)return X[Je];switch(Je){case S:return function(){return new k(this,Je)};case O:return function(){return new k(this,Je)};case I:return function(){return new k(this,Je)}}return function(){return new k(this)}},V=B+" Iterator",Q=!1,X=P.prototype,te=X[T]||X["@@iterator"]||M&&X[M],$=!_&&te||z(M),le=B=="Array"&&X.entries||te,re,Se,Re;if(le&&(re=r(le.call(new P)),C!==Object.prototype&&re.next&&(!b&&r(re)!==C&&(s?s(re,C):typeof re[T]!="function"&&h(re,T,F)),c(re,V,!0,!0),b&&(w[V]=F))),M==O&&te&&te.name!==O&&(Q=!0,$=function(){return te.call(this)}),(!b||K)&&X[T]!==$&&h(X,T,$),w[B]=$,M)if(Se={values:z(O),keys:j?$:z(S),entries:z(I)},K)for(Re in Se)(_||Q||!(Re in X))&&g(X,Re,Se[Re]);else e({target:B,proto:!0,forced:_||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,A;h?(g=h.split("."),A=g[0]<4?1:g[0]+g[1]):u&&(g=u.match(/Edge\/(\d+)/),(!g||g[1]>=74)&&(g=u.match(/Chrome\/(\d+)/),g&&(A=g[1]))),n.exports=A&&+A},"./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(A,b){var w=A.target,E=A.global,C=A.stat,_,T,S,O,I,F;if(E?T=e:C?T=e[w]||c(w,{}):T=(e[w]||{}).prototype,T)for(S in b){if(I=b[S],A.noTargetGet?(F=u(T,S),O=F&&F.value):O=T[S],_=g(E?S:w+(C?".":"#")+S,A.forced),!_&&O!==void 0){if(typeof I===typeof O)continue;h(I,O)}(A.sham||O&&O.sham)&&r(I,"sham",!0),s(T,S,I,A)}}},"./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"),A=a("./node_modules/core-js/internals/hidden-keys.js"),b="Object already initialized",w=u.WeakMap,E,C,_,T=function(G){return _(G)?C(G):E(G,{})},S=function(G){return function(M){var j;if(!r(M)||(j=C(M)).type!==G)throw TypeError("Incompatible receiver, "+G+" required");return j}};if(e||h.state){var O=h.state||(h.state=new w),I=O.get,F=O.has,P=O.set;E=function(G,M){if(F.call(O,G))throw new TypeError(b);return M.facade=G,P.call(O,G,M),M},C=function(G){return I.call(O,G)||{}},_=function(G){return F.call(O,G)}}else{var B=g("state");A[B]=!0,E=function(G,M){if(c(G,B))throw new TypeError(b);return M.facade=G,s(G,B,M),M},C=function(G){return c(G,B)?G[B]:{}},_=function(G){return c(G,B)}}n.exports={set:E,get:C,has:_,enforce:T,getterFor:S}},"./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 E=c[s(b)];return E==g?!0:E==h?!1:typeof w=="function"?e(w):!!w},s=r.normalize=function(A){return String(A).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"),A=!1,b=function(){return this},w,E,C;[].keys&&(C=[].keys(),"next"in C?(E=u(u(C)),E!==Object.prototype&&(w=E)):A=!0);var _=w==null||e(function(){var T={};return w[g].call(T)!==T});_&&(w={}),(!h||_)&&!s(w,g)&&r(w,g,b),n.exports={IteratorPrototype:w,BUGGY_SAFARI_ITERATORS:A}},"./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"),A=Object.assign,b=Object.defineProperty;n.exports=!A||u(function(){if(e&&A({b:1},A(b({},"a",{enumerable:!0,get:function(){b(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var w={},E={},C=Symbol(),_="abcdefghijklmnopqrst";return w[C]=7,_.split("").forEach(function(T){E[T]=T}),A({},w)[C]!=7||r(A({},E)).join("")!=_})?function(E,C){for(var _=h(E),T=arguments.length,S=1,O=s.f,I=c.f;T>S;)for(var F=g(arguments[S++]),P=O?r(F).concat(O(F)):r(F),B=P.length,k=0,G;B>k;)G=P[k++],(!e||I.call(F,G))&&(_[G]=F[G]);return _}:A},"./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"),A=">",b="<",w="prototype",E="script",C=g("IE_PROTO"),_=function(){},T=function(B){return b+E+A+B+b+"/"+E+A},S=function(B){B.write(T("")),B.close();var k=B.parentWindow.Object;return B=null,k},O=function(){var B=h("iframe"),k="java"+E+":",G;if(B.style)return B.style.display="none",c.appendChild(B),B.src=String(k),G=B.contentWindow.document,G.open(),G.write(T("document.F=Object")),G.close(),G.F},I,F=function(){try{I=new ActiveXObject("htmlfile")}catch(k){}F=document.domain&&I?S(I):O()||S(I);for(var B=r.length;B--;)delete F[w][r[B]];return F()};s[C]=!0,n.exports=Object.create||function(B,k){var G;return B!==null?(_[w]=e(B),G=new _,_[w]=null,G[C]=B):G=F(),k===void 0?G:u(G,k)}},"./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 A=s(g),b=A.length,w=0,E;b>w;)u.f(h,E=A[w++],g[E]);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,A,b){if(r(g),A=s(A),r(b),u)try{return c(g,A,b)}catch(w){}if("get"in b||"set"in b)throw TypeError("Accessors not supported");return"value"in b&&(g[A]=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"),A=Object.getOwnPropertyDescriptor;t.f=e?A:function(w,E){if(w=s(w),E=c(E),g)try{return A(w,E)}catch(C){}if(h(w,E))return r(!u.f.call(w,E),w[E])}},"./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(A){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),A=0,b=[],w;for(w in g)!e(s,w)&&e(g,w)&&b.push(w);for(;h.length>A;)e(g,w=h[A++])&&(~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,A){return e(g),u(A),r?c.call(g,A):g.__proto__=A,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)),A=r.f;return A?g.concat(A(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,A=h.enforce,b=String(String).split("String");(n.exports=function(w,E,C,_){var T=_?!!_.unsafe:!1,S=_?!!_.enumerable:!1,O=_?!!_.noTargetGet:!1,I;if(typeof C=="function"&&(typeof E=="string"&&!r(C,"name")&&u(C,"name",E),I=A(C),I.source||(I.source=b.join(typeof E=="string"?E:""))),w===e){S?w[E]=C:s(E,C);return}else T?!O&&w[E]&&(S=!0):delete w[E];S?w[E]=C:u(w,E,C)})(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,A){var b=u(r(g)),w=e(A),E=b.length,C,_;return w<0||w>=E?h?"":void 0:(C=b.charCodeAt(w),C<55296||C>56319||w+1===E||(_=b.charCodeAt(w+1))<56320||_>57343?h?b.charAt(w):C:h?b.slice(w,w+2):(C-55296<<10)+(_-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 E=u(e(w));return b&1&&(E=E.replace(c,"")),b&2&&(E=E.replace(h,"")),E}};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 A=h[c],b;if(A!==void 0){if(g===void 0&&(g="default"),b=A.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"),A=e.Symbol,b=h?A:A&&A.withoutSetter||s;n.exports=function(w){return(!r(g,w)||!(c||typeof g[w]=="string"))&&(c&&r(A,w)?g[w]=A[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"),A=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"),E=a("./node_modules/core-js/internals/engine-v8-version.js"),C=w("isConcatSpreadable"),_=9007199254740991,T="Maximum allowed index exceeded",S=E>=51||!u(function(){var P=[];return P[C]=!1,P.concat()[0]!==P}),O=b("concat"),I=function(B){if(!s(B))return!1;var k=B[C];return k!==void 0?!!k:r(B)},F=!S||!O;e({target:"Array",proto:!0,forced:F},{concat:function(B){var k=c(this),G=A(k,0),M=0,j,K,z,V,Q;for(j=-1,z=arguments.length;j<z;j++)if(Q=j===-1?k:arguments[j],I(Q)){if(V=h(Q.length),M+V>_)throw TypeError(T);for(K=0;K<V;K++,M++)K in Q&&g(G,M,Q[K])}else{if(M>=_)throw TypeError(T);g(G,M++,Q)}return G.length=M,G}})},"./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,A=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=A(this),w=b.target,E=b.kind,C=b.index++;return!w||C>=w.length?(b.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:C,done:!1}:E=="values"?{value:w[C],done:!1}:{value:[C,w[C]],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"),A=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"),E=A("species"),C=[].slice,_=Math.max;e({target:"Array",proto:!0,forced:!w},{slice:function(S,O){var I=h(this),F=c(I.length),P=s(S,F),B=s(O===void 0?F:O,F),k,G,M;if(r(I)&&(k=I.constructor,typeof k=="function"&&(k===Array||r(k.prototype))?k=void 0:u(k)&&(k=k[E],k===null&&(k=void 0)),k===Array||k===void 0))return C.call(I,P,B);for(G=new(k===void 0?Array:k)(_(B-P,0)),M=0;P<B;P++,M++)P in I&&g(G,M,I[P]);return G.length=M,G}})},"./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(A){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"),A=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"),E=a("./node_modules/core-js/internals/object-create.js"),C=a("./node_modules/core-js/internals/object-get-own-property-names.js").f,_=a("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,T=a("./node_modules/core-js/internals/object-define-property.js").f,S=a("./node_modules/core-js/internals/string-trim.js").trim,O="Number",I=u[O],F=I.prototype,P=h(E(F))==O,B=function(z){if(A(z))throw TypeError("Cannot convert a Symbol value to a number");var V=b(z,"number"),Q,X,te,$,le,re,Se,Re;if(typeof V=="string"&&V.length>2){if(V=S(V),Q=V.charCodeAt(0),Q===43||Q===45){if(X=V.charCodeAt(2),X===88||X===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(O,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var k=function(z){var V=arguments.length<1?0:z,Q=this;return Q instanceof k&&(P?w(function(){F.valueOf.call(Q)}):h(Q)!=O)?g(new I(B(V)),Q,k):B(V)},G=e?C(I):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),M=0,j;G.length>M;M++)c(I,j=G[M])&&!c(k,j)&&T(k,j,_(I,j));k.prototype=F,F.constructor=k,s(u,O,k)}},"./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,A=g[h],b=s(function(){return A.call({source:"a",flags:"b"})!="/a/b"}),w=A.name!=h;(b||w)&&e(RegExp.prototype,h,function(){var C=u(this),_=r(C.source),T=C.flags,S=r(T===void 0&&C instanceof RegExp&&!("flags"in g)?c.call(C):T);return"/"+_+"/"+S},{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(A){h(this,{type:c,string:u(A),index:0})},function(){var b=g(this),w=b.string,E=b.index,C;return E>=w.length?{value:void 0,done:!0}:(C=e(w,E),b.index+=C.length,{value:C,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"),A=r.Symbol;if(u&&typeof A=="function"&&(!("description"in A.prototype)||A().description!==void 0)){var b={},w=function(){var O=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),I=this instanceof w?new A(O):O===void 0?A():A(O);return O===""&&(b[I]=!0),I};g(w,A);var E=w.prototype=A.prototype;E.constructor=w;var C=E.toString,_=String(A("test"))=="Symbol(test)",T=/^Symbol\((.*)\)[^)]+$/;h(E,"description",{configurable:!0,get:function(){var O=c(this)?this.valueOf():this,I=C.call(O);if(s(b,O))return"";var F=_?I.slice(7,-1):I.replace(T,"$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"),A=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"),E=a("./node_modules/core-js/internals/is-symbol.js"),C=a("./node_modules/core-js/internals/an-object.js"),_=a("./node_modules/core-js/internals/to-object.js"),T=a("./node_modules/core-js/internals/to-indexed-object.js"),S=a("./node_modules/core-js/internals/to-property-key.js"),O=a("./node_modules/core-js/internals/to-string.js"),I=a("./node_modules/core-js/internals/create-property-descriptor.js"),F=a("./node_modules/core-js/internals/object-create.js"),P=a("./node_modules/core-js/internals/object-keys.js"),B=a("./node_modules/core-js/internals/object-get-own-property-names.js"),k=a("./node_modules/core-js/internals/object-get-own-property-names-external.js"),G=a("./node_modules/core-js/internals/object-get-own-property-symbols.js"),M=a("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),j=a("./node_modules/core-js/internals/object-define-property.js"),K=a("./node_modules/core-js/internals/object-property-is-enumerable.js"),z=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"),X=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,Ge=X("hidden"),ct="Symbol",Ue="prototype",ae=le("toPrimitive"),lt=Pe.set,pe=Pe.getterFor(ct),J=Object[Ue],Y=u.Symbol,ee=r("JSON","stringify"),fe=M.f,we=j.f,Ce=k.f,_e=K.f,he=Q("symbols"),ye=Q("op-symbols"),Le=Q("string-to-symbol-registry"),tt=Q("symbol-to-string-registry"),gt=Q("wks"),at=u.QObject,Fe=!at||!at[Ue]||!at[Ue].findChild,mt=c&&g(function(){return F(we({},"a",{get:function(){return we(this,"a",{value:7}).a}})).a!=7})?function(ut,qe,me){var Wt=fe(J,qe);Wt&&delete J[qe],we(ut,qe,me),Wt&&ut!==J&&we(J,qe,Wt)}:we,et=function(qe,me){var Wt=he[qe]=F(Y[Ue]);return lt(Wt,{type:ct,tag:qe,description:me}),c||(Wt.description=me),Wt},St=function(qe,me,Wt){qe===J&&St(ye,me,Wt),C(qe);var dr=S(me);return C(Wt),A(he,dr)?(Wt.enumerable?(A(qe,Ge)&&qe[Ge][dr]&&(qe[Ge][dr]=!1),Wt=F(Wt,{enumerable:I(0,!1)})):(A(qe,Ge)||we(qe,Ge,I(1,{})),qe[Ge][dr]=!0),mt(qe,dr,Wt)):we(qe,dr,Wt)},jt=function(qe,me){C(qe);var Wt=T(me),dr=P(Wt).concat(de(Wt));return Je(dr,function(vt){(!c||Ot.call(Wt,vt))&&St(qe,vt,Wt[vt])}),qe},Mt=function(qe,me){return me===void 0?F(qe):jt(F(qe),me)},Ot=function(qe){var me=S(qe),Wt=_e.call(this,me);return this===J&&A(he,me)&&!A(ye,me)?!1:Wt||!A(this,me)||!A(he,me)||A(this,Ge)&&this[Ge][me]?Wt:!0},Bt=function(qe,me){var Wt=T(qe),dr=S(me);if(Wt===J&&A(he,dr)&&!A(ye,dr))return;var vt=fe(Wt,dr);return vt&&A(he,dr)&&!(A(Wt,Ge)&&Wt[Ge][dr])&&(vt.enumerable=!0),vt},Ke=function(qe){var me=Ce(T(qe)),Wt=[];return Je(me,function(dr){!A(he,dr)&&!A(te,dr)&&Wt.push(dr)}),Wt},de=function(qe){var me=qe===J,Wt=Ce(me?ye:T(qe)),dr=[];return Je(Wt,function(vt){A(he,vt)&&(!me||A(J,vt))&&dr.push(he[vt])}),dr};if(h||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var qe=!arguments.length||arguments[0]===void 0?void 0:O(arguments[0]),me=$(qe),Wt=function dr(vt){this===J&&dr.call(ye,vt),A(this,Ge)&&A(this[Ge],me)&&(this[Ge][me]=!1),mt(this,me,I(1,vt))};return c&&Fe&&mt(J,me,{configurable:!0,set:Wt}),et(me,qe)},V(Y[Ue],"toString",function(){return pe(this).tag}),V(Y,"withoutSetter",function(ut){return et($(ut),ut)}),K.f=Ot,j.f=St,M.f=Bt,B.f=k.f=Ke,G.f=de,re.f=function(ut){return et(le(ut),ut)},c&&(we(Y[Ue],"description",{configurable:!0,get:function(){return pe(this).description}}),s||V(J,"propertyIsEnumerable",Ot,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:Y}),Je(P(gt),function(ut){Se(ut)}),e({target:ct,stat:!0,forced:!h},{for:function(qe){var me=O(qe);if(A(Le,me))return Le[me];var Wt=Y(me);return Le[me]=Wt,tt[Wt]=me,Wt},keyFor:function(qe){if(!E(qe))throw TypeError(qe+" is not a symbol");if(A(tt,qe))return tt[qe]},useSetter:function(){Fe=!0},useSimple:function(){Fe=!1}}),e({target:"Object",stat:!0,forced:!h,sham:!c},{create:Mt,defineProperty:St,defineProperties:jt,getOwnPropertyDescriptor:Bt}),e({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:Ke,getOwnPropertySymbols:de}),e({target:"Object",stat:!0,forced:g(function(){G.f(1)})},{getOwnPropertySymbols:function(qe){return G.f(_(qe))}}),ee){var se=!h||g(function(){var ut=Y();return ee([ut])!="[null]"||ee({a:ut})!="{}"||ee(Object(ut))!="{}"});e({target:"JSON",stat:!0,forced:se},{stringify:function(qe,me,Wt){for(var dr=[qe],vt=1,rr;arguments.length>vt;)dr.push(arguments[vt++]);return rr=me,!w(me)&&qe===void 0||E(qe)?void 0:(b(me)||(me=function(mn,sr){if(typeof rr=="function"&&(sr=rr.call(this,mn,sr)),!E(sr))return sr}),dr[1]=me,ee.apply(null,dr))}})}Y[Ue][ae]||z(Y[Ue],ae,Y[Ue].valueOf),Re(Y,ct),te[Ge]=!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(A){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"),A=r.values;for(var b in u){var w=e[b],E=w&&w.prototype;if(E){if(E[h]!==A)try{s(E,h,A)}catch(_){E[h]=A}if(E[g]||s(E,g,b),u[b]){for(var C in r)if(E[C]!==r[C])try{s(E,C,r[C])}catch(_){E[C]=r[C]}}}}},"./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(at){var Fe=typeof at;return at!==null&&(Fe==="object"||Fe==="function")}function a(at){return typeof at=="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,mt){P[r]=Fe,P[r+1]=mt,r+=2,r===2&&(c?c(B):G())};function g(at){c=at}function A(at){h=at}var b=typeof window!="undefined"?window:void 0,w=b||{},E=w.MutationObserver||w.WebKitMutationObserver,C=typeof self=="undefined"&&typeof p!="undefined"&&{}.toString.call(p)==="[object process]",_=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function T(){return function(){return p.nextTick(B)}}function S(){return typeof s!="undefined"?function(){s(B)}:F()}function O(){var at=0,Fe=new E(B),mt=document.createTextNode("");return Fe.observe(mt,{characterData:!0}),function(){mt.data=at=++at%2}}function I(){var at=new MessageChannel;return at.port1.onmessage=B,function(){return at.port2.postMessage(0)}}function F(){var at=setTimeout;return function(){return at(B,1)}}var P=new Array(1e3);function B(){for(var at=0;at<r;at+=2){var Fe=P[at],mt=P[at+1];Fe(mt),P[at]=void 0,P[at+1]=void 0}r=0}function k(){try{var at=Function("return this")().require("vertx");return s=at.runOnLoop||at.runOnContext,S()}catch(Fe){return F()}}var G=void 0;C?G=T():E?G=O():_?G=I():b===void 0&&!0?G=k():G=F();function M(at,Fe){var mt=this,et=new this.constructor(z);et[K]===void 0&&ee(et);var St=mt._state;if(St){var jt=arguments[St-1];h(function(){return lt(St,et,jt,mt._result)})}else Ue(mt,et,at,Fe);return et}function j(at){var Fe=this;if(at&&typeof at=="object"&&at.constructor===Fe)return at;var mt=new Fe(z);return Pe(mt,at),mt}var K=Math.random().toString(36).substring(2);function z(){}var V=void 0,Q=1,X=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(at,Fe,mt,et){try{at.call(Fe,mt,et)}catch(St){return St}}function re(at,Fe,mt){h(function(et){var St=!1,jt=le(mt,Fe,function(Mt){if(St)return;St=!0,Fe!==Mt?Pe(et,Mt):Ge(et,Mt)},function(Mt){if(St)return;St=!0,ct(et,Mt)},"Settle: "+(et._label||" unknown promise"));!St&&jt&&(St=!0,ct(et,jt))},at)}function Se(at,Fe){Fe._state===Q?Ge(at,Fe._result):Fe._state===X?ct(at,Fe._result):Ue(Fe,void 0,function(mt){return Pe(at,mt)},function(mt){return ct(at,mt)})}function Re(at,Fe,mt){Fe.constructor===at.constructor&&mt===M&&Fe.constructor.resolve===j?Se(at,Fe):mt===void 0?Ge(at,Fe):a(mt)?re(at,Fe,mt):Ge(at,Fe)}function Pe(at,Fe){if(at===Fe)ct(at,te());else if(t(Fe)){var mt=void 0;try{mt=Fe.then}catch(et){ct(at,et);return}Re(at,Fe,mt)}else Ge(at,Fe)}function Je(at){at._onerror&&at._onerror(at._result),ae(at)}function Ge(at,Fe){if(at._state!==V)return;at._result=Fe,at._state=Q,at._subscribers.length!==0&&h(ae,at)}function ct(at,Fe){if(at._state!==V)return;at._state=X,at._result=Fe,h(Je,at)}function Ue(at,Fe,mt,et){var St=at._subscribers,jt=St.length;at._onerror=null,St[jt]=Fe,St[jt+Q]=mt,St[jt+X]=et,jt===0&&at._state&&h(ae,at)}function ae(at){var Fe=at._subscribers,mt=at._state;if(Fe.length===0)return;for(var et=void 0,St=void 0,jt=at._result,Mt=0;Mt<Fe.length;Mt+=3)et=Fe[Mt],St=Fe[Mt+mt],et?lt(mt,et,St,jt):St(jt);at._subscribers.length=0}function lt(at,Fe,mt,et){var St=a(mt),jt=void 0,Mt=void 0,Ot=!0;if(St){try{jt=mt(et)}catch(Bt){Ot=!1,Mt=Bt}if(Fe===jt){ct(Fe,$());return}}else jt=et;Fe._state!==V||(St&&Ot?Pe(Fe,jt):Ot===!1?ct(Fe,Mt):at===Q?Ge(Fe,jt):at===X&&ct(Fe,jt))}function pe(at,Fe){try{Fe(function(et){Pe(at,et)},function(et){ct(at,et)})}catch(mt){ct(at,mt)}}var J=0;function Y(){return J++}function ee(at){at[K]=J++,at._state=void 0,at._result=void 0,at._subscribers=[]}function fe(){return new Error("Array Methods must be provided an Array")}var we=function(){function at(Fe,mt){this._instanceConstructor=Fe,this.promise=new Fe(z),this.promise[K]||ee(this.promise),u(mt)?(this.length=mt.length,this._remaining=mt.length,this._result=new Array(this.length),this.length===0?Ge(this.promise,this._result):(this.length=this.length||0,this._enumerate(mt),this._remaining===0&&Ge(this.promise,this._result))):ct(this.promise,fe())}return at.prototype._enumerate=function(mt){for(var et=0;this._state===V&&et<mt.length;et++)this._eachEntry(mt[et],et)},at.prototype._eachEntry=function(mt,et){var St=this._instanceConstructor,jt=St.resolve;if(jt===j){var Mt=void 0,Ot=void 0,Bt=!1;try{Mt=mt.then}catch(de){Bt=!0,Ot=de}if(Mt===M&&mt._state!==V)this._settledAt(mt._state,et,mt._result);else if(typeof Mt!="function")this._remaining--,this._result[et]=mt;else if(St===tt){var Ke=new St(z);Bt?ct(Ke,Ot):Re(Ke,mt,Mt),this._willSettleAt(Ke,et)}else this._willSettleAt(new St(function(de){return de(mt)}),et)}else this._willSettleAt(jt(mt),et)},at.prototype._settledAt=function(mt,et,St){var jt=this.promise;jt._state===V&&(this._remaining--,mt===X?ct(jt,St):this._result[et]=St),this._remaining===0&&Ge(jt,this._result)},at.prototype._willSettleAt=function(mt,et){var St=this;Ue(mt,void 0,function(jt){return St._settledAt(Q,et,jt)},function(jt){return St._settledAt(X,et,jt)})},at}();function Ce(at){return new we(this,at).promise}function _e(at){var Fe=this;return u(at)?new Fe(function(mt,et){for(var St=at.length,jt=0;jt<St;jt++)Fe.resolve(at[jt]).then(mt,et)}):new Fe(function(mt,et){return et(new TypeError("You must pass an array to race."))})}function he(at){var Fe=this,mt=new Fe(z);return ct(mt,at),mt}function ye(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Le(){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 at(Fe){this[K]=Y(),this._result=this._state=void 0,this._subscribers=[],z!==Fe&&(typeof Fe!="function"&&ye(),this instanceof at?pe(this,Fe):Le())}return at.prototype.catch=function(mt){return this.then(null,mt)},at.prototype.finally=function(mt){var et=this,St=et.constructor;return a(mt)?et.then(function(jt){return St.resolve(mt()).then(function(){return jt})},function(jt){return St.resolve(mt()).then(function(){throw jt})}):et.then(mt,mt)},at}();tt.prototype.then=M,tt.all=Ce,tt.race=_e,tt.resolve=j,tt.reject=he,tt._setScheduler=g,tt._setAsap=A,tt._asap=h;function gt(){var at=void 0;if(typeof y!="undefined")at=y;else if(typeof self!="undefined")at=self;else try{at=Function("return this")()}catch(et){throw new Error("polyfill failed because global object is unavailable in this environment")}var Fe=at.Promise;if(Fe){var mt=null;try{mt=Object.prototype.toString.call(Fe.resolve())}catch(et){}if(mt==="[object Promise]"&&!Fe.cast)return}at.Promise=tt}return tt.polyfill=gt,tt.Promise=tt,tt})},html2canvas:function(n){"use strict";n.exports=v},jspdf:function(n){"use strict";n.exports=x}},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(R,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(R,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(v){return v.stack=null,p.superApply(this,"getInitialData",arguments)}}),x=p;R.exports=x},"1u/T":function(R,D,i){var y=i("ProS"),p={type:"selectDataRange",event:"dataRangeSelected",update:"update"};y.registerAction(p,function(x,v){v.eachComponent({mainType:"visualMap",query:x},function(m){m.setSelected(x.selected)})})},"1uat":function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("MlIO"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.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=v.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],A=s[3],b=s[4],w=s[5],E=s[6],C=s[7],_=c.high,T=c.low,S=h.high,O=h.low,I=g.high,F=g.low,P=A.high,B=A.low,k=b.high,G=b.low,M=w.high,j=w.low,K=E.high,z=E.low,V=C.high,Q=C.low,X=_,te=T,$=S,le=O,re=I,Se=F,Re=P,Pe=B,Je=k,Ge=G,ct=M,Ue=j,ae=K,lt=z,pe=V,J=Q,Y=0;Y<80;Y++){var ee,fe,we=t[Y];if(Y<16)fe=we.high=u[r+Y*2]|0,ee=we.low=u[r+Y*2+1]|0;else{var Ce=t[Y-15],_e=Ce.high,he=Ce.low,ye=(_e>>>1|he<<31)^(_e>>>8|he<<24)^_e>>>7,Le=(he>>>1|_e<<31)^(he>>>8|_e<<24)^(he>>>7|_e<<25),tt=t[Y-2],gt=tt.high,at=tt.low,Fe=(gt>>>19|at<<13)^(gt<<3|at>>>29)^gt>>>6,mt=(at>>>19|gt<<13)^(at<<3|gt>>>29)^(at>>>6|gt<<26),et=t[Y-7],St=et.high,jt=et.low,Mt=t[Y-16],Ot=Mt.high,Bt=Mt.low;ee=Le+jt,fe=ye+St+(ee>>>0<Le>>>0?1:0),ee=ee+mt,fe=fe+Fe+(ee>>>0<mt>>>0?1:0),ee=ee+Bt,fe=fe+Ot+(ee>>>0<Bt>>>0?1:0),we.high=fe,we.low=ee}var Ke=Je&ct^~Je&ae,de=Ge&Ue^~Ge<,se=X&$^X&re^$&re,ut=te&le^te&Se^le&Se,qe=(X>>>28|te<<4)^(X<<30|te>>>2)^(X<<25|te>>>7),me=(te>>>28|X<<4)^(te<<30|X>>>2)^(te<<25|X>>>7),Wt=(Je>>>14|Ge<<18)^(Je>>>18|Ge<<14)^(Je<<23|Ge>>>9),dr=(Ge>>>14|Je<<18)^(Ge>>>18|Je<<14)^(Ge<<23|Je>>>9),vt=n[Y],rr=vt.high,ur=vt.low,mn=J+dr,sr=pe+Wt+(mn>>>0<J>>>0?1:0),mn=mn+de,sr=sr+Ke+(mn>>>0<de>>>0?1:0),mn=mn+ur,sr=sr+rr+(mn>>>0<ur>>>0?1:0),mn=mn+ee,sr=sr+fe+(mn>>>0<ee>>>0?1:0),xr=me+ut,pr=qe+se+(xr>>>0<me>>>0?1:0);pe=ae,J=lt,ae=ct,lt=Ue,ct=Je,Ue=Ge,Ge=Pe+mn|0,Je=Re+sr+(Ge>>>0<Pe>>>0?1:0)|0,Re=re,Pe=Se,re=$,Se=le,$=X,le=te,te=mn+xr|0,X=sr+pr+(te>>>0<mn>>>0?1:0)|0}T=c.low=T+te,c.high=_+X+(T>>>0<te>>>0?1:0),O=h.low=O+le,h.high=S+$+(O>>>0<le>>>0?1:0),F=g.low=F+Se,g.high=I+re+(F>>>0<Se>>>0?1:0),B=A.low=B+Pe,A.high=P+Re+(B>>>0<Pe>>>0?1:0),G=b.low=G+Ge,b.high=k+Je+(G>>>0<Ge>>>0?1:0),j=w.low=j+Ue,w.high=M+ct+(j>>>0<Ue>>>0?1:0),z=E.low=z+lt,E.high=K+ae+(z>>>0<lt>>>0?1:0),Q=C.low=Q+J,C.high=V+pe+(Q>>>0<J>>>0?1:0)},_doFinalize:function(){var u=this._data,r=u.words,s=this._nDataBytes*8,c=u.sigBytes*8;r[c>>>5]|=128<<24-c%32,r[(c+128>>>10<<5)+30]=Math.floor(s/4294967296),r[(c+128>>>10<<5)+31]=s,u.sigBytes=r.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var u=v.clone.call(this);return u._hash=this._hash.clone(),u},blockSize:1024/32});p.SHA512=v._createHelper(a),p.HmacSHA512=v._createHmacHelper(a)}(),y.SHA512})},"1vzs":function(R,D,i){"use strict";i.d(D,"a",function(){return r});var y=i("q1tI"),p=i.n(y),x=i("HQEm"),v=i.n(x),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,A=s.removeIcon,b=s.loading,w=s.multiple,E=s.prefixCls,C=h;h||(C=y.createElement(a.a,null));var _=null;if(c!==void 0)_=c;else if(b)_=y.createElement(f.a,{spin:!0});else{var T="".concat(E,"-suffix");_=function(F){var P=F.open,B=F.showSearch;return P&&B?y.createElement(u.a,{className:T}):y.createElement(v.a,{className:T})}}var S=null;g!==void 0?S=g:w?S=y.createElement(l.a,null):S=null;var O=null;return A!==void 0?O=A:O=y.createElement(n.a,null),{clearIcon:C,suffixIcon:_,itemIcon:S,removeIcon:O}}},"1xaR":function(R,D,i){var y=i("ProS"),p=i("bYtY");i("qgGe"),i("NA0q"),i("RPvy");var x=i("mOdp"),v=i("y3NT"),m=i("0/Rx");y.registerVisual(p.curry(x,"sunburst")),y.registerLayout(p.curry(v,"sunburst")),y.registerProcessor(p.curry(m,"sunburst"))},"24YM":function(R,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 x="-1";D.SensorTabIndex=x},"2548":function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("6GrX"),v=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,E){g.push(E)}),new d(this._featureNames||[],g).add(A).update(A).remove(p.curry(A,null)).execute(),this._featureNames=g;function A(w,E){var C=g[w],_=g[E],T=c[C],S=new f(T,t,t.ecModel),O;if(u&&u.newTitle!=null&&u.featureName===C&&(T.title=u.newTitle),C&&!_){if(n(C))O={model:S,onclick:S.option.onclick,featureName:C};else{var I=v.get(C);if(!I)return;O=new I(S,a,e)}h[C]=O}else{if(O=h[_],!O)return;O.model=S,O.ecModel=a,O.api=e}if(!C&&_){O.dispose&&O.dispose(a,e);return}if(!S.get("show")||O.unusable){O.remove&&O.remove(a,e);return}b(S,O,C),S.setIconStatus=function(F,P){var B=this.option,k=this.iconPaths;B.iconStatus=B.iconStatus||{},B.iconStatus[F]=P,k[F]&&k[F].trigger(P)},O.render&&O.render(S,a,e,u)}function b(w,E,C){var _=w.getModel("iconStyle"),T=w.getModel("emphasis.iconStyle"),S=E.getIcons?E.getIcons():w.get("icon"),O=w.get("title")||{};if(typeof S=="string"){var I=S,F=O;S={},O={},S[C]=I,O[C]=F}var P=w.iconPaths={};p.each(S,function(B,k){var G=m.createIcon(B,{},{x:-s/2,y:-s/2,width:s,height:s});G.setStyle(_.getItemStyle()),G.hoverStyle=T.getItemStyle(),G.setStyle({text:O[k],textAlign:T.get("textAlign"),textBorderRadius:T.get("textBorderRadius"),textPadding:T.get("textPadding"),textFill:null});var M=t.getModel("tooltip");M&&M.get("show")&&G.attr("tooltip",p.extend({content:O[k],formatter:M.get("formatter",!0)||function(){return O[k]},formatterParams:{componentType:"toolbox",name:k,title:O[k],$vars:["name","title"]},position:M.get("position",!0)||"bottom"},M.option)),m.setHoverStyle(G),t.get("showTitle")&&(G.__title=O[k],G.on("mouseover",function(){var j=T.getItemStyle(),K=t.get("orient")==="vertical"?t.get("right")==null?"right":"left":t.get("bottom")==null?"bottom":"top";G.setStyle({textFill:T.get("textFill")||j.fill||j.stroke||"#000",textBackgroundColor:T.get("textBackgroundColor"),textPosition:T.get("textPosition")||K})}).on("mouseout",function(){G.setStyle({textFill:null,textBackgroundColor:null})})),G.trigger(w.get("iconStatus."+k)||"normal"),r.add(G),G.on("click",p.bind(E.onclick,E,a,e,k)),P[k]=G})}l.layout(r,t,e),r.add(l.makeBackground(r.getBoundingRect(),t)),r.eachChild(function(w){var E=w.__title,C=w.hoverStyle;if(C&&E){var _=x.getBoundingRect(E,x.makeFont(C)),T=w.position[0]+r.position[0],S=w.position[1]+r.position[1]+s,O=!1;S+_.height>e.getHeight()&&(C.textPosition="top",O=!0);var I=O?-5-_.height:s+8;T+_.width/2>e.getWidth()?(C.textPosition=["100%",I],C.textAlign="right"):T-_.width/2<0&&(C.textPosition=[0,I],C.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}R.exports=o},"2B6p":function(R,D){function i(y,p,x){var v=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(x){var l=x.min||0,o=x.max||Infinity;f=Math.max(Math.min(v*f,o),l)/v}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*v)}return{center:y.getCenter(),zoom:y.getZoom()}}D.updateCenterAndZoom=i},"2BaD":function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="CloseCircleOutlined";var d=D.a=p.forwardRef(f)},"2DNl":function(R,D,i){var y=i("IMiH"),p=i("loD1"),x=i("59Ip"),v=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(E,C){return Math.abs(E-C)<a}var u=[-1,-1,-1],r=[-1,-1];function s(){var E=r[0];r[0]=r[1],r[1]=E}function c(E,C,_,T,S,O,I,F,P,B){if(B>C&&B>T&&B>O&&B>F||B<C&&B<T&&B<O&&B<F)return 0;var k=l.cubicRootAt(C,T,O,F,B,u);if(k===0)return 0;for(var G=0,M=-1,j,K,z=0;z<k;z++){var V=u[z],Q=V===0||V===1?.5:1,X=l.cubicAt(E,_,S,I,V);if(X<P)continue;M<0&&(M=l.cubicExtrema(C,T,O,F,r),r[1]<r[0]&&M>1&&s(),j=l.cubicAt(C,T,O,F,r[0]),M>1&&(K=l.cubicAt(C,T,O,F,r[1]))),M===2?V<r[0]?G+=j<C?Q:-Q:V<r[1]?G+=K<j?Q:-Q:G+=F<K?Q:-Q:V<r[0]?G+=j<C?Q:-Q:G+=F<j?Q:-Q}return G}function h(E,C,_,T,S,O,I,F){if(F>C&&F>T&&F>O||F<C&&F<T&&F<O)return 0;var P=l.quadraticRootAt(C,T,O,F,u);if(P===0)return 0;var B=l.quadraticExtremum(C,T,O);if(B>=0&&B<=1){for(var k=0,G=l.quadraticAt(C,T,O,B),M=0;M<P;M++){var j=u[M]===0||u[M]===1?.5:1,K=l.quadraticAt(E,_,S,u[M]);if(K<I)continue;u[M]<B?k+=G<C?j:-j:k+=O<G?j:-j}return k}else{var j=u[0]===0||u[0]===1?.5:1,K=l.quadraticAt(E,_,S,u[0]);return K<I?0:O<C?j:-j}}function g(E,C,_,T,S,O,I,F){if(F-=C,F>_||F<-_)return 0;var P=Math.sqrt(_*_-F*F);u[0]=-P,u[1]=P;var B=Math.abs(T-S);if(B<1e-4)return 0;if(B%t<1e-4){T=0,S=t;var k=O?1:-1;return I>=u[0]+E&&I<=u[1]+E?k:0}if(O){var P=T;T=d(S),S=d(P)}else T=d(T),S=d(S);T>S&&(S+=t);for(var G=0,M=0;M<2;M++){var j=u[M];if(j+E>I){var K=Math.atan2(F,j),k=O?1:-1;K<0&&(K=t+K),(K>=T&&K<=S||K+t>=T&&K+t<=S)&&(K>Math.PI/2&&K<Math.PI*1.5&&(k=-k),G+=k)}}return G}function A(E,C,_,T,S){for(var O=0,I=0,F=0,P=0,B=0,k=0;k<E.length;){var G=E[k++];G===n.M&&k>1&&(_||(O+=o(I,F,P,B,T,S))),k===1&&(I=E[k],F=E[k+1],P=I,B=F);switch(G){case n.M:P=E[k++],B=E[k++],I=P,F=B;break;case n.L:if(_){if(p.containStroke(I,F,E[k],E[k+1],C,T,S))return!0}else O+=o(I,F,E[k],E[k+1],T,S)||0;I=E[k++],F=E[k++];break;case n.C:if(_){if(x.containStroke(I,F,E[k++],E[k++],E[k++],E[k++],E[k],E[k+1],C,T,S))return!0}else O+=c(I,F,E[k++],E[k++],E[k++],E[k++],E[k],E[k+1],T,S)||0;I=E[k++],F=E[k++];break;case n.Q:if(_){if(v.containStroke(I,F,E[k++],E[k++],E[k],E[k+1],C,T,S))return!0}else O+=h(I,F,E[k++],E[k++],E[k],E[k+1],T,S)||0;I=E[k++],F=E[k++];break;case n.A:var M=E[k++],j=E[k++],K=E[k++],z=E[k++],V=E[k++],Q=E[k++];k+=1;var X=1-E[k++],te=Math.cos(V)*K+M,$=Math.sin(V)*z+j;k>1?O+=o(I,F,te,$,T,S):(P=te,B=$);var le=(T-M)*z/K+M;if(_){if(m.containStroke(M,j,z,V,V+Q,X,C,le,S))return!0}else O+=g(M,j,z,V,V+Q,X,le,S);I=Math.cos(V+Q)*K+M,F=Math.sin(V+Q)*z+j;break;case n.R:P=I=E[k++],B=F=E[k++];var re=E[k++],Se=E[k++],te=P+re,$=B+Se;if(_){if(p.containStroke(P,B,te,B,C,T,S)||p.containStroke(te,B,te,$,C,T,S)||p.containStroke(te,$,P,$,C,T,S)||p.containStroke(P,$,P,B,C,T,S))return!0}else O+=o(te,B,te,$,T,S),O+=o(P,$,P,B,T,S);break;case n.Z:if(_){if(p.containStroke(I,F,P,B,C,T,S))return!0}else O+=o(I,F,P,B,T,S);I=P,F=B;break}}return!_&&!e(F,B)&&(O+=o(I,F,P,B,T,S)||0),O!==0}function b(E,C,_){return A(E,0,!1,C,_)}function w(E,C,_,T){return A(E,C,!0,_,T)}D.contain=b,D.containStroke=w},"2dDv":function(R,D,i){var y=i("bYtY"),p=i("Fofx"),x=i("+TT/"),v=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,E){this._axesMap=y.createHashMap(),this._axesLayout={},this.dimensions=b.dimensions,this._rect,this._model=b,this._init(b,w,E)}s.prototype={type:"parallel",constructor:s,_init:function(b,w,E){var C=b.dimensions,_=b.parallelAxisIndex;o(C,function(T,S){var O=_[S],I=w.getComponent("parallelAxis",O),F=this._axesMap.set(T,new m(T,v.createScaleByModel(I),[0,0],I.get("type"),O)),P=F.type==="category";F.onBand=P&&I.get("boundaryGap"),F.inverse=I.get("inverse"),I.axis=F,F.model=I,F.coordinateSystem=I.coordinateSystem=this},this)},update:function(b,w){this._updateAxesFromSeries(this._model,b)},containPoint:function(b){var w=this._makeLayoutInfo(),E=w.axisBase,C=w.layoutBase,_=w.pixelDimIndex,T=b[1-_],S=b[_];return T>=E&&T<=E+w.axisLength&&S>=C&&S<=C+w.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(b,w){w.eachSeries(function(E){if(!b.contains(E,w))return;var C=E.getData();o(this.dimensions,function(_){var T=this._axesMap.get(_);T.scale.unionExtentFromData(C,C.mapDimension(_)),v.niceScaleExtent(T.scale,T.model)},this)},this)},resize:function(b,w){this._rect=x.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,E=["x","y"],C=["width","height"],_=b.get("layout"),T=_==="horizontal"?0:1,S=w[C[T]],O=[0,S],I=this.dimensions.length,F=c(b.get("axisExpandWidth"),O),P=c(b.get("axisExpandCount")||0,[0,I]),B=b.get("axisExpandable")&&I>3&&I>P&&P>1&&F>0&&S>0,k=b.get("axisExpandWindow"),G;if(k)G=c(k[1]-k[0],O),k[1]=k[0]+G;else{G=c(F*(P-1),O);var M=b.get("axisExpandCenter")||a(I/2);k=[F*M-G/2],k[1]=k[0]+G}var j=(S-G)/(I-P);j<3&&(j=0);var K=[a(u(k[0]/F,1))+1,e(u(k[1]/F,1))-1],z=j/F*k[0];return{layout:_,pixelDimIndex:T,layoutBase:w[E[T]],layoutLength:S,axisBase:w[E[1-T]],axisLength:w[C[1-T]],axisExpandable:B,axisExpandWidth:F,axisCollapseWidth:j,axisExpandWindow:k,axisCount:I,winInnerIndices:K,axisExpandWindow0Pos:z}},_layoutAxes:function(){var b=this._rect,w=this._axesMap,E=this.dimensions,C=this._makeLayoutInfo(),_=C.layout;w.each(function(T){var S=[0,C.axisLength],O=T.inverse?1:0;T.setExtent(S[O],S[1-O])}),o(E,function(T,S){var O=(C.axisExpandable?g:h)(S,C),I={horizontal:{x:O.position,y:C.axisLength},vertical:{x:0,y:O.position}},F={horizontal:r/2,vertical:0},P=[I[_].x+b.x,I[_].y+b.y],B=F[_],k=p.create();p.rotate(k,k,B),p.translate(k,k,P),this._axesLayout[T]={position:P,rotation:B,transform:k,axisNameAvailableWidth:O.axisNameAvailableWidth,axisLabelShow:O.axisLabelShow,nameTruncateMaxWidth:O.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(b){return this._axesMap.get(b)},dataToPoint:function(b,w){return this.axisCoordToPoint(this._axesMap.get(w).dataToCoord(b),w)},eachActiveState:function(b,w,E,C){E==null&&(E=0),C==null&&(C=b.count());var _=this._axesMap,T=this.dimensions,S=[],O=[];y.each(T,function(j){S.push(b.mapDimension(j)),O.push(_.get(j).model)});for(var I=this.hasAxisBrushed(),F=E;F<C;F++){var P;if(!I)P="normal";else{P="active";for(var B=b.getValues(S,F),k=0,G=T.length;k<G;k++){var M=O[k].getActiveState(B[k]);if(M==="inactive"){P="inactive";break}}}w(P,F)}},hasAxisBrushed:function(){for(var b=this.dimensions,w=this._axesMap,E=!1,C=0,_=b.length;C<_;C++)w.get(b[C]).model.getActiveState()!=="normal"&&(E=!0);return E},axisCoordToPoint:function(b,w){var E=this._axesLayout[w];return f.applyTransform([b,0],E.transform)},getAxisLayout:function(b){return y.clone(this._axesLayout[b])},getSlidedAxisExpandWindow:function(b){var w=this._makeLayoutInfo(),E=w.pixelDimIndex,C=w.axisExpandWindow.slice(),_=C[1]-C[0],T=[0,w.axisExpandWidth*(w.axisCount-1)];if(!this.containPoint(b))return{behavior:"none",axisExpandWindow:C};var S=b[E]-w.layoutBase-w.axisExpandWindow0Pos,O,I="slide",F=w.axisCollapseWidth,P=this._model.get("axisExpandSlideTriggerArea"),B=P[0]!=null;if(F)B&&F&&S<_*P[0]?(I="jump",O=S-_*P[2]):B&&F&&S>_*(1-P[0])?(I="jump",O=S-_*(1-P[2])):(O=S-_*P[1])>=0&&(O=S-_*(1-P[1]))<=0&&(O=0),O*=w.axisExpandWidth/F,O?l(O,C,T,"all"):I="none";else{var _=C[1]-C[0],k=T[1]*S/_;C=[t(0,k-_/2)],C[1]=n(T[1],C[0]+_),C[0]=C[1]-_}return{axisExpandWindow:C,behavior:I}}};function c(b,w){return n(t(b,w[0]),w[1])}function h(b,w){var E=w.layoutLength/(w.axisCount-1);return{position:E*b,axisNameAvailableWidth:E,axisLabelShow:!0}}function g(b,w){var E=w.layoutLength,C=w.axisExpandWidth,_=w.axisCount,T=w.axisCollapseWidth,S=w.winInnerIndices,O,I=T,F=!1,P;return b<S[0]?(O=b*T,P=T):b<=S[1]?(O=w.axisExpandWindow0Pos+b*C-w.axisExpandWindow[0],I=C,F=!0):(O=E-(_-1-b)*T,P=T),{position:O,axisNameAvailableWidth:I,axisLabelShow:F,nameTruncateMaxWidth:P}}var A=s;R.exports=A},"2fGM":function(R,D,i){var y=i("bYtY"),p=i("bLfw"),x=i("nkfE"),v=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,v);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")}x("angle",m,d,f.angle),x("radius",m,d,f.radius)},"2fM7":function(R,D,i){"use strict";var y=i("lSNA"),p=i.n(y),x=i("pVnL"),v=i.n(x),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"),A=i("LK+K"),b=i("rePB"),w=i("Ff2n"),E=i("ODXe"),C=i("4IlW"),_=i("bX4T"),T=i("YrtM"),S=i("+nKL"),O=function(ke){var Be=ke.className,it=ke.customizeIcon,yt=ke.customizeIconProps,Tt=ke.onMouseDown,Yt=ke.onClick,Pr=ke.children,$r;return typeof it=="function"?$r=it(yt):$r=it,e.createElement("span",{className:Be,onMouseDown:function(zt){zt.preventDefault(),Tt&&Tt(zt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Yt,"aria-hidden":!0},$r!==void 0?$r:e.createElement("span",{className:s()(Be.split(/\s+/).map(function(An){return"".concat(An,"-icon")}))},Pr))},I=O,F=function(ke,Be){var it=ke.prefixCls,yt=ke.id,Tt=ke.flattenOptions,Yt=ke.childrenAsData,Pr=ke.values,$r=ke.searchValue,An=ke.multiple,zt=ke.defaultActiveFirstOption,At=ke.height,wt=ke.itemHeight,vr=ke.notFoundContent,Jt=ke.open,Ut=ke.menuItemSelectedIcon,tr=ke.virtual,Ft=ke.onSelect,qt=ke.onToggleOpen,Hr=ke.onActiveValue,Nr=ke.onScroll,Dr=ke.onMouseEnter,cn="".concat(it,"-item"),vn=Object(T.a)(function(){return Tt},[Jt,Tt],function(Ze,st){return st[0]&&Ze[1]!==st[1]}),ei=e.useRef(null),qn=function(st){st.preventDefault()},fi=function(st){ei.current&&ei.current.scrollTo({index:st})},xi=function(st){for(var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,pt=vn.length,hr=0;hr<pt;hr+=1){var Zr=(st+hr*xt+pt)%pt,Xr=vn[Zr],pn=Xr.group,gr=Xr.data;if(!pn&&!gr.disabled)return Zr}return-1},Ni=e.useState(function(){return xi(0)}),Hi=Object(E.a)(Ni,2),nt=Hi[0],Ne=Hi[1],He=function(st){Ne(st);var xt=vn[st];if(!xt){Hr(null,-1);return}Hr(xt.data.value,st)};e.useEffect(function(){He(zt!==!1?xi(0):-1)},[vn.length,$r]),e.useEffect(function(){var Ze=setTimeout(function(){if(!An&&Jt&&Pr.size===1){var st=Array.from(Pr)[0],xt=vn.findIndex(function(pt){var hr=pt.data;return hr.value===st});He(xt),fi(xt)}});return function(){return clearTimeout(Ze)}},[Jt]);var Xe=function(st){st!==void 0&&Ft(st,{selected:!Pr.has(st)}),An||qt(!1)};if(e.useImperativeHandle(Be,function(){return{onKeyDown:function(st){var xt=st.which;switch(xt){case C.a.UP:case C.a.DOWN:{var pt=0;if(xt===C.a.UP?pt=-1:xt===C.a.DOWN&&(pt=1),pt!==0){var hr=xi(nt+pt,pt);fi(hr),He(hr)}break}case C.a.ENTER:{var Zr=vn[nt];Zr&&!Zr.data.disabled?Xe(Zr.data.value):Xe(void 0),Jt&&st.preventDefault();break}case C.a.ESC:qt(!1)}},onKeyUp:function(){},scrollTo:function(st){fi(st)}}}),vn.length===0)return e.createElement("div",{role:"listbox",id:"".concat(yt,"_list"),className:"".concat(cn,"-empty"),onMouseDown:qn},vr);function rt(Ze){var st=vn[Ze];if(!st)return null;var xt=st.data||{},pt=xt.value,hr=xt.label,Zr=xt.children,Xr=Object(_.a)(xt,!0),pn=Yt?Zr:hr;return st?e.createElement("div",Object.assign({"aria-label":typeof pn=="string"?pn:null},Xr,{key:Ze,role:"option",id:"".concat(yt,"_list_").concat(Ze),"aria-selected":Pr.has(pt)}),pt):null}return e.createElement(e.Fragment,null,e.createElement("div",{role:"listbox",id:"".concat(yt,"_list"),style:{height:0,width:0,overflow:"hidden"}},rt(nt-1),rt(nt),rt(nt+1)),e.createElement(S.a,{itemKey:"key",ref:ei,data:vn,height:At,itemHeight:wt,fullHeight:!1,onMouseDown:qn,onScroll:Nr,virtual:tr,onMouseEnter:Dr},function(Ze,st){var xt,pt=Ze.group,hr=Ze.groupOption,Zr=Ze.data,Xr=Zr.label,pn=Zr.key;if(pt)return e.createElement("div",{className:s()(cn,"".concat(cn,"-group"))},Xr!==void 0?Xr:pn);var gr=Zr.disabled,Kn=Zr.value,Rr=Zr.title,Pn=Zr.children,an=Zr.style,Ur=Zr.className,ii=Object(w.a)(Zr,["disabled","value","title","children","style","className"]),_i=Pr.has(Kn),Gi="".concat(cn,"-option"),tn=s()(cn,Gi,Ur,(xt={},Object(b.a)(xt,"".concat(Gi,"-grouped"),hr),Object(b.a)(xt,"".concat(Gi,"-active"),nt===st&&!gr),Object(b.a)(xt,"".concat(Gi,"-disabled"),gr),Object(b.a)(xt,"".concat(Gi,"-selected"),_i),xt)),Tn=Yt?Pn:Xr,Vn=!Ut||typeof Ut=="function"||_i;return e.createElement("div",Object.assign({},ii,{"aria-selected":_i,className:tn,title:Rr,onMouseMove:function(){if(nt===st||gr)return;He(st)},onClick:function(){gr||Xe(Kn)},style:an}),e.createElement("div",{className:"".concat(Gi,"-content")},Tn||Kn),e.isValidElement(Ut)||_i,Vn&&e.createElement(I,{className:"".concat(cn,"-option-state"),customizeIcon:Ut,customizeIconProps:{isSelected:_i}},_i?"\u2713":null))}))},P=e.forwardRef(F);P.displayName="OptionList";var B=P,k=function(){return null};k.isSelectOption=!0;var G=k,M=function(){return null};M.isSelectOptGroup=!0;var j=M,K=i("VTBJ"),z=i("Zm9Q");function V(Me){var ke=Me.key,Be=Me.props,it=Be.children,yt=Be.value,Tt=Object(w.a)(Be,["children","value"]);return Object(K.a)({key:ke,value:yt!==void 0?yt:ke,children:it},Tt)}function Q(Me){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(z.a)(Me).map(function(Be,it){if(!e.isValidElement(Be)||!Be.type)return null;var yt=Be.type.isSelectOptGroup,Tt=Be.key,Yt=Be.props,Pr=Yt.children,$r=Object(w.a)(Yt,["children"]);return ke||!yt?V(Be):Object(K.a)(Object(K.a)({key:"__RC_SELECT_GRP__".concat(Tt===null?it:Tt,"__"),label:Tt},$r),{},{options:Q(Pr)})}).filter(function(Be){return Be})}var X=i("KQm4"),te=i("T5bk"),$=i("U8pU"),le=i("Kwbf");function re(Me){return Array.isArray(Me)?Me:Me!==void 0?[Me]:[]}function Se(Me,ke){var Be=ke.labelInValue,it=ke.combobox;if(Me===void 0||Me===""&&it)return[];var yt=Array.isArray(Me)?Me:[Me];return Be?yt.map(function(Tt){var Yt=Tt.key,Pr=Tt.value;return Pr!==void 0?Pr:Yt}):yt}function Re(Me,ke){var Be=ke.optionLabelProp,it=ke.labelInValue,yt=ke.prevValue,Tt=ke.options,Yt=ke.getLabeledValue,Pr=Me;return it&&(Pr=Pr.map(function($r){return Yt($r,{options:Tt,prevValue:yt,labelInValue:it,optionLabelProp:Be})})),Pr}function Pe(Me,ke){var Be=Object(X.a)(ke),it;for(it=Me.length-1;it>=0&&Me[it].disabled;it-=1);var yt=null;return it!==-1&&(yt=Be[it],Be.splice(it,1)),{values:Be,removedValue:yt}}var Je=typeof window!="undefined"&&window.document&&window.document.documentElement,Ge=Je,ct=0;function Ue(){var Me;return Ge?(Me=ct,ct+=1):Me="TEST_OR_SSR",Me}function ae(Me,ke){var Be=Me.key,it;return"value"in Me&&(it=Me.value),Be!=null?Be:it!==void 0?it:"rc-index-key-".concat(ke)}function lt(Me){var ke=[];function Be(it,yt){it.forEach(function(Tt){yt||!("options"in Tt)?ke.push({key:ae(Tt,ke.length),groupOption:yt,data:Tt}):(ke.push({key:ae(Tt,ke.length),group:!0,data:Tt}),Be(Tt.options,!0))})}return Be(Me,!1),ke}function pe(Me){var ke=Object(K.a)({},Me);return"props"in ke||Object.defineProperty(ke,"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`."),ke}}),ke}function J(Me,ke){var Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},it=Be.prevValueOptions,yt=it===void 0?[]:it,Tt=new Map;return ke.forEach(function(Yt){if(!Yt.group){var Pr=Yt.data;Tt.set(Pr.value,Pr)}}),Me.map(function(Yt){var Pr=Tt.get(Yt);return Pr||(Pr=Object(K.a)({},yt.find(function($r){return $r._INTERNAL_OPTION_VALUE_===Yt}))),pe(Pr)})}var Y=function(ke,Be){var it=Be.options,yt=Be.prevValue,Tt=Be.labelInValue,Yt=Be.optionLabelProp,Pr=J([ke],it)[0],$r={value:ke},An,zt=re(yt);return Tt&&(An=zt.find(function(At){return Object($.a)(At)==="object"&&"value"in At?At.value===ke:At.key===ke})),An&&Object($.a)(An)==="object"&&"label"in An?($r.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?$r.label=Pr[Yt]:$r.label=ke,$r.key=$r.value,$r};function ee(Me){return re(Me).join("")}function fe(Me){return function(ke,Be){var it=ke.toLowerCase();if("options"in Be)return ee(Be.label).toLowerCase().includes(it);var yt=Be[Me],Tt=ee(yt).toLowerCase();return Tt.includes(it)}}function we(Me,ke,Be){var it=Be.optionFilterProp,yt=Be.filterOption,Tt=[],Yt;return yt===!1?ke:(typeof yt=="function"?Yt=yt:Yt=fe(it),ke.forEach(function(Pr){if("options"in Pr){var $r=Yt(Me,Pr);if($r)Tt.push(Pr);else{var An=Pr.options.filter(function(zt){return Yt(Me,zt)});An.length&&Tt.push(Object(K.a)(Object(K.a)({},Pr),{},{options:An}))}return}Yt(Me,pe(Pr))&&Tt.push(Pr)}),Tt)}function Ce(Me,ke){if(!ke||!ke.length)return null;var Be=!1;function it(Tt,Yt){var Pr=Object(te.a)(Yt),$r=Pr[0],An=Pr.slice(1);if(!$r)return[Tt];var zt=Tt.split($r);return Be=Be||zt.length>1,zt.reduce(function(At,wt){return[].concat(Object(X.a)(At),Object(X.a)(it(wt,An)))},[]).filter(function(At){return At})}var yt=it(Me,ke);return Be?yt:null}function _e(Me,ke){var Be=J([Me],ke)[0];return Be.disabled}function he(Me,ke,Be,it){var yt=re(ke).slice().sort(),Tt=Object(X.a)(Me),Yt=new Set;return Me.forEach(function(Pr){Pr.options?Pr.options.forEach(function($r){Yt.add($r.value)}):Yt.add(Pr.value)}),yt.forEach(function(Pr){var $r=it?Pr.value:Pr;if(!Yt.has($r)){var An;Tt.push(it?(An={},Object(b.a)(An,Be,Pr.label),Object(b.a)(An,"value",$r),An):{value:$r})}}),Tt}var ye=i("6cGi"),Le=i("HTfv"),tt=i("c+Xe"),gt=function(ke,Be){var it=ke.prefixCls,yt=ke.id,Tt=ke.inputElement,Yt=ke.disabled,Pr=ke.tabIndex,$r=ke.autoFocus,An=ke.autoComplete,zt=ke.editable,At=ke.accessibilityIndex,wt=ke.value,vr=ke.onKeyDown,Jt=ke.onMouseDown,Ut=ke.onChange,tr=ke.onPaste,Ft=ke.onCompositionStart,qt=ke.onCompositionEnd,Hr=ke.open,Nr=ke.attrs,Dr=Tt||e.createElement("input",null),cn=Dr,vn=cn.ref,ei=cn.props,qn=ei.onKeyDown,fi=ei.onChange,xi=ei.onMouseDown,Ni=ei.onCompositionStart,Hi=ei.onCompositionEnd,nt=ei.style;return Dr=e.cloneElement(Dr,Object(K.a)(Object(K.a)({id:yt,ref:Object(tt.a)(Be,vn),disabled:Yt,tabIndex:Pr,autoComplete:An||"off",autoFocus:$r,className:"".concat(it,"-selection-search-input"),style:Object(K.a)(Object(K.a)({},nt),{},{opacity:zt?null:0}),role:"combobox","aria-expanded":Hr,"aria-haspopup":"listbox","aria-owns":"".concat(yt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(yt,"_list"),"aria-activedescendant":"".concat(yt,"_list_").concat(At)},Nr),{},{value:zt?wt:"",readOnly:!zt,unselectable:zt?null:"on",onKeyDown:function(He){vr(He),qn&&qn(He)},onMouseDown:function(He){Jt(He),xi&&xi(He)},onChange:function(He){Ut(He),fi&&fi(He)},onCompositionStart:function(He){Ft(He),Ni&&Ni(He)},onCompositionEnd:function(He){qt(He),Hi&&Hi(He)},onPaste:tr})),Dr},at=e.forwardRef(gt);at.displayName="Input";var Fe=at;function mt(Me,ke){Ge?e.useLayoutEffect(Me,ke):e.useEffect(Me,ke)}var et="__RC_SELECT_MAX_REST_COUNT__",St=function(ke){var Be=ke.id,it=ke.prefixCls,yt=ke.values,Tt=ke.open,Yt=ke.searchValue,Pr=ke.inputRef,$r=ke.placeholder,An=ke.disabled,zt=ke.mode,At=ke.showSearch,wt=ke.autoFocus,vr=ke.autoComplete,Jt=ke.accessibilityIndex,Ut=ke.tabIndex,tr=ke.removeIcon,Ft=ke.choiceTransitionName,qt=ke.maxTagCount,Hr=ke.maxTagTextLength,Nr=ke.maxTagPlaceholder,Dr=Nr===void 0?function(Kn){return"+ ".concat(Kn.length," ...")}:Nr,cn=ke.tagRender,vn=ke.onSelect,ei=ke.onInputChange,qn=ke.onInputPaste,fi=ke.onInputKeyDown,xi=ke.onInputMouseDown,Ni=ke.onInputCompositionStart,Hi=ke.onInputCompositionEnd,nt=e.useState(!1),Ne=Object(E.a)(nt,2),He=Ne[0],Xe=Ne[1],rt=e.useRef(null),Ze=e.useState(0),st=Object(E.a)(Ze,2),xt=st[0],pt=st[1];e.useEffect(function(){Xe(!0)},[]);var hr=Tt||zt==="tags"?Yt:"",Zr=zt==="tags"||Tt&&At;mt(function(){pt(rt.current.scrollWidth)},[hr]);var Xr=yt,pn;typeof qt=="number"&&(pn=yt.length-qt,Xr=yt.slice(0,qt)),typeof Hr=="number"&&(Xr=Xr.map(function(Kn){var Rr=Kn.label,Pn=Object(w.a)(Kn,["label"]),an=Rr;if(typeof Rr=="string"||typeof Rr=="number"){var Ur=String(an);Ur.length>Hr&&(an="".concat(Ur.slice(0,Hr),"..."))}return Object(K.a)(Object(K.a)({},Pn),{},{label:an})})),pn>0&&Xr.push({key:et,label:typeof Dr=="function"?Dr(yt.slice(qt)):Dr});var gr=e.createElement(Le.CSSMotionList,{component:!1,keys:Xr,motionName:Ft,motionAppear:He},function(Kn){var Rr=Kn.key,Pn=Kn.label,an=Kn.value,Ur=Kn.disabled,ii=Kn.className,_i=Kn.style,Gi=Rr||an,tn=Rr!==et&&!Ur,Tn=function(It){It.preventDefault(),It.stopPropagation()},Vn=function(It){It&&It.stopPropagation(),vn(an,{selected:!1})};return typeof cn=="function"?e.createElement("span",{key:Gi,onMouseDown:Tn,className:ii,style:_i},cn({label:Pn,value:an,disabled:Ur,closable:tn,onClose:Vn})):e.createElement("span",{key:Gi,className:s()(ii,"".concat(it,"-selection-item"),Object(b.a)({},"".concat(it,"-selection-item-disabled"),Ur)),style:_i},e.createElement("span",{className:"".concat(it,"-selection-item-content")},Pn),tn&&e.createElement(I,{className:"".concat(it,"-selection-item-remove"),onMouseDown:Tn,onClick:Vn,customizeIcon:tr},"\xD7"))});return e.createElement(e.Fragment,null,gr,e.createElement("span",{className:"".concat(it,"-selection-search"),style:{width:xt}},e.createElement(Fe,{ref:Pr,open:Tt,prefixCls:it,id:Be,inputElement:null,disabled:An,autoFocus:wt,autoComplete:vr,editable:Zr,accessibilityIndex:Jt,value:hr,onKeyDown:fi,onMouseDown:xi,onChange:ei,onPaste:qn,onCompositionStart:Ni,onCompositionEnd:Hi,tabIndex:Ut,attrs:Object(_.a)(ke,!0)}),e.createElement("span",{ref:rt,className:"".concat(it,"-selection-search-mirror"),"aria-hidden":!0},hr,"\xA0")),!yt.length&&!hr&&e.createElement("span",{className:"".concat(it,"-selection-placeholder")},$r))},jt=St,Mt=function(ke){var Be=ke.inputElement,it=ke.prefixCls,yt=ke.id,Tt=ke.inputRef,Yt=ke.disabled,Pr=ke.autoFocus,$r=ke.autoComplete,An=ke.accessibilityIndex,zt=ke.mode,At=ke.open,wt=ke.values,vr=ke.placeholder,Jt=ke.tabIndex,Ut=ke.showSearch,tr=ke.searchValue,Ft=ke.activeValue,qt=ke.onInputKeyDown,Hr=ke.onInputMouseDown,Nr=ke.onInputChange,Dr=ke.onInputPaste,cn=ke.onInputCompositionStart,vn=ke.onInputCompositionEnd,ei=e.useState(!1),qn=Object(E.a)(ei,2),fi=qn[0],xi=qn[1],Ni=zt==="combobox",Hi=Ni||Ut&&At,nt=wt[0],Ne=tr||"";Ni&&Ft&&!fi&&(Ne=Ft),e.useEffect(function(){Ni&&xi(!1)},[Ni,Ft]);var He=zt!=="combobox"&&!At?!1:!!Ne,Xe=nt&&(typeof nt.label=="string"||typeof nt.label=="number")?nt.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(it,"-selection-search")},e.createElement(Fe,{ref:Tt,prefixCls:it,id:yt,open:At,inputElement:Be,disabled:Yt,autoFocus:Pr,autoComplete:$r,editable:Hi,accessibilityIndex:An,value:Ne,onKeyDown:qt,onMouseDown:Hr,onChange:function(Ze){xi(!0),Nr(Ze)},onPaste:Dr,onCompositionStart:cn,onCompositionEnd:vn,tabIndex:Jt,attrs:Object(_.a)(ke,!0)})),!Ni&&nt&&!He&&e.createElement("span",{className:"".concat(it,"-selection-item"),title:Xe},nt.label),!nt&&!He&&e.createElement("span",{className:"".concat(it,"-selection-placeholder")},vr))},Ot=Mt;function Bt(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ke=e.useRef(null),Be=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Be.current)}},[]);function it(yt){(yt||ke.current===null)&&(ke.current=yt),window.clearTimeout(Be.current),Be.current=window.setTimeout(function(){ke.current=null},Me)}return[function(){return ke.current},it]}var Ke=function(ke,Be){var it=Object(e.useRef)(null),yt=Object(e.useRef)(!1),Tt=ke.prefixCls,Yt=ke.multiple,Pr=ke.open,$r=ke.mode,An=ke.showSearch,zt=ke.tokenWithEnter,At=ke.onSearch,wt=ke.onSearchSubmit,vr=ke.onToggleOpen,Jt=ke.onInputKeyDown,Ut=ke.domRef;e.useImperativeHandle(Be,function(){return{focus:function(){it.current.focus()},blur:function(){it.current.blur()}}});var tr=Bt(0),Ft=Object(E.a)(tr,2),qt=Ft[0],Hr=Ft[1],Nr=function(He){var Xe=He.which;(Xe===C.a.UP||Xe===C.a.DOWN)&&He.preventDefault(),Jt&&Jt(He),Xe===C.a.ENTER&&$r==="tags"&&!yt.current&&!Pr&&wt(He.target.value),[C.a.SHIFT,C.a.TAB,C.a.BACKSPACE,C.a.ESC].includes(Xe)||vr(!0)},Dr=function(){Hr(!0)},cn=Object(e.useRef)(null),vn=function(He){At(He,!0,yt.current)!==!1&&vr(!0)},ei=function(){yt.current=!0},qn=function(){yt.current=!1},fi=function(He){var Xe=He.target.value;if(zt&&cn.current&&/[\r\n]/.test(cn.current)){var rt=cn.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Xe=Xe.replace(rt,cn.current)}cn.current=null,vn(Xe)},xi=function(He){var Xe=He.clipboardData,rt=Xe.getData("text");cn.current=rt},Ni=function(He){var Xe=qt();if(He.target!==it.current){Xe||He.preventDefault();var rt=document.body.style.msTouchAction!==void 0;rt?setTimeout(function(){it.current.focus()}):it.current.focus()}($r!=="combobox"&&(!An||!Xe)||!Pr)&&(Pr&&At("",!0,!1),vr())},Hi={inputRef:it,onInputKeyDown:Nr,onInputMouseDown:Dr,onInputChange:fi,onInputPaste:xi,onInputCompositionStart:ei,onInputCompositionEnd:qn},nt=Yt?e.createElement(jt,Object.assign({},ke,Hi)):e.createElement(Ot,Object.assign({},ke,Hi));return e.createElement("div",{ref:Ut,className:"".concat(Tt,"-selector"),onMouseDown:Ni},nt)},de=e.forwardRef(Ke);de.displayName="Selector";var se=de,ut=i("Uaa1"),qe=function(ke){var Be=typeof ke!="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}}}},me=function(ke,Be){var it=ke.prefixCls,yt=ke.disabled,Tt=ke.visible,Yt=ke.children,Pr=ke.popupElement,$r=ke.containerWidth,An=ke.animation,zt=ke.transitionName,At=ke.dropdownStyle,wt=ke.dropdownClassName,vr=ke.direction,Jt=vr===void 0?"ltr":vr,Ut=ke.dropdownMatchSelectWidth,tr=Ut===void 0?!0:Ut,Ft=ke.dropdownRender,qt=ke.dropdownAlign,Hr=ke.getPopupContainer,Nr=ke.empty,Dr=ke.getTriggerDOMNode,cn=Object(w.a)(ke,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),vn="".concat(it,"-dropdown"),ei=Pr;Ft&&(ei=Ft(Pr));var qn=e.useMemo(function(){return qe(tr)},[tr]),fi=An?"".concat(vn,"-").concat(An):zt,xi=e.useRef(null);e.useImperativeHandle(Be,function(){return{getPopupElement:function(){return xi.current}}});var Ni=Object(K.a)({minWidth:$r},At);return typeof tr=="number"?Ni.width=tr:tr&&(Ni.width=$r),e.createElement(ut.a,Object.assign({},cn,{showAction:[],hideAction:[],popupPlacement:Jt==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:qn,prefixCls:vn,popupTransitionName:fi,popup:e.createElement("div",{ref:xi},ei),popupAlign:qt,popupVisible:Tt,getPopupContainer:Hr,popupClassName:s()(wt,Object(b.a)({},"".concat(vn,"-empty"),Nr)),popupStyle:Ni,getTriggerDOMNode:Dr}),Yt)},Wt=e.forwardRef(me);Wt.displayName="SelectTrigger";var dr=Wt,vt="RC_SELECT_INTERNAL_PROPS_MARK";function rr(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ke=e.useState(!1),Be=Object(E.a)(ke,2),it=Be[0],yt=Be[1],Tt=e.useRef(null),Yt=function(){window.clearTimeout(Tt.current)};e.useEffect(function(){return Yt},[]);var Pr=function(An,zt){Yt(),Tt.current=window.setTimeout(function(){yt(An),zt&&zt()},Me)};return[it,Pr,Yt]}function ur(Me,ke,Be){var it=e.useRef(null);it.current={elements:Me.filter(function(yt){return yt}),open:ke,triggerOpen:Be},e.useEffect(function(){function yt(Tt){var Yt=Tt.target;it.current.open&&it.current.elements.every(function(Pr){return!Pr.contains(Yt)&&Pr!==Yt})&&it.current.triggerOpen(!1)}return window.addEventListener("mousedown",yt),function(){return window.removeEventListener("mousedown",yt)}},[])}function mn(Me){var ke=e.useRef(Me),Be=e.useMemo(function(){var it=new Map;ke.current.forEach(function(Tt){var Yt=Tt.value,Pr=Tt.label;Yt!==Pr&&it.set(Yt,Pr)});var yt=Me.map(function(Tt){var Yt=it.get(Tt.value);return Tt.value===Tt.label&&Yt?Object(K.a)(Object(K.a)({},Tt),{},{label:Yt}):Tt});return ke.current=yt,yt},[Me]);return Be}function sr(Me,ke){var Be=e.useRef(null),it=e.useMemo(function(){var Tt=new Map;return ke.forEach(function(Yt){var Pr=Yt.data.value;Tt.set(Pr,Yt)}),Tt},[Me,ke]);Be.current=it;var yt=function(Yt){return Yt.map(function(Pr){return Be.current.get(Pr)}).filter(Boolean)};return yt}var xr=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function pr(Me){var ke=Me.prefixCls,Be=Me.components.optionList,it=Me.convertChildrenToData,yt=Me.flattenOptions,Tt=Me.getLabeledValue,Yt=Me.filterOptions,Pr=Me.isValueDisabled,$r=Me.findValueOption,An=Me.warningProps,zt=Me.fillOptionsWithMissingValue,At=Me.omitDOMProps;function wt(Jt,Ut){var tr,Ft=Jt.prefixCls,qt=Ft===void 0?ke:Ft,Hr=Jt.className,Nr=Jt.id,Dr=Jt.open,cn=Jt.defaultOpen,vn=Jt.options,ei=Jt.children,qn=Jt.mode,fi=Jt.value,xi=Jt.defaultValue,Ni=Jt.labelInValue,Hi=Jt.showSearch,nt=Jt.inputValue,Ne=Jt.searchValue,He=Jt.filterOption,Xe=Jt.optionFilterProp,rt=Xe===void 0?"value":Xe,Ze=Jt.autoClearSearchValue,st=Ze===void 0?!0:Ze,xt=Jt.onSearch,pt=Jt.allowClear,hr=Jt.clearIcon,Zr=Jt.showArrow,Xr=Jt.inputIcon,pn=Jt.menuItemSelectedIcon,gr=Jt.disabled,Kn=Jt.loading,Rr=Jt.defaultActiveFirstOption,Pn=Jt.notFoundContent,an=Pn===void 0?"Not Found":Pn,Ur=Jt.optionLabelProp,ii=Jt.backfill,_i=Jt.getInputElement,Gi=Jt.getPopupContainer,tn=Jt.listHeight,Tn=tn===void 0?200:tn,Vn=Jt.listItemHeight,Xt=Vn===void 0?20:Vn,It=Jt.animation,Pt=Jt.transitionName,Kt=Jt.virtual,Gt=Jt.dropdownStyle,Dt=Jt.dropdownClassName,lr=Jt.dropdownMatchSelectWidth,Ar=Jt.dropdownRender,yr=Jt.dropdownAlign,Mr=Jt.showAction,zn=Mr===void 0?[]:Mr,Rn=Jt.direction,di=Jt.tokenSeparators,gn=Jt.tagRender,Br=Jt.onPopupScroll,_n=Jt.onDropdownVisibleChange,Gn=Jt.onFocus,Zn=Jt.onBlur,ai=Jt.onKeyUp,Ei=Jt.onKeyDown,Ri=Jt.onMouseDown,Di=Jt.onChange,oa=Jt.onSelect,ma=Jt.onDeselect,aa=Jt.onClear,ba=Jt.internalProps,Ai=ba===void 0?{}:ba,Dn=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"]),Bi=Ai.mark===vt,ha=At?At(Dn):Dn;xr.forEach(function(pa){delete ha[pa]});var ta=Object(e.useRef)(null),ra=Object(e.useRef)(null),Ir=Object(e.useRef)(null),Sr=Object(e.useRef)(null),En=Object(e.useMemo)(function(){return(di||[]).some(function(pa){return[`
|
|
|
`,`\r
|
|
|
`].includes(pa)})},[di]),fr=rr(),kr=Object(E.a)(fr,3),Vr=kr[0],un=kr[1],kn=kr[2],_t=Object(e.useState)(),Or=Object(E.a)(_t,2),Lr=Or[0],en=Or[1];Object(e.useEffect)(function(){en("rc_select_".concat(Ue()))},[]);var Sn=Nr||Lr,On=Ur;On===void 0&&(On=vn?"label":"children");var wn=qn==="combobox"?!1:Ni,$n=qn==="tags"||qn==="multiple",jn=Hi!==void 0?Hi:$n||qn==="combobox",pi=Object(e.useRef)(null);e.useImperativeHandle(Ut,function(){return{focus:Ir.current.focus,blur:Ir.current.blur}});var Mi=Object(ye.a)(xi,{value:fi}),yi=Object(E.a)(Mi,2),Oi=yi[0],zi=yi[1],ea=Object(e.useMemo)(function(){return Se(Oi,{labelInValue:wn,combobox:qn==="combobox"})},[Oi,wn]),Xi=Object(e.useMemo)(function(){return new Set(ea)},[ea]),Wi=Object(e.useState)(null),ji=Object(E.a)(Wi,2),Ji=ji[0],ca=ji[1],Ca=Object(e.useState)(""),na=Object(E.a)(Ca,2),Pa=na[0],La=na[1],va=Pa;qn==="combobox"&&Oi!==void 0?va=Oi:Ne!==void 0?va=Ne:nt&&(va=nt);var ga=Object(e.useMemo)(function(){var pa=vn;return pa===void 0&&(pa=it(ei)),qn==="tags"&&zt&&(pa=zt(pa,Oi,On,Ni)),pa||[]},[vn,ei,qn,Oi]),Oa=Object(e.useMemo)(function(){return yt(ga,Jt)},[ga]),Aa=sr(ea,Oa),Xa=Object(e.useMemo)(function(){if(!va||!jn)return Object(X.a)(ga);var pa=Yt(va,ga,{optionFilterProp:rt,filterOption:qn==="combobox"&&He===void 0?function(){return!0}:He});return qn==="tags"&&pa.every(function(Ea){return Ea[rt]!==va})&&pa.unshift({value:va,label:va,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),pa},[ga,va,qn,jn]),_a=Object(e.useMemo)(function(){return yt(Xa,Jt)},[Xa]);Object(e.useEffect)(function(){Sr.current&&Sr.current.scrollTo&&Sr.current.scrollTo(0)},[va]);var Va=Object(e.useMemo)(function(){var pa=ea.map(function(Ea){var Fa=Aa([Ea]),Ka=Tt(Ea,{options:Fa,prevValue:Oi,labelInValue:wn,optionLabelProp:On});return Object(K.a)(Object(K.a)({},Ka),{},{disabled:Pr(Ea,Fa)})});return!qn&&pa.length===1&&pa[0].value===null&&pa[0].label===null?[]:pa},[Oi,ga,qn]);Va=mn(Va);var Pi=function(Ea,Fa,Ka){var lo=Aa([Ea]),so=$r([Ea],lo)[0];if(!Ai.skipTriggerSelect){var Co=wn?Tt(Ea,{options:lo,prevValue:Oi,labelInValue:wn,optionLabelProp:On}):Ea;Fa&&oa?oa(Co,so):!Fa&&ma&&ma(Co,so)}Bi&&(Fa&&Ai.onRawSelect?Ai.onRawSelect(Ea,so,Ka):!Fa&&Ai.onRawDeselect&&Ai.onRawDeselect(Ea,so,Ka))},io=Object(e.useState)([]),oo=Object(E.a)(io,2),Qo=oo[0],mo=oo[1],To=function(Ea){if(Bi&&Ai.skipTriggerChange)return;var Fa=Aa(Ea),Ka=Re(Array.from(Ea),{labelInValue:wn,options:Fa,getLabeledValue:Tt,prevValue:Oi,optionLabelProp:On}),lo=$n?Ka:Ka[0];if(Di&&(ea.length!==0||Ka.length!==0)){var so=$r(Ea,Fa,{prevValueOptions:Qo});mo(so.map(function(Co,Lo){var is=Object(K.a)({},Co);return Object.defineProperty(is,"_INTERNAL_OPTION_VALUE_",{get:function(){return Ea[Lo]}}),is})),Di(lo,$n?so:so[0])}zi(lo)},ao=function(Ea,Fa){var Ka=Fa.selected,lo=Fa.source;if(gr)return;var so;$n?(so=new Set(ea),Ka?so.add(Ea):so.delete(Ea)):(so=new Set,so.add(Ea)),($n||!$n&&Array.from(ea)[0]!==Ea)&&To(Array.from(so)),Pi(Ea,!$n||Ka,lo),qn==="combobox"?(La(String(Ea)),ca("")):(!$n||st)&&(La(""),ca(""))},So=function(Ea,Fa){ao(Ea,Object(K.a)(Object(K.a)({},Fa),{},{source:"option"}))},bo=function(Ea,Fa){ao(Ea,Object(K.a)(Object(K.a)({},Fa),{},{source:"selection"}))},to=qn==="combobox"&&_i&&_i()||null,Jo=Object(ye.a)(void 0,{defaultValue:cn,value:Dr}),Uo=Object(E.a)(Jo,2),wo=Uo[0],ts=Uo[1],Ia=wo,Oo=!an&&!Xa.length;(gr||Oo&&Ia&&qn==="combobox")&&(Ia=!1);var Io=Oo?!1:Ia,os=function(Ea){var Fa=Ea!==void 0?Ea:!Ia;wo!==Fa&&!gr&&(ts(Fa),_n&&_n(Fa))};ur([ta.current,ra.current&&ra.current.getPopupElement()],Io,os);var xo=function(Ea,Fa,Ka){var lo=!0,so=Ea;ca(null);var Co=Ka?null:Ce(Ea,di),Lo=Co;if(qn==="combobox")Fa&&To([so]);else if(Co){so="",qn!=="tags"&&(Lo=Co.map(function(cs){var Rs=Oa.find(function(Ko){var as=Ko.data;return as[On]===cs});return Rs?Rs.data.value:null}).filter(function(cs){return cs!==null}));var is=Array.from(new Set([].concat(Object(X.a)(ea),Object(X.a)(Lo))));To(is),is.forEach(function(cs){Pi(cs,!0,"input")}),os(!1),lo=!1}return La(so),xt&&va!==so&&xt(so),lo},rs=function(Ea){var Fa=Array.from(new Set([].concat(Object(X.a)(ea),[Ea])));To(Fa),Fa.forEach(function(Ka){Pi(Ka,!0,"input")}),La("")};Object(e.useEffect)(function(){wo&&!!gr&&ts(!1)},[gr]),Object(e.useEffect)(function(){!Ia&&!$n&&qn!=="combobox"&&xo("",!1,!1)},[Ia]);var Ho=Bt(),_o=Object(E.a)(Ho,2),uo=_o[0],Ha=_o[1],ft=function(Ea){var Fa=uo(),Ka=Ea.which;if(!Ia&&Ka===C.a.ENTER&&os(!0),Ha(!!va),Ka===C.a.BACKSPACE&&!Fa&&$n&&!va&&ea.length){var lo=Pe(Va,ea);lo.removedValue!==null&&(To(lo.values),Pi(lo.removedValue,!1,"input"))}for(var so=arguments.length,Co=new Array(so>1?so-1:0),Lo=1;Lo<so;Lo++)Co[Lo-1]=arguments[Lo];if(Ia&&Sr.current){var is;(is=Sr.current).onKeyDown.apply(is,[Ea].concat(Co))}Ei&&Ei.apply(void 0,[Ea].concat(Co))},Tr=function(Ea){for(var Fa=arguments.length,Ka=new Array(Fa>1?Fa-1:0),lo=1;lo<Fa;lo++)Ka[lo-1]=arguments[lo];if(Ia&&Sr.current){var so;(so=Sr.current).onKeyUp.apply(so,[Ea].concat(Ka))}ai&&ai.apply(void 0,[Ea].concat(Ka))},qr=Object(e.useRef)(!1),Yr=function(){un(!0),gr||(Gn&&!qr.current&&Gn.apply(void 0,arguments),zn.includes("focus")&&os(!0)),qr.current=!0},Yn=function(){if(un(!1,function(){qr.current=!1,os(!1)}),gr)return;va&&(qn==="tags"?(xo("",!1,!1),To(Array.from(new Set([].concat(Object(X.a)(ea),[va]))))):qn==="multiple"&&La("")),Zn&&Zn.apply(void 0,arguments)},dn=[];Object(e.useEffect)(function(){return function(){dn.forEach(function(pa){return clearTimeout(pa)}),dn.splice(0,dn.length)}},[]);var Gr=function(Ea){var Fa=Ea.target,Ka=ra.current&&ra.current.getPopupElement();if(Ka&&Ka.contains(Fa)){var lo=setTimeout(function(){var is=dn.indexOf(lo);is!==-1&&dn.splice(is,1),kn(),Ka.contains(document.activeElement)||Ir.current.focus()});dn.push(lo)}if(Ri){for(var so=arguments.length,Co=new Array(so>1?so-1:0),Lo=1;Lo<so;Lo++)Co[Lo-1]=arguments[Lo];Ri.apply(void 0,[Ea].concat(Co))}},ri=Object(e.useState)(0),rn=Object(E.a)(ri,2),Hn=rn[0],li=rn[1],ci=Rr!==void 0?Rr:qn!=="combobox",si=function(Ea,Fa){li(Fa),ii&&qn==="combobox"&&Ea!==null&&ca(String(Ea))},Ti=Object(e.useState)(null),mi=Object(E.a)(Ti,2),vi=mi[0],Li=mi[1],ia=Object(e.useState)({}),Ki=Object(E.a)(ia,2),fa=Ki[1];function Ya(){fa({})}mt(function(){if(Io){var pa=Math.ceil(ta.current.offsetWidth);vi!==pa&&Li(pa)}},[Io]);var xa=e.createElement(Be,{ref:Sr,prefixCls:qt,id:Sn,open:Ia,childrenAsData:!vn,options:Xa,flattenOptions:_a,multiple:$n,values:Xi,height:Tn,itemHeight:Xt,onSelect:So,onToggleOpen:os,onActiveValue:si,defaultActiveFirstOption:ci,notFoundContent:an,onScroll:Br,searchValue:va,menuItemSelectedIcon:pn,virtual:Kt!==!1&&lr!==!1,onMouseEnter:Ya}),wa,Da=function(){Bi&&Ai.onClear&&Ai.onClear(),aa&&aa(),To([]),xo("",!1,!1)};!gr&&pt&&(ea.length||va)&&(wa=e.createElement(I,{className:"".concat(qt,"-clear"),onMouseDown:Da,customizeIcon:hr},"\xD7"));var ja=Zr!==void 0?Zr:Kn||!$n&&qn!=="combobox",ko;ja&&(ko=e.createElement(I,{className:s()("".concat(qt,"-arrow"),Object(b.a)({},"".concat(qt,"-arrow-loading"),Kn)),customizeIcon:Xr,customizeIconProps:{loading:Kn,searchValue:va,open:Ia,focused:Vr,showSearch:jn}}));var ro=s()(qt,Hr,(tr={},Object(b.a)(tr,"".concat(qt,"-focused"),Vr),Object(b.a)(tr,"".concat(qt,"-multiple"),$n),Object(b.a)(tr,"".concat(qt,"-single"),!$n),Object(b.a)(tr,"".concat(qt,"-allow-clear"),pt),Object(b.a)(tr,"".concat(qt,"-show-arrow"),ja),Object(b.a)(tr,"".concat(qt,"-disabled"),gr),Object(b.a)(tr,"".concat(qt,"-loading"),Kn),Object(b.a)(tr,"".concat(qt,"-open"),Ia),Object(b.a)(tr,"".concat(qt,"-customize-input"),to),Object(b.a)(tr,"".concat(qt,"-show-search"),jn),tr));return e.createElement("div",Object.assign({className:ro},ha,{ref:ta,onMouseDown:Gr,onKeyDown:ft,onKeyUp:Tr,onFocus:Yr,onBlur:Yn}),Vr&&!Ia&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ea.join(", "))),e.createElement(dr,{ref:ra,disabled:gr,prefixCls:qt,visible:Io,popupElement:xa,containerWidth:vi,animation:It,transitionName:Pt,dropdownStyle:Gt,dropdownClassName:Dt,direction:Rn,dropdownMatchSelectWidth:lr,dropdownRender:Ar,dropdownAlign:yr,getPopupContainer:Gi,empty:!ga.length,getTriggerDOMNode:function(){return pi.current}},e.createElement(se,Object.assign({},Jt,{domRef:pi,prefixCls:qt,inputElement:to,ref:Ir,id:Sn,showSearch:jn,mode:qn,accessibilityIndex:Hn,multiple:$n,tagRender:gn,values:Va,open:Ia,onToggleOpen:os,searchValue:va,activeValue:Ji,onSearch:xo,onSearchSubmit:rs,onSelect:bo,tokenWithEnter:En}))),ko,wa)}var vr=e.forwardRef(wt);return vr}function Zt(Me){var ke=Me.mode,Be=Me.options,it=Me.children,yt=Me.backfill,Tt=Me.allowClear,Yt=Me.placeholder,Pr=Me.getInputElement,$r=Me.showSearch,An=Me.onSearch,zt=Me.defaultOpen,At=Me.autoFocus,wt=Me.labelInValue,vr=Me.value,Jt=Me.inputValue,Ut=Me.optionLabelProp,tr=ke==="multiple"||ke==="tags",Ft=$r!==void 0?$r:tr||ke==="combobox",qt=Be||Q(it);if(Object(le.a)(ke!=="tags"||qt.every(function(cn){return!cn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ke==="tags"||ke==="combobox"){var Hr=qt.some(function(cn){return cn.options?cn.options.some(function(vn){return typeof("value"in vn?vn.value:vn.key)=="number"}):typeof("value"in cn?cn.value:cn.key)=="number"});Object(le.a)(!Hr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(le.a)(ke!=="combobox"||!Ut,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(le.a)(ke==="combobox"||!yt,"`backfill` only works with `combobox` mode."),Object(le.a)(ke==="combobox"||!Pr,"`getInputElement` only work with `combobox` mode."),Object(le.b)(ke!=="combobox"||!Pr||!Tt||!Yt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),An&&!Ft&&ke!=="combobox"&&ke!=="tags"&&Object(le.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(le.b)(!zt||At,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),vr!=null){var Nr=re(vr);Object(le.a)(!wt||Nr.every(function(cn){return Object($.a)(cn)==="object"&&("key"in cn||"value"in cn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(le.a)(!tr||Array.isArray(vr),"`value` should be array when `mode` is `multiple` or `tags`")}if(it){var Dr=null;Object(z.a)(it).some(function(cn){if(!e.isValidElement(cn)||!cn.type)return!1;var vn=cn.type;if(vn.isSelectOption)return!1;if(vn.isSelectOptGroup){var ei=Object(z.a)(cn.props.children).every(function(qn){return!e.isValidElement(qn)||!cn.type||qn.type.isSelectOption?!0:(Dr=qn.type,!1)});return!ei}return Dr=vn,!0}),Dr&&Object(le.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Dr.displayName||Dr.name||Dr,"`.")),Object(le.a)(Jt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var Ct=Zt,on=pr({prefixCls:"rc-select",components:{optionList:B},convertChildrenToData:Q,flattenOptions:lt,getLabeledValue:Y,filterOptions:we,isValueDisabled:_e,findValueOption:J,warningProps:Ct,fillOptionsWithMissingValue:he}),Mn=function(Me){Object(g.a)(Be,Me);var ke=Object(A.a)(Be);function Be(){var it;return Object(c.a)(this,Be),it=ke.apply(this,arguments),it.selectRef=e.createRef(),it.focus=function(){it.selectRef.current.focus()},it.blur=function(){it.selectRef.current.blur()},it}return Object(h.a)(Be,[{key:"render",value:function(){return e.createElement(on,Object.assign({ref:this.selectRef},this.props))}}]),Be}(e.Component);Mn.Option=G,Mn.OptGroup=j;var Xn=Mn,oi=Xn,Ui=i("H84U"),Un=i("1vzs"),Qn=i("3Nzz"),$t=function(Me){n()(Be,Me);var ke=a()(Be);function Be(){var it;return f()(this,Be),it=ke.apply(this,arguments),it.selectRef=e.createRef(),it.focus=function(){it.selectRef.current&&it.selectRef.current.focus()},it.blur=function(){it.selectRef.current&&it.selectRef.current.blur()},it.getMode=function(){var yt=it.props.mode;return yt==="combobox"?void 0:yt===Be.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":yt},it.renderSelect=function(yt){var Tt=yt.getPopupContainer,Yt=yt.getPrefixCls,Pr=yt.renderEmpty,$r=yt.direction,An=yt.virtual,zt=yt.dropdownMatchSelectWidth,At=it.props,wt=At.prefixCls,vr=At.notFoundContent,Jt=At.className,Ut=At.size,tr=At.listHeight,Ft=tr===void 0?256:tr,qt=At.listItemHeight,Hr=qt===void 0?24:qt,Nr=At.getPopupContainer,Dr=At.dropdownClassName,cn=At.bordered,vn=Yt("select",wt),ei=it.getMode(),qn=ei==="multiple"||ei==="tags",fi;vr!==void 0?fi=vr:ei==="combobox"?fi=null:fi=Pr("Select");var xi=Object(Un.a)(v()(v()({},it.props),{multiple:qn,prefixCls:vn})),Ni=xi.suffixIcon,Hi=xi.itemIcon,nt=xi.removeIcon,Ne=xi.clearIcon,He=Object(u.default)(it.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),Xe=s()(Dr,p()({},"".concat(vn,"-dropdown-").concat($r),$r==="rtl"));return e.createElement(Qn.b.Consumer,null,function(rt){var Ze,st=Ut||rt,xt=s()(Jt,(Ze={},p()(Ze,"".concat(vn,"-lg"),st==="large"),p()(Ze,"".concat(vn,"-sm"),st==="small"),p()(Ze,"".concat(vn,"-rtl"),$r==="rtl"),p()(Ze,"".concat(vn,"-borderless"),!cn),Ze));return e.createElement(oi,v()({ref:it.selectRef,virtual:An,dropdownMatchSelectWidth:zt},He,{listHeight:Ft,listItemHeight:Hr,mode:ei,prefixCls:vn,direction:$r,inputIcon:Ni,menuItemSelectedIcon:Hi,removeIcon:nt,clearIcon:Ne,notFoundContent:fi,className:xt,getPopupContainer:Nr||Tt,dropdownClassName:Xe}))})},it}return l()(Be,[{key:"render",value:function(){return e.createElement(Ui.a,null,this.renderSelect)}}]),Be}(e.Component);$t.Option=G,$t.OptGroup=j,$t.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",$t.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var Nt=D.a=$t},"2fw6":function(R,D,i){var y=i("y+Vt"),p=y.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(v,m,f){f&&v.moveTo(m.cx+m.r,m.cy),v.arc(m.cx,m.cy,m.r,0,Math.PI*2,!0)}});R.exports=p},"2gN3":function(R,D,i){var y=i("Kz5y"),p=y["__core-js_shared__"];R.exports=p},"2jpz":function(R,D,i){"use strict";i.d(D,"a",function(){return h});var y=i("cDf5"),p=i.n(y),x=i("q1tI"),v=i.n(x),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,A,b,w){var E=w.isLeaf,C=w.expanded,_=w.loading;if(_)return x.createElement(l.a,{className:"".concat(g,"-switcher-loading-icon")});var T;if(b&&p()(b)==="object"&&(T=b.showLeafIcon),E)return b?p()(b)==="object"&&!T?x.createElement("span",{className:"".concat(g,"-switcher-leaf-line")}):x.createElement(n.a,{className:"".concat(g,"-switcher-line-icon")}):null;var S="".concat(g,"-switcher-icon");return Object(c.b)(A)?Object(c.a)(A,{className:f()(A.props.className||"",S)}):A||(b?C?x.createElement(a.a,{className:"".concat(g,"-switcher-line-icon")}):x.createElement(u.a,{className:"".concat(g,"-switcher-line-icon")}):x.createElement(s.a,{className:S}))}},"2oIt":function(R,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(R,D,i){var y=i("ProS");i("ko1b"),i("s2lz"),i("RBEP");var p=i("kMLO"),x=i("nKiI");y.registerVisual(p),y.registerLayout(x)},"2w7y":function(R,D,i){var y=i("ProS");i("qMZE"),i("g0SD"),y.registerPreprocessor(function(p){p.markPoint=p.markPoint||{}})},"33Ds":function(R,D,i){var y=i("ProS"),p=i("b9oc"),x=i("Kagy"),v=i("IUWy"),m=x.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})},v.register("restore",f),y.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(o,n){n.resetOption("recreate")});var l=f;R.exports=l},"34/K":function(R,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 x(m,f,d){return f&&p(m.prototype,f),d&&p(m,d),m}var v=function(){function m(){y(this,m),this._lines=0}return x(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 A=o*c,b=new Uint8Array(A*4),w=0;w<A;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=v},"3690":function(R,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=v(i("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return x=function(){return o},o}function v(o){if(o&&o.__esModule)return o;if(o===null||y(o)!=="object"&&typeof o!="function")return{default:o};var n=x();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,A=r.rQi,b=g[A];if(b>30)throw new Error("Illegal hextile subencoding (subencoding: "+b+")");var w=this._totalTiles-this._tiles,E=w%this._tilesX,C=Math.floor(w/this._tilesX),_=t+E*16,T=a+C*16,S=Math.min(16,t+e-_),O=Math.min(16,a+u-T);if(b&1)h+=S*O*4;else if(b&2&&(h+=4),b&4&&(h+=4),b&8){if(h++,r.rQwait("HEXTILE",h))return!1;var I=g[A+h-1];b&16?h+=I*(4+2):h+=I*2}if(r.rQwait("HEXTILE",h))return!1;if(A++,b===0)this._lastsubencoding&1?p.Debug(" Ignoring blank after RAW"):s.fillRect(_,T,S,O,this._background);else if(b&1)s.blitImage(_,T,S,O,g,A),A+=h-1;else{if(b&2&&(this._background=[g[A],g[A+1],g[A+2],g[A+3]],A+=4),b&4&&(this._foreground=[g[A],g[A+1],g[A+2],g[A+3]],A+=4),s.startTile(_,T,S,O,this._background),b&8){var F=g[A];A++;for(var P=0;P<F;P++){var B=void 0;b&16?(B=[g[A],g[A+1],g[A+2],g[A+3]],A+=4):B=this._foreground;var k=g[A];A++;var G=k>>4,M=k&15,j=g[A];A++;var K=(j>>4)+1,z=(j&15)+1;s.subTile(G,M,K,z,B)}}s.finishTile()}r.rQi=A,this._lastsubencoding=b,this._tiles--}return!0}}]),o}();D.default=l},"3A9y":function(R,D){function i(y){return this.__data__.has(y)}R.exports=i},"3C/r":function(R,D){var i=function(x,v){this.image=x,this.repeat=v,this.type="pattern"};i.prototype.getCanvasPattern=function(p){return p.createPattern(this.image,this.repeat||"repeat")};var y=i;R.exports=y},"3CBa":function(R,D,i){var y=i("hydK"),p=y.createElement,x=i("bYtY"),v=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(S){return parseInt(S,10)}function c(S){return S instanceof m?e:S instanceof f?u:S instanceof d?r:e}function h(S,O){return O&&S&&O.parentNode!==S}function g(S,O,I){if(h(S,O)&&I){var F=I.nextSibling;F?S.insertBefore(O,F):S.appendChild(O)}}function A(S,O){if(h(S,O)){var I=S.firstChild;I?S.insertBefore(O,I):S.appendChild(O)}}function b(S,O){O&&S&&O.parentNode===S&&S.removeChild(O)}function w(S){return S.__textSvgEl}function E(S){return S.__svgEl}var C=function(O,I,F,P){this.root=O,this.storage=I,this._opts=F=x.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 k=p("g");B.appendChild(k);var G=p("g");B.appendChild(G),this.gradientManager=new o(P,G),this.clipPathManager=new n(P,G),this.shadowManager=new t(P,G);var M=document.createElement("div");M.style.cssText="overflow:hidden;position:relative",this._svgDom=B,this._svgRoot=G,this._backgroundRoot=k,this._viewport=M,O.appendChild(M),M.appendChild(B),this.resize(F.width,F.height),this._visibleList=[]};C.prototype={constructor:C,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var O=this.getViewportRoot();if(O)return{offsetLeft:O.offsetLeft||0,offsetTop:O.offsetTop||0}},refresh:function(){var O=this.storage.getDisplayList(!0);this._paintList(O)},setBackgroundColor:function(O){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var I=p("rect");I.setAttribute("width",this.getWidth()),I.setAttribute("height",this.getHeight()),I.setAttribute("x",0),I.setAttribute("y",0),I.setAttribute("id",0),I.style.fill=O,this._backgroundRoot.appendChild(I),this._backgroundNode=I},_paintList:function(O){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var I=this._svgRoot,F=this._visibleList,P=O.length,B=[],k;for(k=0;k<P;k++){var G=O[k],M=c(G),j=E(G)||w(G);G.invisible||(G.__dirty&&(M&&M.brush(G),this.clipPathManager.update(G),G.style&&(this.gradientManager.update(G.style.fill),this.gradientManager.update(G.style.stroke),this.shadowManager.update(j,G)),G.__dirty=!1),B.push(G))}var K=l(F,B),z;for(k=0;k<K.length;k++){var V=K[k];if(V.removed)for(var Q=0;Q<V.count;Q++){var G=F[V.indices[Q]],j=E(G),X=w(G);b(I,j),b(I,X)}}for(k=0;k<K.length;k++){var V=K[k];if(V.added)for(var Q=0;Q<V.count;Q++){var G=B[V.indices[Q]],j=E(G),X=w(G);z?g(I,j,z):A(I,j),j?g(I,X,j):z?g(I,X,z):A(I,X),g(I,X,j),z=X||j||z,this.gradientManager.addWithoutUpdate(j||X,G),this.shadowManager.addWithoutUpdate(j||X,G),this.clipPathManager.markUsed(G)}else if(!V.removed)for(var Q=0;Q<V.count;Q++){var G=B[V.indices[Q]],j=E(G),X=w(G),j=E(G),X=w(G);this.gradientManager.markUsed(G),this.gradientManager.addWithoutUpdate(j||X,G),this.shadowManager.markUsed(G),this.shadowManager.addWithoutUpdate(j||X,G),this.clipPathManager.markUsed(G),X&&g(I,X,j),z=j||X||z}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=B},_getDefs:function(O){var I=this._svgDom,F=I.getElementsByTagName("defs");if(F.length===0)if(O){var F=I.insertBefore(p("defs"),I.firstChild);return F.contains||(F.contains=function(B){var k=F.children;if(!k)return!1;for(var G=k.length-1;G>=0;--G)if(k[G]===B)return!0;return!1}),F}else return null;else return F[0]},resize:function(O,I){var F=this._viewport;F.style.display="none";var P=this._opts;if(O!=null&&(P.width=O),I!=null&&(P.height=I),O=this._getSize(0),I=this._getSize(1),F.style.display="",this._width!==O||this._height!==I){this._width=O,this._height=I;var B=F.style;B.width=O+"px",B.height=I+"px";var k=this._svgDom;k.setAttribute("width",O),k.setAttribute("height",I)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",O),this._backgroundNode.setAttribute("height",I))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(O){var I=this._opts,F=["width","height"][O],P=["clientWidth","clientHeight"][O],B=["paddingLeft","paddingTop"][O],k=["paddingRight","paddingBottom"][O];if(I[F]!=null&&I[F]!=="auto")return parseFloat(I[F]);var G=this.root,M=document.defaultView.getComputedStyle(G);return(G[P]||s(M[F])||s(G.style[F]))-(s(M[B])||0)-(s(M[k])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var O=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
|
|
|
\r<`));return"data:image/svg+xml;charset=UTF-8,"+O}};function _(S){return function(){v('In SVG mode painter not support method "'+S+'"')}}x.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(S){C.prototype[S]=_(S)});var T=C;R.exports=T},"3Fdi":function(R,D){var i=Function.prototype,y=i.toString;function p(x){if(x!=null){try{return y.call(x)}catch(v){}try{return x+""}catch(v){}}return""}R.exports=p},"3LNs":function(R,D,i){var y=i("bYtY"),p=i("Yl7c"),x=i("IwbS"),v=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,A,b,w){var E=A.get("value"),C=A.get("status");if(this._axisModel=g,this._axisPointerModel=A,this._api=b,!w&&this._lastValue===E&&this._lastStatus===C)return;this._lastValue=E,this._lastStatus=C;var _=this._group,T=this._handle;if(!C||C==="hide"){_&&_.hide(),T&&T.hide();return}_&&_.show(),T&&T.show();var S={};this.makeElOption(S,E,g,A,b);var O=S.graphicKey;O!==this._lastGraphicKey&&this.clear(b),this._lastGraphicKey=O;var I=this._moveAnimation=this.determineAnimation(g,A);if(!_)_=this._group=new x.Group,this.createPointerEl(_,S,g,A),this.createLabelEl(_,S,g,A),b.getZr().add(_);else{var F=y.curry(e,A,I);this.updatePointerEl(_,S,F,A),this.updateLabelEl(_,S,F,A)}c(_,A,!0),this._renderHandle(E)},remove:function(g){this.clear(g)},dispose:function(g){this.clear(g)},determineAnimation:function(g,A){var b=A.get("animation"),w=g.axis,E=w.type==="category",C=A.get("snap");if(!C&&!E)return!1;if(b==="auto"||b==null){var _=this.animationThreshold;if(E&&w.getBandWidth()>_)return!0;if(C){var T=v.getAxisInfo(g).seriesDataCount,S=w.getExtent();return Math.abs(S[0]-S[1])/T>_}return!1}return b===!0},makeElOption:function(g,A,b,w,E){},createPointerEl:function(g,A,b,w){var E=A.pointer;if(E){var C=o(g).pointerEl=new x[E.type](n(A.pointer));g.add(C)}},createLabelEl:function(g,A,b,w){if(A.label){var E=o(g).labelEl=new x.Rect(n(A.label));g.add(E),r(E,w)}},updatePointerEl:function(g,A,b){var w=o(g).pointerEl;w&&A.pointer&&(w.setStyle(A.pointer.style),b(w,{shape:A.pointer.shape}))},updateLabelEl:function(g,A,b,w){var E=o(g).labelEl;E&&(E.setStyle(A.label.style),b(E,{shape:A.label.shape,position:A.label.position}),r(E,w))},_renderHandle:function(g){if(this._dragging||!this.updateHandleTransform)return;var A=this._axisPointerModel,b=this._api.getZr(),w=this._handle,E=A.getModel("handle"),C=A.get("status");if(!E.get("show")||!C||C==="hide"){w&&b.remove(w),this._handle=null;return}var _;this._handle||(_=!0,w=this._handle=x.createIcon(E.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(O){m.stop(O.event)},onmousedown:t(this._onHandleDragMove,this,0,0),drift:t(this._onHandleDragMove,this),ondragend:t(this._onHandleDragEnd,this)}),b.add(w)),c(w,A,!1);var T=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];w.setStyle(E.getItemStyle(null,T));var S=E.get("size");y.isArray(S)||(S=[S,S]),w.attr("scale",[S[0]/2,S[1]/2]),f.createOrUpdate(this,"_doDispatchAxisPointer",E.get("throttle")||0,"fixRate"),this._moveHandleToValue(g,_)},_moveHandleToValue:function(g,A){e(this._axisPointerModel,!A&&this._moveAnimation,this._handle,s(this.getHandleTransform(g,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(g,A){var b=this._handle;if(!b)return;this._dragging=!0;var w=this.updateHandleTransform(s(b),[g,A],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 A=this._payloadInfo,b=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:A.cursorPoint[0],y:A.cursorPoint[1],tooltipOption:A.tooltipOption,axesInfo:[{axisDim:b.axis.dim,axisIndex:b.componentIndex}]})},_onHandleDragEnd:function(g){this._dragging=!1;var A=this._handle;if(!A)return;var b=this._axisPointerModel.get("value");this._moveHandleToValue(b),this._api.dispatchAction({type:"hideTip"})},getHandleTransform:null,updateHandleTransform:null,clear:function(g){this._lastValue=null,this._lastStatus=null;var A=g.getZr(),b=this._group,w=this._handle;A&&b&&(this._lastGraphicKey=null,b&&A.remove(b),w&&A.remove(w),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(g,A,b){return b=b||0,{x:g[b],y:g[1-b],width:A[b],height:A[1-b]}}},a.prototype.constructor=a;function e(g,A,b,w){u(o(b).lastProp,w)||(o(b).lastProp=w,A?x.updateProps(b,w,g):(b.stopAnimation(),b.attr(w)))}function u(g,A){if(y.isObject(g)&&y.isObject(A)){var b=!0;return y.each(A,function(w,E){b=b&&u(g[E],w)}),!!b}else return g===A}function r(g,A){g[A.get("label.show")?"show":"hide"]()}function s(g){return{position:g.position.slice(),rotation:g.rotation||0}}function c(g,A,b){var w=A.get("z"),E=A.get("zlevel");g&&g.traverse(function(C){C.type!=="group"&&(w!=null&&(C.z=w),E!=null&&(C.zlevel=E),C.silent=b)})}p.enableClassExtend(a);var h=a;R.exports=h},"3OrL":function(R,D,i){var y=i("bYtY"),p=i("6Ic6"),x=i("IwbS"),v=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(A){if(s.hasValue(A)){var b=s.getItemLayout(A),w=o(b,s,A,g,!0);s.setItemGraphicEl(A,w),c.add(w)}}).update(function(A,b){var w=h.getItemGraphicEl(b);if(!s.hasValue(A)){c.remove(w);return}var E=s.getItemLayout(A);w?n(E,w,s,A):w=o(E,s,A,g),c.add(w),s.setItemGraphicEl(A,w)}).remove(function(A){var b=h.getItemGraphicEl(A);b&&c.remove(b)}).execute(),this._data=s},remove:function(e){var u=this.group,r=this._data;this._data=null,r&&r.eachItemGraphicEl(function(s){s&&u.remove(s)})},dispose:y.noop}),l=v.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=x[c?"initProps":"updateProps"];g(u,{shape:{points:e.ends}},h,s);var A=r.getItemModel(s),b=A.getModel(m),w=r.getItemVisual(s,"color"),E=b.getItemStyle(["borderColor"]);E.stroke=w,E.strokeNoScale=!0,u.useStyle(E),u.z2=100;var C=A.getModel(f).getItemStyle();x.setHoverStyle(u,C)}function t(e,u,r){return y.map(e,function(s){return s=s.slice(),s[u]=r.initBaseline,s})}var a=d;R.exports=a},"3S7+":function(R,D,i){"use strict";var y=i("lSNA"),p=i.n(y),x=i("J4zp"),v=i.n(x),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"),A=i("m+aA"),b=i("c+Xe"),w=i("zT1h"),E=i("QC+M"),C=i("TSYQ"),_=i.n(C);function T(Un,Qn,$t){return $t?Un[0]===Qn[0]:Un[0]===Qn[0]&&Un[1]===Qn[1]}function S(Un,Qn,$t){var Nt=Un[Qn]||{};return Object(n.a)(Object(n.a)({},Nt),$t)}function O(Un,Qn,$t,Nt){for(var Me=$t.points,ke=Object.keys(Un),Be=0;Be<ke.length;Be+=1){var it=ke[Be];if(T(Un[it].points,Me,Nt))return"".concat(Qn,"-placement-").concat(it)}return""}var I=i("xEkU"),F=i.n(I),P=i("9mu1"),B=i("rePB"),k=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function G(Un,Qn){var $t={};return $t[Un.toLowerCase()]=Qn.toLowerCase(),$t["Webkit".concat(Un)]="webkit".concat(Qn),$t["Moz".concat(Un)]="moz".concat(Qn),$t["ms".concat(Un)]="MS".concat(Qn),$t["O".concat(Un)]="o".concat(Qn.toLowerCase()),$t}function M(Un,Qn){var $t={animationend:G("Animation","AnimationEnd"),transitionend:G("Transition","TransitionEnd")};return Un&&("AnimationEvent"in Qn||delete $t.animationend.animation,"TransitionEvent"in Qn||delete $t.transitionend.transition),$t}var j=M(k,typeof window!="undefined"?window:{}),K={};if(k){var z=document.createElement("div");K=z.style}var V={};function Q(Un){if(V[Un])return V[Un];var Qn=j[Un];if(Qn)for(var $t=Object.keys(Qn),Nt=$t.length,Me=0;Me<Nt;Me+=1){var ke=$t[Me];if(Object.prototype.hasOwnProperty.call(Qn,ke)&&ke in K)return V[Un]=Qn[ke],V[Un]}return""}var X=Q("animationend"),te=Q("transitionend"),$=!!(X&&te);function le(Un,Qn){if(!Un)return null;if(Object(o.a)(Un)==="object"){var $t=Qn.replace(/-\w/g,function(Nt){return Nt[1].toUpperCase()});return Un[$t]}return"".concat(Un,"-").concat(Qn)}var re="none",Se="appear",Re="enter",Pe="leave";function Je(Un){var Qn=Un,$t=!!d.forwardRef;Object(o.a)(Un)==="object"&&(Qn=Un.transitionSupport,$t="forwardRef"in Un?Un.forwardRef:$t);function Nt(ke){return!!(ke.motionName&&Qn)}var Me=function(ke){Object(r.a)(it,ke);var Be=Object(s.a)(it);function it(){var yt;return Object(a.a)(this,it),yt=Be.apply(this,arguments),yt.$cacheEle=null,yt.node=null,yt.raf=null,yt.destroyed=!1,yt.deadlineId=null,yt.state={status:re,statusActive:!1,newStatus:!1,statusStyle:null},yt.onDomUpdate=function(){var Tt=yt.state,Yt=Tt.status,Pr=Tt.newStatus,$r=yt.props,An=$r.onAppearStart,zt=$r.onEnterStart,At=$r.onLeaveStart,wt=$r.onAppearActive,vr=$r.onEnterActive,Jt=$r.onLeaveActive,Ut=$r.motionAppear,tr=$r.motionEnter,Ft=$r.motionLeave;if(!Nt(yt.props))return;var qt=yt.getElement();yt.$cacheEle!==qt&&(yt.removeEventListener(yt.$cacheEle),yt.addEventListener(qt),yt.$cacheEle=qt),Pr&&Yt===Se&&Ut?yt.updateStatus(An,null,null,function(){yt.updateActiveStatus(wt,Se)}):Pr&&Yt===Re&&tr?yt.updateStatus(zt,null,null,function(){yt.updateActiveStatus(vr,Re)}):Pr&&Yt===Pe&&Ft&&yt.updateStatus(At,null,null,function(){yt.updateActiveStatus(Jt,Pe)})},yt.onMotionEnd=function(Tt){if(Tt&&!Tt.deadline&&Tt.target!==yt.getElement())return;var Yt=yt.state,Pr=Yt.status,$r=Yt.statusActive,An=yt.props,zt=An.onAppearEnd,At=An.onEnterEnd,wt=An.onLeaveEnd;Pr===Se&&$r?yt.updateStatus(zt,{status:re},Tt):Pr===Re&&$r?yt.updateStatus(At,{status:re},Tt):Pr===Pe&&$r&&yt.updateStatus(wt,{status:re},Tt)},yt.setNodeRef=function(Tt){var Yt=yt.props.internalRef;yt.node=Tt,Object(b.b)(Yt,Tt)},yt.getElement=function(){try{return Object(A.a)(yt.node||Object(u.a)(yt))}catch(Tt){return yt.$cacheEle}},yt.addEventListener=function(Tt){if(!Tt)return;Tt.addEventListener(te,yt.onMotionEnd),Tt.addEventListener(X,yt.onMotionEnd)},yt.removeEventListener=function(Tt){if(!Tt)return;Tt.removeEventListener(te,yt.onMotionEnd),Tt.removeEventListener(X,yt.onMotionEnd)},yt.updateStatus=function(Tt,Yt,Pr,$r){var An=Tt?Tt(yt.getElement(),Pr):null;if(An===!1||yt.destroyed)return;var zt;$r&&(zt=function(){yt.nextFrame($r)}),yt.setState(Object(n.a)({statusStyle:Object(o.a)(An)==="object"?An:null,newStatus:!1},Yt),zt)},yt.updateActiveStatus=function(Tt,Yt){yt.nextFrame(function(){var Pr=yt.state.status;if(Pr!==Yt)return;var $r=yt.props.motionDeadline;yt.updateStatus(Tt,{statusActive:!0}),$r>0&&(yt.deadlineId=setTimeout(function(){yt.onMotionEnd({deadline:!0})},$r))})},yt.nextFrame=function(Tt){yt.cancelNextFrame(),yt.raf=F()(Tt)},yt.cancelNextFrame=function(){yt.raf&&(F.a.cancel(yt.raf),yt.raf=null)},yt}return Object(e.a)(it,[{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 Tt,Yt=this.state,Pr=Yt.status,$r=Yt.statusActive,An=Yt.statusStyle,zt=this.props,At=zt.children,wt=zt.motionName,vr=zt.visible,Jt=zt.removeOnLeave,Ut=zt.leavedClassName,tr=zt.eventProps;return At?Pr===re||!Nt(this.props)?vr?At(Object(n.a)({},tr),this.setNodeRef):Jt?null:At(Object(n.a)(Object(n.a)({},tr),{},{className:Ut}),this.setNodeRef):At(Object(n.a)(Object(n.a)({},tr),{},{className:_()(le(wt,Pr),(Tt={},Object(B.a)(Tt,le(wt,"".concat(Pr,"-active")),$r),Object(B.a)(Tt,wt,typeof wt=="string"),Tt)),style:An}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Tt,Yt){var Pr=Yt.prevProps,$r=Yt.status;if(!Nt(Tt))return{};var An=Tt.visible,zt=Tt.motionAppear,At=Tt.motionEnter,wt=Tt.motionLeave,vr=Tt.motionLeaveImmediately,Jt={prevProps:Tt};return($r===Se&&!zt||$r===Re&&!At||$r===Pe&&!wt)&&(Jt.status=re,Jt.statusActive=!1,Jt.newStatus=!1),!Pr&&An&&zt&&(Jt.status=Se,Jt.statusActive=!1,Jt.newStatus=!0),Pr&&!Pr.visible&&An&&At&&(Jt.status=Re,Jt.statusActive=!1,Jt.newStatus=!0),(Pr&&Pr.visible&&!An&&wt||!Pr&&vr&&!An&&wt)&&(Jt.status=Pe,Jt.statusActive=!1,Jt.newStatus=!0),Jt}}]),it}(d.Component);return Me.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},$t?d.forwardRef(function(ke,Be){return d.createElement(Me,Object.assign({internalRef:Be},ke))}):Me}var Ge=Je($),ct="add",Ue="keep",ae="remove",lt="removed";function pe(Un){var Qn;return Un&&Object(o.a)(Un)==="object"&&"key"in Un?Qn=Un:Qn={key:Un},Object(n.a)(Object(n.a)({},Qn),{},{key:String(Qn.key)})}function J(){var Un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Un.map(pe)}function Y(){var Un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],$t=[],Nt=0,Me=Qn.length,ke=J(Un),Be=J(Qn);ke.forEach(function(Tt){for(var Yt=!1,Pr=Nt;Pr<Me;Pr+=1){var $r=Be[Pr];if($r.key===Tt.key){Nt<Pr&&($t=$t.concat(Be.slice(Nt,Pr).map(function(An){return Object(n.a)(Object(n.a)({},An),{},{status:ct})})),Nt=Pr),$t.push(Object(n.a)(Object(n.a)({},$r),{},{status:Ue})),Nt+=1,Yt=!0;break}}Yt||$t.push(Object(n.a)(Object(n.a)({},Tt),{},{status:ae}))}),Nt<Me&&($t=$t.concat(Be.slice(Nt).map(function(Tt){return Object(n.a)(Object(n.a)({},Tt),{},{status:ct})})));var it={};$t.forEach(function(Tt){var Yt=Tt.key;it[Yt]=(it[Yt]||0)+1});var yt=Object.keys(it).filter(function(Tt){return it[Tt]>1});return yt.forEach(function(Tt){$t=$t.filter(function(Yt){var Pr=Yt.key,$r=Yt.status;return Pr!==Tt||$r!==ae}),$t.forEach(function(Yt){Yt.key===Tt&&(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(Un){var Qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge,$t=function(Nt){Object(r.a)(ke,Nt);var Me=Object(s.a)(ke);function ke(){var Be;return Object(a.a)(this,ke),Be=Me.apply(this,arguments),Be.state={keyEntities:[]},Be.removeKey=function(it){Be.setState(function(yt){var Tt=yt.keyEntities;return{keyEntities:Tt.map(function(Yt){return Yt.key!==it?Yt:Object(n.a)(Object(n.a)({},Yt),{},{status:lt})})}})},Be}return Object(e.a)(ke,[{key:"render",value:function(){var it=this,yt=this.state.keyEntities,Tt=this.props,Yt=Tt.component,Pr=Tt.children,$r=Object(t.a)(Tt,["component","children"]),An=Yt||d.Fragment,zt={};return ee.forEach(function(At){zt[At]=$r[At],delete $r[At]}),delete $r.keys,d.createElement(An,Object.assign({},$r),yt.map(function(At){var wt=At.status,vr=Object(t.a)(At,["status"]),Jt=wt===ct||wt===Ue;return d.createElement(Qn,Object.assign({},zt,{key:vr.key,visible:Jt,eventProps:vr,onLeaveEnd:function(){zt.onLeaveEnd&&zt.onLeaveEnd.apply(zt,arguments),it.removeKey(vr.key)}}),Pr)}))}}],[{key:"getDerivedStateFromProps",value:function(it,yt){var Tt=it.keys,Yt=yt.keyEntities,Pr=J(Tt);if(!Un)return{keyEntities:Pr.map(function(zt){return Object(n.a)(Object(n.a)({},zt),{},{status:Ue})})};var $r=Y(Yt,Pr),An=Yt.length;return{keyEntities:$r.filter(function(zt){for(var At=null,wt=0;wt<An;wt+=1){var vr=Yt[wt];if(vr.key===zt.key){At=vr;break}}return!(At&&At.status===lt&&zt.status===ae)})}}}]),ke}(d.Component);return $t.defaultProps={component:"div"},$t}var we=fe($),Ce=Ge,_e=function(Qn,$t){var Nt=Qn.prefixCls,Me=Qn.className,ke=Qn.style,Be=Qn.children,it=Qn.onMouseEnter,yt=Qn.onMouseLeave,Tt=Qn.onMouseDown,Yt=Qn.onTouchStart,Pr=Be;return d.Children.count(Be)>1&&(Pr=d.createElement("div",{className:"".concat(Nt,"-content")},Be)),d.createElement("div",{ref:$t,className:Me,onMouseEnter:it,onMouseLeave:yt,onMouseDown:Tt,onTouchStart:Yt,style:ke},Pr)},he=d.forwardRef(_e);he.displayName="PopupInner";var ye=he;function Le(Un){var Qn=Un.prefixCls,$t=Un.motion,Nt=Un.animation,Me=Un.transitionName;return $t||(Nt?{motionName:"".concat(Qn,"-").concat(Nt)}:Me?{motionName:Me}:null)}function tt(Un){return Un&&Un.motionName}var gt=function(Un){Object(r.a)($t,Un);var Qn=Object(s.a)($t);function $t(){var Nt;return Object(a.a)(this,$t),Nt=Qn.apply(this,arguments),Nt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Nt.popupRef=l.a.createRef(),Nt.alignRef=l.a.createRef(),Nt.nextFrameState=null,Nt.nextFrameId=null,Nt.onAlign=function(Me,ke){var Be=Nt.state.status,it=Nt.props,yt=it.getClassNameFromAlign,Tt=it.onAlign,Yt=yt(ke);Be==="align"?Nt.setState({alignClassName:Yt,status:"aligned"},function(){Nt.alignRef.current.forceAlign()}):Be==="aligned"?(Nt.setState({alignClassName:Yt,status:"afterAlign"}),Tt(Me,ke)):Nt.setState({alignClassName:Yt})},Nt.onMotionEnd=function(){var Me=Nt.props.visible;Nt.setState({status:Me?"AfterMotion":"stable",inMotion:!1})},Nt.setStateOnNextFrame=function(Me){Nt.cancelFrameState(),Nt.nextFrameState=Object(n.a)(Object(n.a)({},Nt.nextFrameState),Me),Nt.nextFrameId=F()(function(){var ke=Object(n.a)({},Nt.nextFrameState);Nt.nextFrameState=null,Nt.setState(ke)})},Nt.getMotion=function(){return Object(n.a)({},Le(Nt.props))},Nt.getAlignTarget=function(){var Me=Nt.props,ke=Me.point,Be=Me.getRootDomNode;return ke||Be},Nt.cancelFrameState=function(){F.a.cancel(Nt.nextFrameId)},Nt.renderPopupElement=function(){var Me=Nt.state,ke=Me.status,Be=Me.targetHeight,it=Me.targetWidth,yt=Me.alignClassName,Tt=Nt.props,Yt=Tt.prefixCls,Pr=Tt.className,$r=Tt.style,An=Tt.stretch,zt=Tt.visible,At=Tt.align,wt=Tt.destroyPopupOnHide,vr=Tt.onMouseEnter,Jt=Tt.onMouseLeave,Ut=Tt.onMouseDown,tr=Tt.onTouchStart,Ft=Tt.children,qt=_()(Yt,Pr,yt),Hr="".concat(Yt,"-hidden"),Nr={};An&&(An.indexOf("height")!==-1?Nr.height=Be:An.indexOf("minHeight")!==-1&&(Nr.minHeight=Be),An.indexOf("width")!==-1?Nr.width=it:An.indexOf("minWidth")!==-1&&(Nr.minWidth=it));var Dr=Object(n.a)(Object(n.a)(Object(n.a)(Object(n.a)({},Nr),Nt.getZIndexStyle()),$r),{},{opacity:ke==="stable"||!zt?void 0:0,pointerEvents:ke==="stable"||!zt?void 0:"none"}),cn=Nt.getMotion(),vn=zt;zt&&ke!=="beforeMotion"&&ke!=="motion"&&ke!=="stable"&&(cn.motionAppear=!1,cn.motionEnter=!1,cn.motionLeave=!1),(ke==="afterAlign"||ke==="beforeMotion")&&(vn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(fi){var xi=cn==null?void 0:cn[fi];cn[fi]=function(){for(var Ni=arguments.length,Hi=new Array(Ni),nt=0;nt<Ni;nt++)Hi[nt]=arguments[nt];xi==null||xi.apply(void 0,Hi),Nt.setState({inMotion:!0})}});var ei=!zt||ke!=="align"&&ke!=="aligned"&&ke!=="stable",qn=!0;return ke==="stable"&&(qn=zt),wt&&!qn?null:l.a.createElement(Ce,Object.assign({visible:vn},cn,{removeOnLeave:!1,onEnterEnd:Nt.onMotionEnd,onLeaveEnd:Nt.onMotionEnd,leavedClassName:Hr}),function(fi,xi){var Ni=fi.style,Hi=fi.className;return l.a.createElement(P.a,{target:Nt.getAlignTarget(),key:"popup",ref:Nt.alignRef,monitorWindowResize:!0,disabled:ei,align:At,onAlign:Nt.onAlign},l.a.createElement(ye,{prefixCls:Yt,className:_()(qt,Hi),ref:Object(b.a)(xi,Nt.popupRef),onMouseEnter:vr,onMouseLeave:Jt,onMouseDown:Ut,onTouchStart:tr,style:Object(n.a)(Object(n.a)({},Dr),Ni)},Ft))})},Nt.renderMaskElement=function(){var Me=Nt.props,ke=Me.mask,Be=Me.maskMotion,it=Me.maskTransitionName,yt=Me.maskAnimation,Tt=Me.prefixCls,Yt=Me.visible;if(!ke)return null;var Pr={};return Be&&Be.motionName&&(Pr=Object(n.a)({motionAppear:!0},Le({motion:Be,prefixCls:Tt,transitionName:it,animation:yt}))),l.a.createElement(Ce,Object.assign({},Pr,{visible:Yt,removeOnLeave:!0}),function($r){var An=$r.className;return l.a.createElement("div",{style:Nt.getZIndexStyle(),key:"mask",className:_()("".concat(Tt,"-mask"),An)})})},Nt}return Object(e.a)($t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Me=this.state.status,ke=this.props,Be=ke.getRootDomNode,it=ke.visible,yt=ke.stretch;if(this.cancelFrameState(),it&&Me!=="stable")switch(Me){case null:{this.setStateOnNextFrame({status:yt?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:tt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Tt=["measure","align",null,"beforeMotion","motion"],Yt=Tt.indexOf(Me),Pr=Tt[Yt+1];Yt!==-1&&Pr&&this.setStateOnNextFrame({status:Pr})}}if(Me==="measure"){var $r=Be();$r&&this.setStateOnNextFrame({targetHeight:$r.offsetHeight,targetWidth:$r.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Me=this.props.zIndex;return{zIndex:Me}}},{key:"render",value:function(){return l.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Me,ke){var Be=Me.visible,it=Object(t.a)(Me,["visible"]),yt=ke.prevVisible,Tt=ke.status,Yt=ke.inMotion,Pr={prevVisible:Be,status:Tt},$r=Le(it);return yt===null&&Be===!1?(Pr.status="stable",Pr.inMotion=!1):Be!==yt&&(Pr.inMotion=!1,Be||tt($r)&&Yt?Pr.status=null:Pr.status="stable",Be&&(Pr.alignClassName=null)),Pr}}]),$t}(d.Component),at=gt,Fe=d.createContext(null),mt=Fe;function et(){}function St(){return""}function jt(){return window.document}var Mt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ot(Un){var Qn=function($t){Object(r.a)(Me,$t);var Nt=Object(s.a)(Me);function Me(ke){var Be;Object(a.a)(this,Me),Be=Nt.call(this,ke),Be.popupRef=l.a.createRef(),Be.triggerRef=l.a.createRef(),Be.onMouseEnter=function(yt){var Tt=Be.props.mouseEnterDelay;Be.fireEvents("onMouseEnter",yt),Be.delaySetPopupVisible(!0,Tt,Tt?null:yt)},Be.onMouseMove=function(yt){Be.fireEvents("onMouseMove",yt),Be.setPoint(yt)},Be.onMouseLeave=function(yt){Be.fireEvents("onMouseLeave",yt),Be.delaySetPopupVisible(!1,Be.props.mouseLeaveDelay)},Be.onPopupMouseEnter=function(){Be.clearDelayTimer()},Be.onPopupMouseLeave=function(yt){if(yt.relatedTarget&&!yt.relatedTarget.setTimeout&&Be.popupRef.current&&Be.popupRef.current.popupRef.current&&Object(g.a)(Be.popupRef.current.popupRef.current,yt.relatedTarget))return;Be.delaySetPopupVisible(!1,Be.props.mouseLeaveDelay)},Be.onFocus=function(yt){Be.fireEvents("onFocus",yt),Be.clearDelayTimer(),Be.isFocusToShow()&&(Be.focusTime=Date.now(),Be.delaySetPopupVisible(!0,Be.props.focusDelay))},Be.onMouseDown=function(yt){Be.fireEvents("onMouseDown",yt),Be.preClickTime=Date.now()},Be.onTouchStart=function(yt){Be.fireEvents("onTouchStart",yt),Be.preTouchTime=Date.now()},Be.onBlur=function(yt){Be.fireEvents("onBlur",yt),Be.clearDelayTimer(),Be.isBlurToHide()&&Be.delaySetPopupVisible(!1,Be.props.blurDelay)},Be.onContextMenu=function(yt){yt.preventDefault(),Be.fireEvents("onContextMenu",yt),Be.setPopupVisible(!0,yt)},Be.onContextMenuClose=function(){Be.isContextMenuToShow()&&Be.close()},Be.onClick=function(yt){if(Be.fireEvents("onClick",yt),Be.focusTime){var Tt;if(Be.preClickTime&&Be.preTouchTime?Tt=Math.min(Be.preClickTime,Be.preTouchTime):Be.preClickTime?Tt=Be.preClickTime:Be.preTouchTime&&(Tt=Be.preTouchTime),Math.abs(Tt-Be.focusTime)<20)return;Be.focusTime=0}Be.preClickTime=0,Be.preTouchTime=0,Be.isClickToShow()&&(Be.isClickToHide()||Be.isBlurToHide())&&yt&&yt.preventDefault&&yt.preventDefault();var Yt=!Be.state.popupVisible;(Be.isClickToHide()&&!Yt||Yt&&Be.isClickToShow())&&Be.setPopupVisible(!Be.state.popupVisible,yt)},Be.onPopupMouseDown=function(){if(Be.hasPopupMouseDown=!0,clearTimeout(Be.mouseDownTimeout),Be.mouseDownTimeout=window.setTimeout(function(){Be.hasPopupMouseDown=!1},0),Be.context){var yt;(yt=Be.context).onPopupMouseDown.apply(yt,arguments)}},Be.onDocumentClick=function(yt){if(Be.props.mask&&!Be.props.maskClosable)return;var Tt=yt.target,Yt=Be.getRootDomNode(),Pr=Be.getPopupDomNode();!Object(g.a)(Yt,Tt)&&!Object(g.a)(Pr,Tt)&&!Be.hasPopupMouseDown&&Be.close()},Be.getRootDomNode=function(){var yt=Be.props.getTriggerDOMNode;if(yt)return yt(Be.triggerRef.current);try{var Tt=Object(A.a)(Be.triggerRef.current);if(Tt)return Tt}catch(Yt){}return h.a.findDOMNode(Object(u.a)(Be))},Be.getPopupClassNameFromAlign=function(yt){var Tt=[],Yt=Be.props,Pr=Yt.popupPlacement,$r=Yt.builtinPlacements,An=Yt.prefixCls,zt=Yt.alignPoint,At=Yt.getPopupClassNameFromAlign;return Pr&&$r&&Tt.push(O($r,An,yt,zt)),At&&Tt.push(At(yt)),Tt.join(" ")},Be.getComponent=function(){var yt=Be.props,Tt=yt.prefixCls,Yt=yt.destroyPopupOnHide,Pr=yt.popupClassName,$r=yt.onPopupAlign,An=yt.popupMotion,zt=yt.popupAnimation,At=yt.popupTransitionName,wt=yt.popupStyle,vr=yt.mask,Jt=yt.maskAnimation,Ut=yt.maskTransitionName,tr=yt.maskMotion,Ft=yt.zIndex,qt=yt.popup,Hr=yt.stretch,Nr=yt.alignPoint,Dr=Be.state,cn=Dr.popupVisible,vn=Dr.point,ei=Be.getPopupAlign(),qn={};return Be.isMouseEnterToShow()&&(qn.onMouseEnter=Be.onPopupMouseEnter),Be.isMouseLeaveToHide()&&(qn.onMouseLeave=Be.onPopupMouseLeave),qn.onMouseDown=Be.onPopupMouseDown,qn.onTouchStart=Be.onPopupMouseDown,l.a.createElement(at,Object.assign({prefixCls:Tt,destroyPopupOnHide:Yt,visible:cn,point:Nr&&vn,className:Pr,align:ei,onAlign:$r,animation:zt,getClassNameFromAlign:Be.getPopupClassNameFromAlign},qn,{stretch:Hr,getRootDomNode:Be.getRootDomNode,style:wt,mask:vr,zIndex:Ft,transitionName:At,maskAnimation:Jt,maskTransitionName:Ut,maskMotion:tr,ref:Be.popupRef,motion:An}),typeof qt=="function"?qt():qt)},Be.getContainer=function(){var yt=Object(u.a)(Be),Tt=yt.props,Yt=document.createElement("div");Yt.style.position="absolute",Yt.style.top="0",Yt.style.left="0",Yt.style.width="100%";var Pr=Tt.getPopupContainer?Tt.getPopupContainer(Be.getRootDomNode()):Tt.getDocument().body;return Pr.appendChild(Yt),Yt},Be.setPoint=function(yt){var Tt=Be.props.alignPoint;if(!Tt||!yt)return;Be.setState({point:{pageX:yt.pageX,pageY:yt.pageY}})},Be.handlePortalUpdate=function(){Be.state.prevPopupVisible!==Be.state.popupVisible&&Be.props.afterPopupVisibleChange(Be.state.popupVisible)};var it;return"popupVisible"in ke?it=!!ke.popupVisible:it=!!ke.defaultPopupVisible,Be.state={prevPopupVisible:it,popupVisible:it},Mt.forEach(function(yt){Be["fire".concat(yt)]=function(Tt){Be.fireEvents(yt,Tt)}}),Be}return Object(e.a)(Me,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Be=this.props,it=this.state;if(it.popupVisible){var yt;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(yt=Be.getDocument(),this.clickOutsideHandler=Object(w.a)(yt,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(yt=yt||Be.getDocument(),this.touchOutsideHandler=Object(w.a)(yt,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(yt=yt||Be.getDocument(),this.contextMenuOutsideHandler1=Object(w.a)(yt,"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,it=Be.popupPlacement,yt=Be.popupAlign,Tt=Be.builtinPlacements;return it&&Tt?S(Tt,it,yt):yt}},{key:"setPopupVisible",value:function(Be,it){var yt=this.props.alignPoint,Tt=this.state.popupVisible;this.clearDelayTimer(),Tt!==Be&&("popupVisible"in this.props||this.setState({popupVisible:Be,prevPopupVisible:Tt}),this.props.onPopupVisibleChange(Be)),yt&&it&&this.setPoint(it)}},{key:"delaySetPopupVisible",value:function(Be,it,yt){var Tt=this,Yt=it*1e3;if(this.clearDelayTimer(),Yt){var Pr=yt?{pageX:yt.pageX,pageY:yt.pageY}:null;this.delayTimer=window.setTimeout(function(){Tt.setPopupVisible(Be,Pr),Tt.clearDelayTimer()},Yt)}else this.setPopupVisible(Be,yt)}},{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 it=this.props.children.props,yt=this.props;return it[Be]&&yt[Be]?this["fire".concat(Be)]:it[Be]||yt[Be]}},{key:"isClickToShow",value:function(){var Be=this.props,it=Be.action,yt=Be.showAction;return it.indexOf("click")!==-1||yt.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Be=this.props,it=Be.action,yt=Be.showAction;return it.indexOf("contextMenu")!==-1||yt.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Be=this.props,it=Be.action,yt=Be.hideAction;return it.indexOf("click")!==-1||yt.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Be=this.props,it=Be.action,yt=Be.showAction;return it.indexOf("hover")!==-1||yt.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Be=this.props,it=Be.action,yt=Be.hideAction;return it.indexOf("hover")!==-1||yt.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Be=this.props,it=Be.action,yt=Be.showAction;return it.indexOf("focus")!==-1||yt.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Be=this.props,it=Be.action,yt=Be.hideAction;return it.indexOf("focus")!==-1||yt.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,it){var yt=this.props.children.props[Be];yt&&yt(it);var Tt=this.props[Be];Tt&&Tt(it)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Be=this.state.popupVisible,it=this.props,yt=it.children,Tt=it.forceRender,Yt=it.alignPoint,Pr=it.className,$r=it.autoDestroy,An=l.a.Children.only(yt),zt={key:"trigger"};this.isContextMenuToShow()?zt.onContextMenu=this.onContextMenu:zt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(zt.onClick=this.onClick,zt.onMouseDown=this.onMouseDown,zt.onTouchStart=this.onTouchStart):(zt.onClick=this.createTwoChains("onClick"),zt.onMouseDown=this.createTwoChains("onMouseDown"),zt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(zt.onMouseEnter=this.onMouseEnter,Yt&&(zt.onMouseMove=this.onMouseMove)):zt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?zt.onMouseLeave=this.onMouseLeave:zt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(zt.onFocus=this.onFocus,zt.onBlur=this.onBlur):(zt.onFocus=this.createTwoChains("onFocus"),zt.onBlur=this.createTwoChains("onBlur"));var At=_()(An&&An.props&&An.props.className,Pr);At&&(zt.className=At);var wt=Object(n.a)({},zt);Object(b.c)(An)&&(wt.ref=Object(b.a)(this.triggerRef,An.ref));var vr=l.a.cloneElement(An,wt),Jt;return(Be||this.popupRef.current||Tt)&&(Jt=l.a.createElement(Un,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Be&&$r&&(Jt=null),l.a.createElement(mt.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},vr,Jt)}}],[{key:"getDerivedStateFromProps",value:function(Be,it){var yt=Be.popupVisible,Tt={};return yt!==void 0&&it.popupVisible!==yt&&(Tt.popupVisible=yt,Tt.prevPopupVisible=it.popupVisible),Tt}}]),Me}(l.a.Component);return Qn.contextType=mt,Qn.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:St,getDocument:jt,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=Ot(E.a),Ke={adjustX:1,adjustY:1},de=[0,0],se={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}},ut=se,qe=function(Qn){var $t=Qn.overlay,Nt=Qn.prefixCls,Me=Qn.id,ke=Qn.overlayInnerStyle;return d.createElement("div",{className:"".concat(Nt,"-inner"),id:Me,role:"tooltip",style:ke},typeof $t=="function"?$t():$t)},me=qe,Wt=function(Qn,$t){var Nt=Qn.overlayClassName,Me=Qn.trigger,ke=Me===void 0?["hover"]:Me,Be=Qn.mouseEnterDelay,it=Be===void 0?0:Be,yt=Qn.mouseLeaveDelay,Tt=yt===void 0?.1:yt,Yt=Qn.overlayStyle,Pr=Qn.prefixCls,$r=Pr===void 0?"rc-tooltip":Pr,An=Qn.children,zt=Qn.onVisibleChange,At=Qn.afterVisibleChange,wt=Qn.transitionName,vr=Qn.animation,Jt=Qn.placement,Ut=Jt===void 0?"right":Jt,tr=Qn.align,Ft=tr===void 0?{}:tr,qt=Qn.destroyTooltipOnHide,Hr=qt===void 0?!1:qt,Nr=Qn.defaultVisible,Dr=Qn.getTooltipContainer,cn=Qn.overlayInnerStyle,vn=Object(t.a)(Qn,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ei=Object(d.useRef)(null);Object(d.useImperativeHandle)($t,function(){return ei.current});var qn=Object(n.a)({},vn);"visible"in Qn&&(qn.popupVisible=Qn.visible);var fi=function(){var Ne=Qn.arrowContent,He=Ne===void 0?null:Ne,Xe=Qn.overlay,rt=Qn.id;return[d.createElement("div",{className:"".concat($r,"-arrow"),key:"arrow"},He),d.createElement(me,{key:"content",prefixCls:$r,id:rt,overlay:Xe,overlayInnerStyle:cn})]},xi=!1,Ni=!1;if(typeof Hr=="boolean")xi=Hr;else if(Hr&&Object(o.a)(Hr)==="object"){var Hi=Hr.keepParent;xi=Hi===!0,Ni=Hi===!1}return d.createElement(Bt,Object.assign({popupClassName:Nt,prefixCls:$r,popup:fi,action:ke,builtinPlacements:se,popupPlacement:Ut,ref:ei,popupAlign:Ft,getPopupContainer:Dr,onPopupVisibleChange:zt,afterPopupVisibleChange:At,popupTransitionName:wt,popupAnimation:vr,defaultPopupVisible:Nr,destroyPopupOnHide:xi,autoDestroy:Ni,mouseLeaveDelay:Tt,popupStyle:Yt,mouseEnterDelay:it},qn),An)},dr=Object(d.forwardRef)(Wt),vt=dr,rr={adjustX:1,adjustY:1},ur={adjustX:0,adjustY:0},mn=[0,0];function sr(Un){return typeof Un=="boolean"?Un?rr:ur:f()(f()({},ur),Un)}function xr(Un){var Qn=Un.arrowWidth,$t=Qn===void 0?5:Qn,Nt=Un.horizontalArrowShift,Me=Nt===void 0?16:Nt,ke=Un.verticalArrowShift,Be=ke===void 0?8:ke,it=Un.autoAdjustOverflow,yt={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:[-(Me+$t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Be+$t)]},topRight:{points:["br","tc"],offset:[Me+$t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Be+$t)]},bottomRight:{points:["tr","bc"],offset:[Me+$t,4]},rightBottom:{points:["bl","cr"],offset:[4,Be+$t]},bottomLeft:{points:["tl","bc"],offset:[-(Me+$t),4]},leftBottom:{points:["br","cl"],offset:[-4,Be+$t]}};return Object.keys(yt).forEach(function(Tt){yt[Tt]=Un.arrowPointAtCenter?f()(f()({},yt[Tt]),{overflow:sr(it),targetOffset:mn}):f()(f()({},se[Tt]),{overflow:sr(it)}),yt[Tt].ignoreShake=!0}),yt}var pr=i("0n0R"),Zt=i("H84U"),Ct=i("09Wf"),on=function(Qn,$t){var Nt={},Me=f()({},Qn);return $t.forEach(function(ke){Qn&&ke in Qn&&(Nt[ke]=Qn[ke],delete Me[ke])}),{picked:Nt,omitted:Me}},Mn=new RegExp("^(".concat(Ct.a.join("|"),")(-inverse)?$"));function Xn(Un,Qn){var $t=Un.type;if(($t.__ANT_BUTTON===!0||$t.__ANT_SWITCH===!0||$t.__ANT_CHECKBOX===!0||Un.type==="button")&&Un.props.disabled){var Nt=on(Un.props.style,["position","left","right","top","bottom","float","display","zIndex"]),Me=Nt.picked,ke=Nt.omitted,Be=f()(f()({display:"inline-block"},Me),{cursor:"not-allowed",width:Un.props.block?"100%":null}),it=f()(f()({},ke),{pointerEvents:"none"}),yt=Object(pr.a)(Un,{style:it,className:null});return d.createElement("span",{style:Be,className:_()(Un.props.className,"".concat(Qn,"-disabled-compatible-wrapper"))},yt)}return Un}var oi=d.forwardRef(function(Un,Qn){var $t,Nt=d.useContext(Zt.b),Me=Nt.getPopupContainer,ke=Nt.getPrefixCls,Be=Nt.direction,it=d.useState(!!Un.visible||!!Un.defaultVisible),yt=v()(it,2),Tt=yt[0],Yt=yt[1];d.useEffect(function(){"visible"in Un&&Yt(Un.visible)},[Un.visible]);var Pr=function(){var Hi=Un.title,nt=Un.overlay;return!Hi&&!nt&&Hi!==0},$r=function(Hi){"visible"in Un||Yt(Pr()?!1:Hi),Un.onVisibleChange&&!Pr()&&Un.onVisibleChange(Hi)},An=function(){var Hi=Un.builtinPlacements,nt=Un.arrowPointAtCenter,Ne=Un.autoAdjustOverflow;return Hi||xr({arrowPointAtCenter:nt,autoAdjustOverflow:Ne})},zt=function(Hi,nt){var Ne=An(),He=Object.keys(Ne).filter(function(Ze){return Ne[Ze].points[0]===nt.points[0]&&Ne[Ze].points[1]===nt.points[1]})[0];if(!He)return;var Xe=Hi.getBoundingClientRect(),rt={top:"50%",left:"50%"};He.indexOf("top")>=0||He.indexOf("Bottom")>=0?rt.top="".concat(Xe.height-nt.offset[1],"px"):(He.indexOf("Top")>=0||He.indexOf("bottom")>=0)&&(rt.top="".concat(-nt.offset[1],"px")),He.indexOf("left")>=0||He.indexOf("Right")>=0?rt.left="".concat(Xe.width-nt.offset[0],"px"):(He.indexOf("right")>=0||He.indexOf("Left")>=0)&&(rt.left="".concat(-nt.offset[0],"px")),Hi.style.transformOrigin="".concat(rt.left," ").concat(rt.top)},At=function(){var Hi=Un.title,nt=Un.overlay;return Hi===0?Hi:nt||Hi||""},wt=Un.prefixCls,vr=Un.openClassName,Jt=Un.getPopupContainer,Ut=Un.getTooltipContainer,tr=Un.overlayClassName,Ft=Un.color,qt=Un.overlayInnerStyle,Hr=Un.children,Nr=ke("tooltip",wt),Dr=Tt;!("visible"in Un)&&Pr()&&(Dr=!1);var cn=Xn(Object(pr.b)(Hr)?Hr:d.createElement("span",null,Hr),Nr),vn=cn.props,ei=_()(vn.className,p()({},vr||"".concat(Nr,"-open"),!0)),qn=_()(tr,($t={},p()($t,"".concat(Nr,"-rtl"),Be==="rtl"),p()($t,"".concat(Nr,"-").concat(Ft),Ft&&Mn.test(Ft)),$t)),fi,xi;return Ft&&!Mn.test(Ft)&&(fi=f()(f()({},qt),{background:Ft}),xi={background:Ft}),d.createElement(vt,f()({},Un,{prefixCls:Nr,overlayClassName:qn,getTooltipContainer:Jt||Ut||Me,ref:Qn,builtinPlacements:An(),overlay:At(),visible:Dr,onVisibleChange:$r,onPopupAlign:zt,overlayInnerStyle:fi,arrowContent:d.createElement("span",{className:"".concat(Nr,"-arrow-content"),style:xi})}),Dr?Object(pr.a)(cn,{className:ei}):cn)});oi.displayName="Tooltip",oi.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var Ui=D.a=oi},"3TkU":function(R,D,i){i("aTJb"),i("OlYY"),i("fc+c"),i("QUw5"),i("Swgg"),i("LBfv"),i("noeP")},"3X6L":function(R,D,i){var y=i("bYtY"),p=i("7a+S"),x=i("OKJ2"),v=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(v,x);var m=v;R.exports=m},"3e3G":function(R,D,i){var y=i("bYtY"),p=i("QuXc"),x=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)};x.prototype={constructor:x},y.inherits(x,p);var v=x;R.exports=v},"3gBT":function(R,D){var i=2311;function y(){return i++}R.exports=y},"3hzK":function(R,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")}}};R.exports=i},"3m61":function(R,D){function i(p){return p instanceof Array||(p=[p,p]),p}function y(p){p.eachSeriesByType("graph",function(x){var v=x.getGraph(),m=x.getEdgeData(),f=i(x.get("edgeSymbol")),d=i(x.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",x.get(l)),m.setVisual("opacity",x.get(o)),m.each(function(n){var t=m.getItemModel(n),a=v.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)})})}R.exports=y},"3ouR":function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="CloseSquareOutlined";var d=D.a=p.forwardRef(f)},"3y9D":function(R,D,i){(function(y,p){R.exports=D=p(i("Ib8C"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.WordArray,m=x.Hasher,f=p.algo,d=[],l=f.SHA1=m.extend({_doReset:function(){this._hash=new v.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 A=(e<<5|e>>>27)+c+d[h];h<20?A+=(u&r|~u&s)+1518500249:h<40?A+=(u^r^s)+1859775393:h<60?A+=(u&r|u&s|r&s)-1894007588:A+=(u^r^s)-899497514,c=s,s=r,r=u<<30|u>>>2,u=e,e=A}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(R,D,i){var y=i("bYtY"),p=i("bLfw"),x=i("KCsZ"),v=i("nkfE"),m=i("OELB"),f=i("ICMv"),d=p.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return x([["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")}v("parallel",d,o,l);var n=d;R.exports=n},"49sm":function(R,D){var i={}.toString;R.exports=Array.isArray||function(y){return i.call(y)=="[object Array]"}},"4Feb":function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=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"),A=i("Rx6q"),b=v.CACHED_LABEL_STYLE_PROPERTIES,w=["itemStyle"],E=["emphasis","itemStyle"],C=["label"],_=["emphasis","label"],T="e\0\0",S={cartesian2d:s,geo:c,singleAxis:h,polar:g,calendar:A};t.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(re,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,Ge=re.getData(),ct=this.group,Ue=P(re,Ge,Se,Re);Ge.diff(Je).add(function(lt){k(null,lt,Ue(lt,Pe),re,ct,Ge)}).update(function(lt,pe){var J=Je.getItemGraphicEl(pe);k(J,lt,Ue(lt,Pe),re,ct,Ge)}).remove(function(lt){var pe=Je.getItemGraphicEl(lt);pe&&ct.remove(pe)}).execute();var ae=re.get("clip",!0)?r(re.coordinateSystem,!1,re):null;ae?ct.setClipPath(ae):ct.removeClipPath(),this._data=Ge},incrementalPrepareRender:function(re,Se,Re){this.group.removeAll(),this._data=null},incrementalRender:function(re,Se,Re,Pe,Je){var Ge=Se.getData(),ct=P(Se,Ge,Re,Pe);function Ue(pe){pe.isGroup||(pe.incremental=!0,pe.useHoverLayer=!0)}for(var ae=re.start;ae<re.end;ae++){var lt=k(null,ae,ct(ae,Je),Se,this.group,Ge);lt.traverse(Ue)}},dispose:x.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 O(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,Ge=te(Pe);Re=v.makePath(Ge,null,Je,Pe.layout||"center"),Re.__customPathData=Ge}else if(Se==="image")Re=new v.Image({}),Re.__customImagePath=re.style.image;else if(Se==="text")Re=new v.Text({}),Re.__customText=re.style.text;else if(Se==="group")Re=new v.Group;else{if(Se==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var ct=v.getShapeClass(Se);Re=new ct}return Re.__customGraphicType=Se,Re.name=re.name,Re}function I(re,Se,Re,Pe,Je,Ge,ct){var Ue={},ae=Re.style||{};if(Re.shape&&(Ue.shape=x.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 lt=Ue.style={};x.each(["x","y","width","height"],function(Y){F(Y,lt,ae,re.style,Ge)})}if(re.type==="text"&&Re.style){var lt=Ue.style={};x.each(["x","y"],function(ee){F(ee,lt,ae,re.style,Ge)}),!ae.hasOwnProperty("textFill")&&ae.fill&&(ae.textFill=ae.fill),!ae.hasOwnProperty("textStroke")&&ae.stroke&&(ae.textStroke=ae.stroke)}if(re.type!=="group"&&(re.useStyle(ae),Ge)){re.style.opacity=0;var pe=ae.opacity;pe==null&&(pe=1),v.initProps(re,{style:{opacity:pe}},Pe,Se)}Ge?re.attr(Ue):v.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 J=Re.styleEmphasis;v.setElementHoverStyle(re,J),ct&&v.setAsHighDownDispatcher(re,J!==!1)}function F(re,Se,Re,Pe,Je){Re[re]!=null&&!Je&&(Se[re]=Re[re],Re[re]=Pe[re])}function P(re,Se,Re,Pe){var Je=re.get("renderItem"),Ge=re.coordinateSystem,ct={};Ge&&(ct=Ge.prepareCustoms?Ge.prepareCustoms():S[Ge.type](Ge));var Ue=x.defaults({getWidth:Pe.getWidth,getHeight:Pe.getHeight,getZr:Pe.getZr,getDevicePixelRatio:Pe.getDevicePixelRatio,value:Ce,style:_e,styleEmphasis:he,visual:ye,barLayout:Le,currentSeriesIndices:tt,font:gt},ct.api||{}),ae={context:{},seriesId:re.id,seriesName:re.name,seriesIndex:re.seriesIndex,coordSys:ct.coordSys,dataInsideLength:Se.count(),encode:B(re.getData())},lt,pe=!0,J,Y,ee,fe;return function(at,Fe){return lt=at,pe=!0,Je&&Je(x.defaults({dataIndexInside:at,dataIndex:Se.getRawIndex(at),actionType:Fe?Fe.type:null},ae),Ue)};function we(at){at==null&&(at=lt),pe&&(J=Se.getItemModel(at),Y=J.getModel(C),ee=J.getModel(_),fe=Se.getItemVisual(at,"color"),pe=!1)}function Ce(at,Fe){return Fe==null&&(Fe=lt),Se.get(Se.getDimension(at||0),Fe)}function _e(at,Fe){Fe==null&&(Fe=lt),we(Fe);var mt=J.getModel(w).getItemStyle();fe!=null&&(mt.fill=fe);var et=Se.getItemVisual(Fe,"opacity");et!=null&&(mt.opacity=et);var St=at?V(at,Y):Y;return v.setTextStyle(mt,St,null,{autoColor:fe,isRectText:!0}),mt.text=St.getShallow("show")?x.retrieve2(re.getFormattedLabel(Fe,"normal"),f(Se,Fe)):null,at&&Q(mt,at),mt}function he(at,Fe){Fe==null&&(Fe=lt),we(Fe);var mt=J.getModel(E).getItemStyle(),et=at?V(at,ee):ee;return v.setTextStyle(mt,et,null,{isRectText:!0},!0),mt.text=et.getShallow("show")?x.retrieve3(re.getFormattedLabel(Fe,"emphasis"),re.getFormattedLabel(Fe,"normal"),f(Se,Fe)):null,at&&Q(mt,at),mt}function ye(at,Fe){return Fe==null&&(Fe=lt),Se.getItemVisual(Fe,at)}function Le(at){if(Ge.getBaseAxis){var Fe=Ge.getBaseAxis();return o(x.defaults({axis:Fe},at),Pe)}}function tt(){return Re.getCurrentSeriesIndices()}function gt(at){return v.getFont(at,Re)}}function B(re){var Se={};return x.each(re.dimensions,function(Re,Pe){var Je=re.getDimensionInfo(Re);if(!Je.isExtraCoord){var Ge=Je.coordDim,ct=Se[Ge]=Se[Ge]||[];ct[Je.coordDimIndex]=Pe}}),Se}function k(re,Se,Re,Pe,Je,Ge){return re=G(re,Se,Re,Pe,Je,Ge,!0),re&&Ge.setItemGraphicEl(Se,re),re}function G(re,Se,Re,Pe,Je,Ge,ct){var Ue=!Re;Re=Re||{};var ae=Re.type,lt=Re.shape,pe=Re.style;if(re&&(Ue||ae!=null&&ae!==re.__customGraphicType||ae==="path"&&$(lt)&&te(lt)!==re.__customPathData||ae==="image"&&le(pe,"image")&&pe.image!==re.__customImagePath||ae==="text"&&le(lt,"text")&&pe.text!==re.__customText)&&(Je.remove(re),re=null),Ue)return;var J=!re;return!re&&(re=O(Re)),I(re,Se,Re,Pe,Ge,J,ct),ae==="group"&&M(re,Se,Re,Pe,Ge),Je.add(re),re}function M(re,Se,Re,Pe,Je){var Ge=Re.children,ct=Ge?Ge.length:0,Ue=Re.$mergeChildren,ae=Ue==="byName"||Re.diffChildrenByName,lt=Ue===!1;if(!ct&&!ae&&!lt)return;if(ae){j({oldChildren:re.children()||[],newChildren:Ge||[],dataIndex:Se,animatableModel:Pe,group:re,data:Je});return}lt&&re.removeAll();for(var pe=0;pe<ct;pe++)Ge[pe]&&G(re.childAt(pe),Se,Ge[pe],Pe,re,Je)}function j(re){new n(re.oldChildren,re.newChildren,K,K,re).add(z).update(z).remove(X).execute()}function K(re,Se){var Re=re&&re.name;return Re!=null?Re:T+Se}function z(re,Se){var Re=this.context,Pe=re!=null?Re.newChildren[re]:null,Je=Se!=null?Re.oldChildren[Se]:null;G(Je,Re.dataIndex,Pe,Re.animatableModel,Re.group,Re.data)}function V(re,Se){var Re=new a({},Se);return x.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 X(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(R,D,i){var y=i("bYtY"),p=i("6GrX"),x=i("4NO4"),v=x.makeInner,m=i("aX7z"),f=m.makeLabelFormatter,d=m.getOptionCategoryInterval,l=m.shouldShowAllLabels,o=v();function n(C){return C.type==="category"?a(C):r(C)}function t(C,_){return C.type==="category"?u(C,_):{ticks:C.scale.getTicks()}}function a(C){var _=C.getLabelModel(),T=e(C,_);return!_.get("show")||C.scale.isBlank()?{labels:[],labelCategoryInterval:T.labelCategoryInterval}:T}function e(C,_){var T=s(C,"labels"),S=d(_),O=c(T,S);if(O)return O;var I,F;return y.isFunction(S)?I=E(C,S):(F=S==="auto"?g(C):S,I=w(C,F)),h(T,S,{labels:I,labelCategoryInterval:F})}function u(C,_){var T=s(C,"ticks"),S=d(_),O=c(T,S);if(O)return O;var I,F;if((!_.get("show")||C.scale.isBlank())&&(I=[]),y.isFunction(S))I=E(C,S,!0);else if(S==="auto"){var P=e(C,C.getLabelModel());F=P.labelCategoryInterval,I=y.map(P.labels,function(B){return B.tickValue})}else F=S,I=w(C,F,!0);return h(T,S,{ticks:I,tickCategoryInterval:F})}function r(C){var _=C.scale.getTicks(),T=f(C);return{labels:y.map(_,function(S,O){return{formattedLabel:T(S,O),rawLabel:C.scale.getLabel(S),tickValue:S}})}}function s(C,_){return o(C)[_]||(o(C)[_]=[])}function c(C,_){for(var T=0;T<C.length;T++)if(C[T].key===_)return C[T].value}function h(C,_,T){return C.push({key:_,value:T}),T}function g(C){var _=o(C).autoInterval;return _!=null?_:o(C).autoInterval=C.calculateCategoryInterval()}function A(C){var _=b(C),T=f(C),S=(_.axisRotate-_.labelRotate)/180*Math.PI,O=C.scale,I=O.getExtent(),F=O.count();if(I[1]-I[0]<1)return 0;var P=1;F>40&&(P=Math.max(1,Math.floor(F/40)));for(var B=I[0],k=C.dataToCoord(B+1)-C.dataToCoord(B),G=Math.abs(k*Math.cos(S)),M=Math.abs(k*Math.sin(S)),j=0,K=0;B<=I[1];B+=P){var z=0,V=0,Q=p.getBoundingRect(T(B),_.font,"center","top");z=Q.width*1.3,V=Q.height*1.3,j=Math.max(j,z,7),K=Math.max(K,V,7)}var X=j/G,te=K/M;isNaN(X)&&(X=Infinity),isNaN(te)&&(te=Infinity);var $=Math.max(0,Math.floor(Math.min(X,te))),le=o(C.model),re=C.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(C){var _=C.getLabelModel();return{axisRotate:C.getRotate?C.getRotate():C.isHorizontal&&!C.isHorizontal()?90:0,labelRotate:_.get("rotate")||0,font:_.getFont()}}function w(C,_,T){var S=f(C),O=C.scale,I=O.getExtent(),F=C.getLabelModel(),P=[],B=Math.max((_||0)+1,1),k=I[0],G=O.count();k!==0&&B>1&&G/B>2&&(k=Math.round(Math.ceil(k/B)*B));var M=l(C),j=F.get("showMinLabel")||M,K=F.get("showMaxLabel")||M;j&&k!==I[0]&&V(I[0]);for(var z=k;z<=I[1];z+=B)V(z);K&&z-B!==I[1]&&V(I[1]);function V(Q){P.push(T?Q:{formattedLabel:S(Q),rawLabel:O.getLabel(Q),tickValue:Q})}return P}function E(C,_,T){var S=C.scale,O=f(C),I=[];return y.each(S.getTicks(),function(F){var P=S.getLabel(F);_(F,P)&&I.push(T?F:{formattedLabel:O(F),rawLabel:P,tickValue:F})}),I}D.createAxisLabels=n,D.createAxisTicks=t,D.calculateCategoryInterval=A},"4NO4":function(R,D,i){var y=i("bYtY"),p=i("ItGF"),x=y.each,v=y.isObject,m=y.isArray,f="series\0";function d(T){return T instanceof Array?T:T==null?[]:[T]}function l(T,S,O){if(T){T[S]=T[S]||{},T.emphasis=T.emphasis||{},T.emphasis[S]=T.emphasis[S]||{};for(var I=0,F=O.length;I<F;I++){var P=O[I];!T.emphasis[S].hasOwnProperty(P)&&T[S].hasOwnProperty(P)&&(T.emphasis[S][P]=T[S][P])}}}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(T){return v(T)&&!m(T)&&!(T instanceof Date)?T.value:T}function t(T){return v(T)&&!(T instanceof Array)}function a(T,S){S=(S||[]).slice();var O=y.map(T||[],function(I,F){return{exist:I}});return x(S,function(I,F){if(!v(I))return;for(var P=0;P<O.length;P++)if(!O[P].option&&I.id!=null&&O[P].exist.id===I.id+""){O[P].option=I,S[F]=null;return}for(var P=0;P<O.length;P++){var B=O[P].exist;if(!O[P].option&&(B.id==null||I.id==null)&&I.name!=null&&!r(I)&&!r(B)&&B.name===I.name+""){O[P].option=I,S[F]=null;return}}}),x(S,function(I,F){if(!v(I))return;for(var P=0;P<O.length;P++){var B=O[P].exist;if(!O[P].option&&!r(B)&&I.id==null){O[P].option=I;break}}P>=O.length&&O.push({option:I})}),O}function e(T){var S=y.createHashMap();x(T,function(O,I){var F=O.exist;F&&S.set(F.id,O)}),x(T,function(O,I){var F=O.option;y.assert(!F||F.id==null||!S.get(F.id)||S.get(F.id)===O,"id duplicates: "+(F&&F.id)),F&&F.id!=null&&S.set(F.id,O),!O.keyInfo&&(O.keyInfo={})}),x(T,function(O,I){var F=O.exist,P=O.option,B=O.keyInfo;if(!v(P))return;if(B.name=P.name!=null?P.name+"":F?F.name:f+I,F)B.id=F.id;else if(P.id!=null)B.id=P.id+"";else{var k=0;do B.id="\0"+B.name+"\0"+k++;while(S.get(B.id))}S.set(B.id,O)})}function u(T){var S=T.name;return!!(S&&S.indexOf(f))}function r(T){return v(T)&&T.id&&(T.id+"").indexOf("\0_ec_\0")===0}function s(T,S){var O={},I={};return F(T||[],O),F(S||[],I,O),[P(O),P(I)];function F(B,k,G){for(var M=0,j=B.length;M<j;M++)for(var K=B[M].seriesId,z=d(B[M].dataIndex),V=G&&G[K],Q=0,X=z.length;Q<X;Q++){var te=z[Q];V&&V[te]?V[te]=null:(k[K]||(k[K]={}))[te]=1}}function P(B,k){var G=[];for(var M in B)if(B.hasOwnProperty(M)&&B[M]!=null)if(k)G.push(+M);else{var j=P(B[M],!0);j.length&&G.push({seriesId:M,dataIndex:j})}return G}}function c(T,S){if(S.dataIndexInside!=null)return S.dataIndexInside;if(S.dataIndex!=null)return y.isArray(S.dataIndex)?y.map(S.dataIndex,function(O){return T.indexOfRawIndex(O)}):T.indexOfRawIndex(S.dataIndex);if(S.name!=null)return y.isArray(S.name)?y.map(S.name,function(O){return T.indexOfName(O)}):T.indexOfName(S.name)}function h(){var T="__\0ec_inner_"+g+++"_"+Math.random().toFixed(5);return function(S){return S[T]||(S[T]={})}}var g=0;function A(T,S,O){if(y.isString(S)){var I={};I[S+"Index"]=0,S=I}var F=O&&O.defaultMainType;F&&!b(S,F+"Index")&&!b(S,F+"Id")&&!b(S,F+"Name")&&(S[F+"Index"]=0);var P={};return x(S,function(B,k){var B=S[k];if(k==="dataIndex"||k==="dataIndexInside"){P[k]=B;return}var G=k.match(/^(\w+)(Index|Id|Name)$/)||[],M=G[1],j=(G[2]||"").toLowerCase();if(!M||!j||B==null||j==="index"&&B==="none"||O&&O.includeMainTypes&&y.indexOf(O.includeMainTypes,M)<0)return;var K={mainType:M};(j!=="index"||B!=="all")&&(K[j]=B);var z=T.queryComponents(K);P[M+"Models"]=z,P[M+"Model"]=z[0]}),P}function b(T,S){return T&&T.hasOwnProperty(S)}function w(T,S,O){T.setAttribute?T.setAttribute(S,O):T[S]=O}function E(T,S){return T.getAttribute?T.getAttribute(S):T[S]}function C(T){return T==="auto"?p.domSupported?"html":"richText":T||"html"}function _(T,S){var O=y.createHashMap(),I=[];return y.each(T,function(F){var P=S(F);(O.get(P)||(I.push(P),O.set(P,[]))).push(F)}),{keys:I,buckets:O}}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=A,D.setAttribute=w,D.getAttribute=E,D.getTooltipRenderMode=C,D.groupData=_},"4NgU":function(R,D,i){var y=i("Yl7c");function p(v){this._setting=v||{},this._extent=[Infinity,-Infinity],this._interval=0,this.init&&this.init.apply(this,arguments)}p.prototype.parse=function(v){return v},p.prototype.getSetting=function(v){return this._setting[v]},p.prototype.contain=function(v){var m=this._extent;return v>=m[0]&&v<=m[1]},p.prototype.normalize=function(v){var m=this._extent;return m[1]===m[0]?.5:(v-m[0])/(m[1]-m[0])},p.prototype.scale=function(v){var m=this._extent;return v*(m[1]-m[0])+m[0]},p.prototype.unionExtent=function(v){var m=this._extent;v[0]<m[0]&&(m[0]=v[0]),v[1]>m[1]&&(m[1]=v[1])},p.prototype.unionExtentFromData=function(v,m){this.unionExtent(v.getApproximateExtent(m))},p.prototype.getExtent=function(){return this._extent.slice()},p.prototype.setExtent=function(v,m){var f=this._extent;isNaN(v)||(f[0]=v),isNaN(m)||(f[1]=m)},p.prototype.isBlank=function(){return this._isBlank},p.prototype.setBlank=function(v){this._isBlank=v},p.prototype.getLabel=null,y.enableClassExtend(p),y.enableClassManagement(p,{registerWhenExtend:!0});var x=p;R.exports=x},"4fz+":function(R,D,i){var y=i("bYtY"),p=i("1bdT"),x=i("mFDi"),v=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};v.prototype={constructor:v,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 v&&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 v&&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 v&&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 v&&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 v&&o.delChildrenFromStorage(d)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(d){for(var l=null,o=new x(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(v,p);var m=v;R.exports=m},"4i/N":function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="CloseOutlined";var d=D.a=p.forwardRef(f)},"4kuk":function(R,D,i){var y=i("SfRM"),p=i("Hvzi"),x=i("u8Dt"),v=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=x,f.prototype.has=v,f.prototype.set=m,R.exports=f},"4mN7":function(R,D,i){var y=i("QBsz"),p=i("Sj9i"),x=Math.min,v=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,A){if(h.length===0)return;var b=h[0],w=b[0],E=b[0],C=b[1],_=b[1],T;for(T=1;T<h.length;T++)b=h[T],w=x(w,b[0]),E=v(E,b[0]),C=x(C,b[1]),_=v(_,b[1]);g[0]=w,g[1]=C,A[0]=E,A[1]=_}function a(h,g,A,b,w,E){w[0]=x(h,A),w[1]=x(g,b),E[0]=v(h,A),E[1]=v(g,b)}var e=[],u=[];function r(h,g,A,b,w,E,C,_,T,S){var O=p.cubicExtrema,I=p.cubicAt,F,P=O(h,A,w,C,e);for(T[0]=Infinity,T[1]=Infinity,S[0]=-Infinity,S[1]=-Infinity,F=0;F<P;F++){var B=I(h,A,w,C,e[F]);T[0]=x(B,T[0]),S[0]=v(B,S[0])}for(P=O(g,b,E,_,u),F=0;F<P;F++){var k=I(g,b,E,_,u[F]);T[1]=x(k,T[1]),S[1]=v(k,S[1])}T[0]=x(h,T[0]),S[0]=v(h,S[0]),T[0]=x(C,T[0]),S[0]=v(C,S[0]),T[1]=x(g,T[1]),S[1]=v(g,S[1]),T[1]=x(_,T[1]),S[1]=v(_,S[1])}function s(h,g,A,b,w,E,C,_){var T=p.quadraticExtremum,S=p.quadraticAt,O=v(x(T(h,A,w),1),0),I=v(x(T(g,b,E),1),0),F=S(h,A,w,O),P=S(g,b,E,I);C[0]=x(h,w,F),C[1]=x(g,E,P),_[0]=v(h,w,F),_[1]=v(g,E,P)}function c(h,g,A,b,w,E,C,_,T){var S=y.min,O=y.max,I=Math.abs(w-E);if(I%d<1e-4&&I>1e-4){_[0]=h-A,_[1]=g-b,T[0]=h+A,T[1]=g+b;return}if(l[0]=f(w)*A+h,l[1]=m(w)*b+g,o[0]=f(E)*A+h,o[1]=m(E)*b+g,S(_,l,o),O(T,l,o),w=w%d,w<0&&(w=w+d),E=E%d,E<0&&(E=E+d),w>E&&!C?E+=d:w<E&&C&&(w+=d),C){var F=E;E=w,w=F}for(var P=0;P<E;P+=Math.PI/2)P>w&&(n[0]=f(P)*A+h,n[1]=m(P)*b+g,S(_,n,_),O(T,n,T))}D.fromPoints=t,D.fromLine=a,D.fromCubic=r,D.fromQuadratic=s,D.fromArc=c},"4vCz":function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="PlusSquareOutlined";var n=v.forwardRef(o);D.default=n},"4xFK":function(R,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(R,D,i){var y=i("IwbS"),p=i("x3X8"),x=p.getDefaultLabel;function v(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:x(n.getData(),t),isRectText:!0,autoColor:o}),m(f),m(d)}function m(f,d){f.textPosition==="outside"&&(f.textPosition=d)}D.setLabel=v},"59Ip":function(R,D,i){var y=i("Sj9i");function p(x,v,m,f,d,l,o,n,t,a,e){if(t===0)return!1;var u=t;if(e>v+u&&e>f+u&&e>l+u&&e>n+u||e<v-u&&e<f-u&&e<l-u&&e<n-u||a>x+u&&a>m+u&&a>d+u&&a>o+u||a<x-u&&a<m-u&&a<d-u&&a<o-u)return!1;var r=y.cubicProjectPoint(x,v,m,f,d,l,o,n,a,e,null);return r<=u/2}D.containStroke=p},"5Dmo":function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("5YgA"),v=i.n(x)},"5GOC":function(R,D,i){"use strict";var y=i("cIOH"),p=i("b56q"),x=i("15/o")},"5GhG":function(R,D,i){var y=i("5GtS"),p=i("bYtY"),x=i("L0Ub"),v=x.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],A=[t,a],b=A[c].get("type"),w=A[1-c].get("type"),E=l.data;if(E&&r){var C=[];p.each(E,function(S,O){var I;S.value&&p.isArray(S.value)?(I=S.value.slice(),S.value.unshift(O)):p.isArray(S)?(I=S.slice(),S.unshift(O)):I=S,C.push(I)}),l.data=C}var _=this.defaultValueDimensions,T=[{name:h,type:v(b),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:v(w),dimsDef:_.slice()}];return y(this,{coordDimensions:T,dimensionsCount:_.length+1,encodeDefaulter:p.curry(f,T,this)})},getBaseAxis:function(){var l=this._baseAxisDim;return this.ecModel.getComponent(l+"Axis",this.get(l+"AxisIndex")).axis}};D.seriesModelMixin=d},"5GtS":function(R,D,i){var y=i("sdST"),p=i("YXkt"),x=i("bYtY"),v=x.extend,m=x.isArray;function f(d,l,o){l=m(l)&&{coordDimensions:l}||v({},l);var n=d.getSource(),t=y(n,l),a=new p(t,d);return a.initData(n,o),a}R.exports=f},"5Hur":function(R,D,i){var y=i("4NO4"),p=y.makeInner,x=y.normalizeToArray,v=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(){v(this).colorIdx=0,v(this).colorNameMap={}},getColorFromPalette:function(d,l,o){l=l||this;var n=v(l),t=n.colorIdx||0,a=n.colorNameMap=n.colorNameMap||{};if(a.hasOwnProperty(d))return a[d];var e=x(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}};R.exports=f},"5NDa":function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("OnYD"),v=i.n(x),m=i("+L6B")},"5NHt":function(R,D,i){i("aTJb"),i("OlYY"),i("fc+c"),i("N5BQ"),i("IyUQ"),i("LBfv"),i("noeP")},"5OYt":function(R,D,i){"use strict";var y=i("J4zp"),p=i.n(y),x=i("q1tI"),v=i.n(x),m=i("ACnJ");function f(){var d=Object(x.useState)({}),l=p()(d,2),o=l[0],n=l[1];return Object(x.useEffect)(function(){var t=m.a.subscribe(function(a){n(a)});return function(){return m.a.unsubscribe(t)}},[]),o}D.a=f},"5RzL":function(R,D,i){"use strict";var y=i("pVnL"),p=i.n(y),x=i("lSNA"),v=i.n(x),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"),A=i("U8pU"),b=i("ODXe"),w=i("VTBJ"),E=i("rePB"),C=i("Ff2n"),_=i("4IlW"),T=i("TSYQ"),S=i.n(T),O=i("6cGi"),I=i("bX4T"),F=i("8XRh"),P=function(Sr){var En=Sr.className,fr=Sr.customizeIcon,kr=Sr.customizeIconProps,Vr=Sr.onMouseDown,un=Sr.onClick,kn=Sr.children,_t;return typeof fr=="function"?_t=fr(kr):_t=fr,e.createElement("span",{className:En,onMouseDown:function(Lr){Lr.preventDefault(),Vr&&Vr(Lr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:un,"aria-hidden":!0},_t!==void 0?_t:e.createElement("span",{className:S()(En.split(/\s+/).map(function(Or){return"".concat(Or,"-icon")}))},kn))},B=P,k=i("c+Xe"),G=function(Sr,En){var fr=Sr.prefixCls,kr=Sr.id,Vr=Sr.inputElement,un=Sr.disabled,kn=Sr.tabIndex,_t=Sr.autoFocus,Or=Sr.autoComplete,Lr=Sr.editable,en=Sr.accessibilityIndex,Sn=Sr.value,On=Sr.maxLength,wn=Sr.onKeyDown,$n=Sr.onMouseDown,jn=Sr.onChange,pi=Sr.onPaste,Mi=Sr.onCompositionStart,yi=Sr.onCompositionEnd,Oi=Sr.open,zi=Sr.attrs,ea=Vr||e.createElement("input",null),Xi=ea,Wi=Xi.ref,ji=Xi.props,Ji=ji.onKeyDown,ca=ji.onChange,Ca=ji.onMouseDown,na=ji.onCompositionStart,Pa=ji.onCompositionEnd,La=ji.style;return ea=e.cloneElement(ea,Object(w.a)(Object(w.a)({id:kr,ref:Object(k.a)(En,Wi),disabled:un,tabIndex:kn,autoComplete:Or||"off",type:"search",autoFocus:_t,className:"".concat(fr,"-selection-search-input"),style:Object(w.a)(Object(w.a)({},La),{},{opacity:Lr?null:0}),role:"combobox","aria-expanded":Oi,"aria-haspopup":"listbox","aria-owns":"".concat(kr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(kr,"_list"),"aria-activedescendant":"".concat(kr,"_list_").concat(en)},zi),{},{value:Lr?Sn:"",maxLength:On,readOnly:!Lr,unselectable:Lr?null:"on",onKeyDown:function(ga){wn(ga),Ji&&Ji(ga)},onMouseDown:function(ga){$n(ga),Ca&&Ca(ga)},onChange:function(ga){jn(ga),ca&&ca(ga)},onCompositionStart:function(ga){Mi(ga),na&&na(ga)},onCompositionEnd:function(ga){yi(ga),Pa&&Pa(ga)},onPaste:pi})),ea},M=e.forwardRef(G);M.displayName="Input";var j=M;function K(Ir){return Array.isArray(Ir)?Ir:Ir!==void 0?[Ir]:[]}function z(Ir,Sr){var En=Sr.labelInValue,fr=Sr.combobox;if(Ir===void 0||Ir===""&&fr)return[];var kr=Array.isArray(Ir)?Ir:[Ir];return En?kr.map(function(Vr){var un=Vr.key,kn=Vr.value;return kn!==void 0?kn:un}):kr}function V(Ir,Sr){var En=Sr.optionLabelProp,fr=Sr.labelInValue,kr=Sr.prevValue,Vr=Sr.options,un=Sr.getLabeledValue,kn=Ir;return fr&&(kn=kn.map(function(_t){return un(_t,{options:Vr,prevValue:kr,labelInValue:fr,optionLabelProp:En})})),kn}function Q(Ir,Sr){var En=Object(g.a)(Sr),fr;for(fr=Ir.length-1;fr>=0&&Ir[fr].disabled;fr-=1);var kr=null;return fr!==-1&&(kr=En[fr],En.splice(fr,1)),{values:En,removedValue:kr}}var X=typeof window!="undefined"&&window.document&&window.document.documentElement,te=X,$=0;function le(){var Ir;return te?(Ir=$,$+=1):Ir="TEST_OR_SSR",Ir}function re(Ir,Sr){te?e.useLayoutEffect(Ir,Sr):e.useEffect(Ir,Sr)}var Se="__RC_SELECT_MAX_REST_COUNT__",Re=function(Sr){var En=Sr.id,fr=Sr.prefixCls,kr=Sr.values,Vr=Sr.open,un=Sr.searchValue,kn=Sr.inputRef,_t=Sr.placeholder,Or=Sr.disabled,Lr=Sr.mode,en=Sr.showSearch,Sn=Sr.autoFocus,On=Sr.autoComplete,wn=Sr.accessibilityIndex,$n=Sr.tabIndex,jn=Sr.removeIcon,pi=Sr.choiceTransitionName,Mi=Sr.maxTagCount,yi=Sr.maxTagTextLength,Oi=Sr.maxTagPlaceholder,zi=Oi===void 0?function(to){return"+ ".concat(to.length," ...")}:Oi,ea=Sr.tagRender,Xi=Sr.onSelect,Wi=Sr.onInputChange,ji=Sr.onInputPaste,Ji=Sr.onInputKeyDown,ca=Sr.onInputMouseDown,Ca=Sr.onInputCompositionStart,na=Sr.onInputCompositionEnd,Pa=Object(e.useState)(!1),La=Object(b.a)(Pa,2),va=La[0],ga=La[1],Oa=e.useRef(null),Aa=Object(e.useState)(0),Xa=Object(b.a)(Aa,2),_a=Xa[0],Va=Xa[1],Pi=Object(e.useState)(!1),io=Object(b.a)(Pi,2),oo=io[0],Qo=io[1];e.useEffect(function(){ga(!0)},[]);var mo=Vr||Lr==="tags"?un:"",To=Lr==="tags"||en&&(Vr||oo);re(function(){Va(Oa.current.scrollWidth)},[mo]);var ao=kr,So;typeof Mi=="number"&&(So=kr.length-Mi,ao=kr.slice(0,Mi)),typeof yi=="number"&&(ao=ao.map(function(to){var Jo=to.label,Uo=Object(C.a)(to,["label"]),wo=Jo;if(typeof Jo=="string"||typeof Jo=="number"){var ts=String(wo);ts.length>yi&&(wo="".concat(ts.slice(0,yi),"..."))}return Object(w.a)(Object(w.a)({},Uo),{},{label:wo})})),So>0&&ao.push({key:Se,label:typeof zi=="function"?zi(kr.slice(Mi)):zi});var bo=e.createElement(F.a,{component:!1,keys:ao,motionName:pi,motionAppear:va},function(to){var Jo=to.key,Uo=to.label,wo=to.value,ts=to.disabled,Ia=to.className,Oo=to.style,Io=Jo||wo,os=!Or&&Jo!==Se&&!ts,xo=function(_o){_o.preventDefault(),_o.stopPropagation()},rs=function(_o){_o&&_o.stopPropagation(),Xi(wo,{selected:!1})};return typeof ea=="function"?e.createElement("span",{key:Io,onMouseDown:xo,className:Ia,style:Oo},ea({label:Uo,value:wo,disabled:ts,closable:os,onClose:rs})):e.createElement("span",{key:Io,className:S()(Ia,"".concat(fr,"-selection-item"),Object(E.a)({},"".concat(fr,"-selection-item-disabled"),ts)),style:Oo},e.createElement("span",{className:"".concat(fr,"-selection-item-content")},Uo),os&&e.createElement(B,{className:"".concat(fr,"-selection-item-remove"),onMouseDown:xo,onClick:rs,customizeIcon:jn},"\xD7"))});return e.createElement(e.Fragment,null,bo,e.createElement("span",{className:"".concat(fr,"-selection-search"),style:{width:_a},onFocus:function(){Qo(!0)},onBlur:function(){Qo(!1)}},e.createElement(j,{ref:kn,open:Vr,prefixCls:fr,id:En,inputElement:null,disabled:Or,autoFocus:Sn,autoComplete:On,editable:To,accessibilityIndex:wn,value:mo,onKeyDown:Ji,onMouseDown:ca,onChange:Wi,onPaste:ji,onCompositionStart:Ca,onCompositionEnd:na,tabIndex:$n,attrs:Object(I.a)(Sr,!0)}),e.createElement("span",{ref:Oa,className:"".concat(fr,"-selection-search-mirror"),"aria-hidden":!0},mo,"\xA0")),!kr.length&&!mo&&e.createElement("span",{className:"".concat(fr,"-selection-placeholder")},_t))},Pe=Re,Je=function(Sr){var En=Sr.inputElement,fr=Sr.prefixCls,kr=Sr.id,Vr=Sr.inputRef,un=Sr.disabled,kn=Sr.autoFocus,_t=Sr.autoComplete,Or=Sr.accessibilityIndex,Lr=Sr.mode,en=Sr.open,Sn=Sr.values,On=Sr.placeholder,wn=Sr.tabIndex,$n=Sr.showSearch,jn=Sr.searchValue,pi=Sr.activeValue,Mi=Sr.maxLength,yi=Sr.onInputKeyDown,Oi=Sr.onInputMouseDown,zi=Sr.onInputChange,ea=Sr.onInputPaste,Xi=Sr.onInputCompositionStart,Wi=Sr.onInputCompositionEnd,ji=e.useState(!1),Ji=Object(b.a)(ji,2),ca=Ji[0],Ca=Ji[1],na=Lr==="combobox",Pa=na||$n,La=Sn[0],va=jn||"";na&&pi&&!ca&&(va=pi),e.useEffect(function(){na&&Ca(!1)},[na,pi]);var ga=Lr!=="combobox"&&!en?!1:!!va,Oa=La&&(typeof La.label=="string"||typeof La.label=="number")?La.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(fr,"-selection-search")},e.createElement(j,{ref:Vr,prefixCls:fr,id:kr,open:en,inputElement:En,disabled:un,autoFocus:kn,autoComplete:_t,editable:Pa,accessibilityIndex:Or,value:va,onKeyDown:yi,onMouseDown:Oi,onChange:function(Xa){Ca(!0),zi(Xa)},onPaste:ea,onCompositionStart:Xi,onCompositionEnd:Wi,tabIndex:wn,attrs:Object(I.a)(Sr,!0),maxLength:na?Mi:void 0})),!na&&La&&!ga&&e.createElement("span",{className:"".concat(fr,"-selection-item"),title:Oa},La.label),!La&&!ga&&e.createElement("span",{className:"".concat(fr,"-selection-placeholder")},On))},Ge=Je;function ct(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Sr=e.useRef(null),En=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(En.current)}},[]);function fr(kr){(kr||Sr.current===null)&&(Sr.current=kr),window.clearTimeout(En.current),En.current=window.setTimeout(function(){Sr.current=null},Ir)}return[function(){return Sr.current},fr]}var Ue=function(Sr,En){var fr=Object(e.useRef)(null),kr=Object(e.useRef)(!1),Vr=Sr.prefixCls,un=Sr.multiple,kn=Sr.open,_t=Sr.mode,Or=Sr.showSearch,Lr=Sr.tokenWithEnter,en=Sr.onSearch,Sn=Sr.onSearchSubmit,On=Sr.onToggleOpen,wn=Sr.onInputKeyDown,$n=Sr.domRef;e.useImperativeHandle(En,function(){return{focus:function(){fr.current.focus()},blur:function(){fr.current.blur()}}});var jn=ct(0),pi=Object(b.a)(jn,2),Mi=pi[0],yi=pi[1],Oi=function(ga){var Oa=ga.which;(Oa===_.a.UP||Oa===_.a.DOWN)&&ga.preventDefault(),wn&&wn(ga),Oa===_.a.ENTER&&_t==="tags"&&!kr.current&&!kn&&Sn(ga.target.value),[_.a.SHIFT,_.a.TAB,_.a.BACKSPACE,_.a.ESC].includes(Oa)||On(!0)},zi=function(){yi(!0)},ea=Object(e.useRef)(null),Xi=function(ga){en(ga,!0,kr.current)!==!1&&On(!0)},Wi=function(){kr.current=!0},ji=function(){kr.current=!1},Ji=function(ga){var Oa=ga.target.value;if(Lr&&ea.current&&/[\r\n]/.test(ea.current)){var Aa=ea.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Oa=Oa.replace(Aa,ea.current)}ea.current=null,Xi(Oa)},ca=function(ga){var Oa=ga.clipboardData,Aa=Oa.getData("text");ea.current=Aa},Ca=function(ga){var Oa=ga.target;if(Oa!==fr.current){var Aa=document.body.style.msTouchAction!==void 0;Aa?setTimeout(function(){fr.current.focus()}):fr.current.focus()}},na=function(ga){var Oa=Mi();ga.target!==fr.current&&!Oa&&ga.preventDefault(),(_t!=="combobox"&&(!Or||!Oa)||!kn)&&(kn&&en("",!0,!1),On())},Pa={inputRef:fr,onInputKeyDown:Oi,onInputMouseDown:zi,onInputChange:Ji,onInputPaste:ca,onInputCompositionStart:Wi,onInputCompositionEnd:ji},La=un?e.createElement(Pe,Object.assign({},Sr,Pa)):e.createElement(Ge,Object.assign({},Sr,Pa));return e.createElement("div",{ref:$n,className:"".concat(Vr,"-selector"),onClick:Ca,onMouseDown:na},La)},ae=e.forwardRef(Ue);ae.displayName="Selector";var lt=ae,pe=i("uciX"),J=function(Sr){var En=typeof Sr!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:En,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:En,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:En,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:En,adjustY:1}}}},Y=function(Sr,En){var fr=Sr.prefixCls,kr=Sr.disabled,Vr=Sr.visible,un=Sr.children,kn=Sr.popupElement,_t=Sr.containerWidth,Or=Sr.animation,Lr=Sr.transitionName,en=Sr.dropdownStyle,Sn=Sr.dropdownClassName,On=Sr.direction,wn=On===void 0?"ltr":On,$n=Sr.dropdownMatchSelectWidth,jn=$n===void 0?!0:$n,pi=Sr.dropdownRender,Mi=Sr.dropdownAlign,yi=Sr.getPopupContainer,Oi=Sr.empty,zi=Sr.getTriggerDOMNode,ea=Object(C.a)(Sr,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),Xi="".concat(fr,"-dropdown"),Wi=kn;pi&&(Wi=pi(kn));var ji=e.useMemo(function(){return J(jn)},[jn]),Ji=Or?"".concat(Xi,"-").concat(Or):Lr,ca=e.useRef(null);e.useImperativeHandle(En,function(){return{getPopupElement:function(){return ca.current}}});var Ca=Object(w.a)({minWidth:_t},en);return typeof jn=="number"?Ca.width=jn:jn&&(Ca.width=_t),e.createElement(pe.a,Object.assign({},ea,{showAction:[],hideAction:[],popupPlacement:wn==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:ji,prefixCls:Xi,popupTransitionName:Ji,popup:e.createElement("div",{ref:ca},Wi),popupAlign:Mi,popupVisible:Vr,getPopupContainer:yi,popupClassName:S()(Sn,Object(E.a)({},"".concat(Xi,"-empty"),Oi)),popupStyle:Ca,getTriggerDOMNode:zi}),un)},ee=e.forwardRef(Y);ee.displayName="SelectTrigger";var fe=ee,we="RC_SELECT_INTERNAL_PROPS_MARK";function Ce(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Sr=e.useState(!1),En=Object(b.a)(Sr,2),fr=En[0],kr=En[1],Vr=e.useRef(null),un=function(){window.clearTimeout(Vr.current)};e.useEffect(function(){return un},[]);var kn=function(Or,Lr){un(),Vr.current=window.setTimeout(function(){kr(Or),Lr&&Lr()},Ir)};return[fr,kn,un]}var _e=i("T5bk"),he=i("Kwbf");function ye(Ir,Sr){var En=Ir.key,fr;return"value"in Ir&&(fr=Ir.value),En!=null?En:fr!==void 0?fr:"rc-index-key-".concat(Sr)}function Le(Ir){var Sr=[];function En(fr,kr){fr.forEach(function(Vr){kr||!("options"in Vr)?Sr.push({key:ye(Vr,Sr.length),groupOption:kr,data:Vr}):(Sr.push({key:ye(Vr,Sr.length),group:!0,data:Vr}),En(Vr.options,!0))})}return En(Ir,!1),Sr}function tt(Ir){var Sr=Object(w.a)({},Ir);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 gt(Ir,Sr){var En=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},fr=En.prevValueOptions,kr=fr===void 0?[]:fr,Vr=new Map;return Sr.forEach(function(un){if(!un.group){var kn=un.data;Vr.set(kn.value,kn)}}),Ir.map(function(un){var kn=Vr.get(un);return kn||(kn=Object(w.a)({},kr.find(function(_t){return _t._INTERNAL_OPTION_VALUE_===un}))),tt(kn)})}var at=function(Sr,En){var fr=En.options,kr=En.prevValue,Vr=En.labelInValue,un=En.optionLabelProp,kn=gt([Sr],fr)[0],_t={value:Sr},Or,Lr=K(kr);return Vr&&(Or=Lr.find(function(en){return Object(A.a)(en)==="object"&&"value"in en?en.value===Sr:en.key===Sr})),Or&&Object(A.a)(Or)==="object"&&"label"in Or?(_t.label=Or.label,kn&&typeof Or.label=="string"&&typeof kn[un]=="string"&&Or.label.trim()!==kn[un].trim()&&Object(he.a)(!1,"`label` of `value` is not same as `label` in Select options.")):kn&&un in kn?_t.label=kn[un]:_t.label=Sr,_t.key=_t.value,_t};function Fe(Ir){return K(Ir).join("")}function mt(Ir){return function(Sr,En){var fr=Sr.toLowerCase();if("options"in En)return Fe(En.label).toLowerCase().includes(fr);var kr=En[Ir],Vr=Fe(kr).toLowerCase();return Vr.includes(fr)}}function et(Ir,Sr,En){var fr=En.optionFilterProp,kr=En.filterOption,Vr=[],un;return kr===!1?Object(g.a)(Sr):(typeof kr=="function"?un=kr:un=mt(fr),Sr.forEach(function(kn){if("options"in kn){var _t=un(Ir,kn);if(_t)Vr.push(kn);else{var Or=kn.options.filter(function(Lr){return un(Ir,Lr)});Or.length&&Vr.push(Object(w.a)(Object(w.a)({},kn),{},{options:Or}))}return}un(Ir,tt(kn))&&Vr.push(kn)}),Vr)}function St(Ir,Sr){if(!Sr||!Sr.length)return null;var En=!1;function fr(Vr,un){var kn=Object(_e.a)(un),_t=kn[0],Or=kn.slice(1);if(!_t)return[Vr];var Lr=Vr.split(_t);return En=En||Lr.length>1,Lr.reduce(function(en,Sn){return[].concat(Object(g.a)(en),Object(g.a)(fr(Sn,Or)))},[]).filter(function(en){return en})}var kr=fr(Ir,Sr);return En?kr:null}function jt(Ir,Sr){var En=gt([Ir],Sr)[0];return En.disabled}function Mt(Ir,Sr,En,fr){var kr=K(Sr).slice().sort(),Vr=Object(g.a)(Ir),un=new Set;return Ir.forEach(function(kn){kn.options?kn.options.forEach(function(_t){un.add(_t.value)}):un.add(kn.value)}),kr.forEach(function(kn){var _t=fr?kn.value:kn;if(!un.has(_t)){var Or;Vr.push(fr?(Or={},Object(E.a)(Or,En,kn.label),Object(E.a)(Or,"value",_t),Or):{value:_t})}}),Vr}function Ot(Ir,Sr,En){var fr=e.useRef(null);fr.current={elements:Ir.filter(function(kr){return kr}),open:Sr,triggerOpen:En},e.useEffect(function(){function kr(Vr){var un=Vr.target;fr.current.open&&fr.current.elements.every(function(kn){return!kn.contains(un)&&kn!==un})&&fr.current.triggerOpen(!1)}return window.addEventListener("mousedown",kr),function(){return window.removeEventListener("mousedown",kr)}},[])}function Bt(Ir){var Sr=e.useRef(Ir),En=e.useMemo(function(){var fr=new Map;Sr.current.forEach(function(Vr){var un=Vr.value,kn=Vr.label;un!==kn&&fr.set(un,kn)});var kr=Ir.map(function(Vr){var un=fr.get(Vr.value);return Vr.value===Vr.label&&un?Object(w.a)(Object(w.a)({},Vr),{},{label:un}):Vr});return Sr.current=kr,kr},[Ir]);return En}function Ke(Ir,Sr){var En=e.useRef(null),fr=e.useMemo(function(){var Vr=new Map;return Sr.forEach(function(un){var kn=un.data.value;Vr.set(kn,un)}),Vr},[Ir,Sr]);En.current=fr;var kr=function(un){return un.map(function(kn){return En.current.get(kn)}).filter(Boolean)};return kr}var de=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function se(Ir){var Sr=Ir.prefixCls,En=Ir.components.optionList,fr=Ir.convertChildrenToData,kr=Ir.flattenOptions,Vr=Ir.getLabeledValue,un=Ir.filterOptions,kn=Ir.isValueDisabled,_t=Ir.findValueOption,Or=Ir.warningProps,Lr=Ir.fillOptionsWithMissingValue,en=Ir.omitDOMProps;function Sn(wn,$n){var jn,pi=wn.prefixCls,Mi=pi===void 0?Sr:pi,yi=wn.className,Oi=wn.id,zi=wn.open,ea=wn.defaultOpen,Xi=wn.options,Wi=wn.children,ji=wn.mode,Ji=wn.value,ca=wn.defaultValue,Ca=wn.labelInValue,na=wn.showSearch,Pa=wn.inputValue,La=wn.searchValue,va=wn.filterOption,ga=wn.filterSort,Oa=wn.optionFilterProp,Aa=Oa===void 0?"value":Oa,Xa=wn.autoClearSearchValue,_a=Xa===void 0?!0:Xa,Va=wn.onSearch,Pi=wn.allowClear,io=wn.clearIcon,oo=wn.showArrow,Qo=wn.inputIcon,mo=wn.menuItemSelectedIcon,To=wn.disabled,ao=wn.loading,So=wn.defaultActiveFirstOption,bo=wn.notFoundContent,to=bo===void 0?"Not Found":bo,Jo=wn.optionLabelProp,Uo=wn.backfill,wo=wn.getInputElement,ts=wn.getPopupContainer,Ia=wn.listHeight,Oo=Ia===void 0?200:Ia,Io=wn.listItemHeight,os=Io===void 0?20:Io,xo=wn.animation,rs=wn.transitionName,Ho=wn.virtual,_o=wn.dropdownStyle,uo=wn.dropdownClassName,Ha=wn.dropdownMatchSelectWidth,ft=wn.dropdownRender,Tr=wn.dropdownAlign,qr=wn.showAction,Yr=qr===void 0?[]:qr,Yn=wn.direction,dn=wn.tokenSeparators,Gr=wn.tagRender,ri=wn.onPopupScroll,rn=wn.onDropdownVisibleChange,Hn=wn.onFocus,li=wn.onBlur,ci=wn.onKeyUp,si=wn.onKeyDown,Ti=wn.onMouseDown,mi=wn.onChange,vi=wn.onSelect,Li=wn.onDeselect,ia=wn.onClear,Ki=wn.internalProps,fa=Ki===void 0?{}:Ki,Ya=Object(C.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"]),xa=fa.mark===we,wa=en?en(Ya):Ya;de.forEach(function(jo){delete wa[jo]});var Da=Object(e.useRef)(null),ja=Object(e.useRef)(null),ko=Object(e.useRef)(null),ro=Object(e.useRef)(null),pa=Object(e.useMemo)(function(){return(dn||[]).some(function(jo){return[`
|
|
|
`,`\r
|
|
|
`].includes(jo)})},[dn]),Ea=Ce(),Fa=Object(b.a)(Ea,3),Ka=Fa[0],lo=Fa[1],so=Fa[2],Co=Object(e.useState)(),Lo=Object(b.a)(Co,2),is=Lo[0],cs=Lo[1];Object(e.useEffect)(function(){cs("rc_select_".concat(le()))},[]);var Rs=Oi||is,Ko=Jo;Ko===void 0&&(Ko=Xi?"label":"children");var as=ji==="combobox"?!1:Ca,co=ji==="tags"||ji==="multiple",Ao=na!==void 0?na:co||ji==="combobox",$a=Object(e.useRef)(null);e.useImperativeHandle($n,function(){return{focus:ko.current.focus,blur:ko.current.blur}});var ss=Object(O.a)(ca,{value:Ji}),_s=Object(b.a)(ss,2),Fo=_s[0],il=_s[1],Eo=Object(e.useMemo)(function(){return z(Fo,{labelInValue:as,combobox:ji==="combobox"})},[Fo,as]),zo=Object(e.useMemo)(function(){return new Set(Eo)},[Eo]),Fs=Object(e.useState)(null),ms=Object(b.a)(Fs,2),hs=ms[0],bn=ms[1],Ns=Object(e.useState)(""),Ll=Object(b.a)(Ns,2),el=Ll[0],Gs=Ll[1],ds=el;ji==="combobox"&&Fo!==void 0?ds=Fo:La!==void 0?ds=La:Pa&&(ds=Pa);var ks=Object(e.useMemo)(function(){var jo=Xi;return jo===void 0&&(jo=fr(Wi)),ji==="tags"&&Lr&&(jo=Lr(jo,Fo,Ko,Ca)),jo||[]},[Xi,Wi,ji,Fo]),Qs=Object(e.useMemo)(function(){return kr(ks,wn)},[ks]),tl=Ke(Eo,Qs),xs=Object(e.useMemo)(function(){if(!ds||!Ao)return Object(g.a)(ks);var jo=un(ds,ks,{optionFilterProp:Aa,filterOption:ji==="combobox"&&va===void 0?function(){return!0}:va});return ji==="tags"&&jo.every(function(yo){return yo[Aa]!==ds})&&jo.unshift({value:ds,label:ds,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),ga&&Array.isArray(jo)?Object(g.a)(jo).sort(ga):jo},[ks,ds,ji,Ao,ga]),Bs=Object(e.useMemo)(function(){return kr(xs,wn)},[xs]);Object(e.useEffect)(function(){ro.current&&ro.current.scrollTo&&ro.current.scrollTo(0)},[ds]);var al=Object(e.useMemo)(function(){var jo=Eo.map(function(yo){var qo=tl([yo]),ps=Vr(yo,{options:qo,prevValue:Fo,labelInValue:as,optionLabelProp:Ko});return Object(w.a)(Object(w.a)({},ps),{},{disabled:kn(yo,qo)})});return!ji&&jo.length===1&&jo[0].value===null&&jo[0].label===null?[]:jo},[Fo,ks,ji]);al=Bt(al);var Js=function(yo,qo,ps){var Is=tl([yo]),es=_t([yo],Is)[0];if(!fa.skipTriggerSelect){var Ls=as?Vr(yo,{options:Is,prevValue:Fo,labelInValue:as,optionLabelProp:Ko}):yo;qo&&vi?vi(Ls,es):!qo&&Li&&Li(Ls,es)}xa&&(qo&&fa.onRawSelect?fa.onRawSelect(yo,es,ps):!qo&&fa.onRawDeselect&&fa.onRawDeselect(yo,es,ps))},Vo=Object(e.useState)([]),No=Object(b.a)(Vo,2),fs=No[0],Ds=No[1],go=function(yo){if(xa&&fa.skipTriggerChange)return;var qo=tl(yo),ps=V(Array.from(yo),{labelInValue:as,options:qo,getLabeledValue:Vr,prevValue:Fo,optionLabelProp:Ko}),Is=co?ps:ps[0];if(mi&&(Eo.length!==0||ps.length!==0)){var es=_t(yo,qo,{prevValueOptions:fs});Ds(es.map(function(Ls,Ps){var ml=Object(w.a)({},Ls);return Object.defineProperty(ml,"_INTERNAL_OPTION_VALUE_",{get:function(){return yo[Ps]}}),ml})),mi(Is,co?es:es[0])}il(Is)},Ht=function(yo,qo){var ps=qo.selected,Is=qo.source;if(To)return;var es;co?(es=new Set(Eo),ps?es.add(yo):es.delete(yo)):(es=new Set,es.add(yo)),(co||!co&&Array.from(Eo)[0]!==yo)&&go(Array.from(es)),Js(yo,!co||ps,Is),ji==="combobox"?(Gs(String(yo)),bn("")):(!co||_a)&&(Gs(""),bn(""))},ar=function(yo,qo){Ht(yo,Object(w.a)(Object(w.a)({},qo),{},{source:"option"}))},In=function(yo,qo){Ht(yo,Object(w.a)(Object(w.a)({},qo),{},{source:"selection"}))},hi=ji==="combobox"&&wo&&wo()||null,Rt=Object(O.a)(void 0,{defaultValue:ea,value:zi}),ce=Object(b.a)(Rt,2),xe=ce[0],Ie=ce[1],Qe=xe,kt=!to&&!xs.length;(To||kt&&Qe&&ji==="combobox")&&(Qe=!1);var or=kt?!1:Qe,Qr=function(yo){var qo=yo!==void 0?yo:!Qe;xe!==qo&&!To&&(Ie(qo),rn&&rn(qo))};Ot([Da.current,ja.current&&ja.current.getPopupElement()],or,Qr);var fn=function(yo,qo,ps){var Is=!0,es=yo;bn(null);var Ls=ps?null:St(yo,dn),Ps=Ls;if(ji==="combobox")qo&&go([es]);else if(Ls){es="",ji!=="tags"&&(Ps=Ls.map(function(Rl){var _l=Qs.find(function(Bl){var jl=Bl.data;return jl[Ko]===Rl});return _l?_l.data.value:null}).filter(function(Rl){return Rl!==null}));var ml=Array.from(new Set([].concat(Object(g.a)(Eo),Object(g.a)(Ps))));go(ml),ml.forEach(function(Rl){Js(Rl,!0,"input")}),Qr(!1),Is=!1}return Gs(es),Va&&ds!==es&&Va(es),Is},Ln=function(yo){var qo=Array.from(new Set([].concat(Object(g.a)(Eo),[yo])));go(qo),qo.forEach(function(ps){Js(ps,!0,"input")}),Gs("")};Object(e.useEffect)(function(){xe&&!!To&&Ie(!1)},[To]),Object(e.useEffect)(function(){!Qe&&!co&&ji!=="combobox"&&fn("",!1,!1)},[Qe]);var ui=ct(),wi=Object(b.a)(ui,2),gi=wi[0],Qi=wi[1],sa=function(yo){var qo=gi(),ps=yo.which;if(!Qe&&ps===_.a.ENTER&&Qr(!0),Qi(!!ds),ps===_.a.BACKSPACE&&!qo&&co&&!ds&&Eo.length){var Is=Q(al,Eo);Is.removedValue!==null&&(go(Is.values),Js(Is.removedValue,!1,"input"))}for(var es=arguments.length,Ls=new Array(es>1?es-1:0),Ps=1;Ps<es;Ps++)Ls[Ps-1]=arguments[Ps];if(Qe&&ro.current){var ml;(ml=ro.current).onKeyDown.apply(ml,[yo].concat(Ls))}si&&si.apply(void 0,[yo].concat(Ls))},Ua=function(yo){for(var qo=arguments.length,ps=new Array(qo>1?qo-1:0),Is=1;Is<qo;Is++)ps[Is-1]=arguments[Is];if(Qe&&ro.current){var es;(es=ro.current).onKeyUp.apply(es,[yo].concat(ps))}ci&&ci.apply(void 0,[yo].concat(ps))},no=Object(e.useRef)(!1),Wo=function(){lo(!0),To||(Hn&&!no.current&&Hn.apply(void 0,arguments),Yr.includes("focus")&&Qr(!0)),no.current=!0},Zo=function(){if(lo(!1,function(){no.current=!1,Qr(!1)}),To)return;ds&&(ji==="tags"?(fn("",!1,!1),go(Array.from(new Set([].concat(Object(g.a)(Eo),[ds]))))):ji==="multiple"&&Gs("")),li&&li.apply(void 0,arguments)},Bo=[];Object(e.useEffect)(function(){return function(){Bo.forEach(function(jo){return clearTimeout(jo)}),Bo.splice(0,Bo.length)}},[]);var Es=function(yo){var qo=yo.target,ps=ja.current&&ja.current.getPopupElement();if(ps&&ps.contains(qo)){var Is=setTimeout(function(){var ml=Bo.indexOf(Is);ml!==-1&&Bo.splice(ml,1),so(),ps.contains(document.activeElement)||ko.current.focus()});Bo.push(Is)}if(Ti){for(var es=arguments.length,Ls=new Array(es>1?es-1:0),Ps=1;Ps<es;Ps++)Ls[Ps-1]=arguments[Ps];Ti.apply(void 0,[yo].concat(Ls))}},As=Object(e.useState)(0),$o=Object(b.a)(As,2),Do=$o[0],vo=$o[1],Ms=So!==void 0?So:ji!=="combobox",rl=function(yo,qo){var ps=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Is=ps.source,es=Is===void 0?"keyboard":Is;vo(qo),Uo&&ji==="combobox"&&yo!==null&&es==="keyboard"&&bn(String(yo))},gs=Object(e.useState)(null),Ra=Object(b.a)(gs,2),dl=Ra[0],fl=Ra[1],Us=Object(e.useState)({}),Os=Object(b.a)(Us,2),Xs=Os[1];function Ql(){Xs({})}re(function(){if(or){var jo=Math.ceil(Da.current.offsetWidth);dl!==jo&&fl(jo)}},[or]);var Ul=e.createElement(En,{ref:ro,prefixCls:Mi,id:Rs,open:Qe,childrenAsData:!Xi,options:xs,flattenOptions:Bs,multiple:co,values:zo,height:Oo,itemHeight:os,onSelect:ar,onToggleOpen:Qr,onActiveValue:rl,defaultActiveFirstOption:Ms,notFoundContent:to,onScroll:ri,searchValue:ds,menuItemSelectedIcon:mo,virtual:Ho!==!1&&Ha!==!1,onMouseEnter:Ql}),wl,Ts=function(){xa&&fa.onClear&&fa.onClear(),ia&&ia(),go([]),fn("",!1,!1)};!To&&Pi&&(Eo.length||ds)&&(wl=e.createElement(B,{className:"".concat(Mi,"-clear"),onMouseDown:Ts,customizeIcon:io},"\xD7"));var Ws=oo!==void 0?oo:ao||!co&&ji!=="combobox",Tl;Ws&&(Tl=e.createElement(B,{className:S()("".concat(Mi,"-arrow"),Object(E.a)({},"".concat(Mi,"-arrow-loading"),ao)),customizeIcon:Qo,customizeIconProps:{loading:ao,searchValue:ds,open:Qe,focused:Ka,showSearch:Ao}}));var pl=S()(Mi,yi,(jn={},Object(E.a)(jn,"".concat(Mi,"-focused"),Ka),Object(E.a)(jn,"".concat(Mi,"-multiple"),co),Object(E.a)(jn,"".concat(Mi,"-single"),!co),Object(E.a)(jn,"".concat(Mi,"-allow-clear"),Pi),Object(E.a)(jn,"".concat(Mi,"-show-arrow"),Ws),Object(E.a)(jn,"".concat(Mi,"-disabled"),To),Object(E.a)(jn,"".concat(Mi,"-loading"),ao),Object(E.a)(jn,"".concat(Mi,"-open"),Qe),Object(E.a)(jn,"".concat(Mi,"-customize-input"),hi),Object(E.a)(jn,"".concat(Mi,"-show-search"),Ao),jn));return e.createElement("div",Object.assign({className:pl},wa,{ref:Da,onMouseDown:Es,onKeyDown:sa,onKeyUp:Ua,onFocus:Wo,onBlur:Zo}),Ka&&!Qe&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Eo.join(", "))),e.createElement(fe,{ref:ja,disabled:To,prefixCls:Mi,visible:or,popupElement:Ul,containerWidth:dl,animation:xo,transitionName:rs,dropdownStyle:_o,dropdownClassName:uo,direction:Yn,dropdownMatchSelectWidth:Ha,dropdownRender:ft,dropdownAlign:Tr,getPopupContainer:ts,empty:!ks.length,getTriggerDOMNode:function(){return $a.current}},e.createElement(lt,Object.assign({},wn,{domRef:$a,prefixCls:Mi,inputElement:hi,ref:ko,id:Rs,showSearch:Ao,mode:ji,accessibilityIndex:Do,multiple:co,tagRender:Gr,values:al,open:Qe,onToggleOpen:Qr,searchValue:ds,activeValue:hs,onSearch:fn,onSearchSubmit:Ln,onSelect:In,tokenWithEnter:pa}))),Tl,wl)}var On=e.forwardRef(Sn);return On}var ut=i("Zm9Q"),qe=i("JX7q"),me=e.createContext(null),Wt=function(Sr){var En=Sr.prefixCls,fr=Sr.level,kr=Sr.isStart,Vr=Sr.isEnd;if(!fr)return null;for(var un="".concat(En,"-indent-unit"),kn=[],_t=0;_t<fr;_t+=1){var Or;kn.push(e.createElement("span",{key:_t,className:S()(un,(Or={},Object(E.a)(Or,"".concat(un,"-start"),kr[_t]),Object(E.a)(Or,"".concat(un,"-end"),Vr[_t]),Or))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(En,"-indent")},kn)},dr=Wt,vt="open",rr="close",ur="---",mn=function(Ir){Object(c.a)(En,Ir);var Sr=Object(h.a)(En);function En(){var fr;return Object(r.a)(this,En),fr=Sr.apply(this,arguments),fr.state={dragNodeHighlight:!1},fr.onSelectorClick=function(kr){var Vr=fr.props.context.onNodeClick;Vr(kr,zt(fr.props)),fr.isSelectable()?fr.onSelect(kr):fr.onCheck(kr)},fr.onSelectorDoubleClick=function(kr){var Vr=fr.props.context.onNodeDoubleClick;Vr(kr,zt(fr.props))},fr.onSelect=function(kr){if(fr.isDisabled())return;var Vr=fr.props.context.onNodeSelect;kr.preventDefault(),Vr(kr,zt(fr.props))},fr.onCheck=function(kr){if(fr.isDisabled())return;var Vr=fr.props,un=Vr.disableCheckbox,kn=Vr.checked,_t=fr.props.context.onNodeCheck;if(!fr.isCheckable()||un)return;kr.preventDefault();var Or=!kn;_t(kr,zt(fr.props),Or)},fr.onMouseEnter=function(kr){var Vr=fr.props.context.onNodeMouseEnter;Vr(kr,zt(fr.props))},fr.onMouseLeave=function(kr){var Vr=fr.props.context.onNodeMouseLeave;Vr(kr,zt(fr.props))},fr.onContextMenu=function(kr){var Vr=fr.props.context.onNodeContextMenu;Vr(kr,zt(fr.props))},fr.onDragStart=function(kr){var Vr=fr.props.context.onNodeDragStart;kr.stopPropagation(),fr.setState({dragNodeHighlight:!0}),Vr(kr,Object(qe.a)(fr));try{kr.dataTransfer.setData("text/plain","")}catch(un){}},fr.onDragEnter=function(kr){var Vr=fr.props.context.onNodeDragEnter;kr.preventDefault(),kr.stopPropagation(),Vr(kr,Object(qe.a)(fr))},fr.onDragOver=function(kr){var Vr=fr.props.context.onNodeDragOver;kr.preventDefault(),kr.stopPropagation(),Vr(kr,Object(qe.a)(fr))},fr.onDragLeave=function(kr){var Vr=fr.props.context.onNodeDragLeave;kr.stopPropagation(),Vr(kr,Object(qe.a)(fr))},fr.onDragEnd=function(kr){var Vr=fr.props.context.onNodeDragEnd;kr.stopPropagation(),fr.setState({dragNodeHighlight:!1}),Vr(kr,Object(qe.a)(fr))},fr.onDrop=function(kr){var Vr=fr.props.context.onNodeDrop;kr.preventDefault(),kr.stopPropagation(),fr.setState({dragNodeHighlight:!1}),Vr(kr,Object(qe.a)(fr))},fr.onExpand=function(kr){var Vr=fr.props.context.onNodeExpand;Vr(kr,zt(fr.props))},fr.setSelectHandle=function(kr){fr.selectHandle=kr},fr.getNodeState=function(){var kr=fr.props.expanded;return fr.isLeaf()?null:kr?vt:rr},fr.hasChildren=function(){var kr=fr.props.eventKey,Vr=fr.props.context.keyEntities,un=Vr[kr]||{},kn=un.children;return!!(kn||[]).length},fr.isLeaf=function(){var kr=fr.props,Vr=kr.isLeaf,un=kr.loaded,kn=fr.props.context.loadData,_t=fr.hasChildren();return Vr===!1?!1:Vr||!kn&&!_t||kn&&un&&!_t},fr.isDisabled=function(){var kr=fr.props.disabled,Vr=fr.props.context.disabled;return!!(Vr||kr)},fr.isCheckable=function(){var kr=fr.props.checkable,Vr=fr.props.context.checkable;return!Vr||kr===!1?!1:Vr},fr.syncLoadData=function(kr){var Vr=kr.expanded,un=kr.loading,kn=kr.loaded,_t=fr.props.context,Or=_t.loadData,Lr=_t.onNodeLoad;if(un)return;Or&&Vr&&!fr.isLeaf()&&(!fr.hasChildren()&&!kn&&Lr(zt(fr.props)))},fr.renderSwitcher=function(){var kr=fr.props,Vr=kr.expanded,un=kr.switcherIcon,kn=fr.props.context,_t=kn.prefixCls,Or=kn.switcherIcon,Lr=un||Or;if(fr.isLeaf())return e.createElement("span",{className:S()("".concat(_t,"-switcher"),"".concat(_t,"-switcher-noop"))},typeof Lr=="function"?Lr(Object(w.a)(Object(w.a)({},fr.props),{},{isLeaf:!0})):Lr);var en=S()("".concat(_t,"-switcher"),"".concat(_t,"-switcher_").concat(Vr?vt:rr));return e.createElement("span",{onClick:fr.onExpand,className:en},typeof Lr=="function"?Lr(Object(w.a)(Object(w.a)({},fr.props),{},{isLeaf:!1})):Lr)},fr.renderCheckbox=function(){var kr=fr.props,Vr=kr.checked,un=kr.halfChecked,kn=kr.disableCheckbox,_t=fr.props.context.prefixCls,Or=fr.isDisabled(),Lr=fr.isCheckable();if(!Lr)return null;var en=typeof Lr!="boolean"?Lr:null;return e.createElement("span",{className:S()("".concat(_t,"-checkbox"),Vr&&"".concat(_t,"-checkbox-checked"),!Vr&&un&&"".concat(_t,"-checkbox-indeterminate"),(Or||kn)&&"".concat(_t,"-checkbox-disabled")),onClick:fr.onCheck},en)},fr.renderIcon=function(){var kr=fr.props.loading,Vr=fr.props.context.prefixCls;return e.createElement("span",{className:S()("".concat(Vr,"-iconEle"),"".concat(Vr,"-icon__").concat(fr.getNodeState()||"docu"),kr&&"".concat(Vr,"-icon_loading"))})},fr.renderSelector=function(){var kr=fr.state.dragNodeHighlight,Vr=fr.props,un=Vr.title,kn=Vr.selected,_t=Vr.icon,Or=Vr.loading,Lr=Vr.data,en=fr.props.context,Sn=en.prefixCls,On=en.showIcon,wn=en.icon,$n=en.draggable,jn=en.loadData,pi=en.titleRender,Mi=fr.isDisabled(),yi="".concat(Sn,"-node-content-wrapper"),Oi;if(On){var zi=_t||wn;Oi=zi?e.createElement("span",{className:S()("".concat(Sn,"-iconEle"),"".concat(Sn,"-icon__customize"))},typeof zi=="function"?zi(fr.props):zi):fr.renderIcon()}else jn&&Or&&(Oi=fr.renderIcon());var ea;typeof un=="function"?ea=un(Lr):pi?ea=pi(Lr):ea=un;var Xi=e.createElement("span",{className:"".concat(Sn,"-title")},ea);return e.createElement("span",{ref:fr.setSelectHandle,title:typeof un=="string"?un:"",className:S()("".concat(yi),"".concat(yi,"-").concat(fr.getNodeState()||"normal"),!Mi&&(kn||kr)&&"".concat(Sn,"-node-selected"),!Mi&&$n&&"draggable"),draggable:!Mi&&$n||void 0,"aria-grabbed":!Mi&&$n||void 0,onMouseEnter:fr.onMouseEnter,onMouseLeave:fr.onMouseLeave,onContextMenu:fr.onContextMenu,onClick:fr.onSelectorClick,onDoubleClick:fr.onSelectorDoubleClick,onDragStart:$n?fr.onDragStart:void 0},Oi,Xi)},fr}return Object(s.a)(En,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var kr=this.props.selectable,Vr=this.props.context.selectable;return typeof kr=="boolean"?kr:Vr}},{key:"render",value:function(){var kr,Vr=this.props,un=Vr.eventKey,kn=Vr.className,_t=Vr.style,Or=Vr.dragOver,Lr=Vr.dragOverGapTop,en=Vr.dragOverGapBottom,Sn=Vr.isLeaf,On=Vr.isStart,wn=Vr.isEnd,$n=Vr.expanded,jn=Vr.selected,pi=Vr.checked,Mi=Vr.halfChecked,yi=Vr.loading,Oi=Vr.domRef,zi=Vr.active,ea=Vr.onMouseMove,Xi=Object(C.a)(Vr,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Wi=this.props.context,ji=Wi.prefixCls,Ji=Wi.filterTreeNode,ca=Wi.draggable,Ca=Wi.keyEntities,na=this.isDisabled(),Pa=Be(Xi),La=Ca[un]||{},va=La.level,ga=wn[wn.length-1];return e.createElement("div",Object.assign({ref:Oi,className:S()(kn,"".concat(ji,"-treenode"),(kr={},Object(E.a)(kr,"".concat(ji,"-treenode-disabled"),na),Object(E.a)(kr,"".concat(ji,"-treenode-switcher-").concat($n?"open":"close"),!Sn),Object(E.a)(kr,"".concat(ji,"-treenode-checkbox-checked"),pi),Object(E.a)(kr,"".concat(ji,"-treenode-checkbox-indeterminate"),Mi),Object(E.a)(kr,"".concat(ji,"-treenode-selected"),jn),Object(E.a)(kr,"".concat(ji,"-treenode-loading"),yi),Object(E.a)(kr,"".concat(ji,"-treenode-active"),zi),Object(E.a)(kr,"".concat(ji,"-treenode-leaf-last"),ga),Object(E.a)(kr,"drag-over",!na&&Or),Object(E.a)(kr,"drag-over-gap-top",!na&&Lr),Object(E.a)(kr,"drag-over-gap-bottom",!na&&en),Object(E.a)(kr,"filter-node",Ji&&Ji(zt(this.props))),kr)),style:_t,onDragEnter:ca?this.onDragEnter:void 0,onDragOver:ca?this.onDragOver:void 0,onDragLeave:ca?this.onDragLeave:void 0,onDrop:ca?this.onDrop:void 0,onDragEnd:ca?this.onDragEnd:void 0,onMouseMove:ea},Pa),e.createElement(dr,{prefixCls:ji,level:va,isStart:On,isEnd:wn}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),En}(e.Component),sr=function(Sr){return e.createElement(me.Consumer,null,function(En){return e.createElement(mn,Object.assign({},Sr,{context:En}))})};sr.displayName="TreeNode",sr.defaultProps={title:ur},sr.isTreeNode=1;var xr=sr,pr=.25,Zt=2;function Ct(Ir,Sr){var En=Ir.slice(),fr=En.indexOf(Sr);return fr>=0&&En.splice(fr,1),En}function on(Ir,Sr){var En=Ir.slice();return En.indexOf(Sr)===-1&&En.push(Sr),En}function Mn(Ir){return Ir.split("-")}function Xn(Ir,Sr){return"".concat(Ir,"-").concat(Sr)}function oi(Ir){return Ir&&Ir.type&&Ir.type.isTreeNode}function Ui(Ir,Sr){var En=[Ir],fr=Sr[Ir];function kr(){var Vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Vr.forEach(function(un){var kn=un.key,_t=un.children;En.push(kn),kr(_t)})}return kr(fr.children),En}function Un(Ir,Sr){var En=Ir.clientY,fr=Sr.selectHandle.getBoundingClientRect(),kr=fr.top,Vr=fr.bottom,un=fr.height,kn=Math.max(un*pr,Zt);return En<=kr+kn?-1:En>=Vr-kn?1:0}function Qn(Ir,Sr){if(!Ir)return;var En=Sr.multiple;return En?Ir.slice():Ir.length?[Ir[0]]:Ir}var $t=function(Sr){return Sr};function Nt(Ir,Sr){if(!Ir)return[];var En=Sr||{},fr=En.processProps,kr=fr===void 0?$t:fr,Vr=Array.isArray(Ir)?Ir:[Ir];return Vr.map(function(un){var kn=un.children,_t=Object(C.a)(un,["children"]),Or=Nt(kn,Sr);return u.a.createElement(xr,Object.assign({},kr(_t)),Or)})}function Me(Ir){if(!Ir)return null;var Sr;if(Array.isArray(Ir))Sr={checkedKeys:Ir,halfCheckedKeys:void 0};else if(Object(A.a)(Ir)==="object")Sr={checkedKeys:Ir.checked||void 0,halfCheckedKeys:Ir.halfChecked||void 0};else return Object(he.a)(!1,"`checkedKeys` is not an array or an object"),null;return Sr}function ke(Ir,Sr){var En=new Set;function fr(kr){if(En.has(kr))return;var Vr=Sr[kr];if(!Vr)return;En.add(kr);var un=Vr.parent,kn=Vr.node;if(kn.disabled)return;un&&fr(un.key)}return(Ir||[]).forEach(function(kr){fr(kr)}),Object(g.a)(En)}function Be(Ir){var Sr={};return Object.keys(Ir).forEach(function(En){(En.startsWith("data-")||En.startsWith("aria-"))&&(Sr[En]=Ir[En])}),Sr}function it(Ir,Sr){return Ir!=null?Ir:Sr}function yt(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Sr=new Map;function En(fr){var kr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(fr||[]).forEach(function(Vr){var un=Vr.key,kn=Vr.children;Object(he.a)(un!=null,"Tree node must have a certain key: [".concat(kr).concat(un,"]"));var _t=String(un);Object(he.a)(!Sr.has(_t)||un===null||un===void 0,"Same 'key' exist in the Tree: ".concat(_t)),Sr.set(_t,!0),En(kn,"".concat(kr).concat(_t," > "))})}En(Ir)}function Tt(Ir){function Sr(En){var fr=Object(ut.a)(En);return fr.map(function(kr){if(!oi(kr))return Object(he.a)(!kr,"Tree/TreeNode can only accept TreeNode as children."),null;var Vr=kr.key,un=kr.props,kn=un.children,_t=Object(C.a)(un,["children"]),Or=Object(w.a)({key:Vr},_t),Lr=Sr(kn);return Lr.length&&(Or.children=Lr),Or}).filter(function(kr){return kr})}return Sr(Ir)}function Yt(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],En=new Set(Sr===!0?[]:Sr),fr=[];function kr(Vr){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Vr.map(function(kn,_t){var Or=Xn(un?un.pos:"0",_t),Lr=it(kn.key,Or),en=Object(w.a)(Object(w.a)({},kn),{},{parent:un,pos:Or,children:null,data:kn,isStart:[].concat(Object(g.a)(un?un.isStart:[]),[_t===0]),isEnd:[].concat(Object(g.a)(un?un.isEnd:[]),[_t===Vr.length-1])});return fr.push(en),Sr===!0||En.has(Lr)?en.children=kr(kn.children||[],en):en.children=[],en})}return kr(Ir),fr}function Pr(Ir,Sr,En){var fr;En?typeof En=="string"?fr=function(un){return un[En]}:typeof En=="function"&&(fr=function(un){return En(un)}):fr=function(un,kn){return it(un.key,kn)};function kr(Vr,un,kn){var _t=Vr?Vr.children:Ir,Or=Vr?Xn(kn.pos,un):"0";if(Vr){var Lr=fr(Vr,Or),en={node:Vr,index:un,pos:Or,key:Lr,parentPos:kn.node?kn.pos:null,level:kn.level+1};Sr(en)}_t&&_t.forEach(function(Sn,On){kr(Sn,On,{node:Vr,pos:Or,level:kn?kn.level+1:-1})})}kr(null)}function $r(Ir){var Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},En=Sr.initWrapper,fr=Sr.processEntity,kr=Sr.onProcessFinished,Vr=arguments.length>2?arguments[2]:void 0,un={},kn={},_t={posEntities:un,keyEntities:kn};return En&&(_t=En(_t)||_t),Pr(Ir,function(Or){var Lr=Or.node,en=Or.index,Sn=Or.pos,On=Or.key,wn=Or.parentPos,$n=Or.level,jn={node:Lr,index:en,key:On,pos:Sn,level:$n},pi=it(On,Sn);un[Sn]=jn,kn[pi]=jn,jn.parent=un[wn],jn.parent&&(jn.parent.children=jn.parent.children||[],jn.parent.children.push(jn)),fr&&fr(jn,_t)},Vr),kr&&kr(_t),_t}function An(Ir,Sr){var En=Sr.expandedKeys,fr=Sr.selectedKeys,kr=Sr.loadedKeys,Vr=Sr.loadingKeys,un=Sr.checkedKeys,kn=Sr.halfCheckedKeys,_t=Sr.dragOverNodeKey,Or=Sr.dropPosition,Lr=Sr.keyEntities,en=Lr[Ir],Sn={eventKey:Ir,expanded:En.indexOf(Ir)!==-1,selected:fr.indexOf(Ir)!==-1,loaded:kr.indexOf(Ir)!==-1,loading:Vr.indexOf(Ir)!==-1,checked:un.indexOf(Ir)!==-1,halfChecked:kn.indexOf(Ir)!==-1,pos:String(en?en.pos:""),dragOver:_t===Ir&&Or===0,dragOverGapTop:_t===Ir&&Or===-1,dragOverGapBottom:_t===Ir&&Or===1};return Sn}function zt(Ir){var Sr=Ir.data,En=Ir.expanded,fr=Ir.selected,kr=Ir.checked,Vr=Ir.loaded,un=Ir.loading,kn=Ir.halfChecked,_t=Ir.dragOver,Or=Ir.dragOverGapTop,Lr=Ir.dragOverGapBottom,en=Ir.pos,Sn=Ir.active,On=Object(w.a)(Object(w.a)({},Sr),{},{expanded:En,selected:fr,checked:kr,loaded:Vr,loading:un,halfChecked:kn,dragOver:_t,dragOverGapTop:Or,dragOverGapBottom:Lr,pos:en,active:Sn});return"props"in On||Object.defineProperty(On,"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`."),Ir}}),On}function At(Ir,Sr){var En=new Set;return Ir.forEach(function(fr){Sr.has(fr)||En.add(fr)}),En}function wt(Ir){var Sr=Ir||{},En=Sr.disabled,fr=Sr.disableCheckbox,kr=Sr.checkable;return!!(En||fr)||kr===!1}function vr(Ir,Sr,En,fr){for(var kr=new Set(Ir),Vr=new Set,un=0;un<=En;un+=1){var kn=Sr.get(un)||new Set;kn.forEach(function(en){var Sn=en.key,On=en.node,wn=en.children,$n=wn===void 0?[]:wn;kr.has(Sn)&&!fr(On)&&$n.filter(function(jn){return!fr(jn.node)}).forEach(function(jn){kr.add(jn.key)})})}for(var _t=new Set,Or=En;Or>=0;Or-=1){var Lr=Sr.get(Or)||new Set;Lr.forEach(function(en){var Sn=en.parent,On=en.node;if(fr(On)||!en.parent||_t.has(en.parent.key))return;if(fr(en.parent.node)){_t.add(Sn.key);return}var wn=!0,$n=!1;(Sn.children||[]).filter(function(jn){return!fr(jn.node)}).forEach(function(jn){var pi=jn.key,Mi=kr.has(pi);wn&&!Mi&&(wn=!1),!$n&&(Mi||Vr.has(pi))&&($n=!0)}),wn&&kr.add(Sn.key),$n&&Vr.add(Sn.key),_t.add(Sn.key)})}return{checkedKeys:Array.from(kr),halfCheckedKeys:Array.from(At(Vr,kr))}}function Jt(Ir,Sr,En,fr,kr){for(var Vr=new Set(Ir),un=new Set(Sr),kn=0;kn<=fr;kn+=1){var _t=En.get(kn)||new Set;_t.forEach(function(Sn){var On=Sn.key,wn=Sn.node,$n=Sn.children,jn=$n===void 0?[]:$n;!Vr.has(On)&&!un.has(On)&&!kr(wn)&&jn.filter(function(pi){return!kr(pi.node)}).forEach(function(pi){Vr.delete(pi.key)})})}un=new Set;for(var Or=new Set,Lr=fr;Lr>=0;Lr-=1){var en=En.get(Lr)||new Set;en.forEach(function(Sn){var On=Sn.parent,wn=Sn.node;if(kr(wn)||!Sn.parent||Or.has(Sn.parent.key))return;if(kr(Sn.parent.node)){Or.add(On.key);return}var $n=!0,jn=!1;(On.children||[]).filter(function(pi){return!kr(pi.node)}).forEach(function(pi){var Mi=pi.key,yi=Vr.has(Mi);$n&&!yi&&($n=!1),!jn&&(yi||un.has(Mi))&&(jn=!0)}),$n||Vr.delete(On.key),jn&&un.add(On.key),Or.add(On.key)})}return{checkedKeys:Array.from(Vr),halfCheckedKeys:Array.from(At(un,Vr))}}function Ut(Ir,Sr,En,fr){var kr=[],Vr;fr?Vr=fr:Vr=wt;var un=new Set(Ir.filter(function(Lr){var en=!!En[Lr];return en||kr.push(Lr),en})),kn=new Map,_t=0;Object.keys(En).forEach(function(Lr){var en=En[Lr],Sn=en.level,On=kn.get(Sn);On||(On=new Set,kn.set(Sn,On)),On.add(en),_t=Math.max(_t,Sn)}),Object(he.a)(!kr.length,"Tree missing follow keys: ".concat(kr.slice(0,100).map(function(Lr){return"'".concat(Lr,"'")}).join(", ")));var Or;return Sr===!0?Or=vr(un,kn,_t,Vr):Or=Jt(un,Sr.halfCheckedKeys,kn,_t,Vr),Or}var tr=i("YrtM"),Ft=i("+nKL"),qt=function(Sr,En){var fr=Sr.className,kr=Sr.style,Vr=Sr.motion,un=Sr.motionNodes,kn=Sr.motionType,_t=Sr.onMotionStart,Or=Sr.onMotionEnd,Lr=Sr.active,en=Sr.treeNodeRequiredProps,Sn=Object(C.a)(Sr,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),On=e.useState(!0),wn=Object(b.a)(On,2),$n=wn[0],jn=wn[1],pi=e.useContext(me),Mi=pi.prefixCls,yi=e.useRef(!1),Oi=function(){yi.current||Or(),yi.current=!0};return Object(e.useEffect)(function(){un&&kn==="hide"&&$n&&jn(!1)},[un]),Object(e.useEffect)(function(){return un&&_t(),function(){un&&Oi()}},[]),un?e.createElement(F.b,Object.assign({ref:En,visible:$n},Vr,{motionAppear:kn==="show",onAppearEnd:Oi,onLeaveEnd:Oi}),function(zi,ea){var Xi=zi.className,Wi=zi.style;return e.createElement("div",{ref:ea,className:S()("".concat(Mi,"-treenode-motion"),Xi),style:Wi},un.map(function(ji){var Ji=ji.data,ca=Ji.key,Ca=Object(C.a)(Ji,["key"]),na=ji.isStart,Pa=ji.isEnd;delete Ca.children;var La=An(ca,en);return e.createElement(xr,Object.assign({},Ca,La,{active:Lr,data:ji.data,key:ca,isStart:na,isEnd:Pa}))}))}):e.createElement(xr,Object.assign({domRef:En,className:fr,style:kr},Sn,{active:Lr}))};qt.displayName="MotionTreeNode";var Hr=e.forwardRef(qt),Nr=Hr;function Dr(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],En=Ir.length,fr=Sr.length;if(Math.abs(En-fr)!==1)return{add:!1,key:null};function kr(Vr,un){var kn=new Map;Vr.forEach(function(Or){kn.set(Or,!0)});var _t=un.filter(function(Or){return!kn.has(Or)});return _t.length===1?_t[0]:null}return En<fr?{add:!0,key:kr(Ir,Sr)}:{add:!1,key:kr(Sr,Ir)}}function cn(Ir,Sr,En){var fr=Ir.findIndex(function(kn){var _t=kn.data;return _t.key===En}),kr=Ir[fr+1],Vr=Sr.findIndex(function(kn){var _t=kn.data;return _t.key===En});if(kr){var un=Sr.findIndex(function(kn){var _t=kn.data;return _t.key===kr.data.key});return Sr.slice(Vr+1,un)}return Sr.slice(Vr+1)}var vn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ei=function(){},qn="RC_TREE_MOTION_".concat(Math.random()),fi={key:qn},xi={key:qn,level:0,index:0,pos:"0",node:fi},Ni={parent:null,children:[],pos:xi.pos,data:fi,isStart:[],isEnd:[]};function Hi(Ir,Sr,En,fr){return Sr===!1||!En?Ir:Ir.slice(0,Math.ceil(En/fr)+1)}function nt(Ir){var Sr=Ir.data.key,En=Ir.pos;return it(Sr,En)}function Ne(Ir){for(var Sr=String(Ir.data.key),En=Ir;En.parent;)En=En.parent,Sr="".concat(En.data.key," > ").concat(Sr);return Sr}var He=function(Sr,En){var fr=Sr.prefixCls,kr=Sr.data,Vr=Sr.selectable,un=Sr.checkable,kn=Sr.expandedKeys,_t=Sr.selectedKeys,Or=Sr.checkedKeys,Lr=Sr.loadedKeys,en=Sr.loadingKeys,Sn=Sr.halfCheckedKeys,On=Sr.keyEntities,wn=Sr.disabled,$n=Sr.dragging,jn=Sr.dragOverNodeKey,pi=Sr.dropPosition,Mi=Sr.motion,yi=Sr.height,Oi=Sr.itemHeight,zi=Sr.virtual,ea=Sr.focusable,Xi=Sr.activeItem,Wi=Sr.focused,ji=Sr.tabIndex,Ji=Sr.onKeyDown,ca=Sr.onFocus,Ca=Sr.onBlur,na=Sr.onActiveChange,Pa=Sr.onListChangeStart,La=Sr.onListChangeEnd,va=Object(C.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(En,function(){return{scrollTo:function(rs){ga.current.scrollTo(rs)}}});var Oa=e.useState(kn),Aa=Object(b.a)(Oa,2),Xa=Aa[0],_a=Aa[1],Va=e.useState(kr),Pi=Object(b.a)(Va,2),io=Pi[0],oo=Pi[1],Qo=e.useState(kr),mo=Object(b.a)(Qo,2),To=mo[0],ao=mo[1],So=e.useState([]),bo=Object(b.a)(So,2),to=bo[0],Jo=bo[1],Uo=e.useState(null),wo=Object(b.a)(Uo,2),ts=wo[0],Ia=wo[1];function Oo(){oo(kr),ao(kr),Jo([]),Ia(null),La()}e.useEffect(function(){_a(kn);var xo=Dr(Xa,kn);if(xo.key!==null)if(xo.add){var rs=io.findIndex(function(Tr){var qr=Tr.data.key;return qr===xo.key}),Ho=Hi(cn(io,kr,xo.key),zi,yi,Oi),_o=io.slice();_o.splice(rs+1,0,Ni),ao(_o),Jo(Ho),Ia("show")}else{var uo=kr.findIndex(function(Tr){var qr=Tr.data.key;return qr===xo.key}),Ha=Hi(cn(kr,io,xo.key),zi,yi,Oi),ft=kr.slice();ft.splice(uo+1,0,Ni),ao(ft),Jo(Ha),Ia("hide")}else io!==kr&&(oo(kr),ao(kr))},[kn,kr]),e.useEffect(function(){$n||Oo()},[$n]);var Io=Mi?To:kr,os={expandedKeys:kn,selectedKeys:_t,loadedKeys:Lr,loadingKeys:en,checkedKeys:Or,halfCheckedKeys:Sn,dragOverNodeKey:jn,dropPosition:pi,keyEntities:On};return e.createElement(e.Fragment,null,Wi&&Xi&&e.createElement("span",{style:vn,"aria-live":"assertive"},Ne(Xi)),e.createElement("div",{role:"tree"},e.createElement("input",{style:vn,disabled:ea===!1||wn,tabIndex:ea!==!1?ji:null,onKeyDown:Ji,onFocus:ca,onBlur:Ca,value:"",onChange:ei})),e.createElement(Ft.a,Object.assign({},va,{data:Io,itemKey:nt,height:yi,fullHeight:!1,virtual:zi,itemHeight:Oi,prefixCls:"".concat(fr,"-list"),ref:ga}),function(xo){var rs=xo.pos,Ho=xo.data,_o=Ho.key,uo=Object(C.a)(Ho,["key"]),Ha=xo.isStart,ft=xo.isEnd,Tr=it(_o,rs);delete uo.children;var qr=An(Tr,os);return e.createElement(Nr,Object.assign({},uo,qr,{active:Xi&&_o===Xi.data.key,pos:rs,data:xo.data,isStart:Ha,isEnd:ft,motion:Mi,motionNodes:_o===qn?to:null,motionType:ts,onMotionStart:Pa,onMotionEnd:Oo,treeNodeRequiredProps:os,onMouseMove:function(){na(null)}}))}))},Xe=e.forwardRef(He);Xe.displayName="NodeList";var rt=Xe,Ze=function(Ir){Object(c.a)(En,Ir);var Sr=Object(h.a)(En);function En(){var fr;return Object(r.a)(this,En),fr=Sr.apply(this,arguments),fr.destroyed=!1,fr.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},fr.listRef=e.createRef(),fr.onNodeDragStart=function(kr,Vr){var un=fr.state,kn=un.expandedKeys,_t=un.keyEntities,Or=fr.props.onDragStart,Lr=Vr.props.eventKey;fr.dragNode=Vr;var en=Ct(kn,Lr);fr.setState({dragging:!0,dragNodesKeys:Ui(Lr,_t)}),fr.setExpandedKeys(en),Or&&Or({event:kr,node:zt(Vr.props)})},fr.onNodeDragEnter=function(kr,Vr){var un=fr.state,kn=un.expandedKeys,_t=un.keyEntities,Or=un.dragNodesKeys,Lr=fr.props.onDragEnter,en=Vr.props,Sn=en.pos,On=en.eventKey;if(!fr.dragNode||Or.indexOf(On)!==-1)return;var wn=Un(kr,Vr);if(fr.dragNode.props.eventKey===On&&wn===0){fr.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){fr.setState({dragOverNodeKey:On,dropPosition:wn}),fr.delayedDragEnterLogic||(fr.delayedDragEnterLogic={}),Object.keys(fr.delayedDragEnterLogic).forEach(function($n){clearTimeout(fr.delayedDragEnterLogic[$n])}),fr.delayedDragEnterLogic[Sn]=window.setTimeout(function(){if(!fr.state.dragging)return;var $n=Object(g.a)(kn),jn=_t[On];jn&&(jn.children||[]).length&&($n=on(kn,On)),"expandedKeys"in fr.props||fr.setExpandedKeys($n),Lr&&Lr({event:kr,node:zt(Vr.props),expandedKeys:$n})},400)},0)},fr.onNodeDragOver=function(kr,Vr){var un=fr.state.dragNodesKeys,kn=fr.props.onDragOver,_t=Vr.props.eventKey;if(un.indexOf(_t)!==-1)return;if(fr.dragNode&&_t===fr.state.dragOverNodeKey){var Or=Un(kr,Vr);if(Or===fr.state.dropPosition)return;fr.setState({dropPosition:Or})}kn&&kn({event:kr,node:zt(Vr.props)})},fr.onNodeDragLeave=function(kr,Vr){var un=fr.props.onDragLeave;fr.setState({dragOverNodeKey:""}),un&&un({event:kr,node:zt(Vr.props)})},fr.onNodeDragEnd=function(kr,Vr){var un=fr.props.onDragEnd;fr.setState({dragOverNodeKey:""}),fr.cleanDragState(),un&&un({event:kr,node:zt(Vr.props)}),fr.dragNode=null},fr.onNodeDrop=function(kr,Vr){var un=fr.state,kn=un.dragNodesKeys,_t=kn===void 0?[]:kn,Or=un.dropPosition,Lr=fr.props.onDrop,en=Vr.props,Sn=en.eventKey,On=en.pos;if(fr.setState({dragOverNodeKey:""}),fr.cleanDragState(),_t.indexOf(Sn)!==-1){Object(he.a)(!1,"Can not drop to dragNode(include it's children node)");return}var wn=Mn(On),$n={event:kr,node:zt(Vr.props),dragNode:fr.dragNode?zt(fr.dragNode.props):null,dragNodesKeys:_t.slice(),dropPosition:Or+Number(wn[wn.length-1]),dropToGap:!1};Or!==0&&($n.dropToGap=!0),Lr&&Lr($n),fr.dragNode=null},fr.cleanDragState=function(){var kr=fr.state.dragging;kr&&fr.setState({dragging:!1})},fr.onNodeClick=function(kr,Vr){var un=fr.props.onClick;un&&un(kr,Vr)},fr.onNodeDoubleClick=function(kr,Vr){var un=fr.props.onDoubleClick;un&&un(kr,Vr)},fr.onNodeSelect=function(kr,Vr){var un=fr.state.selectedKeys,kn=fr.state.keyEntities,_t=fr.props,Or=_t.onSelect,Lr=_t.multiple,en=Vr.selected,Sn=Vr.key,On=!en;On?Lr?un=on(un,Sn):un=[Sn]:un=Ct(un,Sn);var wn=un.map(function($n){var jn=kn[$n];return jn?jn.node:null}).filter(function($n){return $n});fr.setUncontrolledState({selectedKeys:un}),Or&&Or(un,{event:"select",selected:On,node:Vr,selectedNodes:wn,nativeEvent:kr.nativeEvent})},fr.onNodeCheck=function(kr,Vr,un){var kn=fr.state,_t=kn.keyEntities,Or=kn.checkedKeys,Lr=kn.halfCheckedKeys,en=fr.props,Sn=en.checkStrictly,On=en.onCheck,wn=Vr.key,$n,jn={event:"check",node:Vr,checked:un,nativeEvent:kr.nativeEvent};if(Sn){var pi=un?on(Or,wn):Ct(Or,wn),Mi=Ct(Lr,wn);$n={checked:pi,halfChecked:Mi},jn.checkedNodes=pi.map(function(Wi){return _t[Wi]}).filter(function(Wi){return Wi}).map(function(Wi){return Wi.node}),fr.setUncontrolledState({checkedKeys:pi})}else{var yi=Ut([].concat(Object(g.a)(Or),[wn]),!0,_t),Oi=yi.checkedKeys,zi=yi.halfCheckedKeys;if(!un){var ea=new Set(Oi);ea.delete(wn);var Xi=Ut(Array.from(ea),{checked:!1,halfCheckedKeys:zi},_t);Oi=Xi.checkedKeys,zi=Xi.halfCheckedKeys}$n=Oi,jn.checkedNodes=[],jn.checkedNodesPositions=[],jn.halfCheckedKeys=zi,Oi.forEach(function(Wi){var ji=_t[Wi];if(!ji)return;var Ji=ji.node,ca=ji.pos;jn.checkedNodes.push(Ji),jn.checkedNodesPositions.push({node:Ji,pos:ca})}),fr.setUncontrolledState({checkedKeys:Oi},!1,{halfCheckedKeys:zi})}On&&On($n,jn)},fr.onNodeLoad=function(kr){return new Promise(function(Vr){fr.setState(function(un){var kn=un.loadedKeys,_t=kn===void 0?[]:kn,Or=un.loadingKeys,Lr=Or===void 0?[]:Or,en=fr.props,Sn=en.loadData,On=en.onLoad,wn=kr.key;if(!Sn||_t.indexOf(wn)!==-1||Lr.indexOf(wn)!==-1)return{};var $n=Sn(kr);return $n.then(function(){var jn=fr.state,pi=jn.loadedKeys,Mi=jn.loadingKeys,yi=on(pi,wn),Oi=Ct(Mi,wn);On&&On(yi,{event:"load",node:kr}),fr.setUncontrolledState({loadedKeys:yi}),fr.setState({loadingKeys:Oi}),Vr()}),{loadingKeys:on(Lr,wn)}})})},fr.onNodeMouseEnter=function(kr,Vr){var un=fr.props.onMouseEnter;un&&un({event:kr,node:Vr})},fr.onNodeMouseLeave=function(kr,Vr){var un=fr.props.onMouseLeave;un&&un({event:kr,node:Vr})},fr.onNodeContextMenu=function(kr,Vr){var un=fr.props.onRightClick;un&&(kr.preventDefault(),un({event:kr,node:Vr}))},fr.onFocus=function(){var kr=fr.props.onFocus;fr.setState({focused:!0}),kr&&kr.apply(void 0,arguments)},fr.onBlur=function(){var kr=fr.props.onBlur;fr.setState({focused:!1}),fr.onActiveChange(null),kr&&kr.apply(void 0,arguments)},fr.getTreeNodeRequiredProps=function(){var kr=fr.state,Vr=kr.expandedKeys,un=kr.selectedKeys,kn=kr.loadedKeys,_t=kr.loadingKeys,Or=kr.checkedKeys,Lr=kr.halfCheckedKeys,en=kr.dragOverNodeKey,Sn=kr.dropPosition,On=kr.keyEntities;return{expandedKeys:Vr||[],selectedKeys:un||[],loadedKeys:kn||[],loadingKeys:_t||[],checkedKeys:Or||[],halfCheckedKeys:Lr||[],dragOverNodeKey:en,dropPosition:Sn,keyEntities:On}},fr.setExpandedKeys=function(kr){var Vr=fr.state.treeData,un=Yt(Vr,kr);fr.setUncontrolledState({expandedKeys:kr,flattenNodes:un},!0)},fr.onNodeExpand=function(kr,Vr){var un=fr.state.expandedKeys,kn=fr.state.listChanging,_t=fr.props,Or=_t.onExpand,Lr=_t.loadData,en=Vr.key,Sn=Vr.expanded;if(kn)return;var On=un.indexOf(en),wn=!Sn;if(Object(he.a)(Sn&&On!==-1||!Sn&&On===-1,"Expand state not sync with index check"),wn?un=on(un,en):un=Ct(un,en),fr.setExpandedKeys(un),Or&&Or(un,{node:Vr,expanded:wn,nativeEvent:kr.nativeEvent}),wn&&Lr){var $n=fr.onNodeLoad(Vr);$n&&$n.then(function(){var jn=Yt(fr.state.treeData,un);fr.setUncontrolledState({flattenNodes:jn})})}},fr.onListChangeStart=function(){fr.setUncontrolledState({listChanging:!0})},fr.onListChangeEnd=function(){setTimeout(function(){fr.setUncontrolledState({listChanging:!1})})},fr.onActiveChange=function(kr){var Vr=fr.state.activeKey,un=fr.props.onActiveChange;if(Vr===kr)return;fr.setState({activeKey:kr}),kr!==null&&fr.scrollTo({key:kr}),un&&un(kr)},fr.getActiveItem=function(){var kr=fr.state,Vr=kr.activeKey,un=kr.flattenNodes;return Vr===null?null:un.find(function(kn){var _t=kn.data.key;return _t===Vr})||null},fr.offsetActiveKey=function(kr){var Vr=fr.state,un=Vr.flattenNodes,kn=Vr.activeKey,_t=un.findIndex(function(en){var Sn=en.data.key;return Sn===kn});_t===-1&&kr<0&&(_t=un.length),_t=(_t+kr+un.length)%un.length;var Or=un[_t];if(Or){var Lr=Or.data.key;fr.onActiveChange(Lr)}else fr.onActiveChange(null)},fr.onKeyDown=function(kr){var Vr=fr.state,un=Vr.activeKey,kn=Vr.expandedKeys,_t=Vr.checkedKeys,Or=fr.props,Lr=Or.onKeyDown,en=Or.checkable,Sn=Or.selectable;switch(kr.which){case _.a.UP:{fr.offsetActiveKey(-1),kr.preventDefault();break}case _.a.DOWN:{fr.offsetActiveKey(1),kr.preventDefault();break}}var On=fr.getActiveItem();if(On&&On.data){var wn=fr.getTreeNodeRequiredProps(),$n=On.data.isLeaf===!1||!!(On.data.children||[]).length,jn=zt(Object(w.a)(Object(w.a)({},An(un,wn)),{},{data:On.data,active:!0}));switch(kr.which){case _.a.LEFT:{$n&&kn.includes(un)?fr.onNodeExpand({},jn):On.parent&&fr.onActiveChange(On.parent.data.key),kr.preventDefault();break}case _.a.RIGHT:{$n&&!kn.includes(un)?fr.onNodeExpand({},jn):On.children&&On.children.length&&fr.onActiveChange(On.children[0].data.key),kr.preventDefault();break}case _.a.ENTER:case _.a.SPACE:{en&&!jn.disabled&&jn.checkable!==!1&&!jn.disableCheckbox?fr.onNodeCheck({},jn,!_t.includes(un)):!en&&Sn&&!jn.disabled&&jn.selectable!==!1&&fr.onNodeSelect({},jn);break}}}Lr&&Lr(kr)},fr.setUncontrolledState=function(kr){var Vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,un=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(fr.destroyed)return;var kn=!1,_t=!0,Or={};Object.keys(kr).forEach(function(Lr){if(Lr in fr.props){_t=!1;return}kn=!0,Or[Lr]=kr[Lr]}),kn&&(!Vr||_t)&&fr.setState(Object(w.a)(Object(w.a)({},Or),un))},fr.scrollTo=function(kr){fr.listRef.current.scrollTo(kr)},fr}return Object(s.a)(En,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var kr,Vr=this.state,un=Vr.focused,kn=Vr.flattenNodes,_t=Vr.keyEntities,Or=Vr.dragging,Lr=Vr.activeKey,en=this.props,Sn=en.prefixCls,On=en.className,wn=en.style,$n=en.showLine,jn=en.focusable,pi=en.tabIndex,Mi=pi===void 0?0:pi,yi=en.selectable,Oi=en.showIcon,zi=en.icon,ea=en.switcherIcon,Xi=en.draggable,Wi=en.checkable,ji=en.checkStrictly,Ji=en.disabled,ca=en.motion,Ca=en.loadData,na=en.filterTreeNode,Pa=en.height,La=en.itemHeight,va=en.virtual,ga=en.titleRender,Oa=en.onContextMenu,Aa=Be(this.props);return e.createElement(me.Provider,{value:{prefixCls:Sn,selectable:yi,showIcon:Oi,icon:zi,switcherIcon:ea,draggable:Xi,checkable:Wi,checkStrictly:ji,disabled:Ji,keyEntities:_t,loadData:Ca,filterTreeNode:na,titleRender:ga,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},e.createElement("div",{className:S()(Sn,On,(kr={},Object(E.a)(kr,"".concat(Sn,"-show-line"),$n),Object(E.a)(kr,"".concat(Sn,"-focused"),un),Object(E.a)(kr,"".concat(Sn,"-active-focused"),Lr!==null),kr))},e.createElement(rt,Object.assign({ref:this.listRef,prefixCls:Sn,style:wn,data:kn,disabled:Ji,selectable:yi,checkable:!!Wi,motion:ca,dragging:Or,height:Pa,itemHeight:La,virtual:va,focusable:jn,focused:un,tabIndex:Mi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Oa},this.getTreeNodeRequiredProps(),Aa))))}}],[{key:"getDerivedStateFromProps",value:function(kr,Vr){var un=Vr.prevProps,kn={prevProps:kr};function _t(zi){return!un&&zi in kr||un&&un[zi]!==kr[zi]}var Or;if(_t("treeData")?Or=kr.treeData:_t("children")&&(Object(he.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Or=Tt(kr.children)),Or){kn.treeData=Or;var Lr=$r(Or);kn.keyEntities=Object(w.a)(Object(E.a)({},qn,xi),Lr.keyEntities)}var en=kn.keyEntities||Vr.keyEntities;if(_t("expandedKeys")||un&&_t("autoExpandParent"))kn.expandedKeys=kr.autoExpandParent||!un&&kr.defaultExpandParent?ke(kr.expandedKeys,en):kr.expandedKeys;else if(!un&&kr.defaultExpandAll){var Sn=Object(w.a)({},en);delete Sn[qn],kn.expandedKeys=Object.keys(Sn).map(function(zi){return Sn[zi].key})}else!un&&kr.defaultExpandedKeys&&(kn.expandedKeys=kr.autoExpandParent||kr.defaultExpandParent?ke(kr.defaultExpandedKeys,en):kr.defaultExpandedKeys);if(kn.expandedKeys||delete kn.expandedKeys,Or||kn.expandedKeys){var On=Yt(Or||Vr.treeData,kn.expandedKeys||Vr.expandedKeys);kn.flattenNodes=On}if(kr.selectable&&(_t("selectedKeys")?kn.selectedKeys=Qn(kr.selectedKeys,kr):!un&&kr.defaultSelectedKeys&&(kn.selectedKeys=Qn(kr.defaultSelectedKeys,kr))),kr.checkable){var wn;if(_t("checkedKeys")?wn=Me(kr.checkedKeys)||{}:!un&&kr.defaultCheckedKeys?wn=Me(kr.defaultCheckedKeys)||{}:Or&&(wn=Me(kr.checkedKeys)||{checkedKeys:Vr.checkedKeys,halfCheckedKeys:Vr.halfCheckedKeys}),wn){var $n=wn,jn=$n.checkedKeys,pi=jn===void 0?[]:jn,Mi=$n.halfCheckedKeys,yi=Mi===void 0?[]:Mi;if(!kr.checkStrictly){var Oi=Ut(pi,!0,en);pi=Oi.checkedKeys,yi=Oi.halfCheckedKeys}kn.checkedKeys=pi,kn.halfCheckedKeys=yi}}return _t("loadedKeys")&&(kn.loadedKeys=kr.loadedKeys),kn}}]),En}(e.Component);Ze.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},Ze.TreeNode=xr;var st=Ze,xt=st,pt=e.createContext(null);function hr(Ir,Sr){if(!Ir)return!0;var En=Ir.data,fr=En.disabled,kr=En.disableCheckbox;switch(Sr){case"select":return fr;case"checkbox":return fr||kr}return!1}function Zr(Ir,Sr){var En=e.useCallback(function(kr){var Vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",un=arguments.length>2?arguments[2]:void 0,kn=Ir.get(kr);return!un&&hr(kn,Vr)?null:kn},[Ir]),fr=e.useCallback(function(kr){var Vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",un=arguments.length>2?arguments[2]:void 0,kn=Sr.get(kr);return!un&&hr(kn,Vr)?null:kn},[Sr]);return[En,fr]}function Xr(Ir){return e.useMemo(function(){var Sr=new Map,En=new Map;return Ir.forEach(function(fr){Sr.set(fr.key,fr),En.set(fr.data.value,fr)}),[Sr,En]},[Ir])}var pn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},gr=function(Sr,En){var fr=Sr.prefixCls,kr=Sr.height,Vr=Sr.itemHeight,un=Sr.virtual,kn=Sr.options,_t=Sr.flattenOptions,Or=Sr.multiple,Lr=Sr.searchValue,en=Sr.onSelect,Sn=Sr.onToggleOpen,On=Sr.open,wn=Sr.notFoundContent,$n=Sr.onMouseEnter,jn=e.useContext(pt),pi=jn.checkable,Mi=jn.checkedKeys,yi=jn.halfCheckedKeys,Oi=jn.treeExpandedKeys,zi=jn.treeDefaultExpandAll,ea=jn.treeDefaultExpandedKeys,Xi=jn.onTreeExpand,Wi=jn.treeIcon,ji=jn.showTreeIcon,Ji=jn.switcherIcon,ca=jn.treeLine,Ca=jn.treeNodeFilterProp,na=jn.loadData,Pa=jn.treeLoadedKeys,La=jn.treeMotion,va=jn.onTreeLoad,ga=e.useRef(),Oa=Object(tr.a)(function(){return kn},[On,kn],function(qr,Yr){return Yr[0]&&qr[1]!==Yr[1]}),Aa=Xr(_t),Xa=Object(b.a)(Aa,2),_a=Xa[0],Va=Xa[1],Pi=Zr(_a,Va),io=Object(b.a)(Pi,2),oo=io[0],Qo=io[1],mo=e.useMemo(function(){return Mi.map(function(qr){var Yr=Qo(qr);return Yr?Yr.key:null})},[Mi]),To=e.useMemo(function(){return pi?{checked:mo,halfChecked:yi}:null},[mo,yi,pi]);e.useEffect(function(){if(On&&!Or&&mo.length){var qr;(qr=ga.current)===null||qr===void 0||qr.scrollTo({key:mo[0]})}},[On]);var ao=String(Lr).toLowerCase(),So=function(Yr){return ao?String(Yr[Ca]).toLowerCase().includes(ao):!1},bo=e.useState(ea),to=Object(b.a)(bo,2),Jo=to[0],Uo=to[1],wo=e.useState(null),ts=Object(b.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=e.useMemo(function(){return Oi?Object(g.a)(Oi):Lr?Ia:Jo},[Jo,Ia,ao,Oi]);e.useEffect(function(){Lr&&Oo(_t.map(function(qr){return qr.key}))},[Lr]);var os=function(Yr){Uo(Yr),Oo(Yr),Xi&&Xi(Yr)},xo=function(Yr){Yr.preventDefault()},rs=function(Yr,Yn){var dn=Yn.node.key,Gr=oo(dn,pi?"checkbox":"select");Gr!==null&&en(Gr.data.value,{selected:!Mi.includes(Gr.data.value)}),Or||Sn(!1)},Ho=e.useState(null),_o=Object(b.a)(Ho,2),uo=_o[0],Ha=_o[1],ft=oo(uo);if(e.useImperativeHandle(En,function(){return{onKeyDown:function(Yr){var Yn,dn=Yr.which;switch(dn){case _.a.UP:case _.a.DOWN:case _.a.LEFT:case _.a.RIGHT:(Yn=ga.current)===null||Yn===void 0||Yn.onKeyDown(Yr);break;case _.a.ENTER:{ft!==null&&rs(null,{node:{key:uo},selected:!Mi.includes(ft.data.value)});break}case _.a.ESC:Sn(!1)}},onKeyUp:function(){}}}),Oa.length===0)return e.createElement("div",{role:"listbox",className:"".concat(fr,"-empty"),onMouseDown:xo},wn);var Tr={};return Pa&&(Tr.loadedKeys=Pa),Io&&(Tr.expandedKeys=Io),e.createElement("div",{onMouseDown:xo,onMouseEnter:$n},ft&&On&&e.createElement("span",{style:pn,"aria-live":"assertive"},ft.data.value),e.createElement(xt,Object.assign({ref:ga,focusable:!1,prefixCls:"".concat(fr,"-tree"),treeData:Oa,height:kr,itemHeight:Vr,virtual:un,multiple:Or,icon:Wi,showIcon:ji,switcherIcon:Ji,showLine:ca,loadData:Lr?null:na,motion:La,checkable:pi,checkStrictly:!0,checkedKeys:To,selectedKeys:pi?[]:mo,defaultExpandAll:zi},Tr,{onActiveChange:Ha,onSelect:rs,onCheck:rs,onExpand:os,onLoad:va,filterTreeNode:So})))},Kn=e.forwardRef(gr);Kn.displayName="OptionList";var Rr=Kn,Pn=function(){return null},an=Pn;function Ur(Ir){return Object(ut.a)(Ir).map(function(Sr){if(!e.isValidElement(Sr)||!Sr.type)return null;var En=Sr.key,fr=Sr.props,kr=fr.children,Vr=fr.value,un=Object(C.a)(fr,["children","value"]),kn=Object(w.a)({key:En,value:Vr},un),_t=Ur(kr);return _t.length&&(kn.children=_t),kn}).filter(function(Sr){return Sr})}function ii(Ir){if(!Ir)return Ir;var Sr=Object(w.a)({},Ir);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 _i(Ir,Sr,En,fr,kr){var Vr=null,un=null;function kn(){function _t(Or){var Lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",en=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Or.map(function(Sn,On){var wn="".concat(Lr,"-").concat(On),$n=En.includes(Sn.value),jn=_t(Sn.children||[],wn,$n),pi=e.createElement(an,Object.assign({},Sn),jn.map(function(yi){return yi.node}));if(Sr===Sn.value&&(Vr=pi),$n){var Mi={pos:wn,node:pi,children:jn};return en||un.push(Mi),Mi}return null}).filter(function(Sn){return Sn})}un||(un=[],_t(fr),un.sort(function(Or,Lr){var en=Or.node.props.value,Sn=Lr.node.props.value,On=En.indexOf(en),wn=En.indexOf(Sn);return On-wn}))}Object.defineProperty(Ir,"triggerNode",{get:function(){return Object(he.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),kn(),Vr}}),Object.defineProperty(Ir,"allCheckedNodes",{get:function(){return Object(he.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),kn(),kr?un:un.map(function(Or){var Lr=Or.node;return Lr})}})}function Gi(Ir){return Array.isArray(Ir)?Ir:Ir!==void 0?[Ir]:[]}function tn(Ir,Sr){var En=new Map;return Sr.forEach(function(fr){var kr=fr.data;En.set(kr.value,kr)}),Ir.map(function(fr){return ii(En.get(fr))})}function Tn(Ir,Sr){var En=tn([Ir],Sr)[0];return En?En.disabled:!1}function Vn(Ir){return Ir.disabled||Ir.disableCheckbox||Ir.checkable===!1}function Xt(Ir){for(var Sr=Ir.parent,En=0,fr=Sr;fr;)fr=fr.parent,En+=1;return En}function It(Ir){function Sr(fr){return(fr||[]).map(function(kr){var Vr=kr.value,un=kr.key,kn=kr.children,_t=Object(w.a)(Object(w.a)({},kr),{},{key:"key"in kr?un:Vr});return kn&&(_t.children=Sr(kn)),_t})}var En=Yt(Sr(Ir),!0);return En.map(function(fr){return{key:fr.data.key,data:fr.data,level:Xt(fr)}})}function Pt(Ir){return function(Sr,En){var fr=En[Ir];return String(fr).toLowerCase().includes(String(Sr).toLowerCase())}}function Kt(Ir,Sr,En){var fr=En.optionFilterProp,kr=En.filterOption;if(kr===!1)return Sr;var Vr;typeof kr=="function"?Vr=kr:Vr=Pt(fr);function un(kn){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return kn.map(function(Or){var Lr=Or.children,en=_t||Vr(Ir,ii(Or)),Sn=un(Lr||[],en);return en||Sn.length?Object(w.a)(Object(w.a)({},Or),{},{children:Sn}):null}).filter(function(Or){return Or})}return un(Sr)}function Gt(Ir,Sr,En,fr){var kr=new Map;return Gi(Sr).forEach(function(Vr){Vr&&Object(A.a)(Vr)==="object"&&"value"in Vr&&kr.set(Vr.value,Vr)}),Ir.map(function(Vr){var un={value:Vr},kn=En(Vr,"select",!0),_t=kn?fr(kn.data):Vr;if(kr.has(Vr)){var Or=kr.get(Vr);un.label="label"in Or?Or.label:_t,"halfChecked"in Or&&(un.halfChecked=Or.halfChecked)}else un.label=_t;return un})}function Dt(Ir,Sr){var En=new Set(Ir);return En.add(Sr),Array.from(En)}function lr(Ir,Sr){var En=new Set(Ir);return En.delete(Sr),Array.from(En)}function Ar(Ir){var Sr=Ir.searchPlaceholder,En=Ir.treeCheckStrictly,fr=Ir.treeCheckable,kr=Ir.labelInValue,Vr=Ir.value,un=Ir.multiple;Object(he.a)(!Sr,"`searchPlaceholder` has been removed."),En&&kr===!1&&Object(he.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(kr||En)&&Object(he.a)(Gi(Vr).every(function(kn){return kn&&Object(A.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."),En||un||fr?Object(he.a)(!Vr||Array.isArray(Vr),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(he.a)(!Array.isArray(Vr),"`value` should not be array when `TreeSelect` is single mode.")}var yr=Ar,Mr=10;function zn(Ir,Sr){var En=Sr.id,fr=Sr.pId,kr=Sr.rootPId,Vr={},un=[],kn=Ir.map(function(_t){var Or=Object(w.a)({},_t),Lr=Or[En];return Vr[Lr]=Or,Or.key=Or.key||Lr,Or});return kn.forEach(function(_t){var Or=_t[fr],Lr=Vr[Or];Lr&&(Lr.children=Lr.children||[],Lr.children.push(_t)),(Or===kr||!Lr&&kr===null)&&un.push(_t)}),un}function Rn(Ir,Sr){var En=0,fr=new Set;function kr(Vr){return(Vr||[]).map(function(un){var kn=un.key,_t=un.value,Or=un.children,Lr=Object(C.a)(un,["key","value","children"]),en="value"in un?_t:kn,Sn=Object(w.a)(Object(w.a)({},Lr),{},{key:kn!=null?kn:en,value:en,title:Sr(un)});return"children"in un&&(Sn.children=kr(Or)),Sn})}return kr(Ir)}function di(Ir,Sr,En){var fr=En.getLabelProp,kr=En.simpleMode,Vr=e.useRef({});return Ir?(Vr.current.formatTreeData=Vr.current.treeData===Ir?Vr.current.formatTreeData:Rn(kr?zn(Ir,Object(w.a)({id:"id",pId:"pId",rootPId:null},kr!==!0?kr:{})):Ir,fr),Vr.current.treeData=Ir):Vr.current.formatTreeData=Vr.current.children===Sr?Vr.current.formatTreeData:Rn(Ur(Sr),fr),Vr.current.formatTreeData}var gn="SHOW_ALL",Br="SHOW_PARENT",_n="SHOW_CHILD";function Gn(Ir,Sr,En){var fr=new Set(Ir);return Sr===_n?Ir.filter(function(kr){var Vr=En[kr];return!(Vr&&Vr.children&&Vr.children.every(function(un){var kn=un.node;return Vn(kn)||fr.has(kn.key)}))}):Sr===Br?Ir.filter(function(kr){var Vr=En[kr],un=Vr?Vr.parent:null;return!(un&&!Vn(un.node)&&fr.has(un.node.key))}):Ir}function Zn(Ir,Sr){var En=Sr.value,fr=Sr.getEntityByValue,kr=Sr.getEntityByKey,Vr=Sr.treeConduction,un=Sr.showCheckedStrategy,kn=Sr.conductKeyEntities,_t=Sr.getLabelProp;return e.useMemo(function(){var Or=Ir;if(Vr){var Lr=Gn(Ir.map(function(en){var Sn=fr(en);return Sn?Sn.key:en}),un,kn);Or=Lr.map(function(en){var Sn=kr(en);return Sn?Sn.data.value:en})}return Gt(Or,En,fr,_t)},[Ir,En,Vr,un,fr])}var ai=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],Ei=se({prefixCls:"rc-tree-select",components:{optionList:Rr},convertChildrenToData:function(){return null},flattenOptions:It,getLabeledValue:at,filterOptions:Kt,isValueDisabled:Tn,findValueOption:tn,omitDOMProps:function(Sr){var En=Object(w.a)({},Sr);return ai.forEach(function(fr){delete En[fr]}),En}});Ei.displayName="Select";var Ri=e.forwardRef(function(Ir,Sr){var En=Ir.multiple,fr=Ir.treeCheckable,kr=Ir.treeCheckStrictly,Vr=Ir.showCheckedStrategy,un=Vr===void 0?"SHOW_CHILD":Vr,kn=Ir.labelInValue,_t=Ir.loadData,Or=Ir.treeLoadedKeys,Lr=Ir.treeNodeFilterProp,en=Lr===void 0?"value":Lr,Sn=Ir.treeNodeLabelProp,On=Ir.treeDataSimpleMode,wn=Ir.treeData,$n=Ir.treeExpandedKeys,jn=Ir.treeDefaultExpandedKeys,pi=Ir.treeDefaultExpandAll,Mi=Ir.children,yi=Ir.treeIcon,Oi=Ir.showTreeIcon,zi=Ir.switcherIcon,ea=Ir.treeLine,Xi=Ir.treeMotion,Wi=Ir.filterTreeNode,ji=Ir.dropdownPopupAlign,Ji=Ir.onChange,ca=Ir.onTreeExpand,Ca=Ir.onTreeLoad,na=Ir.onDropdownVisibleChange,Pa=Ir.onSelect,La=Ir.onDeselect,va=fr||kr,ga=En||va,Oa=fr&&!kr,Aa=kr||kn,Xa=e.useRef(null);e.useImperativeHandle(Sr,function(){return{focus:Xa.current.focus,blur:Xa.current.blur}});var _a=function(dn){return wn&&dn.label||dn.title},Va=function(dn){return Sn?dn[Sn]:_a(dn)},Pi=di(wn,Mi,{getLabelProp:_a,simpleMode:On}),io=Object(e.useMemo)(function(){return It(Pi)},[Pi]),oo=Xr(io),Qo=Object(b.a)(oo,2),mo=Qo[0],To=Qo[1],ao=Zr(mo,To),So=Object(b.a)(ao,2),bo=So[0],to=So[1],Jo=Object(e.useMemo)(function(){return Oa?$r(Pi):{keyEntities:null}},[Pi,fr,kr]),Uo=Jo.keyEntities,wo=Object(O.a)(Ir.defaultValue,{value:Ir.value}),ts=Object(b.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=function(dn){var Gr=[],ri=[];return dn.forEach(function(rn){to(rn)?ri.push(rn):Gr.push(rn)}),{missingRawValues:Gr,existRawValues:ri}},os=Object(e.useMemo)(function(){var Yn=[],dn=[];if(Gi(Ia).forEach(function(Ti){if(Ti&&Object(A.a)(Ti)==="object"&&"value"in Ti)if(Ti.halfChecked&&kr){var mi=to(Ti.value);Yn.push(mi?mi.key:Ti.value)}else dn.push(Ti.value);else dn.push(Ti)}),Oa){var Gr=Io(dn),ri=Gr.missingRawValues,rn=Gr.existRawValues,Hn=rn.map(function(Ti){return to(Ti).key}),li=Ut(Hn,!0,Uo),ci=li.checkedKeys,si=li.halfCheckedKeys;return[[].concat(Object(g.a)(ri),Object(g.a)(ci.map(function(Ti){return bo(Ti).data.value}))),si]}return[dn,Yn]},[Ia,ga,Aa,fr,kr]),xo=Object(b.a)(os,2),rs=xo[0],Ho=xo[1],_o=Zn(rs,{treeConduction:Oa,value:Ia,showCheckedStrategy:un,conductKeyEntities:Uo,getEntityByValue:to,getEntityByKey:bo,getLabelProp:Va}),uo=function(dn,Gr,ri){if(Oo(ga?dn:dn[0]),Ji){var rn=dn;if(Oa&&un!=="SHOW_ALL"){var Hn=dn.map(function(Ki){var fa=to(Ki);return fa?fa.key:Ki}),li=Gn(Hn,un,Uo);rn=li.map(function(Ki){var fa=bo(Ki);return fa?fa.data.value:Ki})}var ci=Gr||{triggerValue:void 0,selected:void 0},si=ci.triggerValue,Ti=ci.selected,mi=Aa?Gt(rn,Ia,to,Va):rn;if(kr){var vi=Ho.map(function(Ki){var fa=bo(Ki);return fa?fa.data.value:Ki}).filter(function(Ki){return!rn.includes(Ki)});mi=[].concat(Object(g.a)(mi),Object(g.a)(Gt(vi,Ia,to,Va)))}var Li={preValue:_o,triggerValue:si},ia=!0;(kr||ri==="selection"&&!Ti)&&(ia=!1),_i(Li,si,dn,Pi,ia),va?Li.checked=Ti:Li.selected=Ti,Ji(ga?mi:mi[0],Aa?null:rn.map(function(Ki){var fa=to(Ki);return fa?Va(fa.data):null}),Li)}},Ha=function(dn,Gr,ri){var rn=dn;if(!ga)uo([dn],{selected:!0,triggerValue:dn},ri);else{var Hn=Dt(rs,dn);if(Oa){var li=Io(Hn),ci=li.missingRawValues,si=li.existRawValues,Ti=si.map(function(Li){return to(Li).key}),mi=Ut(Ti,!0,Uo),vi=mi.checkedKeys;Hn=[].concat(Object(g.a)(ci),Object(g.a)(vi.map(function(Li){return bo(Li).data.value})))}uo(Hn,{selected:!0,triggerValue:dn},ri)}Pa&&Pa(rn,Gr)},ft=function(dn,Gr,ri){var rn=dn,Hn=lr(rs,dn);if(Oa){var li=Io(Hn),ci=li.missingRawValues,si=li.existRawValues,Ti=si.map(function(Li){return to(Li).key}),mi=Ut(Ti,{checked:!1,halfCheckedKeys:Ho},Uo),vi=mi.checkedKeys;Hn=[].concat(Object(g.a)(ci),Object(g.a)(vi.map(function(Li){return bo(Li).data.value})))}uo(Hn,{selected:!1,triggerValue:dn},ri),La&&La(rn,Gr)},Tr=function(){uo([],null,"clear")},qr=e.useCallback(function(Yn){if(na){var dn={};Object.defineProperty(dn,"documentClickClose",{get:function(){return Object(he.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),na(Yn,dn)}},[na]),Yr={optionLabelProp:null,optionFilterProp:en,dropdownAlign:ji,internalProps:{mark:we,onClear:Tr,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:Ha,onRawDeselect:ft}};return"filterTreeNode"in Ir&&(Yr.filterOption=Wi),e.createElement(pt.Provider,{value:{checkable:va,loadData:_t,treeLoadedKeys:Or,onTreeLoad:Ca,checkedKeys:rs,halfCheckedKeys:Ho,treeDefaultExpandAll:pi,treeExpandedKeys:$n,treeDefaultExpandedKeys:jn,onTreeExpand:ca,treeIcon:yi,treeMotion:Xi,showTreeIcon:Oi,switcherIcon:zi,treeLine:ea,treeNodeFilterProp:en}},e.createElement(Ei,Object.assign({ref:Xa,mode:ga?"multiple":null},Ir,Yr,{value:_o,labelInValue:!0,options:Pi,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:qr})))}),Di=function(Ir){Object(c.a)(En,Ir);var Sr=Object(h.a)(En);function En(){var fr;return Object(r.a)(this,En),fr=Sr.apply(this,arguments),fr.selectRef=e.createRef(),fr.focus=function(){fr.selectRef.current.focus()},fr.blur=function(){fr.selectRef.current.blur()},fr}return Object(s.a)(En,[{key:"render",value:function(){return e.createElement(Ri,Object.assign({ref:this.selectRef},this.props))}}]),En}(e.Component);Di.TreeNode=an,Di.SHOW_ALL=gn,Di.SHOW_PARENT=Br,Di.SHOW_CHILD=_n;var oa=Di,ma=oa,aa=i("BGR+"),ba=i("H84U"),Ai=i("uaoM"),Dn=i("1vzs"),Bi=i("2jpz"),ha=i("3Nzz"),ta=function(Ir){n()(En,Ir);var Sr=a()(En);function En(fr){var kr;return f()(this,En),kr=Sr.call(this,fr),kr.selectRef=e.createRef(),kr.renderTreeSelect=function(Vr){var un=Vr.getPopupContainer,kn=Vr.getPrefixCls,_t=Vr.renderEmpty,Or=Vr.direction,Lr=Vr.virtual,en=Vr.dropdownMatchSelectWidth,Sn=kr.props,On=Sn.prefixCls,wn=Sn.size,$n=Sn.className,jn=Sn.treeCheckable,pi=Sn.multiple,Mi=Sn.listHeight,yi=Mi===void 0?256:Mi,Oi=Sn.listItemHeight,zi=Oi===void 0?26:Oi,ea=Sn.notFoundContent,Xi=Sn.switcherIcon,Wi=Sn.treeLine,ji=Sn.getPopupContainer,Ji=Sn.dropdownClassName,ca=Sn.bordered,Ca=Sn.treeIcon,na=Ca===void 0?!1:Ca,Pa=kn("select",On),La=kn("select-tree",On),va=kn("tree-select",On),ga=S()(Ji,"".concat(va,"-dropdown"),v()({},"".concat(va,"-dropdown-rtl"),Or==="rtl")),Oa=!!(jn||pi),Aa=Object(Dn.a)(p()(p()({},kr.props),{multiple:Oa,prefixCls:Pa})),Xa=Aa.suffixIcon,_a=Aa.itemIcon,Va=Aa.removeIcon,Pi=Aa.clearIcon,io;ea!==void 0?io=ea:io=_t("Select");var oo=Object(aa.default)(kr.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return e.createElement(ha.b.Consumer,null,function(Qo){var mo,To=wn||Qo,ao=S()(!On&&va,(mo={},v()(mo,"".concat(Pa,"-lg"),To==="large"),v()(mo,"".concat(Pa,"-sm"),To==="small"),v()(mo,"".concat(Pa,"-rtl"),Or==="rtl"),v()(mo,"".concat(Pa,"-borderless"),!ca),mo),$n);return e.createElement(ma,p()({virtual:Lr,dropdownMatchSelectWidth:en},oo,{ref:kr.selectRef,prefixCls:Pa,className:ao,listHeight:yi,listItemHeight:zi,treeCheckable:jn&&e.createElement("span",{className:"".concat(Pa,"-tree-checkbox-inner")}),inputIcon:Xa,menuItemSelectedIcon:_a,removeIcon:Va,clearIcon:Pi,switcherIcon:function(bo){return Object(Bi.a)(La,Xi,Wi,bo)},showTreeIcon:na,notFoundContent:io,getPopupContainer:ji||un,treeMotion:null,dropdownClassName:ga}))})},Object(Ai.a)(fr.multiple!==!1||!fr.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),kr}return l()(En,[{key:"focus",value:function(){this.selectRef.current&&this.selectRef.current.focus()}},{key:"blur",value:function(){this.selectRef.current&&this.selectRef.current.blur()}},{key:"render",value:function(){return e.createElement(ba.a,null,this.renderTreeSelect)}}]),En}(e.Component);ta.TreeNode=an,ta.SHOW_ALL=gn,ta.SHOW_PARENT=Br,ta.SHOW_CHILD=_n,ta.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var ra=D.a=ta},"5Uyt":function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("KmBX"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"5YOS":function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("xb2K"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"5YgA":function(R,D,i){},"5bA4":function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="LeftOutlined";var d=D.a=p.forwardRef(f)},"5hvy":function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("MlIO"))})(this,function(y){return function(p){var x=y,v=x.lib,m=v.WordArray,f=v.Hasher,d=x.x64,l=d.Word,o=x.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 A=1,b=0;b<24;b++){for(var w=0,E=0,C=0;C<7;C++){if(A&1){var _=(1<<C)-1;_<32?E^=1<<_:w^=1<<_-32}A&128?A=A<<1^113:A<<=1}a[b]=l.create(w,E)}})();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,A=0;A<g;A++){var b=s[c+2*A],w=s[c+2*A+1];b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var E=h[A];E.high^=w,E.low^=b}for(var C=0;C<24;C++){for(var _=0;_<5;_++){for(var T=0,S=0,O=0;O<5;O++){var E=h[_+5*O];T^=E.high,S^=E.low}var I=e[_];I.high=T,I.low=S}for(var _=0;_<5;_++)for(var F=e[(_+4)%5],P=e[(_+1)%5],B=P.high,k=P.low,T=F.high^(B<<1|k>>>31),S=F.low^(k<<1|B>>>31),O=0;O<5;O++){var E=h[_+5*O];E.high^=T,E.low^=S}for(var G=1;G<25;G++){var T,S,E=h[G],M=E.high,j=E.low,K=n[G];K<32?(T=M<<K|j>>>32-K,S=j<<K|M>>>32-K):(T=j<<K-32|M>>>64-K,S=M<<K-32|j>>>64-K);var z=e[t[G]];z.high=T,z.low=S}var V=e[0],Q=h[0];V.high=Q.high,V.low=Q.low;for(var _=0;_<5;_++)for(var O=0;O<5;O++){var G=_+5*O,E=h[G],X=e[G],te=e[(_+1)%5+5*O],$=e[(_+2)%5+5*O];E.high=X.high^~te.high&$.high,E.low=X.low^~te.low&$.low}var E=h[0],le=a[C];E.high^=le.high,E.low^=le.low}},_doFinalize:function(){var s=this._data,c=s.words,h=this._nDataBytes*8,g=s.sigBytes*8,A=this.blockSize*32;c[g>>>5]|=1<<24-g%32,c[(p.ceil((g+1)/A)*A>>>5)-1]|=128,s.sigBytes=c.length*4,this._process();for(var b=this._state,w=this.cfg.outputLength/8,E=w/8,C=[],_=0;_<E;_++){var T=b[_],S=T.high,O=T.low;S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,C.push(O),C.push(S)}return new m.init(C,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}});x.SHA3=f._createHelper(u),x.HmacSHA3=f._createHmacHelper(u)}(Math),y.SHA3})},"5nXd":function(R,D,i){var y=i("MFOe"),p=y.slice,x=y.pluck,v=y.each,m=y.bind,f=y.create,d=y.isList,l=y.isFunction,o=y.isObject;R.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 E="__storejs__test__";w.write(E,E);var C=w.read(E)===E;return w.remove(E),C}catch(_){return!1}},_assignPluginFnProp:function(w,E){var C=this[E];this[E]=function(){var T=p(arguments,0),S=this;function O(){return C?(v(arguments,function(F,P){T[P]=F}),C.apply(S,T)):void 0}var I=[O].concat(T);return w.apply(S,I)}},_serialize:function(w){return JSON.stringify(w)},_deserialize:function(w,E){if(!w)return E;var C="";try{C=JSON.parse(w)}catch(_){C=w}return C!==void 0?C:E},_addStorage:function(w){if(this.enabled)return;this._testStorage(w)&&(this.storage=w,this.enabled=!0)},_addPlugin:function(w){var E=this;if(d(w)){v(w,function(T){E._addPlugin(T)});return}var C=x(this.plugins,function(T){return w===T});if(C)return;if(this.plugins.push(w),!l(w))throw new Error("Plugins must be function values that return objects");var _=w.call(this);if(!o(_))throw new Error("Plugins must return an object of function properties");v(_,function(T,S){if(!l(T))throw new Error("Bad plugin property: "+S+" from plugin "+w.name+". Plugins should only return functions.");E._assignPluginFnProp(T,S)})},addStorage:function(w){t("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(w)}},A=f(g,n,{plugins:[]});return A.raw={},v(A,function(b,w){l(b)&&(A.raw[w]=m(A,b))}),v(e,function(b){A._addStorage(b)}),v(u,function(b){A._addPlugin(b)}),A}},"5rEg":function(R,D,i){"use strict";var y=i("pVnL"),p=i.n(y),x=i("lwsE"),v=i.n(x),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"),A=i("0n0R"),b=Object(g.a)("text","input");function w(ee){return!!(ee.prefix||ee.suffix||ee.allowClear)}var E=function(ee){l()(we,ee);var fe=n()(we);function we(){var Ce;return v()(this,we),Ce=fe.apply(this,arguments),Ce.containerRef=e.createRef(),Ce.onInputMouseUp=function(_e){var he;if((he=Ce.containerRef.current)===null||he===void 0?void 0:he.contains(_e.target)){var ye=Ce.props.triggerFocus;ye()}},Ce}return f()(we,[{key:"renderClearIcon",value:function(_e){var he=this.props,ye=he.allowClear,Le=he.value,tt=he.disabled,gt=he.readOnly,at=he.inputType,Fe=he.handleReset;if(!ye)return null;var mt=!tt&&!gt&&Le,et=at===b[0]?"".concat(_e,"-textarea-clear-icon"):"".concat(_e,"-clear-icon");return e.createElement(h.a,{onClick:Fe,className:r()(et,a()({},"".concat(et,"-hidden"),!mt)),role:"button"})}},{key:"renderSuffix",value:function(_e){var he=this.props,ye=he.suffix,Le=he.allowClear;return ye||Le?e.createElement("span",{className:"".concat(_e,"-suffix")},this.renderClearIcon(_e),ye):null}},{key:"renderLabeledIcon",value:function(_e,he){var ye,Le=this.props,tt=Le.focused,gt=Le.value,at=Le.prefix,Fe=Le.className,mt=Le.size,et=Le.suffix,St=Le.disabled,jt=Le.allowClear,Mt=Le.direction,Ot=Le.style,Bt=Le.readOnly,Ke=Le.bordered,de=this.renderSuffix(_e);if(!w(this.props))return Object(A.a)(he,{value:gt});var se=at?e.createElement("span",{className:"".concat(_e,"-prefix")},at):null,ut=r()(Fe,"".concat(_e,"-affix-wrapper"),(ye={},a()(ye,"".concat(_e,"-affix-wrapper-focused"),tt),a()(ye,"".concat(_e,"-affix-wrapper-disabled"),St),a()(ye,"".concat(_e,"-affix-wrapper-sm"),mt==="small"),a()(ye,"".concat(_e,"-affix-wrapper-lg"),mt==="large"),a()(ye,"".concat(_e,"-affix-wrapper-input-with-clear-btn"),et&&jt&>),a()(ye,"".concat(_e,"-affix-wrapper-rtl"),Mt==="rtl"),a()(ye,"".concat(_e,"-affix-wrapper-readonly"),Bt),a()(ye,"".concat(_e,"-affix-wrapper-borderless"),!Ke),ye));return e.createElement("span",{ref:this.containerRef,className:ut,style:Ot,onMouseUp:this.onInputMouseUp},se,Object(A.a)(he,{style:null,value:gt,className:F(_e,Ke,mt,St)}),de)}},{key:"renderInputWithLabel",value:function(_e,he){var ye,Le,tt=this.props,gt=tt.addonBefore,at=tt.addonAfter,Fe=tt.style,mt=tt.size,et=tt.className,St=tt.direction;if(!gt&&!at)return he;var jt="".concat(_e,"-group"),Mt="".concat(jt,"-addon"),Ot=gt?e.createElement("span",{className:Mt},gt):null,Bt=at?e.createElement("span",{className:Mt},at):null,Ke=r()("".concat(_e,"-wrapper"),(ye={},a()(ye,jt,gt||at),a()(ye,"".concat(jt,"-rtl"),St==="rtl"),ye)),de=r()(et,"".concat(_e,"-group-wrapper"),(Le={},a()(Le,"".concat(_e,"-group-wrapper-sm"),mt==="small"),a()(Le,"".concat(_e,"-group-wrapper-lg"),mt==="large"),a()(Le,"".concat(_e,"-group-wrapper-rtl"),St==="rtl"),Le));return e.createElement("span",{className:de,style:Fe},e.createElement("span",{className:Ke},Ot,Object(A.a)(he,{style:null}),Bt))}},{key:"renderTextAreaWithClearIcon",value:function(_e,he){var ye,Le=this.props,tt=Le.value,gt=Le.allowClear,at=Le.className,Fe=Le.style,mt=Le.direction,et=Le.bordered;if(!gt)return Object(A.a)(he,{value:tt});var St=r()(at,"".concat(_e,"-affix-wrapper"),"".concat(_e,"-affix-wrapper-textarea-with-clear-btn"),(ye={},a()(ye,"".concat(_e,"-affix-wrapper-rtl"),mt==="rtl"),a()(ye,"".concat(_e,"-affix-wrapper-borderless"),!et),ye));return e.createElement("span",{className:St,style:Fe},Object(A.a)(he,{style:null,value:tt}),this.renderClearIcon(_e))}},{key:"render",value:function(){var _e=this.props,he=_e.prefixCls,ye=_e.inputType,Le=_e.element;return ye===b[0]?this.renderTextAreaWithClearIcon(he,Le):this.renderInputWithLabel(he,this.renderLabeledIcon(he,Le))}}]),we}(e.Component),C=E,_=i("H84U"),T=i("3Nzz"),S=i("uaoM");function O(ee){return typeof ee=="undefined"||ee===null?"":ee}function I(ee,fe,we){if(we){var Ce=fe;if(fe.type==="click"){Ce=Object.create(fe),Ce.target=ee,Ce.currentTarget=ee;var _e=ee.value;ee.value="",we(Ce),ee.value=_e;return}we(Ce)}}function F(ee,fe,we,Ce,_e){var he;return r()(ee,(he={},a()(he,"".concat(ee,"-sm"),we==="small"),a()(he,"".concat(ee,"-lg"),we==="large"),a()(he,"".concat(ee,"-disabled"),Ce),a()(he,"".concat(ee,"-rtl"),_e==="rtl"),a()(he,"".concat(ee,"-borderless"),!fe),he))}var P=function(ee){l()(we,ee);var fe=n()(we);function we(Ce){var _e;v()(this,we),_e=fe.call(this,Ce),_e.direction="ltr",_e.focus=function(){_e.input.focus()},_e.saveClearableInput=function(ye){_e.clearableInput=ye},_e.saveInput=function(ye){_e.input=ye},_e.onFocus=function(ye){var Le=_e.props.onFocus;_e.setState({focused:!0},_e.clearPasswordValueAttribute),Le&&Le(ye)},_e.onBlur=function(ye){var Le=_e.props.onBlur;_e.setState({focused:!1},_e.clearPasswordValueAttribute),Le&&Le(ye)},_e.handleReset=function(ye){_e.setValue("",function(){_e.focus()}),I(_e.input,ye,_e.props.onChange)},_e.renderInput=function(ye,Le,tt){var gt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},at=_e.props,Fe=at.className,mt=at.addonBefore,et=at.addonAfter,St=at.size,jt=at.disabled,Mt=Object(s.default)(_e.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return e.createElement("input",p()({autoComplete:gt.autoComplete},Mt,{onChange:_e.handleChange,onFocus:_e.onFocus,onBlur:_e.onBlur,onKeyDown:_e.handleKeyDown,className:r()(F(ye,tt,St||Le,jt,_e.direction),a()({},Fe,Fe&&!mt&&!et)),ref:_e.saveInput}))},_e.clearPasswordValueAttribute=function(){_e.removePasswordTimeout=setTimeout(function(){_e.input&&_e.input.getAttribute("type")==="password"&&_e.input.hasAttribute("value")&&_e.input.removeAttribute("value")})},_e.handleChange=function(ye){_e.setValue(ye.target.value,_e.clearPasswordValueAttribute),I(_e.input,ye,_e.props.onChange)},_e.handleKeyDown=function(ye){var Le=_e.props,tt=Le.onPressEnter,gt=Le.onKeyDown;ye.keyCode===13&&tt&&tt(ye),gt&>(ye)},_e.renderComponent=function(ye){var Le=ye.getPrefixCls,tt=ye.direction,gt=ye.input,at=_e.state,Fe=at.value,mt=at.focused,et=_e.props,St=et.prefixCls,jt=et.bordered,Mt=jt===void 0?!0:jt,Ot=Le("input",St);return _e.direction=tt,e.createElement(T.b.Consumer,null,function(Bt){return e.createElement(C,p()({size:Bt},_e.props,{prefixCls:Ot,inputType:"input",value:O(Fe),element:_e.renderInput(Ot,Bt,Mt,gt),handleReset:_e.handleReset,ref:_e.saveClearableInput,direction:tt,focused:mt,triggerFocus:_e.focus,bordered:Mt}))})};var he=typeof Ce.value=="undefined"?Ce.defaultValue:Ce.value;return _e.state={value:he,focused:!1,prevValue:Ce.value},_e}return f()(we,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(_e){return w(_e)!==w(this.props)&&Object(S.a)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(_e,he){this.props.value===void 0&&this.setState({value:_e},he)}},{key:"render",value:function(){return e.createElement(_.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(_e,he){var ye=he.prevValue,Le={prevValue:_e.value};return(_e.value!==void 0||ye!==_e.value)&&(Le.value=_e.value),Le}}]),we}(e.Component);P.defaultProps={type:"text"};var B=P,k=function(fe){return e.createElement(_.a,null,function(we){var Ce,_e=we.getPrefixCls,he=we.direction,ye=fe.prefixCls,Le=fe.className,tt=Le===void 0?"":Le,gt=_e("input-group",ye),at=r()(gt,(Ce={},a()(Ce,"".concat(gt,"-lg"),fe.size==="large"),a()(Ce,"".concat(gt,"-sm"),fe.size==="small"),a()(Ce,"".concat(gt,"-compact"),fe.compact),a()(Ce,"".concat(gt,"-rtl"),he==="rtl"),Ce),tt);return e.createElement("span",{className:at,style:fe.style,onMouseEnter:fe.onMouseEnter,onMouseLeave:fe.onMouseLeave,onFocus:fe.onFocus,onBlur:fe.onBlur},fe.children)})},G=k,M=i("c+Xe"),j=i("w6Tc"),K=i.n(j),z=i("gZBC"),V=i.n(z),Q=i("2/Rp"),X=function(ee,fe){var we={};for(var Ce in ee)Object.prototype.hasOwnProperty.call(ee,Ce)&&fe.indexOf(Ce)<0&&(we[Ce]=ee[Ce]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Ce=Object.getOwnPropertySymbols(ee);_e<Ce.length;_e++)fe.indexOf(Ce[_e])<0&&Object.prototype.propertyIsEnumerable.call(ee,Ce[_e])&&(we[Ce[_e]]=ee[Ce[_e]]);return we},te=e.forwardRef(function(ee,fe){var we=e.useRef(null),Ce=function(Fe){var mt=ee.onChange,et=ee.onSearch;Fe&&Fe.target&&Fe.type==="click"&&et&&et(Fe.target.value,Fe),mt&&mt(Fe)},_e=function(Fe){var mt;document.activeElement===((mt=we.current)===null||mt===void 0?void 0:mt.input)&&Fe.preventDefault()},he=function(Fe){var mt,et=ee.onSearch,St=ee.loading,jt=ee.disabled;if(St||jt)return;et&&et((mt=we.current)===null||mt===void 0?void 0:mt.input.value,Fe)},ye=function(Fe){var mt=ee.enterButton,et=ee.size;return mt?e.createElement(T.b.Consumer,{key:"enterButton"},function(St){return e.createElement(Q.a,{className:"".concat(Fe,"-button"),type:"primary",size:et||St},e.createElement(V.a,null))}):e.createElement(V.a,{className:"".concat(Fe,"-icon"),key:"loadingIcon"})},Le=function(Fe){var mt=ee.suffix,et=ee.enterButton,St=ee.loading;if(St&&!et)return[mt,ye(Fe)];if(et)return mt;var jt=e.createElement(K.a,{className:"".concat(Fe,"-icon"),key:"searchIcon",onClick:he});return mt?[Object(A.c)(mt,null,{key:"suffix"}),jt]:jt},tt=function(Fe,mt){var et=ee.enterButton,St=ee.disabled,jt=ee.addonAfter,Mt=ee.loading,Ot="".concat(Fe,"-button");if(Mt&&et)return[ye(Fe),jt];if(!et)return jt;var Bt,Ke=et,de=Ke.type&&Ke.type.__ANT_BUTTON===!0;return de||Ke.type==="button"?Bt=Object(A.a)(Ke,p()({onMouseDown:_e,onClick:he,key:"enterButton"},de?{className:Ot,size:mt}:{})):Bt=e.createElement(Q.a,{className:Ot,type:"primary",size:mt,disabled:St,key:"enterButton",onMouseDown:_e,onClick:he},et===!0?e.createElement(K.a,null):et),jt?[Bt,Object(A.c)(jt,null,{key:"addonAfter"})]:Bt},gt=function(Fe){var mt=Fe.getPrefixCls,et=Fe.direction,St=ee.prefixCls,jt=ee.inputPrefixCls,Mt=ee.enterButton,Ot=ee.className,Bt=ee.size,Ke=X(ee,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete Ke.onSearch,delete Ke.loading;var de=mt("input-search",St),se=mt("input",jt),ut=function(me){var Wt;if(Mt){var dr;Wt=r()(de,Ot,(dr={},a()(dr,"".concat(de,"-rtl"),et==="rtl"),a()(dr,"".concat(de,"-enter-button"),!!Mt),a()(dr,"".concat(de,"-").concat(me),!!me),dr))}else Wt=r()(de,Ot,a()({},"".concat(de,"-rtl"),et==="rtl"));return Wt};return e.createElement(T.b.Consumer,null,function(qe){return e.createElement(B,p()({ref:Object(M.a)(we,fe),onPressEnter:he},Ke,{size:Bt||qe,prefixCls:se,addonAfter:tt(de,Bt||qe),suffix:Le(de),onChange:Ce,className:ut(Bt||qe)}))})};return e.createElement(_.a,null,gt)});te.defaultProps={enterButton:!1},te.displayName="Search";var $=te,le=i("Y1PL"),re=function(ee){l()(we,ee);var fe=n()(we);function we(Ce){var _e;v()(this,we),_e=fe.call(this,Ce),_e.focus=function(){_e.resizableTextArea.textArea.focus()},_e.saveTextArea=function(ye){_e.resizableTextArea=ye==null?void 0:ye.resizableTextArea},_e.saveClearableInput=function(ye){_e.clearableInput=ye},_e.handleChange=function(ye){_e.setValue(ye.target.value),I(_e.resizableTextArea.textArea,ye,_e.props.onChange)},_e.handleReset=function(ye){_e.setValue("",function(){_e.focus()}),I(_e.resizableTextArea.textArea,ye,_e.props.onChange)},_e.renderTextArea=function(ye,Le){return e.createElement(le.default,p()({},Object(s.default)(_e.props,["allowClear","bordered"]),{className:r()(_e.props.className,a()({},"".concat(ye,"-borderless"),!Le)),prefixCls:ye,onChange:_e.handleChange,ref:_e.saveTextArea}))},_e.renderComponent=function(ye){var Le=ye.getPrefixCls,tt=ye.direction,gt=_e.state.value,at=_e.props,Fe=at.prefixCls,mt=at.bordered,et=mt===void 0?!0:mt,St=Le("input",Fe);return e.createElement(C,p()({},_e.props,{prefixCls:St,direction:tt,inputType:"text",value:O(gt),element:_e.renderTextArea(St,et),handleReset:_e.handleReset,ref:_e.saveClearableInput,triggerFocus:_e.focus,bordered:et}))};var he=typeof Ce.value=="undefined"?Ce.defaultValue:Ce.value;return _e.state={value:he},_e}return f()(we,[{key:"setValue",value:function(_e,he){this.props.value===void 0&&this.setState({value:_e},he)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return e.createElement(_.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(_e){return _e.value!==void 0?{value:_e.value}:null}}]),we}(e.Component),Se=re,Re=i("J4zp"),Pe=i.n(Re),Je=i("qPY4"),Ge=i.n(Je),ct=i("fUL4"),Ue=i.n(ct),ae=function(ee,fe){var we={};for(var Ce in ee)Object.prototype.hasOwnProperty.call(ee,Ce)&&fe.indexOf(Ce)<0&&(we[Ce]=ee[Ce]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Ce=Object.getOwnPropertySymbols(ee);_e<Ce.length;_e++)fe.indexOf(Ce[_e])<0&&Object.prototype.propertyIsEnumerable.call(ee,Ce[_e])&&(we[Ce[_e]]=ee[Ce[_e]]);return we},lt={click:"onClick",hover:"onMouseOver"},pe=e.forwardRef(function(ee,fe){var we=Object(e.useState)(!1),Ce=Pe()(we,2),_e=Ce[0],he=Ce[1],ye=function(){var at=ee.disabled;if(at)return;he(!_e)},Le=function(at){var Fe,mt=ee.action,et=ee.iconRender,St=et===void 0?function(){return null}:et,jt=lt[mt]||"",Mt=St(_e),Ot=(Fe={},a()(Fe,jt,ye),a()(Fe,"className","".concat(at,"-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(Mt)?Mt:e.createElement("span",null,Mt),Ot)},tt=function(at){var Fe=at.getPrefixCls,mt=ee.className,et=ee.prefixCls,St=ee.inputPrefixCls,jt=ee.size,Mt=ee.visibilityToggle,Ot=ae(ee,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),Bt=Fe("input",St),Ke=Fe("input-password",et),de=Mt&&Le(Ke),se=r()(Ke,mt,a()({},"".concat(Ke,"-").concat(jt),!!jt)),ut=p()(p()({},Object(s.default)(Ot,["suffix","iconRender"])),{type:_e?"text":"password",className:se,prefixCls:Bt,suffix:de});return jt&&(ut.size=jt),e.createElement(B,p()({ref:fe},ut))};return e.createElement(_.a,null,tt)});pe.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(fe){return fe?e.createElement(Ge.a,null):e.createElement(Ue.a,null)}},pe.displayName="Password";var J=pe;B.Group=G,B.Search=$,B.TextArea=Se,B.Password=J;var Y=D.a=B},"5s0K":function(R,D,i){var y=i("bYtY");function p(){var x=[],v={},m;return{add:function(f,d,l,o,n){return y.isString(o)&&(n=o,o=0),v[f.id]?!1:(v[f.id]=1,x.push({el:f,target:d,time:l,delay:o,easing:n}),!0)},done:function(f){return m=f,this},start:function(){for(var f=x.length,d=0,l=x.length;d<l;d++){var o=x[d];o.el.animateTo(o.target,o.time,o.delay,o.easing,n)}return this;function n(){f--,f||(x.length=0,v={},m&&m())}}}}D.createWrap=p},"5yev":function(R,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(R,D,i){var y=i("ProS");y.registerAction("legendScroll","legendscroll",function(p,x){var v=p.scrollDataIndex;v!=null&&x.eachComponent({mainType:"legend",subType:"scroll",query:p},function(m){m.setScrollDataIndex(v)})})},"62sa":function(R,D,i){var y=i("bYtY"),p=i("4NO4"),x=p.makeInner,v=i("zTMp"),m=i("Ez2D"),f=y.each,d=y.curry,l=x();function o(A,b,w){var E=A.currTrigger,C=[A.x,A.y],_=A,T=A.dispatchAction||y.bind(w.dispatchAction,w),S=b.getComponent("axisPointer").coordSysAxesInfo;if(!S)return;g(C)&&(C=m({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},b).point);var O=g(C),I=_.axesInfo,F=S.axesInfo,P=E==="leave"||g(C),B={},k={},G={list:[],map:{}},M={showPointer:d(a,k),showTooltip:d(e,G)};f(S.coordSysMap,function(K,z){var V=O||K.containPoint(C);f(S.coordSysAxesInfo[z],function(Q,X){var te=Q.axis,$=c(I,Q);if(!P&&V&&(!I||$)){var le=$&&$.value;le==null&&!O&&(le=te.pointToData(C)),le!=null&&n(Q,le,M,!1,B)}})});var j={};return f(F,function(K,z){var V=K.linkGroup;V&&!k[z]&&f(V.axesInfo,function(Q,X){var te=k[X];if(Q!==K&&te){var $=te.value;V.mapper&&($=K.axis.scale.parse(V.mapper($,h(Q),h(K)))),j[K.key]=$}})}),f(j,function(K,z){n(F[z],K,M,!0,B)}),u(k,F,B),r(G,C,A,T),s(F,T,w),B}function n(A,b,w,E,C){var _=A.axis;if(_.scale.isBlank()||!_.containData(b))return;if(!A.involveSeries){w.showPointer(A,b);return}var T=t(b,A),S=T.payloadBatch,O=T.snapToValue;S[0]&&C.seriesIndex==null&&y.extend(C,S[0]),!E&&A.snap&&(_.containData(O)&&O!=null&&(b=O)),w.showPointer(A,b,S,C),w.showTooltip(A,T,O)}function t(A,b){var w=b.axis,E=w.dim,C=A,_=[],T=Number.MAX_VALUE,S=-1;return f(b.seriesModels,function(O,I){var F=O.getData().mapDimension(E,!0),P,B;if(O.getAxisTooltipData){var k=O.getAxisTooltipData(F,A,w);B=k.dataIndices,P=k.nestestValue}else{if(B=O.getData().indicesOfNearest(F[0],A,w.type==="category"?.5:null),!B.length)return;P=O.getData().get(F[0],B[0])}if(P==null||!isFinite(P))return;var G=A-P,M=Math.abs(G);M<=T&&((M<T||G>=0&&S<0)&&(T=M,S=G,C=P,_.length=0),f(B,function(j){_.push({seriesIndex:O.seriesIndex,dataIndexInside:j,dataIndex:O.getData().getRawIndex(j)})}))}),{payloadBatch:_,snapToValue:C}}function a(A,b,w,E){A[b.key]={value:w,payloadBatch:E}}function e(A,b,w,E){var C=w.payloadBatch,_=b.axis,T=_.model,S=b.axisPointerModel;if(!b.triggerTooltip||!C.length)return;var O=b.coordSys.model,I=v.makeKey(O),F=A.map[I];F||(F=A.map[I]={coordSysId:O.id,coordSysIndex:O.componentIndex,coordSysType:O.type,coordSysMainType:O.mainType,dataByAxis:[]},A.list.push(F)),F.dataByAxis.push({axisDim:_.dim,axisIndex:T.componentIndex,axisType:T.type,axisId:T.id,value:E,valueLabelOpt:{precision:S.get("label.precision"),formatter:S.get("label.formatter")},seriesDataIndices:C.slice()})}function u(A,b,w){var E=w.axesInfo=[];f(b,function(C,_){var T=C.axisPointerModel.option,S=A[_];S?(!C.useHandle&&(T.status="show"),T.value=S.value,T.seriesDataIndices=(S.payloadBatch||[]).slice()):!C.useHandle&&(T.status="hide"),T.status==="show"&&E.push({axisDim:C.axis.dim,axisIndex:C.axis.model.componentIndex,value:T.value})})}function r(A,b,w,E){if(g(b)||!A.list.length){E({type:"hideTip"});return}var C=((A.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};E({type:"showTip",escapeConnect:!0,x:b[0],y:b[1],tooltipOption:w.tooltipOption,position:w.position,dataIndexInside:C.dataIndexInside,dataIndex:C.dataIndex,seriesIndex:C.seriesIndex,dataByCoordSys:A.list})}function s(A,b,w){var E=w.getZr(),C="axisPointerLastHighlights",_=l(E)[C]||{},T=l(E)[C]={};f(A,function(I,F){var P=I.axisPointerModel.option;P.status==="show"&&f(P.seriesDataIndices,function(B){var k=B.seriesIndex+" | "+B.dataIndex;T[k]=B})});var S=[],O=[];y.each(_,function(I,F){!T[F]&&O.push(I)}),y.each(T,function(I,F){!_[F]&&S.push(I)}),O.length&&w.dispatchAction({type:"downplay",escapeConnect:!0,batch:O}),S.length&&w.dispatchAction({type:"highlight",escapeConnect:!0,batch:S})}function c(A,b){for(var w=0;w<(A||[]).length;w++){var E=A[w];if(b.axis.dim===E.axisDim&&b.axis.model.componentIndex===E.axisIndex)return E}}function h(A){var b=A.axis.model,w={},E=w.axisDim=A.axis.dim;return w.axisIndex=w[E+"AxisIndex"]=b.componentIndex,w.axisName=w[E+"AxisName"]=b.name,w.axisId=w[E+"AxisId"]=b.id,w}function g(A){return!A||A[0]==null||isNaN(A[0])||A[1]==null||isNaN(A[1])}R.exports=o},"6BzB":function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.shrinkBuf=y,D.arraySet=p,D.flattenChunks=x,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 x(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 v=Uint8Array;D.Buf8=v;var m=Uint16Array;D.Buf16=m;var f=Int32Array;D.Buf32=f},"6D9b":function(R,D,i){},"6GrX":function(R,D,i){var y=i("mFDi"),p=i("Xnb7"),x=i("bYtY"),v=x.getContext,m=x.extend,f=x.retrieve2,d=x.retrieve3,l=x.trim,o={},n=0,t=5e3,a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,e="12px sans-serif",u={};function r(G,M){u[G]=M}function s(G,M){M=M||e;var j=G+":"+M;if(o[j])return o[j];for(var K=(G+"").split(`
|
|
|
`),z=0,V=0,Q=K.length;V<Q;V++)z=Math.max(I(K[V],M).width,z);return n>t&&(n=0,o={}),n++,o[j]=z,z}function c(G,M,j,K,z,V,Q,X){return Q?g(G,M,j,K,z,V,Q,X):h(G,M,j,K,z,V,X)}function h(G,M,j,K,z,V,Q){var X=F(G,M,z,V,Q),te=s(G,M);z&&(te+=z[1]+z[3]);var $=X.outerHeight,le=A(0,te,j),re=b(0,$,K),Se=new y(le,re,te,$);return Se.lineHeight=X.lineHeight,Se}function g(G,M,j,K,z,V,Q,X){var te=P(G,{rich:Q,truncate:X,font:M,textAlign:j,textPadding:z,textLineHeight:V}),$=te.outerWidth,le=te.outerHeight,re=A(0,$,j),Se=b(0,le,K);return new y(re,Se,$,le)}function A(G,M,j){return j==="right"?G-=M:j==="center"&&(G-=M/2),G}function b(G,M,j){return j==="middle"?G-=M/2:j==="bottom"&&(G-=M),G}function w(G,M,j){var K=M.textPosition,z=M.textDistance,V=j.x,Q=j.y;z=z||0;var X=j.height,te=j.width,$=X/2,le="left",re="top";switch(K){case"left":V-=z,Q+=$,le="right",re="middle";break;case"right":V+=z+te,Q+=$,re="middle";break;case"top":V+=te/2,Q-=z,le="center",re="bottom";break;case"bottom":V+=te/2,Q+=X+z,le="center";break;case"inside":V+=te/2,Q+=$,le="center",re="middle";break;case"insideLeft":V+=z,Q+=$,re="middle";break;case"insideRight":V+=te-z,Q+=$,le="right",re="middle";break;case"insideTop":V+=te/2,Q+=z,le="center";break;case"insideBottom":V+=te/2,Q+=X-z,le="center",re="bottom";break;case"insideTopLeft":V+=z,Q+=z;break;case"insideTopRight":V+=te-z,Q+=z,le="right";break;case"insideBottomLeft":V+=z,Q+=X-z,re="bottom";break;case"insideBottomRight":V+=te-z,Q+=X-z,le="right",re="bottom";break}return G=G||{},G.x=V,G.y=Q,G.textAlign=le,G.textVerticalAlign=re,G}function E(G,M,j){var K={textPosition:G,textDistance:j};return w({},K,M)}function C(G,M,j,K,z){if(!M)return"";var V=(G+"").split(`
|
|
|
`);z=_(M,j,K,z);for(var Q=0,X=V.length;Q<X;Q++)V[Q]=T(V[Q],z);return V.join(`
|
|
|
`)}function _(G,M,j,K){K=m({},K),K.font=M;var j=f(j,"...");K.maxIterations=f(K.maxIterations,2);var z=K.minChar=f(K.minChar,0);K.cnCharWidth=s("\u56FD",M);var V=K.ascCharWidth=s("a",M);K.placeholder=f(K.placeholder,"");for(var Q=G=Math.max(0,G-1),X=0;X<z&&Q>=V;X++)Q-=V;var te=s(j,M);return te>Q&&(j="",te=0),Q=G-te,K.ellipsis=j,K.ellipsisWidth=te,K.contentWidth=Q,K.containerWidth=G,K}function T(G,M){var j=M.containerWidth,K=M.font,z=M.contentWidth;if(!j)return"";var V=s(G,K);if(V<=j)return G;for(var Q=0;;Q++){if(V<=z||Q>=M.maxIterations){G+=M.ellipsis;break}var X=Q===0?S(G,z,M.ascCharWidth,M.cnCharWidth):V>0?Math.floor(G.length*z/V):0;G=G.substr(0,X),V=s(G,K)}return G===""&&(G=M.placeholder),G}function S(G,M,j,K){for(var z=0,V=0,Q=G.length;V<Q&&z<M;V++){var X=G.charCodeAt(V);z+=0<=X&&X<=127?j:K}return V}function O(G){return s("\u56FD",G)}function I(G,M){return u.measureText(G,M)}u.measureText=function(G,M){var j=v();return j.font=M||e,j.measureText(G)};function F(G,M,j,K,z){G!=null&&(G+="");var V=f(K,O(M)),Q=G?G.split(`
|
|
|
`):[],X=Q.length*V,te=X,$=!0;if(j&&(te+=j[0]+j[2]),G&&z){$=!1;var le=z.outerHeight,re=z.outerWidth;if(le!=null&&te>le)G="",Q=[];else if(re!=null)for(var Se=_(re-(j?j[1]+j[3]:0),M,z.ellipsis,{minChar:z.minChar,placeholder:z.placeholder}),Re=0,Pe=Q.length;Re<Pe;Re++)Q[Re]=T(Q[Re],Se)}return{lines:Q,height:X,outerHeight:te,lineHeight:V,canCacheByTextString:$}}function P(G,M){var j={lines:[],width:0,height:0};if(G!=null&&(G+=""),!G)return j;for(var K=a.lastIndex=0,z;(z=a.exec(G))!=null;){var V=z.index;V>K&&B(j,G.substring(K,V)),B(j,z[2],z[1]),K=a.lastIndex}K<G.length&&B(j,G.substring(K,G.length));var Q=j.lines,X=0,te=0,$=[],le=M.textPadding,re=M.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],Ge=0,ct=0,Ue=0;Ue<Je.tokens.length;Ue++){var ae=Je.tokens[Ue],lt=ae.styleName&&M.rich[ae.styleName]||{},pe=ae.textPadding=lt.textPadding,J=ae.font=lt.font||M.font,Y=ae.textHeight=f(lt.textHeight,O(J));if(pe&&(Y+=pe[0]+pe[2]),ae.height=Y,ae.lineHeight=d(lt.textLineHeight,M.textLineHeight,Y),ae.textAlign=lt&<.textAlign||M.textAlign,ae.textVerticalAlign=lt&<.textVerticalAlign||"middle",Re!=null&&X+ae.lineHeight>Re)return{lines:[],width:0,height:0};ae.textWidth=s(ae.text,J);var ee=lt.textWidth,fe=ee==null||ee==="auto";if(typeof ee=="string"&&ee.charAt(ee.length-1)==="%")ae.percentWidth=ee,$.push(ae),ee=0;else{if(fe){ee=ae.textWidth;var we=lt.textBackgroundColor,Ce=we&&we.image;Ce&&(Ce=p.findExistImage(Ce),p.isImageReady(Ce)&&(ee=Math.max(ee,Ce.width*Y/Ce.height)))}var _e=pe?pe[1]+pe[3]:0;ee+=_e;var he=Se!=null?Se-ct:null;he!=null&&he<ee&&(!fe||he<_e?(ae.text="",ae.textWidth=ee=0):(ae.text=C(ae.text,he-_e,J,re.ellipsis,{minChar:re.minChar}),ae.textWidth=s(ae.text,J),ee=ae.textWidth+_e))}ct+=ae.width=ee,lt&&(Ge=Math.max(Ge,ae.lineHeight))}Je.width=ct,Je.lineHeight=Ge,X+=Ge,te=Math.max(te,ct)}j.outerWidth=j.width=f(M.textWidth,te),j.outerHeight=j.height=f(M.textHeight,X),le&&(j.outerWidth+=le[1]+le[3],j.outerHeight+=le[0]+le[2]);for(var Pe=0;Pe<$.length;Pe++){var ae=$[Pe],ye=ae.percentWidth;ae.width=parseInt(ye,10)/100*te}return j}function B(G,M,j){for(var K=M==="",z=M.split(`
|
|
|
`),V=G.lines,Q=0;Q<z.length;Q++){var X=z[Q],te={styleName:j,text:X,isLineHolder:!X&&!K};if(Q)V.push({tokens:[te]});else{var $=(V[V.length-1]||(V[0]={tokens:[]})).tokens,le=$.length;le===1&&$[0].isLineHolder?$[0]=te:(X||!le||K)&&$.push(te)}}}function k(G){var M=(G.fontSize||G.fontFamily)&&[G.fontStyle,G.fontWeight,(G.fontSize||12)+"px",G.fontFamily||"sans-serif"].join(" ");return M&&l(M)||G.textFont||G.font}D.DEFAULT_FONT=e,D.$override=r,D.getWidth=s,D.getBoundingRect=c,D.adjustTextX=A,D.adjustTextY=b,D.calculateTextPosition=w,D.adjustTextPositionOnRect=E,D.truncateText=C,D.getLineHeight=O,D.measureText=I,D.parsePlainText=F,D.parseRichText=P,D.makeFont=k},"6Hfg":function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="SwapRightOutlined";var n=v.forwardRef(o);D.default=n},"6Ic6":function(R,D,i){var y=i("bYtY"),p=y.each,x=i("4fz+"),v=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 x,this.uid=v.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,E,C){},highlight:function(b,w,E,C){s(b.getData(),C,"emphasis")},downplay:function(b,w,E,C){s(b.getData(),C,"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,E,C){this.render(b,w,E,C)};function r(b,w,E){if(b&&(b.trigger(w,E),b.isGroup&&!d.isHighDownDispatcher(b)))for(var C=0,_=b.childCount();C<_;C++)r(b.childAt(C),w,E)}function s(b,w,E){var C=f.queryDataIndex(b,w),_=w&&w.highlightKey!=null?d.getHighlightDigit(w.highlightKey):null;C!=null?p(f.normalizeToArray(C),function(T){r(b.getItemGraphicEl(T),E,_)}):b.eachItemGraphicEl(function(T){r(T,E,_)})}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,E=b.ecModel,C=b.api,_=b.payload,T=w.pipelineContext.progressiveRender,S=b.view,O=_&&t(_).updateMethod,I=T?"incrementalPrepareRender":O&&S[O]?O:"render";return I!=="render"&&S[I](w,E,C,_),g[I]}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)}}},A=e;R.exports=A},"6MrE":function(R,D,i){},"6Qwc":function(R,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(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("qWUW"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"6UJt":function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("v56E"),v=i.n(x),m=i("R9oj"),f=i("5NDa")},"6VBw":function(R,D,i){"use strict";var y=i("VTBJ"),p=i("ODXe"),x=i("rePB"),v=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,E=b.secondaryColor;t.primaryColor=w,t.secondaryColor=E||Object(o.b)(w),t.calculated=!!E}function e(){return Object(y.a)({},t)}var u=function(w){var E=w.icon,C=w.className,_=w.onClick,T=w.style,S=w.primaryColor,O=w.secondaryColor,I=Object(v.a)(w,n),F=t;if(S&&(F={primaryColor:S,secondaryColor:O||Object(o.b)(S)}),Object(o.f)(),Object(o.g)(Object(o.c)(E),"icon should be icon definiton, but got ".concat(E)),!Object(o.c)(E))return null;var P=E;return P&&typeof P.icon=="function"&&(P=Object(y.a)(Object(y.a)({},P),{},{icon:P.icon(F.primaryColor,F.secondaryColor)})),Object(o.a)(P.icon,"svg-".concat(P.name),Object(y.a)({className:C,onClick:_,style:T,"data-icon":P.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},I))};u.displayName="IconReact",u.getTwoToneColors=e,u.setTwoToneColors=a;var r=u;function s(b){var w=Object(o.d)(b),E=Object(p.a)(w,2),C=E[0],_=E[1];return r.setTwoToneColors({primaryColor:C,secondaryColor:_})}function c(){var b=r.getTwoToneColors();return b.calculated?[b.primaryColor,b.secondaryColor]:b.primaryColor}var h=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];s("#1890ff");var g=m.forwardRef(function(b,w){var E,C=b.className,_=b.icon,T=b.spin,S=b.rotate,O=b.tabIndex,I=b.onClick,F=b.twoToneColor,P=Object(v.a)(b,h),B=m.useContext(l.a),k=B.prefixCls,G=k===void 0?"anticon":k,M=B.rootClassName,j=d()(M,G,(E={},Object(x.a)(E,"".concat(G,"-").concat(_.name),!!_.name),Object(x.a)(E,"".concat(G,"-spin"),!!T||_.name==="loading"),E),C),K=O;K===void 0&&I&&(K=-1);var z=S?{msTransform:"rotate(".concat(S,"deg)"),transform:"rotate(".concat(S,"deg)")}:void 0,V=Object(o.d)(F),Q=Object(p.a)(V,2),X=Q[0],te=Q[1];return m.createElement("span",Object(y.a)(Object(y.a)({role:"img","aria-label":_.name},P),{},{ref:w,tabIndex:K,onClick:I,className:j}),m.createElement(r,{icon:_,primaryColor:X,secondaryColor:te,style:z}))});g.displayName="AntdIcon",g.getTwoToneColor=c,g.setTwoToneColor=s;var A=D.a=g},"6cGi":function(R,D,i){"use strict";i.d(D,"a",function(){return f});var y=i("ODXe"),p=i("mBDr"),x=i("TNol"),v=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(v.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,A=Object(p.a)(a),b=Object(v.a)([h]),w=Object(y.a)(b,2),E=w[0],C=w[1];Object(x.b)(function(){var T=E[0];s!==T&&A(s,T)},[E]),Object(x.b)(function(){m(t)||c(t)},[t]);var _=Object(p.a)(function(T,S){c(T,S),C([h],S)});return[g,_]}},"6fms":function(R,D,i){var y=i("SUKs"),p=i("06Qe"),x=i("bYtY"),v=x.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+'"')}}v(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(o){f.prototype[o]=d(o)});var l=f;R.exports=l},"6r85":function(R,D,i){var y=i("bYtY");function p(x){if(!x||!y.isArray(x.series))return;y.each(x.series,function(v){y.isObject(v)&&v.type==="k"&&(v.type="candlestick")})}R.exports=p},"6sVZ":function(R,D){var i=Object.prototype;function y(p){var x=p&&p.constructor,v=typeof x=="function"&&x.prototype||i;return p===v}R.exports=y},"6uqw":function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("ItGF"),v=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,A){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(h,A)},optionUpdated:function(h,g){var A=this.option;x.canvasSupported||(A.realtime=!1),!g&&f.replaceVisualOption(A,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(A,b){g.push(b)}):g=d.normalizeToArray(h),g},eachTargetSeries:function(h,g){p.each(this.getTargetSeriesIndices(),function(A){h.call(g,this.ecModel.getSeriesByIndex(A))},this)},isTargetSeries:function(h){var g=!1;return this.eachTargetSeries(function(A){A===h&&(g=!0)}),g},formatValueText:function(h,g,A){var b=this.option,w=b.precision,E=this.dataBound,C=b.formatter,_,T;if(A=A||["<",">"],p.isArray(h)&&(h=h.slice(),_=!0),T=g?h:_?[S(h[0]),S(h[1])]:S(h),p.isString(C))return C.replace("{value}",_?T[0]:T).replace("{value2}",_?T[1]:T);if(p.isFunction(C))return _?C(h[0],h[1]):C(h);if(_)return h[0]===E[0]?A[0]+" "+T[1]:h[1]===E[1]?A[1]+" "+T[0]:T[0]+" - "+T[1];return T;function S(O){return O===E[0]?"min":O===E[1]?"max":(+O).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,A=h.dimensions;if(g==null&&!A.length)return;if(g!=null)return h.getDimension(g);for(var b=h.dimensions,w=b.length-1;w>=0;w--){var E=b[w],C=h.getDimensionInfo(E);if(!C.isCalculationCoord)return E}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var h=this.ecModel,g=this.option,A={inRange:g.inRange,outOfRange:g.outOfRange},b=g.target||(g.target={}),w=g.controller||(g.controller={});p.merge(b,A),p.merge(w,A);var E=this.isCategory();C.call(this,b),C.call(this,w),_.call(this,b,"inRange","outOfRange"),T.call(this,w);function C(S){t(g.color)&&!S.inRange&&(S.inRange={color:g.color.slice().reverse()}),S.inRange=S.inRange||{color:h.get("gradientColor")},a(this.stateList,function(O){var I=S[O];if(p.isString(I)){var F=v.get(I,"active",E);F?(S[O]={},S[O][I]=F):delete S[O]}},this)}function _(S,O,I){var F=S[O],P=S[I];F&&!P&&(P=S[I]={},a(F,function(B,k){if(!m.isValidType(k))return;var G=v.get(k,"inactive",E);G!=null&&(P[k]=G,k==="color"&&!P.hasOwnProperty("opacity")&&!P.hasOwnProperty("colorAlpha")&&(P.opacity=[0,0]))}))}function T(S){var O=(S.inRange||{}).symbol||(S.outOfRange||{}).symbol,I=(S.inRange||{}).symbolSize||(S.outOfRange||{}).symbolSize,F=this.get("inactiveColor");a(this.stateList,function(P){var B=this.itemSize,k=S[P];k||(k=S[P]={color:E?F:[F]}),k.symbol==null&&(k.symbol=O&&p.clone(O)||(E?"roundRect":["roundRect"])),k.symbolSize==null&&(k.symbolSize=I&&p.clone(I)||(E?B[0]:[B[0],B[0]])),k.symbol=o(k.symbol,function(j){return j==="none"||j==="square"?"roundRect":j});var G=k.symbolSize;if(G!=null){var M=-Infinity;n(G,function(j){j>M&&(M=j)}),k.symbolSize=o(G,function(j){return u(j,[0,M],[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;R.exports=c},"6usn":function(R,D,i){var y=i("bYtY");function p(v,m){return y.map(["Radius","Angle"],function(f,d){var l=this["get"+f+"Axis"](),o=m[d],n=v[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 x(v){var m=v.getRadiusAxis(),f=v.getAngleAxis(),d=m.getExtent();return d[0]>d[1]&&d.reverse(),{coordSys:{type:"polar",cx:v.cx,cy:v.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=v.coordToPoint([o,n]);return t.push(o,n*Math.PI/180),t}),size:y.bind(p,v)}}}R.exports=x},"6xvX":function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("V7ic"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"711d":function(R,D){function i(y){return function(p){return p==null?void 0:p[y]}}R.exports=i},"72pK":function(R,D){function i(x,v,m,f,d,l){x=x||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(v[1]-v[0]);n=p(n,[0,o]),d=l=p(n,[d,l]),f=0}v[0]=p(v[0],m),v[1]=p(v[1],m);var t=y(v,f);v[f]+=x;var a=d||0,e=m.slice();t.sign<0?e[0]+=a:e[1]-=a,v[f]=p(v[f],e);var u=y(v,f);d!=null&&(u.sign!==t.sign||u.span<d)&&(v[1-f]=v[f]+t.sign*d);var u=y(v,f);return l!=null&&u.span>l&&(v[1-f]=v[f]+u.sign*l),v}function y(x,v){var m=x[v]-x[1-v];return{span:Math.abs(m),sign:m>0?-1:m<0?1:v?-1:1}}function p(x,v){return Math.min(v[1]!=null?v[1]:Infinity,Math.max(v[0]!=null?v[0]:-Infinity,x))}R.exports=i},"75ce":function(R,D,i){var y=i("ProS");i("IXuL"),i("8X+K");var p=i("f5Yq"),x=i("h8O9"),v=i("/d5a");i("Ae16"),y.registerVisual(p("line","circle","line")),y.registerLayout(x("line")),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,v("line"))},"75ev":function(R,D,i){var y=i("ProS");i("IWNH"),i("bNin"),i("v5uJ");var p=i("f5Yq"),x=i("yik8");y.registerVisual(p("tree","circle")),y.registerLayout(x)},"77Zs":function(R,D,i){var y=i("Xi7e");function p(){this.__data__=new y,this.size=0}R.exports=p},"7AJT":function(R,D,i){var y=i("bYtY"),p=i("hM6l"),x=function(m,f,d,l,o){p.call(this,m,f,d),this.type=l||"value",this.position=o||"bottom"};x.prototype={constructor:x,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(x,p);var v=x;R.exports=v},"7Cbv":function(R,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 x(){if(!y)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return y(p)}var v=/^(?:[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"&&v.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||x)();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(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=x.createHashMap,m=x.isString,f=x.isArray,d=x.each,l=x.assert,o=i("MEGo"),n=o.parseXML,t=v(),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 A=e[g];A(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)}};R.exports=a},"7G+c":function(R,D,i){var y=i("bYtY"),p=y.createHashMap,x=y.isTypedArray,v=i("Yl7c"),m=v.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:x(u)?n:d,fromDataset:!1})},m(a);var e=a;R.exports=e},"7GkX":function(R,D,i){var y=i("b80T"),p=i("A90E"),x=i("MMmD");function v(m){return x(m)?y(m):p(m)}R.exports=v},"7Kak":function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("KPFz"),v=i.n(x)},"7Phj":function(R,D,i){var y=i("bYtY"),p=i("OELB"),x=p.parsePercent,v=y.each;function m(o){var n=f(o);v(n,function(t){var a=t.seriesModels;if(!a.length)return;d(t),v(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;v(a,function(E){h=Math.max(h,E.getData().count())}),n=t.getExtent(),Math.abs(n[1]-n[0])/h}v(a,function(E){var C=E.get("boxWidth");y.isArray(C)||(C=[C,C]),s.push([x(C[0],c)||0,x(C[1],c)||0])});var g=c*.8-2,A=g/e*.3,b=(g-A*(e-1))/e,w=b/2-g/2;v(a,function(E,C){r.push(w),w+=A+b,u.push(Math.min(Math.max(b,s[C][0]),s[C][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 A=0;A<e.count();A++){var b=e.get(h,A),w=O(b,g[2],A),E=O(b,g[0],A),C=O(b,g[1],A),_=O(b,g[3],A),T=O(b,g[4],A),S=[];I(S,C,0),I(S,_,1),S.push(E,C,T,_),F(S,E),F(S,T),F(S,w),e.setItemLayout(A,{initBaseline:w[s],ends:S})}function O(P,B,k){var G=e.get(B,k),M=[];M[r]=P,M[s]=G;var j;return isNaN(P)||isNaN(G)?j=[NaN,NaN]:(j=a.dataToPoint(M),j[r]+=n),j}function I(P,B,k){var G=B.slice(),M=B.slice();G[r]+=u,M[r]-=u,k?P.push(G,M):P.push(M,G)}function F(P,B){var k=B.slice(),G=B.slice();k[r]-=u,G[r]+=u,P.push(k,G)}}R.exports=m},"7SHv":function(R,D,i){var y=i("LPTA"),p=y.devicePixelRatio,x=i("bYtY"),v=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(_){return parseInt(_,10)}function s(_){return _?_.__builtin__?!0:!(typeof _.resize!="function"||typeof _.refresh!="function"):!1}var c=new m(0,0,0,0),h=new m(0,0,0,0);function g(_,T,S){return c.copy(_.getBoundingRect()),_.transform&&c.applyTransform(_.transform),h.width=T,h.height=S,!c.intersect(h)}function A(_,T){if(_===T)return!1;if(!_||!T||_.length!==T.length)return!0;for(var S=0;S<_.length;S++)if(_[S]!==T[S])return!0;return!1}function b(_,T){for(var S=0;S<_.length;S++){var O=_[S];O.setTransform(T),T.beginPath(),O.buildPath(T,O.shape),T.clip(),O.restoreTransform(T)}}function w(_,T){var S=document.createElement("div");return S.style.cssText=["position:relative","width:"+_+"px","height:"+T+"px","padding:0","margin:0","border-width:0"].join(";")+";",S}var E=function(T,S,O){this.type="canvas";var I=!T.nodeName||T.nodeName.toUpperCase()==="CANVAS";this._opts=O=x.extend({},O||{}),this.dpr=O.devicePixelRatio||p,this._singleCanvas=I,this.root=T;var F=T.style;F&&(F["-webkit-tap-highlight-color"]="transparent",F["-webkit-user-select"]=F["user-select"]=F["-webkit-touch-callout"]="none",T.innerHTML=""),this.storage=S;var P=this._zlevelList=[],B=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,I){var G=T.width,M=T.height;O.width!=null&&(G=O.width),O.height!=null&&(M=O.height),this.dpr=O.devicePixelRatio||1,T.width=G*this.dpr,T.height=M*this.dpr,this._width=G,this._height=M;var j=new d(T,this,this.dpr);j.__builtin__=!0,j.initContext(),B[a]=j,j.zlevel=a,P.push(a),this._domRoot=T}else{this._width=this._getSize(0),this._height=this._getSize(1);var k=this._domRoot=w(this._width,this._height);T.appendChild(k)}this._hoverlayer=null,this._hoverElements=[]};E.prototype={constructor:E,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var T=this.getViewportRoot();if(T)return{offsetLeft:T.offsetLeft||0,offsetTop:T.offsetTop||0}},refresh:function(T){var S=this.storage.getDisplayList(!0),O=this._zlevelList;this._redrawId=Math.random(),this._paintList(S,T,this._redrawId);for(var I=0;I<O.length;I++){var F=O[I],P=this._layers[F];if(!P.__builtin__&&P.refresh){var B=I===0?this._backgroundColor:null;P.refresh(B)}}return this.refreshHover(),this},addHover:function(T,S){if(T.__hoverMir)return;var O=new T.constructor({style:T.style,shape:T.shape,z:T.z,z2:T.z2,silent:T.silent});return O.__from=T,T.__hoverMir=O,S&&O.setStyle(S),this._hoverElements.push(O),O},removeHover:function(T){var S=T.__hoverMir,O=this._hoverElements,I=x.indexOf(O,S);I>=0&&O.splice(I,1),T.__hoverMir=null},clearHover:function(T){for(var S=this._hoverElements,O=0;O<S.length;O++){var I=S[O].__from;I&&(I.__hoverMir=null)}S.length=0},refreshHover:function(){var T=this._hoverElements,S=T.length,O=this._hoverlayer;if(O&&O.clear(),!S)return;f(T,this.storage.displayableSortFunc),O||(O=this._hoverlayer=this.getLayer(t));var I={};O.ctx.save();for(var F=0;F<S;){var P=T[F],B=P.__from;if(!(B&&B.__zr)){T.splice(F,1),B.__hoverMir=null,S--;continue}F++,B.invisible||(P.transform=B.transform,P.invTransform=B.invTransform,P.__clipPaths=B.__clipPaths,this._doPaintEl(P,O,!0,I))}O.ctx.restore()},getHoverLayer:function(){return this.getLayer(t)},_paintList:function(T,S,O){if(this._redrawId!==O)return;S=S||!1,this._updateLayerStatus(T);var I=this._doPaintList(T,S);if(this._needsManuallyCompositing&&this._compositeManually(),!I){var F=this;l(function(){F._paintList(T,S,O)})}},_compositeManually:function(){var T=this.getLayer(a).ctx,S=this._domRoot.width,O=this._domRoot.height;T.clearRect(0,0,S,O),this.eachBuiltinLayer(function(I){I.virtual&&T.drawImage(I.dom,0,0,S,O)})},_doPaintList:function(T,S){for(var O=[],I=0;I<this._zlevelList.length;I++){var F=this._zlevelList[I],P=this._layers[F];P.__builtin__&&P!==this._hoverlayer&&(P.__dirty||S)&&O.push(P)}for(var B=!0,k=0;k<O.length;k++){var P=O[k],G=P.ctx,M={};G.save();var j=S?P.__startIndex:P.__drawIndex,K=!S&&P.incremental&&Date.now,z=K&&Date.now(),V=P.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(P.__startIndex===P.__endIndex)P.clear(!1,V);else if(j===P.__startIndex){var Q=T[j];(!Q.incremental||!Q.notClear||S)&&P.clear(!1,V)}j===-1&&(console.error("For some unknown reason. drawIndex is -1"),j=P.__startIndex);for(var X=j;X<P.__endIndex;X++){var te=T[X];if(this._doPaintEl(te,P,S,M),te.__dirty=te.__dirtyText=!1,K){var $=Date.now()-z;if($>15)break}}P.__drawIndex=X,P.__drawIndex<P.__endIndex&&(B=!1),M.prevElClipPaths&&G.restore(),G.restore()}return n.wxa&&x.each(this._layers,function(le){le&&le.ctx&&le.ctx.draw&&le.ctx.draw()}),B},_doPaintEl:function(T,S,O,I){var F=S.ctx,P=T.transform;if((S.__dirty||O)&&!T.invisible&&T.style.opacity!==0&&!(P&&!P[0]&&!P[3])&&!(T.culling&&g(T,this._width,this._height))){var B=T.__clipPaths,k=I.prevElClipPaths;(!k||A(B,k))&&(k&&(F.restore(),I.prevElClipPaths=null,I.prevEl=null),B&&(F.save(),b(B,F),I.prevElClipPaths=B)),T.beforeBrush&&T.beforeBrush(F),T.brush(F,I.prevEl||null),I.prevEl=T,T.afterBrush&&T.afterBrush(F)}},getLayer:function(T,S){this._singleCanvas&&!this._needsManuallyCompositing&&(T=a);var O=this._layers[T];return O||(O=new d("zr_"+T,this,this.dpr),O.zlevel=T,O.__builtin__=!0,this._layerConfig[T]?x.merge(O,this._layerConfig[T],!0):this._layerConfig[T-e]&&x.merge(O,this._layerConfig[T-e],!0),S&&(O.virtual=S),this.insertLayer(T,O),O.initContext()),O},insertLayer:function(T,S){var O=this._layers,I=this._zlevelList,F=I.length,P=null,B=-1,k=this._domRoot;if(O[T]){v("ZLevel "+T+" has been used already");return}if(!s(S)){v("Layer of zlevel "+T+" is not valid");return}if(F>0&&T>I[0]){for(B=0;B<F-1&&!(I[B]<T&&I[B+1]>T);B++);P=O[I[B]]}if(I.splice(B+1,0,T),O[T]=S,!S.virtual)if(P){var G=P.dom;G.nextSibling?k.insertBefore(S.dom,G.nextSibling):k.appendChild(S.dom)}else k.firstChild?k.insertBefore(S.dom,k.firstChild):k.appendChild(S.dom)},eachLayer:function(T,S){var O=this._zlevelList,I,F;for(F=0;F<O.length;F++)I=O[F],T.call(S,this._layers[I],I)},eachBuiltinLayer:function(T,S){var O=this._zlevelList,I,F,P;for(P=0;P<O.length;P++)F=O[P],I=this._layers[F],I.__builtin__&&T.call(S,I,F)},eachOtherLayer:function(T,S){var O=this._zlevelList,I,F,P;for(P=0;P<O.length;P++)F=O[P],I=this._layers[F],I.__builtin__||T.call(S,I,F)},getLayers:function(){return this._layers},_updateLayerStatus:function(T){this.eachBuiltinLayer(function(M,j){M.__dirty=M.__used=!1});function S(M){F&&(F.__endIndex!==M&&(F.__dirty=!0),F.__endIndex=M)}if(this._singleCanvas)for(var O=1;O<T.length;O++){var I=T[O];if(I.zlevel!==T[O-1].zlevel||I.incremental){this._needsManuallyCompositing=!0;break}}for(var F=null,P=0,B,O=0;O<T.length;O++){var I=T[O],k=I.zlevel,G;B!==k&&(B=k,P=0),I.incremental?(G=this.getLayer(k+u,this._needsManuallyCompositing),G.incremental=!0,P=1):G=this.getLayer(k+(P>0?e:0),this._needsManuallyCompositing),G.__builtin__||v("ZLevel "+k+" has been used by unkown layer "+G.id),G!==F&&(G.__used=!0,G.__startIndex!==O&&(G.__dirty=!0),G.__startIndex=O,G.incremental?G.__drawIndex=-1:G.__drawIndex=O,S(O),F=G),I.__dirty&&(G.__dirty=!0,G.incremental&&G.__drawIndex<0&&(G.__drawIndex=O))}S(O),this.eachBuiltinLayer(function(M,j){!M.__used&&M.getElementCount()>0&&(M.__dirty=!0,M.__startIndex=M.__endIndex=M.__drawIndex=0),M.__dirty&&M.__drawIndex<0&&(M.__drawIndex=M.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(T){T.clear()},setBackgroundColor:function(T){this._backgroundColor=T},configLayer:function(T,S){if(S){var O=this._layerConfig;O[T]?x.merge(O[T],S,!0):O[T]=S;for(var I=0;I<this._zlevelList.length;I++){var F=this._zlevelList[I];if(F===T||F===T+e){var P=this._layers[F];x.merge(P,O[T],!0)}}}},delLayer:function(T){var S=this._layers,O=this._zlevelList,I=S[T];if(!I)return;I.dom.parentNode.removeChild(I.dom),delete S[T],O.splice(x.indexOf(O,T),1)},resize:function(T,S){if(this._domRoot.style){var O=this._domRoot;O.style.display="none";var I=this._opts;if(T!=null&&(I.width=T),S!=null&&(I.height=S),T=this._getSize(0),S=this._getSize(1),O.style.display="",this._width!==T||S!==this._height){O.style.width=T+"px",O.style.height=S+"px";for(var F in this._layers)this._layers.hasOwnProperty(F)&&this._layers[F].resize(T,S);x.each(this._progressiveLayers,function(P){P.resize(T,S)}),this.refresh(!0)}this._width=T,this._height=S}else{if(T==null||S==null)return;this._width=T,this._height=S,this.getLayer(a).resize(T,S)}return this},clearLayer:function(T){var S=this._layers[T];S&&S.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(T){if(T=T||{},this._singleCanvas&&!this._compositeManually)return this._layers[a].dom;var S=new d("image",this,T.pixelRatio||this.dpr);if(S.initContext(),S.clear(!1,T.backgroundColor||this._backgroundColor),T.pixelRatio<=this.dpr){this.refresh();var O=S.dom.width,I=S.dom.height,F=S.ctx;this.eachLayer(function(M){M.__builtin__?F.drawImage(M.dom,0,0,O,I):M.renderToCanvas&&(S.ctx.save(),M.renderToCanvas(S.ctx),S.ctx.restore())})}else for(var P={},B=this.storage.getDisplayList(!0),k=0;k<B.length;k++){var G=B[k];this._doPaintEl(G,S,!0,P)}return S.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(T){var S=this._opts,O=["width","height"][T],I=["clientWidth","clientHeight"][T],F=["paddingLeft","paddingTop"][T],P=["paddingRight","paddingBottom"][T];if(S[O]!=null&&S[O]!=="auto")return parseFloat(S[O]);var B=this.root,k=document.defaultView.getComputedStyle(B);return(B[I]||r(k[O])||r(B.style[O]))-(r(k[F])||0)-(r(k[P])||0)|0},pathToImage:function(T,S){S=S||this.dpr;var O=document.createElement("canvas"),I=O.getContext("2d"),F=T.getBoundingRect(),P=T.style,B=P.shadowBlur*S,k=P.shadowOffsetX*S,G=P.shadowOffsetY*S,M=P.hasStroke()?P.lineWidth:0,j=Math.max(M/2,-k+B),K=Math.max(M/2,k+B),z=Math.max(M/2,-G+B),V=Math.max(M/2,G+B),Q=F.width+j+K,X=F.height+z+V;O.width=Q*S,O.height=X*S,I.scale(S,S),I.clearRect(0,0,Q,X),I.dpr=S;var te={position:T.position,rotation:T.rotation,scale:T.scale};T.position=[j-F.x,z-F.y],T.rotation=0,T.scale=[1,1],T.updateTransform(),T&&T.brush(I);var $=o,le=new $({style:{x:0,y:0,image:O}});return te.position!=null&&(le.position=T.position=te.position),te.rotation!=null&&(le.rotation=T.rotation=te.rotation),te.scale!=null&&(le.scale=T.scale=te.scale),le}};var C=E;R.exports=C},"7a+S":function(R,D,i){var y=i("bYtY"),p=i("bLfw"),x=i("YXkt"),v=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=v.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 x([{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;R.exports=f},"7aKB":function(R,D,i){var y=i("bYtY"),p=i("6GrX"),x=i("OELB");function v(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,E){return w=(w||"").toLowerCase().replace(/-(.)/g,function(C,_){return _.toUpperCase()}),E&&w&&(w=w.charAt(0).toUpperCase()+w.slice(1)),w}var f=y.normalizeCssArray,d=/([&<>"'])/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"};function o(w){return w==null?"":(w+"").replace(d,function(E,C){return l[C]})}var n=["a","b","c","d","e","f","g"],t=function(w,E){return"{"+w+(E==null?"":E)+"}"};function a(w,E,C){y.isArray(E)||(E=[E]);var _=E.length;if(!_)return"";for(var T=E[0].$vars||[],S=0;S<T.length;S++){var O=n[S];w=w.replace(t(O),t(O,0))}for(var I=0;I<_;I++)for(var F=0;F<T.length;F++){var P=E[I][T[F]];w=w.replace(t(n[F],I),C?o(P):P)}return w}function e(w,E,C){return y.each(E,function(_,T){w=w.replace("{"+T+"}",C?o(_):_)}),w}function u(w,E){w=y.isString(w)?{color:w,extraCssText:E}:w||{};var C=w.color,_=w.type,E=w.extraCssText,T=w.renderMode||"html",S=w.markerId||"X";return C?T==="html"?_==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+o(C)+";"+(E||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+o(C)+";"+(E||"")+'"></span>':{renderMode:T,content:"{marker"+S+"|} ",style:{color:C}}:""}function r(w,E){return w+="","0000".substr(0,E-w.length)+w}function s(w,E,C){(w==="week"||w==="month"||w==="quarter"||w==="half-year"||w==="year")&&(w=`MM-dd
|
|
|
yyyy`);var _=x.parseDate(E),T=C?"UTC":"",S=_["get"+T+"FullYear"](),O=_["get"+T+"Month"]()+1,I=_["get"+T+"Date"](),F=_["get"+T+"Hours"](),P=_["get"+T+"Minutes"](),B=_["get"+T+"Seconds"](),k=_["get"+T+"Milliseconds"]();return w=w.replace("MM",r(O,2)).replace("M",O).replace("yyyy",S).replace("yy",S%100).replace("dd",r(I,2)).replace("d",I).replace("hh",r(F,2)).replace("h",F).replace("mm",r(P,2)).replace("m",P).replace("ss",r(B,2)).replace("s",B).replace("SSS",r(k,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 A(w,E,C,_,T,S,O,I){return p.getBoundingRect(w,E,C,_,T,I,S,O)}function b(w,E){if(E==="_blank"||E==="blank"){var C=window.open();C.opener=null,C.location=w}else window.open(w,E)}D.addCommas=v,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=A,D.windowOpen=b},"7bkD":function(R,D,i){var y=i("bYtY");function p(x,v){v=v||{};var m=x.coordinateSystem,f=x.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],x.get("axisTick.inside")&&(d.tickDirection=-d.tickDirection),y.retrieve(v.labelInside,x.get("axisLabel.inside"))&&(d.labelDirection=-d.labelDirection);var r=v.rotate;return r==null&&(r=x.get("axisLabel.rotate")),d.labelRotation=l==="top"?-r:r,d.z2=1,d}D.layout=p},"7fqy":function(R,D){function i(y){var p=-1,x=Array(y.size);return y.forEach(function(v,m){x[++p]=[m,v]}),x}R.exports=i},"7hqr":function(R,D,i){var y=i("bYtY"),p=y.each,x=y.isString;function v(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(A,b){x(A)&&(l[b]=A={name:A}),a&&!A.isExtraCoord&&(!n&&!e&&A.ordinalMeta&&(e=A),!u&&A.type!=="ordinal"&&A.type!=="time"&&(!t||t===A.coordDim)&&(u=A))}),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(A){A.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=v,D.isDimensionStacked=m,D.getStackedDimension=f},"7mYs":function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("IwbS"),v=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 x.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 A=h.date;A.setMonth(A.getMonth()+1),h=u.getDateInfo(A)}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 E=e._getLinePointsOfOneWeek(o,w,t);e._tlpoints.push(E[0]),e._blpoints.push(E[E.length-1]),s&&e._drawSplitline(E,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 x.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?v.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,A={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"),E={start:n.start.y,end:n.end.y,nameMap:b},C=this._formatterLabel(w,E),_=new x.Text({z2:30});x.setTextStyle(_.style,e,{text:C}),_.attr(this._yearTextPositionControl(_,A[r],t,r,u)),a.add(_)},_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 A=s==="center",b=0;b<c[h].length-1;b++){var w=c[h][b].slice(),E=this._firstDayOfMonth[b];if(A){var C=this._firstDayPoints[b];w[g]=(C[g]+c[0][b+1][g])/2}var _=a.get("formatter"),T=e[+E.m-1],S={yyyy:E.y,yy:(E.y+"").slice(2),MM:E.m,M:+E.m,nameMap:T},O=this._formatterLabel(_,S),I=new x.Text({z2:30});p.extend(x.setTextStyle(I.style,a,{text:O}),this._monthTextPositionControl(w,A,n,r,u)),t.add(I)}},_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,A=[u.getCellWidth(),u.getCellHeight()];c=m.parsePercent(c,A[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),E=u.dataToRect([w.time],!1).center,C=b;C=Math.abs((b+h)%7);var _=new x.Text({z2:30});p.extend(x.setTextStyle(_.style,e,{text:s[C]}),this._weekTextPositionControl(E,t,r,c,A)),a.add(_)}}});R.exports=l},"7oTu":function(R,D,i){var y=i("IMiH"),p=i("QBsz"),x=p.applyTransform,v=y.CMD,m=[[],[],[]],f=Math.sqrt,d=Math.atan2;function l(o,n){var t=o.data,a,e,u,r,s,c,h=v.M,g=v.C,A=v.L,b=v.R,w=v.A,E=v.Q;for(u=0,r=0;u<t.length;){a=t[u++],r=u,e=0;switch(a){case h:e=1;break;case A:e=1;break;case g:e=3;break;case E:e=2;break;case w:var C=n[4],_=n[5],T=f(n[0]*n[0]+n[1]*n[1]),S=f(n[2]*n[2]+n[3]*n[3]),O=d(-n[1]/S,n[0]/T);t[u]*=T,t[u++]+=C,t[u]*=S,t[u++]+=_,t[u++]*=T,t[u++]*=S,t[u++]+=O,t[u++]+=O,u+=2,r=u;break;case b:c[0]=t[u++],c[1]=t[u++],x(c,c,n),t[r++]=c[0],t[r++]=c[1],c[0]+=t[u++],c[1]+=t[u++],x(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++],x(c,c,n),t[r++]=c[0],t[r++]=c[1]}}}R.exports=l},"7pVf":function(R,D,i){var y=i("ProS"),p=i("ZqQs");i("oE7X"),i("OUJF"),i("3X6L"),i("NH9N"),y.registerPreprocessor(p)},"7ph2":function(R,D){function i(x){return x instanceof Array||(x=[x,x]),x}var y="lineStyle.opacity".split("."),p={seriesType:"lines",reset:function(x,v,m){var f=i(x.get("symbol")),d=i(x.get("symbolSize")),l=x.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",x.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}}};R.exports=p},"7uqq":function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("ProS"),v=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(),A,b=u.get("layoutCenter"),w=u.get("layoutSize"),E=r.getWidth(),C=r.getHeight(),_=g.width/g.height*this.aspectScale,T=!1;b&&w&&(b=[d.parsePercent(b[0],E),d.parsePercent(b[1],C)],w=d.parsePercent(w,Math.min(E,C)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(w)&&(T=!0));var S;if(T){var S={};_>1?(S.width=w,S.height=w/_):(S.height=w,S.width=w*_),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2}else A=u.getBoxLayoutParams(),A.aspect=_,S=f.getLayoutRect(A,{width:E,height:C});this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(u.get("center")),this.setZoom(u.get("zoom"))}function t(u,r){v.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 A=h.get("map"),b=h.get("aspectScale"),w=!0,E=o.retrieveMap(A);E&&E[0]&&E[0].type==="svg"?(b==null&&(b=1),w=!1):b==null&&(b=.75);var C=new m(A+g,A,h.get("nameMap"),w);C.aspectScale=b,C.zoomLimit=h.get("scaleLimit"),s.push(C),t(C,h),h.coordinateSystem=C,C.model=h,C.resize=n,C.resize(h,r)}),u.eachSeries(function(h){var g=h.get("coordinateSystem");if(g==="geo"){var A=h.get("geoIndex")||0;h.coordinateSystem=s[A]}});var c={};return u.eachSeriesByType("map",function(h){if(!h.getHostGeoModel()){var g=h.getMapType();c[g]=c[g]||[],c[g].push(h)}}),v.each(c,function(h,g){var A=v.map(h,function(w){return w.get("nameMap")}),b=new m(g,g,v.mergeAll(A));b.zoomLimit=v.retrieve.apply(null,v.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),v.each(h,function(w){w.coordinateSystem=b,t(b,w)})}),s},getFilledRegions:function(u,r,s){for(var c=(u||[]).slice(),h=v.createHashMap(),g=0;g<c.length;g++)h.set(c[g].name,c[g]);var A=l.load(r,s);return v.each(A.regions,function(b){var w=b.name;!h.get(w)&&c.push({name:w})}),c}};x.registerCoordinateSystem("geo",a);var e=a;R.exports=e},"7yuC":function(R,D,i){var y=i("QBsz"),p=y.scaleAndAdd;function x(v,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<v.length;a++){var e=v[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){v[s].fixed=!0},setUnfixed:function(s){v[s].fixed=!1},step:function(s){for(var c=[],h=v.length,g=0;g<m.length;g++){var A=m[g];if(A.ignoreForceLayout)continue;var b=A.n1,w=A.n2;y.sub(c,w.p,b.p);var E=y.len(c)-A.d,C=w.w/(b.w+w.w);isNaN(C)&&(C=0),y.normalize(c,c),!b.fixed&&p(b.p,b.p,c,C*E*r),!w.fixed&&p(w.p,w.p,c,-(1-C)*E*r)}for(var g=0;g<h;g++){var _=v[g];_.fixed||(y.sub(c,n,_.p),p(_.p,_.p,c,t*r))}for(var g=0;g<h;g++)for(var b=v[g],T=g+1;T<h;T++){var w=v[T];y.sub(c,w.p,b.p);var E=y.len(c);E===0&&(y.set(c,Math.random()-.5,Math.random()-.5),E=1);var S=(b.rep+w.rep)/E/E;!b.fixed&&p(b.pp,b.pp,c,S),!w.fixed&&p(w.pp,w.pp,c,-S)}for(var O=[],g=0;g<h;g++){var _=v[g];_.fixed||(y.sub(O,_.p,_.pp),p(_.p,_.p,O,r),y.copy(_.pp,_.p))}r=r*.992,s&&s(v,m,r<.01)}}}D.forceLayout=x},"8+yF":function(R,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(v){if(v>=32&&v<=255)return v;var m=y[v];return m!==void 0?m:16777216|v}};D.default=p},"8CQX":function(R,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")),x=n(i("8+yF")),v=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 v.default){var r=v.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 A=r.charCodeAt();return A?x.default.lookup(A):null}},"8EBN":function(R,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 x=y.modeInfo[p];x.mimes&&(x.mime=x.mimes[0])}y.findModeByMIME=function(v){v=v.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.mime==v)return f;if(f.mimes){for(var d=0;d<f.mimes.length;d++)if(f.mimes[d]==v)return f}}if(/\+xml$/.test(v))return y.findModeByMIME("application/xml");if(/\+json$/.test(v))return y.findModeByMIME("application/json")},y.findModeByExtension=function(v){v=v.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]==v)return f}}},y.findModeByFileName=function(v){for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.file&&f.file.test(v))return f}var d=v.lastIndexOf("."),l=d>-1&&v.substring(d+1,v.length);if(l)return y.findModeByExtension(l)},y.findModeByName=function(v){v=v.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.name.toLowerCase()==v)return f;if(f.alias){for(var d=0;d<f.alias.length;d++)if(f.alias[d].toLowerCase()==v)return f}}}})},"8IMR":function(R,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(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("6Hfg"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"8K/p":function(R,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")),x=v(i("ItS6"));function v(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 x.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 A=0;A<4;A++)this._ctl>>A&1&&(this._zlibs[A].reset(),p.Info("Reset zlib stream "+A));this._ctl=this._ctl>>4}var b;if(this._ctl===8)b=this._fillRect(e,u,r,s,c,h,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 A=c.rQi,b=c.rQ;return h.fillRect(e,u,r,s,[b[A+2],b[A+1],b[A]],!1),c.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(e,u,r,s,c,h,g){var A=this._readData(c);return A===null?!1:(h.imageRect(e,u,r,s,"image/jpeg",A),!0)}},{key:"_pngRect",value:function(e,u,r,s,c,h,g){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(e,u,r,s,c,h,g,A){if(this._filter===null)if(e&4){if(h.rQwait("TIGHT",1))return!1;this._filter=h.rQshift8()}else this._filter=0;var b=e&3,w;switch(this._filter){case 0:w=this._copyFilter(b,u,r,s,c,h,g,A);break;case 1:w=this._paletteFilter(b,u,r,s,c,h,g,A);break;case 2:w=this._gradientFilter(b,u,r,s,c,h,g,A);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,A){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,A){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 E=this._numColors<=2?1:8,C=Math.floor((s*E+7)/8),_=C*c,T;if(_<12){if(h.rQwait("TIGHT",_))return!1;T=h.rQshiftBytes(_)}else{if(T=this._readData(h),T===null)return!1;this._zlibs[e].setInput(T),T=this._zlibs[e].inflate(_),this._zlibs[e].setInput(null)}return this._numColors==2?this._monoRect(u,r,s,c,T,this._palette,g):this._paletteRect(u,r,s,c,T,this._palette,g),this._numColors=0,!0}},{key:"_monoRect",value:function(e,u,r,s,c,h,g){for(var A=this._getScratchBuffer(r*s*4),b=Math.floor((r+7)/8),w=Math.floor(r/8),E=0;E<s;E++){var C=void 0,_=void 0,T=void 0;for(T=0;T<w;T++)for(var S=7;S>=0;S--)C=(E*r+T*8+7-S)*4,_=(c[E*b+T]>>S&1)*3,A[C]=h[_],A[C+1]=h[_+1],A[C+2]=h[_+2],A[C+3]=255;for(var O=7;O>=8-r%8;O--)C=(E*r+T*8+7-O)*4,_=(c[E*b+T]>>O&1)*3,A[C]=h[_],A[C+1]=h[_+1],A[C+2]=h[_+2],A[C+3]=255}g.blitRgbxImage(e,u,r,s,A,0,!1)}},{key:"_paletteRect",value:function(e,u,r,s,c,h,g){for(var A=this._getScratchBuffer(r*s*4),b=r*s*4,w=0,E=0;w<b;w+=4,E++){var C=c[E]*3;A[w]=h[C],A[w+1]=h[C+1],A[w+2]=h[C+2],A[w+3]=255}g.blitRgbxImage(e,u,r,s,A,0,!1)}},{key:"_gradientFilter",value:function(e,u,r,s,c,h,g,A){throw new Error("Gradient filter not implemented")}},{key:"_readData",value:function(e){if(this._len===0){if(e.rQwait("TIGHT",3))return null;var u;u=e.rQshift8(),this._len=u&127,u&128&&(u=e.rQshift8(),this._len|=(u&127)<<7,u&128&&(u=e.rQshift8(),this._len|=u<<14))}if(e.rQwait("TIGHT",this._len))return null;var r=e.rQshiftBytes(this._len);return this._len=0,r}},{key:"_getScratchBuffer",value:function(e){return(!this._scratchBuffer||this._scratchBuffer.length<e)&&(this._scratchBuffer=new Uint8Array(e)),this._scratchBuffer}}]),t}();D.default=n},"8SMY":function(R,D,i){var y=i("n4Lv"),p=y.prepareDataCoordInfo,x=y.getStackedOnPoint;function v(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=v(f,d),r=[],s=[],c=[],h=[],g=[],A=[],b=[],w=p(n,d,a),E=p(t,f,e),C=0;C<u.length;C++){var _=u[C],T=!0;switch(_.cmd){case"=":var S=f.getItemLayout(_.idx),O=d.getItemLayout(_.idx1);(isNaN(S[0])||isNaN(S[1]))&&(S=O.slice()),r.push(S),s.push(O),c.push(l[_.idx]),h.push(o[_.idx1]),b.push(d.getRawIndex(_.idx1));break;case"+":var I=_.idx;r.push(n.dataToPoint([d.get(w.dataDimsForPoint[0],I),d.get(w.dataDimsForPoint[1],I)])),s.push(d.getItemLayout(I).slice()),c.push(x(w,n,d,I)),h.push(o[I]),b.push(d.getRawIndex(I));break;case"-":var I=_.idx,F=f.getRawIndex(I);F!==I?(r.push(f.getItemLayout(I)),s.push(t.dataToPoint([f.get(E.dataDimsForPoint[0],I),f.get(E.dataDimsForPoint[1],I)])),c.push(l[I]),h.push(x(E,t,f,I)),b.push(F)):T=!1}T&&(g.push(_),A.push(A.length))}A.sort(function(j,K){return b[j]-b[K]});for(var P=[],B=[],k=[],G=[],M=[],C=0;C<A.length;C++){var I=A[C];P[C]=r[I],B[C]=s[I],k[C]=c[I],G[C]=h[I],M[C]=g[I]}return{current:P,next:B,stackedOnCurrent:k,stackedOnNext:G,status:M}}R.exports=m},"8Skl":function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="DownOutlined";var d=D.a=p.forwardRef(f)},"8Th4":function(R,D,i){var y=i("3LNs"),p=i("/y7N"),x=i("7bkD"),v=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)),A=h.dataToPoint(e)[0],b=r.get("type");if(b&&b!=="none"){var w=p.buildElStyle(r),E=l[b](c,A,g);E.style=w,a.graphicKey=E.type,a.pointer=E}var C=x.layout(u);p.buildCartesianSingleLabelElOption(e,a,C,u,r,s)},getHandleTransform:function(a,e,u){var r=x.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),A=a.position;A[h]+=e[h],A[h]=Math.min(g[1],A[h]),A[h]=Math.max(g[0],A[h]);var b=n(c,1-h),w=(b[1]+b[0])/2,E=[w,w];return E[h]=A[h],{position:A,rotation:a.rotation,cursorPoint:E,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]]]}v.registerAxisPointerClass("SingleAxisPointer",d);var t=d;R.exports=t},"8Uz6":function(R,D,i){var y=i("hNWo"),p=i("+TT/"),x=p.mergeLayoutParam,v=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=v(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,x(o,n,{type:"box",ignoreSize:a})}var d=m;R.exports=d},"8X+K":function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=i("4mN7"),m=v.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,A=h.createPolarClipPath;function b(P,B){if(P.length!==B.length)return;for(var k=0;k<P.length;k++){var G=P[k],M=B[k];if(G[0]!==M[0]||G[1]!==M[1])return}return!0}function w(P,B){var k=[],G=[],M=[],j=[];return m(P,k,G),m(B,M,j),Math.max(Math.abs(k[0]-M[0]),Math.abs(k[1]-M[1]),Math.abs(G[0]-j[0]),Math.abs(G[1]-j[1]))}function E(P){return typeof P=="number"?P:P?.5:0}function C(P,B,k){if(!k.valueDim)return[];for(var G=[],M=0,j=B.count();M<j;M++)G.push(c(k,P,B,M));return G}function _(P,B,k){for(var G=B.getBaseAxis(),M=G.dim==="x"||G.dim==="radius"?0:1,j=[],K=0;K<P.length-1;K++){var z=P[K+1],V=P[K];j.push(V);var Q=[];switch(k){case"end":Q[M]=z[M],Q[1-M]=V[1-M],j.push(Q);break;case"middle":var X=(V[M]+z[M])/2,te=[];Q[M]=te[M]=X,Q[1-M]=V[1-M],te[1-M]=z[1-M],j.push(Q),j.push(te);break;default:Q[M]=V[M],Q[1-M]=z[1-M],j.push(Q)}}return P[K]&&j.push(P[K]),j}function T(P,B){var k=P.getVisual("visualMeta");if(!k||!k.length||!P.count())return;if(B.type!=="cartesian2d")return;for(var G,M,j=k.length-1;j>=0;j--){var K=k[j].dimension,z=P.dimensions[K],V=P.getDimensionInfo(z);if(G=V&&V.coordDim,G==="x"||G==="y"){M=k[j];break}}if(!M)return;var Q=B.getAxis(G),X=x.map(M.stops,function(Je){return{coord:Q.toGlobalCoord(Q.dataToCoord(Je.value)),color:Je.color}}),te=X.length,$=M.outerColors.slice();te&&X[0].coord>X[te-1].coord&&(X.reverse(),$.reverse());var le=10,re=X[0].coord-le,Se=X[te-1].coord+le,Re=Se-re;if(Re<.001)return"transparent";x.each(X,function(Je){Je.offset=(Je.coord-re)/Re}),X.push({offset:te?X[te-1].offset:.5,color:$[1]||"transparent"}),X.unshift({offset:te?X[0].offset:.5,color:$[0]||"transparent"});var Pe=new o.LinearGradient(0,0,0,0,X,!0);return Pe[G]=re,Pe[G+"2"]=Se,Pe}function S(P,B,k){var G=P.get("showAllSymbol"),M=G==="auto";if(G&&!M)return;var j=k.getAxesByScale("ordinal")[0];if(!j)return;if(M&&O(j,B))return;var K=B.mapDimension(j.dim),z={};return x.each(j.getViewLabels(),function(V){z[V.tickValue]=1}),function(V){return!z.hasOwnProperty(B.get(K,V))}}function O(P,B){var k=P.getExtent(),G=Math.abs(k[1]-k[0])/P.scale.count();isNaN(G)&&(G=0);for(var M=B.count(),j=Math.max(1,Math.round(M/5)),K=0;K<M;K+=j)if(d.getSymbolSize(B,K)[P.isHorizontal()?1:0]*1.5>G)return!1;return!0}function I(P,B,k){if(P.type==="cartesian2d"){var G=P.getBaseAxis().isHorizontal(),M=g(P,B,k);if(!k.get("clip",!0)){var j=M.shape,K=Math.max(j.width,j.height);G?(j.y-=K,j.height+=K*2):(j.x-=K,j.width+=K*2)}return M}else return A(P,B,k)}var F=u.extend({type:"line",init:function(){var P=new o.Group,B=new f;this.group.add(B.group),this._symbolDraw=B,this._lineGroup=P},render:function(P,B,k){var G=P.coordinateSystem,M=this.group,j=P.getData(),K=P.getModel("lineStyle"),z=P.getModel("areaStyle"),V=j.mapArray(j.getItemLayout),Q=G.type==="polar",X=this._coordSys,te=this._symbolDraw,$=this._polyline,le=this._polygon,re=this._lineGroup,Se=P.get("animation"),Re=!z.isEmpty(),Pe=z.get("origin"),Je=s(G,j,Pe),Ge=C(G,j,Je),ct=P.get("showSymbol"),Ue=ct&&!Q&&S(P,j,G),ae=this._data;ae&&ae.eachItemGraphicEl(function(we,Ce){we.__temp&&(M.remove(we),ae.setItemGraphicEl(Ce,null))}),ct||te.remove(),M.add(re);var lt=!Q&&P.get("step"),pe;G&&G.getArea&&P.get("clip",!0)&&(pe=G.getArea(),pe.width!=null?(pe.x-=.1,pe.y-=.1,pe.width+=.2,pe.height+=.2):pe.r0&&(pe.r0-=.5,pe.r1+=.5)),this._clipShapeForSymbol=pe,$&&X.type===G.type&<===this._step?(Re&&!le?le=this._newPolygon(V,Ge,G,Se):le&&!Re&&(re.remove(le),le=this._polygon=null),re.setClipPath(I(G,!1,P)),ct&&te.updateData(j,{isIgnore:Ue,clipShape:pe}),j.eachItemGraphicEl(function(we){we.stopAnimation(!0)}),(!b(this._stackedOnPoints,Ge)||!b(this._points,V))&&(Se?this._updateAnimation(j,Ge,G,k,lt,Pe):(lt&&(V=_(V,G,lt),Ge=_(Ge,G,lt)),$.setShape({points:V}),le&&le.setShape({points:V,stackedOnPoints:Ge})))):(ct&&te.updateData(j,{isIgnore:Ue,clipShape:pe}),lt&&(V=_(V,G,lt),Ge=_(Ge,G,lt)),$=this._newPolyline(V,G,Se),Re&&(le=this._newPolygon(V,Ge,G,Se)),re.setClipPath(I(G,!0,P)));var J=T(j,G)||j.getVisual("color");$.useStyle(x.defaults(K.getLineStyle(),{fill:"none",stroke:J,lineJoin:"bevel"}));var Y=P.get("smooth");if(Y=E(P.get("smooth")),$.setShape({smooth:Y,smoothMonotone:P.get("smoothMonotone"),connectNulls:P.get("connectNulls")}),le){var ee=j.getCalculationInfo("stackedOnSeries"),fe=0;le.useStyle(x.defaults(z.getAreaStyle(),{fill:J,opacity:.7,lineJoin:"bevel"})),ee&&(fe=E(ee.get("smooth"))),le.setShape({smooth:Y,stackedOnSmooth:fe,smoothMonotone:P.get("smoothMonotone"),connectNulls:P.get("connectNulls")})}this._data=j,this._coordSys=G,this._stackedOnPoints=Ge,this._points=V,this._step=lt,this._valueOrigin=Pe},dispose:function(){},highlight:function(P,B,k,G){var M=P.getData(),j=n.queryDataIndex(M,G);if(!(j instanceof Array)&&j!=null&&j>=0){var K=M.getItemGraphicEl(j);if(!K){var z=M.getItemLayout(j);if(!z)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(z[0],z[1]))return;K=new d(M,j),K.position=z,K.setZ(P.get("zlevel"),P.get("z")),K.ignore=isNaN(z[0])||isNaN(z[1]),K.__temp=!0,M.setItemGraphicEl(j,K),K.stopSymbolAnimation(!0),this.group.add(K)}K.highlight()}else u.prototype.highlight.call(this,P,B,k,G)},downplay:function(P,B,k,G){var M=P.getData(),j=n.queryDataIndex(M,G);if(j!=null&&j>=0){var K=M.getItemGraphicEl(j);K&&(K.__temp?(M.setItemGraphicEl(j,null),this.group.remove(K)):K.downplay())}else u.prototype.downplay.call(this,P,B,k,G)},_newPolyline:function(P){var B=this._polyline;return B&&this._lineGroup.remove(B),B=new a({shape:{points:P},silent:!0,z2:10}),this._lineGroup.add(B),this._polyline=B,B},_newPolygon:function(P,B){var k=this._polygon;return k&&this._lineGroup.remove(k),k=new e({shape:{points:P,stackedOnPoints:B},silent:!0}),this._lineGroup.add(k),this._polygon=k,k},_updateAnimation:function(P,B,k,G,M,j){var K=this._polyline,z=this._polygon,V=P.hostModel,Q=l(this._data,P,this._stackedOnPoints,B,this._coordSys,k,this._valueOrigin,j),X=Q.current,te=Q.stackedOnCurrent,$=Q.next,le=Q.stackedOnNext;if(M&&(X=_(Q.current,k,M),te=_(Q.stackedOnCurrent,k,M),$=_(Q.next,k,M),le=_(Q.stackedOnNext,k,M)),w(X,$)>3e3||z&&w(te,le)>3e3){K.setShape({points:$}),z&&z.setShape({points:$,stackedOnPoints:le});return}K.shape.__points=Q.current,K.shape.points=X,o.updateProps(K,{shape:{points:$}},V),z&&(z.setShape({points:X,stackedOnPoints:te}),o.updateProps(z,{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=P.getItemGraphicEl(Se[Re].idx1);Je&&re.push({el:Je,ptIdx:Re})}}K.animators&&K.animators.length&&K.animators[0].during(function(){for(var Ge=0;Ge<re.length;Ge++){var ct=re[Ge].el;ct.attr("position",K.shape.__points[re[Ge].ptIdx])}})},remove:function(P){var B=this.group,k=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),k&&k.eachItemGraphicEl(function(G,M){G.__temp&&(B.remove(G),k.setItemGraphicEl(M,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});R.exports=F},"8XDt":function(R,D,i){i("qH13");var y=i("aX58"),p=y.registerPainter,x=i("6fms");p("vml",x)},"8XRh":function(R,D,i){"use strict";i.d(D,"a",function(){return St});var y=i("rePB"),p=i("VTBJ"),x=i("ODXe"),v=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(Mt){var Ot=Mt.children,Bt=Object(n.a)(Mt,t);return o.createElement(a.Provider,{value:Bt},Ot)}var u=i("1OyB"),r=i("vuIU"),s=i("Ji7U"),c=i("LK+K"),h=function(Mt){Object(s.a)(Bt,Mt);var Ot=Object(c.a)(Bt);function Bt(){return Object(u.a)(this,Bt),Ot.apply(this,arguments)}return Object(r.a)(Bt,[{key:"render",value:function(){return this.props.children}}]),Bt}(o.Component),g=h,A=i("dm2S"),b="none",w="appear",E="enter",C="leave",_="none",T="prepare",S="start",O="active",I="end",F="prepared",P=i("MNnm");function B(Mt,Ot){var Bt={};return Bt[Mt.toLowerCase()]=Ot.toLowerCase(),Bt["Webkit".concat(Mt)]="webkit".concat(Ot),Bt["Moz".concat(Mt)]="moz".concat(Ot),Bt["ms".concat(Mt)]="MS".concat(Ot),Bt["O".concat(Mt)]="o".concat(Ot.toLowerCase()),Bt}function k(Mt,Ot){var Bt={animationend:B("Animation","AnimationEnd"),transitionend:B("Transition","TransitionEnd")};return Mt&&("AnimationEvent"in Ot||delete Bt.animationend.animation,"TransitionEvent"in Ot||delete Bt.transitionend.transition),Bt}var G=k(Object(P.a)(),typeof window!="undefined"?window:{}),M={};if(Object(P.a)()){var j=document.createElement("div");M=j.style}var K={};function z(Mt){if(K[Mt])return K[Mt];var Ot=G[Mt];if(Ot)for(var Bt=Object.keys(Ot),Ke=Bt.length,de=0;de<Ke;de+=1){var se=Bt[de];if(Object.prototype.hasOwnProperty.call(Ot,se)&&se in M)return K[Mt]=Ot[se],K[Mt]}return""}var V=z("animationend"),Q=z("transitionend"),X=!!(V&&Q),te=V||"animationend",$=Q||"transitionend";function le(Mt,Ot){if(!Mt)return null;if(Object(v.a)(Mt)==="object"){var Bt=Ot.replace(/-\w/g,function(Ke){return Ke[1].toUpperCase()});return Mt[Bt]}return"".concat(Mt,"-").concat(Ot)}var re=function(Mt){var Ot=Object(o.useRef)(),Bt=Object(o.useRef)(Mt);Bt.current=Mt;var Ke=o.useCallback(function(ut){Bt.current(ut)},[]);function de(ut){ut&&(ut.removeEventListener($,Ke),ut.removeEventListener(te,Ke))}function se(ut){Ot.current&&Ot.current!==ut&&de(Ot.current),ut&&ut!==Ot.current&&(ut.addEventListener($,Ke),ut.addEventListener(te,Ke),Ot.current=ut)}return o.useEffect(function(){return function(){de(Ot.current)}},[]),[se,de]},Se=Object(P.a)()?o.useLayoutEffect:o.useEffect,Re=Se,Pe=i("wgJM"),Je=function(){var Mt=o.useRef(null);function Ot(){Pe.a.cancel(Mt.current)}function Bt(Ke){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Ot();var se=Object(Pe.a)(function(){de<=1?Ke({isCanceled:function(){return se!==Mt.current}}):Bt(Ke,de-1)});Mt.current=se}return o.useEffect(function(){return function(){Ot()}},[]),[Bt,Ot]},Ge=[T,S,O,I],ct=[T,F],Ue=!1,ae=!0;function lt(Mt){return Mt===O||Mt===I}var pe=function(Mt,Ot,Bt){var Ke=Object(A.a)(_),de=Object(x.a)(Ke,2),se=de[0],ut=de[1],qe=Je(),me=Object(x.a)(qe,2),Wt=me[0],dr=me[1];function vt(){ut(T,!0)}var rr=Ot?ct:Ge;return Re(function(){if(se!==_&&se!==I){var ur=rr.indexOf(se),mn=rr[ur+1],sr=Bt(se);sr===Ue?ut(mn,!0):mn&&Wt(function(xr){function pr(){if(xr.isCanceled())return;ut(mn,!0)}sr===!0?pr():Promise.resolve(sr).then(pr)})}},[Mt,se]),o.useEffect(function(){return function(){dr()}},[]),[vt,se]};function J(Mt,Ot,Bt,Ke){var de=Ke.motionEnter,se=de===void 0?!0:de,ut=Ke.motionAppear,qe=ut===void 0?!0:ut,me=Ke.motionLeave,Wt=me===void 0?!0:me,dr=Ke.motionDeadline,vt=Ke.motionLeaveImmediately,rr=Ke.onAppearPrepare,ur=Ke.onEnterPrepare,mn=Ke.onLeavePrepare,sr=Ke.onAppearStart,xr=Ke.onEnterStart,pr=Ke.onLeaveStart,Zt=Ke.onAppearActive,Ct=Ke.onEnterActive,on=Ke.onLeaveActive,Mn=Ke.onAppearEnd,Xn=Ke.onEnterEnd,oi=Ke.onLeaveEnd,Ui=Ke.onVisibleChanged,Un=Object(A.a)(),Qn=Object(x.a)(Un,2),$t=Qn[0],Nt=Qn[1],Me=Object(A.a)(b),ke=Object(x.a)(Me,2),Be=ke[0],it=ke[1],yt=Object(A.a)(null),Tt=Object(x.a)(yt,2),Yt=Tt[0],Pr=Tt[1],$r=Object(o.useRef)(!1),An=Object(o.useRef)(null);function zt(){return Bt()}var At=Object(o.useRef)(!1);function wt(){it(b,!0),Pr(null,!0)}function vr(fi){var xi=zt();if(fi&&!fi.deadline&&fi.target!==xi)return;var Ni=At.current,Hi;Be===w&&Ni?Hi=Mn==null?void 0:Mn(xi,fi):Be===E&&Ni?Hi=Xn==null?void 0:Xn(xi,fi):Be===C&&Ni&&(Hi=oi==null?void 0:oi(xi,fi)),Be!==b&&Ni&&Hi!==!1&&wt()}var Jt=re(vr),Ut=Object(x.a)(Jt,1),tr=Ut[0],Ft=function(xi){var Ni,Hi,nt;switch(xi){case w:return Ni={},Object(y.a)(Ni,T,rr),Object(y.a)(Ni,S,sr),Object(y.a)(Ni,O,Zt),Ni;case E:return Hi={},Object(y.a)(Hi,T,ur),Object(y.a)(Hi,S,xr),Object(y.a)(Hi,O,Ct),Hi;case C:return nt={},Object(y.a)(nt,T,mn),Object(y.a)(nt,S,pr),Object(y.a)(nt,O,on),nt;default:return{}}},qt=o.useMemo(function(){return Ft(Be)},[Be]),Hr=pe(Be,!Mt,function(fi){if(fi===T){var xi=qt[T];return xi?xi(zt()):Ue}if(cn in qt){var Ni;Pr(((Ni=qt[cn])===null||Ni===void 0?void 0:Ni.call(qt,zt(),null))||null)}return cn===O&&(tr(zt()),dr>0&&(clearTimeout(An.current),An.current=setTimeout(function(){vr({deadline:!0})},dr))),cn===F&&wt(),ae}),Nr=Object(x.a)(Hr,2),Dr=Nr[0],cn=Nr[1],vn=lt(cn);At.current=vn,Re(function(){Nt(Ot);var fi=$r.current;$r.current=!0;var xi;!fi&&Ot&&qe&&(xi=w),fi&&Ot&&se&&(xi=E),(fi&&!Ot&&Wt||!fi&&vt&&!Ot&&Wt)&&(xi=C);var Ni=Ft(xi);xi&&(Mt||Ni[T])?(it(xi),Dr()):it(b)},[Ot]),Object(o.useEffect)(function(){(Be===w&&!qe||Be===E&&!se||Be===C&&!Wt)&&it(b)},[qe,se,Wt]),Object(o.useEffect)(function(){return function(){$r.current=!1,clearTimeout(An.current)}},[]);var ei=o.useRef(!1);Object(o.useEffect)(function(){$t&&(ei.current=!0),$t!==void 0&&Be===b&&((ei.current||$t)&&(Ui==null||Ui($t)),ei.current=!0)},[$t,Be]);var qn=Yt;return qt[T]&&cn===S&&(qn=Object(p.a)({transition:"none"},qn)),[Be,cn,qn,$t!=null?$t:Ot]}function Y(Mt){var Ot=Mt;Object(v.a)(Mt)==="object"&&(Ot=Mt.transitionSupport);function Bt(de,se){return!!(de.motionName&&Ot&&se!==!1)}var Ke=o.forwardRef(function(de,se){var ut=de.visible,qe=ut===void 0?!0:ut,me=de.removeOnLeave,Wt=me===void 0?!0:me,dr=de.forceRender,vt=de.children,rr=de.motionName,ur=de.leavedClassName,mn=de.eventProps,sr=o.useContext(a),xr=sr.motion,pr=Bt(de,xr),Zt=Object(o.useRef)(),Ct=Object(o.useRef)();function on(){try{return Zt.current instanceof HTMLElement?Zt.current:Object(d.a)(Ct.current)}catch(Pr){return null}}var Mn=J(pr,qe,on,de),Xn=Object(x.a)(Mn,4),oi=Xn[0],Ui=Xn[1],Un=Xn[2],Qn=Xn[3],$t=o.useRef(Qn);Qn&&($t.current=!0);var Nt=o.useCallback(function(Pr){Zt.current=Pr,Object(l.b)(se,Pr)},[se]),Me,ke=Object(p.a)(Object(p.a)({},mn),{},{visible:qe});if(!vt)Me=null;else if(oi===b)Qn?Me=vt(Object(p.a)({},ke),Nt):!Wt&&$t.current&&ur?Me=vt(Object(p.a)(Object(p.a)({},ke),{},{className:ur}),Nt):dr||!Wt&&!ur?Me=vt(Object(p.a)(Object(p.a)({},ke),{},{style:{display:"none"}}),Nt):Me=null;else{var Be,it;Ui===T?it="prepare":lt(Ui)?it="active":Ui===S&&(it="start");var yt=le(rr,"".concat(oi,"-").concat(it));Me=vt(Object(p.a)(Object(p.a)({},ke),{},{className:f()(le(rr,oi),(Be={},Object(y.a)(Be,yt,yt&&it),Object(y.a)(Be,rr,typeof rr=="string"),Be)),style:Un}),Nt)}if(o.isValidElement(Me)&&Object(l.c)(Me)){var Tt=Me,Yt=Tt.ref;Yt||(Me=o.cloneElement(Me,{ref:Nt}))}return o.createElement(g,{ref:Ct},Me)});return Ke.displayName="CSSMotion",Ke}var ee=Y(X),fe=i("wx14"),we=i("JX7q"),Ce="add",_e="keep",he="remove",ye="removed";function Le(Mt){var Ot;return Mt&&Object(v.a)(Mt)==="object"&&"key"in Mt?Ot=Mt:Ot={key:Mt},Object(p.a)(Object(p.a)({},Ot),{},{key:String(Ot.key)})}function tt(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Mt.map(Le)}function gt(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Bt=[],Ke=0,de=Ot.length,se=tt(Mt),ut=tt(Ot);se.forEach(function(Wt){for(var dr=!1,vt=Ke;vt<de;vt+=1){var rr=ut[vt];if(rr.key===Wt.key){Ke<vt&&(Bt=Bt.concat(ut.slice(Ke,vt).map(function(ur){return Object(p.a)(Object(p.a)({},ur),{},{status:Ce})})),Ke=vt),Bt.push(Object(p.a)(Object(p.a)({},rr),{},{status:_e})),Ke+=1,dr=!0;break}}dr||Bt.push(Object(p.a)(Object(p.a)({},Wt),{},{status:he}))}),Ke<de&&(Bt=Bt.concat(ut.slice(Ke).map(function(Wt){return Object(p.a)(Object(p.a)({},Wt),{},{status:Ce})})));var qe={};Bt.forEach(function(Wt){var dr=Wt.key;qe[dr]=(qe[dr]||0)+1});var me=Object.keys(qe).filter(function(Wt){return qe[Wt]>1});return me.forEach(function(Wt){Bt=Bt.filter(function(dr){var vt=dr.key,rr=dr.status;return vt!==Wt||rr!==he}),Bt.forEach(function(dr){dr.key===Wt&&(dr.status=_e)})}),Bt}var at=["component","children","onVisibleChanged","onAllRemoved"],Fe=["status"],mt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function et(Mt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ee,Bt=function(Ke){Object(s.a)(se,Ke);var de=Object(c.a)(se);function se(){var ut;Object(u.a)(this,se);for(var qe=arguments.length,me=new Array(qe),Wt=0;Wt<qe;Wt++)me[Wt]=arguments[Wt];return ut=de.call.apply(de,[this].concat(me)),Object(y.a)(Object(we.a)(ut),"state",{keyEntities:[]}),Object(y.a)(Object(we.a)(ut),"removeKey",function(dr){var vt=ut.state.keyEntities,rr=vt.map(function(ur){return ur.key!==dr?ur:Object(p.a)(Object(p.a)({},ur),{},{status:ye})});return ut.setState({keyEntities:rr}),rr.filter(function(ur){var mn=ur.status;return mn!==ye}).length}),ut}return Object(r.a)(se,[{key:"render",value:function(){var qe=this,me=this.state.keyEntities,Wt=this.props,dr=Wt.component,vt=Wt.children,rr=Wt.onVisibleChanged,ur=Wt.onAllRemoved,mn=Object(n.a)(Wt,at),sr=dr||o.Fragment,xr={};return mt.forEach(function(pr){xr[pr]=mn[pr],delete mn[pr]}),delete mn.keys,o.createElement(sr,mn,me.map(function(pr,Zt){var Ct=pr.status,on=Object(n.a)(pr,Fe),Mn=Ct===Ce||Ct===_e;return o.createElement(Ot,Object(fe.a)({},xr,{key:on.key,visible:Mn,eventProps:on,onVisibleChanged:function(oi){if(rr==null||rr(oi,{key:on.key}),!oi){var Ui=qe.removeKey(on.key);Ui===0&&ur&&ur()}}}),function(Xn,oi){return vt(Object(p.a)(Object(p.a)({},Xn),{},{index:Zt}),oi)})}))}}],[{key:"getDerivedStateFromProps",value:function(qe,me){var Wt=qe.keys,dr=me.keyEntities,vt=tt(Wt),rr=gt(dr,vt);return{keyEntities:rr.filter(function(ur){var mn=dr.find(function(sr){var xr=sr.key;return ur.key===xr});return!(mn&&mn.status===ye&&ur.status===he)})}}}]),se}(o.Component);return Object(y.a)(Bt,"defaultProps",{component:"div"}),Bt}var St=et(X),jt=D.b=ee},"8hn6":function(R,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"],x={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"}}}};x.categoryAxis.splitLine.show=!1;var v=x;R.exports=v},"8nMs":function(R,D,i){var y=i("bYtY"),p=i("IwbS"),x=i("+rIm"),v=i("Znkb"),m=i("AVZG"),f=i("WN+l"),d=f.rectCoordAxisBuildSplitArea,l=f.rectCoordAxisHandleRemove,o=["axisLine","axisTickLabel","axisName"],n=["splitArea","splitLine","minorSplitLine"],t=v.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 x(a,h);y.each(o,g.add,g),this._axisGroup.add(g.getGroup()),y.each(n,function(A){a.get(A+".show")&&this["_"+A](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(),A=0,b=u.getTicksCoords({tickModel:r}),w=[],E=[],C=s.getLineStyle(),_=0;_<b.length;_++){var T=u.toGlobalCoord(b[_].coord);g?(w[0]=T,w[1]=h.y,E[0]=T,E[1]=h.y+h.height):(w[0]=h.x,w[1]=T,E[0]=h.x+h.width,E[1]=T);var S=A++%c.length,O=b[_].tickValue;this._axisGroup.add(new p.Line({anid:O!=null?"line_"+b[_].tickValue:null,subPixelOptimize:!0,shape:{x1:w[0],y1:w[1],x2:E[0],y2:E[1]},style:y.defaults({stroke:c[S]},C),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 A=[],b=[],w=s.getLineStyle(),E=0;E<g.length;E++)for(var C=0;C<g[E].length;C++){var _=u.toGlobalCoord(g[E][C].coord);h?(A[0]=_,A[1]=c.y,b[0]=_,b[1]=c.y+c.height):(A[0]=c.x,A[1]=_,b[0]=c.x+c.width,b[1]=_),this._axisGroup.add(new p.Line({anid:"minor_line_"+g[E][C].tickValue,subPixelOptimize:!0,shape:{x1:A[0],y1:A[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(R,D,i){var y=i("mFDi"),p=i("4mN7"),x=i("QBsz"),v=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),x.min(o,o,t),x.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(v.contain(a,d[0],d[1])){for(var u=0;u<(e?e.length:0);u++)if(v.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++)x.applyTransform(c[g],c[g],u);for(var A=0;A<(h?h.length:0);A++)for(var g=0;g<h[A].length;g++)x.applyTransform(h[A][g],h[A][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;R.exports=f},"8txm":function(R,D,i){},"8waO":function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("iLNv"),v=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)),x.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(v)},"8x+h":function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("ProS"),v=i("bYtY"),m=i("K4ya"),f=i("Qxkt"),d=["#ddd"],l=x.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=v.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 v.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;R.exports=n},"8z0m":function(R,D,i){"use strict";var y=i("lSNA"),p=i.n(y),x=i("RIqP"),v=i.n(x),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(sr,xr){var pr="cannot "+sr.method+" "+sr.action+" "+xr.status+"'",Zt=new Error(pr);return Zt.status=xr.status,Zt.method=sr.method,Zt.url=sr.action,Zt}function u(sr){var xr=sr.responseText||sr.response;if(!xr)return xr;try{return JSON.parse(xr)}catch(pr){return xr}}function r(sr){var xr=new XMLHttpRequest;sr.onProgress&&xr.upload&&(xr.upload.onprogress=function(on){on.total>0&&(on.percent=on.loaded/on.total*100),sr.onProgress(on)});var pr=new FormData;sr.data&&Object.keys(sr.data).forEach(function(Ct){var on=sr.data[Ct];if(Array.isArray(on)){on.forEach(function(Mn){pr.append(Ct+"[]",Mn)});return}pr.append(Ct,sr.data[Ct])}),sr.file instanceof Blob?pr.append(sr.filename,sr.file,sr.file.name):pr.append(sr.filename,sr.file),xr.onerror=function(on){sr.onError(on)},xr.onload=function(){return xr.status<200||xr.status>=300?sr.onError(e(sr,xr),u(xr)):sr.onSuccess(u(xr),xr)},xr.open(sr.method,sr.action,!0),sr.withCredentials&&"withCredentials"in xr&&(xr.withCredentials=!0);var Zt=sr.headers||{};return Zt["X-Requested-With"]!==null&&xr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Zt).forEach(function(Ct){Zt[Ct]!==null&&xr.setRequestHeader(Ct,Zt[Ct])}),xr.send(pr),{abort:function(){xr.abort()}}}var s=+new Date,c=0;function h(){return"rc-upload-"+s+"-"+ ++c}function g(sr,xr){return sr.indexOf(xr,sr.length-xr.length)!==-1}var A=function(sr,xr){if(sr&&xr){var pr=Array.isArray(xr)?xr:xr.split(","),Zt=sr.name||"",Ct=sr.type||"",on=Ct.replace(/\/.*$/,"");return pr.some(function(Mn){var Xn=Mn.trim();return Xn.charAt(0)==="."?g(Zt.toLowerCase(),Xn.toLowerCase()):/\/\*$/.test(Xn)?on===Xn.replace(/\/.*$/,""):Ct===Xn})}return!0};function b(sr,xr){var pr=sr.createReader(),Zt=[];function Ct(){pr.readEntries(function(on){var Mn=Array.prototype.slice.apply(on);Zt=Zt.concat(Mn);var Xn=!Mn.length;Xn?xr(Zt):Ct()})}Ct()}var w=function(xr,pr,Zt){var Ct=function on(Mn,Xn){Xn=Xn||"",Mn.isFile?Mn.file(function(oi){Zt(oi)&&(Mn.fullPath&&!oi.webkitRelativePath&&(Object.defineProperties(oi,{webkitRelativePath:{writable:!0}}),oi.webkitRelativePath=Mn.fullPath.replace(/^\//,""),Object.defineProperties(oi,{webkitRelativePath:{writable:!1}})),pr([oi]))}):Mn.isDirectory&&b(Mn,function(oi){oi.forEach(function(Ui){on(Ui,""+Xn+Mn.name+"/")})})};xr.forEach(function(on){Ct(on.webkitGetAsEntry())})},E=w,C=Object.assign||function(sr){for(var xr=1;xr<arguments.length;xr++){var pr=arguments[xr];for(var Zt in pr)Object.prototype.hasOwnProperty.call(pr,Zt)&&(sr[Zt]=pr[Zt])}return sr},_=function(){function sr(xr,pr){var Zt=[],Ct=!0,on=!1,Mn=void 0;try{for(var Xn=xr[Symbol.iterator](),oi;!(Ct=(oi=Xn.next()).done)&&!(Zt.push(oi.value),pr&&Zt.length===pr);Ct=!0);}catch(Ui){on=!0,Mn=Ui}finally{try{!Ct&&Xn.return&&Xn.return()}finally{if(on)throw Mn}}return Zt}return function(xr,pr){if(Array.isArray(xr))return xr;if(Symbol.iterator in Object(xr))return sr(xr,pr);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function sr(xr,pr){for(var Zt=0;Zt<pr.length;Zt++){var Ct=pr[Zt];Ct.enumerable=Ct.enumerable||!1,Ct.configurable=!0,"value"in Ct&&(Ct.writable=!0),Object.defineProperty(xr,Ct.key,Ct)}}return function(xr,pr,Zt){return pr&&sr(xr.prototype,pr),Zt&&sr(xr,Zt),xr}}();function S(sr,xr,pr){return xr in sr?Object.defineProperty(sr,xr,{value:pr,enumerable:!0,configurable:!0,writable:!0}):sr[xr]=pr,sr}function O(sr,xr){var pr={};for(var Zt in sr){if(xr.indexOf(Zt)>=0)continue;if(!Object.prototype.hasOwnProperty.call(sr,Zt))continue;pr[Zt]=sr[Zt]}return pr}function I(sr,xr){if(!(sr instanceof xr))throw new TypeError("Cannot call a class as a function")}function F(sr,xr){if(!sr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return xr&&(typeof xr=="object"||typeof xr=="function")?xr:sr}function P(sr,xr){if(typeof xr!="function"&&xr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof xr);sr.prototype=Object.create(xr&&xr.prototype,{constructor:{value:sr,enumerable:!1,writable:!0,configurable:!0}}),xr&&(Object.setPrototypeOf?Object.setPrototypeOf(sr,xr):sr.__proto__=xr)}var B=function(xr){return Object.keys(xr).reduce(function(pr,Zt){return(Zt.substr(0,5)==="data-"||Zt.substr(0,5)==="aria-"||Zt==="role")&&(pr[Zt]=xr[Zt]),pr},{})},k=function(sr){P(xr,sr);function xr(){var pr,Zt,Ct,on;I(this,xr);for(var Mn=arguments.length,Xn=Array(Mn),oi=0;oi<Mn;oi++)Xn[oi]=arguments[oi];return on=(Zt=(Ct=F(this,(pr=xr.__proto__||Object.getPrototypeOf(xr)).call.apply(pr,[this].concat(Xn))),Ct),Ct.state={uid:h()},Ct.reqs={},Ct.onChange=function(Ui){var Un=Ui.target.files;Ct.uploadFiles(Un),Ct.reset()},Ct.onClick=function(Ui){var Un=Ct.fileInput;if(!Un)return;var Qn=Ct.props,$t=Qn.children,Nt=Qn.onClick;$t&&$t.type==="button"&&(Un.parentNode.focus(),Un.parentNode.querySelector("button").blur()),Un.click(),Nt&&Nt(Ui)},Ct.onKeyDown=function(Ui){Ui.key==="Enter"&&Ct.onClick()},Ct.onFileDrop=function(Ui){var Un=Ct.props.multiple;if(Ui.preventDefault(),Ui.type==="dragover")return;if(Ct.props.directory)E(Array.prototype.slice.call(Ui.dataTransfer.items),Ct.uploadFiles,function($t){return A($t,Ct.props.accept)});else{var Qn=Array.prototype.slice.call(Ui.dataTransfer.files).filter(function($t){return A($t,Ct.props.accept)});Un===!1&&(Qn=Qn.slice(0,1)),Ct.uploadFiles(Qn)}},Ct.uploadFiles=function(Ui){var Un=Array.prototype.slice.call(Ui);Un.map(function(Qn){return Qn.uid=h(),Qn}).forEach(function(Qn){Ct.upload(Qn,Un)})},Ct.saveFileInput=function(Ui){Ct.fileInput=Ui},Zt),F(Ct,on)}return T(xr,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(Zt,Ct){var on=this,Mn=this.props;if(!Mn.beforeUpload)return setTimeout(function(){return on.post(Zt)},0);var Xn=Mn.beforeUpload(Zt,Ct);Xn&&Xn.then?Xn.then(function(oi){var Ui=Object.prototype.toString.call(oi);return Ui==="[object File]"||Ui==="[object Blob]"?on.post(oi):on.post(Zt)}).catch(function(oi){console.log(oi)}):Xn!==!1&&setTimeout(function(){return on.post(Zt)},0);return}},{key:"post",value:function(Zt){var Ct=this;if(!this._isMounted)return;var on=this.props,Mn=on.onStart,Xn=on.onProgress,oi=on.transformFile,Ui=oi===void 0?function(Un){return Un}:oi;new Promise(function(Un){var Qn=on.action;return typeof Qn=="function"&&(Qn=Qn(Zt)),Un(Qn)}).then(function(Un){var Qn=Zt.uid,$t=on.customRequest||r,Nt=Promise.resolve(Ui(Zt)).then(function(Me){var ke=on.data;return typeof ke=="function"&&(ke=ke(Me)),Promise.all([Me,ke])}).catch(function(Me){console.error(Me)});Nt.then(function(Me){var ke=_(Me,2),Be=ke[0],it=ke[1],yt={action:Un,filename:on.name,data:it,file:Be,headers:on.headers,withCredentials:on.withCredentials,method:on.method||"post",onProgress:Xn?function(Tt){Xn(Tt,Zt)}:null,onSuccess:function(Yt,Pr){delete Ct.reqs[Qn],on.onSuccess(Yt,Zt,Pr)},onError:function(Yt,Pr){delete Ct.reqs[Qn],on.onError(Yt,Pr,Zt)}};Mn(Zt),Ct.reqs[Qn]=$t(yt)})})}},{key:"reset",value:function(){this.setState({uid:h()})}},{key:"abort",value:function(Zt){var Ct=this.reqs;if(Zt){var on=Zt;Zt&&Zt.uid&&(on=Zt.uid),Ct[on]&&Ct[on].abort&&Ct[on].abort(),delete Ct[on]}else Object.keys(Ct).forEach(function(Mn){Ct[Mn]&&Ct[Mn].abort&&Ct[Mn].abort(),delete Ct[Mn]})}},{key:"render",value:function(){var Zt,Ct=this.props,on=Ct.component,Mn=Ct.prefixCls,Xn=Ct.className,oi=Ct.disabled,Ui=Ct.id,Un=Ct.style,Qn=Ct.multiple,$t=Ct.accept,Nt=Ct.children,Me=Ct.directory,ke=Ct.openFileDialogOnClick,Be=Ct.onMouseEnter,it=Ct.onMouseLeave,yt=O(Ct,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),Tt=a()((Zt={},S(Zt,Mn,!0),S(Zt,Mn+"-disabled",oi),S(Zt,Xn,Xn),Zt)),Yt=oi?{}:{onClick:ke?this.onClick:function(){},onKeyDown:ke?this.onKeyDown:function(){},onMouseEnter:Be,onMouseLeave:it,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return n.a.createElement(on,C({},Yt,{className:Tt,role:"button",style:Un}),n.a.createElement("input",C({},B(yt),{id:Ui,type:"file",ref:this.saveFileInput,onClick:function($r){return $r.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:$t,directory:Me?"directory":null,webkitdirectory:Me?"webkitdirectory":null,multiple:Qn,onChange:this.onChange})),Nt)}}]),xr}(o.Component),G=k,M=Object.assign||function(sr){for(var xr=1;xr<arguments.length;xr++){var pr=arguments[xr];for(var Zt in pr)Object.prototype.hasOwnProperty.call(pr,Zt)&&(sr[Zt]=pr[Zt])}return sr},j=function(){function sr(xr,pr){for(var Zt=0;Zt<pr.length;Zt++){var Ct=pr[Zt];Ct.enumerable=Ct.enumerable||!1,Ct.configurable=!0,"value"in Ct&&(Ct.writable=!0),Object.defineProperty(xr,Ct.key,Ct)}}return function(xr,pr,Zt){return pr&&sr(xr.prototype,pr),Zt&&sr(xr,Zt),xr}}();function K(sr,xr){if(!(sr instanceof xr))throw new TypeError("Cannot call a class as a function")}function z(sr,xr){if(!sr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return xr&&(typeof xr=="object"||typeof xr=="function")?xr:sr}function V(sr,xr){if(typeof xr!="function"&&xr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof xr);sr.prototype=Object.create(xr&&xr.prototype,{constructor:{value:sr,enumerable:!1,writable:!0,configurable:!0}}),xr&&(Object.setPrototypeOf?Object.setPrototypeOf(sr,xr):sr.__proto__=xr)}function Q(){}var X=function(sr){V(xr,sr);function xr(){var pr,Zt,Ct,on;K(this,xr);for(var Mn=arguments.length,Xn=Array(Mn),oi=0;oi<Mn;oi++)Xn[oi]=arguments[oi];return on=(Zt=(Ct=z(this,(pr=xr.__proto__||Object.getPrototypeOf(xr)).call.apply(pr,[this].concat(Xn))),Ct),Ct.saveUploader=function(Ui){Ct.uploader=Ui},Zt),z(Ct,on)}return j(xr,[{key:"abort",value:function(Zt){this.uploader.abort(Zt)}},{key:"render",value:function(){return n.a.createElement(G,M({},this.props,{ref:this.saveUploader}))}}]),xr}(o.Component);X.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=X,$=te,le=function(sr,xr){var pr={};for(var Zt in sr)Object.prototype.hasOwnProperty.call(sr,Zt)&&xr.indexOf(Zt)<0&&(pr[Zt]=sr[Zt]);if(sr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Zt=Object.getOwnPropertySymbols(sr);Ct<Zt.length;Ct++)xr.indexOf(Zt[Ct])<0&&Object.prototype.propertyIsEnumerable.call(sr,Zt[Ct])&&(pr[Zt[Ct]]=sr[Zt[Ct]]);return pr},re=function(xr,pr){var Zt=xr.style,Ct=xr.height,on=le(xr,["style","height"]);return o.createElement(ur,f()({ref:pr},on,{type:"drag",style:f()(f()({},Zt),{height:Ct})}))},Se=o.forwardRef(re);Se.displayName="Dragger";var Re=Se,Pe=i("UmKh"),Je=i("gZBC"),Ge=i.n(Je),ct=i("+d4F"),Ue=i.n(ct),ae=i("XAae"),lt=i.n(ae),pe=i("6xvX"),J=i.n(pe),Y=i("qPY4"),ee=i.n(Y),fe=i("QB+1"),we=i.n(fe),Ce=i("Qs3X"),_e=i.n(Ce),he=i("0n0R");function ye(){return!0}function Le(sr){return f()(f()({},sr),{lastModified:sr.lastModified,lastModifiedDate:sr.lastModifiedDate,name:sr.name,size:sr.size,type:sr.type,uid:sr.uid,percent:0,originFileObj:sr})}function tt(sr,xr){var pr=sr.uid!==void 0?"uid":"name";return xr.filter(function(Zt){return Zt[pr]===sr[pr]})[0]}function gt(sr,xr){var pr=sr.uid!==void 0?"uid":"name",Zt=xr.filter(function(Ct){return Ct[pr]!==sr[pr]});return Zt.length===xr.length?null:Zt}var at=function(){var xr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",pr=xr.split("/"),Zt=pr[pr.length-1],Ct=Zt.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ct)||[""])[0]},Fe=function(xr){return xr.indexOf("image/")===0},mt=function(xr){if(xr.type&&!xr.thumbUrl)return Fe(xr.type);var pr=xr.thumbUrl||xr.url,Zt=at(pr);return/^data:image\//.test(pr)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(Zt)?!0:/^data:/.test(pr)?!1:!Zt},et=200;function St(sr){return new Promise(function(xr){if(!sr.type||!Fe(sr.type)){xr("");return}var pr=document.createElement("canvas");pr.width=et,pr.height=et,pr.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(et,"px; height: ").concat(et,"px; z-index: 9999; display: none;"),document.body.appendChild(pr);var Zt=pr.getContext("2d"),Ct=new Image;Ct.onload=function(){var on=Ct.width,Mn=Ct.height,Xn=et,oi=et,Ui=0,Un=0;on<Mn?(oi=Mn*(et/on),Un=-(oi-Xn)/2):(Xn=on*(et/Mn),Ui=-(Xn-oi)/2),Zt.drawImage(Ct,Ui,Un,Xn,oi);var Qn=pr.toDataURL();document.body.removeChild(pr),xr(Qn)},Ct.src=window.URL.createObjectURL(sr)})}var jt=i("3S7+"),Mt=i("CFYs"),Ot=i("H84U"),Bt=i("2/Rp"),Ke=i("hkKa"),de=function(xr,pr){var Zt,Ct=xr.listType,on=xr.previewFile,Mn=xr.onPreview,Xn=xr.onDownload,oi=xr.onRemove,Ui=xr.locale,Un=xr.iconRender,Qn=xr.isImageUrl,$t=xr.prefixCls,Nt=xr.items,Me=Nt===void 0?[]:Nt,ke=xr.showPreviewIcon,Be=xr.showRemoveIcon,it=xr.showDownloadIcon,yt=xr.removeIcon,Tt=xr.downloadIcon,Yt=xr.progress,Pr=Object(Ke.a)();o.useEffect(function(){if(Ct!=="picture"&&Ct!=="picture-card")return;(Me||[]).forEach(function(Nr){if(typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Nr.originFileObj instanceof File||Nr.originFileObj instanceof Blob)||Nr.thumbUrl!==void 0)return;Nr.thumbUrl="",on&&on(Nr.originFileObj).then(function(Dr){Nr.thumbUrl=Dr||"",Pr()})})},[Ct,Me,on]);var $r=function(Dr,cn){return Mn?(cn.preventDefault(),Mn(Dr)):void 0},An=function(Dr){typeof Xn=="function"?Xn(Dr):Dr.url&&window.open(Dr.url)},zt=function(Dr){oi&&oi(Dr)},At=function(Dr){if(Un)return Un(Dr,Ct);var cn=Dr.status==="uploading",vn=Qn&&Qn(Dr)?o.createElement(lt.a,null):o.createElement(J.a,null),ei=cn?o.createElement(Ge.a,null):o.createElement(Ue.a,null);return Ct==="picture"?ei=cn?o.createElement(Ge.a,null):vn:Ct==="picture-card"&&(ei=cn?Ui.uploading:vn),ei},wt=function(Dr,cn,vn,ei){var qn={type:"text",size:"small",title:ei,onClick:function(Ni){cn(),Object(he.b)(Dr)&&Dr.props.onClick&&Dr.props.onClick(Ni)},className:"".concat(vn,"-list-item-card-actions-btn")};if(Object(he.b)(Dr)){var fi=Object(he.a)(Dr,f()(f()({},Dr.props),{onClick:function(){}}));return o.createElement(Bt.a,f()({},qn,{icon:fi}))}return o.createElement(Bt.a,qn,o.createElement("span",null,Dr))};o.useImperativeHandle(pr,function(){return{handlePreview:$r,handleDownload:An}});var vr=o.useContext(Ot.b),Jt=vr.getPrefixCls,Ut=vr.direction,tr=Jt("upload",$t),Ft=Me.map(function(Nr){var Dr,cn,vn,ei=At(Nr),qn=o.createElement("div",{className:"".concat(tr,"-text-icon")},ei);if(Ct==="picture"||Ct==="picture-card")if(Nr.status==="uploading"||!Nr.thumbUrl&&!Nr.url){var fi,xi=a()((fi={},p()(fi,"".concat(tr,"-list-item-thumbnail"),!0),p()(fi,"".concat(tr,"-list-item-file"),Nr.status!=="uploading"),fi));qn=o.createElement("div",{className:xi},ei)}else{var Ni,Hi=Qn&&Qn(Nr)?o.createElement("img",{src:Nr.thumbUrl||Nr.url,alt:Nr.name,className:"".concat(tr,"-list-item-image")}):ei,nt=a()((Ni={},p()(Ni,"".concat(tr,"-list-item-thumbnail"),!0),p()(Ni,"".concat(tr,"-list-item-file"),Qn&&!Qn(Nr)),Ni));qn=o.createElement("a",{className:nt,onClick:function(an){return $r(Nr,an)},href:Nr.url||Nr.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Hi)}if(Nr.status==="uploading"){var Ne="percent"in Nr?o.createElement(Mt.a,f()({},Yt,{type:"line",percent:Nr.percent})):null;vn=o.createElement("div",{className:"".concat(tr,"-list-item-progress"),key:"progress"},Ne)}var He=a()((Dr={},p()(Dr,"".concat(tr,"-list-item"),!0),p()(Dr,"".concat(tr,"-list-item-").concat(Nr.status),!0),p()(Dr,"".concat(tr,"-list-item-list-type-").concat(Ct),!0),Dr)),Xe=typeof Nr.linkProps=="string"?JSON.parse(Nr.linkProps):Nr.linkProps,rt=Be?wt(yt||o.createElement(we.a,null),function(){return zt(Nr)},tr,Ui.removeFile):null,Ze=it&&Nr.status==="done"?wt(Tt||o.createElement(_e.a,null),function(){return An(Nr)},tr,Ui.downloadFile):null,st=Ct!=="picture-card"&&o.createElement("span",{key:"download-delete",className:"".concat(tr,"-list-item-card-actions ").concat(Ct==="picture"?"picture":"")},Ze,rt),xt=a()((cn={},p()(cn,"".concat(tr,"-list-item-name"),!0),p()(cn,"".concat(tr,"-list-item-name-icon-count-").concat([Ze,rt].filter(function(Pn){return Pn}).length),!0),cn)),pt=Nr.url?[o.createElement("a",f()({key:"view",target:"_blank",rel:"noopener noreferrer",className:xt,title:Nr.name},Xe,{href:Nr.url,onClick:function(an){return $r(Nr,an)}}),Nr.name),st]:[o.createElement("span",{key:"view",className:xt,onClick:function(an){return $r(Nr,an)},title:Nr.name},Nr.name),st],hr={pointerEvents:"none",opacity:.5},Zr=ke?o.createElement("a",{href:Nr.url||Nr.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Nr.url||Nr.thumbUrl?void 0:hr,onClick:function(an){return $r(Nr,an)},title:Ui.previewFile},o.createElement(ee.a,null)):null,Xr=Ct==="picture-card"&&Nr.status!=="uploading"&&o.createElement("span",{className:"".concat(tr,"-list-item-actions")},Zr,Nr.status==="done"&&Ze,rt),pn;Nr.response&&typeof Nr.response=="string"?pn=Nr.response:pn=Nr.error&&Nr.error.statusText||Ui.uploadError;var gr=o.createElement("span",null,qn,pt),Kn=o.createElement("div",{className:He},o.createElement("div",{className:"".concat(tr,"-list-item-info")},gr),Xr,o.createElement(Pe.a,{transitionName:"fade",component:""},vn)),Rr=a()(p()({},"".concat(tr,"-list-picture-card-container"),Ct==="picture-card"));return o.createElement("div",{key:Nr.uid,className:Rr},Nr.status==="error"?o.createElement(jt.a,{title:pn,getPopupContainer:function(an){return an.parentNode}},Kn):o.createElement("span",null,Kn))}),qt=a()((Zt={},p()(Zt,"".concat(tr,"-list"),!0),p()(Zt,"".concat(tr,"-list-").concat(Ct),!0),p()(Zt,"".concat(tr,"-list-rtl"),Ut==="rtl"),Zt)),Hr=Ct==="picture-card"?"animate-inline":"animate";return o.createElement(Pe.a,{transitionName:"".concat(tr,"-").concat(Hr),component:"div",className:qt},Ft)},se=o.forwardRef(de);se.displayName="UploadList",se.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:St,isImageUrl:mt};var ut=se,qe=i("YMnH"),me=i("ZvpZ"),Wt=i("uaoM"),dr=i("sPtV"),vt=function(xr,pr){var Zt,Ct=xr.fileList,on=xr.defaultFileList,Mn=xr.onRemove,Xn=xr.showUploadList,oi=xr.listType,Ui=xr.onPreview,Un=xr.onDownload,Qn=xr.previewFile,$t=xr.disabled,Nt=xr.locale,Me=xr.iconRender,ke=xr.isImageUrl,Be=xr.progress,it=xr.prefixCls,yt=xr.className,Tt=xr.type,Yt=xr.children,Pr=xr.style,$r=Object(dr.a)(Ct||on||[]),An=l()($r,2),zt=An[0],At=An[1],wt=o.useState("drop"),vr=l()(wt,2),Jt=vr[0],Ut=vr[1],tr=o.useRef();o.useEffect(function(){At(Ct||on||[]),Object(Wt.a)("fileList"in xr||!("value"in xr),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),o.useEffect(function(){"fileList"in xr&&At(Ct||[])},[Ct]);var Ft=function(pt){"fileList"in xr||At(pt.fileList);var hr=xr.onChange;hr&&hr(f()(f()({},pt),{fileList:v()(pt.fileList)}))},qt=function(pt){var hr=Le(pt);hr.status="uploading";var Zr=zt().concat(),Xr=Zr.findIndex(function(pn){var gr=pn.uid;return gr===hr.uid});Xr===-1?Zr.push(hr):Zr[Xr]=hr,Ft({file:hr,fileList:Zr})},Hr=function(pt,hr,Zr){try{typeof pt=="string"&&(pt=JSON.parse(pt))}catch(pn){}var Xr=tt(hr,zt());if(!Xr)return;Xr.status="done",Xr.response=pt,Xr.xhr=Zr,Ft({file:f()({},Xr),fileList:zt().concat()})},Nr=function(pt,hr){var Zr=tt(hr,zt());if(!Zr)return;Zr.percent=pt.percent,Ft({event:pt,file:f()({},Zr),fileList:zt().concat()})},Dr=function(pt,hr,Zr){var Xr=tt(Zr,zt());if(!Xr)return;Xr.error=pt,Xr.response=hr,Xr.status="error",Ft({file:f()({},Xr),fileList:zt().concat()})},cn=function(pt){Promise.resolve(typeof Mn=="function"?Mn(pt):Mn).then(function(hr){if(hr===!1)return;var Zr=gt(pt,zt());Zr&&(pt.status="removed",tr.current&&tr.current.abort(pt),Ft({file:pt,fileList:Zr}))})},vn=function(pt){Ut(pt.type)},ei=function(pt,hr){var Zr=xr.beforeUpload;if(!Zr)return!0;var Xr=Zr(pt,hr);if(Xr===!1){var pn=[];return zt().concat(hr.map(Le)).forEach(function(gr){pn.every(function(Kn){return Kn.uid!==gr.uid})&&pn.push(gr)}),Ft({file:pt,fileList:pn}),!1}return Xr&&Xr.then?Xr:!0},qn=Object(Ke.a)();o.useImperativeHandle(pr,function(){return{onStart:qt,onSuccess:Hr,onProgress:Nr,onError:Dr,fileList:zt(),upload:tr.current,forceUpdate:qn}});var fi=function(pt){var hr=Xn.showRemoveIcon,Zr=Xn.showPreviewIcon,Xr=Xn.showDownloadIcon,pn=Xn.removeIcon,gr=Xn.downloadIcon;return o.createElement(ut,{listType:oi,items:zt(),previewFile:Qn,onPreview:Ui,onDownload:Un,onRemove:cn,showRemoveIcon:!$t&&hr,showPreviewIcon:Zr,showDownloadIcon:Xr,removeIcon:pn,downloadIcon:gr,iconRender:Me,locale:f()(f()({},pt),Nt),isImageUrl:ke,progress:Be})},xi=o.useContext(Ot.b),Ni=xi.getPrefixCls,Hi=xi.direction,nt=Ni("upload",it),Ne=f()(f()({onStart:qt,onError:Dr,onProgress:Nr,onSuccess:Hr},xr),{prefixCls:nt,beforeUpload:ei});delete Ne.className,delete Ne.style,(!Yt||$t)&&delete Ne.id;var He=Xn?o.createElement(qe.a,{componentName:"Upload",defaultLocale:me.a.Upload},fi):null;if(Tt==="drag"){var Xe,rt=a()(nt,(Xe={},p()(Xe,"".concat(nt,"-drag"),!0),p()(Xe,"".concat(nt,"-drag-uploading"),zt().some(function(xt){return xt.status==="uploading"})),p()(Xe,"".concat(nt,"-drag-hover"),Jt==="dragover"),p()(Xe,"".concat(nt,"-disabled"),$t),p()(Xe,"".concat(nt,"-rtl"),Hi==="rtl"),Xe),yt);return o.createElement("span",null,o.createElement("div",{className:rt,onDrop:vn,onDragOver:vn,onDragLeave:vn,style:Pr},o.createElement($,f()({},Ne,{ref:tr,className:"".concat(nt,"-btn")}),o.createElement("div",{className:"".concat(nt,"-drag-container")},Yt))),He)}var Ze=a()(nt,(Zt={},p()(Zt,"".concat(nt,"-select"),!0),p()(Zt,"".concat(nt,"-select-").concat(oi),!0),p()(Zt,"".concat(nt,"-disabled"),$t),p()(Zt,"".concat(nt,"-rtl"),Hi==="rtl"),Zt)),st=o.createElement("div",{className:Ze,style:Yt?void 0:{display:"none"}},o.createElement($,f()({},Ne,{ref:tr})));return oi==="picture-card"?o.createElement("span",{className:a()(yt,"".concat(nt,"-picture-card-wrapper"))},He,st):o.createElement("span",{className:yt},st,He)},rr=o.forwardRef(vt);rr.Dragger=Re,rr.displayName="Upload",rr.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:ye,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var ur=rr;ur.Dragger=Re;var mn=D.a=ur},"98bh":function(R,D,i){var y=i("ProS"),p=i("5GtS"),x=i("bYtY"),v=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(x.bind(this.getData,this),x.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:x.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){v.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"}});x.mixin(e,d);var u=e;R.exports=u},"9H2F":function(R,D,i){var y=i("bYtY"),p=y.assert,x=y.isArray,v=i("Tghj"),m=v.__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),A=a&&a.modDataCount||0;(c!==g||h!==A)&&(s="reset");function b(I){return!(I>=1)&&(I=1),I}var w;(this._dirty||s==="reset")&&(this._dirty=!1,w=t(this,u)),this._modBy=g,this._modDataCount=A;var E=a&&a.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var C=this._dueIndex,_=Math.min(E!=null?this._dueIndex+E:Infinity,this._dueEnd);if(!u&&(w||C<_)){var T=this._progress;if(x(T))for(var S=0;S<T.length;S++)n(this,T[S],C,_,g,A);else n(this,T,C,_,g,A)}this._dueIndex=_;var O=this._settedOutputEnd!=null?this._settedOutputEnd:_;this._outputDueEnd=O}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var o=function(){var a,e,u,r,s,c={reset:function(A,b,w,E){e=A,a=b,u=w,r=E,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 A=e%s*u+Math.ceil(e/s),b=e>=a?null:A<r?A: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),x(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(R,D,i){var y=i("mFDi"),p=i("xSat"),x=p.onIrrelevantElement,v=i("IwbS");function m(o){return o=l(o),function(n,t){return v.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])&&!x(a,n,t)}}function l(o){return y.create(o)}D.makeRectPanelClipPath=m,D.makeLinearBrushOtherExtent=f,D.makeRectIsTargetByCursor=d},"9OqN":function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.mode.CTR=function(){var p=y.lib.BlockCipherMode.extend(),x=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=x,p}(),y.mode.CTR})},"9ama":function(R,D,i){},"9eas":function(R,D,i){i("HM/N"),i("tBnm")},"9hCq":function(R,D,i){var y=i("IwbS"),p=i("+TT/"),x=i("bYtY"),v=i("VaxA"),m=v.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"),A=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,A),this._renderContent(e,b,g,A,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,A=e.get("breadcrumb.height"),b=p.getAvailableSize(u.pos,u.box),w=u.totalWidth,E=u.renderList,C=E.length-1;C>=0;C--){var _=E[C],T=_.node,S=_.width,O=_.text;w>b.width&&(w-=S-g,S=g,O=null);var I=new y.Polygon({shape:{points:n(h,0,S,A,C===E.length-1,C===0)},style:x.defaults(r.getItemStyle(),{lineJoin:"bevel",text:O,textFill:s.getTextColor(),textFont:s.getFont()}),z:10,onclick:x.curry(c,T)});this.group.add(I),t(I,e,T),h+=S+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;R.exports=a},"9u0u":function(R,D,i){var y=i("bYtY");function p(v,m){var f={};return y.each(v,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)})}),v[0].map(v[0].mapDimension("value"),function(d,l){for(var o="ec-"+v[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 x(v){var m={};v.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]})}R.exports=x},"9wZj":function(R,D,i){var y=i("IwbS"),p=i("FBjb"),x=i("bYtY"),v=x.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 A=new s(t,h,c);A.attr("position",g),t.setItemGraphicEl(h,A),e.add(A)}}).update(function(h,g){var A=r.getItemGraphicEl(g),b=t.getItemLayout(h);if(!d(t,b,h,a)){e.remove(A);return}A?(A.updateData(t,h,c),y.updateProps(A,{position:b},u)):(A=new s(t,h),A.attr("position",b)),e.add(A),t.setItemGraphicEl(h,A)}).remove(function(h){var 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&&!v(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;R.exports=n},"9yH6":function(R,D,i){"use strict";var y=i("lSNA"),p=i.n(y),x=i("pVnL"),v=i.n(x),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(k,G){typeof k=="function"?k(G):u()(k)==="object"&&k&&"current"in k&&(k.current=G)}function s(){for(var k=arguments.length,G=new Array(k),M=0;M<k;M++)G[M]=arguments[M];return function(j){G.forEach(function(K){r(K,j)})}}var c=i("uaoM"),h=function(k,G){var M={};for(var j in k)Object.prototype.hasOwnProperty.call(k,j)&&G.indexOf(j)<0&&(M[j]=k[j]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,j=Object.getOwnPropertySymbols(k);K<j.length;K++)G.indexOf(j[K])<0&&Object.prototype.propertyIsEnumerable.call(k,j[K])&&(M[j[K]]=k[j[K]]);return M},g=function(G,M){var j,K=m.useContext(a),z=m.useContext(o.b),V=z.getPrefixCls,Q=z.direction,X=m.useRef(),te=s(M,X);m.useEffect(function(){Object(c.a)(!("optionType"in G),"Radio","`optionType` is only support in Radio.Group.")},[]);var $=function(ae){G.onChange&&G.onChange(ae),(K==null?void 0:K.onChange)&&K.onChange(ae)},le=G.prefixCls,re=G.className,Se=G.children,Re=G.style,Pe=h(G,["prefixCls","className","children","style"]),Je=V("radio",le),Ge=v()({},Pe);K&&(Ge.name=K.name,Ge.onChange=$,Ge.checked=G.value===K.value,Ge.disabled=G.disabled||K.disabled);var ct=l()(re,(j={},p()(j,"".concat(Je,"-wrapper"),!0),p()(j,"".concat(Je,"-wrapper-checked"),Ge.checked),p()(j,"".concat(Je,"-wrapper-disabled"),Ge.disabled),p()(j,"".concat(Je,"-wrapper-rtl"),Q==="rtl"),j));return m.createElement("label",{className:ct,style:Re,onMouseEnter:G.onMouseEnter,onMouseLeave:G.onMouseLeave},m.createElement(f.a,v()({},Ge,{prefixCls:Je,ref:te})),Se!==void 0?m.createElement("span",null,Se):null)},A=m.forwardRef(g);A.displayName="Radio",A.defaultProps={type:"radio"};var b=A,w=i("J4zp"),E=i.n(w),C=i("6cGi"),_=i("3Nzz"),T=m.forwardRef(function(k,G){var M=m.useContext(o.b),j=M.getPrefixCls,K=M.direction,z=m.useContext(_.b),V=Object(C.a)(k.defaultValue,{value:k.value}),Q=E()(V,2),X=Q[0],te=Q[1],$=function(Se){var Re=X,Pe=Se.target.value;"value"in k||te(Pe);var Je=k.onChange;Je&&Pe!==Re&&Je(Se)},le=function(){var Se,Re=k.prefixCls,Pe=k.className,Je=Pe===void 0?"":Pe,Ge=k.options,ct=k.optionType,Ue=k.buttonStyle,ae=k.disabled,lt=k.children,pe=k.size,J=k.style,Y=k.id,ee=k.onMouseEnter,fe=k.onMouseLeave,we=j("radio",Re),Ce="".concat(we,"-group"),_e=lt;if(Ge&&Ge.length>0){var he=ct==="button"?"".concat(we,"-button"):we;_e=Ge.map(function(tt){return typeof tt=="string"?m.createElement(b,{ref:G,key:tt,prefixCls:he,disabled:ae,value:tt,checked:X===tt},tt):m.createElement(b,{ref:G,key:"radio-group-value-options-".concat(tt.value),prefixCls:he,disabled:tt.disabled||ae,value:tt.value,checked:X===tt.value,style:tt.style},tt.label)})}var ye=pe||z,Le=l()(Ce,"".concat(Ce,"-").concat(Ue),(Se={},p()(Se,"".concat(Ce,"-").concat(ye),ye),p()(Se,"".concat(Ce,"-rtl"),K==="rtl"),Se),Je);return m.createElement("div",{className:Le,style:J,onMouseEnter:ee,onMouseLeave:fe,id:Y},_e)};return m.createElement(t,{value:{onChange:$,value:X,disabled:k.disabled,name:k.name}},le())});T.defaultProps={buttonStyle:"outline"};var S=m.memo(T),O=function(k,G){var M={};for(var j in k)Object.prototype.hasOwnProperty.call(k,j)&&G.indexOf(j)<0&&(M[j]=k[j]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,j=Object.getOwnPropertySymbols(k);K<j.length;K++)G.indexOf(j[K])<0&&Object.prototype.propertyIsEnumerable.call(k,j[K])&&(M[j[K]]=k[j[K]]);return M},I=function(G,M){var j=m.useContext(a),K=m.useContext(o.b),z=K.getPrefixCls,V=G.prefixCls,Q=O(G,["prefixCls"]),X=z("radio-button",V);return j&&(Q.checked=G.value===j.value,Q.disabled=G.disabled||j.disabled),m.createElement(b,v()({prefixCls:X},Q,{type:"radio",ref:M}))},F=m.forwardRef(I),P=b;P.Button=F,P.Group=S;var B=D.a=P},A1Ka:function(R,D,i){var y=i("bLfw"),p=i("sS/r"),x=i("D5nY"),v=x.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(){v(this)}}),p.extend({type:"dataset"})},A90E:function(R,D,i){var y=i("6sVZ"),p=i("V6Ve"),x=Object.prototype,v=x.hasOwnProperty;function m(f){if(!y(f))return p(f);var d=[];for(var l in Object(f))v.call(f,l)&&l!="constructor"&&d.push(l);return d}R.exports=m},ABKa:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="FolderOutlined";var n=v.forwardRef(o);D.default=n},AE9C:function(R,D,i){var y=i("bYtY"),p=i("crZl"),x=i("IwbS"),v=i("oVpE"),m=v.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,A=y.retrieve(t.get("showLabel",!0),!g);g&&this._renderEndsText(n,g[0],c,A,s),y.each(h.viewPieceList,b,this),g&&this._renderEndsText(n,g[1],c,A,s),f.box(t.get("orient"),n,t.get("itemGap")),this.renderBackground(n),this.positionGroup(n);function b(w){var E=w.piece,C=new x.Group;C.onclick=y.bind(this._onItemClick,this,E),this._enableHoverLink(C,w.indexInModelPieceList);var _=t.getRepresentValue(E);if(this._createItemSymbol(C,_,[0,0,c[0],c[1]]),A){var T=this.visualMapModel.getValueState(_);C.add(new x.Text({style:{x:s==="right"?-a:c[0]+a,y:c[1]/2,text:E.text,textVerticalAlign:"middle",textAlign:s,textFont:u,textFill:r,opacity:T==="outOfRange"?.5:1}}))}n.add(C)}},_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 x.Group,s=this.visualMapModel.textStyleModel;r.add(new x.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;R.exports=o},AEZ6:function(R,D,i){var y=i("bYtY"),p=y.each,x=y.createHashMap,v=i("T4UG"),m=i("MwEJ"),f=v.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=x();p(t.dimensions,function(e){var u=l(e);a.set(e,u)})}function l(o){return+o.replace("dim","")}R.exports=f},AH3D:function(R,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(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("5GtS"),v=i("4NO4"),m=v.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 x(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;R.exports=n},ALsQ:function(R,D,i){(function(y,p,x){R.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;x.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);x.call(this,m,f,l,d),this._prevBlock=o}});function x(v,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++)v[m+n]^=l[n]}return p}(),y.mode.CFB})},ANjR:function(R,D,i){var y=i("bYtY");function p(v,m){return m=m||[0,0],y.map([0,1],function(f){var d=m[f],l=v[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 x(v){var m=v.getBoundingRect();return{coordSys:{type:"geo",x:m.x,y:m.y,width:m.width,height:m.height,zoom:v.getZoom()},api:{coord:function(f){return v.dataToPoint(f)},size:y.bind(p,v)}}}R.exports=x},AOa7:function(R,D,i){},AUH6:function(R,D,i){var y=i("bYtY"),p=i("mFDi"),x=i("bMXI"),v=i("W4dC");function m(l,o,n,t){x.call(this,l),this.map=o;var a=v.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 x.prototype.dataToPoint.call(this,l,o,n)},convertToPixel:y.curry(f,"dataToPoint"),convertFromPixel:y.curry(f,"pointToData")},y.mixin(m,x);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;R.exports=d},AVZG:function(R,D,i){var y=i("bYtY");function p(x,v,m){m=m||{};var f=x.coordinateSystem,d=v.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=v.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,v.get("axisTick.inside")&&(l.tickDirection=-l.tickDirection),y.retrieve(m.labelInside,v.get("axisLabel.inside"))&&(l.labelDirection=-l.labelDirection);var A=v.get("axisLabel.rotate");return l.labelRotate=t==="top"?-A:A,l.z2=1,l}D.layout=p},"Ae+d":function(R,D){function i(p,x,v){var m=p.target,f=m.position;f[0]+=x,f[1]+=v,m.dirty()}function y(p,x,v,m){var f=p.target,d=p.zoomLimit,l=f.position,o=f.scale,n=p.zoom=p.zoom||1;if(n*=x,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]-=(v-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(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("IwbS");i("Wqna"),i("rySg"),y.extendComponentView({type:"grid",render:function(v,m){this.group.removeAll(),v.get("show")&&this.group.add(new x.Rect({shape:v.coordinateSystem.getRect(),style:p.defaults({fill:v.get("backgroundColor")},v.getItemStyle()),silent:!0,z2:-1}))}}),y.registerPreprocessor(function(v){v.xAxis&&v.yAxis&&!v.grid&&(v.grid={})})},Awhp:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("PQMj"),v=i.n(x)},"B+YJ":function(R,D,i){i("TYVI"),i("p1MT")},"B6l+":function(R,D,i){var y=i("Sq3C"),p=i("Z1HP"),x=i("Sxd8"),v=i("dt0z");function m(f,d,l){f=v(f),d=x(d);var o=d?p(f):0;return d&&o<d?f+y(d-o,l):f}R.exports=m},B8du:function(R,D){function i(){return!1}R.exports=i},B9cy:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("0XgM"),v=i.n(x)},B9fm:function(R,D,i){var y=i("bYtY"),p=i("Qe9p"),x=i("YH21"),v=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(A){return A+"transition:"+g}).join(";")}function a(c){var h=[],g=c.get("fontSize"),A=c.getTextColor();return A&&h.push("color:"+A),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"),A=c.get("backgroundColor"),b=c.getModel("textStyle"),w=c.get("padding");return g&&h.push(t(g)),A&&(m.canvasSupported?h.push("background-Color:"+A):(h.push("background-Color:#"+p.toHex(A)),h.push("filter:alpha(opacity=70)"))),d(["width","color","radius"],function(E){var C="border-"+E,_=l(C),T=c.get(_);T!=null&&h.push(C+":"+T+(E==="color"?"":"px"))}),h.push(a(b)),w!=null&&h.push("padding:"+f.normalizeCssArray(w).join("px ")+"px"),h.join(";")+";"}function u(c,h,g,A,b){var w=h&&h.painter;if(g){var E=w&&w.getViewportRoot();E&&v.transformLocalCoord(c,E,document.body,A,b)}else{c[0]=A,c[1]=b;var C=w&&w.getViewportRootOffset();C&&(c[0]+=C.offsetLeft,c[1]+=C.offsetTop)}}function r(c,h,g){if(m.wxa)return null;var A=document.createElement("div");A.domBelongToZr=!0,this.el=A;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(A):c.appendChild(A),this._container=c,this._show=!1,this._hideTimeout;var E=this;A.onmouseenter=function(){E._enterable&&(clearTimeout(E._hideTimeout),E._show=!0),E._inContent=!0},A.onmousemove=function(C){if(C=C||window.event,!E._enterable){var _=b.handler,T=b.painter.getViewportRoot();x.normalizeEvent(T,C,!0),_.dispatch("mousemove",C)}},A.onmouseleave=function(){E._enterable&&(E._show&&E.hideLater(E._hideDelay)),E._inContent=!1}}r.prototype={constructor:r,_enterable:!0,update:function(){var c=this._container,h=c.currentStyle||document.defaultView.getComputedStyle(c),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 A=this.el.style;A.left=g[0]+"px",A.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;R.exports=s},BPZU:function(R,D){var i=32,y=7,p=256;function x(t){for(var a=0;t>=i;)a|=t&1,t>>=1;return t+a}function v(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 A=u-c;switch(A){case 3:t[c+3]=t[c+2];case 2:t[c+2]=t[c+1];case 1:t[c+1]=t[c];break;default:for(;A>0;)t[c+A]=t[c+A-1],A--}t[c]=s}}function d(t,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 A=c;c=r-g,g=r-A}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 A=c;c=r-g,g=r-A}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 A=[];s=u<120?5:u<1542?10:u<119151?19:40,c=[],h=[];function b(S,O){c[g]=S,h[g]=O,g+=1}function w(){for(;g>1;){var S=g-2;if(S>=1&&h[S-1]<=h[S]+h[S+1]||S>=2&&h[S-2]<=h[S]+h[S-1])h[S-1]<h[S+1]&&S--;else if(h[S]>h[S+1])break;C(S)}}function E(){for(;g>1;){var S=g-2;S>0&&h[S-1]<h[S+1]&&S--,C(S)}}function C(S){var O=c[S],I=h[S],F=c[S+1],P=h[S+1];h[S]=I+P,S===g-3&&(c[S+1]=c[S+2],h[S+1]=h[S+2]),g--;var B=l(t[F],t,O,I,0,a);if(O+=B,I-=B,I===0)return;if(P=d(t[O+I-1],t,F,P,P-1,a),P===0)return;I<=P?_(O,I,F,P):T(O,I,F,P)}function _(S,O,I,F){var P=0;for(P=0;P<O;P++)A[P]=t[S+P];var B=0,k=I,G=S;if(t[G++]=t[k++],--F===0){for(P=0;P<O;P++)t[G+P]=A[B+P];return}if(O===1){for(P=0;P<F;P++)t[G+P]=t[k+P];t[G+F]=A[B];return}for(var M=e,j,K,z;;){j=0,K=0,z=!1;do if(a(t[k],A[B])<0){if(t[G++]=t[k++],K++,j=0,--F===0){z=!0;break}}else if(t[G++]=A[B++],j++,K=0,--O===1){z=!0;break}while((j|K)<M);if(z)break;do{if(j=l(t[k],A,B,O,0,a),j!==0){for(P=0;P<j;P++)t[G+P]=A[B+P];if(G+=j,B+=j,O-=j,O<=1){z=!0;break}}if(t[G++]=t[k++],--F===0){z=!0;break}if(K=d(A[B],t,k,F,0,a),K!==0){for(P=0;P<K;P++)t[G+P]=t[k+P];if(G+=K,k+=K,F-=K,F===0){z=!0;break}}if(t[G++]=A[B++],--O===1){z=!0;break}M--}while(j>=y||K>=y);if(z)break;M<0&&(M=0),M+=2}if(e=M,e<1&&(e=1),O===1){for(P=0;P<F;P++)t[G+P]=t[k+P];t[G+F]=A[B]}else{if(O===0)throw new Error;for(P=0;P<O;P++)t[G+P]=A[B+P]}}function T(S,O,I,F){var P=0;for(P=0;P<F;P++)A[P]=t[I+P];var B=S+O-1,k=F-1,G=I+F-1,M=0,j=0;if(t[G--]=t[B--],--O===0){for(M=G-(F-1),P=0;P<F;P++)t[M+P]=A[P];return}if(F===1){for(G-=O,B-=O,j=G+1,M=B+1,P=O-1;P>=0;P--)t[j+P]=t[M+P];t[G]=A[k];return}for(var K=e;;){var z=0,V=0,Q=!1;do if(a(A[k],t[B])<0){if(t[G--]=t[B--],z++,V=0,--O===0){Q=!0;break}}else if(t[G--]=A[k--],V++,z=0,--F===1){Q=!0;break}while((z|V)<K);if(Q)break;do{if(z=O-l(A[k],t,S,O,O-1,a),z!==0){for(G-=z,B-=z,O-=z,j=G+1,M=B+1,P=z-1;P>=0;P--)t[j+P]=t[M+P];if(O===0){Q=!0;break}}if(t[G--]=A[k--],--F===1){Q=!0;break}if(V=F-d(t[B],A,0,F,F-1,a),V!==0){for(G-=V,k-=V,F-=V,j=G+1,M=k+1,P=0;P<V;P++)t[j+P]=A[M+P];if(F<=1){Q=!0;break}}if(t[G--]=t[B--],--O===0){Q=!0;break}K--}while(z>=y||V>=y);if(Q)break;K<0&&(K=0),K+=2}if(e=K,e<1&&(e=1),F===1){for(G-=O,B-=O,j=G+1,M=B+1,P=O-1;P>=0;P--)t[j+P]=t[M+P];t[G]=A[k]}else{if(F===0)throw new Error;for(M=G-(F-1),P=0;P<F;P++)t[M+P]=A[P]}}this.mergeRuns=w,this.forceMergeRuns=E,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=v(t,e,u,a),f(t,e,u,e+s,a);return}var c=new o(t,a),h=x(r);do{if(s=v(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()}R.exports=n},Bd2K:function(R,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 v(e)}),o.addKeyMap(a)});var p=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],x=["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 v(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 A=s.mode.configuration=="html",b=typeof a=="object"&&a.dontCloseTags||A&&p,w=typeof a=="object"&&a.indentTags||A&&x;r.end>u.ch&&(g=g.slice(0,g.length-r.end+u.ch));var E=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,E)>-1||l(o,s.mode.xmlCurrentContext&&s.mode.xmlCurrentContext(c)||[],g,u,!0))return y.Pass;var C=typeof a=="object"&&a.emptyTags;if(C&&d(C,g)>-1){t[e]={text:"/>",newPos:y.Pos(u.line,u.ch+2)};continue}var _=w&&d(w,E)>-1;t[e]={indent:_,text:">"+(_?`
|
|
|
|
|
|
`:"")+"</"+g+">",newPos:_?y.Pos(u.line+1,0):y.Pos(u.line,u.ch+1)}}for(var T=typeof a=="object"&&a.dontIndentOnAutoClose,e=n.length-1;e>=0;e--){var S=t[e];o.replaceRange(S.text,n[e].head,n[e].anchor,"+insert");var O=o.listSelections().slice(0);O[e]={head:S.newPos,anchor:S.newPos},o.setSelections(O),!T&&S.indent&&(o.indentLine(S.newPos.line,null,!0),o.indentLine(S.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),A=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 E=g.mode.xmlCurrentContext&&g.mode.xmlCurrentContext(A);if(!E||E.length&&l(o,E,E[E.length-1],c))return y.Pass;b=e+E[E.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(R,D,i){var y=i("hyiK"),p=1e-8;function x(m,f){return Math.abs(m-f)<p}function v(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(!x(o[0],a[0])||!x(o[1],a[1]))&&(l+=y(o[0],o[1],a[0],a[1],f,d)),l!==0}D.contain=v},BoS7:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("czTT"),v=i.n(x)},Bq2U:function(R,D,i){var y=i("RDYZ"),p=i("Qe9p"),x=i("bYtY"),v=x.isArrayLike,m=Array.prototype.slice;function f(b,w){return b[w]}function d(b,w,E){b[w]=E}function l(b,w,E){return(w-b)*E+b}function o(b,w,E){return E>.5?w:b}function n(b,w,E,C,_){var T=b.length;if(_===1)for(var S=0;S<T;S++)C[S]=l(b[S],w[S],E);else for(var O=T&&b[0].length,S=0;S<T;S++)for(var I=0;I<O;I++)C[S][I]=l(b[S][I],w[S][I],E)}function t(b,w,E){var C=b.length,_=w.length;if(C!==_){var T=C>_;if(T)b.length=_;else for(var S=C;S<_;S++)b.push(E===1?w[S]:m.call(w[S]))}for(var O=b[0]&&b[0].length,S=0;S<b.length;S++)if(E===1)isNaN(b[S])&&(b[S]=w[S]);else for(var I=0;I<O;I++)isNaN(b[S][I])&&(b[S][I]=w[S][I])}function a(b,w,E){if(b===w)return!0;var C=b.length;if(C!==w.length)return!1;if(E===1){for(var _=0;_<C;_++)if(b[_]!==w[_])return!1}else for(var T=b[0].length,_=0;_<C;_++)for(var S=0;S<T;S++)if(b[_][S]!==w[_][S])return!1;return!0}function e(b,w,E,C,_,T,S,O,I){var F=b.length;if(I===1)for(var P=0;P<F;P++)O[P]=u(b[P],w[P],E[P],C[P],_,T,S);else for(var B=b[0].length,P=0;P<F;P++)for(var k=0;k<B;k++)O[P][k]=u(b[P][k],w[P][k],E[P][k],C[P][k],_,T,S)}function u(b,w,E,C,_,T,S){var O=(E-b)*.5,I=(C-w)*.5;return(2*(w-E)+O+I)*S+(-3*(w-E)-2*O-I)*T+O*_+w}function r(b){if(v(b)){var w=b.length;if(v(b[0])){for(var E=[],C=0;C<w;C++)E.push(m.call(b[C]));return E}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 v(w&&w[0])?2:1}function h(b,w,E,C,_,T){var S=b._getter,O=b._setter,I=w==="spline",F=C.length;if(!F)return;var P=C[0].value,B=v(P),k=!1,G=!1,M=B?c(C):0,j;C.sort(function(J,Y){return J.time-Y.time}),j=C[F-1].time;for(var K=[],z=[],V=C[0].value,Q=!0,X=0;X<F;X++){K.push(C[X].time/j);var te=C[X].value;if(B&&a(te,V,M)||!B&&te===V||(Q=!1),V=te,typeof te=="string"){var $=p.parse(te);$?(te=$,k=!0):G=!0}z.push(te)}if(!T&&Q)return;for(var le=z[F-1],X=0;X<F-1;X++)B?t(z[X],le,M):isNaN(z[X])&&!isNaN(le)&&!G&&!k&&(z[X]=le);B&&t(S(b._target,_),le,M);var re=0,Se=0,Re,Pe,Je,Ge,ct,Ue;if(k)var ae=[0,0,0,0];var lt=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&&!(K[fe]<=ee);fe--);fe=Math.min(fe,F-2)}else{for(fe=re;fe<F&&!(K[fe]>ee);fe++);fe=Math.min(fe-1,F-2)}re=fe,Se=ee;var we=K[fe+1]-K[fe];if(we===0)return;if(Pe=(ee-K[fe])/we,I)if(Ge=z[fe],Je=z[fe===0?fe:fe-1],ct=z[fe>F-2?F-1:fe+1],Ue=z[fe>F-3?F-1:fe+2],B)e(Je,Ge,ct,Ue,Pe,Pe*Pe,Pe*Pe*Pe,S(Y,_),M);else{var Ce;if(k)Ce=e(Je,Ge,ct,Ue,Pe,Pe*Pe,Pe*Pe*Pe,ae,1),Ce=s(ae);else{if(G)return o(Ge,ct,Pe);Ce=u(Je,Ge,ct,Ue,Pe,Pe*Pe,Pe*Pe*Pe)}O(Y,_,Ce)}else if(B)n(z[fe],z[fe+1],Pe,S(Y,_),M);else{var Ce;if(k)n(z[fe],z[fe+1],Pe,ae,1),Ce=s(ae);else{if(G)return o(z[fe],z[fe+1],Pe);Ce=l(z[fe],z[fe+1],Pe)}O(Y,_,Ce)}},pe=new y({target:b._target,life:j,loop:b._loop,delay:b._delay,onframe:lt,ondestroy:E});return w&&w!=="spline"&&(pe.easing=w),pe}var g=function(w,E,C,_){this._tracks={},this._target=w,this._loop=E||!1,this._getter=C||f,this._setter=_||d,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};g.prototype={when:function(w,E){var C=this._tracks;for(var _ in E){if(!E.hasOwnProperty(_))continue;if(!C[_]){C[_]=[];var T=this._getter(this._target,_);if(T==null)continue;w!==0&&C[_].push({time:0,value:r(T)})}C[_].push({time:w,value:E[_]})}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,E=w.length,C=0;C<E;C++)w[C].call(this)},start:function(w,E){var C=this,_=0,T=function(){_--,_||C._doneCallback()},S;for(var O in this._tracks){if(!this._tracks.hasOwnProperty(O))continue;var I=h(this,w,T,this._tracks[O],O,E);I&&(this._clipList.push(I),_++,this.animation&&this.animation.addClip(I),S=I)}if(S){var F=S.onframe;S.onframe=function(P,B){F(P,B);for(var k=0;k<C._onframeList.length;k++)C._onframeList[k](P,B)}}return _||this._doneCallback(),this},stop:function(w){for(var E=this._clipList,C=this.animation,_=0;_<E.length;_++){var T=E[_];w&&T.onframe(this._target,1),C&&C.removeClip(T)}E.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 A=g;R.exports=A},Bqw1:function(R,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(R,D,i){var y=i("bYtY"),p=i("Qxkt"),x=i("Mdki"),v=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(A,b){var w=A.value;s=Math.max(s,y.isArray(w)?w.length:1),r.push(A);var E=new f(A.name,u);b?l(E,b):u.root=E,u._nodes.push(E);var C=A.children;if(C)for(var _=0;_<C.length;_++)c(C[_],E)}u.root.updateDepthAndHeight(0);var h=m(r,{coordDimensions:["value"],dimensionsCount:s}),g=new v(h,t);return g.initData(r),e&&e(g),x({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;R.exports=o},BtR2:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="LikeOutlined";var d=D.a=p.forwardRef(f)},BuqR:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=i("6uqw"),m=i("XxSj"),f=i("YOMW"),d=i("OELB"),l=d.reformIntervals,o=v.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=x.clone(s)):(c.dataExtent=this.getExtent(),c.mappingMethod="piecewise",c.pieceList=x.map(this._pieceList,function(g){var g=x.clone(g);return h!=="inRange"&&(g.visual=null),g}))})},completeVisualOption:function(){var e=this.option,u={},r=m.listVisualTypes(),s=this.isCategory();x.each(e.pieces,function(h){x.each(r,function(g){h.hasOwnProperty(g)&&(u[g]=1)})}),x.each(u,function(h,g){var A=0;x.each(this.stateList,function(b){A|=c(e,b,g)||c(e.target,b,g)},this),!A&&x.each(this.stateList,function(b){(e[b]||(e[b]={}))[g]=f.get(g,b==="inRange"?"active":"inactive",s)})},this);function c(h,g,A){return h&&h[g]&&(x.isObject(h[g])?h[g].hasOwnProperty(A):h[g]===A)}v.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,x.each(s,function(g,A){var b=this.getSelectedMapKey(g);c.hasOwnProperty(b)||(c[b]=!0)},this),r.selectedMode==="single"){var h=!1;x.each(s,function(g,A){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=x.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 A=m.findPieceIndex(h,this._pieceList);A===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 E=s.getRepresentValue({interval:b});w||(w=s.getValueState(E));var C=e(E,w);b[0]===-Infinity?r[0]=C:b[1]===Infinity?r[1]=C:u.push({value:b[0],color:C},{value:b[1],color:C})}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 A=-Infinity;return x.each(h,function(b){var w=b.interval;w&&(w[0]>A&&c([A,w[0]],"outOfRange"),c(w.slice()),A=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,A=s[0];g<c;A+=h,g++){var b=g===c-1?s[1]:A+h;u.push({interval:[A,b],close:[1,1]})}e.maxOpen&&u.push({interval:[s[1],Infinity],close:[0,0]}),l(u),x.each(u,function(w,E){w.index=E,w.text=this.formatValueText(w.interval)},this)},categories:function(){var e=this.option;x.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;x.each(e.pieces,function(r,s){x.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=[],A=c.close=[0,0],b=[1,0,1],w=[-Infinity,Infinity],E=[],C=0;C<2;C++){for(var _=[["gte","gt","min"],["lte","lt","max"]][C],T=0;T<3&&g[C]==null;T++)g[C]=r[_[T]],A[C]=b[T],E[C]=T===2;g[C]==null&&(g[C]=w[C])}E[0]&&g[1]===Infinity&&(A[0]=0),E[1]&&g[0]===-Infinity&&(A[1]=0),g[0]===g[1]&&A[0]&&A[1]&&(c.value=g[0])}c.visual=m.retrieveVisuals(r),u.push(c)},this),t(e,u),l(u),x.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;R.exports=a},BvKs:function(R,D,i){"use strict";i.d(D,"a",function(){return zt});var y=i("pVnL"),p=i.n(y),x=i("lSNA"),v=i.n(x),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"),A=i("I8Z2"),b=i("BGR+"),w=i("wx14"),E=i("rePB"),C=i("4IlW"),_=i("2GS6"),T=i("Gytx"),S=i.n(T),O=i("TSYQ"),I=i.n(O),F=i("U8pU"),P=i("ODXe"),B=/iPhone/i,k=/iPod/i,G=/iPad/i,M=/\bAndroid(?:.+)Mobile\b/i,j=/Android/i,K=/\bAndroid(?:.+)SD4930UR\b/i,z=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,V=/Windows Phone/i,Q=/\bWindows(?:.+)ARM\b/i,X=/BlackBerry/i,te=/BB10/i,$=/Opera Mini/i,le=/\b(CriOS|Chrome)(?:.+)Mobile/i,re=/Mobile(?:.+)Firefox\b/i;function Se(At,wt){return At.test(wt)}function Re(At){var wt=At||(typeof navigator!="undefined"?navigator.userAgent:""),vr=wt.split("[FBAN");if(typeof vr[1]!="undefined"){var Jt=vr,Ut=Object(P.a)(Jt,1);wt=Ut[0]}if(vr=wt.split("Twitter"),typeof vr[1]!="undefined"){var tr=vr,Ft=Object(P.a)(tr,1);wt=Ft[0]}var qt={apple:{phone:Se(B,wt)&&!Se(V,wt),ipod:Se(k,wt),tablet:!Se(B,wt)&&Se(G,wt)&&!Se(V,wt),device:(Se(B,wt)||Se(k,wt)||Se(G,wt))&&!Se(V,wt)},amazon:{phone:Se(K,wt),tablet:!Se(K,wt)&&Se(z,wt),device:Se(K,wt)||Se(z,wt)},android:{phone:!Se(V,wt)&&Se(K,wt)||!Se(V,wt)&&Se(M,wt),tablet:!Se(V,wt)&&!Se(K,wt)&&!Se(M,wt)&&(Se(z,wt)||Se(j,wt)),device:!Se(V,wt)&&(Se(K,wt)||Se(z,wt)||Se(M,wt)||Se(j,wt))||Se(/\bokhttp\b/i,wt)},windows:{phone:Se(V,wt),tablet:Se(Q,wt),device:Se(V,wt)||Se(Q,wt)},other:{blackberry:Se(X,wt),blackberry10:Se(te,wt),opera:Se($,wt),firefox:Se(re,wt),chrome:Se(le,wt),device:Se(X,wt)||Se(te,wt)||Se($,wt)||Se(re,wt)||Se(le,wt)},any:null,phone:null,tablet:null};return qt.any=qt.apple.device||qt.android.device||qt.windows.device||qt.other.device,qt.phone=qt.apple.phone||qt.android.phone||qt.windows.phone,qt.tablet=qt.apple.tablet||qt.android.tablet||qt.windows.tablet,qt}var Pe=Object(u.a)(Object(u.a)({},Re()),{},{isMobile:Re}),Je=Pe;function Ge(){}function ct(At,wt,vr){var Jt=wt||"";return At.key||"".concat(Jt,"item_").concat(vr)}function Ue(At){return"".concat(At,"-menu-")}function ae(At,wt){var vr=-1;e.Children.forEach(At,function(Jt){vr+=1,Jt&&Jt.type&&Jt.type.isMenuItemGroup?e.Children.forEach(Jt.props.children,function(Ut){vr+=1,wt(Ut,vr)}):wt(Jt,vr)})}function lt(At,wt,vr){if(!At||vr.find)return;e.Children.forEach(At,function(Jt){if(Jt){var Ut=Jt.type;if(!Ut||!(Ut.isSubMenu||Ut.isMenuItem||Ut.isMenuItemGroup))return;wt.indexOf(Jt.key)!==-1?vr.find=!0:Jt.props.children&<(Jt.props.children,wt,vr)}})}var pe=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],J=function(wt){var vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Jt=wt&&typeof wt.getBoundingClientRect=="function"&&wt.getBoundingClientRect().width;if(Jt){if(vr){var Ut=getComputedStyle(wt),tr=Ut.marginLeft,Ft=Ut.marginRight;Jt+=+tr.replace("px","")+ +Ft.replace("px","")}Jt=+Jt.toFixed(6)}return Jt||0},Y=function(wt,vr,Jt){wt&&Object(F.a)(wt.style)==="object"&&(wt.style[vr]=Jt)},ee=function(){return Je.any},fe=i("KQm4"),we=i("Ff2n"),Ce=i("i8i4"),_e=i("bdgK"),he=i("Uaa1"),ye=i("HTfv"),Le={adjustX:1,adjustY:1},tt={topLeft:{points:["bl","tl"],overflow:Le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Le,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Le,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Le,offset:[4,0]}},gt={topLeft:{points:["bl","tl"],overflow:Le,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Le,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Le,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Le,offset:[4,0]}},at=tt,Fe=0,mt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},et=function(wt,vr,Jt){var Ut=Ue(vr),tr=wt.getState();wt.setState({defaultActiveFirst:Object(u.a)(Object(u.a)({},tr.defaultActiveFirst),{},Object(E.a)({},Ut,Jt))})},St=function(At){Object(h.a)(vr,At);var wt=Object(g.a)(vr);function vr(Jt){var Ut;Object(r.a)(this,vr),Ut=wt.call(this,Jt),Ut.onDestroy=function(Dr){Ut.props.onDestroy(Dr)},Ut.onKeyDown=function(Dr){var cn=Dr.keyCode,vn=Ut.menuInstance,ei=Ut.props,qn=ei.isOpen,fi=ei.store;if(cn===C.a.ENTER)return Ut.onTitleClick(Dr),et(fi,Ut.props.eventKey,!0),!0;if(cn===C.a.RIGHT)return qn?vn.onKeyDown(Dr):(Ut.triggerOpenChange(!0),et(fi,Ut.props.eventKey,!0)),!0;if(cn===C.a.LEFT){var xi;if(qn)xi=vn.onKeyDown(Dr);else return;return xi||(Ut.triggerOpenChange(!1),xi=!0),xi}return qn&&(cn===C.a.UP||cn===C.a.DOWN)?vn.onKeyDown(Dr):void 0},Ut.onOpenChange=function(Dr){Ut.props.onOpenChange(Dr)},Ut.onPopupVisibleChange=function(Dr){Ut.triggerOpenChange(Dr,Dr?"mouseenter":"mouseleave")},Ut.onMouseEnter=function(Dr){var cn=Ut.props,vn=cn.eventKey,ei=cn.onMouseEnter,qn=cn.store;et(qn,Ut.props.eventKey,!1),ei({key:vn,domEvent:Dr})},Ut.onMouseLeave=function(Dr){var cn=Ut.props,vn=cn.parentMenu,ei=cn.eventKey,qn=cn.onMouseLeave;vn.subMenuInstance=Object(c.a)(Ut),qn({key:ei,domEvent:Dr})},Ut.onTitleMouseEnter=function(Dr){var cn=Ut.props,vn=cn.eventKey,ei=cn.onItemHover,qn=cn.onTitleMouseEnter;ei({key:vn,hover:!0}),qn({key:vn,domEvent:Dr})},Ut.onTitleMouseLeave=function(Dr){var cn=Ut.props,vn=cn.parentMenu,ei=cn.eventKey,qn=cn.onItemHover,fi=cn.onTitleMouseLeave;vn.subMenuInstance=Object(c.a)(Ut),qn({key:ei,hover:!1}),fi({key:ei,domEvent:Dr})},Ut.onTitleClick=function(Dr){var cn=Object(c.a)(Ut),vn=cn.props;if(vn.onTitleClick({key:vn.eventKey,domEvent:Dr}),vn.triggerSubMenuAction==="hover")return;Ut.triggerOpenChange(!vn.isOpen,"click"),et(vn.store,Ut.props.eventKey,!1)},Ut.onSubMenuClick=function(Dr){typeof Ut.props.onClick=="function"&&Ut.props.onClick(Ut.addKeyPath(Dr))},Ut.onSelect=function(Dr){Ut.props.onSelect(Dr)},Ut.onDeselect=function(Dr){Ut.props.onDeselect(Dr)},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(Dr){Ut.menuInstance=Dr},Ut.addKeyPath=function(Dr){return Object(u.a)(Object(u.a)({},Dr),{},{keyPath:(Dr.keyPath||[]).concat(Ut.props.eventKey)})},Ut.triggerOpenChange=function(Dr,cn){var vn=Ut.props.eventKey,ei=function(){Ut.onOpenChange({key:vn,item:Object(c.a)(Ut),trigger:cn,open:Dr})};cn==="mouseenter"?Ut.mouseenterTimeout=setTimeout(function(){ei()},0):ei()},Ut.isChildrenSelected=function(){var Dr={find:!1};return lt(Ut.props.children,Ut.props.selectedKeys,Dr),Dr.find},Ut.isOpen=function(){return Ut.props.openKeys.indexOf(Ut.props.eventKey)!==-1},Ut.adjustWidth=function(){if(!Ut.subMenuTitle||!Ut.menuInstance)return;var Dr=Ce.findDOMNode(Ut.menuInstance);if(Dr.offsetWidth>=Ut.subMenuTitle.offsetWidth)return;Dr.style.minWidth="".concat(Ut.subMenuTitle.offsetWidth,"px")},Ut.saveSubMenuTitle=function(Dr){Ut.subMenuTitle=Dr},Ut.getBaseProps=function(){var Dr=Object(c.a)(Ut),cn=Dr.props;return{mode:cn.mode==="horizontal"?"vertical":cn.mode,visible:Ut.props.isOpen,level:cn.level+1,inlineIndent:cn.inlineIndent,focusable:!1,onClick:Ut.onSubMenuClick,onSelect:Ut.onSelect,onDeselect:Ut.onDeselect,onDestroy:Ut.onDestroy,selectedKeys:cn.selectedKeys,eventKey:"".concat(cn.eventKey,"-menu-"),openKeys:cn.openKeys,motion:cn.motion,onOpenChange:Ut.onOpenChange,subMenuOpenDelay:cn.subMenuOpenDelay,parentMenu:Object(c.a)(Ut),subMenuCloseDelay:cn.subMenuCloseDelay,forceSubMenuRender:cn.forceSubMenuRender,triggerSubMenuAction:cn.triggerSubMenuAction,builtinPlacements:cn.builtinPlacements,defaultActiveFirst:cn.store.getState().defaultActiveFirst[Ue(cn.eventKey)],multiple:cn.multiple,prefixCls:cn.rootPrefixCls,id:Ut.internalMenuId,manualRef:Ut.saveMenuInstance,itemIcon:cn.itemIcon,expandIcon:cn.expandIcon,direction:cn.direction}},Ut.getMotion=function(Dr,cn){var vn=Object(c.a)(Ut),ei=vn.haveRendered,qn=Ut.props,fi=qn.motion,xi=qn.rootPrefixCls,Ni=Object(u.a)(Object(u.a)({},fi),{},{leavedClassName:"".concat(xi,"-hidden"),removeOnLeave:!1,motionAppear:ei||!cn||Dr!=="inline"});return Ni};var tr=Jt.store,Ft=Jt.eventKey,qt=tr.getState(),Hr=qt.defaultActiveFirst;Ut.isRootMenu=!1;var Nr=!1;return Hr&&(Nr=Hr[Ft]),et(tr,Ft,Nr),Ut}return Object(s.a)(vr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ut=this,tr=this.props,Ft=tr.mode,qt=tr.parentMenu,Hr=tr.manualRef;if(Hr&&Hr(this),Ft!=="horizontal"||!qt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Ut.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Ut=this.props,tr=Ut.onDestroy,Ft=Ut.eventKey;tr&&tr(Ft),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Ut){var tr=this,Ft=this.getBaseProps(),qt=this.getMotion(Ft.mode,Ft.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Ft.visible||Ft.forceSubMenuRender,!this.haveOpened)return e.createElement("div",null);var Hr=Ft.direction;return e.createElement(ye.default,Object.assign({visible:Ft.visible},qt),function(Nr){var Dr=Nr.className,cn=Nr.style,vn=I()("".concat(Ft.prefixCls,"-sub"),Dr,Object(E.a)({},"".concat(Ft.prefixCls,"-rtl"),Hr==="rtl"));return e.createElement(rr,Object.assign({},Ft,{id:tr.internalMenuId,className:vn,style:cn}),Ut)})}},{key:"render",value:function(){var Ut,tr=Object(u.a)({},this.props),Ft=tr.isOpen,qt=this.getPrefixCls(),Hr=tr.mode==="inline",Nr=I()(qt,"".concat(qt,"-").concat(tr.mode),(Ut={},Object(E.a)(Ut,tr.className,!!tr.className),Object(E.a)(Ut,this.getOpenClassName(),Ft),Object(E.a)(Ut,this.getActiveClassName(),tr.active||Ft&&!Hr),Object(E.a)(Ut,this.getDisabledClassName(),tr.disabled),Object(E.a)(Ut,this.getSelectedClassName(),this.isChildrenSelected()),Ut));this.internalMenuId||(tr.eventKey?this.internalMenuId="".concat(tr.eventKey,"$Menu"):(Fe+=1,this.internalMenuId="$__$".concat(Fe,"$Menu")));var Dr={},cn={},vn={};tr.disabled||(Dr={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},cn={onClick:this.onTitleClick},vn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ei={},qn=tr.direction;Hr&&(qn==="rtl"?ei.paddingRight=tr.inlineIndent*tr.level:ei.paddingLeft=tr.inlineIndent*tr.level);var fi={};this.props.isOpen&&(fi={"aria-owns":this.internalMenuId});var xi=null;tr.mode!=="horizontal"&&(xi=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(xi=e.createElement(this.props.expandIcon,Object(u.a)({},this.props))));var Ni=e.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:ei,className:"".concat(qt,"-title"),role:"button"},vn,cn,{"aria-expanded":Ft},fi,{"aria-haspopup":"true",title:typeof tr.title=="string"?tr.title:void 0}),tr.title,xi||e.createElement("i",{className:"".concat(qt,"-arrow")})),Hi=this.renderChildren(tr.children),nt=tr.parentMenu.isRootMenu?tr.parentMenu.props.getPopupContainer:function(Xr){return Xr.parentNode},Ne=mt[tr.mode],He=tr.popupOffset?{offset:tr.popupOffset}:{},Xe=tr.mode==="inline"?"":tr.popupClassName;Xe+=qn==="rtl"?" ".concat(qt,"-rtl"):"";var rt=tr.disabled,Ze=tr.triggerSubMenuAction,st=tr.subMenuOpenDelay,xt=tr.forceSubMenuRender,pt=tr.subMenuCloseDelay,hr=tr.builtinPlacements;pe.forEach(function(Xr){return delete tr[Xr]}),delete tr.onClick;var Zr=qn==="rtl"?Object.assign({},gt,hr):Object.assign({},tt,hr);return delete tr.direction,e.createElement("li",Object.assign({},tr,Dr,{className:Nr,role:"menuitem"}),Hr&&Ni,Hr&&Hi,!Hr&&e.createElement(he.a,{prefixCls:qt,popupClassName:I()("".concat(qt,"-popup"),Xe),getPopupContainer:nt,builtinPlacements:Zr,popupPlacement:Ne,popupVisible:Ft,popupAlign:He,popup:Hi,action:rt?[]:[Ze],mouseEnterDelay:st,mouseLeaveDelay:pt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:xt},Ni))}}]),vr}(e.Component);St.defaultProps={onMouseEnter:Ge,onMouseLeave:Ge,onTitleMouseEnter:Ge,onTitleMouseLeave:Ge,onTitleClick:Ge,manualRef:Ge,mode:"vertical",title:""};var jt=Object(A.b)(function(At,wt){var vr=At.openKeys,Jt=At.activeKey,Ut=At.selectedKeys,tr=wt.eventKey,Ft=wt.subMenuKey;return{isOpen:vr.indexOf(tr)>-1,active:Jt[Ft]===tr,selectedKeys:Ut}})(St);jt.isSubMenu=!0;var Mt=jt,Ot="menuitem-overflowed",Bt=.5,Ke=function(At){Object(h.a)(vr,At);var wt=Object(g.a)(vr);function vr(){var Jt;return Object(r.a)(this,vr),Jt=wt.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,tr=Ce.findDOMNode(Object(c.a)(Jt));return tr?[].slice.call(tr.children).filter(function(Ft){return Ft.className.split(" ").indexOf("".concat(Ut,"-overflowed-submenu"))<0}):[]},Jt.getOverflowedSubMenuItem=function(Ut,tr,Ft){var qt=Jt.props,Hr=qt.overflowedIndicator,Nr=qt.level,Dr=qt.mode,cn=qt.prefixCls,vn=qt.theme;if(Nr!==1||Dr!=="horizontal")return null;var ei=Jt.props.children[0],qn=ei.props,fi=qn.children,xi=qn.title,Ni=qn.style,Hi=Object(we.a)(qn,["children","title","style"]),nt=Object(u.a)({},Ni),Ne="".concat(Ut,"-overflowed-indicator"),He="".concat(Ut,"-overflowed-indicator");tr.length===0&&Ft!==!0?nt=Object(u.a)(Object(u.a)({},nt),{},{display:"none"}):Ft&&(nt=Object(u.a)(Object(u.a)({},nt),{},{visibility:"hidden",position:"absolute"}),Ne="".concat(Ne,"-placeholder"),He="".concat(He,"-placeholder"));var Xe=vn?"".concat(cn,"-").concat(vn):"",rt={};return pe.forEach(function(Ze){Hi[Ze]!==void 0&&(rt[Ze]=Hi[Ze])}),e.createElement(Mt,Object.assign({title:Hr,className:"".concat(cn,"-overflowed-submenu"),popupClassName:Xe},rt,{key:Ne,eventKey:He,disabled:!1,style:nt}),tr)},Jt.setChildrenWidthAndResize=function(){if(Jt.props.mode!=="horizontal")return;var Ut=Ce.findDOMNode(Object(c.a)(Jt));if(!Ut)return;var tr=Ut.children;if(!tr||tr.length===0)return;var Ft=Ut.children[tr.length-1];Y(Ft,"display","inline-block");var qt=Jt.getMenuItemNodes(),Hr=qt.filter(function(Nr){return Nr.className.split(" ").indexOf(Ot)>=0});Hr.forEach(function(Nr){Y(Nr,"display","inline-block")}),Jt.menuItemSizes=qt.map(function(Nr){return J(Nr,!0)}),Hr.forEach(function(Nr){Y(Nr,"display","none")}),Jt.overflowedIndicatorWidth=J(Ut.children[Ut.children.length-1],!0),Jt.originalTotalWidth=Jt.menuItemSizes.reduce(function(Nr,Dr){return Nr+Dr},0),Jt.handleResize(),Y(Ft,"display","none")},Jt.handleResize=function(){if(Jt.props.mode!=="horizontal")return;var Ut=Ce.findDOMNode(Object(c.a)(Jt));if(!Ut)return;var tr=J(Ut);Jt.overflowedItems=[];var Ft=0,qt;Jt.originalTotalWidth>tr+Bt&&(qt=-1,Jt.menuItemSizes.forEach(function(Hr){Ft+=Hr,Ft+Jt.overflowedIndicatorWidth<=tr&&(qt+=1)})),Jt.setState({lastVisibleIndex:qt})},Jt}return Object(s.a)(vr,[{key:"componentDidMount",value:function(){var Ut=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var tr=Ce.findDOMNode(this);if(!tr)return;this.resizeObserver=new _e.default(function(Ft){Ft.forEach(function(){var qt=Ut.cancelFrameId;cancelAnimationFrame(qt),Ut.cancelFrameId=requestAnimationFrame(Ut.setChildrenWidthAndResize)})}),[].slice.call(tr.children).concat(tr).forEach(function(Ft){Ut.resizeObserver.observe(Ft)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Ut.resizeObserver.disconnect(),[].slice.call(tr.children).concat(tr).forEach(function(Ft){Ut.resizeObserver.observe(Ft)}),Ut.setChildrenWidthAndResize()}),this.mutationObserver.observe(tr,{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 tr=this,Ft=this.state.lastVisibleIndex;return(Ut||[]).reduce(function(qt,Hr,Nr){var Dr=Hr;if(tr.props.mode==="horizontal"){var cn=tr.getOverflowedSubMenuItem(Hr.props.eventKey,[]);Ft!==void 0&&tr.props.className.indexOf("".concat(tr.props.prefixCls,"-root"))!==-1&&(Nr>Ft&&(Dr=e.cloneElement(Hr,{style:{display:"none"},eventKey:"".concat(Hr.props.eventKey,"-hidden"),className:"".concat(Ot)})),Nr===Ft+1&&(tr.overflowedItems=Ut.slice(Ft+1).map(function(ei){return e.cloneElement(ei,{key:ei.props.eventKey,mode:"vertical-left"})}),cn=tr.getOverflowedSubMenuItem(Hr.props.eventKey,tr.overflowedItems)));var vn=[].concat(Object(fe.a)(qt),[cn,Dr]);return Nr===Ut.length-1&&vn.push(tr.getOverflowedSubMenuItem(Hr.props.eventKey,[],!0)),vn}return[].concat(Object(fe.a)(qt),[Dr])},[])}},{key:"render",value:function(){var Ut=this.props,tr=Ut.visible,Ft=Ut.prefixCls,qt=Ut.overflowedIndicator,Hr=Ut.mode,Nr=Ut.level,Dr=Ut.tag,cn=Ut.children,vn=Ut.theme,ei=Object(we.a)(Ut,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),qn=Dr;return e.createElement(qn,Object.assign({},ei),this.renderChildren(cn))}}]),vr}(e.Component);Ke.defaultProps={tag:"div",className:""};var de=Ke;function se(At){return At.length?At.every(function(wt){return!!wt.props.disabled}):!0}function ut(At,wt,vr){var Jt=At.getState();At.setState({activeKey:Object(u.a)(Object(u.a)({},Jt.activeKey),{},Object(E.a)({},wt,vr))})}function qe(At){return At.eventKey||"0-menu-"}function me(At,wt){var vr=wt,Jt=At.children,Ut=At.eventKey;if(vr){var tr;if(ae(Jt,function(Ft,qt){Ft&&Ft.props&&!Ft.props.disabled&&vr===ct(Ft,Ut,qt)&&(tr=!0)}),tr)return vr}return vr=null,At.defaultActiveFirst&&ae(Jt,function(Ft,qt){!vr&&Ft&&!Ft.props.disabled&&(vr=ct(Ft,Ut,qt))}),vr}function Wt(At){if(At){var wt=this.instanceArray.indexOf(At);wt!==-1?this.instanceArray[wt]=At:this.instanceArray.push(At)}}var dr=function(At){Object(h.a)(vr,At);var wt=Object(g.a)(vr);function vr(Jt){var Ut;return Object(r.a)(this,vr),Ut=wt.call(this,Jt),Ut.onKeyDown=function(tr,Ft){var qt=tr.keyCode,Hr;if(Ut.getFlatInstanceArray().forEach(function(Dr){Dr&&Dr.props.active&&Dr.onKeyDown&&(Hr=Dr.onKeyDown(tr))}),Hr)return 1;var Nr=null;return(qt===C.a.UP||qt===C.a.DOWN)&&(Nr=Ut.step(qt===C.a.UP?-1:1)),Nr?(tr.preventDefault(),ut(Ut.props.store,qe(Ut.props),Nr.props.eventKey),typeof Ft=="function"&&Ft(Nr),1):void 0},Ut.onItemHover=function(tr){var Ft=tr.key,qt=tr.hover;ut(Ut.props.store,qe(Ut.props),qt?Ft:null)},Ut.onDeselect=function(tr){Ut.props.onDeselect(tr)},Ut.onSelect=function(tr){Ut.props.onSelect(tr)},Ut.onClick=function(tr){Ut.props.onClick(tr)},Ut.onOpenChange=function(tr){Ut.props.onOpenChange(tr)},Ut.onDestroy=function(tr){Ut.props.onDestroy(tr)},Ut.getFlatInstanceArray=function(){return Ut.instanceArray},Ut.step=function(tr){var Ft=Ut.getFlatInstanceArray(),qt=Ut.props.store.getState().activeKey[qe(Ut.props)],Hr=Ft.length;if(!Hr)return null;tr<0&&(Ft=Ft.concat().reverse());var Nr=-1;if(Ft.every(function(ei,qn){return ei&&ei.props.eventKey===qt?(Nr=qn,!1):!0}),!Ut.props.defaultActiveFirst&&Nr!==-1&&se(Ft.slice(Nr,Hr-1)))return;var Dr=(Nr+1)%Hr,cn=Dr;do{var vn=Ft[cn];if(!vn||vn.props.disabled)cn=(cn+1)%Hr;else return vn}while(cn!==Dr);return null},Ut.renderCommonMenuItem=function(tr,Ft,qt){var Hr=Ut.props.store.getState(),Nr=Object(c.a)(Ut),Dr=Nr.props,cn=ct(tr,Dr.eventKey,Ft),vn=tr.props;if(!vn||typeof tr.type=="string")return tr;var ei=cn===Hr.activeKey,qn=Object(u.a)(Object(u.a)({mode:vn.mode||Dr.mode,level:Dr.level,inlineIndent:Dr.inlineIndent,renderMenuItem:Ut.renderMenuItem,rootPrefixCls:Dr.prefixCls,index:Ft,parentMenu:Dr.parentMenu,manualRef:vn.disabled?void 0:Object(_.a)(tr.ref,Wt.bind(Object(c.a)(Ut))),eventKey:cn,active:!vn.disabled&&ei,multiple:Dr.multiple,onClick:function(xi){(vn.onClick||Ge)(xi),Ut.onClick(xi)},onItemHover:Ut.onItemHover,motion:Dr.motion,subMenuOpenDelay:Dr.subMenuOpenDelay,subMenuCloseDelay:Dr.subMenuCloseDelay,forceSubMenuRender:Dr.forceSubMenuRender,onOpenChange:Ut.onOpenChange,onDeselect:Ut.onDeselect,onSelect:Ut.onSelect,builtinPlacements:Dr.builtinPlacements,itemIcon:vn.itemIcon||Ut.props.itemIcon,expandIcon:vn.expandIcon||Ut.props.expandIcon},qt),{},{direction:Dr.direction});return(Dr.mode==="inline"||ee())&&(qn.triggerSubMenuAction="click"),e.cloneElement(tr,qn)},Ut.renderMenuItem=function(tr,Ft,qt){if(!tr)return null;var Hr=Ut.props.store.getState(),Nr={openKeys:Hr.openKeys,selectedKeys:Hr.selectedKeys,triggerSubMenuAction:Ut.props.triggerSubMenuAction,subMenuKey:qt};return Ut.renderCommonMenuItem(tr,Ft,Nr)},Jt.store.setState({activeKey:Object(u.a)(Object(u.a)({},Jt.store.getState().activeKey),{},Object(E.a)({},Jt.eventKey,me(Jt,Jt.activeKey)))}),Ut.instanceArray=[],Ut}return Object(s.a)(vr,[{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||!S()(this.props.style,Ut.style)}},{key:"componentDidUpdate",value:function(Ut){var tr=this.props,Ft="activeKey"in tr?tr.activeKey:tr.store.getState().activeKey[qe(tr)],qt=me(tr,Ft);if(qt!==Ft)ut(tr.store,qe(tr),qt);else if("activeKey"in Ut){var Hr=me(Ut,Ut.activeKey);qt!==Hr&&ut(tr.store,qe(tr),qt)}}},{key:"render",value:function(){var Ut=this,tr=Object(w.a)({},this.props);this.instanceArray=[];var Ft=I()(tr.prefixCls,tr.className,"".concat(tr.prefixCls,"-").concat(tr.mode)),qt={className:Ft,role:tr.role||"menu"};tr.id&&(qt.id=tr.id),tr.focusable&&(qt.tabIndex=0,qt.onKeyDown=this.onKeyDown);var Hr=tr.prefixCls,Nr=tr.eventKey,Dr=tr.visible,cn=tr.level,vn=tr.mode,ei=tr.overflowedIndicator,qn=tr.theme;return pe.forEach(function(fi){return delete tr[fi]}),delete tr.onClick,e.createElement(de,Object.assign({},tr,{prefixCls:Hr,mode:vn,tag:"ul",level:cn,theme:qn,visible:Dr,overflowedIndicator:ei},qt),e.Children.map(tr.children,function(fi,xi){return Ut.renderMenuItem(fi,xi,Nr||"0-menu-")}))}}]),vr}(e.Component);dr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ge};var vt=Object(A.b)()(dr),rr=vt,ur=i("Kwbf");function mn(At,wt,vr){var Jt=At.prefixCls,Ut=At.motion,tr=At.defaultMotions,Ft=tr===void 0?{}:tr,qt=At.openAnimation,Hr=At.openTransitionName,Nr=wt.switchingModeFromInline;if(Ut)return Ut;if(Object(F.a)(qt)==="object"&&qt)Object(ur.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof qt=="string")return{motionName:"".concat(Jt,"-open-").concat(qt)};if(Hr)return{motionName:Hr};var Dr=Ft[vr];return Dr||(Nr?null:Ft.other)}var sr=function(At){Object(h.a)(vr,At);var wt=Object(g.a)(vr);function vr(Jt){var Ut;Object(r.a)(this,vr),Ut=wt.call(this,Jt),Ut.inlineOpenKeys=[],Ut.onSelect=function(qt){var Hr=Object(c.a)(Ut),Nr=Hr.props;if(Nr.selectable){var Dr=Ut.store.getState(),cn=Dr.selectedKeys,vn=qt.key;Nr.multiple?cn=cn.concat([vn]):cn=[vn],"selectedKeys"in Nr||Ut.store.setState({selectedKeys:cn}),Nr.onSelect(Object(u.a)(Object(u.a)({},qt),{},{selectedKeys:cn}))}},Ut.onClick=function(qt){var Hr=Ut.getRealMenuMode(),Nr=Object(c.a)(Ut),Dr=Nr.store,cn=Nr.props.onOpenChange;Hr!=="inline"&&!("openKeys"in Ut.props)&&(Dr.setState({openKeys:[]}),cn([])),Ut.props.onClick(qt)},Ut.onKeyDown=function(qt,Hr){Ut.innerMenu.getWrappedInstance().onKeyDown(qt,Hr)},Ut.onOpenChange=function(qt){var Hr=Object(c.a)(Ut),Nr=Hr.props,Dr=Ut.store.getState().openKeys.concat(),cn=!1,vn=function(qn){var fi=!1;if(qn.open)fi=Dr.indexOf(qn.key)===-1,fi&&Dr.push(qn.key);else{var xi=Dr.indexOf(qn.key);fi=xi!==-1,fi&&Dr.splice(xi,1)}cn=cn||fi};Array.isArray(qt)?qt.forEach(vn):vn(qt),cn&&("openKeys"in Ut.props||Ut.store.setState({openKeys:Dr}),Nr.onOpenChange(Dr))},Ut.onDeselect=function(qt){var Hr=Object(c.a)(Ut),Nr=Hr.props;if(Nr.selectable){var Dr=Ut.store.getState().selectedKeys.concat(),cn=qt.key,vn=Dr.indexOf(cn);vn!==-1&&Dr.splice(vn,1),"selectedKeys"in Nr||Ut.store.setState({selectedKeys:Dr}),Nr.onDeselect(Object(u.a)(Object(u.a)({},qt),{},{selectedKeys:Dr}))}},Ut.onMouseEnter=function(qt){Ut.restoreModeVerticalFromInline();var Hr=Ut.props.onMouseEnter;Hr&&Hr(qt)},Ut.onTransitionEnd=function(qt){var Hr=qt.propertyName==="width"&&qt.target===qt.currentTarget,Nr=qt.target.className,Dr=Object.prototype.toString.call(Nr)==="[object SVGAnimatedString]"?Nr.animVal:Nr,cn=qt.propertyName==="font-size"&&Dr.indexOf("anticon")>=0;(Hr||cn)&&Ut.restoreModeVerticalFromInline()},Ut.setInnerMenu=function(qt){Ut.innerMenu=qt},Ut.isRootMenu=!0;var tr=Jt.defaultSelectedKeys,Ft=Jt.defaultOpenKeys;return"selectedKeys"in Jt&&(tr=Jt.selectedKeys||[]),"openKeys"in Jt&&(Ft=Jt.openKeys||[]),Ut.store=Object(A.c)({selectedKeys:tr,openKeys:Ft,activeKey:{"0-menu-":me(Jt,Jt.activeKey)}}),Ut.state={switchingModeFromInline:!1},Ut}return Object(s.a)(vr,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Ut){this.updateOpentKeysWhenSwitchMode(Ut),this.updateMiniStore();var tr=this.props,Ft=tr.siderCollapsed,qt=tr.inlineCollapsed,Hr=tr.onOpenChange;(!Ut.inlineCollapsed&&qt||!Ut.siderCollapsed&&Ft)&&Hr([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Ut){var tr=this.props,Ft=this.store,qt=this.inlineOpenKeys,Hr=Ft.getState(),Nr={};Ut.mode==="inline"&&tr.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in tr||((tr.inlineCollapsed&&!Ut.inlineCollapsed||tr.siderCollapsed&&!Ut.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Hr.openKeys.concat(),Nr.openKeys=[]),(!tr.inlineCollapsed&&Ut.inlineCollapsed||!tr.siderCollapsed&&Ut.siderCollapsed)&&(Nr.openKeys=qt,this.inlineOpenKeys=[])),Object.keys(Nr).length&&Ft.setState(Nr)}},{key:"updateMenuDisplay",value:function(){var Ut=this.props.collapsedWidth,tr=this.store,Ft=this.prevOpenKeys,qt=this.getInlineCollapsed()&&(Ut===0||Ut==="0"||Ut==="0px");qt?(this.prevOpenKeys=tr.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ft&&(this.store.setState({openKeys:Ft}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Ut=this.props.mode,tr=this.state.switchingModeFromInline,Ft=this.getInlineCollapsed();return tr&&Ft?"inline":Ft?"vertical":Ut}},{key:"getInlineCollapsed",value:function(){var Ut=this.props,tr=Ut.inlineCollapsed,Ft=Ut.siderCollapsed;return Ft!==void 0?Ft:tr}},{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"])),tr=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:tr,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:mn(this.props,this.state,tr)}),delete Ut.openAnimation,delete Ut.openTransitionName,e.createElement(A.a,{store:this.store},e.createElement(rr,Object.assign({},Ut,{ref:this.setInnerMenu}),this.props.children))}}]),vr}(e.Component);sr.defaultProps={selectable:!0,onClick:Ge,onSelect:Ge,onOpenChange:Ge,onDeselect:Ge,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=sr,pr=function(At){Object(h.a)(vr,At);var wt=Object(g.a)(vr);function vr(){var Jt;return Object(r.a)(this,vr),Jt=wt.apply(this,arguments),Jt.onKeyDown=function(Ut){var tr=Ut.keyCode;return tr===C.a.ENTER?(Jt.onClick(Ut),!0):void 0},Jt.onMouseLeave=function(Ut){var tr=Jt.props,Ft=tr.eventKey,qt=tr.onItemHover,Hr=tr.onMouseLeave;qt({key:Ft,hover:!1}),Hr({key:Ft,domEvent:Ut})},Jt.onMouseEnter=function(Ut){var tr=Jt.props,Ft=tr.eventKey,qt=tr.onItemHover,Hr=tr.onMouseEnter;qt({key:Ft,hover:!0}),Hr({key:Ft,domEvent:Ut})},Jt.onClick=function(Ut){var tr=Jt.props,Ft=tr.eventKey,qt=tr.multiple,Hr=tr.onClick,Nr=tr.onSelect,Dr=tr.onDeselect,cn=tr.isSelected,vn={key:Ft,keyPath:[Ft],item:Object(c.a)(Jt),domEvent:Ut};Hr(vn),qt?cn?Dr(vn):Nr(vn):cn||Nr(vn)},Jt.saveNode=function(Ut){Jt.node=Ut},Jt}return Object(s.a)(vr,[{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,tr=Object(u.a)({},this.props),Ft=I()(this.getPrefixCls(),tr.className,(Ut={},Object(E.a)(Ut,this.getActiveClassName(),!tr.disabled&&tr.active),Object(E.a)(Ut,this.getSelectedClassName(),tr.isSelected),Object(E.a)(Ut,this.getDisabledClassName(),tr.disabled),Ut)),qt=Object(u.a)(Object(u.a)({},tr.attribute),{},{title:typeof tr.title=="string"?tr.title:void 0,className:Ft,role:tr.role||"menuitem","aria-disabled":tr.disabled});tr.role==="option"?qt=Object(u.a)(Object(u.a)({},qt),{},{role:"option","aria-selected":tr.isSelected}):(tr.role===null||tr.role==="none")&&(qt.role="none");var Hr={onClick:tr.disabled?null:this.onClick,onMouseLeave:tr.disabled?null:this.onMouseLeave,onMouseEnter:tr.disabled?null:this.onMouseEnter},Nr=Object(u.a)({},tr.style);tr.mode==="inline"&&(tr.direction==="rtl"?Nr.paddingRight=tr.inlineIndent*tr.level:Nr.paddingLeft=tr.inlineIndent*tr.level),pe.forEach(function(cn){return delete tr[cn]}),delete tr.direction;var Dr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Dr=e.createElement(this.props.itemIcon,this.props)),e.createElement("li",Object.assign({},Object(b.default)(tr,["onClick","onMouseEnter","onMouseLeave","onSelect"]),qt,Hr,{style:Nr,ref:this.saveNode}),tr.children,Dr)}}]),vr}(e.Component);pr.isMenuItem=!0,pr.defaultProps={onSelect:Ge,onMouseEnter:Ge,onMouseLeave:Ge,manualRef:Ge};var Zt=Object(A.b)(function(At,wt){var vr=At.activeKey,Jt=At.selectedKeys,Ut=wt.eventKey,tr=wt.subMenuKey;return{active:vr[tr]===Ut,isSelected:Jt.indexOf(Ut)!==-1}})(pr),Ct=Zt,on=function(At){Object(h.a)(vr,At);var wt=Object(g.a)(vr);function vr(){var Jt;return Object(r.a)(this,vr),Jt=wt.apply(this,arguments),Jt.renderInnerMenuItem=function(Ut){var tr=Jt.props,Ft=tr.renderMenuItem,qt=tr.index;return Ft(Ut,qt,Jt.props.subMenuKey)},Jt}return Object(s.a)(vr,[{key:"render",value:function(){var Ut=Object(w.a)({},this.props),tr=Ut.className,Ft=tr===void 0?"":tr,qt=Ut.rootPrefixCls,Hr="".concat(qt,"-item-group-title"),Nr="".concat(qt,"-item-group-list"),Dr=Ut.title,cn=Ut.children;return pe.forEach(function(vn){return delete Ut[vn]}),delete Ut.onClick,delete Ut.direction,e.createElement("li",Object.assign({},Ut,{className:"".concat(Ft," ").concat(qt,"-item-group")}),e.createElement("div",{className:Hr,title:typeof Dr=="string"?Dr:void 0},Dr),e.createElement("ul",{className:Nr},e.Children.map(cn,this.renderInnerMenuItem)))}}]),vr}(e.Component);on.isMenuItemGroup=!0,on.defaultProps={disabled:!0};var Mn=on,Xn=function(wt){var vr=wt.className,Jt=wt.rootPrefixCls,Ut=wt.style;return e.createElement("li",{className:"".concat(vr," ").concat(Jt,"-item-divider"),style:Ut})};Xn.defaultProps={disabled:!0,className:"",style:{}};var oi=Xn,Ui=xr,Un=Object(e.createContext)({inlineCollapsed:!1}),Qn=Un,$t=i("0n0R"),Nt=function(At){n()(vr,At);var wt=a()(vr);function vr(){return f()(this,vr),wt.apply(this,arguments)}return l()(vr,[{key:"renderTitle",value:function(Ut){var tr=this.props,Ft=tr.icon,qt=tr.title,Hr=tr.level,Nr=tr.rootPrefixCls;if(!Ft)return Ut&&Hr===1&&qt&&typeof qt=="string"?e.createElement("div",{className:"".concat(Nr,"-inline-collapsed-noicon")},qt.charAt(0)):qt;var Dr=Object($t.b)(qt)&&qt.type==="span";return e.createElement(e.Fragment,null,Ft,Dr?qt:e.createElement("span",null,qt))}},{key:"render",value:function(){var Ut=this,tr=this.props,Ft=tr.rootPrefixCls,qt=tr.popupClassName;return e.createElement(Qn.Consumer,null,function(Hr){var Nr=Hr.inlineCollapsed,Dr=Hr.antdMenuTheme;return e.createElement(Mt,p()({},Object(b.default)(Ut.props,["icon"]),{title:Ut.renderTitle(Nr),popupClassName:I()(Ft,"".concat(Ft,"-").concat(Dr),qt)}))})}}]),vr}(e.Component);Nt.contextType=Qn,Nt.isSubMenu=1;var Me=Nt,ke=i("Zm9Q"),Be=i("3S7+"),it=i("ZX9x"),yt=function(At,wt){var vr={};for(var Jt in At)Object.prototype.hasOwnProperty.call(At,Jt)&&wt.indexOf(Jt)<0&&(vr[Jt]=At[Jt]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Jt=Object.getOwnPropertySymbols(At);Ut<Jt.length;Ut++)wt.indexOf(Jt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(At,Jt[Ut])&&(vr[Jt[Ut]]=At[Jt[Ut]]);return vr},Tt=function(At){n()(vr,At);var wt=a()(vr);function vr(){var Jt;return f()(this,vr),Jt=wt.apply(this,arguments),Jt.renderItem=function(Ut){var tr=Ut.siderCollapsed,Ft=Jt.props,qt=Ft.level,Hr=Ft.className,Nr=Ft.children,Dr=Ft.rootPrefixCls,cn=Jt.props,vn=cn.title,ei=cn.icon,qn=cn.danger,fi=yt(cn,["title","icon","danger"]);return e.createElement(Qn.Consumer,null,function(xi){var Ni,Hi=xi.inlineCollapsed,nt=xi.direction,Ne=vn;typeof vn=="undefined"?Ne=qt===1?Nr:"":vn===!1&&(Ne="");var He={title:Ne};!tr&&!Hi&&(He.title=null,He.visible=!1);var Xe=Object(ke.a)(Nr).length;return e.createElement(Be.a,p()({},He,{placement:nt==="rtl"?"left":"right",overlayClassName:"".concat(Dr,"-inline-collapsed-tooltip")}),e.createElement(Ct,p()({},fi,{className:I()(Hr,(Ni={},v()(Ni,"".concat(Dr,"-item-danger"),qn),v()(Ni,"".concat(Dr,"-item-only-child"),(ei?Xe+1:Xe)===1),Ni)),title:vn}),ei,Jt.renderItemChildren(Hi)))})},Jt}return l()(vr,[{key:"renderItemChildren",value:function(Ut){var tr=this.props,Ft=tr.icon,qt=tr.children,Hr=tr.level,Nr=tr.rootPrefixCls;return!Ft||Object($t.b)(qt)&&qt.type==="span"?qt&&Ut&&Hr===1&&typeof qt=="string"?e.createElement("div",{className:"".concat(Nr,"-inline-collapsed-noicon")},qt.charAt(0)):qt:e.createElement("span",null,qt)}},{key:"render",value:function(){return e.createElement(it.a.Consumer,null,this.renderItem)}}]),vr}(e.Component);Tt.isMenuItem=!0;var Yt=i("H84U"),Pr=i("uaoM"),$r=i("EXcs"),An=function(At){n()(vr,At);var wt=a()(vr);function vr(Jt){var Ut;return f()(this,vr),Ut=wt.call(this,Jt),Ut.renderMenu=function(tr){var Ft=tr.getPopupContainer,qt=tr.getPrefixCls,Hr=tr.direction,Nr=Ut.props,Dr=Nr.prefixCls,cn=Nr.className,vn=Nr.theme,ei={horizontal:{motionName:"slide-up"},inline:$r.a,other:{motionName:"zoom-big"}},qn=qt("menu",Dr),fi=I()(cn,"".concat(qn,"-").concat(vn),v()({},"".concat(qn,"-inline-collapsed"),Ut.getInlineCollapsed()));return e.createElement(Qn.Provider,{value:{inlineCollapsed:Ut.getInlineCollapsed()||!1,antdMenuTheme:vn,direction:Hr}},e.createElement(Ui,p()({getPopupContainer:Ft},Ut.props,{className:fi,prefixCls:qn,direction:Hr,defaultMotions:ei})))},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()(vr,[{key:"getInlineCollapsed",value:function(){var Ut=this.props,tr=Ut.inlineCollapsed,Ft=Ut.siderCollapsed;return Ft!==void 0?Ft:tr}},{key:"render",value:function(){return e.createElement(Yt.a,null,this.renderMenu)}}]),vr}(e.Component);An.defaultProps={className:"",theme:"light",focusable:!1};var zt=function(At){n()(vr,At);var wt=a()(vr);function vr(){return f()(this,vr),wt.apply(this,arguments)}return l()(vr,[{key:"render",value:function(){var Ut=this;return e.createElement(it.a.Consumer,null,function(tr){return e.createElement(An,p()({},Ut.props,tr))})}}]),vr}(e.Component);zt.Divider=oi,zt.Item=Tt,zt.SubMenu=Me,zt.ItemGroup=Mn},C0SR:function(R,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 x(d){var l=d[1][0]-d[0][0],o=d[1][1]-d[0][1];return Math.sqrt(l*l+o*o)}function v(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=x(t)/x(a);!isFinite(e)&&(e=1),o.pinchScale=e;var u=v(t);return o.pinchX=u[0],o.pinchY=u[1],{type:"pinch",target:l[0].target,event:o}}}},f=p;R.exports=f},C0tN:function(R,D,i){i("0o9m"),i("8Uz6"),i("Ducp"),i("6/nd")},CBdT:function(R,D,i){var y=i("ProS");i("8waO"),i("AEZ6"),i("YNf1");var p=i("q3GZ");y.registerVisual(p)},CF2D:function(R,D,i){var y=i("ProS");i("vZI5"),i("GeKi");var p=i("6r85"),x=i("TJmX"),v=i("CbHG");y.registerPreprocessor(p),y.registerVisual(x),y.registerLayout(v)},CFYs:function(R,D,i){"use strict";var y=i("lSNA"),p=i.n(y),x=i("pVnL"),v=i.n(x),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+"),A=i("V/uB"),b=i.n(A),w=i("NAnI"),E=i.n(w),C=i("J84W"),_=i.n(C),T=i("kbBi"),S=i.n(T),O=i("H84U"),I=i("CWQg"),F=i("uaoM"),P=i("lMfh"),B=i.n(P),k=2,G=.16,M=.05,j=.05,K=.15,z=5,V=4,Q=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function X(Tt,Yt,Pr){var $r;return Math.round(Tt.h)>=60&&Math.round(Tt.h)<=240?$r=Pr?Math.round(Tt.h)-k*Yt:Math.round(Tt.h)+k*Yt:$r=Pr?Math.round(Tt.h)+k*Yt:Math.round(Tt.h)-k*Yt,$r<0?$r+=360:$r>=360&&($r-=360),$r}function te(Tt,Yt,Pr){if(Tt.h===0&&Tt.s===0)return Tt.s;var $r;return Pr?$r=Tt.s-G*Yt:Yt===V?$r=Tt.s+G:$r=Tt.s+M*Yt,$r>1&&($r=1),Pr&&Yt===z&&$r>.1&&($r=.1),$r<.06&&($r=.06),Number($r.toFixed(2))}function $(Tt,Yt,Pr){var $r;return Pr?$r=Tt.v+j*Yt:$r=Tt.v-K*Yt,$r>1&&($r=1),Number($r.toFixed(2))}function le(Tt){for(var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pr=[],$r=B()(Tt),An=z;An>0;An-=1){var zt=$r.toHsv(),At=B()({h:X(zt,An,!0),s:te(zt,An,!0),v:$(zt,An,!0)}).toHexString();Pr.push(At)}Pr.push($r.toHexString());for(var wt=1;wt<=V;wt+=1){var vr=$r.toHsv(),Jt=B()({h:X(vr,wt),s:te(vr,wt),v:$(vr,wt)}).toHexString();Pr.push(Jt)}return Yt.theme==="dark"?Q.map(function(Ut){var tr=Ut.index,Ft=Ut.opacity,qt=B.a.mix(Yt.backgroundColor||"#141414",Pr[tr],Ft*100).toHexString();return qt}):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(Tt){Se[Tt]=le(re[Tt]),Se[Tt].primary=Se[Tt][5],Re[Tt]=le(re[Tt],{theme:"dark",backgroundColor:"#141414"}),Re[Tt].primary=Re[Tt][5]});var Pe=Se.red,Je=Se.volcano,Ge=Se.gold,ct=Se.orange,Ue=Se.yellow,ae=Se.lime,lt=Se.green,pe=Se.cyan,J=Se.blue,Y=Se.geekblue,ee=Se.purple,fe=Se.magenta,we=Se.grey;function Ce(Tt){return!Tt||Tt<0?0:Tt>100?100:Tt}function _e(Tt){var Yt=Tt.success,Pr=Tt.successPercent,$r=Pr;return Yt&&"progress"in Yt&&(Object(F.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),$r=Yt.progress),Yt&&"percent"in Yt&&($r=Yt.percent),$r}var he=function(Tt,Yt){var Pr={};for(var $r in Tt)Object.prototype.hasOwnProperty.call(Tt,$r)&&Yt.indexOf($r)<0&&(Pr[$r]=Tt[$r]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,$r=Object.getOwnPropertySymbols(Tt);An<$r.length;An++)Yt.indexOf($r[An])<0&&Object.prototype.propertyIsEnumerable.call(Tt,$r[An])&&(Pr[$r[An]]=Tt[$r[An]]);return Pr},ye=function(Yt){var Pr=[];return Object.keys(Yt).forEach(function($r){var An=parseFloat($r.replace(/%/g,""));isNaN(An)||Pr.push({key:An,value:Yt[$r]})}),Pr=Pr.sort(function($r,An){return $r.key-An.key}),Pr.map(function($r){var An=$r.key,zt=$r.value;return"".concat(zt," ").concat(An,"%")}).join(", ")},Le=function(Yt){var Pr=Yt.from,$r=Pr===void 0?re.blue:Pr,An=Yt.to,zt=An===void 0?re.blue:An,At=Yt.direction,wt=At===void 0?"to right":At,vr=he(Yt,["from","to","direction"]);if(Object.keys(vr).length!==0){var Jt=ye(vr);return{backgroundImage:"linear-gradient(".concat(wt,", ").concat(Jt,")")}}return{backgroundImage:"linear-gradient(".concat(wt,", ").concat($r,", ").concat(zt,")")}},tt=function(Yt){var Pr=Yt.prefixCls,$r=Yt.percent,An=Yt.strokeWidth,zt=Yt.size,At=Yt.strokeColor,wt=Yt.strokeLinecap,vr=Yt.children,Jt=Yt.trailColor,Ut=Yt.success,tr=At&&typeof At!="string"?Le(At):{background:At},Ft=Jt?{backgroundColor:Jt}:void 0,qt=v()({width:"".concat(Ce($r),"%"),height:An||(zt==="small"?6:8),borderRadius:wt==="square"?0:""},tr),Hr=_e(Yt),Nr={width:"".concat(Ce(Hr),"%"),height:An||(zt==="small"?6:8),borderRadius:wt==="square"?0:"",backgroundColor:Ut==null?void 0:Ut.strokeColor},Dr=Hr!==void 0?r.createElement("div",{className:"".concat(Pr,"-success-bg"),style:Nr}):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(Pr,"-outer")},r.createElement("div",{className:"".concat(Pr,"-inner"),style:Ft},r.createElement("div",{className:"".concat(Pr,"-bg"),style:qt}),Dr)),vr)},gt=tt,at={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)()}),$r=Object(r.useRef)();return Object(r.useEffect)(function(){var An=Date.now(),zt=!1;Object.keys(Pr).forEach(function(At){var wt=Pr[At].current;if(!wt)return;zt=!0;var vr=wt.style;vr.transitionDuration=".3s, .3s, .3s, .06s",$r.current&&An-$r.current<100&&(vr.transitionDuration="0s, 0s")}),zt&&($r.current=Date.now())}),[Pr]};function mt(){return mt=Object.assign||function(Tt){for(var Yt=1;Yt<arguments.length;Yt++){var Pr=arguments[Yt];for(var $r in Pr)Object.prototype.hasOwnProperty.call(Pr,$r)&&(Tt[$r]=Pr[$r])}return Tt},mt.apply(this,arguments)}function et(Tt,Yt){return Bt(Tt)||Ot(Tt,Yt)||jt(Tt,Yt)||St()}function St(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jt(Tt,Yt){if(!Tt)return;if(typeof Tt=="string")return Mt(Tt,Yt);var Pr=Object.prototype.toString.call(Tt).slice(8,-1);if(Pr==="Object"&&Tt.constructor&&(Pr=Tt.constructor.name),Pr==="Map"||Pr==="Set")return Array.from(Tt);if(Pr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pr))return Mt(Tt,Yt)}function Mt(Tt,Yt){(Yt==null||Yt>Tt.length)&&(Yt=Tt.length);for(var Pr=0,$r=new Array(Yt);Pr<Yt;Pr++)$r[Pr]=Tt[Pr];return $r}function Ot(Tt,Yt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Tt)))return;var Pr=[],$r=!0,An=!1,zt=void 0;try{for(var At=Tt[Symbol.iterator](),wt;!($r=(wt=At.next()).done)&&!(Pr.push(wt.value),Yt&&Pr.length===Yt);$r=!0);}catch(vr){An=!0,zt=vr}finally{try{!$r&&At.return!=null&&At.return()}finally{if(An)throw zt}}return Pr}function Bt(Tt){if(Array.isArray(Tt))return Tt}function Ke(Tt,Yt){if(Tt==null)return{};var Pr=de(Tt,Yt),$r,An;if(Object.getOwnPropertySymbols){var zt=Object.getOwnPropertySymbols(Tt);for(An=0;An<zt.length;An++){if($r=zt[An],Yt.indexOf($r)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Tt,$r))continue;Pr[$r]=Tt[$r]}}return Pr}function de(Tt,Yt){if(Tt==null)return{};var Pr={},$r=Object.keys(Tt),An,zt;for(zt=0;zt<$r.length;zt++){if(An=$r[zt],Yt.indexOf(An)>=0)continue;Pr[An]=Tt[An]}return Pr}var se=function(Yt){var Pr=Yt.className,$r=Yt.percent,An=Yt.prefixCls,zt=Yt.strokeColor,At=Yt.strokeLinecap,wt=Yt.strokeWidth,vr=Yt.style,Jt=Yt.trailColor,Ut=Yt.trailWidth,tr=Yt.transition,Ft=Ke(Yt,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Ft.gapPosition;var qt=Array.isArray($r)?$r:[$r],Hr=Array.isArray(zt)?zt:[zt],Nr=Fe(qt),Dr=et(Nr,1),cn=Dr[0],vn=wt/2,ei=100-wt/2,qn="M ".concat(At==="round"?vn:0,",").concat(vn,`
|
|
|
L `).concat(At==="round"?ei:100,",").concat(vn),fi="0 0 100 ".concat(wt),xi=0;return s.a.createElement("svg",mt({className:h()("".concat(An,"-line"),Pr),viewBox:fi,preserveAspectRatio:"none",style:vr},Ft),s.a.createElement("path",{className:"".concat(An,"-line-trail"),d:qn,strokeLinecap:At,stroke:Jt,strokeWidth:Ut||wt,fillOpacity:"0"}),qt.map(function(Ni,Hi){var nt={strokeDasharray:"".concat(Ni,"px, 100px"),strokeDashoffset:"-".concat(xi,"px"),transition:tr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ne=Hr[Hi]||Hr[Hr.length-1];return xi+=Ni,s.a.createElement("path",{key:Hi,className:"".concat(An,"-line-path"),d:qn,strokeLinecap:At,stroke:Ne,strokeWidth:wt,fillOpacity:"0",ref:cn[Hi],style:nt})}))};se.defaultProps=at;var ut=se;function qe(){return qe=Object.assign||function(Tt){for(var Yt=1;Yt<arguments.length;Yt++){var Pr=arguments[Yt];for(var $r in Pr)Object.prototype.hasOwnProperty.call(Pr,$r)&&(Tt[$r]=Pr[$r])}return Tt},qe.apply(this,arguments)}function me(Tt,Yt){return ur(Tt)||rr(Tt,Yt)||dr(Tt,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 dr(Tt,Yt){if(!Tt)return;if(typeof Tt=="string")return vt(Tt,Yt);var Pr=Object.prototype.toString.call(Tt).slice(8,-1);if(Pr==="Object"&&Tt.constructor&&(Pr=Tt.constructor.name),Pr==="Map"||Pr==="Set")return Array.from(Tt);if(Pr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pr))return vt(Tt,Yt)}function vt(Tt,Yt){(Yt==null||Yt>Tt.length)&&(Yt=Tt.length);for(var Pr=0,$r=new Array(Yt);Pr<Yt;Pr++)$r[Pr]=Tt[Pr];return $r}function rr(Tt,Yt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Tt)))return;var Pr=[],$r=!0,An=!1,zt=void 0;try{for(var At=Tt[Symbol.iterator](),wt;!($r=(wt=At.next()).done)&&!(Pr.push(wt.value),Yt&&Pr.length===Yt);$r=!0);}catch(vr){An=!0,zt=vr}finally{try{!$r&&At.return!=null&&At.return()}finally{if(An)throw zt}}return Pr}function ur(Tt){if(Array.isArray(Tt))return Tt}function mn(Tt,Yt){if(Tt==null)return{};var Pr=sr(Tt,Yt),$r,An;if(Object.getOwnPropertySymbols){var zt=Object.getOwnPropertySymbols(Tt);for(An=0;An<zt.length;An++){if($r=zt[An],Yt.indexOf($r)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Tt,$r))continue;Pr[$r]=Tt[$r]}}return Pr}function sr(Tt,Yt){if(Tt==null)return{};var Pr={},$r=Object.keys(Tt),An,zt;for(zt=0;zt<$r.length;zt++){if(An=$r[zt],Yt.indexOf(An)>=0)continue;Pr[An]=Tt[An]}return Pr}var xr=0;function pr(Tt){return+Tt.replace("%","")}function Zt(Tt){return Array.isArray(Tt)?Tt:[Tt]}function Ct(Tt,Yt,Pr,$r){var An=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,zt=arguments.length>5?arguments[5]:void 0,At=50-$r/2,wt=0,vr=-At,Jt=0,Ut=-2*At;switch(zt){case"left":wt=-At,vr=0,Jt=2*At,Ut=0;break;case"right":wt=At,vr=0,Jt=-2*At,Ut=0;break;case"bottom":vr=At,Ut=2*At;break;default:}var tr="M 50,50 m ".concat(wt,",").concat(vr,`
|
|
|
a `).concat(At,",").concat(At," 0 1 1 ").concat(Jt,",").concat(-Ut,`
|
|
|
a `).concat(At,",").concat(At," 0 1 1 ").concat(-Jt,",").concat(Ut),Ft=Math.PI*2*At,qt={stroke:Pr,strokeDasharray:"".concat(Yt/100*(Ft-An),"px ").concat(Ft,"px"),strokeDashoffset:"-".concat(An/2+Tt/100*(Ft-An),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:tr,pathStyle:qt}}var on=function(Yt){var Pr=Yt.prefixCls,$r=Yt.strokeWidth,An=Yt.trailWidth,zt=Yt.gapDegree,At=Yt.gapPosition,wt=Yt.trailColor,vr=Yt.strokeLinecap,Jt=Yt.style,Ut=Yt.className,tr=Yt.strokeColor,Ft=Yt.percent,qt=mn(Yt,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Hr=Object(r.useMemo)(function(){return xr+=1,xr},[]),Nr=Ct(0,100,wt,$r,zt,At),Dr=Nr.pathString,cn=Nr.pathStyle,vn=Zt(Ft),ei=Zt(tr),qn=ei.find(function(nt){return Object.prototype.toString.call(nt)==="[object Object]"}),fi=Fe(vn),xi=me(fi,1),Ni=xi[0],Hi=function(){var Ne=0;return vn.map(function(He,Xe){var rt=ei[Xe]||ei[ei.length-1],Ze=Object.prototype.toString.call(rt)==="[object Object]"?"url(#".concat(Pr,"-gradient-").concat(Hr,")"):"",st=Ct(Ne,He,rt,$r,zt,At);return Ne+=He,s.a.createElement("path",{key:Xe,className:"".concat(Pr,"-circle-path"),d:st.pathString,stroke:Ze,strokeLinecap:vr,strokeWidth:$r,opacity:He===0?0:1,fillOpacity:"0",style:st.pathStyle,ref:Ni[Xe]})})};return s.a.createElement("svg",qe({className:h()("".concat(Pr,"-circle"),Ut),viewBox:"0 0 100 100",style:Jt},qt),qn&&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(qn).sort(function(nt,Ne){return pr(nt)-pr(Ne)}).map(function(nt,Ne){return s.a.createElement("stop",{key:Ne,offset:nt,stopColor:qn[nt]})}))),s.a.createElement("path",{className:"".concat(Pr,"-circle-trail"),d:Dr,stroke:wt,strokeLinecap:vr,strokeWidth:An||$r,fillOpacity:"0",style:cn}),Hi().reverse())};on.defaultProps=at;var Mn=on,Xn={Line:ut,Circle:Mn};function oi(Tt){var Yt=Tt.percent,Pr=Tt.success,$r=Tt.successPercent,An=Ce(Yt),zt=_e({success:Pr,successPercent:$r});return zt?[Ce(zt),Ce(An-Ce(zt))]:An}function Ui(Tt){var Yt=Tt.success,Pr=Tt.strokeColor,$r=Tt.successPercent,An=Pr||null,zt=_e({success:Yt,successPercent:$r});return zt?[re.green,An]:An}var Un=function(Yt){var Pr=Yt.prefixCls,$r=Yt.width,An=Yt.strokeWidth,zt=Yt.trailColor,At=Yt.strokeLinecap,wt=Yt.gapPosition,vr=Yt.gapDegree,Jt=Yt.type,Ut=Yt.children,tr=$r||120,Ft={width:tr,height:tr,fontSize:tr*.15+6},qt=An||6,Hr=wt||Jt==="dashboard"&&"bottom"||"top",Nr=function(){return vr||vr===0?vr:Jt==="dashboard"?75:void 0},Dr=Ui(Yt),cn=Object.prototype.toString.call(Dr)==="[object Object]",vn=h()("".concat(Pr,"-inner"),p()({},"".concat(Pr,"-circle-gradient"),cn));return r.createElement("div",{className:vn,style:Ft},r.createElement(Mn,{percent:oi(Yt),strokeWidth:qt,trailWidth:qt,strokeColor:Dr,strokeLinecap:At,trailColor:zt,prefixCls:Pr,gapDegree:Nr(),gapPosition:Hr}),Ut)},Qn=Un,$t=function(Yt){for(var Pr=Yt.size,$r=Yt.steps,An=Yt.percent,zt=An===void 0?0:An,At=Yt.strokeWidth,wt=At===void 0?8:At,vr=Yt.strokeColor,Jt=Yt.trailColor,Ut=Yt.prefixCls,tr=Yt.children,Ft=Math.floor($r*(zt/100)),qt=Pr==="small"?2:14,Hr=[],Nr=0;Nr<$r;Nr+=1)Hr.push(r.createElement("div",{key:Nr,className:h()("".concat(Ut,"-steps-item"),p()({},"".concat(Ut,"-steps-item-active"),Nr<=Ft-1)),style:{backgroundColor:Nr<=Ft-1?vr:Jt,width:qt,height:wt}}));return r.createElement("div",{className:"".concat(Ut,"-steps-outer")},Hr,tr)},Nt=$t,Me=function(Tt,Yt){var Pr={};for(var $r in Tt)Object.prototype.hasOwnProperty.call(Tt,$r)&&Yt.indexOf($r)<0&&(Pr[$r]=Tt[$r]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,$r=Object.getOwnPropertySymbols(Tt);An<$r.length;An++)Yt.indexOf($r[An])<0&&Object.prototype.propertyIsEnumerable.call(Tt,$r[An])&&(Pr[$r[An]]=Tt[$r[An]]);return Pr},ke=Object(I.a)("line","circle","dashboard"),Be=Object(I.a)("normal","exception","active","success"),it=function(Tt){a()(Pr,Tt);var Yt=u()(Pr);function Pr(){var $r;return f()(this,Pr),$r=Yt.apply(this,arguments),$r.renderProgress=function(An){var zt,At=An.getPrefixCls,wt=An.direction,vr=n()($r),Jt=vr.props,Ut=Jt.prefixCls,tr=Jt.className,Ft=Jt.size,qt=Jt.type,Hr=Jt.steps,Nr=Jt.showInfo,Dr=Jt.strokeColor,cn=Me(Jt,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),vn=At("progress",Ut),ei=$r.getProgressStatus(),qn=$r.renderProcessInfo(vn,ei);Object(F.a)(!("successPercent"in Jt),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var fi;qt==="line"?fi=Hr?r.createElement(Nt,v()({},$r.props,{strokeColor:typeof Dr=="string"?Dr:void 0,prefixCls:vn,steps:Hr}),qn):r.createElement(gt,v()({},$r.props,{prefixCls:vn}),qn):(qt==="circle"||qt==="dashboard")&&(fi=r.createElement(Qn,v()({},$r.props,{prefixCls:vn,progressStatus:ei}),qn));var xi=h()(vn,(zt={},p()(zt,"".concat(vn,"-").concat(qt==="dashboard"&&"circle"||Hr&&"steps"||qt),!0),p()(zt,"".concat(vn,"-status-").concat(ei),!0),p()(zt,"".concat(vn,"-show-info"),Nr),p()(zt,"".concat(vn,"-").concat(Ft),Ft),p()(zt,"".concat(vn,"-rtl"),wt==="rtl"),zt),tr);return r.createElement("div",v()({},Object(g.default)(cn,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:xi}),fi)},$r}return l()(Pr,[{key:"getPercentNumber",value:function(){var An=this.props.percent,zt=An===void 0?0:An,At=_e(this.props);return parseInt(At!==void 0?At.toString():zt.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,zt){var At=this.props,wt=At.showInfo,vr=At.format,Jt=At.type,Ut=At.percent,tr=_e(this.props);if(!wt)return null;var Ft,qt=vr||function(Nr){return"".concat(Nr,"%")},Hr=Jt==="line";return vr||zt!=="exception"&&zt!=="success"?Ft=qt(Ce(Ut),Ce(tr)):zt==="exception"?Ft=Hr?r.createElement(S.a,null):r.createElement(b.a,null):zt==="success"&&(Ft=Hr?r.createElement(_.a,null):r.createElement(E.a,null)),r.createElement("span",{className:"".concat(An,"-text"),title:typeof Ft=="string"?Ft:void 0},Ft)}},{key:"render",value:function(){return r.createElement(O.a,null,this.renderProgress)}}]),Pr}(r.Component);it.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var yt=D.a=it},CH3K:function(R,D){function i(y,p){for(var x=-1,v=p.length,m=y.length;++x<v;)y[m+x]=p[x];return y}R.exports=i},"CMP+":function(R,D,i){var y=i("bYtY"),p=i("hM6l"),x=function(m,f,d,l){p.call(this,m,f,d),this.type=l||"value",this.model=null};x.prototype={constructor:x,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},y.inherits(x,p);var v=x;R.exports=v},CP8R:function(R,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(R,D,i){},CbHG:function(R,D,i){var y=i("IwbS"),p=y.subPixelOptimize,x=i("zM3Q"),v=i("OELB"),m=v.parsePercent,f=i("bYtY"),d=f.retrieve2,l=typeof Float32Array!="undefined"?Float32Array:Array,o={seriesType:"candlestick",plan:x(),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]),A=u.mapDimension(h[c],!0),b=A[0],w=A[1],E=A[2],C=A[3];if(u.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),g==null||A.length<4)return;return{progress:a.pipelineContext.large?T:_};function _(S,O){for(var I;(I=S.next())!=null;){var F=O.get(g,I),P=O.get(b,I),B=O.get(w,I),k=O.get(E,I),G=O.get(C,I),M=Math.min(P,B),j=Math.max(P,B),K=te(M,F),z=te(j,F),V=te(k,F),Q=te(G,F),X=[];$(X,z,0),$(X,K,1),X.push(re(Q),re(z),re(V),re(K)),O.setItemLayout(I,{sign:n(O,I,P,B,w),initBaseline:P>B?z[c]:K[c],ends:X,brushRect:le(k,G,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(),Ge=Re.slice();Je[s]=p(Je[s]+r/2,1,!1),Ge[s]=p(Ge[s]-r/2,1,!0),Pe?Se.push(Je,Ge):Se.push(Ge,Je)}function le(Se,Re,Pe){var Je=te(Se,Pe),Ge=te(Re,Pe);return Je[s]-=r/2,Ge[s]-=r/2,{x:Je[0],y:Je[1],width:c?r:Ge[0]-Je[0],height:c?Ge[1]-Je[1]:r}}function re(Se){return Se[s]=p(Se[s],1),Se}}function T(S,O){for(var I=new l(S.count*4),F=0,P,B=[],k=[],G;(G=S.next())!=null;){var M=O.get(g,G),j=O.get(b,G),K=O.get(w,G),z=O.get(E,G),V=O.get(C,G);if(isNaN(M)||isNaN(z)||isNaN(V)){I[F++]=NaN,F+=3;continue}I[F++]=n(O,G,j,K,w),B[s]=M,B[c]=z,P=e.dataToPoint(B,null,k),I[F++]=P?P[0]:NaN,I[F++]=P?P[1]:NaN,B[c]=V,P=e.dataToPoint(B,null,k),I[F++]=P?P[1]:NaN}O.setLayout("largePoints",I)}}};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)}R.exports=o},CiB2:function(R,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(R,D,i){i("5NHt"),i("f3JH")},CrYA:function(R,D,i){var y=i("MFOe"),p=y.Global;R.exports={name:"sessionStorage",read:v,write:m,each:f,remove:d,clearAll:l};function x(){return p.sessionStorage}function v(o){return x().getItem(o)}function m(o,n){return x().setItem(o,n)}function f(o){for(var n=x().length-1;n>=0;n--){var t=x().key(n);o(v(t),t)}}function d(o){return x().removeItem(o)}function l(){return x().clear()}},Csr3:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("4vCz"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},Cwc5:function(R,D,i){var y=i("NKxu"),p=i("Npjl");function x(v,m){var f=p(v,m);return y(f)?f:void 0}R.exports=x},D1Df:function(R,D,i){"use strict";function y(B){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(G){return typeof G}:y=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},y(B)}function p(){return p=Object.assign||function(B){for(var k=1;k<arguments.length;k++){var G=arguments[k];for(var M in G)Object.prototype.hasOwnProperty.call(G,M)&&(B[M]=G[M])}return B},p.apply(this,arguments)}function x(B,k){var G=Object.keys(B);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(B);k&&(M=M.filter(function(j){return Object.getOwnPropertyDescriptor(B,j).enumerable})),G.push.apply(G,M)}return G}function v(B){for(var k=1;k<arguments.length;k++){var G=arguments[k]!=null?arguments[k]:{};k%2?x(G,!0).forEach(function(M){r(B,M,G[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(G)):x(G).forEach(function(M){Object.defineProperty(B,M,Object.getOwnPropertyDescriptor(G,M))})}return B}function m(B,k){if(B==null)return{};var G=f(B,k),M,j;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(B);for(j=0;j<K.length;j++){if(M=K[j],k.indexOf(M)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(B,M))continue;G[M]=B[M]}}return G}function f(B,k){if(B==null)return{};var G={},M=Object.keys(B),j,K;for(K=0;K<M.length;K++){if(j=M[K],k.indexOf(j)>=0)continue;G[j]=B[j]}return G}function d(B,k){if(!(B instanceof k))throw new TypeError("Cannot call a class as a function")}function l(B,k){for(var G=0;G<k.length;G++){var M=k[G];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(B,M.key,M)}}function o(B,k,G){return k&&l(B.prototype,k),G&&l(B,G),B}function n(B,k){return k&&(y(k)==="object"||typeof k=="function")?k:a(B)}function t(B){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},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,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(k&&k.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),k&&u(B,k)}function u(B,k){return u=Object.setPrototypeOf||function(M,j){return M.__proto__=j,M},u(B,k)}function r(B,k,G){return k in B?Object.defineProperty(B,k,{value:G,enumerable:!0,configurable:!0,writable:!0}):B[k]=G,B}var s=i("q1tI"),c=i("17x9"),h=i("H38U"),g=i("aRTE");function A(B){for(var k="",G=0;G<B.length;G++){var M=B.charCodeAt(G);M<128?k+=String.fromCharCode(M):M<2048?(k+=String.fromCharCode(192|M>>6),k+=String.fromCharCode(128|M&63)):M<55296||M>=57344?(k+=String.fromCharCode(224|M>>12),k+=String.fromCharCode(128|M>>6&63),k+=String.fromCharCode(128|M&63)):(G++,M=65536+((M&1023)<<10|B.charCodeAt(G)&1023),k+=String.fromCharCode(240|M>>18),k+=String.fromCharCode(128|M>>12&63),k+=String.fromCharCode(128|M>>6&63),k+=String.fromCharCode(128|M&63))}return k}var b={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},w={},E=4,C=.1;function _(B){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,G=[];return B.forEach(function(M,j){var K=null;M.forEach(function(z,V){if(!z&&K!==null){G.push("M".concat(K+k," ").concat(j+k,"h").concat(V-K,"v1H").concat(K+k,"z")),K=null;return}if(V===M.length-1){if(!z)return;K===null?G.push("M".concat(V+k,",").concat(j+k," h1v1H").concat(V+k,"z")):G.push("M".concat(K+k,",").concat(j+k," h").concat(V+1-K,"v1H").concat(K+k,"z"));return}z&&K===null&&(K=V)})}),G.join("")}function T(B,k){return B.slice().map(function(G,M){return M<k.y||M>=k.y+k.h?G:G.map(function(j,K){return K<k.x||K>=k.x+k.w?j:!1})})}function S(B,k){var G=B.imageSettings,M=B.size,j=B.includeMargin;if(G==null)return null;var K=j?E:0,z=k.length+K*2,V=Math.floor(M*C),Q=z/M,X=(G.width||V)*Q,te=(G.height||V)*Q,$=G.x==null?k.length/2-X/2:G.x*Q,le=G.y==null?k.length/2-te/2:G.y*Q,re=null;if(G.excavate){var Se=Math.floor($),Re=Math.floor(le),Pe=Math.ceil(X+$-Se),Je=Math.ceil(te+le-Re);re={x:Se,y:Re,w:Pe,h:Je}}return{x:$,y:le,h:te,w:X,excavation:re}}var O=function(){try{new Path2D().addPath(new Path2D)}catch(B){return!1}return!0}(),I=function(B){e(k,B);function k(){var G,M;d(this,k);for(var j=arguments.length,K=new Array(j),z=0;z<j;z++)K[z]=arguments[z];return M=n(this,(G=t(k)).call.apply(G,[this].concat(K))),r(a(M),"_canvas",void 0),r(a(M),"_image",void 0),r(a(M),"state",{imgLoaded:!1}),r(a(M),"handleImageLoad",function(){M.setState({imgLoaded:!0})}),M}return o(k,[{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var M=this.props,j=M.value,K=M.size,z=M.level,V=M.bgColor,Q=M.fgColor,X=M.includeMargin,te=M.imageSettings,$=new h(-1,g[z]);if($.addData(A(j)),$.make(),this._canvas!=null){var le=this._canvas,re=le.getContext("2d");if(!re)return;var Se=$.modules;if(Se===null)return;var Re=X?E:0,Pe=Se.length+Re*2,Je=S(this.props,Se);te!=null&&Je!=null&&(Je.excavation!=null&&(Se=T(Se,Je.excavation)));var Ge=window.devicePixelRatio||1;le.height=le.width=K*Ge;var ct=K/Pe*Ge;re.scale(ct,ct),re.fillStyle=V,re.fillRect(0,0,Pe,Pe),re.fillStyle=Q,O?re.fill(new Path2D(_(Se,Re))):Se.forEach(function(Ue,ae){Ue.forEach(function(lt,pe){lt&&re.fillRect(pe+Re,ae+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 M=this,j=this.props,K=j.value,z=j.size,V=j.level,Q=j.bgColor,X=j.fgColor,te=j.style,$=j.includeMargin,le=j.imageSettings,re=m(j,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),Se=v({height:z,width:z},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(Ge){return M._image=Ge}})),s.createElement(s.Fragment,null,s.createElement("canvas",p({style:Se,height:z,width:z,ref:function(Ge){return M._canvas=Ge}},re)),Re)}}]),k}(s.PureComponent);r(I,"defaultProps",b);var F=function(B){e(k,B);function k(){return d(this,k),n(this,t(k).apply(this,arguments))}return o(k,[{key:"render",value:function(){var M=this.props,j=M.value,K=M.size,z=M.level,V=M.bgColor,Q=M.fgColor,X=M.includeMargin,te=M.imageSettings,$=m(M,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),le=new h(-1,g[z]);le.addData(A(j)),le.make();var re=le.modules;if(re===null)return null;var Se=X?E:0,Re=re.length+Se*2,Pe=S(this.props,re),Je=null;te!=null&&Pe!=null&&(Pe.excavation!=null&&(re=T(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 Ge=_(re,Se);return s.createElement("svg",p({shapeRendering:"crispEdges",height:K,width:K,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:Ge}),Je)}}]),k}(s.PureComponent);r(F,"defaultProps",b);var P=function(k){var G=k.renderAs,M=m(k,["renderAs"]),j=G==="svg"?F:I;return s.createElement(j,M)};P.defaultProps=v({renderAs:"canvas"},b),R.exports=P},D1WM:function(R,D,i){var y=i("bYtY"),p=i("hM6l"),x=function(m,f,d,l,o){p.call(this,m,f,d),this.type=l||"value",this.axisIndex=o};x.prototype={constructor:x,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},y.inherits(x,p);var v=x;R.exports=v},D5nY:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("4NO4"),v=x.makeInner,m=x.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,A=h.SOURCE_FORMAT_ARRAY_ROWS,b=h.SOURCE_FORMAT_OBJECT_ROWS,w=h.SOURCE_FORMAT_KEYED_COLUMNS,E=h.SOURCE_FORMAT_UNKNOWN,C=h.SOURCE_FORMAT_TYPED_ARRAY,_=h.SERIES_LAYOUT_BY_ROW,T={Must:1,Might:2,Not:3},S=v();function O(X){var te=X.option.source,$=E;if(e(te))$=C;else if(n(te)){te.length===0&&($=A);for(var le=0,re=te.length;le<re;le++){var Se=te[le];if(Se==null)continue;if(n(Se)){$=A;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");S(X).sourceFormat=$}function I(X){return S(X).source}function F(X){S(X).datasetMap=d()}function P(X){var te=X.option,$=te.data,le=e($)?C:g,re=!1,Se=te.seriesLayoutBy,Re=te.sourceHeader,Pe=te.dimensions,Je=z(X);if(Je){var Ge=Je.option;$=Ge.source,le=S(Je).sourceFormat,re=!0,Se=Se||Ge.seriesLayoutBy,Re==null&&(Re=Ge.sourceHeader),Pe=Pe||Ge.dimensions}var ct=B($,le,Se,Re,Pe);S(X).source=new c({data:$,fromDataset:re,seriesLayoutBy:Se,sourceFormat:le,dimensionsDefine:ct.dimensionsDefine,startIndex:ct.startIndex,dimensionsDetectCount:ct.dimensionsDetectCount,encodeDefine:te.encode})}function B(X,te,$,le,re){if(!X)return{dimensionsDefine:k(re)};var Se,Re;if(te===A)le==="auto"||le==null?G(function(Je){Je!=null&&Je!=="-"&&(t(Je)?Re==null&&(Re=1):Re=0)},$,X,10):Re=le?1:0,!re&&Re===1&&(re=[],G(function(Je,Ge){re[Ge]=Je!=null?Je:""},$,X)),Se=re?re.length:$===_?X.length:X[0]?X[0].length:null;else if(te===b)re||(re=M(X));else if(te===w)re||(re=[],l(X,function(Je,Ge){re.push(Ge)}));else if(te===g){var Pe=m(X[0]);Se=n(Pe)&&Pe.length||1}else te===C;return{startIndex:Re,dimensionsDefine:k(re),dimensionsDetectCount:Se}}function k(X){if(!X)return;var te=d();return o(X,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 G(X,te,$,le){if(le==null&&(le=Infinity),te===_)for(var re=0;re<$.length&&re<le;re++)X($[re]?$[re][0]:null,re);else for(var Se=$[0]||[],re=0;re<Se.length&&re<le;re++)X(Se[re],re)}function M(X){for(var te=0,$;te<X.length&&!($=X[te++]););if($){var le=[];return l($,function(re,Se){le.push(Se)}),le}}function j(X,te,$){var le={},re=z(te);if(!re||!X)return le;var Se=[],Re=[],Pe=te.ecModel,Je=S(Pe).datasetMap,Ge=re.uid+"_"+$.seriesLayoutBy,ct,Ue;X=X.slice(),l(X,function(J,Y){!a(J)&&(X[Y]={name:J}),J.type==="ordinal"&&ct==null&&(ct=Y,Ue=pe(X[Y])),le[J.name]=[]});var ae=Je.get(Ge)||Je.set(Ge,{categoryWayDim:Ue,valueWayDim:0});l(X,function(J,Y){var ee=J.name,fe=pe(J);if(ct==null){var we=ae.valueWayDim;lt(le[ee],we,fe),lt(Re,we,fe),ae.valueWayDim+=fe}else if(ct===Y)lt(le[ee],0,fe),lt(Se,0,fe);else{var we=ae.categoryWayDim;lt(le[ee],we,fe),lt(Re,we,fe),ae.categoryWayDim+=fe}});function lt(J,Y,ee){for(var fe=0;fe<ee;fe++)J.push(Y+fe)}function pe(J){var Y=J.dimsDef;return Y?Y.length:1}return Se.length&&(le.itemName=Se),Re.length&&(le.seriesName=Re),le}function K(X,te,$){var le={},re=z(X);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={},ae=[],lt=0,pe=Math.min(5,$);lt<pe;lt++){var J=Q(te.data,Se,te.seriesLayoutBy,Re,te.startIndex,lt);ae.push(J);var Y=J===T.Not;if(Y&&ct.v==null&<!==Pe&&(ct.v=lt),(ct.n==null||ct.n===ct.v||!Y&&ae[ct.n]===T.Not)&&(ct.n=lt),ee(ct)&&ae[ct.n]!==T.Not)return ct;Y||(J===T.Might&&Ue.v==null&<!==Pe&&(Ue.v=lt),(Ue.n==null||Ue.n===Ue.v)&&(Ue.n=lt))}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 Ge=Pe!=null?Pe:Je.n;le.itemName=[Ge],le.seriesName=[Ge]}return le}function z(X){var te=X.option,$=te.data;if(!$)return X.ecModel.getComponent("dataset",te.datasetIndex||0)}function V(X,te){return Q(X.data,X.sourceFormat,X.seriesLayoutBy,X.dimensionsDefine,X.startIndex,te)}function Q(X,te,$,le,re,Se){var Re,Pe=5;if(e(X))return T.Not;var Je,Ge;if(le){var ct=le[Se];a(ct)?(Je=ct.name,Ge=ct.type):t(ct)&&(Je=ct)}if(Ge!=null)return Ge==="ordinal"?T.Must:T.Not;if(te===A)if($===_){for(var Ue=X[Se],ae=0;ae<(Ue||[]).length&&ae<Pe;ae++)if((Re=Y(Ue[re+ae]))!=null)return Re}else for(var ae=0;ae<X.length&&ae<Pe;ae++){var lt=X[re+ae];if(lt&&(Re=Y(lt[Se]))!=null)return Re}else if(te===b){if(!Je)return T.Not;for(var ae=0;ae<X.length&&ae<Pe;ae++){var pe=X[ae];if(pe&&(Re=Y(pe[Je]))!=null)return Re}}else if(te===w){if(!Je)return T.Not;var Ue=X[Je];if(!Ue||e(Ue))return T.Not;for(var ae=0;ae<Ue.length&&ae<Pe;ae++)if((Re=Y(Ue[ae]))!=null)return Re}else if(te===g)for(var ae=0;ae<X.length&&ae<Pe;ae++){var pe=X[ae],J=m(pe);if(!n(J))return T.Not;if((Re=Y(J[Se]))!=null)return Re}function Y(ee){var fe=t(ee);if(ee!=null&&isFinite(ee)&&ee!=="")return fe?T.Might:T.Not;if(fe&&ee!=="-")return T.Must}return T.Not}D.BE_ORDINAL=T,D.detectSourceFormat=O,D.getSource=I,D.resetSourceDefaulter=F,D.prepareSource=P,D.makeSeriesEncodeForAxisCoordSys=j,D.makeSeriesEncodeForNameBased=K,D.guessOrdinal=V},D9ME:function(R,D,i){var y=i("IwbS"),p=i("fls0"),x=i("bYtY"),v=i("oVpE"),m=v.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");x.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"),A=x.retrieve(a.get("delay"),function(C){return C/t.count()*c/3}),b=typeof A=="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=A;b&&(w=A(e)),u.__t>0&&(w=-c*u.__t),u.__t=0;var E=u.animate("",h).when(c,{__t:1}).delay(w).during(function(){r.updateSymbolPosition(u)});h||E.done(function(){r.remove(u)}),E.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 A=g(a[0],u[0],e[0],r),b=g(a[1],u[1],e[1],r);if(t.rotation=-Math.atan2(b,A)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(t.__lastT!==void 0&&t.__lastT<t.__t){var 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)},x.inherits(l,y.Group);var n=l;R.exports=n},DBLp:function(R,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 A=-1*a;A<=a;A+=2){var b,w=u[A-1],E=u[A+1],C=(E?E.newPos:0)-A;w&&(u[A-1]=void 0);var _=w&&w.newPos+1<n,T=E&&0<=C&&C<t;if(!_&&!T){u[A]=void 0;continue}if(!_||T&&w.newPos<E.newPos?(b=p(E),o.pushComponent(b.components,void 0,!0)):(b=w,b.newPos++,o.pushComponent(b.components,!0,void 0)),C=o.extractCommon(b,d,f,A),b.newPos+1>=n&&C+1>=t)return y(o,b.components,d,f);u[A]=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 x=new i;function v(m,f,d){return x.diff(m,f,d)}R.exports=v},DEFe:function(R,D,i){var y=i("bYtY"),p=i("SgGq"),x=i("Ae+d"),v=i("xSat"),m=v.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,A){h.off("click"),h.off("mousedown"),c.get("selectedMode")&&(h.on("mousedown",function(){s._mouseDownFlag=!0}),h.on("click",function(b){if(!s._mouseDownFlag)return;s._mouseDownFlag=!1;for(var w=b.target;!w.__regions;)w=w.parent;if(!w)return;var E={type:(c.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:y.map(w.__regions,function(C){return{name:C.name,from:A.uid}})};E[c.mainType+"Id"]=c.id,g.dispatchAction(E),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,A){var b=s.mainType==="geo",w=s.getData&&s.getData();b&&c.eachComponent({mainType:"series",subType:"map"},function(z){!w&&z.getHostGeoModel()===s&&(w=z.getData())});var E=s.coordinateSystem;this._updateBackground(E);var C=this._regionsGroup,_=this.group,T=E.getTransformInfo(),S=!C.childAt(0)||A,O;if(S)_.transform=T.roamTransform,_.decomposeTransform(),_.dirty();else{var I=new n;I.transform=T.roamTransform,I.decomposeTransform();var F={scale:I.scale,position:I.position};O=I.scale,f.updateProps(_,F,s)}var P=T.rawScale,B=T.rawPosition;C.removeAll();var k=["itemStyle"],G=["emphasis","itemStyle"],M=["label"],j=["emphasis","label"],K=y.createHashMap();y.each(E.regions,function(z){var V=K.get(z.name)||K.set(z.name,new f.Group),Q=new f.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});V.add(Q);var X=s.getRegionModel(z.name)||s,te=X.getModel(k),$=X.getModel(G),le=t(te),re=t($),Se=X.getModel(M),Re=X.getModel(j),Pe;if(w){Pe=w.indexOfName(z.name);var Je=w.getItemVisual(Pe,"color",!0);Je&&(le.fill=Je)}var Ge=function(we){return[we[0]*P[0]+B[0],we[1]*P[1]+B[1]]};y.each(z.geometries,function(we){if(we.type!=="polygon")return;for(var Ce=[],_e=0;_e<we.exterior.length;++_e)Ce.push(Ge(we.exterior[_e]));Q.shape.paths.push(new f.Polygon({segmentIgnoreThreshold:1,shape:{points:Ce}}));for(var _e=0;_e<(we.interiors?we.interiors.length:0);++_e){for(var he=we.interiors[_e],Ce=[],ye=0;ye<he.length;++ye)Ce.push(Ge(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"),ae=w&&isNaN(w.get(w.mapDimension("value"),Pe)),lt=w&&w.getItemLayout(Pe);if(b||ae&&(ct||Ue)||lt&<.showLabel){var pe=b?z.name:Pe,J;(!w||Pe>=0)&&(J=s);var Y=new f.Text({position:Ge(z.center.slice()),scale:[1/_.scale[0],1/_.scale[1]],z2:10,silent:!0});if(f.setLabelStyle(Y.style,Y.hoverStyle={},Se,Re,{labelFetcher:J,labelDataIndex:pe,defaultText:z.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!S){var ee=[1/O[0],1/O[1]];f.updateProps(Y,{scale:ee},s)}V.add(Y)}if(w)w.setItemGraphicEl(Pe,V);else{var X=s.getRegionModel(z.name);Q.eventData={componentType:"geo",componentIndex:s.componentIndex,geoIndex:s.componentIndex,name:z.name,region:X&&X.option||{}}}var fe=V.__regions||(V.__regions=[]);fe.push(z),V.highDownSilentOnTouch=!!s.get("selectedMode"),f.setHoverStyle(V,re),C.add(V)}),this._updateController(s,c,h),a(this,s,C,h,g),e(s,C)},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,A=this._controller,b=this._controllerHost;b.zoomLimit=s.get("scaleLimit"),b.zoom=g.getZoom(),A.enable(s.get("roam")||!1);var w=s.mainType;function E(){var C={type:"geoRoam",componentType:w};return C[w+"Id"]=s.id,C}A.off("pan").on("pan",function(C){this._mouseDownFlag=!1,x.updateViewOnPan(b,C.dx,C.dy),h.dispatchAction(y.extend(E(),{dx:C.dx,dy:C.dy}))},this),A.off("zoom").on("zoom",function(C){if(this._mouseDownFlag=!1,x.updateViewOnZoom(b,C.scale,C.originX,C.originY),h.dispatchAction(y.extend(E(),{zoom:C.scale,originX:C.originX,originY:C.originY})),this._updateGroup){var _=this.group.scale;this._regionsGroup.traverse(function(T){T.type==="text"&&T.attr("scale",[1/_[0],1/_[1]])})}},this),A.setPointerChecker(function(C,_,T){return g.getViewRectAfterRoam().contain(_,T)&&!m(C,h,s)})}};var r=u;R.exports=r},DFOY:function(R,D,i){"use strict";var y=i("pVnL"),p=i.n(y),x=i("lSNA"),v=i.n(x),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"),A=i("JX7q"),b=i("Ji7U"),w=i("LK+K"),E=i("i8i4"),C=i.n(E),_=i("l4aY"),T=i("m+aA"),S=i("c+Xe"),O=i("zT1h"),I=i("QC+M"),F=i("TSYQ"),P=i.n(F);function B(Xt,It,Pt){return Pt?Xt[0]===It[0]:Xt[0]===It[0]&&Xt[1]===It[1]}function k(Xt,It,Pt){var Kt=Xt[It]||{};return Object(c.a)(Object(c.a)({},Kt),Pt)}function G(Xt,It,Pt,Kt){for(var Gt=Pt.points,Dt=Object.keys(Xt),lr=0;lr<Dt.length;lr+=1){var Ar=Dt[lr];if(B(Xt[Ar].points,Gt,Kt))return"".concat(It,"-placement-").concat(Ar)}return""}var M=i("Ff2n"),j=i("xEkU"),K=i.n(j),z=i("9mu1"),V=i("rePB"),Q=i("U8pU"),X=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function te(Xt,It){var Pt={};return Pt[Xt.toLowerCase()]=It.toLowerCase(),Pt["Webkit".concat(Xt)]="webkit".concat(It),Pt["Moz".concat(Xt)]="moz".concat(It),Pt["ms".concat(Xt)]="MS".concat(It),Pt["O".concat(Xt)]="o".concat(It.toLowerCase()),Pt}function $(Xt,It){var Pt={animationend:te("Animation","AnimationEnd"),transitionend:te("Transition","TransitionEnd")};return Xt&&("AnimationEvent"in It||delete Pt.animationend.animation,"TransitionEvent"in It||delete Pt.transitionend.transition),Pt}var le=$(X,typeof window!="undefined"?window:{}),re={};if(X){var Se=document.createElement("div");re=Se.style}var Re={};function Pe(Xt){if(Re[Xt])return Re[Xt];var It=le[Xt];if(It)for(var Pt=Object.keys(It),Kt=Pt.length,Gt=0;Gt<Kt;Gt+=1){var Dt=Pt[Gt];if(Object.prototype.hasOwnProperty.call(It,Dt)&&Dt in re)return Re[Xt]=It[Dt],Re[Xt]}return""}var Je=Pe("animationend"),Ge=Pe("transitionend"),ct=!!(Je&&Ge);function Ue(Xt,It){if(!Xt)return null;if(Object(Q.a)(Xt)==="object"){var Pt=It.replace(/-\w/g,function(Kt){return Kt[1].toUpperCase()});return Xt[Pt]}return"".concat(Xt,"-").concat(It)}var ae="none",lt="appear",pe="enter",J="leave";function Y(Xt){var It=Xt,Pt=!!r.forwardRef;Object(Q.a)(Xt)==="object"&&(It=Xt.transitionSupport,Pt="forwardRef"in Xt?Xt.forwardRef:Pt);function Kt(Dt){return!!(Dt.motionName&&It)}var Gt=function(Dt){Object(b.a)(Ar,Dt);var lr=Object(w.a)(Ar);function Ar(){var yr;return Object(h.a)(this,Ar),yr=lr.apply(this,arguments),yr.$cacheEle=null,yr.node=null,yr.raf=null,yr.destroyed=!1,yr.deadlineId=null,yr.state={status:ae,statusActive:!1,newStatus:!1,statusStyle:null},yr.onDomUpdate=function(){var Mr=yr.state,zn=Mr.status,Rn=Mr.newStatus,di=yr.props,gn=di.onAppearStart,Br=di.onEnterStart,_n=di.onLeaveStart,Gn=di.onAppearActive,Zn=di.onEnterActive,ai=di.onLeaveActive,Ei=di.motionAppear,Ri=di.motionEnter,Di=di.motionLeave;if(!Kt(yr.props))return;var oa=yr.getElement();yr.$cacheEle!==oa&&(yr.removeEventListener(yr.$cacheEle),yr.addEventListener(oa),yr.$cacheEle=oa),Rn&&zn===lt&&Ei?yr.updateStatus(gn,null,null,function(){yr.updateActiveStatus(Gn,lt)}):Rn&&zn===pe&&Ri?yr.updateStatus(Br,null,null,function(){yr.updateActiveStatus(Zn,pe)}):Rn&&zn===J&&Di&&yr.updateStatus(_n,null,null,function(){yr.updateActiveStatus(ai,J)})},yr.onMotionEnd=function(Mr){if(Mr&&!Mr.deadline&&Mr.target!==yr.getElement())return;var zn=yr.state,Rn=zn.status,di=zn.statusActive,gn=yr.props,Br=gn.onAppearEnd,_n=gn.onEnterEnd,Gn=gn.onLeaveEnd;Rn===lt&&di?yr.updateStatus(Br,{status:ae},Mr):Rn===pe&&di?yr.updateStatus(_n,{status:ae},Mr):Rn===J&&di&&yr.updateStatus(Gn,{status:ae},Mr)},yr.setNodeRef=function(Mr){var zn=yr.props.internalRef;yr.node=Mr,Object(S.b)(zn,Mr)},yr.getElement=function(){try{return Object(T.a)(yr.node||Object(A.a)(yr))}catch(Mr){return yr.$cacheEle}},yr.addEventListener=function(Mr){if(!Mr)return;Mr.addEventListener(Ge,yr.onMotionEnd),Mr.addEventListener(Je,yr.onMotionEnd)},yr.removeEventListener=function(Mr){if(!Mr)return;Mr.removeEventListener(Ge,yr.onMotionEnd),Mr.removeEventListener(Je,yr.onMotionEnd)},yr.updateStatus=function(Mr,zn,Rn,di){var gn=Mr?Mr(yr.getElement(),Rn):null;if(gn===!1||yr.destroyed)return;var Br;di&&(Br=function(){yr.nextFrame(di)}),yr.setState(Object(c.a)({statusStyle:Object(Q.a)(gn)==="object"?gn:null,newStatus:!1},zn),Br)},yr.updateActiveStatus=function(Mr,zn){yr.nextFrame(function(){var Rn=yr.state.status;if(Rn!==zn)return;var di=yr.props.motionDeadline;yr.updateStatus(Mr,{statusActive:!0}),di>0&&(yr.deadlineId=setTimeout(function(){yr.onMotionEnd({deadline:!0})},di))})},yr.nextFrame=function(Mr){yr.cancelNextFrame(),yr.raf=K()(Mr)},yr.cancelNextFrame=function(){yr.raf&&(K.a.cancel(yr.raf),yr.raf=null)},yr}return Object(g.a)(Ar,[{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 Mr,zn=this.state,Rn=zn.status,di=zn.statusActive,gn=zn.statusStyle,Br=this.props,_n=Br.children,Gn=Br.motionName,Zn=Br.visible,ai=Br.removeOnLeave,Ei=Br.leavedClassName,Ri=Br.eventProps;return _n?Rn===ae||!Kt(this.props)?Zn?_n(Object(c.a)({},Ri),this.setNodeRef):ai?null:_n(Object(c.a)(Object(c.a)({},Ri),{},{className:Ei}),this.setNodeRef):_n(Object(c.a)(Object(c.a)({},Ri),{},{className:P()(Ue(Gn,Rn),(Mr={},Object(V.a)(Mr,Ue(Gn,"".concat(Rn,"-active")),di),Object(V.a)(Mr,Gn,typeof Gn=="string"),Mr)),style:gn}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Mr,zn){var Rn=zn.prevProps,di=zn.status;if(!Kt(Mr))return{};var gn=Mr.visible,Br=Mr.motionAppear,_n=Mr.motionEnter,Gn=Mr.motionLeave,Zn=Mr.motionLeaveImmediately,ai={prevProps:Mr};return(di===lt&&!Br||di===pe&&!_n||di===J&&!Gn)&&(ai.status=ae,ai.statusActive=!1,ai.newStatus=!1),!Rn&&gn&&Br&&(ai.status=lt,ai.statusActive=!1,ai.newStatus=!0),Rn&&!Rn.visible&&gn&&_n&&(ai.status=pe,ai.statusActive=!1,ai.newStatus=!0),(Rn&&Rn.visible&&!gn&&Gn||!Rn&&Zn&&!gn&&Gn)&&(ai.status=J,ai.statusActive=!1,ai.newStatus=!0),ai}}]),Ar}(r.Component);return Gt.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Pt?r.forwardRef(function(Dt,lr){return r.createElement(Gt,Object.assign({internalRef:lr},Dt))}):Gt}var ee=Y(ct),fe="add",we="keep",Ce="remove",_e="removed";function he(Xt){var It;return Xt&&Object(Q.a)(Xt)==="object"&&"key"in Xt?It=Xt:It={key:Xt},Object(c.a)(Object(c.a)({},It),{},{key:String(It.key)})}function ye(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Xt.map(he)}function Le(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Pt=[],Kt=0,Gt=It.length,Dt=ye(Xt),lr=ye(It);Dt.forEach(function(Mr){for(var zn=!1,Rn=Kt;Rn<Gt;Rn+=1){var di=lr[Rn];if(di.key===Mr.key){Kt<Rn&&(Pt=Pt.concat(lr.slice(Kt,Rn).map(function(gn){return Object(c.a)(Object(c.a)({},gn),{},{status:fe})})),Kt=Rn),Pt.push(Object(c.a)(Object(c.a)({},di),{},{status:we})),Kt+=1,zn=!0;break}}zn||Pt.push(Object(c.a)(Object(c.a)({},Mr),{},{status:Ce}))}),Kt<Gt&&(Pt=Pt.concat(lr.slice(Kt).map(function(Mr){return Object(c.a)(Object(c.a)({},Mr),{},{status:fe})})));var Ar={};Pt.forEach(function(Mr){var zn=Mr.key;Ar[zn]=(Ar[zn]||0)+1});var yr=Object.keys(Ar).filter(function(Mr){return Ar[Mr]>1});return yr.forEach(function(Mr){Pt=Pt.filter(function(zn){var Rn=zn.key,di=zn.status;return Rn!==Mr||di!==Ce}),Pt.forEach(function(zn){zn.key===Mr&&(zn.status=we)})}),Pt}var tt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function gt(Xt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ee,Pt=function(Kt){Object(b.a)(Dt,Kt);var Gt=Object(w.a)(Dt);function Dt(){var lr;return Object(h.a)(this,Dt),lr=Gt.apply(this,arguments),lr.state={keyEntities:[]},lr.removeKey=function(Ar){lr.setState(function(yr){var Mr=yr.keyEntities;return{keyEntities:Mr.map(function(zn){return zn.key!==Ar?zn:Object(c.a)(Object(c.a)({},zn),{},{status:_e})})}})},lr}return Object(g.a)(Dt,[{key:"render",value:function(){var Ar=this,yr=this.state.keyEntities,Mr=this.props,zn=Mr.component,Rn=Mr.children,di=Object(M.a)(Mr,["component","children"]),gn=zn||r.Fragment,Br={};return tt.forEach(function(_n){Br[_n]=di[_n],delete di[_n]}),delete di.keys,r.createElement(gn,Object.assign({},di),yr.map(function(_n){var Gn=_n.status,Zn=Object(M.a)(_n,["status"]),ai=Gn===fe||Gn===we;return r.createElement(It,Object.assign({},Br,{key:Zn.key,visible:ai,eventProps:Zn,onLeaveEnd:function(){Br.onLeaveEnd&&Br.onLeaveEnd.apply(Br,arguments),Ar.removeKey(Zn.key)}}),Rn)}))}}],[{key:"getDerivedStateFromProps",value:function(Ar,yr){var Mr=Ar.keys,zn=yr.keyEntities,Rn=ye(Mr);if(!Xt)return{keyEntities:Rn.map(function(Br){return Object(c.a)(Object(c.a)({},Br),{},{status:we})})};var di=Le(zn,Rn),gn=zn.length;return{keyEntities:di.filter(function(Br){for(var _n=null,Gn=0;Gn<gn;Gn+=1){var Zn=zn[Gn];if(Zn.key===Br.key){_n=Zn;break}}return!(_n&&_n.status===_e&&Br.status===Ce)})}}}]),Dt}(r.Component);return Pt.defaultProps={component:"div"},Pt}var at=gt(ct),Fe=ee,mt=function(It,Pt){var Kt=It.prefixCls,Gt=It.className,Dt=It.style,lr=It.children,Ar=It.onMouseEnter,yr=It.onMouseLeave,Mr=It.onMouseDown,zn=It.onTouchStart,Rn=lr;return r.Children.count(lr)>1&&(Rn=r.createElement("div",{className:"".concat(Kt,"-content")},lr)),r.createElement("div",{ref:Pt,className:Gt,onMouseEnter:Ar,onMouseLeave:yr,onMouseDown:Mr,onTouchStart:zn,style:Dt},Rn)},et=r.forwardRef(mt);et.displayName="PopupInner";var St=et;function jt(Xt){var It=Xt.prefixCls,Pt=Xt.motion,Kt=Xt.animation,Gt=Xt.transitionName;return Pt||(Kt?{motionName:"".concat(It,"-").concat(Kt)}:Gt?{motionName:Gt}:null)}function Mt(Xt){return Xt&&Xt.motionName}var Ot=function(Xt){Object(b.a)(Pt,Xt);var It=Object(w.a)(Pt);function Pt(){var Kt;return Object(h.a)(this,Pt),Kt=It.apply(this,arguments),Kt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Kt.popupRef=s.a.createRef(),Kt.alignRef=s.a.createRef(),Kt.nextFrameState=null,Kt.nextFrameId=null,Kt.onAlign=function(Gt,Dt){var lr=Kt.state.status,Ar=Kt.props,yr=Ar.getClassNameFromAlign,Mr=Ar.onAlign,zn=yr(Dt);lr==="align"?Kt.setState({alignClassName:zn,status:"aligned"},function(){Kt.alignRef.current.forceAlign()}):lr==="aligned"?(Kt.setState({alignClassName:zn,status:"afterAlign"}),Mr(Gt,Dt)):Kt.setState({alignClassName:zn})},Kt.onMotionEnd=function(){var Gt=Kt.props.visible;Kt.setState({status:Gt?"AfterMotion":"stable",inMotion:!1})},Kt.setStateOnNextFrame=function(Gt){Kt.cancelFrameState(),Kt.nextFrameState=Object(c.a)(Object(c.a)({},Kt.nextFrameState),Gt),Kt.nextFrameId=K()(function(){var Dt=Object(c.a)({},Kt.nextFrameState);Kt.nextFrameState=null,Kt.setState(Dt)})},Kt.getMotion=function(){return Object(c.a)({},jt(Kt.props))},Kt.getAlignTarget=function(){var Gt=Kt.props,Dt=Gt.point,lr=Gt.getRootDomNode;return Dt||lr},Kt.cancelFrameState=function(){K.a.cancel(Kt.nextFrameId)},Kt.renderPopupElement=function(){var Gt=Kt.state,Dt=Gt.status,lr=Gt.targetHeight,Ar=Gt.targetWidth,yr=Gt.alignClassName,Mr=Kt.props,zn=Mr.prefixCls,Rn=Mr.className,di=Mr.style,gn=Mr.stretch,Br=Mr.visible,_n=Mr.align,Gn=Mr.destroyPopupOnHide,Zn=Mr.onMouseEnter,ai=Mr.onMouseLeave,Ei=Mr.onMouseDown,Ri=Mr.onTouchStart,Di=Mr.children,oa=P()(zn,Rn,yr),ma="".concat(zn,"-hidden"),aa={};gn&&(gn.indexOf("height")!==-1?aa.height=lr:gn.indexOf("minHeight")!==-1&&(aa.minHeight=lr),gn.indexOf("width")!==-1?aa.width=Ar:gn.indexOf("minWidth")!==-1&&(aa.minWidth=Ar));var ba=Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({},aa),Kt.getZIndexStyle()),di),{},{opacity:Dt==="stable"||!Br?void 0:0,pointerEvents:Dt==="stable"||!Br?void 0:"none"}),Ai=Kt.getMotion(),Dn=Br;Br&&Dt!=="beforeMotion"&&Dt!=="motion"&&Dt!=="stable"&&(Ai.motionAppear=!1,Ai.motionEnter=!1,Ai.motionLeave=!1),(Dt==="afterAlign"||Dt==="beforeMotion")&&(Dn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(ta){var ra=Ai==null?void 0:Ai[ta];Ai[ta]=function(){for(var Ir=arguments.length,Sr=new Array(Ir),En=0;En<Ir;En++)Sr[En]=arguments[En];ra==null||ra.apply(void 0,Sr),Kt.setState({inMotion:!0})}});var Bi=!Br||Dt!=="align"&&Dt!=="aligned"&&Dt!=="stable",ha=!0;return Dt==="stable"&&(ha=Br),Gn&&!ha?null:s.a.createElement(Fe,Object.assign({visible:Dn},Ai,{removeOnLeave:!1,onEnterEnd:Kt.onMotionEnd,onLeaveEnd:Kt.onMotionEnd,leavedClassName:ma}),function(ta,ra){var Ir=ta.style,Sr=ta.className;return s.a.createElement(z.a,{target:Kt.getAlignTarget(),key:"popup",ref:Kt.alignRef,monitorWindowResize:!0,disabled:Bi,align:_n,onAlign:Kt.onAlign},s.a.createElement(St,{prefixCls:zn,className:P()(oa,Sr),ref:Object(S.a)(ra,Kt.popupRef),onMouseEnter:Zn,onMouseLeave:ai,onMouseDown:Ei,onTouchStart:Ri,style:Object(c.a)(Object(c.a)({},ba),Ir)},Di))})},Kt.renderMaskElement=function(){var Gt=Kt.props,Dt=Gt.mask,lr=Gt.maskMotion,Ar=Gt.maskTransitionName,yr=Gt.maskAnimation,Mr=Gt.prefixCls,zn=Gt.visible;if(!Dt)return null;var Rn={};return lr&&lr.motionName&&(Rn=Object(c.a)({motionAppear:!0},jt({motion:lr,prefixCls:Mr,transitionName:Ar,animation:yr}))),s.a.createElement(Fe,Object.assign({},Rn,{visible:zn,removeOnLeave:!0}),function(di){var gn=di.className;return s.a.createElement("div",{style:Kt.getZIndexStyle(),key:"mask",className:P()("".concat(Mr,"-mask"),gn)})})},Kt}return Object(g.a)(Pt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Gt=this.state.status,Dt=this.props,lr=Dt.getRootDomNode,Ar=Dt.visible,yr=Dt.stretch;if(this.cancelFrameState(),Ar&&Gt!=="stable")switch(Gt){case null:{this.setStateOnNextFrame({status:yr?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Mt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Mr=["measure","align",null,"beforeMotion","motion"],zn=Mr.indexOf(Gt),Rn=Mr[zn+1];zn!==-1&&Rn&&this.setStateOnNextFrame({status:Rn})}}if(Gt==="measure"){var di=lr();di&&this.setStateOnNextFrame({targetHeight:di.offsetHeight,targetWidth:di.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Gt=this.props.zIndex;return{zIndex:Gt}}},{key:"render",value:function(){return s.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Gt,Dt){var lr=Gt.visible,Ar=Object(M.a)(Gt,["visible"]),yr=Dt.prevVisible,Mr=Dt.status,zn=Dt.inMotion,Rn={prevVisible:lr,status:Mr},di=jt(Ar);return yr===null&&lr===!1?(Rn.status="stable",Rn.inMotion=!1):lr!==yr&&(Rn.inMotion=!1,lr||Mt(di)&&zn?Rn.status=null:Rn.status="stable",lr&&(Rn.alignClassName=null)),Rn}}]),Pt}(r.Component),Bt=Ot,Ke=r.createContext(null),de=Ke;function se(){}function ut(){return""}function qe(){return window.document}var me=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Wt(Xt){var It=function(Pt){Object(b.a)(Gt,Pt);var Kt=Object(w.a)(Gt);function Gt(Dt){var lr;Object(h.a)(this,Gt),lr=Kt.call(this,Dt),lr.popupRef=s.a.createRef(),lr.triggerRef=s.a.createRef(),lr.onMouseEnter=function(yr){var Mr=lr.props.mouseEnterDelay;lr.fireEvents("onMouseEnter",yr),lr.delaySetPopupVisible(!0,Mr,Mr?null:yr)},lr.onMouseMove=function(yr){lr.fireEvents("onMouseMove",yr),lr.setPoint(yr)},lr.onMouseLeave=function(yr){lr.fireEvents("onMouseLeave",yr),lr.delaySetPopupVisible(!1,lr.props.mouseLeaveDelay)},lr.onPopupMouseEnter=function(){lr.clearDelayTimer()},lr.onPopupMouseLeave=function(yr){if(yr.relatedTarget&&!yr.relatedTarget.setTimeout&&lr.popupRef.current&&lr.popupRef.current.popupRef.current&&Object(_.a)(lr.popupRef.current.popupRef.current,yr.relatedTarget))return;lr.delaySetPopupVisible(!1,lr.props.mouseLeaveDelay)},lr.onFocus=function(yr){lr.fireEvents("onFocus",yr),lr.clearDelayTimer(),lr.isFocusToShow()&&(lr.focusTime=Date.now(),lr.delaySetPopupVisible(!0,lr.props.focusDelay))},lr.onMouseDown=function(yr){lr.fireEvents("onMouseDown",yr),lr.preClickTime=Date.now()},lr.onTouchStart=function(yr){lr.fireEvents("onTouchStart",yr),lr.preTouchTime=Date.now()},lr.onBlur=function(yr){lr.fireEvents("onBlur",yr),lr.clearDelayTimer(),lr.isBlurToHide()&&lr.delaySetPopupVisible(!1,lr.props.blurDelay)},lr.onContextMenu=function(yr){yr.preventDefault(),lr.fireEvents("onContextMenu",yr),lr.setPopupVisible(!0,yr)},lr.onContextMenuClose=function(){lr.isContextMenuToShow()&&lr.close()},lr.onClick=function(yr){if(lr.fireEvents("onClick",yr),lr.focusTime){var Mr;if(lr.preClickTime&&lr.preTouchTime?Mr=Math.min(lr.preClickTime,lr.preTouchTime):lr.preClickTime?Mr=lr.preClickTime:lr.preTouchTime&&(Mr=lr.preTouchTime),Math.abs(Mr-lr.focusTime)<20)return;lr.focusTime=0}lr.preClickTime=0,lr.preTouchTime=0,lr.isClickToShow()&&(lr.isClickToHide()||lr.isBlurToHide())&&yr&&yr.preventDefault&&yr.preventDefault();var zn=!lr.state.popupVisible;(lr.isClickToHide()&&!zn||zn&&lr.isClickToShow())&&lr.setPopupVisible(!lr.state.popupVisible,yr)},lr.onPopupMouseDown=function(){if(lr.hasPopupMouseDown=!0,clearTimeout(lr.mouseDownTimeout),lr.mouseDownTimeout=window.setTimeout(function(){lr.hasPopupMouseDown=!1},0),lr.context){var yr;(yr=lr.context).onPopupMouseDown.apply(yr,arguments)}},lr.onDocumentClick=function(yr){if(lr.props.mask&&!lr.props.maskClosable)return;var Mr=yr.target,zn=lr.getRootDomNode(),Rn=lr.getPopupDomNode();!Object(_.a)(zn,Mr)&&!Object(_.a)(Rn,Mr)&&!lr.hasPopupMouseDown&&lr.close()},lr.getRootDomNode=function(){var yr=lr.props.getTriggerDOMNode;if(yr)return yr(lr.triggerRef.current);try{var Mr=Object(T.a)(lr.triggerRef.current);if(Mr)return Mr}catch(zn){}return C.a.findDOMNode(Object(A.a)(lr))},lr.getPopupClassNameFromAlign=function(yr){var Mr=[],zn=lr.props,Rn=zn.popupPlacement,di=zn.builtinPlacements,gn=zn.prefixCls,Br=zn.alignPoint,_n=zn.getPopupClassNameFromAlign;return Rn&&di&&Mr.push(G(di,gn,yr,Br)),_n&&Mr.push(_n(yr)),Mr.join(" ")},lr.getComponent=function(){var yr=lr.props,Mr=yr.prefixCls,zn=yr.destroyPopupOnHide,Rn=yr.popupClassName,di=yr.onPopupAlign,gn=yr.popupMotion,Br=yr.popupAnimation,_n=yr.popupTransitionName,Gn=yr.popupStyle,Zn=yr.mask,ai=yr.maskAnimation,Ei=yr.maskTransitionName,Ri=yr.maskMotion,Di=yr.zIndex,oa=yr.popup,ma=yr.stretch,aa=yr.alignPoint,ba=lr.state,Ai=ba.popupVisible,Dn=ba.point,Bi=lr.getPopupAlign(),ha={};return lr.isMouseEnterToShow()&&(ha.onMouseEnter=lr.onPopupMouseEnter),lr.isMouseLeaveToHide()&&(ha.onMouseLeave=lr.onPopupMouseLeave),ha.onMouseDown=lr.onPopupMouseDown,ha.onTouchStart=lr.onPopupMouseDown,s.a.createElement(Bt,Object.assign({prefixCls:Mr,destroyPopupOnHide:zn,visible:Ai,point:aa&&Dn,className:Rn,align:Bi,onAlign:di,animation:Br,getClassNameFromAlign:lr.getPopupClassNameFromAlign},ha,{stretch:ma,getRootDomNode:lr.getRootDomNode,style:Gn,mask:Zn,zIndex:Di,transitionName:_n,maskAnimation:ai,maskTransitionName:Ei,maskMotion:Ri,ref:lr.popupRef,motion:gn}),typeof oa=="function"?oa():oa)},lr.getContainer=function(){var yr=Object(A.a)(lr),Mr=yr.props,zn=document.createElement("div");zn.style.position="absolute",zn.style.top="0",zn.style.left="0",zn.style.width="100%";var Rn=Mr.getPopupContainer?Mr.getPopupContainer(lr.getRootDomNode()):Mr.getDocument().body;return Rn.appendChild(zn),zn},lr.setPoint=function(yr){var Mr=lr.props.alignPoint;if(!Mr||!yr)return;lr.setState({point:{pageX:yr.pageX,pageY:yr.pageY}})},lr.handlePortalUpdate=function(){lr.state.prevPopupVisible!==lr.state.popupVisible&&lr.props.afterPopupVisibleChange(lr.state.popupVisible)};var Ar;return"popupVisible"in Dt?Ar=!!Dt.popupVisible:Ar=!!Dt.defaultPopupVisible,lr.state={prevPopupVisible:Ar,popupVisible:Ar},me.forEach(function(yr){lr["fire".concat(yr)]=function(Mr){lr.fireEvents(yr,Mr)}}),lr}return Object(g.a)(Gt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var lr=this.props,Ar=this.state;if(Ar.popupVisible){var yr;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(yr=lr.getDocument(),this.clickOutsideHandler=Object(O.a)(yr,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(yr=yr||lr.getDocument(),this.touchOutsideHandler=Object(O.a)(yr,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(yr=yr||lr.getDocument(),this.contextMenuOutsideHandler1=Object(O.a)(yr,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(O.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var lr=this.props,Ar=lr.popupPlacement,yr=lr.popupAlign,Mr=lr.builtinPlacements;return Ar&&Mr?k(Mr,Ar,yr):yr}},{key:"setPopupVisible",value:function(lr,Ar){var yr=this.props.alignPoint,Mr=this.state.popupVisible;this.clearDelayTimer(),Mr!==lr&&("popupVisible"in this.props||this.setState({popupVisible:lr,prevPopupVisible:Mr}),this.props.onPopupVisibleChange(lr)),yr&&Ar&&this.setPoint(Ar)}},{key:"delaySetPopupVisible",value:function(lr,Ar,yr){var Mr=this,zn=Ar*1e3;if(this.clearDelayTimer(),zn){var Rn=yr?{pageX:yr.pageX,pageY:yr.pageY}:null;this.delayTimer=window.setTimeout(function(){Mr.setPopupVisible(lr,Rn),Mr.clearDelayTimer()},zn)}else this.setPopupVisible(lr,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(lr){var Ar=this.props.children.props,yr=this.props;return Ar[lr]&&yr[lr]?this["fire".concat(lr)]:Ar[lr]||yr[lr]}},{key:"isClickToShow",value:function(){var lr=this.props,Ar=lr.action,yr=lr.showAction;return Ar.indexOf("click")!==-1||yr.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var lr=this.props,Ar=lr.action,yr=lr.showAction;return Ar.indexOf("contextMenu")!==-1||yr.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var lr=this.props,Ar=lr.action,yr=lr.hideAction;return Ar.indexOf("click")!==-1||yr.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var lr=this.props,Ar=lr.action,yr=lr.showAction;return Ar.indexOf("hover")!==-1||yr.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var lr=this.props,Ar=lr.action,yr=lr.hideAction;return Ar.indexOf("hover")!==-1||yr.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var lr=this.props,Ar=lr.action,yr=lr.showAction;return Ar.indexOf("focus")!==-1||yr.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var lr=this.props,Ar=lr.action,yr=lr.hideAction;return Ar.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(lr,Ar){var yr=this.props.children.props[lr];yr&&yr(Ar);var Mr=this.props[lr];Mr&&Mr(Ar)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var lr=this.state.popupVisible,Ar=this.props,yr=Ar.children,Mr=Ar.forceRender,zn=Ar.alignPoint,Rn=Ar.className,di=Ar.autoDestroy,gn=s.a.Children.only(yr),Br={key:"trigger"};this.isContextMenuToShow()?Br.onContextMenu=this.onContextMenu:Br.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Br.onClick=this.onClick,Br.onMouseDown=this.onMouseDown,Br.onTouchStart=this.onTouchStart):(Br.onClick=this.createTwoChains("onClick"),Br.onMouseDown=this.createTwoChains("onMouseDown"),Br.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Br.onMouseEnter=this.onMouseEnter,zn&&(Br.onMouseMove=this.onMouseMove)):Br.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Br.onMouseLeave=this.onMouseLeave:Br.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Br.onFocus=this.onFocus,Br.onBlur=this.onBlur):(Br.onFocus=this.createTwoChains("onFocus"),Br.onBlur=this.createTwoChains("onBlur"));var _n=P()(gn&&gn.props&&gn.props.className,Rn);_n&&(Br.className=_n);var Gn=Object(c.a)({},Br);Object(S.c)(gn)&&(Gn.ref=Object(S.a)(this.triggerRef,gn.ref));var Zn=s.a.cloneElement(gn,Gn),ai;return(lr||this.popupRef.current||Mr)&&(ai=s.a.createElement(Xt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!lr&&di&&(ai=null),s.a.createElement(de.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},Zn,ai)}}],[{key:"getDerivedStateFromProps",value:function(lr,Ar){var yr=lr.popupVisible,Mr={};return yr!==void 0&&Ar.popupVisible!==yr&&(Mr.popupVisible=yr,Mr.prevPopupVisible=Ar.popupVisible),Mr}}]),Gt}(s.a.Component);return It.contextType=de,It.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ut,getDocument:qe,onPopupVisibleChange:se,afterPopupVisibleChange:se,onPopupAlign:se,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},It}var dr=Wt(I.a),vt=i("2W6z"),rr=i.n(vt),ur=i("4IlW"),mn=i("uK0f"),sr=i.n(mn);function xr(Xt,It){if(Xt===It)return!0;if(!Xt||!It)return!1;var Pt=Xt.length;if(It.length!==Pt)return!1;for(var Kt=0;Kt<Pt;Kt++)if(Xt[Kt]!==It[Kt])return!1;return!0}function pr(Xt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pr=function(Pt){return typeof Pt}:pr=function(Pt){return Pt&&typeof Symbol=="function"&&Pt.constructor===Symbol&&Pt!==Symbol.prototype?"symbol":typeof Pt},pr(Xt)}function Zt(Xt,It){if(!(Xt instanceof It))throw new TypeError("Cannot call a class as a function")}function Ct(Xt,It){for(var Pt=0;Pt<It.length;Pt++){var Kt=It[Pt];Kt.enumerable=Kt.enumerable||!1,Kt.configurable=!0,"value"in Kt&&(Kt.writable=!0),Object.defineProperty(Xt,Kt.key,Kt)}}function on(Xt,It,Pt){return It&&Ct(Xt.prototype,It),Pt&&Ct(Xt,Pt),Xt}function Mn(Xt,It){if(typeof It!="function"&&It!==null)throw new TypeError("Super expression must either be null or a function");Xt.prototype=Object.create(It&&It.prototype,{constructor:{value:Xt,writable:!0,configurable:!0}}),It&&Xn(Xt,It)}function Xn(Xt,It){return Xn=Object.setPrototypeOf||function(Kt,Gt){return Kt.__proto__=Gt,Kt},Xn(Xt,It)}function oi(Xt){var It=Qn();return function(){var Pt=$t(Xt),Kt;if(It){var Gt=$t(this).constructor;Kt=Reflect.construct(Pt,arguments,Gt)}else Kt=Pt.apply(this,arguments);return Ui(this,Kt)}}function Ui(Xt,It){return It&&(pr(It)==="object"||typeof It=="function")?It:Un(Xt)}function Un(Xt){if(Xt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Xt}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(Xt){return!1}}function $t(Xt){return $t=Object.setPrototypeOf?Object.getPrototypeOf:function(Pt){return Pt.__proto__||Object.getPrototypeOf(Pt)},$t(Xt)}var Nt=function(){var Xt=function(It){Mn(Kt,It);var Pt=oi(Kt);function Kt(){var Gt;return Zt(this,Kt),Gt=Pt.apply(this,arguments),Gt.menuItems={},Gt.saveMenuItem=function(Dt){return function(lr){Gt.menuItems[Dt]=lr}},Gt}return on(Kt,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(Dt){!Dt.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(Dt){var lr=this.props,Ar=lr.fieldNames,yr=lr.defaultFieldNames;return Ar[Dt]||yr[Dt]}},{key:"getOption",value:function(Dt,lr){var Ar=this.props,yr=Ar.prefixCls,Mr=Ar.expandTrigger,zn=Ar.expandIcon,Rn=Ar.loadingIcon,di=this.props.onSelect.bind(this,Dt,lr),gn=this.props.onItemDoubleClick.bind(this,Dt,lr),Br={onClick:di,onDoubleClick:gn},_n="".concat(yr,"-menu-item"),Gn=null,Zn=Dt[this.getFieldName("children")]&&Dt[this.getFieldName("children")].length>0;(Zn||Dt.isLeaf===!1)&&(_n+=" ".concat(yr,"-menu-item-expand"),Dt.loading||(Gn=r.createElement("span",{className:"".concat(yr,"-menu-item-expand-icon")},zn))),Mr==="hover"&&(Zn||Dt.isLeaf===!1)&&(Br={onMouseEnter:this.delayOnSelect.bind(this,di),onMouseLeave:this.delayOnSelect.bind(this),onClick:di}),this.isActiveOption(Dt,lr)&&(_n+=" ".concat(yr,"-menu-item-active"),Br.ref=this.saveMenuItem(lr)),Dt.disabled&&(_n+=" ".concat(yr,"-menu-item-disabled"));var ai=null;Dt.loading&&(_n+=" ".concat(yr,"-menu-item-loading"),ai=Rn||null);var Ei="";return"title"in Dt?Ei=Dt.title:typeof Dt[this.getFieldName("label")]=="string"&&(Ei=Dt[this.getFieldName("label")]),r.createElement("li",Object.assign({key:Dt[this.getFieldName("value")],className:_n,title:Ei},Br,{role:"menuitem",onMouseDown:function(Di){return Di.preventDefault()}}),Dt[this.getFieldName("label")],Gn,ai)}},{key:"getActiveOptions",value:function(Dt){var lr=this,Ar=this.props.options,yr=Dt||this.props.activeValue;return sr()(Ar,function(Mr,zn){return Mr[lr.getFieldName("value")]===yr[zn]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var Dt=this,lr=this.props.options,Ar=this.getActiveOptions().map(function(yr){return yr[Dt.getFieldName("children")]}).filter(function(yr){return!!yr});return Ar.unshift(lr),Ar}},{key:"delayOnSelect",value:function(Dt){for(var lr=this,Ar=arguments.length,yr=new Array(Ar>1?Ar-1:0),Mr=1;Mr<Ar;Mr++)yr[Mr-1]=arguments[Mr];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof Dt=="function"&&(this.delayTimer=window.setTimeout(function(){Dt(yr),lr.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var Dt=this.getShowOptions().length,lr=0;lr<Dt;lr++){var Ar=this.menuItems[lr];Ar&&Ar.parentElement&&(Ar.parentElement.scrollTop=Ar.offsetTop)}}},{key:"isActiveOption",value:function(Dt,lr){var Ar=this.props.activeValue,yr=Ar===void 0?[]:Ar;return yr[lr]===Dt[this.getFieldName("value")]}},{key:"render",value:function(){var Dt=this,lr=this.props,Ar=lr.prefixCls,yr=lr.dropdownMenuColumnStyle;return r.createElement("div",null,this.getShowOptions().map(function(Mr,zn){return r.createElement("ul",{className:"".concat(Ar,"-menu"),key:zn,style:yr},Mr.map(function(Rn){return Dt.getOption(Rn,zn)}))}))}}]),Kt}(r.Component);return Xt.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},Xt}(),Me=Nt,ke={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},Be=ke;function it(Xt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?it=function(Pt){return typeof Pt}:it=function(Pt){return Pt&&typeof Symbol=="function"&&Pt.constructor===Symbol&&Pt!==Symbol.prototype?"symbol":typeof Pt},it(Xt)}function yt(Xt,It){if(Xt==null)return{};var Pt=Tt(Xt,It),Kt,Gt;if(Object.getOwnPropertySymbols){var Dt=Object.getOwnPropertySymbols(Xt);for(Gt=0;Gt<Dt.length;Gt++){if(Kt=Dt[Gt],It.indexOf(Kt)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Xt,Kt))continue;Pt[Kt]=Xt[Kt]}}return Pt}function Tt(Xt,It){if(Xt==null)return{};var Pt={},Kt=Object.keys(Xt),Gt,Dt;for(Dt=0;Dt<Kt.length;Dt++){if(Gt=Kt[Dt],It.indexOf(Gt)>=0)continue;Pt[Gt]=Xt[Gt]}return Pt}function Yt(Xt){return zt(Xt)||An(Xt)||$r(Xt)||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 $r(Xt,It){if(!Xt)return;if(typeof Xt=="string")return At(Xt,It);var Pt=Object.prototype.toString.call(Xt).slice(8,-1);if(Pt==="Object"&&Xt.constructor&&(Pt=Xt.constructor.name),Pt==="Map"||Pt==="Set")return Array.from(Xt);if(Pt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pt))return At(Xt,It)}function An(Xt){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(Xt))return Array.from(Xt)}function zt(Xt){if(Array.isArray(Xt))return At(Xt)}function At(Xt,It){(It==null||It>Xt.length)&&(It=Xt.length);for(var Pt=0,Kt=new Array(It);Pt<It;Pt++)Kt[Pt]=Xt[Pt];return Kt}function wt(Xt,It){if(!(Xt instanceof It))throw new TypeError("Cannot call a class as a function")}function vr(Xt,It){for(var Pt=0;Pt<It.length;Pt++){var Kt=It[Pt];Kt.enumerable=Kt.enumerable||!1,Kt.configurable=!0,"value"in Kt&&(Kt.writable=!0),Object.defineProperty(Xt,Kt.key,Kt)}}function Jt(Xt,It,Pt){return It&&vr(Xt.prototype,It),Pt&&vr(Xt,Pt),Xt}function Ut(Xt,It){if(typeof It!="function"&&It!==null)throw new TypeError("Super expression must either be null or a function");Xt.prototype=Object.create(It&&It.prototype,{constructor:{value:Xt,writable:!0,configurable:!0}}),It&&tr(Xt,It)}function tr(Xt,It){return tr=Object.setPrototypeOf||function(Kt,Gt){return Kt.__proto__=Gt,Kt},tr(Xt,It)}function Ft(Xt){var It=Nr();return function(){var Pt=Dr(Xt),Kt;if(It){var Gt=Dr(this).constructor;Kt=Reflect.construct(Pt,arguments,Gt)}else Kt=Pt.apply(this,arguments);return qt(this,Kt)}}function qt(Xt,It){return It&&(it(It)==="object"||typeof It=="function")?It:Hr(Xt)}function Hr(Xt){if(Xt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Xt}function Nr(){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(Xt){return!1}}function Dr(Xt){return Dr=Object.setPrototypeOf?Object.getPrototypeOf:function(Pt){return Pt.__proto__||Object.getPrototypeOf(Pt)},Dr(Xt)}var cn=function(){var Xt=function(It){Ut(Kt,It);var Pt=Ft(Kt);function Kt(Gt){var Dt;wt(this,Kt),Dt=Pt.call(this,Gt),Dt.setPopupVisible=function(Ar){var yr=Dt.state.value;"popupVisible"in Dt.props||Dt.setState({popupVisible:Ar}),Ar&&!Dt.state.popupVisible&&Dt.setState({activeValue:yr}),Dt.props.onPopupVisibleChange(Ar)},Dt.handleChange=function(Ar,yr,Mr){var zn=yr.visible;(Mr.type!=="keydown"||Mr.keyCode===ur.a.ENTER)&&(Dt.props.onChange(Ar.map(function(Rn){return Rn[Dt.getFieldName("value")]}),Ar),Dt.setPopupVisible(zn))},Dt.handlePopupVisibleChange=function(Ar){Dt.setPopupVisible(Ar)},Dt.handleMenuSelect=function(Ar,yr,Mr){var zn=Dt.trigger.getRootDomNode();zn&&zn.focus&&zn.focus();var Rn=Dt.props,di=Rn.changeOnSelect,gn=Rn.loadData,Br=Rn.expandTrigger;if(!Ar||Ar.disabled)return;var _n=Dt.state.activeValue;_n=_n.slice(0,yr+1),_n[yr]=Ar[Dt.getFieldName("value")];var Gn=Dt.getActiveOptions(_n);if(Ar.isLeaf===!1&&!Ar[Dt.getFieldName("children")]&&gn){di&&Dt.handleChange(Gn,{visible:!0},Mr),Dt.setState({activeValue:_n}),gn(Gn);return}var Zn={};!Ar[Dt.getFieldName("children")]||!Ar[Dt.getFieldName("children")].length?(Dt.handleChange(Gn,{visible:!1},Mr),Zn.value=_n):di&&(Mr.type==="click"||Mr.type==="keydown")&&(Br==="hover"?Dt.handleChange(Gn,{visible:!1},Mr):Dt.handleChange(Gn,{visible:!0},Mr),Zn.value=_n),Zn.activeValue=_n,("value"in Dt.props||Mr.type==="keydown"&&Mr.keyCode!==ur.a.ENTER)&&delete Zn.value,Dt.setState(Zn)},Dt.handleItemDoubleClick=function(){var Ar=Dt.props.changeOnSelect;Ar&&Dt.setPopupVisible(!1)},Dt.handleKeyDown=function(Ar){var yr=Dt.props.children;if(yr&&yr.props.onKeyDown){yr.props.onKeyDown(Ar);return}var Mr=Yt(Dt.state.activeValue),zn=Mr.length-1<0?0:Mr.length-1,Rn=Dt.getCurrentLevelOptions(),di=Rn.map(function(Gn){return Gn[Dt.getFieldName("value")]}).indexOf(Mr[zn]);if(Ar.keyCode!==ur.a.DOWN&&Ar.keyCode!==ur.a.UP&&Ar.keyCode!==ur.a.LEFT&&Ar.keyCode!==ur.a.RIGHT&&Ar.keyCode!==ur.a.ENTER&&Ar.keyCode!==ur.a.SPACE&&Ar.keyCode!==ur.a.BACKSPACE&&Ar.keyCode!==ur.a.ESC&&Ar.keyCode!==ur.a.TAB)return;if(!Dt.state.popupVisible&&Ar.keyCode!==ur.a.BACKSPACE&&Ar.keyCode!==ur.a.LEFT&&Ar.keyCode!==ur.a.RIGHT&&Ar.keyCode!==ur.a.ESC&&Ar.keyCode!==ur.a.TAB){Dt.setPopupVisible(!0);return}if(Ar.keyCode===ur.a.DOWN||Ar.keyCode===ur.a.UP){Ar.preventDefault();var gn=di;gn!==-1?Ar.keyCode===ur.a.DOWN?(gn+=1,gn=gn>=Rn.length?0:gn):(gn-=1,gn=gn<0?Rn.length-1:gn):gn=0,Mr[zn]=Rn[gn][Dt.getFieldName("value")]}else if(Ar.keyCode===ur.a.LEFT||Ar.keyCode===ur.a.BACKSPACE)Ar.preventDefault(),Mr.splice(Mr.length-1,1);else if(Ar.keyCode===ur.a.RIGHT)Ar.preventDefault(),Rn[di]&&Rn[di][Dt.getFieldName("children")]&&Mr.push(Rn[di][Dt.getFieldName("children")][0][Dt.getFieldName("value")]);else if(Ar.keyCode===ur.a.ESC||Ar.keyCode===ur.a.TAB){Dt.setPopupVisible(!1);return}(!Mr||Mr.length===0)&&Dt.setPopupVisible(!1);var Br=Dt.getActiveOptions(Mr),_n=Br[Br.length-1];Dt.handleMenuSelect(_n,Br.length-1,Ar),Dt.props.onKeyDown&&Dt.props.onKeyDown(Ar)},Dt.saveTrigger=function(Ar){Dt.trigger=Ar};var lr=[];return"value"in Gt?lr=Gt.value||[]:"defaultValue"in Gt&&(lr=Gt.defaultValue||[]),rr()(!("filedNames"in Gt),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),Dt.state={popupVisible:Gt.popupVisible,activeValue:lr,value:lr,prevProps:Gt},Dt.defaultFieldNames={label:"label",value:"value",children:"children"},Dt}return Jt(Kt,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(Dt){var lr=this.defaultFieldNames,Ar=this.props,yr=Ar.fieldNames,Mr=Ar.filedNames;return"filedNames"in this.props?Mr[Dt]||lr[Dt]:yr[Dt]||lr[Dt]}},{key:"getFieldNames",value:function(){var Dt=this.props,lr=Dt.fieldNames,Ar=Dt.filedNames;return"filedNames"in this.props?Ar:lr}},{key:"getCurrentLevelOptions",value:function(){var Dt=this,lr=this.props.options,Ar=lr===void 0?[]:lr,yr=this.state.activeValue,Mr=yr===void 0?[]:yr,zn=sr()(Ar,function(Rn,di){return Rn[Dt.getFieldName("value")]===Mr[di]},{childrenKeyName:this.getFieldName("children")});return zn[zn.length-2]?zn[zn.length-2][this.getFieldName("children")]:Yt(Ar).filter(function(Rn){return!Rn.disabled})}},{key:"getActiveOptions",value:function(Dt){var lr=this;return sr()(this.props.options||[],function(Ar,yr){return Ar[lr.getFieldName("value")]===Dt[yr]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var Dt=this.props,lr=Dt.prefixCls,Ar=Dt.transitionName,yr=Dt.popupClassName,Mr=Dt.options,zn=Mr===void 0?[]:Mr,Rn=Dt.disabled,di=Dt.builtinPlacements,gn=Dt.popupPlacement,Br=Dt.children,_n=Dt.dropdownRender,Gn=yt(Dt,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),Zn=r.createElement("div",null),ai="";zn&&zn.length>0?Zn=r.createElement(Me,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):ai=" ".concat(lr,"-menus-empty");var Ei=Zn;return _n&&(Ei=_n(Zn)),r.createElement(dr,Object.assign({ref:this.saveTrigger},Gn,{popupPlacement:gn,builtinPlacements:di,popupTransitionName:Ar,action:Rn?[]:["click"],popupVisible:Rn?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(lr,"-menus"),popupClassName:yr+ai,popup:Ei}),r.cloneElement(Br,{onKeyDown:this.handleKeyDown,tabIndex:Rn?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(Dt,lr){var Ar=lr.prevProps,yr=Ar===void 0?{}:Ar,Mr={prevProps:Dt};return"value"in Dt&&!xr(yr.value,Dt.value)&&(Mr.value=Dt.value||[],"loadData"in Dt||(Mr.activeValue=Dt.value||[])),"popupVisible"in Dt&&(Mr.popupVisible=Dt.popupVisible),Mr}}]),Kt}(r.Component);return Xt.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:">"},Xt}(),vn=cn,ei=vn,qn=i("BGR+"),fi=i("kbBi"),xi=i.n(fi),Ni=i("HQEm"),Hi=i.n(Ni),nt=i("fEPi"),Ne=i.n(nt),He=i("5YOS"),Xe=i.n(He),rt=i("DFhj"),Ze=i.n(rt),st=i("5rEg"),xt=i("H84U"),pt=i("YMnH"),hr=i("uaoM"),Zr=i("3Nzz"),Xr=i("0n0R"),pn=function(Xt,It){var Pt={};for(var Kt in Xt)Object.prototype.hasOwnProperty.call(Xt,Kt)&&It.indexOf(Kt)<0&&(Pt[Kt]=Xt[Kt]);if(Xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Kt=Object.getOwnPropertySymbols(Xt);Gt<Kt.length;Gt++)It.indexOf(Kt[Gt])<0&&Object.prototype.propertyIsEnumerable.call(Xt,Kt[Gt])&&(Pt[Kt[Gt]]=Xt[Kt[Gt]]);return Pt},gr=50;function Kn(Xt,It,Pt){return Xt.split(It).map(function(Kt,Gt){return Gt===0?Kt:[r.createElement("span",{className:"".concat(Pt,"-menu-item-keyword"),key:"seperator"},It),Kt]})}function Rr(Xt,It,Pt){return It.some(function(Kt){return Kt[Pt.label].indexOf(Xt)>-1})}function Pn(Xt,It,Pt,Kt){return It.map(function(Gt,Dt){var lr=Gt[Kt.label],Ar=lr.indexOf(Xt)>-1?Kn(lr,Xt,Pt):lr;return Dt===0?Ar:[" / ",Ar]})}function an(Xt,It,Pt,Kt){function Gt(Dt){return Dt[Kt.label].indexOf(Pt)>-1}return Xt.findIndex(Gt)-It.findIndex(Gt)}function Ur(Xt){var It=Xt.fieldNames;return It}function ii(Xt){var It=Ur(Xt)||{},Pt={children:It.children||"children",label:It.label||"label",value:It.value||"value"};return Pt}function _i(Xt,It){var Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Kt=ii(It),Gt=[],Dt=Kt.children;return Xt.forEach(function(lr){var Ar=Pt.concat(lr);(It.changeOnSelect||!lr[Dt]||!lr[Dt].length)&&Gt.push(Ar),lr[Dt]&&(Gt=Gt.concat(_i(lr[Dt],It,Ar)))}),Gt}var Gi=function(It){return It.join(" / ")};function tn(Xt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(Xt||[]).forEach(function(Pt){var Kt=It.value||"value";Object(hr.a)(Kt in Pt,"Cascader","Not found `value` in `options`."),tn(Pt[It.children||"children"],It)})}var Tn=function(Xt){a()(Pt,Xt);var It=u()(Pt);function Pt(Kt){var Gt;return f()(this,Pt),Gt=It.call(this,Kt),Gt.cachedOptions=[],Gt.setValue=function(Dt){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in Gt.props||Gt.setState({value:Dt});var Ar=Gt.props.onChange;Ar&&Ar(Dt,lr)},Gt.saveInput=function(Dt){Gt.input=Dt},Gt.handleChange=function(Dt,lr){if(Gt.setState({inputValue:""}),lr[0].__IS_FILTERED_OPTION){var Ar=Dt[0],yr=lr[0].path;Gt.setValue(Ar,yr);return}Gt.setValue(Dt,lr)},Gt.handlePopupVisibleChange=function(Dt){"popupVisible"in Gt.props||Gt.setState(function(Ar){return{popupVisible:Dt,inputFocused:Dt,inputValue:Dt?Ar.inputValue:""}});var lr=Gt.props.onPopupVisibleChange;lr&&lr(Dt)},Gt.handleInputBlur=function(){Gt.setState({inputFocused:!1})},Gt.handleInputClick=function(Dt){var lr=Gt.state,Ar=lr.inputFocused,yr=lr.popupVisible;(Ar||yr)&&Dt.stopPropagation()},Gt.handleKeyDown=function(Dt){(Dt.keyCode===ur.a.BACKSPACE||Dt.keyCode===ur.a.SPACE)&&Dt.stopPropagation()},Gt.handleInputChange=function(Dt){var lr=Gt.state.popupVisible,Ar=Dt.target.value;lr||Gt.handlePopupVisibleChange(!0),Gt.setState({inputValue:Ar})},Gt.clearSelection=function(Dt){var lr=Gt.state.inputValue;Dt.preventDefault(),Dt.stopPropagation(),lr?Gt.setState({inputValue:""}):(Gt.handlePopupVisibleChange(!1),Gt.clearSelectionTimeout=setTimeout(function(){Gt.setValue([])},200))},Gt.renderCascader=function(Dt,lr){var Ar=Dt.getPopupContainer,yr=Dt.getPrefixCls,Mr=Dt.renderEmpty,zn=Dt.direction;return r.createElement(Zr.b.Consumer,null,function(Rn){var di,gn,Br,_n,Gn=n()(Gt),Zn=Gn.props,ai=Gn.state,Ei=Zn.prefixCls,Ri=Zn.inputPrefixCls,Di=Zn.children,oa=Zn.placeholder,ma=oa===void 0?lr.placeholder||"Please select":oa,aa=Zn.size,ba=Zn.disabled,Ai=Zn.className,Dn=Zn.style,Bi=Zn.allowClear,ha=Zn.showSearch,ta=ha===void 0?!1:ha,ra=Zn.suffixIcon,Ir=Zn.expandIcon,Sr=Zn.notFoundContent,En=Zn.popupClassName,fr=Zn.bordered,kr=Zn.dropdownRender,Vr=pn(Zn,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),un=aa||Rn,kn=ai.value,_t=ai.inputFocused,Or=zn==="rtl",Lr=yr("cascader",Ei),en=yr("input",Ri),Sn=P()((di={},v()(di,"".concat(en,"-lg"),un==="large"),v()(di,"".concat(en,"-sm"),un==="small"),di)),On=Bi&&!ba&&kn.length>0||ai.inputValue?r.createElement(xi.a,{className:"".concat(Lr,"-picker-clear"),onClick:Gt.clearSelection}):null,wn=P()((gn={},v()(gn,"".concat(Lr,"-picker-arrow"),!0),v()(gn,"".concat(Lr,"-picker-arrow-expand"),ai.popupVisible),gn)),$n=P()(Ai,"".concat(Lr,"-picker"),(Br={},v()(Br,"".concat(Lr,"-picker-rtl"),Or),v()(Br,"".concat(Lr,"-picker-with-value"),ai.inputValue),v()(Br,"".concat(Lr,"-picker-disabled"),ba),v()(Br,"".concat(Lr,"-picker-").concat(un),!!un),v()(Br,"".concat(Lr,"-picker-show-search"),!!ta),v()(Br,"".concat(Lr,"-picker-focused"),_t),v()(Br,"".concat(Lr,"-picker-borderless"),!fr),Br)),jn=Object(qn.default)(Vr,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),pi=Zn.options,Mi=ii(Gt.props);if(pi&&pi.length>0)ai.inputValue&&(pi=Gt.generateFilteredOptions(Lr,Mr));else{var yi;pi=[(yi={},v()(yi,Mi.label,Sr||Mr("Cascader")),v()(yi,Mi.value,"ANT_CASCADER_NOT_FOUND"),yi)]}ai.popupVisible?Gt.cachedOptions=pi:pi=Gt.cachedOptions;var Oi={},zi=(pi||[]).length===1&&pi[0].isEmptyNode;zi&&(Oi.height="auto");var ea=ta.matchInputWidth!==!1;ea&&(ai.inputValue||zi)&&Gt.input&&(Oi.width=Gt.input.input.offsetWidth);var Xi;ra?Xi=Object(Xr.c)(ra,r.createElement("span",{className:"".concat(Lr,"-picker-arrow")},ra),function(){var Pa;return{className:P()((Pa={},v()(Pa,ra.props.className,ra.props.className),v()(Pa,"".concat(Lr,"-picker-arrow"),!0),Pa))}}):Xi=r.createElement(Hi.a,{className:wn});var Wi=Di||r.createElement("span",{style:Dn,className:$n},r.createElement("span",{className:"".concat(Lr,"-picker-label")},Gt.getLabel()),r.createElement(st.a,p()({},jn,{tabIndex:"-1",ref:Gt.saveInput,prefixCls:en,placeholder:kn&&kn.length>0?void 0:ma,className:"".concat(Lr,"-input ").concat(Sn),value:ai.inputValue,disabled:ba,readOnly:!ta,autoComplete:jn.autoComplete||"off",onClick:ta?Gt.handleInputClick:void 0,onBlur:ta?Gt.handleInputBlur:void 0,onKeyDown:Gt.handleKeyDown,onChange:ta?Gt.handleInputChange:void 0})),On,Xi),ji;Ir?ji=Ir:ji=Or?r.createElement(Ze.a,null):r.createElement(Ne.a,null);var Ji=r.createElement("span",{className:"".concat(Lr,"-menu-item-loading-icon")},r.createElement(Xe.a,{spin:!0})),ca=Zn.getPopupContainer||Ar,Ca=Object(qn.default)(Zn,["inputIcon","expandIcon","loadingIcon","bordered"]),na=P()(En,(_n={},v()(_n,"".concat(Lr,"-menu-").concat(zn),zn==="rtl"),v()(_n,"".concat(Lr,"-menu-empty"),pi.length===1&&pi[0].value==="ANT_CASCADER_NOT_FOUND"),_n));return r.createElement(ei,p()({},Ca,{prefixCls:Lr,getPopupContainer:ca,options:pi,value:kn,popupVisible:ai.popupVisible,onPopupVisibleChange:Gt.handlePopupVisibleChange,onChange:Gt.handleChange,dropdownMenuColumnStyle:Oi,expandIcon:ji,loadingIcon:Ji,popupClassName:na,popupPlacement:Gt.getPopupPlacement(zn),dropdownRender:kr}),Wi)})},Gt.state={value:Kt.value||Kt.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:Kt.popupVisible,flattenOptions:Kt.showSearch?_i(Kt.options,Kt):void 0,prevProps:Kt},Gt}return l()(Pt,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var Gt=this.props,Dt=Gt.options,lr=Gt.displayRender,Ar=lr===void 0?Gi:lr,yr=ii(this.props),Mr=this.state.value,zn=Array.isArray(Mr[0])?Mr[0]:Mr,Rn=sr()(Dt,function(gn,Br){return gn[yr.value]===zn[Br]},{childrenKeyName:yr.children}),di=Rn.length?Rn.map(function(gn){return gn[yr.label]}):Mr;return Ar(di,Rn)}},{key:"generateFilteredOptions",value:function(Gt,Dt){var lr=this,Ar,yr=this.props,Mr=yr.showSearch,zn=yr.notFoundContent,Rn=ii(this.props),di=Mr.filter,gn=di===void 0?Rr:di,Br=Mr.render,_n=Br===void 0?Pn:Br,Gn=Mr.sort,Zn=Gn===void 0?an:Gn,ai=Mr.limit,Ei=ai===void 0?gr:ai,Ri=this.state,Di=Ri.flattenOptions,oa=Di===void 0?[]:Di,ma=Ri.inputValue,aa;if(Ei>0){aa=[];var ba=0;oa.some(function(Ai){var Dn=gn(lr.state.inputValue,Ai,Rn);return Dn&&(aa.push(Ai),ba+=1),ba>=Ei})}else Object(hr.a)(typeof Ei!="number","Cascader","'limit' of showSearch should be positive number or false."),aa=oa.filter(function(Ai){return gn(lr.state.inputValue,Ai,Rn)});return aa=aa.sort(function(Ai,Dn){return Zn(Ai,Dn,ma,Rn)}),aa.length>0?aa.map(function(Ai){var Dn;return Dn={__IS_FILTERED_OPTION:!0,path:Ai},v()(Dn,Rn.value,Ai.map(function(Bi){return Bi[Rn.value]})),v()(Dn,Rn.label,_n(ma,Ai,Gt,Rn)),v()(Dn,"disabled",Ai.some(function(Bi){return!!Bi.disabled})),v()(Dn,"isEmptyNode",!0),Dn}):[(Ar={},v()(Ar,Rn.value,"ANT_CASCADER_NOT_FOUND"),v()(Ar,Rn.label,zn||Dt("Cascader")),v()(Ar,"disabled",!0),v()(Ar,"isEmptyNode",!0),Ar)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",Dt=this.props.popupPlacement;return Dt!==void 0?Dt:Gt==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var Gt=this;return r.createElement(xt.a,null,function(Dt){return r.createElement(pt.a,null,function(lr){return Gt.renderCascader(Dt,lr)})})}}],[{key:"getDerivedStateFromProps",value:function(Gt,Dt){var lr=Dt.prevProps,Ar={prevProps:Gt};return"value"in Gt&&(Ar.value=Gt.value||[]),"popupVisible"in Gt&&(Ar.popupVisible=Gt.popupVisible),Gt.showSearch&&lr.options!==Gt.options&&(Ar.flattenOptions=_i(Gt.options,Gt)),Ar}}]),Pt}(r.Component);Tn.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};var Vn=D.a=Tn},DFhj:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("GGyF"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},DL4k:function(R,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(R,D,i){var y=i("Fofx"),p=i("QBsz"),x=y.identity,v=5e-5;function m(a){return a>v||a<-v}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&&x(r);return}r=r||y.create(),u?this.getLocalTransform(r):x(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,A=((l[1]-h)*s+h)/l[1]||0;r[0]*=g,r[1]*=g,r[2]*=A,r[3]*=A}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||[],x(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;R.exports=t},DO2E:function(R,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(R,D,i){(function(y){var p=i("Kz5y"),x=i("B8du"),v=D&&!D.nodeType&&D,m=v&&typeof y=="object"&&y&&!y.nodeType&&y,f=m&&m.exports===v,d=f?p.Buffer:void 0,l=d?d.isBuffer:void 0,o=l||x;y.exports=o}).call(this,i("YuTi")(R))},DYRE:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("OPEp"),v=i.n(x)},DZo9:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("JGo8"),v=i.n(x),m=i("+L6B"),f=i("MXD1"),d=i("5Dmo")},Dagg:function(R,D,i){var y=i("Gev7"),p=i("mFDi"),x=i("bYtY"),v=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=v.createOrUpdateImage(t,this._image,this,this.onload);if(!a||!v.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,A=r-h,b=s-g;l.drawImage(a,h,g,A,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}},x.inherits(m,y);var f=m;R.exports=f},Dg8C:function(R,D,i){var y=i("XxSj"),p=i("bYtY");function x(v,m){v.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)})}})}R.exports=x},DjyN:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("Urep"),v=i.n(x),m=i("OaEy")},DlQD:function(R,D,i){(function(y,p){R.exports=p()})(this,function(){"use strict";function y(Mt,Ot){for(var Bt=0;Bt<Ot.length;Bt++){var Ke=Ot[Bt];Ke.enumerable=Ke.enumerable||!1,Ke.configurable=!0,"value"in Ke&&(Ke.writable=!0),Object.defineProperty(Mt,Ke.key,Ke)}}function p(Mt,Ot,Bt){return Ot&&y(Mt.prototype,Ot),Bt&&y(Mt,Bt),Mt}function x(Mt,Ot){if(!Mt)return;if(typeof Mt=="string")return v(Mt,Ot);var Bt=Object.prototype.toString.call(Mt).slice(8,-1);if(Bt==="Object"&&Mt.constructor&&(Bt=Mt.constructor.name),Bt==="Map"||Bt==="Set")return Array.from(Mt);if(Bt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Bt))return v(Mt,Ot)}function v(Mt,Ot){(Ot==null||Ot>Mt.length)&&(Ot=Mt.length);for(var Bt=0,Ke=new Array(Ot);Bt<Ot;Bt++)Ke[Bt]=Mt[Bt];return Ke}function m(Mt,Ot){var Bt;if(typeof Symbol=="undefined"||Mt[Symbol.iterator]==null){if(Array.isArray(Mt)||(Bt=x(Mt))||Ot&&Mt&&typeof Mt.length=="number"){Bt&&(Mt=Bt);var Ke=0;return function(){return Ke>=Mt.length?{done:!0}:{done:!1,value:Mt[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=Mt[Symbol.iterator](),Bt.next.bind(Bt)}function f(Mt,Ot){return Ot={exports:{}},Mt(Ot,Ot.exports),Ot.exports}var d=f(function(Mt){function Ot(){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){Mt.exports.defaults=Ke}Mt.exports={defaults:Ot(),getDefaults:Ot,changeDefaults:Bt}}),l=d.defaults,o=d.getDefaults,n=d.changeDefaults,t=/[&<>"']/,a=/[&<>"']/g,e=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,r={"&":"&","<":"<",">":">",'"':""","'":"'"},s=function(Ot){return r[Ot]};function c(Mt,Ot){if(Ot){if(t.test(Mt))return Mt.replace(a,s)}else if(e.test(Mt))return Mt.replace(u,s);return Mt}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function g(Mt){return Mt.replace(h,function(Ot,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 A=/(^|[^\[])\^/g;function b(Mt,Ot){Mt=Mt.source||Mt,Ot=Ot||"";var Bt={replace:function(de,se){return se=se.source||se,se=se.replace(A,"$1"),Mt=Mt.replace(de,se),Bt},getRegex:function(){return new RegExp(Mt,Ot)}};return Bt}var w=/[^\w:]/g,E=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function C(Mt,Ot,Bt){if(Mt){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}Ot&&!E.test(Bt)&&(Bt=I(Ot,Bt));try{Bt=encodeURI(Bt).replace(/%25/g,"%")}catch(de){return null}return Bt}var _={},T=/^[^:]+:\/*[^/]*$/,S=/^([^:]+:)[\s\S]*$/,O=/^([^:]+:\/*[^/]*)[\s\S]*$/;function I(Mt,Ot){_[" "+Mt]||(T.test(Mt)?_[" "+Mt]=Mt+"/":_[" "+Mt]=k(Mt,"/",!0)),Mt=_[" "+Mt];var Bt=Mt.indexOf(":")===-1;return Ot.substring(0,2)==="//"?Bt?Ot:Mt.replace(S,"$1")+Ot:Ot.charAt(0)==="/"?Bt?Ot:Mt.replace(O,"$1")+Ot:Mt+Ot}var F={exec:function(){}};function P(Mt){for(var Ot=1,Bt,Ke;Ot<arguments.length;Ot++){Bt=arguments[Ot];for(Ke in Bt)Object.prototype.hasOwnProperty.call(Bt,Ke)&&(Mt[Ke]=Bt[Ke])}return Mt}function B(Mt,Ot){var Bt=Mt.replace(/\|/g,function(se,ut,qe){for(var me=!1,Wt=ut;--Wt>=0&&qe[Wt]==="\\";)me=!me;return me?"|":" |"}),Ke=Bt.split(/ \|/),de=0;if(Ke.length>Ot)Ke.splice(Ot);else for(;Ke.length<Ot;)Ke.push("");for(;de<Ke.length;de++)Ke[de]=Ke[de].trim().replace(/\\\|/g,"|");return Ke}function k(Mt,Ot,Bt){var Ke=Mt.length;if(Ke===0)return"";for(var de=0;de<Ke;){var se=Mt.charAt(Ke-de-1);if(se===Ot&&!Bt)de++;else if(se!==Ot&&Bt)de++;else break}return Mt.substr(0,Ke-de)}function G(Mt,Ot){if(Mt.indexOf(Ot[1])===-1)return-1;for(var Bt=Mt.length,Ke=0,de=0;de<Bt;de++)if(Mt[de]==="\\")de++;else if(Mt[de]===Ot[0])Ke++;else if(Mt[de]===Ot[1]&&(Ke--,Ke<0))return de;return-1}function M(Mt){Mt&&Mt.sanitize&&!Mt.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var j={escape:c,unescape:g,edit:b,cleanUrl:C,resolveUrl:I,noopTest:F,merge:P,splitCells:B,rtrim:k,findClosingBracket:G,checkSanitizeDeprecation:M},K=d.defaults,z=j.rtrim,V=j.splitCells,Q=j.escape,X=j.findClosingBracket;function te(Mt,Ot,Bt){var Ke=Ot.href,de=Ot.title?Q(Ot.title):null,se=Mt[1].replace(/\\([\[\]])/g,"$1");return Mt[0].charAt(0)!=="!"?{type:"link",raw:Bt,href:Ke,title:de,text:se}:{type:"image",raw:Bt,href:Ke,title:de,text:Q(se)}}function $(Mt,Ot){var Bt=Mt.match(/^(\s+)(?:```)/);if(Bt===null)return Ot;var Ke=Bt[1];return Ot.split(`
|
|
|
`).map(function(de){var se=de.match(/^\s+/);if(se===null)return de;var ut=se[0];return ut.length>=Ke.length?de.slice(Ke.length):de}).join(`
|
|
|
`)}var le=function(){function Mt(Bt){this.options=Bt||K}var Ot=Mt.prototype;return Ot.space=function(Ke){var de=this.rules.block.newline.exec(Ke);if(de)return de[0].length>1?{type:"space",raw:de[0]}:{raw:`
|
|
|
`}},Ot.code=function(Ke,de){var se=this.rules.block.code.exec(Ke);if(se){var ut=de[de.length-1];if(ut&&ut.type==="paragraph")return{raw:se[0],text:se[0].trimRight()};var qe=se[0].replace(/^ {4}/gm,"");return{type:"code",raw:se[0],codeBlockStyle:"indented",text:this.options.pedantic?qe:z(qe,`
|
|
|
`)}}},Ot.fences=function(Ke){var de=this.rules.block.fences.exec(Ke);if(de){var se=de[0],ut=$(se,de[3]||"");return{type:"code",raw:se,lang:de[2]?de[2].trim():de[2],text:ut}}},Ot.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]}},Ot.nptable=function(Ke){var de=this.rules.block.nptable.exec(Ke);if(de){var se={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(se.header.length===se.align.length){var ut=se.align.length,qe;for(qe=0;qe<ut;qe++)/^ *-+: *$/.test(se.align[qe])?se.align[qe]="right":/^ *:-+: *$/.test(se.align[qe])?se.align[qe]="center":/^ *:-+ *$/.test(se.align[qe])?se.align[qe]="left":se.align[qe]=null;for(ut=se.cells.length,qe=0;qe<ut;qe++)se.cells[qe]=V(se.cells[qe],se.header.length);return se}}},Ot.hr=function(Ke){var de=this.rules.block.hr.exec(Ke);if(de)return{type:"hr",raw:de[0]}},Ot.blockquote=function(Ke){var de=this.rules.block.blockquote.exec(Ke);if(de){var se=de[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:de[0],text:se}}},Ot.list=function(Ke){var de=this.rules.block.list.exec(Ke);if(de){for(var se=de[0],ut=de[2],qe=ut.length>1,me=ut[ut.length-1]===")",Wt={type:"list",raw:se,ordered:qe,start:qe?+ut.slice(0,-1):"",loose:!1,items:[]},dr=de[0].match(this.rules.block.item),vt=!1,rr,ur,mn,sr,xr,pr,Zt,Ct=dr.length,on=0;on<Ct;on++)rr=dr[on],se=rr,ur=rr.length,rr=rr.replace(/^ *([*+-]|\d+[.)]) */,""),~rr.indexOf(`
|
|
|
`)&&(ur-=rr.length,rr=this.options.pedantic?rr.replace(/^ {1,4}/gm,""):rr.replace(new RegExp("^ {1,"+ur+"}","gm"),"")),on!==Ct-1&&(mn=this.rules.block.bullet.exec(dr[on+1])[0],(qe?mn.length===1||!me&&mn[mn.length-1]===")":mn.length>1||this.options.smartLists&&mn!==ut)&&(sr=dr.slice(on+1).join(`
|
|
|
`),Wt.raw=Wt.raw.substring(0,Wt.raw.length-sr.length),on=Ct-1)),xr=vt||/\n\n(?!\s*$)/.test(rr),on!==Ct-1&&(vt=rr.charAt(rr.length-1)===`
|
|
|
`,xr||(xr=vt)),xr&&(Wt.loose=!0),pr=/^\[[ xX]\] /.test(rr),Zt=void 0,pr&&(Zt=rr[1]!==" ",rr=rr.replace(/^\[[ xX]\] +/,"")),Wt.items.push({type:"list_item",raw:se,task:pr,checked:Zt,loose:xr,text:rr});return Wt}},Ot.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]}},Ot.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 se=de[1].toLowerCase().replace(/\s+/g," ");return{tag:se,raw:de[0],href:de[2],title:de[3]}}},Ot.table=function(Ke){var de=this.rules.block.table.exec(Ke);if(de){var se={type:"table",header:V(de[1].replace(/^ *| *\| *$/g,"")),align:de[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:de[3]?de[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(se.header.length===se.align.length){se.raw=de[0];var ut=se.align.length,qe;for(qe=0;qe<ut;qe++)/^ *-+: *$/.test(se.align[qe])?se.align[qe]="right":/^ *:-+: *$/.test(se.align[qe])?se.align[qe]="center":/^ *:-+ *$/.test(se.align[qe])?se.align[qe]="left":se.align[qe]=null;for(ut=se.cells.length,qe=0;qe<ut;qe++)se.cells[qe]=V(se.cells[qe].replace(/^ *\| *| *\| *$/g,""),se.header.length);return se}}},Ot.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]}},Ot.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]}},Ot.text=function(Ke,de){var se=this.rules.block.text.exec(Ke);if(se){var ut=de[de.length-1];return ut&&ut.type==="text"?{raw:se[0],text:se[0]}:{type:"text",raw:se[0],text:se[0]}}},Ot.escape=function(Ke){var de=this.rules.inline.escape.exec(Ke);if(de)return{type:"escape",raw:de[0],text:Q(de[1])}},Ot.tag=function(Ke,de,se){var ut=this.rules.inline.tag.exec(Ke);if(ut)return!de&&/^<a /i.test(ut[0])?de=!0:de&&/^<\/a>/i.test(ut[0])&&(de=!1),!se&&/^<(pre|code|kbd|script)(\s|>)/i.test(ut[0])?se=!0:se&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ut[0])&&(se=!1),{type:this.options.sanitize?"text":"html",raw:ut[0],inLink:de,inRawBlock:se,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ut[0]):Q(ut[0]):ut[0]}},Ot.link=function(Ke){var de=this.rules.inline.link.exec(Ke);if(de){var se=X(de[2],"()");if(se>-1){var ut=de[0].indexOf("!")===0?5:4,qe=ut+de[1].length+se;de[2]=de[2].substring(0,se),de[0]=de[0].substring(0,qe).trim(),de[3]=""}var me=de[2],Wt="";if(this.options.pedantic){var dr=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(me);dr?(me=dr[1],Wt=dr[3]):Wt=""}else Wt=de[3]?de[3].slice(1,-1):"";me=me.trim().replace(/^<([\s\S]*)>$/,"$1");var vt=te(de,{href:me&&me.replace(this.rules.inline._escapes,"$1"),title:Wt&&Wt.replace(this.rules.inline._escapes,"$1")},de[0]);return vt}},Ot.reflink=function(Ke,de){var se;if((se=this.rules.inline.reflink.exec(Ke))||(se=this.rules.inline.nolink.exec(Ke))){var ut=(se[2]||se[1]).replace(/\s+/g," ");if(ut=de[ut.toLowerCase()],!ut||!ut.href){var qe=se[0].charAt(0);return{type:"text",raw:qe,text:qe}}var me=te(se,ut,se[0]);return me}},Ot.strong=function(Ke,de,se){se===void 0&&(se="");var ut=this.rules.inline.strong.start.exec(Ke);if(ut&&(!ut[1]||ut[1]&&(se===""||this.rules.inline.punctuation.exec(se)))){de=de.slice(-1*Ke.length);var qe=ut[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;qe.lastIndex=0;for(var me;(ut=qe.exec(de))!=null;)if(me=this.rules.inline.strong.middle.exec(de.slice(0,ut.index+3)),me)return{type:"strong",raw:Ke.slice(0,me[0].length),text:Ke.slice(2,me[0].length-2)}}},Ot.em=function(Ke,de,se){se===void 0&&(se="");var ut=this.rules.inline.em.start.exec(Ke);if(ut&&(!ut[1]||ut[1]&&(se===""||this.rules.inline.punctuation.exec(se)))){de=de.slice(-1*Ke.length);var qe=ut[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;qe.lastIndex=0;for(var me;(ut=qe.exec(de))!=null;)if(me=this.rules.inline.em.middle.exec(de.slice(0,ut.index+2)),me)return{type:"em",raw:Ke.slice(0,me[0].length),text:Ke.slice(1,me[0].length-1)}}},Ot.codespan=function(Ke){var de=this.rules.inline.code.exec(Ke);if(de){var se=de[2].replace(/\n/g," "),ut=/[^ ]/.test(se),qe=se.startsWith(" ")&&se.endsWith(" ");return ut&&qe&&(se=se.substring(1,se.length-1)),se=Q(se,!0),{type:"codespan",raw:de[0],text:se}}},Ot.br=function(Ke){var de=this.rules.inline.br.exec(Ke);if(de)return{type:"br",raw:de[0]}},Ot.del=function(Ke){var de=this.rules.inline.del.exec(Ke);if(de)return{type:"del",raw:de[0],text:de[1]}},Ot.autolink=function(Ke,de){var se=this.rules.inline.autolink.exec(Ke);if(se){var ut,qe;return se[2]==="@"?(ut=Q(this.options.mangle?de(se[1]):se[1]),qe="mailto:"+ut):(ut=Q(se[1]),qe=ut),{type:"link",raw:se[0],text:ut,href:qe,tokens:[{type:"text",raw:ut,text:ut}]}}},Ot.url=function(Ke,de){var se;if(se=this.rules.inline.url.exec(Ke)){var ut,qe;if(se[2]==="@")ut=Q(this.options.mangle?de(se[0]):se[0]),qe="mailto:"+ut;else{var me;do me=se[0],se[0]=this.rules.inline._backpedal.exec(se[0])[0];while(me!==se[0]);ut=Q(se[0]),se[1]==="www."?qe="http://"+ut:qe=ut}return{type:"link",raw:se[0],text:ut,href:qe,tokens:[{type:"text",raw:ut,text:ut}]}}},Ot.inlineText=function(Ke,de,se){var ut=this.rules.inline.text.exec(Ke);if(ut){var qe;return de?qe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ut[0]):Q(ut[0]):ut[0]:qe=Q(this.options.smartypants?se(ut[0]):ut[0]),{type:"text",raw:ut[0],text:qe}}},Mt}(),re=j.noopTest,Se=j.edit,Re=j.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 Ge={block:Pe,inline:Je},ct=d.defaults,Ue=Ge.block,ae=Ge.inline;function lt(Mt){return Mt.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 pe(Mt){var Ot="",Bt,Ke,de=Mt.length;for(Bt=0;Bt<de;Bt++)Ke=Mt.charCodeAt(Bt),Math.random()>.5&&(Ke="x"+Ke.toString(16)),Ot+="&#"+Ke+";";return Ot}var J=function(){function Mt(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:ae.normal};this.options.pedantic?(Ke.block=Ue.pedantic,Ke.inline=ae.pedantic):this.options.gfm&&(Ke.block=Ue.gfm,this.options.breaks?Ke.inline=ae.breaks:Ke.inline=ae.gfm),this.tokenizer.rules=Ke}Mt.lex=function(Ke,de){var se=new Mt(de);return se.lex(Ke)};var Ot=Mt.prototype;return Ot.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},Ot.blockTokens=function(Ke,de,se){de===void 0&&(de=[]),se===void 0&&(se=!0),Ke=Ke.replace(/^ +$/gm,"");for(var ut,qe,me,Wt;Ke;){if(ut=this.tokenizer.space(Ke)){Ke=Ke.substring(ut.raw.length),ut.type&&de.push(ut);continue}if(ut=this.tokenizer.code(Ke,de)){Ke=Ke.substring(ut.raw.length),ut.type?de.push(ut):(Wt=de[de.length-1],Wt.raw+=`
|
|
|
`+ut.raw,Wt.text+=`
|
|
|
`+ut.text);continue}if(ut=this.tokenizer.fences(Ke)){Ke=Ke.substring(ut.raw.length),de.push(ut);continue}if(ut=this.tokenizer.heading(Ke)){Ke=Ke.substring(ut.raw.length),de.push(ut);continue}if(ut=this.tokenizer.nptable(Ke)){Ke=Ke.substring(ut.raw.length),de.push(ut);continue}if(ut=this.tokenizer.hr(Ke)){Ke=Ke.substring(ut.raw.length),de.push(ut);continue}if(ut=this.tokenizer.blockquote(Ke)){Ke=Ke.substring(ut.raw.length),ut.tokens=this.blockTokens(ut.text,[],se),de.push(ut);continue}if(ut=this.tokenizer.list(Ke)){for(Ke=Ke.substring(ut.raw.length),me=ut.items.length,qe=0;qe<me;qe++)ut.items[qe].tokens=this.blockTokens(ut.items[qe].text,[],!1);de.push(ut);continue}if(ut=this.tokenizer.html(Ke)){Ke=Ke.substring(ut.raw.length),de.push(ut);continue}if(se&&(ut=this.tokenizer.def(Ke))){Ke=Ke.substring(ut.raw.length),this.tokens.links[ut.tag]||(this.tokens.links[ut.tag]={href:ut.href,title:ut.title});continue}if(ut=this.tokenizer.table(Ke)){Ke=Ke.substring(ut.raw.length),de.push(ut);continue}if(ut=this.tokenizer.lheading(Ke)){Ke=Ke.substring(ut.raw.length),de.push(ut);continue}if(se&&(ut=this.tokenizer.paragraph(Ke))){Ke=Ke.substring(ut.raw.length),de.push(ut);continue}if(ut=this.tokenizer.text(Ke,de)){Ke=Ke.substring(ut.raw.length),ut.type?de.push(ut):(Wt=de[de.length-1],Wt.raw+=`
|
|
|
`+ut.raw,Wt.text+=`
|
|
|
`+ut.text);continue}if(Ke){var dr="Infinite loop on byte: "+Ke.charCodeAt(0);if(this.options.silent){console.error(dr);break}else throw new Error(dr)}}return de},Ot.inline=function(Ke){var de,se,ut,qe,me,Wt,dr=Ke.length;for(de=0;de<dr;de++){Wt=Ke[de];switch(Wt.type){case"paragraph":case"text":case"heading":{Wt.tokens=[],this.inlineTokens(Wt.text,Wt.tokens);break}case"table":{for(Wt.tokens={header:[],cells:[]},qe=Wt.header.length,se=0;se<qe;se++)Wt.tokens.header[se]=[],this.inlineTokens(Wt.header[se],Wt.tokens.header[se]);for(qe=Wt.cells.length,se=0;se<qe;se++)for(me=Wt.cells[se],Wt.tokens.cells[se]=[],ut=0;ut<me.length;ut++)Wt.tokens.cells[se][ut]=[],this.inlineTokens(me[ut],Wt.tokens.cells[se][ut]);break}case"blockquote":{this.inline(Wt.tokens);break}case"list":{for(qe=Wt.items.length,se=0;se<qe;se++)this.inline(Wt.items[se].tokens);break}}}return Ke},Ot.inlineTokens=function(Ke,de,se,ut,qe){de===void 0&&(de=[]),se===void 0&&(se=!1),ut===void 0&&(ut=!1),qe===void 0&&(qe="");var me,Wt=Ke,dr;if(this.tokens.links){var vt=Object.keys(this.tokens.links);if(vt.length>0)for(;(dr=this.tokenizer.rules.inline.reflinkSearch.exec(Wt))!=null;)vt.includes(dr[0].slice(dr[0].lastIndexOf("[")+1,-1))&&(Wt=Wt.slice(0,dr.index)+"["+"a".repeat(dr[0].length-2)+"]"+Wt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(dr=this.tokenizer.rules.inline.blockSkip.exec(Wt))!=null;)Wt=Wt.slice(0,dr.index)+"["+"a".repeat(dr[0].length-2)+"]"+Wt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ke;){if(me=this.tokenizer.escape(Ke)){Ke=Ke.substring(me.raw.length),de.push(me);continue}if(me=this.tokenizer.tag(Ke,se,ut)){Ke=Ke.substring(me.raw.length),se=me.inLink,ut=me.inRawBlock,de.push(me);continue}if(me=this.tokenizer.link(Ke)){Ke=Ke.substring(me.raw.length),me.type==="link"&&(me.tokens=this.inlineTokens(me.text,[],!0,ut)),de.push(me);continue}if(me=this.tokenizer.reflink(Ke,this.tokens.links)){Ke=Ke.substring(me.raw.length),me.type==="link"&&(me.tokens=this.inlineTokens(me.text,[],!0,ut)),de.push(me);continue}if(me=this.tokenizer.strong(Ke,Wt,qe)){Ke=Ke.substring(me.raw.length),me.tokens=this.inlineTokens(me.text,[],se,ut),de.push(me);continue}if(me=this.tokenizer.em(Ke,Wt,qe)){Ke=Ke.substring(me.raw.length),me.tokens=this.inlineTokens(me.text,[],se,ut),de.push(me);continue}if(me=this.tokenizer.codespan(Ke)){Ke=Ke.substring(me.raw.length),de.push(me);continue}if(me=this.tokenizer.br(Ke)){Ke=Ke.substring(me.raw.length),de.push(me);continue}if(me=this.tokenizer.del(Ke)){Ke=Ke.substring(me.raw.length),me.tokens=this.inlineTokens(me.text,[],se,ut),de.push(me);continue}if(me=this.tokenizer.autolink(Ke,pe)){Ke=Ke.substring(me.raw.length),de.push(me);continue}if(!se&&(me=this.tokenizer.url(Ke,pe))){Ke=Ke.substring(me.raw.length),de.push(me);continue}if(me=this.tokenizer.inlineText(Ke,ut,lt)){Ke=Ke.substring(me.raw.length),qe=me.raw.slice(-1),de.push(me);continue}if(Ke){var rr="Infinite loop on byte: "+Ke.charCodeAt(0);if(this.options.silent){console.error(rr);break}else throw new Error(rr)}}return de},p(Mt,null,[{key:"rules",get:function(){return{block:Ue,inline:ae}}}]),Mt}(),Y=d.defaults,ee=j.cleanUrl,fe=j.escape,we=function(){function Mt(Bt){this.options=Bt||Y}var Ot=Mt.prototype;return Ot.code=function(Ke,de,se){var ut=(de||"").match(/\S*/)[0];if(this.options.highlight){var qe=this.options.highlight(Ke,ut);qe!=null&&qe!==Ke&&(se=!0,Ke=qe)}return ut?'<pre><code class="'+this.options.langPrefix+fe(ut,!0)+'">'+(se?Ke:fe(Ke,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(se?Ke:fe(Ke,!0))+`</code></pre>
|
|
|
`},Ot.blockquote=function(Ke){return`<blockquote>
|
|
|
`+Ke+`</blockquote>
|
|
|
`},Ot.html=function(Ke){return Ke},Ot.heading=function(Ke,de,se,ut){return this.options.headerIds?"<h"+de+' id="'+this.options.headerPrefix+ut.slug(se)+'">'+Ke+"</h"+de+`>
|
|
|
`:"<h"+de+">"+Ke+"</h"+de+`>
|
|
|
`},Ot.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},Ot.list=function(Ke,de,se){var ut=de?"ol":"ul",qe=de&&se!==1?' start="'+se+'"':"";return"<"+ut+qe+`>
|
|
|
`+Ke+"</"+ut+`>
|
|
|
`},Ot.listitem=function(Ke){return"<li>"+Ke+`</li>
|
|
|
`},Ot.checkbox=function(Ke){return"<input "+(Ke?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Ot.paragraph=function(Ke){return"<p>"+Ke+`</p>
|
|
|
`},Ot.table=function(Ke,de){return de&&(de="<tbody>"+de+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+Ke+`</thead>
|
|
|
`+de+`</table>
|
|
|
`},Ot.tablerow=function(Ke){return`<tr>
|
|
|
`+Ke+`</tr>
|
|
|
`},Ot.tablecell=function(Ke,de){var se=de.header?"th":"td",ut=de.align?"<"+se+' align="'+de.align+'">':"<"+se+">";return ut+Ke+"</"+se+`>
|
|
|
`},Ot.strong=function(Ke){return"<strong>"+Ke+"</strong>"},Ot.em=function(Ke){return"<em>"+Ke+"</em>"},Ot.codespan=function(Ke){return"<code>"+Ke+"</code>"},Ot.br=function(){return this.options.xhtml?"<br/>":"<br>"},Ot.del=function(Ke){return"<del>"+Ke+"</del>"},Ot.link=function(Ke,de,se){if(Ke=ee(this.options.sanitize,this.options.baseUrl,Ke),Ke===null)return se;var ut='<a href="'+fe(Ke)+'"';return de&&(ut+=' title="'+de+'"'),ut+=">"+se+"</a>",ut},Ot.image=function(Ke,de,se){if(Ke=ee(this.options.sanitize,this.options.baseUrl,Ke),Ke===null)return se;var ut='<img src="'+Ke+'" alt="'+se+'"';return de&&(ut+=' title="'+de+'"'),ut+=this.options.xhtml?"/>":">",ut},Ot.text=function(Ke){return Ke},Mt}(),Ce=function(){function Mt(){}var Ot=Mt.prototype;return Ot.strong=function(Ke){return Ke},Ot.em=function(Ke){return Ke},Ot.codespan=function(Ke){return Ke},Ot.del=function(Ke){return Ke},Ot.html=function(Ke){return Ke},Ot.text=function(Ke){return Ke},Ot.link=function(Ke,de,se){return""+se},Ot.image=function(Ke,de,se){return""+se},Ot.br=function(){return""},Mt}(),_e=function(){function Mt(){this.seen={}}var Ot=Mt.prototype;return Ot.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 se=de;do this.seen[se]++,de=se+"-"+this.seen[se];while(this.seen.hasOwnProperty(de))}return this.seen[de]=0,de},Mt}(),he=d.defaults,ye=j.unescape,Le=function(){function Mt(Bt){this.options=Bt||he,this.options.renderer=this.options.renderer||new we,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ce,this.slugger=new _e}Mt.parse=function(Ke,de){var se=new Mt(de);return se.parse(Ke)};var Ot=Mt.prototype;return Ot.parse=function(Ke,de){de===void 0&&(de=!0);var se="",ut,qe,me,Wt,dr,vt,rr,ur,mn,sr,xr,pr,Zt,Ct,on,Mn,Xn,oi,Ui=Ke.length;for(ut=0;ut<Ui;ut++){sr=Ke[ut];switch(sr.type){case"space":continue;case"hr":{se+=this.renderer.hr();continue}case"heading":{se+=this.renderer.heading(this.parseInline(sr.tokens),sr.depth,ye(this.parseInline(sr.tokens,this.textRenderer)),this.slugger);continue}case"code":{se+=this.renderer.code(sr.text,sr.lang,sr.escaped);continue}case"table":{for(ur="",rr="",Wt=sr.header.length,qe=0;qe<Wt;qe++)rr+=this.renderer.tablecell(this.parseInline(sr.tokens.header[qe]),{header:!0,align:sr.align[qe]});for(ur+=this.renderer.tablerow(rr),mn="",Wt=sr.cells.length,qe=0;qe<Wt;qe++){for(vt=sr.tokens.cells[qe],rr="",dr=vt.length,me=0;me<dr;me++)rr+=this.renderer.tablecell(this.parseInline(vt[me]),{header:!1,align:sr.align[me]});mn+=this.renderer.tablerow(rr)}se+=this.renderer.table(ur,mn);continue}case"blockquote":{mn=this.parse(sr.tokens),se+=this.renderer.blockquote(mn);continue}case"list":{for(xr=sr.ordered,pr=sr.start,Zt=sr.loose,Wt=sr.items.length,mn="",qe=0;qe<Wt;qe++)on=sr.items[qe],Mn=on.checked,Xn=on.task,Ct="",on.task&&(oi=this.renderer.checkbox(Mn),Zt?on.tokens.length>0&&on.tokens[0].type==="text"?(on.tokens[0].text=oi+" "+on.tokens[0].text,on.tokens[0].tokens&&on.tokens[0].tokens.length>0&&on.tokens[0].tokens[0].type==="text"&&(on.tokens[0].tokens[0].text=oi+" "+on.tokens[0].tokens[0].text)):on.tokens.unshift({type:"text",text:oi}):Ct+=oi),Ct+=this.parse(on.tokens,Zt),mn+=this.renderer.listitem(Ct,Xn,Mn);se+=this.renderer.list(mn,xr,pr);continue}case"html":{se+=this.renderer.html(sr.text);continue}case"paragraph":{se+=this.renderer.paragraph(this.parseInline(sr.tokens));continue}case"text":{for(mn=sr.tokens?this.parseInline(sr.tokens):sr.text;ut+1<Ui&&Ke[ut+1].type==="text";)sr=Ke[++ut],mn+=`
|
|
|
`+(sr.tokens?this.parseInline(sr.tokens):sr.text);se+=de?this.renderer.paragraph(mn):mn;continue}default:{var Un='Token with "'+sr.type+'" type was not found.';if(this.options.silent){console.error(Un);return}else throw new Error(Un)}}}return se},Ot.parseInline=function(Ke,de){de=de||this.renderer;var se="",ut,qe,me=Ke.length;for(ut=0;ut<me;ut++){qe=Ke[ut];switch(qe.type){case"escape":{se+=de.text(qe.text);break}case"html":{se+=de.html(qe.text);break}case"link":{se+=de.link(qe.href,qe.title,this.parseInline(qe.tokens,de));break}case"image":{se+=de.image(qe.href,qe.title,qe.text);break}case"strong":{se+=de.strong(this.parseInline(qe.tokens,de));break}case"em":{se+=de.em(this.parseInline(qe.tokens,de));break}case"codespan":{se+=de.codespan(qe.text);break}case"br":{se+=de.br();break}case"del":{se+=de.del(this.parseInline(qe.tokens,de));break}case"text":{se+=de.text(qe.text);break}default:{var Wt='Token with "'+qe.type+'" type was not found.';if(this.options.silent){console.error(Wt);return}else throw new Error(Wt)}}}return se},Mt}(),tt=j.merge,gt=j.checkSanitizeDeprecation,at=j.escape,Fe=d.getDefaults,mt=d.changeDefaults,et=d.defaults;function St(Mt,Ot,Bt){if(typeof Mt=="undefined"||Mt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Mt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Mt)+", string expected");if(typeof Ot=="function"&&(Bt=Ot,Ot=null),Ot=tt({},St.defaults,Ot||{}),gt(Ot),Bt){var Ke=Ot.highlight,de;try{de=J.lex(Mt,Ot)}catch(me){return Bt(me)}var se=function(Wt){var dr;if(!Wt)try{dr=Le.parse(de,Ot)}catch(vt){Wt=vt}return Ot.highlight=Ke,Wt?Bt(Wt):Bt(null,dr)};if(!Ke||Ke.length<3)return se();if(delete Ot.highlight,!de.length)return se();var ut=0;St.walkTokens(de,function(me){me.type==="code"&&(ut++,setTimeout(function(){Ke(me.text,me.lang,function(Wt,dr){if(Wt)return se(Wt);dr!=null&&dr!==me.text&&(me.text=dr,me.escaped=!0),ut--,ut===0&&se()})},0))}),ut===0&&se();return}try{var qe=J.lex(Mt,Ot);return Ot.walkTokens&&St.walkTokens(qe,Ot.walkTokens),Le.parse(qe,Ot)}catch(me){if(me.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Ot.silent)return"<p>An error occurred:</p><pre>"+at(me.message+"",!0)+"</pre>";throw me}}St.options=St.setOptions=function(Mt){return tt(St.defaults,Mt),mt(St.defaults),St},St.getDefaults=Fe,St.defaults=et,St.use=function(Mt){var Ot=tt({},Mt);if(Mt.renderer&&function(){var Ke=St.defaults.renderer||new we,de=function(qe){var me=Ke[qe];Ke[qe]=function(){for(var Wt=arguments.length,dr=new Array(Wt),vt=0;vt<Wt;vt++)dr[vt]=arguments[vt];var rr=Mt.renderer[qe].apply(Ke,dr);return rr===!1&&(rr=me.apply(Ke,dr)),rr}};for(var se in Mt.renderer)de(se);Ot.renderer=Ke}(),Mt.tokenizer&&function(){var Ke=St.defaults.tokenizer||new le,de=function(qe){var me=Ke[qe];Ke[qe]=function(){for(var Wt=arguments.length,dr=new Array(Wt),vt=0;vt<Wt;vt++)dr[vt]=arguments[vt];var rr=Mt.tokenizer[qe].apply(Ke,dr);return rr===!1&&(rr=me.apply(Ke,dr)),rr}};for(var se in Mt.tokenizer)de(se);Ot.tokenizer=Ke}(),Mt.walkTokens){var Bt=St.defaults.walkTokens;Ot.walkTokens=function(Ke){Mt.walkTokens(Ke),Bt&&Bt(Ke)}}St.setOptions(Ot)},St.walkTokens=function(Mt,Ot){for(var Bt=m(Mt),Ke;!(Ke=Bt()).done;){var de=Ke.value;Ot(de);switch(de.type){case"table":{for(var se=m(de.tokens.header),ut;!(ut=se()).done;){var qe=ut.value;St.walkTokens(qe,Ot)}for(var me=m(de.tokens.cells),Wt;!(Wt=me()).done;)for(var dr=Wt.value,vt=m(dr),rr;!(rr=vt()).done;){var ur=rr.value;St.walkTokens(ur,Ot)}break}case"list":{St.walkTokens(de.items,Ot);break}default:de.tokens&&St.walkTokens(de.tokens,Ot)}}},St.Parser=Le,St.parser=Le.parse,St.Renderer=we,St.TextRenderer=Ce,St.Lexer=J,St.lexer=J.lex,St.Tokenizer=le,St.Slugger=_e,St.parse=St;var jt=St;return jt})},"DlR+":function(R,D,i){var y=i("MFOe"),p=y.Global,x=y.trim;R.exports={name:"cookieStorage",read:m,write:d,each:f,remove:l,clearAll:o};var v=p.document;function m(t){if(!t||!n(t))return null;var a="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(v.cookie.replace(new RegExp(a),"$1"))}function f(t){for(var a=v.cookie.split(/; ?/g),e=a.length-1;e>=0;e--){if(!x(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;v.cookie=escape(t)+"="+escape(a)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function l(t){if(!t||!n(t))return;v.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(v.cookie)}},Ducp:function(R,D,i){var y=i("bYtY"),p=i("IwbS"),x=i("+TT/"),v=i("XpcN"),m=p.Group,f=["width","height"],d=["x","y"],l=v.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 A=t.getModel("pageTextStyle");h.add(new p.Text({name:"pageText",style:{textFill:A.getTextColor(),font:A.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),b("pageNext",1);function b(w,E){var C=w+"DataIndex",_=p.createIcon(t.get("pageIcons",!0)[t.getOrient().name][E],{onclick:y.bind(c._pageGo,c,C,t,e)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});_.name=w,h.add(_)}},layoutInner:function(n,t,a,e,u,r){var s=this.getSelectorGroup(),c=n.getOrient().index,h=f[c],g=d[c],A=f[1-c],b=d[1-c];u&&x.box("horizontal",s,n.get("selectorItemGap",!0));var w=n.get("selectorButtonGap",!0),E=s.getBoundingRect(),C=[-E.x,-E.y],_=y.clone(a);u&&(_[h]=a[h]-E[h]-w);var T=this._layoutContentAndController(n,e,_,c,h,A,b);if(u){if(r==="end")C[c]+=T[h]+w;else{var S=E[h]+w;C[c]-=S,T[g]-=S}T[h]+=E[h]+w,C[1-c]+=T[b]+T[A]/2-E[A]/2,T[A]=Math.max(T[A],E[A]),T[b]=Math.min(T[b],E[b]+C[1-c]),s.attr("position",C)}return T},_layoutContentAndController:function(n,t,a,e,u,r,s){var c=this.getContentGroup(),h=this._containerGroup,g=this._controllerGroup;x.box(n.get("orient"),c,n.get("itemGap"),e?a.width:null,e?null:a.height),x.box("horizontal",g,n.get("pageButtonItemGap",!0));var A=c.getBoundingRect(),b=g.getBoundingRect(),w=this._showController=A[u]>a[u],E=[-A.x,-A.y];t||(E[e]=c.position[e]);var C=[0,0],_=[-b.x,-b.y],T=y.retrieve2(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(w){var S=n.get("pageButtonPosition",!0);S==="end"?_[e]+=a[u]-b[u]:C[e]+=b[u]+T}_[1-e]+=A[r]/2-b[r]/2,c.attr("position",E),h.attr("position",C),g.attr("position",_);var O={x:0,y:0};if(O[u]=w?a[u]:A[u],O[r]=Math.max(A[r],b[r]),O[s]=Math.min(0,b[s]+_[1-e]),h.__rectSize=a[u],w){var I={x:0,y:0};I[u]=Math.max(a[u]-b[u]-T,0),I[r]=O[r],h.setClipPath(new p.Rect({shape:I})),h.__rectSize=I[u]}else g.eachChild(function(P){P.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),O},_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,A=a.childOfName(h);A&&(A.setStyle("fill",g?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),A.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],A=h.length,b=A?1:0,w={contentPosition:a.position.slice(),pageCount:b,pageIndex:b-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!g)return w;var E=O(g);w.contentPosition[u]=-E.s;for(var C=c+1,_=E,T=E,S=null;C<=A;++C)S=O(h[C]),(!S&&T.e>_.s+e||S&&!I(S,_.s))&&(T.i>_.i?_=T:_=S,_&&(w.pageNextDataIndex==null&&(w.pageNextDataIndex=_.i),++w.pageCount)),T=S;for(var C=c-1,_=E,T=E,S=null;C>=-1;--C)S=O(h[C]),(!S||!I(T,S.s))&&_.i<T.i&&(T=_,w.pagePrevDataIndex==null&&(w.pagePrevDataIndex=_.i),++w.pageCount,++w.pageIndex),_=S;return w;function O(F){if(F){var P=F.getBoundingRect(),B=P[s]+F.position[u];return{s:B,e:B+P[r],i:F.__legendDataIndex}}}function I(F,P){return F.e>=P&&F.s<=P+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;R.exports=o},"E/ki":function(R,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(R,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(x,v){R.exports=v()})(this,function(){"use strict";function x(we){var Ce=typeof we;return we!==null&&(Ce==="object"||Ce==="function")}function v(we){return typeof we=="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,_e){E[d]=Ce,E[d+1]=_e,d+=2,d===2&&(o?o(C):T())};function t(we){o=we}function a(we){n=we}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(C)}}function g(){return typeof l!="undefined"?function(){l(C)}:w()}function A(){var we=0,Ce=new r(C),_e=document.createTextNode("");return Ce.observe(_e,{characterData:!0}),function(){_e.data=we=++we%2}}function b(){var we=new MessageChannel;return we.port1.onmessage=C,function(){return we.port2.postMessage(0)}}function w(){var we=setTimeout;return function(){return we(C,1)}}var E=new Array(1e3);function C(){for(var we=0;we<d;we+=2){var Ce=E[we],_e=E[we+1];Ce(_e),E[we]=void 0,E[we+1]=void 0}d=0}function _(){try{var we=Function("return this")().require("vertx");return l=we.runOnLoop||we.runOnContext,g()}catch(Ce){return w()}}var T=void 0;s?T=h():r?T=A():c?T=b():e===void 0&&!0?T=_():T=w();function S(we,Ce){var _e=this,he=new this.constructor(F);he[I]===void 0&&Ge(he);var ye=_e._state;if(ye){var Le=arguments[ye-1];n(function(){return Se(ye,he,Le,_e._result)})}else le(_e,he,we,Ce);return he}function O(we){var Ce=this;if(we&&typeof we=="object"&&we.constructor===Ce)return we;var _e=new Ce(F);return Q(_e,we),_e}var I=Math.random().toString(36).substring(2);function F(){}var P=void 0,B=1,k=2;function G(){return new TypeError("You cannot resolve a promise with itself")}function M(){return new TypeError("A promises callback cannot return that same promise.")}function j(we,Ce,_e,he){try{we.call(Ce,_e,he)}catch(ye){return ye}}function K(we,Ce,_e){n(function(he){var ye=!1,Le=j(_e,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&&Le&&(ye=!0,$(he,Le))},we)}function z(we,Ce){Ce._state===B?te(we,Ce._result):Ce._state===k?$(we,Ce._result):le(Ce,void 0,function(_e){return Q(we,_e)},function(_e){return $(we,_e)})}function V(we,Ce,_e){Ce.constructor===we.constructor&&_e===S&&Ce.constructor.resolve===O?z(we,Ce):_e===void 0?te(we,Ce):v(_e)?K(we,Ce,_e):te(we,Ce)}function Q(we,Ce){if(we===Ce)$(we,G());else if(x(Ce)){var _e=void 0;try{_e=Ce.then}catch(he){$(we,he);return}V(we,Ce,_e)}else te(we,Ce)}function X(we){we._onerror&&we._onerror(we._result),re(we)}function te(we,Ce){if(we._state!==P)return;we._result=Ce,we._state=B,we._subscribers.length!==0&&n(re,we)}function $(we,Ce){if(we._state!==P)return;we._state=k,we._result=Ce,n(X,we)}function le(we,Ce,_e,he){var ye=we._subscribers,Le=ye.length;we._onerror=null,ye[Le]=Ce,ye[Le+B]=_e,ye[Le+k]=he,Le===0&&we._state&&n(re,we)}function re(we){var Ce=we._subscribers,_e=we._state;if(Ce.length===0)return;for(var he=void 0,ye=void 0,Le=we._result,tt=0;tt<Ce.length;tt+=3)he=Ce[tt],ye=Ce[tt+_e],he?Se(_e,he,ye,Le):ye(Le);we._subscribers.length=0}function Se(we,Ce,_e,he){var ye=v(_e),Le=void 0,tt=void 0,gt=!0;if(ye){try{Le=_e(he)}catch(at){gt=!1,tt=at}if(Ce===Le){$(Ce,M());return}}else Le=he;Ce._state!==P||(ye&>?Q(Ce,Le):gt===!1?$(Ce,tt):we===B?te(Ce,Le):we===k&&$(Ce,Le))}function Re(we,Ce){try{Ce(function(he){Q(we,he)},function(he){$(we,he)})}catch(_e){$(we,_e)}}var Pe=0;function Je(){return Pe++}function Ge(we){we[I]=Pe++,we._state=void 0,we._result=void 0,we._subscribers=[]}function ct(){return new Error("Array Methods must be provided an Array")}var Ue=function(){function we(Ce,_e){this._instanceConstructor=Ce,this.promise=new Ce(F),this.promise[I]||Ge(this.promise),f(_e)?(this.length=_e.length,this._remaining=_e.length,this._result=new Array(this.length),this.length===0?te(this.promise,this._result):(this.length=this.length||0,this._enumerate(_e),this._remaining===0&&te(this.promise,this._result))):$(this.promise,ct())}return we.prototype._enumerate=function(_e){for(var he=0;this._state===P&&he<_e.length;he++)this._eachEntry(_e[he],he)},we.prototype._eachEntry=function(_e,he){var ye=this._instanceConstructor,Le=ye.resolve;if(Le===O){var tt=void 0,gt=void 0,at=!1;try{tt=_e.then}catch(mt){at=!0,gt=mt}if(tt===S&&_e._state!==P)this._settledAt(_e._state,he,_e._result);else if(typeof tt!="function")this._remaining--,this._result[he]=_e;else if(ye===ee){var Fe=new ye(F);at?$(Fe,gt):V(Fe,_e,tt),this._willSettleAt(Fe,he)}else this._willSettleAt(new ye(function(mt){return mt(_e)}),he)}else this._willSettleAt(Le(_e),he)},we.prototype._settledAt=function(_e,he,ye){var Le=this.promise;Le._state===P&&(this._remaining--,_e===k?$(Le,ye):this._result[he]=ye),this._remaining===0&&te(Le,this._result)},we.prototype._willSettleAt=function(_e,he){var ye=this;le(_e,void 0,function(Le){return ye._settledAt(B,he,Le)},function(Le){return ye._settledAt(k,he,Le)})},we}();function ae(we){return new Ue(this,we).promise}function lt(we){var Ce=this;return f(we)?new Ce(function(_e,he){for(var ye=we.length,Le=0;Le<ye;Le++)Ce.resolve(we[Le]).then(_e,he)}):new Ce(function(_e,he){return he(new TypeError("You must pass an array to race."))})}function pe(we){var Ce=this,_e=new Ce(F);return $(_e,we),_e}function J(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Y(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var ee=function(){function we(Ce){this[I]=Je(),this._result=this._state=void 0,this._subscribers=[],F!==Ce&&(typeof Ce!="function"&&J(),this instanceof we?Re(this,Ce):Y())}return we.prototype.catch=function(_e){return this.then(null,_e)},we.prototype.finally=function(_e){var he=this,ye=he.constructor;return v(_e)?he.then(function(Le){return ye.resolve(_e()).then(function(){return Le})},function(Le){return ye.resolve(_e()).then(function(){throw Le})}):he.then(_e,_e)},we}();ee.prototype.then=S,ee.all=ae,ee.race=lt,ee.resolve=O,ee.reject=pe,ee._setScheduler=t,ee._setAsap=a,ee._asap=n;function fe(){var we=void 0;if(typeof p!="undefined")we=p;else if(typeof self!="undefined")we=self;else try{we=Function("return this")()}catch(he){throw new Error("polyfill failed because global object is unavailable in this environment")}var Ce=we.Promise;if(Ce){var _e=null;try{_e=Object.prototype.toString.call(Ce.resolve())}catch(he){}if(_e==="[object Promise]"&&!Ce.cast)return}we.Promise=ee}return ee.polyfill=fe,ee.Promise=ee,ee})}).call(this,i("Q2Ig"),i("yLpj"))},E2jh:function(R,D,i){var y=i("2gN3"),p=function(){var v=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}();function x(v){return!!p&&p in v}R.exports=x},E4JC:function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.StreamCipher,m=p.algo,f=[],d=[],l=[],o=m.Rabbit=v.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],A=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,b=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,w=A>>>16|b&4294901760,E=b<<16|A&65535;s[0]^=A,s[1]^=w,s[2]^=b,s[3]^=E,s[4]^=A,s[5]^=w,s[6]^=b,s[7]^=E;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=v._createHelper(o)}(),y.Rabbit})},E9nw:function(R,D){R.exports=function(){var i=document.getSelection();if(!i.rangeCount)return function(){};for(var y=document.activeElement,p=[],x=0;x<i.rangeCount;x++)p.push(i.getRangeAt(x));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(v){i.addRange(v)}),y&&y.focus()}}},ELLl:function(R,D,i){(function(y){y(i("VrN/"))})(function(y){var p={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=y.Pos;y.defineOption("autoCloseBrackets",!1,function(r,s,c){c&&c!=y.Init&&(r.removeKeyMap(m),r.state.closeBrackets=null),s&&(f(v(s,"pairs")),r.state.closeBrackets=s,r.addKeyMap(m))});function v(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=v(s,"pairs"),h=r.listSelections(),g=0;g<h.length;g++){if(!h[g].empty())return y.Pass;var A=e(r,h[g].head);if(!A||c.indexOf(A)%2!=0)return y.Pass}for(var g=h.length-1;g>=0;g--){var b=h[g].head;r.replaceRange("",x(b.line,b.ch-1),x(b.line,b.ch+1),"+delete")}}function n(r){var s=l(r),c=s&&v(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 A=e(r,h[g].head);if(!A||c.indexOf(A)%2!=0)return y.Pass}r.operation(function(){var b=r.lineSeparator()||`
|
|
|
`;r.replaceSelection(b+b,null),r.execCommand("goCharLeft"),h=r.listSelections();for(var w=0;w<h.length;w++){var E=h[w].head.line;r.indentLine(E,null,!0),r.indentLine(E+1,null,!0)}})}function t(r){var s=y.cmpPos(r.anchor,r.head)>0;return{anchor:new x(r.anchor.line,r.anchor.ch+(s?-1:1)),head:new x(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=v(c,"pairs"),g=h.indexOf(s);if(g==-1)return y.Pass;for(var A=v(c,"closeBefore"),b=v(c,"triples"),w=h.charAt(g+1)==s,E=r.listSelections(),C=g%2==0,_,T=0;T<E.length;T++){var S=E[T],O=S.head,I,F=r.getRange(O,x(O.line,O.ch+1));if(C&&!S.empty())I="surround";else if((w||!C)&&F==s)w&&u(r,O)?I="both":b.indexOf(s)>=0&&r.getRange(O,x(O.line,O.ch+3))==s+s+s?I="skipThree":I="skip";else if(w&&O.ch>1&&b.indexOf(s)>=0&&r.getRange(x(O.line,O.ch-2),O)==s+s){if(O.ch>2&&/\bstring/.test(r.getTokenTypeAt(x(O.line,O.ch-2))))return y.Pass;I="addFour"}else if(w){var P=O.ch==0?" ":r.getRange(x(O.line,O.ch-1),O);if(!y.isWordChar(F)&&P!=s&&!y.isWordChar(P))I="both";else return y.Pass}else if(C&&(F.length===0||/\s/.test(F)||A.indexOf(F)>-1))I="both";else return y.Pass;if(!_)_=I;else if(_!=I)return y.Pass}var B=g%2?h.charAt(g-1):s,k=g%2?s:h.charAt(g+1);r.operation(function(){if(_=="skip")r.execCommand("goCharRight");else if(_=="skipThree")for(var G=0;G<3;G++)r.execCommand("goCharRight");else if(_=="surround"){for(var M=r.getSelections(),G=0;G<M.length;G++)M[G]=B+M[G]+k;r.replaceSelections(M,"around"),M=r.listSelections().slice();for(var G=0;G<M.length;G++)M[G]=t(M[G]);r.setSelections(M)}else _=="both"?(r.replaceSelection(B+k,null),r.triggerElectric(B+k),r.execCommand("goCharLeft")):_=="addFour"&&(r.replaceSelection(B+B+B+B,"before"),r.execCommand("goCharRight"))})}function e(r,s){var c=r.getRange(x(s.line,s.ch-1),x(s.line,s.ch+1));return c.length==2?c:null}function u(r,s){var c=r.getTokenAt(x(s.line,s.ch+1));return/\bstring/.test(c.type)&&c.start==s.ch&&(s.ch==0||!/\bstring/.test(r.getTokenTypeAt(s)))}})},ELcG:function(R,D,i){(function(y,p){R.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 x=y,v=x.lib,m=v.WordArray,f=v.Hasher,d=x.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,E){for(var C=0;C<16;C++){var _=E+C,T=w[_];w[_]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}var S=this._hash.words,O=a.words,I=e.words,F=l.words,P=o.words,B=n.words,k=t.words,G,M,j,K,z,V,Q,X,te,$;V=G=S[0],Q=M=S[1],X=j=S[2],te=K=S[3],$=z=S[4];for(var le,C=0;C<80;C+=1)le=G+w[E+F[C]]|0,C<16?le+=r(M,j,K)+O[0]:C<32?le+=s(M,j,K)+O[1]:C<48?le+=c(M,j,K)+O[2]:C<64?le+=h(M,j,K)+O[3]:le+=g(M,j,K)+O[4],le=le|0,le=A(le,B[C]),le=le+z|0,G=z,z=K,K=A(j,10),j=M,M=le,le=V+w[E+P[C]]|0,C<16?le+=g(Q,X,te)+I[0]:C<32?le+=h(Q,X,te)+I[1]:C<48?le+=c(Q,X,te)+I[2]:C<64?le+=s(Q,X,te)+I[3]:le+=r(Q,X,te)+I[4],le=le|0,le=A(le,k[C]),le=le+$|0,V=$,$=te,te=A(X,10),X=Q,Q=le;le=S[1]+j+te|0,S[1]=S[2]+K+$|0,S[2]=S[3]+z+V|0,S[3]=S[4]+G+Q|0,S[4]=S[0]+M+X|0,S[0]=le},_doFinalize:function(){var w=this._data,E=w.words,C=this._nDataBytes*8,_=w.sigBytes*8;E[_>>>5]|=128<<24-_%32,E[(_+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,w.sigBytes=(E.length+1)*4,this._process();for(var T=this._hash,S=T.words,O=0;O<5;O++){var I=S[O];S[O]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return T},clone:function(){var w=f.clone.call(this);return w._hash=this._hash.clone(),w}});function r(b,w,E){return b^w^E}function s(b,w,E){return b&w|~b&E}function c(b,w,E){return(b|~w)^E}function h(b,w,E){return b&E|w&~E}function g(b,w,E){return b^(w|~E)}function A(b,w){return b<<w|b>>>32-w}x.RIPEMD160=f._createHelper(u),x.HmacRIPEMD160=f._createHmacHelper(u)}(Math),y.RIPEMD160})},EMyp:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("mFDi"),v=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,E){b.eachComponent({mainType:"brush"},function(C){E&&E.type==="takeGlobalCursor"&&C.setBrushOption(E.key==="brush"?E.brushOption:{brushType:!1})}),a(b)});function a(b){b.eachComponent({mainType:"brush"},function(w){var E=w.brushTargetManager=new d(w.option,b);E.setInputRanges(w.areas,b)})}y.registerVisual(t,function(b,w,E){var C=[],_,T;b.eachComponent({mainType:"brush"},function(S,O){var I={brushId:S.id,brushIndex:O,brushName:S.name,areas:p.clone(S.areas),selected:[]};C.push(I);var F=S.option,P=F.brushLink,B=[],k=[],G=[],M=0;O||(_=F.throttleType,T=F.throttleDelay);var j=p.map(S.areas,function(te){return h(p.defaults({boundingRect:g[te.brushType](te)},te))}),K=v.createVisualMappings(S.option,l,function(te){te.mappingMethod="fixed"});p.isArray(P)&&p.each(P,function(te){B[te]=1});function z(te){return P==="all"||B[te]}function V(te){return!!te.length}b.eachSeries(function(te,$){var le=G[$]=[];te.subType==="parallel"?Q(te,$,le):X(te,$,le)});function Q(te,$){var le=te.coordinateSystem;M|=le.hasAxisBrushed(),z($)&&le.eachActiveState(te.getData(),function(re,Se){re==="active"&&(k[Se]=1)})}function X(te,$,le){var re=s(te);if(!re||c(S,$))return;if(p.each(j,function(Re){re[Re.brushType]&&S.brushTargetManager.controlSeries(Re,te,b)&&le.push(Re),M|=V(le)}),z($)&&V(le)){var Se=te.getData();Se.each(function(Re){r(re,le,Se,Re)&&(k[Re]=1)})}}b.eachSeries(function(te,$){var le={seriesId:te.id,seriesIndex:$,seriesName:te.name,dataIndex:[]};I.selected.push(le);var re=s(te),Se=G[$],Re=te.getData(),Pe=z($)?function(Je){return k[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"};(z($)?M:V(Se))&&v.applyVisual(l,K,Re,Pe)})}),e(w,_,T,C,E)});function e(b,w,E,C,_){if(!_)return;var T=b.getZr();if(T[n])return;T[o]||(T[o]=u);var S=f.createOrUpdate(T,o,E,w);S(b,C)}function u(b,w){if(!b.isDisposed()){var E=b.getZr();E[n]=!0,b.dispatchAction({type:"brushSelect",batch:w}),E[n]=!1}}function r(b,w,E,C){for(var _=0,T=w.length;_<T;_++){var S=w[_];if(b[S.brushType](C,E,S.selectors,S))return!0}}function s(b){var w=b.brushSelector;if(p.isString(w)){var E=[];return p.each(m,function(_,T){E[T]=function(S,O,I,F){var P=O.getItemLayout(S);return _[w](P,I,F)}}),E}else if(p.isFunction(w)){var C={};return p.each(m,function(_,T){C[T]=w}),C}return w}function c(b,w){var E=b.option.seriesIndex;return E!=null&&E!=="all"&&(p.isArray(E)?p.indexOf(E,w)<0:w!==E)}function h(b){var w=b.selectors={};return p.each(m[b.brushType],function(E,C){w[C]=function(_){return E(_,w,b)}}),b}var g={lineX:p.noop,lineY:p.noop,rect:function(b){return A(b.range)},polygon:function(b){for(var w,E=b.range,C=0,_=E.length;C<_;C++){w=w||[[Infinity,-Infinity],[Infinity,-Infinity]];var T=E[C];T[0]<w[0][0]&&(w[0][0]=T[0]),T[0]>w[0][1]&&(w[0][1]=T[0]),T[1]<w[1][0]&&(w[1][0]=T[1]),T[1]>w[1][1]&&(w[1][1]=T[1])}return w&&A(w)}};function A(b){return new x(b[0][0],b[1][0],b[0][1]-b[0][0],b[1][1]-b[1][0])}D.layoutCovers=a},ERHi:function(R,D,i){var y=i("ProS");i("Z6js"),i("R4Th");var p=i("f5Yq"),x=i("h8O9");y.registerVisual(p("effectScatter","circle")),y.registerLayout(x("effectScatter"))},ETIr:function(R,D,i){(function(y,p){R.exports=D=p(i("Ib8C"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.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 A=a.charAt(64);if(A)for(;e.length%4;)e.push(A);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 v.create(t,a)}}(),y.enc.Base64})},EXcs:function(R,D,i){"use strict";var y=function(){return{height:0,opacity:0}},p=function(d){return{height:d.scrollHeight,opacity:1}},x=function(d){return{height:d.offsetHeight}},v=function(d,l){return l.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:y,onEnterStart:y,onAppearActive:p,onEnterActive:p,onLeaveStart:x,onLeaveActive:y,onAppearEnd:v,onEnterEnd:v,onLeaveEnd:v,motionDeadline:500};D.a=m},EpBk:function(R,D){function i(y){var p=typeof y;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?y!=="__proto__":y===null}R.exports=i},Ez2D:function(R,D,i){var y=i("bYtY"),p=i("4NO4");function x(v,m){var f=[],d=v.seriesIndex,l;if(d==null||!(l=m.getSeriesByIndex(d)))return{point:[]};var o=l.getData(),n=p.queryDataIndex(o,v);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}}R.exports=x},"F+F2":function(R,D,i){(function(y,p){R.exports=D=p(i("Ib8C"))})(this,function(y){return function(){if(typeof ArrayBuffer!="function")return;var p=y,x=p.lib,v=x.WordArray,m=v.init,f=v.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=v}(),y.lib.WordArray})},F0hE:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("ca2m"),v=i("Qxkt"),m=i("ICMv"),f=x.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"),A=this.get("nameGap"),b=this.get("triggerEvent"),w=p.map(this.get("indicator")||[],function(E){E.max!=null&&E.max>0&&!E.min?E.min=0:E.min!=null&&E.min<0&&!E.max&&(E.max=0);var C=c;if(E.color!=null&&(C=p.defaults({color:E.color},c)),E=p.merge(p.clone(E),{boundaryGap:n,splitNumber:t,scale:a,axisLine:e,axisTick:u,axisType:r,axisLabel:s,name:E.text,nameLocation:"end",nameGap:A,nameTextStyle:C,triggerEvent:b},!1),h||(E.name=""),typeof g=="string"){var _=E.name;E.name=g.replace("{value}",_!=null?_:"")}else typeof g=="function"&&(E.name=g(E.name,E));var T=p.extend(new v(E,null,this.ecModel),m);return T.mainType="radar",T.componentIndex=this.componentIndex,T},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;R.exports=o},F5Ls:function(R,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,x){if(p==="china"){var v=i[x.name];if(v){var m=x.center;m[0]+=v[0]/10.5,m[1]+=-v[1]/(10.5/.75)}}}R.exports=y},F7hV:function(R,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 x=this.get("progressiveThreshold"),v=this.get("largeThreshold");return v>x&&(x=v),x},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});R.exports=p},F9bG:function(R,D,i){var y=i("bYtY"),p=i("ItGF"),x=i("4NO4"),v=x.makeInner,m=v(),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 A=a(r);f(m(u).records,function(b){b&&h(b,g,A.dispatchAction)}),o(A.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(R,D,i){var y=i("bYtY"),p=i("oVpE"),x=p.createSymbol,v=i("IwbS"),m=i("OELB"),f=m.parsePercent,d=i("x3X8"),l=d.getDefaultLabel;function o(A,b,w){v.Group.call(this),this.updateData(A,b,w)}var n=o.prototype,t=o.getSymbolSize=function(A,b){var w=A.getItemVisual(b,"symbolSize");return w instanceof Array?w.slice():[+w,+w]};function a(A){return[A[0]/2,A[1]/2]}function e(A,b){this.parent.drift(A,b)}n._createSymbol=function(A,b,w,E,C){this.removeAll();var _=b.getItemVisual(w,"color"),T=x(A,-1,-1,2,2,_,C);T.attr({z2:100,culling:!0,scale:a(E)}),T.drift=e,this._symbolType=A,this.add(T)},n.stopSymbolAnimation=function(A){this.childAt(0).stopAnimation(A)},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(A,b){var w=this.childAt(0);w.zlevel=A,w.z=b},n.setDraggable=function(A){var b=this.childAt(0);b.draggable=A,b.cursor=A?"move":b.cursor},n.updateData=function(A,b,w){this.silent=!1;var E=A.getItemVisual(b,"symbol")||"circle",C=A.hostModel,_=t(A,b),T=E!==this._symbolType;if(T){var S=A.getItemVisual(b,"symbolKeepAspect");this._createSymbol(E,A,b,_,S)}else{var O=this.childAt(0);O.silent=!1,v.updateProps(O,{scale:a(_)},C,b)}if(this._updateCommon(A,b,_,w),T){var O=this.childAt(0),I=w&&w.fadeIn,F={scale:O.scale.slice()};I&&(F.style={opacity:O.style.opacity}),O.scale=[0,0],I&&(O.style.opacity=0),v.initProps(O,F,C,b)}this._seriesModel=C};var u=["itemStyle"],r=["emphasis","itemStyle"],s=["label"],c=["emphasis","label"];n._updateCommon=function(A,b,w,E){var C=this.childAt(0),_=A.hostModel,T=A.getItemVisual(b,"color");C.type!=="image"?C.useStyle({strokeNoScale:!0}):C.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var S=E&&E.itemStyle,O=E&&E.hoverItemStyle,I=E&&E.symbolOffset,F=E&&E.labelModel,P=E&&E.hoverLabelModel,B=E&&E.hoverAnimation,k=E&&E.cursorStyle;if(!E||A.hasItemOption){var G=E&&E.itemModel?E.itemModel:A.getItemModel(b);S=G.getModel(u).getItemStyle(["color"]),O=G.getModel(r).getItemStyle(),I=G.getShallow("symbolOffset"),F=G.getModel(s),P=G.getModel(c),B=G.getShallow("hoverAnimation"),k=G.getShallow("cursor")}else O=y.extend({},O);var M=C.style,j=A.getItemVisual(b,"symbolRotate");C.attr("rotation",(j||0)*Math.PI/180||0),I&&C.attr("position",[f(I[0],w[0]),f(I[1],w[1])]),k&&C.attr("cursor",k),C.setColor(T,E&&E.symbolInnerColor),C.setStyle(S);var K=A.getItemVisual(b,"opacity");K!=null&&(M.opacity=K);var z=A.getItemVisual(b,"liftZ"),V=C.__z2Origin;z!=null?V==null&&(C.__z2Origin=C.z2,C.z2+=z):V!=null&&(C.z2=V,C.__z2Origin=null);var Q=E&&E.useNameLabel;v.setLabelStyle(M,O,F,P,{labelFetcher:_,labelDataIndex:b,defaultText:X,isRectText:!0,autoColor:T});function X(te,$){return Q?A.getName(te):l(A,te)}C.__symbolOriginalScale=a(w),C.hoverStyle=O,C.highDownOnUpdate=B&&_.isAnimationEnabled()?h:null,v.setHoverStyle(C)};function h(A,b){if(this.incremental||this.useHoverLayer)return;if(b==="emphasis"){var w=this.__symbolOriginalScale,E=w[1]/w[0],C={scale:[Math.max(w[0]*1.1,w[0]+3),Math.max(w[1]*1.1,w[1]+3*E)]};this.animateTo(C,400,"elasticOut")}else b==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}n.fadeOut=function(A,b){var w=this.childAt(0);this.silent=w.silent=!0,!(b&&b.keepLabel)&&(w.style.text=null),v.updateProps(w,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,A)},y.inherits(o,v.Group);var g=o;R.exports=g},FGaS:function(R,D,i){var y=i("ProS"),p=i("IwbS"),x=i("bYtY"),v=i("oVpE");function m(d){return x.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",A=c.getItemVisual(h,"color");if(g==="none")return;var b=m(c.getItemVisual(h,"symbolSize")),w=v.createSymbol(g,-1,-1,2,2,A);return w.attr({style:{strokeNoScale:!0},z2:100,scale:[b[0]/2,b[1]/2]}),w}function r(c,h,g,A,b,w){g.removeAll();for(var E=0;E<h.length-1;E++){var C=u(A,b);C&&(C.__dimIdx=E,c[E]?(C.attr("position",c[E]),p[w?"initProps":"updateProps"](C,{position:h[E]},d,b)):C.attr("position",h[E]),g.add(C))}}function s(c){return x.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,A=new p.Polyline,b={shape:{points:h}};g.shape.points=s(h),A.shape.points=s(h),p.initProps(g,b,d,c),p.initProps(A,b,d,c);var w=new p.Group,E=new p.Group;w.add(A),w.add(g),w.add(E),r(A.shape.points,h,E,a,c,!0),a.setItemGraphicEl(c,w)}).update(function(c,h){var g=e.getItemGraphicEl(h),A=g.childAt(0),b=g.childAt(1),w=g.childAt(2),E={shape:{points:a.getItemLayout(c)}};if(!E.shape.points)return;r(A.shape.points,E.shape.points,w,a,c,!1),p.updateProps(A,E,d),p.updateProps(b,E,d),a.setItemGraphicEl(c,g)}).remove(function(c){t.remove(e.getItemGraphicEl(c))}).execute(),a.eachItemGraphicEl(function(c,h){var g=a.getItemModel(h),A=c.childAt(0),b=c.childAt(1),w=c.childAt(2),E=a.getItemVisual(h,"color");t.add(c),A.useStyle(x.defaults(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:E})),A.hoverStyle=g.getModel("emphasis.lineStyle").getLineStyle();var C=g.getModel("areaStyle"),_=g.getModel("emphasis.areaStyle"),T=C.isEmpty()&&C.parentModel.isEmpty(),S=_.isEmpty()&&_.parentModel.isEmpty();S=S&&T,b.ignore=T,b.useStyle(x.defaults(C.getAreaStyle(),{fill:E,opacity:.7})),b.hoverStyle=_.getAreaStyle();var O=g.getModel("itemStyle").getItemStyle(["color"]),I=g.getModel("emphasis.itemStyle").getItemStyle(),F=g.getModel("label"),P=g.getModel("emphasis.label");w.eachChild(function(B){B.setStyle(O),B.hoverStyle=x.clone(I);var k=a.get(a.dimensions[B.__dimIdx],h);(k==null||isNaN(k))&&(k=""),p.setLabelStyle(B.style,B.hoverStyle,F,P,{labelFetcher:a.hostModel,labelDataIndex:h,labelDimIndex:B.__dimIdx,defaultText:k,autoColor:E,isRectText:!0})}),c.highDownOnUpdate=function(B,k){b.attr("ignore",k==="emphasis"?S:T)},p.setHoverStyle(c)}),this._data=a},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});R.exports=f},FH2Y:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("ZMnZ"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},FJo9:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("8txm"),v=i.n(x),m=i("MXD1")},FNN5:function(R,D,i){var y=i("bYtY"),p=i("IwbS"),x=i("+rIm"),v=i("Znkb"),m=["axisLine","axisTickLabel","axisName"],f=["splitLine","splitArea","minorSplitLine"],d=v.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 x(o,h);y.each(m,g.add,g),this.group.add(g.getGroup()),y.each(f,function(A){o.get(A+".show")&&!t.scale.isBlank()&&this["_"+A](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 A=c++%s.length;h[A]=h[A]||[],h[A].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,A=1;A<e.length;A++){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[A].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),g=e[A].coord}for(var A=0;A<h.length;A++)this.group.add(p.mergePath(h[A],{style:y.defaults({fill:s[A%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}}R.exports=d},FTAc:function(R,D,i){"use strict";i.d(D,"a",function(){return x});var y=i("q1tI"),p=i.n(y),x=y.createContext(null)},FUi9:function(R,D,i){var y=i("bYtY"),p=i("MwEJ"),x=i("aX7z"),v=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,A){var b=A;m.isInstance(A)||(b=new m(A),y.mixin(b,v));var w=x.createScaleByModel(b);return w.setExtent(g[0],g[1]),x.niceScaleExtent(w,b),w}function h(g){y.mixin(g,v)}D.createList=r,D.dataStack=s,D.createScale=c,D.mixinAxisModelCommonMethods=h},"Fa/5":function(R,D,i){var y=i("ProS");i("y2l5"),i("q/+u");var p=i("f5Yq"),x=i("h8O9");i("Ae16"),y.registerVisual(p("scatter","circle")),y.registerLayout(x("scatter"))},FhB9:function(R,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(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="CaretUpOutlined";var n=v.forwardRef(o);D.default=n},Fofx:function(R,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 x(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 v(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),A=Math.cos(a);return n[0]=e*A+s*g,n[1]=-e*g+s*A,n[2]=u*A+c*g,n[3]=-u*g+A*c,n[4]=A*r+g*h,n[5]=A*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 x(t,n),t}D.create=y,D.identity=p,D.copy=x,D.mul=v,D.translate=m,D.rotate=f,D.scale=d,D.invert=l,D.clone=o},Fv0C:function(R,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")),x=i("vewr"),v=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=v.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=v.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,x.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,x.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,x.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,x.stopEvent)(s),this._pendingKey===null)return;var c=this._getKeyCode(s),h=v.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,x.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 A=new KeyboardEvent("keyup",{key:h[g],code:g});A.skipCheckAlt=!0,c.dispatchEvent(A)})}},{key:"grab",value:function(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),f.isWindows()&&f.isFirefox()){var s=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(c){return document.addEventListener(c,s,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(f.isWindows()&&f.isFirefox()){var s=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(c){return document.removeEventListener(c,s)})}this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),this._target.removeEventListener("keypress",this._eventHandlers.keypress),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}]),u}();D.default=e},FxDU:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=i("QO+J"),p=i("j5sG"),x=typeof ResizeObserver!="undefined"?p.createSensor:y.createSensor;D.createSensor=x},GGyF:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="LeftOutlined";var n=v.forwardRef(o);D.default=n},GIiI:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="PoweroffOutlined";var d=D.a=p.forwardRef(f)},GMDS:function(R,D,i){var y=i("bYtY"),p=i("4NgU"),x=i("jkPA"),v=p.prototype,m=p.extend({type:"ordinal",init:function(d,l){(!d||y.isArray(d))&&(d=new x({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),v.contain.call(this,d)&&this._ordinalMeta.categories[d]!=null},normalize:function(d){return v.normalize.call(this,this.parse(d))},scale:function(d){return Math.round(v.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;R.exports=f},GQ8N:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.toUnsigned32bit=y,D.toSigned32bit=p;function y(x){return x>>>0}function p(x){return x|0}},GRuw:function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("lPiR"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.WordArray,m=p.algo,f=m.SHA256,d=m.SHA224=f.extend({_doReset:function(){this._hash=new v.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(R,D,i){"use strict";var y=i("fWQN"),p=i("mtLc"),x=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(Me,ke){return Me.__proto__=ke,Me},Object.assign=Object.assign||function(Me){if(Me==null)throw new TypeError("Cannot convert undefined or null to object");for(var ke=Object(Me),Be=1;Be<arguments.length;Be++){var it=arguments[Be];if(it!=null)for(var yt in it)it.hasOwnProperty(yt)&&(ke[yt]=it[yt])}return ke},typeof self.Promise!="function"&&i("E2g8").polyfill()}}]),$t}();x.install();var v=x,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(Me,ke){(!Me||$t.FORCE_GLOBAL_TAG)&&(Me=$t.GLOBAL_TAG);var Be="[".concat(Me,"] > ").concat(ke);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(Me,ke){(!Me||$t.FORCE_GLOBAL_TAG)&&(Me=$t.GLOBAL_TAG);var Be="[".concat(Me,"] > ").concat(ke);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(Me,ke){(!Me||$t.FORCE_GLOBAL_TAG)&&(Me=$t.GLOBAL_TAG);var Be="[".concat(Me,"] > ").concat(ke);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(Me,ke){(!Me||$t.FORCE_GLOBAL_TAG)&&(Me=$t.GLOBAL_TAG);var Be="[".concat(Me,"] > ").concat(ke);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(Me,ke){(!Me||$t.FORCE_GLOBAL_TAG)&&(Me=$t.GLOBAL_TAG);var Be="[".concat(Me,"] > ").concat(ke);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(Me){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=Me,this._totalBytes+=Me):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=Me,this._totalBytes+=Me):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=Me,this._totalBytes+=Me,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var Me=(this._now()-this._lastCheckpoint)/1e3;return Me==0&&(Me=1),this._intervalBytes/Me/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 Me=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/Me/1024}}]),$t}(),n=o,t=i("yKVA"),a=i("879j"),e=function(){function $t(Nt){Object(y.a)(this,$t),this._message=Nt}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)(Me,$t);var Nt=Object(a.a)(Me);function Me(ke){return Object(y.a)(this,Me),Nt.call(this,ke)}return Object(p.a)(Me,[{key:"name",get:function(){return"IllegalStateException"}}]),Me}(e),r=function($t){Object(t.a)(Me,$t);var Nt=Object(a.a)(Me);function Me(ke){return Object(y.a)(this,Me),Nt.call(this,ke)}return Object(p.a)(Me,[{key:"name",get:function(){return"InvalidArgumentException"}}]),Me}(e),s=function($t){Object(t.a)(Me,$t);var Nt=Object(a.a)(Me);function Me(ke){return Object(y.a)(this,Me),Nt.call(this,ke)}return Object(p.a)(Me,[{key:"name",get:function(){return"NotImplementedException"}}]),Me}(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(Nt){Object(y.a)(this,$t),this._type=Nt||"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(Me){this._onContentLengthKnown=Me}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(Me){this._onURLRedirect=Me}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Me){this._onDataArrival=Me}},{key:"onError",get:function(){return this._onError},set:function(Me){this._onError=Me}},{key:"onComplete",get:function(){return this._onComplete},set:function(Me){this._onComplete=Me}},{key:"open",value:function(Me,ke){throw new s("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new s("Unimplemented abstract function!")}}]),$t}(),A=i("w4Tj"),b=i("oZsa"),w={};function E(){var $t=self.navigator.userAgent.toLowerCase(),Nt=/(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)||[],Me=/(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)||[],ke={browser:Nt[5]||Nt[3]||Nt[1]||"",version:Nt[2]||Nt[4]||"0",majorVersion:Nt[4]||Nt[2]||"0",platform:Me[0]||""},Be={};if(ke.browser){Be[ke.browser]=!0;var it=ke.majorVersion.split(".");Be.version={major:parseInt(ke.majorVersion,10),string:ke.version},it.length>1&&(Be.version.minor=parseInt(it[1],10)),it.length>2&&(Be.version.build=parseInt(it[2],10))}if(ke.platform&&(Be[ke.platform]=!0),(Be.chrome||Be.opr||Be.safari)&&(Be.webkit=!0),Be.rv||Be.iemobile){Be.rv&&delete Be.rv;var yt="msie";ke.browser=yt,Be[yt]=!0}if(Be.edge){delete Be.edge;var Tt="msedge";ke.browser=Tt,Be[Tt]=!0}if(Be.opr){var Yt="opera";ke.browser=Yt,Be[Yt]=!0}if(Be.safari&&Be.android){var Pr="android";ke.browser=Pr,Be[Pr]=!0}Be.name=ke.browser,Be.platform=ke.platform;for(var $r in w)w.hasOwnProperty($r)&&delete w[$r];Object.assign(w,Be)}E();var C=w,_=function($t){Object(t.a)(Me,$t);var Nt=Object(a.a)(Me);function Me(ke,Be){var it;return Object(y.a)(this,Me),it=Nt.call(this,"fetch-stream-loader"),it.TAG="FetchStreamLoader",it._seekHandler=ke,it._config=Be,it._needStash=!0,it._requestAbort=!1,it._contentLength=null,it._receivedLength=0,it}return Object(p.a)(Me,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(A.a)(Object(b.a)(Me.prototype),"destroy",this).call(this)}},{key:"open",value:function(Be,it){var yt=this;this._dataSource=Be,this._range=it;var Tt=Be.url;this._config.reuseRedirectedURL&&Be.redirectedURL!=null&&(Tt=Be.redirectedURL);var Yt=this._seekHandler.getConfig(Tt,it),Pr=new self.Headers;if(typeof Yt.headers=="object"){var $r=Yt.headers;for(var An in $r)$r.hasOwnProperty(An)&&Pr.append(An,$r[An])}var zt={method:"GET",headers:Pr,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var At in this._config.headers)Pr.append(At,this._config.headers[At]);Be.cors===!1&&(zt.mode="same-origin"),Be.withCredentials&&(zt.credentials="include"),Be.referrerPolicy&&(zt.referrerPolicy=Be.referrerPolicy),this._status=c.kConnecting,self.fetch(Yt.url,zt).then(function(wt){if(yt._requestAbort){yt._requestAbort=!1,yt._status=c.kIdle;return}if(wt.ok&&wt.status>=200&&wt.status<=299){if(wt.url!==Yt.url&&yt._onURLRedirect){var vr=yt._seekHandler.removeURLParameters(wt.url);yt._onURLRedirect(vr)}var Jt=wt.headers.get("Content-Length");return Jt!=null&&(yt._contentLength=parseInt(Jt),yt._contentLength!==0&&(yt._onContentLengthKnown&&yt._onContentLengthKnown(yt._contentLength))),yt._pump.call(yt,wt.body.getReader())}else if(yt._status=c.kError,yt._onError)yt._onError(h.HTTP_STATUS_CODE_INVALID,{code:wt.status,msg:wt.statusText});else throw new e("FetchStreamLoader: Http code invalid, "+wt.status+" "+wt.statusText)}).catch(function(wt){if(yt._status=c.kError,yt._onError)yt._onError(h.EXCEPTION,{code:-1,msg:wt.message});else throw wt})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Be){var it=this;return Be.read().then(function(yt){if(yt.done)if(it._contentLength!==null&&it._receivedLength<it._contentLength){it._status=c.kError;var Tt=h.EARLY_EOF,Yt={code:-1,msg:"Fetch stream meet Early-EOF"};if(it._onError)it._onError(Tt,Yt);else throw new e(Yt.msg)}else it._status=c.kComplete,it._onComplete&&it._onComplete(it._range.from,it._range.from+it._receivedLength-1);else{if(it._requestAbort===!0)return it._requestAbort=!1,it._status=c.kComplete,Be.cancel();it._status=c.kBuffering;var Pr=yt.value.buffer,$r=it._range.from+it._receivedLength;it._receivedLength+=Pr.byteLength,it._onDataArrival&&it._onDataArrival(Pr,$r,it._receivedLength),it._pump(Be)}}).catch(function(yt){if(yt.code===11&&C.msedge)return;it._status=c.kError;var Tt=0,Yt=null;if((yt.code===19||yt.message==="network error")&&(it._contentLength===null||it._contentLength!==null&&it._receivedLength<it._contentLength)?(Tt=h.EARLY_EOF,Yt={code:yt.code,msg:"Fetch stream meet Early-EOF"}):(Tt=h.EXCEPTION,Yt={code:yt.code,msg:yt.message}),it._onError)it._onError(Tt,Yt);else throw new e(Yt.msg)})}}],[{key:"isSupported",value:function(){try{var Be=C.msedge&&C.version.minor>=15048,it=C.msedge?Be:!0;return self.fetch&&self.ReadableStream&&it}catch(yt){return!1}}}]),Me}(g),T=_,S=function($t){Object(t.a)(Me,$t);var Nt=Object(a.a)(Me);function Me(ke,Be){var it;return Object(y.a)(this,Me),it=Nt.call(this,"xhr-moz-chunked-loader"),it.TAG="MozChunkedLoader",it._seekHandler=ke,it._config=Be,it._needStash=!0,it._xhr=null,it._requestAbort=!1,it._contentLength=null,it._receivedLength=0,it}return Object(p.a)(Me,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),Object(A.a)(Object(b.a)(Me.prototype),"destroy",this).call(this)}},{key:"open",value:function(Be,it){this._dataSource=Be,this._range=it;var yt=Be.url;this._config.reuseRedirectedURL&&Be.redirectedURL!=null&&(yt=Be.redirectedURL);var Tt=this._seekHandler.getConfig(yt,it);this._requestURL=Tt.url;var Yt=this._xhr=new XMLHttpRequest;if(Yt.open("GET",Tt.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 Tt.headers=="object"){var Pr=Tt.headers;for(var $r in Pr)Pr.hasOwnProperty($r)&&Yt.setRequestHeader($r,Pr[$r])}if(typeof this._config.headers=="object"){var An=this._config.headers;for(var zt in An)An.hasOwnProperty(zt)&&Yt.setRequestHeader(zt,An[zt])}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 it=Be.target;if(it.readyState===2){if(it.responseURL!=null&&it.responseURL!==this._requestURL&&this._onURLRedirect){var yt=this._seekHandler.removeURLParameters(it.responseURL);this._onURLRedirect(yt)}if(it.status!==0&&(it.status<200||it.status>299))if(this._status=c.kError,this._onError)this._onError(h.HTTP_STATUS_CODE_INVALID,{code:it.status,msg:it.statusText});else throw new e("MozChunkedLoader: Http code invalid, "+it.status+" "+it.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 it=Be.target.response,yt=this._range.from+this._receivedLength;this._receivedLength+=it.byteLength,this._onDataArrival&&this._onDataArrival(it,yt,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 it=0,yt=null;if(this._contentLength&&Be.loaded<this._contentLength?(it=h.EARLY_EOF,yt={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(it=h.EXCEPTION,yt={code:-1,msg:Be.constructor.name+" "+Be.type}),this._onError)this._onError(it,yt);else throw new e(yt.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(it){return l.w("MozChunkedLoader",it.message),!1}}}]),Me}(g),O=S,I=function($t){Object(t.a)(Me,$t);var Nt=Object(a.a)(Me);function Me(ke,Be){var it;return Object(y.a)(this,Me),it=Nt.call(this,"xhr-msstream-loader"),it.TAG="MSStreamLoader",it._seekHandler=ke,it._config=Be,it._needStash=!0,it._xhr=null,it._reader=null,it._totalRange=null,it._currentRange=null,it._currentRequestURL=null,it._currentRedirectedURL=null,it._contentLength=null,it._receivedLength=0,it._bufferLimit=16*1024*1024,it._lastTimeBufferSize=0,it._isReconnecting=!1,it}return Object(p.a)(Me,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),Object(A.a)(Object(b.a)(Me.prototype),"destroy",this).call(this)}},{key:"open",value:function(Be,it){this._internalOpen(Be,it,!1)}},{key:"_internalOpen",value:function(Be,it,yt){this._dataSource=Be,yt?this._currentRange=it:this._totalRange=it;var Tt=Be.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Tt=this._currentRedirectedURL:Be.redirectedURL!=null&&(Tt=Be.redirectedURL));var Yt=this._seekHandler.getConfig(Tt,it);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 $r=this._xhr=new XMLHttpRequest;if($r.open("GET",Yt.url,!0),$r.responseType="ms-stream",$r.onreadystatechange=this._xhrOnReadyStateChange.bind(this),$r.onerror=this._xhrOnError.bind(this),Be.withCredentials&&($r.withCredentials=!0),typeof Yt.headers=="object"){var An=Yt.headers;for(var zt in An)An.hasOwnProperty(zt)&&$r.setRequestHeader(zt,An[zt])}if(typeof this._config.headers=="object"){var At=this._config.headers;for(var wt in At)At.hasOwnProperty(wt)&&$r.setRequestHeader(wt,At[wt])}this._isReconnecting?this._isReconnecting=!1:this._status=c.kConnecting,$r.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 it=Be.target;if(it.readyState===2)if(it.status>=200&&it.status<=299){if(this._status=c.kBuffering,it.responseURL!=null){var yt=this._seekHandler.removeURLParameters(it.responseURL);it.responseURL!==this._currentRequestURL&&yt!==this._currentRedirectedURL&&(this._currentRedirectedURL=yt,this._onURLRedirect&&this._onURLRedirect(yt))}var Tt=it.getResponseHeader("Content-Length");if(Tt!=null&&this._contentLength==null){var Yt=parseInt(Tt);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:it.status,msg:it.statusText});else throw new e("MSStreamLoader: Http code invalid, "+it.status+" "+it.statusText);else if(it.readyState===3&&(it.status>=200&&it.status<=299)){this._status=c.kBuffering;var Pr=it.response;this._reader.readAsArrayBuffer(Pr)}}},{key:"_xhrOnError",value:function(Be){this._status=c.kError;var it=h.EXCEPTION,yt={code:-1,msg:Be.constructor.name+" "+Be.type};if(this._onError)this._onError(it,yt);else throw new e(yt.msg)}},{key:"_msrOnProgress",value:function(Be){var it=Be.target,yt=it.result;if(yt==null){this._doReconnectIfNeeded();return}var Tt=yt.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=yt.byteLength;var Yt=this._totalRange.from+this._receivedLength;this._receivedLength+=Tt.byteLength,this._onDataArrival&&this._onDataArrival(Tt,Yt,this._receivedLength),yt.byteLength>=this._bufferLimit&&(l.v(this.TAG,"MSStream buffer exceeded max size near ".concat(Yt+Tt.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 it=0,yt=null;if(this._contentLength&&this._receivedLength<this._contentLength?(it=h.EARLY_EOF,yt={code:-1,msg:"MSStream meet Early-Eof"}):(it=h.EARLY_EOF,yt={code:-1,msg:Be.constructor.name+" "+Be.type}),this._onError)this._onError(it,yt);else throw new e(yt.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(it){return l.w("MSStreamLoader",it.message),!1}}}]),Me}(g),F=I,P=function($t){Object(t.a)(Me,$t);var Nt=Object(a.a)(Me);function Me(ke,Be){var it;return Object(y.a)(this,Me),it=Nt.call(this,"xhr-range-loader"),it.TAG="RangeLoader",it._seekHandler=ke,it._config=Be,it._needStash=!1,it._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],it._currentChunkSizeKB=384,it._currentSpeedNormalized=0,it._zeroSpeedChunkCount=0,it._xhr=null,it._speedSampler=new n,it._requestAbort=!1,it._waitForTotalLength=!1,it._totalLengthReceived=!1,it._currentRequestURL=null,it._currentRedirectedURL=null,it._currentRequestRange=null,it._totalLength=null,it._contentLength=null,it._receivedLength=0,it._lastTimeLoaded=0,it}return Object(p.a)(Me,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),Object(A.a)(Object(b.a)(Me.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(Be,it){this._dataSource=Be,this._range=it,this._status=c.kConnecting;var yt=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(yt=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!yt?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var Be=this._currentChunkSizeKB*1024,it=this._range.from+this._receivedLength,yt=it+Be;this._contentLength!=null&&(yt-this._range.from>=this._contentLength&&(yt=this._range.from+this._contentLength-1)),this._currentRequestRange={from:it,to:yt},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Be,it){this._lastTimeLoaded=0;var yt=Be.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?yt=this._currentRedirectedURL:Be.redirectedURL!=null&&(yt=Be.redirectedURL));var Tt=this._seekHandler.getConfig(yt,it);this._currentRequestURL=Tt.url;var Yt=this._xhr=new XMLHttpRequest;if(Yt.open("GET",Tt.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 Tt.headers=="object"){var Pr=Tt.headers;for(var $r in Pr)Pr.hasOwnProperty($r)&&Yt.setRequestHeader($r,Pr[$r])}if(typeof this._config.headers=="object"){var An=this._config.headers;for(var zt in An)An.hasOwnProperty(zt)&&Yt.setRequestHeader(zt,An[zt])}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 it=Be.target;if(it.readyState===2){if(it.responseURL!=null){var yt=this._seekHandler.removeURLParameters(it.responseURL);it.responseURL!==this._currentRequestURL&&yt!==this._currentRedirectedURL&&(this._currentRedirectedURL=yt,this._onURLRedirect&&this._onURLRedirect(yt))}if(it.status>=200&&it.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:it.status,msg:it.statusText});else throw new e("RangeLoader: Http code invalid, "+it.status+" "+it.statusText)}}},{key:"_onProgress",value:function(Be){if(this._status===c.kError)return;if(this._contentLength===null){var it=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,it=!0;var yt=Be.total;this._internalAbort(),yt!=null&yt!==0&&(this._totalLength=yt)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,it){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var Tt=Be.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Be.loaded,this._speedSampler.addBytes(Tt)}},{key:"_normalizeSpeed",value:function(Be){var it=this._chunkSizeKBList,yt=it.length-1,Tt=0,Yt=0,Pr=yt;if(Be<it[0])return it[0];for(;Yt<=Pr;){if(Tt=Yt+Math.floor((Pr-Yt)/2),Tt===yt||Be>=it[Tt]&&Be<it[Tt+1])return it[Tt];it[Tt]<Be?Yt=Tt+1:Pr=Tt-1}}},{key:"_onLoad",value:function(Be){if(this._status===c.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var it=this._speedSampler.lastSecondKBps;if(it===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(it=this._speedSampler.currentKBps)),it!==0){var yt=this._normalizeSpeed(it);this._currentSpeedNormalized!==yt&&(this._currentSpeedNormalized=yt,this._currentChunkSizeKB=yt)}var Tt=Be.target.response,Yt=this._range.from+this._receivedLength;this._receivedLength+=Tt.byteLength;var Pr=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Pr=!0,this._onDataArrival&&this._onDataArrival(Tt,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 it=0,yt=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(it=h.EARLY_EOF,yt={code:-1,msg:"RangeLoader meet Early-Eof"}):(it=h.EXCEPTION,yt={code:-1,msg:Be.constructor.name+" "+Be.type}),this._onError)this._onError(it,yt);else throw new e(yt.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(it){return l.w("RangeLoader",it.message),!1}}}]),Me}(g),B=P,k=function($t){Object(t.a)(Me,$t);var Nt=Object(a.a)(Me);function Me(){var ke;return Object(y.a)(this,Me),ke=Nt.call(this,"websocket-loader"),ke.TAG="WebSocketLoader",ke._needStash=!0,ke._ws=null,ke._requestAbort=!1,ke._receivedLength=0,ke}return Object(p.a)(Me,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(A.a)(Object(b.a)(Me.prototype),"destroy",this).call(this)}},{key:"open",value:function(Be){try{var it=this._ws=new self.WebSocket(Be.url);it.binaryType="arraybuffer",it.onopen=this._onWebSocketOpen.bind(this),it.onclose=this._onWebSocketClose.bind(this),it.onmessage=this._onWebSocketMessage.bind(this),it.onerror=this._onWebSocketError.bind(this),this._status=c.kConnecting}catch(Tt){this._status=c.kError;var yt={code:Tt.code,msg:Tt.message};if(this._onError)this._onError(h.EXCEPTION,yt);else throw new e(yt.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 it=this;if(Be.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Be.data);else if(Be.data instanceof Blob){var yt=new FileReader;yt.onload=function(){it._dispatchArrayBuffer(yt.result)},yt.readAsArrayBuffer(Be.data)}else{this._status=c.kError;var Tt={code:-1,msg:"Unsupported WebSocket message type: "+Be.data.constructor.name};if(this._onError)this._onError(h.EXCEPTION,Tt);else throw new e(Tt.msg)}}},{key:"_dispatchArrayBuffer",value:function(Be){var it=Be,yt=this._receivedLength;this._receivedLength+=it.byteLength,this._onDataArrival&&this._onDataArrival(it,yt,this._receivedLength)}},{key:"_onWebSocketError",value:function(Be){this._status=c.kError;var it={code:Be.code,msg:Be.message};if(this._onError)this._onError(h.EXCEPTION,it);else throw new e(it.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(Be){return!1}}}]),Me}(g),G=k,M=function(){function $t(Nt){Object(y.a)(this,$t),this._zeroStart=Nt||!1}return Object(p.a)($t,[{key:"getConfig",value:function(Me,ke){var Be={};if(ke.from!==0||ke.to!==-1){var it;ke.to!==-1?it="bytes=".concat(ke.from.toString(),"-").concat(ke.to.toString()):it="bytes=".concat(ke.from.toString(),"-"),Be.Range=it}else this._zeroStart&&(Be.Range="bytes=0-");return{url:Me,headers:Be}}},{key:"removeURLParameters",value:function(Me){return Me}}]),$t}(),j=M,K=function(){function $t(Nt,Me){Object(y.a)(this,$t),this._startName=Nt,this._endName=Me}return Object(p.a)($t,[{key:"getConfig",value:function(Me,ke){var Be=Me;if(ke.from!==0||ke.to!==-1){var it=!0;Be.indexOf("?")===-1&&(Be+="?",it=!1),it&&(Be+="&"),Be+="".concat(this._startName,"=").concat(ke.from.toString()),ke.to!==-1&&(Be+="&".concat(this._endName,"=").concat(ke.to.toString()))}return{url:Be,headers:{}}}},{key:"removeURLParameters",value:function(Me){var ke=Me.split("?")[0],Be=void 0,it=Me.indexOf("?");it!==-1&&(Be=Me.substring(it+1));var yt="";if(Be!=null&&Be.length>0)for(var Tt=Be.split("&"),Yt=0;Yt<Tt.length;Yt++){var Pr=Tt[Yt].split("="),$r=Yt>0;Pr[0]!==this._startName&&Pr[0]!==this._endName&&($r&&(yt+="&"),yt+=Tt[Yt])}return yt.length===0?ke:ke+"?"+yt}}]),$t}(),z=K,V=function(){function $t(Nt,Me,ke){Object(y.a)(this,$t),this.TAG="IOController",this._config=Me,this._extraData=ke,this._stashInitialSize=1024*384,Me.stashInitialSize!=null&&Me.stashInitialSize>0&&(this._stashInitialSize=Me.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,Me.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=Nt,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(Nt.url),this._refTotalLength=Nt.filesize?Nt.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(Me){this._extraData=Me}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Me){this._onDataArrival=Me}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(Me){this._onSeeked=Me}},{key:"onError",get:function(){return this._onError},set:function(Me){this._onError=Me}},{key:"onComplete",get:function(){return this._onComplete},set:function(Me){this._onComplete=Me}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(Me){this._onRedirect=Me}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(Me){this._onRecoveredEarlyEof=Me}},{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 Me=this._config;if(Me.seekType==="range")this._seekHandler=new j(this._config.rangeLoadZeroStart);else if(Me.seekType==="param"){var ke=Me.seekParamStart||"bstart",Be=Me.seekParamEnd||"bend";this._seekHandler=new z(ke,Be)}else if(Me.seekType==="custom"){if(typeof Me.customSeekHandler!="function")throw new r("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new Me.customSeekHandler}else throw new r("Invalid seekType in config: ".concat(Me.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=G;else if(T.isSupported())this._loaderClass=T;else if(O.isSupported())this._loaderClass=O;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(Me){this._currentRange={from:0,to:-1},Me&&(this._currentRange.from=Me),this._speedSampler.reset(),Me||(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 Me=this._resumeFrom;this._resumeFrom=0,this._internalSeek(Me,!0)}}},{key:"seek",value:function(Me){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(Me,!0)}},{key:"_internalSeek",value:function(Me,ke){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(ke),this._loader.destroy(),this._loader=null;var Be={from:Me,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(Me){if(!Me||typeof Me!="string"||Me.length===0)throw new r("Url must be a non-empty string!");this._dataSource.url=Me}},{key:"_expandBuffer",value:function(Me){for(var ke=this._stashSize;ke+1024*1024*1<Me;)ke*=2;if(ke+=1024*1024*1,ke===this._bufferSize)return;var Be=new ArrayBuffer(ke);if(this._stashUsed>0){var it=new Uint8Array(this._stashBuffer,0,this._stashUsed),yt=new Uint8Array(Be,0,ke);yt.set(it,0)}this._stashBuffer=Be,this._bufferSize=ke}},{key:"_normalizeSpeed",value:function(Me){var ke=this._speedNormalizeList,Be=ke.length-1,it=0,yt=0,Tt=Be;if(Me<ke[0])return ke[0];for(;yt<=Tt;){if(it=yt+Math.floor((Tt-yt)/2),it===Be||Me>=ke[it]&&Me<ke[it+1])return ke[it];ke[it]<Me?yt=it+1:Tt=it-1}}},{key:"_adjustStashSize",value:function(Me){var ke=0;this._config.isLive||Me<512?ke=Me:Me>=512&&Me<=1024?ke=Math.floor(Me*1.5):ke=Me*2,ke>8192&&(ke=8192);var Be=ke*1024+1024*1024*1;this._bufferSize<Be&&this._expandBuffer(Be),this._stashSize=ke*1024}},{key:"_dispatchChunks",value:function(Me,ke){return this._currentRange.to=ke+Me.byteLength-1,this._onDataArrival(Me,ke)}},{key:"_onURLRedirect",value:function(Me){this._redirectedURL=Me,this._onRedirect&&this._onRedirect(Me)}},{key:"_onContentLengthKnown",value:function(Me){Me&&this._fullRequestFlag&&(this._totalLength=Me,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(Me,ke,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(Me.byteLength);var it=this._speedSampler.lastSecondKBps;if(it!==0){var yt=this._normalizeSpeed(it);this._speedNormalized!==yt&&(this._speedNormalized=yt,this._adjustStashSize(yt))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=ke),this._stashUsed+Me.byteLength<=this._stashSize){var At=new Uint8Array(this._stashBuffer,0,this._stashSize);At.set(new Uint8Array(Me),this._stashUsed),this._stashUsed+=Me.byteLength}else{var wt=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var vr=this._stashBuffer.slice(0,this._stashUsed),Jt=this._dispatchChunks(vr,this._stashByteStart);if(Jt<vr.byteLength){if(Jt>0){var Ut=new Uint8Array(vr,Jt);wt.set(Ut,0),this._stashUsed=Ut.byteLength,this._stashByteStart+=Jt}}else this._stashUsed=0,this._stashByteStart+=Jt;this._stashUsed+Me.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+Me.byteLength),wt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),wt.set(new Uint8Array(Me),this._stashUsed),this._stashUsed+=Me.byteLength}else{var tr=this._dispatchChunks(Me,ke);if(tr<Me.byteLength){var Ft=Me.byteLength-tr;Ft>this._bufferSize&&(this._expandBuffer(Ft),wt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),wt.set(new Uint8Array(Me,tr),0),this._stashUsed+=Ft,this._stashByteStart=ke+tr}}}else if(this._stashUsed===0){var Tt=this._dispatchChunks(Me,ke);if(Tt<Me.byteLength){var Yt=Me.byteLength-Tt;Yt>this._bufferSize&&this._expandBuffer(Yt);var Pr=new Uint8Array(this._stashBuffer,0,this._bufferSize);Pr.set(new Uint8Array(Me,Tt),0),this._stashUsed+=Yt,this._stashByteStart=ke+Tt}}else{this._stashUsed+Me.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+Me.byteLength);var $r=new Uint8Array(this._stashBuffer,0,this._bufferSize);$r.set(new Uint8Array(Me),this._stashUsed),this._stashUsed+=Me.byteLength;var An=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(An<this._stashUsed&&An>0){var zt=new Uint8Array(this._stashBuffer,An);$r.set(zt,0)}this._stashUsed-=An,this._stashByteStart+=An}}},{key:"_flushStashBuffer",value:function(Me){if(this._stashUsed>0){var ke=this._stashBuffer.slice(0,this._stashUsed),Be=this._dispatchChunks(ke,this._stashByteStart),it=ke.byteLength-Be;if(Be<ke.byteLength)if(Me)l.w(this.TAG,"".concat(it," bytes unconsumed data remain when flush buffer, dropped"));else{if(Be>0){var yt=new Uint8Array(this._stashBuffer,0,this._bufferSize),Tt=new Uint8Array(ke,Be);yt.set(Tt,0),this._stashUsed=Tt.byteLength,this._stashByteStart+=Be}return 0}return this._stashUsed=0,this._stashByteStart=0,it}return 0}},{key:"_onLoaderComplete",value:function(Me,ke){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(Me,ke){l.e(this.TAG,"Loader error, code = ".concat(ke.code,", msg = ").concat(ke.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,Me=h.UNRECOVERABLE_EARLY_EOF);switch(Me){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}Me=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(Me,ke);else throw new e("IOException: "+ke.msg)}}]),$t}(),Q=V,X={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({},X)}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 Me=new Q({},te()),ke=Me.loaderType;return Me.destroy(),ke=="fetch-stream-loader"||ke=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var Me=new Q({},te()),ke=Me.loaderType;return Me.destroy(),ke}},{key:"supportNativeMediaPlayback",value:function(Me){$t.videoElement==null&&($t.videoElement=window.document.createElement("video"));var ke=$t.videoElement.canPlayType(Me);return ke==="probably"||ke=="maybe"}},{key:"getFeatureList",value:function(){var Me={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return Me.mseFlvPlayback=$t.supportMSEH264Playback(),Me.networkStreamIO=$t.supportNetworkStreamIO(),Me.networkLoaderName=$t.getNetworkLoaderTypeName(),Me.mseLiveFlvPlayback=Me.mseFlvPlayback&&Me.networkStreamIO,Me.nativeMP4H264Playback=$t.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Me.nativeWebmVP8Playback=$t.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),Me.nativeWebmVP9Playback=$t.supportNativeMediaPlayback('video/webm; codecs="vp9"'),Me}}]),$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(Me){l.FORCE_GLOBAL_TAG=Me,$t._notifyChange()}},{key:"globalTag",get:function(){return l.GLOBAL_TAG},set:function(Me){l.GLOBAL_TAG=Me,$t._notifyChange()}},{key:"enableAll",get:function(){return l.ENABLE_VERBOSE&&l.ENABLE_DEBUG&&l.ENABLE_INFO&&l.ENABLE_WARN&&l.ENABLE_ERROR},set:function(Me){l.ENABLE_VERBOSE=Me,l.ENABLE_DEBUG=Me,l.ENABLE_INFO=Me,l.ENABLE_WARN=Me,l.ENABLE_ERROR=Me,$t._notifyChange()}},{key:"enableDebug",get:function(){return l.ENABLE_DEBUG},set:function(Me){l.ENABLE_DEBUG=Me,$t._notifyChange()}},{key:"enableVerbose",get:function(){return l.ENABLE_VERBOSE},set:function(Me){l.ENABLE_VERBOSE=Me,$t._notifyChange()}},{key:"enableInfo",get:function(){return l.ENABLE_INFO},set:function(Me){l.ENABLE_INFO=Me,$t._notifyChange()}},{key:"enableWarn",get:function(){return l.ENABLE_WARN},set:function(Me){l.ENABLE_WARN=Me,$t._notifyChange()}},{key:"enableError",get:function(){return l.ENABLE_ERROR},set:function(Me){l.ENABLE_ERROR=Me,$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(Me){l.GLOBAL_TAG=Me.globalTag,l.FORCE_GLOBAL_TAG=Me.forceGlobalTag,l.ENABLE_VERBOSE=Me.enableVerbose,l.ENABLE_DEBUG=Me.enableDebug,l.ENABLE_INFO=Me.enableInfo,l.ENABLE_WARN=Me.enableWarn,l.ENABLE_ERROR=Me.enableError,l.ENABLE_CALLBACK=Me.enableCallback}},{key:"_notifyChange",value:function(){var Me=$t.emitter;if(Me.listenerCount("change")>0){var ke=$t.getConfig();Me.emit("change",ke)}}},{key:"registerListener",value:function(Me){$t.emitter.addListener("change",Me)}},{key:"removeListener",value:function(Me){$t.emitter.removeListener("change",Me)}},{key:"addLogListener",value:function(Me){l.emitter.addListener("log",Me),l.emitter.listenerCount("log")>0&&(l.ENABLE_CALLBACK=!0,$t._notifyChange())}},{key:"removeLogListener",value:function(Me){l.emitter.removeListener("log",Me),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 Me=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,ke=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&Me&&ke}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(Me){if(this.keyframesIndex==null)return null;var ke=this.keyframesIndex,Be=this._search(ke.times,Me);return{index:Be,milliseconds:ke.times[Be],fileposition:ke.filepositions[Be]}}},{key:"_search",value:function(Me,ke){var Be=0,it=Me.length-1,yt=0,Tt=0,Yt=it;for(ke<Me[0]&&(Be=0,Tt=Yt+1);Tt<=Yt;)if(yt=Tt+Math.floor((Yt-Tt)/2),yt===it||ke>=Me[yt]&&ke<Me[yt+1]){Be=yt;break}else Me[yt]<ke?Tt=yt+1:Yt=yt-1;return Be}}]),$t}(),Ge=Je;function ct($t,Nt,Me){var ke=$t;if(Nt+Me<ke.length){for(;Me--;)if((ke[++Nt]&192)!==128)return!1;return!0}else return!1}function Ue($t){for(var Nt=[],Me=$t,ke=0,Be=$t.length;ke<Be;){if(Me[ke]<128){Nt.push(String.fromCharCode(Me[ke])),++ke;continue}else if(!(Me[ke]<192)){if(Me[ke]<224){if(ct(Me,ke,1)){var it=(Me[ke]&31)<<6|Me[ke+1]&63;if(it>=128){Nt.push(String.fromCharCode(it&65535)),ke+=2;continue}}}else if(Me[ke]<240){if(ct(Me,ke,2)){var yt=(Me[ke]&15)<<12|(Me[ke+1]&63)<<6|Me[ke+2]&63;if(yt>=2048&&(yt&63488)!==55296){Nt.push(String.fromCharCode(yt&65535)),ke+=3;continue}}}else if(Me[ke]<248&&ct(Me,ke,3)){var Tt=(Me[ke]&7)<<18|(Me[ke+1]&63)<<12|(Me[ke+2]&63)<<6|Me[ke+3]&63;if(Tt>65536&&Tt<1114112){Tt-=65536,Nt.push(String.fromCharCode(Tt>>>10|55296)),Nt.push(String.fromCharCode(Tt&1023|56320)),ke+=4;continue}}}Nt.push(String.fromCharCode(65533)),++ke}return Nt.join("")}var ae=Ue,lt=function(){var $t=new ArrayBuffer(2);return new DataView($t).setInt16(0,256,!0),new Int16Array($t)[0]===256}(),pe=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"parseScriptData",value:function(Me,ke,Be){var it={};try{var yt=$t.parseValue(Me,ke,Be),Tt=$t.parseValue(Me,ke+yt.size,Be-yt.size);it[yt.data]=Tt.data}catch(Yt){l.e("AMF",Yt.toString())}return it}},{key:"parseObject",value:function(Me,ke,Be){if(Be<3)throw new u("Data not enough when parse ScriptDataObject");var it=$t.parseString(Me,ke,Be),yt=$t.parseValue(Me,ke+it.size,Be-it.size),Tt=yt.objectEnd;return{data:{name:it.data,value:yt.data},size:it.size+yt.size,objectEnd:Tt}}},{key:"parseVariable",value:function(Me,ke,Be){return $t.parseObject(Me,ke,Be)}},{key:"parseString",value:function(Me,ke,Be){if(Be<2)throw new u("Data not enough when parse String");var it=new DataView(Me,ke,Be),yt=it.getUint16(0,!lt),Tt;return yt>0?Tt=ae(new Uint8Array(Me,ke+2,yt)):Tt="",{data:Tt,size:2+yt}}},{key:"parseLongString",value:function(Me,ke,Be){if(Be<4)throw new u("Data not enough when parse LongString");var it=new DataView(Me,ke,Be),yt=it.getUint32(0,!lt),Tt;return yt>0?Tt=ae(new Uint8Array(Me,ke+4,yt)):Tt="",{data:Tt,size:4+yt}}},{key:"parseDate",value:function(Me,ke,Be){if(Be<10)throw new u("Data size invalid when parse Date");var it=new DataView(Me,ke,Be),yt=it.getFloat64(0,!lt),Tt=it.getInt16(8,!lt);return yt+=Tt*60*1e3,{data:new Date(yt),size:8+2}}},{key:"parseValue",value:function(Me,ke,Be){if(Be<1)throw new u("Data not enough when parse Value");var it=new DataView(Me,ke,Be),yt=1,Tt=it.getUint8(0),Yt,Pr=!1;try{switch(Tt){case 0:Yt=it.getFloat64(1,!lt),yt+=8;break;case 1:{var $r=it.getUint8(1);Yt=!!$r,yt+=1;break}case 2:{var An=$t.parseString(Me,ke+1,Be-1);Yt=An.data,yt+=An.size;break}case 3:{Yt={};var zt=0;for((it.getUint32(Be-4,!lt)&16777215)===9&&(zt=3);yt<Be-4;){var At=$t.parseObject(Me,ke+yt,Be-yt-zt);if(At.objectEnd)break;Yt[At.data.name]=At.data.value,yt+=At.size}if(yt<=Be-3){var wt=it.getUint32(yt-1,!lt)&16777215;wt===9&&(yt+=3)}break}case 8:{Yt={},yt+=4;var vr=0;for((it.getUint32(Be-4,!lt)&16777215)===9&&(vr=3);yt<Be-8;){var Jt=$t.parseVariable(Me,ke+yt,Be-yt-vr);if(Jt.objectEnd)break;Yt[Jt.data.name]=Jt.data.value,yt+=Jt.size}if(yt<=Be-3){var Ut=it.getUint32(yt-1,!lt)&16777215;Ut===9&&(yt+=3)}break}case 9:Yt=void 0,yt=1,Pr=!0;break;case 10:{Yt=[];var tr=it.getUint32(1,!lt);yt+=4;for(var Ft=0;Ft<tr;Ft++){var qt=$t.parseValue(Me,ke+yt,Be-yt);Yt.push(qt.data),yt+=qt.size}break}case 11:{var Hr=$t.parseDate(Me,ke+1,Be-1);Yt=Hr.data,yt+=Hr.size;break}case 12:{var Nr=$t.parseString(Me,ke+1,Be-1);Yt=Nr.data,yt+=Nr.size;break}default:yt=Be,l.w("AMF","Unsupported AMF value type "+Tt)}}catch(Dr){l.e("AMF",Dr.toString())}return{data:Yt,size:yt,objectEnd:Pr}}}]),$t}(),J=pe,Y=function(){function $t(Nt){Object(y.a)(this,$t),this.TAG="ExpGolomb",this._buffer=Nt,this._buffer_index=0,this._total_bytes=Nt.byteLength,this._total_bits=Nt.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 Me=this._total_bytes-this._buffer_index;if(Me<=0)throw new u("ExpGolomb: _fillCurrentWord() but no bytes available");var ke=Math.min(4,Me),Be=new Uint8Array(4);Be.set(this._buffer.subarray(this._buffer_index,this._buffer_index+ke)),this._current_word=new DataView(Be.buffer).getUint32(0,!1),this._buffer_index+=ke,this._current_word_bits_left=ke*8}},{key:"readBits",value:function(Me){if(Me>32)throw new r("ExpGolomb: readBits() bits exceeded max 32bits!");if(Me<=this._current_word_bits_left){var ke=this._current_word>>>32-Me;return this._current_word<<=Me,this._current_word_bits_left-=Me,ke}var Be=this._current_word_bits_left?this._current_word:0;Be=Be>>>32-this._current_word_bits_left;var it=Me-this._current_word_bits_left;this._fillCurrentWord();var yt=Math.min(it,this._current_word_bits_left),Tt=this._current_word>>>32-yt;return this._current_word<<=yt,this._current_word_bits_left-=yt,Be=Be<<yt|Tt,Be}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var Me;for(Me=0;Me<this._current_word_bits_left;Me++)if((this._current_word&2147483648>>>Me)!==0)return this._current_word<<=Me,this._current_word_bits_left-=Me,Me;return this._fillCurrentWord(),Me+this._skipLeadingZero()}},{key:"readUEG",value:function(){var Me=this._skipLeadingZero();return this.readBits(Me+1)-1}},{key:"readSEG",value:function(){var Me=this.readUEG();return Me&1?Me+1>>>1:-1*(Me>>>1)}}]),$t}(),ee=Y,fe=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"_ebsp2rbsp",value:function(Me){for(var ke=Me,Be=ke.byteLength,it=new Uint8Array(Be),yt=0,Tt=0;Tt<Be;Tt++){if(Tt>=2&&(ke[Tt]===3&&ke[Tt-1]===0&&ke[Tt-2]===0))continue;it[yt]=ke[Tt],yt++}return new Uint8Array(it.buffer,0,yt)}},{key:"parseSPS",value:function(Me){var ke=$t._ebsp2rbsp(Me),Be=new ee(ke);Be.readByte();var it=Be.readByte();Be.readByte();var yt=Be.readByte();Be.readUEG();var Tt=$t.getProfileString(it),Yt=$t.getLevelString(yt),Pr=1,$r=420,An=[0,420,422,444],zt=8;if((it===100||it===110||it===122||it===244||it===44||it===83||it===86||it===118||it===128||it===138||it===144)&&(Pr=Be.readUEG(),Pr===3&&Be.readBits(1),Pr<=3&&($r=An[Pr]),zt=Be.readUEG()+8,Be.readUEG(),Be.readBits(1),Be.readBool()))for(var At=Pr!==3?8:12,wt=0;wt<At;wt++)Be.readBool()&&(wt<6?$t._skipScalingList(Be,16):$t._skipScalingList(Be,64));Be.readUEG();var vr=Be.readUEG();if(vr===0)Be.readUEG();else if(vr===1){Be.readBits(1),Be.readSEG(),Be.readSEG();for(var Jt=Be.readUEG(),Ut=0;Ut<Jt;Ut++)Be.readSEG()}var tr=Be.readUEG();Be.readBits(1);var Ft=Be.readUEG(),qt=Be.readUEG(),Hr=Be.readBits(1);Hr===0&&Be.readBits(1),Be.readBits(1);var Nr=0,Dr=0,cn=0,vn=0,ei=Be.readBool();ei&&(Nr=Be.readUEG(),Dr=Be.readUEG(),cn=Be.readUEG(),vn=Be.readUEG());var qn=1,fi=1,xi=0,Ni=!0,Hi=0,nt=0,Ne=Be.readBool();if(Ne){if(Be.readBool()){var He=Be.readByte(),Xe=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],rt=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];He>0&&He<16?(qn=Xe[He-1],fi=rt[He-1]):He===255&&(qn=Be.readByte()<<8|Be.readByte(),fi=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 Ze=Be.readBits(32),st=Be.readBits(32);Ni=Be.readBool(),Hi=st,nt=Ze*2,xi=Hi/nt}}var xt=1;(qn!==1||fi!==1)&&(xt=qn/fi);var pt=0,hr=0;if(Pr===0)pt=1,hr=2-Hr;else{var Zr=Pr===3?1:2,Xr=Pr===1?2:1;pt=Zr,hr=Xr*(2-Hr)}var pn=(Ft+1)*16,gr=(2-Hr)*((qt+1)*16);pn-=(Nr+Dr)*pt,gr-=(cn+vn)*hr;var Kn=Math.ceil(pn*xt);return Be.destroy(),Be=null,{profile_string:Tt,level_string:Yt,bit_depth:zt,ref_frames:tr,chroma_format:$r,chroma_format_string:$t.getChromaFormatString($r),frame_rate:{fixed:Ni,fps:xi,fps_den:nt,fps_num:Hi},sar_ratio:{width:qn,height:fi},codec_size:{width:pn,height:gr},present_size:{width:Kn,height:gr}}}},{key:"_skipScalingList",value:function(Me,ke){for(var Be=8,it=8,yt=0,Tt=0;Tt<ke;Tt++)it!==0&&(yt=Me.readSEG(),it=(Be+yt+256)%256),Be=it===0?Be:it}},{key:"getProfileString",value:function(Me){switch(Me){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(Me){return(Me/10).toFixed(1)}},{key:"getChromaFormatString",value:function(Me){switch(Me){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),$t}(),we=fe,Ce={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},_e=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 Le($t,Nt){return $t[Nt]<<24|$t[Nt+1]<<16|$t[Nt+2]<<8|$t[Nt+3]}var tt=function(){function $t(Nt,Me){Object(y.a)(this,$t),this.TAG="FLVDemuxer",this._config=Me,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=Nt.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=Nt.hasAudioTrack,this._hasVideo=Nt.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Ge,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var ke=new ArrayBuffer(2);return new DataView(ke).setInt16(0,256,!0),new Int16Array(ke)[0]===256}()}return Object(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(Me){return Me.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(Me){this._onTrackMetadata=Me}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(Me){this._onMediaInfo=Me}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(Me){this._onMetaDataArrived=Me}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(Me){this._onScriptDataArrived=Me}},{key:"onError",get:function(){return this._onError},set:function(Me){this._onError=Me}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(Me){this._onDataAvailable=Me}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(Me){this._timestampBase=Me}},{key:"overridedDuration",get:function(){return this._duration},set:function(Me){this._durationOverrided=!0,this._duration=Me,this._mediaInfo.duration=Me}},{key:"overridedHasAudio",set:function(Me){this._hasAudioFlagOverrided=!0,this._hasAudio=Me,this._mediaInfo.hasAudio=Me}},{key:"overridedHasVideo",set:function(Me){this._hasVideoFlagOverrided=!0,this._hasVideo=Me,this._mediaInfo.hasVideo=Me}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new Ge}},{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(Me,ke){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new u("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var Be=0,it=this._littleEndian;if(ke===0)if(Me.byteLength>13){var yt=$t.probe(Me);Be=yt.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,ke+Be!==this._dataOffset&&l.w(this.TAG,"First time parsing but chunk byteStart invalid!");var Tt=new DataView(Me,Be),Yt=Tt.getUint32(0,!it);Yt!==0&&l.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Be+=4}for(;Be<Me.byteLength;){this._dispatch=!0;var Pr=new DataView(Me,Be);if(Be+11+4>Me.byteLength)break;var $r=Pr.getUint8(0),An=Pr.getUint32(0,!it)&16777215;if(Be+11+An+4>Me.byteLength)break;if($r!==8&&$r!==9&&$r!==18){l.w(this.TAG,"Unsupported tag type ".concat($r,", skipped")),Be+=11+An+4;continue}var zt=Pr.getUint8(4),At=Pr.getUint8(5),wt=Pr.getUint8(6),vr=Pr.getUint8(7),Jt=wt|At<<8|zt<<16|vr<<24,Ut=Pr.getUint32(7,!it)&16777215;Ut!==0&&l.w(this.TAG,"Meet tag which has StreamID != 0!");var tr=Be+11;switch($r){case 8:this._parseAudioData(Me,tr,An,Jt);break;case 9:this._parseVideoData(Me,tr,An,Jt,ke+Be);break;case 18:this._parseScriptData(Me,tr,An);break}var Ft=Pr.getUint32(11+An,!it);Ft!==11+An&&l.w(this.TAG,"Invalid PrevTagSize ".concat(Ft)),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(Me,ke,Be){var it=J.parseScriptData(Me,ke,Be);if(it.hasOwnProperty("onMetaData")){if(it.onMetaData==null||typeof it.onMetaData!="object"){l.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&l.w(this.TAG,"Found another onMetaData tag!"),this._metadata=it;var yt=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},yt)),typeof yt.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=yt.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof yt.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=yt.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof yt.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=yt.audiodatarate),typeof yt.videodatarate=="number"&&(this._mediaInfo.videoDataRate=yt.videodatarate),typeof yt.width=="number"&&(this._mediaInfo.width=yt.width),typeof yt.height=="number"&&(this._mediaInfo.height=yt.height),typeof yt.duration=="number"){if(!this._durationOverrided){var Tt=Math.floor(yt.duration*this._timescale);this._duration=Tt,this._mediaInfo.duration=Tt}}else this._mediaInfo.duration=0;if(typeof yt.framerate=="number"){var Yt=Math.floor(yt.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 yt.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var $r=yt.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex($r),yt.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=yt,l.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(it).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},it)))}},{key:"_parseKeyframesIndex",value:function(Me){for(var ke=[],Be=[],it=1;it<Me.times.length;it++){var yt=this._timestampBase+Math.floor(Me.times[it]*1e3);ke.push(yt),Be.push(Me.filepositions[it])}return{times:ke,filepositions:Be}}},{key:"_parseAudioData",value:function(Me,ke,Be,it){if(Be<=1){l.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var yt=this._littleEndian,Tt=new DataView(Me,ke,Be),Yt=Tt.getUint8(0),Pr=Yt>>>4;if(Pr!==2&&Pr!==10){this._onError(_e.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Pr);return}var $r=0,An=(Yt&12)>>>2;if(An>=0&&An<=4)$r=this._flvSoundRateTable[An];else{this._onError(_e.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+An);return}var zt=(Yt&2)>>>1,At=Yt&1,wt=this._audioMetadata,vr=this._audioTrack;if(wt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),wt=this._audioMetadata={},wt.type="audio",wt.id=vr.id,wt.timescale=this._timescale,wt.duration=this._duration,wt.audioSampleRate=$r,wt.channelCount=At===0?1:2),Pr===10){var Jt=this._parseAACAudioData(Me,ke+1,Be-1);if(Jt==null)return;if(Jt.packetType===0){wt.config&&l.w(this.TAG,"Found another AudioSpecificConfig!");var Ut=Jt.data;wt.audioSampleRate=Ut.samplingRate,wt.channelCount=Ut.channelCount,wt.codec=Ut.codec,wt.originalCodec=Ut.originalCodec,wt.config=Ut.config,wt.refSampleDuration=1024/wt.audioSampleRate*wt.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",wt);var tr=this._mediaInfo;tr.audioCodec=wt.originalCodec,tr.audioSampleRate=wt.audioSampleRate,tr.audioChannelCount=wt.channelCount,tr.hasVideo?tr.videoCodec!=null&&(tr.mimeType='video/x-flv; codecs="'+tr.videoCodec+","+tr.audioCodec+'"'):tr.mimeType='video/x-flv; codecs="'+tr.audioCodec+'"',tr.isComplete()&&this._onMediaInfo(tr)}else if(Jt.packetType===1){var Ft=this._timestampBase+it,qt={unit:Jt.data,length:Jt.data.byteLength,dts:Ft,pts:Ft};vr.samples.push(qt),vr.length+=Jt.data.length}else l.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Jt.packetType))}else if(Pr===2){if(!wt.codec){var Hr=this._parseMP3AudioData(Me,ke+1,Be-1,!0);if(Hr==null)return;wt.audioSampleRate=Hr.samplingRate,wt.channelCount=Hr.channelCount,wt.codec=Hr.codec,wt.originalCodec=Hr.originalCodec,wt.refSampleDuration=1152/wt.audioSampleRate*wt.timescale,l.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",wt);var Nr=this._mediaInfo;Nr.audioCodec=wt.codec,Nr.audioSampleRate=wt.audioSampleRate,Nr.audioChannelCount=wt.channelCount,Nr.audioDataRate=Hr.bitRate,Nr.hasVideo?Nr.videoCodec!=null&&(Nr.mimeType='video/x-flv; codecs="'+Nr.videoCodec+","+Nr.audioCodec+'"'):Nr.mimeType='video/x-flv; codecs="'+Nr.audioCodec+'"',Nr.isComplete()&&this._onMediaInfo(Nr)}var Dr=this._parseMP3AudioData(Me,ke+1,Be-1,!1);if(Dr==null)return;var cn=this._timestampBase+it,vn={unit:Dr,length:Dr.byteLength,dts:cn,pts:cn};vr.samples.push(vn),vr.length+=Dr.length}}},{key:"_parseAACAudioData",value:function(Me,ke,Be){if(Be<=1){l.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var it={},yt=new Uint8Array(Me,ke,Be);return it.packetType=yt[0],yt[0]===0?it.data=this._parseAACAudioSpecificConfig(Me,ke+1,Be-1):it.data=yt.subarray(1),it}},{key:"_parseAACAudioSpecificConfig",value:function(Me,ke,Be){var it=new Uint8Array(Me,ke,Be),yt=null,Tt=0,Yt=0,Pr=null,$r=0,An=null;if(Tt=Yt=it[0]>>>3,$r=(it[0]&7)<<1|it[1]>>>7,$r<0||$r>=this._mpegSamplingRates.length){this._onError(_e.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var zt=this._mpegSamplingRates[$r],At=(it[1]&120)>>>3;if(At<0||At>=8){this._onError(_e.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}Tt===5&&(An=(it[1]&7)<<1|it[2]>>>7,Pr=(it[2]&124)>>>2);var wt=self.navigator.userAgent.toLowerCase();return wt.indexOf("firefox")!==-1?$r>=6?(Tt=5,yt=new Array(4),An=$r-3):(Tt=2,yt=new Array(2),An=$r):wt.indexOf("android")!==-1?(Tt=2,yt=new Array(2),An=$r):(Tt=5,An=$r,yt=new Array(4),$r>=6?An=$r-3:At===1&&(Tt=2,yt=new Array(2),An=$r)),yt[0]=Tt<<3,yt[0]|=($r&15)>>>1,yt[1]=($r&15)<<7,yt[1]|=(At&15)<<3,Tt===5&&(yt[1]|=(An&15)>>>1,yt[2]=(An&1)<<7,yt[2]|=2<<2,yt[3]=0),{config:yt,samplingRate:zt,channelCount:At,codec:"mp4a.40."+Tt,originalCodec:"mp4a.40."+Yt}}},{key:"_parseMP3AudioData",value:function(Me,ke,Be,it){if(Be<4){l.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var yt=this._littleEndian,Tt=new Uint8Array(Me,ke,Be),Yt=null;if(it){if(Tt[0]!==255)return;var Pr=Tt[1]>>>3&3,$r=(Tt[1]&6)>>1,An=(Tt[2]&240)>>>4,zt=(Tt[2]&12)>>>2,At=Tt[3]>>>6&3,wt=At!==3?2:1,vr=0,Jt=0,Ut=34,tr="mp3";switch(Pr){case 0:vr=this._mpegAudioV25SampleRateTable[zt];break;case 2:vr=this._mpegAudioV20SampleRateTable[zt];break;case 3:vr=this._mpegAudioV10SampleRateTable[zt];break}switch($r){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:vr,channelCount:wt,codec:tr,originalCodec:tr}}else Yt=Tt;return Yt}},{key:"_parseVideoData",value:function(Me,ke,Be,it,yt){if(Be<=1){l.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var Tt=new Uint8Array(Me,ke,Be)[0],Yt=(Tt&240)>>>4,Pr=Tt&15;if(Pr!==7){this._onError(_e.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(Pr));return}this._parseAVCVideoPacket(Me,ke+1,Be-1,it,yt,Yt)}},{key:"_parseAVCVideoPacket",value:function(Me,ke,Be,it,yt,Tt){if(Be<4){l.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var Yt=this._littleEndian,Pr=new DataView(Me,ke,Be),$r=Pr.getUint8(0),An=Pr.getUint32(0,!Yt)&16777215,zt=An<<8>>8;if($r===0)this._parseAVCDecoderConfigurationRecord(Me,ke+4,Be-4);else if($r===1)this._parseAVCVideoData(Me,ke+4,Be-4,it,yt,Tt,zt);else if(!($r===2)){this._onError(_e.FORMAT_ERROR,"Flv: Invalid video packet type ".concat($r));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(Me,ke,Be){if(Be<7){l.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var it=this._videoMetadata,yt=this._videoTrack,Tt=this._littleEndian,Yt=new DataView(Me,ke,Be);it?typeof it.avcc!="undefined"&&l.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),it=this._videoMetadata={},it.type="video",it.id=yt.id,it.timescale=this._timescale,it.duration=this._duration);var Pr=Yt.getUint8(0),$r=Yt.getUint8(1),An=Yt.getUint8(2),zt=Yt.getUint8(3);if(Pr!==1||$r===0){this._onError(_e.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Yt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(_e.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var At=Yt.getUint8(5)&31;if(At===0){this._onError(_e.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else At>1&&l.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(At));for(var wt=6,vr=0;vr<At;vr++){var Jt=Yt.getUint16(wt,!Tt);if(wt+=2,Jt===0)continue;var Ut=new Uint8Array(Me,ke+wt,Jt);wt+=Jt;var tr=we.parseSPS(Ut);if(vr!==0)continue;it.codecWidth=tr.codec_size.width,it.codecHeight=tr.codec_size.height,it.presentWidth=tr.present_size.width,it.presentHeight=tr.present_size.height,it.profile=tr.profile_string,it.level=tr.level_string,it.bitDepth=tr.bit_depth,it.chromaFormat=tr.chroma_format,it.sarRatio=tr.sar_ratio,it.frameRate=tr.frame_rate,(tr.frame_rate.fixed===!1||tr.frame_rate.fps_num===0||tr.frame_rate.fps_den===0)&&(it.frameRate=this._referenceFrameRate);var Ft=it.frameRate.fps_den,qt=it.frameRate.fps_num;it.refSampleDuration=it.timescale*(Ft/qt);for(var Hr=Ut.subarray(1,4),Nr="avc1.",Dr=0;Dr<3;Dr++){var cn=Hr[Dr].toString(16);cn.length<2&&(cn="0"+cn),Nr+=cn}it.codec=Nr;var vn=this._mediaInfo;vn.width=it.codecWidth,vn.height=it.codecHeight,vn.fps=it.frameRate.fps,vn.profile=it.profile,vn.level=it.level,vn.refFrames=tr.ref_frames,vn.chromaFormat=tr.chroma_format_string,vn.sarNum=it.sarRatio.width,vn.sarDen=it.sarRatio.height,vn.videoCodec=Nr,vn.hasAudio?vn.audioCodec!=null&&(vn.mimeType='video/x-flv; codecs="'+vn.videoCodec+","+vn.audioCodec+'"'):vn.mimeType='video/x-flv; codecs="'+vn.videoCodec+'"',vn.isComplete()&&this._onMediaInfo(vn)}var ei=Yt.getUint8(wt);if(ei===0){this._onError(_e.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else ei>1&&l.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(ei));wt++;for(var qn=0;qn<ei;qn++){var fi=Yt.getUint16(wt,!Tt);if(wt+=2,fi===0)continue;wt+=fi}it.avcc=new Uint8Array(Be),it.avcc.set(new Uint8Array(Me,ke,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",it)}},{key:"_parseAVCVideoData",value:function(Me,ke,Be,it,yt,Tt,Yt){for(var Pr=this._littleEndian,$r=new DataView(Me,ke,Be),An=[],zt=0,At=0,wt=this._naluLengthSize,vr=this._timestampBase+it,Jt=Tt===1;At<Be;){if(At+4>=Be){l.w(this.TAG,"Malformed Nalu near timestamp ".concat(vr,", offset = ").concat(At,", dataSize = ").concat(Be));break}var Ut=$r.getUint32(At,!Pr);if(wt===3&&(Ut>>>=8),Ut>Be-wt){l.w(this.TAG,"Malformed Nalus near timestamp ".concat(vr,", NaluSize > DataSize!"));return}var tr=$r.getUint8(At+wt)&31;tr===5&&(Jt=!0);var Ft=new Uint8Array(Me,ke+At,wt+Ut),qt={type:tr,data:Ft};An.push(qt),zt+=Ft.byteLength,At+=wt+Ut}if(An.length){var Hr=this._videoTrack,Nr={units:An,length:zt,isKeyframe:Jt,dts:vr,cts:Yt,pts:vr+Yt};Jt&&(Nr.fileposition=yt),Hr.samples.push(Nr),Hr.length+=zt}}}],[{key:"probe",value:function(Me){var ke=new Uint8Array(Me),Be={match:!1};if(ke[0]!==70||ke[1]!==76||ke[2]!==86||ke[3]!==1)return Be;var it=(ke[4]&4)>>>2!==0,yt=(ke[4]&1)!==0,Tt=Le(ke,5);return Tt<9?Be:{match:!0,consumed:Tt,dataOffset:Tt,hasAudioTrack:it,hasVideoTrack:yt}}}]),$t}(),gt=tt,at=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 Me in $t.types)$t.types.hasOwnProperty(Me)&&($t.types[Me]=[Me.charCodeAt(0),Me.charCodeAt(1),Me.charCodeAt(2),Me.charCodeAt(3)]);var ke=$t.constants={};ke.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),ke.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),ke.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),ke.STSC=ke.STCO=ke.STTS,ke.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ke.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),ke.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),ke.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ke.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ke.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(Me){for(var ke=8,Be=null,it=Array.prototype.slice.call(arguments,1),yt=it.length,Tt=0;Tt<yt;Tt++)ke+=it[Tt].byteLength;Be=new Uint8Array(ke),Be[0]=ke>>>24&255,Be[1]=ke>>>16&255,Be[2]=ke>>>8&255,Be[3]=ke&255,Be.set(Me,4);for(var Yt=8,Pr=0;Pr<yt;Pr++)Be.set(it[Pr],Yt),Yt+=it[Pr].byteLength;return Be}},{key:"generateInitSegment",value:function(Me){var ke=$t.box($t.types.ftyp,$t.constants.FTYP),Be=$t.moov(Me),it=new Uint8Array(ke.byteLength+Be.byteLength);return it.set(ke,0),it.set(Be,ke.byteLength),it}},{key:"moov",value:function(Me){var ke=$t.mvhd(Me.timescale,Me.duration),Be=$t.trak(Me),it=$t.mvex(Me);return $t.box($t.types.moov,ke,Be,it)}},{key:"mvhd",value:function(Me,ke){return $t.box($t.types.mvhd,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,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(Me){return $t.box($t.types.trak,$t.tkhd(Me),$t.mdia(Me))}},{key:"tkhd",value:function(Me){var ke=Me.id,Be=Me.duration,it=Me.presentWidth,yt=Me.presentHeight;return $t.box($t.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&255,0,0,0,0,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,it>>>8&255,it&255,0,0,yt>>>8&255,yt&255,0,0]))}},{key:"mdia",value:function(Me){return $t.box($t.types.mdia,$t.mdhd(Me),$t.hdlr(Me),$t.minf(Me))}},{key:"mdhd",value:function(Me){var ke=Me.timescale,Be=Me.duration;return $t.box($t.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&255,Be>>>24&255,Be>>>16&255,Be>>>8&255,Be&255,85,196,0,0]))}},{key:"hdlr",value:function(Me){var ke=null;return Me.type==="audio"?ke=$t.constants.HDLR_AUDIO:ke=$t.constants.HDLR_VIDEO,$t.box($t.types.hdlr,ke)}},{key:"minf",value:function(Me){var ke=null;return Me.type==="audio"?ke=$t.box($t.types.smhd,$t.constants.SMHD):ke=$t.box($t.types.vmhd,$t.constants.VMHD),$t.box($t.types.minf,ke,$t.dinf(),$t.stbl(Me))}},{key:"dinf",value:function(){var Me=$t.box($t.types.dinf,$t.box($t.types.dref,$t.constants.DREF));return Me}},{key:"stbl",value:function(Me){var ke=$t.box($t.types.stbl,$t.stsd(Me),$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 ke}},{key:"stsd",value:function(Me){return Me.type==="audio"?Me.codec==="mp3"?$t.box($t.types.stsd,$t.constants.STSD_PREFIX,$t.mp3(Me)):$t.box($t.types.stsd,$t.constants.STSD_PREFIX,$t.mp4a(Me)):$t.box($t.types.stsd,$t.constants.STSD_PREFIX,$t.avc1(Me))}},{key:"mp3",value:function(Me){var ke=Me.channelCount,Be=Me.audioSampleRate,it=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ke,0,16,0,0,0,0,Be>>>8&255,Be&255,0,0]);return $t.box($t.types[".mp3"],it)}},{key:"mp4a",value:function(Me){var ke=Me.channelCount,Be=Me.audioSampleRate,it=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ke,0,16,0,0,0,0,Be>>>8&255,Be&255,0,0]);return $t.box($t.types.mp4a,it,$t.esds(Me))}},{key:"esds",value:function(Me){var ke=Me.config||[],Be=ke.length,it=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(ke).concat([6,1,2]));return $t.box($t.types.esds,it)}},{key:"avc1",value:function(Me){var ke=Me.avcc,Be=Me.codecWidth,it=Me.codecHeight,yt=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,it>>>8&255,it&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,yt,$t.box($t.types.avcC,ke))}},{key:"mvex",value:function(Me){return $t.box($t.types.mvex,$t.trex(Me))}},{key:"trex",value:function(Me){var ke=Me.id,Be=new Uint8Array([0,0,0,0,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return $t.box($t.types.trex,Be)}},{key:"moof",value:function(Me,ke){return $t.box($t.types.moof,$t.mfhd(Me.sequenceNumber),$t.traf(Me,ke))}},{key:"mfhd",value:function(Me){var ke=new Uint8Array([0,0,0,0,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255]);return $t.box($t.types.mfhd,ke)}},{key:"traf",value:function(Me,ke){var Be=Me.id,it=$t.box($t.types.tfhd,new Uint8Array([0,0,0,0,Be>>>24&255,Be>>>16&255,Be>>>8&255,Be&255])),yt=$t.box($t.types.tfdt,new Uint8Array([0,0,0,0,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&255])),Tt=$t.sdtp(Me),Yt=$t.trun(Me,Tt.byteLength+16+16+8+16+8+8);return $t.box($t.types.traf,it,yt,Yt,Tt)}},{key:"sdtp",value:function(Me){for(var ke=Me.samples||[],Be=ke.length,it=new Uint8Array(4+Be),yt=0;yt<Be;yt++){var Tt=ke[yt].flags;it[yt+4]=Tt.isLeading<<6|Tt.dependsOn<<4|Tt.isDependedOn<<2|Tt.hasRedundancy}return $t.box($t.types.sdtp,it)}},{key:"trun",value:function(Me,ke){var Be=Me.samples||[],it=Be.length,yt=12+16*it,Tt=new Uint8Array(yt);ke+=8+yt,Tt.set([0,0,15,1,it>>>24&255,it>>>16&255,it>>>8&255,it&255,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&255],0);for(var Yt=0;Yt<it;Yt++){var Pr=Be[Yt].duration,$r=Be[Yt].size,An=Be[Yt].flags,zt=Be[Yt].cts;Tt.set([Pr>>>24&255,Pr>>>16&255,Pr>>>8&255,Pr&255,$r>>>24&255,$r>>>16&255,$r>>>8&255,$r&255,An.isLeading<<2|An.dependsOn,An.isDependedOn<<6|An.hasRedundancy<<4|An.isNonSync,0,0,zt>>>24&255,zt>>>16&255,zt>>>8&255,zt&255],12+16*Yt)}return $t.box($t.types.trun,Tt)}},{key:"mdat",value:function(Me){return $t.box($t.types.mdat,Me)}}]),$t}();at.init();var Fe=at,mt=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"getSilentFrame",value:function(Me,ke){if(Me==="mp4a.40.2"){if(ke===1)return new Uint8Array([0,200,0,128,35,128]);if(ke===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(ke===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(ke===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(ke===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(ke===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(ke===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ke===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ke===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}]),$t}(),et=mt,St=Object(p.a)(function $t(Nt,Me,ke,Be,it){Object(y.a)(this,$t),this.dts=Nt,this.pts=Me,this.duration=ke,this.originalDts=Be,this.isSyncPoint=it,this.fileposition=null}),jt=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(Me){Me.isSyncPoint=!0,this.syncPoints.push(Me)}}]),$t}(),Mt=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(Me){var ke=this._list;if(Me.length===0)return;ke.length>0&&Me[0].originalDts<ke[ke.length-1].originalDts&&this.clear(),Array.prototype.push.apply(ke,Me)}},{key:"getLastSyncPointBeforeDts",value:function(Me){if(this._list.length==0)return null;var ke=this._list,Be=0,it=ke.length-1,yt=0,Tt=0,Yt=it;for(Me<ke[0].dts&&(Be=0,Tt=Yt+1);Tt<=Yt;)if(yt=Tt+Math.floor((Yt-Tt)/2),yt===it||Me>=ke[yt].dts&&Me<ke[yt+1].dts){Be=yt;break}else ke[yt].dts<Me?Tt=yt+1:Yt=yt-1;return this._list[Be]}}]),$t}(),Ot=function(){function $t(Nt){Object(y.a)(this,$t),this._type=Nt,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(Me){var ke=this._list;if(ke.length===0)return-2;var Be=ke.length-1,it=0,yt=0,Tt=Be,Yt=0;if(Me<ke[0].originalBeginDts)return Yt=-1,Yt;for(;yt<=Tt;)if(it=yt+Math.floor((Tt-yt)/2),it===Be||Me>ke[it].lastSample.originalDts&&Me<ke[it+1].originalBeginDts){Yt=it;break}else ke[it].originalBeginDts<Me?yt=it+1:Tt=it-1;return Yt}},{key:"_searchNearestSegmentAfter",value:function(Me){return this._searchNearestSegmentBefore(Me)+1}},{key:"append",value:function(Me){var ke=this._list,Be=Me,it=this._lastAppendLocation,yt=0;it!==-1&&it<ke.length&&Be.originalBeginDts>=ke[it].lastSample.originalDts&&(it===ke.length-1||it<ke.length-1&&Be.originalBeginDts<ke[it+1].originalBeginDts)?yt=it+1:ke.length>0&&(yt=this._searchNearestSegmentBefore(Be.originalBeginDts)+1),this._lastAppendLocation=yt,this._list.splice(yt,0,Be)}},{key:"getLastSegmentBefore",value:function(Me){var ke=this._searchNearestSegmentBefore(Me);return ke>=0?this._list[ke]:null}},{key:"getLastSampleBefore",value:function(Me){var ke=this.getLastSegmentBefore(Me);return ke!=null?ke.lastSample:null}},{key:"getLastSyncPointBefore",value:function(Me){for(var ke=this._searchNearestSegmentBefore(Me),Be=this._list[ke].syncPoints;Be.length===0&&ke>0;)ke--,Be=this._list[ke].syncPoints;return Be.length>0?Be[Be.length-1]:null}}]),$t}(),Bt=function(){function $t(Nt){Object(y.a)(this,$t),this.TAG="MP4Remuxer",this._config=Nt,this._isLive=Nt.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 Ot("audio"),this._videoSegmentInfoList=new Ot("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(C.chrome&&(C.version.major<50||C.version.major===50&&C.version.build<2661)),this._fillSilentAfterSeek=C.msedge||C.msie,this._mp3UseMpegAudio=!C.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(Me){return Me.onDataAvailable=this.remux.bind(this),Me.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(Me){this._onInitSegment=Me}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(Me){this._onMediaSegment=Me}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(Me){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(Me,ke){if(!this._onMediaSegment)throw new u("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(Me,ke),this._remuxVideo(ke),this._remuxAudio(Me)}},{key:"_onTrackMetadataReceived",value:function(Me,ke){var Be=null,it="mp4",yt=ke.codec;if(Me==="audio")this._audioMeta=ke,ke.codec==="mp3"&&this._mp3UseMpegAudio?(it="mpeg",yt="",Be=new Uint8Array):Be=Fe.generateInitSegment(ke);else if(Me==="video")this._videoMeta=ke,Be=Fe.generateInitSegment(ke);else return;if(!this._onInitSegment)throw new u("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(Me,{type:Me,data:Be.buffer,codec:yt,container:"".concat(Me,"/").concat(it),mediaDuration:ke.duration})}},{key:"_calculateDtsBase",value:function(Me,ke){if(this._dtsBaseInited)return;Me.samples&&Me.samples.length&&(this._audioDtsBase=Me.samples[0].dts),ke.samples&&ke.samples.length&&(this._videoDtsBase=ke.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var Me=this._videoStashedLastSample,ke=this._audioStashedLastSample,Be={type:"video",id:1,sequenceNumber:0,samples:[],length:0};Me!=null&&(Be.samples.push(Me),Be.length=Me.length);var it={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};ke!=null&&(it.samples.push(ke),it.length=ke.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Be,!0),this._remuxAudio(it,!0)}},{key:"_remuxAudio",value:function(Me,ke){if(this._audioMeta==null)return;var Be=Me,it=Be.samples,yt=void 0,Tt=-1,Yt=-1,Pr=-1,$r=this._audioMeta.refSampleDuration,An=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,zt=this._dtsBaseInited&&this._audioNextDts===void 0,At=!1;if(!it||it.length===0)return;if(it.length===1&&!ke)return;var wt=0,vr=null,Jt=0;An?(wt=0,Jt=Be.length):(wt=8,Jt=8+Be.length);var Ut=null;if(it.length>1&&(Ut=it.pop(),Jt-=Ut.length),this._audioStashedLastSample!=null){var tr=this._audioStashedLastSample;this._audioStashedLastSample=null,it.unshift(tr),Jt+=tr.length}Ut!=null&&(this._audioStashedLastSample=Ut);var Ft=it[0].dts-this._dtsBase;if(this._audioNextDts)yt=Ft-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())yt=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(At=!0));else{var qt=this._audioSegmentInfoList.getLastSampleBefore(Ft);if(qt!=null){var Hr=Ft-(qt.originalDts+qt.duration);Hr<=3&&(Hr=0);var Nr=qt.dts+qt.duration+Hr;yt=Ft-Nr}else yt=0}if(At){var Dr=Ft-yt,cn=this._videoSegmentInfoList.getLastSegmentBefore(Ft);if(cn!=null&&cn.beginDts<Dr){var vn=et.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(vn){var ei=cn.beginDts,qn=Dr-cn.beginDts;l.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(ei,", duration: ").concat(qn)),it.unshift({unit:vn,dts:ei,pts:ei}),Jt+=vn.byteLength}}else At=!1}for(var fi=[],xi=0;xi<it.length;xi++){var Ni=it[xi],Hi=Ni.unit,nt=Ni.dts-this._dtsBase,Ne=nt-yt;Tt===-1&&(Tt=Ne);var He=0;if(xi!==it.length-1){var Xe=it[xi+1].dts-this._dtsBase-yt;He=Xe-Ne}else if(Ut!=null){var rt=Ut.dts-this._dtsBase-yt;He=rt-Ne}else fi.length>=1?He=fi[fi.length-1].duration:He=Math.floor($r);var Ze=!1,st=null;if(He>$r*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!C.safari){Ze=!0;var xt=Math.abs(He-$r),pt=Math.ceil(xt/$r),hr=Ne+$r;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($r)," ms, ")+"delta: ".concat(Math.round(xt)," ms, generate: ").concat(pt," frames"));var Zr=et.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Zr==null&&(l.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),Zr=Hi),st=[];for(var Xr=0;Xr<pt;Xr++){var pn=Math.round(hr);if(st.length>0){var gr=st[st.length-1];gr.duration=pn-gr.dts}var Kn={dts:pn,pts:pn,cts:0,unit:Zr,size:Zr.byteLength,duration:0,originalDts:nt,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};st.push(Kn),Jt+=Kn.size,hr+=$r}var Rr=st[st.length-1];Rr.duration=Ne+He-Rr.dts,He=Math.round($r)}fi.push({dts:Ne,pts:Ne,cts:0,unit:Ni.unit,size:Ni.unit.byteLength,duration:He,originalDts:nt,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Ze&&fi.push.apply(fi,st)}An?vr=new Uint8Array(Jt):(vr=new Uint8Array(Jt),vr[0]=Jt>>>24&255,vr[1]=Jt>>>16&255,vr[2]=Jt>>>8&255,vr[3]=Jt&255,vr.set(Fe.types.mdat,4));for(var Pn=0;Pn<fi.length;Pn++){var an=fi[Pn].unit;vr.set(an,wt),wt+=an.byteLength}var Ur=fi[fi.length-1];Yt=Ur.dts+Ur.duration,this._audioNextDts=Yt;var ii=new jt;ii.beginDts=Tt,ii.endDts=Yt,ii.beginPts=Tt,ii.endPts=Yt,ii.originalBeginDts=fi[0].originalDts,ii.originalEndDts=Ur.originalDts+Ur.duration,ii.firstSample=new St(fi[0].dts,fi[0].pts,fi[0].duration,fi[0].originalDts,!1),ii.lastSample=new St(Ur.dts,Ur.pts,Ur.duration,Ur.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(ii),Be.samples=fi,Be.sequenceNumber++;var _i=null;An?_i=new Uint8Array:_i=Fe.moof(Be,Tt),Be.samples=[],Be.length=0;var Gi={type:"audio",data:this._mergeBoxes(_i,vr).buffer,sampleCount:fi.length,info:ii};An&&zt&&(Gi.timestampOffset=Tt),this._onMediaSegment("audio",Gi)}},{key:"_remuxVideo",value:function(Me,ke){if(this._videoMeta==null)return;var Be=Me,it=Be.samples,yt=void 0,Tt=-1,Yt=-1,Pr=-1,$r=-1;if(!it||it.length===0)return;if(it.length===1&&!ke)return;var An=8,zt=null,At=8+Me.length,wt=null;if(it.length>1&&(wt=it.pop(),At-=wt.length),this._videoStashedLastSample!=null){var vr=this._videoStashedLastSample;this._videoStashedLastSample=null,it.unshift(vr),At+=vr.length}wt!=null&&(this._videoStashedLastSample=wt);var Jt=it[0].dts-this._dtsBase;if(this._videoNextDts)yt=Jt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())yt=0;else{var Ut=this._videoSegmentInfoList.getLastSampleBefore(Jt);if(Ut!=null){var tr=Jt-(Ut.originalDts+Ut.duration);tr<=3&&(tr=0);var Ft=Ut.dts+Ut.duration+tr;yt=Jt-Ft}else yt=0}for(var qt=new jt,Hr=[],Nr=0;Nr<it.length;Nr++){var Dr=it[Nr],cn=Dr.dts-this._dtsBase,vn=Dr.isKeyframe,ei=cn-yt,qn=Dr.cts,fi=ei+qn;Tt===-1&&(Tt=ei,Pr=fi);var xi=0;if(Nr!==it.length-1){var Ni=it[Nr+1].dts-this._dtsBase-yt;xi=Ni-ei}else if(wt!=null){var Hi=wt.dts-this._dtsBase-yt;xi=Hi-ei}else Hr.length>=1?xi=Hr[Hr.length-1].duration:xi=Math.floor(this._videoMeta.refSampleDuration);if(vn){var nt=new St(ei,fi,xi,Dr.dts,!0);nt.fileposition=Dr.fileposition,qt.appendSyncPoint(nt)}Hr.push({dts:ei,pts:fi,cts:qn,units:Dr.units,size:Dr.length,isKeyframe:vn,duration:xi,originalDts:cn,flags:{isLeading:0,dependsOn:vn?2:1,isDependedOn:vn?1:0,hasRedundancy:0,isNonSync:vn?0:1}})}zt=new Uint8Array(At),zt[0]=At>>>24&255,zt[1]=At>>>16&255,zt[2]=At>>>8&255,zt[3]=At&255,zt.set(Fe.types.mdat,4);for(var Ne=0;Ne<Hr.length;Ne++)for(var He=Hr[Ne].units;He.length;){var Xe=He.shift(),rt=Xe.data;zt.set(rt,An),An+=rt.byteLength}var Ze=Hr[Hr.length-1];if(Yt=Ze.dts+Ze.duration,$r=Ze.pts+Ze.duration,this._videoNextDts=Yt,qt.beginDts=Tt,qt.endDts=Yt,qt.beginPts=Pr,qt.endPts=$r,qt.originalBeginDts=Hr[0].originalDts,qt.originalEndDts=Ze.originalDts+Ze.duration,qt.firstSample=new St(Hr[0].dts,Hr[0].pts,Hr[0].duration,Hr[0].originalDts,Hr[0].isKeyframe),qt.lastSample=new St(Ze.dts,Ze.pts,Ze.duration,Ze.originalDts,Ze.isKeyframe),this._isLive||this._videoSegmentInfoList.append(qt),Be.samples=Hr,Be.sequenceNumber++,this._forceFirstIDR){var st=Hr[0].flags;st.dependsOn=2,st.isNonSync=0}var xt=Fe.moof(Be,Tt);Be.samples=[],Be.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(xt,zt).buffer,sampleCount:Hr.length,info:qt})}},{key:"_mergeBoxes",value:function(Me,ke){var Be=new Uint8Array(Me.byteLength+ke.byteLength);return Be.set(Me,0),Be.set(ke,Me.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"},se=de,ut=function(){function $t(Nt,Me){Object(y.a)(this,$t),this.TAG="TransmuxingController",this._emitter=new f.a,this._config=Me,Nt.segments||(Nt.segments=[{duration:Nt.duration,filesize:Nt.filesize,url:Nt.url}]),typeof Nt.cors!="boolean"&&(Nt.cors=!0),typeof Nt.withCredentials!="boolean"&&(Nt.withCredentials=!1),this._mediaDataSource=Nt,this._currentSegmentIndex=0;var ke=0;this._mediaDataSource.segments.forEach(function(Be){Be.timestampBase=ke,ke+=Be.duration,Be.cors=Nt.cors,Be.withCredentials=Nt.withCredentials,Me.referrerPolicy&&(Be.referrerPolicy=Me.referrerPolicy)}),!isNaN(ke)&&this._mediaDataSource.duration!==ke&&(this._mediaDataSource.duration=ke),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(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(Me,ke){this._emitter.addListener(Me,ke)}},{key:"off",value:function(Me,ke){this._emitter.removeListener(Me,ke)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(Me,ke){this._currentSegmentIndex=Me;var Be=this._mediaDataSource.segments[Me],it=this._ioctl=new Q(Be,this._config,Me);it.onError=this._onIOException.bind(this),it.onSeeked=this._onIOSeeked.bind(this),it.onComplete=this._onIOComplete.bind(this),it.onRedirect=this._onIORedirect.bind(this),it.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),ke?this._demuxer.bindDataSource(this._ioctl):it.onDataArrival=this._onInitChunkArrival.bind(this),it.open(ke)}},{key:"stop",value:function(){this._internalAbort(),this._disableStatisticsReporter()}},{key:"_internalAbort",value:function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}},{key:"pause",value:function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}},{key:"resume",value:function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}},{key:"seek",value:function(Me){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var ke=this._searchSegmentIndexContains(Me);if(ke===this._currentSegmentIndex){var Be=this._mediaInfo.segments[ke];if(Be==null)this._pendingSeekTime=Me;else{var it=Be.getNearestKeyframe(Me);this._remuxer.seek(it.milliseconds),this._ioctl.seek(it.fileposition),this._pendingResolveSeekPoint=it.milliseconds}}else{var yt=this._mediaInfo.segments[ke];if(yt==null)this._pendingSeekTime=Me,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(ke);else{var Tt=yt.getNearestKeyframe(Me);this._internalAbort(),this._remuxer.seek(Me),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[ke].timestampBase,this._loadSegment(ke,Tt.fileposition),this._pendingResolveSeekPoint=Tt.milliseconds,this._reportSegmentMediaInfo(ke)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(Me){for(var ke=this._mediaDataSource.segments,Be=ke.length-1,it=0;it<ke.length;it++)if(Me<ke[it].timestampBase){Be=it-1;break}return Be}},{key:"_onInitChunkArrival",value:function(Me,ke){var Be=this,it=null,yt=0;if(ke>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,yt=this._demuxer.parseChunks(Me,ke);else if((it=gt.probe(Me)).match){this._demuxer=new gt(it,this._config),this._remuxer||(this._remuxer=new Ke(this._config));var Tt=this._mediaDataSource;Tt.duration!=null&&!isNaN(Tt.duration)&&(this._demuxer.overridedDuration=Tt.duration),typeof Tt.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Tt.hasAudio),typeof Tt.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Tt.hasVideo),this._demuxer.timestampBase=Tt.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),yt=this._demuxer.parseChunks(Me,ke)}else it=null,l.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Be._internalAbort()}),this._emitter.emit(se.DEMUX_ERROR,_e.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),yt=0;return yt}},{key:"_onMediaInfo",value:function(Me){var ke=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},Me),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ge.prototype));var Be=Object.assign({},Me);Object.setPrototypeOf(Be,Ge.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Be,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var it=ke._pendingSeekTime;ke._pendingSeekTime=null,ke.seek(it)})}},{key:"_onMetaDataArrived",value:function(Me){this._emitter.emit(se.METADATA_ARRIVED,Me)}},{key:"_onScriptDataArrived",value:function(Me){this._emitter.emit(se.SCRIPTDATA_ARRIVED,Me)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(Me){var ke=Me,Be=ke+1;Be<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Be)):(this._remuxer.flushStashedSamples(),this._emitter.emit(se.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(Me){var ke=this._ioctl.extraData;this._mediaDataSource.segments[ke].redirectedURL=Me}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(se.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(Me,ke){l.e(this.TAG,"IOException: type = ".concat(Me,", code = ").concat(ke.code,", msg = ").concat(ke.msg)),this._emitter.emit(se.IO_ERROR,Me,ke),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(Me,ke){l.e(this.TAG,"DemuxException: type = ".concat(Me,", info = ").concat(ke)),this._emitter.emit(se.DEMUX_ERROR,Me,ke)}},{key:"_onRemuxerInitSegmentArrival",value:function(Me,ke){this._emitter.emit(se.INIT_SEGMENT,Me,ke)}},{key:"_onRemuxerMediaSegmentArrival",value:function(Me,ke){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(se.MEDIA_SEGMENT,Me,ke),this._pendingResolveSeekPoint!=null&&Me==="video"){var Be=ke.info.syncPoints,it=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,C.safari&&Be.length>0&&Be[0].originalDts===it&&(it=Be[0].pts),this._emitter.emit(se.RECOMMEND_SEEKPOINT,it)}}},{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(Me){var ke=this._mediaInfo.segments[Me],Be=Object.assign({},ke);Be.duration=this._mediaInfo.duration,Be.segmentCount=this._mediaInfo.segmentCount,delete Be.segments,delete Be.keyframesIndex,this._emitter.emit(se.MEDIA_INFO,Be)}},{key:"_reportStatisticsInfo",value:function(){var Me={};Me.url=this._ioctl.currentURL,Me.hasRedirect=this._ioctl.hasRedirect,Me.hasRedirect&&(Me.redirectedURL=this._ioctl.currentRedirectedURL),Me.speed=this._ioctl.currentSpeed,Me.loaderType=this._ioctl.loaderType,Me.currentSegmentIndex=this._currentSegmentIndex,Me.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(se.STATISTICS_INFO,Me)}}]),$t}(),qe=ut,me=function(Nt){var Me="TransmuxingWorker",ke=null,Be=Jt.bind(this);v.install(),Nt.addEventListener("message",function(Ut){switch(Ut.data.cmd){case"init":ke=new qe(Ut.data.param[0],Ut.data.param[1]),ke.on(se.IO_ERROR,At.bind(this)),ke.on(se.DEMUX_ERROR,wt.bind(this)),ke.on(se.INIT_SEGMENT,it.bind(this)),ke.on(se.MEDIA_SEGMENT,yt.bind(this)),ke.on(se.LOADING_COMPLETE,Tt.bind(this)),ke.on(se.RECOVERED_EARLY_EOF,Yt.bind(this)),ke.on(se.MEDIA_INFO,Pr.bind(this)),ke.on(se.METADATA_ARRIVED,$r.bind(this)),ke.on(se.SCRIPTDATA_ARRIVED,An.bind(this)),ke.on(se.STATISTICS_INFO,zt.bind(this)),ke.on(se.RECOMMEND_SEEKPOINT,vr.bind(this));break;case"destroy":ke&&(ke.destroy(),ke=null),Nt.postMessage({msg:"destroyed"});break;case"start":ke.start();break;case"stop":ke.stop();break;case"seek":ke.seek(Ut.data.param);break;case"pause":ke.pause();break;case"resume":ke.resume();break;case"logging_config":{var tr=Ut.data.param;Pe.applyConfig(tr),tr.enableCallback===!0?Pe.addLogListener(Be):Pe.removeLogListener(Be);break}}});function it(Ut,tr){var Ft={msg:se.INIT_SEGMENT,data:{type:Ut,data:tr}};Nt.postMessage(Ft,[tr.data])}function yt(Ut,tr){var Ft={msg:se.MEDIA_SEGMENT,data:{type:Ut,data:tr}};Nt.postMessage(Ft,[tr.data])}function Tt(){var Ut={msg:se.LOADING_COMPLETE};Nt.postMessage(Ut)}function Yt(){var Ut={msg:se.RECOVERED_EARLY_EOF};Nt.postMessage(Ut)}function Pr(Ut){var tr={msg:se.MEDIA_INFO,data:Ut};Nt.postMessage(tr)}function $r(Ut){var tr={msg:se.METADATA_ARRIVED,data:Ut};Nt.postMessage(tr)}function An(Ut){var tr={msg:se.SCRIPTDATA_ARRIVED,data:Ut};Nt.postMessage(tr)}function zt(Ut){var tr={msg:se.STATISTICS_INFO,data:Ut};Nt.postMessage(tr)}function At(Ut,tr){Nt.postMessage({msg:se.IO_ERROR,data:{type:Ut,info:tr}})}function wt(Ut,tr){Nt.postMessage({msg:se.DEMUX_ERROR,data:{type:Ut,info:tr}})}function vr(Ut){Nt.postMessage({msg:se.RECOMMEND_SEEKPOINT,data:Ut})}function Jt(Ut,tr){Nt.postMessage({msg:"logcat_callback",data:{type:Ut,logcat:tr}})}},Wt=me,dr=function(){function $t(Nt,Me){if(Object(y.a)(this,$t),this.TAG="Transmuxer",this._emitter=new f.a,Me.enableWorker&&typeof Worker!="undefined")try{var ke=i("0r65");this._worker=ke(Wt),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[Nt,Me]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Pe.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Pe.getConfig()})}catch(it){l.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new qe(Nt,Me)}else this._controller=new qe(Nt,Me);if(this._controller){var Be=this._controller;Be.on(se.IO_ERROR,this._onIOError.bind(this)),Be.on(se.DEMUX_ERROR,this._onDemuxError.bind(this)),Be.on(se.INIT_SEGMENT,this._onInitSegment.bind(this)),Be.on(se.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Be.on(se.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Be.on(se.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Be.on(se.MEDIA_INFO,this._onMediaInfo.bind(this)),Be.on(se.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Be.on(se.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Be.on(se.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Be.on(se.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(Me,ke){this._emitter.addListener(Me,ke)}},{key:"off",value:function(Me,ke){this._emitter.removeListener(Me,ke)}},{key:"hasWorker",value:function(){return this._worker!=null}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(Me){this._worker?this._worker.postMessage({cmd:"seek",param:Me}):this._controller.seek(Me)}},{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(Me,ke){var Be=this;Promise.resolve().then(function(){Be._emitter.emit(se.INIT_SEGMENT,Me,ke)})}},{key:"_onMediaSegment",value:function(Me,ke){var Be=this;Promise.resolve().then(function(){Be._emitter.emit(se.MEDIA_SEGMENT,Me,ke)})}},{key:"_onLoadingComplete",value:function(){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(se.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(se.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(Me){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(se.MEDIA_INFO,Me)})}},{key:"_onMetaDataArrived",value:function(Me){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(se.METADATA_ARRIVED,Me)})}},{key:"_onScriptDataArrived",value:function(Me){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(se.SCRIPTDATA_ARRIVED,Me)})}},{key:"_onStatisticsInfo",value:function(Me){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(se.STATISTICS_INFO,Me)})}},{key:"_onIOError",value:function(Me,ke){var Be=this;Promise.resolve().then(function(){Be._emitter.emit(se.IO_ERROR,Me,ke)})}},{key:"_onDemuxError",value:function(Me,ke){var Be=this;Promise.resolve().then(function(){Be._emitter.emit(se.DEMUX_ERROR,Me,ke)})}},{key:"_onRecommendSeekpoint",value:function(Me){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(se.RECOMMEND_SEEKPOINT,Me)})}},{key:"_onLoggingConfigChanged",value:function(Me){this._worker&&this._worker.postMessage({cmd:"logging_config",param:Me})}},{key:"_onWorkerMessage",value:function(Me){var ke=Me.data,Be=ke.data;if(ke.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(ke.msg){case se.INIT_SEGMENT:case se.MEDIA_SEGMENT:this._emitter.emit(ke.msg,Be.type,Be.data);break;case se.LOADING_COMPLETE:case se.RECOVERED_EARLY_EOF:this._emitter.emit(ke.msg);break;case se.MEDIA_INFO:Object.setPrototypeOf(Be,Ge.prototype),this._emitter.emit(ke.msg,Be);break;case se.METADATA_ARRIVED:case se.SCRIPTDATA_ARRIVED:case se.STATISTICS_INFO:this._emitter.emit(ke.msg,Be);break;case se.IO_ERROR:case se.DEMUX_ERROR:this._emitter.emit(ke.msg,Be.type,Be.info);break;case se.RECOMMEND_SEEKPOINT:this._emitter.emit(ke.msg,Be);break;case"logcat_callback":l.emitter.emit("log",Be.type,Be.logcat);break;default:break}}}]),$t}(),vt=dr,rr={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},ur=rr,mn=function(){function $t(Nt){Object(y.a)(this,$t),this.TAG="MSEController",this._config=Nt,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 Mt}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(Me,ke){this._emitter.addListener(Me,ke)}},{key:"off",value:function(Me,ke){this._emitter.removeListener(Me,ke)}},{key:"attachMediaElement",value:function(Me){if(this._mediaSource)throw new u("MediaSource has been attached to an HTMLMediaElement!");var ke=this._mediaSource=new window.MediaSource;ke.addEventListener("sourceopen",this.e.onSourceOpen),ke.addEventListener("sourceended",this.e.onSourceEnded),ke.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=Me,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),Me.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var Me=this._mediaSource;for(var ke in this._sourceBuffers){var Be=this._pendingSegments[ke];Be.splice(0,Be.length),this._pendingSegments[ke]=null,this._pendingRemoveRanges[ke]=null,this._lastInitSegments[ke]=null;var it=this._sourceBuffers[ke];if(it){if(Me.readyState!=="closed"){try{Me.removeSourceBuffer(it)}catch(yt){l.e(this.TAG,yt.message)}it.removeEventListener("error",this.e.onSourceBufferError),it.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[ke]=null,this._sourceBuffers[ke]=null}}if(Me.readyState==="open")try{Me.endOfStream()}catch(yt){l.e(this.TAG,yt.message)}Me.removeEventListener("sourceopen",this.e.onSourceOpen),Me.removeEventListener("sourceended",this.e.onSourceEnded),Me.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(Me,ke){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(Me),this._pendingSegments[Me.type].push(Me);return}var Be=Me,it="".concat(Be.container);Be.codec&&Be.codec.length>0&&(it+=";codecs=".concat(Be.codec));var yt=!1;if(l.v(this.TAG,"Received Initialization Segment, mimeType: "+it),this._lastInitSegments[Be.type]=Be,it!==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(it));else{yt=!0;try{var Tt=this._sourceBuffers[Be.type]=this._mediaSource.addSourceBuffer(it);Tt.addEventListener("error",this.e.onSourceBufferError),Tt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Yt){l.e(this.TAG,Yt.message),this._emitter.emit(ur.ERROR,{code:Yt.code,msg:Yt.message});return}}this._mimeTypes[Be.type]=it}ke||this._pendingSegments[Be.type].push(Be),yt||this._sourceBuffers[Be.type]&&!this._sourceBuffers[Be.type].updating&&this._doAppendSegments(),C.safari&&Be.container==="audio/mpeg"&&Be.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Be.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(Me){var ke=Me;this._pendingSegments[ke.type].push(ke),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var Be=this._sourceBuffers[ke.type];Be&&!Be.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(Me){for(var ke in this._sourceBuffers){if(!this._sourceBuffers[ke])continue;var Be=this._sourceBuffers[ke];if(this._mediaSource.readyState==="open")try{Be.abort()}catch($r){l.e(this.TAG,$r.message)}this._idrList.clear();var it=this._pendingSegments[ke];if(it.splice(0,it.length),this._mediaSource.readyState==="closed")continue;for(var yt=0;yt<Be.buffered.length;yt++){var Tt=Be.buffered.start(yt),Yt=Be.buffered.end(yt);this._pendingRemoveRanges[ke].push({start:Tt,end:Yt})}if(Be.updating||this._doRemoveRanges(),C.safari){var Pr=this._lastInitSegments[ke];Pr&&(this._pendingSegments[ke].push(Pr),Be.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var Me=this._mediaSource,ke=this._sourceBuffers;if(!Me||Me.readyState!=="open"){Me&&Me.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}ke.video&&ke.video.updating||ke.audio&&ke.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,Me.endOfStream())}},{key:"getNearestKeyframe",value:function(Me){return this._idrList.getLastSyncPointBeforeDts(Me)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var Me=this._mediaElement.currentTime;for(var ke in this._sourceBuffers){var Be=this._sourceBuffers[ke];if(Be){var it=Be.buffered;if(it.length>=1&&Me-it.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var Me=this._mediaElement.currentTime;for(var ke in this._sourceBuffers){var Be=this._sourceBuffers[ke];if(Be){for(var it=Be.buffered,yt=!1,Tt=0;Tt<it.length;Tt++){var Yt=it.start(Tt),Pr=it.end(Tt);if(Yt<=Me&&Me<Pr+3){if(Me-Yt>=this._config.autoCleanupMaxBackwardDuration){yt=!0;var $r=Me-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[ke].push({start:Yt,end:$r})}}else Pr<Me&&(yt=!0,this._pendingRemoveRanges[ke].push({start:Yt,end:Pr}))}yt&&!Be.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var Me=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(Me.video&&Me.video.updating||Me.audio&&Me.audio.updating)return;var ke=this._mediaSource.duration,Be=this._pendingMediaDuration;Be>0&&(isNaN(ke)||Be>ke)&&(l.v(this.TAG,"Update MediaSource duration from ".concat(ke," to ").concat(Be)),this._mediaSource.duration=Be),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var Me in this._pendingRemoveRanges){if(!this._sourceBuffers[Me]||this._sourceBuffers[Me].updating)continue;for(var ke=this._sourceBuffers[Me],Be=this._pendingRemoveRanges[Me];Be.length&&!ke.updating;){var it=Be.shift();ke.remove(it.start,it.end)}}}},{key:"_doAppendSegments",value:function(){var Me=this._pendingSegments;for(var ke in Me){if(!this._sourceBuffers[ke]||this._sourceBuffers[ke].updating)continue;if(Me[ke].length>0){var Be=Me[ke].shift();if(Be.timestampOffset){var it=this._sourceBuffers[ke].timestampOffset,yt=Be.timestampOffset/1e3,Tt=Math.abs(it-yt);Tt>.1&&(l.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(it," to ").concat(yt)),this._sourceBuffers[ke].timestampOffset=yt),delete Be.timestampOffset}if(!Be.data||Be.data.byteLength===0)continue;try{this._sourceBuffers[ke].appendBuffer(Be.data),this._isBufferFull=!1,ke==="video"&&Be.hasOwnProperty("info")&&this._idrList.appendArray(Be.info.syncPoints)}catch(Yt){this._pendingSegments[ke].unshift(Be),Yt.code===22?(this._isBufferFull||this._emitter.emit(ur.BUFFER_FULL),this._isBufferFull=!0):(l.e(this.TAG,Yt.message),this._emitter.emit(ur.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 Me=this._pendingSourceBufferInit;Me.length;){var ke=Me.shift();this.appendInitSegment(ke,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(ur.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 Me=this._pendingSegments;return Me.video.length>0||Me.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var Me=this._pendingRemoveRanges;return Me.video.length>0||Me.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(ur.UPDATE_END)}},{key:"_onSourceBufferError",value:function(Me){l.e(this.TAG,"SourceBuffer Error: ".concat(Me))}}]),$t}(),sr=mn,xr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},pr={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:_e.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:_e.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:_e.CODEC_UNSUPPORTED},Zt=function(){function $t(Nt,Me){if(Object(y.a)(this,$t),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new f.a,this._config=te(),typeof Me=="object"&&Object.assign(this._config,Me),Nt.type.toLowerCase()!=="flv")throw new r("FlvPlayer requires an flv MediaDataSource input!");Nt.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=Nt,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var ke=C.chrome&&(C.version.major<50||C.version.major===50&&C.version.build<2661);this._alwaysSeekKeyframe=!!(ke||C.msedge||C.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(Me,ke){var Be=this;Me===Se.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Be._emitter.emit(Se.MEDIA_INFO,Be.mediaInfo)}):Me===Se.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Be._emitter.emit(Se.STATISTICS_INFO,Be.statisticsInfo)})),this._emitter.addListener(Me,ke)}},{key:"off",value:function(Me,ke){this._emitter.removeListener(Me,ke)}},{key:"attachMediaElement",value:function(Me){var ke=this;if(this._mediaElement=Me,Me.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),Me.addEventListener("seeking",this.e.onvSeeking),Me.addEventListener("canplay",this.e.onvCanPlay),Me.addEventListener("stalled",this.e.onvStalled),Me.addEventListener("progress",this.e.onvProgress),this._msectl=new sr(this._config),this._msectl.on(ur.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(ur.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(ur.SOURCE_OPEN,function(){ke._mseSourceOpened=!0,ke._hasPendingLoad&&(ke._hasPendingLoad=!1,ke.load())}),this._msectl.on(ur.ERROR,function(Be){ke._emitter.emit(Se.ERROR,xr.MEDIA_ERROR,pr.MEDIA_MSE_ERROR,Be)}),this._msectl.attachMediaElement(Me),this._pendingSeekTime!=null)try{Me.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 Me=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 vt(this._mediaDataSource,this._config),this._transmuxer.on(se.INIT_SEGMENT,function(ke,Be){Me._msectl.appendInitSegment(Be)}),this._transmuxer.on(se.MEDIA_SEGMENT,function(ke,Be){if(Me._msectl.appendMediaSegment(Be),Me._config.lazyLoad&&!Me._config.isLive){var it=Me._mediaElement.currentTime;Be.info.endDts>=(it+Me._config.lazyLoadMaxDuration)*1e3&&(Me._progressChecker==null&&(l.v(Me.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),Me._suspendTransmuxer()))}}),this._transmuxer.on(se.LOADING_COMPLETE,function(){Me._msectl.endOfStream(),Me._emitter.emit(Se.LOADING_COMPLETE)}),this._transmuxer.on(se.RECOVERED_EARLY_EOF,function(){Me._emitter.emit(Se.RECOVERED_EARLY_EOF)}),this._transmuxer.on(se.IO_ERROR,function(ke,Be){Me._emitter.emit(Se.ERROR,xr.NETWORK_ERROR,ke,Be)}),this._transmuxer.on(se.DEMUX_ERROR,function(ke,Be){Me._emitter.emit(Se.ERROR,xr.MEDIA_ERROR,ke,{code:-1,msg:Be})}),this._transmuxer.on(se.MEDIA_INFO,function(ke){Me._mediaInfo=ke,Me._emitter.emit(Se.MEDIA_INFO,Object.assign({},ke))}),this._transmuxer.on(se.METADATA_ARRIVED,function(ke){Me._emitter.emit(Se.METADATA_ARRIVED,ke)}),this._transmuxer.on(se.SCRIPTDATA_ARRIVED,function(ke){Me._emitter.emit(Se.SCRIPTDATA_ARRIVED,ke)}),this._transmuxer.on(se.STATISTICS_INFO,function(ke){Me._statisticsInfo=Me._fillStatisticsInfo(ke),Me._emitter.emit(Se.STATISTICS_INFO,Object.assign({},Me._statisticsInfo))}),this._transmuxer.on(se.RECOMMEND_SEEKPOINT,function(ke){Me._mediaElement&&!Me._config.accurateSeek&&(Me._requestSetTime=!0,Me._mediaElement.currentTime=ke/1e3)}),this._transmuxer.open()}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(Me){this._mediaElement.volume=Me}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Me){this._mediaElement.muted=Me}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Me){this._mediaElement?this._internalSeek(Me):this._pendingSeekTime=Me}},{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(Me){if(Me.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return Me;var ke=!0,Be=0,it=0;if(this._mediaElement.getVideoPlaybackQuality){var yt=this._mediaElement.getVideoPlaybackQuality();Be=yt.totalVideoFrames,it=yt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Be=this._mediaElement.webkitDecodedFrameCount,it=this._mediaElement.webkitDroppedFrameCount):ke=!1;return ke&&(Me.decodedFrames=Be,Me.droppedFrames=it),Me}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var Me=this._mediaElement.buffered,ke=this._mediaElement.currentTime,Be=0,it=0,yt=0;yt<Me.length;yt++){var Tt=Me.start(yt),Yt=Me.end(yt);if(Tt<=ke&&ke<Yt){Be=Tt,it=Yt;break}}it>=ke+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 Me=this._mediaElement.currentTime,ke=this._mediaElement.buffered,Be=!1,it=0;it<ke.length;it++){var yt=ke.start(it),Tt=ke.end(it);if(Me>=yt&&Me<Tt){Me>=Tt-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(Me){for(var ke=this._mediaElement.buffered,Be=0;Be<ke.length;Be++){var it=ke.start(Be),yt=ke.end(Be);if(Me>=it&&Me<yt)return!0}return!1}},{key:"_internalSeek",value:function(Me){var ke=this._isTimepointBuffered(Me),Be=!1,it=0;if(Me<1&&this._mediaElement.buffered.length>0){var yt=this._mediaElement.buffered.start(0);(yt<1&&Me<yt||C.safari)&&(Be=!0,it=C.safari?.1:yt)}if(Be)this._requestSetTime=!0,this._mediaElement.currentTime=it;else if(ke){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=Me;else{var Tt=this._msectl.getNearestKeyframe(Math.floor(Me*1e3));this._requestSetTime=!0,Tt!=null?this._mediaElement.currentTime=Tt.dts/1e3:this._mediaElement.currentTime=Me}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(Me),this._transmuxer.seek(Math.floor(Me*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Me)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var Me=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(Me)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(Me),this._transmuxer.seek(Math.floor(Me*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Me))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(Me){var ke=this._mediaElement;if(Me||!this._receivedCanPlay||ke.readyState<2){var Be=ke.buffered;Be.length>0&&ke.currentTime<Be.start(0)&&(l.w(this.TAG,"Playback seems stuck at ".concat(ke.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(Me){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(Me){var ke=this._mediaElement.currentTime,Be=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(ke<1&&Be.length>0){var it=Be.start(0);if(it<1&&ke<it||C.safari){this._requestSetTime=!0,this._mediaElement.currentTime=C.safari?.1:it;return}}if(this._isTimepointBuffered(ke)){if(this._alwaysSeekKeyframe){var yt=this._msectl.getNearestKeyframe(Math.floor(ke*1e3));yt!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=yt.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:ke,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(Me){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(Me){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(Me){this._checkAndResumeStuckPlayback()}}]),$t}(),Ct=Zt,on=function(){function $t(Nt,Me){if(Object(y.a)(this,$t),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new f.a,this._config=te(),typeof Me=="object"&&Object.assign(this._config,Me),Nt.type.toLowerCase()==="flv")throw new r("NativePlayer does't support flv MediaDataSource input!");if(Nt.hasOwnProperty("segments"))throw new r("NativePlayer(".concat(Nt.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=Nt,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(Me,ke){var Be=this;Me===Se.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Be._emitter.emit(Se.MEDIA_INFO,Be.mediaInfo)}):Me===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(Me,ke)}},{key:"off",value:function(Me,ke){this._emitter.removeListener(Me,ke)}},{key:"attachMediaElement",value:function(Me){if(this._mediaElement=Me,Me.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{Me.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(ke){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"load",value:function(){if(!this._mediaElement)throw new 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(Me){this._mediaElement.volume=Me}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Me){this._mediaElement.muted=Me}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Me){this._mediaElement?this._mediaElement.currentTime=Me:this._pendingSeekTime=Me}},{key:"mediaInfo",get:function(){var Me=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",ke={mimeType:Me+this._mediaDataSource.type};return this._mediaElement&&(ke.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(ke.width=this._mediaElement.videoWidth,ke.height=this._mediaElement.videoHeight)),ke}},{key:"statisticsInfo",get:function(){var Me={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Me;var ke=!0,Be=0,it=0;if(this._mediaElement.getVideoPlaybackQuality){var yt=this._mediaElement.getVideoPlaybackQuality();Be=yt.totalVideoFrames,it=yt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Be=this._mediaElement.webkitDecodedFrameCount,it=this._mediaElement.webkitDroppedFrameCount):ke=!1;return ke&&(Me.decodedFrames=Be,Me.droppedFrames=it),Me}},{key:"_onvLoadedMetadata",value:function(Me){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=on;v.install();function Xn($t,Nt){var Me=$t;if(Me==null||typeof Me!="object")throw new r("MediaDataSource must be an javascript object!");if(!Me.hasOwnProperty("type"))throw new r("MediaDataSource must has type field to indicate video file type!");switch(Me.type){case"flv":return new Ct(Me,Nt);default:return new Mn(Me,Nt)}}function oi(){return le.supportMSEH264Playback()}function Ui(){return le.getFeatureList()}var Un={};Un.createPlayer=Xn,Un.isSupported=oi,Un.getFeatureList=Ui,Un.BaseLoader=g,Un.LoaderStatus=c,Un.LoaderErrors=h,Un.Events=Se,Un.ErrorTypes=xr,Un.ErrorDetails=pr,Un.FlvPlayer=Ct,Un.NativePlayer=Mn,Un.LoggingControl=Pe,Object.defineProperty(Un,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Qn=D.a=Un},GVMX:function(R,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"}});R.exports=p},GdRQ:function(R,D,i){"use strict";function y(C){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(C)}Object.defineProperty(D,"__esModule",{value:!0}),D.isMac=c,D.isWindows=h,D.isIOS=g,D.isSafari=A,D.isIE=b,D.isEdge=w,D.isFirefox=E,D.hasScrollbarGutter=D.supportsImageMetadata=D.supportsCursorURIs=D.dragThreshold=D.isTouchDevice=void 0;var p=v(i("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var C=new WeakMap;return x=function(){return C},C}function v(C){if(C&&C.__esModule)return C;if(C===null||y(C)!=="object"&&typeof C!="function")return{default:C};var _=x();if(_&&_.has(C))return _.get(C);var T={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in C)if(Object.prototype.hasOwnProperty.call(C,O)){var I=S?Object.getOwnPropertyDescriptor(C,O):null;I&&(I.get||I.set)?Object.defineProperty(T,O,I):T[O]=C[O]}return T.default=C,_&&_.set(C,T),T}var m="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;D.isTouchDevice=m,window.addEventListener("touchstart",function C(){D.isTouchDevice=m=!0,window.removeEventListener("touchstart",C,!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(C){p.Error("Data URI scheme cursor test exception: "+C)}var o=d;D.supportsCursorURIs=o;var n=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),n=!0}catch(C){}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(C){p.Error("Scrollbar test exception: "+C)}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 A(){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 E(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GeKi:function(R,D,i){var y=i("bYtY"),p=i("6Ic6"),x=i("IwbS"),v=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(A,b,w){this.group.removeClipPath(),this._updateDrawMode(A),this._isLargeDraw?this._renderLarge(A):this._renderNormal(A)},incrementalPrepareRender:function(A,b,w){this._clear(),this._updateDrawMode(A)},incrementalRender:function(A,b,w,E){this._isLargeDraw?this._incrementalRenderLarge(A,b):this._incrementalRenderNormal(A,b)},_updateDrawMode:function(A){var b=A.pipelineContext.large;(this._isLargeDraw==null||b^this._isLargeDraw)&&(this._isLargeDraw=b,this._clear())},_renderNormal:function(A){var b=A.getData(),w=this._data,E=this.group,C=b.getLayout("isSimpleBox"),_=A.get("clip",!0),T=A.coordinateSystem,S=T.getArea&&T.getArea();this._data||E.removeAll(),b.diff(w).add(function(O){if(b.hasValue(O)){var I,F=b.getItemLayout(O);if(_&&e(S,F))return;I=a(F,O,!0),x.initProps(I,{shape:{points:F.ends}},A,O),u(I,b,O,C),E.add(I),b.setItemGraphicEl(O,I)}}).update(function(O,I){var F=w.getItemGraphicEl(I);if(!b.hasValue(O)){E.remove(F);return}var P=b.getItemLayout(O);if(_&&e(S,P)){E.remove(F);return}F?x.updateProps(F,{shape:{points:P.ends}},A,O):F=a(P,O),u(F,b,O,C),E.add(F),b.setItemGraphicEl(O,F)}).remove(function(O){var I=w.getItemGraphicEl(O);I&&E.remove(I)}).execute(),this._data=b},_renderLarge:function(A){this._clear(),c(A,this.group);var b=A.get("clip",!0)?f(A.coordinateSystem,!1,A):null;b?this.group.setClipPath(b):this.group.removeClipPath()},_incrementalRenderNormal:function(A,b){for(var w=b.getData(),E=w.getLayout("isSimpleBox"),C;(C=A.next())!=null;){var _,T=w.getItemLayout(C);_=a(T,C),u(_,w,C,E),_.incremental=!0,this.group.add(_)}},_incrementalRenderLarge:function(A,b){c(b,this.group,!0)},remove:function(A){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:y.noop}),t=v.extend({type:"normalCandlestickBox",shape:{},buildPath:function(A,b){var w=b.points;this.__simpleBox?(A.moveTo(w[4][0],w[4][1]),A.lineTo(w[6][0],w[6][1])):(A.moveTo(w[0][0],w[0][1]),A.lineTo(w[1][0],w[1][1]),A.lineTo(w[2][0],w[2][1]),A.lineTo(w[3][0],w[3][1]),A.closePath(),A.moveTo(w[4][0],w[4][1]),A.lineTo(w[5][0],w[5][1]),A.moveTo(w[6][0],w[6][1]),A.lineTo(w[7][0],w[7][1]))}});function a(A,b,w){var E=A.ends;return new t({shape:{points:w?r(E,A):E},z2:100})}function e(A,b){for(var w=!0,E=0;E<b.ends.length;E++)if(A.contain(b.ends[E][0],b.ends[E][1])){w=!1;break}return w}function u(A,b,w,E){var C=b.getItemModel(w),_=C.getModel(d),T=b.getItemVisual(w,"color"),S=b.getItemVisual(w,"borderColor")||T,O=_.getItemStyle(o);A.useStyle(O),A.style.strokeNoScale=!0,A.style.fill=T,A.style.stroke=S,A.__simpleBox=E;var I=C.getModel(l).getItemStyle();x.setHoverStyle(A,I)}function r(A,b){return y.map(A,function(w){return w=w.slice(),w[1]=b.initBaseline,w})}var s=v.extend({type:"largeCandlestickBox",shape:{},buildPath:function(A,b){for(var w=b.points,E=0;E<w.length;)if(this.__sign===w[E++]){var C=w[E++];A.moveTo(C,w[E++]),A.lineTo(C,w[E++])}else E+=3}});function c(A,b,w){var E=A.getData(),C=E.getLayout("largePoints"),_=new s({shape:{points:C},__sign:1});b.add(_);var T=new s({shape:{points:C},__sign:-1});b.add(T),h(1,_,A,E),h(-1,T,A,E),w&&(_.incremental=!0,T.incremental=!0)}function h(A,b,w,E){var C=A>0?"P":"N",_=E.getVisual("borderColor"+C)||E.getVisual("color"+C),T=w.getModel(d).getItemStyle(o);b.useStyle(T),b.style.fill=null,b.style.stroke=_}var g=n;R.exports=g},Gev7:function(R,D,i){var y=i("bYtY"),p=i("K2GJ"),x=i("1bdT"),v=i("ni6a");function m(d){d=d||{},x.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"?x.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,x),y.mixin(m,v);var f=m;R.exports=f},GrNh:function(R,D,i){var y=i("bYtY"),p=i("IwbS"),x=i("6Ic6");function v(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 A=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 A==="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 E=c.getShallow("cursor");E&&e.attr("cursor",E),m(this,n.getItemLayout(t),s.isSelected(n.getName(t)),s.get("selectedOffset"),s.get("animation"));var C=!a&&A==="transition";this._updateLabel(n,t,C),this.highDownOnUpdate=s.get("silent")?null:function(_,T){var S=s.isAnimationEnabled()&&c.get("hoverAnimation");T==="emphasis"?(u.ignore=u.hoverIgnore,r.ignore=r.hoverIgnore,S&&(e.stopAnimation(!0),e.animateTo({shape:{r:h.r+s.get("hoverOffset")}},300,"elasticOut"))):(u.ignore=u.normalIgnore,r.ignore=r.normalIgnore,S&&(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 A={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:A},r,t),p.updateProps(u,{style:b},r,t)):(e.attr({shape:A}),u.attr({style:b})),u.attr({rotation:h.rotation,origin:[h.x,h.y],z2:10});var w=s.getModel("label"),E=s.getModel("emphasis.label"),C=s.getModel("labelLine"),_=s.getModel("emphasis.labelLine"),g=n.getItemVisual(t,"color");p.setLabelStyle(u.style,u.hoverStyle={},w,E,{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=!E.get("show"),e.ignore=e.normalIgnore=!C.get("show"),e.hoverIgnore=!_.get("show"),e.setStyle({stroke:g,opacity:n.getItemVisual(t,"opacity")}),e.setStyle(C.getModel("lineStyle").getLineStyle()),e.hoverStyle=_.getModel("lineStyle").getLineStyle();var T=C.get("smooth");T&&T===!0&&(T=.4),e.setShape({smooth:T})},y.inherits(f,p.Group);var l=x.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"),A=n.get("animationTypeUpdate"),b=y.curry(v,this.uid,n,c,a),w=n.get("selectedMode");if(u.diff(r).add(function(S){var O=new f(u,S);h&&g!=="scale"&&O.eachChild(function(I){I.stopAnimation(!0)}),w&&O.on("click",b),u.setItemGraphicEl(S,O),s.add(O)}).update(function(S,O){var I=r.getItemGraphicEl(O);!h&&A!=="transition"&&I.eachChild(function(F){F.stopAnimation(!0)}),I.updateData(u,S),I.off("click"),w&&I.on("click",b),s.add(I),u.setItemGraphicEl(S,I)}).remove(function(S){var O=r.getItemGraphicEl(S);s.remove(O)}).execute(),c&&u.count()>0&&(h?g!=="scale":A!=="transition")){for(var E=u.getItemLayout(0),C=1;isNaN(E.startAngle)&&C<u.count();++C)E=u.getItemLayout(C);var _=Math.max(a.getWidth(),a.getHeight())/2,T=y.bind(s.removeClipPath,s);s.setClipPath(this._createClipPath(E.cx,E.cy,_,E.startAngle,E.clockwise,T,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;R.exports=o},Gytx:function(R,D){R.exports=function(y,p,x,v){var m=x?x.call(v,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=x?x.call(v,t,a,n):void 0,m===!1||m===void 0&&t!==a)return!1}return!0}},GzdX:function(R,D,i){"use strict";var y=i("pVnL"),p=i.n(y),x=i("q1tI"),v=i.n(x),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(j){var K=j.pageXOffset,z="scrollLeft";if(typeof K!="number"){var V=j.document;K=V.documentElement[z],typeof K!="number"&&(K=V.body[z])}return K}function s(j){var K,z,V=j.ownerDocument,Q=V.body,X=V&&V.documentElement,te=j.getBoundingClientRect();return K=te.left,z=te.top,K-=X.clientLeft||Q.clientLeft||0,z-=X.clientTop||Q.clientTop||0,{left:K,top:z}}function c(j){var K=s(j),z=j.ownerDocument,V=z.defaultView||z.parentWindow;return K.left+=r(V),K.left}function h(j){var K=g();return function(){var V=Object(n.a)(j),Q;if(K){var X=Object(n.a)(this).constructor;Q=Reflect.construct(V,arguments,X)}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(j){return!1}}var A=function(j){Object(l.a)(z,j);var K=h(z);function z(){var V;return Object(f.a)(this,z),V=K.apply(this,arguments),V.onHover=function(Q){var X=V.props,te=X.onHover,$=X.index;te(Q,$)},V.onClick=function(Q){var X=V.props,te=X.onClick,$=X.index;te(Q,$)},V.onKeyDown=function(Q){var X=V.props,te=X.onClick,$=X.index;Q.keyCode===13&&te(Q,$)},V}return Object(d.a)(z,[{key:"getClassName",value:function(){var Q=this.props,X=Q.prefixCls,te=Q.index,$=Q.value,le=Q.allowHalf,re=Q.focused,Se=te+1,Re=X;return $===0&&te===0&&re?Re+=" ".concat(X,"-focused"):le&&$+.5>=Se&&$<Se?(Re+=" ".concat(X,"-half ").concat(X,"-active"),re&&(Re+=" ".concat(X,"-focused"))):(Re+=Se<=$?" ".concat(X,"-full"):" ".concat(X,"-zero"),Se===$&&re&&(Re+=" ".concat(X,"-focused"))),Re}},{key:"render",value:function(){var Q=this.onHover,X=this.onClick,te=this.onKeyDown,$=this.props,le=$.disabled,re=$.prefixCls,Se=$.character,Re=$.characterRender,Pe=$.index,Je=$.count,Ge=$.value,ct=typeof Se=="function"?Se(this.props):Se,Ue=v.a.createElement("li",{className:this.getClassName()},v.a.createElement("div",{onClick:le?null:X,onKeyDown:le?null:te,onMouseMove:le?null:Q,role:"radio","aria-checked":Ge>Pe?"true":"false","aria-posinset":Pe+1,"aria-setsize":Je,tabIndex:le?-1:0},v.a.createElement("div",{className:"".concat(re,"-first")},ct),v.a.createElement("div",{className:"".concat(re,"-second")},ct)));return Re&&(Ue=Re(Ue,this.props)),Ue}}]),z}(v.a.Component);function b(j,K){var z=Object.keys(j);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(j);K&&(V=V.filter(function(Q){return Object.getOwnPropertyDescriptor(j,Q).enumerable})),z.push.apply(z,V)}return z}function w(j){for(var K=1;K<arguments.length;K++){var z=arguments[K]!=null?arguments[K]:{};K%2?b(Object(z),!0).forEach(function(V){Object(m.a)(j,V,z[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(z)):b(Object(z)).forEach(function(V){Object.defineProperty(j,V,Object.getOwnPropertyDescriptor(z,V))})}return j}function E(j){var K=C();return function(){var V=Object(n.a)(j),Q;if(K){var X=Object(n.a)(this).constructor;Q=Reflect.construct(V,arguments,X)}else Q=V.apply(this,arguments);return Object(o.a)(this,Q)}}function C(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(j){return!1}}function _(){}var T=function(j){Object(l.a)(z,j);var K=E(z);function z(V){var Q;Object(f.a)(this,z),Q=K.call(this,V),Q.onHover=function(te,$){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",Ge=Q.state.value;$===u.a.RIGHT&&Ge<re&&!Je?(Se?Ge+=.5:Ge+=1,Q.changeValue(Ge),te.preventDefault()):$===u.a.LEFT&&Ge>0&&!Je||$===u.a.RIGHT&&Ge>0&&Je?(Se?Ge-=.5:Ge-=1,Q.changeValue(Ge),te.preventDefault()):$===u.a.LEFT&&Ge<re&&Je&&(Se?Ge+=.5:Ge+=1,Q.changeValue(Ge),te.preventDefault()),Re&&Re(te)},Q.saveRef=function(te){return function($){Q.stars[te]=$}},Q.saveRate=function(te){Q.rate=te};var X=V.value;return X===void 0&&(X=V.defaultValue),Q.stars={},Q.state={value:X,focused:!1,cleanedValue:null},Q}return Object(d.a)(z,[{key:"componentDidMount",value:function(){var Q=this.props,X=Q.autoFocus,te=Q.disabled;X&&!te&&this.focus()}},{key:"getStarDOM",value:function(Q){return Object(t.a)(this.stars[Q])}},{key:"getStarValue",value:function(Q,X){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&&X-Pe>Je/2||!re&&X-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 X=this.props.onChange;"value"in this.props||this.setState({value:Q}),X(Q)}},{key:"render",value:function(){for(var Q=this.props,X=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,Ge=Q.direction,ct=this.state,Ue=ct.value,ae=ct.hoverValue,lt=ct.focused,pe=[],J=re?"".concat(le,"-disabled"):"",Y=0;Y<X;Y+=1)pe.push(v.a.createElement(A,{ref:this.saveRef(Y),index:Y,count:X,disabled:re,prefixCls:"".concat(le,"-star"),allowHalf:te,value:ae===void 0?Ue:ae,onClick:this.onClick,onHover:this.onHover,key:Y,character:Re,characterRender:Pe,focused:lt}));var ee=e()(le,J,Se,Object(m.a)({},"".concat(le,"-rtl"),Ge==="rtl"));return v.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"},pe)}}],[{key:"getDerivedStateFromProps",value:function(Q,X){return"value"in Q&&Q.value!==void 0?w(w({},X),{},{value:Q.value}):X}}]),z}(v.a.Component);T.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:_,character:"\u2605",onHoverChange:_,tabIndex:0,direction:"ltr"};var S=T,O=S,I=i("Lerx"),F=i.n(I),P=i("3S7+"),B=i("H84U"),k=function(j,K){var z={};for(var V in j)Object.prototype.hasOwnProperty.call(j,V)&&K.indexOf(V)<0&&(z[V]=j[V]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(j);Q<V.length;Q++)K.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(j,V[Q])&&(z[V[Q]]=j[V[Q]]);return z},G=x.forwardRef(function(j,K){var z=j.prefixCls,V=j.tooltips,Q=k(j,["prefixCls","tooltips"]),X=function(Re,Pe){var Je=Pe.index;return V?x.createElement(P.a,{title:V[Je]},Re):Re},te=x.useContext(B.b),$=te.getPrefixCls,le=te.direction,re=$("rate",z);return x.createElement(O,p()({ref:K,characterRender:X},Q,{prefixCls:re,direction:le}))});G.displayName="Rate",G.defaultProps={character:x.createElement(F.a,null)};var M=D.a=G},H38U:function(R,D,i){var y=i("f4xo"),p=i("rcnY"),x=i("wU8J"),v=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 x,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(),v.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=v.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=v.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=v.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=v.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=v.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 x,e=0;e<n.length;e++){var u=n[e];a.put(u.mode,4),a.put(u.getLength(),v.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=v.getErrorCorrectPolynomial(c),A=new m(e[r],g.getLength()-1),b=A.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 E=0,h=0;h<o.length;h++)E+=o[h].totalCount;for(var C=new Array(E),_=0,h=0;h<t;h++)for(var r=0;r<o.length;r++)h<e[r].length&&(C[_++]=e[r][h]);for(var h=0;h<a;h++)for(var r=0;r<o.length;r++)h<u[r].length&&(C[_++]=u[r][h]);return C},R.exports=f},H6uX:function(R,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 x(this,f,d,l,o,!0)},on:function(f,d,l,o){return x(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 x(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 v=y;R.exports=v},H7XF:function(R,D,i){"use strict";D.byteLength=l,D.toByteArray=n,D.fromByteArray=e;for(var y=[],p=[],x=typeof Uint8Array!="undefined"?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,f=v.length;m<f;++m)y[m]=v[m],p[v.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 x(o(u,c,h)),A=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[A++]=r>>16&255,g[A++]=r>>8&255,g[A++]=r&255;return h===2&&(r=p[u.charCodeAt(w)]<<2|p[u.charCodeAt(w+1)]>>4,g[A++]=r&255),h===1&&(r=p[u.charCodeAt(w)]<<10|p[u.charCodeAt(w+1)]<<4|p[u.charCodeAt(w+2)]>>2,g[A++]=r>>8&255,g[A++]=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,A=0,b=s-c;A<b;A+=g)h.push(a(u,A,A+g>b?b:A+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(R,D,i){var y=i("QkVE");function p(x,v){var m=y(this,x),f=m.size;return m.set(x,v),this.size+=m.size==f?0:1,this}R.exports=p},HBhm:function(R,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(R,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"),x=i("kVK+"),v=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 pe=new Uint8Array(1);return pe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},pe.foo()===42&&typeof pe.subarray=="function"&&pe.subarray(1,1).byteLength===0}catch(J){return!1}}function f(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(pe,J){if(f()<J)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(pe=new Uint8Array(J),pe.__proto__=l.prototype):(pe===null&&(pe=new l(J)),pe.length=J),pe}function l(pe,J,Y){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(pe,J,Y);if(typeof pe=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return a(this,pe)}return o(this,pe,J,Y)}l.poolSize=8192,l._augment=function(pe){return pe.__proto__=l.prototype,pe};function o(pe,J,Y,ee){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?r(pe,J,Y,ee):typeof J=="string"?e(pe,J,Y):s(pe,J)}l.from=function(pe,J,Y){return o(null,pe,J,Y)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0}));function n(pe){if(typeof pe!="number")throw new TypeError('"size" argument must be a number');if(pe<0)throw new RangeError('"size" argument must not be negative')}function t(pe,J,Y,ee){return n(J),J<=0?d(pe,J):Y!==void 0?typeof ee=="string"?d(pe,J).fill(Y,ee):d(pe,J).fill(Y):d(pe,J)}l.alloc=function(pe,J,Y){return t(null,pe,J,Y)};function a(pe,J){if(n(J),pe=d(pe,J<0?0:c(J)|0),!l.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<J;++Y)pe[Y]=0;return pe}l.allocUnsafe=function(pe){return a(null,pe)},l.allocUnsafeSlow=function(pe){return a(null,pe)};function e(pe,J,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!l.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var ee=g(J,Y)|0;pe=d(pe,ee);var fe=pe.write(J,Y);return fe!==ee&&(pe=pe.slice(0,fe)),pe}function u(pe,J){var Y=J.length<0?0:c(J.length)|0;pe=d(pe,Y);for(var ee=0;ee<Y;ee+=1)pe[ee]=J[ee]&255;return pe}function r(pe,J,Y,ee){if(J.byteLength,Y<0||J.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(J.byteLength<Y+(ee||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&ee===void 0?J=new Uint8Array(J):ee===void 0?J=new Uint8Array(J,Y):J=new Uint8Array(J,Y,ee),l.TYPED_ARRAY_SUPPORT?(pe=J,pe.__proto__=l.prototype):pe=u(pe,J),pe}function s(pe,J){if(l.isBuffer(J)){var Y=c(J.length)|0;return pe=d(pe,Y),pe.length===0||J.copy(pe,0,0,Y),pe}if(J){if(typeof ArrayBuffer!="undefined"&&J.buffer instanceof ArrayBuffer||"length"in J)return typeof J.length!="number"||lt(J.length)?d(pe,0):u(pe,J);if(J.type==="Buffer"&&v(J.data))return u(pe,J.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(pe){if(pe>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return pe|0}function h(pe){return+pe!=pe&&(pe=0),l.alloc(+pe)}l.isBuffer=function(J){return!!(J!=null&&J._isBuffer)},l.compare=function(J,Y){if(!l.isBuffer(J)||!l.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(J===Y)return 0;for(var ee=J.length,fe=Y.length,we=0,Ce=Math.min(ee,fe);we<Ce;++we)if(J[we]!==Y[we]){ee=J[we],fe=Y[we];break}return ee<fe?-1:fe<ee?1:0},l.isEncoding=function(J){switch(String(J).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(J,Y){if(!v(J))throw new TypeError('"list" argument must be an Array of Buffers');if(J.length===0)return l.alloc(0);var ee;if(Y===void 0)for(Y=0,ee=0;ee<J.length;++ee)Y+=J[ee].length;var fe=l.allocUnsafe(Y),we=0;for(ee=0;ee<J.length;++ee){var Ce=J[ee];if(!l.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(fe,we),we+=Ce.length}return fe};function g(pe,J){if(l.isBuffer(pe))return pe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(pe)||pe instanceof ArrayBuffer))return pe.byteLength;typeof pe!="string"&&(pe=""+pe);var Y=pe.length;if(Y===0)return 0;for(var ee=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return Je(pe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Ue(pe).length;default:if(ee)return Je(pe).length;J=(""+J).toLowerCase(),ee=!0}}l.byteLength=g;function A(pe,J,Y){var ee=!1;if((J===void 0||J<0)&&(J=0),J>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,J>>>=0,Y<=J)return"";for(pe||(pe="utf8");;)switch(pe){case"hex":return j(this,J,Y);case"utf8":case"utf-8":return P(this,J,Y);case"ascii":return G(this,J,Y);case"latin1":case"binary":return M(this,J,Y);case"base64":return F(this,J,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,J,Y);default:if(ee)throw new TypeError("Unknown encoding: "+pe);pe=(pe+"").toLowerCase(),ee=!0}}l.prototype._isBuffer=!0;function b(pe,J,Y){var ee=pe[J];pe[J]=pe[Y],pe[Y]=ee}l.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<J;Y+=2)b(this,Y,Y+1);return this},l.prototype.swap32=function(){var J=this.length;if(J%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<J;Y+=4)b(this,Y,Y+3),b(this,Y+1,Y+2);return this},l.prototype.swap64=function(){var J=this.length;if(J%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<J;Y+=8)b(this,Y,Y+7),b(this,Y+1,Y+6),b(this,Y+2,Y+5),b(this,Y+3,Y+4);return this},l.prototype.toString=function(){var J=this.length|0;return J===0?"":arguments.length===0?P(this,0,J):A.apply(this,arguments)},l.prototype.equals=function(J){if(!l.isBuffer(J))throw new TypeError("Argument must be a Buffer");return this===J?!0:l.compare(this,J)===0},l.prototype.inspect=function(){var J="",Y=D.INSPECT_MAX_BYTES;return this.length>0&&(J=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(J+=" ... ")),"<Buffer "+J+">"},l.prototype.compare=function(J,Y,ee,fe,we){if(!l.isBuffer(J))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),ee===void 0&&(ee=J?J.length:0),fe===void 0&&(fe=0),we===void 0&&(we=this.length),Y<0||ee>J.length||fe<0||we>this.length)throw new RangeError("out of range index");if(fe>=we&&Y>=ee)return 0;if(fe>=we)return-1;if(Y>=ee)return 1;if(Y>>>=0,ee>>>=0,fe>>>=0,we>>>=0,this===J)return 0;for(var Ce=we-fe,_e=ee-Y,he=Math.min(Ce,_e),ye=this.slice(fe,we),Le=J.slice(Y,ee),tt=0;tt<he;++tt)if(ye[tt]!==Le[tt]){Ce=ye[tt],_e=Le[tt];break}return Ce<_e?-1:_e<Ce?1:0};function w(pe,J,Y,ee,fe){if(pe.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:pe.length-1),Y<0&&(Y=pe.length+Y),Y>=pe.length){if(fe)return-1;Y=pe.length-1}else if(Y<0)if(fe)Y=0;else return-1;if(typeof J=="string"&&(J=l.from(J,ee)),l.isBuffer(J))return J.length===0?-1:E(pe,J,Y,ee,fe);if(typeof J=="number")return J=J&255,l.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(pe,J,Y):Uint8Array.prototype.lastIndexOf.call(pe,J,Y):E(pe,[J],Y,ee,fe);throw new TypeError("val must be string, number or Buffer")}function E(pe,J,Y,ee,fe){var we=1,Ce=pe.length,_e=J.length;if(ee!==void 0&&(ee=String(ee).toLowerCase(),ee==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(pe.length<2||J.length<2)return-1;we=2,Ce/=2,_e/=2,Y/=2}function he(at,Fe){return we===1?at[Fe]:at.readUInt16BE(Fe*we)}var ye;if(fe){var Le=-1;for(ye=Y;ye<Ce;ye++)if(he(pe,ye)===he(J,Le===-1?0:ye-Le)){if(Le===-1&&(Le=ye),ye-Le+1===_e)return Le*we}else Le!==-1&&(ye-=ye-Le),Le=-1}else for(Y+_e>Ce&&(Y=Ce-_e),ye=Y;ye>=0;ye--){for(var tt=!0,gt=0;gt<_e;gt++)if(he(pe,ye+gt)!==he(J,gt)){tt=!1;break}if(tt)return ye}return-1}l.prototype.includes=function(J,Y,ee){return this.indexOf(J,Y,ee)!==-1},l.prototype.indexOf=function(J,Y,ee){return w(this,J,Y,ee,!0)},l.prototype.lastIndexOf=function(J,Y,ee){return w(this,J,Y,ee,!1)};function C(pe,J,Y,ee){Y=Number(Y)||0;var fe=pe.length-Y;ee?(ee=Number(ee),ee>fe&&(ee=fe)):ee=fe;var we=J.length;if(we%2!==0)throw new TypeError("Invalid hex string");ee>we/2&&(ee=we/2);for(var Ce=0;Ce<ee;++Ce){var _e=parseInt(J.substr(Ce*2,2),16);if(isNaN(_e))return Ce;pe[Y+Ce]=_e}return Ce}function _(pe,J,Y,ee){return ae(Je(J,pe.length-Y),pe,Y,ee)}function T(pe,J,Y,ee){return ae(Ge(J),pe,Y,ee)}function S(pe,J,Y,ee){return T(pe,J,Y,ee)}function O(pe,J,Y,ee){return ae(Ue(J),pe,Y,ee)}function I(pe,J,Y,ee){return ae(ct(J,pe.length-Y),pe,Y,ee)}l.prototype.write=function(J,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 we=this.length-Y;if((ee===void 0||ee>we)&&(ee=we),J.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 C(this,J,Y,ee);case"utf8":case"utf-8":return _(this,J,Y,ee);case"ascii":return T(this,J,Y,ee);case"latin1":case"binary":return S(this,J,Y,ee);case"base64":return O(this,J,Y,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,J,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(pe,J,Y){return J===0&&Y===pe.length?p.fromByteArray(pe):p.fromByteArray(pe.slice(J,Y))}function P(pe,J,Y){Y=Math.min(pe.length,Y);for(var ee=[],fe=J;fe<Y;){var we=pe[fe],Ce=null,_e=we>239?4:we>223?3:we>191?2:1;if(fe+_e<=Y){var he,ye,Le,tt;switch(_e){case 1:we<128&&(Ce=we);break;case 2:he=pe[fe+1],(he&192)===128&&(tt=(we&31)<<6|he&63,tt>127&&(Ce=tt));break;case 3:he=pe[fe+1],ye=pe[fe+2],(he&192)===128&&(ye&192)===128&&(tt=(we&15)<<12|(he&63)<<6|ye&63,tt>2047&&(tt<55296||tt>57343)&&(Ce=tt));break;case 4:he=pe[fe+1],ye=pe[fe+2],Le=pe[fe+3],(he&192)===128&&(ye&192)===128&&(Le&192)===128&&(tt=(we&15)<<18|(he&63)<<12|(ye&63)<<6|Le&63,tt>65535&&tt<1114112&&(Ce=tt))}}Ce===null?(Ce=65533,_e=1):Ce>65535&&(Ce-=65536,ee.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),ee.push(Ce),fe+=_e}return k(ee)}var B=4096;function k(pe){var J=pe.length;if(J<=B)return String.fromCharCode.apply(String,pe);for(var Y="",ee=0;ee<J;)Y+=String.fromCharCode.apply(String,pe.slice(ee,ee+=B));return Y}function G(pe,J,Y){var ee="";Y=Math.min(pe.length,Y);for(var fe=J;fe<Y;++fe)ee+=String.fromCharCode(pe[fe]&127);return ee}function M(pe,J,Y){var ee="";Y=Math.min(pe.length,Y);for(var fe=J;fe<Y;++fe)ee+=String.fromCharCode(pe[fe]);return ee}function j(pe,J,Y){var ee=pe.length;(!J||J<0)&&(J=0),(!Y||Y<0||Y>ee)&&(Y=ee);for(var fe="",we=J;we<Y;++we)fe+=Pe(pe[we]);return fe}function K(pe,J,Y){for(var ee=pe.slice(J,Y),fe="",we=0;we<ee.length;we+=2)fe+=String.fromCharCode(ee[we]+ee[we+1]*256);return fe}l.prototype.slice=function(J,Y){var ee=this.length;J=~~J,Y=Y===void 0?ee:~~Y,J<0?(J+=ee,J<0&&(J=0)):J>ee&&(J=ee),Y<0?(Y+=ee,Y<0&&(Y=0)):Y>ee&&(Y=ee),Y<J&&(Y=J);var fe;if(l.TYPED_ARRAY_SUPPORT)fe=this.subarray(J,Y),fe.__proto__=l.prototype;else{var we=Y-J;fe=new l(we,void 0);for(var Ce=0;Ce<we;++Ce)fe[Ce]=this[Ce+J]}return fe};function z(pe,J,Y){if(pe%1!==0||pe<0)throw new RangeError("offset is not uint");if(pe+J>Y)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUIntLE=function(J,Y,ee){J=J|0,Y=Y|0,ee||z(J,Y,this.length);for(var fe=this[J],we=1,Ce=0;++Ce<Y&&(we*=256);)fe+=this[J+Ce]*we;return fe},l.prototype.readUIntBE=function(J,Y,ee){J=J|0,Y=Y|0,ee||z(J,Y,this.length);for(var fe=this[J+--Y],we=1;Y>0&&(we*=256);)fe+=this[J+--Y]*we;return fe},l.prototype.readUInt8=function(J,Y){return Y||z(J,1,this.length),this[J]},l.prototype.readUInt16LE=function(J,Y){return Y||z(J,2,this.length),this[J]|this[J+1]<<8},l.prototype.readUInt16BE=function(J,Y){return Y||z(J,2,this.length),this[J]<<8|this[J+1]},l.prototype.readUInt32LE=function(J,Y){return Y||z(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},l.prototype.readUInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},l.prototype.readIntLE=function(J,Y,ee){J=J|0,Y=Y|0,ee||z(J,Y,this.length);for(var fe=this[J],we=1,Ce=0;++Ce<Y&&(we*=256);)fe+=this[J+Ce]*we;return we*=128,fe>=we&&(fe-=Math.pow(2,8*Y)),fe},l.prototype.readIntBE=function(J,Y,ee){J=J|0,Y=Y|0,ee||z(J,Y,this.length);for(var fe=Y,we=1,Ce=this[J+--fe];fe>0&&(we*=256);)Ce+=this[J+--fe]*we;return we*=128,Ce>=we&&(Ce-=Math.pow(2,8*Y)),Ce},l.prototype.readInt8=function(J,Y){return Y||z(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},l.prototype.readInt16LE=function(J,Y){Y||z(J,2,this.length);var ee=this[J]|this[J+1]<<8;return ee&32768?ee|4294901760:ee},l.prototype.readInt16BE=function(J,Y){Y||z(J,2,this.length);var ee=this[J+1]|this[J]<<8;return ee&32768?ee|4294901760:ee},l.prototype.readInt32LE=function(J,Y){return Y||z(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},l.prototype.readInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},l.prototype.readFloatLE=function(J,Y){return Y||z(J,4,this.length),x.read(this,J,!0,23,4)},l.prototype.readFloatBE=function(J,Y){return Y||z(J,4,this.length),x.read(this,J,!1,23,4)},l.prototype.readDoubleLE=function(J,Y){return Y||z(J,8,this.length),x.read(this,J,!0,52,8)},l.prototype.readDoubleBE=function(J,Y){return Y||z(J,8,this.length),x.read(this,J,!1,52,8)};function V(pe,J,Y,ee,fe,we){if(!l.isBuffer(pe))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>fe||J<we)throw new RangeError('"value" argument is out of bounds');if(Y+ee>pe.length)throw new RangeError("Index out of range")}l.prototype.writeUIntLE=function(J,Y,ee,fe){if(J=+J,Y=Y|0,ee=ee|0,!fe){var we=Math.pow(2,8*ee)-1;V(this,J,Y,ee,we,0)}var Ce=1,_e=0;for(this[Y]=J&255;++_e<ee&&(Ce*=256);)this[Y+_e]=J/Ce&255;return Y+ee},l.prototype.writeUIntBE=function(J,Y,ee,fe){if(J=+J,Y=Y|0,ee=ee|0,!fe){var we=Math.pow(2,8*ee)-1;V(this,J,Y,ee,we,0)}var Ce=ee-1,_e=1;for(this[Y+Ce]=J&255;--Ce>=0&&(_e*=256);)this[Y+Ce]=J/_e&255;return Y+ee},l.prototype.writeUInt8=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,1,255,0),l.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),this[Y]=J&255,Y+1};function Q(pe,J,Y,ee){J<0&&(J=65535+J+1);for(var fe=0,we=Math.min(pe.length-Y,2);fe<we;++fe)pe[Y+fe]=(J&255<<8*(ee?fe:1-fe))>>>(ee?fe:1-fe)*8}l.prototype.writeUInt16LE=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},l.prototype.writeUInt16BE=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2};function X(pe,J,Y,ee){J<0&&(J=4294967295+J+1);for(var fe=0,we=Math.min(pe.length-Y,4);fe<we;++fe)pe[Y+fe]=J>>>(ee?fe:3-fe)*8&255}l.prototype.writeUInt32LE=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[Y+3]=J>>>24,this[Y+2]=J>>>16,this[Y+1]=J>>>8,this[Y]=J&255):X(this,J,Y,!0),Y+4},l.prototype.writeUInt32BE=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):X(this,J,Y,!1),Y+4},l.prototype.writeIntLE=function(J,Y,ee,fe){if(J=+J,Y=Y|0,!fe){var we=Math.pow(2,8*ee-1);V(this,J,Y,ee,we-1,-we)}var Ce=0,_e=1,he=0;for(this[Y]=J&255;++Ce<ee&&(_e*=256);)J<0&&he===0&&this[Y+Ce-1]!==0&&(he=1),this[Y+Ce]=(J/_e>>0)-he&255;return Y+ee},l.prototype.writeIntBE=function(J,Y,ee,fe){if(J=+J,Y=Y|0,!fe){var we=Math.pow(2,8*ee-1);V(this,J,Y,ee,we-1,-we)}var Ce=ee-1,_e=1,he=0;for(this[Y+Ce]=J&255;--Ce>=0&&(_e*=256);)J<0&&he===0&&this[Y+Ce+1]!==0&&(he=1),this[Y+Ce]=(J/_e>>0)-he&255;return Y+ee},l.prototype.writeInt8=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,1,127,-128),l.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),J<0&&(J=255+J+1),this[Y]=J&255,Y+1},l.prototype.writeInt16LE=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},l.prototype.writeInt16BE=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2},l.prototype.writeInt32LE=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8,this[Y+2]=J>>>16,this[Y+3]=J>>>24):X(this,J,Y,!0),Y+4},l.prototype.writeInt32BE=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),l.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):X(this,J,Y,!1),Y+4};function te(pe,J,Y,ee,fe,we){if(Y+ee>pe.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function $(pe,J,Y,ee,fe){return fe||te(pe,J,Y,4,34028234663852886e22,-34028234663852886e22),x.write(pe,J,Y,ee,23,4),Y+4}l.prototype.writeFloatLE=function(J,Y,ee){return $(this,J,Y,!0,ee)},l.prototype.writeFloatBE=function(J,Y,ee){return $(this,J,Y,!1,ee)};function le(pe,J,Y,ee,fe){return fe||te(pe,J,Y,8,17976931348623157e292,-17976931348623157e292),x.write(pe,J,Y,ee,52,8),Y+8}l.prototype.writeDoubleLE=function(J,Y,ee){return le(this,J,Y,!0,ee)},l.prototype.writeDoubleBE=function(J,Y,ee){return le(this,J,Y,!1,ee)},l.prototype.copy=function(J,Y,ee,fe){if(ee||(ee=0),!fe&&fe!==0&&(fe=this.length),Y>=J.length&&(Y=J.length),Y||(Y=0),fe>0&&fe<ee&&(fe=ee),fe===ee)return 0;if(J.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),J.length-Y<fe-ee&&(fe=J.length-Y+ee);var we=fe-ee,Ce;if(this===J&&ee<Y&&Y<fe)for(Ce=we-1;Ce>=0;--Ce)J[Ce+Y]=this[Ce+ee];else if(we<1e3||!l.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<we;++Ce)J[Ce+Y]=this[Ce+ee];else Uint8Array.prototype.set.call(J,this.subarray(ee,ee+we),Y);return we},l.prototype.fill=function(J,Y,ee,fe){if(typeof J=="string"){if(typeof Y=="string"?(fe=Y,Y=0,ee=this.length):typeof ee=="string"&&(fe=ee,ee=this.length),J.length===1){var we=J.charCodeAt(0);we<256&&(J=we)}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 J=="number"&&(J=J&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,J||(J=0);var Ce;if(typeof J=="number")for(Ce=Y;Ce<ee;++Ce)this[Ce]=J;else{var _e=l.isBuffer(J)?J:Je(new l(J,fe).toString()),he=_e.length;for(Ce=0;Ce<ee-Y;++Ce)this[Ce+Y]=_e[Ce%he]}return this};var re=/[^+\/0-9A-Za-z-_]/g;function Se(pe){if(pe=Re(pe).replace(re,""),pe.length<2)return"";for(;pe.length%4!==0;)pe=pe+"=";return pe}function Re(pe){return pe.trim?pe.trim():pe.replace(/^\s+|\s+$/g,"")}function Pe(pe){return pe<16?"0"+pe.toString(16):pe.toString(16)}function Je(pe,J){J=J||Infinity;for(var Y,ee=pe.length,fe=null,we=[],Ce=0;Ce<ee;++Ce){if(Y=pe.charCodeAt(Ce),Y>55295&&Y<57344){if(!fe){if(Y>56319){(J-=3)>-1&&we.push(239,191,189);continue}else if(Ce+1===ee){(J-=3)>-1&&we.push(239,191,189);continue}fe=Y;continue}if(Y<56320){(J-=3)>-1&&we.push(239,191,189),fe=Y;continue}Y=(fe-55296<<10|Y-56320)+65536}else fe&&((J-=3)>-1&&we.push(239,191,189));if(fe=null,Y<128){if((J-=1)<0)break;we.push(Y)}else if(Y<2048){if((J-=2)<0)break;we.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((J-=3)<0)break;we.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((J-=4)<0)break;we.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return we}function Ge(pe){for(var J=[],Y=0;Y<pe.length;++Y)J.push(pe.charCodeAt(Y)&255);return J}function ct(pe,J){for(var Y,ee,fe,we=[],Ce=0;Ce<pe.length&&!((J-=2)<0);++Ce)Y=pe.charCodeAt(Ce),ee=Y>>8,fe=Y%256,we.push(fe),we.push(ee);return we}function Ue(pe){return p.toByteArray(Se(pe))}function ae(pe,J,Y,ee){for(var fe=0;fe<ee&&!(fe+Y>=J.length||fe>=pe.length);++fe)J[fe+Y]=pe[fe];return fe}function lt(pe){return pe!==pe}}).call(this,i("yLpj"))},HDyB:function(R,D,i){var y=i("nmnc"),p=i("JHRd"),x=i("ljhN"),v=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]",A=y?y.prototype:void 0,b=A?A.valueOf:void 0;function w(E,C,_,T,S,O,I){switch(_){case g:if(E.byteLength!=C.byteLength||E.byteOffset!=C.byteOffset)return!1;E=E.buffer,C=C.buffer;case h:return!(E.byteLength!=C.byteLength||!O(new p(E),new p(C)));case o:case n:case e:return x(+E,+C);case t:return E.name==C.name&&E.message==C.message;case u:case s:return E==C+"";case a:var F=m;case r:var P=T&d;if(F||(F=f),E.size!=C.size&&!P)return!1;var B=I.get(E);if(B)return B==C;T|=l,I.set(E,C);var k=v(F(E),F(C),T,S,O,I);return I.delete(E),k;case c:if(b)return b.call(E)==b.call(C)}return!1}R.exports=w},"HF/U":function(R,D,i){var y=i("QBsz");function p(v){var m=v.coordinateSystem;if(m&&m.type!=="view")return;var f=v.getGraph();f.eachNode(function(d){var l=d.getModel();d.setLayout([+l.get("x"),+l.get("y")])}),x(f)}function x(v){v.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=x},"HM/N":function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=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 A=h.get("center"),b=g.getWidth(),w=g.getHeight();c.cx=f(A[0],b),c.cy=f(A[1],w);var E=c.getRadiusAxis(),C=Math.min(b,w)/2,_=h.get("radius");_==null?_=[0,"100%"]:x.isArray(_)||(_=[0,_]),_=[f(_[0],C),f(_[1],C)],E.inverse?E.setExtent(_[1],_[0]):E.setExtent(_[0],_[1])}function u(c,h){var g=this,A=g.getAngleAxis(),b=g.getRadiusAxis();if(A.scale.setExtent(Infinity,-Infinity),b.scale.setExtent(Infinity,-Infinity),c.eachSeries(function(C){if(C.coordinateSystem===g){var _=C.getData();x.each(_.mapDimension("radius",!0),function(T){b.scale.unionExtentFromData(_,a(_,T))}),x.each(_.mapDimension("angle",!0),function(T){A.scale.unionExtentFromData(_,a(_,T))})}}),o(A.scale,A.model),o(b.scale,b.model),A.type==="category"&&!A.onBand){var w=A.getExtent(),E=360/A.scale.count();A.inverse?w[1]+=E:w[1]-=E,A.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:v.prototype.dimensions,create:function(c,h){var g=[];return c.eachComponent("polar",function(A,b){var w=new v(b);w.update=u;var E=w.getRadiusAxis(),C=w.getAngleAxis(),_=A.findAxisModel("radiusAxis"),T=A.findAxisModel("angleAxis");r(E,_),r(C,T),e(w,A,h),g.push(w),A.coordinateSystem=w,w.model=A}),c.eachSeries(function(A){if(A.get("coordinateSystem")==="polar"){var b=c.queryComponents({mainType:"polar",index:A.get("polarIndex"),id:A.get("polarId")})[0];A.coordinateSystem=b.coordinateSystem}}),g}};n.register("polar",s)},HOxn:function(R,D,i){var y=i("Cwc5"),p=i("Kz5y"),x=y(p,"Promise");R.exports=x},HQEm:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("Sj0X"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},HjIi:function(R,D,i){var y=i("bYtY"),p=i("OELB"),x=p.parsePercent,v=i("7hqr"),m=v.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(),A=d(h,g),b=f(s),w=r[A][b],E=w.offset,C=w.width,_=h.getOtherAxis(g),T=s.coordinateSystem.cx,S=s.coordinateSystem.cy,O=s.get("barMinHeight")||0,I=s.get("barMinAngle")||0;u[b]=u[b]||[];for(var F=c.mapDimension(_.dim),P=c.mapDimension(g.dim),B=m(c,F),k=g.dim!=="radius"||!s.get("roundCap",!0),G=_.getExtent()[0],M=0,j=c.count();M<j;M++){var K=c.get(F,M),z=c.get(P,M),V=K>=0?"p":"n",Q=G;B&&(u[b][z]||(u[b][z]={p:G,n:G}),Q=u[b][z][V]);var X,te,$,le;if(_.dim==="radius"){var re=_.dataToRadius(K)-G,Se=g.dataToAngle(z);Math.abs(re)<O&&(re=(re<0?-1:1)*O),X=Q,te=Q+re,$=Se-E,le=$-C,B&&(u[b][z][V]=te)}else{var Re=_.dataToAngle(K,k)-G,Pe=g.dataToRadius(z);Math.abs(Re)<I&&(Re=(Re<0?-1:1)*I),X=Pe+E,te=X+C,$=Q,le=Q+Re,B&&(u[b][z][V]=le)}c.setItemLayout(M,{cx:T,cy:S,r0:X,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(),A=d(h,g),b=g.getExtent(),w=g.type==="category"?g.getBandWidth():Math.abs(b[1]-b[0])/c.count(),E=e[A]||{bandWidth:w,remainedWidth:w,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},C=E.stacks;e[A]=E;var _=f(r);C[_]||E.autoWidthCount++,C[_]=C[_]||{width:0,maxWidth:0};var T=x(r.get("barWidth"),w),S=x(r.get("barMaxWidth"),w),O=r.get("barGap"),I=r.get("barCategoryGap");T&&!C[_].width&&(T=Math.min(E.remainedWidth,T),C[_].width=T,E.remainedWidth-=T),S&&(C[_].maxWidth=S),O!=null&&(E.gap=O),I!=null&&(E.categoryGap=I)});var u={};return y.each(e,function(r,s){u[s]={};var c=r.stacks,h=r.bandWidth,g=x(r.categoryGap,h),A=x(r.gap,1),b=r.remainedWidth,w=r.autoWidthCount,E=(b-g)/(w+(w-1)*A);E=Math.max(E,0),y.each(c,function(S,O){var I=S.maxWidth;I&&I<E&&(I=Math.min(I,b),S.width&&(I=Math.min(I,S.width)),b-=I,S.width=I,w--)}),E=(b-g)/(w+(w-1)*A),E=Math.max(E,0);var C=0,_;y.each(c,function(S,O){S.width||(S.width=E),_=S,C+=S.width*(1+A)}),_&&(C-=_.width*A);var T=-C/2;y.each(c,function(S,O){u[s][O]=u[s][O]||{offset:T,width:S.width},T+=S.width*(1+A)})}),u}var n=l;R.exports=n},HjOm:function(R,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(R,D){function i(y){var p=this.has(y)&&delete this.__data__[y];return this.size-=p?1:0,p}R.exports=i},Hw7h:function(R,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(x,v){var m=Math.cos,f=Math.sin,d=v.r,l=v.width,o=v.angle,n=v.x-m(o)*l*(l>=d/3?1:2),t=v.y-f(o)*l*(l>=d/3?1:2);o=v.angle-Math.PI/2,x.moveTo(n,t),x.lineTo(v.x+m(o)*l,v.y+f(o)*l),x.lineTo(v.x+m(v.angle)*d,v.y+f(v.angle)*d),x.lineTo(v.x-m(o)*l,v.y-f(o)*l),x.lineTo(n,t);return}});R.exports=p},Hxpc:function(R,D,i){var y=i("bYtY"),p=i("4NO4"),x=i("bLfw"),v=i("Qxkt"),m=i("cCMj"),f=i("7uqq"),d=x.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(o){x.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 v(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 v(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;R.exports=l},"I+77":function(R,D,i){var y=i("ProS");i("h54F"),i("lwQL"),i("10cm");var p=i("Z1r0"),x=i("f5Yq"),v=i("KUOm"),m=i("3m61"),f=i("01d+"),d=i("rdor"),l=i("WGYa"),o=i("ewwo");y.registerProcessor(p),y.registerVisual(x("graph","circle",null)),y.registerVisual(v),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(R,D,i){var y=i("bYtY"),p=i("eIcI"),x=i("ieMj"),v=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 x);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,A=0;A<this._indicatorAxes.length;A++){var b=this._indicatorAxes[A],w=Math.abs(s-b.angle);w<c&&(h=b,g=A,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=v.parsePercent(u[0],r),this.cy=v.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=v.parsePercent(h[0],c),this.r=v.parsePercent(h[1],c),y.each(this._indicatorAxes,function(g,A){g.setExtent(this.r0,this.r);var b=this.startAngle+A*Math.PI*2/this._indicatorAxes.length;b=Math.atan2(Math.sin(b),Math.cos(b)),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 A=h.getData();y.each(u,function(b){b.scale.unionExtentFromData(A,A.mapDimension(b.dim))})},this);var s=r.get("splitNumber");function c(h){var g=Math.pow(10,Math.floor(Math.log(h)/Math.LN10)),A=h/g;return A===2?A=5:A*=2,A*g}y.each(u,function(h,g){var A=f(h.scale,h.model).extent;d(h.scale,h.model);var b=h.model,w=h.scale,E=b.getMin(),C=b.getMax(),_=w.getInterval();if(E!=null&&C!=null)w.setExtent(+E,+C),w.setInterval((C-E)/s);else if(E!=null){var T;do T=E+_*s,w.setExtent(+E,T),w.setInterval(_),_=c(_);while(T<A[1]&&isFinite(T)&&isFinite(A[1]))}else if(C!=null){var S;do S=C-_*s,w.setExtent(S,+C),w.setInterval(_),_=c(_);while(S>A[0]&&isFinite(S)&&isFinite(A[0]))}else{var O=w.getTicks().length-1;O>s&&(_=c(_));var T=Math.ceil(A[1]/_)*_,S=v.round(T-_*s);w.setExtent(S,T),w.setInterval(_)}})},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;R.exports=t},"I3/A":function(R,D,i){var y=i("bYtY"),p=i("YXkt"),x=i("c2i1"),v=i("Mdki"),m=i("sdST"),f=i("IDmD"),d=i("MwEJ");function l(o,n,t,a,e){for(var u=new x(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],A=g.source,b=g.target;u.addEdge(A,b,h)&&(c.push(g),s.push(y.retrieve(g.id,A+" > "+b)),h++)}var w=t.get("coordinateSystem"),E;if(w==="cartesian2d"||w==="polar")E=d(o,t);else{var C=f.get(w),_=C&&C.type!=="view"?C.dimensions||[]:[];y.indexOf(_,"value")<0&&_.concat(["value"]);var T=m(o,{coordDimensions:_});E=new p(T,t),E.initData(o)}var S=new p(["value"],t);return S.initData(c,s),e&&e(E,S),v({mainData:E,struct:u,structAttr:"graph",datas:{node:E,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),u.update(),u}R.exports=l},I8Z2:function(R,D,i){"use strict";i.d(D,"a",function(){return v}),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(A,b){A.__proto__=b}||function(A,b){for(var w in b)b.hasOwnProperty(w)&&(A[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)}}(),x=y.createContext(null),v=function(s){p(c,s);function c(){return s!==null&&s.apply(this,arguments)||this}return c.prototype.render=function(){return y.createElement(x.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(A,b){A.__proto__=b}||function(A,b){for(var w in b)b.hasOwnProperty(w)&&(A[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 A in c)Object.prototype.hasOwnProperty.call(c,A)&&(s[A]=c[A])}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(C){o(_,C);function _(T,S){var O=C.call(this,T,S)||this;return O.unsubscribe=null,O.handleChange=function(){if(!O.unsubscribe)return;var I=g(O.store.getState(),O.props);O.setState({subscribed:I})},O.store=O.context,O.state={subscribed:g(O.store.getState(),T),store:O.store,props:T},O}return _.getDerivedStateFromProps=function(T,S){return s&&s.length===2&&T!==S.props?{subscribed:g(S.store.getState(),T),props:T}:{props:T}},_.prototype.componentDidMount=function(){this.trySubscribe()},_.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},_.prototype.shouldComponentUpdate=function(T,S){return!f()(this.props,T)||!f()(this.state.subscribed,S.subscribed)},_.prototype.trySubscribe=function(){h&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},_.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},_.prototype.render=function(){var T=n(n(n({},this.props),this.state.subscribed),{store:this.store});return y.createElement(b,n({},T,{ref:this.props.miniStoreForwardedRef}))},_.displayName="Connect("+t(b)+")",_.contextType=x,_}(y.Component);if(c.forwardRef){var E=y.forwardRef(function(C,_){return y.createElement(w,n({},C,{miniStoreForwardedRef:_}))});return l()(E,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 A in c)Object.prototype.hasOwnProperty.call(c,A)&&(s[A]=c[A])}return s},u.apply(this,arguments)};function r(s){var c=s,h=[];function g(w){c=u(u({},c),w);for(var E=0;E<h.length;E++)h[E]()}function A(){return c}function b(w){return h.push(w),function(){var C=h.indexOf(w);h.splice(C,1)}}return{setState:g,getState:A,subscribe:b}}},"I9Y+":function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="DoubleRightOutlined";var n=v.forwardRef(o);D.default=n},ICMv:function(R,D,i){var y=i("bYtY"),p={getMin:function(x){var v=this.option,m=!x&&v.rangeStart!=null?v.rangeStart:v.min;return this.axis&&m!=null&&m!=="dataMin"&&typeof m!="function"&&!y.eqNaN(m)&&(m=this.axis.scale.parse(m)),m},getMax:function(x){var v=this.option,m=!x&&v.rangeEnd!=null?v.rangeEnd:v.max;return this.axis&&m!=null&&m!=="dataMax"&&typeof m!="function"&&!y.eqNaN(m)&&(m=this.axis.scale.parse(m)),m},getNeedCrossZero:function(){var x=this.option;return x.rangeStart!=null||x.rangeEnd!=null?!1:!x.scale},getCoordSysModel:y.noop,setRange:function(x,v){this.option.rangeStart=x,this.option.rangeEnd=v},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};R.exports=p},IDmD:function(R,D,i){var y=i("bYtY"),p={};function x(){this._coordinateSystems=[]}x.prototype={constructor:x,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()}},x.register=function(m,f){p[m]=f},x.get=function(m){return p[m]};var v=x;R.exports=v},IMiH:function(R,D,i){var y=i("Sj9i"),p=i("QBsz"),x=i("4mN7"),v=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,E,C){C=C||0,this._ux=c(C/f/w)||0,this._uy=c(C/f/E)||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,E){return this.addData(d.M,w,E),this._ctx&&this._ctx.moveTo(w,E),this._x0=w,this._y0=E,this._xi=w,this._yi=E,this},lineTo:function(w,E){var C=c(w-this._xi)>this._ux||c(E-this._yi)>this._uy||this._len<5;return this.addData(d.L,w,E),this._ctx&&C&&(this._needsDash()?this._dashedLineTo(w,E):this._ctx.lineTo(w,E)),C&&(this._xi=w,this._yi=E),this},bezierCurveTo:function(w,E,C,_,T,S){return this.addData(d.C,w,E,C,_,T,S),this._ctx&&(this._needsDash()?this._dashedBezierTo(w,E,C,_,T,S):this._ctx.bezierCurveTo(w,E,C,_,T,S)),this._xi=T,this._yi=S,this},quadraticCurveTo:function(w,E,C,_){return this.addData(d.Q,w,E,C,_),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(w,E,C,_):this._ctx.quadraticCurveTo(w,E,C,_)),this._xi=C,this._yi=_,this},arc:function(w,E,C,_,T,S){return this.addData(d.A,w,E,C,C,_,T-_,0,S?0:1),this._ctx&&this._ctx.arc(w,E,C,_,T,S),this._xi=u(T)*C+w,this._yi=r(T)*C+E,this},arcTo:function(w,E,C,_,T){return this._ctx&&this._ctx.arcTo(w,E,C,_,T),this},rect:function(w,E,C,_){return this._ctx&&this._ctx.rect(w,E,C,_),this.addData(d.R,w,E,C,_),this},closePath:function(){this.addData(d.Z);var w=this._ctx,E=this._x0,C=this._y0;return w&&(this._needsDash()&&this._dashedLineTo(E,C),w.closePath()),this._xi=E,this._yi=C,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 E=0,C=0;C<w.length;C++)E+=w[C];this._dashSum=E}return this},setLineDashOffset:function(w){return this._dashOffset=w,this},len:function(){return this._len},setData:function(w){var E=w.length;!(this.data&&this.data.length===E)&&h&&(this.data=new Float32Array(E));for(var C=0;C<E;C++)this.data[C]=w[C];this._len=E},appendPath:function(w){w instanceof Array||(w=[w]);for(var E=w.length,C=0,_=this._len,T=0;T<E;T++)C+=w[T].len();h&&this.data instanceof Float32Array&&(this.data=new Float32Array(_+C));for(var T=0;T<E;T++)for(var S=w[T].data,O=0;O<S.length;O++)this.data[_++]=S[O];this._len=_},addData:function(w){if(!this._saveData)return;var E=this.data;this._len+arguments.length>E.length&&(this._expandData(),E=this.data);for(var C=0;C<arguments.length;C++)E[this._len++]=arguments[C];this._prevCmd=w},_expandData:function(){if(!(this.data instanceof Array)){for(var w=[],E=0;E<this._len;E++)w[E]=this.data[E];this.data=w}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(w,E){var C=this._dashSum,_=this._dashOffset,T=this._lineDash,S=this._ctx,O=this._xi,I=this._yi,F=w-O,P=E-I,B=s(F*F+P*P),k=O,G=I,M,j=T.length,K;for(F/=B,P/=B,_<0&&(_=C+_),_%=C,k-=_*F,G-=_*P;F>0&&k<=w||F<0&&k>=w||F===0&&(P>0&&G<=E||P<0&&G>=E);){if(K=this._dashIdx,M=T[K],k+=F*M,G+=P*M,this._dashIdx=(K+1)%j,F>0&&k<O||F<0&&k>O||P>0&&G<I||P<0&&G>I)continue;S[K%2?"moveTo":"lineTo"](F>=0?a(k,w):e(k,w),P>=0?a(G,E):e(G,E))}F=k-w,P=G-E,this._dashOffset=-s(F*F+P*P)},_dashedBezierTo:function(w,E,C,_,T,S){var O=this._dashSum,I=this._dashOffset,F=this._lineDash,P=this._ctx,B=this._xi,k=this._yi,G,M,j,K=y.cubicAt,z=0,V=this._dashIdx,Q=F.length,X,te,$=0;for(I<0&&(I=O+I),I%=O,G=0;G<1;G+=.1)M=K(B,w,C,T,G+.1)-K(B,w,C,T,G),j=K(k,E,_,S,G+.1)-K(k,E,_,S,G),z+=s(M*M+j*j);for(;V<Q&&!($+=F[V],$>I);V++);for(G=($-I)/z;G<=1;)X=K(B,w,C,T,G),te=K(k,E,_,S,G),V%2?P.moveTo(X,te):P.lineTo(X,te),G+=F[V]/z,V=(V+1)%Q;V%2!==0&&P.lineTo(T,S),M=T-X,j=S-te,this._dashOffset=-s(M*M+j*j)},_dashedQuadraticTo:function(w,E,C,_){var T=C,S=_;C=(C+2*w)/3,_=(_+2*E)/3,w=(this._xi+2*w)/3,E=(this._yi+2*E)/3,this._dashedBezierTo(w,E,C,_,T,S)},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,E=0,C=0,_=0,T=0,S=0;S<w.length;){var O=w[S++];S===1&&(E=w[S],C=w[S+1],_=E,T=C);switch(O){case d.M:_=w[S++],T=w[S++],E=_,C=T,n[0]=_,n[1]=T,t[0]=_,t[1]=T;break;case d.L:x.fromLine(E,C,w[S],w[S+1],n,t),E=w[S++],C=w[S++];break;case d.C:x.fromCubic(E,C,w[S++],w[S++],w[S++],w[S++],w[S],w[S+1],n,t),E=w[S++],C=w[S++];break;case d.Q:x.fromQuadratic(E,C,w[S++],w[S++],w[S],w[S+1],n,t),E=w[S++],C=w[S++];break;case d.A:var I=w[S++],F=w[S++],P=w[S++],B=w[S++],k=w[S++],G=w[S++]+k;S+=1;var M=1-w[S++];S===1&&(_=u(k)*P+I,T=r(k)*B+F),x.fromArc(I,F,P,B,k,G,M,n,t),E=u(G)*P+I,C=r(G)*B+F;break;case d.R:_=E=w[S++],T=C=w[S++];var j=w[S++],K=w[S++];x.fromLine(_,T,_+j,T+K,n,t);break;case d.Z:E=_,C=T;break}p.min(l,l,n),p.max(o,o,t)}return S===0&&(l[0]=l[1]=o[0]=o[1]=0),new v(l[0],l[1],o[0]-l[0],o[1]-l[1])},rebuildPath:function(w){for(var E=this.data,C,_,T,S,O,I,F=this._ux,P=this._uy,B=this._len,k=0;k<B;){var G=E[k++];k===1&&(T=E[k],S=E[k+1],C=T,_=S);switch(G){case d.M:C=T=E[k++],_=S=E[k++],w.moveTo(T,S);break;case d.L:O=E[k++],I=E[k++],(c(O-T)>F||c(I-S)>P||k===B-1)&&(w.lineTo(O,I),T=O,S=I);break;case d.C:w.bezierCurveTo(E[k++],E[k++],E[k++],E[k++],E[k++],E[k++]),T=E[k-2],S=E[k-1];break;case d.Q:w.quadraticCurveTo(E[k++],E[k++],E[k++],E[k++]),T=E[k-2],S=E[k-1];break;case d.A:var M=E[k++],j=E[k++],K=E[k++],z=E[k++],V=E[k++],Q=E[k++],X=E[k++],te=E[k++],$=K>z?K:z,le=K>z?1:K/z,re=K>z?z/K:1,Se=Math.abs(K-z)>.001,Re=V+Q;Se?(w.translate(M,j),w.rotate(X),w.scale(le,re),w.arc(0,0,$,V,Re,1-te),w.scale(1/le,1/re),w.rotate(-X),w.translate(-M,-j)):w.arc(M,j,$,V,Re,1-te),k===1&&(C=u(V)*K+M,_=r(V)*z+j),T=u(Re)*K+M,S=r(Re)*z+j;break;case d.R:C=T=E[k],_=S=E[k+1],w.rect(E[k++],E[k++],E[k++],E[k++]);break;case d.Z:w.closePath(),T=C,S=_}}}},g.CMD=d;var A=g;R.exports=A},IUWy:function(R,D){var i={};function y(x,v){i[x]=v}function p(x){return i[x]}D.register=y,D.get=p},IWNH:function(R,D,i){var y=i("T4UG"),p=i("Bsck"),x=i("7aKB"),v=x.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 v(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}});R.exports=f},IWp7:function(R,D,i){var y=i("bYtY"),p=i("OELB"),x=i("7aKB"),v=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,A){for(;g<A;){var b=g+A>>>1;c[b][1]<h?g=b+1:A=b}return g},u=m.extend({type:"time",getLabel:function(c){var h=this._stepLvl,g=new Date(c);return x.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 A=this._interval;c.fixMin||(h[0]=p.round(l(h[0]/A)*A)),c.fixMax||(h[1]=p.round(d(h[1]/A)*A))},niceTicks:function(c,h,g){c=c||10;var A=this._extent,b=A[1]-A[0],w=b/c;h!=null&&w<h&&(w=h),g!=null&&w>g&&(w=g);var E=r.length,C=e(r,w,0,E),_=r[Math.min(C,E-1)],T=_[1];if(_[0]==="year"){var S=b/T,O=p.nice(S/c,!0);T*=O}var I=this.getSetting("useUTC")?0:new Date(+A[0]||+A[1]).getTimezoneOffset()*60*1e3,F=[Math.round(d((A[0]-I)/T)*T+I),Math.round(l((A[1]-I)/T)*T+I)];v.fixExtent(F,A),this._stepLvl=_,this._interval=T,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;R.exports=s},IXuL:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("MwEJ"),v=i("T4UG"),m=v.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(f,d){return x(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:Infinity}});R.exports=m},IXyC:function(R,D,i){var y=i("bYtY"),p=i("bLfw");i("3zoK");var x=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(v){var m=this.option;v&&y.merge(m,v,!0),this._initDimensions()},contains:function(v,m){var f=v.get("parallelIndex");return f!=null&&m.getComponent("parallel",f)===this},setAxisExpand:function(v){y.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(m){v.hasOwnProperty(m)&&(this.option[m]=v[m])},this)},_initDimensions:function(){var v=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){v.push("dim"+d.get("dim")),m.push(d.componentIndex)})}});R.exports=x},Ib8C:function(R,D,i){(function(y){(function(p,x){R.exports=D=x()})(this,function(){var p=p||function(x,v){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(A){}if(typeof m.randomBytes=="function")try{return m.randomBytes(4).readInt32LE()}catch(A){}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||function(){function g(){}return function(A){var b;return g.prototype=A,b=new g,g.prototype=null,b}}(),l={},o=l.lib={},n=o.Base=function(){return{extend:function(A){var b=d(this);return A&&b.mixIn(A),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var A=this.extend();return A.init.apply(A,arguments),A},init:function(){},mixIn:function(A){for(var b in A)A.hasOwnProperty(b)&&(this[b]=A[b]);A.hasOwnProperty("toString")&&(this.toString=A.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),t=o.WordArray=n.extend({init:function(A,b){A=this.words=A||[],b!=v?this.sigBytes=b:this.sigBytes=A.length*4},toString:function(A){return(A||e).stringify(this)},concat:function(A){var b=this.words,w=A.words,E=this.sigBytes,C=A.sigBytes;if(this.clamp(),E%4)for(var _=0;_<C;_++){var T=w[_>>>2]>>>24-_%4*8&255;b[E+_>>>2]|=T<<24-(E+_)%4*8}else for(var S=0;S<C;S+=4)b[E+S>>>2]=w[S>>>2];return this.sigBytes+=C,this},clamp:function(){var A=this.words,b=this.sigBytes;A[b>>>2]&=4294967295<<32-b%4*8,A.length=x.ceil(b/4)},clone:function(){var A=n.clone.call(this);return A.words=this.words.slice(0),A},random:function(A){for(var b=[],w=0;w<A;w+=4)b.push(f());return new t.init(b,A)}}),a=l.enc={},e=a.Hex={stringify:function(A){for(var b=A.words,w=A.sigBytes,E=[],C=0;C<w;C++){var _=b[C>>>2]>>>24-C%4*8&255;E.push((_>>>4).toString(16)),E.push((_&15).toString(16))}return E.join("")},parse:function(A){for(var b=A.length,w=[],E=0;E<b;E+=2)w[E>>>3]|=parseInt(A.substr(E,2),16)<<24-E%8*4;return new t.init(w,b/2)}},u=a.Latin1={stringify:function(A){for(var b=A.words,w=A.sigBytes,E=[],C=0;C<w;C++){var _=b[C>>>2]>>>24-C%4*8&255;E.push(String.fromCharCode(_))}return E.join("")},parse:function(A){for(var b=A.length,w=[],E=0;E<b;E++)w[E>>>2]|=(A.charCodeAt(E)&255)<<24-E%4*8;return new t.init(w,b)}},r=a.Utf8={stringify:function(A){try{return decodeURIComponent(escape(u.stringify(A)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(A){return u.parse(unescape(encodeURIComponent(A)))}},s=o.BufferedBlockAlgorithm=n.extend({reset:function(){this._data=new t.init,this._nDataBytes=0},_append:function(A){typeof A=="string"&&(A=r.parse(A)),this._data.concat(A),this._nDataBytes+=A.sigBytes},_process:function(A){var b,w=this._data,E=w.words,C=w.sigBytes,_=this.blockSize,T=_*4,S=C/T;A?S=x.ceil(S):S=x.max((S|0)-this._minBufferSize,0);var O=S*_,I=x.min(O*4,C);if(O){for(var F=0;F<O;F+=_)this._doProcessBlock(E,F);b=E.splice(0,O),w.sigBytes-=I}return new t.init(b,I)},clone:function(){var A=n.clone.call(this);return A._data=this._data.clone(),A},_minBufferSize:0}),c=o.Hasher=s.extend({cfg:n.extend(),init:function(A){this.cfg=this.cfg.extend(A),this.reset()},reset:function(){s.reset.call(this),this._doReset()},update:function(A){return this._append(A),this._process(),this},finalize:function(A){A&&this._append(A);var b=this._doFinalize();return b},blockSize:512/32,_createHelper:function(A){return function(b,w){return new A.init(w).finalize(b)}},_createHmacHelper:function(A){return function(b,w){return new h.HMAC.init(A,w).finalize(b)}}}),h=l.algo={};return l}(Math);return p})}).call(this,i("yLpj"))},Iq15:function(R,D,i){var y=i("nVVt"),p=i("dWSS"),x=i("dQei"),v={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 v.PATTERN000:return(l+o)%2==0;case v.PATTERN001:return l%2==0;case v.PATTERN010:return o%3==0;case v.PATTERN011:return(l+o)%3==0;case v.PATTERN100:return(Math.floor(l/2)+Math.floor(o/3))%2==0;case v.PATTERN101:return l*o%2+l*o%3==0;case v.PATTERN110:return(l*o%2+l*o%3)%2==0;case v.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,x.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}};R.exports=m},ItGF:function(R,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(x){var v={},m={},f=x.match(/Firefox\/([\d.]+)/),d=x.match(/MSIE\s([\d.]+)/)||x.match(/Trident\/.+?rv:(([\d.]+))/),l=x.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(x);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:v,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"}}R.exports=y},ItS6:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=i("eP3c"),p=x(i("1q3G"));function x(l){return l&&l.__esModule?l:{default:l}}function v(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(){v(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(R,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,A=g-1;A>=0;A--){var b=h[A];b.hierNode={defaultAncestor:null,ancestor:b,prelim:0,modifier:0,change:0,shift:0,i:A,thread:null},s.push(b)}}function x(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 A=(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-A):r.hierNode.prelim=A}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 v(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 A=s[c];A.hierNode.prelim+=h,A.hierNode.modifier+=h,g+=A.hierNode.change,h+=A.hierNode.shift+g}}function o(r,s,c,h){if(s){for(var g=r,A=r,b=A.parentNode.children[0],w=s,E=g.hierNode.modifier,C=A.hierNode.modifier,_=b.hierNode.modifier,T=w.hierNode.modifier;w=n(w),A=t(A),w&&A;){g=n(g),b=t(b),g.hierNode.ancestor=r;var S=w.hierNode.prelim+T-A.hierNode.prelim-C+h(w,A);S>0&&(e(a(w,r,c),r,S),C+=S,E+=S),T+=w.hierNode.modifier,C+=A.hierNode.modifier,E+=g.hierNode.modifier,_+=b.hierNode.modifier}w&&!n(g)&&(g.hierNode.thread=w,g.hierNode.modifier+=T-E),A&&!t(b)&&(b.hierNode.thread=A,b.hierNode.modifier+=C-_,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=x,D.secondWalk=v,D.separation=m,D.radialCoordinate=f,D.getViewRect=d},IwbS:function(R,D,i){var y=i("bYtY"),p=i("NC18"),x=i("Qe9p"),v=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 A=i("1MYJ");D.CompoundPath=A;var b=i("SKnc");D.LinearGradient=b;var w=i("3e3G");D.RadialGradient=w;var E=i("mFDi");D.BoundingRect=E;var C=i("OS9S");D.IncrementalDisplayable=C;var _=i("nPnh"),T=Math.max,S=Math.min,O={},I=1,F={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},P="emphasis",B="normal",k=1,G={},M={};function j(Zt){return f.extend(Zt)}function K(Zt,Ct){return p.extendFromString(Zt,Ct)}function z(Zt,Ct){M[Zt]=Ct}function V(Zt){if(M.hasOwnProperty(Zt))return M[Zt]}function Q(Zt,Ct,on,Mn){var Xn=p.createFromString(Zt,Ct);return on&&(Mn==="center"&&(on=te(on,Xn.getBoundingRect())),le(Xn,on)),Xn}function X(Zt,Ct,on){var Mn=new l({style:{image:Zt,x:Ct.x,y:Ct.y,width:Ct.width,height:Ct.height},onload:function(Xn){if(on==="center"){var oi={width:Xn.width,height:Xn.height};Mn.setStyle(te(Ct,oi))}}});return Mn}function te(Zt,Ct){var on=Ct.width/Ct.height,Mn=Zt.height*on,Xn;Mn<=Zt.width?Xn=Zt.height:(Mn=Zt.width,Xn=Mn/on);var oi=Zt.x+Zt.width/2,Ui=Zt.y+Zt.height/2;return{x:oi-Mn/2,y:Ui-Xn/2,width:Mn,height:Xn}}var $=p.mergePath;function le(Zt,Ct){if(!Zt.applyTransform)return;var on=Zt.getBoundingRect(),Mn=on.calculateTransform(Ct);Zt.applyTransform(Mn)}function re(Zt){return _.subPixelOptimizeLine(Zt.shape,Zt.shape,Zt.style),Zt}function Se(Zt){return _.subPixelOptimizeRect(Zt.shape,Zt.shape,Zt.style),Zt}var Re=_.subPixelOptimize;function Pe(Zt){return Zt!=null&&Zt!=="none"}var Je=y.createHashMap(),Ge=0;function ct(Zt){if(typeof Zt!="string")return Zt;var Ct=Je.get(Zt);return Ct||(Ct=x.lift(Zt,-.1),Ge<1e4&&(Je.set(Zt,Ct),Ge++)),Ct}function Ue(Zt){if(!Zt.__hoverStlDirty)return;Zt.__hoverStlDirty=!1;var Ct=Zt.__hoverStl;if(!Ct){Zt.__cachedNormalStl=Zt.__cachedNormalZ2=null;return}var on=Zt.__cachedNormalStl={};Zt.__cachedNormalZ2=Zt.z2;var Mn=Zt.style;for(var Xn in Ct)Ct[Xn]!=null&&(on[Xn]=Mn[Xn]);on.fill=Mn.fill,on.stroke=Mn.stroke}function ae(Zt){var Ct=Zt.__hoverStl;if(!Ct||Zt.__highlighted)return;var on=Zt.__zr,Mn=Zt.useHoverLayer&&on&&on.painter.type==="canvas";if(Zt.__highlighted=Mn?"layer":"plain",Zt.isGroup||!on&&Zt.useHoverLayer)return;var Xn=Zt,oi=Zt.style;Mn&&(Xn=on.addHover(Zt),oi=Xn.style),Bt(oi),Mn||Ue(Xn),oi.extendFrom(Ct),lt(oi,Ct,"fill"),lt(oi,Ct,"stroke"),Ot(oi),Mn||(Zt.dirty(!1),Zt.z2+=I)}function lt(Zt,Ct,on){!Pe(Ct[on])&&Pe(Zt[on])&&(Zt[on]=ct(Zt[on]))}function pe(Zt){var Ct=Zt.__highlighted;if(!Ct)return;if(Zt.__highlighted=!1,Zt.isGroup)return;if(Ct==="layer")Zt.__zr&&Zt.__zr.removeHover(Zt);else{var on=Zt.style,Mn=Zt.__cachedNormalStl;Mn&&(Bt(on),Zt.setStyle(Mn),Ot(on));var Xn=Zt.__cachedNormalZ2;Xn!=null&&Zt.z2-Xn===I&&(Zt.z2=Xn)}}function J(Zt,Ct,on){var Mn=B,Xn=B,oi;Zt.__highlighted&&(Mn=P,oi=!0),Ct(Zt,on),Zt.__highlighted&&(Xn=P,oi=!0),Zt.isGroup&&Zt.traverse(function(Ui){!Ui.isGroup&&Ct(Ui,on)}),oi&&Zt.__highDownOnUpdate&&Zt.__highDownOnUpdate(Mn,Xn)}function Y(Zt,Ct){Ct=Zt.__hoverStl=Ct!==!1&&(Zt.hoverStyle||Ct||{}),Zt.__hoverStlDirty=!0,Zt.__highlighted&&(Zt.__cachedNormalStl=null,pe(Zt),ae(Zt))}function ee(Zt){!_e(this,Zt)&&!this.__highByOuter&&J(this,ae)}function fe(Zt){!_e(this,Zt)&&!this.__highByOuter&&J(this,pe)}function we(Zt){this.__highByOuter|=1<<(Zt||0),J(this,ae)}function Ce(Zt){!(this.__highByOuter&=~(1<<(Zt||0)))&&J(this,pe)}function _e(Zt,Ct){return Zt.__highDownSilentOnTouch&&Ct.zrByTouch}function he(Zt,Ct){ye(Zt,!0),J(Zt,Y,Ct)}function ye(Zt,Ct){var on=Ct===!1;if(Zt.__highDownSilentOnTouch=Zt.highDownSilentOnTouch,Zt.__highDownOnUpdate=Zt.highDownOnUpdate,!on||Zt.__highDownDispatcher){var Mn=on?"off":"on";Zt[Mn]("mouseover",ee)[Mn]("mouseout",fe),Zt[Mn]("emphasis",we)[Mn]("normal",Ce),Zt.__highByOuter=Zt.__highByOuter||0,Zt.__highDownDispatcher=!on}}function Le(Zt){return!!(Zt&&Zt.__highDownDispatcher)}function tt(Zt){var Ct=G[Zt];return Ct==null&&k<=32&&(Ct=G[Zt]=k++),Ct}function gt(Zt,Ct,on,Mn,Xn,oi,Ui){Xn=Xn||O;var Un=Xn.labelFetcher,Qn=Xn.labelDataIndex,$t=Xn.labelDimIndex,Nt=Xn.labelProp,Me=on.getShallow("show"),ke=Mn.getShallow("show"),Be;(Me||ke)&&(Un&&(Be=Un.getFormattedLabel(Qn,"normal",null,$t,Nt)),Be==null&&(Be=y.isFunction(Xn.defaultText)?Xn.defaultText(Qn,Xn):Xn.defaultText));var it=Me?Be:null,yt=ke?y.retrieve2(Un?Un.getFormattedLabel(Qn,"emphasis",null,$t,Nt):null,Be):null;(it!=null||yt!=null)&&(Fe(Zt,on,oi,Xn),Fe(Ct,Mn,Ui,Xn,!0)),Zt.text=it,Ct.text=yt}function at(Zt,Ct,on){var Mn=Zt.style;Ct&&(Bt(Mn),Zt.setStyle(Ct),Ot(Mn)),Mn=Zt.__hoverStl,on&&Mn&&(Bt(Mn),y.extend(Mn,on),Ot(Mn))}function Fe(Zt,Ct,on,Mn,Xn){return et(Zt,Ct,Mn,Xn),on&&y.extend(Zt,on),Zt}function mt(Zt,Ct,on){var Mn={isRectText:!0},Xn;on===!1?Xn=!0:Mn.autoColor=on,et(Zt,Ct,Mn,Xn)}function et(Zt,Ct,on,Mn){if(on=on||O,on.isRectText){var Xn;on.getTextPosition?Xn=on.getTextPosition(Ct,Mn):(Xn=Ct.getShallow("position")||(Mn?null:"inside"),Xn==="outside"&&(Xn="top")),Zt.textPosition=Xn,Zt.textOffset=Ct.getShallow("offset");var oi=Ct.getShallow("rotate");oi!=null&&(oi*=Math.PI/180),Zt.textRotation=oi,Zt.textDistance=y.retrieve2(Ct.getShallow("distance"),Mn?null:5)}var Ui=Ct.ecModel,Un=Ui&&Ui.option.textStyle,Qn=St(Ct),$t;if(Qn){$t={};for(var Nt in Qn)if(Qn.hasOwnProperty(Nt)){var Me=Ct.getModel(["rich",Nt]);jt($t[Nt]={},Me,Un,on,Mn)}}return Zt.rich=$t,jt(Zt,Ct,Un,on,Mn,!0),on.forceRich&&!on.textStyle&&(on.textStyle={}),Zt}function St(Zt){for(var Ct;Zt&&Zt!==Zt.ecModel;){var on=(Zt.option||O).rich;if(on){Ct=Ct||{};for(var Mn in on)on.hasOwnProperty(Mn)&&(Ct[Mn]=1)}Zt=Zt.parentModel}return Ct}function jt(Zt,Ct,on,Mn,Xn,oi){on=!Xn&&on||O,Zt.textFill=Mt(Ct.getShallow("color"),Mn)||on.color,Zt.textStroke=Mt(Ct.getShallow("textBorderColor"),Mn)||on.textBorderColor,Zt.textStrokeWidth=y.retrieve2(Ct.getShallow("textBorderWidth"),on.textBorderWidth),Xn||(oi&&(Zt.insideRollbackOpt=Mn,Ot(Zt)),Zt.textFill==null&&(Zt.textFill=Mn.autoColor)),Zt.fontStyle=Ct.getShallow("fontStyle")||on.fontStyle,Zt.fontWeight=Ct.getShallow("fontWeight")||on.fontWeight,Zt.fontSize=Ct.getShallow("fontSize")||on.fontSize,Zt.fontFamily=Ct.getShallow("fontFamily")||on.fontFamily,Zt.textAlign=Ct.getShallow("align"),Zt.textVerticalAlign=Ct.getShallow("verticalAlign")||Ct.getShallow("baseline"),Zt.textLineHeight=Ct.getShallow("lineHeight"),Zt.textWidth=Ct.getShallow("width"),Zt.textHeight=Ct.getShallow("height"),Zt.textTag=Ct.getShallow("tag"),(!oi||!Mn.disableBox)&&(Zt.textBackgroundColor=Mt(Ct.getShallow("backgroundColor"),Mn),Zt.textPadding=Ct.getShallow("padding"),Zt.textBorderColor=Mt(Ct.getShallow("borderColor"),Mn),Zt.textBorderWidth=Ct.getShallow("borderWidth"),Zt.textBorderRadius=Ct.getShallow("borderRadius"),Zt.textBoxShadowColor=Ct.getShallow("shadowColor"),Zt.textBoxShadowBlur=Ct.getShallow("shadowBlur"),Zt.textBoxShadowOffsetX=Ct.getShallow("shadowOffsetX"),Zt.textBoxShadowOffsetY=Ct.getShallow("shadowOffsetY")),Zt.textShadowColor=Ct.getShallow("textShadowColor")||on.textShadowColor,Zt.textShadowBlur=Ct.getShallow("textShadowBlur")||on.textShadowBlur,Zt.textShadowOffsetX=Ct.getShallow("textShadowOffsetX")||on.textShadowOffsetX,Zt.textShadowOffsetY=Ct.getShallow("textShadowOffsetY")||on.textShadowOffsetY}function Mt(Zt,Ct){return Zt!=="auto"?Zt:Ct&&Ct.autoColor?Ct.autoColor:null}function Ot(Zt){var Ct=Zt.textPosition,on=Zt.insideRollbackOpt,Mn;if(on&&Zt.textFill==null){var Xn=on.autoColor,oi=on.isRectText,Ui=on.useInsideStyle,Un=Ui!==!1&&(Ui===!0||oi&&Ct&&typeof Ct=="string"&&Ct.indexOf("inside")>=0),Qn=!Un&&Xn!=null;(Un||Qn)&&(Mn={textFill:Zt.textFill,textStroke:Zt.textStroke,textStrokeWidth:Zt.textStrokeWidth}),Un&&(Zt.textFill="#fff",Zt.textStroke==null&&(Zt.textStroke=Xn,Zt.textStrokeWidth==null&&(Zt.textStrokeWidth=2))),Qn&&(Zt.textFill=Xn)}Zt.insideRollback=Mn}function Bt(Zt){var Ct=Zt.insideRollback;Ct&&(Zt.textFill=Ct.textFill,Zt.textStroke=Ct.textStroke,Zt.textStrokeWidth=Ct.textStrokeWidth,Zt.insideRollback=null)}function Ke(Zt,Ct){var on=Ct&&Ct.getModel("textStyle");return y.trim([Zt.fontStyle||on&&on.getShallow("fontStyle")||"",Zt.fontWeight||on&&on.getShallow("fontWeight")||"",(Zt.fontSize||on&&on.getShallow("fontSize")||12)+"px",Zt.fontFamily||on&&on.getShallow("fontFamily")||"sans-serif"].join(" "))}function de(Zt,Ct,on,Mn,Xn,oi){typeof Xn=="function"&&(oi=Xn,Xn=null);var Ui=Mn&&Mn.isAnimationEnabled();if(Ui){var Un=Zt?"Update":"",Qn=Mn.getShallow("animationDuration"+Un),$t=Mn.getShallow("animationEasing"+Un),Nt=Mn.getShallow("animationDelay"+Un);typeof Nt=="function"&&(Nt=Nt(Xn,Mn.getAnimationDelayParams?Mn.getAnimationDelayParams(Ct,Xn):null)),typeof Qn=="function"&&(Qn=Qn(Xn)),Qn>0?Ct.animateTo(on,Qn,Nt||0,$t,oi,!!oi):(Ct.stopAnimation(),Ct.attr(on),oi&&oi())}else Ct.stopAnimation(),Ct.attr(on),oi&&oi()}function se(Zt,Ct,on,Mn,Xn){de(!0,Zt,Ct,on,Mn,Xn)}function ut(Zt,Ct,on,Mn,Xn){de(!1,Zt,Ct,on,Mn,Xn)}function qe(Zt,Ct){for(var on=v.identity([]);Zt&&Zt!==Ct;)v.mul(on,Zt.getLocalTransform(),on),Zt=Zt.parent;return on}function me(Zt,Ct,on){return Ct&&!y.isArrayLike(Ct)&&(Ct=d.getLocalTransform(Ct)),on&&(Ct=v.invert([],Ct)),m.applyTransform([],Zt,Ct)}function Wt(Zt,Ct,on){var Mn=Ct[4]===0||Ct[5]===0||Ct[0]===0?1:Math.abs(2*Ct[4]/Ct[0]),Xn=Ct[4]===0||Ct[5]===0||Ct[2]===0?1:Math.abs(2*Ct[4]/Ct[2]),oi=[Zt==="left"?-Mn:Zt==="right"?Mn:0,Zt==="top"?-Xn:Zt==="bottom"?Xn:0];return oi=me(oi,Ct,on),Math.abs(oi[0])>Math.abs(oi[1])?oi[0]>0?"right":"left":oi[1]>0?"bottom":"top"}function dr(Zt,Ct,on,Mn){if(!Zt||!Ct)return;function Xn(Un){var Qn={};return Un.traverse(function($t){!$t.isGroup&&$t.anid&&(Qn[$t.anid]=$t)}),Qn}function oi(Un){var Qn={position:m.clone(Un.position),rotation:Un.rotation};return Un.shape&&(Qn.shape=y.extend({},Un.shape)),Qn}var Ui=Xn(Zt);Ct.traverse(function(Un){if(!Un.isGroup&&Un.anid){var Qn=Ui[Un.anid];if(Qn){var $t=oi(Un);Un.attr(oi(Qn)),se(Un,$t,on,Un.dataIndex)}}})}function vt(Zt,Ct){return y.map(Zt,function(on){var Mn=on[0];Mn=T(Mn,Ct.x),Mn=S(Mn,Ct.x+Ct.width);var Xn=on[1];return Xn=T(Xn,Ct.y),Xn=S(Xn,Ct.y+Ct.height),[Mn,Xn]})}function rr(Zt,Ct){var on=T(Zt.x,Ct.x),Mn=S(Zt.x+Zt.width,Ct.x+Ct.width),Xn=T(Zt.y,Ct.y),oi=S(Zt.y+Zt.height,Ct.y+Ct.height);if(Mn>=on&&oi>=Xn)return{x:on,y:Xn,width:Mn-on,height:oi-Xn}}function ur(Zt,Ct,on){Ct=y.extend({rectHover:!0},Ct);var Mn=Ct.style={strokeNoScale:!0};if(on=on||{x:-1,y:-1,width:2,height:2},Zt)return Zt.indexOf("image://")===0?(Mn.image=Zt.slice(8),y.defaults(Mn,on),new l(Ct)):Q(Zt.replace("path://",""),Ct,on,"center")}function mn(Zt,Ct,on,Mn,Xn){for(var oi=0,Ui=Xn[Xn.length-1];oi<Xn.length;oi++){var Un=Xn[oi];if(sr(Zt,Ct,on,Mn,Un[0],Un[1],Ui[0],Ui[1]))return!0;Ui=Un}}function sr(Zt,Ct,on,Mn,Xn,oi,Ui,Un){var Qn=on-Zt,$t=Mn-Ct,Nt=Ui-Xn,Me=Un-oi,ke=xr(Nt,Me,Qn,$t);if(pr(ke))return!1;var Be=Zt-Xn,it=Ct-oi,yt=xr(Be,it,Qn,$t)/ke;if(yt<0||yt>1)return!1;var Tt=xr(Be,it,Nt,Me)/ke;return!(Tt<0||Tt>1)}function xr(Zt,Ct,on,Mn){return Zt*Mn-on*Ct}function pr(Zt){return Zt<=1e-6&&Zt>=-1e-6}z("circle",t),z("sector",a),z("ring",e),z("polygon",u),z("polyline",r),z("rect",s),z("line",c),z("bezierCurve",h),z("arc",g),D.Z2_EMPHASIS_LIFT=I,D.CACHED_LABEL_STYLE_PROPERTIES=F,D.extendShape=j,D.extendPath=K,D.registerShape=z,D.getShapeClass=V,D.makePath=Q,D.makeImage=X,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=Le,D.getHighlightDigit=tt,D.setLabelStyle=gt,D.modifyLabelStyle=at,D.setTextStyle=Fe,D.setText=mt,D.getFont=Ke,D.updateProps=se,D.initProps=ut,D.getTransform=qe,D.applyTransform=me,D.transformDirection=Wt,D.groupTransition=dr,D.clipPointsByRect=vt,D.clipRectByRect=rr,D.createIcon=ur,D.linePolygonIntersect=mn,D.lineLineIntersect=sr},IyUQ:function(R,D,i){var y=i("bYtY"),p=i("YH21"),x=i("IwbS"),v=i("iLNv"),m=i("fc+c"),f=i("OELB"),d=i("+TT/"),l=i("72pK"),o=x.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,A=["line","bar","candlestick","scatter"],b=m.extend({type:"dataZoom.slider",init:function(_,T){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=T},render:function(_,T,S,O){if(b.superApply(this,"render",arguments),v.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=_.get("orient"),this.dataZoomModel.get("show")===!1){this.group.removeAll();return}(!O||O.type!=="dataZoom"||O.from!==this.uid)&&this._buildView(),this._updateView()},remove:function(){b.superApply(this,"remove",arguments),v.clear(this,"_dispatchZoomAction")},dispose:function(){b.superApply(this,"dispose",arguments),v.clear(this,"_dispatchZoomAction")},_buildView:function(){var _=this.group;_.removeAll(),this._resetLocation(),this._resetInterval();var T=this._displayables.barGroup=new x.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),_.add(T),this._positionGroup()},_resetLocation:function(){var _=this.dataZoomModel,T=this.api,S=this._findCoordRect(),O={width:T.getWidth(),height:T.getHeight()},I=this._orient===c?{right:O.width-S.x-S.width,top:O.height-s-u,width:S.width,height:s}:{right:u,top:S.y,width:s,height:S.height},F=d.getLayoutParams(_.option);y.each(["right","top","width","height"],function(B){F[B]==="ph"&&(F[B]=I[B])});var P=d.getLayoutRect(F,O,_.padding);this._location={x:P.x,y:P.y},this._size=[P.width,P.height],this._orient===h&&this._size.reverse()},_positionGroup:function(){var _=this.group,T=this._location,S=this._orient,O=this.dataZoomModel.getFirstTargetAxisModel(),I=O&&O.get("inverse"),F=this._displayables.barGroup,P=(this._dataShadowInfo||{}).otherAxisInverse;F.attr(S===c&&!I?{scale:P?[1,1]:[1,-1]}:S===c&&I?{scale:P?[-1,1]:[-1,-1]}:S===h&&!I?{scale:P?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:P?[-1,-1]:[-1,1],rotation:Math.PI/2});var B=_.getBoundingRect([F]);_.attr("position",[T.x-B.x,T.y-B.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var _=this.dataZoomModel,T=this._size,S=this._displayables.barGroup;S.add(new o({silent:!0,shape:{x:0,y:0,width:T[0],height:T[1]},style:{fill:_.get("backgroundColor")},z2:-40})),S.add(new o({shape:{x:0,y:0,width:T[0],height:T[1]},style:{fill:"transparent"},z2:0,onclick:y.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var _=this._dataShadowInfo=this._prepareDataShadowInfo();if(!_)return;var T=this._size,S=_.series,O=S.getRawData(),I=S.getShadowDim?S.getShadowDim():_.otherDim;if(I==null)return;var F=O.getDataExtent(I),P=(F[1]-F[0])*.3;F=[F[0]-P,F[1]+P];var B=[0,T[1]],k=[0,T[0]],G=[[T[0],0],[0,0]],M=[],j=k[1]/(O.count()-1),K=0,z=Math.round(O.count()/T[0]),V;O.each([I],function(X,te){if(z>0&&te%z){K+=j;return}var $=X==null||isNaN(X)||X==="",le=$?0:n(X,F,B,!0);$&&!V&&te?(G.push([G[G.length-1][0],0]),M.push([M[M.length-1][0],0])):!$&&V&&(G.push([K,0]),M.push([K,0])),G.push([K,le]),M.push([K,le]),K+=j,V=$});var Q=this.dataZoomModel;this._displayables.barGroup.add(new x.Polygon({shape:{points:G},style:y.defaults({fill:Q.get("dataBackgroundColor")},Q.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new x.Polyline({shape:{points:M},style:Q.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))},_prepareDataShadowInfo:function(){var _=this.dataZoomModel,T=_.get("showDataShadow");if(T===!1)return;var S,O=this.ecModel;return _.eachTargetAxis(function(I,F){var P=_.getAxisProxy(I.name,F).getTargetSeriesModels();y.each(P,function(B){if(S)return;if(T!==!0&&y.indexOf(A,B.get("type"))<0)return;var k=O.getComponent(I.axis,F).axis,G=w(I.name),M,j=B.coordinateSystem;G!=null&&j.getOtherAxis&&(M=j.getOtherAxis(k).inverse),G=B.getData().mapDimension(G),S={thisAxis:k,series:B,thisDim:I.name,otherDim:G,otherAxisInverse:M}},this)},this),S},_renderHandle:function(){var _=this._displayables,T=_.handles=[],S=_.handleLabels=[],O=this._displayables.barGroup,I=this._size,F=this.dataZoomModel;O.add(_.filler=new o({draggable:!0,cursor:E(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"}})),O.add(new o({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:I[0],height:I[1]},style:{stroke:F.get("dataBackgroundColor")||F.get("borderColor"),lineWidth:r,fill:"rgba(0,0,0,0)"}})),e([0,1],function(P){var B=x.createIcon(F.get("handleIcon"),{cursor:E(this._orient),draggable:!0,drift:a(this._onDragMove,this,P),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}),k=B.getBoundingRect();this._handleHeight=f.parsePercent(F.get("handleSize"),this._size[1]),this._handleWidth=k.width/k.height*this._handleHeight,B.setStyle(F.getModel("handleStyle").getItemStyle());var G=F.get("handleColor");G!=null&&(B.style.fill=G),O.add(T[P]=B);var M=F.textStyleModel;this.group.add(S[P]=new x.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:M.getTextColor(),textFont:M.getFont()},z2:10}))},this)},_resetInterval:function(){var _=this._range=this.dataZoomModel.getPercentRange(),T=this._getViewExtent();this._handleEnds=[n(_[0],[0,100],T,!0),n(_[1],[0,100],T,!0)]},_updateInterval:function(_,T){var S=this.dataZoomModel,O=this._handleEnds,I=this._getViewExtent(),F=S.findRepresentativeAxisProxy().getMinMaxSpan(),P=[0,100];l(T,O,I,S.get("zoomLock")?"all":_,F.minSpan!=null?n(F.minSpan,P,I,!0):null,F.maxSpan!=null?n(F.maxSpan,P,I,!0):null);var B=this._range,k=this._range=t([n(O[0],I,P,!0),n(O[1],I,P,!0)]);return!B||B[0]!==k[0]||B[1]!==k[1]},_updateView:function(_){var T=this._displayables,S=this._handleEnds,O=t(S.slice()),I=this._size;e([0,1],function(F){var P=T.handles[F],B=this._handleHeight;P.attr({scale:[B/2,B/2],position:[S[F],I[1]/2-B/2]})},this),T.filler.setShape({x:O[0],y:0,width:O[1]-O[0],height:I[1]}),this._updateDataInfo(_)},_updateDataInfo:function(_){var T=this.dataZoomModel,S=this._displayables,O=S.handleLabels,I=this._orient,F=["",""];if(T.get("showDetail")){var P=T.findRepresentativeAxisProxy();if(P){var B=P.getAxisModel().axis,k=this._range,G=_?P.calculateDataWindow({start:k[0],end:k[1]}).valueWindow:P.getDataValueWindow();F=[this._formatLabel(G[0],B),this._formatLabel(G[1],B)]}}var M=t(this._handleEnds.slice());j.call(this,0),j.call(this,1);function j(K){var z=x.getTransform(S.handles[K].parent,this.group),V=x.transformDirection(K===0?"right":"left",z),Q=this._handleWidth/2+g,X=x.applyTransform([M[K]+(K===0?-Q:Q),this._size[1]/2],z);O[K].setStyle({x:X[0],y:X[1],textVerticalAlign:I===c?"middle":V,textAlign:I===c?V:"center",text:F[K]})}},_formatLabel:function(_,T){var S=this.dataZoomModel,O=S.get("labelFormatter"),I=S.get("labelPrecision");(I==null||I==="auto")&&(I=T.getPixelPrecision());var F=_==null||isNaN(_)?"":T.type==="category"||T.type==="time"?T.scale.getLabel(Math.round(_)):_.toFixed(Math.min(I,20));return y.isFunction(O)?O(_,F):y.isString(O)?O.replace("{value}",F):F},_showDataInfo:function(_){_=this._dragging||_;var T=this._displayables.handleLabels;T[0].attr("invisible",!_),T[1].attr("invisible",!_)},_onDragMove:function(_,T,S,O){this._dragging=!0,p.stop(O.event);var I=this._displayables.barGroup.getLocalTransform(),F=x.applyTransform([T,S],I,!0),P=this._updateInterval(_,F[0]),B=this.dataZoomModel.get("realtime");this._updateView(!B),P&&B&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var _=this.dataZoomModel.get("realtime");!_&&this._dispatchZoomAction()},_onClickPanelClick:function(_){var T=this._size,S=this._displayables.barGroup.transformCoordToLocal(_.offsetX,_.offsetY);if(S[0]<0||S[0]>T[0]||S[1]<0||S[1]>T[1])return;var O=this._handleEnds,I=(O[0]+O[1])/2,F=this._updateInterval("all",S[0]-I);this._updateView(),F&&this._dispatchZoomAction()},_dispatchZoomAction:function(){var _=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:_[0],end:_[1]})},_findCoordRect:function(){var _;if(e(this.getTargetCoordInfo(),function(O){if(!_&&O.length){var I=O[0].model.coordinateSystem;_=I.getRect&&I.getRect()}}),!_){var T=this.api.getWidth(),S=this.api.getHeight();_={x:T*.2,y:S*.2,width:T*.6,height:S*.6}}return _}});function w(_){var T={x:"y",y:"x",radius:"angle",angle:"radius"};return T[_]}function E(_){return _==="vertical"?"ns-resize":"ew-resize"}var C=b;R.exports=C},IzEo:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("lnY3"),v=i.n(x),m=i("Znn+"),f=i("14J3"),d=i("jCWc")},J66h:function(R,D,i){(function(y){var p,x;(function(v,m){R.exports=m(v)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof y!="undefined"?y:this,function(v){"use strict";v=v||{};var m=v.Base64,f="2.6.4",d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=function(B){for(var k={},G=0,M=B.length;G<M;G++)k[B.charAt(G)]=G;return k}(d),o=String.fromCharCode,n=function(k){if(k.length<2){var G=k.charCodeAt(0);return G<128?k:G<2048?o(192|G>>>6)+o(128|G&63):o(224|G>>>12&15)+o(128|G>>>6&63)+o(128|G&63)}else{var G=65536+(k.charCodeAt(0)-55296)*1024+(k.charCodeAt(1)-56320);return o(240|G>>>18&7)+o(128|G>>>12&63)+o(128|G>>>6&63)+o(128|G&63)}},t=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,a=function(k){return k.replace(t,n)},e=function(k){var G=[0,2,1][k.length%3],M=k.charCodeAt(0)<<16|(k.length>1?k.charCodeAt(1):0)<<8|(k.length>2?k.charCodeAt(2):0),j=[d.charAt(M>>>18),d.charAt(M>>>12&63),G>=2?"=":d.charAt(M>>>6&63),G>=1?"=":d.charAt(M&63)];return j.join("")},u=v.btoa&&typeof v.btoa=="function"?function(B){return v.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(k){return u(a(String(k)))},s=function(k){return k.replace(/[+\/]/g,function(G){return G=="+"?"-":"_"}).replace(/=/g,"")},c=function(k,G){return G?s(r(k)):r(k)},h=function(k){return c(k,!0)},g;v.Uint8Array&&(g=function(k,G){for(var M="",j=0,K=k.length;j<K;j+=3){var z=k[j],V=k[j+1],Q=k[j+2],X=z<<16|V<<8|Q;M+=d.charAt(X>>>18)+d.charAt(X>>>12&63)+(typeof V!="undefined"?d.charAt(X>>>6&63):"=")+(typeof Q!="undefined"?d.charAt(X&63):"=")}return G?s(M):M});var A=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(k){switch(k.length){case 4:var G=(7&k.charCodeAt(0))<<18|(63&k.charCodeAt(1))<<12|(63&k.charCodeAt(2))<<6|63&k.charCodeAt(3),M=G-65536;return o((M>>>10)+55296)+o((M&1023)+56320);case 3:return o((15&k.charCodeAt(0))<<12|(63&k.charCodeAt(1))<<6|63&k.charCodeAt(2));default:return o((31&k.charCodeAt(0))<<6|63&k.charCodeAt(1))}},w=function(k){return k.replace(A,b)},E=function(k){var G=k.length,M=G%4,j=(G>0?l[k.charAt(0)]<<18:0)|(G>1?l[k.charAt(1)]<<12:0)|(G>2?l[k.charAt(2)]<<6:0)|(G>3?l[k.charAt(3)]:0),K=[o(j>>>16),o(j>>>8&255),o(j&255)];return K.length-=[0,0,2,1][M],K.join("")},C=v.atob&&typeof v.atob=="function"?function(B){return v.atob(B)}:function(B){return B.replace(/\S{1,4}/g,E)},_=function(k){return C(String(k).replace(/[^A-Za-z0-9\+\/]/g,""))},T=function(k){return w(C(k))},S=function(k){return String(k).replace(/[-_]/g,function(G){return G=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},O=function(k){return T(S(k))},I;v.Uint8Array&&(I=function(k){return Uint8Array.from(_(S(k)),function(G){return G.charCodeAt(0)})});var F=function(){var k=v.Base64;return v.Base64=m,k};if(v.Base64={VERSION:f,atob:_,btoa:u,fromBase64:O,toBase64:c,utob:a,encode:c,encodeURI:h,btou:w,decode:O,noConflict:F,fromUint8Array:g,toUint8Array:I},typeof Object.defineProperty=="function"){var P=function(k){return{value:k,enumerable:!1,writable:!0,configurable:!0}};v.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",P(function(){return O(this)})),Object.defineProperty(String.prototype,"toBase64",P(function(B){return c(this,B)})),Object.defineProperty(String.prototype,"toBase64URI",P(function(){return c(this,!0)}))}}return v.Meteor&&(Base64=v.Base64),R.exports?R.exports.Base64=v.Base64:!(p=[],x=function(){return v.Base64}.apply(D,p),x!==void 0&&(R.exports=x)),{Base64:v.Base64}})}).call(this,i("yLpj"))},JEkh:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("ProS"),v=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=x.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(A){var b=A.get(this.mainType,!0),w=A[g];if(!b||!b.data){A[g]=null;return}w?w._mergeOption(b,r,!0):(c&&t(b),v.each(b.data,function(E){E instanceof Array?(t(E[0]),t(E[1])):t(E)}),w=new h(b,this,r),v.extend(w,{mainType:this.mainType,seriesIndex:A.seriesIndex,name:A.name,createdBySelf:!0}),w.__hostSeries=A),A[g]=w},this)},formatTooltip:function(u){var r=this.getData(),s=this.getRawValue(u),c=v.isArray(s)?v.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}});v.mixin(a,l);var e=a;R.exports=e},JGo8:function(R,D,i){},JHRd:function(R,D,i){var y=i("Kz5y"),p=y.Uint8Array;R.exports=p},JHgL:function(R,D,i){var y=i("QkVE");function p(x){return y(this,x).get(x)}R.exports=p},JLnu:function(R,D,i){var y=i("+TT/"),p=i("OELB"),x=p.parsePercent,v=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,A,b;if(c)e==="insideLeft"?(g=(s[0][0]+s[3][0])/2+5,A=(s[0][1]+s[3][1])/2,h="left"):e==="insideRight"?(g=(s[1][0]+s[2][0])/2-5,A=(s[1][1]+s[2][1])/2,h="right"):(g=(s[0][0]+s[1][0]+s[2][0]+s[3][0])/4,A=(s[0][1]+s[1][1]+s[2][1]+s[3][1])/4,h="center"),b=[[g,A],[g,A]];else{var w,E,C,_=u.get("length");e==="left"?(w=(s[3][0]+s[0][0])/2,E=(s[3][1]+s[0][1])/2,C=w-_,g=C-5,h="right"):e==="right"?(w=(s[1][0]+s[2][0])/2,E=(s[1][1]+s[2][1])/2,C=w+_,g=C+5,h="left"):e==="rightTop"?(w=s[1][0],E=s[1][1],C=w+_,g=C+5,h="top"):e==="rightBottom"?(w=s[2][0],E=s[2][1],C=w+_,g=C+5,h="bottom"):e==="leftTop"?(w=s[0][0],E=s[1][1],C=w-_,g=C-5,h="right"):e==="leftBottom"?(w=s[3][0],E=s[2][1],C=w-_,g=C-5,h="right"):(w=(s[1][0]+s[2][0])/2,E=(s[1][1]+s[2][1])/2,C=w+_,g=C+5,h="left");var T=E;b=[[w,E],[C,T]],A=T}r.label={linePoints:b,x:g,y:A,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=[x(a.get("minSize"),s.width),x(a.get("maxSize"),s.width)],g=e.getDataExtent(u),A=a.get("min"),b=a.get("max");A==null&&(A=Math.min(g[0],0)),b==null&&(b=g[1]);var w=a.get("funnelAlign"),E=a.get("gap"),C=(s.height-E*(e.count()-1))/e.count(),_=s.y,T=function(G,M){var j=e.get(u,G)||0,K=v(j,[A,b],h,!0),z;switch(w){case"left":z=s.x;break;case"center":z=s.x+(s.width-K)/2;break;case"right":z=s.x+s.width-K;break}return[[z,M],[z+K,M]]};r==="ascending"&&(C=-C,E=-E,_+=s.height,c=c.reverse());for(var S=0;S<c.length;S++){var O=c[S],I=c[S+1],F=e.getItemModel(O),P=F.get("itemStyle.height");P==null?P=C:(P=x(P,s.height),r==="ascending"&&(P=-P));var B=T(O,_),k=T(I,_+P);_+=P+E,e.setItemLayout(O,{points:B.concat(k.slice().reverse())})}d(e)})}R.exports=l},JSQU:function(R,D,i){var y=i("YESw"),p="__lodash_hash_undefined__";function x(v,m){var f=this.__data__;return this.size+=this.has(v)?0:1,f[v]=y&&m===void 0?p:m,this}R.exports=x},JSwD:function(R,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=v(i("6BzB"));function x(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return x=function(){return s},s}function v(s){if(s&&s.__esModule)return s;if(s===null||y(s)!=="object"&&typeof s!="function")return{default:s};var c=x();if(c&&c.has(s))return c.get(s);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in s)if(Object.prototype.hasOwnProperty.call(s,A)){var b=g?Object.getOwnPropertyDescriptor(s,A):null;b&&(b.get||b.set)?Object.defineProperty(h,A,b):h[A]=s[A]}return h.default=s,c&&c.set(s,h),h}var 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,A,b,w,E){var C=E.bits,_=0,T=0,S=0,O=0,I=0,F=0,P=0,B=0,k=0,G=0,M,j,K,z,V,Q=null,X=0,te,$=new p.Buf16(m+1),le=new p.Buf16(m+1),re=null,Se=0,Re,Pe,Je;for(_=0;_<=m;_++)$[_]=0;for(T=0;T<g;T++)$[c[h+T]]++;for(I=C,O=m;O>=1&&!($[O]!==0);O--);if(I>O&&(I=O),O===0)return A[b++]=1<<24|64<<16|0,A[b++]=1<<24|64<<16|0,E.bits=1,0;for(S=1;S<O&&!($[S]!==0);S++);for(I<S&&(I=S),B=1,_=1;_<=m;_++)if(B<<=1,B-=$[_],B<0)return-1;if(B>0&&(s===l||O!==1))return-1;for(le[1]=0,_=1;_<m;_++)le[_+1]=le[_]+$[_];for(T=0;T<g;T++)c[h+T]!==0&&(w[le[c[h+T]]++]=T);if(s===l?(Q=re=w,te=19):s===o?(Q=t,X-=257,re=a,Se-=257,te=256):(Q=e,re=u,te=-1),G=0,T=0,_=S,V=b,F=I,P=0,K=-1,k=1<<I,z=k-1,s===o&&k>f||s===n&&k>d)return 1;for(;;){Re=_-P,w[T]<te?(Pe=0,Je=w[T]):w[T]>te?(Pe=re[Se+w[T]],Je=Q[X+w[T]]):(Pe=32+64,Je=0),M=1<<_-P,j=1<<F,S=j;do j-=M,A[V+(G>>P)+j]=Re<<24|Pe<<16|Je|0;while(j!==0);for(M=1<<_-1;G&M;)M>>=1;if(M!==0?(G&=M-1,G+=M):G=0,T++,--$[_]===0){if(_===O)break;_=c[h+w[T]]}if(_>I&&(G&z)!==K){for(P===0&&(P=I),V+=S,F=_-P,B=1<<F;F+P<O&&!(B-=$[F+P],B<=0);)F++,B<<=1;if(k+=1<<F,s===o&&k>f||s===n&&k>d)return 1;K=G&z,A[K]=I<<24|F<<16|V-b|0}}return G!==0&&(A[V+G]=_-P<<24|64<<16|0),E.bits=I,0}},JTzB:function(R,D,i){var y=i("NykK"),p=i("ExA7"),x="[object Arguments]";function v(m){return p(m)&&y(m)==x}R.exports=v},JVwQ:function(R,D,i){var y=i("ProS"),p=i("1NG9"),x=p.Polygon,v=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 A(C){return C.name}var b=new l(this._layersSeries||[],s,A,A),w={};b.add(f(E,this,"add")).update(f(E,this,"update")).remove(f(E,this,"remove")).execute();function E(C,_,T){var S=this._layers;if(C==="remove"){r.remove(S[_]);return}for(var O=[],I=[],F,P=s[_].indices,B=0;B<P.length;B++){var k=u.getItemLayout(P[B]),G=k.x,M=k.y0,j=k.y;O.push([G,M]),I.push([G,M+j]),F=u.getItemVisual(P[B],"color")}var K,z,V=u.getItemLayout(P[0]),Q=u.getItemModel(P[B-1]),X=Q.getModel("label"),te=X.get("margin");if(C==="add"){var $=w[_]=new v.Group;K=new x({shape:{points:O,stackedOnPoints:I,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),z=new v.Text({style:{x:V.x-te,y:V.y0+V.y/2}}),$.add(K),$.add(z),r.add($),K.setClipPath(n(K.getBoundingRect(),t,function(){K.removeClipPath()}))}else{var $=S[T];K=$.childAt(0),z=$.childAt(1),r.add($),w[_]=$,v.updateProps(K,{shape:{points:O,stackedOnPoints:I}},t),v.updateProps(z,{style:{x:V.x-te,y:V.y0+V.y/2}},t)}var le=Q.getModel("emphasis.itemStyle"),re=Q.getModel("itemStyle");v.setTextStyle(z.style,X,{text:X.get("show")?t.getFormattedLabel(P[B-1],"normal")||u.getName(P[B-1]):null,textVerticalAlign:"middle"}),K.setStyle(d({fill:F},re.getItemStyle(["color"]))),v.setHoverStyle(K,le.getItemStyle())}this._layersSeries=s,this._layers=w},dispose:function(){}});function n(t,a,e){var u=new v.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return v.initProps(u,{shape:{width:t.width+20,height:t.height+20}},a,e),u}R.exports=o},JgUQ:function(R,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(R,D,i){"use strict";var y=i("pVnL"),p=i.n(y),x=i("lSNA"),v=i.n(x),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"),A=i("cDf5"),b=i.n(A),w=i("BGR+"),E=i("VTBJ"),C=i("1OyB"),_=i("vuIU"),T=i("Ji7U"),S=i("LK+K"),O=i("m+aA"),I=i("Zm9Q"),F=i("Kwbf"),P=i("c+Xe"),B=i("bdgK"),k="rc-observer-key",G=function(gt){Object(T.a)(Fe,gt);var at=Object(S.a)(Fe);function Fe(){var mt;return Object(C.a)(this,Fe),mt=at.apply(this,arguments),mt.resizeObserver=null,mt.childNode=null,mt.currentElement=null,mt.state={width:0,height:0,offsetHeight:0,offsetWidth:0},mt.onResize=function(et){var St=mt.props.onResize,jt=et[0].target,Mt=jt.getBoundingClientRect(),Ot=Mt.width,Bt=Mt.height,Ke=jt.offsetWidth,de=jt.offsetHeight,se=Math.floor(Ot),ut=Math.floor(Bt);if(mt.state.width!==se||mt.state.height!==ut||mt.state.offsetWidth!==Ke||mt.state.offsetHeight!==de){var qe={width:se,height:ut,offsetWidth:Ke,offsetHeight:de};mt.setState(qe),St&&Promise.resolve().then(function(){St(Object(E.a)(Object(E.a)({},qe),{},{offsetWidth:Ke,offsetHeight:de}))})}},mt.setChildNode=function(et){mt.childNode=et},mt}return Object(_.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 St=Object(O.a)(this.childNode||this),jt=St!==this.currentElement;jt&&(this.destroyObserver(),this.currentElement=St),!this.resizeObserver&&St&&(this.resizeObserver=new B.default(this.onResize),this.resizeObserver.observe(St))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var et=this.props.children,St=Object(I.a)(et);if(St.length>1)Object(F.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(St.length===0)return Object(F.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var jt=St[0];if(r.isValidElement(jt)&&Object(P.c)(jt)){var Mt=jt.ref;St[0]=r.cloneElement(jt,{ref:Object(P.a)(Mt,this.setChildNode)})}return St.length===1?St[0]:St.map(function(Ot,Bt){return!r.isValidElement(Ot)||"key"in Ot&&Ot.key!==null?Ot:r.cloneElement(Ot,{key:"".concat(k,"-").concat(Bt)})})}}]),Fe}(r.Component);G.displayName="ResizeObserver";var M=G,j=i("H84U"),K=i("RIqP"),z=i.n(K),V=i("xEkU"),Q=i.n(V);function X(gt){var at,Fe=function(St){return function(){at=null,gt.apply(void 0,z()(St))}},mt=function(){if(at==null){for(var St=arguments.length,jt=new Array(St),Mt=0;Mt<St;Mt++)jt[Mt]=arguments[Mt];at=Q()(Fe(jt))}};return mt.cancel=function(){return Q.a.cancel(at)},mt}function te(){return function(gt,at,Fe){var mt=Fe.value,et=!1;return{configurable:!0,get:function(){if(et||this===gt.prototype||this.hasOwnProperty(at))return mt;var jt=X(mt.bind(this));return et=!0,Object.defineProperty(this,at,{value:jt,configurable:!0,writable:!0}),et=!1,jt}}}}function $(gt){return gt!==window?gt.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function le(gt,at,Fe){return Fe!==void 0&&at.top>gt.top-Fe?Fe+at.top:void 0}function re(gt,at,Fe){if(Fe!==void 0&&at.bottom<gt.bottom+Fe){var mt=window.innerHeight-at.bottom;return Fe+mt}return}var Se=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],Re=[];function Pe(){return Re}function Je(gt,at){if(!gt)return;var Fe=Re.find(function(mt){return mt.target===gt});Fe?Fe.affixList.push(at):(Fe={target:gt,affixList:[at],eventHandlers:{}},Re.push(Fe),Se.forEach(function(mt){Fe.eventHandlers[mt]=Object(g.a)(gt,mt,function(){Fe.affixList.forEach(function(et){et.lazyUpdatePosition()})})}))}function Ge(gt){var at=Re.find(function(Fe){var mt=Fe.affixList.some(function(et){return et===gt});return mt&&(Fe.affixList=Fe.affixList.filter(function(et){return et!==gt})),mt});at&&at.affixList.length===0&&(Re=Re.filter(function(Fe){return Fe!==at}),Se.forEach(function(Fe){var mt=at.eventHandlers[Fe];mt&&mt.remove&&mt.remove()}))}var ct=function(gt,at,Fe,mt){var et=arguments.length,St=et<3?at:mt===null?mt=Object.getOwnPropertyDescriptor(at,Fe):mt,jt;if((typeof Reflect=="undefined"?"undefined":b()(Reflect))==="object"&&typeof Reflect.decorate=="function")St=Reflect.decorate(gt,at,Fe,mt);else for(var Mt=gt.length-1;Mt>=0;Mt--)(jt=gt[Mt])&&(St=(et<3?jt(St):et>3?jt(at,Fe,St):jt(at,Fe))||St);return et>3&&St&&Object.defineProperty(at,Fe,St),St};function Ue(){return typeof window!="undefined"?window:null}var ae;(function(gt){gt[gt.None=0]="None",gt[gt.Prepare=1]="Prepare"})(ae||(ae={}));var lt=function(gt){a()(Fe,gt);var at=u()(Fe);function Fe(){var mt;return f()(this,Fe),mt=at.apply(this,arguments),mt.state={status:ae.None,lastAffix:!1,prevTarget:null},mt.getOffsetTop=function(){var et=mt.props.offsetBottom,St=mt.props.offsetTop;return et===void 0&&St===void 0&&(St=0),St},mt.getOffsetBottom=function(){return mt.props.offsetBottom},mt.savePlaceholderNode=function(et){mt.placeholderNode=et},mt.saveFixedNode=function(et){mt.fixedNode=et},mt.measure=function(){var et=mt.state,St=et.status,jt=et.lastAffix,Mt=mt.props.onChange,Ot=mt.getTargetFunc();if(St!==ae.Prepare||!mt.fixedNode||!mt.placeholderNode||!Ot)return;var Bt=mt.getOffsetTop(),Ke=mt.getOffsetBottom(),de=Ot();if(!de)return;var se={status:ae.None},ut=$(de),qe=$(mt.placeholderNode),me=le(qe,ut,Bt),Wt=re(qe,ut,Ke);me!==void 0?(se.affixStyle={position:"fixed",top:me,width:qe.width,height:qe.height},se.placeholderStyle={width:qe.width,height:qe.height}):Wt!==void 0&&(se.affixStyle={position:"fixed",bottom:Wt,width:qe.width,height:qe.height},se.placeholderStyle={width:qe.width,height:qe.height}),se.lastAffix=!!se.affixStyle,Mt&&jt!==se.lastAffix&&Mt(se.lastAffix),mt.setState(se)},mt.prepareMeasure=function(){if(mt.setState({status:ae.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var et},mt.render=function(){var et=mt.context.getPrefixCls,St=mt.state,jt=St.affixStyle,Mt=St.placeholderStyle,Ot=mt.props,Bt=Ot.prefixCls,Ke=Ot.children,de=h()(v()({},et("affix",Bt),jt)),se=Object(w.default)(mt.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return r.createElement(M,{onResize:function(){mt.updatePosition()}},r.createElement("div",p()({},se,{ref:mt.savePlaceholderNode}),jt&&r.createElement("div",{style:Mt,"aria-hidden":"true"}),r.createElement("div",{className:de,ref:mt.saveFixedNode,style:jt},r.createElement(M,{onResize:function(){mt.updatePosition()}},Ke))))},mt}return l()(Fe,[{key:"getTargetFunc",value:function(){var et=this.context.getTargetContainer,St=this.props.target;return St!==void 0?St:et||Ue}},{key:"componentDidMount",value:function(){var et=this,St=this.getTargetFunc();St&&(this.timeout=setTimeout(function(){Je(St(),et),et.updatePosition()}))}},{key:"componentDidUpdate",value:function(et){var St=this.state.prevTarget,jt=this.getTargetFunc(),Mt=null;jt&&(Mt=jt()||null),St!==Mt&&(Ge(this),Mt&&(Je(Mt,this),this.updatePosition()),this.setState({prevTarget:Mt})),(et.offsetTop!==this.props.offsetTop||et.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),Ge(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var et=this.getTargetFunc(),St=this.state.affixStyle;if(et&&St){var jt=this.getOffsetTop(),Mt=this.getOffsetBottom(),Ot=et();if(Ot&&this.placeholderNode){var Bt=$(Ot),Ke=$(this.placeholderNode),de=le(Ke,Bt,jt),se=re(Ke,Bt,Mt);if(de!==void 0&&St.top===de||se!==void 0&&St.bottom===se)return}}this.prepareMeasure()}}]),Fe}(r.Component);lt.contextType=j.b,ct([te()],lt.prototype,"updatePosition",null),ct([te()],lt.prototype,"lazyUpdatePosition",null);var pe=lt,J=i("zAh6"),Y=i("i6bk"),ee=r.createContext(null),fe=ee;function we(){return window}function Ce(gt,at){if(!gt.getClientRects().length)return 0;var Fe=gt.getBoundingClientRect();return Fe.width||Fe.height?at===window?(at=gt.ownerDocument.documentElement,Fe.top-at.clientTop):Fe.top-at.getBoundingClientRect().top:Fe.top}var _e=/#(\S+)$/,he=function(gt){a()(Fe,gt);var at=u()(Fe);function Fe(){var mt;return f()(this,Fe),mt=at.apply(this,arguments),mt.state={activeLink:null},mt.links=[],mt.registerLink=function(et){mt.links.includes(et)||mt.links.push(et)},mt.unregisterLink=function(et){var St=mt.links.indexOf(et);St!==-1&&mt.links.splice(St,1)},mt.getContainer=function(){var et=mt.context.getTargetContainer,St=mt.props.getContainer,jt=St||et||we;return jt()},mt.handleScrollTo=function(et){var St=mt.props,jt=St.offsetTop,Mt=St.targetOffset;mt.setCurrentActiveLink(et);var Ot=mt.getContainer(),Bt=Object(Y.a)(Ot,!0),Ke=_e.exec(et);if(!Ke)return;var de=document.getElementById(Ke[1]);if(!de)return;var se=Ce(de,Ot),ut=Bt+se;ut-=Mt!==void 0?Mt:jt||0,mt.animating=!0,Object(J.a)(ut,{callback:function(){mt.animating=!1},getContainer:mt.getContainer})},mt.saveInkNode=function(et){mt.inkNode=et},mt.setCurrentActiveLink=function(et){var St=mt.state.activeLink,jt=mt.props.onChange;St!==et&&(mt.setState({activeLink:et}),jt&&jt(et))},mt.handleScroll=function(){if(mt.animating)return;var et=mt.props,St=et.offsetTop,jt=et.bounds,Mt=et.targetOffset,Ot=mt.getCurrentAnchor(Mt!==void 0?Mt:St||0,jt);mt.setCurrentActiveLink(Ot)},mt.updateInk=function(){var et=n()(mt),St=et.prefixCls,jt=s.findDOMNode(n()(mt)),Mt=jt.getElementsByClassName("".concat(St,"-link-title-active"))[0];Mt&&(mt.inkNode.style.top="".concat(Mt.offsetTop+Mt.clientHeight/2-4.5,"px"))},mt.render=function(){var et=mt.context,St=et.getPrefixCls,jt=et.direction,Mt=mt.props,Ot=Mt.prefixCls,Bt=Mt.className,Ke=Bt===void 0?"":Bt,de=Mt.style,se=Mt.offsetTop,ut=Mt.affix,qe=Mt.showInkInFixed,me=Mt.children,Wt=mt.state.activeLink,dr=St("anchor",Ot);mt.prefixCls=dr;var vt=h()("".concat(dr,"-ink-ball"),{visible:Wt}),rr=h()(Ke,"".concat(dr,"-wrapper"),v()({},"".concat(dr,"-rtl"),jt==="rtl")),ur=h()(dr,{fixed:!ut&&!qe}),mn=p()({maxHeight:se?"calc(100vh - ".concat(se,"px)"):"100vh"},de),sr=r.createElement("div",{className:rr,style:mn},r.createElement("div",{className:ur},r.createElement("div",{className:"".concat(dr,"-ink")},r.createElement("span",{className:vt,ref:mt.saveInkNode})),me));return r.createElement(fe.Provider,{value:{registerLink:mt.registerLink,unregisterLink:mt.unregisterLink,activeLink:mt.state.activeLink,scrollTo:mt.handleScrollTo,onClick:mt.props.onClick}},ut?r.createElement(pe,{offsetTop:se,target:mt.getContainer},sr):sr)},mt}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,St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,jt=this.props.getCurrentAnchor;if(typeof jt=="function")return jt();var Mt=[],Ot=this.getContainer();if(this.links.forEach(function(Ke){var de=_e.exec(Ke.toString());if(!de)return;var se=document.getElementById(de[1]);if(se){var ut=Ce(se,Ot);ut<et+St&&Mt.push({link:Ke,top:ut})}}),Mt.length){var Bt=Mt.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=j.b;var ye=function(gt){a()(Fe,gt);var at=u()(Fe);function Fe(){var mt;return f()(this,Fe),mt=at.apply(this,arguments),mt.handleClick=function(et){var St=mt.context,jt=St.scrollTo,Mt=St.onClick,Ot=mt.props,Bt=Ot.href,Ke=Ot.title;Mt&&Mt(et,{title:Ke,href:Bt}),jt(Bt)},mt.renderAnchorLink=function(et){var St=et.getPrefixCls,jt=mt.props,Mt=jt.prefixCls,Ot=jt.href,Bt=jt.title,Ke=jt.children,de=jt.className,se=jt.target,ut=St("anchor",Mt),qe=mt.context.activeLink===Ot,me=h()(de,"".concat(ut,"-link"),v()({},"".concat(ut,"-link-active"),qe)),Wt=h()("".concat(ut,"-link-title"),v()({},"".concat(ut,"-link-title-active"),qe));return r.createElement("div",{className:me},r.createElement("a",{className:Wt,href:Ot,title:typeof Bt=="string"?Bt:"",target:se,onClick:mt.handleClick},Bt),Ke)},mt}return l()(Fe,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(et){var St=et.href,jt=this.props.href;St!==jt&&(this.context.unregisterLink(St),this.context.registerLink(jt))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return r.createElement(j.a,null,this.renderAnchorLink)}}]),Fe}(r.Component);ye.defaultProps={href:"#"},ye.contextType=fe;var Le=ye;he.Link=Le;var tt=D.a=he},JuEJ:function(R,D,i){var y=i("bYtY"),p=i("4NO4"),x=y.each,v=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],A=s.normal,b=s.emphasis;A&&A[g]&&(r[g]=r[g]||{},r[g].normal?y.merge(r[g].normal,A[g]):r[g].normal=A[g],A[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=v(r)&&r[s],h=v(c)&&c.textStyle;if(h)for(var g=0,A=p.TEXT_STYLE_OPTIONS.length;g<A;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(!v(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 A=r.links||r.edges;if(A&&!y.isTypedArray(A))for(var b=0;b<A.length;b++)n(A[b]);y.each(r.categories,function(C){l(C)})}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 E=c.data,b=0;b<E.length;b++)y.isArray(E[b])?(n(E[b][0]),n(E[b][1])):n(E[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(C){l(C)})):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){x(a(r.series),function(h){v(h)&&t(h)});var c=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];s&&c.push("valueAxis","categoryAxis","logAxis","timeAxis"),x(c,function(h){x(a(r[h]),function(g){g&&(o(g,"axisLabel"),o(g.axisPointer,"label"))})}),x(a(r.parallel),function(h){var g=h&&h.parallelAxisDefault;o(g,"axisLabel"),o(g&&g.axisPointer,"label")}),x(a(r.calendar),function(h){d(h,"itemStyle"),o(h,"dayLabel"),o(h,"monthLabel"),o(h,"yearLabel")}),x(a(r.radar),function(h){o(h,"name")}),x(a(r.geo),function(h){v(h)&&(n(h),x(a(h.regions),function(g){n(g)}))}),x(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(A){y.isObject(A)&&(d(A,"label"),d(A,"itemStyle"))})}),x(a(r.toolbox),function(h){d(h,"iconStyle"),x(h.feature,function(g){d(g,"iconStyle")})}),o(e(r.axisPointer),"label"),o(e(r.tooltip).axisPointer,"label")}R.exports=u},K2GJ:function(R,D,i){var y=i("fW2E"),p=i("gut8"),x=p.ContextCachedBy,v=[["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,A=e.r==null?.5:e.r;e.global||(h=h*r+u.x,g=g*s+u.y,A=A*c);var b=a.createRadialGradient(h,g,0,h,g,A);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!==x.STYLE_BIND;e.__attrCachedBy=x.STYLE_BIND;for(var g=0;g<v.length;g++){var A=v[g],b=A[0];(h||s[b]!==c[b])&&(e[b]=y(e,b,s[b]||A[1]))}if((h||s.fill!==c.fill)&&(e.fillStyle=s.fill),(h||s.stroke!==c.stroke)&&(e.strokeStyle=s.stroke),(h||s.opacity!==c.opacity)&&(e.globalAlpha=s.opacity==null?1:s.opacity),(h||s.blend!==c.blend)&&(e.globalCompositeOperation=s.blend||"source-over"),this.hasStroke()){var 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<v.length;o++){var n=v[o];n[0]in l||(l[n[0]]=n[1])}m.getGradient=l.getGradient;var t=m;R.exports=t},K3mO:function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("3y9D"),i("WYAk"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.Base,m=x.WordArray,f=p.algo,d=f.MD5,l=f.EvpKDF=v.extend({cfg:v.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(R,D,i){var y=i("bYtY"),p=i("XxSj"),x=y.each;function v(o){if(o){for(var n in o)if(o.hasOwnProperty(n))return!0}}function m(o,n,t){var a={};return x(n,function(u){var r=a[u]=e();x(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)&&v(n[e])&&(a=!0)}),a&&y.each(t,function(e){n.hasOwnProperty(e)&&v(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(A){var b=p.prepareVisualTypes(n[A]);r[A]=b});var s;function c(A){return t.getItemVisual(s,A)}function h(A,b){t.setItemVisual(s,A,b)}u==null?t.each(g):t.each([u],g);function g(A,b){s=u==null?A:b;var w=t.getRawDataItem(s);if(w&&w.visualMap===!1)return;for(var E=a.call(e,A),C=n[E],_=r[E],T=0,S=_.length;T<S;T++){var O=_[T];C[O]&&C[O].applyVisual(A,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(O){return s.getItemVisual(g,O)}function h(O,I){s.setItemVisual(g,O,I)}for(var g;(g=r.next())!=null;){var A=s.getRawDataItem(g);if(A&&A.visualMap===!1)continue;for(var b=a!=null?s.get(a,g,!0):g,w=t(b),E=n[w],C=e[w],_=0,T=C.length;_<T;_++){var S=C[_];E[S]&&E[S].applyVisual(b,c,h)}}}return{progress:u}}D.createVisualMappings=m,D.replaceVisualOption=f,D.applyVisual=d,D.incrementalApplyVisual=l},KCsZ:function(R,D,i){var y=i("bYtY");function p(x){for(var v=0;v<x.length;v++)x[v][1]||(x[v][1]=x[v][0]);return function(m,f,d){for(var l={},o=0;o<x.length;o++){var n=x[o][1];if(f&&y.indexOf(f,n)>=0||d&&y.indexOf(d,n)<0)continue;var t=m.getShallow(n);t!=null&&(l[x[o][0]]=t)}return l}}R.exports=p},KMkd:function(R,D){function i(){this.__data__=[],this.size=0}R.exports=i},KPFz:function(R,D,i){},KQeH:function(R,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(R,D,i){var y=i("OELB"),p=y.parsePercent,x=y.linearMap,v=i("+TT/"),m=i("u3DP"),f=i("bYtY"),d=Math.PI*2,l=Math.PI/180;function o(t,a){return v.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"),A=r.get("radius");f.isArray(A)||(A=[0,A]),f.isArray(g)||(g=[g,g]);var b=p(h.width,e.getWidth()),w=p(h.height,e.getHeight()),E=Math.min(b,w),C=p(g[0],b)+h.x,_=p(g[1],w)+h.y,T=p(A[0],E/2),S=p(A[1],E/2),O=-r.get("startAngle")*l,I=r.get("minAngle")*l,F=0;s.each(c,function(te){!isNaN(te)&&F++});var P=s.getSum(c),B=Math.PI/(P||F)*2,k=r.get("clockwise"),G=r.get("roseType"),M=r.get("stillShowZeroSum"),j=s.getDataExtent(c);j[0]=0;var K=d,z=0,V=O,Q=k?1:-1;if(s.each(c,function(te,$){var le;if(isNaN(te)){s.setItemLayout($,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:k,cx:C,cy:_,r0:T,r:G?NaN:S,viewRect:h});return}G!=="area"?le=P===0&&M?B:te*B:le=d/F,le<I?(le=I,K-=I):z+=te;var re=V+Q*le;s.setItemLayout($,{angle:le,startAngle:V,endAngle:re,clockwise:k,cx:C,cy:_,r0:T,r:G?x(te,j,[T,S]):S,viewRect:h}),V=re}),K<d&&F)if(K<=.001){var X=d/F;s.each(c,function(te,$){if(!isNaN(te)){var le=s.getItemLayout($);le.angle=X,le.startAngle=O+Q*$*X,le.endAngle=O+Q*($+1)*X}})}else B=K/z,V=O,s.each(c,function(te,$){if(!isNaN(te)){var le=s.getItemLayout($),re=le.angle===I?I:te*B;le.startAngle=V,le.endAngle=V+Q*re,V+=Q*re}});m(r,S,h.width,h.height,h.x,h.y)})}R.exports=n},KUOm:function(R,D){function i(y){var p={};y.eachSeriesByType("graph",function(x){var v=x.getCategoriesData(),m=x.getData(),f={};v.each(function(d){var l=v.getName(d);f["ec-"+l]=d;var o=v.getItemModel(d),n=o.get("itemStyle.color")||x.getColorFromPalette(l,p);v.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&&v.setItemVisual(d,t[a],e)}}),v.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],v.getItemVisual(o,n[t]))}})})}R.exports=i},Kagy:function(R,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:""}}}};R.exports=i},KamJ:function(R,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(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="FilterFilled";var n=v.forwardRef(o);D.default=n},KmYQ:function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.pad.ZeroPadding={pad:function(x,v){var m=v*4;x.clamp(),x.sigBytes+=m-(x.sigBytes%m||m)},unpad:function(x){for(var v=x.words,m=x.sigBytes-1,m=x.sigBytes-1;m>=0;m--)if(v[m>>>2]>>>24-m%4*8&255){x.sigBytes=m+1;break}}},y.pad.ZeroPadding})},"KpQ+":function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="ClockCircleOutlined";var n=v.forwardRef(o);D.default=n},KrTs:function(R,D,i){"use strict";var y=i("lSNA"),p=i.n(y),x=i("cDf5"),v=i.n(x),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(S,O){var I={};for(var F in S)Object.prototype.hasOwnProperty.call(S,F)&&O.indexOf(F)<0&&(I[F]=S[F]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,F=Object.getOwnPropertySymbols(S);P<F.length;P++)O.indexOf(F[P])<0&&Object.prototype.propertyIsEnumerable.call(S,F[P])&&(I[F[P]]=S[F[P]]);return I};function s(S){return S?S.toString().split("").reverse().map(function(O){var I=Number(O);return isNaN(I)?O:I}):[]}function c(S,O){for(var I=[],F=0;F<30;F++)I.push(d.createElement("p",{key:F.toString(),className:n()(O,{current:S===F})},F%10));return I}var h=function(O){var I=O.prefixCls,F=O.count,P=O.className,B=O.style,k=O.title,G=O.component,M=G===void 0?"sup":G,j=O.displayComponent,K=O.onAnimated,z=K===void 0?function(){}:K,V=r(O,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),Q=d.useState(!0),X=a()(Q,2),te=X[0],$=X[1],le=d.useState(F),re=a()(le,2),Se=re[0],Re=re[1],Pe=d.useState(F),Je=a()(Pe,2),Ge=Je[0],ct=Je[1],Ue=d.useState(F),ae=a()(Ue,2),lt=ae[0],pe=ae[1],J=d.useContext(e.b),Y=J.getPrefixCls,ee=Y("scroll-number",I);Ge!==F&&($(!0),ct(F)),d.useEffect(function(){pe(Se);var he;return te&&(he=setTimeout(function(){$(!1),Re(F),z()})),function(){he&&clearTimeout(he)}},[te,F,z]);var fe=function(ye,Le){var tt=Math.abs(Number(Se)),gt=Math.abs(Number(lt)),at=Math.abs(s(Se)[Le]),Fe=Math.abs(s(gt)[Le]);return te?10+ye:tt>gt?at>=Fe?10+ye:20+ye:at<=Fe?10+ye:ye},we=function(ye,Le){if(typeof ye=="number"){var tt=fe(ye,Le),gt=te||s(lt)[Le]===void 0;return d.createElement("span",{className:"".concat(ee,"-only"),style:{transition:gt?"none":void 0,msTransform:"translateY(".concat(-tt*100,"%)"),WebkitTransform:"translateY(".concat(-tt*100,"%)"),transform:"translateY(".concat(-tt*100,"%)")},key:Le},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,Le){return we(ye,Le)}).reverse():Se},_e=f()(f()({},V),{style:B,className:n()(ee,P),title:k});return B&&B.borderColor&&(_e.style=f()(f()({},B),{boxShadow:"0 0 0 1px ".concat(B.borderColor," inset")})),j?Object(u.a)(j,{className:n()("".concat(ee,"-custom-component"),j.props&&j.props.className)}):d.createElement(M,_e,Ce())},g=h,A=i("09Wf");function b(S){return A.a.indexOf(S)!==-1}var w=function(O){var I,F=O.className,P=O.prefixCls,B=O.style,k=O.color,G=O.children,M=O.text,j=O.placement,K=j===void 0?"end":j,z=d.useContext(e.b),V=z.getPrefixCls,Q=z.direction,X=V("ribbon",P),te=b(k),$=n()(X,F,"".concat(X,"-placement-").concat(K),(I={},p()(I,"".concat(X,"-rtl"),Q==="rtl"),p()(I,"".concat(X,"-color-").concat(k),te),I)),le={},re={};return k&&!te&&(le.background=k,re.color=k),d.createElement("div",{className:"".concat(X,"-wrapper")},G,d.createElement("div",{className:$,style:f()(f()({},le),B)},M,d.createElement("div",{className:"".concat(X,"-corner"),style:re})))},E=w,C=function(S,O){var I={};for(var F in S)Object.prototype.hasOwnProperty.call(S,F)&&O.indexOf(F)<0&&(I[F]=S[F]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,F=Object.getOwnPropertySymbols(S);P<F.length;P++)O.indexOf(F[P])<0&&Object.prototype.propertyIsEnumerable.call(S,F[P])&&(I[F[P]]=S[F[P]]);return I},_=function(O){var I,F,P=O.prefixCls,B=O.scrollNumberPrefixCls,k=O.children,G=O.status,M=O.text,j=O.color,K=O.count,z=K===void 0?null:K,V=O.overflowCount,Q=V===void 0?99:V,X=O.dot,te=X===void 0?!1:X,$=O.size,le=$===void 0?"default":$,re=O.title,Se=O.offset,Re=O.style,Pe=O.className,Je=O.showZero,Ge=Je===void 0?!1:Je,ct=C(O,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),Ue=d.useContext(e.b),ae=Ue.getPrefixCls,lt=Ue.direction,pe=ae("badge",P),J=function(){var jt=z>Q?"".concat(Q,"+"):z;return jt},Y=function(){return!!G||!!j},ee=function(){var jt=J();return jt==="0"||jt===0},fe=function(){return te&&!ee()||Y()},we=function(){return fe()?"":J()},Ce=function(){return re||(typeof z=="string"||typeof z=="number"?z:void 0)},_e=function(){return lt==="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 jt=we(),Mt=jt==null||jt==="";return(Mt||ee()&&!Ge)&&!fe()},ye=function(){var jt=he();return jt||!M?null:d.createElement("span",{className:"".concat(pe,"-status-text")},M)},Le=function(){var jt=z;return!jt||v()(jt)!=="object"?void 0:Object(u.a)(jt,{style:f()(f()({},_e()),jt.props&&jt.props.style)})},tt=function(){var jt,Mt=ae("scroll-number",B),Ot=we(),Bt=fe(),Ke=he(),de=n()((jt={},p()(jt,"".concat(pe,"-dot"),Bt),p()(jt,"".concat(pe,"-count"),!Bt),p()(jt,"".concat(pe,"-count-sm"),le==="small"),p()(jt,"".concat(pe,"-multiple-words"),!Bt&&z&&z.toString&&z.toString().length>1),p()(jt,"".concat(pe,"-status-").concat(G),!!G),p()(jt,"".concat(pe,"-status-").concat(j),b(j)),jt)),se=_e();return j&&!b(j)&&(se=se||{},se.background=j),Ke?null:d.createElement(g,{prefixCls:Mt,"data-show":!Ke,className:de,count:Ot,displayComponent:Le(),title:Ce(),style:se,key:"scrollNumber"})},gt=n()((I={},p()(I,"".concat(pe,"-status-dot"),Y()),p()(I,"".concat(pe,"-status-").concat(G),!!G),p()(I,"".concat(pe,"-status-").concat(j),b(j)),I)),at={};j&&!b(j)&&(at.background=j);var Fe=n()(Pe,pe,(F={},p()(F,"".concat(pe,"-status"),Y()),p()(F,"".concat(pe,"-not-a-wrapper"),!k),p()(F,"".concat(pe,"-rtl"),lt==="rtl"),F));if(!k&&Y()){var mt=_e(),et=mt&&mt.color;return d.createElement("span",f()({},ct,{className:Fe,style:mt}),d.createElement("span",{className:gt,style:at}),d.createElement("span",{style:{color:et},className:"".concat(pe,"-status-text")},M))}return d.createElement("span",f()({},ct,{className:Fe}),k,d.createElement(l.a,{component:"",showProp:"data-show",transitionName:k?"".concat(pe,"-zoom"):"",transitionAppear:!0},tt()),ye())};_.Ribbon=E;var T=D.a=_},Kvyg:function(R,D,i){},KxFI:function(R,D,i){},KxfA:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=x.isTypedArray,m=x.extend,f=x.assert,d=x.each,l=x.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 A(k,G){u.isInstance(k)||(k=u.seriesDataToSource(k)),this._source=k;var M=this._data=k.data,j=k.sourceFormat;j===s&&(this._offset=0,this._dimSize=G,this._data=M);var K=w[j===c?j+"_"+k.seriesLayoutBy:j];m(this,K)}var b=A.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(k){return this._data[k+this._source.startIndex]},appendData:_},arrayRows_row:{pure:!0,count:function(){var k=this._data[0];return k?Math.max(0,k.length-this._source.startIndex):0},getItem:function(k){k+=this._source.startIndex;for(var G=[],M=this._data,j=0;j<M.length;j++){var K=M[j];G.push(K?K[k]:null)}return G},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:E,getItem:C,appendData:_},keyedColumns:{pure:!0,count:function(){var k=this._source.dimensionsDefine[0].name,G=this._data[k];return G?G.length:0},getItem:function(k){for(var G=[],M=this._source.dimensionsDefine,j=0;j<M.length;j++){var K=this._data[M[j].name];G.push(K?K[k]:null)}return G},appendData:function(k){var G=this._data;d(k,function(M,j){for(var K=G[j]||(G[j]=[]),z=0;z<(M||[]).length;z++)K.push(M[z])})}},original:{count:E,getItem:C,appendData:_},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(k,G){k=k-this._offset,G=G||[];for(var M=this._dimSize*k,j=0;j<this._dimSize;j++)G[j]=this._data[M+j];return G},appendData:function(k){this._data=k},clean:function(){this._offset+=this.count(),this._data=null}}};function E(){return this._data.length}function C(k){return this._data[k]}function _(k){for(var G=0;G<k.length;G++)this._data.push(k[G])}var T={arrayRows:S,objectRows:function(k,G,M,j){return M!=null?k[j]:k},keyedColumns:S,original:function(k,G,M,j){var K=n(k);return M==null||!(K instanceof Array)?K:K[M]},typedArray:S};function S(k,G,M,j){return M!=null?k[M]:k}var O={arrayRows:I,objectRows:function(k,G,M,j){return F(k[G],this._dimensionInfos[G])},keyedColumns:I,original:function(k,G,M,j){var K=k&&(k.value==null?k:k.value);return!this._rawData.pure&&t(k)&&(this.hasItemOption=!0),F(K instanceof Array?K[j]:K,this._dimensionInfos[G])},typedArray:function(k,G,M,j){return k[j]}};function I(k,G,M,j){return F(k[j],this._dimensionInfos[G])}function F(k,G){var M=G&&G.type;if(M==="ordinal"){var j=G&&G.ordinalMeta;return j?j.parseAndCollect(k):k}return M==="time"&&typeof k!="number"&&k!=null&&k!=="-"&&(k=+e(k)),k==null||k===""?NaN:+k}function P(k,G,M){if(!k)return;var j=k.getRawDataItem(G);if(j==null)return;var K=k.getProvider().getSource().sourceFormat,z,V,Q=k.getDimensionInfo(M);return Q&&(z=Q.name,V=Q.index),T[K](j,G,V,z)}function B(k,G,M){if(!k)return;var j=k.getProvider().getSource().sourceFormat;if(j!==h&&j!==g)return;var K=k.getRawDataItem(G);if(j===h&&!l(K)&&(K=null),K)return K[M]}D.DefaultDataProvider=A,D.defaultDimValueGetters=O,D.retrieveRawValue=P,D.retrieveRawAttr=B},L0Ub:function(R,D,i){var y=i("bYtY"),p=y.each,x=y.createHashMap,v=y.assert,m=i("Tghj"),f=m.__DEV__,d=x(["tooltip","label","itemName","itemId","seriesName"]);function l(a){var e={},u=e.encode={},r=x(),s=[],c=[],h=e.userOutput={dimensionNames:a.dimensions.slice(),encode:{}};p(a.dimensions,function(E){var C=a.getDimensionInfo(E),_=C.coordDim;if(_){var T=C.coordDimIndex;o(u,_)[T]=E,C.isExtraCoord||(r.set(_,1),t(C.type)&&(s[0]=E),o(h.encode,_)[T]=C.index),C.defaultTooltip&&c.push(E)}d.each(function(S,O){var I=o(u,O),F=C.otherDims[O];F!=null&&F!==!1&&(I[F]=C.name)})});var g=[],A={};r.each(function(E,C){var _=u[C];A[C]=_[0],g=g.concat(_)}),e.dataDimsOnCoord=g,e.encodeFirstDimNotExtra=A;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(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("HjIi");i("HM/N"),i("9eas"),i("eS4l"),i("y4/Y"),i("as94"),y.registerLayout(p.curry(x,"bar")),y.extendComponentView({type:"polar"})},L41K:function(R,D,i){"use strict";i.d(D,"a",function(){return z});var y=i("pVnL"),p=i.n(y),x=i("lSNA"),v=i.n(x),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"),A=i("vuIU"),b=i("Ji7U"),w=i("LK+K"),E=i("Zm9Q"),C=i("TSYQ"),_=i.n(C),T=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function S(V){return typeof V=="string"}var O=function(V){Object(b.a)(X,V);var Q=Object(w.a)(X);function X(){var te;return Object(g.a)(this,X),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(A.a)(X,[{key:"renderIconNode",value:function(){var $,le=this.props,re=le.prefixCls,Se=le.progressDot,Re=le.stepIcon,Pe=le.stepNumber,Je=le.status,Ge=le.title,ct=le.description,Ue=le.icon,ae=le.iconPrefix,lt=le.icons,pe,J=_()("".concat(re,"-icon"),"".concat(ae,"icon"),($={},Object(c.a)($,"".concat(ae,"icon-").concat(Ue),Ue&&S(Ue)),Object(c.a)($,"".concat(ae,"icon-check"),!Ue&&Je==="finish"&&(lt&&!lt.finish||!lt)),Object(c.a)($,"".concat(ae,"icon-cross"),!Ue&&Je==="error"&&(lt&&!lt.error||!lt)),$)),Y=e.createElement("span",{className:"".concat(re,"-icon-dot")});return Se?typeof Se=="function"?pe=e.createElement("span",{className:"".concat(re,"-icon")},Se(Y,{index:Pe-1,status:Je,title:Ge,description:ct})):pe=e.createElement("span",{className:"".concat(re,"-icon")},Y):Ue&&!S(Ue)?pe=e.createElement("span",{className:"".concat(re,"-icon")},Ue):lt&<.finish&&Je==="finish"?pe=e.createElement("span",{className:"".concat(re,"-icon")},lt.finish):lt&<.error&&Je==="error"?pe=e.createElement("span",{className:"".concat(re,"-icon")},lt.error):Ue||Je==="finish"||Je==="error"?pe=e.createElement("span",{className:J}):pe=e.createElement("span",{className:"".concat(re,"-icon")},Pe),Re&&(pe=Re({index:Pe-1,status:Je,title:Ge,description:ct,node:pe})),pe}},{key:"render",value:function(){var $,le=this.props,re=le.className,Se=le.prefixCls,Re=le.style,Pe=le.active,Je=le.status,Ge=Je===void 0?"wait":Je,ct=le.iconPrefix,Ue=le.icon,ae=le.wrapperStyle,lt=le.stepNumber,pe=le.disabled,J=le.description,Y=le.title,ee=le.subTitle,fe=le.progressDot,we=le.stepIcon,Ce=le.tailContent,_e=le.icons,he=le.stepIndex,ye=le.onStepClick,Le=le.onClick,tt=Object(h.a)(le,T),gt=_()("".concat(Se,"-item"),"".concat(Se,"-item-").concat(Ge),re,($={},Object(c.a)($,"".concat(Se,"-item-custom"),Ue),Object(c.a)($,"".concat(Se,"-item-active"),Pe),Object(c.a)($,"".concat(Se,"-item-disabled"),pe===!0),$)),at=Object(s.a)({},Re),Fe={};return ye&&!pe&&(Fe.role="button",Fe.tabIndex=0,Fe.onClick=this.onClick),e.createElement("div",Object.assign({},tt,{className:gt,style:at}),e.createElement("div",Object.assign({onClick:Le},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)),J&&e.createElement("div",{className:"".concat(Se,"-item-description")},J))))}}]),X}(e.Component),I=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],F=function(V){Object(b.a)(X,V);var Q=Object(w.a)(X);function X(){var te;return Object(g.a)(this,X),te=Q.apply(this,arguments),te.onStepClick=function($){var le=te.props,re=le.onChange,Se=le.current;re&&Se!==$&&re($)},te}return Object(A.a)(X,[{key:"render",value:function(){var $,le=this,re=this.props,Se=re.prefixCls,Re=re.style,Pe=Re===void 0?{}:Re,Je=re.className,Ge=re.children,ct=re.direction,Ue=re.type,ae=re.labelPlacement,lt=re.iconPrefix,pe=re.status,J=re.size,Y=re.current,ee=re.progressDot,fe=re.stepIcon,we=re.initial,Ce=re.icons,_e=re.onChange,he=Object(h.a)(re,I),ye=Ue==="navigation",Le=ee?"vertical":ae,tt=_()(Se,"".concat(Se,"-").concat(ct),Je,($={},Object(c.a)($,"".concat(Se,"-").concat(J),J),Object(c.a)($,"".concat(Se,"-label-").concat(Le),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(E.a)(Ge).map(function(gt,at){var Fe=we+at,mt=Object(s.a)({stepNumber:"".concat(Fe+1),stepIndex:Fe,key:Fe,prefixCls:Se,iconPrefix:lt,wrapperStyle:Pe,progressDot:ee,stepIcon:fe,icons:Ce,onStepClick:_e&&le.onStepClick},gt.props);return pe==="error"&&at===Y-1&&(mt.className="".concat(Se,"-next-error")),gt.props.status||(Fe===Y?mt.status=pe:Fe<Y?mt.status="finish":mt.status="wait"),mt.active=Fe===Y,Object(e.cloneElement)(gt,mt)}))}}]),X}(u.a.Component);F.Step=O,F.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var P=F,B=i("NAnI"),k=i.n(B),G=i("V/uB"),M=i.n(G),j=i("H84U"),K=i("CFYs"),z=function(V){n()(X,V);var Q=a()(X);function X(){var te;return f()(this,X),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,Ge=Pe.size,ct=_()(te.props.className,v()({},"".concat(Se,"-rtl"),re==="rtl")),Ue={finish:e.createElement(k.a,{className:"".concat(Se,"-finish-icon")}),error:e.createElement(M.a,{className:"".concat(Se,"-error-icon")})},ae=function(pe){var J=pe.node,Y=pe.status;if(Y==="process"&&Je!==void 0){var ee=Ge==="small"?32:40,fe=e.createElement("div",{className:"".concat(Se,"-progress-icon")},e.createElement(K.a,{type:"circle",percent:Je,width:ee,strokeWidth:4,format:function(){return null}}),J);return fe}return J};return e.createElement(P,p()({icons:Ue},Object(r.default)(te.props,["progress"]),{stepIcon:ae,prefixCls:Se,iconPrefix:Re,className:ct}))},te}return l()(X,[{key:"render",value:function(){return e.createElement(j.a,null,this.renderSteps)}}]),X}(e.Component);z.Step=P.Step,z.defaultProps={current:0}},L5E0:function(R,D){var i=["itemStyle","borderColor"];function y(p,x){var v=p.get("color");p.eachRawSeriesByType("boxplot",function(m){var f=v[m.seriesIndex%v.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)})})})}R.exports=y},L8xA:function(R,D){function i(y){var p=this.__data__,x=p.delete(y);return this.size=p.size,x}R.exports=i},LBfv:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=p.createHashMap,v=p.each;y.registerProcessor({getTargetSeries:function(m){var f=x();return m.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(l,o,n){var t=n.getAxisProxy(l.name,o);v(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(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(A,b){if(!(A instanceof b))throw new TypeError("Cannot call a class as a function")}function p(A,b){for(var w=0;w<b.length;w++){var E=b[w];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(A,E.key,E)}}function x(A,b,w){return b&&p(A.prototype,b),w&&p(A,w),A}var v=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 A(){y(this,A),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 x(A,[{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 E;w.stopPropagation(),w.preventDefault();switch(w.type){case"touchstart":E=this._touchStart;break;case"touchmove":E=this._touchMove;break;case"touchend":case"touchcancel":E=this._touchEnd;break}for(var C=0;C<w.changedTouches.length;C++){var _=w.changedTouches[C];E.call(this,_.identifier,_.clientX,_.clientY)}}},{key:"_touchStart",value:function(w,E,C){if(this._hasDetectedGesture()||this._state===v){this._ignored.push(w);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>r){this._state=v,this._ignored.push(w);return}if(this._waitingRelease){this._state=v,this._ignored.push(w);return}this._tracked.push({id:w,started:Date.now(),active:!0,firstX:E,firstY:C,lastX:E,lastY:C,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=v}}},{key:"_touchMove",value:function(w,E,C){var _=this._tracked.find(function(P){return P.id===w});if(_===void 0)return;_.lastX=E,_.lastY=C;var T=E-_.firstX,S=C-_.firstY;if((_.firstX!==_.lastX||_.firstY!==_.lastY)&&(_.angle=Math.atan2(S,T)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(T,S)<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 O=this._tracked.find(function(P){return P.id!==w}),I=Math.hypot(O.firstX-O.lastX,O.firstY-O.lastY);if(I>e){var F=Math.abs(_.angle-O.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,E,C){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=v),!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=v),this._tracked.some(function(S){return Date.now()-S.started>s})&&(this._state=v);var _=this._tracked.find(function(S){return S.id===w});if(_.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==v)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var T=0;T<this._tracked.length;T++)this._tracked[T].active&&this._ignored.push(this._tracked[T].id);this._tracked=[],this._state=v,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===v||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(),E=Math.abs(w.x),C=Math.abs(w.y),_=this._getAverageDistance(),T=Math.abs(Math.hypot(_.first.x,_.first.y)-Math.hypot(_.last.x,_.last.y));C<T&&E<T?this._state=t:this._state=n,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(w){var E={type:this._stateToGesture(this._state)},C=this._getPosition(),_=C.last;w==="gesturestart"&&(_=C.first);switch(this._state){case n:case t:_=C.first;break}if(E.clientX=_.x,E.clientY=_.y,this._state===t){var T=this._getAverageDistance();w==="gesturestart"?(E.magnitudeX=T.first.x,E.magnitudeY=T.first.y):(E.magnitudeX=T.last.x,E.magnitudeY=T.last.y)}else if(this._state===n)if(w==="gesturestart")E.magnitudeX=0,E.magnitudeY=0;else{var S=this._getAverageMovement();E.magnitudeX=S.x,E.magnitudeY=S.y}var O=new CustomEvent(w,{detail:E});this._target.dispatchEvent(O)}},{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,E=0,C=0,_=0,T=0,S=0;S<this._tracked.length;S++)E+=this._tracked[S].firstX,C+=this._tracked[S].firstY,_+=this._tracked[S].lastX,T+=this._tracked[S].lastY;return{first:{x:E/w,y:C/w},last:{x:_/w,y:T/w}}}},{key:"_getAverageMovement",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture movement, no tracked touches");var w,E;w=E=0;for(var C=this._tracked.length,_=0;_<this._tracked.length;_++)w+=this._tracked[_].lastX-this._tracked[_].firstX,E+=this._tracked[_].lastY-this._tracked[_].firstY;return{x:w/C,y:E/C}}},{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],E=this._tracked[this._tracked.length-1],C=Math.abs(E.firstX-w.firstX),_=Math.abs(E.firstY-w.firstY),T=Math.abs(E.lastX-w.lastX),S=Math.abs(E.lastY-w.lastY);return{first:{x:C,y:_},last:{x:T,y:S}}}}]),A}();D.default=g},LPTA:function(R,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(R,D,i){var y=i("ProS");i("QzjZ"),i("vL6D"),i("xiyX"),i("y4/Y"),i("8Th4"),y.extendComponentView({type:"single"})},LSTS:function(R,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"),x=f(p),v=i("17x9"),m=f(v);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,A=s.pageYOffset!==void 0?s.pageYOffset:g.scrollTop;this.props.isReverse?h=A:h=this.calculateOffset(r,A)}else this.props.isReverse?h=c.scrollTop:h=r.scrollHeight-c.scrollTop-c.clientHeight;h<Number(this.props.threshold)&&r&&r.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=c.scrollHeight,this.beforeScrollTop=c.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(r,s){return r?this.calculateTopPosition(r)+(r.offsetHeight-s-window.innerHeight):0}},{key:"calculateTopPosition",value:function(r){return r?r.offsetTop+this.calculateTopPosition(r.offsetParent):0}},{key:"render",value:function(){var r=this,s=this.filterProps(this.props),c=s.children,h=s.element,g=s.hasMore,A=s.initialLoad,b=s.isReverse,w=s.loader,E=s.loadMore,C=s.pageStart,_=s.ref,T=s.threshold,S=s.useCapture,O=s.useWindow,I=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,_&&_(B)};var P=[c];return g&&(w?b?P.unshift(w):P.push(w):this.defaultLoader&&(b?P.unshift(this.defaultLoader):P.push(this.defaultLoader))),x.default.createElement(h,F,P)}}]),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,R.exports=D.default},LXxW:function(R,D){function i(y,p){for(var x=-1,v=y==null?0:y.length,m=0,f=[];++x<v;){var d=y[x];p(d,x,y)&&(f[m++]=d)}return f}R.exports=i},Lerx:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("Mds0"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},Llu2:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="DeliveredProcedureOutlined";var d=D.a=p.forwardRef(f)},Lo0S:function(R,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 x=function(){};D.Info=x;var v=function(){};D.Warn=v;var m=function(){};D.Error=m;function f(l){if(typeof l=="undefined"?l=y:y=l,D.Debug=p=D.Info=x=D.Warn=v=D.Error=m=function(){},typeof window.console!="undefined")switch(l){case"debug":D.Debug=p=console.debug.bind(window.console);case"info":D.Info=x=console.info.bind(window.console);case"warn":D.Warn=v=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(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="InboxOutlined";var d=D.a=p.forwardRef(f)},Lyp1:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="QuestionCircleOutlined";var d=D.a=p.forwardRef(f)},LzGr:function(R,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(R,D,i){var y=i("T4UG"),p=i("MwEJ"),x=y.extend({type:"series.__base_bar__",getInitialData:function(v,m){return p(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(v){var m=this.coordinateSystem;if(m){var f=m.dataToPoint(m.clampData(v)),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:{}}});R.exports=x},MEGo:function(R,D,i){var y=i("4fz+"),p=i("Dagg"),x=i("dqUG"),v=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,A=s.trim,b=s.each,w=/[\s,]+/;function E(Q){if(c(Q)){var X=new DOMParser;Q=X.parseFromString(Q,"text/xml")}for(Q.nodeType===9&&(Q=Q.firstChild);Q.nodeName.toLowerCase()!=="svg"||Q.nodeType!==1;)Q=Q.nextSibling;return Q}function C(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}C.prototype.parse=function(Q,X){X=X||{};var te=E(Q);if(!te)throw new Error("Illegal svg");var $=new y;this._root=$;var le=te.getAttribute("viewBox")||"",re=parseFloat(te.getAttribute("width")||X.width),Se=parseFloat(te.getAttribute("height")||X.height);isNaN(re)&&(re=null),isNaN(Se)&&(Se=null),P(te,$,null,!0);for(var Re=te.firstChild;Re;)this._parseNode(Re,$),Re=Re.nextSibling;var Pe,Je;if(le){var Ge=A(le).split(w);Ge.length>=4&&(Pe={x:parseFloat(Ge[0]||0),y:parseFloat(Ge[1]||0),width:parseFloat(Ge[2]),height:parseFloat(Ge[3])})}if(Pe&&re!=null&&Se!=null&&(Je=z(Pe,re,Se),!X.ignoreViewBox)){var ct=$;$=new y,$.add(ct),ct.scale=Je.scale.slice(),ct.position=Je.position.slice()}return!X.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}},C.prototype._parseNode=function(Q,X){var te=Q.nodeName.toLowerCase();te==="defs"?this._isDefine=!0:te==="text"&&(this._isText=!0);var $;if(this._isDefine){var le=T[te];if(le){var re=le.call(this,Q),Se=Q.getAttribute("id");Se&&(this._defs[Se]=re)}}else{var le=_[te];le&&($=le.call(this,Q,X),X.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)},C.prototype._parseText=function(Q,X){if(Q.nodeType===1){var te=Q.getAttribute("dx")||0,$=Q.getAttribute("dy")||0;this._textX+=parseFloat(te),this._textY+=parseFloat($)}var le=new x({style:{text:Q.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});O(X,le),P(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,X.add(le),le};var _={g:function(X,te){var $=new y;return O(te,$),P(X,$,this._defs),$},rect:function(X,te){var $=new m;return O(te,$),P(X,$,this._defs),$.setShape({x:parseFloat(X.getAttribute("x")||0),y:parseFloat(X.getAttribute("y")||0),width:parseFloat(X.getAttribute("width")||0),height:parseFloat(X.getAttribute("height")||0)}),$},circle:function(X,te){var $=new v;return O(te,$),P(X,$,this._defs),$.setShape({cx:parseFloat(X.getAttribute("cx")||0),cy:parseFloat(X.getAttribute("cy")||0),r:parseFloat(X.getAttribute("r")||0)}),$},line:function(X,te){var $=new d;return O(te,$),P(X,$,this._defs),$.setShape({x1:parseFloat(X.getAttribute("x1")||0),y1:parseFloat(X.getAttribute("y1")||0),x2:parseFloat(X.getAttribute("x2")||0),y2:parseFloat(X.getAttribute("y2")||0)}),$},ellipse:function(X,te){var $=new f;return O(te,$),P(X,$,this._defs),$.setShape({cx:parseFloat(X.getAttribute("cx")||0),cy:parseFloat(X.getAttribute("cy")||0),rx:parseFloat(X.getAttribute("rx")||0),ry:parseFloat(X.getAttribute("ry")||0)}),$},polygon:function(X,te){var $=X.getAttribute("points");$&&($=I($));var le=new o({shape:{points:$||[]}});return O(te,le),P(X,le,this._defs),le},polyline:function(X,te){var $=new l;O(te,$),P(X,$,this._defs);var le=X.getAttribute("points");le&&(le=I(le));var re=new n({shape:{points:le||[]}});return re},image:function(X,te){var $=new p;return O(te,$),P(X,$,this._defs),$.setStyle({image:X.getAttribute("xlink:href"),x:X.getAttribute("x"),y:X.getAttribute("y"),width:X.getAttribute("width"),height:X.getAttribute("height")}),$},text:function(X,te){var $=X.getAttribute("x")||0,le=X.getAttribute("y")||0,re=X.getAttribute("dx")||0,Se=X.getAttribute("dy")||0;this._textX=parseFloat($)+parseFloat(re),this._textY=parseFloat(le)+parseFloat(Se);var Re=new y;return O(te,Re),P(X,Re,this._defs),Re},tspan:function(X,te){var $=X.getAttribute("x"),le=X.getAttribute("y");$!=null&&(this._textX=parseFloat($)),le!=null&&(this._textY=parseFloat(le));var re=X.getAttribute("dx")||0,Se=X.getAttribute("dy")||0,Re=new y;return O(te,Re),P(X,Re,this._defs),this._textX+=re,this._textY+=Se,Re},path:function(X,te){var $=X.getAttribute("d")||"",le=r($);return O(te,le),P(X,le,this._defs),le}},T={lineargradient:function(X){var te=parseInt(X.getAttribute("x1")||0,10),$=parseInt(X.getAttribute("y1")||0,10),le=parseInt(X.getAttribute("x2")||10,10),re=parseInt(X.getAttribute("y2")||0,10),Se=new t(te,$,le,re);return S(X,Se),Se},radialgradient:function(X){}};function S(Q,X){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";X.addColorStop($,le)}te=te.nextSibling}}function O(Q,X){Q&&Q.__inheritedStyle&&(X.__inheritedStyle||(X.__inheritedStyle={}),g(X.__inheritedStyle,Q.__inheritedStyle))}function I(Q){for(var X=A(Q).split(w),te=[],$=0;$<X.length;$+=2){var le=parseFloat(X[$]),re=parseFloat(X[$+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 P(Q,X,te,$){var le=X.__inheritedStyle||{},re=X.type==="text";if(Q.nodeType===1&&(M(Q,X),h(le,K(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";X.style=X.style||new a;var Ge=X.style;le.fill!=null&&Ge.set(Pe,k(le.fill,te)),le.stroke!=null&&Ge.set(Je,k(le.stroke,te)),b(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(ct){var Ue=ct==="lineWidth"&&re?"textStrokeWidth":ct;le[ct]!=null&&Ge.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&&Ge.set(ct,le[ct])}),le.lineDash&&(X.style.lineDash=A(le.lineDash).split(w)),Ge[Je]&&Ge[Je]!=="none"&&(X[Je]=!0),X.__inheritedStyle=le}var B=/url\(\s*#(.*?)\)/;function k(Q,X){var te=X&&Q&&Q.match(B);if(te){var $=A(te[1]),le=X[$];return le}return Q}var G=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function M(Q,X){var te=Q.getAttribute("transform");if(te){te=te.replace(/,/g," ");var $=null,le=[];te.replace(G,function(Pe,Je,Ge){le.push(Je,Ge)});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=A(Se).split(w),e.translate($,$,[parseFloat(Se[0]),parseFloat(Se[1]||0)]);break;case"scale":Se=A(Se).split(w),e.scale($,$,[parseFloat(Se[0]),parseFloat(Se[1]||Se[0])]);break;case"rotate":Se=A(Se).split(w),e.rotate($,$,parseFloat(Se[0]));break;case"skew":Se=A(Se).split(w),console.warn("Skew transform is not supported yet");break;case"matrix":var Se=A(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}}X.setLocalTransform($)}}var j=/([^\s:;]+)\s*:\s*([^:;]+)/g;function K(Q){var X=Q.getAttribute("style"),te={};if(!X)return te;var $={};j.lastIndex=0;for(var le;(le=j.exec(X))!=null;)$[le[1]]=le[2];for(var re in F)F.hasOwnProperty(re)&&$[re]!=null&&(te[F[re]]=$[re]);return te}function z(Q,X,te){var $=X/Q.width,le=te/Q.height,re=Math.min($,le),Se=[re,re],Re=[-(Q.x+Q.width/2)*re+X/2,-(Q.y+Q.height/2)*re+te/2];return{scale:Se,position:Re}}function V(Q,X){var te=new C;return te.parse(Q,X)}D.parseXML=E,D.makeViewBoxTransform=z,D.parseSVG=V},MFOe:function(R,D,i){(function(y){var p=f(),x=d(),v=l(),m=typeof window!="undefined"?window:y;R.exports={assign:p,create:x,trim:v,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,A,b){for(var w=1;w<arguments.length;w++)t(Object(arguments[w]),function(E,C){h[C]=E});return h}}function d(){if(Object.create)return function(g,A,b,w){var E=n(arguments,1);return p.apply(this,[Object.create(g)].concat(E))};var c=function(){};return function(g,A,b,w){var E=n(arguments,1);return c.prototype=g,p.apply(this,[new c].concat(E))}}function l(){return String.prototype.trim?function(h){return String.prototype.trim.call(h)}:function(h){return h.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function 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,A){return h(g,A),!1})}function a(c,h){var g=u(c)?[]:{};return e(c,function(A,b){return g[b]=h(A,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 A in c)if(c.hasOwnProperty(A)&&h(c[A],A))return c[A]}function u(c){return c!=null&&typeof c!="function"&&typeof c.length=="number"}function r(c){return c&&{}.toString.call(c)==="[object Function]"}function s(c){return c&&{}.toString.call(c)==="[object Object]"}}).call(this,i("yLpj"))},MH26:function(R,D,i){var y=i("bYtY"),p=i("YXkt"),x=i("OELB"),v=i("kj2x"),m=i("c8qY"),f=i("iPDy"),d=i("7hqr"),l=d.getStackedDimension,o=function(s,c,h,g){var A=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,E;if(g.yAxis!=null||g.xAxis!=null)w=c.getAxis(g.yAxis!=null?"y":"x"),E=y.retrieve(g.yAxis,g.xAxis);else{var C=v.getAxisInfo(g,A,c,s);w=C.valueAxis;var _=l(A,C.valueDataDim);E=v.numCalculate(A,_,b)}var T=w.dim==="x"?0:1,S=1-T,O=y.clone(g),I={};O.type=null,O.coord=[],I.coord=[],O.coord[S]=-Infinity,I.coord[S]=Infinity;var F=h.get("precision");F>=0&&typeof E=="number"&&(E=+E.toFixed(Math.min(F,20))),O.coord[T]=I.coord[T]=E,g=[O,I,{type:b,valueIndex:g.valueIndex,value:E}]}return g=[v.dataTransform(s,g[0]),v.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 A=1-s,b=g.dimensions[s];return n(c[A])&&n(h[A])&&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 v.dataFilter(s,c[0])&&v.dataFilter(s,c[1])}function e(s,c,h,g,A){var b=g.coordinateSystem,w=s.getItemModel(c),E,C=x.parsePercent(w.get("x"),A.getWidth()),_=x.parsePercent(w.get("y"),A.getHeight());if(!isNaN(C)&&!isNaN(_))E=[C,_];else{if(g.getMarkerPosition)E=g.getMarkerPosition(s.getValues(s.dimensions,c));else{var T=b.dimensions,S=s.get(T[0],c),O=s.get(T[1],c);E=b.dataToPoint([S,O])}if(b.type==="cartesian2d"){var I=b.getAxis("x"),F=b.getAxis("y"),T=b.dimensions;n(s.get(T[0],c))?E[0]=I.toGlobalCoord(I.getExtent()[h?0:1]):n(s.get(T[1],c))&&(E[1]=F.toGlobalCoord(F.getExtent()[h?0:1]))}isNaN(C)||(E[0]=C),isNaN(_)||(E[1]=_)}s.setItemLayout(c,E)}var u=f.extend({type:"markLine",updateTransform:function(s,c,h){c.eachSeries(function(g){var A=g.markLineModel;if(A){var b=A.getData(),w=A.__from,E=A.__to;w.each(function(C){e(w,C,!0,g,h),e(E,C,!1,g,h)}),b.each(function(C){b.setItemLayout(C,[w.getItemLayout(C),E.getItemLayout(C)])}),this.markerGroupMap.get(g.id).updateLayout()}},this)},renderSeries:function(s,c,h,g){var A=s.coordinateSystem,b=s.id,w=s.getData(),E=this.markerGroupMap,C=E.get(b)||E.set(b,new m);this.group.add(C.group);var _=r(A,s,c),T=_.from,S=_.to,O=_.line;c.__from=T,c.__to=S,c.setData(O);var I=c.get("symbol"),F=c.get("symbolSize");y.isArray(I)||(I=[I,I]),typeof F=="number"&&(F=[F,F]),_.from.each(function(B){P(T,B,!0),P(S,B,!1)}),O.each(function(B){var k=O.getItemModel(B).get("lineStyle.color");O.setItemVisual(B,{color:k||T.getItemVisual(B,"color")}),O.setItemLayout(B,[T.getItemLayout(B),S.getItemLayout(B)]),O.setItemVisual(B,{fromSymbolSize:T.getItemVisual(B,"symbolSize"),fromSymbol:T.getItemVisual(B,"symbol"),toSymbolSize:S.getItemVisual(B,"symbolSize"),toSymbol:S.getItemVisual(B,"symbol")})}),C.updateData(O),_.line.eachItemGraphicEl(function(B,k){B.traverse(function(G){G.dataModel=c})});function P(B,k,G){var M=B.getItemModel(k);e(B,k,G,s,g),B.setItemVisual(k,{symbolSize:M.get("symbolSize")||F[G?0:1],symbol:M.get("symbol",!0)||I[G?0:1],color:M.get("itemStyle.color")||w.getVisual("color")})}C.__keep=!0,C.group.silent=c.get("silent")||s.get("silent")}});function r(s,c,h){var g;s?g=y.map(s&&s.dimensions,function(_){var T=c.getData().getDimensionInfo(c.getData().mapDimension(_))||{};return y.defaults({name:_},T)}):g=[{name:"value",type:"float"}];var A=new p(g,h),b=new p(g,h),w=new p([],h),E=y.map(h.get("data"),y.curry(o,c,s,h));s&&(E=y.filter(E,y.curry(a,s)));var C=s?v.dimValueGetter:function(_){return _.value};return A.initData(y.map(E,function(_){return _[0]}),null,C),b.initData(y.map(E,function(_){return _[1]}),null,C),w.initData(y.map(E,function(_){return _[2]})),w.hasItemOption=!0,{from:A,to:b,line:w}}R.exports=u},MHoB:function(R,D,i){var y=i("bYtY"),p=i("6uqw"),x=i("OELB"),v=[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]=v[0]),(l[1]==null||isNaN(l[1]))&&(l[1]=v[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=x.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,A){t.push({value:g,color:l(g,A)})}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;R.exports=d},MHtr:function(R,D,i){var y=i("bYtY");function p(v,m){var f=this.getAxis(),d=m instanceof Array?m[0]:m,l=(v instanceof Array?v[0]:v)/2;return f.type==="category"?f.getBandWidth():Math.abs(f.dataToCoord(d-l)-f.dataToCoord(d+l))}function x(v){var m=v.getRect();return{coordSys:{type:"singleAxis",x:m.x,y:m.y,width:m.width,height:m.height},api:{coord:function(f){return v.dataToPoint(f)},size:y.bind(p,v)}}}R.exports=x},MJZm:function(R,D,i){"use strict";var y=i("lSNA"),p=i.n(y),x=i("pVnL"),v=i.n(x),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"),A=i("ODXe"),b=i("Ff2n"),w=i("+nKL"),E=i("HTfv"),C=i("lr6o"),_=function(Ot,Bt){var Ke=Ot.className,de=Ot.style,se=Ot.motion,ut=Ot.motionNodes,qe=Ot.motionType,me=Ot.onMotionStart,Wt=Ot.onMotionEnd,dr=Ot.active,vt=Ot.treeNodeRequiredProps,rr=Object(b.a)(Ot,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),ur=m.useState(!0),mn=Object(A.a)(ur,2),sr=mn[0],xr=mn[1],pr=m.useContext(c.a),Zt=pr.prefixCls,Ct=m.useRef(!1),on=function(){Ct.current||Wt(),Ct.current=!0};return Object(m.useEffect)(function(){ut&&qe==="hide"&&sr&&xr(!1)},[ut]),Object(m.useEffect)(function(){return ut&&me(),function(){ut&&on()}},[]),ut?m.createElement(E.default,Object.assign({ref:Bt,visible:sr},se,{motionAppear:qe==="show",onAppearEnd:on,onLeaveEnd:on}),function(Mn,Xn){var oi=Mn.className,Ui=Mn.style;return m.createElement("div",{ref:Xn,className:s()("".concat(Zt,"-treenode-motion"),oi),style:Ui},ut.map(function(Un){var Qn=Un.data,$t=Qn.key,Nt=Object(b.a)(Qn,["key"]),Me=Un.isStart,ke=Un.isEnd;delete Nt.children;var Be=Object(g.f)($t,vt);return m.createElement(C.a,Object.assign({},Nt,Be,{active:dr,data:Un.data,key:$t,isStart:Me,isEnd:ke}))}))}):m.createElement(C.a,Object.assign({domRef:Bt,className:Ke,style:de},rr,{active:dr}))};_.displayName="MotionTreeNode";var T=m.forwardRef(_),S=T;function O(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Bt=Mt.length,Ke=Ot.length;if(Math.abs(Bt-Ke)!==1)return{add:!1,key:null};function de(se,ut){var qe=new Map;se.forEach(function(Wt){qe.set(Wt,!0)});var me=ut.filter(function(Wt){return!qe.has(Wt)});return me.length===1?me[0]:null}return Bt<Ke?{add:!0,key:de(Mt,Ot)}:{add:!1,key:de(Ot,Mt)}}function I(Mt,Ot,Bt){var Ke=Mt.findIndex(function(qe){var me=qe.data;return me.key===Bt}),de=Mt[Ke+1],se=Ot.findIndex(function(qe){var me=qe.data;return me.key===Bt});if(de){var ut=Ot.findIndex(function(qe){var me=qe.data;return me.key===de.data.key});return Ot.slice(se+1,ut)}return Ot.slice(se+1)}var F={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},P=function(){},B="RC_TREE_MOTION_".concat(Math.random()),k={key:B},G={key:B,level:0,index:0,pos:"0",node:k},M={parent:null,children:[],pos:G.pos,data:k,isStart:[],isEnd:[]};function j(Mt,Ot,Bt,Ke){return Ot===!1||!Bt?Mt:Mt.slice(0,Math.ceil(Bt/Ke)+1)}function K(Mt){var Ot=Mt.data.key,Bt=Mt.pos;return Object(g.e)(Ot,Bt)}function z(Mt){for(var Ot=String(Mt.data.key),Bt=Mt;Bt.parent;)Bt=Bt.parent,Ot="".concat(Bt.data.key," > ").concat(Ot);return Ot}var V=function(Ot,Bt){var Ke=Ot.prefixCls,de=Ot.data,se=Ot.selectable,ut=Ot.checkable,qe=Ot.expandedKeys,me=Ot.selectedKeys,Wt=Ot.checkedKeys,dr=Ot.loadedKeys,vt=Ot.loadingKeys,rr=Ot.halfCheckedKeys,ur=Ot.keyEntities,mn=Ot.disabled,sr=Ot.dragging,xr=Ot.dragOverNodeKey,pr=Ot.dropPosition,Zt=Ot.motion,Ct=Ot.height,on=Ot.itemHeight,Mn=Ot.virtual,Xn=Ot.focusable,oi=Ot.activeItem,Ui=Ot.focused,Un=Ot.tabIndex,Qn=Ot.onKeyDown,$t=Ot.onFocus,Nt=Ot.onBlur,Me=Ot.onActiveChange,ke=Ot.onListChangeStart,Be=Ot.onListChangeEnd,it=Object(b.a)(Ot,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),yt=m.useRef(null);m.useImperativeHandle(Bt,function(){return{scrollTo:function(Hi){yt.current.scrollTo(Hi)}}});var Tt=m.useState(qe),Yt=Object(A.a)(Tt,2),Pr=Yt[0],$r=Yt[1],An=m.useState(de),zt=Object(A.a)(An,2),At=zt[0],wt=zt[1],vr=m.useState(de),Jt=Object(A.a)(vr,2),Ut=Jt[0],tr=Jt[1],Ft=m.useState([]),qt=Object(A.a)(Ft,2),Hr=qt[0],Nr=qt[1],Dr=m.useState(null),cn=Object(A.a)(Dr,2),vn=cn[0],ei=cn[1];function qn(){wt(de),tr(de),Nr([]),ei(null),Be()}m.useEffect(function(){$r(qe);var Ni=O(Pr,qe);if(Ni.key!==null)if(Ni.add){var Hi=At.findIndex(function(Ze){var st=Ze.data.key;return st===Ni.key}),nt=j(I(At,de,Ni.key),Mn,Ct,on),Ne=At.slice();Ne.splice(Hi+1,0,M),tr(Ne),Nr(nt),ei("show")}else{var He=de.findIndex(function(Ze){var st=Ze.data.key;return st===Ni.key}),Xe=j(I(de,At,Ni.key),Mn,Ct,on),rt=de.slice();rt.splice(He+1,0,M),tr(rt),Nr(Xe),ei("hide")}else At!==de&&(wt(de),tr(de))},[qe,de]),m.useEffect(function(){sr||qn()},[sr]);var fi=Zt?Ut:de,xi={expandedKeys:qe,selectedKeys:me,loadedKeys:dr,loadingKeys:vt,checkedKeys:Wt,halfCheckedKeys:rr,dragOverNodeKey:xr,dropPosition:pr,keyEntities:ur};return m.createElement(m.Fragment,null,Ui&&oi&&m.createElement("span",{style:F,"aria-live":"assertive"},z(oi)),m.createElement("div",{role:"tree"},m.createElement("input",{style:F,disabled:Xn===!1||mn,tabIndex:Xn!==!1?Un:null,onKeyDown:Qn,onFocus:$t,onBlur:Nt,value:"",onChange:P})),m.createElement(w.a,Object.assign({},it,{data:fi,itemKey:K,height:Ct,fullHeight:!1,virtual:Mn,itemHeight:on,prefixCls:"".concat(Ke,"-list"),ref:yt}),function(Ni){var Hi=Ni.pos,nt=Ni.data,Ne=nt.key,He=Object(b.a)(nt,["key"]),Xe=Ni.isStart,rt=Ni.isEnd,Ze=Object(g.e)(Ne,Hi);delete He.children;var st=Object(g.f)(Ze,xi);return m.createElement(S,Object.assign({},He,st,{active:oi&&Ne===oi.data.key,pos:Hi,data:Ni.data,isStart:Xe,isEnd:rt,motion:Zt,motionNodes:Ne===B?Hr:null,motionType:vn,onMotionStart:ke,onMotionEnd:qn,treeNodeRequiredProps:xi,onMouseMove:function(){Me(null)}}))}))},Q=m.forwardRef(V);Q.displayName="NodeList";var X=Q,te=i("qOx5"),$=function(Mt){Object(t.a)(Bt,Mt);var Ot=Object(a.a)(Bt);function Bt(){var Ke;return Object(o.a)(this,Bt),Ke=Ot.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,se){var ut=Ke.state,qe=ut.expandedKeys,me=ut.keyEntities,Wt=Ke.props.onDragStart,dr=se.props.eventKey;Ke.dragNode=se;var vt=Object(h.b)(qe,dr);Ke.setState({dragging:!0,dragNodesKeys:Object(h.g)(dr,me)}),Ke.setExpandedKeys(vt),Wt&&Wt({event:de,node:Object(g.b)(se.props)})},Ke.onNodeDragEnter=function(de,se){var ut=Ke.state,qe=ut.expandedKeys,me=ut.keyEntities,Wt=ut.dragNodesKeys,dr=Ke.props.onDragEnter,vt=se.props,rr=vt.pos,ur=vt.eventKey;if(!Ke.dragNode||Wt.indexOf(ur)!==-1)return;var mn=Object(h.c)(de,se);if(Ke.dragNode.props.eventKey===ur&&mn===0){Ke.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){Ke.setState({dragOverNodeKey:ur,dropPosition:mn}),Ke.delayedDragEnterLogic||(Ke.delayedDragEnterLogic={}),Object.keys(Ke.delayedDragEnterLogic).forEach(function(sr){clearTimeout(Ke.delayedDragEnterLogic[sr])}),Ke.delayedDragEnterLogic[rr]=window.setTimeout(function(){if(!Ke.state.dragging)return;var sr=Object(l.a)(qe),xr=me[ur];xr&&(xr.children||[]).length&&(sr=Object(h.a)(qe,ur)),"expandedKeys"in Ke.props||Ke.setExpandedKeys(sr),dr&&dr({event:de,node:Object(g.b)(se.props),expandedKeys:sr})},400)},0)},Ke.onNodeDragOver=function(de,se){var ut=Ke.state.dragNodesKeys,qe=Ke.props.onDragOver,me=se.props.eventKey;if(ut.indexOf(me)!==-1)return;if(Ke.dragNode&&me===Ke.state.dragOverNodeKey){var Wt=Object(h.c)(de,se);if(Wt===Ke.state.dropPosition)return;Ke.setState({dropPosition:Wt})}qe&&qe({event:de,node:Object(g.b)(se.props)})},Ke.onNodeDragLeave=function(de,se){var ut=Ke.props.onDragLeave;Ke.setState({dragOverNodeKey:""}),ut&&ut({event:de,node:Object(g.b)(se.props)})},Ke.onNodeDragEnd=function(de,se){var ut=Ke.props.onDragEnd;Ke.setState({dragOverNodeKey:""}),Ke.cleanDragState(),ut&&ut({event:de,node:Object(g.b)(se.props)}),Ke.dragNode=null},Ke.onNodeDrop=function(de,se){var ut=Ke.state,qe=ut.dragNodesKeys,me=qe===void 0?[]:qe,Wt=ut.dropPosition,dr=Ke.props.onDrop,vt=se.props,rr=vt.eventKey,ur=vt.pos;if(Ke.setState({dragOverNodeKey:""}),Ke.cleanDragState(),me.indexOf(rr)!==-1){Object(u.a)(!1,"Can not drop to dragNode(include it's children node)");return}var mn=Object(h.k)(ur),sr={event:de,node:Object(g.b)(se.props),dragNode:Ke.dragNode?Object(g.b)(Ke.dragNode.props):null,dragNodesKeys:me.slice(),dropPosition:Wt+Number(mn[mn.length-1]),dropToGap:!1};Wt!==0&&(sr.dropToGap=!0),dr&&dr(sr),Ke.dragNode=null},Ke.cleanDragState=function(){var de=Ke.state.dragging;de&&Ke.setState({dragging:!1})},Ke.onNodeClick=function(de,se){var ut=Ke.props.onClick;ut&&ut(de,se)},Ke.onNodeDoubleClick=function(de,se){var ut=Ke.props.onDoubleClick;ut&&ut(de,se)},Ke.onNodeSelect=function(de,se){var ut=Ke.state.selectedKeys,qe=Ke.state.keyEntities,me=Ke.props,Wt=me.onSelect,dr=me.multiple,vt=se.selected,rr=se.key,ur=!vt;ur?dr?ut=Object(h.a)(ut,rr):ut=[rr]:ut=Object(h.b)(ut,rr);var mn=ut.map(function(sr){var xr=qe[sr];return xr?xr.node:null}).filter(function(sr){return sr});Ke.setUncontrolledState({selectedKeys:ut}),Wt&&Wt(ut,{event:"select",selected:ur,node:se,selectedNodes:mn,nativeEvent:de.nativeEvent})},Ke.onNodeCheck=function(de,se,ut){var qe=Ke.state,me=qe.keyEntities,Wt=qe.checkedKeys,dr=qe.halfCheckedKeys,vt=Ke.props,rr=vt.checkStrictly,ur=vt.onCheck,mn=se.key,sr,xr={event:"check",node:se,checked:ut,nativeEvent:de.nativeEvent};if(rr){var pr=ut?Object(h.a)(Wt,mn):Object(h.b)(Wt,mn),Zt=Object(h.b)(dr,mn);sr={checked:pr,halfChecked:Zt},xr.checkedNodes=pr.map(function(Ui){return me[Ui]}).filter(function(Ui){return Ui}).map(function(Ui){return Ui.node}),Ke.setUncontrolledState({checkedKeys:pr})}else{var Ct=Object(te.a)([].concat(Object(l.a)(Wt),[mn]),!0,me),on=Ct.checkedKeys,Mn=Ct.halfCheckedKeys;if(!ut){var Xn=new Set(on);Xn.delete(mn);var oi=Object(te.a)(Array.from(Xn),{checked:!1,halfCheckedKeys:Mn},me);on=oi.checkedKeys,Mn=oi.halfCheckedKeys}sr=on,xr.checkedNodes=[],xr.checkedNodesPositions=[],xr.halfCheckedKeys=Mn,on.forEach(function(Ui){var Un=me[Ui];if(!Un)return;var Qn=Un.node,$t=Un.pos;xr.checkedNodes.push(Qn),xr.checkedNodesPositions.push({node:Qn,pos:$t})}),Ke.setUncontrolledState({checkedKeys:on},!1,{halfCheckedKeys:Mn})}ur&&ur(sr,xr)},Ke.onNodeLoad=function(de){return new Promise(function(se){Ke.setState(function(ut){var qe=ut.loadedKeys,me=qe===void 0?[]:qe,Wt=ut.loadingKeys,dr=Wt===void 0?[]:Wt,vt=Ke.props,rr=vt.loadData,ur=vt.onLoad,mn=de.key;if(!rr||me.indexOf(mn)!==-1||dr.indexOf(mn)!==-1)return{};var sr=rr(de);return sr.then(function(){var xr=Ke.state,pr=xr.loadedKeys,Zt=xr.loadingKeys,Ct=Object(h.a)(pr,mn),on=Object(h.b)(Zt,mn);ur&&ur(Ct,{event:"load",node:de}),Ke.setUncontrolledState({loadedKeys:Ct}),Ke.setState({loadingKeys:on}),se()}),{loadingKeys:Object(h.a)(dr,mn)}})})},Ke.onNodeMouseEnter=function(de,se){var ut=Ke.props.onMouseEnter;ut&&ut({event:de,node:se})},Ke.onNodeMouseLeave=function(de,se){var ut=Ke.props.onMouseLeave;ut&&ut({event:de,node:se})},Ke.onNodeContextMenu=function(de,se){var ut=Ke.props.onRightClick;ut&&(de.preventDefault(),ut({event:de,node:se}))},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,se=de.expandedKeys,ut=de.selectedKeys,qe=de.loadedKeys,me=de.loadingKeys,Wt=de.checkedKeys,dr=de.halfCheckedKeys,vt=de.dragOverNodeKey,rr=de.dropPosition,ur=de.keyEntities;return{expandedKeys:se||[],selectedKeys:ut||[],loadedKeys:qe||[],loadingKeys:me||[],checkedKeys:Wt||[],halfCheckedKeys:dr||[],dragOverNodeKey:vt,dropPosition:rr,keyEntities:ur}},Ke.setExpandedKeys=function(de){var se=Ke.state.treeData,ut=Object(g.d)(se,de);Ke.setUncontrolledState({expandedKeys:de,flattenNodes:ut},!0)},Ke.onNodeExpand=function(de,se){var ut=Ke.state.expandedKeys,qe=Ke.state.listChanging,me=Ke.props,Wt=me.onExpand,dr=me.loadData,vt=se.key,rr=se.expanded;if(qe)return;var ur=ut.indexOf(vt),mn=!rr;if(Object(u.a)(rr&&ur!==-1||!rr&&ur===-1,"Expand state not sync with index check"),mn?ut=Object(h.a)(ut,vt):ut=Object(h.b)(ut,vt),Ke.setExpandedKeys(ut),Wt&&Wt(ut,{node:se,expanded:mn,nativeEvent:de.nativeEvent}),mn&&dr){var sr=Ke.onNodeLoad(se);sr&&sr.then(function(){var xr=Object(g.d)(Ke.state.treeData,ut);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 se=Ke.state.activeKey,ut=Ke.props.onActiveChange;if(se===de)return;Ke.setState({activeKey:de}),de!==null&&Ke.scrollTo({key:de}),ut&&ut(de)},Ke.getActiveItem=function(){var de=Ke.state,se=de.activeKey,ut=de.flattenNodes;return se===null?null:ut.find(function(qe){var me=qe.data.key;return me===se})||null},Ke.offsetActiveKey=function(de){var se=Ke.state,ut=se.flattenNodes,qe=se.activeKey,me=ut.findIndex(function(vt){var rr=vt.data.key;return rr===qe});me===-1&&de<0&&(me=ut.length),me=(me+de+ut.length)%ut.length;var Wt=ut[me];if(Wt){var dr=Wt.data.key;Ke.onActiveChange(dr)}else Ke.onActiveChange(null)},Ke.onKeyDown=function(de){var se=Ke.state,ut=se.activeKey,qe=se.expandedKeys,me=se.checkedKeys,Wt=Ke.props,dr=Wt.onKeyDown,vt=Wt.checkable,rr=Wt.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 ur=Ke.getActiveItem();if(ur&&ur.data){var mn=Ke.getTreeNodeRequiredProps(),sr=ur.data.isLeaf===!1||!!(ur.data.children||[]).length,xr=Object(g.b)(Object(d.a)(Object(d.a)({},Object(g.f)(ut,mn)),{},{data:ur.data,active:!0}));switch(de.which){case e.a.LEFT:{sr&&qe.includes(ut)?Ke.onNodeExpand({},xr):ur.parent&&Ke.onActiveChange(ur.parent.data.key),de.preventDefault();break}case e.a.RIGHT:{sr&&!qe.includes(ut)?Ke.onNodeExpand({},xr):ur.children&&ur.children.length&&Ke.onActiveChange(ur.children[0].data.key),de.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{vt&&!xr.disabled&&xr.checkable!==!1&&!xr.disableCheckbox?Ke.onNodeCheck({},xr,!me.includes(ut)):!vt&&rr&&!xr.disabled&&xr.selectable!==!1&&Ke.onNodeSelect({},xr);break}}}dr&&dr(de)},Ke.setUncontrolledState=function(de){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Ke.destroyed)return;var qe=!1,me=!0,Wt={};Object.keys(de).forEach(function(dr){if(dr in Ke.props){me=!1;return}qe=!0,Wt[dr]=de[dr]}),qe&&(!se||me)&&Ke.setState(Object(d.a)(Object(d.a)({},Wt),ut))},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,se=this.state,ut=se.focused,qe=se.flattenNodes,me=se.keyEntities,Wt=se.dragging,dr=se.activeKey,vt=this.props,rr=vt.prefixCls,ur=vt.className,mn=vt.style,sr=vt.showLine,xr=vt.focusable,pr=vt.tabIndex,Zt=pr===void 0?0:pr,Ct=vt.selectable,on=vt.showIcon,Mn=vt.icon,Xn=vt.switcherIcon,oi=vt.draggable,Ui=vt.checkable,Un=vt.checkStrictly,Qn=vt.disabled,$t=vt.motion,Nt=vt.loadData,Me=vt.filterTreeNode,ke=vt.height,Be=vt.itemHeight,it=vt.virtual,yt=vt.titleRender,Tt=vt.onContextMenu,Yt=Object(h.f)(this.props);return m.createElement(c.a.Provider,{value:{prefixCls:rr,selectable:Ct,showIcon:on,icon:Mn,switcherIcon:Xn,draggable:oi,checkable:Ui,checkStrictly:Un,disabled:Qn,keyEntities:me,loadData:Nt,filterTreeNode:Me,titleRender:yt,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()(rr,ur,(de={},Object(f.a)(de,"".concat(rr,"-show-line"),sr),Object(f.a)(de,"".concat(rr,"-focused"),ut),Object(f.a)(de,"".concat(rr,"-active-focused"),dr!==null),de))},m.createElement(X,Object.assign({ref:this.listRef,prefixCls:rr,style:mn,data:qe,disabled:Qn,selectable:Ct,checkable:!!Ui,motion:$t,dragging:Wt,height:ke,itemHeight:Be,virtual:it,focusable:xr,focused:ut,tabIndex:Zt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Tt},this.getTreeNodeRequiredProps(),Yt))))}}],[{key:"getDerivedStateFromProps",value:function(de,se){var ut=se.prevProps,qe={prevProps:de};function me(Mn){return!ut&&Mn in de||ut&&ut[Mn]!==de[Mn]}var Wt;if(me("treeData")?Wt=de.treeData:me("children")&&(Object(u.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Wt=Object(g.c)(de.children)),Wt){qe.treeData=Wt;var dr=Object(g.a)(Wt);qe.keyEntities=Object(d.a)(Object(f.a)({},B,G),dr.keyEntities)}var vt=qe.keyEntities||se.keyEntities;if(me("expandedKeys")||ut&&me("autoExpandParent"))qe.expandedKeys=de.autoExpandParent||!ut&&de.defaultExpandParent?Object(h.e)(de.expandedKeys,vt):de.expandedKeys;else if(!ut&&de.defaultExpandAll){var rr=Object(d.a)({},vt);delete rr[B],qe.expandedKeys=Object.keys(rr).map(function(Mn){return rr[Mn].key})}else!ut&&de.defaultExpandedKeys&&(qe.expandedKeys=de.autoExpandParent||de.defaultExpandParent?Object(h.e)(de.defaultExpandedKeys,vt):de.defaultExpandedKeys);if(qe.expandedKeys||delete qe.expandedKeys,Wt||qe.expandedKeys){var ur=Object(g.d)(Wt||se.treeData,qe.expandedKeys||se.expandedKeys);qe.flattenNodes=ur}if(de.selectable&&(me("selectedKeys")?qe.selectedKeys=Object(h.d)(de.selectedKeys,de):!ut&&de.defaultSelectedKeys&&(qe.selectedKeys=Object(h.d)(de.defaultSelectedKeys,de))),de.checkable){var mn;if(me("checkedKeys")?mn=Object(h.j)(de.checkedKeys)||{}:!ut&&de.defaultCheckedKeys?mn=Object(h.j)(de.defaultCheckedKeys)||{}:Wt&&(mn=Object(h.j)(de.checkedKeys)||{checkedKeys:se.checkedKeys,halfCheckedKeys:se.halfCheckedKeys}),mn){var sr=mn,xr=sr.checkedKeys,pr=xr===void 0?[]:xr,Zt=sr.halfCheckedKeys,Ct=Zt===void 0?[]:Zt;if(!de.checkStrictly){var on=Object(te.a)(pr,!0,vt);pr=on.checkedKeys,Ct=on.halfCheckedKeys}qe.checkedKeys=pr,qe.halfCheckedKeys=Ct}}return me("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=C.a;var le=$,re=le,Se=i("RIqP"),Re=i.n(Se),Pe=i("J4zp"),Je=i.n(Pe),Ge=i("sEfC"),ct=i.n(Ge),Ue=i("vk+C"),ae=i.n(Ue),lt=i("Vy0f"),pe=i.n(lt),J=i("kGiB"),Y=i.n(J),ee=i("H84U"),fe;(function(Mt){Mt[Mt.None=0]="None",Mt[Mt.Start=1]="Start",Mt[Mt.End=2]="End"})(fe||(fe={}));function we(Mt,Ot){function Bt(Ke){var de=Ke.key,se=Ke.children;Ot(de,Ke)!==!1&&we(se||[],Ot)}Mt.forEach(Bt)}function Ce(Mt){var Ot=Mt.treeData,Bt=Mt.expandedKeys,Ke=Mt.startKey,de=Mt.endKey,se=[],ut=fe.None;if(Ke&&Ke===de)return[Ke];if(!Ke||!de)return[];function qe(me){return me===Ke||me===de}return we(Ot,function(me){if(ut===fe.End)return!1;if(qe(me)){if(se.push(me),ut===fe.None)ut=fe.Start;else if(ut===fe.Start)return ut=fe.End,!1}else ut===fe.Start&&se.push(me);return!(Bt.indexOf(me)===-1)}),se}function _e(Mt,Ot){var Bt=Re()(Ot),Ke=[];return we(Mt,function(de,se){var ut=Bt.indexOf(de);return ut!==-1&&(Ke.push(se),Bt.splice(ut,1)),!!Bt.length}),Ke}var he=function(Mt,Ot){var Bt={};for(var Ke in Mt)Object.prototype.hasOwnProperty.call(Mt,Ke)&&Ot.indexOf(Ke)<0&&(Bt[Ke]=Mt[Ke]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Ke=Object.getOwnPropertySymbols(Mt);de<Ke.length;de++)Ot.indexOf(Ke[de])<0&&Object.prototype.propertyIsEnumerable.call(Mt,Ke[de])&&(Bt[Ke[de]]=Mt[Ke[de]]);return Bt};function ye(Mt){var Ot=Mt.isLeaf,Bt=Mt.expanded;return Ot?m.createElement(ae.a,null):Bt?m.createElement(pe.a,null):m.createElement(Y.a,null)}function Le(Mt){var Ot=Mt.treeData,Bt=Mt.children;return Ot||Object(g.c)(Bt)}var tt=function(Ot,Bt){var Ke=Ot.defaultExpandAll,de=Ot.defaultExpandParent,se=Ot.defaultExpandedKeys,ut=he(Ot,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),qe=m.useRef(),me=m.useRef(),Wt=m.createRef();m.useImperativeHandle(Bt,function(){return Wt.current});var dr=function(){var Tt=Object(g.a)(Le(ut)),Yt=Tt.keyEntities,Pr;return Ke?Pr=Object.keys(Yt):de?Pr=Object(h.e)(ut.expandedKeys||se,Yt):Pr=ut.expandedKeys||se,Pr},vt=m.useState(ut.selectedKeys||ut.defaultSelectedKeys||[]),rr=Je()(vt,2),ur=rr[0],mn=rr[1],sr=m.useState(dr()),xr=Je()(sr,2),pr=xr[0],Zt=xr[1];m.useEffect(function(){"selectedKeys"in ut&&mn(ut.selectedKeys)},[ut.selectedKeys]),m.useEffect(function(){"expandedKeys"in ut&&Zt(ut.expandedKeys)},[ut.expandedKeys]);var Ct=function(Tt,Yt){var Pr=Yt.isLeaf;if(Pr||Tt.shiftKey||Tt.metaKey||Tt.ctrlKey)return;Wt.current.onNodeExpand(Tt,Yt)},on=ct()(Ct,200,{leading:!0}),Mn=function(Tt,Yt){return"expandedKeys"in ut||Zt(Tt),ut.onExpand?ut.onExpand(Tt,Yt):void 0},Xn=function(Tt,Yt){var Pr=ut.expandAction;Pr==="click"&&on(Tt,Yt),ut.onClick&&ut.onClick(Tt,Yt)},oi=function(Tt,Yt){var Pr=ut.expandAction;Pr==="doubleClick"&&on(Tt,Yt),ut.onDoubleClick&&ut.onDoubleClick(Tt,Yt)},Ui=function(Tt,Yt){var Pr=ut.multiple,$r=Yt.node,An=Yt.nativeEvent,zt=$r.key,At=zt===void 0?"":zt,wt=Le(ut),vr=v()(v()({},Yt),{selected:!0}),Jt=An.ctrlKey||An.metaKey,Ut=An.shiftKey,tr;Pr&&Jt?(tr=Tt,qe.current=At,me.current=tr,vr.selectedNodes=_e(wt,tr)):Pr&&Ut?(tr=Array.from(new Set([].concat(Re()(me.current||[]),Re()(Ce({treeData:wt,expandedKeys:pr,startKey:At,endKey:qe.current}))))),vr.selectedNodes=_e(wt,tr)):(tr=[At],qe.current=At,me.current=tr,vr.selectedNodes=_e(wt,tr)),ut.onSelect&&ut.onSelect(tr,vr),"selectedKeys"in ut||mn(tr)},Un=m.useContext(ee.b),Qn=Un.getPrefixCls,$t=Un.direction,Nt=ut.prefixCls,Me=ut.className,ke=he(ut,["prefixCls","className"]),Be=Qn("tree",Nt),it=s()("".concat(Be,"-directory"),Me,p()({},"".concat(Be,"-directory-rtl"),$t==="rtl"));return m.createElement(St,v()({icon:ye,ref:Wt,blockNode:!0},ke,{prefixCls:Be,className:it,expandedKeys:pr,selectedKeys:ur,onSelect:Ui,onClick:Xn,onDoubleClick:oi,onExpand:Mn}))},gt=m.forwardRef(tt);gt.displayName="DirectoryTree",gt.defaultProps={showIcon:!0,expandAction:"click"};var at=gt,Fe=i("EXcs"),mt=i("2jpz"),et=m.forwardRef(function(Mt,Ot){var Bt,Ke=m.useContext(ee.b),de=Ke.getPrefixCls,se=Ke.direction,ut=Ke.virtual,qe=Mt.prefixCls,me=Mt.className,Wt=Mt.showIcon,dr=Mt.showLine,vt=Mt.switcherIcon,rr=Mt.blockNode,ur=Mt.children,mn=Mt.checkable,sr=v()(v()({},Mt),{showLine:Boolean(dr)}),xr=de("tree",qe);return m.createElement(re,v()({itemHeight:20,ref:Ot,virtual:ut},sr,{prefixCls:xr,className:s()(me,(Bt={},p()(Bt,"".concat(xr,"-icon-hide"),!Wt),p()(Bt,"".concat(xr,"-block-node"),rr),p()(Bt,"".concat(xr,"-rtl"),se==="rtl"),Bt)),checkable:mn&&m.createElement("span",{className:"".concat(xr,"-checkbox-inner")}),switcherIcon:function(Zt){return Object(mt.a)(xr,vt,dr,Zt)}}),ur)});et.TreeNode=C.a,et.DirectoryTree=at,et.defaultProps={checkable:!1,showIcon:!1,motion:v()(v()({},Fe.a),{motionAppear:!1}),blockNode:!1};var St=et,jt=D.a=St},MKOG:function(R,D,i){var y=i("bYtY"),p=i("YH21"),x=p.Dispatcher,v=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,x.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&&(v(n),!o._paused&&o._update())}v(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,x);var d=f;R.exports=d},MMmD:function(R,D,i){var y=i("lSCD"),p=i("shjB");function x(v){return v!=null&&p(v.length)&&!y(v)}R.exports=x},MRoa:function(R,D,i){var y=i("ProS");i("0Bwj"),i("W2nI"),i("vcCh");var p=i("gawk"),x=i("Dg8C");y.registerLayout(p),y.registerVisual(x)},MT78:function(R,D,i){var y=i("ProS");(function(){for(var x in y){if(y==null||!y.hasOwnProperty(x)||x==="default"||x==="__esModule")return;D[x]=y[x]}})();var p=i("txkQ");(function(){for(var x in p){if(p==null||!p.hasOwnProperty(x)||x==="default"||x==="__esModule")return;D[x]=p[x]}})(),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(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("Kvyg"),v=i.n(x)},MZdM:function(R,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")),x=f(i("N/zr")),v=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,A=s-this._viewportLoc.x,b=c-this._viewportLoc.y;A<0&&(h+=A,s-=A,A=0),b<0&&(g+=b,c-=b,b=0),A+h>this._viewportLoc.w&&(h=this._viewportLoc.w-A),b+g>this._viewportLoc.h&&(g=this._viewportLoc.h-b),h>0&&g>0&&this._targetCtx.drawImage(this._backbuffer,s,c,h,g,A,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,A){this._renderQ.length!==0&&!A?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,A,b){this._renderQ.length!==0&&!b?this._renderQPush({type:"copy",oldX:r,oldY:s,x:c,y:h,width:g,height:A}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,r,s,g,A,c,h,g,A),this._damage(c,h,g,A))}},{key:"imageRect",value:function(r,s,c,h,g,A){if(c===0||h===0)return;var b=new Image;b.src="data: "+g+";base64,"+x.default.encode(A),this._renderQPush({type:"img",img:b,x:r,y:s,width:c,height:h})}},{key:"startTile",value:function(r,s,c,h,g){this._tileX=r,this._tileY=s,c===16&&h===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(c,h);for(var A=g[2],b=g[1],w=g[0],E=this._tile.data,C=0;C<c*h*4;C+=4)E[C]=A,E[C+1]=b,E[C+2]=w,E[C+3]=255}},{key:"subTile",value:function(r,s,c,h,g){for(var A=g[2],b=g[1],w=g[0],E=r+c,C=s+h,_=this._tile.data,T=this._tile.width,S=s;S<C;S++)for(var O=r;O<E;O++){var I=(O+S*T)*4;_[I]=A,_[I+1]=b,_[I+2]=w,_[I+3]=255}}},{key:"finishTile",value:function(){this._drawCtx.putImageData(this._tile,this._tileX,this._tileY),this._damage(this._tileX,this._tileY,this._tile.width,this._tile.height)}},{key:"blitImage",value:function(r,s,c,h,g,A,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,A)}},{key:"blitRgbImage",value:function(r,s,c,h,g,A,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,A)}},{key:"blitRgbxImage",value:function(r,s,c,h,g,A,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,A)}},{key:"drawImage",value:function(r,s,c){this._drawCtx.drawImage(r,s,c),this._damage(s,c,r.width,r.height)}},{key:"autoscale",value:function(r,s){var c;if(r===0||s===0)c=0;else{var h=this._viewportLoc,g=r/s,A=h.w/h.h;A>=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,A){for(var b=this._drawCtx.createImageData(c,h),w=b.data,E=0,C=A;E<c*h*4;E+=4,C+=3)w[E]=g[C],w[E+1]=g[C+1],w[E+2]=g[C+2],w[E+3]=255;this._drawCtx.putImageData(b,r,s),this._damage(r,s,b.width,b.height)}},{key:"_bgrxImageData",value:function(r,s,c,h,g,A){for(var b=this._drawCtx.createImageData(c,h),w=b.data,E=0,C=A;E<c*h*4;E+=4,C+=4)w[E]=g[C+2],w[E+1]=g[C+1],w[E+2]=g[C],w[E+3]=255;this._drawCtx.putImageData(b,r,s),this._damage(r,s,b.width,b.height)}},{key:"_rgbxImageData",value:function(r,s,c,h,g,A){var b;v.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(R,D,i){var y=i("bYtY"),p=y.each,x="\0__link_datas",v="\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[x]);s[this.dataType]=r,t(r,s,u)}else a(r,this.dataType,this[v],u);return r}function d(u,r){return u.struct&&u.struct.update(this),r}function l(u,r){return p(r[x],function(s,c){s!==r&&a(s.cloneShallow(),c,r,u)}),r}function o(u){var r=this[v];return u==null||r==null?r:r[x][u]}function n(u){return u[v]===u}function t(u,r,s){u[x]={},p(r,function(c,h){a(c,h,u,s)})}function a(u,r,s,c){s[x][r]=u,u[v]=s,u.dataType=r,c.struct&&(u[c.structAttr]=c.struct,c.struct[c.datasAttr[r]]=u),u.getLinkedData=o}var e=m;R.exports=e},Mds0:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="StarFilled";var n=v.forwardRef(o);D.default=n},Mgri:function(R,D,i){for(var y=i("bYtY"),p=i("8nly"),x=[126,25],v=[[[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<v.length;m++)for(var f=0;f<v[m].length;f++)v[m][f][0]/=10.5,v[m][f][1]/=-10.5/.75,v[m][f][0]+=x[0],v[m][f][1]+=x[1];function d(l,o){l==="china"&&o.push(new p("\u5357\u6D77\u8BF8\u5C9B",y.map(v,function(n){return{type:"polygon",exterior:n}}),x))}R.exports=d},MlIO:function(R,D,i){(function(y,p){R.exports=D=p(i("Ib8C"))})(this,function(y){return function(p){var x=y,v=x.lib,m=v.Base,f=v.WordArray,d=x.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(R,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=v(i("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return x=function(){return t},t}function v(t){if(t&&t.__esModule)return t;if(t===null||y(t)!=="object"&&typeof t!="function")return{default:t};var a=x();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(R,D,i){var y=i("bYtY"),p=i("fc+c"),x=i("72pK"),v=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 v.generateCoordId(h.model)});y.each(r,function(h){var g=h.model,A={};y.each(["pan","zoom","scrollMove"],function(b){A[b]=m(d[b],this,h,s)},this),v.register(e,{coordId:v.generateCoordId(g),allCoordIds:c,containsPoint:function(b,w,E){return g.coordinateSystem.containPoint([w,E])},dataZoomId:t.id,dataZoomModel:t,getRange:A})},this)},this)},dispose:function(){v.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],A=Math.max(1/u.scale,0);s[0]=(s[0]-g)*A+g,s[1]=(s[1]-g)*A+g;var b=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(x(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(x(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(),A=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=A[1]-A[0],c.pixelStart=A[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;R.exports=n},MvSz:function(R,D,i){var y=i("LXxW"),p=i("0ycA"),x=Object.prototype,v=x.propertyIsEnumerable,m=Object.getOwnPropertySymbols,f=m?function(d){return d==null?[]:(d=Object(d),y(m(d),function(l){return v.call(d,l)}))}:p;R.exports=f},MwEJ:function(R,D,i){var y=i("bYtY"),p=i("YXkt"),x=i("sdST"),v=i("k9D9"),m=v.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,E,C){C=C||{},e.isInstance(w)||(w=e.seriesDataToSource(w));var _=E.get("coordinateSystem"),T=n.get(_),S=a(E),O;S&&(O=y.map(S.coordSysDims,function(M){var j={name:M},K=S.axisMap.get(M);if(K){var z=K.get("type");j.type=d(z)}return j})),O||(O=T&&(T.getDimensionsInfo?T.getDimensionsInfo():T.dimensions.slice())||["x","y"]);var I=x(w,{coordDimensions:O,generateCoord:C.generateCoord,encodeDefaulter:C.useEncodeDefaulter?y.curry(c,O,E):null}),F,P;S&&y.each(I,function(M,j){var K=M.coordDim,z=S.categoryAxisMap.get(K);z&&(F==null&&(F=j),M.ordinalMeta=z.getOrdinalMeta()),M.otherDims.itemName!=null&&(P=!0)}),!P&&F!=null&&(I[F].otherDims.itemName=0);var B=r(E,I),k=new p(I,E);k.setCalculationInfo(B);var G=F!=null&&g(w)?function(M,j,K,z){return z===F?K:this.defaultDimValueGetter(M,j,K,z)}:null;return k.hasItemOption=!1,k.initData(w,null,G),k}function g(w){if(w.sourceFormat===m){var E=A(w.data||[]);return E!=null&&!y.isArray(o(E))}}function A(w){for(var E=0;E<w.length&&w[E]==null;)E++;return w[E]}var b=h;R.exports=b},Mylv:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("IwbS"),v=i("oVpE"),m=v.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 x.Circle,u=y.extendChartView({type:"pictorialBar",render:function(V,Q,X){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:X.getWidth(),height:X.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(Ge){if(!$.hasValue(Ge))return;var ct=T($,Ge),Ue=r($,Ge,ct,Je),ae=F($,Je,Ue);$.setItemGraphicEl(Ge,ae),te.add(ae),j(ae,Je,Ue)}).update(function(Ge,ct){var Ue=le.getItemGraphicEl(ct);if(!$.hasValue(Ge)){te.remove(Ue);return}var ae=T($,Ge),lt=r($,Ge,ae,Je),pe=k($,lt);Ue&&pe!==Ue.__pictorialShapeStr&&(te.remove(Ue),$.setItemGraphicEl(Ge,null),Ue=null),Ue?P(Ue,Je,lt):Ue=F($,Je,lt,!0),$.setItemGraphicEl(Ge,Ue),Ue.__pictorialSymbolMeta=lt,te.add(Ue),j(Ue,Je,lt)}).remove(function(Ge){var ct=le.getItemGraphicEl(Ge);ct&&B(le,Ge,ct.__pictorialSymbolMeta.animationModel,ct)}).execute(),this._data=$,this.group},dispose:p.noop,remove:function(V,Q){var X=this.group,te=this._data;V.get("animation")?te&&te.eachItemGraphicEl(function($){B(te,$.dataIndex,V,$)}):X.removeAll()}});function r(V,Q,X,te){var $=V.getItemLayout(Q),le=X.get("symbolRepeat"),re=X.get("symbolClip"),Se=X.get("symbolPosition")||"start",Re=X.get("symbolRotate"),Pe=(Re||0)*Math.PI/180||0,Je=X.get("symbolPatternSize")||2,Ge=X.isAnimationEnabled(),ct={dataIndex:Q,layout:$,itemModel:X,symbolType:V.getItemVisual(Q,"symbol")||"circle",color:V.getItemVisual(Q,"color"),symbolClip:re,symbolRepeat:le,symbolRepeatDirection:X.get("symbolRepeatDirection"),symbolPatternSize:Je,rotation:Pe,animationModel:Ge?X:null,hoverAnimation:Ge&&X.get("hoverAnimation"),z2:X.getShallow("z",!0)||0};s(X,le,$,te,ct),h(V,Q,$,le,re,ct.boundingLength,ct.pxSign,Je,te,ct),g(X,ct.symbolScale,Pe,te,ct);var Ue=ct.symbolSize,ae=X.get("symbolOffset");return p.isArray(ae)&&(ae=[d(ae[0],Ue[0]),d(ae[1],Ue[1])]),A(X,Ue,$,le,re,ae,Se,ct.valueLineWidth,ct.boundingLength,ct.repeatCutLength,te,ct),ct}function s(V,Q,X,te,$){var le=te.valueDim,re=V.get("symbolBoundingData"),Se=te.coordSys.getOtherAxis(te.coordSys.getBaseAxis()),Re=Se.toGlobalCoord(Se.dataToCoord(0)),Pe=1-+(X[le.wh]<=0),Je;if(p.isArray(re)){var Ge=[c(Se,re[0])-Re,c(Se,re[1])-Re];Ge[1]<Ge[0]&&Ge.reverse(),Je=Ge[Pe]}else re!=null?Je=c(Se,re)-Re:Q?Je=te.coordSysExtent[le.index][Pe]-Re:Je=X[le.wh];$.boundingLength=Je,Q&&($.repeatCutLength=X[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,X,te,$,le,re,Se,Re,Pe){var Je=Re.valueDim,Ge=Re.categoryDim,ct=Math.abs(X[Ge.wh]),Ue=V.getItemVisual(Q,"symbolSize");p.isArray(Ue)?Ue=Ue.slice():(Ue==null&&(Ue="100%"),Ue=[Ue,Ue]),Ue[Ge.index]=d(Ue[Ge.index],ct),Ue[Je.index]=d(Ue[Je.index],te?ct:Math.abs(le)),Pe.symbolSize=Ue;var ae=Pe.symbolScale=[Ue[0]/Se,Ue[1]/Se];ae[Je.index]*=(Re.isHorizontal?-1:1)*re}function g(V,Q,X,te,$){var le=V.get(t)||0;le&&(e.attr({scale:Q.slice(),rotation:X}),e.updateTransform(),le/=e.getLineScale(),le*=Q[te.valueDim.index]),$.valueLineWidth=le}function A(V,Q,X,te,$,le,re,Se,Re,Pe,Je,Ge){var ct=Je.categoryDim,Ue=Je.valueDim,ae=Ge.pxSign,lt=Math.max(Q[Ue.index]+Se,0),pe=lt;if(te){var J=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(lt+Y*2,0),we=ee?0:Y*2,Ce=l(te),_e=Ce?te:K((J+we)/fe),he=J-_e*lt;Y=he/2/(ee?_e:_e-1),fe=lt+Y*2,we=ee?0:Y*2,!Ce&&te!=="fixed"&&(_e=Pe?K((Math.abs(Pe)+we)/fe):0),pe=_e*fe-we,Ge.repeatTimes=_e,Ge.symbolMargin=Y}var ye=ae*(pe/2),Le=Ge.pathPosition=[];Le[ct.index]=X[ct.wh]/2,Le[Ue.index]=re==="start"?ye:re==="end"?Re-ye:Re/2,le&&(Le[0]+=le[0],Le[1]+=le[1]);var tt=Ge.bundlePosition=[];tt[ct.index]=X[ct.xy],tt[Ue.index]=X[Ue.xy];var gt=Ge.barRectShape=p.extend({},X);gt[Ue.wh]=ae*Math.max(Math.abs(X[Ue.wh]),Math.abs(Le[Ue.index]+ye)),gt[ct.wh]=X[ct.wh];var at=Ge.clipShape={};at[ct.xy]=-X[ct.xy],at[ct.wh]=Je.ecSize[ct.wh],at[Ue.xy]=0,at[Ue.wh]=X[Ue.wh]}function b(V){var Q=V.symbolPatternSize,X=m(V.symbolType,-Q/2,-Q/2,Q,Q,V.color);return X.attr({culling:!0}),X.type!=="image"&&X.setStyle({strokeNoScale:!0}),X}function w(V,Q,X,te){var $=V.__pictorialBundle,le=X.symbolSize,re=X.valueLineWidth,Se=X.pathPosition,Re=Q.valueDim,Pe=X.repeatTimes||0,Je=0,Ge=le[Q.valueDim.index]+re+X.symbolMargin*2;for(G(V,function(J){J.__pictorialAnimationIndex=Je,J.__pictorialRepeatTimes=Pe,Je<Pe?M(J,null,ae(Je),X,te):M(J,null,{scale:[0,0]},X,te,function(){$.remove(J)}),I(J,X),Je++});Je<Pe;Je++){var ct=b(X);ct.__pictorialAnimationIndex=Je,ct.__pictorialRepeatTimes=Pe,$.add(ct);var Ue=ae(Je);M(ct,{position:Ue.position,scale:[0,0]},{scale:Ue.scale,rotation:Ue.rotation},X,te),ct.on("mouseover",lt).on("mouseout",pe),I(ct,X)}function ae(J){var Y=Se.slice(),ee=X.pxSign,fe=J;return(X.symbolRepeatDirection==="start"?ee>0:ee<0)&&(fe=Pe-1-J),Y[Re.index]=Ge*(fe-Pe/2+.5)+Se[Re.index],{position:Y,scale:X.symbolScale.slice(),rotation:X.rotation}}function lt(){G(V,function(J){J.trigger("emphasis")})}function pe(){G(V,function(J){J.trigger("normal")})}}function E(V,Q,X,te){var $=V.__pictorialBundle,le=V.__pictorialMainPath;le?M(le,null,{position:X.pathPosition.slice(),scale:X.symbolScale.slice(),rotation:X.rotation},X,te):(le=V.__pictorialMainPath=b(X),$.add(le),M(le,{position:X.pathPosition.slice(),scale:[0,0],rotation:X.rotation},{scale:X.symbolScale.slice()},X,te),le.on("mouseover",re).on("mouseout",Se)),I(le,X);function re(){this.trigger("emphasis")}function Se(){this.trigger("normal")}}function C(V,Q,X){var te=p.extend({},Q.barRectShape),$=V.__pictorialBarRect;$?M($,null,{shape:te},Q,X):($=V.__pictorialBarRect=new x.Rect({z2:2,shape:te,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),V.add($))}function _(V,Q,X,te){if(X.symbolClip){var $=V.__pictorialClipPath,le=p.extend({},X.clipShape),re=Q.valueDim,Se=X.animationModel,Re=X.dataIndex;if($)x.updateProps($,{shape:le},Se,Re);else{le[re.wh]=0,$=new x.Rect({shape:le}),V.__pictorialBundle.setClipPath($),V.__pictorialClipPath=$;var Pe={};Pe[re.wh]=X.clipShape[re.wh],x[te?"updateProps":"initProps"]($,{shape:Pe},Se,Re)}}}function T(V,Q){var X=V.getItemModel(Q);return X.getAnimationDelayParams=S,X.isAnimationEnabled=O,X}function S(V){return{index:V.__pictorialAnimationIndex,count:V.__pictorialRepeatTimes}}function O(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function I(V,Q){V.off("emphasis").off("normal");var X=Q.symbolScale.slice();Q.hoverAnimation&&V.on("emphasis",function(){this.animateTo({scale:[X[0]*1.1,X[1]*1.1]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:X.slice()},400,"elasticOut")})}function F(V,Q,X,te){var $=new x.Group,le=new x.Group;return $.add(le),$.__pictorialBundle=le,le.attr("position",X.bundlePosition.slice()),X.symbolRepeat?w($,Q,X):E($,Q,X),C($,X,te),_($,Q,X,te),$.__pictorialShapeStr=k(V,X),$.__pictorialSymbolMeta=X,$}function P(V,Q,X){var te=X.animationModel,$=X.dataIndex,le=V.__pictorialBundle;x.updateProps(le,{position:X.bundlePosition.slice()},te,$),X.symbolRepeat?w(V,Q,X,!0):E(V,Q,X,!0),C(V,X,!0),_(V,Q,X,!0)}function B(V,Q,X,te){var $=te.__pictorialBarRect;$&&($.style.text=null);var le=[];G(te,function(re){le.push(re)}),te.__pictorialMainPath&&le.push(te.__pictorialMainPath),te.__pictorialClipPath&&(X=null),p.each(le,function(re){x.updateProps(re,{scale:[0,0]},X,Q,function(){te.parent&&te.parent.remove(te)})}),V.setItemGraphicEl(Q,null)}function k(V,Q){return[V.getItemVisual(Q.dataIndex,"symbol")||"none",!!Q.symbolRepeat,!!Q.symbolClip].join(":")}function G(V,Q,X){p.each(V.__pictorialBundle.children(),function(te){te!==V.__pictorialBarRect&&Q.call(X,te)})}function M(V,Q,X,te,$,le){Q&&V.attr(Q),te.symbolClip&&!$?X&&V.attr(X):X&&x[$?"updateProps":"initProps"](V,X,te.animationModel,te.dataIndex,le)}function j(V,Q,X){var te=X.color,$=X.dataIndex,le=X.itemModel,re=le.getModel("itemStyle").getItemStyle(["color"]),Se=le.getModel("emphasis.itemStyle").getItemStyle(),Re=le.getShallow("cursor");G(V,function(ct){ct.setColor(te),ct.setStyle(p.defaults({fill:te,opacity:X.opacity},re)),x.setHoverStyle(ct,Se),Re&&(ct.cursor=Re),ct.z2=X.z2});var Pe={},Je=Q.valueDim.posDesc[+(X.boundingLength>0)],Ge=V.__pictorialBarRect;n(Ge.style,Pe,le,te,Q.seriesModel,$,Je),x.setHoverStyle(Ge,Pe)}function K(V){var Q=Math.round(V);return Math.abs(V-Q)<1e-4?Q:Math.ceil(V)}var z=u;R.exports=z},"N/zr":function(R,D,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=v(i("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return x=function(){return f},f}function v(f){if(f&&f.__esModule)return f;if(f===null||y(f)!=="object"&&typeof f!="function")return{default:f};var d=x();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(R,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"}}}),x=p;R.exports=x},NA0q:function(R,D,i){var y=i("bYtY"),p=i("6Ic6"),x=i("TkdX"),v=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"),A=[];c.eachNode(function(O){A.push(O)});var b=this._oldChildren||[];if(C(A,b),S(s,c),e&&e.highlight&&e.highlight.piece){var w=n.getShallow("highlightPolicy");e.highlight.piece.onEmphasis(w)}else if(e&&e.unhighlight){var E=this.virtualPiece;!E&&s.children.length&&(E=s.children[0].piece),E&&E.onNormal()}this._initEvents(),this._oldChildren=A;function C(O,I){if(O.length===0&&I.length===0)return;new v(I,O,F,F).add(P).update(P).remove(y.curry(P,null)).execute();function F(B){return B.getId()}function P(B,k){var G=B==null?null:O[B],M=k==null?null:I[k];_(G,M)}}function _(O,I){if(!g&&O&&!O.getValue()&&(O=null),O!==s&&I!==s){if(I&&I.piece)O?(I.piece.updateData(!1,O,"normal",n,t),r.setItemGraphicEl(O.dataIndex,I.piece)):T(I);else if(O){var F=new x(O,n,t);h.add(F),r.setItemGraphicEl(O.dataIndex,F)}}}function T(O){if(!O)return;O.piece&&(h.remove(O.piece),O.piece=null)}function S(O,I){if(I.depth>0){u.virtualPiece?u.virtualPiece.updateData(!1,O,"normal",n,t):(u.virtualPiece=new x(O,n,t),h.add(u.virtualPiece)),I.piece._onclickEvent&&I.piece.off("click",I.piece._onclickEvent);var F=function(P){u._rootToNode(I.parentNode)};I.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;R.exports=o},NAnI:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("wXyp"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},NBmB:function(R,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(x){switch(x){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 "+x+"]"}}},NC18:function(R,D,i){var y=i("y+Vt"),p=i("IMiH"),x=i("7oTu"),v=Math.sqrt,m=Math.sin,f=Math.cos,d=Math.PI,l=function(A){return Math.sqrt(A[0]*A[0]+A[1]*A[1])},o=function(A,b){return(A[0]*b[0]+A[1]*b[1])/(l(A)*l(b))},n=function(A,b){return(A[0]*b[1]<A[1]*b[0]?-1:1)*Math.acos(o(A,b))};function t(g,A,b,w,E,C,_,T,S,O,I){var F=S*(d/180),P=f(F)*(g-b)/2+m(F)*(A-w)/2,B=-1*m(F)*(g-b)/2+f(F)*(A-w)/2,k=P*P/(_*_)+B*B/(T*T);k>1&&(_*=v(k),T*=v(k));var G=(E===C?-1:1)*v((_*_*(T*T)-_*_*(B*B)-T*T*(P*P))/(_*_*(B*B)+T*T*(P*P)))||0,M=G*_*B/T,j=G*-T*P/_,K=(g+b)/2+f(F)*M-m(F)*j,z=(A+w)/2+m(F)*M+f(F)*j,V=n([1,0],[(P-M)/_,(B-j)/T]),Q=[(P-M)/_,(B-j)/T],X=[(-1*P-M)/_,(-1*B-j)/T],te=n(Q,X);o(Q,X)<=-1&&(te=d),o(Q,X)>=1&&(te=0),C===0&&te>0&&(te=te-2*d),C===1&&te<0&&(te=te+2*d),I.addData(O,K,z,_,T,V,te,F,C)}var a=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function u(g){if(!g)return new p;for(var A=0,b=0,w=A,E=b,C,_=new p,T=p.CMD,S=g.match(a),O=0;O<S.length;O++){for(var I=S[O],F=I.charAt(0),P,B=I.match(e)||[],k=B.length,G=0;G<k;G++)B[G]=parseFloat(B[G]);for(var M=0;M<k;){var j,K,z,V,Q,X,te,$=A,le=b;switch(F){case"l":A+=B[M++],b+=B[M++],P=T.L,_.addData(P,A,b);break;case"L":A=B[M++],b=B[M++],P=T.L,_.addData(P,A,b);break;case"m":A+=B[M++],b+=B[M++],P=T.M,_.addData(P,A,b),w=A,E=b,F="l";break;case"M":A=B[M++],b=B[M++],P=T.M,_.addData(P,A,b),w=A,E=b,F="L";break;case"h":A+=B[M++],P=T.L,_.addData(P,A,b);break;case"H":A=B[M++],P=T.L,_.addData(P,A,b);break;case"v":b+=B[M++],P=T.L,_.addData(P,A,b);break;case"V":b=B[M++],P=T.L,_.addData(P,A,b);break;case"C":P=T.C,_.addData(P,B[M++],B[M++],B[M++],B[M++],B[M++],B[M++]),A=B[M-2],b=B[M-1];break;case"c":P=T.C,_.addData(P,B[M++]+A,B[M++]+b,B[M++]+A,B[M++]+b,B[M++]+A,B[M++]+b),A+=B[M-2],b+=B[M-1];break;case"S":j=A,K=b;var re=_.len(),Se=_.data;C===T.C&&(j+=A-Se[re-4],K+=b-Se[re-3]),P=T.C,$=B[M++],le=B[M++],A=B[M++],b=B[M++],_.addData(P,j,K,$,le,A,b);break;case"s":j=A,K=b;var re=_.len(),Se=_.data;C===T.C&&(j+=A-Se[re-4],K+=b-Se[re-3]),P=T.C,$=A+B[M++],le=b+B[M++],A+=B[M++],b+=B[M++],_.addData(P,j,K,$,le,A,b);break;case"Q":$=B[M++],le=B[M++],A=B[M++],b=B[M++],P=T.Q,_.addData(P,$,le,A,b);break;case"q":$=B[M++]+A,le=B[M++]+b,A+=B[M++],b+=B[M++],P=T.Q,_.addData(P,$,le,A,b);break;case"T":j=A,K=b;var re=_.len(),Se=_.data;C===T.Q&&(j+=A-Se[re-4],K+=b-Se[re-3]),A=B[M++],b=B[M++],P=T.Q,_.addData(P,j,K,A,b);break;case"t":j=A,K=b;var re=_.len(),Se=_.data;C===T.Q&&(j+=A-Se[re-4],K+=b-Se[re-3]),A+=B[M++],b+=B[M++],P=T.Q,_.addData(P,j,K,A,b);break;case"A":z=B[M++],V=B[M++],Q=B[M++],X=B[M++],te=B[M++],$=A,le=b,A=B[M++],b=B[M++],P=T.A,t($,le,A,b,X,te,z,V,Q,P,_);break;case"a":z=B[M++],V=B[M++],Q=B[M++],X=B[M++],te=B[M++],$=A,le=b,A+=B[M++],b+=B[M++],P=T.A,t($,le,A,b,X,te,z,V,Q,P,_);break}}(F==="z"||F==="Z")&&(P=T.Z,_.addData(P),A=w,b=E),C=P}return _.toStatic(),_}function r(g,A){var b=u(g);return A=A||{},A.buildPath=function(w){if(w.setData){w.setData(b.data);var E=w.getContext();E&&w.rebuildPath(E)}else{var E=w;b.rebuildPath(E)}},A.applyTransform=function(w){x(b,w),this.dirty(!0)},A}function s(g,A){return new y(r(g,A))}function c(g,A){return y.extend(r(g,A))}function h(g,A){for(var b=[],w=g.length,E=0;E<w;E++){var C=g[E];C.path||C.createPathProxy(),C.__dirtyPath&&C.buildPath(C.path,C.shape,!0),b.push(C.path)}var _=new y(A);return _.createPathProxy(),_.buildPath=function(T){T.appendPath(b);var S=T.getContext();S&&T.rebuildPath(S)},_}D.createFromString=s,D.extendFromString=c,D.mergePath=h},NFKh:function(R,D,i){(function(y,p,x){R.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"))})(this,function(y){return y})},NH9N:function(R,D,i){var y=i("bYtY"),p=i("mFDi"),x=i("Fofx"),v=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,E){this.api=E,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(w,E,C,_){if(this.model=w,this.api=C,this.ecModel=E,this.group.removeAll(),w.get("show",!0)){var T=this._layout(w,C),S=this._createGroup("mainGroup"),O=this._createGroup("labelGroup"),I=this._axis=this._createAxis(T,w);w.formatTooltip=function(F){return e(I.scale.getLabel(F))},r(["AxisLine","AxisTick","Control","CurrentPointer"],function(F){this["_render"+F](T,S,I,w)},this),this._renderAxisLabel(T,O,I,w),this._position(T,w)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(w,E){var C=w.get("label.position"),_=w.get("orient"),T=h(w,E);C==null||C==="auto"?C=_==="horizontal"?T.y+T.height/2<E.getHeight()/2?"-":"+":T.x+T.width/2<E.getWidth()/2?"+":"-":isNaN(C)&&(C={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[_][C]);var S={horizontal:"center",vertical:C>=0||C==="+"?"left":"right"},O={horizontal:C>=0||C==="+"?"top":"bottom",vertical:"middle"},I={horizontal:0,vertical:s/2},F=_==="vertical"?T.height:T.width,P=w.getModel("controlStyle"),B=P.get("show",!0),k=B?P.get("itemSize"):0,G=B?P.get("itemGap"):0,M=k+G,j=w.get("label.rotate")||0;j=j*s/180;var K,z,V,Q,X=P.get("position",!0),te=B&&P.get("showPlayBtn",!0),$=B&&P.get("showPrevBtn",!0),le=B&&P.get("showNextBtn",!0),re=0,Se=F;return X==="left"||X==="bottom"?(te&&(K=[0,0],re+=M),$&&(z=[re,0],re+=M),le&&(V=[Se-k,0],Se-=M)):(te&&(K=[Se-k,0],Se-=M),$&&(z=[0,0],re+=M),le&&(V=[Se-k,0],Se-=M)),Q=[re,Se],w.get("inverse")&&Q.reverse(),{viewRect:T,mainLength:F,orient:_,rotation:I[_],labelRotation:j,labelPosOpt:C,labelAlign:w.get("label.align")||S[_],labelBaseline:w.get("label.verticalAlign")||w.get("label.baseline")||O[_],playPosition:K,prevBtnPosition:z,nextBtnPosition:V,axisExtent:Q,controlSize:k,controlGap:G}},_position:function(w,E){var C=this._mainGroup,_=this._labelGroup,T=w.viewRect;if(w.orient==="vertical"){var S=x.create(),O=T.x,I=T.y+T.height;x.translate(S,S,[-O,-I]),x.rotate(S,S,-s/2),x.translate(S,S,[O,I]),T=T.clone(),T.applyTransform(S)}var F=z(T),P=z(C.getBoundingRect()),B=z(_.getBoundingRect()),k=C.position,G=_.position;G[0]=k[0]=F[0][0];var M=w.labelPosOpt;if(isNaN(M)){var j=M==="+"?0:1;V(k,P,F,1,j),V(G,B,F,1,1-j)}else{var j=M>=0?0:1;V(k,P,F,1,j),G[1]=k[1]+M}C.attr("position",k),_.attr("position",G),C.rotation=_.rotation=w.rotation,K(C),K(_);function K(Q){var X=Q.position;Q.origin=[F[0][0]-X[0],F[1][0]-X[1]]}function z(Q){return[[Q.x,Q.x+Q.width],[Q.y,Q.y+Q.height]]}function V(Q,X,te,$,le){Q[$]+=te[$][le]-X[$][le]}},_createAxis:function(w,E){var C=E.getData(),_=E.get("axisType"),T=n.createScaleByModel(E,_);T.getTicks=function(){return C.mapArray(["value"],function(I){return I})};var S=C.getDataExtent("value");T.setExtent(S[0],S[1]),T.niceTicks();var O=new d("value",T,w.axisExtent,_);return O.model=E,O},_createGroup:function(w){var E=this["_"+w]=new v.Group;return this.group.add(E),E},_renderAxisLine:function(w,E,C,_){var T=C.getExtent();if(!_.get("lineStyle.show"))return;E.add(new v.Line({shape:{x1:T[0],y1:0,x2:T[1],y2:0},style:y.extend({lineCap:"round"},_.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(w,E,C,_){var T=_.getData(),S=C.scale.getTicks();r(S,function(O){var I=C.dataToCoord(O),F=T.getItemModel(O),P=F.getModel("itemStyle"),B=F.getModel("emphasis.itemStyle"),k={position:[I,0],onclick:u(this._changeTimeline,this,O)},G=A(F,P,E,k);v.setHoverStyle(G,B.getItemStyle()),F.get("tooltip")?(G.dataIndex=O,G.dataModel=_):G.dataIndex=G.dataModel=null},this)},_renderAxisLabel:function(w,E,C,_){var T=C.getLabelModel();if(!T.get("show"))return;var S=_.getData(),O=C.getViewLabels();r(O,function(I){var F=I.tickValue,P=S.getItemModel(F),B=P.getModel("label"),k=P.getModel("emphasis.label"),G=C.dataToCoord(I.tickValue),M=new v.Text({position:[G,0],rotation:w.labelRotation-w.rotation,onclick:u(this._changeTimeline,this,F),silent:!1});v.setTextStyle(M.style,B,{text:I.formattedLabel,textAlign:w.labelAlign,textVerticalAlign:w.labelBaseline}),E.add(M),v.setHoverStyle(M,v.setTextStyle({},k))},this)},_renderControl:function(w,E,C,_){var T=w.controlSize,S=w.rotation,O=_.getModel("controlStyle").getItemStyle(),I=_.getModel("emphasis.controlStyle").getItemStyle(),F=[0,-T/2,T,T],P=_.getPlayState(),B=_.get("inverse",!0);k(w.nextBtnPosition,"controlStyle.nextIcon",u(this._changeTimeline,this,B?"-":"+")),k(w.prevBtnPosition,"controlStyle.prevIcon",u(this._changeTimeline,this,B?"+":"-")),k(w.playPosition,"controlStyle."+(P?"stopIcon":"playIcon"),u(this._handlePlayClick,this,!P),!0);function k(G,M,j,K){if(!G)return;var z={position:G,origin:[T/2,0],rotation:K?-S:0,rectHover:!0,style:O,onclick:j},V=g(_,M,F,z);E.add(V),v.setHoverStyle(V,I)}},_renderCurrentPointer:function(w,E,C,_){var T=_.getData(),S=_.getCurrentIndex(),O=T.getItemModel(S).getModel("checkpointStyle"),I=this,F={onCreate:function(P){P.draggable=!0,P.drift=u(I._handlePointerDrag,I),P.ondragend=u(I._handlePointerDragend,I),b(P,S,C,_,!0)},onUpdate:function(P){b(P,S,C,_)}};this._currentPointer=A(O,O,this._mainGroup,{},this._currentPointer,F)},_handlePlayClick:function(w){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:w,from:this.uid})},_handlePointerDrag:function(w,E,C){this._clearTimer(),this._pointerChangeTimeline([C.offsetX,C.offsetY])},_handlePointerDragend:function(w){this._pointerChangeTimeline([w.offsetX,w.offsetY],!0)},_pointerChangeTimeline:function(w,E){var C=this._toAxisCoord(w)[0],_=this._axis,T=t.asc(_.getExtent().slice());C>T[1]&&(C=T[1]),C<T[0]&&(C=T[0]),this._currentPointer.position[0]=C,this._currentPointer.dirty();var S=this._findNearestTick(C),O=this.model;(E||S!==O.getCurrentIndex()&&O.get("realtime"))&&this._changeTimeline(S)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(u(w,this),this.model.get("playInterval")));function w(){var E=this.model;this._changeTimeline(E.getCurrentIndex()+(E.get("rewind",!0)?-1:1))}},_toAxisCoord:function(w){var E=this._mainGroup.getLocalTransform();return v.applyTransform(w,E,!0)},_findNearestTick:function(w){var E=this.model.getData(),C=Infinity,_,T=this._axis;return E.each(["value"],function(S,O){var I=T.dataToCoord(S),F=Math.abs(I-w);F<C&&(C=F,_=O)}),_},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(w){var E=this.model.getCurrentIndex();w==="+"?w=E+1:w==="-"&&(w=E-1),this.api.dispatchAction({type:"timelineChange",currentIndex:w,from:this.uid})}});function h(w,E){return m.getLayoutRect(w.getBoxLayoutParams(),{width:E.getWidth(),height:E.getHeight()},w.get("padding"))}function g(w,E,C,_){var T=v.makePath(w.get(E).replace(/^path:\/\//,""),y.clone(_||{}),new p(C[0],C[1],C[2],C[3]),"center");return T}function A(w,E,C,_,T,S){var O=E.get("color");if(T)T.setColor(O),C.add(T),S&&S.onUpdate(T);else{var I=w.get("symbol");T=o(I,-1,-1,2,2,O),T.setStyle("strokeNoScale",!0),C.add(T),S&&S.onCreate(T)}var F=E.getItemStyle(["color","symbol","symbolSize"]);T.setStyle(F),_=y.merge({rectHover:!0,z2:100},_,!0);var P=w.get("symbolSize");P=P instanceof Array?P.slice():[+P,+P],P[0]/=2,P[1]/=2,_.scale=P;var B=w.get("symbolOffset");if(B){var k=_.position=_.position||[0,0];k[0]+=t.parsePercent(B[0],P[0]),k[1]+=t.parsePercent(B[1],P[1])}var G=w.get("symbolRotate");return _.rotation=(G||0)*Math.PI/180||0,T.attr(_),T.updateTransform(),T}function b(w,E,C,_,T){if(w.dragging)return;var S=_.getModel("checkpointStyle"),O=C.dataToCoord(_.getData().get(["value"],E));T||!S.get("animation",!0)?w.attr({position:[O,0]}):(w.stopAnimation(!0),w.animateTo({position:[O,0]},S.get("animationDuration",!0),S.get("animationEasing",!0)))}R.exports=c},NJEC:function(R,D,i){"use strict";var y=i("pVnL"),p=i.n(y),x=i("J4zp"),v=i.n(x),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"),A=void 0,b=function(E,C){var _={};for(var T in E)Object.prototype.hasOwnProperty.call(E,T)&&C.indexOf(T)<0&&(_[T]=E[T]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,T=Object.getOwnPropertySymbols(E);S<T.length;S++)C.indexOf(T[S])<0&&Object.prototype.propertyIsEnumerable.call(E,T[S])&&(_[T[S]]=E[T[S]]);return _},w=m.forwardRef(function(E,C){var _=m.useState(E.visible),T=v()(_,2),S=T[0],O=T[1];m.useEffect(function(){"visible"in E&&O(E.visible)},[E.visible]),m.useEffect(function(){"defaultVisible"in E&&O(E.defaultVisible)},[E.defaultVisible]);var I=function(Re,Pe){"visible"in E||O(Re),E.onVisibleChange&&E.onVisibleChange(Re,Pe)},F=function(Re){I(!1,Re),E.onConfirm&&E.onConfirm.call(A,Re)},P=function(Re){I(!1,Re),E.onCancel&&E.onCancel.call(A,Re)},B=function(Re){Re.keyCode===t.a.ESC&&S&&I(!1,Re)},k=function(Re){var Pe=E.disabled;if(Pe)return;I(Re)},G=function(Re,Pe){var Je=E.okButtonProps,Ge=E.cancelButtonProps,ct=E.title,Ue=E.cancelText,ae=E.okText,lt=E.okType,pe=E.icon;return m.createElement("div",{className:"".concat(Re,"-inner-content")},m.createElement("div",{className:"".concat(Re,"-message")},pe,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:P,size:"small"},Ge),Ue||Pe.cancelText),m.createElement(e.a,p()({onClick:F},Object(u.a)(lt),{size:"small"},Je),ae||Pe.okText)))},M=m.useContext(c.b),j=M.getPrefixCls,K=E.prefixCls,z=E.placement,V=E.children,Q=E.overlayClassName,X=b(E,["prefixCls","placement","children","overlayClassName"]),te=j("popover",K),$=j("popconfirm",K),le=l()($,Q),re=m.createElement(r.a,{componentName:"Popconfirm",defaultLocale:s.a.Popconfirm},function(Se){return G(te,Se)});return m.createElement(a.a,p()({},X,{prefixCls:te,placement:z,onVisibleChange:k,visible:S,overlay:re,overlayClassName:le,ref:C}),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(R,D,i){var y=i("lSCD"),p=i("E2jh"),x=i("GoyQ"),v=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(!x(e)||p(e))return!1;var u=y(e)?t:f;return u.test(v(e))}R.exports=a},NUBc:function(R,D,i){"use strict";var y=i("lSNA"),p=i.n(y),x=i("pVnL"),v=i.n(x),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,Ge="".concat(Pe.rootPrefixCls,"-item"),ct=r()(Ge,"".concat(Ge,"-").concat(Pe.page),(Je={},Object(l.a)(Je,"".concat(Ge,"-active"),Pe.active),Object(l.a)(Je,Pe.className,!!Pe.className),Object(l.a)(Je,"".concat(Ge,"-disabled"),!Pe.page),Je)),Ue=function(){Pe.onClick(Pe.page)},ae=function(pe){Pe.onKeyPress(pe,Pe.onClick,Pe.page)};return f.a.createElement("li",{title:Pe.showTitle?Pe.page:null,className:ct,onClick:Ue,onKeyPress:ae,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 Ge;Object(n.a)(this,Je);for(var ct=arguments.length,Ue=new Array(ct),ae=0;ae<ct;ae++)Ue[ae]=arguments[ae];return Ge=Pe.call.apply(Pe,[this].concat(Ue)),Ge.state={goInputText:""},Ge.buildOptionText=function(lt){return"".concat(lt," ").concat(Ge.props.locale.items_per_page)},Ge.changeSize=function(lt){Ge.props.changeSize(Number(lt))},Ge.handleChange=function(lt){Ge.setState({goInputText:lt.target.value})},Ge.handleBlur=function(lt){var pe=Ge.props,J=pe.goButton,Y=pe.quickGo,ee=pe.rootPrefixCls,fe=Ge.state.goInputText;if(J||fe==="")return;if(lt.relatedTarget&&(lt.relatedTarget.className.indexOf("".concat(ee,"-prev"))>=0||lt.relatedTarget.className.indexOf("".concat(ee,"-next"))>=0))return;Ge.setState({goInputText:""}),Y(Ge.getValidValue())},Ge.go=function(lt){var pe=Ge.state.goInputText;if(pe==="")return;(lt.keyCode===h.ENTER||lt.type==="click")&&(Ge.setState({goInputText:""}),Ge.props.quickGo(Ge.getValidValue()))},Ge}return Object(t.a)(Je,[{key:"getValidValue",value:function(){var ct=this.state,Ue=ct.goInputText,ae=ct.current;return!Ue||isNaN(Ue)?ae:Number(Ue)}},{key:"getPageSizeOptions",value:function(){var ct=this.props,Ue=ct.pageSize,ae=ct.pageSizeOptions;return ae.some(function(lt){return lt.toString()===Ue.toString()})?ae:ae.concat([Ue.toString()]).sort(function(lt,pe){var J=isNaN(Number(lt))?0:Number(lt),Y=isNaN(Number(pe))?0:Number(pe);return J-Y})}},{key:"render",value:function(){var ct=this,Ue=this.props,ae=Ue.pageSize,lt=Ue.locale,pe=Ue.rootPrefixCls,J=Ue.changeSize,Y=Ue.quickGo,ee=Ue.goButton,fe=Ue.selectComponentClass,we=Ue.buildOptionText,Ce=Ue.selectPrefixCls,_e=Ue.disabled,he=this.state.goInputText,ye="".concat(pe,"-options"),Le=fe,tt=null,gt=null,at=null;if(!J&&!Y)return null;var Fe=this.getPageSizeOptions();if(J&&Le){var mt=Fe.map(function(et,St){return f.a.createElement(Le.Option,{key:St,value:et.toString()},(we||ct.buildOptionText)(et))});tt=f.a.createElement(Le,{disabled:_e,prefixCls:Ce,showSearch:!1,className:"".concat(ye,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(ae||Fe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(St){return St.parentNode}},mt)}return Y&&(ee&&(at=typeof ee=="boolean"?f.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:_e,className:"".concat(ye,"-quick-jumper-button")},lt.jump_to_confirm):f.a.createElement("span",{onClick:this.go,onKeyUp:this.go},ee)),gt=f.a.createElement("div",{className:"".concat(ye,"-quick-jumper")},lt.jump_to,f.a.createElement("input",{disabled:_e,type:"text",value:he,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),lt.page,at)),f.a.createElement("li",{className:"".concat(ye)},tt,gt)}}]),Je}(f.a.Component);g.defaultProps={pageSizeOptions:["10","20","50","100"]};var A=g,b=i("N2Kk");function w(){}function E(Re){return typeof Re=="number"&&isFinite(Re)&&Math.floor(Re)===Re}function C(Re,Pe,Je){return Je}function _(Re,Pe,Je){var Ge=typeof Re=="undefined"?Pe.pageSize:Re;return Math.floor((Je.total-1)/Ge)+1}var T=function(Re){Object(a.a)(Je,Re);var Pe=Object(e.a)(Je);function Je(Ge){var ct;Object(n.a)(this,Je),ct=Pe.call(this,Ge),ct.getJumpPrevPage=function(){return Math.max(1,ct.state.current-(ct.props.showLessItems?3:5))},ct.getJumpNextPage=function(){return Math.min(_(void 0,ct.state,ct.props),ct.state.current+(ct.props.showLessItems?3:5))},ct.getItemIcon=function(J,Y){var ee=ct.props.prefixCls,fe=J||f.a.createElement("button",{type:"button","aria-label":Y,className:"".concat(ee,"-item-link")});return typeof J=="function"&&(fe=f.a.createElement(J,Object(o.a)({},ct.props))),fe},ct.savePaginationNode=function(J){ct.paginationNode=J},ct.isValid=function(J){return E(J)&&J!==ct.state.current},ct.shouldDisplayQuickJumper=function(){var J=ct.props,Y=J.showQuickJumper,ee=J.pageSize,fe=J.total;return fe<=ee?!1:Y},ct.handleKeyDown=function(J){(J.keyCode===h.ARROW_UP||J.keyCode===h.ARROW_DOWN)&&J.preventDefault()},ct.handleKeyUp=function(J){var Y=ct.getValidValue(J),ee=ct.state.currentInputValue;Y!==ee&&ct.setState({currentInputValue:Y}),J.keyCode===h.ENTER?ct.handleChange(Y):J.keyCode===h.ARROW_UP?ct.handleChange(Y-1):J.keyCode===h.ARROW_DOWN&&ct.handleChange(Y+1)},ct.changePageSize=function(J){var Y=ct.state.current,ee=_(J,ct.state,ct.props);Y=Y>ee?ee:Y,ee===0&&(Y=ct.state.current),typeof J=="number"&&("pageSize"in ct.props||ct.setState({pageSize:J}),"current"in ct.props||ct.setState({current:Y,currentInputValue:Y})),ct.props.onShowSizeChange(Y,J),"onChange"in ct.props&&ct.props.onChange&&ct.props.onChange(Y,J)},ct.handleChange=function(J){var Y=ct.props.disabled,ee=J;if(ct.isValid(ee)&&!Y){var fe=_(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 we=ct.state.pageSize;return ct.props.onChange(ee,we),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<_(void 0,ct.state,ct.props)},ct.runIfEnter=function(J,Y){if(J.key==="Enter"||J.charCode===13){for(var ee=arguments.length,fe=new Array(ee>2?ee-2:0),we=2;we<ee;we++)fe[we-2]=arguments[we];Y.apply(void 0,fe)}},ct.runIfEnterPrev=function(J){ct.runIfEnter(J,ct.prev)},ct.runIfEnterNext=function(J){ct.runIfEnter(J,ct.next)},ct.runIfEnterJumpPrev=function(J){ct.runIfEnter(J,ct.jumpPrev)},ct.runIfEnterJumpNext=function(J){ct.runIfEnter(J,ct.jumpNext)},ct.handleGoTO=function(J){(J.keyCode===h.ENTER||J.type==="click")&&ct.handleChange(ct.state.currentInputValue)};var Ue=Ge.onChange!==w,ae="current"in Ge;ae&&!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 lt=Ge.defaultCurrent;"current"in Ge&&(lt=Ge.current);var pe=Ge.defaultPageSize;return"pageSize"in Ge&&(pe=Ge.pageSize),lt=Math.min(lt,_(pe,void 0,Ge)),ct.state={current:lt,currentInputValue:lt,pageSize:pe},ct}return Object(t.a)(Je,[{key:"componentDidUpdate",value:function(ct,Ue){var ae=this.props.prefixCls;if(Ue.current!==this.state.current&&this.paginationNode){var lt=this.paginationNode.querySelector(".".concat(ae,"-item-").concat(Ue.current));lt&&document.activeElement===lt&<.blur()}}},{key:"getValidValue",value:function(ct){var Ue=ct.target.value,ae=_(void 0,this.state,this.props),lt=this.state.currentInputValue,pe;return Ue===""?pe=Ue:isNaN(Number(Ue))?pe=lt:Ue>=ae?pe=ae:pe=Number(Ue),pe}},{key:"getShowSizeChanger",value:function(){var ct=this.props,Ue=ct.showSizeChanger,ae=ct.total,lt=ct.totalBoundaryShowSizeChanger;return typeof Ue!="undefined"?Ue:ae>lt}},{key:"renderPrev",value:function(ct){var Ue=this.props,ae=Ue.prevIcon,lt=Ue.itemRender,pe=lt(ct,"prev",this.getItemIcon(ae,"prev page")),J=!this.hasPrev();return Object(m.isValidElement)(pe)?Object(m.cloneElement)(pe,{disabled:J}):pe}},{key:"renderNext",value:function(ct){var Ue=this.props,ae=Ue.nextIcon,lt=Ue.itemRender,pe=lt(ct,"next",this.getItemIcon(ae,"next page")),J=!this.hasNext();return Object(m.isValidElement)(pe)?Object(m.cloneElement)(pe,{disabled:J}):pe}},{key:"render",value:function(){var ct=this,Ue=this.props,ae=Ue.prefixCls,lt=Ue.className,pe=Ue.style,J=Ue.disabled,Y=Ue.hideOnSinglePage,ee=Ue.total,fe=Ue.locale,we=Ue.showQuickJumper,Ce=Ue.showLessItems,_e=Ue.showTitle,he=Ue.showTotal,ye=Ue.simple,Le=Ue.itemRender,tt=Ue.showPrevNextJumpers,gt=Ue.jumpPrevIcon,at=Ue.jumpNextIcon,Fe=Ue.selectComponentClass,mt=Ue.selectPrefixCls,et=Ue.pageSizeOptions,St=this.state,jt=St.current,Mt=St.pageSize,Ot=St.currentInputValue;if(Y===!0&&ee<=Mt)return null;var Bt=_(void 0,this.state,this.props),Ke=[],de=null,se=null,ut=null,qe=null,me=null,Wt=we&&we.goButton,dr=Ce?1:2,vt=jt-1>0?jt-1:0,rr=jt+1<Bt?jt+1:Bt,ur=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 Wt&&(typeof Wt=="boolean"?me=f.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},fe.jump_to_confirm):me=f.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Wt),me=f.a.createElement("li",{title:_e?"".concat(fe.jump_to).concat(jt,"/").concat(Bt):null,className:"".concat(ae,"-simple-pager")},me)),f.a.createElement("ul",Object(d.a)({className:r()(ae,"".concat(ae,"-simple"),Object(l.a)({},"".concat(ae,"-disabled"),J),lt),style:pe,ref:this.savePaginationNode},ur),f.a.createElement("li",{title:_e?fe.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:r()("".concat(ae,"-prev"),Object(l.a)({},"".concat(ae,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(vt)),f.a.createElement("li",{title:_e?"".concat(jt,"/").concat(Bt):null,className:"".concat(ae,"-simple-pager")},f.a.createElement("input",{type:"text",value:Ot,disabled:J,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),f.a.createElement("span",{className:"".concat(ae,"-slash")},"/"),Bt),f.a.createElement("li",{title:_e?fe.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:r()("".concat(ae,"-next"),Object(l.a)({},"".concat(ae,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(rr)),me);if(Bt<=3+dr*2){var mn={locale:fe,rootPrefixCls:ae,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:_e,itemRender:Le};Bt||Ke.push(f.a.createElement(c,Object(d.a)({},mn,{key:"noPager",page:Bt,className:"".concat(ae,"-disabled")})));for(var sr=1;sr<=Bt;sr+=1){var xr=jt===sr;Ke.push(f.a.createElement(c,Object(d.a)({},mn,{key:sr,page:sr,active:xr})))}}else{var pr=Ce?fe.prev_3:fe.prev_5,Zt=Ce?fe.next_3:fe.next_5;tt&&(de=f.a.createElement("li",{title:_e?pr:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:r()("".concat(ae,"-jump-prev"),Object(l.a)({},"".concat(ae,"-jump-prev-custom-icon"),!!gt))},Le(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(gt,"prev page"))),se=f.a.createElement("li",{title:_e?Zt:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:r()("".concat(ae,"-jump-next"),Object(l.a)({},"".concat(ae,"-jump-next-custom-icon"),!!at))},Le(this.getJumpNextPage(),"jump-next",this.getItemIcon(at,"next page")))),qe=f.a.createElement(c,{locale:fe,last:!0,rootPrefixCls:ae,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Bt,page:Bt,active:!1,showTitle:_e,itemRender:Le}),ut=f.a.createElement(c,{locale:fe,rootPrefixCls:ae,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:_e,itemRender:Le});var Ct=Math.max(1,jt-dr),on=Math.min(jt+dr,Bt);jt-1<=dr&&(on=1+dr*2),Bt-jt<=dr&&(Ct=Bt-dr*2);for(var Mn=Ct;Mn<=on;Mn+=1){var Xn=jt===Mn;Ke.push(f.a.createElement(c,{locale:fe,rootPrefixCls:ae,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Mn,page:Mn,active:Xn,showTitle:_e,itemRender:Le}))}jt-1>=dr*2&&jt!==1+2&&(Ke[0]=Object(m.cloneElement)(Ke[0],{className:"".concat(ae,"-item-after-jump-prev")}),Ke.unshift(de)),Bt-jt>=dr*2&&jt!==Bt-2&&(Ke[Ke.length-1]=Object(m.cloneElement)(Ke[Ke.length-1],{className:"".concat(ae,"-item-before-jump-next")}),Ke.push(se)),Ct!==1&&Ke.unshift(ut),on!==Bt&&Ke.push(qe)}var oi=null;he&&(oi=f.a.createElement("li",{className:"".concat(ae,"-total-text")},he(ee,[ee===0?0:(jt-1)*Mt+1,jt*Mt>ee?ee:jt*Mt])));var Ui=!this.hasPrev()||!Bt,Un=!this.hasNext()||!Bt;return f.a.createElement("ul",Object(d.a)({className:r()(ae,lt,Object(l.a)({},"".concat(ae,"-disabled"),J)),style:pe,unselectable:"unselectable",ref:this.savePaginationNode},ur),oi,f.a.createElement("li",{title:_e?fe.prev_page:null,onClick:this.prev,tabIndex:Ui?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(ae,"-prev"),Object(l.a)({},"".concat(ae,"-disabled"),Ui)),"aria-disabled":Ui},this.renderPrev(vt)),Ke,f.a.createElement("li",{title:_e?fe.next_page:null,onClick:this.next,tabIndex:Un?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(ae,"-next"),Object(l.a)({},"".concat(ae,"-disabled"),Un)),"aria-disabled":Un},this.renderNext(rr)),f.a.createElement(A,{disabled:J,locale:fe,rootPrefixCls:ae,selectComponentClass:Fe,selectPrefixCls:mt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:jt,pageSize:Mt,pageSizeOptions:et,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Wt}))}}],[{key:"getDerivedStateFromProps",value:function(ct,Ue){var ae={};if("current"in ct&&(ae.current=ct.current,ct.current!==Ue.current&&(ae.currentInputValue=ae.current)),"pageSize"in ct&&ct.pageSize!==Ue.pageSize){var lt=Ue.current,pe=_(ct.pageSize,Ue,ct);lt=lt>pe?pe:lt,"current"in ct||(ae.current=lt,ae.currentInputValue=lt),ae.pageSize=ct.pageSize}return ae}}]),Je}(f.a.Component);T.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:C,totalBoundaryShowSizeChanger:50};var S=T,O=i("H4fg"),I=i("DFhj"),F=i.n(I),P=i("fEPi"),B=i.n(P),k=i("u9fO"),G=i.n(k),M=i("mO/d"),j=i.n(M),K=i("2fM7"),z=function(Pe){return m.createElement(K.a,v()({size:"small"},Pe))};z.Option=K.a.Option;var V=z,Q=i("YMnH"),X=i("H84U"),te=i("5OYt"),$=function(Re,Pe){var Je={};for(var Ge in Re)Object.prototype.hasOwnProperty.call(Re,Ge)&&Pe.indexOf(Ge)<0&&(Je[Ge]=Re[Ge]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Ge=Object.getOwnPropertySymbols(Re);ct<Ge.length;ct++)Pe.indexOf(Ge[ct])<0&&Object.prototype.propertyIsEnumerable.call(Re,Ge[ct])&&(Je[Ge[ct]]=Re[Ge[ct]]);return Je},le=function(Pe){var Je=Pe.prefixCls,Ge=Pe.selectPrefixCls,ct=Pe.className,Ue=Pe.size,ae=Pe.locale,lt=$(Pe,["prefixCls","selectPrefixCls","className","size","locale"]),pe=Object(te.a)(),J=pe.xs,Y=m.useContext(X.b),ee=Y.getPrefixCls,fe=Y.direction,we=ee("pagination",Je),Ce=function(){var ye=m.createElement("span",{className:"".concat(we,"-item-ellipsis")},"\u2022\u2022\u2022"),Le=m.createElement("button",{className:"".concat(we,"-item-link"),type:"button",tabIndex:-1},m.createElement(F.a,null)),tt=m.createElement("button",{className:"".concat(we,"-item-link"),type:"button",tabIndex:-1},m.createElement(B.a,null)),gt=m.createElement("a",{className:"".concat(we,"-item-link")},m.createElement("div",{className:"".concat(we,"-item-container")},m.createElement(G.a,{className:"".concat(we,"-item-link-icon")}),ye)),at=m.createElement("a",{className:"".concat(we,"-item-link")},m.createElement("div",{className:"".concat(we,"-item-container")},m.createElement(j.a,{className:"".concat(we,"-item-link-icon")}),ye));if(fe==="rtl"){var Fe=[tt,Le];Le=Fe[0],tt=Fe[1];var mt=[at,gt];gt=mt[0],at=mt[1]}return{prevIcon:Le,nextIcon:tt,jumpPrevIcon:gt,jumpNextIcon:at}},_e=function(ye){var Le=v()(v()({},ye),ae),tt=Ue==="small"||!!(J&&!Ue&<.responsive),gt=ee("select",Ge),at=r()(ct,p()({mini:tt},"".concat(we,"-rtl"),fe==="rtl"));return m.createElement(S,v()({},lt,{prefixCls:we,selectPrefixCls:gt},Ce(),{className:at,selectComponentClass:tt?V:K.a,locale:Le}))};return m.createElement(Q.a,{componentName:"Pagination",defaultLocale:O.a},_e)},re=le,Se=D.a=re},NohK:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=function(x){var v=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(){x.apply(f,l)},v)}};D.default=y},Npjl:function(R,D){function i(y,p){return y==null?void 0:y[p]}R.exports=i},Nu4q:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:function(x,v){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:x}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:v}},{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:v}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:v}},{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:x}}]}},name:"picture",theme:"twotone"};D.default=y},"O/iA":function(R,D,i){},O3gP:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("O/iA"),v=i.n(x),m=i("OaEy")},OELB:function(R,D,i){var y=i("bYtY"),p=1e-4;function x(E){return E.replace(/^\s+|\s+$/g,"")}function v(E,C,_,T){var S=C[1]-C[0],O=_[1]-_[0];if(S===0)return O===0?_[0]:(_[0]+_[1])/2;if(T)if(S>0){if(E<=C[0])return _[0];if(E>=C[1])return _[1]}else{if(E>=C[0])return _[0];if(E<=C[1])return _[1]}else{if(E===C[0])return _[0];if(E===C[1])return _[1]}return(E-C[0])/S*O+_[0]}function m(E,C){switch(E){case"center":case"middle":E="50%";break;case"left":case"top":E="0%";break;case"right":case"bottom":E="100%";break}return typeof E=="string"?x(E).match(/%$/)?parseFloat(E)/100*C:parseFloat(E):E==null?NaN:+E}function f(E,C,_){return C==null&&(C=10),C=Math.min(Math.max(0,C),20),E=(+E).toFixed(C),_?E:+E}function d(E){return E.sort(function(C,_){return C-_}),E}function l(E){if(E=+E,isNaN(E))return 0;for(var C=1,_=0;Math.round(E*C)/C!==E;)C*=10,_++;return _}function o(E){var C=E.toString(),_=C.indexOf("e");if(_>0){var T=+C.slice(_+1);return T<0?-T:0}else{var S=C.indexOf(".");return S<0?0:C.length-1-S}}function n(E,C){var _=Math.log,T=Math.LN10,S=Math.floor(_(E[1]-E[0])/T),O=Math.round(_(Math.abs(C[1]-C[0]))/T),I=Math.min(Math.max(-S+O,0),20);return isFinite(I)?I:20}function t(E,C,_){if(!E[C])return 0;var T=y.reduce(E,function(K,z){return K+(isNaN(z)?0:z)},0);if(T===0)return 0;for(var S=Math.pow(10,_),O=y.map(E,function(K){return(isNaN(K)?0:K)/T*S*100}),I=S*100,F=y.map(O,function(K){return Math.floor(K)}),P=y.reduce(F,function(K,z){return K+z},0),B=y.map(O,function(K,z){return K-F[z]});P<I;){for(var k=Number.NEGATIVE_INFINITY,G=null,M=0,j=B.length;M<j;++M)B[M]>k&&(k=B[M],G=M);++F[G],B[G]=0,++P}return F[C]/S}var a=9007199254740991;function e(E){var C=Math.PI*2;return(E%C+C)%C}function u(E){return E>-p&&E<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(E){if(E instanceof Date)return E;if(typeof E=="string"){var C=r.exec(E);if(!C)return new Date(NaN);if(C[8]){var _=+C[4]||0;return C[8].toUpperCase()!=="Z"&&(_-=C[8].slice(0,3)),new Date(Date.UTC(+C[1],+(C[2]||1)-1,+C[3]||1,_,+(C[5]||0),+C[6]||0,+C[7]||0))}else return new Date(+C[1],+(C[2]||1)-1,+C[3]||1,+C[4]||0,+(C[5]||0),+C[6]||0,+C[7]||0)}else if(E==null)return new Date(NaN);return new Date(Math.round(E))}function c(E){return Math.pow(10,h(E))}function h(E){if(E===0)return 0;var C=Math.floor(Math.log(E)/Math.LN10);return E/Math.pow(10,C)>=10&&C++,C}function g(E,C){var _=h(E),T=Math.pow(10,_),S=E/T,O;return C?S<1.5?O=1:S<2.5?O=2:S<4?O=3:S<7?O=5:O=10:S<1?O=1:S<2?O=2:S<3?O=3:S<5?O=5:O=10,E=O*T,_>=-20?+E.toFixed(_<0?-_:0):E}function A(E,C){var _=(E.length-1)*C+1,T=Math.floor(_),S=+E[T-1],O=_-T;return O?S+O*(E[T]-S):S}function b(E){E.sort(function(P,B){return F(P,B,0)?-1:1});for(var C=-Infinity,_=1,T=0;T<E.length;){for(var S=E[T].interval,O=E[T].close,I=0;I<2;I++)S[I]<=C&&(S[I]=C,O[I]=I?1:1-_),C=S[I],_=O[I];S[0]===S[1]&&O[0]*O[1]!==1?E.splice(T,1):T++}return E;function F(P,B,k){return P.interval[k]<B.interval[k]||P.interval[k]===B.interval[k]&&(P.close[k]-B.close[k]===(k?-1:1)||!k&&F(P,B,1))}}function w(E){return E-parseFloat(E)>=0}D.linearMap=v,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=A,D.reformIntervals=b,D.isNumeric=w},OKJ2:function(R,D,i){var y=i("KxfA"),p=y.retrieveRawValue,x=i("7aKB"),v=x.getTooltipMarker,m=x.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"),A=g&&g.get("renderMode"),b=d(A),w=this.mainType,E=w==="series",C=a.userOutput;return{componentType:w,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:E?this.subType:null,seriesIndex:this.seriesIndex,seriesId:E?this.id:null,seriesName:E?this.name:null,name:r,dataIndex:u,data:s,dataType:t,value:e,color:c,borderColor:h,dimensionNames:C?C.dimensionNames:null,encode:C?C.encode:null,marker:v({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(A,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(){}};R.exports=o},OLod:function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("K3mO"))})(this,function(y){y.lib.Cipher||function(p){var x=y,v=x.lib,m=v.Base,f=v.WordArray,d=v.BufferedBlockAlgorithm,l=x.enc,o=l.Utf8,n=l.Base64,t=x.algo,a=t.EvpKDF,e=v.Cipher=d.extend({cfg:m.extend(),createEncryptor:function(I,F){return this.create(this._ENC_XFORM_MODE,I,F)},createDecryptor:function(I,F){return this.create(this._DEC_XFORM_MODE,I,F)},init:function(I,F,P){this.cfg=this.cfg.extend(P),this._xformMode=I,this._key=F,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var F=this._doFinalize();return F},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function O(I){return typeof I=="string"?S:C}return function(I){return{encrypt:function(P,B,k){return O(B).encrypt(I,P,B,k)},decrypt:function(P,B,k){return O(B).decrypt(I,P,B,k)}}}}()}),u=v.StreamCipher=e.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1}),r=x.mode={},s=v.BlockCipherMode=m.extend({createEncryptor:function(I,F){return this.Encryptor.create(I,F)},createDecryptor:function(I,F){return this.Decryptor.create(I,F)},init:function(I,F){this._cipher=I,this._iv=F}}),c=r.CBC=function(){var O=s.extend();O.Encryptor=O.extend({processBlock:function(P,B){var k=this._cipher,G=k.blockSize;I.call(this,P,B,G),k.encryptBlock(P,B),this._prevBlock=P.slice(B,B+G)}}),O.Decryptor=O.extend({processBlock:function(P,B){var k=this._cipher,G=k.blockSize,M=P.slice(B,B+G);k.decryptBlock(P,B),I.call(this,P,B,G),this._prevBlock=M}});function I(F,P,B){var k,G=this._iv;G?(k=G,this._iv=p):k=this._prevBlock;for(var M=0;M<B;M++)F[P+M]^=k[M]}return O}(),h=x.pad={},g=h.Pkcs7={pad:function(I,F){for(var P=F*4,B=P-I.sigBytes%P,k=B<<24|B<<16|B<<8|B,G=[],M=0;M<B;M+=4)G.push(k);var j=f.create(G,B);I.concat(j)},unpad:function(I){var F=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=F}},A=v.BlockCipher=e.extend({cfg:e.cfg.extend({mode:c,padding:g}),reset:function(){var I;e.reset.call(this);var F=this.cfg,P=F.iv,B=F.mode;this._xformMode==this._ENC_XFORM_MODE?I=B.createEncryptor:(I=B.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,P&&P.words):(this._mode=I.call(B,this,P&&P.words),this._mode.__creator=I)},_doProcessBlock:function(I,F){this._mode.processBlock(I,F)},_doFinalize:function(){var I,F=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(F.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),F.unpad(I)),I},blockSize:128/32}),b=v.CipherParams=m.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),w=x.format={},E=w.OpenSSL={stringify:function(I){var F,P=I.ciphertext,B=I.salt;return B?F=f.create([1398893684,1701076831]).concat(B).concat(P):F=P,F.toString(n)},parse:function(I){var F,P=n.parse(I),B=P.words;return B[0]==1398893684&&B[1]==1701076831&&(F=f.create(B.slice(2,4)),B.splice(0,4),P.sigBytes-=16),b.create({ciphertext:P,salt:F})}},C=v.SerializableCipher=m.extend({cfg:m.extend({format:E}),encrypt:function(I,F,P,B){B=this.cfg.extend(B);var k=I.createEncryptor(P,B),G=k.finalize(F),M=k.cfg;return b.create({ciphertext:G,key:P,iv:M.iv,algorithm:I,mode:M.mode,padding:M.padding,blockSize:I.blockSize,formatter:B.format})},decrypt:function(I,F,P,B){B=this.cfg.extend(B),F=this._parse(F,B.format);var k=I.createDecryptor(P,B).finalize(F.ciphertext);return k},_parse:function(I,F){return typeof I=="string"?F.parse(I,this):I}}),_=x.kdf={},T=_.OpenSSL={execute:function(I,F,P,B){B||(B=f.random(64/8));var k=a.create({keySize:F+P}).compute(I,B),G=f.create(k.words.slice(F),P*4);return k.sigBytes=F*4,b.create({key:k,iv:G,salt:B})}},S=v.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:T}),encrypt:function(I,F,P,B){B=this.cfg.extend(B);var k=B.kdf.execute(P,I.keySize,I.ivSize);B.iv=k.iv;var G=C.encrypt.call(this,I,F,k.key,B);return G.mixIn(k),G},decrypt:function(I,F,P,B){B=this.cfg.extend(B),F=this._parse(F,B.format);var k=B.kdf.execute(P,I.keySize,I.ivSize,F.salt);B.iv=k.iv;var G=C.decrypt.call(this,I,F,k.key,B);return G}})}()})},OPEp:function(R,D,i){},OQFs:function(R,D,i){var y=i("KCsZ"),p=y([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),x={getLineStyle:function(v){var m=p(this,v);return m.lineDash=this.getLineDash(m.lineWidth),m},getLineDash:function(v){v==null&&(v=1);var m=this.get("type"),f=Math.max(v,2),d=v*4;return m==="solid"||m==null?!1:m==="dashed"?[d,d]:[f,f]}};R.exports=x},OS9S:function(R,D,i){var y=i("bYtY"),p=y.inherits,x=i("Gev7"),v=i("mFDi");function m(l){x.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 v(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,x);var d=m;R.exports=d},OUJF:function(R,D,i){var y=i("ProS"),p=i("bYtY");y.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(x,v){var m=v.getComponent("timeline");return m&&x.currentIndex!=null&&(m.setCurrentIndex(x.currentIndex),!m.get("loop",!0)&&m.isIndexMax()&&m.setPlayState(!1)),v.resetOption("timeline"),p.defaults({currentIndex:m.option.currentIndex},x)}),y.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(x,v){var m=v.getComponent("timeline");m&&x.playState!=null&&m.setPlayState(x.playState)})},OXB0:function(R,D,i){var y=i("T4UG"),p=i("MwEJ"),x=i("IDmD"),v=y.extend({type:"series.heatmap",getInitialData:function(m,f){return p(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var m=x.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}});R.exports=v},OaEy:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("bKJz"),v=i.n(x),m=i("R9oj")},"Of+w":function(R,D,i){var y=i("Cwc5"),p=i("Kz5y"),x=y(p,"WeakMap");R.exports=x},Ol7k:function(R,D,i){"use strict";var y=i("PKem"),p=i("ZX9x");y.b.Sider=p.b,D.a=y.b},OlYY:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("ProS"),v=i("bYtY"),m=i("ItGF"),f=i("4NO4"),d=i("UOVi"),l=i("zDms"),o=v.each,n=d.eachAxisDim,t=x.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);v.merge(this.option,r,!0),v.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 A=this.dependentModels[s.axis][c],b=A.__dzAxisProxy||(A.__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(A){r&&A.get("orient",!0)===s&&(c.singleAxisIndex=[A.componentIndex],r=!1)})}r&&n(function(A){if(!r)return;var b=[],w=this.dependentModels[A.axis];if(w.length&&!b.length)for(var E=0,C=w.length;E<C;E++)w[E].get("type")==="category"&&b.push(E);c[A.axisIndex]=b,b.length&&(r=!1)},this),r&&this.ecModel.eachSeries(function(A){this._isSeriesHasAllAxesTypeOf(A,"value")&&n(function(b){var w=c[b.axisIndex],E=A.get(b.axisIndex),C=A.get(b.axisId),_=A.ecModel.queryComponents({mainType:b.axis,index:E,id:C})[0];E=_.componentIndex,v.indexOf(w,E)<0&&w.push(E)})},this)},_autoSetOrient:function(){var r;this.eachTargetAxis(function(s){!r&&(r=s.name)},this),this.option.orient=r==="y"?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(r,s){var c=!0;return n(function(h){var g=r.get(h.axisIndex),A=this.dependentModels[h.axis][g];(!A||A.get("type")!==s)&&(c=!1)},this),c},_setDefaultThrottle:function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var s=this.ecModel.option;this.option.throttle=s.animation&&s.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var r;return 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,A){var b=s[g[0]]!=null,w=s[g[1]]!=null;b&&!w?c[A]="percent":!b&&w?c[A]="value":h?c[A]=h[A]:b&&(c[A]="percent")})}var u=t;R.exports=u},OnYD:function(R,D,i){},"Oy/b":function(R,D,i){(function(p,x){R.exports=x()})(typeof self!="undefined"?self:this,function(){return function(y){var p={};function x(v){if(p[v])return p[v].exports;var m=p[v]={i:v,l:!1,exports:{}};return y[v].call(m.exports,m,m.exports,x),m.l=!0,m.exports}return x.m=y,x.c=p,x.d=function(v,m,f){x.o(v,m)||Object.defineProperty(v,m,{enumerable:!0,get:f})},x.r=function(v){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},x.t=function(v,m){if(m&1&&(v=x(v)),m&8)return v;if(m&4&&typeof v=="object"&&v&&v.__esModule)return v;var f=Object.create(null);if(x.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:v}),m&2&&typeof v!="string")for(var d in v)x.d(f,d,function(l){return v[l]}.bind(null,d));return f},x.n=function(v){var m=v&&v.__esModule?function(){return v.default}:function(){return v};return x.d(m,"a",m),m},x.o=function(v,m){return Object.prototype.hasOwnProperty.call(v,m)},x.p="",x(x.s=1)}([function(y,p,x){},function(y,p,x){"use strict";x.r(p);var v=x(0),m=function(){function Rt(ce,xe,Ie){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=ce,this.start=xe,this.end=Ie}return Rt.range=function(xe,Ie){return Ie?!xe||!xe.loc||!Ie.loc||xe.loc.lexer!==Ie.loc.lexer?null:new Rt(xe.loc.lexer,xe.loc.start,Ie.loc.end):xe&&xe.loc},Rt}(),f=function(){function Rt(xe,Ie){this.text=void 0,this.loc=void 0,this.text=xe,this.loc=Ie}var ce=Rt.prototype;return ce.range=function(Ie,Qe){return new Rt(Qe,m.range(this,Ie))},Rt}(),d=function Rt(ce,xe){this.position=void 0;var Ie="KaTeX parse error: "+ce,Qe,kt=xe&&xe.loc;if(kt&&kt.start<=kt.end){var or=kt.lexer.input;Qe=kt.start;var Qr=kt.end;Qe===or.length?Ie+=" at end of input: ":Ie+=" at position "+(Qe+1)+": ";var fn=or.slice(Qe,Qr).replace(/[^]/g,"$&\u0332"),Ln;Qe>15?Ln="\u2026"+or.slice(Qe-15,Qe):Ln=or.slice(0,Qe);var ui;Qr+15<or.length?ui=or.slice(Qr,Qr+15)+"\u2026":ui=or.slice(Qr),Ie+=Ln+fn+ui}var wi=new Error(Ie);return wi.name="ParseError",wi.__proto__=Rt.prototype,wi.position=Qe,wi};d.prototype.__proto__=Error.prototype;var l=d,o=function(ce,xe){return ce.indexOf(xe)!==-1},n=function(ce,xe){return ce===void 0?xe:ce},t=/([A-Z])/g,a=function(ce){return ce.replace(t,"-$1").toLowerCase()},e={"&":"&",">":">","<":"<",'"':""","'":"'"},u=/[&><"']/g;function r(Rt){return String(Rt).replace(u,function(ce){return e[ce]})}var s=function Rt(ce){return ce.type==="ordgroup"||ce.type==="color"?ce.body.length===1?Rt(ce.body[0]):ce:ce.type==="font"?Rt(ce.body):ce},c=function(ce){var xe=s(ce);return xe.type==="mathord"||xe.type==="textord"||xe.type==="atom"},h=function(ce){if(!ce)throw new Error("Expected non-null, but got "+String(ce));return ce},g=function(ce){var xe=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(ce);return xe!=null?xe[1]:"_relative"},A={contains:o,deflt:n,escape:r,hyphenate:a,getBaseElem:s,isCharacterBox:c,protocolFromUrl:g},b=function(){function Rt(xe){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,xe=xe||{},this.displayMode=A.deflt(xe.displayMode,!1),this.output=A.deflt(xe.output,"htmlAndMathml"),this.leqno=A.deflt(xe.leqno,!1),this.fleqn=A.deflt(xe.fleqn,!1),this.throwOnError=A.deflt(xe.throwOnError,!0),this.errorColor=A.deflt(xe.errorColor,"#cc0000"),this.macros=xe.macros||{},this.minRuleThickness=Math.max(0,A.deflt(xe.minRuleThickness,0)),this.colorIsTextColor=A.deflt(xe.colorIsTextColor,!1),this.strict=A.deflt(xe.strict,"warn"),this.trust=A.deflt(xe.trust,!1),this.maxSize=Math.max(0,A.deflt(xe.maxSize,Infinity)),this.maxExpand=Math.max(0,A.deflt(xe.maxExpand,1e3))}var ce=Rt.prototype;return ce.reportNonstrict=function(Ie,Qe,kt){var or=this.strict;if(typeof or=="function"&&(or=or(Ie,Qe,kt)),!or||or==="ignore")return;if(or===!0||or==="error")throw new l("LaTeX-incompatible input and strict mode is set to 'error': "+(Qe+" ["+Ie+"]"),kt);or==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Qe+" ["+Ie+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+or+"': "+Qe+" ["+Ie+"]"))},ce.useStrictBehavior=function(Ie,Qe,kt){var or=this.strict;if(typeof or=="function")try{or=or(Ie,Qe,kt)}catch(Qr){or="error"}return!or||or==="ignore"?!1:or===!0||or==="error"?!0:or==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Qe+" ["+Ie+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+or+"': "+Qe+" ["+Ie+"]")),!1)},ce.isTrusted=function(Ie){Ie.url&&!Ie.protocol&&(Ie.protocol=A.protocolFromUrl(Ie.url));var Qe=typeof this.trust=="function"?this.trust(Ie):this.trust;return Boolean(Qe)},Rt}(),w=function(){function Rt(xe,Ie,Qe){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=xe,this.size=Ie,this.cramped=Qe}var ce=Rt.prototype;return ce.sup=function(){return P[B[this.id]]},ce.sub=function(){return P[k[this.id]]},ce.fracNum=function(){return P[G[this.id]]},ce.fracDen=function(){return P[M[this.id]]},ce.cramp=function(){return P[j[this.id]]},ce.text=function(){return P[K[this.id]]},ce.isTight=function(){return this.size>=2},Rt}(),E=0,C=1,_=2,T=3,S=4,O=5,I=6,F=7,P=[new w(E,0,!1),new w(C,0,!0),new w(_,1,!1),new w(T,1,!0),new w(S,2,!1),new w(O,2,!0),new w(I,3,!1),new w(F,3,!0)],B=[S,O,S,O,I,F,I,F],k=[O,O,O,O,F,F,F,F],G=[_,T,S,O,I,F,I,F],M=[T,T,O,O,F,F,F,F],j=[C,C,T,T,O,O,F,F],K=[E,C,_,T,_,T,_,T],z={DISPLAY:P[E],TEXT:P[_],SCRIPT:P[S],SCRIPTSCRIPT:P[I]},V=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Q(Rt){for(var ce=0;ce<V.length;ce++)for(var xe=V[ce],Ie=0;Ie<xe.blocks.length;Ie++){var Qe=xe.blocks[Ie];if(Rt>=Qe[0]&&Rt<=Qe[1])return xe.name}return null}var X=[];V.forEach(function(Rt){return Rt.blocks.forEach(function(ce){return X.push.apply(X,ce)})});function te(Rt){for(var ce=0;ce<X.length;ce+=2)if(Rt>=X[ce]&&Rt<=X[ce+1])return!0;return!1}var $=80,le=function(ce,xe){return"M95,"+(622+ce+xe)+`
|
|
|
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)+" "+xe+"h400000v"+(40+ce)+"h-400000z"},re=function(ce,xe){return"M263,"+(601+ce+xe)+`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)+" "+xe+"h400000v"+(40+ce)+"h-400000z"},Se=function(ce,xe){return"M983 "+(10+ce+xe)+`
|
|
|
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)+" "+xe+"h400000v"+(40+ce)+"h-400000z"},Re=function(ce,xe){return"M424,"+(2398+ce+xe)+`
|
|
|
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)+" "+xe+`
|
|
|
h400000v`+(40+ce)+"h-400000z"},Pe=function(ce,xe){return"M473,"+(2713+ce+xe)+`
|
|
|
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)+" "+xe+"h400000v"+(40+ce)+"H1017.7z"},Je=function(ce,xe,Ie){var Qe=Ie-54-xe-ce;return"M702 "+(ce+xe)+"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 `+xe+"H400000v"+(40+ce)+"H742z"},Ge=function(ce,xe,Ie){xe=1e3*xe;var Qe="";switch(ce){case"sqrtMain":Qe=le(xe,$);break;case"sqrtSize1":Qe=re(xe,$);break;case"sqrtSize2":Qe=Se(xe,$);break;case"sqrtSize3":Qe=Re(xe,$);break;case"sqrtSize4":Qe=Pe(xe,$);break;case"sqrtTall":Qe=Je(xe,$,Ie)}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 Rt(xe){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=xe,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var ce=Rt.prototype;return ce.hasClass=function(Ie){return A.contains(this.classes,Ie)},ce.toNode=function(){for(var Ie=document.createDocumentFragment(),Qe=0;Qe<this.children.length;Qe++)Ie.appendChild(this.children[Qe].toNode());return Ie},ce.toMarkup=function(){for(var Ie="",Qe=0;Qe<this.children.length;Qe++)Ie+=this.children[Qe].toMarkup();return Ie},ce.toText=function(){var Ie=function(kt){return kt.toText()};return this.children.map(Ie).join("")},Rt}(),ae=function(ce){return ce.filter(function(xe){return xe}).join(" ")},lt=function(ce,xe,Ie){if(this.classes=ce||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=Ie||{},xe){xe.style.isTight()&&this.classes.push("mtight");var Qe=xe.getColor();Qe&&(this.style.color=Qe)}},pe=function(ce){var xe=document.createElement(ce);xe.className=ae(this.classes);for(var Ie in this.style)this.style.hasOwnProperty(Ie)&&(xe.style[Ie]=this.style[Ie]);for(var Qe in this.attributes)this.attributes.hasOwnProperty(Qe)&&xe.setAttribute(Qe,this.attributes[Qe]);for(var kt=0;kt<this.children.length;kt++)xe.appendChild(this.children[kt].toNode());return xe},J=function(ce){var xe="<"+ce;this.classes.length&&(xe+=' class="'+A.escape(ae(this.classes))+'"');var Ie="";for(var Qe in this.style)this.style.hasOwnProperty(Qe)&&(Ie+=A.hyphenate(Qe)+":"+this.style[Qe]+";");Ie&&(xe+=' style="'+A.escape(Ie)+'"');for(var kt in this.attributes)this.attributes.hasOwnProperty(kt)&&(xe+=" "+kt+'="'+A.escape(this.attributes[kt])+'"');xe+=">";for(var or=0;or<this.children.length;or++)xe+=this.children[or].toMarkup();return xe+="</"+ce+">",xe},Y=function(){function Rt(xe,Ie,Qe,kt){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,lt.call(this,xe,Qe,kt),this.children=Ie||[]}var ce=Rt.prototype;return ce.setAttribute=function(Ie,Qe){this.attributes[Ie]=Qe},ce.hasClass=function(Ie){return A.contains(this.classes,Ie)},ce.toNode=function(){return pe.call(this,"span")},ce.toMarkup=function(){return J.call(this,"span")},Rt}(),ee=function(){function Rt(xe,Ie,Qe,kt){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,lt.call(this,Ie,kt),this.children=Qe||[],this.setAttribute("href",xe)}var ce=Rt.prototype;return ce.setAttribute=function(Ie,Qe){this.attributes[Ie]=Qe},ce.hasClass=function(Ie){return A.contains(this.classes,Ie)},ce.toNode=function(){return pe.call(this,"a")},ce.toMarkup=function(){return J.call(this,"a")},Rt}(),fe=function(){function Rt(xe,Ie,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=Ie,this.src=xe,this.classes=["mord"],this.style=Qe}var ce=Rt.prototype;return ce.hasClass=function(Ie){return A.contains(this.classes,Ie)},ce.toNode=function(){var Ie=document.createElement("img");Ie.src=this.src,Ie.alt=this.alt,Ie.className="mord";for(var Qe in this.style)this.style.hasOwnProperty(Qe)&&(Ie.style[Qe]=this.style[Qe]);return Ie},ce.toMarkup=function(){var Ie="<img src='"+this.src+" 'alt='"+this.alt+"' ",Qe="";for(var kt in this.style)this.style.hasOwnProperty(kt)&&(Qe+=A.hyphenate(kt)+":"+this.style[kt]+";");return Qe&&(Ie+=' style="'+A.escape(Qe)+'"'),Ie+="'/>",Ie},Rt}(),we={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Ce=function(){function Rt(xe,Ie,Qe,kt,or,Qr,fn,Ln){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=xe,this.height=Ie||0,this.depth=Qe||0,this.italic=kt||0,this.skew=or||0,this.width=Qr||0,this.classes=fn||[],this.style=Ln||{},this.maxFontSize=0;var ui=Q(this.text.charCodeAt(0));ui&&this.classes.push(ui+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=we[this.text])}var ce=Rt.prototype;return ce.hasClass=function(Ie){return A.contains(this.classes,Ie)},ce.toNode=function(){var Ie=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=ae(this.classes));for(var kt in this.style)this.style.hasOwnProperty(kt)&&(Qe=Qe||document.createElement("span"),Qe.style[kt]=this.style[kt]);return Qe?(Qe.appendChild(Ie),Qe):Ie},ce.toMarkup=function(){var Ie=!1,Qe="<span";this.classes.length&&(Ie=!0,Qe+=' class="',Qe+=A.escape(ae(this.classes)),Qe+='"');var kt="";this.italic>0&&(kt+="margin-right:"+this.italic+"em;");for(var or in this.style)this.style.hasOwnProperty(or)&&(kt+=A.hyphenate(or)+":"+this.style[or]+";");kt&&(Ie=!0,Qe+=' style="'+A.escape(kt)+'"');var Qr=A.escape(this.text);return Ie?(Qe+=">",Qe+=Qr,Qe+="</span>",Qe):Qr},Rt}(),_e=function(){function Rt(xe,Ie){this.children=void 0,this.attributes=void 0,this.children=xe||[],this.attributes=Ie||{}}var ce=Rt.prototype;return ce.toNode=function(){var Ie="http://www.w3.org/2000/svg",Qe=document.createElementNS(Ie,"svg");for(var kt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,kt)&&Qe.setAttribute(kt,this.attributes[kt]);for(var or=0;or<this.children.length;or++)Qe.appendChild(this.children[or].toNode());return Qe},ce.toMarkup=function(){var Ie="<svg";for(var Qe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Qe)&&(Ie+=" "+Qe+"='"+this.attributes[Qe]+"'");Ie+=">";for(var kt=0;kt<this.children.length;kt++)Ie+=this.children[kt].toMarkup();return Ie+="</svg>",Ie},Rt}(),he=function(){function Rt(xe,Ie){this.pathName=void 0,this.alternate=void 0,this.pathName=xe,this.alternate=Ie}var ce=Rt.prototype;return ce.toNode=function(){var Ie="http://www.w3.org/2000/svg",Qe=document.createElementNS(Ie,"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]+"'/>"},Rt}(),ye=function(){function Rt(xe){this.attributes=void 0,this.attributes=xe||{}}var ce=Rt.prototype;return ce.toNode=function(){var Ie="http://www.w3.org/2000/svg",Qe=document.createElementNS(Ie,"line");for(var kt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,kt)&&Qe.setAttribute(kt,this.attributes[kt]);return Qe},ce.toMarkup=function(){var Ie="<line";for(var Qe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Qe)&&(Ie+=" "+Qe+"='"+this.attributes[Qe]+"'");return Ie+="/>",Ie},Rt}();function Le(Rt){if(Rt instanceof Ce)return Rt;throw new Error("Expected symbolNode but got "+String(Rt)+".")}function tt(Rt){if(Rt instanceof Y)return Rt;throw new Error("Expected span<HtmlDomNode> but got "+String(Rt)+".")}var gt={"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]}},at={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 mt(Rt,ce){gt[Rt]=ce}function et(Rt,ce,xe){if(!gt[ce])throw new Error("Font metrics not found for font: "+ce+".");var Ie=Rt.charCodeAt(0),Qe=gt[ce][Ie];if(!Qe&&Rt[0]in Fe&&(Ie=Fe[Rt[0]].charCodeAt(0),Qe=gt[ce][Ie]),!Qe&&xe==="text"&&(te(Ie)&&(Qe=gt[ce][77])),Qe)return{depth:Qe[0],height:Qe[1],italic:Qe[2],skew:Qe[3],width:Qe[4]}}var St={};function jt(Rt){var ce;if(Rt>=5?ce=0:Rt>=3?ce=1:ce=2,!St[ce]){var xe=St[ce]={cssEmPerMu:at.quad[ce]/18};for(var Ie in at)at.hasOwnProperty(Ie)&&(xe[Ie]=at[Ie][ce])}return St[ce]}var Mt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Ot={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Bt={math:{},text:{}},Ke=Bt;function de(Rt,ce,xe,Ie,Qe,kt){Bt[Rt][Qe]={font:ce,group:xe,replace:Ie},kt&&Ie&&(Bt[Rt][Ie]=Bt[Rt][Qe])}var se="math",ut="text",qe="main",me="ams",Wt="accent-token",dr="bin",vt="close",rr="inner",ur="mathord",mn="op-token",sr="open",xr="punct",pr="rel",Zt="spacing",Ct="textord";de(se,qe,pr,"\u2261","\\equiv",!0),de(se,qe,pr,"\u227A","\\prec",!0),de(se,qe,pr,"\u227B","\\succ",!0),de(se,qe,pr,"\u223C","\\sim",!0),de(se,qe,pr,"\u22A5","\\perp"),de(se,qe,pr,"\u2AAF","\\preceq",!0),de(se,qe,pr,"\u2AB0","\\succeq",!0),de(se,qe,pr,"\u2243","\\simeq",!0),de(se,qe,pr,"\u2223","\\mid",!0),de(se,qe,pr,"\u226A","\\ll",!0),de(se,qe,pr,"\u226B","\\gg",!0),de(se,qe,pr,"\u224D","\\asymp",!0),de(se,qe,pr,"\u2225","\\parallel"),de(se,qe,pr,"\u22C8","\\bowtie",!0),de(se,qe,pr,"\u2323","\\smile",!0),de(se,qe,pr,"\u2291","\\sqsubseteq",!0),de(se,qe,pr,"\u2292","\\sqsupseteq",!0),de(se,qe,pr,"\u2250","\\doteq",!0),de(se,qe,pr,"\u2322","\\frown",!0),de(se,qe,pr,"\u220B","\\ni",!0),de(se,qe,pr,"\u221D","\\propto",!0),de(se,qe,pr,"\u22A2","\\vdash",!0),de(se,qe,pr,"\u22A3","\\dashv",!0),de(se,qe,pr,"\u220B","\\owns"),de(se,qe,xr,".","\\ldotp"),de(se,qe,xr,"\u22C5","\\cdotp"),de(se,qe,Ct,"#","\\#"),de(ut,qe,Ct,"#","\\#"),de(se,qe,Ct,"&","\\&"),de(ut,qe,Ct,"&","\\&"),de(se,qe,Ct,"\u2135","\\aleph",!0),de(se,qe,Ct,"\u2200","\\forall",!0),de(se,qe,Ct,"\u210F","\\hbar",!0),de(se,qe,Ct,"\u2203","\\exists",!0),de(se,qe,Ct,"\u2207","\\nabla",!0),de(se,qe,Ct,"\u266D","\\flat",!0),de(se,qe,Ct,"\u2113","\\ell",!0),de(se,qe,Ct,"\u266E","\\natural",!0),de(se,qe,Ct,"\u2663","\\clubsuit",!0),de(se,qe,Ct,"\u2118","\\wp",!0),de(se,qe,Ct,"\u266F","\\sharp",!0),de(se,qe,Ct,"\u2662","\\diamondsuit",!0),de(se,qe,Ct,"\u211C","\\Re",!0),de(se,qe,Ct,"\u2661","\\heartsuit",!0),de(se,qe,Ct,"\u2111","\\Im",!0),de(se,qe,Ct,"\u2660","\\spadesuit",!0),de(ut,qe,Ct,"\xA7","\\S",!0),de(ut,qe,Ct,"\xB6","\\P",!0),de(se,qe,Ct,"\u2020","\\dag"),de(ut,qe,Ct,"\u2020","\\dag"),de(ut,qe,Ct,"\u2020","\\textdagger"),de(se,qe,Ct,"\u2021","\\ddag"),de(ut,qe,Ct,"\u2021","\\ddag"),de(ut,qe,Ct,"\u2021","\\textdaggerdbl"),de(se,qe,vt,"\u23B1","\\rmoustache",!0),de(se,qe,sr,"\u23B0","\\lmoustache",!0),de(se,qe,vt,"\u27EF","\\rgroup",!0),de(se,qe,sr,"\u27EE","\\lgroup",!0),de(se,qe,dr,"\u2213","\\mp",!0),de(se,qe,dr,"\u2296","\\ominus",!0),de(se,qe,dr,"\u228E","\\uplus",!0),de(se,qe,dr,"\u2293","\\sqcap",!0),de(se,qe,dr,"\u2217","\\ast"),de(se,qe,dr,"\u2294","\\sqcup",!0),de(se,qe,dr,"\u25EF","\\bigcirc"),de(se,qe,dr,"\u2219","\\bullet"),de(se,qe,dr,"\u2021","\\ddagger"),de(se,qe,dr,"\u2240","\\wr",!0),de(se,qe,dr,"\u2A3F","\\amalg"),de(se,qe,dr,"&","\\And"),de(se,qe,pr,"\u27F5","\\longleftarrow",!0),de(se,qe,pr,"\u21D0","\\Leftarrow",!0),de(se,qe,pr,"\u27F8","\\Longleftarrow",!0),de(se,qe,pr,"\u27F6","\\longrightarrow",!0),de(se,qe,pr,"\u21D2","\\Rightarrow",!0),de(se,qe,pr,"\u27F9","\\Longrightarrow",!0),de(se,qe,pr,"\u2194","\\leftrightarrow",!0),de(se,qe,pr,"\u27F7","\\longleftrightarrow",!0),de(se,qe,pr,"\u21D4","\\Leftrightarrow",!0),de(se,qe,pr,"\u27FA","\\Longleftrightarrow",!0),de(se,qe,pr,"\u21A6","\\mapsto",!0),de(se,qe,pr,"\u27FC","\\longmapsto",!0),de(se,qe,pr,"\u2197","\\nearrow",!0),de(se,qe,pr,"\u21A9","\\hookleftarrow",!0),de(se,qe,pr,"\u21AA","\\hookrightarrow",!0),de(se,qe,pr,"\u2198","\\searrow",!0),de(se,qe,pr,"\u21BC","\\leftharpoonup",!0),de(se,qe,pr,"\u21C0","\\rightharpoonup",!0),de(se,qe,pr,"\u2199","\\swarrow",!0),de(se,qe,pr,"\u21BD","\\leftharpoondown",!0),de(se,qe,pr,"\u21C1","\\rightharpoondown",!0),de(se,qe,pr,"\u2196","\\nwarrow",!0),de(se,qe,pr,"\u21CC","\\rightleftharpoons",!0),de(se,me,pr,"\u226E","\\nless",!0),de(se,me,pr,"\uE010","\\@nleqslant"),de(se,me,pr,"\uE011","\\@nleqq"),de(se,me,pr,"\u2A87","\\lneq",!0),de(se,me,pr,"\u2268","\\lneqq",!0),de(se,me,pr,"\uE00C","\\@lvertneqq"),de(se,me,pr,"\u22E6","\\lnsim",!0),de(se,me,pr,"\u2A89","\\lnapprox",!0),de(se,me,pr,"\u2280","\\nprec",!0),de(se,me,pr,"\u22E0","\\npreceq",!0),de(se,me,pr,"\u22E8","\\precnsim",!0),de(se,me,pr,"\u2AB9","\\precnapprox",!0),de(se,me,pr,"\u2241","\\nsim",!0),de(se,me,pr,"\uE006","\\@nshortmid"),de(se,me,pr,"\u2224","\\nmid",!0),de(se,me,pr,"\u22AC","\\nvdash",!0),de(se,me,pr,"\u22AD","\\nvDash",!0),de(se,me,pr,"\u22EA","\\ntriangleleft"),de(se,me,pr,"\u22EC","\\ntrianglelefteq",!0),de(se,me,pr,"\u228A","\\subsetneq",!0),de(se,me,pr,"\uE01A","\\@varsubsetneq"),de(se,me,pr,"\u2ACB","\\subsetneqq",!0),de(se,me,pr,"\uE017","\\@varsubsetneqq"),de(se,me,pr,"\u226F","\\ngtr",!0),de(se,me,pr,"\uE00F","\\@ngeqslant"),de(se,me,pr,"\uE00E","\\@ngeqq"),de(se,me,pr,"\u2A88","\\gneq",!0),de(se,me,pr,"\u2269","\\gneqq",!0),de(se,me,pr,"\uE00D","\\@gvertneqq"),de(se,me,pr,"\u22E7","\\gnsim",!0),de(se,me,pr,"\u2A8A","\\gnapprox",!0),de(se,me,pr,"\u2281","\\nsucc",!0),de(se,me,pr,"\u22E1","\\nsucceq",!0),de(se,me,pr,"\u22E9","\\succnsim",!0),de(se,me,pr,"\u2ABA","\\succnapprox",!0),de(se,me,pr,"\u2246","\\ncong",!0),de(se,me,pr,"\uE007","\\@nshortparallel"),de(se,me,pr,"\u2226","\\nparallel",!0),de(se,me,pr,"\u22AF","\\nVDash",!0),de(se,me,pr,"\u22EB","\\ntriangleright"),de(se,me,pr,"\u22ED","\\ntrianglerighteq",!0),de(se,me,pr,"\uE018","\\@nsupseteqq"),de(se,me,pr,"\u228B","\\supsetneq",!0),de(se,me,pr,"\uE01B","\\@varsupsetneq"),de(se,me,pr,"\u2ACC","\\supsetneqq",!0),de(se,me,pr,"\uE019","\\@varsupsetneqq"),de(se,me,pr,"\u22AE","\\nVdash",!0),de(se,me,pr,"\u2AB5","\\precneqq",!0),de(se,me,pr,"\u2AB6","\\succneqq",!0),de(se,me,pr,"\uE016","\\@nsubseteqq"),de(se,me,dr,"\u22B4","\\unlhd"),de(se,me,dr,"\u22B5","\\unrhd"),de(se,me,pr,"\u219A","\\nleftarrow",!0),de(se,me,pr,"\u219B","\\nrightarrow",!0),de(se,me,pr,"\u21CD","\\nLeftarrow",!0),de(se,me,pr,"\u21CF","\\nRightarrow",!0),de(se,me,pr,"\u21AE","\\nleftrightarrow",!0),de(se,me,pr,"\u21CE","\\nLeftrightarrow",!0),de(se,me,pr,"\u25B3","\\vartriangle"),de(se,me,Ct,"\u210F","\\hslash"),de(se,me,Ct,"\u25BD","\\triangledown"),de(se,me,Ct,"\u25CA","\\lozenge"),de(se,me,Ct,"\u24C8","\\circledS"),de(se,me,Ct,"\xAE","\\circledR"),de(ut,me,Ct,"\xAE","\\circledR"),de(se,me,Ct,"\u2221","\\measuredangle",!0),de(se,me,Ct,"\u2204","\\nexists"),de(se,me,Ct,"\u2127","\\mho"),de(se,me,Ct,"\u2132","\\Finv",!0),de(se,me,Ct,"\u2141","\\Game",!0),de(se,me,Ct,"\u2035","\\backprime"),de(se,me,Ct,"\u25B2","\\blacktriangle"),de(se,me,Ct,"\u25BC","\\blacktriangledown"),de(se,me,Ct,"\u25A0","\\blacksquare"),de(se,me,Ct,"\u29EB","\\blacklozenge"),de(se,me,Ct,"\u2605","\\bigstar"),de(se,me,Ct,"\u2222","\\sphericalangle",!0),de(se,me,Ct,"\u2201","\\complement",!0),de(se,me,Ct,"\xF0","\\eth",!0),de(se,me,Ct,"\u2571","\\diagup"),de(se,me,Ct,"\u2572","\\diagdown"),de(se,me,Ct,"\u25A1","\\square"),de(se,me,Ct,"\u25A1","\\Box"),de(se,me,Ct,"\u25CA","\\Diamond"),de(se,me,Ct,"\xA5","\\yen",!0),de(ut,me,Ct,"\xA5","\\yen",!0),de(se,me,Ct,"\u2713","\\checkmark",!0),de(ut,me,Ct,"\u2713","\\checkmark"),de(se,me,Ct,"\u2136","\\beth",!0),de(se,me,Ct,"\u2138","\\daleth",!0),de(se,me,Ct,"\u2137","\\gimel",!0),de(se,me,Ct,"\u03DD","\\digamma",!0),de(se,me,Ct,"\u03F0","\\varkappa"),de(se,me,sr,"\u250C","\\ulcorner",!0),de(se,me,vt,"\u2510","\\urcorner",!0),de(se,me,sr,"\u2514","\\llcorner",!0),de(se,me,vt,"\u2518","\\lrcorner",!0),de(se,me,pr,"\u2266","\\leqq",!0),de(se,me,pr,"\u2A7D","\\leqslant",!0),de(se,me,pr,"\u2A95","\\eqslantless",!0),de(se,me,pr,"\u2272","\\lesssim",!0),de(se,me,pr,"\u2A85","\\lessapprox",!0),de(se,me,pr,"\u224A","\\approxeq",!0),de(se,me,dr,"\u22D6","\\lessdot"),de(se,me,pr,"\u22D8","\\lll",!0),de(se,me,pr,"\u2276","\\lessgtr",!0),de(se,me,pr,"\u22DA","\\lesseqgtr",!0),de(se,me,pr,"\u2A8B","\\lesseqqgtr",!0),de(se,me,pr,"\u2251","\\doteqdot"),de(se,me,pr,"\u2253","\\risingdotseq",!0),de(se,me,pr,"\u2252","\\fallingdotseq",!0),de(se,me,pr,"\u223D","\\backsim",!0),de(se,me,pr,"\u22CD","\\backsimeq",!0),de(se,me,pr,"\u2AC5","\\subseteqq",!0),de(se,me,pr,"\u22D0","\\Subset",!0),de(se,me,pr,"\u228F","\\sqsubset",!0),de(se,me,pr,"\u227C","\\preccurlyeq",!0),de(se,me,pr,"\u22DE","\\curlyeqprec",!0),de(se,me,pr,"\u227E","\\precsim",!0),de(se,me,pr,"\u2AB7","\\precapprox",!0),de(se,me,pr,"\u22B2","\\vartriangleleft"),de(se,me,pr,"\u22B4","\\trianglelefteq"),de(se,me,pr,"\u22A8","\\vDash",!0),de(se,me,pr,"\u22AA","\\Vvdash",!0),de(se,me,pr,"\u2323","\\smallsmile"),de(se,me,pr,"\u2322","\\smallfrown"),de(se,me,pr,"\u224F","\\bumpeq",!0),de(se,me,pr,"\u224E","\\Bumpeq",!0),de(se,me,pr,"\u2267","\\geqq",!0),de(se,me,pr,"\u2A7E","\\geqslant",!0),de(se,me,pr,"\u2A96","\\eqslantgtr",!0),de(se,me,pr,"\u2273","\\gtrsim",!0),de(se,me,pr,"\u2A86","\\gtrapprox",!0),de(se,me,dr,"\u22D7","\\gtrdot"),de(se,me,pr,"\u22D9","\\ggg",!0),de(se,me,pr,"\u2277","\\gtrless",!0),de(se,me,pr,"\u22DB","\\gtreqless",!0),de(se,me,pr,"\u2A8C","\\gtreqqless",!0),de(se,me,pr,"\u2256","\\eqcirc",!0),de(se,me,pr,"\u2257","\\circeq",!0),de(se,me,pr,"\u225C","\\triangleq",!0),de(se,me,pr,"\u223C","\\thicksim"),de(se,me,pr,"\u2248","\\thickapprox"),de(se,me,pr,"\u2AC6","\\supseteqq",!0),de(se,me,pr,"\u22D1","\\Supset",!0),de(se,me,pr,"\u2290","\\sqsupset",!0),de(se,me,pr,"\u227D","\\succcurlyeq",!0),de(se,me,pr,"\u22DF","\\curlyeqsucc",!0),de(se,me,pr,"\u227F","\\succsim",!0),de(se,me,pr,"\u2AB8","\\succapprox",!0),de(se,me,pr,"\u22B3","\\vartriangleright"),de(se,me,pr,"\u22B5","\\trianglerighteq"),de(se,me,pr,"\u22A9","\\Vdash",!0),de(se,me,pr,"\u2223","\\shortmid"),de(se,me,pr,"\u2225","\\shortparallel"),de(se,me,pr,"\u226C","\\between",!0),de(se,me,pr,"\u22D4","\\pitchfork",!0),de(se,me,pr,"\u221D","\\varpropto"),de(se,me,pr,"\u25C0","\\blacktriangleleft"),de(se,me,pr,"\u2234","\\therefore",!0),de(se,me,pr,"\u220D","\\backepsilon"),de(se,me,pr,"\u25B6","\\blacktriangleright"),de(se,me,pr,"\u2235","\\because",!0),de(se,me,pr,"\u22D8","\\llless"),de(se,me,pr,"\u22D9","\\gggtr"),de(se,me,dr,"\u22B2","\\lhd"),de(se,me,dr,"\u22B3","\\rhd"),de(se,me,pr,"\u2242","\\eqsim",!0),de(se,qe,pr,"\u22C8","\\Join"),de(se,me,pr,"\u2251","\\Doteq",!0),de(se,me,dr,"\u2214","\\dotplus",!0),de(se,me,dr,"\u2216","\\smallsetminus"),de(se,me,dr,"\u22D2","\\Cap",!0),de(se,me,dr,"\u22D3","\\Cup",!0),de(se,me,dr,"\u2A5E","\\doublebarwedge",!0),de(se,me,dr,"\u229F","\\boxminus",!0),de(se,me,dr,"\u229E","\\boxplus",!0),de(se,me,dr,"\u22C7","\\divideontimes",!0),de(se,me,dr,"\u22C9","\\ltimes",!0),de(se,me,dr,"\u22CA","\\rtimes",!0),de(se,me,dr,"\u22CB","\\leftthreetimes",!0),de(se,me,dr,"\u22CC","\\rightthreetimes",!0),de(se,me,dr,"\u22CF","\\curlywedge",!0),de(se,me,dr,"\u22CE","\\curlyvee",!0),de(se,me,dr,"\u229D","\\circleddash",!0),de(se,me,dr,"\u229B","\\circledast",!0),de(se,me,dr,"\u22C5","\\centerdot"),de(se,me,dr,"\u22BA","\\intercal",!0),de(se,me,dr,"\u22D2","\\doublecap"),de(se,me,dr,"\u22D3","\\doublecup"),de(se,me,dr,"\u22A0","\\boxtimes",!0),de(se,me,pr,"\u21E2","\\dashrightarrow",!0),de(se,me,pr,"\u21E0","\\dashleftarrow",!0),de(se,me,pr,"\u21C7","\\leftleftarrows",!0),de(se,me,pr,"\u21C6","\\leftrightarrows",!0),de(se,me,pr,"\u21DA","\\Lleftarrow",!0),de(se,me,pr,"\u219E","\\twoheadleftarrow",!0),de(se,me,pr,"\u21A2","\\leftarrowtail",!0),de(se,me,pr,"\u21AB","\\looparrowleft",!0),de(se,me,pr,"\u21CB","\\leftrightharpoons",!0),de(se,me,pr,"\u21B6","\\curvearrowleft",!0),de(se,me,pr,"\u21BA","\\circlearrowleft",!0),de(se,me,pr,"\u21B0","\\Lsh",!0),de(se,me,pr,"\u21C8","\\upuparrows",!0),de(se,me,pr,"\u21BF","\\upharpoonleft",!0),de(se,me,pr,"\u21C3","\\downharpoonleft",!0),de(se,me,pr,"\u22B8","\\multimap",!0),de(se,me,pr,"\u21AD","\\leftrightsquigarrow",!0),de(se,me,pr,"\u21C9","\\rightrightarrows",!0),de(se,me,pr,"\u21C4","\\rightleftarrows",!0),de(se,me,pr,"\u21A0","\\twoheadrightarrow",!0),de(se,me,pr,"\u21A3","\\rightarrowtail",!0),de(se,me,pr,"\u21AC","\\looparrowright",!0),de(se,me,pr,"\u21B7","\\curvearrowright",!0),de(se,me,pr,"\u21BB","\\circlearrowright",!0),de(se,me,pr,"\u21B1","\\Rsh",!0),de(se,me,pr,"\u21CA","\\downdownarrows",!0),de(se,me,pr,"\u21BE","\\upharpoonright",!0),de(se,me,pr,"\u21C2","\\downharpoonright",!0),de(se,me,pr,"\u21DD","\\rightsquigarrow",!0),de(se,me,pr,"\u21DD","\\leadsto"),de(se,me,pr,"\u21DB","\\Rrightarrow",!0),de(se,me,pr,"\u21BE","\\restriction"),de(se,qe,Ct,"\u2018","`"),de(se,qe,Ct,"$","\\$"),de(ut,qe,Ct,"$","\\$"),de(ut,qe,Ct,"$","\\textdollar"),de(se,qe,Ct,"%","\\%"),de(ut,qe,Ct,"%","\\%"),de(se,qe,Ct,"_","\\_"),de(ut,qe,Ct,"_","\\_"),de(ut,qe,Ct,"_","\\textunderscore"),de(se,qe,Ct,"\u2220","\\angle",!0),de(se,qe,Ct,"\u221E","\\infty",!0),de(se,qe,Ct,"\u2032","\\prime"),de(se,qe,Ct,"\u25B3","\\triangle"),de(se,qe,Ct,"\u0393","\\Gamma",!0),de(se,qe,Ct,"\u0394","\\Delta",!0),de(se,qe,Ct,"\u0398","\\Theta",!0),de(se,qe,Ct,"\u039B","\\Lambda",!0),de(se,qe,Ct,"\u039E","\\Xi",!0),de(se,qe,Ct,"\u03A0","\\Pi",!0),de(se,qe,Ct,"\u03A3","\\Sigma",!0),de(se,qe,Ct,"\u03A5","\\Upsilon",!0),de(se,qe,Ct,"\u03A6","\\Phi",!0),de(se,qe,Ct,"\u03A8","\\Psi",!0),de(se,qe,Ct,"\u03A9","\\Omega",!0),de(se,qe,Ct,"A","\u0391"),de(se,qe,Ct,"B","\u0392"),de(se,qe,Ct,"E","\u0395"),de(se,qe,Ct,"Z","\u0396"),de(se,qe,Ct,"H","\u0397"),de(se,qe,Ct,"I","\u0399"),de(se,qe,Ct,"K","\u039A"),de(se,qe,Ct,"M","\u039C"),de(se,qe,Ct,"N","\u039D"),de(se,qe,Ct,"O","\u039F"),de(se,qe,Ct,"P","\u03A1"),de(se,qe,Ct,"T","\u03A4"),de(se,qe,Ct,"X","\u03A7"),de(se,qe,Ct,"\xAC","\\neg",!0),de(se,qe,Ct,"\xAC","\\lnot"),de(se,qe,Ct,"\u22A4","\\top"),de(se,qe,Ct,"\u22A5","\\bot"),de(se,qe,Ct,"\u2205","\\emptyset"),de(se,me,Ct,"\u2205","\\varnothing"),de(se,qe,ur,"\u03B1","\\alpha",!0),de(se,qe,ur,"\u03B2","\\beta",!0),de(se,qe,ur,"\u03B3","\\gamma",!0),de(se,qe,ur,"\u03B4","\\delta",!0),de(se,qe,ur,"\u03F5","\\epsilon",!0),de(se,qe,ur,"\u03B6","\\zeta",!0),de(se,qe,ur,"\u03B7","\\eta",!0),de(se,qe,ur,"\u03B8","\\theta",!0),de(se,qe,ur,"\u03B9","\\iota",!0),de(se,qe,ur,"\u03BA","\\kappa",!0),de(se,qe,ur,"\u03BB","\\lambda",!0),de(se,qe,ur,"\u03BC","\\mu",!0),de(se,qe,ur,"\u03BD","\\nu",!0),de(se,qe,ur,"\u03BE","\\xi",!0),de(se,qe,ur,"\u03BF","\\omicron",!0),de(se,qe,ur,"\u03C0","\\pi",!0),de(se,qe,ur,"\u03C1","\\rho",!0),de(se,qe,ur,"\u03C3","\\sigma",!0),de(se,qe,ur,"\u03C4","\\tau",!0),de(se,qe,ur,"\u03C5","\\upsilon",!0),de(se,qe,ur,"\u03D5","\\phi",!0),de(se,qe,ur,"\u03C7","\\chi",!0),de(se,qe,ur,"\u03C8","\\psi",!0),de(se,qe,ur,"\u03C9","\\omega",!0),de(se,qe,ur,"\u03B5","\\varepsilon",!0),de(se,qe,ur,"\u03D1","\\vartheta",!0),de(se,qe,ur,"\u03D6","\\varpi",!0),de(se,qe,ur,"\u03F1","\\varrho",!0),de(se,qe,ur,"\u03C2","\\varsigma",!0),de(se,qe,ur,"\u03C6","\\varphi",!0),de(se,qe,dr,"\u2217","*"),de(se,qe,dr,"+","+"),de(se,qe,dr,"\u2212","-"),de(se,qe,dr,"\u22C5","\\cdot",!0),de(se,qe,dr,"\u2218","\\circ"),de(se,qe,dr,"\xF7","\\div",!0),de(se,qe,dr,"\xB1","\\pm",!0),de(se,qe,dr,"\xD7","\\times",!0),de(se,qe,dr,"\u2229","\\cap",!0),de(se,qe,dr,"\u222A","\\cup",!0),de(se,qe,dr,"\u2216","\\setminus"),de(se,qe,dr,"\u2227","\\land"),de(se,qe,dr,"\u2228","\\lor"),de(se,qe,dr,"\u2227","\\wedge",!0),de(se,qe,dr,"\u2228","\\vee",!0),de(se,qe,Ct,"\u221A","\\surd"),de(se,qe,sr,"(","("),de(se,qe,sr,"[","["),de(se,qe,sr,"\u27E8","\\langle",!0),de(se,qe,sr,"\u2223","\\lvert"),de(se,qe,sr,"\u2225","\\lVert"),de(se,qe,vt,")",")"),de(se,qe,vt,"]","]"),de(se,qe,vt,"?","?"),de(se,qe,vt,"!","!"),de(se,qe,vt,"\u27E9","\\rangle",!0),de(se,qe,vt,"\u2223","\\rvert"),de(se,qe,vt,"\u2225","\\rVert"),de(se,qe,pr,"=","="),de(se,qe,pr,"<","<"),de(se,qe,pr,">",">"),de(se,qe,pr,":",":"),de(se,qe,pr,"\u2248","\\approx",!0),de(se,qe,pr,"\u2245","\\cong",!0),de(se,qe,pr,"\u2265","\\ge"),de(se,qe,pr,"\u2265","\\geq",!0),de(se,qe,pr,"\u2190","\\gets"),de(se,qe,pr,">","\\gt"),de(se,qe,pr,"\u2208","\\in",!0),de(se,qe,pr,"\uE020","\\@not"),de(se,qe,pr,"\u2282","\\subset",!0),de(se,qe,pr,"\u2283","\\supset",!0),de(se,qe,pr,"\u2286","\\subseteq",!0),de(se,qe,pr,"\u2287","\\supseteq",!0),de(se,me,pr,"\u2288","\\nsubseteq",!0),de(se,me,pr,"\u2289","\\nsupseteq",!0),de(se,qe,pr,"\u22A8","\\models"),de(se,qe,pr,"\u2190","\\leftarrow",!0),de(se,qe,pr,"\u2264","\\le"),de(se,qe,pr,"\u2264","\\leq",!0),de(se,qe,pr,"<","\\lt"),de(se,qe,pr,"\u2192","\\rightarrow",!0),de(se,qe,pr,"\u2192","\\to"),de(se,me,pr,"\u2271","\\ngeq",!0),de(se,me,pr,"\u2270","\\nleq",!0),de(se,qe,Zt,"\xA0","\\ "),de(se,qe,Zt,"\xA0","~"),de(se,qe,Zt,"\xA0","\\space"),de(se,qe,Zt,"\xA0","\\nobreakspace"),de(ut,qe,Zt,"\xA0","\\ "),de(ut,qe,Zt,"\xA0","~"),de(ut,qe,Zt,"\xA0","\\space"),de(ut,qe,Zt,"\xA0","\\nobreakspace"),de(se,qe,Zt,null,"\\nobreak"),de(se,qe,Zt,null,"\\allowbreak"),de(se,qe,xr,",",","),de(se,qe,xr,";",";"),de(se,me,dr,"\u22BC","\\barwedge",!0),de(se,me,dr,"\u22BB","\\veebar",!0),de(se,qe,dr,"\u2299","\\odot",!0),de(se,qe,dr,"\u2295","\\oplus",!0),de(se,qe,dr,"\u2297","\\otimes",!0),de(se,qe,Ct,"\u2202","\\partial",!0),de(se,qe,dr,"\u2298","\\oslash",!0),de(se,me,dr,"\u229A","\\circledcirc",!0),de(se,me,dr,"\u22A1","\\boxdot",!0),de(se,qe,dr,"\u25B3","\\bigtriangleup"),de(se,qe,dr,"\u25BD","\\bigtriangledown"),de(se,qe,dr,"\u2020","\\dagger"),de(se,qe,dr,"\u22C4","\\diamond"),de(se,qe,dr,"\u22C6","\\star"),de(se,qe,dr,"\u25C3","\\triangleleft"),de(se,qe,dr,"\u25B9","\\triangleright"),de(se,qe,sr,"{","\\{"),de(ut,qe,Ct,"{","\\{"),de(ut,qe,Ct,"{","\\textbraceleft"),de(se,qe,vt,"}","\\}"),de(ut,qe,Ct,"}","\\}"),de(ut,qe,Ct,"}","\\textbraceright"),de(se,qe,sr,"{","\\lbrace"),de(se,qe,vt,"}","\\rbrace"),de(se,qe,sr,"[","\\lbrack"),de(ut,qe,Ct,"[","\\lbrack"),de(se,qe,vt,"]","\\rbrack"),de(ut,qe,Ct,"]","\\rbrack"),de(se,qe,sr,"(","\\lparen"),de(se,qe,vt,")","\\rparen"),de(ut,qe,Ct,"<","\\textless"),de(ut,qe,Ct,">","\\textgreater"),de(se,qe,sr,"\u230A","\\lfloor",!0),de(se,qe,vt,"\u230B","\\rfloor",!0),de(se,qe,sr,"\u2308","\\lceil",!0),de(se,qe,vt,"\u2309","\\rceil",!0),de(se,qe,Ct,"\\","\\backslash"),de(se,qe,Ct,"\u2223","|"),de(se,qe,Ct,"\u2223","\\vert"),de(ut,qe,Ct,"|","\\textbar"),de(se,qe,Ct,"\u2225","\\|"),de(se,qe,Ct,"\u2225","\\Vert"),de(ut,qe,Ct,"\u2225","\\textbardbl"),de(ut,qe,Ct,"~","\\textasciitilde"),de(ut,qe,Ct,"\\","\\textbackslash"),de(ut,qe,Ct,"^","\\textasciicircum"),de(se,qe,pr,"\u2191","\\uparrow",!0),de(se,qe,pr,"\u21D1","\\Uparrow",!0),de(se,qe,pr,"\u2193","\\downarrow",!0),de(se,qe,pr,"\u21D3","\\Downarrow",!0),de(se,qe,pr,"\u2195","\\updownarrow",!0),de(se,qe,pr,"\u21D5","\\Updownarrow",!0),de(se,qe,mn,"\u2210","\\coprod"),de(se,qe,mn,"\u22C1","\\bigvee"),de(se,qe,mn,"\u22C0","\\bigwedge"),de(se,qe,mn,"\u2A04","\\biguplus"),de(se,qe,mn,"\u22C2","\\bigcap"),de(se,qe,mn,"\u22C3","\\bigcup"),de(se,qe,mn,"\u222B","\\int"),de(se,qe,mn,"\u222B","\\intop"),de(se,qe,mn,"\u222C","\\iint"),de(se,qe,mn,"\u222D","\\iiint"),de(se,qe,mn,"\u220F","\\prod"),de(se,qe,mn,"\u2211","\\sum"),de(se,qe,mn,"\u2A02","\\bigotimes"),de(se,qe,mn,"\u2A01","\\bigoplus"),de(se,qe,mn,"\u2A00","\\bigodot"),de(se,qe,mn,"\u222E","\\oint"),de(se,qe,mn,"\u222F","\\oiint"),de(se,qe,mn,"\u2230","\\oiiint"),de(se,qe,mn,"\u2A06","\\bigsqcup"),de(se,qe,mn,"\u222B","\\smallint"),de(ut,qe,rr,"\u2026","\\textellipsis"),de(se,qe,rr,"\u2026","\\mathellipsis"),de(ut,qe,rr,"\u2026","\\ldots",!0),de(se,qe,rr,"\u2026","\\ldots",!0),de(se,qe,rr,"\u22EF","\\@cdots",!0),de(se,qe,rr,"\u22F1","\\ddots",!0),de(se,qe,Ct,"\u22EE","\\varvdots"),de(se,qe,Wt,"\u02CA","\\acute"),de(se,qe,Wt,"\u02CB","\\grave"),de(se,qe,Wt,"\xA8","\\ddot"),de(se,qe,Wt,"~","\\tilde"),de(se,qe,Wt,"\u02C9","\\bar"),de(se,qe,Wt,"\u02D8","\\breve"),de(se,qe,Wt,"\u02C7","\\check"),de(se,qe,Wt,"^","\\hat"),de(se,qe,Wt,"\u20D7","\\vec"),de(se,qe,Wt,"\u02D9","\\dot"),de(se,qe,Wt,"\u02DA","\\mathring"),de(se,qe,ur,"\u0131","\\imath",!0),de(se,qe,ur,"\u0237","\\jmath",!0),de(ut,qe,Ct,"\u0131","\\i",!0),de(ut,qe,Ct,"\u0237","\\j",!0),de(ut,qe,Ct,"\xDF","\\ss",!0),de(ut,qe,Ct,"\xE6","\\ae",!0),de(ut,qe,Ct,"\xE6","\\ae",!0),de(ut,qe,Ct,"\u0153","\\oe",!0),de(ut,qe,Ct,"\xF8","\\o",!0),de(ut,qe,Ct,"\xC6","\\AE",!0),de(ut,qe,Ct,"\u0152","\\OE",!0),de(ut,qe,Ct,"\xD8","\\O",!0),de(ut,qe,Wt,"\u02CA","\\'"),de(ut,qe,Wt,"\u02CB","\\`"),de(ut,qe,Wt,"\u02C6","\\^"),de(ut,qe,Wt,"\u02DC","\\~"),de(ut,qe,Wt,"\u02C9","\\="),de(ut,qe,Wt,"\u02D8","\\u"),de(ut,qe,Wt,"\u02D9","\\."),de(ut,qe,Wt,"\u02DA","\\r"),de(ut,qe,Wt,"\u02C7","\\v"),de(ut,qe,Wt,"\xA8",'\\"'),de(ut,qe,Wt,"\u02DD","\\H"),de(ut,qe,Wt,"\u25EF","\\textcircled");var on={"--":!0,"---":!0,"``":!0,"''":!0};de(ut,qe,Ct,"\u2013","--"),de(ut,qe,Ct,"\u2013","\\textendash"),de(ut,qe,Ct,"\u2014","---"),de(ut,qe,Ct,"\u2014","\\textemdash"),de(ut,qe,Ct,"\u2018","`"),de(ut,qe,Ct,"\u2018","\\textquoteleft"),de(ut,qe,Ct,"\u2019","'"),de(ut,qe,Ct,"\u2019","\\textquoteright"),de(ut,qe,Ct,"\u201C","``"),de(ut,qe,Ct,"\u201C","\\textquotedblleft"),de(ut,qe,Ct,"\u201D","''"),de(ut,qe,Ct,"\u201D","\\textquotedblright"),de(se,qe,Ct,"\xB0","\\degree",!0),de(ut,qe,Ct,"\xB0","\\degree"),de(ut,qe,Ct,"\xB0","\\textdegree",!0),de(se,qe,ur,"\xA3","\\pounds"),de(se,qe,ur,"\xA3","\\mathsterling",!0),de(ut,qe,ur,"\xA3","\\pounds"),de(ut,qe,ur,"\xA3","\\textsterling",!0),de(se,me,Ct,"\u2720","\\maltese"),de(ut,me,Ct,"\u2720","\\maltese"),de(ut,qe,Zt,"\xA0","\\ "),de(ut,qe,Zt,"\xA0"," "),de(ut,qe,Zt,"\xA0","~");for(var Mn='0123456789/@."',Xn=0;Xn<Mn.length;Xn++){var oi=Mn.charAt(Xn);de(se,qe,Ct,oi,oi)}for(var Ui='0123456789!@*()-=+[]<>|";:?/.,',Un=0;Un<Ui.length;Un++){var Qn=Ui.charAt(Un);de(ut,qe,Ct,Qn,Qn)}for(var $t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Nt=0;Nt<$t.length;Nt++){var Me=$t.charAt(Nt);de(se,qe,ur,Me,Me),de(ut,qe,Ct,Me,Me)}de(se,me,Ct,"C","\u2102"),de(ut,me,Ct,"C","\u2102"),de(se,me,Ct,"H","\u210D"),de(ut,me,Ct,"H","\u210D"),de(se,me,Ct,"N","\u2115"),de(ut,me,Ct,"N","\u2115"),de(se,me,Ct,"P","\u2119"),de(ut,me,Ct,"P","\u2119"),de(se,me,Ct,"Q","\u211A"),de(ut,me,Ct,"Q","\u211A"),de(se,me,Ct,"R","\u211D"),de(ut,me,Ct,"R","\u211D"),de(se,me,Ct,"Z","\u2124"),de(ut,me,Ct,"Z","\u2124"),de(se,qe,ur,"h","\u210E"),de(ut,qe,ur,"h","\u210E");for(var ke="",Be=0;Be<$t.length;Be++){var it=$t.charAt(Be);ke=String.fromCharCode(55349,56320+Be),de(se,qe,ur,it,ke),de(ut,qe,Ct,it,ke),ke=String.fromCharCode(55349,56372+Be),de(se,qe,ur,it,ke),de(ut,qe,Ct,it,ke),ke=String.fromCharCode(55349,56424+Be),de(se,qe,ur,it,ke),de(ut,qe,Ct,it,ke),ke=String.fromCharCode(55349,56580+Be),de(se,qe,ur,it,ke),de(ut,qe,Ct,it,ke),ke=String.fromCharCode(55349,56736+Be),de(se,qe,ur,it,ke),de(ut,qe,Ct,it,ke),ke=String.fromCharCode(55349,56788+Be),de(se,qe,ur,it,ke),de(ut,qe,Ct,it,ke),ke=String.fromCharCode(55349,56840+Be),de(se,qe,ur,it,ke),de(ut,qe,Ct,it,ke),ke=String.fromCharCode(55349,56944+Be),de(se,qe,ur,it,ke),de(ut,qe,Ct,it,ke),Be<26&&(ke=String.fromCharCode(55349,56632+Be),de(se,qe,ur,it,ke),de(ut,qe,Ct,it,ke),ke=String.fromCharCode(55349,56476+Be),de(se,qe,ur,it,ke),de(ut,qe,Ct,it,ke))}ke=String.fromCharCode(55349,56668),de(se,qe,ur,"k",ke),de(ut,qe,Ct,"k",ke);for(var yt=0;yt<10;yt++){var Tt=yt.toString();ke=String.fromCharCode(55349,57294+yt),de(se,qe,ur,Tt,ke),de(ut,qe,Ct,Tt,ke),ke=String.fromCharCode(55349,57314+yt),de(se,qe,ur,Tt,ke),de(ut,qe,Ct,Tt,ke),ke=String.fromCharCode(55349,57324+yt),de(se,qe,ur,Tt,ke),de(ut,qe,Ct,Tt,ke),ke=String.fromCharCode(55349,57334+yt),de(se,qe,ur,Tt,ke),de(ut,qe,Ct,Tt,ke)}for(var Yt="\xC7\xD0\xDE\xE7\xFE",Pr=0;Pr<Yt.length;Pr++){var $r=Yt.charAt(Pr);de(se,qe,ur,$r,$r),de(ut,qe,Ct,$r,$r)}de(ut,qe,Ct,"\xF0","\xF0"),de(ut,qe,Ct,"\u2013","\u2013"),de(ut,qe,Ct,"\u2014","\u2014"),de(ut,qe,Ct,"\u2018","\u2018"),de(ut,qe,Ct,"\u2019","\u2019"),de(ut,qe,Ct,"\u201C","\u201C"),de(ut,qe,Ct,"\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"]],zt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],At=function(ce,xe){var Ie=ce.charCodeAt(0),Qe=ce.charCodeAt(1),kt=(Ie-55296)*1024+(Qe-56320)+65536,or=xe==="math"?0:1;if(119808<=kt&&kt<120484){var Qr=Math.floor((kt-119808)/26);return[An[Qr][2],An[Qr][or]]}else if(120782<=kt&&kt<=120831){var fn=Math.floor((kt-120782)/10);return[zt[fn][2],zt[fn][or]]}else{if(kt===120485||kt===120486)return[An[0][2],An[0][or]];if(120486<kt&&kt<120782)return["",""];throw new l("Unsupported character: "+ce)}},wt=[[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]],vr=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Jt=function(ce,xe){return xe.size<2?ce:wt[ce-1][xe.size-1]},Ut=function(){function Rt(xe){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=xe.style,this.color=xe.color,this.size=xe.size||Rt.BASESIZE,this.textSize=xe.textSize||this.size,this.phantom=!!xe.phantom,this.font=xe.font||"",this.fontFamily=xe.fontFamily||"",this.fontWeight=xe.fontWeight||"",this.fontShape=xe.fontShape||"",this.sizeMultiplier=vr[this.size-1],this.maxSize=xe.maxSize,this.minRuleThickness=xe.minRuleThickness,this._fontMetrics=void 0}var ce=Rt.prototype;return ce.extend=function(Ie){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 kt in Ie)Ie.hasOwnProperty(kt)&&(Qe[kt]=Ie[kt]);return new Rt(Qe)},ce.havingStyle=function(Ie){return this.style===Ie?this:this.extend({style:Ie,size:Jt(this.textSize,Ie)})},ce.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},ce.havingSize=function(Ie){return this.size===Ie&&this.textSize===Ie?this:this.extend({style:this.style.text(),size:Ie,textSize:Ie,sizeMultiplier:vr[Ie-1]})},ce.havingBaseStyle=function(Ie){Ie=Ie||this.style.text();var Qe=Jt(Rt.BASESIZE,Ie);return this.size===Qe&&this.textSize===Rt.BASESIZE&&this.style===Ie?this:this.extend({style:Ie,size:Qe})},ce.havingBaseSizing=function(){var Ie;switch(this.style.id){case 4:case 5:Ie=3;break;case 6:case 7:Ie=1;break;default:Ie=6}return this.extend({style:this.style.text(),size:Ie})},ce.withColor=function(Ie){return this.extend({color:Ie})},ce.withPhantom=function(){return this.extend({phantom:!0})},ce.withFont=function(Ie){return this.extend({font:Ie})},ce.withTextFontFamily=function(Ie){return this.extend({fontFamily:Ie,font:""})},ce.withTextFontWeight=function(Ie){return this.extend({fontWeight:Ie,font:""})},ce.withTextFontShape=function(Ie){return this.extend({fontShape:Ie,font:""})},ce.sizingClasses=function(Ie){return Ie.size!==this.size?["sizing","reset-size"+Ie.size,"size"+this.size]:[]},ce.baseSizingClasses=function(){return this.size!==Rt.BASESIZE?["sizing","reset-size"+this.size,"size"+Rt.BASESIZE]:[]},ce.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=jt(this.size)),this._fontMetrics},ce.getColor=function(){return this.phantom?"transparent":this.color},Rt}();Ut.BASESIZE=6;var tr=Ut,Ft={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},qt={ex:!0,em:!0,mu:!0},Hr=function(ce){return typeof ce!="string"&&(ce=ce.unit),ce in Ft||ce in qt||ce==="ex"},Nr=function(ce,xe){var Ie;if(ce.unit in Ft)Ie=Ft[ce.unit]/xe.fontMetrics().ptPerEm/xe.sizeMultiplier;else if(ce.unit==="mu")Ie=xe.fontMetrics().cssEmPerMu;else{var Qe;if(xe.style.isTight()?Qe=xe.havingStyle(xe.style.text()):Qe=xe,ce.unit==="ex")Ie=Qe.fontMetrics().xHeight;else if(ce.unit==="em")Ie=Qe.fontMetrics().quad;else throw new l("Invalid unit: '"+ce.unit+"'");Qe!==xe&&(Ie*=Qe.sizeMultiplier/xe.sizeMultiplier)}return Math.min(ce.number*Ie,xe.maxSize)},Dr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],cn=function(ce,xe,Ie){return Ke[Ie][ce]&&Ke[Ie][ce].replace&&(ce=Ke[Ie][ce].replace),{value:ce,metrics:et(ce,xe,Ie)}},vn=function(ce,xe,Ie,Qe,kt){var or=cn(ce,xe,Ie),Qr=or.metrics;ce=or.value;var fn;if(Qr){var Ln=Qr.italic;(Ie==="text"||Qe&&Qe.font==="mathit")&&(Ln=0),fn=new Ce(ce,Qr.height,Qr.depth,Ln,Qr.skew,Qr.width,kt)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+ce+"' in style '"+xe+"' and mode '"+Ie+"'")),fn=new Ce(ce,0,0,0,0,0,kt);if(Qe){fn.maxFontSize=Qe.sizeMultiplier,Qe.style.isTight()&&fn.classes.push("mtight");var ui=Qe.getColor();ui&&(fn.style.color=ui)}return fn},ei=function(ce,xe,Ie,Qe){return Qe===void 0&&(Qe=[]),Ie.font==="boldsymbol"&&cn(ce,"Main-Bold",xe).metrics?vn(ce,"Main-Bold",xe,Ie,Qe.concat(["mathbf"])):ce==="\\"||Ke[xe][ce].font==="main"?vn(ce,"Main-Regular",xe,Ie,Qe):vn(ce,"AMS-Regular",xe,Ie,Qe.concat(["amsrm"]))},qn=function(ce,xe,Ie,Qe){return/[0-9]/.test(ce.charAt(0))||A.contains(Dr,ce)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},fi=function(ce,xe,Ie,Qe){return A.contains(Dr,ce)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(ce.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},xi=function(ce,xe,Ie,Qe){return cn(ce,"Math-BoldItalic",xe).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Ni=function(ce,xe,Ie){var Qe=ce.mode,kt=ce.text,or=["mord"],Qr=Qe==="math"||Qe==="text"&&xe.font,fn=Qr?xe.font:xe.fontFamily;if(kt.charCodeAt(0)===55349){var Ln=At(kt,Qe),ui=Ln[0],wi=Ln[1];return vn(kt,ui,Qe,xe,or.concat(wi))}else if(fn){var gi,Qi;if(fn==="boldsymbol"||fn==="mathnormal"){var sa=fn==="boldsymbol"?xi(kt,Qe,xe,or):fi(kt,Qe,xe,or);gi=sa.fontName,Qi=[sa.fontClass]}else A.contains(Dr,kt)?(gi="Main-Italic",Qi=["mathit"]):Qr?(gi=pn[fn].fontName,Qi=[fn]):(gi=Xr(fn,xe.fontWeight,xe.fontShape),Qi=[fn,xe.fontWeight,xe.fontShape]);if(cn(kt,gi,Qe).metrics)return vn(kt,gi,Qe,xe,or.concat(Qi));if(on.hasOwnProperty(kt)&&gi.substr(0,10)==="Typewriter"){for(var Ua=[],no=0;no<kt.length;no++)Ua.push(vn(kt[no],gi,Qe,xe,or.concat(Qi)));return st(Ua)}}if(Ie==="mathord"){var Wo=qn(kt,Qe,xe,or);return vn(kt,Wo.fontName,Qe,xe,or.concat([Wo.fontClass]))}else if(Ie==="textord"){var Zo=Ke[Qe][kt]&&Ke[Qe][kt].font;if(Zo==="ams"){var Bo=Xr("amsrm",xe.fontWeight,xe.fontShape);return vn(kt,Bo,Qe,xe,or.concat("amsrm",xe.fontWeight,xe.fontShape))}else if(Zo==="main"||!Zo){var Es=Xr("textrm",xe.fontWeight,xe.fontShape);return vn(kt,Es,Qe,xe,or.concat(xe.fontWeight,xe.fontShape))}else{var As=Xr(Zo,xe.fontWeight,xe.fontShape);return vn(kt,As,Qe,xe,or.concat(As,xe.fontWeight,xe.fontShape))}}else throw new Error("unexpected type: "+Ie+" in makeOrd")},Hi=function(ce,xe){if(ae(ce.classes)!==ae(xe.classes)||ce.skew!==xe.skew||ce.maxFontSize!==xe.maxFontSize)return!1;for(var Ie in ce.style)if(ce.style.hasOwnProperty(Ie)&&ce.style[Ie]!==xe.style[Ie])return!1;for(var Qe in xe.style)if(xe.style.hasOwnProperty(Qe)&&ce.style[Qe]!==xe.style[Qe])return!1;return!0},nt=function(ce){for(var xe=0;xe<ce.length-1;xe++){var Ie=ce[xe],Qe=ce[xe+1];Ie instanceof Ce&&Qe instanceof Ce&&Hi(Ie,Qe)&&(Ie.text+=Qe.text,Ie.height=Math.max(Ie.height,Qe.height),Ie.depth=Math.max(Ie.depth,Qe.depth),Ie.italic=Qe.italic,ce.splice(xe+1,1),xe--)}return ce},Ne=function(ce){for(var xe=0,Ie=0,Qe=0,kt=0;kt<ce.children.length;kt++){var or=ce.children[kt];or.height>xe&&(xe=or.height),or.depth>Ie&&(Ie=or.depth),or.maxFontSize>Qe&&(Qe=or.maxFontSize)}ce.height=xe,ce.depth=Ie,ce.maxFontSize=Qe},He=function(ce,xe,Ie,Qe){var kt=new Y(ce,xe,Ie,Qe);return Ne(kt),kt},Xe=function(ce,xe,Ie,Qe){return new Y(ce,xe,Ie,Qe)},rt=function(ce,xe,Ie){var Qe=He([ce],[],xe);return Qe.height=Math.max(Ie||xe.fontMetrics().defaultRuleThickness,xe.minRuleThickness),Qe.style.borderBottomWidth=Qe.height+"em",Qe.maxFontSize=1,Qe},Ze=function(ce,xe,Ie,Qe){var kt=new ee(ce,xe,Ie,Qe);return Ne(kt),kt},st=function(ce){var xe=new Ue(ce);return Ne(xe),xe},xt=function(ce,xe){return ce instanceof Ue?He([],[ce],xe):ce},pt=function(ce){if(ce.positionType==="individualShift"){for(var xe=ce.children,Ie=[xe[0]],Qe=-xe[0].shift-xe[0].elem.depth,kt=Qe,or=1;or<xe.length;or++){var Qr=-xe[or].shift-kt-xe[or].elem.depth,fn=Qr-(xe[or-1].elem.height+xe[or-1].elem.depth);kt=kt+Qr,Ie.push({type:"kern",size:fn}),Ie.push(xe[or])}return{children:Ie,depth:Qe}}var Ln;if(ce.positionType==="top"){for(var ui=ce.positionData,wi=0;wi<ce.children.length;wi++){var gi=ce.children[wi];ui-=gi.type==="kern"?gi.size:gi.elem.height+gi.elem.depth}Ln=ui}else if(ce.positionType==="bottom")Ln=-ce.positionData;else{var Qi=ce.children[0];if(Qi.type!=="elem")throw new Error('First child must have type "elem".');if(ce.positionType==="shift")Ln=-Qi.elem.depth-ce.positionData;else if(ce.positionType==="firstBaseline")Ln=-Qi.elem.depth;else throw new Error("Invalid positionType "+ce.positionType+".")}return{children:ce.children,depth:Ln}},hr=function(ce,xe){for(var Ie=pt(ce),Qe=Ie.children,kt=Ie.depth,or=0,Qr=0;Qr<Qe.length;Qr++){var fn=Qe[Qr];if(fn.type==="elem"){var Ln=fn.elem;or=Math.max(or,Ln.maxFontSize,Ln.height)}}or+=2;var ui=He(["pstrut"],[]);ui.style.height=or+"em";for(var wi=[],gi=kt,Qi=kt,sa=kt,Ua=0;Ua<Qe.length;Ua++){var no=Qe[Ua];if(no.type==="kern")sa+=no.size;else{var Wo=no.elem,Zo=no.wrapperClasses||[],Bo=no.wrapperStyle||{},Es=He(Zo,[ui,Wo],void 0,Bo);Es.style.top=-or-sa-Wo.depth+"em",no.marginLeft&&(Es.style.marginLeft=no.marginLeft),no.marginRight&&(Es.style.marginRight=no.marginRight),wi.push(Es),sa+=Wo.height+Wo.depth}gi=Math.min(gi,sa),Qi=Math.max(Qi,sa)}var As=He(["vlist"],wi);As.style.height=Qi+"em";var $o;if(gi<0){var Do=He([],[]),vo=He(["vlist"],[Do]);vo.style.height=-gi+"em";var Ms=He(["vlist-s"],[new Ce("\u200B")]);$o=[He(["vlist-r"],[As,Ms]),He(["vlist-r"],[vo])]}else $o=[He(["vlist-r"],[As])];var rl=He(["vlist-t"],$o);return $o.length===2&&rl.classes.push("vlist-t2"),rl.height=Qi,rl.depth=-gi,rl},Zr=function(ce,xe){var Ie=He(["mspace"],[],xe),Qe=Nr(ce,xe);return Ie.style.marginRight=Qe+"em",Ie},Xr=function(ce,xe,Ie){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 kt;return xe==="textbf"&&Ie==="textit"?kt="BoldItalic":xe==="textbf"?kt="Bold":xe==="textit"?kt="Italic":kt="Regular",Qe+"-"+kt},pn={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]},Kn=function(ce,xe){var Ie=gr[ce],Qe=Ie[0],kt=Ie[1],or=Ie[2],Qr=new he(Qe),fn=new _e([Qr],{width:kt+"em",height:or+"em",style:"width:"+kt+"em",viewBox:"0 0 "+1e3*kt+" "+1e3*or,preserveAspectRatio:"xMinYMin"}),Ln=Xe(["overlay"],[fn],xe);return Ln.height=or,Ln.style.height=or+"em",Ln.style.width=kt+"em",Ln},Rr={fontMap:pn,makeSymbol:vn,mathsym:ei,makeSpan:He,makeSvgSpan:Xe,makeLineSpan:rt,makeAnchor:Ze,makeFragment:st,wrapFragment:xt,makeVList:hr,makeOrd:Ni,makeGlue:Zr,staticSvg:Kn,svgData:gr,tryCombineChars:nt};function Pn(Rt,ce){var xe=an(Rt,ce);if(!xe)throw new Error("Expected node of type "+ce+", but got "+(Rt?"node of type "+Rt.type:String(Rt)));return xe}function an(Rt,ce){return Rt&&Rt.type===ce?Rt:null}function Ur(Rt,ce){var xe=ii(Rt,ce);if(!xe)throw new Error('Expected node of type "atom" and family "'+ce+'", but got '+(Rt?Rt.type==="atom"?"atom of family "+Rt.family:"node of type "+Rt.type:String(Rt)));return xe}function ii(Rt,ce){return Rt&&Rt.type==="atom"&&Rt.family===ce?Rt:null}function _i(Rt){var ce=Gi(Rt);if(!ce)throw new Error("Expected node of symbol group type, but got "+(Rt?"node of type "+Rt.type:String(Rt)));return ce}function Gi(Rt){return Rt&&(Rt.type==="atom"||Ot.hasOwnProperty(Rt.type))?Rt:null}var tn={number:3,unit:"mu"},Tn={number:4,unit:"mu"},Vn={number:5,unit:"mu"},Xt={mord:{mop:tn,mbin:Tn,mrel:Vn,minner:tn},mop:{mord:tn,mop:tn,mrel:Vn,minner:tn},mbin:{mord:Tn,mop:Tn,mopen:Tn,minner:Tn},mrel:{mord:Vn,mop:Vn,mopen:Vn,minner:Vn},mopen:{},mclose:{mop:tn,mbin:Tn,mrel:Vn,minner:tn},mpunct:{mord:tn,mop:tn,mrel:Vn,mopen:tn,mclose:tn,mpunct:tn,minner:tn},minner:{mord:tn,mop:tn,mbin:Tn,mrel:Vn,mopen:tn,mpunct:tn,minner:tn}},It={mord:{mop:tn},mop:{mord:tn,mop:tn},mbin:{},mrel:{},mopen:{},mclose:{mop:tn},mpunct:{},minner:{mop:tn}},Pt={},Kt={},Gt={};function Dt(Rt){for(var ce=Rt.type,xe=Rt.names,Ie=Rt.props,Qe=Rt.handler,kt=Rt.htmlBuilder,or=Rt.mathmlBuilder,Qr={type:ce,numArgs:Ie.numArgs,argTypes:Ie.argTypes,greediness:Ie.greediness===void 0?1:Ie.greediness,allowedInText:!!Ie.allowedInText,allowedInMath:Ie.allowedInMath===void 0?!0:Ie.allowedInMath,numOptionalArgs:Ie.numOptionalArgs||0,infix:!!Ie.infix,handler:Qe},fn=0;fn<xe.length;++fn)Pt[xe[fn]]=Qr;ce&&(kt&&(Kt[ce]=kt),or&&(Gt[ce]=or))}function lr(Rt){var ce=Rt.type,xe=Rt.htmlBuilder,Ie=Rt.mathmlBuilder;Dt({type:ce,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:xe,mathmlBuilder:Ie})}var Ar=function(ce){var xe=an(ce,"ordgroup");return xe?xe.body:[ce]},yr=Rr.makeSpan,Mr=["leftmost","mbin","mopen","mrel","mop","mpunct"],zn=["rightmost","mrel","mclose","mpunct"],Rn={display:z.DISPLAY,text:z.TEXT,script:z.SCRIPT,scriptscript:z.SCRIPTSCRIPT},di={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},gn=function(ce,xe,Ie,Qe){Qe===void 0&&(Qe=[null,null]);for(var kt=[],or=0;or<ce.length;or++){var Qr=Ei(ce[or],xe);if(Qr instanceof Ue){var fn=Qr.children;kt.push.apply(kt,fn)}else kt.push(Qr)}if(!Ie)return kt;var Ln=xe;if(ce.length===1){var ui=an(ce[0],"sizing")||an(ce[0],"styling");ui&&(ui.type==="sizing"?Ln=xe.havingSize(ui.size):ui.type==="styling"&&(Ln=xe.havingStyle(Rn[ui.style])))}var wi=yr([Qe[0]||"leftmost"],[],xe),gi=yr([Qe[1]||"rightmost"],[],xe);return Br(kt,function(Qi,sa){var Ua=sa.classes[0],no=Qi.classes[0];Ua==="mbin"&&A.contains(zn,no)?sa.classes[0]="mord":no==="mbin"&&A.contains(Mr,Ua)&&(Qi.classes[0]="mord")},{node:wi},gi),Br(kt,function(Qi,sa){var Ua=Zn(sa),no=Zn(Qi),Wo=Ua&&no?Qi.hasClass("mtight")?It[Ua][no]:Xt[Ua][no]:null;if(Wo)return Rr.makeGlue(Wo,Ln)},{node:wi},gi),kt},Br=function Rt(ce,xe,Ie,Qe){Qe&&ce.push(Qe);for(var kt=0;kt<ce.length;kt++){var or=ce[kt],Qr=_n(or);if(Qr){Rt(Qr.children,xe,Ie);continue}if(or.classes[0]==="mspace")continue;var fn=xe(or,Ie.node);fn&&(Ie.insertAfter?Ie.insertAfter(fn):(ce.unshift(fn),kt++)),Ie.node=or,Ie.insertAfter=function(Ln){return function(ui){ce.splice(Ln+1,0,ui),kt++}}(kt)}Qe&&ce.pop()},_n=function(ce){return ce instanceof Ue||ce instanceof ee?ce:null},Gn=function Rt(ce,xe){var Ie=_n(ce);if(Ie){var Qe=Ie.children;if(Qe.length){if(xe==="right")return Rt(Qe[Qe.length-1],"right");if(xe==="left")return Rt(Qe[0],"left")}}return ce},Zn=function(ce,xe){return ce?(xe&&(ce=Gn(ce,xe)),di[ce.classes[0]]||null):null},ai=function(ce,xe){var Ie=["nulldelimiter"].concat(ce.baseSizingClasses());return yr(xe.concat(Ie))},Ei=function(ce,xe,Ie){if(!ce)return yr();if(Kt[ce.type]){var Qe=Kt[ce.type](ce,xe);if(Ie&&xe.size!==Ie.size){Qe=yr(xe.sizingClasses(Ie),[Qe],xe);var kt=xe.sizeMultiplier/Ie.sizeMultiplier;Qe.height*=kt,Qe.depth*=kt}return Qe}else throw new l("Got group of unknown type: '"+ce.type+"'")};function Ri(Rt,ce){var xe=yr(["base"],Rt,ce),Ie=yr(["strut"]);return Ie.style.height=xe.height+xe.depth+"em",Ie.style.verticalAlign=-xe.depth+"em",xe.children.unshift(Ie),xe}function Di(Rt,ce){var xe=null;Rt.length===1&&Rt[0].type==="tag"&&(xe=Rt[0].tag,Rt=Rt[0].body);for(var Ie=gn(Rt,ce,!0),Qe=[],kt=[],or=0;or<Ie.length;or++)if(kt.push(Ie[or]),Ie[or].hasClass("mbin")||Ie[or].hasClass("mrel")||Ie[or].hasClass("allowbreak")){for(var Qr=!1;or<Ie.length-1&&Ie[or+1].hasClass("mspace")&&!Ie[or+1].hasClass("newline");)or++,kt.push(Ie[or]),Ie[or].hasClass("nobreak")&&(Qr=!0);Qr||(Qe.push(Ri(kt,ce)),kt=[])}else Ie[or].hasClass("newline")&&(kt.pop(),kt.length>0&&(Qe.push(Ri(kt,ce)),kt=[]),Qe.push(Ie[or]));kt.length>0&&Qe.push(Ri(kt,ce));var fn;xe&&(fn=Ri(gn(xe,ce,!0)),fn.classes=["tag"],Qe.push(fn));var Ln=yr(["katex-html"],Qe);if(Ln.setAttribute("aria-hidden","true"),fn){var ui=fn.children[0];ui.style.height=Ln.height+Ln.depth+"em",ui.style.verticalAlign=-Ln.depth+"em"}return Ln}function oa(Rt){return new Ue(Rt)}var ma=function(){function Rt(xe,Ie){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=xe,this.attributes={},this.children=Ie||[]}var ce=Rt.prototype;return ce.setAttribute=function(Ie,Qe){this.attributes[Ie]=Qe},ce.getAttribute=function(Ie){return this.attributes[Ie]},ce.toNode=function(){var Ie=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var Qe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Qe)&&Ie.setAttribute(Qe,this.attributes[Qe]);for(var kt=0;kt<this.children.length;kt++)Ie.appendChild(this.children[kt].toNode());return Ie},ce.toMarkup=function(){var Ie="<"+this.type;for(var Qe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Qe)&&(Ie+=" "+Qe+'="',Ie+=A.escape(this.attributes[Qe]),Ie+='"');Ie+=">";for(var kt=0;kt<this.children.length;kt++)Ie+=this.children[kt].toMarkup();return Ie+="</"+this.type+">",Ie},ce.toText=function(){return this.children.map(function(Ie){return Ie.toText()}).join("")},Rt}(),aa=function(){function Rt(xe){this.text=void 0,this.text=xe}var ce=Rt.prototype;return ce.toNode=function(){return document.createTextNode(this.text)},ce.toMarkup=function(){return A.escape(this.toText())},ce.toText=function(){return this.text},Rt}(),ba=function(){function Rt(xe){this.width=void 0,this.character=void 0,this.width=xe,xe>=.05555&&xe<=.05556?this.character="\u200A":xe>=.1666&&xe<=.1667?this.character="\u2009":xe>=.2222&&xe<=.2223?this.character="\u2005":xe>=.2777&&xe<=.2778?this.character="\u2005\u200A":xe>=-.05556&&xe<=-.05555?this.character="\u200A\u2063":xe>=-.1667&&xe<=-.1666?this.character="\u2009\u2063":xe>=-.2223&&xe<=-.2222?this.character="\u205F\u2063":xe>=-.2778&&xe<=-.2777?this.character="\u2005\u2063":this.character=null}var ce=Rt.prototype;return ce.toNode=function(){if(this.character)return document.createTextNode(this.character);var Ie=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return Ie.setAttribute("width",this.width+"em"),Ie},ce.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},ce.toText=function(){return this.character?this.character:" "},Rt}(),Ai={MathNode:ma,TextNode:aa,SpaceNode:ba,newDocumentFragment:oa},Dn=function(ce,xe,Ie){return Ke[xe][ce]&&Ke[xe][ce].replace&&ce.charCodeAt(0)!==55349&&!(on.hasOwnProperty(ce)&&Ie&&(Ie.fontFamily&&Ie.fontFamily.substr(4,2)==="tt"||Ie.font&&Ie.font.substr(4,2)==="tt"))&&(ce=Ke[xe][ce].replace),new Ai.TextNode(ce)},Bi=function(ce){return ce.length===1?ce[0]:new Ai.MathNode("mrow",ce)},ha=function(ce,xe){if(xe.fontFamily==="texttt")return"monospace";if(xe.fontFamily==="textsf")return xe.fontShape==="textit"&&xe.fontWeight==="textbf"?"sans-serif-bold-italic":xe.fontShape==="textit"?"sans-serif-italic":xe.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(xe.fontShape==="textit"&&xe.fontWeight==="textbf")return"bold-italic";if(xe.fontShape==="textit")return"italic";if(xe.fontWeight==="textbf")return"bold";var Ie=xe.font;if(!Ie||Ie==="mathnormal")return null;var Qe=ce.mode;if(Ie==="mathit")return"italic";if(Ie==="boldsymbol")return"bold-italic";if(Ie==="mathbf")return"bold";if(Ie==="mathbb")return"double-struck";if(Ie==="mathfrak")return"fraktur";if(Ie==="mathscr"||Ie==="mathcal")return"script";if(Ie==="mathsf")return"sans-serif";if(Ie==="mathtt")return"monospace";var kt=ce.text;if(A.contains(["\\imath","\\jmath"],kt))return null;Ke[Qe][kt]&&Ke[Qe][kt].replace&&(kt=Ke[Qe][kt].replace);var or=Rr.fontMap[Ie].fontName;return et(kt,or,Qe)?Rr.fontMap[Ie].variant:null},ta=function(ce,xe,Ie){if(ce.length===1){var Qe=Ir(ce[0],xe);return Ie&&Qe instanceof ma&&Qe.type==="mo"&&(Qe.setAttribute("lspace","0em"),Qe.setAttribute("rspace","0em")),[Qe]}for(var kt=[],or,Qr=0;Qr<ce.length;Qr++){var fn=Ir(ce[Qr],xe);if(fn instanceof ma&&or instanceof ma){if(fn.type==="mtext"&&or.type==="mtext"&&fn.getAttribute("mathvariant")===or.getAttribute("mathvariant")){var Ln;(Ln=or.children).push.apply(Ln,fn.children);continue}else if(fn.type==="mn"&&or.type==="mn"){var ui;(ui=or.children).push.apply(ui,fn.children);continue}else if(fn.type==="mi"&&fn.children.length===1&&or.type==="mn"){var wi=fn.children[0];if(wi instanceof aa&&wi.text==="."){var gi;(gi=or.children).push.apply(gi,fn.children);continue}}else if(or.type==="mi"&&or.children.length===1){var Qi=or.children[0];if(Qi instanceof aa&&Qi.text==="\u0338"&&(fn.type==="mo"||fn.type==="mi"||fn.type==="mn")){var sa=fn.children[0];sa instanceof aa&&sa.text.length>0&&(sa.text=sa.text.slice(0,1)+"\u0338"+sa.text.slice(1),kt.pop())}}}kt.push(fn),or=fn}return kt},ra=function(ce,xe,Ie){return Bi(ta(ce,xe,Ie))},Ir=function(ce,xe){if(!ce)return new Ai.MathNode("mrow");if(Gt[ce.type]){var Ie=Gt[ce.type](ce,xe);return Ie}else throw new l("Got group of unknown type: '"+ce.type+"'")};function Sr(Rt,ce,xe,Ie){var Qe=ta(Rt,xe),kt;Qe.length===1&&Qe[0]instanceof ma&&A.contains(["mrow","mtable"],Qe[0].type)?kt=Qe[0]:kt=new Ai.MathNode("mrow",Qe);var or=new Ai.MathNode("annotation",[new Ai.TextNode(ce)]);or.setAttribute("encoding","application/x-tex");var Qr=new Ai.MathNode("semantics",[kt,or]),fn=new Ai.MathNode("math",[Qr]);fn.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Ln=Ie?"katex":"katex-mathml";return Rr.makeSpan([Ln],[fn])}var En=function(ce){return new tr({style:ce.displayMode?z.DISPLAY:z.TEXT,maxSize:ce.maxSize,minRuleThickness:ce.minRuleThickness})},fr=function(ce,xe){if(xe.displayMode){var Ie=["katex-display"];xe.leqno&&Ie.push("leqno"),xe.fleqn&&Ie.push("fleqn"),ce=Rr.makeSpan(Ie,[ce])}return ce},kr=function(ce,xe,Ie){var Qe=En(Ie),kt;if(Ie.output==="mathml")return Sr(ce,xe,Qe,!0);if(Ie.output==="html"){var or=Di(ce,Qe);kt=Rr.makeSpan(["katex"],[or])}else{var Qr=Sr(ce,xe,Qe,!1),fn=Di(ce,Qe);kt=Rr.makeSpan(["katex"],[Qr,fn])}return fr(kt,Ie)},Vr=function(ce,xe,Ie){var Qe=En(Ie),kt=Di(ce,Qe),or=Rr.makeSpan(["katex"],[kt]);return fr(or,Ie)},un=kr,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"},_t=function(ce){var xe=new Ai.MathNode("mo",[new Ai.TextNode(kn[ce.substr(1)])]);return xe.setAttribute("stretchy","true"),xe},Or={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]},Lr=function(ce){return ce.type==="ordgroup"?ce.body.length:1},en=function(ce,xe){function Ie(){var fn=4e5,Ln=ce.label.substr(1);if(A.contains(["widehat","widecheck","widetilde","utilde"],Ln)){var ui=ce,wi=Lr(ui.base),gi,Qi,sa;if(wi>5)Ln==="widehat"||Ln==="widecheck"?(gi=420,fn=2364,sa=.42,Qi=Ln+"4"):(gi=312,fn=2340,sa=.34,Qi="tilde4");else{var Ua=[1,1,2,2,3,3][wi];Ln==="widehat"||Ln==="widecheck"?(fn=[0,1062,2364,2364,2364][Ua],gi=[0,239,300,360,420][Ua],sa=[0,.24,.3,.3,.36,.42][Ua],Qi=Ln+Ua):(fn=[0,600,1033,2339,2340][Ua],gi=[0,260,286,306,312][Ua],sa=[0,.26,.286,.3,.306,.34][Ua],Qi="tilde"+Ua)}var no=new he(Qi),Wo=new _e([no],{width:"100%",height:sa+"em",viewBox:"0 0 "+fn+" "+gi,preserveAspectRatio:"none"});return{span:Rr.makeSvgSpan([],[Wo],xe),minWidth:0,height:sa}}else{var Zo=[],Bo=Or[Ln],Es=Bo[0],As=Bo[1],$o=Bo[2],Do=$o/1e3,vo=Es.length,Ms,rl;if(vo===1){var gs=Bo[3];Ms=["hide-tail"],rl=[gs]}else if(vo===2)Ms=["halfarrow-left","halfarrow-right"],rl=["xMinYMin","xMaxYMin"];else if(vo===3)Ms=["brace-left","brace-center","brace-right"],rl=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+vo+" children.");for(var Ra=0;Ra<vo;Ra++){var dl=new he(Es[Ra]),fl=new _e([dl],{width:"400em",height:Do+"em",viewBox:"0 0 "+fn+" "+$o,preserveAspectRatio:rl[Ra]+" slice"}),Us=Rr.makeSvgSpan([Ms[Ra]],[fl],xe);if(vo===1)return{span:Us,minWidth:As,height:Do};Us.style.height=Do+"em",Zo.push(Us)}return{span:Rr.makeSpan(["stretchy"],Zo,xe),minWidth:As,height:Do}}}var Qe=Ie(),kt=Qe.span,or=Qe.minWidth,Qr=Qe.height;return kt.height=Qr,kt.style.height=Qr+"em",or>0&&(kt.style.minWidth=or+"em"),kt},Sn=function(ce,xe,Ie,Qe){var kt,or=ce.height+ce.depth+2*Ie;if(/fbox|color/.test(xe)){if(kt=Rr.makeSpan(["stretchy",xe],[],Qe),xe==="fbox"){var Qr=Qe.color&&Qe.getColor();Qr&&(kt.style.borderColor=Qr)}}else{var fn=[];/^[bx]cancel$/.test(xe)&&fn.push(new ye({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(xe)&&fn.push(new ye({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Ln=new _e(fn,{width:"100%",height:or+"em"});kt=Rr.makeSvgSpan([],[Ln],Qe)}return kt.height=or,kt.style.height=or+"em",kt},On={encloseSpan:Sn,mathMLnode:_t,svgSpan:en},wn=function(ce,xe){var Ie,Qe,kt=an(ce,"supsub"),or;kt?(Qe=Pn(kt.base,"accent"),Ie=Qe.base,kt.base=Ie,or=tt(Ei(kt,xe)),kt.base=Qe):(Qe=Pn(ce,"accent"),Ie=Qe.base);var Qr=Ei(Ie,xe.havingCrampedStyle()),fn=Qe.isShifty&&A.isCharacterBox(Ie),Ln=0;if(fn){var ui=A.getBaseElem(Ie),wi=Ei(ui,xe.havingCrampedStyle());Ln=Le(wi).skew}var gi=Math.min(Qr.height,xe.fontMetrics().xHeight),Qi;if(Qe.isStretchy)Qi=On.svgSpan(Qe,xe),Qi=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Qr},{type:"elem",elem:Qi,wrapperClasses:["svg-align"],wrapperStyle:Ln>0?{width:"calc(100% - "+2*Ln+"em)",marginLeft:2*Ln+"em"}:void 0}]},xe);else{var sa,Ua;Qe.label==="\\vec"?(sa=Rr.staticSvg("vec",xe),Ua=Rr.svgData.vec[1]):(sa=Rr.makeOrd({mode:Qe.mode,text:Qe.label},xe,"textord"),sa=Le(sa),sa.italic=0,Ua=sa.width),Qi=Rr.makeSpan(["accent-body"],[sa]);var no=Qe.label==="\\textcircled";no&&(Qi.classes.push("accent-full"),gi=Qr.height);var Wo=Ln;no||(Wo-=Ua/2),Qi.style.left=Wo+"em",Qe.label==="\\textcircled"&&(Qi.style.top=".2em"),Qi=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Qr},{type:"kern",size:-gi},{type:"elem",elem:Qi}]},xe)}var Zo=Rr.makeSpan(["mord","accent"],[Qi],xe);return or?(or.children[0]=Zo,or.height=Math.max(Zo.height,or.height),or.classes[0]="mord",or):Zo},$n=function(ce,xe){var Ie=ce.isStretchy?On.mathMLnode(ce.label):new Ai.MathNode("mo",[Dn(ce.label,ce.mode)]),Qe=new Ai.MathNode("mover",[Ir(ce.base,xe),Ie]);return Qe.setAttribute("accent","true"),Qe},jn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(Rt){return"\\"+Rt}).join("|"));Dt({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,xe){var Ie=xe[0],Qe=!jn.test(ce.funcName),kt=!Qe||ce.funcName==="\\widehat"||ce.funcName==="\\widetilde"||ce.funcName==="\\widecheck";return{type:"accent",mode:ce.parser.mode,label:ce.funcName,isStretchy:Qe,isShifty:kt,base:Ie}},htmlBuilder:wn,mathmlBuilder:$n}),Dt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(ce,xe){var Ie=xe[0];return{type:"accent",mode:ce.parser.mode,label:ce.funcName,isStretchy:!1,isShifty:!0,base:Ie}},htmlBuilder:wn,mathmlBuilder:$n}),Dt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(ce,xe){var Ie=ce.parser,Qe=ce.funcName,kt=xe[0];return{type:"accentUnder",mode:Ie.mode,label:Qe,base:kt}},htmlBuilder:function(ce,xe){var Ie=Ei(ce.base,xe),Qe=On.svgSpan(ce,xe),kt=ce.label==="\\utilde"?.12:0,or=Rr.makeVList({positionType:"bottom",positionData:Qe.height+kt,children:[{type:"elem",elem:Qe,wrapperClasses:["svg-align"]},{type:"kern",size:kt},{type:"elem",elem:Ie}]},xe);return Rr.makeSpan(["mord","accentunder"],[or],xe)},mathmlBuilder:function(ce,xe){var Ie=On.mathMLnode(ce.label),Qe=new Ai.MathNode("munder",[Ir(ce.base,xe),Ie]);return Qe.setAttribute("accentunder","true"),Qe}});var pi=function(ce){var xe=new Ai.MathNode("mpadded",ce?[ce]:[]);return xe.setAttribute("width","+0.6em"),xe.setAttribute("lspace","0.3em"),xe};Dt({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,xe,Ie){var Qe=ce.parser,kt=ce.funcName;return{type:"xArrow",mode:Qe.mode,label:kt,body:xe[0],below:Ie[0]}},htmlBuilder:function(ce,xe){var Ie=xe.style,Qe=xe.havingStyle(Ie.sup()),kt=Rr.wrapFragment(Ei(ce.body,Qe,xe),xe);kt.classes.push("x-arrow-pad");var or;ce.below&&(Qe=xe.havingStyle(Ie.sub()),or=Rr.wrapFragment(Ei(ce.below,Qe,xe),xe),or.classes.push("x-arrow-pad"));var Qr=On.svgSpan(ce,xe),fn=-xe.fontMetrics().axisHeight+.5*Qr.height,Ln=-xe.fontMetrics().axisHeight-.5*Qr.height-.111;(kt.depth>.25||ce.label==="\\xleftequilibrium")&&(Ln-=kt.depth);var ui;if(or){var wi=-xe.fontMetrics().axisHeight+or.height+.5*Qr.height+.111;ui=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:kt,shift:Ln},{type:"elem",elem:Qr,shift:fn},{type:"elem",elem:or,shift:wi}]},xe)}else ui=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:kt,shift:Ln},{type:"elem",elem:Qr,shift:fn}]},xe);return ui.children[0].children[0].children[1].classes.push("svg-align"),Rr.makeSpan(["mrel","x-arrow"],[ui],xe)},mathmlBuilder:function(ce,xe){var Ie=On.mathMLnode(ce.label),Qe;if(ce.body){var kt=pi(Ir(ce.body,xe));if(ce.below){var or=pi(Ir(ce.below,xe));Qe=new Ai.MathNode("munderover",[Ie,or,kt])}else Qe=new Ai.MathNode("mover",[Ie,kt])}else if(ce.below){var Qr=pi(Ir(ce.below,xe));Qe=new Ai.MathNode("munder",[Ie,Qr])}else Qe=pi(),Qe=new Ai.MathNode("mover",[Ie,Qe]);return Qe}}),Dt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){for(var Ie=ce.parser,Qe=Pn(xe[0],"ordgroup"),kt=Qe.body,or="",Qr=0;Qr<kt.length;Qr++){var fn=Pn(kt[Qr],"textord");or+=fn.text}var Ln=parseInt(or);if(isNaN(Ln))throw new l("\\@char has non-numeric argument "+or);return{type:"textord",mode:Ie.mode,text:String.fromCharCode(Ln)}}});var Mi=function(ce,xe){var Ie=gn(ce.body,xe.withColor(ce.color),!1);return Rr.makeFragment(Ie)},yi=function(ce,xe){var Ie=ta(ce.body,xe.withColor(ce.color)),Qe=new Ai.MathNode("mstyle",Ie);return Qe.setAttribute("mathcolor",ce.color),Qe};Dt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(ce,xe){var Ie=ce.parser,Qe=Pn(xe[0],"color-token").color,kt=xe[1];return{type:"color",mode:Ie.mode,color:Qe,body:Ar(kt)}},htmlBuilder:Mi,mathmlBuilder:yi}),Dt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(ce,xe){var Ie=ce.parser,Qe=ce.breakOnTokenText,kt=Pn(xe[0],"color-token").color;Ie.gullet.macros.set("\\current@color",kt);var or=Ie.parseExpression(!0,Qe);return{type:"color",mode:Ie.mode,color:kt,body:or}},htmlBuilder:Mi,mathmlBuilder:yi}),Dt({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ce,xe,Ie){var Qe=ce.parser,kt=ce.funcName,or=Ie[0],Qr=kt==="\\cr",fn=!1;return Qr||(Qe.settings.displayMode&&Qe.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?fn=!1:fn=!0),{type:"cr",mode:Qe.mode,newLine:fn,newRow:Qr,size:or&&Pn(or,"size").value}},htmlBuilder:function(ce,xe){if(ce.newRow)throw new l("\\cr valid only within a tabular/array environment");var Ie=Rr.makeSpan(["mspace"],[],xe);return ce.newLine&&(Ie.classes.push("newline"),ce.size&&(Ie.style.marginTop=Nr(ce.size,xe)+"em")),Ie},mathmlBuilder:function(ce,xe){var Ie=new Ai.MathNode("mspace");return ce.newLine&&(Ie.setAttribute("linebreak","newline"),ce.size&&Ie.setAttribute("height",Nr(ce.size,xe)+"em")),Ie}});var Oi=function(ce,xe,Ie){var Qe=Ke.math[ce]&&Ke.math[ce].replace,kt=et(Qe||ce,xe,Ie);if(!kt)throw new Error("Unsupported symbol "+ce+" and font size "+xe+".");return kt},zi=function(ce,xe,Ie,Qe){var kt=Ie.havingBaseStyle(xe),or=Rr.makeSpan(Qe.concat(kt.sizingClasses(Ie)),[ce],Ie),Qr=kt.sizeMultiplier/Ie.sizeMultiplier;return or.height*=Qr,or.depth*=Qr,or.maxFontSize=kt.sizeMultiplier,or},ea=function(ce,xe,Ie){var Qe=xe.havingBaseStyle(Ie),kt=(1-xe.sizeMultiplier/Qe.sizeMultiplier)*xe.fontMetrics().axisHeight;ce.classes.push("delimcenter"),ce.style.top=kt+"em",ce.height-=kt,ce.depth+=kt},Xi=function(ce,xe,Ie,Qe,kt,or){var Qr=Rr.makeSymbol(ce,"Main-Regular",kt,Qe),fn=zi(Qr,xe,Qe,or);return Ie&&ea(fn,Qe,xe),fn},Wi=function(ce,xe,Ie,Qe){return Rr.makeSymbol(ce,"Size"+xe+"-Regular",Ie,Qe)},ji=function(ce,xe,Ie,Qe,kt,or){var Qr=Wi(ce,xe,kt,Qe),fn=zi(Rr.makeSpan(["delimsizing","size"+xe],[Qr],Qe),z.TEXT,Qe,or);return Ie&&ea(fn,Qe,z.TEXT),fn},Ji=function(ce,xe,Ie){var Qe;xe==="Size1-Regular"?Qe="delim-size1":Qe="delim-size4";var kt=Rr.makeSpan(["delimsizinginner",Qe],[Rr.makeSpan([],[Rr.makeSymbol(ce,xe,Ie)])]);return{type:"elem",elem:kt}},ca={type:"kern",size:-.005},Ca=function(ce,xe,Ie,Qe,kt,or){var Qr,fn,Ln,ui;Qr=Ln=ui=ce,fn=null;var wi="Size1-Regular";ce==="\\uparrow"?Ln=ui="\u23D0":ce==="\\Uparrow"?Ln=ui="\u2016":ce==="\\downarrow"?Qr=Ln="\u23D0":ce==="\\Downarrow"?Qr=Ln="\u2016":ce==="\\updownarrow"?(Qr="\\uparrow",Ln="\u23D0",ui="\\downarrow"):ce==="\\Updownarrow"?(Qr="\\Uparrow",Ln="\u2016",ui="\\Downarrow"):ce==="["||ce==="\\lbrack"?(Qr="\u23A1",Ln="\u23A2",ui="\u23A3",wi="Size4-Regular"):ce==="]"||ce==="\\rbrack"?(Qr="\u23A4",Ln="\u23A5",ui="\u23A6",wi="Size4-Regular"):ce==="\\lfloor"||ce==="\u230A"?(Ln=Qr="\u23A2",ui="\u23A3",wi="Size4-Regular"):ce==="\\lceil"||ce==="\u2308"?(Qr="\u23A1",Ln=ui="\u23A2",wi="Size4-Regular"):ce==="\\rfloor"||ce==="\u230B"?(Ln=Qr="\u23A5",ui="\u23A6",wi="Size4-Regular"):ce==="\\rceil"||ce==="\u2309"?(Qr="\u23A4",Ln=ui="\u23A5",wi="Size4-Regular"):ce==="("||ce==="\\lparen"?(Qr="\u239B",Ln="\u239C",ui="\u239D",wi="Size4-Regular"):ce===")"||ce==="\\rparen"?(Qr="\u239E",Ln="\u239F",ui="\u23A0",wi="Size4-Regular"):ce==="\\{"||ce==="\\lbrace"?(Qr="\u23A7",fn="\u23A8",ui="\u23A9",Ln="\u23AA",wi="Size4-Regular"):ce==="\\}"||ce==="\\rbrace"?(Qr="\u23AB",fn="\u23AC",ui="\u23AD",Ln="\u23AA",wi="Size4-Regular"):ce==="\\lgroup"||ce==="\u27EE"?(Qr="\u23A7",ui="\u23A9",Ln="\u23AA",wi="Size4-Regular"):ce==="\\rgroup"||ce==="\u27EF"?(Qr="\u23AB",ui="\u23AD",Ln="\u23AA",wi="Size4-Regular"):ce==="\\lmoustache"||ce==="\u23B0"?(Qr="\u23A7",ui="\u23AD",Ln="\u23AA",wi="Size4-Regular"):(ce==="\\rmoustache"||ce==="\u23B1")&&(Qr="\u23AB",ui="\u23A9",Ln="\u23AA",wi="Size4-Regular");var gi=Oi(Qr,wi,kt),Qi=gi.height+gi.depth,sa=Oi(Ln,wi,kt),Ua=sa.height+sa.depth,no=Oi(ui,wi,kt),Wo=no.height+no.depth,Zo=0,Bo=1;if(fn!==null){var Es=Oi(fn,wi,kt);Zo=Es.height+Es.depth,Bo=2}var As=Qi+Wo+Zo,$o=Math.max(0,Math.ceil((xe-As)/(Bo*Ua))),Do=As+$o*Bo*Ua,vo=Qe.fontMetrics().axisHeight;Ie&&(vo*=Qe.sizeMultiplier);var Ms=Do/2-vo,rl=($o+1)*.005-Ua,gs=[];if(gs.push(Ji(ui,wi,kt)),fn===null)for(var Ra=0;Ra<$o;Ra++)gs.push(ca),gs.push(Ji(Ln,wi,kt));else{for(var dl=0;dl<$o;dl++)gs.push(ca),gs.push(Ji(Ln,wi,kt));gs.push({type:"kern",size:rl}),gs.push(Ji(Ln,wi,kt)),gs.push(ca),gs.push(Ji(fn,wi,kt));for(var fl=0;fl<$o;fl++)gs.push(ca),gs.push(Ji(Ln,wi,kt))}gs.push({type:"kern",size:rl}),gs.push(Ji(Ln,wi,kt)),gs.push(ca),gs.push(Ji(Qr,wi,kt));var Us=Qe.havingBaseStyle(z.TEXT),Os=Rr.makeVList({positionType:"bottom",positionData:Ms,children:gs},Us);return zi(Rr.makeSpan(["delimsizing","mult"],[Os],Us),z.TEXT,Qe,or)},na=80,Pa=.08,La=function(ce,xe,Ie,Qe,kt){var or=Ge(ce,Qe,Ie),Qr=new he(ce,or),fn=new _e([Qr],{width:"400em",height:xe+"em",viewBox:"0 0 400000 "+Ie,preserveAspectRatio:"xMinYMin slice"});return Rr.makeSvgSpan(["hide-tail"],[fn],kt)},va=function(ce,xe){var Ie=xe.havingBaseSizing(),Qe=Qo("\\surd",ce*Ie.sizeMultiplier,io,Ie),kt=Ie.sizeMultiplier,or=Math.max(0,xe.minRuleThickness-xe.fontMetrics().sqrtRuleThickness),Qr,fn=0,Ln=0,ui=0,wi;return Qe.type==="small"?(ui=1e3+1e3*or+na,ce<1?kt=1:ce<1.4&&(kt=.7),fn=(1+or+Pa)/kt,Ln=(1+or)/kt,Qr=La("sqrtMain",fn,ui,or,xe),Qr.style.minWidth="0.853em",wi=.833/kt):Qe.type==="large"?(ui=(1e3+na)*Xa[Qe.size],Ln=(Xa[Qe.size]+or)/kt,fn=(Xa[Qe.size]+or+Pa)/kt,Qr=La("sqrtSize"+Qe.size,fn,ui,or,xe),Qr.style.minWidth="1.02em",wi=1/kt):(fn=ce+or+Pa,Ln=ce+or,ui=Math.floor(1e3*ce+or)+na,Qr=La("sqrtTall",fn,ui,or,xe),Qr.style.minWidth="0.742em",wi=1.056),Qr.height=Ln,Qr.style.height=fn+"em",{span:Qr,advanceWidth:wi,ruleWidth:(xe.fontMetrics().sqrtRuleThickness+or)*kt}},ga=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Oa=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Aa=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Xa=[0,1.2,1.8,2.4,3],_a=function(ce,xe,Ie,Qe,kt){if(ce==="<"||ce==="\\lt"||ce==="\u27E8"?ce="\\langle":(ce===">"||ce==="\\gt"||ce==="\u27E9")&&(ce="\\rangle"),A.contains(ga,ce)||A.contains(Aa,ce))return ji(ce,xe,!1,Ie,Qe,kt);if(A.contains(Oa,ce))return Ca(ce,Xa[xe],!1,Ie,Qe,kt);throw new l("Illegal delimiter: '"+ce+"'")},Va=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Pi=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"stack"}],io=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],oo=function(ce){if(ce.type==="small")return"Main-Regular";if(ce.type==="large")return"Size"+ce.size+"-Regular";if(ce.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+ce.type+"' here.")},Qo=function(ce,xe,Ie,Qe){for(var kt=Math.min(2,3-Qe.style.size),or=kt;or<Ie.length&&!(Ie[or].type==="stack");or++){var Qr=Oi(ce,oo(Ie[or]),"math"),fn=Qr.height+Qr.depth;if(Ie[or].type==="small"){var Ln=Qe.havingBaseStyle(Ie[or].style);fn*=Ln.sizeMultiplier}if(fn>xe)return Ie[or]}return Ie[Ie.length-1]},mo=function(ce,xe,Ie,Qe,kt,or){ce==="<"||ce==="\\lt"||ce==="\u27E8"?ce="\\langle":(ce===">"||ce==="\\gt"||ce==="\u27E9")&&(ce="\\rangle");var Qr;A.contains(Aa,ce)?Qr=Va:A.contains(ga,ce)?Qr=io:Qr=Pi;var fn=Qo(ce,xe,Qr,Qe);return fn.type==="small"?Xi(ce,fn.style,Ie,Qe,kt,or):fn.type==="large"?ji(ce,fn.size,Ie,Qe,kt,or):Ca(ce,xe,Ie,Qe,kt,or)},To=function(ce,xe,Ie,Qe,kt,or){var Qr=Qe.fontMetrics().axisHeight*Qe.sizeMultiplier,fn=901,Ln=5/Qe.fontMetrics().ptPerEm,ui=Math.max(xe-Qr,Ie+Qr),wi=Math.max(ui/500*fn,2*ui-Ln);return mo(ce,wi,!0,Qe,kt,or)},ao={sqrtImage:va,sizedDelim:_a,customSizedDelim:mo,leftRightDelim:To},So={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},bo=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function to(Rt,ce){var xe=Gi(Rt);if(xe&&A.contains(bo,xe.text))return xe;throw new l("Invalid delimiter: '"+(xe?xe.text:JSON.stringify(Rt))+"' after '"+ce.funcName+"'",Rt)}Dt({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,xe){var Ie=to(xe[0],ce);return{type:"delimsizing",mode:ce.parser.mode,size:So[ce.funcName].size,mclass:So[ce.funcName].mclass,delim:Ie.text}},htmlBuilder:function(ce,xe){return ce.delim==="."?Rr.makeSpan([ce.mclass]):ao.sizedDelim(ce.delim,ce.size,xe,ce.mode,[ce.mclass])},mathmlBuilder:function(ce){var xe=[];ce.delim!=="."&&xe.push(Dn(ce.delim,ce.mode));var Ie=new Ai.MathNode("mo",xe);return ce.mclass==="mopen"||ce.mclass==="mclose"?Ie.setAttribute("fence","true"):Ie.setAttribute("fence","false"),Ie}});function Jo(Rt){if(!Rt.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Dt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(ce,xe){var Ie=ce.parser.gullet.macros.get("\\current@color");if(Ie&&typeof Ie!="string")throw new l("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:ce.parser.mode,delim:to(xe[0],ce).text,color:Ie}}}),Dt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(ce,xe){var Ie=to(xe[0],ce),Qe=ce.parser;++Qe.leftrightDepth;var kt=Qe.parseExpression(!1);--Qe.leftrightDepth,Qe.expect("\\right",!1);var or=Pn(Qe.parseFunction(),"leftright-right");return{type:"leftright",mode:Qe.mode,body:kt,left:Ie.text,right:or.delim,rightColor:or.color}},htmlBuilder:function(ce,xe){Jo(ce);for(var Ie=gn(ce.body,xe,!0,["mopen","mclose"]),Qe=0,kt=0,or=!1,Qr=0;Qr<Ie.length;Qr++)Ie[Qr].isMiddle?or=!0:(Qe=Math.max(Ie[Qr].height,Qe),kt=Math.max(Ie[Qr].depth,kt));Qe*=xe.sizeMultiplier,kt*=xe.sizeMultiplier;var fn;if(ce.left==="."?fn=ai(xe,["mopen"]):fn=ao.leftRightDelim(ce.left,Qe,kt,xe,ce.mode,["mopen"]),Ie.unshift(fn),or)for(var Ln=1;Ln<Ie.length;Ln++){var ui=Ie[Ln],wi=ui.isMiddle;wi&&(Ie[Ln]=ao.leftRightDelim(wi.delim,Qe,kt,wi.options,ce.mode,[]))}var gi;if(ce.right===".")gi=ai(xe,["mclose"]);else{var Qi=ce.rightColor?xe.withColor(ce.rightColor):xe;gi=ao.leftRightDelim(ce.right,Qe,kt,Qi,ce.mode,["mclose"])}return Ie.push(gi),Rr.makeSpan(["minner"],Ie,xe)},mathmlBuilder:function(ce,xe){Jo(ce);var Ie=ta(ce.body,xe);if(ce.left!=="."){var Qe=new Ai.MathNode("mo",[Dn(ce.left,ce.mode)]);Qe.setAttribute("fence","true"),Ie.unshift(Qe)}if(ce.right!=="."){var kt=new Ai.MathNode("mo",[Dn(ce.right,ce.mode)]);kt.setAttribute("fence","true"),ce.rightColor&&kt.setAttribute("mathcolor",ce.rightColor),Ie.push(kt)}return Bi(Ie)}}),Dt({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(ce,xe){var Ie=to(xe[0],ce);if(!ce.parser.leftrightDepth)throw new l("\\middle without preceding \\left",Ie);return{type:"middle",mode:ce.parser.mode,delim:Ie.text}},htmlBuilder:function(ce,xe){var Ie;if(ce.delim===".")Ie=ai(xe,[]);else{Ie=ao.sizedDelim(ce.delim,1,xe,ce.mode,[]);var Qe={delim:ce.delim,options:xe};Ie.isMiddle=Qe}return Ie},mathmlBuilder:function(ce,xe){var Ie=ce.delim==="\\vert"||ce.delim==="|"?Dn("|","text"):Dn(ce.delim,ce.mode),Qe=new Ai.MathNode("mo",[Ie]);return Qe.setAttribute("fence","true"),Qe.setAttribute("lspace","0.05em"),Qe.setAttribute("rspace","0.05em"),Qe}});var Uo=function(ce,xe){var Ie=Rr.wrapFragment(Ei(ce.body,xe),xe),Qe=ce.label.substr(1),kt=xe.sizeMultiplier,or,Qr=0,fn=A.isCharacterBox(ce.body);if(Qe==="sout")or=Rr.makeSpan(["stretchy","sout"]),or.height=xe.fontMetrics().defaultRuleThickness/kt,Qr=-.5*xe.fontMetrics().xHeight;else{/cancel/.test(Qe)?fn||Ie.classes.push("cancel-pad"):Ie.classes.push("boxpad");var Ln=0,ui=0;/box/.test(Qe)?(ui=Math.max(xe.fontMetrics().fboxrule,xe.minRuleThickness),Ln=xe.fontMetrics().fboxsep+(Qe==="colorbox"?0:ui)):Ln=fn?.2:0,or=On.encloseSpan(Ie,Qe,Ln,xe),/fbox|boxed|fcolorbox/.test(Qe)&&(or.style.borderStyle="solid",or.style.borderWidth=ui+"em"),Qr=Ie.depth+Ln,ce.backgroundColor&&(or.style.backgroundColor=ce.backgroundColor,ce.borderColor&&(or.style.borderColor=ce.borderColor))}var wi;return ce.backgroundColor?wi=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:or,shift:Qr},{type:"elem",elem:Ie,shift:0}]},xe):wi=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ie,shift:0},{type:"elem",elem:or,shift:Qr,wrapperClasses:/cancel/.test(Qe)?["svg-align"]:[]}]},xe),/cancel/.test(Qe)&&(wi.height=Ie.height,wi.depth=Ie.depth),/cancel/.test(Qe)&&!fn?Rr.makeSpan(["mord","cancel-lap"],[wi],xe):Rr.makeSpan(["mord"],[wi],xe)},wo=function(ce,xe){var Ie=0,Qe=new Ai.MathNode(ce.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ir(ce.body,xe)]);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(Ie=xe.fontMetrics().fboxsep*xe.fontMetrics().ptPerEm,Qe.setAttribute("width","+"+2*Ie+"pt"),Qe.setAttribute("height","+"+2*Ie+"pt"),Qe.setAttribute("lspace",Ie+"pt"),Qe.setAttribute("voffset",Ie+"pt"),ce.label==="\\fcolorbox"){var kt=Math.max(xe.fontMetrics().fboxrule,xe.minRuleThickness);Qe.setAttribute("style","border: "+kt+"em solid "+String(ce.borderColor))}break;case"\\xcancel":Qe.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return ce.backgroundColor&&Qe.setAttribute("mathbackground",ce.backgroundColor),Qe};Dt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(ce,xe,Ie){var Qe=ce.parser,kt=ce.funcName,or=Pn(xe[0],"color-token").color,Qr=xe[1];return{type:"enclose",mode:Qe.mode,label:kt,backgroundColor:or,body:Qr}},htmlBuilder:Uo,mathmlBuilder:wo}),Dt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(ce,xe,Ie){var Qe=ce.parser,kt=ce.funcName,or=Pn(xe[0],"color-token").color,Qr=Pn(xe[1],"color-token").color,fn=xe[2];return{type:"enclose",mode:Qe.mode,label:kt,backgroundColor:Qr,borderColor:or,body:fn}},htmlBuilder:Uo,mathmlBuilder:wo}),Dt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser;return{type:"enclose",mode:Ie.mode,label:"\\fbox",body:xe[0]}}}),Dt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(ce,xe,Ie){var Qe=ce.parser,kt=ce.funcName,or=xe[0];return{type:"enclose",mode:Qe.mode,label:kt,body:or}},htmlBuilder:Uo,mathmlBuilder:wo});var ts={};function Ia(Rt){for(var ce=Rt.type,xe=Rt.names,Ie=Rt.props,Qe=Rt.handler,kt=Rt.htmlBuilder,or=Rt.mathmlBuilder,Qr={type:ce,numArgs:Ie.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:Qe},fn=0;fn<xe.length;++fn)ts[xe[fn]]=Qr;kt&&(Kt[ce]=kt),or&&(Gt[ce]=or)}function Oo(Rt){var ce=[];Rt.consumeSpaces();for(var xe=Rt.fetch().text;xe==="\\hline"||xe==="\\hdashline";)Rt.consume(),ce.push(xe==="\\hdashline"),Rt.consumeSpaces(),xe=Rt.fetch().text;return ce}function Io(Rt,ce,xe){var Ie=ce.hskipBeforeAndAfter,Qe=ce.addJot,kt=ce.cols,or=ce.arraystretch,Qr=ce.colSeparationType;if(Rt.gullet.beginGroup(),Rt.gullet.macros.set("\\\\","\\cr"),!or){var fn=Rt.gullet.expandMacroAsText("\\arraystretch");if(fn==null)or=1;else if(or=parseFloat(fn),!or||or<0)throw new l("Invalid \\arraystretch: "+fn)}Rt.gullet.beginGroup();var Ln=[],ui=[Ln],wi=[],gi=[];for(gi.push(Oo(Rt));;){var Qi=Rt.parseExpression(!1,"\\cr");Rt.gullet.endGroup(),Rt.gullet.beginGroup(),Qi={type:"ordgroup",mode:Rt.mode,body:Qi},xe&&(Qi={type:"styling",mode:Rt.mode,style:xe,body:[Qi]}),Ln.push(Qi);var sa=Rt.fetch().text;if(sa==="&")Rt.consume();else if(sa==="\\end"){Ln.length===1&&Qi.type==="styling"&&Qi.body[0].body.length===0&&ui.pop(),gi.length<ui.length+1&&gi.push([]);break}else if(sa==="\\cr"){var Ua=Pn(Rt.parseFunction(),"cr");wi.push(Ua.size),gi.push(Oo(Rt)),Ln=[],ui.push(Ln)}else throw new l("Expected & or \\\\ or \\cr or \\end",Rt.nextToken)}return Rt.gullet.endGroup(),Rt.gullet.endGroup(),{type:"array",mode:Rt.mode,addJot:Qe,arraystretch:or,body:ui,cols:kt,rowGaps:wi,hskipBeforeAndAfter:Ie,hLinesBeforeRow:gi,colSeparationType:Qr}}function os(Rt){return Rt.substr(0,1)==="d"?"display":"text"}var xo=function(ce,xe){var Ie,Qe,kt=ce.body.length,or=ce.hLinesBeforeRow,Qr=0,fn=new Array(kt),Ln=[],ui=Math.max(xe.fontMetrics().arrayRuleWidth,xe.minRuleThickness),wi=1/xe.fontMetrics().ptPerEm,gi=5*wi;if(ce.colSeparationType&&ce.colSeparationType==="small"){var Qi=xe.havingStyle(z.SCRIPT).sizeMultiplier;gi=.2778*(Qi/xe.sizeMultiplier)}var sa=12*wi,Ua=3*wi,no=ce.arraystretch*sa,Wo=.7*no,Zo=.3*no,Bo=0;function Es(Ls){for(var Ps=0;Ps<Ls.length;++Ps)Ps>0&&(Bo+=.25),Ln.push({pos:Bo,isDashed:Ls[Ps]})}for(Es(or[0]),Ie=0;Ie<ce.body.length;++Ie){var As=ce.body[Ie],$o=Wo,Do=Zo;Qr<As.length&&(Qr=As.length);var vo=new Array(As.length);for(Qe=0;Qe<As.length;++Qe){var Ms=Ei(As[Qe],xe);Do<Ms.depth&&(Do=Ms.depth),$o<Ms.height&&($o=Ms.height),vo[Qe]=Ms}var rl=ce.rowGaps[Ie],gs=0;rl&&(gs=Nr(rl,xe),gs>0&&(gs+=Zo,Do<gs&&(Do=gs),gs=0)),ce.addJot&&(Do+=Ua),vo.height=$o,vo.depth=Do,Bo+=$o,vo.pos=Bo,Bo+=Do+gs,fn[Ie]=vo,Es(or[Ie+1])}var Ra=Bo/2+xe.fontMetrics().axisHeight,dl=ce.cols||[],fl=[],Us,Os;for(Qe=0,Os=0;Qe<Qr||Os<dl.length;++Qe,++Os){for(var Xs=dl[Os]||{},Ql=!0;Xs.type==="separator";){if(Ql||(Us=Rr.makeSpan(["arraycolsep"],[]),Us.style.width=xe.fontMetrics().doubleRuleSep+"em",fl.push(Us)),Xs.separator==="|"||Xs.separator===":"){var Ul=Xs.separator==="|"?"solid":"dashed",wl=Rr.makeSpan(["vertical-separator"],[],xe);wl.style.height=Bo+"em",wl.style.borderRightWidth=ui+"em",wl.style.borderRightStyle=Ul,wl.style.margin="0 -"+ui/2+"em",wl.style.verticalAlign=-(Bo-Ra)+"em",fl.push(wl)}else throw new l("Invalid separator type: "+Xs.separator);Os++,Xs=dl[Os]||{},Ql=!1}if(Qe>=Qr)continue;var Ts=void 0;(Qe>0||ce.hskipBeforeAndAfter)&&(Ts=A.deflt(Xs.pregap,gi),Ts!==0&&(Us=Rr.makeSpan(["arraycolsep"],[]),Us.style.width=Ts+"em",fl.push(Us)));var Ws=[];for(Ie=0;Ie<kt;++Ie){var Tl=fn[Ie],pl=Tl[Qe];if(!pl)continue;var jo=Tl.pos-Ra;pl.depth=Tl.depth,pl.height=Tl.height,Ws.push({type:"elem",elem:pl,shift:jo})}Ws=Rr.makeVList({positionType:"individualShift",children:Ws},xe),Ws=Rr.makeSpan(["col-align-"+(Xs.align||"c")],[Ws]),fl.push(Ws),(Qe<Qr-1||ce.hskipBeforeAndAfter)&&(Ts=A.deflt(Xs.postgap,gi),Ts!==0&&(Us=Rr.makeSpan(["arraycolsep"],[]),Us.style.width=Ts+"em",fl.push(Us)))}if(fn=Rr.makeSpan(["mtable"],fl),Ln.length>0){for(var yo=Rr.makeLineSpan("hline",xe,ui),qo=Rr.makeLineSpan("hdashline",xe,ui),ps=[{type:"elem",elem:fn,shift:0}];Ln.length>0;){var Is=Ln.pop(),es=Is.pos-Ra;Is.isDashed?ps.push({type:"elem",elem:qo,shift:es}):ps.push({type:"elem",elem:yo,shift:es})}fn=Rr.makeVList({positionType:"individualShift",children:ps},xe)}return Rr.makeSpan(["mord"],[fn],xe)},rs={c:"center ",l:"left ",r:"right "},Ho=function(ce,xe){var Ie=new Ai.MathNode("mtable",ce.body.map(function(Bo){return new Ai.MathNode("mtr",Bo.map(function(Es){return new Ai.MathNode("mtd",[Ir(Es,xe)])}))})),Qe=ce.arraystretch===.5?.1:.16+ce.arraystretch-1+(ce.addJot?.09:0);Ie.setAttribute("rowspacing",Qe+"em");var kt="",or="";if(ce.cols){var Qr=ce.cols,fn="",Ln=!1,ui=0,wi=Qr.length;Qr[0].type==="separator"&&(kt+="top ",ui=1),Qr[Qr.length-1].type==="separator"&&(kt+="bottom ",wi-=1);for(var gi=ui;gi<wi;gi++)Qr[gi].type==="align"?(or+=rs[Qr[gi].align],Ln&&(fn+="none "),Ln=!0):Qr[gi].type==="separator"&&(Ln&&(fn+=Qr[gi].separator==="|"?"solid ":"dashed ",Ln=!1));Ie.setAttribute("columnalign",or.trim()),/[sd]/.test(fn)&&Ie.setAttribute("columnlines",fn.trim())}if(ce.colSeparationType==="align"){for(var Qi=ce.cols||[],sa="",Ua=1;Ua<Qi.length;Ua++)sa+=Ua%2?"0em ":"1em ";Ie.setAttribute("columnspacing",sa.trim())}else ce.colSeparationType==="alignat"?Ie.setAttribute("columnspacing","0em"):ce.colSeparationType==="small"?Ie.setAttribute("columnspacing","0.2778em"):Ie.setAttribute("columnspacing","1em");var no="",Wo=ce.hLinesBeforeRow;kt+=Wo[0].length>0?"left ":"",kt+=Wo[Wo.length-1].length>0?"right ":"";for(var Zo=1;Zo<Wo.length-1;Zo++)no+=Wo[Zo].length===0?"none ":Wo[Zo][0]?"dashed ":"solid ";return/[sd]/.test(no)&&Ie.setAttribute("rowlines",no.trim()),kt!==""&&(Ie=new Ai.MathNode("menclose",[Ie]),Ie.setAttribute("notation",kt.trim())),ce.arraystretch&&ce.arraystretch<1&&(Ie=new Ai.MathNode("mstyle",[Ie]),Ie.setAttribute("scriptlevel","1")),Ie},_o=function(ce,xe){var Ie=[],Qe=Io(ce.parser,{cols:Ie,addJot:!0},"display"),kt,or=0,Qr={type:"ordgroup",mode:ce.mode,body:[]},fn=an(xe[0],"ordgroup");if(fn){for(var Ln="",ui=0;ui<fn.body.length;ui++){var wi=Pn(fn.body[ui],"textord");Ln+=wi.text}kt=Number(Ln),or=kt*2}var gi=!or;Qe.body.forEach(function(no){for(var Wo=1;Wo<no.length;Wo+=2){var Zo=Pn(no[Wo],"styling"),Bo=Pn(Zo.body[0],"ordgroup");Bo.body.unshift(Qr)}if(gi)or<no.length&&(or=no.length);else{var Es=no.length/2;if(kt<Es)throw new l("Too many math in a row: "+("expected "+kt+", but got "+Es),no[0])}});for(var Qi=0;Qi<or;++Qi){var sa="r",Ua=0;Qi%2===1?sa="l":Qi>0&&gi&&(Ua=1),Ie[Qi]={type:"align",align:sa,pregap:Ua,postgap:0}}return Qe.colSeparationType=gi?"align":"alignat",Qe};Ia({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(ce,xe){var Ie=Gi(xe[0]),Qe=Ie?[xe[0]]:Pn(xe[0],"ordgroup").body,kt=Qe.map(function(Qr){var fn=_i(Qr),Ln=fn.text;if("lcr".indexOf(Ln)!==-1)return{type:"align",align:Ln};if(Ln==="|")return{type:"separator",separator:"|"};if(Ln===":")return{type:"separator",separator:":"};throw new l("Unknown column alignment: "+Ln,Qr)}),or={cols:kt,hskipBeforeAndAfter:!0};return Io(ce.parser,or,os(ce.envName))},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(ce){var xe={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[ce.envName],Ie={hskipBeforeAndAfter:!1},Qe=Io(ce.parser,Ie,os(ce.envName));return xe?{type:"leftright",mode:ce.mode,body:[Qe],left:xe[0],right:xe[1],rightColor:void 0}:Qe},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(ce){var xe={arraystretch:.5},Ie=Io(ce.parser,xe,"script");return Ie.colSeparationType="small",Ie},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["subarray"],props:{numArgs:1},handler:function(ce,xe){var Ie=Gi(xe[0]),Qe=Ie?[xe[0]]:Pn(xe[0],"ordgroup").body,kt=Qe.map(function(Qr){var fn=_i(Qr),Ln=fn.text;if("lc".indexOf(Ln)!==-1)return{type:"align",align:Ln};throw new l("Unknown column alignment: "+Ln,Qr)});if(kt.length>1)throw new l("{subarray} can contain only one column");var or={cols:kt,hskipBeforeAndAfter:!1,arraystretch:.5};if(or=Io(ce.parser,or,"script"),or.body[0].length>1)throw new l("{subarray} can contain only one column");return or},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(ce){var xe={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Ie=Io(ce.parser,xe,os(ce.envName));return{type:"leftright",mode:ce.mode,body:[Ie],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["aligned"],props:{numArgs:0},handler:_o,htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["gathered"],props:{numArgs:0},handler:function(ce){var xe={cols:[{type:"align",align:"c"}],addJot:!0};return Io(ce.parser,xe,"display")},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["alignedat"],props:{numArgs:1},handler:_o,htmlBuilder:xo,mathmlBuilder:Ho}),Dt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(ce,xe){throw new l(ce.funcName+" valid only within array environment")}});var uo=ts,Ha=uo;Dt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(ce,xe){var Ie=ce.parser,Qe=ce.funcName,kt=xe[0];if(kt.type!=="ordgroup")throw new l("Invalid environment name",kt);for(var or="",Qr=0;Qr<kt.body.length;++Qr)or+=Pn(kt.body[Qr],"textord").text;if(Qe==="\\begin"){if(!Ha.hasOwnProperty(or))throw new l("No such environment: "+or,kt);var fn=Ha[or],Ln=Ie.parseArguments("\\begin{"+or+"}",fn),ui=Ln.args,wi=Ln.optArgs,gi={mode:Ie.mode,envName:or,parser:Ie},Qi=fn.handler(gi,ui,wi);Ie.expect("\\end",!1);var sa=Ie.nextToken,Ua=Pn(Ie.parseFunction(),"environment");if(Ua.name!==or)throw new l("Mismatch: \\begin{"+or+"} matched by \\end{"+Ua.name+"}",sa);return Qi}return{type:"environment",mode:Ie.mode,name:or,nameGroup:kt}}});var ft=Rr.makeSpan;function Tr(Rt,ce){var xe=gn(Rt.body,ce,!0);return ft([Rt.mclass],xe,ce)}function qr(Rt,ce){var xe,Ie=ta(Rt.body,ce);return Rt.mclass==="minner"?Ai.newDocumentFragment(Ie):(Rt.mclass==="mord"?Rt.isCharacterBox?(xe=Ie[0],xe.type="mi"):xe=new Ai.MathNode("mi",Ie):(Rt.isCharacterBox?(xe=Ie[0],xe.type="mo"):xe=new Ai.MathNode("mo",Ie),Rt.mclass==="mbin"?(xe.attributes.lspace="0.22em",xe.attributes.rspace="0.22em"):Rt.mclass==="mpunct"?(xe.attributes.lspace="0em",xe.attributes.rspace="0.17em"):(Rt.mclass==="mopen"||Rt.mclass==="mclose")&&(xe.attributes.lspace="0em",xe.attributes.rspace="0em")),xe)}Dt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(ce,xe){var Ie=ce.parser,Qe=ce.funcName,kt=xe[0];return{type:"mclass",mode:Ie.mode,mclass:"m"+Qe.substr(5),body:Ar(kt),isCharacterBox:A.isCharacterBox(kt)}},htmlBuilder:Tr,mathmlBuilder:qr});var Yr=function(ce){var xe=ce.type==="ordgroup"&&ce.body.length?ce.body[0]:ce;return xe.type==="atom"&&(xe.family==="bin"||xe.family==="rel")?"m"+xe.family:"mord"};Dt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(ce,xe){var Ie=ce.parser;return{type:"mclass",mode:Ie.mode,mclass:Yr(xe[0]),body:[xe[1]],isCharacterBox:A.isCharacterBox(xe[1])}}}),Dt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(ce,xe){var Ie=ce.parser,Qe=ce.funcName,kt=xe[1],or=xe[0],Qr;Qe!=="\\stackrel"?Qr=Yr(kt):Qr="mrel";var fn={type:"op",mode:kt.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:Qe!=="\\stackrel",body:Ar(kt)},Ln={type:"supsub",mode:or.mode,base:fn,sup:Qe==="\\underset"?null:or,sub:Qe==="\\underset"?or:null};return{type:"mclass",mode:Ie.mode,mclass:Qr,body:[Ln],isCharacterBox:A.isCharacterBox(Ln)}},htmlBuilder:Tr,mathmlBuilder:qr});var Yn=function(ce,xe){var Ie=ce.font,Qe=xe.withFont(Ie);return Ei(ce.body,Qe)},dn=function(ce,xe){var Ie=ce.font,Qe=xe.withFont(Ie);return Ir(ce.body,Qe)},Gr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Dt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(ce,xe){var Ie=ce.parser,Qe=ce.funcName,kt=xe[0],or=Qe;return or in Gr&&(or=Gr[or]),{type:"font",mode:Ie.mode,font:or.slice(1),body:kt}},htmlBuilder:Yn,mathmlBuilder:dn}),Dt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(ce,xe){var Ie=ce.parser,Qe=xe[0],kt=A.isCharacterBox(Qe);return{type:"mclass",mode:Ie.mode,mclass:Yr(Qe),body:[{type:"font",mode:Ie.mode,font:"boldsymbol",body:Qe}],isCharacterBox:kt}}}),Dt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Qe=ce.funcName,kt=ce.breakOnTokenText,or=Ie.mode,Qr=Ie.parseExpression(!0,kt),fn="math"+Qe.slice(1);return{type:"font",mode:or,font:fn,body:{type:"ordgroup",mode:Ie.mode,body:Qr}}},htmlBuilder:Yn,mathmlBuilder:dn});var ri=function(ce,xe){var Ie=xe;return ce==="display"?Ie=Ie.id>=z.SCRIPT.id?Ie.text():z.DISPLAY:ce==="text"&&Ie.size===z.DISPLAY.size?Ie=z.TEXT:ce==="script"?Ie=z.SCRIPT:ce==="scriptscript"&&(Ie=z.SCRIPTSCRIPT),Ie},rn=function(ce,xe){var Ie=ri(ce.size,xe.style),Qe=Ie.fracNum(),kt=Ie.fracDen(),or;or=xe.havingStyle(Qe);var Qr=Ei(ce.numer,or,xe);if(ce.continued){var fn=8.5/xe.fontMetrics().ptPerEm,Ln=3.5/xe.fontMetrics().ptPerEm;Qr.height=Qr.height<fn?fn:Qr.height,Qr.depth=Qr.depth<Ln?Ln:Qr.depth}or=xe.havingStyle(kt);var ui=Ei(ce.denom,or,xe),wi,gi,Qi;ce.hasBarLine?(ce.barSize?(gi=Nr(ce.barSize,xe),wi=Rr.makeLineSpan("frac-line",xe,gi)):wi=Rr.makeLineSpan("frac-line",xe),gi=wi.height,Qi=wi.height):(wi=null,gi=0,Qi=xe.fontMetrics().defaultRuleThickness);var sa,Ua,no;Ie.size===z.DISPLAY.size||ce.size==="display"?(sa=xe.fontMetrics().num1,gi>0?Ua=3*Qi:Ua=7*Qi,no=xe.fontMetrics().denom1):(gi>0?(sa=xe.fontMetrics().num2,Ua=Qi):(sa=xe.fontMetrics().num3,Ua=3*Qi),no=xe.fontMetrics().denom2);var Wo;if(wi){var Bo=xe.fontMetrics().axisHeight;sa-Qr.depth-(Bo+.5*gi)<Ua&&(sa+=Ua-(sa-Qr.depth-(Bo+.5*gi))),Bo-.5*gi-(ui.height-no)<Ua&&(no+=Ua-(Bo-.5*gi-(ui.height-no)));var Es=-(Bo-.5*gi);Wo=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ui,shift:no},{type:"elem",elem:wi,shift:Es},{type:"elem",elem:Qr,shift:-sa}]},xe)}else{var Zo=sa-Qr.depth-(ui.height-no);Zo<Ua&&(sa+=.5*(Ua-Zo),no+=.5*(Ua-Zo)),Wo=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ui,shift:no},{type:"elem",elem:Qr,shift:-sa}]},xe)}or=xe.havingStyle(Ie),Wo.height*=or.sizeMultiplier/xe.sizeMultiplier,Wo.depth*=or.sizeMultiplier/xe.sizeMultiplier;var As;Ie.size===z.DISPLAY.size?As=xe.fontMetrics().delim1:As=xe.fontMetrics().delim2;var $o,Do;return ce.leftDelim==null?$o=ai(xe,["mopen"]):$o=ao.customSizedDelim(ce.leftDelim,As,!0,xe.havingStyle(Ie),ce.mode,["mopen"]),ce.continued?Do=Rr.makeSpan([]):ce.rightDelim==null?Do=ai(xe,["mclose"]):Do=ao.customSizedDelim(ce.rightDelim,As,!0,xe.havingStyle(Ie),ce.mode,["mclose"]),Rr.makeSpan(["mord"].concat(or.sizingClasses(xe)),[$o,Rr.makeSpan(["mfrac"],[Wo]),Do],xe)},Hn=function(ce,xe){var Ie=new Ai.MathNode("mfrac",[Ir(ce.numer,xe),Ir(ce.denom,xe)]);if(!ce.hasBarLine)Ie.setAttribute("linethickness","0px");else if(ce.barSize){var Qe=Nr(ce.barSize,xe);Ie.setAttribute("linethickness",Qe+"em")}var kt=ri(ce.size,xe.style);if(kt.size!==xe.style.size){Ie=new Ai.MathNode("mstyle",[Ie]);var or=kt.size===z.DISPLAY.size?"true":"false";Ie.setAttribute("displaystyle",or),Ie.setAttribute("scriptlevel","0")}if(ce.leftDelim!=null||ce.rightDelim!=null){var Qr=[];if(ce.leftDelim!=null){var fn=new Ai.MathNode("mo",[new Ai.TextNode(ce.leftDelim.replace("\\",""))]);fn.setAttribute("fence","true"),Qr.push(fn)}if(Qr.push(Ie),ce.rightDelim!=null){var Ln=new Ai.MathNode("mo",[new Ai.TextNode(ce.rightDelim.replace("\\",""))]);Ln.setAttribute("fence","true"),Qr.push(Ln)}return Bi(Qr)}return Ie};Dt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(ce,xe){var Ie=ce.parser,Qe=ce.funcName,kt=xe[0],or=xe[1],Qr,fn=null,Ln=null,ui="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,fn="(",Ln=")";break;case"\\\\bracefrac":Qr=!1,fn="\\{",Ln="\\}";break;case"\\\\brackfrac":Qr=!1,fn="[",Ln="]";break;default:throw new Error("Unrecognized genfrac command")}switch(Qe){case"\\cfrac":case"\\dfrac":case"\\dbinom":ui="display";break;case"\\tfrac":case"\\tbinom":ui="text";break}return{type:"genfrac",mode:Ie.mode,continued:Qe==="\\cfrac",numer:kt,denom:or,hasBarLine:Qr,leftDelim:fn,rightDelim:Ln,size:ui,barSize:null}},htmlBuilder:rn,mathmlBuilder:Hn}),Dt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(ce){var xe=ce.parser,Ie=ce.funcName,Qe=ce.token,kt;switch(Ie){case"\\over":kt="\\frac";break;case"\\choose":kt="\\binom";break;case"\\atop":kt="\\\\atopfrac";break;case"\\brace":kt="\\\\bracefrac";break;case"\\brack":kt="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:xe.mode,replaceWith:kt,token:Qe}}});var li=["display","text","script","scriptscript"],ci=function(ce){var xe=null;return ce.length>0&&(xe=ce,xe=xe==="."?null:xe),xe};Dt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(ce,xe){var Ie=ce.parser,Qe=xe[4],kt=xe[5],or=an(xe[0],"atom");or&&(or=Ur(xe[0],"open"));var Qr=or?ci(or.text):null,fn=an(xe[1],"atom");fn&&(fn=Ur(xe[1],"close"));var Ln=fn?ci(fn.text):null,ui=Pn(xe[2],"size"),wi,gi=null;ui.isBlank?wi=!0:(gi=ui.value,wi=gi.number>0);var Qi="auto",sa=an(xe[3],"ordgroup");if(sa){if(sa.body.length>0){var Ua=Pn(sa.body[0],"textord");Qi=li[Number(Ua.text)]}}else sa=Pn(xe[3],"textord"),Qi=li[Number(sa.text)];return{type:"genfrac",mode:Ie.mode,numer:Qe,denom:kt,continued:!1,hasBarLine:wi,barSize:gi,leftDelim:Qr,rightDelim:Ln,size:Qi}},htmlBuilder:rn,mathmlBuilder:Hn}),Dt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(ce,xe){var Ie=ce.parser,Qe=ce.funcName,kt=ce.token;return{type:"infix",mode:Ie.mode,replaceWith:"\\\\abovefrac",size:Pn(xe[0],"size").value,token:kt}}}),Dt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(ce,xe){var Ie=ce.parser,Qe=ce.funcName,kt=xe[0],or=h(Pn(xe[1],"infix").size),Qr=xe[2],fn=or.number>0;return{type:"genfrac",mode:Ie.mode,numer:kt,denom:Qr,continued:!1,hasBarLine:fn,barSize:or,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:rn,mathmlBuilder:Hn});var si=function(ce,xe){var Ie=xe.style,Qe,kt,or=an(ce,"supsub");or?(Qe=or.sup?Ei(or.sup,xe.havingStyle(Ie.sup()),xe):Ei(or.sub,xe.havingStyle(Ie.sub()),xe),kt=Pn(or.base,"horizBrace")):kt=Pn(ce,"horizBrace");var Qr=Ei(kt.base,xe.havingBaseStyle(z.DISPLAY)),fn=On.svgSpan(kt,xe),Ln;if(kt.isOver?(Ln=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Qr},{type:"kern",size:.1},{type:"elem",elem:fn}]},xe),Ln.children[0].children[0].children[1].classes.push("svg-align")):(Ln=Rr.makeVList({positionType:"bottom",positionData:Qr.depth+.1+fn.height,children:[{type:"elem",elem:fn},{type:"kern",size:.1},{type:"elem",elem:Qr}]},xe),Ln.children[0].children[0].children[0].classes.push("svg-align")),Qe){var ui=Rr.makeSpan(["mord",kt.isOver?"mover":"munder"],[Ln],xe);kt.isOver?Ln=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ui},{type:"kern",size:.2},{type:"elem",elem:Qe}]},xe):Ln=Rr.makeVList({positionType:"bottom",positionData:ui.depth+.2+Qe.height+Qe.depth,children:[{type:"elem",elem:Qe},{type:"kern",size:.2},{type:"elem",elem:ui}]},xe)}return Rr.makeSpan(["mord",kt.isOver?"mover":"munder"],[Ln],xe)},Ti=function(ce,xe){var Ie=On.mathMLnode(ce.label);return new Ai.MathNode(ce.isOver?"mover":"munder",[Ir(ce.base,xe),Ie])};Dt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(ce,xe){var Ie=ce.parser,Qe=ce.funcName;return{type:"horizBrace",mode:Ie.mode,label:Qe,isOver:/^\\over/.test(Qe),base:xe[0]}},htmlBuilder:si,mathmlBuilder:Ti}),Dt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Qe=xe[1],kt=Pn(xe[0],"url").url;return Ie.settings.isTrusted({command:"\\href",url:kt})?{type:"href",mode:Ie.mode,href:kt,body:Ar(Qe)}:Ie.formatUnsupportedCmd("\\href")},htmlBuilder:function(ce,xe){var Ie=gn(ce.body,xe,!1);return Rr.makeAnchor(ce.href,[],Ie,xe)},mathmlBuilder:function(ce,xe){var Ie=ra(ce.body,xe);return Ie instanceof ma||(Ie=new ma("mrow",[Ie])),Ie.setAttribute("href",ce.href),Ie}}),Dt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Qe=Pn(xe[0],"url").url;if(!Ie.settings.isTrusted({command:"\\url",url:Qe}))return Ie.formatUnsupportedCmd("\\url");for(var kt=[],or=0;or<Qe.length;or++){var Qr=Qe[or];Qr==="~"&&(Qr="\\textasciitilde"),kt.push({type:"textord",mode:"text",text:Qr})}var fn={type:"text",mode:Ie.mode,font:"\\texttt",body:kt};return{type:"href",mode:Ie.mode,href:Qe,body:Ar(fn)}}}),Dt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser;return{type:"htmlmathml",mode:Ie.mode,html:Ar(xe[0]),mathml:Ar(xe[1])}},htmlBuilder:function(ce,xe){var Ie=gn(ce.html,xe,!1);return Rr.makeFragment(Ie)},mathmlBuilder:function(ce,xe){return ra(ce.mathml,xe)}});var mi=function(ce){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(ce))return{number:+ce,unit:"bp"};var xe=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(ce);if(!xe)throw new l("Invalid size: '"+ce+"' in \\includegraphics");var Ie={number:+(xe[1]+xe[2]),unit:xe[3]};if(!Hr(Ie))throw new l("Invalid unit: '"+Ie.unit+"' in \\includegraphics.");return Ie};Dt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(ce,xe,Ie){var Qe=ce.parser,kt={number:0,unit:"em"},or={number:.9,unit:"em"},Qr={number:0,unit:"em"},fn="";if(Ie[0])for(var Ln=Pn(Ie[0],"raw").string,ui=Ln.split(","),wi=0;wi<ui.length;wi++){var gi=ui[wi].split("=");if(gi.length===2){var Qi=gi[1].trim();switch(gi[0].trim()){case"alt":fn=Qi;break;case"width":kt=mi(Qi);break;case"height":or=mi(Qi);break;case"totalheight":Qr=mi(Qi);break;default:throw new l("Invalid key: '"+gi[0]+"' in \\includegraphics.")}}}var sa=Pn(xe[0],"url").url;return fn===""&&(fn=sa,fn=fn.replace(/^.*[\\/]/,""),fn=fn.substring(0,fn.lastIndexOf("."))),Qe.settings.isTrusted({command:"\\includegraphics",url:sa})?{type:"includegraphics",mode:Qe.mode,alt:fn,width:kt,height:or,totalheight:Qr,src:sa}:Qe.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(ce,xe){var Ie=Nr(ce.height,xe),Qe=0;ce.totalheight.number>0&&(Qe=Nr(ce.totalheight,xe)-Ie,Qe=Number(Qe.toFixed(2)));var kt=0;ce.width.number>0&&(kt=Nr(ce.width,xe));var or={height:Ie+Qe+"em"};kt>0&&(or.width=kt+"em"),Qe>0&&(or.verticalAlign=-Qe+"em");var Qr=new fe(ce.src,ce.alt,or);return Qr.height=Ie,Qr.depth=Qe,Qr},mathmlBuilder:function(ce,xe){var Ie=new Ai.MathNode("mglyph",[]);Ie.setAttribute("alt",ce.alt);var Qe=Nr(ce.height,xe),kt=0;if(ce.totalheight.number>0&&(kt=Nr(ce.totalheight,xe)-Qe,kt=kt.toFixed(2),Ie.setAttribute("valign","-"+kt+"em")),Ie.setAttribute("height",Qe+kt+"em"),ce.width.number>0){var or=Nr(ce.width,xe);Ie.setAttribute("width",or+"em")}return Ie.setAttribute("src",ce.src),Ie}}),Dt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Qe=ce.funcName,kt=Pn(xe[0],"size");if(Ie.settings.strict){var or=Qe[1]==="m",Qr=kt.value.unit==="mu";or?(Qr||Ie.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Qe+" supports only mu units, "+("not "+kt.value.unit+" units")),Ie.mode!=="math"&&Ie.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Qe+" works only in math mode")):Qr&&Ie.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Qe+" doesn't support mu units")}return{type:"kern",mode:Ie.mode,dimension:kt.value}},htmlBuilder:function(ce,xe){return Rr.makeGlue(ce.dimension,xe)},mathmlBuilder:function(ce,xe){var Ie=Nr(ce.dimension,xe);return new Ai.SpaceNode(Ie)}}),Dt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Qe=ce.funcName,kt=xe[0];return{type:"lap",mode:Ie.mode,alignment:Qe.slice(5),body:kt}},htmlBuilder:function(ce,xe){var Ie;ce.alignment==="clap"?(Ie=Rr.makeSpan([],[Ei(ce.body,xe)]),Ie=Rr.makeSpan(["inner"],[Ie],xe)):Ie=Rr.makeSpan(["inner"],[Ei(ce.body,xe)]);var Qe=Rr.makeSpan(["fix"],[]),kt=Rr.makeSpan([ce.alignment],[Ie,Qe],xe),or=Rr.makeSpan(["strut"]);return or.style.height=kt.height+kt.depth+"em",or.style.verticalAlign=-kt.depth+"em",kt.children.unshift(or),kt=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:kt}]},xe),Rr.makeSpan(["mord"],[kt],xe)},mathmlBuilder:function(ce,xe){var Ie=new Ai.MathNode("mpadded",[Ir(ce.body,xe)]);if(ce.alignment!=="rlap"){var Qe=ce.alignment==="llap"?"-1":"-0.5";Ie.setAttribute("lspace",Qe+"width")}return Ie.setAttribute("width","0px"),Ie}}),Dt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ce,xe){var Ie=ce.funcName,Qe=ce.parser,kt=Qe.mode;Qe.switchMode("math");var or=Ie==="\\("?"\\)":"$",Qr=Qe.parseExpression(!1,or);return Qe.expect(or),Qe.switchMode(kt),{type:"styling",mode:Qe.mode,style:"text",body:Qr}}}),Dt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ce,xe){throw new l("Mismatched "+ce.funcName)}});var vi=function(ce,xe){switch(xe.style.size){case z.DISPLAY.size:return ce.display;case z.TEXT.size:return ce.text;case z.SCRIPT.size:return ce.script;case z.SCRIPTSCRIPT.size:return ce.scriptscript;default:return ce.text}};Dt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(ce,xe){var Ie=ce.parser;return{type:"mathchoice",mode:Ie.mode,display:Ar(xe[0]),text:Ar(xe[1]),script:Ar(xe[2]),scriptscript:Ar(xe[3])}},htmlBuilder:function(ce,xe){var Ie=vi(ce,xe),Qe=gn(Ie,xe,!1);return Rr.makeFragment(Qe)},mathmlBuilder:function(ce,xe){var Ie=vi(ce,xe);return ra(Ie,xe)}});var Li=function(ce,xe,Ie,Qe,kt,or,Qr){ce=Rr.makeSpan([],[ce]);var fn,Ln;if(xe){var ui=Ei(xe,Qe.havingStyle(kt.sup()),Qe);Ln={elem:ui,kern:Math.max(Qe.fontMetrics().bigOpSpacing1,Qe.fontMetrics().bigOpSpacing3-ui.depth)}}if(Ie){var wi=Ei(Ie,Qe.havingStyle(kt.sub()),Qe);fn={elem:wi,kern:Math.max(Qe.fontMetrics().bigOpSpacing2,Qe.fontMetrics().bigOpSpacing4-wi.height)}}var gi;if(Ln&&fn){var Qi=Qe.fontMetrics().bigOpSpacing5+fn.elem.height+fn.elem.depth+fn.kern+ce.depth+Qr;gi=Rr.makeVList({positionType:"bottom",positionData:Qi,children:[{type:"kern",size:Qe.fontMetrics().bigOpSpacing5},{type:"elem",elem:fn.elem,marginLeft:-or+"em"},{type:"kern",size:fn.kern},{type:"elem",elem:ce},{type:"kern",size:Ln.kern},{type:"elem",elem:Ln.elem,marginLeft:or+"em"},{type:"kern",size:Qe.fontMetrics().bigOpSpacing5}]},Qe)}else if(fn){var sa=ce.height-Qr;gi=Rr.makeVList({positionType:"top",positionData:sa,children:[{type:"kern",size:Qe.fontMetrics().bigOpSpacing5},{type:"elem",elem:fn.elem,marginLeft:-or+"em"},{type:"kern",size:fn.kern},{type:"elem",elem:ce}]},Qe)}else if(Ln){var Ua=ce.depth+Qr;gi=Rr.makeVList({positionType:"bottom",positionData:Ua,children:[{type:"elem",elem:ce},{type:"kern",size:Ln.kern},{type:"elem",elem:Ln.elem,marginLeft:or+"em"},{type:"kern",size:Qe.fontMetrics().bigOpSpacing5}]},Qe)}else return ce;return Rr.makeSpan(["mop","op-limits"],[gi],Qe)},ia=["\\smallint"],Ki=function(ce,xe){var Ie,Qe,kt=!1,or,Qr=an(ce,"supsub");Qr?(Ie=Qr.sup,Qe=Qr.sub,or=Pn(Qr.base,"op"),kt=!0):or=Pn(ce,"op");var fn=xe.style,Ln=!1;fn.size===z.DISPLAY.size&&or.symbol&&!A.contains(ia,or.name)&&(Ln=!0);var ui;if(or.symbol){var wi=Ln?"Size2-Regular":"Size1-Regular",gi="";if((or.name==="\\oiint"||or.name==="\\oiiint")&&(gi=or.name.substr(1),or.name=gi==="oiint"?"\\iint":"\\iiint"),ui=Rr.makeSymbol(or.name,wi,"math",xe,["mop","op-symbol",Ln?"large-op":"small-op"]),gi.length>0){var Qi=ui.italic,sa=Rr.staticSvg(gi+"Size"+(Ln?"2":"1"),xe);ui=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ui,shift:0},{type:"elem",elem:sa,shift:Ln?.08:0}]},xe),or.name="\\"+gi,ui.classes.unshift("mop"),ui.italic=Qi}}else if(or.body){var Ua=gn(or.body,xe,!0);Ua.length===1&&Ua[0]instanceof Ce?(ui=Ua[0],ui.classes[0]="mop"):ui=Rr.makeSpan(["mop"],Rr.tryCombineChars(Ua),xe)}else{for(var no=[],Wo=1;Wo<or.name.length;Wo++)no.push(Rr.mathsym(or.name[Wo],or.mode,xe));ui=Rr.makeSpan(["mop"],no,xe)}var Zo=0,Bo=0;return(ui instanceof Ce||or.name==="\\oiint"||or.name==="\\oiiint")&&!or.suppressBaseShift&&(Zo=(ui.height-ui.depth)/2-xe.fontMetrics().axisHeight,Bo=ui.italic),kt?Li(ui,Ie,Qe,xe,fn,Bo,Zo):(Zo&&(ui.style.position="relative",ui.style.top=Zo+"em"),ui)},fa=function(ce,xe){var Ie;if(ce.symbol)Ie=new ma("mo",[Dn(ce.name,ce.mode)]),A.contains(ia,ce.name)&&Ie.setAttribute("largeop","false");else if(ce.body)Ie=new ma("mo",ta(ce.body,xe));else{Ie=new ma("mi",[new aa(ce.name.slice(1))]);var Qe=new ma("mo",[Dn("\u2061","text")]);ce.parentIsSupSub?Ie=new ma("mo",[Ie,Qe]):Ie=oa([Ie,Qe])}return Ie},Ya={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Dt({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,xe){var Ie=ce.parser,Qe=ce.funcName,kt=Qe;return kt.length===1&&(kt=Ya[kt]),{type:"op",mode:Ie.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:kt}},htmlBuilder:Ki,mathmlBuilder:fa}),Dt({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(ce,xe){var Ie=ce.parser,Qe=xe[0];return{type:"op",mode:Ie.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ar(Qe)}},htmlBuilder:Ki,mathmlBuilder:fa});var xa={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Dt({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 xe=ce.parser,Ie=ce.funcName;return{type:"op",mode:xe.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:Ie}},htmlBuilder:Ki,mathmlBuilder:fa}),Dt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(ce){var xe=ce.parser,Ie=ce.funcName;return{type:"op",mode:xe.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:Ie}},htmlBuilder:Ki,mathmlBuilder:fa}),Dt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(ce){var xe=ce.parser,Ie=ce.funcName,Qe=Ie;return Qe.length===1&&(Qe=xa[Qe]),{type:"op",mode:xe.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:Qe}},htmlBuilder:Ki,mathmlBuilder:fa});var wa=function(ce,xe){var Ie,Qe,kt=!1,or,Qr=an(ce,"supsub");Qr?(Ie=Qr.sup,Qe=Qr.sub,or=Pn(Qr.base,"operatorname"),kt=!0):or=Pn(ce,"operatorname");var fn;if(or.body.length>0){for(var Ln=or.body.map(function(Qi){var sa=Qi.text;return typeof sa=="string"?{type:"textord",mode:Qi.mode,text:sa}:Qi}),ui=gn(Ln,xe.withFont("mathrm"),!0),wi=0;wi<ui.length;wi++){var gi=ui[wi];gi instanceof Ce&&(gi.text=gi.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}fn=Rr.makeSpan(["mop"],ui,xe)}else fn=Rr.makeSpan(["mop"],[],xe);return kt?Li(fn,Ie,Qe,xe,xe.style,0,0):fn},Da=function(ce,xe){for(var Ie=ta(ce.body,xe.withFont("mathrm")),Qe=!0,kt=0;kt<Ie.length;kt++){var or=Ie[kt];if(!(or instanceof Ai.SpaceNode))if(or instanceof Ai.MathNode)switch(or.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Qr=or.children[0];or.children.length===1&&Qr instanceof Ai.TextNode?Qr.text=Qr.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):Qe=!1;break}default:Qe=!1}else Qe=!1}if(Qe){var fn=Ie.map(function(wi){return wi.toText()}).join("");Ie=[new Ai.TextNode(fn)]}var Ln=new Ai.MathNode("mi",Ie);Ln.setAttribute("mathvariant","normal");var ui=new Ai.MathNode("mo",[Dn("\u2061","text")]);return ce.parentIsSupSub?new Ai.MathNode("mo",[Ln,ui]):Ai.newDocumentFragment([Ln,ui])};Dt({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(ce,xe){var Ie=ce.parser,Qe=ce.funcName,kt=xe[0];return{type:"operatorname",mode:Ie.mode,body:Ar(kt),alwaysHandleSupSub:Qe==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:wa,mathmlBuilder:Da}),lr({type:"ordgroup",htmlBuilder:function(ce,xe){return ce.semisimple?Rr.makeFragment(gn(ce.body,xe,!1)):Rr.makeSpan(["mord"],gn(ce.body,xe,!0),xe)},mathmlBuilder:function(ce,xe){return ra(ce.body,xe,!0)}}),Dt({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(ce,xe){var Ie=ce.parser,Qe=xe[0];return{type:"overline",mode:Ie.mode,body:Qe}},htmlBuilder:function(ce,xe){var Ie=Ei(ce.body,xe.havingCrampedStyle()),Qe=Rr.makeLineSpan("overline-line",xe),kt=xe.fontMetrics().defaultRuleThickness,or=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie},{type:"kern",size:3*kt},{type:"elem",elem:Qe},{type:"kern",size:kt}]},xe);return Rr.makeSpan(["mord","overline"],[or],xe)},mathmlBuilder:function(ce,xe){var Ie=new Ai.MathNode("mo",[new Ai.TextNode("\u203E")]);Ie.setAttribute("stretchy","true");var Qe=new Ai.MathNode("mover",[Ir(ce.body,xe),Ie]);return Qe.setAttribute("accent","true"),Qe}}),Dt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Qe=xe[0];return{type:"phantom",mode:Ie.mode,body:Ar(Qe)}},htmlBuilder:function(ce,xe){var Ie=gn(ce.body,xe.withPhantom(),!1);return Rr.makeFragment(Ie)},mathmlBuilder:function(ce,xe){var Ie=ta(ce.body,xe);return new Ai.MathNode("mphantom",Ie)}}),Dt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Qe=xe[0];return{type:"hphantom",mode:Ie.mode,body:Qe}},htmlBuilder:function(ce,xe){var Ie=Rr.makeSpan([],[Ei(ce.body,xe.withPhantom())]);if(Ie.height=0,Ie.depth=0,Ie.children)for(var Qe=0;Qe<Ie.children.length;Qe++)Ie.children[Qe].height=0,Ie.children[Qe].depth=0;return Ie=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie}]},xe),Rr.makeSpan(["mord"],[Ie],xe)},mathmlBuilder:function(ce,xe){var Ie=ta(Ar(ce.body),xe),Qe=new Ai.MathNode("mphantom",Ie),kt=new Ai.MathNode("mpadded",[Qe]);return kt.setAttribute("height","0px"),kt.setAttribute("depth","0px"),kt}}),Dt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Qe=xe[0];return{type:"vphantom",mode:Ie.mode,body:Qe}},htmlBuilder:function(ce,xe){var Ie=Rr.makeSpan(["inner"],[Ei(ce.body,xe.withPhantom())]),Qe=Rr.makeSpan(["fix"],[]);return Rr.makeSpan(["mord","rlap"],[Ie,Qe],xe)},mathmlBuilder:function(ce,xe){var Ie=ta(Ar(ce.body),xe),Qe=new Ai.MathNode("mphantom",Ie),kt=new Ai.MathNode("mpadded",[Qe]);return kt.setAttribute("width","0px"),kt}}),Dt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Qe=Pn(xe[0],"size").value,kt=xe[1];return{type:"raisebox",mode:Ie.mode,dy:Qe,body:kt}},htmlBuilder:function(ce,xe){var Ie=Ei(ce.body,xe),Qe=Nr(ce.dy,xe);return Rr.makeVList({positionType:"shift",positionData:-Qe,children:[{type:"elem",elem:Ie}]},xe)},mathmlBuilder:function(ce,xe){var Ie=new Ai.MathNode("mpadded",[Ir(ce.body,xe)]),Qe=ce.dy.number+ce.dy.unit;return Ie.setAttribute("voffset",Qe),Ie}}),Dt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(ce,xe,Ie){var Qe=ce.parser,kt=Ie[0],or=Pn(xe[0],"size"),Qr=Pn(xe[1],"size");return{type:"rule",mode:Qe.mode,shift:kt&&Pn(kt,"size").value,width:or.value,height:Qr.value}},htmlBuilder:function(ce,xe){var Ie=Rr.makeSpan(["mord","rule"],[],xe),Qe=Nr(ce.width,xe),kt=Nr(ce.height,xe),or=ce.shift?Nr(ce.shift,xe):0;return Ie.style.borderRightWidth=Qe+"em",Ie.style.borderTopWidth=kt+"em",Ie.style.bottom=or+"em",Ie.width=Qe,Ie.height=kt+or,Ie.depth=-or,Ie.maxFontSize=kt*1.125*xe.sizeMultiplier,Ie},mathmlBuilder:function(ce,xe){var Ie=Nr(ce.width,xe),Qe=Nr(ce.height,xe),kt=ce.shift?Nr(ce.shift,xe):0,or=xe.color&&xe.getColor()||"black",Qr=new Ai.MathNode("mspace");Qr.setAttribute("mathbackground",or),Qr.setAttribute("width",Ie+"em"),Qr.setAttribute("height",Qe+"em");var fn=new Ai.MathNode("mpadded",[Qr]);return kt>=0?fn.setAttribute("height","+"+kt+"em"):(fn.setAttribute("height",kt+"em"),fn.setAttribute("depth","+"+-kt+"em")),fn.setAttribute("voffset",kt+"em"),fn}});function ja(Rt,ce,xe){for(var Ie=gn(Rt,ce,!1),Qe=ce.sizeMultiplier/xe.sizeMultiplier,kt=0;kt<Ie.length;kt++){var or=Ie[kt].classes.indexOf("sizing");or<0?Array.prototype.push.apply(Ie[kt].classes,ce.sizingClasses(xe)):Ie[kt].classes[or+1]==="reset-size"+ce.size&&(Ie[kt].classes[or+1]="reset-size"+xe.size),Ie[kt].height*=Qe,Ie[kt].depth*=Qe}return Rr.makeFragment(Ie)}var ko=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],ro=function(ce,xe){var Ie=xe.havingSize(ce.size);return ja(ce.body,Ie,xe)};Dt({type:"sizing",names:ko,props:{numArgs:0,allowedInText:!0},handler:function(ce,xe){var Ie=ce.breakOnTokenText,Qe=ce.funcName,kt=ce.parser,or=kt.parseExpression(!1,Ie);return{type:"sizing",mode:kt.mode,size:ko.indexOf(Qe)+1,body:or}},htmlBuilder:ro,mathmlBuilder:function(ce,xe){var Ie=xe.havingSize(ce.size),Qe=ta(ce.body,Ie),kt=new Ai.MathNode("mstyle",Qe);return kt.setAttribute("mathsize",Ie.sizeMultiplier+"em"),kt}}),Dt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(ce,xe,Ie){var Qe=ce.parser,kt=!1,or=!1,Qr=Ie[0]&&Pn(Ie[0],"ordgroup");if(Qr)for(var fn="",Ln=0;Ln<Qr.body.length;++Ln){var ui=Qr.body[Ln];if(fn=ui.text,fn==="t")kt=!0;else if(fn==="b")or=!0;else{kt=!1,or=!1;break}}else kt=!0,or=!0;var wi=xe[0];return{type:"smash",mode:Qe.mode,body:wi,smashHeight:kt,smashDepth:or}},htmlBuilder:function(ce,xe){var Ie=Rr.makeSpan([],[Ei(ce.body,xe)]);if(!ce.smashHeight&&!ce.smashDepth)return Ie;if(ce.smashHeight&&(Ie.height=0,Ie.children))for(var Qe=0;Qe<Ie.children.length;Qe++)Ie.children[Qe].height=0;if(ce.smashDepth&&(Ie.depth=0,Ie.children))for(var kt=0;kt<Ie.children.length;kt++)Ie.children[kt].depth=0;var or=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie}]},xe);return Rr.makeSpan(["mord"],[or],xe)},mathmlBuilder:function(ce,xe){var Ie=new Ai.MathNode("mpadded",[Ir(ce.body,xe)]);return ce.smashHeight&&Ie.setAttribute("height","0px"),ce.smashDepth&&Ie.setAttribute("depth","0px"),Ie}}),Dt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(ce,xe,Ie){var Qe=ce.parser,kt=Ie[0],or=xe[0];return{type:"sqrt",mode:Qe.mode,body:or,index:kt}},htmlBuilder:function(ce,xe){var Ie=Ei(ce.body,xe.havingCrampedStyle());Ie.height===0&&(Ie.height=xe.fontMetrics().xHeight),Ie=Rr.wrapFragment(Ie,xe);var Qe=xe.fontMetrics(),kt=Qe.defaultRuleThickness,or=kt;xe.style.id<z.TEXT.id&&(or=xe.fontMetrics().xHeight);var Qr=kt+or/4,fn=Ie.height+Ie.depth+Qr+kt,Ln=ao.sqrtImage(fn,xe),ui=Ln.span,wi=Ln.ruleWidth,gi=Ln.advanceWidth,Qi=ui.height-wi;Qi>Ie.height+Ie.depth+Qr&&(Qr=(Qr+Qi-Ie.height-Ie.depth)/2);var sa=ui.height-Ie.height-Qr-wi;Ie.style.paddingLeft=gi+"em";var Ua=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie,wrapperClasses:["svg-align"]},{type:"kern",size:-(Ie.height+sa)},{type:"elem",elem:ui},{type:"kern",size:wi}]},xe);if(ce.index){var no=xe.havingStyle(z.SCRIPTSCRIPT),Wo=Ei(ce.index,no,xe),Zo=.6*(Ua.height-Ua.depth),Bo=Rr.makeVList({positionType:"shift",positionData:-Zo,children:[{type:"elem",elem:Wo}]},xe),Es=Rr.makeSpan(["root"],[Bo]);return Rr.makeSpan(["mord","sqrt"],[Es,Ua],xe)}else return Rr.makeSpan(["mord","sqrt"],[Ua],xe)},mathmlBuilder:function(ce,xe){var Ie=ce.body,Qe=ce.index;return Qe?new Ai.MathNode("mroot",[Ir(Ie,xe),Ir(Qe,xe)]):new Ai.MathNode("msqrt",[Ir(Ie,xe)])}});var pa={display:z.DISPLAY,text:z.TEXT,script:z.SCRIPT,scriptscript:z.SCRIPTSCRIPT};Dt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(ce,xe){var Ie=ce.breakOnTokenText,Qe=ce.funcName,kt=ce.parser,or=kt.parseExpression(!0,Ie),Qr=Qe.slice(1,Qe.length-5);return{type:"styling",mode:kt.mode,style:Qr,body:or}},htmlBuilder:function(ce,xe){var Ie=pa[ce.style],Qe=xe.havingStyle(Ie).withFont("");return ja(ce.body,Qe,xe)},mathmlBuilder:function(ce,xe){var Ie=pa[ce.style],Qe=xe.havingStyle(Ie),kt=ta(ce.body,Qe),or=new Ai.MathNode("mstyle",kt),Qr={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},fn=Qr[ce.style];return or.setAttribute("scriptlevel",fn[0]),or.setAttribute("displaystyle",fn[1]),or}});var Ea=function(ce,xe){var Ie=ce.base;if(Ie)if(Ie.type==="op"){var Qe=Ie.limits&&(xe.style.size===z.DISPLAY.size||Ie.alwaysHandleSupSub);return Qe?Ki:null}else if(Ie.type==="operatorname"){var kt=Ie.alwaysHandleSupSub&&(xe.style.size===z.DISPLAY.size||Ie.limits);return kt?wa:null}else{if(Ie.type==="accent")return A.isCharacterBox(Ie.base)?wn:null;if(Ie.type==="horizBrace"){var or=!ce.sub;return or===Ie.isOver?si:null}else return null}else return null};lr({type:"supsub",htmlBuilder:function(ce,xe){var Ie=Ea(ce,xe);if(Ie)return Ie(ce,xe);var Qe=ce.base,kt=ce.sup,or=ce.sub,Qr=Ei(Qe,xe),fn,Ln,ui=xe.fontMetrics(),wi=0,gi=0,Qi=Qe&&A.isCharacterBox(Qe);if(kt){var sa=xe.havingStyle(xe.style.sup());fn=Ei(kt,sa,xe),Qi||(wi=Qr.height-sa.fontMetrics().supDrop*sa.sizeMultiplier/xe.sizeMultiplier)}if(or){var Ua=xe.havingStyle(xe.style.sub());Ln=Ei(or,Ua,xe),Qi||(gi=Qr.depth+Ua.fontMetrics().subDrop*Ua.sizeMultiplier/xe.sizeMultiplier)}var no;xe.style===z.DISPLAY?no=ui.sup1:xe.style.cramped?no=ui.sup3:no=ui.sup2;var Wo=xe.sizeMultiplier,Zo=.5/ui.ptPerEm/Wo+"em",Bo=null;if(Ln){var Es=ce.base&&ce.base.type==="op"&&ce.base.name&&(ce.base.name==="\\oiint"||ce.base.name==="\\oiiint");(Qr instanceof Ce||Es)&&(Bo=-Qr.italic+"em")}var As;if(fn&&Ln){wi=Math.max(wi,no,fn.depth+.25*ui.xHeight),gi=Math.max(gi,ui.sub2);var $o=ui.defaultRuleThickness,Do=4*$o;if(wi-fn.depth-(Ln.height-gi)<Do){gi=Do-(wi-fn.depth)+Ln.height;var vo=.8*ui.xHeight-(wi-fn.depth);vo>0&&(wi+=vo,gi-=vo)}var Ms=[{type:"elem",elem:Ln,shift:gi,marginRight:Zo,marginLeft:Bo},{type:"elem",elem:fn,shift:-wi,marginRight:Zo}];As=Rr.makeVList({positionType:"individualShift",children:Ms},xe)}else if(Ln){gi=Math.max(gi,ui.sub1,Ln.height-.8*ui.xHeight);var rl=[{type:"elem",elem:Ln,marginLeft:Bo,marginRight:Zo}];As=Rr.makeVList({positionType:"shift",positionData:gi,children:rl},xe)}else if(fn)wi=Math.max(wi,no,fn.depth+.25*ui.xHeight),As=Rr.makeVList({positionType:"shift",positionData:-wi,children:[{type:"elem",elem:fn,marginRight:Zo}]},xe);else throw new Error("supsub must have either sup or sub.");var gs=Zn(Qr,"right")||"mord";return Rr.makeSpan([gs],[Qr,Rr.makeSpan(["msupsub"],[As])],xe)},mathmlBuilder:function(ce,xe){var Ie=!1,Qe,kt,or=an(ce.base,"horizBrace");or&&(kt=!!ce.sup,kt===or.isOver&&(Ie=!0,Qe=or.isOver)),ce.base&&(ce.base.type==="op"||ce.base.type==="operatorname")&&(ce.base.parentIsSupSub=!0);var Qr=[Ir(ce.base,xe)];ce.sub&&Qr.push(Ir(ce.sub,xe)),ce.sup&&Qr.push(Ir(ce.sup,xe));var fn;if(Ie)fn=Qe?"mover":"munder";else if(ce.sub)if(ce.sup){var wi=ce.base;wi&&wi.type==="op"&&wi.limits&&xe.style===z.DISPLAY||wi&&wi.type==="operatorname"&&wi.alwaysHandleSupSub&&(xe.style===z.DISPLAY||wi.limits)?fn="munderover":fn="msubsup"}else{var ui=ce.base;ui&&ui.type==="op"&&ui.limits&&(xe.style===z.DISPLAY||ui.alwaysHandleSupSub)||ui&&ui.type==="operatorname"&&ui.alwaysHandleSupSub&&(ui.limits||xe.style===z.DISPLAY)?fn="munder":fn="msub"}else{var Ln=ce.base;Ln&&Ln.type==="op"&&Ln.limits&&(xe.style===z.DISPLAY||Ln.alwaysHandleSupSub)||Ln&&Ln.type==="operatorname"&&Ln.alwaysHandleSupSub&&(Ln.limits||xe.style===z.DISPLAY)?fn="mover":fn="msup"}var gi=new Ai.MathNode(fn,Qr);return gi}}),lr({type:"atom",htmlBuilder:function(ce,xe){return Rr.mathsym(ce.text,ce.mode,xe,["m"+ce.family])},mathmlBuilder:function(ce,xe){var Ie=new Ai.MathNode("mo",[Dn(ce.text,ce.mode)]);if(ce.family==="bin"){var Qe=ha(ce,xe);Qe==="bold-italic"&&Ie.setAttribute("mathvariant",Qe)}else ce.family==="punct"?Ie.setAttribute("separator","true"):(ce.family==="open"||ce.family==="close")&&Ie.setAttribute("stretchy","false");return Ie}});var Fa={mi:"italic",mn:"normal",mtext:"normal"};lr({type:"mathord",htmlBuilder:function(ce,xe){return Rr.makeOrd(ce,xe,"mathord")},mathmlBuilder:function(ce,xe){var Ie=new Ai.MathNode("mi",[Dn(ce.text,ce.mode,xe)]),Qe=ha(ce,xe)||"italic";return Qe!==Fa[Ie.type]&&Ie.setAttribute("mathvariant",Qe),Ie}}),lr({type:"textord",htmlBuilder:function(ce,xe){return Rr.makeOrd(ce,xe,"textord")},mathmlBuilder:function(ce,xe){var Ie=Dn(ce.text,ce.mode,xe),Qe=ha(ce,xe)||"normal",kt;return ce.mode==="text"?kt=new Ai.MathNode("mtext",[Ie]):/[0-9]/.test(ce.text)?kt=new Ai.MathNode("mn",[Ie]):ce.text==="\\prime"?kt=new Ai.MathNode("mo",[Ie]):kt=new Ai.MathNode("mi",[Ie]),Qe!==Fa[kt.type]&&kt.setAttribute("mathvariant",Qe),kt}});var Ka={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},lo={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};lr({type:"spacing",htmlBuilder:function(ce,xe){if(lo.hasOwnProperty(ce.text)){var Ie=lo[ce.text].className||"";if(ce.mode==="text"){var Qe=Rr.makeOrd(ce,xe,"textord");return Qe.classes.push(Ie),Qe}else return Rr.makeSpan(["mspace",Ie],[Rr.mathsym(ce.text,ce.mode,xe)],xe)}else{if(Ka.hasOwnProperty(ce.text))return Rr.makeSpan(["mspace",Ka[ce.text]],[],xe);throw new l('Unknown type of space "'+ce.text+'"')}},mathmlBuilder:function(ce,xe){var Ie;if(lo.hasOwnProperty(ce.text))Ie=new Ai.MathNode("mtext",[new Ai.TextNode("\xA0")]);else{if(Ka.hasOwnProperty(ce.text))return new Ai.MathNode("mspace");throw new l('Unknown type of space "'+ce.text+'"')}return Ie}});var so=function(){var ce=new Ai.MathNode("mtd",[]);return ce.setAttribute("width","50%"),ce};lr({type:"tag",mathmlBuilder:function(ce,xe){var Ie=new Ai.MathNode("mtable",[new Ai.MathNode("mtr",[so(),new Ai.MathNode("mtd",[ra(ce.body,xe)]),so(),new Ai.MathNode("mtd",[ra(ce.tag,xe)])])]);return Ie.setAttribute("width","100%"),Ie}});var Co={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Lo={"\\textbf":"textbf","\\textmd":"textmd"},is={"\\textit":"textit","\\textup":"textup"},cs=function(ce,xe){var Ie=ce.font;return Ie?Co[Ie]?xe.withTextFontFamily(Co[Ie]):Lo[Ie]?xe.withTextFontWeight(Lo[Ie]):xe.withTextFontShape(is[Ie]):xe};Dt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Qe=ce.funcName,kt=xe[0];return{type:"text",mode:Ie.mode,body:Ar(kt),font:Qe}},htmlBuilder:function(ce,xe){var Ie=cs(ce,xe),Qe=gn(ce.body,Ie,!0);return Rr.makeSpan(["mord","text"],Rr.tryCombineChars(Qe),Ie)},mathmlBuilder:function(ce,xe){var Ie=cs(ce,xe);return ra(ce.body,Ie)}}),Dt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser;return{type:"underline",mode:Ie.mode,body:xe[0]}},htmlBuilder:function(ce,xe){var Ie=Ei(ce.body,xe),Qe=Rr.makeLineSpan("underline-line",xe),kt=xe.fontMetrics().defaultRuleThickness,or=Rr.makeVList({positionType:"top",positionData:Ie.height,children:[{type:"kern",size:kt},{type:"elem",elem:Qe},{type:"kern",size:3*kt},{type:"elem",elem:Ie}]},xe);return Rr.makeSpan(["mord","underline"],[or],xe)},mathmlBuilder:function(ce,xe){var Ie=new Ai.MathNode("mo",[new Ai.TextNode("\u203E")]);Ie.setAttribute("stretchy","true");var Qe=new Ai.MathNode("munder",[Ir(ce.body,xe),Ie]);return Qe.setAttribute("accentunder","true"),Qe}}),Dt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(ce,xe,Ie){throw new l("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(ce,xe){for(var Ie=Rs(ce),Qe=[],kt=xe.havingStyle(xe.style.text()),or=0;or<Ie.length;or++){var Qr=Ie[or];Qr==="~"&&(Qr="\\textasciitilde"),Qe.push(Rr.makeSymbol(Qr,"Typewriter-Regular",ce.mode,kt,["mord","texttt"]))}return Rr.makeSpan(["mord","text"].concat(kt.sizingClasses(xe)),Rr.tryCombineChars(Qe),kt)},mathmlBuilder:function(ce,xe){var Ie=new Ai.TextNode(Rs(ce)),Qe=new Ai.MathNode("mtext",[Ie]);return Qe.setAttribute("mathvariant","monospace"),Qe}});var Rs=function(ce){return ce.body.replace(/ /g,ce.star?"\u2423":"\xA0")},Ko=Pt,as=Ko,co=`[ \r
|
|
|
]`,Ao="\\\\[a-zA-Z@]+",$a="\\\\[^\uD800-\uDFFF]",ss=""+Ao+co+"*",_s=new RegExp("^("+Ao+")"+co+"*$"),Fo="[\u0300-\u036F]",il=new RegExp(Fo+"+$"),Eo="("+co+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Fo+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Fo+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+ss)+("|"+$a+")"),zo=function(){function Rt(xe,Ie){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=xe,this.settings=Ie,this.tokenRegex=new RegExp(Eo,"g"),this.catcodes={"%":14}}var ce=Rt.prototype;return ce.setCatcode=function(Ie,Qe){this.catcodes[Ie]=Qe},ce.lex=function(){var Ie=this.input,Qe=this.tokenRegex.lastIndex;if(Qe===Ie.length)return new f("EOF",new m(this,Qe,Qe));var kt=this.tokenRegex.exec(Ie);if(kt===null||kt.index!==Qe)throw new l("Unexpected character: '"+Ie[Qe]+"'",new f(Ie[Qe],new m(this,Qe,Qe+1)));var or=kt[2]||" ";if(this.catcodes[or]===14){var Qr=Ie.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return Qr===-1?(this.tokenRegex.lastIndex=Ie.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=Qr+1,this.lex()}var fn=or.match(_s);return fn&&(or=fn[1]),new f(or,new m(this,Qe,this.tokenRegex.lastIndex))},Rt}(),Fs=function(){function Rt(xe,Ie){xe===void 0&&(xe={}),Ie===void 0&&(Ie={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=Ie,this.builtins=xe,this.undefStack=[]}var ce=Rt.prototype;return ce.beginGroup=function(){this.undefStack.push({})},ce.endGroup=function(){if(this.undefStack.length===0)throw new l("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var Ie=this.undefStack.pop();for(var Qe in Ie)Ie.hasOwnProperty(Qe)&&(Ie[Qe]===void 0?delete this.current[Qe]:this.current[Qe]=Ie[Qe])},ce.has=function(Ie){return this.current.hasOwnProperty(Ie)||this.builtins.hasOwnProperty(Ie)},ce.get=function(Ie){return this.current.hasOwnProperty(Ie)?this.current[Ie]:this.builtins[Ie]},ce.set=function(Ie,Qe,kt){if(kt===void 0&&(kt=!1),kt){for(var or=0;or<this.undefStack.length;or++)delete this.undefStack[or][Ie];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][Ie]=Qe)}else{var Qr=this.undefStack[this.undefStack.length-1];Qr&&!Qr.hasOwnProperty(Ie)&&(Qr[Ie]=this.current[Ie])}this.current[Ie]=Qe},Rt}(),ms={},hs=ms;function bn(Rt,ce){ms[Rt]=ce}bn("\\@firstoftwo",function(Rt){var ce=Rt.consumeArgs(2);return{tokens:ce[0],numArgs:0}}),bn("\\@secondoftwo",function(Rt){var ce=Rt.consumeArgs(2);return{tokens:ce[1],numArgs:0}}),bn("\\@ifnextchar",function(Rt){var ce=Rt.consumeArgs(3),xe=Rt.future();return ce[0].length===1&&ce[0][0].text===xe.text?{tokens:ce[1],numArgs:0}:{tokens:ce[2],numArgs:0}}),bn("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),bn("\\TextOrMath",function(Rt){var ce=Rt.consumeArgs(2);return Rt.mode==="text"?{tokens:ce[0],numArgs:0}:{tokens:ce[1],numArgs:0}});var Ns={"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};bn("\\char",function(Rt){var ce=Rt.popToken(),xe,Ie="";if(ce.text==="'")xe=8,ce=Rt.popToken();else if(ce.text==='"')xe=16,ce=Rt.popToken();else if(ce.text==="`")if(ce=Rt.popToken(),ce.text[0]==="\\")Ie=ce.text.charCodeAt(1);else{if(ce.text==="EOF")throw new l("\\char` missing argument");Ie=ce.text.charCodeAt(0)}else xe=10;if(xe){if(Ie=Ns[ce.text],Ie==null||Ie>=xe)throw new l("Invalid base-"+xe+" digit "+ce.text);for(var Qe;(Qe=Ns[Rt.future().text])!=null&&Qe<xe;)Ie*=xe,Ie+=Qe,Rt.popToken()}return"\\@char{"+Ie+"}"});var Ll=function(ce,xe){var Ie=ce.consumeArgs(1)[0];if(Ie.length!==1)throw new l("\\gdef's first argument must be a macro name");var Qe=Ie[0].text,kt=0;for(Ie=ce.consumeArgs(1)[0];Ie.length===1&&Ie[0].text==="#";){if(Ie=ce.consumeArgs(1)[0],Ie.length!==1)throw new l('Invalid argument number length "'+Ie.length+'"');if(!/^[1-9]$/.test(Ie[0].text))throw new l('Invalid argument number "'+Ie[0].text+'"');if(kt++,parseInt(Ie[0].text)!==kt)throw new l('Argument number "'+Ie[0].text+'" out of order');Ie=ce.consumeArgs(1)[0]}return ce.macros.set(Qe,{tokens:Ie,numArgs:kt},xe),""};bn("\\gdef",function(Rt){return Ll(Rt,!0)}),bn("\\def",function(Rt){return Ll(Rt,!1)}),bn("\\global",function(Rt){var ce=Rt.consumeArgs(1)[0];if(ce.length!==1)throw new l("Invalid command after \\global");var xe=ce[0].text;if(xe==="\\def")return Ll(Rt,!0);throw new l("Invalid command '"+xe+"' after \\global")});var el=function(ce,xe,Ie){var Qe=ce.consumeArgs(1)[0];if(Qe.length!==1)throw new l("\\newcommand's first argument must be a macro name");var kt=Qe[0].text,or=ce.isDefined(kt);if(or&&!xe)throw new l("\\newcommand{"+kt+"} attempting to redefine "+(kt+"; use \\renewcommand"));if(!or&&!Ie)throw new l("\\renewcommand{"+kt+"} when command "+kt+" does not yet exist; use \\newcommand");var Qr=0;if(Qe=ce.consumeArgs(1)[0],Qe.length===1&&Qe[0].text==="["){for(var fn="",Ln=ce.expandNextToken();Ln.text!=="]"&&Ln.text!=="EOF";)fn+=Ln.text,Ln=ce.expandNextToken();if(!fn.match(/^\s*[0-9]+\s*$/))throw new l("Invalid number of arguments: "+fn);Qr=parseInt(fn),Qe=ce.consumeArgs(1)[0]}return ce.macros.set(kt,{tokens:Qe,numArgs:Qr}),""};bn("\\newcommand",function(Rt){return el(Rt,!1,!0)}),bn("\\renewcommand",function(Rt){return el(Rt,!0,!1)}),bn("\\providecommand",function(Rt){return el(Rt,!0,!0)}),bn("\\bgroup","{"),bn("\\egroup","}"),bn("\\lq","`"),bn("\\rq","'"),bn("\\aa","\\r a"),bn("\\AA","\\r A"),bn("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),bn("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),bn("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),bn("\u212C","\\mathscr{B}"),bn("\u2130","\\mathscr{E}"),bn("\u2131","\\mathscr{F}"),bn("\u210B","\\mathscr{H}"),bn("\u2110","\\mathscr{I}"),bn("\u2112","\\mathscr{L}"),bn("\u2133","\\mathscr{M}"),bn("\u211B","\\mathscr{R}"),bn("\u212D","\\mathfrak{C}"),bn("\u210C","\\mathfrak{H}"),bn("\u2128","\\mathfrak{Z}"),bn("\\Bbbk","\\Bbb{k}"),bn("\xB7","\\cdotp"),bn("\\llap","\\mathllap{\\textrm{#1}}"),bn("\\rlap","\\mathrlap{\\textrm{#1}}"),bn("\\clap","\\mathclap{\\textrm{#1}}"),bn("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),bn("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),bn("\\ne","\\neq"),bn("\u2260","\\neq"),bn("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),bn("\u2209","\\notin"),bn("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),bn("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),bn("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),bn("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),bn("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),bn("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),bn("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),bn("\u27C2","\\perp"),bn("\u203C","\\mathclose{!\\mkern-0.8mu!}"),bn("\u220C","\\notni"),bn("\u231C","\\ulcorner"),bn("\u231D","\\urcorner"),bn("\u231E","\\llcorner"),bn("\u231F","\\lrcorner"),bn("\xA9","\\copyright"),bn("\xAE","\\textregistered"),bn("\uFE0F","\\textregistered"),bn("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),bn("\u22EE","\\vdots"),bn("\\varGamma","\\mathit{\\Gamma}"),bn("\\varDelta","\\mathit{\\Delta}"),bn("\\varTheta","\\mathit{\\Theta}"),bn("\\varLambda","\\mathit{\\Lambda}"),bn("\\varXi","\\mathit{\\Xi}"),bn("\\varPi","\\mathit{\\Pi}"),bn("\\varSigma","\\mathit{\\Sigma}"),bn("\\varUpsilon","\\mathit{\\Upsilon}"),bn("\\varPhi","\\mathit{\\Phi}"),bn("\\varPsi","\\mathit{\\Psi}"),bn("\\varOmega","\\mathit{\\Omega}"),bn("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),bn("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),bn("\\boxed","\\fbox{$\\displaystyle{#1}$}"),bn("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),bn("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),bn("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Gs={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};bn("\\dots",function(Rt){var ce="\\dotso",xe=Rt.expandAfterFuture().text;return xe in Gs?ce=Gs[xe]:xe.substr(0,4)==="\\not"?ce="\\dotsb":xe in Ke.math&&(A.contains(["bin","rel"],Ke.math[xe].group)&&(ce="\\dotsb")),ce});var ds={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};bn("\\dotso",function(Rt){var ce=Rt.future().text;return ce in ds?"\\ldots\\,":"\\ldots"}),bn("\\dotsc",function(Rt){var ce=Rt.future().text;return ce in ds&&ce!==","?"\\ldots\\,":"\\ldots"}),bn("\\cdots",function(Rt){var ce=Rt.future().text;return ce in ds?"\\@cdots\\,":"\\@cdots"}),bn("\\dotsb","\\cdots"),bn("\\dotsm","\\cdots"),bn("\\dotsi","\\!\\cdots"),bn("\\dotsx","\\ldots\\,"),bn("\\DOTSI","\\relax"),bn("\\DOTSB","\\relax"),bn("\\DOTSX","\\relax"),bn("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),bn("\\,","\\tmspace+{3mu}{.1667em}"),bn("\\thinspace","\\,"),bn("\\>","\\mskip{4mu}"),bn("\\:","\\tmspace+{4mu}{.2222em}"),bn("\\medspace","\\:"),bn("\\;","\\tmspace+{5mu}{.2777em}"),bn("\\thickspace","\\;"),bn("\\!","\\tmspace-{3mu}{.1667em}"),bn("\\negthinspace","\\!"),bn("\\negmedspace","\\tmspace-{4mu}{.2222em}"),bn("\\negthickspace","\\tmspace-{5mu}{.277em}"),bn("\\enspace","\\kern.5em "),bn("\\enskip","\\hskip.5em\\relax"),bn("\\quad","\\hskip1em\\relax"),bn("\\qquad","\\hskip2em\\relax"),bn("\\tag","\\@ifstar\\tag@literal\\tag@paren"),bn("\\tag@paren","\\tag@literal{({#1})}"),bn("\\tag@literal",function(Rt){if(Rt.macros.get("\\df@tag"))throw new l("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),bn("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),bn("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),bn("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),bn("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),bn("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),bn("\\\\","\\newline"),bn("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ks=gt["Main-Regular"]["T".charCodeAt(0)][1]-.7*gt["Main-Regular"]["A".charCodeAt(0)][1]+"em";bn("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),bn("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),bn("\\hspace","\\@ifstar\\@hspacer\\@hspace"),bn("\\@hspace","\\hskip #1\\relax"),bn("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),bn("\\ordinarycolon",":"),bn("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),bn("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),bn("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),bn("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),bn("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),bn("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),bn("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),bn("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),bn("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),bn("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),bn("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),bn("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),bn("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),bn("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),bn("\u2237","\\dblcolon"),bn("\u2239","\\eqcolon"),bn("\u2254","\\coloneqq"),bn("\u2255","\\eqqcolon"),bn("\u2A74","\\Coloneqq"),bn("\\ratio","\\vcentcolon"),bn("\\coloncolon","\\dblcolon"),bn("\\colonequals","\\coloneqq"),bn("\\coloncolonequals","\\Coloneqq"),bn("\\equalscolon","\\eqqcolon"),bn("\\equalscoloncolon","\\Eqqcolon"),bn("\\colonminus","\\coloneq"),bn("\\coloncolonminus","\\Coloneq"),bn("\\minuscolon","\\eqcolon"),bn("\\minuscoloncolon","\\Eqcolon"),bn("\\coloncolonapprox","\\Colonapprox"),bn("\\coloncolonsim","\\Colonsim"),bn("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),bn("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),bn("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),bn("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),bn("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),bn("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),bn("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),bn("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),bn("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),bn("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),bn("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),bn("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),bn("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),bn("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),bn("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),bn("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),bn("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),bn("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),bn("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),bn("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),bn("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),bn("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),bn("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),bn("\u27E6","\\llbracket"),bn("\u27E7","\\rrbracket"),bn("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),bn("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),bn("\u2983","\\lBrace"),bn("\u2984","\\rBrace"),bn("\\darr","\\downarrow"),bn("\\dArr","\\Downarrow"),bn("\\Darr","\\Downarrow"),bn("\\lang","\\langle"),bn("\\rang","\\rangle"),bn("\\uarr","\\uparrow"),bn("\\uArr","\\Uparrow"),bn("\\Uarr","\\Uparrow"),bn("\\N","\\mathbb{N}"),bn("\\R","\\mathbb{R}"),bn("\\Z","\\mathbb{Z}"),bn("\\alef","\\aleph"),bn("\\alefsym","\\aleph"),bn("\\Alpha","\\mathrm{A}"),bn("\\Beta","\\mathrm{B}"),bn("\\bull","\\bullet"),bn("\\Chi","\\mathrm{X}"),bn("\\clubs","\\clubsuit"),bn("\\cnums","\\mathbb{C}"),bn("\\Complex","\\mathbb{C}"),bn("\\Dagger","\\ddagger"),bn("\\diamonds","\\diamondsuit"),bn("\\empty","\\emptyset"),bn("\\Epsilon","\\mathrm{E}"),bn("\\Eta","\\mathrm{H}"),bn("\\exist","\\exists"),bn("\\harr","\\leftrightarrow"),bn("\\hArr","\\Leftrightarrow"),bn("\\Harr","\\Leftrightarrow"),bn("\\hearts","\\heartsuit"),bn("\\image","\\Im"),bn("\\infin","\\infty"),bn("\\Iota","\\mathrm{I}"),bn("\\isin","\\in"),bn("\\Kappa","\\mathrm{K}"),bn("\\larr","\\leftarrow"),bn("\\lArr","\\Leftarrow"),bn("\\Larr","\\Leftarrow"),bn("\\lrarr","\\leftrightarrow"),bn("\\lrArr","\\Leftrightarrow"),bn("\\Lrarr","\\Leftrightarrow"),bn("\\Mu","\\mathrm{M}"),bn("\\natnums","\\mathbb{N}"),bn("\\Nu","\\mathrm{N}"),bn("\\Omicron","\\mathrm{O}"),bn("\\plusmn","\\pm"),bn("\\rarr","\\rightarrow"),bn("\\rArr","\\Rightarrow"),bn("\\Rarr","\\Rightarrow"),bn("\\real","\\Re"),bn("\\reals","\\mathbb{R}"),bn("\\Reals","\\mathbb{R}"),bn("\\Rho","\\mathrm{P}"),bn("\\sdot","\\cdot"),bn("\\sect","\\S"),bn("\\spades","\\spadesuit"),bn("\\sub","\\subset"),bn("\\sube","\\subseteq"),bn("\\supe","\\supseteq"),bn("\\Tau","\\mathrm{T}"),bn("\\thetasym","\\vartheta"),bn("\\weierp","\\wp"),bn("\\Zeta","\\mathrm{Z}"),bn("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),bn("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),bn("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),bn("\\blue","\\textcolor{##6495ed}{#1}"),bn("\\orange","\\textcolor{##ffa500}{#1}"),bn("\\pink","\\textcolor{##ff00af}{#1}"),bn("\\red","\\textcolor{##df0030}{#1}"),bn("\\green","\\textcolor{##28ae7b}{#1}"),bn("\\gray","\\textcolor{gray}{#1}"),bn("\\purple","\\textcolor{##9d38bd}{#1}"),bn("\\blueA","\\textcolor{##ccfaff}{#1}"),bn("\\blueB","\\textcolor{##80f6ff}{#1}"),bn("\\blueC","\\textcolor{##63d9ea}{#1}"),bn("\\blueD","\\textcolor{##11accd}{#1}"),bn("\\blueE","\\textcolor{##0c7f99}{#1}"),bn("\\tealA","\\textcolor{##94fff5}{#1}"),bn("\\tealB","\\textcolor{##26edd5}{#1}"),bn("\\tealC","\\textcolor{##01d1c1}{#1}"),bn("\\tealD","\\textcolor{##01a995}{#1}"),bn("\\tealE","\\textcolor{##208170}{#1}"),bn("\\greenA","\\textcolor{##b6ffb0}{#1}"),bn("\\greenB","\\textcolor{##8af281}{#1}"),bn("\\greenC","\\textcolor{##74cf70}{#1}"),bn("\\greenD","\\textcolor{##1fab54}{#1}"),bn("\\greenE","\\textcolor{##0d923f}{#1}"),bn("\\goldA","\\textcolor{##ffd0a9}{#1}"),bn("\\goldB","\\textcolor{##ffbb71}{#1}"),bn("\\goldC","\\textcolor{##ff9c39}{#1}"),bn("\\goldD","\\textcolor{##e07d10}{#1}"),bn("\\goldE","\\textcolor{##a75a05}{#1}"),bn("\\redA","\\textcolor{##fca9a9}{#1}"),bn("\\redB","\\textcolor{##ff8482}{#1}"),bn("\\redC","\\textcolor{##f9685d}{#1}"),bn("\\redD","\\textcolor{##e84d39}{#1}"),bn("\\redE","\\textcolor{##bc2612}{#1}"),bn("\\maroonA","\\textcolor{##ffbde0}{#1}"),bn("\\maroonB","\\textcolor{##ff92c6}{#1}"),bn("\\maroonC","\\textcolor{##ed5fa6}{#1}"),bn("\\maroonD","\\textcolor{##ca337c}{#1}"),bn("\\maroonE","\\textcolor{##9e034e}{#1}"),bn("\\purpleA","\\textcolor{##ddd7ff}{#1}"),bn("\\purpleB","\\textcolor{##c6b9fc}{#1}"),bn("\\purpleC","\\textcolor{##aa87ff}{#1}"),bn("\\purpleD","\\textcolor{##7854ab}{#1}"),bn("\\purpleE","\\textcolor{##543b78}{#1}"),bn("\\mintA","\\textcolor{##f5f9e8}{#1}"),bn("\\mintB","\\textcolor{##edf2df}{#1}"),bn("\\mintC","\\textcolor{##e0e5cc}{#1}"),bn("\\grayA","\\textcolor{##f6f7f7}{#1}"),bn("\\grayB","\\textcolor{##f0f1f2}{#1}"),bn("\\grayC","\\textcolor{##e3e5e6}{#1}"),bn("\\grayD","\\textcolor{##d6d8da}{#1}"),bn("\\grayE","\\textcolor{##babec2}{#1}"),bn("\\grayF","\\textcolor{##888d93}{#1}"),bn("\\grayG","\\textcolor{##626569}{#1}"),bn("\\grayH","\\textcolor{##3b3e40}{#1}"),bn("\\grayI","\\textcolor{##21242c}{#1}"),bn("\\kaBlue","\\textcolor{##314453}{#1}"),bn("\\kaGreen","\\textcolor{##71B307}{#1}");var Qs={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},tl=function(){function Rt(xe,Ie,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=Ie,this.expansionCount=0,this.feed(xe),this.macros=new Fs(hs,Ie.macros),this.mode=Qe,this.stack=[]}var ce=Rt.prototype;return ce.feed=function(Ie){this.lexer=new zo(Ie,this.settings)},ce.switchMode=function(Ie){this.mode=Ie},ce.beginGroup=function(){this.macros.beginGroup()},ce.endGroup=function(){this.macros.endGroup()},ce.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},ce.popToken=function(){return this.future(),this.stack.pop()},ce.pushToken=function(Ie){this.stack.push(Ie)},ce.pushTokens=function(Ie){var Qe;(Qe=this.stack).push.apply(Qe,Ie)},ce.consumeSpaces=function(){for(;;){var Ie=this.future();if(Ie.text===" ")this.stack.pop();else break}},ce.consumeArgs=function(Ie){for(var Qe=[],kt=0;kt<Ie;++kt){this.consumeSpaces();var or=this.popToken();if(or.text==="{"){for(var Qr=[],fn=1;fn!==0;){var Ln=this.popToken();if(Qr.push(Ln),Ln.text==="{")++fn;else if(Ln.text==="}")--fn;else if(Ln.text==="EOF")throw new l("End of input in macro argument",or)}Qr.pop(),Qr.reverse(),Qe[kt]=Qr}else{if(or.text==="EOF")throw new l("End of input expecting macro argument");Qe[kt]=[or]}}return Qe},ce.expandOnce=function(){var Ie=this.popToken(),Qe=Ie.text,kt=this._getExpansion(Qe);if(kt==null)return this.pushToken(Ie),Ie;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new l("Too many expansions: infinite loop or need to increase maxExpand setting");var or=kt.tokens;if(kt.numArgs){var Qr=this.consumeArgs(kt.numArgs);or=or.slice();for(var fn=or.length-1;fn>=0;--fn){var Ln=or[fn];if(Ln.text==="#"){if(fn===0)throw new l("Incomplete placeholder at end of macro body",Ln);if(Ln=or[--fn],Ln.text==="#")or.splice(fn+1,1);else if(/^[1-9]$/.test(Ln.text)){var ui;(ui=or).splice.apply(ui,[fn,2].concat(Qr[+Ln.text-1]))}else throw new l("Not a valid argument number",Ln)}}}return this.pushTokens(or),or},ce.expandAfterFuture=function(){return this.expandOnce(),this.future()},ce.expandNextToken=function(){for(;;){var Ie=this.expandOnce();if(Ie instanceof f)if(Ie.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},ce.expandMacro=function(Ie){if(!this.macros.get(Ie))return;var Qe=[],kt=this.stack.length;for(this.pushToken(new f(Ie));this.stack.length>kt;){var or=this.expandOnce();or instanceof f&&Qe.push(this.stack.pop())}return Qe},ce.expandMacroAsText=function(Ie){var Qe=this.expandMacro(Ie);return Qe&&Qe.map(function(kt){return kt.text}).join("")},ce._getExpansion=function(Ie){var Qe=this.macros.get(Ie);if(Qe==null)return Qe;var kt=typeof Qe=="function"?Qe(this):Qe;if(typeof kt=="string"){var or=0;if(kt.indexOf("#")!==-1)for(var Qr=kt.replace(/##/g,"");Qr.indexOf("#"+(or+1))!==-1;)++or;for(var fn=new zo(kt,this.settings),Ln=[],ui=fn.lex();ui.text!=="EOF";)Ln.push(ui),ui=fn.lex();Ln.reverse();var wi={tokens:Ln,numArgs:or};return wi}return kt},ce.isDefined=function(Ie){return this.macros.has(Ie)||as.hasOwnProperty(Ie)||Ke.math.hasOwnProperty(Ie)||Ke.text.hasOwnProperty(Ie)||Qs.hasOwnProperty(Ie)},Rt}(),xs={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"}},Bs={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},al=function(){function Rt(xe,Ie){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new tl(xe,Ie,this.mode),this.settings=Ie,this.leftrightDepth=0}var ce=Rt.prototype;return ce.expect=function(Ie,Qe){if(Qe===void 0&&(Qe=!0),this.fetch().text!==Ie)throw new l("Expected '"+Ie+"', 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(Ie){this.mode=Ie,this.gullet.switchMode(Ie)},ce.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var Ie=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),Ie},ce.parseExpression=function(Ie,Qe){for(var kt=[];;){this.mode==="math"&&this.consumeSpaces();var or=this.fetch();if(Rt.endOfExpression.indexOf(or.text)!==-1)break;if(Qe&&or.text===Qe)break;if(Ie&&as[or.text]&&as[or.text].infix)break;var Qr=this.parseAtom(Qe);if(!Qr)break;kt.push(Qr)}return this.mode==="text"&&this.formLigatures(kt),this.handleInfixNodes(kt)},ce.handleInfixNodes=function(Ie){for(var Qe=-1,kt,or=0;or<Ie.length;or++){var Qr=an(Ie[or],"infix");if(Qr){if(Qe!==-1)throw new l("only one infix operator per group",Qr.token);Qe=or,kt=Qr.replaceWith}}if(Qe!==-1&&kt){var fn,Ln,ui=Ie.slice(0,Qe),wi=Ie.slice(Qe+1);ui.length===1&&ui[0].type==="ordgroup"?fn=ui[0]:fn={type:"ordgroup",mode:this.mode,body:ui},wi.length===1&&wi[0].type==="ordgroup"?Ln=wi[0]:Ln={type:"ordgroup",mode:this.mode,body:wi};var gi;return kt==="\\\\abovefrac"?gi=this.callFunction(kt,[fn,Ie[Qe],Ln],[]):gi=this.callFunction(kt,[fn,Ln],[]),[gi]}else return Ie},ce.handleSupSubscript=function(Ie){var Qe=this.fetch(),kt=Qe.text;this.consume();var or=this.parseGroup(Ie,!1,Rt.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!or)throw new l("Expected group after '"+kt+"'",Qe);return or},ce.formatUnsupportedCmd=function(Ie){for(var Qe=[],kt=0;kt<Ie.length;kt++)Qe.push({type:"textord",mode:"text",text:Ie[kt]});var or={type:"text",mode:this.mode,body:Qe},Qr={type:"color",mode:this.mode,color:this.settings.errorColor,body:[or]};return Qr},ce.parseAtom=function(Ie){var Qe=this.parseGroup("atom",!1,null,Ie);if(this.mode==="text")return Qe;for(var kt,or;;){this.consumeSpaces();var Qr=this.fetch();if(Qr.text==="\\limits"||Qr.text==="\\nolimits"){var fn=an(Qe,"op");if(fn){var Ln=Qr.text==="\\limits";fn.limits=Ln,fn.alwaysHandleSupSub=!0}else if(fn=an(Qe,"operatorname"),fn&&fn.alwaysHandleSupSub){var ui=Qr.text==="\\limits";fn.limits=ui}else throw new l("Limit controls must follow a math operator",Qr);this.consume()}else if(Qr.text==="^"){if(kt)throw new l("Double superscript",Qr);kt=this.handleSupSubscript("superscript")}else if(Qr.text==="_"){if(or)throw new l("Double subscript",Qr);or=this.handleSupSubscript("subscript")}else if(Qr.text==="'"){if(kt)throw new l("Double superscript",Qr);var wi={type:"textord",mode:this.mode,text:"\\prime"},gi=[wi];for(this.consume();this.fetch().text==="'";)gi.push(wi),this.consume();this.fetch().text==="^"&&gi.push(this.handleSupSubscript("superscript")),kt={type:"ordgroup",mode:this.mode,body:gi}}else break}return kt||or?{type:"supsub",mode:this.mode,base:Qe,sup:kt,sub:or}:Qe},ce.parseFunction=function(Ie,Qe,kt){var or=this.fetch(),Qr=or.text,fn=as[Qr];if(!fn)return null;if(this.consume(),kt!=null&&fn.greediness<=kt)throw new l("Got function '"+Qr+"' with no arguments"+(Qe?" as "+Qe:""),or);if(this.mode==="text"&&!fn.allowedInText)throw new l("Can't use function '"+Qr+"' in text mode",or);if(this.mode==="math"&&fn.allowedInMath===!1)throw new l("Can't use function '"+Qr+"' in math mode",or);var Ln=this.parseArguments(Qr,fn),ui=Ln.args,wi=Ln.optArgs;return this.callFunction(Qr,ui,wi,or,Ie)},ce.callFunction=function(Ie,Qe,kt,or,Qr){var fn={funcName:Ie,parser:this,token:or,breakOnTokenText:Qr},Ln=as[Ie];if(Ln&&Ln.handler)return Ln.handler(fn,Qe,kt);throw new l("No function handler for "+Ie)},ce.parseArguments=function(Ie,Qe){var kt=Qe.numArgs+Qe.numOptionalArgs;if(kt===0)return{args:[],optArgs:[]};for(var or=Qe.greediness,Qr=[],fn=[],Ln=0;Ln<kt;Ln++){var ui=Qe.argTypes&&Qe.argTypes[Ln],wi=Ln<Qe.numOptionalArgs,gi=Ln>0&&!wi||Ln===0&&!wi&&this.mode==="math",Qi=this.parseGroupOfType("argument to '"+Ie+"'",ui,wi,or,gi);if(!Qi){if(wi){fn.push(null);continue}throw new l("Expected group after '"+Ie+"'",this.fetch())}(wi?fn:Qr).push(Qi)}return{args:Qr,optArgs:fn}},ce.parseGroupOfType=function(Ie,Qe,kt,or,Qr){switch(Qe){case"color":return Qr&&this.consumeSpaces(),this.parseColorGroup(kt);case"size":return Qr&&this.consumeSpaces(),this.parseSizeGroup(kt);case"url":return this.parseUrlGroup(kt,Qr);case"math":case"text":return this.parseGroup(Ie,kt,or,void 0,Qe,Qr);case"hbox":{var fn=this.parseGroup(Ie,kt,or,void 0,"text",Qr);if(!fn)return fn;var Ln={type:"styling",mode:fn.mode,body:[fn],style:"text"};return Ln}case"raw":{if(Qr&&this.consumeSpaces(),kt&&this.fetch().text==="{")return null;var ui=this.parseStringGroup("raw",kt,!0);if(ui)return{type:"raw",mode:"text",string:ui.text};throw new l("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(Ie,kt,or,void 0,void 0,Qr);default:throw new l("Unknown group type as "+Ie,this.fetch())}},ce.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},ce.parseStringGroup=function(Ie,Qe,kt){var or=Qe?"[":"{",Qr=Qe?"]":"}",fn=this.fetch();if(fn.text!==or){if(Qe)return null;if(kt&&fn.text!=="EOF"&&/[^{}[\]]/.test(fn.text))return this.consume(),fn}var Ln=this.mode;this.mode="text",this.expect(or);for(var ui="",wi=this.fetch(),gi=0,Qi=wi,sa;(sa=this.fetch()).text!==Qr||kt&&gi>0;){switch(sa.text){case"EOF":throw new l("Unexpected end of input in "+Ie,wi.range(Qi,ui));case or:gi++;break;case Qr:gi--;break}Qi=sa,ui+=Qi.text,this.consume()}return this.expect(Qr),this.mode=Ln,wi.range(Qi,ui)},ce.parseRegexGroup=function(Ie,Qe){var kt=this.mode;this.mode="text";for(var or=this.fetch(),Qr=or,fn="",Ln;(Ln=this.fetch()).text!=="EOF"&&Ie.test(fn+Ln.text);)Qr=Ln,fn+=Qr.text,this.consume();if(fn==="")throw new l("Invalid "+Qe+": '"+or.text+"'",or);return this.mode=kt,or.range(Qr,fn)},ce.parseColorGroup=function(Ie){var Qe=this.parseStringGroup("color",Ie);if(!Qe)return null;var kt=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(Qe.text);if(!kt)throw new l("Invalid color: '"+Qe.text+"'",Qe);var or=kt[0];return/^[0-9a-f]{6}$/i.test(or)&&(or="#"+or),{type:"color-token",mode:this.mode,color:or}},ce.parseSizeGroup=function(Ie){var Qe,kt=!1;if(!Ie&&this.fetch().text!=="{"?Qe=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):Qe=this.parseStringGroup("size",Ie),!Qe)return null;!Ie&&Qe.text.length===0&&(Qe.text="0pt",kt=!0);var or=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(Qe.text);if(!or)throw new l("Invalid size: '"+Qe.text+"'",Qe);var Qr={number:+(or[1]+or[2]),unit:or[3]};if(!Hr(Qr))throw new l("Invalid unit: '"+Qr.unit+"'",Qe);return{type:"size",mode:this.mode,value:Qr,isBlank:kt}},ce.parseUrlGroup=function(Ie,Qe){this.gullet.lexer.setCatcode("%",13);var kt=this.parseStringGroup("url",Ie,!0);if(this.gullet.lexer.setCatcode("%",14),!kt)return null;var or=kt.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:or}},ce.parseGroup=function(Ie,Qe,kt,or,Qr,fn){var Ln=this.mode;Qr&&this.switchMode(Qr),fn&&this.consumeSpaces();var ui=this.fetch(),wi=ui.text,gi;if(Qe?wi==="[":wi==="{"||wi==="\\begingroup"){this.consume();var Qi=Rt.endOfGroup[wi];this.gullet.beginGroup();var sa=this.parseExpression(!1,Qi),Ua=this.fetch();this.expect(Qi),this.gullet.endGroup(),gi={type:"ordgroup",mode:this.mode,loc:m.range(ui,Ua),body:sa,semisimple:wi==="\\begingroup"||void 0}}else if(Qe)gi=null;else if(gi=this.parseFunction(or,Ie,kt)||this.parseSymbol(),gi==null&&wi[0]==="\\"&&!Qs.hasOwnProperty(wi)){if(this.settings.throwOnError)throw new l("Undefined control sequence: "+wi,ui);gi=this.formatUnsupportedCmd(wi),this.consume()}return Qr&&this.switchMode(Ln),gi},ce.formLigatures=function(Ie){for(var Qe=Ie.length-1,kt=0;kt<Qe;++kt){var or=Ie[kt],Qr=or.text;Qr==="-"&&Ie[kt+1].text==="-"&&(kt+1<Qe&&Ie[kt+2].text==="-"?(Ie.splice(kt,3,{type:"textord",mode:"text",loc:m.range(or,Ie[kt+2]),text:"---"}),Qe-=2):(Ie.splice(kt,2,{type:"textord",mode:"text",loc:m.range(or,Ie[kt+1]),text:"--"}),Qe-=1)),(Qr==="'"||Qr==="`")&&Ie[kt+1].text===Qr&&(Ie.splice(kt,2,{type:"textord",mode:"text",loc:m.range(or,Ie[kt+1]),text:Qr+Qr}),Qe-=1)}},ce.parseSymbol=function(){var Ie=this.fetch(),Qe=Ie.text;if(/^\\verb[^a-zA-Z]/.test(Qe)){this.consume();var kt=Qe.slice(5),or=kt.charAt(0)==="*";if(or&&(kt=kt.slice(1)),kt.length<2||kt.charAt(0)!==kt.slice(-1))throw new l(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return kt=kt.slice(1,-1),{type:"verb",mode:"text",body:kt,star:or}}Bs.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',Ie),Qe=Bs[Qe[0]]+Qe.substr(1));var Qr=il.exec(Qe);Qr&&(Qe=Qe.substring(0,Qr.index),Qe==="i"?Qe="\u0131":Qe==="j"&&(Qe="\u0237"));var fn;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',Ie);var Ln=Ke[this.mode][Qe].group,ui=m.range(Ie),wi;if(Mt.hasOwnProperty(Ln)){var gi=Ln;wi={type:"atom",mode:this.mode,family:gi,loc:ui,text:Qe}}else wi={type:Ln,mode:this.mode,loc:ui,text:Qe};fn=wi}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',Ie):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+Qe[0]+'"'+(" ("+Qe.charCodeAt(0)+")"),Ie)),fn={type:"textord",mode:"text",loc:m.range(Ie),text:Qe};else return null;if(this.consume(),Qr)for(var Qi=0;Qi<Qr[0].length;Qi++){var sa=Qr[0][Qi];if(!xs[sa])throw new l("Unknown accent ' "+sa+"'",Ie);var Ua=xs[sa][this.mode];if(!Ua)throw new l("Accent "+sa+" unsupported in "+this.mode+" mode",Ie);fn={type:"accent",mode:this.mode,loc:m.range(Ie),label:Ua,isStretchy:!1,isShifty:!0,base:fn}}return fn},Rt}();al.endOfExpression=["}","\\endgroup","\\end","\\right","&"],al.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},al.SUPSUB_GREEDINESS=1;var Js=function(ce,xe){if(!(typeof ce=="string"||ce instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var Ie=new al(ce,xe);delete Ie.gullet.macros.current["\\df@tag"];var Qe=Ie.parse();if(Ie.gullet.macros.get("\\df@tag")){if(!xe.displayMode)throw new l("\\tag works only in display equations");Ie.gullet.feed("\\df@tag"),Qe=[{type:"tag",mode:"text",body:Qe,tag:Ie.parse()}]}return Qe},Vo=Js,No=function(ce,xe,Ie){xe.textContent="";var Qe=Ht(ce,Ie).toNode();xe.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."),No=function(){throw new l("KaTeX doesn't work in quirks mode.")}));var fs=function(ce,xe){var Ie=Ht(ce,xe).toMarkup();return Ie},Ds=function(ce,xe){var Ie=new b(xe);return Vo(ce,Ie)},go=function(ce,xe,Ie){if(Ie.throwOnError||!(ce instanceof l))throw ce;var Qe=Rr.makeSpan(["katex-error"],[new Ce(xe)]);return Qe.setAttribute("title",ce.toString()),Qe.setAttribute("style","color:"+Ie.errorColor),Qe},Ht=function(ce,xe){var Ie=new b(xe);try{var Qe=Vo(ce,Ie);return kr(Qe,ce,Ie)}catch(kt){return go(kt,ce,Ie)}},ar=function(ce,xe){var Ie=new b(xe);try{var Qe=Vo(ce,Ie);return Vr(Qe,ce,Ie)}catch(kt){return go(kt,ce,Ie)}},In={version:"0.11.1",render:No,renderToString:fs,ParseError:l,__parse:Ds,__renderToDomTree:Ht,__renderToHTMLTree:ar,__setFontMetrics:mt,__defineSymbol:de,__defineMacro:bn,__domTree:{Span:Y,Anchor:ee,SymbolNode:Ce,SvgNode:_e,PathNode:he,LineNode:ye}},hi=p.default=In}]).default})},P2fV:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("Q9mQ"),v=i("+L6B"),m=i("sE09"),f=i.n(m)},P2ho:function(R,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(R,D,i){var y=i("hydK"),p=y.createElement,x=i("IMiH"),v=i("mFDi"),m=i("Fofx"),f=i("6GrX"),d=i("pzxd"),l=i("dqUG"),o=x.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 A(Q){return Q<h&&Q>-h}function b(Q,X){var te=X?Q.textFill:Q.fill;return te!=null&&te!==t}function w(Q,X){var te=X?Q.textStroke:Q.stroke;return te!=null&&te!==t}function E(Q,X){X&&C(Q,"transform","matrix("+n.call(X,",")+")")}function C(Q,X,te){(!te||te.type!=="linear"&&te.type!=="radial")&&Q.setAttribute(X,te)}function _(Q,X,te){Q.setAttributeNS("http://www.w3.org/1999/xlink",X,te)}function T(Q,X,te,$){if(b(X,te)){var le=te?X.textFill:X.fill;le=le==="transparent"?t:le,C(Q,"fill",le),C(Q,"fill-opacity",X.fillOpacity!=null?X.fillOpacity*X.opacity:X.opacity)}else C(Q,"fill",t);if(w(X,te)){var re=te?X.textStroke:X.stroke;re=re==="transparent"?t:re,C(Q,"stroke",re);var Se=te?X.textStrokeWidth:X.lineWidth,Re=!te&&X.strokeNoScale?$.getLineScale():1;C(Q,"stroke-width",Se/Re),C(Q,"paint-order",te?"stroke":"fill"),C(Q,"stroke-opacity",X.strokeOpacity!=null?X.strokeOpacity:X.opacity);var Pe=X.lineDash;Pe?(C(Q,"stroke-dasharray",X.lineDash.join(",")),C(Q,"stroke-dashoffset",a(X.lineDashOffset||0))):C(Q,"stroke-dasharray",""),X.lineCap&&C(Q,"stroke-linecap",X.lineCap),X.lineJoin&&C(Q,"stroke-linejoin",X.lineJoin),X.miterLimit&&C(Q,"stroke-miterlimit",X.miterLimit)}else C(Q,"stroke",t)}function S(Q){for(var X=[],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++],Ge=te[le++],ct=te[le++],Ue=te[le++],ae=te[le++],lt=te[le++],pe=te[le++],J=Math.abs(ae),Y=A(J-s)||(pe?ae>=s:-ae>=s),ee=ae>0?ae%s:ae%s+s,fe=!1;Y?fe=!0:A(J)?fe=!1:fe=ee>=r===!!pe;var we=g(Pe+Ge*u(Ue)),Ce=g(Je+ct*e(Ue));Y&&(pe?ae=s-1e-4:ae=-s+1e-4,fe=!0,le===9&&X.push("M",we,Ce));var _e=g(Pe+Ge*u(Ue+ae)),he=g(Je+ct*e(Ue+ae));X.push("A",g(Ge),g(ct),a(lt*c),+fe,+pe,_e,he);break;case o.Z:Se="Z";break;case o.R:var _e=g(te[le++]),he=g(te[le++]),ye=g(te[le++]),Le=g(te[le++]);X.push("M",_e,he,"L",_e+ye,he,"L",_e+ye,he+Le,"L",_e,he+Le,"L",_e,he);break}Se&&X.push(Se);for(var tt=0;tt<Re;tt++)X.push(g(te[le++]))}return X.join(" ")}var O={};O.brush=function(Q){var X=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=S($);le.indexOf("NaN")<0&&C(te,"d",le)}T(te,X,!1,Q),E(te,Q.transform),X.text!=null?M(Q,Q.getBoundingRect()):V(Q)};var I={};I.brush=function(Q){var X=Q.style,te=X.image;if(te instanceof HTMLImageElement){var $=te.src;te=$}if(!te)return;var le=X.x||0,re=X.y||0,Se=X.width,Re=X.height,Pe=Q.__svgEl;Pe||(Pe=p("image"),Q.__svgEl=Pe),te!==Q.__imageSrc&&(_(Pe,"href",te),Q.__imageSrc=te),C(Pe,"width",Se),C(Pe,"height",Re),C(Pe,"x",le),C(Pe,"y",re),E(Pe,Q.transform),X.text!=null?M(Q,Q.getBoundingRect()):V(Q)};var F={},P=new v,B={},k=[],G={left:"start",right:"end",center:"middle",middle:"middle"},M=function(X,te){var $=X.style,le=X.transform,re=X instanceof l||$.transformText;X.__dirty&&d.normalizeTextStyle($,!0);var Se=$.text;if(Se!=null&&(Se+=""),!d.needDrawText(Se,$))return;Se==null&&(Se=""),!re&&le&&(P.copy(te),P.applyTransform(le),te=P);var Re=X.__textSvgEl;Re||(Re=p("text"),X.__textSvgEl=Re);var Pe=Re.style,Je=$.font||f.DEFAULT_FONT,Ge=Re.__computedFont;Je!==Re.__styleFont&&(Pe.font=Re.__styleFont=Je,Ge=Re.__computedFont=Pe.font);var ct=$.textPadding,Ue=$.textLineHeight,ae=X.__textCotentBlock;(!ae||X.__dirtyText)&&(ae=X.__textCotentBlock=f.parsePlainText(Se,Ge,ct,Ue,$.truncate));var lt=ae.outerHeight,pe=ae.lineHeight;d.getBoxPosition(B,X,$,te);var J=B.baseX,Y=B.baseY,ee=B.textAlign||"left",fe=B.textVerticalAlign;j(Re,re,le,$,te,J,Y);var we=f.adjustTextY(Y,lt,fe),Ce=J,_e=we;ct&&(Ce=K(J,ee,ct),_e+=ct[0]),_e+=pe/2,T(Re,$,!0,X);var he=ae.canCacheByTextString,ye=X.__tspanList||(X.__tspanList=[]),Le=ye.length;if(he&&X.__canCacheByTextString&&X.__text===Se){if(X.__dirtyText&&Le)for(var tt=0;tt<Le;++tt)z(ye[tt],ee,Ce,_e+tt*pe)}else{X.__text=Se,X.__canCacheByTextString=he;for(var gt=ae.lines,at=gt.length,tt=0;tt<at;tt++){var Fe=ye[tt],mt=gt[tt];Fe?Fe.__zrText!==mt&&(Fe.innerHTML="",Fe.appendChild(document.createTextNode(mt))):(Fe=ye[tt]=p("tspan"),Re.appendChild(Fe),Fe.appendChild(document.createTextNode(mt))),z(Fe,ee,Ce,_e+tt*pe)}if(Le>at){for(;tt<Le;tt++)Re.removeChild(ye[tt]);ye.length=at}}};function j(Q,X,te,$,le,re,Se){m.identity(k),X&&te&&m.copy(k,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),k[4]-=re,k[5]-=Se,m.rotate(k,k,Re),k[4]+=re,k[5]+=Se}E(Q,k)}function K(Q,X,te){return X==="right"?Q-te[1]:X==="center"?Q+te[3]/2-te[1]/2:Q+te[3]}function z(Q,X,te,$){C(Q,"dominant-baseline","middle"),C(Q,"text-anchor",G[X]),C(Q,"x",te),C(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=M,F.brush=function(Q){var X=Q.style;X.text!=null?M(Q,!1):V(Q)},D.path=O,D.image=I,D.text=F},P4Qj:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.removeSensor=D.getSensor=D.Sensors=void 0;var y=v(i("chpo")),p=i("FxDU"),x=i("24YM");function v(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(x.SizeSensorId);if(t&&m[t])return m[t];var a=(0,y.default)();n.setAttribute(x.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(x.SizeSensorId);n.destroy(),f(t)};D.removeSensor=l},P5Jw:function(R,D,i){"use strict";var y=i("rHrb"),p=y.CopyToClipboard;p.CopyToClipboard=p,R.exports=p},PArb:function(R,D,i){"use strict";var y=i("pVnL"),p=i.n(y),x=i("lSNA"),v=i.n(x),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,A=g===void 0?"horizontal":g,b=e.orientation,w=b===void 0?"center":b,E=e.className,C=e.children,_=e.dashed,T=e.plain,S=n(e,["prefixCls","type","orientation","className","children","dashed","plain"]),O=s("divider",h),I=w.length>0?"-".concat(w):w,F=!!C,P=l()(E,O,"".concat(O,"-").concat(A),(r={},v()(r,"".concat(O,"-with-text"),F),v()(r,"".concat(O,"-with-text").concat(I),F),v()(r,"".concat(O,"-dashed"),!!_),v()(r,"".concat(O,"-plain"),!!T),v()(r,"".concat(O,"-rtl"),c==="rtl"),r));return m.createElement("div",p()({className:P},S,{role:"separator"}),C&&m.createElement("span",{className:"".concat(O,"-inner-text")},C))})};D.a=t},PD8m:function(R,D){R.exports={name:"memoryStorage",read:y,write:p,each:x,remove:v,clearAll:m};var i={};function y(f){return i[f]}function p(f,d){i[f]=d}function x(f){for(var d in i)i.hasOwnProperty(d)&&f(i[d],d)}function v(f){delete i[f]}function m(f){i={}}},PKem:function(R,D,i){"use strict";i.d(D,"a",function(){return b});var y=i("RIqP"),p=i.n(y),x=i("lSNA"),v=i.n(x),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"),A=function(I,F){var P={};for(var B in I)Object.prototype.hasOwnProperty.call(I,B)&&F.indexOf(B)<0&&(P[B]=I[B]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,B=Object.getOwnPropertySymbols(I);k<B.length;k++)F.indexOf(B[k])<0&&Object.prototype.propertyIsEnumerable.call(I,B[k])&&(P[B[k]]=I[B[k]]);return P},b=r.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function w(I){var F=I.suffixCls,P=I.tagName,B=I.displayName;return function(k){var G;return G=function(M){a()(K,M);var j=u()(K);function K(){var z;return l()(this,K),z=j.apply(this,arguments),z.renderComponent=function(V){var Q=V.getPrefixCls,X=z.props.prefixCls,te=Q(F,X);return r.createElement(k,f()({prefixCls:te,tagName:P},z.props))},z}return n()(K,[{key:"render",value:function(){return r.createElement(g.a,null,this.renderComponent)}}]),K}(r.Component),G.displayName=B,G}}var E=function(F){var P=F.prefixCls,B=F.className,k=F.children,G=F.tagName,M=A(F,["prefixCls","className","children","tagName"]),j=h()(P,B);return r.createElement(G,f()({className:j},M),k)},C=function(I){a()(P,I);var F=u()(P);function P(){var B;return l()(this,P),B=F.apply(this,arguments),B.state={siders:[]},B.renderComponent=function(k){var G,M=k.direction,j=B.props,K=j.prefixCls,z=j.className,V=j.children,Q=j.hasSider,X=j.tagName,te=A(j,["prefixCls","className","children","hasSider","tagName"]),$=h()(K,(G={},v()(G,"".concat(K,"-has-sider"),typeof Q=="boolean"?Q:B.state.siders.length>0),v()(G,"".concat(K,"-rtl"),M==="rtl"),G),z);return r.createElement(b.Provider,{value:{siderHook:B.getSiderHook()}},r.createElement(X,f()({className:$},te),V))},B}return n()(P,[{key:"getSiderHook",value:function(){var k=this;return{addSider:function(M){k.setState(function(j){return{siders:[].concat(p()(j.siders),[M])}})},removeSider:function(M){k.setState(function(j){return{siders:j.siders.filter(function(K){return K!==M})}})}}}},{key:"render",value:function(){return r.createElement(g.a,null,this.renderComponent)}}]),P}(r.Component),_=w({suffixCls:"layout",tagName:"section",displayName:"Layout"})(C),T=w({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(E),S=w({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(E),O=w({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(E);_.Header=T,_.Footer=S,_.Content=O,D.b=_},PNag:function(R,D,i){var y=i("bYtY"),p=i("SKnc"),x=i("YH21"),v=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=v.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(C,_,T,S){(!S||S.type!=="selectDataRange"||S.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var C=this.visualMapModel,_=this.group;this._orient=C.get("orient"),this._useHandle=C.get("calculable"),this._resetInterval(),this._renderBar(_);var T=C.get("text");this._renderEndsText(_,T,0),this._renderEndsText(_,T,1),this._updateView(!0),this.renderBackground(_),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(_)},_renderEndsText:function(C,_,T){if(!_)return;var S=_[1-T];S=S!=null?S+"":"";var O=this.visualMapModel,I=O.get("textGap"),F=O.itemSize,P=this._shapes.barGroup,B=this._applyTransform([F[0]/2,T===0?-I:F[1]+I],P),k=this._applyTransform(T===0?"bottom":"top",P),G=this._orient,M=this.visualMapModel.textStyleModel;this.group.add(new m.Text({style:{x:B[0],y:B[1],textVerticalAlign:G==="horizontal"?"middle":k,textAlign:G==="horizontal"?k:"center",text:S,textFont:M.getFont(),textFill:M.getTextColor()}}))},_renderBar:function(C){var _=this.visualMapModel,T=this._shapes,S=_.itemSize,O=this._orient,I=this._useHandle,F=l.getItemAlign(_,this.api,S),P=T.barGroup=this._createBarGroup(F);P.add(T.outOfRange=c()),P.add(T.inRange=c(null,I?w(this._orient):null,y.bind(this._dragHandle,this,"all",!1),y.bind(this._dragHandle,this,"all",!0)));var B=_.textStyleModel.getTextRect("\u56FD"),k=e(B.width,B.height);I&&(T.handleThumbs=[],T.handleLabels=[],T.handleLabelPoints=[],this._createHandle(P,0,S,k,O,F),this._createHandle(P,1,S,k,O,F)),this._createIndicator(P,S,k,O),C.add(P)},_createHandle:function(C,_,T,S,O){var I=y.bind(this._dragHandle,this,_,!1),F=y.bind(this._dragHandle,this,_,!0),P=c(h(_,S),w(this._orient),I,F);P.position[0]=T[0],C.add(P);var B=this.visualMapModel.textStyleModel,k=new m.Text({draggable:!0,drift:I,onmousemove:function(j){x.stop(j.event)},ondragend:F,style:{x:0,y:0,text:"",textFont:B.getFont(),textFill:B.getTextColor()}});this.group.add(k);var G=[O==="horizontal"?S/2:S*1.5,O==="horizontal"?_===0?-(S*1.5):S*1.5:_===0?-S/2:S/2],M=this._shapes;M.handleThumbs[_]=P,M.handleLabelPoints[_]=G,M.handleLabels[_]=k},_createIndicator:function(C,_,T,S){var O=c([[0,0]],"move");O.position[0]=_[0],O.attr({invisible:!0,silent:!0}),C.add(O);var I=this.visualMapModel.textStyleModel,F=new m.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:I.getFont(),textFill:I.getTextColor()}});this.group.add(F);var P=[S==="horizontal"?T/2:r+3,0],B=this._shapes;B.indicator=O,B.indicatorLabel=F,B.indicatorLabelPoint=P},_dragHandle:function(C,_,T,S){if(!this._useHandle)return;if(this._dragging=!_,!_){var O=this._applyTransform([T,S],this._shapes.barGroup,!0);this._updateInterval(C,O[1]),this._updateView()}_===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),_?!this._hovering&&this._clearHoverLinkToSeries():b(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[C],!1)},_resetInterval:function(){var C=this.visualMapModel,_=this._dataInterval=C.getSelected(),T=C.getExtent(),S=[0,C.itemSize[1]];this._handleEnds=[n(_[0],T,S,!0),n(_[1],T,S,!0)]},_updateInterval:function(C,_){_=_||0;var T=this.visualMapModel,S=this._handleEnds,O=[0,T.itemSize[1]];d(_,S,O,C,0);var I=T.getExtent();this._dataInterval=[n(S[0],O,I,!0),n(S[1],O,I,!0)]},_updateView:function(C){var _=this.visualMapModel,T=_.getExtent(),S=this._shapes,O=[0,_.itemSize[1]],I=C?O:this._handleEnds,F=this._createBarVisual(this._dataInterval,T,I,"inRange"),P=this._createBarVisual(T,T,O,"outOfRange");S.inRange.setStyle({fill:F.barColor,opacity:F.opacity}).setShape("points",F.barPoints),S.outOfRange.setStyle({fill:P.barColor,opacity:P.opacity}).setShape("points",P.barPoints),this._updateHandle(I,F)},_createBarVisual:function(C,_,T,S){var O={forceState:S,convertOpacityToAlpha:!0},I=this._makeColorGradient(C,O),F=[this.getControllerVisual(C[0],"symbolSize",O),this.getControllerVisual(C[1],"symbolSize",O)],P=this._createBarPoints(T,F);return{barColor:new p(0,0,0,1,I),barPoints:P,handlesColor:[I[0].color,I[I.length-1].color]}},_makeColorGradient:function(C,_){var T=100,S=[],O=(C[1]-C[0])/T;S.push({color:this.getControllerVisual(C[0],"color",_),offset:0});for(var I=1;I<T;I++){var F=C[0]+O*I;if(F>C[1])break;S.push({color:this.getControllerVisual(F,"color",_),offset:I/T})}return S.push({color:this.getControllerVisual(C[1],"color",_),offset:1}),S},_createBarPoints:function(C,_){var T=this.visualMapModel.itemSize;return[[T[0]-_[0],C[0]],[T[0],C[0]],[T[0],C[1]],[T[0]-_[1],C[1]]]},_createBarGroup:function(C){var _=this._orient,T=this.visualMapModel.get("inverse");return new m.Group(_==="horizontal"&&!T?{scale:C==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:_==="horizontal"&&T?{scale:C==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:_==="vertical"&&!T?{scale:C==="left"?[1,-1]:[-1,-1]}:{scale:C==="left"?[1,1]:[-1,1]})},_updateHandle:function(C,_){if(!this._useHandle)return;var T=this._shapes,S=this.visualMapModel,O=T.handleThumbs,I=T.handleLabels;t([0,1],function(F){var P=O[F];P.setStyle("fill",_.handlesColor[F]),P.position[1]=C[F];var B=m.applyTransform(T.handleLabelPoints[F],m.getTransform(P,this.group));I[F].setStyle({x:B[0],y:B[1],text:S.formatValueText(this._dataInterval[F]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?F===0?"bottom":"top":"left",T.barGroup)})},this)},_showIndicator:function(C,_,T,S){var O=this.visualMapModel,I=O.getExtent(),F=O.itemSize,P=[0,F[1]],B=n(C,I,P,!0),k=this._shapes,G=k.indicator;if(!G)return;G.position[1]=B,G.attr("invisible",!1),G.setShape("points",g(!!T,S,B,F[1]));var M={convertOpacityToAlpha:!0},j=this.getControllerVisual(C,"color",M);G.setStyle("fill",j);var K=m.applyTransform(k.indicatorLabelPoint,m.getTransform(G,this.group)),z=k.indicatorLabel;z.attr("invisible",!1);var V=this._applyTransform("left",k.barGroup),Q=this._orient;z.setStyle({text:(T||"")+O.formatValueText(_),textVerticalAlign:Q==="horizontal"?V:"middle",textAlign:Q==="horizontal"?"center":V,x:K[0],y:K[1]})},_enableHoverLinkToSeries:function(){var C=this;this._shapes.barGroup.on("mousemove",function(_){if(C._hovering=!0,!C._dragging){var T=C.visualMapModel.itemSize,S=C._applyTransform([_.offsetX,_.offsetY],C._shapes.barGroup,!0,!0);S[1]=a(e(0,S[1]),T[1]),C._doHoverLinkToSeries(S[1],0<=S[0]&&S[0]<=T[0])}}).on("mouseout",function(){C._hovering=!1,!C._dragging&&C._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var C=this.api.getZr();this.visualMapModel.option.hoverLink?(C.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),C.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(C,_){var T=this.visualMapModel,S=T.itemSize;if(!T.option.hoverLink)return;var O=[0,S[1]],I=T.getExtent();C=a(e(O[0],C),O[1]);var F=A(T,I,O),P=[C-F,C+F],B=n(C,O,I,!0),k=[n(P[0],O,I,!0),n(P[1],O,I,!0)];P[0]<O[0]&&(k[0]=-Infinity),P[1]>O[1]&&(k[1]=Infinity),_&&(k[0]===-Infinity?this._showIndicator(B,k[1],"< ",F):k[1]===Infinity?this._showIndicator(B,k[0],"> ",F):this._showIndicator(B,B,"\u2248 ",F));var G=this._hoverLinkDataIndices,M=[];(_||b(T))&&(M=this._hoverLinkDataIndices=T.findTargetDataIndices(k));var j=o.compressBatches(G,M);this._dispatchHighDown("downplay",l.makeHighDownBatch(j[0],T)),this._dispatchHighDown("highlight",l.makeHighDownBatch(j[1],T))},_hoverLinkFromSeriesMouseOver:function(C){var _=C.target,T=this.visualMapModel;if(!_||_.dataIndex==null)return;var S=this.ecModel.getSeriesByIndex(_.seriesIndex);if(!T.isTargetSeries(S))return;var O=S.getData(_.dataType),I=O.get(T.getDataDimension(O),_.dataIndex,!0);isNaN(I)||this._showIndicator(I,I)},_hideIndicator:function(){var C=this._shapes;C.indicator&&C.indicator.attr("invisible",!0),C.indicatorLabel&&C.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var C=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",l.makeHighDownBatch(C,this.visualMapModel)),C.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var C=this.api.getZr();C.off("mouseover",this._hoverLinkFromSeriesMouseOver),C.off("mouseout",this._hideIndicator)},_applyTransform:function(C,_,T,S){var O=m.getTransform(_,S?null:this.group);return m[y.isArray(C)?"applyTransform":"transformDirection"](C,O,T)},_dispatchHighDown:function(C,_){_&&_.length&&this.api.dispatchAction({type:C,batch:_})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function c(C,_,T,S){return new m.Polygon({shape:{points:C},draggable:!!T,cursor:_,drift:T,onmousemove:function(O){x.stop(O.event)},ondragend:S})}function h(C,_){return C===0?[[0,0],[_,0],[_,-_]]:[[0,0],[_,0],[_,_]]}function g(C,_,T,S){return C?[[0,-a(_,e(T,0))],[r,0],[0,a(_,e(S-T,0))]]:[[0,0],[5,-5],[5,5]]}function A(C,_,T){var S=u/2,O=C.get("hoverLinkDataSize");return O&&(S=n(O,_,T,!0)/2),S}function b(C){var _=C.get("hoverLinkOnHandle");return!!(_==null?C.get("realtime"):_)}function w(C){return C==="vertical"?"ns-resize":"ew-resize"}var E=s;R.exports=E},PQMj:function(R,D,i){},PSzr:function(R,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(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.StreamCipher,m=p.algo,f=[],d=[],l=[],o=m.RabbitLegacy=v.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],A=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,b=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,w=A>>>16|b&4294901760,E=b<<16|A&65535;r[0]^=A,r[1]^=w,r[2]^=b,r[3]^=E,r[4]^=A,r[5]^=w,r[6]^=b,r[7]^=E;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=v._createHelper(o)}(),y.RabbitLegacy})},ProS:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("aX58"),v=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"),A=i("4NO4"),b=i("iLNv"),w=b.throttle,E=i("/WM3"),C=i("uAnK"),_=i("mYwL"),T=i("af/B"),S=i("xTNl"),O=i("8hn6");i("A1Ka");var I=i("7DRL"),F=v.assert,P=v.each,B=v.isFunction,k=v.isObject,G=r.parseClassType,M="4.8.0",j={zrender:"4.3.1"},K=1,z=1e3,V=800,Q=900,X=5e3,te=1e3,$=1100,le=2e3,re=3e3,Se=3500,Re=4e3,Pe=5e3,Je={PROCESSOR:{FILTER:z,SERIES_FILTER:V,STATISTIC:X},VISUAL:{LAYOUT:te,PROGRESSIVE_LAYOUT:$,GLOBAL:le,CHART:re,POST_CHART_LAYOUT:Se,COMPONENT:Re,BRUSH:Pe}},Ge="__flagInMainProcess",ct="__optionUpdated",Ue=/^[a-zA-Z0-9_]+$/;function ae(Ft,qt){return function(Hr,Nr,Dr){if(!qt&&this._disposed){jt(this.id);return}Hr=Hr&&Hr.toLowerCase(),l.prototype[Ft].call(this,Hr,Nr,Dr)}}function lt(){l.call(this)}lt.prototype.on=ae("on",!0),lt.prototype.off=ae("off",!0),lt.prototype.one=ae("one",!0),v.mixin(lt,l);function pe(Ft,qt,Hr){Hr=Hr||{},typeof qt=="string"&&(qt=vt[qt]),this.id,this.group,this._dom=Ft;var Nr="canvas",Dr=this._zr=x.init(Ft,{renderer:Hr.renderer||Nr,devicePixelRatio:Hr.devicePixelRatio,width:Hr.width,height:Hr.height});this._throttledZrFlush=w(v.bind(Dr.flush,Dr),17);var qt=v.clone(qt);qt&&e(qt,!0),this._theme=qt,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new t;var cn=this._api=Ke(this);function vn(ei,qn){return ei.__prio-qn.__prio}d(dr,vn),d(qe,vn),this._scheduler=new T(this,cn,qe,dr),l.call(this,this._ecEventProcessor=new de),this._messageCenter=new lt,this._initEvents(),this.resize=v.bind(this.resize,this),this._pendingActions=[],Dr.animation.on("frame",this._onframe,this),Le(Dr,this),v.setAsPrimitive(this)}var J=pe.prototype;J._onframe=function(){if(this._disposed)return;var Ft=this._scheduler;if(this[ct]){var qt=this[ct].silent;this[Ge]=!0,fe(this),ee.update.call(this),this[Ge]=!1,this[ct]=!1,he.call(this,qt),ye.call(this,qt)}else if(Ft.unfinished){var Hr=K,Nr=this._model,Dr=this._api;Ft.unfinished=!1;do{var cn=+new Date;Ft.performSeriesTasks(Nr),Ft.performDataProcessorTasks(Nr),Ce(this,Nr),Ft.performVisualTasks(Nr),mt(this,this._model,Dr,"remain"),Hr-=+new Date-cn}while(Hr>0&&Ft.unfinished);Ft.unfinished||this._zr.flush()}},J.getDom=function(){return this._dom},J.getZr=function(){return this._zr},J.setOption=function(Ft,qt,Hr){if(this._disposed){jt(this.id);return}var Nr;if(k(qt)&&(Hr=qt.lazyUpdate,Nr=qt.silent,qt=qt.notMerge),this[Ge]=!0,!this._model||qt){var Dr=new a(this._api),cn=this._theme,vn=this._model=new o;vn.scheduler=this._scheduler,vn.init(null,null,cn,Dr)}this._model.setOption(Ft,me),Hr?(this[ct]={silent:Nr},this[Ge]=!1):(fe(this),ee.update.call(this),this._zr.flush(),this[ct]=!1,this[Ge]=!1,he.call(this,Nr),ye.call(this,Nr))},J.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},J.getModel=function(){return this._model},J.getOption=function(){return this._model&&this._model.getOption()},J.getWidth=function(){return this._zr.getWidth()},J.getHeight=function(){return this._zr.getHeight()},J.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},J.getRenderedCanvas=function(Ft){if(!f.canvasSupported)return;Ft=Ft||{},Ft.pixelRatio=Ft.pixelRatio||1,Ft.backgroundColor=Ft.backgroundColor||this._model.get("backgroundColor");var qt=this._zr;return qt.painter.getRenderedCanvas(Ft)},J.getSvgDataURL=function(){if(!f.svgSupported)return;var Ft=this._zr,qt=Ft.storage.getDisplayList();return v.each(qt,function(Hr){Hr.stopAnimation(!0)}),Ft.painter.toDataURL()},J.getDataURL=function(Ft){if(this._disposed){jt(this.id);return}Ft=Ft||{};var qt=Ft.excludeComponents,Hr=this._model,Nr=[],Dr=this;P(qt,function(vn){Hr.eachComponent({mainType:vn},function(ei){var qn=Dr._componentsMap[ei.__viewId];qn.group.ignore||(Nr.push(qn),qn.group.ignore=!0)})});var cn=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(Ft).toDataURL("image/"+(Ft&&Ft.type||"png"));return P(Nr,function(vn){vn.group.ignore=!1}),cn},J.getConnectedDataURL=function(Ft){if(this._disposed){jt(this.id);return}if(!f.canvasSupported)return;var qt=Ft.type==="svg",Hr=this.group,Nr=Math.min,Dr=Math.max,cn=Infinity;if(mn[Hr]){var vn=cn,ei=cn,qn=-cn,fi=-cn,xi=[],Ni=Ft&&Ft.pixelRatio||1;v.each(ur,function(rt,Ze){if(rt.group===Hr){var st=qt?rt.getZr().painter.getSvgDom().innerHTML:rt.getRenderedCanvas(v.clone(Ft)),xt=rt.getDom().getBoundingClientRect();vn=Nr(xt.left,vn),ei=Nr(xt.top,ei),qn=Dr(xt.right,qn),fi=Dr(xt.bottom,fi),xi.push({dom:st,left:xt.left,top:xt.top})}}),vn*=Ni,ei*=Ni,qn*=Ni,fi*=Ni;var Hi=qn-vn,nt=fi-ei,Ne=v.createCanvas(),He=x.init(Ne,{renderer:qt?"svg":"canvas"});if(He.resize({width:Hi,height:nt}),qt){var Xe="";return P(xi,function(rt){var Ze=rt.left-vn,st=rt.top-ei;Xe+='<g transform="translate('+Ze+","+st+')">'+rt.dom+"</g>"}),He.painter.getSvgRoot().innerHTML=Xe,Ft.connectedBackgroundColor&&He.painter.setBackgroundColor(Ft.connectedBackgroundColor),He.refreshImmediately(),He.painter.toDataURL()}else return Ft.connectedBackgroundColor&&He.add(new g.Rect({shape:{x:0,y:0,width:Hi,height:nt},style:{fill:Ft.connectedBackgroundColor}})),P(xi,function(rt){var Ze=new g.Image({style:{x:rt.left*Ni-vn,y:rt.top*Ni-ei,image:rt.dom}});He.add(Ze)}),He.refreshImmediately(),Ne.toDataURL("image/"+(Ft&&Ft.type||"png"))}else return this.getDataURL(Ft)},J.convertToPixel=v.curry(Y,"convertToPixel"),J.convertFromPixel=v.curry(Y,"convertFromPixel");function Y(Ft,qt,Hr){if(this._disposed){jt(this.id);return}var Nr=this._model,Dr=this._coordSysMgr.getCoordinateSystems(),cn;qt=A.parseFinder(Nr,qt);for(var vn=0;vn<Dr.length;vn++){var ei=Dr[vn];if(ei[Ft]&&(cn=ei[Ft](Nr,qt,Hr))!=null)return cn}}J.containPixel=function(Ft,qt){if(this._disposed){jt(this.id);return}var Hr=this._model,Nr;return Ft=A.parseFinder(Hr,Ft),v.each(Ft,function(Dr,cn){cn.indexOf("Models")>=0&&v.each(Dr,function(vn){var ei=vn.coordinateSystem;if(ei&&ei.containPoint)Nr|=!!ei.containPoint(qt);else if(cn==="seriesModels"){var qn=this._chartsMap[vn.__viewId];qn&&qn.containPoint&&(Nr|=qn.containPoint(qt,vn))}},this)},this),!!Nr},J.getVisual=function(Ft,qt){var Hr=this._model;Ft=A.parseFinder(Hr,Ft,{defaultMainType:"series"});var Nr=Ft.seriesModel,Dr=Nr.getData(),cn=Ft.hasOwnProperty("dataIndexInside")?Ft.dataIndexInside:Ft.hasOwnProperty("dataIndex")?Dr.indexOfRawIndex(Ft.dataIndex):null;return cn!=null?Dr.getItemVisual(cn,qt):Dr.getVisual(qt)},J.getViewOfComponentModel=function(Ft){return this._componentsMap[Ft.__viewId]},J.getViewOfSeriesModel=function(Ft){return this._chartsMap[Ft.__viewId]};var ee={prepareAndUpdate:function(Ft){fe(this),ee.update.call(this,Ft)},update:function(Ft){var qt=this._model,Hr=this._api,Nr=this._zr,Dr=this._coordSysMgr,cn=this._scheduler;if(!qt)return;cn.restoreData(qt,Ft),cn.performSeriesTasks(qt),Dr.create(qt,Hr),cn.performDataProcessorTasks(qt,Ft),Ce(this,qt),Dr.update(qt,Hr),gt(qt),cn.performVisualTasks(qt,Ft),at(this,qt,Hr,Ft);var vn=qt.get("backgroundColor")||"transparent";if(f.canvasSupported)Nr.setBackgroundColor(vn);else{var ei=m.parse(vn);vn=m.stringify(ei,"rgb"),ei[3]===0&&(vn="transparent")}et(qt,Hr)},updateTransform:function(Ft){var qt=this._model,Hr=this,Nr=this._api;if(!qt)return;var Dr=[];qt.eachComponent(function(vn,ei){var qn=Hr.getViewOfComponentModel(ei);if(qn&&qn.__alive)if(qn.updateTransform){var fi=qn.updateTransform(ei,qt,Nr,Ft);fi&&fi.update&&Dr.push(qn)}else Dr.push(qn)});var cn=v.createHashMap();qt.eachSeries(function(vn){var ei=Hr._chartsMap[vn.__viewId];if(ei.updateTransform){var qn=ei.updateTransform(vn,qt,Nr,Ft);qn&&qn.update&&cn.set(vn.uid,1)}else cn.set(vn.uid,1)}),gt(qt),this._scheduler.performVisualTasks(qt,Ft,{setDirty:!0,dirtyMap:cn}),mt(Hr,qt,Nr,Ft,cn),et(qt,this._api)},updateView:function(Ft){var qt=this._model;if(!qt)return;h.markUpdateMethod(Ft,"updateView"),gt(qt),this._scheduler.performVisualTasks(qt,Ft,{setDirty:!0}),at(this,this._model,this._api,Ft),et(qt,this._api)},updateVisual:function(Ft){ee.update.call(this,Ft)},updateLayout:function(Ft){ee.update.call(this,Ft)}};function fe(Ft){var qt=Ft._model,Hr=Ft._scheduler;Hr.restorePipelines(qt),Hr.prepareStageTasks(),tt(Ft,"component",qt,Hr),tt(Ft,"chart",qt,Hr),Hr.plan()}function we(Ft,qt,Hr,Nr,Dr){var cn=Ft._model;if(!Nr){P(Ft._componentsViews.concat(Ft._chartsViews),fi);return}var vn={};vn[Nr+"Id"]=Hr[Nr+"Id"],vn[Nr+"Index"]=Hr[Nr+"Index"],vn[Nr+"Name"]=Hr[Nr+"Name"];var ei={mainType:Nr,query:vn};Dr&&(ei.subType=Dr);var qn=Hr.excludeSeriesId;qn!=null&&(qn=v.createHashMap(A.normalizeToArray(qn))),cn&&cn.eachComponent(ei,function(xi){(!qn||qn.get(xi.id)==null)&&fi(Ft[Nr==="series"?"_chartsMap":"_componentsMap"][xi.__viewId])},Ft);function fi(xi){xi&&xi.__alive&&xi[qt]&&xi[qt](xi.__model,cn,Ft._api,Hr)}}J.resize=function(Ft){if(this._disposed){jt(this.id);return}this._zr.resize(Ft);var qt=this._model;if(this._loadingFX&&this._loadingFX.resize(),!qt)return;var Hr=qt.resetOption("media"),Nr=Ft&&Ft.silent;this[Ge]=!0,Hr&&fe(this),ee.update.call(this),this[Ge]=!1,he.call(this,Nr),ye.call(this,Nr)};function Ce(Ft,qt){var Hr=Ft._chartsMap,Nr=Ft._scheduler;qt.eachSeries(function(Dr){Nr.updateStreamModes(Dr,Hr[Dr.__viewId])})}J.showLoading=function(Ft,qt){if(this._disposed){jt(this.id);return}if(k(Ft)&&(qt=Ft,Ft=""),Ft=Ft||"default",this.hideLoading(),!rr[Ft])return;var Hr=rr[Ft](this._api,qt),Nr=this._zr;this._loadingFX=Hr,Nr.add(Hr)},J.hideLoading=function(){if(this._disposed){jt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},J.makeActionFromEvent=function(Ft){var qt=v.extend({},Ft);return qt.type=ut[Ft.type],qt},J.dispatchAction=function(Ft,qt){if(this._disposed){jt(this.id);return}if(k(qt)||(qt={silent:!!qt}),!se[Ft.type])return;if(!this._model)return;if(this[Ge]){this._pendingActions.push(Ft);return}_e.call(this,Ft,qt.silent),qt.flush?this._zr.flush(!0):qt.flush!==!1&&f.browser.weChat&&this._throttledZrFlush(),he.call(this,qt.silent),ye.call(this,qt.silent)};function _e(Ft,qt){var Hr=Ft.type,Nr=Ft.escapeConnect,Dr=se[Hr],cn=Dr.actionInfo,vn=(cn.update||"update").split(":"),ei=vn.pop();vn=vn[0]!=null&&G(vn[0]),this[Ge]=!0;var qn=[Ft],fi=!1;Ft.batch&&(fi=!0,qn=v.map(Ft.batch,function(nt){return nt=v.defaults(v.extend({},nt),Ft),nt.batch=null,nt}));var xi=[],Ni,Hi=Hr==="highlight"||Hr==="downplay";P(qn,function(nt){Ni=Dr.action(nt,this._model,this._api),Ni=Ni||v.extend({},nt),Ni.type=cn.event||Ni.type,xi.push(Ni),Hi?we(this,ei,nt,"series"):vn&&we(this,ei,nt,vn.main,vn.sub)},this),ei!=="none"&&!Hi&&!vn&&(this[ct]?(fe(this),ee.update.call(this,Ft),this[ct]=!1):ee[ei].call(this,Ft)),fi?Ni={type:cn.event||Hr,escapeConnect:Nr,batch:xi}:Ni=xi[0],this[Ge]=!1,!qt&&this._messageCenter.trigger(Ni.type,Ni)}function he(Ft){for(var qt=this._pendingActions;qt.length;){var Hr=qt.shift();_e.call(this,Hr,Ft)}}function ye(Ft){!Ft&&this.trigger("updated")}function Le(Ft,qt){Ft.on("rendered",function(){qt.trigger("rendered"),Ft.animation.isFinished()&&!qt[ct]&&!qt._scheduler.unfinished&&!qt._pendingActions.length&&qt.trigger("finished")})}J.appendData=function(Ft){if(this._disposed){jt(this.id);return}var qt=Ft.seriesIndex,Hr=this.getModel(),Nr=Hr.getSeriesByIndex(qt);Nr.appendData(Ft),this._scheduler.unfinished=!0},J.on=ae("on",!1),J.off=ae("off",!1),J.one=ae("one",!1);function tt(Ft,qt,Hr,Nr){for(var Dr=qt==="component",cn=Dr?Ft._componentsViews:Ft._chartsViews,vn=Dr?Ft._componentsMap:Ft._chartsMap,ei=Ft._zr,qn=Ft._api,fi=0;fi<cn.length;fi++)cn[fi].__alive=!1;Dr?Hr.eachComponent(function(Hi,nt){Hi!=="series"&&xi(nt)}):Hr.eachSeries(xi);function xi(Hi){var nt="_ec_"+Hi.id+"_"+Hi.type,Ne=vn[nt];if(!Ne){var He=G(Hi.type),Xe=Dr?c.getClass(He.main,He.sub):h.getClass(He.sub);Ne=new Xe,Ne.init(Hr,qn),vn[nt]=Ne,cn.push(Ne),ei.add(Ne.group)}Hi.__viewId=Ne.__id=nt,Ne.__alive=!0,Ne.__model=Hi,Ne.group.__ecComponentInfo={mainType:Hi.mainType,index:Hi.componentIndex},!Dr&&Nr.prepareView(Ne,Hi,Hr,qn)}for(var fi=0;fi<cn.length;){var Ni=cn[fi];Ni.__alive?fi++:(!Dr&&Ni.renderTask.dispose(),ei.remove(Ni.group),Ni.dispose(Hr,qn),cn.splice(fi,1),delete vn[Ni.__id],Ni.__id=Ni.group.__ecComponentInfo=null)}}function gt(Ft){Ft.clearColorPalette(),Ft.eachSeries(function(qt){qt.clearColorPalette()})}function at(Ft,qt,Hr,Nr){Fe(Ft,qt,Hr,Nr),P(Ft._chartsViews,function(Dr){Dr.__alive=!1}),mt(Ft,qt,Hr,Nr),P(Ft._chartsViews,function(Dr){Dr.__alive||Dr.remove(qt,Hr)})}function Fe(Ft,qt,Hr,Nr,Dr){P(Dr||Ft._componentsViews,function(cn){var vn=cn.__model;cn.render(vn,qt,Hr,Nr),Bt(vn,cn)})}function mt(Ft,qt,Hr,Nr,Dr){var cn=Ft._scheduler,vn;qt.eachSeries(function(ei){var qn=Ft._chartsMap[ei.__viewId];qn.__alive=!0;var fi=qn.renderTask;cn.updatePayload(fi,Nr),Dr&&Dr.get(ei.uid)&&fi.dirty(),vn|=fi.perform(cn.getPerformArgs(fi)),qn.group.silent=!!ei.get("silent"),Bt(ei,qn),Ot(ei,qn)}),cn.unfinished|=vn,Mt(Ft,qt),C(Ft._zr.dom,qt)}function et(Ft,qt){P(Wt,function(Hr){Hr(Ft,qt)})}var St=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];J._initEvents=function(){P(St,function(Ft){var qt=function(Hr){var Nr=this.getModel(),Dr=Hr.target,cn,vn=Ft==="globalout";if(vn)cn={};else if(Dr&&Dr.dataIndex!=null){var ei=Dr.dataModel||Nr.getSeriesByIndex(Dr.seriesIndex);cn=ei&&ei.getDataParams(Dr.dataIndex,Dr.dataType,Dr)||{}}else Dr&&Dr.eventData&&(cn=v.extend({},Dr.eventData));if(cn){var qn=cn.componentType,fi=cn.componentIndex;(qn==="markLine"||qn==="markPoint"||qn==="markArea")&&(qn="series",fi=cn.seriesIndex);var xi=qn&&fi!=null&&Nr.getComponent(qn,fi),Ni=xi&&this[xi.mainType==="series"?"_chartsMap":"_componentsMap"][xi.__viewId];cn.event=Hr,cn.type=Ft,this._ecEventProcessor.eventInfo={targetEl:Dr,packedEvent:cn,model:xi,view:Ni},this.trigger(Ft,cn)}};qt.zrEventfulCallAtLast=!0,this._zr.on(Ft,qt,this)},this),P(ut,function(Ft,qt){this._messageCenter.on(qt,function(Hr){this.trigger(qt,Hr)},this)},this)},J.isDisposed=function(){return this._disposed},J.clear=function(){if(this._disposed){jt(this.id);return}this.setOption({series:[]},!0)},J.dispose=function(){if(this._disposed){jt(this.id);return}this._disposed=!0,A.setAttribute(this.getDom(),pr,"");var Ft=this._api,qt=this._model;P(this._componentsViews,function(Hr){Hr.dispose(qt,Ft)}),P(this._chartsViews,function(Hr){Hr.dispose(qt,Ft)}),this._zr.dispose(),delete ur[this.id]},v.mixin(pe,l);function jt(Ft){}function Mt(Ft,qt){var Hr=Ft._zr,Nr=Hr.storage,Dr=0;Nr.traverse(function(cn){Dr++}),Dr>qt.get("hoverLayerThreshold")&&!f.node&&qt.eachSeries(function(cn){if(cn.preventUsingHoverLayer)return;var vn=Ft._chartsMap[cn.__viewId];vn.__alive&&vn.group.traverse(function(ei){ei.useHoverLayer=!0})})}function Ot(Ft,qt){var Hr=Ft.get("blendMode")||null;qt.group.traverse(function(Nr){Nr.isGroup||Nr.style.blend!==Hr&&Nr.setStyle("blend",Hr),Nr.eachPendingDisplayable&&Nr.eachPendingDisplayable(function(Dr){Dr.setStyle("blend",Hr)})})}function Bt(Ft,qt){var Hr=Ft.get("z"),Nr=Ft.get("zlevel");qt.group.traverse(function(Dr){Dr.type!=="group"&&(Hr!=null&&(Dr.z=Hr),Nr!=null&&(Dr.zlevel=Nr))})}function Ke(Ft){var qt=Ft._coordSysMgr;return v.extend(new n(Ft),{getCoordinateSystems:v.bind(qt.getCoordinateSystems,qt),getComponentByElement:function(Hr){for(;Hr;){var Nr=Hr.__ecComponentInfo;if(Nr!=null)return Ft._model.getComponent(Nr.mainType,Nr.index);Hr=Hr.parent}}})}function de(){this.eventInfo}de.prototype={constructor:de,normalizeQuery:function(Ft){var qt={},Hr={},Nr={};if(v.isString(Ft)){var Dr=G(Ft);qt.mainType=Dr.main||null,qt.subType=Dr.sub||null}else{var cn=["Index","Name","Id"],vn={name:1,dataIndex:1,dataType:1};v.each(Ft,function(ei,qn){for(var fi=!1,xi=0;xi<cn.length;xi++){var Ni=cn[xi],Hi=qn.lastIndexOf(Ni);if(Hi>0&&Hi===qn.length-Ni.length){var nt=qn.slice(0,Hi);nt!=="data"&&(qt.mainType=nt,qt[Ni.toLowerCase()]=ei,fi=!0)}}vn.hasOwnProperty(qn)&&(Hr[qn]=ei,fi=!0),fi||(Nr[qn]=ei)})}return{cptQuery:qt,dataQuery:Hr,otherQuery:Nr}},filter:function(Ft,qt,Hr){var Nr=this.eventInfo;if(!Nr)return!0;var Dr=Nr.targetEl,cn=Nr.packedEvent,vn=Nr.model,ei=Nr.view;if(!vn||!ei)return!0;var qn=qt.cptQuery,fi=qt.dataQuery;return xi(qn,vn,"mainType")&&xi(qn,vn,"subType")&&xi(qn,vn,"index","componentIndex")&&xi(qn,vn,"name")&&xi(qn,vn,"id")&&xi(fi,cn,"name")&&xi(fi,cn,"dataIndex")&&xi(fi,cn,"dataType")&&(!ei.filterForExposedEvent||ei.filterForExposedEvent(Ft,qt.otherQuery,Dr,cn));function xi(Ni,Hi,nt,Ne){return Ni[nt]==null||Hi[Ne||nt]===Ni[nt]}},afterTrigger:function(){this.eventInfo=null}};var se={},ut={},qe=[],me=[],Wt=[],dr=[],vt={},rr={},ur={},mn={},sr=new Date-0,xr=new Date-0,pr="_echarts_instance_";function Zt(Ft){var qt=0,Hr=1,Nr=2,Dr="__connectUpdateStatus";function cn(vn,ei){for(var qn=0;qn<vn.length;qn++){var fi=vn[qn];fi[Dr]=ei}}P(ut,function(vn,ei){Ft._messageCenter.on(ei,function(qn){if(mn[Ft.group]&&Ft[Dr]!==qt){if(qn&&qn.escapeConnect)return;var fi=Ft.makeActionFromEvent(qn),xi=[];P(ur,function(Ni){Ni!==Ft&&Ni.group===Ft.group&&xi.push(Ni)}),cn(xi,qt),P(xi,function(Ni){Ni[Dr]!==Hr&&Ni.dispatchAction(fi)}),cn(xi,Nr)}})})}function Ct(Ft,qt,Hr){var Nr=Ui(Ft);if(Nr)return Nr;var Dr=new pe(Ft,qt,Hr);return Dr.id="ec_"+sr++,ur[Dr.id]=Dr,A.setAttribute(Ft,pr,Dr.id),Zt(Dr),Dr}function on(Ft){if(v.isArray(Ft)){var qt=Ft;Ft=null,P(qt,function(Hr){Hr.group!=null&&(Ft=Hr.group)}),Ft=Ft||"g_"+xr++,P(qt,function(Hr){Hr.group=Ft})}return mn[Ft]=!0,Ft}function Mn(Ft){mn[Ft]=!1}var Xn=Mn;function oi(Ft){typeof Ft=="string"?Ft=ur[Ft]:Ft instanceof pe||(Ft=Ui(Ft)),Ft instanceof pe&&!Ft.isDisposed()&&Ft.dispose()}function Ui(Ft){return ur[A.getAttribute(Ft,pr)]}function Un(Ft){return ur[Ft]}function Qn(Ft,qt){vt[Ft]=qt}function $t(Ft){me.push(Ft)}function Nt(Ft,qt){Yt(qe,Ft,qt,z)}function Me(Ft){Wt.push(Ft)}function ke(Ft,qt,Hr){typeof qt=="function"&&(Hr=qt,qt="");var Nr=k(Ft)?Ft.type:[Ft,Ft={event:qt}][0];Ft.event=(Ft.event||Nr).toLowerCase(),qt=Ft.event,F(Ue.test(Nr)&&Ue.test(qt)),se[Nr]||(se[Nr]={action:Hr,actionInfo:Ft}),ut[qt]=Nr}function Be(Ft,qt){t.register(Ft,qt)}function it(Ft){var qt=t.get(Ft);if(qt)return qt.getDimensionsInfo?qt.getDimensionsInfo():qt.dimensions.slice()}function yt(Ft,qt){Yt(dr,Ft,qt,te,"layout")}function Tt(Ft,qt){Yt(dr,Ft,qt,re,"visual")}function Yt(Ft,qt,Hr,Nr,Dr){(B(qt)||k(qt))&&(Hr=qt,qt=Nr);var cn=T.wrapStageHandler(Hr,Dr);return cn.__prio=qt,cn.__raw=Hr,Ft.push(cn),cn}function Pr(Ft,qt){rr[Ft]=qt}function $r(Ft){return r.extend(Ft)}function An(Ft){return c.extend(Ft)}function zt(Ft){return s.extend(Ft)}function At(Ft){return h.extend(Ft)}function wt(Ft){v.$override("createCanvas",Ft)}function vr(Ft,qt,Hr){I.registerMap(Ft,qt,Hr)}function Jt(Ft){var qt=I.retrieveMap(Ft);return qt&&qt[0]&&{geoJson:qt[0].geoJSON,specialAreas:qt[0].specialAreas}}Tt(le,E),$t(e),Nt(Q,u),Pr("default",_),ke({type:"highlight",event:"highlight",update:"highlight"},v.noop),ke({type:"downplay",event:"downplay",update:"downplay"},v.noop),Qn("light",S),Qn("dark",O);var Ut={};D.version=M,D.dependencies=j,D.PRIORITY=Je,D.init=Ct,D.connect=on,D.disConnect=Mn,D.disconnect=Xn,D.dispose=oi,D.getInstanceByDom=Ui,D.getInstanceById=Un,D.registerTheme=Qn,D.registerPreprocessor=$t,D.registerProcessor=Nt,D.registerPostUpdate=Me,D.registerAction=ke,D.registerCoordinateSystem=Be,D.getCoordinateSystemDimensions=it,D.registerLayout=yt,D.registerVisual=Tt,D.registerLoading=Pr,D.extendComponentModel=$r,D.extendComponentView=An,D.extendSeriesModel=zt,D.extendChartView=At,D.setCanvasCreator=wt,D.registerMap=vr,D.getMap=Jt,D.dataTool=Ut;var tr=i("txkQ");(function(){for(var Ft in tr)tr.hasOwnProperty(Ft)&&(D[Ft]=tr[Ft])})()},Pw59:function(R,D,i){"use strict";var y=i("q1tI"),p=i.n(y),x=Object(y.createContext)({});D.a=x},Q7if:function(R,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"}}}});R.exports=p},Q9mQ:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("UADf"),v=i.n(x)},"QB+1":function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("Ywus"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},QBsz:function(R,D){var i=typeof Float32Array=="undefined"?Array:Float32Array;function y(T,S){var O=new i(2);return T==null&&(T=0),S==null&&(S=0),O[0]=T,O[1]=S,O}function p(T,S){return T[0]=S[0],T[1]=S[1],T}function x(T){var S=new i(2);return S[0]=T[0],S[1]=T[1],S}function v(T,S,O){return T[0]=S,T[1]=O,T}function m(T,S,O){return T[0]=S[0]+O[0],T[1]=S[1]+O[1],T}function f(T,S,O,I){return T[0]=S[0]+O[0]*I,T[1]=S[1]+O[1]*I,T}function d(T,S,O){return T[0]=S[0]-O[0],T[1]=S[1]-O[1],T}function l(T){return Math.sqrt(n(T))}var o=l;function n(T){return T[0]*T[0]+T[1]*T[1]}var t=n;function a(T,S,O){return T[0]=S[0]*O[0],T[1]=S[1]*O[1],T}function e(T,S,O){return T[0]=S[0]/O[0],T[1]=S[1]/O[1],T}function u(T,S){return T[0]*S[0]+T[1]*S[1]}function r(T,S,O){return T[0]=S[0]*O,T[1]=S[1]*O,T}function s(T,S){var O=l(S);return O===0?(T[0]=0,T[1]=0):(T[0]=S[0]/O,T[1]=S[1]/O),T}function c(T,S){return Math.sqrt((T[0]-S[0])*(T[0]-S[0])+(T[1]-S[1])*(T[1]-S[1]))}var h=c;function g(T,S){return(T[0]-S[0])*(T[0]-S[0])+(T[1]-S[1])*(T[1]-S[1])}var A=g;function b(T,S){return T[0]=-S[0],T[1]=-S[1],T}function w(T,S,O,I){return T[0]=S[0]+I*(O[0]-S[0]),T[1]=S[1]+I*(O[1]-S[1]),T}function E(T,S,O){var I=S[0],F=S[1];return T[0]=O[0]*I+O[2]*F+O[4],T[1]=O[1]*I+O[3]*F+O[5],T}function C(T,S,O){return T[0]=Math.min(S[0],O[0]),T[1]=Math.min(S[1],O[1]),T}function _(T,S,O){return T[0]=Math.max(S[0],O[0]),T[1]=Math.max(S[1],O[1]),T}D.create=y,D.copy=p,D.clone=x,D.set=v,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=A,D.negate=b,D.lerp=w,D.applyTransform=E,D.min=C,D.max=_},"QO+J":function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=x(i("NohK")),p=i("24YM");function x(m){return m&&m.__esModule?m:{default:m}}var v=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=v},"QQZ/":function(R,D,i){var y=i("Sq3C"),p=i("Z1HP"),x=i("Sxd8"),v=i("dt0z");function m(f,d,l){f=v(f),d=x(d);var o=d?p(f):0;return d&&o<d?y(d-o,l)+f:f}R.exports=m},QUw5:function(R,D,i){var y=i("OlYY"),p=y.extend({type:"dataZoom.select"});R.exports=p},QV2g:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(){for(var v,m=[],f=0;f<256;f++){v=f;for(var d=0;d<8;d++)v=v&1?3988292384^v>>>1:v>>>1;m[f]=v}return m}var p=y();function x(v,m,f,d){var l=p,o=d+f;v^=-1;for(var n=d;n<o;n++)v=v>>>8^l[(v^m[n])&255];return v^-1}},QbM5:function(R,D,i){},Qe9p:function(R,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 x(S){return S=Math.round(S),S<0?0:S>255?255:S}function v(S){return S=Math.round(S),S<0?0:S>360?360:S}function m(S){return S<0?0:S>1?1:S}function f(S){return S.length&&S.charAt(S.length-1)==="%"?x(parseFloat(S)/100*255):x(parseInt(S,10))}function d(S){return S.length&&S.charAt(S.length-1)==="%"?m(parseFloat(S)/100):m(parseFloat(S))}function l(S,O,I){return I<0?I+=1:I>1&&(I-=1),I*6<1?S+(O-S)*I*6:I*2<1?O:I*3<2?S+(O-S)*(2/3-I)*6:S}function o(S,O,I){return S+(O-S)*I}function n(S,O,I,F,P){return S[0]=O,S[1]=I,S[2]=F,S[3]=P,S}function t(S,O){return S[0]=O[0],S[1]=O[1],S[2]=O[2],S[3]=O[3],S}var a=new y(20),e=null;function u(S,O){e&&t(e,O),e=a.put(S,e||O.slice())}function r(S,O){if(!S)return;O=O||[];var I=a.get(S);if(I)return t(O,I);S=S+"";var F=S.replace(/ /g,"").toLowerCase();if(F in p)return t(O,p[F]),u(S,O),O;if(F.charAt(0)==="#"){if(F.length===4){var P=parseInt(F.substr(1),16);if(!(P>=0&&P<=4095)){n(O,0,0,0,1);return}return n(O,(P&3840)>>4|(P&3840)>>8,P&240|(P&240)>>4,P&15|(P&15)<<4,1),u(S,O),O}else if(F.length===7){var P=parseInt(F.substr(1),16);if(!(P>=0&&P<=16777215)){n(O,0,0,0,1);return}return n(O,(P&16711680)>>16,(P&65280)>>8,P&255,1),u(S,O),O}return}var B=F.indexOf("("),k=F.indexOf(")");if(B!==-1&&k+1===F.length){var G=F.substr(0,B),M=F.substr(B+1,k-(B+1)).split(","),j=1;switch(G){case"rgba":if(M.length!==4){n(O,0,0,0,1);return}j=d(M.pop());case"rgb":if(M.length!==3){n(O,0,0,0,1);return}return n(O,f(M[0]),f(M[1]),f(M[2]),j),u(S,O),O;case"hsla":if(M.length!==4){n(O,0,0,0,1);return}return M[3]=d(M[3]),s(M,O),u(S,O),O;case"hsl":if(M.length!==3){n(O,0,0,0,1);return}return s(M,O),u(S,O),O;default:return}}n(O,0,0,0,1);return}function s(S,O){var I=(parseFloat(S[0])%360+360)%360/360,F=d(S[1]),P=d(S[2]),B=P<=.5?P*(F+1):P+F-P*F,k=P*2-B;return O=O||[],n(O,x(l(k,B,I+1/3)*255),x(l(k,B,I)*255),x(l(k,B,I-1/3)*255),1),S.length===4&&(O[3]=S[3]),O}function c(S){if(!S)return;var O=S[0]/255,I=S[1]/255,F=S[2]/255,P=Math.min(O,I,F),B=Math.max(O,I,F),k=B-P,G=(B+P)/2,M,j;if(k===0)M=0,j=0;else{G<.5?j=k/(B+P):j=k/(2-B-P);var K=((B-O)/6+k/2)/k,z=((B-I)/6+k/2)/k,V=((B-F)/6+k/2)/k;O===B?M=V-z:I===B?M=1/3+K-V:F===B&&(M=2/3+z-K),M<0&&(M+=1),M>1&&(M-=1)}var Q=[M*360,j,G];return S[3]!=null&&Q.push(S[3]),Q}function h(S,O){var I=r(S);if(I){for(var F=0;F<3;F++)O<0?I[F]=I[F]*(1-O)|0:I[F]=(255-I[F])*O+I[F]|0,I[F]>255?I[F]=255:S[F]<0&&(I[F]=0);return T(I,I.length===4?"rgba":"rgb")}}function g(S){var O=r(S);if(O)return((1<<24)+(O[0]<<16)+(O[1]<<8)+ +O[2]).toString(16).slice(1)}function A(S,O,I){if(!(O&&O.length)||!(S>=0&&S<=1))return;I=I||[];var F=S*(O.length-1),P=Math.floor(F),B=Math.ceil(F),k=O[P],G=O[B],M=F-P;return I[0]=x(o(k[0],G[0],M)),I[1]=x(o(k[1],G[1],M)),I[2]=x(o(k[2],G[2],M)),I[3]=m(o(k[3],G[3],M)),I}var b=A;function w(S,O,I){if(!(O&&O.length)||!(S>=0&&S<=1))return;var F=S*(O.length-1),P=Math.floor(F),B=Math.ceil(F),k=r(O[P]),G=r(O[B]),M=F-P,j=T([x(o(k[0],G[0],M)),x(o(k[1],G[1],M)),x(o(k[2],G[2],M)),m(o(k[3],G[3],M))],"rgba");return I?{color:j,leftIndex:P,rightIndex:B,value:F}:j}var E=w;function C(S,O,I,F){if(S=r(S),S)return S=c(S),O!=null&&(S[0]=v(O)),I!=null&&(S[1]=d(I)),F!=null&&(S[2]=d(F)),T(s(S),"rgba")}function _(S,O){if(S=r(S),S&&O!=null)return S[3]=m(O),T(S,"rgba")}function T(S,O){if(!S||!S.length)return;var I=S[0]+","+S[1]+","+S[2];return(O==="rgba"||O==="hsva"||O==="hsla")&&(I+=","+S[3]),O+"("+I+")"}D.parse=r,D.lift=h,D.toHex=g,D.fastLerp=A,D.fastMapToColor=b,D.lerp=w,D.mapToColor=E,D.modifyHSL=C,D.modifyAlpha=_,D.stringify=T},Qi1f:function(R,D,i){"use strict";i.d(D,"g",function(){return T}),i.d(D,"c",function(){return S}),i.d(D,"a",function(){return I}),i.d(D,"b",function(){return F}),i.d(D,"d",function(){return P}),i.d(D,"e",function(){return B}),i.d(D,"f",function(){return G});var y=i("VTBJ"),p=i("U8pU"),x=i("AJpP"),v=i("q1tI"),m=i.n(v),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 M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=M.mark;return j?j.startsWith("data-")?j:"data-".concat(j):t}function u(M){if(M.attachTo)return M.attachTo;var j=document.querySelector("head");return j||document.body}function r(M){return M==="queue"?"prependQueue":M?"prepend":"append"}function s(M){return Array.from((a.get(M)||M).children).filter(function(j){return j.tagName==="STYLE"})}function c(M){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(d.a)())return null;var K=j.csp,z=j.prepend,V=j.priority,Q=V===void 0?0:V,X=r(z),te=X==="prependQueue",$=document.createElement("style");$.setAttribute(o,X),te&&Q&&$.setAttribute(n,"".concat(Q)),K!=null&&K.nonce&&($.nonce=K==null?void 0:K.nonce),$.innerHTML=M;var le=u(j),re=le.firstChild;if(z){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(M){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=u(j);return s(K).find(function(z){return z.getAttribute(e(j))===M})}function g(M){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=h(M,j);if(K){var z=u(j);z.removeChild(K)}}function A(M,j){var K=a.get(M);if(!K||!Object(l.a)(document,K)){var z=c("",j),V=z.parentNode;a.set(M,V),M.removeChild(z)}}function b(){a.clear()}function w(M,j){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=u(K);A(z,K);var V=h(j,K);if(V){var Q,X;if((Q=K.csp)!==null&&Q!==void 0&&Q.nonce&&V.nonce!==((X=K.csp)===null||X===void 0?void 0:X.nonce)){var te;V.nonce=(te=K.csp)===null||te===void 0?void 0:te.nonce}return V.innerHTML!==M&&(V.innerHTML=M),V}var $=c(M,K);return $.setAttribute(e(K),j),$}var E=i("Pw59"),C=i("u6S6"),_=i.n(C);function T(M,j){Object(f.a)(M,"[@ant-design/icons] ".concat(j))}function S(M){return Object(p.a)(M)==="object"&&typeof M.name=="string"&&typeof M.theme=="string"&&(Object(p.a)(M.icon)==="object"||typeof M.icon=="function")}function O(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(M).reduce(function(j,K){var z=M[K];switch(K){case"class":j.className=z,delete j.class;break;default:delete j[K],j[_()(K)]=z}return j},{})}function I(M,j,K){return K?m.a.createElement(M.tag,Object(y.a)(Object(y.a)({key:j},O(M.attrs)),K),(M.children||[]).map(function(z,V){return I(z,"".concat(j,"-").concat(M.tag,"-").concat(V))})):m.a.createElement(M.tag,Object(y.a)({key:j},O(M.attrs)),(M.children||[]).map(function(z,V){return I(z,"".concat(j,"-").concat(M.tag,"-").concat(V))}))}function F(M){return Object(x.generate)(M)[0]}function P(M){return M?Array.isArray(M)?M:[M]:[]}var B={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},k=`
|
|
|
.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);
|
|
|
}
|
|
|
}
|
|
|
`,G=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k,K=Object(v.useContext)(E.a),z=K.csp;Object(v.useEffect)(function(){w(j,"@ant-design-icons",{prepend:!0,csp:z})},[])}},QkVE:function(R,D,i){var y=i("EpBk");function p(x,v){var m=x.__data__;return y(v)?m[typeof v=="string"?"string":"hash"]:m.map}R.exports=p},QoRX:function(R,D){function i(y,p){for(var x=-1,v=y==null?0:y.length;++x<v;)if(p(y[x],x,y))return!0;return!1}R.exports=i},QqLw:function(R,D,i){var y=i("tadb"),p=i("ebwN"),x=i("HOxn"),v=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(x),c=d(v),h=d(m),g=f;(y&&g(new y(new ArrayBuffer(1)))!=e||p&&g(new p)!=l||x&&g(x.resolve())!=n||v&&g(new v)!=t||m&&g(new m)!=a)&&(g=function(A){var b=f(A),w=b==o?A.constructor:void 0,E=w?d(w):"";if(E)switch(E){case u:return e;case r:return l;case s:return n;case c:return t;case h:return a}return b}),R.exports=g},Qs3X:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("X+im"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},Qs9O:function(R,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(R,D){var i=function(x){this.colorStops=x||[]};i.prototype={constructor:i,addColorStop:function(x,v){this.colorStops.push({offset:x,color:v})}};var y=i;R.exports=y},Qvb6:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("ItGF"),v=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,A=new l.Rect({shape:{x:-1,y:-1,width:2,height:2}}),b=y.extendComponentView({type:"tooltip",init:function(O,I){if(x.node)return;var F=O.getComponent("tooltip"),P=F.get("renderMode");this._renderMode=s(P);var B;this._renderMode==="html"?(B=new v(I.getDom(),I,{appendToBody:F.get("appendToBody",!0)}),this._newLine="<br/>"):(B=new m(I),this._newLine=`
|
|
|
`),this._tooltipContent=B},render:function(O,I,F){if(x.node)return;this.group.removeAll(),this._tooltipModel=O,this._ecModel=I,this._api=F,this._lastDataByCoordSys=null,this._alwaysShowContent=O.get("alwaysShowContent");var P=this._tooltipContent;P.update(),P.setEnterable(O.get("enterable")),this._initGlobalListener(),this._keepShow()},_initGlobalListener:function(){var O=this._tooltipModel,I=O.get("triggerOn");a.register("itemTooltip",this._api,c(function(F,P,B){I!=="none"&&(I.indexOf(F)>=0?this._tryShow(P,B):F==="leave"&&this._hide(B))},this))},_keepShow:function(){var O=this._tooltipModel,I=this._ecModel,F=this._api;if(this._lastX!=null&&this._lastY!=null&&O.get("triggerOn")!=="none"){var P=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!F.isDisposed()&&P.manuallyShowTip(O,I,F,{x:P._lastX,y:P._lastY})})}},manuallyShowTip:function(O,I,F,P){if(P.from===this.uid||x.node)return;var B=E(P,F);this._ticket="";var k=P.dataByCoordSys;if(P.tooltip&&P.x!=null&&P.y!=null){var G=A;G.position=[P.x,P.y],G.update(),G.tooltip=P.tooltip,this._tryShow({offsetX:P.x,offsetY:P.y,target:G},B)}else if(k)this._tryShow({offsetX:P.x,offsetY:P.y,position:P.position,dataByCoordSys:P.dataByCoordSys,tooltipOption:P.tooltipOption},B);else if(P.seriesIndex!=null){if(this._manuallyAxisShowTip(O,I,F,P))return;var M=o(P,I),j=M.point[0],K=M.point[1];j!=null&&K!=null&&this._tryShow({offsetX:j,offsetY:K,position:P.position,target:M.el},B)}else P.x!=null&&P.y!=null&&(F.dispatchAction({type:"updateAxisPointer",x:P.x,y:P.y}),this._tryShow({offsetX:P.x,offsetY:P.y,position:P.position,target:F.getZr().findHover(P.x,P.y).target},B))},manuallyHideTip:function(O,I,F,P){var B=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&B.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,P.from!==this.uid&&this._hide(E(P,F))},_manuallyAxisShowTip:function(O,I,F,P){var B=P.seriesIndex,k=P.dataIndex,G=I.getComponent("axisPointer").coordSysAxesInfo;if(B==null||k==null||G==null)return;var M=I.getSeriesByIndex(B);if(!M)return;var j=M.getData(),O=w([j.getItemModel(k),M,(M.coordinateSystem||{}).model,O]);return O.get("trigger")!=="axis"?void 0:(F.dispatchAction({type:"updateAxisPointer",seriesIndex:B,dataIndex:k,position:P.position}),!0)},_tryShow:function(O,I){var F=O.target,P=this._tooltipModel;if(!P)return;this._lastX=O.offsetX,this._lastY=O.offsetY;var B=O.dataByCoordSys;B&&B.length?this._showAxisTooltip(B,O):F&&F.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(O,F,I)):F&&F.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(O,F,I)):(this._lastDataByCoordSys=null,this._hide(I))},_showOrMove:function(O,I){var F=O.get("showDelay");I=p.bind(I,this),clearTimeout(this._showTimout),F>0?this._showTimout=setTimeout(I,F):I()},_showAxisTooltip:function(O,I){var F=this._ecModel,P=this._tooltipModel,B=[I.offsetX,I.offsetY],k=[],G=[],M=w([I.tooltipOption,P]),j=this._renderMode,K=this._newLine,z={};h(O,function(Q){h(Q.dataByAxis,function(X){var te=F.getComponent(X.axisDim+"Axis",X.axisIndex),$=X.value,le=[];if(!te||$==null)return;var re=u.getValueLabel($,te.axis,F,X.seriesDataIndices,X.valueLabelOpt);p.each(X.seriesDataIndices,function(Re){var Pe=F.getSeriesByIndex(Re.seriesIndex),Je=Re.dataIndexInside,Ge=Pe&&Pe.getDataParams(Je);if(Ge.axisDim=X.axisDim,Ge.axisIndex=X.axisIndex,Ge.axisType=X.axisType,Ge.axisId=X.axisId,Ge.axisValue=e.getAxisRawValue(te.axis,$),Ge.axisValueLabel=re,Ge){G.push(Ge);var ct=Pe.formatTooltip(Je,!0,null,j),Ue;if(p.isObject(ct)){Ue=ct.html;var ae=ct.markers;p.merge(z,ae)}else Ue=ct;le.push(Ue)}});var Se=re;j!=="html"?k.push(le.join(K)):k.push((Se?f.encodeHTML(Se)+K:"")+le.join(K))})},this),k.reverse(),k=k.join(this._newLine+this._newLine);var V=I.position;this._showOrMove(M,function(){this._updateContentNotChangedOnAxis(O)?this._updatePosition(M,V,B[0],B[1],this._tooltipContent,G):this._showTooltipContent(M,k,G,Math.random(),B[0],B[1],V,void 0,z)})},_showSeriesItemTooltip:function(O,I,F){var P=this._ecModel,B=I.seriesIndex,k=P.getSeriesByIndex(B),G=I.dataModel||k,M=I.dataIndex,j=I.dataType,K=G.getData(j),z=w([K.getItemModel(M),G,k&&(k.coordinateSystem||{}).model,this._tooltipModel]),V=z.get("trigger");if(V!=null&&V!=="item")return;var Q=G.getDataParams(M,j),X=G.formatTooltip(M,!1,j,this._renderMode),te,$;p.isObject(X)?(te=X.html,$=X.markers):(te=X,$=null);var le="item_"+G.name+"_"+M;this._showOrMove(z,function(){this._showTooltipContent(z,te,Q,le,O.offsetX,O.offsetY,O.position,O.target,$)}),F({type:"showTip",dataIndexInside:M,dataIndex:K.getRawIndex(M),seriesIndex:B,from:this.uid})},_showComponentItemTooltip:function(O,I,F){var P=I.tooltip;if(typeof P=="string"){var B=P;P={content:B,formatter:B}}var k=new t(P,this._tooltipModel,this._ecModel),G=k.get("content"),M=Math.random();this._showOrMove(k,function(){this._showTooltipContent(k,G,k.get("formatterParams")||{},M,O.offsetX,O.offsetY,O.position,I)}),F({type:"showTip",from:this.uid})},_showTooltipContent:function(O,I,F,P,B,k,G,M,j){if(this._ticket="",!O.get("showContent")||!O.get("show"))return;var K=this._tooltipContent,z=O.get("formatter");G=G||O.get("position");var V=I;if(z&&typeof z=="string")V=f.formatTpl(z,F,!0);else if(typeof z=="function"){var Q=c(function(X,te){X===this._ticket&&(K.setContent(te,j,O),this._updatePosition(O,G,B,k,K,F,M))},this);this._ticket=P,V=z(F,P,Q)}K.setContent(V,j,O),K.show(O),this._updatePosition(O,G,B,k,K,F,M)},_updatePosition:function(O,I,F,P,B,k,G){var M=this._api.getWidth(),j=this._api.getHeight();I=I||O.get("position");var K=B.getSize(),z=O.get("align"),V=O.get("verticalAlign"),Q=G&&G.getBoundingRect().clone();if(G&&Q.applyTransform(G.transform),typeof I=="function"&&(I=I([F,P],k,B.el,Q,{viewSize:[M,j],contentSize:K.slice()})),p.isArray(I))F=g(I[0],M),P=g(I[1],j);else if(p.isObject(I)){I.width=K[0],I.height=K[1];var X=n.getLayoutRect(I,{width:M,height:j});F=X.x,P=X.y,z=null,V=null}else if(typeof I=="string"&&G){var te=T(I,Q,K);F=te[0],P=te[1]}else{var te=C(F,P,B,M,j,z?null:20,V?null:20);F=te[0],P=te[1]}if(z&&(F-=S(z)?K[0]/2:z==="right"?K[0]:0),V&&(P-=S(V)?K[1]/2:V==="bottom"?K[1]:0),O.get("confine")){var te=_(F,P,B,M,j);F=te[0],P=te[1]}B.moveTo(F,P)},_updateContentNotChangedOnAxis:function(O){var I=this._lastDataByCoordSys,F=!!I&&I.length===O.length;return F&&h(I,function(P,B){var k=P.dataByAxis||{},G=O[B]||{},M=G.dataByAxis||[];F&=k.length===M.length,F&&h(k,function(j,K){var z=M[K]||{},V=j.seriesDataIndices||[],Q=z.seriesDataIndices||[];F&=j.value===z.value&&j.axisType===z.axisType&&j.axisId===z.axisId&&V.length===Q.length,F&&h(V,function(X,te){var $=Q[te];F&=X.seriesIndex===$.seriesIndex&&X.dataIndex===$.dataIndex})})}),this._lastDataByCoordSys=O,!!F},_hide:function(O){this._lastDataByCoordSys=null,O({type:"hideTip",from:this.uid})},dispose:function(O,I){if(x.node)return;this._tooltipContent.dispose(),a.unregister("itemTooltip",I)}});function w(O){for(var I=O.pop();O.length;){var F=O.pop();F&&(t.isInstance(F)&&(F=F.get("tooltip",!0)),typeof F=="string"&&(F={formatter:F}),I=new t(F,I,I.ecModel))}return I}function E(O,I){return O.dispatchAction||p.bind(I.dispatchAction,I)}function C(O,I,F,P,B,k,G){var M=F.getOuterSize(),j=M.width,K=M.height;return k!=null&&(O+j+k>P?O-=j+k:O+=k),G!=null&&(I+K+G>B?I-=K+G:I+=G),[O,I]}function _(O,I,F,P,B){var k=F.getOuterSize(),G=k.width,M=k.height;return O=Math.min(O+G,P)-G,I=Math.min(I+M,B)-M,O=Math.max(O,0),I=Math.max(I,0),[O,I]}function T(O,I,F){var P=F[0],B=F[1],k=5,G=0,M=0,j=I.width,K=I.height;switch(O){case"inside":G=I.x+j/2-P/2,M=I.y+K/2-B/2;break;case"top":G=I.x+j/2-P/2,M=I.y-B-k;break;case"bottom":G=I.x+j/2-P/2,M=I.y+K+k;break;case"left":G=I.x-P-k,M=I.y+K/2-B/2;break;case"right":G=I.x+j+k,M=I.y+K/2-B/2}return[G,M]}function S(O){return O==="center"||O==="middle"}R.exports=b},Qxkt:function(R,D,i){var y=i("bYtY"),p=i("ItGF"),x=i("4NO4"),v=x.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=v();function u(h,g,A){this.parentModel=g,this.ecModel=A,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 A=this.option,b=A==null?A:A[h],w=!g&&s(this,h);return b==null&&w&&(b=w.getShallow(h)),b},getModel:function(h,g){var A=h==null?this.option:r(this.option,h=this.parsePath(h)),b;return g=g||(b=s(this,h))&&b.getModel(h),new u(A,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,A){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&&A&&(h=A.get(g)),h}function s(h,g){var A=e(h).getParent;return A?A.call(h,g):h.parentModel}f(u),d(u),a(u,l),a(u,o),a(u,n),a(u,t);var c=u;R.exports=c},QyFq:function(R,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(R,D,i){var y=i("S/Yl"),p=i("IDmD");function x(v,m){var f=[];return v.eachComponent("singleAxis",function(d,l){var o=new y(d,v,m);o.name="single_"+l,o.resize(d,m),d.coordinateSystem=o,f.push(o)}),v.eachSeries(function(d){if(d.get("coordinateSystem")==="singleAxis"){var l=v.queryComponents({mainType:"singleAxis",index:d.get("singleAxisIndex"),id:d.get("singleAxisId")})[0];d.coordinateSystem=l&&l.coordinateSystem}}),f}p.register("single",{create:x,dimensions:y.prototype.dimensions})},R4Th:function(R,D,i){var y=i("ProS"),p=i("9wZj"),x=i("yO87"),v=i("Fofx"),m=i("h8O9"),f=y.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new p(x)},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=v.clone(l.getRoamTransform()),this.group.decomposeTransform())},remove:function(d,l){this._symbolDraw&&this._symbolDraw.remove(l)},dispose:function(){}});R.exports=f},R9oj:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("pwpV"),v=i.n(x)},RBEP:function(R,D,i){for(var y=i("ProS"),p=i("VaxA"),x=function(){},v=["treemapZoomToNode","treemapRender","treemapMove"],m=0;m<v.length;m++)y.registerAction({type:v[m],update:"updateView"},x);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(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="ExclamationCircleOutlined";var d=D.a=p.forwardRef(f)},RDYZ:function(R,D,i){var y=i("dMvE");function p(v){this._target=v.target,this._life=v.life||1e3,this._delay=v.delay||0,this._initialized=!1,this.loop=v.loop==null?!1:v.loop,this.gap=v.gap||0,this.easing=v.easing||"Linear",this.onframe=v.onframe,this.ondestroy=v.ondestroy,this.onrestart=v.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 x=p;R.exports=x},RELg:function(R,D,i){var y=i("MFOe"),p=y.Global;R.exports={name:"oldIE-userDataStorage",write:d,read:l,each:o,remove:n,clearAll:t};var x="storejs",v=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(x)})}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(x)})}function t(){m(function(r){var s=r.XMLDocument.documentElement.attributes;r.load(x);for(var c=s.length-1;c>=0;c--)r.removeAttribute(s[c].name);r.save(x)})}var a=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function e(r){return r.replace(/^\d/,"___$&").replace(a,"___")}function u(){if(!v||!v.documentElement||!v.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=v.createElement("div"),s=v.body}return function(g){var A=[].slice.call(arguments,0);A.unshift(h),s.appendChild(h),h.addBehavior("#default#userData"),h.load(x),g.apply(this,A),s.removeChild(h);return}}},RPvy:function(R,D,i){var y=i("ProS"),p=i("VaxA"),x="sunburstRootToNode";y.registerAction({type:x,update:"updateView"},function(f,d){d.eachComponent({mainType:"series",subType:"sunburst",query:f},l);function l(o,n){var t=p.retrieveTargetInfo(f,[x],o);if(t){var a=o.getViewRoot();a&&(f.direction=p.aboveViewRoot(a,t.node)?"rollUp":"drillDown"),o.resetViewRoot(t.node)}}});var v="sunburstHighlight";y.registerAction({type:v,update:"updateView"},function(f,d){d.eachComponent({mainType:"series",subType:"sunburst",query:f},l);function l(o,n){var t=p.retrieveTargetInfo(f,[v],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(R,D,i){var y=i("IwbS"),p=i("bYtY");function x(f,d,l){y.Group.call(this),this._createPolyline(f,d,l)}var v=x.prototype;v._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)},v.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)},v._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)},v.updateLayout=function(f,d){var l=this.childAt(0);l.setShape("points",f.getItemLayout(d))},p.inherits(x,y.Group);var m=x;R.exports=m},RXMa:function(R,D,i){var y=i("y+Vt"),p=y.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(v,m){var f=m.cx,d=m.cy,l=Math.PI*2;v.moveTo(f+m.r,d),v.arc(f,d,m.r,0,l,!1),v.moveTo(f+m.r0,d),v.arc(f,d,m.r0,0,l,!0)}});R.exports=p},RZPm:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="FileOutlined";var n=v.forwardRef(o);D.default=n},RlCK:function(R,D,i){var y=i("ProS"),p=i("bYtY");function x(v,m,f){var d={},l=v==="toggleSelected",o;return f.eachComponent("legend",function(n){l&&o!=null?n[o?"select":"unSelect"](m.name):v==="allSelect"||v==="inverseSelect"?n[v]():(n[v](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})}),v==="allSelect"||v==="inverseSelect"?{selected:d}:{name:m.name,selected:d}}y.registerAction("legendToggleSelect","legendselectchanged",p.curry(x,"toggleSelected")),y.registerAction("legendAllSelect","legendselectall",p.curry(x,"allSelect")),y.registerAction("legendInverseSelect","legendinverseselect",p.curry(x,"inverseSelect")),y.registerAction("legendSelect","legendselected",p.curry(x,"select")),y.registerAction("legendUnSelect","legendunselected",p.curry(x,"unSelect"))},RotF:function(R,D,i){R.exports=i("LSTS")},Rx6q:function(R,D){function i(y){var p=y.getRect(),x=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:x.start,end:x.end,weeks:x.weeks,dayCount:x.allDay}},api:{coord:function(v,m){return y.dataToPoint(v,m)}}}}R.exports=i},"S/Yl":function(R,D,i){var y=i("Zvw2"),p=i("aX7z"),x=i("+TT/"),v=x.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=v({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;R.exports=l},S6kV:function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.mode.OFB=function(){var p=y.lib.BlockCipherMode.extend(),x=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=x,p}(),y.mode.OFB})},"SA+Z":function(R,D,i){var y=i("wTVA"),p=i("EbDI"),x=i("ZhPi"),v=i("wkBT");function m(f){return y(f)||p(f)||x(f)||v()}R.exports=m,R.exports.__esModule=!0,R.exports.default=R.exports},"SA4+":function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("ProS"),v=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=x.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"),A=s.getAxis("y");c=g.getBandWidth(),h=A.getBandWidth()}for(var b=this.group,w=t.getData(),E="itemStyle",C="emphasis.itemStyle",_="label",T="emphasis.label",S=t.getModel(E).getItemStyle(["color"]),O=t.getModel(C).getItemStyle(),I=t.getModel(_),F=t.getModel(T),P=s.type,B=P==="cartesian2d"?[w.mapDimension("x"),w.mapDimension("y"),w.mapDimension("value")]:[w.mapDimension("time"),w.mapDimension("value")],k=e;k<u;k++){var G;if(P==="cartesian2d"){if(isNaN(w.get(B[2],k)))continue;var M=s.dataToPoint([w.get(B[0],k),w.get(B[1],k)]);G=new v.Rect({shape:{x:Math.floor(Math.round(M[0])-c/2),y:Math.floor(Math.round(M[1])-h/2),width:Math.ceil(c),height:Math.ceil(h)},style:{fill:w.getItemVisual(k,"color"),opacity:w.getItemVisual(k,"opacity")}})}else{if(isNaN(w.get(B[1],k)))continue;G=new v.Rect({z2:1,shape:s.dataToRect([w.get(B[0],k)]).contentShape,style:{fill:w.getItemVisual(k,"color"),opacity:w.getItemVisual(k,"opacity")}})}var j=w.getItemModel(k);w.hasItemOption&&(S=j.getModel(E).getItemStyle(["color"]),O=j.getModel(C).getItemStyle(),I=j.getModel(_),F=j.getModel(T));var K=t.getRawValue(k),z="-";K&&K[2]!=null&&(z=K[2]),v.setLabelStyle(S,O,I,F,{labelFetcher:t,labelDataIndex:k,defaultText:z,isRectText:!0}),G.setStyle(S),v.setHoverStyle(G,w.hasItemOption?O:f.extend({},O)),G.incremental=r,r&&(G.useHoverLayer=!0),b.add(G),w.setItemGraphicEl(k,G)}},_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(),A=t.getRoamTransform();g.applyTransform(A);var b=Math.max(g.x,0),w=Math.max(g.y,0),E=Math.min(g.width+g.x,u.getWidth()),C=Math.min(g.height+g.y,u.getHeight()),_=E-b,T=C-w,S=[c.mapDimension("lng"),c.mapDimension("lat"),c.mapDimension("value")],O=c.mapArray(S,function(B,k,G){var M=t.dataToPoint([B,k]);return M[0]-=b,M[1]-=w,M.push(G),M}),I=e.getExtent(),F=e.type==="visualMap.continuous"?l(I,e.option.range):d(I,e.getPieceList(),e.option.selected);h.update(O,_,T,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:s.color.getColorMapper()},F);var P=new v.Image({style:{width:_,height:T,x:b,y:w,image:h.canvas},silent:!0});this.group.add(P)},dispose:function(){}});R.exports=n},SA8n:function(R,D,i){var y=i("Sj9i"),p=i("QBsz"),x=i("U/Mo"),v=x.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,A,b=r*r,w=.1,E=.1;E<=.9;E+=.1){m[0]=l(s[0],c[0],h[0],E),m[1]=l(s[1],c[1],h[1],E);var C=n(o(m,u)-b);C<g&&(g=C,A=E)}for(var _=0;_<32;_++){var T=A+w;f[0]=l(s[0],c[0],h[0],A),f[1]=l(s[1],c[1],h[1],A),d[0]=l(s[0],c[0],h[0],T),d[1]=l(s[1],c[1],h[1],T);var C=o(f,u)-b;if(n(C)<.01)break;var S=o(d,u)-b;w/=2,C<0?S>=0?A=A+w:A=A-w:S>=0?A=A-w:A=A+w}return A}function a(e,u){var r=[],s=y.quadraticSubdivide,c=[[],[],[]],h=[[],[]],g=[];u/=2,e.eachEdge(function(A,b){var w=A.getLayout(),E=A.getVisual("fromSymbol"),C=A.getVisual("toSymbol");w.__original||(w.__original=[p.clone(w[0]),p.clone(w[1])],w[2]&&w.__original.push(p.clone(w[2])));var _=w.__original;if(w[2]!=null){if(p.copy(c[0],_[0]),p.copy(c[1],_[2]),p.copy(c[2],_[1]),E&&E!=="none"){var T=v(A.node1),S=t(c,_[0],T*u);s(c[0][0],c[1][0],c[2][0],S,r),c[0][0]=r[3],c[1][0]=r[4],s(c[0][1],c[1][1],c[2][1],S,r),c[0][1]=r[3],c[1][1]=r[4]}if(C&&C!=="none"){var T=v(A.node2),S=t(c,_[1],T*u);s(c[0][0],c[1][0],c[2][0],S,r),c[1][0]=r[1],c[2][0]=r[2],s(c[0][1],c[1][1],c[2][1],S,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],_[0]),p.copy(h[1],_[1]),p.sub(g,h[1],h[0]),p.normalize(g,g),E&&E!=="none"){var T=v(A.node1);p.scaleAndAdd(h[0],h[0],g,T*u)}if(C&&C!=="none"){var T=v(A.node2);p.scaleAndAdd(h[1],h[1],g,-T*u)}p.copy(w[0],h[0]),p.copy(w[1],h[1])}})}R.exports=a},SJMd:function(R,D){/**
|
|
|
* @license
|
|
|
* Copyright (C) 2006 Google Inc.
|
|
|
*
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
* You may obtain a copy of the License at
|
|
|
*
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
*
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
* See the License for the specific language governing permissions and
|
|
|
* limitations under the License.
|
|
|
*/var i,y,p,x=!1,v,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"],A=[o,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],b=[a,u,e,s,c,h,g,A],w=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,E="str",C="kwd",_="com",T="typ",S="lit",O="pun",I="pln",F="tag",P="dec",B="src",k="atn",G="atv",M="nocode",j="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function K(pe){for(var J=0,Y=!1,ee=!1,fe=0,we=pe.length;fe<we;++fe){var Ce=pe[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 _e={b:8,t:9,n:10,v:11,f:12,r:13};function he(at){var Fe=at.charCodeAt(0);if(Fe!==92)return Fe;var mt=at.charAt(1);return Fe=_e[mt],Fe||("0"<=mt&&mt<="7"?parseInt(at.substring(1),8):mt==="u"||mt==="x"?parseInt(at.substring(2),16):at.charCodeAt(1))}function ye(at){if(at<32)return(at<16?"\\x0":"\\x")+at.toString(16);var Fe=String.fromCharCode(at);return Fe==="\\"||Fe==="-"||Fe==="]"||Fe==="^"?"\\"+Fe:Fe}function Le(at){var Fe=at.substring(1,at.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")),mt=[],et=Fe[0]==="^",St=["["];et&&St.push("^");for(var jt=et?1:0,Mt=Fe.length;jt<Mt;++jt){var Ot=Fe[jt];if(/\\[bdsw]/i.test(Ot))St.push(Ot);else{var Bt=he(Ot),Ke;jt+2<Mt&&Fe[jt+1]==="-"?(Ke=he(Fe[jt+2]),jt+=2):Ke=Bt,mt.push([Bt,Ke]),Ke<65||Bt>122||(Ke<65||Bt>90||mt.push([Math.max(65,Bt)|32,Math.min(Ke,90)|32]),Ke<97||Bt>122||mt.push([Math.max(97,Bt)&~32,Math.min(Ke,122)&~32]))}}mt.sort(function(qe,me){return qe[0]-me[0]||me[1]-qe[1]});for(var de=[],se=[],jt=0;jt<mt.length;++jt){var ut=mt[jt];ut[0]<=se[1]+1?se[1]=Math.max(se[1],ut[1]):de.push(se=ut)}for(var jt=0;jt<de.length;++jt){var ut=de[jt];St.push(ye(ut[0])),ut[1]>ut[0]&&(ut[1]+1>ut[0]&&St.push("-"),St.push(ye(ut[1])))}return St.push("]"),St.join("")}function tt(at){for(var Fe=at.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")),mt=Fe.length,et=[],St=0,jt=0;St<mt;++St){var Mt=Fe[St];if(Mt==="(")++jt;else if(Mt.charAt(0)==="\\"){var Ot=+Mt.substring(1);Ot&&(Ot<=jt?et[Ot]=-1:Fe[St]=ye(Ot))}}for(var St=1;St<et.length;++St)et[St]===-1&&(et[St]=++J);for(var St=0,jt=0;St<mt;++St){var Mt=Fe[St];if(Mt==="(")++jt,et[jt]||(Fe[St]="(?:");else if(Mt.charAt(0)==="\\"){var Ot=+Mt.substring(1);Ot&&Ot<=jt&&(Fe[St]="\\"+et[Ot])}}for(var St=0;St<mt;++St)Fe[St]==="^"&&Fe[St+1]!=="^"&&(Fe[St]="");if(at.ignoreCase&&Y)for(var St=0;St<mt;++St){var Mt=Fe[St],Bt=Mt.charAt(0);Mt.length>=2&&Bt==="["?Fe[St]=Le(Mt):Bt!=="\\"&&(Fe[St]=Mt.replace(/[a-zA-Z]/g,function(se){var ut=se.charCodeAt(0);return"["+String.fromCharCode(ut&~32,ut|32)+"]"}))}return Fe.join("")}for(var gt=[],fe=0,we=pe.length;fe<we;++fe){var Ce=pe[fe];if(Ce.global||Ce.multiline)throw new Error(""+Ce);gt.push("(?:"+tt(Ce)+")")}return new RegExp(gt.join("|"),ee?"gi":"g")}function z(pe,J){var Y=/(?:^|\s)nocode(?:\s|$)/,ee=[],fe=0,we=[],Ce=0;function _e(he){var ye=he.nodeType;if(ye==1){if(Y.test(he.className))return;for(var Le=he.firstChild;Le;Le=Le.nextSibling)_e(Le);var tt=he.nodeName.toLowerCase();(tt==="br"||tt==="li")&&(ee[Ce]=`
|
|
|
`,we[Ce<<1]=fe++,we[Ce++<<1|1]=he)}else if(ye==3||ye==4){var gt=he.nodeValue;gt.length&&(J?gt=gt.replace(/\r\n?/g,`
|
|
|
`):gt=gt.replace(/[ \t\r\n]+/g," "),ee[Ce]=gt,we[Ce<<1]=fe,fe+=gt.length,we[Ce++<<1|1]=he)}}return _e(pe),{sourceCode:ee.join("").replace(/\n$/,""),spans:we}}function V(pe,J,Y,ee,fe){if(!Y)return;var we={sourceNode:pe,pre:1,langExtension:null,numberLines:null,sourceCode:Y,spans:null,basePos:J,decorations:null};ee(we),fe.push.apply(fe,we.decorations)}var Q=/\S/;function X(pe){for(var J=void 0,Y=pe.firstChild;Y;Y=Y.nextSibling){var ee=Y.nodeType;J=ee===1?J?pe:Y:ee===3&&Q.test(Y.nodeValue)?pe:J}return J===pe?void 0:J}function te(pe,J){var Y={},ee;(function(){for(var Ce=pe.concat(J),_e=[],he={},ye=0,Le=Ce.length;ye<Le;++ye){var tt=Ce[ye],gt=tt[3];if(gt)for(var at=gt.length;--at>=0;)Y[gt.charAt(at)]=tt;var Fe=tt[1],mt=""+Fe;he.hasOwnProperty(mt)||(_e.push(Fe),he[mt]=null)}_e.push(/[\0-\uffff]/),ee=K(_e)})();var fe=J.length,we=function Ce(_e){for(var he=_e.sourceCode,ye=_e.basePos,Le=_e.sourceNode,tt=[ye,I],gt=0,at=he.match(ee)||[],Fe={},mt=0,et=at.length;mt<et;++mt){var St=at[mt],jt=Fe[St],Mt=void 0,Ot;if(typeof jt=="string")Ot=!1;else{var Bt=Y[St.charAt(0)];if(Bt)Mt=St.match(Bt[1]),jt=Bt[0];else{for(var Ke=0;Ke<fe;++Ke)if(Bt=J[Ke],Mt=St.match(Bt[1]),Mt){jt=Bt[0];break}Mt||(jt=I)}Ot=jt.length>=5&&jt.substring(0,5)==="lang-",Ot&&!(Mt&&typeof Mt[1]=="string")&&(Ot=!1,jt=B),Ot||(Fe[St]=jt)}var de=gt;if(gt+=St.length,!Ot)tt.push(ye+de,jt);else{var se=Mt[1],ut=St.indexOf(se),qe=ut+se.length;Mt[2]&&(qe=St.length-Mt[2].length,ut=qe-se.length);var me=jt.substring(5);V(Le,ye+de,St.substring(0,ut),Ce,tt),V(Le,ye+de+ut,se,Je(me,se),tt),V(Le,ye+de+qe,St.substring(qe),Ce,tt)}}_e.decorations=tt};return we}function $(pe){var J=[],Y=[];pe.tripleQuotedStrings?J.push([E,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):pe.multiLineStrings?J.push([E,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):J.push([E,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),pe.verbatimStrings&&Y.push([E,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ee=pe.hashComments;ee&&(pe.cStyleComments?(ee>1?J.push([_,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):J.push([_,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Y.push([E,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):J.push([_,/^#[^\r\n]*/,null,"#"])),pe.cStyleComments&&(Y.push([_,/^\/\/[^\r\n]*/,null]),Y.push([_,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var fe=pe.regexLiterals;if(fe){var we=fe>1?"":`
|
|
|
\r`,Ce=we?".":"[\\S\\s]",_e="/(?=[^/*"+we+"])(?:[^/\\x5B\\x5C"+we+"]|\\x5C"+Ce+"|\\x5B(?:[^\\x5C\\x5D"+we+"]|\\x5C"+Ce+")*(?:\\x5D|$))+/";Y.push(["lang-regex",RegExp("^"+j+"("+_e+")")])}var he=pe.types;he&&Y.push([T,he]);var ye=(""+pe.keywords).replace(/^ | $/g,"");ye.length&&Y.push([C,new RegExp("^(?:"+ye.replace(/[\s,]+/g,"|")+")\\b"),null]),J.push([I,/^\s+/,null,` \r
|
|
|
\xA0`]);var Le="^.[^\\s\\w.$@'\"`/\\\\]*";return pe.regexLiterals&&(Le+="(?!s*/)"),Y.push([S,/^@[a-z_$][a-z_$@0-9]*/i,null],[T,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[I,/^[a-z_$][a-z_$@0-9]*/i,null],[S,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[I,/^\\[\s\S]?/,null],[O,new RegExp(Le),null]),te(J,Y)}var le=$({keywords:b,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function re(pe,J,Y){for(var ee=/(?:^|\s)nocode(?:\s|$)/,fe=/\r\n?|\n/,we=pe.ownerDocument,Ce=we.createElement("li");pe.firstChild;)Ce.appendChild(pe.firstChild);var _e=[Ce];function he(Fe){var mt=Fe.nodeType;if(mt==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((mt==3||mt==4)&&Y){var St=Fe.nodeValue,jt=St.match(fe);if(jt){var Mt=St.substring(0,jt.index);Fe.nodeValue=Mt;var Ot=St.substring(jt.index+jt[0].length);if(Ot){var Bt=Fe.parentNode;Bt.insertBefore(we.createTextNode(Ot),Fe.nextSibling)}ye(Fe),Mt||Fe.parentNode.removeChild(Fe)}}}function ye(Fe){for(;!Fe.nextSibling;)if(Fe=Fe.parentNode,!Fe)return;function mt(jt,Mt){var Ot=Mt?jt.cloneNode(!1):jt,Bt=jt.parentNode;if(Bt){var Ke=mt(Bt,1),de=jt.nextSibling;Ke.appendChild(Ot);for(var se=de;se;se=de)de=se.nextSibling,Ke.appendChild(se)}return Ot}for(var et=mt(Fe.nextSibling,0),St;(St=et.parentNode)&&St.nodeType===1;)et=St;_e.push(et)}for(var Le=0;Le<_e.length;++Le)he(_e[Le]);J===(J|0)&&_e[0].setAttribute("value",J);var tt=we.createElement("ol");tt.className="linenums";for(var gt=Math.max(0,J-1|0)||0,Le=0,at=_e.length;Le<at;++Le)Ce=_e[Le],Ce.className="L"+(Le+gt)%10,Ce.firstChild||Ce.appendChild(we.createTextNode("\xA0")),tt.appendChild(Ce);pe.appendChild(tt)}function Se(pe){var J=/\bMSIE\s(\d+)/.exec(navigator.userAgent);J=J&&+J[1]<=8;var Y=/\n/g,ee=pe.sourceCode,fe=ee.length,we=0,Ce=pe.spans,_e=Ce.length,he=0,ye=pe.decorations,Le=ye.length,tt=0;ye[Le]=fe;var gt,at;for(at=gt=0;at<Le;)ye[at]!==ye[at+2]?(ye[gt++]=ye[at++],ye[gt++]=ye[at++]):at+=2;for(Le=gt,at=gt=0;at<Le;){for(var Fe=ye[at],mt=ye[at+1],et=at+2;et+2<=Le&&ye[et+1]===mt;)et+=2;ye[gt++]=Fe,ye[gt++]=mt,at=et}Le=ye.length=gt;var St=pe.sourceNode,jt="";St&&(jt=St.style.display,St.style.display="none");try{for(var Mt=null;he<_e;){var Ot=Ce[he],Bt=Ce[he+2]||fe,Ke=ye[tt+2]||fe,et=Math.min(Bt,Ke),de=Ce[he+1],se;if(de.nodeType!==1&&(se=ee.substring(we,et))){J&&(se=se.replace(Y,"\r")),de.nodeValue=se;var ut=de.ownerDocument,qe=ut.createElement("span");qe.className=ye[tt+1];var me=de.parentNode;me.replaceChild(qe,de),qe.appendChild(de),we<Bt&&(Ce[he+1]=de=ut.createTextNode(ee.substring(et,Bt)),me.insertBefore(de,qe.nextSibling))}we=et,we>=Bt&&(he+=2),we>=Ke&&(tt+=2)}}finally{St&&(St.style.display=jt)}}var Re={};function Pe(pe,J){for(var Y=J.length;--Y>=0;){var ee=J[Y];Re.hasOwnProperty(ee)?l.console&&console.warn("cannot override language handler %s",ee):Re[ee]=pe}}function Je(pe,J){return pe&&Re.hasOwnProperty(pe)||(pe=/^\s*</.test(J)?"default-markup":"default-code"),Re[pe]}Pe(le,["default-code"]),Pe(te([],[[I,/^[^<?]+/],[P,/^<!\w[^>]*(?:>|$)/],[_,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[O,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Pe(te([[I,/^[\s]+/,null,` \r
|
|
|
`],[G,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[F,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[k,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[O,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),Pe(te([],[[G,/^[\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:A,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([],[[E,/^[\s\S]+/]]),["regex"]);function Ge(pe){var J=pe.langExtension;try{var Y=z(pe.sourceNode,pe.pre),ee=Y.sourceCode;pe.sourceCode=ee,pe.spans=Y.spans,pe.basePos=0,Je(J,ee)(pe),Se(pe)}catch(fe){l.console&&console.log(fe&&fe.stack||fe)}}function ct(pe,J,Y){var ee=Y||!1,fe=J||null,we=document.createElement("div");we.innerHTML="<pre>"+pe+"</pre>",we=we.firstChild,ee&&re(we,ee,!0);var Ce={langExtension:fe,numberLines:ee,sourceNode:we,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Ge(Ce),we.innerHTML}function Ue(pe,J){var Y=J||document.body,ee=Y.ownerDocument||document;function fe(Ot){return Y.getElementsByTagName(Ot)}for(var we=[fe("pre"),fe("code"),fe("xmp")],Ce=[],_e=0;_e<we.length;++_e)for(var he=0,ye=we[_e].length;he<ye;++he)Ce.push(we[_e][he]);we=null;var Le=Date;Le.now||(Le={now:function(){return+new Date}});var tt=0,gt=/\blang(?:uage)?-([\w.]+)(?!\S)/,at=/\bprettyprint\b/,Fe=/\bprettyprinted\b/,mt=/pre|xmp/i,et=/^code$/i,St=/^(?:pre|code|xmp)$/i,jt={};function Mt(){for(var Ot=l.PR_SHOULD_USE_CONTINUATION?Le.now()+250:Infinity;tt<Ce.length&&Le.now()<Ot;tt++){for(var Bt=Ce[tt],Ke=jt,de=Bt;de=de.previousSibling;){var se=de.nodeType,ut=(se===7||se===8)&&de.nodeValue;if(ut?!/^\??prettify\b/.test(ut):se!==3||/\S/.test(de.nodeValue))break;if(ut){Ke={},ut.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Ct,on,Mn){Ke[on]=Mn});break}}var qe=Bt.className;if((Ke!==jt||at.test(qe))&&!Fe.test(qe)){for(var me=!1,Wt=Bt.parentNode;Wt;Wt=Wt.parentNode){var dr=Wt.tagName;if(St.test(dr)&&Wt.className&&at.test(Wt.className)){me=!0;break}}if(!me){Bt.className+=" prettyprinted";var vt=Ke.lang;if(!vt){vt=qe.match(gt);var rr;!vt&&(rr=X(Bt))&&et.test(rr.tagName)&&(vt=rr.className.match(gt)),vt&&(vt=vt[1])}var ur;if(mt.test(Bt.tagName))ur=1;else{var mn=Bt.currentStyle,sr=ee.defaultView,xr=mn?mn.whiteSpace:sr&&sr.getComputedStyle?sr.getComputedStyle(Bt,null).getPropertyValue("white-space"):0;ur=xr&&xr.substring(0,3)==="pre"}var pr=Ke.linenums;(pr=pr==="true"||+pr)||(pr=qe.match(/\blinenums\b(?::(\d+))?/),pr=pr?pr[1]&&pr[1].length?+pr[1]:!0:!1),pr&&re(Bt,pr,ur);var Zt={langExtension:vt,sourceNode:Bt,numberLines:pr,pre:ur,sourceCode:null,basePos:null,spans:null,decorations:null};Ge(Zt)}}}tt<Ce.length?l.setTimeout(Mt,250):typeof pe=="function"&&pe()}Mt()}var ae=l.PR={createSimpleLexer:te,registerLangHandler:Pe,sourceDecorator:$,PR_ATTRIB_NAME:k,PR_ATTRIB_VALUE:G,PR_COMMENT:_,PR_DECLARATION:P,PR_KEYWORD:C,PR_LITERAL:S,PR_NOCODE:M,PR_PLAIN:I,PR_PUNCTUATION:O,PR_SOURCE:B,PR_STRING:E,PR_TAG:F,PR_TYPE:T,prettyPrintOne:x?l.prettyPrintOne=ct:f=ct,prettyPrint:d=x?l.prettyPrint=Ue:d=Ue},lt=l.define;typeof lt=="function"&<.amd&<("google-code-prettify",[],function(){return ae})})()},SKnc:function(R,D,i){var y=i("bYtY"),p=i("QuXc"),x=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)};x.prototype={constructor:x},y.inherits(x,p);var v=x;R.exports=v},"SKx+":function(R,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}}}),x=p;R.exports=x},SMc4:function(R,D,i){var y=i("bYtY"),p=i("bLfw"),x=i("nkfE"),v=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,v);var d={offset:0};x("x",m,f,d),x("y",m,f,d);var l=m;R.exports=l},SRve:function(R,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(R,D,i){var y=i("LPTA"),p=y.debugMode,x=function(){};p===1&&(x=console.error);var v=x;R.exports=v},SZEN:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.clientToElement=y;function y(p,x,v){var m=v.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,x<m.top?f.y=0:x>=m.bottom?f.y=m.height-1:f.y=x-m.top,f}},Sdc0:function(R,D,i){"use strict";var y=i("pVnL"),p=i.n(y),x=i("lSNA"),v=i.n(x),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(C,_){var T,S=C.prefixCls,O=S===void 0?"rc-switch":S,I=C.className,F=C.checked,P=C.defaultChecked,B=C.disabled,k=C.loadingIcon,G=C.checkedChildren,M=C.unCheckedChildren,j=C.onClick,K=C.onChange,z=C.onKeyDown,V=Object(l.a)(C,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),Q=Object(t.a)(!1,{value:F,defaultValue:P}),X=Object(d.a)(Q,2),te=X[0],$=X[1];function le(Pe,Je){var Ge=te;return B||(Ge=Pe,$(Ge),K==null||K(Ge,Je)),Ge}function re(Pe){Pe.which===a.a.LEFT?le(!1,Pe):Pe.which===a.a.RIGHT&&le(!0,Pe),z==null||z(Pe)}function Se(Pe){var Je=le(!te,Pe);j==null||j(Je,Pe)}var Re=n()(O,I,(T={},Object(f.a)(T,"".concat(O,"-checked"),te),Object(f.a)(T,"".concat(O,"-disabled"),B),T));return m.createElement("button",Object.assign({},V,{type:"button",role:"switch","aria-checked":te,disabled:B,className:Re,ref:_,onKeyDown:re,onClick:Se}),k,m.createElement("span",{className:"".concat(O,"-inner")},te?G:M))});e.displayName="Switch";var u=e,r=i("gZBC"),s=i.n(r),c=i("g0mS"),h=i("H84U"),g=i("3Nzz"),A=i("uaoM"),b=function(C,_){var T={};for(var S in C)Object.prototype.hasOwnProperty.call(C,S)&&_.indexOf(S)<0&&(T[S]=C[S]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,S=Object.getOwnPropertySymbols(C);O<S.length;O++)_.indexOf(S[O])<0&&Object.prototype.propertyIsEnumerable.call(C,S[O])&&(T[S[O]]=C[S[O]]);return T},w=m.forwardRef(function(C,_){var T,S=C.prefixCls,O=C.size,I=C.loading,F=C.className,P=F===void 0?"":F,B=C.disabled,k=b(C,["prefixCls","size","loading","className","disabled"]);Object(A.a)("checked"in k||!("value"in k),"Switch","`value` is not a valid prop, do you mean `checked`?");var G=m.useContext(h.b),M=G.getPrefixCls,j=G.direction,K=m.useContext(g.b),z=M("switch",S),V=m.createElement("div",{className:"".concat(z,"-handle")},I&&m.createElement(s.a,{className:"".concat(z,"-loading-icon")})),Q=n()(P,(T={},v()(T,"".concat(z,"-small"),(O||K)==="small"),v()(T,"".concat(z,"-loading"),I),v()(T,"".concat(z,"-rtl"),j==="rtl"),T));return m.createElement(c.a,{insertExtraNode:!0},m.createElement(u,p()({},k,{prefixCls:z,className:Q,disabled:B||I,ref:_,loadingIcon:V})))});w.__ANT_SWITCH=!0,w.displayName="Switch";var E=D.a=w},SehX:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("2B6p"),v=x.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=v(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(R,D,i){var y=i("YESw");function p(){this.__data__=y?y(null):{},this.size=0}R.exports=p},SgGq:function(R,D,i){var y=i("bYtY"),p=i("H6uX"),x=i("YH21"),v=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),A=s(o,this),b=s(n,this);p.call(this),this.setPointerChecker=function(w){this.pointerChecker=w},this.enable=function(w,E){this.disable(),this._opt=y.defaults(y.clone(E)||{},{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",A),r.on("pinch",b))},this.disable=function(){r.off("mousedown",c),r.off("mousemove",h),r.off("mouseup",g),r.off("mousewheel",A),r.off("pinch",b)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}y.mixin(m,p);function f(r){if(x.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"||v.isTaken(this._zr,"globalPan"))return;var s=r.offsetX,c=r.offsetY,h=this._x,g=this._y,A=s-h,b=c-g;this._x=s,this._y=c,this._opt.preventDefaultMouseMove&&x.stop(r.event),a(this,"pan","moveOnMouseMove",r,{dx:A,dy:b,oldX:h,oldY:g,newX:s,newY:c})}function l(r){x.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),A=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,E=h>0?w:1/w;t(this,"zoom","zoomOnMouseWheel",r,{scale:E,originX:A,originY:b})}if(c){var C=Math.abs(h),_=(h>0?1:-1)*(C>3?.4:C>1?.15:.05);t(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:_,originX:A,originY:b})}}function n(r){if(v.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)&&(x.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;R.exports=u},SgaC:function(R,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 x(m,f,d){return f&&p(m.prototype,f),d&&p(m,d),m}var v=function(){function m(){y(this,m),this._subrects=0}return x(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=v},Sj0X:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="DownOutlined";var n=v.forwardRef(o);D.default=n},Sj9i:function(R,D,i){var y=i("QBsz"),p=y.create,x=y.distSquare,v=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(S){return S>-f&&S<f}function u(S){return S>f||S<-f}function r(S,O,I,F,P){var B=1-P;return B*B*(B*S+3*P*O)+P*P*(P*F+3*B*I)}function s(S,O,I,F,P){var B=1-P;return 3*(((O-S)*B+2*(I-O)*P)*B+(F-I)*P*P)}function c(S,O,I,F,P,B){var k=F+3*(O-I)-S,G=3*(I-O*2+S),M=3*(O-S),j=S-P,K=G*G-3*k*M,z=G*M-9*k*j,V=M*M-3*G*j,Q=0;if(e(K)&&e(z))if(e(G))B[0]=0;else{var X=-M/G;X>=0&&X<=1&&(B[Q++]=X)}else{var te=z*z-4*K*V;if(e(te)){var $=z/K,X=-G/k+$,le=-$/2;X>=0&&X<=1&&(B[Q++]=X),le>=0&&le<=1&&(B[Q++]=le)}else if(te>0){var re=m(te),Se=K*G+1.5*k*(-z+re),Re=K*G+1.5*k*(-z-re);Se<0?Se=-v(-Se,o):Se=v(Se,o),Re<0?Re=-v(-Re,o):Re=v(Re,o);var X=(-G-(Se+Re))/(3*k);X>=0&&X<=1&&(B[Q++]=X)}else{var Pe=(2*K*G-3*k*z)/(2*m(K*K*K)),Je=Math.acos(Pe)/3,Ge=m(K),ct=Math.cos(Je),X=(-G-2*Ge*ct)/(3*k),le=(-G+Ge*(ct+l*Math.sin(Je)))/(3*k),Ue=(-G+Ge*(ct-l*Math.sin(Je)))/(3*k);X>=0&&X<=1&&(B[Q++]=X),le>=0&&le<=1&&(B[Q++]=le),Ue>=0&&Ue<=1&&(B[Q++]=Ue)}}return Q}function h(S,O,I,F,P){var B=6*I-12*O+6*S,k=9*O+3*F-3*S-9*I,G=3*O-3*S,M=0;if(e(k)){if(u(B)){var j=-G/B;j>=0&&j<=1&&(P[M++]=j)}}else{var K=B*B-4*k*G;if(e(K))P[0]=-B/(2*k);else if(K>0){var z=m(K),j=(-B+z)/(2*k),V=(-B-z)/(2*k);j>=0&&j<=1&&(P[M++]=j),V>=0&&V<=1&&(P[M++]=V)}}return M}function g(S,O,I,F,P,B){var k=(O-S)*P+S,G=(I-O)*P+O,M=(F-I)*P+I,j=(G-k)*P+k,K=(M-G)*P+G,z=(K-j)*P+j;B[0]=S,B[1]=k,B[2]=j,B[3]=z,B[4]=z,B[5]=K,B[6]=M,B[7]=F}function A(S,O,I,F,P,B,k,G,M,j,K){var z,V=.005,Q=Infinity,X,te,$,le;n[0]=M,n[1]=j;for(var re=0;re<1;re+=.05)t[0]=r(S,I,P,k,re),t[1]=r(O,F,B,G,re),$=x(n,t),$<Q&&(z=re,Q=$);Q=Infinity;for(var Se=0;Se<32&&!(V<d);Se++)X=z-V,te=z+V,t[0]=r(S,I,P,k,X),t[1]=r(O,F,B,G,X),$=x(t,n),X>=0&&$<Q?(z=X,Q=$):(a[0]=r(S,I,P,k,te),a[1]=r(O,F,B,G,te),le=x(a,n),te<=1&&le<Q?(z=te,Q=le):V*=.5);return K&&(K[0]=r(S,I,P,k,z),K[1]=r(O,F,B,G,z)),m(Q)}function b(S,O,I,F){var P=1-F;return P*(P*S+2*F*O)+F*F*I}function w(S,O,I,F){return 2*((1-F)*(O-S)+F*(I-O))}function E(S,O,I,F,P){var B=S-2*O+I,k=2*(O-S),G=S-F,M=0;if(e(B)){if(u(k)){var j=-G/k;j>=0&&j<=1&&(P[M++]=j)}}else{var K=k*k-4*B*G;if(e(K)){var j=-k/(2*B);j>=0&&j<=1&&(P[M++]=j)}else if(K>0){var z=m(K),j=(-k+z)/(2*B),V=(-k-z)/(2*B);j>=0&&j<=1&&(P[M++]=j),V>=0&&V<=1&&(P[M++]=V)}}return M}function C(S,O,I){var F=S+I-2*O;return F===0?.5:(S-O)/F}function _(S,O,I,F,P){var B=(O-S)*F+S,k=(I-O)*F+O,G=(k-B)*F+B;P[0]=S,P[1]=B,P[2]=G,P[3]=G,P[4]=k,P[5]=I}function T(S,O,I,F,P,B,k,G,M){var j,K=.005,z=Infinity;n[0]=k,n[1]=G;for(var V=0;V<1;V+=.05){t[0]=b(S,I,P,V),t[1]=b(O,F,B,V);var Q=x(n,t);Q<z&&(j=V,z=Q)}z=Infinity;for(var X=0;X<32&&!(K<d);X++){var te=j-K,$=j+K;t[0]=b(S,I,P,te),t[1]=b(O,F,B,te);var Q=x(t,n);if(te>=0&&Q<z)j=te,z=Q;else{a[0]=b(S,I,P,$),a[1]=b(O,F,B,$);var le=x(a,n);$<=1&&le<z?(j=$,z=le):K*=.5}}return M&&(M[0]=b(S,I,P,j),M[1]=b(O,F,B,j)),m(z)}D.cubicAt=r,D.cubicDerivativeAt=s,D.cubicRootAt=c,D.cubicExtrema=h,D.cubicSubdivide=g,D.cubicProjectPoint=A,D.quadraticAt=b,D.quadraticDerivativeAt=w,D.quadraticRootAt=E,D.quadraticExtremum=C,D.quadraticSubdivide=_,D.quadraticProjectPoint=T},Sp2Z:function(R,D,i){var y=i("3LNs"),p=i("/y7N"),x=i("AVZG"),v=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 A=p.buildElStyle(e),b=d[c](r,g,h);b.style=A,n.graphicKey=b.type,n.pointer=b}var w=x.layout(s.model,a);p.buildCartesianSingleLabelElOption(t,n,w,a,e,u)},getHandleTransform:function(n,t,a){var e=x.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 A=(c[1]+c[0])/2,b=[A,A];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}v.registerAxisPointerClass("CartesianAxisPointer",m);var o=m;R.exports=o},Sq3C:function(R,D,i){var y=i("sKgW"),p=i("zoYe"),x=i("wy8a"),v=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 v(n)?x(f(a),0,o).join(""):a.slice(0,o)}R.exports=l},SqI9:function(R,D,i){var y=i("y+Vt"),p=i("iXp4"),x=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()}});R.exports=x},SrGk:function(R,D,i){var y=i("hydK"),p=y.createElement,x=i("bYtY"),v=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 A=g.length-1;A>=0;--A)if(g[A]===h)return!0;return!1}),c):null:c[0]},e.prototype.update=function(r,s){if(!r)return;var c=this.getDefs(!1);if(r[this._domName]&&c.contains(r[this._domName]))typeof s=="function"&&s(r);else{var h=this.add(r);h&&(r[this._domName]=h)}},e.prototype.addDom=function(r){var s=this.getDefs(!0);s.appendChild(r)},e.prototype.removeDom=function(r){var s=this.getDefs(!1);s&&r[this._domName]&&(s.removeChild(r[this._domName]),r[this._domName]=null)},e.prototype.getDoms=function(){var r=this.getDefs(!1);if(!r)return[];var s=[];return x.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;x.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;x.each(s,function(h){h[c._markLabel]!==a&&r.removeChild(h)})},e.prototype.getSvgProxy=function(r){return r instanceof v?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;R.exports=u},Swgg:function(R,D,i){var y=i("fc+c"),p=y.extend({type:"dataZoom.select"});R.exports=p},Sxd8:function(R,D,i){var y=i("ZCgT");function p(x){var v=y(x),m=v%1;return v===v?m?v-m:v:0}R.exports=p},T1rO:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("zdCA"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},T4UG:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=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"),A=g.prepareSource,b=g.getSource,w=i("KxfA"),E=w.retrieveRawValue,C=n.makeInner(),_=t.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(M,j,K,z){this.seriesIndex=this.componentIndex,this.dataTask=h({count:O,reset:I}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(M,K),A(this);var V=this.getInitialData(M,K);P(V,this),this.dataTask.context.data=V,C(this).dataBeforeProcessed=V,T(this)},mergeDefaultAndTheme:function(M,j){var K=this.layoutMode,z=K?r(M):{},V=this.subType;t.hasClass(V)&&(V+="Series"),x.merge(M,j.getTheme().get(this.subType)),x.merge(M,this.getDefaultOption()),n.defaultEmphasis(M,"label",["show"]),this.fillDataTextStyle(M.data),K&&s(M,z,K)},mergeOption:function(M,j){M=x.merge(this.option,M,!0),this.fillDataTextStyle(M.data);var K=this.layoutMode;K&&s(this.option,M,K),A(this);var z=this.getInitialData(M,j);P(z,this),this.dataTask.dirty(),this.dataTask.context.data=z,C(this).dataBeforeProcessed=z,T(this)},fillDataTextStyle:function(M){if(M&&!x.isTypedArray(M))for(var j=["show"],K=0;K<M.length;K++)M[K]&&M[K].label&&n.defaultEmphasis(M[K],"label",j)},getInitialData:function(){},appendData:function(M){var j=this.getRawData();j.appendData(M.data)},getData:function(M){var j=k(this);if(j){var K=j.context.data;return M==null?K:K.getLinkedData(M)}else return C(this).data},setData:function(M){var j=k(this);if(j){var K=j.context;K.data!==M&&j.modifyOutputEnd&&j.setOutputEnd(M.count()),K.outputData=M,j!==this.dataTask&&(K.data=M)}C(this).data=M},getSource:function(){return b(this)},getRawData:function(){return C(this).dataBeforeProcessed},getBaseAxis:function(){var M=this.coordinateSystem;return M&&M.getBaseAxis&&M.getBaseAxis()},formatTooltip:function(M,j,K,z){var V=this;z=z||"html";var Q=z==="html"?"<br/>":`
|
|
|
`,X=z==="richText",te={},$=0;function le(we){var Ce=x.reduce(we,function(tt,gt,at){var Fe=Se.getDimensionInfo(at);return tt|=Fe&&Fe.tooltip!==!1&&Fe.displayName!=null},0),_e=[];Re.length?x.each(Re,function(tt){he(E(Se,M,tt),tt)}):x.each(we,he);function he(tt,gt){var at=Se.getDimensionInfo(gt);if(!at||at.otherDims.tooltip===!1)return;var Fe=at.type,mt="sub"+V.seriesIndex+"at"+$,et=o({color:ct,type:"subItem",renderMode:z,markerId:mt}),St=typeof et=="string"?et:et.content,jt=(Ce?St+d(at.displayName||"-")+": ":"")+d(Fe==="ordinal"?tt+"":Fe==="time"?j?"":f("yyyy/MM/dd hh:mm:ss",tt):l(tt));jt&&_e.push(jt),X&&(te[mt]=ct,++$)}var ye=Ce?X?`
|
|
|
`:"<br/>":"",Le=ye+_e.join(ye||", ");return{renderMode:z,content:Le,style:te}}function re(we){return{renderMode:z,content:d(l(we)),style:te}}var Se=this.getData(),Re=Se.mapDimension("defaultedTooltip",!0),Pe=Re.length,Je=this.getRawValue(M),Ge=x.isArray(Je),ct=Se.getItemVisual(M,"color");x.isObject(ct)&&ct.colorStops&&(ct=(ct.colorStops[0]||{}).color),ct=ct||"transparent";var Ue=Pe>1||Ge&&!Pe?le(Je):re(Pe?E(Se,M,Re[0]):Ge?Je[0]:Je),ae=Ue.content,lt=V.seriesIndex+"at"+$,pe=o({color:ct,type:"item",renderMode:z,markerId:lt});te[lt]=ct,++$;var J=Se.getName(M),Y=this.name;n.isNameSpecified(this)||(Y=""),Y=Y?d(Y)+(j?": ":Q):"";var ee=typeof pe=="string"?pe:pe.content,fe=j?ee+Y+ae:Y+ee+(J?d(J)+": "+ae:ae);return{html:fe,markers:te}},isAnimationEnabled:function(){if(v.node)return!1;var M=this.getShallow("animation");return M&&(this.getData().count()>this.getShallow("animationThreshold")&&(M=!1)),M},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(M,j,K){var z=this.ecModel,V=a.getColorFromPalette.call(this,M,j,K);return V||(V=z.getColorFromPalette(M,j,K)),V},coordDimToDataDim:function(M){return this.getRawData().mapDimension(M,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});x.mixin(_,e),x.mixin(_,a);function T(M){var j=M.name;n.isNameSpecified(M)||(M.name=S(M)||j)}function S(M){var j=M.getRawData(),K=j.mapDimension("seriesName",!0),z=[];return x.each(K,function(V){var Q=j.getDimensionInfo(V);Q.displayName&&z.push(Q.displayName)}),z.join(" ")}function O(M){return M.model.getRawData().count()}function I(M){var j=M.model;return j.setData(j.getRawData().cloneShallow()),F}function F(M,j){j.outputData&&M.end>j.outputData.count()&&j.model.getRawData().cloneShallow(j.outputData)}function P(M,j){x.each(M.CHANGABLE_METHODS,function(K){M.wrapMethod(K,x.curry(B,j))})}function B(M){var j=k(M);j&&j.setOutputEnd(this.count())}function k(M){var j=(M.ecModel||{}).scheduler,K=j&&j.getPipeline(M.uid);if(K){var z=K.currentTask;if(z){var V=z.agentStubMap;V&&(z=V.get(M.uid))}return z}}var G=_;R.exports=G},T6xi:function(R,D,i){var y=i("YgsL"),p=i("nCxF");function x(v,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);v.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];v.bezierCurveTo(a[0],a[1],e[0],e[1],u[0],u[1])}}else{l==="spline"&&(d=y(d,f)),v.moveTo(d[0][0],d[0][1]);for(var t=1,r=d.length;t<r;t++)v.lineTo(d[t][0],d[t][1])}f&&v.closePath()}}D.buildPath=x},TIY9:function(R,D,i){var y=i("bYtY"),p=y.each,x=i("vafp"),v=i("4NO4"),m=v.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?x(h,r):[]}catch(A){throw new Error(`Invalid geoJson format
|
|
|
`+A.message)}return f(e,g),p(g,function(A){var b=A.name;d(e,A),l(e,A),o(e,A);var w=c[b];w&&A.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}R.exports=t},TJmX:function(R,D,i){var y=i("zM3Q"),p=["itemStyle","borderColor"],x=["itemStyle","borderColor0"],v=["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?v:m)}function e(u,r){return r.get(u>0?p:x)}}};R.exports=f},TWL2:function(R,D,i){var y=i("IwbS"),p=i("bYtY"),x=i("6Ic6");function v(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=v.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"),A=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=!A.get("show"),t.hoverIgnore=!b.get("show"),t.setStyle({stroke:c}),t.setStyle(A.getModel("lineStyle").getLineStyle()),t.hoverStyle=b.getModel("lineStyle").getLineStyle()},p.inherits(v,y.Group);var d=x.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 v(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;R.exports=l},TYVI:function(R,D,i){var y=i("5GtS"),p=i("T4UG"),x=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}}}),v=x;R.exports=v},Tghj:function(R,D,i){(function(y){var p;typeof window!="undefined"?p=window.__DEV__:typeof y!="undefined"&&(p=y.__DEV__),typeof p=="undefined"&&(p=!0);var x=p;D.__DEV__=x}).call(this,i("yLpj"))},ThAp:function(R,D,i){var y=i("bYtY"),p=i("5GtS"),x=i("T4UG"),v=i("7aKB"),m=v.encodeHTML,f=v.addCommas,d=i("cCMj"),l=i("KxfA"),o=l.retrieveRawAttr,n=i("W4dC"),t=i("D5nY"),a=t.makeSeriesEncodeForNameBased,e=x.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=[],A=[],b=0,w=s.count();b<w;b++){var E=s.getName(b);h.set(E,!0),g.push({name:E,value:s.get(c,b),selected:o(s,b,"selected")})}var C=n.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return y.each(C.regions,function(_){var T=_.name;h.get(T)||(g.push({name:T}),A.push(T))}),this.updateSelectedMap(g),s.appendValues([],A),s},getHostGeoModel:function(){var r=this.option.geoIndex;return r!=null?this.dependentModels.geo[r]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(r){var s=this.getData();return s.get(s.mapDimension("value"),r)},getRegionModel:function(r){var s=this.getData();return s.getItemModel(s.indexOfName(r))},formatTooltip:function(r){for(var s=this.getData(),c=f(this.getRawValue(r)),h=s.getName(r),g=this.seriesGroup,A=[],b=0;b<g.length;b++){var w=g[b].originalData.indexOfName(h),E=s.mapDimension("value");isNaN(g[b].originalData.get(E,w))||A.push(m(g[b].name))}return A.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;R.exports=u},TkdX:function(R,D,i){var y=i("bYtY"),p=i("IwbS"),x={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},v=2,m=4;function f(e,u,r){p.Group.call(this);var s=new p.Sector({z2:v});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(),A=u.getLayout(),b=y.extend({},A);b.label=null;var w=o(u,s,c);a(u,s,w);var E=g.getModel("itemStyle").getItemStyle(),C;if(r==="normal")C=E;else{var _=g.getModel(r+".itemStyle").getItemStyle();C=y.merge(_,E)}C=y.defaults({lineJoin:"bevel",fill:C.fill||w},C),e?(h.setShape(b),h.shape.r=A.r0,p.updateProps(h,{shape:{r:A.r}},s,u.dataIndex),h.useStyle(C)):typeof C.fill=="object"&&C.fill.type||typeof h.style.fill=="object"&&h.style.fill.type?(p.updateProps(h,{shape:b},s),h.useStyle(C)):p.updateProps(h,{shape:b,style:C},s),this._updateLabel(s,w,r);var T=g.getShallow("cursor");if(T&&h.attr("cursor",T),e){var S=s.getShallow("highlightPolicy");this._initEvents(h,u,s,S)}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!==x.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"),A=y.retrieve(e.getFormattedLabel(this.node.dataIndex,r,null,null,"label"),this.node.name);j("show")===!1&&(A="");var b=this.node.getLayout(),w=h.get("minAngle");w==null&&(w=c.get("minAngle")),w=w/180*Math.PI;var E=b.endAngle-b.startAngle;w!=null&&Math.abs(E)<w&&(A="");var C=this.childAt(1);p.setLabelStyle(C.style,C.hoverStyle||{},c,g,{defaultText:h.getShallow("show")?A:null,autoColor:u,useInsideStyle:!0});var _=(b.startAngle+b.endAngle)/2,T=Math.cos(_),S=Math.sin(_),O,I=j("position"),F=j("distance")||0,P=j("align");I==="outside"?(O=b.r+F,P=_>Math.PI/2?"right":"left"):!P||P==="center"?(O=(b.r+b.r0)/2,P="center"):P==="left"?(O=b.r0+F,_>Math.PI/2&&(P="right")):P==="right"&&(O=b.r-F,_>Math.PI/2&&(P="left")),C.attr("style",{text:A,textAlign:P,textVerticalAlign:j("verticalAlign")||"middle",opacity:j("opacity")});var B=O*T+b.cx,k=O*S+b.cy;C.attr("position",[B,k]);var G=j("rotate"),M=0;G==="radial"?(M=-_,M<-Math.PI/2&&(M+=Math.PI)):G==="tangential"?(M=Math.PI/2-_,M>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI)):typeof G=="number"&&(M=G*Math.PI/180),C.attr("rotation",M);function j(K){var z=h.get(K);return z==null?c.get(K):z}},d._initEvents=function(e,u,r,s){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var c=this,h=function(){c.onEmphasis(s)},g=function(){c.onNormal()},A=function(){c.onDownplay()},b=function(){c.onHighlight()};r.isAnimationEnabled()&&e.on("mouseover",h).on("mouseout",g).on("emphasis",h).on("normal",g).on("downplay",A).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===x.NONE?!1:r===x.SELF?e===u:r===x.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)}R.exports=l},Tp9H:function(R,D,i){var y=i("ItGF"),p=i("Kagy"),x=i("IUWy"),v=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:v.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:v.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 A=new Blob([g]);window.navigator.msSaveOrOpenBlob(A,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>',E=window.open();E.document.write(w)}},x.register("saveAsImage",m);var d=m;R.exports=d},"U/Mo":function(R,D){function i(p){var x=p.coordinateSystem;if(x.type!=="view")return 1;var v=p.option.nodeScaleRatio,m=x.scale,f=m&&m[0]||1,d=x.getZoom(),l=(d-1)*v+1;return l/f}function y(p){var x=p.getVisual("symbolSize");return x instanceof Array&&(x=(x[0]+x[1])/2),+x}D.getNodeGlobalScale=i,D.getSymbolSize=y},UADf:function(R,D,i){},UESt:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="RightOutlined";var d=D.a=p.forwardRef(f)},"UNi/":function(R,D){function i(y,p){for(var x=-1,v=Array(y);++x<y;)v[x]=p(x);return v}R.exports=i},UOVi:function(R,D,i){var y=i("bYtY"),p=i("7aKB"),x=["x","y","z","radius","angle","single"],v=["cartesian2d","polar","singleAxis"];function m(o){return y.indexOf(v,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(x,["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(R,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(R,D,i){var y=i("bYtY"),p=i("OELB");function x(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];v(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];v(o,l,s)}o.setLayout("layoutInfo",t)})}function v(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(E){var C=o.dataToPoint(f.get(t,E));return C[1]=f.get(a,E),C})}),u=m(e),r=u.y0,s=l/u.max,c=n.length,h=n[0].indices.length,g,A=0;A<h;++A){g=r[A]*s,f.setItemLayout(n[0].indices[A],{layerIndex:0,x:e[0][A][0],y0:g,y:e[0][A][1]*s});for(var b=1;b<c;++b)g+=e[b-1][A][1]*s,f.setItemLayout(n[b].indices[A],{layerIndex:b,x:e[b][A][0],y0:g,y:e[b][A][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}R.exports=x},Urep:function(R,D,i){},V6Ve:function(R,D,i){var y=i("kekF"),p=y(Object.keys,Object);R.exports=p},V7ic:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="FileTwoTone";var n=v.forwardRef(o);D.default=n},VFCP:function(R,D,i){i("dBmv"),i("KamJ")},VPsl:function(R,D){function i(y){y.eachSeriesByType("map",function(p){var x=p.get("color"),v=p.getModel("itemStyle"),m=v.get("areaColor"),f=v.get("color")||x[p.seriesIndex%x.length];p.getData().setVisual({areaColor:m,color:f})})}R.exports=i},VR9l:function(R,D,i){var y=i("KCsZ"),p=y([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),x={getItemStyle:function(v,m){var f=p(this,v,m),d=this.getBorderLineDash();return d&&(f.lineDash=d),f},getBorderLineDash:function(){var v=this.get("borderType");return v==="solid"||v==null?null:v==="dashed"?[5,5]:[1,1]}};R.exports=x},VSLf:function(R,D,i){i("I+Bx"),i("F0hE"),i("bBKM")},VSMT:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.decodeUTF8=y,D.encodeUTF8=p;function y(x){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(x))}catch(m){if(m instanceof URIError&&v)return x;throw m}}function p(x){return unescape(encodeURIComponent(x))}},VXYp:function(R,D,i){var y=i("bYtY"),p=i("SgGq"),x=i("iLNv"),v="\0_ec_dataZoom_roams";function m(e,u){var r=l(e),s=u.dataZoomId,c=u.coordId;y.each(r,function(A,b){var w=A.dataZoomInfos;w[s]&&y.indexOf(u.allCoordIds,c)<0&&(delete w[s],A.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),x.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[v]||(u[v]={})}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 A=(g.getRange||{})[s],b=A&&A(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,A=g.get("disabled",!0)?!1:g.get("zoomLock",!0)?"move":!0;s[r+A]>s[r+u]&&(u=A),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(R,D){function i(y){return this.__data__.has(y)}R.exports=i},VaxA:function(R,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 x(f){for(var d=[];f;)f=f.parentNode,f&&d.push(f);return d.reverse()}function v(f,d){var l=x(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=x,D.aboveViewRoot=v,D.wrapTreePathInfo=m},Vi4m:function(R,D,i){var y=i("bYtY");function p(v){v!=null&&y.extend(this,v),this.otherDims={}}var x=p;R.exports=x},Vl3Y:function(R,D,i){"use strict";var y=i("pVnL"),p=i.n(y),x=i("J4zp"),v=i.n(x),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(Wt){var dr=Object(a.default)(Wt,["prefixCls"]);return d.createElement(n.FormProvider,dr)};function s(me){return typeof me=="object"&&me!=null&&me.nodeType===1}function c(me,Wt){return(!Wt||me!=="hidden")&&me!=="visible"&&me!=="clip"}function h(me,Wt){if(me.clientHeight<me.scrollHeight||me.clientWidth<me.scrollWidth){var dr=getComputedStyle(me,null);return c(dr.overflowY,Wt)||c(dr.overflowX,Wt)||function(vt){var rr=function(ur){if(!ur.ownerDocument||!ur.ownerDocument.defaultView)return null;try{return ur.ownerDocument.defaultView.frameElement}catch(mn){return null}}(vt);return!!rr&&(rr.clientHeight<vt.scrollHeight||rr.clientWidth<vt.scrollWidth)}(me)}return!1}function g(me,Wt,dr,vt,rr,ur,mn,sr){return ur<me&&mn>Wt||ur>me&&mn<Wt?0:ur<=me&&sr<=dr||mn>=Wt&&sr>=dr?ur-me-vt:mn>Wt&&sr<dr||ur<me&&sr>dr?mn-Wt+rr:0}var A=function(Wt,dr){var vt=window,rr=dr.scrollMode,ur=dr.block,mn=dr.inline,sr=dr.boundary,xr=dr.skipOverflowHiddenElements,pr=typeof sr=="function"?sr:function(nt){return nt!==sr};if(!s(Wt))throw new TypeError("Invalid target");for(var Zt,Ct,on=document.scrollingElement||document.documentElement,Mn=[],Xn=Wt;s(Xn)&&pr(Xn);){if((Xn=(Ct=(Zt=Xn).parentElement)==null?Zt.getRootNode().host||null:Ct)===on){Mn.push(Xn);break}Xn!=null&&Xn===document.body&&h(Xn)&&!h(document.documentElement)||Xn!=null&&h(Xn,xr)&&Mn.push(Xn)}for(var oi=vt.visualViewport?vt.visualViewport.width:innerWidth,Ui=vt.visualViewport?vt.visualViewport.height:innerHeight,Un=window.scrollX||pageXOffset,Qn=window.scrollY||pageYOffset,$t=Wt.getBoundingClientRect(),Nt=$t.height,Me=$t.width,ke=$t.top,Be=$t.right,it=$t.bottom,yt=$t.left,Tt=ur==="start"||ur==="nearest"?ke:ur==="end"?it:ke+Nt/2,Yt=mn==="center"?yt+Me/2:mn==="end"?Be:yt,Pr=[],$r=0;$r<Mn.length;$r++){var An=Mn[$r],zt=An.getBoundingClientRect(),At=zt.height,wt=zt.width,vr=zt.top,Jt=zt.right,Ut=zt.bottom,tr=zt.left;if(rr==="if-needed"&&ke>=0&&yt>=0&&it<=Ui&&Be<=oi&&ke>=vr&&it<=Ut&&yt>=tr&&Be<=Jt)return Pr;var Ft=getComputedStyle(An),qt=parseInt(Ft.borderLeftWidth,10),Hr=parseInt(Ft.borderTopWidth,10),Nr=parseInt(Ft.borderRightWidth,10),Dr=parseInt(Ft.borderBottomWidth,10),cn=0,vn=0,ei="offsetWidth"in An?An.offsetWidth-An.clientWidth-qt-Nr:0,qn="offsetHeight"in An?An.offsetHeight-An.clientHeight-Hr-Dr:0,fi="offsetWidth"in An?An.offsetWidth===0?0:wt/An.offsetWidth:0,xi="offsetHeight"in An?An.offsetHeight===0?0:At/An.offsetHeight:0;if(on===An)cn=ur==="start"?Tt:ur==="end"?Tt-Ui:ur==="nearest"?g(Qn,Qn+Ui,Ui,Hr,Dr,Qn+Tt,Qn+Tt+Nt,Nt):Tt-Ui/2,vn=mn==="start"?Yt:mn==="center"?Yt-oi/2:mn==="end"?Yt-oi:g(Un,Un+oi,oi,qt,Nr,Un+Yt,Un+Yt+Me,Me),cn=Math.max(0,cn+Qn),vn=Math.max(0,vn+Un);else{cn=ur==="start"?Tt-vr-Hr:ur==="end"?Tt-Ut+Dr+qn:ur==="nearest"?g(vr,Ut,At,Hr,Dr+qn,Tt,Tt+Nt,Nt):Tt-(vr+At/2)+qn/2,vn=mn==="start"?Yt-tr-qt:mn==="center"?Yt-(tr+wt/2)+ei/2:mn==="end"?Yt-Jt+Nr+ei:g(tr,Jt,wt,qt,Nr+ei,Yt,Yt+Me,Me);var Ni=An.scrollLeft,Hi=An.scrollTop;Tt+=Hi-(cn=Math.max(0,Math.min(Hi+cn/xi,An.scrollHeight-At/xi+qn))),Yt+=Ni-(vn=Math.max(0,Math.min(Ni+vn/fi,An.scrollWidth-wt/fi+ei)))}Pr.push({el:An,top:cn,left:vn})}return Pr};function b(me){return me===Object(me)&&Object.keys(me).length!==0}function w(me,Wt){Wt===void 0&&(Wt="auto");var dr="scrollBehavior"in document.body.style;me.forEach(function(vt){var rr=vt.el,ur=vt.top,mn=vt.left;rr.scroll&&dr?rr.scroll({top:ur,left:mn,behavior:Wt}):(rr.scrollTop=ur,rr.scrollLeft=mn)})}function E(me){return me===!1?{block:"end",inline:"nearest"}:b(me)?me:{block:"start",inline:"nearest"}}function C(me,Wt){var dr=me.isConnected||me.ownerDocument.documentElement.contains(me);if(b(Wt)&&typeof Wt.behavior=="function")return Wt.behavior(dr?A(me,Wt):[]);if(!dr)return;var vt=E(Wt);return w(A(me,vt),vt.behavior)}var _=C;function T(me){return me===void 0||me===!1?[]:Array.isArray(me)?me:[me]}function S(me,Wt){if(!me.length)return;var dr=me.join("_");return Wt?"".concat(Wt,"_").concat(dr):dr}function O(me){var Wt=T(me);return Wt.join("_")}function I(me){var Wt=Object(n.useForm)(),dr=v()(Wt,1),vt=dr[0],rr=Object(d.useRef)({}),ur=Object(d.useMemo)(function(){return me||p()(p()({},vt),{__INTERNAL__:{itemRef:function(sr){return function(xr){var pr=O(sr);xr?rr.current[pr]=xr:delete rr.current[pr]}}},scrollToField:function(sr){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pr=T(sr),Zt=S(pr,ur.__INTERNAL__.name),Ct=Zt?document.getElementById(Zt):null;Ct&&_(Ct,p()({scrollMode:"if-needed",block:"nearest"},xr))},getFieldInstance:function(sr){var xr=O(sr);return rr.current[xr]}})},[me,vt]);return[ur]}var F=i("3Nzz"),P=function(me,Wt){var dr={};for(var vt in me)Object.prototype.hasOwnProperty.call(me,vt)&&Wt.indexOf(vt)<0&&(dr[vt]=me[vt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rr=0,vt=Object.getOwnPropertySymbols(me);rr<vt.length;rr++)Wt.indexOf(vt[rr])<0&&Object.prototype.propertyIsEnumerable.call(me,vt[rr])&&(dr[vt[rr]]=me[vt[rr]]);return dr},B=function(Wt,dr){var vt,rr=d.useContext(F.b),ur=d.useContext(t.b),mn=ur.getPrefixCls,sr=ur.direction,xr=Wt.name,pr=Wt.prefixCls,Zt=Wt.className,Ct=Zt===void 0?"":Zt,on=Wt.size,Mn=on===void 0?rr:on,Xn=Wt.form,oi=Wt.colon,Ui=Wt.labelAlign,Un=Wt.labelCol,Qn=Wt.wrapperCol,$t=Wt.hideRequiredMark,Nt=Wt.layout,Me=Nt===void 0?"horizontal":Nt,ke=Wt.scrollToFirstError,Be=Wt.requiredMark,it=Wt.onFinishFailed,yt=P(Wt,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),Tt=Object(d.useMemo)(function(){return Be!==void 0?Be:!$t},[$t,Be]),Yt=mn("form",pr),Pr=o()(Yt,(vt={},f()(vt,"".concat(Yt,"-").concat(Me),!0),f()(vt,"".concat(Yt,"-hide-required-mark"),Tt===!1),f()(vt,"".concat(Yt,"-rtl"),sr==="rtl"),f()(vt,"".concat(Yt,"-").concat(Mn),Mn),vt),Ct),$r=I(Xn),An=v()($r,1),zt=An[0],At=zt.__INTERNAL__;At.name=xr;var wt=Object(d.useMemo)(function(){return{name:xr,labelAlign:Ui,labelCol:Un,wrapperCol:Qn,vertical:Me==="vertical",colon:oi,requiredMark:Tt,itemRef:At.itemRef}},[xr,Ui,Un,Qn,Me,oi,Tt]);d.useImperativeHandle(dr,function(){return zt});var vr=function(Ut){it&&it(Ut),ke&&Ut.errorFields.length&&zt.scrollToField(Ut.errorFields[0].name)};return d.createElement(F.a,{size:Mn},d.createElement(e.Provider,{value:wt},d.createElement(n.default,p()({id:xr},yt,{onFinishFailed:vr,form:zt,className:Pr}))))},k=d.forwardRef(B),G=k,M=i("cDf5"),j=i.n(M),K=i("RIqP"),z=i.n(K),V=i("Y+p1"),Q=i.n(V),X=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(Wt){var dr=Wt.prefixCls,vt=Wt.label,rr=Wt.htmlFor,ur=Wt.labelCol,mn=Wt.labelAlign,sr=Wt.colon,xr=Wt.required,pr=Wt.requiredMark,Zt=Object(Re.b)("Form"),Ct=v()(Zt,1),on=Ct[0];return vt?d.createElement(e.Consumer,{key:"label"},function(Mn){var Xn,oi=Mn.vertical,Ui=Mn.labelAlign,Un=Mn.labelCol,Qn=Mn.colon,$t,Nt=ur||Un||{},Me=mn||Ui,ke="".concat(dr,"-item-label"),Be=o()(ke,Me==="left"&&"".concat(ke,"-left"),Nt.className),it=vt,yt=sr===!0||Qn!==!1&&sr!==!1,Tt=yt&&!oi;Tt&&typeof vt=="string"&&vt.trim()!==""&&(it=vt.replace(/[:|:]\s*$/,"")),pr==="optional"&&!xr&&(it=d.createElement(d.Fragment,null,it,d.createElement("span",{className:"".concat(dr,"-item-optional")},(on==null?void 0:on.optional)||(($t=Pe.a.Form)===null||$t===void 0?void 0:$t.optional))));var Yt=o()((Xn={},f()(Xn,"".concat(dr,"-item-required"),xr),f()(Xn,"".concat(dr,"-item-required-mark-optional"),pr==="optional"),f()(Xn,"".concat(dr,"-item-no-colon"),!yt),Xn));return d.createElement(Se.a,p()({},Nt,{className:Be}),d.createElement("label",{htmlFor:rr,className:Yt,title:typeof vt=="string"?vt:""},it))}):null},Ge=Je,ct=i("gZBC"),Ue=i.n(ct),ae=i("kbBi"),lt=i.n(ae),pe=i("J84W"),J=i.n(pe),Y=i("sKbD"),ee=i.n(Y),fe=i("YrtM"),we=i("HTfv"),Ce=i("hkKa");function _e(me,Wt,dr){var vt=d.useRef({errors:me,visible:!!me.length}),rr=Object(Ce.a)(),ur=function(){var sr=vt.current.visible,xr=!!me.length,pr=vt.current.errors;vt.current.errors=me,vt.current.visible=xr,sr!==xr?Wt(xr):(pr.length!==me.length||pr.some(function(Zt,Ct){return Zt!==me[Ct]}))&&rr()};return d.useEffect(function(){if(!dr){var mn=setTimeout(ur,10);return function(){return clearTimeout(mn)}}},[me]),dr&&ur(),[vt.current.visible,vt.current.errors]}var he={success:J.a,warning:ee.a,error:lt.a,validating:Ue.a},ye=function(Wt){var dr=Wt.prefixCls,vt=Wt.wrapperCol,rr=Wt.children,ur=Wt.help,mn=Wt.errors,sr=Wt.onDomErrorVisibleChange,xr=Wt.hasFeedback,pr=Wt.validateStatus,Zt=Wt.extra,Ct=Object(Ce.a)(),on="".concat(dr,"-item"),Mn=d.useContext(e),Xn=vt||Mn.wrapperCol||{},oi=o()("".concat(on,"-control"),Xn.className),Ui=_e(mn,function(it){it&&Promise.resolve().then(function(){sr(!0)}),Ct()},!!ur),Un=v()(Ui,2),Qn=Un[0],$t=Un[1];d.useEffect(function(){return function(){sr(!1)}},[]);var Nt=Object(fe.a)(function(){return $t},Qn,function(it,yt){return yt}),Me=pr&&he[pr],ke=xr&&Me?d.createElement("span",{className:"".concat(on,"-children-icon")},d.createElement(Me,null)):null,Be=p()({},Mn);return delete Be.labelCol,delete Be.wrapperCol,d.createElement(e.Provider,{value:Be},d.createElement(Se.a,p()({},Xn,{className:oi}),d.createElement("div",{className:"".concat(on,"-control-input")},d.createElement("div",{className:"".concat(on,"-control-input-content")},rr),ke),d.createElement(we.default,{motionDeadline:500,visible:Qn,motionName:"show-help",onLeaveEnd:function(){sr(!1)},motionAppear:!0,removeOnLeave:!0},function(it){var yt=it.className;return d.createElement("div",{className:o()("".concat(on,"-explain"),yt),key:"help"},Nt.map(function(Tt,Yt){return d.createElement("div",{key:Yt,role:"alert"},Tt)}))}),Zt&&d.createElement("div",{className:"".concat(on,"-extra")},Zt)))},Le=ye,tt=i("0n0R"),gt=i("xEkU"),at=i.n(gt);function Fe(me){var Wt=d.useState(me),dr=v()(Wt,2),vt=dr[0],rr=dr[1],ur=Object(d.useRef)(null),mn=Object(d.useRef)([]),sr=Object(d.useRef)(!1);d.useEffect(function(){return function(){sr.current=!0,at.a.cancel(ur.current)}},[]);function xr(pr){if(sr.current)return;ur.current===null&&(mn.current=[],ur.current=at()(function(){ur.current=null,rr(function(Zt){var Ct=Zt;return mn.current.forEach(function(on){Ct=on(Ct)}),Ct})})),mn.current.push(pr)}return[vt,xr]}function mt(){var me=d.useContext(e),Wt=me.itemRef,dr=d.useRef({});function vt(rr,ur){var mn=ur&&j()(ur)==="object"&&ur.ref,sr=rr.join("_");return(dr.current.name!==sr||dr.current.originRef!==mn)&&(dr.current.name=sr,dr.current.originRef=mn,dr.current.ref=Object(te.a)(Wt(rr),mn)),dr.current.ref}return vt}var et=function(me,Wt){var dr={};for(var vt in me)Object.prototype.hasOwnProperty.call(me,vt)&&Wt.indexOf(vt)<0&&(dr[vt]=me[vt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rr=0,vt=Object.getOwnPropertySymbols(me);rr<vt.length;rr++)Wt.indexOf(vt[rr])<0&&Object.prototype.propertyIsEnumerable.call(me,vt[rr])&&(dr[vt[rr]]=me[vt[rr]]);return dr},St=Object(le.a)("success","warning","error","validating",""),jt=d.memo(function(me){var Wt=me.children;return Wt},function(me,Wt){return me.value===Wt.value&&me.update===Wt.update});function Mt(me){return me===null&&Object(re.a)(!1,"Form.Item","`null` is passed as `name` property"),!(me==null)}function Ot(me){var Wt=me.name,dr=me.fieldKey,vt=me.noStyle,rr=me.dependencies,ur=me.prefixCls,mn=me.style,sr=me.className,xr=me.shouldUpdate,pr=me.hasFeedback,Zt=me.help,Ct=me.rules,on=me.validateStatus,Mn=me.children,Xn=me.required,oi=me.label,Ui=me.trigger,Un=Ui===void 0?"onChange":Ui,Qn=me.validateTrigger,$t=me.hidden,Nt=et(me,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),Me=d.useRef(!1),ke=d.useContext(t.b),Be=ke.getPrefixCls,it=d.useContext(e),yt=it.name,Tt=it.requiredMark,Yt=d.useContext(u),Pr=Yt.updateItemErrors,$r=d.useState(!!Zt),An=v()($r,2),zt=An[0],At=An[1],wt=d.useRef(on),vr=Fe({}),Jt=v()(vr,2),Ut=Jt[0],tr=Jt[1],Ft=d.useContext(X.b),qt=Ft.validateTrigger,Hr=Qn!==void 0?Qn:qt;function Nr(nt){Me.current||At(nt)}var Dr=Mt(Wt),cn=d.useRef([]);d.useEffect(function(){return function(){Me.current=!0,Pr(cn.current.join("__SPLIT__"),[])}},[]);var vn=Be("form",ur),ei=vt?Pr:function(nt,Ne){tr(function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Q()(He[nt],Ne)?He:p()(p()({},He),f()({},nt,Ne))})},qn=mt();function fi(nt,Ne,He,Xe){var rt,Ze;if(vt&&!$t)return nt;var st=[];Object.keys(Ut).forEach(function(Zr){st=[].concat(z()(st),z()(Ut[Zr]||[]))});var xt;Zt!=null?xt=T(Zt):(xt=He?He.errors:[],xt=[].concat(z()(xt),z()(st)));var pt="";on!==void 0?pt=on:(He==null?void 0:He.validating)?pt="validating":((Ze=He==null?void 0:He.errors)===null||Ze===void 0?void 0:Ze.length)||st.length?pt="error":(He==null?void 0:He.touched)&&(pt="success"),zt&&Zt&&(wt.current=pt);var hr=(rt={},f()(rt,"".concat(vn,"-item"),!0),f()(rt,"".concat(vn,"-item-with-help"),zt||Zt),f()(rt,"".concat(sr),!!sr),f()(rt,"".concat(vn,"-item-has-feedback"),pt&&pr),f()(rt,"".concat(vn,"-item-has-success"),pt==="success"),f()(rt,"".concat(vn,"-item-has-warning"),pt==="warning"),f()(rt,"".concat(vn,"-item-has-error"),pt==="error"),f()(rt,"".concat(vn,"-item-has-error-leave"),!Zt&&zt&&wt.current==="error"),f()(rt,"".concat(vn,"-item-is-validating"),pt==="validating"),f()(rt,"".concat(vn,"-item-hidden"),$t),rt);return d.createElement($.a,p()({className:o()(hr),style:mn,key:"row"},Object(a.default)(Nt,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),d.createElement(Ge,p()({htmlFor:Ne,required:Xe,requiredMark:Tt},me,{prefixCls:vn})),d.createElement(Le,p()({},me,He,{errors:xt,prefixCls:vn,onDomErrorVisibleChange:Nr,validateStatus:pt}),d.createElement(u.Provider,{value:{updateItemErrors:ei}},nt)))}var xi=typeof Mn=="function",Ni=d.useRef(0);if(Ni.current+=1,!Dr&&!xi&&!rr)return fi(Mn);var Hi={};return typeof oi=="string"&&(Hi.label=oi),d.createElement(n.Field,p()({},me,{messageVariables:Hi,trigger:Un,validateTrigger:Hr,onReset:function(){Nr(!1)}}),function(nt,Ne,He){var Xe=Ne.errors,rt=T(Wt).length&&Ne?Ne.name:[],Ze=S(rt,yt);if(vt){if(cn.current=z()(rt),dr){var st=Array.isArray(dr)?dr:[dr];cn.current=[].concat(z()(rt.slice(0,-1)),z()(st))}Pr(cn.current.join("__SPLIT__"),Xe)}var xt=Xn!==void 0?Xn:!!(Ct&&Ct.some(function(pn){if(pn&&j()(pn)==="object"&&pn.required)return!0;if(typeof pn=="function"){var gr=pn(He);return gr&&gr.required}return!1})),pt=p()({},nt),hr=null;if(Object(re.a)(!(xr&&rr),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(Mn)&&Dr)Object(re.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),hr=Mn;else if(xi&&(!(xr||rr)||Dr))Object(re.a)(!!(xr||rr),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(re.a)(!Dr,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(rr&&!xi&&!Dr)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 Zr=p()(p()({},Mn.props),pt);Zr.id||(Zr.id=Ze),Object(te.c)(Mn)&&(Zr.ref=qn(rt,Mn));var Xr=new Set([].concat(z()(T(Un)),z()(T(Hr))));Xr.forEach(function(pn){Zr[pn]=function(){for(var gr,Kn,Rr,Pn,an,Ur=arguments.length,ii=new Array(Ur),_i=0;_i<Ur;_i++)ii[_i]=arguments[_i];(Rr=pt[pn])===null||Rr===void 0||(gr=Rr).call.apply(gr,[pt].concat(ii)),(an=(Pn=Mn.props)[pn])===null||an===void 0||(Kn=an).call.apply(Kn,[Pn].concat(ii))}}),hr=d.createElement(jt,{value:pt[me.valuePropName||"value"],update:Ni.current},Object(tt.a)(Mn,Zr))}else xi&&(xr||rr)&&!Dr?hr=Mn(He):(Object(re.a)(!rt.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),hr=Mn);return fi(hr,Ze,Ne,xt)})}var Bt=Ot,Ke=function(me,Wt){var dr={};for(var vt in me)Object.prototype.hasOwnProperty.call(me,vt)&&Wt.indexOf(vt)<0&&(dr[vt]=me[vt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rr=0,vt=Object.getOwnPropertySymbols(me);rr<vt.length;rr++)Wt.indexOf(vt[rr])<0&&Object.prototype.propertyIsEnumerable.call(me,vt[rr])&&(dr[vt[rr]]=me[vt[rr]]);return dr},de=function(Wt){var dr=Wt.children,vt=Ke(Wt,["children"]);return Object(re.a)(!!vt.name,"Form.List","Miss `name` prop."),d.createElement(n.List,vt,function(rr,ur){return dr(rr.map(function(mn){return p()(p()({},mn),{fieldKey:mn.key})}),ur)})},se=de,ut=G;ut.Item=Bt,ut.List=se,ut.useForm=I,ut.Provider=r,ut.create=function(){Object(re.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var qe=D.a=ut},VpOo:function(R,D){function i(y,p){var x=p.x,v=p.y,m=p.width,f=p.height,d=p.r,l,o,n,t;m<0&&(x=x+m,m=-m),f<0&&(v=v+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(x+l,v),y.lineTo(x+m-o,v),o!==0&&y.arc(x+m-o,v+o,o,-Math.PI/2,0),y.lineTo(x+m,v+f-n),n!==0&&y.arc(x+m-n,v+f-n,n,0,Math.PI/2),y.lineTo(x+t,v+f),t!==0&&y.arc(x+t,v+f-t,t,Math.PI/2,Math.PI),y.lineTo(x,v+l),l!==0&&y.arc(x+l,v+l,l,Math.PI,Math.PI*1.5)}D.buildPath=i},"VrN/":function(R,D,i){(function(y,p){R.exports=p()})(this,function(){"use strict";var y=navigator.userAgent,p=navigator.platform,x=/gecko\/\d/i.test(y),v=/MSIE \d/.test(y),m=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(y),f=/Edge\/(\d+)/.exec(y),d=v||m||f,l=d&&(v?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),A=/\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 E=g&&(n||a&&(w==null||w<12.11)),C=x||d&&l>=9;function _(N){return new RegExp("(^|\\s)"+N+"(?:$|\\s)\\s*")}var T=function(U,ie){var ue=U.className,ge=_(ie).exec(ue);if(ge){var We=ue.slice(ge.index+ge[0].length);U.className=ue.slice(0,ge.index)+(We?ge[1]+We:"")}};function S(N){for(var U=N.childNodes.length;U>0;--U)N.removeChild(N.firstChild);return N}function O(N,U){return S(N).appendChild(U)}function I(N,U,ie,ue){var ge=document.createElement(N);if(ie&&(ge.className=ie),ue&&(ge.style.cssText=ue),typeof U=="string")ge.appendChild(document.createTextNode(U));else if(U)for(var We=0;We<U.length;++We)ge.appendChild(U[We]);return ge}function F(N,U,ie,ue){var ge=I(N,U,ie,ue);return ge.setAttribute("role","presentation"),ge}var P;document.createRange?P=function(U,ie,ue,ge){var We=document.createRange();return We.setEnd(ge||U,ue),We.setStart(U,ie),We}:P=function(U,ie,ue){var ge=document.body.createTextRange();try{ge.moveToElementText(U.parentNode)}catch(We){return ge}return ge.collapse(!0),ge.moveEnd("character",ue),ge.moveStart("character",ie),ge};function B(N,U){if(U.nodeType==3&&(U=U.parentNode),N.contains)return N.contains(U);do if(U.nodeType==11&&(U=U.host),U==N)return!0;while(U=U.parentNode)}function k(){var N;try{N=document.activeElement}catch(U){N=document.body||null}for(;N&&N.shadowRoot&&N.shadowRoot.activeElement;)N=N.shadowRoot.activeElement;return N}function G(N,U){var ie=N.className;_(U).test(ie)||(N.className+=(ie?" ":"")+U)}function M(N,U){for(var ie=N.split(" "),ue=0;ue<ie.length;ue++)ie[ue]&&!_(ie[ue]).test(U)&&(U+=" "+ie[ue]);return U}var j=function(U){U.select()};s?j=function(U){U.selectionStart=0,U.selectionEnd=U.value.length}:d&&(j=function(U){try{U.select()}catch(ie){}});function K(N){var U=Array.prototype.slice.call(arguments,1);return function(){return N.apply(null,U)}}function z(N,U,ie){U||(U={});for(var ue in N)N.hasOwnProperty(ue)&&(ie!==!1||!U.hasOwnProperty(ue))&&(U[ue]=N[ue]);return U}function V(N,U,ie,ue,ge){U==null&&(U=N.search(/[^\s\u00a0]/),U==-1&&(U=N.length));for(var We=ue||0,Lt=ge||0;;){var nr=N.indexOf(" ",We);if(nr<0||nr>=U)return Lt+(U-We);Lt+=nr-We,Lt+=ie-Lt%ie,We=nr+1}}var Q=function(){this.id=null,this.f=null,this.time=0,this.handler=K(this.onTimeout,this)};Q.prototype.onTimeout=function(N){N.id=0,N.time<=+new Date?N.f():setTimeout(N.handler,N.time-+new Date)},Q.prototype.set=function(N,U){this.f=U;var ie=+new Date+N;(!this.id||ie<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,N),this.time=ie)};function X(N,U){for(var ie=0;ie<N.length;++ie)if(N[ie]==U)return ie;return-1}var te=50,$={toString:function(){return"CodeMirror.Pass"}},le={scroll:!1},re={origin:"*mouse"},Se={origin:"+move"};function Re(N,U,ie){for(var ue=0,ge=0;;){var We=N.indexOf(" ",ue);We==-1&&(We=N.length);var Lt=We-ue;if(We==N.length||ge+Lt>=U)return ue+Math.min(Lt,U-ge);if(ge+=We-ue,ge+=ie-ge%ie,ue=We+1,ge>=U)return ue}}var Pe=[""];function Je(N){for(;Pe.length<=N;)Pe.push(Ge(Pe)+" ");return Pe[N]}function Ge(N){return N[N.length-1]}function ct(N,U){for(var ie=[],ue=0;ue<N.length;ue++)ie[ue]=U(N[ue],ue);return ie}function Ue(N,U,ie){for(var ue=0,ge=ie(U);ue<N.length&&ie(N[ue])<=ge;)ue++;N.splice(ue,0,U)}function ae(){}function lt(N,U){var ie;return Object.create?ie=Object.create(N):(ae.prototype=N,ie=new ae),U&&z(U,ie),ie}var pe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function J(N){return/\w/.test(N)||N>"\x80"&&(N.toUpperCase()!=N.toLowerCase()||pe.test(N))}function Y(N,U){return U?U.source.indexOf("\\w")>-1&&J(N)?!0:U.test(N):J(N)}function ee(N){for(var U in N)if(N.hasOwnProperty(U)&&N[U])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 we(N){return N.charCodeAt(0)>=768&&fe.test(N)}function Ce(N,U,ie){for(;(ie<0?U>0:U<N.length)&&we(N.charAt(U));)U+=ie;return U}function _e(N,U,ie){for(var ue=U>ie?-1:1;;){if(U==ie)return U;var ge=(U+ie)/2,We=ue<0?Math.ceil(ge):Math.floor(ge);if(We==U)return N(We)?U:ie;N(We)?ie=We:U=We+ue}}function he(N,U,ie,ue){if(!N)return ue(U,ie,"ltr",0);for(var ge=!1,We=0;We<N.length;++We){var Lt=N[We];(Lt.from<ie&&Lt.to>U||U==ie&&Lt.to==U)&&(ue(Math.max(Lt.from,U),Math.min(Lt.to,ie),Lt.level==1?"rtl":"ltr",We),ge=!0)}ge||ue(U,ie,"ltr")}var ye=null;function Le(N,U,ie){var ue;ye=null;for(var ge=0;ge<N.length;++ge){var We=N[ge];if(We.from<U&&We.to>U)return ge;We.to==U&&(We.from!=We.to&&ie=="before"?ue=ge:ye=ge),We.from==U&&(We.from!=We.to&&ie!="before"?ue=ge:ye=ge)}return ue!=null?ue:ye}var tt=function(){var N="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",U="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ie(_r){return _r<=247?N.charAt(_r):1424<=_r&&_r<=1524?"R":1536<=_r&&_r<=1785?U.charAt(_r-1536):1774<=_r&&_r<=2220?"r":8192<=_r&&_r<=8203?"w":_r==8204?"b":"L"}var ue=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ge=/[stwN]/,We=/[LRr]/,Lt=/[Lb1n]/,nr=/[1n]/;function br(_r,Bn,ti){this.level=_r,this.from=Bn,this.to=ti}return function(_r,Bn){var ti=Bn=="ltr"?"L":"R";if(_r.length==0||Bn=="ltr"&&!ue.test(_r))return!1;for(var Si=_r.length,Ci=[],la=0;la<Si;++la)Ci.push(ie(_r.charCodeAt(la)));for(var Ta=0,Wa=ti;Ta<Si;++Ta){var Ma=Ci[Ta];Ma=="m"?Ci[Ta]=Wa:Wa=Ma}for(var Na=0,qa=ti;Na<Si;++Na){var ho=Ci[Na];ho=="1"&&qa=="r"?Ci[Na]="n":We.test(ho)&&(qa=ho,ho=="r"&&(Ci[Na]="R"))}for(var ns=1,Mo=Ci[0];ns<Si-1;++ns){var Ss=Ci[ns];Ss=="+"&&Mo=="1"&&Ci[ns+1]=="1"?Ci[ns]="1":Ss==","&&Mo==Ci[ns+1]&&(Mo=="1"||Mo=="n")&&(Ci[ns]=Mo),Mo=Ss}for(var Zs=0;Zs<Si;++Zs){var yl=Ci[Zs];if(yl==",")Ci[Zs]="N";else if(yl=="%"){var ul=void 0;for(ul=Zs+1;ul<Si&&Ci[ul]=="%";++ul);for(var Pl=Zs&&Ci[Zs-1]=="!"||ul<Si&&Ci[ul]=="1"?"1":"N",Vl=Zs;Vl<ul;++Vl)Ci[Vl]=Pl;Zs=ul-1}}for(var Il=0,Gl=ti;Il<Si;++Il){var Fl=Ci[Il];Gl=="L"&&Fl=="1"?Ci[Il]="L":We.test(Fl)&&(Gl=Fl)}for(var Ja=0;Ja<Si;++Ja)if(ge.test(Ci[Ja])){var vl=void 0;for(vl=Ja+1;vl<Si&&ge.test(Ci[vl]);++vl);for(var gl=(Ja?Ci[Ja-1]:ti)=="L",El=(vl<Si?Ci[vl]:ti)=="L",Bu=gl==El?gl?"L":"R":ti,Ks=Ja;Ks<vl;++Ks)Ci[Ks]=Bu;Ja=vl-1}for(var vs=[],lu,Kl=0;Kl<Si;)if(Lt.test(Ci[Kl])){var Uu=Kl;for(++Kl;Kl<Si&&Lt.test(Ci[Kl]);++Kl);vs.push(new br(0,Uu,Kl))}else{var Eu=Kl,uu=vs.length,ku=Bn=="rtl"?1:0;for(++Kl;Kl<Si&&Ci[Kl]!="L";++Kl);for(var Yl=Eu;Yl<Kl;)if(nr.test(Ci[Yl])){Eu<Yl&&(vs.splice(uu,0,new br(1,Eu,Yl)),uu+=ku);var Tu=Yl;for(++Yl;Yl<Kl&&nr.test(Ci[Yl]);++Yl);vs.splice(uu,0,new br(2,Tu,Yl)),uu+=ku,Eu=Yl}else++Yl;Eu<Kl&&vs.splice(uu,0,new br(1,Eu,Kl))}return Bn=="ltr"&&(vs[0].level==1&&(lu=_r.match(/^\s+/))&&(vs[0].from=lu[0].length,vs.unshift(new br(0,0,lu[0].length))),Ge(vs).level==1&&(lu=_r.match(/\s+$/))&&(Ge(vs).to-=lu[0].length,vs.push(new br(0,Si-lu[0].length,Si)))),Bn=="rtl"?vs.reverse():vs}}();function gt(N,U){var ie=N.order;return ie==null&&(ie=N.order=tt(N.text,U)),ie}var at=[],Fe=function(U,ie,ue){if(U.addEventListener)U.addEventListener(ie,ue,!1);else if(U.attachEvent)U.attachEvent("on"+ie,ue);else{var ge=U._handlers||(U._handlers={});ge[ie]=(ge[ie]||at).concat(ue)}};function mt(N,U){return N._handlers&&N._handlers[U]||at}function et(N,U,ie){if(N.removeEventListener)N.removeEventListener(U,ie,!1);else if(N.detachEvent)N.detachEvent("on"+U,ie);else{var ue=N._handlers,ge=ue&&ue[U];if(ge){var We=X(ge,ie);We>-1&&(ue[U]=ge.slice(0,We).concat(ge.slice(We+1)))}}}function St(N,U){var ie=mt(N,U);if(!ie.length)return;for(var ue=Array.prototype.slice.call(arguments,2),ge=0;ge<ie.length;++ge)ie[ge].apply(null,ue)}function jt(N,U,ie){return typeof U=="string"&&(U={type:U,preventDefault:function(){this.defaultPrevented=!0}}),St(N,ie||U.type,N,U),se(U)||U.codemirrorIgnore}function Mt(N){var U=N._handlers&&N._handlers.cursorActivity;if(!U)return;for(var ie=N.curOp.cursorActivityHandlers||(N.curOp.cursorActivityHandlers=[]),ue=0;ue<U.length;++ue)X(ie,U[ue])==-1&&ie.push(U[ue])}function Ot(N,U){return mt(N,U).length>0}function Bt(N){N.prototype.on=function(U,ie){Fe(this,U,ie)},N.prototype.off=function(U,ie){et(this,U,ie)}}function Ke(N){N.preventDefault?N.preventDefault():N.returnValue=!1}function de(N){N.stopPropagation?N.stopPropagation():N.cancelBubble=!0}function se(N){return N.defaultPrevented!=null?N.defaultPrevented:N.returnValue==!1}function ut(N){Ke(N),de(N)}function qe(N){return N.target||N.srcElement}function me(N){var U=N.which;return U==null&&(N.button&1?U=1:N.button&2?U=3:N.button&4&&(U=2)),g&&N.ctrlKey&&U==1&&(U=3),U}var Wt=function(){if(d&&l<9)return!1;var N=I("div");return"draggable"in N||"dragDrop"in N}(),dr;function vt(N){if(dr==null){var U=I("span","\u200B");O(N,I("span",[U,document.createTextNode("x")])),N.firstChild.offsetHeight!=0&&(dr=U.offsetWidth<=1&&U.offsetHeight>2&&!(d&&l<8))}var ie=dr?I("span","\u200B"):I("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ie.setAttribute("cm-text",""),ie}var rr;function ur(N){if(rr!=null)return rr;var U=O(N,document.createTextNode("A\u062EA")),ie=P(U,0,1).getBoundingClientRect(),ue=P(U,1,2).getBoundingClientRect();return S(N),!ie||ie.left==ie.right?!1:rr=ue.right-ie.right<3}var mn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(N){for(var U=0,ie=[],ue=N.length;U<=ue;){var ge=N.indexOf(`
|
|
|
`,U);ge==-1&&(ge=N.length);var We=N.slice(U,N.charAt(ge-1)=="\r"?ge-1:ge),Lt=We.indexOf("\r");Lt!=-1?(ie.push(We.slice(0,Lt)),U+=Lt+1):(ie.push(We),U=ge+1)}return ie}:function(N){return N.split(/\r\n?|\n/)},sr=window.getSelection?function(N){try{return N.selectionStart!=N.selectionEnd}catch(U){return!1}}:function(N){var U;try{U=N.ownerDocument.selection.createRange()}catch(ie){}return!U||U.parentElement()!=N?!1:U.compareEndPoints("StartToEnd",U)!=0},xr=function(){var N=I("div");return"oncopy"in N?!0:(N.setAttribute("oncopy","return;"),typeof N.oncopy=="function")}(),pr=null;function Zt(N){if(pr!=null)return pr;var U=O(N,I("span","x")),ie=U.getBoundingClientRect(),ue=P(U,0,1).getBoundingClientRect();return pr=Math.abs(ie.left-ue.left)>1}var Ct={},on={};function Mn(N,U){arguments.length>2&&(U.dependencies=Array.prototype.slice.call(arguments,2)),Ct[N]=U}function Xn(N,U){on[N]=U}function oi(N){if(typeof N=="string"&&on.hasOwnProperty(N))N=on[N];else if(N&&typeof N.name=="string"&&on.hasOwnProperty(N.name)){var U=on[N.name];typeof U=="string"&&(U={name:U}),N=lt(U,N),N.name=U.name}else{if(typeof N=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(N))return oi("application/xml");if(typeof N=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(N))return oi("application/json")}return typeof N=="string"?{name:N}:N||{name:"null"}}function Ui(N,U){U=oi(U);var ie=Ct[U.name];if(!ie)return Ui(N,"text/plain");var ue=ie(N,U);if(Un.hasOwnProperty(U.name)){var ge=Un[U.name];for(var We in ge){if(!ge.hasOwnProperty(We))continue;ue.hasOwnProperty(We)&&(ue["_"+We]=ue[We]),ue[We]=ge[We]}}if(ue.name=U.name,U.helperType&&(ue.helperType=U.helperType),U.modeProps)for(var Lt in U.modeProps)ue[Lt]=U.modeProps[Lt];return ue}var Un={};function Qn(N,U){var ie=Un.hasOwnProperty(N)?Un[N]:Un[N]={};z(U,ie)}function $t(N,U){if(U===!0)return U;if(N.copyState)return N.copyState(U);var ie={};for(var ue in U){var ge=U[ue];ge instanceof Array&&(ge=ge.concat([])),ie[ue]=ge}return ie}function Nt(N,U){for(var ie;N.innerMode&&!(ie=N.innerMode(U),!ie||ie.mode==N);)U=ie.state,N=ie.mode;return ie||{mode:N,state:U}}function Me(N,U,ie){return N.startState?N.startState(U,ie):!0}var ke=function(U,ie,ue){this.pos=this.start=0,this.string=U,this.tabSize=ie||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ue};ke.prototype.eol=function(){return this.pos>=this.string.length},ke.prototype.sol=function(){return this.pos==this.lineStart},ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ke.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ke.prototype.eat=function(N){var U=this.string.charAt(this.pos),ie;if(typeof N=="string"?ie=U==N:ie=U&&(N.test?N.test(U):N(U)),ie)return++this.pos,U},ke.prototype.eatWhile=function(N){for(var U=this.pos;this.eat(N););return this.pos>U},ke.prototype.eatSpace=function(){for(var N=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>N},ke.prototype.skipToEnd=function(){this.pos=this.string.length},ke.prototype.skipTo=function(N){var U=this.string.indexOf(N,this.pos);if(U>-1)return this.pos=U,!0},ke.prototype.backUp=function(N){this.pos-=N},ke.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)},ke.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},ke.prototype.match=function(N,U,ie){if(typeof N=="string"){var ue=function(nr){return ie?nr.toLowerCase():nr},ge=this.string.substr(this.pos,N.length);if(ue(ge)==ue(N))return U!==!1&&(this.pos+=N.length),!0}else{var We=this.string.slice(this.pos).match(N);return We&&We.index>0?null:(We&&U!==!1&&(this.pos+=We[0].length),We)}},ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},ke.prototype.hideFirstChars=function(N,U){this.lineStart+=N;try{return U()}finally{this.lineStart-=N}},ke.prototype.lookAhead=function(N){var U=this.lineOracle;return U&&U.lookAhead(N)},ke.prototype.baseToken=function(){var N=this.lineOracle;return N&&N.baseToken(this.pos)};function Be(N,U){if(U-=N.first,U<0||U>=N.size)throw new Error("There is no line "+(U+N.first)+" in the document.");for(var ie=N;!ie.lines;)for(var ue=0;;++ue){var ge=ie.children[ue],We=ge.chunkSize();if(U<We){ie=ge;break}U-=We}return ie.lines[U]}function it(N,U,ie){var ue=[],ge=U.line;return N.iter(U.line,ie.line+1,function(We){var Lt=We.text;ge==ie.line&&(Lt=Lt.slice(0,ie.ch)),ge==U.line&&(Lt=Lt.slice(U.ch)),ue.push(Lt),++ge}),ue}function yt(N,U,ie){var ue=[];return N.iter(U,ie,function(ge){ue.push(ge.text)}),ue}function Tt(N,U){var ie=U-N.height;if(ie)for(var ue=N;ue;ue=ue.parent)ue.height+=ie}function Yt(N){if(N.parent==null)return null;for(var U=N.parent,ie=X(U.lines,N),ue=U.parent;ue;U=ue,ue=ue.parent)for(var ge=0;!(ue.children[ge]==U);++ge)ie+=ue.children[ge].chunkSize();return ie+U.first}function Pr(N,U){var ie=N.first;e:do{for(var ue=0;ue<N.children.length;++ue){var ge=N.children[ue],We=ge.height;if(U<We){N=ge;continue e}U-=We,ie+=ge.chunkSize()}return ie}while(!N.lines);for(var Lt=0;Lt<N.lines.length;++Lt){var nr=N.lines[Lt],br=nr.height;if(U<br)break;U-=br}return ie+Lt}function $r(N,U){return U>=N.first&&U<N.first+N.size}function An(N,U){return String(N.lineNumberFormatter(U+N.firstLineNumber))}function zt(N,U,ie){if(ie===void 0&&(ie=null),!(this instanceof zt))return new zt(N,U,ie);this.line=N,this.ch=U,this.sticky=ie}function At(N,U){return N.line-U.line||N.ch-U.ch}function wt(N,U){return N.sticky==U.sticky&&At(N,U)==0}function vr(N){return zt(N.line,N.ch)}function Jt(N,U){return At(N,U)<0?U:N}function Ut(N,U){return At(N,U)<0?N:U}function tr(N,U){return Math.max(N.first,Math.min(U,N.first+N.size-1))}function Ft(N,U){if(U.line<N.first)return zt(N.first,0);var ie=N.first+N.size-1;return U.line>ie?zt(ie,Be(N,ie).text.length):qt(U,Be(N,U.line).text.length)}function qt(N,U){var ie=N.ch;return ie==null||ie>U?zt(N.line,U):ie<0?zt(N.line,0):N}function Hr(N,U){for(var ie=[],ue=0;ue<U.length;ue++)ie[ue]=Ft(N,U[ue]);return ie}var Nr=function(U,ie){this.state=U,this.lookAhead=ie},Dr=function(U,ie,ue,ge){this.state=ie,this.doc=U,this.line=ue,this.maxLookAhead=ge||0,this.baseTokens=null,this.baseTokenPos=1};Dr.prototype.lookAhead=function(N){var U=this.doc.getLine(this.line+N);return U!=null&&N>this.maxLookAhead&&(this.maxLookAhead=N),U},Dr.prototype.baseToken=function(N){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=N;)this.baseTokenPos+=2;var U=this.baseTokens[this.baseTokenPos+1];return{type:U&&U.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-N}},Dr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Dr.fromSaved=function(N,U,ie){return U instanceof Nr?new Dr(N,$t(N.mode,U.state),ie,U.lookAhead):new Dr(N,$t(N.mode,U),ie)},Dr.prototype.save=function(N){var U=N!==!1?$t(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Nr(U,this.maxLookAhead):U};function cn(N,U,ie,ue){var ge=[N.state.modeGen],We={};Ne(N,U.text,N.doc.mode,ie,function(_r,Bn){return ge.push(_r,Bn)},We,ue);for(var Lt=ie.state,nr=function(Bn){ie.baseTokens=ge;var ti=N.state.overlays[Bn],Si=1,Ci=0;ie.state=!0,Ne(N,U.text,ti.mode,ie,function(la,Ta){for(var Wa=Si;Ci<la;){var Ma=ge[Si];Ma>la&&ge.splice(Si,1,la,ge[Si+1],Ma),Si+=2,Ci=Math.min(la,Ma)}if(!Ta)return;if(ti.opaque)ge.splice(Wa,Si-Wa,la,"overlay "+Ta),Si=Wa+2;else for(;Wa<Si;Wa+=2){var Na=ge[Wa+1];ge[Wa+1]=(Na?Na+" ":"")+"overlay "+Ta}},We),ie.state=Lt,ie.baseTokens=null,ie.baseTokenPos=1},br=0;br<N.state.overlays.length;++br)nr(br);return{styles:ge,classes:We.bgClass||We.textClass?We:null}}function vn(N,U,ie){if(!U.styles||U.styles[0]!=N.state.modeGen){var ue=ei(N,Yt(U)),ge=U.text.length>N.options.maxHighlightLength&&$t(N.doc.mode,ue.state),We=cn(N,U,ue);ge&&(ue.state=ge),U.stateAfter=ue.save(!ge),U.styles=We.styles,We.classes?U.styleClasses=We.classes:U.styleClasses&&(U.styleClasses=null),ie===N.doc.highlightFrontier&&(N.doc.modeFrontier=Math.max(N.doc.modeFrontier,++N.doc.highlightFrontier))}return U.styles}function ei(N,U,ie){var ue=N.doc,ge=N.display;if(!ue.mode.startState)return new Dr(ue,!0,U);var We=He(N,U,ie),Lt=We>ue.first&&Be(ue,We-1).stateAfter,nr=Lt?Dr.fromSaved(ue,Lt,We):new Dr(ue,Me(ue.mode),We);return ue.iter(We,U,function(br){qn(N,br.text,nr);var _r=nr.line;br.stateAfter=_r==U-1||_r%5==0||_r>=ge.viewFrom&&_r<ge.viewTo?nr.save():null,nr.nextLine()}),ie&&(ue.modeFrontier=nr.line),nr}function qn(N,U,ie,ue){var ge=N.doc.mode,We=new ke(U,N.options.tabSize,ie);for(We.start=We.pos=ue||0,U==""&&fi(ge,ie.state);!We.eol();)xi(ge,We,ie.state),We.start=We.pos}function fi(N,U){if(N.blankLine)return N.blankLine(U);if(!N.innerMode)return;var ie=Nt(N,U);if(ie.mode.blankLine)return ie.mode.blankLine(ie.state)}function xi(N,U,ie,ue){for(var ge=0;ge<10;ge++){ue&&(ue[0]=Nt(N,ie).mode);var We=N.token(U,ie);if(U.pos>U.start)return We}throw new Error("Mode "+N.name+" failed to advance stream.")}var Ni=function(U,ie,ue){this.start=U.start,this.end=U.pos,this.string=U.current(),this.type=ie||null,this.state=ue};function Hi(N,U,ie,ue){var ge=N.doc,We=ge.mode,Lt;U=Ft(ge,U);var nr=Be(ge,U.line),br=ei(N,U.line,ie),_r=new ke(nr.text,N.options.tabSize,br),Bn;for(ue&&(Bn=[]);(ue||_r.pos<U.ch)&&!_r.eol();)_r.start=_r.pos,Lt=xi(We,_r,br.state),ue&&Bn.push(new Ni(_r,Lt,$t(ge.mode,br.state)));return ue?Bn:new Ni(_r,Lt,br.state)}function nt(N,U){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 ue=ie[1]?"bgClass":"textClass";U[ue]==null?U[ue]=ie[2]:new RegExp("(?:^|\\s)"+ie[2]+"(?:$|\\s)").test(U[ue])||(U[ue]+=" "+ie[2])}return N}function Ne(N,U,ie,ue,ge,We,Lt){var nr=ie.flattenSpans;nr==null&&(nr=N.options.flattenSpans);var br=0,_r=null,Bn=new ke(U,N.options.tabSize,ue),ti,Si=N.options.addModeClass&&[null];for(U==""&&nt(fi(ie,ue.state),We);!Bn.eol();){if(Bn.pos>N.options.maxHighlightLength?(nr=!1,Lt&&qn(N,U,ue,Bn.pos),Bn.pos=U.length,ti=null):ti=nt(xi(ie,Bn,ue.state,Si),We),Si){var Ci=Si[0].name;Ci&&(ti="m-"+(ti?Ci+" "+ti:Ci))}if(!nr||_r!=ti){for(;br<Bn.start;)br=Math.min(Bn.start,br+5e3),ge(br,_r);_r=ti}Bn.start=Bn.pos}for(;br<Bn.pos;){var la=Math.min(Bn.pos,br+5e3);ge(la,_r),br=la}}function He(N,U,ie){for(var ue,ge,We=N.doc,Lt=ie?-1:U-(N.doc.mode.innerMode?1e3:100),nr=U;nr>Lt;--nr){if(nr<=We.first)return We.first;var br=Be(We,nr-1),_r=br.stateAfter;if(_r&&(!ie||nr+(_r instanceof Nr?_r.lookAhead:0)<=We.modeFrontier))return nr;var Bn=V(br.text,null,N.options.tabSize);(ge==null||ue>Bn)&&(ge=nr-1,ue=Bn)}return ge}function Xe(N,U){if(N.modeFrontier=Math.min(N.modeFrontier,U),N.highlightFrontier<U-10)return;for(var ie=N.first,ue=U-1;ue>ie;ue--){var ge=Be(N,ue).stateAfter;if(ge&&(!(ge instanceof Nr)||ue+ge.lookAhead<U)){ie=ue+1;break}}N.highlightFrontier=Math.min(N.highlightFrontier,ie)}var rt=!1,Ze=!1;function st(){rt=!0}function xt(){Ze=!0}function pt(N,U,ie){this.marker=N,this.from=U,this.to=ie}function hr(N,U){if(N)for(var ie=0;ie<N.length;++ie){var ue=N[ie];if(ue.marker==U)return ue}}function Zr(N,U){for(var ie,ue=0;ue<N.length;++ue)N[ue]!=U&&(ie||(ie=[])).push(N[ue]);return ie}function Xr(N,U){N.markedSpans=N.markedSpans?N.markedSpans.concat([U]):[U],U.marker.attachLine(N)}function pn(N,U,ie){var ue;if(N)for(var ge=0;ge<N.length;++ge){var We=N[ge],Lt=We.marker,nr=We.from==null||(Lt.inclusiveLeft?We.from<=U:We.from<U);if(nr||We.from==U&&Lt.type=="bookmark"&&(!ie||!We.marker.insertLeft)){var br=We.to==null||(Lt.inclusiveRight?We.to>=U:We.to>U);(ue||(ue=[])).push(new pt(Lt,We.from,br?null:We.to))}}return ue}function gr(N,U,ie){var ue;if(N)for(var ge=0;ge<N.length;++ge){var We=N[ge],Lt=We.marker,nr=We.to==null||(Lt.inclusiveRight?We.to>=U:We.to>U);if(nr||We.from==U&&Lt.type=="bookmark"&&(!ie||We.marker.insertLeft)){var br=We.from==null||(Lt.inclusiveLeft?We.from<=U:We.from<U);(ue||(ue=[])).push(new pt(Lt,br?null:We.from-U,We.to==null?null:We.to-U))}}return ue}function Kn(N,U){if(U.full)return null;var ie=$r(N,U.from.line)&&Be(N,U.from.line).markedSpans,ue=$r(N,U.to.line)&&Be(N,U.to.line).markedSpans;if(!ie&&!ue)return null;var ge=U.from.ch,We=U.to.ch,Lt=At(U.from,U.to)==0,nr=pn(ie,ge,Lt),br=gr(ue,We,Lt),_r=U.text.length==1,Bn=Ge(U.text).length+(_r?ge:0);if(nr)for(var ti=0;ti<nr.length;++ti){var Si=nr[ti];if(Si.to==null){var Ci=hr(br,Si.marker);Ci?_r&&(Si.to=Ci.to==null?null:Ci.to+Bn):Si.to=ge}}if(br)for(var la=0;la<br.length;++la){var Ta=br[la];if(Ta.to!=null&&(Ta.to+=Bn),Ta.from==null){var Wa=hr(nr,Ta.marker);Wa||(Ta.from=Bn,_r&&(nr||(nr=[])).push(Ta))}else Ta.from+=Bn,_r&&(nr||(nr=[])).push(Ta)}nr&&(nr=Rr(nr)),br&&br!=nr&&(br=Rr(br));var Ma=[nr];if(!_r){var Na=U.text.length-2,qa;if(Na>0&&nr)for(var ho=0;ho<nr.length;++ho)nr[ho].to==null&&(qa||(qa=[])).push(new pt(nr[ho].marker,null,null));for(var ns=0;ns<Na;++ns)Ma.push(qa);Ma.push(br)}return Ma}function Rr(N){for(var U=0;U<N.length;++U){var ie=N[U];ie.from!=null&&ie.from==ie.to&&ie.marker.clearWhenEmpty!==!1&&N.splice(U--,1)}return N.length?N:null}function Pn(N,U,ie){var ue=null;if(N.iter(U.line,ie.line+1,function(Ci){if(Ci.markedSpans)for(var la=0;la<Ci.markedSpans.length;++la){var Ta=Ci.markedSpans[la].marker;Ta.readOnly&&(!ue||X(ue,Ta)==-1)&&(ue||(ue=[])).push(Ta)}}),!ue)return null;for(var ge=[{from:U,to:ie}],We=0;We<ue.length;++We)for(var Lt=ue[We],nr=Lt.find(0),br=0;br<ge.length;++br){var _r=ge[br];if(At(_r.to,nr.from)<0||At(_r.from,nr.to)>0)continue;var Bn=[br,1],ti=At(_r.from,nr.from),Si=At(_r.to,nr.to);(ti<0||!Lt.inclusiveLeft&&!ti)&&Bn.push({from:_r.from,to:nr.from}),(Si>0||!Lt.inclusiveRight&&!Si)&&Bn.push({from:nr.to,to:_r.to}),ge.splice.apply(ge,Bn),br+=Bn.length-3}return ge}function an(N){var U=N.markedSpans;if(!U)return;for(var ie=0;ie<U.length;++ie)U[ie].marker.detachLine(N);N.markedSpans=null}function Ur(N,U){if(!U)return;for(var ie=0;ie<U.length;++ie)U[ie].marker.attachLine(N);N.markedSpans=U}function ii(N){return N.inclusiveLeft?-1:0}function _i(N){return N.inclusiveRight?1:0}function Gi(N,U){var ie=N.lines.length-U.lines.length;if(ie!=0)return ie;var ue=N.find(),ge=U.find(),We=At(ue.from,ge.from)||ii(N)-ii(U);if(We)return-We;var Lt=At(ue.to,ge.to)||_i(N)-_i(U);return Lt||U.id-N.id}function tn(N,U){var ie=Ze&&N.markedSpans,ue;if(ie)for(var ge=void 0,We=0;We<ie.length;++We)ge=ie[We],ge.marker.collapsed&&(U?ge.from:ge.to)==null&&(!ue||Gi(ue,ge.marker)<0)&&(ue=ge.marker);return ue}function Tn(N){return tn(N,!0)}function Vn(N){return tn(N,!1)}function Xt(N,U){var ie=Ze&&N.markedSpans,ue;if(ie)for(var ge=0;ge<ie.length;++ge){var We=ie[ge];We.marker.collapsed&&(We.from==null||We.from<U)&&(We.to==null||We.to>U)&&(!ue||Gi(ue,We.marker)<0)&&(ue=We.marker)}return ue}function It(N,U,ie,ue,ge){var We=Be(N,U),Lt=Ze&&We.markedSpans;if(Lt)for(var nr=0;nr<Lt.length;++nr){var br=Lt[nr];if(!br.marker.collapsed)continue;var _r=br.marker.find(0),Bn=At(_r.from,ie)||ii(br.marker)-ii(ge),ti=At(_r.to,ue)||_i(br.marker)-_i(ge);if(Bn>=0&&ti<=0||Bn<=0&&ti>=0)continue;if(Bn<=0&&(br.marker.inclusiveRight&&ge.inclusiveLeft?At(_r.to,ie)>=0:At(_r.to,ie)>0)||Bn>=0&&(br.marker.inclusiveRight&&ge.inclusiveLeft?At(_r.from,ue)<=0:At(_r.from,ue)<0))return!0}}function Pt(N){for(var U;U=Tn(N);)N=U.find(-1,!0).line;return N}function Kt(N){for(var U;U=Vn(N);)N=U.find(1,!0).line;return N}function Gt(N){for(var U,ie;U=Vn(N);)N=U.find(1,!0).line,(ie||(ie=[])).push(N);return ie}function Dt(N,U){var ie=Be(N,U),ue=Pt(ie);return ie==ue?U:Yt(ue)}function lr(N,U){if(U>N.lastLine())return U;var ie=Be(N,U),ue;if(!Ar(N,ie))return U;for(;ue=Vn(ie);)ie=ue.find(1,!0).line;return Yt(ie)+1}function Ar(N,U){var ie=Ze&&U.markedSpans;if(ie)for(var ue=void 0,ge=0;ge<ie.length;++ge){if(ue=ie[ge],!ue.marker.collapsed)continue;if(ue.from==null)return!0;if(ue.marker.widgetNode)continue;if(ue.from==0&&ue.marker.inclusiveLeft&&yr(N,U,ue))return!0}}function yr(N,U,ie){if(ie.to==null){var ue=ie.marker.find(1,!0);return yr(N,ue.line,hr(ue.line.markedSpans,ie.marker))}if(ie.marker.inclusiveRight&&ie.to==U.text.length)return!0;for(var ge=void 0,We=0;We<U.markedSpans.length;++We)if(ge=U.markedSpans[We],ge.marker.collapsed&&!ge.marker.widgetNode&&ge.from==ie.to&&(ge.to==null||ge.to!=ie.from)&&(ge.marker.inclusiveLeft||ie.marker.inclusiveRight)&&yr(N,U,ge))return!0}function Mr(N){N=Pt(N);for(var U=0,ie=N.parent,ue=0;ue<ie.lines.length;++ue){var ge=ie.lines[ue];if(ge==N)break;U+=ge.height}for(var We=ie.parent;We;ie=We,We=ie.parent)for(var Lt=0;Lt<We.children.length;++Lt){var nr=We.children[Lt];if(nr==ie)break;U+=nr.height}return U}function zn(N){if(N.height==0)return 0;for(var U=N.text.length,ie,ue=N;ie=Tn(ue);){var ge=ie.find(0,!0);ue=ge.from.line,U+=ge.from.ch-ge.to.ch}for(ue=N;ie=Vn(ue);){var We=ie.find(0,!0);U-=ue.text.length-We.from.ch,ue=We.to.line,U+=ue.text.length-We.to.ch}return U}function Rn(N){var U=N.display,ie=N.doc;U.maxLine=Be(ie,ie.first),U.maxLineLength=zn(U.maxLine),U.maxLineChanged=!0,ie.iter(function(ue){var ge=zn(ue);ge>U.maxLineLength&&(U.maxLineLength=ge,U.maxLine=ue)})}var di=function(U,ie,ue){this.text=U,Ur(this,ie),this.height=ue?ue(this):1};di.prototype.lineNo=function(){return Yt(this)},Bt(di);function gn(N,U,ie,ue){N.text=U,N.stateAfter&&(N.stateAfter=null),N.styles&&(N.styles=null),N.order!=null&&(N.order=null),an(N),Ur(N,ie);var ge=ue?ue(N):1;ge!=N.height&&Tt(N,ge)}function Br(N){N.parent=null,an(N)}var _n={},Gn={};function Zn(N,U){if(!N||/^\s*$/.test(N))return null;var ie=U.addModeClass?Gn:_n;return ie[N]||(ie[N]=N.replace(/\S+/g,"cm-$&"))}function ai(N,U){var ie=F("span",null,null,o?"padding-right: .1px":null),ue={pre:F("pre",[ie],"CodeMirror-line"),content:ie,col:0,pos:0,cm:N,trailingSpace:!1,splitSpaces:N.getOption("lineWrapping")};U.measure={};for(var ge=0;ge<=(U.rest?U.rest.length:0);ge++){var We=ge?U.rest[ge-1]:U.line,Lt=void 0;ue.pos=0,ue.addToken=Ri,ur(N.display.measure)&&(Lt=gt(We,N.doc.direction))&&(ue.addToken=oa(ue.addToken,Lt)),ue.map=[];var nr=U!=N.display.externalMeasured&&Yt(We);aa(We,ue,vn(N,We,nr)),We.styleClasses&&(We.styleClasses.bgClass&&(ue.bgClass=M(We.styleClasses.bgClass,ue.bgClass||"")),We.styleClasses.textClass&&(ue.textClass=M(We.styleClasses.textClass,ue.textClass||""))),ue.map.length==0&&ue.map.push(0,0,ue.content.appendChild(vt(N.display.measure))),ge==0?(U.measure.map=ue.map,U.measure.cache={}):((U.measure.maps||(U.measure.maps=[])).push(ue.map),(U.measure.caches||(U.measure.caches=[])).push({}))}if(o){var br=ue.content.lastChild;(/\bcm-tab\b/.test(br.className)||br.querySelector&&br.querySelector(".cm-tab"))&&(ue.content.className="cm-tab-wrap-hack")}return St(N,"renderLine",N,U.line,ue.pre),ue.pre.className&&(ue.textClass=M(ue.pre.className,ue.textClass||"")),ue}function Ei(N){var U=I("span","\u2022","cm-invalidchar");return U.title="\\u"+N.charCodeAt(0).toString(16),U.setAttribute("aria-label",U.title),U}function Ri(N,U,ie,ue,ge,We,Lt){if(!U)return;var nr=N.splitSpaces?Di(U,N.trailingSpace):U,br=N.cm.state.specialChars,_r=!1,Bn;if(!br.test(U))N.col+=U.length,Bn=document.createTextNode(nr),N.map.push(N.pos,N.pos+U.length,Bn),d&&l<9&&(_r=!0),N.pos+=U.length;else{Bn=document.createDocumentFragment();for(var ti=0;;){br.lastIndex=ti;var Si=br.exec(U),Ci=Si?Si.index-ti:U.length-ti;if(Ci){var la=document.createTextNode(nr.slice(ti,ti+Ci));d&&l<9?Bn.appendChild(I("span",[la])):Bn.appendChild(la),N.map.push(N.pos,N.pos+Ci,la),N.col+=Ci,N.pos+=Ci}if(!Si)break;ti+=Ci+1;var Ta=void 0;if(Si[0]==" "){var Wa=N.cm.options.tabSize,Ma=Wa-N.col%Wa;Ta=Bn.appendChild(I("span",Je(Ma),"cm-tab")),Ta.setAttribute("role","presentation"),Ta.setAttribute("cm-text"," "),N.col+=Ma}else Si[0]=="\r"||Si[0]==`
|
|
|
`?(Ta=Bn.appendChild(I("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(I("span",[Ta])):Bn.appendChild(Ta),N.col+=1);N.map.push(N.pos,N.pos+1,Ta),N.pos++}}if(N.trailingSpace=nr.charCodeAt(U.length-1)==32,ie||ue||ge||_r||We||Lt){var Na=ie||"";ue&&(Na+=ue),ge&&(Na+=ge);var qa=I("span",[Bn],Na,We);if(Lt)for(var ho in Lt)Lt.hasOwnProperty(ho)&&ho!="style"&&ho!="class"&&qa.setAttribute(ho,Lt[ho]);return N.content.appendChild(qa)}N.content.appendChild(Bn)}function Di(N,U){if(N.length>1&&!/ /.test(N))return N;for(var ie=U,ue="",ge=0;ge<N.length;ge++){var We=N.charAt(ge);We==" "&&ie&&(ge==N.length-1||N.charCodeAt(ge+1)==32)&&(We="\xA0"),ue+=We,ie=We==" "}return ue}function oa(N,U){return function(ie,ue,ge,We,Lt,nr,br){ge=ge?ge+" cm-force-border":"cm-force-border";for(var _r=ie.pos,Bn=_r+ue.length;;){for(var ti=void 0,Si=0;Si<U.length&&!(ti=U[Si],ti.to>_r&&ti.from<=_r);Si++);if(ti.to>=Bn)return N(ie,ue,ge,We,Lt,nr,br);N(ie,ue.slice(0,ti.to-_r),ge,We,null,nr,br),We=null,ue=ue.slice(ti.to-_r),_r=ti.to}}}function ma(N,U,ie,ue){var ge=!ue&&ie.widgetNode;ge&&N.map.push(N.pos,N.pos+U,ge),!ue&&N.cm.display.input.needsContentAttribute&&(ge||(ge=N.content.appendChild(document.createElement("span"))),ge.setAttribute("cm-marker",ie.id)),ge&&(N.cm.display.input.setUneditable(ge),N.content.appendChild(ge)),N.pos+=U,N.trailingSpace=!1}function aa(N,U,ie){var ue=N.markedSpans,ge=N.text,We=0;if(!ue){for(var Lt=1;Lt<ie.length;Lt+=2)U.addToken(U,ge.slice(We,We=ie[Lt]),Zn(ie[Lt+1],U.cm.options));return}for(var nr=ge.length,br=0,_r=1,Bn="",ti,Si,Ci=0,la,Ta,Wa,Ma,Na;;){if(Ci==br){la=Ta=Wa=Si="",Na=null,Ma=null,Ci=Infinity;for(var qa=[],ho=void 0,ns=0;ns<ue.length;++ns){var Mo=ue[ns],Ss=Mo.marker;if(Ss.type=="bookmark"&&Mo.from==br&&Ss.widgetNode)qa.push(Ss);else if(Mo.from<=br&&(Mo.to==null||Mo.to>br||Ss.collapsed&&Mo.to==br&&Mo.from==br)){if(Mo.to!=null&&Mo.to!=br&&Ci>Mo.to&&(Ci=Mo.to,Ta=""),Ss.className&&(la+=" "+Ss.className),Ss.css&&(Si=(Si?Si+";":"")+Ss.css),Ss.startStyle&&Mo.from==br&&(Wa+=" "+Ss.startStyle),Ss.endStyle&&Mo.to==Ci&&(ho||(ho=[])).push(Ss.endStyle,Mo.to),Ss.title&&((Na||(Na={})).title=Ss.title),Ss.attributes)for(var Zs in Ss.attributes)(Na||(Na={}))[Zs]=Ss.attributes[Zs];Ss.collapsed&&(!Ma||Gi(Ma.marker,Ss)<0)&&(Ma=Mo)}else Mo.from>br&&Ci>Mo.from&&(Ci=Mo.from)}if(ho)for(var yl=0;yl<ho.length;yl+=2)ho[yl+1]==Ci&&(Ta+=" "+ho[yl]);if(!Ma||Ma.from==br)for(var ul=0;ul<qa.length;++ul)ma(U,0,qa[ul]);if(Ma&&(Ma.from||0)==br){if(ma(U,(Ma.to==null?nr+1:Ma.to)-br,Ma.marker,Ma.from==null),Ma.to==null)return;Ma.to==br&&(Ma=!1)}}if(br>=nr)break;for(var Pl=Math.min(nr,Ci);;){if(Bn){var Vl=br+Bn.length;if(!Ma){var Il=Vl>Pl?Bn.slice(0,Pl-br):Bn;U.addToken(U,Il,ti?ti+la:la,Wa,br+Il.length==Ci?Ta:"",Si,Na)}if(Vl>=Pl){Bn=Bn.slice(Pl-br),br=Pl;break}br=Vl,Wa=""}Bn=ge.slice(We,We=ie[_r++]),ti=Zn(ie[_r++],U.cm.options)}}}function ba(N,U,ie){this.line=U,this.rest=Gt(U),this.size=this.rest?Yt(Ge(this.rest))-ie+1:1,this.node=this.text=null,this.hidden=Ar(N,U)}function Ai(N,U,ie){for(var ue=[],ge,We=U;We<ie;We=ge){var Lt=new ba(N.doc,Be(N.doc,We),We);ge=We+Lt.size,ue.push(Lt)}return ue}var Dn=null;function Bi(N){Dn?Dn.ops.push(N):N.ownsGroup=Dn={ops:[N],delayedCallbacks:[]}}function ha(N){var U=N.delayedCallbacks,ie=0;do{for(;ie<U.length;ie++)U[ie].call(null);for(var ue=0;ue<N.ops.length;ue++){var ge=N.ops[ue];if(ge.cursorActivityHandlers)for(;ge.cursorActivityCalled<ge.cursorActivityHandlers.length;)ge.cursorActivityHandlers[ge.cursorActivityCalled++].call(null,ge.cm)}}while(ie<U.length)}function ta(N,U){var ie=N.ownsGroup;if(!ie)return;try{ha(ie)}finally{Dn=null,U(ie)}}var ra=null;function Ir(N,U){var ie=mt(N,U);if(!ie.length)return;var ue=Array.prototype.slice.call(arguments,2),ge;Dn?ge=Dn.delayedCallbacks:ra?ge=ra:(ge=ra=[],setTimeout(Sr,0));for(var We=function(br){ge.push(function(){return ie[br].apply(null,ue)})},Lt=0;Lt<ie.length;++Lt)We(Lt)}function Sr(){var N=ra;ra=null;for(var U=0;U<N.length;++U)N[U]()}function En(N,U,ie,ue){for(var ge=0;ge<U.changes.length;ge++){var We=U.changes[ge];We=="text"?un(N,U):We=="gutter"?_t(N,U,ie,ue):We=="class"?kn(N,U):We=="widget"&&Or(N,U,ue)}U.changes=null}function fr(N){return N.node==N.text&&(N.node=I("div",null,null,"position: relative"),N.text.parentNode&&N.text.parentNode.replaceChild(N.node,N.text),N.node.appendChild(N.text),d&&l<8&&(N.node.style.zIndex=2)),N.node}function kr(N,U){var ie=U.bgClass?U.bgClass+" "+(U.line.bgClass||""):U.line.bgClass;if(ie&&(ie+=" CodeMirror-linebackground"),U.background)ie?U.background.className=ie:(U.background.parentNode.removeChild(U.background),U.background=null);else if(ie){var ue=fr(U);U.background=ue.insertBefore(I("div",null,ie),ue.firstChild),N.display.input.setUneditable(U.background)}}function Vr(N,U){var ie=N.display.externalMeasured;return ie&&ie.line==U.line?(N.display.externalMeasured=null,U.measure=ie.measure,ie.built):ai(N,U)}function un(N,U){var ie=U.text.className,ue=Vr(N,U);U.text==U.node&&(U.node=ue.pre),U.text.parentNode.replaceChild(ue.pre,U.text),U.text=ue.pre,ue.bgClass!=U.bgClass||ue.textClass!=U.textClass?(U.bgClass=ue.bgClass,U.textClass=ue.textClass,kn(N,U)):ie&&(U.text.className=ie)}function kn(N,U){kr(N,U),U.line.wrapClass?fr(U).className=U.line.wrapClass:U.node!=U.text&&(U.node.className="");var ie=U.textClass?U.textClass+" "+(U.line.textClass||""):U.line.textClass;U.text.className=ie||""}function _t(N,U,ie,ue){if(U.gutter&&(U.node.removeChild(U.gutter),U.gutter=null),U.gutterBackground&&(U.node.removeChild(U.gutterBackground),U.gutterBackground=null),U.line.gutterClass){var ge=fr(U);U.gutterBackground=I("div",null,"CodeMirror-gutter-background "+U.line.gutterClass,"left: "+(N.options.fixedGutter?ue.fixedPos:-ue.gutterTotalWidth)+"px; width: "+ue.gutterTotalWidth+"px"),N.display.input.setUneditable(U.gutterBackground),ge.insertBefore(U.gutterBackground,U.text)}var We=U.line.gutterMarkers;if(N.options.lineNumbers||We){var Lt=fr(U),nr=U.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(N.options.fixedGutter?ue.fixedPos:-ue.gutterTotalWidth)+"px");if(N.display.input.setUneditable(nr),Lt.insertBefore(nr,U.text),U.line.gutterClass&&(nr.className+=" "+U.line.gutterClass),N.options.lineNumbers&&(!We||!We["CodeMirror-linenumbers"])&&(U.lineNumber=nr.appendChild(I("div",An(N.options,ie),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ue.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+N.display.lineNumInnerWidth+"px"))),We)for(var br=0;br<N.display.gutterSpecs.length;++br){var _r=N.display.gutterSpecs[br].className,Bn=We.hasOwnProperty(_r)&&We[_r];Bn&&nr.appendChild(I("div",[Bn],"CodeMirror-gutter-elt","left: "+ue.gutterLeft[_r]+"px; width: "+ue.gutterWidth[_r]+"px"))}}}function Or(N,U,ie){U.alignable&&(U.alignable=null);for(var ue=_("CodeMirror-linewidget"),ge=U.node.firstChild,We=void 0;ge;ge=We)We=ge.nextSibling,ue.test(ge.className)&&U.node.removeChild(ge);en(N,U,ie)}function Lr(N,U,ie,ue){var ge=Vr(N,U);return U.text=U.node=ge.pre,ge.bgClass&&(U.bgClass=ge.bgClass),ge.textClass&&(U.textClass=ge.textClass),kn(N,U),_t(N,U,ie,ue),en(N,U,ue),U.node}function en(N,U,ie){if(Sn(N,U.line,U,ie,!0),U.rest)for(var ue=0;ue<U.rest.length;ue++)Sn(N,U.rest[ue],U,ie,!1)}function Sn(N,U,ie,ue,ge){if(!U.widgets)return;for(var We=fr(ie),Lt=0,nr=U.widgets;Lt<nr.length;++Lt){var br=nr[Lt],_r=I("div",[br.node],"CodeMirror-linewidget"+(br.className?" "+br.className:""));br.handleMouseEvents||_r.setAttribute("cm-ignore-events","true"),On(br,_r,ie,ue),N.display.input.setUneditable(_r),ge&&br.above?We.insertBefore(_r,ie.gutter||ie.text):We.appendChild(_r),Ir(br,"redraw")}}function On(N,U,ie,ue){if(N.noHScroll){(ie.alignable||(ie.alignable=[])).push(U);var ge=ue.wrapperWidth;U.style.left=ue.fixedPos+"px",N.coverGutter||(ge-=ue.gutterTotalWidth,U.style.paddingLeft=ue.gutterTotalWidth+"px"),U.style.width=ge+"px"}N.coverGutter&&(U.style.zIndex=5,U.style.position="relative",N.noHScroll||(U.style.marginLeft=-ue.gutterTotalWidth+"px"))}function wn(N){if(N.height!=null)return N.height;var U=N.doc.cm;if(!U)return 0;if(!B(document.body,N.node)){var ie="position: relative;";N.coverGutter&&(ie+="margin-left: -"+U.display.gutters.offsetWidth+"px;"),N.noHScroll&&(ie+="width: "+U.display.wrapper.clientWidth+"px;"),O(U.display.measure,I("div",[N.node],null,ie))}return N.height=N.node.parentNode.offsetHeight}function $n(N,U){for(var ie=qe(U);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 jn(N){return N.lineSpace.offsetTop}function pi(N){return N.mover.offsetHeight-N.lineSpace.offsetHeight}function Mi(N){if(N.cachedPaddingH)return N.cachedPaddingH;var U=O(N.measure,I("pre","x","CodeMirror-line-like")),ie=window.getComputedStyle?window.getComputedStyle(U):U.currentStyle,ue={left:parseInt(ie.paddingLeft),right:parseInt(ie.paddingRight)};return!isNaN(ue.left)&&!isNaN(ue.right)&&(N.cachedPaddingH=ue),ue}function yi(N){return te-N.display.nativeBarWidth}function Oi(N){return N.display.scroller.clientWidth-yi(N)-N.display.barWidth}function zi(N){return N.display.scroller.clientHeight-yi(N)-N.display.barHeight}function ea(N,U,ie){var ue=N.options.lineWrapping,ge=ue&&Oi(N);if(!U.measure.heights||ue&&U.measure.width!=ge){var We=U.measure.heights=[];if(ue){U.measure.width=ge;for(var Lt=U.text.firstChild.getClientRects(),nr=0;nr<Lt.length-1;nr++){var br=Lt[nr],_r=Lt[nr+1];Math.abs(br.bottom-_r.bottom)>2&&We.push((br.bottom+_r.top)/2-ie.top)}}We.push(ie.bottom-ie.top)}}function Xi(N,U,ie){if(N.line==U)return{map:N.measure.map,cache:N.measure.cache};for(var ue=0;ue<N.rest.length;ue++)if(N.rest[ue]==U)return{map:N.measure.maps[ue],cache:N.measure.caches[ue]};for(var ge=0;ge<N.rest.length;ge++)if(Yt(N.rest[ge])>ie)return{map:N.measure.maps[ge],cache:N.measure.caches[ge],before:!0}}function Wi(N,U){U=Pt(U);var ie=Yt(U),ue=N.display.externalMeasured=new ba(N.doc,U,ie);ue.lineN=ie;var ge=ue.built=ai(N,ue);return ue.text=ge.pre,O(N.display.lineMeasure,ge.pre),ue}function ji(N,U,ie,ue){return Ca(N,ca(N,U),ie,ue)}function Ji(N,U){if(U>=N.display.viewFrom&&U<N.display.viewTo)return N.display.view[uo(N,U)];var ie=N.display.externalMeasured;if(ie&&U>=ie.lineN&&U<ie.lineN+ie.size)return ie}function ca(N,U){var ie=Yt(U),ue=Ji(N,ie);ue&&!ue.text?ue=null:ue&&ue.changes&&(En(N,ue,ie,os(N)),N.curOp.forceUpdate=!0),ue||(ue=Wi(N,U));var ge=Xi(ue,U,ie);return{line:U,view:ue,rect:null,map:ge.map,cache:ge.cache,before:ge.before,hasHeights:!1}}function Ca(N,U,ie,ue,ge){U.before&&(ie=-1);var We=ie+(ue||""),Lt;return U.cache.hasOwnProperty(We)?Lt=U.cache[We]:(U.rect||(U.rect=U.view.text.getBoundingClientRect()),U.hasHeights||(ea(N,U.view,U.rect),U.hasHeights=!0),Lt=va(N,U,ie,ue),Lt.bogus||(U.cache[We]=Lt)),{left:Lt.left,right:Lt.right,top:ge?Lt.rtop:Lt.top,bottom:ge?Lt.rbottom:Lt.bottom}}var na={left:0,right:0,top:0,bottom:0};function Pa(N,U,ie){for(var ue,ge,We,Lt,nr,br,_r=0;_r<N.length;_r+=3)if(nr=N[_r],br=N[_r+1],U<nr?(ge=0,We=1,Lt="left"):U<br?(ge=U-nr,We=ge+1):(_r==N.length-3||U==br&&N[_r+3]>U)&&(We=br-nr,ge=We-1,U>=br&&(Lt="right")),ge!=null){if(ue=N[_r+2],nr==br&&ie==(ue.insertLeft?"left":"right")&&(Lt=ie),ie=="left"&&ge==0)for(;_r&&N[_r-2]==N[_r-3]&&N[_r-1].insertLeft;)ue=N[(_r-=3)+2],Lt="left";if(ie=="right"&&ge==br-nr)for(;_r<N.length-3&&N[_r+3]==N[_r+4]&&!N[_r+5].insertLeft;)ue=N[(_r+=3)+2],Lt="right";break}return{node:ue,start:ge,end:We,collapse:Lt,coverStart:nr,coverEnd:br}}function La(N,U){var ie=na;if(U=="left")for(var ue=0;ue<N.length&&!((ie=N[ue]).left!=ie.right);ue++);else for(var ge=N.length-1;ge>=0&&!((ie=N[ge]).left!=ie.right);ge--);return ie}function va(N,U,ie,ue){var ge=Pa(U.map,ie,ue),We=ge.node,Lt=ge.start,nr=ge.end,br=ge.collapse,_r;if(We.nodeType==3){for(var Bn=0;Bn<4;Bn++){for(;Lt&&we(U.line.text.charAt(ge.coverStart+Lt));)--Lt;for(;ge.coverStart+nr<ge.coverEnd&&we(U.line.text.charAt(ge.coverStart+nr));)++nr;if(d&&l<9&&Lt==0&&nr==ge.coverEnd-ge.coverStart?_r=We.parentNode.getBoundingClientRect():_r=La(P(We,Lt,nr).getClientRects(),ue),_r.left||_r.right||Lt==0)break;nr=Lt,Lt=Lt-1,br="right"}d&&l<11&&(_r=ga(N.display.measure,_r))}else{Lt>0&&(br=ue="right");var ti;N.options.lineWrapping&&(ti=We.getClientRects()).length>1?_r=ti[ue=="right"?ti.length-1:0]:_r=We.getBoundingClientRect()}if(d&&l<9&&!Lt&&(!_r||!_r.left&&!_r.right)){var Si=We.parentNode.getClientRects()[0];Si?_r={left:Si.left,right:Si.left+Io(N.display),top:Si.top,bottom:Si.bottom}:_r=na}for(var Ci=_r.top-U.rect.top,la=_r.bottom-U.rect.top,Ta=(Ci+la)/2,Wa=U.view.measure.heights,Ma=0;Ma<Wa.length-1&&!(Ta<Wa[Ma]);Ma++);var Na=Ma?Wa[Ma-1]:0,qa=Wa[Ma],ho={left:(br=="right"?_r.right:_r.left)-U.rect.left,right:(br=="left"?_r.left:_r.right)-U.rect.left,top:Na,bottom:qa};return!_r.left&&!_r.right&&(ho.bogus=!0),N.options.singleCursorHeightPerLine||(ho.rtop=Ci,ho.rbottom=la),ho}function ga(N,U){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Zt(N))return U;var ie=screen.logicalXDPI/screen.deviceXDPI,ue=screen.logicalYDPI/screen.deviceYDPI;return{left:U.left*ie,right:U.right*ie,top:U.top*ue,bottom:U.bottom*ue}}function Oa(N){if(N.measure&&(N.measure.cache={},N.measure.heights=null,N.rest))for(var U=0;U<N.rest.length;U++)N.measure.caches[U]={}}function Aa(N){N.display.externalMeasure=null,S(N.display.lineMeasure);for(var U=0;U<N.display.view.length;U++)Oa(N.display.view[U])}function Xa(N){Aa(N),N.display.cachedCharWidth=N.display.cachedTextHeight=N.display.cachedPaddingH=null,N.options.lineWrapping||(N.display.maxLineChanged=!0),N.display.lineNumChars=null}function _a(){return t&&c?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Va(){return t&&c?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Pi(N){var U=0;if(N.widgets)for(var ie=0;ie<N.widgets.length;++ie)N.widgets[ie].above&&(U+=wn(N.widgets[ie]));return U}function io(N,U,ie,ue,ge){if(!ge){var We=Pi(U);ie.top+=We,ie.bottom+=We}if(ue=="line")return ie;ue||(ue="local");var Lt=Mr(U);if(ue=="local"?Lt+=jn(N.display):Lt-=N.display.viewOffset,ue=="page"||ue=="window"){var nr=N.display.lineSpace.getBoundingClientRect();Lt+=nr.top+(ue=="window"?0:Va());var br=nr.left+(ue=="window"?0:_a());ie.left+=br,ie.right+=br}return ie.top+=Lt,ie.bottom+=Lt,ie}function oo(N,U,ie){if(ie=="div")return U;var ue=U.left,ge=U.top;if(ie=="page")ue-=_a(),ge-=Va();else if(ie=="local"||!ie){var We=N.display.sizer.getBoundingClientRect();ue+=We.left,ge+=We.top}var Lt=N.display.lineSpace.getBoundingClientRect();return{left:ue-Lt.left,top:ge-Lt.top}}function Qo(N,U,ie,ue,ge){return ue||(ue=Be(N.doc,U.line)),io(N,ue,ji(N,ue,U.ch,ge),ie)}function mo(N,U,ie,ue,ge,We){ue=ue||Be(N.doc,U.line),ge||(ge=ca(N,ue));function Lt(la,Ta){var Wa=Ca(N,ge,la,Ta?"right":"left",We);return Ta?Wa.left=Wa.right:Wa.right=Wa.left,io(N,ue,Wa,ie)}var nr=gt(ue,N.doc.direction),br=U.ch,_r=U.sticky;if(br>=ue.text.length?(br=ue.text.length,_r="before"):br<=0&&(br=0,_r="after"),!nr)return Lt(_r=="before"?br-1:br,_r=="before");function Bn(la,Ta,Wa){var Ma=nr[Ta],Na=Ma.level==1;return Lt(Wa?la-1:la,Na!=Wa)}var ti=Le(nr,br,_r),Si=ye,Ci=Bn(br,ti,_r=="before");return Si!=null&&(Ci.other=Bn(br,Si,_r!="before")),Ci}function To(N,U){var ie=0;U=Ft(N.doc,U),N.options.lineWrapping||(ie=Io(N.display)*U.ch);var ue=Be(N.doc,U.line),ge=Mr(ue)+jn(N.display);return{left:ie,right:ie,top:ge,bottom:ge+ue.height}}function ao(N,U,ie,ue,ge){var We=zt(N,U,ie);return We.xRel=ge,ue&&(We.outside=ue),We}function So(N,U,ie){var ue=N.doc;if(ie+=N.display.viewOffset,ie<0)return ao(ue.first,0,null,-1,-1);var ge=Pr(ue,ie),We=ue.first+ue.size-1;if(ge>We)return ao(ue.first+ue.size-1,Be(ue,We).text.length,null,1,1);U<0&&(U=0);for(var Lt=Be(ue,ge);;){var nr=Uo(N,Lt,ge,U,ie),br=Xt(Lt,nr.ch+(nr.xRel>0||nr.outside>0?1:0));if(!br)return nr;var _r=br.find(1);if(_r.line==ge)return _r;Lt=Be(ue,ge=_r.line)}}function bo(N,U,ie,ue){ue-=Pi(U);var ge=U.text.length,We=_e(function(Lt){return Ca(N,ie,Lt-1).bottom<=ue},ge,0);return ge=_e(function(Lt){return Ca(N,ie,Lt).top>ue},We,ge),{begin:We,end:ge}}function to(N,U,ie,ue){ie||(ie=ca(N,U));var ge=io(N,U,Ca(N,ie,ue),"line").top;return bo(N,U,ie,ge)}function Jo(N,U,ie,ue){return N.bottom<=ie?!1:N.top>ie?!0:(ue?N.left:N.right)>U}function Uo(N,U,ie,ue,ge){ge-=Mr(U);var We=ca(N,U),Lt=Pi(U),nr=0,br=U.text.length,_r=!0,Bn=gt(U,N.doc.direction);if(Bn){var ti=(N.options.lineWrapping?ts:wo)(N,U,ie,We,Bn,ue,ge);_r=ti.level!=1,nr=_r?ti.from:ti.to-1,br=_r?ti.to:ti.from-1}var Si=null,Ci=null,la=_e(function(ns){var Mo=Ca(N,We,ns);return Mo.top+=Lt,Mo.bottom+=Lt,Jo(Mo,ue,ge,!1)?(Mo.top<=ge&&Mo.left<=ue&&(Si=ns,Ci=Mo),!0):!1},nr,br),Ta,Wa,Ma=!1;if(Ci){var Na=ue-Ci.left<Ci.right-ue,qa=Na==_r;la=Si+(qa?0:1),Wa=qa?"after":"before",Ta=Na?Ci.left:Ci.right}else{!_r&&(la==br||la==nr)&&la++,Wa=la==0?"after":la==U.text.length?"before":Ca(N,We,la-(_r?1:0)).bottom+Lt<=ge==_r?"after":"before";var ho=mo(N,zt(ie,la,Wa),"line",U,We);Ta=ho.left,Ma=ge<ho.top?-1:ge>=ho.bottom?1:0}return la=Ce(U.text,la,1),ao(ie,la,Wa,Ma,ue-Ta)}function wo(N,U,ie,ue,ge,We,Lt){var nr=_e(function(ti){var Si=ge[ti],Ci=Si.level!=1;return Jo(mo(N,zt(ie,Ci?Si.to:Si.from,Ci?"before":"after"),"line",U,ue),We,Lt,!0)},0,ge.length-1),br=ge[nr];if(nr>0){var _r=br.level!=1,Bn=mo(N,zt(ie,_r?br.from:br.to,_r?"after":"before"),"line",U,ue);Jo(Bn,We,Lt,!0)&&Bn.top>Lt&&(br=ge[nr-1])}return br}function ts(N,U,ie,ue,ge,We,Lt){var nr=bo(N,U,ue,Lt),br=nr.begin,_r=nr.end;/\s/.test(U.text.charAt(_r-1))&&_r--;for(var Bn=null,ti=null,Si=0;Si<ge.length;Si++){var Ci=ge[Si];if(Ci.from>=_r||Ci.to<=br)continue;var la=Ci.level!=1,Ta=Ca(N,ue,la?Math.min(_r,Ci.to)-1:Math.max(br,Ci.from)).right,Wa=Ta<We?We-Ta+1e9:Ta-We;(!Bn||ti>Wa)&&(Bn=Ci,ti=Wa)}return Bn||(Bn=ge[ge.length-1]),Bn.from<br&&(Bn={from:br,to:Bn.to,level:Bn.level}),Bn.to>_r&&(Bn={from:Bn.from,to:_r,level:Bn.level}),Bn}var Ia;function Oo(N){if(N.cachedTextHeight!=null)return N.cachedTextHeight;if(Ia==null){Ia=I("pre",null,"CodeMirror-line-like");for(var U=0;U<49;++U)Ia.appendChild(document.createTextNode("x")),Ia.appendChild(I("br"));Ia.appendChild(document.createTextNode("x"))}O(N.measure,Ia);var ie=Ia.offsetHeight/50;return ie>3&&(N.cachedTextHeight=ie),S(N.measure),ie||1}function Io(N){if(N.cachedCharWidth!=null)return N.cachedCharWidth;var U=I("span","xxxxxxxxxx"),ie=I("pre",[U],"CodeMirror-line-like");O(N.measure,ie);var ue=U.getBoundingClientRect(),ge=(ue.right-ue.left)/10;return ge>2&&(N.cachedCharWidth=ge),ge||10}function os(N){for(var U=N.display,ie={},ue={},ge=U.gutters.clientLeft,We=U.gutters.firstChild,Lt=0;We;We=We.nextSibling,++Lt){var nr=N.display.gutterSpecs[Lt].className;ie[nr]=We.offsetLeft+We.clientLeft+ge,ue[nr]=We.clientWidth}return{fixedPos:xo(U),gutterTotalWidth:U.gutters.offsetWidth,gutterLeft:ie,gutterWidth:ue,wrapperWidth:U.wrapper.clientWidth}}function xo(N){return N.scroller.getBoundingClientRect().left-N.sizer.getBoundingClientRect().left}function rs(N){var U=Oo(N.display),ie=N.options.lineWrapping,ue=ie&&Math.max(5,N.display.scroller.clientWidth/Io(N.display)-3);return function(ge){if(Ar(N.doc,ge))return 0;var We=0;if(ge.widgets)for(var Lt=0;Lt<ge.widgets.length;Lt++)ge.widgets[Lt].height&&(We+=ge.widgets[Lt].height);return ie?We+(Math.ceil(ge.text.length/ue)||1)*U:We+U}}function Ho(N){var U=N.doc,ie=rs(N);U.iter(function(ue){var ge=ie(ue);ge!=ue.height&&Tt(ue,ge)})}function _o(N,U,ie,ue){var ge=N.display;if(!ie&&qe(U).getAttribute("cm-not-content")=="true")return null;var We,Lt,nr=ge.lineSpace.getBoundingClientRect();try{We=U.clientX-nr.left,Lt=U.clientY-nr.top}catch(ti){return null}var br=So(N,We,Lt),_r;if(ue&&br.xRel>0&&(_r=Be(N.doc,br.line).text).length==br.ch){var Bn=V(_r,_r.length,N.options.tabSize)-_r.length;br=zt(br.line,Math.max(0,Math.round((We-Mi(N.display).left)/Io(N.display))-Bn))}return br}function uo(N,U){if(U>=N.display.viewTo)return null;if(U-=N.display.viewFrom,U<0)return null;for(var ie=N.display.view,ue=0;ue<ie.length;ue++)if(U-=ie[ue].size,U<0)return ue}function Ha(N,U,ie,ue){U==null&&(U=N.doc.first),ie==null&&(ie=N.doc.first+N.doc.size),ue||(ue=0);var ge=N.display;if(ue&&ie<ge.viewTo&&(ge.updateLineNumbers==null||ge.updateLineNumbers>U)&&(ge.updateLineNumbers=U),N.curOp.viewChanged=!0,U>=ge.viewTo)Ze&&Dt(N.doc,U)<ge.viewTo&&Tr(N);else if(ie<=ge.viewFrom)Ze&&lr(N.doc,ie+ue)>ge.viewFrom?Tr(N):(ge.viewFrom+=ue,ge.viewTo+=ue);else if(U<=ge.viewFrom&&ie>=ge.viewTo)Tr(N);else if(U<=ge.viewFrom){var We=qr(N,ie,ie+ue,1);We?(ge.view=ge.view.slice(We.index),ge.viewFrom=We.lineN,ge.viewTo+=ue):Tr(N)}else if(ie>=ge.viewTo){var Lt=qr(N,U,U,-1);Lt?(ge.view=ge.view.slice(0,Lt.index),ge.viewTo=Lt.lineN):Tr(N)}else{var nr=qr(N,U,U,-1),br=qr(N,ie,ie+ue,1);nr&&br?(ge.view=ge.view.slice(0,nr.index).concat(Ai(N,nr.lineN,br.lineN)).concat(ge.view.slice(br.index)),ge.viewTo+=ue):Tr(N)}var _r=ge.externalMeasured;_r&&(ie<_r.lineN?_r.lineN+=ue:U<_r.lineN+_r.size&&(ge.externalMeasured=null))}function ft(N,U,ie){N.curOp.viewChanged=!0;var ue=N.display,ge=N.display.externalMeasured;if(ge&&U>=ge.lineN&&U<ge.lineN+ge.size&&(ue.externalMeasured=null),U<ue.viewFrom||U>=ue.viewTo)return;var We=ue.view[uo(N,U)];if(We.node==null)return;var Lt=We.changes||(We.changes=[]);X(Lt,ie)==-1&&Lt.push(ie)}function Tr(N){N.display.viewFrom=N.display.viewTo=N.doc.first,N.display.view=[],N.display.viewOffset=0}function qr(N,U,ie,ue){var ge=uo(N,U),We,Lt=N.display.view;if(!Ze||ie==N.doc.first+N.doc.size)return{index:ge,lineN:ie};for(var nr=N.display.viewFrom,br=0;br<ge;br++)nr+=Lt[br].size;if(nr!=U){if(ue>0){if(ge==Lt.length-1)return null;We=nr+Lt[ge].size-U,ge++}else We=nr-U;U+=We,ie+=We}for(;Dt(N.doc,ie)!=ie;){if(ge==(ue<0?0:Lt.length-1))return null;ie+=ue*Lt[ge-(ue<0?1:0)].size,ge+=ue}return{index:ge,lineN:ie}}function Yr(N,U,ie){var ue=N.display,ge=ue.view;ge.length==0||U>=ue.viewTo||ie<=ue.viewFrom?(ue.view=Ai(N,U,ie),ue.viewFrom=U):(ue.viewFrom>U?ue.view=Ai(N,U,ue.viewFrom).concat(ue.view):ue.viewFrom<U&&(ue.view=ue.view.slice(uo(N,U))),ue.viewFrom=U,ue.viewTo<ie?ue.view=ue.view.concat(Ai(N,ue.viewTo,ie)):ue.viewTo>ie&&(ue.view=ue.view.slice(0,uo(N,ie)))),ue.viewTo=ie}function Yn(N){for(var U=N.display.view,ie=0,ue=0;ue<U.length;ue++){var ge=U[ue];!ge.hidden&&(!ge.node||ge.changes)&&++ie}return ie}function dn(N){N.display.input.showSelection(N.display.input.prepareSelection())}function Gr(N,U){U===void 0&&(U=!0);for(var ie=N.doc,ue={},ge=ue.cursors=document.createDocumentFragment(),We=ue.selection=document.createDocumentFragment(),Lt=0;Lt<ie.sel.ranges.length;Lt++){if(!U&&Lt==ie.sel.primIndex)continue;var nr=ie.sel.ranges[Lt];if(nr.from().line>=N.display.viewTo||nr.to().line<N.display.viewFrom)continue;var br=nr.empty();(br||N.options.showCursorWhenSelecting)&&ri(N,nr.head,ge),br||Hn(N,nr,We)}return ue}function ri(N,U,ie){var ue=mo(N,U,"div",null,null,!N.options.singleCursorHeightPerLine),ge=ie.appendChild(I("div","\xA0","CodeMirror-cursor"));if(ge.style.left=ue.left+"px",ge.style.top=ue.top+"px",ge.style.height=Math.max(0,ue.bottom-ue.top)*N.options.cursorHeight+"px",ue.other){var We=ie.appendChild(I("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));We.style.display="",We.style.left=ue.other.left+"px",We.style.top=ue.other.top+"px",We.style.height=(ue.other.bottom-ue.other.top)*.85+"px"}}function rn(N,U){return N.top-U.top||N.left-U.left}function Hn(N,U,ie){var ue=N.display,ge=N.doc,We=document.createDocumentFragment(),Lt=Mi(N.display),nr=Lt.left,br=Math.max(ue.sizerWidth,Oi(N)-ue.sizer.offsetLeft)-Lt.right,_r=ge.direction=="ltr";function Bn(qa,ho,ns,Mo){ho<0&&(ho=0),ho=Math.round(ho),Mo=Math.round(Mo),We.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+qa+`px;
|
|
|
top: `+ho+"px; width: "+(ns==null?br-qa:ns)+`px;
|
|
|
height: `+(Mo-ho)+"px"))}function ti(qa,ho,ns){var Mo=Be(ge,qa),Ss=Mo.text.length,Zs,yl;function ul(Il,Gl){return Qo(N,zt(qa,Il),"div",Mo,Gl)}function Pl(Il,Gl,Fl){var Ja=to(N,Mo,null,Il),vl=Gl=="ltr"==(Fl=="after")?"left":"right",gl=Fl=="after"?Ja.begin:Ja.end-(/\s/.test(Mo.text.charAt(Ja.end-1))?2:1);return ul(gl,vl)[vl]}var Vl=gt(Mo,ge.direction);return he(Vl,ho||0,ns==null?Ss:ns,function(Il,Gl,Fl,Ja){var vl=Fl=="ltr",gl=ul(Il,vl?"left":"right"),El=ul(Gl-1,vl?"right":"left"),Bu=ho==null&&Il==0,Ks=ns==null&&Gl==Ss,vs=Ja==0,lu=!Vl||Ja==Vl.length-1;if(El.top-gl.top<=3){var Kl=(_r?Bu:Ks)&&vs,Uu=(_r?Ks:Bu)&&lu,Eu=Kl?nr:(vl?gl:El).left,uu=Uu?br:(vl?El:gl).right;Bn(Eu,gl.top,uu-Eu,gl.bottom)}else{var ku,Yl,Tu,Vu;vl?(ku=_r&&Bu&&vs?nr:gl.left,Yl=_r?br:Pl(Il,Fl,"before"),Tu=_r?nr:Pl(Gl,Fl,"after"),Vu=_r&&Ks&&lu?br:El.right):(ku=_r?Pl(Il,Fl,"before"):nr,Yl=!_r&&Bu&&vs?br:gl.right,Tu=!_r&&Ks&&lu?nr:El.left,Vu=_r?Pl(Gl,Fl,"after"):br),Bn(ku,gl.top,Yl-ku,gl.bottom),gl.bottom<El.top&&Bn(nr,gl.bottom,null,El.top),Bn(Tu,El.top,Vu-Tu,El.bottom)}(!Zs||rn(gl,Zs)<0)&&(Zs=gl),rn(El,Zs)<0&&(Zs=El),(!yl||rn(gl,yl)<0)&&(yl=gl),rn(El,yl)<0&&(yl=El)}),{start:Zs,end:yl}}var Si=U.from(),Ci=U.to();if(Si.line==Ci.line)ti(Si.line,Si.ch,Ci.ch);else{var la=Be(ge,Si.line),Ta=Be(ge,Ci.line),Wa=Pt(la)==Pt(Ta),Ma=ti(Si.line,Si.ch,Wa?la.text.length+1:null).end,Na=ti(Ci.line,Wa?0:null,Ci.ch).start;Wa&&(Ma.top<Na.top-2?(Bn(Ma.right,Ma.top,null,Ma.bottom),Bn(nr,Na.top,Na.left,Na.bottom)):Bn(Ma.right,Ma.top,Na.left-Ma.right,Ma.bottom)),Ma.bottom<Na.top&&Bn(nr,Ma.bottom,null,Na.top)}ie.appendChild(We)}function li(N){if(!N.state.focused)return;var U=N.display;clearInterval(U.blinker);var ie=!0;U.cursorDiv.style.visibility="",N.options.cursorBlinkRate>0?U.blinker=setInterval(function(){N.hasFocus()||mi(N),U.cursorDiv.style.visibility=(ie=!ie)?"":"hidden"},N.options.cursorBlinkRate):N.options.cursorBlinkRate<0&&(U.cursorDiv.style.visibility="hidden")}function ci(N){N.state.focused||(N.display.input.focus(),Ti(N))}function si(N){N.state.delayingBlurEvent=!0,setTimeout(function(){N.state.delayingBlurEvent&&(N.state.delayingBlurEvent=!1,mi(N))},100)}function Ti(N,U){if(N.state.delayingBlurEvent&&(N.state.delayingBlurEvent=!1),N.options.readOnly=="nocursor")return;N.state.focused||(St(N,"focus",N,U),N.state.focused=!0,G(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()),li(N)}function mi(N,U){if(N.state.delayingBlurEvent)return;N.state.focused&&(St(N,"blur",N,U),N.state.focused=!1,T(N.display.wrapper,"CodeMirror-focused")),clearInterval(N.display.blinker),setTimeout(function(){N.state.focused||(N.display.shift=!1)},150)}function vi(N){for(var U=N.display,ie=U.lineDiv.offsetTop,ue=0;ue<U.view.length;ue++){var ge=U.view[ue],We=N.options.lineWrapping,Lt=void 0,nr=0;if(ge.hidden)continue;if(d&&l<8){var br=ge.node.offsetTop+ge.node.offsetHeight;Lt=br-ie,ie=br}else{var _r=ge.node.getBoundingClientRect();Lt=_r.bottom-_r.top,!We&&ge.text.firstChild&&(nr=ge.text.firstChild.getBoundingClientRect().right-_r.left-1)}var Bn=ge.line.height-Lt;if((Bn>.005||Bn<-.005)&&(Tt(ge.line,Lt),Li(ge.line),ge.rest))for(var ti=0;ti<ge.rest.length;ti++)Li(ge.rest[ti]);if(nr>N.display.sizerWidth){var Si=Math.ceil(nr/Io(N.display));Si>N.display.maxLineLength&&(N.display.maxLineLength=Si,N.display.maxLine=ge.line,N.display.maxLineChanged=!0)}}}function Li(N){if(N.widgets)for(var U=0;U<N.widgets.length;++U){var ie=N.widgets[U],ue=ie.node.parentNode;ue&&(ie.height=ue.offsetHeight)}}function ia(N,U,ie){var ue=ie&&ie.top!=null?Math.max(0,ie.top):N.scroller.scrollTop;ue=Math.floor(ue-jn(N));var ge=ie&&ie.bottom!=null?ie.bottom:ue+N.wrapper.clientHeight,We=Pr(U,ue),Lt=Pr(U,ge);if(ie&&ie.ensure){var nr=ie.ensure.from.line,br=ie.ensure.to.line;nr<We?(We=nr,Lt=Pr(U,Mr(Be(U,nr))+N.wrapper.clientHeight)):Math.min(br,U.lastLine())>=Lt&&(We=Pr(U,Mr(Be(U,br))-N.wrapper.clientHeight),Lt=br)}return{from:We,to:Math.max(Lt,We+1)}}function Ki(N,U){if(jt(N,"scrollCursorIntoView"))return;var ie=N.display,ue=ie.sizer.getBoundingClientRect(),ge=null;if(U.top+ue.top<0?ge=!0:U.bottom+ue.top>(window.innerHeight||document.documentElement.clientHeight)&&(ge=!1),ge!=null&&!r){var We=I("div","\u200B",null,`position: absolute;
|
|
|
top: `+(U.top-ie.viewOffset-jn(N.display))+`px;
|
|
|
height: `+(U.bottom-U.top+yi(N)+ie.barHeight)+`px;
|
|
|
left: `+U.left+"px; width: "+Math.max(2,U.right-U.left)+"px;");N.display.lineSpace.appendChild(We),We.scrollIntoView(ge),N.display.lineSpace.removeChild(We)}}function fa(N,U,ie,ue){ue==null&&(ue=0);var ge;!N.options.lineWrapping&&U==ie&&(U=U.ch?zt(U.line,U.sticky=="before"?U.ch-1:U.ch,"after"):U,ie=U.sticky=="before"?zt(U.line,U.ch+1,"before"):U);for(var We=0;We<5;We++){var Lt=!1,nr=mo(N,U),br=!ie||ie==U?nr:mo(N,ie);ge={left:Math.min(nr.left,br.left),top:Math.min(nr.top,br.top)-ue,right:Math.max(nr.left,br.left),bottom:Math.max(nr.bottom,br.bottom)+ue};var _r=xa(N,ge),Bn=N.doc.scrollTop,ti=N.doc.scrollLeft;if(_r.scrollTop!=null&&(Ea(N,_r.scrollTop),Math.abs(N.doc.scrollTop-Bn)>1&&(Lt=!0)),_r.scrollLeft!=null&&(Ka(N,_r.scrollLeft),Math.abs(N.doc.scrollLeft-ti)>1&&(Lt=!0)),!Lt)break}return ge}function Ya(N,U){var ie=xa(N,U);ie.scrollTop!=null&&Ea(N,ie.scrollTop),ie.scrollLeft!=null&&Ka(N,ie.scrollLeft)}function xa(N,U){var ie=N.display,ue=Oo(N.display);U.top<0&&(U.top=0);var ge=N.curOp&&N.curOp.scrollTop!=null?N.curOp.scrollTop:ie.scroller.scrollTop,We=zi(N),Lt={};U.bottom-U.top>We&&(U.bottom=U.top+We);var nr=N.doc.height+pi(ie),br=U.top<ue,_r=U.bottom>nr-ue;if(U.top<ge)Lt.scrollTop=br?0:U.top;else if(U.bottom>ge+We){var Bn=Math.min(U.top,(_r?nr:U.bottom)-We);Bn!=ge&&(Lt.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,Ci=Oi(N)-ie.gutters.offsetWidth,la=U.right-U.left>Ci;return la&&(U.right=U.left+Ci),U.left<10?Lt.scrollLeft=0:U.left<Si?Lt.scrollLeft=Math.max(0,U.left+ti-(la?0:10)):U.right>Ci+Si-3&&(Lt.scrollLeft=U.right+(la?0:10)-Ci),Lt}function wa(N,U){if(U==null)return;ro(N),N.curOp.scrollTop=(N.curOp.scrollTop==null?N.doc.scrollTop:N.curOp.scrollTop)+U}function Da(N){ro(N);var U=N.getCursor();N.curOp.scrollToPos={from:U,to:U,margin:N.options.cursorScrollMargin}}function ja(N,U,ie){(U!=null||ie!=null)&&ro(N),U!=null&&(N.curOp.scrollLeft=U),ie!=null&&(N.curOp.scrollTop=ie)}function ko(N,U){ro(N),N.curOp.scrollToPos=U}function ro(N){var U=N.curOp.scrollToPos;if(U){N.curOp.scrollToPos=null;var ie=To(N,U.from),ue=To(N,U.to);pa(N,ie,ue,U.margin)}}function pa(N,U,ie,ue){var ge=xa(N,{left:Math.min(U.left,ie.left),top:Math.min(U.top,ie.top)-ue,right:Math.max(U.right,ie.right),bottom:Math.max(U.bottom,ie.bottom)+ue});ja(N,ge.scrollLeft,ge.scrollTop)}function Ea(N,U){if(Math.abs(N.doc.scrollTop-U)<2)return;x||Qs(N,{top:U}),Fa(N,U,!0),x&&Qs(N),hs(N,100)}function Fa(N,U,ie){if(U=Math.max(0,Math.min(N.display.scroller.scrollHeight-N.display.scroller.clientHeight,U)),N.display.scroller.scrollTop==U&&!ie)return;N.doc.scrollTop=U,N.display.scrollbars.setScrollTop(U),N.display.scroller.scrollTop!=U&&(N.display.scroller.scrollTop=U)}function Ka(N,U,ie,ue){if(U=Math.max(0,Math.min(U,N.display.scroller.scrollWidth-N.display.scroller.clientWidth)),(ie?U==N.doc.scrollLeft:Math.abs(N.doc.scrollLeft-U)<2)&&!ue)return;N.doc.scrollLeft=U,al(N),N.display.scroller.scrollLeft!=U&&(N.display.scroller.scrollLeft=U),N.display.scrollbars.setScrollLeft(U)}function lo(N){var U=N.display,ie=U.gutters.offsetWidth,ue=Math.round(N.doc.height+pi(N.display));return{clientHeight:U.scroller.clientHeight,viewHeight:U.wrapper.clientHeight,scrollWidth:U.scroller.scrollWidth,clientWidth:U.scroller.clientWidth,viewWidth:U.wrapper.clientWidth,barLeft:N.options.fixedGutter?ie:0,docHeight:ue,scrollHeight:ue+yi(N)+U.barHeight,nativeBarWidth:U.nativeBarWidth,gutterWidth:ie}}var so=function(U,ie,ue){this.cm=ue;var ge=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),We=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ge.tabIndex=We.tabIndex=-1,U(ge),U(We),Fe(ge,"scroll",function(){ge.clientHeight&&ie(ge.scrollTop,"vertical")}),Fe(We,"scroll",function(){We.clientWidth&&ie(We.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};so.prototype.update=function(N){var U=N.scrollWidth>N.clientWidth+1,ie=N.scrollHeight>N.clientHeight+1,ue=N.nativeBarWidth;if(ie){this.vert.style.display="block",this.vert.style.bottom=U?ue+"px":"0";var ge=N.viewHeight-(U?ue:0);this.vert.firstChild.style.height=Math.max(0,N.scrollHeight-N.clientHeight+ge)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(U){this.horiz.style.display="block",this.horiz.style.right=ie?ue+"px":"0",this.horiz.style.left=N.barLeft+"px";var We=N.viewWidth-N.barLeft-(ie?ue:0);this.horiz.firstChild.style.width=Math.max(0,N.scrollWidth-N.clientWidth+We)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&N.clientHeight>0&&(ue==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ie?ue:0,bottom:U?ue:0}},so.prototype.setScrollLeft=function(N){this.horiz.scrollLeft!=N&&(this.horiz.scrollLeft=N),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},so.prototype.setScrollTop=function(N){this.vert.scrollTop!=N&&(this.vert.scrollTop=N),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},so.prototype.zeroWidthHack=function(){var N=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},so.prototype.enableZeroWidthBar=function(N,U,ie){N.style.pointerEvents="auto";function ue(){var ge=N.getBoundingClientRect(),We=ie=="vert"?document.elementFromPoint(ge.right-1,(ge.top+ge.bottom)/2):document.elementFromPoint((ge.right+ge.left)/2,ge.bottom-1);We!=N?N.style.pointerEvents="none":U.set(1e3,ue)}U.set(1e3,ue)},so.prototype.clear=function(){var N=this.horiz.parentNode;N.removeChild(this.horiz),N.removeChild(this.vert)};var Co=function(){};Co.prototype.update=function(){return{bottom:0,right:0}},Co.prototype.setScrollLeft=function(){},Co.prototype.setScrollTop=function(){},Co.prototype.clear=function(){};function Lo(N,U){U||(U=lo(N));var ie=N.display.barWidth,ue=N.display.barHeight;is(N,U);for(var ge=0;ge<4&&ie!=N.display.barWidth||ue!=N.display.barHeight;ge++)ie!=N.display.barWidth&&N.options.lineWrapping&&vi(N),is(N,lo(N)),ie=N.display.barWidth,ue=N.display.barHeight}function is(N,U){var ie=N.display,ue=ie.scrollbars.update(U);ie.sizer.style.paddingRight=(ie.barWidth=ue.right)+"px",ie.sizer.style.paddingBottom=(ie.barHeight=ue.bottom)+"px",ie.heightForcer.style.borderBottom=ue.bottom+"px solid transparent",ue.right&&ue.bottom?(ie.scrollbarFiller.style.display="block",ie.scrollbarFiller.style.height=ue.bottom+"px",ie.scrollbarFiller.style.width=ue.right+"px"):ie.scrollbarFiller.style.display="",ue.bottom&&N.options.coverGutterNextToScrollbar&&N.options.fixedGutter?(ie.gutterFiller.style.display="block",ie.gutterFiller.style.height=ue.bottom+"px",ie.gutterFiller.style.width=U.gutterWidth+"px"):ie.gutterFiller.style.display=""}var cs={native:so,null:Co};function Rs(N){N.display.scrollbars&&(N.display.scrollbars.clear(),N.display.scrollbars.addClass&&T(N.display.wrapper,N.display.scrollbars.addClass)),N.display.scrollbars=new cs[N.options.scrollbarStyle](function(U){N.display.wrapper.insertBefore(U,N.display.scrollbarFiller),Fe(U,"mousedown",function(){N.state.focused&&setTimeout(function(){return N.display.input.focus()},0)}),U.setAttribute("cm-not-content","true")},function(U,ie){ie=="horizontal"?Ka(N,U):Ea(N,U)},N),N.display.scrollbars.addClass&&G(N.display.wrapper,N.display.scrollbars.addClass)}var Ko=0;function as(N){N.curOp={cm:N,viewChanged:!1,startHeight:N.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ko},Bi(N.curOp)}function co(N){var U=N.curOp;U&&ta(U,function(ie){for(var ue=0;ue<ie.ops.length;ue++)ie.ops[ue].cm.curOp=null;Ao(ie)})}function Ao(N){for(var U=N.ops,ie=0;ie<U.length;ie++)$a(U[ie]);for(var ue=0;ue<U.length;ue++)ss(U[ue]);for(var ge=0;ge<U.length;ge++)_s(U[ge]);for(var We=0;We<U.length;We++)Fo(U[We]);for(var Lt=0;Lt<U.length;Lt++)il(U[Lt])}function $a(N){var U=N.cm,ie=U.display;Ll(U),N.updateMaxLine&&Rn(U),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&&U.options.lineWrapping,N.update=N.mustUpdate&&new Ns(U,N.mustUpdate&&{top:N.scrollTop,ensure:N.scrollToPos},N.forceUpdate)}function ss(N){N.updatedDisplay=N.mustUpdate&&ds(N.cm,N.update)}function _s(N){var U=N.cm,ie=U.display;N.updatedDisplay&&vi(U),N.barMeasure=lo(U),ie.maxLineChanged&&!U.options.lineWrapping&&(N.adjustWidthTo=ji(U,ie.maxLine,ie.maxLine.text.length).left+3,U.display.sizerWidth=N.adjustWidthTo,N.barMeasure.scrollWidth=Math.max(ie.scroller.clientWidth,ie.sizer.offsetLeft+N.adjustWidthTo+yi(U)+U.display.barWidth),N.maxScrollLeft=Math.max(0,ie.sizer.offsetLeft+N.adjustWidthTo-Oi(U))),(N.updatedDisplay||N.selectionChanged)&&(N.preparedSelection=ie.input.prepareSelection())}function Fo(N){var U=N.cm;N.adjustWidthTo!=null&&(U.display.sizer.style.minWidth=N.adjustWidthTo+"px",N.maxScrollLeft<U.doc.scrollLeft&&Ka(U,Math.min(U.display.scroller.scrollLeft,N.maxScrollLeft),!0),U.display.maxLineChanged=!1);var ie=N.focus&&N.focus==k();N.preparedSelection&&U.display.input.showSelection(N.preparedSelection,ie),(N.updatedDisplay||N.startHeight!=U.doc.height)&&Lo(U,N.barMeasure),N.updatedDisplay&&Bs(U,N.barMeasure),N.selectionChanged&&li(U),U.state.focused&&N.updateInput&&U.display.input.reset(N.typing),ie&&ci(N.cm)}function il(N){var U=N.cm,ie=U.display,ue=U.doc;if(N.updatedDisplay&&ks(U,N.update),ie.wheelStartX!=null&&(N.scrollTop!=null||N.scrollLeft!=null||N.scrollToPos)&&(ie.wheelStartX=ie.wheelStartY=null),N.scrollTop!=null&&Fa(U,N.scrollTop,N.forceScroll),N.scrollLeft!=null&&Ka(U,N.scrollLeft,!0,!0),N.scrollToPos){var ge=fa(U,Ft(ue,N.scrollToPos.from),Ft(ue,N.scrollToPos.to),N.scrollToPos.margin);Ki(U,ge)}var We=N.maybeHiddenMarkers,Lt=N.maybeUnhiddenMarkers;if(We)for(var nr=0;nr<We.length;++nr)We[nr].lines.length||St(We[nr],"hide");if(Lt)for(var br=0;br<Lt.length;++br)Lt[br].lines.length&&St(Lt[br],"unhide");ie.wrapper.offsetHeight&&(ue.scrollTop=U.display.scroller.scrollTop),N.changeObjs&&St(U,"changes",U,N.changeObjs),N.update&&N.update.finish()}function Eo(N,U){if(N.curOp)return U();as(N);try{return U()}finally{co(N)}}function zo(N,U){return function(){if(N.curOp)return U.apply(N,arguments);as(N);try{return U.apply(N,arguments)}finally{co(N)}}}function Fs(N){return function(){if(this.curOp)return N.apply(this,arguments);as(this);try{return N.apply(this,arguments)}finally{co(this)}}}function ms(N){return function(){var U=this.cm;if(!U||U.curOp)return N.apply(this,arguments);as(U);try{return N.apply(this,arguments)}finally{co(U)}}}function hs(N,U){N.doc.highlightFrontier<N.display.viewTo&&N.state.highlight.set(U,K(bn,N))}function bn(N){var U=N.doc;if(U.highlightFrontier>=N.display.viewTo)return;var ie=+new Date+N.options.workTime,ue=ei(N,U.highlightFrontier),ge=[];U.iter(ue.line,Math.min(U.first+U.size,N.display.viewTo+500),function(We){if(ue.line>=N.display.viewFrom){var Lt=We.styles,nr=We.text.length>N.options.maxHighlightLength?$t(U.mode,ue.state):null,br=cn(N,We,ue,!0);nr&&(ue.state=nr),We.styles=br.styles;var _r=We.styleClasses,Bn=br.classes;Bn?We.styleClasses=Bn:_r&&(We.styleClasses=null);for(var ti=!Lt||Lt.length!=We.styles.length||_r!=Bn&&(!_r||!Bn||_r.bgClass!=Bn.bgClass||_r.textClass!=Bn.textClass),Si=0;!ti&&Si<Lt.length;++Si)ti=Lt[Si]!=We.styles[Si];ti&&ge.push(ue.line),We.stateAfter=ue.save(),ue.nextLine()}else We.text.length<=N.options.maxHighlightLength&&qn(N,We.text,ue),We.stateAfter=ue.line%5==0?ue.save():null,ue.nextLine();if(+new Date>ie)return hs(N,N.options.workDelay),!0}),U.highlightFrontier=ue.line,U.modeFrontier=Math.max(U.modeFrontier,ue.line),ge.length&&Eo(N,function(){for(var We=0;We<ge.length;We++)ft(N,ge[We],"text")})}var Ns=function(U,ie,ue){var ge=U.display;this.viewport=ie,this.visible=ia(ge,U.doc,ie),this.editorIsHidden=!ge.wrapper.offsetWidth,this.wrapperHeight=ge.wrapper.clientHeight,this.wrapperWidth=ge.wrapper.clientWidth,this.oldDisplayWidth=Oi(U),this.force=ue,this.dims=os(U),this.events=[]};Ns.prototype.signal=function(N,U){Ot(N,U)&&this.events.push(arguments)},Ns.prototype.finish=function(){for(var N=0;N<this.events.length;N++)St.apply(null,this.events[N])};function Ll(N){var U=N.display;!U.scrollbarsClipped&&U.scroller.offsetWidth&&(U.nativeBarWidth=U.scroller.offsetWidth-U.scroller.clientWidth,U.heightForcer.style.height=yi(N)+"px",U.sizer.style.marginBottom=-U.nativeBarWidth+"px",U.sizer.style.borderRightWidth=yi(N)+"px",U.scrollbarsClipped=!0)}function el(N){if(N.hasFocus())return null;var U=k();if(!U||!B(N.display.lineDiv,U))return null;var ie={activeElt:U};if(window.getSelection){var ue=window.getSelection();ue.anchorNode&&ue.extend&&B(N.display.lineDiv,ue.anchorNode)&&(ie.anchorNode=ue.anchorNode,ie.anchorOffset=ue.anchorOffset,ie.focusNode=ue.focusNode,ie.focusOffset=ue.focusOffset)}return ie}function Gs(N){if(!N||!N.activeElt||N.activeElt==k())return;if(N.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(N.activeElt.nodeName)&&N.anchorNode&&B(document.body,N.anchorNode)&&B(document.body,N.focusNode)){var U=window.getSelection(),ie=document.createRange();ie.setEnd(N.anchorNode,N.anchorOffset),ie.collapse(!1),U.removeAllRanges(),U.addRange(ie),U.extend(N.focusNode,N.focusOffset)}}function ds(N,U){var ie=N.display,ue=N.doc;if(U.editorIsHidden)return Tr(N),!1;if(!U.force&&U.visible.from>=ie.viewFrom&&U.visible.to<=ie.viewTo&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo)&&ie.renderedView==ie.view&&Yn(N)==0)return!1;Js(N)&&(Tr(N),U.dims=os(N));var ge=ue.first+ue.size,We=Math.max(U.visible.from-N.options.viewportMargin,ue.first),Lt=Math.min(ge,U.visible.to+N.options.viewportMargin);ie.viewFrom<We&&We-ie.viewFrom<20&&(We=Math.max(ue.first,ie.viewFrom)),ie.viewTo>Lt&&ie.viewTo-Lt<20&&(Lt=Math.min(ge,ie.viewTo)),Ze&&(We=Dt(N.doc,We),Lt=lr(N.doc,Lt));var nr=We!=ie.viewFrom||Lt!=ie.viewTo||ie.lastWrapHeight!=U.wrapperHeight||ie.lastWrapWidth!=U.wrapperWidth;Yr(N,We,Lt),ie.viewOffset=Mr(Be(N.doc,ie.viewFrom)),N.display.mover.style.top=ie.viewOffset+"px";var br=Yn(N);if(!nr&&br==0&&!U.force&&ie.renderedView==ie.view&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo))return!1;var _r=el(N);return br>4&&(ie.lineDiv.style.display="none"),tl(N,ie.updateLineNumbers,U.dims),br>4&&(ie.lineDiv.style.display=""),ie.renderedView=ie.view,Gs(_r),S(ie.cursorDiv),S(ie.selectionDiv),ie.gutters.style.height=ie.sizer.style.minHeight=0,nr&&(ie.lastWrapHeight=U.wrapperHeight,ie.lastWrapWidth=U.wrapperWidth,hs(N,400)),ie.updateLineNumbers=null,!0}function ks(N,U){for(var ie=U.viewport,ue=!0;;ue=!1){if(!ue||!N.options.lineWrapping||U.oldDisplayWidth==Oi(N)){if(ie&&ie.top!=null&&(ie={top:Math.min(N.doc.height+pi(N.display)-zi(N),ie.top)}),U.visible=ia(N.display,N.doc,ie),U.visible.from>=N.display.viewFrom&&U.visible.to<=N.display.viewTo)break}else ue&&(U.visible=ia(N.display,N.doc,ie));if(!ds(N,U))break;vi(N);var ge=lo(N);dn(N),Lo(N,ge),Bs(N,ge),U.force=!1}U.signal(N,"update",N),(N.display.viewFrom!=N.display.reportedViewFrom||N.display.viewTo!=N.display.reportedViewTo)&&(U.signal(N,"viewportChange",N,N.display.viewFrom,N.display.viewTo),N.display.reportedViewFrom=N.display.viewFrom,N.display.reportedViewTo=N.display.viewTo)}function Qs(N,U){var ie=new Ns(N,U);if(ds(N,ie)){vi(N),ks(N,ie);var ue=lo(N);dn(N),Lo(N,ue),Bs(N,ue),ie.finish()}}function tl(N,U,ie){var ue=N.display,ge=N.options.lineNumbers,We=ue.lineDiv,Lt=We.firstChild;function nr(la){var Ta=la.nextSibling;return o&&g&&N.display.currentWheelTarget==la?la.style.display="none":la.parentNode.removeChild(la),Ta}for(var br=ue.view,_r=ue.viewFrom,Bn=0;Bn<br.length;Bn++){var ti=br[Bn];if(!ti.hidden)if(!ti.node||ti.node.parentNode!=We){var Si=Lr(N,ti,_r,ie);We.insertBefore(Si,Lt)}else{for(;Lt!=ti.node;)Lt=nr(Lt);var Ci=ge&&U!=null&&U<=_r&&ti.lineNumber;ti.changes&&(X(ti.changes,"gutter")>-1&&(Ci=!1),En(N,ti,_r,ie)),Ci&&(S(ti.lineNumber),ti.lineNumber.appendChild(document.createTextNode(An(N.options,_r)))),Lt=ti.node.nextSibling}_r+=ti.size}for(;Lt;)Lt=nr(Lt)}function xs(N){var U=N.gutters.offsetWidth;N.sizer.style.marginLeft=U+"px"}function Bs(N,U){N.display.sizer.style.minHeight=U.docHeight+"px",N.display.heightForcer.style.top=U.docHeight+"px",N.display.gutters.style.height=U.docHeight+N.display.barHeight+yi(N)+"px"}function al(N){var U=N.display,ie=U.view;if(!U.alignWidgets&&(!U.gutters.firstChild||!N.options.fixedGutter))return;for(var ue=xo(U)-U.scroller.scrollLeft+N.doc.scrollLeft,ge=U.gutters.offsetWidth,We=ue+"px",Lt=0;Lt<ie.length;Lt++)if(!ie[Lt].hidden){N.options.fixedGutter&&(ie[Lt].gutter&&(ie[Lt].gutter.style.left=We),ie[Lt].gutterBackground&&(ie[Lt].gutterBackground.style.left=We));var nr=ie[Lt].alignable;if(nr)for(var br=0;br<nr.length;br++)nr[br].style.left=We}N.options.fixedGutter&&(U.gutters.style.left=ue+ge+"px")}function Js(N){if(!N.options.lineNumbers)return!1;var U=N.doc,ie=An(N.options,U.first+U.size-1),ue=N.display;if(ie.length!=ue.lineNumChars){var ge=ue.measure.appendChild(I("div",[I("div",ie)],"CodeMirror-linenumber CodeMirror-gutter-elt")),We=ge.firstChild.offsetWidth,Lt=ge.offsetWidth-We;return ue.lineGutter.style.width="",ue.lineNumInnerWidth=Math.max(We,ue.lineGutter.offsetWidth-Lt)+1,ue.lineNumWidth=ue.lineNumInnerWidth+Lt,ue.lineNumChars=ue.lineNumInnerWidth?ie.length:-1,ue.lineGutter.style.width=ue.lineNumWidth+"px",xs(N.display),!0}return!1}function Vo(N,U){for(var ie=[],ue=!1,ge=0;ge<N.length;ge++){var We=N[ge],Lt=null;if(typeof We!="string"&&(Lt=We.style,We=We.className),We=="CodeMirror-linenumbers")if(U)ue=!0;else continue;ie.push({className:We,style:Lt})}return U&&!ue&&ie.push({className:"CodeMirror-linenumbers",style:null}),ie}function No(N){var U=N.gutters,ie=N.gutterSpecs;S(U),N.lineGutter=null;for(var ue=0;ue<ie.length;++ue){var ge=ie[ue],We=ge.className,Lt=ge.style,nr=U.appendChild(I("div",null,"CodeMirror-gutter "+We));Lt&&(nr.style.cssText=Lt),We=="CodeMirror-linenumbers"&&(N.lineGutter=nr,nr.style.width=(N.lineNumWidth||1)+"px")}U.style.display=ie.length?"":"none",xs(N)}function fs(N){No(N.display),Ha(N),al(N)}function Ds(N,U,ie,ue){var ge=this;this.input=ie,ge.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),ge.scrollbarFiller.setAttribute("cm-not-content","true"),ge.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),ge.gutterFiller.setAttribute("cm-not-content","true"),ge.lineDiv=F("div",null,"CodeMirror-code"),ge.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),ge.cursorDiv=I("div",null,"CodeMirror-cursors"),ge.measure=I("div",null,"CodeMirror-measure"),ge.lineMeasure=I("div",null,"CodeMirror-measure"),ge.lineSpace=F("div",[ge.measure,ge.lineMeasure,ge.selectionDiv,ge.cursorDiv,ge.lineDiv],null,"position: relative; outline: none");var We=F("div",[ge.lineSpace],"CodeMirror-lines");ge.mover=I("div",[We],null,"position: relative"),ge.sizer=I("div",[ge.mover],"CodeMirror-sizer"),ge.sizerWidth=null,ge.heightForcer=I("div",null,null,"position: absolute; height: "+te+"px; width: 1px;"),ge.gutters=I("div",null,"CodeMirror-gutters"),ge.lineGutter=null,ge.scroller=I("div",[ge.sizer,ge.heightForcer,ge.gutters],"CodeMirror-scroll"),ge.scroller.setAttribute("tabIndex","-1"),ge.wrapper=I("div",[ge.scrollbarFiller,ge.gutterFiller,ge.scroller],"CodeMirror"),d&&l<8&&(ge.gutters.style.zIndex=-1,ge.scroller.style.paddingRight=0),!o&&!(x&&h)&&(ge.scroller.draggable=!0),N&&(N.appendChild?N.appendChild(ge.wrapper):N(ge.wrapper)),ge.viewFrom=ge.viewTo=U.first,ge.reportedViewFrom=ge.reportedViewTo=U.first,ge.view=[],ge.renderedView=null,ge.externalMeasured=null,ge.viewOffset=0,ge.lastWrapHeight=ge.lastWrapWidth=0,ge.updateLineNumbers=null,ge.nativeBarWidth=ge.barHeight=ge.barWidth=0,ge.scrollbarsClipped=!1,ge.lineNumWidth=ge.lineNumInnerWidth=ge.lineNumChars=null,ge.alignWidgets=!1,ge.cachedCharWidth=ge.cachedTextHeight=ge.cachedPaddingH=null,ge.maxLine=null,ge.maxLineLength=0,ge.maxLineChanged=!1,ge.wheelDX=ge.wheelDY=ge.wheelStartX=ge.wheelStartY=null,ge.shift=!1,ge.selForContextMenu=null,ge.activeTouch=null,ge.gutterSpecs=Vo(ue.gutters,ue.lineNumbers),No(ge),ie.init(ge)}var go=0,Ht=null;d?Ht=-.53:x?Ht=15:t?Ht=-.7:e&&(Ht=-1/3);function ar(N){var U=N.wheelDeltaX,ie=N.wheelDeltaY;return U==null&&N.detail&&N.axis==N.HORIZONTAL_AXIS&&(U=N.detail),ie==null&&N.detail&&N.axis==N.VERTICAL_AXIS?ie=N.detail:ie==null&&(ie=N.wheelDelta),{x:U,y:ie}}function In(N){var U=ar(N);return U.x*=Ht,U.y*=Ht,U}function hi(N,U){var ie=ar(U),ue=ie.x,ge=ie.y,We=N.display,Lt=We.scroller,nr=Lt.scrollWidth>Lt.clientWidth,br=Lt.scrollHeight>Lt.clientHeight;if(!(ue&&nr||ge&&br))return;if(ge&&g&&o){e:for(var _r=U.target,Bn=We.view;_r!=Lt;_r=_r.parentNode)for(var ti=0;ti<Bn.length;ti++)if(Bn[ti].node==_r){N.display.currentWheelTarget=_r;break e}}if(ue&&!x&&!a&&Ht!=null){ge&&br&&Ea(N,Math.max(0,Lt.scrollTop+ge*Ht)),Ka(N,Math.max(0,Lt.scrollLeft+ue*Ht)),(!ge||ge&&br)&&Ke(U),We.wheelStartX=null;return}if(ge&&Ht!=null){var Si=ge*Ht,Ci=N.doc.scrollTop,la=Ci+We.wrapper.clientHeight;Si<0?Ci=Math.max(0,Ci+Si-50):la=Math.min(N.doc.height,la+Si+50),Qs(N,{top:Ci,bottom:la})}go<20&&(We.wheelStartX==null?(We.wheelStartX=Lt.scrollLeft,We.wheelStartY=Lt.scrollTop,We.wheelDX=ue,We.wheelDY=ge,setTimeout(function(){if(We.wheelStartX==null)return;var Ta=Lt.scrollLeft-We.wheelStartX,Wa=Lt.scrollTop-We.wheelStartY,Ma=Wa&&We.wheelDY&&Wa/We.wheelDY||Ta&&We.wheelDX&&Ta/We.wheelDX;if(We.wheelStartX=We.wheelStartY=null,!Ma)return;Ht=(Ht*go+Ma)/(go+1),++go},200)):(We.wheelDX+=ue,We.wheelDY+=ge))}var Rt=function(U,ie){this.ranges=U,this.primIndex=ie};Rt.prototype.primary=function(){return this.ranges[this.primIndex]},Rt.prototype.equals=function(N){if(N==this)return!0;if(N.primIndex!=this.primIndex||N.ranges.length!=this.ranges.length)return!1;for(var U=0;U<this.ranges.length;U++){var ie=this.ranges[U],ue=N.ranges[U];if(!wt(ie.anchor,ue.anchor)||!wt(ie.head,ue.head))return!1}return!0},Rt.prototype.deepCopy=function(){for(var N=[],U=0;U<this.ranges.length;U++)N[U]=new ce(vr(this.ranges[U].anchor),vr(this.ranges[U].head));return new Rt(N,this.primIndex)},Rt.prototype.somethingSelected=function(){for(var N=0;N<this.ranges.length;N++)if(!this.ranges[N].empty())return!0;return!1},Rt.prototype.contains=function(N,U){U||(U=N);for(var ie=0;ie<this.ranges.length;ie++){var ue=this.ranges[ie];if(At(U,ue.from())>=0&&At(N,ue.to())<=0)return ie}return-1};var ce=function(U,ie){this.anchor=U,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 xe(N,U,ie){var ue=N&&N.options.selectionsMayTouch,ge=U[ie];U.sort(function(Si,Ci){return At(Si.from(),Ci.from())}),ie=X(U,ge);for(var We=1;We<U.length;We++){var Lt=U[We],nr=U[We-1],br=At(nr.to(),Lt.from());if(ue&&!Lt.empty()?br>0:br>=0){var _r=Ut(nr.from(),Lt.from()),Bn=Jt(nr.to(),Lt.to()),ti=nr.empty()?Lt.from()==Lt.head:nr.from()==nr.head;We<=ie&&--ie,U.splice(--We,2,new ce(ti?Bn:_r,ti?_r:Bn))}}return new Rt(U,ie)}function Ie(N,U){return new Rt([new ce(N,U||N)],0)}function Qe(N){return N.text?zt(N.from.line+N.text.length-1,Ge(N.text).length+(N.text.length==1?N.from.ch:0)):N.to}function kt(N,U){if(At(N,U.from)<0)return N;if(At(N,U.to)<=0)return Qe(U);var ie=N.line+U.text.length-(U.to.line-U.from.line)-1,ue=N.ch;return N.line==U.to.line&&(ue+=Qe(U).ch-U.to.ch),zt(ie,ue)}function or(N,U){for(var ie=[],ue=0;ue<N.sel.ranges.length;ue++){var ge=N.sel.ranges[ue];ie.push(new ce(kt(ge.anchor,U),kt(ge.head,U)))}return xe(N.cm,ie,N.sel.primIndex)}function Qr(N,U,ie){return N.line==U.line?zt(ie.line,N.ch-U.ch+ie.ch):zt(ie.line+(N.line-U.line),N.ch)}function fn(N,U,ie){for(var ue=[],ge=zt(N.first,0),We=ge,Lt=0;Lt<U.length;Lt++){var nr=U[Lt],br=Qr(nr.from,ge,We),_r=Qr(Qe(nr),ge,We);if(ge=nr.to,We=_r,ie=="around"){var Bn=N.sel.ranges[Lt],ti=At(Bn.head,Bn.anchor)<0;ue[Lt]=new ce(ti?_r:br,ti?br:_r)}else ue[Lt]=new ce(br,br)}return new Rt(ue,N.sel.primIndex)}function Ln(N){N.doc.mode=Ui(N.options,N.doc.modeOption),ui(N)}function ui(N){N.doc.iter(function(U){U.stateAfter&&(U.stateAfter=null),U.styles&&(U.styles=null)}),N.doc.modeFrontier=N.doc.highlightFrontier=N.doc.first,hs(N,100),N.state.modeGen++,N.curOp&&Ha(N)}function wi(N,U){return U.from.ch==0&&U.to.ch==0&&Ge(U.text)==""&&(!N.cm||N.cm.options.wholeLineUpdateBefore)}function gi(N,U,ie,ue){function ge(Na){return ie?ie[Na]:null}function We(Na,qa,ho){gn(Na,qa,ho,ue),Ir(Na,"change",Na,U)}function Lt(Na,qa){for(var ho=[],ns=Na;ns<qa;++ns)ho.push(new di(_r[ns],ge(ns),ue));return ho}var nr=U.from,br=U.to,_r=U.text,Bn=Be(N,nr.line),ti=Be(N,br.line),Si=Ge(_r),Ci=ge(_r.length-1),la=br.line-nr.line;if(U.full)N.insert(0,Lt(0,_r.length)),N.remove(_r.length,N.size-_r.length);else if(wi(N,U)){var Ta=Lt(0,_r.length-1);We(ti,ti.text,Ci),la&&N.remove(nr.line,la),Ta.length&&N.insert(nr.line,Ta)}else if(Bn==ti)if(_r.length==1)We(Bn,Bn.text.slice(0,nr.ch)+Si+Bn.text.slice(br.ch),Ci);else{var Wa=Lt(1,_r.length-1);Wa.push(new di(Si+Bn.text.slice(br.ch),Ci,ue)),We(Bn,Bn.text.slice(0,nr.ch)+_r[0],ge(0)),N.insert(nr.line+1,Wa)}else if(_r.length==1)We(Bn,Bn.text.slice(0,nr.ch)+_r[0]+ti.text.slice(br.ch),ge(0)),N.remove(nr.line+1,la);else{We(Bn,Bn.text.slice(0,nr.ch)+_r[0],ge(0)),We(ti,Si+ti.text.slice(br.ch),Ci);var Ma=Lt(1,_r.length-1);la>1&&N.remove(nr.line+1,la-1),N.insert(nr.line+1,Ma)}Ir(N,"change",N,U)}function Qi(N,U,ie){function ue(ge,We,Lt){if(ge.linked)for(var nr=0;nr<ge.linked.length;++nr){var br=ge.linked[nr];if(br.doc==We)continue;var _r=Lt&&br.sharedHist;if(ie&&!_r)continue;U(br.doc,_r),ue(br.doc,ge,_r)}}ue(N,null,!0)}function sa(N,U){if(U.cm)throw new Error("This document is already in use.");N.doc=U,U.cm=N,Ho(N),Ln(N),Ua(N),N.options.lineWrapping||Rn(N),N.options.mode=U.modeOption,Ha(N)}function Ua(N){(N.doc.direction=="rtl"?G:T)(N.display.lineDiv,"CodeMirror-rtl")}function no(N){Eo(N,function(){Ua(N),Ha(N)})}function Wo(N){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=N||1}function Zo(N,U){var ie={from:vr(U.from),to:Qe(U),text:it(N,U.from,U.to)};return Ms(N,ie,U.from.line,U.to.line+1),Qi(N,function(ue){return Ms(ue,ie,U.from.line,U.to.line+1)},!0),ie}function Bo(N){for(;N.length;){var U=Ge(N);if(U.ranges)N.pop();else break}}function Es(N,U){if(U)return Bo(N.done),Ge(N.done);if(N.done.length&&!Ge(N.done).ranges)return Ge(N.done);if(N.done.length>1&&!N.done[N.done.length-2].ranges)return N.done.pop(),Ge(N.done)}function As(N,U,ie,ue){var ge=N.history;ge.undone.length=0;var We=+new Date,Lt,nr;if((ge.lastOp==ue||ge.lastOrigin==U.origin&&U.origin&&(U.origin.charAt(0)=="+"&&ge.lastModTime>We-(N.cm?N.cm.options.historyEventDelay:500)||U.origin.charAt(0)=="*"))&&(Lt=Es(ge,ge.lastOp==ue)))nr=Ge(Lt.changes),At(U.from,U.to)==0&&At(U.from,nr.to)==0?nr.to=Qe(U):Lt.changes.push(Zo(N,U));else{var br=Ge(ge.done);for((!br||!br.ranges)&&vo(N.sel,ge.done),Lt={changes:[Zo(N,U)],generation:ge.generation},ge.done.push(Lt);ge.done.length>ge.undoDepth;)ge.done.shift(),ge.done[0].ranges||ge.done.shift()}ge.done.push(ie),ge.generation=++ge.maxGeneration,ge.lastModTime=ge.lastSelTime=We,ge.lastOp=ge.lastSelOp=ue,ge.lastOrigin=ge.lastSelOrigin=U.origin,nr||St(N,"historyAdded")}function $o(N,U,ie,ue){var ge=U.charAt(0);return ge=="*"||ge=="+"&&ie.ranges.length==ue.ranges.length&&ie.somethingSelected()==ue.somethingSelected()&&new Date-N.history.lastSelTime<=(N.cm?N.cm.options.historyEventDelay:500)}function Do(N,U,ie,ue){var ge=N.history,We=ue&&ue.origin;ie==ge.lastSelOp||We&&ge.lastSelOrigin==We&&(ge.lastModTime==ge.lastSelTime&&ge.lastOrigin==We||$o(N,We,Ge(ge.done),U))?ge.done[ge.done.length-1]=U:vo(U,ge.done),ge.lastSelTime=+new Date,ge.lastSelOrigin=We,ge.lastSelOp=ie,ue&&ue.clearRedo!==!1&&Bo(ge.undone)}function vo(N,U){var ie=Ge(U);ie&&ie.ranges&&ie.equals(N)||U.push(N)}function Ms(N,U,ie,ue){var ge=U["spans_"+N.id],We=0;N.iter(Math.max(N.first,ie),Math.min(N.first+N.size,ue),function(Lt){Lt.markedSpans&&((ge||(ge=U["spans_"+N.id]={}))[We]=Lt.markedSpans),++We})}function rl(N){if(!N)return null;for(var U,ie=0;ie<N.length;++ie)N[ie].marker.explicitlyCleared?U||(U=N.slice(0,ie)):U&&U.push(N[ie]);return U?U.length?U:null:N}function gs(N,U){var ie=U["spans_"+N.id];if(!ie)return null;for(var ue=[],ge=0;ge<U.text.length;++ge)ue.push(rl(ie[ge]));return ue}function Ra(N,U){var ie=gs(N,U),ue=Kn(N,U);if(!ie)return ue;if(!ue)return ie;for(var ge=0;ge<ie.length;++ge){var We=ie[ge],Lt=ue[ge];if(We&&Lt){e:for(var nr=0;nr<Lt.length;++nr){for(var br=Lt[nr],_r=0;_r<We.length;++_r)if(We[_r].marker==br.marker)continue e;We.push(br)}}else Lt&&(ie[ge]=Lt)}return ie}function dl(N,U,ie){for(var ue=[],ge=0;ge<N.length;++ge){var We=N[ge];if(We.ranges){ue.push(ie?Rt.prototype.deepCopy.call(We):We);continue}var Lt=We.changes,nr=[];ue.push({changes:nr});for(var br=0;br<Lt.length;++br){var _r=Lt[br],Bn=void 0;if(nr.push({from:_r.from,to:_r.to,text:_r.text}),U)for(var ti in _r)(Bn=ti.match(/^spans_(\d+)$/))&&(X(U,Number(Bn[1]))>-1&&(Ge(nr)[ti]=_r[ti],delete _r[ti]))}}return ue}function fl(N,U,ie,ue){if(ue){var ge=N.anchor;if(ie){var We=At(U,ge)<0;We!=At(ie,ge)<0?(ge=U,U=ie):We!=At(U,ie)<0&&(U=ie)}return new ce(ge,U)}else return new ce(ie||U,U)}function Us(N,U,ie,ue,ge){ge==null&&(ge=N.cm&&(N.cm.display.shift||N.extend)),Ts(N,new Rt([fl(N.sel.primary(),U,ie,ge)],0),ue)}function Os(N,U,ie){for(var ue=[],ge=N.cm&&(N.cm.display.shift||N.extend),We=0;We<N.sel.ranges.length;We++)ue[We]=fl(N.sel.ranges[We],U[We],null,ge);var Lt=xe(N.cm,ue,N.sel.primIndex);Ts(N,Lt,ie)}function Xs(N,U,ie,ue){var ge=N.sel.ranges.slice(0);ge[U]=ie,Ts(N,xe(N.cm,ge,N.sel.primIndex),ue)}function Ql(N,U,ie,ue){Ts(N,Ie(U,ie),ue)}function Ul(N,U,ie){var ue={ranges:U.ranges,update:function(We){this.ranges=[];for(var Lt=0;Lt<We.length;Lt++)this.ranges[Lt]=new ce(Ft(N,We[Lt].anchor),Ft(N,We[Lt].head))},origin:ie&&ie.origin};return St(N,"beforeSelectionChange",N,ue),N.cm&&St(N.cm,"beforeSelectionChange",N.cm,ue),ue.ranges!=U.ranges?xe(N.cm,ue.ranges,ue.ranges.length-1):U}function wl(N,U,ie){var ue=N.history.done,ge=Ge(ue);ge&&ge.ranges?(ue[ue.length-1]=U,Ws(N,U,ie)):Ts(N,U,ie)}function Ts(N,U,ie){Ws(N,U,ie),Do(N,N.sel,N.cm?N.cm.curOp.id:NaN,ie)}function Ws(N,U,ie){(Ot(N,"beforeSelectionChange")||N.cm&&Ot(N.cm,"beforeSelectionChange"))&&(U=Ul(N,U,ie));var ue=ie&&ie.bias||(At(U.primary().head,N.sel.primary().head)<0?-1:1);Tl(N,jo(N,U,ue,!0)),!(ie&&ie.scroll===!1)&&N.cm&&Da(N.cm)}function Tl(N,U){if(U.equals(N.sel))return;N.sel=U,N.cm&&(N.cm.curOp.updateInput=1,N.cm.curOp.selectionChanged=!0,Mt(N.cm)),Ir(N,"cursorActivity",N)}function pl(N){Tl(N,jo(N,N.sel,null,!1))}function jo(N,U,ie,ue){for(var ge,We=0;We<U.ranges.length;We++){var Lt=U.ranges[We],nr=U.ranges.length==N.sel.ranges.length&&N.sel.ranges[We],br=qo(N,Lt.anchor,nr&&nr.anchor,ie,ue),_r=qo(N,Lt.head,nr&&nr.head,ie,ue);(ge||br!=Lt.anchor||_r!=Lt.head)&&(ge||(ge=U.ranges.slice(0,We)),ge[We]=new ce(br,_r))}return ge?xe(N.cm,ge,U.primIndex):U}function yo(N,U,ie,ue,ge){var We=Be(N,U.line);if(We.markedSpans)for(var Lt=0;Lt<We.markedSpans.length;++Lt){var nr=We.markedSpans[Lt],br=nr.marker,_r="selectLeft"in br?!br.selectLeft:br.inclusiveLeft,Bn="selectRight"in br?!br.selectRight:br.inclusiveRight;if((nr.from==null||(_r?nr.from<=U.ch:nr.from<U.ch))&&(nr.to==null||(Bn?nr.to>=U.ch:nr.to>U.ch))){if(ge&&(St(br,"beforeCursorEnter"),br.explicitlyCleared))if(We.markedSpans){--Lt;continue}else break;if(!br.atomic)continue;if(ie){var ti=br.find(ue<0?1:-1),Si=void 0;if((ue<0?Bn:_r)&&(ti=ps(N,ti,-ue,ti&&ti.line==U.line?We:null)),ti&&ti.line==U.line&&(Si=At(ti,ie))&&(ue<0?Si<0:Si>0))return yo(N,ti,U,ue,ge)}var Ci=br.find(ue<0?-1:1);return(ue<0?_r:Bn)&&(Ci=ps(N,Ci,ue,Ci.line==U.line?We:null)),Ci?yo(N,Ci,U,ue,ge):null}}return U}function qo(N,U,ie,ue,ge){var We=ue||1,Lt=yo(N,U,ie,We,ge)||!ge&&yo(N,U,ie,We,!0)||yo(N,U,ie,-We,ge)||!ge&&yo(N,U,ie,-We,!0);return Lt||(N.cantEdit=!0,zt(N.first,0))}function ps(N,U,ie,ue){return ie<0&&U.ch==0?U.line>N.first?Ft(N,zt(U.line-1)):null:ie>0&&U.ch==(ue||Be(N,U.line)).text.length?U.line<N.first+N.size-1?zt(U.line+1,0):null:new zt(U.line,U.ch+ie)}function Is(N){N.setSelection(zt(N.firstLine(),0),zt(N.lastLine()),le)}function es(N,U,ie){var ue={canceled:!1,from:U.from,to:U.to,text:U.text,origin:U.origin,cancel:function(){return ue.canceled=!0}};return ie&&(ue.update=function(ge,We,Lt,nr){ge&&(ue.from=Ft(N,ge)),We&&(ue.to=Ft(N,We)),Lt&&(ue.text=Lt),nr!==void 0&&(ue.origin=nr)}),St(N,"beforeChange",N,ue),N.cm&&St(N.cm,"beforeChange",N.cm,ue),ue.canceled?(N.cm&&(N.cm.curOp.updateInput=2),null):{from:ue.from,to:ue.to,text:ue.text,origin:ue.origin}}function Ls(N,U,ie){if(N.cm){if(!N.cm.curOp)return zo(N.cm,Ls)(N,U,ie);if(N.cm.state.suppressEdits)return}if((Ot(N,"beforeChange")||N.cm&&Ot(N.cm,"beforeChange"))&&(U=es(N,U,!0),!U))return;var ue=rt&&!ie&&Pn(N,U.from,U.to);if(ue)for(var ge=ue.length-1;ge>=0;--ge)Ps(N,{from:ue[ge].from,to:ue[ge].to,text:ge?[""]:U.text,origin:U.origin});else Ps(N,U)}function Ps(N,U){if(U.text.length==1&&U.text[0]==""&&At(U.from,U.to)==0)return;var ie=or(N,U);As(N,U,ie,N.cm?N.cm.curOp.id:NaN),_l(N,U,ie,Kn(N,U));var ue=[];Qi(N,function(ge,We){!We&&X(ue,ge.history)==-1&&(ol(ge.history,U),ue.push(ge.history)),_l(ge,U,null,Kn(ge,U))})}function ml(N,U,ie){var ue=N.cm&&N.cm.state.suppressEdits;if(ue&&!ie)return;for(var ge=N.history,We,Lt=N.sel,nr=U=="undo"?ge.done:ge.undone,br=U=="undo"?ge.undone:ge.done,_r=0;_r<nr.length&&!(We=nr[_r],ie?We.ranges&&!We.equals(N.sel):!We.ranges);_r++);if(_r==nr.length)return;for(ge.lastOrigin=ge.lastSelOrigin=null;;)if(We=nr.pop(),We.ranges){if(vo(We,br),ie&&!We.equals(N.sel)){Ts(N,We,{clearRedo:!1});return}Lt=We}else if(ue){nr.push(We);return}else break;var Bn=[];vo(Lt,br),br.push({changes:Bn,generation:ge.generation}),ge.generation=We.generation||++ge.maxGeneration;for(var ti=Ot(N,"beforeChange")||N.cm&&Ot(N.cm,"beforeChange"),Si=function(Wa){var Ma=We.changes[Wa];if(Ma.origin=U,ti&&!es(N,Ma,!1))return nr.length=0,{};Bn.push(Zo(N,Ma));var Na=Wa?or(N,Ma):Ge(nr);_l(N,Ma,Na,Ra(N,Ma)),!Wa&&N.cm&&N.cm.scrollIntoView({from:Ma.from,to:Qe(Ma)});var qa=[];Qi(N,function(ho,ns){!ns&&X(qa,ho.history)==-1&&(ol(ho.history,Ma),qa.push(ho.history)),_l(ho,Ma,null,Ra(ho,Ma))})},Ci=We.changes.length-1;Ci>=0;--Ci){var la=Si(Ci);if(la)return la.v}}function Rl(N,U){if(U==0)return;if(N.first+=U,N.sel=new Rt(ct(N.sel.ranges,function(ge){return new ce(zt(ge.anchor.line+U,ge.anchor.ch),zt(ge.head.line+U,ge.head.ch))}),N.sel.primIndex),N.cm){Ha(N.cm,N.first,N.first-U,U);for(var ie=N.cm.display,ue=ie.viewFrom;ue<ie.viewTo;ue++)ft(N.cm,ue,"gutter")}}function _l(N,U,ie,ue){if(N.cm&&!N.cm.curOp)return zo(N.cm,_l)(N,U,ie,ue);if(U.to.line<N.first){Rl(N,U.text.length-1-(U.to.line-U.from.line));return}if(U.from.line>N.lastLine())return;if(U.from.line<N.first){var ge=U.text.length-1-(N.first-U.from.line);Rl(N,ge),U={from:zt(N.first,0),to:zt(U.to.line+ge,U.to.ch),text:[Ge(U.text)],origin:U.origin}}var We=N.lastLine();U.to.line>We&&(U={from:U.from,to:zt(We,Be(N,We).text.length),text:[U.text[0]],origin:U.origin}),U.removed=it(N,U.from,U.to),ie||(ie=or(N,U)),N.cm?Bl(N.cm,U,ue):gi(N,U,ue),Ws(N,ie,le),N.cantEdit&&qo(N,zt(N.firstLine(),0))&&(N.cantEdit=!1)}function Bl(N,U,ie){var ue=N.doc,ge=N.display,We=U.from,Lt=U.to,nr=!1,br=We.line;N.options.lineWrapping||(br=Yt(Pt(Be(ue,We.line))),ue.iter(br,Lt.line+1,function(Ci){if(Ci==ge.maxLine)return nr=!0,!0})),ue.sel.contains(U.from,U.to)>-1&&Mt(N),gi(ue,U,ie,rs(N)),N.options.lineWrapping||(ue.iter(br,We.line+U.text.length,function(Ci){var la=zn(Ci);la>ge.maxLineLength&&(ge.maxLine=Ci,ge.maxLineLength=la,ge.maxLineChanged=!0,nr=!1)}),nr&&(N.curOp.updateMaxLine=!0)),Xe(ue,We.line),hs(N,400);var _r=U.text.length-(Lt.line-We.line)-1;U.full?Ha(N):We.line==Lt.line&&U.text.length==1&&!wi(N.doc,U)?ft(N,We.line,"text"):Ha(N,We.line,Lt.line+1,_r);var Bn=Ot(N,"changes"),ti=Ot(N,"change");if(ti||Bn){var Si={from:We,to:Lt,text:U.text,removed:U.removed,origin:U.origin};ti&&Ir(N,"change",N,Si),Bn&&(N.curOp.changeObjs||(N.curOp.changeObjs=[])).push(Si)}N.display.selForContextMenu=null}function jl(N,U,ie,ue,ge){var We;ue||(ue=ie),At(ue,ie)<0&&(We=[ue,ie],ie=We[0],ue=We[1]),typeof U=="string"&&(U=N.splitLines(U)),Ls(N,{from:ie,to:ue,text:U,origin:ge})}function kl(N,U,ie,ue){ie<N.line?N.line+=ue:U<N.line&&(N.line=U,N.ch=0)}function Xl(N,U,ie,ue){for(var ge=0;ge<N.length;++ge){var We=N[ge],Lt=!0;if(We.ranges){We.copied||(We=N[ge]=We.deepCopy(),We.copied=!0);for(var nr=0;nr<We.ranges.length;nr++)kl(We.ranges[nr].anchor,U,ie,ue),kl(We.ranges[nr].head,U,ie,ue);continue}for(var br=0;br<We.changes.length;++br){var _r=We.changes[br];if(ie<_r.from.line)_r.from=zt(_r.from.line+ue,_r.from.ch),_r.to=zt(_r.to.line+ue,_r.to.ch);else if(U<=_r.to.line){Lt=!1;break}}Lt||(N.splice(0,ge+1),ge=0)}}function ol(N,U){var ie=U.from.line,ue=U.to.line,ge=U.text.length-(ue-ie)-1;Xl(N.done,ie,ue,ge),Xl(N.undone,ie,ue,ge)}function Ys(N,U,ie,ue){var ge=U,We=U;return typeof U=="number"?We=Be(N,tr(N,U)):ge=Yt(U),ge==null?null:(ue(We,ge)&&N.cm&&ft(N.cm,ge,ie),We)}function sl(N){this.lines=N,this.parent=null;for(var U=0,ie=0;ie<N.length;++ie)N[ie].parent=this,U+=N[ie].height;this.height=U}sl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(U,ie){for(var ue=U,ge=U+ie;ue<ge;++ue){var We=this.lines[ue];this.height-=We.height,Br(We),Ir(We,"delete")}this.lines.splice(U,ie)},collapse:function(U){U.push.apply(U,this.lines)},insertInner:function(U,ie,ue){this.height+=ue,this.lines=this.lines.slice(0,U).concat(ie).concat(this.lines.slice(U));for(var ge=0;ge<ie.length;++ge)ie[ge].parent=this},iterN:function(U,ie,ue){for(var ge=U+ie;U<ge;++U)if(ue(this.lines[U]))return!0}};function nl(N){this.children=N;for(var U=0,ie=0,ue=0;ue<N.length;++ue){var ge=N[ue];U+=ge.chunkSize(),ie+=ge.height,ge.parent=this}this.size=U,this.height=ie,this.parent=null}nl.prototype={chunkSize:function(){return this.size},removeInner:function(U,ie){this.size-=ie;for(var ue=0;ue<this.children.length;++ue){var ge=this.children[ue],We=ge.chunkSize();if(U<We){var Lt=Math.min(ie,We-U),nr=ge.height;if(ge.removeInner(U,Lt),this.height-=nr-ge.height,We==Lt&&(this.children.splice(ue--,1),ge.parent=null),(ie-=Lt)==0)break;U=0}else U-=We}if(this.size-ie<25&&(this.children.length>1||!(this.children[0]instanceof sl))){var br=[];this.collapse(br),this.children=[new sl(br)],this.children[0].parent=this}},collapse:function(U){for(var ie=0;ie<this.children.length;++ie)this.children[ie].collapse(U)},insertInner:function(U,ie,ue){this.size+=ie.length,this.height+=ue;for(var ge=0;ge<this.children.length;++ge){var We=this.children[ge],Lt=We.chunkSize();if(U<=Lt){if(We.insertInner(U,ie,ue),We.lines&&We.lines.length>50){for(var nr=We.lines.length%25+25,br=nr;br<We.lines.length;){var _r=new sl(We.lines.slice(br,br+=25));We.height-=_r.height,this.children.splice(++ge,0,_r),_r.parent=this}We.lines=We.lines.slice(0,nr),this.maybeSpill()}break}U-=Lt}},maybeSpill:function(){if(this.children.length<=10)return;var U=this;do{var ie=U.children.splice(U.children.length-5,5),ue=new nl(ie);if(U.parent){U.size-=ue.size,U.height-=ue.height;var We=X(U.parent.children,U);U.parent.children.splice(We+1,0,ue)}else{var ge=new nl(U.children);ge.parent=U,U.children=[ge,ue],U=ge}ue.parent=U.parent}while(U.children.length>10);U.parent.maybeSpill()},iterN:function(U,ie,ue){for(var ge=0;ge<this.children.length;++ge){var We=this.children[ge],Lt=We.chunkSize();if(U<Lt){var nr=Math.min(ie,Lt-U);if(We.iterN(U,nr,ue))return!0;if((ie-=nr)==0)break;U=0}else U-=Lt}}};var xl=function(U,ie,ue){if(ue)for(var ge in ue)ue.hasOwnProperty(ge)&&(this[ge]=ue[ge]);this.doc=U,this.node=ie};xl.prototype.clear=function(){var N=this.doc.cm,U=this.line.widgets,ie=this.line,ue=Yt(ie);if(ue==null||!U)return;for(var ge=0;ge<U.length;++ge)U[ge]==this&&U.splice(ge--,1);U.length||(ie.widgets=null);var We=wn(this);Tt(ie,Math.max(0,ie.height-We)),N&&(Eo(N,function(){Ml(N,ie,-We),ft(N,ue,"widget")}),Ir(N,"lineWidgetCleared",N,this,ue))},xl.prototype.changed=function(){var N=this,U=this.height,ie=this.doc.cm,ue=this.line;this.height=null;var ge=wn(this)-U;if(!ge)return;Ar(this.doc,ue)||Tt(ue,ue.height+ge),ie&&Eo(ie,function(){ie.curOp.forceUpdate=!0,Ml(ie,ue,ge),Ir(ie,"lineWidgetChanged",ie,N,Yt(ue))})},Bt(xl);function Ml(N,U,ie){Mr(U)<(N.curOp&&N.curOp.scrollTop||N.doc.scrollTop)&&wa(N,ie)}function Wl(N,U,ie,ue){var ge=new xl(N,ie,ue),We=N.cm;return We&&ge.noHScroll&&(We.display.alignWidgets=!0),Ys(N,U,"widget",function(Lt){var nr=Lt.widgets||(Lt.widgets=[]);if(ge.insertAt==null?nr.push(ge):nr.splice(Math.min(nr.length-1,Math.max(0,ge.insertAt)),0,ge),ge.line=Lt,We&&!Ar(N,Lt)){var br=Mr(Lt)<N.scrollTop;Tt(Lt,Lt.height+wn(ge)),br&&wa(We,ge.height),We.curOp.forceUpdate=!0}return!0}),We&&Ir(We,"lineWidgetAdded",We,ge,typeof U=="number"?U:Yt(U)),ge}var au=0,Nl=function(U,ie){this.lines=[],this.type=ie,this.doc=U,this.id=++au};Nl.prototype.clear=function(){if(this.explicitlyCleared)return;var N=this.doc.cm,U=N&&!N.curOp;if(U&&as(N),Ot(this,"clear")){var ie=this.find();ie&&Ir(this,"clear",ie.from,ie.to)}for(var ue=null,ge=null,We=0;We<this.lines.length;++We){var Lt=this.lines[We],nr=hr(Lt.markedSpans,this);N&&!this.collapsed?ft(N,Yt(Lt),"text"):N&&(nr.to!=null&&(ge=Yt(Lt)),nr.from!=null&&(ue=Yt(Lt))),Lt.markedSpans=Zr(Lt.markedSpans,nr),nr.from==null&&this.collapsed&&!Ar(this.doc,Lt)&&N&&Tt(Lt,Oo(N.display))}if(N&&this.collapsed&&!N.options.lineWrapping)for(var br=0;br<this.lines.length;++br){var _r=Pt(this.lines[br]),Bn=zn(_r);Bn>N.display.maxLineLength&&(N.display.maxLine=_r,N.display.maxLineLength=Bn,N.display.maxLineChanged=!0)}ue!=null&&N&&this.collapsed&&Ha(N,ue,ge+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,N&&pl(N.doc)),N&&Ir(N,"markerCleared",N,this,ue,ge),U&&co(N),this.parent&&this.parent.clear()},Nl.prototype.find=function(N,U){N==null&&this.type=="bookmark"&&(N=1);for(var ie,ue,ge=0;ge<this.lines.length;++ge){var We=this.lines[ge],Lt=hr(We.markedSpans,this);if(Lt.from!=null&&(ie=zt(U?We:Yt(We),Lt.from),N==-1))return ie;if(Lt.to!=null&&(ue=zt(U?We:Yt(We),Lt.to),N==1))return ue}return ie&&{from:ie,to:ue}},Nl.prototype.changed=function(){var N=this,U=this.find(-1,!0),ie=this,ue=this.doc.cm;if(!U||!ue)return;Eo(ue,function(){var ge=U.line,We=Yt(U.line),Lt=Ji(ue,We);if(Lt&&(Oa(Lt),ue.curOp.selectionChanged=ue.curOp.forceUpdate=!0),ue.curOp.updateMaxLine=!0,!Ar(ie.doc,ge)&&ie.height!=null){var nr=ie.height;ie.height=null;var br=wn(ie)-nr;br&&Tt(ge,ge.height+br)}Ir(ue,"markerChanged",ue,N)})},Nl.prototype.attachLine=function(N){if(!this.lines.length&&this.doc.cm){var U=this.doc.cm.curOp;(!U.maybeHiddenMarkers||X(U.maybeHiddenMarkers,this)==-1)&&(U.maybeUnhiddenMarkers||(U.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(N)},Nl.prototype.detachLine=function(N){if(this.lines.splice(X(this.lines,N),1),!this.lines.length&&this.doc.cm){var U=this.doc.cm.curOp;(U.maybeHiddenMarkers||(U.maybeHiddenMarkers=[])).push(this)}},Bt(Nl);function $l(N,U,ie,ue,ge){if(ue&&ue.shared)return Iu(N,U,ie,ue,ge);if(N.cm&&!N.cm.curOp)return zo(N.cm,$l)(N,U,ie,ue,ge);var We=new Nl(N,ge),Lt=At(U,ie);if(ue&&z(ue,We,!1),Lt>0||Lt==0&&We.clearWhenEmpty!==!1)return We;if(We.replacedWith&&(We.collapsed=!0,We.widgetNode=F("span",[We.replacedWith],"CodeMirror-widget"),ue.handleMouseEvents||We.widgetNode.setAttribute("cm-ignore-events","true"),ue.insertLeft&&(We.widgetNode.insertLeft=!0)),We.collapsed){if(It(N,U.line,U,ie,We)||U.line!=ie.line&&It(N,ie.line,U,ie,We))throw new Error("Inserting collapsed marker partially overlapping an existing one");xt()}We.addToHistory&&As(N,{from:U,to:ie,origin:"markText"},N.sel,NaN);var nr=U.line,br=N.cm,_r;if(N.iter(nr,ie.line+1,function(ti){br&&We.collapsed&&!br.options.lineWrapping&&Pt(ti)==br.display.maxLine&&(_r=!0),We.collapsed&&nr!=U.line&&Tt(ti,0),Xr(ti,new pt(We,nr==U.line?U.ch:null,nr==ie.line?ie.ch:null)),++nr}),We.collapsed&&N.iter(U.line,ie.line+1,function(ti){Ar(N,ti)&&Tt(ti,0)}),We.clearOnEnter&&Fe(We,"beforeCursorEnter",function(){return We.clear()}),We.readOnly&&(st(),(N.history.done.length||N.history.undone.length)&&N.clearHistory()),We.collapsed&&(We.id=++au,We.atomic=!0),br){if(_r&&(br.curOp.updateMaxLine=!0),We.collapsed)Ha(br,U.line,ie.line+1);else if(We.className||We.startStyle||We.endStyle||We.css||We.attributes||We.title)for(var Bn=U.line;Bn<=ie.line;Bn++)ft(br,Bn,"text");We.atomic&&pl(br.doc),Ir(br,"markerAdded",br,We)}return We}var tu=function(U,ie){this.markers=U,this.primary=ie;for(var ue=0;ue<U.length;++ue)U[ue].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();Ir(this,"clear")},tu.prototype.find=function(N,U){return this.primary.find(N,U)},Bt(tu);function Iu(N,U,ie,ue,ge){ue=z(ue),ue.shared=!1;var We=[$l(N,U,ie,ue,ge)],Lt=We[0],nr=ue.widgetNode;return Qi(N,function(br){nr&&(ue.widgetNode=nr.cloneNode(!0)),We.push($l(br,Ft(br,U),Ft(br,ie),ue,ge));for(var _r=0;_r<br.linked.length;++_r)if(br.linked[_r].isParent)return;Lt=Ge(We)}),new tu(We,Lt)}function pu(N){return N.findMarks(zt(N.first,0),N.clipPos(zt(N.lastLine())),function(U){return U.parent})}function mu(N,U){for(var ie=0;ie<U.length;ie++){var ue=U[ie],ge=ue.find(),We=N.clipPos(ge.from),Lt=N.clipPos(ge.to);if(At(We,Lt)){var nr=$l(N,We,Lt,ue.primary,ue.primary.type);ue.markers.push(nr),nr.parent=ue}}}function gu(N){for(var U=function(ge){var We=N[ge],Lt=[We.primary.doc];Qi(We.primary.doc,function(_r){return Lt.push(_r)});for(var nr=0;nr<We.markers.length;nr++){var br=We.markers[nr];X(Lt,br.doc)==-1&&(br.parent=null,We.markers.splice(nr--,1))}},ie=0;ie<N.length;ie++)U(ie)}var ql=0,Cl=function N(U,ie,ue,ge,We){if(!(this instanceof N))return new N(U,ie,ue,ge,We);ue==null&&(ue=0),nl.call(this,[new sl([new di("",null)])]),this.first=ue,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ue;var Lt=zt(ue,0);this.sel=Ie(Lt),this.history=new Wo(null),this.id=++ql,this.modeOption=ie,this.lineSep=ge,this.direction=We=="rtl"?"rtl":"ltr",this.extend=!1,typeof U=="string"&&(U=this.splitLines(U)),gi(this,{from:Lt,to:Lt,text:U}),Ts(this,Ie(Lt),le)};Cl.prototype=lt(nl.prototype,{constructor:Cl,iter:function(U,ie,ue){ue?this.iterN(U-this.first,ie-U,ue):this.iterN(this.first,this.first+this.size,U)},insert:function(U,ie){for(var ue=0,ge=0;ge<ie.length;++ge)ue+=ie[ge].height;this.insertInner(U-this.first,ie,ue)},remove:function(U,ie){this.removeInner(U-this.first,ie)},getValue:function(U){var ie=yt(this,this.first,this.first+this.size);return U===!1?ie:ie.join(U||this.lineSeparator())},setValue:ms(function(N){var U=zt(this.first,0),ie=this.first+this.size-1;Ls(this,{from:U,to:zt(ie,Be(this,ie).text.length),text:this.splitLines(N),origin:"setValue",full:!0},!0),this.cm&&ja(this.cm,0,0),Ts(this,Ie(U),le)}),replaceRange:function(U,ie,ue,ge){ie=Ft(this,ie),ue=ue?Ft(this,ue):ie,jl(this,U,ie,ue,ge)},getRange:function(U,ie,ue){var ge=it(this,Ft(this,U),Ft(this,ie));return ue===!1?ge:ge.join(ue||this.lineSeparator())},getLine:function(U){var ie=this.getLineHandle(U);return ie&&ie.text},getLineHandle:function(U){if($r(this,U))return Be(this,U)},getLineNumber:function(U){return Yt(U)},getLineHandleVisualStart:function(U){return typeof U=="number"&&(U=Be(this,U)),Pt(U)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(U){return Ft(this,U)},getCursor:function(U){var ie=this.sel.primary(),ue;return U==null||U=="head"?ue=ie.head:U=="anchor"?ue=ie.anchor:U=="end"||U=="to"||U===!1?ue=ie.to():ue=ie.from(),ue},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ms(function(N,U,ie){Ql(this,Ft(this,typeof N=="number"?zt(N,U||0):N),null,ie)}),setSelection:ms(function(N,U,ie){Ql(this,Ft(this,N),Ft(this,U||N),ie)}),extendSelection:ms(function(N,U,ie){Us(this,Ft(this,N),U&&Ft(this,U),ie)}),extendSelections:ms(function(N,U){Os(this,Hr(this,N),U)}),extendSelectionsBy:ms(function(N,U){var ie=ct(this.sel.ranges,N);Os(this,Hr(this,ie),U)}),setSelections:ms(function(N,U,ie){if(!N.length)return;for(var ue=[],ge=0;ge<N.length;ge++)ue[ge]=new ce(Ft(this,N[ge].anchor),Ft(this,N[ge].head));U==null&&(U=Math.min(N.length-1,this.sel.primIndex)),Ts(this,xe(this.cm,ue,U),ie)}),addSelection:ms(function(N,U,ie){var ue=this.sel.ranges.slice(0);ue.push(new ce(Ft(this,N),Ft(this,U||N))),Ts(this,xe(this.cm,ue,ue.length-1),ie)}),getSelection:function(U){for(var ie=this.sel.ranges,ue,ge=0;ge<ie.length;ge++){var We=it(this,ie[ge].from(),ie[ge].to());ue=ue?ue.concat(We):We}return U===!1?ue:ue.join(U||this.lineSeparator())},getSelections:function(U){for(var ie=[],ue=this.sel.ranges,ge=0;ge<ue.length;ge++){var We=it(this,ue[ge].from(),ue[ge].to());U!==!1&&(We=We.join(U||this.lineSeparator())),ie[ge]=We}return ie},replaceSelection:function(U,ie,ue){for(var ge=[],We=0;We<this.sel.ranges.length;We++)ge[We]=U;this.replaceSelections(ge,ie,ue||"+input")},replaceSelections:ms(function(N,U,ie){for(var ue=[],ge=this.sel,We=0;We<ge.ranges.length;We++){var Lt=ge.ranges[We];ue[We]={from:Lt.from(),to:Lt.to(),text:this.splitLines(N[We]),origin:ie}}for(var nr=U&&U!="end"&&fn(this,ue,U),br=ue.length-1;br>=0;br--)Ls(this,ue[br]);nr?wl(this,nr):this.cm&&Da(this.cm)}),undo:ms(function(){ml(this,"undo")}),redo:ms(function(){ml(this,"redo")}),undoSelection:ms(function(){ml(this,"undo",!0)}),redoSelection:ms(function(){ml(this,"redo",!0)}),setExtending:function(U){this.extend=U},getExtending:function(){return this.extend},historySize:function(){for(var U=this.history,ie=0,ue=0,ge=0;ge<U.done.length;ge++)U.done[ge].ranges||++ie;for(var We=0;We<U.undone.length;We++)U.undone[We].ranges||++ue;return{undo:ie,redo:ue}},clearHistory:function(){var U=this;this.history=new Wo(this.history.maxGeneration),Qi(this,function(ie){return ie.history=U.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(U){return U&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(U){return this.history.generation==(U||this.cleanGeneration)},getHistory:function(){return{done:dl(this.history.done),undone:dl(this.history.undone)}},setHistory:function(U){var ie=this.history=new Wo(this.history.maxGeneration);ie.done=dl(U.done.slice(0),null,!0),ie.undone=dl(U.undone.slice(0),null,!0)},setGutterMarker:ms(function(N,U,ie){return Ys(this,N,"gutter",function(ue){var ge=ue.gutterMarkers||(ue.gutterMarkers={});return ge[U]=ie,!ie&&ee(ge)&&(ue.gutterMarkers=null),!0})}),clearGutter:ms(function(N){var U=this;this.iter(function(ie){ie.gutterMarkers&&ie.gutterMarkers[N]&&Ys(U,ie,"gutter",function(){return ie.gutterMarkers[N]=null,ee(ie.gutterMarkers)&&(ie.gutterMarkers=null),!0})})}),lineInfo:function(U){var ie;if(typeof U=="number"){if(!$r(this,U))return null;if(ie=U,U=Be(this,U),!U)return null}else if(ie=Yt(U),ie==null)return null;return{line:ie,handle:U,text:U.text,gutterMarkers:U.gutterMarkers,textClass:U.textClass,bgClass:U.bgClass,wrapClass:U.wrapClass,widgets:U.widgets}},addLineClass:ms(function(N,U,ie){return Ys(this,N,U=="gutter"?"gutter":"class",function(ue){var ge=U=="text"?"textClass":U=="background"?"bgClass":U=="gutter"?"gutterClass":"wrapClass";if(!ue[ge])ue[ge]=ie;else{if(_(ie).test(ue[ge]))return!1;ue[ge]+=" "+ie}return!0})}),removeLineClass:ms(function(N,U,ie){return Ys(this,N,U=="gutter"?"gutter":"class",function(ue){var ge=U=="text"?"textClass":U=="background"?"bgClass":U=="gutter"?"gutterClass":"wrapClass",We=ue[ge];if(We)if(ie==null)ue[ge]=null;else{var Lt=We.match(_(ie));if(!Lt)return!1;var nr=Lt.index+Lt[0].length;ue[ge]=We.slice(0,Lt.index)+(!Lt.index||nr==We.length?"":" ")+We.slice(nr)||null}else return!1;return!0})}),addLineWidget:ms(function(N,U,ie){return Wl(this,N,U,ie)}),removeLineWidget:function(U){U.clear()},markText:function(U,ie,ue){return $l(this,Ft(this,U),Ft(this,ie),ue,ue&&ue.type||"range")},setBookmark:function(U,ie){var ue={replacedWith:ie&&(ie.nodeType==null?ie.widget:ie),insertLeft:ie&&ie.insertLeft,clearWhenEmpty:!1,shared:ie&&ie.shared,handleMouseEvents:ie&&ie.handleMouseEvents};return U=Ft(this,U),$l(this,U,U,ue,"bookmark")},findMarksAt:function(U){U=Ft(this,U);var ie=[],ue=Be(this,U.line).markedSpans;if(ue)for(var ge=0;ge<ue.length;++ge){var We=ue[ge];(We.from==null||We.from<=U.ch)&&(We.to==null||We.to>=U.ch)&&ie.push(We.marker.parent||We.marker)}return ie},findMarks:function(U,ie,ue){U=Ft(this,U),ie=Ft(this,ie);var ge=[],We=U.line;return this.iter(U.line,ie.line+1,function(Lt){var nr=Lt.markedSpans;if(nr)for(var br=0;br<nr.length;br++){var _r=nr[br];!(_r.to!=null&&We==U.line&&U.ch>=_r.to||_r.from==null&&We!=U.line||_r.from!=null&&We==ie.line&&_r.from>=ie.ch)&&(!ue||ue(_r.marker))&&ge.push(_r.marker.parent||_r.marker)}++We}),ge},getAllMarks:function(){var U=[];return this.iter(function(ie){var ue=ie.markedSpans;if(ue)for(var ge=0;ge<ue.length;++ge)ue[ge].from!=null&&U.push(ue[ge].marker)}),U},posFromIndex:function(U){var ie,ue=this.first,ge=this.lineSeparator().length;return this.iter(function(We){var Lt=We.text.length+ge;if(Lt>U)return ie=U,!0;U-=Lt,++ue}),Ft(this,zt(ue,ie))},indexFromPos:function(U){U=Ft(this,U);var ie=U.ch;if(U.line<this.first||U.ch<0)return 0;var ue=this.lineSeparator().length;return this.iter(this.first,U.line,function(ge){ie+=ge.text.length+ue}),ie},copy:function(U){var ie=new Cl(yt(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,U&&(ie.history.undoDepth=this.history.undoDepth,ie.setHistory(this.getHistory())),ie},linkedDoc:function(U){U||(U={});var ie=this.first,ue=this.first+this.size;U.from!=null&&U.from>ie&&(ie=U.from),U.to!=null&&U.to<ue&&(ue=U.to);var ge=new Cl(yt(this,ie,ue),U.mode||this.modeOption,ie,this.lineSep,this.direction);return U.sharedHist&&(ge.history=this.history),(this.linked||(this.linked=[])).push({doc:ge,sharedHist:U.sharedHist}),ge.linked=[{doc:this,isParent:!0,sharedHist:U.sharedHist}],mu(ge,pu(this)),ge},unlinkDoc:function(U){if(U instanceof Fr&&(U=U.doc),this.linked)for(var ie=0;ie<this.linked.length;++ie){var ue=this.linked[ie];if(ue.doc!=U)continue;this.linked.splice(ie,1),U.unlinkDoc(this),gu(pu(this));break}if(U.history==this.history){var ge=[U.id];Qi(U,function(We){return ge.push(We.id)},!0),U.history=new Wo(null),U.history.done=dl(this.history.done,ge),U.history.undone=dl(this.history.undone,ge)}},iterLinkedDocs:function(U){Qi(this,U)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(U){return this.lineSep?U.split(this.lineSep):mn(U)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:ms(function(N){if(N!="rtl"&&(N="ltr"),N==this.direction)return;this.direction=N,this.iter(function(U){return U.order=null}),this.cm&&no(this.cm)})}),Cl.prototype.eachLine=Cl.prototype.iter;var ll=0;function Hl(N){var U=this;if(vu(U),jt(U,N)||$n(U.display,N))return;Ke(N),d&&(ll=+new Date);var ie=_o(U,N,!0),ue=N.dataTransfer.files;if(!ie||U.isReadOnly())return;if(ue&&ue.length&&window.FileReader&&window.File)for(var ge=ue.length,We=Array(ge),Lt=0,nr=function(){++Lt==ge&&zo(U,function(){ie=Ft(U.doc,ie);var la={from:ie,to:ie,text:U.doc.splitLines(We.filter(function(Ta){return Ta!=null}).join(U.doc.lineSeparator())),origin:"paste"};Ls(U.doc,la),wl(U.doc,Ie(Ft(U.doc,ie),Ft(U.doc,Qe(la))))})()},br=function(la,Ta){if(U.options.allowDropFileTypes&&X(U.options.allowDropFileTypes,la.type)==-1){nr();return}var Wa=new FileReader;Wa.onerror=function(){return nr()},Wa.onload=function(){var Ma=Wa.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ma)){nr();return}We[Ta]=Ma,nr()},Wa.readAsText(la)},_r=0;_r<ue.length;_r++)br(ue[_r],_r);else{if(U.state.draggingText&&U.doc.sel.contains(ie)>-1){U.state.draggingText(N),setTimeout(function(){return U.display.input.focus()},20);return}try{var Bn=N.dataTransfer.getData("Text");if(Bn){var ti;if(U.state.draggingText&&!U.state.draggingText.copy&&(ti=U.listSelections()),Ws(U.doc,Ie(ie,ie)),ti)for(var Si=0;Si<ti.length;++Si)jl(U.doc,"",ti[Si].anchor,ti[Si].head,"drag");U.replaceSelection(Bn,"around","paste"),U.display.input.focus()}}catch(Ci){}}}function Sl(N,U){if(d&&(!N.state.draggingText||+new Date-ll<100)){ut(U);return}if(jt(N,U)||$n(N.display,U))return;if(U.dataTransfer.setData("Text",N.getSelection()),U.dataTransfer.effectAllowed="copyMove",U.dataTransfer.setDragImage&&!e){var ie=I("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),U.dataTransfer.setDragImage(ie,0,0),a&&ie.parentNode.removeChild(ie)}}function Su(N,U){var ie=_o(N,U);if(!ie)return;var ue=document.createDocumentFragment();ri(N,ie,ue),N.display.dragCursor||(N.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),N.display.lineSpace.insertBefore(N.display.dragCursor,N.display.cursorDiv)),O(N.display.dragCursor,ue)}function vu(N){N.display.dragCursor&&(N.display.lineSpace.removeChild(N.display.dragCursor),N.display.dragCursor=null)}function Au(N){if(!document.getElementsByClassName)return;for(var U=document.getElementsByClassName("CodeMirror"),ie=[],ue=0;ue<U.length;ue++){var ge=U[ue].CodeMirror;ge&&ie.push(ge)}ie.length&&ie[0].operation(function(){for(var We=0;We<ie.length;We++)N(ie[We])})}var Ol=!1;function cu(){if(Ol)return;du(),Ol=!0}function du(){var N;Fe(window,"resize",function(){N==null&&(N=setTimeout(function(){N=null,Au(Lu)},100))}),Fe(window,"blur",function(){return Au(mi)})}function Lu(N){var U=N.display;U.cachedCharWidth=U.cachedTextHeight=U.cachedPaddingH=null,U.scrollbarsClipped=!1,N.setSize()}for(var zl={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ru=0;ru<10;ru++)zl[ru+48]=zl[ru+96]=String(ru);for(var ou=65;ou<=90;ou++)zl[ou]=String.fromCharCode(ou);for(var su=1;su<=12;su++)zl[su+111]=zl[su+63235]="F"+su;var Jl={};Jl.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Jl.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Jl.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Jl.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Jl.default=g?Jl.macDefault:Jl.pcDefault;function Du(N){var U=N.split(/-(?!$)/);N=U[U.length-1];for(var ie,ue,ge,We,Lt=0;Lt<U.length-1;Lt++){var nr=U[Lt];if(/^(cmd|meta|m)$/i.test(nr))We=!0;else if(/^a(lt)?$/i.test(nr))ie=!0;else if(/^(c|ctrl|control)$/i.test(nr))ue=!0;else if(/^s(hift)?$/i.test(nr))ge=!0;else throw new Error("Unrecognized modifier name: "+nr)}return ie&&(N="Alt-"+N),ue&&(N="Ctrl-"+N),We&&(N="Cmd-"+N),ge&&(N="Shift-"+N),N}function Ru(N){var U={};for(var ie in N)if(N.hasOwnProperty(ie)){var ue=N[ie];if(/^(name|fallthrough|(de|at)tach)$/.test(ie))continue;if(ue=="..."){delete N[ie];continue}for(var ge=ct(ie.split(" "),Du),We=0;We<ge.length;We++){var Lt=void 0,nr=void 0;We==ge.length-1?(nr=ge.join(" "),Lt=ue):(nr=ge.slice(0,We+1).join(" "),Lt="...");var br=U[nr];if(!br)U[nr]=Lt;else if(br!=Lt)throw new Error("Inconsistent bindings for "+nr)}delete N[ie]}for(var _r in U)N[_r]=U[_r];return N}function Zl(N,U,ie,ue){U=hl(U);var ge=U.call?U.call(N,ue):U[N];if(ge===!1)return"nothing";if(ge==="...")return"multi";if(ge!=null&&ie(ge))return"handled";if(U.fallthrough){if(Object.prototype.toString.call(U.fallthrough)!="[object Array]")return Zl(N,U.fallthrough,ie,ue);for(var We=0;We<U.fallthrough.length;We++){var Lt=Zl(N,U.fallthrough[We],ie,ue);if(Lt)return Lt}}}function yu(N){var U=typeof N=="string"?N:zl[N.keyCode];return U=="Ctrl"||U=="Alt"||U=="Shift"||U=="Mod"}function xu(N,U,ie){var ue=N;return U.altKey&&ue!="Alt"&&(N="Alt-"+N),(E?U.metaKey:U.ctrlKey)&&ue!="Ctrl"&&(N="Ctrl-"+N),(E?U.ctrlKey:U.metaKey)&&ue!="Mod"&&(N="Cmd-"+N),!ie&&U.shiftKey&&ue!="Shift"&&(N="Shift-"+N),N}function bu(N,U){if(a&&N.keyCode==34&&N.char)return!1;var ie=zl[N.keyCode];return ie==null||N.altGraphKey?!1:(N.keyCode==3&&N.code&&(ie=N.code),xu(ie,N,U))}function hl(N){return typeof N=="string"?Jl[N]:N}function Dl(N,U){for(var ie=N.doc.sel.ranges,ue=[],ge=0;ge<ie.length;ge++){for(var We=U(ie[ge]);ue.length&&At(We.from,Ge(ue).to)<=0;){var Lt=ue.pop();if(At(Lt.from,We.from)<0){We.from=Lt.from;break}}ue.push(We)}Eo(N,function(){for(var nr=ue.length-1;nr>=0;nr--)jl(N.doc,"",ue[nr].from,ue[nr].to,"+delete");Da(N)})}function nu(N,U,ie){var ue=Ce(N.text,U+ie,ie);return ue<0||ue>N.text.length?null:ue}function Nu(N,U,ie){var ue=nu(N,U.ch,ie);return ue==null?null:new zt(U.line,ue,ie<0?"after":"before")}function hu(N,U,ie,ue,ge){if(N){U.doc.direction=="rtl"&&(ge=-ge);var We=gt(ie,U.doc.direction);if(We){var Lt=ge<0?Ge(We):We[0],nr=ge<0==(Lt.level==1),br=nr?"after":"before",_r;if(Lt.level>0||U.doc.direction=="rtl"){var Bn=ca(U,ie);_r=ge<0?ie.text.length-1:0;var ti=Ca(U,Bn,_r).top;_r=_e(function(Si){return Ca(U,Bn,Si).top==ti},ge<0==(Lt.level==1)?Lt.from:Lt.to-1,_r),br=="before"&&(_r=nu(ie,_r,1))}else _r=ge<0?Lt.to:Lt.from;return new zt(ue,_r,br)}}return new zt(ue,ge<0?ie.text.length:0,ge<0?"before":"after")}function fu(N,U,ie,ue){var ge=gt(U,N.doc.direction);if(!ge)return Nu(U,ie,ue);ie.ch>=U.text.length?(ie.ch=U.text.length,ie.sticky="before"):ie.ch<=0&&(ie.ch=0,ie.sticky="after");var We=Le(ge,ie.ch,ie.sticky),Lt=ge[We];if(N.doc.direction=="ltr"&&Lt.level%2==0&&(ue>0?Lt.to>ie.ch:Lt.from<ie.ch))return Nu(U,ie,ue);var nr=function(Na,qa){return nu(U,Na instanceof zt?Na.ch:Na,qa)},br,_r=function(Na){return N.options.lineWrapping?(br=br||ca(N,U),to(N,U,br,Na)):{begin:0,end:U.text.length}},Bn=_r(ie.sticky=="before"?nr(ie,-1):ie.ch);if(N.doc.direction=="rtl"||Lt.level==1){var ti=Lt.level==1==ue<0,Si=nr(ie,ti?1:-1);if(Si!=null&&(ti?Si<=Lt.to&&Si<=Bn.end:Si>=Lt.from&&Si>=Bn.begin)){var Ci=ti?"before":"after";return new zt(ie.line,Si,Ci)}}var la=function(Na,qa,ho){for(var ns=function(ul,Pl){return Pl?new zt(ie.line,nr(ul,1),"before"):new zt(ie.line,ul,"after")};Na>=0&&Na<ge.length;Na+=qa){var Mo=ge[Na],Ss=qa>0==(Mo.level!=1),Zs=Ss?ho.begin:nr(ho.end,-1);if(Mo.from<=Zs&&Zs<Mo.to)return ns(Zs,Ss);if(Zs=Ss?Mo.from:nr(Mo.to,-1),ho.begin<=Zs&&Zs<ho.end)return ns(Zs,Ss)}},Ta=la(We+ue,ue,Bn);if(Ta)return Ta;var Wa=ue>0?Bn.end:nr(Bn.begin,-1);return Wa!=null&&!(ue>0&&Wa==U.text.length)&&(Ta=la(ue>0?0:ge.length-1,ue,_r(Wa)),Ta)?Ta:null}var iu={selectAll:Is,singleSelection:function(U){return U.setSelection(U.getCursor("anchor"),U.getCursor("head"),le)},killLine:function(U){return Dl(U,function(ie){if(ie.empty()){var ue=Be(U.doc,ie.head.line).text.length;return ie.head.ch==ue&&ie.head.line<U.lastLine()?{from:ie.head,to:zt(ie.head.line+1,0)}:{from:ie.head,to:zt(ie.head.line,ue)}}else return{from:ie.from(),to:ie.to()}})},deleteLine:function(U){return Dl(U,function(ie){return{from:zt(ie.from().line,0),to:Ft(U.doc,zt(ie.to().line+1,0))}})},delLineLeft:function(U){return Dl(U,function(ie){return{from:zt(ie.from().line,0),to:ie.from()}})},delWrappedLineLeft:function(U){return Dl(U,function(ie){var ue=U.charCoords(ie.head,"div").top+5,ge=U.coordsChar({left:0,top:ue},"div");return{from:ge,to:ie.from()}})},delWrappedLineRight:function(U){return Dl(U,function(ie){var ue=U.charCoords(ie.head,"div").top+5,ge=U.coordsChar({left:U.display.lineDiv.offsetWidth+100,top:ue},"div");return{from:ie.from(),to:ge}})},undo:function(U){return U.undo()},redo:function(U){return U.redo()},undoSelection:function(U){return U.undoSelection()},redoSelection:function(U){return U.redoSelection()},goDocStart:function(U){return U.extendSelection(zt(U.firstLine(),0))},goDocEnd:function(U){return U.extendSelection(zt(U.lastLine()))},goLineStart:function(U){return U.extendSelectionsBy(function(ie){return Ae(U,ie.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(U){return U.extendSelectionsBy(function(ie){return L(U,ie.head)},{origin:"+move",bias:1})},goLineEnd:function(U){return U.extendSelectionsBy(function(ie){return q(U,ie.head.line)},{origin:"+move",bias:-1})},goLineRight:function(U){return U.extendSelectionsBy(function(ie){var ue=U.cursorCoords(ie.head,"div").top+5;return U.coordsChar({left:U.display.lineDiv.offsetWidth+100,top:ue},"div")},Se)},goLineLeft:function(U){return U.extendSelectionsBy(function(ie){var ue=U.cursorCoords(ie.head,"div").top+5;return U.coordsChar({left:0,top:ue},"div")},Se)},goLineLeftSmart:function(U){return U.extendSelectionsBy(function(ie){var ue=U.cursorCoords(ie.head,"div").top+5,ge=U.coordsChar({left:0,top:ue},"div");return ge.ch<U.getLine(ge.line).search(/\S/)?L(U,ie.head):ge},Se)},goLineUp:function(U){return U.moveV(-1,"line")},goLineDown:function(U){return U.moveV(1,"line")},goPageUp:function(U){return U.moveV(-1,"page")},goPageDown:function(U){return U.moveV(1,"page")},goCharLeft:function(U){return U.moveH(-1,"char")},goCharRight:function(U){return U.moveH(1,"char")},goColumnLeft:function(U){return U.moveH(-1,"column")},goColumnRight:function(U){return U.moveH(1,"column")},goWordLeft:function(U){return U.moveH(-1,"word")},goGroupRight:function(U){return U.moveH(1,"group")},goGroupLeft:function(U){return U.moveH(-1,"group")},goWordRight:function(U){return U.moveH(1,"word")},delCharBefore:function(U){return U.deleteH(-1,"codepoint")},delCharAfter:function(U){return U.deleteH(1,"char")},delWordBefore:function(U){return U.deleteH(-1,"word")},delWordAfter:function(U){return U.deleteH(1,"word")},delGroupBefore:function(U){return U.deleteH(-1,"group")},delGroupAfter:function(U){return U.deleteH(1,"group")},indentAuto:function(U){return U.indentSelection("smart")},indentMore:function(U){return U.indentSelection("add")},indentLess:function(U){return U.indentSelection("subtract")},insertTab:function(U){return U.replaceSelection(" ")},insertSoftTab:function(U){for(var ie=[],ue=U.listSelections(),ge=U.options.tabSize,We=0;We<ue.length;We++){var Lt=ue[We].from(),nr=V(U.getLine(Lt.line),Lt.ch,ge);ie.push(Je(ge-nr%ge))}U.replaceSelections(ie)},defaultTab:function(U){U.somethingSelected()?U.indentSelection("add"):U.execCommand("insertTab")},transposeChars:function(U){return Eo(U,function(){for(var ie=U.listSelections(),ue=[],ge=0;ge<ie.length;ge++){if(!ie[ge].empty())continue;var We=ie[ge].head,Lt=Be(U.doc,We.line).text;if(Lt){if(We.ch==Lt.length&&(We=new zt(We.line,We.ch-1)),We.ch>0)We=new zt(We.line,We.ch+1),U.replaceRange(Lt.charAt(We.ch-1)+Lt.charAt(We.ch-2),zt(We.line,We.ch-2),We,"+transpose");else if(We.line>U.doc.first){var nr=Be(U.doc,We.line-1).text;nr&&(We=new zt(We.line,1),U.replaceRange(Lt.charAt(0)+U.doc.lineSeparator()+nr.charAt(nr.length-1),zt(We.line-1,nr.length-1),We,"+transpose"))}}ue.push(new ce(We,We))}U.setSelections(ue)})},newlineAndIndent:function(U){return Eo(U,function(){for(var ie=U.listSelections(),ue=ie.length-1;ue>=0;ue--)U.replaceRange(U.doc.lineSeparator(),ie[ue].anchor,ie[ue].head,"+input");ie=U.listSelections();for(var ge=0;ge<ie.length;ge++)U.indentLine(ie[ge].from().line,null,!0);Da(U)})},openLine:function(U){return U.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(U){return U.toggleOverwrite()}};function Ae(N,U){var ie=Be(N.doc,U),ue=Pt(ie);return ue!=ie&&(U=Yt(ue)),hu(!0,N,ue,U,1)}function q(N,U){var ie=Be(N.doc,U),ue=Kt(ie);return ue!=ie&&(U=Yt(ue)),hu(!0,N,ie,U,-1)}function L(N,U){var ie=Ae(N,U.line),ue=Be(N.doc,ie.line),ge=gt(ue,N.doc.direction);if(!ge||ge[0].level==0){var We=Math.max(ie.ch,ue.text.search(/\S/)),Lt=U.line==ie.line&&U.ch<=We&&U.ch;return zt(ie.line,Lt?0:We,ie.sticky)}return ie}function W(N,U,ie){if(typeof U=="string"&&(U=iu[U],!U))return!1;N.display.input.ensurePolled();var ue=N.display.shift,ge=!1;try{N.isReadOnly()&&(N.state.suppressEdits=!0),ie&&(N.display.shift=!1),ge=U(N)!=$}finally{N.display.shift=ue,N.state.suppressEdits=!1}return ge}function H(N,U,ie){for(var ue=0;ue<N.state.keyMaps.length;ue++){var ge=Zl(U,N.state.keyMaps[ue],ie,N);if(ge)return ge}return N.options.extraKeys&&Zl(U,N.options.extraKeys,ie,N)||Zl(U,N.options.keyMap,ie,N)}var Z=new Q;function ne(N,U,ie,ue){var ge=N.state.keySeq;if(ge){if(yu(U))return"handled";if(/\'$/.test(U)?N.state.keySeq=null:Z.set(50,function(){N.state.keySeq==ge&&(N.state.keySeq=null,N.display.input.reset())}),ve(N,ge+" "+U,ie,ue))return!0}return ve(N,U,ie,ue)}function ve(N,U,ie,ue){var ge=H(N,U,ue);return ge=="multi"&&(N.state.keySeq=U),ge=="handled"&&Ir(N,"keyHandled",N,U,ie),(ge=="handled"||ge=="multi")&&(Ke(ie),li(N)),!!ge}function Te(N,U){var ie=bu(U,!0);return ie?U.shiftKey&&!N.state.keySeq?ne(N,"Shift-"+ie,U,function(ue){return W(N,ue,!0)})||ne(N,ie,U,function(ue){if(typeof ue=="string"?/^go[A-Z]/.test(ue):ue.motion)return W(N,ue)}):ne(N,ie,U,function(ue){return W(N,ue)}):!1}function Ve(N,U,ie){return ne(N,"'"+ie+"'",U,function(ue){return W(N,ue,!0)})}var ot=null;function ht(N){var U=this;if(N.target&&N.target!=U.display.input.getField())return;if(U.curOp.focus=k(),jt(U,N))return;d&&l<11&&N.keyCode==27&&(N.returnValue=!1);var ie=N.keyCode;U.display.shift=ie==16||N.shiftKey;var ue=Te(U,N);a&&(ot=ue?ie:null,!ue&&ie==88&&!xr&&(g?N.metaKey:N.ctrlKey)&&U.replaceSelection("",null,"cut")),x&&!g&&!ue&&ie==46&&N.shiftKey&&!N.ctrlKey&&document.execCommand&&document.execCommand("cut"),ie==18&&!/\bCodeMirror-crosshair\b/.test(U.display.lineDiv.className)&&Qt(U)}function Qt(N){var U=N.display.lineDiv;G(U,"CodeMirror-crosshair");function ie(ue){(ue.keyCode==18||!ue.altKey)&&(T(U,"CodeMirror-crosshair"),et(document,"keyup",ie),et(document,"mouseover",ie))}Fe(document,"keyup",ie),Fe(document,"mouseover",ie)}function Cr(N){N.keyCode==16&&(this.doc.sel.shift=!1),jt(this,N)}function wr(N){var U=this;if(N.target&&N.target!=U.display.input.getField())return;if($n(U.display,N)||jt(U,N)||N.ctrlKey&&!N.altKey||g&&N.metaKey)return;var ie=N.keyCode,ue=N.charCode;if(a&&ie==ot){ot=null,Ke(N);return}if(a&&(!N.which||N.which<10)&&Te(U,N))return;var ge=String.fromCharCode(ue==null?ie:ue);if(ge=="\b")return;if(Ve(U,N,ge))return;U.display.input.onKeyPress(N)}var Kr=400,Jr=function(U,ie,ue){this.time=U,this.pos=ie,this.button=ue};Jr.prototype.compare=function(N,U,ie){return this.time+Kr>N&&At(U,this.pos)==0&&ie==this.button};var Cn,Nn;function Jn(N,U){var ie=+new Date;return Nn&&Nn.compare(ie,N,U)?(Cn=Nn=null,"triple"):Cn&&Cn.compare(ie,N,U)?(Nn=new Jr(ie,N,U),Cn=null,"double"):(Cn=new Jr(ie,N,U),Nn=null,"single")}function bi(N){var U=this,ie=U.display;if(jt(U,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(bs(U,N))return;var ue=_o(U,N),ge=me(N),We=ue?Jn(ue,ge):"single";if(window.focus(),ge==1&&U.state.selectingText&&U.state.selectingText(N),ue&&ua(U,ge,ue,We,N))return;ge==1?ue?Zi(U,ue,We,N):qe(N)==ie.scroller&&Ke(N):ge==2?(ue&&Us(U.doc,ue),setTimeout(function(){return ie.input.focus()},20)):ge==3&&(C?U.display.input.onContextMenu(N):si(U))}function ua(N,U,ie,ue,ge){var We="Click";return ue=="double"?We="Double"+We:ue=="triple"&&(We="Triple"+We),We=(U==1?"Left":U==2?"Middle":"Right")+We,ne(N,xu(We,ge),ge,function(Lt){if(typeof Lt=="string"&&(Lt=iu[Lt]),!Lt)return!1;var nr=!1;try{N.isReadOnly()&&(N.state.suppressEdits=!0),nr=Lt(N,ie)!=$}finally{N.state.suppressEdits=!1}return nr})}function Vi(N,U,ie){var ue=N.getOption("configureMouse"),ge=ue?ue(N,U,ie):{};if(ge.unit==null){var We=A?ie.shiftKey&&ie.metaKey:ie.altKey;ge.unit=We?"rectangle":U=="single"?"char":U=="double"?"word":"line"}return(ge.extend==null||N.doc.extend)&&(ge.extend=N.doc.extend||ie.shiftKey),ge.addNew==null&&(ge.addNew=g?ie.metaKey:ie.ctrlKey),ge.moveOnDrag==null&&(ge.moveOnDrag=!(g?ie.altKey:ie.ctrlKey)),ge}function Zi(N,U,ie,ue){d?setTimeout(K(ci,N),0):N.curOp.focus=k();var ge=Vi(N,ie,ue),We=N.doc.sel,Lt;N.options.dragDrop&&Wt&&!N.isReadOnly()&&ie=="single"&&(Lt=We.contains(U))>-1&&(At((Lt=We.ranges[Lt]).from(),U)<0||U.xRel>0)&&(At(Lt.to(),U)>0||U.xRel<0)?ka(N,ue,U,ge):Ba(N,ue,U,ge)}function ka(N,U,ie,ue){var ge=N.display,We=!1,Lt=zo(N,function(_r){o&&(ge.scroller.draggable=!1),N.state.draggingText=!1,et(ge.wrapper.ownerDocument,"mouseup",Lt),et(ge.wrapper.ownerDocument,"mousemove",nr),et(ge.scroller,"dragstart",br),et(ge.scroller,"drop",Lt),We||(Ke(_r),ue.addNew||Us(N.doc,ie,null,null,ue.extend),o&&!e||d&&l==9?setTimeout(function(){ge.wrapper.ownerDocument.body.focus({preventScroll:!0}),ge.input.focus()},20):ge.input.focus())}),nr=function(Bn){We=We||Math.abs(U.clientX-Bn.clientX)+Math.abs(U.clientY-Bn.clientY)>=10},br=function(){return We=!0};o&&(ge.scroller.draggable=!0),N.state.draggingText=Lt,Lt.copy=!ue.moveOnDrag,ge.scroller.dragDrop&&ge.scroller.dragDrop(),Fe(ge.wrapper.ownerDocument,"mouseup",Lt),Fe(ge.wrapper.ownerDocument,"mousemove",nr),Fe(ge.scroller,"dragstart",br),Fe(ge.scroller,"drop",Lt),si(N),setTimeout(function(){return ge.input.focus()},20)}function Ga(N,U,ie){if(ie=="char")return new ce(U,U);if(ie=="word")return N.findWordAt(U);if(ie=="line")return new ce(zt(U.line,0),Ft(N.doc,zt(U.line+1,0)));var ue=ie(N,U);return new ce(ue.from,ue.to)}function Ba(N,U,ie,ue){var ge=N.display,We=N.doc;Ke(U);var Lt,nr,br=We.sel,_r=br.ranges;if(ue.addNew&&!ue.extend?(nr=We.sel.contains(ie),nr>-1?Lt=_r[nr]:Lt=new ce(ie,ie)):(Lt=We.sel.primary(),nr=We.sel.primIndex),ue.unit=="rectangle")ue.addNew||(Lt=new ce(ie,ie)),ie=_o(N,U,!0,!0),nr=-1;else{var Bn=Ga(N,ie,ue.unit);ue.extend?Lt=fl(Lt,Bn.anchor,Bn.head,ue.extend):Lt=Bn}ue.addNew?nr==-1?(nr=_r.length,Ts(We,xe(N,_r.concat([Lt]),nr),{scroll:!1,origin:"*mouse"})):_r.length>1&&_r[nr].empty()&&ue.unit=="char"&&!ue.extend?(Ts(We,xe(N,_r.slice(0,nr).concat(_r.slice(nr+1)),0),{scroll:!1,origin:"*mouse"}),br=We.sel):Xs(We,nr,Lt,re):(nr=0,Ts(We,new Rt([Lt],0),re),br=We.sel);var ti=ie;function Si(qa){if(At(ti,qa)==0)return;if(ti=qa,ue.unit=="rectangle"){for(var ho=[],ns=N.options.tabSize,Mo=V(Be(We,ie.line).text,ie.ch,ns),Ss=V(Be(We,qa.line).text,qa.ch,ns),Zs=Math.min(Mo,Ss),yl=Math.max(Mo,Ss),ul=Math.min(ie.line,qa.line),Pl=Math.min(N.lastLine(),Math.max(ie.line,qa.line));ul<=Pl;ul++){var Vl=Be(We,ul).text,Il=Re(Vl,Zs,ns);Zs==yl?ho.push(new ce(zt(ul,Il),zt(ul,Il))):Vl.length>Il&&ho.push(new ce(zt(ul,Il),zt(ul,Re(Vl,yl,ns))))}ho.length||ho.push(new ce(ie,ie)),Ts(We,xe(N,br.ranges.slice(0,nr).concat(ho),nr),{origin:"*mouse",scroll:!1}),N.scrollIntoView(qa)}else{var Gl=Lt,Fl=Ga(N,qa,ue.unit),Ja=Gl.anchor,vl;At(Fl.anchor,Ja)>0?(vl=Fl.head,Ja=Ut(Gl.from(),Fl.anchor)):(vl=Fl.anchor,Ja=Jt(Gl.to(),Fl.head));var gl=br.ranges.slice(0);gl[nr]=Sa(N,new ce(Ft(We,Ja),vl)),Ts(We,xe(N,gl,nr),re)}}var Ci=ge.wrapper.getBoundingClientRect(),la=0;function Ta(qa){var ho=++la,ns=_o(N,qa,!0,ue.unit=="rectangle");if(!ns)return;if(At(ns,ti)!=0){N.curOp.focus=k(),Si(ns);var Mo=ia(ge,We);(ns.line>=Mo.to||ns.line<Mo.from)&&setTimeout(zo(N,function(){la==ho&&Ta(qa)}),150)}else{var Ss=qa.clientY<Ci.top?-20:qa.clientY>Ci.bottom?20:0;Ss&&setTimeout(zo(N,function(){if(la!=ho)return;ge.scroller.scrollTop+=Ss,Ta(qa)}),50)}}function Wa(qa){N.state.selectingText=!1,la=Infinity,qa&&(Ke(qa),ge.input.focus()),et(ge.wrapper.ownerDocument,"mousemove",Ma),et(ge.wrapper.ownerDocument,"mouseup",Na),We.history.lastSelOrigin=null}var Ma=zo(N,function(qa){qa.buttons===0||!me(qa)?Wa(qa):Ta(qa)}),Na=zo(N,Wa);N.state.selectingText=Na,Fe(ge.wrapper.ownerDocument,"mousemove",Ma),Fe(ge.wrapper.ownerDocument,"mouseup",Na)}function Sa(N,U){var ie=U.anchor,ue=U.head,ge=Be(N.doc,ie.line);if(At(ie,ue)==0&&ie.sticky==ue.sticky)return U;var We=gt(ge);if(!We)return U;var Lt=Le(We,ie.ch,ie.sticky),nr=We[Lt];if(nr.from!=ie.ch&&nr.to!=ie.ch)return U;var br=Lt+(nr.from==ie.ch==(nr.level!=1)?0:1);if(br==0||br==We.length)return U;var _r;if(ue.line!=ie.line)_r=(ue.line-ie.line)*(N.doc.direction=="ltr"?1:-1)>0;else{var Bn=Le(We,ue.ch,ue.sticky),ti=Bn-Lt||(ue.ch-ie.ch)*(nr.level==1?-1:1);Bn==br-1||Bn==br?_r=ti<0:_r=ti>0}var Si=We[br+(_r?-1:0)],Ci=_r==(Si.level==1),la=Ci?Si.from:Si.to,Ta=Ci?"after":"before";return ie.ch==la&&ie.sticky==Ta?U:new ce(new zt(ie.line,la,Ta),ue)}function Go(N,U,ie,ue){var ge,We;if(U.touches)ge=U.touches[0].clientX,We=U.touches[0].clientY;else try{ge=U.clientX,We=U.clientY}catch(Si){return!1}if(ge>=Math.floor(N.display.gutters.getBoundingClientRect().right))return!1;ue&&Ke(U);var Lt=N.display,nr=Lt.lineDiv.getBoundingClientRect();if(We>nr.bottom||!Ot(N,ie))return se(U);We-=nr.top-Lt.viewOffset;for(var br=0;br<N.display.gutterSpecs.length;++br){var _r=Lt.gutters.childNodes[br];if(_r&&_r.getBoundingClientRect().right>=ge){var Bn=Pr(N.doc,We),ti=N.display.gutterSpecs[br];return St(N,ie,N,Bn,ti.className,U),se(U)}}}function bs(N,U){return Go(N,U,"gutterClick",!0)}function ys(N,U){if($n(N.display,U)||Cs(N,U))return;if(jt(N,U,"contextmenu"))return;C||N.display.input.onContextMenu(U)}function Cs(N,U){return Ot(N,"gutterContextMenu")?Go(N,U,"gutterContextMenu",!1):!1}function js(N){N.display.wrapper.className=N.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+N.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Xa(N)}var ws={toString:function(){return"CodeMirror.Init"}},Hs={},Ee={};function Ye(N){var U=N.optionHandlers;function ie(ue,ge,We,Lt){N.defaults[ue]=ge,We&&(U[ue]=Lt?function(nr,br,_r){_r!=ws&&We(nr,br,_r)}:We)}N.defineOption=ie,N.Init=ws,ie("value","",function(ue,ge){return ue.setValue(ge)},!0),ie("mode",null,function(ue,ge){ue.doc.modeOption=ge,Ln(ue)},!0),ie("indentUnit",2,Ln,!0),ie("indentWithTabs",!1),ie("smartIndent",!0),ie("tabSize",4,function(ue){ui(ue),Xa(ue),Ha(ue)},!0),ie("lineSeparator",null,function(ue,ge){if(ue.doc.lineSep=ge,!ge)return;var We=[],Lt=ue.doc.first;ue.doc.iter(function(br){for(var _r=0;;){var Bn=br.text.indexOf(ge,_r);if(Bn==-1)break;_r=Bn+ge.length,We.push(zt(Lt,Bn))}Lt++});for(var nr=We.length-1;nr>=0;nr--)jl(ue.doc,ge,We[nr],zt(We[nr].line,We[nr].ch+ge.length))}),ie("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ue,ge,We){ue.state.specialChars=new RegExp(ge.source+(ge.test(" ")?"":"| "),"g"),We!=ws&&ue.refresh()}),ie("specialCharPlaceholder",Ei,function(ue){return ue.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(ue,ge){return ue.getInputField().spellcheck=ge},!0),ie("autocorrect",!1,function(ue,ge){return ue.getInputField().autocorrect=ge},!0),ie("autocapitalize",!1,function(ue,ge){return ue.getInputField().autocapitalize=ge},!0),ie("rtlMoveVisually",!b),ie("wholeLineUpdateBefore",!0),ie("theme","default",function(ue){js(ue),fs(ue)},!0),ie("keyMap","default",function(ue,ge,We){var Lt=hl(ge),nr=We!=ws&&hl(We);nr&&nr.detach&&nr.detach(ue,Lt),Lt.attach&&Lt.attach(ue,nr||null)}),ie("extraKeys",null),ie("configureMouse",null),ie("lineWrapping",!1,cr,!0),ie("gutters",[],function(ue,ge){ue.display.gutterSpecs=Vo(ge,ue.options.lineNumbers),fs(ue)},!0),ie("fixedGutter",!0,function(ue,ge){ue.display.gutters.style.left=ge?xo(ue.display)+"px":"0",ue.refresh()},!0),ie("coverGutterNextToScrollbar",!1,function(ue){return Lo(ue)},!0),ie("scrollbarStyle","native",function(ue){Rs(ue),Lo(ue),ue.display.scrollbars.setScrollTop(ue.doc.scrollTop),ue.display.scrollbars.setScrollLeft(ue.doc.scrollLeft)},!0),ie("lineNumbers",!1,function(ue,ge){ue.display.gutterSpecs=Vo(ue.options.gutters,ge),fs(ue)},!0),ie("firstLineNumber",1,fs,!0),ie("lineNumberFormatter",function(ue){return ue},fs,!0),ie("showCursorWhenSelecting",!1,dn,!0),ie("resetSelectionOnContextMenu",!0),ie("lineWiseCopyCut",!0),ie("pasteLinesPerSelection",!0),ie("selectionsMayTouch",!1),ie("readOnly",!1,function(ue,ge){ge=="nocursor"&&(mi(ue),ue.display.input.blur()),ue.display.input.readOnlyChanged(ge)}),ie("screenReaderLabel",null,function(ue,ge){ge=ge===""?null:ge,ue.display.input.screenReaderLabelChanged(ge)}),ie("disableInput",!1,function(ue,ge){ge||ue.display.input.reset()},!0),ie("dragDrop",!0,Et),ie("allowDropFileTypes",null),ie("cursorBlinkRate",530),ie("cursorScrollMargin",0),ie("cursorHeight",1,dn,!0),ie("singleCursorHeightPerLine",!0,dn,!0),ie("workTime",100),ie("workDelay",100),ie("flattenSpans",!0,ui,!0),ie("addModeClass",!1,ui,!0),ie("pollInterval",100),ie("undoDepth",200,function(ue,ge){return ue.doc.history.undoDepth=ge}),ie("historyEventDelay",1250),ie("viewportMargin",10,function(ue){return ue.refresh()},!0),ie("maxHighlightLength",1e4,ui,!0),ie("moveInputWithCursor",!0,function(ue,ge){ge||ue.display.input.resetPosition()}),ie("tabindex",null,function(ue,ge){return ue.display.input.getField().tabIndex=ge||""}),ie("autofocus",null),ie("direction","ltr",function(ue,ge){return ue.doc.setDirection(ge)},!0),ie("phrases",null)}function Et(N,U,ie){var ue=ie&&ie!=ws;if(!U!=!ue){var ge=N.display.dragFunctions,We=U?Fe:et;We(N.display.scroller,"dragstart",ge.start),We(N.display.scroller,"dragenter",ge.enter),We(N.display.scroller,"dragover",ge.over),We(N.display.scroller,"dragleave",ge.leave),We(N.display.scroller,"drop",ge.drop)}}function cr(N){N.options.lineWrapping?(G(N.display.wrapper,"CodeMirror-wrap"),N.display.sizer.style.minWidth="",N.display.sizerWidth=null):(T(N.display.wrapper,"CodeMirror-wrap"),Rn(N)),Ho(N),Ha(N),Xa(N),setTimeout(function(){return Lo(N)},100)}function Fr(N,U){var ie=this;if(!(this instanceof Fr))return new Fr(N,U);this.options=U=U?z(U):{},z(Hs,U,!1);var ue=U.value;typeof ue=="string"?ue=new Cl(ue,U.mode,null,U.lineSeparator,U.direction):U.mode&&(ue.modeOption=U.mode),this.doc=ue;var ge=new Fr.inputStyles[U.inputStyle](this),We=this.display=new Ds(N,ue,ge,U);We.wrapper.CodeMirror=this,js(this),U.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Rs(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Q,keySeq:null,specialChars:null},U.autofocus&&!h&&We.input.focus(),d&&l<11&&setTimeout(function(){return ie.display.input.reset(!0)},20),sn(this),cu(),as(this),this.curOp.forceUpdate=!0,sa(this,ue),U.autofocus&&!h||this.hasFocus()?setTimeout(function(){ie.hasFocus()&&!ie.state.focused&&Ti(ie)},20):mi(this);for(var Lt in Ee)Ee.hasOwnProperty(Lt)&&Ee[Lt](this,U[Lt],ws);Js(this),U.finishInit&&U.finishInit(this);for(var nr=0;nr<je.length;++nr)je[nr](this);co(this),o&&U.lineWrapping&&getComputedStyle(We.lineDiv).textRendering=="optimizelegibility"&&(We.lineDiv.style.textRendering="auto")}Fr.defaults=Hs,Fr.optionHandlers=Ee;function sn(N){var U=N.display;Fe(U.scroller,"mousedown",zo(N,bi)),d&&l<11?Fe(U.scroller,"dblclick",zo(N,function(br){if(jt(N,br))return;var _r=_o(N,br);if(!_r||bs(N,br)||$n(N.display,br))return;Ke(br);var Bn=N.findWordAt(_r);Us(N.doc,Bn.anchor,Bn.head)})):Fe(U.scroller,"dblclick",function(br){return jt(N,br)||Ke(br)}),Fe(U.scroller,"contextmenu",function(br){return ys(N,br)}),Fe(U.input.getField(),"contextmenu",function(br){U.scroller.contains(br.target)||ys(N,br)});var ie,ue={end:0};function ge(){U.activeTouch&&(ie=setTimeout(function(){return U.activeTouch=null},1e3),ue=U.activeTouch,ue.end=+new Date)}function We(br){if(br.touches.length!=1)return!1;var _r=br.touches[0];return _r.radiusX<=1&&_r.radiusY<=1}function Lt(br,_r){if(_r.left==null)return!0;var Bn=_r.left-br.left,ti=_r.top-br.top;return Bn*Bn+ti*ti>20*20}Fe(U.scroller,"touchstart",function(br){if(!jt(N,br)&&!We(br)&&!bs(N,br)){U.input.ensurePolled(),clearTimeout(ie);var _r=+new Date;U.activeTouch={start:_r,moved:!1,prev:_r-ue.end<=300?ue:null},br.touches.length==1&&(U.activeTouch.left=br.touches[0].pageX,U.activeTouch.top=br.touches[0].pageY)}}),Fe(U.scroller,"touchmove",function(){U.activeTouch&&(U.activeTouch.moved=!0)}),Fe(U.scroller,"touchend",function(br){var _r=U.activeTouch;if(_r&&!$n(U,br)&&_r.left!=null&&!_r.moved&&new Date-_r.start<300){var Bn=N.coordsChar(U.activeTouch,"page"),ti;!_r.prev||Lt(_r,_r.prev)?ti=new ce(Bn,Bn):!_r.prev.prev||Lt(_r,_r.prev.prev)?ti=N.findWordAt(Bn):ti=new ce(zt(Bn.line,0),Ft(N.doc,zt(Bn.line+1,0))),N.setSelection(ti.anchor,ti.head),N.focus(),Ke(br)}ge()}),Fe(U.scroller,"touchcancel",ge),Fe(U.scroller,"scroll",function(){U.scroller.clientHeight&&(Ea(N,U.scroller.scrollTop),Ka(N,U.scroller.scrollLeft,!0),St(N,"scroll",N))}),Fe(U.scroller,"mousewheel",function(br){return hi(N,br)}),Fe(U.scroller,"DOMMouseScroll",function(br){return hi(N,br)}),Fe(U.wrapper,"scroll",function(){return U.wrapper.scrollTop=U.wrapper.scrollLeft=0}),U.dragFunctions={enter:function(_r){jt(N,_r)||ut(_r)},over:function(_r){jt(N,_r)||(Su(N,_r),ut(_r))},start:function(_r){return Sl(N,_r)},drop:zo(N,Hl),leave:function(_r){jt(N,_r)||vu(N)}};var nr=U.input.getField();Fe(nr,"keyup",function(br){return Cr.call(N,br)}),Fe(nr,"keydown",zo(N,ht)),Fe(nr,"keypress",zo(N,wr)),Fe(nr,"focus",function(br){return Ti(N,br)}),Fe(nr,"blur",function(br){return mi(N,br)})}var je=[];Fr.defineInitHook=function(N){return je.push(N)};function oe(N,U,ie,ue){var ge=N.doc,We;ie==null&&(ie="add"),ie=="smart"&&(ge.mode.indent?We=ei(N,U).state:ie="prev");var Lt=N.options.tabSize,nr=Be(ge,U),br=V(nr.text,null,Lt);nr.stateAfter&&(nr.stateAfter=null);var _r=nr.text.match(/^\s*/)[0],Bn;if(!ue&&!/\S/.test(nr.text))Bn=0,ie="not";else if(ie=="smart"&&(Bn=ge.mode.indent(We,nr.text.slice(_r.length),nr.text),Bn==$||Bn>150)){if(!ue)return;ie="prev"}ie=="prev"?U>ge.first?Bn=V(Be(ge,U-1).text,null,Lt):Bn=0:ie=="add"?Bn=br+N.options.indentUnit:ie=="subtract"?Bn=br-N.options.indentUnit:typeof ie=="number"&&(Bn=br+ie),Bn=Math.max(0,Bn);var ti="",Si=0;if(N.options.indentWithTabs)for(var Ci=Math.floor(Bn/Lt);Ci;--Ci)Si+=Lt,ti+=" ";if(Si<Bn&&(ti+=Je(Bn-Si)),ti!=_r)return jl(ge,ti,zt(U,0),zt(U,_r.length),"+input"),nr.stateAfter=null,!0;for(var la=0;la<ge.sel.ranges.length;la++){var Ta=ge.sel.ranges[la];if(Ta.head.line==U&&Ta.head.ch<_r.length){var Wa=zt(U,_r.length);Xs(ge,la,new ce(Wa,Wa));break}}}var Oe=null;function $e(N){Oe=N}function bt(N,U,ie,ue,ge){var We=N.doc;N.display.shift=!1,ue||(ue=We.sel);var Lt=+new Date-200,nr=ge=="paste"||N.state.pasteIncoming>Lt,br=mn(U),_r=null;if(nr&&ue.ranges.length>1)if(Oe&&Oe.text.join(`
|
|
|
`)==U){if(ue.ranges.length%Oe.text.length==0){_r=[];for(var Bn=0;Bn<Oe.text.length;Bn++)_r.push(We.splitLines(Oe.text[Bn]))}}else br.length==ue.ranges.length&&N.options.pasteLinesPerSelection&&(_r=ct(br,function(Ma){return[Ma]}));for(var ti=N.curOp.updateInput,Si=ue.ranges.length-1;Si>=0;Si--){var Ci=ue.ranges[Si],la=Ci.from(),Ta=Ci.to();Ci.empty()&&(ie&&ie>0?la=zt(la.line,la.ch-ie):N.state.overwrite&&!nr?Ta=zt(Ta.line,Math.min(Be(We,Ta.line).text.length,Ta.ch+Ge(br).length)):nr&&Oe&&Oe.lineWise&&Oe.text.join(`
|
|
|
`)==br.join(`
|
|
|
`)&&(la=Ta=zt(la.line,0)));var Wa={from:la,to:Ta,text:_r?_r[Si%_r.length]:br,origin:ge||(nr?"paste":N.state.cutIncoming>Lt?"cut":"+input")};Ls(N.doc,Wa),Ir(N,"inputRead",N,Wa)}U&&!nr&&er(N,U),Da(N),N.curOp.updateInput<2&&(N.curOp.updateInput=ti),N.curOp.typing=!0,N.state.pasteIncoming=N.state.cutIncoming=-1}function Vt(N,U){var ie=N.clipboardData&&N.clipboardData.getData("Text");if(ie)return N.preventDefault(),!U.isReadOnly()&&!U.options.disableInput&&Eo(U,function(){return bt(U,ie,0,null,"paste")}),!0}function er(N,U){if(!N.options.electricChars||!N.options.smartIndent)return;for(var ie=N.doc.sel,ue=ie.ranges.length-1;ue>=0;ue--){var ge=ie.ranges[ue];if(ge.head.ch>100||ue&&ie.ranges[ue-1].head.line==ge.head.line)continue;var We=N.getModeAt(ge.head),Lt=!1;if(We.electricChars){for(var nr=0;nr<We.electricChars.length;nr++)if(U.indexOf(We.electricChars.charAt(nr))>-1){Lt=oe(N,ge.head.line,"smart");break}}else We.electricInput&&(We.electricInput.test(Be(N.doc,ge.head.line).text.slice(0,ge.head.ch))&&(Lt=oe(N,ge.head.line,"smart")));Lt&&Ir(N,"electricInput",N,ge.head.line)}}function ir(N){for(var U=[],ie=[],ue=0;ue<N.doc.sel.ranges.length;ue++){var ge=N.doc.sel.ranges[ue].head.line,We={anchor:zt(ge,0),head:zt(ge+1,0)};ie.push(We),U.push(N.getRange(We.anchor,We.head))}return{text:U,ranges:ie}}function zr(N,U,ie,ue){N.setAttribute("autocorrect",ie?"":"off"),N.setAttribute("autocapitalize",ue?"":"off"),N.setAttribute("spellcheck",!!U)}function hn(){var N=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),U=I("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"),zr(N),U}function Wr(N){var U=N.optionHandlers,ie=N.helpers={};N.prototype={constructor:N,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ge,We){var Lt=this.options,nr=Lt[ge];if(Lt[ge]==We&&ge!="mode")return;Lt[ge]=We,U.hasOwnProperty(ge)&&zo(this,U[ge])(this,We,nr),St(this,"optionChange",this,ge)},getOption:function(ge){return this.options[ge]},getDoc:function(){return this.doc},addKeyMap:function(ge,We){this.state.keyMaps[We?"push":"unshift"](hl(ge))},removeKeyMap:function(ge){for(var We=this.state.keyMaps,Lt=0;Lt<We.length;++Lt)if(We[Lt]==ge||We[Lt].name==ge)return We.splice(Lt,1),!0},addOverlay:Fs(function(ue,ge){var We=ue.token?ue:N.getMode(this.options,ue);if(We.startState)throw new Error("Overlays may not be stateful.");Ue(this.state.overlays,{mode:We,modeSpec:ue,opaque:ge&&ge.opaque,priority:ge&&ge.priority||0},function(Lt){return Lt.priority}),this.state.modeGen++,Ha(this)}),removeOverlay:Fs(function(ue){for(var ge=this.state.overlays,We=0;We<ge.length;++We){var Lt=ge[We].modeSpec;if(Lt==ue||typeof ue=="string"&&Lt.name==ue){ge.splice(We,1),this.state.modeGen++,Ha(this);return}}}),indentLine:Fs(function(ue,ge,We){typeof ge!="string"&&typeof ge!="number"&&(ge==null?ge=this.options.smartIndent?"smart":"prev":ge=ge?"add":"subtract"),$r(this.doc,ue)&&oe(this,ue,ge,We)}),indentSelection:Fs(function(ue){for(var ge=this.doc.sel.ranges,We=-1,Lt=0;Lt<ge.length;Lt++){var nr=ge[Lt];if(nr.empty())nr.head.line>We&&(oe(this,nr.head.line,ue,!0),We=nr.head.line,Lt==this.doc.sel.primIndex&&Da(this));else{var br=nr.from(),_r=nr.to(),Bn=Math.max(We,br.line);We=Math.min(this.lastLine(),_r.line-(_r.ch?0:1))+1;for(var ti=Bn;ti<We;++ti)oe(this,ti,ue);var Si=this.doc.sel.ranges;br.ch==0&&ge.length==Si.length&&Si[Lt].from().ch>0&&Xs(this.doc,Lt,new ce(br,Si[Lt].to()),le)}}}),getTokenAt:function(ge,We){return Hi(this,ge,We)},getLineTokens:function(ge,We){return Hi(this,zt(ge),We,!0)},getTokenTypeAt:function(ge){ge=Ft(this.doc,ge);var We=vn(this,Be(this.doc,ge.line)),Lt=0,nr=(We.length-1)/2,br=ge.ch,_r;if(br==0)_r=We[2];else for(;;){var Bn=Lt+nr>>1;if((Bn?We[Bn*2-1]:0)>=br)nr=Bn;else if(We[Bn*2+1]<br)Lt=Bn+1;else{_r=We[Bn*2+2];break}}var ti=_r?_r.indexOf("overlay "):-1;return ti<0?_r:ti==0?null:_r.slice(0,ti-1)},getModeAt:function(ge){var We=this.doc.mode;return We.innerMode?N.innerMode(We,this.getTokenAt(ge).state).mode:We},getHelper:function(ge,We){return this.getHelpers(ge,We)[0]},getHelpers:function(ge,We){var Lt=[];if(!ie.hasOwnProperty(We))return Lt;var nr=ie[We],br=this.getModeAt(ge);if(typeof br[We]=="string")nr[br[We]]&&Lt.push(nr[br[We]]);else if(br[We])for(var _r=0;_r<br[We].length;_r++){var Bn=nr[br[We][_r]];Bn&&Lt.push(Bn)}else br.helperType&&nr[br.helperType]?Lt.push(nr[br.helperType]):nr[br.name]&&Lt.push(nr[br.name]);for(var ti=0;ti<nr._global.length;ti++){var Si=nr._global[ti];Si.pred(br,this)&&X(Lt,Si.val)==-1&&Lt.push(Si.val)}return Lt},getStateAfter:function(ge,We){var Lt=this.doc;return ge=tr(Lt,ge==null?Lt.first+Lt.size-1:ge),ei(this,ge+1,We).state},cursorCoords:function(ge,We){var Lt,nr=this.doc.sel.primary();return ge==null?Lt=nr.head:typeof ge=="object"?Lt=Ft(this.doc,ge):Lt=ge?nr.from():nr.to(),mo(this,Lt,We||"page")},charCoords:function(ge,We){return Qo(this,Ft(this.doc,ge),We||"page")},coordsChar:function(ge,We){return ge=oo(this,ge,We||"page"),So(this,ge.left,ge.top)},lineAtHeight:function(ge,We){return ge=oo(this,{top:ge,left:0},We||"page").top,Pr(this.doc,ge+this.display.viewOffset)},heightAtLine:function(ge,We,Lt){var nr=!1,br;if(typeof ge=="number"){var _r=this.doc.first+this.doc.size-1;ge<this.doc.first?ge=this.doc.first:ge>_r&&(ge=_r,nr=!0),br=Be(this.doc,ge)}else br=ge;return io(this,br,{top:0,left:0},We||"page",Lt||nr).top+(nr?this.doc.height-Mr(br):0)},defaultTextHeight:function(){return Oo(this.display)},defaultCharWidth:function(){return Io(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ge,We,Lt,nr,br){var _r=this.display;ge=mo(this,Ft(this.doc,ge));var Bn=ge.bottom,ti=ge.left;if(We.style.position="absolute",We.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(We),_r.sizer.appendChild(We),nr=="over")Bn=ge.top;else if(nr=="above"||nr=="near"){var Si=Math.max(_r.wrapper.clientHeight,this.doc.height),Ci=Math.max(_r.sizer.clientWidth,_r.lineSpace.clientWidth);(nr=="above"||ge.bottom+We.offsetHeight>Si)&&ge.top>We.offsetHeight?Bn=ge.top-We.offsetHeight:ge.bottom+We.offsetHeight<=Si&&(Bn=ge.bottom),ti+We.offsetWidth>Ci&&(ti=Ci-We.offsetWidth)}We.style.top=Bn+"px",We.style.left=We.style.right="",br=="right"?(ti=_r.sizer.clientWidth-We.offsetWidth,We.style.right="0px"):(br=="left"?ti=0:br=="middle"&&(ti=(_r.sizer.clientWidth-We.offsetWidth)/2),We.style.left=ti+"px"),Lt&&Ya(this,{left:ti,top:Bn,right:ti+We.offsetWidth,bottom:Bn+We.offsetHeight})},triggerOnKeyDown:Fs(ht),triggerOnKeyPress:Fs(wr),triggerOnKeyUp:Cr,triggerOnMouseDown:Fs(bi),execCommand:function(ge){if(iu.hasOwnProperty(ge))return iu[ge].call(null,this)},triggerElectric:Fs(function(ue){er(this,ue)}),findPosH:function(ge,We,Lt,nr){var br=1;We<0&&(br=-1,We=-We);for(var _r=Ft(this.doc,ge),Bn=0;Bn<We&&!(_r=jr(this.doc,_r,br,Lt,nr),_r.hitSide);++Bn);return _r},moveH:Fs(function(ue,ge){var We=this;this.extendSelectionsBy(function(Lt){return We.display.shift||We.doc.extend||Lt.empty()?jr(We.doc,Lt.head,ue,ge,We.options.rtlMoveVisually):ue<0?Lt.from():Lt.to()},Se)}),deleteH:Fs(function(ue,ge){var We=this.doc.sel,Lt=this.doc;We.somethingSelected()?Lt.replaceSelection("",null,"+delete"):Dl(this,function(nr){var br=jr(Lt,nr.head,ue,ge,!1);return ue<0?{from:br,to:nr.head}:{from:nr.head,to:br}})}),findPosV:function(ge,We,Lt,nr){var br=1,_r=nr;We<0&&(br=-1,We=-We);for(var Bn=Ft(this.doc,ge),ti=0;ti<We;++ti){var Si=mo(this,Bn,"div");if(_r==null?_r=Si.left:Si.left=_r,Bn=ln(this,Si,br,Lt),Bn.hitSide)break}return Bn},moveV:Fs(function(ue,ge){var We=this,Lt=this.doc,nr=[],br=!this.display.shift&&!Lt.extend&&Lt.sel.somethingSelected();if(Lt.extendSelectionsBy(function(Bn){if(br)return ue<0?Bn.from():Bn.to();var ti=mo(We,Bn.head,"div");Bn.goalColumn!=null&&(ti.left=Bn.goalColumn),nr.push(ti.left);var Si=ln(We,ti,ue,ge);return ge=="page"&&Bn==Lt.sel.primary()&&wa(We,Qo(We,Si,"div").top-ti.top),Si},Se),nr.length)for(var _r=0;_r<Lt.sel.ranges.length;_r++)Lt.sel.ranges[_r].goalColumn=nr[_r]}),findWordAt:function(ge){var We=this.doc,Lt=Be(We,ge.line).text,nr=ge.ch,br=ge.ch;if(Lt){var _r=this.getHelper(ge,"wordChars");(ge.sticky=="before"||br==Lt.length)&&nr?--nr:++br;for(var Bn=Lt.charAt(nr),ti=Y(Bn,_r)?function(Si){return Y(Si,_r)}:/\s/.test(Bn)?function(Si){return/\s/.test(Si)}:function(Si){return!/\s/.test(Si)&&!Y(Si)};nr>0&&ti(Lt.charAt(nr-1));)--nr;for(;br<Lt.length&&ti(Lt.charAt(br));)++br}return new ce(zt(ge.line,nr),zt(ge.line,br))},toggleOverwrite:function(ge){if(ge!=null&&ge==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?G(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),St(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==k()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Fs(function(ue,ge){ja(this,ue,ge)}),getScrollInfo:function(){var ge=this.display.scroller;return{left:ge.scrollLeft,top:ge.scrollTop,height:ge.scrollHeight-yi(this)-this.display.barHeight,width:ge.scrollWidth-yi(this)-this.display.barWidth,clientHeight:zi(this),clientWidth:Oi(this)}},scrollIntoView:Fs(function(ue,ge){ue==null?(ue={from:this.doc.sel.primary().head,to:null},ge==null&&(ge=this.options.cursorScrollMargin)):typeof ue=="number"?ue={from:zt(ue,0),to:null}:ue.from==null&&(ue={from:ue,to:null}),ue.to||(ue.to=ue.from),ue.margin=ge||0,ue.from.line!=null?ko(this,ue):pa(this,ue.from,ue.to,ue.margin)}),setSize:Fs(function(ue,ge){var We=this,Lt=function(_r){return typeof _r=="number"||/^\d+$/.test(String(_r))?_r+"px":_r};ue!=null&&(this.display.wrapper.style.width=Lt(ue)),ge!=null&&(this.display.wrapper.style.height=Lt(ge)),this.options.lineWrapping&&Aa(this);var nr=this.display.viewFrom;this.doc.iter(nr,this.display.viewTo,function(br){if(br.widgets){for(var _r=0;_r<br.widgets.length;_r++)if(br.widgets[_r].noHScroll){ft(We,nr,"widget");break}}++nr}),this.curOp.forceUpdate=!0,St(this,"refresh",this)}),operation:function(ge){return Eo(this,ge)},startOperation:function(){return as(this)},endOperation:function(){return co(this)},refresh:Fs(function(){var ue=this.display.cachedTextHeight;Ha(this),this.curOp.forceUpdate=!0,Xa(this),ja(this,this.doc.scrollLeft,this.doc.scrollTop),xs(this.display),(ue==null||Math.abs(ue-Oo(this.display))>.5||this.options.lineWrapping)&&Ho(this),St(this,"refresh",this)}),swapDoc:Fs(function(ue){var ge=this.doc;return ge.cm=null,this.state.selectingText&&this.state.selectingText(),sa(this,ue),Xa(this),this.display.input.reset(),ja(this,ue.scrollLeft,ue.scrollTop),this.curOp.forceScroll=!0,Ir(this,"swapDoc",this,ge),ge}),phrase:function(ge){var We=this.options.phrases;return We&&Object.prototype.hasOwnProperty.call(We,ge)?We[ge]:ge},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Bt(N),N.registerHelper=function(ue,ge,We){ie.hasOwnProperty(ue)||(ie[ue]=N[ue]={_global:[]}),ie[ue][ge]=We},N.registerGlobalHelper=function(ue,ge,We,Lt){N.registerHelper(ue,ge,Lt),ie[ue]._global.push({pred:We,val:Lt})}}function jr(N,U,ie,ue,ge){var We=U,Lt=ie,nr=Be(N,U.line),br=ge&&N.direction=="rtl"?-ie:ie;function _r(){var Na=U.line+br;return Na<N.first||Na>=N.first+N.size?!1:(U=new zt(Na,U.ch,U.sticky),nr=Be(N,Na))}function Bn(Na){var qa;if(ue=="codepoint"){var ho=nr.text.charCodeAt(U.ch+(ue>0?0:-1));isNaN(ho)?qa=null:qa=new zt(U.line,Math.max(0,Math.min(nr.text.length,U.ch+ie*(ho>=55296&&ho<56320?2:1))),-ie)}else ge?qa=fu(N.cm,nr,U,ie):qa=Nu(nr,U,ie);if(qa==null)if(!Na&&_r())U=hu(ge,N.cm,nr,U.line,br);else return!1;else U=qa;return!0}if(ue=="char"||ue=="codepoint")Bn();else if(ue=="column")Bn(!0);else if(ue=="word"||ue=="group")for(var ti=null,Si=ue=="group",Ci=N.cm&&N.cm.getHelper(U,"wordChars"),la=!0;!(ie<0&&!Bn(!la));la=!1){var Ta=nr.text.charAt(U.ch)||`
|
|
|
`,Wa=Y(Ta,Ci)?"w":Si&&Ta==`
|
|
|
`?"n":!Si||/\s/.test(Ta)?null:"p";if(Si&&!la&&!Wa&&(Wa="s"),ti&&ti!=Wa){ie<0&&(ie=1,Bn(),U.sticky="after");break}if(Wa&&(ti=Wa),ie>0&&!Bn(!la))break}var Ma=qo(N,U,We,Lt,!0);return wt(We,Ma)&&(Ma.hitSide=!0),Ma}function ln(N,U,ie,ue){var ge=N.doc,We=U.left,Lt;if(ue=="page"){var nr=Math.min(N.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),br=Math.max(nr-.5*Oo(N.display),3);Lt=(ie>0?U.bottom:U.top)+ie*br}else ue=="line"&&(Lt=ie>0?U.bottom+3:U.top-3);for(var _r;!(_r=So(N,We,Lt),!_r.outside);){if(ie<0?Lt<=0:Lt>=ge.height){_r.hitSide=!0;break}Lt+=ie*5}return _r}var yn=function(U){this.cm=U,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yn.prototype.init=function(N){var U=this,ie=this,ue=ie.cm,ge=ie.div=N.lineDiv;zr(ge,ue.options.spellcheck,ue.options.autocorrect,ue.options.autocapitalize);function We(nr){for(var br=nr.target;br;br=br.parentNode){if(br==ge)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(br.className))break}return!1}Fe(ge,"paste",function(nr){if(!We(nr)||jt(ue,nr)||Vt(nr,ue))return;l<=11&&setTimeout(zo(ue,function(){return U.updateFromDOM()}),20)}),Fe(ge,"compositionstart",function(nr){U.composing={data:nr.data,done:!1}}),Fe(ge,"compositionupdate",function(nr){U.composing||(U.composing={data:nr.data,done:!1})}),Fe(ge,"compositionend",function(nr){U.composing&&(nr.data!=U.composing.data&&U.readFromDOMSoon(),U.composing.done=!0)}),Fe(ge,"touchstart",function(){return ie.forceCompositionEnd()}),Fe(ge,"input",function(){U.composing||U.readFromDOMSoon()});function Lt(nr){if(!We(nr)||jt(ue,nr))return;if(ue.somethingSelected())$e({lineWise:!1,text:ue.getSelections()}),nr.type=="cut"&&ue.replaceSelection("",null,"cut");else if(ue.options.lineWiseCopyCut){var br=ir(ue);$e({lineWise:!0,text:br.text}),nr.type=="cut"&&ue.operation(function(){ue.setSelections(br.ranges,0,le),ue.replaceSelection("",null,"cut")})}else return;if(nr.clipboardData){nr.clipboardData.clearData();var _r=Oe.text.join(`
|
|
|
`);if(nr.clipboardData.setData("Text",_r),nr.clipboardData.getData("Text")==_r){nr.preventDefault();return}}var Bn=hn(),ti=Bn.firstChild;ue.display.lineSpace.insertBefore(Bn,ue.display.lineSpace.firstChild),ti.value=Oe.text.join(`
|
|
|
`);var Si=document.activeElement;j(ti),setTimeout(function(){ue.display.lineSpace.removeChild(Bn),Si.focus(),Si==ge&&ie.showPrimarySelection()},50)}Fe(ge,"copy",Lt),Fe(ge,"cut",Lt)},yn.prototype.screenReaderLabelChanged=function(N){N?this.div.setAttribute("aria-label",N):this.div.removeAttribute("aria-label")},yn.prototype.prepareSelection=function(){var N=Gr(this.cm,!1);return N.focus=document.activeElement==this.div,N},yn.prototype.showSelection=function(N,U){if(!N||!this.cm.display.view.length)return;(N.focus||U)&&this.showPrimarySelection(),this.showMultipleSelections(N)},yn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yn.prototype.showPrimarySelection=function(){var N=this.getSelection(),U=this.cm,ie=U.doc.sel.primary(),ue=ie.from(),ge=ie.to();if(U.display.viewTo==U.display.viewFrom||ue.line>=U.display.viewTo||ge.line<U.display.viewFrom){N.removeAllRanges();return}var We=$i(U,N.anchorNode,N.anchorOffset),Lt=$i(U,N.focusNode,N.focusOffset);if(We&&!We.bad&&Lt&&!Lt.bad&&At(Ut(We,Lt),ue)==0&&At(Jt(We,Lt),ge)==0)return;var nr=U.display.view,br=ue.line>=U.display.viewFrom&&Wn(U,ue)||{node:nr[0].measure.map[2],offset:0},_r=ge.line<U.display.viewTo&&Wn(U,ge);if(!_r){var Bn=nr[nr.length-1].measure,ti=Bn.maps?Bn.maps[Bn.maps.length-1]:Bn.map;_r={node:ti[ti.length-1],offset:ti[ti.length-2]-ti[ti.length-3]}}if(!br||!_r){N.removeAllRanges();return}var Si=N.rangeCount&&N.getRangeAt(0),Ci;try{Ci=P(br.node,br.offset,_r.offset,_r.node)}catch(la){}Ci&&(!x&&U.state.focused?(N.collapse(br.node,br.offset),Ci.collapsed||(N.removeAllRanges(),N.addRange(Ci))):(N.removeAllRanges(),N.addRange(Ci)),Si&&N.anchorNode==null?N.addRange(Si):x&&this.startGracePeriod()),this.rememberSelection()},yn.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)},yn.prototype.showMultipleSelections=function(N){O(this.cm.display.cursorDiv,N.cursors),O(this.cm.display.selectionDiv,N.selection)},yn.prototype.rememberSelection=function(){var N=this.getSelection();this.lastAnchorNode=N.anchorNode,this.lastAnchorOffset=N.anchorOffset,this.lastFocusNode=N.focusNode,this.lastFocusOffset=N.focusOffset},yn.prototype.selectionInEditor=function(){var N=this.getSelection();if(!N.rangeCount)return!1;var U=N.getRangeAt(0).commonAncestorContainer;return B(this.div,U)},yn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yn.prototype.blur=function(){this.div.blur()},yn.prototype.getField=function(){return this.div},yn.prototype.supportsTouch=function(){return!0},yn.prototype.receivedFocus=function(){var N=this;this.selectionInEditor()?this.pollSelection():Eo(this.cm,function(){return N.cm.curOp.selectionChanged=!0});function U(){N.cm.state.focused&&(N.pollSelection(),N.polling.set(N.cm.options.pollInterval,U))}this.polling.set(this.cm.options.pollInterval,U)},yn.prototype.selectionChanged=function(){var N=this.getSelection();return N.anchorNode!=this.lastAnchorNode||N.anchorOffset!=this.lastAnchorOffset||N.focusNode!=this.lastFocusNode||N.focusOffset!=this.lastFocusOffset},yn.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var N=this.getSelection(),U=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=$i(U,N.anchorNode,N.anchorOffset),ue=$i(U,N.focusNode,N.focusOffset);ie&&ue&&Eo(U,function(){Ts(U.doc,Ie(ie,ue),le),(ie.bad||ue.bad)&&(U.curOp.selectionChanged=!0)})},yn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var N=this.cm,U=N.display,ie=N.doc.sel.primary(),ue=ie.from(),ge=ie.to();if(ue.ch==0&&ue.line>N.firstLine()&&(ue=zt(ue.line-1,Be(N.doc,ue.line-1).length)),ge.ch==Be(N.doc,ge.line).text.length&&ge.line<N.lastLine()&&(ge=zt(ge.line+1,0)),ue.line<U.viewFrom||ge.line>U.viewTo-1)return!1;var We,Lt,nr;ue.line==U.viewFrom||(We=uo(N,ue.line))==0?(Lt=Yt(U.view[0].line),nr=U.view[0].node):(Lt=Yt(U.view[We].line),nr=U.view[We-1].node.nextSibling);var br=uo(N,ge.line),_r,Bn;if(br==U.view.length-1?(_r=U.viewTo-1,Bn=U.lineDiv.lastChild):(_r=Yt(U.view[br+1].line)-1,Bn=U.view[br+1].node.previousSibling),!nr)return!1;for(var ti=N.doc.splitLines(da(N,nr,Bn,Lt,_r)),Si=it(N.doc,zt(Lt,0),zt(_r,Be(N.doc,_r).text.length));ti.length>1&&Si.length>1;)if(Ge(ti)==Ge(Si))ti.pop(),Si.pop(),_r--;else if(ti[0]==Si[0])ti.shift(),Si.shift(),Lt++;else break;for(var Ci=0,la=0,Ta=ti[0],Wa=Si[0],Ma=Math.min(Ta.length,Wa.length);Ci<Ma&&Ta.charCodeAt(Ci)==Wa.charCodeAt(Ci);)++Ci;for(var Na=Ge(ti),qa=Ge(Si),ho=Math.min(Na.length-(ti.length==1?Ci:0),qa.length-(Si.length==1?Ci:0));la<ho&&Na.charCodeAt(Na.length-la-1)==qa.charCodeAt(qa.length-la-1);)++la;if(ti.length==1&&Si.length==1&&Lt==ue.line)for(;Ci&&Ci>ue.ch&&Na.charCodeAt(Na.length-la-1)==qa.charCodeAt(qa.length-la-1);)Ci--,la++;ti[ti.length-1]=Na.slice(0,Na.length-la).replace(/^\u200b+/,""),ti[0]=ti[0].slice(Ci).replace(/\u200b+$/,"");var ns=zt(Lt,Ci),Mo=zt(_r,Si.length?Ge(Si).length-la:0);if(ti.length>1||ti[0]||At(ns,Mo))return jl(N.doc,ti,ns,Mo,"+input"),!0},yn.prototype.ensurePolled=function(){this.forceCompositionEnd()},yn.prototype.reset=function(){this.forceCompositionEnd()},yn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},yn.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)},yn.prototype.updateFromDOM=function(){var N=this;(this.cm.isReadOnly()||!this.pollContent())&&Eo(this.cm,function(){return Ha(N.cm)})},yn.prototype.setUneditable=function(N){N.contentEditable="false"},yn.prototype.onKeyPress=function(N){if(N.charCode==0||this.composing)return;N.preventDefault(),this.cm.isReadOnly()||zo(this.cm,bt)(this.cm,String.fromCharCode(N.charCode==null?N.keyCode:N.charCode),0)},yn.prototype.readOnlyChanged=function(N){this.div.contentEditable=String(N!="nocursor")},yn.prototype.onContextMenu=function(){},yn.prototype.resetPosition=function(){},yn.prototype.needsContentAttribute=!0;function Wn(N,U){var ie=Ji(N,U.line);if(!ie||ie.hidden)return null;var ue=Be(N.doc,U.line),ge=Xi(ie,ue,U.line),We=gt(ue,N.doc.direction),Lt="left";if(We){var nr=Le(We,U.ch);Lt=nr%2?"right":"left"}var br=Pa(ge.map,U.ch,Lt);return br.offset=br.collapse=="right"?br.end:br.start,br}function Ii(N){for(var U=N;U;U=U.parentNode)if(/CodeMirror-gutter-wrapper/.test(U.className))return!0;return!1}function ki(N,U){return U&&(N.bad=!0),N}function da(N,U,ie,ue,ge){var We="",Lt=!1,nr=N.doc.lineSeparator(),br=!1;function _r(Ci){return function(la){return la.id==Ci}}function Bn(){Lt&&(We+=nr,br&&(We+=nr),Lt=br=!1)}function ti(Ci){Ci&&(Bn(),We+=Ci)}function Si(Ci){if(Ci.nodeType==1){var la=Ci.getAttribute("cm-text");if(la){ti(la);return}var Ta=Ci.getAttribute("cm-marker"),Wa;if(Ta){var Ma=N.findMarks(zt(ue,0),zt(ge+1,0),_r(+Ta));Ma.length&&(Wa=Ma[0].find(0))&&ti(it(N.doc,Wa.from,Wa.to).join(nr));return}if(Ci.getAttribute("contenteditable")=="false")return;var Na=/^(pre|div|p|li|table|br)$/i.test(Ci.nodeName);if(!/^br$/i.test(Ci.nodeName)&&Ci.textContent.length==0)return;Na&&Bn();for(var qa=0;qa<Ci.childNodes.length;qa++)Si(Ci.childNodes[qa]);/^(pre|p)$/i.test(Ci.nodeName)&&(br=!0),Na&&(Lt=!0)}else Ci.nodeType==3&&ti(Ci.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Si(U),U==ie);)U=U.nextSibling,br=!1;return We}function $i(N,U,ie){var ue;if(U==N.display.lineDiv){if(ue=N.display.lineDiv.childNodes[ie],!ue)return ki(N.clipPos(zt(N.display.viewTo-1)),!0);U=null,ie=0}else for(ue=U;;ue=ue.parentNode){if(!ue||ue==N.display.lineDiv)return null;if(ue.parentNode&&ue.parentNode==N.display.lineDiv)break}for(var ge=0;ge<N.display.view.length;ge++){var We=N.display.view[ge];if(We.node==ue)return Qa(We,U,ie)}}function Qa(N,U,ie){var ue=N.text.firstChild,ge=!1;if(!U||!B(ue,U))return ki(zt(Yt(N.line),0),!0);if(U==ue&&(ge=!0,U=ue.childNodes[ie],ie=0,!U)){var We=N.rest?Ge(N.rest):N.line;return ki(zt(Yt(We),We.text.length),ge)}var Lt=U.nodeType==3?U:null,nr=U;for(!Lt&&U.childNodes.length==1&&U.firstChild.nodeType==3&&(Lt=U.firstChild,ie&&(ie=Lt.nodeValue.length));nr.parentNode!=ue;)nr=nr.parentNode;var br=N.measure,_r=br.maps;function Bn(Wa,Ma,Na){for(var qa=-1;qa<(_r?_r.length:0);qa++)for(var ho=qa<0?br.map:_r[qa],ns=0;ns<ho.length;ns+=3){var Mo=ho[ns+2];if(Mo==Wa||Mo==Ma){var Ss=Yt(qa<0?N.line:N.rest[qa]),Zs=ho[ns]+Na;return(Na<0||Mo!=Wa)&&(Zs=ho[ns+(Na?1:0)]),zt(Ss,Zs)}}}var ti=Bn(Lt,nr,ie);if(ti)return ki(ti,ge);for(var Si=nr.nextSibling,Ci=Lt?Lt.nodeValue.length-ie:0;Si;Si=Si.nextSibling){if(ti=Bn(Si,Si.firstChild,0),ti)return ki(zt(ti.line,ti.ch-Ci),ge);Ci+=Si.textContent.length}for(var la=nr.previousSibling,Ta=ie;la;la=la.previousSibling){if(ti=Bn(la,la.firstChild,-1),ti)return ki(zt(ti.line,ti.ch+Ta),ge);Ta+=la.textContent.length}}var ya=function(U){this.cm=U,this.prevInput="",this.pollingFast=!1,this.polling=new Q,this.hasSelection=!1,this.composing=null};ya.prototype.init=function(N){var U=this,ie=this,ue=this.cm;this.createField(N);var ge=this.textarea;N.wrapper.insertBefore(this.wrapper,N.wrapper.firstChild),s&&(ge.style.width="0px"),Fe(ge,"input",function(){d&&l>=9&&U.hasSelection&&(U.hasSelection=null),ie.poll()}),Fe(ge,"paste",function(Lt){if(jt(ue,Lt)||Vt(Lt,ue))return;ue.state.pasteIncoming=+new Date,ie.fastPoll()});function We(Lt){if(jt(ue,Lt))return;if(ue.somethingSelected())$e({lineWise:!1,text:ue.getSelections()});else if(ue.options.lineWiseCopyCut){var nr=ir(ue);$e({lineWise:!0,text:nr.text}),Lt.type=="cut"?ue.setSelections(nr.ranges,null,le):(ie.prevInput="",ge.value=nr.text.join(`
|
|
|
`),j(ge))}else return;Lt.type=="cut"&&(ue.state.cutIncoming=+new Date)}Fe(ge,"cut",We),Fe(ge,"copy",We),Fe(N.scroller,"paste",function(Lt){if($n(N,Lt)||jt(ue,Lt))return;if(!ge.dispatchEvent){ue.state.pasteIncoming=+new Date,ie.focus();return}var nr=new Event("paste");nr.clipboardData=Lt.clipboardData,ge.dispatchEvent(nr)}),Fe(N.lineSpace,"selectstart",function(Lt){$n(N,Lt)||Ke(Lt)}),Fe(ge,"compositionstart",function(){var Lt=ue.getCursor("from");ie.composing&&ie.composing.range.clear(),ie.composing={start:Lt,range:ue.markText(Lt,ue.getCursor("to"),{className:"CodeMirror-composing"})}}),Fe(ge,"compositionend",function(){ie.composing&&(ie.poll(),ie.composing.range.clear(),ie.composing=null)})},ya.prototype.createField=function(N){this.wrapper=hn(),this.textarea=this.wrapper.firstChild},ya.prototype.screenReaderLabelChanged=function(N){N?this.textarea.setAttribute("aria-label",N):this.textarea.removeAttribute("aria-label")},ya.prototype.prepareSelection=function(){var N=this.cm,U=N.display,ie=N.doc,ue=Gr(N);if(N.options.moveInputWithCursor){var ge=mo(N,ie.sel.primary().head,"div"),We=U.wrapper.getBoundingClientRect(),Lt=U.lineDiv.getBoundingClientRect();ue.teTop=Math.max(0,Math.min(U.wrapper.clientHeight-10,ge.top+Lt.top-We.top)),ue.teLeft=Math.max(0,Math.min(U.wrapper.clientWidth-10,ge.left+Lt.left-We.left))}return ue},ya.prototype.showSelection=function(N){var U=this.cm,ie=U.display;O(ie.cursorDiv,N.cursors),O(ie.selectionDiv,N.selection),N.teTop!=null&&(this.wrapper.style.top=N.teTop+"px",this.wrapper.style.left=N.teLeft+"px")},ya.prototype.reset=function(N){if(this.contextMenuPending||this.composing)return;var U=this.cm;if(U.somethingSelected()){this.prevInput="";var ie=U.getSelection();this.textarea.value=ie,U.state.focused&&j(this.textarea),d&&l>=9&&(this.hasSelection=ie)}else N||(this.prevInput=this.textarea.value="",d&&l>=9&&(this.hasSelection=null))},ya.prototype.getField=function(){return this.textarea},ya.prototype.supportsTouch=function(){return!1},ya.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!h||k()!=this.textarea))try{this.textarea.focus()}catch(N){}},ya.prototype.blur=function(){this.textarea.blur()},ya.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ya.prototype.receivedFocus=function(){this.slowPoll()},ya.prototype.slowPoll=function(){var N=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){N.poll(),N.cm.state.focused&&N.slowPoll()})},ya.prototype.fastPoll=function(){var N=!1,U=this;U.pollingFast=!0;function ie(){var ue=U.poll();!ue&&!N?(N=!0,U.polling.set(60,ie)):(U.pollingFast=!1,U.slowPoll())}U.polling.set(20,ie)},ya.prototype.poll=function(){var N=this,U=this.cm,ie=this.textarea,ue=this.prevInput;if(this.contextMenuPending||!U.state.focused||sr(ie)&&!ue&&!this.composing||U.isReadOnly()||U.options.disableInput||U.state.keySeq)return!1;var ge=ie.value;if(ge==ue&&!U.somethingSelected())return!1;if(d&&l>=9&&this.hasSelection===ge||g&&/[\uf700-\uf7ff]/.test(ge))return U.display.input.reset(),!1;if(U.doc.sel==U.display.selForContextMenu){var We=ge.charCodeAt(0);if(We==8203&&!ue&&(ue="\u200B"),We==8666)return this.reset(),this.cm.execCommand("undo")}for(var Lt=0,nr=Math.min(ue.length,ge.length);Lt<nr&&ue.charCodeAt(Lt)==ge.charCodeAt(Lt);)++Lt;return Eo(U,function(){bt(U,ge.slice(Lt),ue.length-Lt,null,N.composing?"*compose":null),ge.length>1e3||ge.indexOf(`
|
|
|
`)>-1?ie.value=N.prevInput="":N.prevInput=ge,N.composing&&(N.composing.range.clear(),N.composing.range=U.markText(N.composing.start,U.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ya.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ya.prototype.onKeyPress=function(){d&&l>=9&&(this.hasSelection=null),this.fastPoll()},ya.prototype.onContextMenu=function(N){var U=this,ie=U.cm,ue=ie.display,ge=U.textarea;U.contextMenuPending&&U.contextMenuPending();var We=_o(ie,N),Lt=ue.scroller.scrollTop;if(!We||a)return;var nr=ie.options.resetSelectionOnContextMenu;nr&&ie.doc.sel.contains(We)==-1&&zo(ie,Ts)(ie.doc,Ie(We),le);var br=ge.style.cssText,_r=U.wrapper.style.cssText,Bn=U.wrapper.offsetParent.getBoundingClientRect();U.wrapper.style.cssText="position: static",ge.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),ue.input.focus(),o&&window.scrollTo(null,ti),ue.input.reset(),ie.somethingSelected()||(ge.value=U.prevInput=" "),U.contextMenuPending=Ci,ue.selForContextMenu=ie.doc.sel,clearTimeout(ue.detectingSelectAll);function Si(){if(ge.selectionStart!=null){var Ta=ie.somethingSelected(),Wa="\u200B"+(Ta?ge.value:"");ge.value="\u21DA",ge.value=Wa,U.prevInput=Ta?"":"\u200B",ge.selectionStart=1,ge.selectionEnd=Wa.length,ue.selForContextMenu=ie.doc.sel}}function Ci(){if(U.contextMenuPending!=Ci)return;if(U.contextMenuPending=!1,U.wrapper.style.cssText=_r,ge.style.cssText=br,d&&l<9&&ue.scrollbars.setScrollTop(ue.scroller.scrollTop=Lt),ge.selectionStart!=null){(!d||d&&l<9)&&Si();var Ta=0,Wa=function Ma(){ue.selForContextMenu==ie.doc.sel&&ge.selectionStart==0&&ge.selectionEnd>0&&U.prevInput=="\u200B"?zo(ie,Is)(ie):Ta++<10?ue.detectingSelectAll=setTimeout(Ma,500):(ue.selForContextMenu=null,ue.input.reset())};ue.detectingSelectAll=setTimeout(Wa,200)}}if(d&&l>=9&&Si(),C){ut(N);var la=function Ta(){et(window,"mouseup",Ta),setTimeout(Ci,20)};Fe(window,"mouseup",la)}else setTimeout(Ci,50)},ya.prototype.readOnlyChanged=function(N){N||this.reset(),this.textarea.disabled=N=="nocursor",this.textarea.readOnly=!!N},ya.prototype.setUneditable=function(){},ya.prototype.needsContentAttribute=!1;function fo(N,U){if(U=U?z(U):{},U.value=N.value,!U.tabindex&&N.tabIndex&&(U.tabindex=N.tabIndex),!U.placeholder&&N.placeholder&&(U.placeholder=N.placeholder),U.autofocus==null){var ie=k();U.autofocus=ie==N||N.getAttribute("autofocus")!=null&&ie==document.body}function ue(){N.value=nr.getValue()}var ge;if(N.form&&(Fe(N.form,"submit",ue),!U.leaveSubmitMethodAlone)){var We=N.form;ge=We.submit;try{var Lt=We.submit=function(){ue(),We.submit=ge,We.submit(),We.submit=Lt}}catch(br){}}U.finishInit=function(br){br.save=ue,br.getTextArea=function(){return N},br.toTextArea=function(){br.toTextArea=isNaN,ue(),N.parentNode.removeChild(br.getWrapperElement()),N.style.display="",N.form&&(et(N.form,"submit",ue),!U.leaveSubmitMethodAlone&&typeof N.form.submit=="function"&&(N.form.submit=ge))}},N.style.display="none";var nr=Fr(function(br){return N.parentNode.insertBefore(br,N.nextSibling)},U);return nr}function za(N){N.off=et,N.on=Fe,N.wheelEventPixels=In,N.Doc=Cl,N.splitLines=mn,N.countColumn=V,N.findColumn=Re,N.isWordChar=J,N.Pass=$,N.signal=St,N.Line=di,N.changeEnd=Qe,N.scrollbarModel=cs,N.Pos=zt,N.cmpPos=At,N.modes=Ct,N.mimeModes=on,N.resolveMode=oi,N.getMode=Ui,N.modeExtensions=Un,N.extendMode=Qn,N.copyState=$t,N.startState=Me,N.innerMode=Nt,N.commands=iu,N.keyMap=Jl,N.keyName=bu,N.isModifierKey=yu,N.lookupKey=Zl,N.normalizeKeyMap=Ru,N.StringStream=ke,N.SharedTextMarker=tu,N.TextMarker=Nl,N.LineWidget=xl,N.e_preventDefault=Ke,N.e_stopPropagation=de,N.e_stop=ut,N.addClass=G,N.contains=B,N.rmClass=T,N.keyNames=zl}Ye(Fr),Wr(Fr);var Xo="iter insert remove copy getEditor constructor".split(" ");for(var ls in Cl.prototype)Cl.prototype.hasOwnProperty(ls)&&X(Xo,ls)<0&&(Fr.prototype[ls]=function(N){return function(){return N.apply(this.doc,arguments)}}(Cl.prototype[ls]));return Bt(Cl),Fr.inputStyles={textarea:ya,contenteditable:yn},Fr.defineMode=function(N){!Fr.defaults.mode&&N!="null"&&(Fr.defaults.mode=N),Mn.apply(this,arguments)},Fr.defineMIME=Xn,Fr.defineMode("null",function(){return{token:function(U){return U.skipToEnd()}}}),Fr.defineMIME("text/plain","null"),Fr.defineExtension=function(N,U){Fr.prototype[N]=U},Fr.defineDocExtension=function(N,U){Cl.prototype[N]=U},Fr.fromTextArea=fo,za(Fr),Fr.version="5.58.2",Fr})},Vy0f:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("iYpf"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},W2nI:function(R,D,i){var y=i("IwbS"),p=i("ProS"),x=i("bYtY"),v=["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,A=u.layoutInfo,b=A.width,w=A.height,E=u.getData(),C=u.getData("edge"),_=u.get("orient");this._model=u,g.removeAll(),g.attr("position",[A.x,A.y]),h.eachEdge(function(T){var S=new t;S.dataIndex=T.dataIndex,S.seriesIndex=u.seriesIndex,S.dataType="edge";var O=T.getModel("lineStyle"),I=O.get("curveness"),F=T.node1.getLayout(),P=T.node1.getModel(),B=P.get("localX"),k=P.get("localY"),G=T.node2.getLayout(),M=T.node2.getModel(),j=M.get("localX"),K=M.get("localY"),z=T.getLayout(),V,Q,X,te,$,le,re,Se;S.shape.extent=Math.max(1,z.dy),S.shape.orient=_,_==="vertical"?(V=(B!=null?B*b:F.x)+z.sy,Q=(k!=null?k*w:F.y)+F.dy,X=(j!=null?j*b:G.x)+z.ty,te=K!=null?K*w:G.y,$=V,le=Q*(1-I)+te*I,re=X,Se=Q*I+te*(1-I)):(V=(B!=null?B*b:F.x)+F.dx,Q=(k!=null?k*w:F.y)+z.sy,X=j!=null?j*b:G.x,te=(K!=null?K*w:G.y)+z.ty,$=V*(1-I)+X*I,le=Q,re=V*I+X*(1-I),Se=te),S.setShape({x1:V,y1:Q,x2:X,y2:te,cpx1:$,cpy1:le,cpx2:re,cpy2:Se}),S.setStyle(O.getItemStyle());switch(S.style.fill){case"source":S.style.fill=T.node1.getVisual("color");break;case"target":S.style.fill=T.node2.getVisual("color");break}y.setHoverStyle(S,T.getModel("emphasis.lineStyle").getItemStyle()),g.add(S),C.setItemGraphicEl(T.dataIndex,S)}),h.eachNode(function(T){var S=T.getLayout(),O=T.getModel(),I=O.get("localX"),F=O.get("localY"),P=O.getModel("label"),B=O.getModel("emphasis.label"),k=new y.Rect({shape:{x:I!=null?I*b:S.x,y:F!=null?F*w:S.y,width:S.dx,height:S.dy},style:O.getModel("itemStyle").getItemStyle()}),G=T.getModel("emphasis.itemStyle").getItemStyle();y.setLabelStyle(k.style,G,P,B,{labelFetcher:u,labelDataIndex:T.dataIndex,defaultText:T.id,isRectText:!0}),k.setStyle("fill",T.getVisual("color")),y.setHoverStyle(k,G),g.add(k),E.setItemGraphicEl(T.dataIndex,k),k.dataType="node"}),E.eachItemGraphicEl(function(T,S){var O=E.getItemModel(S);O.get("draggable")&&(T.drift=function(I,F){c._focusAdjacencyDisabled=!0,this.shape.x+=I,this.shape.y+=F,this.dirty(),s.dispatchAction({type:"dragNode",seriesId:u.id,dataIndex:E.getRawIndex(S),localX:this.shape.x/b,localY:this.shape.y/w})},T.ondragend=function(){c._focusAdjacencyDisabled=!1},T.draggable=!0,T.cursor="move"),T.highlight=function(){this.trigger("emphasis")},T.downplay=function(){this.trigger("normal")},T.focusNodeAdjHandler&&T.off("mouseover",T.focusNodeAdjHandler),T.unfocusNodeAdjHandler&&T.off("mouseout",T.unfocusNodeAdjHandler),O.get("focusNodeAdjacency")&&(T.on("mouseover",T.focusNodeAdjHandler=function(){c._focusAdjacencyDisabled||(c._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:u.id,dataIndex:T.dataIndex}))}),T.on("mouseout",T.unfocusNodeAdjHandler=function(){c._focusAdjacencyDisabled||c._dispatchUnfocus(s)}))}),C.eachItemGraphicEl(function(T,S){var O=C.getItemModel(S);T.focusNodeAdjHandler&&T.off("mouseover",T.focusNodeAdjHandler),T.unfocusNodeAdjHandler&&T.off("mouseout",T.unfocusNodeAdjHandler),O.get("focusNodeAdjacency")&&(T.on("mouseover",T.focusNodeAdjHandler=function(){c._focusAdjacencyDisabled||(c._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:u.id,edgeDataIndex:T.dataIndex}))}),T.on("mouseout",T.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,A=c.dataIndex,b=h.getItemModel(A),w=c.edgeDataIndex;if(A==null&&w==null)return;var E=g.getNodeByIndex(A),C=g.getEdgeByIndex(w);if(g.eachNode(function(T){o(T,v,.1)}),g.eachEdge(function(T){o(T,f,.1)}),E){n(E,m);var _=b.get("focusNodeAdjacency");_==="outEdges"?x.each(E.outEdges,function(T){if(T.dataIndex<0)return;n(T,d),n(T.node2,m)}):_==="inEdges"?x.each(E.inEdges,function(T){if(T.dataIndex<0)return;n(T,d),n(T.node1,m)}):_==="allEdges"&&x.each(E.edges,function(T){if(T.dataIndex<0)return;n(T,d),T.node1!==E&&n(T.node1,m),T.node2!==E&&n(T.node2,m)})}C&&(n(C,d),n(C.node1,m),n(C.node2,m))},unfocusNodeAdjacency:function(u,r,s,c){var h=u.getGraph();h.eachNode(function(g){o(g,v)}),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}R.exports=a},W4dC:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=x.each,m=x.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(),A=m(),b,w=u(r);return v(w,function(E){var C=n[E.type].load(r,E,c);v(C.regions,function(T){var S=T.name;s&&s.hasOwnProperty(S)&&(T=T.cloneShallow(S=s[S])),h.push(T),g.set(S,T),A.set(S,T.center)});var _=C.boundingRect;_&&(b?b.union(_):b=_.clone())}),{regions:h,regionsMap:g,nameCoordMap:A,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 v(h,function(A){var b=n[A.type][r];b&&g.push(b(s,A,c))}),g}}function e(r){}function u(r){var s=f.retrieveMap(r)||[];return s}R.exports=t},WGYa:function(R,D,i){var y=i("7yuC"),p=y.forceLayout,x=i("HF/U"),v=x.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"),A=g.get("initLayout");e.preservedPoints?c.each(function(P){var B=c.getId(P);c.setItemLayout(P,r[B]||[NaN,NaN])}):!A||A==="none"?v(e):A==="circular"&&f(e,"value");var b=c.getDataExtent("value"),w=h.getDataExtent("value"),E=g.get("repulsion"),C=g.get("edgeLength");n.isArray(E)||(E=[E,E]),n.isArray(C)||(C=[C,C]),C=[C[1],C[0]];var _=c.mapArray("value",function(P,B){var k=c.getItemLayout(B),G=l(P,b,E);return isNaN(G)&&(G=(E[0]+E[1])/2),{w:G,rep:G,fixed:c.getItemModel(B).get("fixed"),p:!k||isNaN(k[0])||isNaN(k[1])?null:k}}),T=h.mapArray("value",function(P,B){var k=s.getEdgeByIndex(B),G=l(P,w,C);isNaN(G)&&(G=(C[0]+C[1])/2);var M=k.getModel();return{n1:_[k.node1.dataIndex],n2:_[k.node2.dataIndex],d:G,curveness:M.get("lineStyle.curveness")||0,ignoreForceLayout:M.get("ignoreForceLayout")}}),u=e.coordinateSystem,S=u.getBoundingRect(),O=p(_,T,{rect:S,gravity:g.get("gravity"),friction:g.get("friction")}),I=O.step;O.step=function(P){for(var B=0,k=_.length;B<k;B++)_[B].fixed&&o.copy(_[B].p,s.getNodeByIndex(B).getLayout());I(function(G,M,j){for(var K=0,z=G.length;K<z;K++)G[K].fixed||s.getNodeByIndex(K).setLayout(G[K].p),r[c.getId(K)]=G[K].p;for(var K=0,z=M.length;K<z;K++){var V=M[K],Q=s.getEdgeByIndex(K),X=V.n1.p,te=V.n2.p,$=Q.getLayout();$=$?$.slice():[],$[0]=$[0]||[],$[1]=$[1]||[],o.copy($[0],X),o.copy($[1],te),+V.curveness&&($[2]=[(X[0]+te[0])/2-(X[1]-te[1])*V.curveness,(X[1]+te[1])/2-(te[0]-X[0])*V.curveness]),Q.setLayout($)}P&&P(j)})},e.forceLayout=O,e.preservedPoints=r,O.step()}else e.forceLayout=null})}R.exports=t},"WN+l":function(R,D,i){var y=i("bYtY"),p=i("IwbS");function x(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 A=s.get(u[g].tickValue);if(A!=null){h=(A+(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 E=o.toGlobalCoord(u[g].coord),C,_,T,S;o.isHorizontal()?(C=b,_=e.y,T=E-C,S=e.height,b=C+T):(C=e.x,_=b,T=e.width,S=E-_,b=_+S);var O=u[g-1].tickValue;O!=null&&c.set(O,h),f.add(new p.Rect({anid:O!=null?"area_"+O:null,shape:{x:C,y:_,width:T,height:S},style:y.defaults({fill:a[h]},w),silent:!0})),h=(h+1)%r}m.__splitAreaColors=c}function v(m){m.__splitAreaColors=null}D.rectCoordAxisBuildSplitArea=x,D.rectCoordAxisHandleRemove=v},WXVj:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="MinusSquareOutlined";var n=v.forwardRef(o);D.default=n},WYAk:function(R,D,i){(function(y,p){R.exports=D=p(i("Ib8C"))})(this,function(y){(function(){var p=y,x=p.lib,v=x.Base,m=p.enc,f=m.Utf8,d=p.algo,l=d.HMAC=v.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(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=x.isObject,m=x.each,f=x.map,d=x.indexOf,l=x.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"),A=g.getStackedDimension;i("jtI2");function b(P,B,k){return P.getCoordSysModel()===B}function w(P,B,k){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(P,B,k),this.model=P}var E=w.prototype;E.type="grid",E.axisPointerEnabled=!0,E.getRect=function(){return this._rect},E.update=function(P,B){var k=this._axesMap;this._updateScale(P,this.model),m(k.x,function(M){u(M.scale,M.model)}),m(k.y,function(M){u(M.scale,M.model)});var G={};m(k.x,function(M){C(k,"y",M,G)}),m(k.y,function(M){C(k,"x",M,G)}),this.resize(this.model,B)};function C(P,B,k,G){k.getAxesOnZeroOf=function(){return j?[j]:[]};var M=P[B],j,K=k.model,z=K.get("axisLine.onZero"),V=K.get("axisLine.onZeroAxisIndex");if(!z)return;if(V!=null)_(M[V])&&(j=M[V]);else for(var Q in M)if(M.hasOwnProperty(Q)&&_(M[Q])&&!G[X(M[Q])]){j=M[Q];break}j&&(G[X(j)]=!0);function X(te){return te.dim+"_"+te.index}}function _(P){return P&&P.type!=="category"&&P.type!=="time"&&e(P)}E.resize=function(P,B,k){var G=n(P.getBoxLayoutParams(),{width:B.getWidth(),height:B.getHeight()});this._rect=G;var M=this._axesList;j(),!k&&P.get("containLabel")&&(m(M,function(K){if(!K.model.get("axisLabel.inside")){var z=r(K);if(z){var V=K.isHorizontal()?"height":"width",Q=K.model.get("axisLabel.margin");G[V]-=z[V]+Q,K.position==="top"?G.y+=z.height+Q:K.position==="left"&&(G.x+=z.width+Q)}}}),j());function j(){m(M,function(K){var z=K.isHorizontal(),V=z?[0,G.width]:[0,G.height],Q=K.inverse?1:0;K.setExtent(V[Q],V[1-Q]),T(K,z?G.x:G.y)})}},E.getAxis=function(P,B){var k=this._axesMap[P];if(k!=null){if(B==null){for(var G in k)if(k.hasOwnProperty(G))return k[G]}return k[B]}},E.getAxes=function(){return this._axesList.slice()},E.getCartesian=function(P,B){if(P!=null&&B!=null){var k="x"+P+"y"+B;return this._coordsMap[k]}v(P)&&(B=P.yAxisIndex,P=P.xAxisIndex);for(var G=0,M=this._coordsList;G<M.length;G++)if(M[G].getAxis("x").index===P||M[G].getAxis("y").index===B)return M[G]},E.getCartesians=function(){return this._coordsList.slice()},E.convertToPixel=function(P,B,k){var G=this._findConvertTarget(P,B);return G.cartesian?G.cartesian.dataToPoint(k):G.axis?G.axis.toGlobalCoord(G.axis.dataToCoord(k)):null},E.convertFromPixel=function(P,B,k){var G=this._findConvertTarget(P,B);return G.cartesian?G.cartesian.pointToData(k):G.axis?G.axis.coordToData(G.axis.toLocalCoord(k)):null},E._findConvertTarget=function(P,B){var k=B.seriesModel,G=B.xAxisModel||k&&k.getReferringComponents("xAxis")[0],M=B.yAxisModel||k&&k.getReferringComponents("yAxis")[0],j=B.gridModel,K=this._coordsList,z,V;if(k)z=k.coordinateSystem,d(K,z)<0&&(z=null);else if(G&&M)z=this.getCartesian(G.componentIndex,M.componentIndex);else if(G)V=this.getAxis("x",G.componentIndex);else if(M)V=this.getAxis("y",M.componentIndex);else if(j){var Q=j.coordinateSystem;Q===this&&(z=this._coordsList[0])}return{cartesian:z,axis:V}},E.containPoint=function(P){var B=this._coordsList[0];if(B)return B.containPoint(P)},E._initCartesian=function(P,B,k){var G={left:!1,right:!1,top:!1,bottom:!1},M={x:{},y:{}},j={x:0,y:0};if(B.eachComponent("xAxis",K("x"),this),B.eachComponent("yAxis",K("y"),this),!j.x||!j.y){this._axesMap={},this._axesList=[];return}this._axesMap=M,m(M.x,function(z,V){m(M.y,function(Q,X){var te="x"+V+"y"+X,$=new s(te);$.grid=this,$.model=P,this._coordsMap[te]=$,this._coordsList.push($),$.addAxis(z),$.addAxis(Q)},this)},this);function K(z){return function(V,Q){if(!b(V,P,B))return;var X=V.get("position");z==="x"?X!=="top"&&X!=="bottom"&&(X=G.bottom?"top":"bottom"):X!=="left"&&X!=="right"&&(X=G.left?"right":"left"),G[X]=!0;var te=new c(z,a(V),[0,0],V.get("type"),X),$=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),M[z][Q]=te,j[z]++}}},E._updateScale=function(P,B){m(this._axesList,function(G){G.scale.setExtent(Infinity,-Infinity)}),P.eachSeries(function(G){if(I(G)){var M=O(G,P),j=M[0],K=M[1];if(!b(j,B,P)||!b(K,B,P))return;var z=this.getCartesian(j.componentIndex,K.componentIndex),V=G.getData(),Q=z.getAxis("x"),X=z.getAxis("y");V.type==="list"&&(k(V,Q,G),k(V,X,G))}},this);function k(G,M,j){m(G.mapDimension(M.dim,!0),function(K){M.scale.unionExtentFromData(G,A(G,K))})}},E.getTooltipAxes=function(P){var B=[],k=[];return m(this.getCartesians(),function(G){var M=P!=null&&P!=="auto"?G.getAxis(P):G.getBaseAxis(),j=G.getOtherAxis(M);d(B,M)<0&&B.push(M),d(k,j)<0&&k.push(j)}),{baseAxes:B,otherAxes:k}};function T(P,B){var k=P.getExtent(),G=k[0]+k[1];P.toGlobalCoord=P.dim==="x"?function(M){return M+B}:function(M){return G-M+B},P.toLocalCoord=P.dim==="x"?function(M){return M-B}:function(M){return G-M+B}}var S=["xAxis","yAxis"];function O(P,B){return f(S,function(k){var G=P.getReferringComponents(k)[0];return G})}function I(P){return P.get("coordinateSystem")==="cartesian2d"}w.create=function(P,B){var k=[];return P.eachComponent("grid",function(G,M){var j=new w(G,P,B);j.name="grid_"+M,j.resize(G,B,!0),G.coordinateSystem=j,k.push(j)}),P.eachSeries(function(G){if(!I(G))return;var M=O(G,P),j=M[0],K=M[1],z=j.getCoordSysModel(),V=z.coordinateSystem;G.coordinateSystem=V.getCartesian(j.componentIndex,K.componentIndex)}),k},w.dimensions=w.prototype.dimensions=s.prototype.dimensions,h.register("cartesian2d",w);var F=w;R.exports=F},"X+im":function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="DownloadOutlined";var n=v.forwardRef(o);D.default=n},"X2/X":function(R,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(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("hwYd"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},XOKv:function(R,D,i){i("OXB0"),i("SA4+")},Xi7e:function(R,D,i){var y=i("KMkd"),p=i("adU4"),x=i("tMB7"),v=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=x,f.prototype.has=v,f.prototype.set=m,R.exports=f},Xmg4:function(R,D,i){var y=i("bYtY"),p=i("LPTA"),x=p.devicePixelRatio,v=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||x,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 A;a.colorStops?(A=a.__canvasGradient||v.getGradient(u,a,{x:0,y:0,width:r,height:s}),a.__canvasGradient=A):a.image&&(A=m.prototype.getCanvasPattern.call(a,u)),u.save(),u.fillStyle=A||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;R.exports=o},Xnb7:function(R,D,i){var y=i("1RvN"),p=new y(50);function x(d){if(typeof d=="string"){var l=p.get(d);return l&&l.image}else return d}function v(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=x,D.createOrUpdateImage=v,D.isImageReady=f},XpcN:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("ProS"),v=i("bYtY"),m=i("oVpE"),f=m.createSymbol,d=i("IwbS"),l=i("eRkO"),o=l.makeBackground,n=i("+TT/"),t=v.curry,a=v.each,e=d.Group,u=x.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,A,b){var w=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!g.get("show",!0))return;var E=g.get("align"),C=g.get("orient");(!E||E==="auto")&&(E=g.get("left")==="right"&&C==="vertical"?"right":"left");var _=g.get("selector",!0),T=g.get("selectorPosition",!0);_&&(!T||T==="auto")&&(T=C==="horizontal"?"end":"start"),this.renderInner(E,g,A,b,_,C,T);var S=g.getBoxLayoutParams(),O={width:b.getWidth(),height:b.getHeight()},I=g.get("padding"),F=n.getLayoutRect(S,O,I),P=this.layoutInner(g,E,F,w,_,T),B=n.getLayoutRect(v.defaults({width:P.width,height:P.height},S),O,I);this.group.attr("position",[B.x-P.x,B.y-P.y]),this.group.add(this._backgroundEl=o(P,g))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(g,A,b,w,E,C,_){var T=this.getContentGroup(),S=v.createHashMap(),O=A.get("selectedMode"),I=[];b.eachRawSeries(function(F){!F.get("legendHoverLink")&&I.push(F.id)}),a(A.getData(),function(F,P){var B=F.get("name");if(!this.newlineDisabled&&(B===""||B===`
|
|
|
`)){T.add(new e({newline:!0}));return}var k=b.getSeriesByName(B)[0];if(S.get(B))return;if(k){var G=k.getData(),M=G.getVisual("color"),j=G.getVisual("borderColor");typeof M=="function"&&(M=M(k.getDataParams(0))),typeof j=="function"&&(j=j(k.getDataParams(0)));var K=G.getVisual("legendSymbol")||"roundRect",z=G.getVisual("symbol"),V=this._createItem(B,P,F,A,K,z,g,M,j,O);V.on("click",t(s,B,null,w,I)).on("mouseover",t(c,k.name,null,w,I)).on("mouseout",t(h,k.name,null,w,I)),S.set(B,!0)}else b.eachRawSeries(function(Q){if(S.get(B))return;if(Q.legendVisualProvider){var X=Q.legendVisualProvider;if(!X.containName(B))return;var te=X.indexOfName(B),$=X.getItemVisual(te,"color"),le=X.getItemVisual(te,"borderColor"),re="roundRect",Se=this._createItem(B,P,F,A,re,null,g,$,le,O);Se.on("click",t(s,null,B,w,I)).on("mouseover",t(c,null,B,w,I)).on("mouseout",t(h,null,B,w,I)),S.set(B,!0)}},this)},this),E&&this._createSelector(E,A,w,C,_)},_createSelector:function(g,A,b,w,E){var C=this.getSelectorGroup();a(g,function(T){_(T)});function _(T){var S=T.type,O=new d.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){b.dispatchAction({type:S==="all"?"legendAllSelect":"legendInverseSelect"})}});C.add(O);var I=A.getModel("selectorLabel"),F=A.getModel("emphasis.selectorLabel");d.setLabelStyle(O.style,O.hoverStyle={},I,F,{defaultText:T.title,isRectText:!1}),d.setHoverStyle(O)}},_createItem:function(g,A,b,w,E,C,_,T,S,O){var I=w.get("itemWidth"),F=w.get("itemHeight"),P=w.get("inactiveColor"),B=w.get("inactiveBorderColor"),k=w.get("symbolKeepAspect"),G=w.getModel("itemStyle"),M=w.isSelected(g),j=new e,K=b.getModel("textStyle"),z=b.get("icon"),V=b.getModel("tooltip"),Q=V.parentModel;E=z||E;var X=f(E,0,0,I,F,M?T:P,k==null?!0:k);if(j.add(r(X,E,G,S,B,M)),!z&&C&&(C!==E||C==="none")){var te=F*.8;C==="none"&&(C="circle");var $=f(C,(I-te)/2,(F-te)/2,te,te,M?T:P,k==null?!0:k);j.add(r($,C,G,S,B,M))}var le=_==="left"?I+5:-5,re=_,Se=w.get("formatter"),Re=g;typeof Se=="string"&&Se?Re=Se.replace("{name}",g!=null?g:""):typeof Se=="function"&&(Re=Se(g)),j.add(new d.Text({style:d.setTextStyle({},K,{text:Re,x:le,y:F/2,textFill:M?K.getTextColor():P,textAlign:re,textVerticalAlign:"middle"})}));var Pe=new d.Rect({shape:j.getBoundingRect(),invisible:!0,tooltip:V.get("show")?v.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 j.add(Pe),j.eachChild(function(Je){Je.silent=!0}),Pe.silent=!O,this.getContentGroup().add(j),d.setHoverStyle(j),j.__legendDataIndex=A,j},layoutInner:function(g,A,b,w,E,C){var _=this.getContentGroup(),T=this.getSelectorGroup();n.box(g.get("orient"),_,g.get("itemGap"),b.width,b.height);var S=_.getBoundingRect(),O=[-S.x,-S.y];if(E){n.box("horizontal",T,g.get("selectorItemGap",!0));var I=T.getBoundingRect(),F=[-I.x,-I.y],P=g.get("selectorButtonGap",!0),B=g.getOrient().index,k=B===0?"width":"height",G=B===0?"height":"width",M=B===0?"y":"x";C==="end"?F[B]+=S[k]+P:O[B]+=I[k]+P,F[1-B]+=S[G]/2-I[G]/2,T.attr("position",F),_.attr("position",O);var j={x:0,y:0};return j[k]=S[k]+P+I[k],j[G]=Math.max(S[G],I[G]),j[M]=Math.min(0,I[M]+F[1-B]),j}else return _.attr("position",O),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function r(g,A,b,w,E,C){var _;return A!=="line"&&A.indexOf("empty")<0?(_=b.getItemStyle(),g.style.stroke=w,C||(_.stroke=E)):_=b.getItemStyle(["borderWidth","borderColor"]),g.setStyle(_)}function s(g,A,b,w){h(g,A,b,w),b.dispatchAction({type:"legendToggleSelect",name:g!=null?g:A}),c(g,A,b,w)}function c(g,A,b,w){var E=b.getZr().storage.getDisplayList()[0];E&&E.useHoverLayer||b.dispatchAction({type:"highlight",seriesName:g,name:A,excludeSeriesId:w})}function h(g,A,b,w){var E=b.getZr().storage.getDisplayList()[0];E&&E.useHoverLayer||b.dispatchAction({type:"downplay",seriesName:g,name:A,excludeSeriesId:w})}R.exports=u},XuBP:function(R,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(R,D,i){var y=i("bYtY"),p=i("Qe9p"),x=i("OELB"),v=x.linearMap,m=y.each,f=y.isObject,d=-1,l=function(C){var _=C.mappingMethod,T=C.type,S=this.option=y.clone(C);this.type=T,this.mappingMethod=_,this._normalizeData=b[_];var O=o[T];this.applyVisual=O.applyVisual,this.getColorMapper=O.getColorMapper,this._doMap=O._doMap[_],_==="piecewise"?(a(S),n(S)):_==="category"?S.categories?t(S):a(S,!0):(y.assert(_!=="linear"||S.dataExtent),a(S))};l.prototype={constructor:l,mapValueToVisual:function(C){var _=this._normalizeData(C);return this._doMap(_,C)},getNormalizer:function(){return y.bind(this._normalizeData,this)}};var o=l.visualHandlers={color:{applyVisual:r("color"),getColorMapper:function(){var C=this.option;return y.bind(C.mappingMethod==="category"?function(_,T){return!T&&(_=this._normalizeData(_)),s.call(this,_)}:function(_,T,S){var O=!!S;return!T&&(_=this._normalizeData(_)),S=p.fastLerp(_,C.parsedVisual,S),O?S:p.stringify(S,"rgba")},this)},_doMap:{linear:function(C){return p.stringify(p.fastLerp(C,this.option.parsedVisual),"rgba")},category:s,piecewise:function(C,_){var T=g.call(this,_);return T==null&&(T=p.stringify(p.fastLerp(C,this.option.parsedVisual),"rgba")),T},fixed:c}},colorHue:e(function(C,_){return p.modifyHSL(C,_)}),colorSaturation:e(function(C,_){return p.modifyHSL(C,null,_)}),colorLightness:e(function(C,_){return p.modifyHSL(C,null,null,_)}),colorAlpha:e(function(C,_){return p.modifyAlpha(C,_)}),opacity:{applyVisual:r("opacity"),_doMap:h([0,1])},liftZ:{applyVisual:r("liftZ"),_doMap:{linear:c,category:c,piecewise:c,fixed:c}},symbol:{applyVisual:function(C,_,T){var S=this.mapValueToVisual(C);if(y.isString(S))T("symbol",S);else if(f(S))for(var O in S)S.hasOwnProperty(O)&&T(O,S[O])},_doMap:{linear:u,category:s,piecewise:function(C,_){var T=g.call(this,_);return T==null&&(T=u.call(this,C)),T},fixed:c}},symbolSize:{applyVisual:r("symbolSize"),_doMap:h([0,1])}};function n(C){var _=C.pieceList;C.hasSpecialVisual=!1,y.each(_,function(T,S){T.originIndex=S,T.visual!=null&&(C.hasSpecialVisual=!0)})}function t(C){var _=C.categories,T=C.visual,S=C.categoryMap={};if(m(_,function(F,P){S[F]=P}),!y.isArray(T)){var O=[];y.isObject(T)?m(T,function(F,P){var B=S[P];O[B!=null?B:d]=F}):O[d]=T,T=A(C,O)}for(var I=_.length-1;I>=0;I--)T[I]==null&&(delete S[_[I]],_.pop())}function a(C,_){var T=C.visual,S=[];y.isObject(T)?m(T,function(I){S.push(I)}):T!=null&&S.push(T);var O={color:1,symbol:1};!_&&S.length===1&&!O.hasOwnProperty(C.type)&&(S[1]=S[0]),A(C,S)}function e(C){return{applyVisual:function(_,T,S){_=this.mapValueToVisual(_),S("color",C(T("color"),_))},_doMap:h([0,1])}}function u(C){var _=this.option.visual;return _[Math.round(v(C,[0,1],[0,_.length-1],!0))]||{}}function r(C){return function(_,T,S){S(C,this.mapValueToVisual(_))}}function s(C){var _=this.option.visual;return _[this.option.loop&&C!==d?C%_.length:C]}function c(){return this.option.visual[0]}function h(C){return{linear:function(_){return v(_,C,this.option.visual,!0)},category:s,piecewise:function(_,T){var S=g.call(this,T);return S==null&&(S=v(_,C,this.option.visual,!0)),S},fixed:c}}function g(C){var _=this.option,T=_.pieceList;if(_.hasSpecialVisual){var S=l.findPieceIndex(C,T),O=T[S];if(O&&O.visual)return O.visual[this.type]}}function A(C,_){return C.visual=_,C.type==="color"&&(C.parsedVisual=y.map(_,function(T){return p.parse(T)})),_}var b={linear:function(C){return v(C,this.option.dataExtent,[0,1],!0)},piecewise:function(C){var _=this.option.pieceList,T=l.findPieceIndex(C,_,!0);if(T!=null)return v(T,[0,_.length-1],[0,1],!0)},category:function(C){var _=this.option.categories?this.option.categoryMap[C]:C;return _==null?d:_},fixed:y.noop};l.listVisualTypes=function(){var C=[];return y.each(o,function(_,T){C.push(T)}),C},l.addVisualHandler=function(C,_){o[C]=_},l.isValidType=function(C){return o.hasOwnProperty(C)},l.eachVisual=function(C,_,T){y.isObject(C)?y.each(C,_,T):_.call(T,C)},l.mapVisual=function(C,_,T){var S,O=y.isArray(C)?[]:y.isObject(C)?{}:(S=!0,null);return l.eachVisual(C,function(I,F){var P=_.call(T,I,F);S?O=P:O[F]=P}),O},l.retrieveVisuals=function(C){var _={},T;return C&&m(o,function(S,O){C.hasOwnProperty(O)&&(_[O]=C[O],T=!0)}),T?_:null},l.prepareVisualTypes=function(C){if(f(C)){var _=[];m(C,function(T,S){_.push(S)}),C=_}else if(y.isArray(C))C=C.slice();else return[];return C.sort(function(T,S){return S==="color"&&T!=="color"&&T.indexOf("color")===0?1:-1}),C},l.dependsOn=function(C,_){return _==="color"?!!(C&&C.indexOf(_)===0):C===_},l.findPieceIndex=function(C,_,T){for(var S,O=Infinity,I=0,F=_.length;I<F;I++){var P=_[I].value;if(P!=null){if(P===C||typeof P=="string"&&P===C+"")return I;T&&M(P,I)}}for(var I=0,F=_.length;I<F;I++){var B=_[I],k=B.interval,G=B.close;if(k){if(k[0]===-Infinity){if(w(G[1],C,k[1]))return I}else if(k[1]===Infinity){if(w(G[0],k[0],C))return I}else if(w(G[0],k[0],C)&&w(G[1],C,k[1]))return I;T&&M(k[0],I),T&&M(k[1],I)}}if(T)return C===Infinity?_.length-1:C===-Infinity?0:S;function M(j,K){var z=Math.abs(j-C);z<O&&(O=z,S=K)}};function w(C,_,T){return C?_<=T:_<T}var E=l;R.exports=E},XzQk:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("KpQ+"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"Y+p1":function(R,D,i){var y=i("wF/u");function p(x,v){return y(x,v)}R.exports=p},Y1PL:function(R,D,i){"use strict";i.r(D),i.d(D,"ResizableTextArea",function(){return E});var y=i("wx14"),p=i("1OyB"),x=i("vuIU"),v=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(T){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=T.getAttribute("id")||T.getAttribute("data-reactid")||T.getAttribute("name");if(S&&r[O])return r[O];var I=window.getComputedStyle(T),F=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),P=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),B=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),k=u.map(function(M){return"".concat(M,":").concat(I.getPropertyValue(M))}).join(";"),G={sizingStyle:k,paddingSize:P,borderSize:B,boxSizing:F};return S&&O&&(r[O]=G),G}function h(T){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;s||(s=document.createElement("textarea"),s.setAttribute("tab-index","-1"),s.setAttribute("aria-hidden","true"),document.body.appendChild(s)),T.getAttribute("wrap")?s.setAttribute("wrap",T.getAttribute("wrap")):s.removeAttribute("wrap");var F=c(T,S),P=F.paddingSize,B=F.borderSize,k=F.boxSizing,G=F.sizingStyle;s.setAttribute("style","".concat(G,";").concat(e)),s.value=T.value||T.placeholder||"";var M=Number.MIN_SAFE_INTEGER,j=Number.MAX_SAFE_INTEGER,K=s.scrollHeight,z;if(k==="border-box"?K+=B:k==="content-box"&&(K-=P),O!==null||I!==null){s.value=" ";var V=s.scrollHeight-P;O!==null&&(M=V*O,k==="border-box"&&(M=M+P+B),K=Math.max(M,K)),I!==null&&(j=V*I,k==="border-box"&&(j=j+P+B),z=K>j?"":"hidden",K=Math.min(j,K))}return{height:K,minHeight:M,maxHeight:j,overflowY:z,resize:"none"}}var g=i("Gytx"),A=i.n(g),b;(function(T){T[T.NONE=0]="NONE",T[T.RESIZING=1]="RESIZING",T[T.RESIZED=2]="RESIZED"})(b||(b={}));var w=function(T){Object(v.a)(O,T);var S=Object(m.a)(O);function O(I){var F;return Object(p.a)(this,O),F=S.call(this,I),F.nextFrameActionId=void 0,F.resizeFrameId=void 0,F.textArea=void 0,F.saveTextArea=function(P){F.textArea=P},F.handleResize=function(P){var B=F.state.resizeStatus,k=F.props,G=k.autoSize,M=k.onResize;if(B!==b.NONE)return;typeof M=="function"&&M(P),G&&F.resizeOnNextFrame()},F.resizeOnNextFrame=function(){cancelAnimationFrame(F.nextFrameActionId),F.nextFrameActionId=requestAnimationFrame(F.resizeTextarea)},F.resizeTextarea=function(){var P=F.props.autoSize;if(!P||!F.textArea)return;var B=P.minRows,k=P.maxRows,G=h(F.textArea,!1,B,k);F.setState({textareaStyles:G,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 P=F.props,B=P.prefixCls,k=B===void 0?"rc-textarea":B,G=P.autoSize,M=P.onResize,j=P.className,K=P.disabled,z=F.state,V=z.textareaStyles,Q=z.resizeStatus,X=Object(n.a)(F.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),te=a()(k,j,Object(l.a)({},"".concat(k,"-disabled"),K));"value"in X&&(X.value=X.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:!(G||M)},f.createElement("textarea",Object(y.a)({},X,{className:te,style:$,ref:F.saveTextArea})))},F.state={textareaStyles:{},resizeStatus:b.NONE},F}return Object(x.a)(O,[{key:"componentDidUpdate",value:function(F){(F.value!==this.props.value||!A()(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,P=this.textArea.selectionEnd;this.textArea.setSelectionRange(F,P)}}catch(B){}}},{key:"render",value:function(){return this.renderTextArea()}}]),O}(f.Component),E=w,C=function(T){Object(v.a)(O,T);var S=Object(m.a)(O);function O(I){var F;Object(p.a)(this,O),F=S.call(this,I),F.resizableTextArea=void 0,F.focus=function(){F.resizableTextArea.textArea.focus()},F.saveTextArea=function(B){F.resizableTextArea=B},F.handleChange=function(B){var k=F.props.onChange;F.setValue(B.target.value,function(){F.resizableTextArea.resizeTextarea()}),k&&k(B)},F.handleKeyDown=function(B){var k=F.props,G=k.onPressEnter,M=k.onKeyDown;B.keyCode===13&&G&&G(B),M&&M(B)};var P=typeof I.value=="undefined"||I.value===null?I.defaultValue:I.value;return F.state={value:P},F}return Object(x.a)(O,[{key:"setValue",value:function(F,P){"value"in this.props||this.setState({value:F},P)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return f.createElement(E,Object(y.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(F){return"value"in F?{value:F.value}:null}}]),O}(f.Component),_=D.default=C},YESw:function(R,D,i){var y=i("Cwc5"),p=y(Object,"create");R.exports=p},YH21:function(R,D,i){var y=i("H6uX");D.Dispatcher=y;var p=i("ItGF"),x=i("Ze12"),v=x.isCanvasEl,m=x.transformCoordWithViewport,f=typeof window!="undefined"&&!!window.addEventListener,d=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,l=[];function o(h,g,A,b){return A=A||{},b||!p.canvasSupported?n(h,g,A):p.browser.firefox&&g.layerX!=null&&g.layerX!==g.offsetX?(A.zrX=g.layerX,A.zrY=g.layerY):g.offsetX!=null?(A.zrX=g.offsetX,A.zrY=g.offsetY):n(h,g,A),A}function n(h,g,A){if(p.domSupported&&h.getBoundingClientRect){var b=g.clientX,w=g.clientY;if(v(h)){var E=h.getBoundingClientRect();A.zrX=b-E.left,A.zrY=w-E.top;return}else if(m(l,h,b,w)){A.zrX=l[0],A.zrY=l[1];return}}A.zrX=A.zrY=0}function t(h){return h||window.event}function a(h,g,A){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,A),g.zrDelta=g.wheelDelta?g.wheelDelta/120:-(g.detail||0)/3;else{var E=b!=="touchend"?g.targetTouches[0]:g.changedTouches[0];E&&o(h,E,g,A)}var C=g.button;return g.which==null&&C!==void 0&&d.test(g.type)&&(g.which=C&1?1:C&2?3:C&4?2:0),g}function e(h,g,A,b){f?h.addEventListener(g,A,b):h.attachEvent("on"+g,A)}function u(h,g,A,b){f?h.removeEventListener(g,A,b):h.detachEvent("on"+g,A)}var r=f?function(h){h.preventDefault(),h.stopPropagation(),h.cancelBubble=!0}:function(h){h.returnValue=!1,h.cancelBubble=!0};function s(h){return h.which===2||h.which===3}function c(h){return h.which>1}D.clientToLocal=o,D.getNativeEvent=t,D.normalizeEvent=a,D.addEventListener=e,D.removeEventListener=u,D.stop=r,D.isMiddleOrRightButtonOnMouseUpDown=s,D.notLeftMouse=c},YJ9k:function(R,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 x(m,f,d){return f&&p(m.prototype,f),d&&p(m,d),m}var v=function(){function m(){y(this,m),this._listeners=new Map}return x(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=v},YJCA:function(R,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"),x=i("vpQ4"),v=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"),A=function(){function _e(){Object(v.a)(this,_e),Object(n.a)(this,"refs",{})}return Object(m.a)(_e,[{key:"add",value:function(ye,Le){this.refs[ye]||(this.refs[ye]=[]),this.refs[ye].push(Le)}},{key:"remove",value:function(ye,Le){var tt=this.getIndex(ye,Le);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(Le){var tt=Le.node;return tt.sortableInfo.index==ye.active.index})}},{key:"getIndex",value:function(ye,Le){return this.refs[ye].indexOf(Le)}},{key:"getOrderedRefs",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[ye].sort(b)}}]),_e}();function b(_e,he){var ye=_e.node.sortableInfo.index,Le=he.node.sortableInfo.index;return ye-Le}function w(_e,he,ye){return _e=_e.slice(),_e.splice(ye<0?_e.length+ye:ye,0,_e.splice(he,1)[0]),_e}function E(_e,he){return Object.keys(_e).reduce(function(ye,Le){return he.indexOf(Le)===-1&&(ye[Le]=_e[Le]),ye},{})}var C={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},_=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var _e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],he=(Array.prototype.slice.call(_e).join("").match(/-(moz|webkit|ms)-/)||_e.OLink===""&&["","o"])[1];switch(he){case"ms":return"ms";default:return he&&he.length?he[0].toUpperCase()+he.substr(1):""}}();function T(_e,he){Object.keys(he).forEach(function(ye){_e.style[ye]=he[ye]})}function S(_e,he){_e.style["".concat(_,"Transform")]=he==null?"":"translate3d(".concat(he.x,"px,").concat(he.y,"px,0)")}function O(_e,he){_e.style["".concat(_,"TransitionDuration")]=he==null?"":"".concat(he,"ms")}function I(_e,he){for(;_e;){if(he(_e))return _e;_e=_e.parentNode}return null}function F(_e,he,ye){return Math.max(_e,Math.min(ye,he))}function P(_e){return _e.substr(-2)==="px"?parseFloat(_e):0}function B(_e){var he=window.getComputedStyle(_e);return{bottom:P(he.marginBottom),left:P(he.marginLeft),right:P(he.marginRight),top:P(he.marginTop)}}function k(_e,he){var ye=he.displayName||he.name;return ye?"".concat(_e,"(").concat(ye,")"):_e}function G(_e,he){var ye=_e.getBoundingClientRect();return{top:ye.top+he.top,left:ye.left+he.left}}function M(_e){return _e.touches&&_e.touches.length?{x:_e.touches[0].pageX,y:_e.touches[0].pageY}:_e.changedTouches&&_e.changedTouches.length?{x:_e.changedTouches[0].pageX,y:_e.changedTouches[0].pageY}:{x:_e.pageX,y:_e.pageY}}function j(_e){return _e.touches&&_e.touches.length||_e.changedTouches&&_e.changedTouches.length}function K(_e,he){var ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!_e)return;var Le={left:ye.left+_e.offsetLeft,top:ye.top+_e.offsetTop};return _e.parentNode===he?Le:K(_e.parentNode,he,Le)}function z(_e,he,ye){return _e<ye&&_e>he?_e-1:_e>ye&&_e<he?_e+1:_e}function V(_e){var he=_e.lockOffset,ye=_e.width,Le=_e.height,tt=he,gt=he,at="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),gt=parseFloat(he),at=Fe[1]}return h()(isFinite(tt)&&isFinite(gt),"lockOffset value should be a finite. Given %s",he),at==="%"&&(tt=tt*ye/100,gt=gt*Le/100),{x:tt,y:gt}}function Q(_e){var he=_e.height,ye=_e.width,Le=_e.lockOffset,tt=Array.isArray(Le)?Le:[Le,Le];h()(tt.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",Le);var gt=Object(p.a)(tt,2),at=gt[0],Fe=gt[1];return[V({height:he,lockOffset:at,width:ye}),V({height:he,lockOffset:Fe,width:ye})]}function X(_e){var he=window.getComputedStyle(_e),ye=/(auto|scroll)/,Le=["overflow","overflowX","overflowY"];return Le.find(function(tt){return ye.test(he[tt])})}function te(_e){return _e instanceof HTMLElement?X(_e)?_e:te(_e.parentNode):null}function $(_e){var he=window.getComputedStyle(_e);return he.display==="grid"?{x:P(he.gridColumnGap),y:P(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(_e){var he="input, textarea, select, canvas, [contenteditable]",ye=_e.querySelectorAll(he),Le=_e.cloneNode(!0),tt=Object(g.a)(Le.querySelectorAll(he));return tt.forEach(function(gt,at){if(gt.type!=="file"&&(gt.value=ye[at].value),gt.type==="radio"&>.name&&(gt.name="__sortableClone__".concat(gt.name)),gt.tagName===re.Canvas&&ye[at].width>0&&ye[at].height>0){var Fe=gt.getContext("2d");Fe.drawImage(ye[at],0,0)}}),Le}function Re(_e){var he,ye,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ye=he=function(tt){Object(l.a)(gt,tt);function gt(){return Object(v.a)(this,gt),Object(f.a)(this,Object(d.a)(gt).apply(this,arguments))}return Object(m.a)(gt,[{key:"componentDidMount",value:function(){var Fe=Object(r.findDOMNode)(this);Fe.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return h()(Le.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=Le.withRef?"wrappedInstance":null;return Object(t.createElement)(_e,Object(y.a)({ref:Fe},this.props))}}]),gt}(t.Component),Object(n.a)(he,"displayName",k("sortableHandle",_e)),ye}function Pe(_e){return _e.sortableHandle!=null}var Je=function(){function _e(he,ye){Object(v.a)(this,_e),this.container=he,this.onScrollCallback=ye}return Object(m.a)(_e,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(ye){var Le=this,tt=ye.translate,gt=ye.minTranslate,at=ye.maxTranslate,Fe=ye.width,mt=ye.height,et={x:0,y:0},St={x:1,y:1},jt={x:10,y:10},Mt=this.container,Ot=Mt.scrollTop,Bt=Mt.scrollLeft,Ke=Mt.scrollHeight,de=Mt.scrollWidth,se=Mt.clientHeight,ut=Mt.clientWidth,qe=Ot===0,me=Ke-Ot-se===0,Wt=Bt===0,dr=de-Bt-ut===0;tt.y>=at.y-mt/2&&!me?(et.y=1,St.y=jt.y*Math.abs((at.y-mt/2-tt.y)/mt)):tt.x>=at.x-Fe/2&&!dr?(et.x=1,St.x=jt.x*Math.abs((at.x-Fe/2-tt.x)/Fe)):tt.y<=gt.y+mt/2&&!qe?(et.y=-1,St.y=jt.y*Math.abs((tt.y-mt/2-gt.y)/mt)):tt.x<=gt.x+Fe/2&&!Wt&&(et.x=-1,St.x=jt.x*Math.abs((tt.x-Fe/2-gt.x)/Fe)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(et.x!==0||et.y!==0)&&(this.interval=setInterval(function(){Le.isAutoScrolling=!0;var vt={left:St.x*et.x,top:St.y*et.y};Le.container.scrollTop+=vt.top,Le.container.scrollLeft+=vt.left,Le.onScrollCallback(vt)},5))}}]),_e}();function Ge(_e){var he=_e.node;return{height:he.offsetHeight,width:he.offsetWidth}}function ct(_e){var he=[re.Input,re.Textarea,re.Select,re.Option,re.Button];return he.indexOf(_e.target.tagName)!==-1?!0:!!I(_e.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},ae={lift:[le.SPACE],drop:[le.SPACE],cancel:[le.ESC],up:[le.UP,le.LEFT],down:[le.DOWN,le.RIGHT]},lt={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:Ge,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:ae,shouldCancelStart:ct,transitionDuration:300,useWindowAsScrollContainer:!1},pe=Object.keys(Ue);function J(_e){h()(!(_e.distance&&_e.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(_e,he){try{var ye=_e()}catch(Le){return he(!0,Le)}return ye&&ye.then?ye.then(he.bind(null,!1),he.bind(null,!0)):he(!1,value)}function ee(_e){var he,ye,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ye=he=function(tt){Object(l.a)(gt,tt);function gt(at){var Fe;return Object(v.a)(this,gt),Fe=Object(f.a)(this,Object(d.a)(gt).call(this,at)),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"state",{}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"handleStart",function(mt){var et=Fe.props,St=et.distance,jt=et.shouldCancelStart;if(mt.button===2||jt(mt))return;Fe.touched=!0,Fe.position=M(mt);var Mt=I(mt.target,function(ut){return ut.sortableInfo!=null});if(Mt&&Mt.sortableInfo&&Fe.nodeIsChild(Mt)&&!Fe.state.sorting){var Ot=Fe.props.useDragHandle,Bt=Mt.sortableInfo,Ke=Bt.index,de=Bt.collection,se=Bt.disabled;if(se)return;if(Ot&&!I(mt.target,Pe))return;Fe.manager.active={collection:de,index:Ke},!j(mt)&&mt.target.tagName===re.Anchor&&mt.preventDefault(),St||(Fe.props.pressDelay===0?Fe.handlePress(mt):Fe.pressTimer=setTimeout(function(){return Fe.handlePress(mt)},Fe.props.pressDelay))}}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"nodeIsChild",function(mt){return mt.sortableInfo.manager===Fe.manager}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"handleMove",function(mt){var et=Fe.props,St=et.distance,jt=et.pressThreshold;if(!Fe.state.sorting&&Fe.touched&&!Fe._awaitingUpdateBeforeSortStart){var Mt=M(mt),Ot={x:Fe.position.x-Mt.x,y:Fe.position.y-Mt.y},Bt=Math.abs(Ot.x)+Math.abs(Ot.y);Fe.delta=Ot,!St&&(!jt||Bt>=jt)?(clearTimeout(Fe.cancelTimer),Fe.cancelTimer=setTimeout(Fe.cancel,0)):St&&Bt>=St&&Fe.manager.isActive()&&Fe.handlePress(mt)}}),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 mt=Fe.props.distance,et=Fe.state.sorting;et||(mt||clearTimeout(Fe.pressTimer),Fe.manager.active=null)}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"handlePress",function(mt){try{var et=Fe.manager.getActive(),St=function(){if(et){var jt=function(){var ur=me.sortableInfo.index,mn=B(me),sr=$(Fe.container),xr=Fe.scrollContainer.getBoundingClientRect(),pr=Bt({index:ur,node:me,collection:Wt});if(Fe.node=me,Fe.margin=mn,Fe.gridGap=sr,Fe.width=pr.width,Fe.height=pr.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=me.getBoundingClientRect(),Fe.containerBoundingRect=xr,Fe.index=ur,Fe.newIndex=ur,Fe.axis={x:Ot.indexOf("x")>=0,y:Ot.indexOf("y")>=0},Fe.offsetEdge=K(me,Fe.container),dr?Fe.initialOffset=M(Object(x.a)({},mt,{pageX:Fe.boundingClientRect.left,pageY:Fe.boundingClientRect.top})):Fe.initialOffset=M(mt),Fe.initialScroll={left:Fe.scrollContainer.scrollLeft,top:Fe.scrollContainer.scrollTop},Fe.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},Fe.helper=Fe.helperContainer.appendChild(Se(me)),T(Fe.helper,{boxSizing:"border-box",height:"".concat(Fe.height,"px"),left:"".concat(Fe.boundingClientRect.left-mn.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(Fe.boundingClientRect.top-mn.top,"px"),width:"".concat(Fe.width,"px")}),dr&&Fe.helper.focus(),de&&(Fe.sortableGhost=me,T(me,{opacity:0,visibility:"hidden"})),Fe.minTranslate={},Fe.maxTranslate={},dr){var Zt=qe?{top:0,left:0,width:Fe.contentWindow.innerWidth,height:Fe.contentWindow.innerHeight}:Fe.containerBoundingRect,Ct=Zt.top,on=Zt.left,Mn=Zt.width,Xn=Zt.height,oi=Ct+Xn,Ui=on+Mn;Fe.axis.x&&(Fe.minTranslate.x=on-Fe.boundingClientRect.left,Fe.maxTranslate.x=Ui-(Fe.boundingClientRect.left+Fe.width)),Fe.axis.y&&(Fe.minTranslate.y=Ct-Fe.boundingClientRect.top,Fe.maxTranslate.y=oi-(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(Un){return Fe.helper.classList.add(Un)}),Fe.listenerNode=mt.touches?me:Fe.contentWindow,dr?(Fe.listenerNode.addEventListener("wheel",Fe.handleKeyEnd,!0),Fe.listenerNode.addEventListener("mousedown",Fe.handleKeyEnd,!0),Fe.listenerNode.addEventListener("keydown",Fe.handleKeyDown)):(C.move.forEach(function(Un){return Fe.listenerNode.addEventListener(Un,Fe.handleSortMove,!1)}),C.end.forEach(function(Un){return Fe.listenerNode.addEventListener(Un,Fe.handleSortEnd,!1)})),Fe.setState({sorting:!0,sortingIndex:ur}),ut&&ut({node:me,index:ur,collection:Wt,isKeySorting:dr,nodes:Fe.manager.getOrderedRefs(),helper:Fe.helper},mt),dr&&Fe.keyMove(0)},Mt=Fe.props,Ot=Mt.axis,Bt=Mt.getHelperDimensions,Ke=Mt.helperClass,de=Mt.hideSortableGhost,se=Mt.updateBeforeSortStart,ut=Mt.onSortStart,qe=Mt.useWindowAsScrollContainer,me=et.node,Wt=et.collection,dr=Fe.manager.isKeySorting,vt=function(){if(typeof se=="function"){Fe._awaitingUpdateBeforeSortStart=!0;var rr=Y(function(){var ur=me.sortableInfo.index;return Promise.resolve(se({collection:Wt,index:ur,node:me,isKeySorting:dr},mt)).then(function(){})},function(ur,mn){if(Fe._awaitingUpdateBeforeSortStart=!1,ur)throw mn;return mn});if(rr&&rr.then)return rr.then(function(){})}}();return vt&&vt.then?vt.then(jt):jt(vt)}}();return Promise.resolve(St&&St.then?St.then(function(){}):void 0)}catch(jt){return Promise.reject(jt)}}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"handleSortMove",function(mt){var et=Fe.props.onSortMove;typeof mt.preventDefault=="function"&&mt.preventDefault(),Fe.updateHelperPosition(mt),Fe.animateNodes(),Fe.autoscroll(),et&&et(mt)}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"handleSortEnd",function(mt){var et=Fe.props,St=et.hideSortableGhost,jt=et.onSortEnd,Mt=Fe.manager,Ot=Mt.active.collection,Bt=Mt.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)):(C.move.forEach(function(me){return Fe.listenerNode.removeEventListener(me,Fe.handleSortMove)}),C.end.forEach(function(me){return Fe.listenerNode.removeEventListener(me,Fe.handleSortEnd)}))),Fe.helper.parentNode.removeChild(Fe.helper),St&&Fe.sortableGhost&&T(Fe.sortableGhost,{opacity:"",visibility:""});for(var de=0,se=Ke.length;de<se;de++){var ut=Ke[de],qe=ut.node;ut.edgeOffset=null,ut.boundingClientRect=null,S(qe,null),O(qe,null),ut.translate=null}Fe.autoScroller.clear(),Fe.manager.active=null,Fe.manager.isKeySorting=!1,Fe.setState({sorting:!1,sortingIndex:null}),typeof jt=="function"&&jt({collection:Ot,newIndex:Fe.newIndex,oldIndex:Fe.index,isKeySorting:Bt,nodes:Ke},mt),Fe.touched=!1}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"autoscroll",function(){var mt=Fe.props.disableAutoscroll,et=Fe.manager.isKeySorting;if(mt){Fe.autoScroller.clear();return}if(et){var St=Object(x.a)({},Fe.translate),jt=0,Mt=0;Fe.axis.x&&(St.x=Math.min(Fe.maxTranslate.x,Math.max(Fe.minTranslate.x,Fe.translate.x)),jt=Fe.translate.x-St.x),Fe.axis.y&&(St.y=Math.min(Fe.maxTranslate.y,Math.max(Fe.minTranslate.y,Fe.translate.y)),Mt=Fe.translate.y-St.y),Fe.translate=St,S(Fe.helper,Fe.translate),Fe.scrollContainer.scrollLeft+=jt,Fe.scrollContainer.scrollTop+=Mt;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(mt){Fe.translate.x+=mt.left,Fe.translate.y+=mt.top,Fe.animateNodes()}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"handleKeyDown",function(mt){var et=mt.keyCode,St=Fe.props,jt=St.shouldCancelStart,Mt=St.keyCodes,Ot=Mt===void 0?{}:Mt,Bt=Object(x.a)({},ae,Ot);if(Fe.manager.active&&!Fe.manager.isKeySorting||!Fe.manager.active&&(!Bt.lift.includes(et)||jt(mt)||!Fe.isValidSortingTarget(mt)))return;mt.stopPropagation(),mt.preventDefault(),Bt.lift.includes(et)&&!Fe.manager.active?Fe.keyLift(mt):Bt.drop.includes(et)&&Fe.manager.active?Fe.keyDrop(mt):Bt.cancel.includes(et)?(Fe.newIndex=Fe.manager.active.index,Fe.keyDrop(mt)):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(mt){var et=mt.target,St=I(et,function(Bt){return Bt.sortableInfo!=null}),jt=St.sortableInfo,Mt=jt.index,Ot=jt.collection;Fe.initialFocusedNode=et,Fe.manager.isKeySorting=!0,Fe.manager.active={index:Mt,collection:Ot},Fe.handlePress(mt)}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"keyMove",function(mt){var et=Fe.manager.getOrderedRefs(),St=et[et.length-1].node.sortableInfo.index,jt=Fe.newIndex+mt,Mt=Fe.newIndex;if(jt<0||jt>St)return;Fe.prevIndex=Mt,Fe.newIndex=jt;var Ot=z(Fe.newIndex,Fe.prevIndex,Fe.index),Bt=et.find(function(dr){var vt=dr.node;return vt.sortableInfo.index===Ot}),Ke=Bt.node,de=Fe.containerScrollDelta,se=Bt.boundingClientRect||G(Ke,de),ut=Bt.translate||{x:0,y:0},qe={top:se.top+ut.y-de.top,left:se.left+ut.x-de.left},me=Mt<jt,Wt={x:me&&Fe.axis.x?Ke.offsetWidth-Fe.width:0,y:me&&Fe.axis.y?Ke.offsetHeight-Fe.height:0};Fe.handleSortMove({pageX:qe.left+Wt.x,pageY:qe.top+Wt.y,ignoreTransition:mt===0})}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"keyDrop",function(mt){Fe.handleSortEnd(mt),Fe.initialFocusedNode&&Fe.initialFocusedNode.focus()}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"handleKeyEnd",function(mt){Fe.manager.active&&Fe.keyDrop(mt)}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"isValidSortingTarget",function(mt){var et=Fe.props.useDragHandle,St=mt.target,jt=I(St,function(Mt){return Mt.sortableInfo!=null});return jt&&jt.sortableInfo&&!jt.sortableInfo.disabled&&(et?Pe(St):St.sortableInfo)}),J(at),Fe.manager=new A,Fe.events={end:Fe.handleEnd,move:Fe.handleMove,start:Fe.handleStart},Fe}return Object(m.a)(gt,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var Fe=this,mt=this.props.useWindowAsScrollContainer,et=this.getContainer();Promise.resolve(et).then(function(St){Fe.container=St,Fe.document=Fe.container.ownerDocument||document;var jt=Fe.props.contentWindow||Fe.document.defaultView||window;Fe.contentWindow=typeof jt=="function"?jt():jt,Fe.scrollContainer=mt?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(Mt){return C[Mt].forEach(function(Ot){return Fe.container.addEventListener(Ot,Fe.events[Mt],!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(mt){return C[mt].forEach(function(et){return Fe.container.removeEventListener(et,Fe.events[mt])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(Fe){var mt=this.props,et=mt.lockAxis,St=mt.lockOffset,jt=mt.lockToContainerEdges,Mt=mt.transitionDuration,Ot=mt.keyboardSortingTransitionDuration,Bt=Ot===void 0?Mt:Ot,Ke=this.manager.isKeySorting,de=Fe.ignoreTransition,se=M(Fe),ut={x:se.x-this.initialOffset.x,y:se.y-this.initialOffset.y};if(ut.y-=window.pageYOffset-this.initialWindowScroll.top,ut.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=ut,jt){var qe=Q({height:this.height,lockOffset:St,width:this.width}),me=Object(p.a)(qe,2),Wt=me[0],dr=me[1],vt={x:this.width/2-Wt.x,y:this.height/2-Wt.y},rr={x:this.width/2-dr.x,y:this.height/2-dr.y};ut.x=F(this.minTranslate.x+vt.x,this.maxTranslate.x-rr.x,ut.x),ut.y=F(this.minTranslate.y+vt.y,this.maxTranslate.y-rr.y,ut.y)}et==="x"?ut.y=0:et==="y"&&(ut.x=0),Ke&&Bt&&!de&&O(this.helper,Bt),S(this.helper,ut)}},{key:"animateNodes",value:function(){var Fe=this.props,mt=Fe.transitionDuration,et=Fe.hideSortableGhost,St=Fe.onSortOver,jt=this.containerScrollDelta,Mt=this.windowScrollDelta,Ot=this.manager.getOrderedRefs(),Bt={left:this.offsetEdge.left+this.translate.x+jt.left,top:this.offsetEdge.top+this.translate.y+jt.top},Ke=this.manager.isKeySorting,de=this.newIndex;this.newIndex=null;for(var se=0,ut=Ot.length;se<ut;se++){var qe=Ot[se].node,me=qe.sortableInfo.index,Wt=qe.offsetWidth,dr=qe.offsetHeight,vt={height:this.height>dr?dr/2:this.height/2,width:this.width>Wt?Wt/2:this.width/2},rr=Ke&&me>this.index&&me<=de,ur=Ke&&me<this.index&&me>=de,mn={x:0,y:0},sr=Ot[se].edgeOffset;sr||(sr=K(qe,this.container),Ot[se].edgeOffset=sr,Ke&&(Ot[se].boundingClientRect=G(qe,jt)));var xr=se<Ot.length-1&&Ot[se+1],pr=se>0&&Ot[se-1];if(xr&&!xr.edgeOffset&&(xr.edgeOffset=K(xr.node,this.container),Ke&&(xr.boundingClientRect=G(xr.node,jt))),me===this.index){et&&(this.sortableGhost=qe,T(qe,{opacity:0,visibility:"hidden"}));continue}mt&&O(qe,mt),this.axis.x?this.axis.y?ur||me<this.index&&(Bt.left+Mt.left-vt.width<=sr.left&&Bt.top+Mt.top<=sr.top+vt.height||Bt.top+Mt.top+vt.height<=sr.top)?(mn.x=this.width+this.marginOffset.x,sr.left+mn.x>this.containerBoundingRect.width-vt.width&&(xr&&(mn.x=xr.edgeOffset.left-sr.left,mn.y=xr.edgeOffset.top-sr.top)),this.newIndex===null&&(this.newIndex=me)):(rr||me>this.index&&(Bt.left+Mt.left+vt.width>=sr.left&&Bt.top+Mt.top+vt.height>=sr.top||Bt.top+Mt.top+vt.height>=sr.top+dr))&&(mn.x=-(this.width+this.marginOffset.x),sr.left+mn.x<this.containerBoundingRect.left+vt.width&&(pr&&(mn.x=pr.edgeOffset.left-sr.left,mn.y=pr.edgeOffset.top-sr.top)),this.newIndex=me):rr||me>this.index&&Bt.left+Mt.left+vt.width>=sr.left?(mn.x=-(this.width+this.marginOffset.x),this.newIndex=me):(ur||me<this.index&&Bt.left+Mt.left<=sr.left+vt.width)&&(mn.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=me)):this.axis.y&&(rr||me>this.index&&Bt.top+Mt.top+vt.height>=sr.top?(mn.y=-(this.height+this.marginOffset.y),this.newIndex=me):(ur||me<this.index&&Bt.top+Mt.top<=sr.top+vt.height)&&(mn.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=me))),S(qe,mn),Ot[se].translate=mn}this.newIndex==null&&(this.newIndex=this.index),Ke&&(this.newIndex=de);var Zt=Ke?this.prevIndex:de;St&&this.newIndex!==Zt&&St({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:Zt,isKeySorting:Ke,nodes:Ot,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return h()(Le.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(Le.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var Fe=Le.withRef?"wrappedInstance":null;return Object(t.createElement)(_e,Object(y.a)({ref:Fe},E(this.props,pe)))}},{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}}}]),gt}(t.Component),Object(n.a)(he,"displayName",k("sortableList",_e)),Object(n.a)(he,"defaultProps",lt),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},we=Object.keys(fe);function Ce(_e){var he,ye,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ye=he=function(tt){Object(l.a)(gt,tt);function gt(){return Object(v.a)(this,gt),Object(f.a)(this,Object(d.a)(gt).apply(this,arguments))}return Object(m.a)(gt,[{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,mt=Fe.collection,et=Fe.disabled,St=Fe.index,jt=Object(r.findDOMNode)(this);jt.sortableInfo={collection:mt,disabled:et,index:St,manager:this.context.manager},this.node=jt,this.ref={node:jt},this.context.manager.add(mt,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()(Le.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=Le.withRef?"wrappedInstance":null;return Object(t.createElement)(_e,Object(y.a)({ref:Fe},E(this.props,we)))}}]),gt}(t.Component),Object(n.a)(he,"displayName",k("sortableElement",_e)),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(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="CaretDownFilled";var n=v.forwardRef(o);D.default=n},YNf1:function(R,D,i){var y=i("IwbS"),p=i("6Ic6"),x=.3,v=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,A=g.dimensions,b=l(a);c.diff(h).add(w).update(E).remove(C).execute();function w(T){var S=d(c,s,T,A,g);o(S,c,T,b)}function E(T,S){var O=h.getItemGraphicEl(S),I=f(c,T,A,g);c.setItemGraphicEl(T,O);var F=r&&r.animation===!1?null:a;y.updateProps(O,{shape:{points:I}},F,T),o(O,c,T,b)}function C(T){var S=h.getItemGraphicEl(T);s.remove(S)}if(!this._initialized){this._initialized=!0;var _=m(g,a,function(){setTimeout(function(){s.removeClipPath()})});s.setClipPath(_)}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 A=d(r,this._dataGroup,g,c,s);A.incremental=!0,o(A,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=x),{lineStyle:a.getModel("lineStyle").getLineStyle(),smooth:e!=null?e:x}}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=v;R.exports=t},YOMW:function(R,D,i){var y=i("bYtY"),p={get:function(m,f,d){var l=y.clone((x[m]||{})[f]);return d&&y.isArray(l)?l[l.length-1]:l}},x={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]}},v=p;R.exports=v},YXkt:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=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=x.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,A=typeof Uint16Array===u?Array:Uint16Array;function b(X){return X._rawCount>65535?h:A}function w(X){var te=X.constructor;return te===Array?X.slice():new te(X)}var E=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],C=["_extent","_approximateExtent","_rawExtent"];function _(X,te){x.each(E.concat(te.__wrappedMethods||[]),function($){te.hasOwnProperty($)&&(X[$]=te[$])}),X.__wrappedMethods=te.__wrappedMethods,x.each(C,function($){X[$]=x.clone(te[$])}),X._calculationInfo=x.extend(te._calculationInfo)}var T=function(X,te){X=X||["x","y"];for(var $={},le=[],re={},Se=0;Se<X.length;Se++){var Re=X[Se];x.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},S=T.prototype;S.type="list",S.hasItemOption=!0,S.getDimension=function(X){return(typeof X=="number"||!isNaN(X)&&!this._dimensionInfos.hasOwnProperty(X))&&(X=this.dimensions[X]),X},S.getDimensionInfo=function(X){return this._dimensionInfos[this.getDimension(X)]},S.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},S.mapDimension=function(X,te){var $=this._dimensionsSummary;if(te==null)return $.encodeFirstDimNotExtra[X];var le=$.encode[X];return te===!0?(le||[]).slice():le&&le[te]},S.initData=function(X,te,$){var le=f.isInstance(X)||x.isArrayLike(X);le&&(X=new o(X,this.dimensions.length)),this._rawData=X,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,X.count()),X.pure&&(this.hasItemOption=!1)},S.getProvider=function(){return this._rawData},S.appendData=function(X){var te=this._rawData,$=this.count();te.appendData(X);var le=te.count();te.persistent||(le+=$),this._initDataFromProvider($,le)},S.appendValues=function(X,te){for(var $=this._chunkSize,le=this._storage,re=this.dimensions,Se=re.length,Re=this._rawExtent,Pe=this.count(),Je=Pe+Math.max(X.length,te?te.length:0),Ge=this._chunkCount,ct=0;ct<Se;ct++){var Ue=re[ct];Re[Ue]||(Re[Ue]=z()),le[Ue]||(le[Ue]=[]),O(le,this._dimensionInfos[Ue],$,Ge,Je),this._chunkCount=le[Ue].length}for(var ae=new Array(Se),lt=Pe;lt<Je;lt++){for(var pe=lt-Pe,J=Math.floor(lt/$),Y=lt%$,ee=0;ee<Se;ee++){var Ue=re[ee],fe=this._dimValueGetterArrayRows(X[pe]||ae,Ue,pe,ee);le[Ue][J][Y]=fe;var we=Re[Ue];fe<we[0]&&(we[0]=fe),fe>we[1]&&(we[1]=fe)}te&&(this._nameList[lt]=te[pe])}this._rawCount=this._count=Je,this._extent={},I(this)},S._initDataFromProvider=function(X,te){if(X>=te)return;for(var $=this._chunkSize,le=this._rawData,re=this._storage,Se=this.dimensions,Re=Se.length,Pe=this._dimensionInfos,Je=this._nameList,Ge=this._idList,ct=this._rawExtent,Ue=this._nameRepeatCount={},ae,lt=this._chunkCount,pe=0;pe<Re;pe++){var J=Se[pe];ct[J]||(ct[J]=z());var Y=Pe[J];Y.otherDims.itemName===0&&(ae=this._nameDimIdx=pe),Y.otherDims.itemId===0&&(this._idDimIdx=pe),re[J]||(re[J]=[]),O(re,Y,$,lt,te),this._chunkCount=re[J].length}for(var ee=new Array(Re),fe=X;fe<te;fe++){ee=le.getItem(fe,ee);for(var we=Math.floor(fe/$),Ce=fe%$,_e=0;_e<Re;_e++){var J=Se[_e],he=re[J][we],ye=this._dimValueGetter(ee,J,fe,_e);he[Ce]=ye;var Le=ct[J];ye<Le[0]&&(Le[0]=ye),ye>Le[1]&&(Le[1]=ye)}if(!le.pure){var tt=Je[fe];if(ee&&tt==null){if(ee.name!=null)Je[fe]=tt=ee.name;else if(ae!=null){var gt=Se[ae],at=re[gt][we];if(at){tt=at[Ce];var Fe=Pe[gt].ordinalMeta;Fe&&Fe.categories.length&&(tt=Fe.categories[tt])}}}var mt=ee==null?null:ee.id;mt==null&&tt!=null&&(Ue[tt]=Ue[tt]||0,mt=tt,Ue[tt]>0&&(mt+="__ec__"+Ue[tt]),Ue[tt]++),mt!=null&&(Ge[fe]=mt)}}!le.persistent&&le.clean&&le.clean(),this._rawCount=this._count=te,this._extent={},I(this)};function O(X,te,$,le,re){var Se=c[te.type],Re=le-1,Pe=te.name,Je=X[Pe][Re];if(Je&&Je.length<$){for(var Ge=new Se(Math.min(re-Re*$,$)),ct=0;ct<Je.length;ct++)Ge[ct]=Je[ct];X[Pe][Re]=Ge}for(var Ue=le*$;Ue<re;Ue+=$)X[Pe].push(new Se(Math.min(re-Ue,$)))}function I(X){var te=X._invertedIndicesMap;x.each(te,function($,le){var re=X._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<X._count;Re++)$[X.get(le,Re)]=Re}})}function F(X,te,$){var le;if(te!=null){var re=X._chunkSize,Se=Math.floor($/re),Re=$%re,Pe=X.dimensions[te],Je=X._storage[Pe][Se];if(Je){le=Je[Re];var Ge=X._dimensionInfos[Pe].ordinalMeta;Ge&&Ge.categories.length&&(le=Ge.categories[le])}}return le}S.count=function(){return this._count},S.getIndices=function(){var X,te=this._indices;if(te){var $=te.constructor,le=this._count;if($===Array){X=new $(le);for(var re=0;re<le;re++)X[re]=te[re]}else X=new $(te.buffer,0,le)}else for(var $=b(this),X=new $(this.count()),re=0;re<X.length;re++)X[re]=re;return X},S.get=function(X,te){if(!(te>=0&&te<this._count))return NaN;var $=this._storage;if(!$[X])return NaN;te=this.getRawIndex(te);var le=Math.floor(te/this._chunkSize),re=te%this._chunkSize,Se=$[X][le],Re=Se[re];return Re},S.getByRawIndex=function(X,te){if(!(te>=0&&te<this._rawCount))return NaN;var $=this._storage[X];if(!$)return NaN;var le=Math.floor(te/this._chunkSize),re=te%this._chunkSize,Se=$[le];return Se[re]},S._getFast=function(X,te){var $=Math.floor(te/this._chunkSize),le=te%this._chunkSize,re=this._storage[X][$];return re[le]},S.getValues=function(X,te){var $=[];x.isArray(X)||(te=X,X=this.dimensions);for(var le=0,re=X.length;le<re;le++)$.push(this.get(X[le],te));return $},S.hasValue=function(X){for(var te=this._dimensionsSummary.dataDimsOnCoord,$=0,le=te.length;$<le;$++)if(isNaN(this.get(te[$],X)))return!1;return!0},S.getDataExtent=function(X){X=this.getDimension(X);var te=this._storage[X],$=z();if(!te)return $;var le=this.count(),re=!this._indices,Se;if(re)return this._rawExtent[X].slice();if(Se=this._extent[X],Se)return Se.slice();Se=$;for(var Re=Se[0],Pe=Se[1],Je=0;Je<le;Je++){var Ge=this._getFast(X,this.getRawIndex(Je));Ge<Re&&(Re=Ge),Ge>Pe&&(Pe=Ge)}return Se=[Re,Pe],this._extent[X]=Se,Se},S.getApproximateExtent=function(X){return X=this.getDimension(X),this._approximateExtent[X]||this.getDataExtent(X)},S.setApproximateExtent=function(X,te){te=this.getDimension(te),this._approximateExtent[te]=X.slice()},S.getCalculationInfo=function(X){return this._calculationInfo[X]},S.setCalculationInfo=function(X,te){e(X)?x.extend(this._calculationInfo,X):this._calculationInfo[X]=te},S.getSum=function(X){var te=this._storage[X],$=0;if(te)for(var le=0,re=this.count();le<re;le++){var Se=this.get(X,le);isNaN(Se)||($+=Se)}return $},S.getMedian=function(X){var te=[];this.each(X,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},S.rawIndexOf=function(X,te){var $=X&&this._invertedIndicesMap[X],le=$[te];return le==null||isNaN(le)?r:le},S.indexOfName=function(X){for(var te=0,$=this.count();te<$;te++)if(this.getName(te)===X)return te;return-1},S.indexOfRawIndex=function(X){if(X>=this._rawCount||X<0)return-1;if(!this._indices)return X;var te=this._indices,$=te[X];if($!=null&&$<this._count&&$===X)return X;for(var le=0,re=this._count-1;le<=re;){var Se=(le+re)/2|0;if(te[Se]<X)le=Se+1;else if(te[Se]>X)re=Se-1;else return Se}return-1},S.indicesOfNearest=function(X,te,$){var le=this._storage,re=le[X],Se=[];if(!re)return Se;$==null&&($=Infinity);for(var Re=Infinity,Pe=-1,Je=0,Ge=0,ct=this.count();Ge<ct;Ge++){var Ue=te-this.get(X,Ge),ae=Math.abs(Ue);ae<=$&&((ae<Re||ae===Re&&Ue>=0&&Pe<0)&&(Re=ae,Pe=Ue,Je=0),Ue===Pe&&(Se[Je++]=Ge))}return Se.length=Je,Se},S.getRawIndex=P;function P(X){return X}function B(X){return X<this._count&&X>=0?this._indices[X]:-1}S.getRawDataItem=function(X){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(X));for(var te=[],$=0;$<this.dimensions.length;$++){var le=this.dimensions[$];te.push(this.get(le,X))}return te},S.getName=function(X){var te=this.getRawIndex(X);return this._nameList[te]||F(this,this._nameDimIdx,te)||""},S.getId=function(X){return k(this,this.getRawIndex(X))};function k(X,te){var $=X._idList[te];return $==null&&($=F(X,X._idDimIdx,te)),$==null&&($=s+te),$}function G(X){return x.isArray(X)||(X=[X]),X}function M(X,te){for(var $=0;$<te.length;$++)X._dimensionInfos[te[$]]||console.error("Unkown dimension "+te[$])}S.each=function(X,te,$,le){"use strict";if(!this._count)return;typeof X=="function"&&(le=$,$=te,te=X,X=[]),$=$||le||this,X=x.map(G(X),this.getDimension,this);for(var re=X.length,Se=0;Se<this.count();Se++)switch(re){case 0:te.call($,Se);break;case 1:te.call($,this.get(X[0],Se),Se);break;case 2:te.call($,this.get(X[0],Se),this.get(X[1],Se),Se);break;default:for(var Re=0,Pe=[];Re<re;Re++)Pe[Re]=this.get(X[Re],Se);Pe[Re]=Se,te.apply($,Pe)}},S.filterSelf=function(X,te,$,le){"use strict";if(!this._count)return;typeof X=="function"&&(le=$,$=te,te=X,X=[]),$=$||le||this,X=x.map(G(X),this.getDimension,this);for(var re=this.count(),Se=b(this),Re=new Se(re),Pe=[],Je=X.length,Ge=0,ct=X[0],Ue=0;Ue<re;Ue++){var ae,lt=this.getRawIndex(Ue);if(Je===0)ae=te.call($,Ue);else if(Je===1){var pe=this._getFast(ct,lt);ae=te.call($,pe,Ue)}else{for(var J=0;J<Je;J++)Pe[J]=this._getFast(ct,lt);Pe[J]=Ue,ae=te.apply($,Pe)}ae&&(Re[Ge++]=lt)}return Ge<re&&(this._indices=Re),this._count=Ge,this._extent={},this.getRawIndex=this._indices?B:P,this},S.selectRange=function(X){"use strict";if(!this._count)return;var te=[];for(var $ in X)X.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],Ge=X[Je][0],ct=X[Je][1],Ue=!1;if(!this._indices){var ae=0;if(le===1){for(var lt=this._storage[te[0]],pe=0;pe<this._chunkCount;pe++)for(var J=lt[pe],Y=Math.min(this._count-pe*this._chunkSize,this._chunkSize),ee=0;ee<Y;ee++){var fe=J[ee];(fe>=Ge&&fe<=ct||isNaN(fe))&&(Re[Pe++]=ae),ae++}Ue=!0}else if(le===2){for(var lt=this._storage[Je],we=this._storage[te[1]],Ce=X[te[1]][0],_e=X[te[1]][1],pe=0;pe<this._chunkCount;pe++)for(var J=lt[pe],he=we[pe],Y=Math.min(this._count-pe*this._chunkSize,this._chunkSize),ee=0;ee<Y;ee++){var fe=J[ee],ye=he[ee];(fe>=Ge&&fe<=ct||isNaN(fe))&&(ye>=Ce&&ye<=_e||isNaN(ye))&&(Re[Pe++]=ae),ae++}Ue=!0}}if(!Ue)if(le===1)for(var ee=0;ee<re;ee++){var Le=this.getRawIndex(ee),fe=this._getFast(Je,Le);(fe>=Ge&&fe<=ct||isNaN(fe))&&(Re[Pe++]=Le)}else for(var ee=0;ee<re;ee++){for(var tt=!0,Le=this.getRawIndex(ee),pe=0;pe<le;pe++){var gt=te[pe],fe=this._getFast($,Le);(fe<X[gt][0]||fe>X[gt][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:P,this},S.mapArray=function(X,te,$,le){"use strict";typeof X=="function"&&(le=$,$=te,te=X,X=[]),$=$||le||this;var re=[];return this.each(X,function(){re.push(te&&te.apply(this,arguments))},$),re};function j(X,te){var $=X.dimensions,le=new T(x.map($,X.getDimensionInfo,X),X.hostModel);_(le,X);for(var re=le._storage={},Se=X._storage,Re=0;Re<$.length;Re++){var Pe=$[Re];Se[Pe]&&(x.indexOf(te,Pe)>=0?(re[Pe]=K(Se[Pe]),le._rawExtent[Pe]=z(),le._extent[Pe]=null):re[Pe]=Se[Pe])}return le}function K(X){for(var te=new Array(X.length),$=0;$<X.length;$++)te[$]=w(X[$]);return te}function z(){return[Infinity,-Infinity]}S.map=function(X,te,$,le){"use strict";$=$||le||this,X=x.map(G(X),this.getDimension,this);var re=j(this,X);re._indices=this._indices,re.getRawIndex=re._indices?B:P;for(var Se=re._storage,Re=[],Pe=this._chunkSize,Je=X.length,Ge=this.count(),ct=[],Ue=re._rawExtent,ae=0;ae<Ge;ae++){for(var lt=0;lt<Je;lt++)ct[lt]=this.get(X[lt],ae);ct[Je]=ae;var pe=te&&te.apply($,ct);if(pe!=null){typeof pe!="object"&&(Re[0]=pe,pe=Re);for(var J=this.getRawIndex(ae),Y=Math.floor(J/Pe),ee=J%Pe,fe=0;fe<pe.length;fe++){var we=X[fe],Ce=pe[fe],_e=Ue[we],he=Se[we];he&&(he[Y][ee]=Ce),Ce<_e[0]&&(_e[0]=Ce),Ce>_e[1]&&(_e[1]=Ce)}}}return re},S.downSample=function(X,te,$,le){for(var re=j(this,[X]),Se=re._storage,Re=[],Pe=Math.floor(1/te),Je=Se[X],Ge=this.count(),ct=this._chunkSize,Ue=re._rawExtent[X],ae=new(b(this))(Ge),lt=0,pe=0;pe<Ge;pe+=Pe){Pe>Ge-pe&&(Pe=Ge-pe,Re.length=Pe);for(var J=0;J<Pe;J++){var Y=this.getRawIndex(pe+J),ee=Math.floor(Y/ct),fe=Y%ct;Re[J]=Je[ee][fe]}var we=$(Re),Ce=this.getRawIndex(Math.min(pe+le(Re,we)||0,Ge-1)),_e=Math.floor(Ce/ct),he=Ce%ct;Je[_e][he]=we,we<Ue[0]&&(Ue[0]=we),we>Ue[1]&&(Ue[1]=we),ae[lt++]=Ce}return re._count=lt,re._indices=ae,re.getRawIndex=B,re},S.getItemModel=function(X){var te=this.hostModel;return new v(this.getRawDataItem(X),te,te&&te.ecModel)},S.diff=function(X){var te=this;return new m(X?X.getIndices():[],this.getIndices(),function($){return k(X,$)},function($){return k(te,$)})},S.getVisual=function(X){var te=this._visual;return te&&te[X]},S.setVisual=function(X,te){if(e(X)){for(var $ in X)X.hasOwnProperty($)&&this.setVisual($,X[$]);return}this._visual=this._visual||{},this._visual[X]=te},S.setLayout=function(X,te){if(e(X)){for(var $ in X)X.hasOwnProperty($)&&this.setLayout($,X[$]);return}this._layout[X]=te},S.getLayout=function(X){return this._layout[X]},S.getItemLayout=function(X){return this._itemLayouts[X]},S.setItemLayout=function(X,te,$){this._itemLayouts[X]=$?x.extend(this._itemLayouts[X]||{},te):te},S.clearItemLayouts=function(){this._itemLayouts.length=0},S.getItemVisual=function(X,te,$){var le=this._itemVisuals[X],re=le&&le[te];return re==null&&!$?this.getVisual(te):re},S.setItemVisual=function(X,te,$){var le=this._itemVisuals[X]||{},re=this.hasItemVisual;if(this._itemVisuals[X]=le,e(te)){for(var Se in te)te.hasOwnProperty(Se)&&(le[Se]=te[Se],re[Se]=!0);return}le[te]=$,re[te]=!0},S.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var V=function(X){X.seriesIndex=this.seriesIndex,X.dataIndex=this.dataIndex,X.dataType=this.dataType};S.setItemGraphicEl=function(X,te){var $=this.hostModel;te&&(te.dataIndex=X,te.dataType=this.dataType,te.seriesIndex=$&&$.seriesIndex,te.type==="group"&&te.traverse(V,te)),this._graphicEls[X]=te},S.getItemGraphicEl=function(X){return this._graphicEls[X]},S.eachItemGraphicEl=function(X,te){x.each(this._graphicEls,function($,le){$&&(X&&X.call(te,$,le))})},S.cloneShallow=function(X){if(!X){var te=x.map(this.dimensions,this.getDimensionInfo,this);X=new T(te,this.hostModel)}if(X._storage=this._storage,_(X,this),this._indices){var $=this._indices.constructor;X._indices=new $(this._indices)}else X._indices=null;return X.getRawIndex=X._indices?B:P,X},S.wrapMethod=function(X,te){var $=this[X];if(typeof $!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(X),this[X]=function(){var le=$.apply(this,arguments);return te.apply(this,[le].concat(x.slice(arguments)))}},S.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],S.CHANGABLE_METHODS=["filterSelf","selectRange"];var Q=T;R.exports=Q},YgsL:function(R,D,i){var y=i("QBsz"),p=y.distance;function x(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 v(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,A=u*g;l.push([x(r[0],s[0],c[0],h[0],u,g,A),x(r[1],s[1],c[1],h[1],u,g,A)])}return l}R.exports=v},Yl7c:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=".",m="___EC__COMPONENT__CONTAINER___";function f(r){var s={main:"",sub:""};return r&&(r=r.split(v),s.main=r[0]||"",s.sub=r[1]||""),s}function d(r){x.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 x.extend(g.prototype,c),g.extend=this.extend,g.superCall=t,g.superApply=a,x.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=x.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(A,b){if(b){if(d(b),b=f(b),!b.sub)c[b.main]=A;else if(b.sub!==m){var w=h(b);w[b.sub]=A}}return A},r.getClass=function(A,b,w){var E=c[A];if(E&&E[m]&&(E=b?E[b]:null),w&&!E)throw new Error(b?"Component "+A+"."+(b||"")+" not exists. Load it first.":A+".type should be specified.");return E},r.getClassesByMainType=function(A){A=f(A);var b=[],w=c[A.main];return w&&w[m]?x.each(w,function(E,C){C!==m&&b.push(E)}):b.push(w),b},r.hasClass=function(A){return A=f(A),!!c[A.main]},r.getAllClassMainTypes=function(){var A=[];return x.each(c,function(b,w){A.push(w)}),A},r.hasSubTypes=function(A){A=f(A);var b=c[A.main];return b&&b[m]},r.parseClassType=f;function h(A){var b=c[A.main];return(!b||!b[m])&&(b=c[A.main]={},b[m]=!0),b}if(s.registerWhenExtend){var g=r.extend;g&&(r.extend=function(A){var b=g.call(this,A);return r.registerClass(b,A.type)})}return r}function u(r,s){}D.parseClassType=f,D.enableClassExtend=l,D.enableClassCheck=n,D.enableClassManagement=e,D.setReadOnly=u},Ynxi:function(R,D,i){var y=i("bYtY"),p=i("ProS"),x=i("IwbS"),v=i("+TT/"),m=v.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 x.Text({style:x.setTextStyle({},a,{text:l.get("text"),textFill:a.getTextColor()},{disableBox:!0}),z2:10}),c=s.getBoundingRect(),h=l.get("subtext"),g=new x.Text({style:x.setTextStyle({},e,{text:h,textFill:e.getTextColor(),y:c.height+l.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),A=l.get("link"),b=l.get("sublink"),w=l.get("triggerEvent",!0);s.silent=!A&&!w,g.silent=!b&&!w,A&&s.on("click",function(){d(A,"_"+l.get("target"))}),b&&g.on("click",function(){d(A,"_"+l.get("subtarget"))}),s.eventData=g.eventData=w?{componentType:"title",componentIndex:l.componentIndex}:null,t.add(s),h&&t.add(g);var E=t.getBoundingRect(),C=l.getBoxLayoutParams();C.width=E.width,C.height=E.height;var _=m(C,{width:n.getWidth(),height:n.getHeight()},l.get("padding"));u||(u=l.get("left")||l.get("right"),u==="middle"&&(u="center"),u==="right"?_.x+=_.width:u==="center"&&(_.x+=_.width/2)),r||(r=l.get("top")||l.get("bottom"),r==="center"&&(r="middle"),r==="bottom"?_.y+=_.height:r==="middle"&&(_.y+=_.height/2),r=r||"top"),t.attr("position",[_.x,_.y]);var T={textAlign:u,textVerticalAlign:r};s.setStyle(T),g.setStyle(T),E=t.getBoundingRect();var S=_.margin,O=l.getItemStyle(["color","opacity"]);O.fill=l.get("backgroundColor");var I=new x.Rect({shape:{x:E.x-S[3],y:E.y-S[0],width:E.width+S[1]+S[3],height:E.height+S[0]+S[2],r:l.get("borderRadius")},style:O,subPixelOptimize:!0,silent:!0});t.add(I)}})},Ywus:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="DeleteOutlined";var n=v.forwardRef(o);D.default=n},Z0Lh:function(R,D,i){"use strict";var y=i("TqRt");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=y(i("pVnL")),x=y(i("HjOm")),v=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"]},x.default),timePickerLocale:(0,p.default)({},v.default)};m.lang.ok="\u786E \u5B9A";var f=m;D.default=f},Z1HP:function(R,D,i){var y=i("ycre"),p=i("quyA"),x=i("q4HE");function v(m){return p(m)?x(m):y(m)}R.exports=v},Z1r0:function(R,D){function i(y){var p=y.findComponents({mainType:"legend"});if(!p||!p.length)return;y.eachSeriesByType("graph",function(x){var v=x.getCategoriesData(),m=x.getGraph(),f=m.data,d=v.mapArray(v.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)}R.exports=i},Z1wy:function(R,D,i){var y=i("ProS");i("ThAp"),i("pmaE"),i("SehX"),i("7uqq");var p=i("zuHt"),x=i("VPsl"),v=i("9u0u"),m=i("lELe"),f=i("d4KN");y.registerLayout(p),y.registerVisual(x),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,v),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(R,D,i){var y=i("MwEJ"),p=i("T4UG"),x=p.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(v,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}});R.exports=x},Z6rY:function(R,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(R,D,i){var y=i("y1pI");function p(x,v){var m=this.__data__,f=y(m,x);return f<0?(++this.size,m.push([x,v])):m[f][1]=v,this}R.exports=p},Z8zF:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("ProS"),v=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];v.extend(l.prototype,o);function g(V,Q){var X=V.getArea&&V.getArea();if(V.type==="cartesian2d"){var te=V.getBaseAxis();if(te.type!=="category"||!te.onBand){var $=Q.getLayout("bandWidth");te.isHorizontal()?(X.x-=$,X.width+=$*2):(X.y-=$,X.height+=$*2)}}return X}var A=x.extendChartView({type:"bar",render:function(V,Q,X){this._updateDrawMode(V);var te=V.get("coordinateSystem");return(te==="cartesian2d"||te==="polar")&&(this._isLargeDraw?this._renderLarge(V,Q,X):this._renderNormal(V,Q,X)),this.group},incrementalPrepareRender:function(V,Q,X){this._clear(),this._updateDrawMode(V)},incrementalRender:function(V,Q,X,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,X){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),Ge=g(re,$);te.removeClipPath();var ct=V.get("roundCap",!0),Ue=V.get("showBackground",!0),ae=V.getModel("backgroundStyle"),lt=ae.get("barBorderRadius")||0,pe=[],J=this._backgroundEls||[];$.diff(le).add(function(fe){var we=$.getItemModel(fe),Ce=S[re.type]($,fe,we);if(Ue){var _e=S[re.type]($,fe),he=z(re,Re,_e);he.useStyle(ae.getBarItemStyle()),re.type==="cartesian2d"&&he.setShape("r",lt),pe[fe]=he}if(!$.hasValue(fe))return;if(Je){var ye=E[re.type](Ge,Ce);if(ye){te.remove(Le);return}}var Le=C[re.type](fe,Ce,Re,Pe,!1,ct);$.setItemGraphicEl(fe,Le),te.add(Le),I(Le,$,fe,we,Ce,V,Re,re.type==="polar")}).update(function(fe,we){var Ce=$.getItemModel(fe),_e=S[re.type]($,fe,Ce);if(Ue){var he=J[we];he.useStyle(ae.getBarItemStyle()),re.type==="cartesian2d"&&he.setShape("r",lt),pe[fe]=he;var ye=S[re.type]($,fe),Le=K(Re,ye,re);m.updateProps(he,{shape:Le},Pe,fe)}var tt=le.getItemGraphicEl(we);if(!$.hasValue(fe)){te.remove(tt);return}if(Je){var gt=E[re.type](Ge,_e);if(gt){te.remove(tt);return}}tt?m.updateProps(tt,{shape:_e},Pe,fe):tt=C[re.type](fe,_e,Re,Pe,!0,ct),$.setItemGraphicEl(fe,tt),te.add(tt),I(tt,$,fe,Ce,_e,V,Re,re.type==="polar")}).remove(function(fe){var we=le.getItemGraphicEl(fe);re.type==="cartesian2d"?we&&_(fe,Pe,we):we&&T(fe,Pe,we)}).execute();var Y=this._backgroundGroup||(this._backgroundGroup=new t);Y.removeAll();for(var ee=0;ee<pe.length;++ee)Y.add(pe[ee]);te.add(Y),this._backgroundEls=pe,this._data=$},_renderLarge:function(V,Q,X){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:v.noop,remove:function(V){this._clear(V)},_clear:function(V){var Q=this.group,X=this._data;V&&V.get("animation")&&X&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],X.eachItemGraphicEl(function(te){te.type==="sector"?T(te.dataIndex,V,te):_(te.dataIndex,V,te)})):Q.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),b=Math.max,w=Math.min,E={cartesian2d:function(V,Q){var X=Q.width<0?-1:1,te=Q.height<0?-1:1;X<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 X<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}},C={cartesian2d:function(V,Q,X,te,$){var le=new m.Rect({shape:v.extend({},Q),z2:1});if(le.name="item",te){var re=le.shape,Se=X?"height":"width",Re={};re[Se]=0,Re[Se]=Q[Se],m[$?"updateProps":"initProps"](le,{shape:Re},te,V)}return le},polar:function(V,Q,X,te,$,le){var re=Q.startAngle<Q.endAngle,Se=!X&&le?s:m.Sector,Re=new Se({shape:v.defaults({clockwise:re},Q),z2:1});if(Re.name="item",te){var Pe=Re.shape,Je=X?"r":"endAngle",Ge={};Pe[Je]=X?0:Q.startAngle,Ge[Je]=Q[Je],m[$?"updateProps":"initProps"](Re,{shape:Ge},te,V)}return Re}};function _(V,Q,X){X.style.text=null,m.updateProps(X,{shape:{width:0}},Q,V,function(){X.parent&&X.parent.remove(X)})}function T(V,Q,X){X.style.text=null,m.updateProps(X,{shape:{r:X.shape.r0}},Q,V,function(){X.parent&&X.parent.remove(X)})}var S={cartesian2d:function(V,Q,X){var te=V.getItemLayout(Q),$=X?F(X,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,X){var te=V.getItemLayout(Q);return{cx:te.cx,cy:te.cy,r0:te.r0,r:te.r,startAngle:te.startAngle,endAngle:te.endAngle}}};function O(V){return V.startAngle!=null&&V.endAngle!=null&&V.startAngle===V.endAngle}function I(V,Q,X,te,$,le,re,Se){var Re=Q.getItemVisual(X,"color"),Pe=Q.getItemVisual(X,"opacity"),Je=Q.getVisual("borderColor"),Ge=te.getModel("itemStyle"),ct=te.getModel("emphasis.itemStyle").getBarItemStyle();Se||V.setShape("r",Ge.get("barBorderRadius")||0),V.useStyle(v.defaults({stroke:O($)?"none":Je,fill:O($)?"none":Re,opacity:Pe},Ge.getBarItemStyle()));var Ue=te.getShallow("cursor");Ue&&V.attr("cursor",Ue);var ae=re?$.height>0?"bottom":"top":$.width>0?"left":"right";Se||d(V.style,ct,te,Re,le,X,ae),O($)&&(ct.fill=ct.stroke="none"),m.setHoverStyle(V,ct)}function F(V,Q){var X=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(X,te,$)}var P=n.extend({type:"largeBar",shape:{points:[]},buildPath:function(V,Q){for(var X=Q.points,te=this.__startPoint,$=this.__baseDimIdx,le=0;le<X.length;le+=2)te[$]=X[le+$],V.moveTo(te[0],te[1]),V.lineTo(X[le],X[le+1])}});function B(V,Q,X){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"),Ge=[];Ge[1-le]=te.getLayout("backgroundStart");var ct=new P({shape:{points:Je},incremental:!!X,__startPoint:Ge,__baseDimIdx:le,__largeDataIndices:re,__barWidth:Se,silent:!0,z2:0});j(ct,Re,te),Q.add(ct)}var Ue=new P({shape:{points:te.getLayout("largePoints")},incremental:!!X,__startPoint:$,__baseDimIdx:le,__largeDataIndices:re,__barWidth:Se});Q.add(Ue),M(Ue,V,te),Ue.seriesIndex=V.seriesIndex,V.get("silent")||(Ue.on("mousedown",k),Ue.on("mousemove",k))}var k=e(function(V){var Q=this,X=G(Q,V.offsetX,V.offsetY);Q.dataIndex=X>=0?X:null},30,!1);function G(V,Q,X){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]=X;for(var Pe=h[te],Je=h[1-te],Ge=Pe-Se,ct=Pe+Se,Ue=0,ae=le.length/2;Ue<ae;Ue++){var lt=Ue*2,pe=le[lt+te],J=le[lt+$];if(pe>=Ge&&pe<=ct&&(Re<=J?Je>=Re&&Je<=J:Je>=J&&Je<=Re))return re[Ue]}return-1}function M(V,Q,X){var te=X.getVisual("borderColor")||X.getVisual("color"),$=Q.getModel("itemStyle").getItemStyle(["color","borderColor"]);V.useStyle($),V.style.fill=null,V.style.stroke=te,V.style.lineWidth=X.getLayout("barWidth")}function j(V,Q,X){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=X.getLayout("barWidth")}function K(V,Q,X){var te,$=X.type==="polar";return $?te=X.getArea():te=X.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 z(V,Q,X){var te=V.type==="polar"?m.Sector:m.Rect;return new te({shape:K(Q,X,V),silent:!0,z2:0})}R.exports=A},ZCgT:function(R,D,i){var y=i("tLB3"),p=1/0,x=17976931348623157e292;function v(m){if(!m)return m===0?m:0;if(m=y(m),m===p||m===-p){var f=m<0?-1:1;return f*x}return m===m?m:0}R.exports=v},ZLWo:function(R,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(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="UpOutlined";var n=v.forwardRef(o);D.default=n},ZTPi:function(R,D,i){"use strict";var y=i("pVnL"),p=i.n(y),x=i("lSNA"),v=i.n(x),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"),A=i("LK+K"),b=i("m+aA"),w=i("Kwbf"),E=i("c+Xe"),C=i("bdgK"),_="rc-observer-key",T=function(tn){Object(g.a)(Vn,tn);var Tn=Object(A.a)(Vn);function Vn(){var Xt;return Object(c.a)(this,Vn),Xt=Tn.apply(this,arguments),Xt.resizeObserver=null,Xt.childNode=null,Xt.currentElement=null,Xt.state={width:0,height:0,offsetHeight:0,offsetWidth:0},Xt.onResize=function(It){var Pt=Xt.props.onResize,Kt=It[0].target,Gt=Kt.getBoundingClientRect(),Dt=Gt.width,lr=Gt.height,Ar=Kt.offsetWidth,yr=Kt.offsetHeight,Mr=Math.floor(Dt),zn=Math.floor(lr);if(Xt.state.width!==Mr||Xt.state.height!==zn||Xt.state.offsetWidth!==Ar||Xt.state.offsetHeight!==yr){var Rn={width:Mr,height:zn,offsetWidth:Ar,offsetHeight:yr};Xt.setState(Rn),Pt&&Promise.resolve().then(function(){Pt(Object(o.a)(Object(o.a)({},Rn),{},{offsetWidth:Ar,offsetHeight:yr}))})}},Xt.setChildNode=function(It){Xt.childNode=It},Xt}return Object(h.a)(Vn,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var It=this.props.disabled;if(It){this.destroyObserver();return}var Pt=Object(b.a)(this.childNode||this),Kt=Pt!==this.currentElement;Kt&&(this.destroyObserver(),this.currentElement=Pt),!this.resizeObserver&&Pt&&(this.resizeObserver=new C.default(this.onResize),this.resizeObserver.observe(Pt))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var It=this.props.children,Pt=Object(a.a)(It);if(Pt.length>1)Object(w.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Pt.length===0)return Object(w.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Kt=Pt[0];if(m.isValidElement(Kt)&&Object(E.c)(Kt)){var Gt=Kt.ref;Pt[0]=m.cloneElement(Kt,{ref:Object(E.a)(Gt,this.setChildNode)})}return Pt.length===1?Pt[0]:Pt.map(function(Dt,lr){return!m.isValidElement(Dt)||"key"in Dt&&Dt.key!==null?Dt:m.cloneElement(Dt,{key:"".concat(_,"-").concat(lr)})})}}]),Vn}(m.Component);T.displayName="ResizeObserver";var S=T;function O(tn){var Tn=Object(m.useRef)(),Vn=Object(m.useRef)(!1);function Xt(){for(var It=arguments.length,Pt=new Array(It),Kt=0;Kt<It;Kt++)Pt[Kt]=arguments[Kt];Vn.current||(s.a.cancel(Tn.current),Tn.current=s()(function(){tn.apply(void 0,Pt)}))}return Object(m.useEffect)(function(){return function(){Vn.current=!0,s.a.cancel(Tn.current)}},[]),Xt}function I(tn){var Tn=Object(m.useRef)([]),Vn=Object(m.useState)({}),Xt=Object(d.a)(Vn,2),It=Xt[1],Pt=Object(m.useRef)(typeof tn=="function"?tn():tn),Kt=O(function(){var Dt=Pt.current;Tn.current.forEach(function(lr){Dt=lr(Dt)}),Tn.current=[],Pt.current=Dt,It({})});function Gt(Dt){Tn.current.push(Dt),Kt()}return[Pt.current,Gt]}var F=i("4IlW");function P(tn,Tn){var Vn,Xt=tn.prefixCls,It=tn.id,Pt=tn.active,Kt=tn.rtl,Gt=tn.tab,Dt=Gt.key,lr=Gt.tab,Ar=Gt.disabled,yr=Gt.closeIcon,Mr=tn.tabBarGutter,zn=tn.tabPosition,Rn=tn.closable,di=tn.renderWrapper,gn=tn.removeAriaLabel,Br=tn.editable,_n=tn.onClick,Gn=tn.onRemove,Zn=tn.onFocus,ai="".concat(Xt,"-tab");m.useEffect(function(){return Gn},[]);var Ei={};zn==="top"||zn==="bottom"?Ei[Kt?"marginLeft":"marginRight"]=Mr:Ei.marginBottom=Mr;var Ri=Br&&Rn!==!1&&!Ar;function Di(aa){if(Ar)return;_n(aa)}function oa(aa){aa.preventDefault(),aa.stopPropagation(),Br.onEdit("remove",{key:Dt,event:aa})}var ma=m.createElement("div",{key:Dt,ref:Tn,className:t()(ai,(Vn={},Object(f.a)(Vn,"".concat(ai,"-with-remove"),Ri),Object(f.a)(Vn,"".concat(ai,"-active"),Pt),Object(f.a)(Vn,"".concat(ai,"-disabled"),Ar),Vn)),style:Ei,onClick:Di},m.createElement("div",{role:"tab","aria-selected":Pt,id:It&&"".concat(It,"-tab-").concat(Dt),className:"".concat(ai,"-btn"),"aria-controls":It&&"".concat(It,"-panel-").concat(Dt),"aria-disabled":Ar,tabIndex:Ar?null:0,onClick:function(ba){ba.stopPropagation(),Di(ba)},onKeyDown:function(ba){[F.a.SPACE,F.a.ENTER].includes(ba.which)&&(ba.preventDefault(),Di(ba))},onFocus:Zn},lr),Ri&&m.createElement("button",{type:"button","aria-label":gn||"remove",tabIndex:0,className:"".concat(ai,"-remove"),onClick:function(ba){ba.stopPropagation(),oa(ba)}},yr||Br.removeIcon||"\xD7"));return di&&(ma=di(ma)),ma}var B=m.forwardRef(P),k={width:0,height:0,left:0,top:0};function G(tn,Tn,Vn){return Object(m.useMemo)(function(){for(var Xt,It=new Map,Pt=Tn.get((Xt=tn[0])===null||Xt===void 0?void 0:Xt.key)||k,Kt=Pt.left+Pt.width,Gt=0;Gt<tn.length;Gt+=1){var Dt=tn[Gt].key,lr=Tn.get(Dt);if(!lr){var Ar;lr=Tn.get((Ar=tn[Gt-1])===null||Ar===void 0?void 0:Ar.key)||k}var yr=It.get(Dt)||Object(o.a)({},lr);yr.right=Kt-yr.left-yr.width,It.set(Dt,yr)}return It},[tn.map(function(Xt){return Xt.key}).join("_"),Tn,Vn])}var M={width:0,height:0,left:0,top:0,right:0};function j(tn,Tn,Vn,Xt,It){var Pt=It.tabs,Kt=It.tabPosition,Gt=It.rtl,Dt,lr,Ar;["top","bottom"].includes(Kt)?(Dt="width",lr=Gt?"right":"left",Ar=Math.abs(Tn.left)):(Dt="height",lr="top",Ar=-Tn.top);var yr=Tn[Dt],Mr=Vn[Dt],zn=Xt[Dt],Rn=yr;return Mr+zn>yr&&(Rn=yr-zn),Object(m.useMemo)(function(){if(!Pt.length)return[0,0];for(var di=Pt.length,gn=di,Br=0;Br<di;Br+=1){var _n=tn.get(Pt[Br].key)||M;if(_n[lr]+_n[Dt]>Ar+Rn){gn=Br-1;break}}for(var Gn=0,Zn=di-1;Zn>=0;Zn-=1){var ai=tn.get(Pt[Zn].key)||M;if(ai[lr]<Ar){Gn=Zn+1;break}}return[Gn,gn]},[tn,Ar,Rn,Kt,Pt.map(function(di){return di.key}).join("_"),Gt])}var K=i("wx14"),z=i("JX7q"),V=i("I8Z2"),Q=i("bT9E"),X=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,Ge=/\bAndroid(?:.+)SD4930UR\b/i,ct=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Ue=/Windows Phone/i,ae=/\bWindows(?:.+)ARM\b/i,lt=/BlackBerry/i,pe=/BB10/i,J=/Opera Mini/i,Y=/\b(CriOS|Chrome)(?:.+)Mobile/i,ee=/Mobile(?:.+)Firefox\b/i;function fe(tn,Tn){return tn.test(Tn)}function we(tn){var Tn=tn||(typeof navigator!="undefined"?navigator.userAgent:""),Vn=(Tn||"").split("[FBAN");if(typeof Vn[1]!="undefined"){var Xt=Vn,It=Object(d.a)(Xt,1);Tn=It[0]}if(Vn=Tn.split("Twitter"),typeof Vn[1]!="undefined"){var Pt=Vn,Kt=Object(d.a)(Pt,1);Tn=Kt[0]}var Gt={apple:{phone:fe(re,Tn)&&!fe(Ue,Tn),ipod:fe(Se,Tn),tablet:!fe(re,Tn)&&fe(Re,Tn)&&!fe(Ue,Tn),device:(fe(re,Tn)||fe(Se,Tn)||fe(Re,Tn))&&!fe(Ue,Tn)},amazon:{phone:fe(Ge,Tn),tablet:!fe(Ge,Tn)&&fe(ct,Tn),device:fe(Ge,Tn)||fe(ct,Tn)},android:{phone:!fe(Ue,Tn)&&fe(Ge,Tn)||!fe(Ue,Tn)&&fe(Pe,Tn),tablet:!fe(Ue,Tn)&&!fe(Ge,Tn)&&!fe(Pe,Tn)&&(fe(ct,Tn)||fe(Je,Tn)),device:!fe(Ue,Tn)&&(fe(Ge,Tn)||fe(ct,Tn)||fe(Pe,Tn)||fe(Je,Tn))||fe(/\bokhttp\b/i,Tn)},windows:{phone:fe(Ue,Tn),tablet:fe(ae,Tn),device:fe(Ue,Tn)||fe(ae,Tn)},other:{blackberry:fe(lt,Tn),blackberry10:fe(pe,Tn),opera:fe(J,Tn),firefox:fe(ee,Tn),chrome:fe(Y,Tn),device:fe(lt,Tn)||fe(pe,Tn)||fe(J,Tn)||fe(ee,Tn)||fe(Y,Tn)},any:null,phone:null,tablet:null};return Gt.any=Gt.apple.device||Gt.android.device||Gt.windows.device||Gt.other.device,Gt.phone=Gt.apple.phone||Gt.android.phone||Gt.windows.phone,Gt.tablet=Gt.apple.tablet||Gt.android.tablet||Gt.windows.tablet,Gt}var Ce=Object(o.a)(Object(o.a)({},we()),{},{isMobile:we}),_e=Ce;function he(){}function ye(tn,Tn,Vn){var Xt=Tn||"";return tn.key||"".concat(Xt,"item_").concat(Vn)}function Le(tn){return"".concat(tn,"-menu-")}function tt(tn,Tn){var Vn=-1;m.Children.forEach(tn,function(Xt){Vn+=1,Xt&&Xt.type&&Xt.type.isMenuItemGroup?m.Children.forEach(Xt.props.children,function(It){Vn+=1,Tn(It,Vn)}):Tn(Xt,Vn)})}function gt(tn,Tn,Vn){if(!tn||Vn.find)return;m.Children.forEach(tn,function(Xt){if(Xt){var It=Xt.type;if(!It||!(It.isSubMenu||It.isMenuItem||It.isMenuItemGroup))return;Tn.indexOf(Xt.key)!==-1?Vn.find=!0:Xt.props.children&>(Xt.props.children,Tn,Vn)}})}var at=["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(Tn){var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xt=Tn&&typeof Tn.getBoundingClientRect=="function"&&Tn.getBoundingClientRect().width;if(Xt){if(Vn){var It=getComputedStyle(Tn),Pt=It.marginLeft,Kt=It.marginRight;Xt+=+Pt.replace("px","")+ +Kt.replace("px","")}Xt=+Xt.toFixed(6)}return Xt||0},mt=function(Tn,Vn,Xt){Tn&&Object(le.a)(Tn.style)==="object"&&(Tn.style[Vn]=Xt)},et=function(){return _e.any},St=i("i8i4"),jt=i("uciX"),Mt=i("wgJM"),Ot=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]}},se=Ke,ut=0,qe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},me=function(Tn,Vn,Xt){var It=Le(Vn),Pt=Tn.getState();Tn.setState({defaultActiveFirst:Object(o.a)(Object(o.a)({},Pt.defaultActiveFirst),{},Object(f.a)({},It,Xt))})},Wt=function(tn){Object(g.a)(Vn,tn);var Tn=Object(A.a)(Vn);function Vn(Xt){var It;Object(c.a)(this,Vn),It=Tn.call(this,Xt),It.onDestroy=function(Ar){It.props.onDestroy(Ar)},It.onKeyDown=function(Ar){var yr=Ar.keyCode,Mr=It.menuInstance,zn=It.props.store,Rn=It.getVisible();if(yr===F.a.ENTER)return It.onTitleClick(Ar),me(zn,It.props.eventKey,!0),!0;if(yr===F.a.RIGHT)return Rn?Mr.onKeyDown(Ar):(It.triggerOpenChange(!0),me(zn,It.props.eventKey,!0)),!0;if(yr===F.a.LEFT){var di;if(Rn)di=Mr.onKeyDown(Ar);else return;return di||(It.triggerOpenChange(!1),di=!0),di}return Rn&&(yr===F.a.UP||yr===F.a.DOWN)?Mr.onKeyDown(Ar):void 0},It.onOpenChange=function(Ar){It.props.onOpenChange(Ar)},It.onPopupVisibleChange=function(Ar){It.triggerOpenChange(Ar,Ar?"mouseenter":"mouseleave")},It.onMouseEnter=function(Ar){var yr=It.props,Mr=yr.eventKey,zn=yr.onMouseEnter,Rn=yr.store;me(Rn,It.props.eventKey,!1),zn({key:Mr,domEvent:Ar})},It.onMouseLeave=function(Ar){var yr=It.props,Mr=yr.parentMenu,zn=yr.eventKey,Rn=yr.onMouseLeave;Mr.subMenuInstance=Object(z.a)(It),Rn({key:zn,domEvent:Ar})},It.onTitleMouseEnter=function(Ar){var yr=It.props,Mr=yr.eventKey,zn=yr.onItemHover,Rn=yr.onTitleMouseEnter;zn({key:Mr,hover:!0}),Rn({key:Mr,domEvent:Ar})},It.onTitleMouseLeave=function(Ar){var yr=It.props,Mr=yr.parentMenu,zn=yr.eventKey,Rn=yr.onItemHover,di=yr.onTitleMouseLeave;Mr.subMenuInstance=Object(z.a)(It),Rn({key:zn,hover:!1}),di({key:zn,domEvent:Ar})},It.onTitleClick=function(Ar){var yr=Object(z.a)(It),Mr=yr.props;if(Mr.onTitleClick({key:Mr.eventKey,domEvent:Ar}),Mr.triggerSubMenuAction==="hover")return;It.triggerOpenChange(!It.getVisible(),"click"),me(Mr.store,It.props.eventKey,!1)},It.onSubMenuClick=function(Ar){typeof It.props.onClick=="function"&&It.props.onClick(It.addKeyPath(Ar))},It.onSelect=function(Ar){It.props.onSelect(Ar)},It.onDeselect=function(Ar){It.props.onDeselect(Ar)},It.getPrefixCls=function(){return"".concat(It.props.rootPrefixCls,"-submenu")},It.getActiveClassName=function(){return"".concat(It.getPrefixCls(),"-active")},It.getDisabledClassName=function(){return"".concat(It.getPrefixCls(),"-disabled")},It.getSelectedClassName=function(){return"".concat(It.getPrefixCls(),"-selected")},It.getOpenClassName=function(){return"".concat(It.props.rootPrefixCls,"-submenu-open")},It.getVisible=function(){return It.state.isOpen},It.getMode=function(){return It.state.mode},It.saveMenuInstance=function(Ar){It.menuInstance=Ar},It.addKeyPath=function(Ar){return Object(o.a)(Object(o.a)({},Ar),{},{keyPath:(Ar.keyPath||[]).concat(It.props.eventKey)})},It.triggerOpenChange=function(Ar,yr){var Mr=It.props.eventKey,zn=function(){It.onOpenChange({key:Mr,item:Object(z.a)(It),trigger:yr,open:Ar})};yr==="mouseenter"?It.mouseenterTimeout=setTimeout(function(){zn()},0):zn()},It.isChildrenSelected=function(){var Ar={find:!1};return gt(It.props.children,It.props.selectedKeys,Ar),Ar.find},It.isInlineMode=function(){return It.getMode()==="inline"},It.adjustWidth=function(){if(!It.subMenuTitle||!It.menuInstance)return;var Ar=St.findDOMNode(It.menuInstance);if(Ar.offsetWidth>=It.subMenuTitle.offsetWidth)return;Ar.style.minWidth="".concat(It.subMenuTitle.offsetWidth,"px")},It.saveSubMenuTitle=function(Ar){It.subMenuTitle=Ar},It.getBaseProps=function(){var Ar=Object(z.a)(It),yr=Ar.props,Mr=It.getMode();return{mode:Mr==="horizontal"?"vertical":Mr,visible:It.getVisible(),level:yr.level+1,inlineIndent:yr.inlineIndent,focusable:!1,onClick:It.onSubMenuClick,onSelect:It.onSelect,onDeselect:It.onDeselect,onDestroy:It.onDestroy,selectedKeys:yr.selectedKeys,eventKey:"".concat(yr.eventKey,"-menu-"),openKeys:yr.openKeys,motion:yr.motion,onOpenChange:It.onOpenChange,subMenuOpenDelay:yr.subMenuOpenDelay,parentMenu:Object(z.a)(It),subMenuCloseDelay:yr.subMenuCloseDelay,forceSubMenuRender:yr.forceSubMenuRender,triggerSubMenuAction:yr.triggerSubMenuAction,builtinPlacements:yr.builtinPlacements,defaultActiveFirst:yr.store.getState().defaultActiveFirst[Le(yr.eventKey)],multiple:yr.multiple,prefixCls:yr.rootPrefixCls,id:It.internalMenuId,manualRef:It.saveMenuInstance,itemIcon:yr.itemIcon,expandIcon:yr.expandIcon,direction:yr.direction}},It.getMotion=function(Ar,yr){var Mr=Object(z.a)(It),zn=Mr.haveRendered,Rn=It.props,di=Rn.motion,gn=Rn.rootPrefixCls,Br=Object(o.a)(Object(o.a)({},di),{},{leavedClassName:"".concat(gn,"-hidden"),removeOnLeave:!1,motionAppear:zn||!yr||Ar!=="inline"});return Br};var Pt=Xt.store,Kt=Xt.eventKey,Gt=Pt.getState(),Dt=Gt.defaultActiveFirst;It.isRootMenu=!1;var lr=!1;return Dt&&(lr=Dt[Kt]),me(Pt,Kt,lr),It.state={mode:Xt.mode,isOpen:Xt.isOpen},It}return Object(h.a)(Vn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var It=this,Pt=this.props,Kt=Pt.mode,Gt=Pt.parentMenu,Dt=Pt.manualRef,lr=Pt.isOpen,Ar=function(){It.setState({mode:Kt,isOpen:lr})},yr=lr!==this.state.isOpen,Mr=Kt!==this.state.mode;if((Mr||yr)&&(Mt.a.cancel(this.updateStateRaf),Mr?this.updateStateRaf=Object(Mt.a)(Ar):Ar()),Dt&&Dt(this),Kt!=="horizontal"||!(Gt==null?void 0:Gt.isRootMenu)||!lr)return;this.minWidthTimeout=setTimeout(function(){return It.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var It=this.props,Pt=It.onDestroy,Kt=It.eventKey;Pt&&Pt(Kt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Mt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(It,Pt){var Kt=this.getBaseProps();return m.createElement(oi,Object(K.a)({},Kt,{id:this.internalMenuId,className:It,style:Pt}),this.props.children)}},{key:"renderChildren",value:function(){var It=this,Pt=this.getBaseProps(),Kt=Pt.mode,Gt=Pt.visible,Dt=Pt.forceSubMenuRender,lr=Pt.direction,Ar=this.getMotion(Kt,Gt);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Gt||Dt,!this.haveOpened)return m.createElement("div",null);var yr=t()("".concat(Pt.prefixCls,"-sub"),Object(f.a)({},"".concat(Pt.prefixCls,"-rtl"),lr==="rtl"));return this.isInlineMode()?m.createElement(Ot.b,Object(K.a)({visible:Pt.visible,forceRender:Dt},Ar),function(Mr){var zn=Mr.className,Rn=Mr.style,di=t()(yr,zn);return It.renderPopupMenu(di,Rn)}):this.renderPopupMenu(yr)}},{key:"render",value:function(){var It,Pt,Kt,Gt=Object(o.a)({},this.props),Dt=this.getVisible(),lr=this.getPrefixCls(),Ar=this.isInlineMode(),yr=this.getMode(),Mr=t()(lr,"".concat(lr,"-").concat(yr),(It={},Object(f.a)(It,Gt.className,!!Gt.className),Object(f.a)(It,this.getOpenClassName(),Dt),Object(f.a)(It,this.getActiveClassName(),Gt.active||Dt&&!Ar),Object(f.a)(It,this.getDisabledClassName(),Gt.disabled),Object(f.a)(It,this.getSelectedClassName(),this.isChildrenSelected()),It));this.internalMenuId||(Gt.eventKey?this.internalMenuId="".concat(Gt.eventKey,"$Menu"):(ut+=1,this.internalMenuId="$__$".concat(ut,"$Menu")));var zn={},Rn={},di={};Gt.disabled||(zn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Rn={onClick:this.onTitleClick},di={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var gn={},Br=Gt.direction,_n=Br==="rtl";Ar&&(_n?gn.paddingRight=Gt.inlineIndent*Gt.level:gn.paddingLeft=Gt.inlineIndent*Gt.level);var Gn={};this.getVisible()&&(Gn={"aria-owns":this.internalMenuId});var Zn=null;yr!=="horizontal"&&(Zn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Zn=m.createElement(this.props.expandIcon,Object(o.a)({},this.props))));var ai=m.createElement("div",Object(K.a)({ref:this.saveSubMenuTitle,style:gn,className:"".concat(lr,"-title"),role:"button"},di,Rn,{"aria-expanded":Dt},Gn,{"aria-haspopup":"true",title:typeof Gt.title=="string"?Gt.title:void 0}),Gt.title,Zn||m.createElement("i",{className:"".concat(lr,"-arrow")})),Ei=this.renderChildren(),Ri=((Pt=Gt.parentMenu)===null||Pt===void 0?void 0:Pt.isRootMenu)?Gt.parentMenu.props.getPopupContainer:function(Sr){return Sr.parentNode},Di=qe[yr],oa=Gt.popupOffset?{offset:Gt.popupOffset}:{},ma=t()((Kt={},Object(f.a)(Kt,Gt.popupClassName,Gt.popupClassName&&!Ar),Object(f.a)(Kt,"".concat(lr,"-rtl"),_n),Kt)),aa=Gt.disabled,ba=Gt.triggerSubMenuAction,Ai=Gt.subMenuOpenDelay,Dn=Gt.forceSubMenuRender,Bi=Gt.subMenuCloseDelay,ha=Gt.builtinPlacements;at.forEach(function(Sr){return delete Gt[Sr]}),delete Gt.onClick;var ta=_n?Object(o.a)(Object(o.a)({},de),ha):Object(o.a)(Object(o.a)({},Ke),ha);delete Gt.direction;var ra=this.getBaseProps(),Ir=Ar?null:this.getMotion(ra.mode,ra.visible);return m.createElement("li",Object(K.a)({},Gt,zn,{className:Mr,role:"menuitem"}),m.createElement(jt.a,{prefixCls:lr,popupClassName:t()("".concat(lr,"-popup"),ma),getPopupContainer:Ri,builtinPlacements:ta,popupPlacement:Di,popupVisible:Ar?!1:Dt,popupAlign:oa,popup:Ar?null:Ei,action:aa||Ar?[]:[ba],mouseEnterDelay:Ai,mouseLeaveDelay:Bi,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Dn,popupMotion:Ir},ai),Ar?Ei:null)}}]),Vn}(m.Component);Wt.defaultProps={onMouseEnter:he,onMouseLeave:he,onTitleMouseEnter:he,onTitleMouseLeave:he,onTitleClick:he,manualRef:he,mode:"vertical",title:""};var dr=Object(V.b)(function(tn,Tn){var Vn=tn.openKeys,Xt=tn.activeKey,It=tn.selectedKeys,Pt=Tn.eventKey,Kt=Tn.subMenuKey;return{isOpen:Vn.indexOf(Pt)>-1,active:Xt[Kt]===Pt,selectedKeys:It}})(Wt);dr.isSubMenu=!0;var vt=dr,rr="menuitem-overflowed",ur=.5,mn=function(tn){Object(g.a)(Vn,tn);var Tn=Object(A.a)(Vn);function Vn(){var Xt;return Object(c.a)(this,Vn),Xt=Tn.apply(this,arguments),Xt.resizeObserver=null,Xt.mutationObserver=null,Xt.originalTotalWidth=0,Xt.overflowedItems=[],Xt.menuItemSizes=[],Xt.cancelFrameId=null,Xt.state={lastVisibleIndex:void 0},Xt.childRef=m.createRef(),Xt.getMenuItemNodes=function(){var It=Xt.props.prefixCls,Pt=Xt.childRef.current;return Pt?[].slice.call(Pt.children).filter(function(Kt){return Kt.className.split(" ").indexOf("".concat(It,"-overflowed-submenu"))<0}):[]},Xt.getOverflowedSubMenuItem=function(It,Pt,Kt){var Gt=Xt.props,Dt=Gt.overflowedIndicator,lr=Gt.level,Ar=Gt.mode,yr=Gt.prefixCls,Mr=Gt.theme;if(lr!==1||Ar!=="horizontal")return null;var zn=Xt.props.children[0],Rn=zn.props,di=Rn.children,gn=Rn.title,Br=Rn.style,_n=Object(l.a)(Rn,["children","title","style"]),Gn=Object(o.a)({},Br),Zn="".concat(It,"-overflowed-indicator"),ai="".concat(It,"-overflowed-indicator");Pt.length===0&&Kt!==!0?Gn=Object(o.a)(Object(o.a)({},Gn),{},{display:"none"}):Kt&&(Gn=Object(o.a)(Object(o.a)({},Gn),{},{visibility:"hidden",position:"absolute"}),Zn="".concat(Zn,"-placeholder"),ai="".concat(ai,"-placeholder"));var Ei=Mr?"".concat(yr,"-").concat(Mr):"",Ri={};return at.forEach(function(Di){_n[Di]!==void 0&&(Ri[Di]=_n[Di])}),m.createElement(vt,Object(K.a)({title:Dt,className:"".concat(yr,"-overflowed-submenu"),popupClassName:Ei},Ri,{key:Zn,eventKey:ai,disabled:!1,style:Gn}),Pt)},Xt.setChildrenWidthAndResize=function(){if(Xt.props.mode!=="horizontal")return;var It=Xt.childRef.current;if(!It)return;var Pt=It.children;if(!Pt||Pt.length===0)return;var Kt=It.children[Pt.length-1];mt(Kt,"display","inline-block");var Gt=Xt.getMenuItemNodes(),Dt=Gt.filter(function(lr){return lr.className.split(" ").indexOf(rr)>=0});Dt.forEach(function(lr){mt(lr,"display","inline-block")}),Xt.menuItemSizes=Gt.map(function(lr){return Fe(lr,!0)}),Dt.forEach(function(lr){mt(lr,"display","none")}),Xt.overflowedIndicatorWidth=Fe(It.children[It.children.length-1],!0),Xt.originalTotalWidth=Xt.menuItemSizes.reduce(function(lr,Ar){return lr+Ar},0),Xt.handleResize(),mt(Kt,"display","none")},Xt.handleResize=function(){if(Xt.props.mode!=="horizontal")return;var It=Xt.childRef.current;if(!It)return;var Pt=Fe(It);Xt.overflowedItems=[];var Kt=0,Gt;Xt.originalTotalWidth>Pt+ur&&(Gt=-1,Xt.menuItemSizes.forEach(function(Dt){Kt+=Dt,Kt+Xt.overflowedIndicatorWidth<=Pt&&(Gt+=1)})),Xt.setState({lastVisibleIndex:Gt})},Xt}return Object(h.a)(Vn,[{key:"componentDidMount",value:function(){var It=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Pt=this.childRef.current;if(!Pt)return;this.resizeObserver=new C.default(function(Kt){Kt.forEach(function(){var Gt=It.cancelFrameId;cancelAnimationFrame(Gt),It.cancelFrameId=requestAnimationFrame(It.setChildrenWidthAndResize)})}),[].slice.call(Pt.children).concat(Pt).forEach(function(Kt){It.resizeObserver.observe(Kt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){It.resizeObserver.disconnect(),[].slice.call(Pt.children).concat(Pt).forEach(function(Kt){It.resizeObserver.observe(Kt)}),It.setChildrenWidthAndResize()}),this.mutationObserver.observe(Pt,{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(It){var Pt=this,Kt=this.state.lastVisibleIndex;return(It||[]).reduce(function(Gt,Dt,lr){var Ar=Dt;if(Pt.props.mode==="horizontal"){var yr=Pt.getOverflowedSubMenuItem(Dt.props.eventKey,[]);Kt!==void 0&&Pt.props.className.indexOf("".concat(Pt.props.prefixCls,"-root"))!==-1&&(lr>Kt&&(Ar=m.cloneElement(Dt,{style:{display:"none"},eventKey:"".concat(Dt.props.eventKey,"-hidden"),className:"".concat(rr)})),lr===Kt+1&&(Pt.overflowedItems=It.slice(Kt+1).map(function(zn){return m.cloneElement(zn,{key:zn.props.eventKey,mode:"vertical-left"})}),yr=Pt.getOverflowedSubMenuItem(Dt.props.eventKey,Pt.overflowedItems)));var Mr=[].concat(Object(u.a)(Gt),[yr,Ar]);return lr===It.length-1&&Mr.push(Pt.getOverflowedSubMenuItem(Dt.props.eventKey,[],!0)),Mr}return[].concat(Object(u.a)(Gt),[Ar])},[])}},{key:"render",value:function(){var It=this.props,Pt=It.visible,Kt=It.prefixCls,Gt=It.overflowedIndicator,Dt=It.mode,lr=It.level,Ar=It.tag,yr=It.children,Mr=It.theme,zn=Object(l.a)(It,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Rn=Ar;return m.createElement(Rn,Object(K.a)({ref:this.childRef},zn),this.renderChildren(yr))}}]),Vn}(m.Component);mn.defaultProps={tag:"div",className:""};var sr=mn;function xr(tn){return tn.length?tn.every(function(Tn){return!!Tn.props.disabled}):!0}function pr(tn,Tn,Vn){var Xt=tn.getState();tn.setState({activeKey:Object(o.a)(Object(o.a)({},Xt.activeKey),{},Object(f.a)({},Tn,Vn))})}function Zt(tn){return tn.eventKey||"0-menu-"}function Ct(tn,Tn){var Vn=Tn,Xt=tn.children,It=tn.eventKey;if(Vn){var Pt;if(tt(Xt,function(Kt,Gt){Kt&&Kt.props&&!Kt.props.disabled&&Vn===ye(Kt,It,Gt)&&(Pt=!0)}),Pt)return Vn}return Vn=null,tn.defaultActiveFirst&&tt(Xt,function(Kt,Gt){!Vn&&Kt&&!Kt.props.disabled&&(Vn=ye(Kt,It,Gt))}),Vn}function on(tn){if(!tn)return;var Tn=this.instanceArray.indexOf(tn);Tn!==-1?this.instanceArray[Tn]=tn:this.instanceArray.push(tn)}var Mn=function(tn){Object(g.a)(Vn,tn);var Tn=Object(A.a)(Vn);function Vn(Xt){var It;return Object(c.a)(this,Vn),It=Tn.call(this,Xt),It.onKeyDown=function(Pt,Kt){var Gt=Pt.keyCode,Dt;if(It.getFlatInstanceArray().forEach(function(Ar){Ar&&Ar.props.active&&Ar.onKeyDown&&(Dt=Ar.onKeyDown(Pt))}),Dt)return 1;var lr=null;return(Gt===F.a.UP||Gt===F.a.DOWN)&&(lr=It.step(Gt===F.a.UP?-1:1)),lr?(Pt.preventDefault(),pr(It.props.store,Zt(It.props),lr.props.eventKey),typeof Kt=="function"&&Kt(lr),1):void 0},It.onItemHover=function(Pt){var Kt=Pt.key,Gt=Pt.hover;pr(It.props.store,Zt(It.props),Gt?Kt:null)},It.onDeselect=function(Pt){It.props.onDeselect(Pt)},It.onSelect=function(Pt){It.props.onSelect(Pt)},It.onClick=function(Pt){It.props.onClick(Pt)},It.onOpenChange=function(Pt){It.props.onOpenChange(Pt)},It.onDestroy=function(Pt){It.props.onDestroy(Pt)},It.getFlatInstanceArray=function(){return It.instanceArray},It.step=function(Pt){var Kt=It.getFlatInstanceArray(),Gt=It.props.store.getState().activeKey[Zt(It.props)],Dt=Kt.length;if(!Dt)return null;Pt<0&&(Kt=Kt.concat().reverse());var lr=-1;if(Kt.every(function(zn,Rn){return zn&&zn.props.eventKey===Gt?(lr=Rn,!1):!0}),!It.props.defaultActiveFirst&&lr!==-1&&xr(Kt.slice(lr,Dt-1)))return;var Ar=(lr+1)%Dt,yr=Ar;do{var Mr=Kt[yr];if(!Mr||Mr.props.disabled)yr=(yr+1)%Dt;else return Mr}while(yr!==Ar);return null},It.renderCommonMenuItem=function(Pt,Kt,Gt){var Dt=It.props.store.getState(),lr=Object(z.a)(It),Ar=lr.props,yr=ye(Pt,Ar.eventKey,Kt),Mr=Pt.props;if(!Mr||typeof Pt.type=="string")return Pt;var zn=yr===Dt.activeKey,Rn=Object(o.a)(Object(o.a)({mode:Mr.mode||Ar.mode,level:Ar.level,inlineIndent:Ar.inlineIndent,renderMenuItem:It.renderMenuItem,rootPrefixCls:Ar.prefixCls,index:Kt,parentMenu:Ar.parentMenu,manualRef:Mr.disabled?void 0:Object(X.a)(Pt.ref,on.bind(Object(z.a)(It))),eventKey:yr,active:!Mr.disabled&&zn,multiple:Ar.multiple,onClick:function(gn){(Mr.onClick||he)(gn),It.onClick(gn)},onItemHover:It.onItemHover,motion:Ar.motion,subMenuOpenDelay:Ar.subMenuOpenDelay,subMenuCloseDelay:Ar.subMenuCloseDelay,forceSubMenuRender:Ar.forceSubMenuRender,onOpenChange:It.onOpenChange,onDeselect:It.onDeselect,onSelect:It.onSelect,builtinPlacements:Ar.builtinPlacements,itemIcon:Mr.itemIcon||It.props.itemIcon,expandIcon:Mr.expandIcon||It.props.expandIcon},Gt),{},{direction:Ar.direction});return(Ar.mode==="inline"||et())&&(Rn.triggerSubMenuAction="click"),m.cloneElement(Pt,Object(o.a)(Object(o.a)({},Rn),{},{key:yr||Kt}))},It.renderMenuItem=function(Pt,Kt,Gt){if(!Pt)return null;var Dt=It.props.store.getState(),lr={openKeys:Dt.openKeys,selectedKeys:Dt.selectedKeys,triggerSubMenuAction:It.props.triggerSubMenuAction,subMenuKey:Gt};return It.renderCommonMenuItem(Pt,Kt,lr)},Xt.store.setState({activeKey:Object(o.a)(Object(o.a)({},Xt.store.getState().activeKey),{},Object(f.a)({},Xt.eventKey,Ct(Xt,Xt.activeKey)))}),It.instanceArray=[],It}return Object(h.a)(Vn,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(It){return this.props.visible||It.visible||this.props.className!==It.className||!$()(this.props.style,It.style)}},{key:"componentDidUpdate",value:function(It){var Pt=this.props,Kt="activeKey"in Pt?Pt.activeKey:Pt.store.getState().activeKey[Zt(Pt)],Gt=Ct(Pt,Kt);if(Gt!==Kt)pr(Pt.store,Zt(Pt),Gt);else if("activeKey"in It){var Dt=Ct(It,It.activeKey);Gt!==Dt&&pr(Pt.store,Zt(Pt),Gt)}}},{key:"render",value:function(){var It=this,Pt=Object(K.a)({},this.props);this.instanceArray=[];var Kt=t()(Pt.prefixCls,Pt.className,"".concat(Pt.prefixCls,"-").concat(Pt.mode)),Gt={className:Kt,role:Pt.role||"menu"};Pt.id&&(Gt.id=Pt.id),Pt.focusable&&(Gt.tabIndex=0,Gt.onKeyDown=this.onKeyDown);var Dt=Pt.prefixCls,lr=Pt.eventKey,Ar=Pt.visible,yr=Pt.level,Mr=Pt.mode,zn=Pt.overflowedIndicator,Rn=Pt.theme;return at.forEach(function(di){return delete Pt[di]}),delete Pt.onClick,m.createElement(sr,Object(K.a)({},Pt,{prefixCls:Dt,mode:Mr,tag:"ul",level:yr,theme:Rn,visible:Ar,overflowedIndicator:zn},Gt),Object(a.a)(Pt.children).map(function(di,gn){return It.renderMenuItem(di,gn,lr||"0-menu-")}))}}]),Vn}(m.Component);Mn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:he};var Xn=Object(V.b)()(Mn),oi=Xn;function Ui(tn,Tn,Vn){var Xt=tn.prefixCls,It=tn.motion,Pt=tn.defaultMotions,Kt=Pt===void 0?{}:Pt,Gt=tn.openAnimation,Dt=tn.openTransitionName,lr=Tn.switchingModeFromInline;if(It)return It;if(Object(le.a)(Gt)==="object"&&Gt)Object(w.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Gt=="string")return{motionName:"".concat(Xt,"-open-").concat(Gt)};if(Dt)return{motionName:Dt};var Ar=Kt[Vn];return Ar||(lr?null:Kt.other)}var Un=function(tn){Object(g.a)(Vn,tn);var Tn=Object(A.a)(Vn);function Vn(Xt){var It;Object(c.a)(this,Vn),It=Tn.call(this,Xt),It.onSelect=function(Gt){var Dt=Object(z.a)(It),lr=Dt.props;if(lr.selectable){var Ar=It.store.getState(),yr=Ar.selectedKeys,Mr=Gt.key;lr.multiple?yr=yr.concat([Mr]):yr=[Mr],"selectedKeys"in lr||It.store.setState({selectedKeys:yr}),lr.onSelect(Object(o.a)(Object(o.a)({},Gt),{},{selectedKeys:yr}))}},It.onClick=function(Gt){var Dt=It.getRealMenuMode(),lr=Object(z.a)(It),Ar=lr.store,yr=lr.props.onOpenChange;Dt!=="inline"&&!("openKeys"in It.props)&&(Ar.setState({openKeys:[]}),yr([])),It.props.onClick(Gt)},It.onKeyDown=function(Gt,Dt){It.innerMenu.getWrappedInstance().onKeyDown(Gt,Dt)},It.onOpenChange=function(Gt){var Dt=Object(z.a)(It),lr=Dt.props,Ar=It.store.getState().openKeys.concat(),yr=!1,Mr=function(Rn){var di=!1;if(Rn.open)di=Ar.indexOf(Rn.key)===-1,di&&Ar.push(Rn.key);else{var gn=Ar.indexOf(Rn.key);di=gn!==-1,di&&Ar.splice(gn,1)}yr=yr||di};Array.isArray(Gt)?Gt.forEach(Mr):Mr(Gt),yr&&("openKeys"in It.props||It.store.setState({openKeys:Ar}),lr.onOpenChange(Ar))},It.onDeselect=function(Gt){var Dt=Object(z.a)(It),lr=Dt.props;if(lr.selectable){var Ar=It.store.getState().selectedKeys.concat(),yr=Gt.key,Mr=Ar.indexOf(yr);Mr!==-1&&Ar.splice(Mr,1),"selectedKeys"in lr||It.store.setState({selectedKeys:Ar}),lr.onDeselect(Object(o.a)(Object(o.a)({},Gt),{},{selectedKeys:Ar}))}},It.onMouseEnter=function(Gt){It.restoreModeVerticalFromInline();var Dt=It.props.onMouseEnter;Dt&&Dt(Gt)},It.onTransitionEnd=function(Gt){var Dt=Gt.propertyName==="width"&&Gt.target===Gt.currentTarget,lr=Gt.target.className,Ar=Object.prototype.toString.call(lr)==="[object SVGAnimatedString]"?lr.animVal:lr,yr=Gt.propertyName==="font-size"&&Ar.indexOf("anticon")>=0;(Dt||yr)&&It.restoreModeVerticalFromInline()},It.setInnerMenu=function(Gt){It.innerMenu=Gt},It.isRootMenu=!0;var Pt=Xt.defaultSelectedKeys,Kt=Xt.defaultOpenKeys;return"selectedKeys"in Xt&&(Pt=Xt.selectedKeys||[]),"openKeys"in Xt&&(Kt=Xt.openKeys||[]),It.store=Object(V.c)({selectedKeys:Pt,openKeys:Kt,activeKey:{"0-menu-":Ct(Xt,Xt.activeKey)}}),It.state={switchingModeFromInline:!1,prevProps:Xt,inlineOpenKeys:[],store:It.store},It}return Object(h.a)(Vn,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(It){var Pt=this.props,Kt=Pt.siderCollapsed,Gt=Pt.inlineCollapsed,Dt=Pt.onOpenChange;(!It.inlineCollapsed&&Gt||!It.siderCollapsed&&Kt)&&Dt([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var It=this.props.collapsedWidth,Pt=this.store,Kt=this.prevOpenKeys,Gt=this.getInlineCollapsed()&&(It===0||It==="0"||It==="0px");Gt?(this.prevOpenKeys=Pt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Kt&&(this.store.setState({openKeys:Kt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var It=this.props.mode,Pt=this.state.switchingModeFromInline,Kt=this.getInlineCollapsed();return Pt&&Kt?"inline":Kt?"vertical":It}},{key:"getInlineCollapsed",value:function(){var It=this.props,Pt=It.inlineCollapsed,Kt=It.siderCollapsed;return Kt!==void 0?Kt:Pt}},{key:"restoreModeVerticalFromInline",value:function(){var It=this.state.switchingModeFromInline;It&&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 It=Object(o.a)({},Object(Q.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Pt=this.getRealMenuMode();return It.className+=" ".concat(It.prefixCls,"-root"),It.direction==="rtl"&&(It.className+=" ".concat(It.prefixCls,"-rtl")),It=Object(o.a)(Object(o.a)({},It),{},{mode:Pt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ui(this.props,this.state,Pt)}),delete It.openAnimation,delete It.openTransitionName,m.createElement(V.a,{store:this.store},m.createElement(oi,Object(K.a)({},It,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(It,Pt){var Kt=Pt.prevProps,Gt=Pt.store,Dt=Gt.getState(),lr={},Ar={prevProps:It};return Kt.mode==="inline"&&It.mode!=="inline"&&(Ar.switchingModeFromInline=!0),"openKeys"in It?lr.openKeys=It.openKeys||[]:((It.inlineCollapsed&&!Kt.inlineCollapsed||It.siderCollapsed&&!Kt.siderCollapsed)&&(Ar.switchingModeFromInline=!0,Ar.inlineOpenKeys=Dt.openKeys,lr.openKeys=[]),(!It.inlineCollapsed&&Kt.inlineCollapsed||!It.siderCollapsed&&Kt.siderCollapsed)&&(lr.openKeys=Pt.inlineOpenKeys,Ar.inlineOpenKeys=[])),Object.keys(lr).length&&Gt.setState(lr),Ar}}]),Vn}(m.Component);Un.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=Un,$t=function(tn){Object(g.a)(Vn,tn);var Tn=Object(A.a)(Vn);function Vn(){var Xt;return Object(c.a)(this,Vn),Xt=Tn.apply(this,arguments),Xt.onKeyDown=function(It){var Pt=It.keyCode;return Pt===F.a.ENTER?(Xt.onClick(It),!0):void 0},Xt.onMouseLeave=function(It){var Pt=Xt.props,Kt=Pt.eventKey,Gt=Pt.onItemHover,Dt=Pt.onMouseLeave;Gt({key:Kt,hover:!1}),Dt({key:Kt,domEvent:It})},Xt.onMouseEnter=function(It){var Pt=Xt.props,Kt=Pt.eventKey,Gt=Pt.onItemHover,Dt=Pt.onMouseEnter;Gt({key:Kt,hover:!0}),Dt({key:Kt,domEvent:It})},Xt.onClick=function(It){var Pt=Xt.props,Kt=Pt.eventKey,Gt=Pt.multiple,Dt=Pt.onClick,lr=Pt.onSelect,Ar=Pt.onDeselect,yr=Pt.isSelected,Mr={key:Kt,keyPath:[Kt],item:Object(z.a)(Xt),domEvent:It};Dt(Mr),Gt?yr?Ar(Mr):lr(Mr):yr||lr(Mr)},Xt.saveNode=function(It){Xt.node=It},Xt}return Object(h.a)(Vn,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var It=this.props;It.onDestroy&&It.onDestroy(It.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 It,Pt=Object(o.a)({},this.props),Kt=t()(this.getPrefixCls(),Pt.className,(It={},Object(f.a)(It,this.getActiveClassName(),!Pt.disabled&&Pt.active),Object(f.a)(It,this.getSelectedClassName(),Pt.isSelected),Object(f.a)(It,this.getDisabledClassName(),Pt.disabled),It)),Gt=Object(o.a)(Object(o.a)({},Pt.attribute),{},{title:typeof Pt.title=="string"?Pt.title:void 0,className:Kt,role:Pt.role||"menuitem","aria-disabled":Pt.disabled});Pt.role==="option"?Gt=Object(o.a)(Object(o.a)({},Gt),{},{role:"option","aria-selected":Pt.isSelected}):(Pt.role===null||Pt.role==="none")&&(Gt.role="none");var Dt={onClick:Pt.disabled?null:this.onClick,onMouseLeave:Pt.disabled?null:this.onMouseLeave,onMouseEnter:Pt.disabled?null:this.onMouseEnter},lr=Object(o.a)({},Pt.style);Pt.mode==="inline"&&(Pt.direction==="rtl"?lr.paddingRight=Pt.inlineIndent*Pt.level:lr.paddingLeft=Pt.inlineIndent*Pt.level),at.forEach(function(yr){return delete Pt[yr]}),delete Pt.direction;var Ar=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Ar=m.createElement(this.props.itemIcon,this.props)),m.createElement("li",Object(K.a)({},Object(Q.a)(Pt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Gt,Dt,{style:lr,ref:this.saveNode}),Pt.children,Ar)}}]),Vn}(m.Component);$t.isMenuItem=!0,$t.defaultProps={onSelect:he,onMouseEnter:he,onMouseLeave:he,manualRef:he};var Nt=Object(V.b)(function(tn,Tn){var Vn=tn.activeKey,Xt=tn.selectedKeys,It=Tn.eventKey,Pt=Tn.subMenuKey;return{active:Vn[Pt]===It,isSelected:Array.isArray(Xt)?Xt.indexOf(It)!==-1:Xt===It}})($t),Me=Nt,ke=function(tn){Object(g.a)(Vn,tn);var Tn=Object(A.a)(Vn);function Vn(){var Xt;return Object(c.a)(this,Vn),Xt=Tn.apply(this,arguments),Xt.renderInnerMenuItem=function(It){var Pt=Xt.props,Kt=Pt.renderMenuItem,Gt=Pt.index;return Kt(It,Gt,Xt.props.subMenuKey)},Xt}return Object(h.a)(Vn,[{key:"render",value:function(){var It=Object(K.a)({},this.props),Pt=It.className,Kt=Pt===void 0?"":Pt,Gt=It.rootPrefixCls,Dt="".concat(Gt,"-item-group-title"),lr="".concat(Gt,"-item-group-list"),Ar=It.title,yr=It.children;return at.forEach(function(Mr){return delete It[Mr]}),delete It.direction,m.createElement("li",Object(K.a)({},It,{onClick:function(zn){return zn.stopPropagation()},className:"".concat(Kt," ").concat(Gt,"-item-group")}),m.createElement("div",{className:Dt,title:typeof Ar=="string"?Ar:void 0},Ar),m.createElement("ul",{className:lr},m.Children.map(yr,this.renderInnerMenuItem)))}}]),Vn}(m.Component);ke.isMenuItemGroup=!0,ke.defaultProps={disabled:!0};var Be=ke,it=function(Tn){var Vn=Tn.className,Xt=Tn.rootPrefixCls,It=Tn.style;return m.createElement("li",{className:"".concat(Vn," ").concat(Xt,"-item-divider"),style:It})};it.defaultProps={disabled:!0,className:"",style:{}};var yt=it,Tt=Qn,Yt={adjustX:1,adjustY:1},Pr=[0,0],$r={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=$r,zt=F.a.ESC,At=F.a.TAB;function wt(tn){var Tn=tn.visible,Vn=tn.setTriggerVisible,Xt=tn.triggerRef,It=tn.menuRef,Pt=tn.onVisibleChange,Kt=tn.autoFocus,Gt=m.useRef(!1),Dt=function(){if(Tn&&Xt.current){var Mr,zn,Rn,di;(Mr=Xt.current)===null||Mr===void 0||((zn=Mr.triggerRef)===null||zn===void 0||((Rn=zn.current)===null||Rn===void 0||((di=Rn.focus)===null||di===void 0)))||di.call(Rn),Vn(!1),typeof Pt=="function"&&Pt(!1)}},lr=function(){var Mr,zn;(Mr=It.current)===null||Mr===void 0||((zn=Mr.focus)===null||zn===void 0)||zn.call(Mr),Gt.current=!0},Ar=function(Mr){var zn;switch(Mr.keyCode){case zt:Dt();break;case At:!Gt.current&&((zn=It.current)===null||zn===void 0?void 0:zn.focus)?(Mr.preventDefault(),lr()):Dt();break}};m.useEffect(function(){return Tn?(window.addEventListener("keydown",Ar),Kt&&Object(Mt.a)(lr,3),function(){window.removeEventListener("keydown",Ar),Gt.current=!1}):function(){Gt.current=!1}},[Tn])}var vr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function Jt(tn,Tn){var Vn=tn.arrow,Xt=Vn===void 0?!1:Vn,It=tn.prefixCls,Pt=It===void 0?"rc-dropdown":It,Kt=tn.transitionName,Gt=tn.animation,Dt=tn.align,lr=tn.placement,Ar=lr===void 0?"bottomLeft":lr,yr=tn.placements,Mr=yr===void 0?An:yr,zn=tn.getPopupContainer,Rn=tn.showAction,di=tn.hideAction,gn=tn.overlayClassName,Br=tn.overlayStyle,_n=tn.visible,Gn=tn.trigger,Zn=Gn===void 0?["hover"]:Gn,ai=tn.autoFocus,Ei=Object(l.a)(tn,vr),Ri=m.useState(),Di=Object(d.a)(Ri,2),oa=Di[0],ma=Di[1],aa="visible"in tn?_n:oa,ba=m.useRef(null);m.useImperativeHandle(Tn,function(){return ba.current});var Ai=m.useRef(null),Dn="".concat(Pt,"-menu");wt({visible:aa,setTriggerVisible:ma,triggerRef:ba,menuRef:Ai,onVisibleChange:tn.onVisibleChange,autoFocus:ai});var Bi=function(){var un=tn.overlay,kn;return typeof un=="function"?kn=un():kn=un,kn},ha=function(un){var kn=tn.onOverlayClick,_t=Bi().props;ma(!1),kn&&kn(un),_t.onClick&&_t.onClick(un)},ta=function(un){var kn=tn.onVisibleChange;ma(un),typeof kn=="function"&&kn(un)},ra=function(){var un,kn=Bi(),_t=Object(E.a)(Ai,kn.ref),Or=(un={prefixCls:Dn},Object(f.a)(un,"data-dropdown-inject",!0),Object(f.a)(un,"onClick",ha),Object(f.a)(un,"ref",Object(E.c)(kn)?_t:void 0),un);return typeof kn.type=="string"&&(delete Or.prefixCls,delete Or["data-dropdown-inject"]),m.createElement(m.Fragment,null,Xt&&m.createElement("div",{className:"".concat(Pt,"-arrow")}),m.cloneElement(kn,Or))},Ir=function(){var un=tn.overlay;return typeof un=="function"?ra:ra()},Sr=function(){var un=tn.minOverlayWidthMatchTrigger,kn=tn.alignPoint;return"minOverlayWidthMatchTrigger"in tn?un:!kn},En=function(){var un=tn.openClassName;return un!==void 0?un:"".concat(Pt,"-open")},fr=function(){var un=tn.children,kn=un.props?un.props:{},_t=t()(kn.className,En());return aa&&un?m.cloneElement(un,{className:_t}):un},kr=di;return!kr&&Zn.indexOf("contextMenu")!==-1&&(kr=["click"]),m.createElement(jt.a,Object(o.a)(Object(o.a)({builtinPlacements:Mr},Ei),{},{prefixCls:Pt,ref:ba,popupClassName:t()(gn,Object(f.a)({},"".concat(Pt,"-show-arrow"),Xt)),popupStyle:Br,action:Zn,showAction:Rn,hideAction:kr||[],popupPlacement:Ar,popupAlign:Dt,popupTransitionName:Kt,popupAnimation:Gt,popupVisible:aa,stretch:Sr()?"minWidth":"",popup:Ir(),onPopupVisibleChange:ta,getPopupContainer:zn}),fr())}var Ut=m.forwardRef(Jt),tr=Ut;function Ft(tn,Tn){var Vn=tn.prefixCls,Xt=tn.editable,It=tn.locale,Pt=tn.style;return!Xt||Xt.showAdd===!1?null:m.createElement("button",{ref:Tn,type:"button",className:"".concat(Vn,"-nav-add"),style:Pt,"aria-label":(It==null?void 0:It.addAriaLabel)||"Add tab",onClick:function(Gt){Xt.onEdit("add",{event:Gt})}},Xt.addIcon||"+")}var qt=m.forwardRef(Ft);function Hr(tn,Tn){var Vn=tn.prefixCls,Xt=tn.id,It=tn.tabs,Pt=tn.locale,Kt=tn.mobile,Gt=tn.moreIcon,Dt=Gt===void 0?"More":Gt,lr=tn.moreTransitionName,Ar=tn.style,yr=tn.className,Mr=tn.editable,zn=tn.tabBarGutter,Rn=tn.rtl,di=tn.onTabClick,gn=Object(m.useState)(!1),Br=Object(d.a)(gn,2),_n=Br[0],Gn=Br[1],Zn=Object(m.useState)(null),ai=Object(d.a)(Zn,2),Ei=ai[0],Ri=ai[1],Di="".concat(Xt,"-more-popup"),oa="".concat(Vn,"-dropdown"),ma=Ei!==null?"".concat(Di,"-").concat(Ei):null,aa=Pt==null?void 0:Pt.dropdownAriaLabel,ba=m.createElement(Tt,{onClick:function(Ir){var Sr=Ir.key,En=Ir.domEvent;di(Sr,En),Gn(!1)},id:Di,tabIndex:-1,role:"listbox","aria-activedescendant":ma,selectedKeys:[Ei],"aria-label":aa!==void 0?aa:"expanded dropdown"},It.map(function(ra){return m.createElement(Me,{key:ra.key,id:"".concat(Di,"-").concat(ra.key),role:"option","aria-controls":Xt&&"".concat(Xt,"-panel-").concat(ra.key),disabled:ra.disabled},ra.tab)}));function Ai(ra){for(var Ir=It.filter(function(Vr){return!Vr.disabled}),Sr=Ir.findIndex(function(Vr){return Vr.key===Ei})||0,En=Ir.length,fr=0;fr<En;fr+=1){Sr=(Sr+ra+En)%En;var kr=Ir[Sr];if(!kr.disabled){Ri(kr.key);return}}}function Dn(ra){var Ir=ra.which;if(!_n){[F.a.DOWN,F.a.SPACE,F.a.ENTER].includes(Ir)&&(Gn(!0),ra.preventDefault());return}switch(Ir){case F.a.UP:Ai(-1),ra.preventDefault();break;case F.a.DOWN:Ai(1),ra.preventDefault();break;case F.a.ESC:Gn(!1);break;case F.a.SPACE:case F.a.ENTER:Ei!==null&&di(Ei,ra);break}}Object(m.useEffect)(function(){var ra=document.getElementById(ma);ra&&ra.scrollIntoView&&ra.scrollIntoView(!1)},[Ei]),Object(m.useEffect)(function(){_n||Ri(null)},[_n]);var Bi=Object(f.a)({},Rn?"marginLeft":"marginRight",zn);It.length||(Bi.visibility="hidden",Bi.order=1);var ha=t()(Object(f.a)({},"".concat(oa,"-rtl"),Rn)),ta=Kt?null:m.createElement(tr,{prefixCls:oa,overlay:ba,trigger:["hover"],visible:_n,transitionName:lr,onVisibleChange:Gn,overlayClassName:ha,mouseEnterDelay:.1,mouseLeaveDelay:.1},m.createElement("button",{type:"button",className:"".concat(Vn,"-nav-more"),style:Bi,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Di,id:"".concat(Xt,"-more"),"aria-expanded":_n,onKeyDown:Dn},Dt));return m.createElement("div",{className:t()("".concat(Vn,"-nav-operations"),yr),style:Ar,ref:Tn},ta,m.createElement(qt,{prefixCls:Vn,locale:Pt,editable:Mr}))}var Nr=m.forwardRef(Hr),Dr=Object(m.createContext)(null),cn=.1,vn=.01,ei=20,qn=Math.pow(.995,ei);function fi(){var tn=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(tn)||/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(tn.substr(0,4)))}function xi(tn,Tn){var Vn=Object(m.useState)(),Xt=Object(d.a)(Vn,2),It=Xt[0],Pt=Xt[1],Kt=Object(m.useState)(0),Gt=Object(d.a)(Kt,2),Dt=Gt[0],lr=Gt[1],Ar=Object(m.useState)(0),yr=Object(d.a)(Ar,2),Mr=yr[0],zn=yr[1],Rn=Object(m.useState)(),di=Object(d.a)(Rn,2),gn=di[0],Br=di[1],_n=Object(m.useRef)();function Gn(aa){var ba=aa.touches[0],Ai=ba.screenX,Dn=ba.screenY;Pt({x:Ai,y:Dn}),window.clearInterval(_n.current)}function Zn(aa){if(!It)return;aa.preventDefault();var ba=aa.touches[0],Ai=ba.screenX,Dn=ba.screenY;Pt({x:Ai,y:Dn});var Bi=Ai-It.x,ha=Dn-It.y;Tn(Bi,ha);var ta=Date.now();lr(ta),zn(ta-Dt),Br({x:Bi,y:ha})}function ai(){if(!It)return;if(Pt(null),Br(null),gn){var aa=gn.x/Mr,ba=gn.y/Mr,Ai=Math.abs(aa),Dn=Math.abs(ba);if(Math.max(Ai,Dn)<cn)return;var Bi=aa,ha=ba;_n.current=window.setInterval(function(){if(Math.abs(Bi)<vn&&Math.abs(ha)<vn){window.clearInterval(_n.current);return}Bi*=qn,ha*=qn,Tn(Bi*ei,ha*ei)},ei)}}var Ei=Object(m.useRef)(0),Ri=Object(m.useRef)(!1),Di=Object(m.useRef)();function oa(aa){var ba=aa.deltaX,Ai=aa.deltaY,Dn=0,Bi=Math.abs(ba),ha=Math.abs(Ai);Bi===ha?Dn=Di.current==="x"?ba:Ai:Bi>ha?(Dn=ba,Di.current="x"):(Dn=Ai,Di.current="y");var ta=Date.now();ta-Ei.current>100&&(Ri.current=!1),(Tn(-Dn,-Dn)||Ri.current)&&(aa.preventDefault(),Ri.current=!0),Ei.current=ta}var ma=Object(m.useRef)(null);ma.current={onTouchStart:Gn,onTouchMove:Zn,onTouchEnd:ai,onWheel:oa},m.useEffect(function(){function aa(Bi){ma.current.onTouchStart(Bi)}function ba(Bi){ma.current.onTouchMove(Bi)}function Ai(Bi){ma.current.onTouchEnd(Bi)}function Dn(Bi){ma.current.onWheel(Bi)}return document.addEventListener("touchmove",ba,{passive:!1}),document.addEventListener("touchend",Ai,{passive:!1}),tn.current.addEventListener("touchstart",aa,{passive:!1}),tn.current.addEventListener("wheel",Dn),function(){document.removeEventListener("touchmove",ba),document.removeEventListener("touchend",Ai)}},[])}function Ni(){var tn=Object(m.useRef)(new Map);function Tn(Xt){return tn.current.has(Xt)||tn.current.set(Xt,m.createRef()),tn.current.get(Xt)}function Vn(Xt){tn.current.delete(Xt)}return[Tn,Vn]}function Hi(tn,Tn){var Vn=m.useRef(tn),Xt=m.useState({}),It=Object(d.a)(Xt,2),Pt=It[1];function Kt(Gt){var Dt=typeof Gt=="function"?Gt(Vn.current):Gt;Dt!==Vn.current&&Tn(Dt,Vn.current),Vn.current=Dt,Pt({})}return[Vn.current,Kt]}var nt=function(Tn){var Vn=Tn.position,Xt=Tn.prefixCls,It=Tn.extra;if(!It)return null;var Pt,Kt=It;return Vn==="right"&&(Pt=Kt.right||!Kt.left&&Kt||null),Vn==="left"&&(Pt=Kt.left||null),Pt?m.createElement("div",{className:"".concat(Xt,"-extra-content")},Pt):null};function Ne(tn,Tn){var Vn,Xt=m.useContext(Dr),It=Xt.prefixCls,Pt=Xt.tabs,Kt=tn.className,Gt=tn.style,Dt=tn.id,lr=tn.animated,Ar=tn.activeKey,yr=tn.rtl,Mr=tn.extra,zn=tn.editable,Rn=tn.locale,di=tn.tabPosition,gn=tn.tabBarGutter,Br=tn.children,_n=tn.onTabClick,Gn=tn.onTabScroll,Zn=Object(m.useRef)(),ai=Object(m.useRef)(),Ei=Object(m.useRef)(),Ri=Object(m.useRef)(),Di=Ni(),oa=Object(d.a)(Di,2),ma=oa[0],aa=oa[1],ba=di==="top"||di==="bottom",Ai=Hi(0,function(li,ci){ba&&Gn&&Gn({direction:li>ci?"left":"right"})}),Dn=Object(d.a)(Ai,2),Bi=Dn[0],ha=Dn[1],ta=Hi(0,function(li,ci){!ba&&Gn&&Gn({direction:li>ci?"top":"bottom"})}),ra=Object(d.a)(ta,2),Ir=ra[0],Sr=ra[1],En=Object(m.useState)(0),fr=Object(d.a)(En,2),kr=fr[0],Vr=fr[1],un=Object(m.useState)(0),kn=Object(d.a)(un,2),_t=kn[0],Or=kn[1],Lr=Object(m.useState)(0),en=Object(d.a)(Lr,2),Sn=en[0],On=en[1],wn=Object(m.useState)(0),$n=Object(d.a)(wn,2),jn=$n[0],pi=$n[1],Mi=Object(m.useState)(null),yi=Object(d.a)(Mi,2),Oi=yi[0],zi=yi[1],ea=Object(m.useState)(null),Xi=Object(d.a)(ea,2),Wi=Xi[0],ji=Xi[1],Ji=Object(m.useState)(0),ca=Object(d.a)(Ji,2),Ca=ca[0],na=ca[1],Pa=Object(m.useState)(0),La=Object(d.a)(Pa,2),va=La[0],ga=La[1],Oa=I(new Map),Aa=Object(d.a)(Oa,2),Xa=Aa[0],_a=Aa[1],Va=G(Pt,Xa,kr),Pi="".concat(It,"-nav-operations-hidden"),io=0,oo=0;ba?yr?(io=0,oo=Math.max(0,kr-Oi)):(io=Math.min(0,Oi-kr),oo=0):(io=Math.min(0,Wi-_t),oo=0);function Qo(li){return li<io?[io,!1]:li>oo?[oo,!1]:[li,!0]}var mo=Object(m.useRef)(),To=Object(m.useState)(),ao=Object(d.a)(To,2),So=ao[0],bo=ao[1];function to(){bo(Date.now())}function Jo(){window.clearTimeout(mo.current)}xi(Zn,function(li,ci){var si=!1;function Ti(mi,vi){mi(function(Li){var ia=Qo(Li+vi),Ki=Object(d.a)(ia,2),fa=Ki[0],Ya=Ki[1];return si=Ya,fa})}if(ba){if(Oi>=kr)return si;Ti(ha,li)}else{if(Wi>=_t)return si;Ti(Sr,ci)}return Jo(),to(),si}),Object(m.useEffect)(function(){return Jo(),So&&(mo.current=window.setTimeout(function(){bo(0)},100)),Jo},[So]);function Uo(){var li=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ar,ci=Va.get(li);if(!ci)return;if(ba){var si=Bi;yr?ci.right<Bi?si=ci.right:ci.right+ci.width>Bi+Oi&&(si=ci.right+ci.width-Oi):ci.left<-Bi?si=-ci.left:ci.left+ci.width>-Bi+Oi&&(si=-(ci.left+ci.width-Oi)),Sr(0),ha(Qo(si)[0])}else{var Ti=Ir;ci.top<-Ir?Ti=-ci.top:ci.top+ci.height>-Ir+Wi&&(Ti=-(ci.top+ci.height-Wi)),ha(0),Sr(Qo(Ti)[0])}}var wo=j(Va,{width:Oi,height:Wi,left:Bi,top:Ir},{width:Sn,height:jn},{width:Ca,height:va},Object(o.a)(Object(o.a)({},tn),{},{tabs:Pt})),ts=Object(d.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=Pt.map(function(li){var ci=li.key;return m.createElement(B,{id:Dt,prefixCls:It,key:ci,rtl:yr,tab:li,closable:li.closable,editable:zn,active:ci===Ar,tabPosition:di,tabBarGutter:gn,renderWrapper:Br,removeAriaLabel:Rn==null?void 0:Rn.removeAriaLabel,ref:ma(ci),onClick:function(Ti){_n(ci,Ti)},onRemove:function(){aa(ci)},onFocus:function(){Uo(ci),to(),yr||(Zn.current.scrollLeft=0),Zn.current.scrollTop=0}})}),os=O(function(){var li,ci,si,Ti,mi,vi,Li,ia,Ki,fa=((li=Zn.current)===null||li===void 0?void 0:li.offsetWidth)||0,Ya=((ci=Zn.current)===null||ci===void 0?void 0:ci.offsetHeight)||0,xa=((si=Ri.current)===null||si===void 0?void 0:si.offsetWidth)||0,wa=((Ti=Ri.current)===null||Ti===void 0?void 0:Ti.offsetHeight)||0,Da=((mi=Ei.current)===null||mi===void 0?void 0:mi.offsetWidth)||0,ja=((vi=Ei.current)===null||vi===void 0?void 0:vi.offsetHeight)||0;zi(fa),ji(Ya),na(xa),ga(wa);var ko=(((Li=ai.current)===null||Li===void 0?void 0:Li.offsetWidth)||0)-xa,ro=(((ia=ai.current)===null||ia===void 0?void 0:ia.offsetHeight)||0)-wa;Vr(ko),Or(ro);var pa=(Ki=Ei.current)===null||Ki===void 0?void 0:Ki.className.includes(Pi);On(ko-(pa?0:Da)),pi(ro-(pa?0:ja)),_a(function(){var Ea=new Map;return Pt.forEach(function(Fa){var Ka=Fa.key,lo=ma(Ka).current;lo&&Ea.set(Ka,{width:lo.offsetWidth,height:lo.offsetHeight,left:lo.offsetLeft,top:lo.offsetTop})}),Ea})}),xo=Pt.slice(0,Ia),rs=Pt.slice(Oo+1),Ho=[].concat(Object(u.a)(xo),Object(u.a)(rs)),_o=Object(m.useState)(),uo=Object(d.a)(_o,2),Ha=uo[0],ft=uo[1],Tr=Va.get(Ar),qr=Object(m.useRef)();function Yr(){s.a.cancel(qr.current)}Object(m.useEffect)(function(){var li={};return Tr&&(ba?(yr?li.right=Tr.right:li.left=Tr.left,li.width=Tr.width):(li.top=Tr.top,li.height=Tr.height)),Yr(),qr.current=s()(function(){ft(li)}),Yr},[Tr,ba,yr]),Object(m.useEffect)(function(){Uo()},[Ar,Tr,Va,ba]),Object(m.useEffect)(function(){os()},[yr,gn,Ar,Pt.map(function(li){return li.key}).join("_")]);var Yn=!!Ho.length,dn="".concat(It,"-nav-wrap"),Gr,ri,rn,Hn;return ba?yr?(ri=Bi>0,Gr=Bi+Oi<kr):(Gr=Bi<0,ri=-Bi+Oi<kr):(rn=Ir<0,Hn=-Ir+Wi<_t),m.createElement("div",{ref:Tn,role:"tablist",className:t()("".concat(It,"-nav"),Kt),style:Gt,onKeyDown:function(){to()}},m.createElement(nt,{position:"left",extra:Mr,prefixCls:It}),m.createElement(S,{onResize:os},m.createElement("div",{className:t()(dn,(Vn={},Object(f.a)(Vn,"".concat(dn,"-ping-left"),Gr),Object(f.a)(Vn,"".concat(dn,"-ping-right"),ri),Object(f.a)(Vn,"".concat(dn,"-ping-top"),rn),Object(f.a)(Vn,"".concat(dn,"-ping-bottom"),Hn),Vn)),ref:Zn},m.createElement(S,{onResize:os},m.createElement("div",{ref:ai,className:"".concat(It,"-nav-list"),style:{transform:"translate(".concat(Bi,"px, ").concat(Ir,"px)"),transition:So?"none":void 0}},Io,m.createElement(qt,{ref:Ri,prefixCls:It,locale:Rn,editable:zn,style:{visibility:Yn?"hidden":null}}),m.createElement("div",{className:t()("".concat(It,"-ink-bar"),Object(f.a)({},"".concat(It,"-ink-bar-animated"),lr.inkBar)),style:Ha}))))),m.createElement(Nr,Object.assign({},tn,{ref:Ei,prefixCls:It,tabs:Ho,className:!Yn&&Pi})),m.createElement(nt,{position:"right",extra:Mr,prefixCls:It}))}var He=m.forwardRef(Ne);function Xe(tn){var Tn=tn.id,Vn=tn.activeKey,Xt=tn.animated,It=tn.tabPosition,Pt=tn.rtl,Kt=tn.destroyInactiveTabPane,Gt=m.useContext(Dr),Dt=Gt.prefixCls,lr=Gt.tabs,Ar=Xt.tabPane,yr=lr.findIndex(function(Mr){return Mr.key===Vn});return m.createElement("div",{className:t()("".concat(Dt,"-content-holder"))},m.createElement("div",{className:t()("".concat(Dt,"-content"),"".concat(Dt,"-content-").concat(It),Object(f.a)({},"".concat(Dt,"-content-animated"),Ar)),style:yr&&Ar?Object(f.a)({},Pt?"marginRight":"marginLeft","-".concat(yr,"00%")):null},lr.map(function(Mr){return m.cloneElement(Mr.node,{key:Mr.key,prefixCls:Dt,tabKey:Mr.key,id:Tn,animated:Ar,active:Mr.key===Vn,destroyInactiveTabPane:Kt})})))}function rt(tn){var Tn=tn.prefixCls,Vn=tn.forceRender,Xt=tn.className,It=tn.style,Pt=tn.id,Kt=tn.active,Gt=tn.animated,Dt=tn.destroyInactiveTabPane,lr=tn.tabKey,Ar=tn.children,yr=m.useState(Vn),Mr=Object(d.a)(yr,2),zn=Mr[0],Rn=Mr[1];m.useEffect(function(){Kt?Rn(!0):Dt&&Rn(!1)},[Kt,Dt]);var di={};return Kt||(Gt?(di.visibility="hidden",di.height=0,di.overflowY="hidden"):di.display="none"),m.createElement("div",{id:Pt&&"".concat(Pt,"-panel-").concat(lr),role:"tabpanel",tabIndex:Kt?0:-1,"aria-labelledby":Pt&&"".concat(Pt,"-tab-").concat(lr),"aria-hidden":!Kt,style:Object(o.a)(Object(o.a)({},di),It),className:t()("".concat(Tn,"-tabpane"),Kt&&"".concat(Tn,"-tabpane-active"),Xt)},(Kt||zn||Vn)&&Ar)}var Ze=0;function st(tn){return Object(a.a)(tn).map(function(Tn){if(m.isValidElement(Tn)){var Vn=Tn.key!==void 0?String(Tn.key):void 0;return Object(o.a)(Object(o.a)({key:Vn},Tn.props),{},{node:Tn})}return null}).filter(function(Tn){return Tn})}function xt(tn,Tn){var Vn,Xt=tn.id,It=tn.prefixCls,Pt=It===void 0?"rc-tabs":It,Kt=tn.className,Gt=tn.children,Dt=tn.direction,lr=tn.activeKey,Ar=tn.defaultActiveKey,yr=tn.editable,Mr=tn.animated,zn=tn.tabPosition,Rn=zn===void 0?"top":zn,di=tn.tabBarGutter,gn=tn.tabBarStyle,Br=tn.tabBarExtraContent,_n=tn.locale,Gn=tn.moreIcon,Zn=tn.moreTransitionName,ai=tn.destroyInactiveTabPane,Ei=tn.renderTabBar,Ri=tn.onChange,Di=tn.onTabClick,oa=tn.onTabScroll,ma=Object(l.a)(tn,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),aa=st(Gt),ba=Dt==="rtl",Ai;Mr===!1?Ai={inkBar:!1,tabPane:!1}:Ai=Object(o.a)({inkBar:!0,tabPane:!1},Mr!==!0?Mr:null);var Dn=Object(m.useState)(!1),Bi=Object(d.a)(Dn,2),ha=Bi[0],ta=Bi[1];Object(m.useEffect)(function(){ta(fi())},[]);var ra=Object(e.a)(function(){var jn;return(jn=aa[0])===null||jn===void 0?void 0:jn.key},{value:lr,defaultValue:Ar}),Ir=Object(d.a)(ra,2),Sr=Ir[0],En=Ir[1],fr=Object(m.useState)(function(){return aa.findIndex(function(jn){return jn.key===Sr})}),kr=Object(d.a)(fr,2),Vr=kr[0],un=kr[1];Object(m.useEffect)(function(){var jn=aa.findIndex(function(Mi){return Mi.key===Sr});if(jn===-1){var pi;jn=Math.max(0,Math.min(Vr,aa.length-1)),En((pi=aa[jn])===null||pi===void 0?void 0:pi.key)}un(jn)},[aa.map(function(jn){return jn.key}).join("_"),Sr,Vr]);var kn=Object(e.a)(null,{value:Xt}),_t=Object(d.a)(kn,2),Or=_t[0],Lr=_t[1],en=Rn;ha&&!["left","right"].includes(Rn)&&(en="top"),Object(m.useEffect)(function(){Xt||(Lr("rc-tabs-".concat(Ze)),Ze+=1)},[]);function Sn(jn,pi){Di==null||Di(jn,pi),En(jn),Ri==null||Ri(jn)}var On={id:Or,activeKey:Sr,animated:Ai,tabPosition:en,rtl:ba,mobile:ha},wn,$n=Object(o.a)(Object(o.a)({},On),{},{editable:yr,locale:_n,moreIcon:Gn,moreTransitionName:Zn,tabBarGutter:di,onTabClick:Sn,onTabScroll:oa,extra:Br,style:gn,panes:Gt});return Ei?wn=Ei($n,He):wn=m.createElement(He,Object.assign({},$n)),m.createElement(Dr.Provider,{value:{tabs:aa,prefixCls:Pt}},m.createElement("div",Object.assign({ref:Tn,id:Xt,className:t()(Pt,"".concat(Pt,"-").concat(en),(Vn={},Object(f.a)(Vn,"".concat(Pt,"-mobile"),ha),Object(f.a)(Vn,"".concat(Pt,"-editable"),yr),Object(f.a)(Vn,"".concat(Pt,"-rtl"),ba),Vn),Kt)},ma),wn,m.createElement(Xe,Object.assign({destroyInactiveTabPane:ai},On,{animated:Ai}))))}var pt=m.forwardRef(xt);pt.TabPane=rt;var hr=pt,Zr=hr,Xr=i("cCPh"),pn=i.n(Xr),gr=i("fNCr"),Kn=i.n(gr),Rr=i("V/uB"),Pn=i.n(Rr),an=i("uaoM"),Ur=i("H84U"),ii=function(tn,Tn){var Vn={};for(var Xt in tn)Object.prototype.hasOwnProperty.call(tn,Xt)&&Tn.indexOf(Xt)<0&&(Vn[Xt]=tn[Xt]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Xt=Object.getOwnPropertySymbols(tn);It<Xt.length;It++)Tn.indexOf(Xt[It])<0&&Object.prototype.propertyIsEnumerable.call(tn,Xt[It])&&(Vn[Xt[It]]=tn[Xt[It]]);return Vn};function _i(tn){var Tn,Vn=tn.type,Xt=tn.className,It=tn.size,Pt=tn.onEdit,Kt=tn.hideAdd,Gt=tn.centered,Dt=tn.addIcon,lr=ii(tn,["type","className","size","onEdit","hideAdd","centered","addIcon"]),Ar=lr.prefixCls,yr=m.useContext(Ur.b),Mr=yr.getPrefixCls,zn=yr.direction,Rn=Mr("tabs",Ar),di;return Vn==="editable-card"&&(di={onEdit:function(Br,_n){var Gn=_n.key,Zn=_n.event;Pt==null||Pt(Br==="add"?Zn:Gn,Br)},removeIcon:m.createElement(Pn.a,null),addIcon:Dt||m.createElement(Kn.a,null),showAdd:Kt!==!0}),Object(an.a)(!("onPrevClick"in lr)&&!("onNextClick"in lr),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),m.createElement(Zr,p()({direction:zn},lr,{moreTransitionName:"slide-up",className:t()(Xt,(Tn={},v()(Tn,"".concat(Rn,"-").concat(It),It),v()(Tn,"".concat(Rn,"-card"),["card","editable-card"].includes(Vn)),v()(Tn,"".concat(Rn,"-editable-card"),Vn==="editable-card"),v()(Tn,"".concat(Rn,"-centered"),Gt),Tn)),editable:di,moreIcon:m.createElement(pn.a,null),prefixCls:Rn}))}_i.TabPane=rt;var Gi=D.a=_i},ZTW2:function(R,D,i){},ZWlE:function(R,D,i){var y=i("bYtY"),p=i("4NO4");function x(f){v(f),m(f)}function v(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)})}R.exports=x},ZX9x:function(R,D,i){"use strict";i.d(D,"a",function(){return I}),i.d(D,"b",function(){return B});var y=i("lSNA"),p=i.n(y),x=i("pVnL"),v=i.n(x),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"),A=i.n(g),b=i("DFhj"),w=i.n(b),E=i("PKem"),C=i("H84U"),_=function(G){return!isNaN(parseFloat(G))&&isFinite(G)},T=_,S=function(k,G){var M={};for(var j in k)Object.prototype.hasOwnProperty.call(k,j)&&G.indexOf(j)<0&&(M[j]=k[j]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,j=Object.getOwnPropertySymbols(k);K<j.length;K++)G.indexOf(j[K])<0&&Object.prototype.propertyIsEnumerable.call(k,j[K])&&(M[j[K]]=k[j[K]]);return M},O={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},I=e.createContext({}),F=function(){var k=0;return function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return k+=1,"".concat(G).concat(k)}}(),P=function(k){n()(M,k);var G=a()(M);function M(j){var K;f()(this,M),K=G.call(this,j),K.responsiveHandler=function(Q){K.setState({below:Q.matches});var X=K.props.onBreakpoint,te=K.state.collapsed;X&&X(Q.matches),te!==Q.matches&&K.setCollapsed(Q.matches,"responsive")},K.setCollapsed=function(Q,X){"collapsed"in K.props||K.setState({collapsed:Q});var te=K.props.onCollapse;te&&te(Q,X)},K.toggle=function(){var Q=!K.state.collapsed;K.setCollapsed(Q,"clickTrigger")},K.renderSider=function(Q){var X,te=Q.getPrefixCls,$=K.props,le=$.prefixCls,re=$.className,Se=$.theme,Re=$.collapsible,Pe=$.reverseArrow,Je=$.trigger,Ge=$.style,ct=$.width,Ue=$.collapsedWidth,ae=$.zeroWidthTriggerStyle,lt=$.children,pe=S($,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),J=K.state,Y=J.collapsed,ee=J.below,fe=te("layout-sider",le),we=Object(s.default)(pe,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),Ce=Y?Ue:ct,_e=T(Ce)?"".concat(Ce,"px"):String(Ce),he=parseFloat(String(Ue||0))===0?e.createElement("span",{onClick:K.toggle,className:r()("".concat(fe,"-zero-width-trigger"),"".concat(fe,"-zero-width-trigger-").concat(Pe?"right":"left")),style:ae},Je||e.createElement(h.a,null)):null,ye={expanded:Pe?e.createElement(A.a,null):e.createElement(w.a,null),collapsed:Pe?e.createElement(w.a,null):e.createElement(A.a,null)},Le=Y?"collapsed":"expanded",tt=ye[Le],gt=Je!==null?he||e.createElement("div",{className:"".concat(fe,"-trigger"),onClick:K.toggle,style:{width:_e}},Je||tt):null,at=v()(v()({},Ge),{flex:"0 0 ".concat(_e),maxWidth:_e,minWidth:_e,width:_e}),Fe=r()(re,fe,"".concat(fe,"-").concat(Se),(X={},p()(X,"".concat(fe,"-collapsed"),!!Y),p()(X,"".concat(fe,"-has-trigger"),Re&&Je!==null&&!he),p()(X,"".concat(fe,"-below"),!!ee),p()(X,"".concat(fe,"-zero-width"),parseFloat(_e)===0),X));return e.createElement("aside",v()({className:Fe},we,{style:at}),e.createElement("div",{className:"".concat(fe,"-children")},lt),Re||ee&&he?gt:null)},K.uniqueId=F("ant-sider-");var z;typeof window!="undefined"&&(z=window.matchMedia),z&&j.breakpoint&&j.breakpoint in O&&(K.mql=z("(max-width: ".concat(O[j.breakpoint],")")));var V;return"collapsed"in j?V=j.collapsed:V=j.defaultCollapsed,K.state={collapsed:V,below:!1},K}return l()(M,[{key:"componentDidMount",value:function(){var K;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(K=this.props)===null||K===void 0||K.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var K,z;(K=this===null||this===void 0?void 0:this.mql)===null||K===void 0||K.removeListener(this.responsiveHandler),(z=this.props)===null||z===void 0||z.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var K=this.state.collapsed,z=this.props.collapsedWidth;return e.createElement(I.Provider,{value:{siderCollapsed:K,collapsedWidth:z}},e.createElement(C.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(K){return"collapsed"in K?{collapsed:K.collapsed}:null}}]),M}(e.Component);P.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var B=function(k){n()(M,k);var G=a()(M);function M(){return f()(this,M),G.apply(this,arguments)}return l()(M,[{key:"render",value:function(){var K=this;return e.createElement(E.a.Consumer,null,function(z){return e.createElement(P,v()({},z,K.props))})}}]),M}(e.Component)},ZYIC:function(R,D,i){var y=i("zM3Q"),p={seriesType:"lines",plan:y(),reset:function(x){var v=x.coordinateSystem,m=x.get("polyline"),f=x.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+=x.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=x.getLineCoords(u,n);m&&(t[r++]=c);for(var h=0;h<c;h++)s=v.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=x.getLineCoords(u,n),A=[];if(m)for(var b=0;b<c;b++)A.push(v.dataToPoint(n[b]));else{A[0]=v.dataToPoint(n[0]),A[1]=v.dataToPoint(n[1]);var w=g.get("lineStyle.curveness");+w&&(A[2]=[(A[0][0]+A[1][0])/2-(A[0][1]-A[1][1])*w,(A[0][1]+A[1][1])/2-(A[1][0]-A[0][0])*w])}o.setItemLayout(u,A)}}return{progress:d}}};R.exports=p},Ze12:function(R,D,i){var y=i("ItGF"),p=i("hOwI"),x=p.buildTransformer,v="___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[v]||(a[v]={}),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,A=(s>>1)%2;h.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",u[g]+":0",r[A]+":0",u[1-g]+":auto",r[1-A]+":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=[],A=0;A<4;A++){var b=t[A].getBoundingClientRect(),w=2*A,E=b.left,C=b.top;h.push(E,C),c=c&&s&&E===s[w]&&C===s[w+1],g.push(t[A].offsetLeft,t[A].offsetTop)}return c&&r?r:(a.srcCoords=h,a[u]=e?x(g,h):x(h,g))}function n(t){return t.nodeName.toUpperCase()==="CANVAS"}D.transformLocalCoord=f,D.transformCoordWithViewport=d,D.isCanvasEl=n},Znkb:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("ProS"),v=i("zTMp"),m=x.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(n,t,a,e){this.axisPointerClass&&v.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=v.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;R.exports=o},"Znn+":function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("9ama"),v=i.n(x)},ZqQs:function(R,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;x(l)})}function x(f){var d=f.type,l={number:"value",time:"time"};if(l[d]&&(f.axisType=l[d],delete f.type),v(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),v(n))})}function v(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)}R.exports=p},Zvw2:function(R,D,i){var y=i("bYtY"),p=i("hM6l"),x=function(m,f,d,l,o){p.call(this,m,f,d),this.type=l||"value",this.position=o||"bottom",this.orient=null};x.prototype={constructor:x,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(x,p);var v=x;R.exports=v},a7Wl:function(R,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(R,D){var i={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function y(p,x){if(p==="world"){var v=i[x.name];if(v){var m=x.center;m[0]=v[0],m[1]=v[1]}}}R.exports=y},aHsQ:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("6D9b"),v=i.n(x)},aKvl:function(R,D,i){var y=i("Sj9i"),p=y.quadraticProjectPoint;function x(v,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>v+e&&t>f+e&&t>l+e||t<v-e&&t<f-e&&t<l-e)return!1;var u=p(v,m,f,d,l,o,t,a,null);return u<=e/2}D.containStroke=x},aRTE:function(R,D){R.exports={L:1,M:0,Q:3,H:2}},aTJb:function(R,D,i){var y=i("bLfw");y.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(R,D,i){var y=i("3gBT"),p=i("ItGF"),x=i("bYtY"),v=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,A){var b=new h(y(),g,A);return t[b.id]=b,b}function u(g){if(g)g.dispose();else{for(var A in t)t.hasOwnProperty(A)&&t[A].dispose();t={}}return this}function r(g){return t[g]}function s(g,A){n[g]=A}function c(g){delete t[g]}var h=function(A,b,w){w=w||{},this.dom=b,this.id=A;var E=this,C=new m,_=w.renderer;if(o){if(!n.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");_="vml"}else(!_||!n[_])&&(_="canvas");var T=new n[_](b,C,w,A);this.storage=C,this.painter=T;var S=!p.node&&!p.worker?new l(T.getViewportRoot(),T.root):null;this.handler=new v(C,T,S,T.root),this.animation=new d({stage:{update:x.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var O=C.delFromStorage,I=C.addToStorage;C.delFromStorage=function(F){O.call(C,F),F&&F.removeSelfFromZr(E)},C.addToStorage=function(F){I.call(C,F),F.addSelfToZr(E)}};h.prototype={constructor:h,getId:function(){return this.id},add:function(A){this.storage.addRoot(A),this._needsRefresh=!0},remove:function(A){this.storage.delRoot(A),this._needsRefresh=!0},configLayer:function(A,b){this.painter.configLayer&&this.painter.configLayer(A,b),this._needsRefresh=!0},setBackgroundColor:function(A){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(A),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var A;this._needsRefresh&&(A=!0,this.refreshImmediately()),this._needsRefreshHover&&(A=!0,this.refreshHoverImmediately()),A&&this.trigger("rendered")},addHover:function(A,b){if(this.painter.addHover){var w=this.painter.addHover(A,b);return this.refreshHover(),w}},removeHover:function(A){this.painter.removeHover&&(this.painter.removeHover(A),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(A){A=A||{},this.painter.resize(A.width,A.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(A,b){return this.painter.pathToImage(A,b)},setCursorStyle:function(A){this.handler.setCursorStyle(A)},findHover:function(A,b){return this.handler.findHover(A,b)},on:function(A,b,w){this.handler.on(A,b,w)},off:function(A,b){this.handler.off(A,b)},trigger:function(A,b){this.handler.trigger(A,b)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,c(this.id)}},D.version=a,D.init=e,D.dispose=u,D.getInstance=r,D.registerPainter=s},aX7z:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=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(C,_){var T=C.type,S=_.getMin(),O=_.getMax(),I=C.getExtent(),F,P,B;T==="ordinal"?F=_.getCategories().length:(P=_.get("boundaryGap"),x.isArray(P)||(P=[P||0,P||0]),typeof P[0]=="boolean"&&(P=[0,0]),P[0]=d.parsePercent(P[0],1),P[1]=d.parsePercent(P[1],1),B=I[1]-I[0]||Math.abs(I[0])),S==="dataMin"?S=I[0]:typeof S=="function"&&(S=S({min:I[0],max:I[1]})),O==="dataMax"?O=I[1]:typeof O=="function"&&(O=O({min:I[0],max:I[1]}));var k=S!=null,G=O!=null;S==null&&(S=T==="ordinal"?F?0:NaN:I[0]-P[0]*B),O==null&&(O=T==="ordinal"?F?F-1:NaN:I[1]+P[1]*B),(S==null||!isFinite(S))&&(S=NaN),(O==null||!isFinite(O))&&(O=NaN),C.setBlank(x.eqNaN(S)||x.eqNaN(O)||T==="ordinal"&&!C.getOrdinalMeta().categories.length),_.getNeedCrossZero()&&(S>0&&O>0&&!k&&(S=0),S<0&&O<0&&!G&&(O=0));var M=_.ecModel;if(M&&T==="time"){var j=o("bar",M),K;if(x.each(j,function(Q){K|=Q.getBaseAxis()===_.axis}),K){var z=n(j),V=u(S,O,_,z);S=V.min,O=V.max}}return{extent:[S,O],fixMin:k,fixMax:G}}function u(C,_,T,S){var O=T.axis.getExtent(),I=O[1]-O[0],F=t(S,T.axis);if(F===void 0)return{min:C,max:_};var P=Infinity;x.each(F,function(K){P=Math.min(K.offset,P)});var B=-Infinity;x.each(F,function(K){B=Math.max(K.offset+K.width,B)}),P=Math.abs(P),B=Math.abs(B);var k=P+B,G=_-C,M=1-(P+B)/I,j=G/M-G;return _+=j*(B/k),C-=j*(P/k),{min:C,max:_}}function r(C,_){var T=e(C,_),S=T.extent,O=_.get("splitNumber");C.type==="log"&&(C.base=_.get("logBase"));var I=C.type;C.setExtent(S[0],S[1]),C.niceExtent({splitNumber:O,fixMin:T.fixMin,fixMax:T.fixMax,minInterval:I==="interval"||I==="time"?_.get("minInterval"):null,maxInterval:I==="interval"||I==="time"?_.get("maxInterval"):null});var F=_.get("interval");F!=null&&(C.setInterval&&C.setInterval(F))}function s(C,_){if(_=_||C.get("type"),_)switch(_){case"category":return new v(C.getOrdinalMeta?C.getOrdinalMeta():C.getCategories(),[Infinity,-Infinity]);case"value":return new m;default:return(f.getClass(_)||m).create(C)}}function c(C){var _=C.scale.getExtent(),T=_[0],S=_[1];return!(T>0&&S>0||T<0&&S<0)}function h(C){var _=C.getLabelModel().get("formatter"),T=C.type==="category"?C.scale.getExtent()[0]:null;return typeof _=="string"?(_=function(S){return function(O){return O=C.scale.getLabel(O),S.replace("{value}",O!=null?O:"")}}(_),_):typeof _=="function"?function(S,O){return T!=null&&(O=S-T),_(g(C,S),O)}:function(S){return C.scale.getLabel(S)}}function g(C,_){return C.type==="category"?C.scale.getLabel(_):_}function A(C){var _=C.model,T=C.scale;if(!_.get("axisLabel.show")||T.isBlank())return;var S=C.type==="category",O,I,F=T.getExtent();S?I=T.count():(O=T.getTicks(),I=O.length);var P=C.getLabelModel(),B=h(C),k,G=1;I>40&&(G=Math.ceil(I/40));for(var M=0;M<I;M+=G){var j=O?O[M]:F[0]+M,K=B(j),z=P.getTextRect(K),V=b(z,P.get("rotate")||0);k?k.union(V):k=V}return k}function b(C,_){var T=_*Math.PI/180,S=C.plain(),O=S.width,I=S.height,F=O*Math.cos(T)+I*Math.sin(T),P=O*Math.sin(T)+I*Math.cos(T),B=new a(S.x,S.y,F,P);return B}function w(C){var _=C.get("interval");return _==null?"auto":_}function E(C){return C.type==="category"&&w(C.getLabelModel())===0}D.getScaleExtent=e,D.niceScaleExtent=r,D.createScaleByModel=s,D.ifAxisCrossZero=c,D.makeLabelFormatter=h,D.getAxisRawValue=g,D.estimateLabelUnionRect=A,D.getOptionCategoryInterval=w,D.shouldShowAllLabels=E},adU4:function(R,D,i){var y=i("y1pI"),p=Array.prototype,x=p.splice;function v(m){var f=this.__data__,d=y(f,m);if(d<0)return!1;var l=f.length-1;return d==l?f.pop():x.call(f,d,1),--this.size,!0}R.exports=v},"af/B":function(R,D,i){var y=i("bYtY"),p=y.each,x=y.map,v=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(K,z,V,Q){this.ecInstance=K,this.api=z,this.unfinished;var V=this._dataProcessorHandlers=V.slice(),Q=this._visualHandlers=Q.slice();this._allHandlers=V.concat(Q),this._stageTaskMap=m()}var s=r.prototype;s.restoreData=function(K,z){K.restoreData(z),this._stageTaskMap.each(function(V){var Q=V.overallTask;Q&&Q.dirty()})},s.getPerformArgs=function(K,z){if(!K.__pipeline)return;var V=this._pipelineMap.get(K.__pipeline.id),Q=V.context,X=!z&&V.progressiveEnabled&&(!Q||Q.progressiveRender)&&K.__idxInPipeline>V.blockIndex,te=X?V.step:null,$=Q&&Q.modDataCount,le=$!=null?Math.ceil($/te):null;return{step:te,modBy:le,modDataCount:$}},s.getPipeline=function(K){return this._pipelineMap.get(K)},s.updateStreamModes=function(K,z){var V=this._pipelineMap.get(K.uid),Q=K.getData(),X=Q.count(),te=V.progressiveEnabled&&z.incrementalPrepareRender&&X>=V.threshold,$=K.get("large")&&X>=K.get("largeThreshold"),le=K.get("progressiveChunkMode")==="mod"?X:null;K.pipelineContext=V.context={progressiveRender:te,modDataCount:le,large:$}},s.restorePipelines=function(K){var z=this,V=z._pipelineMap=m();K.eachSeries(function(Q){var X=Q.getProgressive(),te=Q.uid;V.set(te,{id:te,head:null,tail:null,threshold:Q.getProgressiveThreshold(),progressiveEnabled:X&&!(Q.preventIncremental&&Q.preventIncremental()),blockIndex:-1,step:Math.round(X||700),count:0}),F(z,Q,Q.dataTask)})},s.prepareStageTasks=function(){var K=this._stageTaskMap,z=this.ecInstance.getModel(),V=this.api;p(this._allHandlers,function(Q){var X=K.get(Q.uid)||K.set(Q.uid,[]);Q.reset&&g(this,Q,X,z,V),Q.overallReset&&A(this,Q,X,z,V)},this)},s.prepareView=function(K,z,V,Q){var X=K.renderTask,te=X.context;te.model=z,te.ecModel=V,te.api=Q,X.__block=!K.incrementalPrepareRender,F(this,z,X)},s.performDataProcessorTasks=function(K,z){c(this,this._dataProcessorHandlers,K,z,{block:!0})},s.performVisualTasks=function(K,z,V){c(this,this._visualHandlers,K,z,V)};function c(K,z,V,Q,X){X=X||{};var te;p(z,function(le,re){if(X.visualType&&X.visualType!==le.visualType)return;var Se=K._stageTaskMap.get(le.uid),Re=Se.seriesTaskMap,Pe=Se.overallTask;if(Pe){var Je,Ge=Pe.agentStubMap;Ge.each(function(Ue){$(X,Ue)&&(Ue.dirty(),Je=!0)}),Je&&Pe.dirty(),h(Pe,Q);var ct=K.getPerformArgs(Pe,X.block);Ge.each(function(Ue){Ue.perform(ct)}),te|=Pe.perform(ct)}else Re&&Re.each(function(Ue,ae){$(X,Ue)&&Ue.dirty();var lt=K.getPerformArgs(Ue,X.block);lt.skip=!le.performRawSeries&&V.isSeriesFiltered(Ue.context.model),h(Ue,Q),te|=Ue.perform(lt)})});function $(le,re){return le.setDirty&&(!le.dirtyMap||le.dirtyMap.get(re.__pipeline.id))}K.unfinished|=te}s.performSeriesTasks=function(K){var z;K.eachSeries(function(V){z|=V.dataTask.perform()}),this.unfinished|=z},s.plan=function(){this._pipelineMap.each(function(K){var z=K.tail;do{if(z.__block){K.blockIndex=z.__idxInPipeline;break}z=z.getUpstream()}while(z)})};var h=s.updatePayload=function(K,z){z!=="remain"&&(K.context.payload=z)};function g(K,z,V,Q,X){var te=V.seriesTaskMap||(V.seriesTaskMap=m()),$=z.seriesType,le=z.getTargetSeries;z.createOnAllSeries?Q.eachRawSeries(re):$?Q.eachRawSeriesByType($,re):le&&le(Q,X).each(re);function re(Re){var Pe=Re.uid,Je=te.get(Pe)||te.set(Pe,l({plan:_,reset:T,count:I}));Je.context={model:Re,ecModel:Q,api:X,useClearVisual:z.isVisual&&!z.isLayout,plan:z.plan,reset:z.reset,scheduler:K},F(K,Re,Je)}var Se=K._pipelineMap;te.each(function(Re,Pe){Se.get(Pe)||(Re.dispose(),te.removeKey(Pe))})}function A(K,z,V,Q,X){var te=V.overallTask=V.overallTask||l({reset:b});te.context={ecModel:Q,api:X,overallReset:z.overallReset,scheduler:K};var $=te.agentStubMap=te.agentStubMap||m(),le=z.seriesType,re=z.getTargetSeries,Se=!0,Re=z.modifyOutputEnd;le?Q.eachRawSeriesByType(le,Pe):re?re(Q,X).each(Pe):(Se=!1,p(Q.getSeries(),Pe));function Pe(Ge){var ct=Ge.uid,Ue=$.get(ct);Ue||(Ue=$.set(ct,l({reset:w,onDirty:C})),te.dirty()),Ue.context={model:Ge,overallProgress:Se,modifyOutputEnd:Re},Ue.agent=te,Ue.__block=Se,F(K,Ge,Ue)}var Je=K._pipelineMap;$.each(function(Ge,ct){Je.get(ct)||(Ge.dispose(),te.dirty(),$.removeKey(ct))})}function b(K){K.overallReset(K.ecModel,K.api,K.payload)}function w(K,z){return K.overallProgress&&E}function E(){this.agent.dirty(),this.getDownstream().dirty()}function C(){this.agent&&this.agent.dirty()}function _(K){return K.plan&&K.plan(K.model,K.ecModel,K.api,K.payload)}function T(K){K.useClearVisual&&K.data.clearAllVisual();var z=K.resetDefines=u(K.reset(K.model,K.ecModel,K.api,K.payload));return z.length>1?x(z,function(V,Q){return O(Q)}):S}var S=O(0);function O(K){return function(z,V){var Q=V.data,X=V.resetDefines[K];if(X&&X.dataEach)for(var te=z.start;te<z.end;te++)X.dataEach(Q,te);else X&&X.progress&&X.progress(z,Q)}}function I(K){return K.data.count()}function F(K,z,V){var Q=z.uid,X=K._pipelineMap.get(Q);!X.head&&(X.head=V),X.tail&&X.tail.pipe(V),X.tail=V,V.__idxInPipeline=X.count++,V.__pipeline=X}r.wrapStageHandler=function(K,z){return v(K)&&(K={overallReset:K,seriesType:P(K)}),K.uid=n("stageHandler"),z&&(K.visualType=z),K};function P(K){G=null;try{K(B,k)}catch(z){}return G}var B={},k={},G;M(B,t),M(k,a),B.eachSeriesByType=B.eachRawSeriesByType=function(K){G=K},B.eachComponent=function(K){K.mainType==="series"&&K.subType&&(G=K.subType)};function M(K,z){for(var V in z.prototype)K[V]=f}var j=r;R.exports=j},akwb:function(R,D,i){var y=i("RSch"),p=i("bYtY"),x=i("D9ME"),v=i("QBsz");function m(l,o,n){x.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+=v.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)}v.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,x);var d=m;R.exports=d},apAg:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="SearchOutlined";var n=v.forwardRef(o);D.default=n},as94:function(R,D,i){var y=i("7aKB"),p=i("3LNs"),x=i("IwbS"),v=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),A=g.getExtent(),b;b=c["dataTo"+y.capitalFirst(c.dim)](e);var w=r.get("type");if(w&&w!=="none"){var E=v.buildElStyle(r),C=n[w](c,h,b,A,E);C.style=E,a.graphicKey=C.type,a.pointer=C}var _=r.get("label.margin"),T=o(e,u,r,h,_);v.buildLabelElOption(a,u,r,s,T)}});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 A=r.getRadiusAxis().getExtent(),b,w,E;if(c.dim==="radius"){var C=m.create();m.rotate(C,C,g),m.translate(C,C,[r.cx,r.cy]),b=x.applyTransform([h,-s],C);var _=e.getModel("axisLabel").get("rotate")||0,T=f.innerTextLayout(g,_*Math.PI/180,-1);w=T.textAlign,E=T.textVerticalAlign}else{var S=A[1];b=r.coordToPoint([S+s,h]);var O=r.cx,I=r.cy;w=Math.abs(b[0]-O)/S<.3?"center":b[0]>O?"left":"right",E=Math.abs(b[1]-I)/S<.3?"middle":b[1]>I?"top":"bottom"}return{position:b,align:w,verticalAlign:E}}var n={line:function(a,e,u,r,s){return a.dim==="angle"?{type:"Line",shape:v.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:v.makeSectorShape(e.cx,e.cy,r[0],r[1],(-u-c/2)*h,(-u+c/2)*h)}:{type:"Sector",shape:v.makeSectorShape(e.cx,e.cy,u-c/2,u+c/2,0,Math.PI*2)}}};d.registerAxisPointerClass("PolarAxisPointer",l);var t=l;R.exports=t},b56q:function(R,D,i){},b80T:function(R,D,i){var y=i("UNi/"),p=i("03A+"),x=i("Z0cm"),v=i("DSRE"),m=i("wJg7"),f=i("c6wG"),d=Object.prototype,l=d.hasOwnProperty;function o(n,t){var a=x(n),e=!a&&p(n),u=!a&&!e&&v(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}R.exports=o},b80e:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="DoubleLeftOutlined";var n=v.forwardRef(o);D.default=n},b9oc:function(R,D,i){var y=i("bYtY"),p=y.each,x="\0_ec_hist_store";function v(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[x]=null}function d(o){return l(o).length}function l(o){var n=o[x];return n||(n=o[x]=[{}]),n}D.push=v,D.pop=m,D.clear=f,D.count=d},bBKM:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("ProS"),v=i("bYtY"),m=i("+rIm"),f=i("IwbS"),d=["axisLine","axisTickLabel","axisName"],l=x.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=v.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});v.each(a,function(e){v.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"),A=s.get("color");g=v.isArray(g)?g:[g],A=v.isArray(A)?A:[A];var b=[],w=[];function E(j,K,z){var V=z%K.length;return j[V]=j[V]||[],V}if(a==="circle")for(var C=t[0].getTicksCoords(),_=n.cx,T=n.cy,S=0;S<C.length;S++){if(c){var O=E(b,g,S);b[O].push(new f.Circle({shape:{cx:_,cy:T,r:C[S].coord}}))}if(h&&S<C.length-1){var O=E(w,A,S);w[O].push(new f.Ring({shape:{cx:_,cy:T,r0:C[S].coord,r:C[S+1].coord}}))}}else for(var I,F=v.map(t,function(j,K){var z=j.getTicksCoords();return I=I==null?z.length-1:Math.min(z.length-1,I),v.map(z,function(V){return n.coordToPoint(V.coord,K)})}),P=[],S=0;S<=I;S++){for(var B=[],k=0;k<t.length;k++)B.push(F[k][S]);if(B[0]&&B.push(B[0].slice()),c){var O=E(b,g,S);b[O].push(new f.Polyline({shape:{points:B}}))}if(h&&P){var O=E(w,A,S-1);w[O].push(new f.Polygon({shape:{points:B.concat(P)}}))}P=B.slice().reverse()}var G=r.getLineStyle(),M=s.getAreaStyle();v.each(w,function(j,K){this.group.add(f.mergePath(j,{style:v.defaults({stroke:"none",fill:A[K%A.length]},M),silent:!0}))},this),v.each(b,function(j,K){this.group.add(f.mergePath(j,{style:v.defaults({fill:"none",stroke:g[K%g.length]},G),silent:!0}))},this)}});R.exports=l},bBL8:function(R,D,i){var y=i("ProS");i("LPzL"),i("rfSb"),i("JVwQ");var p=i("UnoB"),x=i("cbJ4"),v=i("0/Rx");y.registerLayout(p),y.registerVisual(x),y.registerProcessor(v("themeRiver"))},bE4E:function(R,D,i){},bE4q:function(R,D,i){"use strict";var y=i("pVnL"),p=i.n(y),x=i("lSNA"),v=i.n(x),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(P,B){var k={};for(var G in P)Object.prototype.hasOwnProperty.call(P,G)&&B.indexOf(G)<0&&(k[G]=P[G]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,G=Object.getOwnPropertySymbols(P);M<G.length;M++)B.indexOf(G[M])<0&&Object.prototype.propertyIsEnumerable.call(P,G[M])&&(k[G[M]]=P[G[M]]);return k},s=function(B){var k=B.prefixCls,G=B.separator,M=G===void 0?"/":G,j=B.children,K=B.overlay,z=B.dropdownProps,V=r(B,["prefixCls","separator","children","overlay","dropdownProps"]),Q=d.useContext(u.b),X=Q.getPrefixCls,te=X("breadcrumb",k),$=function(Se){return K?d.createElement(e.a,p()({overlay:K,placement:"bottomCenter"},z),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),j):le=d.createElement("span",p()({className:"".concat(te,"-link")},V),j),le=$(le),j?d.createElement("span",null,le,M&&M!==""&&d.createElement("span",{className:"".concat(te,"-separator")},M)):null};s.__ANT_BREADCRUMB_ITEM=!0;var c=s,h=function(B){var k=B.children,G=d.useContext(u.b),M=G.getPrefixCls,j=M("breadcrumb");return d.createElement("span",{className:"".concat(j,"-separator")},k||"/")};h.__ANT_BREADCRUMB_SEPARATOR=!0;var g=h,A=i("BvKs"),b=i("uaoM"),w=i("0n0R"),E=function(P,B){var k={};for(var G in P)Object.prototype.hasOwnProperty.call(P,G)&&B.indexOf(G)<0&&(k[G]=P[G]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,G=Object.getOwnPropertySymbols(P);M<G.length;M++)B.indexOf(G[M])<0&&Object.prototype.propertyIsEnumerable.call(P,G[M])&&(k[G[M]]=P[G[M]]);return k};function C(P,B){if(!P.breadcrumbName)return null;var k=Object.keys(B).join("|"),G=P.breadcrumbName.replace(new RegExp(":(".concat(k,")"),"g"),function(M,j){return B[j]||M});return G}function _(P,B,k,G){var M=k.indexOf(P)===k.length-1,j=C(P,B);return M?d.createElement("span",null,j):d.createElement("a",{href:"#/".concat(G.join("/"))},j)}var T=function(B,k){return B=(B||"").replace(/^\//,""),Object.keys(k).forEach(function(G){B=B.replace(":".concat(G),k[G])}),B},S=function(B){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",G=arguments.length>2?arguments[2]:void 0,M=f()(B),j=T(k,G);return j&&M.push(j),M},O=function(B){var k=B.prefixCls,G=B.separator,M=G===void 0?"/":G,j=B.style,K=B.className,z=B.routes,V=B.children,Q=B.itemRender,X=Q===void 0?_:Q,te=B.params,$=te===void 0?{}:te,le=E(B,["prefixCls","separator","style","className","routes","children","itemRender","params"]),re=d.useContext(u.b),Se=re.getPrefixCls,Re=re.direction,Pe,Je=Se("breadcrumb",k);if(z&&z.length>0){var Ge=[];Pe=z.map(function(Ue){var ae=T(Ue.path,$);ae&&Ge.push(ae);var lt;return Ue.children&&Ue.children.length&&(lt=d.createElement(A.a,null,Ue.children.map(function(pe){return d.createElement(A.a.Item,{key:pe.path||pe.breadcrumbName},X(pe,$,z,S(Ge,pe.path,$)))}))),d.createElement(c,{overlay:lt,separator:M,key:ae||Ue.breadcrumbName},X(Ue,$,z,Ge))})}else V&&(Pe=Object(n.a)(V).map(function(Ue,ae){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:M,key:ae}))}));var ct=o()(K,Je,v()({},"".concat(Je,"-rtl"),Re==="rtl"));return d.createElement("div",p()({className:ct,style:j},le),Pe)};O.Item=c,O.Separator=g;var I=O,F=D.a=I},bKJz:function(R,D,i){},bLfw:function(R,D,i){var y=i("bYtY"),p=i("Qxkt"),x=i("iRjW"),v=i("Yl7c"),m=v.enableClassManagement,f=v.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=x.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={},A=s.length-1;A>=0;A--)g=y.merge(g,s[A],!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}),x.enableSubTypeDefaulter(a),x.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;R.exports=u},bMXI:function(R,D,i){var y=i("bYtY"),p=i("QBsz"),x=i("Fofx"),v=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 v(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 v(t,a,e,u)},transformTo:function(t,a,e,u){var r=this.getBoundingRect(),s=this._rawTransformable;s.transform=r.calculateTransform(new v(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(),x.copy(this.transform||(this.transform=[]),a.transform||x.create()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],x.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,a=this._rawTransformable;return{roamTransform:t?y.slice(t):x.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;R.exports=n},bNin:function(R,D,i){var y=i("bYtY"),p=i("IwbS"),x=i("FBjb"),v=i("Itpr"),m=v.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(_,T){var S=T.childPoints,O=S.length,I=T.parentPoint,F=S[0],P=S[O-1];if(O===1){_.moveTo(I[0],I[1]),_.lineTo(F[0],F[1]);return}var B=T.orient,k=B==="TB"||B==="BT"?0:1,G=1-k,M=s(T.forkPosition,1),j=[];j[k]=I[k],j[G]=I[G]+(P[G]-I[G])*M,_.moveTo(I[0],I[1]),_.lineTo(j[0],j[1]),_.moveTo(F[0],F[1]),j[k]=F[k],_.lineTo(j[0],j[1]),j[k]=P[k],_.lineTo(j[0],j[1]),_.lineTo(P[0],P[1]);for(var K=1;K<O-1;K++){var z=S[K];_.moveTo(z[0],z[1]),j[k]=z[k],_.lineTo(j[0],j[1])}}}),h=f.extendChartView({type:"tree",init:function(_,T){this._oldTree,this._mainGroup=new p.Group,this._controller=new n(T.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(_,T,S,O){var I=_.getData(),F=_.layoutInfo,P=this._mainGroup,B=_.get("layout");B==="radial"?P.attr("position",[F.x+F.width/2,F.y+F.height/2]):P.attr("position",[F.x,F.y]),this._updateViewCoordSys(_,F,B),this._updateController(_,T,S);var k=this._data,G={expandAndCollapse:_.get("expandAndCollapse"),layout:B,edgeShape:_.get("edgeShape"),edgeForkPosition:_.get("edgeForkPosition"),orient:_.getOrient(),curvature:_.get("lineStyle.curveness"),symbolRotate:_.get("symbolRotate"),symbolOffset:_.get("symbolOffset"),hoverAnimation:_.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};I.diff(k).add(function(M){g(I,M)&&b(I,M,null,P,_,G)}).update(function(M,j){var K=k.getItemGraphicEl(j);if(!g(I,M)){K&&E(k,j,K,P,_,G);return}b(I,M,K,P,_,G)}).remove(function(M){var j=k.getItemGraphicEl(M);j&&E(k,M,j,P,_,G)}).execute(),this._nodeScaleRatio=_.get("nodeScaleRatio"),this._updateNodeAndLinkScale(_),G.expandAndCollapse===!0&&I.eachItemGraphicEl(function(M,j){M.off("click").on("click",function(){S.dispatchAction({type:"treeExpandAndCollapse",seriesId:_.id,dataIndex:j})})}),this._data=I},_updateViewCoordSys:function(_){var T=_.getData(),S=[];T.each(function(k){var G=T.getItemLayout(k);G&&!isNaN(G.x)&&!isNaN(G.y)&&S.push([+G.x,+G.y])});var O=[],I=[];d.fromPoints(S,O,I);var F=this._min,P=this._max;I[0]-O[0]===0&&(O[0]=F?F[0]:O[0]-1,I[0]=P?P[0]:I[0]+1),I[1]-O[1]===0&&(O[1]=F?F[1]:O[1]-1,I[1]=P?P[1]:I[1]+1);var B=_.coordinateSystem=new l;B.zoomLimit=_.get("scaleLimit"),B.setBoundingRect(O[0],O[1],I[0]-O[0],I[1]-O[1]),B.setCenter(_.get("center")),B.setZoom(_.get("zoom")),this.group.attr({position:B.position,scale:B.scale}),this._viewCoordSys=B,this._min=O,this._max=I},_updateController:function(_,T,S){var O=this._controller,I=this._controllerHost,F=this.group;O.setPointerChecker(function(P,B,k){var G=F.getBoundingRect();return G.applyTransform(F.transform),G.contain(B,k)&&!a(P,S,_)}),O.enable(_.get("roam")),I.zoomLimit=_.get("scaleLimit"),I.zoom=_.coordinateSystem.getZoom(),O.off("pan").off("zoom").on("pan",function(P){o.updateViewOnPan(I,P.dx,P.dy),S.dispatchAction({seriesId:_.id,type:"treeRoam",dx:P.dx,dy:P.dy})},this).on("zoom",function(P){o.updateViewOnZoom(I,P.scale,P.originX,P.originY),S.dispatchAction({seriesId:_.id,type:"treeRoam",zoom:P.scale,originX:P.originX,originY:P.originY}),this._updateNodeAndLinkScale(_)},this)},_updateNodeAndLinkScale:function(_){var T=_.getData(),S=this._getNodeGlobalScale(_),O=[S,S];T.eachItemGraphicEl(function(I,F){I.attr("scale",O)})},_getNodeGlobalScale:function(_){var T=_.coordinateSystem;if(T.type!=="view")return 1;var S=this._nodeScaleRatio,O=T.scale,I=O&&O[0]||1,F=T.getZoom(),P=(F-1)*S+1;return P/I},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function g(_,T){var S=_.getItemLayout(T);return S&&!isNaN(S.x)&&!isNaN(S.y)&&_.getItemVisual(T,"symbol")!=="none"}function A(_,T,S){return S.itemModel=T,S.itemStyle=T.getModel("itemStyle").getItemStyle(),S.hoverItemStyle=T.getModel("emphasis.itemStyle").getItemStyle(),S.lineStyle=T.getModel("lineStyle").getLineStyle(),S.labelModel=T.getModel("label"),S.hoverLabelModel=T.getModel("emphasis.label"),_.isExpand===!1&&_.children.length!==0?S.symbolInnerColor=S.itemStyle.fill:S.symbolInnerColor="#fff",S}function b(_,T,S,O,I,F){var P=!S,B=_.tree.getNodeByDataIndex(T),k=B.getModel(),F=A(B,k,F),G=_.tree.root,M=B.parentNode===G?B:B.parentNode||B,j=_.getItemGraphicEl(M.dataIndex),K=M.getLayout(),z=j?{x:j.position[0],y:j.position[1],rawX:j.__radialOldRawX,rawY:j.__radialOldRawY}:K,V=B.getLayout();P?(S=new x(_,T,F),S.attr("position",[z.x,z.y])):S.updateData(_,T,F),S.__radialOldRawX=S.__radialRawX,S.__radialOldRawY=S.__radialRawY,S.__radialRawX=V.rawX,S.__radialRawY=V.rawY,O.add(S),_.setItemGraphicEl(T,S),p.updateProps(S,{position:[V.x,V.y]},I);var Q=S.getSymbolPath();if(F.layout==="radial"){var X=G.children[0],te=X.getLayout(),$=X.children.length,le,re;if(V.x===te.x&&B.isExpand===!0){var Se={};Se.x=(X.children[0].getLayout().x+X.children[$-1].getLayout().x)/2,Se.y=(X.children[0].getLayout().y+X.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(I,B,G,S,z,K,V,O,F)}function w(_,T,S,O,I,F,P,B,k){var G=k.edgeShape,M=O.__edge;if(G==="curve")T.parentNode&&T.parentNode!==S&&(M||(M=O.__edge=new p.BezierCurve({shape:C(k,I,I),style:y.defaults({opacity:0,strokeNoScale:!0},k.lineStyle)})),p.updateProps(M,{shape:C(k,F,P),style:{opacity:1}},_));else if(G==="polyline"&&(k.layout==="orthogonal"&&(T!==S&&T.children&&T.children.length!==0&&T.isExpand===!0))){for(var j=T.children,K=[],z=0;z<j.length;z++){var V=j[z].getLayout();K.push([V.x,V.y])}M||(M=O.__edge=new c({shape:{parentPoint:[P.x,P.y],childPoints:[[P.x,P.y]],orient:k.orient,forkPosition:k.edgeForkPosition},style:y.defaults({opacity:0,strokeNoScale:!0},k.lineStyle)})),p.updateProps(M,{shape:{parentPoint:[P.x,P.y],childPoints:K},style:{opacity:1}},_)}B.add(M)}function E(_,T,S,O,I,F){for(var P=_.tree.getNodeByDataIndex(T),B=_.tree.root,k=P.getModel(),F=A(P,k,F),G=P.parentNode===B?P:P.parentNode||P,M=F.edgeShape,j;j=G.getLayout(),j==null;)G=G.parentNode===B?G:G.parentNode||G;p.updateProps(S,{position:[j.x+1,j.y+1]},I,function(){O.remove(S),_.setItemGraphicEl(T,null)}),S.fadeOut(null,{keepLabel:!0});var K=_.getItemGraphicEl(G.dataIndex),z=K.__edge,V=S.__edge||(G.isExpand===!1||G.children.length===1?z:void 0),M=F.edgeShape;V&&(M==="curve"?p.updateProps(V,{shape:C(F,j,j),style:{opacity:0}},I,function(){O.remove(V)}):M==="polyline"&&F.layout==="orthogonal"&&p.updateProps(V,{shape:{parentPoint:[j.x,j.y],childPoints:[[j.x,j.y]]},style:{opacity:0}},I,function(){O.remove(V)}))}function C(_,T,S){var O,I,F,P,B=_.orient,k,G,M,j;if(_.layout==="radial"){k=T.rawX,M=T.rawY,G=S.rawX,j=S.rawY;var K=m(k,M),z=m(k,M+(j-M)*_.curvature),V=m(G,j+(M-j)*_.curvature),Q=m(G,j);return{x1:K.x,y1:K.y,x2:Q.x,y2:Q.y,cpx1:z.x,cpy1:z.y,cpx2:V.x,cpy2:V.y}}else k=T.x,M=T.y,G=S.x,j=S.y,(B==="LR"||B==="RL")&&(O=k+(G-k)*_.curvature,I=M,F=G+(k-G)*_.curvature,P=j),(B==="TB"||B==="BT")&&(O=k,I=M+(j-M)*_.curvature,F=G,P=j+(M-j)*_.curvature);return{x1:k,y1:M,x2:G,y2:j,cpx1:O,cpy1:I,cpx2:F,cpy2:P}}R.exports=h},bQjk:function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return function(p){var x=y,v=x.lib,m=v.CipherParams,f=x.enc,d=f.Hex,l=x.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(R,D,i){"use strict";i.d(D,"a",function(){return p});var y=i("VTBJ");function p(x,v){var m=Object(y.a)({},x);return Array.isArray(v)&&v.forEach(function(f){delete m[f]}),m}},bX4T:function(R,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`,x=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,v="".concat(p," ").concat(x).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&&v.includes(e))&&(a[e]=o[e])}),a}},bYtY:function(R,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,x=Array.prototype,v=x.forEach,m=x.filter,f=x.slice,d=x.map,l=x.reduce,o={};function n(Ue,ae){Ue==="createCanvas"&&(c=null),o[Ue]=ae}function t(Ue){if(Ue==null||typeof Ue!="object")return Ue;var ae=Ue,lt=p.call(Ue);if(lt==="[object Array]"){if(!Re(Ue)){ae=[];for(var pe=0,J=Ue.length;pe<J;pe++)ae[pe]=t(Ue[pe])}}else if(y[lt]){if(!Re(Ue)){var Y=Ue.constructor;if(Ue.constructor.from)ae=Y.from(Ue);else{ae=new Y(Ue.length);for(var pe=0,J=Ue.length;pe<J;pe++)ae[pe]=t(Ue[pe])}}}else if(!i[lt]&&!Re(Ue)&&!j(Ue)){ae={};for(var ee in Ue)Ue.hasOwnProperty(ee)&&(ae[ee]=t(Ue[ee]))}return ae}function a(Ue,ae,lt){if(!k(ae)||!k(Ue))return lt?t(ae):Ue;for(var pe in ae)if(ae.hasOwnProperty(pe)){var J=Ue[pe],Y=ae[pe];k(Y)&&k(J)&&!F(Y)&&!F(J)&&!j(Y)&&!j(J)&&!G(Y)&&!G(J)&&!Re(Y)&&!Re(J)?a(J,Y,lt):(lt||!(pe in Ue))&&(Ue[pe]=t(ae[pe],!0))}return Ue}function e(Ue,ae){for(var lt=Ue[0],pe=1,J=Ue.length;pe<J;pe++)lt=a(lt,Ue[pe],ae);return lt}function u(Ue,ae){for(var lt in ae)ae.hasOwnProperty(lt)&&(Ue[lt]=ae[lt]);return Ue}function r(Ue,ae,lt){for(var pe in ae)ae.hasOwnProperty(pe)&&(lt?ae[pe]!=null:Ue[pe]==null)&&(Ue[pe]=ae[pe]);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,ae){if(Ue){if(Ue.indexOf)return Ue.indexOf(ae);for(var lt=0,pe=Ue.length;lt<pe;lt++)if(Ue[lt]===ae)return lt}return-1}function A(Ue,ae){var lt=Ue.prototype;function pe(){}pe.prototype=ae.prototype,Ue.prototype=new pe;for(var J in lt)lt.hasOwnProperty(J)&&(Ue.prototype[J]=lt[J]);Ue.prototype.constructor=Ue,Ue.superClass=ae}function b(Ue,ae,lt){Ue="prototype"in Ue?Ue.prototype:Ue,ae="prototype"in ae?ae.prototype:ae,r(Ue,ae,lt)}function w(Ue){return Ue?typeof Ue=="string"?!1:typeof Ue.length=="number":void 0}function E(Ue,ae,lt){if(!(Ue&&ae))return;if(Ue.forEach&&Ue.forEach===v)Ue.forEach(ae,lt);else if(Ue.length===+Ue.length)for(var pe=0,J=Ue.length;pe<J;pe++)ae.call(lt,Ue[pe],pe,Ue);else for(var Y in Ue)Ue.hasOwnProperty(Y)&&ae.call(lt,Ue[Y],Y,Ue)}function C(Ue,ae,lt){if(!(Ue&&ae))return;if(Ue.map&&Ue.map===d)return Ue.map(ae,lt);for(var pe=[],J=0,Y=Ue.length;J<Y;J++)pe.push(ae.call(lt,Ue[J],J,Ue));return pe}function _(Ue,ae,lt,pe){if(!(Ue&&ae))return;if(Ue.reduce&&Ue.reduce===l)return Ue.reduce(ae,lt,pe);for(var J=0,Y=Ue.length;J<Y;J++)lt=ae.call(pe,lt,Ue[J],J,Ue);return lt}function T(Ue,ae,lt){if(!(Ue&&ae))return;if(Ue.filter&&Ue.filter===m)return Ue.filter(ae,lt);for(var pe=[],J=0,Y=Ue.length;J<Y;J++)ae.call(lt,Ue[J],J,Ue)&&pe.push(Ue[J]);return pe}function S(Ue,ae,lt){if(!(Ue&&ae))return;for(var pe=0,J=Ue.length;pe<J;pe++)if(ae.call(lt,Ue[pe],pe,Ue))return Ue[pe]}function O(Ue,ae){var lt=f.call(arguments,2);return function(){return Ue.apply(ae,lt.concat(f.call(arguments)))}}function I(Ue){var ae=f.call(arguments,1);return function(){return Ue.apply(this,ae.concat(f.call(arguments)))}}function F(Ue){return p.call(Ue)==="[object Array]"}function P(Ue){return typeof Ue=="function"}function B(Ue){return p.call(Ue)==="[object String]"}function k(Ue){var ae=typeof Ue;return ae==="function"||!!Ue&&ae==="object"}function G(Ue){return!!i[p.call(Ue)]}function M(Ue){return!!y[p.call(Ue)]}function j(Ue){return typeof Ue=="object"&&typeof Ue.nodeType=="number"&&typeof Ue.ownerDocument=="object"}function K(Ue){return Ue!==Ue}function z(Ue){for(var ae=0,lt=arguments.length;ae<lt;ae++)if(arguments[ae]!=null)return arguments[ae]}function V(Ue,ae){return Ue!=null?Ue:ae}function Q(Ue,ae,lt){return Ue!=null?Ue:ae!=null?ae:lt}function X(){return Function.call.apply(f,arguments)}function te(Ue){if(typeof Ue=="number")return[Ue,Ue,Ue,Ue];var ae=Ue.length;return ae===2?[Ue[0],Ue[1],Ue[0],Ue[1]]:ae===3?[Ue[0],Ue[1],Ue[2],Ue[1]]:Ue}function $(Ue,ae){if(!Ue)throw new Error(ae)}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 ae=F(Ue);this.data={};var lt=this;Ue instanceof Pe?Ue.each(pe):Ue&&E(Ue,pe);function pe(J,Y){ae?lt.set(J,Y):lt.set(Y,J)}}Pe.prototype={constructor:Pe,get:function(ae){return this.data.hasOwnProperty(ae)?this.data[ae]:null},set:function(ae,lt){return this.data[ae]=lt},each:function(ae,lt){lt!==void 0&&(ae=O(ae,lt));for(var pe in this.data)this.data.hasOwnProperty(pe)&&ae(this.data[pe],pe)},removeKey:function(ae){delete this.data[ae]}};function Je(Ue){return new Pe(Ue)}function Ge(Ue,ae){for(var lt=new Ue.constructor(Ue.length+ae.length),pe=0;pe<Ue.length;pe++)lt[pe]=Ue[pe];var J=Ue.length;for(pe=0;pe<ae.length;pe++)lt[pe+J]=ae[pe];return lt}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=A,D.mixin=b,D.isArrayLike=w,D.each=E,D.map=C,D.reduce=_,D.filter=T,D.find=S,D.bind=O,D.curry=I,D.isArray=F,D.isFunction=P,D.isString=B,D.isObject=k,D.isBuiltInObject=G,D.isTypedArray=M,D.isDom=j,D.eqNaN=K,D.retrieve=z,D.retrieve2=V,D.retrieve3=Q,D.slice=X,D.normalizeCssArray=te,D.assert=$,D.trim=le,D.setAsPrimitive=Se,D.isPrimitive=Re,D.createHashMap=Je,D.concatArray=Ge,D.noop=ct},bZqE:function(R,D){function i(p,x,v){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();)x(d,v)}function y(p,x){for(var v=[p],m;m=v.pop();)if(x(m),m.isExpand){var f=m.children;if(f.length)for(var d=f.length-1;d>=0;d--)v.push(f[d])}}D.eachAfter=i,D.eachBefore=y},bbsP:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("CWI+"),v=i.n(x)},bogI:function(R,D,i){"use strict";i.d(D,"a",function(){return y});var y=function(x){if(!x)return null;var v=typeof x=="function";return v?x():x}},bsht:function(R,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(R,D,i){"use strict";var y=i("lSNA"),p=i.n(y),x=i("pVnL"),v=i.n(x),m=i("q1tI"),f=i("TSYQ"),d=i.n(f),l=i("BGR+"),o=i("H84U"),n=function(C,_){var T={};for(var S in C)Object.prototype.hasOwnProperty.call(C,S)&&_.indexOf(S)<0&&(T[S]=C[S]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,S=Object.getOwnPropertySymbols(C);O<S.length;O++)_.indexOf(S[O])<0&&Object.prototype.propertyIsEnumerable.call(C,S[O])&&(T[S[O]]=C[S[O]]);return T},t=function(_){return m.createElement(o.a,null,function(T){var S=T.getPrefixCls,O=_.prefixCls,I=_.className,F=_.hoverable,P=F===void 0?!0:F,B=n(_,["prefixCls","className","hoverable"]),k=S("card",O),G=d()("".concat(k,"-grid"),I,p()({},"".concat(k,"-grid-hoverable"),P));return m.createElement("div",v()({},B,{className:G}))})},a=t,e=function(C,_){var T={};for(var S in C)Object.prototype.hasOwnProperty.call(C,S)&&_.indexOf(S)<0&&(T[S]=C[S]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,S=Object.getOwnPropertySymbols(C);O<S.length;O++)_.indexOf(S[O])<0&&Object.prototype.propertyIsEnumerable.call(C,S[O])&&(T[S[O]]=C[S[O]]);return T},u=function(_){return m.createElement(o.a,null,function(T){var S=T.getPrefixCls,O=_.prefixCls,I=_.className,F=_.avatar,P=_.title,B=_.description,k=e(_,["prefixCls","className","avatar","title","description"]),G=S("card",O),M=d()("".concat(G,"-meta"),I),j=F?m.createElement("div",{className:"".concat(G,"-meta-avatar")},F):null,K=P?m.createElement("div",{className:"".concat(G,"-meta-title")},P):null,z=B?m.createElement("div",{className:"".concat(G,"-meta-description")},B):null,V=K||z?m.createElement("div",{className:"".concat(G,"-meta-detail")},K,z):null;return m.createElement("div",v()({},k,{className:M}),j,V)})},r=u,s=i("ZTPi"),c=i("BMrR"),h=i("kPKH"),g=i("3Nzz"),A=function(C,_){var T={};for(var S in C)Object.prototype.hasOwnProperty.call(C,S)&&_.indexOf(S)<0&&(T[S]=C[S]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,S=Object.getOwnPropertySymbols(C);O<S.length;O++)_.indexOf(S[O])<0&&Object.prototype.propertyIsEnumerable.call(C,S[O])&&(T[S[O]]=C[S[O]]);return T};function b(C){var _=C.map(function(T,S){return m.createElement("li",{style:{width:"".concat(100/C.length,"%")},key:"action-".concat(S)},m.createElement("span",null,T))});return _}var w=function(_){var T,S,O=m.useContext(o.b),I=O.getPrefixCls,F=O.direction,P=m.useContext(g.b),B=function(jt){_.onTabChange&&_.onTabChange(jt)},k=function(){var jt;return m.Children.forEach(_.children,function(Mt){Mt&&Mt.type&&Mt.type===a&&(jt=!0)}),jt},G=_.prefixCls,M=_.className,j=_.extra,K=_.headStyle,z=K===void 0?{}:K,V=_.bodyStyle,Q=V===void 0?{}:V,X=_.title,te=_.loading,$=_.bordered,le=$===void 0?!0:$,re=_.size,Se=_.type,Re=_.cover,Pe=_.actions,Je=_.tabList,Ge=_.children,ct=_.activeTabKey,Ue=_.defaultActiveTabKey,ae=_.tabBarExtraContent,lt=_.hoverable,pe=_.tabProps,J=pe===void 0?{}:pe,Y=A(_,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),ee=I("card",G),fe=Q.padding===0||Q.padding==="0px"?{padding:24}:void 0,we=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},we)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:8},we),m.createElement(h.a,{span:15},we)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:6},we),m.createElement(h.a,{span:18},we)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:13},we),m.createElement(h.a,{span:9},we)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:4},we),m.createElement(h.a,{span:3},we),m.createElement(h.a,{span:16},we))),_e=ct!==void 0,he=v()(v()({},J),(T={},p()(T,_e?"activeKey":"defaultActiveKey",_e?ct:Ue),p()(T,"tabBarExtraContent",ae),T)),ye,Le=Je&&Je.length?m.createElement(s.a,v()({size:"large"},he,{className:"".concat(ee,"-head-tabs"),onChange:B}),Je.map(function(St){return m.createElement(s.a.TabPane,{tab:St.tab,disabled:St.disabled,key:St.key})})):null;(X||j||Le)&&(ye=m.createElement("div",{className:"".concat(ee,"-head"),style:z},m.createElement("div",{className:"".concat(ee,"-head-wrapper")},X&&m.createElement("div",{className:"".concat(ee,"-head-title")},X),j&&m.createElement("div",{className:"".concat(ee,"-extra")},j)),Le));var tt=Re?m.createElement("div",{className:"".concat(ee,"-cover")},Re):null,gt=m.createElement("div",{className:"".concat(ee,"-body"),style:Q},te?Ce:Ge),at=Pe&&Pe.length?m.createElement("ul",{className:"".concat(ee,"-actions")},b(Pe)):null,Fe=Object(l.default)(Y,["onTabChange"]),mt=re||P,et=d()(ee,M,(S={},p()(S,"".concat(ee,"-loading"),te),p()(S,"".concat(ee,"-bordered"),le),p()(S,"".concat(ee,"-hoverable"),lt),p()(S,"".concat(ee,"-contain-grid"),k()),p()(S,"".concat(ee,"-contain-tabs"),Je&&Je.length),p()(S,"".concat(ee,"-").concat(mt),mt),p()(S,"".concat(ee,"-type-").concat(Se),!!Se),p()(S,"".concat(ee,"-rtl"),F==="rtl"),S));return m.createElement("div",v()({},Fe,{className:et}),ye,tt,gt,at)};w.Grid=a,w.Meta=r;var E=D.a=w},c2i1:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=i("Yl7c"),m=v.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 A=g.shift(),b=A[c],h=0;h<b.length;h++){var w=b[h],E=w.node1===A?w.node2:w.node1;if(!E.__visited){if(e.call(s,E,A))return;g.push(E),E.__visited=!0}}},l.update=function(){for(var e=this.data,u=this.edgeData,r=this.nodes,s=this.edges,c=0,h=r.length;c<h;c++)r[c].dataIndex=-1;for(var c=0,h=e.count();c<h;c++)r[e.getRawIndex(c)].dataIndex=c;u.filterSelf(function(g){var A=s[u.getRawIndex(g)];return A.node1.dataIndex>=0&&A.node2.dataIndex>=0});for(var c=0,h=s.length;c<h;c++)s[c].dataIndex=-1;for(var c=0,h=u.count();c<h;c++)s[u.getRawIndex(c)].dataIndex=c},l.clone=function(){for(var e=new d(this._directed),u=this.nodes,r=this.edges,s=0;s<u.length;s++)e.addNode(u[s].id,u[s].dataIndex);for(var s=0;s<r.length;s++){var c=r[s];e.addEdge(c.node1.id,c.node2.id,c.dataIndex)}return e};function 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)}}};x.mixin(o,t("hostGraph","data")),x.mixin(n,t("hostGraph","edgeData")),d.Node=o,d.Edge=n,m(o),m(n);var a=d;R.exports=a},c3jg:function(R,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"),x=i("Ff2n"),v=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(A){var b=A.key,w=A.children;Object(m.a)(b!=null,"Tree node must have a certain key: [".concat(g).concat(b,"]"));var E=String(b);Object(m.a)(!s.has(E)||b===null||b===void 0,"Same 'key' exist in the Tree: ".concat(E)),s.set(E,!0),c(w,"".concat(g).concat(E," > "))})}c(r)}function o(r){function s(c){var h=Object(v.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 A=g.key,b=g.props,w=b.children,E=Object(x.a)(b,["children"]),C=Object(p.a)({key:A},E),_=s(w);return _.length&&(C.children=_),C}).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(A){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return A.map(function(w,E){var C=Object(f.h)(b?b.pos:"0",E),_=d(w.key,C),T=Object(p.a)(Object(p.a)({},w),{},{parent:b,pos:C,children:null,data:w,isStart:[].concat(Object(y.a)(b?b.isStart:[]),[E===0]),isEnd:[].concat(Object(y.a)(b?b.isEnd:[]),[E===A.length-1])});return h.push(T),s===!0||c.has(_)?T.children=g(w.children||[],T):T.children=[],T})}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(A,b,w){var E=A?A.children:r,C=A?Object(f.h)(w.pos,b):"0";if(A){var _=h(A,C),T={node:A,index:b,pos:C,key:_,parentPos:w.node?w.pos:null,level:w.level+1};s(T)}E&&E.forEach(function(S,O){g(S,O,{node:A,pos:C,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,A=arguments.length>2?arguments[2]:void 0,b={},w={},E={posEntities:b,keyEntities:w};return c&&(E=c(E)||E),t(r,function(C){var _=C.node,T=C.index,S=C.pos,O=C.key,I=C.parentPos,F=C.level,P={node:_,index:T,key:O,pos:S,level:F},B=d(O,S);b[S]=P,w[B]=P,P.parent=b[I],P.parent&&(P.parent.children=P.parent.children||[],P.parent.children.push(P)),h&&h(P,E)},A),g&&g(E),E}function e(r,s){var c=s.expandedKeys,h=s.selectedKeys,g=s.loadedKeys,A=s.loadingKeys,b=s.checkedKeys,w=s.halfCheckedKeys,E=s.dragOverNodeKey,C=s.dropPosition,_=s.keyEntities,T=_[r],S={eventKey:r,expanded:c.indexOf(r)!==-1,selected:h.indexOf(r)!==-1,loaded:g.indexOf(r)!==-1,loading:A.indexOf(r)!==-1,checked:b.indexOf(r)!==-1,halfChecked:w.indexOf(r)!==-1,pos:String(T?T.pos:""),dragOver:E===r&&C===0,dragOverGapTop:E===r&&C===-1,dragOverGapBottom:E===r&&C===1};return S}function u(r){var s=r.data,c=r.expanded,h=r.selected,g=r.checked,A=r.loaded,b=r.loading,w=r.halfChecked,E=r.dragOver,C=r.dragOverGapTop,_=r.dragOverGapBottom,T=r.pos,S=r.active,O=Object(p.a)(Object(p.a)({},s),{},{expanded:c,selected:h,checked:g,loaded:A,loading:b,halfChecked:w,dragOver:E,dragOverGapTop:C,dragOverGapBottom:_,pos:T,active:S});return"props"in O||Object.defineProperty(O,"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}}),O}},c5Ni:function(R,D,i){},c5fP:function(R,D,i){"use strict";function y(et){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(jt){return typeof jt}:y=function(jt){return jt&&typeof Symbol=="function"&&jt.constructor===Symbol&&jt!==Symbol.prototype?"symbol":typeof jt},y(et)}Object.defineProperty(D,"__esModule",{value:!0}),D._tr_init=tt,D._tr_stored_block=gt,D._tr_flush_block=Fe,D._tr_tally=mt,D._tr_align=at;var p=v(i("6BzB"));function x(){if(typeof WeakMap!="function")return null;var et=new WeakMap;return x=function(){return et},et}function v(et){if(et&&et.__esModule)return et;if(et===null||y(et)!=="object"&&typeof et!="function")return{default:et};var St=x();if(St&&St.has(et))return St.get(et);var jt={},Mt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ot in et)if(Object.prototype.hasOwnProperty.call(et,Ot)){var Bt=Mt?Object.getOwnPropertyDescriptor(et,Ot):null;Bt&&(Bt.get||Bt.set)?Object.defineProperty(jt,Ot,Bt):jt[Ot]=et[Ot]}return jt.default=et,St&&St.set(et,jt),jt}var m=4,f=0,d=1,l=2;function o(et){for(var St=et.length;--St>=0;)et[St]=0}var n=0,t=1,a=2,e=3,u=258,r=29,s=256,c=s+1+r,h=30,g=19,A=2*c+1,b=15,w=16,E=7,C=256,_=16,T=17,S=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],I=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=512,k=new Array((c+2)*2);o(k);var G=new Array(h*2);o(G);var M=new Array(B);o(M);var j=new Array(u-e+1);o(j);var K=new Array(r);o(K);var z=new Array(h);o(z);function V(et,St,jt,Mt,Ot){this.static_tree=et,this.extra_bits=St,this.extra_base=jt,this.elems=Mt,this.max_length=Ot,this.has_stree=et&&et.length}var Q,X,te;function $(et,St){this.dyn_tree=et,this.max_code=0,this.stat_desc=St}function le(et){return et<256?M[et]:M[256+(et>>>7)]}function re(et,St){et.pending_buf[et.pending++]=St&255,et.pending_buf[et.pending++]=St>>>8&255}function Se(et,St,jt){et.bi_valid>w-jt?(et.bi_buf|=St<<et.bi_valid&65535,re(et,et.bi_buf),et.bi_buf=St>>w-et.bi_valid,et.bi_valid+=jt-w):(et.bi_buf|=St<<et.bi_valid&65535,et.bi_valid+=jt)}function Re(et,St,jt){Se(et,jt[St*2],jt[St*2+1])}function Pe(et,St){var jt=0;do jt|=et&1,et>>>=1,jt<<=1;while(--St>0);return jt>>>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 Ge(et,St){var jt=St.dyn_tree,Mt=St.max_code,Ot=St.stat_desc.static_tree,Bt=St.stat_desc.has_stree,Ke=St.stat_desc.extra_bits,de=St.stat_desc.extra_base,se=St.stat_desc.max_length,ut,qe,me,Wt,dr,vt,rr=0;for(Wt=0;Wt<=b;Wt++)et.bl_count[Wt]=0;for(jt[et.heap[et.heap_max]*2+1]=0,ut=et.heap_max+1;ut<A;ut++){if(qe=et.heap[ut],Wt=jt[jt[qe*2+1]*2+1]+1,Wt>se&&(Wt=se,rr++),jt[qe*2+1]=Wt,qe>Mt)continue;et.bl_count[Wt]++,dr=0,qe>=de&&(dr=Ke[qe-de]),vt=jt[qe*2],et.opt_len+=vt*(Wt+dr),Bt&&(et.static_len+=vt*(Ot[qe*2+1]+dr))}if(rr===0)return;do{for(Wt=se-1;et.bl_count[Wt]===0;)Wt--;et.bl_count[Wt]--,et.bl_count[Wt+1]+=2,et.bl_count[se]--,rr-=2}while(rr>0);for(Wt=se;Wt!==0;Wt--)for(qe=et.bl_count[Wt];qe!==0;){if(me=et.heap[--ut],me>Mt)continue;jt[me*2+1]!==Wt&&(et.opt_len+=(Wt-jt[me*2+1])*jt[me*2],jt[me*2+1]=Wt),qe--}}function ct(et,St,jt){var Mt=new Array(b+1),Ot=0,Bt,Ke;for(Bt=1;Bt<=b;Bt++)Mt[Bt]=Ot=Ot+jt[Bt-1]<<1;for(Ke=0;Ke<=St;Ke++){var de=et[Ke*2+1];if(de===0)continue;et[Ke*2]=Pe(Mt[de]++,de)}}function Ue(){var et,St,jt,Mt,Ot,Bt=new Array(b+1);for(jt=0,Mt=0;Mt<r-1;Mt++)for(K[Mt]=jt,et=0;et<1<<O[Mt];et++)j[jt++]=Mt;for(j[jt-1]=Mt,Ot=0,Mt=0;Mt<16;Mt++)for(z[Mt]=Ot,et=0;et<1<<I[Mt];et++)M[Ot++]=Mt;for(Ot>>=7;Mt<h;Mt++)for(z[Mt]=Ot<<7,et=0;et<1<<I[Mt]-7;et++)M[256+Ot++]=Mt;for(St=0;St<=b;St++)Bt[St]=0;for(et=0;et<=143;)k[et*2+1]=8,et++,Bt[8]++;for(;et<=255;)k[et*2+1]=9,et++,Bt[9]++;for(;et<=279;)k[et*2+1]=7,et++,Bt[7]++;for(;et<=287;)k[et*2+1]=8,et++,Bt[8]++;for(ct(k,c+1,Bt),et=0;et<h;et++)G[et*2+1]=5,G[et*2]=Pe(et,5);Q=new V(k,O,s+1,c,b),X=new V(G,I,0,h,b),te=new V(new Array(0),F,0,g,E)}function ae(et){var St;for(St=0;St<c;St++)et.dyn_ltree[St*2]=0;for(St=0;St<h;St++)et.dyn_dtree[St*2]=0;for(St=0;St<g;St++)et.bl_tree[St*2]=0;et.dyn_ltree[C*2]=1,et.opt_len=et.static_len=0,et.last_lit=et.matches=0}function lt(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 pe(et,St,jt,Mt){lt(et),Mt&&(re(et,jt),re(et,~jt)),p.arraySet(et.pending_buf,et.window,St,jt,et.pending),et.pending+=jt}function J(et,St,jt,Mt){var Ot=St*2,Bt=jt*2;return et[Ot]<et[Bt]||et[Ot]===et[Bt]&&Mt[St]<=Mt[jt]}function Y(et,St,jt){for(var Mt=et.heap[jt],Ot=jt<<1;Ot<=et.heap_len&&!(Ot<et.heap_len&&J(St,et.heap[Ot+1],et.heap[Ot],et.depth)&&Ot++,J(St,Mt,et.heap[Ot],et.depth));)et.heap[jt]=et.heap[Ot],jt=Ot,Ot<<=1;et.heap[jt]=Mt}function ee(et,St,jt){var Mt,Ot,Bt=0,Ke,de;if(et.last_lit!==0)do Mt=et.pending_buf[et.d_buf+Bt*2]<<8|et.pending_buf[et.d_buf+Bt*2+1],Ot=et.pending_buf[et.l_buf+Bt],Bt++,Mt===0?Re(et,Ot,St):(Ke=j[Ot],Re(et,Ke+s+1,St),de=O[Ke],de!==0&&(Ot-=K[Ke],Se(et,Ot,de)),Mt--,Ke=le(Mt),Re(et,Ke,jt),de=I[Ke],de!==0&&(Mt-=z[Ke],Se(et,Mt,de)));while(Bt<et.last_lit);Re(et,C,St)}function fe(et,St){var jt=St.dyn_tree,Mt=St.stat_desc.static_tree,Ot=St.stat_desc.has_stree,Bt=St.stat_desc.elems,Ke,de,se=-1,ut;for(et.heap_len=0,et.heap_max=A,Ke=0;Ke<Bt;Ke++)jt[Ke*2]!==0?(et.heap[++et.heap_len]=se=Ke,et.depth[Ke]=0):jt[Ke*2+1]=0;for(;et.heap_len<2;)ut=et.heap[++et.heap_len]=se<2?++se:0,jt[ut*2]=1,et.depth[ut]=0,et.opt_len--,Ot&&(et.static_len-=Mt[ut*2+1]);for(St.max_code=se,Ke=et.heap_len>>1;Ke>=1;Ke--)Y(et,jt,Ke);ut=Bt;do Ke=et.heap[1],et.heap[1]=et.heap[et.heap_len--],Y(et,jt,1),de=et.heap[1],et.heap[--et.heap_max]=Ke,et.heap[--et.heap_max]=de,jt[ut*2]=jt[Ke*2]+jt[de*2],et.depth[ut]=(et.depth[Ke]>=et.depth[de]?et.depth[Ke]:et.depth[de])+1,jt[Ke*2+1]=jt[de*2+1]=ut,et.heap[1]=ut++,Y(et,jt,1);while(et.heap_len>=2);et.heap[--et.heap_max]=et.heap[1],Ge(et,St),ct(jt,se,et.bl_count)}function we(et,St,jt){var Mt,Ot=-1,Bt,Ke=St[0*2+1],de=0,se=7,ut=4;for(Ke===0&&(se=138,ut=3),St[(jt+1)*2+1]=65535,Mt=0;Mt<=jt;Mt++){if(Bt=Ke,Ke=St[(Mt+1)*2+1],++de<se&&Bt===Ke)continue;de<ut?et.bl_tree[Bt*2]+=de:Bt!==0?(Bt!==Ot&&et.bl_tree[Bt*2]++,et.bl_tree[_*2]++):de<=10?et.bl_tree[T*2]++:et.bl_tree[S*2]++,de=0,Ot=Bt,Ke===0?(se=138,ut=3):Bt===Ke?(se=6,ut=3):(se=7,ut=4)}}function Ce(et,St,jt){var Mt,Ot=-1,Bt,Ke=St[0*2+1],de=0,se=7,ut=4;for(Ke===0&&(se=138,ut=3),Mt=0;Mt<=jt;Mt++){if(Bt=Ke,Ke=St[(Mt+1)*2+1],++de<se&&Bt===Ke)continue;if(de<ut)do Re(et,Bt,et.bl_tree);while(--de!==0);else Bt!==0?(Bt!==Ot&&(Re(et,Bt,et.bl_tree),de--),Re(et,_,et.bl_tree),Se(et,de-3,2)):de<=10?(Re(et,T,et.bl_tree),Se(et,de-3,3)):(Re(et,S,et.bl_tree),Se(et,de-11,7));de=0,Ot=Bt,Ke===0?(se=138,ut=3):Bt===Ke?(se=6,ut=3):(se=7,ut=4)}}function _e(et){var St;for(we(et,et.dyn_ltree,et.l_desc.max_code),we(et,et.dyn_dtree,et.d_desc.max_code),fe(et,et.bl_desc),St=g-1;St>=3&&!(et.bl_tree[P[St]*2+1]!==0);St--);return et.opt_len+=3*(St+1)+5+5+4,St}function he(et,St,jt,Mt){var Ot;for(Se(et,St-257,5),Se(et,jt-1,5),Se(et,Mt-4,4),Ot=0;Ot<Mt;Ot++)Se(et,et.bl_tree[P[Ot]*2+1],3);Ce(et,et.dyn_ltree,St-1),Ce(et,et.dyn_dtree,jt-1)}function ye(et){var St=4093624447,jt;for(jt=0;jt<=31;jt++,St>>>=1)if(St&1&&et.dyn_ltree[jt*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(jt=32;jt<s;jt++)if(et.dyn_ltree[jt*2]!==0)return d;return f}var Le=!1;function tt(et){Le||(Ue(),Le=!0),et.l_desc=new $(et.dyn_ltree,Q),et.d_desc=new $(et.dyn_dtree,X),et.bl_desc=new $(et.bl_tree,te),et.bi_buf=0,et.bi_valid=0,ae(et)}function gt(et,St,jt,Mt){Se(et,(n<<1)+(Mt?1:0),3),pe(et,St,jt,!0)}function at(et){Se(et,t<<1,3),Re(et,C,k),Je(et)}function Fe(et,St,jt,Mt){var Ot,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=_e(et),Ot=et.opt_len+3+7>>>3,Bt=et.static_len+3+7>>>3,Bt<=Ot&&(Ot=Bt)):Ot=Bt=jt+5,jt+4<=Ot&&St!==-1?gt(et,St,jt,Mt):et.strategy===m||Bt===Ot?(Se(et,(t<<1)+(Mt?1:0),3),ee(et,k,G)):(Se(et,(a<<1)+(Mt?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)),ae(et),Mt&<(et)}function mt(et,St,jt){return et.pending_buf[et.d_buf+et.last_lit*2]=St>>>8&255,et.pending_buf[et.d_buf+et.last_lit*2+1]=St&255,et.pending_buf[et.l_buf+et.last_lit]=jt&255,et.last_lit++,St===0?et.dyn_ltree[jt*2]++:(et.matches++,St--,et.dyn_ltree[(j[jt]+s+1)*2]++,et.dyn_dtree[le(St)*2]++),et.last_lit===et.lit_bufsize-1}},c6wG:function(R,D,i){var y=i("dD9F"),p=i("sEf8"),x=i("mdPL"),v=x&&x.isTypedArray,m=v?p(v):y;R.exports=m},c8qY:function(R,D,i){var y=i("IwbS"),p=i("fls0");function x(a){this._ctor=a||p,this.group=new y.Group}var v=x.prototype;v.isPersistent=function(){return!0},v.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)}v.updateLayout=function(){var a=this._lineData;if(!a)return;a.eachItemGraphicEl(function(e,u){e.updateLayout(a,u)},this)},v.incrementalPrepareUpdate=function(a){this._seriesScope=l(a),this._lineData=null,this.group.removeAll()};function d(a){return a.animators&&a.animators.length>0}v.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")}}v.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},v._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=x;R.exports=t},cCMj:function(R,D,i){var y=i("bYtY"),p={updateSelectedMap:function(x){this._targetList=y.isArray(x)?x.slice():[],this._selectTargetMap=y.reduce(x||[],function(v,m){return v.set(m.name,m),v},y.createHashMap())},select:function(x,v){var m=v!=null?this._targetList[v]:this._selectTargetMap.get(x),f=this.get("selectedMode");f==="single"&&this._selectTargetMap.each(function(d){d.selected=!1}),m&&(m.selected=!0)},unSelect:function(x,v){var m=v!=null?this._targetList[v]:this._selectTargetMap.get(x);m&&(m.selected=!1)},toggleSelected:function(x,v){var m=v!=null?this._targetList[v]:this._selectTargetMap.get(x);if(m!=null)return this[m.selected?"unSelect":"select"](x,v),m.selected},isSelected:function(x,v){var m=v!=null?this._targetList[v]:this._selectTargetMap.get(x);return m&&m.selected}};R.exports=p},cVA7:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=i("MT78"),p=m(y),x=i("t3Fx"),v=m(x);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}(v.default);D.default=o},cWXX:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("oIFs"),v=i.n(x)},ca2m:function(R,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)"]}}},x={};x.categoryAxis=y.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},p),x.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),x.timeAxis=y.defaults({scale:!0,min:"dataMin",max:"dataMax"},x.valueAxis),x.logAxis=y.defaults({scale:!0,logBase:10},x.valueAxis);var v=x;R.exports=v},cbJ4:function(R,D,i){var y=i("bYtY"),p=y.createHashMap;function x(v){v.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)})})}R.exports=x},chpo:function(R,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(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("T4UG"),v=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 A=[g[0].coord,g[1].coord],b={coords:A};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=x.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],A=this._flatCoordsOffset[c*2+1],b=0;b<A;b++)h[b]=h[b]||[],h[b][0]=this._flatCoords[g+b*2],h[b][1]=this._flatCoords[g+b*2+1];return A}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,A=new a(g),b=new e(g),w=0,E=0,C=0,_=0;_<g;){C++;var T=c[_++];A[E++]=w+h,A[E++]=T;for(var S=0;S<T;S++){var O=c[_++],I=c[_++];b[w++]=O,b[w++]=I,_>g}}return{flatCoordsOffset:new Uint32Array(A.buffer,0,E),flatCoords:b,count:C}}return{flatCoordsOffset:null,flatCoords:null,count:c.length}},getInitialData:function(c,h){var g=new v(["value"],this);return g.hasItemOption=!1,g.initData(c.data,[],function(A,b,w,E){if(A instanceof Array)return NaN;g.hasItemOption=!0;var C=A.value;if(C!=null)return C instanceof Array?C[E]:C}),g},formatTooltip:function(c){var h=this.getData(),g=h.getItemModel(c),A=g.get("name");if(A)return A;var b=g.get("fromName"),w=g.get("toName"),E=[];return b!=null&&E.push(b),w!=null&&E.push(w),n(E.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var c=this.option.progressive;return c==null?this.option.large?1e4:this.get("progressive"):c},getProgressiveThreshold:function(){var c=this.option.progressiveThreshold;return c==null?this.option.large?2e4:this.get("progressiveThreshold"):c},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),s=r;R.exports=s},crZl:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("IwbS"),v=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=v.normalizeCssArray(o.get("padding")||0),t=l.getBoundingRect();l.add(new x.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,A){e[g]=A}var c=a.controllerVisuals[t||a.getValueState(l)],h=f.prepareVisualTypes(c);return p.each(h,function(g){var A=c[g];n.convertOpacityToAlpha&&g==="opacity"&&(g="colorAlpha",A=c.__alphaForOpacity),f.dependsOn(g,o)&&(A&&A.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});R.exports=d},crp1:function(R,D,i){"use strict";i.d(D,"b",function(){return Zt}),i.d(D,"a",function(){return Xn});var y={},p=function(At,wt,vr,Jt,Ut){var tr=y[wt]||(y[wt]=URL.createObjectURL(new Blob([At],{type:"text/javascript"}))),Ft=new Worker(tr);return Ft.onerror=function(qt){return Ut(qt.error,null)},Ft.onmessage=function(qt){return Ut(null,qt.data)},Ft.postMessage(vr,Jt),Ft},x=Uint8Array,v=Uint16Array,m=Uint32Array,f=new x([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 x([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 x([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=function(At,wt){for(var vr=new v(31),Jt=0;Jt<31;++Jt)vr[Jt]=wt+=1<<At[Jt-1];for(var Ut=new m(vr[30]),Jt=1;Jt<30;++Jt)for(var tr=vr[Jt];tr<vr[Jt+1];++tr)Ut[tr]=tr-vr[Jt]<<5|Jt;return[vr,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 v(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(At,wt,vr){for(var Jt=At.length,Ut=0,tr=new v(wt);Ut<Jt;++Ut)++tr[At[Ut]-1];var Ft=new v(wt);for(Ut=0;Ut<wt;++Ut)Ft[Ut]=Ft[Ut-1]+tr[Ut-1]<<1;var qt;if(vr){qt=new v(1<<wt);var Hr=15-wt;for(Ut=0;Ut<Jt;++Ut)if(At[Ut])for(var Nr=Ut<<4|At[Ut],Dr=wt-At[Ut],cn=Ft[At[Ut]-1]++<<Dr,vn=cn|(1<<Dr)-1;cn<=vn;++cn)qt[s[cn]>>>Hr]=Nr}else for(qt=new v(Jt),Ut=0;Ut<Jt;++Ut)qt[Ut]=s[Ft[At[Ut]-1]++]>>>15-At[Ut];return qt},A=new x(288),c=0;c<144;++c)A[c]=8;for(var c=144;c<256;++c)A[c]=9;for(var c=256;c<280;++c)A[c]=7;for(var c=280;c<288;++c)A[c]=8;for(var b=new x(32),c=0;c<32;++c)b[c]=5;var w=g(A,9,0),E=g(A,9,1),C=g(b,5,0),_=g(b,5,1),T=function(At){for(var wt=At[0],vr=1;vr<At.length;++vr)At[vr]>wt&&(wt=At[vr]);return wt},S=function(At,wt,vr){var Jt=wt/8>>0;return(At[Jt]|At[Jt+1]<<8)>>>(wt&7)&vr},O=function(At,wt){var vr=wt/8>>0;return(At[vr]|At[vr+1]<<8|At[vr+2]<<16)>>>(wt&7)},I=function(At){return(At/8>>0)+(At&7&&1)},F=function(At,wt,vr){(wt==null||wt<0)&&(wt=0),(vr==null||vr>At.length)&&(vr=At.length);var Jt=new(At instanceof v?v:At instanceof m?m:x)(vr-wt);return Jt.set(At.subarray(wt,vr)),Jt},P=function(At,wt,vr){var Jt=At.length,Ut=!wt||vr,tr=!vr||vr.i;vr||(vr={}),wt||(wt=new x(Jt*3));var Ft=function(Vn){var Xt=wt.length;if(Vn>Xt){var It=new x(Math.max(Xt*2,Vn));It.set(wt),wt=It}},qt=vr.f||0,Hr=vr.p||0,Nr=vr.b||0,Dr=vr.l,cn=vr.d,vn=vr.m,ei=vr.n,qn=Jt*8;do{if(!Dr){vr.f=qt=S(At,Hr,1);var fi=S(At,Hr+1,3);if(Hr+=3,fi)if(fi==1)Dr=E,cn=_,vn=9,ei=5;else if(fi==2){var nt=S(At,Hr,31)+257,Ne=S(At,Hr+10,15)+4,He=nt+S(At,Hr+5,31)+1;Hr+=14;for(var Xe=new x(He),rt=new x(19),Ze=0;Ze<Ne;++Ze)rt[l[Ze]]=S(At,Hr+Ze*3,7);Hr+=Ne*3;var st=T(rt),xt=(1<<st)-1;if(!tr&&Hr+He*(st+7)>qn)break;for(var pt=g(rt,st,1),Ze=0;Ze<He;){var hr=pt[S(At,Hr,xt)];Hr+=hr&15;var xi=hr>>>4;if(xi<16)Xe[Ze++]=xi;else{var Zr=0,Xr=0;for(xi==16?(Xr=3+S(At,Hr,3),Hr+=2,Zr=Xe[Ze-1]):xi==17?(Xr=3+S(At,Hr,7),Hr+=3):xi==18&&(Xr=11+S(At,Hr,127),Hr+=7);Xr--;)Xe[Ze++]=Zr}}var pn=Xe.subarray(0,nt),gr=Xe.subarray(nt);vn=T(pn),ei=T(gr),Dr=g(pn,vn,1),cn=g(gr,ei,1)}else throw"invalid block type";else{var xi=I(Hr)+4,Ni=At[xi-4]|At[xi-3]<<8,Hi=xi+Ni;if(Hi>Jt){if(tr)throw"unexpected EOF";break}Ut&&Ft(Nr+Ni),wt.set(At.subarray(xi,Hi),Nr),vr.b=Nr+=Ni,vr.p=Hr=Hi*8;continue}if(Hr>qn)throw"unexpected EOF"}Ut&&Ft(Nr+131072);for(var Kn=(1<<vn)-1,Rr=(1<<ei)-1,Pn=vn+ei+18;tr||Hr+Pn<qn;){var Zr=Dr[O(At,Hr)&Kn],an=Zr>>>4;if(Hr+=Zr&15,Hr>qn)throw"unexpected EOF";if(!Zr)throw"invalid length/literal";if(an<256)wt[Nr++]=an;else if(an==256){Dr=null;break}else{var Ur=an-254;if(an>264){var Ze=an-257,ii=f[Ze];Ur=S(At,Hr,(1<<ii)-1)+t[Ze],Hr+=ii}var _i=cn[O(At,Hr)&Rr],Gi=_i>>>4;if(!_i)throw"invalid distance";Hr+=_i&15;var gr=u[Gi];if(Gi>3){var ii=d[Gi];gr+=O(At,Hr)&(1<<ii)-1,Hr+=ii}if(Hr>qn)throw"unexpected EOF";Ut&&Ft(Nr+131072);for(var tn=Nr+Ur;Nr<tn;Nr+=4)wt[Nr]=wt[Nr-gr],wt[Nr+1]=wt[Nr+1-gr],wt[Nr+2]=wt[Nr+2-gr],wt[Nr+3]=wt[Nr+3-gr];Nr=tn}}vr.l=Dr,vr.p=Hr,vr.b=Nr,Dr&&(qt=1,vr.m=vn,vr.d=cn,vr.n=ei)}while(!qt);return Nr==wt.length?wt:F(wt,0,Nr)},B=function(At,wt,vr){vr<<=wt&7;var Jt=wt/8>>0;At[Jt]|=vr,At[Jt+1]|=vr>>>8},k=function(At,wt,vr){vr<<=wt&7;var Jt=wt/8>>0;At[Jt]|=vr,At[Jt+1]|=vr>>>8,At[Jt+2]|=vr>>>16},G=function(At,wt){for(var vr=[],Jt=0;Jt<At.length;++Jt)At[Jt]&&vr.push({s:Jt,f:At[Jt]});var Ut=vr.length,tr=vr.slice();if(!Ut)return[new x(0),0];if(Ut==1){var Ft=new x(vr[0].s+1);return Ft[vr[0].s]=1,[Ft,1]}vr.sort(function(He,Xe){return He.f-Xe.f}),vr.push({s:-1,f:25001});var qt=vr[0],Hr=vr[1],Nr=0,Dr=1,cn=2;for(vr[0]={s:-1,f:qt.f+Hr.f,l:qt,r:Hr};Dr!=Ut-1;)qt=vr[vr[Nr].f<vr[cn].f?Nr++:cn++],Hr=vr[Nr!=Dr&&vr[Nr].f<vr[cn].f?Nr++:cn++],vr[Dr++]={s:-1,f:qt.f+Hr.f,l:qt,r:Hr};for(var vn=tr[0].s,Jt=1;Jt<Ut;++Jt)tr[Jt].s>vn&&(vn=tr[Jt].s);var ei=new v(vn+1),qn=M(vr[Dr-1],ei,0);if(qn>wt){var Jt=0,fi=0,xi=qn-wt,Ni=1<<xi;for(tr.sort(function(Xe,rt){return ei[rt.s]-ei[Xe.s]||Xe.f-rt.f});Jt<Ut;++Jt){var Hi=tr[Jt].s;if(ei[Hi]>wt)fi+=Ni-(1<<qn-ei[Hi]),ei[Hi]=wt;else break}for(fi>>>=xi;fi>0;){var nt=tr[Jt].s;ei[nt]<wt?fi-=1<<wt-ei[nt]++-1:++Jt}for(;Jt>=0&&fi;--Jt){var Ne=tr[Jt].s;ei[Ne]==wt&&(--ei[Ne],++fi)}qn=wt}return[new x(ei),qn]},M=function zt(At,wt,vr){return At.s==-1?Math.max(zt(At.l,wt,vr+1),zt(At.r,wt,vr+1)):wt[At.s]=vr},j=function(At){for(var wt=At.length;wt&&!At[--wt];);for(var vr=new v(++wt),Jt=0,Ut=At[0],tr=1,Ft=function(Nr){vr[Jt++]=Nr},qt=1;qt<=wt;++qt)if(At[qt]==Ut&&qt!=wt)++tr;else{if(!Ut&&tr>2){for(;tr>138;tr-=138)Ft(32754);tr>2&&(Ft(tr>10?tr-11<<5|28690:tr-3<<5|12305),tr=0)}else if(tr>3){for(Ft(Ut),--tr;tr>6;tr-=6)Ft(8304);tr>2&&(Ft(tr-3<<5|8208),tr=0)}for(;tr--;)Ft(Ut);tr=1,Ut=At[qt]}return[vr.subarray(0,Jt),wt]},K=function(At,wt){for(var vr=0,Jt=0;Jt<wt.length;++Jt)vr+=At[Jt]*wt[Jt];return vr},z=function(At,wt,vr){var Jt=vr.length,Ut=I(wt+2);At[Ut]=Jt&255,At[Ut+1]=Jt>>>8,At[Ut+2]=At[Ut]^255,At[Ut+3]=At[Ut+1]^255;for(var tr=0;tr<Jt;++tr)At[Ut+tr+4]=vr[tr];return(Ut+4+Jt)*8},V=function(At,wt,vr,Jt,Ut,tr,Ft,qt,Hr,Nr,Dr){B(wt,Dr++,vr),++Ut[256];for(var cn=G(Ut,15),vn=cn[0],ei=cn[1],qn=G(tr,15),fi=qn[0],xi=qn[1],Ni=j(vn),Hi=Ni[0],nt=Ni[1],Ne=j(fi),He=Ne[0],Xe=Ne[1],rt=new v(19),Ze=0;Ze<Hi.length;++Ze)rt[Hi[Ze]&31]++;for(var Ze=0;Ze<He.length;++Ze)rt[He[Ze]&31]++;for(var st=G(rt,7),xt=st[0],pt=st[1],hr=19;hr>4&&!xt[l[hr-1]];--hr);var Zr=Nr+5<<3,Xr=K(Ut,A)+K(tr,b)+Ft,pn=K(Ut,vn)+K(tr,fi)+Ft+14+3*hr+K(rt,xt)+(2*rt[16]+3*rt[17]+7*rt[18]);if(Zr<=Xr&&Zr<=pn)return z(wt,Dr,At.subarray(Hr,Hr+Nr));var gr,Kn,Rr,Pn;if(B(wt,Dr,1+(pn<Xr)),Dr+=2,pn<Xr){gr=g(vn,ei,0),Kn=vn,Rr=g(fi,xi,0),Pn=fi;var an=g(xt,pt,0);B(wt,Dr,nt-257),B(wt,Dr+5,Xe-1),B(wt,Dr+10,hr-4),Dr+=14;for(var Ze=0;Ze<hr;++Ze)B(wt,Dr+3*Ze,xt[l[Ze]]);Dr+=3*hr;for(var Ur=[Hi,He],ii=0;ii<2;++ii)for(var _i=Ur[ii],Ze=0;Ze<_i.length;++Ze){var Gi=_i[Ze]&31;B(wt,Dr,an[Gi]),Dr+=xt[Gi],Gi>15&&(B(wt,Dr,_i[Ze]>>>5&127),Dr+=_i[Ze]>>>12)}}else gr=w,Kn=A,Rr=C,Pn=b;for(var Ze=0;Ze<qt;++Ze)if(Jt[Ze]>255){var Gi=Jt[Ze]>>>18&31;k(wt,Dr,gr[Gi+257]),Dr+=Kn[Gi+257],Gi>7&&(B(wt,Dr,Jt[Ze]>>>23&31),Dr+=f[Gi]);var tn=Jt[Ze]&31;k(wt,Dr,Rr[tn]),Dr+=Pn[tn],tn>3&&(k(wt,Dr,Jt[Ze]>>>5&8191),Dr+=d[tn])}else k(wt,Dr,gr[Jt[Ze]]),Dr+=Kn[Jt[Ze]];return k(wt,Dr,gr[256]),Dr+Kn[256]},Q=new m([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),X=new x(0),te=function(At,wt,vr,Jt,Ut,tr){var Ft=At.length,qt=new x(Jt+Ft+5*(1+Math.floor(Ft/7e3))+Ut),Hr=qt.subarray(Jt,qt.length-Ut),Nr=0;if(!wt||Ft<8)for(var Dr=0;Dr<=Ft;Dr+=65535){var cn=Dr+65535;cn<Ft?Nr=z(Hr,Nr,At.subarray(Dr,cn)):(Hr[Dr]=tr,Nr=z(Hr,Nr,At.subarray(Dr,Ft)))}else{for(var vn=Q[wt-1],ei=vn>>>13,qn=vn&8191,fi=(1<<vr)-1,xi=new v(32768),Ni=new v(fi+1),Hi=Math.ceil(vr/3),nt=2*Hi,Ne=function(Ar){return(At[Ar]^At[Ar+1]<<Hi^At[Ar+2]<<nt)&fi},He=new m(25e3),Xe=new v(288),rt=new v(32),Ze=0,st=0,Dr=0,xt=0,pt=0,hr=0;Dr<Ft;++Dr){var Zr=Ne(Dr),Xr=Dr&32767,pn=Ni[Zr];if(xi[Xr]=pn,Ni[Zr]=Xr,pt<=Dr){var gr=Ft-Dr;if((Ze>7e3||xt>24576)&&gr>423){Nr=V(At,Hr,0,He,Xe,rt,st,xt,hr,Dr-hr,Nr),xt=Ze=st=0,hr=Dr;for(var Kn=0;Kn<286;++Kn)Xe[Kn]=0;for(var Kn=0;Kn<30;++Kn)rt[Kn]=0}var Rr=2,Pn=0,an=qn,Ur=Xr-pn&32767;if(gr>2&&Zr==Ne(Dr-Ur))for(var ii=Math.min(ei,gr)-1,_i=Math.min(32767,Dr),Gi=Math.min(258,gr);Ur<=_i&&--an&&Xr!=pn;){if(At[Dr+Rr]==At[Dr+Rr-Ur]){for(var tn=0;tn<Gi&&At[Dr+tn]==At[Dr+tn-Ur];++tn);if(tn>Rr){if(Rr=tn,Pn=Ur,tn>ii)break;for(var Tn=Math.min(Ur,tn-2),Vn=0,Kn=0;Kn<Tn;++Kn){var Xt=Dr-Ur+Kn+32768&32767,It=xi[Xt],Pt=Xt-It+32768&32767;Pt>Vn&&(Vn=Pt,pn=Xt)}}}Xr=pn,pn=xi[Xr],Ur+=Xr-pn+32768&32767}if(Pn){He[xt++]=268435456|a[Rr]<<18|r[Pn];var Kt=a[Rr]&31,Gt=r[Pn]&31;st+=f[Kt]+d[Gt],++Xe[257+Kt],++rt[Gt],pt=Dr+Rr,++Ze}else He[xt++]=At[Dr],++Xe[At[Dr]]}}Nr=V(At,Hr,tr,He,Xe,rt,st,xt,hr,Dr-hr,Nr),tr||(Nr=z(Hr,Nr,X))}return F(qt,0,Jt+I(Nr)+Ut)},$=function(){for(var zt=new m(256),At=0;At<256;++At){for(var wt=At,vr=9;--vr;)wt=(wt&1&&3988292384)^wt>>>1;zt[At]=wt}return zt}(),le=function(){var At=4294967295;return{p:function(vr){for(var Jt=At,Ut=0;Ut<vr.length;++Ut)Jt=$[Jt&255^vr[Ut]]^Jt>>>8;At=Jt},d:function(){return At^4294967295}}},re=function(){var At=1,wt=0;return{p:function(Jt){for(var Ut=At,tr=wt,Ft=Jt.length,qt=0;qt!=Ft;){for(var Hr=Math.min(qt+5552,Ft);qt<Hr;++qt)Ut+=Jt[qt],tr+=Ut;Ut%=65521,tr%=65521}At=Ut,wt=tr},d:function(){return(At>>>8<<16|(wt&255)<<8|wt>>>8)+((At&255)<<23)*2}}},Se=function(At,wt,vr,Jt,Ut){return te(At,wt.level==null?6:wt.level,wt.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(At.length)))*1.5):12+wt.mem,vr,Jt,!Ut)},Re=function(At,wt){var vr={};for(var Jt in At)vr[Jt]=At[Jt];for(var Jt in wt)vr[Jt]=wt[Jt];return vr},Pe=function(At,wt,vr){for(var Jt=At(),Ut=At.toString(),tr=Ut.slice(Ut.indexOf("[")+1,Ut.lastIndexOf("]")).replace(/ /g,"").split(","),Ft=0;Ft<Jt.length;++Ft){var qt=Jt[Ft],Hr=tr[Ft];if(typeof qt=="function"){wt+=";"+Hr+"=";var Nr=qt.toString();if(qt.prototype)if(Nr.indexOf("[native code]")!=-1){var Dr=Nr.indexOf(" ",8)+1;wt+=Nr.slice(Dr,Nr.indexOf("(",Dr))}else{wt+=Nr;for(var cn in qt.prototype)wt+=";"+Hr+".prototype."+cn+"="+qt.prototype[cn].toString()}else wt+=Nr}else vr[Hr]=qt}return[wt,vr]},Je=[],Ge=function(At){var wt=[];for(var vr in At)(At[vr]instanceof x||At[vr]instanceof v||At[vr]instanceof m)&&wt.push((At[vr]=new At[vr].constructor(At[vr])).buffer);return wt},ct=function(At,wt,vr,Jt){var Ut;if(!Je[vr]){for(var tr="",Ft={},qt=At.length-1,Hr=0;Hr<qt;++Hr)Ut=Pe(At[Hr],tr,Ft),tr=Ut[0],Ft=Ut[1];Je[vr]=Pe(At[qt],tr,Ft)}var Nr=Re({},Je[vr][1]);return p(Je[vr][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+wt.toString()+"}",vr,Nr,Ge(Nr),Jt)},Ue=function(){return[x,v,m,f,d,l,t,u,E,_,s,g,T,S,O,I,F,P,ut,ee,fe]},ae=function(){return[x,v,m,f,d,l,a,r,w,A,C,b,s,Q,X,g,B,k,G,M,j,K,z,V,I,F,te,Se,Bt,ee]},lt=function(){return[tt,Fe,Le,le,$]},pe=function(){return[gt,at]},J=function(){return[mt,Le,re]},Y=function(){return[et]},ee=function(At){return postMessage(At,[At.buffer])},fe=function(At){return At&&At.size&&new x(At.size)},we=function(At,wt,vr,Jt,Ut,tr){var Ft=ct(vr,Jt,Ut,function(qt,Hr){Ft.terminate(),tr(qt,Hr)});return wt.consume||(At=new x(At)),Ft.postMessage([At,wt],[At.buffer]),function(){Ft.terminate()}},Ce=function(At){return At.ondata=function(wt,vr){return postMessage([wt,vr],[wt.buffer])},function(wt){return At.push(wt.data[0],wt.data[1])}},_e=function(At,wt,vr,Jt,Ut){var tr,Ft=ct(At,Jt,Ut,function(qt,Hr){qt?(Ft.terminate(),wt.ondata.call(wt,qt)):(Hr[1]&&Ft.terminate(),wt.ondata.call(wt,qt,Hr[0],Hr[1]))});Ft.postMessage(vr),wt.push=function(qt,Hr){if(tr)throw"stream finished";if(!wt.ondata)throw"no stream handler";Ft.postMessage([qt,tr=Hr],[qt.buffer])},wt.terminate=function(){Ft.terminate()}},he=function(At,wt){return At[wt]|At[wt+1]<<8},ye=function(At,wt){return(At[wt]|At[wt+1]<<8|At[wt+2]<<16)+(At[wt+3]<<23)*2},Le=function(At,wt,vr){for(;vr;++wt)At[wt]=vr,vr>>>=8},tt=function(At,wt){var vr=wt.filename;if(At[0]=31,At[1]=139,At[2]=8,At[8]=wt.level<2?4:wt.level==9?2:0,At[9]=3,wt.mtime!=0&&Le(At,4,Math.floor(new Date(wt.mtime||Date.now())/1e3)),vr){At[3]=8;for(var Jt=0;Jt<=vr.length;++Jt)At[Jt+10]=vr.charCodeAt(Jt)}},gt=function(At){if(At[0]!=31||At[1]!=139||At[2]!=8)throw"invalid gzip data";var wt=At[3],vr=10;wt&4&&(vr+=At[10]|(At[11]<<8)+2);for(var Jt=(wt>>3&1)+(wt>>4&1);Jt>0;Jt-=!At[vr++]);return vr+(wt&2)},at=function(At){var wt=At.length;return(At[wt-4]|At[wt-3]<<8|At[wt-2]<<16)+2*(At[wt-1]<<23)},Fe=function(At){return 10+(At.filename&&At.filename.length+1||0)},mt=function(At,wt){var vr=wt.level,Jt=vr==0?0:vr<6?1:vr==9?3:2;At[0]=120,At[1]=Jt<<6|(Jt?32-2*Jt:1)},et=function(At){if((At[0]&15)!=8||At[0]>>>4>7||(At[0]<<8|At[1])%31)throw"invalid zlib data";if(At[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function St(zt,At){return!At&&typeof zt=="function"&&(At=zt,zt={}),this.ondata=At,zt}var jt=function(){function zt(At,wt){!wt&&typeof At=="function"&&(wt=At,At={}),this.ondata=wt,this.o=At||{}}return zt.prototype.p=function(At,wt){this.ondata(Se(At,this.o,0,0,!wt),wt)},zt.prototype.push=function(At,wt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=wt,this.p(At,wt||!1)},zt}(),Mt=function(){function zt(At,wt){_e([ae,function(){return[Ce,jt]}],this,St.call(this,At,wt),function(vr){var Jt=new jt(vr.data);onmessage=Ce(Jt)},6)}return zt}();function Ot(zt,At,wt){if(wt||(wt=At,At={}),typeof wt!="function")throw"no callback";return we(zt,At,[ae],function(vr){return ee(Bt(vr.data[0],vr.data[1]))},0,wt)}function Bt(zt,At){return At===void 0&&(At={}),Se(zt,At,0,0)}var Ke=function(){function zt(At){this.s={},this.p=new x(0),this.ondata=At}return zt.prototype.e=function(At){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var wt=this.p.length,vr=new x(wt+At.length);vr.set(this.p),vr.set(At,wt),this.p=vr},zt.prototype.c=function(At){this.d=this.s.i=At||!1;var wt=this.s.b,vr=P(this.p,this.o,this.s);this.ondata(F(vr,wt,this.s.b),this.d),this.o=F(vr,this.s.b-32768),this.s.b=this.o.length,this.p=F(this.p,this.s.p/8>>0),this.s.p&=7},zt.prototype.push=function(At,wt){this.e(At),this.c(wt)},zt}(),de=function(){function zt(At){this.ondata=At,_e([Ue,function(){return[Ce,Ke]}],this,0,function(){var wt=new Ke;onmessage=Ce(wt)},7)}return zt}();function se(zt,At,wt){if(wt||(wt=At,At={}),typeof wt!="function")throw"no callback";return we(zt,At,[Ue],function(vr){return ee(ut(vr.data[0],fe(vr.data[1])))},1,wt)}function ut(zt,At){return P(zt,At)}var qe=function(){function zt(At,wt){this.c=le(),this.l=0,this.v=1,jt.call(this,At,wt)}return zt.prototype.push=function(At,wt){jt.prototype.push.call(this,At,wt)},zt.prototype.p=function(At,wt){this.c.p(At),this.l+=At.length;var vr=Se(At,this.o,this.v&&Fe(this.o),wt&&8,!wt);this.v&&(tt(vr,this.o),this.v=0),wt&&(Le(vr,vr.length-8,this.c.d()),Le(vr,vr.length-4,this.l)),this.ondata(vr,wt)},zt}(),me=function(){function zt(At,wt){_e([ae,lt,function(){return[Ce,jt,qe]}],this,St.call(this,At,wt),function(vr){var Jt=new qe(vr.data);onmessage=Ce(Jt)},8)}return zt}();function Wt(zt,At,wt){if(wt||(wt=At,At={}),typeof wt!="function")throw"no callback";return we(zt,At,[ae,lt,function(){return[dr]}],function(vr){return ee(dr(vr.data[0],vr.data[1]))},2,wt)}function dr(zt,At){At===void 0&&(At={});var wt=le(),vr=zt.length;wt.p(zt);var Jt=Se(zt,At,Fe(At),8),Ut=Jt.length;return tt(Jt,At),Le(Jt,Ut-8,wt.d()),Le(Jt,Ut-4,vr),Jt}var vt=function(){function zt(At){this.v=1,Ke.call(this,At)}return zt.prototype.push=function(At,wt){if(Ke.prototype.e.call(this,At),this.v){var vr=gt(this.p);if(vr>=this.p.length&&!wt)return;this.p=this.p.subarray(vr),this.v=0}if(wt){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Ke.prototype.c.call(this,wt)},zt}(),rr=function(){function zt(At){this.ondata=At,_e([Ue,pe,function(){return[Ce,Ke,vt]}],this,0,function(){var wt=new vt;onmessage=Ce(wt)},9)}return zt}();function ur(zt,At,wt){if(wt||(wt=At,At={}),typeof wt!="function")throw"no callback";return we(zt,At,[Ue,pe,function(){return[mn]}],function(vr){return ee(mn(vr.data[0]))},3,wt)}function mn(zt,At){return P(zt.subarray(gt(zt),-8),At||new x(at(zt)))}var sr=function(){function zt(At,wt){this.c=re(),this.v=1,jt.call(this,At,wt)}return zt.prototype.push=function(At,wt){jt.prototype.push.call(this,At,wt)},zt.prototype.p=function(At,wt){this.c.p(At);var vr=Se(At,this.o,this.v&&2,wt&&4,!wt);this.v&&(mt(vr,this.o),this.v=0),wt&&Le(vr,vr.length-4,this.c.d()),this.ondata(vr,wt)},zt}(),xr=function(){function zt(At,wt){_e([ae,J,function(){return[Ce,jt,sr]}],this,St.call(this,At,wt),function(vr){var Jt=new sr(vr.data);onmessage=Ce(Jt)},10)}return zt}();function pr(zt,At,wt){if(wt||(wt=At,At={}),typeof wt!="function")throw"no callback";return we(zt,At,[ae,J,function(){return[Zt]}],function(vr){return ee(Zt(vr.data[0],vr.data[1]))},4,wt)}function Zt(zt,At){At===void 0&&(At={});var wt=re();wt.p(zt);var vr=Se(zt,At,2,4);return mt(vr,At),Le(vr,vr.length-4,wt.d()),vr}var Ct=function(){function zt(At){this.v=1,Ke.call(this,At)}return zt.prototype.push=function(At,wt){if(Ke.prototype.e.call(this,At),this.v){if(this.p.length<2&&!wt)return;this.p=this.p.subarray(2),this.v=0}if(wt){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Ke.prototype.c.call(this,wt)},zt}(),on=function(){function zt(At){this.ondata=At,_e([Ue,Y,function(){return[Ce,Ke,Ct]}],this,0,function(){var wt=new Ct;onmessage=Ce(wt)},11)}return zt}();function Mn(zt,At,wt){if(wt||(wt=At,At={}),typeof wt!="function")throw"no callback";return we(zt,At,[Ue,Y,function(){return[Xn]}],function(vr){return ee(Xn(vr.data[0],fe(vr.data[1])))},5,wt)}function Xn(zt,At){return P((et(zt),zt.subarray(2,-4)),At)}var oi=function(){function zt(At){this.G=vt,this.I=Ke,this.Z=Ct,this.ondata=At}return zt.prototype.push=function(At,wt){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(At,wt);else{if(this.p&&this.p.length){var vr=new x(this.p.length+At.length);vr.set(this.p),vr.set(At,this.p.length)}else this.p=At;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,wt),this.p=null}}},zt}(),Ui=function(){function zt(At){this.G=rr,this.I=de,this.Z=on,this.ondata=At}return zt.prototype.push=function(At,wt){oi.prototype.push.call(this,At,wt)},zt}();function Un(zt,At,wt){if(wt||(wt=At,At={}),typeof wt!="function")throw"no callback";return zt[0]==31&&zt[1]==139&&zt[2]==8?ur(zt,At,wt):(zt[0]&15)!=8||zt[0]>>4>7||(zt[0]<<8|zt[1])%31?se(zt,At,wt):Mn(zt,At,wt)}function Qn(zt,At){return zt[0]==31&&zt[1]==139&&zt[2]==8?mn(zt,At):(zt[0]&15)!=8||zt[0]>>4>7||(zt[0]<<8|zt[1])%31?ut(zt,At):Xn(zt,At)}var $t=function zt(At,wt,vr,Jt){for(var Ut in At){var tr=At[Ut],Ft=wt+Ut;tr instanceof x?vr[Ft]=[tr,Jt]:Array.isArray(tr)?vr[Ft]=[tr[0],Re(Jt,tr[1])]:zt(tr,Ft+"/",vr,Jt)}};function Nt(zt,At){var wt=zt.length;if(!At&&typeof TextEncoder!="undefined")return new TextEncoder().encode(zt);for(var vr=new x(zt.length+(zt.length>>>1)),Jt=0,Ut=function(Nr){vr[Jt++]=Nr},tr=0;tr<wt;++tr){if(Jt+5>vr.length){var Ft=new x(Jt+8+(wt-tr<<1));Ft.set(vr),vr=Ft}var qt=zt.charCodeAt(tr);qt<128||At?Ut(qt):qt<2048?(Ut(192|qt>>>6),Ut(128|qt&63)):qt>55295&&qt<57344?(qt=65536+(qt&1023<<10)|zt.charCodeAt(++tr)&1023,Ut(240|qt>>>18),Ut(128|qt>>>12&63),Ut(128|qt>>>6&63),Ut(128|qt&63)):(Ut(224|qt>>>12),Ut(128|qt>>>6&63),Ut(128|qt&63))}return F(vr,0,Jt)}function Me(zt,At){var wt="";if(!At&&typeof TextDecoder!="undefined")return new TextDecoder().decode(zt);for(var vr=0;vr<zt.length;){var Jt=zt[vr++];Jt<128||At?wt+=String.fromCharCode(Jt):Jt<224?wt+=String.fromCharCode((Jt&31)<<6|zt[vr++]&63):Jt<240?wt+=String.fromCharCode((Jt&15)<<12|(zt[vr++]&63)<<6|zt[vr++]&63):(Jt=((Jt&15)<<18|(zt[vr++]&63)<<12|(zt[vr++]&63)<<6|zt[vr++]&63)-65536,wt+=String.fromCharCode(55296|Jt>>10,56320|Jt&1023))}return wt}var ke=function(At,wt){return wt+30+he(At,wt+26)+he(At,wt+28)},Be=function(At,wt,vr){var Jt=he(At,wt+28),Ut=Me(At.subarray(wt+46,wt+46+Jt),!(he(At,wt+8)&2048)),tr=wt+46+Jt,Ft=vr?it(At,tr):[ye(At,wt+20),ye(At,wt+24),ye(At,wt+42)],qt=Ft[0],Hr=Ft[1],Nr=Ft[2];return[he(At,wt+10),qt,Hr,Ut,tr+he(At,wt+30)+he(At,wt+32),Nr]},it=function(At,wt){for(;he(At,wt)!=1;wt+=4+he(At,wt+2));return[ye(At,wt+12),ye(At,wt+4),ye(At,wt+20)]},yt=function(At,wt,vr,Jt,Ut,tr,Ft,qt,Hr,Nr){var Dr=tr.length,cn=Jt.length;Le(At,wt,Hr!=null?33639248:67324752),wt+=4,Hr!=null&&(At[wt]=20,wt+=2),At[wt]=20,wt+=2,At[wt++]=Nr==8&&(qt.level==1?6:qt.level<6?4:qt.level==9?2:0),At[wt++]=Ft&&8,At[wt]=Nr,wt+=2;var vn=new Date(qt.mtime||Date.now()),ei=vn.getFullYear()-1980;if(ei<0||ei>119)throw"date not in range 1980-2099";Le(At,wt,(ei<<24)*2|vn.getMonth()+1<<21|vn.getDate()<<16|vn.getHours()<<11|vn.getMinutes()<<5|vn.getSeconds()>>>1),wt+=4,Le(At,wt,vr),Le(At,wt+4,cn),Le(At,wt+8,Ut),Le(At,wt+12,Dr),wt+=16,Hr!=null&&(Le(At,wt+=10,Hr),wt+=4),At.set(tr,wt),wt+=Dr,Hr==null&&At.set(Jt,wt)},Tt=function(At,wt,vr,Jt,Ut){Le(At,wt,101010256),Le(At,wt+8,vr),Le(At,wt+10,vr),Le(At,wt+12,Jt),Le(At,wt+16,Ut)};function Yt(zt,At,wt){if(wt||(wt=At,At={}),typeof wt!="function")throw"no callback";var vr={};$t(zt,"",vr,At);var Jt=Object.keys(vr),Ut=Jt.length,tr=0,Ft=0,qt=Ut,Hr=new Array(Ut),Nr=[],Dr=function(){for(var fi=0;fi<Nr.length;++fi)Nr[fi]()},cn=function(){var fi=new x(Ft+22),xi=tr,Ni=Ft-tr;Ft=0;for(var Hi=0;Hi<qt;++Hi){var nt=Hr[Hi];try{yt(fi,Ft,nt.c,nt.d,nt.m,nt.n,nt.u,nt.p,null,nt.t),yt(fi,tr,nt.c,nt.d,nt.m,nt.n,nt.u,nt.p,Ft,nt.t),tr+=46+nt.n.length,Ft+=30+nt.n.length+nt.d.length}catch(Ne){return wt(Ne,null)}}Tt(fi,tr,Hr.length,Ni,xi),wt(null,fi)};Ut||cn();for(var vn=function(fi){var xi=Jt[fi],Ni=vr[xi],Hi=Ni[0],nt=Ni[1],Ne=le(),He=Hi.length;Ne.p(Hi);var Xe=Nt(xi),rt=Xe.length,Ze=nt.level==0?0:8,st=function(pt,hr){if(pt)Dr(),wt(pt,null);else{var Zr=hr.length;Hr[fi]={t:Ze,d:hr,m:He,c:Ne.d(),u:xi.length!=Zr,n:Xe,p:nt},tr+=30+rt+Zr,Ft+=76+2*rt+Zr,--Ut||cn()}};if(Xe.length>65535&&st("filename too long",null),!Ze)st(null,Hi);else if(He<16e4)try{st(null,Bt(Hi,nt))}catch(xt){st(xt,null)}else Nr.push(Ot(Hi,nt,st))},ei=0;ei<qt;++ei)vn(ei);return Dr}function Pr(zt,At){At===void 0&&(At={});var wt={},vr=[];$t(zt,"",wt,At);var Jt=0,Ut=0;for(var tr in wt){var Ft=wt[tr],qt=Ft[0],Hr=Ft[1],Nr=Hr.level==0?0:8,Dr=Nt(tr),cn=Dr.length;if(Dr.length>65535)throw"filename too long";var vn=Nr?Bt(qt,Hr):qt,ei=vn.length,qn=le();qn.p(qt),vr.push({t:Nr,d:vn,m:qt.length,c:qn.d(),u:tr.length!=cn,n:Dr,o:Jt,p:Hr}),Jt+=30+cn+ei,Ut+=76+2*cn+ei}for(var fi=new x(Ut+22),xi=Jt,Ni=Ut-Jt,Hi=0;Hi<vr.length;++Hi){var nt=vr[Hi];yt(fi,nt.o,nt.c,nt.d,nt.m,nt.n,nt.u,nt.p,null,nt.t),yt(fi,Jt,nt.c,nt.d,nt.m,nt.n,nt.u,nt.p,nt.o,nt.t),Jt+=46+nt.n.length}return Tt(fi,Jt,vr.length,Ni,xi),fi}function $r(zt,At){if(typeof At!="function")throw"no callback";for(var wt=[],vr=function(){for(var vn=0;vn<wt.length;++vn)wt[vn]()},Jt={},Ut=zt.length-22;ye(zt,Ut)!=101010256;--Ut)if(!Ut||zt.length-Ut>65558){At("invalid zip file",null);return}var tr=he(zt,Ut+8);tr||At(null,{});var Ft=tr,qt=ye(zt,Ut+16),Hr=qt==4294967295;if(Hr){if(Ut=ye(zt,Ut-12),ye(zt,Ut)!=101075792)throw"invalid zip file";Ft=tr=ye(zt,Ut+32),qt=ye(zt,Ut+48)}for(var Nr=function(vn){var ei=Be(zt,qt,Hr),qn=ei[0],fi=ei[1],xi=ei[2],Ni=ei[3],Hi=ei[4],nt=ei[5],Ne=ke(zt,nt);qt=Hi;var He=function(Ze,st){Ze?(vr(),At(Ze,null)):(Jt[Ni]=st,--tr||At(null,Jt))};if(!qn)He(null,F(zt,Ne,Ne+fi));else if(qn==8){var Xe=zt.subarray(Ne,Ne+fi);if(fi<32e4)try{He(null,ut(Xe,new x(xi)))}catch(rt){He(rt,null)}else wt.push(se(Xe,{size:xi},He))}else He("unknown compression type "+qn,null)},Dr=0;Dr<Ft;++Dr)Nr(Dr);return vr}function An(zt){for(var At={},wt=zt.length-22;ye(zt,wt)!=101010256;--wt)if(!wt||zt.length-wt>65558)throw"invalid zip file";var vr=he(zt,wt+8);if(!vr)return{};var Jt=ye(zt,wt+16),Ut=Jt==4294967295;if(Ut){if(wt=ye(zt,wt-12),ye(zt,wt)!=101075792)throw"invalid zip file";vr=ye(zt,wt+32),Jt=ye(zt,wt+48)}for(var tr=0;tr<vr;++tr){var Ft=Be(zt,Jt,Ut),qt=Ft[0],Hr=Ft[1],Nr=Ft[2],Dr=Ft[3],cn=Ft[4],vn=Ft[5],ei=ke(zt,vn);if(Jt=cn,!qt)At[Dr]=F(zt,ei,ei+Hr);else if(qt==8)At[Dr]=ut(zt.subarray(ei,ei+Hr),new x(Nr));else throw"unknown compression type "+qt}return At}},cv67:function(R,D,i){(function(y,p){R.exports=D=p(i("Ib8C"))})(this,function(y){return function(p){var x=y,v=x.lib,m=v.WordArray,f=v.Hasher,d=x.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 A=this._hash.words,b=r[s+0],w=r[s+1],E=r[s+2],C=r[s+3],_=r[s+4],T=r[s+5],S=r[s+6],O=r[s+7],I=r[s+8],F=r[s+9],P=r[s+10],B=r[s+11],k=r[s+12],G=r[s+13],M=r[s+14],j=r[s+15],K=A[0],z=A[1],V=A[2],Q=A[3];K=n(K,z,V,Q,b,7,l[0]),Q=n(Q,K,z,V,w,12,l[1]),V=n(V,Q,K,z,E,17,l[2]),z=n(z,V,Q,K,C,22,l[3]),K=n(K,z,V,Q,_,7,l[4]),Q=n(Q,K,z,V,T,12,l[5]),V=n(V,Q,K,z,S,17,l[6]),z=n(z,V,Q,K,O,22,l[7]),K=n(K,z,V,Q,I,7,l[8]),Q=n(Q,K,z,V,F,12,l[9]),V=n(V,Q,K,z,P,17,l[10]),z=n(z,V,Q,K,B,22,l[11]),K=n(K,z,V,Q,k,7,l[12]),Q=n(Q,K,z,V,G,12,l[13]),V=n(V,Q,K,z,M,17,l[14]),z=n(z,V,Q,K,j,22,l[15]),K=t(K,z,V,Q,w,5,l[16]),Q=t(Q,K,z,V,S,9,l[17]),V=t(V,Q,K,z,B,14,l[18]),z=t(z,V,Q,K,b,20,l[19]),K=t(K,z,V,Q,T,5,l[20]),Q=t(Q,K,z,V,P,9,l[21]),V=t(V,Q,K,z,j,14,l[22]),z=t(z,V,Q,K,_,20,l[23]),K=t(K,z,V,Q,F,5,l[24]),Q=t(Q,K,z,V,M,9,l[25]),V=t(V,Q,K,z,C,14,l[26]),z=t(z,V,Q,K,I,20,l[27]),K=t(K,z,V,Q,G,5,l[28]),Q=t(Q,K,z,V,E,9,l[29]),V=t(V,Q,K,z,O,14,l[30]),z=t(z,V,Q,K,k,20,l[31]),K=a(K,z,V,Q,T,4,l[32]),Q=a(Q,K,z,V,I,11,l[33]),V=a(V,Q,K,z,B,16,l[34]),z=a(z,V,Q,K,M,23,l[35]),K=a(K,z,V,Q,w,4,l[36]),Q=a(Q,K,z,V,_,11,l[37]),V=a(V,Q,K,z,O,16,l[38]),z=a(z,V,Q,K,P,23,l[39]),K=a(K,z,V,Q,G,4,l[40]),Q=a(Q,K,z,V,b,11,l[41]),V=a(V,Q,K,z,C,16,l[42]),z=a(z,V,Q,K,S,23,l[43]),K=a(K,z,V,Q,F,4,l[44]),Q=a(Q,K,z,V,k,11,l[45]),V=a(V,Q,K,z,j,16,l[46]),z=a(z,V,Q,K,E,23,l[47]),K=e(K,z,V,Q,b,6,l[48]),Q=e(Q,K,z,V,O,10,l[49]),V=e(V,Q,K,z,M,15,l[50]),z=e(z,V,Q,K,T,21,l[51]),K=e(K,z,V,Q,k,6,l[52]),Q=e(Q,K,z,V,C,10,l[53]),V=e(V,Q,K,z,P,15,l[54]),z=e(z,V,Q,K,w,21,l[55]),K=e(K,z,V,Q,I,6,l[56]),Q=e(Q,K,z,V,j,10,l[57]),V=e(V,Q,K,z,S,15,l[58]),z=e(z,V,Q,K,G,21,l[59]),K=e(K,z,V,Q,_,6,l[60]),Q=e(Q,K,z,V,B,10,l[61]),V=e(V,Q,K,z,E,15,l[62]),z=e(z,V,Q,K,F,21,l[63]),A[0]=A[0]+K|0,A[1]=A[1]+z|0,A[2]=A[2]+V|0,A[3]=A[3]+Q|0},_doFinalize:function(){var r=this._data,s=r.words,c=this._nDataBytes*8,h=r.sigBytes*8;s[h>>>5]|=128<<24-h%32;var g=p.floor(c/4294967296),A=c;s[(h+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,s[(h+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,r.sigBytes=(s.length+1)*4,this._process();for(var b=this._hash,w=b.words,E=0;E<4;E++){var C=w[E];w[E]=(C<<8|C>>>24)&16711935|(C<<24|C>>>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,A){var b=u+(r&s|~r&c)+h+A;return(b<<g|b>>>32-g)+r}function t(u,r,s,c,h,g,A){var b=u+(r&c|s&~c)+h+A;return(b<<g|b>>>32-g)+r}function a(u,r,s,c,h,g,A){var b=u+(r^s^c)+h+A;return(b<<g|b>>>32-g)+r}function e(u,r,s,c,h,g,A){var b=u+(s^(r|~c))+h+A;return(b<<g|b>>>32-g)+r}x.MD5=f._createHelper(o),x.HmacMD5=f._createHmacHelper(o)}(Math),y.MD5})},czTT:function(R,D,i){},d4KN:function(R,D,i){var y=i("ProS"),p=i("bYtY");function x(v,m){p.each(m,function(f){f.update="updateView",y.registerAction(f,function(d,l){var o={};return l.eachComponent({mainType:"series",subType:v,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}})})}R.exports=x},dBmv:function(R,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(R,D,i){var y=i("NykK"),p=i("shjB"),x=i("ExA7"),v="[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]",A="[object Float64Array]",b="[object Int8Array]",w="[object Int16Array]",E="[object Int32Array]",C="[object Uint8Array]",_="[object Uint8ClampedArray]",T="[object Uint16Array]",S="[object Uint32Array]",O={};O[g]=O[A]=O[b]=O[w]=O[E]=O[C]=O[_]=O[T]=O[S]=!0,O[v]=O[m]=O[c]=O[f]=O[h]=O[d]=O[l]=O[o]=O[n]=O[t]=O[a]=O[e]=O[u]=O[r]=O[s]=!1;function I(F){return x(F)&&p(F.length)&&!!O[y(F)]}R.exports=I},"dF/Y":function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="DownloadOutlined";var d=D.a=p.forwardRef(f)},dMvE:function(R,D){var i={linear:function(x){return x},quadraticIn:function(x){return x*x},quadraticOut:function(x){return x*(2-x)},quadraticInOut:function(x){return(x*=2)<1?.5*x*x:-.5*(--x*(x-2)-1)},cubicIn:function(x){return x*x*x},cubicOut:function(x){return--x*x*x+1},cubicInOut:function(x){return(x*=2)<1?.5*x*x*x:.5*((x-=2)*x*x+2)},quarticIn:function(x){return x*x*x*x},quarticOut:function(x){return 1- --x*x*x*x},quarticInOut:function(x){return(x*=2)<1?.5*x*x*x*x:-.5*((x-=2)*x*x*x-2)},quinticIn:function(x){return x*x*x*x*x},quinticOut:function(x){return--x*x*x*x*x+1},quinticInOut:function(x){return(x*=2)<1?.5*x*x*x*x*x:.5*((x-=2)*x*x*x*x+2)},sinusoidalIn:function(x){return 1-Math.cos(x*Math.PI/2)},sinusoidalOut:function(x){return Math.sin(x*Math.PI/2)},sinusoidalInOut:function(x){return .5*(1-Math.cos(Math.PI*x))},exponentialIn:function(x){return x===0?0:Math.pow(1024,x-1)},exponentialOut:function(x){return x===1?1:1-Math.pow(2,-10*x)},exponentialInOut:function(x){return x===0?0:x===1?1:(x*=2)<1?.5*Math.pow(1024,x-1):.5*(-Math.pow(2,-10*(x-1))+2)},circularIn:function(x){return 1-Math.sqrt(1-x*x)},circularOut:function(x){return Math.sqrt(1- --x*x)},circularInOut:function(x){return(x*=2)<1?-.5*(Math.sqrt(1-x*x)-1):.5*(Math.sqrt(1-(x-=2)*x)+1)},elasticIn:function(x){var v,m=.1,f=.4;return x===0?0:x===1?1:(!m||m<1?(m=1,v=f/4):v=f*Math.asin(1/m)/(2*Math.PI),-(m*Math.pow(2,10*(x-=1))*Math.sin((x-v)*(2*Math.PI)/f)))},elasticOut:function(x){var v,m=.1,f=.4;return x===0?0:x===1?1:(!m||m<1?(m=1,v=f/4):v=f*Math.asin(1/m)/(2*Math.PI),m*Math.pow(2,-10*x)*Math.sin((x-v)*(2*Math.PI)/f)+1)},elasticInOut:function(x){var v,m=.1,f=.4;return x===0?0:x===1?1:(!m||m<1?(m=1,v=f/4):v=f*Math.asin(1/m)/(2*Math.PI),(x*=2)<1?-.5*(m*Math.pow(2,10*(x-=1))*Math.sin((x-v)*(2*Math.PI)/f)):m*Math.pow(2,-10*(x-=1))*Math.sin((x-v)*(2*Math.PI)/f)*.5+1)},backIn:function(x){var v=1.70158;return x*x*((v+1)*x-v)},backOut:function(x){var v=1.70158;return--x*x*((v+1)*x+v)+1},backInOut:function(x){var v=1.70158*1.525;return(x*=2)<1?.5*(x*x*((v+1)*x-v)):.5*((x-=2)*x*((v+1)*x+v)+2)},bounceIn:function(x){return 1-i.bounceOut(1-x)},bounceOut:function(x){return x<1/2.75?7.5625*x*x:x<2/2.75?7.5625*(x-=1.5/2.75)*x+.75:x<2.5/2.75?7.5625*(x-=2.25/2.75)*x+.9375:7.5625*(x-=2.625/2.75)*x+.984375},bounceInOut:function(x){return x<.5?i.bounceIn(x*2)*.5:i.bounceOut(x*2-1)*.5+.5}},y=i;R.exports=y},dQei:function(R,D){for(var i={glog:function(x){if(x<1)throw new Error("glog("+x+")");return i.LOG_TABLE[x]},gexp:function(x){for(;x<0;)x+=255;for(;x>=256;)x-=255;return i.EXP_TABLE[x]},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;R.exports=i},dWSS:function(R,D,i){var y=i("dQei");function p(x,v){if(x.length==null)throw new Error(x.length+"/"+v);for(var m=0;m<x.length&&x[m]==0;)m++;this.num=new Array(x.length-m+v);for(var f=0;f<x.length-m;f++)this.num[f]=x[f+m]}p.prototype={get:function(v){return this.num[v]},getLength:function(){return this.num.length},multiply:function(v){for(var m=new Array(this.getLength()+v.getLength()-1),f=0;f<this.getLength();f++)for(var d=0;d<v.getLength();d++)m[f+d]^=y.gexp(y.glog(this.get(f))+y.glog(v.get(d)));return new p(m,0)},mod:function(v){if(this.getLength()-v.getLength()<0)return this;for(var m=y.glog(this.get(0))-y.glog(v.get(0)),f=new Array(this.getLength()),d=0;d<this.getLength();d++)f[d]=this.get(d);for(var d=0;d<v.getLength();d++)f[d]^=y.gexp(y.glog(v.get(d))+m);return new p(f,0).mod(v)}},R.exports=p},diRs:function(R,D,i){"use strict";var y=i("pVnL"),p=i.n(y),x=i("q1tI"),v=i.n(x),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=x.forwardRef(function(n,t){var a=n.prefixCls,e=n.title,u=n.content,r=l(n,["prefixCls","title","content"]),s=x.useContext(f.b),c=s.getPrefixCls,h=function(b){return x.createElement(x.Fragment,null,e&&x.createElement("div",{className:"".concat(b,"-title")},Object(d.a)(e)),x.createElement("div",{className:"".concat(b,"-inner-content")},Object(d.a)(u)))},g=c("popover",a);return x.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(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:function(x,v){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:v}},{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:x}}]}},name:"file",theme:"twotone"};D.default=y},dm2S:function(R,D,i){"use strict";i.d(D,"a",function(){return v});var y=i("ODXe"),p=i("q1tI"),x=i.n(p);function v(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(R,D,i){var y=i("DEFe"),p=i("ProS"),x=p.extendComponentView({type:"geo",init:function(v,m){var f=new y(m,!0);this._mapDraw=f,this.group.add(f.group)},render:function(v,m,f,d){if(d&&d.type==="geoToggleSelect"&&d.from===this.uid)return;var l=this._mapDraw;v.get("show")?l.draw(v,m,f,this,d):this._mapDraw.group.removeAll(),this.group.silent=v.get("silent")},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});R.exports=x},dnwI:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("YH21"),v=i("Kagy"),m=i("IUWy"),f=v.toolbox.dataView,d=new Array(60).join("-"),l=" ";function o(w){var E={},C=[],_=[];return w.eachRawSeries(function(T){var S=T.coordinateSystem;if(S&&(S.type==="cartesian2d"||S.type==="polar")){var O=S.getBaseAxis();if(O.type==="category"){var I=O.dim+"_"+O.index;E[I]||(E[I]={categoryAxis:O,valueAxis:S.getOtherAxis(O),series:[]},_.push({axisDim:O.dim,axisIndex:O.index})),E[I].series.push(T)}else C.push(T)}else C.push(T)}),{seriesGroupByCategoryAxis:E,other:C,meta:_}}function n(w){var E=[];return p.each(w,function(C,_){var T=C.categoryAxis,S=C.valueAxis,O=S.dim,I=[" "].concat(p.map(C.series,function(M){return M.name})),F=[T.model.getCategories()];p.each(C.series,function(M){F.push(M.getRawData().mapArray(O,function(j){return j}))});for(var P=[I.join(l)],B=0;B<F[0].length;B++){for(var k=[],G=0;G<F.length;G++)k.push(F[G][B]);P.push(k.join(l))}E.push(P.join(`
|
|
|
`))}),E.join(`
|
|
|
|
|
|
`+d+`
|
|
|
|
|
|
`)}function t(w){return p.map(w,function(E){var C=E.getRawData(),_=[E.name],T=[];return C.each(C.dimensions,function(){for(var S=arguments.length,O=arguments[S-1],I=C.getName(O),F=0;F<S-1;F++)T[F]=arguments[F];_.push((I?I+l:"")+T.join(l))}),_.join(`
|
|
|
`)}).join(`
|
|
|
|
|
|
`+d+`
|
|
|
|
|
|
`)}function a(w){var E=o(w);return{value:p.filter([n(E.seriesGroupByCategoryAxis),t(E.other)],function(C){return C.replace(/[\n\t\s]/g,"")}).join(`
|
|
|
|
|
|
`+d+`
|
|
|
|
|
|
`),meta:E.meta}}function e(w){return w.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function u(w){var E=w.slice(0,w.indexOf(`
|
|
|
`));if(E.indexOf(l)>=0)return!0}var r=new RegExp("["+l+"]+","g");function s(w){for(var E=w.split(/\n+/g),C=e(E.shift()).split(r),_=[],T=p.map(C,function(F){return{name:F,data:[]}}),S=0;S<E.length;S++){var O=e(E[S]).split(r);_.push(O.shift());for(var I=0;I<O.length;I++)T[I]&&(T[I].data[S]=O[I])}return{series:T,categories:_}}function c(w){for(var E=w.split(/\n+/g),C=e(E.shift()),_=[],T=0;T<E.length;T++){var S=e(E[T]).split(r),O="",I,F=!1;isNaN(S[0])?(F=!0,O=S[0],S=S.slice(1),_[T]={name:O,value:[]},I=_[T].value):I=_[T]=[];for(var P=0;P<S.length;P++)I.push(+S[P]);I.length===1&&(F?_[T].value=I[0]:_[T]=I[0])}return{name:C,data:_}}function h(w,E){var C=w.split(new RegExp(`
|
|
|
*`+d+`
|
|
|
*`,"g")),_={series:[]};return p.each(C,function(T,S){if(u(T)){var O=s(T),I=E[S],F=I.axisDim+"Axis";I&&(_[F]=_[F]||[],_[F][I.axisIndex]={data:O.categories},_.series=_.series.concat(O.series))}else{var O=c(T);_.series.push(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,E){var C=E.getDom(),_=this.model;this._dom&&C.removeChild(this._dom);var T=document.createElement("div");T.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",T.style.backgroundColor=_.get("backgroundColor")||"#fff";var S=document.createElement("h4"),O=_.get("lang")||[];S.innerHTML=O[0]||_.get("title"),S.style.cssText="margin: 10px 20px;",S.style.color=_.get("textColor");var I=document.createElement("div"),F=document.createElement("textarea");I.style.cssText="display:block;width:100%;overflow:auto;";var P=_.get("optionToContent"),B=_.get("contentToOption"),k=a(w);if(typeof P=="function"){var G=P(E.getOption());typeof G=="string"?I.innerHTML=G:p.isDom(G)&&I.appendChild(G)}else I.appendChild(F),F.readOnly=_.get("readOnly"),F.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",F.style.color=_.get("textColor"),F.style.borderColor=_.get("textareaBorderColor"),F.style.backgroundColor=_.get("textareaColor"),F.value=k.value;var M=k.meta,j=document.createElement("div");j.style.cssText="position:absolute;bottom:0;left:0;right:0;";var K="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",z=document.createElement("div"),V=document.createElement("div");K+=";background-color:"+_.get("buttonColor"),K+=";color:"+_.get("buttonTextColor");var Q=this;function X(){C.removeChild(T),Q._dom=null}x.addEventListener(z,"click",X),x.addEventListener(V,"click",function(){var te;try{typeof B=="function"?te=B(I,E.getOption()):te=h(F.value,M)}catch($){throw X(),new Error("Data view format error "+$)}te&&E.dispatchAction({type:"changeDataView",newOption:te}),X()}),z.innerHTML=O[1],V.innerHTML=O[2],V.style.cssText=K,z.style.cssText=K,!_.get("readOnly")&&j.appendChild(V),j.appendChild(z),T.appendChild(S),T.appendChild(I),T.appendChild(j),I.style.height=C.clientHeight-80+"px",C.appendChild(T),this._dom=T},g.prototype.remove=function(w,E){this._dom&&E.getDom().removeChild(this._dom)},g.prototype.dispose=function(w,E){this.remove(w,E)};function A(w,E){return p.map(w,function(C,_){var T=E&&E[_];return p.isObject(T)&&!p.isArray(T)?(p.isObject(C)&&!p.isArray(C)&&(C=C.value),p.defaults({value:C},T)):C})}m.register("dataView",g),y.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(w,E){var C=[];p.each(w.newOption.series,function(_){var T=E.getSeriesByName(_.name)[0];if(!T)C.push(p.extend({type:"scatter"},_));else{var S=T.get("data");C.push({name:_.name,data:A(_.data,S)})}}),E.mergeOption(p.defaults({series:C},w.newOption))});var b=g;R.exports=b},dqUG:function(R,D,i){var y=i("Gev7"),p=i("bYtY"),x=i("6GrX"),v=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&&v.normalizeTextStyle(a,!0),a.fill=a.stroke=a.shadowBlur=a.shadowColor=a.shadowOffsetX=a.shadowOffsetY=null;var e=a.text;if(e!=null&&(e+=""),!v.needDrawText(e,a)){n.__attrCachedBy=f.NONE;return}this.setTransform(n),v.renderText(this,n,e,a,null,t),this.restoreTransform(n)},getBoundingRect:function(){var n=this.style;if(this.__dirty&&v.normalizeTextStyle(n,!0),!this._rect){var t=n.text;t!=null?t+="":t="";var a=x.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,v.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;R.exports=l},dtIV:function(R,D,i){"use strict";i.r(D),function(y){i.d(D,"AcroForm",function(){return qe}),i.d(D,"AcroFormAppearance",function(){return se}),i.d(D,"AcroFormButton",function(){return St}),i.d(D,"AcroFormCheckBox",function(){return Bt}),i.d(D,"AcroFormChoiceField",function(){return at}),i.d(D,"AcroFormComboBox",function(){return mt}),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 jt}),i.d(D,"AcroFormRadioButton",function(){return Mt}),i.d(D,"AcroFormTextField",function(){return Ke}),i.d(D,"GState",function(){return G}),i.d(D,"ShadingPattern",function(){return j}),i.d(D,"TilingPattern",function(){return K}),i.d(D,"jsPDF",function(){return z});var p=i("cDf5"),x=i.n(p),v=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(nt,Ne,He){var Xe=new XMLHttpRequest;Xe.open("GET",nt),Xe.responseType="blob",Xe.onload=function(){e(Xe.response,Ne,He)},Xe.onerror=function(){d.error("could not download file")},Xe.send()}function o(nt){var Ne=new XMLHttpRequest;Ne.open("HEAD",nt,!1);try{Ne.send()}catch(He){}return Ne.status>=200&&Ne.status<=299}function n(nt){try{nt.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),nt.dispatchEvent(Ne)}}var t,a,e=m.saveAs||((typeof window=="undefined"?"undefined":x()(window))!=="object"||window!==m?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(nt,Ne,He){var Xe=m.URL||m.webkitURL,rt=document.createElement("a");Ne=Ne||nt.name||"download",rt.download=Ne,rt.rel="noopener",typeof nt=="string"?(rt.href=nt,rt.origin!==location.origin?o(rt.href)?l(nt,Ne,He):n(rt,rt.target="_blank"):n(rt)):(rt.href=Xe.createObjectURL(nt),setTimeout(function(){Xe.revokeObjectURL(rt.href)},4e4),setTimeout(function(){n(rt)},0))}:"msSaveOrOpenBlob"in navigator?function(nt,Ne,He){if(Ne=Ne||nt.name||"download",typeof nt=="string")if(o(nt))l(nt,Ne,He);else{var Xe=document.createElement("a");Xe.href=nt,Xe.target="_blank",setTimeout(function(){n(Xe)})}else navigator.msSaveOrOpenBlob(function(rt,Ze){return Ze===void 0?Ze={autoBom:!1}:x()(Ze)!=="object"&&(d.warn("Deprecated: Expected third argument to be a object"),Ze={autoBom:!Ze}),Ze.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(rt.type)?new Blob([String.fromCharCode(65279),rt],{type:rt.type}):rt}(nt,He),Ne)}:function(nt,Ne,He,Xe){if((Xe=Xe||open("","_blank"))&&(Xe.document.title=Xe.document.body.innerText="downloading..."),typeof nt=="string")return l(nt,Ne,He);var rt=nt.type==="application/octet-stream",Ze=/constructor/i.test(m.HTMLElement)||m.safari,st=/CriOS\/[\d]+/.test(navigator.userAgent);if((st||rt&&Ze)&&(typeof FileReader=="undefined"?"undefined":x()(FileReader))==="object"){var xt=new FileReader;xt.onloadend=function(){var Zr=xt.result;Zr=st?Zr:Zr.replace(/^data:[^;]*;/,"data:attachment/file;"),Xe?Xe.location.href=Zr:location=Zr,Xe=null},xt.readAsDataURL(nt)}else{var pt=m.URL||m.webkitURL,hr=pt.createObjectURL(nt);Xe?Xe.location=hr:location.href=hr,Xe=null,setTimeout(function(){pt.revokeObjectURL(hr)},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(nt){var Ne;nt=nt||"",this.ok=!1,nt.charAt(0)=="#"&&(nt=nt.substr(1,6)),nt={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"}[nt=(nt=nt.replace(/ /g,"")).toLowerCase()]||nt;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(pt){return[parseInt(pt[1]),parseInt(pt[2]),parseInt(pt[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(pt){return[parseInt(pt[1],16),parseInt(pt[2],16),parseInt(pt[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(pt){return[parseInt(pt[1]+pt[1],16),parseInt(pt[2]+pt[2],16),parseInt(pt[3]+pt[3],16)]}}],Xe=0;Xe<He.length;Xe++){var rt=He[Xe].re,Ze=He[Xe].process,st=rt.exec(nt);st&&(Ne=Ze(st),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 xt=this.r.toString(16),pt=this.g.toString(16),hr=this.b.toString(16);return xt.length==1&&(xt="0"+xt),pt.length==1&&(pt="0"+pt),hr.length==1&&(hr="0"+hr),"#"+xt+pt+hr}}/**
|
|
|
* @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(nt,Ne){var He=nt[0],Xe=nt[1],rt=nt[2],Ze=nt[3];He=c(He,Xe,rt,Ze,Ne[0],7,-680876936),Ze=c(Ze,He,Xe,rt,Ne[1],12,-389564586),rt=c(rt,Ze,He,Xe,Ne[2],17,606105819),Xe=c(Xe,rt,Ze,He,Ne[3],22,-1044525330),He=c(He,Xe,rt,Ze,Ne[4],7,-176418897),Ze=c(Ze,He,Xe,rt,Ne[5],12,1200080426),rt=c(rt,Ze,He,Xe,Ne[6],17,-1473231341),Xe=c(Xe,rt,Ze,He,Ne[7],22,-45705983),He=c(He,Xe,rt,Ze,Ne[8],7,1770035416),Ze=c(Ze,He,Xe,rt,Ne[9],12,-1958414417),rt=c(rt,Ze,He,Xe,Ne[10],17,-42063),Xe=c(Xe,rt,Ze,He,Ne[11],22,-1990404162),He=c(He,Xe,rt,Ze,Ne[12],7,1804603682),Ze=c(Ze,He,Xe,rt,Ne[13],12,-40341101),rt=c(rt,Ze,He,Xe,Ne[14],17,-1502002290),He=h(He,Xe=c(Xe,rt,Ze,He,Ne[15],22,1236535329),rt,Ze,Ne[1],5,-165796510),Ze=h(Ze,He,Xe,rt,Ne[6],9,-1069501632),rt=h(rt,Ze,He,Xe,Ne[11],14,643717713),Xe=h(Xe,rt,Ze,He,Ne[0],20,-373897302),He=h(He,Xe,rt,Ze,Ne[5],5,-701558691),Ze=h(Ze,He,Xe,rt,Ne[10],9,38016083),rt=h(rt,Ze,He,Xe,Ne[15],14,-660478335),Xe=h(Xe,rt,Ze,He,Ne[4],20,-405537848),He=h(He,Xe,rt,Ze,Ne[9],5,568446438),Ze=h(Ze,He,Xe,rt,Ne[14],9,-1019803690),rt=h(rt,Ze,He,Xe,Ne[3],14,-187363961),Xe=h(Xe,rt,Ze,He,Ne[8],20,1163531501),He=h(He,Xe,rt,Ze,Ne[13],5,-1444681467),Ze=h(Ze,He,Xe,rt,Ne[2],9,-51403784),rt=h(rt,Ze,He,Xe,Ne[7],14,1735328473),He=g(He,Xe=h(Xe,rt,Ze,He,Ne[12],20,-1926607734),rt,Ze,Ne[5],4,-378558),Ze=g(Ze,He,Xe,rt,Ne[8],11,-2022574463),rt=g(rt,Ze,He,Xe,Ne[11],16,1839030562),Xe=g(Xe,rt,Ze,He,Ne[14],23,-35309556),He=g(He,Xe,rt,Ze,Ne[1],4,-1530992060),Ze=g(Ze,He,Xe,rt,Ne[4],11,1272893353),rt=g(rt,Ze,He,Xe,Ne[7],16,-155497632),Xe=g(Xe,rt,Ze,He,Ne[10],23,-1094730640),He=g(He,Xe,rt,Ze,Ne[13],4,681279174),Ze=g(Ze,He,Xe,rt,Ne[0],11,-358537222),rt=g(rt,Ze,He,Xe,Ne[3],16,-722521979),Xe=g(Xe,rt,Ze,He,Ne[6],23,76029189),He=g(He,Xe,rt,Ze,Ne[9],4,-640364487),Ze=g(Ze,He,Xe,rt,Ne[12],11,-421815835),rt=g(rt,Ze,He,Xe,Ne[15],16,530742520),He=A(He,Xe=g(Xe,rt,Ze,He,Ne[2],23,-995338651),rt,Ze,Ne[0],6,-198630844),Ze=A(Ze,He,Xe,rt,Ne[7],10,1126891415),rt=A(rt,Ze,He,Xe,Ne[14],15,-1416354905),Xe=A(Xe,rt,Ze,He,Ne[5],21,-57434055),He=A(He,Xe,rt,Ze,Ne[12],6,1700485571),Ze=A(Ze,He,Xe,rt,Ne[3],10,-1894986606),rt=A(rt,Ze,He,Xe,Ne[10],15,-1051523),Xe=A(Xe,rt,Ze,He,Ne[1],21,-2054922799),He=A(He,Xe,rt,Ze,Ne[8],6,1873313359),Ze=A(Ze,He,Xe,rt,Ne[15],10,-30611744),rt=A(rt,Ze,He,Xe,Ne[6],15,-1560198380),Xe=A(Xe,rt,Ze,He,Ne[13],21,1309151649),He=A(He,Xe,rt,Ze,Ne[4],6,-145523070),Ze=A(Ze,He,Xe,rt,Ne[11],10,-1120210379),rt=A(rt,Ze,He,Xe,Ne[2],15,718787259),Xe=A(Xe,rt,Ze,He,Ne[9],21,-343485551),nt[0]=O(He,nt[0]),nt[1]=O(Xe,nt[1]),nt[2]=O(rt,nt[2]),nt[3]=O(Ze,nt[3])}function s(nt,Ne,He,Xe,rt,Ze){return Ne=O(O(Ne,nt),O(Xe,Ze)),O(Ne<<rt|Ne>>>32-rt,He)}function c(nt,Ne,He,Xe,rt,Ze,st){return s(Ne&He|~Ne&Xe,nt,Ne,rt,Ze,st)}function h(nt,Ne,He,Xe,rt,Ze,st){return s(Ne&Xe|He&~Xe,nt,Ne,rt,Ze,st)}function g(nt,Ne,He,Xe,rt,Ze,st){return s(Ne^He^Xe,nt,Ne,rt,Ze,st)}function A(nt,Ne,He,Xe,rt,Ze,st){return s(He^(Ne|~Xe),nt,Ne,rt,Ze,st)}function b(nt){var Ne,He=nt.length,Xe=[1732584193,-271733879,-1732584194,271733878];for(Ne=64;Ne<=nt.length;Ne+=64)r(Xe,w(nt.substring(Ne-64,Ne)));nt=nt.substring(Ne-64);var rt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(Ne=0;Ne<nt.length;Ne++)rt[Ne>>2]|=nt.charCodeAt(Ne)<<(Ne%4<<3);if(rt[Ne>>2]|=128<<(Ne%4<<3),Ne>55)for(r(Xe,rt),Ne=0;Ne<16;Ne++)rt[Ne]=0;return rt[14]=8*He,r(Xe,rt),Xe}function w(nt){var Ne,He=[];for(Ne=0;Ne<64;Ne+=4)He[Ne>>2]=nt.charCodeAt(Ne)+(nt.charCodeAt(Ne+1)<<8)+(nt.charCodeAt(Ne+2)<<16)+(nt.charCodeAt(Ne+3)<<24);return He}t=m.atob.bind(m),a=m.btoa.bind(m);var E="0123456789abcdef".split("");function C(nt){for(var Ne="",He=0;He<4;He++)Ne+=E[nt>>8*He+4&15]+E[nt>>8*He&15];return Ne}function _(nt){return String.fromCharCode((255&nt)>>0,(65280&nt)>>8,(16711680&nt)>>16,(4278190080&nt)>>24)}function T(nt){return b(nt).map(_).join("")}var S=function(nt){for(var Ne=0;Ne<nt.length;Ne++)nt[Ne]=C(nt[Ne]);return nt.join("")}(b("hello"))!="5d41402abc4b2a76b9719d911017c592";function O(nt,Ne){if(S){var He=(65535&nt)+(65535&Ne);return(nt>>16)+(Ne>>16)+(He>>16)<<16|65535&He}return nt+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 I(nt,Ne){var He,Xe,rt,Ze;if(nt!==He){for(var st=(rt=nt,Ze=1+(256/nt.length>>0),new Array(Ze+1).join(rt)),xt=[],pt=0;pt<256;pt++)xt[pt]=pt;var hr=0;for(pt=0;pt<256;pt++){var Zr=xt[pt];hr=(hr+Zr+st.charCodeAt(pt))%256,xt[pt]=xt[hr],xt[hr]=Zr}He=nt,Xe=xt}else xt=Xe;var Xr=Ne.length,pn=0,gr=0,Kn="";for(pt=0;pt<Xr;pt++)gr=(gr+(Zr=xt[pn=(pn+1)%256]))%256,xt[pn]=xt[gr],xt[gr]=Zr,st=xt[(xt[pn]+xt[gr])%256],Kn+=String.fromCharCode(Ne.charCodeAt(pt)^st);return Kn}/**
|
|
|
* @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 P(nt,Ne,He,Xe){this.v=1,this.r=2;var rt=192;nt.forEach(function(xt){if(F.perm!==void 0)throw new Error("Invalid permission: "+xt);rt+=F[xt]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var Ze=(Ne+this.padding).substr(0,32),st=(He+this.padding).substr(0,32);this.O=this.processOwnerPassword(Ze,st),this.P=-(1+(255^rt)),this.encryptionKey=T(Ze+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Xe)).substr(0,5),this.U=I(this.encryptionKey,this.padding)}function B(nt){if(/[^\u0000-\u00ff]/.test(nt))throw new Error("Invalid PDF Name Object: "+nt+", Only accept ASCII characters.");for(var Ne="",He=nt.length,Xe=0;Xe<He;Xe++){var rt=nt.charCodeAt(Xe);rt<33||rt===35||rt===37||rt===40||rt===41||rt===47||rt===60||rt===62||rt===91||rt===93||rt===123||rt===125||rt>126?Ne+="#"+("0"+rt.toString(16)).slice(-2):Ne+=nt[Xe]}return Ne}function k(nt){if(x()(nt)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var Ne={};this.subscribe=function(He,Xe,rt){if(rt=rt||!1,typeof He!="string"||typeof Xe!="function"||typeof rt!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");Ne.hasOwnProperty(He)||(Ne[He]={});var Ze=Math.random().toString(35);return Ne[He][Ze]=[Xe,!!rt],Ze},this.unsubscribe=function(He){for(var Xe in Ne)if(Ne[Xe][He])return delete Ne[Xe][He],Object.keys(Ne[Xe]).length===0&&delete Ne[Xe],!0;return!1},this.publish=function(He){if(Ne.hasOwnProperty(He)){var Xe=Array.prototype.slice.call(arguments,1),rt=[];for(var Ze in Ne[He]){var st=Ne[He][Ze];try{st[0].apply(nt,Xe)}catch(xt){m.console&&d.error("jsPDF PubSub Error",xt.message,xt)}st[1]&&rt.push(Ze)}rt.length&&rt.forEach(this.unsubscribe)}},this.getTopics=function(){return Ne}}function G(nt){if(!(this instanceof G))return new G(nt);var Ne="opacity,stroke-opacity".split(",");for(var He in nt)nt.hasOwnProperty(He)&&Ne.indexOf(He)>=0&&(this[He]=nt[He]);this.id="",this.objectNumber=-1}function M(nt,Ne){this.gState=nt,this.matrix=Ne,this.id="",this.objectNumber=-1}function j(nt,Ne,He,Xe,rt){if(!(this instanceof j))return new j(nt,Ne,He,Xe,rt);this.type=nt==="axial"?2:3,this.coords=Ne,this.colors=He,M.call(this,Xe,rt)}function K(nt,Ne,He,Xe,rt){if(!(this instanceof K))return new K(nt,Ne,He,Xe,rt);this.boundingBox=nt,this.xStep=Ne,this.yStep=He,this.stream="",this.cloneIndex=0,M.call(this,Xe,rt)}function z(nt){var Ne,He=typeof arguments[0]=="string"?arguments[0]:"p",Xe=arguments[1],rt=arguments[2],Ze=arguments[3],st=[],xt=1,pt=16,hr="S",Zr=null;x()(nt=nt||{})==="object"&&(He=nt.orientation,Xe=nt.unit||Xe,rt=nt.format||rt,Ze=nt.compress||nt.compressPdf||Ze,(Zr=nt.encryption||null)!==null&&(Zr.userPassword=Zr.userPassword||"",Zr.ownerPassword=Zr.ownerPassword||"",Zr.userPermissions=Zr.userPermissions||[]),xt=typeof nt.userUnit=="number"?Math.abs(nt.userUnit):1,nt.precision!==void 0&&(Ne=nt.precision),nt.floatPrecision!==void 0&&(pt=nt.floatPrecision),hr=nt.defaultPathOperation||"S"),st=nt.filters||(Ze===!0?["FlateEncode"]:st),Xe=Xe||"mm",He=(""+(He||"P")).toLowerCase();var Xr=nt.putOnlyUsedFonts||!1,pn={},gr={internal:{},__private__:{}};gr.__private__.PubSub=k;var Kn="1.3",Rr=gr.__private__.getPdfVersion=function(){return Kn};gr.__private__.setPdfVersion=function(Ht){Kn=Ht};var Pn={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 Pn};var an=gr.__private__.getPageFormat=function(Ht){return Pn[Ht]};rt=rt||"a4";var Ur={COMPAT:"compat",ADVANCED:"advanced"},ii=Ur.COMPAT;function _i(){this.saveGraphicsState(),Dn(new na(Lr,0,0,-Lr,0,Ds()*Lr).toString()+" cm"),this.setFontSize(this.getFontSize()/Lr),hr="n",ii=Ur.ADVANCED}function Gi(){this.restoreGraphicsState(),hr="S",ii=Ur.COMPAT}var tn=gr.__private__.combineFontStyleAndFontWeight=function(Ht,ar){if(Ht=="bold"&&ar=="normal"||Ht=="bold"&&ar==400||Ht=="normal"&&ar=="italic"||Ht=="bold"&&ar=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return ar&&(Ht=ar==400||ar==="normal"?Ht==="italic"?"italic":"normal":ar!=700&&ar!=="bold"||Ht!=="normal"?(ar==700?"bold":ar)+""+Ht:"bold"),Ht};gr.advancedAPI=function(Ht){var ar=ii===Ur.COMPAT;return ar&&_i.call(this),typeof Ht!="function"||(Ht(this),ar&&Gi.call(this)),this},gr.compatAPI=function(Ht){var ar=ii===Ur.ADVANCED;return ar&&Gi.call(this),typeof Ht!="function"||(Ht(this),ar&&_i.call(this)),this},gr.isAdvancedAPI=function(){return ii===Ur.ADVANCED};var Tn,Vn=function(ar){if(ii!==Ur.ADVANCED)throw new Error(ar+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Xt=gr.roundToPrecision=gr.__private__.roundToPrecision=function(Ht,ar){var In=Ne||ar;if(isNaN(Ht)||isNaN(In))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Ht.toFixed(In).replace(/0+$/,"")};Tn=gr.hpf=gr.__private__.hpf=typeof pt=="number"?function(Ht){if(isNaN(Ht))throw new Error("Invalid argument passed to jsPDF.hpf");return Xt(Ht,pt)}:pt==="smart"?function(Ht){if(isNaN(Ht))throw new Error("Invalid argument passed to jsPDF.hpf");return Xt(Ht,Ht>-1&&Ht<1?16:5)}:function(Ht){if(isNaN(Ht))throw new Error("Invalid argument passed to jsPDF.hpf");return Xt(Ht,16)};var It=gr.f2=gr.__private__.f2=function(Ht){if(isNaN(Ht))throw new Error("Invalid argument passed to jsPDF.f2");return Xt(Ht,2)},Pt=gr.__private__.f3=function(Ht){if(isNaN(Ht))throw new Error("Invalid argument passed to jsPDF.f3");return Xt(Ht,3)},Kt=gr.scale=gr.__private__.scale=function(Ht){if(isNaN(Ht))throw new Error("Invalid argument passed to jsPDF.scale");return ii===Ur.COMPAT?Ht*Lr:ii===Ur.ADVANCED?Ht:void 0},Gt=function(ar){return ii===Ur.COMPAT?Ds()-ar:ii===Ur.ADVANCED?ar:void 0},Dt=function(ar){return Kt(Gt(ar))};gr.__private__.setPrecision=gr.setPrecision=function(Ht){typeof parseInt(Ht,10)=="number"&&(Ne=parseInt(Ht,10))};var lr,Ar="00000000000000000000000000000000",yr=gr.__private__.getFileId=function(){return Ar},Mr=gr.__private__.setFileId=function(Ht){return Ar=Ht!==void 0&&/^[a-fA-F0-9]{32}$/.test(Ht)?Ht.toUpperCase():Ar.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),Zr!==null&&(wa=new P(Zr.userPermissions,Zr.userPassword,Zr.ownerPassword,Ar)),Ar};gr.setFileId=function(Ht){return Mr(Ht),this},gr.getFileId=function(){return yr()};var zn=gr.__private__.convertDateToPDFDate=function(Ht){var ar=Ht.getTimezoneOffset(),In=ar<0?"+":"-",hi=Math.floor(Math.abs(ar/60)),Rt=Math.abs(ar%60),ce=[In,_n(hi),"'",_n(Rt),"'"].join("");return["D:",Ht.getFullYear(),_n(Ht.getMonth()+1),_n(Ht.getDate()),_n(Ht.getHours()),_n(Ht.getMinutes()),_n(Ht.getSeconds()),ce].join("")},Rn=gr.__private__.convertPDFDateToDate=function(Ht){var ar=parseInt(Ht.substr(2,4),10),In=parseInt(Ht.substr(6,2),10)-1,hi=parseInt(Ht.substr(8,2),10),Rt=parseInt(Ht.substr(10,2),10),ce=parseInt(Ht.substr(12,2),10),xe=parseInt(Ht.substr(14,2),10);return new Date(ar,In,hi,Rt,ce,xe,0)},di=gr.__private__.setCreationDate=function(Ht){var ar;if(Ht===void 0&&(Ht=new Date),Ht instanceof Date)ar=zn(Ht);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(Ht))throw new Error("Invalid argument passed to jsPDF.setCreationDate");ar=Ht}return lr=ar},gn=gr.__private__.getCreationDate=function(Ht){var ar=lr;return Ht==="jsDate"&&(ar=Rn(lr)),ar};gr.setCreationDate=function(Ht){return di(Ht),this},gr.getCreationDate=function(Ht){return gn(Ht)};var Br,_n=gr.__private__.padd2=function(Ht){return("0"+parseInt(Ht)).slice(-2)},Gn=gr.__private__.padd2Hex=function(Ht){return("00"+(Ht=Ht.toString())).substr(Ht.length)},Zn=0,ai=[],Ei=[],Ri=0,Di=[],oa=[],ma=!1,aa=Ei,ba=function(){Zn=0,Ri=0,Ei=[],ai=[],Di=[],_a=Oa(),Va=Oa()};gr.__private__.setCustomOutputDestination=function(Ht){ma=!0,aa=Ht};var Ai=function(ar){ma||(aa=ar)};gr.__private__.resetCustomOutputDestination=function(){ma=!1,aa=Ei};var Dn=gr.__private__.out=function(Ht){return Ht=Ht.toString(),Ri+=Ht.length+1,aa.push(Ht),aa},Bi=gr.__private__.write=function(Ht){return Dn(arguments.length===1?Ht.toString():Array.prototype.join.call(arguments," "))},ha=gr.__private__.getArrayBuffer=function(Ht){for(var ar=Ht.length,In=new ArrayBuffer(ar),hi=new Uint8Array(In);ar--;)hi[ar]=Ht.charCodeAt(ar);return In},ta=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];gr.__private__.getStandardFonts=function(){return ta};var ra=nt.fontSize||16;gr.__private__.setFontSize=gr.setFontSize=function(Ht){return ra=ii===Ur.ADVANCED?Ht/Lr:Ht,this};var Ir,Sr=gr.__private__.getFontSize=gr.getFontSize=function(){return ii===Ur.COMPAT?ra:ra*Lr},En=nt.R2L||!1;gr.__private__.setR2L=gr.setR2L=function(Ht){return En=Ht,this},gr.__private__.getR2L=gr.getR2L=function(){return En};var fr,kr=gr.__private__.setZoomMode=function(Ht){var ar=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Ht))Ir=Ht;else if(isNaN(Ht)){if(ar.indexOf(Ht)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Ht+'" is not recognized.');Ir=Ht}else Ir=parseInt(Ht,10)};gr.__private__.getZoomMode=function(){return Ir};var Vr,un=gr.__private__.setPageMode=function(Ht){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Ht)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Ht+'" is not recognized.');fr=Ht};gr.__private__.getPageMode=function(){return fr};var kn=gr.__private__.setLayoutMode=function(Ht){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Ht)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Ht+'" is not recognized.');Vr=Ht};gr.__private__.getLayoutMode=function(){return Vr},gr.__private__.setDisplayMode=gr.setDisplayMode=function(Ht,ar,In){return kr(Ht),kn(ar),un(In),this};var _t={title:"",subject:"",author:"",keywords:"",creator:""};gr.__private__.getDocumentProperty=function(Ht){if(Object.keys(_t).indexOf(Ht)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return _t[Ht]},gr.__private__.getDocumentProperties=function(){return _t},gr.__private__.setDocumentProperties=gr.setProperties=gr.setDocumentProperties=function(Ht){for(var ar in _t)_t.hasOwnProperty(ar)&&Ht[ar]&&(_t[ar]=Ht[ar]);return this},gr.__private__.setDocumentProperty=function(Ht,ar){if(Object.keys(_t).indexOf(Ht)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return _t[Ht]=ar};var Or,Lr,en,Sn,On,wn={},$n={},jn=[],pi={},Mi={},yi={},Oi={},zi=null,ea=0,Xi=[],Wi=new k(gr),ji=nt.hotfixes||[],Ji={},ca={},Ca=[],na=function Ht(ar,In,hi,Rt,ce,xe){if(!(this instanceof Ht))return new Ht(ar,In,hi,Rt,ce,xe);isNaN(ar)&&(ar=1),isNaN(In)&&(In=0),isNaN(hi)&&(hi=0),isNaN(Rt)&&(Rt=1),isNaN(ce)&&(ce=0),isNaN(xe)&&(xe=0),this._matrix=[ar,In,hi,Rt,ce,xe]};Object.defineProperty(na.prototype,"sx",{get:function(){return this._matrix[0]},set:function(ar){this._matrix[0]=ar}}),Object.defineProperty(na.prototype,"shy",{get:function(){return this._matrix[1]},set:function(ar){this._matrix[1]=ar}}),Object.defineProperty(na.prototype,"shx",{get:function(){return this._matrix[2]},set:function(ar){this._matrix[2]=ar}}),Object.defineProperty(na.prototype,"sy",{get:function(){return this._matrix[3]},set:function(ar){this._matrix[3]=ar}}),Object.defineProperty(na.prototype,"tx",{get:function(){return this._matrix[4]},set:function(ar){this._matrix[4]=ar}}),Object.defineProperty(na.prototype,"ty",{get:function(){return this._matrix[5]},set:function(ar){this._matrix[5]=ar}}),Object.defineProperty(na.prototype,"a",{get:function(){return this._matrix[0]},set:function(ar){this._matrix[0]=ar}}),Object.defineProperty(na.prototype,"b",{get:function(){return this._matrix[1]},set:function(ar){this._matrix[1]=ar}}),Object.defineProperty(na.prototype,"c",{get:function(){return this._matrix[2]},set:function(ar){this._matrix[2]=ar}}),Object.defineProperty(na.prototype,"d",{get:function(){return this._matrix[3]},set:function(ar){this._matrix[3]=ar}}),Object.defineProperty(na.prototype,"e",{get:function(){return this._matrix[4]},set:function(ar){this._matrix[4]=ar}}),Object.defineProperty(na.prototype,"f",{get:function(){return this._matrix[5]},set:function(ar){this._matrix[5]=ar}}),Object.defineProperty(na.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(na.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(na.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(na.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),na.prototype.join=function(Ht){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Tn).join(Ht)},na.prototype.multiply=function(Ht){var ar=Ht.sx*this.sx+Ht.shy*this.shx,In=Ht.sx*this.shy+Ht.shy*this.sy,hi=Ht.shx*this.sx+Ht.sy*this.shx,Rt=Ht.shx*this.shy+Ht.sy*this.sy,ce=Ht.tx*this.sx+Ht.ty*this.shx+this.tx,xe=Ht.tx*this.shy+Ht.ty*this.sy+this.ty;return new na(ar,In,hi,Rt,ce,xe)},na.prototype.decompose=function(){var Ht=this.sx,ar=this.shy,In=this.shx,hi=this.sy,Rt=this.tx,ce=this.ty,xe=Math.sqrt(Ht*Ht+ar*ar),Ie=(Ht/=xe)*In+(ar/=xe)*hi;In-=Ht*Ie,hi-=ar*Ie;var Qe=Math.sqrt(In*In+hi*hi);return Ie/=Qe,Ht*(hi/=Qe)<ar*(In/=Qe)&&(Ht=-Ht,ar=-ar,Ie=-Ie,xe=-xe),{scale:new na(xe,0,0,Qe,0,0),translate:new na(1,0,0,1,Rt,ce),rotate:new na(Ht,ar,-ar,Ht,0,0),skew:new na(1,0,Ie,1,0,0)}},na.prototype.toString=function(Ht){return this.join(" ")},na.prototype.inversed=function(){var Ht=this.sx,ar=this.shy,In=this.shx,hi=this.sy,Rt=this.tx,ce=this.ty,xe=1/(Ht*hi-ar*In),Ie=hi*xe,Qe=-ar*xe,kt=-In*xe,or=Ht*xe;return new na(Ie,Qe,kt,or,-Ie*Rt-kt*ce,-Qe*Rt-or*ce)},na.prototype.applyToPoint=function(Ht){var ar=Ht.x*this.sx+Ht.y*this.shx+this.tx,In=Ht.x*this.shy+Ht.y*this.sy+this.ty;return new tl(ar,In)},na.prototype.applyToRectangle=function(Ht){var ar=this.applyToPoint(Ht),In=this.applyToPoint(new tl(Ht.x+Ht.w,Ht.y+Ht.h));return new xs(ar.x,ar.y,In.x-ar.x,In.y-ar.y)},na.prototype.clone=function(){var Ht=this.sx,ar=this.shy,In=this.shx,hi=this.sy,Rt=this.tx,ce=this.ty;return new na(Ht,ar,In,hi,Rt,ce)},gr.Matrix=na;var Pa=gr.matrixMult=function(Ht,ar){return ar.multiply(Ht)},La=new na(1,0,0,1,0,0);gr.unitMatrix=gr.identityMatrix=La;var va=function(ar,In){if(!Mi[ar]){var hi=(In instanceof j?"Sh":"P")+(Object.keys(pi).length+1).toString(10);In.id=hi,Mi[ar]=hi,pi[hi]=In,Wi.publish("addPattern",In)}};gr.ShadingPattern=j,gr.TilingPattern=K,gr.addShadingPattern=function(Ht,ar){return Vn("addShadingPattern()"),va(Ht,ar),this},gr.beginTilingPattern=function(Ht){Vn("beginTilingPattern()"),al(Ht.boundingBox[0],Ht.boundingBox[1],Ht.boundingBox[2]-Ht.boundingBox[0],Ht.boundingBox[3]-Ht.boundingBox[1],Ht.matrix)},gr.endTilingPattern=function(Ht,ar){Vn("endTilingPattern()"),ar.stream=oa[Br].join(`
|
|
|
`),va(Ht,ar),Wi.publish("endTilingPattern",ar),Ca.pop().restore()};var ga=gr.__private__.newObject=function(){var Ht=Oa();return Aa(Ht,!0),Ht},Oa=gr.__private__.newObjectDeferred=function(){return Zn++,ai[Zn]=function(){return Ri},Zn},Aa=function(ar,In){return In=typeof In=="boolean"&&In,ai[ar]=Ri,In&&Dn(ar+" 0 obj"),ar},Xa=gr.__private__.newAdditionalObject=function(){var Ht={objId:Oa(),content:""};return Di.push(Ht),Ht},_a=Oa(),Va=Oa(),Pi=gr.__private__.decodeColorString=function(Ht){var ar=Ht.split(" ");if(ar.length!==2||ar[1]!=="g"&&ar[1]!=="G")ar.length===5&&(ar[4]==="k"||ar[4]==="K")&&(ar=[(1-ar[0])*(1-ar[3]),(1-ar[1])*(1-ar[3]),(1-ar[2])*(1-ar[3]),"r"]);else{var In=parseFloat(ar[0]);ar=[In,In,In,"r"]}for(var hi="#",Rt=0;Rt<3;Rt++)hi+=("0"+Math.floor(255*parseFloat(ar[Rt])).toString(16)).slice(-2);return hi},io=gr.__private__.encodeColorString=function(Ht){var ar;typeof Ht=="string"&&(Ht={ch1:Ht});var In=Ht.ch1,hi=Ht.ch2,Rt=Ht.ch3,ce=Ht.ch4,xe=Ht.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof In=="string"&&In.charAt(0)!=="#"){var Ie=new u(In);if(Ie.ok)In=Ie.toHex();else if(!/^\d*\.?\d*$/.test(In))throw new Error('Invalid color "'+In+'" passed to jsPDF.encodeColorString.')}if(typeof In=="string"&&/^#[0-9A-Fa-f]{3}$/.test(In)&&(In="#"+In[1]+In[1]+In[2]+In[2]+In[3]+In[3]),typeof In=="string"&&/^#[0-9A-Fa-f]{6}$/.test(In)){var Qe=parseInt(In.substr(1),16);In=Qe>>16&255,hi=Qe>>8&255,Rt=255&Qe}if(hi===void 0||ce===void 0&&In===hi&&hi===Rt)if(typeof In=="string")ar=In+" "+xe[0];else switch(Ht.precision){case 2:ar=It(In/255)+" "+xe[0];break;case 3:default:ar=Pt(In/255)+" "+xe[0]}else if(ce===void 0||x()(ce)==="object"){if(ce&&!isNaN(ce.a)&&ce.a===0)return ar=["1.","1.","1.",xe[1]].join(" ");if(typeof In=="string")ar=[In,hi,Rt,xe[1]].join(" ");else switch(Ht.precision){case 2:ar=[It(In/255),It(hi/255),It(Rt/255),xe[1]].join(" ");break;default:case 3:ar=[Pt(In/255),Pt(hi/255),Pt(Rt/255),xe[1]].join(" ")}}else if(typeof In=="string")ar=[In,hi,Rt,ce,xe[2]].join(" ");else switch(Ht.precision){case 2:ar=[It(In),It(hi),It(Rt),It(ce),xe[2]].join(" ");break;case 3:default:ar=[Pt(In),Pt(hi),Pt(Rt),Pt(ce),xe[2]].join(" ")}return ar},oo=gr.__private__.getFilters=function(){return st},Qo=gr.__private__.putStream=function(Ht){var ar=(Ht=Ht||{}).data||"",In=Ht.filters||oo(),hi=Ht.alreadyAppliedFilters||[],Rt=Ht.addLength1||!1,ce=ar.length,xe=Ht.objectId,Ie=function(gi){return gi};if(Zr!==null&&xe===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Zr!==null&&(Ie=wa.encryptor(xe,0));var Qe={};In===!0&&(In=["FlateEncode"]);var kt=Ht.additionalKeyValues||[],or=(Qe=z.API.processDataByFilters!==void 0?z.API.processDataByFilters(ar,In):{data:ar,reverseChain:[]}).reverseChain+(Array.isArray(hi)?hi.join(" "):hi.toString());if(Qe.data.length!==0&&(kt.push({key:"Length",value:Qe.data.length}),Rt===!0&&kt.push({key:"Length1",value:ce})),or.length!=0)if(or.split("/").length-1==1)kt.push({key:"Filter",value:or});else{kt.push({key:"Filter",value:"["+or+"]"});for(var Qr=0;Qr<kt.length;Qr+=1)if(kt[Qr].key==="DecodeParms"){for(var fn=[],Ln=0;Ln<Qe.reverseChain.split("/").length-1;Ln+=1)fn.push("null");fn.push(kt[Qr].value),kt[Qr].value="["+fn.join(" ")+"]"}}Dn("<<");for(var ui=0;ui<kt.length;ui++)Dn("/"+kt[ui].key+" "+kt[ui].value);Dn(">>"),Qe.data.length!==0&&(Dn("stream"),Dn(Ie(Qe.data)),Dn("endstream"))},mo=gr.__private__.putPage=function(Ht){var ar=Ht.number,In=Ht.data,hi=Ht.objId,Rt=Ht.contentsObjId;Aa(hi,!0),Dn("<</Type /Page"),Dn("/Parent "+Ht.rootDictionaryObjId+" 0 R"),Dn("/Resources "+Ht.resourceDictionaryObjId+" 0 R"),Dn("/MediaBox ["+parseFloat(Tn(Ht.mediaBox.bottomLeftX))+" "+parseFloat(Tn(Ht.mediaBox.bottomLeftY))+" "+Tn(Ht.mediaBox.topRightX)+" "+Tn(Ht.mediaBox.topRightY)+"]"),Ht.cropBox!==null&&Dn("/CropBox ["+Tn(Ht.cropBox.bottomLeftX)+" "+Tn(Ht.cropBox.bottomLeftY)+" "+Tn(Ht.cropBox.topRightX)+" "+Tn(Ht.cropBox.topRightY)+"]"),Ht.bleedBox!==null&&Dn("/BleedBox ["+Tn(Ht.bleedBox.bottomLeftX)+" "+Tn(Ht.bleedBox.bottomLeftY)+" "+Tn(Ht.bleedBox.topRightX)+" "+Tn(Ht.bleedBox.topRightY)+"]"),Ht.trimBox!==null&&Dn("/TrimBox ["+Tn(Ht.trimBox.bottomLeftX)+" "+Tn(Ht.trimBox.bottomLeftY)+" "+Tn(Ht.trimBox.topRightX)+" "+Tn(Ht.trimBox.topRightY)+"]"),Ht.artBox!==null&&Dn("/ArtBox ["+Tn(Ht.artBox.bottomLeftX)+" "+Tn(Ht.artBox.bottomLeftY)+" "+Tn(Ht.artBox.topRightX)+" "+Tn(Ht.artBox.topRightY)+"]"),typeof Ht.userUnit=="number"&&Ht.userUnit!==1&&Dn("/UserUnit "+Ht.userUnit),Wi.publish("putPage",{objId:hi,pageContext:Xi[ar],pageNumber:ar,page:In}),Dn("/Contents "+Rt+" 0 R"),Dn(">>"),Dn("endobj");var ce=In.join(`
|
|
|
`);return ii===Ur.ADVANCED&&(ce+=`
|
|
|
Q`),Aa(Rt,!0),Qo({data:ce,filters:oo(),objectId:Rt}),Dn("endobj"),hi},To=gr.__private__.putPages=function(){var Ht,ar,In=[];for(Ht=1;Ht<=ea;Ht++)Xi[Ht].objId=Oa(),Xi[Ht].contentsObjId=Oa();for(Ht=1;Ht<=ea;Ht++)In.push(mo({number:Ht,data:oa[Ht],objId:Xi[Ht].objId,contentsObjId:Xi[Ht].contentsObjId,mediaBox:Xi[Ht].mediaBox,cropBox:Xi[Ht].cropBox,bleedBox:Xi[Ht].bleedBox,trimBox:Xi[Ht].trimBox,artBox:Xi[Ht].artBox,userUnit:Xi[Ht].userUnit,rootDictionaryObjId:_a,resourceDictionaryObjId:Va}));Aa(_a,!0),Dn("<</Type /Pages");var hi="/Kids [";for(ar=0;ar<ea;ar++)hi+=In[ar]+" 0 R ";Dn(hi+"]"),Dn("/Count "+ea),Dn(">>"),Dn("endobj"),Wi.publish("postPutPages")},ao=function(ar){Wi.publish("putFont",{font:ar,out:Dn,newObject:ga,putStream:Qo}),ar.isAlreadyPutted!==!0&&(ar.objectNumber=ga(),Dn("<<"),Dn("/Type /Font"),Dn("/BaseFont /"+B(ar.postScriptName)),Dn("/Subtype /Type1"),typeof ar.encoding=="string"&&Dn("/Encoding /"+ar.encoding),Dn("/FirstChar 32"),Dn("/LastChar 255"),Dn(">>"),Dn("endobj"))},So=function(){for(var ar in wn)wn.hasOwnProperty(ar)&&(Xr===!1||Xr===!0&&pn.hasOwnProperty(ar))&&ao(wn[ar])},bo=function(ar){ar.objectNumber=ga();var In=[];In.push({key:"Type",value:"/XObject"}),In.push({key:"Subtype",value:"/Form"}),In.push({key:"BBox",value:"["+[Tn(ar.x),Tn(ar.y),Tn(ar.x+ar.width),Tn(ar.y+ar.height)].join(" ")+"]"}),In.push({key:"Matrix",value:"["+ar.matrix.toString()+"]"});var hi=ar.pages[1].join(`
|
|
|
`);Qo({data:hi,additionalKeyValues:In,objectId:ar.objectNumber}),Dn("endobj")},to=function(){for(var ar in Ji)Ji.hasOwnProperty(ar)&&bo(Ji[ar])},Jo=function(ar,In){var hi,Rt=[],ce=1/(In-1);for(hi=0;hi<1;hi+=ce)Rt.push(hi);if(Rt.push(1),ar[0].offset!=0){var xe={offset:0,color:ar[0].color};ar.unshift(xe)}if(ar[ar.length-1].offset!=1){var Ie={offset:1,color:ar[ar.length-1].color};ar.push(Ie)}for(var Qe="",kt=0,or=0;or<Rt.length;or++){for(hi=Rt[or];hi>ar[kt+1].offset;)kt++;var Qr=ar[kt].offset,fn=(hi-Qr)/(ar[kt+1].offset-Qr),Ln=ar[kt].color,ui=ar[kt+1].color;Qe+=Gn(Math.round((1-fn)*Ln[0]+fn*ui[0]).toString(16))+Gn(Math.round((1-fn)*Ln[1]+fn*ui[1]).toString(16))+Gn(Math.round((1-fn)*Ln[2]+fn*ui[2]).toString(16))}return Qe.trim()},Uo=function(ar,In){In||(In=21);var hi=ga(),Rt=Jo(ar.colors,In),ce=[];ce.push({key:"FunctionType",value:"0"}),ce.push({key:"Domain",value:"[0.0 1.0]"}),ce.push({key:"Size",value:"["+In+"]"}),ce.push({key:"BitsPerSample",value:"8"}),ce.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ce.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Qo({data:Rt,additionalKeyValues:ce,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:hi}),Dn("endobj"),ar.objectNumber=ga(),Dn("<< /ShadingType "+ar.type),Dn("/ColorSpace /DeviceRGB");var xe="/Coords ["+Tn(parseFloat(ar.coords[0]))+" "+Tn(parseFloat(ar.coords[1]))+" ";ar.type===2?xe+=Tn(parseFloat(ar.coords[2]))+" "+Tn(parseFloat(ar.coords[3])):xe+=Tn(parseFloat(ar.coords[2]))+" "+Tn(parseFloat(ar.coords[3]))+" "+Tn(parseFloat(ar.coords[4]))+" "+Tn(parseFloat(ar.coords[5])),Dn(xe+="]"),ar.matrix&&Dn("/Matrix ["+ar.matrix.toString()+"]"),Dn("/Function "+hi+" 0 R"),Dn("/Extend [true true]"),Dn(">>"),Dn("endobj")},wo=function(ar,In){var hi=Oa(),Rt=ga();In.push({resourcesOid:hi,objectOid:Rt}),ar.objectNumber=Rt;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:"["+ar.boundingBox.map(Tn).join(" ")+"]"}),ce.push({key:"XStep",value:Tn(ar.xStep)}),ce.push({key:"YStep",value:Tn(ar.yStep)}),ce.push({key:"Resources",value:hi+" 0 R"}),ar.matrix&&ce.push({key:"Matrix",value:"["+ar.matrix.toString()+"]"}),Qo({data:ar.stream,additionalKeyValues:ce,objectId:ar.objectNumber}),Dn("endobj")},ts=function(ar){var In;for(In in pi)pi.hasOwnProperty(In)&&(pi[In]instanceof j?Uo(pi[In]):pi[In]instanceof K&&wo(pi[In],ar))},Ia=function(ar){for(var In in ar.objectNumber=ga(),Dn("<<"),ar)switch(In){case"opacity":Dn("/ca "+It(ar[In]));break;case"stroke-opacity":Dn("/CA "+It(ar[In]))}Dn(">>"),Dn("endobj")},Oo=function(){var ar;for(ar in yi)yi.hasOwnProperty(ar)&&Ia(yi[ar])},Io=function(){for(var ar in Dn("/XObject <<"),Ji)Ji.hasOwnProperty(ar)&&Ji[ar].objectNumber>=0&&Dn("/"+ar+" "+Ji[ar].objectNumber+" 0 R");Wi.publish("putXobjectDict"),Dn(">>")},os=function(){wa.oid=ga(),Dn("<<"),Dn("/Filter /Standard"),Dn("/V "+wa.v),Dn("/R "+wa.r),Dn("/U <"+wa.toHexString(wa.U)+">"),Dn("/O <"+wa.toHexString(wa.O)+">"),Dn("/P "+wa.P),Dn(">>"),Dn("endobj")},xo=function(){for(var ar in Dn("/Font <<"),wn)wn.hasOwnProperty(ar)&&(Xr===!1||Xr===!0&&pn.hasOwnProperty(ar))&&Dn("/"+ar+" "+wn[ar].objectNumber+" 0 R");Dn(">>")},rs=function(){if(Object.keys(pi).length>0){for(var ar in Dn("/Shading <<"),pi)pi.hasOwnProperty(ar)&&pi[ar]instanceof j&&pi[ar].objectNumber>=0&&Dn("/"+ar+" "+pi[ar].objectNumber+" 0 R");Wi.publish("putShadingPatternDict"),Dn(">>")}},Ho=function(ar){if(Object.keys(pi).length>0){for(var In in Dn("/Pattern <<"),pi)pi.hasOwnProperty(In)&&pi[In]instanceof gr.TilingPattern&&pi[In].objectNumber>=0&&pi[In].objectNumber<ar&&Dn("/"+In+" "+pi[In].objectNumber+" 0 R");Wi.publish("putTilingPatternDict"),Dn(">>")}},_o=function(){if(Object.keys(yi).length>0){var ar;for(ar in Dn("/ExtGState <<"),yi)yi.hasOwnProperty(ar)&&yi[ar].objectNumber>=0&&Dn("/"+ar+" "+yi[ar].objectNumber+" 0 R");Wi.publish("putGStateDict"),Dn(">>")}},uo=function(ar){Aa(ar.resourcesOid,!0),Dn("<<"),Dn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),xo(),rs(),Ho(ar.objectOid),_o(),Io(),Dn(">>"),Dn("endobj")},Ha=function(){var ar=[];So(),Oo(),to(),ts(ar),Wi.publish("putResources"),ar.forEach(uo),uo({resourcesOid:Va,objectOid:Number.MAX_SAFE_INTEGER}),Wi.publish("postPutResources")},ft=function(){Wi.publish("putAdditionalObjects");for(var ar=0;ar<Di.length;ar++){var In=Di[ar];Aa(In.objId,!0),Dn(In.content),Dn("endobj")}Wi.publish("postPutAdditionalObjects")},Tr=function(ar){$n[ar.fontName]=$n[ar.fontName]||{},$n[ar.fontName][ar.fontStyle]=ar.id},qr=function(ar,In,hi,Rt,ce){var xe={id:"F"+(Object.keys(wn).length+1).toString(10),postScriptName:ar,fontName:In,fontStyle:hi,encoding:Rt,isStandardFont:ce||!1,metadata:{}};return Wi.publish("addFont",{font:xe,instance:this}),wn[xe.id]=xe,Tr(xe),xe.id},Yr=function(ar){for(var In=0,hi=ta.length;In<hi;In++){var Rt=qr.call(this,ar[In][0],ar[In][1],ar[In][2],ta[In][3],!0);Xr===!1&&(pn[Rt]=!0);var ce=ar[In][0].split("-");Tr({id:Rt,fontName:ce[0],fontStyle:ce[1]||""})}Wi.publish("addFonts",{fonts:wn,dictionary:$n})},Yn=function(ar){return ar.foo=function(){try{return ar.apply(this,arguments)}catch(Rt){var In=Rt.stack||"";~In.indexOf(" at ")&&(In=In.split(" at ")[1]);var hi="Error in function "+In.split(`
|
|
|
`)[0].split("<")[0]+": "+Rt.message;if(!m.console)throw new Error(hi);m.console.error(hi,Rt),m.alert&&alert(hi)}},ar.foo.bar=ar,ar.foo},dn=function(ar,In){var hi,Rt,ce,xe,Ie,Qe,kt,or,Qr;if(ce=(In=In||{}).sourceEncoding||"Unicode",Ie=In.outputEncoding,(In.autoencode||Ie)&&wn[Or].metadata&&wn[Or].metadata[ce]&&wn[Or].metadata[ce].encoding&&(xe=wn[Or].metadata[ce].encoding,!Ie&&wn[Or].encoding&&(Ie=wn[Or].encoding),!Ie&&xe.codePages&&(Ie=xe.codePages[0]),typeof Ie=="string"&&(Ie=xe[Ie]),Ie)){for(kt=!1,Qe=[],hi=0,Rt=ar.length;hi<Rt;hi++)(or=Ie[ar.charCodeAt(hi)])?Qe.push(String.fromCharCode(or)):Qe.push(ar[hi]),Qe[hi].charCodeAt(0)>>8&&(kt=!0);ar=Qe.join("")}for(hi=ar.length;kt===void 0&&hi!==0;)ar.charCodeAt(hi-1)>>8&&(kt=!0),hi--;if(!kt)return ar;for(Qe=In.noBOM?[]:[254,255],hi=0,Rt=ar.length;hi<Rt;hi++){if((Qr=(or=ar.charCodeAt(hi))>>8)>>8)throw new Error("Character at position "+hi+" of string '"+ar+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Qe.push(Qr),Qe.push(or-(Qr<<8))}return String.fromCharCode.apply(void 0,Qe)},Gr=gr.__private__.pdfEscape=gr.pdfEscape=function(Ht,ar){return dn(Ht,ar).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ri=gr.__private__.beginPage=function(Ht){oa[++ea]=[],Xi[ea]={objId:0,contentsObjId:0,userUnit:Number(xt),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Ht[0]),topRightY:Number(Ht[1])}},li(ea),Ai(oa[Br])},rn=function(ar,In){var hi,Rt,ce;switch(He=In||He,typeof ar=="string"&&(hi=an(ar.toLowerCase()),Array.isArray(hi)&&(Rt=hi[0],ce=hi[1])),Array.isArray(ar)&&(Rt=ar[0]*Lr,ce=ar[1]*Lr),isNaN(Rt)&&(Rt=rt[0],ce=rt[1]),(Rt>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"),Rt=Math.min(14400,Rt),ce=Math.min(14400,ce)),rt=[Rt,ce],He.substr(0,1)){case"l":ce>Rt&&(rt=[ce,Rt]);break;case"p":Rt>ce&&(rt=[ce,Rt])}ri(rt),ss(Ao),Dn(hs),ds!==0&&Dn(ds+" J"),ks!==0&&Dn(ks+" j"),Wi.publish("addPage",{pageNumber:ea})},Hn=function(ar){ar>0&&ar<=ea&&(oa.splice(ar,1),Xi.splice(ar,1),ea--,Br>ea&&(Br=ea),this.setPage(Br))},li=function(ar){ar>0&&ar<=ea&&(Br=ar)},ci=gr.__private__.getNumberOfPages=gr.getNumberOfPages=function(){return oa.length-1},si=function(ar,In,hi){var Rt,ce=void 0;return hi=hi||{},ar=ar!==void 0?ar:wn[Or].fontName,In=In!==void 0?In:wn[Or].fontStyle,Rt=ar.toLowerCase(),$n[Rt]!==void 0&&$n[Rt][In]!==void 0?ce=$n[Rt][In]:$n[ar]!==void 0&&$n[ar][In]!==void 0?ce=$n[ar][In]:hi.disableWarning===!1&&d.warn("Unable to look up font label for font '"+ar+"', '"+In+"'. Refer to getFontList() for available fonts."),ce||hi.noFallback||(ce=$n.times[In])==null&&(ce=$n.times.normal),ce},Ti=gr.__private__.putInfo=function(){var Ht=ga(),ar=function(Rt){return Rt};for(var In in Zr!==null&&(ar=wa.encryptor(Ht,0)),Dn("<<"),Dn("/Producer ("+Gr(ar("jsPDF "+z.version))+")"),_t)_t.hasOwnProperty(In)&&_t[In]&&Dn("/"+In.substr(0,1).toUpperCase()+In.substr(1)+" ("+Gr(ar(_t[In]))+")");Dn("/CreationDate ("+Gr(ar(lr))+")"),Dn(">>"),Dn("endobj")},mi=gr.__private__.putCatalog=function(Ht){var ar=(Ht=Ht||{}).rootDictionaryObjId||_a;switch(ga(),Dn("<<"),Dn("/Type /Catalog"),Dn("/Pages "+ar+" 0 R"),Ir||(Ir="fullwidth"),Ir){case"fullwidth":Dn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Dn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Dn("/OpenAction [3 0 R /Fit]");break;case"original":Dn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var In=""+Ir;In.substr(In.length-1)==="%"&&(Ir=parseInt(Ir)/100),typeof Ir=="number"&&Dn("/OpenAction [3 0 R /XYZ null null "+It(Ir)+"]")}switch(Vr||(Vr="continuous"),Vr){case"continuous":Dn("/PageLayout /OneColumn");break;case"single":Dn("/PageLayout /SinglePage");break;case"two":case"twoleft":Dn("/PageLayout /TwoColumnLeft");break;case"tworight":Dn("/PageLayout /TwoColumnRight")}fr&&Dn("/PageMode /"+fr),Wi.publish("putCatalog"),Dn(">>"),Dn("endobj")},vi=gr.__private__.putTrailer=function(){Dn("trailer"),Dn("<<"),Dn("/Size "+(Zn+1)),Dn("/Root "+Zn+" 0 R"),Dn("/Info "+(Zn-1)+" 0 R"),Zr!==null&&Dn("/Encrypt "+wa.oid+" 0 R"),Dn("/ID [ <"+Ar+"> <"+Ar+"> ]"),Dn(">>")},Li=gr.__private__.putHeader=function(){Dn("%PDF-"+Kn),Dn("%\xBA\xDF\xAC\xE0")},ia=gr.__private__.putXRef=function(){var Ht="0000000000";Dn("xref"),Dn("0 "+(Zn+1)),Dn("0000000000 65535 f ");for(var ar=1;ar<=Zn;ar++)typeof ai[ar]=="function"?Dn((Ht+ai[ar]()).slice(-10)+" 00000 n "):ai[ar]!==void 0?Dn((Ht+ai[ar]).slice(-10)+" 00000 n "):Dn("0000000000 00000 n ")},Ki=gr.__private__.buildDocument=function(){ba(),Ai(Ei),Wi.publish("buildDocument"),Li(),To(),ft(),Ha(),Zr!==null&&os(),Ti(),mi();var Ht=Ri;return ia(),vi(),Dn("startxref"),Dn(""+Ht),Dn("%%EOF"),Ai(oa[Br]),Ei.join(`
|
|
|
`)},fa=gr.__private__.getBlob=function(Ht){return new Blob([ha(Ht)],{type:"application/pdf"})},Ya=gr.output=gr.__private__.output=Yn(function(Ht,ar){switch(typeof(ar=ar||{})=="string"?ar={filename:ar}:ar.filename=ar.filename||"generated.pdf",Ht){case void 0:return Ki();case"save":gr.save(ar.filename);break;case"arraybuffer":return ha(Ki());case"blob":return fa(Ki());case"bloburi":case"bloburl":if(m.URL!==void 0&&typeof m.URL.createObjectURL=="function")return m.URL&&m.URL.createObjectURL(fa(Ki()))||void 0;d.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var In="",hi=Ki();try{In=a(hi)}catch(Ln){In=a(unescape(encodeURIComponent(hi)))}return"data:application/pdf;filename="+ar.filename+";base64,"+In;case"pdfobjectnewwindow":if(Object.prototype.toString.call(m)==="[object Window]"){var Rt="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"';ar.pdfObjectUrl&&(Rt=ar.pdfObjectUrl,ce="");var xe='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Rt+'"'+ce+'></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(ar)+");</script></body></html>",Ie=m.open();return Ie!==null&&Ie.document.write(xe),Ie}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="'+(ar.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+ar.filename+'" width="500px" height="400px" /></body></html>',kt=m.open();if(kt!==null){kt.document.write(Qe);var or=this;kt.document.documentElement.querySelector("#pdfViewer").onload=function(){kt.document.title=ar.filename,kt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(or.output("bloburl"))}}return kt}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",ar)+'"></iframe></body></html>',fn=m.open();if(fn!==null&&(fn.document.write(Qr),fn.document.title=ar.filename),fn||typeof safari=="undefined")return fn;break;case"datauri":case"dataurl":return m.document.location.href=this.output("datauristring",ar);default:return null}}),xa=function(ar){return Array.isArray(ji)===!0&&ji.indexOf(ar)>-1};switch(Xe){case"pt":Lr=1;break;case"mm":Lr=72/25.4;break;case"cm":Lr=72/2.54;break;case"in":Lr=72;break;case"px":Lr=xa("px_scaling")==1?.75:96/72;break;case"pc":case"em":Lr=12;break;case"ex":Lr=6;break;default:if(typeof Xe!="number")throw new Error("Invalid unit: "+Xe);Lr=Xe}var wa=null;di(),Mr();var Da=function(ar){return Zr!==null?wa.encryptor(ar,0):function(In){return In}},ja=gr.__private__.getPageInfo=gr.getPageInfo=function(Ht){if(isNaN(Ht)||Ht%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Xi[Ht].objId,pageNumber:Ht,pageContext:Xi[Ht]}},ko=gr.__private__.getPageInfoByObjId=function(Ht){if(isNaN(Ht)||Ht%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var ar in Xi)if(Xi[ar].objId===Ht)break;return ja(ar)},ro=gr.__private__.getCurrentPageInfo=gr.getCurrentPageInfo=function(){return{objId:Xi[Br].objId,pageNumber:Br,pageContext:Xi[Br]}};gr.addPage=function(){return rn.apply(this,arguments),this},gr.setPage=function(){return li.apply(this,arguments),Ai.call(this,oa[Br]),this},gr.insertPage=function(Ht){return this.addPage(),this.movePage(Br,Ht),this},gr.movePage=function(Ht,ar){var In,hi;if(Ht>ar){In=oa[Ht],hi=Xi[Ht];for(var Rt=Ht;Rt>ar;Rt--)oa[Rt]=oa[Rt-1],Xi[Rt]=Xi[Rt-1];oa[ar]=In,Xi[ar]=hi,this.setPage(ar)}else if(Ht<ar){In=oa[Ht],hi=Xi[Ht];for(var ce=Ht;ce<ar;ce++)oa[ce]=oa[ce+1],Xi[ce]=Xi[ce+1];oa[ar]=In,Xi[ar]=hi,this.setPage(ar)}return this},gr.deletePage=function(){return Hn.apply(this,arguments),this},gr.__private__.text=gr.text=function(Ht,ar,In,hi,Rt){var ce,xe,Ie,Qe,kt,or,Qr,fn,Ln,ui=(hi=hi||{}).scope||this;if(typeof Ht=="number"&&typeof ar=="number"&&(typeof In=="string"||Array.isArray(In))){var wi=In;In=ar,ar=Ht,Ht=wi}if(arguments[3]instanceof na==!1?(Ie=arguments[4],Qe=arguments[5],x()(Qr=arguments[3])==="object"&&Qr!==null||(typeof Ie=="string"&&(Qe=Ie,Ie=null),typeof Qr=="string"&&(Qe=Qr,Qr=null),typeof Qr=="number"&&(Ie=Qr,Qr=null),hi={flags:Qr,angle:Ie,align:Qe})):(Vn("The transform parameter of text() with a Matrix value"),Ln=Rt),isNaN(ar)||isNaN(In)||Ht==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Ht.length===0)return ui;var gi="",Qi=!1,sa=typeof hi.lineHeightFactor=="number"?hi.lineHeightFactor:co,Ua=ui.internal.scaleFactor;function no(ol){return ol=ol.split(" ").join(Array(hi.TabLen||9).join(" ")),Gr(ol,Qr)}function Wo(ol){for(var Ys,sl=ol.concat(),nl=[],xl=sl.length;xl--;)typeof(Ys=sl.shift())=="string"?nl.push(Ys):Array.isArray(ol)&&(Ys.length===1||Ys[1]===void 0&&Ys[2]===void 0)?nl.push(Ys[0]):nl.push([Ys[0],Ys[1],Ys[2]]);return nl}function Zo(ol,Ys){var sl;if(typeof ol=="string")sl=Ys(ol)[0];else if(Array.isArray(ol)){for(var nl,xl,Ml=ol.concat(),Wl=[],au=Ml.length;au--;)typeof(nl=Ml.shift())=="string"?Wl.push(Ys(nl)[0]):Array.isArray(nl)&&typeof nl[0]=="string"&&(xl=Ys(nl[0],nl[1],nl[2]),Wl.push([xl[0],xl[1],xl[2]]));sl=Wl}return sl}var Bo=!1,Es=!0;if(typeof Ht=="string")Bo=!0;else if(Array.isArray(Ht)){var As=Ht.concat();xe=[];for(var $o,Do=As.length;Do--;)(typeof($o=As.shift())!="string"||Array.isArray($o)&&typeof $o[0]!="string")&&(Es=!1);Bo=Es}if(Bo===!1)throw new Error('Type of text must be string or Array. "'+Ht+'" is not recognized.');typeof Ht=="string"&&(Ht=Ht.match(/[\r?\n]/)?Ht.split(/\r\n|\r|\n/g):[Ht]);var vo=ra/ui.internal.scaleFactor,Ms=vo*(sa-1);switch(hi.baseline){case"bottom":In-=Ms;break;case"top":In+=vo-Ms;break;case"hanging":In+=vo-2*Ms;break;case"middle":In+=vo/2-Ms}if((or=hi.maxWidth||0)>0&&(typeof Ht=="string"?Ht=ui.splitTextToSize(Ht,or):Object.prototype.toString.call(Ht)==="[object Array]"&&(Ht=Ht.reduce(function(ol,Ys){return ol.concat(ui.splitTextToSize(Ys,or))},[]))),ce={text:Ht,x:ar,y:In,options:hi,mutex:{pdfEscape:Gr,activeFontKey:Or,fonts:wn,activeFontSize:ra}},Wi.publish("preProcessText",ce),Ht=ce.text,Ie=(hi=ce.options).angle,Ln instanceof na==!1&&Ie&&typeof Ie=="number"){Ie*=Math.PI/180,hi.rotationDirection===0&&(Ie=-Ie),ii===Ur.ADVANCED&&(Ie=-Ie);var rl=Math.cos(Ie),gs=Math.sin(Ie);Ln=new na(rl,gs,-gs,rl,0,0)}else Ie&&Ie instanceof na&&(Ln=Ie);ii!==Ur.ADVANCED||Ln||(Ln=La),(kt=hi.charSpace||el)!==void 0&&(gi+=Tn(Kt(kt))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(fn=hi.horizontalScale)!==void 0&&(gi+=Tn(100*fn)+` Tz
|
|
|
`),hi.lang;var Ra=-1,dl=hi.renderingMode!==void 0?hi.renderingMode:hi.stroke,fl=ui.internal.getCurrentPageInfo().pageContext;switch(dl){case 0:case!1:case"fill":Ra=0;break;case 1:case!0:case"stroke":Ra=1;break;case 2:case"fillThenStroke":Ra=2;break;case 3:case"invisible":Ra=3;break;case 4:case"fillAndAddForClipping":Ra=4;break;case 5:case"strokeAndAddPathForClipping":Ra=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Ra=6;break;case 7:case"addToPathForClipping":Ra=7}var Us=fl.usedRenderingMode!==void 0?fl.usedRenderingMode:-1;Ra!==-1?gi+=Ra+` Tr
|
|
|
`:Us!==-1&&(gi+=`0 Tr
|
|
|
`),Ra!==-1&&(fl.usedRenderingMode=Ra),Qe=hi.align||"left";var Os,Xs=ra*sa,Ql=ui.internal.pageSize.getWidth(),Ul=wn[Or];kt=hi.charSpace||el,or=hi.maxWidth||0,Qr=Object.assign({autoencode:!0,noBOM:!0},hi.flags);var wl=[];if(Object.prototype.toString.call(Ht)==="[object Array]"){var Ts;xe=Wo(Ht),Qe!=="left"&&(Os=xe.map(function(ol){return ui.getStringUnitWidth(ol,{font:Ul,charSpace:kt,fontSize:ra,doKerning:!1})*ra/Ua}));var Ws,Tl=0;if(Qe==="right"){ar-=Os[0],Ht=[],Do=xe.length;for(var pl=0;pl<Do;pl++)pl===0?(Ws=Eo(ar),Ts=zo(In)):(Ws=Kt(Tl-Os[pl]),Ts=-Xs),Ht.push([xe[pl],Ws,Ts]),Tl=Os[pl]}else if(Qe==="center"){ar-=Os[0]/2,Ht=[],Do=xe.length;for(var jo=0;jo<Do;jo++)jo===0?(Ws=Eo(ar),Ts=zo(In)):(Ws=Kt((Tl-Os[jo])/2),Ts=-Xs),Ht.push([xe[jo],Ws,Ts]),Tl=Os[jo]}else if(Qe==="left"){Ht=[],Do=xe.length;for(var yo=0;yo<Do;yo++)Ht.push(xe[yo])}else{if(Qe!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');Ht=[],Do=xe.length,or=or!==0?or:Ql;for(var qo=0;qo<Do;qo++)Ts=qo===0?zo(In):-Xs,Ws=qo===0?Eo(ar):0,qo<Do-1?wl.push(Tn(Kt((or-Os[qo])/(xe[qo].split(" ").length-1)))):wl.push(0),Ht.push([xe[qo],Ws,Ts])}}var ps=typeof hi.R2L=="boolean"?hi.R2L:En;ps===!0&&(Ht=Zo(Ht,function(ol,Ys,sl){return[ol.split("").reverse().join(""),Ys,sl]})),ce={text:Ht,x:ar,y:In,options:hi,mutex:{pdfEscape:Gr,activeFontKey:Or,fonts:wn,activeFontSize:ra}},Wi.publish("postProcessText",ce),Ht=ce.text,Qi=ce.mutex.isHex||!1;var Is=wn[Or].encoding;Is!=="WinAnsiEncoding"&&Is!=="StandardEncoding"||(Ht=Zo(Ht,function(ol,Ys,sl){return[no(ol),Ys,sl]})),xe=Wo(Ht),Ht=[];for(var es,Ls,Ps,ml=0,Rl=1,_l=Array.isArray(xe[0])?Rl:ml,Bl="",jl=function(Ys,sl,nl){var xl="";return nl instanceof na?(nl=typeof hi.angle=="number"?Pa(nl,new na(1,0,0,1,Ys,sl)):Pa(new na(1,0,0,1,Ys,sl),nl),ii===Ur.ADVANCED&&(nl=Pa(new na(1,0,0,-1,0,0),nl)),xl=nl.join(" ")+` Tm
|
|
|
`):xl=Tn(Ys)+" "+Tn(sl)+` Td
|
|
|
`,xl},kl=0;kl<xe.length;kl++){switch(Bl="",_l){case Rl:Ps=(Qi?"<":"(")+xe[kl][0]+(Qi?">":")"),es=parseFloat(xe[kl][1]),Ls=parseFloat(xe[kl][2]);break;case ml:Ps=(Qi?"<":"(")+xe[kl]+(Qi?">":")"),es=Eo(ar),Ls=zo(In)}wl!==void 0&&wl[kl]!==void 0&&(Bl=wl[kl]+` Tw
|
|
|
`),kl===0?Ht.push(Bl+jl(es,Ls,Ln)+Ps):_l===ml?Ht.push(Bl+Ps):_l===Rl&&Ht.push(Bl+jl(es,Ls,Ln)+Ps)}Ht=_l===ml?Ht.join(` Tj
|
|
|
T* `):Ht.join(` Tj
|
|
|
`),Ht+=` Tj
|
|
|
`;var Xl=`BT
|
|
|
/`;return Xl+=Or+" "+ra+` Tf
|
|
|
`,Xl+=Tn(ra*sa)+` TL
|
|
|
`,Xl+=Ns+`
|
|
|
`,Xl+=gi,Xl+=Ht,Dn(Xl+="ET"),pn[Or]=!0,ui};var pa=gr.__private__.clip=gr.clip=function(Ht){return Dn(Ht==="evenodd"?"W*":"W"),this};gr.clipEvenOdd=function(){return pa("evenodd")},gr.__private__.discardPath=gr.discardPath=function(){return Dn("n"),this};var Ea=gr.__private__.isValidStyle=function(Ht){var ar=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Ht)!==-1&&(ar=!0),ar};gr.__private__.setDefaultPathOperation=gr.setDefaultPathOperation=function(Ht){return Ea(Ht)&&(hr=Ht),this};var Fa=gr.__private__.getStyle=gr.getStyle=function(Ht){var ar=hr;switch(Ht){case"D":case"S":ar="S";break;case"F":ar="f";break;case"FD":case"DF":ar="B";break;case"f":case"f*":case"B":case"B*":ar=Ht}return ar},Ka=gr.close=function(){return Dn("h"),this};gr.stroke=function(){return Dn("S"),this},gr.fill=function(Ht){return lo("f",Ht),this},gr.fillEvenOdd=function(Ht){return lo("f*",Ht),this},gr.fillStroke=function(Ht){return lo("B",Ht),this},gr.fillStrokeEvenOdd=function(Ht){return lo("B*",Ht),this};var lo=function(ar,In){x()(In)==="object"?Lo(In,ar):Dn(ar)},so=function(ar){ar===null||ii===Ur.ADVANCED&&ar===void 0||(ar=Fa(ar),Dn(ar))};function Co(Ht,ar,In,hi,Rt){var ce=new K(ar||this.boundingBox,In||this.xStep,hi||this.yStep,this.gState,Rt||this.matrix);ce.stream=this.stream;var xe=Ht+"$$"+this.cloneIndex+++"$$";return va(xe,ce),ce}var Lo=function(ar,In){var hi=Mi[ar.key],Rt=pi[hi];if(Rt instanceof j)Dn("q"),Dn(is(In)),Rt.gState&&gr.setGState(Rt.gState),Dn(ar.matrix.toString()+" cm"),Dn("/"+hi+" sh"),Dn("Q");else if(Rt instanceof K){var ce=new na(1,0,0,-1,0,Ds());ar.matrix&&(ce=ce.multiply(ar.matrix||La),hi=Co.call(Rt,ar.key,ar.boundingBox,ar.xStep,ar.yStep,ce).id),Dn("q"),Dn("/Pattern cs"),Dn("/"+hi+" scn"),Rt.gState&&gr.setGState(Rt.gState),Dn(In),Dn("Q")}},is=function(ar){switch(ar){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},cs=gr.moveTo=function(Ht,ar){return Dn(Tn(Kt(Ht))+" "+Tn(Dt(ar))+" m"),this},Rs=gr.lineTo=function(Ht,ar){return Dn(Tn(Kt(Ht))+" "+Tn(Dt(ar))+" l"),this},Ko=gr.curveTo=function(Ht,ar,In,hi,Rt,ce){return Dn([Tn(Kt(Ht)),Tn(Dt(ar)),Tn(Kt(In)),Tn(Dt(hi)),Tn(Kt(Rt)),Tn(Dt(ce)),"c"].join(" ")),this};gr.__private__.line=gr.line=function(Ht,ar,In,hi,Rt){if(isNaN(Ht)||isNaN(ar)||isNaN(In)||isNaN(hi)||!Ea(Rt))throw new Error("Invalid arguments passed to jsPDF.line");return ii===Ur.COMPAT?this.lines([[In-Ht,hi-ar]],Ht,ar,[1,1],Rt||"S"):this.lines([[In-Ht,hi-ar]],Ht,ar,[1,1]).stroke()},gr.__private__.lines=gr.lines=function(Ht,ar,In,hi,Rt,ce){var xe,Ie,Qe,kt,or,Qr,fn,Ln,ui,wi,gi,Qi;if(typeof Ht=="number"&&(Qi=In,In=ar,ar=Ht,Ht=Qi),hi=hi||[1,1],ce=ce||!1,isNaN(ar)||isNaN(In)||!Array.isArray(Ht)||!Array.isArray(hi)||!Ea(Rt)||typeof ce!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(cs(ar,In),xe=hi[0],Ie=hi[1],kt=Ht.length,wi=ar,gi=In,Qe=0;Qe<kt;Qe++)(or=Ht[Qe]).length===2?(wi=or[0]*xe+wi,gi=or[1]*Ie+gi,Rs(wi,gi)):(Qr=or[0]*xe+wi,fn=or[1]*Ie+gi,Ln=or[2]*xe+wi,ui=or[3]*Ie+gi,wi=or[4]*xe+wi,gi=or[5]*Ie+gi,Ko(Qr,fn,Ln,ui,wi,gi));return ce&&Ka(),so(Rt),this},gr.path=function(Ht){for(var ar=0;ar<Ht.length;ar++){var In=Ht[ar],hi=In.c;switch(In.op){case"m":cs(hi[0],hi[1]);break;case"l":Rs(hi[0],hi[1]);break;case"c":Ko.apply(this,hi);break;case"h":Ka()}}return this},gr.__private__.rect=gr.rect=function(Ht,ar,In,hi,Rt){if(isNaN(Ht)||isNaN(ar)||isNaN(In)||isNaN(hi)||!Ea(Rt))throw new Error("Invalid arguments passed to jsPDF.rect");return ii===Ur.COMPAT&&(hi=-hi),Dn([Tn(Kt(Ht)),Tn(Dt(ar)),Tn(Kt(In)),Tn(Kt(hi)),"re"].join(" ")),so(Rt),this},gr.__private__.triangle=gr.triangle=function(Ht,ar,In,hi,Rt,ce,xe){if(isNaN(Ht)||isNaN(ar)||isNaN(In)||isNaN(hi)||isNaN(Rt)||isNaN(ce)||!Ea(xe))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[In-Ht,hi-ar],[Rt-In,ce-hi],[Ht-Rt,ar-ce]],Ht,ar,[1,1],xe,!0),this},gr.__private__.roundedRect=gr.roundedRect=function(Ht,ar,In,hi,Rt,ce,xe){if(isNaN(Ht)||isNaN(ar)||isNaN(In)||isNaN(hi)||isNaN(Rt)||isNaN(ce)||!Ea(xe))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ie=4/3*(Math.SQRT2-1);return Rt=Math.min(Rt,.5*In),ce=Math.min(ce,.5*hi),this.lines([[In-2*Rt,0],[Rt*Ie,0,Rt,ce-ce*Ie,Rt,ce],[0,hi-2*ce],[0,ce*Ie,-Rt*Ie,ce,-Rt,ce],[2*Rt-In,0],[-Rt*Ie,0,-Rt,-ce*Ie,-Rt,-ce],[0,2*ce-hi],[0,-ce*Ie,Rt*Ie,-ce,Rt,-ce]],Ht+Rt,ar,[1,1],xe,!0),this},gr.__private__.ellipse=gr.ellipse=function(Ht,ar,In,hi,Rt){if(isNaN(Ht)||isNaN(ar)||isNaN(In)||isNaN(hi)||!Ea(Rt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ce=4/3*(Math.SQRT2-1)*In,xe=4/3*(Math.SQRT2-1)*hi;return cs(Ht+In,ar),Ko(Ht+In,ar-xe,Ht+ce,ar-hi,Ht,ar-hi),Ko(Ht-ce,ar-hi,Ht-In,ar-xe,Ht-In,ar),Ko(Ht-In,ar+xe,Ht-ce,ar+hi,Ht,ar+hi),Ko(Ht+ce,ar+hi,Ht+In,ar+xe,Ht+In,ar),so(Rt),this},gr.__private__.circle=gr.circle=function(Ht,ar,In,hi){if(isNaN(Ht)||isNaN(ar)||isNaN(In)||!Ea(hi))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Ht,ar,In,In,hi)},gr.setFont=function(Ht,ar,In){return In&&(ar=tn(ar,In)),Or=si(Ht,ar,{disableWarning:!1}),this};var as=gr.__private__.getFont=gr.getFont=function(){return wn[si.apply(gr,arguments)]};gr.__private__.getFontList=gr.getFontList=function(){var Ht,ar,In={};for(Ht in $n)if($n.hasOwnProperty(Ht))for(ar in In[Ht]=[],$n[Ht])$n[Ht].hasOwnProperty(ar)&&In[Ht].push(ar);return In},gr.addFont=function(Ht,ar,In,hi,Rt){var ce=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ce.indexOf(arguments[3])!==-1?Rt=arguments[3]:arguments[3]&&ce.indexOf(arguments[3])==-1&&(In=tn(In,hi)),Rt=Rt||"Identity-H",qr.call(this,Ht,ar,In,Rt)};var co,Ao=nt.lineWidth||.200025,$a=gr.__private__.getLineWidth=gr.getLineWidth=function(){return Ao},ss=gr.__private__.setLineWidth=gr.setLineWidth=function(Ht){return Ao=Ht,Dn(Tn(Kt(Ht))+" w"),this};gr.__private__.setLineDash=z.API.setLineDash=z.API.setLineDashPattern=function(Ht,ar){if(Ht=Ht||[],ar=ar||0,isNaN(ar)||!Array.isArray(Ht))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Ht=Ht.map(function(In){return Tn(Kt(In))}).join(" "),ar=Tn(Kt(ar)),Dn("["+Ht+"] "+ar+" d"),this};var _s=gr.__private__.getLineHeight=gr.getLineHeight=function(){return ra*co};gr.__private__.getLineHeight=gr.getLineHeight=function(){return ra*co};var Fo=gr.__private__.setLineHeightFactor=gr.setLineHeightFactor=function(Ht){return typeof(Ht=Ht||1.15)=="number"&&(co=Ht),this},il=gr.__private__.getLineHeightFactor=gr.getLineHeightFactor=function(){return co};Fo(nt.lineHeight);var Eo=gr.__private__.getHorizontalCoordinate=function(Ht){return Kt(Ht)},zo=gr.__private__.getVerticalCoordinate=function(Ht){return ii===Ur.ADVANCED?Ht:Xi[Br].mediaBox.topRightY-Xi[Br].mediaBox.bottomLeftY-Kt(Ht)},Fs=gr.__private__.getHorizontalCoordinateString=gr.getHorizontalCoordinateString=function(Ht){return Tn(Eo(Ht))},ms=gr.__private__.getVerticalCoordinateString=gr.getVerticalCoordinateString=function(Ht){return Tn(zo(Ht))},hs=nt.strokeColor||"0 G";gr.__private__.getStrokeColor=gr.getDrawColor=function(){return Pi(hs)},gr.__private__.setStrokeColor=gr.setDrawColor=function(Ht,ar,In,hi){return hs=io({ch1:Ht,ch2:ar,ch3:In,ch4:hi,pdfColorType:"draw",precision:2}),Dn(hs),this};var bn=nt.fillColor||"0 g";gr.__private__.getFillColor=gr.getFillColor=function(){return Pi(bn)},gr.__private__.setFillColor=gr.setFillColor=function(Ht,ar,In,hi){return bn=io({ch1:Ht,ch2:ar,ch3:In,ch4:hi,pdfColorType:"fill",precision:2}),Dn(bn),this};var Ns=nt.textColor||"0 g",Ll=gr.__private__.getTextColor=gr.getTextColor=function(){return Pi(Ns)};gr.__private__.setTextColor=gr.setTextColor=function(Ht,ar,In,hi){return Ns=io({ch1:Ht,ch2:ar,ch3:In,ch4:hi,pdfColorType:"text",precision:3}),this};var el=nt.charSpace,Gs=gr.__private__.getCharSpace=gr.getCharSpace=function(){return parseFloat(el||0)};gr.__private__.setCharSpace=gr.setCharSpace=function(Ht){if(isNaN(Ht))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return el=Ht,this};var ds=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(Ht){var ar=gr.CapJoinStyles[Ht];if(ar===void 0)throw new Error("Line cap style of '"+Ht+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ds=ar,Dn(ar+" J"),this};var ks=0;gr.__private__.setLineJoin=gr.setLineJoin=function(Ht){var ar=gr.CapJoinStyles[Ht];if(ar===void 0)throw new Error("Line join style of '"+Ht+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ks=ar,Dn(ar+" j"),this},gr.__private__.setLineMiterLimit=gr.__private__.setMiterLimit=gr.setLineMiterLimit=gr.setMiterLimit=function(Ht){if(Ht=Ht||0,isNaN(Ht))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Dn(Tn(Kt(Ht))+" M"),this},gr.GState=G,gr.setGState=function(Ht){(Ht=typeof Ht=="string"?yi[Oi[Ht]]:Qs(null,Ht)).equals(zi)||(Dn("/"+Ht.id+" gs"),zi=Ht)};var Qs=function(ar,In){if(!ar||!Oi[ar]){var hi=!1;for(var Rt in yi)if(yi.hasOwnProperty(Rt)&&yi[Rt].equals(In)){hi=!0;break}if(hi)In=yi[Rt];else{var ce="GS"+(Object.keys(yi).length+1).toString(10);yi[ce]=In,In.id=ce}return ar&&(Oi[ar]=In.id),Wi.publish("addGState",In),In}};gr.addGState=function(Ht,ar){return Qs(Ht,ar),this},gr.saveGraphicsState=function(){return Dn("q"),jn.push({key:Or,size:ra,color:Ns}),this},gr.restoreGraphicsState=function(){Dn("Q");var Ht=jn.pop();return Or=Ht.key,ra=Ht.size,Ns=Ht.color,zi=null,this},gr.setCurrentTransformationMatrix=function(Ht){return Dn(Ht.toString()+" cm"),this},gr.comment=function(Ht){return Dn("#"+Ht),this};var tl=function(ar,In){var hi=ar||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return hi},set:function(Ie){isNaN(Ie)||(hi=parseFloat(Ie))}});var Rt=In||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Rt},set:function(Ie){isNaN(Ie)||(Rt=parseFloat(Ie))}});var ce="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ce},set:function(Ie){ce=Ie.toString()}}),this},xs=function(ar,In,hi,Rt){tl.call(this,ar,In),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 xe=Rt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return xe},set:function(Qe){isNaN(Qe)||(xe=parseFloat(Qe))}}),this},Bs=function(){this.page=ea,this.currentPage=Br,this.pages=oa.slice(0),this.pagesContext=Xi.slice(0),this.x=en,this.y=Sn,this.matrix=On,this.width=No(Br),this.height=Ds(Br),this.outputDestination=aa,this.id="",this.objectNumber=-1};Bs.prototype.restore=function(){ea=this.page,Br=this.currentPage,Xi=this.pagesContext,oa=this.pages,en=this.x,Sn=this.y,On=this.matrix,fs(Br,this.width),go(Br,this.height),aa=this.outputDestination};var al=function(ar,In,hi,Rt,ce){Ca.push(new Bs),ea=Br=0,oa=[],en=ar,Sn=In,On=ce,ri([hi,Rt])},Js=function(ar){if(ca[ar])Ca.pop().restore();else{var In=new Bs,hi="Xo"+(Object.keys(Ji).length+1).toString(10);In.id=hi,ca[ar]=hi,Ji[hi]=In,Wi.publish("addFormObject",In),Ca.pop().restore()}};for(var Vo in gr.beginFormObject=function(Ht,ar,In,hi,Rt){return al(Ht,ar,In,hi,Rt),this},gr.endFormObject=function(Ht){return Js(Ht),this},gr.doFormObject=function(Ht,ar){var In=Ji[ca[Ht]];return Dn("q"),Dn(ar.toString()+" cm"),Dn("/"+In.id+" Do"),Dn("Q"),this},gr.getFormObject=function(Ht){var ar=Ji[ca[Ht]];return{x:ar.x,y:ar.y,width:ar.width,height:ar.height,matrix:ar.matrix}},gr.save=function(Ht,ar){return Ht=Ht||"generated.pdf",(ar=ar||{}).returnPromise=ar.returnPromise||!1,ar.returnPromise===!1?(e(fa(Ki()),Ht),typeof e.unload=="function"&&m.setTimeout&&setTimeout(e.unload,911),this):new Promise(function(In,hi){try{var Rt=e(fa(Ki()),Ht);typeof e.unload=="function"&&m.setTimeout&&setTimeout(e.unload,911),In(Rt)}catch(ce){hi(ce.message)}})},z.API)z.API.hasOwnProperty(Vo)&&(Vo==="events"&&z.API.events.length?function(Ht,ar){var In,hi,Rt;for(Rt=ar.length-1;Rt!==-1;Rt--)In=ar[Rt][0],hi=ar[Rt][1],Ht.subscribe.apply(Ht,[In].concat(typeof hi=="function"?[hi]:hi))}(Wi,z.API.events):gr[Vo]=z.API[Vo]);var No=gr.getPageWidth=function(Ht){return(Xi[Ht=Ht||Br].mediaBox.topRightX-Xi[Ht].mediaBox.bottomLeftX)/Lr},fs=gr.setPageWidth=function(Ht,ar){Xi[Ht].mediaBox.topRightX=ar*Lr+Xi[Ht].mediaBox.bottomLeftX},Ds=gr.getPageHeight=function(Ht){return(Xi[Ht=Ht||Br].mediaBox.topRightY-Xi[Ht].mediaBox.bottomLeftY)/Lr},go=gr.setPageHeight=function(Ht,ar){Xi[Ht].mediaBox.topRightY=ar*Lr+Xi[Ht].mediaBox.bottomLeftY};return gr.internal={pdfEscape:Gr,getStyle:Fa,getFont:as,getFontSize:Sr,getCharSpace:Gs,getTextColor:Ll,getLineHeight:_s,getLineHeightFactor:il,getLineWidth:$a,write:Bi,getHorizontalCoordinate:Eo,getVerticalCoordinate:zo,getCoordinateString:Fs,getVerticalCoordinateString:ms,collections:{},newObject:ga,newAdditionalObject:Xa,newObjectDeferred:Oa,newObjectDeferredBegin:Aa,getFilters:oo,putStream:Qo,events:Wi,scaleFactor:Lr,pageSize:{getWidth:function(){return No(Br)},setWidth:function(ar){fs(Br,ar)},getHeight:function(){return Ds(Br)},setHeight:function(ar){go(Br,ar)}},encryptionOptions:Zr,encryption:wa,getEncryptor:Da,output:Ya,getNumberOfPages:ci,pages:oa,out:Dn,f2:It,f3:Pt,getPageInfo:ja,getPageInfoByObjId:ko,getCurrentPageInfo:ro,getPDFVersion:Rr,Point:tl,Rectangle:xs,Matrix:na,hasHotfix:xa},Object.defineProperty(gr.internal.pageSize,"width",{get:function(){return No(Br)},set:function(ar){fs(Br,ar)},enumerable:!0,configurable:!0}),Object.defineProperty(gr.internal.pageSize,"height",{get:function(){return Ds(Br)},set:function(ar){go(Br,ar)},enumerable:!0,configurable:!0}),Yr.call(gr,ta),Or="F1",rn(rt,He),Wi.publish("initialized"),gr}P.prototype.lsbFirstWord=function(nt){return String.fromCharCode(nt>>0&255,nt>>8&255,nt>>16&255,nt>>24&255)},P.prototype.toHexString=function(nt){return nt.split("").map(function(Ne){return("0"+(255&Ne.charCodeAt(0)).toString(16)).slice(-2)}).join("")},P.prototype.hexToBytes=function(nt){for(var Ne=[],He=0;He<nt.length;He+=2)Ne.push(String.fromCharCode(parseInt(nt.substr(He,2),16)));return Ne.join("")},P.prototype.processOwnerPassword=function(nt,Ne){return I(T(Ne).substr(0,5),nt)},P.prototype.encryptor=function(nt,Ne){var He=T(this.encryptionKey+String.fromCharCode(255&nt,nt>>8&255,nt>>16&255,255&Ne,Ne>>8&255)).substr(0,10);return function(Xe){return I(He,Xe)}},G.prototype.equals=function(nt){var Ne,He="id,objectNumber,equals";if(!nt||x()(nt)!==x()(this))return!1;var Xe=0;for(Ne in this)if(!(He.indexOf(Ne)>=0)){if(this.hasOwnProperty(Ne)&&!nt.hasOwnProperty(Ne))return!1;if(this[Ne]!==nt[Ne])return!1;Xe++}for(Ne in nt)nt.hasOwnProperty(Ne)&&He.indexOf(Ne)<0&&Xe--;return Xe===0},z.API={events:[]},z.version="2.5.1";var V=z.API,Q=1,X=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 Le,Xe=se.internal.getHeight(Ne)||0,rt=se.internal.getWidth(Ne)||0;return He.BBox=[0,0,Number($(rt)),Number($(Xe))],He},Pe=V.__acroform__.setBit=function(nt,Ne){if(nt=nt||0,Ne=Ne||0,isNaN(nt)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return nt|=1<<Ne},Je=V.__acroform__.clearBit=function(nt,Ne){if(nt=nt||0,Ne=Ne||0,isNaN(nt)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return nt&=~(1<<Ne)},Ge=V.__acroform__.getBit=function(nt,Ne){if(isNaN(nt)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(nt&1<<Ne)==0?0:1},ct=V.__acroform__.getBitForPdf=function(nt,Ne){if(isNaN(nt)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Ge(nt,Ne-1)},Ue=V.__acroform__.setBitForPdf=function(nt,Ne){if(isNaN(nt)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Pe(nt,Ne-1)},ae=V.__acroform__.clearBitForPdf=function(nt,Ne){if(isNaN(nt)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Je(nt,Ne-1)},lt=V.__acroform__.calculateCoordinates=function(nt,Ne){var He=Ne.internal.getHorizontalCoordinate,Xe=Ne.internal.getVerticalCoordinate,rt=nt[0],Ze=nt[1],st=nt[2],xt=nt[3],pt={};return pt.lowerLeft_X=He(rt)||0,pt.lowerLeft_Y=Xe(Ze+xt)||0,pt.upperRight_X=He(rt+st)||0,pt.upperRight_Y=Xe(Ze)||0,[Number($(pt.lowerLeft_X)),Number($(pt.lowerLeft_Y)),Number($(pt.upperRight_X)),Number($(pt.upperRight_Y))]},pe=function(Ne){if(Ne.appearanceStreamContent)return Ne.appearanceStreamContent;if(Ne.V||Ne.DV){var He=[],Xe=Ne._V||Ne.DV,rt=J(Ne,Xe),Ze=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("/"+Ze+" "+$(rt.fontSize)+" Tf"),He.push("1 0 0 1 0 0 Tm"),He.push(rt.text),He.push("ET"),He.push("Q"),He.push("EMC");var st=Re(Ne);return st.scope=Ne.scope,st.stream=He.join(`
|
|
|
`),st}},J=function(Ne,He){var Xe=Ne.fontSize===0?Ne.maxFontSize:Ne.fontSize,rt={text:"",fontSize:""},Ze=(He=(He=He.substr(0,1)=="("?He.substr(1):He).substr(He.length-1)==")"?He.substr(0,He.length-1):He).split(" ");Ze=Ne.multiline?Ze.map(function(Kt){return Kt.split(`
|
|
|
`)}):Ze.map(function(Kt){return[Kt]});var st=Xe,xt=se.internal.getHeight(Ne)||0;xt=xt<0?-xt:xt;var pt=se.internal.getWidth(Ne)||0;pt=pt<0?-pt:pt;var hr=function(Gt,Dt,lr){if(Gt+1<Ze.length){var Ar=Dt+" "+Ze[Gt+1][0];return Y(Ar,Ne,lr).width<=pt-4}return!1};st++;e:for(;st>0;){He="",st--;var Zr,Xr,pn=Y("3",Ne,st).height,gr=Ne.multiline?xt-st:(xt-pn)/2,Kn=gr+=2,Rr=0,Pn=0,an=0;if(st<=0){He=`(...) Tj
|
|
|
`,He+="% Width of Text: "+Y(He,Ne,st=12).width+", FieldWidth:"+pt+`
|
|
|
`;break}for(var Ur="",ii=0,_i=0;_i<Ze.length;_i++)if(Ze.hasOwnProperty(_i)){var Gi=!1;if(Ze[_i].length!==1&&an!==Ze[_i].length-1){if((pn+2)*(ii+2)+2>xt)continue e;Ur+=Ze[_i][an],Gi=!0,Pn=_i,_i--}else{Ur=(Ur+=Ze[_i][an]+" ").substr(Ur.length-1)==" "?Ur.substr(0,Ur.length-1):Ur;var tn=parseInt(_i),Tn=hr(tn,Ur,st),Vn=_i>=Ze.length-1;if(Tn&&!Vn){Ur+=" ",an=0;continue}if(Tn||Vn){if(Vn)Pn=tn;else if(Ne.multiline&&(pn+2)*(ii+2)+2>xt)continue e}else{if(!Ne.multiline)continue e;if((pn+2)*(ii+2)+2>xt)continue e;Pn=tn}}for(var Xt="",It=Rr;It<=Pn;It++){var Pt=Ze[It];if(Ne.multiline){if(It===Pn){Xt+=Pt[an]+" ",an=(an+1)%Pt.length;continue}if(It===Rr){Xt+=Pt[Pt.length-1]+" ";continue}}Xt+=Pt[0]+" "}switch(Xt=Xt.substr(Xt.length-1)==" "?Xt.substr(0,Xt.length-1):Xt,Xr=Y(Xt,Ne,st).width,Ne.textAlign){case"right":Zr=pt-Xr-2;break;case"center":Zr=(pt-Xr)/2;break;case"left":default:Zr=2}He+=$(Zr)+" "+$(Kn)+` Td
|
|
|
`,He+="("+X(Xt)+`) Tj
|
|
|
`,He+=-$(Zr)+` 0 Td
|
|
|
`,Kn=-(st+2),Xr=0,Rr=Gi?Pn:Pn+1,ii++,Ur=""}break}return rt.text=He,rt.fontSize=st,rt},Y=function(Ne,He,Xe){var rt=He.scope.internal.getFont(He.fontName,He.fontStyle),Ze=He.scope.getStringUnitWidth(Ne,{font:rt,fontSize:parseFloat(Xe),charSpace:0})*parseFloat(Xe);return{height:He.scope.getStringUnitWidth("3",{font:rt,fontSize:parseFloat(Xe),charSpace:0})*parseFloat(Xe)*1.5,width:Ze}},ee={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},fe=function(Ne,He){var Xe={type:"reference",object:Ne};He.internal.getPageInfo(Ne.page).pageContext.annotations.find(function(rt){return rt.type===Xe.type&&rt.object===Xe.object})===void 0&&He.internal.getPageInfo(Ne.page).pageContext.annotations.push(Xe)},we=function(Ne,He){for(var Xe in Ne)if(Ne.hasOwnProperty(Xe)){var rt=Xe,Ze=Ne[Xe];He.internal.newObjectDeferredBegin(Ze.objId,!0),x()(Ze)==="object"&&typeof Ze.putStream=="function"&&Ze.putStream(),delete Ne[rt]}},Ce=function(Ne,He){if(He.scope=Ne,Ne.internal!==void 0&&(Ne.internal.acroformPlugin===void 0||Ne.internal.acroformPlugin.isInitialized===!1)){if(gt.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(Xe){Xe.internal.events.unsubscribe(Xe.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Xe.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Xe.internal.acroformPlugin.printedOut=!0}(Ne)}),Ne.internal.events.subscribe("buildDocument",function(){!function(Xe){Xe.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var rt=Xe.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var Ze in rt)if(rt.hasOwnProperty(Ze)){var st=rt[Ze];st.objId=void 0,st.hasAnnotation&&fe(st,Xe)}}(Ne)}),Ne.internal.events.subscribe("putCatalog",function(){!function(Xe){if(Xe.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Xe.internal.write("/AcroForm "+Xe.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(Ne)}),Ne.internal.events.subscribe("postPutPages",function(Xe){!function(rt,Ze){var st=!rt;for(var xt in rt||(Ze.internal.newObjectDeferredBegin(Ze.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),Ze.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),rt=rt||Ze.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(rt.hasOwnProperty(xt)){var pt=rt[xt],hr=[],Zr=pt.Rect;if(pt.Rect&&(pt.Rect=lt(pt.Rect,Ze)),Ze.internal.newObjectDeferredBegin(pt.objId,!0),pt.DA=se.createDefaultAppearanceStream(pt),x()(pt)==="object"&&typeof pt.getKeyValueListForStream=="function"&&(hr=pt.getKeyValueListForStream()),pt.Rect=Zr,pt.hasAppearanceStream&&!pt.appearanceStreamContent){var Xr=pe(pt);hr.push({key:"AP",value:"<</N "+Xr+">>"}),Ze.internal.acroformPlugin.xForms.push(Xr)}if(pt.appearanceStreamContent){var pn="";for(var gr in pt.appearanceStreamContent)if(pt.appearanceStreamContent.hasOwnProperty(gr)){var Kn=pt.appearanceStreamContent[gr];if(pn+="/"+gr+" ",pn+="<<",Object.keys(Kn).length>=1||Array.isArray(Kn)){for(var xt in Kn)if(Kn.hasOwnProperty(xt)){var Rr=Kn[xt];typeof Rr=="function"&&(Rr=Rr.call(Ze,pt)),pn+="/"+xt+" "+Rr+" ",Ze.internal.acroformPlugin.xForms.indexOf(Rr)>=0||Ze.internal.acroformPlugin.xForms.push(Rr)}}else typeof(Rr=Kn)=="function"&&(Rr=Rr.call(Ze,pt)),pn+="/"+xt+" "+Rr,Ze.internal.acroformPlugin.xForms.indexOf(Rr)>=0||Ze.internal.acroformPlugin.xForms.push(Rr);pn+=">>"}hr.push({key:"AP",value:`<<
|
|
|
`+pn+">>"})}Ze.internal.putStream({additionalKeyValues:hr,objectId:pt.objId}),Ze.internal.out("endobj")}st&&we(Ze.internal.acroformPlugin.xForms,Ze)}(Xe,Ne)}),Ne.internal.acroformPlugin.isInitialized=!0}},_e=V.__acroform__.arrayToPdfArray=function(nt,Ne,He){var Xe=function(xt){return xt};if(Array.isArray(nt)){for(var rt="[",Ze=0;Ze<nt.length;Ze++)switch(Ze!==0&&(rt+=" "),x()(nt[Ze])){case"boolean":case"number":case"object":rt+=nt[Ze].toString();break;case"string":nt[Ze].substr(0,1)!=="/"?(Ne!==void 0&&He&&(Xe=He.internal.getEncryptor(Ne)),rt+="("+X(Xe(nt[Ze].toString()))+")"):rt+=nt[Ze].toString()}return rt+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},he=function(Ne,He,Xe){var rt=function(st){return st};return He!==void 0&&Xe&&(rt=Xe.internal.getEncryptor(He)),(Ne=Ne||"").toString(),Ne="("+X(rt(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 nt=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:nt,objectId:this.objId}),this.scope.internal.out("endobj")},ye.prototype.getKeyValueListForStream=function(){var nt=[],Ne=Object.getOwnPropertyNames(this).filter(function(Ze){return Ze!="content"&&Ze!="appearanceStreamContent"&&Ze!="scope"&&Ze!="objId"&&Ze.substring(0,1)!="_"});for(var He in Ne)if(Object.getOwnPropertyDescriptor(this,Ne[He]).configurable===!1){var Xe=Ne[He],rt=this[Xe];rt&&(Array.isArray(rt)?nt.push({key:Xe,value:_e(rt,this.objId,this.scope)}):rt instanceof ye?(rt.scope=this.scope,nt.push({key:Xe,value:rt.objId+" 0 R"})):typeof rt!="function"&&nt.push({key:Xe,value:rt}))}return nt};var Le=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(rt){He=rt}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(rt){Ne=rt.trim()},get:function(){return Ne||null}})};re(Le,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 rt=function(st){return st};return this.scope&&(rt=this.scope.internal.getEncryptor(this.objId)),"("+X(rt(Ne))+")"}},set:function(rt){Ne=rt}})};re(tt,ye);var gt=function nt(){ye.call(this);var Ne=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return Ne},set:function(Ur){if(isNaN(Ur))throw new Error('Invalid value "'+Ur+'" for attribute F supplied.');Ne=Ur}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(Ne,3))},set:function(Ur){Boolean(Ur)===!0?this.F=Ue(Ne,3):this.F=ae(Ne,3)}});var He=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return He},set:function(Ur){if(isNaN(Ur))throw new Error('Invalid value "'+Ur+'" for attribute Ff supplied.');He=Ur}});var Xe=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Xe.length!==0)return Xe},set:function(Ur){Xe=Ur!==void 0?Ur:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Xe||isNaN(Xe[0])?0:Xe[0]},set:function(Ur){Xe[0]=Ur}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Xe||isNaN(Xe[1])?0:Xe[1]},set:function(Ur){Xe[1]=Ur}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Xe||isNaN(Xe[2])?0:Xe[2]},set:function(Ur){Xe[2]=Ur}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Xe||isNaN(Xe[3])?0:Xe[3]},set:function(Ur){Xe[3]=Ur}});var rt="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return rt},set:function(Ur){switch(Ur){case"/Btn":case"/Tx":case"/Ch":case"/Sig":rt=Ur;break;default:throw new Error('Invalid value "'+Ur+'" for attribute FT supplied.')}}});var Ze=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!Ze||Ze.length<1){if(this instanceof Ot)return;Ze="FieldObject"+nt.FieldNum++}var Ur=function(_i){return _i};return this.scope&&(Ur=this.scope.internal.getEncryptor(this.objId)),"("+X(Ur(Ze))+")"},set:function(Ur){Ze=Ur.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return Ze},set:function(Ur){Ze=Ur}});var st="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return st},set:function(Ur){st=Ur}});var xt="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return xt},set:function(Ur){xt=Ur}});var pt=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return pt},set:function(Ur){pt=Ur}});var hr=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return hr===void 0?50/Q:hr},set:function(Ur){hr=Ur}});var Zr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Zr},set:function(Ur){Zr=Ur}});var Xr="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Xr||this instanceof Ot||this instanceof Ke))return he(Xr,this.objId,this.scope)},set:function(Ur){Ur=Ur.toString(),Xr=Ur}});var pn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(pn)return this instanceof St==!1?he(pn,this.objId,this.scope):pn},set:function(Ur){Ur=Ur.toString(),pn=this instanceof St==!1?Ur.substr(0,1)==="("?te(Ur.substr(1,Ur.length-2)):te(Ur):Ur}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof St==!0?te(pn.substr(1,pn.length-1)):pn},set:function(Ur){Ur=Ur.toString(),pn=this instanceof St==!0?"/"+Ur:Ur}});var gr=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(gr)return gr},set:function(Ur){this.V=Ur}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(gr)return this instanceof St==!1?he(gr,this.objId,this.scope):gr},set:function(Ur){Ur=Ur.toString(),gr=this instanceof St==!1?Ur.substr(0,1)==="("?te(Ur.substr(1,Ur.length-2)):te(Ur):Ur}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof St==!0?te(gr.substr(1,gr.length-1)):gr},set:function(Ur){Ur=Ur.toString(),gr=this instanceof St==!0?"/"+Ur:Ur}}),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 Kn,Rr=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Rr},set:function(Ur){Ur=Boolean(Ur),Rr=Ur}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(Kn)return Kn},set:function(Ur){Kn=Ur}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,1))},set:function(Ur){Boolean(Ur)===!0?this.Ff=Ue(this.Ff,1):this.Ff=ae(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,2))},set:function(Ur){Boolean(Ur)===!0?this.Ff=Ue(this.Ff,2):this.Ff=ae(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,3))},set:function(Ur){Boolean(Ur)===!0?this.Ff=Ue(this.Ff,3):this.Ff=ae(this.Ff,3)}});var Pn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(Pn!==null)return Pn},set:function(Ur){if([0,1,2].indexOf(Ur)===-1)throw new Error('Invalid value "'+Ur+'" for attribute Q supplied.');Pn=Ur}}),Object.defineProperty(this,"textAlign",{get:function(){var Ur;switch(Pn){case 0:default:Ur="left";break;case 1:Ur="center";break;case 2:Ur="right"}return Ur},configurable:!0,enumerable:!0,set:function(Ur){switch(Ur){case"right":case 2:Pn=2;break;case"center":case 1:Pn=1;break;case"left":case 0:default:Pn=0}}})};re(gt,ye);var at=function(){gt.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(rt){Ne=rt}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Ne},set:function(rt){Ne=rt}});var He=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return _e(He,this.objId,this.scope)},set:function(rt){var Ze,st;st=[],typeof(Ze=rt)=="string"&&(st=function(xt,pt,hr){hr||(hr=1);for(var Zr,Xr=[];Zr=pt.exec(xt);)Xr.push(Zr[hr]);return Xr}(Ze,/\((.*?)\)/g)),He=st}}),this.getOptions=function(){return He},this.setOptions=function(Xe){He=Xe,this.sort&&He.sort()},this.addOption=function(Xe){Xe=(Xe=Xe||"").toString(),He.push(Xe),this.sort&&He.sort()},this.removeOption=function(Xe,rt){for(rt=rt||!1,Xe=(Xe=Xe||"").toString();He.indexOf(Xe)!==-1&&(He.splice(He.indexOf(Xe),1),rt!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,18))},set:function(rt){Boolean(rt)===!0?this.Ff=Ue(this.Ff,18):this.Ff=ae(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,19))},set:function(rt){this.combo===!0&&(Boolean(rt)===!0?this.Ff=Ue(this.Ff,19):this.Ff=ae(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,20))},set:function(rt){Boolean(rt)===!0?(this.Ff=Ue(this.Ff,20),He.sort()):this.Ff=ae(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,22))},set:function(rt){Boolean(rt)===!0?this.Ff=Ue(this.Ff,22):this.Ff=ae(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,23))},set:function(rt){Boolean(rt)===!0?this.Ff=Ue(this.Ff,23):this.Ff=ae(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,27))},set:function(rt){Boolean(rt)===!0?this.Ff=Ue(this.Ff,27):this.Ff=ae(this.Ff,27)}}),this.hasAppearanceStream=!1};re(at,gt);var Fe=function(){at.call(this),this.fontName="helvetica",this.combo=!1};re(Fe,at);var mt=function(){Fe.call(this),this.combo=!0};re(mt,Fe);var et=function(){mt.call(this),this.edit=!0};re(et,mt);var St=function(){gt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,15))},set:function(rt){Boolean(rt)===!0?this.Ff=Ue(this.Ff,15):this.Ff=ae(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,16))},set:function(rt){Boolean(rt)===!0?this.Ff=Ue(this.Ff,16):this.Ff=ae(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,17))},set:function(rt){Boolean(rt)===!0?this.Ff=Ue(this.Ff,17):this.Ff=ae(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,26))},set:function(rt){Boolean(rt)===!0?this.Ff=Ue(this.Ff,26):this.Ff=ae(this.Ff,26)}});var Ne,He={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var rt=function(pt){return pt};if(this.scope&&(rt=this.scope.internal.getEncryptor(this.objId)),Object.keys(He).length!==0){var Ze,st=[];for(Ze in st.push("<<"),He)st.push("/"+Ze+" ("+X(rt(He[Ze]))+")");return st.push(">>"),st.join(`
|
|
|
`)}},set:function(rt){x()(rt)==="object"&&(He=rt)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return He.CA||""},set:function(rt){typeof rt=="string"&&(He.CA=rt)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Ne},set:function(rt){Ne=rt}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Ne.substr(1,Ne.length-1)},set:function(rt){Ne="/"+rt}})};re(St,gt);var jt=function(){St.call(this),this.pushButton=!0};re(jt,St);var Mt=function(){St.call(this),this.radio=!0,this.pushButton=!1;var Ne=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Ne},set:function(Xe){Ne=Xe!==void 0?Xe:[]}})};re(Mt,St);var Ot=function(){var Ne,He;gt.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Ne},set:function(st){Ne=st}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return He},set:function(st){He=st}});var Xe,rt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var st=function(Zr){return Zr};this.scope&&(st=this.scope.internal.getEncryptor(this.objId));var xt,pt=[];for(xt in pt.push("<<"),rt)pt.push("/"+xt+" ("+X(st(rt[xt]))+")");return pt.push(">>"),pt.join(`
|
|
|
`)},set:function(st){x()(st)==="object"&&(rt=st)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return rt.CA||""},set:function(st){typeof st=="string"&&(rt.CA=st)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Xe},set:function(st){Xe=st}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Xe.substr(1,Xe.length-1)},set:function(st){Xe="/"+st}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=se.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};re(Ot,gt),Mt.prototype.setAppearance=function(nt){if(!("createAppearanceStream"in nt)||!("getCA"in nt))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=nt.createAppearanceStream(He.optionName),He.caption=nt.getCA()}},Mt.prototype.createOption=function(nt){var Ne=new Ot;return Ne.Parent=this,Ne.optionName=nt,this.Kids.push(Ne),ut.call(this.scope,Ne),Ne};var Bt=function(){St.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=se.CheckBox.createAppearanceStream()};re(Bt,St);var Ke=function(){gt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,13))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Ue(this.Ff,13):this.Ff=ae(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,21))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Ue(this.Ff,21):this.Ff=ae(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,23))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Ue(this.Ff,23):this.Ff=ae(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,24))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Ue(this.Ff,24):this.Ff=ae(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,25))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Ue(this.Ff,25):this.Ff=ae(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,26))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Ue(this.Ff,26):this.Ff=ae(this.Ff,26)}});var Ne=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Ne},set:function(Xe){Ne=Xe}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Ne},set:function(Xe){Number.isInteger(Xe)&&(Ne=Xe)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};re(Ke,gt);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=ae(this.Ff,14)}}),this.password=!0};re(de,Ke);var se={CheckBox:{createAppearanceStream:function(){return{N:{On:se.CheckBox.YesNormal},D:{On:se.CheckBox.YesPushDown,Off:se.CheckBox.OffPushDown}}},YesPushDown:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Xe=[],rt=Ne.scope.internal.getFont(Ne.fontName,Ne.fontStyle).id,Ze=Ne.scope.__private__.encodeColorString(Ne.color),st=J(Ne,Ne.caption);return Xe.push("0.749023 g"),Xe.push("0 0 "+$(se.internal.getWidth(Ne))+" "+$(se.internal.getHeight(Ne))+" re"),Xe.push("f"),Xe.push("BMC"),Xe.push("q"),Xe.push("0 0 1 rg"),Xe.push("/"+rt+" "+$(st.fontSize)+" Tf "+Ze),Xe.push("BT"),Xe.push(st.text),Xe.push("ET"),Xe.push("Q"),Xe.push("EMC"),He.stream=Xe.join(`
|
|
|
`),He},YesNormal:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Xe=Ne.scope.internal.getFont(Ne.fontName,Ne.fontStyle).id,rt=Ne.scope.__private__.encodeColorString(Ne.color),Ze=[],st=se.internal.getHeight(Ne),xt=se.internal.getWidth(Ne),pt=J(Ne,Ne.caption);return Ze.push("1 g"),Ze.push("0 0 "+$(xt)+" "+$(st)+" re"),Ze.push("f"),Ze.push("q"),Ze.push("0 0 1 rg"),Ze.push("0 0 "+$(xt-1)+" "+$(st-1)+" re"),Ze.push("W"),Ze.push("n"),Ze.push("0 g"),Ze.push("BT"),Ze.push("/"+Xe+" "+$(pt.fontSize)+" Tf "+rt),Ze.push(pt.text),Ze.push("ET"),Ze.push("Q"),He.stream=Ze.join(`
|
|
|
`),He},OffPushDown:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Xe=[];return Xe.push("0.749023 g"),Xe.push("0 0 "+$(se.internal.getWidth(Ne))+" "+$(se.internal.getHeight(Ne))+" re"),Xe.push("f"),He.stream=Xe.join(`
|
|
|
`),He}},RadioButton:{Circle:{createAppearanceStream:function(Ne){var He={D:{Off:se.RadioButton.Circle.OffPushDown},N:{}};return He.N[Ne]=se.RadioButton.Circle.YesNormal,He.D[Ne]=se.RadioButton.Circle.YesPushDown,He},getCA:function(){return"l"},YesNormal:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Xe=[],rt=se.internal.getWidth(Ne)<=se.internal.getHeight(Ne)?se.internal.getWidth(Ne)/4:se.internal.getHeight(Ne)/4;rt=Number((.9*rt).toFixed(5));var Ze=se.internal.Bezier_C,st=Number((rt*Ze).toFixed(5));return Xe.push("q"),Xe.push("1 0 0 1 "+le(se.internal.getWidth(Ne)/2)+" "+le(se.internal.getHeight(Ne)/2)+" cm"),Xe.push(rt+" 0 m"),Xe.push(rt+" "+st+" "+st+" "+rt+" 0 "+rt+" c"),Xe.push("-"+st+" "+rt+" -"+rt+" "+st+" -"+rt+" 0 c"),Xe.push("-"+rt+" -"+st+" -"+st+" -"+rt+" 0 -"+rt+" c"),Xe.push(st+" -"+rt+" "+rt+" -"+st+" "+rt+" 0 c"),Xe.push("f"),Xe.push("Q"),He.stream=Xe.join(`
|
|
|
`),He},YesPushDown:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Xe=[],rt=se.internal.getWidth(Ne)<=se.internal.getHeight(Ne)?se.internal.getWidth(Ne)/4:se.internal.getHeight(Ne)/4;rt=Number((.9*rt).toFixed(5));var Ze=Number((2*rt).toFixed(5)),st=Number((Ze*se.internal.Bezier_C).toFixed(5)),xt=Number((rt*se.internal.Bezier_C).toFixed(5));return Xe.push("0.749023 g"),Xe.push("q"),Xe.push("1 0 0 1 "+le(se.internal.getWidth(Ne)/2)+" "+le(se.internal.getHeight(Ne)/2)+" cm"),Xe.push(Ze+" 0 m"),Xe.push(Ze+" "+st+" "+st+" "+Ze+" 0 "+Ze+" c"),Xe.push("-"+st+" "+Ze+" -"+Ze+" "+st+" -"+Ze+" 0 c"),Xe.push("-"+Ze+" -"+st+" -"+st+" -"+Ze+" 0 -"+Ze+" c"),Xe.push(st+" -"+Ze+" "+Ze+" -"+st+" "+Ze+" 0 c"),Xe.push("f"),Xe.push("Q"),Xe.push("0 g"),Xe.push("q"),Xe.push("1 0 0 1 "+le(se.internal.getWidth(Ne)/2)+" "+le(se.internal.getHeight(Ne)/2)+" cm"),Xe.push(rt+" 0 m"),Xe.push(rt+" "+xt+" "+xt+" "+rt+" 0 "+rt+" c"),Xe.push("-"+xt+" "+rt+" -"+rt+" "+xt+" -"+rt+" 0 c"),Xe.push("-"+rt+" -"+xt+" -"+xt+" -"+rt+" 0 -"+rt+" c"),Xe.push(xt+" -"+rt+" "+rt+" -"+xt+" "+rt+" 0 c"),Xe.push("f"),Xe.push("Q"),He.stream=Xe.join(`
|
|
|
`),He},OffPushDown:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Xe=[],rt=se.internal.getWidth(Ne)<=se.internal.getHeight(Ne)?se.internal.getWidth(Ne)/4:se.internal.getHeight(Ne)/4;rt=Number((.9*rt).toFixed(5));var Ze=Number((2*rt).toFixed(5)),st=Number((Ze*se.internal.Bezier_C).toFixed(5));return Xe.push("0.749023 g"),Xe.push("q"),Xe.push("1 0 0 1 "+le(se.internal.getWidth(Ne)/2)+" "+le(se.internal.getHeight(Ne)/2)+" cm"),Xe.push(Ze+" 0 m"),Xe.push(Ze+" "+st+" "+st+" "+Ze+" 0 "+Ze+" c"),Xe.push("-"+st+" "+Ze+" -"+Ze+" "+st+" -"+Ze+" 0 c"),Xe.push("-"+Ze+" -"+st+" -"+st+" -"+Ze+" 0 -"+Ze+" c"),Xe.push(st+" -"+Ze+" "+Ze+" -"+st+" "+Ze+" 0 c"),Xe.push("f"),Xe.push("Q"),He.stream=Xe.join(`
|
|
|
`),He}},Cross:{createAppearanceStream:function(Ne){var He={D:{Off:se.RadioButton.Cross.OffPushDown},N:{}};return He.N[Ne]=se.RadioButton.Cross.YesNormal,He.D[Ne]=se.RadioButton.Cross.YesPushDown,He},getCA:function(){return"8"},YesNormal:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Xe=[],rt=se.internal.calculateCross(Ne);return Xe.push("q"),Xe.push("1 1 "+$(se.internal.getWidth(Ne)-2)+" "+$(se.internal.getHeight(Ne)-2)+" re"),Xe.push("W"),Xe.push("n"),Xe.push($(rt.x1.x)+" "+$(rt.x1.y)+" m"),Xe.push($(rt.x2.x)+" "+$(rt.x2.y)+" l"),Xe.push($(rt.x4.x)+" "+$(rt.x4.y)+" m"),Xe.push($(rt.x3.x)+" "+$(rt.x3.y)+" l"),Xe.push("s"),Xe.push("Q"),He.stream=Xe.join(`
|
|
|
`),He},YesPushDown:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Xe=se.internal.calculateCross(Ne),rt=[];return rt.push("0.749023 g"),rt.push("0 0 "+$(se.internal.getWidth(Ne))+" "+$(se.internal.getHeight(Ne))+" re"),rt.push("f"),rt.push("q"),rt.push("1 1 "+$(se.internal.getWidth(Ne)-2)+" "+$(se.internal.getHeight(Ne)-2)+" re"),rt.push("W"),rt.push("n"),rt.push($(Xe.x1.x)+" "+$(Xe.x1.y)+" m"),rt.push($(Xe.x2.x)+" "+$(Xe.x2.y)+" l"),rt.push($(Xe.x4.x)+" "+$(Xe.x4.y)+" m"),rt.push($(Xe.x3.x)+" "+$(Xe.x3.y)+" l"),rt.push("s"),rt.push("Q"),He.stream=rt.join(`
|
|
|
`),He},OffPushDown:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Xe=[];return Xe.push("0.749023 g"),Xe.push("0 0 "+$(se.internal.getWidth(Ne))+" "+$(se.internal.getHeight(Ne))+" re"),Xe.push("f"),He.stream=Xe.join(`
|
|
|
`),He}}},createDefaultAppearanceStream:function(Ne){var He=Ne.scope.internal.getFont(Ne.fontName,Ne.fontStyle).id,Xe=Ne.scope.__private__.encodeColorString(Ne.color);return"/"+He+" "+Ne.fontSize+" Tf "+Xe}};se.internal={Bezier_C:.551915024494,calculateCross:function(Ne){var He=se.internal.getWidth(Ne),Xe=se.internal.getHeight(Ne),rt=Math.min(He,Xe);return{x1:{x:(He-rt)/2,y:(Xe-rt)/2+rt},x2:{x:(He-rt)/2+rt,y:(Xe-rt)/2},x3:{x:(He-rt)/2,y:(Xe-rt)/2},x4:{x:(He-rt)/2+rt,y:(Xe-rt)/2+rt}}}},se.internal.getWidth=function(nt){var Ne=0;return x()(nt)==="object"&&(Ne=Se(nt.Rect[2])),Ne},se.internal.getHeight=function(nt){var Ne=0;return x()(nt)==="object"&&(Ne=Se(nt.Rect[3])),Ne};var ut=V.addField=function(nt){if(Ce(this,nt),!(nt instanceof gt))throw new Error("Invalid argument passed to jsPDF.addField.");var Ne;return(Ne=nt).scope.internal.acroformPlugin.printedOut&&(Ne.scope.internal.acroformPlugin.printedOut=!1,Ne.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),Ne.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(Ne),nt.page=nt.scope.internal.getCurrentPageInfo().pageNumber,this};V.AcroFormChoiceField=at,V.AcroFormListBox=Fe,V.AcroFormComboBox=mt,V.AcroFormEditBox=et,V.AcroFormButton=St,V.AcroFormPushButton=jt,V.AcroFormRadioButton=Mt,V.AcroFormCheckBox=Bt,V.AcroFormTextField=Ke,V.AcroFormPasswordField=de,V.AcroFormAppearance=se,V.AcroForm={ChoiceField:at,ListBox:Fe,ComboBox:mt,EditBox:et,Button:St,PushButton:jt,RadioButton:Mt,CheckBox:Bt,TextField:Ke,PasswordField:de,Appearance:se},z.AcroForm={ChoiceField:at,ListBox:Fe,ComboBox:mt,EditBox:et,Button:St,PushButton:jt,RadioButton:Mt,CheckBox:Bt,TextField:Ke,PasswordField:de,Appearance:se};var qe=z.AcroForm;function me(nt){return nt.reduce(function(Ne,He,Xe){return Ne[He]=Xe,Ne},{})}!function(nt){nt.__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]]},Xe=nt.__addimage__.getImageFileTypeByImageData=function(Pt,Kt){var Gt,Dt,lr,Ar,yr,Mr=Ne;if((Kt=Kt||Ne)==="RGBA"||Pt.data!==void 0&&Pt.data instanceof Uint8ClampedArray&&"height"in Pt&&"width"in Pt)return"RGBA";if(tn(Pt))for(yr in He)for(lr=He[yr],Gt=0;Gt<lr.length;Gt+=1){for(Ar=!0,Dt=0;Dt<lr[Gt].length;Dt+=1)if(lr[Gt][Dt]!==void 0&&lr[Gt][Dt]!==Pt[Dt]){Ar=!1;break}if(Ar===!0){Mr=yr;break}}else for(yr in He)for(lr=He[yr],Gt=0;Gt<lr.length;Gt+=1){for(Ar=!0,Dt=0;Dt<lr[Gt].length;Dt+=1)if(lr[Gt][Dt]!==void 0&&lr[Gt][Dt]!==Pt.charCodeAt(Dt)){Ar=!1;break}if(Ar===!0){Mr=yr;break}}return Mr===Ne&&Kt!==Ne&&(Mr=Kt),Mr},rt=function Pt(Kt){for(var Gt=this.internal.write,Dt=this.internal.putStream,lr=(0,this.internal.getFilters)();lr.indexOf("FlateEncode")!==-1;)lr.splice(lr.indexOf("FlateEncode"),1);Kt.objectId=this.internal.newObject();var Ar=[];if(Ar.push({key:"Type",value:"/XObject"}),Ar.push({key:"Subtype",value:"/Image"}),Ar.push({key:"Width",value:Kt.width}),Ar.push({key:"Height",value:Kt.height}),Kt.colorSpace===Pn.INDEXED?Ar.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Kt.palette.length/3-1)+" "+("sMask"in Kt&&Kt.sMask!==void 0?Kt.objectId+2:Kt.objectId+1)+" 0 R]"}):(Ar.push({key:"ColorSpace",value:"/"+Kt.colorSpace}),Kt.colorSpace===Pn.DEVICE_CMYK&&Ar.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Ar.push({key:"BitsPerComponent",value:Kt.bitsPerComponent}),"decodeParameters"in Kt&&Kt.decodeParameters!==void 0&&Ar.push({key:"DecodeParms",value:"<<"+Kt.decodeParameters+">>"}),"transparency"in Kt&&Array.isArray(Kt.transparency)){for(var yr="",Mr=0,zn=Kt.transparency.length;Mr<zn;Mr++)yr+=Kt.transparency[Mr]+" "+Kt.transparency[Mr]+" ";Ar.push({key:"Mask",value:"["+yr+"]"})}Kt.sMask!==void 0&&Ar.push({key:"SMask",value:Kt.objectId+1+" 0 R"});var Rn=Kt.filter!==void 0?["/"+Kt.filter]:void 0;if(Dt({data:Kt.data,additionalKeyValues:Ar,alreadyAppliedFilters:Rn,objectId:Kt.objectId}),Gt("endobj"),"sMask"in Kt&&Kt.sMask!==void 0){var di="/Predictor "+Kt.predictor+" /Colors 1 /BitsPerComponent "+Kt.bitsPerComponent+" /Columns "+Kt.width,gn={width:Kt.width,height:Kt.height,colorSpace:"DeviceGray",bitsPerComponent:Kt.bitsPerComponent,decodeParameters:di,data:Kt.sMask};"filter"in Kt&&(gn.filter=Kt.filter),Pt.call(this,gn)}if(Kt.colorSpace===Pn.INDEXED){var Br=this.internal.newObject();Dt({data:Vn(new Uint8Array(Kt.palette)),objectId:Br}),Gt("endobj")}},Ze=function(){var Kt=this.internal.collections.addImage_images;for(var Gt in Kt)rt.call(this,Kt[Gt])},st=function(){var Kt,Gt=this.internal.collections.addImage_images,Dt=this.internal.write;for(var lr in Gt)Dt("/I"+(Kt=Gt[lr]).index,Kt.objectId,"0","R")},xt=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Ze),this.internal.events.subscribe("putXobjectDict",st))},pt=function(){var Kt=this.internal.collections.addImage_images;return xt.call(this),Kt},hr=function(){return Object.keys(this.internal.collections.addImage_images).length},Zr=function(Kt){return typeof nt["process"+Kt.toUpperCase()]=="function"},Xr=function(Kt){return x()(Kt)==="object"&&Kt.nodeType===1},pn=function(Kt,Gt){if(Kt.nodeName==="IMG"&&Kt.hasAttribute("src")){var Dt=""+Kt.getAttribute("src");if(Dt.indexOf("data:image/")===0)return t(unescape(Dt).split("base64,").pop());var lr=nt.loadFile(Dt,!0);if(lr!==void 0)return lr}if(Kt.nodeName==="CANVAS"){if(Kt.width===0||Kt.height===0)throw new Error("Given canvas must have data. Canvas width: "+Kt.width+", height: "+Kt.height);var Ar;switch(Gt){case"PNG":Ar="image/png";break;case"WEBP":Ar="image/webp";break;case"JPEG":case"JPG":default:Ar="image/jpeg"}return t(Kt.toDataURL(Ar,1).split("base64,").pop())}},gr=function(Kt){var Gt=this.internal.collections.addImage_images;if(Gt){for(var Dt in Gt)if(Kt===Gt[Dt].alias)return Gt[Dt]}},Kn=function(Kt,Gt,Dt){return Kt||Gt||(Kt=-96,Gt=-96),Kt<0&&(Kt=-1*Dt.width*72/Kt/this.internal.scaleFactor),Gt<0&&(Gt=-1*Dt.height*72/Gt/this.internal.scaleFactor),Kt===0&&(Kt=Gt*Dt.width/Dt.height),Gt===0&&(Gt=Kt*Dt.height/Dt.width),[Kt,Gt]},Rr=function(Kt,Gt,Dt,lr,Ar,yr){var Mr=Kn.call(this,Dt,lr,Ar),zn=this.internal.getCoordinateString,Rn=this.internal.getVerticalCoordinateString,di=pt.call(this);if(Dt=Mr[0],lr=Mr[1],di[Ar.index]=Ar,yr){yr*=Math.PI/180;var gn=Math.cos(yr),Br=Math.sin(yr),_n=function(ai){return ai.toFixed(4)},Gn=[_n(gn),_n(Br),_n(-1*Br),_n(gn),0,0,"cm"]}this.internal.write("q"),yr?(this.internal.write([1,"0","0",1,zn(Kt),Rn(Gt+lr),"cm"].join(" ")),this.internal.write(Gn.join(" ")),this.internal.write([zn(Dt),"0","0",zn(lr),"0","0","cm"].join(" "))):this.internal.write([zn(Dt),"0","0",zn(lr),zn(Kt),Rn(Gt+lr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Ar.index+" Do"),this.internal.write("Q")},Pn=nt.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"};nt.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var an=nt.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Ur=nt.__addimage__.sHashCode=function(Pt){var Kt,Gt,Dt=0;if(typeof Pt=="string")for(Gt=Pt.length,Kt=0;Kt<Gt;Kt++)Dt=(Dt<<5)-Dt+Pt.charCodeAt(Kt),Dt|=0;else if(tn(Pt))for(Gt=Pt.byteLength/2,Kt=0;Kt<Gt;Kt++)Dt=(Dt<<5)-Dt+Pt[Kt],Dt|=0;return Dt},ii=nt.__addimage__.validateStringAsBase64=function(Pt){(Pt=Pt||"").toString().trim();var Kt=!0;return Pt.length===0&&(Kt=!1),Pt.length%4!=0&&(Kt=!1),/^[A-Za-z0-9+/]+$/.test(Pt.substr(0,Pt.length-2))===!1&&(Kt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(Pt.substr(-2))===!1&&(Kt=!1),Kt},_i=nt.__addimage__.extractImageFromDataUrl=function(Pt){var Kt=(Pt=Pt||"").split("base64,"),Gt=null;if(Kt.length===2){var Dt=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(Kt[0]);Array.isArray(Dt)&&(Gt={mimeType:Dt[1],charset:Dt[2],data:Kt[1]})}return Gt},Gi=nt.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};nt.__addimage__.isArrayBuffer=function(Pt){return Gi()&&Pt instanceof ArrayBuffer};var tn=nt.__addimage__.isArrayBufferView=function(Pt){return Gi()&&typeof Uint32Array!="undefined"&&(Pt instanceof Int8Array||Pt instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&Pt instanceof Uint8ClampedArray||Pt instanceof Int16Array||Pt instanceof Uint16Array||Pt instanceof Int32Array||Pt instanceof Uint32Array||Pt instanceof Float32Array||Pt instanceof Float64Array)},Tn=nt.__addimage__.binaryStringToUint8Array=function(Pt){for(var Kt=Pt.length,Gt=new Uint8Array(Kt),Dt=0;Dt<Kt;Dt++)Gt[Dt]=Pt.charCodeAt(Dt);return Gt},Vn=nt.__addimage__.arrayBufferToBinaryString=function(Pt){for(var Kt="",Gt=tn(Pt)?Pt:new Uint8Array(Pt),Dt=0;Dt<Gt.length;Dt+=8192)Kt+=String.fromCharCode.apply(null,Gt.subarray(Dt,Dt+8192));return Kt};nt.addImage=function(){var Pt,Kt,Gt,Dt,lr,Ar,yr,Mr,zn;if(typeof arguments[1]=="number"?(Kt=Ne,Gt=arguments[1],Dt=arguments[2],lr=arguments[3],Ar=arguments[4],yr=arguments[5],Mr=arguments[6],zn=arguments[7]):(Kt=arguments[1],Gt=arguments[2],Dt=arguments[3],lr=arguments[4],Ar=arguments[5],yr=arguments[6],Mr=arguments[7],zn=arguments[8]),x()(Pt=arguments[0])==="object"&&!Xr(Pt)&&"imageData"in Pt){var Rn=Pt;Pt=Rn.imageData,Kt=Rn.format||Kt||Ne,Gt=Rn.x||Gt||0,Dt=Rn.y||Dt||0,lr=Rn.w||Rn.width||lr,Ar=Rn.h||Rn.height||Ar,yr=Rn.alias||yr,Mr=Rn.compression||Mr,zn=Rn.rotation||Rn.angle||zn}var di=this.internal.getFilters();if(Mr===void 0&&di.indexOf("FlateEncode")!==-1&&(Mr="SLOW"),isNaN(Gt)||isNaN(Dt))throw new Error("Invalid coordinates passed to jsPDF.addImage");xt.call(this);var gn=Xt.call(this,Pt,Kt,yr,Mr);return Rr.call(this,Gt,Dt,lr,Ar,gn,zn),this};var Xt=function(Kt,Gt,Dt,lr){var Ar,yr,Mr;if(typeof Kt=="string"&&Xe(Kt)===Ne){Kt=unescape(Kt);var zn=It(Kt,!1);(zn!==""||(zn=nt.loadFile(Kt,!0))!==void 0)&&(Kt=zn)}if(Xr(Kt)&&(Kt=pn(Kt,Gt)),Gt=Xe(Kt,Gt),!Zr(Gt))throw new Error("addImage does not support files of type '"+Gt+"', please ensure that a plugin for '"+Gt+"' support is added.");if(((Mr=Dt)==null||Mr.length===0)&&(Dt=function(Rn){return typeof Rn=="string"||tn(Rn)?Ur(Rn):tn(Rn.data)?Ur(Rn.data):null}(Kt)),(Ar=gr.call(this,Dt))||(Gi()&&(Kt instanceof Uint8Array||Gt==="RGBA"||(yr=Kt,Kt=Tn(Kt))),Ar=this["process"+Gt.toUpperCase()](Kt,hr.call(this),Dt,function(Rn){return Rn&&typeof Rn=="string"&&(Rn=Rn.toUpperCase()),Rn in nt.image_compression?Rn:an.NONE}(lr),yr)),!Ar)throw new Error("An unknown error occurred whilst processing the image.");return Ar},It=nt.__addimage__.convertBase64ToBinaryString=function(Pt,Kt){var Gt;Kt=typeof Kt!="boolean"||Kt;var Dt,lr="";if(typeof Pt=="string"){Dt=(Gt=_i(Pt))!==null?Gt.data:Pt;try{lr=t(Dt)}catch(Ar){if(Kt)throw ii(Dt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Ar.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return lr};nt.getImageProperties=function(Pt){var Kt,Gt,Dt="";if(Xr(Pt)&&(Pt=pn(Pt)),typeof Pt=="string"&&Xe(Pt)===Ne&&((Dt=It(Pt,!1))===""&&(Dt=nt.loadFile(Pt)||""),Pt=Dt),Gt=Xe(Pt),!Zr(Gt))throw new Error("addImage does not support files of type '"+Gt+"', please ensure that a plugin for '"+Gt+"' support is added.");if(!Gi()||Pt instanceof Uint8Array||(Pt=Tn(Pt)),!(Kt=this["process"+Gt.toUpperCase()](Pt)))throw new Error("An unknown error occurred whilst processing the image");return Kt.fileType=Gt,Kt}}(z.API),function(nt){var Ne=function(Xe){if(Xe!==void 0&&Xe!="")return!0};z.API.events.push(["addPage",function(He){this.internal.getPageInfo(He.pageNumber).pageContext.annotations=[]}]),nt.events.push(["putPage",function(He){for(var Xe,rt,Ze,st=this.internal.getCoordinateString,xt=this.internal.getVerticalCoordinateString,pt=this.internal.getPageInfoByObjId(He.objId),hr=He.pageContext.annotations,Zr=!1,Xr=0;Xr<hr.length&&!Zr;Xr++)switch((Xe=hr[Xr]).type){case"link":(Ne(Xe.options.url)||Ne(Xe.options.pageNumber))&&(Zr=!0);break;case"reference":case"text":case"freetext":Zr=!0}if(Zr!=0){this.internal.write("/Annots [");for(var pn=0;pn<hr.length;pn++){Xe=hr[pn];var gr=this.internal.pdfEscape,Kn=this.internal.getEncryptor(He.objId);switch(Xe.type){case"reference":this.internal.write(" "+Xe.object.objId+" 0 R ");break;case"text":var Rr=this.internal.newAdditionalObject(),Pn=this.internal.newAdditionalObject(),an=this.internal.getEncryptor(Rr.objId),Ur=Xe.title||"Note";Ze="<</Type /Annot /Subtype /Text "+(rt="/Rect ["+st(Xe.bounds.x)+" "+xt(Xe.bounds.y+Xe.bounds.h)+" "+st(Xe.bounds.x+Xe.bounds.w)+" "+xt(Xe.bounds.y)+"] ")+"/Contents ("+gr(an(Xe.contents))+")",Ze+=" /Popup "+Pn.objId+" 0 R",Ze+=" /P "+pt.objId+" 0 R",Ze+=" /T ("+gr(an(Ur))+") >>",Rr.content=Ze;var ii=Rr.objId+" 0 R";Ze="<</Type /Annot /Subtype /Popup "+(rt="/Rect ["+st(Xe.bounds.x+30)+" "+xt(Xe.bounds.y+Xe.bounds.h)+" "+st(Xe.bounds.x+Xe.bounds.w+30)+" "+xt(Xe.bounds.y)+"] ")+" /Parent "+ii,Xe.open&&(Ze+=" /Open true"),Ze+=" >>",Pn.content=Ze,this.internal.write(Rr.objId,"0 R",Pn.objId,"0 R");break;case"freetext":rt="/Rect ["+st(Xe.bounds.x)+" "+xt(Xe.bounds.y)+" "+st(Xe.bounds.x+Xe.bounds.w)+" "+xt(Xe.bounds.y+Xe.bounds.h)+"] ";var _i=Xe.color||"#000000";Ze="<</Type /Annot /Subtype /FreeText "+rt+"/Contents ("+gr(Kn(Xe.contents))+")",Ze+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+_i+")",Ze+=" /Border [0 0 0]",Ze+=" >>",this.internal.write(Ze);break;case"link":if(Xe.options.name){var Gi=this.annotations._nameMap[Xe.options.name];Xe.options.pageNumber=Gi.page,Xe.options.top=Gi.y}else Xe.options.top||(Xe.options.top=0);if(rt="/Rect ["+Xe.finalBounds.x+" "+Xe.finalBounds.y+" "+Xe.finalBounds.w+" "+Xe.finalBounds.h+"] ",Ze="",Xe.options.url)Ze="<</Type /Annot /Subtype /Link "+rt+"/Border [0 0 0] /A <</S /URI /URI ("+gr(Kn(Xe.options.url))+") >>";else if(Xe.options.pageNumber)switch(Ze="<</Type /Annot /Subtype /Link "+rt+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Xe.options.pageNumber).objId+" 0 R",Xe.options.magFactor=Xe.options.magFactor||"XYZ",Xe.options.magFactor){case"Fit":Ze+=" /Fit]";break;case"FitH":Ze+=" /FitH "+Xe.options.top+"]";break;case"FitV":Xe.options.left=Xe.options.left||0,Ze+=" /FitV "+Xe.options.left+"]";break;case"XYZ":default:var tn=xt(Xe.options.top);Xe.options.left=Xe.options.left||0,Xe.options.zoom===void 0&&(Xe.options.zoom=0),Ze+=" /XYZ "+Xe.options.left+" "+tn+" "+Xe.options.zoom+"]"}Ze!=""&&(Ze+=" >>",this.internal.write(Ze))}}this.internal.write("]")}}]),nt.createAnnotation=function(He){var Xe=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":Xe.pageContext.annotations.push(He)}},nt.link=function(He,Xe,rt,Ze,st){var xt=this.internal.getCurrentPageInfo(),pt=this.internal.getCoordinateString,hr=this.internal.getVerticalCoordinateString;xt.pageContext.annotations.push({finalBounds:{x:pt(He),y:hr(Xe),w:pt(He+rt),h:hr(Xe+Ze)},options:st,type:"link"})},nt.textWithLink=function(He,Xe,rt,Ze){var st,xt,pt=this.getTextWidth(He),hr=this.internal.getLineHeight()/this.internal.scaleFactor;if(Ze.maxWidth!==void 0){xt=Ze.maxWidth;var Zr=this.splitTextToSize(He,xt).length;st=Math.ceil(hr*Zr)}else xt=pt,st=hr;return this.text(He,Xe,rt,Ze),rt+=.2*hr,Ze.align==="center"&&(Xe-=pt/2),Ze.align==="right"&&(Xe-=pt),this.link(Xe,rt-hr,xt,st,Ze),pt},nt.getTextWidth=function(He){var Xe=this.internal.getFontSize();return this.getStringUnitWidth(He)*Xe/this.internal.scaleFactor}}(z.API),function(nt){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}},Xe={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},rt=[1570,1571,1573,1575];nt.__arabicParser__={};var Ze=nt.__arabicParser__.isInArabicSubstitutionA=function(Rr){return Ne[Rr.charCodeAt(0)]!==void 0},st=nt.__arabicParser__.isArabicLetter=function(Rr){return typeof Rr=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Rr)},xt=nt.__arabicParser__.isArabicEndLetter=function(Rr){return st(Rr)&&Ze(Rr)&&Ne[Rr.charCodeAt(0)].length<=2},pt=nt.__arabicParser__.isArabicAlfLetter=function(Rr){return st(Rr)&&rt.indexOf(Rr.charCodeAt(0))>=0};nt.__arabicParser__.arabicLetterHasIsolatedForm=function(Rr){return st(Rr)&&Ze(Rr)&&Ne[Rr.charCodeAt(0)].length>=1};var hr=nt.__arabicParser__.arabicLetterHasFinalForm=function(Rr){return st(Rr)&&Ze(Rr)&&Ne[Rr.charCodeAt(0)].length>=2};nt.__arabicParser__.arabicLetterHasInitialForm=function(Rr){return st(Rr)&&Ze(Rr)&&Ne[Rr.charCodeAt(0)].length>=3};var Zr=nt.__arabicParser__.arabicLetterHasMedialForm=function(Rr){return st(Rr)&&Ze(Rr)&&Ne[Rr.charCodeAt(0)].length==4},Xr=nt.__arabicParser__.resolveLigatures=function(Rr){var Pn=0,an=He,Ur="",ii=0;for(Pn=0;Pn<Rr.length;Pn+=1)an[Rr.charCodeAt(Pn)]!==void 0?(ii++,typeof(an=an[Rr.charCodeAt(Pn)])=="number"&&(Ur+=String.fromCharCode(an),an=He,ii=0),Pn===Rr.length-1&&(an=He,Ur+=Rr.charAt(Pn-(ii-1)),Pn-=ii-1,ii=0)):(an=He,Ur+=Rr.charAt(Pn-ii),Pn-=ii,ii=0);return Ur};nt.__arabicParser__.isArabicDiacritic=function(Rr){return Rr!==void 0&&Xe[Rr.charCodeAt(0)]!==void 0};var pn=nt.__arabicParser__.getCorrectForm=function(Rr,Pn,an){return st(Rr)?Ze(Rr)===!1?-1:!hr(Rr)||!st(Pn)&&!st(an)||!st(an)&&xt(Pn)||xt(Rr)&&!st(Pn)||xt(Rr)&&pt(Pn)||xt(Rr)&&xt(Pn)?0:Zr(Rr)&&st(Pn)&&!xt(Pn)&&st(an)&&hr(an)?3:xt(Rr)||!st(an)?1:2:-1},gr=function(Pn){var an=0,Ur=0,ii=0,_i="",Gi="",tn="",Tn=(Pn=Pn||"").split("\\s+"),Vn=[];for(an=0;an<Tn.length;an+=1){for(Vn.push(""),Ur=0;Ur<Tn[an].length;Ur+=1)_i=Tn[an][Ur],Gi=Tn[an][Ur-1],tn=Tn[an][Ur+1],st(_i)?(ii=pn(_i,Gi,tn),Vn[an]+=ii!==-1?String.fromCharCode(Ne[_i.charCodeAt(0)][ii]):_i):Vn[an]+=_i;Vn[an]=Xr(Vn[an])}return Vn.join(" ")},Kn=nt.__arabicParser__.processArabic=nt.processArabic=function(){var Rr,Pn=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,an=[];if(Array.isArray(Pn)){var Ur=0;for(an=[],Ur=0;Ur<Pn.length;Ur+=1)Array.isArray(Pn[Ur])?an.push([gr(Pn[Ur][0]),Pn[Ur][1],Pn[Ur][2]]):an.push([gr(Pn[Ur])]);Rr=an}else Rr=gr(Pn);return typeof arguments[0]=="string"?Rr:(arguments[0].text=Rr,arguments[0])};nt.events.push(["preProcessText",Kn])}(z.API),z.API.autoPrint=function(nt){var Ne;switch((nt=nt||{}).variant=nt.variant||"non-conform",nt.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(nt){var Ne=function(){var Xe=void 0;Object.defineProperty(this,"pdf",{get:function(){return Xe},set:function(hr){Xe=hr}});var rt=150;Object.defineProperty(this,"width",{get:function(){return rt},set:function(hr){rt=isNaN(hr)||Number.isInteger(hr)===!1||hr<0?150:hr,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=rt+1)}});var Ze=300;Object.defineProperty(this,"height",{get:function(){return Ze},set:function(hr){Ze=isNaN(hr)||Number.isInteger(hr)===!1||hr<0?300:hr,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=Ze+1)}});var st=[];Object.defineProperty(this,"childNodes",{get:function(){return st},set:function(hr){st=hr}});var xt={};Object.defineProperty(this,"style",{get:function(){return xt},set:function(hr){xt=hr}}),Object.defineProperty(this,"parentNode",{})};Ne.prototype.getContext=function(He,Xe){var rt;if((He=He||"2d")!=="2d")return null;for(rt in Xe)this.pdf.context2d.hasOwnProperty(rt)&&(this.pdf.context2d[rt]=Xe[rt]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Ne.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},nt.events.push(["initialized",function(){this.canvas=new Ne,this.canvas.pdf=this}])}(z.API),function(nt){var Ne={left:0,top:0,bottom:0,right:0},He=!1,Xe=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},Ne),this.internal.__cell__.margins.width=this.getPageWidth(),rt.call(this))},rt=function(){this.internal.__cell__.lastCell=new Ze,this.internal.__cell__.pages=1},Ze=function(){var hr=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return hr},set:function(an){hr=an}});var Zr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Zr},set:function(an){Zr=an}});var Xr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Xr},set:function(an){Xr=an}});var pn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return pn},set:function(an){pn=an}});var gr=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return gr},set:function(an){gr=an}});var Kn=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Kn},set:function(an){Kn=an}});var Rr=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return Rr},set:function(an){Rr=an}}),this};Ze.prototype.clone=function(){return new Ze(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Ze.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},nt.setHeaderFunction=function(pt){return Xe.call(this),this.internal.__cell__.headerFunction=typeof pt=="function"?pt:void 0,this},nt.getTextDimensions=function(pt,hr){Xe.call(this);var Zr=(hr=hr||{}).fontSize||this.getFontSize(),Xr=hr.font||this.getFont(),pn=hr.scaleFactor||this.internal.scaleFactor,gr=0,Kn=0,Rr=0,Pn=this;if(!Array.isArray(pt)&&typeof pt!="string"){if(typeof pt!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");pt=String(pt)}var an=hr.maxWidth;an>0?typeof pt=="string"?pt=this.splitTextToSize(pt,an):Object.prototype.toString.call(pt)==="[object Array]"&&(pt=pt.reduce(function(ii,_i){return ii.concat(Pn.splitTextToSize(_i,an))},[])):pt=Array.isArray(pt)?pt:[pt];for(var Ur=0;Ur<pt.length;Ur++)gr<(Rr=this.getStringUnitWidth(pt[Ur],{font:Xr})*Zr)&&(gr=Rr);return gr!==0&&(Kn=pt.length),{w:gr/=pn,h:Math.max((Kn*Zr*this.getLineHeightFactor()-Zr*(this.getLineHeightFactor()-1))/pn,0)}},nt.cellAddPage=function(){Xe.call(this),this.addPage();var pt=this.internal.__cell__.margins||Ne;return this.internal.__cell__.lastCell=new Ze(pt.left,pt.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var st=nt.cell=function(){var pt;pt=arguments[0]instanceof Ze?arguments[0]:new Ze(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Xe.call(this);var hr=this.internal.__cell__.lastCell,Zr=this.internal.__cell__.padding,Xr=this.internal.__cell__.margins||Ne,pn=this.internal.__cell__.tableHeaderRow,gr=this.internal.__cell__.printHeaders;return hr.lineNumber!==void 0&&(hr.lineNumber===pt.lineNumber?(pt.x=(hr.x||0)+(hr.width||0),pt.y=hr.y||0):hr.y+hr.height+pt.height+Xr.bottom>this.getPageHeight()?(this.cellAddPage(),pt.y=Xr.top,gr&&pn&&(this.printHeaderRow(pt.lineNumber,!0),pt.y+=pn[0].height)):pt.y=hr.y+hr.height||pt.y),pt.text[0]!==void 0&&(this.rect(pt.x,pt.y,pt.width,pt.height,He===!0?"FD":void 0),pt.align==="right"?this.text(pt.text,pt.x+pt.width-Zr,pt.y+Zr,{align:"right",baseline:"top"}):pt.align==="center"?this.text(pt.text,pt.x+pt.width/2,pt.y+Zr,{align:"center",baseline:"top",maxWidth:pt.width-Zr-Zr}):this.text(pt.text,pt.x+Zr,pt.y+Zr,{align:"left",baseline:"top",maxWidth:pt.width-Zr-Zr})),this.internal.__cell__.lastCell=pt,this};nt.table=function(pt,hr,Zr,Xr,pn){if(Xe.call(this),!Zr)throw new Error("No data for PDF table.");var gr,Kn,Rr,Pn,an=[],Ur=[],ii=[],_i={},Gi={},tn=[],Tn=[],Vn=(pn=pn||{}).autoSize||!1,Xt=pn.printHeaders!==!1,It=pn.css&&pn.css["font-size"]!==void 0?16*pn.css["font-size"]:pn.fontSize||12,Pt=pn.margins||Object.assign({width:this.getPageWidth()},Ne),Kt=typeof pn.padding=="number"?pn.padding:3,Gt=pn.headerBackgroundColor||"#c8c8c8",Dt=pn.headerTextColor||"#000";if(rt.call(this),this.internal.__cell__.printHeaders=Xt,this.internal.__cell__.margins=Pt,this.internal.__cell__.table_font_size=It,this.internal.__cell__.padding=Kt,this.internal.__cell__.headerBackgroundColor=Gt,this.internal.__cell__.headerTextColor=Dt,this.setFontSize(It),Xr==null)Ur=an=Object.keys(Zr[0]),ii=an.map(function(){return"left"});else if(Array.isArray(Xr)&&x()(Xr[0])==="object")for(an=Xr.map(function(Rn){return Rn.name}),Ur=Xr.map(function(Rn){return Rn.prompt||Rn.name||""}),ii=Xr.map(function(Rn){return Rn.align||"left"}),gr=0;gr<Xr.length;gr+=1)Gi[Xr[gr].name]=Xr[gr].width*(19.049976/25.4);else Array.isArray(Xr)&&typeof Xr[0]=="string"&&(Ur=an=Xr,ii=an.map(function(){return"left"}));if(Vn||Array.isArray(Xr)&&typeof Xr[0]=="string")for(gr=0;gr<an.length;gr+=1){for(_i[Pn=an[gr]]=Zr.map(function(Rn){return Rn[Pn]}),this.setFont(void 0,"bold"),tn.push(this.getTextDimensions(Ur[gr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),Kn=_i[Pn],this.setFont(void 0,"normal"),Rr=0;Rr<Kn.length;Rr+=1)tn.push(this.getTextDimensions(Kn[Rr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Gi[Pn]=Math.max.apply(null,tn)+Kt+Kt,tn=[]}if(Xt){var lr={};for(gr=0;gr<an.length;gr+=1)lr[an[gr]]={},lr[an[gr]].text=Ur[gr],lr[an[gr]].align=ii[gr];var Ar=xt.call(this,lr,Gi);Tn=an.map(function(Rn){return new Ze(pt,hr,Gi[Rn],Ar,lr[Rn].text,void 0,lr[Rn].align)}),this.setTableHeaderRow(Tn),this.printHeaderRow(1,!1)}var yr=Xr.reduce(function(Rn,di){return Rn[di.name]=di.align,Rn},{});for(gr=0;gr<Zr.length;gr+=1){"rowStart"in pn&&pn.rowStart instanceof Function&&pn.rowStart({row:gr,data:Zr[gr]},this);var Mr=xt.call(this,Zr[gr],Gi);for(Rr=0;Rr<an.length;Rr+=1){var zn=Zr[gr][an[Rr]];"cellStart"in pn&&pn.cellStart instanceof Function&&pn.cellStart({row:gr,col:Rr,data:zn},this),st.call(this,new Ze(pt,hr,Gi[an[Rr]],Mr,zn,gr+2,yr[an[Rr]]))}}return this.internal.__cell__.table_x=pt,this.internal.__cell__.table_y=hr,this};var xt=function(hr,Zr){var Xr=this.internal.__cell__.padding,pn=this.internal.__cell__.table_font_size,gr=this.internal.scaleFactor;return Object.keys(hr).map(function(Kn){var Rr=hr[Kn];return this.splitTextToSize(Rr.hasOwnProperty("text")?Rr.text:Rr,Zr[Kn]-Xr-Xr)},this).map(function(Kn){return this.getLineHeightFactor()*Kn.length*pn/gr+Xr+Xr},this).reduce(function(Kn,Rr){return Math.max(Kn,Rr)},0)};nt.setTableHeaderRow=function(pt){Xe.call(this),this.internal.__cell__.tableHeaderRow=pt},nt.printHeaderRow=function(pt,hr){if(Xe.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Zr;if(He=!0,typeof this.internal.__cell__.headerFunction=="function"){var Xr=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Ze(Xr[0],Xr[1],Xr[2],Xr[3],void 0,-1)}this.setFont(void 0,"bold");for(var pn=[],gr=0;gr<this.internal.__cell__.tableHeaderRow.length;gr+=1){Zr=this.internal.__cell__.tableHeaderRow[gr].clone(),hr&&(Zr.y=this.internal.__cell__.margins.top||0,pn.push(Zr)),Zr.lineNumber=pt;var Kn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),st.call(this,Zr),this.setTextColor(Kn)}pn.length>0&&this.setTableHeaderRow(pn),this.setFont(void 0,"normal"),He=!1}}(z.API);var Wt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},dr=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],vt=me(dr),rr=[100,200,300,400,500,600,700,800,900],ur=me(rr);function mn(nt){var Ne=nt.family.replace(/"|'/g,"").toLowerCase(),He=function(Ze){return Wt[Ze=Ze||"normal"]?Ze:"normal"}(nt.style),Xe=function(Ze){if(!Ze)return 400;if(typeof Ze=="number")return Ze>=100&&Ze<=900&&Ze%100==0?Ze:400;if(/^\d00$/.test(Ze))return parseInt(Ze);switch(Ze){case"bold":return 700;case"normal":default:return 400}}(nt.weight),rt=function(Ze){return typeof vt[Ze=Ze||"normal"]=="number"?Ze:"normal"}(nt.stretch);return{family:Ne,style:He,weight:Xe,stretch:rt,src:nt.src||[],ref:nt.ref||{name:Ne,style:[rt,He,Xe].join(" ")}}}function sr(nt,Ne,He,Xe){var rt;for(rt=He;rt>=0&&rt<Ne.length;rt+=Xe)if(nt[Ne[rt]])return nt[Ne[rt]];for(rt=He;rt>=0&&rt<Ne.length;rt-=Xe)if(nt[Ne[rt]])return nt[Ne[rt]]}var xr={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},pr={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Zt(nt){return[nt.stretch,nt.style,nt.weight,nt.family].join(" ")}function Ct(nt,Ne,He){for(var Xe=(He=He||{}).defaultFontFamily||"times",rt=Object.assign({},xr,He.genericFontFamilies||{}),Ze=null,st=null,xt=0;xt<Ne.length;++xt)if(rt[(Ze=mn(Ne[xt])).family]&&(Ze.family=rt[Ze.family]),nt.hasOwnProperty(Ze.family)){st=nt[Ze.family];break}if(!(st=st||nt[Xe]))throw new Error("Could not find a font-family for the rule '"+Zt(Ze)+"' and default family '"+Xe+"'.");if(st=function(pt,hr){if(hr[pt])return hr[pt];var Zr=vt[pt],Xr=Zr<=vt.normal?-1:1,pn=sr(hr,dr,Zr,Xr);if(!pn)throw new Error("Could not find a matching font-stretch value for "+pt);return pn}(Ze.stretch,st),st=function(pt,hr){if(hr[pt])return hr[pt];for(var Zr=Wt[pt],Xr=0;Xr<Zr.length;++Xr)if(hr[Zr[Xr]])return hr[Zr[Xr]];throw new Error("Could not find a matching font-style for "+pt)}(Ze.style,st),!(st=function(pt,hr){if(hr[pt])return hr[pt];if(pt===400&&hr[500])return hr[500];if(pt===500&&hr[400])return hr[400];var Zr=ur[pt],Xr=sr(hr,rr,Zr,pt<400?-1:1);if(!Xr)throw new Error("Could not find a matching font-weight for value "+pt);return Xr}(Ze.weight,st)))throw new Error("Failed to resolve a font for the rule '"+Zt(Ze)+"'.");return st}function on(nt){return nt.trimLeft()}function Mn(nt,Ne){for(var He=0;He<nt.length;){if(nt.charAt(He)===Ne)return[nt.substring(0,He),nt.substring(He+1)];He+=1}return null}function Xn(nt){var Ne=nt.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return Ne===null?null:[Ne[0],nt.substring(Ne[0].length)]}var oi,Ui,Un,Qn=["times"];!function(nt){var Ne,He,Xe,rt,Ze,st,xt,pt,hr,Zr=function(Br){return Br=Br||{},this.isStrokeTransparent=Br.isStrokeTransparent||!1,this.strokeOpacity=Br.strokeOpacity||1,this.strokeStyle=Br.strokeStyle||"#000000",this.fillStyle=Br.fillStyle||"#000000",this.isFillTransparent=Br.isFillTransparent||!1,this.fillOpacity=Br.fillOpacity||1,this.font=Br.font||"10px sans-serif",this.textBaseline=Br.textBaseline||"alphabetic",this.textAlign=Br.textAlign||"left",this.lineWidth=Br.lineWidth||1,this.lineJoin=Br.lineJoin||"miter",this.lineCap=Br.lineCap||"butt",this.path=Br.path||[],this.transform=Br.transform!==void 0?Br.transform.clone():new pt,this.globalCompositeOperation=Br.globalCompositeOperation||"normal",this.globalAlpha=Br.globalAlpha||1,this.clip_path=Br.clip_path||[],this.currentPoint=Br.currentPoint||new st,this.miterLimit=Br.miterLimit||10,this.lastPoint=Br.lastPoint||new st,this.lineDashOffset=Br.lineDashOffset||0,this.lineDash=Br.lineDash||[],this.margin=Br.margin||[0,0,0,0],this.prevPageLastElemOffset=Br.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Br.ignoreClearRect!="boolean"||Br.ignoreClearRect,this};nt.events.push(["initialized",function(){this.context2d=new Xr(this),Ne=this.internal.f2,He=this.internal.getCoordinateString,Xe=this.internal.getVerticalCoordinateString,rt=this.internal.getHorizontalCoordinate,Ze=this.internal.getVerticalCoordinate,st=this.internal.Point,xt=this.internal.Rectangle,pt=this.internal.Matrix,hr=new Zr}]);var Xr=function(Br){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var _n=Br;Object.defineProperty(this,"pdf",{get:function(){return _n}});var Gn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Gn},set:function(Bi){Gn=Boolean(Bi)}});var Zn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Zn},set:function(Bi){Zn=Boolean(Bi)}});var ai=0;Object.defineProperty(this,"posX",{get:function(){return ai},set:function(Bi){isNaN(Bi)||(ai=Bi)}});var Ei=0;Object.defineProperty(this,"posY",{get:function(){return Ei},set:function(Bi){isNaN(Bi)||(Ei=Bi)}}),Object.defineProperty(this,"margin",{get:function(){return hr.margin},set:function(Bi){var ha;typeof Bi=="number"?ha=[Bi,Bi,Bi,Bi]:((ha=new Array(4))[0]=Bi[0],ha[1]=Bi.length>=2?Bi[1]:ha[0],ha[2]=Bi.length>=3?Bi[2]:ha[0],ha[3]=Bi.length>=4?Bi[3]:ha[1]),hr.margin=ha}});var Ri=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Ri},set:function(Bi){Ri=Bi}});var Di=0;Object.defineProperty(this,"lastBreak",{get:function(){return Di},set:function(Bi){Di=Bi}});var oa=[];Object.defineProperty(this,"pageBreaks",{get:function(){return oa},set:function(Bi){oa=Bi}}),Object.defineProperty(this,"ctx",{get:function(){return hr},set:function(Bi){Bi instanceof Zr&&(hr=Bi)}}),Object.defineProperty(this,"path",{get:function(){return hr.path},set:function(Bi){hr.path=Bi}});var ma=[];Object.defineProperty(this,"ctxStack",{get:function(){return ma},set:function(Bi){ma=Bi}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Bi){var ha;ha=pn(Bi),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(Bi){var ha=pn(Bi);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(Bi){["butt","round","square"].indexOf(Bi)!==-1&&(this.ctx.lineCap=Bi,this.pdf.setLineCap(Bi))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Bi){isNaN(Bi)||(this.ctx.lineWidth=Bi,this.pdf.setLineWidth(Bi))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Bi){["bevel","round","miter"].indexOf(Bi)!==-1&&(this.ctx.lineJoin=Bi,this.pdf.setLineJoin(Bi))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Bi){isNaN(Bi)||(this.ctx.miterLimit=Bi,this.pdf.setMiterLimit(Bi))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Bi){this.ctx.textBaseline=Bi}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Bi){["right","end","center","left","start"].indexOf(Bi)!==-1&&(this.ctx.textAlign=Bi)}});var aa=null;function ba(Dn,Bi){if(aa===null){var ha=function(ta){var ra=[];return Object.keys(ta).forEach(function(Ir){ta[Ir].forEach(function(Sr){var En=null;switch(Sr){case"bold":En={family:Ir,weight:"bold"};break;case"italic":En={family:Ir,style:"italic"};break;case"bolditalic":En={family:Ir,weight:"bold",style:"italic"};break;case"":case"normal":En={family:Ir}}En!==null&&(En.ref={name:Ir,style:Sr},ra.push(En))})}),ra}(Dn.getFontList());aa=function(ta){for(var ra={},Ir=0;Ir<ta.length;++Ir){var Sr=mn(ta[Ir]),En=Sr.family,fr=Sr.stretch,kr=Sr.style,Vr=Sr.weight;ra[En]=ra[En]||{},ra[En][fr]=ra[En][fr]||{},ra[En][fr][kr]=ra[En][fr][kr]||{},ra[En][fr][kr][Vr]=Sr}return ra}(ha.concat(Bi))}return aa}var Ai=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ai},set:function(Bi){aa=null,Ai=Bi}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Bi){var ha;if(this.ctx.font=Bi,(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(Bi))!==null){var ta=ha[1],ra=(ha[2],ha[3]),Ir=ha[4],Sr=(ha[5],ha[6]),En=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ir)[2];Ir=En==="px"?Math.floor(parseFloat(Ir)*this.pdf.internal.scaleFactor):En==="em"?Math.floor(parseFloat(Ir)*this.pdf.getFontSize()):Math.floor(parseFloat(Ir)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ir);var fr=function(Lr){var en,Sn,On=[],wn=Lr.trim();if(wn==="")return Qn;if(wn in pr)return[pr[wn]];for(;wn!=="";){switch(Sn=null,en=(wn=on(wn)).charAt(0)){case'"':case"'":Sn=Mn(wn.substring(1),en);break;default:Sn=Xn(wn)}if(Sn===null)return Qn;if(On.push(Sn[0]),(wn=on(Sn[1]))!==""&&wn.charAt(0)!==",")return Qn;wn=wn.replace(/^,/,"")}return On}(Sr);if(this.fontFaces){var kr=Ct(ba(this.pdf,this.fontFaces),fr.map(function(Lr){return{family:Lr,stretch:"normal",weight:ra,style:ta}}));this.pdf.setFont(kr.ref.name,kr.ref.style)}else{var Vr="";(ra==="bold"||parseInt(ra,10)>=700||ta==="bold")&&(Vr="bold"),ta==="italic"&&(Vr+="italic"),Vr.length===0&&(Vr="normal");for(var un="",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"},_t=0;_t<fr.length;_t++){if(this.pdf.internal.getFont(fr[_t],Vr,{noFallback:!0,disableWarning:!0})!==void 0){un=fr[_t];break}if(Vr==="bolditalic"&&this.pdf.internal.getFont(fr[_t],"bold",{noFallback:!0,disableWarning:!0})!==void 0)un=fr[_t],Vr="bold";else if(this.pdf.internal.getFont(fr[_t],"normal",{noFallback:!0,disableWarning:!0})!==void 0){un=fr[_t],Vr="normal";break}}if(un===""){for(var Or=0;Or<fr.length;Or++)if(kn[fr[Or]]){un=kn[fr[Or]];break}}un=un===""?"Times":un,this.pdf.setFont(un,Vr)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Bi){this.ctx.globalCompositeOperation=Bi}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Bi){this.ctx.globalAlpha=Bi}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Bi){this.ctx.lineDashOffset=Bi,di.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Bi){this.ctx.lineDash=Bi,di.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Bi){this.ctx.ignoreClearRect=Boolean(Bi)}})};Xr.prototype.setLineDash=function(gn){this.lineDash=gn},Xr.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Xr.prototype.fill=function(){_i.call(this,"fill",!1)},Xr.prototype.stroke=function(){_i.call(this,"stroke",!1)},Xr.prototype.beginPath=function(){this.path=[{type:"begin"}]},Xr.prototype.moveTo=function(gn,Br){if(isNaN(gn)||isNaN(Br))throw d.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var _n=this.ctx.transform.applyToPoint(new st(gn,Br));this.path.push({type:"mt",x:_n.x,y:_n.y}),this.ctx.lastPoint=new st(gn,Br)},Xr.prototype.closePath=function(){var gn=new st(0,0),Br=0;for(Br=this.path.length-1;Br!==-1;Br--)if(this.path[Br].type==="begin"&&x()(this.path[Br+1])==="object"&&typeof this.path[Br+1].x=="number"){gn=new st(this.path[Br+1].x,this.path[Br+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new st(gn.x,gn.y)},Xr.prototype.lineTo=function(gn,Br){if(isNaN(gn)||isNaN(Br))throw d.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var _n=this.ctx.transform.applyToPoint(new st(gn,Br));this.path.push({type:"lt",x:_n.x,y:_n.y}),this.ctx.lastPoint=new st(_n.x,_n.y)},Xr.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),_i.call(this,null,!0)},Xr.prototype.quadraticCurveTo=function(gn,Br,_n,Gn){if(isNaN(_n)||isNaN(Gn)||isNaN(gn)||isNaN(Br))throw d.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Zn=this.ctx.transform.applyToPoint(new st(_n,Gn)),ai=this.ctx.transform.applyToPoint(new st(gn,Br));this.path.push({type:"qct",x1:ai.x,y1:ai.y,x:Zn.x,y:Zn.y}),this.ctx.lastPoint=new st(Zn.x,Zn.y)},Xr.prototype.bezierCurveTo=function(gn,Br,_n,Gn,Zn,ai){if(isNaN(Zn)||isNaN(ai)||isNaN(gn)||isNaN(Br)||isNaN(_n)||isNaN(Gn))throw d.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Ei=this.ctx.transform.applyToPoint(new st(Zn,ai)),Ri=this.ctx.transform.applyToPoint(new st(gn,Br)),Di=this.ctx.transform.applyToPoint(new st(_n,Gn));this.path.push({type:"bct",x1:Ri.x,y1:Ri.y,x2:Di.x,y2:Di.y,x:Ei.x,y:Ei.y}),this.ctx.lastPoint=new st(Ei.x,Ei.y)},Xr.prototype.arc=function(gn,Br,_n,Gn,Zn,ai){if(isNaN(gn)||isNaN(Br)||isNaN(_n)||isNaN(Gn)||isNaN(Zn))throw d.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ai=Boolean(ai),!this.ctx.transform.isIdentity){var Ei=this.ctx.transform.applyToPoint(new st(gn,Br));gn=Ei.x,Br=Ei.y;var Ri=this.ctx.transform.applyToPoint(new st(0,_n)),Di=this.ctx.transform.applyToPoint(new st(0,0));_n=Math.sqrt(Math.pow(Ri.x-Di.x,2)+Math.pow(Ri.y-Di.y,2))}Math.abs(Zn-Gn)>=2*Math.PI&&(Gn=0,Zn=2*Math.PI),this.path.push({type:"arc",x:gn,y:Br,radius:_n,startAngle:Gn,endAngle:Zn,counterclockwise:ai})},Xr.prototype.arcTo=function(gn,Br,_n,Gn,Zn){throw new Error("arcTo not implemented.")},Xr.prototype.rect=function(gn,Br,_n,Gn){if(isNaN(gn)||isNaN(Br)||isNaN(_n)||isNaN(Gn))throw d.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(gn,Br),this.lineTo(gn+_n,Br),this.lineTo(gn+_n,Br+Gn),this.lineTo(gn,Br+Gn),this.lineTo(gn,Br),this.lineTo(gn+_n,Br),this.lineTo(gn,Br)},Xr.prototype.fillRect=function(gn,Br,_n,Gn){if(isNaN(gn)||isNaN(Br)||isNaN(_n)||isNaN(Gn))throw d.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!gr.call(this)){var Zn={};this.lineCap!=="butt"&&(Zn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Zn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(gn,Br,_n,Gn),this.fill(),Zn.hasOwnProperty("lineCap")&&(this.lineCap=Zn.lineCap),Zn.hasOwnProperty("lineJoin")&&(this.lineJoin=Zn.lineJoin)}},Xr.prototype.strokeRect=function(gn,Br,_n,Gn){if(isNaN(gn)||isNaN(Br)||isNaN(_n)||isNaN(Gn))throw d.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Kn.call(this)||(this.beginPath(),this.rect(gn,Br,_n,Gn),this.stroke())},Xr.prototype.clearRect=function(gn,Br,_n,Gn){if(isNaN(gn)||isNaN(Br)||isNaN(_n)||isNaN(Gn))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(gn,Br,_n,Gn))},Xr.prototype.save=function(gn){gn=typeof gn!="boolean"||gn;for(var Br=this.pdf.internal.getCurrentPageInfo().pageNumber,_n=0;_n<this.pdf.internal.getNumberOfPages();_n++)this.pdf.setPage(_n+1),this.pdf.internal.out("q");if(this.pdf.setPage(Br),gn){this.ctx.fontSize=this.pdf.internal.getFontSize();var Gn=new Zr(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Gn}},Xr.prototype.restore=function(gn){gn=typeof gn!="boolean"||gn;for(var Br=this.pdf.internal.getCurrentPageInfo().pageNumber,_n=0;_n<this.pdf.internal.getNumberOfPages();_n++)this.pdf.setPage(_n+1),this.pdf.internal.out("Q");this.pdf.setPage(Br),gn&&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)},Xr.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var pn=function(Br){var _n,Gn,Zn,ai;if(Br.isCanvasGradient===!0&&(Br=Br.getColor()),!Br)return{r:0,g:0,b:0,a:0,style:Br};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Br))_n=0,Gn=0,Zn=0,ai=0;else{var Ei=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Br);if(Ei!==null)_n=parseInt(Ei[1]),Gn=parseInt(Ei[2]),Zn=parseInt(Ei[3]),ai=1;else if((Ei=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Br))!==null)_n=parseInt(Ei[1]),Gn=parseInt(Ei[2]),Zn=parseInt(Ei[3]),ai=parseFloat(Ei[4]);else{if(ai=1,typeof Br=="string"&&Br.charAt(0)!=="#"){var Ri=new u(Br);Br=Ri.ok?Ri.toHex():"#000000"}Br.length===4?(_n=Br.substring(1,2),_n+=_n,Gn=Br.substring(2,3),Gn+=Gn,Zn=Br.substring(3,4),Zn+=Zn):(_n=Br.substring(1,3),Gn=Br.substring(3,5),Zn=Br.substring(5,7)),_n=parseInt(_n,16),Gn=parseInt(Gn,16),Zn=parseInt(Zn,16)}}return{r:_n,g:Gn,b:Zn,a:ai,style:Br}},gr=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},Kn=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Xr.prototype.fillText=function(gn,Br,_n,Gn){if(isNaN(Br)||isNaN(_n)||typeof gn!="string")throw d.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Gn=isNaN(Gn)?void 0:Gn,!gr.call(this)){var Zn=Mr(this.ctx.transform.rotation),ai=this.ctx.transform.scaleX;Kt.call(this,{text:gn,x:Br,y:_n,scale:ai,angle:Zn,align:this.textAlign,maxWidth:Gn})}},Xr.prototype.strokeText=function(gn,Br,_n,Gn){if(isNaN(Br)||isNaN(_n)||typeof gn!="string")throw d.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Kn.call(this)){Gn=isNaN(Gn)?void 0:Gn;var Zn=Mr(this.ctx.transform.rotation),ai=this.ctx.transform.scaleX;Kt.call(this,{text:gn,x:Br,y:_n,scale:ai,renderingMode:"stroke",angle:Zn,align:this.textAlign,maxWidth:Gn})}},Xr.prototype.measureText=function(gn){if(typeof gn!="string")throw d.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Br=this.pdf,_n=this.pdf.internal.scaleFactor,Gn=Br.internal.getFontSize(),Zn=Br.getStringUnitWidth(gn)*Gn/Br.internal.scaleFactor,ai=function(Ri){var Di=(Ri=Ri||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Di}}),this};return new ai({width:Zn*=Math.round(96*_n/72*1e4)/1e4})},Xr.prototype.scale=function(gn,Br){if(isNaN(gn)||isNaN(Br))throw d.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var _n=new pt(gn,0,0,Br,0,0);this.ctx.transform=this.ctx.transform.multiply(_n)},Xr.prototype.rotate=function(gn){if(isNaN(gn))throw d.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Br=new pt(Math.cos(gn),Math.sin(gn),-Math.sin(gn),Math.cos(gn),0,0);this.ctx.transform=this.ctx.transform.multiply(Br)},Xr.prototype.translate=function(gn,Br){if(isNaN(gn)||isNaN(Br))throw d.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var _n=new pt(1,0,0,1,gn,Br);this.ctx.transform=this.ctx.transform.multiply(_n)},Xr.prototype.transform=function(gn,Br,_n,Gn,Zn,ai){if(isNaN(gn)||isNaN(Br)||isNaN(_n)||isNaN(Gn)||isNaN(Zn)||isNaN(ai))throw d.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Ei=new pt(gn,Br,_n,Gn,Zn,ai);this.ctx.transform=this.ctx.transform.multiply(Ei)},Xr.prototype.setTransform=function(gn,Br,_n,Gn,Zn,ai){gn=isNaN(gn)?1:gn,Br=isNaN(Br)?0:Br,_n=isNaN(_n)?0:_n,Gn=isNaN(Gn)?1:Gn,Zn=isNaN(Zn)?0:Zn,ai=isNaN(ai)?0:ai,this.ctx.transform=new pt(gn,Br,_n,Gn,Zn,ai)};var Rr=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Xr.prototype.drawImage=function(gn,Br,_n,Gn,Zn,ai,Ei,Ri,Di){var oa=this.pdf.getImageProperties(gn),ma=1,aa=1,ba=1,Ai=1;Gn!==void 0&&Ri!==void 0&&(ba=Ri/Gn,Ai=Di/Zn,ma=oa.width/Gn*Ri/Gn,aa=oa.height/Zn*Di/Zn),ai===void 0&&(ai=Br,Ei=_n,Br=0,_n=0),Gn!==void 0&&Ri===void 0&&(Ri=Gn,Di=Zn),Gn===void 0&&Ri===void 0&&(Ri=oa.width,Di=oa.height);for(var Dn,Bi=this.ctx.transform.decompose(),ha=Mr(Bi.rotate.shx),ta=new pt,ra=(ta=(ta=(ta=ta.multiply(Bi.translate)).multiply(Bi.skew)).multiply(Bi.scale)).applyToRectangle(new xt(ai-Br*ba,Ei-_n*Ai,Gn*ma,Zn*aa)),Ir=Pn.call(this,ra),Sr=[],En=0;En<Ir.length;En+=1)Sr.indexOf(Ir[En])===-1&&Sr.push(Ir[En]);if(ii(Sr),this.autoPaging)for(var fr=Sr[0],kr=Sr[Sr.length-1],Vr=fr;Vr<kr+1;Vr++){this.pdf.setPage(Vr);var un=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],kn=Vr===1?this.posY+this.margin[0]:this.margin[0],_t=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Or=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Lr=Vr===1?0:_t+(Vr-2)*Or;if(this.ctx.clip_path.length!==0){var en=this.path;Dn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ur(Dn,this.posX+this.margin[3],-Lr+kn+this.ctx.prevPageLastElemOffset),Gi.call(this,"fill",!0),this.path=en}var Sn=JSON.parse(JSON.stringify(ra));Sn=Ur([Sn],this.posX+this.margin[3],-Lr+kn+this.ctx.prevPageLastElemOffset)[0];var On=(Vr>fr||Vr<kr)&&Rr.call(this);On&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],un,Or,null).clip().discardPath()),this.pdf.addImage(gn,"JPEG",Sn.x,Sn.y,Sn.w,Sn.h,null,null,ha),On&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(gn,"JPEG",ra.x,ra.y,ra.w,ra.h,null,null,ha)};var Pn=function(Br,_n,Gn){var Zn=[];_n=_n||this.pdf.internal.pageSize.width,Gn=Gn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ai=this.posY+this.ctx.prevPageLastElemOffset;switch(Br.type){default:case"mt":case"lt":Zn.push(Math.floor((Br.y+ai)/Gn)+1);break;case"arc":Zn.push(Math.floor((Br.y+ai-Br.radius)/Gn)+1),Zn.push(Math.floor((Br.y+ai+Br.radius)/Gn)+1);break;case"qct":var Ei=zn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Br.x1,Br.y1,Br.x,Br.y);Zn.push(Math.floor((Ei.y+ai)/Gn)+1),Zn.push(Math.floor((Ei.y+Ei.h+ai)/Gn)+1);break;case"bct":var Ri=Rn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Br.x1,Br.y1,Br.x2,Br.y2,Br.x,Br.y);Zn.push(Math.floor((Ri.y+ai)/Gn)+1),Zn.push(Math.floor((Ri.y+Ri.h+ai)/Gn)+1);break;case"rect":Zn.push(Math.floor((Br.y+ai)/Gn)+1),Zn.push(Math.floor((Br.y+Br.h+ai)/Gn)+1)}for(var Di=0;Di<Zn.length;Di+=1)for(;this.pdf.internal.getNumberOfPages()<Zn[Di];)an.call(this);return Zn},an=function(){var Br=this.fillStyle,_n=this.strokeStyle,Gn=this.font,Zn=this.lineCap,ai=this.lineWidth,Ei=this.lineJoin;this.pdf.addPage(),this.fillStyle=Br,this.strokeStyle=_n,this.font=Gn,this.lineCap=Zn,this.lineWidth=ai,this.lineJoin=Ei},Ur=function(Br,_n,Gn){for(var Zn=0;Zn<Br.length;Zn++)switch(Br[Zn].type){case"bct":Br[Zn].x2+=_n,Br[Zn].y2+=Gn;case"qct":Br[Zn].x1+=_n,Br[Zn].y1+=Gn;case"mt":case"lt":case"arc":default:Br[Zn].x+=_n,Br[Zn].y+=Gn}return Br},ii=function(Br){return Br.sort(function(_n,Gn){return _n-Gn})},_i=function(Br,_n){for(var Gn,Zn,ai=this.fillStyle,Ei=this.strokeStyle,Ri=this.lineCap,Di=this.lineWidth,oa=Math.abs(Di*this.ctx.transform.scaleX),ma=this.lineJoin,aa=JSON.parse(JSON.stringify(this.path)),ba=JSON.parse(JSON.stringify(this.path)),Ai=[],Dn=0;Dn<ba.length;Dn++)if(ba[Dn].x!==void 0)for(var Bi=Pn.call(this,ba[Dn]),ha=0;ha<Bi.length;ha+=1)Ai.indexOf(Bi[ha])===-1&&Ai.push(Bi[ha]);for(var ta=0;ta<Ai.length;ta++)for(;this.pdf.internal.getNumberOfPages()<Ai[ta];)an.call(this);if(ii(Ai),this.autoPaging)for(var ra=Ai[0],Ir=Ai[Ai.length-1],Sr=ra;Sr<Ir+1;Sr++){this.pdf.setPage(Sr),this.fillStyle=ai,this.strokeStyle=Ei,this.lineCap=Ri,this.lineWidth=oa,this.lineJoin=ma;var En=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fr=Sr===1?this.posY+this.margin[0]:this.margin[0],kr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Vr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],un=Sr===1?0:kr+(Sr-2)*Vr;if(this.ctx.clip_path.length!==0){var kn=this.path;Gn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ur(Gn,this.posX+this.margin[3],-un+fr+this.ctx.prevPageLastElemOffset),Gi.call(this,Br,!0),this.path=kn}if(Zn=JSON.parse(JSON.stringify(aa)),this.path=Ur(Zn,this.posX+this.margin[3],-un+fr+this.ctx.prevPageLastElemOffset),_n===!1||Sr===0){var _t=(Sr>ra||Sr<Ir)&&Rr.call(this);_t&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],En,Vr,null).clip().discardPath()),Gi.call(this,Br,_n),_t&&this.pdf.restoreGraphicsState()}this.lineWidth=Di}else this.lineWidth=oa,Gi.call(this,Br,_n),this.lineWidth=Di;this.path=aa},Gi=function(Br,_n){if((Br!=="stroke"||_n||!Kn.call(this))&&(Br==="stroke"||_n||!gr.call(this))){for(var Gn,Zn,ai=[],Ei=this.path,Ri=0;Ri<Ei.length;Ri++){var Di=Ei[Ri];switch(Di.type){case"begin":ai.push({begin:!0});break;case"close":ai.push({close:!0});break;case"mt":ai.push({start:Di,deltas:[],abs:[]});break;case"lt":var oa=ai.length;if(Ei[Ri-1]&&!isNaN(Ei[Ri-1].x)&&(Gn=[Di.x-Ei[Ri-1].x,Di.y-Ei[Ri-1].y],oa>0)){for(;oa>=0;oa--)if(ai[oa-1].close!==!0&&ai[oa-1].begin!==!0){ai[oa-1].deltas.push(Gn),ai[oa-1].abs.push(Di);break}}break;case"bct":Gn=[Di.x1-Ei[Ri-1].x,Di.y1-Ei[Ri-1].y,Di.x2-Ei[Ri-1].x,Di.y2-Ei[Ri-1].y,Di.x-Ei[Ri-1].x,Di.y-Ei[Ri-1].y],ai[ai.length-1].deltas.push(Gn);break;case"qct":var ma=Ei[Ri-1].x+2/3*(Di.x1-Ei[Ri-1].x),aa=Ei[Ri-1].y+2/3*(Di.y1-Ei[Ri-1].y),ba=Di.x+2/3*(Di.x1-Di.x),Ai=Di.y+2/3*(Di.y1-Di.y),Dn=Di.x,Bi=Di.y;Gn=[ma-Ei[Ri-1].x,aa-Ei[Ri-1].y,ba-Ei[Ri-1].x,Ai-Ei[Ri-1].y,Dn-Ei[Ri-1].x,Bi-Ei[Ri-1].y],ai[ai.length-1].deltas.push(Gn);break;case"arc":ai.push({deltas:[],abs:[],arc:!0}),Array.isArray(ai[ai.length-1].abs)&&ai[ai.length-1].abs.push(Di)}}Zn=_n?null:Br==="stroke"?"stroke":"fill";for(var ha=!1,ta=0;ta<ai.length;ta++)if(ai[ta].arc)for(var ra=ai[ta].abs,Ir=0;Ir<ra.length;Ir++){var Sr=ra[Ir];Sr.type==="arc"?Vn.call(this,Sr.x,Sr.y,Sr.radius,Sr.startAngle,Sr.endAngle,Sr.counterclockwise,void 0,_n,!ha):Gt.call(this,Sr.x,Sr.y),ha=!0}else if(ai[ta].close===!0)this.pdf.internal.out("h"),ha=!1;else if(ai[ta].begin!==!0){var En=ai[ta].start.x,fr=ai[ta].start.y;Dt.call(this,ai[ta].deltas,En,fr),ha=!0}Zn&&Xt.call(this,Zn),_n&&It.call(this)}},tn=function(Br){var _n=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Gn=_n*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Br-Gn;case"top":return Br+_n-Gn;case"hanging":return Br+_n-2*Gn;case"middle":return Br+_n/2-Gn;case"ideographic":return Br;case"alphabetic":default:return Br}},Tn=function(Br){return Br+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Xr.prototype.createLinearGradient=function(){var gn=function(){};return gn.colorStops=[],gn.addColorStop=function(Br,_n){this.colorStops.push([Br,_n])},gn.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},gn.isCanvasGradient=!0,gn},Xr.prototype.createPattern=function(){return this.createLinearGradient()},Xr.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Vn=function(Br,_n,Gn,Zn,ai,Ei,Ri,Di,oa){for(var ma=Ar.call(this,Gn,Zn,ai,Ei),aa=0;aa<ma.length;aa++){var ba=ma[aa];aa===0&&(oa?Pt.call(this,ba.x1+Br,ba.y1+_n):Gt.call(this,ba.x1+Br,ba.y1+_n)),lr.call(this,Br,_n,ba.x2,ba.y2,ba.x3,ba.y3,ba.x4,ba.y4)}Di?It.call(this):Xt.call(this,Ri)},Xt=function(Br){switch(Br){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},It=function(){this.pdf.clip(),this.pdf.discardPath()},Pt=function(Br,_n){this.pdf.internal.out(He(Br)+" "+Xe(_n)+" m")},Kt=function(Br){var _n;switch(Br.align){case"right":case"end":_n="right";break;case"center":_n="center";break;case"left":case"start":default:_n="left"}var Gn=this.pdf.getTextDimensions(Br.text),Zn=tn.call(this,Br.y),ai=Tn.call(this,Zn)-Gn.h,Ei=this.ctx.transform.applyToPoint(new st(Br.x,Zn)),Ri=this.ctx.transform.decompose(),Di=new pt;Di=(Di=(Di=Di.multiply(Ri.translate)).multiply(Ri.skew)).multiply(Ri.scale);for(var oa,ma,aa,ba=this.ctx.transform.applyToRectangle(new xt(Br.x,Zn,Gn.w,Gn.h)),Ai=Di.applyToRectangle(new xt(Br.x,ai,Gn.w,Gn.h)),Dn=Pn.call(this,Ai),Bi=[],ha=0;ha<Dn.length;ha+=1)Bi.indexOf(Dn[ha])===-1&&Bi.push(Dn[ha]);if(ii(Bi),this.autoPaging)for(var ta=Bi[0],ra=Bi[Bi.length-1],Ir=ta;Ir<ra+1;Ir++){this.pdf.setPage(Ir);var Sr=Ir===1?this.posY+this.margin[0]:this.margin[0],En=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],fr=this.pdf.internal.pageSize.height-this.margin[2],kr=fr-this.margin[0],Vr=this.pdf.internal.pageSize.width-this.margin[1],un=Vr-this.margin[3],kn=Ir===1?0:En+(Ir-2)*kr;if(this.ctx.clip_path.length!==0){var _t=this.path;oa=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ur(oa,this.posX+this.margin[3],-1*kn+Sr),Gi.call(this,"fill",!0),this.path=_t}var Or=Ur([JSON.parse(JSON.stringify(Ai))],this.posX+this.margin[3],-kn+Sr+this.ctx.prevPageLastElemOffset)[0];Br.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*Br.scale),aa=this.lineWidth,this.lineWidth=aa*Br.scale);var Lr=this.autoPaging!=="text";if(Lr||Or.y+Or.h<=fr){if(Lr||Or.y>=Sr&&Or.x<=Vr){var en=Lr?Br.text:this.pdf.splitTextToSize(Br.text,Br.maxWidth||Vr-Or.x)[0],Sn=Ur([JSON.parse(JSON.stringify(ba))],this.posX+this.margin[3],-kn+Sr+this.ctx.prevPageLastElemOffset)[0],On=Lr&&(Ir>ta||Ir<ra)&&Rr.call(this);On&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],un,kr,null).clip().discardPath()),this.pdf.text(en,Sn.x,Sn.y,{angle:Br.angle,align:_n,renderingMode:Br.renderingMode}),On&&this.pdf.restoreGraphicsState()}}else Or.y<fr&&(this.ctx.prevPageLastElemOffset+=fr-Or.y);Br.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=aa)}else Br.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*Br.scale),aa=this.lineWidth,this.lineWidth=aa*Br.scale),this.pdf.text(Br.text,Ei.x+this.posX,Ei.y+this.posY,{angle:Br.angle,align:_n,renderingMode:Br.renderingMode,maxWidth:Br.maxWidth}),Br.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=aa)},Gt=function(Br,_n,Gn,Zn){Gn=Gn||0,Zn=Zn||0,this.pdf.internal.out(He(Br+Gn)+" "+Xe(_n+Zn)+" l")},Dt=function(Br,_n,Gn){return this.pdf.lines(Br,_n,Gn,null,null)},lr=function(Br,_n,Gn,Zn,ai,Ei,Ri,Di){this.pdf.internal.out([Ne(rt(Gn+Br)),Ne(Ze(Zn+_n)),Ne(rt(ai+Br)),Ne(Ze(Ei+_n)),Ne(rt(Ri+Br)),Ne(Ze(Di+_n)),"c"].join(" "))},Ar=function(Br,_n,Gn,Zn){for(var ai=2*Math.PI,Ei=Math.PI/2;_n>Gn;)_n-=ai;var Ri=Math.abs(Gn-_n);Ri<ai&&Zn&&(Ri=ai-Ri);for(var Di=[],oa=Zn?-1:1,ma=_n;Ri>1e-5;){var aa=ma+oa*Math.min(Ri,Ei);Di.push(yr.call(this,Br,ma,aa)),Ri-=Math.abs(aa-ma),ma=aa}return Di},yr=function(Br,_n,Gn){var Zn=(Gn-_n)/2,ai=Br*Math.cos(Zn),Ei=Br*Math.sin(Zn),Ri=ai,Di=-Ei,oa=Ri*Ri+Di*Di,ma=oa+Ri*ai+Di*Ei,aa=4/3*(Math.sqrt(2*oa*ma)-ma)/(Ri*Ei-Di*ai),ba=Ri-aa*Di,Ai=Di+aa*Ri,Dn=ba,Bi=-Ai,ha=Zn+_n,ta=Math.cos(ha),ra=Math.sin(ha);return{x1:Br*Math.cos(_n),y1:Br*Math.sin(_n),x2:ba*ta-Ai*ra,y2:ba*ra+Ai*ta,x3:Dn*ta-Bi*ra,y3:Dn*ra+Bi*ta,x4:Br*Math.cos(Gn),y4:Br*Math.sin(Gn)}},Mr=function(Br){return 180*Br/Math.PI},zn=function(Br,_n,Gn,Zn,ai,Ei){var Ri=Br+.5*(Gn-Br),Di=_n+.5*(Zn-_n),oa=ai+.5*(Gn-ai),ma=Ei+.5*(Zn-Ei),aa=Math.min(Br,ai,Ri,oa),ba=Math.max(Br,ai,Ri,oa),Ai=Math.min(_n,Ei,Di,ma),Dn=Math.max(_n,Ei,Di,ma);return new xt(aa,Ai,ba-aa,Dn-Ai)},Rn=function(Br,_n,Gn,Zn,ai,Ei,Ri,Di){var oa,ma,aa,ba,Ai,Dn,Bi,ha,ta,ra,Ir,Sr,En,fr,kr=Gn-Br,Vr=Zn-_n,un=ai-Gn,kn=Ei-Zn,_t=Ri-ai,Or=Di-Ei;for(ma=0;ma<41;ma++)ta=(Bi=(aa=Br+(oa=ma/40)*kr)+oa*((Ai=Gn+oa*un)-aa))+oa*(Ai+oa*(ai+oa*_t-Ai)-Bi),ra=(ha=(ba=_n+oa*Vr)+oa*((Dn=Zn+oa*kn)-ba))+oa*(Dn+oa*(Ei+oa*Or-Dn)-ha),ma==0?(Ir=ta,Sr=ra,En=ta,fr=ra):(Ir=Math.min(Ir,ta),Sr=Math.min(Sr,ra),En=Math.max(En,ta),fr=Math.max(fr,ra));return new xt(Math.round(Ir),Math.round(Sr),Math.round(En-Ir),Math.round(fr-Sr))},di=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Br,_n,Gn=(Br=this.ctx.lineDash,_n=this.ctx.lineDashOffset,JSON.stringify({lineDash:Br,lineDashOffset:_n}));this.prevLineDash!==Gn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Gn)}}}(z.API),function(nt){var Ne=function(st){var xt,pt,hr,Zr,Xr,pn,gr,Kn,Rr,Pn;for(/[^\x00-\xFF]/.test(st),pt=[],hr=0,Zr=(st+=xt="\0\0\0\0".slice(st.length%4||4)).length;Zr>hr;hr+=4)(Xr=(st.charCodeAt(hr)<<24)+(st.charCodeAt(hr+1)<<16)+(st.charCodeAt(hr+2)<<8)+st.charCodeAt(hr+3))!==0?(pn=(Xr=((Xr=((Xr=((Xr=(Xr-(Pn=Xr%85))/85)-(Rr=Xr%85))/85)-(Kn=Xr%85))/85)-(gr=Xr%85))/85)%85,pt.push(pn+33,gr+33,Kn+33,Rr+33,Pn+33)):pt.push(122);return function(an,Ur){for(var ii=Ur;ii>0;ii--)an.pop()}(pt,xt.length),String.fromCharCode.apply(String,pt)+"~>"},He=function(st){var xt,pt,hr,Zr,Xr,pn=String,gr="length",Kn=255,Rr="charCodeAt",Pn="slice",an="replace";for(st[Pn](-2),st=st[Pn](0,-2)[an](/\s/g,"")[an]("z","!!!!!"),hr=[],Zr=0,Xr=(st+=xt="uuuuu"[Pn](st[gr]%5||5))[gr];Xr>Zr;Zr+=5)pt=52200625*(st[Rr](Zr)-33)+614125*(st[Rr](Zr+1)-33)+7225*(st[Rr](Zr+2)-33)+85*(st[Rr](Zr+3)-33)+(st[Rr](Zr+4)-33),hr.push(Kn&pt>>24,Kn&pt>>16,Kn&pt>>8,Kn&pt);return function(Ur,ii){for(var _i=ii;_i>0;_i--)Ur.pop()}(hr,xt[gr]),pn.fromCharCode.apply(pn,hr)},Xe=function(st){var xt=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((st=st.replace(/\s/g,"")).indexOf(">")!==-1&&(st=st.substr(0,st.indexOf(">"))),st.length%2&&(st+="0"),xt.test(st)===!1)return"";for(var pt="",hr=0;hr<st.length;hr+=2)pt+=String.fromCharCode("0x"+(st[hr]+st[hr+1]));return pt},rt=function(st){for(var xt=new Uint8Array(st.length),pt=st.length;pt--;)xt[pt]=st.charCodeAt(pt);return st=(xt=Object(v.b)(xt)).reduce(function(hr,Zr){return hr+String.fromCharCode(Zr)},"")};nt.processDataByFilters=function(Ze,st){var xt=0,pt=Ze||"",hr=[];for(typeof(st=st||[])=="string"&&(st=[st]),xt=0;xt<st.length;xt+=1)switch(st[xt]){case"ASCII85Decode":case"/ASCII85Decode":pt=He(pt),hr.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":pt=Ne(pt),hr.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":pt=Xe(pt),hr.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":pt=pt.split("").map(function(Zr){return("0"+Zr.charCodeAt().toString(16)).slice(-2)}).join("")+">",hr.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":pt=rt(pt),hr.push("/FlateDecode");break;default:throw new Error('The filter: "'+st[xt]+'" is not implemented')}return{data:pt,reverseChain:hr.reverse().join(" ")}}}(z.API),function(nt){nt.loadFile=function(Ne,He,Xe){return function(rt,Ze,st){Ze=Ze!==!1,st=typeof st=="function"?st:function(){};var xt=void 0;try{xt=function(pt,hr,Zr){var Xr=new XMLHttpRequest,pn=0,gr=function(Rr){var Pn=Rr.length,an=[],Ur=String.fromCharCode;for(pn=0;pn<Pn;pn+=1)an.push(Ur(255&Rr.charCodeAt(pn)));return an.join("")};if(Xr.open("GET",pt,!hr),Xr.overrideMimeType("text/plain; charset=x-user-defined"),hr===!1&&(Xr.onload=function(){Xr.status===200?Zr(gr(this.responseText)):Zr(void 0)}),Xr.send(null),hr&&Xr.status===200)return gr(Xr.responseText)}(rt,Ze,st)}catch(pt){}return xt}(Ne,He,Xe)},nt.loadImageFile=nt.loadFile}(z.API),function(nt){function Ne(){return(m.html2canvas?Promise.resolve(m.html2canvas):Promise.resolve().then(i.t.bind(null,"wOnQ",7))).catch(function(st){return Promise.reject(new Error("Could not load html2canvas: "+st))}).then(function(st){return st.default?st.default:st})}function He(){return(m.DOMPurify?Promise.resolve(m.DOMPurify):i.e(240).then(i.t.bind(null,"qZ2Q",7))).catch(function(st){return Promise.reject(new Error("Could not load dompurify: "+st))}).then(function(st){return st.default?st.default:st})}var Xe=function(xt){var pt=x()(xt);return pt==="undefined"?"undefined":pt==="string"||xt instanceof String?"string":pt==="number"||xt instanceof Number?"number":pt==="function"||xt instanceof Function?"function":xt&&xt.constructor===Array?"array":xt&&xt.nodeType===1?"element":pt==="object"?"object":"unknown"},rt=function(xt,pt){var hr=document.createElement(xt);for(var Zr in pt.className&&(hr.className=pt.className),pt.innerHTML&&pt.dompurify&&(hr.innerHTML=pt.dompurify.sanitize(pt.innerHTML)),pt.style)hr.style[Zr]=pt.style[Zr];return hr},Ze=function st(xt){var pt=Object.assign(st.convert(Promise.resolve()),JSON.parse(JSON.stringify(st.template))),hr=st.convert(Promise.resolve(),pt);return hr=(hr=hr.setProgress(1,st,1,[st])).set(xt)};(Ze.prototype=Object.create(Promise.prototype)).constructor=Ze,Ze.convert=function(st,xt){return st.__proto__=xt||Ze.prototype,st},Ze.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},Ze.prototype.from=function(st,xt){return this.then(function(){switch(xt=xt||function(pt){switch(Xe(pt)){case"string":return"string";case"element":return pt.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(st)){case"string":return this.then(He).then(function(pt){return this.set({src:rt("div",{innerHTML:st,dompurify:pt})})});case"element":return this.set({src:st});case"canvas":return this.set({canvas:st});case"img":return this.set({img:st});default:return this.error("Unknown source type.")}})},Ze.prototype.to=function(st){switch(st){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},Ze.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var st={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},xt=function pt(hr,Zr){for(var Xr=hr.nodeType===3?document.createTextNode(hr.nodeValue):hr.cloneNode(!1),pn=hr.firstChild;pn;pn=pn.nextSibling)Zr!==!0&&pn.nodeType===1&&pn.nodeName==="SCRIPT"||Xr.appendChild(pt(pn,Zr));return hr.nodeType===1&&(hr.nodeName==="CANVAS"?(Xr.width=hr.width,Xr.height=hr.height,Xr.getContext("2d").drawImage(hr,0,0)):hr.nodeName!=="TEXTAREA"&&hr.nodeName!=="SELECT"||(Xr.value=hr.value),Xr.addEventListener("load",function(){Xr.scrollTop=hr.scrollTop,Xr.scrollLeft=hr.scrollLeft},!0)),Xr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);xt.tagName==="BODY"&&(st.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=rt("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=rt("div",{className:"html2pdf__container",style:st}),this.prop.container.appendChild(xt),this.prop.container.firstChild.appendChild(rt("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},Ze.prototype.toCanvas=function(){var st=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(st).then(Ne).then(function(xt){var pt=Object.assign({},this.opt.html2canvas);return delete pt.onrendered,xt(this.prop.container,pt)}).then(function(xt){(this.opt.html2canvas.onrendered||function(){})(xt),this.prop.canvas=xt,document.body.removeChild(this.prop.overlay)})},Ze.prototype.toContext2d=function(){var st=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(st).then(Ne).then(function(xt){var pt=this.opt.jsPDF,hr=this.opt.fontFaces,Zr=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,Xr=Object.assign({async:!0,allowTaint:!0,scale:Zr,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 Xr.onrendered,pt.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,pt.context2d.posX=this.opt.x,pt.context2d.posY=this.opt.y,pt.context2d.margin=this.opt.margin,pt.context2d.fontFaces=hr,hr)for(var pn=0;pn<hr.length;++pn){var gr=hr[pn],Kn=gr.src.find(function(Rr){return Rr.format==="truetype"});Kn&&pt.addFont(Kn.url,gr.ref.name,gr.ref.style)}return Xr.windowHeight=Xr.windowHeight||0,Xr.windowHeight=Xr.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Xr.windowHeight,pt.context2d.save(!0),xt(this.prop.container,Xr)}).then(function(xt){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(xt),this.prop.canvas=xt,document.body.removeChild(this.prop.overlay)})},Ze.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var st=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=st})},Ze.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},Ze.prototype.output=function(st,xt,pt){return(pt=pt||"pdf").toLowerCase()==="img"||pt.toLowerCase()==="image"?this.outputImg(st,xt):this.outputPdf(st,xt)},Ze.prototype.outputPdf=function(st,xt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(st,xt)})},Ze.prototype.outputImg=function(st){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(st){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 "'+st+'" is not supported.'}})},Ze.prototype.save=function(st){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(st?{filename:st}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Ze.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},Ze.prototype.set=function(st){if(Xe(st)!=="object")return this;var xt=Object.keys(st||{}).map(function(pt){if(pt in Ze.template.prop)return function(){this.prop[pt]=st[pt]};switch(pt){case"margin":return this.setMargin.bind(this,st.margin);case"jsPDF":return function(){return this.opt.jsPDF=st.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,st.pageSize);default:return function(){this.opt[pt]=st[pt]}}},this);return this.then(function(){return this.thenList(xt)})},Ze.prototype.get=function(st,xt){return this.then(function(){var pt=st in Ze.template.prop?this.prop[st]:this.opt[st];return xt?xt(pt):pt})},Ze.prototype.setMargin=function(st){return this.then(function(){switch(Xe(st)){case"number":st=[st,st,st,st];case"array":if(st.length===2&&(st=[st[0],st[1],st[0],st[1]]),st.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=st}).then(this.setPageSize)},Ze.prototype.setPageSize=function(st){function xt(pt,hr){return Math.floor(pt*hr/72*96)}return this.then(function(){(st=st||z.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(st.inner={width:st.width-this.opt.margin[1]-this.opt.margin[3],height:st.height-this.opt.margin[0]-this.opt.margin[2]},st.inner.px={width:xt(st.inner.width,st.k),height:xt(st.inner.height,st.k)},st.inner.ratio=st.inner.height/st.inner.width),this.prop.pageSize=st})},Ze.prototype.setProgress=function(st,xt,pt,hr){return st!=null&&(this.progress.val=st),xt!=null&&(this.progress.state=xt),pt!=null&&(this.progress.n=pt),hr!=null&&(this.progress.stack=hr),this.progress.ratio=this.progress.val/this.progress.state,this},Ze.prototype.updateProgress=function(st,xt,pt,hr){return this.setProgress(st?this.progress.val+st:null,xt||null,pt?this.progress.n+pt:null,hr?this.progress.stack.concat(hr):null)},Ze.prototype.then=function(st,xt){var pt=this;return this.thenCore(st,xt,function(hr,Zr){return pt.updateProgress(null,null,1,[hr]),Promise.prototype.then.call(this,function(Xr){return pt.updateProgress(null,hr),Xr}).then(hr,Zr).then(function(Xr){return pt.updateProgress(1),Xr})})},Ze.prototype.thenCore=function(st,xt,pt){pt=pt||Promise.prototype.then,st&&(st=st.bind(this)),xt&&(xt=xt.bind(this));var hr=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:Ze.convert(Object.assign({},this),Promise.prototype),Zr=pt.call(hr,st,xt);return Ze.convert(Zr,this.__proto__)},Ze.prototype.thenExternal=function(st,xt){return Promise.prototype.then.call(this,st,xt)},Ze.prototype.thenList=function(st){var xt=this;return st.forEach(function(pt){xt=xt.thenCore(pt)}),xt},Ze.prototype.catch=function(st){st&&(st=st.bind(this));var xt=Promise.prototype.catch.call(this,st);return Ze.convert(xt,this)},Ze.prototype.catchExternal=function(st){return Promise.prototype.catch.call(this,st)},Ze.prototype.error=function(st){return this.then(function(){throw new Error(st)})},Ze.prototype.using=Ze.prototype.set,Ze.prototype.saveAs=Ze.prototype.save,Ze.prototype.export=Ze.prototype.output,Ze.prototype.run=Ze.prototype.then,z.getPageSize=function(st,xt,pt){if(x()(st)==="object"){var hr=st;st=hr.orientation,xt=hr.unit||xt,pt=hr.format||pt}xt=xt||"mm",pt=pt||"a4",st=(""+(st||"P")).toLowerCase();var Zr,Xr=(""+pt).toLowerCase(),pn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(xt){case"pt":Zr=1;break;case"mm":Zr=72/25.4;break;case"cm":Zr=72/2.54;break;case"in":Zr=72;break;case"px":Zr=.75;break;case"pc":case"em":Zr=12;break;case"ex":Zr=6;break;default:throw"Invalid unit: "+xt}var gr,Kn=0,Rr=0;if(pn.hasOwnProperty(Xr))Kn=pn[Xr][1]/Zr,Rr=pn[Xr][0]/Zr;else try{Kn=pt[1],Rr=pt[0]}catch(Pn){throw new Error("Invalid format: "+pt)}if(st==="p"||st==="portrait")st="p",Rr>Kn&&(gr=Rr,Rr=Kn,Kn=gr);else{if(st!=="l"&&st!=="landscape")throw"Invalid orientation: "+st;st="l",Kn>Rr&&(gr=Rr,Rr=Kn,Kn=gr)}return{width:Rr,height:Kn,unit:xt,k:Zr,orientation:st}},nt.html=function(st,xt){(xt=xt||{}).callback=xt.callback||function(){},xt.html2canvas=xt.html2canvas||{},xt.html2canvas.canvas=xt.html2canvas.canvas||this.canvas,xt.jsPDF=xt.jsPDF||this,xt.fontFaces=xt.fontFaces?xt.fontFaces.map(mn):null;var pt=new Ze(xt);return xt.worker?pt:pt.from(st).doCallback()}}(z.API),z.API.addJS=function(nt){return Un=nt,this.internal.events.subscribe("postPutResources",function(){oi=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(oi+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Ui=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Un+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){oi!==void 0&&Ui!==void 0&&this.internal.out("/Names <</JavaScript "+oi+" 0 R>>")}),this},function(nt){var Ne;nt.events.push(["postPutResources",function(){var He=this,Xe=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var rt=He.outline.render().split(/\r\n/),Ze=0;Ze<rt.length;Ze++){var st=rt[Ze],xt=Xe.exec(st);if(xt!=null){var pt=xt[1];He.internal.newObjectDeferredBegin(pt,!1)}He.internal.write(st)}if(this.outline.createNamedDestinations){var hr=this.internal.pages.length,Zr=[];for(Ze=0;Ze<hr;Ze++){var Xr=He.internal.newObject();Zr.push(Xr);var pn=He.internal.getPageInfo(Ze+1);He.internal.write("<< /D["+pn.objId+" 0 R /XYZ null null null]>> endobj")}var gr=He.internal.newObject();for(He.internal.write("<< /Names [ "),Ze=0;Ze<Zr.length;Ze++)He.internal.write("(page_"+(Ze+1)+")"+Zr[Ze]+" 0 R");He.internal.write(" ] >>","endobj"),Ne=He.internal.newObject(),He.internal.write("<< /Dests "+gr+" 0 R"),He.internal.write(">>","endobj")}}]),nt.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"))}]),nt.events.push(["initialized",function(){var He=this;He.outline={createNamedDestinations:!1,root:{children:[]}},He.outline.add=function(Xe,rt,Ze){var st={title:rt,options:Ze,children:[]};return Xe==null&&(Xe=this.root),Xe.children.push(st),st},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(Xe){Xe.id=He.internal.newObjectDeferred();for(var rt=0;rt<Xe.children.length;rt++)this.genIds_r(Xe.children[rt])},He.outline.renderRoot=function(Xe){this.objStart(Xe),this.line("/Type /Outlines"),Xe.children.length>0&&(this.line("/First "+this.makeRef(Xe.children[0])),this.line("/Last "+this.makeRef(Xe.children[Xe.children.length-1]))),this.line("/Count "+this.count_r({count:0},Xe)),this.objEnd()},He.outline.renderItems=function(Xe){for(var rt=this.ctx.pdf.internal.getVerticalCoordinateString,Ze=0;Ze<Xe.children.length;Ze++){var st=Xe.children[Ze];this.objStart(st),this.line("/Title "+this.makeString(st.title)),this.line("/Parent "+this.makeRef(Xe)),Ze>0&&this.line("/Prev "+this.makeRef(Xe.children[Ze-1])),Ze<Xe.children.length-1&&this.line("/Next "+this.makeRef(Xe.children[Ze+1])),st.children.length>0&&(this.line("/First "+this.makeRef(st.children[0])),this.line("/Last "+this.makeRef(st.children[st.children.length-1])));var xt=this.count=this.count_r({count:0},st);if(xt>0&&this.line("/Count "+xt),st.options&&st.options.pageNumber){var pt=He.internal.getPageInfo(st.options.pageNumber);this.line("/Dest ["+pt.objId+" 0 R /XYZ 0 "+rt(0)+" 0]")}this.objEnd()}for(var hr=0;hr<Xe.children.length;hr++)this.renderItems(Xe.children[hr])},He.outline.line=function(Xe){this.ctx.val+=Xe+`\r
|
|
|
`},He.outline.makeRef=function(Xe){return Xe.id+" 0 R"},He.outline.makeString=function(Xe){return"("+He.internal.pdfEscape(Xe)+")"},He.outline.objStart=function(Xe){this.ctx.val+=`\r
|
|
|
`+Xe.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},He.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},He.outline.count_r=function(Xe,rt){for(var Ze=0;Ze<rt.children.length;Ze++)Xe.count++,this.count_r(Xe,rt.children[Ze]);return Xe.count}}])}(z.API),function(nt){var Ne=[192,193,194,195,196,197,198,199];nt.processJPEG=function(He,Xe,rt,Ze,st,xt){var pt,hr=this.decode.DCT_DECODE,Zr=null;if(typeof He=="string"||this.__addimage__.isArrayBuffer(He)||this.__addimage__.isArrayBufferView(He)){switch(He=st||He,He=this.__addimage__.isArrayBuffer(He)?new Uint8Array(He):He,(pt=function(Xr){for(var pn,gr=256*Xr.charCodeAt(4)+Xr.charCodeAt(5),Kn=Xr.length,Rr={width:0,height:0,numcomponents:1},Pn=4;Pn<Kn;Pn+=2){if(Pn+=gr,Ne.indexOf(Xr.charCodeAt(Pn+1))!==-1){pn=256*Xr.charCodeAt(Pn+5)+Xr.charCodeAt(Pn+6),Rr={width:256*Xr.charCodeAt(Pn+7)+Xr.charCodeAt(Pn+8),height:pn,numcomponents:Xr.charCodeAt(Pn+9)};break}gr=256*Xr.charCodeAt(Pn+2)+Xr.charCodeAt(Pn+3)}return Rr}(He=this.__addimage__.isArrayBufferView(He)?this.__addimage__.arrayBufferToBinaryString(He):He)).numcomponents){case 1:xt=this.color_spaces.DEVICE_GRAY;break;case 4:xt=this.color_spaces.DEVICE_CMYK;break;case 3:xt=this.color_spaces.DEVICE_RGB}Zr={data:He,width:pt.width,height:pt.height,colorSpace:xt,bitsPerComponent:8,filter:hr,index:Xe,alias:rt}}return Zr}}(z.API);var $t,Nt,Me,ke,Be,it=function(){var nt,Ne,He;function Xe(Ze){var st,xt,pt,hr,Zr,Xr,pn,gr,Kn,Rr,Pn,an,Ur,ii;for(this.data=Ze,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Xr=null;;){switch(st=this.readUInt32(),Kn=function(){var _i,Gi;for(Gi=[],_i=0;_i<4;++_i)Gi.push(String.fromCharCode(this.data[this.pos++]));return Gi}.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(st);break;case"fcTL":Xr&&this.animation.frames.push(Xr),this.pos+=4,Xr={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Zr=this.readUInt16(),hr=this.readUInt16()||100,Xr.delay=1e3*Zr/hr,Xr.disposeOp=this.data[this.pos++],Xr.blendOp=this.data[this.pos++],Xr.data=[];break;case"IDAT":case"fdAT":for(Kn==="fdAT"&&(this.pos+=4,st-=4),Ze=(Xr!=null?Xr.data:void 0)||this.imgData,an=0;0<=st?an<st:an>st;0<=st?++an:--an)Ze.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(pt=this.palette.length/3,this.transparency.indexed=this.read(st),this.transparency.indexed.length>pt)throw new Error("More transparent colors than palette size");if((Rr=pt-this.transparency.indexed.length)>0)for(Ur=0;0<=Rr?Ur<Rr:Ur>Rr;0<=Rr?++Ur:--Ur)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(st)[0];break;case 2:this.transparency.rgb=this.read(st)}break;case"tEXt":pn=(Pn=this.read(st)).indexOf(0),gr=String.fromCharCode.apply(String,Pn.slice(0,pn)),this.text[gr]=String.fromCharCode.apply(String,Pn.slice(pn+1));break;case"IEND":return Xr&&this.animation.frames.push(Xr),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(ii=this.colorType)===4||ii===6,xt=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*xt,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=st}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Xe.prototype.read=function(Ze){var st,xt;for(xt=[],st=0;0<=Ze?st<Ze:st>Ze;0<=Ze?++st:--st)xt.push(this.data[this.pos++]);return xt},Xe.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Xe.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Xe.prototype.decodePixels=function(Ze){var st=this.pixelBitlength/8,xt=new Uint8Array(this.width*this.height*st),pt=0,hr=this;if(Ze==null&&(Ze=this.imgData),Ze.length===0)return new Uint8Array(0);function Zr(Xr,pn,gr,Kn){var Rr,Pn,an,Ur,ii,_i,Gi,tn,Tn,Vn,Xt,It,Pt,Kt,Gt,Dt,lr,Ar,yr,Mr,zn,Rn=Math.ceil((hr.width-Xr)/gr),di=Math.ceil((hr.height-pn)/Kn),gn=hr.width==Rn&&hr.height==di;for(Kt=st*Rn,It=gn?xt:new Uint8Array(Kt*di),_i=Ze.length,Pt=0,Pn=0;Pt<di&&pt<_i;){switch(Ze[pt++]){case 0:for(Ur=lr=0;lr<Kt;Ur=lr+=1)It[Pn++]=Ze[pt++];break;case 1:for(Ur=Ar=0;Ar<Kt;Ur=Ar+=1)Rr=Ze[pt++],ii=Ur<st?0:It[Pn-st],It[Pn++]=(Rr+ii)%256;break;case 2:for(Ur=yr=0;yr<Kt;Ur=yr+=1)Rr=Ze[pt++],an=(Ur-Ur%st)/st,Gt=Pt&&It[(Pt-1)*Kt+an*st+Ur%st],It[Pn++]=(Gt+Rr)%256;break;case 3:for(Ur=Mr=0;Mr<Kt;Ur=Mr+=1)Rr=Ze[pt++],an=(Ur-Ur%st)/st,ii=Ur<st?0:It[Pn-st],Gt=Pt&&It[(Pt-1)*Kt+an*st+Ur%st],It[Pn++]=(Rr+Math.floor((ii+Gt)/2))%256;break;case 4:for(Ur=zn=0;zn<Kt;Ur=zn+=1)Rr=Ze[pt++],an=(Ur-Ur%st)/st,ii=Ur<st?0:It[Pn-st],Pt===0?Gt=Dt=0:(Gt=It[(Pt-1)*Kt+an*st+Ur%st],Dt=an&&It[(Pt-1)*Kt+(an-1)*st+Ur%st]),Gi=ii+Gt-Dt,tn=Math.abs(Gi-ii),Vn=Math.abs(Gi-Gt),Xt=Math.abs(Gi-Dt),Tn=tn<=Vn&&tn<=Xt?ii:Vn<=Xt?Gt:Dt,It[Pn++]=(Rr+Tn)%256;break;default:throw new Error("Invalid filter algorithm: "+Ze[pt-1])}if(!gn){var Br=((pn+Pt*Kn)*hr.width+Xr)*st,_n=Pt*Kt;for(Ur=0;Ur<Rn;Ur+=1){for(var Gn=0;Gn<st;Gn+=1)xt[Br++]=It[_n++];Br+=(gr-1)*st}}Pt++}}return Ze=Object(v.a)(Ze),hr.interlaceMethod==1?(Zr(0,0,8,8),Zr(4,0,8,8),Zr(0,4,4,8),Zr(2,0,4,4),Zr(0,2,2,4),Zr(1,0,2,2),Zr(0,1,1,2)):Zr(0,0,1,1),xt},Xe.prototype.decodePalette=function(){var Ze,st,xt,pt,hr,Zr,Xr,pn,gr;for(xt=this.palette,Zr=this.transparency.indexed||[],hr=new Uint8Array((Zr.length||0)+xt.length),pt=0,Ze=0,st=Xr=0,pn=xt.length;Xr<pn;st=Xr+=3)hr[pt++]=xt[st],hr[pt++]=xt[st+1],hr[pt++]=xt[st+2],hr[pt++]=(gr=Zr[Ze++])!=null?gr:255;return hr},Xe.prototype.copyToImageData=function(Ze,st){var xt,pt,hr,Zr,Xr,pn,gr,Kn,Rr,Pn,an;if(pt=this.colors,Rr=null,xt=this.hasAlphaChannel,this.palette.length&&(Rr=(an=this._decodedPalette)!=null?an:this._decodedPalette=this.decodePalette(),pt=4,xt=!0),Kn=(hr=Ze.data||Ze).length,Xr=Rr||st,Zr=pn=0,pt===1)for(;Zr<Kn;)gr=Rr?4*st[Zr/4]:pn,Pn=Xr[gr++],hr[Zr++]=Pn,hr[Zr++]=Pn,hr[Zr++]=Pn,hr[Zr++]=xt?Xr[gr++]:255,pn=gr;else for(;Zr<Kn;)gr=Rr?4*st[Zr/4]:pn,hr[Zr++]=Xr[gr++],hr[Zr++]=Xr[gr++],hr[Zr++]=Xr[gr++],hr[Zr++]=xt?Xr[gr++]:255,pn=gr},Xe.prototype.decode=function(){var Ze;return Ze=new Uint8Array(this.width*this.height*4),this.copyToImageData(Ze,this.decodePixels()),Ze};var rt=function(){if(Object.prototype.toString.call(m)==="[object Window]"){try{Ne=m.document.createElement("canvas"),He=Ne.getContext("2d")}catch(st){return!1}return!0}return!1};return rt(),nt=function(st){var xt;if(rt()===!0)return He.width=st.width,He.height=st.height,He.clearRect(0,0,st.width,st.height),He.putImageData(st,0,0),(xt=new Image).src=Ne.toDataURL(),xt;throw new Error("This method requires a Browser with Canvas-capability.")},Xe.prototype.decodeFrames=function(Ze){var st,xt,pt,hr,Zr,Xr,pn,gr;if(this.animation){for(gr=[],xt=Zr=0,Xr=(pn=this.animation.frames).length;Zr<Xr;xt=++Zr)st=pn[xt],pt=Ze.createImageData(st.width,st.height),hr=this.decodePixels(new Uint8Array(st.data)),this.copyToImageData(pt,hr),st.imageData=pt,gr.push(st.image=nt(pt));return gr}},Xe.prototype.renderFrame=function(Ze,st){var xt,pt,hr;return xt=(pt=this.animation.frames)[st],hr=pt[st-1],st===0&&Ze.clearRect(0,0,this.width,this.height),(hr!=null?hr.disposeOp:void 0)===1?Ze.clearRect(hr.xOffset,hr.yOffset,hr.width,hr.height):(hr!=null?hr.disposeOp:void 0)===2&&Ze.putImageData(hr.imageData,hr.xOffset,hr.yOffset),xt.blendOp===0&&Ze.clearRect(xt.xOffset,xt.yOffset,xt.width,xt.height),Ze.drawImage(xt.image,xt.xOffset,xt.yOffset)},Xe.prototype.animate=function(Ze){var st,xt,pt,hr,Zr,Xr,pn=this;return xt=0,Xr=this.animation,hr=Xr.numFrames,pt=Xr.frames,Zr=Xr.numPlays,(st=function(){var Kn,Rr;if(Kn=xt++%hr,Rr=pt[Kn],pn.renderFrame(Ze,Kn),hr>1&&xt/hr<Zr)return pn.animation._timeout=setTimeout(st,Rr.delay)})()},Xe.prototype.stopAnimation=function(){var Ze;return clearTimeout((Ze=this.animation)!=null?Ze._timeout:void 0)},Xe.prototype.render=function(Ze){var st,xt;return Ze._png&&Ze._png.stopAnimation(),Ze._png=this,Ze.width=this.width,Ze.height=this.height,st=Ze.getContext("2d"),this.animation?(this.decodeFrames(st),this.animate(st)):(xt=st.createImageData(this.width,this.height),this.copyToImageData(xt,this.decodePixels()),st.putImageData(xt,0,0))},Xe}();/**
|
|
|
* @license
|
|
|
*
|
|
|
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
|
|
|
*
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|
|
* a copy of this software and associated documentation files (the
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
|
* the following conditions:
|
|
|
*
|
|
|
* The above copyright notice and this permission notice shall be
|
|
|
* included in all copies or substantial portions of the Software.
|
|
|
*
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
* ====================================================================
|
|
|
*//**
|
|
|
* @license
|
|
|
* (c) Dean McNamee <dean@gmail.com>, 2013.
|
|
|
*
|
|
|
* https://github.com/deanm/omggif
|
|
|
*
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
* of this software and associated documentation files (the "Software"), to
|
|
|
* deal in the Software without restriction, including without limitation the
|
|
|
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
* sell copies of the Software, and to permit persons to whom the Software is
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
*
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
* all copies or substantial portions of the Software.
|
|
|
*
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
|
* IN THE SOFTWARE.
|
|
|
*
|
|
|
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
|
|
|
* including animation and compression. It does not rely on any specific
|
|
|
* underlying system, so should run in the browser, Node, or Plask.
|
|
|
*/function yt(nt){var Ne=0;if(nt[Ne++]!==71||nt[Ne++]!==73||nt[Ne++]!==70||nt[Ne++]!==56||(nt[Ne++]+1&253)!=56||nt[Ne++]!==97)throw new Error("Invalid GIF 87a/89a header.");var He=nt[Ne++]|nt[Ne++]<<8,Xe=nt[Ne++]|nt[Ne++]<<8,rt=nt[Ne++],Ze=rt>>7,st=1<<(7&rt)+1;nt[Ne++],nt[Ne++];var xt=null,pt=null;Ze&&(xt=Ne,pt=st,Ne+=3*st);var hr=!0,Zr=[],Xr=0,pn=null,gr=0,Kn=null;for(this.width=He,this.height=Xe;hr&&Ne<nt.length;)switch(nt[Ne++]){case 33:switch(nt[Ne++]){case 255:if(nt[Ne]!==11||nt[Ne+1]==78&&nt[Ne+2]==69&&nt[Ne+3]==84&&nt[Ne+4]==83&&nt[Ne+5]==67&&nt[Ne+6]==65&&nt[Ne+7]==80&&nt[Ne+8]==69&&nt[Ne+9]==50&&nt[Ne+10]==46&&nt[Ne+11]==48&&nt[Ne+12]==3&&nt[Ne+13]==1&&nt[Ne+16]==0)Ne+=14,Kn=nt[Ne++]|nt[Ne++]<<8,Ne++;else for(Ne+=12;;){if(!((Pt=nt[Ne++])>=0))throw Error("Invalid block size");if(Pt===0)break;Ne+=Pt}break;case 249:if(nt[Ne++]!==4||nt[Ne+4]!==0)throw new Error("Invalid graphics extension block.");var Rr=nt[Ne++];Xr=nt[Ne++]|nt[Ne++]<<8,pn=nt[Ne++],(1&Rr)==0&&(pn=null),gr=Rr>>2&7,Ne++;break;case 254:for(;;){if(!((Pt=nt[Ne++])>=0))throw Error("Invalid block size");if(Pt===0)break;Ne+=Pt}break;default:throw new Error("Unknown graphic control label: 0x"+nt[Ne-1].toString(16))}break;case 44:var Pn=nt[Ne++]|nt[Ne++]<<8,an=nt[Ne++]|nt[Ne++]<<8,Ur=nt[Ne++]|nt[Ne++]<<8,ii=nt[Ne++]|nt[Ne++]<<8,_i=nt[Ne++],Gi=_i>>6&1,tn=1<<(7&_i)+1,Tn=xt,Vn=pt,Xt=!1;_i>>7&&(Xt=!0,Tn=Ne,Vn=tn,Ne+=3*tn);var It=Ne;for(Ne++;;){var Pt;if(!((Pt=nt[Ne++])>=0))throw Error("Invalid block size");if(Pt===0)break;Ne+=Pt}Zr.push({x:Pn,y:an,width:Ur,height:ii,has_local_palette:Xt,palette_offset:Tn,palette_size:Vn,data_offset:It,data_length:Ne-It,transparent_index:pn,interlaced:!!Gi,delay:Xr,disposal:gr});break;case 59:hr=!1;break;default:throw new Error("Unknown gif block: 0x"+nt[Ne-1].toString(16))}this.numFrames=function(){return Zr.length},this.loopCount=function(){return Kn},this.frameInfo=function(Kt){if(Kt<0||Kt>=Zr.length)throw new Error("Frame index out of range.");return Zr[Kt]},this.decodeAndBlitFrameBGRA=function(Kt,Gt){var Dt=this.frameInfo(Kt),lr=Dt.width*Dt.height,Ar=new Uint8Array(lr);Tt(nt,Dt.data_offset,Ar,lr);var yr=Dt.palette_offset,Mr=Dt.transparent_index;Mr===null&&(Mr=256);var zn=Dt.width,Rn=He-zn,di=zn,gn=4*(Dt.y*He+Dt.x),Br=4*((Dt.y+Dt.height)*He+Dt.x),_n=gn,Gn=4*Rn;Dt.interlaced===!0&&(Gn+=4*He*7);for(var Zn=8,ai=0,Ei=Ar.length;ai<Ei;++ai){var Ri=Ar[ai];if(di===0&&(di=zn,(_n+=Gn)>=Br&&(Gn=4*Rn+4*He*(Zn-1),_n=gn+(zn+Rn)*(Zn<<1),Zn>>=1)),Ri===Mr)_n+=4;else{var Di=nt[yr+3*Ri],oa=nt[yr+3*Ri+1],ma=nt[yr+3*Ri+2];Gt[_n++]=ma,Gt[_n++]=oa,Gt[_n++]=Di,Gt[_n++]=255}--di}},this.decodeAndBlitFrameRGBA=function(Kt,Gt){var Dt=this.frameInfo(Kt),lr=Dt.width*Dt.height,Ar=new Uint8Array(lr);Tt(nt,Dt.data_offset,Ar,lr);var yr=Dt.palette_offset,Mr=Dt.transparent_index;Mr===null&&(Mr=256);var zn=Dt.width,Rn=He-zn,di=zn,gn=4*(Dt.y*He+Dt.x),Br=4*((Dt.y+Dt.height)*He+Dt.x),_n=gn,Gn=4*Rn;Dt.interlaced===!0&&(Gn+=4*He*7);for(var Zn=8,ai=0,Ei=Ar.length;ai<Ei;++ai){var Ri=Ar[ai];if(di===0&&(di=zn,(_n+=Gn)>=Br&&(Gn=4*Rn+4*He*(Zn-1),_n=gn+(zn+Rn)*(Zn<<1),Zn>>=1)),Ri===Mr)_n+=4;else{var Di=nt[yr+3*Ri],oa=nt[yr+3*Ri+1],ma=nt[yr+3*Ri+2];Gt[_n++]=Di,Gt[_n++]=oa,Gt[_n++]=ma,Gt[_n++]=255}--di}}}function Tt(nt,Ne,He,Xe){for(var rt=nt[Ne++],Ze=1<<rt,st=Ze+1,xt=st+1,pt=rt+1,hr=(1<<pt)-1,Zr=0,Xr=0,pn=0,gr=nt[Ne++],Kn=new Int32Array(4096),Rr=null;;){for(;Zr<16&&gr!==0;)Xr|=nt[Ne++]<<Zr,Zr+=8,gr===1?gr=nt[Ne++]:--gr;if(Zr<pt)break;var Pn=Xr&hr;if(Xr>>=pt,Zr-=pt,Pn!==Ze){if(Pn===st)break;for(var an=Pn<xt?Pn:Rr,Ur=0,ii=an;ii>Ze;)ii=Kn[ii]>>8,++Ur;var _i=ii;if(pn+Ur+(an!==Pn?1:0)>Xe)return void d.log("Warning, gif stream longer than expected.");He[pn++]=_i;var Gi=pn+=Ur;for(an!==Pn&&(He[pn++]=_i),ii=an;Ur--;)ii=Kn[ii],He[--Gi]=255&ii,ii>>=8;Rr!==null&&xt<4096&&(Kn[xt++]=Rr<<8|_i,xt>=hr+1&&pt<12&&(++pt,hr=hr<<1|1)),Rr=Pn}else xt=st+1,hr=(1<<(pt=rt+1))-1,Rr=null}return pn!==Xe&&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(nt){var Ne,He,Xe,rt,Ze,st=Math.floor,xt=new Array(64),pt=new Array(64),hr=new Array(64),Zr=new Array(64),Xr=new Array(65535),pn=new Array(65535),gr=new Array(64),Kn=new Array(64),Rr=[],Pn=0,an=7,Ur=new Array(64),ii=new Array(64),_i=new Array(64),Gi=new Array(256),tn=new Array(2048),Tn=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Vn=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Xt=[0,1,2,3,4,5,6,7,8,9,10,11],It=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Pt=[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],Kt=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Gt=[0,1,2,3,4,5,6,7,8,9,10,11],Dt=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],lr=[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 Ar(gn,Br){for(var _n=0,Gn=0,Zn=new Array,ai=1;ai<=16;ai++){for(var Ei=1;Ei<=gn[ai];Ei++)Zn[Br[Gn]]=[],Zn[Br[Gn]][0]=_n,Zn[Br[Gn]][1]=ai,Gn++,_n++;_n*=2}return Zn}function yr(gn){for(var Br=gn[0],_n=gn[1]-1;_n>=0;)Br&1<<_n&&(Pn|=1<<an),_n--,--an<0&&(Pn==255?(Mr(255),Mr(0)):Mr(Pn),an=7,Pn=0)}function Mr(gn){Rr.push(gn)}function zn(gn){Mr(gn>>8&255),Mr(255&gn)}function Rn(gn,Br,_n,Gn,Zn){for(var ai,Ei=Zn[0],Ri=Zn[240],Di=function(ta,ra){var Ir,Sr,En,fr,kr,Vr,un,kn,_t,Or,Lr=0;for(_t=0;_t<8;++_t){Ir=ta[Lr],Sr=ta[Lr+1],En=ta[Lr+2],fr=ta[Lr+3],kr=ta[Lr+4],Vr=ta[Lr+5],un=ta[Lr+6];var en=Ir+(kn=ta[Lr+7]),Sn=Ir-kn,On=Sr+un,wn=Sr-un,$n=En+Vr,jn=En-Vr,pi=fr+kr,Mi=fr-kr,yi=en+pi,Oi=en-pi,zi=On+$n,ea=On-$n;ta[Lr]=yi+zi,ta[Lr+4]=yi-zi;var Xi=.707106781*(ea+Oi);ta[Lr+2]=Oi+Xi,ta[Lr+6]=Oi-Xi;var Wi=.382683433*((yi=Mi+jn)-(ea=wn+Sn)),ji=.5411961*yi+Wi,Ji=1.306562965*ea+Wi,ca=.707106781*(zi=jn+wn),Ca=Sn+ca,na=Sn-ca;ta[Lr+5]=na+ji,ta[Lr+3]=na-ji,ta[Lr+1]=Ca+Ji,ta[Lr+7]=Ca-Ji,Lr+=8}for(Lr=0,_t=0;_t<8;++_t){Ir=ta[Lr],Sr=ta[Lr+8],En=ta[Lr+16],fr=ta[Lr+24],kr=ta[Lr+32],Vr=ta[Lr+40],un=ta[Lr+48];var Pa=Ir+(kn=ta[Lr+56]),La=Ir-kn,va=Sr+un,ga=Sr-un,Oa=En+Vr,Aa=En-Vr,Xa=fr+kr,_a=fr-kr,Va=Pa+Xa,Pi=Pa-Xa,io=va+Oa,oo=va-Oa;ta[Lr]=Va+io,ta[Lr+32]=Va-io;var Qo=.707106781*(oo+Pi);ta[Lr+16]=Pi+Qo,ta[Lr+48]=Pi-Qo;var mo=.382683433*((Va=_a+Aa)-(oo=ga+La)),To=.5411961*Va+mo,ao=1.306562965*oo+mo,So=.707106781*(io=Aa+ga),bo=La+So,to=La-So;ta[Lr+40]=to+To,ta[Lr+24]=to-To,ta[Lr+8]=bo+ao,ta[Lr+56]=bo-ao,Lr++}for(_t=0;_t<64;++_t)Or=ta[_t]*ra[_t],gr[_t]=Or>0?Or+.5|0:Or-.5|0;return gr}(gn,Br),oa=0;oa<64;++oa)Kn[Tn[oa]]=Di[oa];var ma=Kn[0]-_n;_n=Kn[0],ma==0?yr(Gn[0]):(yr(Gn[pn[ai=32767+ma]]),yr(Xr[ai]));for(var aa=63;aa>0&&Kn[aa]==0;)aa--;if(aa==0)return yr(Ei),_n;for(var ba,Ai=1;Ai<=aa;){for(var Dn=Ai;Kn[Ai]==0&&Ai<=aa;)++Ai;var Bi=Ai-Dn;if(Bi>=16){ba=Bi>>4;for(var ha=1;ha<=ba;++ha)yr(Ri);Bi&=15}ai=32767+Kn[Ai],yr(Zn[(Bi<<4)+pn[ai]]),yr(Xr[ai]),Ai++}return aa!=63&&yr(Ei),_n}function di(gn){(gn=Math.min(Math.max(gn,1),100),Ze!=gn)&&(!function(Br){for(var _n=[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],Gn=0;Gn<64;Gn++){var Zn=st((_n[Gn]*Br+50)/100);Zn=Math.min(Math.max(Zn,1),255),xt[Tn[Gn]]=Zn}for(var ai=[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],Ei=0;Ei<64;Ei++){var Ri=st((ai[Ei]*Br+50)/100);Ri=Math.min(Math.max(Ri,1),255),pt[Tn[Ei]]=Ri}for(var Di=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],oa=0,ma=0;ma<8;ma++)for(var aa=0;aa<8;aa++)hr[oa]=1/(xt[Tn[oa]]*Di[ma]*Di[aa]*8),Zr[oa]=1/(pt[Tn[oa]]*Di[ma]*Di[aa]*8),oa++}(gn<50?Math.floor(5e3/gn):Math.floor(200-2*gn)),Ze=gn)}this.encode=function(gn,Br){Br&&di(Br),Rr=new Array,Pn=0,an=7,zn(65496),zn(65504),zn(16),Mr(74),Mr(70),Mr(73),Mr(70),Mr(0),Mr(1),Mr(1),Mr(0),zn(1),zn(1),Mr(0),Mr(0),function(){zn(65499),zn(132),Mr(0);for(var Sr=0;Sr<64;Sr++)Mr(xt[Sr]);Mr(1);for(var En=0;En<64;En++)Mr(pt[En])}(),function(Sr,En){zn(65472),zn(17),Mr(8),zn(En),zn(Sr),Mr(3),Mr(1),Mr(17),Mr(0),Mr(2),Mr(17),Mr(1),Mr(3),Mr(17),Mr(1)}(gn.width,gn.height),function(){zn(65476),zn(418),Mr(0);for(var Sr=0;Sr<16;Sr++)Mr(Vn[Sr+1]);for(var En=0;En<=11;En++)Mr(Xt[En]);Mr(16);for(var fr=0;fr<16;fr++)Mr(It[fr+1]);for(var kr=0;kr<=161;kr++)Mr(Pt[kr]);Mr(1);for(var Vr=0;Vr<16;Vr++)Mr(Kt[Vr+1]);for(var un=0;un<=11;un++)Mr(Gt[un]);Mr(17);for(var kn=0;kn<16;kn++)Mr(Dt[kn+1]);for(var _t=0;_t<=161;_t++)Mr(lr[_t])}(),zn(65498),zn(12),Mr(3),Mr(1),Mr(0),Mr(2),Mr(17),Mr(3),Mr(17),Mr(0),Mr(63),Mr(0);var _n=0,Gn=0,Zn=0;Pn=0,an=7,this.encode.displayName="_encode_";for(var ai,Ei,Ri,Di,oa,ma,aa,ba,Ai,Dn=gn.data,Bi=gn.width,ha=gn.height,ta=4*Bi,ra=0;ra<ha;){for(ai=0;ai<ta;){for(oa=ta*ra+ai,aa=-1,ba=0,Ai=0;Ai<64;Ai++)ma=oa+(ba=Ai>>3)*ta+(aa=4*(7&Ai)),ra+ba>=ha&&(ma-=ta*(ra+1+ba-ha)),ai+aa>=ta&&(ma-=ai+aa-ta+4),Ei=Dn[ma++],Ri=Dn[ma++],Di=Dn[ma++],Ur[Ai]=(tn[Ei]+tn[Ri+256>>0]+tn[Di+512>>0]>>16)-128,ii[Ai]=(tn[Ei+768>>0]+tn[Ri+1024>>0]+tn[Di+1280>>0]>>16)-128,_i[Ai]=(tn[Ei+1280>>0]+tn[Ri+1536>>0]+tn[Di+1792>>0]>>16)-128;_n=Rn(Ur,hr,_n,Ne,Xe),Gn=Rn(ii,Zr,Gn,He,rt),Zn=Rn(_i,Zr,Zn,He,rt),ai+=32}ra+=8}if(an>=0){var Ir=[];Ir[1]=an+1,Ir[0]=(1<<an+1)-1,yr(Ir)}return zn(65497),new Uint8Array(Rr)},nt=nt||50,function(){for(var gn=String.fromCharCode,Br=0;Br<256;Br++)Gi[Br]=gn(Br)}(),Ne=Ar(Vn,Xt),He=Ar(Kt,Gt),Xe=Ar(It,Pt),rt=Ar(Dt,lr),function(){for(var gn=1,Br=2,_n=1;_n<=15;_n++){for(var Gn=gn;Gn<Br;Gn++)pn[32767+Gn]=_n,Xr[32767+Gn]=[],Xr[32767+Gn][1]=_n,Xr[32767+Gn][0]=Gn;for(var Zn=-(Br-1);Zn<=-gn;Zn++)pn[32767+Zn]=_n,Xr[32767+Zn]=[],Xr[32767+Zn][1]=_n,Xr[32767+Zn][0]=Br-1+Zn;gn<<=1,Br<<=1}}(),function(){for(var gn=0;gn<256;gn++)tn[gn]=19595*gn,tn[gn+256>>0]=38470*gn,tn[gn+512>>0]=7471*gn+32768,tn[gn+768>>0]=-11059*gn,tn[gn+1024>>0]=-21709*gn,tn[gn+1280>>0]=32768*gn+8421375,tn[gn+1536>>0]=-27439*gn,tn[gn+1792>>0]=-5329*gn}(),di(nt)}/**
|
|
|
* @license
|
|
|
* Copyright (c) 2017 Aras Abbasi
|
|
|
*
|
|
|
* Licensed under the MIT License.
|
|
|
* http://opensource.org/licenses/mit-license
|
|
|
*/function Pr(nt,Ne){if(this.pos=0,this.buffer=nt,this.datav=new DataView(nt.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 $r(nt){function Ne(Vn){if(!Vn)throw Error("assert :P")}function He(Vn,Xt,It){for(var Pt=0;4>Pt;Pt++)if(Vn[Xt+Pt]!=It.charCodeAt(Pt))return!0;return!1}function Xe(Vn,Xt,It,Pt,Kt){for(var Gt=0;Gt<Kt;Gt++)Vn[Xt+Gt]=It[Pt+Gt]}function rt(Vn,Xt,It,Pt){for(var Kt=0;Kt<Pt;Kt++)Vn[Xt+Kt]=It}function Ze(Vn){return new Int32Array(Vn)}function st(Vn,Xt){for(var It=[],Pt=0;Pt<Vn;Pt++)It.push(new Xt);return It}function xt(Vn,Xt){var It=[];return function Pt(Kt,Gt,Dt){for(var lr=Dt[Gt],Ar=0;Ar<lr&&(Kt.push(Dt.length>Gt+1?[]:new Xt),!(Dt.length<Gt+1));Ar++)Pt(Kt[Ar],Gt+1,Dt)}(It,0,Vn),It}var pt=function(){var Xt=this;function It(Ee,Ye){for(var Et=1<<Ye-1>>>0;Ee&Et;)Et>>>=1;return Et?(Ee&Et-1)+Et:Ee}function Pt(Ee,Ye,Et,cr,Fr){Ne(!(cr%Et));do Ee[Ye+(cr-=Et)]=Fr;while(0<cr)}function Kt(Ee,Ye,Et,cr,Fr){if(Ne(2328>=Fr),512>=Fr)var sn=Ze(512);else if((sn=Ze(Fr))==null)return 0;return function(je,oe,Oe,$e,bt,Vt){var er,ir,zr=oe,hn=1<<Oe,Wr=Ze(16),jr=Ze(16);for(Ne(bt!=0),Ne($e!=null),Ne(je!=null),Ne(0<Oe),ir=0;ir<bt;++ir){if(15<$e[ir])return 0;++Wr[$e[ir]]}if(Wr[0]==bt)return 0;for(jr[1]=0,er=1;15>er;++er){if(Wr[er]>1<<er)return 0;jr[er+1]=jr[er]+Wr[er]}for(ir=0;ir<bt;++ir)er=$e[ir],0<$e[ir]&&(Vt[jr[er]++]=ir);if(jr[15]==1)return($e=new Gt).g=0,$e.value=Vt[0],Pt(je,zr,1,hn,$e),hn;var ln,yn=-1,Wn=hn-1,Ii=0,ki=1,da=1,$i=1<<Oe;for(ir=0,er=1,bt=2;er<=Oe;++er,bt<<=1){if(ki+=da<<=1,0>(da-=Wr[er]))return 0;for(;0<Wr[er];--Wr[er])($e=new Gt).g=er,$e.value=Vt[ir++],Pt(je,zr+Ii,bt,$i,$e),Ii=It(Ii,er)}for(er=Oe+1,bt=2;15>=er;++er,bt<<=1){if(ki+=da<<=1,0>(da-=Wr[er]))return 0;for(;0<Wr[er];--Wr[er]){if($e=new Gt,(Ii&Wn)!=yn){for(zr+=$i,ln=1<<(yn=er)-Oe;15>yn&&!(0>=(ln-=Wr[yn]));)++yn,ln<<=1;hn+=$i=1<<(ln=yn-Oe),je[oe+(yn=Ii&Wn)].g=ln+Oe,je[oe+yn].value=zr-oe-yn}$e.g=er-Oe,$e.value=Vt[ir++],Pt(je,zr+(Ii>>Oe),bt,$i,$e),Ii=It(Ii,er)}}return ki!=2*jr[15]-1?0:hn}(Ee,Ye,Et,cr,Fr,sn)}function Gt(){this.value=this.g=0}function Dt(){this.value=this.g=0}function lr(){this.G=st(5,Gt),this.H=Ze(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=st(vo,Dt)}function Ar(Ee,Ye,Et,cr){Ne(Ee!=null),Ne(Ye!=null),Ne(2147483648>cr),Ee.Ca=254,Ee.I=0,Ee.b=-8,Ee.Ka=0,Ee.oa=Ye,Ee.pa=Et,Ee.Jd=Ye,Ee.Yc=Et+cr,Ee.Zc=4<=cr?Et+cr-4+1:Et,Ei(Ee)}function yr(Ee,Ye){for(var Et=0;0<Ye--;)Et|=Di(Ee,128)<<Ye;return Et}function Mr(Ee,Ye){var Et=yr(Ee,Ye);return Ri(Ee)?-Et:Et}function zn(Ee,Ye,Et,cr){var Fr,sn=0;for(Ne(Ee!=null),Ne(Ye!=null),Ne(4294967288>cr),Ee.Sb=cr,Ee.Ra=0,Ee.u=0,Ee.h=0,4<cr&&(cr=4),Fr=0;Fr<cr;++Fr)sn+=Ye[Et+Fr]<<8*Fr;Ee.Ra=sn,Ee.bb=cr,Ee.oa=Ye,Ee.pa=Et}function Rn(Ee){for(;8<=Ee.u&&Ee.bb<Ee.Sb;)Ee.Ra>>>=8,Ee.Ra+=Ee.oa[Ee.pa+Ee.bb]<<gs-8>>>0,++Ee.bb,Ee.u-=8;Gn(Ee)&&(Ee.h=1,Ee.u=0)}function di(Ee,Ye){if(Ne(0<=Ye),!Ee.h&&Ye<=rl){var Et=_n(Ee)&Ms[Ye];return Ee.u+=Ye,Rn(Ee),Et}return Ee.h=1,Ee.u=0}function gn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Br(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function _n(Ee){return Ee.Ra>>>(Ee.u&gs-1)>>>0}function Gn(Ee){return Ne(Ee.bb<=Ee.Sb),Ee.h||Ee.bb==Ee.Sb&&Ee.u>gs}function Zn(Ee,Ye){Ee.u=Ye,Ee.h=Gn(Ee)}function ai(Ee){Ee.u>=Ra&&(Ne(Ee.u>=Ra),Rn(Ee))}function Ei(Ee){Ne(Ee!=null&&Ee.oa!=null),Ee.pa<Ee.Zc?(Ee.I=(Ee.oa[Ee.pa++]|Ee.I<<8)>>>0,Ee.b+=8):(Ne(Ee!=null&&Ee.oa!=null),Ee.pa<Ee.Yc?(Ee.b+=8,Ee.I=Ee.oa[Ee.pa++]|Ee.I<<8):Ee.Ka?Ee.b=0:(Ee.I<<=8,Ee.b+=8,Ee.Ka=1))}function Ri(Ee){return yr(Ee,1)}function Di(Ee,Ye){var Et=Ee.Ca;0>Ee.b&&Ei(Ee);var cr=Ee.b,Fr=Et*Ye>>>8,sn=(Ee.I>>>cr>Fr)+0;for(sn?(Et-=Fr,Ee.I-=Fr+1<<cr>>>0):Et=Fr+1,cr=Et,Fr=0;256<=cr;)Fr+=8,cr>>=8;return cr=7^Fr+dl[cr],Ee.b-=cr,Ee.Ca=(Et<<cr)-1,sn}function oa(Ee,Ye,Et){Ee[Ye+0]=Et>>24&255,Ee[Ye+1]=Et>>16&255,Ee[Ye+2]=Et>>8&255,Ee[Ye+3]=Et>>0&255}function ma(Ee,Ye){return Ee[Ye+0]<<0|Ee[Ye+1]<<8}function aa(Ee,Ye){return ma(Ee,Ye)|Ee[Ye+2]<<16}function ba(Ee,Ye){return ma(Ee,Ye)|ma(Ee,Ye+2)<<16}function Ai(Ee,Ye){var Et=1<<Ye;return Ne(Ee!=null),Ne(0<Ye),Ee.X=Ze(Et),Ee.X==null?0:(Ee.Mb=32-Ye,Ee.Xa=Ye,1)}function Dn(Ee,Ye){Ne(Ee!=null),Ne(Ye!=null),Ne(Ee.Xa==Ye.Xa),Xe(Ye.X,0,Ee.X,0,1<<Ye.Xa)}function Bi(){this.X=[],this.Xa=this.Mb=0}function ha(Ee,Ye,Et,cr){Ne(Et!=null),Ne(cr!=null);var Fr=Et[0],sn=cr[0];return Fr==0&&(Fr=(Ee*sn+Ye/2)/Ye),sn==0&&(sn=(Ye*Fr+Ee/2)/Ee),0>=Fr||0>=sn?0:(Et[0]=Fr,cr[0]=sn,1)}function ta(Ee,Ye){return Ee+(1<<Ye)-1>>>Ye}function ra(Ee,Ye){return((4278255360&Ee)+(4278255360&Ye)>>>0&4278255360)+((16711935&Ee)+(16711935&Ye)>>>0&16711935)>>>0}function Ir(Ee,Ye){Xt[Ye]=function(Et,cr,Fr,sn,je,oe,Oe){var $e;for($e=0;$e<je;++$e){var bt=Xt[Ee](oe[Oe+$e-1],Fr,sn+$e);oe[Oe+$e]=ra(Et[cr+$e],bt)}}}function Sr(){this.ud=this.hd=this.jd=0}function En(Ee,Ye){return((4278124286&(Ee^Ye))>>>1)+(Ee&Ye)>>>0}function fr(Ee){return 0<=Ee&&256>Ee?Ee:0>Ee?0:255<Ee?255:void 0}function kr(Ee,Ye){return fr(Ee+(Ee-Ye+.5>>1))}function Vr(Ee,Ye,Et){return Math.abs(Ye-Et)-Math.abs(Ee-Et)}function un(Ee,Ye,Et,cr,Fr,sn,je){for(cr=sn[je-1],Et=0;Et<Fr;++Et)sn[je+Et]=cr=ra(Ee[Ye+Et],cr)}function kn(Ee,Ye,Et,cr,Fr){var sn;for(sn=0;sn<Et;++sn){var je=Ee[Ye+sn],oe=je>>8&255,Oe=16711935&(Oe=(Oe=16711935&je)+((oe<<16)+oe));cr[Fr+sn]=(4278255360&je)+Oe>>>0}}function _t(Ee,Ye){Ye.jd=Ee>>0&255,Ye.hd=Ee>>8&255,Ye.ud=Ee>>16&255}function Or(Ee,Ye,Et,cr,Fr,sn){var je;for(je=0;je<cr;++je){var oe=Ye[Et+je],Oe=oe>>>8,$e=oe,bt=255&(bt=(bt=oe>>>16)+((Ee.jd<<24>>24)*(Oe<<24>>24)>>>5));$e=255&($e=($e=$e+((Ee.hd<<24>>24)*(Oe<<24>>24)>>>5))+((Ee.ud<<24>>24)*(bt<<24>>24)>>>5)),Fr[sn+je]=(4278255360&oe)+(bt<<16)+$e}}function Lr(Ee,Ye,Et,cr,Fr){Xt[Ye]=function(sn,je,oe,Oe,$e,bt,Vt,er,ir){for(Oe=Vt;Oe<er;++Oe)for(Vt=0;Vt<ir;++Vt)$e[bt++]=Fr(oe[cr(sn[je++])])},Xt[Ee]=function(sn,je,oe,Oe,$e,bt,Vt){var er=8>>sn.b,ir=sn.Ea,zr=sn.K[0],hn=sn.w;if(8>er)for(sn=(1<<sn.b)-1,hn=(1<<er)-1;je<oe;++je){var Wr,jr=0;for(Wr=0;Wr<ir;++Wr)Wr&sn||(jr=cr(Oe[$e++])),bt[Vt++]=Fr(zr[jr&hn]),jr>>=er}else Xt["VP8LMapColor"+Et](Oe,$e,zr,hn,bt,Vt,je,oe,ir)}}function en(Ee,Ye,Et,cr,Fr){for(Et=Ye+Et;Ye<Et;){var sn=Ee[Ye++];cr[Fr++]=sn>>16&255,cr[Fr++]=sn>>8&255,cr[Fr++]=sn>>0&255}}function Sn(Ee,Ye,Et,cr,Fr){for(Et=Ye+Et;Ye<Et;){var sn=Ee[Ye++];cr[Fr++]=sn>>16&255,cr[Fr++]=sn>>8&255,cr[Fr++]=sn>>0&255,cr[Fr++]=sn>>24&255}}function On(Ee,Ye,Et,cr,Fr){for(Et=Ye+Et;Ye<Et;){var sn=(je=Ee[Ye++])>>16&240|je>>12&15,je=je>>0&240|je>>28&15;cr[Fr++]=sn,cr[Fr++]=je}}function wn(Ee,Ye,Et,cr,Fr){for(Et=Ye+Et;Ye<Et;){var sn=(je=Ee[Ye++])>>16&248|je>>13&7,je=je>>5&224|je>>3&31;cr[Fr++]=sn,cr[Fr++]=je}}function $n(Ee,Ye,Et,cr,Fr){for(Et=Ye+Et;Ye<Et;){var sn=Ee[Ye++];cr[Fr++]=sn>>0&255,cr[Fr++]=sn>>8&255,cr[Fr++]=sn>>16&255}}function jn(Ee,Ye,Et,cr,Fr,sn){if(sn==0)for(Et=Ye+Et;Ye<Et;)oa(cr,((sn=Ee[Ye++])[0]>>24|sn[1]>>8&65280|sn[2]<<8&16711680|sn[3]<<24)>>>0),Fr+=32;else Xe(cr,Fr,Ee,Ye,Et)}function pi(Ee,Ye){Xt[Ye][0]=Xt[Ee+"0"],Xt[Ye][1]=Xt[Ee+"1"],Xt[Ye][2]=Xt[Ee+"2"],Xt[Ye][3]=Xt[Ee+"3"],Xt[Ye][4]=Xt[Ee+"4"],Xt[Ye][5]=Xt[Ee+"5"],Xt[Ye][6]=Xt[Ee+"6"],Xt[Ye][7]=Xt[Ee+"7"],Xt[Ye][8]=Xt[Ee+"8"],Xt[Ye][9]=Xt[Ee+"9"],Xt[Ye][10]=Xt[Ee+"10"],Xt[Ye][11]=Xt[Ee+"11"],Xt[Ye][12]=Xt[Ee+"12"],Xt[Ye][13]=Xt[Ee+"13"],Xt[Ye][14]=Xt[Ee+"0"],Xt[Ye][15]=Xt[Ee+"0"]}function Mi(Ee){return Ee==Lu||Ee==zl||Ee==ru||Ee==ou}function yi(){this.eb=[],this.size=this.A=this.fb=0}function Oi(){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 zi(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new yi,this.f.kb=new Oi,this.sd=null}function ea(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Xi(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Wi(Ee){return alert("todo:WebPSamplerProcessPlane"),Ee.T}function ji(Ee,Ye){var Et=Ee.T,cr=Ye.ba.f.RGBA,Fr=cr.eb,sn=cr.fb+Ee.ka*cr.A,je=Ve[Ye.ba.S],oe=Ee.y,Oe=Ee.O,$e=Ee.f,bt=Ee.N,Vt=Ee.ea,er=Ee.W,ir=Ye.cc,zr=Ye.dc,hn=Ye.Mc,Wr=Ye.Nc,jr=Ee.ka,ln=Ee.ka+Ee.T,yn=Ee.U,Wn=yn+1>>1;for(jr==0?je(oe,Oe,null,null,$e,bt,Vt,er,$e,bt,Vt,er,Fr,sn,null,null,yn):(je(Ye.ec,Ye.fc,oe,Oe,ir,zr,hn,Wr,$e,bt,Vt,er,Fr,sn-cr.A,Fr,sn,yn),++Et);jr+2<ln;jr+=2)ir=$e,zr=bt,hn=Vt,Wr=er,bt+=Ee.Rc,er+=Ee.Rc,sn+=2*cr.A,je(oe,(Oe+=2*Ee.fa)-Ee.fa,oe,Oe,ir,zr,hn,Wr,$e,bt,Vt,er,Fr,sn-cr.A,Fr,sn,yn);return Oe+=Ee.fa,Ee.j+ln<Ee.o?(Xe(Ye.ec,Ye.fc,oe,Oe,yn),Xe(Ye.cc,Ye.dc,$e,bt,Wn),Xe(Ye.Mc,Ye.Nc,Vt,er,Wn),Et--):1&ln||je(oe,Oe,null,null,$e,bt,Vt,er,$e,bt,Vt,er,Fr,sn+cr.A,null,null,yn),Et}function Ji(Ee,Ye,Et){var cr=Ee.F,Fr=[Ee.J];if(cr!=null){var sn=Ee.U,je=Ye.ba.S,oe=je==Ol||je==ru;Ye=Ye.ba.f.RGBA;var Oe=[0],$e=Ee.ka;Oe[0]=Ee.T,Ee.Kb&&($e==0?--Oe[0]:(--$e,Fr[0]-=Ee.width),Ee.j+Ee.ka+Ee.T==Ee.o&&(Oe[0]=Ee.o-Ee.j-$e));var bt=Ye.eb;$e=Ye.fb+$e*Ye.A,Ee=Nl(cr,Fr[0],Ee.width,sn,Oe,bt,$e+(oe?0:3),Ye.A),Ne(Et==Oe),Ee&&Mi(je)&&Wl(bt,$e,oe,sn,Oe,Ye.A)}return 0}function ca(Ee){var Ye=Ee.ma,Et=Ye.ba.S,cr=11>Et,Fr=Et==Su||Et==Au||Et==Ol||Et==cu||Et==12||Mi(Et);if(Ye.memory=null,Ye.Ib=null,Ye.Jb=null,Ye.Nd=null,!As(Ye.Oa,Ee,Fr?11:12))return 0;if(Fr&&Mi(Et)&&Qe(),Ee.da)alert("todo:use_scaling");else{if(cr){if(Ye.Ib=Wi,Ee.Kb){if(Et=Ee.U+1>>1,Ye.memory=Ze(Ee.U+2*Et),Ye.memory==null)return 0;Ye.ec=Ye.memory,Ye.fc=0,Ye.cc=Ye.ec,Ye.dc=Ye.fc+Ee.U,Ye.Mc=Ye.cc,Ye.Nc=Ye.dc+Et,Ye.Ib=ji,Qe()}}else alert("todo:EmitYUV");Fr&&(Ye.Jb=Ji,cr&&xe())}if(cr&&!Zi){for(Ee=0;256>Ee;++Ee)ka[Ee]=89858*(Ee-128)+Nn>>Cn,Sa[Ee]=-22014*(Ee-128)+Nn,Ba[Ee]=-45773*(Ee-128),Ga[Ee]=113618*(Ee-128)+Nn>>Cn;for(Ee=Jn;Ee<bi;++Ee)Ye=76283*(Ee-16)+Nn>>Cn,Go[Ee-Jn]=_o(Ye,255),bs[Ee-Jn]=_o(Ye+8>>4,15);Zi=1}return 1}function Ca(Ee){var Ye=Ee.ma,Et=Ee.U,cr=Ee.T;return Ne(!(1&Ee.ka)),0>=Et||0>=cr?0:(Et=Ye.Ib(Ee,Ye),Ye.Jb!=null&&Ye.Jb(Ee,Ye,Et),Ye.Dc+=Et,1)}function na(Ee){Ee.ma.memory=null}function Pa(Ee,Ye,Et,cr){return di(Ee,8)!=47?0:(Ye[0]=di(Ee,14)+1,Et[0]=di(Ee,14)+1,cr[0]=di(Ee,1),di(Ee,3)!=0?0:!Ee.h)}function La(Ee,Ye){if(4>Ee)return Ee+1;var Et=Ee-2>>1;return(2+(1&Ee)<<Et)+di(Ye,Et)+1}function va(Ee,Ye){return 120<Ye?Ye-120:1<=(Et=((Et=yu[Ye-1])>>4)*Ee+(8-(15&Et)))?Et:1;var Et}function ga(Ee,Ye,Et){var cr=_n(Et),Fr=Ee[Ye+=255&cr].g-8;return 0<Fr&&(Zn(Et,Et.u+8),cr=_n(Et),Ye+=Ee[Ye].value,Ye+=cr&(1<<Fr)-1),Zn(Et,Et.u+Ee[Ye].g),Ee[Ye].value}function Oa(Ee,Ye,Et){return Et.g+=Ee.g,Et.value+=Ee.value<<Ye>>>0,Ne(8>=Et.g),Ee.g}function Aa(Ee,Ye,Et){var cr=Ee.xc;return Ne((Ye=cr==0?0:Ee.vc[Ee.md*(Et>>cr)+(Ye>>cr)])<Ee.Wb),Ee.Ya[Ye]}function Xa(Ee,Ye,Et,cr){var Fr=Ee.ab,sn=Ee.c*Ye,je=Ee.C;Ye=je+Ye;var oe=Et,Oe=cr;for(cr=Ee.Ta,Et=Ee.Ua;0<Fr--;){var $e=Ee.gc[Fr],bt=je,Vt=Ye,er=oe,ir=Oe,zr=(Oe=cr,oe=Et,$e.Ea);switch(Ne(bt<Vt),Ne(Vt<=$e.nc),$e.hc){case 2:Os(er,ir,(Vt-bt)*zr,Oe,oe);break;case 0:var hn=bt,Wr=Vt,jr=Oe,ln=oe,yn=($i=$e).Ea;hn==0&&(fl(er,ir,null,null,1,jr,ln),un(er,ir+1,0,0,yn-1,jr,ln+1),ir+=yn,ln+=yn,++hn);for(var Wn=1<<$i.b,Ii=Wn-1,ki=ta(yn,$i.b),da=$i.K,$i=$i.w+(hn>>$i.b)*ki;hn<Wr;){var Qa=da,ya=$i,fo=1;for(Us(er,ir,jr,ln-yn,1,jr,ln);fo<yn;){var za=(fo&~Ii)+Wn;za>yn&&(za=yn),(0,Ts[Qa[ya++]>>8&15])(er,ir+ +fo,jr,ln+fo-yn,za-fo,jr,ln+fo),fo=za}ir+=yn,ln+=yn,++hn&Ii||($i+=ki)}Vt!=$e.nc&&Xe(Oe,oe-zr,Oe,oe+(Vt-bt-1)*zr,zr);break;case 1:for(zr=er,Wr=ir,yn=(er=$e.Ea)-(ln=er&~(jr=(ir=1<<$e.b)-1)),hn=ta(er,$e.b),Wn=$e.K,$e=$e.w+(bt>>$e.b)*hn;bt<Vt;){for(Ii=Wn,ki=$e,da=new Sr,$i=Wr+ln,Qa=Wr+er;Wr<$i;)_t(Ii[ki++],da),Ws(da,zr,Wr,ir,Oe,oe),Wr+=ir,oe+=ir;Wr<Qa&&(_t(Ii[ki++],da),Ws(da,zr,Wr,yn,Oe,oe),Wr+=yn,oe+=yn),++bt&jr||($e+=hn)}break;case 3:if(er==Oe&&ir==oe&&0<$e.b){for(Wr=Oe,er=zr=oe+(Vt-bt)*zr-(ln=(Vt-bt)*ta($e.Ea,$e.b)),ir=Oe,jr=oe,hn=[],ln=(yn=ln)-1;0<=ln;--ln)hn[ln]=ir[jr+ln];for(ln=yn-1;0<=ln;--ln)Wr[er+ln]=hn[ln];Xs($e,bt,Vt,Oe,zr,Oe,oe)}else Xs($e,bt,Vt,er,ir,Oe,oe)}oe=cr,Oe=Et}Oe!=Et&&Xe(cr,Et,oe,Oe,sn)}function _a(Ee,Ye){var Et=Ee.V,cr=Ee.Ba+Ee.c*Ee.C,Fr=Ye-Ee.C;if(Ne(Ye<=Ee.l.o),Ne(16>=Fr),0<Fr){var sn=Ee.l,je=Ee.Ta,oe=Ee.Ua,Oe=sn.width;if(Xa(Ee,Fr,Et,cr),Fr=oe=[oe],Ne((Et=Ee.C)<(cr=Ye)),Ne(sn.v<sn.va),cr>sn.o&&(cr=sn.o),Et<sn.j){var $e=sn.j-Et;Et=sn.j,Fr[0]+=$e*Oe}if(Et>=cr?Et=0:(Fr[0]+=4*sn.v,sn.ka=Et-sn.j,sn.U=sn.va-sn.v,sn.T=cr-Et,Et=1),Et){if(oe=oe[0],11>(Et=Ee.ca).S){var bt=Et.f.RGBA,Vt=(cr=Et.S,Fr=sn.U,sn=sn.T,$e=bt.eb,bt.A),er=sn;for(bt=bt.fb+Ee.Ma*bt.A;0<er--;){var ir=je,zr=oe,hn=Fr,Wr=$e,jr=bt;switch(cr){case Sl:Tl(ir,zr,hn,Wr,jr);break;case Su:pl(ir,zr,hn,Wr,jr);break;case Lu:pl(ir,zr,hn,Wr,jr),Wl(Wr,jr,0,hn,1,0);break;case vu:qo(ir,zr,hn,Wr,jr);break;case Au:jn(ir,zr,hn,Wr,jr,1);break;case zl:jn(ir,zr,hn,Wr,jr,1),Wl(Wr,jr,0,hn,1,0);break;case Ol:jn(ir,zr,hn,Wr,jr,0);break;case ru:jn(ir,zr,hn,Wr,jr,0),Wl(Wr,jr,1,hn,1,0);break;case cu:jo(ir,zr,hn,Wr,jr);break;case ou:jo(ir,zr,hn,Wr,jr),au(Wr,jr,hn,1,0);break;case du:yo(ir,zr,hn,Wr,jr);break;default:Ne(0)}oe+=Oe,bt+=Vt}Ee.Ma+=sn}else alert("todo:EmitRescaledRowsYUVA");Ne(Ee.Ma<=Et.height)}}Ee.C=Ye,Ne(Ee.C<=Ee.i)}function Va(Ee){var Ye;if(0<Ee.ua)return 0;for(Ye=0;Ye<Ee.Wb;++Ye){var Et=Ee.Ya[Ye].G,cr=Ee.Ya[Ye].H;if(0<Et[1][cr[1]+0].g||0<Et[2][cr[2]+0].g||0<Et[3][cr[3]+0].g)return 0}return 1}function Pi(Ee,Ye,Et,cr,Fr,sn){if(Ee.Z!=0){var je=Ee.qd,oe=Ee.rd;for(Ne(Te[Ee.Z]!=null);Ye<Et;++Ye)Te[Ee.Z](je,oe,cr,Fr,cr,Fr,sn),je=cr,oe=Fr,Fr+=sn;Ee.qd=je,Ee.rd=oe}}function io(Ee,Ye){var Et=Ee.l.ma,cr=Et.Z==0||Et.Z==1?Ee.l.j:Ee.C;if(cr=Ee.C<cr?cr:Ee.C,Ne(Ye<=Ee.l.o),Ye>cr){var Fr=Ee.l.width,sn=Et.ca,je=Et.tb+Fr*cr,oe=Ee.V,Oe=Ee.Ba+Ee.c*cr,$e=Ee.gc;Ne(Ee.ab==1),Ne($e[0].hc==3),Ul($e[0],cr,Ye,oe,Oe,sn,je),Pi(Et,cr,Ye,sn,je,Fr)}Ee.C=Ee.Ma=Ye}function oo(Ee,Ye,Et,cr,Fr,sn,je){var oe=Ee.$/cr,Oe=Ee.$%cr,$e=Ee.m,bt=Ee.s,Vt=Et+Ee.$,er=Vt;Fr=Et+cr*Fr;var ir=Et+cr*sn,zr=280+bt.ua,hn=Ee.Pb?oe:16777216,Wr=0<bt.ua?bt.Wa:null,jr=bt.wc,ln=Vt<ir?Aa(bt,Oe,oe):null;Ne(Ee.C<sn),Ne(ir<=Fr);var yn=!1;e:for(;;){for(;yn||Vt<ir;){var Wn=0;if(oe>=hn){var Ii=Vt-Et;Ne((hn=Ee).Pb),hn.wd=hn.m,hn.xd=Ii,0<hn.s.ua&&Dn(hn.s.Wa,hn.s.vb),hn=oe+bu}if(Oe&jr||(ln=Aa(bt,Oe,oe)),Ne(ln!=null),ln.Qb&&(Ye[Vt]=ln.qb,yn=!0),!yn)if(ai($e),ln.jc){Wn=$e,Ii=Ye;var ki=Vt,da=ln.pd[_n(Wn)&vo-1];Ne(ln.jc),256>da.g?(Zn(Wn,Wn.u+da.g),Ii[ki]=da.value,Wn=0):(Zn(Wn,Wn.u+da.g-256),Ne(256<=da.value),Wn=da.value),Wn==0&&(yn=!0)}else Wn=ga(ln.G[0],ln.H[0],$e);if($e.h)break;if(yn||256>Wn){if(!yn)if(ln.nd)Ye[Vt]=(ln.qb|Wn<<8)>>>0;else{if(ai($e),yn=ga(ln.G[1],ln.H[1],$e),ai($e),Ii=ga(ln.G[2],ln.H[2],$e),ki=ga(ln.G[3],ln.H[3],$e),$e.h)break;Ye[Vt]=(ki<<24|yn<<16|Wn<<8|Ii)>>>0}if(yn=!1,++Vt,++Oe>=cr&&(Oe=0,++oe,je!=null&&oe<=sn&&!(oe%16)&&je(Ee,oe),Wr!=null))for(;er<Vt;)Wn=Ye[er++],Wr.X[(506832829*Wn&4294967295)>>>Wr.Mb]=Wn}else if(280>Wn){if(Wn=La(Wn-256,$e),Ii=ga(ln.G[4],ln.H[4],$e),ai($e),Ii=va(cr,Ii=La(Ii,$e)),$e.h)break;if(Vt-Et<Ii||Fr-Vt<Wn)break e;for(ki=0;ki<Wn;++ki)Ye[Vt+ki]=Ye[Vt+ki-Ii];for(Vt+=Wn,Oe+=Wn;Oe>=cr;)Oe-=cr,++oe,je!=null&&oe<=sn&&!(oe%16)&&je(Ee,oe);if(Ne(Vt<=Fr),Oe&jr&&(ln=Aa(bt,Oe,oe)),Wr!=null)for(;er<Vt;)Wn=Ye[er++],Wr.X[(506832829*Wn&4294967295)>>>Wr.Mb]=Wn}else{if(!(Wn<zr))break e;for(yn=Wn-280,Ne(Wr!=null);er<Vt;)Wn=Ye[er++],Wr.X[(506832829*Wn&4294967295)>>>Wr.Mb]=Wn;Wn=Vt,Ne(!(yn>>>(Ii=Wr).Xa)),Ye[Wn]=Ii.X[yn],yn=!0}yn||Ne($e.h==Gn($e))}if(Ee.Pb&&$e.h&&Vt<Fr)Ne(Ee.m.h),Ee.a=5,Ee.m=Ee.wd,Ee.$=Ee.xd,0<Ee.s.ua&&Dn(Ee.s.vb,Ee.s.Wa);else{if($e.h)break e;je!=null&&je(Ee,oe>sn?sn:oe),Ee.a=0,Ee.$=Vt-Et}return 1}return Ee.a=3,0}function Qo(Ee){Ne(Ee!=null),Ee.vc=null,Ee.yc=null,Ee.Ya=null;var Ye=Ee.Wa;Ye!=null&&(Ye.X=null),Ee.vb=null,Ne(Ee!=null)}function mo(){var Ee=new No;return Ee==null?null:(Ee.a=0,Ee.xb=ve,pi("Predictor","VP8LPredictors"),pi("Predictor","VP8LPredictors_C"),pi("PredictorAdd","VP8LPredictorsAdd"),pi("PredictorAdd","VP8LPredictorsAdd_C"),Os=kn,Ws=Or,Tl=en,pl=Sn,jo=On,yo=wn,qo=$n,Xt.VP8LMapColor32b=Ql,Xt.VP8LMapColor8b=wl,Ee)}function To(Ee,Ye,Et,cr,Fr){var sn=1,je=[Ee],oe=[Ye],Oe=cr.m,$e=cr.s,bt=null,Vt=0;e:for(;;){if(Et)for(;sn&&di(Oe,1);){var er=je,ir=oe,zr=cr,hn=1,Wr=zr.m,jr=zr.gc[zr.ab],ln=di(Wr,2);if(zr.Oc&1<<ln)sn=0;else{switch(zr.Oc|=1<<ln,jr.hc=ln,jr.Ea=er[0],jr.nc=ir[0],jr.K=[null],++zr.ab,Ne(4>=zr.ab),ln){case 0:case 1:jr.b=di(Wr,3)+2,hn=To(ta(jr.Ea,jr.b),ta(jr.nc,jr.b),0,zr,jr.K),jr.K=jr.K[0];break;case 3:var yn,Wn=di(Wr,8)+1,Ii=16<Wn?0:4<Wn?1:2<Wn?2:3;if(er[0]=ta(jr.Ea,Ii),jr.b=Ii,yn=hn=To(Wn,1,0,zr,jr.K)){var ki,da=Wn,$i=jr,Qa=1<<(8>>$i.b),ya=Ze(Qa);if(ya==null)yn=0;else{var fo=$i.K[0],za=$i.w;for(ya[0]=$i.K[0][0],ki=1;ki<1*da;++ki)ya[ki]=ra(fo[za+ki],ya[ki-1]);for(;ki<4*Qa;++ki)ya[ki]=0;$i.K[0]=null,$i.K[0]=ya,yn=1}}hn=yn;break;case 2:break;default:Ne(0)}sn=hn}}if(je=je[0],oe=oe[0],sn&&di(Oe,1)&&!(sn=1<=(Vt=di(Oe,4))&&11>=Vt)){cr.a=3;break e}var Xo;if(Xo=sn)t:{var ls,N,U,ie=cr,ue=je,ge=oe,We=Vt,Lt=Et,nr=ie.m,br=ie.s,_r=[null],Bn=1,ti=0,Si=xu[We];r:for(;;){if(Lt&&di(nr,1)){var Ci=di(nr,3)+2,la=ta(ue,Ci),Ta=ta(ge,Ci),Wa=la*Ta;if(!To(la,Ta,0,ie,_r))break r;for(_r=_r[0],br.xc=Ci,ls=0;ls<Wa;++ls){var Ma=_r[ls]>>8&65535;_r[ls]=Ma,Ma>=Bn&&(Bn=Ma+1)}}if(nr.h)break r;for(N=0;5>N;++N){var Na=Du[N];!N&&0<We&&(Na+=1<<We),ti<Na&&(ti=Na)}var qa=st(Bn*Si,Gt),ho=Bn,ns=st(ho,lr);if(ns==null)var Mo=null;else Ne(65536>=ho),Mo=ns;var Ss=Ze(ti);if(Mo==null||Ss==null||qa==null){ie.a=1;break r}var Zs=qa;for(ls=U=0;ls<Bn;++ls){var yl=Mo[ls],ul=yl.G,Pl=yl.H,Vl=0,Il=1,Gl=0;for(N=0;5>N;++N){Na=Du[N],ul[N]=Zs,Pl[N]=U,!N&&0<We&&(Na+=1<<We);i:{var Fl,Ja=Na,vl=ie,gl=Ss,El=Zs,Bu=U,Ks=0,vs=vl.m,lu=di(vs,1);if(rt(gl,0,0,Ja),lu){var Kl=di(vs,1)+1,Uu=di(vs,1),Eu=di(vs,Uu==0?1:8);gl[Eu]=1,Kl==2&&(gl[Eu=di(vs,8)]=1);var uu=1}else{var ku=Ze(19),Yl=di(vs,4)+4;if(19<Yl){vl.a=3;var Tu=0;break i}for(Fl=0;Fl<Yl;++Fl)ku[Zl[Fl]]=di(vs,3);var Vu=void 0,Ju=void 0,vc=vl,Ac=ku,tc=Ja,yc=gl,sc=0,ju=vc.m,hc=8,bc=st(128,Gt);n:for(;Kt(bc,0,7,Ac,19);){if(di(ju,1)){var Tc=2+2*di(ju,3);if((Vu=2+di(ju,Tc))>tc)break n}else Vu=tc;for(Ju=0;Ju<tc&&Vu--;){ai(ju);var wc=bc[0+(127&_n(ju))];Zn(ju,ju.u+wc.g);var Pu=wc.value;if(16>Pu)yc[Ju++]=Pu,Pu!=0&&(hc=Pu);else{var Cu=Pu==16,fc=Pu-16,lc=Jl[fc],Sc=di(ju,su[fc])+lc;if(Ju+Sc>tc)break n;for(var Cc=Cu?hc:0;0<Sc--;)yc[Ju++]=Cc}}sc=1;break n}sc||(vc.a=3),uu=sc}(uu=uu&&!vs.h)&&(Ks=Kt(El,Bu,8,gl,Ja)),uu&&Ks!=0?Tu=Ks:(vl.a=3,Tu=0)}if(Tu==0)break r;if(Il&&Ru[N]==1&&(Il=Zs[U].g==0),Vl+=Zs[U].g,U+=Tu,3>=N){var Gu,Hu=Ss[0];for(Gu=1;Gu<Na;++Gu)Ss[Gu]>Hu&&(Hu=Ss[Gu]);Gl+=Hu}}if(yl.nd=Il,yl.Qb=0,Il&&(yl.qb=(ul[3][Pl[3]+0].value<<24|ul[1][Pl[1]+0].value<<16|ul[2][Pl[2]+0].value)>>>0,Vl==0&&256>ul[0][Pl[0]+0].value&&(yl.Qb=1,yl.qb+=ul[0][Pl[0]+0].value<<8)),yl.jc=!yl.Qb&&6>Gl,yl.jc){var Xu,Fu=yl;for(Xu=0;Xu<vo;++Xu){var wu=Xu,Ku=Fu.pd[wu],uc=Fu.G[0][Fu.H[0]+wu];256<=uc.value?(Ku.g=uc.g+256,Ku.value=uc.value):(Ku.g=0,Ku.value=0,wu>>=Oa(uc,8,Ku),wu>>=Oa(Fu.G[1][Fu.H[1]+wu],16,Ku),wu>>=Oa(Fu.G[2][Fu.H[2]+wu],0,Ku),Oa(Fu.G[3][Fu.H[3]+wu],24,Ku))}}}br.vc=_r,br.Wb=Bn,br.Ya=Mo,br.yc=qa,Xo=1;break t}Xo=0}if(!(sn=Xo)){cr.a=3;break e}if(0<Vt){if($e.ua=1<<Vt,!Ai($e.Wa,Vt)){cr.a=1,sn=0;break e}}else $e.ua=0;var cc=cr,xc=je,Ec=oe,pc=cc.s,mc=pc.xc;if(cc.c=xc,cc.i=Ec,pc.md=ta(xc,mc),pc.wc=mc==0?-1:(1<<mc)-1,Et){cr.xb=ne;break e}if((bt=Ze(je*oe))==null){cr.a=1,sn=0;break e}sn=(sn=oo(cr,bt,0,je,oe,oe,null))&&!Oe.h;break e}return sn?(Fr!=null?Fr[0]=bt:(Ne(bt==null),Ne(Et)),cr.$=0,Et||Qo($e)):Qo($e),sn}function ao(Ee,Ye){var Et=Ee.c*Ee.i,cr=Et+Ye+16*Ye;return Ne(Ee.c<=Ye),Ee.V=Ze(cr),Ee.V==null?(Ee.Ta=null,Ee.Ua=0,Ee.a=1,0):(Ee.Ta=Ee.V,Ee.Ua=Ee.Ba+Et+Ye,1)}function So(Ee,Ye){var Et=Ee.C,cr=Ye-Et,Fr=Ee.V,sn=Ee.Ba+Ee.c*Et;for(Ne(Ye<=Ee.l.o);0<cr;){var je=16<cr?16:cr,oe=Ee.l.ma,Oe=Ee.l.width,$e=Oe*je,bt=oe.ca,Vt=oe.tb+Oe*Et,er=Ee.Ta,ir=Ee.Ua;Xa(Ee,je,Fr,sn),$l(er,ir,bt,Vt,$e),Pi(oe,Et,Et+je,bt,Vt,Oe),cr-=je,Fr+=je*Ee.c,Et+=je}Ne(Et==Ye),Ee.C=Ee.Ma=Ye}function bo(){this.ub=this.yd=this.td=this.Rb=0}function to(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Jo(){this.Fb=this.Bb=this.Cb=0,this.Zb=Ze(4),this.Lb=Ze(4)}function Uo(){this.Yb=function(){var Ee=[];return function Ye(Et,cr,Fr){for(var sn=Fr[cr],je=0;je<sn&&(Et.push(Fr.length>cr+1?[]:0),!(Fr.length<cr+1));je++)Ye(Et[je],cr+1,Fr)}(Ee,0,[3,11]),Ee}()}function wo(){this.jb=Ze(3),this.Wc=xt([4,8],Uo),this.Xc=xt([4,17],Uo)}function ts(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new Ze(4),this.od=new Ze(4)}function Ia(){this.ld=this.La=this.dd=this.tc=0}function Oo(){this.Na=this.la=0}function Io(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function os(){this.ad=Ze(384),this.Za=0,this.Ob=Ze(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function xo(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ia),this.Y=0,this.ya=Array(new os),this.aa=0,this.l=new uo}function rs(){this.y=Ze(16),this.f=Ze(8),this.ea=Ze(8)}function Ho(){this.cb=this.a=0,this.sc="",this.m=new gn,this.Od=new bo,this.Kc=new to,this.ed=new ts,this.Qa=new Jo,this.Ic=this.$c=this.Aa=0,this.D=new xo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=st(8,gn),this.ia=0,this.pb=st(4,Io),this.Pa=new wo,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new rs),this.Hd=0,this.rb=Array(new Oo),this.sb=0,this.wa=Array(new Ia),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new os),this.L=this.aa=0,this.gd=xt([4,2],Ia),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function _o(Ee,Ye){return 0>Ee?0:Ee>Ye?Ye:Ee}function uo(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ha(){var Ee=new Ho;return Ee!=null&&(Ee.a=0,Ee.sc="OK",Ee.cb=0,Ee.Xb=0,nu||(nu=Yr)),Ee}function ft(Ee,Ye,Et){return Ee.a==0&&(Ee.a=Ye,Ee.sc=Et,Ee.cb=0),0}function Tr(Ee,Ye,Et){return 3<=Et&&Ee[Ye+0]==157&&Ee[Ye+1]==1&&Ee[Ye+2]==42}function qr(Ee,Ye){if(Ee==null)return 0;if(Ee.a=0,Ee.sc="OK",Ye==null)return ft(Ee,2,"null VP8Io passed to VP8GetHeaders()");var Et=Ye.data,cr=Ye.w,Fr=Ye.ha;if(4>Fr)return ft(Ee,7,"Truncated header.");var sn=Et[cr+0]|Et[cr+1]<<8|Et[cr+2]<<16,je=Ee.Od;if(je.Rb=!(1&sn),je.td=sn>>1&7,je.yd=sn>>4&1,je.ub=sn>>5,3<je.td)return ft(Ee,3,"Incorrect keyframe parameters.");if(!je.yd)return ft(Ee,4,"Frame not displayable.");cr+=3,Fr-=3;var oe=Ee.Kc;if(je.Rb){if(7>Fr)return ft(Ee,7,"cannot parse picture header");if(!Tr(Et,cr,Fr))return ft(Ee,3,"Bad code word");oe.c=16383&(Et[cr+4]<<8|Et[cr+3]),oe.Td=Et[cr+4]>>6,oe.i=16383&(Et[cr+6]<<8|Et[cr+5]),oe.Ud=Et[cr+6]>>6,cr+=7,Fr-=7,Ee.za=oe.c+15>>4,Ee.Ub=oe.i+15>>4,Ye.width=oe.c,Ye.height=oe.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,rt((sn=Ee.Pa).jb,0,255,sn.jb.length),Ne((sn=Ee.Qa)!=null),sn.Cb=0,sn.Bb=0,sn.Fb=1,rt(sn.Zb,0,0,sn.Zb.length),rt(sn.Lb,0,0,sn.Lb)}if(je.ub>Fr)return ft(Ee,7,"bad partition length");Ar(sn=Ee.m,Et,cr,je.ub),cr+=je.ub,Fr-=je.ub,je.Rb&&(oe.Ld=Ri(sn),oe.Kd=Ri(sn)),oe=Ee.Qa;var Oe,$e=Ee.Pa;if(Ne(sn!=null),Ne(oe!=null),oe.Cb=Ri(sn),oe.Cb){if(oe.Bb=Ri(sn),Ri(sn)){for(oe.Fb=Ri(sn),Oe=0;4>Oe;++Oe)oe.Zb[Oe]=Ri(sn)?Mr(sn,7):0;for(Oe=0;4>Oe;++Oe)oe.Lb[Oe]=Ri(sn)?Mr(sn,6):0}if(oe.Bb)for(Oe=0;3>Oe;++Oe)$e.jb[Oe]=Ri(sn)?yr(sn,8):255}else oe.Bb=0;if(sn.Ka)return ft(Ee,3,"cannot parse segment header");if((oe=Ee.ed).zd=Ri(sn),oe.Tb=yr(sn,6),oe.wb=yr(sn,3),oe.Pc=Ri(sn),oe.Pc&&Ri(sn)){for($e=0;4>$e;++$e)Ri(sn)&&(oe.vd[$e]=Mr(sn,6));for($e=0;4>$e;++$e)Ri(sn)&&(oe.od[$e]=Mr(sn,6))}if(Ee.L=oe.Tb==0?0:oe.zd?1:2,sn.Ka)return ft(Ee,3,"cannot parse filter header");var bt=Fr;if(Fr=Oe=cr,cr=Oe+bt,oe=bt,Ee.Xb=(1<<yr(Ee.m,2))-1,bt<3*($e=Ee.Xb))Et=7;else{for(Oe+=3*$e,oe-=3*$e,bt=0;bt<$e;++bt){var Vt=Et[Fr+0]|Et[Fr+1]<<8|Et[Fr+2]<<16;Vt>oe&&(Vt=oe),Ar(Ee.Jc[+bt],Et,Oe,Vt),Oe+=Vt,oe-=Vt,Fr+=3}Ar(Ee.Jc[+$e],Et,Oe,oe),Et=Oe<cr?0:5}if(Et!=0)return ft(Ee,Et,"cannot parse partitions");for(Et=yr(Oe=Ee.m,7),Fr=Ri(Oe)?Mr(Oe,4):0,cr=Ri(Oe)?Mr(Oe,4):0,oe=Ri(Oe)?Mr(Oe,4):0,$e=Ri(Oe)?Mr(Oe,4):0,Oe=Ri(Oe)?Mr(Oe,4):0,bt=Ee.Qa,Vt=0;4>Vt;++Vt){if(bt.Cb){var er=bt.Zb[Vt];bt.Fb||(er+=Et)}else{if(0<Vt){Ee.pb[Vt]=Ee.pb[0];continue}er=Et}var ir=Ee.pb[Vt];ir.Sc[0]=hl[_o(er+Fr,127)],ir.Sc[1]=Dl[_o(er+0,127)],ir.Eb[0]=2*hl[_o(er+cr,127)],ir.Eb[1]=101581*Dl[_o(er+oe,127)]>>16,8>ir.Eb[1]&&(ir.Eb[1]=8),ir.Qc[0]=hl[_o(er+$e,117)],ir.Qc[1]=Dl[_o(er+Oe,127)],ir.lc=er+Oe}if(!je.Rb)return ft(Ee,4,"Not a key frame.");for(Ri(sn),je=Ee.Pa,Et=0;4>Et;++Et){for(Fr=0;8>Fr;++Fr)for(cr=0;3>cr;++cr)for(oe=0;11>oe;++oe)$e=Di(sn,q[Et][Fr][cr][oe])?yr(sn,8):iu[Et][Fr][cr][oe],je.Wc[Et][Fr].Yb[cr][oe]=$e;for(Fr=0;17>Fr;++Fr)je.Xc[Et][Fr]=je.Wc[Et][L[Fr]]}return Ee.kc=Ri(sn),Ee.kc&&(Ee.Bd=yr(sn,8)),Ee.cb=1}function Yr(Ee,Ye,Et,cr,Fr,sn,je){var oe=Ye[Fr].Yb[Et];for(Et=0;16>Fr;++Fr){if(!Di(Ee,oe[Et+0]))return Fr;for(;!Di(Ee,oe[Et+1]);)if(oe=Ye[++Fr].Yb[0],Et=0,Fr==16)return 16;var Oe=Ye[Fr+1].Yb;if(Di(Ee,oe[Et+2])){var $e=Ee,bt=0;if(Di($e,(er=oe)[(Vt=Et)+3]))if(Di($e,er[Vt+6])){for(oe=0,Vt=2*(bt=Di($e,er[Vt+8]))+(er=Di($e,er[Vt+9+bt])),bt=0,er=Nu[Vt];er[oe];++oe)bt+=bt+Di($e,er[oe]);bt+=3+(8<<Vt)}else Di($e,er[Vt+7])?(bt=7+2*Di($e,165),bt+=Di($e,145)):bt=5+Di($e,159);else bt=Di($e,er[Vt+4])?3+Di($e,er[Vt+5]):2;oe=Oe[2]}else bt=1,oe=Oe[1];Oe=je+hu[Fr],0>($e=Ee).b&&Ei($e);var Vt,er=$e.b,ir=(Vt=$e.Ca>>1)-($e.I>>er)>>31;--$e.b,$e.Ca+=ir,$e.Ca|=1,$e.I-=(Vt+1&ir)<<er,sn[Oe]=((bt^ir)-ir)*cr[(0<Fr)+0]}return 16}function Yn(Ee){var Ye=Ee.rb[Ee.sb-1];Ye.la=0,Ye.Na=0,rt(Ee.zc,0,0,Ee.zc.length),Ee.ja=0}function dn(Ee,Ye){if(Ee==null)return 0;if(Ye==null)return ft(Ee,2,"NULL VP8Io parameter in VP8Decode().");if(!Ee.cb&&!qr(Ee,Ye))return 0;if(Ne(Ee.cb),Ye.ac==null||Ye.ac(Ye)){Ye.ob&&(Ee.L=0);var Et=Cs[Ee.L];if(Ee.L==2?(Ee.yb=0,Ee.zb=0):(Ee.yb=Ye.v-Et>>4,Ee.zb=Ye.j-Et>>4,0>Ee.yb&&(Ee.yb=0),0>Ee.zb&&(Ee.zb=0)),Ee.Va=Ye.o+15+Et>>4,Ee.Hb=Ye.va+15+Et>>4,Ee.Hb>Ee.za&&(Ee.Hb=Ee.za),Ee.Va>Ee.Ub&&(Ee.Va=Ee.Ub),0<Ee.L){var cr=Ee.ed;for(Et=0;4>Et;++Et){var Fr;if(Ee.Qa.Cb){var sn=Ee.Qa.Lb[Et];Ee.Qa.Fb||(sn+=cr.Tb)}else sn=cr.Tb;for(Fr=0;1>=Fr;++Fr){var je=Ee.gd[Et][Fr],oe=sn;if(cr.Pc&&(oe+=cr.vd[0],Fr&&(oe+=cr.od[0])),0<(oe=0>oe?0:63<oe?63:oe)){var Oe=oe;0<cr.wb&&(Oe=4<cr.wb?Oe>>2:Oe>>1)>9-cr.wb&&(Oe=9-cr.wb),1>Oe&&(Oe=1),je.dd=Oe,je.tc=2*oe+Oe,je.ld=40<=oe?2:15<=oe?1:0}else je.tc=0;je.La=Fr}}}Et=0}else ft(Ee,6,"Frame setup failed"),Et=Ee.a;if(Et=Et==0){if(Et){Ee.$c=0,0<Ee.Aa||(Ee.Ic=ws);e:{Et=Ee.Ic,cr=4*(Oe=Ee.za);var $e=32*Oe,bt=Oe+1,Vt=0<Ee.L?Oe*(0<Ee.Aa?2:1):0,er=(Ee.Aa==2?2:1)*Oe;if((je=cr+832+(Fr=3*(16*Et+Cs[Ee.L])/2*$e)+(sn=Ee.Fa!=null&&0<Ee.Fa.length?Ee.Kc.c*Ee.Kc.i:0))!=je)Et=0;else{if(je>Ee.Vb){if(Ee.Vb=0,Ee.Ec=Ze(je),Ee.Fc=0,Ee.Ec==null){Et=ft(Ee,1,"no memory during frame initialization.");break e}Ee.Vb=je}je=Ee.Ec,oe=Ee.Fc,Ee.Ac=je,Ee.Bc=oe,oe+=cr,Ee.Gd=st($e,rs),Ee.Hd=0,Ee.rb=st(bt+1,Oo),Ee.sb=1,Ee.wa=Vt?st(Vt,Ia):null,Ee.Y=0,Ee.D.Nb=0,Ee.D.wa=Ee.wa,Ee.D.Y=Ee.Y,0<Ee.Aa&&(Ee.D.Y+=Oe),Ne(!0),Ee.oc=je,Ee.pc=oe,oe+=832,Ee.ya=st(er,os),Ee.aa=0,Ee.D.ya=Ee.ya,Ee.D.aa=Ee.aa,Ee.Aa==2&&(Ee.D.aa+=Oe),Ee.R=16*Oe,Ee.B=8*Oe,Oe=($e=Cs[Ee.L])*Ee.R,$e=$e/2*Ee.B,Ee.sa=je,Ee.ta=oe+Oe,Ee.qa=Ee.sa,Ee.ra=Ee.ta+16*Et*Ee.R+$e,Ee.Ha=Ee.qa,Ee.Ia=Ee.ra+8*Et*Ee.B+$e,Ee.$c=0,oe+=Fr,Ee.mb=sn?je:null,Ee.nb=sn?oe:null,Ne(oe+sn<=Ee.Fc+Ee.Vb),Yn(Ee),rt(Ee.Ac,Ee.Bc,0,cr),Et=1}}if(Et){if(Ye.ka=0,Ye.y=Ee.sa,Ye.O=Ee.ta,Ye.f=Ee.qa,Ye.N=Ee.ra,Ye.ea=Ee.Ha,Ye.Vd=Ee.Ia,Ye.fa=Ee.R,Ye.Rc=Ee.B,Ye.F=null,Ye.J=0,!gu){for(Et=-255;255>=Et;++Et)tu[255+Et]=0>Et?-Et:Et;for(Et=-1020;1020>=Et;++Et)Iu[1020+Et]=-128>Et?-128:127<Et?127:Et;for(Et=-112;112>=Et;++Et)pu[112+Et]=-16>Et?-16:15<Et?15:Et;for(Et=-255;510>=Et;++Et)mu[255+Et]=0>Et?0:255<Et?255:Et;gu=1}ps=vi,Is=ci,Ls=si,Ps=Ti,ml=mi,es=li,Rl=Ll,_l=el,Bl=ks,jl=Qs,kl=Gs,Xl=ds,ol=tl,Ys=xs,sl=zo,nl=Fs,xl=ms,Ml=hs,H[0]=Ka,H[1]=ia,H[2]=Ea,H[3]=Fa,H[4]=lo,H[5]=Co,H[6]=so,H[7]=Lo,H[8]=cs,H[9]=is,W[0]=Da,W[1]=fa,W[2]=Ya,W[3]=xa,W[4]=ja,W[5]=ko,W[6]=ro,Z[0]=co,Z[1]=Ki,Z[2]=Rs,Z[3]=Ko,Z[4]=$a,Z[5]=Ao,Z[6]=ss,Et=1}else Et=0}Et&&(Et=function(ir,zr){for(ir.M=0;ir.M<ir.Va;++ir.M){var hn,Wr=ir.Jc[ir.M&ir.Xb],jr=ir.m,ln=ir;for(hn=0;hn<ln.za;++hn){var yn=jr,Wn=ln,Ii=Wn.Ac,ki=Wn.Bc+4*hn,da=Wn.zc,$i=Wn.ya[Wn.aa+hn];if(Wn.Qa.Bb?$i.$b=Di(yn,Wn.Pa.jb[0])?2+Di(yn,Wn.Pa.jb[2]):Di(yn,Wn.Pa.jb[1]):$i.$b=0,Wn.kc&&($i.Ad=Di(yn,Wn.Bd)),$i.Za=!Di(yn,145)+0,$i.Za){var Qa=$i.Ob,ya=0;for(Wn=0;4>Wn;++Wn){var fo,za=da[0+Wn];for(fo=0;4>fo;++fo){za=Ae[Ii[ki+fo]][za];for(var Xo=fu[Di(yn,za[0])];0<Xo;)Xo=fu[2*Xo+Di(yn,za[Xo])];za=-Xo,Ii[ki+fo]=za}Xe(Qa,ya,Ii,ki,4),ya+=4,da[0+Wn]=za}}else za=Di(yn,156)?Di(yn,128)?1:3:Di(yn,163)?2:0,$i.Ob[0]=za,rt(Ii,ki,za,4),rt(da,0,za,4);$i.Dd=Di(yn,142)?Di(yn,114)?Di(yn,183)?1:3:2:0}if(ln.m.Ka)return ft(ir,7,"Premature end-of-partition0 encountered.");for(;ir.ja<ir.za;++ir.ja){if(ln=Wr,yn=(jr=ir).rb[jr.sb-1],Ii=jr.rb[jr.sb+jr.ja],hn=jr.ya[jr.aa+jr.ja],ki=jr.kc?hn.Ad:0)yn.la=Ii.la=0,hn.Za||(yn.Na=Ii.Na=0),hn.Hc=0,hn.Gc=0,hn.ia=0;else{var ls,N;if(yn=Ii,Ii=ln,ki=jr.Pa.Xc,da=jr.ya[jr.aa+jr.ja],$i=jr.pb[da.$b],Wn=da.ad,Qa=0,ya=jr.rb[jr.sb-1],za=fo=0,rt(Wn,Qa,0,384),da.Za)var U=0,ie=ki[3];else{Xo=Ze(16);var ue=yn.Na+ya.Na;if(ue=nu(Ii,ki[1],ue,$i.Eb,0,Xo,0),yn.Na=ya.Na=(0<ue)+0,1<ue)ps(Xo,0,Wn,Qa);else{var ge=Xo[0]+3>>3;for(Xo=0;256>Xo;Xo+=16)Wn[Qa+Xo]=ge}U=1,ie=ki[0]}var We=15&yn.la,Lt=15&ya.la;for(Xo=0;4>Xo;++Xo){var nr=1≪for(ge=N=0;4>ge;++ge)We=We>>1|(nr=(ue=nu(Ii,ie,ue=nr+(1&We),$i.Sc,U,Wn,Qa))>U)<<7,N=N<<2|(3<ue?3:1<ue?2:Wn[Qa+0]!=0),Qa+=16;We>>=4,Lt=Lt>>1|nr<<7,fo=(fo<<8|N)>>>0}for(ie=We,U=Lt>>4,ls=0;4>ls;ls+=2){for(N=0,We=yn.la>>4+ls,Lt=ya.la>>4+ls,Xo=0;2>Xo;++Xo){for(nr=1&Lt,ge=0;2>ge;++ge)ue=nr+(1&We),We=We>>1|(nr=0<(ue=nu(Ii,ki[2],ue,$i.Qc,0,Wn,Qa)))<<3,N=N<<2|(3<ue?3:1<ue?2:Wn[Qa+0]!=0),Qa+=16;We>>=2,Lt=Lt>>1|nr<<5}za|=N<<4*ls,ie|=We<<4<<ls,U|=(240&Lt)<<ls}yn.la=ie,ya.la=U,da.Hc=fo,da.Gc=za,da.ia=43690&za?0:$i.ia,ki=!(fo|za)}if(0<jr.L&&(jr.wa[jr.Y+jr.ja]=jr.gd[hn.$b][hn.Za],jr.wa[jr.Y+jr.ja].La|=!ki),ln.Ka)return ft(ir,7,"Premature end-of-file encountered.")}if(Yn(ir),jr=zr,ln=1,hn=(Wr=ir).D,yn=0<Wr.L&&Wr.M>=Wr.zb&&Wr.M<=Wr.Va,Wr.Aa==0)e:{if(hn.M=Wr.M,hn.uc=yn,Bo(Wr,hn),ln=1,hn=(N=Wr.D).Nb,yn=(za=Cs[Wr.L])*Wr.R,Ii=za/2*Wr.B,Xo=16*hn*Wr.R,ge=8*hn*Wr.B,ki=Wr.sa,da=Wr.ta-yn+Xo,$i=Wr.qa,Wn=Wr.ra-Ii+ge,Qa=Wr.Ha,ya=Wr.Ia-Ii+ge,Lt=(We=N.M)==0,fo=We>=Wr.Va-1,Wr.Aa==2&&Bo(Wr,N),N.uc)for(nr=(ue=Wr).D.M,Ne(ue.D.uc),N=ue.yb;N<ue.Hb;++N){U=N,ie=nr;var br=(_r=(Na=ue).D).Nb;ls=Na.R;var _r=_r.wa[_r.Y+U],Bn=Na.sa,ti=Na.ta+16*br*ls+16*U,Si=_r.dd,Ci=_r.tc;if(Ci!=0)if(Ne(3<=Ci),Na.L==1)0<U&&nl(Bn,ti,ls,Ci+4),_r.La&&Ml(Bn,ti,ls,Ci),0<ie&&sl(Bn,ti,ls,Ci+4),_r.La&&xl(Bn,ti,ls,Ci);else{var la=Na.B,Ta=Na.qa,Wa=Na.ra+8*br*la+8*U,Ma=Na.Ha,Na=Na.Ia+8*br*la+8*U;br=_r.ld,0<U&&(_l(Bn,ti,ls,Ci+4,Si,br),jl(Ta,Wa,Ma,Na,la,Ci+4,Si,br)),_r.La&&(Xl(Bn,ti,ls,Ci,Si,br),Ys(Ta,Wa,Ma,Na,la,Ci,Si,br)),0<ie&&(Rl(Bn,ti,ls,Ci+4,Si,br),Bl(Ta,Wa,Ma,Na,la,Ci+4,Si,br)),_r.La&&(kl(Bn,ti,ls,Ci,Si,br),ol(Ta,Wa,Ma,Na,la,Ci,Si,br))}}if(Wr.ia&&alert("todo:DitherRow"),jr.put!=null){if(N=16*We,We=16*(We+1),Lt?(jr.y=Wr.sa,jr.O=Wr.ta+Xo,jr.f=Wr.qa,jr.N=Wr.ra+ge,jr.ea=Wr.Ha,jr.W=Wr.Ia+ge):(N-=za,jr.y=ki,jr.O=da,jr.f=$i,jr.N=Wn,jr.ea=Qa,jr.W=ya),fo||(We-=za),We>jr.o&&(We=jr.o),jr.F=null,jr.J=null,Wr.Fa!=null&&0<Wr.Fa.length&&N<We&&(jr.J=ar(Wr,jr,N,We-N),jr.F=Wr.mb,jr.F==null&&jr.F.length==0)){ln=ft(Wr,3,"Could not decode alpha data.");break e}N<jr.j&&(za=jr.j-N,N=jr.j,Ne(!(1&za)),jr.O+=Wr.R*za,jr.N+=Wr.B*(za>>1),jr.W+=Wr.B*(za>>1),jr.F!=null&&(jr.J+=jr.width*za)),N<We&&(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=We-N,ln=jr.put(jr))}hn+1!=Wr.Ic||fo||(Xe(Wr.sa,Wr.ta-yn,ki,da+16*Wr.R,yn),Xe(Wr.qa,Wr.ra-Ii,$i,Wn+8*Wr.B,Ii),Xe(Wr.Ha,Wr.Ia-Ii,Qa,ya+8*Wr.B,Ii))}if(!ln)return ft(ir,6,"Output aborted.")}return 1}(Ee,Ye)),Ye.bc!=null&&Ye.bc(Ye),Et&=1}return Et?(Ee.cb=0,Et):0}function Gr(Ee,Ye,Et,cr,Fr){Fr=Ee[Ye+Et+32*cr]+(Fr>>3),Ee[Ye+Et+32*cr]=-256&Fr?0>Fr?0:255:Fr}function ri(Ee,Ye,Et,cr,Fr,sn){Gr(Ee,Ye,0,Et,cr+Fr),Gr(Ee,Ye,1,Et,cr+sn),Gr(Ee,Ye,2,Et,cr-sn),Gr(Ee,Ye,3,Et,cr-Fr)}function rn(Ee){return(20091*Ee>>16)+Ee}function Hn(Ee,Ye,Et,cr){var Fr,sn=0,je=Ze(16);for(Fr=0;4>Fr;++Fr){var oe=Ee[Ye+0]+Ee[Ye+8],Oe=Ee[Ye+0]-Ee[Ye+8],$e=(35468*Ee[Ye+4]>>16)-rn(Ee[Ye+12]),bt=rn(Ee[Ye+4])+(35468*Ee[Ye+12]>>16);je[sn+0]=oe+bt,je[sn+1]=Oe+$e,je[sn+2]=Oe-$e,je[sn+3]=oe-bt,sn+=4,Ye++}for(Fr=sn=0;4>Fr;++Fr)oe=(Ee=je[sn+0]+4)+je[sn+8],Oe=Ee-je[sn+8],$e=(35468*je[sn+4]>>16)-rn(je[sn+12]),Gr(Et,cr,0,0,oe+(bt=rn(je[sn+4])+(35468*je[sn+12]>>16))),Gr(Et,cr,1,0,Oe+$e),Gr(Et,cr,2,0,Oe-$e),Gr(Et,cr,3,0,oe-bt),sn++,cr+=32}function li(Ee,Ye,Et,cr){var Fr=Ee[Ye+0]+4,sn=35468*Ee[Ye+4]>>16,je=rn(Ee[Ye+4]),oe=35468*Ee[Ye+1]>>16;ri(Et,cr,0,Fr+je,Ee=rn(Ee[Ye+1]),oe),ri(Et,cr,1,Fr+sn,Ee,oe),ri(Et,cr,2,Fr-sn,Ee,oe),ri(Et,cr,3,Fr-je,Ee,oe)}function ci(Ee,Ye,Et,cr,Fr){Hn(Ee,Ye,Et,cr),Fr&&Hn(Ee,Ye+16,Et,cr+4)}function si(Ee,Ye,Et,cr){Is(Ee,Ye+0,Et,cr,1),Is(Ee,Ye+32,Et,cr+128,1)}function Ti(Ee,Ye,Et,cr){var Fr;for(Ee=Ee[Ye+0]+4,Fr=0;4>Fr;++Fr)for(Ye=0;4>Ye;++Ye)Gr(Et,cr,Ye,Fr,Ee)}function mi(Ee,Ye,Et,cr){Ee[Ye+0]&&Ps(Ee,Ye+0,Et,cr),Ee[Ye+16]&&Ps(Ee,Ye+16,Et,cr+4),Ee[Ye+32]&&Ps(Ee,Ye+32,Et,cr+128),Ee[Ye+48]&&Ps(Ee,Ye+48,Et,cr+128+4)}function vi(Ee,Ye,Et,cr){var Fr,sn=Ze(16);for(Fr=0;4>Fr;++Fr){var je=Ee[Ye+0+Fr]+Ee[Ye+12+Fr],oe=Ee[Ye+4+Fr]+Ee[Ye+8+Fr],Oe=Ee[Ye+4+Fr]-Ee[Ye+8+Fr],$e=Ee[Ye+0+Fr]-Ee[Ye+12+Fr];sn[0+Fr]=je+oe,sn[8+Fr]=je-oe,sn[4+Fr]=$e+Oe,sn[12+Fr]=$e-Oe}for(Fr=0;4>Fr;++Fr)je=(Ee=sn[0+4*Fr]+3)+sn[3+4*Fr],oe=sn[1+4*Fr]+sn[2+4*Fr],Oe=sn[1+4*Fr]-sn[2+4*Fr],$e=Ee-sn[3+4*Fr],Et[cr+0]=je+oe>>3,Et[cr+16]=$e+Oe>>3,Et[cr+32]=je-oe>>3,Et[cr+48]=$e-Oe>>3,cr+=64}function Li(Ee,Ye,Et){var cr,Fr=Ye-32,sn=ll,je=255-Ee[Fr-1];for(cr=0;cr<Et;++cr){var oe,Oe=sn,$e=je+Ee[Ye-1];for(oe=0;oe<Et;++oe)Ee[Ye+oe]=Oe[$e+Ee[Fr+oe]];Ye+=32}}function ia(Ee,Ye){Li(Ee,Ye,4)}function Ki(Ee,Ye){Li(Ee,Ye,8)}function fa(Ee,Ye){Li(Ee,Ye,16)}function Ya(Ee,Ye){var Et;for(Et=0;16>Et;++Et)Xe(Ee,Ye+32*Et,Ee,Ye-32,16)}function xa(Ee,Ye){var Et;for(Et=16;0<Et;--Et)rt(Ee,Ye,Ee[Ye-1],16),Ye+=32}function wa(Ee,Ye,Et){var cr;for(cr=0;16>cr;++cr)rt(Ye,Et+32*cr,Ee,16)}function Da(Ee,Ye){var Et,cr=16;for(Et=0;16>Et;++Et)cr+=Ee[Ye-1+32*Et]+Ee[Ye+Et-32];wa(cr>>5,Ee,Ye)}function ja(Ee,Ye){var Et,cr=8;for(Et=0;16>Et;++Et)cr+=Ee[Ye-1+32*Et];wa(cr>>4,Ee,Ye)}function ko(Ee,Ye){var Et,cr=8;for(Et=0;16>Et;++Et)cr+=Ee[Ye+Et-32];wa(cr>>4,Ee,Ye)}function ro(Ee,Ye){wa(128,Ee,Ye)}function pa(Ee,Ye,Et){return Ee+2*Ye+Et+2>>2}function Ea(Ee,Ye){var Et,cr=Ye-32;for(cr=new Uint8Array([pa(Ee[cr-1],Ee[cr+0],Ee[cr+1]),pa(Ee[cr+0],Ee[cr+1],Ee[cr+2]),pa(Ee[cr+1],Ee[cr+2],Ee[cr+3]),pa(Ee[cr+2],Ee[cr+3],Ee[cr+4])]),Et=0;4>Et;++Et)Xe(Ee,Ye+32*Et,cr,0,cr.length)}function Fa(Ee,Ye){var Et=Ee[Ye-1],cr=Ee[Ye-1+32],Fr=Ee[Ye-1+64],sn=Ee[Ye-1+96];oa(Ee,Ye+0,16843009*pa(Ee[Ye-1-32],Et,cr)),oa(Ee,Ye+32,16843009*pa(Et,cr,Fr)),oa(Ee,Ye+64,16843009*pa(cr,Fr,sn)),oa(Ee,Ye+96,16843009*pa(Fr,sn,sn))}function Ka(Ee,Ye){var Et,cr=4;for(Et=0;4>Et;++Et)cr+=Ee[Ye+Et-32]+Ee[Ye-1+32*Et];for(cr>>=3,Et=0;4>Et;++Et)rt(Ee,Ye+32*Et,cr,4)}function lo(Ee,Ye){var Et=Ee[Ye-1+0],cr=Ee[Ye-1+32],Fr=Ee[Ye-1+64],sn=Ee[Ye-1-32],je=Ee[Ye+0-32],oe=Ee[Ye+1-32],Oe=Ee[Ye+2-32],$e=Ee[Ye+3-32];Ee[Ye+0+96]=pa(cr,Fr,Ee[Ye-1+96]),Ee[Ye+1+96]=Ee[Ye+0+64]=pa(Et,cr,Fr),Ee[Ye+2+96]=Ee[Ye+1+64]=Ee[Ye+0+32]=pa(sn,Et,cr),Ee[Ye+3+96]=Ee[Ye+2+64]=Ee[Ye+1+32]=Ee[Ye+0+0]=pa(je,sn,Et),Ee[Ye+3+64]=Ee[Ye+2+32]=Ee[Ye+1+0]=pa(oe,je,sn),Ee[Ye+3+32]=Ee[Ye+2+0]=pa(Oe,oe,je),Ee[Ye+3+0]=pa($e,Oe,oe)}function so(Ee,Ye){var Et=Ee[Ye+1-32],cr=Ee[Ye+2-32],Fr=Ee[Ye+3-32],sn=Ee[Ye+4-32],je=Ee[Ye+5-32],oe=Ee[Ye+6-32],Oe=Ee[Ye+7-32];Ee[Ye+0+0]=pa(Ee[Ye+0-32],Et,cr),Ee[Ye+1+0]=Ee[Ye+0+32]=pa(Et,cr,Fr),Ee[Ye+2+0]=Ee[Ye+1+32]=Ee[Ye+0+64]=pa(cr,Fr,sn),Ee[Ye+3+0]=Ee[Ye+2+32]=Ee[Ye+1+64]=Ee[Ye+0+96]=pa(Fr,sn,je),Ee[Ye+3+32]=Ee[Ye+2+64]=Ee[Ye+1+96]=pa(sn,je,oe),Ee[Ye+3+64]=Ee[Ye+2+96]=pa(je,oe,Oe),Ee[Ye+3+96]=pa(oe,Oe,Oe)}function Co(Ee,Ye){var Et=Ee[Ye-1+0],cr=Ee[Ye-1+32],Fr=Ee[Ye-1+64],sn=Ee[Ye-1-32],je=Ee[Ye+0-32],oe=Ee[Ye+1-32],Oe=Ee[Ye+2-32],$e=Ee[Ye+3-32];Ee[Ye+0+0]=Ee[Ye+1+64]=sn+je+1>>1,Ee[Ye+1+0]=Ee[Ye+2+64]=je+oe+1>>1,Ee[Ye+2+0]=Ee[Ye+3+64]=oe+Oe+1>>1,Ee[Ye+3+0]=Oe+$e+1>>1,Ee[Ye+0+96]=pa(Fr,cr,Et),Ee[Ye+0+64]=pa(cr,Et,sn),Ee[Ye+0+32]=Ee[Ye+1+96]=pa(Et,sn,je),Ee[Ye+1+32]=Ee[Ye+2+96]=pa(sn,je,oe),Ee[Ye+2+32]=Ee[Ye+3+96]=pa(je,oe,Oe),Ee[Ye+3+32]=pa(oe,Oe,$e)}function Lo(Ee,Ye){var Et=Ee[Ye+0-32],cr=Ee[Ye+1-32],Fr=Ee[Ye+2-32],sn=Ee[Ye+3-32],je=Ee[Ye+4-32],oe=Ee[Ye+5-32],Oe=Ee[Ye+6-32],$e=Ee[Ye+7-32];Ee[Ye+0+0]=Et+cr+1>>1,Ee[Ye+1+0]=Ee[Ye+0+64]=cr+Fr+1>>1,Ee[Ye+2+0]=Ee[Ye+1+64]=Fr+sn+1>>1,Ee[Ye+3+0]=Ee[Ye+2+64]=sn+je+1>>1,Ee[Ye+0+32]=pa(Et,cr,Fr),Ee[Ye+1+32]=Ee[Ye+0+96]=pa(cr,Fr,sn),Ee[Ye+2+32]=Ee[Ye+1+96]=pa(Fr,sn,je),Ee[Ye+3+32]=Ee[Ye+2+96]=pa(sn,je,oe),Ee[Ye+3+64]=pa(je,oe,Oe),Ee[Ye+3+96]=pa(oe,Oe,$e)}function is(Ee,Ye){var Et=Ee[Ye-1+0],cr=Ee[Ye-1+32],Fr=Ee[Ye-1+64],sn=Ee[Ye-1+96];Ee[Ye+0+0]=Et+cr+1>>1,Ee[Ye+2+0]=Ee[Ye+0+32]=cr+Fr+1>>1,Ee[Ye+2+32]=Ee[Ye+0+64]=Fr+sn+1>>1,Ee[Ye+1+0]=pa(Et,cr,Fr),Ee[Ye+3+0]=Ee[Ye+1+32]=pa(cr,Fr,sn),Ee[Ye+3+32]=Ee[Ye+1+64]=pa(Fr,sn,sn),Ee[Ye+3+64]=Ee[Ye+2+64]=Ee[Ye+0+96]=Ee[Ye+1+96]=Ee[Ye+2+96]=Ee[Ye+3+96]=sn}function cs(Ee,Ye){var Et=Ee[Ye-1+0],cr=Ee[Ye-1+32],Fr=Ee[Ye-1+64],sn=Ee[Ye-1+96],je=Ee[Ye-1-32],oe=Ee[Ye+0-32],Oe=Ee[Ye+1-32],$e=Ee[Ye+2-32];Ee[Ye+0+0]=Ee[Ye+2+32]=Et+je+1>>1,Ee[Ye+0+32]=Ee[Ye+2+64]=cr+Et+1>>1,Ee[Ye+0+64]=Ee[Ye+2+96]=Fr+cr+1>>1,Ee[Ye+0+96]=sn+Fr+1>>1,Ee[Ye+3+0]=pa(oe,Oe,$e),Ee[Ye+2+0]=pa(je,oe,Oe),Ee[Ye+1+0]=Ee[Ye+3+32]=pa(Et,je,oe),Ee[Ye+1+32]=Ee[Ye+3+64]=pa(cr,Et,je),Ee[Ye+1+64]=Ee[Ye+3+96]=pa(Fr,cr,Et),Ee[Ye+1+96]=pa(sn,Fr,cr)}function Rs(Ee,Ye){var Et;for(Et=0;8>Et;++Et)Xe(Ee,Ye+32*Et,Ee,Ye-32,8)}function Ko(Ee,Ye){var Et;for(Et=0;8>Et;++Et)rt(Ee,Ye,Ee[Ye-1],8),Ye+=32}function as(Ee,Ye,Et){var cr;for(cr=0;8>cr;++cr)rt(Ye,Et+32*cr,Ee,8)}function co(Ee,Ye){var Et,cr=8;for(Et=0;8>Et;++Et)cr+=Ee[Ye+Et-32]+Ee[Ye-1+32*Et];as(cr>>4,Ee,Ye)}function Ao(Ee,Ye){var Et,cr=4;for(Et=0;8>Et;++Et)cr+=Ee[Ye+Et-32];as(cr>>3,Ee,Ye)}function $a(Ee,Ye){var Et,cr=4;for(Et=0;8>Et;++Et)cr+=Ee[Ye-1+32*Et];as(cr>>3,Ee,Ye)}function ss(Ee,Ye){as(128,Ee,Ye)}function _s(Ee,Ye,Et){var cr=Ee[Ye-Et],Fr=Ee[Ye+0],sn=3*(Fr-cr)+ql[1020+Ee[Ye-2*Et]-Ee[Ye+Et]],je=Cl[112+(sn+4>>3)];Ee[Ye-Et]=ll[255+cr+Cl[112+(sn+3>>3)]],Ee[Ye+0]=ll[255+Fr-je]}function Fo(Ee,Ye,Et,cr){var Fr=Ee[Ye+0],sn=Ee[Ye+Et];return Hl[255+Ee[Ye-2*Et]-Ee[Ye-Et]]>cr||Hl[255+sn-Fr]>cr}function il(Ee,Ye,Et,cr){return 4*Hl[255+Ee[Ye-Et]-Ee[Ye+0]]+Hl[255+Ee[Ye-2*Et]-Ee[Ye+Et]]<=cr}function Eo(Ee,Ye,Et,cr,Fr){var sn=Ee[Ye-3*Et],je=Ee[Ye-2*Et],oe=Ee[Ye-Et],Oe=Ee[Ye+0],$e=Ee[Ye+Et],bt=Ee[Ye+2*Et],Vt=Ee[Ye+3*Et];return 4*Hl[255+oe-Oe]+Hl[255+je-$e]>cr?0:Hl[255+Ee[Ye-4*Et]-sn]<=Fr&&Hl[255+sn-je]<=Fr&&Hl[255+je-oe]<=Fr&&Hl[255+Vt-bt]<=Fr&&Hl[255+bt-$e]<=Fr&&Hl[255+$e-Oe]<=Fr}function zo(Ee,Ye,Et,cr){var Fr=2*cr+1;for(cr=0;16>cr;++cr)il(Ee,Ye+cr,Et,Fr)&&_s(Ee,Ye+cr,Et)}function Fs(Ee,Ye,Et,cr){var Fr=2*cr+1;for(cr=0;16>cr;++cr)il(Ee,Ye+cr*Et,1,Fr)&&_s(Ee,Ye+cr*Et,1)}function ms(Ee,Ye,Et,cr){var Fr;for(Fr=3;0<Fr;--Fr)zo(Ee,Ye+=4*Et,Et,cr)}function hs(Ee,Ye,Et,cr){var Fr;for(Fr=3;0<Fr;--Fr)Fs(Ee,Ye+=4,Et,cr)}function bn(Ee,Ye,Et,cr,Fr,sn,je,oe){for(sn=2*sn+1;0<Fr--;){if(Eo(Ee,Ye,Et,sn,je))if(Fo(Ee,Ye,Et,oe))_s(Ee,Ye,Et);else{var Oe=Ee,$e=Ye,bt=Et,Vt=Oe[$e-2*bt],er=Oe[$e-bt],ir=Oe[$e+0],zr=Oe[$e+bt],hn=Oe[$e+2*bt],Wr=27*(ln=ql[1020+3*(ir-er)+ql[1020+Vt-zr]])+63>>7,jr=18*ln+63>>7,ln=9*ln+63>>7;Oe[$e-3*bt]=ll[255+Oe[$e-3*bt]+ln],Oe[$e-2*bt]=ll[255+Vt+jr],Oe[$e-bt]=ll[255+er+Wr],Oe[$e+0]=ll[255+ir-Wr],Oe[$e+bt]=ll[255+zr-jr],Oe[$e+2*bt]=ll[255+hn-ln]}Ye+=cr}}function Ns(Ee,Ye,Et,cr,Fr,sn,je,oe){for(sn=2*sn+1;0<Fr--;){if(Eo(Ee,Ye,Et,sn,je))if(Fo(Ee,Ye,Et,oe))_s(Ee,Ye,Et);else{var Oe=Ee,$e=Ye,bt=Et,Vt=Oe[$e-bt],er=Oe[$e+0],ir=Oe[$e+bt],zr=Cl[112+((hn=3*(er-Vt))+4>>3)],hn=Cl[112+(hn+3>>3)],Wr=zr+1>>1;Oe[$e-2*bt]=ll[255+Oe[$e-2*bt]+Wr],Oe[$e-bt]=ll[255+Vt+hn],Oe[$e+0]=ll[255+er-zr],Oe[$e+bt]=ll[255+ir-Wr]}Ye+=cr}}function Ll(Ee,Ye,Et,cr,Fr,sn){bn(Ee,Ye,Et,1,16,cr,Fr,sn)}function el(Ee,Ye,Et,cr,Fr,sn){bn(Ee,Ye,1,Et,16,cr,Fr,sn)}function Gs(Ee,Ye,Et,cr,Fr,sn){var je;for(je=3;0<je;--je)Ns(Ee,Ye+=4*Et,Et,1,16,cr,Fr,sn)}function ds(Ee,Ye,Et,cr,Fr,sn){var je;for(je=3;0<je;--je)Ns(Ee,Ye+=4,1,Et,16,cr,Fr,sn)}function ks(Ee,Ye,Et,cr,Fr,sn,je,oe){bn(Ee,Ye,Fr,1,8,sn,je,oe),bn(Et,cr,Fr,1,8,sn,je,oe)}function Qs(Ee,Ye,Et,cr,Fr,sn,je,oe){bn(Ee,Ye,1,Fr,8,sn,je,oe),bn(Et,cr,1,Fr,8,sn,je,oe)}function tl(Ee,Ye,Et,cr,Fr,sn,je,oe){Ns(Ee,Ye+4*Fr,Fr,1,8,sn,je,oe),Ns(Et,cr+4*Fr,Fr,1,8,sn,je,oe)}function xs(Ee,Ye,Et,cr,Fr,sn,je,oe){Ns(Ee,Ye+4,1,Fr,8,sn,je,oe),Ns(Et,cr+4,1,Fr,8,sn,je,oe)}function Bs(){this.ba=new zi,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Xi,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function al(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Js(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Vo(){this.ua=0,this.Wa=new Bi,this.vb=new Bi,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new lr,this.yc=new Gt}function No(){this.xb=this.a=0,this.l=new uo,this.ca=new zi,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Br,this.Pb=0,this.wd=new Br,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Vo,this.ab=0,this.gc=st(4,Js),this.Oc=0}function fs(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new uo,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Ds(Ee,Ye,Et,cr,Fr,sn,je){for(Ee=Ee==null?0:Ee[Ye+0],Ye=0;Ye<je;++Ye)Fr[sn+Ye]=Ee+Et[cr+Ye]&255,Ee=Fr[sn+Ye]}function go(Ee,Ye,Et,cr,Fr,sn,je){var oe;if(Ee==null)Ds(null,null,Et,cr,Fr,sn,je);else for(oe=0;oe<je;++oe)Fr[sn+oe]=Ee[Ye+oe]+Et[cr+oe]&255}function Ht(Ee,Ye,Et,cr,Fr,sn,je){if(Ee==null)Ds(null,null,Et,cr,Fr,sn,je);else{var oe,Oe=Ee[Ye+0],$e=Oe,bt=Oe;for(oe=0;oe<je;++oe)$e=bt+(Oe=Ee[Ye+oe])-$e,bt=Et[cr+oe]+(-256&$e?0>$e?0:255:$e)&255,$e=Oe,Fr[sn+oe]=bt}}function ar(Ee,Ye,Et,cr){var Fr=Ye.width,sn=Ye.o;if(Ne(Ee!=null&&Ye!=null),0>Et||0>=cr||Et+cr>sn)return null;if(!Ee.Cc){if(Ee.ga==null){var je;if(Ee.ga=new fs,(je=Ee.ga==null)||(je=Ye.width*Ye.o,Ne(Ee.Gb.length==0),Ee.Gb=Ze(je),Ee.Uc=0,Ee.Gb==null?je=0:(Ee.mb=Ee.Gb,Ee.nb=Ee.Uc,Ee.rc=null,je=1),je=!je),!je){je=Ee.ga;var oe=Ee.Fa,Oe=Ee.P,$e=Ee.qc,bt=Ee.mb,Vt=Ee.nb,er=Oe+1,ir=$e-1,zr=je.l;if(Ne(oe!=null&&bt!=null&&Ye!=null),Te[0]=null,Te[1]=Ds,Te[2]=go,Te[3]=Ht,je.ca=bt,je.tb=Vt,je.c=Ye.width,je.i=Ye.height,Ne(0<je.c&&0<je.i),1>=$e)Ye=0;else if(je.$a=oe[Oe+0]>>0&3,je.Z=oe[Oe+0]>>2&3,je.Lc=oe[Oe+0]>>4&3,Oe=oe[Oe+0]>>6&3,0>je.$a||1<je.$a||4<=je.Z||1<je.Lc||Oe)Ye=0;else if(zr.put=Ca,zr.ac=ca,zr.bc=na,zr.ma=je,zr.width=Ye.width,zr.height=Ye.height,zr.Da=Ye.Da,zr.v=Ye.v,zr.va=Ye.va,zr.j=Ye.j,zr.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,zn(Ye.m,oe,er,ir),!To(je.c,je.i,1,Ye,null))break t;if(Ye.ab==1&&Ye.gc[0].hc==3&&Va(Ye.s)?(je.ic=1,oe=Ye.c*Ye.i,Ye.Ta=null,Ye.Ua=0,Ye.V=Ze(oe),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=ir>=je.c*je.i;je=!Ye}if(je)return null;Ee.ga.Lc!=1?Ee.Ga=0:cr=sn-Et}Ne(Ee.ga!=null),Ne(Et+cr<=sn);e:{if(Ye=(oe=Ee.ga).c,sn=oe.l.o,oe.$a==0){if(er=Ee.rc,ir=Ee.Vc,zr=Ee.Fa,Oe=Ee.P+1+Et*Ye,$e=Ee.mb,bt=Ee.nb+Et*Ye,Ne(Oe<=Ee.P+Ee.qc),oe.Z!=0)for(Ne(Te[oe.Z]!=null),je=0;je<cr;++je)Te[oe.Z](er,ir,zr,Oe,$e,bt,Ye),er=$e,ir=bt,bt+=Ye,Oe+=Ye;else for(je=0;je<cr;++je)Xe($e,bt,zr,Oe,Ye),er=$e,ir=bt,bt+=Ye,Oe+=Ye;Ee.rc=er,Ee.Vc=ir}else{if(Ne(oe.mc!=null),Ye=Et+cr,Ne((je=oe.mc)!=null),Ne(Ye<=je.i),je.C>=Ye)Ye=1;else if(oe.ic||xe(),oe.ic){oe=je.V,er=je.Ba,ir=je.c;var hn=je.i,Wr=(zr=1,Oe=je.$/ir,$e=je.$%ir,bt=je.m,Vt=je.s,je.$),jr=ir*hn,ln=ir*Ye,yn=Vt.wc,Wn=Wr<ln?Aa(Vt,$e,Oe):null;Ne(Wr<=jr),Ne(Ye<=hn),Ne(Va(Vt));t:for(;;){for(;!bt.h&&Wr<ln;){if($e&yn||(Wn=Aa(Vt,$e,Oe)),Ne(Wn!=null),ai(bt),256>(hn=ga(Wn.G[0],Wn.H[0],bt)))oe[er+Wr]=hn,++Wr,++$e>=ir&&($e=0,++Oe<=Ye&&!(Oe%16)&&io(je,Oe));else{if(!(280>hn)){zr=0;break t}hn=La(hn-256,bt);var Ii,ki=ga(Wn.G[4],Wn.H[4],bt);if(ai(bt),!(Wr>=(ki=va(ir,ki=La(ki,bt)))&&jr-Wr>=hn)){zr=0;break t}for(Ii=0;Ii<hn;++Ii)oe[er+Wr+Ii]=oe[er+Wr+Ii-ki];for(Wr+=hn,$e+=hn;$e>=ir;)$e-=ir,++Oe<=Ye&&!(Oe%16)&&io(je,Oe);Wr<ln&&$e&yn&&(Wn=Aa(Vt,$e,Oe))}Ne(bt.h==Gn(bt))}io(je,Oe>Ye?Ye:Oe);break t}!zr||bt.h&&Wr<jr?(zr=0,je.a=bt.h?5:3):je.$=Wr,Ye=zr}else Ye=oo(je,je.V,je.Ba,je.c,je.i,Ye,So);if(!Ye){cr=0;break e}}Et+cr>=sn&&(Ee.Cc=1),cr=1}if(!cr)return null;if(Ee.Cc&&((cr=Ee.ga)!=null&&(cr.mc=null),Ee.ga=null,0<Ee.Ga))return alert("todo:WebPDequantizeLevels"),null}return Ee.nb+Et*Fr}function In(Ee,Ye,Et,cr,Fr,sn){for(;0<Fr--;){var je,oe=Ee,Oe=Ye+(Et?1:0),$e=Ee,bt=Ye+(Et?0:3);for(je=0;je<cr;++je){var Vt=$e[bt+4*je];Vt!=255&&(Vt*=32897,oe[Oe+4*je+0]=oe[Oe+4*je+0]*Vt>>23,oe[Oe+4*je+1]=oe[Oe+4*je+1]*Vt>>23,oe[Oe+4*je+2]=oe[Oe+4*je+2]*Vt>>23)}Ye+=sn}}function hi(Ee,Ye,Et,cr,Fr){for(;0<cr--;){var sn;for(sn=0;sn<Et;++sn){var je=Ee[Ye+2*sn+0],oe=15&($e=Ee[Ye+2*sn+1]),Oe=4369*oe,$e=(240&$e|$e>>4)*Oe>>16;Ee[Ye+2*sn+0]=(240&je|je>>4)*Oe>>16&240|(15&je|je<<4)*Oe>>16>>4&15,Ee[Ye+2*sn+1]=240&$e|oe}Ye+=Fr}}function Rt(Ee,Ye,Et,cr,Fr,sn,je,oe){var Oe,$e,bt=255;for($e=0;$e<Fr;++$e){for(Oe=0;Oe<cr;++Oe){var Vt=Ee[Ye+Oe];sn[je+4*Oe]=Vt,bt&=Vt}Ye+=Et,je+=oe}return bt!=255}function ce(Ee,Ye,Et,cr,Fr){var sn;for(sn=0;sn<Fr;++sn)Et[cr+sn]=Ee[Ye+sn]>>8}function xe(){Wl=In,au=hi,Nl=Rt,$l=ce}function Ie(Ee,Ye,Et){Xt[Ee]=function(cr,Fr,sn,je,oe,Oe,$e,bt,Vt,er,ir,zr,hn,Wr,jr,ln,yn){var Wn,Ii=yn-1>>1,ki=oe[Oe+0]|$e[bt+0]<<16,da=Vt[er+0]|ir[zr+0]<<16;Ne(cr!=null);var $i=3*ki+da+131074>>2;for(Ye(cr[Fr+0],255&$i,$i>>16,hn,Wr),sn!=null&&($i=3*da+ki+131074>>2,Ye(sn[je+0],255&$i,$i>>16,jr,ln)),Wn=1;Wn<=Ii;++Wn){var Qa=oe[Oe+Wn]|$e[bt+Wn]<<16,ya=Vt[er+Wn]|ir[zr+Wn]<<16,fo=ki+Qa+da+ya+524296,za=fo+2*(Qa+da)>>3;$i=za+ki>>1,ki=(fo=fo+2*(ki+ya)>>3)+Qa>>1,Ye(cr[Fr+2*Wn-1],255&$i,$i>>16,hn,Wr+(2*Wn-1)*Et),Ye(cr[Fr+2*Wn-0],255&ki,ki>>16,hn,Wr+(2*Wn-0)*Et),sn!=null&&($i=fo+da>>1,ki=za+ya>>1,Ye(sn[je+2*Wn-1],255&$i,$i>>16,jr,ln+(2*Wn-1)*Et),Ye(sn[je+2*Wn+0],255&ki,ki>>16,jr,ln+(2*Wn+0)*Et)),ki=Qa,da=ya}1&yn||($i=3*ki+da+131074>>2,Ye(cr[Fr+yn-1],255&$i,$i>>16,hn,Wr+(yn-1)*Et),sn!=null&&($i=3*da+ki+131074>>2,Ye(sn[je+yn-1],255&$i,$i>>16,jr,ln+(yn-1)*Et)))}}function Qe(){Ve[Sl]=ot,Ve[Su]=Qt,Ve[vu]=ht,Ve[Au]=Cr,Ve[Ol]=wr,Ve[cu]=Kr,Ve[du]=Jr,Ve[Lu]=Qt,Ve[zl]=Cr,Ve[ru]=wr,Ve[ou]=Kr}function kt(Ee){return Ee&~Vi?0>Ee?0:255:Ee>>ua}function or(Ee,Ye){return kt((19077*Ee>>8)+(26149*Ye>>8)-14234)}function Qr(Ee,Ye,Et){return kt((19077*Ee>>8)-(6419*Ye>>8)-(13320*Et>>8)+8708)}function fn(Ee,Ye){return kt((19077*Ee>>8)+(33050*Ye>>8)-17685)}function Ln(Ee,Ye,Et,cr,Fr){cr[Fr+0]=or(Ee,Et),cr[Fr+1]=Qr(Ee,Ye,Et),cr[Fr+2]=fn(Ee,Ye)}function ui(Ee,Ye,Et,cr,Fr){cr[Fr+0]=fn(Ee,Ye),cr[Fr+1]=Qr(Ee,Ye,Et),cr[Fr+2]=or(Ee,Et)}function wi(Ee,Ye,Et,cr,Fr){var sn=Qr(Ee,Ye,Et);Ye=sn<<3&224|fn(Ee,Ye)>>3,cr[Fr+0]=248&or(Ee,Et)|sn>>5,cr[Fr+1]=Ye}function gi(Ee,Ye,Et,cr,Fr){var sn=240&fn(Ee,Ye)|15;cr[Fr+0]=240&or(Ee,Et)|Qr(Ee,Ye,Et)>>4,cr[Fr+1]=sn}function Qi(Ee,Ye,Et,cr,Fr){cr[Fr+0]=255,Ln(Ee,Ye,Et,cr,Fr+1)}function sa(Ee,Ye,Et,cr,Fr){ui(Ee,Ye,Et,cr,Fr),cr[Fr+3]=255}function Ua(Ee,Ye,Et,cr,Fr){Ln(Ee,Ye,Et,cr,Fr),cr[Fr+3]=255}function _o(Ee,Ye){return 0>Ee?0:Ee>Ye?Ye:Ee}function no(Ee,Ye,Et){Xt[Ee]=function(cr,Fr,sn,je,oe,Oe,$e,bt,Vt){for(var er=bt+(-2&Vt)*Et;bt!=er;)Ye(cr[Fr+0],sn[je+0],oe[Oe+0],$e,bt),Ye(cr[Fr+1],sn[je+0],oe[Oe+0],$e,bt+Et),Fr+=2,++je,++Oe,bt+=2*Et;1&Vt&&Ye(cr[Fr+0],sn[je+0],oe[Oe+0],$e,bt)}}function Wo(Ee,Ye,Et){return Et==0?Ee==0?Ye==0?6:5:Ye==0?4:0:Et}function Zo(Ee,Ye,Et,cr,Fr){switch(Ee>>>30){case 3:Is(Ye,Et,cr,Fr,0);break;case 2:es(Ye,Et,cr,Fr);break;case 1:Ps(Ye,Et,cr,Fr)}}function Bo(Ee,Ye){var Et,cr,Fr=Ye.M,sn=Ye.Nb,je=Ee.oc,oe=Ee.pc+40,Oe=Ee.oc,$e=Ee.pc+584,bt=Ee.oc,Vt=Ee.pc+600;for(Et=0;16>Et;++Et)je[oe+32*Et-1]=129;for(Et=0;8>Et;++Et)Oe[$e+32*Et-1]=129,bt[Vt+32*Et-1]=129;for(0<Fr?je[oe-1-32]=Oe[$e-1-32]=bt[Vt-1-32]=129:(rt(je,oe-32-1,127,21),rt(Oe,$e-32-1,127,9),rt(bt,Vt-32-1,127,9)),cr=0;cr<Ee.za;++cr){var er=Ye.ya[Ye.aa+cr];if(0<cr){for(Et=-1;16>Et;++Et)Xe(je,oe+32*Et-4,je,oe+32*Et+12,4);for(Et=-1;8>Et;++Et)Xe(Oe,$e+32*Et-4,Oe,$e+32*Et+4,4),Xe(bt,Vt+32*Et-4,bt,Vt+32*Et+4,4)}var ir=Ee.Gd,zr=Ee.Hd+cr,hn=er.ad,Wr=er.Hc;if(0<Fr&&(Xe(je,oe-32,ir[zr].y,0,16),Xe(Oe,$e-32,ir[zr].f,0,8),Xe(bt,Vt-32,ir[zr].ea,0,8)),er.Za){var jr=je,ln=oe-32+16;for(0<Fr&&(cr>=Ee.za-1?rt(jr,ln,ir[zr].y[15],4):Xe(jr,ln,ir[zr+1].y,0,4)),Et=0;4>Et;Et++)jr[ln+128+Et]=jr[ln+256+Et]=jr[ln+384+Et]=jr[ln+0+Et];for(Et=0;16>Et;++Et,Wr<<=2)jr=je,ln=oe+ys[Et],H[er.Ob[Et]](jr,ln),Zo(Wr,hn,16*+Et,jr,ln)}else if(jr=Wo(cr,Fr,er.Ob[0]),W[jr](je,oe),Wr!=0)for(Et=0;16>Et;++Et,Wr<<=2)Zo(Wr,hn,16*+Et,je,oe+ys[Et]);for(Et=er.Gc,jr=Wo(cr,Fr,er.Dd),Z[jr](Oe,$e),Z[jr](bt,Vt),Wr=hn,jr=Oe,ln=$e,255&(er=Et>>0)&&(170&er?Ls(Wr,256,jr,ln):ml(Wr,256,jr,ln)),er=bt,Wr=Vt,255&(Et>>=8)&&(170&Et?Ls(hn,320,er,Wr):ml(hn,320,er,Wr)),Fr<Ee.Ub-1&&(Xe(ir[zr].y,0,je,oe+480,16),Xe(ir[zr].f,0,Oe,$e+224,8),Xe(ir[zr].ea,0,bt,Vt+224,8)),Et=8*sn*Ee.B,ir=Ee.sa,zr=Ee.ta+16*cr+16*sn*Ee.R,hn=Ee.qa,er=Ee.ra+8*cr+Et,Wr=Ee.Ha,jr=Ee.Ia+8*cr+Et,Et=0;16>Et;++Et)Xe(ir,zr+Et*Ee.R,je,oe+32*Et,16);for(Et=0;8>Et;++Et)Xe(hn,er+Et*Ee.B,Oe,$e+32*Et,8),Xe(Wr,jr+Et*Ee.B,bt,Vt+32*Et,8)}}function Es(Ee,Ye,Et,cr,Fr,sn,je,oe,Oe){var $e=[0],bt=[0],Vt=0,er=Oe!=null?Oe.kd:0,ir=Oe!=null?Oe:new al;if(Ee==null||12>Et)return 7;ir.data=Ee,ir.w=Ye,ir.ha=Et,Ye=[Ye],Et=[Et],ir.gb=[ir.gb];e:{var zr=Ye,hn=Et,Wr=ir.gb;if(Ne(Ee!=null),Ne(hn!=null),Ne(Wr!=null),Wr[0]=0,12<=hn[0]&&!He(Ee,zr[0],"RIFF")){if(He(Ee,zr[0]+8,"WEBP")){Wr=3;break e}var jr=ba(Ee,zr[0]+4);if(12>jr||4294967286<jr){Wr=3;break e}if(er&&jr>hn[0]-8){Wr=7;break e}Wr[0]=jr,zr[0]+=12,hn[0]-=12}Wr=0}if(Wr!=0)return Wr;for(jr=0<ir.gb[0],Et=Et[0];;){e:{var ln=Ee;hn=Ye,Wr=Et;var yn=$e,Wn=bt,Ii=zr=[0];if(($i=Vt=[Vt])[0]=0,8>Wr[0])Wr=7;else{if(!He(ln,hn[0],"VP8X")){if(ba(ln,hn[0]+4)!=10){Wr=3;break e}if(18>Wr[0]){Wr=7;break e}var ki=ba(ln,hn[0]+8),da=1+aa(ln,hn[0]+12);if(2147483648<=da*(ln=1+aa(ln,hn[0]+15))){Wr=3;break e}Ii!=null&&(Ii[0]=ki),yn!=null&&(yn[0]=da),Wn!=null&&(Wn[0]=ln),hn[0]+=18,Wr[0]-=18,$i[0]=1}Wr=0}}if(Vt=Vt[0],zr=zr[0],Wr!=0)return Wr;if(hn=!!(2&zr),!jr&&Vt)return 3;if(sn!=null&&(sn[0]=!!(16&zr)),je!=null&&(je[0]=hn),oe!=null&&(oe[0]=0),je=$e[0],zr=bt[0],Vt&&hn&&Oe==null){Wr=0;break}if(4>Et){Wr=7;break}if(jr&&Vt||!jr&&!Vt&&!He(Ee,Ye[0],"ALPH")){Et=[Et],ir.na=[ir.na],ir.P=[ir.P],ir.Sa=[ir.Sa];e:{ki=Ee,Wr=Ye,jr=Et;var $i=ir.gb;yn=ir.na,Wn=ir.P,Ii=ir.Sa,da=22,Ne(ki!=null),Ne(jr!=null),ln=Wr[0];var Qa=jr[0];for(Ne(yn!=null),Ne(Ii!=null),yn[0]=null,Wn[0]=null,Ii[0]=0;;){if(Wr[0]=ln,jr[0]=Qa,8>Qa){Wr=7;break e}var ya=ba(ki,ln+4);if(4294967286<ya){Wr=3;break e}var fo=8+ya+1&-2;if(da+=fo,0<$i&&da>$i){Wr=3;break e}if(!He(ki,ln,"VP8 ")||!He(ki,ln,"VP8L")){Wr=0;break e}if(Qa[0]<fo){Wr=7;break e}He(ki,ln,"ALPH")||(yn[0]=ki,Wn[0]=ln+8,Ii[0]=ya),ln+=fo,Qa-=fo}}if(Et=Et[0],ir.na=ir.na[0],ir.P=ir.P[0],ir.Sa=ir.Sa[0],Wr!=0)break}Et=[Et],ir.Ja=[ir.Ja],ir.xa=[ir.xa];e:if($i=Ee,Wr=Ye,jr=Et,yn=ir.gb[0],Wn=ir.Ja,Ii=ir.xa,ki=Wr[0],ln=!He($i,ki,"VP8 "),da=!He($i,ki,"VP8L"),Ne($i!=null),Ne(jr!=null),Ne(Wn!=null),Ne(Ii!=null),8>jr[0])Wr=7;else{if(ln||da){if($i=ba($i,ki+4),12<=yn&&$i>yn-12){Wr=3;break e}if(er&&$i>jr[0]-8){Wr=7;break e}Wn[0]=$i,Wr[0]+=8,jr[0]-=8,Ii[0]=da}else Ii[0]=5<=jr[0]&&$i[ki+0]==47&&!($i[ki+4]>>5),Wn[0]=jr[0];Wr=0}if(Et=Et[0],ir.Ja=ir.Ja[0],ir.xa=ir.xa[0],Ye=Ye[0],Wr!=0)break;if(4294967286<ir.Ja)return 3;if(oe==null||hn||(oe[0]=ir.xa?2:1),je=[je],zr=[zr],ir.xa){if(5>Et){Wr=7;break}oe=je,er=zr,hn=sn,Ee==null||5>Et?Ee=0:5<=Et&&Ee[Ye+0]==47&&!(Ee[Ye+4]>>5)?(jr=[0],$i=[0],yn=[0],zn(Wn=new Br,Ee,Ye,Et),Pa(Wn,jr,$i,yn)?(oe!=null&&(oe[0]=jr[0]),er!=null&&(er[0]=$i[0]),hn!=null&&(hn[0]=yn[0]),Ee=1):Ee=0):Ee=0}else{if(10>Et){Wr=7;break}oe=zr,Ee==null||10>Et||!Tr(Ee,Ye+3,Et-3)?Ee=0:(er=Ee[Ye+0]|Ee[Ye+1]<<8|Ee[Ye+2]<<16,hn=16383&(Ee[Ye+7]<<8|Ee[Ye+6]),Ee=16383&(Ee[Ye+9]<<8|Ee[Ye+8]),1&er||3<(er>>1&7)||!(er>>4&1)||er>>5>=ir.Ja||!hn||!Ee?Ee=0:(je&&(je[0]=hn),oe&&(oe[0]=Ee),Ee=1))}if(!Ee)return 3;if(je=je[0],zr=zr[0],Vt&&($e[0]!=je||bt[0]!=zr))return 3;Oe!=null&&(Oe[0]=ir,Oe.offset=Ye-Oe.w,Ne(4294967286>Ye-Oe.w),Ne(Oe.offset==Oe.ha-Et));break}return Wr==0||Wr==7&&Vt&&Oe==null?(sn!=null&&(sn[0]|=ir.na!=null&&0<ir.na.length),cr!=null&&(cr[0]=je),Fr!=null&&(Fr[0]=zr),0):Wr}function As(Ee,Ye,Et){var cr=Ye.width,Fr=Ye.height,sn=0,je=0,oe=cr,Oe=Fr;if(Ye.Da=Ee!=null&&0<Ee.Da,Ye.Da&&(oe=Ee.cd,Oe=Ee.bd,sn=Ee.v,je=Ee.j,11>Et||(sn&=-2,je&=-2),0>sn||0>je||0>=oe||0>=Oe||sn+oe>cr||je+Oe>Fr))return 0;if(Ye.v=sn,Ye.j=je,Ye.va=sn+oe,Ye.o=je+Oe,Ye.U=oe,Ye.T=Oe,Ye.da=Ee!=null&&0<Ee.da,Ye.da){if(!ha(oe,Oe,Et=[Ee.ib],sn=[Ee.hb]))return 0;Ye.ib=Et[0],Ye.hb=sn[0]}return Ye.ob=Ee!=null&&Ee.ob,Ye.Kb=Ee==null||!Ee.Sd,Ye.da&&(Ye.ob=Ye.ib<3*cr/4&&Ye.hb<3*Fr/4,Ye.Kb=0),1}function $o(Ee){if(Ee==null)return 2;if(11>Ee.S){var Ye=Ee.f.RGBA;Ye.fb+=(Ee.height-1)*Ye.A,Ye.A=-Ye.A}else Ye=Ee.f.kb,Ee=Ee.height,Ye.O+=(Ee-1)*Ye.fa,Ye.fa=-Ye.fa,Ye.N+=(Ee-1>>1)*Ye.Ab,Ye.Ab=-Ye.Ab,Ye.W+=(Ee-1>>1)*Ye.Db,Ye.Db=-Ye.Db,Ye.F!=null&&(Ye.J+=(Ee-1)*Ye.lb,Ye.lb=-Ye.lb);return 0}function Do(Ee,Ye,Et,cr){if(cr==null||0>=Ee||0>=Ye)return 2;if(Et!=null){if(Et.Da){var Fr=Et.cd,sn=Et.bd,je=-2&Et.v,oe=-2&Et.j;if(0>je||0>oe||0>=Fr||0>=sn||je+Fr>Ee||oe+sn>Ye)return 2;Ee=Fr,Ye=sn}if(Et.da){if(!ha(Ee,Ye,Fr=[Et.ib],sn=[Et.hb]))return 2;Ee=Fr[0],Ye=sn[0]}}cr.width=Ee,cr.height=Ye;e:{var Oe=cr.width,$e=cr.height;if(Ee=cr.S,0>=Oe||0>=$e||!(Ee>=Sl&&13>Ee))Ee=2;else{if(0>=cr.Rd&&cr.sd==null){je=sn=Fr=Ye=0;var bt=(oe=Oe*Hs[Ee])*$e;if(11>Ee||(sn=($e+1)/2*(Ye=(Oe+1)/2),Ee==12&&(je=(Fr=Oe)*$e)),($e=Ze(bt+2*sn+je))==null){Ee=1;break e}cr.sd=$e,11>Ee?((Oe=cr.f.RGBA).eb=$e,Oe.fb=0,Oe.A=oe,Oe.size=bt):((Oe=cr.f.kb).y=$e,Oe.O=0,Oe.fa=oe,Oe.Fd=bt,Oe.f=$e,Oe.N=0+bt,Oe.Ab=Ye,Oe.Cd=sn,Oe.ea=$e,Oe.W=0+bt+sn,Oe.Db=Ye,Oe.Ed=sn,Ee==12&&(Oe.F=$e,Oe.J=0+bt+2*sn),Oe.Tc=je,Oe.lb=Fr)}if(Ye=1,Fr=cr.S,sn=cr.width,je=cr.height,Fr>=Sl&&13>Fr)if(11>Fr)Ee=cr.f.RGBA,Ye&=(oe=Math.abs(Ee.A))*(je-1)+sn<=Ee.size,Ye&=oe>=sn*Hs[Fr],Ye&=Ee.eb!=null;else{Ee=cr.f.kb,oe=(sn+1)/2,bt=(je+1)/2,Oe=Math.abs(Ee.fa),$e=Math.abs(Ee.Ab);var Vt=Math.abs(Ee.Db),er=Math.abs(Ee.lb),ir=er*(je-1)+sn;Ye&=Oe*(je-1)+sn<=Ee.Fd,Ye&=$e*(bt-1)+oe<=Ee.Cd,Ye=(Ye&=Vt*(bt-1)+oe<=Ee.Ed)&Oe>=sn&$e>=oe&Vt>=oe,Ye&=Ee.y!=null,Ye&=Ee.f!=null,Ye&=Ee.ea!=null,Fr==12&&(Ye&=er>=sn,Ye&=ir<=Ee.Tc,Ye&=Ee.F!=null)}else Ye=0;Ee=Ye?0:2}}return Ee!=0||Et!=null&&Et.fd&&(Ee=$o(cr)),Ee}var vo=64,Ms=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],rl=24,gs=32,Ra=8,dl=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Ir("Predictor0","PredictorAdd0"),Xt.Predictor0=function(){return 4278190080},Xt.Predictor1=function(Ee){return Ee},Xt.Predictor2=function(Ee,Ye,Et){return Ye[Et+0]},Xt.Predictor3=function(Ee,Ye,Et){return Ye[Et+1]},Xt.Predictor4=function(Ee,Ye,Et){return Ye[Et-1]},Xt.Predictor5=function(Ee,Ye,Et){return En(En(Ee,Ye[Et+1]),Ye[Et+0])},Xt.Predictor6=function(Ee,Ye,Et){return En(Ee,Ye[Et-1])},Xt.Predictor7=function(Ee,Ye,Et){return En(Ee,Ye[Et+0])},Xt.Predictor8=function(Ee,Ye,Et){return En(Ye[Et-1],Ye[Et+0])},Xt.Predictor9=function(Ee,Ye,Et){return En(Ye[Et+0],Ye[Et+1])},Xt.Predictor10=function(Ee,Ye,Et){return En(En(Ee,Ye[Et-1]),En(Ye[Et+0],Ye[Et+1]))},Xt.Predictor11=function(Ee,Ye,Et){var cr=Ye[Et+0];return 0>=Vr(cr>>24&255,Ee>>24&255,(Ye=Ye[Et-1])>>24&255)+Vr(cr>>16&255,Ee>>16&255,Ye>>16&255)+Vr(cr>>8&255,Ee>>8&255,Ye>>8&255)+Vr(255&cr,255&Ee,255&Ye)?cr:Ee},Xt.Predictor12=function(Ee,Ye,Et){var cr=Ye[Et+0];return(fr((Ee>>24&255)+(cr>>24&255)-((Ye=Ye[Et-1])>>24&255))<<24|fr((Ee>>16&255)+(cr>>16&255)-(Ye>>16&255))<<16|fr((Ee>>8&255)+(cr>>8&255)-(Ye>>8&255))<<8|fr((255&Ee)+(255&cr)-(255&Ye)))>>>0},Xt.Predictor13=function(Ee,Ye,Et){var cr=Ye[Et-1];return(kr((Ee=En(Ee,Ye[Et+0]))>>24&255,cr>>24&255)<<24|kr(Ee>>16&255,cr>>16&255)<<16|kr(Ee>>8&255,cr>>8&255)<<8|kr(Ee>>0&255,cr>>0&255))>>>0};var fl=Xt.PredictorAdd0;Xt.PredictorAdd1=un,Ir("Predictor2","PredictorAdd2"),Ir("Predictor3","PredictorAdd3"),Ir("Predictor4","PredictorAdd4"),Ir("Predictor5","PredictorAdd5"),Ir("Predictor6","PredictorAdd6"),Ir("Predictor7","PredictorAdd7"),Ir("Predictor8","PredictorAdd8"),Ir("Predictor9","PredictorAdd9"),Ir("Predictor10","PredictorAdd10"),Ir("Predictor11","PredictorAdd11"),Ir("Predictor12","PredictorAdd12"),Ir("Predictor13","PredictorAdd13");var Us=Xt.PredictorAdd2;Lr("ColorIndexInverseTransform","MapARGB","32b",function(Ee){return Ee>>8&255},function(Ee){return Ee}),Lr("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(Ee){return Ee},function(Ee){return Ee>>8&255});var Os,Xs=Xt.ColorIndexInverseTransform,Ql=Xt.MapARGB,Ul=Xt.VP8LColorIndexInverseTransformAlpha,wl=Xt.MapAlpha,Ts=Xt.VP8LPredictorsAdd=[];Ts.length=16,(Xt.VP8LPredictors=[]).length=16,(Xt.VP8LPredictorsAdd_C=[]).length=16,(Xt.VP8LPredictors_C=[]).length=16;var Ws,Tl,pl,jo,yo,qo,ps,Is,es,Ls,Ps,ml,Rl,_l,Bl,jl,kl,Xl,ol,Ys,sl,nl,xl,Ml,Wl,au,Nl,$l,tu=Ze(511),Iu=Ze(2041),pu=Ze(225),mu=Ze(767),gu=0,ql=Iu,Cl=pu,ll=mu,Hl=tu,Sl=0,Su=1,vu=2,Au=3,Ol=4,cu=5,du=6,Lu=7,zl=8,ru=9,ou=10,su=[2,3,7],Jl=[3,3,11],Du=[280,256,256,256,40],Ru=[0,1,1,1,0],Zl=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],yu=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],xu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],bu=8,hl=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Dl=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],nu=null,Nu=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],hu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],fu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],iu=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Ae=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],q=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],L=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],W=[],H=[],Z=[],ne=1,ve=2,Te=[],Ve=[];Ie("UpsampleRgbLinePair",Ln,3),Ie("UpsampleBgrLinePair",ui,3),Ie("UpsampleRgbaLinePair",Ua,4),Ie("UpsampleBgraLinePair",sa,4),Ie("UpsampleArgbLinePair",Qi,4),Ie("UpsampleRgba4444LinePair",gi,2),Ie("UpsampleRgb565LinePair",wi,2);var ot=Xt.UpsampleRgbLinePair,ht=Xt.UpsampleBgrLinePair,Qt=Xt.UpsampleRgbaLinePair,Cr=Xt.UpsampleBgraLinePair,wr=Xt.UpsampleArgbLinePair,Kr=Xt.UpsampleRgba4444LinePair,Jr=Xt.UpsampleRgb565LinePair,Cn=16,Nn=1<<Cn-1,Jn=-227,bi=482,ua=6,Vi=(256<<ua)-1,Zi=0,ka=Ze(256),Ga=Ze(256),Ba=Ze(256),Sa=Ze(256),Go=Ze(bi-Jn),bs=Ze(bi-Jn);no("YuvToRgbRow",Ln,3),no("YuvToBgrRow",ui,3),no("YuvToRgbaRow",Ua,4),no("YuvToBgraRow",sa,4),no("YuvToArgbRow",Qi,4),no("YuvToRgba4444Row",gi,2),no("YuvToRgb565Row",wi,2);var ys=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Cs=[0,2,8],js=[8,7,6,4,4,2,2,2,1,1,1,1],ws=1;this.WebPDecodeRGBA=function(Ee,Ye,Et,cr,Fr){var sn=Su,je=new Bs,oe=new zi;je.ba=oe,oe.S=sn,oe.width=[oe.width],oe.height=[oe.height];var Oe=oe.width,$e=oe.height,bt=new ea;if(bt==null||Ee==null)var Vt=2;else Ne(bt!=null),Vt=Es(Ee,Ye,Et,bt.width,bt.height,bt.Pd,bt.Qd,bt.format,null);if(Vt!=0?Oe=0:(Oe!=null&&(Oe[0]=bt.width[0]),$e!=null&&($e[0]=bt.height[0]),Oe=1),Oe){oe.width=oe.width[0],oe.height=oe.height[0],cr!=null&&(cr[0]=oe.width),Fr!=null&&(Fr[0]=oe.height);e:{if(cr=new uo,(Fr=new al).data=Ee,Fr.w=Ye,Fr.ha=Et,Fr.kd=1,Ye=[0],Ne(Fr!=null),((Ee=Es(Fr.data,Fr.w,Fr.ha,null,null,null,Ye,null,Fr))==0||Ee==7)&&Ye[0]&&(Ee=4),(Ye=Ee)==0){if(Ne(je!=null),cr.data=Fr.data,cr.w=Fr.w+Fr.offset,cr.ha=Fr.ha-Fr.offset,cr.put=Ca,cr.ac=ca,cr.bc=na,cr.ma=je,Fr.xa){if((Ee=mo())==null){je=1;break e}if(function(er,ir){var zr=[0],hn=[0],Wr=[0];t:for(;;){if(er==null)return 0;if(ir==null)return er.a=2,0;if(er.l=ir,er.a=0,zn(er.m,ir.data,ir.w,ir.ha),!Pa(er.m,zr,hn,Wr)){er.a=3;break t}if(er.xb=ve,ir.width=zr[0],ir.height=hn[0],!To(zr[0],hn[0],1,er,null))break t;return 1}return Ne(er.a!=0),0}(Ee,cr)){if(cr=(Ye=Do(cr.width,cr.height,je.Oa,je.ba))==0){t:{cr=Ee;r:for(;;){if(cr==null){cr=0;break t}if(Ne(cr.s.yc!=null),Ne(cr.s.Ya!=null),Ne(0<cr.s.Wb),Ne((Et=cr.l)!=null),Ne((Fr=Et.ma)!=null),cr.xb!=0){if(cr.ca=Fr.ba,cr.tb=Fr.tb,Ne(cr.ca!=null),!As(Fr.Oa,Et,Au)){cr.a=2;break r}if(!ao(cr,Et.width))break r;if(Et.da)break r;if((Et.da||Mi(cr.ca.S))&&xe(),11>cr.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),cr.ca.f.kb.F!=null&&xe()),cr.Pb&&0<cr.s.ua&&cr.s.vb.X==null&&!Ai(cr.s.vb,cr.s.Wa.Xa)){cr.a=1;break r}cr.xb=0}if(!oo(cr,cr.V,cr.Ba,cr.c,cr.i,Et.o,_a))break r;Fr.Dc=cr.Ma,cr=1;break t}Ne(cr.a!=0),cr=0}cr=!cr}cr&&(Ye=Ee.a)}else Ye=Ee.a}else{if((Ee=new Ha)==null){je=1;break e}if(Ee.Fa=Fr.na,Ee.P=Fr.P,Ee.qc=Fr.Sa,qr(Ee,cr)){if((Ye=Do(cr.width,cr.height,je.Oa,je.ba))==0){if(Ee.Aa=0,Et=je.Oa,Ne((Fr=Ee)!=null),Et!=null){if(0<(Oe=0>(Oe=Et.Md)?0:100<Oe?255:255*Oe/100)){for($e=bt=0;4>$e;++$e)12>(Vt=Fr.pb[$e]).lc&&(Vt.ia=Oe*js[0>Vt.lc?0:Vt.lc]>>3),bt|=Vt.ia;bt&&(alert("todo:VP8InitRandom"),Fr.ia=1)}Fr.Ga=Et.Id,100<Fr.Ga?Fr.Ga=100:0>Fr.Ga&&(Fr.Ga=0)}dn(Ee,cr)||(Ye=Ee.a)}}else Ye=Ee.a}Ye==0&&je.Oa!=null&&je.Oa.fd&&(Ye=$o(je.ba))}je=Ye}sn=je!=0?null:11>sn?oe.f.RGBA.eb:oe.f.kb.y}else sn=null;return sn};var Hs=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function hr(Vn,Xt){for(var It="",Pt=0;Pt<4;Pt++)It+=String.fromCharCode(Vn[Xt++]);return It}function Zr(Vn,Xt){return(Vn[Xt+0]<<0|Vn[Xt+1]<<8|Vn[Xt+2]<<16)>>>0}function Xr(Vn,Xt){return(Vn[Xt+0]<<0|Vn[Xt+1]<<8|Vn[Xt+2]<<16|Vn[Xt+3]<<24)>>>0}new pt;var pn=[0],gr=[0],Kn=[],Rr=new pt,Pn=nt,an=function(Vn,Xt){var It={},Pt=0,Kt=!1,Gt=0,Dt=0;if(It.frames=[],!function(Br,_n,Gn,Zn){for(var ai=0;ai<Zn;ai++)if(Br[_n+ai]!=Gn.charCodeAt(ai))return!0;return!1}(Vn,Xt,"RIFF",4)){var lr,Ar;for(Xr(Vn,Xt+=4),Xt+=8;Xt<Vn.length;){var yr=hr(Vn,Xt),Mr=Xr(Vn,Xt+=4);Xt+=4;var zn=Mr+(1&Mr);switch(yr){case"VP8 ":case"VP8L":It.frames[Pt]===void 0&&(It.frames[Pt]={}),(gn=It.frames[Pt]).src_off=Kt?Dt:Xt-8,gn.src_size=Gt+Mr+8,Pt++,Kt&&(Kt=!1,Gt=0,Dt=0);break;case"VP8X":(gn=It.header={}).feature_flags=Vn[Xt];var Rn=Xt+4;gn.canvas_width=1+Zr(Vn,Rn),Rn+=3,gn.canvas_height=1+Zr(Vn,Rn),Rn+=3;break;case"ALPH":Kt=!0,Gt=zn+8,Dt=Xt-8;break;case"ANIM":(gn=It.header).bgcolor=Xr(Vn,Xt),Rn=Xt+4,gn.loop_count=(lr=Vn)[(Ar=Rn)+0]<<0|lr[Ar+1]<<8,Rn+=2;break;case"ANMF":var di,gn;(gn=It.frames[Pt]={}).offset_x=2*Zr(Vn,Xt),Xt+=3,gn.offset_y=2*Zr(Vn,Xt),Xt+=3,gn.width=1+Zr(Vn,Xt),Xt+=3,gn.height=1+Zr(Vn,Xt),Xt+=3,gn.duration=Zr(Vn,Xt),Xt+=3,di=Vn[Xt++],gn.dispose=1&di,gn.blend=di>>1&1}yr!="ANMF"&&(Xt+=zn)}return It}}(Pn,0);an.response=Pn,an.rgbaoutput=!0,an.dataurl=!1;var Ur=an.header?an.header:null,ii=an.frames?an.frames:null;if(Ur){Ur.loop_counter=Ur.loop_count,pn=[Ur.canvas_height],gr=[Ur.canvas_width];for(var _i=0;_i<ii.length&&ii[_i].blend!=0;_i++);}var Gi=ii[0],tn=Rr.WebPDecodeRGBA(Pn,Gi.src_off,Gi.src_size,gr,pn);Gi.rgba=tn,Gi.imgwidth=gr[0],Gi.imgheight=pn[0];for(var Tn=0;Tn<gr[0]*pn[0]*4;Tn++)Kn[Tn]=tn[Tn];return this.width=gr,this.height=pn,this.data=Kn,this}!function(nt){var Ne=function(){return typeof v.b=="function"},He=function(gr,Kn,Rr,Pn){var an=4,Ur=st;switch(Pn){case nt.image_compression.FAST:an=1,Ur=Ze;break;case nt.image_compression.MEDIUM:an=6,Ur=xt;break;case nt.image_compression.SLOW:an=9,Ur=pt}gr=Xe(gr,Kn,Rr,Ur);var ii=Object(v.b)(gr,{level:an});return nt.__addimage__.arrayBufferToBinaryString(ii)},Xe=function(gr,Kn,Rr,Pn){for(var an,Ur,ii,_i=gr.length/Kn,Gi=new Uint8Array(gr.length+_i),tn=Zr(),Tn=0;Tn<_i;Tn+=1){if(ii=Tn*Kn,an=gr.subarray(ii,ii+Kn),Pn)Gi.set(Pn(an,Rr,Ur),ii+Tn);else{for(var Vn,Xt=tn.length,It=[];Vn<Xt;Vn+=1)It[Vn]=tn[Vn](an,Rr,Ur);var Pt=Xr(It.concat());Gi.set(It[Pt],ii+Tn)}Ur=an}return Gi},rt=function(gr){var Kn=Array.apply([],gr);return Kn.unshift(0),Kn},Ze=function(gr,Kn){var Rr,Pn=[],an=gr.length;Pn[0]=1;for(var Ur=0;Ur<an;Ur+=1)Rr=gr[Ur-Kn]||0,Pn[Ur+1]=gr[Ur]-Rr+256&255;return Pn},st=function(gr,Kn,Rr){var Pn,an=[],Ur=gr.length;an[0]=2;for(var ii=0;ii<Ur;ii+=1)Pn=Rr&&Rr[ii]||0,an[ii+1]=gr[ii]-Pn+256&255;return an},xt=function(gr,Kn,Rr){var Pn,an,Ur=[],ii=gr.length;Ur[0]=3;for(var _i=0;_i<ii;_i+=1)Pn=gr[_i-Kn]||0,an=Rr&&Rr[_i]||0,Ur[_i+1]=gr[_i]+256-(Pn+an>>>1)&255;return Ur},pt=function(gr,Kn,Rr){var Pn,an,Ur,ii,_i=[],Gi=gr.length;_i[0]=4;for(var tn=0;tn<Gi;tn+=1)Pn=gr[tn-Kn]||0,an=Rr&&Rr[tn]||0,Ur=Rr&&Rr[tn-Kn]||0,ii=hr(Pn,an,Ur),_i[tn+1]=gr[tn]-ii+256&255;return _i},hr=function(gr,Kn,Rr){if(gr===Kn&&Kn===Rr)return gr;var Pn=Math.abs(Kn-Rr),an=Math.abs(gr-Rr),Ur=Math.abs(gr+Kn-Rr-Rr);return Pn<=an&&Pn<=Ur?gr:an<=Ur?Kn:Rr},Zr=function(){return[rt,Ze,st,xt,pt]},Xr=function(gr){var Kn=gr.map(function(Rr){return Rr.reduce(function(Pn,an){return Pn+Math.abs(an)},0)});return Kn.indexOf(Math.min.apply(null,Kn))};nt.processPNG=function(pn,gr,Kn,Rr){var Pn,an,Ur,ii,_i,Gi,tn,Tn,Vn,Xt,It,Pt,Kt,Gt,Dt,lr=this.decode.FLATE_DECODE,Ar="";if(this.__addimage__.isArrayBuffer(pn)&&(pn=new Uint8Array(pn)),this.__addimage__.isArrayBufferView(pn)){if(pn=(Ur=new it(pn)).imgData,an=Ur.bits,Pn=Ur.colorSpace,_i=Ur.colors,[4,6].indexOf(Ur.colorType)!==-1){if(Ur.bits===8){Vn=(Tn=Ur.pixelBitlength==32?new Uint32Array(Ur.decodePixels().buffer):Ur.pixelBitlength==16?new Uint16Array(Ur.decodePixels().buffer):new Uint8Array(Ur.decodePixels().buffer)).length,It=new Uint8Array(Vn*Ur.colors),Xt=new Uint8Array(Vn);var yr,Mr=Ur.pixelBitlength-Ur.bits;for(Gt=0,Dt=0;Gt<Vn;Gt++){for(Kt=Tn[Gt],yr=0;yr<Mr;)It[Dt++]=Kt>>>yr&255,yr+=Ur.bits;Xt[Gt]=Kt>>>yr&255}}if(Ur.bits===16){Vn=(Tn=new Uint32Array(Ur.decodePixels().buffer)).length,It=new Uint8Array(Vn*(32/Ur.pixelBitlength)*Ur.colors),Xt=new Uint8Array(Vn*(32/Ur.pixelBitlength)),Pt=Ur.colors>1,Gt=0,Dt=0;for(var zn=0;Gt<Vn;)Kt=Tn[Gt++],It[Dt++]=Kt>>>0&255,Pt&&(It[Dt++]=Kt>>>16&255,Kt=Tn[Gt++],It[Dt++]=Kt>>>0&255),Xt[zn++]=Kt>>>16&255;an=8}Rr!==nt.image_compression.NONE&&Ne()?(pn=He(It,Ur.width*Ur.colors,Ur.colors,Rr),tn=He(Xt,Ur.width,1,Rr)):(pn=It,tn=Xt,lr=void 0)}if(Ur.colorType===3&&(Pn=this.color_spaces.INDEXED,Gi=Ur.palette,Ur.transparency.indexed)){var Rn=Ur.transparency.indexed,di=0;for(Gt=0,Vn=Rn.length;Gt<Vn;++Gt)di+=Rn[Gt];if((di/=255)===Vn-1&&Rn.indexOf(0)!==-1)ii=[Rn.indexOf(0)];else if(di!==Vn){for(Tn=Ur.decodePixels(),Xt=new Uint8Array(Tn.length),Gt=0,Vn=Tn.length;Gt<Vn;Gt++)Xt[Gt]=Rn[Tn[Gt]];tn=He(Xt,Ur.width,1)}}var gn=function(Br){var _n;switch(Br){case nt.image_compression.FAST:_n=11;break;case nt.image_compression.MEDIUM:_n=13;break;case nt.image_compression.SLOW:_n=14;break;default:_n=12}return _n}(Rr);return lr===this.decode.FLATE_DECODE&&(Ar="/Predictor "+gn+" "),Ar+="/Colors "+_i+" /BitsPerComponent "+an+" /Columns "+Ur.width,(this.__addimage__.isArrayBuffer(pn)||this.__addimage__.isArrayBufferView(pn))&&(pn=this.__addimage__.arrayBufferToBinaryString(pn)),(tn&&this.__addimage__.isArrayBuffer(tn)||this.__addimage__.isArrayBufferView(tn))&&(tn=this.__addimage__.arrayBufferToBinaryString(tn)),{alias:Kn,data:pn,index:gr,filter:lr,decodeParameters:Ar,transparency:ii,palette:Gi,sMask:tn,predictor:gn,width:Ur.width,height:Ur.height,bitsPerComponent:an,colorSpace:Pn}}}}(z.API),function(nt){nt.processGIF89A=function(Ne,He,Xe,rt){var Ze=new yt(Ne),st=Ze.width,xt=Ze.height,pt=[];Ze.decodeAndBlitFrameRGBA(0,pt);var hr={data:pt,width:st,height:xt},Zr=new Yt(100).encode(hr,100);return nt.processJPEG.call(this,Zr,He,Xe,rt)},nt.processGIF87A=nt.processGIF89A}(z.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 nt=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(nt);for(var Ne=0;Ne<nt;Ne++){var He=this.datav.getUint8(this.pos++,!0),Xe=this.datav.getUint8(this.pos++,!0),rt=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0);this.palette[Ne]={red:rt,green:Xe,blue:He,quad:Ze}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Pr.prototype.parseBGR=function(){this.pos=this.offset;try{var nt="bit"+this.bitPP,Ne=this.width*this.height*4;this.data=new Uint8Array(Ne),this[nt]()}catch(He){d.log("bit decode error:"+He)}},Pr.prototype.bit1=function(){var nt,Ne=Math.ceil(this.width/8),He=Ne%4;for(nt=this.height-1;nt>=0;nt--){for(var Xe=this.bottom_up?nt:this.height-1-nt,rt=0;rt<Ne;rt++)for(var Ze=this.datav.getUint8(this.pos++,!0),st=Xe*this.width*4+8*rt*4,xt=0;xt<8&&8*rt+xt<this.width;xt++){var pt=this.palette[Ze>>7-xt&1];this.data[st+4*xt]=pt.blue,this.data[st+4*xt+1]=pt.green,this.data[st+4*xt+2]=pt.red,this.data[st+4*xt+3]=255}He!==0&&(this.pos+=4-He)}},Pr.prototype.bit4=function(){for(var nt=Math.ceil(this.width/2),Ne=nt%4,He=this.height-1;He>=0;He--){for(var Xe=this.bottom_up?He:this.height-1-He,rt=0;rt<nt;rt++){var Ze=this.datav.getUint8(this.pos++,!0),st=Xe*this.width*4+2*rt*4,xt=Ze>>4,pt=15&Ze,hr=this.palette[xt];if(this.data[st]=hr.blue,this.data[st+1]=hr.green,this.data[st+2]=hr.red,this.data[st+3]=255,2*rt+1>=this.width)break;hr=this.palette[pt],this.data[st+4]=hr.blue,this.data[st+4+1]=hr.green,this.data[st+4+2]=hr.red,this.data[st+4+3]=255}Ne!==0&&(this.pos+=4-Ne)}},Pr.prototype.bit8=function(){for(var nt=this.width%4,Ne=this.height-1;Ne>=0;Ne--){for(var He=this.bottom_up?Ne:this.height-1-Ne,Xe=0;Xe<this.width;Xe++){var rt=this.datav.getUint8(this.pos++,!0),Ze=He*this.width*4+4*Xe;if(rt<this.palette.length){var st=this.palette[rt];this.data[Ze]=st.red,this.data[Ze+1]=st.green,this.data[Ze+2]=st.blue,this.data[Ze+3]=255}else this.data[Ze]=255,this.data[Ze+1]=255,this.data[Ze+2]=255,this.data[Ze+3]=255}nt!==0&&(this.pos+=4-nt)}},Pr.prototype.bit15=function(){for(var nt=this.width%3,Ne=parseInt("11111",2),He=this.height-1;He>=0;He--){for(var Xe=this.bottom_up?He:this.height-1-He,rt=0;rt<this.width;rt++){var Ze=this.datav.getUint16(this.pos,!0);this.pos+=2;var st=(Ze&Ne)/Ne*255|0,xt=(Ze>>5&Ne)/Ne*255|0,pt=(Ze>>10&Ne)/Ne*255|0,hr=Ze>>15?255:0,Zr=Xe*this.width*4+4*rt;this.data[Zr]=pt,this.data[Zr+1]=xt,this.data[Zr+2]=st,this.data[Zr+3]=hr}this.pos+=nt}},Pr.prototype.bit16=function(){for(var nt=this.width%3,Ne=parseInt("11111",2),He=parseInt("111111",2),Xe=this.height-1;Xe>=0;Xe--){for(var rt=this.bottom_up?Xe:this.height-1-Xe,Ze=0;Ze<this.width;Ze++){var st=this.datav.getUint16(this.pos,!0);this.pos+=2;var xt=(st&Ne)/Ne*255|0,pt=(st>>5&He)/He*255|0,hr=(st>>11)/Ne*255|0,Zr=rt*this.width*4+4*Ze;this.data[Zr]=hr,this.data[Zr+1]=pt,this.data[Zr+2]=xt,this.data[Zr+3]=255}this.pos+=nt}},Pr.prototype.bit24=function(){for(var nt=this.height-1;nt>=0;nt--){for(var Ne=this.bottom_up?nt:this.height-1-nt,He=0;He<this.width;He++){var Xe=this.datav.getUint8(this.pos++,!0),rt=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0),st=Ne*this.width*4+4*He;this.data[st]=Ze,this.data[st+1]=rt,this.data[st+2]=Xe,this.data[st+3]=255}this.pos+=this.width%4}},Pr.prototype.bit32=function(){for(var nt=this.height-1;nt>=0;nt--)for(var Ne=this.bottom_up?nt:this.height-1-nt,He=0;He<this.width;He++){var Xe=this.datav.getUint8(this.pos++,!0),rt=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0),st=this.datav.getUint8(this.pos++,!0),xt=Ne*this.width*4+4*He;this.data[xt]=Ze,this.data[xt+1]=rt,this.data[xt+2]=Xe,this.data[xt+3]=st}},Pr.prototype.getData=function(){return this.data},function(nt){nt.processBMP=function(Ne,He,Xe,rt){var Ze=new Pr(Ne,!1),st=Ze.width,xt=Ze.height,pt={data:Ze.getData(),width:st,height:xt},hr=new Yt(100).encode(pt,100);return nt.processJPEG.call(this,hr,He,Xe,rt)}}(z.API),$r.prototype.getData=function(){return this.data},function(nt){nt.processWEBP=function(Ne,He,Xe,rt){var Ze=new $r(Ne,!1),st=Ze.width,xt=Ze.height,pt={data:Ze.getData(),width:st,height:xt},hr=new Yt(100).encode(pt,100);return nt.processJPEG.call(this,hr,He,Xe,rt)}}(z.API),z.API.processRGBA=function(nt,Ne,He){for(var Xe=nt.data,rt=Xe.length,Ze=new Uint8Array(rt/4*3),st=new Uint8Array(rt/4),xt=0,pt=0,hr=0;hr<rt;hr+=4){var Zr=Xe[hr],Xr=Xe[hr+1],pn=Xe[hr+2],gr=Xe[hr+3];Ze[xt++]=Zr,Ze[xt++]=Xr,Ze[xt++]=pn,st[pt++]=gr}var Kn=this.__addimage__.arrayBufferToBinaryString(Ze);return{alpha:this.__addimage__.arrayBufferToBinaryString(st),data:Kn,index:Ne,alias:He,colorSpace:"DeviceRGB",bitsPerComponent:8,width:nt.width,height:nt.height}},z.API.setLanguage=function(nt){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"}[nt]!==void 0&&(this.internal.languageSettings.languageCode=nt,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=z.API,Nt=$t.getCharWidthsArray=function(nt,Ne){var He,Xe,rt=(Ne=Ne||{}).font||this.internal.getFont(),Ze=Ne.fontSize||this.internal.getFontSize(),st=Ne.charSpace||this.internal.getCharSpace(),xt=Ne.widths?Ne.widths:rt.metadata.Unicode.widths,pt=xt.fof?xt.fof:1,hr=Ne.kerning?Ne.kerning:rt.metadata.Unicode.kerning,Zr=hr.fof?hr.fof:1,Xr=Ne.doKerning!==!1,pn=0,gr=nt.length,Kn=0,Rr=xt[0]||pt,Pn=[];for(He=0;He<gr;He++)Xe=nt.charCodeAt(He),typeof rt.metadata.widthOfString=="function"?Pn.push((rt.metadata.widthOfGlyph(rt.metadata.characterToGlyph(Xe))+st*(1e3/Ze)||0)/1e3):(pn=Xr&&x()(hr[Xe])==="object"&&!isNaN(parseInt(hr[Xe][Kn],10))?hr[Xe][Kn]/Zr:0,Pn.push((xt[Xe]||Rr)/pt+pn)),Kn=Xe;return Pn},Me=$t.getStringUnitWidth=function(nt,Ne){var He=(Ne=Ne||{}).fontSize||this.internal.getFontSize(),Xe=Ne.font||this.internal.getFont(),rt=Ne.charSpace||this.internal.getCharSpace();return $t.processArabic&&(nt=$t.processArabic(nt)),typeof Xe.metadata.widthOfString=="function"?Xe.metadata.widthOfString(nt,He,rt)/He:Nt.apply(this,arguments).reduce(function(Ze,st){return Ze+st},0)},ke=function(Ne,He,Xe,rt){for(var Ze=[],st=0,xt=Ne.length,pt=0;st!==xt&&pt+He[st]<Xe;)pt+=He[st],st++;Ze.push(Ne.slice(0,st));var hr=st;for(pt=0;st!==xt;)pt+He[st]>rt&&(Ze.push(Ne.slice(hr,st)),pt=0,hr=st),pt+=He[st],st++;return hr!==st&&Ze.push(Ne.slice(hr,st)),Ze},Be=function(Ne,He,Xe){Xe||(Xe={});var rt,Ze,st,xt,pt,hr,Zr,Xr=[],pn=[Xr],gr=Xe.textIndent||0,Kn=0,Rr=0,Pn=Ne.split(" "),an=Nt.apply(this,[" ",Xe])[0];if(hr=Xe.lineIndent===-1?Pn[0].length+2:Xe.lineIndent||0){var Ur=Array(hr).join(" "),ii=[];Pn.map(function(Gi){(Gi=Gi.split(/\s*\n/)).length>1?ii=ii.concat(Gi.map(function(tn,Tn){return(Tn&&tn.length?`
|
|
|
`:"")+tn})):ii.push(Gi[0])}),Pn=ii,hr=Me.apply(this,[Ur,Xe])}for(st=0,xt=Pn.length;st<xt;st++){var _i=0;if(rt=Pn[st],hr&&rt[0]==`
|
|
|
`&&(rt=rt.substr(1),_i=1),gr+Kn+(Rr=(Ze=Nt.apply(this,[rt,Xe])).reduce(function(Gi,tn){return Gi+tn},0))>He||_i){if(Rr>He){for(pt=ke.apply(this,[rt,Ze,He-(gr+Kn),He]),Xr.push(pt.shift()),Xr=[pt.pop()];pt.length;)pn.push([pt.shift()]);Rr=Ze.slice(rt.length-(Xr[0]?Xr[0].length:0)).reduce(function(Gi,tn){return Gi+tn},0)}else Xr=[rt];pn.push(Xr),gr=Rr+hr,Kn=an}else Xr.push(rt),gr+=Kn+Rr,Kn=an}return Zr=hr?function(Gi,tn){return(tn?Ur:"")+Gi.join(" ")}:function(Gi){return Gi.join(" ")},pn.map(Zr)},$t.splitTextToSize=function(nt,Ne,He){var Xe,rt=(He=He||{}).fontSize||this.internal.getFontSize(),Ze=function(Zr){if(Zr.widths&&Zr.kerning)return{widths:Zr.widths,kerning:Zr.kerning};var Xr=this.internal.getFont(Zr.fontName,Zr.fontStyle);return Xr.metadata.Unicode?{widths:Xr.metadata.Unicode.widths||{0:1},kerning:Xr.metadata.Unicode.kerning||{}}:{font:Xr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,He);Xe=Array.isArray(nt)?nt:String(nt).split(/\r?\n/);var st=1*this.internal.scaleFactor*Ne/rt;Ze.textIndent=He.textIndent?1*He.textIndent*this.internal.scaleFactor/rt:0,Ze.lineIndent=He.lineIndent;var xt,pt,hr=[];for(xt=0,pt=Xe.length;xt<pt;xt++)hr=hr.concat(Be.apply(this,[Xe[xt],st,Ze]));return hr},function(nt){nt.__fontmetrics__=nt.__fontmetrics__||{};for(var Ne="klmnopqrstuvwxyz",He={},Xe={},rt=0;rt<Ne.length;rt++)He[Ne[rt]]="0123456789abcdef"[rt],Xe["0123456789abcdef"[rt]]=Ne[rt];var Ze=function(pn){return"0x"+parseInt(pn,10).toString(16)},st=nt.__fontmetrics__.compress=function(Xr){var pn,gr,Kn,Rr,Pn=["{"];for(var an in Xr){if(pn=Xr[an],isNaN(parseInt(an,10))?gr="'"+an+"'":(an=parseInt(an,10),gr=(gr=Ze(an).slice(2)).slice(0,-1)+Xe[gr.slice(-1)]),typeof pn=="number")pn<0?(Kn=Ze(pn).slice(3),Rr="-"):(Kn=Ze(pn).slice(2),Rr=""),Kn=Rr+Kn.slice(0,-1)+Xe[Kn.slice(-1)];else{if(x()(pn)!=="object")throw new Error("Don't know what to do with value type "+x()(pn)+".");Kn=st(pn)}Pn.push(gr+Kn)}return Pn.push("}"),Pn.join("")},xt=nt.__fontmetrics__.uncompress=function(Xr){if(typeof Xr!="string")throw new Error("Invalid argument passed to uncompress.");for(var pn,gr,Kn,Rr,Pn={},an=1,Ur=Pn,ii=[],_i="",Gi="",tn=Xr.length-1,Tn=1;Tn<tn;Tn+=1)(Rr=Xr[Tn])=="'"?pn?(Kn=pn.join(""),pn=void 0):pn=[]:pn?pn.push(Rr):Rr=="{"?(ii.push([Ur,Kn]),Ur={},Kn=void 0):Rr=="}"?((gr=ii.pop())[0][gr[1]]=Ur,Kn=void 0,Ur=gr[0]):Rr=="-"?an=-1:Kn===void 0?He.hasOwnProperty(Rr)?(_i+=He[Rr],Kn=parseInt(_i,16)*an,an=1,_i=""):_i+=Rr:He.hasOwnProperty(Rr)?(Gi+=He[Rr],Ur[Kn]=parseInt(Gi,16)*an,an=1,Kn=void 0,Gi=""):Gi+=Rr;return Pn},pt={codePages:["WinAnsiEncoding"],WinAnsiEncoding:xt("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},hr={Unicode:{Courier:pt,"Courier-Bold":pt,"Courier-BoldOblique":pt,"Courier-Oblique":pt,Helvetica:pt,"Helvetica-Bold":pt,"Helvetica-BoldOblique":pt,"Helvetica-Oblique":pt,"Times-Roman":pt,"Times-Bold":pt,"Times-BoldItalic":pt,"Times-Italic":pt}},Zr={Unicode:{"Courier-Oblique":xt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":xt("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":xt("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:xt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":xt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":xt("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:xt("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:xt("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":xt("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:xt("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":xt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":xt("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":xt("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":xt("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};nt.events.push(["addFont",function(Xr){var pn=Xr.font,gr=Zr.Unicode[pn.postScriptName];gr&&(pn.metadata.Unicode={},pn.metadata.Unicode.widths=gr.widths,pn.metadata.Unicode.kerning=gr.kerning);var Kn=hr.Unicode[pn.postScriptName];Kn&&(pn.metadata.Unicode.encoding=Kn,pn.encoding=Kn.codePages[0])}])}(z.API),function(nt){var Ne=function(Xe){for(var rt=Xe.length,Ze=new Uint8Array(rt),st=0;st<rt;st++)Ze[st]=Xe.charCodeAt(st);return Ze};nt.API.events.push(["addFont",function(He){var Xe=void 0,rt=He.font,Ze=He.instance;if(!rt.isStandardFont){if(Ze===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+rt.postScriptName+"').");if(typeof(Xe=Ze.existsFileInVFS(rt.postScriptName)===!1?Ze.loadFile(rt.postScriptName):Ze.getFileFromVFS(rt.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+rt.postScriptName+"').");!function(st,xt){xt=/^\x00\x01\x00\x00/.test(xt)?Ne(xt):Ne(t(xt)),st.metadata=nt.API.TTFFont.open(xt),st.metadata.Unicode=st.metadata.Unicode||{encoding:{},kerning:{},widths:[]},st.metadata.glyIdsUsed=[0]}(rt,Xe)}}])}(z),function(nt){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})}z.API.addSvgAsImage=function(He,Xe,rt,Ze,st,xt,pt,hr){if(isNaN(Xe)||isNaN(rt))throw d.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Ze)||isNaN(st))throw d.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Zr=document.createElement("canvas");Zr.width=Ze,Zr.height=st;var Xr=Zr.getContext("2d");Xr.fillStyle="#fff",Xr.fillRect(0,0,Zr.width,Zr.height);var pn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},gr=this;return Ne().then(function(Kn){return Kn.fromString(Xr,He,pn)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Kn){return Kn.render(pn)}).then(function(){gr.addImage(Zr.toDataURL("image/jpeg",1),Xe,rt,Ze,st,pt,hr)})}}(),z.API.putTotalPages=function(nt){var Ne,He=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Ne=new RegExp(nt,"g"),He=this.internal.getNumberOfPages()):(Ne=new RegExp(this.pdfEscape16(nt,this.internal.getFont()),"g"),He=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Xe=1;Xe<=this.internal.getNumberOfPages();Xe++)for(var rt=0;rt<this.internal.pages[Xe].length;rt++)this.internal.pages[Xe][rt]=this.internal.pages[Xe][rt].replace(Ne,He);return this},z.API.viewerPreferences=function(nt,Ne){var He;nt=nt||{},Ne=Ne||!1;var Xe,rt,Ze,st={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},xt=Object.keys(st),pt=[],hr=0,Zr=0,Xr=0;function pn(Kn,Rr){var Pn,an=!1;for(Pn=0;Pn<Kn.length;Pn+=1)Kn[Pn]===Rr&&(an=!0);return an}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(st)),this.internal.viewerpreferences.isSubscribed=!1),He=this.internal.viewerpreferences.configuration,nt==="reset"||Ne===!0){var gr=xt.length;for(Xr=0;Xr<gr;Xr+=1)He[xt[Xr]].value=He[xt[Xr]].defaultValue,He[xt[Xr]].explicitSet=!1}if(x()(nt)==="object"){for(rt in nt)if(Ze=nt[rt],pn(xt,rt)&&Ze!==void 0){if(He[rt].type==="boolean"&&typeof Ze=="boolean")He[rt].value=Ze;else if(He[rt].type==="name"&&pn(He[rt].valueSet,Ze))He[rt].value=Ze;else if(He[rt].type==="integer"&&Number.isInteger(Ze))He[rt].value=Ze;else if(He[rt].type==="array"){for(hr=0;hr<Ze.length;hr+=1)if(Xe=!0,Ze[hr].length===1&&typeof Ze[hr][0]=="number")pt.push(String(Ze[hr]-1));else if(Ze[hr].length>1){for(Zr=0;Zr<Ze[hr].length;Zr+=1)typeof Ze[hr][Zr]!="number"&&(Xe=!1);Xe===!0&&pt.push([Ze[hr][0]-1,Ze[hr][1]-1].join(" "))}He[rt].value="["+pt.join(" ")+"]"}else He[rt].value=He[rt].defaultValue;He[rt].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var Kn,Rr=[];for(Kn in He)He[Kn].explicitSet===!0&&(He[Kn].type==="name"?Rr.push("/"+Kn+" /"+He[Kn].value):Rr.push("/"+Kn+" "+He[Kn].value));Rr.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+Rr.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=He,this},function(nt){var Ne=function(){var rt='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',Ze=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),st=unescape(encodeURIComponent(rt)),xt=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),pt=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),hr=unescape(encodeURIComponent("</x:xmpmeta>")),Zr=st.length+xt.length+pt.length+Ze.length+hr.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Zr+" >>"),this.internal.write("stream"),this.internal.write(Ze+st+xt+pt+hr),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")};nt.addMetadata=function(Xe,rt){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Xe,namespaceuri:rt||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",He),this.internal.events.subscribe("postPutResources",Ne)),this}}(z.API),function(nt){var Ne=nt.API,He=Ne.pdfEscape16=function(Ze,st){for(var xt,pt=st.metadata.Unicode.widths,hr=["","0","00","000","0000"],Zr=[""],Xr=0,pn=Ze.length;Xr<pn;++Xr){if(xt=st.metadata.characterToGlyph(Ze.charCodeAt(Xr)),st.metadata.glyIdsUsed.push(xt),st.metadata.toUnicode[xt]=Ze.charCodeAt(Xr),pt.indexOf(xt)==-1&&(pt.push(xt),pt.push([parseInt(st.metadata.widthOfGlyph(xt),10)])),xt=="0")return Zr.join("");xt=xt.toString(16),Zr.push(hr[4-xt.length],xt)}return Zr.join("")},Xe=function(st){var xt,pt,hr,Zr,Xr,pn,gr;for(Xr=`/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`,hr=[],pn=0,gr=(pt=Object.keys(st).sort(function(Kn,Rr){return Kn-Rr})).length;pn<gr;pn++)xt=pt[pn],hr.length>=100&&(Xr+=`
|
|
|
`+hr.length+` beginbfchar
|
|
|
`+hr.join(`
|
|
|
`)+`
|
|
|
endbfchar`,hr=[]),st[xt]!==void 0&&st[xt]!==null&&typeof st[xt].toString=="function"&&(Zr=("0000"+st[xt].toString(16)).slice(-4),xt=("0000"+(+xt).toString(16)).slice(-4),hr.push("<"+xt+"><"+Zr+">"));return hr.length&&(Xr+=`
|
|
|
`+hr.length+` beginbfchar
|
|
|
`+hr.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),Xr+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};Ne.events.push(["putFont",function(Ze){!function(st){var xt=st.font,pt=st.out,hr=st.newObject,Zr=st.putStream;if(xt.metadata instanceof nt.API.TTFFont&&xt.encoding==="Identity-H"){for(var Xr=xt.metadata.Unicode.widths,pn=xt.metadata.subset.encode(xt.metadata.glyIdsUsed,1),gr="",Kn=0;Kn<pn.length;Kn++)gr+=String.fromCharCode(pn[Kn]);var Rr=hr();Zr({data:gr,addLength1:!0,objectId:Rr}),pt("endobj");var Pn=hr();Zr({data:Xe(xt.metadata.toUnicode),addLength1:!0,objectId:Pn}),pt("endobj");var an=hr();pt("<<"),pt("/Type /FontDescriptor"),pt("/FontName /"+B(xt.fontName)),pt("/FontFile2 "+Rr+" 0 R"),pt("/FontBBox "+nt.API.PDFObject.convert(xt.metadata.bbox)),pt("/Flags "+xt.metadata.flags),pt("/StemV "+xt.metadata.stemV),pt("/ItalicAngle "+xt.metadata.italicAngle),pt("/Ascent "+xt.metadata.ascender),pt("/Descent "+xt.metadata.decender),pt("/CapHeight "+xt.metadata.capHeight),pt(">>"),pt("endobj");var Ur=hr();pt("<<"),pt("/Type /Font"),pt("/BaseFont /"+B(xt.fontName)),pt("/FontDescriptor "+an+" 0 R"),pt("/W "+nt.API.PDFObject.convert(Xr)),pt("/CIDToGIDMap /Identity"),pt("/DW 1000"),pt("/Subtype /CIDFontType2"),pt("/CIDSystemInfo"),pt("<<"),pt("/Supplement 0"),pt("/Registry (Adobe)"),pt("/Ordering ("+xt.encoding+")"),pt(">>"),pt(">>"),pt("endobj"),xt.objectNumber=hr(),pt("<<"),pt("/Type /Font"),pt("/Subtype /Type0"),pt("/ToUnicode "+Pn+" 0 R"),pt("/BaseFont /"+B(xt.fontName)),pt("/Encoding /"+xt.encoding),pt("/DescendantFonts ["+Ur+" 0 R]"),pt(">>"),pt("endobj"),xt.isAlreadyPutted=!0}}(Ze)}]),Ne.events.push(["putFont",function(Ze){!function(st){var xt=st.font,pt=st.out,hr=st.newObject,Zr=st.putStream;if(xt.metadata instanceof nt.API.TTFFont&&xt.encoding==="WinAnsiEncoding"){for(var Xr=xt.metadata.rawData,pn="",gr=0;gr<Xr.length;gr++)pn+=String.fromCharCode(Xr[gr]);var Kn=hr();Zr({data:pn,addLength1:!0,objectId:Kn}),pt("endobj");var Rr=hr();Zr({data:Xe(xt.metadata.toUnicode),addLength1:!0,objectId:Rr}),pt("endobj");var Pn=hr();pt("<<"),pt("/Descent "+xt.metadata.decender),pt("/CapHeight "+xt.metadata.capHeight),pt("/StemV "+xt.metadata.stemV),pt("/Type /FontDescriptor"),pt("/FontFile2 "+Kn+" 0 R"),pt("/Flags 96"),pt("/FontBBox "+nt.API.PDFObject.convert(xt.metadata.bbox)),pt("/FontName /"+B(xt.fontName)),pt("/ItalicAngle "+xt.metadata.italicAngle),pt("/Ascent "+xt.metadata.ascender),pt(">>"),pt("endobj"),xt.objectNumber=hr();for(var an=0;an<xt.metadata.hmtx.widths.length;an++)xt.metadata.hmtx.widths[an]=parseInt(xt.metadata.hmtx.widths[an]*(1e3/xt.metadata.head.unitsPerEm));pt("<</Subtype/TrueType/Type/Font/ToUnicode "+Rr+" 0 R/BaseFont/"+B(xt.fontName)+"/FontDescriptor "+Pn+" 0 R/Encoding/"+xt.encoding+" /FirstChar 29 /LastChar 255 /Widths "+nt.API.PDFObject.convert(xt.metadata.hmtx.widths)+">>"),pt("endobj"),xt.isAlreadyPutted=!0}}(Ze)}]);var rt=function(st){var xt,pt=st.text||"",hr=st.x,Zr=st.y,Xr=st.options||{},pn=st.mutex||{},gr=pn.pdfEscape,Kn=pn.activeFontKey,Rr=pn.fonts,Pn=Kn,an="",Ur=0,ii="",_i=Rr[Pn].encoding;if(Rr[Pn].encoding!=="Identity-H")return{text:pt,x:hr,y:Zr,options:Xr,mutex:pn};for(ii=pt,Pn=Kn,Array.isArray(pt)&&(ii=pt[0]),Ur=0;Ur<ii.length;Ur+=1)Rr[Pn].metadata.hasOwnProperty("cmap")&&(xt=Rr[Pn].metadata.cmap.unicode.codeMap[ii[Ur].charCodeAt(0)]),xt||ii[Ur].charCodeAt(0)<256&&Rr[Pn].metadata.hasOwnProperty("Unicode")?an+=ii[Ur]:an+="";var Gi="";return parseInt(Pn.slice(1))<14||_i==="WinAnsiEncoding"?Gi=gr(an,Pn).split("").map(function(tn){return tn.charCodeAt(0).toString(16)}).join(""):_i==="Identity-H"&&(Gi=He(an,Rr[Pn])),pn.isHex=!0,{text:Gi,x:hr,y:Zr,options:Xr,mutex:pn}};Ne.events.push(["postProcessText",function(Ze){var st=Ze.text||"",xt=[],pt={text:st,x:Ze.x,y:Ze.y,options:Ze.options,mutex:Ze.mutex};if(Array.isArray(st)){var hr=0;for(hr=0;hr<st.length;hr+=1)Array.isArray(st[hr])&&st[hr].length===3?xt.push([rt(Object.assign({},pt,{text:st[hr][0]})).text,st[hr][1],st[hr][2]]):xt.push(rt(Object.assign({},pt,{text:st[hr]})).text);Ze.text=xt}else Ze.text=rt(Object.assign({},pt,{text:st})).text}])}(z),function(nt){var Ne=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};nt.existsFileInVFS=function(He){return Ne.call(this),this.internal.vFS[He]!==void 0},nt.addFileToVFS=function(He,Xe){return Ne.call(this),this.internal.vFS[He]=Xe,this},nt.getFileFromVFS=function(He){return Ne.call(this),this.internal.vFS[He]!==void 0?this.internal.vFS[He]:null}}(z.API),function(nt){nt.__bidiEngine__=nt.prototype.__bidiEngine__=function(Xe){var rt,Ze,st,xt,pt,hr,Zr,Xr=Ne,pn=[[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]],Kn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Rr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Pn=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],an=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),Ur=!1,ii=0;this.__bidiEngine__={};var _i=function(Kt){var Gt=Kt.charCodeAt(),Dt=Gt>>8,lr=Rr[Dt];return lr!==void 0?Xr[256*lr+(255&Gt)]:Dt===252||Dt===253?"AL":an.test(Dt)?"L":Dt===8?"R":"N"},Gi=function(Kt){for(var Gt,Dt=0;Dt<Kt.length;Dt++){if((Gt=_i(Kt.charAt(Dt)))==="L")return!1;if(Gt==="R")return!0}return!1},tn=function(Kt,Gt,Dt,lr){var Ar,yr,Mr,zn,Rn=Gt[lr];switch(Rn){case"L":case"R":Ur=!1;break;case"N":case"AN":break;case"EN":Ur&&(Rn="AN");break;case"AL":Ur=!0,Rn="R";break;case"WS":Rn="N";break;case"CS":lr<1||lr+1>=Gt.length||(Ar=Dt[lr-1])!=="EN"&&Ar!=="AN"||(yr=Gt[lr+1])!=="EN"&&yr!=="AN"?Rn="N":Ur&&(yr="AN"),Rn=yr===Ar?yr:"N";break;case"ES":Rn=(Ar=lr>0?Dt[lr-1]:"B")==="EN"&&lr+1<Gt.length&&Gt[lr+1]==="EN"?"EN":"N";break;case"ET":if(lr>0&&Dt[lr-1]==="EN"){Rn="EN";break}if(Ur){Rn="N";break}for(Mr=lr+1,zn=Gt.length;Mr<zn&&Gt[Mr]==="ET";)Mr++;Rn=Mr<zn&&Gt[Mr]==="EN"?"EN":"N";break;case"NSM":if(st&&!xt){for(zn=Gt.length,Mr=lr+1;Mr<zn&&Gt[Mr]==="NSM";)Mr++;if(Mr<zn){var di=Kt[lr],gn=di>=1425&&di<=2303||di===64286;if(Ar=Gt[Mr],gn&&(Ar==="R"||Ar==="AL")){Rn="R";break}}}Rn=lr<1||(Ar=Gt[lr-1])==="B"?"N":Dt[lr-1];break;case"B":Ur=!1,rt=!0,Rn=ii;break;case"S":Ze=!0,Rn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Ur=!1;break;case"BN":Rn="N"}return Rn},Tn=function(Kt,Gt,Dt){var lr=Kt.split("");return Dt&&Vn(lr,Dt,{hiLevel:ii}),lr.reverse(),Gt&&Gt.reverse(),lr.join("")},Vn=function(Kt,Gt,Dt){var lr,Ar,yr,Mr,zn,Rn=-1,di=Kt.length,gn=0,Br=[],_n=ii?gr:pn,Gn=[];for(Ur=!1,rt=!1,Ze=!1,Ar=0;Ar<di;Ar++)Gn[Ar]=_i(Kt[Ar]);for(yr=0;yr<di;yr++){if(zn=gn,Br[yr]=tn(Kt,Gn,Br,yr),lr=240&(gn=_n[zn][Kn[Br[yr]]]),gn&=15,Gt[yr]=Mr=_n[gn][5],lr>0)if(lr===16){for(Ar=Rn;Ar<yr;Ar++)Gt[Ar]=1;Rn=-1}else Rn=-1;if(_n[gn][6])Rn===-1&&(Rn=yr);else if(Rn>-1){for(Ar=Rn;Ar<yr;Ar++)Gt[Ar]=Mr;Rn=-1}Gn[yr]==="B"&&(Gt[yr]=0),Dt.hiLevel|=Mr}Ze&&function(Zn,ai,Ei){for(var Ri=0;Ri<Ei;Ri++)if(Zn[Ri]==="S"){ai[Ri]=ii;for(var Di=Ri-1;Di>=0&&Zn[Di]==="WS";Di--)ai[Di]=ii}}(Gn,Gt,di)},Xt=function(Kt,Gt,Dt,lr,Ar){if(!(Ar.hiLevel<Kt)){if(Kt===1&&ii===1&&!rt)return Gt.reverse(),void(Dt&&Dt.reverse());for(var yr,Mr,zn,Rn,di=Gt.length,gn=0;gn<di;){if(lr[gn]>=Kt){for(zn=gn+1;zn<di&&lr[zn]>=Kt;)zn++;for(Rn=gn,Mr=zn-1;Rn<Mr;Rn++,Mr--)yr=Gt[Rn],Gt[Rn]=Gt[Mr],Gt[Mr]=yr,Dt&&(yr=Dt[Rn],Dt[Rn]=Dt[Mr],Dt[Mr]=yr);gn=zn}gn++}}},It=function(Kt,Gt,Dt){var lr=Kt.split(""),Ar={hiLevel:ii};return Dt||(Dt=[]),Vn(lr,Dt,Ar),function(yr,Mr,zn){if(zn.hiLevel!==0&&Zr)for(var Rn,di=0;di<yr.length;di++)Mr[di]===1&&(Rn=Pn.indexOf(yr[di]))>=0&&(yr[di]=Pn[Rn+1])}(lr,Dt,Ar),Xt(2,lr,Gt,Dt,Ar),Xt(1,lr,Gt,Dt,Ar),lr.join("")};return this.__bidiEngine__.doBidiReorder=function(Pt,Kt,Gt){if(function(lr,Ar){if(Ar)for(var yr=0;yr<lr.length;yr++)Ar[yr]=yr;xt===void 0&&(xt=Gi(lr)),hr===void 0&&(hr=Gi(lr))}(Pt,Kt),st||!pt||hr)if(st&&pt&&xt^hr)ii=xt?1:0,Pt=Tn(Pt,Kt,Gt);else if(!st&&pt&&hr)ii=xt?1:0,Pt=It(Pt,Kt,Gt),Pt=Tn(Pt,Kt);else if(!st||xt||pt||hr){if(st&&!pt&&xt^hr)Pt=Tn(Pt,Kt),xt?(ii=0,Pt=It(Pt,Kt,Gt)):(ii=1,Pt=It(Pt,Kt,Gt),Pt=Tn(Pt,Kt));else if(st&&xt&&!pt&&hr)ii=1,Pt=It(Pt,Kt,Gt),Pt=Tn(Pt,Kt);else if(!st&&!pt&&xt^hr){var Dt=Zr;xt?(ii=1,Pt=It(Pt,Kt,Gt),ii=0,Zr=!1,Pt=It(Pt,Kt,Gt),Zr=Dt):(ii=0,Pt=It(Pt,Kt,Gt),Pt=Tn(Pt,Kt),ii=1,Zr=!1,Pt=It(Pt,Kt,Gt),Zr=Dt,Pt=Tn(Pt,Kt))}}else ii=0,Pt=It(Pt,Kt,Gt);else ii=xt?1:0,Pt=It(Pt,Kt,Gt);return Pt},this.__bidiEngine__.setOptions=function(Pt){Pt&&(st=Pt.isInputVisual,pt=Pt.isOutputVisual,xt=Pt.isInputRtl,hr=Pt.isOutputRtl,Zr=Pt.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Xe),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 nt.__bidiEngine__({isInputVisual:!0});nt.API.events.push(["postProcessText",function(Xe){var rt=Xe.text,Ze=(Xe.x,Xe.y,Xe.options||{}),st=(Xe.mutex,Ze.lang,[]);if(Ze.isInputVisual=typeof Ze.isInputVisual!="boolean"||Ze.isInputVisual,He.setOptions(Ze),Object.prototype.toString.call(rt)==="[object Array]"){var xt=0;for(st=[],xt=0;xt<rt.length;xt+=1)Object.prototype.toString.call(rt[xt])==="[object Array]"?st.push([He.doBidiReorder(rt[xt][0]),rt[xt][1],rt[xt][2]]):st.push([He.doBidiReorder(rt[xt])]);Xe.text=st}else Xe.text=He.doBidiReorder(rt);He.setOptions({isInputVisual:!0})}])}(z),z.API.TTFFont=function(){function nt(Ne){var He;if(this.rawData=Ne,He=this.contents=new zt(Ne),this.contents.pos=4,He.readString(4)==="ttcf")throw new Error("TTCF not supported.");He.pos=0,this.parse(),this.subset=new Hi(this),this.registerTTF()}return nt.open=function(Ne){return new nt(Ne)},nt.prototype.parse=function(){return this.directory=new At(this.contents),this.head=new Jt(this),this.name=new Dr(this),this.cmap=new tr(this),this.toUnicode={},this.hhea=new Ft(this),this.maxp=new cn(this),this.hmtx=new vn(this),this.post=new Hr(this),this.os2=new qt(this),this.loca=new Ni(this),this.glyf=new qn(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]},nt.prototype.registerTTF=function(){var Ne,He,Xe,rt,Ze;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var st,xt,pt,hr;for(hr=[],st=0,xt=(pt=this.bbox).length;st<xt;st++)Ne=pt[st],hr.push(Math.round(Ne*this.scaleFactor));return hr}.call(this),this.stemV=0,this.post.exists?(Xe=255&(rt=this.post.italic_angle),(32768&(He=rt>>16))!=0&&(He=-(1+(65535^He))),this.italicAngle=+(He+"."+Xe)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(Ze=this.familyClass)===1||Ze===2||Ze===3||Ze===4||Ze===5||Ze===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},nt.prototype.characterToGlyph=function(Ne){var He;return((He=this.cmap.unicode)!=null?He.codeMap[Ne]:void 0)||0},nt.prototype.widthOfGlyph=function(Ne){var He;return He=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(Ne).advance*He},nt.prototype.widthOfString=function(Ne,He,Xe){var rt,Ze,st,xt;for(st=0,Ze=0,xt=(Ne=""+Ne).length;0<=xt?Ze<xt:Ze>xt;Ze=0<=xt?++Ze:--Ze)rt=Ne.charCodeAt(Ze),st+=this.widthOfGlyph(this.characterToGlyph(rt))+Xe*(1e3/He)||0;return st*(He/1e3)},nt.prototype.lineHeight=function(Ne,He){var Xe;return He==null&&(He=!1),Xe=He?this.lineGap:0,(this.ascender+Xe-this.decender)/1e3*Ne},nt}();var An,zt=function(){function nt(Ne){this.data=Ne!=null?Ne:[],this.pos=0,this.length=this.data.length}return nt.prototype.readByte=function(){return this.data[this.pos++]},nt.prototype.writeByte=function(Ne){return this.data[this.pos++]=Ne},nt.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},nt.prototype.writeUInt32=function(Ne){return this.writeByte(Ne>>>24&255),this.writeByte(Ne>>16&255),this.writeByte(Ne>>8&255),this.writeByte(255&Ne)},nt.prototype.readInt32=function(){var Ne;return(Ne=this.readUInt32())>=2147483648?Ne-4294967296:Ne},nt.prototype.writeInt32=function(Ne){return Ne<0&&(Ne+=4294967296),this.writeUInt32(Ne)},nt.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},nt.prototype.writeUInt16=function(Ne){return this.writeByte(Ne>>8&255),this.writeByte(255&Ne)},nt.prototype.readInt16=function(){var Ne;return(Ne=this.readUInt16())>=32768?Ne-65536:Ne},nt.prototype.writeInt16=function(Ne){return Ne<0&&(Ne+=65536),this.writeUInt16(Ne)},nt.prototype.readString=function(Ne){var He,Xe;for(Xe=[],He=0;0<=Ne?He<Ne:He>Ne;He=0<=Ne?++He:--He)Xe[He]=String.fromCharCode(this.readByte());return Xe.join("")},nt.prototype.writeString=function(Ne){var He,Xe,rt;for(rt=[],He=0,Xe=Ne.length;0<=Xe?He<Xe:He>Xe;He=0<=Xe?++He:--He)rt.push(this.writeByte(Ne.charCodeAt(He)));return rt},nt.prototype.readShort=function(){return this.readInt16()},nt.prototype.writeShort=function(Ne){return this.writeInt16(Ne)},nt.prototype.readLongLong=function(){var Ne,He,Xe,rt,Ze,st,xt,pt;return Ne=this.readByte(),He=this.readByte(),Xe=this.readByte(),rt=this.readByte(),Ze=this.readByte(),st=this.readByte(),xt=this.readByte(),pt=this.readByte(),128&Ne?-1*(72057594037927940*(255^Ne)+281474976710656*(255^He)+1099511627776*(255^Xe)+4294967296*(255^rt)+16777216*(255^Ze)+65536*(255^st)+256*(255^xt)+(255^pt)+1):72057594037927940*Ne+281474976710656*He+1099511627776*Xe+4294967296*rt+16777216*Ze+65536*st+256*xt+pt},nt.prototype.writeLongLong=function(Ne){var He,Xe;return He=Math.floor(Ne/4294967296),Xe=4294967295&Ne,this.writeByte(He>>24&255),this.writeByte(He>>16&255),this.writeByte(He>>8&255),this.writeByte(255&He),this.writeByte(Xe>>24&255),this.writeByte(Xe>>16&255),this.writeByte(Xe>>8&255),this.writeByte(255&Xe)},nt.prototype.readInt=function(){return this.readInt32()},nt.prototype.writeInt=function(Ne){return this.writeInt32(Ne)},nt.prototype.read=function(Ne){var He,Xe;for(He=[],Xe=0;0<=Ne?Xe<Ne:Xe>Ne;Xe=0<=Ne?++Xe:--Xe)He.push(this.readByte());return He},nt.prototype.write=function(Ne){var He,Xe,rt,Ze;for(Ze=[],Xe=0,rt=Ne.length;Xe<rt;Xe++)He=Ne[Xe],Ze.push(this.writeByte(He));return Ze},nt}(),At=function(){var nt;function Ne(He){var Xe,rt,Ze;for(this.scalarType=He.readInt(),this.tableCount=He.readShort(),this.searchRange=He.readShort(),this.entrySelector=He.readShort(),this.rangeShift=He.readShort(),this.tables={},rt=0,Ze=this.tableCount;0<=Ze?rt<Ze:rt>Ze;rt=0<=Ze?++rt:--rt)Xe={tag:He.readString(4),checksum:He.readInt(),offset:He.readInt(),length:He.readInt()},this.tables[Xe.tag]=Xe}return Ne.prototype.encode=function(He){var Xe,rt,Ze,st,xt,pt,hr,Zr,Xr,pn,gr,Kn,Rr;for(Rr in gr=Object.keys(He).length,pt=Math.log(2),Xr=16*Math.floor(Math.log(gr)/pt),st=Math.floor(Xr/pt),Zr=16*gr-Xr,(rt=new zt).writeInt(this.scalarType),rt.writeShort(gr),rt.writeShort(Xr),rt.writeShort(st),rt.writeShort(Zr),Ze=16*gr,hr=rt.pos+Ze,xt=null,Kn=[],He)for(pn=He[Rr],rt.writeString(Rr),rt.writeInt(nt(pn)),rt.writeInt(hr),rt.writeInt(pn.length),Kn=Kn.concat(pn),Rr==="head"&&(xt=hr),hr+=pn.length;hr%4;)Kn.push(0),hr++;return rt.write(Kn),Xe=2981146554-nt(rt.data),rt.pos=xt+8,rt.writeUInt32(Xe),rt.data},nt=function(Xe){var rt,Ze,st,xt;for(Xe=ei.call(Xe);Xe.length%4;)Xe.push(0);for(st=new zt(Xe),Ze=0,rt=0,xt=Xe.length;rt<xt;rt=rt+=4)Ze+=st.readUInt32();return 4294967295&Ze},Ne}(),wt={}.hasOwnProperty,vr=function(Ne,He){for(var Xe in He)wt.call(He,Xe)&&(Ne[Xe]=He[Xe]);function rt(){this.constructor=Ne}return rt.prototype=He.prototype,Ne.prototype=new rt,Ne.__super__=He.prototype,Ne};An=function(){function nt(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 nt.prototype.parse=function(){},nt.prototype.encode=function(){},nt.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},nt}();var Jt=function(nt){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return vr(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 Xe;return(Xe=new zt).writeInt(this.version),Xe.writeInt(this.revision),Xe.writeInt(this.checkSumAdjustment),Xe.writeInt(this.magicNumber),Xe.writeShort(this.flags),Xe.writeShort(this.unitsPerEm),Xe.writeLongLong(this.created),Xe.writeLongLong(this.modified),Xe.writeShort(this.xMin),Xe.writeShort(this.yMin),Xe.writeShort(this.xMax),Xe.writeShort(this.yMax),Xe.writeShort(this.macStyle),Xe.writeShort(this.lowestRecPPEM),Xe.writeShort(this.fontDirectionHint),Xe.writeShort(He),Xe.writeShort(this.glyphDataFormat),Xe.data},Ne}(),Ut=function(){function nt(Ne,He){var Xe,rt,Ze,st,xt,pt,hr,Zr,Xr,pn,gr,Kn,Rr,Pn,an,Ur,ii;switch(this.platformID=Ne.readUInt16(),this.encodingID=Ne.readShort(),this.offset=He+Ne.readInt(),Xr=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(pt=0;pt<256;++pt)this.codeMap[pt]=Ne.readByte();break;case 4:for(gr=Ne.readUInt16(),pn=gr/2,Ne.pos+=6,Ze=function(){var _i,Gi;for(Gi=[],pt=_i=0;0<=pn?_i<pn:_i>pn;pt=0<=pn?++_i:--_i)Gi.push(Ne.readUInt16());return Gi}(),Ne.pos+=2,Rr=function(){var _i,Gi;for(Gi=[],pt=_i=0;0<=pn?_i<pn:_i>pn;pt=0<=pn?++_i:--_i)Gi.push(Ne.readUInt16());return Gi}(),hr=function(){var _i,Gi;for(Gi=[],pt=_i=0;0<=pn?_i<pn:_i>pn;pt=0<=pn?++_i:--_i)Gi.push(Ne.readUInt16());return Gi}(),Zr=function(){var _i,Gi;for(Gi=[],pt=_i=0;0<=pn?_i<pn:_i>pn;pt=0<=pn?++_i:--_i)Gi.push(Ne.readUInt16());return Gi}(),rt=(this.length-Ne.pos+this.offset)/2,xt=function(){var _i,Gi;for(Gi=[],pt=_i=0;0<=rt?_i<rt:_i>rt;pt=0<=rt?++_i:--_i)Gi.push(Ne.readUInt16());return Gi}(),pt=an=0,ii=Ze.length;an<ii;pt=++an)for(Pn=Ze[pt],Xe=Ur=Kn=Rr[pt];Kn<=Pn?Ur<=Pn:Ur>=Pn;Xe=Kn<=Pn?++Ur:--Ur)Zr[pt]===0?st=Xe+hr[pt]:(st=xt[Zr[pt]/2+(Xe-Kn)-(pn-pt)]||0)!==0&&(st+=hr[pt]),this.codeMap[Xe]=65535&st}Ne.pos=Xr}return nt.encode=function(Ne,He){var Xe,rt,Ze,st,xt,pt,hr,Zr,Xr,pn,gr,Kn,Rr,Pn,an,Ur,ii,_i,Gi,tn,Tn,Vn,Xt,It,Pt,Kt,Gt,Dt,lr,Ar,yr,Mr,zn,Rn,di,gn,Br,_n,Gn,Zn,ai,Ei,Ri,Di,oa,ma;switch(Dt=new zt,st=Object.keys(Ne).sort(function(aa,ba){return aa-ba}),He){case"macroman":for(Rr=0,Pn=function(){var aa=[];for(Kn=0;Kn<256;++Kn)aa.push(0);return aa}(),Ur={0:0},Ze={},lr=0,zn=st.length;lr<zn;lr++)Ur[Ri=Ne[rt=st[lr]]]==null&&(Ur[Ri]=++Rr),Ze[rt]={old:Ne[rt],new:Ur[Ne[rt]]},Pn[rt]=Ur[Ne[rt]];return Dt.writeUInt16(1),Dt.writeUInt16(0),Dt.writeUInt32(12),Dt.writeUInt16(0),Dt.writeUInt16(262),Dt.writeUInt16(0),Dt.write(Pn),{charMap:Ze,subtable:Dt.data,maxGlyphID:Rr+1};case"unicode":for(Kt=[],Xr=[],ii=0,Ur={},Xe={},an=hr=null,Ar=0,Rn=st.length;Ar<Rn;Ar++)Ur[Gi=Ne[rt=st[Ar]]]==null&&(Ur[Gi]=++ii),Xe[rt]={old:Gi,new:Ur[Gi]},xt=Ur[Gi]-rt,an!=null&&xt===hr||(an&&Xr.push(an),Kt.push(rt),hr=xt),an=rt;for(an&&Xr.push(an),Xr.push(65535),Kt.push(65535),It=2*(Xt=Kt.length),Vn=2*Math.pow(Math.log(Xt)/Math.LN2,2),pn=Math.log(Vn/2)/Math.LN2,Tn=2*Xt-Vn,pt=[],tn=[],gr=[],Kn=yr=0,di=Kt.length;yr<di;Kn=++yr){if(Pt=Kt[Kn],Zr=Xr[Kn],Pt===65535){pt.push(0),tn.push(0);break}if(Pt-(Gt=Xe[Pt].new)>=32768)for(pt.push(0),tn.push(2*(gr.length+Xt-Kn)),rt=Mr=Pt;Pt<=Zr?Mr<=Zr:Mr>=Zr;rt=Pt<=Zr?++Mr:--Mr)gr.push(Xe[rt].new);else pt.push(Gt-Pt),tn.push(0)}for(Dt.writeUInt16(3),Dt.writeUInt16(1),Dt.writeUInt32(12),Dt.writeUInt16(4),Dt.writeUInt16(16+8*Xt+2*gr.length),Dt.writeUInt16(0),Dt.writeUInt16(It),Dt.writeUInt16(Vn),Dt.writeUInt16(pn),Dt.writeUInt16(Tn),ai=0,gn=Xr.length;ai<gn;ai++)rt=Xr[ai],Dt.writeUInt16(rt);for(Dt.writeUInt16(0),Ei=0,Br=Kt.length;Ei<Br;Ei++)rt=Kt[Ei],Dt.writeUInt16(rt);for(Di=0,_n=pt.length;Di<_n;Di++)xt=pt[Di],Dt.writeUInt16(xt);for(oa=0,Gn=tn.length;oa<Gn;oa++)_i=tn[oa],Dt.writeUInt16(_i);for(ma=0,Zn=gr.length;ma<Zn;ma++)Rr=gr[ma],Dt.writeUInt16(Rr);return{charMap:Xe,subtable:Dt.data,maxGlyphID:ii+1}}},nt}(),tr=function(nt){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return vr(Ne,An),Ne.prototype.tag="cmap",Ne.prototype.parse=function(He){var Xe,rt,Ze;for(He.pos=this.offset,this.version=He.readUInt16(),Ze=He.readUInt16(),this.tables=[],this.unicode=null,rt=0;0<=Ze?rt<Ze:rt>Ze;rt=0<=Ze?++rt:--rt)Xe=new Ut(He,this.offset),this.tables.push(Xe),Xe.isUnicode&&this.unicode==null&&(this.unicode=Xe);return!0},Ne.encode=function(He,Xe){var rt,Ze;return Xe==null&&(Xe="macroman"),rt=Ut.encode(He,Xe),(Ze=new zt).writeUInt16(0),Ze.writeUInt16(1),rt.table=Ze.data.concat(rt.subtable),rt},Ne}(),Ft=function(nt){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return vr(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}(),qt=function(nt){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return vr(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 Xe,rt;for(rt=[],Xe=0;Xe<10;++Xe)rt.push(He.readByte());return rt}(),this.charRange=function(){var Xe,rt;for(rt=[],Xe=0;Xe<4;++Xe)rt.push(He.readInt());return rt}(),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 Xe,rt;for(rt=[],Xe=0;Xe<2;Xe=++Xe)rt.push(He.readInt());return rt}(),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(nt){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return vr(Ne,An),Ne.prototype.tag="post",Ne.prototype.parse=function(He){var Xe,rt,Ze;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 st;for(rt=He.readUInt16(),this.glyphNameIndex=[],st=0;0<=rt?st<rt:st>rt;st=0<=rt?++st:--st)this.glyphNameIndex.push(He.readUInt16());for(this.names=[],Ze=[];He.pos<this.offset+this.length;)Xe=He.readByte(),Ze.push(this.names.push(He.readString(Xe)));return Ze;case 151552:return rt=He.readUInt16(),this.offsets=He.read(rt);case 196608:break;case 262144:return this.map=function(){var xt,pt,hr;for(hr=[],st=xt=0,pt=this.file.maxp.numGlyphs;0<=pt?xt<pt:xt>pt;st=0<=pt?++xt:--xt)hr.push(He.readUInt32());return hr}.call(this)}},Ne}(),Nr=function(Ne,He){this.raw=Ne,this.length=Ne.length,this.platformID=He.platformID,this.encodingID=He.encodingID,this.languageID=He.languageID},Dr=function(nt){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return vr(Ne,An),Ne.prototype.tag="name",Ne.prototype.parse=function(He){var Xe,rt,Ze,st,xt,pt,hr,Zr,Xr,pn,gr;for(He.pos=this.offset,He.readShort(),Xe=He.readShort(),pt=He.readShort(),rt=[],st=0;0<=Xe?st<Xe:st>Xe;st=0<=Xe?++st:--st)rt.push({platformID:He.readShort(),encodingID:He.readShort(),languageID:He.readShort(),nameID:He.readShort(),length:He.readShort(),offset:this.offset+pt+He.readShort()});for(hr={},st=Xr=0,pn=rt.length;Xr<pn;st=++Xr)Ze=rt[st],He.pos=Ze.offset,Zr=He.readString(Ze.length),xt=new Nr(Zr,Ze),hr[gr=Ze.nameID]==null&&(hr[gr]=[]),hr[Ze.nameID].push(xt);this.strings=hr,this.copyright=hr[0],this.fontFamily=hr[1],this.fontSubfamily=hr[2],this.uniqueSubfamily=hr[3],this.fontName=hr[4],this.version=hr[5];try{this.postscriptName=hr[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(Kn){this.postscriptName=hr[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=hr[7],this.manufacturer=hr[8],this.designer=hr[9],this.description=hr[10],this.vendorUrl=hr[11],this.designerUrl=hr[12],this.license=hr[13],this.licenseUrl=hr[14],this.preferredFamily=hr[15],this.preferredSubfamily=hr[17],this.compatibleFull=hr[18],this.sampleText=hr[19]},Ne}(),cn=function(nt){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return vr(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}(),vn=function(nt){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return vr(Ne,An),Ne.prototype.tag="hmtx",Ne.prototype.parse=function(He){var Xe,rt,Ze,st,xt,pt,hr;for(He.pos=this.offset,this.metrics=[],Xe=0,pt=this.file.hhea.numberOfMetrics;0<=pt?Xe<pt:Xe>pt;Xe=0<=pt?++Xe:--Xe)this.metrics.push({advance:He.readUInt16(),lsb:He.readInt16()});for(Ze=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Zr,Xr;for(Xr=[],Xe=Zr=0;0<=Ze?Zr<Ze:Zr>Ze;Xe=0<=Ze?++Zr:--Zr)Xr.push(He.readInt16());return Xr}(),this.widths=function(){var Zr,Xr,pn,gr;for(gr=[],Zr=0,Xr=(pn=this.metrics).length;Zr<Xr;Zr++)st=pn[Zr],gr.push(st.advance);return gr}.call(this),rt=this.widths[this.widths.length-1],hr=[],Xe=xt=0;0<=Ze?xt<Ze:xt>Ze;Xe=0<=Ze?++xt:--xt)hr.push(this.widths.push(rt));return hr},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}(),ei=[].slice,qn=function(nt){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return vr(Ne,An),Ne.prototype.tag="glyf",Ne.prototype.parse=function(){return this.cache={}},Ne.prototype.glyphFor=function(He){var Xe,rt,Ze,st,xt,pt,hr,Zr,Xr,pn;return He in this.cache?this.cache[He]:(st=this.file.loca,Xe=this.file.contents,rt=st.indexOf(He),(Ze=st.lengthOf(He))===0?this.cache[He]=null:(Xe.pos=this.offset+rt,xt=(pt=new zt(Xe.read(Ze))).readShort(),Zr=pt.readShort(),pn=pt.readShort(),hr=pt.readShort(),Xr=pt.readShort(),this.cache[He]=xt===-1?new xi(pt,Zr,pn,hr,Xr):new fi(pt,xt,Zr,pn,hr,Xr),this.cache[He]))},Ne.prototype.encode=function(He,Xe,rt){var Ze,st,xt,pt,hr;for(xt=[],st=[],pt=0,hr=Xe.length;pt<hr;pt++)Ze=He[Xe[pt]],st.push(xt.length),Ze&&(xt=xt.concat(Ze.encode(rt)));return st.push(xt.length),{table:xt,offsets:st}},Ne}(),fi=function(){function nt(Ne,He,Xe,rt,Ze,st){this.raw=Ne,this.numberOfContours=He,this.xMin=Xe,this.yMin=rt,this.xMax=Ze,this.yMax=st,this.compound=!1}return nt.prototype.encode=function(){return this.raw.data},nt}(),xi=function(){function nt(Ne,He,Xe,rt,Ze){var st,xt;for(this.raw=Ne,this.xMin=He,this.yMin=Xe,this.xMax=rt,this.yMax=Ze,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],st=this.raw;xt=st.readShort(),this.glyphOffsets.push(st.pos),this.glyphIDs.push(st.readUInt16()),32&xt;)st.pos+=1&xt?4:2,128&xt?st.pos+=8:64&xt?st.pos+=4:8&xt&&(st.pos+=2)}return nt.prototype.encode=function(){var Ne,He,Xe;for(He=new zt(ei.call(this.raw.data)),Ne=0,Xe=this.glyphIDs.length;Ne<Xe;++Ne)He.pos=this.glyphOffsets[Ne];return He.data},nt}(),Ni=function(nt){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return vr(Ne,An),Ne.prototype.tag="loca",Ne.prototype.parse=function(He){var Xe,rt;return He.pos=this.offset,Xe=this.file.head.indexToLocFormat,this.offsets=Xe===0?function(){var Ze,st;for(st=[],rt=0,Ze=this.length;rt<Ze;rt+=2)st.push(2*He.readUInt16());return st}.call(this):function(){var Ze,st;for(st=[],rt=0,Ze=this.length;rt<Ze;rt+=4)st.push(He.readUInt32());return st}.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,Xe){for(var rt=new Uint32Array(this.offsets.length),Ze=0,st=0,xt=0;xt<rt.length;++xt)if(rt[xt]=Ze,st<Xe.length&&Xe[st]==xt){++st,rt[xt]=Ze;var pt=this.offsets[xt],hr=this.offsets[xt+1]-pt;hr>0&&(Ze+=hr)}for(var Zr=new Array(4*rt.length),Xr=0;Xr<rt.length;++Xr)Zr[4*Xr+3]=255&rt[Xr],Zr[4*Xr+2]=(65280&rt[Xr])>>8,Zr[4*Xr+1]=(16711680&rt[Xr])>>16,Zr[4*Xr]=(4278190080&rt[Xr])>>24;return Zr},Ne}(),Hi=function(){function nt(Ne){this.font=Ne,this.subset={},this.unicodes={},this.next=33}return nt.prototype.generateCmap=function(){var Ne,He,Xe,rt,Ze;for(He in rt=this.font.cmap.tables[0].codeMap,Ne={},Ze=this.subset)Xe=Ze[He],Ne[He]=rt[Xe];return Ne},nt.prototype.glyphsFor=function(Ne){var He,Xe,rt,Ze,st,xt,pt;for(rt={},st=0,xt=Ne.length;st<xt;st++)rt[Ze=Ne[st]]=this.font.glyf.glyphFor(Ze);for(Ze in He=[],rt)((Xe=rt[Ze])!=null?Xe.compound:void 0)&&He.push.apply(He,Xe.glyphIDs);if(He.length>0)for(Ze in pt=this.glyphsFor(He))Xe=pt[Ze],rt[Ze]=Xe;return rt},nt.prototype.encode=function(Ne,He){var Xe,rt,Ze,st,xt,pt,hr,Zr,Xr,pn,gr,Kn,Rr,Pn,an;for(rt in Xe=tr.encode(this.generateCmap(),"unicode"),st=this.glyphsFor(Ne),gr={0:0},an=Xe.charMap)gr[(pt=an[rt]).old]=pt.new;for(Kn in pn=Xe.maxGlyphID,st)Kn in gr||(gr[Kn]=pn++);return Zr=function(Ur){var ii,_i;for(ii in _i={},Ur)_i[Ur[ii]]=ii;return _i}(gr),Xr=Object.keys(Zr).sort(function(Ur,ii){return Ur-ii}),Rr=function(){var Ur,ii,_i;for(_i=[],Ur=0,ii=Xr.length;Ur<ii;Ur++)xt=Xr[Ur],_i.push(Zr[xt]);return _i}(),Ze=this.font.glyf.encode(st,Rr,gr),hr=this.font.loca.encode(Ze.offsets,Rr),Pn={cmap:this.font.cmap.raw(),glyf:Ze.table,loca:hr,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&&(Pn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(Pn)},nt}();z.API.PDFObject=function(){var nt;function Ne(){}return nt=function(Xe,rt){return(Array(rt+1).join("0")+Xe).slice(-rt)},Ne.convert=function(He){var Xe,rt,Ze,st;if(Array.isArray(He))return"["+function(){var xt,pt,hr;for(hr=[],xt=0,pt=He.length;xt<pt;xt++)Xe=He[xt],hr.push(Ne.convert(Xe));return hr}().join(" ")+"]";if(typeof He=="string")return"/"+He;if(He!=null?He.isString:void 0)return"("+He+")";if(He instanceof Date)return"(D:"+nt(He.getUTCFullYear(),4)+nt(He.getUTCMonth(),2)+nt(He.getUTCDate(),2)+nt(He.getUTCHours(),2)+nt(He.getUTCMinutes(),2)+nt(He.getUTCSeconds(),2)+"Z)";if({}.toString.call(He)==="[object Object]"){for(rt in Ze=["<<"],He)st=He[rt],Ze.push("/"+rt+" "+Ne.convert(st));return Ze.push(">>"),Ze.join(`
|
|
|
`)}return""+He},Ne}(),D.default=z}.call(this,i("yLpj"))},e4Nc:function(R,D,i){var y=i("fGT3"),p=i("k+1r"),x=i("JHgL"),v=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=x,f.prototype.has=v,f.prototype.set=m,R.exports=f},e5VY:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("YNAk"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},e5cp:function(R,D,i){var y=i("fmRc"),p=i("or5M"),x=i("HDyB"),v=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,A,b){var w=f(s),E=f(c),C=w?t:m(s),_=E?t:m(c);C=C==n?a:C,_=_==n?a:_;var T=C==a,S=_==a,O=C==_;if(O&&d(s)){if(!d(c))return!1;w=!0,T=!1}if(O&&!T)return b||(b=new y),w||l(s)?p(s,c,h,g,A,b):x(s,c,C,h,g,A,b);if(!(h&o)){var I=T&&u.call(s,"__wrapped__"),F=S&&u.call(c,"__wrapped__");if(I||F){var P=I?s.value():s,B=F?c.value():c;return b||(b=new y),A(P,B,h,g,b)}}return O?(b||(b=new y),v(s,c,h,g,A,b)):!1}R.exports=r},e7zE:function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("3y9D"),i("WYAk"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.Base,m=x.WordArray,f=p.algo,d=f.SHA1,l=f.HMAC,o=f.PBKDF2=v.extend({cfg:v.extend({keySize:128/32,hasher:d,iterations:1}),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,A=e.iterations;c.length<g;){var b=u.update(a).finalize(s);u.reset();for(var w=b.words,E=w.length,C=b,_=1;_<A;_++){C=u.finalize(C),u.reset();for(var T=C.words,S=0;S<E;S++)w[S]^=T[S]}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(R,D,i){var y=i("bYtY"),p=i("hM6l");function x(m,f,d){p.call(this,m,f,d),this.type="value",this.angle=0,this.name="",this.model}y.inherits(x,p);var v=x;R.exports=v},eJH7:function(R,D,i){var y=i("bYtY");function p(x){var v=x.polar;if(v){y.isArray(v)||(v=[v]);var m=[];y.each(v,function(f,d){f.indicator?(f.type&&!f.shape&&(f.shape=f.type),x.radar=x.radar||[],y.isArray(x.radar)||(x.radar=[x.radar]),x.radar.push(f)):m.push(f)}),x.polar=m}y.each(x.series,function(f){f&&f.type==="radar"&&f.polarIndex&&(f.radarIndex=f.polarIndex)})}R.exports=p},eP3c:function(R,D,i){"use strict";function y(Ke){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(se){return typeof se}:y=function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},y(Ke)}Object.defineProperty(D,"__esModule",{value:!0}),D.inflateReset=he,D.inflateReset2=ye,D.inflateResetKeep=_e,D.inflateInit=tt,D.inflateInit2=Le,D.inflate=St,D.inflateEnd=jt,D.inflateGetHeader=Mt,D.inflateSetDictionary=Ot,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")),x=d(i("xlC8")),v=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 se={},ut=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var qe in Ke)if(Object.prototype.hasOwnProperty.call(Ke,qe)){var me=ut?Object.getOwnPropertyDescriptor(Ke,qe):null;me&&(me.get||me.set)?Object.defineProperty(se,qe,me):se[qe]=Ke[qe]}return se.default=Ke,de&&de.set(Ke,se),se}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 A=-3;D.Z_DATA_ERROR=A;var b=-4;D.Z_MEM_ERROR=b;var w=-5;D.Z_BUF_ERROR=w;var E=8;D.Z_DEFLATED=E;var C=1,_=2,T=3,S=4,O=5,I=6,F=7,P=8,B=9,k=10,G=11,M=12,j=13,K=14,z=15,V=16,Q=17,X=18,te=19,$=20,le=21,re=22,Se=23,Re=24,Pe=25,Je=26,Ge=27,ct=28,Ue=29,ae=30,lt=31,pe=32,J=852,Y=592,ee=15,fe=ee;function we(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 _e(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=C,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(J),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,_e(Ke))}function ye(Ke,de){var se,ut;return!Ke||!Ke.state?g:(ut=Ke.state,de<0?(se=0,de=-de):(se=(de>>4)+1,de<48&&(de&=15)),de&&(de<8||de>15)?g:(ut.window!==null&&ut.wbits!==de&&(ut.window=null),ut.wrap=se,ut.wbits=de,he(Ke)))}function Le(Ke,de){var se,ut;return Ke?(ut=new Ce,Ke.state=ut,ut.window=null,se=ye(Ke,de),se!==s&&(Ke.state=null),se):g}function tt(Ke){return Le(Ke,fe)}var gt=!0,at,Fe;function mt(Ke){if(gt){var de;for(at=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,at,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}),gt=!1}Ke.lencode=at,Ke.lenbits=9,Ke.distcode=Fe,Ke.distbits=5}function et(Ke,de,se,ut){var qe,me=Ke.state;return me.window===null&&(me.wsize=1<<me.wbits,me.wnext=0,me.whave=0,me.window=new p.Buf8(me.wsize)),ut>=me.wsize?(p.arraySet(me.window,de,se-me.wsize,me.wsize,0),me.wnext=0,me.whave=me.wsize):(qe=me.wsize-me.wnext,qe>ut&&(qe=ut),p.arraySet(me.window,de,se-ut,qe,me.wnext),ut-=qe,ut?(p.arraySet(me.window,de,se-ut,ut,0),me.wnext=ut,me.whave=me.wsize):(me.wnext+=qe,me.wnext===me.wsize&&(me.wnext=0),me.whave<me.wsize&&(me.whave+=qe))),0}function St(Ke,de){var se,ut,qe,me,Wt,dr,vt,rr,ur,mn,sr,xr,pr,Zt,Ct=0,on,Mn,Xn,oi,Ui,Un,Qn,$t,Nt=new p.Buf8(4),Me,ke,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;se=Ke.state,se.mode===M&&(se.mode=j),Wt=Ke.next_out,qe=Ke.output,vt=Ke.avail_out,me=Ke.next_in,ut=Ke.input,dr=Ke.avail_in,rr=se.hold,ur=se.bits,mn=dr,sr=vt,$t=s;e:for(;;)switch(se.mode){case C:if(se.wrap===0){se.mode=j;break}for(;ur<16;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}if(se.wrap&2&&rr===35615){se.check=0,Nt[0]=rr&255,Nt[1]=rr>>>8&255,se.check=(0,v.default)(se.check,Nt,2,0),rr=0,ur=0,se.mode=_;break}if(se.flags=0,se.head&&(se.head.done=!1),!(se.wrap&1)||(((rr&255)<<8)+(rr>>8))%31){Ke.msg="incorrect header check",se.mode=ae;break}if((rr&15)!==E){Ke.msg="unknown compression method",se.mode=ae;break}if(rr>>>=4,ur-=4,Qn=(rr&15)+8,se.wbits===0)se.wbits=Qn;else if(Qn>se.wbits){Ke.msg="invalid window size",se.mode=ae;break}se.dmax=1<<Qn,Ke.adler=se.check=1,se.mode=rr&512?k:M,rr=0,ur=0;break;case _:for(;ur<16;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}if(se.flags=rr,(se.flags&255)!==E){Ke.msg="unknown compression method",se.mode=ae;break}if(se.flags&57344){Ke.msg="unknown header flags set",se.mode=ae;break}se.head&&(se.head.text=rr>>8&1),se.flags&512&&(Nt[0]=rr&255,Nt[1]=rr>>>8&255,se.check=(0,v.default)(se.check,Nt,2,0)),rr=0,ur=0,se.mode=T;case T:for(;ur<32;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}se.head&&(se.head.time=rr),se.flags&512&&(Nt[0]=rr&255,Nt[1]=rr>>>8&255,Nt[2]=rr>>>16&255,Nt[3]=rr>>>24&255,se.check=(0,v.default)(se.check,Nt,4,0)),rr=0,ur=0,se.mode=S;case S:for(;ur<16;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}se.head&&(se.head.xflags=rr&255,se.head.os=rr>>8),se.flags&512&&(Nt[0]=rr&255,Nt[1]=rr>>>8&255,se.check=(0,v.default)(se.check,Nt,2,0)),rr=0,ur=0,se.mode=O;case O:if(se.flags&1024){for(;ur<16;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}se.length=rr,se.head&&(se.head.extra_len=rr),se.flags&512&&(Nt[0]=rr&255,Nt[1]=rr>>>8&255,se.check=(0,v.default)(se.check,Nt,2,0)),rr=0,ur=0}else se.head&&(se.head.extra=null);se.mode=I;case I:if(se.flags&1024&&(xr=se.length,xr>dr&&(xr=dr),xr&&(se.head&&(Qn=se.head.extra_len-se.length,se.head.extra||(se.head.extra=new Array(se.head.extra_len)),p.arraySet(se.head.extra,ut,me,xr,Qn)),se.flags&512&&(se.check=(0,v.default)(se.check,ut,xr,me)),dr-=xr,me+=xr,se.length-=xr),se.length))break e;se.length=0,se.mode=F;case F:if(se.flags&2048){if(dr===0)break e;xr=0;do Qn=ut[me+xr++],se.head&&Qn&&se.length<65536&&(se.head.name+=String.fromCharCode(Qn));while(Qn&&xr<dr);if(se.flags&512&&(se.check=(0,v.default)(se.check,ut,xr,me)),dr-=xr,me+=xr,Qn)break e}else se.head&&(se.head.name=null);se.length=0,se.mode=P;case P:if(se.flags&4096){if(dr===0)break e;xr=0;do Qn=ut[me+xr++],se.head&&Qn&&se.length<65536&&(se.head.comment+=String.fromCharCode(Qn));while(Qn&&xr<dr);if(se.flags&512&&(se.check=(0,v.default)(se.check,ut,xr,me)),dr-=xr,me+=xr,Qn)break e}else se.head&&(se.head.comment=null);se.mode=B;case B:if(se.flags&512){for(;ur<16;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}if(rr!==(se.check&65535)){Ke.msg="header crc mismatch",se.mode=ae;break}rr=0,ur=0}se.head&&(se.head.hcrc=se.flags>>9&1,se.head.done=!0),Ke.adler=se.check=0,se.mode=M;break;case k:for(;ur<32;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}Ke.adler=se.check=we(rr),rr=0,ur=0,se.mode=G;case G:if(se.havedict===0)return Ke.next_out=Wt,Ke.avail_out=vt,Ke.next_in=me,Ke.avail_in=dr,se.hold=rr,se.bits=ur,h;Ke.adler=se.check=1,se.mode=M;case M:if(de===u||de===r)break e;case j:if(se.last){rr>>>=ur&7,ur-=ur&7,se.mode=Ge;break}for(;ur<3;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}se.last=rr&1,rr>>>=1,ur-=1;switch(rr&3){case 0:se.mode=K;break;case 1:if(mt(se),se.mode=$,de===r){rr>>>=2,ur-=2;break e}break;case 2:se.mode=Q;break;case 3:Ke.msg="invalid block type",se.mode=ae}rr>>>=2,ur-=2;break;case K:for(rr>>>=ur&7,ur-=ur&7;ur<32;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}if((rr&65535)!==(rr>>>16^65535)){Ke.msg="invalid stored block lengths",se.mode=ae;break}if(se.length=rr&65535,rr=0,ur=0,se.mode=z,de===r)break e;case z:se.mode=V;case V:if(xr=se.length,xr){if(xr>dr&&(xr=dr),xr>vt&&(xr=vt),xr===0)break e;p.arraySet(qe,ut,me,xr,Wt),dr-=xr,me+=xr,vt-=xr,Wt+=xr,se.length-=xr;break}se.mode=M;break;case Q:for(;ur<14;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}if(se.nlen=(rr&31)+257,rr>>>=5,ur-=5,se.ndist=(rr&31)+1,rr>>>=5,ur-=5,se.ncode=(rr&15)+4,rr>>>=4,ur-=4,se.nlen>286||se.ndist>30){Ke.msg="too many length or distance symbols",se.mode=ae;break}se.have=0,se.mode=X;case X:for(;se.have<se.ncode;){for(;ur<3;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}se.lens[Be[se.have++]]=rr&7,rr>>>=3,ur-=3}for(;se.have<19;)se.lens[Be[se.have++]]=0;if(se.lencode=se.lendyn,se.lenbits=7,Me={bits:se.lenbits},$t=(0,f.default)(n,se.lens,0,19,se.lencode,0,se.work,Me),se.lenbits=Me.bits,$t){Ke.msg="invalid code lengths set",se.mode=ae;break}se.have=0,se.mode=te;case te:for(;se.have<se.nlen+se.ndist;){for(;!(Ct=se.lencode[rr&(1<<se.lenbits)-1],on=Ct>>>24,Mn=Ct>>>16&255,Xn=Ct&65535,on<=ur);){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}if(Xn<16)rr>>>=on,ur-=on,se.lens[se.have++]=Xn;else{if(Xn===16){for(ke=on+2;ur<ke;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}if(rr>>>=on,ur-=on,se.have===0){Ke.msg="invalid bit length repeat",se.mode=ae;break}Qn=se.lens[se.have-1],xr=3+(rr&3),rr>>>=2,ur-=2}else if(Xn===17){for(ke=on+3;ur<ke;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}rr>>>=on,ur-=on,Qn=0,xr=3+(rr&7),rr>>>=3,ur-=3}else{for(ke=on+7;ur<ke;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}rr>>>=on,ur-=on,Qn=0,xr=11+(rr&127),rr>>>=7,ur-=7}if(se.have+xr>se.nlen+se.ndist){Ke.msg="invalid bit length repeat",se.mode=ae;break}for(;xr--;)se.lens[se.have++]=Qn}}if(se.mode===ae)break;if(se.lens[256]===0){Ke.msg="invalid code -- missing end-of-block",se.mode=ae;break}if(se.lenbits=9,Me={bits:se.lenbits},$t=(0,f.default)(t,se.lens,0,se.nlen,se.lencode,0,se.work,Me),se.lenbits=Me.bits,$t){Ke.msg="invalid literal/lengths set",se.mode=ae;break}if(se.distbits=6,se.distcode=se.distdyn,Me={bits:se.distbits},$t=(0,f.default)(a,se.lens,se.nlen,se.ndist,se.distcode,0,se.work,Me),se.distbits=Me.bits,$t){Ke.msg="invalid distances set",se.mode=ae;break}if(se.mode=$,de===r)break e;case $:se.mode=le;case le:if(dr>=6&&vt>=258){Ke.next_out=Wt,Ke.avail_out=vt,Ke.next_in=me,Ke.avail_in=dr,se.hold=rr,se.bits=ur,(0,m.default)(Ke,sr),Wt=Ke.next_out,qe=Ke.output,vt=Ke.avail_out,me=Ke.next_in,ut=Ke.input,dr=Ke.avail_in,rr=se.hold,ur=se.bits,se.mode===M&&(se.back=-1);break}for(se.back=0;!(Ct=se.lencode[rr&(1<<se.lenbits)-1],on=Ct>>>24,Mn=Ct>>>16&255,Xn=Ct&65535,on<=ur);){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}if(Mn&&(Mn&240)===0){for(oi=on,Ui=Mn,Un=Xn;!(Ct=se.lencode[Un+((rr&(1<<oi+Ui)-1)>>oi)],on=Ct>>>24,Mn=Ct>>>16&255,Xn=Ct&65535,oi+on<=ur);){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}rr>>>=oi,ur-=oi,se.back+=oi}if(rr>>>=on,ur-=on,se.back+=on,se.length=Xn,Mn===0){se.mode=Je;break}if(Mn&32){se.back=-1,se.mode=M;break}if(Mn&64){Ke.msg="invalid literal/length code",se.mode=ae;break}se.extra=Mn&15,se.mode=re;case re:if(se.extra){for(ke=se.extra;ur<ke;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}se.length+=rr&(1<<se.extra)-1,rr>>>=se.extra,ur-=se.extra,se.back+=se.extra}se.was=se.length,se.mode=Se;case Se:for(;!(Ct=se.distcode[rr&(1<<se.distbits)-1],on=Ct>>>24,Mn=Ct>>>16&255,Xn=Ct&65535,on<=ur);){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}if((Mn&240)===0){for(oi=on,Ui=Mn,Un=Xn;!(Ct=se.distcode[Un+((rr&(1<<oi+Ui)-1)>>oi)],on=Ct>>>24,Mn=Ct>>>16&255,Xn=Ct&65535,oi+on<=ur);){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}rr>>>=oi,ur-=oi,se.back+=oi}if(rr>>>=on,ur-=on,se.back+=on,Mn&64){Ke.msg="invalid distance code",se.mode=ae;break}se.offset=Xn,se.extra=Mn&15,se.mode=Re;case Re:if(se.extra){for(ke=se.extra;ur<ke;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}se.offset+=rr&(1<<se.extra)-1,rr>>>=se.extra,ur-=se.extra,se.back+=se.extra}if(se.offset>se.dmax){Ke.msg="invalid distance too far back",se.mode=ae;break}se.mode=Pe;case Pe:if(vt===0)break e;if(xr=sr-vt,se.offset>xr){if(xr=se.offset-xr,xr>se.whave&&se.sane){Ke.msg="invalid distance too far back",se.mode=ae;break}xr>se.wnext?(xr-=se.wnext,pr=se.wsize-xr):pr=se.wnext-xr,xr>se.length&&(xr=se.length),Zt=se.window}else Zt=qe,pr=Wt-se.offset,xr=se.length;xr>vt&&(xr=vt),vt-=xr,se.length-=xr;do qe[Wt++]=Zt[pr++];while(--xr);se.length===0&&(se.mode=le);break;case Je:if(vt===0)break e;qe[Wt++]=se.length,vt--,se.mode=le;break;case Ge:if(se.wrap){for(;ur<32;){if(dr===0)break e;dr--,rr|=ut[me++]<<ur,ur+=8}if(sr-=vt,Ke.total_out+=sr,se.total+=sr,sr&&(Ke.adler=se.check=se.flags?(0,v.default)(se.check,qe,sr,Wt-sr):(0,x.default)(se.check,qe,sr,Wt-sr)),sr=vt,(se.flags?rr:we(rr))!==se.check){Ke.msg="incorrect data check",se.mode=ae;break}rr=0,ur=0}se.mode=ct;case ct:if(se.wrap&&se.flags){for(;ur<32;){if(dr===0)break e;dr--,rr+=ut[me++]<<ur,ur+=8}if(rr!==(se.total&4294967295)){Ke.msg="incorrect length check",se.mode=ae;break}rr=0,ur=0}se.mode=Ue;case Ue:$t=c;break e;case ae:$t=A;break e;case lt:return b;case pe:default:return g}return Ke.next_out=Wt,Ke.avail_out=vt,Ke.next_in=me,Ke.avail_in=dr,se.hold=rr,se.bits=ur,(se.wsize||sr!==Ke.avail_out&&se.mode<ae&&(se.mode<Ge||de!==e))&&et(Ke,Ke.output,Ke.next_out,sr-Ke.avail_out)?(se.mode=lt,b):(mn-=Ke.avail_in,sr-=Ke.avail_out,Ke.total_in+=mn,Ke.total_out+=sr,se.total+=sr,se.wrap&&sr&&(Ke.adler=se.check=se.flags?(0,v.default)(se.check,qe,sr,Ke.next_out-sr):(0,x.default)(se.check,qe,sr,Ke.next_out-sr)),Ke.data_type=se.bits+(se.last?64:0)+(se.mode===M?128:0)+(se.mode===$||se.mode===z?256:0),(mn===0&&sr===0||de===e)&&$t===s&&($t=w),$t)}function jt(Ke){if(!Ke||!Ke.state)return g;var de=Ke.state;return de.window&&(de.window=null),Ke.state=null,s}function Mt(Ke,de){var se;return!Ke||!Ke.state?g:(se=Ke.state,(se.wrap&2)===0?g:(se.head=de,de.done=!1,s))}function Ot(Ke,de){var se=de.length,ut,qe,me;return!Ke||!Ke.state?g:(ut=Ke.state,ut.wrap!==0&&ut.mode!==G?g:ut.mode===G&&(qe=1,qe=(0,x.default)(qe,de,se,0),qe!==ut.check)?A:(me=et(Ke,de,se,se),me?(ut.mode=lt,b):(ut.havedict=1,s)))}var Bt="pako inflate (from Nodeca project)";D.inflateInfo=Bt},ePAk:function(R,D,i){var y=i("ProS");i("2fGM");var p=y.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(x){var v,m=this.ecModel;return m.eachComponent(x,function(f){f.getCoordSysModel()===this&&(v=f)},this),v},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});R.exports=p},eRkO:function(R,D,i){var y=i("+TT/"),p=y.getLayoutRect,x=y.box,v=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);x(n.get("orient"),o,n.get("itemGap"),r.width,r.height),v(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(R,D,i){i("HM/N"),i("FNN5")},ebwN:function(R,D,i){var y=i("Cwc5"),p=i("Kz5y"),x=y(p,"Map");R.exports=x},ekgI:function(R,D,i){var y=i("YESw"),p=Object.prototype,x=p.hasOwnProperty;function v(m){var f=this.__data__;return y?f[m]!==void 0:x.call(f,m)}R.exports=v},ewwo:function(R,D,i){var y=i("bMXI"),p=i("+TT/"),x=p.getLayoutRect,v=i("4mN7");function m(d,l,o){var n=d.getBoxLayoutParams();return n.aspect=o,x(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(E){var C=a.getItemModel(E);return[+C.get("x"),+C.get("y")]}),u=[],r=[];v.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],A=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,A,b),w.setCenter(n.get("center")),w.setZoom(n.get("zoom")),o.push(w)}}),o}R.exports=f},f1nB:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("ProS"),v=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};x.registerPreprocessor(function(A){var b=A.graphic;v.isArray(b)?!b[0]||!b[0].elements?A.graphic=[{elements:b}]:A.graphic=[A.graphic[0]]:b&&!b.elements&&(A.graphic=[{elements:[b]}])});var t=x.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(A){var b=this.option.elements;this.option.elements=null,t.superApply(this,"mergeOption",arguments),this.option.elements=b},optionUpdated:function(A,b){var w=this.option,E=(b?w:A).elements,C=w.elements=b?[]:w.elements,_=[];this._flatten(E,_);var T=m.mappingToExists(C,_);m.makeIdAndName(T);var S=this._elOptionsToUpdate=[];v.each(T,function(I,F){var P=I.option;if(!P)return;S.push(P),s(I,P),c(C,F,P),h(C[F],P)},this);for(var O=C.length-1;O>=0;O--)C[O]==null?C.splice(O,1):delete C[O].$action},_flatten:function(A,b,w){v.each(A,function(E){if(!E)return;w&&(E.parentOption=w),b.push(E);var C=E.children;E.type==="group"&&C&&this._flatten(C,b,E),delete E.children},this)},useElOptionsToUpdate:function(){var A=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,A}});x.extendComponentView({type:"graphic",init:function(A,b){this._elMap=v.createHashMap(),this._lastGraphicModel},render:function(A,b,w){A!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=A,this._updateElements(A),this._relocate(A,w)},_updateElements:function(A){var b=A.useElOptionsToUpdate();if(!b)return;var w=this._elMap,E=this.group;v.each(b,function(C){var _=C.$action,T=C.id,S=w.get(T),O=C.parentId,I=O!=null?w.get(O):E,F=C.style;C.type==="text"&&F&&(C.hv&&C.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 P=u(C);!_||_==="merge"?S?S.attr(P):a(T,I,P,w):_==="replace"?(e(S,w),a(T,I,P,w)):_==="remove"&&e(S,w);var B=w.get(T);B&&(B.__ecGraphicWidthOption=C.width,B.__ecGraphicHeightOption=C.height,g(B,A,C))})},_relocate:function(A,b){for(var w=A.option.elements,E=this.group,C=this._elMap,_=b.getWidth(),T=b.getHeight(),S=0;S<w.length;S++){var O=w[S],I=C.get(O.id);if(!I||!I.isGroup)continue;var F=I.parent,P=F===E;I.__ecGraphicWidth=o(I.__ecGraphicWidthOption,P?_:F.__ecGraphicWidth)||0,I.__ecGraphicHeight=o(I.__ecGraphicHeightOption,P?T:F.__ecGraphicHeight)||0}for(var S=w.length-1;S>=0;S--){var O=w[S],I=C.get(O.id);if(!I)continue;var F=I.parent,B=F===E?{width:_,height:T}:{width:F.__ecGraphicWidth,height:F.__ecGraphicHeight};d.positionElement(I,O,B,null,{hv:O.hv,boundingMode:O.bounding})}},_clear:function(){var A=this._elMap;A.each(function(b){e(b,A)}),this._elMap=v.createHashMap()},dispose:function(){this._clear()}});function a(A,b,w,E){var C=w.type,_=n.hasOwnProperty(C)?n[C]:f.getShapeClass(C),T=new _(w);b.add(T),E.set(A,T),T.__ecGraphicId=A}function e(A,b){var w=A&&A.parent;w&&(A.type==="group"&&A.traverse(function(E){e(E,b)}),b.removeKey(A.__ecGraphicId),w.remove(A))}function u(A){return A=v.extend({},A),v.each(["id","parentId","$action","hv","bounding"].concat(d.LOCATION_PARAMS),function(b){delete A[b]}),A}function r(A,b){var w;return v.each(b,function(E){A[E]!=null&&A[E]!=="auto"&&(w=!0)}),w}function s(A,b){var w=A.exist;if(b.id=A.keyInfo.id,!b.type&&w&&(b.type=w.type),b.parentId==null){var E=b.parentOption;E?b.parentId=E.id:w&&(b.parentId=w.parentId)}b.parentOption=null}function c(A,b,w){var E=v.extend({},w),C=A[b],_=w.$action||"merge";_==="merge"?C?(v.merge(C,E,!0),d.mergeLayoutParam(C,E,{ignoreSize:!0}),d.copyLayoutParams(w,C)):A[b]=E:_==="replace"?A[b]=E:_==="remove"&&(C&&(A[b]=null))}function h(A,b){if(!A)return;A.hv=b.hv=[r(b,["left","right"]),r(b,["top","bottom"])],A.type==="group"&&(A.width==null&&(A.width=b.width=0),A.height==null&&(A.height=b.height=0))}function g(A,b,w){var E=A.eventData;!A.silent&&!A.ignore&&!E&&(E=A.eventData={componentType:"graphic",componentIndex:b.componentIndex,name:A.name}),E&&(E.info=A.info)}},f3JH:function(R,D,i){i("aTJb"),i("OlYY"),i("fc+c"),i("oY9F"),i("MqEG"),i("LBfv"),i("noeP")},f4xo:function(R,D,i){var y=i("nVVt");function p(x){this.mode=y.MODE_8BIT_BYTE,this.data=x}p.prototype={getLength:function(v){return this.data.length},write:function(v){for(var m=0;m<this.data.length;m++)v.put(this.data.charCodeAt(m),8)}},R.exports=p},f5HG:function(R,D,i){var y=i("IwbS"),p=i("QBsz"),x=y.Line.prototype,v=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:x.buildPath,_buildPathCurve:v.buildPath,pointAt:function(d){return this[m(this.shape)?"_pointAtLine":"_pointAtCurve"](d)},_pointAtLine:x.pointAt,_pointAtCurve:v.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:v.tangentAt});R.exports=f},f5Yq:function(R,D,i){var y=i("bYtY"),p=y.isFunction;function x(v,m,f){return{seriesType:v,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,A=s?null:a,b=c?null:b;if(n.setVisual({legendSymbol:f||g,symbol:g,symbolSize:A,symbolKeepAspect:e,symbolRotate:u}),l.isSeriesFiltered(d))return;function w(E,C){if(h){var _=d.getRawValue(C),T=d.getDataParams(C);r&&E.setItemVisual(C,"symbol",t(_,T)),s&&E.setItemVisual(C,"symbolSize",a(_,T)),c&&E.setItemVisual(C,"symbolRotate",u(_,T))}if(E.hasItemOption){var S=E.getItemModel(C),O=S.getShallow("symbol",!0),I=S.getShallow("symbolSize",!0),F=S.getShallow("symbolRotate",!0),P=S.getShallow("symbolKeepAspect",!0);O!=null&&E.setItemVisual(C,"symbol",O),I!=null&&E.setItemVisual(C,"symbolSize",I),F!=null&&E.setItemVisual(C,"symbolRotate",F),P!=null&&E.setItemVisual(C,"symbolKeepAspect",P)}}return{dataEach:n.hasItemOption||h?w:null}}}}R.exports=x},fE02:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("/IIm"),v=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,A,b){(this._brushController=new x(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,A,b,w){this.model=g,this.ecModel=A,this.api=b,c(g,A,this,w,b),s(g,A)},e.onclick=function(g,A,b){u[b].call(this)},e.remove=function(g,A){this._brushController.unmount()},e.dispose=function(g,A){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,A){if(!A.isEnd||!g.length)return;var b={},w=this.ecModel;this._brushController.updateCovers([]);var E=new v(r(this.model.option),w,{include:["grid"]});E.matchOutputRanges(g,w,function(T,S,O){if(O.type!=="cartesian2d")return;var I=T.brushType;I==="rect"?(C("x",O,S[0]),C("y",O,S[1])):C({lineX:"x",lineY:"y"}[I],O,S)}),m.push(w,b),this._dispatchZoomAction(b);function C(T,S,O){var I=S.getAxis(T),F=I.model,P=_(T,F,w),B=P.findRepresentativeAxisProxy(F).getMinMaxSpan();(B.minValueSpan!=null||B.maxValueSpan!=null)&&(O=f(0,O.slice(),I.scale.getExtent(),0,B.minValueSpan,B.maxValueSpan)),P&&(b[P.id]={dataZoomId:P.id,startValue:O[0],endValue:O[1]})}function _(T,S,O){var I;return O.eachComponent({mainType:"dataZoom",subType:"select"},function(F){var P=F.getAxisModel(T,S.componentIndex);P&&(I=F)}),I}},e._dispatchZoomAction=function(g){var A=[];n(g,function(b,w){A.push(p.clone(b))}),A.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:A})};function r(g){var A={};return p.each(["xAxisIndex","yAxisIndex"],function(b){A[b]=g[b],A[b]==null&&(A[b]="all"),(A[b]===!1||A[b]==="none")&&(A[b]=[])}),A}function s(g,A){g.setIconStatus("back",m.count(A)>1?"emphasis":"normal")}function c(g,A,b,w,E){var C=b._isZoomActive;w&&w.type==="takeGlobalCursor"&&(C=w.key==="dataZoomSelect"?w.dataZoomSelectActive:!1),b._isZoomActive=C,g.setIconStatus("zoom",C?"emphasis":"normal");var _=new v(r(g.option),A,{include:["grid"]});b._brushController.setPanels(_.makePanelOpts(E,function(T){return T.xAxisDeclared&&!T.yAxisDeclared?"lineX":!T.xAxisDeclared&&T.yAxisDeclared?"lineY":"rect"})).enableBrush(C?{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 A=g.dataZoom||(g.dataZoom=[]);p.isArray(A)||(g.dataZoom=A=[A]);var b=g.toolbox;if(b&&(p.isArray(b)&&(b=b[0]),b&&b.feature)){var w=b.feature.dataZoom;E("xAxis",w),E("yAxis",w)}function E(_,T){if(!T)return;var S=_+"Index",O=T[S];O!=null&&O!=="all"&&!p.isArray(O)&&(O=O===!1||O==="none"?[]:[O]),C(_,function(I,F){if(O!=null&&O!=="all"&&p.indexOf(O,F)===-1)return;var P={type:"select",$fromToolbox:!0,filterMode:T.filterMode||"filter",id:t+_+F};P[S]=F,A.push(P)})}function C(_,T){var S=g[_];p.isArray(S)||(S=S?[S]:[]),n(S,T)}});var h=a;R.exports=h},fGT3:function(R,D,i){var y=i("4kuk"),p=i("Xi7e"),x=i("ebwN");function v(){this.size=0,this.__data__={hash:new y,map:new(x||p),string:new y}}R.exports=v},fNCr:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("tSko"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},"fR/l":function(R,D,i){var y=i("CH3K"),p=i("Z0cm");function x(v,m,f){var d=m(v);return p(v)?d:y(d,f(v))}R.exports=x},fUL4:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("r+aA"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},fW2E:function(R,D){var i={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function y(p,x,v){return i.hasOwnProperty(x)?v*=p.dpr:v}R.exports=y},"fc+c":function(R,D,i){var y=i("sS/r"),p=y.extend({type:"dataZoom",render:function(x,v,m,f){this.dataZoomModel=x,this.ecModel=v,this.api=m},getTargetCoordInfo:function(){var x=this.dataZoomModel,v=this.ecModel,m={};x.eachTargetAxis(function(d,l){var o=v.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}});R.exports=p},fjKi:function(R,D,i){var y=i("ProS");i("Q7if"),i("jndi"),y.registerPreprocessor(function(p){p.markArea=p.markArea||{}})},fls0:function(R,D,i){var y=i("bYtY"),p=i("QBsz"),x=i("oVpE"),v=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 A=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 E=x.createSymbol(b,-w[0]/2,-w[1]/2,w[0],w[1],A);return E.name=c,E}function t(c){var h=new v({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"),A=c.childOfName("label");if(!h&&!g&&A.ignore)return;for(var b=1,w=this.parent;w;)w.scale&&(b/=w.scale[0]),w=w.parent;var E=c.childOfName("line");if(!this.__dirty&&!E.__dirty)return;var C=E.shape.percent,_=E.pointAt(0),T=E.pointAt(C),S=p.sub([],T,_);if(p.normalize(S,S),h){h.attr("position",_);var O=E.tangentAt(0);h.attr("rotation",Math.PI/2-Math.atan2(O[1],O[0])),h.attr("scale",[b*C,b*C])}if(g){g.attr("position",T);var O=E.tangentAt(1);g.attr("rotation",-Math.PI/2-Math.atan2(O[1],O[0])),g.attr("scale",[b*C,b*C])}if(!A.ignore){A.attr("position",T);var I,F,P,B,k=A.__labelDistance,G=k[0]*b,M=k[1]*b,j=C/2,O=E.tangentAt(j),K=[O[1],-O[0]],z=E.pointAt(j);K[1]>0&&(K[0]=-K[0],K[1]=-K[1]);var V=O[0]<0?-1:1;if(A.__position!=="start"&&A.__position!=="end"){var Q=-Math.atan2(O[1],O[0]);T[0]<_[0]&&(Q=Math.PI+Q),A.attr("rotation",Q)}var X;switch(A.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":X=-M,P="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":X=M,P="top";break;default:X=0,P="middle"}switch(A.__position){case"end":I=[S[0]*G+T[0],S[1]*M+T[1]],F=S[0]>.8?"left":S[0]<-.8?"right":"center",P=S[1]>.8?"top":S[1]<-.8?"bottom":"middle";break;case"start":I=[-S[0]*G+_[0],-S[1]*M+_[1]],F=S[0]>.8?"right":S[0]<-.8?"left":"center",P=S[1]>.8?"bottom":S[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":I=[G*V+_[0],_[1]+X],F=O[0]<0?"right":"left",B=[-G*V,-X];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":I=[z[0],z[1]+X],F="center",B=[0,-X];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":I=[-G*V+T[0],T[1]+X],F=O[0]>=0?"right":"left",B=[G*V,-X];break}A.attr({style:{textVerticalAlign:A.__verticalAlign||P,textAlign:A.__textAlign||F},position:I,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 A=c.hostModel,b=c.getItemLayout(h),w=t(b);w.shape.percent=0,m.initProps(w,{shape:{percent:1}},A,h),this.add(w);var E=new m.Text({name:"label",lineLabelOriginalOpacity:1});this.add(E),y.each(l,function(C){var _=n(C,c,h);this.add(_),this[o(C)]=c.getItemVisual(h,C)},this),this._updateCommonStl(c,h,g)},r.updateData=function(c,h,g){var A=c.hostModel,b=this.childOfName("line"),w=c.getItemLayout(h),E={shape:{}};a(E.shape,w),m.updateProps(b,E,A,h),y.each(l,function(C){var _=c.getItemVisual(h,C),T=o(C);if(this[T]!==_){this.remove(this.childOfName(C));var S=n(C,c,h);this.add(S)}this[T]=_},this),this._updateCommonStl(c,h,g)},r._updateCommonStl=function(c,h,g){var A=c.hostModel,b=this.childOfName("line"),w=g&&g.lineStyle,E=g&&g.hoverLineStyle,C=g&&g.labelModel,_=g&&g.hoverLabelModel;if(!g||c.hasItemOption){var T=c.getItemModel(h);w=T.getModel("lineStyle").getLineStyle(),E=T.getModel("emphasis.lineStyle").getLineStyle(),C=T.getModel("label"),_=T.getModel("emphasis.label")}var S=c.getItemVisual(h,"color"),O=y.retrieve3(c.getItemVisual(h,"opacity"),w.opacity,1);b.useStyle(y.defaults({strokeNoScale:!0,fill:"none",stroke:S,opacity:O},w)),b.hoverStyle=E,y.each(l,function(V){var Q=this.childOfName(V);Q&&(Q.setColor(S),Q.setStyle({opacity:O}))},this);var I=C.getShallow("show"),F=_.getShallow("show"),P=this.childOfName("label"),B,k;if((I||F)&&(B=S||"#000",k=A.getFormattedLabel(h,"normal",c.dataType),k==null)){var G=A.getRawValue(h);k=G==null?c.getName(h):isFinite(G)?d(G):G}var M=I?k:null,j=F?y.retrieve2(A.getFormattedLabel(h,"emphasis",c.dataType),k):null,K=P.style;if(M!=null||j!=null){m.setTextStyle(P.style,C,{text:M},{autoColor:B}),P.__textAlign=K.textAlign,P.__verticalAlign=K.textVerticalAlign,P.__position=C.get("position")||"middle";var z=C.get("distance");y.isArray(z)||(z=[z,z]),P.__labelDistance=z}j!=null?P.hoverStyle={text:j,textFill:_.getTextColor(!0),fontStyle:_.getShallow("fontStyle"),fontWeight:_.getShallow("fontWeight"),fontSize:_.getShallow("fontSize"),fontFamily:_.getShallow("fontFamily")}:P.hoverStyle={text:null},P.ignore=!I&&!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;R.exports=s},fmMI:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=x.each,m=x.filter,f=x.map,d=x.isArray,l=x.indexOf,o=x.isObject,n=x.isString,t=x.createHashMap,a=x.assert,e=x.clone,u=x.merge,r=x.extend,s=x.mixin,c=i("4NO4"),h=i("Qxkt"),g=i("bLfw"),A=i("iXHM"),b=i("5Hur"),w=i("D5nY"),E=w.resetSourceDefaulter,C="\0_ec_inner",_=h.extend({init:function(M,j,K,z){K=K||{},this.option=null,this._theme=new h(K),this._optionManager=z},setOption:function(M,j){a(!(C in M),"please use chart.getOption()"),this._optionManager.setOption(M,j),this.resetOption(null)},resetOption:function(M){var j=!1,K=this._optionManager;if(!M||M==="recreate"){var z=K.mountOption(M==="recreate");!this.option||M==="recreate"?O.call(this,z):(this.restoreData(),this.mergeOption(z)),j=!0}if((M==="timeline"||M==="media")&&this.restoreData(),!M||M==="recreate"||M==="timeline"){var V=K.getTimelineOption(this);V&&(this.mergeOption(V),j=!0)}if(!M||M==="recreate"||M==="media"){var Q=K.getMediaOption(this,this._api);Q.length&&v(Q,function(X){this.mergeOption(X,j=!0)},this)}return j},mergeOption:function(M){var j=this.option,K=this._componentsMap,z=[];E(this),v(M,function(Q,X){if(Q==null)return;g.hasClass(X)?X&&z.push(X):j[X]=j[X]==null?e(Q):u(j[X],Q,!0)}),g.topologicalTravel(z,g.getAllClassMainTypes(),V,this);function V(Q,X){var te=c.normalizeToArray(M[Q]),$=c.mappingToExists(K.get(Q),te);c.makeIdAndName($),v($,function(re,Se){var Re=re.option;o(Re)&&(re.keyInfo.mainType=Q,re.keyInfo.subType=F(Q,Re,re.exist))});var le=I(K,X);j[Q]=[],K.set(Q,[]),v($,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 Ge=r({dependentModels:le,componentIndex:Se},re.keyInfo);Re=new Je(Pe,this,this,Ge),r(Re,Ge),Re.init(Pe,this,this,Ge),Re.optionUpdated(null,!0)}}K.get(Q)[Se]=Re,j[Q][Se]=Re.option},this),Q==="series"&&P(this,K.get("series"))}this._seriesIndicesMap=t(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var M=e(this.option);return v(M,function(j,K){if(g.hasClass(K)){for(var j=c.normalizeToArray(j),z=j.length-1;z>=0;z--)c.isIdInner(j[z])&&j.splice(z,1);M[K]=j}}),delete M[C],M},getTheme:function(){return this._theme},getComponent:function(M,j){var K=this._componentsMap.get(M);if(K)return K[j||0]},queryComponents:function(M){var j=M.mainType;if(!j)return[];var K=M.index,z=M.id,V=M.name,Q=this._componentsMap.get(j);if(!Q||!Q.length)return[];var X;if(K!=null)d(K)||(K=[K]),X=m(f(K,function(le){return Q[le]}),function(le){return!!le});else if(z!=null){var te=d(z);X=m(Q,function(le){return te&&l(z,le.id)>=0||!te&&le.id===z})}else if(V!=null){var $=d(V);X=m(Q,function(le){return $&&l(V,le.name)>=0||!$&&le.name===V})}else X=Q.slice();return B(X,M)},findComponents:function(M){var j=M.query,K=M.mainType,z=Q(j),V=z?this.queryComponents(z):this._componentsMap.get(K);return X(B(V,M));function Q(te){var $=K+"Index",le=K+"Id",re=K+"Name";return te&&(te[$]!=null||te[le]!=null||te[re]!=null)?{mainType:K,index:te[$],id:te[le],name:te[re]}:null}function X(te){return M.filter?m(te,M.filter):te}},eachComponent:function(M,j,K){var z=this._componentsMap;if(typeof M=="function")K=j,j=M,z.each(function(Q,X){v(Q,function(te,$){j.call(K,X,te,$)})});else if(n(M))v(z.get(M),j,K);else if(o(M)){var V=this.findComponents(M);v(V,j,K)}},getSeriesByName:function(M){var j=this._componentsMap.get("series");return m(j,function(K){return K.name===M})},getSeriesByIndex:function(M){return this._componentsMap.get("series")[M]},getSeriesByType:function(M){var j=this._componentsMap.get("series");return m(j,function(K){return K.subType===M})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(M,j){k(this),v(this._seriesIndices,function(K){var z=this._componentsMap.get("series")[K];M.call(j,z,K)},this)},eachRawSeries:function(M,j){v(this._componentsMap.get("series"),M,j)},eachSeriesByType:function(M,j,K){k(this),v(this._seriesIndices,function(z){var V=this._componentsMap.get("series")[z];V.subType===M&&j.call(K,V,z)},this)},eachRawSeriesByType:function(M,j,K){return v(this.getSeriesByType(M),j,K)},isSeriesFiltered:function(M){return k(this),this._seriesIndicesMap.get(M.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(M,j){k(this);var K=m(this._componentsMap.get("series"),M,j);P(this,K)},restoreData:function(M){var j=this._componentsMap;P(this,j.get("series"));var K=[];j.each(function(z,V){K.push(V)}),g.topologicalTravel(K,g.getAllClassMainTypes(),function(z,V){v(j.get(z),function(Q){(z!=="series"||!T(Q,M))&&Q.restoreData()})})}});function T(M,j){if(j){var K=j.seiresIndex,z=j.seriesId,V=j.seriesName;return K!=null&&M.componentIndex!==K||z!=null&&M.id!==z||V!=null&&M.name!==V}}function S(M,j){var K=M.color&&!M.colorLayer;v(j,function(z,V){if(V==="colorLayer"&&K)return;g.hasClass(V)||(typeof z=="object"?M[V]=M[V]?u(M[V],z,!1):e(z):M[V]==null&&(M[V]=z))})}function O(M){M=M,this.option={},this.option[C]=1,this._componentsMap=t({series:[]}),this._seriesIndices,this._seriesIndicesMap,S(M,this._theme.option),u(M,A,!1),this.mergeOption(M)}function I(M,j){d(j)||(j=j?[j]:[]);var K={};return v(j,function(z){K[z]=(M.get(z)||[]).slice()}),K}function F(M,j,K){var z=j.type?j.type:K?K.subType:g.determineSubType(M,j);return z}function P(M,j){M._seriesIndicesMap=t(M._seriesIndices=f(j,function(K){return K.componentIndex})||[])}function B(M,j){return j.hasOwnProperty("subType")?m(M,function(K){return K.subType===j.subType}):M}function k(M){}s(_,b);var G=_;R.exports=G},fmRc:function(R,D,i){var y=i("Xi7e"),p=i("77Zs"),x=i("L8xA"),v=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=x,d.prototype.get=v,d.prototype.has=m,d.prototype.set=f,R.exports=d},ftKO:function(R,D){var i="__lodash_hash_undefined__";function y(p){return this.__data__.set(p,i),this}R.exports=y},fyUT:function(R,D,i){"use strict";var y=i("pVnL"),p=i.n(y),x=i("lSNA"),v=i.n(x),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(X,te){var $=Object.keys(X);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(X);te&&(le=le.filter(function(re){return Object.getOwnPropertyDescriptor(X,re).enumerable})),$.push.apply($,le)}return $}function h(X){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)(X,le,$[le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors($)):c(Object($)).forEach(function(le){Object.defineProperty(X,le,Object.getOwnPropertyDescriptor($,le))})}return X}function g(X){var te=A();return function(){var le=Object(r.a)(X),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 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(X){return!1}}function b(){}function w(X){X.preventDefault()}var E=function(te){return te.replace(/[^\w.-]+/g,"")},C=200,_=600,T=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,S=function(te){return te!=null},O=function(te,$){return $===te||typeof $=="number"&&typeof te=="number"&&isNaN($)&&isNaN(te)},I=function(X){Object(e.a)($,X);var te=g($);function $(le){var re;Object(t.a)(this,$),re=te.call(this,le),re.onKeyDown=function(Pe){var Je=re.props,Ge=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 ae=re.getRatio(Pe);re.down(Pe,ae,null),re.stop()}else Pe.keyCode===s.a.ENTER&&ct&&ct(Pe);if(re.recordCursorPosition(),re.lastKeyCode=Pe.keyCode,Ge){for(var lt=arguments.length,pe=new Array(lt>1?lt-1:0),J=1;J<lt;J++)pe[J-1]=arguments[J];Ge.apply(void 0,[Pe].concat(pe))}},re.onKeyUp=function(Pe){var Je=re.props.onKeyUp;if(re.stop(),re.recordCursorPosition(),Je){for(var Ge=arguments.length,ct=new Array(Ge>1?Ge-1:0),Ue=1;Ue<Ge;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),Ge=re.setValue(Je,b);if(Pe){var ct=re.input.value,Ue=re.getInputDisplayValue({focus:!1,value:Ge});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(S(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 Ge=0;return Je.indexOf(".")>=0&&(Ge=Je.length-Je.indexOf(".")-1),Ge},re.getInputDisplayValue=function(Pe){var Je=Pe||re.state,Ge=Je.focused,ct=Je.inputValue,Ue=Je.value,ae;Ge?ae=ct:ae=re.toPrecisionAsStep(Ue),ae==null&&(ae="");var lt=re.formatWrapper(ae);return S(re.props.decimalSeparator)&&(lt=lt.toString().replace(".",re.props.decimalSeparator)),lt},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,Ge=Je.lastIndexOf(Pe);if(Ge===-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):Ge+Pe.length===Je.length?(re.fixCaret(Ge,Ge),!0):!1},re.partRestoreByAfter=function(Pe){return Pe===void 0?!1:Array.prototype.some.call(Pe,function(Je,Ge){var ct=Pe.substring(Ge);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,Ge){re.pressingUpOrDown=!0,re.step("down",Pe,Je,Ge)},re.up=function(Pe,Je,Ge){re.pressingUpOrDown=!0,re.step("up",Pe,Je,Ge)},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,Ge=Se.min,ct=this.state.focused;if(re){if(!O(re.value,Re)||!O(re.max,Je)||!O(re.min,Ge)){var Ue=ct?Re:this.getValidValue(Re),ae;this.pressingUpOrDown?ae=Ue:this.inputting?ae=this.rawInput:ae=this.toPrecisionAsStep(Ue),this.setState({value:Ue,inputValue:ae})}var lt="value"in this.props?Re:this.state.value;"max"in this.props&&re.max!==Je&&typeof lt=="number"&<>Je&&Pe&&Pe(Je),"min"in this.props&&re.min!==Ge&&typeof lt=="number"&<<Ge&&Pe&&Pe(Ge)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var pe=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===s.a.BACKSPACE?pe=this.cursorStart-1:this.lastKeyCode===s.a.DELETE&&(pe=this.cursorStart):pe=this.input.value.length,this.fixCaret(pe,pe)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case s.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case s.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(J){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(re){var 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 S(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,Ge=Je===void 0?null:Je,ct=this.state.inputValue,Ue=ct===void 0?null:ct,ae=typeof Pe=="number"?Pe.toFixed(Re):"".concat(Pe),lt=Pe!==Ge||ae!=="".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),lt&&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(S(Pe))return Pe;var Ge=this.getPrecision(Se),ct=this.getPrecision(Je),Ue=this.getPrecision(re);return re?Math.max(Ue,Ge+ct):Ge+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&ℜreturn this.isNotCompleteNumber(re)||Pe?re:S(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)),Ge=((Pe*re+Pe*Re*Se)/Pe).toFixed(Je);return this.toNumber(Ge)}},{key:"downStep",value:function(re,Se){var Re=this.props.step,Pe=this.getPrecisionFactor(re,Se),Je=Math.abs(this.getMaxPrecision(re,Se)),Ge=((Pe*re-Pe*Re*Se)/Pe).toFixed(Je);return this.toNumber(Ge)}},{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 Ge=this.props;if(Ge.disabled)return;var ct=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(ct))return;var Ue=this["".concat(re,"Step")](ct,Pe),ae=Ue>Ge.max||Ue<Ge.min;if(Ue>Ge.max?Ue=Ge.max:Ue<Ge.min&&(Ue=Ge.min),this.setValue(Ue,null),this.setState({focused:!0},function(){Re.pressingUpOrDown=!1}),ae)return;this.autoStepTimer=setTimeout(function(){Re[re](Se,Pe,!0)},Je?C:_)}},{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,Ge=Se.useTouch,ct=Se.autoComplete,Ue=Se.upHandler,ae=Se.downHandler,lt=Se.className,pe=Se.max,J=Se.min,Y=Se.style,ee=Se.title,fe=Se.onMouseEnter,we=Se.onMouseLeave,Ce=Se.onMouseOver,_e=Se.onMouseOut,he=Se.required,ye=Se.onClick,Le=Se.tabIndex,tt=Se.type,gt=Se.placeholder,at=Se.id,Fe=Se.inputMode,mt=Se.pattern,et=Se.step,St=Se.maxLength,jt=Se.autoFocus,Mt=Se.name,Ot=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,se=de.value,ut=de.focused,qe=l()(Re,(re={},Object(n.a)(re,lt,!!lt),Object(n.a)(re,"".concat(Re,"-disabled"),Pe),Object(n.a)(re,"".concat(Re,"-focused"),ut),re)),me={};Object.keys(Ke).forEach(function(Ct){(Ct.substr(0,5)==="data-"||Ct.substr(0,5)==="aria-"||Ct==="role")&&(me[Ct]=Ke[Ct])});var Wt=!Je&&!Pe,dr=this.getInputDisplayValue(null),vt=(se||se===0)&&(isNaN(se)||Number(se)>=pe),rr=(se||se===0)&&(isNaN(se)||Number(se)<=J),ur=vt||Pe||Je,mn=rr||Pe||Je,sr=l()("".concat(Re,"-handler"),"".concat(Re,"-handler-up"),Object(n.a)({},"".concat(Re,"-handler-up-disabled"),ur)),xr=l()("".concat(Re,"-handler"),"".concat(Re,"-handler-down"),Object(n.a)({},"".concat(Re,"-handler-down-disabled"),mn)),pr=Ge?{onTouchStart:ur?b:this.up,onTouchEnd:this.stop}:{onMouseDown:ur?b:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Zt=Ge?{onTouchStart:mn?b:this.down,onTouchEnd:this.stop}:{onMouseDown:mn?b:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return f.a.createElement("div",{className:qe,style:Y,title:ee,onMouseEnter:fe,onMouseLeave:we,onMouseOver:Ce,onMouseOut:_e,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"},pr,{role:"button","aria-label":"Increase Value","aria-disabled":ur,className:sr}),Ue||f.a.createElement("span",{unselectable:"on",className:"".concat(Re,"-handler-up-inner"),onClick:w})),f.a.createElement("span",Object.assign({unselectable:"on"},Zt,{role:"button","aria-label":"Decrease Value","aria-disabled":mn,className:xr}),ae||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":J,"aria-valuemax":pe,"aria-valuenow":se,required:he,type:tt,placeholder:gt,onPaste:Ot,onClick:ye,onMouseUp:this.onMouseUp,className:"".concat(Re,"-input"),tabIndex:Le,autoComplete:ct,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Wt?this.onKeyDown:b,onKeyUp:Wt?this.onKeyUp:b,autoFocus:jt,maxLength:St,readOnly:Je,disabled:Pe,max:pe,min:J,step:et,name:Mt,title:ee,id:at,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(dr),pattern:mt,inputMode:Fe,onInput:Bt},me))))}}]),$}(f.a.Component);I.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:T,min:-T,step:1,style:{},onChange:b,onKeyDown:b,onPressEnter:b,onFocus:b,onBlur:b,parser:E,required:!1,autoComplete:"off"};var F=I,P=F,B=i("FH2Y"),k=i.n(B),G=i("HQEm"),M=i.n(G),j=i("H84U"),K=i("3Nzz"),z=function(X,te){var $={};for(var le in X)Object.prototype.hasOwnProperty.call(X,le)&&te.indexOf(le)<0&&($[le]=X[le]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,le=Object.getOwnPropertySymbols(X);re<le.length;re++)te.indexOf(le[re])<0&&Object.prototype.propertyIsEnumerable.call(X,le[re])&&($[le[re]]=X[le[re]]);return $},V=m.forwardRef(function(X,te){var $=function(re){var Se=re.getPrefixCls,Re=re.direction,Pe=X.className,Je=X.size,Ge=X.prefixCls,ct=X.readOnly,Ue=z(X,["className","size","prefixCls","readOnly"]),ae=Se("input-number",Ge),lt=m.createElement(k.a,{className:"".concat(ae,"-handler-up-inner")}),pe=m.createElement(M.a,{className:"".concat(ae,"-handler-down-inner")});return m.createElement(K.b.Consumer,null,function(J){var Y,ee=Je||J,fe=l()((Y={},v()(Y,"".concat(ae,"-lg"),ee==="large"),v()(Y,"".concat(ae,"-sm"),ee==="small"),v()(Y,"".concat(ae,"-rtl"),Re==="rtl"),v()(Y,"".concat(ae,"-readonly"),ct),Y),Pe);return m.createElement(P,p()({ref:te,className:fe,upHandler:lt,downHandler:pe,prefixCls:ae,readOnly:ct},Ue))})};return m.createElement(j.a,null,$)});V.defaultProps={step:1};var Q=D.a=V},g0SD:function(R,D,i){var y=i("bYtY"),p=i("9wZj"),x=i("OELB"),v=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=x.parsePercent(r.get("x"),a.getWidth()),h=x.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),A=n.get(e.dimensions[1],u);s=e.dataToPoint([g,A])}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(A){var b=g.getItemModel(A),w=b.getShallow("symbol"),E=b.getShallow("symbolSize"),C=y.isFunction(w),_=y.isFunction(E);if(C||_){var T=t.getRawValue(A),S=t.getDataParams(A);C&&(w=w(T,S)),_&&(E=E(T,S))}g.setItemVisual(A,{symbol:w,symbolSize:E,color:b.get("itemStyle.color")||s.getVisual("color")})}),h.updateData(g),this.group.add(h.group),g.eachItemGraphicEl(function(A){A.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 v(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}R.exports=l},g7p0:function(R,D,i){var y=i("bYtY"),p=i("bLfw"),x=i("+TT/"),v=x.getLayoutParams,m=x.sizeCalculable,f=x.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=v(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;R.exports=o},g9YV:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("pED+"),v=i.n(x),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(R,D){function i(y){return this.__data__.get(y)}R.exports=i},gIYZ:function(R,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(R,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(R,D){function i(v){return v}function y(v,m,f,d,l){this._old=v,this._new=m,this._oldKeyGetter=f||i,this._newKeyGetter=d||i,this.context=l}y.prototype={constructor:y,add:function(v){return this._add=v,this},update:function(v){return this._update=v,this},remove:function(v){return this._remove=v,this},execute:function(){var v=this._old,m=this._new,f={},d={},l=[],o=[],n;for(p(v,f,l,"_oldKeyGetter",this),p(m,d,o,"_newKeyGetter",this),n=0;n<v.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(v,m,f,d,l){for(var o=0;o<v.length;o++){var n="_ec_"+l[d](v[o],o),t=m[n];t==null?(f.push(n),m[n]=o):(t.length||(m[n]=t=[t]),t.push(o))}}var x=y;R.exports=x},gRFJ:function(R,D,i){R.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(R){return R<10?"0"+R:R}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(R){return rx_escapable.lastIndex=0,rx_escapable.test(R)?'"'+R.replace(rx_escapable,function(D){var i=meta[D];return typeof i=="string"?i:"\\u"+("0000"+D.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+R+'"'}function str(R,D){var i,y,p,x,v=gap,m,f=D[R];f&&typeof f=="object"&&typeof f.toJSON=="function"&&(f=f.toJSON(R)),typeof rep=="function"&&(f=rep.call(D,R,f));switch(typeof f){case"string":return quote(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(gap+=indent,m=[],Object.prototype.toString.apply(f)==="[object Array]"){for(x=f.length,i=0;i<x;i+=1)m[i]=str(i,f)||"null";return p=m.length===0?"[]":gap?`[
|
|
|
`+gap+m.join(`,
|
|
|
`+gap)+`
|
|
|
`+v+"]":"["+m.join(",")+"]",gap=v,p}if(rep&&typeof rep=="object")for(x=rep.length,i=0;i<x;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)+`
|
|
|
`+v+"}":"{"+m.join(",")+"}",gap=v,p}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(R,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("",{"":R})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(R,D){var i,y,p=R[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(R,D,p)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(R){return"\\u"+("0000"+R.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},gawk:function(R,D,i){var y=i("+TT/"),p=i("bYtY"),x=i("4NO4"),v=x.groupData;function m(O,I,F){O.eachSeriesByType("sankey",function(P){var B=P.get("nodeWidth"),k=P.get("nodeGap"),G=f(P,I);P.layoutInfo=G;var M=G.width,j=G.height,K=P.getGraph(),z=K.nodes,V=K.edges;l(z);var Q=p.filter(z,function(le){return le.getLayout().value===0}),X=Q.length!==0?0:P.get("layoutIterations"),te=P.get("orient"),$=P.get("nodeAlign");d(z,V,B,k,M,j,X,te,$)})}function f(O,I){return y.getLayoutRect(O.getBoxLayoutParams(),{width:I.getWidth(),height:I.getHeight()})}function d(O,I,F,P,B,k,G,M,j){o(O,I,F,B,k,M,j),u(O,I,k,B,P,G,M),S(O,M)}function l(O){p.each(O,function(I){var F=_(I.outEdges,C),P=_(I.inEdges,C),B=I.getValue()||0,k=Math.max(F,P,B);I.setLayout({value:k},!0)})}function o(O,I,F,P,B,k,G){for(var M=[],j=[],K=[],z=[],V=0,Q=0,X=0;X<I.length;X++)M[X]=1;for(X=0;X<O.length;X++)j[X]=O[X].inEdges.length,j[X]===0&&K.push(O[X]);for(var te=-1;K.length;){for(var $=0;$<K.length;$++){var le=K[$],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),k==="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=I.indexOf(Pe);M[Je]=0;var Ge=Pe.node2,ct=O.indexOf(Ge);--j[ct]===0&&z.indexOf(Ge)<0&&z.push(Ge)}}++V,K=z,z=[]}for(X=0;X<M.length;X++)if(M[X]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var Ue=te>V-1?te:V-1;G&&G!=="left"&&t(O,G,k,Ue);var Q=k==="vertical"?(B-F)/Ue:(P-F)/Ue;e(O,Q,k)}function n(O){var I=O.hostGraph.data.getRawDataItem(O.dataIndex);return I.depth!=null&&I.depth>=0}function t(O,I,F,P){if(I==="right"){for(var B=[],k=O,G=0;k.length;){for(var M=0;M<k.length;M++){var j=k[M];j.setLayout({skNodeHeight:G},!0);for(var K=0;K<j.inEdges.length;K++){var z=j.inEdges[K];B.indexOf(z.node1)<0&&B.push(z.node1)}}k=B,B=[],++G}p.each(O,function(V){n(V)||V.setLayout({depth:Math.max(0,P-V.getLayout().skNodeHeight)},!0)})}else I==="justify"&&a(O,P)}function a(O,I){p.each(O,function(F){!n(F)&&!F.outEdges.length&&F.setLayout({depth:I},!0)})}function e(O,I,F){p.each(O,function(P){var B=P.getLayout().depth*I;F==="vertical"?P.setLayout({y:B},!0):P.setLayout({x:B},!0)})}function u(O,I,F,P,B,k,G){var M=r(O,G);s(M,I,F,P,B,G),c(M,B,F,P,G);for(var j=1;k>0;k--)j*=.99,h(M,j,G),c(M,B,F,P,G),T(M,j,G),c(M,B,F,P,G)}function r(O,I){var F=[],P=I==="vertical"?"y":"x",B=v(O,function(k){return k.getLayout()[P]});return B.keys.sort(function(k,G){return k-G}),p.each(B.keys,function(k){F.push(B.buckets.get(k))}),F}function s(O,I,F,P,B,k){var G=Infinity;p.each(O,function(M){var j=M.length,K=0;p.each(M,function(V){K+=V.getLayout().value});var z=k==="vertical"?(P-(j-1)*B)/K:(F-(j-1)*B)/K;z<G&&(G=z)}),p.each(O,function(M){p.each(M,function(j,K){var z=j.getLayout().value*G;k==="vertical"?(j.setLayout({x:K},!0),j.setLayout({dx:z},!0)):(j.setLayout({y:K},!0),j.setLayout({dy:z},!0))})}),p.each(I,function(M){var j=+M.getValue()*G;M.setLayout({dy:j},!0)})}function c(O,I,F,P,B){var k=B==="vertical"?"x":"y";p.each(O,function(G){G.sort(function($,le){return $.getLayout()[k]-le.getLayout()[k]});for(var M,j,K,z=0,V=G.length,Q=B==="vertical"?"dx":"dy",X=0;X<V;X++)j=G[X],K=z-j.getLayout()[k],K>0&&(M=j.getLayout()[k]+K,B==="vertical"?j.setLayout({x:M},!0):j.setLayout({y:M},!0)),z=j.getLayout()[k]+j.getLayout()[Q]+I;var te=B==="vertical"?P:F;if(K=z-I-te,K>0)for(M=j.getLayout()[k]-K,B==="vertical"?j.setLayout({x:M},!0):j.setLayout({y:M},!0),z=M,X=V-2;X>=0;--X)j=G[X],K=j.getLayout()[k]+j.getLayout()[Q]+I-z,K>0&&(M=j.getLayout()[k]-K,B==="vertical"?j.setLayout({x:M},!0):j.setLayout({y:M},!0)),z=j.getLayout()[k]})}function h(O,I,F){p.each(O.slice().reverse(),function(P){p.each(P,function(B){if(B.outEdges.length){var k=_(B.outEdges,g,F)/_(B.outEdges,C,F);if(isNaN(k)){var G=B.outEdges.length;k=G?_(B.outEdges,A,F)/G:0}if(F==="vertical"){var M=B.getLayout().x+(k-E(B,F))*I;B.setLayout({x:M},!0)}else{var j=B.getLayout().y+(k-E(B,F))*I;B.setLayout({y:j},!0)}}})})}function g(O,I){return E(O.node2,I)*O.getValue()}function A(O,I){return E(O.node2,I)}function b(O,I){return E(O.node1,I)*O.getValue()}function w(O,I){return E(O.node1,I)}function E(O,I){return I==="vertical"?O.getLayout().x+O.getLayout().dx/2:O.getLayout().y+O.getLayout().dy/2}function C(O){return O.getValue()}function _(O,I,F){for(var P=0,B=O.length,k=-1;++k<B;){var G=+I.call(O,O[k],F);isNaN(G)||(P+=G)}return P}function T(O,I,F){p.each(O,function(P){p.each(P,function(B){if(B.inEdges.length){var k=_(B.inEdges,b,F)/_(B.inEdges,C,F);if(isNaN(k)){var G=B.inEdges.length;k=G?_(B.inEdges,w,F)/G:0}if(F==="vertical"){var M=B.getLayout().x+(k-E(B,F))*I;B.setLayout({x:M},!0)}else{var j=B.getLayout().y+(k-E(B,F))*I;B.setLayout({y:j},!0)}}})})}function S(O,I){var F=I==="vertical"?"x":"y";p.each(O,function(P){P.outEdges.sort(function(B,k){return B.node2.getLayout()[F]-k.node2.getLayout()[F]}),P.inEdges.sort(function(B,k){return B.node1.getLayout()[F]-k.node1.getLayout()[F]})}),p.each(O,function(P){var B=0,k=0;p.each(P.outEdges,function(G){G.setLayout({sy:B},!0),B+=G.getLayout().dy}),p.each(P.inEdges,function(G){G.setLayout({ty:k},!0),k+=G.getLayout().dy})})}R.exports=m},"gb/T":function(R,D,i){(function(y,p,x){R.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(v,m){this._cipher.encryptBlock(v,m)}}),p.Decryptor=p.extend({processBlock:function(v,m){this._cipher.decryptBlock(v,m)}}),p}(),y.mode.ECB})},"giR+":function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("QbM5"),v=i.n(x)},gut8:function(R,D){var i={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},y=9;D.ContextCachedBy=i,D.WILL_BE_RESTORED=y},gvm7:function(R,D,i){var y=i("bYtY"),p=i("dqUG");function x(m){this._zr=m.getZr(),this._show=!1,this._hideTimeout}x.prototype={constructor:x,_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 v=x;R.exports=v},gwTy:function(R,D,i){},h54F:function(R,D,i){var y=i("ProS"),p=i("YXkt"),x=i("bYtY"),v=i("4NO4"),m=v.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,A){g.wrapMethod("getItemModel",function(T){var S=c._categoriesModels,O=T.getShallow("category"),I=S[O];return I&&(I.parentModel=T.parentModel,T.parentModel=I),T});var b=c.getModel("edgeLabel"),w=new f({label:b.option},b.parentModel,u),E=c.getModel("emphasis.edgeLabel"),C=new f({emphasis:{label:E.option}},E.parentModel,u);A.wrapMethod("getItemModel",function(T){return T.customizeGetParent(_),T});function _(T){return T=this.parsePath(T),T&&T[0]==="label"?w:T&&T[0]==="emphasis"&&T[1]==="label"?C: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),A=s.getName(h.node2.dataIndex),b=[];return g!=null&&b.push(g),A!=null&&b.push(A),b=l(b.join(" > ")),c.value&&(b+=" : "+l(c.value)),b}else return t.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=x.map(this.option.categories||[],function(r){return r.value!=null?r:x.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;R.exports=a},h7HQ:function(R,D,i){var y=i("y+Vt"),p=i("T6xi"),x=y.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(m,f){p.buildPath(m,f,!0)}});R.exports=x},h8O9:function(R,D,i){var y=i("bYtY"),p=y.map,x=i("zM3Q"),v=i("7hqr"),m=v.isDimensionStacked;function f(d){return{seriesType:d,plan:x(),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,A=a&&new Float32Array(g*u),b=c.start,w=0,E=[],C=[];b<c.end;b++){var _;if(u===1){var T=h.get(e[0],b);_=!isNaN(T)&&n.dataToPoint(T,null,C)}else{var T=E[0]=h.get(e[0],b),S=E[1]=h.get(e[1],b);_=!isNaN(T)&&!isNaN(S)&&n.dataToPoint(E,null,C)}a?(A[w++]=_?_[0]:NaN,A[w++]=_?_[1]:NaN):h.setItemLayout(b,_&&_.slice()||[NaN,NaN])}a&&h.setLayout("symbolPoints",A)}return u&&{progress:s}}}}R.exports=f},hD7B:function(R,D,i){var y=i("bYtY"),p=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function x(m){y.each(p,function(f){this[f]=y.bind(m[f],m)},this)}var v=x;R.exports=v},hFmY:function(R,D,i){var y=i("ProS"),p={type:"axisAreaSelect",event:"axisAreaSelected"};y.registerAction(p,function(x,v){v.eachComponent({mainType:"parallelAxis",query:x},function(m){m.axis.model.setActiveIntervals(x.intervals)})}),y.registerAction("parallelAxisExpand",function(x,v){v.eachComponent({mainType:"parallel",query:x},function(m){m.setAxisExpand(x)})})},hJvP:function(R,D,i){var y=i("2dDv"),p=i("IDmD");function x(v,m){var f=[];return v.eachComponent("parallel",function(d,l){var o=new y(d,v,m);o.name="parallel_"+l,o.resize(d,m),d.coordinateSystem=o,o.model=d,f.push(o)}),v.eachSeries(function(d){if(d.get("coordinateSystem")==="parallel"){var l=v.queryComponents({mainType:"parallel",index:d.get("parallelIndex"),id:d.get("parallelId")})[0];d.coordinateSystem=l.coordinateSystem}}),f}p.register("parallel",{create:x})},hM6l:function(R,D,i){var y=i("bYtY"),p=y.each,x=y.map,v=i("OELB"),m=v.linearMap,f=v.getPixelPrecision,d=v.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]),A=Math.max(h[0],h[1]);return c>=g&&c<=A},containData:function(c){return this.scale.contain(c)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(c){return f(c||this.scale.getExtent(),this._extent)},setExtent:function(c,h){var g=this._extent;g[0]=c,g[1]=h},dataToCoord:function(c,h){var g=this._extent,A=this.scale;return c=A.normalize(c),this.onBand&&A.type==="ordinal"&&(g=g.slice(),u(g,A.count())),m(c,a,g,h)},coordToData:function(c,h){var g=this._extent,A=this.scale;this.onBand&&A.type==="ordinal"&&(g=g.slice(),u(g,A.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),A=g.ticks,b=x(A,function(E){return{coord:this.dataToCoord(E),tickValue:E}},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),A=x(g,function(b){return x(b,function(w){return{coord:this.dataToCoord(w),tickValue:w}},this)},this);return A},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 A=Math.abs(c[1]-c[0]);return Math.abs(A)/g},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return t(this)}};function u(c,h){var g=c[1]-c[0],A=h,b=g/A/2;c[0]+=b,c[1]-=b}function r(c,h,g,A){var b=h.length;if(!c.onBand||g||!b)return;var w=c.getExtent(),E,C;if(b===1)h[0].coord=w[0],E=h[1]={coord:w[0]};else{var _=h[b-1].tickValue-h[0].tickValue,T=(h[b-1].coord-h[0].coord)/_;p(h,function(F){F.coord-=T/2});var S=c.scale.getExtent();C=1+S[1]-h[b-1].tickValue,E={coord:h[b-1].coord+T*C},h.push(E)}var O=w[0]>w[1];I(h[0].coord,w[0])&&(A?h[0].coord=w[0]:h.shift()),A&&I(w[0],h[0].coord)&&h.unshift({coord:w[0]}),I(w[1],E.coord)&&(A?E.coord=w[1]:h.pop()),A&&I(E.coord,w[1])&&h.push({coord:w[1]});function I(F,P){return F=d(F),P=d(P),O?F>P:F<P}}var s=e;R.exports=s},hNWo:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("Qxkt"),v=i("4NO4"),m=v.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,A=g.getAllNames();t.isSeriesFiltered(s)||(e=e.concat(A)),A.length?a=a.concat(A):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 x(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;R.exports=n},hOwI:function(R,D){var i=Math.log(2);function y(x,v,m,f,d,l){var o=f+"-"+d,n=x.length;if(l.hasOwnProperty(o))return l[o];if(v===1){var t=Math.round(Math.log((1<<n)-1&~d)/i);return x[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)*x[m][r]*y(x,v-1,e,a,d|c,l),s++)}return l[o]=u,u}function p(x,v){var m=[[x[0],x[1],1,0,0,0,-v[0]*x[0],-v[0]*x[1]],[0,0,0,x[0],x[1],1,-v[1]*x[0],-v[1]*x[1]],[x[2],x[3],1,0,0,0,-v[2]*x[2],-v[2]*x[3]],[0,0,0,x[2],x[3],1,-v[3]*x[2],-v[3]*x[3]],[x[4],x[5],1,0,0,0,-v[4]*x[4],-v[4]*x[5]],[0,0,0,x[4],x[5],1,-v[5]*x[4],-v[5]*x[5]],[x[6],x[7],1,0,0,0,-v[6]*x[6],-v[6]*x[7]],[0,0,0,x[6],x[7],1,-v[7]*x[6],-v[7]*x[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*v[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(R,D){var i=Math.PI*2;function y(p){return p%=i,p<0&&(p+=i),p}D.normalizeRadian=y},hXwI:function(R,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 x(m,f,d){return f&&p(m.prototype,f),d&&p(m,d),m}var v=function(){function m(){y(this,m)}return x(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=v},hi0g:function(R,D,i){var y=i("bYtY"),p=y.createHashMap,x=y.each,v=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,E,C){u.isInstance(E)||(E=u.seriesDataToSource(E)),C=C||{},w=(w||[]).slice();for(var _=(C.dimsDef||[]).slice(),T=p(),S=p(),O=[],I=g(E,w,_,C.dimCount),F=0;F<I;F++){var P=_[F]=f({},d(_[F])?_[F]:{name:_[F]}),B=P.name,k=O[F]=new c;B!=null&&T.get(B)==null&&(k.name=k.displayName=B,T.set(B,F)),P.type!=null&&(k.type=P.type),P.displayName!=null&&(k.displayName=P.displayName)}var G=C.encodeDef;!G&&C.encodeDefaulter&&(G=C.encodeDefaulter(E,I)),G=p(G),G.each(function($,le){if($=n($).slice(),$.length===1&&!v($[0])&&$[0]<0){G.set(le,!1);return}var re=G.set(le,[]);x($,function(Se,Re){v(Se)&&(Se=T.get(Se)),Se!=null&&Se<I&&(re[Re]=Se,j(O[Se],le,Re))})});var M=0;x(w,function($,le){var re,$,Se,Re;if(v($))re=$,$={};else{re=$.name;var Pe=$.ordinalMeta;$.ordinalMeta=null,$=l($),$.ordinalMeta=Pe,Se=$.dimsDef,Re=$.otherDims,$.name=$.coordDim=$.coordDimIndex=$.dimsDef=$.otherDims=null}var Je=G.get(re);if(Je===!1)return;var Je=n(Je);if(!Je.length)for(var Ge=0;Ge<(Se&&Se.length||1);Ge++){for(;M<O.length&&O[M].coordDim!=null;)M++;M<O.length&&Je.push(M++)}x(Je,function(ct,Ue){var ae=O[ct];if(j(m(ae,$),re,Ue),ae.name==null&&Se){var lt=Se[Ue];!d(lt)&&(lt={name:lt}),ae.name=ae.displayName=lt.name,ae.defaultTooltip=lt.defaultTooltip}Re&&m(ae.otherDims,Re)})});function j($,le,re){s.get(le)!=null?$.otherDims[le]=re:($.coordDim=le,$.coordDimIndex=re,S.set(le,!0))}var K=C.generateCoord,z=C.generateCoordCount,V=z!=null;z=K?z||1:0;for(var Q=K||"value",X=0;X<I;X++){var k=O[X]=O[X]||new c,te=k.coordDim;te==null&&(k.coordDim=A(Q,S,V),k.coordDimIndex=0,(!K||z<=0)&&(k.isExtraCoord=!0),z--),k.name==null&&(k.name=A(k.coordDim,T)),k.type==null&&(a(E,X,k.name)===e.Must||k.isExtraCoord&&(k.otherDims.itemName!=null||k.otherDims.seriesName!=null))&&(k.type="ordinal")}return O}function g(w,E,C,_){var T=Math.max(w.dimensionsDetectCount||1,E.length,C.length,_||0);return x(E,function(S){var O=S.dimsDef;O&&(T=Math.max(T,O.length))}),T}function A(w,E,C){if(C||E.get(w)!=null){for(var _=0;E.get(w+_)!=null;)_++;w+=_}return E.set(w,!0),w}var b=h;R.exports=b},hkKa:function(R,D,i){"use strict";i.d(D,"a",function(){return m});var y=i("J4zp"),p=i.n(y),x=i("q1tI"),v=i.n(x);function m(){var f=x.useReducer(function(o){return o+1},0),d=p()(f,2),l=d[1];return l}},hw6D:function(R,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]=x(r)?r:v(o)})}),d.each(function(t){var a=y.find(l[t],function(e){return x(e)})||v(o);l[t].push(a.slice()),d.setItemLayout(t,l[t])})})}function x(m){return!isNaN(m[0])&&!isNaN(m[1])}function v(m){return[m.cx,m.cy]}R.exports=p},hwYd:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="PictureTwoTone";var n=v.forwardRef(o);D.default=n},hydK:function(R,D){var i="http://www.w3.org/2000/svg";function y(p){return document.createElementNS(i,p)}D.createElement=y},hyiK:function(R,D){function i(y,p,x,v,m,f){if(f>p&&f>v||f<p&&f<v)return 0;if(v===p)return 0;var d=v<p?1:-1,l=(f-p)/(v-p);(l===1||l===0)&&(d=v<p?.5:-.5);var o=l*(x-y)+y;return o===m?Infinity:o>m?d:0}R.exports=i},i38C:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=x.createHashMap,m=x.retrieve,f=x.each;function d(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=v(),this.categoryAxisMap=v(),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 A=r.getComponent("parallelAxis",h),b=c[g];e.set(b,A),n(A)&&a.firstCategoryDimIndex==null&&(u.set(b,A),a.firstCategoryDimIndex=g)})}};function n(t){return t.get("type")==="category"}D.getCoordSysInfoBySeries=l},i6bk:function(R,D,i){"use strict";i.d(D,"b",function(){return y}),i.d(D,"a",function(){return p});function y(x){return x!=null&&x===x.window}function p(x,v){if(typeof window=="undefined")return 0;var m=v?"scrollTop":"scrollLeft",f=0;return y(x)?f=x[v?"pageYOffset":"pageXOffset"]:x instanceof Document?f=x.documentElement[m]:x&&(f=x[m]),x&&!y(x)&&typeof f!="number"&&(f=(x.ownerDocument||x).documentElement[m]),f}},i8CU:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("Fm1+"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},iLNv:function(R,D){var i="\0__throttleOriginMethod",y="\0__throttleRate",p="\0__throttleType";function x(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,A=s||l;s=null,e=o-(A?n:t)-g,clearTimeout(a),A?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 v(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]=x(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=x,D.createOrUpdate=v,D.clear=m},iPDy:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=y.extendComponentView({type:"marker",init:function(){this.markerGroupMap=p.createHashMap()},render:function(v,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(){}});R.exports=x},iQDF:function(R,D,i){"use strict";var y=i("ZTW2"),p=i.n(y),x=i("+BJd"),v=i("+L6B")},iRjW:function(R,D,i){var y=i("bYtY"),p=i("Yl7c"),x=p.parseClassType,v=0;function m(l){return[l||"",v++,Math.random().toFixed(5)].join("_")}function f(l){var o={};return l.registerSubTypeDefaulter=function(n,t){n=x(n),o[n.main]=t},l.determineSubType=function(n,t){var a=t.type;if(!a){var e=x(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,A={};for(y.each(e,function(T){A[T]=!0});g.length;){var b=g.pop(),w=h[b],E=!!A[b];E&&(r.call(s,b,w.originalDeps.slice()),delete A[b]),y.each(w.successor,E?_:C)}y.each(A,function(){throw new Error("Circle dependency may exists")});function C(T){h[T].entryCount--,h[T].entryCount===0&&g.push(T)}function _(T){A[T]=!0,C(T)}};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(A){y.indexOf(c.predecessor,A)<0&&c.predecessor.push(A);var b=t(u,A);y.indexOf(b.successor,A)<0&&b.successor.push(s)})}),{graph:u,noEntryList:r}}function t(e,u){return e[u]||(e[u]={predecessor:[],successor:[]}),e[u]}function 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(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")}function p(w,E){for(var C=0;C<E.length;C++){var _=E[C];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(w,_.key,_)}}function x(w,E,C){return E&&p(w.prototype,E),C&&p(w,C),w}var v=[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 A=[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(E){y(this,w),this.keys=[];for(var C=[],_=[],T=[],S=0,O=56;S<56;++S,O-=8){O+=O<-5?65:O<-3?31:O<-1?63:O===27?35:0;var I=O&7;C[S]=(E[O>>>3]&1<<I)!==0?1:0}for(var F=0;F<16;++F){var P=F<<1,B=P+1;T[P]=T[B]=0;for(var k=28;k<59;k+=28)for(var G=k-28;G<k;++G){var M=G+m[F];_[G]=M<k?C[M]:C[M-28]}for(var j=0;j<24;++j)_[v[j]]!==0&&(T[P]|=1<<23-j),_[v[j+24]]!==0&&(T[B]|=1<<23-j)}for(var K=0,z=0,V=0;K<16;++K){var Q=T[z++],X=T[z++];this.keys[V]=(Q&16515072)<<6,this.keys[V]|=(Q&4032)<<10,this.keys[V]|=(X&16515072)>>>10,this.keys[V]|=(X&4032)>>>6,++V,this.keys[V]=(Q&258048)<<12,this.keys[V]|=(Q&63)<<16,this.keys[V]|=(X&258048)>>>4,this.keys[V]|=X&63,++V}}return x(w,[{key:"enc8",value:function(C){var _=C.slice(),T=0,S,O,I;S=_[T++]<<24|_[T++]<<16|_[T++]<<8|_[T++],O=_[T++]<<24|_[T++]<<16|_[T++]<<8|_[T++],I=(S>>>4^O)&252645135,O^=I,S^=I<<4,I=(S>>>16^O)&65535,O^=I,S^=I<<16,I=(O>>>2^S)&858993459,S^=I,O^=I<<2,I=(O>>>8^S)&16711935,S^=I,O^=I<<8,O=O<<1|O>>>31&1,I=(S^O)&2863311530,S^=I,O^=I,S=S<<1|S>>>31&1;for(var F=0,P=0;F<8;++F){I=O<<28|O>>>4,I^=this.keys[P++];var B=g[I&63];B|=c[I>>>8&63],B|=r[I>>>16&63],B|=e[I>>>24&63],I=O^this.keys[P++],B|=A[I&63],B|=h[I>>>8&63],B|=s[I>>>16&63],B|=u[I>>>24&63],S^=B,I=S<<28|S>>>4,I^=this.keys[P++],B=g[I&63],B|=c[I>>>8&63],B|=r[I>>>16&63],B|=e[I>>>24&63],I=S^this.keys[P++],B|=A[I&63],B|=h[I>>>8&63],B|=s[I>>>16&63],B|=u[I>>>24&63],O^=B}for(O=O<<31|O>>>1,I=(S^O)&2863311530,S^=I,O^=I,S=S<<31|S>>>1,I=(S>>>8^O)&16711935,O^=I,S^=I<<8,I=(S>>>2^O)&858993459,O^=I,S^=I<<2,I=(O>>>16^S)&65535,S^=I,O^=I<<16,I=(O>>>4^S)&252645135,S^=I,O^=I<<4,I=[O,S],T=0;T<8;T++)_[T]=(I[T>>>2]>>>8*(3-T%4))%256,_[T]<0&&(_[T]+=256);return _}},{key:"encrypt",value:function(C){return this.enc8(C.slice(0,8)).concat(this.enc8(C.slice(8,16)))}}]),w}();D.default=b},iXHM:function(R,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};R.exports=y},iXp4:function(R,D,i){var y=i("ItGF"),p=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function x(v){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(v.apply(this,arguments),d)for(var a=0;a<p.length;a++)f[p[a][0]]=p[a][2]}:v}R.exports=x},iYpf:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="FolderOpenOutlined";var n=v.forwardRef(o);D.default=n},ieMj:function(R,D,i){var y=i("OELB"),p=i("7aKB"),x=i("4NgU"),v=i("lE7J"),m=y.round,f=x.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=v.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=v.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;R.exports=d},j5sG:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=i("24YM"),p=x(i("NohK"));function x(m){return m&&m.__esModule?m:{default:m}}var v=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=v},jCoz:function(R,D,i){var y=i("bYtY"),p=i("4NgU"),x=i("OELB"),v=i("ieMj"),m=p.prototype,f=v.prototype,d=x.getPrecisionSafe,l=x.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 v},getTicks:function(s){var c=this._originalScale,h=this._extent,g=c.getExtent();return y.map(f.getTicks.call(this,s),function(A){var b=x.round(t(this.base,A));return b=A===h[0]&&c.__fixMin?u(b,g[0]):b,b=A===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=x.quantity(h),A=s/h*g;for(A<=.5&&(g*=10);!isNaN(g)&&Math.abs(g)<1&&Math.abs(g)>0;)g*=10;var b=[x.round(n(c[0]/g)*g),x.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;R.exports=r},jN4g:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="CloseCircleFilled";var d=D.a=p.forwardRef(f)},jO45:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="CheckCircleFilled";var d=D.a=p.forwardRef(f)},jO9C:function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.pad.Iso97971={pad:function(x,v){x.concat(y.lib.WordArray.create([2147483648],1)),y.pad.ZeroPadding.pad(x,v)},unpad:function(x){y.pad.ZeroPadding.unpad(x),x.sigBytes--}},y.pad.Iso97971})},jTL6:function(R,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(v,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);v.moveTo(a*l+f,e*l+d),v.arc(f,d,l,o,n,!t)}});R.exports=p},je13:function(R,D,i){var y=i("5nXd"),p=i("gRFJ"),x=[i("uQRt")];R.exports=y.createStore(p,x)},jett:function(R,D,i){var y=i("ProS");i("VSLf"),i("oBaM"),i("FGaS");var p=i("mOdp"),x=i("f5Yq"),v=i("hw6D"),m=i("0/Rx"),f=i("eJH7");y.registerVisual(p("radar")),y.registerVisual(x("radar","circle")),y.registerLayout(v),y.registerProcessor(m("radar")),y.registerPreprocessor(f)},jhfD:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="ArrowLeftOutlined";var d=D.a=p.forwardRef(f)},jkPA:function(R,D,i){var y=i("bYtY"),p=y.createHashMap,x=y.isObject,v=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&&v(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 x(n)&&n.value!=null?n.value:n+""}var o=m;R.exports=o},jndi:function(R,D,i){var y=i("bYtY"),p=i("Qe9p"),x=i("YXkt"),v=i("OELB"),m=i("IwbS"),f=i("kj2x"),d=i("iPDy"),l=function(r,s,c,h){var g=f.dataTransform(r,h[0]),A=f.dataTransform(r,h[1]),b=y.retrieve,w=g.coord,E=A.coord;w[0]=b(w[0],-Infinity),w[1]=b(w[1],-Infinity),E[0]=b(E[0],Infinity),E[1]=b(E[1],Infinity);var C=y.mergeAll([{},g,A]);return C.coord=[g.coord,A.coord],C.x0=g.x,C.y0=g.y,C.x1=A.x,C.y1=A.y,C};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 A=h.coordinateSystem,b=r.getItemModel(s),w,E=v.parsePercent(b.get(c[0]),g.getWidth()),C=v.parsePercent(b.get(c[1]),g.getHeight());if(!isNaN(E)&&!isNaN(C))w=[E,C];else{if(h.getMarkerPosition)w=h.getMarkerPosition(r.getValues(c,s));else{var _=r.get(c[0],s),T=r.get(c[1],s),S=[_,T];A.clampData&&A.clampData(S,S),w=A.dataToPoint(S,!0)}if(A.type==="cartesian2d"){var O=A.getAxis("x"),I=A.getAxis("y"),_=r.get(c[0],s),T=r.get(c[1],s);o(_)?w[0]=O.toGlobalCoord(O.getExtent()[c[0]==="x0"?0:1]):o(T)&&(w[1]=I.toGlobalCoord(I.getExtent()[c[1]==="y0"?0:1]))}isNaN(E)||(w[0]=E),isNaN(C)||(w[1]=C)}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 A=g.getData();A.each(function(b){var w=y.map(e,function(C){return a(A,b,C,h,c)});A.setItemLayout(b,w);var E=A.getItemGraphicEl(b);E.setShape("points",w)})}},this)},renderSeries:function(r,s,c,h){var g=r.coordinateSystem,A=r.id,b=r.getData(),w=this.markerGroupMap,E=w.get(A)||w.set(A,{group:new m.Group});this.group.add(E.group),E.__keep=!0;var C=u(g,r,s);s.setData(C),C.each(function(_){C.setItemLayout(_,y.map(e,function(T){return a(C,_,T,r,h)})),C.setItemVisual(_,{color:b.getVisual("color")})}),C.diff(E.__data).add(function(_){var T=new m.Polygon({shape:{points:C.getItemLayout(_)}});C.setItemGraphicEl(_,T),E.group.add(T)}).update(function(_,T){var S=E.__data.getItemGraphicEl(T);m.updateProps(S,{shape:{points:C.getItemLayout(_)}},s,_),E.group.add(S),C.setItemGraphicEl(_,S)}).remove(function(_){var T=E.__data.getItemGraphicEl(_);E.group.remove(T)}).execute(),C.eachItemGraphicEl(function(_,T){var S=C.getItemModel(T),O=S.getModel("label"),I=S.getModel("emphasis.label"),F=C.getItemVisual(T,"color");_.useStyle(y.defaults(S.getModel("itemStyle").getItemStyle(),{fill:p.modifyAlpha(F,.4),stroke:F})),_.hoverStyle=S.getModel("emphasis.itemStyle").getItemStyle(),m.setLabelStyle(_.style,_.hoverStyle,O,I,{labelFetcher:s,labelDataIndex:T,defaultText:C.getName(T)||"",isRectText:!0,autoColor:F}),m.setHoverStyle(_,{}),_.dataModel=s}),E.__data=C,E.group.silent=s.get("silent")||r.get("silent")}});function u(r,s,c){var h,g,A=["x0","y0","x1","y1"];r?(h=y.map(r&&r.dimensions,function(E){var C=s.getData(),_=C.getDimensionInfo(C.mapDimension(E))||{};return y.defaults({name:E},_)}),g=new x(y.map(A,function(E,C){return{name:E,type:h[C%2].type}}),c)):(h=[{name:"value",type:"float"}],g=new x(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(E,C,_,T){return E.coord[Math.floor(T/2)][T%2]}:function(E){return E.value};return g.initData(b,null,w),g.hasItemOption=!0,g}},"jsU+":function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("IUWy"),v=y.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){v.superApply(this,"optionUpdated",arguments),p.each(this.option.feature,function(f,d){var l=x.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=v;R.exports=m},jtI2:function(R,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"}});R.exports=p},juDX:function(R,D,i){i("P47w");var y=i("aX58"),p=y.registerPainter,x=i("3CBa");p("svg",x)},"k+1r":function(R,D,i){var y=i("QkVE");function p(x){var v=y(this,x).delete(x);return this.size-=v?1:0,v}R.exports=p},k5C7:function(R,D,i){i("0JAE"),i("g7p0"),i("7mYs")},k9D9:function(R,D){var i="original",y="arrayRows",p="objectRows",x="keyedColumns",v="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=x,D.SOURCE_FORMAT_UNKNOWN=v,D.SOURCE_FORMAT_TYPED_ARRAY=m,D.SERIES_LAYOUT_BY_COLUMN=f,D.SERIES_LAYOUT_BY_ROW=d},kDyi:function(R,D){function i(y){var p=y.findComponents({mainType:"legend"});p&&p.length&&y.filterSeries(function(x){for(var v=0;v<p.length;v++)if(!p[v].isSelected(x.name))return!1;return!0})}R.exports=i},kGiB:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("ABKa"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},kMLO:function(R,D,i){var y=i("XxSj"),p=i("Qe9p"),x=i("bYtY"),v=x.isArray,m="itemStyle",f={seriesType:"treemap",reset:function(r,s,c,h){var g=r.getData().tree,A=g.root,b=r.getModel(m);if(A.isRemoved())return;var w=x.map(g.levelModels,function(E){return E?E.get(m):null});d(A,{},w,b,r.getViewRoot().getAncestors(),r)}};function d(r,s,c,h,g,A){var b=r.getModel(),w=r.getLayout();if(!w||w.invisible||!w.isInView)return;var E=r.getModel(m),C=c[r.depth],_=l(E,s,C,h),T=E.get("borderColor"),S=E.get("borderColorSaturation"),O;S!=null&&(O=o(_,r),T=n(S,O)),r.setVisual("borderColor",T);var I=r.viewChildren;if(!I||!I.length)O=o(_,r),r.setVisual("color",O);else{var F=a(r,b,w,E,_,I);x.each(I,function(P,B){if(P.depth>=g.length||P===g[P.depth]){var k=u(b,_,P,B,F,A);d(P,k,c,h,g,A)}})}}function l(r,s,c,h){var g=x.extend({},s);return x.each(["color","colorAlpha","colorSaturation"],function(A){var b=r.get(A,!0);b==null&&c&&(b=c[A]),b==null&&(b=s[A]),b==null&&(b=h.get(A)),b!=null&&(g[A]=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,A){if(!A||!A.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"),E=s.get("visualMax"),C=c.dataExtent.slice();w!=null&&w<C[0]&&(C[0]=w),E!=null&&E>C[1]&&(C[1]=E);var _=s.get("colorMappingBy"),T={type:b.name,dataExtent:C,visual:b.range};T.type==="color"&&(_==="index"||_==="id")?(T.mappingMethod="category",T.loop=!0):T.mappingMethod="linear";var S=new y(T);return S.__drColorMappingBy=_,S}function e(r,s){var c=r.get(s);return v(c)&&c.length?{name:s,range:c}:null}function u(r,s,c,h,g,A){var b=x.extend({},s);if(g){var w=g.type,E=w==="color"&&g.__drColorMappingBy,C=E==="index"?h:E==="id"?A.mapIdToIndex(c.getId()):c.getValue(r.get("visualDimension"));b[w]=g.mapValueToVisual(C)}return b}R.exports=f},"kVK+":function(R,D){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */D.read=function(i,y,p,x,v){var m,f,d=v*8-x-1,l=(1<<d)-1,o=l>>1,n=-7,t=p?v-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+=x;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,x),m=m-o}return(e?-1:1)*f*Math.pow(2,m-x)},D.write=function(i,y,p,x,v,m){var f,d,l,o=m*8-v-1,n=(1<<o)-1,t=n>>1,a=v===23?Math.pow(2,-24)-Math.pow(2,-77):0,e=x?0:m-1,u=x?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,v),f=f+t):(d=y*Math.pow(2,t-1)*Math.pow(2,v),f=0));v>=8;i[p+e]=d&255,e+=u,d/=256,v-=8);for(f=f<<v|d,o+=v;o>0;i[p+e]=f&255,e+=u,f/=256,o-=8);i[p+e-u]|=r*128}},kekF:function(R,D){function i(y,p){return function(x){return y(p(x))}}R.exports=i},kj2x:function(R,D,i){var y=i("bYtY"),p=i("OELB"),x=i("7hqr"),v=x.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,A,b,w){var E=[],C=v(h,A),_=C?h.getCalculationInfo("stackResultDimension"):A,T=s(h,_,c),S=h.indicesOfNearest(_,T)[0];E[b]=h.get(g,S),E[w]=h.get(_,S);var O=h.get(A,S),I=p.getPrecision(h.get(A,S));return I=Math.min(I,20),I>=0&&(E[w]=+E[w].toFixed(I)),[E,O]}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(),A=c.coordinateSystem;if(h&&!d(h)&&!y.isArray(h.coord)&&A){var b=A.dimensions,w=a(h,g,A,c);if(h=y.clone(h),h.type&&n[h.type]&&w.baseAxis&&w.valueAxis){var E=m(b,w.baseAxis.dim),C=m(b,w.valueAxis.dim),_=n[h.type](g,w.baseDataDim,w.valueDataDim,E,C);h.coord=_[0],h.value=_[1]}else{for(var T=[h.xAxis!=null?h.xAxis:h.radiusAxis,h.yAxis!=null?h.yAxis:h.angleAxis],S=0;S<2;S++)n[T[S]]&&(T[S]=s(g,g.mapDimension(b[S]),T[S]));h.coord=T}}return h}function a(c,h,g,A){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(A,b.valueDataDim)),b.baseAxis=g.getOtherAxis(b.valueAxis),b.baseDataDim=h.mapDimension(b.baseAxis.dim)):(b.baseAxis=A.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(),A=g.dimensions;h=g.getDimension(h);for(var b=0;b<A.length;b++){var w=g.getDimensionInfo(A[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,A){return A<2?c.coord&&c.coord[A]:c.value}function s(c,h,g){if(g==="average"){var A=0,b=0;return c.each(h,function(w,E){isNaN(w)||(A+=w,b++)}),A/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(R,D,i){var y=i("bYtY"),p=i("hM6l");function x(m,f){p.call(this,"radius",m,f),this.type="category"}x.prototype={constructor:x,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(x,p);var v=x;R.exports=v},ko1b:function(R,D,i){var y=i("bYtY"),p=i("T4UG"),x=i("Bsck"),v=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(A){return new v(A,this,u)},this),h=x.createTree(r,this,null,g);function g(A){A.wrapMethod("getItemModel",function(b,w){var E=h.getNodeByDataIndex(w),C=c[E.depth];return C&&(b.parentModel=C),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 v(h),A=g.get("color");(g.get("itemStyle.color")||A&&A!=="none")&&(s=!0)}),!s){var c=e[0]||(e[0]={});c.color=r.slice()}return e}R.exports=n},kzFp:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y=D.pick=function(x,v){var m={};return v.forEach(function(f){m[f]=x[f]}),m}},kzvK:function(R,D,i){var y=i("sS/r"),p=y.extend({type:"timeline"});R.exports=p},"l+S1":function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="SearchOutlined";var d=D.a=p.forwardRef(f)},lE7J:function(R,D,i){var y=i("OELB"),p=y.round;function x(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=v(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 v(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=x,D.getIntervalPrecision=v,D.fixExtent=f},lELe:function(R,D,i){var y=i("bYtY");function p(x){var v=[];y.each(x.series,function(m){m&&m.type==="map"&&(v.push(m),m.map=m.map||m.mapType,y.defaults(m,m.mapLocation))})}R.exports=p},lLGD:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("nVfU"),v=x.layout,m=x.largeLayout;i("Wqna"),i("F7hV"),i("Z8zF"),i("Ae16"),y.registerLayout(y.PRIORITY.VISUAL.LAYOUT,p.curry(v,"bar")),y.registerLayout(y.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,m),y.registerVisual({seriesType:"bar",reset:function(f){f.getData().setVisual("legendSymbol","roundRect")}})},lMfh:function(R,D,i){(function(y,p){R.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+/,x=/\s+$/;function v($,le){if($=$||"",le=le||{},$ instanceof v)return $;if(!(this instanceof v))return new v($,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}v.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,Ge;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?Ge=Re/12.92:Ge=Math.pow((Re+.055)/1.055,2.4),.2126*Pe+.7152*Je+.0722*Ge},setAlpha:function(le){return this._a=I(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:S[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=v(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 v(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(A,arguments)},_applyCombination:function(le,re){return le.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(_,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(w,[3])},tetrad:function(){return this._applyCombination(w,[4])}},v.fromRatio=function($,le){if(y($)=="object"){var re={};for(var Se in $)$.hasOwnProperty(Se)&&(Se==="a"?re[Se]=$[Se]:re[Se]=j($[Se]));$=re}return v($,le)};function m($){var le={r:0,g:0,b:0},re=1,Se=null,Re=null,Pe=null,Je=!1,Ge=!1;return typeof $=="string"&&($=X($)),y($)=="object"&&(Q($.r)&&Q($.g)&&Q($.b)?(le=f($.r,$.g,$.b),Je=!0,Ge=String($.r).substr(-1)==="%"?"prgb":"rgb"):Q($.h)&&Q($.s)&&Q($.v)?(Se=j($.s),Re=j($.v),le=n($.h,Se,Re),Je=!0,Ge="hsv"):Q($.h)&&Q($.s)&&Q($.l)&&(Se=j($.s),Pe=j($.l),le=l($.h,Se,Pe),Je=!0,Ge="hsl"),$.hasOwnProperty("a")&&(re=$.a)),re=I(re),{ok:Je,format:$.format||Ge,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,Ge=(Se+Re)/2;if(Se==Re)Pe=Je=0;else{var ct=Se-Re;Je=Ge>.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:Ge}}function l($,le,re){var Se,Re,Pe;$=F($,360),le=F(le,100),re=F(re,100);function Je(Ue,ae,lt){return lt<0&&(lt+=1),lt>1&&(lt-=1),lt<1/6?Ue+(ae-Ue)*6*lt:lt<1/2?ae:lt<2/3?Ue+(ae-Ue)*(2/3-lt)*6:Ue}if(le===0)Se=Re=Pe=re;else{var Ge=re<.5?re*(1+le):re+le-re*le,ct=2*re-Ge;Se=Je(ct,Ge,$+1/3),Re=Je(ct,Ge,$),Pe=Je(ct,Ge,$-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,Ge=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:Ge}}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),Ge=re*(1-(1-Re)*le),ct=Se%6,Ue=[re,Je,Pe,Pe,Ge,re][ct],ae=[Ge,re,re,Je,Pe,Pe][ct],lt=[Pe,Pe,Ge,re,re,Je][ct];return{r:Ue*255,g:ae*255,b:lt*255}}function t($,le,re,Se){var Re=[M(Math.round($).toString(16)),M(Math.round(le).toString(16)),M(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=[M(Math.round($).toString(16)),M(Math.round(le).toString(16)),M(Math.round(re).toString(16)),M(K(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=[M(K(Se)),M(Math.round($).toString(16)),M(Math.round(le).toString(16)),M(Math.round(re).toString(16))];return Re.join("")}v.equals=function($,le){return!$||!le?!1:v($).toRgbString()==v(le).toRgbString()},v.random=function(){return v.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function u($,le){le=le===0?0:le||10;var re=v($).toHsl();return re.s-=le/100,re.s=P(re.s),v(re)}function r($,le){le=le===0?0:le||10;var re=v($).toHsl();return re.s+=le/100,re.s=P(re.s),v(re)}function s($){return v($).desaturate(100)}function c($,le){le=le===0?0:le||10;var re=v($).toHsl();return re.l+=le/100,re.l=P(re.l),v(re)}function h($,le){le=le===0?0:le||10;var re=v($).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)))),v(re)}function g($,le){le=le===0?0:le||10;var re=v($).toHsl();return re.l-=le/100,re.l=P(re.l),v(re)}function A($,le){var re=v($).toHsl(),Se=(re.h+le)%360;return re.h=Se<0?360+Se:Se,v(re)}function b($){var le=v($).toHsl();return le.h=(le.h+180)%360,v(le)}function w($,le){if(isNaN(le)||le<=0)throw new Error("Argument to polyad must be a positive number");for(var re=v($).toHsl(),Se=[v($)],Re=360/le,Pe=1;Pe<le;Pe++)Se.push(v({h:(re.h+Pe*Re)%360,s:re.s,l:re.l}));return Se}function E($){var le=v($).toHsl(),re=le.h;return[v($),v({h:(re+72)%360,s:le.s,l:le.l}),v({h:(re+216)%360,s:le.s,l:le.l})]}function C($,le,re){le=le||6,re=re||30;var Se=v($).toHsl(),Re=360/re,Pe=[v($)];for(Se.h=(Se.h-(Re*le>>1)+720)%360;--le;)Se.h=(Se.h+Re)%360,Pe.push(v(Se));return Pe}function _($,le){le=le||6;for(var re=v($).toHsv(),Se=re.h,Re=re.s,Pe=re.v,Je=[],Ge=1/le;le--;)Je.push(v({h:Se,s:Re,v:Pe})),Pe=(Pe+Ge)%1;return Je}v.mix=function($,le,re){re=re===0?0:re||50;var Se=v($).toRgb(),Re=v(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 v(Je)},v.readability=function($,le){var re=v($),Se=v(le);return(Math.max(re.getLuminance(),Se.getLuminance())+.05)/(Math.min(re.getLuminance(),Se.getLuminance())+.05)},v.isReadable=function($,le,re){var Se=v.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},v.mostReadable=function($,le,re){var Se=null,Re=0,Pe,Je,Ge,ct;re=re||{},Je=re.includeFallbackColors,Ge=re.level,ct=re.size;for(var Ue=0;Ue<le.length;Ue++)Pe=v.readability($,le[Ue]),Pe>Re&&(Re=Pe,Se=v(le[Ue]));return v.isReadable($,Se,{level:Ge,size:ct})||!Je?Se:(re.includeFallbackColors=!1,v.mostReadable($,["#fff","#000"],re))};var T=v.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"},S=v.hexNames=O(T);function O($){var le={};for(var re in $)$.hasOwnProperty(re)&&(le[$[re]]=re);return le}function I($){return $=parseFloat($),(isNaN($)||$<0||$>1)&&($=1),$}function F($,le){k($)&&($="100%");var re=G($);return $=Math.min(le,Math.max(0,parseFloat($))),re&&($=parseInt($*le,10)/100),Math.abs($-le)<1e-6?1:$%le/parseFloat(le)}function P($){return Math.min(1,Math.max(0,$))}function B($){return parseInt($,16)}function k($){return typeof $=="string"&&$.indexOf(".")!=-1&&parseFloat($)===1}function G($){return typeof $=="string"&&$.indexOf("%")!=-1}function M($){return $.length==1?"0"+$:""+$}function j($){return $<=1&&($=$*100+"%"),$}function K($){return Math.round(parseFloat($)*255).toString(16)}function z($){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 X($){$=$.replace(p,"").replace(x,"").toLowerCase();var le=!1;if(T[$])$=T[$],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:z(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:z(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 v})},lNSK:function(R,D,i){"use strict";function y(me){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(dr){return typeof dr}:y=function(dr){return dr&&typeof Symbol=="function"&&dr.constructor===Symbol&&dr!==Symbol.prototype?"symbol":typeof dr},y(me)}Object.defineProperty(D,"__esModule",{value:!0}),D.deflateInit=Ke,D.deflateInit2=Bt,D.deflateReset=Mt,D.deflateResetKeep=jt,D.deflateSetHeader=Ot,D.deflate=de,D.deflateEnd=se,D.deflateSetDictionary=ut,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")),x=o(i("c5fP")),v=d(i("xlC8")),m=d(i("QV2g")),f=d(i("xSIq"));function d(me){return me&&me.__esModule?me:{default:me}}function l(){if(typeof WeakMap!="function")return null;var me=new WeakMap;return l=function(){return me},me}function o(me){if(me&&me.__esModule)return me;if(me===null||y(me)!=="object"&&typeof me!="function")return{default:me};var Wt=l();if(Wt&&Wt.has(me))return Wt.get(me);var dr={},vt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var rr in me)if(Object.prototype.hasOwnProperty.call(me,rr)){var ur=vt?Object.getOwnPropertyDescriptor(me,rr):null;ur&&(ur.get||ur.set)?Object.defineProperty(dr,rr,ur):dr[rr]=me[rr]}return dr.default=me,Wt&&Wt.set(me,dr),dr}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 A=-1;D.Z_DEFAULT_COMPRESSION=A;var b=1;D.Z_FILTERED=b;var w=2;D.Z_HUFFMAN_ONLY=w;var E=3;D.Z_RLE=E;var C=4;D.Z_FIXED=C;var _=0;D.Z_DEFAULT_STRATEGY=_;var T=2;D.Z_UNKNOWN=T;var S=8;D.Z_DEFLATED=S;var O=9,I=15,F=8,P=29,B=256,k=B+1+P,G=30,M=19,j=2*k+1,K=15,z=3,V=258,Q=V+z+1,X=32,te=42,$=69,le=73,re=91,Se=103,Re=113,Pe=666,Je=1,Ge=2,ct=3,Ue=4,ae=3;function lt(me,Wt){return me.msg=f.default[Wt],Wt}function pe(me){return(me<<1)-(me>4?9:0)}function J(me){for(var Wt=me.length;--Wt>=0;)me[Wt]=0}function Y(me){var Wt=me.state,dr=Wt.pending;if(dr>me.avail_out&&(dr=me.avail_out),dr===0)return;p.arraySet(me.output,Wt.pending_buf,Wt.pending_out,dr,me.next_out),me.next_out+=dr,Wt.pending_out+=dr,me.total_out+=dr,me.avail_out-=dr,Wt.pending-=dr,Wt.pending===0&&(Wt.pending_out=0)}function ee(me,Wt){x._tr_flush_block(me,me.block_start>=0?me.block_start:-1,me.strstart-me.block_start,Wt),me.block_start=me.strstart,Y(me.strm)}function fe(me,Wt){me.pending_buf[me.pending++]=Wt}function we(me,Wt){me.pending_buf[me.pending++]=Wt>>>8&255,me.pending_buf[me.pending++]=Wt&255}function Ce(me,Wt,dr,vt){var rr=me.avail_in;return rr>vt&&(rr=vt),rr===0?0:(me.avail_in-=rr,p.arraySet(Wt,me.input,me.next_in,rr,dr),me.state.wrap===1?me.adler=(0,v.default)(me.adler,Wt,rr,dr):me.state.wrap===2&&(me.adler=(0,m.default)(me.adler,Wt,rr,dr)),me.next_in+=rr,me.total_in+=rr,rr)}function _e(me,Wt){var dr=me.max_chain_length,vt=me.strstart,rr,ur,mn=me.prev_length,sr=me.nice_match,xr=me.strstart>me.w_size-Q?me.strstart-(me.w_size-Q):0,pr=me.window,Zt=me.w_mask,Ct=me.prev,on=me.strstart+V,Mn=pr[vt+mn-1],Xn=pr[vt+mn];me.prev_length>=me.good_match&&(dr>>=2),sr>me.lookahead&&(sr=me.lookahead);do{if(rr=Wt,pr[rr+mn]!==Xn||pr[rr+mn-1]!==Mn||pr[rr]!==pr[vt]||pr[++rr]!==pr[vt+1])continue;vt+=2,rr++;do;while(pr[++vt]===pr[++rr]&&pr[++vt]===pr[++rr]&&pr[++vt]===pr[++rr]&&pr[++vt]===pr[++rr]&&pr[++vt]===pr[++rr]&&pr[++vt]===pr[++rr]&&pr[++vt]===pr[++rr]&&pr[++vt]===pr[++rr]&&vt<on);if(ur=V-(on-vt),vt=on-V,ur>mn){if(me.match_start=Wt,mn=ur,ur>=sr)break;Mn=pr[vt+mn-1],Xn=pr[vt+mn]}}while((Wt=Ct[Wt&Zt])>xr&&--dr!==0);return mn<=me.lookahead?mn:me.lookahead}function he(me){var Wt=me.w_size,dr,vt,rr,ur,mn;do{if(ur=me.window_size-me.lookahead-me.strstart,me.strstart>=Wt+(Wt-Q)){p.arraySet(me.window,me.window,Wt,Wt,0),me.match_start-=Wt,me.strstart-=Wt,me.block_start-=Wt,vt=me.hash_size,dr=vt;do rr=me.head[--dr],me.head[dr]=rr>=Wt?rr-Wt:0;while(--vt);vt=Wt,dr=vt;do rr=me.prev[--dr],me.prev[dr]=rr>=Wt?rr-Wt:0;while(--vt);ur+=Wt}if(me.strm.avail_in===0)break;if(vt=Ce(me.strm,me.window,me.strstart+me.lookahead,ur),me.lookahead+=vt,me.lookahead+me.insert>=z)for(mn=me.strstart-me.insert,me.ins_h=me.window[mn],me.ins_h=(me.ins_h<<me.hash_shift^me.window[mn+1])&me.hash_mask;me.insert&&!(me.ins_h=(me.ins_h<<me.hash_shift^me.window[mn+z-1])&me.hash_mask,me.prev[mn&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=mn,mn++,me.insert--,me.lookahead+me.insert<z););}while(me.lookahead<Q&&me.strm.avail_in!==0)}function ye(me,Wt){var dr=65535;for(dr>me.pending_buf_size-5&&(dr=me.pending_buf_size-5);;){if(me.lookahead<=1){if(he(me),me.lookahead===0&&Wt===n)return Je;if(me.lookahead===0)break}me.strstart+=me.lookahead,me.lookahead=0;var vt=me.block_start+dr;if((me.strstart===0||me.strstart>=vt)&&(me.lookahead=me.strstart-vt,me.strstart=vt,ee(me,!1),me.strm.avail_out===0))return Je;if(me.strstart-me.block_start>=me.w_size-Q&&(ee(me,!1),me.strm.avail_out===0))return Je}return me.insert=0,Wt===e?(ee(me,!0),me.strm.avail_out===0?ct:Ue):(me.strstart>me.block_start&&(ee(me,!1),me.strm.avail_out===0),Je)}function Le(me,Wt){for(var dr,vt;;){if(me.lookahead<Q){if(he(me),me.lookahead<Q&&Wt===n)return Je;if(me.lookahead===0)break}if(dr=0,me.lookahead>=z&&(me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+z-1])&me.hash_mask,dr=me.prev[me.strstart&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=me.strstart),dr!==0&&me.strstart-dr<=me.w_size-Q&&(me.match_length=_e(me,dr)),me.match_length>=z)if(vt=x._tr_tally(me,me.strstart-me.match_start,me.match_length-z),me.lookahead-=me.match_length,me.match_length<=me.max_lazy_match&&me.lookahead>=z){me.match_length--;do me.strstart++,me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+z-1])&me.hash_mask,dr=me.prev[me.strstart&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=me.strstart;while(--me.match_length!==0);me.strstart++}else me.strstart+=me.match_length,me.match_length=0,me.ins_h=me.window[me.strstart],me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+1])&me.hash_mask;else vt=x._tr_tally(me,0,me.window[me.strstart]),me.lookahead--,me.strstart++;if(vt&&(ee(me,!1),me.strm.avail_out===0))return Je}return me.insert=me.strstart<z-1?me.strstart:z-1,Wt===e?(ee(me,!0),me.strm.avail_out===0?ct:Ue):me.last_lit&&(ee(me,!1),me.strm.avail_out===0)?Je:Ge}function tt(me,Wt){for(var dr,vt,rr;;){if(me.lookahead<Q){if(he(me),me.lookahead<Q&&Wt===n)return Je;if(me.lookahead===0)break}if(dr=0,me.lookahead>=z&&(me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+z-1])&me.hash_mask,dr=me.prev[me.strstart&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=me.strstart),me.prev_length=me.match_length,me.prev_match=me.match_start,me.match_length=z-1,dr!==0&&me.prev_length<me.max_lazy_match&&me.strstart-dr<=me.w_size-Q&&(me.match_length=_e(me,dr),me.match_length<=5&&(me.strategy===b||me.match_length===z&&me.strstart-me.match_start>4096)&&(me.match_length=z-1)),me.prev_length>=z&&me.match_length<=me.prev_length){rr=me.strstart+me.lookahead-z,vt=x._tr_tally(me,me.strstart-1-me.prev_match,me.prev_length-z),me.lookahead-=me.prev_length-1,me.prev_length-=2;do++me.strstart<=rr&&(me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+z-1])&me.hash_mask,dr=me.prev[me.strstart&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=me.strstart);while(--me.prev_length!==0);if(me.match_available=0,me.match_length=z-1,me.strstart++,vt&&(ee(me,!1),me.strm.avail_out===0))return Je}else if(me.match_available){if(vt=x._tr_tally(me,0,me.window[me.strstart-1]),vt&&ee(me,!1),me.strstart++,me.lookahead--,me.strm.avail_out===0)return Je}else me.match_available=1,me.strstart++,me.lookahead--}return me.match_available&&(vt=x._tr_tally(me,0,me.window[me.strstart-1]),me.match_available=0),me.insert=me.strstart<z-1?me.strstart:z-1,Wt===e?(ee(me,!0),me.strm.avail_out===0?ct:Ue):me.last_lit&&(ee(me,!1),me.strm.avail_out===0)?Je:Ge}function gt(me,Wt){for(var dr,vt,rr,ur,mn=me.window;;){if(me.lookahead<=V){if(he(me),me.lookahead<=V&&Wt===n)return Je;if(me.lookahead===0)break}if(me.match_length=0,me.lookahead>=z&&me.strstart>0&&(rr=me.strstart-1,vt=mn[rr],vt===mn[++rr]&&vt===mn[++rr]&&vt===mn[++rr])){ur=me.strstart+V;do;while(vt===mn[++rr]&&vt===mn[++rr]&&vt===mn[++rr]&&vt===mn[++rr]&&vt===mn[++rr]&&vt===mn[++rr]&&vt===mn[++rr]&&vt===mn[++rr]&&rr<ur);me.match_length=V-(ur-rr),me.match_length>me.lookahead&&(me.match_length=me.lookahead)}if(me.match_length>=z?(dr=x._tr_tally(me,1,me.match_length-z),me.lookahead-=me.match_length,me.strstart+=me.match_length,me.match_length=0):(dr=x._tr_tally(me,0,me.window[me.strstart]),me.lookahead--,me.strstart++),dr&&(ee(me,!1),me.strm.avail_out===0))return Je}return me.insert=0,Wt===e?(ee(me,!0),me.strm.avail_out===0?ct:Ue):me.last_lit&&(ee(me,!1),me.strm.avail_out===0)?Je:Ge}function at(me,Wt){for(var dr;;){if(me.lookahead===0&&(he(me),me.lookahead===0)){if(Wt===n)return Je;break}if(me.match_length=0,dr=x._tr_tally(me,0,me.window[me.strstart]),me.lookahead--,me.strstart++,dr&&(ee(me,!1),me.strm.avail_out===0))return Je}return me.insert=0,Wt===e?(ee(me,!0),me.strm.avail_out===0?ct:Ue):me.last_lit&&(ee(me,!1),me.strm.avail_out===0)?Je:Ge}function Fe(me,Wt,dr,vt,rr){this.good_length=me,this.max_lazy=Wt,this.nice_length=dr,this.max_chain=vt,this.func=rr}var mt;mt=[new Fe(0,0,0,0,ye),new Fe(4,4,8,4,Le),new Fe(4,5,16,8,Le),new Fe(4,6,32,32,Le),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(me){me.window_size=2*me.w_size,J(me.head),me.max_lazy_match=mt[me.level].max_lazy,me.good_match=mt[me.level].good_length,me.nice_match=mt[me.level].nice_length,me.max_chain_length=mt[me.level].max_chain,me.strstart=0,me.block_start=0,me.lookahead=0,me.insert=0,me.match_length=me.prev_length=z-1,me.match_available=0,me.ins_h=0}function St(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=S,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new p.Buf16(j*2),this.dyn_dtree=new p.Buf16((2*G+1)*2),this.bl_tree=new p.Buf16((2*M+1)*2),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new p.Buf16(K+1),this.heap=new p.Buf16(2*k+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new p.Buf16(2*k+1),J(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function jt(me){var Wt;return!me||!me.state?lt(me,c):(me.total_in=me.total_out=0,me.data_type=T,Wt=me.state,Wt.pending=0,Wt.pending_out=0,Wt.wrap<0&&(Wt.wrap=-Wt.wrap),Wt.status=Wt.wrap?te:Re,me.adler=Wt.wrap===2?0:1,Wt.last_flush=n,x._tr_init(Wt),r)}function Mt(me){var Wt=jt(me);return Wt===r&&et(me.state),Wt}function Ot(me,Wt){return!me||!me.state||me.state.wrap!==2?c:(me.state.gzhead=Wt,r)}function Bt(me,Wt,dr,vt,rr,ur){if(!me)return c;var mn=1;if(Wt===A&&(Wt=6),vt<0?(mn=0,vt=-vt):vt>15&&(mn=2,vt-=16),rr<1||rr>O||dr!==S||vt<8||vt>15||Wt<0||Wt>9||ur<0||ur>C)return lt(me,c);vt===8&&(vt=9);var sr=new St;return me.state=sr,sr.strm=me,sr.wrap=mn,sr.gzhead=null,sr.w_bits=vt,sr.w_size=1<<sr.w_bits,sr.w_mask=sr.w_size-1,sr.hash_bits=rr+7,sr.hash_size=1<<sr.hash_bits,sr.hash_mask=sr.hash_size-1,sr.hash_shift=~~((sr.hash_bits+z-1)/z),sr.window=new p.Buf8(sr.w_size*2),sr.head=new p.Buf16(sr.hash_size),sr.prev=new p.Buf16(sr.w_size),sr.lit_bufsize=1<<rr+6,sr.pending_buf_size=sr.lit_bufsize*4,sr.pending_buf=new p.Buf8(sr.pending_buf_size),sr.d_buf=1*sr.lit_bufsize,sr.l_buf=(1+2)*sr.lit_bufsize,sr.level=Wt,sr.strategy=ur,sr.method=dr,Mt(me)}function Ke(me,Wt){return Bt(me,Wt,S,I,F,_)}function de(me,Wt){var dr,vt,rr,ur;if(!me||!me.state||Wt>u||Wt<0)return me?lt(me,c):c;if(vt=me.state,!me.output||!me.input&&me.avail_in!==0||vt.status===Pe&&Wt!==e)return lt(me,me.avail_out===0?g:c);if(vt.strm=me,dr=vt.last_flush,vt.last_flush=Wt,vt.status===te)if(vt.wrap===2)me.adler=0,fe(vt,31),fe(vt,139),fe(vt,8),vt.gzhead?(fe(vt,(vt.gzhead.text?1:0)+(vt.gzhead.hcrc?2:0)+(vt.gzhead.extra?4:0)+(vt.gzhead.name?8:0)+(vt.gzhead.comment?16:0)),fe(vt,vt.gzhead.time&255),fe(vt,vt.gzhead.time>>8&255),fe(vt,vt.gzhead.time>>16&255),fe(vt,vt.gzhead.time>>24&255),fe(vt,vt.level===9?2:vt.strategy>=w||vt.level<2?4:0),fe(vt,vt.gzhead.os&255),vt.gzhead.extra&&vt.gzhead.extra.length&&(fe(vt,vt.gzhead.extra.length&255),fe(vt,vt.gzhead.extra.length>>8&255)),vt.gzhead.hcrc&&(me.adler=(0,m.default)(me.adler,vt.pending_buf,vt.pending,0)),vt.gzindex=0,vt.status=$):(fe(vt,0),fe(vt,0),fe(vt,0),fe(vt,0),fe(vt,0),fe(vt,vt.level===9?2:vt.strategy>=w||vt.level<2?4:0),fe(vt,ae),vt.status=Re);else{var mn=S+(vt.w_bits-8<<4)<<8,sr=-1;vt.strategy>=w||vt.level<2?sr=0:vt.level<6?sr=1:vt.level===6?sr=2:sr=3,mn|=sr<<6,vt.strstart!==0&&(mn|=X),mn+=31-mn%31,vt.status=Re,we(vt,mn),vt.strstart!==0&&(we(vt,me.adler>>>16),we(vt,me.adler&65535)),me.adler=1}if(vt.status===$)if(vt.gzhead.extra){for(rr=vt.pending;vt.gzindex<(vt.gzhead.extra.length&65535)&&!(vt.pending===vt.pending_buf_size&&(vt.gzhead.hcrc&&vt.pending>rr&&(me.adler=(0,m.default)(me.adler,vt.pending_buf,vt.pending-rr,rr)),Y(me),rr=vt.pending,vt.pending===vt.pending_buf_size));)fe(vt,vt.gzhead.extra[vt.gzindex]&255),vt.gzindex++;vt.gzhead.hcrc&&vt.pending>rr&&(me.adler=(0,m.default)(me.adler,vt.pending_buf,vt.pending-rr,rr)),vt.gzindex===vt.gzhead.extra.length&&(vt.gzindex=0,vt.status=le)}else vt.status=le;if(vt.status===le)if(vt.gzhead.name){rr=vt.pending;do{if(vt.pending===vt.pending_buf_size&&(vt.gzhead.hcrc&&vt.pending>rr&&(me.adler=(0,m.default)(me.adler,vt.pending_buf,vt.pending-rr,rr)),Y(me),rr=vt.pending,vt.pending===vt.pending_buf_size)){ur=1;break}vt.gzindex<vt.gzhead.name.length?ur=vt.gzhead.name.charCodeAt(vt.gzindex++)&255:ur=0,fe(vt,ur)}while(ur!==0);vt.gzhead.hcrc&&vt.pending>rr&&(me.adler=(0,m.default)(me.adler,vt.pending_buf,vt.pending-rr,rr)),ur===0&&(vt.gzindex=0,vt.status=re)}else vt.status=re;if(vt.status===re)if(vt.gzhead.comment){rr=vt.pending;do{if(vt.pending===vt.pending_buf_size&&(vt.gzhead.hcrc&&vt.pending>rr&&(me.adler=(0,m.default)(me.adler,vt.pending_buf,vt.pending-rr,rr)),Y(me),rr=vt.pending,vt.pending===vt.pending_buf_size)){ur=1;break}vt.gzindex<vt.gzhead.comment.length?ur=vt.gzhead.comment.charCodeAt(vt.gzindex++)&255:ur=0,fe(vt,ur)}while(ur!==0);vt.gzhead.hcrc&&vt.pending>rr&&(me.adler=(0,m.default)(me.adler,vt.pending_buf,vt.pending-rr,rr)),ur===0&&(vt.status=Se)}else vt.status=Se;if(vt.status===Se&&(vt.gzhead.hcrc?(vt.pending+2>vt.pending_buf_size&&Y(me),vt.pending+2<=vt.pending_buf_size&&(fe(vt,me.adler&255),fe(vt,me.adler>>8&255),me.adler=0,vt.status=Re)):vt.status=Re),vt.pending!==0){if(Y(me),me.avail_out===0)return vt.last_flush=-1,r}else if(me.avail_in===0&&pe(Wt)<=pe(dr)&&Wt!==e)return lt(me,g);if(vt.status===Pe&&me.avail_in!==0)return lt(me,g);if(me.avail_in!==0||vt.lookahead!==0||Wt!==n&&vt.status!==Pe){var xr=vt.strategy===w?at(vt,Wt):vt.strategy===E?gt(vt,Wt):mt[vt.level].func(vt,Wt);if((xr===ct||xr===Ue)&&(vt.status=Pe),xr===Je||xr===ct)return me.avail_out===0&&(vt.last_flush=-1),r;if(xr===Ge&&(Wt===t?x._tr_align(vt):Wt!==u&&(x._tr_stored_block(vt,0,0,!1),Wt===a&&(J(vt.head),vt.lookahead===0&&(vt.strstart=0,vt.block_start=0,vt.insert=0))),Y(me),me.avail_out===0))return vt.last_flush=-1,r}return Wt!==e?r:vt.wrap<=0?s:(vt.wrap===2?(fe(vt,me.adler&255),fe(vt,me.adler>>8&255),fe(vt,me.adler>>16&255),fe(vt,me.adler>>24&255),fe(vt,me.total_in&255),fe(vt,me.total_in>>8&255),fe(vt,me.total_in>>16&255),fe(vt,me.total_in>>24&255)):(we(vt,me.adler>>>16),we(vt,me.adler&65535)),Y(me),vt.wrap>0&&(vt.wrap=-vt.wrap),vt.pending!==0?r:s)}function se(me){var Wt;return!me||!me.state?c:(Wt=me.state.status,Wt!==te&&Wt!==$&&Wt!==le&&Wt!==re&&Wt!==Se&&Wt!==Re&&Wt!==Pe?lt(me,c):(me.state=null,Wt===Re?lt(me,h):r))}function ut(me,Wt){var dr=Wt.length,vt,rr,ur,mn,sr,xr,pr,Zt;if(!me||!me.state)return c;if(vt=me.state,mn=vt.wrap,mn===2||mn===1&&vt.status!==te||vt.lookahead)return c;for(mn===1&&(me.adler=(0,v.default)(me.adler,Wt,dr,0)),vt.wrap=0,dr>=vt.w_size&&(mn===0&&(J(vt.head),vt.strstart=0,vt.block_start=0,vt.insert=0),Zt=new p.Buf8(vt.w_size),p.arraySet(Zt,Wt,dr-vt.w_size,vt.w_size,0),Wt=Zt,dr=vt.w_size),sr=me.avail_in,xr=me.next_in,pr=me.input,me.avail_in=dr,me.next_in=0,me.input=Wt,he(vt);vt.lookahead>=z;){rr=vt.strstart,ur=vt.lookahead-(z-1);do vt.ins_h=(vt.ins_h<<vt.hash_shift^vt.window[rr+z-1])&vt.hash_mask,vt.prev[rr&vt.w_mask]=vt.head[vt.ins_h],vt.head[vt.ins_h]=rr,rr++;while(--ur);vt.strstart=rr,vt.lookahead=z-1,he(vt)}return vt.strstart+=vt.lookahead,vt.block_start=vt.strstart,vt.insert=vt.lookahead,vt.lookahead=0,vt.match_length=vt.prev_length=z-1,vt.match_available=0,me.next_in=xr,me.input=pr,me.avail_in=sr,vt.wrap=mn,r}var qe="pako deflate (from Nodeca project)";D.deflateInfo=qe},lOQZ:function(R,D,i){var y=i("QBsz"),p=i("U/Mo"),x=p.getSymbolSize,v=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 A=g.getModel().get("lineStyle.curveness")||0,b=y.clone(g.node1.getLayout()),w=y.clone(g.node2.getLayout()),E,C=(b[0]+w[0])/2,_=(b[1]+w[1])/2;+A&&(A*=3,E=[r*A+C*(1-A),s*A+_*(1-A)]),g.setLayout([b,w,E])})}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(A){var b=A.getValue("value"),w=g*(h?b:1)/2;c+=w,A.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=v(o);t.eachNode(function(b){var w=x(b);isNaN(w)&&(w=2),w<0&&(w=0),w*=h;var E=Math.asin(w/2/e);isNaN(E)&&(E=m/2),f[b.dataIndex]=E,c+=E*2});var g=(2*m-c)/s/2,A=0;t.eachNode(function(b){var w=g+f[b.dataIndex];A+=w,b.setLayout([e*Math.cos(A)+u,e*Math.sin(A)+r]),A+=w})}};D.circularLayout=d},lPiR:function(R,D,i){(function(y,p){R.exports=D=p(i("Ib8C"))})(this,function(y){return function(p){var x=y,v=x.lib,m=v.WordArray,f=v.Hasher,d=x.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],A=r[4],b=r[5],w=r[6],E=r[7],C=0;C<64;C++){if(C<16)n[C]=e[u+C]|0;else{var _=n[C-15],T=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,S=n[C-2],O=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;n[C]=T+n[C-7]+O+n[C-16]}var I=A&b^~A&w,F=s&c^s&h^c&h,P=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),B=(A<<26|A>>>6)^(A<<21|A>>>11)^(A<<7|A>>>25),k=E+B+I+o[C]+n[C],G=P+F;E=w,w=b,b=A,A=g+k|0,g=h,h=c,c=s,s=k+G|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]+A|0,r[5]=r[5]+b|0,r[6]=r[6]+w|0,r[7]=r[7]+E|0},_doFinalize:function(){var e=this._data,u=e.words,r=this._nDataBytes*8,s=e.sigBytes*8;return u[s>>>5]|=128<<24-s%32,u[(s+64>>>9<<4)+14]=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}});x.SHA256=f._createHelper(t),x.HmacSHA256=f._createHmacHelper(t)}(Math),y.SHA256})},lSCD:function(R,D,i){var y=i("NykK"),p=i("GoyQ"),x="[object AsyncFunction]",v="[object Function]",m="[object GeneratorFunction]",f="[object Proxy]";function d(l){if(!p(l))return!1;var o=y(l);return o==v||o==m||o==x||o==f}R.exports=d},lUTK:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("x54q"),v=i.n(x),m=i("5Dmo")},lZu9:function(R,D,i){(function(y){y(i("VrN/"),i("1eCo"),i("8EBN"))})(function(y){"use strict";y.defineMode("markdown",function(p,x){var v=y.getMode(p,"text/html"),m=v.name=="null";function f(K){if(y.findModeByName){var z=y.findModeByName(K);z&&(K=z.mime||z.mimes[0])}var V=y.getMode(p,K);return V.name=="null"?null:V}x.highlightFormatting===void 0&&(x.highlightFormatting=!1),x.maxBlockquoteDepth===void 0&&(x.maxBlockquoteDepth=0),x.taskLists===void 0&&(x.taskLists=!1),x.strikethrough===void 0&&(x.strikethrough=!1),x.emoji===void 0&&(x.emoji=!1),x.fencedCodeBlockHighlighting===void 0&&(x.fencedCodeBlockHighlighting=!0),x.fencedCodeBlockDefaultMode===void 0&&(x.fencedCodeBlockDefaultMode="text/plain"),x.xml===void 0&&(x.xml=!0),x.tokenTypeOverrides===void 0&&(x.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)&&x.tokenTypeOverrides[l]&&(d[l]=x.tokenTypeOverrides[l]);var o=/^([*\-_])(?:\s*\1){2,}\s*$/,n=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,t=/^\[(x| )\](?=\s)/i,a=x.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(K,z,V){return z.f=z.inline=V,V(K,z)}function A(K,z,V){return z.f=z.block=V,V(K,z)}function b(K){return!K||!/\S/.test(K.string)}function w(K){if(K.linkTitle=!1,K.linkHref=!1,K.linkText=!1,K.em=!1,K.strong=!1,K.strikethrough=!1,K.quote=0,K.indentedCode=!1,K.f==C){var z=m;if(!z){var V=y.innerMode(v,K.htmlState);z=V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText}z&&(K.f=O,K.block=E,K.htmlState=null)}return K.trailingSpace=0,K.trailingSpaceNewLine=!1,K.prevLine=K.thisLine,K.thisLine={stream:null},null}function E(K,z){var V=K.column()===z.indentation,Q=b(z.prevLine.stream),X=z.indentedCode,te=z.prevLine.hr,$=z.list!==!1,le=(z.listStack[z.listStack.length-1]||0)+3;z.indentedCode=!1;var re=z.indentation;if(z.indentationDiff===null&&(z.indentationDiff=z.indentation,$)){for(z.list=null;re<z.listStack[z.listStack.length-1];)z.listStack.pop(),z.listStack.length?z.indentation=z.listStack[z.listStack.length-1]:z.list=!1;z.list!==!1&&(z.indentationDiff=re-z.listStack[z.listStack.length-1])}var Se=!Q&&!te&&!z.prevLine.header&&(!$||!X)&&!z.prevLine.fencedCodeEnd,Re=(z.list===!1||te||Q)&&z.indentation<=le&&K.match(o),Pe=null;if(z.indentationDiff>=4&&(X||z.prevLine.fencedCodeEnd||z.prevLine.header||Q))return K.skipToEnd(),z.indentedCode=!0,d.code;if(K.eatSpace())return null;if(V&&z.indentation<=le&&(Pe=K.match(a))&&Pe[1].length<=6)return z.quote=0,z.header=Pe[1].length,z.thisLine.header=!0,x.highlightFormatting&&(z.formatting="header"),z.f=z.inline,T(z);if(z.indentation<=le&&K.eat(">"))return z.quote=V?1:z.quote+1,x.highlightFormatting&&(z.formatting="quote"),K.eatSpace(),T(z);if(!Re&&!z.setext&&V&&z.indentation<=le&&(Pe=K.match(n))){var Je=Pe[1]?"ol":"ul";return z.indentation=re+K.current().length,z.list=!0,z.quote=0,z.listStack.push(z.indentation),z.em=!1,z.strong=!1,z.code=!1,z.strikethrough=!1,x.taskLists&&K.match(t,!1)&&(z.taskList=!0),z.f=z.inline,x.highlightFormatting&&(z.formatting=["list","list-"+Je]),T(z)}else{if(V&&z.indentation<=le&&(Pe=K.match(r,!0)))return z.quote=0,z.fencedEndRE=new RegExp(Pe[1]+"+ *$"),z.localMode=x.fencedCodeBlockHighlighting&&f(Pe[2]||x.fencedCodeBlockDefaultMode),z.localMode&&(z.localState=y.startState(z.localMode)),z.f=z.block=_,x.highlightFormatting&&(z.formatting="code-block"),z.code=-1,T(z);if(z.setext||(!Se||!$)&&!z.quote&&z.list===!1&&!z.code&&!Re&&!s.test(K.string)&&(Pe=K.lookAhead(1))&&(Pe=Pe.match(e)))return z.setext?(z.header=z.setext,z.setext=0,K.skipToEnd(),x.highlightFormatting&&(z.formatting="header")):(z.header=Pe[0].charAt(0)=="="?1:2,z.setext=z.header),z.thisLine.header=!0,z.f=z.inline,T(z);if(Re)return K.skipToEnd(),z.hr=!0,z.thisLine.hr=!0,d.hr;if(K.peek()==="[")return g(K,z,k)}return g(K,z,z.inline)}function C(K,z){var V=v.token(K,z.htmlState);if(!m){var Q=y.innerMode(v,z.htmlState);(Q.mode.name=="xml"&&Q.state.tagStart===null&&!Q.state.context&&Q.state.tokenize.isInText||z.md_inside&&K.current().indexOf(">")>-1)&&(z.f=O,z.block=E,z.htmlState=null)}return V}function _(K,z){var V=z.listStack[z.listStack.length-1]||0,Q=z.indentation<V,X=V+3;if(z.fencedEndRE&&z.indentation<=X&&(Q||K.match(z.fencedEndRE))){x.highlightFormatting&&(z.formatting="code-block");var te;return Q||(te=T(z)),z.localMode=z.localState=null,z.block=E,z.f=O,z.fencedEndRE=null,z.code=0,z.thisLine.fencedCodeEnd=!0,Q?A(K,z,z.block):te}else return z.localMode?z.localMode.token(K,z.localState):(K.skipToEnd(),d.code)}function T(K){var z=[];if(K.formatting){z.push(d.formatting),typeof K.formatting=="string"&&(K.formatting=[K.formatting]);for(var V=0;V<K.formatting.length;V++)z.push(d.formatting+"-"+K.formatting[V]),K.formatting[V]==="header"&&z.push(d.formatting+"-"+K.formatting[V]+"-"+K.header),K.formatting[V]==="quote"&&(!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=K.quote?z.push(d.formatting+"-"+K.formatting[V]+"-"+K.quote):z.push("error"))}if(K.taskOpen)return z.push("meta"),z.length?z.join(" "):null;if(K.taskClosed)return z.push("property"),z.length?z.join(" "):null;if(K.linkHref?z.push(d.linkHref,"url"):(K.strong&&z.push(d.strong),K.em&&z.push(d.em),K.strikethrough&&z.push(d.strikethrough),K.emoji&&z.push(d.emoji),K.linkText&&z.push(d.linkText),K.code&&z.push(d.code),K.image&&z.push(d.image),K.imageAltText&&z.push(d.imageAltText,"link"),K.imageMarker&&z.push(d.imageMarker)),K.header&&z.push(d.header,d.header+"-"+K.header),K.quote&&(z.push(d.quote),!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=K.quote?z.push(d.quote+"-"+K.quote):z.push(d.quote+"-"+x.maxBlockquoteDepth)),K.list!==!1){var Q=(K.listStack.length-1)%3;Q?Q===1?z.push(d.list2):z.push(d.list3):z.push(d.list1)}return K.trailingSpaceNewLine?z.push("trailing-space-new-line"):K.trailingSpace&&z.push("trailing-space-"+(K.trailingSpace%2?"a":"b")),z.length?z.join(" "):null}function S(K,z){return K.match(u,!0)?T(z):void 0}function O(K,z){var V=z.text(K,z);if(typeof V!="undefined")return V;if(z.list)return z.list=null,T(z);if(z.taskList){var Q=K.match(t,!0)[1]===" ";return Q?z.taskOpen=!0:z.taskClosed=!0,x.highlightFormatting&&(z.formatting="task"),z.taskList=!1,T(z)}if(z.taskOpen=!1,z.taskClosed=!1,z.header&&K.match(/^#+$/,!0))return x.highlightFormatting&&(z.formatting="header"),T(z);var X=K.next();if(z.linkTitle){z.linkTitle=!1;var te=X;X==="("&&(te=")"),te=(te+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var $="^\\s*(?:[^"+te+"\\\\]+|\\\\\\\\|\\\\.)"+te;if(K.match(new RegExp($),!0))return d.linkHref}if(X==="`"){var le=z.formatting;x.highlightFormatting&&(z.formatting="code"),K.eatWhile("`");var re=K.current().length;if(z.code==0&&(!z.quote||re==1))return z.code=re,T(z);if(re==z.code){var Se=T(z);return z.code=0,Se}else return z.formatting=le,T(z)}else if(z.code)return T(z);if(X==="\\"&&(K.next(),x.highlightFormatting)){var Re=T(z),Pe=d.formatting+"-escape";return Re?Re+" "+Pe:Pe}if(X==="!"&&K.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return z.imageMarker=!0,z.image=!0,x.highlightFormatting&&(z.formatting="image"),T(z);if(X==="["&&z.imageMarker&&K.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return z.imageMarker=!1,z.imageAltText=!0,x.highlightFormatting&&(z.formatting="image"),T(z);if(X==="]"&&z.imageAltText){x.highlightFormatting&&(z.formatting="image");var Re=T(z);return z.imageAltText=!1,z.image=!1,z.inline=z.f=F,Re}if(X==="["&&!z.image)return z.linkText&&K.match(/^.*?\]/)||(z.linkText=!0,x.highlightFormatting&&(z.formatting="link")),T(z);if(X==="]"&&z.linkText){x.highlightFormatting&&(z.formatting="link");var Re=T(z);return z.linkText=!1,z.inline=z.f=K.match(/\(.*?\)| ?\[.*?\]/,!1)?F:O,Re}if(X==="<"&&K.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=I,x.highlightFormatting&&(z.formatting="link");var Re=T(z);return Re?Re+=" ":Re="",Re+d.linkInline}if(X==="<"&&K.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=I,x.highlightFormatting&&(z.formatting="link");var Re=T(z);return Re?Re+=" ":Re="",Re+d.linkEmail}if(x.xml&&X==="<"&&K.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Je=K.string.indexOf(">",K.pos);if(Je!=-1){var Ge=K.string.substring(K.start,Je);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ge)&&(z.md_inside=!0)}return K.backUp(1),z.htmlState=y.startState(v),A(K,z,C)}if(x.xml&&X==="<"&&K.match(/^\/\w*?>/))return z.md_inside=!1,"tag";if(X==="*"||X==="_"){for(var ct=1,Ue=K.pos==1?" ":K.string.charAt(K.pos-2);ct<3&&K.eat(X);)ct++;var ae=K.peek()||" ",lt=!/\s/.test(ae)&&(!c.test(ae)||/\s/.test(Ue)||c.test(Ue)),pe=!/\s/.test(Ue)&&(!c.test(Ue)||/\s/.test(ae)||c.test(ae)),J=null,Y=null;if(ct%2&&(!z.em&<&&(X==="*"||!pe||c.test(Ue))?J=!0:z.em==X&&pe&&(X==="*"||!lt||c.test(ae))&&(J=!1)),ct>1&&(!z.strong&<&&(X==="*"||!pe||c.test(Ue))?Y=!0:z.strong==X&&pe&&(X==="*"||!lt||c.test(ae))&&(Y=!1)),Y!=null||J!=null){x.highlightFormatting&&(z.formatting=J==null?"strong":Y==null?"em":"strong em"),J===!0&&(z.em=X),Y===!0&&(z.strong=X);var Se=T(z);return J===!1&&(z.em=!1),Y===!1&&(z.strong=!1),Se}}else if(X===" "&&(K.eat("*")||K.eat("_"))){if(K.peek()===" ")return T(z);K.backUp(1)}if(x.strikethrough){if(X==="~"&&K.eatWhile(X)){if(z.strikethrough){x.highlightFormatting&&(z.formatting="strikethrough");var Se=T(z);return z.strikethrough=!1,Se}else if(K.match(/^[^\s]/,!1))return z.strikethrough=!0,x.highlightFormatting&&(z.formatting="strikethrough"),T(z)}else if(X===" "&&K.match(/^~~/,!0)){if(K.peek()===" ")return T(z);K.backUp(2)}}if(x.emoji&&X===":"&&K.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){z.emoji=!0,x.highlightFormatting&&(z.formatting="emoji");var ee=T(z);return z.emoji=!1,ee}return X===" "&&(K.match(/^ +$/,!1)?z.trailingSpace++:z.trailingSpace&&(z.trailingSpaceNewLine=!0)),T(z)}function I(K,z){var V=K.next();if(V===">"){z.f=z.inline=O,x.highlightFormatting&&(z.formatting="link");var Q=T(z);return Q?Q+=" ":Q="",Q+d.linkInline}return K.match(/^[^>]+/,!0),d.linkInline}function F(K,z){if(K.eatSpace())return null;var V=K.next();return V==="("||V==="["?(z.f=z.inline=B(V==="("?")":"]"),x.highlightFormatting&&(z.formatting="link-string"),z.linkHref=!0,T(z)):"error"}var P={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function B(K){return function(z,V){var Q=z.next();if(Q===K){V.f=V.inline=O,x.highlightFormatting&&(V.formatting="link-string");var X=T(V);return V.linkHref=!1,X}return z.match(P[K]),V.linkHref=!0,T(V)}}function k(K,z){return K.match(/^([^\]\\]|\\.)*\]:/,!1)?(z.f=G,K.next(),x.highlightFormatting&&(z.formatting="link"),z.linkText=!0,T(z)):g(K,z,O)}function G(K,z){if(K.match(/^\]:/,!0)){z.f=z.inline=M,x.highlightFormatting&&(z.formatting="link");var V=T(z);return z.linkText=!1,V}return K.match(/^([^\]\\]|\\.)+/,!0),d.linkText}function M(K,z){return K.eatSpace()?null:(K.match(/^[^\s]+/,!0),K.peek()===void 0?z.linkTitle=!0:K.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),z.f=z.inline=O,d.linkHref+" url")}var j={startState:function(){return{f:E,prevLine:{stream:null},thisLine:{stream:null},block:E,htmlState:null,indentation:0,inline:O,text:S,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(z){return{f:z.f,prevLine:z.prevLine,thisLine:z.thisLine,block:z.block,htmlState:z.htmlState&&y.copyState(v,z.htmlState),indentation:z.indentation,localMode:z.localMode,localState:z.localMode?y.copyState(z.localMode,z.localState):null,inline:z.inline,text:z.text,formatting:!1,linkText:z.linkText,linkTitle:z.linkTitle,linkHref:z.linkHref,code:z.code,em:z.em,strong:z.strong,strikethrough:z.strikethrough,emoji:z.emoji,header:z.header,setext:z.setext,hr:z.hr,taskList:z.taskList,list:z.list,listStack:z.listStack.slice(0),quote:z.quote,indentedCode:z.indentedCode,trailingSpace:z.trailingSpace,trailingSpaceNewLine:z.trailingSpaceNewLine,md_inside:z.md_inside,fencedEndRE:z.fencedEndRE}},token:function(z,V){if(V.formatting=!1,z!=V.thisLine.stream){if(V.header=0,V.hr=!1,z.match(/^\s*$/,!0))return w(V),null;if(V.prevLine=V.thisLine,V.thisLine={stream:z},V.taskList=!1,V.trailingSpace=0,V.trailingSpaceNewLine=!1,!V.localState&&(V.f=V.block,V.f!=C)){var Q=z.match(/^\s*/,!0)[0].replace(/\t/g,h).length;if(V.indentation=Q,V.indentationDiff=null,Q>0)return null}}return V.f(z,V)},innerMode:function(z){return z.block==C?{state:z.htmlState,mode:v}:z.localState?{state:z.localState,mode:z.localMode}:{state:z,mode:j}},indent:function(z,V,Q){return z.block==C&&v.indent?v.indent(z.htmlState,V,Q):z.localState&&z.localMode.indent?z.localMode.indent(z.localState,V,Q):y.Pass},blankLine:w,getType:T,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return j},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},laiN:function(R,D,i){var y=i("ProS");i("GVMX"),i("MH26"),y.registerPreprocessor(function(p){p.markLine=p.markLine||{}})},ljhN:function(R,D){function i(y,p){return y===p||y!==y&&p!==p}R.exports=i},lnY3:function(R,D,i){},loD1:function(R,D){function i(y,p,x,v,m,f,d){if(m===0)return!1;var l=m,o=0,n=y;if(d>p+l&&d>v+l||d<p-l&&d<v-l||f>y+l&&f>x+l||f<y-l&&f<x-l)return!1;if(y!==x)o=(p-v)/(y-x),n=(y*v-x*p)/(y-x);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(R,D,i){"use strict";var y=i("rePB"),p=i("Ff2n"),x=i("VTBJ"),v=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(C){var _=C.prefixCls,T=C.level,S=C.isStart,O=C.isEnd;if(!T)return null;for(var I="".concat(_,"-indent-unit"),F=[],P=0;P<T;P+=1){var B;F.push(o.createElement("span",{key:P,className:t()(I,(B={},Object(y.a)(B,"".concat(I,"-start"),S[P+1]),Object(y.a)(B,"".concat(I,"-end"),O[P+1]),Object(y.a)(B,"".concat(I,"-end-first-level"),!P&&O[0]),B))}))}return o.createElement("span",{"aria-hidden":"true",className:"".concat(_,"-indent")},F)},r=u,s=i("c3jg"),c="open",h="close",g="---",A=function(E){Object(d.a)(_,E);var C=Object(l.a)(_);function _(){var T;return Object(v.a)(this,_),T=C.apply(this,arguments),T.state={dragNodeHighlight:!1},T.onSelectorClick=function(S){var O=T.props.context.onNodeClick;O(S,Object(s.b)(T.props)),T.isSelectable()?T.onSelect(S):T.onCheck(S)},T.onSelectorDoubleClick=function(S){var O=T.props.context.onNodeDoubleClick;O(S,Object(s.b)(T.props))},T.onSelect=function(S){if(T.isDisabled())return;var O=T.props.context.onNodeSelect;S.preventDefault(),O(S,Object(s.b)(T.props))},T.onCheck=function(S){if(T.isDisabled())return;var O=T.props,I=O.disableCheckbox,F=O.checked,P=T.props.context.onNodeCheck;if(!T.isCheckable()||I)return;S.preventDefault();var B=!F;P(S,Object(s.b)(T.props),B)},T.onMouseEnter=function(S){var O=T.props.context.onNodeMouseEnter;O(S,Object(s.b)(T.props))},T.onMouseLeave=function(S){var O=T.props.context.onNodeMouseLeave;O(S,Object(s.b)(T.props))},T.onContextMenu=function(S){var O=T.props.context.onNodeContextMenu;O(S,Object(s.b)(T.props))},T.onDragStart=function(S){var O=T.props.context.onNodeDragStart;S.stopPropagation(),T.setState({dragNodeHighlight:!0}),O(S,Object(f.a)(T));try{S.dataTransfer.setData("text/plain","")}catch(I){}},T.onDragEnter=function(S){var O=T.props.context.onNodeDragEnter;S.preventDefault(),S.stopPropagation(),O(S,Object(f.a)(T))},T.onDragOver=function(S){var O=T.props.context.onNodeDragOver;S.preventDefault(),S.stopPropagation(),O(S,Object(f.a)(T))},T.onDragLeave=function(S){var O=T.props.context.onNodeDragLeave;S.stopPropagation(),O(S,Object(f.a)(T))},T.onDragEnd=function(S){var O=T.props.context.onNodeDragEnd;S.stopPropagation(),T.setState({dragNodeHighlight:!1}),O(S,Object(f.a)(T))},T.onDrop=function(S){var O=T.props.context.onNodeDrop;S.preventDefault(),S.stopPropagation(),T.setState({dragNodeHighlight:!1}),O(S,Object(f.a)(T))},T.onExpand=function(S){var O=T.props.context.onNodeExpand;O(S,Object(s.b)(T.props))},T.setSelectHandle=function(S){T.selectHandle=S},T.getNodeState=function(){var S=T.props.expanded;return T.isLeaf()?null:S?c:h},T.hasChildren=function(){var S=T.props.eventKey,O=T.props.context.keyEntities,I=O[S]||{},F=I.children;return!!(F||[]).length},T.isLeaf=function(){var S=T.props,O=S.isLeaf,I=S.loaded,F=T.props.context.loadData,P=T.hasChildren();return O===!1?!1:O||!F&&!P||F&&I&&!P},T.isDisabled=function(){var S=T.props.disabled,O=T.props.context.disabled;return!!(O||S)},T.isCheckable=function(){var S=T.props.checkable,O=T.props.context.checkable;return!O||S===!1?!1:O},T.syncLoadData=function(S){var O=S.expanded,I=S.loading,F=S.loaded,P=T.props.context,B=P.loadData,k=P.onNodeLoad;if(I)return;B&&O&&!T.isLeaf()&&(!T.hasChildren()&&!F&&k(Object(s.b)(T.props)))},T.renderSwitcher=function(){var S=T.props,O=S.expanded,I=S.switcherIcon,F=T.props.context,P=F.prefixCls,B=F.switcherIcon,k=I||B;if(T.isLeaf())return o.createElement("span",{className:t()("".concat(P,"-switcher"),"".concat(P,"-switcher-noop"))},typeof k=="function"?k(Object(x.a)(Object(x.a)({},T.props),{},{isLeaf:!0})):k);var G=t()("".concat(P,"-switcher"),"".concat(P,"-switcher_").concat(O?c:h));return o.createElement("span",{onClick:T.onExpand,className:G},typeof k=="function"?k(Object(x.a)(Object(x.a)({},T.props),{},{isLeaf:!1})):k)},T.renderCheckbox=function(){var S=T.props,O=S.checked,I=S.halfChecked,F=S.disableCheckbox,P=T.props.context.prefixCls,B=T.isDisabled(),k=T.isCheckable();if(!k)return null;var G=typeof k!="boolean"?k:null;return o.createElement("span",{className:t()("".concat(P,"-checkbox"),O&&"".concat(P,"-checkbox-checked"),!O&&I&&"".concat(P,"-checkbox-indeterminate"),(B||F)&&"".concat(P,"-checkbox-disabled")),onClick:T.onCheck},G)},T.renderIcon=function(){var S=T.props.loading,O=T.props.context.prefixCls;return o.createElement("span",{className:t()("".concat(O,"-iconEle"),"".concat(O,"-icon__").concat(T.getNodeState()||"docu"),S&&"".concat(O,"-icon_loading"))})},T.renderSelector=function(){var S=T.state.dragNodeHighlight,O=T.props,I=O.title,F=O.selected,P=O.icon,B=O.loading,k=O.data,G=T.props.context,M=G.prefixCls,j=G.showIcon,K=G.icon,z=G.draggable,V=G.loadData,Q=G.titleRender,X=T.isDisabled(),te="".concat(M,"-node-content-wrapper"),$;if(j){var le=P||K;$=le?o.createElement("span",{className:t()("".concat(M,"-iconEle"),"".concat(M,"-icon__customize"))},typeof le=="function"?le(T.props):le):T.renderIcon()}else V&&B&&($=T.renderIcon());var re;typeof I=="function"?re=I(k):Q?re=Q(k):re=I;var Se=o.createElement("span",{className:"".concat(M,"-title")},re);return o.createElement("span",{ref:T.setSelectHandle,title:typeof I=="string"?I:"",className:t()("".concat(te),"".concat(te,"-").concat(T.getNodeState()||"normal"),!X&&(F||S)&&"".concat(M,"-node-selected"),!X&&z&&"draggable"),draggable:!X&&z||void 0,"aria-grabbed":!X&&z||void 0,onMouseEnter:T.onMouseEnter,onMouseLeave:T.onMouseLeave,onContextMenu:T.onContextMenu,onClick:T.onSelectorClick,onDoubleClick:T.onSelectorDoubleClick,onDragStart:z?T.onDragStart:void 0},$,Se)},T}return Object(m.a)(_,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var S=this.props.selectable,O=this.props.context.selectable;return typeof S=="boolean"?S:O}},{key:"render",value:function(){var S,O=this.props,I=O.eventKey,F=O.className,P=O.style,B=O.dragOver,k=O.dragOverGapTop,G=O.dragOverGapBottom,M=O.isLeaf,j=O.isStart,K=O.isEnd,z=O.expanded,V=O.selected,Q=O.checked,X=O.halfChecked,te=O.loading,$=O.domRef,le=O.active,re=O.onMouseMove,Se=Object(p.a)(O,["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,Ge=Re.draggable,ct=Re.keyEntities,Ue=this.isDisabled(),ae=Object(e.f)(Se),lt=ct[I]||{},pe=lt.level,J=K[K.length-1];return o.createElement("div",Object.assign({ref:$,className:t()(F,"".concat(Pe,"-treenode"),(S={},Object(y.a)(S,"".concat(Pe,"-treenode-disabled"),Ue),Object(y.a)(S,"".concat(Pe,"-treenode-switcher-").concat(z?"open":"close"),!M),Object(y.a)(S,"".concat(Pe,"-treenode-checkbox-checked"),Q),Object(y.a)(S,"".concat(Pe,"-treenode-checkbox-indeterminate"),X),Object(y.a)(S,"".concat(Pe,"-treenode-selected"),V),Object(y.a)(S,"".concat(Pe,"-treenode-loading"),te),Object(y.a)(S,"".concat(Pe,"-treenode-active"),le),Object(y.a)(S,"".concat(Pe,"-treenode-leaf-last"),J),Object(y.a)(S,"drag-over",!Ue&&B),Object(y.a)(S,"drag-over-gap-top",!Ue&&k),Object(y.a)(S,"drag-over-gap-bottom",!Ue&&G),Object(y.a)(S,"filter-node",Je&&Je(Object(s.b)(this.props))),S)),style:P,onDragEnter:Ge?this.onDragEnter:void 0,onDragOver:Ge?this.onDragOver:void 0,onDragLeave:Ge?this.onDragLeave:void 0,onDrop:Ge?this.onDrop:void 0,onDragEnd:Ge?this.onDragEnd:void 0,onMouseMove:re},ae),o.createElement(r,{prefixCls:Pe,level:pe,isStart:j,isEnd:K}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),_}(o.Component),b=function(C){return o.createElement(a.a.Consumer,null,function(_){return o.createElement(A,Object.assign({},C,{context:_}))})};b.displayName="TreeNode",b.defaultProps={title:g},b.isTreeNode=1;var w=D.a=b},lrIw:function(R,D,i){"use strict";var y=i("pVnL"),p=i.n(y),x=i("cDf5"),v=i.n(x),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 A=function(E,C){var _=E.prefixCls,T=E.className,S=E.children,O=E.dataSource,I=Object(o.a)(S),F=d.useRef();d.useImperativeHandle(C,function(){return F.current});var P;if(I.length===1&&Object(s.b)(I[0])&&!g(I[0])){var B=f()(I,1);P=B[0]}var k=function(){return P},G;return I.length&&g(I[0])?G=S:G=O?O.map(function(M){if(Object(s.b)(M))return M;switch(v()(M)){case"string":return d.createElement(c,{key:M,value:M},M);case"object":{var j=M.value;return d.createElement(c,{key:j,value:j},M.text)}default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[],d.useEffect(function(){Object(r.a)(!("dataSource"in E),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),Object(r.a)(!P||!("size"in E),"AutoComplete","You need to control style self instead of setting `size` when using customize input.")},[]),d.createElement(u.a,null,function(M){var j=M.getPrefixCls,K=j("select",_);return d.createElement(h,p()({ref:F},Object(a.default)(E,["dataSource"]),{prefixCls:K,className:t()(T,"".concat(K,"-auto-complete")),mode:e.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:k}),G)})},b=d.forwardRef(A);b.Option=c,D.a=b},lwQL:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("9wZj"),v=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 E=b.getVisual("opacity");return E!=null?E:b.getModel().get(w)}function h(b,w,E){var C=b.getGraphicEl(),_=c(b,w);E!=null&&(_==null&&(_=1),_*=E),C.downplay&&C.downplay(),C.traverse(function(T){if(!T.isGroup){var S=T.lineLabelOriginalOpacity;(S==null||E!=null)&&(S=_),T.setStyle("opacity",S)}})}function g(b,w){var E=c(b,w),C=b.getGraphicEl();C.traverse(function(_){!_.isGroup&&_.setStyle("opacity",E)}),C.highlight&&C.highlight()}var A=y.extendChartView({type:"graph",init:function(b,w){var E=new x,C=new v,_=this.group;this._controller=new m(w.getZr()),this._controllerHost={target:_},_.add(E.group),_.add(C.group),this._symbolDraw=E,this._lineDraw=C,this._firstRender=!0},render:function(b,w,E){var C=this,_=b.coordinateSystem;this._model=b;var T=this._symbolDraw,S=this._lineDraw,O=this.group;if(_.type==="view"){var I={position:_.position,scale:_.scale};this._firstRender?O.attr(I):o.updateProps(O,I,b)}n(b.getGraph(),a(b));var F=b.getData();T.updateData(F);var P=b.getEdgeData();S.updateData(P),this._updateNodeAndLinkScale(),this._updateController(b,w,E),clearTimeout(this._layoutTimeout);var B=b.forceLayout,k=b.get("force.layoutAnimation");B&&this._startForceLayoutIteration(B,k),F.eachItemGraphicEl(function(K,z){var V=F.getItemModel(z);K.off("drag").off("dragend");var Q=V.get("draggable");Q&&K.on("drag",function(){B&&(B.warmUp(),!this._layouting&&this._startForceLayoutIteration(B,k),B.setFixed(z),F.setItemLayout(z,K.position))},this).on("dragend",function(){B&&B.setUnfixed(z)},this),K.setDraggable(Q&&B),K[e]&&K.off("mouseover",K[e]),K[u]&&K.off("mouseout",K[u]),V.get("focusNodeAdjacency")&&(K.on("mouseover",K[e]=function(){C._clearTimer(),E.dispatchAction({type:"focusNodeAdjacency",seriesId:b.id,dataIndex:K.dataIndex})}),K.on("mouseout",K[u]=function(){C._dispatchUnfocus(E)}))},this),F.graph.eachEdge(function(K){var z=K.getGraphicEl();z[e]&&z.off("mouseover",z[e]),z[u]&&z.off("mouseout",z[u]),K.getModel().get("focusNodeAdjacency")&&(z.on("mouseover",z[e]=function(){C._clearTimer(),E.dispatchAction({type:"focusNodeAdjacency",seriesId:b.id,edgeDataIndex:K.dataIndex})}),z.on("mouseout",z[u]=function(){C._dispatchUnfocus(E)}))});var G=b.get("layout")==="circular"&&b.get("circular.rotateLabel"),M=F.getLayout("cx"),j=F.getLayout("cy");F.eachItemGraphicEl(function(K,z){var V=F.getItemModel(z),Q=V.get("label.rotate")||0,X=K.getSymbolPath();if(G){var te=F.getItemLayout(z),$=Math.atan2(te[1]-j,te[0]-M);$<0&&($=Math.PI*2+$);var le=te[0]<M;le&&($=$-Math.PI);var re=le?"left":"right";o.modifyLabelStyle(X,{textRotation:-$,textPosition:re,textOrigin:"center"},{textPosition:re})}else o.modifyLabelStyle(X,{textRotation:Q*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(b,w){var E=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){E._unfocusDelayTimer=null,b.dispatchAction({type:"unfocusNodeAdjacency",seriesId:E._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(b,w,E,C){var _=b.getData(),T=_.graph,S=C.dataIndex,O=C.edgeDataIndex,I=T.getNodeByIndex(S),F=T.getEdgeByIndex(O);if(!I&&!F)return;T.eachNode(function(P){h(P,r,.1)}),T.eachEdge(function(P){h(P,s,.1)}),I&&(g(I,r),p.each(I.edges,function(P){if(P.dataIndex<0)return;g(P,s),g(P.node1,r),g(P.node2,r)})),F&&(g(F,s),g(F.node1,r),g(F.node2,r))},unfocusNodeAdjacency:function(b,w,E,C){var _=b.getData().graph;_.eachNode(function(T){h(T,r)}),_.eachEdge(function(T){h(T,s)})},_startForceLayoutIteration:function(b,w){var E=this;(function C(){b.step(function(_){E.updateLayout(E._model),(E._layouting=!_)&&(w?E._layoutTimeout=setTimeout(C,16):C())})})()},_updateController:function(b,w,E){var C=this._controller,_=this._controllerHost,T=this.group;if(C.setPointerChecker(function(S,O,I){var F=T.getBoundingRect();return F.applyTransform(T.transform),F.contain(O,I)&&!l(S,E,b)}),b.coordinateSystem.type!=="view"){C.disable();return}C.enable(b.get("roam")),_.zoomLimit=b.get("scaleLimit"),_.zoom=b.coordinateSystem.getZoom(),C.off("pan").off("zoom").on("pan",function(S){f.updateViewOnPan(_,S.dx,S.dy),E.dispatchAction({seriesId:b.id,type:"graphRoam",dx:S.dx,dy:S.dy})}).on("zoom",function(S){f.updateViewOnZoom(_,S.scale,S.originX,S.originY),E.dispatchAction({seriesId:b.id,type:"graphRoam",zoom:S.scale,originX:S.originX,originY:S.originY}),this._updateNodeAndLinkScale(),n(b.getGraph(),a(b)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var b=this._model,w=b.getData(),E=a(b),C=[E,E];w.eachItemGraphicEl(function(_,T){_.attr("scale",C)})},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()}});R.exports=A},m9t5:function(R,D,i){var y=i("KCsZ"),p=y([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),x={getAreaStyle:function(v,m){return p(this,v,m)}};R.exports=x},mBDr:function(R,D,i){"use strict";i.d(D,"a",function(){return x});var y=i("q1tI"),p=i.n(y);function x(v){var m=y.useRef();m.current=v;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(R,D,i){var y=i("QBsz"),p=i("Fofx"),x=y.applyTransform,v=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=v(o.x,this.x),t=v(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,x(l,l,a),x(o,o,a),x(n,n,a),x(t,t,a),this.x=v(l[0],o[0],n[0],t[0]),this.y=v(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;R.exports=d},mHUz:function(R,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(R,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)};R.exports=i},"mO/d":function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("I9Y+"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},mOdp:function(R,D,i){var y=i("bYtY"),p=y.createHashMap;function x(v){return{getTargetSeries:function(m){var f={},d=p();return m.eachSeriesByType(v,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)}})}}}R.exports=x},mTgk:function(R,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 x={};function v(l,o){if(o===void 0)throw new Error('Undefined keysym for key "'+l+'"');if(l in x)throw new Error('Duplicate entry for key "'+l+'"');x[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 x)throw new Error('Duplicate entry for key "'+l+'"');x[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 x)throw new Error('Duplicate entry for key "'+l+'"');x[l]=[o,o,o,n]}m("Alt",y.default.XK_Alt_L,y.default.XK_Alt_R),v("AltGraph",y.default.XK_ISO_Level3_Shift),v("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),v("NumLock",y.default.XK_Num_Lock),v("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),v("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),v("Backspace",y.default.XK_BackSpace),f("Clear",y.default.XK_Clear,y.default.XK_KP_Begin),v("Copy",y.default.XF86XK_Copy),v("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),v("Paste",y.default.XF86XK_Paste),v("Redo",y.default.XK_Redo),v("Undo",y.default.XK_Undo),v("Cancel",y.default.XK_Cancel),v("ContextMenu",y.default.XK_Menu),v("Escape",y.default.XK_Escape),v("Execute",y.default.XK_Execute),v("Find",y.default.XK_Find),v("Help",y.default.XK_Help),v("Pause",y.default.XK_Pause),v("Select",y.default.XK_Select),v("ZoomIn",y.default.XF86XK_ZoomIn),v("ZoomOut",y.default.XF86XK_ZoomOut),v("BrightnessDown",y.default.XF86XK_MonBrightnessDown),v("BrightnessUp",y.default.XF86XK_MonBrightnessUp),v("Eject",y.default.XF86XK_Eject),v("LogOff",y.default.XF86XK_LogOff),v("Power",y.default.XF86XK_PowerOff),v("PowerOff",y.default.XF86XK_PowerDown),v("PrintScreen",y.default.XK_Print),v("Hibernate",y.default.XF86XK_Hibernate),v("Standby",y.default.XF86XK_Standby),v("WakeUp",y.default.XF86XK_WakeUp),v("AllCandidates",y.default.XK_MultipleCandidate),v("Alphanumeric",y.default.XK_Eisu_Shift),v("CodeInput",y.default.XK_Codeinput),v("Compose",y.default.XK_Multi_key),v("Convert",y.default.XK_Henkan),v("GroupFirst",y.default.XK_ISO_First_Group),v("GroupLast",y.default.XK_ISO_Last_Group),v("GroupNext",y.default.XK_ISO_Next_Group),v("GroupPrevious",y.default.XK_ISO_Prev_Group),v("NonConvert",y.default.XK_Muhenkan),v("PreviousCandidate",y.default.XK_PreviousCandidate),v("SingleCandidate",y.default.XK_SingleCandidate),v("HangulMode",y.default.XK_Hangul),v("HanjaMode",y.default.XK_Hangul_Hanja),v("JunjuaMode",y.default.XK_Hangul_Jeonja),v("Eisu",y.default.XK_Eisu_toggle),v("Hankaku",y.default.XK_Hankaku),v("Hiragana",y.default.XK_Hiragana),v("HiraganaKatakana",y.default.XK_Hiragana_Katakana),v("KanaMode",y.default.XK_Kana_Shift),v("KanjiMode",y.default.XK_Kanji),v("Katakana",y.default.XK_Katakana),v("Romaji",y.default.XK_Romaji),v("Zenkaku",y.default.XK_Zenkaku),v("ZenkakuHanaku",y.default.XK_Zenkaku_Hankaku),v("F1",y.default.XK_F1),v("F2",y.default.XK_F2),v("F3",y.default.XK_F3),v("F4",y.default.XK_F4),v("F5",y.default.XK_F5),v("F6",y.default.XK_F6),v("F7",y.default.XK_F7),v("F8",y.default.XK_F8),v("F9",y.default.XK_F9),v("F10",y.default.XK_F10),v("F11",y.default.XK_F11),v("F12",y.default.XK_F12),v("F13",y.default.XK_F13),v("F14",y.default.XK_F14),v("F15",y.default.XK_F15),v("F16",y.default.XK_F16),v("F17",y.default.XK_F17),v("F18",y.default.XK_F18),v("F19",y.default.XK_F19),v("F20",y.default.XK_F20),v("F21",y.default.XK_F21),v("F22",y.default.XK_F22),v("F23",y.default.XK_F23),v("F24",y.default.XK_F24),v("F25",y.default.XK_F25),v("F26",y.default.XK_F26),v("F27",y.default.XK_F27),v("F28",y.default.XK_F28),v("F29",y.default.XK_F29),v("F30",y.default.XK_F30),v("F31",y.default.XK_F31),v("F32",y.default.XK_F32),v("F33",y.default.XK_F33),v("F34",y.default.XK_F34),v("F35",y.default.XK_F35),v("Close",y.default.XF86XK_Close),v("MailForward",y.default.XF86XK_MailForward),v("MailReply",y.default.XF86XK_Reply),v("MailSend",y.default.XF86XK_Send),v("MediaFastForward",y.default.XF86XK_AudioForward),v("MediaPause",y.default.XF86XK_AudioPause),v("MediaPlay",y.default.XF86XK_AudioPlay),v("MediaRecord",y.default.XF86XK_AudioRecord),v("MediaRewind",y.default.XF86XK_AudioRewind),v("MediaStop",y.default.XF86XK_AudioStop),v("MediaTrackNext",y.default.XF86XK_AudioNext),v("MediaTrackPrevious",y.default.XF86XK_AudioPrev),v("New",y.default.XF86XK_New),v("Open",y.default.XF86XK_Open),v("Print",y.default.XK_Print),v("Save",y.default.XF86XK_Save),v("SpellCheck",y.default.XF86XK_Spell),v("AudioVolumeDown",y.default.XF86XK_AudioLowerVolume),v("AudioVolumeUp",y.default.XF86XK_AudioRaiseVolume),v("AudioVolumeMute",y.default.XF86XK_AudioMute),v("MicrophoneVolumeMute",y.default.XF86XK_AudioMicMute),v("LaunchApplication1",y.default.XF86XK_MyComputer),v("LaunchApplication2",y.default.XF86XK_Calculator),v("LaunchCalendar",y.default.XF86XK_Calendar),v("LaunchMail",y.default.XF86XK_Mail),v("LaunchMediaPlayer",y.default.XF86XK_AudioMedia),v("LaunchMusicPlayer",y.default.XF86XK_Music),v("LaunchPhone",y.default.XF86XK_Phone),v("LaunchScreenSaver",y.default.XF86XK_ScreenSaver),v("LaunchSpreadsheet",y.default.XF86XK_Excel),v("LaunchWebBrowser",y.default.XF86XK_WWW),v("LaunchWebCam",y.default.XF86XK_WebCam),v("LaunchWordProcessor",y.default.XF86XK_Word),v("BrowserBack",y.default.XF86XK_Back),v("BrowserFavorites",y.default.XF86XK_Favorites),v("BrowserForward",y.default.XF86XK_Forward),v("BrowserHome",y.default.XF86XK_HomePage),v("BrowserRefresh",y.default.XF86XK_Refresh),v("BrowserSearch",y.default.XF86XK_Search),v("BrowserStop",y.default.XF86XK_Stop),v("Dimmer",y.default.XF86XK_BrightnessAdjust),v("MediaAudioTrack",y.default.XF86XK_AudioCycleTrack),v("RandomToggle",y.default.XF86XK_AudioRandomPlay),v("SplitScreenToggle",y.default.XF86XK_SplitScreen),v("Subtitle",y.default.XF86XK_Subtitle),v("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=x;D.default=d},mYwL:function(R,D,i){var y=i("bYtY"),p=i("IwbS"),x=i("6GrX"),v=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:-v/2,endAngle:-v/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:v*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:v*3/2}).delay(300).start("circularInOut"),l.add(a)}return l.resize=function(){var e=x.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}R.exports=m},mdPL:function(R,D,i){(function(y){var p=i("WFqU"),x=D&&!D.nodeType&&D,v=x&&typeof y=="object"&&y&&!y.nodeType&&y,m=v&&v.exports===x,f=m&&p.process,d=function(){try{var l=v&&v.require&&v.require("util").types;return l||f&&f.binding&&f.binding("util")}catch(o){}}();y.exports=d}).call(this,i("YuTi")(R))},mdZa:function(R,D,i){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(p,x){"use strict";if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var v=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)&&(v[d]=f[d])}return v},writable:!0,configurable:!0}),function(){function y(p,x){x=x||{bubbles:!1,cancelable:!1,detail:void 0};var v=document.createEvent("CustomEvent");return v.initCustomEvent(p,x.bubbles,x.cancelable,x.detail),v}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(R,D,i){"use strict";var y=i("lSNA"),p=i.n(y),x=i("pVnL"),v=i.n(x),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(_,T){var S={};for(var O in _)Object.prototype.hasOwnProperty.call(_,O)&&T.indexOf(O)<0&&(S[O]=_[O]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,O=Object.getOwnPropertySymbols(_);I<O.length;I++)T.indexOf(O[I])<0&&Object.prototype.propertyIsEnumerable.call(_,O[I])&&(S[O[I]]=_[O[I]]);return S},r=function(T){var S,O=d.useContext(e.b),I=O.getPrefixCls,F=function(z){var V=T.checked,Q=T.onChange,X=T.onClick;Q&&Q(!V),X&&X(z)},P=T.prefixCls,B=T.className,k=T.checked,G=u(T,["prefixCls","className","checked"]),M=I("tag",P),j=o()(M,(S={},p()(S,"".concat(M,"-checkable"),!0),p()(S,"".concat(M,"-checkable-checked"),k),S),B);return delete G.onChange,d.createElement("span",v()({},G,{className:j,onClick:F}))},s=r,c=i("09Wf"),h=i("g0mS"),g=function(_,T){var S={};for(var O in _)Object.prototype.hasOwnProperty.call(_,O)&&T.indexOf(O)<0&&(S[O]=_[O]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,O=Object.getOwnPropertySymbols(_);I<O.length;I++)T.indexOf(O[I])<0&&Object.prototype.propertyIsEnumerable.call(_,O[I])&&(S[O[I]]=_[O[I]]);return S},A=new RegExp("^(".concat(c.a.join("|"),")(-inverse)?$")),b=new RegExp("^(".concat(c.b.join("|"),")$")),w=function(T,S){var O,I=T.prefixCls,F=T.className,P=T.style,B=T.children,k=T.icon,G=T.color,M=T.onClose,j=T.closeIcon,K=T.closable,z=K===void 0?!1:K,V=g(T,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),Q=d.useContext(e.b),X=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 G?A.test(G)||b.test(G):!1},Pe=v()({backgroundColor:G&&!Re()?G:void 0},P),Je=Re(),Ge=X("tag",I),ct=o()(Ge,(O={},p()(O,"".concat(Ge,"-").concat(G),Je),p()(O,"".concat(Ge,"-has-color"),G&&!Je),p()(O,"".concat(Ge,"-hidden"),!re),p()(O,"".concat(Ge,"-rtl"),te==="rtl"),O),F),Ue=function(we){if(we.stopPropagation(),M&&M(we),we.defaultPrevented)return;"visible"in V||Se(!1)},ae=function(){return z?j?d.createElement("div",{className:"".concat(Ge,"-close-icon"),onClick:Ue},j):d.createElement(a.a,{className:"".concat(Ge,"-close-icon"),onClick:Ue}):null},lt="onClick"in V||B&&B.type==="a",pe=Object(n.default)(V,["visible"]),J=k||null,Y=J?d.createElement(d.Fragment,null,J,d.createElement("span",null,B)):B,ee=d.createElement("span",v()({},pe,{ref:S,className:ct,style:Pe}),Y,ae());return lt?d.createElement(h.a,null,ee):ee},E=d.forwardRef(w);E.displayName="Tag",E.CheckableTag=s;var C=D.a=E},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(R){if(!0)module.exports=R();else var D})(function(){var define,module,exports;return function(){function R(D,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(x)return x(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,R,D,i,y)}return i[m].exports}for(var x=typeof require=="function"&&require,v=0;v<y.length;v++)p(y[v]);return p}return R}()({1:[function(R,D,i){"use strict";var y=R("./browser/client");y.Buffer=R("buffer").Buffer,y.urllib=R("../shims/xhr"),y.version=R("./browser/version").version,D.exports=y},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(R,D,i){(function(y,p){"use strict";var x=R("babel-runtime/core-js/promise"),v=o(x),m=R("babel-runtime/regenerator"),f=o(m),d=R("babel-runtime/core-js/object/assign"),l=o(d);function o(k){return k&&k.__esModule?k:{default:k}}var n=R("debug")("ali-oss"),t=R("copy-to"),a=R("xml2js"),e=R("agentkeepalive"),u=R("merge-descriptors"),r=R("url"),s=R("is-type-of"),c=R("platform"),h=R("utility"),g=R("urllib"),A=R("./version"),b=R("bowser"),w=R("../common/signUtils"),E=R("../common/utils/isIP"),C=E.isIP,_=R("../common/client/initOptions"),T=R("../common/utils/createRequest"),S=T.createRequest,O=new e;function I(){var k=c.name,G=c.version;k&&k.toLowerCase&&k.toLowerCase()==="ie"&&G.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function F(){return location&&location.protocol==="https:"}function P(k,G){if(I(),!(this instanceof P))return new P(k,G);k&&k.inited?this.options=k:this.options=P.initOptions(k),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=g,this.agent=this.options.agent||O),this.ctx=G,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}D.exports=P,P.initOptions=function(G){G.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var M=(0,l.default)({secure:F(),useFetch:!1},G);return _(M)};var B=P.prototype;B.debug=n,u(B,R("./object")),u(B,R("../common/bucket/getBucketWebsite")),u(B,R("../common/bucket/putBucketWebsite")),u(B,R("../common/bucket/deleteBucketWebsite")),u(B,R("../common/bucket/getBucketLifecycle")),u(B,R("../common/bucket/putBucketLifecycle")),u(B,R("../common/bucket/deleteBucketLifecycle")),u(B,R("../common/bucket/putBucketVersioning")),u(B,R("../common/bucket/getBucketVersioning")),u(B,R("./managed-upload")),u(B,R("../common/multipart")),u(B,R("../common/parallel")),B.signature=function(G){return this.debug("authorization stringToSign: %s",G,"info"),w.computeSignature(this.options.accessKeySecret,G)},B.authorization=function(G,M,j,K){var z=w.buildCanonicalString(G.toUpperCase(),M,{headers:K,parameters:j});return w.authorization(this.options.accessKeyId,this.options.accessKeySecret,z)},B.request=function(G){var M,j,K,z,V,Q;return f.default.async(function(te){for(;;)switch(te.prev=te.next){case 0:return M=S.call(this,G),this.options.useFetch||(M.params.mode="disable-fetch"),j=void 0,K=void 0,z=!!G.stream,te.prev=5,te.next=8,f.default.awrap(this.urllib.request(M.url,M.params));case 8:j=te.sent,this.debug("response %s %s, got %s, headers: %j",G.method,M.url,j.status,j.headers,"info"),te.next=15;break;case 12:te.prev=12,te.t0=te.catch(5),K=te.t0;case 15:if(V=void 0,!(j&&G.successStatuses&&G.successStatuses.indexOf(j.status)===-1)){te.next=28;break}return te.next=19,f.default.awrap(this.requestError(j));case 19:if(V=te.sent,!(V.code==="RequestTimeTooSkewed"&&!z)){te.next=25;break}return this.options.amendTimeSkewed=+new Date(V.serverTime)-new Date,te.next=24,f.default.awrap(this.request(G));case 24:return te.abrupt("return",te.sent);case 25:V.params=G,te.next=32;break;case 28:if(!K){te.next=32;break}return te.next=31,f.default.awrap(this.requestError(K));case 31:V=te.sent;case 32:if(!V){te.next=34;break}throw V;case 34:if(!G.xmlResponse){te.next=39;break}return te.next=37,f.default.awrap(this.parseXML(j.data));case 37:Q=te.sent,j.data=Q;case 39:return te.abrupt("return",j);case 40:case"end":return te.stop()}},null,this,[[5,12]])},B._getResource=function(G){var M="/";return G.bucket&&(M+=G.bucket+"/"),G.object&&(M+=G.object),M},B._isIP=C,B._escape=function(G){return h.encodeURIComponent(G).replace(/%2F/g,"/")},B._getReqUrl=function(G){var M={};t(this.options.endpoint).to(M);var j=this._isIP(M.hostname),K=this.options.cname;G.bucket&&!K&&!j&&(M.host=G.bucket+"."+M.host);var z="/";G.bucket&&j&&(z+=G.bucket+"/"),G.object&&(z+=this._escape(G.object).replace(/\+/g,"%2B")),M.pathname=z;var V={};if(G.query&&u(V,G.query),G.subres){var Q={};s.string(G.subres)?Q[G.subres]="":s.array(G.subres)?G.subres.forEach(function(X){Q[X]=""}):Q=G.subres,u(V,Q)}return M.query=V,r.format(M)},B._getUserAgent=function(){var G=p&&p.browser?"js":"nodejs",M="aliyun-sdk-"+G+"/"+A.version,j=c.description;return!j&&p&&(j="Node.js "+p.version.slice(1)+" on "+p.platform+" "+p.arch),this._checkUserAgent(M+" "+j)},B._checkUserAgent=function(G){var M=G.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return M},B.checkBrowserAndVersion=function(G,M){return b.name===G&&b.version.split(".")[0]===M},B.parseXML=function(G){return new v.default(function(M,j){y.isBuffer(G)&&(G=G.toString()),a.parseString(G,{explicitRoot:!1,explicitArray:!1},function(K,z){K?j(K):M(z)})})},B.requestError=function(G){var M,j,K,z;return f.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(M=null,!(!G.data||!G.data.length)){Q.next=5;break}G.status===-1||G.status===-2?(M=new Error(G.message),M.name=G.name,M.status=G.status,M.code=G.name):(G.status===404?(M=new Error("Object not exists"),M.name="NoSuchKeyError",M.status=404,M.code="NoSuchKey"):G.status===412?(M=new Error("Pre condition failed"),M.name="PreconditionFailedError",M.status=412,M.code="PreconditionFailed"):(M=new Error("Unknow error, status: "+G.status),M.name="UnknowError",M.status=G.status),M.requestId=G.headers["x-oss-request-id"],M.host=""),Q.next=33;break;case 5:return j=String(G.data),this.debug("request response error data: %s",j,"error"),K=void 0,Q.prev=8,Q.next=11,f.default.awrap(this.parseXML(j));case 11:if(Q.t0=Q.sent,Q.t0){Q.next=14;break}Q.t0={};case 14:K=Q.t0,Q.next=24;break;case 17:return Q.prev=17,Q.t1=Q.catch(8),this.debug(j,"error"),Q.t1.message+=`
|
|
|
raw xml: `+j,Q.t1.status=G.status,Q.t1.requestId=G.headers["x-oss-request-id"],Q.abrupt("return",Q.t1);case 24:z=K.Message||"unknow request error, status: "+G.status,K.Condition&&(z+=" (condition: "+K.Condition+")"),M=new Error(z),M.name=K.Code?K.Code+"Error":"UnknowError",M.status=G.status,M.code=K.Code,M.requestId=K.RequestId,M.hostId=K.HostId,M.serverTime=K.ServerTime;case 33:return this.debug("generate error %j",M,"error"),Q.abrupt("return",M);case 35:case"end":return Q.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:R("../../node_modules/is-buffer/index.js")},R("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(R,D,i){(function(y){"use strict";var p=R("babel-runtime/core-js/array/from"),x=l(p),v=R("babel-runtime/core-js/promise"),m=l(v),f=R("babel-runtime/regenerator"),d=l(f);function l(w){return w&&w.__esModule?w:{default:w}}var o=R("is-type-of"),n=R("util"),t=R("path"),a=R("mime"),e=R("copy-to"),u=R("../common/utils/isBlob"),r=u.isBlob,s=R("../common/utils/isFile"),c=s.isFile,h=i;h.multipartUpload=function(E,C,_){var T,S,O,I,F,P,B,k,G;return d.default.async(function(j){for(;;)switch(j.prev=j.next){case 0:if(this.resetCancelFlag(),_=_||{},!(_.checkpoint&&_.checkpoint.uploadId)){j.next=6;break}return j.next=5,d.default.awrap(this._resumeMultipart(_.checkpoint,_));case 5:return j.abrupt("return",j.sent);case 6:return T=100*1024,_.mime||(c(C)?_.mime=a.getType(t.extname(C.name)):r(C)?_.mime=C.type:_.mime=a.getType(t.extname(C))),_.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),j.next=12,d.default.awrap(this._getFileSize(C));case 12:if(S=j.sent,!(S<T)){j.next=25;break}return O=this._createStream(C,0,S),_.contentLength=S,j.next=18,d.default.awrap(this.putStream(E,O,_));case 18:if(I=j.sent,!(_&&_.progress)){j.next=22;break}return j.next=22,d.default.awrap(_.progress(1));case 22:return F={res:I.res,bucket:this.options.bucket,name:E,etag:I.res.headers.etag},(_.headers&&_.headers["x-oss-callback"]||_.callback)&&(F.data=I.data),j.abrupt("return",F);case 25:if(!(_.partSize&&!(parseInt(_.partSize,10)===_.partSize))){j.next=27;break}throw new Error("partSize must be int number");case 27:if(!(_.partSize&&_.partSize<T)){j.next=29;break}throw new Error("partSize must not be smaller than "+T);case 29:return j.next=31,d.default.awrap(this.initMultipartUpload(E,_));case 31:if(P=j.sent,B=P.uploadId,k=this._getPartSize(S,_.partSize),G={file:C,name:E,fileSize:S,partSize:k,uploadId:B,doneParts:[]},!(_&&_.progress)){j.next=38;break}return j.next=38,d.default.awrap(_.progress(0,G,P.res));case 38:return j.next=40,d.default.awrap(this._resumeMultipart(G,_));case 40:return j.abrupt("return",j.sent);case 41:case"end":return j.stop()}},null,this)},h._resumeMultipart=function(E,C){var _,T,S,O,I,F,P,B,k,G,M,j,K,z,V,Q,X,te;return d.default.async(function(le){for(;;)switch(le.prev=le.next){case 0:if(_=this,!this.isCancel()){le.next=3;break}throw this._makeCancelEvent();case 3:return T=E.file,S=E.fileSize,O=E.partSize,I=E.uploadId,F=E.doneParts,P=E.name,B=[],F.length>0&&e(F).to(B),k=this._divideParts(S,O),G=k.length,M=!1,j=function(Se,Re){var Pe=this;return new m.default(function(Ge,ct){var Ue,ae,lt,pe;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=k[Re-1],ae={stream:Se._createStream(T,Ue.start,Ue.end),size:Ue.end-Ue.start},Y.next=6,d.default.awrap(Se._uploadPart(P,I,Re,ae));case 6:if(lt=Y.sent,!(!Se.isCancel()&&!M)){Y.next=15;break}if(E.doneParts.push({number:Re,etag:lt.res.headers.etag}),!C.progress){Y.next=12;break}return Y.next=12,d.default.awrap(C.progress(F.length/G,E,lt.res));case 12:Ge({number:Re,etag:lt.res.headers.etag}),Y.next=16;break;case 15:Ge();case 16:Y.next=19;break;case 18:Ge();case 19:Y.next=30;break;case 21:Y.prev=21,Y.t0=Y.catch(0),pe=new Error,pe.name=Y.t0.name,pe.message=Y.t0.message,pe.stack=Y.t0.stack,pe.partNum=Re,e(Y.t0).to(pe),ct(pe);case 30:case"end":return Y.stop()}},null,Pe,[[0,21]])})},K=(0,x.default)(new Array(G),function(re,Se){return Se+1}),z=B.map(function(re){return re.number}),V=K.filter(function(re){return z.indexOf(re)<0}),Q=5,X=C.parallel||Q,le.next=17,d.default.awrap(this._parallel(V,X,function(re){return new m.default(function(Se,Re){j(_,re).then(function(Pe){Pe&&B.push(Pe),Se()}).catch(function(Pe){Re(Pe)})})}));case 17:if(te=le.sent,M=!0,!this.isCancel()){le.next=22;break}throw j=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(P,I,B,C));case 27:return le.abrupt("return",le.sent);case 28:case"end":return le.stop()}},null,this)},h._getFileSize=function(E){return d.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(!o.buffer(E)){_.next=4;break}return _.abrupt("return",E.length);case 4:if(!(r(E)||c(E))){_.next=6;break}return _.abrupt("return",E.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return _.stop()}},null,this)};var g=R("stream"),A=g.Readable;function b(w,E){if(!(this instanceof b))return new b(w,E);A.call(this,E),this.file=w,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}n.inherits(b,A),b.prototype.readFileAndPush=function(E){if(this.fileBuffer)for(var C=!0;C&&this.fileBuffer&&this.start<this.fileBuffer.length;){var _=this.start,T=_+E;T=T>this.fileBuffer.length?this.fileBuffer.length:T,this.start=T,C=this.push(this.fileBuffer.slice(_,T))}},b.prototype._read=function(E){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var C=16*1024;E=E||C;var _=this;this.reader.onload=function(S){_.fileBuffer=y.from(new Uint8Array(S.target.result)),_.file=null,_.readFileAndPush(E)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(E)},h._createStream=function(E,C,_){if(r(E)||c(E))return new b(E.slice(C,_));throw new Error("_createStream requires File/Blob.")},h._getPartSize=function(E,C){var _=10*1e3,T=1024*1024;return C?Math.max(Math.ceil(E/_),C):T},h._divideParts=function(E,C){for(var _=Math.ceil(E/C),T=[],S=0;S<_;S++){var O=C*S,I=Math.min(O+C,E);T.push({start:O,end:I})}return T}}).call(this,R("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(R,D,i){"use strict";var y=R("babel-runtime/core-js/promise"),p=o(y),x=R("babel-runtime/core-js/object/keys"),v=o(x),m=R("babel-runtime/core-js/object/assign"),f=o(m),d=R("babel-runtime/regenerator"),l=o(d);function o(_){return _&&_.__esModule?_:{default:_}}var n=R("utility"),t=R("fs"),a=R("is-type-of"),e=R("url"),u=R("copy-to"),r=R("path"),s=R("mime"),c=R("../common/callback"),h=R("../common/signUtils"),g=R("merge-descriptors"),A=R("../common/utils/isBlob"),b=A.isBlob,w=R("../common/utils/isFile"),E=w.isFile,C=i;C.append=function(T,S,O){var I;return l.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:return O=O||{},O.position===void 0&&(O.position="0"),O.subres={append:"",position:O.position},O.method="POST",P.next=6,l.default.awrap(this.put(T,S,O));case 6:return I=P.sent,I.nextAppendPosition=I.res.headers["x-oss-next-append-position"],P.abrupt("return",I);case 9:case"end":return P.stop()}},null,this)},C.put=function(T,S,O){var I,F,P,B,k,G,M;return l.default.async(function(K){for(;;)switch(K.prev=K.next){case 0:if(I=void 0,O=O||{},T=this._objectName(T),!a.buffer(S)){K.next=7;break}I=S,K.next=33;break;case 7:if(!(b(S)||E(S))){K.next=32;break}return O.mime||(E(S)?O.mime=s.getType(r.extname(S.name)):O.mime=S.type),F=this._createStream(S,0,S.size),K.next=12,l.default.awrap(this._getFileSize(S));case 12:return O.contentLength=K.sent,K.prev=13,K.next=16,l.default.awrap(this.putStream(T,F,O));case 16:return P=K.sent,K.abrupt("return",P);case 20:if(K.prev=20,K.t0=K.catch(13),!(K.t0.code==="RequestTimeTooSkewed")){K.next=29;break}return this.options.amendTimeSkewed=+new Date(K.t0.serverTime)-new Date,K.next=26,l.default.awrap(this.put(T,S,O));case 26:return K.abrupt("return",K.sent);case 29:throw K.t0;case 30:K.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return O.headers=O.headers||{},this._convertMetaToHeaders(O.meta,O.headers),B=O.method||"PUT",k=this._objectRequestParams(B,T,O),c.encodeCallback(k,O),k.mime=O.mime,k.content=I,k.successStatuses=[200],K.next=43,l.default.awrap(this.request(k));case 43:return G=K.sent,M={name:T,url:this._objectUrl(T),res:G.res},k.headers&&k.headers["x-oss-callback"]&&(M.data=JSON.parse(G.data.toString())),K.abrupt("return",M);case 47:case"end":return K.stop()}},null,this,[[13,20]])},C.putStream=function(T,S,O){var I,F,P,B;return l.default.async(function(G){for(;;)switch(G.prev=G.next){case 0:return O=O||{},O.headers=O.headers||{},T=this._objectName(T),O.contentLength?O.headers["Content-Length"]=O.contentLength:O.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(O.meta,O.headers),I=O.method||"PUT",F=this._objectRequestParams(I,T,O),c.encodeCallback(F,O),F.mime=O.mime,F.stream=S,F.successStatuses=[200],G.next=13,l.default.awrap(this.request(F));case 13:return P=G.sent,B={name:T,url:this._objectUrl(T),res:P.res},F.headers&&F.headers["x-oss-callback"]&&(B.data=JSON.parse(P.data.toString())),G.abrupt("return",B);case 17:case"end":return G.stop()}},null,this)},g(C,R("../common/object/copyObject")),g(C,R("../common/object/getObjectTagging")),g(C,R("../common/object/putObjectTagging")),g(C,R("../common/object/deleteObjectTagging")),g(C,R("../common/image")),g(C,R("../common/object/getBucketVersions")),g(C,R("../common/object/getACL")),g(C,R("../common/object/putACL")),g(C,R("../common/object/head")),g(C,R("../common/object/delete")),g(C,R("../common/object/get")),g(C,R("../common/object/putSymlink")),g(C,R("../common/object/getSymlink")),g(C,R("../common/object/deleteMulti")),g(C,R("../common/object/getObjectMeta")),C.putMeta=function(T,S,O){var I;return l.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,l.default.awrap(this.copy(T,T,{meta:S||{},timeout:O&&O.timeout,ctx:O&&O.ctx}));case 2:return I=P.sent,P.abrupt("return",I);case 4:case"end":return P.stop()}},null,this)},C.list=function(T,S){var O,I,F,P,B;return l.default.async(function(G){for(;;)switch(G.prev=G.next){case 0:return O=this._objectRequestParams("GET","",S),O.query=T,O.xmlResponse=!0,O.successStatuses=[200],G.next=6,l.default.awrap(this.request(O));case 6:return I=G.sent,F=I.data.Contents,P=this,F&&(Array.isArray(F)||(F=[F]),F=F.map(function(M){return{name:M.Key,url:P._objectUrl(M.Key),lastModified:M.LastModified,etag:M.ETag,type:M.Type,size:Number(M.Size),storageClass:M.StorageClass,owner:{id:M.Owner.ID,displayName:M.Owner.DisplayName}}})),B=I.data.CommonPrefixes||null,B&&(Array.isArray(B)||(B=[B]),B=B.map(function(M){return M.Prefix})),G.abrupt("return",{res:I.res,objects:F,prefixes:B,nextMarker:I.data.NextMarker||null,isTruncated:I.data.IsTruncated==="true"});case 13:case"end":return G.stop()}},null,this)},C.restore=function(T,S){var O,I;return l.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:return S=S||{},S.subres=(0,f.default)({restore:""},S.subres),S.versionId&&(S.subres.versionId=S.versionId),O=this._objectRequestParams("POST",T,S),O.successStatuses=[202],P.next=7,l.default.awrap(this.request(O));case 7:return I=P.sent,P.abrupt("return",{res:I.res});case 9:case"end":return P.stop()}},null,this)},C.signatureUrl=function(T,S){S=S||{},T=this._objectName(T),S.method=S.method||"GET";var O=n.timestamp()+(S.expires||1800),I={bucket:this.options.bucket,object:T},F=this._getResource(I);this.options.stsToken&&(S["security-token"]=this.options.stsToken);var P=h._signatureForURL(this.options.accessKeySecret,S,F,O),B=e.parse(this._getReqUrl(I));return B.query={OSSAccessKeyId:this.options.accessKeyId,Expires:O,Signature:P.Signature},u(P.subResource).to(B.query),B.format()},C.getObjectUrl=function(T,S){return S?S[S.length-1]!=="/"&&(S+="/"):S=this.options.endpoint.format(),S+this._escape(this._objectName(T))},C._objectUrl=function(T){return this._getReqUrl({bucket:this.options.bucket,object:T})},C.generateObjectUrl=function(_,T){if(T)T[T.length-1]!=="/"&&(T+="/");else{T=this.options.endpoint.format();var S=e.parse(T),O=this.options.bucket;S.hostname=O+"."+S.hostname,S.host=O+"."+S.host,T=S.format()}return T+this._escape(this._objectName(_))},C._objectRequestParams=function(T,S,O){if(!this.options.bucket)throw new Error("Please create a bucket first");O=O||{},S=this._objectName(S);var I={object:S,bucket:this.options.bucket,method:T,subres:O&&O.subres,timeout:O&&O.timeout,ctx:O&&O.ctx};return O.headers&&(I.headers={},u(O.headers).to(I.headers)),I},C._objectName=function(T){return T.replace(/^\/+/,"")},C._convertMetaToHeaders=function(T,S){if(!T)return;(0,v.default)(T).forEach(function(O){S["x-oss-meta-"+O]=T[O]})},C._deleteFileSafe=function(T){var S=this;return new p.default(function(O){t.exists(T,function(I){I?t.unlink(T,function(F){F&&S.debug("unlink %j error: %s",T,F,"error"),O()}):O()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(R,D,i){"use strict";i.version="6.10.0"},{}],6:[function(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=x(y);function x(d){return d&&d.__esModule?d:{default:d}}var v=R("../utils/checkBucketName"),m=v.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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=x(y);function x(d){return d&&d.__esModule?d:{default:d}}var v=R("../utils/checkBucketName"),m=v.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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var v=R("../utils/checkBucketName"),m=v.checkBucketName,f=R("../utils/isArray"),d=f.isArray,l=R("../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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=x(y);function x(d){return d&&d.__esModule?d:{default:d}}var v=R("../utils/checkBucketName"),m=v.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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=x(y);function x(o){return o&&o.__esModule?o:{default:o}}var v=R("../utils/checkBucketName"),m=v.checkBucketName,f=R("../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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=x(y);function x(E){return E&&E.__esModule?E:{default:E}}var v=R("../utils/checkBucketName"),m=v.checkBucketName,f=R("../utils/isArray"),d=f.isArray,l=R("../utils/deepCopy"),o=l.deepCopy,n=R("../utils/isObject"),t=n.isObject,a=R("../utils/obj2xml"),e=a.obj2xml,u=R("../utils/checkObjectTag"),r=u.checkObjectTag,s=R("../utils/getStrBytesCount"),c=s.getStrBytesCount,h=i;h.putBucketLifecycle=function(C,_,T){var S,O,I,F,P;return p.default.async(function(k){for(;;)switch(k.prev=k.next){case 0:if(m(C),d(_)){k.next=3;break}throw new Error("rules must be Array");case 3:return S=this._bucketRequestParams("PUT",C,"lifecycle",T),O=[],I={LifecycleConfiguration:{Rule:O}},_.forEach(function(G){g(G),w(G),G.id&&(G.ID=G.id,delete G.id),O.push(G)}),F=e(I,{headers:!0,firstUpperCase:!0}),S.content=F,S.mime="xml",S.successStatuses=[200],k.next=13,p.default.awrap(this.request(S));case 13:return P=k.sent,k.abrupt("return",{res:P.res});case 15:case"end":return k.stop()}},null,this)};function g(E){E.days&&(E.expiration={days:E.days}),E.date&&(E.expiration={createdBeforeDate:E.date})}function A(E,C){var _=E.days,T=E.createdBeforeDate;if(!_&&!T)throw new Error(C+" must includes days or createdBeforeDate");if(_&&!/^[1-9][0-9]*$/.test(_))throw new Error("days must be a positive integer");if(T&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(T))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function b(E){if(!d(E)&&!t(E))throw new Error("tag must be Object or Array");E=t(E)?[E]:E;var C={},_=o(E);_.forEach(function(T){C[T.key]=T.value}),r(C)}function w(E){if(E.id&&c(E.id)>255)throw new Error("ID is composed of 255 bytes at most");if(E.prefix===""||E.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(E.status))throw new Error("Status must be Enabled or Disabled");if(E.transition){if(!["IA","Archive"].includes(E.transition.storageClass))throw new Error("StorageClass must be IA or Archive");A(E.transition,"Transition")}if(E.expiration){if(!E.expiration.expiredObjectDeleteMarker)A(E.expiration,"Expiration");else if(E.expiration.days||E.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(E.abortMultipartUpload&&A(E.abortMultipartUpload,"AbortMultipartUpload"),!E.expiration&&!E.abortMultipartUpload&&!E.transition&&!E.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(E.tag){if(E.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");b(E.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=x(y);function x(o){return o&&o.__esModule?o:{default:o}}var v=R("../utils/checkBucketName"),m=v.checkBucketName,f=R("../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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var v=R("../utils/checkBucketName"),m=v.checkBucketName,f=R("../utils/obj2xml"),d=f.obj2xml,l=R("../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(R,D,i){(function(y){"use strict";var p=R("babel-runtime/core-js/object/keys"),x=f(p),v=R("babel-runtime/core-js/json/stringify"),m=f(v);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,x.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,R("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/assign"),p=x(y);function x(n){return n&&n.__esModule?n:{default:n}}var v=R("humanize-ms"),m=R("url"),f=R("../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=v(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(R,D,i){"use strict";var y=R("merge-descriptors"),p=i;y(p,R("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var v=R("../utils/checkBucketName"),m=v.checkBucketName,f=R("querystring"),d=R("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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=x(y);function x(o){return o&&o.__esModule?o:{default:o}}var v=R("copy-to"),m=R("./callback"),f=R("./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={},v(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={},v(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={},v(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={},v(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,A,b;return p.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:for(u=a.concat().sort(function(C,_){return C.number-_.number}).filter(function(C,_,T){return!_||C.number!==T[_-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],E.next=17,p.default.awrap(this.request(g));case 17:return A=E.sent,b={res:A.res,bucket:g.bucket,name:n,etag:A.res.headers.etag},g.headers&&g.headers["x-oss-callback"]&&(b.data=JSON.parse(A.data.toString())),E.abrupt("return",b);case 21:case"end":return E.stop()}},null,this)},l._uploadPart=function(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={},v(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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=d(y),x=R("babel-runtime/core-js/object/keys"),v=d(x),m=R("babel-runtime/helpers/typeof"),f=d(m);function d(t){return t&&t.__esModule?t:{default:t}}var l=R("../utils/checkBucketName"),o=l.checkBucketName,n=i;n.copy=function(a,e,u,r){var s,c,h;return p.default.async(function(A){for(;;)switch(A.prev=A.next){case 0:return(typeof u=="undefined"?"undefined":(0,f.default)(u))==="object"&&(r=u),r=r||{},r.headers=r.headers||{},(0,v.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],A.next=14,p.default.awrap(this.request(s));case 14:return c=A.sent,h=c.data,h&&(h={etag:h.ETag,lastModified:h.LastModified}),A.abrupt("return",{data:h,res:c.res});case 18:case"end":return A.stop()}},null,this)},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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);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,v.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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);function m(n){return n&&n.__esModule?n:{default:n}}var f=R("utility"),d=R("../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,A,b,w,E,C;return p.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:if(e=[],!(!t||!t.length)){T.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}},A=l(g,{headers:!0}),a.subres=(0,v.default)({delete:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),b=this._objectRequestParams("POST","",a),b.mime="xml",b.content=A,b.xmlResponse=!0,b.successStatuses=[200],T.next=15,p.default.awrap(this.request(b));case 15:return w=T.sent,E=w.data,C=E&&E.Deleted||null,C&&(Array.isArray(C)||(C=[C])),T.abrupt("return",{res:w.res,deleted:C||[]});case 20:case"end":return T.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);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,v.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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);function m(o){return o&&o.__esModule?o:{default:o}}var f=R("fs"),d=R("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,v.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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);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,v.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(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/keys"),p=d(y),x=R("babel-runtime/regenerator"),v=d(x),m=R("babel-runtime/core-js/object/assign"),f=d(m);function d(s){return s&&s.__esModule?s:{default:s}}var l=i,o=R("../utils/isObject"),n=o.isObject,t=R("../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,A,b,w,E;return v.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(!(s.versionIdMarker&&s.keyMarker===void 0)){_.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return c.subres=(0,f.default)({versions:""},c.subres),c.versionId&&(c.subres.versionId=c.versionId),h=this._objectRequestParams("GET","",c),h.xmlResponse=!0,h.successStatuses=[200],h.query=r(s),_.next=10,v.default.awrap(this.request(h));case 10:return g=_.sent,A=g.data.Version||[],b=g.data.DeleteMarker||[],w=this,A&&(Array.isArray(A)||(A=[A]),A=A.map(function(T){return{name:T.Key,url:w._objectUrl(T.Key),lastModified:T.LastModified,isLatest:T.IsLatest==="true",versionId:T.VersionId,etag:T.ETag,type:T.Type,size:Number(T.Size),storageClass:T.StorageClass,owner:{id:T.Owner.ID,displayName:T.Owner.DisplayName}}})),b&&(a(b)||(b=[b]),b=b.map(function(T){return{name:T.Key,lastModified:T.LastModified,versionId:T.VersionId,owner:{id:T.Owner.ID,displayName:T.Owner.DisplayName}}})),E=g.data.CommonPrefixes||null,E&&(a(E)||(E=[E]),E=E.map(function(T){return T.Prefix})),_.abrupt("return",{res:g.res,objects:A,deleteMarker:b,prefixes:E,nextMarker:g.data.NextMarker||null,NextVersionIdMarker:g.data.NextVersionIdMarker||null,isTruncated:g.data.IsTruncated==="true"});case 19:case"end":return _.stop()}},null,this)}function u(s){return s.replace(/([A-Z])/g,"-$1").toLowerCase()}function r(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c={};return 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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);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,v.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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);function m(o){return o&&o.__esModule?o:{default:o}}var f=i,d=R("../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,v.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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);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,v.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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=d(y),x=R("babel-runtime/core-js/object/keys"),v=d(x),m=R("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,v.default)(e.headers).forEach(function(c){c.indexOf("x-oss-meta-")===0&&(u.meta||(u.meta={}),u.meta[c.substring(11)]=e.headers[c])}),s.abrupt("return",u);case 10:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);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,v.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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=d(y),x=R("babel-runtime/core-js/object/keys"),v=d(x),m=R("babel-runtime/core-js/object/assign"),f=d(m);function d(e){return e&&e.__esModule?e:{default:e}}var l=R("../utils/obj2xml"),o=l.obj2xml,n=R("../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,v.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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=m(y),x=R("babel-runtime/core-js/object/assign"),v=m(x);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,v.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(R,D,i){"use strict";var y=R("babel-runtime/regenerator"),p=m(y),x=R("babel-runtime/core-js/promise"),v=m(x);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(v.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 v.default(function(a){var e=[];if(o<=0||!l){a(e);return}function u(E){return function(){if(E===null)throw new Error("Callback was already called.");var C=E;E=null;for(var _=arguments.length,T=Array(_),S=0;S<_;S++)T[S]=arguments[S];C.apply(this,T)}}function r(E){var C=-1,_=E.length;return function(){return++C<_&&!t.isCancel()?{value:E[C],key:C}:null}}var s=r(l),c=!1,h=0,g=!1;function A(E,C){h-=1,E?(c=!0,e.push(E),a(e)):C==={}||c&&h<=0?(c=!0,a(e)):g||(t.isCancel()?a(e):w())}function b(E,C){n(E).then(function(_){C(null,_)}).catch(function(_){C(_)})}function w(){for(g=!0;h<o&&!c&&!t.isCancel();){var E=s();if(E===null||e.length>0){c=!0,h<=0&&a(e);return}h+=1,b(E.value,u(A))}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(R,D,i){(function(y){"use strict";var p=R("babel-runtime/core-js/json/stringify"),x=f(p),v=R("babel-runtime/core-js/object/keys"),m=f(v);function f(o){return o&&o.__esModule?o:{default:o}}var d=R("./../../shims/crypto/crypto.js"),l=R("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 A=g.toLowerCase();A.indexOf(r)===0&&(c[A]=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 E="response-"+w.toLowerCase();s[E]=t.response[w]}),(0,m.default)(t).forEach(function(w){var E=w.toLowerCase(),C=t[w];E.indexOf("x-oss-")===0?u[E]=C:(E.indexOf("content-md5")===0||E.indexOf("content-type")===0)&&(u[w]=C)}),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,x.default)(g)).toString("base64"),t.callback.customValue){var A={};(0,m.default)(t.callback.customValue).forEach(function(w){A["x:"+w]=t.callback.customValue[w]}),s["callback-var"]=y.from((0,x.default)(A)).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,R("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(R,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.checkBucketName=void 0,i.checkBucketName=function(y,p){var x=p?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!x.test(y))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/entries"),p=x(y);function x(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(i,"__esModule",{value:!0}),i.checkObjectTag=void 0;var v=R("./checkValid"),m=v.checkValid,f=R("./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(R,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.checkValid=void 0;function y(p,x){x.forEach(function(v){if(v.validator)v.validator(p);else if(v.pattern&&!v.pattern.test(p))throw new Error(v.msg)})}i.checkValid=y},{}],38:[function(R,D,i){(function(y){"use strict";var p=R("babel-runtime/core-js/object/assign"),x=v(p);function v(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(i,"__esModule",{value:!0}),i.createRequest=void 0;var m=R("./../../../shims/crypto/crypto.js"),f=R("debug")("ali-oss"),d=R("mime"),l=R("dateformat"),o=R("copy-to"),n=R("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,x.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,A={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&&(A.agent=this.agent),this.httpsAgent&&(A.httpsAgent=this.httpsAgent),{url:h,params:A}}i.createRequest=e}).call(this,R("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/keys"),p=m(y),x=R("babel-runtime/helpers/typeof"),v=m(x);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,v.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(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/keys"),p=m(y),x=R("babel-runtime/helpers/typeof"),v=m(x);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,v.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(R,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getStrBytesCount=void 0;function y(p){for(var x=0,v=0;v<p.length;v++){var m=p.charAt(v);/^[\u00-\uff]$/.test(m)?x+=1:x+=2}return x}i.getStrBytesCount=y},{}],42:[function(R,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(R,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(R,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(R,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}$/,x=/^\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)||x.test(y)}},{}],46:[function(R,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(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/keys"),p=x(y);function x(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(i,"__esModule",{value:!0}),i.obj2xml=void 0;var v=R("./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=v.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(R,D,i){D.exports=y,D.exports.HttpsAgent=y;function y(){}},{}],49:[function(R,D,i){D.exports=R("./register")().Promise},{"./register":51}],50:[function(R,D,i){"use strict";var y="@@any-promise/REGISTRATION",p=null;D.exports=function(x,v){return function(f,d){f=f||null,d=d||{};var l=d.global!==!1;if(p===null&&l&&(p=x[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=v(f),l&&(x[y]=p)),p}}},{}],51:[function(R,D,i){"use strict";D.exports=R("./loader")(window,y);function y(){if(typeof window.Promise=="undefined")throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}},{"./loader":50}],52:[function(R,D,i){D.exports={default:R("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(R,D,i){D.exports={default:R("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(R,D,i){D.exports={default:R("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(R,D,i){D.exports={default:R("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(R,D,i){D.exports={default:R("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(R,D,i){D.exports={default:R("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(R,D,i){D.exports={default:R("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(R,D,i){D.exports={default:R("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(R,D,i){D.exports={default:R("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(R,D,i){D.exports={default:R("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(R,D,i){D.exports={default:R("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(R,D,i){D.exports={default:R("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(R,D,i){D.exports={default:R("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(R,D,i){D.exports={default:R("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(R,D,i){D.exports={default:R("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(R,D,i){"use strict";i.__esModule=!0;var y=R("../core-js/symbol/iterator"),p=f(y),x=R("../core-js/symbol"),v=f(x),m=typeof v.default=="function"&&typeof p.default=="symbol"?function(d){return typeof d}:function(d){return d&&typeof v.default=="function"&&d.constructor===v.default&&d!==v.default.prototype?"symbol":typeof d};function f(d){return d&&d.__esModule?d:{default:d}}i.default=typeof v.default=="function"&&m(p.default)==="symbol"?function(d){return typeof d=="undefined"?"undefined":m(d)}:function(d){return d&&typeof v.default=="function"&&d.constructor===v.default&&d!==v.default.prototype?"symbol":typeof d=="undefined"?"undefined":m(d)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(R,D,i){D.exports=R("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(R,D,i){"use strict";i.byteLength=l,i.toByteArray=n,i.fromByteArray=e;for(var y=[],p=[],x=typeof Uint8Array!="undefined"?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,f=v.length;m<f;++m)y[m]=v[m],p[v.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 x(o(u,c,h)),A=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[A++]=r>>16&255,g[A++]=r>>8&255,g[A++]=r&255;return h===2&&(r=p[u.charCodeAt(w)]<<2|p[u.charCodeAt(w+1)]>>4,g[A++]=r&255),h===1&&(r=p[u.charCodeAt(w)]<<10|p[u.charCodeAt(w+1)]<<4|p[u.charCodeAt(w+2)]>>2,g[A++]=r>>8&255,g[A++]=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,A=0,b=s-c;A<b;A+=g)h.push(a(u,A,A+g>b?b:A+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(R,D,i){/*!
|
|
|
* Bowser - a browser detector
|
|
|
* https://github.com/ded/bowser
|
|
|
* MIT License | (c) Dustin Diaz 2015
|
|
|
*/!function(y,p,x){typeof D!="undefined"&&D.exports?D.exports=x():typeof define=="function"&&define.amd?define(p,x):y[p]=x()}(this,"bowser",function(){var y=!0;function p(o){function n(j){var K=o.match(j);return K&&K.length>1&&K[1]||""}function t(j){var K=o.match(j);return K&&K.length>1&&K[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),A=/tizen/i.test(o),b=/(web|hpw)(o|0)s/i.test(o),w=/windows phone/i.test(o),E=/SamsungBrowser/i.test(o),C=!w&&/windows/i.test(o),_=!a&&!h&&/macintosh/i.test(o),T=!u&&!g&&!A&&!b&&/linux/i.test(o),S=t(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),O=n(/version\/(\d+(\.\d+)?)/i),I=/tablet/i.test(o)&&!/tablet pc/i.test(o),F=!I&&/[^-]mobi/i.test(o),P=/xbox/i.test(o),B;/opera/i.test(o)?B={name:"Opera",opera:y,version:O||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)||O}:/SamsungBrowser/i.test(o)?B={name:"Samsung Internet for Android",samsungBrowser:y,version:O||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:O||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:O||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},S?(B.msedge=y,B.version=S):(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:S}:/vivaldi/i.test(o)?B={name:"Vivaldi",vivaldi:y,version:n(/vivaldi\/(\d+(\.\d+)?)/i)||O}: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:O||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:b?(B={name:"WebOS",osname:"WebOS",webos:y,version:O||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)}:A?B={name:"Tizen",osname:"Tizen",tizen:y,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||O}:/qupzilla/i.test(o)?B={name:"QupZilla",qupzilla:y,version:n(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||O}:/chromium/i.test(o)?B={name:"Chromium",chromium:y,version:n(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||O}:/chrome|crios|crmo/i.test(o)?B={name:"Chrome",chrome:y,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:u?B={name:"Android",version:O}:/safari|applewebkit/i.test(o)?(B={name:"Safari",safari:y},O&&(B.version=O)):a?(B={name:a=="iphone"?"iPhone":a=="ipad"?"iPad":"iPod"},O&&(B.version=O)):/googlebot/i.test(o)?B={name:"Googlebot",googlebot:y,version:n(/googlebot\/(\d+(\.\d+))/i)||O}: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&&O&&(B.version=O)):!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"):_?(B.mac=y,B.osname="macOS"):P?(B.xbox=y,B.osname="Xbox"):C?(B.windows=y,B.osname="Windows"):T&&(B.linux=y,B.osname="Linux");function k(j){switch(j){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var G="";B.windows?G=k(n(/Windows ((NT|XP)( \d\d?.\d)?)/i)):B.windowsphone?G=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):B.mac?(G=n(/Mac OS X (\d+([_\.\s]\d+)*)/i),G=G.replace(/[_\s]/g,".")):a?(G=n(/os (\d+([_\s]\d+)*) like mac os x/i),G=G.replace(/[_\s]/g,".")):u?G=n(/android[ \/-](\d+(\.\d+)*)/i):B.webos?G=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):B.blackberry?G=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):B.bada?G=n(/bada\/(\d+(\.\d+)*)/i):B.tizen&&(G=n(/tizen[\/\s](\d+(\.\d+)*)/i)),G&&(B.osversion=G);var M=!B.windows&&G.split(".")[0];return I||s||a=="ipad"||u&&(M==3||M>=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 x=p(typeof navigator!="undefined"&&navigator.userAgent||"");x.test=function(o){for(var n=0;n<o.length;++n){var t=o[n];if(typeof t=="string"&&t in x)return!0}return!1};function v(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(v(o[0]),v(o[1])),t=m(o,function(a){var e=n-v(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=x;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 x.isUnsupportedBrowser=d,x.compareVersions=f,x.check=l,x._detect=p,x.detect=p,x})},{}],71:[function(R,D,i){},{}],72:[function(R,D,i){var y=R("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 x(l){if(l&&!p(l))throw new Error("Unknown encoding: "+l)}var v=i.StringDecoder=function(l){this.encoding=(l||"utf8").toLowerCase().replace(/[-_]/,""),x(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};v.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},v.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},v.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(R,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 x=R("base64-js"),v=R("ieee754"),m=R("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 pe=new Uint8Array(1);return pe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},pe.foo()===42&&typeof pe.subarray=="function"&&pe.subarray(1,1).byteLength===0}catch(J){return!1}}function d(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(pe,J){if(d()<J)throw new RangeError("Invalid typed array length");return p.TYPED_ARRAY_SUPPORT?(pe=new Uint8Array(J),pe.__proto__=p.prototype):(pe===null&&(pe=new p(J)),pe.length=J),pe}function p(pe,J,Y){if(!p.TYPED_ARRAY_SUPPORT&&!(this instanceof p))return new p(pe,J,Y);if(typeof pe=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return a(this,pe)}return o(this,pe,J,Y)}p.poolSize=8192,p._augment=function(pe){return pe.__proto__=p.prototype,pe};function o(pe,J,Y,ee){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?r(pe,J,Y,ee):typeof J=="string"?e(pe,J,Y):s(pe,J)}p.from=function(pe,J,Y){return o(null,pe,J,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(pe){if(typeof pe!="number")throw new TypeError('"size" argument must be a number');if(pe<0)throw new RangeError('"size" argument must not be negative')}function t(pe,J,Y,ee){return n(J),J<=0?l(pe,J):Y!==void 0?typeof ee=="string"?l(pe,J).fill(Y,ee):l(pe,J).fill(Y):l(pe,J)}p.alloc=function(pe,J,Y){return t(null,pe,J,Y)};function a(pe,J){if(n(J),pe=l(pe,J<0?0:c(J)|0),!p.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<J;++Y)pe[Y]=0;return pe}p.allocUnsafe=function(pe){return a(null,pe)},p.allocUnsafeSlow=function(pe){return a(null,pe)};function e(pe,J,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!p.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var ee=g(J,Y)|0;pe=l(pe,ee);var fe=pe.write(J,Y);return fe!==ee&&(pe=pe.slice(0,fe)),pe}function u(pe,J){var Y=J.length<0?0:c(J.length)|0;pe=l(pe,Y);for(var ee=0;ee<Y;ee+=1)pe[ee]=J[ee]&255;return pe}function r(pe,J,Y,ee){if(J.byteLength,Y<0||J.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(J.byteLength<Y+(ee||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&ee===void 0?J=new Uint8Array(J):ee===void 0?J=new Uint8Array(J,Y):J=new Uint8Array(J,Y,ee),p.TYPED_ARRAY_SUPPORT?(pe=J,pe.__proto__=p.prototype):pe=u(pe,J),pe}function s(pe,J){if(p.isBuffer(J)){var Y=c(J.length)|0;return pe=l(pe,Y),pe.length===0||J.copy(pe,0,0,Y),pe}if(J){if(typeof ArrayBuffer!="undefined"&&J.buffer instanceof ArrayBuffer||"length"in J)return typeof J.length!="number"||lt(J.length)?l(pe,0):u(pe,J);if(J.type==="Buffer"&&m(J.data))return u(pe,J.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(pe){if(pe>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return pe|0}function h(pe){return+pe!=pe&&(pe=0),p.alloc(+pe)}p.isBuffer=function(J){return!!(J!=null&&J._isBuffer)},p.compare=function(J,Y){if(!p.isBuffer(J)||!p.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(J===Y)return 0;for(var ee=J.length,fe=Y.length,we=0,Ce=Math.min(ee,fe);we<Ce;++we)if(J[we]!==Y[we]){ee=J[we],fe=Y[we];break}return ee<fe?-1:fe<ee?1:0},p.isEncoding=function(J){switch(String(J).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(J,Y){if(!m(J))throw new TypeError('"list" argument must be an Array of Buffers');if(J.length===0)return p.alloc(0);var ee;if(Y===void 0)for(Y=0,ee=0;ee<J.length;++ee)Y+=J[ee].length;var fe=p.allocUnsafe(Y),we=0;for(ee=0;ee<J.length;++ee){var Ce=J[ee];if(!p.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(fe,we),we+=Ce.length}return fe};function g(pe,J){if(p.isBuffer(pe))return pe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(pe)||pe instanceof ArrayBuffer))return pe.byteLength;typeof pe!="string"&&(pe=""+pe);var Y=pe.length;if(Y===0)return 0;for(var ee=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return Je(pe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Ue(pe).length;default:if(ee)return Je(pe).length;J=(""+J).toLowerCase(),ee=!0}}p.byteLength=g;function A(pe,J,Y){var ee=!1;if((J===void 0||J<0)&&(J=0),J>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,J>>>=0,Y<=J)return"";for(pe||(pe="utf8");;)switch(pe){case"hex":return j(this,J,Y);case"utf8":case"utf-8":return P(this,J,Y);case"ascii":return G(this,J,Y);case"latin1":case"binary":return M(this,J,Y);case"base64":return F(this,J,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,J,Y);default:if(ee)throw new TypeError("Unknown encoding: "+pe);pe=(pe+"").toLowerCase(),ee=!0}}p.prototype._isBuffer=!0;function b(pe,J,Y){var ee=pe[J];pe[J]=pe[Y],pe[Y]=ee}p.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<J;Y+=2)b(this,Y,Y+1);return this},p.prototype.swap32=function(){var J=this.length;if(J%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<J;Y+=4)b(this,Y,Y+3),b(this,Y+1,Y+2);return this},p.prototype.swap64=function(){var J=this.length;if(J%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<J;Y+=8)b(this,Y,Y+7),b(this,Y+1,Y+6),b(this,Y+2,Y+5),b(this,Y+3,Y+4);return this},p.prototype.toString=function(){var J=this.length|0;return J===0?"":arguments.length===0?P(this,0,J):A.apply(this,arguments)},p.prototype.equals=function(J){if(!p.isBuffer(J))throw new TypeError("Argument must be a Buffer");return this===J?!0:p.compare(this,J)===0},p.prototype.inspect=function(){var J="",Y=i.INSPECT_MAX_BYTES;return this.length>0&&(J=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(J+=" ... ")),"<Buffer "+J+">"},p.prototype.compare=function(J,Y,ee,fe,we){if(!p.isBuffer(J))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),ee===void 0&&(ee=J?J.length:0),fe===void 0&&(fe=0),we===void 0&&(we=this.length),Y<0||ee>J.length||fe<0||we>this.length)throw new RangeError("out of range index");if(fe>=we&&Y>=ee)return 0;if(fe>=we)return-1;if(Y>=ee)return 1;if(Y>>>=0,ee>>>=0,fe>>>=0,we>>>=0,this===J)return 0;for(var Ce=we-fe,_e=ee-Y,he=Math.min(Ce,_e),ye=this.slice(fe,we),Le=J.slice(Y,ee),tt=0;tt<he;++tt)if(ye[tt]!==Le[tt]){Ce=ye[tt],_e=Le[tt];break}return Ce<_e?-1:_e<Ce?1:0};function w(pe,J,Y,ee,fe){if(pe.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:pe.length-1),Y<0&&(Y=pe.length+Y),Y>=pe.length){if(fe)return-1;Y=pe.length-1}else if(Y<0)if(fe)Y=0;else return-1;if(typeof J=="string"&&(J=p.from(J,ee)),p.isBuffer(J))return J.length===0?-1:E(pe,J,Y,ee,fe);if(typeof J=="number")return J=J&255,p.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(pe,J,Y):Uint8Array.prototype.lastIndexOf.call(pe,J,Y):E(pe,[J],Y,ee,fe);throw new TypeError("val must be string, number or Buffer")}function E(pe,J,Y,ee,fe){var we=1,Ce=pe.length,_e=J.length;if(ee!==void 0&&(ee=String(ee).toLowerCase(),ee==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(pe.length<2||J.length<2)return-1;we=2,Ce/=2,_e/=2,Y/=2}function he(at,Fe){return we===1?at[Fe]:at.readUInt16BE(Fe*we)}var ye;if(fe){var Le=-1;for(ye=Y;ye<Ce;ye++)if(he(pe,ye)===he(J,Le===-1?0:ye-Le)){if(Le===-1&&(Le=ye),ye-Le+1===_e)return Le*we}else Le!==-1&&(ye-=ye-Le),Le=-1}else for(Y+_e>Ce&&(Y=Ce-_e),ye=Y;ye>=0;ye--){for(var tt=!0,gt=0;gt<_e;gt++)if(he(pe,ye+gt)!==he(J,gt)){tt=!1;break}if(tt)return ye}return-1}p.prototype.includes=function(J,Y,ee){return this.indexOf(J,Y,ee)!==-1},p.prototype.indexOf=function(J,Y,ee){return w(this,J,Y,ee,!0)},p.prototype.lastIndexOf=function(J,Y,ee){return w(this,J,Y,ee,!1)};function C(pe,J,Y,ee){Y=Number(Y)||0;var fe=pe.length-Y;ee?(ee=Number(ee),ee>fe&&(ee=fe)):ee=fe;var we=J.length;if(we%2!==0)throw new TypeError("Invalid hex string");ee>we/2&&(ee=we/2);for(var Ce=0;Ce<ee;++Ce){var _e=parseInt(J.substr(Ce*2,2),16);if(isNaN(_e))return Ce;pe[Y+Ce]=_e}return Ce}function _(pe,J,Y,ee){return ae(Je(J,pe.length-Y),pe,Y,ee)}function T(pe,J,Y,ee){return ae(Ge(J),pe,Y,ee)}function S(pe,J,Y,ee){return T(pe,J,Y,ee)}function O(pe,J,Y,ee){return ae(Ue(J),pe,Y,ee)}function I(pe,J,Y,ee){return ae(ct(J,pe.length-Y),pe,Y,ee)}p.prototype.write=function(J,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 we=this.length-Y;if((ee===void 0||ee>we)&&(ee=we),J.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 C(this,J,Y,ee);case"utf8":case"utf-8":return _(this,J,Y,ee);case"ascii":return T(this,J,Y,ee);case"latin1":case"binary":return S(this,J,Y,ee);case"base64":return O(this,J,Y,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,J,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(pe,J,Y){return J===0&&Y===pe.length?x.fromByteArray(pe):x.fromByteArray(pe.slice(J,Y))}function P(pe,J,Y){Y=Math.min(pe.length,Y);for(var ee=[],fe=J;fe<Y;){var we=pe[fe],Ce=null,_e=we>239?4:we>223?3:we>191?2:1;if(fe+_e<=Y){var he,ye,Le,tt;switch(_e){case 1:we<128&&(Ce=we);break;case 2:he=pe[fe+1],(he&192)===128&&(tt=(we&31)<<6|he&63,tt>127&&(Ce=tt));break;case 3:he=pe[fe+1],ye=pe[fe+2],(he&192)===128&&(ye&192)===128&&(tt=(we&15)<<12|(he&63)<<6|ye&63,tt>2047&&(tt<55296||tt>57343)&&(Ce=tt));break;case 4:he=pe[fe+1],ye=pe[fe+2],Le=pe[fe+3],(he&192)===128&&(ye&192)===128&&(Le&192)===128&&(tt=(we&15)<<18|(he&63)<<12|(ye&63)<<6|Le&63,tt>65535&&tt<1114112&&(Ce=tt))}}Ce===null?(Ce=65533,_e=1):Ce>65535&&(Ce-=65536,ee.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),ee.push(Ce),fe+=_e}return k(ee)}var B=4096;function k(pe){var J=pe.length;if(J<=B)return String.fromCharCode.apply(String,pe);for(var Y="",ee=0;ee<J;)Y+=String.fromCharCode.apply(String,pe.slice(ee,ee+=B));return Y}function G(pe,J,Y){var ee="";Y=Math.min(pe.length,Y);for(var fe=J;fe<Y;++fe)ee+=String.fromCharCode(pe[fe]&127);return ee}function M(pe,J,Y){var ee="";Y=Math.min(pe.length,Y);for(var fe=J;fe<Y;++fe)ee+=String.fromCharCode(pe[fe]);return ee}function j(pe,J,Y){var ee=pe.length;(!J||J<0)&&(J=0),(!Y||Y<0||Y>ee)&&(Y=ee);for(var fe="",we=J;we<Y;++we)fe+=Pe(pe[we]);return fe}function K(pe,J,Y){for(var ee=pe.slice(J,Y),fe="",we=0;we<ee.length;we+=2)fe+=String.fromCharCode(ee[we]+ee[we+1]*256);return fe}p.prototype.slice=function(J,Y){var ee=this.length;J=~~J,Y=Y===void 0?ee:~~Y,J<0?(J+=ee,J<0&&(J=0)):J>ee&&(J=ee),Y<0?(Y+=ee,Y<0&&(Y=0)):Y>ee&&(Y=ee),Y<J&&(Y=J);var fe;if(p.TYPED_ARRAY_SUPPORT)fe=this.subarray(J,Y),fe.__proto__=p.prototype;else{var we=Y-J;fe=new p(we,void 0);for(var Ce=0;Ce<we;++Ce)fe[Ce]=this[Ce+J]}return fe};function z(pe,J,Y){if(pe%1!==0||pe<0)throw new RangeError("offset is not uint");if(pe+J>Y)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUIntLE=function(J,Y,ee){J=J|0,Y=Y|0,ee||z(J,Y,this.length);for(var fe=this[J],we=1,Ce=0;++Ce<Y&&(we*=256);)fe+=this[J+Ce]*we;return fe},p.prototype.readUIntBE=function(J,Y,ee){J=J|0,Y=Y|0,ee||z(J,Y,this.length);for(var fe=this[J+--Y],we=1;Y>0&&(we*=256);)fe+=this[J+--Y]*we;return fe},p.prototype.readUInt8=function(J,Y){return Y||z(J,1,this.length),this[J]},p.prototype.readUInt16LE=function(J,Y){return Y||z(J,2,this.length),this[J]|this[J+1]<<8},p.prototype.readUInt16BE=function(J,Y){return Y||z(J,2,this.length),this[J]<<8|this[J+1]},p.prototype.readUInt32LE=function(J,Y){return Y||z(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},p.prototype.readUInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},p.prototype.readIntLE=function(J,Y,ee){J=J|0,Y=Y|0,ee||z(J,Y,this.length);for(var fe=this[J],we=1,Ce=0;++Ce<Y&&(we*=256);)fe+=this[J+Ce]*we;return we*=128,fe>=we&&(fe-=Math.pow(2,8*Y)),fe},p.prototype.readIntBE=function(J,Y,ee){J=J|0,Y=Y|0,ee||z(J,Y,this.length);for(var fe=Y,we=1,Ce=this[J+--fe];fe>0&&(we*=256);)Ce+=this[J+--fe]*we;return we*=128,Ce>=we&&(Ce-=Math.pow(2,8*Y)),Ce},p.prototype.readInt8=function(J,Y){return Y||z(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},p.prototype.readInt16LE=function(J,Y){Y||z(J,2,this.length);var ee=this[J]|this[J+1]<<8;return ee&32768?ee|4294901760:ee},p.prototype.readInt16BE=function(J,Y){Y||z(J,2,this.length);var ee=this[J+1]|this[J]<<8;return ee&32768?ee|4294901760:ee},p.prototype.readInt32LE=function(J,Y){return Y||z(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},p.prototype.readInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},p.prototype.readFloatLE=function(J,Y){return Y||z(J,4,this.length),v.read(this,J,!0,23,4)},p.prototype.readFloatBE=function(J,Y){return Y||z(J,4,this.length),v.read(this,J,!1,23,4)},p.prototype.readDoubleLE=function(J,Y){return Y||z(J,8,this.length),v.read(this,J,!0,52,8)},p.prototype.readDoubleBE=function(J,Y){return Y||z(J,8,this.length),v.read(this,J,!1,52,8)};function V(pe,J,Y,ee,fe,we){if(!p.isBuffer(pe))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>fe||J<we)throw new RangeError('"value" argument is out of bounds');if(Y+ee>pe.length)throw new RangeError("Index out of range")}p.prototype.writeUIntLE=function(J,Y,ee,fe){if(J=+J,Y=Y|0,ee=ee|0,!fe){var we=Math.pow(2,8*ee)-1;V(this,J,Y,ee,we,0)}var Ce=1,_e=0;for(this[Y]=J&255;++_e<ee&&(Ce*=256);)this[Y+_e]=J/Ce&255;return Y+ee},p.prototype.writeUIntBE=function(J,Y,ee,fe){if(J=+J,Y=Y|0,ee=ee|0,!fe){var we=Math.pow(2,8*ee)-1;V(this,J,Y,ee,we,0)}var Ce=ee-1,_e=1;for(this[Y+Ce]=J&255;--Ce>=0&&(_e*=256);)this[Y+Ce]=J/_e&255;return Y+ee},p.prototype.writeUInt8=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,1,255,0),p.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),this[Y]=J&255,Y+1};function Q(pe,J,Y,ee){J<0&&(J=65535+J+1);for(var fe=0,we=Math.min(pe.length-Y,2);fe<we;++fe)pe[Y+fe]=(J&255<<8*(ee?fe:1-fe))>>>(ee?fe:1-fe)*8}p.prototype.writeUInt16LE=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},p.prototype.writeUInt16BE=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2};function X(pe,J,Y,ee){J<0&&(J=4294967295+J+1);for(var fe=0,we=Math.min(pe.length-Y,4);fe<we;++fe)pe[Y+fe]=J>>>(ee?fe:3-fe)*8&255}p.prototype.writeUInt32LE=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[Y+3]=J>>>24,this[Y+2]=J>>>16,this[Y+1]=J>>>8,this[Y]=J&255):X(this,J,Y,!0),Y+4},p.prototype.writeUInt32BE=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):X(this,J,Y,!1),Y+4},p.prototype.writeIntLE=function(J,Y,ee,fe){if(J=+J,Y=Y|0,!fe){var we=Math.pow(2,8*ee-1);V(this,J,Y,ee,we-1,-we)}var Ce=0,_e=1,he=0;for(this[Y]=J&255;++Ce<ee&&(_e*=256);)J<0&&he===0&&this[Y+Ce-1]!==0&&(he=1),this[Y+Ce]=(J/_e>>0)-he&255;return Y+ee},p.prototype.writeIntBE=function(J,Y,ee,fe){if(J=+J,Y=Y|0,!fe){var we=Math.pow(2,8*ee-1);V(this,J,Y,ee,we-1,-we)}var Ce=ee-1,_e=1,he=0;for(this[Y+Ce]=J&255;--Ce>=0&&(_e*=256);)J<0&&he===0&&this[Y+Ce+1]!==0&&(he=1),this[Y+Ce]=(J/_e>>0)-he&255;return Y+ee},p.prototype.writeInt8=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,1,127,-128),p.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),J<0&&(J=255+J+1),this[Y]=J&255,Y+1},p.prototype.writeInt16LE=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},p.prototype.writeInt16BE=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2},p.prototype.writeInt32LE=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8,this[Y+2]=J>>>16,this[Y+3]=J>>>24):X(this,J,Y,!0),Y+4},p.prototype.writeInt32BE=function(J,Y,ee){return J=+J,Y=Y|0,ee||V(this,J,Y,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),p.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):X(this,J,Y,!1),Y+4};function te(pe,J,Y,ee,fe,we){if(Y+ee>pe.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function $(pe,J,Y,ee,fe){return fe||te(pe,J,Y,4,34028234663852886e22,-34028234663852886e22),v.write(pe,J,Y,ee,23,4),Y+4}p.prototype.writeFloatLE=function(J,Y,ee){return $(this,J,Y,!0,ee)},p.prototype.writeFloatBE=function(J,Y,ee){return $(this,J,Y,!1,ee)};function le(pe,J,Y,ee,fe){return fe||te(pe,J,Y,8,17976931348623157e292,-17976931348623157e292),v.write(pe,J,Y,ee,52,8),Y+8}p.prototype.writeDoubleLE=function(J,Y,ee){return le(this,J,Y,!0,ee)},p.prototype.writeDoubleBE=function(J,Y,ee){return le(this,J,Y,!1,ee)},p.prototype.copy=function(J,Y,ee,fe){if(ee||(ee=0),!fe&&fe!==0&&(fe=this.length),Y>=J.length&&(Y=J.length),Y||(Y=0),fe>0&&fe<ee&&(fe=ee),fe===ee)return 0;if(J.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),J.length-Y<fe-ee&&(fe=J.length-Y+ee);var we=fe-ee,Ce;if(this===J&&ee<Y&&Y<fe)for(Ce=we-1;Ce>=0;--Ce)J[Ce+Y]=this[Ce+ee];else if(we<1e3||!p.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<we;++Ce)J[Ce+Y]=this[Ce+ee];else Uint8Array.prototype.set.call(J,this.subarray(ee,ee+we),Y);return we},p.prototype.fill=function(J,Y,ee,fe){if(typeof J=="string"){if(typeof Y=="string"?(fe=Y,Y=0,ee=this.length):typeof ee=="string"&&(fe=ee,ee=this.length),J.length===1){var we=J.charCodeAt(0);we<256&&(J=we)}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 J=="number"&&(J=J&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,J||(J=0);var Ce;if(typeof J=="number")for(Ce=Y;Ce<ee;++Ce)this[Ce]=J;else{var _e=p.isBuffer(J)?J:Je(new p(J,fe).toString()),he=_e.length;for(Ce=0;Ce<ee-Y;++Ce)this[Ce+Y]=_e[Ce%he]}return this};var re=/[^+\/0-9A-Za-z-_]/g;function Se(pe){if(pe=Re(pe).replace(re,""),pe.length<2)return"";for(;pe.length%4!==0;)pe=pe+"=";return pe}function Re(pe){return pe.trim?pe.trim():pe.replace(/^\s+|\s+$/g,"")}function Pe(pe){return pe<16?"0"+pe.toString(16):pe.toString(16)}function Je(pe,J){J=J||Infinity;for(var Y,ee=pe.length,fe=null,we=[],Ce=0;Ce<ee;++Ce){if(Y=pe.charCodeAt(Ce),Y>55295&&Y<57344){if(!fe){if(Y>56319){(J-=3)>-1&&we.push(239,191,189);continue}else if(Ce+1===ee){(J-=3)>-1&&we.push(239,191,189);continue}fe=Y;continue}if(Y<56320){(J-=3)>-1&&we.push(239,191,189),fe=Y;continue}Y=(fe-55296<<10|Y-56320)+65536}else fe&&((J-=3)>-1&&we.push(239,191,189));if(fe=null,Y<128){if((J-=1)<0)break;we.push(Y)}else if(Y<2048){if((J-=2)<0)break;we.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((J-=3)<0)break;we.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((J-=4)<0)break;we.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return we}function Ge(pe){for(var J=[],Y=0;Y<pe.length;++Y)J.push(pe.charCodeAt(Y)&255);return J}function ct(pe,J){for(var Y,ee,fe,we=[],Ce=0;Ce<pe.length&&!((J-=2)<0);++Ce)Y=pe.charCodeAt(Ce),ee=Y>>8,fe=Y%256,we.push(fe),we.push(ee);return we}function Ue(pe){return x.toByteArray(Se(pe))}function ae(pe,J,Y,ee){for(var fe=0;fe<ee&&!(fe+Y>=J.length||fe>=pe.length);++fe)J[fe+Y]=pe[fe];return fe}function lt(pe){return pe!==pe}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},R("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(R,D,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(R,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(R,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(v,m){if(!(this instanceof p))return new p(v,m);this.src=v,this._withAccess=m}p.prototype.withAccess=function(v){return this._withAccess=v!==!1,this},p.prototype.pick=function(v){return Array.isArray(v)||(v=y.call(arguments)),v.length&&(this.keys=v),this},p.prototype.to=function(v){if(v=v||{},!this.src)return v;var m=this.keys||Object.keys(this.src);if(!this._withAccess){for(var f=0;f<m.length;f++){if(d=m[f],v[d]!==void 0)continue;v[d]=this.src[d]}return v}for(var f=0;f<m.length;f++){var d=m[f];if(!x(v,d))continue;var l=this.src.__lookupGetter__(d),o=this.src.__lookupSetter__(d);l&&v.__defineGetter__(d,l),o&&v.__defineSetter__(d,o),!l&&!o&&(v[d]=this.src[d])}return v},p.prototype.toCover=function(v){for(var m=this.keys||Object.keys(this.src),f=0;f<m.length;f++){var d=m[f];delete v[d];var l=this.src.__lookupGetter__(d),o=this.src.__lookupSetter__(d);l&&v.__defineGetter__(d,l),o&&v.__defineSetter__(d,o),!l&&!o&&(v[d]=this.src[d])}},p.prototype.override=p.prototype.toCover,p.prototype.and=function(v){var m={};return this.to(m),this.src=v,this.to(m),this.src=m,this};function x(v,m){return v[m]===void 0&&v.__lookupGetter__(m)===void 0&&v.__lookupSetter__(m)===void 0}},{}],77:[function(R,D,i){R("../../modules/es6.string.iterator"),R("../../modules/es6.array.from"),D.exports=R("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(R,D,i){var y=R("../../modules/_core"),p=y.JSON||(y.JSON={stringify:JSON.stringify});D.exports=function(v){return p.stringify.apply(p,arguments)}},{"../../modules/_core":99}],79:[function(R,D,i){R("../../modules/es6.object.assign"),D.exports=R("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(R,D,i){R("../../modules/es6.object.create");var y=R("../../modules/_core").Object;D.exports=function(x,v){return y.create(x,v)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(R,D,i){R("../../modules/es6.object.define-property");var y=R("../../modules/_core").Object;D.exports=function(x,v,m){return y.defineProperty(x,v,m)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(R,D,i){R("../../modules/es7.object.entries"),D.exports=R("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(R,D,i){R("../../modules/es6.object.get-own-property-names");var y=R("../../modules/_core").Object;D.exports=function(x){return y.getOwnPropertyNames(x)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(R,D,i){R("../../modules/es6.object.get-prototype-of"),D.exports=R("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(R,D,i){R("../../modules/es6.object.keys"),D.exports=R("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(R,D,i){R("../modules/es6.object.to-string"),R("../modules/es6.string.iterator"),R("../modules/web.dom.iterable"),R("../modules/es6.promise"),R("../modules/es7.promise.finally"),R("../modules/es7.promise.try"),D.exports=R("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(R,D,i){R("../modules/web.immediate"),D.exports=R("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(R,D,i){R("../../modules/es6.string.from-code-point"),D.exports=R("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(R,D,i){R("../../modules/es6.function.has-instance"),D.exports=R("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(R,D,i){R("../../modules/es6.symbol"),R("../../modules/es6.object.to-string"),R("../../modules/es7.symbol.async-iterator"),R("../../modules/es7.symbol.observable"),D.exports=R("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(R,D,i){R("../../modules/es6.string.iterator"),R("../../modules/web.dom.iterable"),D.exports=R("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(R,D,i){D.exports=function(y){if(typeof y!="function")throw TypeError(y+" is not a function!");return y}},{}],93:[function(R,D,i){D.exports=function(){}},{}],94:[function(R,D,i){D.exports=function(y,p,x,v){if(!(y instanceof p)||v!==void 0&&v in y)throw TypeError(x+": incorrect invocation!");return y}},{}],95:[function(R,D,i){var y=R("./_is-object");D.exports=function(p){if(!y(p))throw TypeError(p+" is not an object!");return p}},{"./_is-object":119}],96:[function(R,D,i){var y=R("./_to-iobject"),p=R("./_to-length"),x=R("./_to-absolute-index");D.exports=function(v){return function(m,f,d){var l=y(m),o=p(l.length),n=x(d,o),t;if(v&&f!=f){for(;o>n;)if(t=l[n++],t!=t)return!0}else for(;o>n;n++)if((v||n in l)&&l[n]===f)return v||n||0;return!v&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(R,D,i){var y=R("./_cof"),p=R("./_wks")("toStringTag"),x=y(function(){return arguments}())=="Arguments",v=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=v(f=Object(m),p))=="string"?d:x?y(f):(l=y(f))=="Object"&&typeof f.callee=="function"?"Arguments":l}},{"./_cof":98,"./_wks":166}],98:[function(R,D,i){var y={}.toString;D.exports=function(p){return y.call(p).slice(8,-1)}},{}],99:[function(R,D,i){var y=D.exports={version:"2.6.11"};typeof __e=="number"&&(__e=y)},{}],100:[function(R,D,i){"use strict";var y=R("./_object-dp"),p=R("./_property-desc");D.exports=function(x,v,m){v in x?y.f(x,v,p(0,m)):x[v]=m}},{"./_object-dp":132,"./_property-desc":146}],101:[function(R,D,i){var y=R("./_a-function");D.exports=function(p,x,v){if(y(p),x===void 0)return p;switch(v){case 1:return function(m){return p.call(x,m)};case 2:return function(m,f){return p.call(x,m,f)};case 3:return function(m,f,d){return p.call(x,m,f,d)}}return function(){return p.apply(x,arguments)}}},{"./_a-function":92}],102:[function(R,D,i){D.exports=function(y){if(y==null)throw TypeError("Can't call method on "+y);return y}},{}],103:[function(R,D,i){D.exports=!R("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(R,D,i){var y=R("./_is-object"),p=R("./_global").document,x=y(p)&&y(p.createElement);D.exports=function(v){return x?p.createElement(v):{}}},{"./_global":110,"./_is-object":119}],105:[function(R,D,i){D.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(R,D,i){var y=R("./_object-keys"),p=R("./_object-gops"),x=R("./_object-pie");D.exports=function(v){var m=y(v),f=p.f;if(f)for(var d=f(v),l=x.f,o=0,n;d.length>o;)l.call(v,n=d[o++])&&m.push(n);return m}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(R,D,i){var y=R("./_global"),p=R("./_core"),x=R("./_ctx"),v=R("./_hide"),m=R("./_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],A=e?y:u?y[n]:(y[n]||{})[f],b,w,E;e&&(t=n);for(b in t){if(w=!a&&A&&A[b]!==void 0,w&&m(h,b))continue;E=w?A[b]:t[b],h[b]=e&&typeof A[b]!="function"?t[b]:s&&w?x(E,y):c&&A[b]==E?function(C){var _=function(S,O,I){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(S);case 2:return new C(S,O)}return new C(S,O,I)}return C.apply(this,arguments)};return _[f]=C[f],_}(E):r&&typeof E=="function"?x(Function.call,E):E,r&&((h.virtual||(h.virtual={}))[b]=E,o&l.R&&g&&!g[b]&&v(g,b,E))}};d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,D.exports=d},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(R,D,i){D.exports=function(y){try{return!!y()}catch(p){return!0}}},{}],109:[function(R,D,i){var y=R("./_ctx"),p=R("./_iter-call"),x=R("./_is-array-iter"),v=R("./_an-object"),m=R("./_to-length"),f=R("./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,A;if(typeof u!="function")throw TypeError(o+" is not iterable!");if(x(u)){for(c=m(o.length);c>s;s++)if(A=n?r(v(h=o[s])[0],h[1]):r(o[s]),A===d||A===l)return A}else for(g=u.call(o);!(h=g.next()).done;)if(A=p(g,r,h.value,n),A===d||A===l)return A};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(R,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(R,D,i){var y={}.hasOwnProperty;D.exports=function(p,x){return y.call(p,x)}},{}],112:[function(R,D,i){var y=R("./_object-dp"),p=R("./_property-desc");D.exports=R("./_descriptors")?function(x,v,m){return y.f(x,v,p(1,m))}:function(x,v,m){return x[v]=m,x}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(R,D,i){var y=R("./_global").document;D.exports=y&&y.documentElement},{"./_global":110}],114:[function(R,D,i){D.exports=!R("./_descriptors")&&!R("./_fails")(function(){return Object.defineProperty(R("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(R,D,i){D.exports=function(y,p,x){var v=x===void 0;switch(p.length){case 0:return v?y():y.call(x);case 1:return v?y(p[0]):y.call(x,p[0]);case 2:return v?y(p[0],p[1]):y.call(x,p[0],p[1]);case 3:return v?y(p[0],p[1],p[2]):y.call(x,p[0],p[1],p[2]);case 4:return v?y(p[0],p[1],p[2],p[3]):y.call(x,p[0],p[1],p[2],p[3])}return y.apply(x,p)}},{}],116:[function(R,D,i){var y=R("./_cof");D.exports=Object("z").propertyIsEnumerable(0)?Object:function(p){return y(p)=="String"?p.split(""):Object(p)}},{"./_cof":98}],117:[function(R,D,i){var y=R("./_iterators"),p=R("./_wks")("iterator"),x=Array.prototype;D.exports=function(v){return v!==void 0&&(y.Array===v||x[p]===v)}},{"./_iterators":125,"./_wks":166}],118:[function(R,D,i){var y=R("./_cof");D.exports=Array.isArray||function(x){return y(x)=="Array"}},{"./_cof":98}],119:[function(R,D,i){D.exports=function(y){return typeof y=="object"?y!==null:typeof y=="function"}},{}],120:[function(R,D,i){var y=R("./_an-object");D.exports=function(p,x,v,m){try{return m?x(y(v)[0],v[1]):x(v)}catch(d){var f=p.return;throw f!==void 0&&y(f.call(p)),d}}},{"./_an-object":95}],121:[function(R,D,i){"use strict";var y=R("./_object-create"),p=R("./_property-desc"),x=R("./_set-to-string-tag"),v={};R("./_hide")(v,R("./_wks")("iterator"),function(){return this}),D.exports=function(m,f,d){m.prototype=y(v,{next:p(1,d)}),x(m,f+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(R,D,i){"use strict";var y=R("./_library"),p=R("./_export"),x=R("./_redefine"),v=R("./_hide"),m=R("./_iterators"),f=R("./_iter-create"),d=R("./_set-to-string-tag"),l=R("./_object-gpo"),o=R("./_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,A,b){f(c,s,h);var w=function(M){if(!n&&M in T)return T[M];switch(M){case a:return function(){return new c(this,M)};case e:return function(){return new c(this,M)}}return function(){return new c(this,M)}},E=s+" Iterator",C=g==e,_=!1,T=r.prototype,S=T[o]||T[t]||g&&T[g],O=S||w(g),I=g?C?w("entries"):O:void 0,F=s=="Array"&&T.entries||S,P,B,k;if(F&&(k=l(F.call(new r)),k!==Object.prototype&&k.next&&(d(k,E,!0),!y&&typeof k[o]!="function"&&v(k,o,u))),C&&S&&S.name!==e&&(_=!0,O=function(){return S.call(this)}),(!y||b)&&(n||_||!T[o])&&v(T,o,O),m[s]=O,m[E]=u,g)if(P={values:C?O:w(e),keys:A?O:w(a),entries:I},b)for(B in P)B in T||x(T,B,P[B]);else p(p.P+p.F*(n||_),s,P);return P}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(R,D,i){var y=R("./_wks")("iterator"),p=!1;try{var x=[7][y]();x.return=function(){p=!0},Array.from(x,function(){throw 2})}catch(v){}D.exports=function(v,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},v(d)}catch(o){}return f}},{"./_wks":166}],124:[function(R,D,i){D.exports=function(y,p){return{value:p,done:!!y}}},{}],125:[function(R,D,i){D.exports={}},{}],126:[function(R,D,i){D.exports=!0},{}],127:[function(R,D,i){var y=R("./_uid")("meta"),p=R("./_is-object"),x=R("./_has"),v=R("./_object-dp").f,m=0,f=Object.isExtensible||function(){return!0},d=!R("./_fails")(function(){return f(Object.preventExtensions({}))}),l=function(u){v(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(!x(u,y)){if(!f(u))return"F";if(!r)return"E";l(u)}return u[y].i},n=function(u,r){if(!x(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)&&!x(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(R,D,i){var y=R("./_global"),p=R("./_task").set,x=y.MutationObserver||y.WebKitMutationObserver,v=y.process,m=y.Promise,f=R("./_cof")(v)=="process";D.exports=function(){var d,l,o,n=function(){var r,s;for(f&&(r=v.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(){v.nextTick(n)};else if(x&&!(y.navigator&&y.navigator.standalone)){var t=!0,a=document.createTextNode("");new x(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(R,D,i){"use strict";var y=R("./_a-function");function p(x){var v,m;this.promise=new x(function(f,d){if(v!==void 0||m!==void 0)throw TypeError("Bad Promise constructor");v=f,m=d}),this.resolve=y(v),this.reject=y(m)}D.exports.f=function(x){return new p(x)}},{"./_a-function":92}],130:[function(R,D,i){"use strict";var y=R("./_descriptors"),p=R("./_object-keys"),x=R("./_object-gops"),v=R("./_object-pie"),m=R("./_to-object"),f=R("./_iobject"),d=Object.assign;D.exports=!d||R("./_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=x.f,r=v.f;a>e;)for(var s=f(arguments[e++]),c=u?p(s).concat(u(s)):p(s),h=c.length,g=0,A;h>g;)A=c[g++],(!y||r.call(s,A))&&(t[A]=s[A]);return t}:d},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(R,D,i){var y=R("./_an-object"),p=R("./_object-dps"),x=R("./_enum-bug-keys"),v=R("./_shared-key")("IE_PROTO"),m=function(){},f="prototype",d=function(){var o=R("./_dom-create")("iframe"),n=x.length,t="<",a=">",e;for(o.style.display="none",R("./_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][x[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[v]=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(R,D,i){var y=R("./_an-object"),p=R("./_ie8-dom-define"),x=R("./_to-primitive"),v=Object.defineProperty;i.f=R("./_descriptors")?Object.defineProperty:function(f,d,l){if(y(f),d=x(d,!0),y(l),p)try{return v(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(R,D,i){var y=R("./_object-dp"),p=R("./_an-object"),x=R("./_object-keys");D.exports=R("./_descriptors")?Object.defineProperties:function(m,f){p(m);for(var d=x(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(R,D,i){var y=R("./_object-pie"),p=R("./_property-desc"),x=R("./_to-iobject"),v=R("./_to-primitive"),m=R("./_has"),f=R("./_ie8-dom-define"),d=Object.getOwnPropertyDescriptor;i.f=R("./_descriptors")?d:function(o,n){if(o=x(o),n=v(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(R,D,i){var y=R("./_to-iobject"),p=R("./_object-gopn").f,x={}.toString,v=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(d){try{return p(d)}catch(l){return v.slice()}};D.exports.f=function(d){return v&&x.call(d)=="[object Window]"?m(d):p(y(d))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(R,D,i){var y=R("./_object-keys-internal"),p=R("./_enum-bug-keys").concat("length","prototype");i.f=Object.getOwnPropertyNames||function(v){return y(v,p)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(R,D,i){i.f=Object.getOwnPropertySymbols},{}],138:[function(R,D,i){var y=R("./_has"),p=R("./_to-object"),x=R("./_shared-key")("IE_PROTO"),v=Object.prototype;D.exports=Object.getPrototypeOf||function(m){return m=p(m),y(m,x)?m[x]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?v:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(R,D,i){var y=R("./_has"),p=R("./_to-iobject"),x=R("./_array-includes")(!1),v=R("./_shared-key")("IE_PROTO");D.exports=function(m,f){var d=p(m),l=0,o=[],n;for(n in d)n!=v&&(y(d,n)&&o.push(n));for(;f.length>l;)y(d,n=f[l++])&&(~x(o,n)||o.push(n));return o}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(R,D,i){var y=R("./_object-keys-internal"),p=R("./_enum-bug-keys");D.exports=Object.keys||function(v){return y(v,p)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(R,D,i){i.f={}.propertyIsEnumerable},{}],142:[function(R,D,i){var y=R("./_export"),p=R("./_core"),x=R("./_fails");D.exports=function(v,m){var f=(p.Object||{})[v]||Object[v],d={};d[v]=m(f),y(y.S+y.F*x(function(){f(1)}),"Object",d)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(R,D,i){var y=R("./_descriptors"),p=R("./_object-keys"),x=R("./_to-iobject"),v=R("./_object-pie").f;D.exports=function(m){return function(f){for(var d=x(f),l=p(d),o=l.length,n=0,t=[],a;o>n;)a=l[n++],(!y||v.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(R,D,i){D.exports=function(y){try{return{e:!1,v:y()}}catch(p){return{e:!0,v:p}}}},{}],145:[function(R,D,i){var y=R("./_an-object"),p=R("./_is-object"),x=R("./_new-promise-capability");D.exports=function(v,m){if(y(v),p(m)&&m.constructor===v)return m;var f=x.f(v),d=f.resolve;return d(m),f.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(R,D,i){D.exports=function(y,p){return{enumerable:!(y&1),configurable:!(y&2),writable:!(y&4),value:p}}},{}],147:[function(R,D,i){var y=R("./_hide");D.exports=function(p,x,v){for(var m in x)v&&p[m]?p[m]=x[m]:y(p,m,x[m]);return p}},{"./_hide":112}],148:[function(R,D,i){D.exports=R("./_hide")},{"./_hide":112}],149:[function(R,D,i){"use strict";var y=R("./_global"),p=R("./_core"),x=R("./_object-dp"),v=R("./_descriptors"),m=R("./_wks")("species");D.exports=function(f){var d=typeof p[f]=="function"?p[f]:y[f];v&&d&&!d[m]&&x.f(d,m,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(R,D,i){var y=R("./_object-dp").f,p=R("./_has"),x=R("./_wks")("toStringTag");D.exports=function(v,m,f){v&&!p(v=f?v:v.prototype,x)&&y(v,x,{configurable:!0,value:m})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(R,D,i){var y=R("./_shared")("keys"),p=R("./_uid");D.exports=function(x){return y[x]||(y[x]=p(x))}},{"./_shared":152,"./_uid":162}],152:[function(R,D,i){var y=R("./_core"),p=R("./_global"),x="__core-js_shared__",v=p[x]||(p[x]={});(D.exports=function(m,f){return v[m]||(v[m]=f!==void 0?f:{})})("versions",[]).push({version:y.version,mode:R("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(R,D,i){var y=R("./_an-object"),p=R("./_a-function"),x=R("./_wks")("species");D.exports=function(v,m){var f=y(v).constructor,d;return f===void 0||(d=y(f)[x])==null?m:p(d)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(R,D,i){var y=R("./_to-integer"),p=R("./_defined");D.exports=function(x){return function(v,m){var f=String(p(v)),d=y(m),l=f.length,o,n;return d<0||d>=l?x?"":void 0:(o=f.charCodeAt(d),o<55296||o>56319||d+1===l||(n=f.charCodeAt(d+1))<56320||n>57343?x?f.charAt(d):o:x?f.slice(d,d+2):(o-55296<<10)+(n-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(R,D,i){var y=R("./_ctx"),p=R("./_invoke"),x=R("./_html"),v=R("./_dom-create"),m=R("./_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 A=+this;if(a.hasOwnProperty(A)){var b=a[A];delete a[A],b()}},h=function(A){c.call(A.data)};(!d||!l)&&(d=function(A){for(var b=[],w=1;arguments.length>w;)b.push(arguments[w++]);return a[++t]=function(){p(typeof A=="function"?A:Function(A),b)},u(t),t},l=function(A){delete a[A]},R("./_cof")(f)=="process"?u=function(A){f.nextTick(y(c,A,1))}:n&&n.now?u=function(A){n.now(y(c,A,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(A){m.postMessage(A+"","*")},m.addEventListener("message",h,!1)):e in v("script")?u=function(A){x.appendChild(v("script"))[e]=function(){x.removeChild(this),c.call(A)}}:u=function(A){setTimeout(y(c,A,1),0)}),D.exports={set:d,clear:l}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(R,D,i){var y=R("./_to-integer"),p=Math.max,x=Math.min;D.exports=function(v,m){return v=y(v),v<0?p(v+m,0):x(v,m)}},{"./_to-integer":157}],157:[function(R,D,i){var y=Math.ceil,p=Math.floor;D.exports=function(x){return isNaN(x=+x)?0:(x>0?p:y)(x)}},{}],158:[function(R,D,i){var y=R("./_iobject"),p=R("./_defined");D.exports=function(x){return y(p(x))}},{"./_defined":102,"./_iobject":116}],159:[function(R,D,i){var y=R("./_to-integer"),p=Math.min;D.exports=function(x){return x>0?p(y(x),9007199254740991):0}},{"./_to-integer":157}],160:[function(R,D,i){var y=R("./_defined");D.exports=function(p){return Object(y(p))}},{"./_defined":102}],161:[function(R,D,i){var y=R("./_is-object");D.exports=function(p,x){if(!y(p))return p;var v,m;if(x&&typeof(v=p.toString)=="function"&&!y(m=v.call(p)))return m;if(typeof(v=p.valueOf)=="function"&&!y(m=v.call(p)))return m;if(!x&&typeof(v=p.toString)=="function"&&!y(m=v.call(p)))return m;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(R,D,i){var y=0,p=Math.random();D.exports=function(x){return"Symbol(".concat(x===void 0?"":x,")_",(++y+p).toString(36))}},{}],163:[function(R,D,i){var y=R("./_global"),p=y.navigator;D.exports=p&&p.userAgent||""},{"./_global":110}],164:[function(R,D,i){var y=R("./_global"),p=R("./_core"),x=R("./_library"),v=R("./_wks-ext"),m=R("./_object-dp").f;D.exports=function(f){var d=p.Symbol||(p.Symbol=x?{}:y.Symbol||{});f.charAt(0)!="_"&&!(f in d)&&m(d,f,{value:v.f(f)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(R,D,i){i.f=R("./_wks")},{"./_wks":166}],166:[function(R,D,i){var y=R("./_shared")("wks"),p=R("./_uid"),x=R("./_global").Symbol,v=typeof x=="function",m=D.exports=function(f){return y[f]||(y[f]=v&&x[f]||(v?x:p)("Symbol."+f))};m.store=y},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(R,D,i){var y=R("./_classof"),p=R("./_wks")("iterator"),x=R("./_iterators");D.exports=R("./_core").getIteratorMethod=function(v){if(v!=null)return v[p]||v["@@iterator"]||x[y(v)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(R,D,i){"use strict";var y=R("./_ctx"),p=R("./_export"),x=R("./_to-object"),v=R("./_iter-call"),m=R("./_is-array-iter"),f=R("./_to-length"),d=R("./_create-property"),l=R("./core.get-iterator-method");p(p.S+p.F*!R("./_iter-detect")(function(o){Array.from(o)}),"Array",{from:function(n){var t=x(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,A,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;!(A=b.next()).done;s++)d(g,s,r?v(b,u,[A.value,s],!0):A.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(R,D,i){"use strict";var y=R("./_add-to-unscopables"),p=R("./_iter-step"),x=R("./_iterators"),v=R("./_to-iobject");D.exports=R("./_iter-define")(Array,"Array",function(m,f){this._t=v(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"),x.Arguments=x.Array,y("keys"),y("values"),y("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(R,D,i){"use strict";var y=R("./_is-object"),p=R("./_object-gpo"),x=R("./_wks")("hasInstance"),v=Function.prototype;x in v||R("./_object-dp").f(v,x,{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(R,D,i){var y=R("./_export");y(y.S+y.F,"Object",{assign:R("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(R,D,i){var y=R("./_export");y(y.S,"Object",{create:R("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(R,D,i){var y=R("./_export");y(y.S+y.F*!R("./_descriptors"),"Object",{defineProperty:R("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(R,D,i){R("./_object-sap")("getOwnPropertyNames",function(){return R("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(R,D,i){var y=R("./_to-object"),p=R("./_object-gpo");R("./_object-sap")("getPrototypeOf",function(){return function(v){return p(y(v))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(R,D,i){var y=R("./_to-object"),p=R("./_object-keys");R("./_object-sap")("keys",function(){return function(v){return p(y(v))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(R,D,i){arguments[4][71][0].apply(i,arguments)},{dup:71}],178:[function(R,D,i){"use strict";var y=R("./_library"),p=R("./_global"),x=R("./_ctx"),v=R("./_classof"),m=R("./_export"),f=R("./_is-object"),d=R("./_a-function"),l=R("./_an-instance"),o=R("./_for-of"),n=R("./_species-constructor"),t=R("./_task").set,a=R("./_microtask")(),e=R("./_new-promise-capability"),u=R("./_perform"),r=R("./_user-agent"),s=R("./_promise-resolve"),c="Promise",h=p.TypeError,g=p.process,A=g&&g.versions,b=A&&A.v8||"",w=p[c],E=v(g)=="process",C=function(){},_,T,S,O,I=T=e.f,F=!!function(){try{var z=w.resolve(1),V=(z.constructor={})[R("./_wks")("species")]=function(Q){Q(C,C)};return(E||typeof PromiseRejectionEvent=="function")&&z.then(C)instanceof V&&b.indexOf("6.6")!==0&&r.indexOf("Chrome/66")===-1}catch(Q){}}(),P=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 X=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,Ge=Re.reject,ct=Re.domain,Ue,ae,lt;try{Pe?($||(V._h==2&&M(V),V._h=1),Pe===!0?Ue=te:(ct&&ct.enter(),Ue=Pe(te),ct&&(ct.exit(),lt=!0)),Ue===Re.promise?Ge(h("Promise-chain cycle")):(ae=P(Ue))?ae.call(Ue,Je,Ge):Je(Ue)):Ge(te)}catch(pe){ct&&!lt&&ct.exit(),Ge(pe)}};X.length>le;)re(X[le++]);V._c=[],V._n=!1,Q&&!V._h&&k(V)})},k=function(V){t.call(p,function(){var Q=V._v,X=G(V),te,$,le;if(X&&(te=u(function(){E?g.emit("unhandledRejection",Q,V):($=p.onunhandledrejection)?$({promise:V,reason:Q}):(le=p.console)&&le.error&&le.error("Unhandled promise rejection",Q)}),V._h=E||G(V)?2:1),V._a=void 0,X&&te.e)throw te.v})},G=function(V){return V._h!==1&&(V._a||V._c).length===0},M=function(V){t.call(p,function(){var Q;E?g.emit("rejectionHandled",V):(Q=p.onrejectionhandled)&&Q({promise:V,reason:V._v})})},j=function(V){var Q=this;if(Q._d)return;Q._d=!0,Q=Q._w||Q,Q._v=V,Q._s=2,Q._a||(Q._a=Q._c.slice()),B(Q,!0)},K=function z(V){var Q=this,X;if(Q._d)return;Q._d=!0,Q=Q._w||Q;try{if(Q===V)throw h("Promise can't be resolved itself");(X=P(V))?a(function(){var te={_w:Q,_d:!1};try{X.call(V,x(z,te,1),x(j,te,1))}catch($){j.call(te,$)}}):(Q._v=V,Q._s=1,B(Q,!1))}catch(te){j.call({_w:Q,_d:!1},te)}};F||(w=function(V){l(this,w,c,"_h"),d(V),_.call(this);try{V(x(K,this,1),x(j,this,1))}catch(Q){j.call(this,Q)}},_=function(V){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},_.prototype=R("./_redefine-all")(w.prototype,{then:function(V,Q){var X=I(n(this,w));return X.ok=typeof V=="function"?V:!0,X.fail=typeof Q=="function"&&Q,X.domain=E?g.domain:void 0,this._c.push(X),this._a&&this._a.push(X),this._s&&B(this,!1),X.promise},catch:function(V){return this.then(void 0,V)}}),S=function(){var V=new _;this.promise=V,this.resolve=x(K,V,1),this.reject=x(j,V,1)},e.f=I=function(V){return V===w||V===O?new S(V):T(V)}),m(m.G+m.W+m.F*!F,{Promise:w}),R("./_set-to-string-tag")(w,c),R("./_set-species")(c),O=R("./_core")[c],m(m.S+m.F*!F,c,{reject:function(V){var Q=I(this),X=Q.reject;return X(V),Q.promise}}),m(m.S+m.F*(y||!F),c,{resolve:function(V){return s(y&&this===O?w:this,V)}}),m(m.S+m.F*!(F&&R("./_iter-detect")(function(z){w.all(z).catch(C)})),c,{all:function(V){var Q=this,X=I(Q),te=X.resolve,$=X.reject,le=u(function(){var re=[],Se=0,Re=1;o(V,!1,function(Pe){var Je=Se++,Ge=!1;re.push(void 0),Re++,Q.resolve(Pe).then(function(ct){if(Ge)return;Ge=!0,re[Je]=ct,--Re||te(re)},$)}),--Re||te(re)});return le.e&&$(le.v),X.promise},race:function(V){var Q=this,X=I(Q),te=X.reject,$=u(function(){o(V,!1,function(le){Q.resolve(le).then(X.resolve,te)})});return $.e&&te($.v),X.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(R,D,i){var y=R("./_export"),p=R("./_to-absolute-index"),x=String.fromCharCode,v=String.fromCodePoint;y(y.S+y.F*(!!v&&v.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?x(n):x(((n-=65536)>>10)+55296,n%1024+56320))}return d.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(R,D,i){"use strict";var y=R("./_string-at")(!0);R("./_iter-define")(String,"String",function(p){this._t=String(p),this._i=0},function(){var p=this._t,x=this._i,v;return x>=p.length?{value:void 0,done:!0}:(v=y(p,x),this._i+=v.length,{value:v,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(R,D,i){"use strict";var y=R("./_global"),p=R("./_has"),x=R("./_descriptors"),v=R("./_export"),m=R("./_redefine"),f=R("./_meta").KEY,d=R("./_fails"),l=R("./_shared"),o=R("./_set-to-string-tag"),n=R("./_uid"),t=R("./_wks"),a=R("./_wks-ext"),e=R("./_wks-define"),u=R("./_enum-keys"),r=R("./_is-array"),s=R("./_an-object"),c=R("./_is-object"),h=R("./_to-object"),g=R("./_to-iobject"),A=R("./_to-primitive"),b=R("./_property-desc"),w=R("./_object-create"),E=R("./_object-gopn-ext"),C=R("./_object-gopd"),_=R("./_object-gops"),T=R("./_object-dp"),S=R("./_object-keys"),O=C.f,I=T.f,F=E.f,P=y.Symbol,B=y.JSON,k=B&&B.stringify,G="prototype",M=t("_hidden"),j=t("toPrimitive"),K={}.propertyIsEnumerable,z=l("symbol-registry"),V=l("symbols"),Q=l("op-symbols"),X=Object[G],te=typeof P=="function"&&!!_.f,$=y.QObject,le=!$||!$[G]||!$[G].findChild,re=x&&d(function(){return w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a!=7})?function(we,Ce,_e){var he=O(X,Ce);he&&delete X[Ce],I(we,Ce,_e),he&&we!==X&&I(X,Ce,he)}:I,Se=function(Ce){var _e=V[Ce]=w(P[G]);return _e._k=Ce,_e},Re=te&&typeof P.iterator=="symbol"?function(we){return typeof we=="symbol"}:function(we){return we instanceof P},Pe=function(Ce,_e,he){return Ce===X&&Pe(Q,_e,he),s(Ce),_e=A(_e,!0),s(he),p(V,_e)?(he.enumerable?(p(Ce,M)&&Ce[M][_e]&&(Ce[M][_e]=!1),he=w(he,{enumerable:b(0,!1)})):(p(Ce,M)||I(Ce,M,b(1,{})),Ce[M][_e]=!0),re(Ce,_e,he)):I(Ce,_e,he)},Je=function(Ce,_e){s(Ce);for(var he=u(_e=g(_e)),ye=0,Le=he.length,tt;Le>ye;)Pe(Ce,tt=he[ye++],_e[tt]);return Ce},Ge=function(Ce,_e){return _e===void 0?w(Ce):Je(w(Ce),_e)},ct=function(Ce){var _e=K.call(this,Ce=A(Ce,!0));return this===X&&p(V,Ce)&&!p(Q,Ce)?!1:_e||!p(this,Ce)||!p(V,Ce)||p(this,M)&&this[M][Ce]?_e:!0},Ue=function(Ce,_e){if(Ce=g(Ce),_e=A(_e,!0),Ce===X&&p(V,_e)&&!p(Q,_e))return;var he=O(Ce,_e);return he&&p(V,_e)&&!(p(Ce,M)&&Ce[M][_e])&&(he.enumerable=!0),he},ae=function(Ce){for(var _e=F(g(Ce)),he=[],ye=0,Le;_e.length>ye;)!p(V,Le=_e[ye++])&&Le!=M&&Le!=f&&he.push(Le);return he},lt=function(Ce){for(var _e=Ce===X,he=F(_e?Q:g(Ce)),ye=[],Le=0,tt;he.length>Le;)p(V,tt=he[Le++])&&(_e?p(X,tt):!0)&&ye.push(V[tt]);return ye};te||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var Ce=n(arguments.length>0?arguments[0]:void 0),_e=function he(ye){this===X&&he.call(Q,ye),p(this,M)&&p(this[M],Ce)&&(this[M][Ce]=!1),re(this,Ce,b(1,ye))};return x&&le&&re(X,Ce,{configurable:!0,set:_e}),Se(Ce)},m(P[G],"toString",function(){return this._k}),C.f=Ue,T.f=Pe,R("./_object-gopn").f=E.f=ae,R("./_object-pie").f=ct,_.f=lt,x&&!R("./_library")&&m(X,"propertyIsEnumerable",ct,!0),a.f=function(we){return Se(t(we))}),v(v.G+v.W+v.F*!te,{Symbol:P});for(var pe="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),J=0;pe.length>J;)t(pe[J++]);for(var Y=S(t.store),ee=0;Y.length>ee;)e(Y[ee++]);v(v.S+v.F*!te,"Symbol",{for:function(Ce){return p(z,Ce+="")?z[Ce]:z[Ce]=P(Ce)},keyFor:function(Ce){if(!Re(Ce))throw TypeError(Ce+" is not a symbol!");for(var _e in z)if(z[_e]===Ce)return _e},useSetter:function(){le=!0},useSimple:function(){le=!1}}),v(v.S+v.F*!te,"Object",{create:Ge,defineProperty:Pe,defineProperties:Je,getOwnPropertyDescriptor:Ue,getOwnPropertyNames:ae,getOwnPropertySymbols:lt});var fe=d(function(){_.f(1)});v(v.S+v.F*fe,"Object",{getOwnPropertySymbols:function(Ce){return _.f(h(Ce))}}),B&&v(v.S+v.F*(!te||d(function(){var we=P();return k([we])!="[null]"||k({a:we})!="{}"||k(Object(we))!="{}"})),"JSON",{stringify:function(Ce){for(var _e=[Ce],he=1,ye,Le;arguments.length>he;)_e.push(arguments[he++]);return Le=ye=_e[1],!c(ye)&&Ce===void 0||Re(Ce)?void 0:(r(ye)||(ye=function(gt,at){if(typeof Le=="function"&&(at=Le.call(this,gt,at)),!Re(at))return at}),_e[1]=ye,k.apply(B,_e))}}),P[G][j]||R("./_hide")(P[G],j,P[G].valueOf),o(P,"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(R,D,i){var y=R("./_export"),p=R("./_object-to-array")(!0);y(y.S,"Object",{entries:function(v){return p(v)}})},{"./_export":107,"./_object-to-array":143}],183:[function(R,D,i){"use strict";var y=R("./_export"),p=R("./_core"),x=R("./_global"),v=R("./_species-constructor"),m=R("./_promise-resolve");y(y.P+y.R,"Promise",{finally:function(d){var l=v(this,p.Promise||x.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(R,D,i){"use strict";var y=R("./_export"),p=R("./_new-promise-capability"),x=R("./_perform");y(y.S,"Promise",{try:function(m){var f=p.f(this),d=x(m);return(d.e?f.reject:f.resolve)(d.v),f.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(R,D,i){R("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(R,D,i){R("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(R,D,i){R("./es6.array.iterator");for(var y=R("./_global"),p=R("./_hide"),x=R("./_iterators"),v=R("./_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[v]&&p(o,v,d),x[d]=x.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(R,D,i){var y=R("./_export"),p=R("./_task");y(y.G+y.B,{setImmediate:p.set,clearImmediate:p.clear})},{"./_export":107,"./_task":155}],189:[function(R,D,i){(function(y){"use strict";var p=R("babel-runtime/helpers/typeof"),x=v(p);function v(A){return A&&A.__esModule?A:{default:A}}function m(A){return Array.isArray?Array.isArray(A):g(A)==="[object Array]"}i.isArray=m;function f(A){return typeof A=="boolean"}i.isBoolean=f;function d(A){return A===null}i.isNull=d;function l(A){return A==null}i.isNullOrUndefined=l;function o(A){return typeof A=="number"}i.isNumber=o;function n(A){return typeof A=="string"}i.isString=n;function t(A){return(typeof A=="undefined"?"undefined":(0,x.default)(A))==="symbol"}i.isSymbol=t;function a(A){return A===void 0}i.isUndefined=a;function e(A){return g(A)==="[object RegExp]"}i.isRegExp=e;function u(A){return(typeof A=="undefined"?"undefined":(0,x.default)(A))==="object"&&A!==null}i.isObject=u;function r(A){return g(A)==="[object Date]"}i.isDate=r;function s(A){return g(A)==="[object Error]"||A instanceof Error}i.isError=s;function c(A){return typeof A=="function"}i.isFunction=c;function h(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||(typeof A=="undefined"?"undefined":(0,x.default)(A))==="symbol"||typeof A=="undefined"}i.isPrimitive=h,i.isBuffer=y.isBuffer;function g(A){return Object.prototype.toString.call(A)}}).call(this,{isBuffer:R("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(R,D,i){"use strict";var y=R("babel-runtime/helpers/typeof"),p=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(v){"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"](),A=e[h+"Day"](),b=e[h+"Month"](),w=e[h+"FullYear"](),E=e[h+"Hours"](),C=e[h+"Minutes"](),_=e[h+"Seconds"](),T=e[h+"Milliseconds"](),S=r?0:e.getTimezoneOffset(),O=d(e),I=l(e),F={d:g,dd:f(g),ddd:m.i18n.dayNames[A],dddd:m.i18n.dayNames[A+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:E%12||12,hh:f(E%12||12),H:E,HH:f(E),M:C,MM:f(C),s:_,ss:f(_),l:f(T,3),L:f(Math.round(T/10)),t:E<12?"a":"p",tt:E<12?"am":"pm",T:E<12?"A":"P",TT:E<12?"AM":"PM",Z:s?"GMT":r?"UTC":(String(e).match(t)||[""]).pop().replace(a,""),o:(S>0?"-":"+")+f(Math.floor(Math.abs(S)/60)*100+Math.abs(S)%60,4),S:["th","st","nd","rd"][g%10>3?0:(g%100-g%10!=10)*g%10],W:O,N:I};return u.replace(n,function(P){return P in F?F[P]:P.slice(1,P.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:v.dateFormat=m})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(R,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(x){var v=""+x,m=y.exec(v);if(!m)return v;var f,d="",l=0,o=0;for(l=m.index;l<v.length;l++){switch(v.charCodeAt(l)){case 34:f=""";break;case 38:f="&";break;case 39:f="'";break;case 60:f="<";break;case 62:f=">";break;default:continue}o!==l&&(d+=v.substring(o,l)),o=l+1,d+=f}return o!==l?d+v.substring(o,l):d}},{}],192:[function(R,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(!x(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||v(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(v(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]?v(this._events[f])?this._events[f].push(d):this._events[f]=[this._events[f],d]:this._events[f]=d,v(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(v(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 x(f){return typeof f=="number"}function v(f){return typeof f=="object"&&f!==null}function m(f){return f===void 0}},{}],193:[function(R,D,i){var y=R("http"),p=D.exports;for(var x in y)y.hasOwnProperty(x)&&(p[x]=y[x]);p.request=function(v,m){return v||(v={}),v.scheme="https",v.protocol="https:",y.request.call(this,v,m)}},{http:231}],194:[function(R,D,i){/*!
|
|
|
* humanize-ms - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var y=R("util"),p=R("ms");D.exports=function(x){if(typeof x=="number")return x;var v=p(x);if(v===void 0){var m=new Error(y.format("humanize-ms(%j) result undefined",x));console.warn(m.stack)}return v}},{ms:204,util:243}],195:[function(R,D,i){i.read=function(y,p,x,v,m){var f,d,l=m*8-v-1,o=(1<<l)-1,n=o>>1,t=-7,a=x?m-1:0,e=x?-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+=v;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,v),f=f-n}return(u?-1:1)*d*Math.pow(2,f-v)},i.write=function(y,p,x,v,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=v?0:f-1,r=v?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[x+u]=l&255,u+=r,l/=256,m-=8);for(d=d<<m|l,n+=m;n>0;y[x+u]=d&255,u+=r,d/=256,n-=8);y[x+u-r]|=s*128}},{}],196:[function(R,D,i){typeof Object.create=="function"?D.exports=function(p,x){x&&(p.super_=x,p.prototype=Object.create(x.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:D.exports=function(p,x){if(x){p.super_=x;var v=function(){};v.prototype=x.prototype,p.prototype=new v,p.prototype.constructor=p}}},{}],197:[function(R,D,i){/*!
|
|
|
* Determine if an object is a Buffer
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
* @license MIT
|
|
|
*/D.exports=function(x){return x!=null&&(y(x)||p(x)||!!x._isBuffer)};function y(x){return!!x.constructor&&typeof x.constructor.isBuffer=="function"&&x.constructor.isBuffer(x)}function p(x){return typeof x.readFloatLE=="function"&&typeof x.slice=="function"&&y(x.slice(0,0))}},{}],198:[function(R,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(R,D){typeof exports=="object"&&typeof module!="undefined"?module.exports=D(R):typeof define=="function"&&define.amd?define(D):D(R)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(R){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(R){for(var D={},i=0,y=R.length;i<y;i++)D[R.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(R){return global.btoa(R)}:function(R){return R.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),x=[fromCharCode(p>>>16),fromCharCode(p>>>8&255),fromCharCode(p&255)];return x.length-=[0,0,2,1][y],x.join("")},_atob=global.atob?function(R){return global.atob(R)}:function(R){return R.replace(/\S{1,4}/g,cb_decode)},atob=function(D){return _atob(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(R){return(R.constructor===buffer.constructor?R:buffer.from(R,"base64")).toString()}:function(R){return(R.constructor===buffer.constructor?R:new buffer(R,"base64")).toString()}:function(R){return btou(_atob(R))},decode=function(D){return _decode(String(D).replace(/[-_]/g,function(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(R){return encode(this,R)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(R,D,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(x,v,m){if(!x)throw new TypeError("argument dest is required");if(!v)throw new TypeError("argument src is required");return m===void 0&&(m=!0),Object.getOwnPropertyNames(v).forEach(function(d){if(!m&&y.call(x,d))return;var l=Object.getOwnPropertyDescriptor(v,d);Object.defineProperty(x,d,l)}),x}},{}],201:[function(R,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,x){for(var v in p){var m=p[v].map(function(l){return l.toLowerCase()});v=v.toLowerCase();for(var f=0;f<m.length;f++){var d=m[f];if(d[0]=="*")continue;if(!x&&d in this._types)throw new Error('Attempt to change mapping for "'+d+'" extension from "'+this._types[d]+'" to "'+v+'". Pass `force=true` to allow this, otherwise remove "'+d+'" from the list of extensions for "'+v+'".');this._types[d]=v}if(x||!this._extensions[v]){var d=m[0];this._extensions[v]=d[0]!="*"?d:d.substr(1)}}},y.prototype.getType=function(p){p=String(p);var x=p.replace(/^.*[/\\]/,"").toLowerCase(),v=x.replace(/^.*\./,"").toLowerCase(),m=x.length<p.length,f=v.length<x.length-1;return(f||!m)&&this._types[v]||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(R,D,i){"use strict";var y=R("./Mime");D.exports=new y(R("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(R,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(R,D,i){var y=1e3,p=y*60,x=p*60,v=x*24,m=v*7,f=v*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*v;case"hours":case"hour":case"hrs":case"hr":case"h":return e*x;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>=v?Math.round(t/v)+"d":a>=x?Math.round(t/x)+"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>=v?n(t,a,v,"day"):a>=x?n(t,a,x,"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(R,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(v(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(v(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(v(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 x(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=x(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 v(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,R("_process"))},{_process:208}],206:[function(R,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},x=p[typeof window]&&window||this,v=x,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)&&(x=d);var l=Math.pow(2,53)-1,o=/\bOpera/,n=this,t=Object.prototype,a=t.hasOwnProperty,e=t.toString;function u(T){return T=String(T),T.charAt(0).toUpperCase()+T.slice(1)}function r(T,S,O){var I={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return S&&O&&/^Win/i.test(T)&&!/^Windows Phone /i.test(T)&&(I=I[/[\d.]+$/.exec(T)])&&(T="Windows "+I),T=String(T),S&&O&&(T=T.replace(RegExp(S,"i"),O)),T=c(T.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]),T}function s(T,S){var O=-1,I=T?T.length:0;if(typeof I=="number"&&I>-1&&I<=l)for(;++O<I;)S(T[O],O,T);else h(T,S)}function c(T){return T=E(T),/^(?:webOS|i(?:OS|P))/.test(T)?T:u(T)}function h(T,S){for(var O in T)a.call(T,O)&&S(T[O],O,T)}function g(T){return T==null?u(T):e.call(T).slice(8,-1)}function A(T,S){var O=T!=null?typeof T[S]:"number";return!/^(?:boolean|number|string|undefined)$/.test(O)&&(O=="object"?!!T[S]:!0)}function b(T){return String(T).replace(/([ -])(?!$)/g,"$1?")}function w(T,S){var O=null;return s(T,function(I,F){O=S(O,I,F,T)}),O}function E(T){return String(T).replace(/^ +| +$/g,"")}function C(T){var S=x,O=T&&typeof T=="object"&&g(T)!="String";O&&(S=T,T=null);var I=S.navigator||{},F=I.userAgent||"";T||(T=F);var P=O||n==v,B=O?!!I.likeChrome:/\bChrome\b/.test(T)&&!/internal|\n/i.test(e.toString()),k="Object",G=O?k:"ScriptBridgingProxyObject",M=O?k:"Environment",j=O&&S.java?"JavaPackage":g(S.java),K=O?k:"RuntimeObject",z=/\bJava/.test(j)&&S.java,V=z&&g(S.environment)==M,Q=z?"a":"\u03B1",X=z?"b":"\u03B2",te=S.document||{},$=S.operamini||S.opera,le=o.test(le=O&&$?$["[[Class]]"]:g($))?le:$=null,re,Se=T,Re=[],Pe=null,Je=T==F,Ge=Je&&$&&typeof $.version=="function"&&$.version(),ct,Ue=Y([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ae=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"]),lt=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"]),pe=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}}),J=we(["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(Le){return w(Le,function(tt,gt){return tt||RegExp("\\b"+(gt.pattern||b(gt))+"\\b","i").exec(T)&&(gt.label||gt)})}function ee(Le){return w(Le,function(tt,gt,at){return tt||(gt[lt]||gt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(lt)]||RegExp("\\b"+b(at)+"(?:\\b|\\w*\\d)","i").exec(T))&&at})}function fe(Le){return w(Le,function(tt,gt){return tt||RegExp("\\b"+(gt.pattern||b(gt))+"\\b","i").exec(T)&&(gt.label||gt)})}function we(Le){return w(Le,function(tt,gt){var at=gt.pattern||b(gt);return!tt&&(tt=RegExp("\\b"+at+"(?:/[\\d.]+|[ \\w.]*)","i").exec(T))&&(tt=r(tt,at,gt.label||gt)),tt})}function Ce(Le){return w(Le,function(tt,gt){var at=gt.pattern||b(gt);return!tt&&(tt=RegExp("\\b"+at+" *\\d+[.\\w_]*","i").exec(T)||RegExp("\\b"+at+" *\\w+-[\\w]*","i").exec(T)||RegExp("\\b"+at+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(T))&&((tt=String(gt.label&&!RegExp(at,"i").test(gt.label)?gt.label:tt).split("/"))[1]&&!/[\d.]+/.test(tt[0])&&(tt[0]+=" "+tt[1]),gt=gt.label||gt,tt=c(tt[0].replace(RegExp(at,"i"),gt).replace(RegExp("; *(?:"+gt+"[_-])?","i")," ").replace(RegExp("("+gt+")[-_.]?(\\w)","i"),"$1 $2"))),tt})}function _e(Le){return w(Le,function(tt,gt){return tt||(RegExp(gt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(T)||0)[1]||null})}function he(){return this.description||""}if(Ue&&(Ue=[Ue]),pe&&!lt&&(lt=Ce([pe])),(re=/\bGoogle TV\b/.exec(lt))&&(lt=re[0]),/\bSimulator\b/i.test(T)&&(lt=(lt?lt+" ":"")+"Simulator"),ae=="Opera Mini"&&/\bOPiOS\b/.test(T)&&Re.push("running in Turbo/Uncompressed mode"),ae=="IE"&&/\blike iPhone OS\b/.test(T)?(re=C(T.replace(/like iPhone OS/,"")),pe=re.manufacturer,lt=re.product):/^iP/.test(lt)?(ae||(ae="Safari"),J="iOS"+((re=/ OS ([\d_]+)/i.exec(T))?" "+re[1].replace(/_/g,"."):"")):ae=="Konqueror"&&!/buntu/i.test(J)?J="Kubuntu":pe&&pe!="Google"&&(/Chrome/.test(ae)&&!/\bMobile Safari\b/i.test(T)||/\bVita\b/.test(lt))||/\bAndroid\b/.test(J)&&/^Chrome/.test(ae)&&/\bVersion\//i.test(T)?(ae="Android Browser",J=/\bAndroid\b/.test(J)?J:"Android"):ae=="Silk"?(/\bMobi/i.test(T)||(J="Android",Re.unshift("desktop mode")),/Accelerated *= *true/i.test(T)&&Re.unshift("accelerated")):ae=="PaleMoon"&&(re=/\bFirefox\/([\d.]+)\b/.exec(T))?Re.push("identifying as Firefox "+re[1]):ae=="Firefox"&&(re=/\b(Mobile|Tablet|TV)\b/i.exec(T))?(J||(J="Firefox OS"),lt||(lt=re[1])):!ae||(re=!/\bMinefield\b/i.test(T)&&/\b(?:Firefox|Safari)\b/.exec(ae))?(ae&&!lt&&/[\/,]|^[^(]+?\)/.test(T.slice(T.indexOf(re+"/")+8))&&(ae=null),(re=lt||pe||J)&&(lt||pe||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(J))&&(ae=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(J)?J:re)+" Browser")):ae=="Electron"&&(re=(/\bChrome\/([\d.]+)\b/.exec(T)||0)[1])&&Re.push("Chromium "+re),Ge||(Ge=_e(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",b(ae),"(?:Firefox|Minefield|NetFront)"])),(re=Ue=="iCab"&&parseFloat(Ge)>3&&"WebKit"||/\bOpera\b/.test(ae)&&(/\bOPR\b/.test(T)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(T)&&!/^(?:Trident|EdgeHTML)$/.test(Ue)&&"WebKit"||!Ue&&/\bMSIE\b/i.test(T)&&(J=="Mac OS"?"Tasman":"Trident")||Ue=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ae)&&"NetFront")&&(Ue=[re]),ae=="IE"&&(re=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(T)||0)[1])?(ae+=" Mobile",J="Windows Phone "+(/\+$/.test(re)?re:re+".x"),Re.unshift("desktop mode")):/\bWPDesktop\b/i.test(T)?(ae="IE Mobile",J="Windows Phone 8.x",Re.unshift("desktop mode"),Ge||(Ge=(/\brv:([\d.]+)/.exec(T)||0)[1])):ae!="IE"&&Ue=="Trident"&&(re=/\brv:([\d.]+)/.exec(T))&&(ae&&Re.push("identifying as "+ae+(Ge?" "+Ge:"")),ae="IE",Ge=re[1]),Je){if(A(S,"global"))if(z&&(re=z.lang.System,Se=re.getProperty("os.arch"),J=J||re.getProperty("os.name")+" "+re.getProperty("os.version")),V){try{Ge=S.require("ringo/engine").version.join("."),ae="RingoJS"}catch(Le){(re=S.system)&&re.global.system==S.system&&(ae="Narwhal",J||(J=re[0].os||null))}ae||(ae="Rhino")}else typeof S.process=="object"&&!S.process.browser&&(re=S.process)&&(typeof re.versions=="object"&&(typeof re.versions.electron=="string"?(Re.push("Node "+re.versions.node),ae="Electron",Ge=re.versions.electron):typeof re.versions.nw=="string"&&(Re.push("Chromium "+Ge,"Node "+re.versions.node),ae="NW.js",Ge=re.versions.nw)),ae||(ae="Node.js",Se=re.arch,J=re.platform,Ge=/[\d.]+/.exec(re.version),Ge=Ge?Ge[0]:null));else g(re=S.runtime)==G?(ae="Adobe AIR",J=re.flash.system.Capabilities.os):g(re=S.phantom)==K?(ae="PhantomJS",Ge=(re=re.version||null)&&re.major+"."+re.minor+"."+re.patch):typeof te.documentMode=="number"&&(re=/\bTrident\/(\d+)/i.exec(T))?(Ge=[Ge,te.documentMode],(re=+re[1]+4)!=Ge[1]&&(Re.push("IE "+Ge[1]+" mode"),Ue&&(Ue[1]=""),Ge[1]=re),Ge=ae=="IE"?String(Ge[1].toFixed(1)):Ge[0]):typeof te.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ae)&&(Re.push("masking as "+ae+" "+Ge),ae="IE",Ge="11.0",Ue=["Trident"],J="Windows");J=J&&c(J)}if(Ge&&(re=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ge)||/(?:alpha|beta)(?: ?\d)?/i.exec(T+";"+(Je&&I.appMinorVersion))||/\bMinefield\b/i.test(T)&&"a")&&(Pe=/b/i.test(re)?"beta":"alpha",Ge=Ge.replace(RegExp(re+"\\+?$"),"")+(Pe=="beta"?X:Q)+(/\d+\+?/.exec(re)||"")),ae=="Fennec"||ae=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(J))ae="Firefox Mobile";else if(ae=="Maxthon"&&Ge)Ge=Ge.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(lt))lt=="Xbox 360"&&(J=null),lt=="Xbox 360"&&/\bIEMobile\b/.test(T)&&Re.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ae)||ae&&!lt&&!/Browser|Mobi/.test(ae))&&(J=="Windows CE"||/Mobi/i.test(T)))ae+=" Mobile";else if(ae=="IE"&&Je)try{S.external===null&&Re.unshift("platform preview")}catch(Le){Re.unshift("embedded")}else(/\bBlackBerry\b/.test(lt)||/\bBB10\b/.test(T))&&(re=(RegExp(lt.replace(/ +/g," *")+"/([.\\d]+)","i").exec(T)||0)[1]||Ge)?(re=[re,/BB10/.test(T)],J=(re[1]?(lt=null,pe="BlackBerry"):"Device Software")+" "+re[0],Ge=null):this!=h&<!="Wii"&&(Je&&$||/Opera/.test(ae)&&/\b(?:MSIE|Firefox)\b/i.test(T)||ae=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(J)||ae=="IE"&&(J&&!/^Win/.test(J)&&Ge>5.5||/\bWindows XP\b/.test(J)&&Ge>8||Ge==8&&!/\bTrident\b/.test(T)))&&!o.test(re=C.call(h,T.replace(o,"")+";"))&&re.name&&(re="ing as "+re.name+((re=re.version)?" "+re:""),o.test(ae)?(/\bIE\b/.test(re)&&J=="Mac OS"&&(J=null),re="identify"+re):(re="mask"+re,le?ae=c(le.replace(/([a-z])([A-Z])/g,"$1 $2")):ae="Opera",/\bIE\b/.test(re)&&(J=null),Je||(Ge=null)),Ue=["Presto"],Re.push(re));(re=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(T)||0)[1])&&(re=[parseFloat(re.replace(/\.(\d)$/,".0$1")),re],ae=="Safari"&&re[1].slice(-1)=="+"?(ae="WebKit Nightly",Pe="alpha",Ge=re[1].slice(0,-1)):(Ge==re[1]||Ge==(re[2]=(/\bSafari\/([\d.]+\+?)/i.exec(T)||0)[1]))&&(Ge=null),re[1]=(/\bChrome\/([\d.]+)/i.exec(T)||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)?"":"+")),ae=="Safari"&&(!Ge||parseInt(Ge)>45)&&(Ge=re)),ae=="Opera"&&(re=/\bzbov|zvav$/.exec(J))?(ae+=" ",Re.unshift("desktop mode"),re=="zvav"?(ae+="Mini",Ge=null):ae+="Mobile",J=J.replace(RegExp(" *"+re+"$"),"")):ae=="Safari"&&/\bChrome\b/.exec(Ue&&Ue[1])&&(Re.unshift("desktop mode"),ae="Chrome Mobile",Ge=null,/\bOS X\b/.test(J)?(pe="Apple",J="iOS 4.3+"):J=null),Ge&&Ge.indexOf(re=/[\d.]+$/.exec(J))==0&&T.indexOf("/"+re+"-")>-1&&(J=E(J.replace(re,""))),Ue&&!/\b(?:Avant|Nook)\b/.test(ae)&&(/Browser|Lunascape|Maxthon/.test(ae)||ae!="Safari"&&/^iOS/.test(J)&&/\bSafari\b/.test(Ue[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ae)&&Ue[1])&&((re=Ue[Ue.length-1])&&Re.push(re)),Re.length&&(Re=["("+Re.join("; ")+")"]),pe&<&<.indexOf(pe)<0&&Re.push("on "+pe),lt&&Re.push((/^on /.test(Re[Re.length-1])?"":"on ")+lt),J&&(re=/ ([\d.+]+)$/.exec(J),ct=re&&J.charAt(J.length-re[0].length-1)=="/",J={architecture:32,family:re&&!ct?J.replace(re[0],""):J,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)?(J&&(J.architecture=64,J.family=J.family.replace(RegExp(" *"+re),"")),ae&&(/\bWOW64\b/i.test(T)||Je&&/\w(?:86|32)$/.test(I.cpuClass||I.platform)&&!/\bWin64; x64\b/i.test(T))&&Re.unshift("32-bit")):J&&/^OS X/.test(J.family)&&ae=="Chrome"&&parseFloat(Ge)>=39&&(J.architecture=64),T||(T=null);var ye={};return ye.description=T,ye.layout=Ue&&Ue[0],ye.manufacturer=pe,ye.name=ae,ye.prerelease=Pe,ye.product=lt,ye.ua=T,ye.version=ae&&Ge,ye.os=J||{architecture:null,family:null,version:null,toString:function(){return"null"}},ye.parse=C,ye.toString=he,ye.version&&Re.unshift(Ge),ye.name&&Re.unshift(ae),J&&ae&&!(J==String(J).split(" ")[0]&&(J==ae.split(" ")[0]||lt))&&Re.push(lt?"("+J+")":"on "+J),Re.length&&(ye.description=Re.join(" ")),ye}var _=C();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(x.platform=_,define(function(){return _})):m&&f?h(_,function(T,S){m[S]=T}):x.platform=_}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(R,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(x,v,m,f){if(typeof x!="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(x);case 2:return y.nextTick(function(){x.call(null,v)});case 3:return y.nextTick(function(){x.call(null,v,m)});case 4:return y.nextTick(function(){x.call(null,v,m,f)});default:for(l=new Array(d-1),o=0;o<l.length;)l[o++]=arguments[o];return y.nextTick(function(){x.apply(null,l)})}}}).call(this,R("_process"))},{_process:208}],208:[function(R,D,i){var y=D.exports={},p,x;function v(){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=v}catch(s){p=v}try{typeof clearTimeout=="function"?x=clearTimeout:x=m}catch(s){x=m}})();function f(s){if(p===setTimeout)return setTimeout(s,0);if((p===v||!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(x===clearTimeout)return clearTimeout(s);if((x===m||!x)&&clearTimeout)return x=clearTimeout,clearTimeout(s);try{return x(s)}catch(c){try{return x.call(null,s)}catch(h){return x.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(R,D,i){(function(y){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(p){var x=typeof i=="object"&&i&&!i.nodeType&&i,v=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"},A=l-o,b=Math.floor,w=String.fromCharCode,E;function C(j){throw new RangeError(g[j])}function _(j,K){for(var z=j.length,V=[];z--;)V[z]=K(j[z]);return V}function T(j,K){var z=j.split("@"),V="";z.length>1&&(V=z[0]+"@",j=z[1]),j=j.replace(h,".");var Q=j.split("."),X=_(Q,K).join(".");return V+X}function S(j){for(var K=[],z=0,V=j.length,Q,X;z<V;)Q=j.charCodeAt(z++),Q>=55296&&Q<=56319&&z<V?(X=j.charCodeAt(z++),(X&64512)==56320?K.push(((Q&1023)<<10)+(X&1023)+65536):(K.push(Q),z--)):K.push(Q);return K}function O(j){return _(j,function(K){var z="";return K>65535&&(K-=65536,z+=w(K>>>10&1023|55296),K=56320|K&1023),z+=w(K),z}).join("")}function I(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:l}function F(j,K){return j+22+75*(j<26)-((K!=0)<<5)}function P(j,K,z){var V=0;for(j=z?b(j/a):j>>1,j+=b(j/K);j>A*n>>1;V+=l)j=b(j/A);return b(V+(A+1)*j/(j+t))}function B(j){var K=[],z=j.length,V,Q=0,X=u,te=e,$,le,re,Se,Re,Pe,Je,Ge,ct;for($=j.lastIndexOf(r),$<0&&($=0),le=0;le<$;++le)j.charCodeAt(le)>=128&&C("not-basic"),K.push(j.charCodeAt(le));for(re=$>0?$+1:0;re<z;){for(Se=Q,Re=1,Pe=l;!(re>=z&&C("invalid-input"),Je=I(j.charCodeAt(re++)),(Je>=l||Je>b((d-Q)/Re))&&C("overflow"),Q+=Je*Re,Ge=Pe<=te?o:Pe>=te+n?n:Pe-te,Je<Ge);Pe+=l)ct=l-Ge,Re>b(d/ct)&&C("overflow"),Re*=ct;V=K.length+1,te=P(Q-Se,V,Se==0),b(Q/V)>d-X&&C("overflow"),X+=b(Q/V),Q%=V,K.splice(Q++,0,X)}return O(K)}function k(j){var K,z,V,Q,X,te,$,le,re,Se,Re,Pe=[],Je,Ge,ct,Ue;for(j=S(j),Je=j.length,K=u,z=0,X=e,te=0;te<Je;++te)Re=j[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=j[te],Re>=K&&Re<$&&($=Re);for(Ge=V+1,$-K>b((d-z)/Ge)&&C("overflow"),z+=($-K)*Ge,K=$,te=0;te<Je;++te)if(Re=j[te],Re<K&&++z>d&&C("overflow"),Re==K){for(le=z,re=l;!(Se=re<=X?o:re>=X+n?n:re-X,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))),X=P(z,Ge,V==Q),z=0,++V}++z,++K}return Pe.join("")}function G(j){return T(j,function(K){return s.test(K)?B(K.slice(4).toLowerCase()):K})}function M(j){return T(j,function(K){return c.test(K)?"xn--"+k(K):K})}if(f={version:"1.4.1",ucs2:{decode:S,encode:O},decode:B,encode:k,toASCII:M,toUnicode:G},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return f});else if(x&&v)if(D.exports==x)v.exports=f;else for(E in f)f.hasOwnProperty(E)&&(x[E]=f[E]);else p.punycode=f})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(R,D,i){"use strict";function y(x,v){return Object.prototype.hasOwnProperty.call(x,v)}D.exports=function(x,v,m,f){v=v||"&",m=m||"=";var d={};if(typeof x!="string"||x.length===0)return d;var l=/\+/g;x=x.split(v);var o=1e3;f&&typeof f.maxKeys=="number"&&(o=f.maxKeys);var n=x.length;o>0&&n>o&&(n=o);for(var t=0;t<n;++t){var a=x[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(x){return Object.prototype.toString.call(x)==="[object Array]"}},{}],211:[function(R,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"?x(v(m),function(o){var n=encodeURIComponent(y(o))+d;return p(m[o])?x(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 x(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 v=Object.keys||function(m){var f=[];for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&f.push(d);return f}},{}],212:[function(R,D,i){"use strict";i.decode=i.parse=R("./decode"),i.encode=i.stringify=R("./encode")},{"./decode":210,"./encode":211}],213:[function(R,D,i){D.exports=R("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/create"),p=m(y),x=R("babel-runtime/core-js/object/keys"),v=m(x);function m(c){return c&&c.__esModule?c:{default:c}}var f=R("process-nextick-args"),d=v.default||function(c){var h=[];for(var g in c)h.push(g);return h};D.exports=u;var l=(0,p.default)(R("core-util-is"));l.inherits=R("inherits");var o=R("./_stream_readable"),n=R("./_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(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/create"),p=x(y);function x(d){return d&&d.__esModule?d:{default:d}}D.exports=f;var v=R("./_stream_transform"),m=(0,p.default)(R("core-util-is"));m.inherits=R("inherits"),m.inherits(f,v);function f(d){if(!(this instanceof f))return new f(d);v.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(R,D,i){(function(y,p){"use strict";var x=R("babel-runtime/core-js/object/get-prototype-of"),v=d(x),m=R("babel-runtime/core-js/object/create"),f=d(m);function d(Ue){return Ue&&Ue.__esModule?Ue:{default:Ue}}var l=R("process-nextick-args");D.exports=S;var o=R("isarray"),n;S.ReadableState=T;var t=R("events").EventEmitter,a=function(ae,lt){return ae.listeners(lt).length},e=R("./internal/streams/stream"),u=R("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)(R("core-util-is"));h.inherits=R("inherits");var g=R("util"),A=void 0;g&&g.debuglog?A=g.debuglog("stream"):A=function(){};var b=R("./internal/streams/BufferList"),w=R("./internal/streams/destroy"),E;h.inherits(S,e);var C=["error","close","destroy","pause","resume"];function _(Ue,ae,lt){if(typeof Ue.prependListener=="function")return Ue.prependListener(ae,lt);!Ue._events||!Ue._events[ae]?Ue.on(ae,lt):o(Ue._events[ae])?Ue._events[ae].unshift(lt):Ue._events[ae]=[lt,Ue._events[ae]]}function T(Ue,ae){n=n||R("./_stream_duplex"),Ue=Ue||{};var lt=ae instanceof n;this.objectMode=!!Ue.objectMode,lt&&(this.objectMode=this.objectMode||!!Ue.readableObjectMode);var pe=Ue.highWaterMark,J=Ue.readableHighWaterMark,Y=this.objectMode?16:16*1024;pe||pe===0?this.highWaterMark=pe:lt&&(J||J===0)?this.highWaterMark=J:this.highWaterMark=Y,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Ue.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Ue.encoding&&(E||(E=R("string_decoder/").StringDecoder),this.decoder=new E(Ue.encoding),this.encoding=Ue.encoding)}function S(Ue){if(n=n||R("./_stream_duplex"),!(this instanceof S))return new S(Ue);this._readableState=new T(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(S.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ae){if(!this._readableState)return;this._readableState.destroyed=ae}}),S.prototype.destroy=w.destroy,S.prototype._undestroy=w.undestroy,S.prototype._destroy=function(Ue,ae){this.push(null),ae(Ue)},S.prototype.push=function(Ue,ae){var lt=this._readableState,pe;return lt.objectMode?pe=!0:typeof Ue=="string"&&(ae=ae||lt.defaultEncoding,ae!==lt.encoding&&(Ue=u.from(Ue,ae),ae=""),pe=!0),O(this,Ue,ae,!1,pe)},S.prototype.unshift=function(Ue){return O(this,Ue,null,!0,!1)};function O(Ue,ae,lt,pe,J){var Y=Ue._readableState;if(ae===null)Y.reading=!1,M(Ue,Y);else{var ee;J||(ee=F(Y,ae)),ee?Ue.emit("error",ee):Y.objectMode||ae&&ae.length>0?(typeof ae!="string"&&!Y.objectMode&&(0,v.default)(ae)!==u.prototype&&(ae=s(ae)),pe?Y.endEmitted?Ue.emit("error",new Error("stream.unshift() after end event")):I(Ue,Y,ae,!0):Y.ended?Ue.emit("error",new Error("stream.push() after EOF")):(Y.reading=!1,Y.decoder&&!lt?(ae=Y.decoder.write(ae),Y.objectMode||ae.length!==0?I(Ue,Y,ae,!1):z(Ue,Y)):I(Ue,Y,ae,!1))):pe||(Y.reading=!1)}return P(Y)}function I(Ue,ae,lt,pe){ae.flowing&&ae.length===0&&!ae.sync?(Ue.emit("data",lt),Ue.read(0)):(ae.length+=ae.objectMode?1:lt.length,pe?ae.buffer.unshift(lt):ae.buffer.push(lt),ae.needReadable&&j(Ue)),z(Ue,ae)}function F(Ue,ae){var lt;return!c(ae)&&typeof ae!="string"&&ae!==void 0&&!Ue.objectMode&&(lt=new TypeError("Invalid non-string/buffer chunk")),lt}function P(Ue){return!Ue.ended&&(Ue.needReadable||Ue.length<Ue.highWaterMark||Ue.length===0)}S.prototype.isPaused=function(){return this._readableState.flowing===!1},S.prototype.setEncoding=function(Ue){return E||(E=R("string_decoder/").StringDecoder),this._readableState.decoder=new E(Ue),this._readableState.encoding=Ue,this};var B=8388608;function k(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 G(Ue,ae){return Ue<=0||ae.length===0&&ae.ended?0:ae.objectMode?1:Ue!==Ue?ae.flowing&&ae.length?ae.buffer.head.data.length:ae.length:(Ue>ae.highWaterMark&&(ae.highWaterMark=k(Ue)),Ue<=ae.length?Ue:ae.ended?ae.length:(ae.needReadable=!0,0))}S.prototype.read=function(Ue){A("read",Ue),Ue=parseInt(Ue,10);var ae=this._readableState,lt=Ue;if(Ue!==0&&(ae.emittedReadable=!1),Ue===0&&ae.needReadable&&(ae.length>=ae.highWaterMark||ae.ended))return A("read: emitReadable",ae.length,ae.ended),ae.length===0&&ae.ended?Je(this):j(this),null;if(Ue=G(Ue,ae),Ue===0&&ae.ended)return ae.length===0&&Je(this),null;var pe=ae.needReadable;A("need readable",pe),(ae.length===0||ae.length-Ue<ae.highWaterMark)&&(pe=!0,A("length less than watermark",pe)),ae.ended||ae.reading?(pe=!1,A("reading or ended",pe)):pe&&(A("do read"),ae.reading=!0,ae.sync=!0,ae.length===0&&(ae.needReadable=!0),this._read(ae.highWaterMark),ae.sync=!1,ae.reading||(Ue=G(lt,ae)));var J;return Ue>0?J=re(Ue,ae):J=null,J===null?(ae.needReadable=!0,Ue=0):ae.length-=Ue,ae.length===0&&(ae.ended||(ae.needReadable=!0),lt!==Ue&&ae.ended&&Je(this)),J!==null&&this.emit("data",J),J};function M(Ue,ae){if(ae.ended)return;if(ae.decoder){var lt=ae.decoder.end();lt&<.length&&(ae.buffer.push(lt),ae.length+=ae.objectMode?1:lt.length)}ae.ended=!0,j(Ue)}function j(Ue){var ae=Ue._readableState;ae.needReadable=!1,ae.emittedReadable||(A("emitReadable",ae.flowing),ae.emittedReadable=!0,ae.sync?l.nextTick(K,Ue):K(Ue))}function K(Ue){A("emit readable"),Ue.emit("readable"),le(Ue)}function z(Ue,ae){ae.readingMore||(ae.readingMore=!0,l.nextTick(V,Ue,ae))}function V(Ue,ae){for(var lt=ae.length;!ae.reading&&!ae.flowing&&!ae.ended&&ae.length<ae.highWaterMark&&!(A("maybeReadMore read 0"),Ue.read(0),lt===ae.length);)lt=ae.length;ae.readingMore=!1}S.prototype._read=function(Ue){this.emit("error",new Error("_read() is not implemented"))},S.prototype.pipe=function(Ue,ae){var lt=this,pe=this._readableState;switch(pe.pipesCount){case 0:pe.pipes=Ue;break;case 1:pe.pipes=[pe.pipes,Ue];break;default:pe.pipes.push(Ue);break}pe.pipesCount+=1,A("pipe count=%d opts=%j",pe.pipesCount,ae);var J=(!ae||ae.end!==!1)&&Ue!==y.stdout&&Ue!==y.stderr,Y=J?fe:at;pe.endEmitted?l.nextTick(Y):lt.once("end",Y),Ue.on("unpipe",ee);function ee(Fe,mt){A("onunpipe"),Fe===lt&&(mt&&mt.hasUnpiped===!1&&(mt.hasUnpiped=!0,_e()))}function fe(){A("onend"),Ue.end()}var we=Q(lt);Ue.on("drain",we);var Ce=!1;function _e(){A("cleanup"),Ue.removeListener("close",tt),Ue.removeListener("finish",gt),Ue.removeListener("drain",we),Ue.removeListener("error",Le),Ue.removeListener("unpipe",ee),lt.removeListener("end",fe),lt.removeListener("end",at),lt.removeListener("data",ye),Ce=!0,pe.awaitDrain&&(!Ue._writableState||Ue._writableState.needDrain)&&we()}var he=!1;lt.on("data",ye);function ye(Fe){A("ondata"),he=!1;var mt=Ue.write(Fe);mt===!1&&!he&&((pe.pipesCount===1&&pe.pipes===Ue||pe.pipesCount>1&&ct(pe.pipes,Ue)!==-1)&&!Ce&&(A("false write response, pause",lt._readableState.awaitDrain),lt._readableState.awaitDrain++,he=!0),lt.pause())}function Le(Fe){A("onerror",Fe),at(),Ue.removeListener("error",Le),a(Ue,"error")===0&&Ue.emit("error",Fe)}_(Ue,"error",Le);function tt(){Ue.removeListener("finish",gt),at()}Ue.once("close",tt);function gt(){A("onfinish"),Ue.removeListener("close",tt),at()}Ue.once("finish",gt);function at(){A("unpipe"),lt.unpipe(Ue)}return Ue.emit("pipe",lt),pe.flowing||(A("pipe resume"),lt.resume()),Ue};function Q(Ue){return function(){var ae=Ue._readableState;A("pipeOnDrain",ae.awaitDrain),ae.awaitDrain&&ae.awaitDrain--,ae.awaitDrain===0&&a(Ue,"data")&&(ae.flowing=!0,le(Ue))}}S.prototype.unpipe=function(Ue){var ae=this._readableState,lt={hasUnpiped:!1};if(ae.pipesCount===0)return this;if(ae.pipesCount===1)return Ue&&Ue!==ae.pipes?this:(Ue||(Ue=ae.pipes),ae.pipes=null,ae.pipesCount=0,ae.flowing=!1,Ue&&Ue.emit("unpipe",this,lt),this);if(!Ue){var pe=ae.pipes,J=ae.pipesCount;ae.pipes=null,ae.pipesCount=0,ae.flowing=!1;for(var Y=0;Y<J;Y++)pe[Y].emit("unpipe",this,lt);return this}var ee=ct(ae.pipes,Ue);return ee===-1?this:(ae.pipes.splice(ee,1),ae.pipesCount-=1,ae.pipesCount===1&&(ae.pipes=ae.pipes[0]),Ue.emit("unpipe",this,lt),this)},S.prototype.on=function(Ue,ae){var lt=e.prototype.on.call(this,Ue,ae);if(Ue==="data")this._readableState.flowing!==!1&&this.resume();else if(Ue==="readable"){var pe=this._readableState;!pe.endEmitted&&!pe.readableListening&&(pe.readableListening=pe.needReadable=!0,pe.emittedReadable=!1,pe.reading?pe.length&&j(this):l.nextTick(X,this))}return lt},S.prototype.addListener=S.prototype.on;function X(Ue){A("readable nexttick read 0"),Ue.read(0)}S.prototype.resume=function(){var Ue=this._readableState;return Ue.flowing||(A("resume"),Ue.flowing=!0,te(this,Ue)),this};function te(Ue,ae){ae.resumeScheduled||(ae.resumeScheduled=!0,l.nextTick($,Ue,ae))}function $(Ue,ae){ae.reading||(A("resume read 0"),Ue.read(0)),ae.resumeScheduled=!1,ae.awaitDrain=0,Ue.emit("resume"),le(Ue),ae.flowing&&!ae.reading&&Ue.read(0)}S.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function le(Ue){var ae=Ue._readableState;for(A("flow",ae.flowing);ae.flowing&&Ue.read()!==null;);}S.prototype.wrap=function(Ue){var ae=this,lt=this._readableState,pe=!1;Ue.on("end",function(){if(A("wrapped end"),lt.decoder&&!lt.ended){var ee=lt.decoder.end();ee&&ee.length&&ae.push(ee)}ae.push(null)}),Ue.on("data",function(ee){if(A("wrapped data"),lt.decoder&&(ee=lt.decoder.write(ee)),lt.objectMode&&ee==null)return;if(!lt.objectMode&&(!ee||!ee.length))return;var fe=ae.push(ee);fe||(pe=!0,Ue.pause())});for(var J in Ue)this[J]===void 0&&typeof Ue[J]=="function"&&(this[J]=function(ee){return function(){return Ue[ee].apply(Ue,arguments)}}(J));for(var Y=0;Y<C.length;Y++)Ue.on(C[Y],this.emit.bind(this,C[Y]));return this._read=function(ee){A("wrapped _read",ee),pe&&(pe=!1,Ue.resume())},this},Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),S._fromList=re;function re(Ue,ae){if(ae.length===0)return null;var lt;return ae.objectMode?lt=ae.buffer.shift():!Ue||Ue>=ae.length?(ae.decoder?lt=ae.buffer.join(""):ae.buffer.length===1?lt=ae.buffer.head.data:lt=ae.buffer.concat(ae.length),ae.buffer.clear()):lt=Se(Ue,ae.buffer,ae.decoder),lt}function Se(Ue,ae,lt){var pe;return Ue<ae.head.data.length?(pe=ae.head.data.slice(0,Ue),ae.head.data=ae.head.data.slice(Ue)):Ue===ae.head.data.length?pe=ae.shift():pe=lt?Re(Ue,ae):Pe(Ue,ae),pe}function Re(Ue,ae){var lt=ae.head,pe=1,J=lt.data;for(Ue-=J.length;lt=lt.next;){var Y=lt.data,ee=Ue>Y.length?Y.length:Ue;if(ee===Y.length?J+=Y:J+=Y.slice(0,Ue),Ue-=ee,Ue===0){ee===Y.length?(++pe,lt.next?ae.head=lt.next:ae.head=ae.tail=null):(ae.head=lt,lt.data=Y.slice(ee));break}++pe}return ae.length-=pe,J}function Pe(Ue,ae){var lt=u.allocUnsafe(Ue),pe=ae.head,J=1;for(pe.data.copy(lt),Ue-=pe.data.length;pe=pe.next;){var Y=pe.data,ee=Ue>Y.length?Y.length:Ue;if(Y.copy(lt,lt.length-Ue,0,ee),Ue-=ee,Ue===0){ee===Y.length?(++J,pe.next?ae.head=pe.next:ae.head=ae.tail=null):(ae.head=pe,pe.data=Y.slice(ee));break}++J}return ae.length-=J,lt}function Je(Ue){var ae=Ue._readableState;if(ae.length>0)throw new Error('"endReadable()" called on non-empty stream');ae.endEmitted||(ae.ended=!0,l.nextTick(Ge,ae,Ue))}function Ge(Ue,ae){!Ue.endEmitted&&Ue.length===0&&(Ue.endEmitted=!0,ae.readable=!1,ae.emit("end"))}function ct(Ue,ae){for(var lt=0,pe=Ue.length;lt<pe;lt++)if(Ue[lt]===ae)return lt;return-1}}).call(this,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/create"),p=x(y);function x(n){return n&&n.__esModule?n:{default:n}}D.exports=d;var v=R("./_stream_duplex"),m=(0,p.default)(R("core-util-is"));m.inherits=R("inherits"),m.inherits(d,v);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);v.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,v.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;v.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(R,D,i){(function(y,p){"use strict";var x=R("babel-runtime/core-js/object/define-property"),v=e(x),m=R("babel-runtime/core-js/symbol/has-instance"),f=e(m),d=R("babel-runtime/core-js/symbol"),l=e(d),o=R("babel-runtime/core-js/object/create"),n=e(o),t=R("babel-runtime/core-js/set-immediate"),a=e(t);function e(Pe){return Pe&&Pe.__esModule?Pe:{default:Pe}}var u=R("process-nextick-args");D.exports=F;function r(Pe,Je,Ge){this.chunk=Pe,this.encoding=Je,this.callback=Ge,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=O;var g=(0,n.default)(R("core-util-is"));g.inherits=R("inherits");var A={deprecate:R("util-deprecate")},b=R("./internal/streams/stream"),w=R("safe-buffer").Buffer,E=p.Uint8Array||function(){};function C(Pe){return w.from(Pe)}function _(Pe){return w.isBuffer(Pe)||Pe instanceof E}var T=R("./internal/streams/destroy");g.inherits(F,b);function S(){}function O(Pe,Je){h=h||R("./_stream_duplex"),Pe=Pe||{};var Ge=Je instanceof h;this.objectMode=!!Pe.objectMode,Ge&&(this.objectMode=this.objectMode||!!Pe.writableObjectMode);var ct=Pe.highWaterMark,Ue=Pe.writableHighWaterMark,ae=this.objectMode?16:16*1024;ct||ct===0?this.highWaterMark=ct:Ge&&(Ue||Ue===0)?this.highWaterMark=Ue:this.highWaterMark=ae,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 lt=Pe.decodeStrings===!1;this.decodeStrings=!lt,this.defaultEncoding=Pe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(pe){z(Je,pe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}O.prototype.getBuffer=function(){for(var Je=this.bufferedRequest,Ge=[];Je;)Ge.push(Je),Je=Je.next;return Ge},function(){try{Object.defineProperty(O.prototype,"buffer",{get:A.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Pe){}}();var I;typeof l.default=="function"&&f.default&&typeof Function.prototype[f.default]=="function"?(I=Function.prototype[f.default],(0,v.default)(F,f.default,{value:function(Je){return I.call(this,Je)?!0:this!==F?!1:Je&&Je._writableState instanceof O}})):I=function(Je){return Je instanceof this};function F(Pe){if(h=h||R("./_stream_duplex"),!I.call(F,this)&&!(this instanceof h))return new F(Pe);this._writableState=new O(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 P(Pe,Je){var Ge=new Error("write after end");Pe.emit("error",Ge),u.nextTick(Je,Ge)}function B(Pe,Je,Ge,ct){var Ue=!0,ae=!1;return Ge===null?ae=new TypeError("May not write null values to stream"):typeof Ge!="string"&&Ge!==void 0&&!Je.objectMode&&(ae=new TypeError("Invalid non-string/buffer chunk")),ae&&(Pe.emit("error",ae),u.nextTick(ct,ae),Ue=!1),Ue}F.prototype.write=function(Pe,Je,Ge){var ct=this._writableState,Ue=!1,ae=!ct.objectMode&&_(Pe);return ae&&!w.isBuffer(Pe)&&(Pe=C(Pe)),typeof Je=="function"&&(Ge=Je,Je=null),ae?Je="buffer":Je||(Je=ct.defaultEncoding),typeof Ge!="function"&&(Ge=S),ct.ended?P(this,Ge):(ae||B(this,ct,Pe,Ge))&&(ct.pendingcb++,Ue=G(this,ct,ae,Pe,Je,Ge)),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&&X(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 k(Pe,Je,Ge){return!Pe.objectMode&&Pe.decodeStrings!==!1&&typeof Je=="string"&&(Je=w.from(Je,Ge)),Je}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function G(Pe,Je,Ge,ct,Ue,ae){if(!Ge){var lt=k(Je,ct,Ue);ct!==lt&&(Ge=!0,Ue="buffer",ct=lt)}var pe=Je.objectMode?1:ct.length;Je.length+=pe;var J=Je.length<Je.highWaterMark;if(J||(Je.needDrain=!0),Je.writing||Je.corked){var Y=Je.lastBufferedRequest;Je.lastBufferedRequest={chunk:ct,encoding:Ue,isBuf:Ge,callback:ae,next:null},Y?Y.next=Je.lastBufferedRequest:Je.bufferedRequest=Je.lastBufferedRequest,Je.bufferedRequestCount+=1}else M(Pe,Je,!1,pe,ct,Ue,ae);return J}function M(Pe,Je,Ge,ct,Ue,ae,lt){Je.writelen=ct,Je.writecb=lt,Je.writing=!0,Je.sync=!0,Ge?Pe._writev(Ue,Je.onwrite):Pe._write(Ue,ae,Je.onwrite),Je.sync=!1}function j(Pe,Je,Ge,ct,Ue){--Je.pendingcb,Ge?(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 K(Pe){Pe.writing=!1,Pe.writecb=null,Pe.length-=Pe.writelen,Pe.writelen=0}function z(Pe,Je){var Ge=Pe._writableState,ct=Ge.sync,Ue=Ge.writecb;if(K(Ge),Je)j(Pe,Ge,ct,Je,Ue);else{var ae=te(Ge);!ae&&!Ge.corked&&!Ge.bufferProcessing&&Ge.bufferedRequest&&X(Pe,Ge),ct?c(V,Pe,Ge,ae,Ue):V(Pe,Ge,ae,Ue)}}function V(Pe,Je,Ge,ct){Ge||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 X(Pe,Je){Je.bufferProcessing=!0;var Ge=Je.bufferedRequest;if(Pe._writev&&Ge&&Ge.next){var ct=Je.bufferedRequestCount,Ue=new Array(ct),ae=Je.corkedRequestsFree;ae.entry=Ge;for(var lt=0,pe=!0;Ge;)Ue[lt]=Ge,Ge.isBuf||(pe=!1),Ge=Ge.next,lt+=1;Ue.allBuffers=pe,M(Pe,Je,!0,Je.length,Ue,"",ae.finish),Je.pendingcb++,Je.lastBufferedRequest=null,ae.next?(Je.corkedRequestsFree=ae.next,ae.next=null):Je.corkedRequestsFree=new s(Je),Je.bufferedRequestCount=0}else{for(;Ge;){var J=Ge.chunk,Y=Ge.encoding,ee=Ge.callback,fe=Je.objectMode?1:J.length;if(M(Pe,Je,!1,fe,J,Y,ee),Ge=Ge.next,Je.bufferedRequestCount--,Je.writing)break}Ge===null&&(Je.lastBufferedRequest=null)}Je.bufferedRequest=Ge,Je.bufferProcessing=!1}F.prototype._write=function(Pe,Je,Ge){Ge(new Error("_write() is not implemented"))},F.prototype._writev=null,F.prototype.end=function(Pe,Je,Ge){var ct=this._writableState;typeof Pe=="function"?(Ge=Pe,Pe=null,Je=null):typeof Je=="function"&&(Ge=Je,Je=null),Pe!=null&&this.write(Pe,Je),ct.corked&&(ct.corked=1,this.uncork()),!ct.ending&&!ct.finished&&Se(this,ct,Ge)};function te(Pe){return Pe.ending&&Pe.length===0&&Pe.bufferedRequest===null&&!Pe.finished&&!Pe.writing}function $(Pe,Je){Pe._final(function(Ge){Je.pendingcb--,Ge&&Pe.emit("error",Ge),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 Ge=te(Je);return Ge&&(le(Pe,Je),Je.pendingcb===0&&(Je.finished=!0,Pe.emit("finish"))),Ge}function Se(Pe,Je,Ge){Je.ending=!0,re(Pe,Je),Ge&&(Je.finished?u.nextTick(Ge):Pe.once("finish",Ge)),Je.ended=!0,Pe.writable=!1}function Re(Pe,Je,Ge){var ct=Pe.entry;for(Pe.entry=null;ct;){var Ue=ct.callback;Je.pendingcb--,Ue(Ge),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=T.destroy,F.prototype._undestroy=T.undestroy,F.prototype._destroy=function(Pe,Je){this.end(),Je(Pe)}}).call(this,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(R,D,i){"use strict";function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}var p=R("safe-buffer").Buffer,x=R("util");function v(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;)v(o.data,l,n),n+=o.data.length,o=o.next;return l},m}(),x&&x.inspect&&x.inspect.custom&&(D.exports.prototype[x.inspect.custom]=function(){var m=x.inspect({length:this.length});return this.constructor.name+" "+m})},{"safe-buffer":228,util:71}],220:[function(R,D,i){"use strict";var y=R("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(v,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(v,d,n),d._writableState&&(d._writableState.errorEmitted=!0)):f&&f(n)}),this)}function x(){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 v(m,f){m.emit("error",f)}D.exports={destroy:p,undestroy:x}},{"process-nextick-args":207}],221:[function(R,D,i){"use strict";D.exports=R("events").EventEmitter},{events:192}],222:[function(R,D,i){D.exports=R("./readable").PassThrough},{"./readable":223}],223:[function(R,D,i){i=D.exports=R("./lib/_stream_readable.js"),i.Stream=i,i.Readable=i,i.Writable=R("./lib/_stream_writable.js"),i.Duplex=R("./lib/_stream_duplex.js"),i.Transform=R("./lib/_stream_transform.js"),i.PassThrough=R("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(R,D,i){D.exports=R("./readable").Transform},{"./readable":223}],225:[function(R,D,i){D.exports=R("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(R,D,i){var y=function(){return this}()||Function("return this")(),p=y.regeneratorRuntime&&Object.getOwnPropertyNames(y).indexOf("regeneratorRuntime")>=0,x=p&&y.regeneratorRuntime;if(y.regeneratorRuntime=void 0,D.exports=R("./runtime"),p)y.regeneratorRuntime=x;else try{delete y.regeneratorRuntime}catch(v){y.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(R,D,i){!function(y){"use strict";var p=Object.prototype,x=p.hasOwnProperty,v,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(G,M,j,K){var z=M&&M.prototype instanceof h?M:h,V=Object.create(z.prototype),Q=new P(K||[]);return V._invoke=S(G,j,Q),V}n.wrap=t;function a(G,M,j){try{return{type:"normal",arg:G.call(M,j)}}catch(K){return{type:"throw",arg:K}}}var e="suspendedStart",u="suspendedYield",r="executing",s="completed",c={};function h(){}function g(){}function A(){}var b={};b[f]=function(){return this};var w=Object.getPrototypeOf,E=w&&w(w(B([])));E&&E!==p&&x.call(E,f)&&(b=E);var C=A.prototype=h.prototype=Object.create(b);g.prototype=C.constructor=A,A.constructor=g,A[l]=g.displayName="GeneratorFunction";function _(G){["next","throw","return"].forEach(function(M){G[M]=function(j){return this._invoke(M,j)}})}n.isGeneratorFunction=function(G){var M=typeof G=="function"&&G.constructor;return M?M===g||(M.displayName||M.name)==="GeneratorFunction":!1},n.mark=function(G){return Object.setPrototypeOf?Object.setPrototypeOf(G,A):(G.__proto__=A,l in G||(G[l]="GeneratorFunction")),G.prototype=Object.create(C),G},n.awrap=function(G){return{__await:G}};function T(G){function M(z,V,Q,X){var te=a(G[z],G,V);if(te.type==="throw")X(te.arg);else{var $=te.arg,le=$.value;return le&&typeof le=="object"&&x.call(le,"__await")?Promise.resolve(le.__await).then(function(re){M("next",re,Q,X)},function(re){M("throw",re,Q,X)}):Promise.resolve(le).then(function(re){$.value=re,Q($)},X)}}var j;function K(z,V){function Q(){return new Promise(function(X,te){M(z,V,X,te)})}return j=j?j.then(Q,Q):Q()}this._invoke=K}_(T.prototype),T.prototype[d]=function(){return this},n.AsyncIterator=T,n.async=function(G,M,j,K){var z=new T(t(G,M,j,K));return n.isGeneratorFunction(M)?z:z.next().then(function(V){return V.done?V.value:z.next()})};function S(G,M,j){var K=e;return function(V,Q){if(K===r)throw new Error("Generator is already running");if(K===s){if(V==="throw")throw Q;return k()}for(j.method=V,j.arg=Q;;){var X=j.delegate;if(X){var te=O(X,j);if(te){if(te===c)continue;return te}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(K===e)throw K=s,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);K=r;var $=a(G,M,j);if($.type==="normal"){if(K=j.done?s:u,$.arg===c)continue;return{value:$.arg,done:j.done}}else $.type==="throw"&&(K=s,j.method="throw",j.arg=$.arg)}}}function O(G,M){var j=G.iterator[M.method];if(j===v){if(M.delegate=null,M.method==="throw"){if(G.iterator.return&&(M.method="return",M.arg=v,O(G,M),M.method==="throw"))return c;M.method="throw",M.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var K=a(j,G.iterator,M.arg);if(K.type==="throw")return M.method="throw",M.arg=K.arg,M.delegate=null,c;var z=K.arg;if(!z)return M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,c;if(z.done)M[G.resultName]=z.value,M.next=G.nextLoc,M.method!=="return"&&(M.method="next",M.arg=v);else return z;return M.delegate=null,c}_(C),C[l]="Generator",C[f]=function(){return this},C.toString=function(){return"[object Generator]"};function I(G){var M={tryLoc:G[0]};1 in G&&(M.catchLoc=G[1]),2 in G&&(M.finallyLoc=G[2],M.afterLoc=G[3]),this.tryEntries.push(M)}function F(G){var M=G.completion||{};M.type="normal",delete M.arg,G.completion=M}function P(G){this.tryEntries=[{tryLoc:"root"}],G.forEach(I,this),this.reset(!0)}n.keys=function(G){var M=[];for(var j in G)M.push(j);return M.reverse(),function K(){for(;M.length;){var z=M.pop();if(z in G)return K.value=z,K.done=!1,K}return K.done=!0,K}};function B(G){if(G){var M=G[f];if(M)return M.call(G);if(typeof G.next=="function")return G;if(!isNaN(G.length)){var j=-1,K=function z(){for(;++j<G.length;)if(x.call(G,j))return z.value=G[j],z.done=!1,z;return z.value=v,z.done=!0,z};return K.next=K}}return{next:k}}n.values=B;function k(){return{value:v,done:!0}}P.prototype={constructor:P,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(F),!M)for(var j in this)j.charAt(0)==="t"&&x.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=v)},stop:function(){this.done=!0;var M=this.tryEntries[0],j=M.completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var j=this;function K($,le){return Q.type="throw",Q.arg=M,j.next=$,le&&(j.method="next",j.arg=v),!!le}for(var z=this.tryEntries.length-1;z>=0;--z){var V=this.tryEntries[z],Q=V.completion;if(V.tryLoc==="root")return K("end");if(V.tryLoc<=this.prev){var X=x.call(V,"catchLoc"),te=x.call(V,"finallyLoc");if(X&&te){if(this.prev<V.catchLoc)return K(V.catchLoc,!0);if(this.prev<V.finallyLoc)return K(V.finallyLoc)}else if(X){if(this.prev<V.catchLoc)return K(V.catchLoc,!0)}else if(te){if(this.prev<V.finallyLoc)return K(V.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(M,j){for(var K=this.tryEntries.length-1;K>=0;--K){var z=this.tryEntries[K];if(z.tryLoc<=this.prev&&x.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var V=z;break}}V&&(M==="break"||M==="continue")&&V.tryLoc<=j&&j<=V.finallyLoc&&(V=null);var Q=V?V.completion:{};return Q.type=M,Q.arg=j,V?(this.method="next",this.next=V.finallyLoc,c):this.complete(Q)},complete:function(M,j){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&j&&(this.next=j),c},finish:function(M){for(var j=this.tryEntries.length-1;j>=0;--j){var K=this.tryEntries[j];if(K.finallyLoc===M)return this.complete(K.completion,K.afterLoc),F(K),c}},catch:function(M){for(var j=this.tryEntries.length-1;j>=0;--j){var K=this.tryEntries[j];if(K.tryLoc===M){var z=K.completion;if(z.type==="throw"){var V=z.arg;F(K)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(M,j,K){return this.delegate={iterator:B(M),resultName:j,nextLoc:K},this.method==="next"&&(this.arg=v),c}}}(function(){return this}()||Function("return this")())},{}],228:[function(R,D,i){var y=R("buffer"),p=y.Buffer;function x(m,f){for(var d in m)f[d]=m[d]}p.from&&p.alloc&&p.allocUnsafe&&p.allocUnsafeSlow?D.exports=y:(x(y,i),i.Buffer=v);function v(m,f,d){return p(m,f,d)}x(p,v),v.from=function(m,f,d){if(typeof m=="number")throw new TypeError("Argument must not be a number");return p(m,f,d)},v.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},v.allocUnsafe=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return p(m)},v.allocUnsafeSlow=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return y.SlowBuffer(m)}},{buffer:73}],229:[function(R,D,i){(function(y){"use strict";var p=R("babel-runtime/core-js/string/from-code-point"),x=u(p),v=R("babel-runtime/core-js/json/stringify"),m=u(v),f=R("babel-runtime/helpers/typeof"),d=u(f),l=R("babel-runtime/core-js/object/define-property"),o=u(l),n=R("babel-runtime/core-js/object/keys"),t=u(n),a=R("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=C,r.createStream=E,r.MAX_BUFFER_LENGTH=64*1024;var s=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function c(Y,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)(I)),fe.trackPosition=fe.opt.position!==!1,fe.trackPosition&&(fe.position=fe.line=fe.column=0),X(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,we=0,Ce=s.length;we<Ce;we++){var _e=Y[s[we]].length;if(_e>ee)switch(s[we]){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[we])}fe=Math.max(fe,_e)}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 A(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:J,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){A(this)}};var b;try{b=R("stream").Stream}catch(Y){b=function(){}}var w=r.EVENTS.filter(function(Y){return Y!=="error"&&Y!=="end"});function E(Y,ee){return new C(Y,ee)}function C(Y,ee){if(!(this instanceof C))return new C(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(we){fe.emit("error",we),fe._parser.error=null},this._decoder=null,w.forEach(function(we){(0,o.default)(fe,"on"+we,{get:function(){return fe._parser["on"+we]},set:function(_e){if(!_e)return fe.removeAllListeners(we),fe._parser["on"+we]=_e,_e;fe.on(we,_e)},enumerable:!0,configurable:!1})})}C.prototype=(0,e.default)(b.prototype,{constructor:{value:C}}),C.prototype.write=function(Y){if(typeof y=="function"&&typeof y.isBuffer=="function"&&y.isBuffer(Y)){if(!this._decoder){var ee=R("string_decoder").StringDecoder;this._decoder=new ee("utf8")}Y=this._decoder.write(Y)}return this._parser.write(Y.toString()),this.emit("data",Y),!0},C.prototype.end=function(Y){return Y&&Y.length&&this.write(Y),this._parser.end(),!0},C.prototype.on=function(Y,ee){var fe=this;return!fe._parser["on"+Y]&&w.indexOf(Y)!==-1&&(fe._parser["on"+Y]=function(){var we=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);we.splice(0,0,Y),fe.emit.apply(fe,we)}),b.prototype.on.call(fe,Y,ee)};var _="[CDATA[",T="DOCTYPE",S="http://www.w3.org/XML/1998/namespace",O="http://www.w3.org/2000/xmlns/",I={xml:S,xmlns:O},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]/,P=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,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]/,k=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function G(Y){return Y===" "||Y===`
|
|
|
`||Y==="\r"||Y===" "}function M(Y){return Y==='"'||Y==="'"}function j(Y){return Y===">"||G(Y)}function K(Y,ee){return Y.test(ee)}function z(Y,ee){return!K(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 X(Y,ee,fe){Y[ee]&&Y[ee](fe)}function te(Y,ee,fe){Y.textNode&&$(Y),X(Y,ee,fe)}function $(Y){Y.textNode=le(Y.opt,Y.textNode),Y.textNode&&X(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,X(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,X(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(":"),we=fe<0?["",Y]:Y.split(":"),Ce=we[0],_e=we[1];return ee&&Y==="xmlns"&&(Ce="xmlns",_e=""),{prefix:Ce,local:_e}}function Ge(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,we=ee.local;if(fe==="xmlns")if(we==="xml"&&Y.attribValue!==S)Re(Y,"xml: prefix must be bound to "+S+`
|
|
|
Actual: `+Y.attribValue);else if(we==="xmlns"&&Y.attribValue!==O)Re(Y,"xmlns: prefix must be bound to "+O+`
|
|
|
Actual: `+Y.attribValue);else{var Ce=Y.tag,_e=Y.tags[Y.tags.length-1]||Y;Ce.ns===_e.ns&&(Ce.ns=(0,e.default)(_e.ns)),Ce.ns[we]=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,we=Je(Y.tagName);fe.prefix=we.prefix,fe.local=we.local,fe.uri=fe.ns[we.prefix]||"",fe.prefix&&!fe.uri&&(Re(Y,"Unbound namespace prefix: "+(0,m.default)(Y.tagName)),fe.uri=we.prefix);var Ce=Y.tags[Y.tags.length-1]||Y;fe.ns&&Ce.ns!==fe.ns&&(0,t.default)(fe.ns).forEach(function(St){te(Y,"onopennamespace",{prefix:St,uri:fe.ns[St]})});for(var _e=0,he=Y.attribList.length;_e<he;_e++){var ye=Y.attribList[_e],Le=ye[0],tt=ye[1],gt=Je(Le,!0),at=gt.prefix,Fe=gt.local,mt=at===""?"":fe.ns[at]||"",et={name:Le,value:tt,prefix:at,local:Fe,uri:mt};at&&at!=="xmlns"&&!mt&&(Re(Y,"Unbound namespace prefix: "+(0,m.default)(at)),et.uri=at),Y.tag.attributes[Le]=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 we=fe;ee--;){var Ce=Y.tags[ee];if(Ce.name!==we)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 _e=Y.tags.length;_e-- >ee;){var he=Y.tag=Y.tags.pop();Y.tagName=Y.tag.name,te(Y,"onclosetag",Y.tagName);var ye={};for(var Le in he.ns)ye[Le]=he.ns[Le];var tt=Y.tags[Y.tags.length-1]||Y;Y.opt.xmlns&&he.ns!==tt.ns&&(0,t.default)(he.ns).forEach(function(gt){var at=he.ns[gt];te(Y,"onclosenamespace",{prefix:gt,uri:at})})}ee===0&&(Y.closedRoot=!0),Y.tagName=Y.attribValue=Y.attribName="",Y.attribList.length=0,Y.state=V.TEXT}function ae(Y){var ee=Y.entity,fe=ee.toLowerCase(),we,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),we=parseInt(ee,16),Ce=we.toString(16)):(ee=ee.slice(1),we=parseInt(ee,10),Ce=we.toString(10))),ee=ee.replace(/^0+/,""),isNaN(we)||Ce.toLowerCase()!==ee?(Re(Y,"Invalid character entity"),"&"+Y.entity+";"):(0,x.default)(we))}function lt(Y,ee){ee==="<"?(Y.state=V.OPEN_WAKA,Y.startTagPosition=Y.position):G(ee)||(Re(Y,"Non-whitespace before first tag."),Y.textNode=ee,Y.state=V.TEXT)}function pe(Y,ee){var fe="";return ee<Y.length&&(fe=Y.charAt(ee)),fe}function J(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,we="";!(we=pe(Y,fe++),ee.c=we,!we);){ee.trackPosition&&(ee.position++,we===`
|
|
|
`?(ee.line++,ee.column=0):ee.column++);switch(ee.state){case V.BEGIN:if(ee.state=V.BEGIN_WHITESPACE,we==="\uFEFF")continue;lt(ee,we);continue;case V.BEGIN_WHITESPACE:lt(ee,we);continue;case V.TEXT:if(ee.sawRoot&&!ee.closedRoot){for(var Ce=fe-1;we&&we!=="<"&&we!=="&";)we=pe(Y,fe++),we&&ee.trackPosition&&(ee.position++,we===`
|
|
|
`?(ee.line++,ee.column=0):ee.column++);ee.textNode+=Y.substring(Ce,fe-1)}we==="<"&&!(ee.sawRoot&&ee.closedRoot&&!ee.strict)?(ee.state=V.OPEN_WAKA,ee.startTagPosition=ee.position):(!G(we)&&(!ee.sawRoot||ee.closedRoot)&&Re(ee,"Text data outside of root node."),we==="&"?ee.state=V.TEXT_ENTITY:ee.textNode+=we);continue;case V.SCRIPT:we==="<"?ee.state=V.SCRIPT_ENDING:ee.script+=we;continue;case V.SCRIPT_ENDING:we==="/"?ee.state=V.CLOSE_TAG:(ee.script+="<"+we,ee.state=V.SCRIPT);continue;case V.OPEN_WAKA:if(we==="!")ee.state=V.SGML_DECL,ee.sgmlDecl="";else if(!G(we))if(K(F,we))ee.state=V.OPEN_TAG,ee.tagName=we;else if(we==="/")ee.state=V.CLOSE_TAG,ee.tagName="";else if(we==="?")ee.state=V.PROC_INST,ee.procInstName=ee.procInstBody="";else{if(Re(ee,"Unencoded <"),ee.startTagPosition+1<ee.position){var _e=ee.position-ee.startTagPosition;we=new Array(_e).join(" ")+we}ee.textNode+="<"+we,ee.state=V.TEXT}continue;case V.SGML_DECL:(ee.sgmlDecl+we).toUpperCase()===_?(te(ee,"onopencdata"),ee.state=V.CDATA,ee.sgmlDecl="",ee.cdata=""):ee.sgmlDecl+we==="--"?(ee.state=V.COMMENT,ee.comment="",ee.sgmlDecl=""):(ee.sgmlDecl+we).toUpperCase()===T?(ee.state=V.DOCTYPE,(ee.doctype||ee.sawRoot)&&Re(ee,"Inappropriately located doctype declaration"),ee.doctype="",ee.sgmlDecl=""):we===">"?(te(ee,"onsgmldeclaration",ee.sgmlDecl),ee.sgmlDecl="",ee.state=V.TEXT):(M(we)&&(ee.state=V.SGML_DECL_QUOTED),ee.sgmlDecl+=we);continue;case V.SGML_DECL_QUOTED:we===ee.q&&(ee.state=V.SGML_DECL,ee.q=""),ee.sgmlDecl+=we;continue;case V.DOCTYPE:we===">"?(ee.state=V.TEXT,te(ee,"ondoctype",ee.doctype),ee.doctype=!0):(ee.doctype+=we,we==="["?ee.state=V.DOCTYPE_DTD:M(we)&&(ee.state=V.DOCTYPE_QUOTED,ee.q=we));continue;case V.DOCTYPE_QUOTED:ee.doctype+=we,we===ee.q&&(ee.q="",ee.state=V.DOCTYPE);continue;case V.DOCTYPE_DTD:ee.doctype+=we,we==="]"?ee.state=V.DOCTYPE:M(we)&&(ee.state=V.DOCTYPE_DTD_QUOTED,ee.q=we);continue;case V.DOCTYPE_DTD_QUOTED:ee.doctype+=we,we===ee.q&&(ee.state=V.DOCTYPE_DTD,ee.q="");continue;case V.COMMENT:we==="-"?ee.state=V.COMMENT_ENDING:ee.comment+=we;continue;case V.COMMENT_ENDING:we==="-"?(ee.state=V.COMMENT_ENDED,ee.comment=le(ee.opt,ee.comment),ee.comment&&te(ee,"oncomment",ee.comment),ee.comment=""):(ee.comment+="-"+we,ee.state=V.COMMENT);continue;case V.COMMENT_ENDED:we!==">"?(Re(ee,"Malformed comment"),ee.comment+="--"+we,ee.state=V.COMMENT):ee.state=V.TEXT;continue;case V.CDATA:we==="]"?ee.state=V.CDATA_ENDING:ee.cdata+=we;continue;case V.CDATA_ENDING:we==="]"?ee.state=V.CDATA_ENDING_2:(ee.cdata+="]"+we,ee.state=V.CDATA);continue;case V.CDATA_ENDING_2:we===">"?(ee.cdata&&te(ee,"oncdata",ee.cdata),te(ee,"onclosecdata"),ee.cdata="",ee.state=V.TEXT):we==="]"?ee.cdata+="]":(ee.cdata+="]]"+we,ee.state=V.CDATA);continue;case V.PROC_INST:we==="?"?ee.state=V.PROC_INST_ENDING:G(we)?ee.state=V.PROC_INST_BODY:ee.procInstName+=we;continue;case V.PROC_INST_BODY:if(!ee.procInstBody&&G(we))continue;we==="?"?ee.state=V.PROC_INST_ENDING:ee.procInstBody+=we;continue;case V.PROC_INST_ENDING:we===">"?(te(ee,"onprocessinginstruction",{name:ee.procInstName,body:ee.procInstBody}),ee.procInstName=ee.procInstBody="",ee.state=V.TEXT):(ee.procInstBody+="?"+we,ee.state=V.PROC_INST_BODY);continue;case V.OPEN_TAG:K(P,we)?ee.tagName+=we:(Pe(ee),we===">"?ct(ee):we==="/"?ee.state=V.OPEN_TAG_SLASH:(G(we)||Re(ee,"Invalid character in tag name"),ee.state=V.ATTRIB));continue;case V.OPEN_TAG_SLASH:we===">"?(ct(ee,!0),Ue(ee)):(Re(ee,"Forward-slash in opening tag not followed by >"),ee.state=V.ATTRIB);continue;case V.ATTRIB:if(G(we))continue;we===">"?ct(ee):we==="/"?ee.state=V.OPEN_TAG_SLASH:K(F,we)?(ee.attribName=we,ee.attribValue="",ee.state=V.ATTRIB_NAME):Re(ee,"Invalid attribute name");continue;case V.ATTRIB_NAME:we==="="?ee.state=V.ATTRIB_VALUE:we===">"?(Re(ee,"Attribute without value"),ee.attribValue=ee.attribName,Ge(ee),ct(ee)):G(we)?ee.state=V.ATTRIB_NAME_SAW_WHITE:K(P,we)?ee.attribName+=we:Re(ee,"Invalid attribute name");continue;case V.ATTRIB_NAME_SAW_WHITE:if(we==="=")ee.state=V.ATTRIB_VALUE;else{if(G(we))continue;Re(ee,"Attribute without value"),ee.tag.attributes[ee.attribName]="",ee.attribValue="",te(ee,"onattribute",{name:ee.attribName,value:""}),ee.attribName="",we===">"?ct(ee):K(F,we)?(ee.attribName=we,ee.state=V.ATTRIB_NAME):(Re(ee,"Invalid attribute name"),ee.state=V.ATTRIB)}continue;case V.ATTRIB_VALUE:if(G(we))continue;M(we)?(ee.q=we,ee.state=V.ATTRIB_VALUE_QUOTED):(Re(ee,"Unquoted attribute value"),ee.state=V.ATTRIB_VALUE_UNQUOTED,ee.attribValue=we);continue;case V.ATTRIB_VALUE_QUOTED:if(we!==ee.q){we==="&"?ee.state=V.ATTRIB_VALUE_ENTITY_Q:ee.attribValue+=we;continue}Ge(ee),ee.q="",ee.state=V.ATTRIB_VALUE_CLOSED;continue;case V.ATTRIB_VALUE_CLOSED:G(we)?ee.state=V.ATTRIB:we===">"?ct(ee):we==="/"?ee.state=V.OPEN_TAG_SLASH:K(F,we)?(Re(ee,"No whitespace between attributes"),ee.attribName=we,ee.attribValue="",ee.state=V.ATTRIB_NAME):Re(ee,"Invalid attribute name");continue;case V.ATTRIB_VALUE_UNQUOTED:if(!j(we)){we==="&"?ee.state=V.ATTRIB_VALUE_ENTITY_U:ee.attribValue+=we;continue}Ge(ee),we===">"?ct(ee):ee.state=V.ATTRIB;continue;case V.CLOSE_TAG:if(ee.tagName)we===">"?Ue(ee):K(P,we)?ee.tagName+=we:ee.script?(ee.script+="</"+ee.tagName,ee.tagName="",ee.state=V.SCRIPT):(G(we)||Re(ee,"Invalid tagname in closing tag"),ee.state=V.CLOSE_TAG_SAW_WHITE);else{if(G(we))continue;z(F,we)?ee.script?(ee.script+="</"+we,ee.state=V.SCRIPT):Re(ee,"Invalid tagname in closing tag."):ee.tagName=we}continue;case V.CLOSE_TAG_SAW_WHITE:if(G(we))continue;we===">"?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}we===";"?(ee[ye]+=ae(ee),ee.entity="",ee.state=he):K(ee.entity.length?k:B,we)?ee.entity+=we:(Re(ee,"Invalid character in entity name"),ee[ye]+="&"+ee.entity+we,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 */x.default||function(){var Y=String.fromCharCode,ee=Math.floor,fe=function(){var Ce=16384,_e=[],he,ye,Le=-1,tt=arguments.length;if(!tt)return"";for(var gt="";++Le<tt;){var at=Number(arguments[Le]);if(!isFinite(at)||at<0||at>1114111||ee(at)!==at)throw RangeError("Invalid code point: "+at);at<=65535?_e.push(at):(at-=65536,he=(at>>10)+55296,ye=at%1024+56320,_e.push(he,ye)),(Le+1===tt||_e.length>Ce)&&(gt+=Y.apply(null,_e),_e.length=0)}return gt};o.default?Object.defineProperty(String,"fromCodePoint",{value:fe,configurable:!0,writable:!0}):String.fromCodePoint=fe}()})(typeof i=="undefined"?(void 0).sax={}:i)}).call(this,R("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(R,D,i){D.exports=x;var y=R("events").EventEmitter,p=R("inherits");p(x,y),x.Readable=R("readable-stream/readable.js"),x.Writable=R("readable-stream/writable.js"),x.Duplex=R("readable-stream/duplex.js"),x.Transform=R("readable-stream/transform.js"),x.PassThrough=R("readable-stream/passthrough.js"),x.Stream=x;function x(){y.call(this)}x.prototype.pipe=function(v,m){var f=this;function d(u){v.writable&&(v.write(u)===!1&&f.pause&&f.pause())}f.on("data",d);function l(){f.readable&&f.resume&&f.resume()}v.on("drain",l),!v._isStdio&&(!m||m.end!==!1)&&(f.on("end",n),f.on("close",t));var o=!1;function n(){if(o)return;o=!0,v.end()}function t(){if(o)return;o=!0,typeof v.destroy=="function"&&v.destroy()}function a(u){if(e(),y.listenerCount(this,"error")===0)throw u}f.on("error",a),v.on("error",a);function e(){f.removeListener("data",d),v.removeListener("drain",l),f.removeListener("end",n),f.removeListener("close",t),f.removeListener("error",a),v.removeListener("error",a),f.removeListener("end",e),f.removeListener("close",e),v.removeListener("close",e)}return f.on("end",e),f.on("close",e),v.on("close",e),v.emit("pipe",f),v}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(R,D,i){(function(y){var p=R("./lib/request"),x=R("./lib/response"),v=R("xtend"),m=R("builtin-status-codes"),f=R("url"),d=i;d.request=function(l,o){typeof l=="string"?l=f.parse(l):l=v(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=x.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(R,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 x(){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 v(l){var o=x();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&&v("arraybuffer"),i.msstream=!i.fetch&&f&&v("ms-stream"),i.mozchunkedarraybuffer=!i.fetch&&m&&v("moz-chunked-arraybuffer"),i.overrideMimeType=i.fetch||(x()?d(x().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(R,D,i){(function(y,p,x){"use strict";var v=R("babel-runtime/core-js/object/keys"),m=f(v);function f(h){return h&&h.__esModule?h:{default:h}}var d=R("./capability"),l=R("inherits"),o=R("./response"),n=R("readable-stream"),t=R("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 x(h.auth).toString("base64")),(0,m.default)(h.headers).forEach(function(w){g.setHeader(w,h.headers[w])});var A,b=!0;if(h.mode==="disable-fetch"||"requestTimeout"in h&&!d.abortController)b=!1,A=!0;else if(h.mode==="prefer-streaming")A=!1;else if(h.mode==="allow-wrong-content-type")A=!d.overrideMimeType;else if(!h.mode||h.mode==="default"||h.mode==="prefer-fast")A=!0;else throw new Error("Invalid value for opts.mode");g._mode=u(A,b),g._fetchTimer=null,g.on("finish",function(){g._onFinish()})};l(r,n.Writable),r.prototype.setHeader=function(h,g){var A=this,b=h.toLowerCase();if(c.indexOf(b)!==-1)return;A._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,A=h._headers,b=null;g.method!=="GET"&&g.method!=="HEAD"&&(d.arraybuffer?b=t(x.concat(h._body)):d.blobConstructor?b=new p.Blob(h._body.map(function(S){return t(S)}),{type:(A["content-type"]||{}).value||""}):b=x.concat(h._body).toString());var w=[];if((0,m.default)(A).forEach(function(S){var O=A[S].name,I=A[S].value;Array.isArray(I)?I.forEach(function(F){w.push([O,F])}):w.push([O,I])}),h._mode==="fetch"){var E=null,C=null;if(d.abortController){var _=new AbortController;E=_.signal,h._fetchAbortController=_,"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:E}).then(function(S){h._fetchResponse=S,h._connect()},function(S){p.clearTimeout(h._fetchTimer),h._destroyed||h.emit("error",S)})}else{var T=h._xhr=new p.XMLHttpRequest;try{T.open(h._opts.method,h._opts.url,!0)}catch(S){y.nextTick(function(){h.emit("error",S)});return}"responseType"in T&&(T.responseType=h._mode.split(":")[0]),"withCredentials"in T&&(T.withCredentials=!!g.withCredentials),h._mode==="text"&&"overrideMimeType"in T&&T.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in g&&(T.timeout=g.requestTimeout,T.ontimeout=function(){h.emit("requestTimeout")}),w.forEach(function(S){T.setRequestHeader(S[0],S[1])}),h._response=null,T.onreadystatechange=function(){switch(T.readyState){case e.LOADING:case e.DONE:h._onXHRProgress();break}},h._mode==="moz-chunked-arraybuffer"&&(T.onprogress=function(){h._onXHRProgress()}),T.onerror=function(){if(h._destroyed)return;h.emit("error",new Error("XHR error"))};try{T.send(b)}catch(S){y.nextTick(function(){h.emit("error",S)});return}}};function s(h){try{var g=h.status;return g!==null&&g!==0}catch(A){return!1}}r.prototype._onXHRProgress=function(){var h=this;if(!s(h._xhr)||h._destroyed)return;h._response||h._connect(),h._response._onXHRProgress()},r.prototype._connect=function(){var h=this;if(h._destroyed)return;h._response=new 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,A){var b=this;b._body.push(h),A()},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,A){var b=this;typeof h=="function"&&(A=h,h=void 0),n.Writable.prototype.end.call(b,h,g,A)},r.prototype.flushHeaders=function(){},r.prototype.setTimeout=function(){},r.prototype.setNoDelay=function(){},r.prototype.setSocketKeepAlive=function(){};var c=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},R("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(R,D,i){(function(y,p,x){"use strict";var v=R("babel-runtime/core-js/promise"),m=f(v);function f(a){return a&&a.__esModule?a:{default:a}}var d=R("./capability"),l=R("inherits"),o=R("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 E(){g.read().then(function(C){if(s._destroyed)return;if(C.done){p.clearTimeout(r),s.push(null);return}s.push(new x(C.value)),E()}).catch(function(C){p.clearTimeout(r),s._destroyed||s.emit("error",C)})};if(s._fetchResponse=e,s.url=e.url,s.statusCode=e.status,s.statusMessage=e.statusText,e.headers.forEach(function(E,C){s.headers[C.toLowerCase()]=E,s.rawHeaders.push(C,E)}),d.writableStream){var h=new WritableStream({write:function(C){return new m.default(function(_,T){s._destroyed?T():s.push(new x(C))?_():s._resumeFetch=_})},close:function(){p.clearTimeout(r),s._destroyed||s.push(null)},abort:function(C){s._destroyed||s.emit("error",C)}});try{e.body.pipeTo(h).catch(function(E){p.clearTimeout(r),s._destroyed||s.emit("error",E)});return}catch(E){}}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 A=a.getAllResponseHeaders().split(/\r?\n/);if(A.forEach(function(E){var C=E.match(/^([^:]+):\s*(.*)/);if(C){var _=C[1].toLowerCase();_==="set-cookie"?(s.headers[_]===void 0&&(s.headers[_]=[]),s.headers[_].push(C[2])):s.headers[_]!==void 0?s.headers[_]+=", "+C[2]:s.headers[_]=C[2],s.rawHeaders.push(C[1],C[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 x(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 x(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 x(new Uint8Array(u)));break;case"moz-chunked-arraybuffer":if(u=e.response,e.readyState!==n.LOADING||!u)break;a.push(new x(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 x(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,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},R("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(R,D,i){"use strict";var y=R("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 x(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 v(h){var g=x(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=v(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,A;if(this.lastNeed){if(g=this.fillLast(h),g===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<h.length?g?g+this.text(h,A):this.text(h,A):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,A){var b=g.length-1;if(b<A)return 0;var w=f(g[b]);return w>=0?(w>0&&(h.lastNeed=w-1),w):--b<A||w===-2?0:(w=f(g[b]),w>=0?(w>0&&(h.lastNeed=w-2),w):--b<A||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,A){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,A=l(this,h,g);if(A!==void 0)return A;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 A=d(this,h,g);if(!this.lastNeed)return h.toString("utf8",g);this.lastTotal=A;var b=h.length-(A-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 A=h.toString("utf16le",g);if(A){var b=A.charCodeAt(A.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",g,h.length-1)}function e(h){var g=h&&h.length?this.write(h):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,A)}return g}function u(h,g){var A=(h.length-g)%3;return A===0?h.toString("base64",g):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=h[h.length-1]:(this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1]),h.toString("base64",g,h.length-A))}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(R,D,i){(function(y,p){var x=R("process/browser.js").nextTick,v=Function.prototype.apply,m=Array.prototype.slice,f={},d=0;i.setTimeout=function(){return new l(v.call(setTimeout,window,arguments),clearTimeout)},i.setInterval=function(){return new l(v.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,x(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,R("timers").setImmediate,R("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(R,D,i){var y=R("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 x=new Uint8Array(p.length),v=p.length,m=0;m<v;m++)x[m]=p[m];return x.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(R,D,i){"use strict";var y=R("punycode"),p=R("./util");i.parse=g,i.resolve=b,i.resolveObject=w,i.format=A,i.Url=x;function x(){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 v=/^([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=R("querystring");function g(E,C,_){if(E&&p.isObject(E)&&E instanceof x)return E;var T=new x;return T.parse(E,C,_),T}x.prototype.parse=function(E,C,_){if(!p.isString(E))throw new TypeError("Parameter 'url' must be a string, not "+typeof E);var T=E.indexOf("?"),S=T!==-1&&T<E.indexOf("#")?"?":"#",O=E.split(S),I=/\\/g;O[0]=O[0].replace(I,"/"),E=O.join(S);var F=E;if(F=F.trim(),!_&&E.split("#").length===1){var P=f.exec(F);if(P)return this.path=F,this.href=F,this.pathname=P[1],P[2]?(this.search=P[2],C?this.query=h.parse(this.search.substr(1)):this.query=this.search.substr(1)):C&&(this.search="",this.query={}),this}var B=v.exec(F);if(B){B=B[0];var k=B.toLowerCase();this.protocol=k,F=F.substr(B.length)}if(_||B||F.match(/^\/\/[^@\/]+@[^@\/]+/)){var G=F.substr(0,2)==="//";G&&!(B&&s[B])&&(F=F.substr(2),this.slashes=!0)}if(!s[B]&&(G||B&&!c[B])){for(var M=-1,j=0;j<t.length;j++){var K=F.indexOf(t[j]);K!==-1&&(M===-1||K<M)&&(M=K)}var z,V;M===-1?V=F.lastIndexOf("@"):V=F.lastIndexOf("@",M),V!==-1&&(z=F.slice(0,V),F=F.slice(V+1),this.auth=decodeURIComponent(z)),M=-1;for(var j=0;j<n.length;j++){var K=F.indexOf(n[j]);K!==-1&&(M===-1||K<M)&&(M=K)}M===-1&&(M=F.length),this.host=F.slice(0,M),F=F.slice(M),this.parseHost(),this.hostname=this.hostname||"";var Q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Q)for(var X=this.hostname.split(/\./),j=0,te=X.length;j<te;j++){var $=X[j];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=X.slice(0,j),Pe=X.slice(j+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 Ge=this.port?":"+this.port:"",ct=this.hostname||"";this.host=ct+Ge,this.href+=this.host,Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),F[0]!=="/"&&(F="/"+F))}if(!r[k])for(var j=0,te=o.length;j<te;j++){var Ue=o[j];if(F.indexOf(Ue)===-1)continue;var ae=encodeURIComponent(Ue);ae===Ue&&(ae=escape(Ue)),F=F.split(Ue).join(ae)}var lt=F.indexOf("#");lt!==-1&&(this.hash=F.substr(lt),F=F.slice(0,lt));var pe=F.indexOf("?");if(pe!==-1?(this.search=F.substr(pe),this.query=F.substr(pe+1),C&&(this.query=h.parse(this.query)),F=F.slice(0,pe)):C&&(this.search="",this.query={}),F&&(this.pathname=F),c[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ge=this.pathname||"",J=this.search||"";this.path=Ge+J}return this.href=this.format(),this};function A(E){return p.isString(E)&&(E=g(E)),E instanceof x?E.format():x.prototype.format.call(E)}x.prototype.format=function(){var E=this.auth||"";E&&(E=encodeURIComponent(E),E=E.replace(/%3A/i,":"),E+="@");var C=this.protocol||"",_=this.pathname||"",T=this.hash||"",S=!1,O="";this.host?S=E+this.host:this.hostname&&(S=E+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(S+=":"+this.port)),this.query&&p.isObject(this.query)&&Object.keys(this.query).length&&(O=h.stringify(this.query));var I=this.search||O&&"?"+O||"";return C&&C.substr(-1)!==":"&&(C+=":"),this.slashes||(!C||c[C])&&S!==!1?(S="//"+(S||""),_&&_.charAt(0)!=="/"&&(_="/"+_)):S||(S=""),T&&T.charAt(0)!=="#"&&(T="#"+T),I&&I.charAt(0)!=="?"&&(I="?"+I),_=_.replace(/[?#]/g,function(F){return encodeURIComponent(F)}),I=I.replace("#","%23"),C+S+_+I+T};function b(E,C){return g(E,!1,!0).resolve(C)}x.prototype.resolve=function(E){return this.resolveObject(g(E,!1,!0)).format()};function w(E,C){return E?g(E,!1,!0).resolveObject(C):C}x.prototype.resolveObject=function(E){if(p.isString(E)){var C=new x;C.parse(E,!1,!0),E=C}for(var _=new x,T=Object.keys(this),S=0;S<T.length;S++){var O=T[S];_[O]=this[O]}if(_.hash=E.hash,E.href==="")return _.href=_.format(),_;if(E.slashes&&!E.protocol){for(var I=Object.keys(E),F=0;F<I.length;F++){var P=I[F];P!=="protocol"&&(_[P]=E[P])}return c[_.protocol]&&_.hostname&&!_.pathname&&(_.path=_.pathname="/"),_.href=_.format(),_}if(E.protocol&&E.protocol!==_.protocol){if(!c[E.protocol]){for(var B=Object.keys(E),k=0;k<B.length;k++){var G=B[k];_[G]=E[G]}return _.href=_.format(),_}if(_.protocol=E.protocol,!E.host&&!s[E.protocol]){for(var te=(E.pathname||"").split("/");te.length&&!(E.host=te.shift()););E.host||(E.host=""),E.hostname||(E.hostname=""),te[0]!==""&&te.unshift(""),te.length<2&&te.unshift(""),_.pathname=te.join("/")}else _.pathname=E.pathname;if(_.search=E.search,_.query=E.query,_.host=E.host||"",_.auth=E.auth,_.hostname=E.hostname||E.host,_.port=E.port,_.pathname||_.search){var M=_.pathname||"",j=_.search||"";_.path=M+j}return _.slashes=_.slashes||E.slashes,_.href=_.format(),_}var K=_.pathname&&_.pathname.charAt(0)==="/",z=E.host||E.pathname&&E.pathname.charAt(0)==="/",V=z||K||_.host&&E.pathname,Q=V,X=_.pathname&&_.pathname.split("/")||[],te=E.pathname&&E.pathname.split("/")||[],$=_.protocol&&!c[_.protocol];if($&&(_.hostname="",_.port=null,_.host&&(X[0]===""?X[0]=_.host:X.unshift(_.host)),_.host="",E.protocol&&(E.hostname=null,E.port=null,E.host&&(te[0]===""?te[0]=E.host:te.unshift(E.host)),E.host=null),V=V&&(te[0]===""||X[0]==="")),z)_.host=E.host||E.host===""?E.host:_.host,_.hostname=E.hostname||E.hostname===""?E.hostname:_.hostname,_.search=E.search,_.query=E.query,X=te;else if(te.length)X||(X=[]),X.pop(),X=X.concat(te),_.search=E.search,_.query=E.query;else if(!p.isNullOrUndefined(E.search)){if($){_.hostname=_.host=X.shift();var le=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;le&&(_.auth=le.shift(),_.host=_.hostname=le.shift())}return _.search=E.search,_.query=E.query,(!p.isNull(_.pathname)||!p.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.href=_.format(),_}if(!X.length)return _.pathname=null,_.search?_.path="/"+_.search:_.path=null,_.href=_.format(),_;for(var re=X.slice(-1)[0],Se=(_.host||E.host||X.length>1)&&(re==="."||re==="..")||re==="",Re=0,Pe=X.length;Pe>=0;Pe--)re=X[Pe],re==="."?X.splice(Pe,1):re===".."?(X.splice(Pe,1),Re++):Re&&(X.splice(Pe,1),Re--);if(!V&&!Q)for(;Re--;Re)X.unshift("..");V&&X[0]!==""&&(!X[0]||X[0].charAt(0)!=="/")&&X.unshift(""),Se&&X.join("/").substr(-1)!=="/"&&X.push("");var Je=X[0]===""||X[0]&&X[0].charAt(0)==="/";if($){_.hostname=_.host=Je?"":X.length?X.shift():"";var le=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;le&&(_.auth=le.shift(),_.host=_.hostname=le.shift())}return V=V||_.host&&X.length,V&&!Je&&X.unshift(""),X.length?_.pathname=X.join("/"):(_.pathname=null,_.path=null),(!p.isNull(_.pathname)||!p.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.auth=E.auth||_.auth,_.slashes=_.slashes||E.slashes,_.href=_.format(),_},x.prototype.parseHost=function(){var E=this.host,C=m.exec(E);C&&(C=C[0],C!==":"&&(this.port=C.substr(1)),E=E.substr(0,E.length-C.length)),E&&(this.hostname=E)}},{"./util":239,punycode:209,querystring:212}],239:[function(R,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(R,D,i){(function(y){D.exports=p;function p(v,m){if(x("noDeprecation"))return v;var f=!1;function d(){if(!f){if(x("throwDeprecation"))throw new Error(m);x("traceDeprecation")?console.trace(m):console.warn(m),f=!0}return v.apply(this,arguments)}return d}function x(v){try{if(!y.localStorage)return!1}catch(f){return!1}var m=y.localStorage[v];return m==null?!1:String(m).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(R,D,i){typeof Object.create=="function"?D.exports=function(p,x){p.super_=x,p.prototype=Object.create(x.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})}:D.exports=function(p,x){p.super_=x;var v=function(){};v.prototype=x.prototype,p.prototype=new v,p.prototype.constructor=p}},{}],242:[function(R,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(R,D,i){(function(y,p){var x=/%[sdj%]/g;i.format=function(M){if(!b(M)){for(var j=[],K=0;K<arguments.length;K++)j.push(f(arguments[K]));return j.join(" ")}for(var K=1,z=arguments,V=z.length,Q=String(M).replace(x,function(te){if(te==="%%")return"%";if(K>=V)return te;switch(te){case"%s":return String(z[K++]);case"%d":return Number(z[K++]);case"%j":try{return JSON.stringify(z[K++])}catch($){return"[Circular]"}default:return te}}),X=z[K];K<V;X=z[++K])h(X)||!_(X)?Q+=" "+X:Q+=" "+f(X);return Q},i.deprecate=function(M,j){if(E(p.process))return function(){return i.deprecate(M,j).apply(this,arguments)};if(y.noDeprecation===!0)return M;var K=!1;function z(){if(!K){if(y.throwDeprecation)throw new Error(j);y.traceDeprecation?console.trace(j):console.error(j),K=!0}return M.apply(this,arguments)}return z};var v={},m;i.debuglog=function(M){if(E(m)&&(m=y.env.NODE_DEBUG||""),M=M.toUpperCase(),!v[M])if(new RegExp("\\b"+M+"\\b","i").test(m)){var j=y.pid;v[M]=function(){var K=i.format.apply(i,arguments);console.error("%s %d: %s",M,j,K)}}else v[M]=function(){};return v[M]};function f(M,j){var K={seen:[],stylize:l};return arguments.length>=3&&(K.depth=arguments[2]),arguments.length>=4&&(K.colors=arguments[3]),c(j)?K.showHidden=j:j&&i._extend(K,j),E(K.showHidden)&&(K.showHidden=!1),E(K.depth)&&(K.depth=2),E(K.colors)&&(K.colors=!1),E(K.customInspect)&&(K.customInspect=!0),K.colors&&(K.stylize=d),n(K,M,K.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(M,j){var K=f.styles[j];return K?"["+f.colors[K][0]+"m"+M+"["+f.colors[K][1]+"m":M}function l(M,j){return M}function o(M){var j={};return M.forEach(function(K,z){j[K]=!0}),j}function n(M,j,K){if(M.customInspect&&j&&O(j.inspect)&&j.inspect!==i.inspect&&!(j.constructor&&j.constructor.prototype===j)){var z=j.inspect(K,M);return b(z)||(z=n(M,z,K)),z}var V=t(M,j);if(V)return V;var Q=Object.keys(j),X=o(Q);if(M.showHidden&&(Q=Object.getOwnPropertyNames(j)),S(j)&&(Q.indexOf("message")>=0||Q.indexOf("description")>=0))return a(j);if(Q.length===0){if(O(j)){var te=j.name?": "+j.name:"";return M.stylize("[Function"+te+"]","special")}if(C(j))return M.stylize(RegExp.prototype.toString.call(j),"regexp");if(T(j))return M.stylize(Date.prototype.toString.call(j),"date");if(S(j))return a(j)}var $="",le=!1,re=["{","}"];if(s(j)&&(le=!0,re=["[","]"]),O(j)){var Se=j.name?": "+j.name:"";$=" [Function"+Se+"]"}if(C(j)&&($=" "+RegExp.prototype.toString.call(j)),T(j)&&($=" "+Date.prototype.toUTCString.call(j)),S(j)&&($=" "+a(j)),Q.length===0&&(!le||j.length==0))return re[0]+$+re[1];if(K<0)return C(j)?M.stylize(RegExp.prototype.toString.call(j),"regexp"):M.stylize("[Object]","special");M.seen.push(j);var Re;return le?Re=e(M,j,K,X,Q):Re=Q.map(function(Pe){return u(M,j,K,X,Pe,le)}),M.seen.pop(),r(Re,$,re)}function t(M,j){if(E(j))return M.stylize("undefined","undefined");if(b(j)){var K="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return M.stylize(K,"string")}if(A(j))return M.stylize(""+j,"number");if(c(j))return M.stylize(""+j,"boolean");if(h(j))return M.stylize("null","null")}function a(M){return"["+Error.prototype.toString.call(M)+"]"}function e(M,j,K,z,V){for(var Q=[],X=0,te=j.length;X<te;++X)G(j,String(X))?Q.push(u(M,j,K,z,String(X),!0)):Q.push("");return V.forEach(function($){$.match(/^\d+$/)||Q.push(u(M,j,K,z,$,!0))}),Q}function u(M,j,K,z,V,Q){var X,te,$;if($=Object.getOwnPropertyDescriptor(j,V)||{value:j[V]},$.get?$.set?te=M.stylize("[Getter/Setter]","special"):te=M.stylize("[Getter]","special"):$.set&&(te=M.stylize("[Setter]","special")),G(z,V)||(X="["+V+"]"),te||(M.seen.indexOf($.value)<0?(h(K)?te=n(M,$.value,null):te=n(M,$.value,K-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=M.stylize("[Circular]","special")),E(X)){if(Q&&V.match(/^\d+$/))return te;X=JSON.stringify(""+V),X.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(X=X.substr(1,X.length-2),X=M.stylize(X,"name")):(X=X.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),X=M.stylize(X,"string"))}return X+": "+te}function r(M,j,K){var z=0,V=M.reduce(function(Q,X){return z++,X.indexOf(`
|
|
|
`)>=0&&z++,Q+X.replace(/\u001b\[\d\d?m/g,"").length+1},0);return V>60?K[0]+(j===""?"":j+`
|
|
|
`)+" "+M.join(`,
|
|
|
`)+" "+K[1]:K[0]+j+" "+M.join(", ")+" "+K[1]}function s(M){return Array.isArray(M)}i.isArray=s;function c(M){return typeof M=="boolean"}i.isBoolean=c;function h(M){return M===null}i.isNull=h;function g(M){return M==null}i.isNullOrUndefined=g;function A(M){return typeof M=="number"}i.isNumber=A;function b(M){return typeof M=="string"}i.isString=b;function w(M){return typeof M=="symbol"}i.isSymbol=w;function E(M){return M===void 0}i.isUndefined=E;function C(M){return _(M)&&F(M)==="[object RegExp]"}i.isRegExp=C;function _(M){return typeof M=="object"&&M!==null}i.isObject=_;function T(M){return _(M)&&F(M)==="[object Date]"}i.isDate=T;function S(M){return _(M)&&(F(M)==="[object Error]"||M instanceof Error)}i.isError=S;function O(M){return typeof M=="function"}i.isFunction=O;function I(M){return M===null||typeof M=="boolean"||typeof M=="number"||typeof M=="string"||typeof M=="symbol"||typeof M=="undefined"}i.isPrimitive=I,i.isBuffer=R("./support/isBuffer");function F(M){return Object.prototype.toString.call(M)}function P(M){return M<10?"0"+M.toString(10):M.toString(10)}var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var M=new Date,j=[P(M.getHours()),P(M.getMinutes()),P(M.getSeconds())].join(":");return[M.getDate(),B[M.getMonth()],j].join(" ")}i.log=function(){console.log("%s - %s",k(),i.format.apply(i,arguments))},i.inherits=R("inherits"),i._extend=function(M,j){if(!j||!_(j))return M;for(var K=Object.keys(j),z=K.length;z--;)M[K[z]]=j[K[z]];return M};function G(M,j){return Object.prototype.hasOwnProperty.call(M,j)}}).call(this,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(R,D,i){"use strict";(function(){"use strict";i.stripBOM=function(y){return y[0]==="\uFEFF"?y.substring(1):y}}).call(void 0)},{}],245:[function(R,D,i){"use strict";var y=R("babel-runtime/helpers/typeof"),p=m(y),x=R("babel-runtime/core-js/object/keys"),v=m(x);function m(f){return f&&f.__esModule?f:{default:f}}(function(){"use strict";var f,d,l,o,n,t={}.hasOwnProperty;f=R("xmlbuilder"),d=R("./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,v.default)(e).length===1&&this.options.rootName===d["0.2"].rootName?(h=(0,v.default)(e)[0],e=e[h]):h=this.options.rootName,s=function(g){return function(A,b){var w,E,C,_,T,S;if((typeof b=="undefined"?"undefined":(0,p.default)(b))!=="object")g.options.cdata&&o(b)?A.raw(n(b)):A.txt(b);else if(Array.isArray(b))for(_ in b){if(!t.call(b,_))continue;E=b[_];for(T in E)C=E[T],A=s(A.ele(T),C).up()}else for(T in b){if(!t.call(b,T))continue;if(E=b[T],T===u){if((typeof E=="undefined"?"undefined":(0,p.default)(E))==="object")for(w in E)S=E[w],A=A.att(w,S)}else if(T===r)g.options.cdata&&o(E)?A=A.raw(n(E)):A=A.txt(E);else if(Array.isArray(E))for(_ in E){if(!t.call(E,_))continue;C=E[_],typeof C=="string"?g.options.cdata&&o(C)?A=A.ele(T).raw(n(C)).up():A=A.ele(T,C).up():A=s(A.ele(T),C).up()}else(typeof E=="undefined"?"undefined":(0,p.default)(E))==="object"?A=s(A.ele(T),E).up():typeof E=="string"&&g.options.cdata&&o(E)?A=A.ele(T).raw(n(E)).up():(E==null&&(E=""),A=A.ele(T,E.toString()).up())}return A}}(this),c=f.create(h,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),s(c,e).end(this.options.renderOpts)},a}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(R,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(R,D,i){"use strict";var y=R("babel-runtime/core-js/promise"),p=o(y),x=R("babel-runtime/core-js/object/get-own-property-names"),v=o(x),m=R("babel-runtime/core-js/object/keys"),f=o(m),d=R("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,E){return function(){return w.apply(E,arguments)}},g=function(w,E){for(var C in E)A.call(E,C)&&(w[C]=E[C]);function _(){this.constructor=w}return _.prototype=E.prototype,w.prototype=new _,w.__super__=E.prototype,w},A={}.hasOwnProperty;s=R("sax"),a=R("events"),n=R("./bom"),r=R("./processors"),c=R("timers").setImmediate,t=R("./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,E,C){var _,T,S;for(_=0,T=w.length;_<T;_++)S=w[_],E=S(E,C);return E},i.Parser=function(b){g(w,b);function w(E){this.parseStringPromise=h(this.parseStringPromise,this),this.parseString=h(this.parseString,this),this.reset=h(this.reset,this),this.assignOrPush=h(this.assignOrPush,this),this.processAsync=h(this.processAsync,this);var C,_,T;if(!(this instanceof i.Parser))return new i.Parser(E);this.options={},_=t["0.2"];for(C in _){if(!A.call(_,C))continue;T=_[C],this.options[C]=T}for(C in E){if(!A.call(E,C))continue;T=E[C],this.options[C]=T}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 E,C;try{return this.remaining.length<=this.options.chunkSize?(E=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(E),this.saxParser.close()):(E=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(E),c(this.processAsync))}catch(_){if(C=_,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(C)}},w.prototype.assignOrPush=function(E,C,_){return C in E?(E[C]instanceof Array||(E[C]=[E[C]]),E[C].push(_)):this.options.explicitArray?E[C]=[_]:E[C]=_},w.prototype.reset=function(){var E,C,_,T;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(S){return function(O){if(S.saxParser.resume(),!S.saxParser.errThrown)return S.saxParser.errThrown=!0,S.emit("error",O)}}(this),this.saxParser.onend=function(S){return function(){if(!S.saxParser.ended)return S.saxParser.ended=!0,S.emit("end",S.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,T=[],E=this.options.attrkey,C=this.options.charkey,this.saxParser.onopentag=function(S){return function(O){var I,F,P,B,k;if(P={},P[C]="",!S.options.ignoreAttrs){k=O.attributes;for(I in k){if(!A.call(k,I))continue;!(E in P)&&!S.options.mergeAttrs&&(P[E]={}),F=S.options.attrValueProcessors?u(S.options.attrValueProcessors,O.attributes[I],I):O.attributes[I],B=S.options.attrNameProcessors?u(S.options.attrNameProcessors,I):I,S.options.mergeAttrs?S.assignOrPush(P,B,F):P[E][B]=F}}return P["#name"]=S.options.tagNameProcessors?u(S.options.tagNameProcessors,O.name):O.name,S.options.xmlns&&(P[S.options.xmlnskey]={uri:O.uri,local:O.local}),T.push(P)}}(this),this.saxParser.onclosetag=function(S){return function(){var O,I,F,P,B,k,G,M,j,K;if(k=T.pop(),B=k["#name"],(!S.options.explicitChildren||!S.options.preserveChildrenOrder)&&delete k["#name"],k.cdata===!0&&(O=k.cdata,delete k.cdata),j=T[T.length-1],k[C].match(/^\s*$/)&&!O?(I=k[C],delete k[C]):(S.options.trim&&(k[C]=k[C].trim()),S.options.normalize&&(k[C]=k[C].replace(/\s{2,}/g," ").trim()),k[C]=S.options.valueProcessors?u(S.options.valueProcessors,k[C],B):k[C],(0,f.default)(k).length===1&&C in k&&!S.EXPLICIT_CHARKEY&&(k=k[C])),e(k)&&(k=S.options.emptyTag!==""?S.options.emptyTag:I),S.options.validator!=null&&(K="/"+function(){var z,V,Q;for(Q=[],z=0,V=T.length;z<V;z++)P=T[z],Q.push(P["#name"]);return Q}().concat(B).join("/"),function(){var z;try{return k=S.options.validator(K,j&&j[B],k)}catch(V){return z=V,S.emit("error",z)}}()),S.options.explicitChildren&&!S.options.mergeAttrs&&(typeof k=="undefined"?"undefined":(0,l.default)(k))==="object"){if(!S.options.preserveChildrenOrder)P={},S.options.attrkey in k&&(P[S.options.attrkey]=k[S.options.attrkey],delete k[S.options.attrkey]),!S.options.charsAsChildren&&S.options.charkey in k&&(P[S.options.charkey]=k[S.options.charkey],delete k[S.options.charkey]),(0,v.default)(k).length>0&&(P[S.options.childkey]=k),k=P;else if(j){j[S.options.childkey]=j[S.options.childkey]||[],G={};for(F in k){if(!A.call(k,F))continue;G[F]=k[F]}j[S.options.childkey].push(G),delete k["#name"],(0,f.default)(k).length===1&&C in k&&!S.EXPLICIT_CHARKEY&&(k=k[C])}}return T.length>0?S.assignOrPush(j,B,k):(S.options.explicitRoot&&(M=k,k={},k[B]=M),S.resultObject=k,S.saxParser.ended=!0,S.emit("end",S.resultObject))}}(this),_=function(S){return function(O){var I,F;if(F=T[T.length-1],F)return F[C]+=O,S.options.explicitChildren&&S.options.preserveChildrenOrder&&S.options.charsAsChildren&&(S.options.includeWhiteChars||O.replace(/\\n/g,"").trim()!=="")&&(F[S.options.childkey]=F[S.options.childkey]||[],I={"#name":"__text__"},I[C]=O,S.options.normalize&&(I[C]=I[C].replace(/\s{2,}/g," ").trim()),F[S.options.childkey].push(I)),F}}(this),this.saxParser.ontext=_,this.saxParser.oncdata=function(S){return function(O){var I;if(I=_(O),I)return I.cdata=!0}}(this)},w.prototype.parseString=function(E,C){var _;C!=null&&typeof C=="function"&&(this.on("end",function(T){return this.reset(),C(null,T)}),this.on("error",function(T){return this.reset(),C(T)}));try{return E=E.toString(),E.trim()===""?(this.emit("end",null),!0):(E=n.stripBOM(E),this.options.async?(this.remaining=E,c(this.processAsync),this.saxParser):this.saxParser.write(E).close())}catch(T){if(_=T,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw _}else return this.emit("error",_),this.saxParser.errThrown=!0}},w.prototype.parseStringPromise=function(E){return new p.default(function(C){return function(_,T){return C.parseString(E,function(S,O){return S?T(S):_(O)})}}(this))},w}(a),i.parseString=function(b,w,E){var C,_,T;return E!=null?(typeof E=="function"&&(C=E),(typeof w=="undefined"?"undefined":(0,l.default)(w))==="object"&&(_=w)):(typeof w=="function"&&(C=w),_={}),T=new i.Parser(_),T.parseString(b,C)},i.parseStringPromise=function(b,w){var E,C;return(typeof w=="undefined"?"undefined":(0,l.default)(w))==="object"&&(E=w),C=new i.Parser(E),C.parseStringPromise(b)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(R,D,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(R,D,i){"use strict";(function(){"use strict";var y,p,x,v,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=R("./defaults"),y=R("./builder"),x=R("./parser"),v=R("./processors"),i.defaults=p.defaults,i.processors=v,i.ValidationError=function(d){m(l,d);function l(o){this.message=o}return l}(Error),i.Builder=y.Builder,i.Parser=x.Parser,i.parseString=x.parseString,i.parseStringPromise=x.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(R,D,i){"use strict";(function(){D.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(R,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(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/get-prototype-of"),p=d(y),x=R("babel-runtime/helpers/typeof"),v=d(x),m=R("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,A,b,w,E;if(E=arguments[0],w=2<=arguments.length?r.call(arguments,1):[],a(f.default))f.default.apply(null,arguments);else for(h=0,A=w.length;h<A;h++)if(b=w[h],b!=null)for(g in b){if(!s.call(b,g))continue;E[g]=b[g]}return E},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,v.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,A;return e(h)&&(A=(0,p.default)(h))&&(g=A.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(R,D,i){"use strict";(function(){D.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/create"),p=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,f;v=R("./NodeType"),f=R("./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=v.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(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/create"),p=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,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;v=R("./NodeType"),f=R("./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=v.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(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/create"),p=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,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=R("./XMLNode"),D.exports=v=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(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/create"),p=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,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;v=R("./NodeType"),m=R("./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=v.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(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/keys"),p=m(y),x=R("babel-runtime/core-js/object/create"),v=m(x);function m(f){return f&&f.__esModule?f:{default:f}}(function(){var f,d,l;d=R("./XMLDOMErrorHandler"),l=R("./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,v.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(R,D,i){"use strict";(function(){var y;D.exports=y=function(){function p(){}return p.prototype.handleError=function(x){throw new Error(x)},p}()}).call(void 0)},{}],260:[function(R,D,i){"use strict";(function(){var y;D.exports=y=function(){function p(){}return p.prototype.hasFeature=function(x,v){return!0},p.prototype.createDocumentType=function(x,v,m){throw new Error("This DOM method is not implemented.")},p.prototype.createDocument=function(x,v,m){throw new Error("This DOM method is not implemented.")},p.prototype.createHTMLDocument=function(x){throw new Error("This DOM method is not implemented.")},p.prototype.getFeature=function(x,v){throw new Error("This DOM method is not implemented.")},p}()}).call(void 0)},{}],261:[function(R,D,i){"use strict";(function(){var y;D.exports=y=function(){function p(x){this.arr=x||[]}return Object.defineProperty(p.prototype,"length",{get:function(){return this.arr.length}}),p.prototype.item=function(x){return this.arr[x]||null},p.prototype.contains=function(x){return this.arr.indexOf(x)!==-1},p}()}).call(void 0)},{}],262:[function(R,D,i){"use strict";(function(){var y,p,x,v=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;x=R("./XMLNode"),y=R("./NodeType"),D.exports=p=function(f){v(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}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(R,D,i){"use strict";(function(){var y,p,x,v=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;x=R("./XMLNode"),y=R("./NodeType"),D.exports=p=function(f){v(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}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(R,D,i){"use strict";(function(){var y,p,x,v,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;v=R("./Utility").isObject,x=R("./XMLNode"),y=R("./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,!v(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}(x)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(R,D,i){"use strict";(function(){var y,p,x,v=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;x=R("./XMLNode"),y=R("./NodeType"),D.exports=p=function(f){v(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}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(R,D,i){"use strict";(function(){var y,p,x,v,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;v=R("./Utility").isObject,x=R("./XMLNode"),y=R("./NodeType"),D.exports=p=function(d){m(l,d);function l(o,n,t,a){var e;l.__super__.constructor.call(this,o),v(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}(x)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(R,D,i){"use strict";(function(){var y,p,x,v,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=R("./Utility").isObject,l=R("./XMLNode"),y=R("./NodeType"),p=R("./XMLDTDAttList"),v=R("./XMLDTDEntity"),x=R("./XMLDTDElement"),m=R("./XMLDTDNotation"),d=R("./XMLNamedNodeMap"),D.exports=f=function(a){n(e,a);function e(u,r,s){var c,h,g,A,b,w;if(e.__super__.constructor.call(this,u),this.type=y.DocType,u.children){for(A=u.children,h=0,g=A.length;h<g;h++)if(c=A[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 x(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 v(this,!1,u,r),this.children.push(s),this},e.prototype.pEntity=function(u,r){var s;return s=new v(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(R,D,i){"use strict";(function(){var y,p,x,v,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=R("./Utility").isPlainObject,x=R("./XMLDOMImplementation"),p=R("./XMLDOMConfiguration"),m=R("./XMLNode"),y=R("./NodeType"),d=R("./XMLStringifier"),f=R("./XMLStringWriter"),D.exports=v=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 x}),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(R,D,i){"use strict";(function(){var y,p,x,v,m,f,d,l,o,n,t,a,e,u,r,s,c,h,g,A,b,w,E,C,_={}.hasOwnProperty;C=R("./Utility"),w=C.isObject,b=C.isFunction,E=C.isPlainObject,A=C.getValue,y=R("./NodeType"),a=R("./XMLDocument"),u=R("./XMLElement"),v=R("./XMLCData"),m=R("./XMLComment"),s=R("./XMLRaw"),g=R("./XMLText"),r=R("./XMLProcessingInstruction"),n=R("./XMLDeclaration"),t=R("./XMLDocType"),f=R("./XMLDTDAttList"),l=R("./XMLDTDEntity"),d=R("./XMLDTDElement"),o=R("./XMLDTDNotation"),x=R("./XMLAttribute"),h=R("./XMLStringifier"),c=R("./XMLStringWriter"),p=R("./WriterState"),D.exports=e=function(){function T(S,O,I){var F;this.name="?xml",this.type=y.Document,S||(S={}),F={},S.writer?E(S.writer)&&(F=S.writer,S.writer=new c):S.writer=new c,this.options=S,this.writer=S.writer,this.writerOptions=this.writer.filterOptions(F),this.stringify=new h(S),this.onDataCallback=O||function(){},this.onEndCallback=I||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return T.prototype.createChildNode=function(S){var O,I,F,P,B,k,G,M;switch(S.type){case y.CData:this.cdata(S.value);break;case y.Comment:this.comment(S.value);break;case y.Element:F={},G=S.attribs;for(I in G){if(!_.call(G,I))continue;O=G[I],F[I]=O.value}this.node(S.name,F);break;case y.Dummy:this.dummy();break;case y.Raw:this.raw(S.value);break;case y.Text:this.text(S.value);break;case y.ProcessingInstruction:this.instruction(S.target,S.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+S.constructor.name)}for(M=S.children,B=0,k=M.length;B<k;B++)P=M[B],this.createChildNode(P),P.type===y.Element&&this.up();return this},T.prototype.dummy=function(){return this},T.prototype.node=function(S,O,I){var F;if(S==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(S));return this.openCurrent(),S=A(S),O==null&&(O={}),O=A(O),w(O)||(F=[O,I],I=F[0],O=F[1]),this.currentNode=new u(this,S,O),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,I!=null&&this.text(I),this},T.prototype.element=function(S,O,I){var F,P,B,k,G,M;if(this.currentNode&&this.currentNode.type===y.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(S)||w(S)||b(S))for(k=this.options.noValidation,this.options.noValidation=!0,M=new a(this.options).element("TEMP_ROOT"),M.element(S),this.options.noValidation=k,G=M.children,P=0,B=G.length;P<B;P++)F=G[P],this.createChildNode(F),F.type===y.Element&&this.up();else this.node(S,O,I);return this},T.prototype.attribute=function(S,O){var I,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(S));if(S!=null&&(S=A(S)),w(S))for(I in S){if(!_.call(S,I))continue;F=S[I],this.attribute(I,F)}else b(O)&&(O=O.apply()),this.options.keepNullAttributes&&O==null?this.currentNode.attribs[S]=new x(this,S,""):O!=null&&(this.currentNode.attribs[S]=new x(this,S,O));return this},T.prototype.text=function(S){var O;return this.openCurrent(),O=new g(this,S),this.onData(this.writer.text(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.cdata=function(S){var O;return this.openCurrent(),O=new v(this,S),this.onData(this.writer.cdata(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.comment=function(S){var O;return this.openCurrent(),O=new m(this,S),this.onData(this.writer.comment(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.raw=function(S){var O;return this.openCurrent(),O=new s(this,S),this.onData(this.writer.raw(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.instruction=function(S,O){var I,F,P,B,k;if(this.openCurrent(),S!=null&&(S=A(S)),O!=null&&(O=A(O)),Array.isArray(S))for(I=0,B=S.length;I<B;I++)F=S[I],this.instruction(F);else if(w(S))for(F in S){if(!_.call(S,F))continue;P=S[F],this.instruction(F,P)}else b(O)&&(O=O.apply()),k=new r(this,S,O),this.onData(this.writer.processingInstruction(k,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},T.prototype.declaration=function(S,O,I){var F;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return F=new n(this,S,O,I),this.onData(this.writer.declaration(F,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.doctype=function(S,O,I){if(this.openCurrent(),S==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new t(this,O,I),this.currentNode.rootNodeName=S,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},T.prototype.dtdElement=function(S,O){var I;return this.openCurrent(),I=new d(this,S,O),this.onData(this.writer.dtdElement(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.attList=function(S,O,I,F,P){var B;return this.openCurrent(),B=new f(this,S,O,I,F,P),this.onData(this.writer.dtdAttList(B,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.entity=function(S,O){var I;return this.openCurrent(),I=new l(this,!1,S,O),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.pEntity=function(S,O){var I;return this.openCurrent(),I=new l(this,!0,S,O),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.notation=function(S,O){var I;return this.openCurrent(),I=new o(this,S,O),this.onData(this.writer.dtdNotation(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.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},T.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},T.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},T.prototype.openNode=function(S){var O,I,F,P;if(!S.isOpen){if(!this.root&&this.currentLevel===0&&S.type===y.Element&&(this.root=S),I="",S.type===y.Element){this.writerOptions.state=p.OpenTag,I=this.writer.indent(S,this.writerOptions,this.currentLevel)+"<"+S.name,P=S.attribs;for(F in P){if(!_.call(P,F))continue;O=P[F],I+=this.writer.attribute(O,this.writerOptions,this.currentLevel)}I+=(S.children?">":"/>")+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=p.InsideTag}else this.writerOptions.state=p.OpenTag,I=this.writer.indent(S,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+S.rootNodeName,S.pubID&&S.sysID?I+=' PUBLIC "'+S.pubID+'" "'+S.sysID+'"':S.sysID&&(I+=' SYSTEM "'+S.sysID+'"'),S.children?(I+=" [",this.writerOptions.state=p.InsideTag):(this.writerOptions.state=p.CloseTag,I+=">"),I+=this.writer.endline(S,this.writerOptions,this.currentLevel);return this.onData(I,this.currentLevel),S.isOpen=!0}},T.prototype.closeNode=function(S){var O;if(!S.isClosed)return O="",this.writerOptions.state=p.CloseTag,S.type===y.Element?O=this.writer.indent(S,this.writerOptions,this.currentLevel)+"</"+S.name+">"+this.writer.endline(S,this.writerOptions,this.currentLevel):O=this.writer.indent(S,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=p.None,this.onData(O,this.currentLevel),S.isClosed=!0},T.prototype.onData=function(S,O){return this.documentStarted=!0,this.onDataCallback(S,O+1)},T.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},T.prototype.debugInfo=function(S){return S==null?"":"node: <"+S+">"},T.prototype.ele=function(){return this.element.apply(this,arguments)},T.prototype.nod=function(S,O,I){return this.node(S,O,I)},T.prototype.txt=function(S){return this.text(S)},T.prototype.dat=function(S){return this.cdata(S)},T.prototype.com=function(S){return this.comment(S)},T.prototype.ins=function(S,O){return this.instruction(S,O)},T.prototype.dec=function(S,O,I){return this.declaration(S,O,I)},T.prototype.dtd=function(S,O,I){return this.doctype(S,O,I)},T.prototype.e=function(S,O,I){return this.element(S,O,I)},T.prototype.n=function(S,O,I){return this.node(S,O,I)},T.prototype.t=function(S){return this.text(S)},T.prototype.d=function(S){return this.cdata(S)},T.prototype.c=function(S){return this.comment(S)},T.prototype.r=function(S){return this.raw(S)},T.prototype.i=function(S,O){return this.instruction(S,O)},T.prototype.att=function(){return this.currentNode&&this.currentNode.type===y.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},T.prototype.a=function(){return this.currentNode&&this.currentNode.type===y.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},T.prototype.ent=function(S,O){return this.entity(S,O)},T.prototype.pent=function(S,O){return this.pEntity(S,O)},T.prototype.not=function(S,O){return this.notation(S,O)},T}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/create"),p=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,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=R("./XMLNode"),v=R("./NodeType"),D.exports=m=function(o){d(n,o);function n(t){n.__super__.constructor.call(this,t),this.type=v.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(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/create"),p=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,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=R("./Utility"),t=a.isObject,n=a.isFunction,o=a.getValue,l=R("./XMLNode"),v=R("./NodeType"),m=R("./XMLAttribute"),d=R("./XMLNamedNodeMap"),D.exports=f=function(r){e(s,r);function s(c,h,g){var A,b,w,E;if(s.__super__.constructor.call(this,c),h==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(h),this.type=v.Element,this.attribs={},this.schemaTypeInfo=null,g!=null&&this.attribute(g),c.type===v.Document&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this,c.children)){for(E=c.children,b=0,w=E.length;b<w;b++)if(A=E[b],A.type===v.DocType){A.name=this.name;break}}}return Object.defineProperty(s.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(s.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(s.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(s.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(s.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new d(this.attribs)),this.attributeMap}}),s.prototype.clone=function(){var c,h,g,A;g=(0,p.default)(this),g.isRoot&&(g.documentObject=null),g.attribs={},A=this.attribs;for(h in A){if(!u.call(A,h))continue;c=A[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,A;if(c!=null&&(c=o(c)),t(c))for(g in c){if(!u.call(c,g))continue;A=c[g],this.attribute(g,A)}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,A;if(c==null)throw new Error("Missing attribute name. "+this.debugInfo());if(c=o(c),Array.isArray(c))for(g=0,A=c.length;g<A;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,A;if(!s.__super__.isEqualNode.apply(this,arguments).isEqualNode(c))return!1;if(c.namespaceURI!==this.namespaceURI)return!1;if(c.prefix!==this.prefix)return!1;if(c.localName!==this.localName)return!1;if(c.attribs.length!==this.attribs.length)return!1;for(h=g=0,A=this.attribs.length-1;0<=A?g<=A:g>=A;h=0<=A?++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(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/keys"),p=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v;D.exports=v=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(R,D,i){"use strict";(function(){var y,p,x,v,m,f,d,l,o,n,t,a,e,u,r,s,c,h,g,A={}.hasOwnProperty;g=R("./Utility"),h=g.isObject,c=g.isFunction,s=g.isEmpty,r=g.getValue,l=null,x=null,v=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=R("./XMLElement"),x=R("./XMLCData"),v=R("./XMLComment"),m=R("./XMLDeclaration"),f=R("./XMLDocType"),e=R("./XMLRaw"),u=R("./XMLText"),a=R("./XMLProcessingInstruction"),d=R("./XMLDummy"),p=R("./NodeType"),t=R("./XMLNodeList"),o=R("./XMLNamedNodeMap"),y=R("./DocumentPosition"))}return Object.defineProperty(b.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(b.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(b.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(b.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(b.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new t(this.children)),this.childNodeList}}),Object.defineProperty(b.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(b.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(b.prototype,"previousSibling",{get:function(){var E;return E=this.parent.children.indexOf(this),this.parent.children[E-1]||null}}),Object.defineProperty(b.prototype,"nextSibling",{get:function(){var E;return E=this.parent.children.indexOf(this),this.parent.children[E+1]||null}}),Object.defineProperty(b.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(b.prototype,"textContent",{get:function(){var E,C,_,T,S;if(this.nodeType===p.Element||this.nodeType===p.DocumentFragment){for(S="",T=this.children,C=0,_=T.length;C<_;C++)E=T[C],E.textContent&&(S+=E.textContent);return S}else return null},set:function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),b.prototype.setParent=function(w){var E,C,_,T,S;for(this.parent=w,w&&(this.options=w.options,this.stringify=w.stringify),T=this.children,S=[],C=0,_=T.length;C<_;C++)E=T[C],S.push(E.setParent(this));return S},b.prototype.element=function(w,E,C){var _,T,S,O,I,F,P,B,k,G,M;if(F=null,E===null&&C==null&&(k=[{},null],E=k[0],C=k[1]),E==null&&(E={}),E=r(E),h(E)||(G=[E,C],C=G[0],E=G[1]),w!=null&&(w=r(w)),Array.isArray(w))for(S=0,P=w.length;S<P;S++)T=w[S],F=this.element(T);else if(c(w))F=this.element(w.apply());else if(h(w))for(I in w){if(!A.call(w,I))continue;if(M=w[I],c(M)&&(M=M.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&I.indexOf(this.stringify.convertAttKey)===0)F=this.attribute(I.substr(this.stringify.convertAttKey.length),M);else if(!this.options.separateArrayItems&&Array.isArray(M)&&s(M))F=this.dummy();else if(h(M)&&s(M))F=this.element(I);else if(!this.options.keepNullNodes&&M==null)F=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(M))for(O=0,B=M.length;O<B;O++)T=M[O],_={},_[I]=T,F=this.element(_);else h(M)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&I.indexOf(this.stringify.convertTextKey)===0?F=this.element(M):(F=this.element(I),F.element(M)):F=this.element(I,M)}else!this.options.keepNullNodes&&C===null?F=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&w.indexOf(this.stringify.convertTextKey)===0?F=this.text(C):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&w.indexOf(this.stringify.convertCDataKey)===0?F=this.cdata(C):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&w.indexOf(this.stringify.convertCommentKey)===0?F=this.comment(C):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&w.indexOf(this.stringify.convertRawKey)===0?F=this.raw(C):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&w.indexOf(this.stringify.convertPIKey)===0?F=this.instruction(w.substr(this.stringify.convertPIKey.length),C):F=this.node(w,E,C);if(F==null)throw new Error("Could not create any elements with: "+w+". "+this.debugInfo());return F},b.prototype.insertBefore=function(w,E,C){var _,T,S,O,I;if(w!=null?w.type:void 0)return S=w,O=E,S.setParent(this),O?(T=children.indexOf(O),I=children.splice(T),children.push(S),Array.prototype.push.apply(children,I)):children.push(S),S;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(w));return T=this.parent.children.indexOf(this),I=this.parent.children.splice(T),_=this.parent.element(w,E,C),Array.prototype.push.apply(this.parent.children,I),_},b.prototype.insertAfter=function(w,E,C){var _,T,S;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(w));return T=this.parent.children.indexOf(this),S=this.parent.children.splice(T+1),_=this.parent.element(w,E,C),Array.prototype.push.apply(this.parent.children,S),_},b.prototype.remove=function(){var w,E;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(E=[])),this.parent},b.prototype.node=function(w,E,C){var _,T;return w!=null&&(w=r(w)),E||(E={}),E=r(E),h(E)||(T=[E,C],C=T[0],E=T[1]),_=new l(this,w,E),C!=null&&_.text(C),this.children.push(_),_},b.prototype.text=function(w){var E;return h(w)&&this.element(w),E=new u(this,w),this.children.push(E),this},b.prototype.cdata=function(w){var E;return E=new x(this,w),this.children.push(E),this},b.prototype.comment=function(w){var E;return E=new v(this,w),this.children.push(E),this},b.prototype.commentBefore=function(w){var E,C,_;return C=this.parent.children.indexOf(this),_=this.parent.children.splice(C),E=this.parent.comment(w),Array.prototype.push.apply(this.parent.children,_),this},b.prototype.commentAfter=function(w){var E,C,_;return C=this.parent.children.indexOf(this),_=this.parent.children.splice(C+1),E=this.parent.comment(w),Array.prototype.push.apply(this.parent.children,_),this},b.prototype.raw=function(w){var E;return E=new e(this,w),this.children.push(E),this},b.prototype.dummy=function(){var w;return w=new d(this),w},b.prototype.instruction=function(w,E){var C,_,T,S,O;if(w!=null&&(w=r(w)),E!=null&&(E=r(E)),Array.isArray(w))for(S=0,O=w.length;S<O;S++)C=w[S],this.instruction(C);else if(h(w))for(C in w){if(!A.call(w,C))continue;_=w[C],this.instruction(C,_)}else c(E)&&(E=E.apply()),T=new a(this,w,E),this.children.push(T);return this},b.prototype.instructionBefore=function(w,E){var C,_,T;return _=this.parent.children.indexOf(this),T=this.parent.children.splice(_),C=this.parent.instruction(w,E),Array.prototype.push.apply(this.parent.children,T),this},b.prototype.instructionAfter=function(w,E){var C,_,T;return _=this.parent.children.indexOf(this),T=this.parent.children.splice(_+1),C=this.parent.instruction(w,E),Array.prototype.push.apply(this.parent.children,T),this},b.prototype.declaration=function(w,E,C){var _,T;return _=this.document(),T=new m(_,w,E,C),_.children.length===0?_.children.unshift(T):_.children[0].type===p.Declaration?_.children[0]=T:_.children.unshift(T),_.root()||_},b.prototype.dtd=function(w,E){var C,_,T,S,O,I,F,P,B,k;for(_=this.document(),T=new f(_,w,E),B=_.children,S=O=0,F=B.length;O<F;S=++O)if(C=B[S],C.type===p.DocType)return _.children[S]=T,T;for(k=_.children,S=I=0,P=k.length;I<P;S=++I)if(C=k[S],C.isRoot)return _.children.splice(S,0,T),T;return _.children.push(T),T},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 E;return E=w.root().clone(),E.parent=this,E.isRoot=!1,this.children.push(E),this},b.prototype.debugInfo=function(w){var E,C;return w=w||this.name,w==null&&!((E=this.parent)!=null?E.name:void 0)?"":w==null?"parent: <"+this.parent.name+">":((C=this.parent)!=null?C.name:void 0)?"node: <"+w+">, parent: <"+this.parent.name+">":"node: <"+w+">"},b.prototype.ele=function(w,E,C){return this.element(w,E,C)},b.prototype.nod=function(w,E,C){return this.node(w,E,C)},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,E){return this.instruction(w,E)},b.prototype.doc=function(){return this.document()},b.prototype.dec=function(w,E,C){return this.declaration(w,E,C)},b.prototype.e=function(w,E,C){return this.element(w,E,C)},b.prototype.n=function(w,E,C){return this.node(w,E,C)},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,E){return this.instruction(w,E)},b.prototype.u=function(){return this.up()},b.prototype.importXMLBuilder=function(w){return this.importDocument(w)},b.prototype.replaceChild=function(w,E){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,E){return!0},b.prototype.hasAttributes=function(){return this.attribs.length!==0},b.prototype.compareDocumentPosition=function(w){var E,C;return E=this,E===w?0:this.document()!==w.document()?(C=y.Disconnected|y.ImplementationSpecific,Math.random()<.5?C|=y.Preceding:C|=y.Following,C):E.isAncestor(w)?y.Contains|y.Preceding:E.isDescendant(w)?y.Contains|y.Following:E.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 E,C,_;if(w.nodeType!==this.nodeType)return!1;if(w.children.length!==this.children.length)return!1;for(E=C=0,_=this.children.length-1;0<=_?C<=_:C>=_;E=0<=_?++C:--C)if(!this.children[E].isEqualNode(w.children[E]))return!1;return!0},b.prototype.getFeature=function(w,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setUserData=function(w,E,C){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 E,C,_,T,S;for(S=this.children,_=0,T=S.length;_<T;_++){if(E=S[_],w===E)return!0;if(C=E.isDescendant(w),C)return!0}return!1},b.prototype.isAncestor=function(w){return w.isDescendant(this)},b.prototype.isPreceding=function(w){var E,C;return E=this.treePosition(w),C=this.treePosition(this),E===-1||C===-1?!1:E<C},b.prototype.isFollowing=function(w){var E,C;return E=this.treePosition(w),C=this.treePosition(this),E===-1||C===-1?!1:E>C},b.prototype.treePosition=function(w){var E,C;return C=0,E=!1,this.foreachTreeNode(this.document(),function(_){if(C++,!E&&_===w)return E=!0}),E?C:-1},b.prototype.foreachTreeNode=function(w,E){var C,_,T,S,O;for(w||(w=this.document()),S=w.children,_=0,T=S.length;_<T;_++){if(C=S[_],O=E(C))return O;if(O=this.foreachTreeNode(C,E),O)return O}},b}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(R,D,i){"use strict";(function(){var y;D.exports=y=function(){function p(x){this.nodes=x}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(x){return this.nodes[x]||null},p}()}).call(void 0)},{}],275:[function(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/create"),p=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,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;v=R("./NodeType"),m=R("./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=v.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(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/create"),p=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,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;v=R("./NodeType"),m=R("./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=v.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(R,D,i){"use strict";(function(){var y,p,x,v,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=R("./NodeType"),v=R("./XMLWriterBase"),p=R("./WriterState"),D.exports=x=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,A,b;t||(t=0),this.openNode(o,n,t),n.state=p.OpenTag,this.stream.write(this.indent(o,n,t)+"<"+o.name),A=o.attribs;for(h in A){if(!f.call(A,h))continue;a=A[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}(v)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(R,D,i){"use strict";(function(){var y,p,x=function(f,d){for(var l in d)v.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},v={}.hasOwnProperty;p=R("./XMLWriterBase"),D.exports=y=function(m){x(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(R,D,i){"use strict";(function(){var y,p=function(m,f){return function(){return m.apply(f,arguments)}},x={}.hasOwnProperty;D.exports=y=function(){function v(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(!x.call(d,f))continue;l=d[f],this[f]=l}}return v.prototype.name=function(m){return this.options.noValidation?m:this.assertLegalName(""+m||"")},v.prototype.text=function(m){return this.options.noValidation?m:this.assertLegalChar(this.textEscape(""+m||""))},v.prototype.cdata=function(m){return this.options.noValidation?m:(m=""+m||"",m=m.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(m))},v.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)},v.prototype.raw=function(m){return this.options.noValidation?m:""+m||""},v.prototype.attValue=function(m){return this.options.noValidation?m:this.assertLegalChar(this.attEscape(m=""+m||""))},v.prototype.insTarget=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.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)},v.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},v.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)},v.prototype.xmlStandalone=function(m){return this.options.noValidation?m:m?"yes":"no"},v.prototype.dtdPubID=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdSysID=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdElementValue=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdAttType=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdAttDefault=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdEntityValue=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdNData=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.convertAttKey="@",v.prototype.convertPIKey="?",v.prototype.convertTextKey="#text",v.prototype.convertCDataKey="#cdata",v.prototype.convertCommentKey="#comment",v.prototype.convertRawKey="#raw",v.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},v.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},v.prototype.textEscape=function(m){var f;return this.options.noValidation?m:(f=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,m.replace(f,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},v.prototype.attEscape=function(m){var f;return this.options.noValidation?m:(f=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,m.replace(f,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},v}()}).call(void 0)},{}],280:[function(R,D,i){"use strict";var y=R("babel-runtime/core-js/object/create"),p=x(y);function x(v){return v&&v.__esModule?v:{default:v}}(function(){var v,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;v=R("./NodeType"),m=R("./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=v.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(R,D,i){"use strict";(function(){var y,p,x,v,m,f,d,l,o,n,t,a,e,u,r,s,c,h={}.hasOwnProperty;c=R("./Utility").assign,y=R("./NodeType"),o=R("./XMLDeclaration"),n=R("./XMLDocType"),x=R("./XMLCData"),v=R("./XMLComment"),a=R("./XMLElement"),u=R("./XMLRaw"),r=R("./XMLText"),e=R("./XMLProcessingInstruction"),t=R("./XMLDummy"),m=R("./XMLDTDAttList"),f=R("./XMLDTDElement"),d=R("./XMLDTDEntity"),l=R("./XMLDTDNotation"),p=R("./WriterState"),D.exports=s=function(){function g(A){var b,w,E;A||(A={}),this.options=A,w=A.writer||{};for(b in w){if(!h.call(w,b))continue;E=w[b],this["_"+b]=this[b],this[b]=E}}return g.prototype.filterOptions=function(A){var b,w,E,C,_,T,S,O;return A||(A={}),A=c({},this.options,A),b={writer:this},b.pretty=A.pretty||!1,b.allowEmpty=A.allowEmpty||!1,b.indent=(w=A.indent)!=null?w:" ",b.newline=(E=A.newline)!=null?E:`
|
|
|
`,b.offset=(C=A.offset)!=null?C:0,b.dontPrettyTextNodes=(_=(T=A.dontPrettyTextNodes)!=null?T:A.dontprettytextnodes)!=null?_:0,b.spaceBeforeSlash=(S=(O=A.spaceBeforeSlash)!=null?O:A.spacebeforeslash)!=null?S:"",b.spaceBeforeSlash===!0&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=p.None,b},g.prototype.indent=function(A,b,w){var E;return!b.pretty||b.suppressPrettyCount?"":b.pretty&&(E=(w||0)+b.offset+1,E>0)?new Array(E).join(b.indent):""},g.prototype.endline=function(A,b,w){return!b.pretty||b.suppressPrettyCount?"":b.newline},g.prototype.attribute=function(A,b,w){var E;return this.openAttribute(A,b,w),E=" "+A.name+'="'+A.value+'"',this.closeAttribute(A,b,w),E},g.prototype.cdata=function(A,b,w){var E;return this.openNode(A,b,w),b.state=p.OpenTag,E=this.indent(A,b,w)+"<![CDATA[",b.state=p.InsideTag,E+=A.value,b.state=p.CloseTag,E+="]]>"+this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),E},g.prototype.comment=function(A,b,w){var E;return this.openNode(A,b,w),b.state=p.OpenTag,E=this.indent(A,b,w)+"<!-- ",b.state=p.InsideTag,E+=A.value,b.state=p.CloseTag,E+=" -->"+this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),E},g.prototype.declaration=function(A,b,w){var E;return this.openNode(A,b,w),b.state=p.OpenTag,E=this.indent(A,b,w)+"<?xml",b.state=p.InsideTag,E+=' version="'+A.version+'"',A.encoding!=null&&(E+=' encoding="'+A.encoding+'"'),A.standalone!=null&&(E+=' standalone="'+A.standalone+'"'),b.state=p.CloseTag,E+=b.spaceBeforeSlash+"?>",E+=this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),E},g.prototype.docType=function(A,b,w){var E,C,_,T,S;if(w||(w=0),this.openNode(A,b,w),b.state=p.OpenTag,T=this.indent(A,b,w),T+="<!DOCTYPE "+A.root().name,A.pubID&&A.sysID?T+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.sysID&&(T+=' SYSTEM "'+A.sysID+'"'),A.children.length>0){for(T+=" [",T+=this.endline(A,b,w),b.state=p.InsideTag,S=A.children,C=0,_=S.length;C<_;C++)E=S[C],T+=this.writeChildNode(E,b,w+1);b.state=p.CloseTag,T+="]"}return b.state=p.CloseTag,T+=b.spaceBeforeSlash+">",T+=this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),T},g.prototype.element=function(A,b,w){var E,C,_,T,S,O,I,F,P,B,k,G,M,j;w||(w=0),B=!1,k="",this.openNode(A,b,w),b.state=p.OpenTag,k+=this.indent(A,b,w)+"<"+A.name,G=A.attribs;for(P in G){if(!h.call(G,P))continue;E=G[P],k+=this.attribute(E,b,w)}if(_=A.children.length,T=_===0?null:A.children[0],_===0||A.children.every(function(K){return(K.type===y.Text||K.type===y.Raw)&&K.value===""}))b.allowEmpty?(k+=">",b.state=p.CloseTag,k+="</"+A.name+">"+this.endline(A,b,w)):(b.state=p.CloseTag,k+=b.spaceBeforeSlash+"/>"+this.endline(A,b,w));else if(b.pretty&&_===1&&(T.type===y.Text||T.type===y.Raw)&&T.value!=null)k+=">",b.state=p.InsideTag,b.suppressPrettyCount++,B=!0,k+=this.writeChildNode(T,b,w+1),b.suppressPrettyCount--,B=!1,b.state=p.CloseTag,k+="</"+A.name+">"+this.endline(A,b,w);else{if(b.dontPrettyTextNodes){for(M=A.children,S=0,I=M.length;S<I;S++)if(C=M[S],(C.type===y.Text||C.type===y.Raw)&&C.value!=null){b.suppressPrettyCount++,B=!0;break}}for(k+=">"+this.endline(A,b,w),b.state=p.InsideTag,j=A.children,O=0,F=j.length;O<F;O++)C=j[O],k+=this.writeChildNode(C,b,w+1);b.state=p.CloseTag,k+=this.indent(A,b,w)+"</"+A.name+">",B&&b.suppressPrettyCount--,k+=this.endline(A,b,w),b.state=p.None}return this.closeNode(A,b,w),k},g.prototype.writeChildNode=function(A,b,w){switch(A.type){case y.CData:return this.cdata(A,b,w);case y.Comment:return this.comment(A,b,w);case y.Element:return this.element(A,b,w);case y.Raw:return this.raw(A,b,w);case y.Text:return this.text(A,b,w);case y.ProcessingInstruction:return this.processingInstruction(A,b,w);case y.Dummy:return"";case y.Declaration:return this.declaration(A,b,w);case y.DocType:return this.docType(A,b,w);case y.AttributeDeclaration:return this.dtdAttList(A,b,w);case y.ElementDeclaration:return this.dtdElement(A,b,w);case y.EntityDeclaration:return this.dtdEntity(A,b,w);case y.NotationDeclaration:return this.dtdNotation(A,b,w);default:throw new Error("Unknown XML node type: "+A.constructor.name)}},g.prototype.processingInstruction=function(A,b,w){var E;return this.openNode(A,b,w),b.state=p.OpenTag,E=this.indent(A,b,w)+"<?",b.state=p.InsideTag,E+=A.target,A.value&&(E+=" "+A.value),b.state=p.CloseTag,E+=b.spaceBeforeSlash+"?>",E+=this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),E},g.prototype.raw=function(A,b,w){var E;return this.openNode(A,b,w),b.state=p.OpenTag,E=this.indent(A,b,w),b.state=p.InsideTag,E+=A.value,b.state=p.CloseTag,E+=this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),E},g.prototype.text=function(A,b,w){var E;return this.openNode(A,b,w),b.state=p.OpenTag,E=this.indent(A,b,w),b.state=p.InsideTag,E+=A.value,b.state=p.CloseTag,E+=this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),E},g.prototype.dtdAttList=function(A,b,w){var E;return this.openNode(A,b,w),b.state=p.OpenTag,E=this.indent(A,b,w)+"<!ATTLIST",b.state=p.InsideTag,E+=" "+A.elementName+" "+A.attributeName+" "+A.attributeType,A.defaultValueType!=="#DEFAULT"&&(E+=" "+A.defaultValueType),A.defaultValue&&(E+=' "'+A.defaultValue+'"'),b.state=p.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),E},g.prototype.dtdElement=function(A,b,w){var E;return this.openNode(A,b,w),b.state=p.OpenTag,E=this.indent(A,b,w)+"<!ELEMENT",b.state=p.InsideTag,E+=" "+A.name+" "+A.value,b.state=p.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),E},g.prototype.dtdEntity=function(A,b,w){var E;return this.openNode(A,b,w),b.state=p.OpenTag,E=this.indent(A,b,w)+"<!ENTITY",b.state=p.InsideTag,A.pe&&(E+=" %"),E+=" "+A.name,A.value?E+=' "'+A.value+'"':(A.pubID&&A.sysID?E+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.sysID&&(E+=' SYSTEM "'+A.sysID+'"'),A.nData&&(E+=" NDATA "+A.nData)),b.state=p.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),E},g.prototype.dtdNotation=function(A,b,w){var E;return this.openNode(A,b,w),b.state=p.OpenTag,E=this.indent(A,b,w)+"<!NOTATION",b.state=p.InsideTag,E+=" "+A.name,A.pubID&&A.sysID?E+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.pubID?E+=' PUBLIC "'+A.pubID+'"':A.sysID&&(E+=' SYSTEM "'+A.sysID+'"'),b.state=p.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),E},g.prototype.openNode=function(A,b,w){},g.prototype.closeNode=function(A,b,w){},g.prototype.openAttribute=function(A,b,w){},g.prototype.closeAttribute=function(A,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(R,D,i){"use strict";(function(){var y,p,x,v,m,f,d,l,o,n;n=R("./Utility"),l=n.assign,o=n.isFunction,x=R("./XMLDOMImplementation"),v=R("./XMLDocument"),m=R("./XMLDocumentCB"),d=R("./XMLStringWriter"),f=R("./XMLStreamWriter"),y=R("./NodeType"),p=R("./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 v(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 v(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 x,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(R,D,i){D.exports=p;var y=Object.prototype.hasOwnProperty;function p(){for(var x={},v=0;v<arguments.length;v++){var m=arguments[v];for(var f in m)y.call(m,f)&&(x[f]=m[f])}return x}},{}],284:[function(R,D,i){"use strict";var y=R("buffer").Buffer,p=R("./sha"),x=R("./md5"),v={sha1:p,md5:x},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=v[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(R,D,i){"use strict";var y=R("buffer").Buffer,p=4,x=y.alloc(p);x.fill(0);var v=8;function m(l,o){if(l.length%p!==0){var n=l.length+(p-l.length%p);l=y.concat([l,x],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*v);return f(a,n,t)}D.exports={hash:d}},{buffer:73}],286:[function(R,D,i){"use strict";var y=R("./helpers");function p(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function x(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,A=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,A),s=o(s,b)}return Array(e,u,r,s)}function v(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 v(a&e|~a&u,t,a,r,s,c)}function f(t,a,e,u,r,s,c){return v(a&u|e&~u,t,a,r,s,c)}function d(t,a,e,u,r,s,c){return v(a^e^u,t,a,r,s,c)}function l(t,a,e,u,r,s,c){return v(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,x,16)}},{"./helpers":285}],287:[function(R,D,i){"use strict";var y=R("./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,A=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),x(b,t,a,e)),m(m(u,o[b]),v(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,A)}return Array(n,t,a,e,u)}function x(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 v(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(R,D,i){"use strict";D.exports=function(){return function(){}}},{}],289:[function(R,D,i){(function(y){"use strict";var p=R("babel-runtime/helpers/typeof"),x=v(p);function v(n){return n&&n.__esModule?n:{default:n}}var m=R("stream"),f=m.Stream,d=R("../lib/common/utils/isArray"),l=d.isArray;D.exports.string=function(t){return typeof t=="string"},D.exports.array=l,D.exports.buffer=y.isBuffer;function o(n){return n instanceof f}D.exports.writableStream=function(t){return o(t)&&typeof t._write=="function"&&(0,x.default)(t._writableState)==="object"}}).call(this,{isBuffer:R("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(R,D,i){"use strict";i.encodeURIComponent=function(y){try{return encodeURIComponent(y)}catch(p){return y}},i.escape=R("escape-html"),i.timestamp=function(p){if(p){var x=p;return typeof x=="string"&&(x=Number(x)),String(p).length===10&&(x*=1e3),new Date(x)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(R,D,i){(function(y,p){"use strict";var x=R("babel-runtime/core-js/json/stringify"),v=d(x),m=R("babel-runtime/helpers/typeof"),f=d(m);function d(b){return b&&b.__esModule?b:{default:b}}var l=R("util"),o=R("url"),n=R("http"),t=R("https"),a=R("debug")("urllib"),e=R("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(E,C,_){if(E)return w(E);b({data:C,status:_.statusCode,headers:_.headers,res:_})}}i.TIMEOUTS=[e("300s"),e("300s")];var A=["json","text"];i.request=function(w,E,C){return arguments.length===2&&typeof E=="function"&&(C=E,E=null),typeof C=="function"?i.requestWithCallback(w,E,C):(u||(u=R("any-promise")),new u(function(_,T){i.requestWithCallback(w,E,g(_,T))}))},i.requestWithCallback=function(w,E,C){if(!w||typeof w!="string"&&(typeof w=="undefined"?"undefined":(0,f.default)(w))!=="object"){var _=l.format("expect request url to be a string or a http request options, but got %j",w);throw new Error(_)}arguments.length===2&&typeof E=="function"&&(C=E,E=null),E=E||{},r>=s&&(r=0);var T=++r;E.requestUrls=E.requestUrls||[];var S={requestId:T,url:w,args:E,ctx:E.ctx};E.emitter&&E.emitter.emit("request",S),E.timeout=E.timeout||i.TIMEOUTS,E.maxRedirects=E.maxRedirects||10,E.streaming=E.streaming||E.customResponse;var O=Date.now(),I;typeof w=="string"?(c.test(w)||(w="http://"+w),I=o.parse(w)):I=w;var F=(E.type||E.method||I.method||"GET").toUpperCase(),P=I.port||80,B=n,k=h(E.agent,i.agent),G=E.fixJSONCtlChars;I.protocol==="https:"&&(B=t,k=h(E.httpsAgent,i.httpsAgent),I.port||(P=443));var M={host:I.hostname||I.host||"localhost",path:I.path||"/",method:F,port:P,agent:k,headers:E.headers||{},lookup:E.lookup};Array.isArray(E.timeout)?M.requestTimeout=E.timeout[E.timeout.length-1]:typeof E.timeout!="undefined"&&(M.requestTimeout=E.timeout);for(var j=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],K=0;K<j.length;K++){var z=j[K];E.hasOwnProperty(z)&&(M[z]=E[z])}M.rejectUnauthorized===!1&&!M.hasOwnProperty("secureOptions")&&(M.secureOptions=R("constants").SSL_OP_NO_TLSv1_2);var V=E.auth||I.auth;V&&(M.auth=V);var Q=E.content||E.data,X=F==="GET"||F==="HEAD"||E.dataAsQueryString;if(!E.content&&(Q&&!(typeof Q=="string"||p.isBuffer(Q))))if(X)Q=E.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q);else{var te=M.headers["Content-Type"]||M.headers["content-type"];te||(E.contentType==="json"?te="application/json":te="application/x-www-form-urlencoded",M.headers["Content-Type"]=te),parseContentType(te).type==="application/json"?Q=(0,v.default)(Q):Q=E.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q)}X&&Q&&(M.path+=(I.query?"&":"?")+Q,Q=null);var $=0;if(Q){var le=Q.length;p.isBuffer(Q)||(le=p.byteLength(Q)),$=M.headers["Content-Length"]=le}E.dataType==="json"&&(M.headers.Accept="application/json"),typeof E.beforeRequest=="function"&&E.beforeRequest(M);var re=null,Se=null,Re=null,Pe=!1,Je=!1,Ge=0,ct=-1,Ue=!1,ae="",lt="",pe=null;E.timing&&(pe={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function J(){re&&(clearTimeout(re),re=null)}function Y(){Se&&(clearTimeout(Se),Se=null)}function ee(Fe,mt,et){if(Y(),!C){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),T,y.pid,M.method,w),Fe&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),T,y.pid,Fe.name,Fe.message,Fe.stack);return}var St=C;C=null;var jt={};if(et&&(ct=et.statusCode,jt=et.headers),ct===401&&jt["www-authenticate"]&&(!E.headers||!E.headers.Authorization)&&E.digestAuth){var Mt=jt["www-authenticate"];if(Mt.indexOf("Digest ")>=0)return a("Request#%d %s: got digest auth header WWW-Authenticate: %s",T,w,Mt),E.headers=E.headers||{},E.headers.Authorization=digestAuthHeader(M.method,M.path,Mt,E.digestAuth),a("Request#%d %s: auth with digest header: %s",T,w,E.headers.Authorization),et.headers["set-cookie"]&&(E.headers.Cookie=et.headers["set-cookie"].join(";")),i.requestWithCallback(w,E,St)}var Ot=Date.now()-O;pe&&(pe.contentDownload=Ot),a("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Ot,Ge,ct,M.method,M.host,M.path,Je,pe);var Bt={status:ct,statusCode:ct,headers:jt,size:Ge,aborted:Ue,rt:Ot,keepAliveSocket:Je,data:mt,requestUrls:E.requestUrls,timing:pe,remoteAddress:ae,remotePort:lt};if(Fe){var Ke="";k&&typeof k.getCurrentStatus=="function"&&(Ke=", agent status: "+(0,v.default)(k.getCurrentStatus())),Fe.message+=", "+M.method+" "+w+" "+ct+" (connected: "+Pe+", keepalive socket: "+Je+Ke+`)
|
|
|
headers: `+(0,v.default)(jt),Fe.data=mt,Fe.path=M.path,Fe.status=ct,Fe.headers=jt,Fe.res=Bt}St(Fe,mt,E.streaming?et:Bt),E.emitter&&(S.url=w,S.socket=gt&>.connection,S.options=M,S.size=$,E.emitter.emit("response",{requestId:T,error:Fe,ctx:E.ctx,req:S,res:Bt}))}function fe(Fe){var mt=null;if(E.followRedirect&&statuses.redirect[Fe.statusCode]){E._followRedirectCount=(E._followRedirectCount||0)+1;var et=Fe.headers.location;if(!et)mt=new Error("Got statusCode "+Fe.statusCode+" but cannot resolve next location from headers"),mt.name="FollowRedirectError";else if(E._followRedirectCount>E.maxRedirects)mt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+w),mt.name="MaxRedirectError";else{var St=E.formatRedirectUrl?E.formatRedirectUrl(w,et):o.resolve(w,et);a("Request#%d %s: `redirected` from %s to %s",T,M.path,w,St),Y(),E.headers&&E.headers.Host&&c.test(et)&&(E.headers.Host=null);var jt=C;return C=null,i.requestWithCallback(St,E,jt),{redirect:!0,error:null}}}return{redirect:!1,error:mt}}!M.headers["User-Agent"]&&!M.headers["user-agent"]&&(M.headers["User-Agent"]=navigator.userAgent),E.gzip&&(!M.headers["Accept-Encoding"]&&!M.headers["accept-encoding"]&&(M.headers["Accept-Encoding"]="gzip"));function we(Fe,mt,et){var St=Fe.headers["content-encoding"];return et(null,mt,St)}var Ce=E.writeStream;a("Request#%d %s %s with headers %j, options.path: %s",T,F,w,M.headers,M.path),E.requestUrls.push(w);function _e(Fe){if(pe&&(pe.waiting=Date.now()-O),a("Request#%d %s `req response` event emit: status %d, headers: %j",T,w,Fe.statusCode,Fe.headers),E.streaming){var mt=fe(Fe);if(mt.redirect){Fe.resume();return}return mt.error?(Fe.resume(),ee(mt.error,null,Fe)):ee(null,null,Fe)}if(Fe.on("close",function(){a("Request#%d %s: `res close` event emit, total size %d",T,w,Ge)}),Fe.on("error",function(){a("Request#%d %s: `res error` event emit, total size %d",T,w,Ge)}),Fe.on("aborted",function(){Ue=!0,a("Request#%d %s: `res aborted` event emit, total size %d",T,w,Ge)}),Ce){var mt=fe(Fe);if(mt.redirect){Fe.resume();return}return mt.error?(Fe.resume(),Ce.end(),ee(mt.error,null,Fe)):(E.consumeWriteStream===!1?Fe.on("end",ee.bind(null,null,null,Fe)):isNode010||isNode012?first([[Ce,"close"],[Fe,"aborted"]],function(jt,Mt,Ot){a("Request#%d %s: writeStream or res %s event emitted",T,w,Ot),ee(Re||null,null,Fe)}):Ce.on("close",function(){a("Request#%d %s: writeStream close event emitted",T,w),ee(Re||null,null,Fe)}),Fe.pipe(Ce))}var et=[];Fe.on("data",function(St){a("Request#%d %s: `res data` event emit, size %d",T,w,St.length),Ge+=St.length,et.push(St)}),Fe.on("end",function(){var St=p.concat(et,Ge);if(a("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",T,w,Ge,Fe._dumped),Re)return ee(Re,St,Fe);var jt=fe(Fe);if(jt.error)return ee(jt.error,St,Fe);if(jt.redirect)return;we(Fe,St,function(Mt,Ot,Bt){if(Mt)return ee(Mt,St,Fe);if(!Bt&&A.indexOf(E.dataType)>=0){try{Ot=decodeBodyByCharset(Ot,Fe)}catch(de){return a("decodeBodyByCharset error: %s",de),ee(null,Ot,Fe)}if(E.dataType==="json")if(Ge===0)Ot=null;else{var Ke=parseJSON(Ot,G);Ke.error?Mt=Ke.error:Ot=Ke.data}}Ue&&a("Request#%d %s: Remote socket was terminated before `response.end()` was called",T,w),ee(Mt,Ot,Fe)})})}var he,ye;Array.isArray(E.timeout)?(he=e(E.timeout[0]),ye=e(E.timeout[1])):he=ye=e(E.timeout),a("ConnectTimeout: %d, ResponseTimeout: %d",he,ye);function Le(){a("Connect timer ticking, timeout: %d",he),re=setTimeout(function(){re=null,ct===-1&&(ct=-2);var Fe="Connect timeout for "+he+"ms",mt="ConnectionTimeoutError";gt.socket||(mt="SocketAssignTimeoutError",Fe+=", working sockets is full"),Re=new Error(Fe),Re.name=mt,Re.requestId=T,a("ConnectTimeout: Request#%d %s %s: %s, connected: %s",T,w,Re.name,Fe,Pe),at()},he)}function tt(){a("Response timer ticking, timeout: %d",ye),Se=setTimeout(function(){Se=null;var Fe="Response timeout for "+ye+"ms",mt="ResponseTimeoutError";Re=new Error(Fe),Re.name=mt,Re.requestId=T,a("ResponseTimeout: Request#%d %s %s: %s, connected: %s",T,w,Re.name,Fe,Pe),at()},ye)}var gt;M.mode=E.mode?E.mode:"";try{gt=B.request(M,_e)}catch(Fe){return ee(Fe)}typeof window=="undefined"?Le():gt.on("requestTimeout",function(){ct===-1&&(ct=-2);var Fe="Connect timeout for "+he+"ms",mt="ConnectionTimeoutError";Re=new Error(Fe),Re.name=mt,Re.requestId=T,at()});function at(){a("Request#%d %s abort, connected: %s",T,w,Pe),gt.socket||(Re.noSocket=!0,ee(Re)),gt.abort()}return pe&>.on("finish",function(){pe.requestSent=Date.now()-O}),gt.once("socket",function(Fe){pe&&(pe.queuing=Date.now()-O),isNode010&&Fe.socket&&(Fe=Fe.socket);var mt=Fe.readyState;if(mt==="opening"){Fe.once("lookup",function(et,St,jt){a("Request#%d %s lookup: %s, %s, %s",T,w,et,St,jt),pe&&(pe.dnslookup=Date.now()-O),St&&(ae=St)}),Fe.once("connect",function(){pe&&(pe.connected=Date.now()-O),J(),tt(),a("Request#%d %s new socket connected",T,w),Pe=!0,ae||(ae=Fe.remoteAddress),lt=Fe.remotePort});return}a("Request#%d %s reuse socket connected, readyState: %s",T,w,mt),Pe=!0,Je=!0,ae||(ae=Fe.remoteAddress),lt=Fe.remotePort,J(),tt()}),gt.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",T,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",T,w,Fe.name,Fe.message),at()}),E.stream?(E.stream.pipe(gt),E.stream.once("error",function(Fe){Fe.message+=' (stream "error")',Re=Fe,a("Request#%d %s `readStream error` event emit, %s: %s",T,w,Fe.name,Fe.message),at()})):gt.end(Q),gt.requestId=T,gt}}).call(this,R("_process"),R("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("yLpj"))},n1HI:function(R,D,i){var y=i("hX1E"),p=y.normalizeRadian,x=Math.PI*2;function v(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)%x<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+=x);var c=Math.atan2(e,a);return c<0&&(c+=x),c>=l&&c<=o||c+x>=l&&c+x<=o}D.containStroke=v},n4Lv:function(R,D,i){var y=i("7hqr"),p=y.isDimensionStacked,x=i("bYtY"),v=x.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=v(l.dimensions,function(w){return o.mapDimension(w)}),A,b=o.getCalculationInfo("stackResultDimension");return(A|=p(o,g[0]))&&(g[0]=b),(A|=p(o,g[1]))&&(g[1]=b),{dataDimsForPoint:g,valueStart:e,valueAxisDim:r,baseAxisDim:u,stacked:!!A,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(R,D,i){var y=i("SrGk"),p=i("bYtY"),x=i("Fofx");function v(f,d){y.call(this,f,d,"clipPath","__clippath_in_use__")}p.inherits(v,y),v.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)},v.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);x.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")},v.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=v;R.exports=m},nCxF:function(R,D,i){var y=i("QBsz"),p=y.min,x=y.max,v=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,A,b;if(e){A=[Infinity,Infinity],b=[-Infinity,-Infinity];for(var w=0,E=n.length;w<E;w++)p(A,A,n[w]),x(b,b,n[w]);p(A,A,e[0]),x(b,b,e[1])}for(var w=0,E=n.length;w<E;w++){var C=n[w];if(a)h=n[w?w-1:E-1],g=n[(w+1)%E];else if(w===0||w===E-1){u.push(d(n[w]));continue}else h=n[w-1],g=n[w+1];l(r,g,h),v(r,r,t);var _=m(C,h),T=m(C,g),S=_+T;S!==0&&(_/=S,T/=S),v(s,r,-_),v(c,r,T);var O=f([],C,s),I=f([],C,c);e&&(x(O,O,A),p(O,O,b),x(I,I,A),p(I,I,b)),u.push(O),u.push(I)}return a&&u.push(u.shift()),u}R.exports=o},nKiI:function(R,D,i){var y=i("bYtY"),p=i("mFDi"),x=i("OELB"),v=x.parsePercent,m=x.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(O,I,F,P){var B=F.getWidth(),k=F.getHeight(),G=O.option,M=f.getLayoutRect(O.getBoxLayoutParams(),{width:F.getWidth(),height:F.getHeight()}),j=G.size||[],K=v(n(M.width,j[0]),B),z=v(n(M.height,j[1]),k),V=P&&P.type,Q=["treemapZoomToNode","treemapRootToNode"],X=d.retrieveTargetInfo(P,Q,O),te=V==="treemapRender"||V==="treemapMove"?P.rootRect:null,$=O.getViewRoot(),le=d.getPathToRoot($);if(V!=="treemapMove"){var re=V==="treemapZoomToNode"?C(O,X,$,K,z):te?[te.width,te.height]:[K,z],Se=G.sort;Se&&Se!=="asc"&&Se!=="desc"&&(Se="desc");var Re={squareRatio:G.squareRatio,sort:Se,leafDepth:G.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(Ge,ct){var Ue=(le[ct+1]||$).getValue();Ge.setLayout(y.extend({dataExtent:[Ue,Ue],borderWidth:0,upperHeight:0},Pe))})}var Je=O.getData().tree.root;Je.setLayout(_(M,te,X),!0),O.setLayoutInfo(M),T(Je,new p(-M.x,-M.y,B,k),le,$,0)}};function c(O,I,F,P){var B,k;if(O.isRemoved())return;var G=O.getLayout();B=G.width,k=G.height;var M=O.getModel(),j=M.get(a),K=M.get(e)/2,z=S(M),V=Math.max(j,z),Q=j-K,X=V-K,M=O.getModel();O.setLayout({borderWidth:j,upperHeight:V,upperLabelHeight:z},!0),B=l(B-2*Q,0),k=l(k-Q-X,0);var te=B*k,$=h(O,M,te,I,F,P);if(!$.length)return;var le={x:Q,y:X,width:B,height:k},re=o(B,k),Se=Infinity,Re=[];Re.area=0;for(var Pe=0,Je=$.length;Pe<Je;){var Ge=$[Pe];Re.push(Ge),Re.area+=Ge.getLayout().area;var ct=w(Re,re,I.squareRatio);ct<=Se?(Pe++,Se=ct):(Re.area-=Re.pop().getLayout().area,E(Re,re,le,K,!1),re=o(le.width,le.height),Re.length=Re.area=0,Se=Infinity)}if(Re.length&&E(Re,re,le,K,!0),!F){var Ue=M.get("childrenVisibleMin");Ue!=null&&te<Ue&&(F=!0)}for(var Pe=0,Je=$.length;Pe<Je;Pe++)c($[Pe],I,F,P+1)}function h(O,I,F,P,B,k){var G=O.children||[],M=P.sort;M!=="asc"&&M!=="desc"&&(M=null);var j=P.leafDepth!=null&&P.leafDepth<=k;if(B&&!j)return O.viewChildren=[];G=y.filter(G,function(X){return!X.isRemoved()}),A(G,M);var K=b(I,G,M);if(K.sum===0)return O.viewChildren=[];if(K.sum=g(I,F,K.sum,M,G),K.sum===0)return O.viewChildren=[];for(var z=0,V=G.length;z<V;z++){var Q=G[z].getValue()/K.sum*F;G[z].setLayout({area:Q})}return j&&(G.length&&O.setLayout({isLeafRoot:!0},!0),G.length=0),O.viewChildren=G,O.setLayout({dataExtent:K.dataExtent},!0),G}function g(O,I,F,P,B){if(!P)return F;for(var k=O.get("visibleMin"),G=B.length,M=G,j=G-1;j>=0;j--){var K=B[P==="asc"?G-j-1:j].getValue();K/F*I<k&&(M=j,F-=K)}return P==="asc"?B.splice(0,G-M):B.splice(M,G-M),F}function A(O,I){return I&&O.sort(function(F,P){var B=I==="asc"?F.getValue()-P.getValue():P.getValue()-F.getValue();return B===0?I==="asc"?F.dataIndex-P.dataIndex:P.dataIndex-F.dataIndex:B}),O}function b(O,I,F){for(var P=0,B=0,k=I.length;B<k;B++)P+=I[B].getValue();var G=O.get("visualDimension"),M;if(!I||!I.length)M=[NaN,NaN];else if(G==="value"&&F)M=[I[I.length-1].getValue(),I[0].getValue()],F==="asc"&&M.reverse();else{var M=[Infinity,-Infinity];t(I,function(K){var z=K.getValue(G);z<M[0]&&(M[0]=z),z>M[1]&&(M[1]=z)})}return{sum:P,dataExtent:M}}function w(O,I,F){for(var P=0,B=Infinity,k=0,G,M=O.length;k<M;k++)G=O[k].getLayout().area,G&&(G<B&&(B=G),G>P&&(P=G));var j=O.area*O.area,K=I*I*F;return j?l(K*P/j,j/(K*B)):Infinity}function E(O,I,F,P,B){var k=I===F.width?0:1,G=1-k,M=["x","y"],j=["width","height"],K=F[M[k]],z=I?O.area/I:0;(B||z>F[j[G]])&&(z=F[j[G]]);for(var V=0,Q=O.length;V<Q;V++){var X=O[V],te={},$=z?X.getLayout().area/z:0,le=te[j[G]]=l(z-2*P,0),re=F[M[k]]+F[j[k]]-K,Se=V===Q-1||re<$?re:$,Re=te[j[k]]=l(Se-2*P,0);te[M[G]]=F[M[G]]+o(P,le/2),te[M[k]]=K+o(P,Re/2),K+=Se,X.setLayout(te,!0)}F[M[G]]+=z,F[j[G]]-=z}function C(O,I,F,P,B){var k=(I||{}).node,G=[P,B];if(!k||k===F)return G;for(var M,j=P*B,K=j*O.option.zoomToNodeRatio;M=k.parentNode;){for(var z=0,V=M.children,Q=0,X=V.length;Q<X;Q++)z+=V[Q].getValue();var te=k.getValue();if(te===0)return G;K*=z/te;var $=M.getModel(),le=$.get(a),re=Math.max(le,S($,le));K+=4*le*le+(3*le+re)*Math.pow(K,.5),K>m&&(K=m),k=M}K<j&&(K=j);var Se=Math.pow(K/j,.5);return[P*Se,B*Se]}function _(O,I,F){if(I)return{x:I.x,y:I.y};var P={x:0,y:0};if(!F)return P;var B=F.node,k=B.getLayout();if(!k)return P;for(var G=[k.width/2,k.height/2],M=B;M;){var j=M.getLayout();G[0]+=j.x,G[1]+=j.y,M=M.parentNode}return{x:O.width/2-G[0],y:O.height/2-G[1]}}function T(O,I,F,P,B){var k=O.getLayout(),G=F[B],M=G&&G===O;if(G&&!M||B===F.length&&O!==P)return;O.setLayout({isInView:!0,invisible:!M&&!I.intersect(k),isAboveViewRoot:M},!0);var j=new p(I.x-k.x,I.y-k.y,I.width,I.height);t(O.viewChildren||[],function(K){T(K,j,F,P,B+1)})}function S(O){return O.get(u)?O.get(r):0}R.exports=s},nPnh:function(R,D){var i=Math.round;function y(v,m,f){if(!m)return;var d=m.x1,l=m.x2,o=m.y1,n=m.y2;v.x1=d,v.x2=l,v.y1=o,v.y2=n;var t=f&&f.lineWidth;if(!t)return;i(d*2)===i(l*2)&&(v.x1=v.x2=x(d,t,!0)),i(o*2)===i(n*2)&&(v.y1=v.y2=x(o,t,!0))}function p(v,m,f){if(!m)return;var d=m.x,l=m.y,o=m.width,n=m.height;v.x=d,v.y=l,v.width=o,v.height=n;var t=f&&f.lineWidth;if(!t)return;v.x=x(d,t,!0),v.y=x(l,t,!0),v.width=Math.max(x(d+o,t,!1)-v.x,o===0?0:1),v.height=Math.max(x(l+n,t,!1)-v.y,n===0?0:1)}function x(v,m,f){if(!m)return v;var d=i(v*2);return(d+i(m))%2===0?d/2:(d+(f?1:-1))/2}D.subPixelOptimizeLine=y,D.subPixelOptimizeRect=p,D.subPixelOptimize=x},nRaC:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("0fbx"),v=i.n(x),m=i("OaEy"),f=i("R9oj")},nVVt:function(R,D){R.exports={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3}},nVfU:function(R,D,i){var y=i("bYtY"),p=i("OELB"),x=p.parsePercent,v=i("7hqr"),m=v.isDimensionStacked,f=i("zM3Q"),d="__ec_stack_",l=.5,o=typeof Float32Array!="undefined"?Float32Array:Array;function n(E){return E.get("stack")||d+E.seriesIndex}function t(E){return E.dim+E.index}function a(E){var C=[],_=E.axis,T="axis0";if(_.type!=="category")return;for(var S=_.getBandWidth(),O=0;O<E.count||0;O++)C.push(y.defaults({bandWidth:S,axisKey:T,stackId:d+O},E));for(var I=s(C),F=[],O=0;O<E.count;O++){var P=I[T][d+O];P.offsetCenter=P.offset+P.width/2,F.push(P)}return F}function e(E,C){var _=[];return C.eachSeriesByType(E,function(T){A(T)&&!b(T)&&_.push(T)}),_}function u(E){var C={};y.each(E,function(P){var B=P.coordinateSystem,k=B.getBaseAxis();if(k.type!=="time"&&k.type!=="value")return;for(var G=P.getData(),M=k.dim+"_"+k.index,j=G.mapDimension(k.dim),K=0,z=G.count();K<z;++K){var V=G.get(j,K);C[M]?C[M].push(V):C[M]=[V]}});var _=[];for(var T in C)if(C.hasOwnProperty(T)){var S=C[T];if(S){S.sort(function(P,B){return P-B});for(var O=null,I=1;I<S.length;++I){var F=S[I]-S[I-1];F>0&&(O=O===null?F:Math.min(O,F))}_[T]=O}}return _}function r(E){var C=u(E),_=[];return y.each(E,function(T){var S=T.coordinateSystem,O=S.getBaseAxis(),I=O.getExtent(),F;if(O.type==="category")F=O.getBandWidth();else if(O.type==="value"||O.type==="time"){var P=O.dim+"_"+O.index,B=C[P],k=Math.abs(I[1]-I[0]),G=O.scale.getExtent(),M=Math.abs(G[1]-G[0]);F=B?k/M*B:k}else{var j=T.getData();F=Math.abs(I[1]-I[0])/j.count()}var K=x(T.get("barWidth"),F),z=x(T.get("barMaxWidth"),F),V=x(T.get("barMinWidth")||1,F),Q=T.get("barGap"),X=T.get("barCategoryGap");_.push({bandWidth:F,barWidth:K,barMaxWidth:z,barMinWidth:V,barGap:Q,barCategoryGap:X,axisKey:t(O),stackId:n(T)})}),s(_)}function s(E){var C={};y.each(E,function(T,S){var O=T.axisKey,I=T.bandWidth,F=C[O]||{bandWidth:I,remainedWidth:I,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},P=F.stacks;C[O]=F;var B=T.stackId;P[B]||F.autoWidthCount++,P[B]=P[B]||{width:0,maxWidth:0};var k=T.barWidth;k&&!P[B].width&&(P[B].width=k,k=Math.min(F.remainedWidth,k),F.remainedWidth-=k);var G=T.barMaxWidth;G&&(P[B].maxWidth=G);var M=T.barMinWidth;M&&(P[B].minWidth=M);var j=T.barGap;j!=null&&(F.gap=j);var K=T.barCategoryGap;K!=null&&(F.categoryGap=K)});var _={};return y.each(C,function(T,S){_[S]={};var O=T.stacks,I=T.bandWidth,F=x(T.categoryGap,I),P=x(T.gap,1),B=T.remainedWidth,k=T.autoWidthCount,G=(B-F)/(k+(k-1)*P);G=Math.max(G,0),y.each(O,function(z){var V=z.maxWidth,Q=z.minWidth;if(z.width){var X=z.width;V&&(X=Math.min(X,V)),Q&&(X=Math.max(X,Q)),z.width=X,B-=X+P*X,k--}else{var X=G;V&&V<X&&(X=Math.min(V,B)),Q&&Q>X&&(X=Q),X!==G&&(z.width=X,B-=X+P*X,k--)}}),G=(B-F)/(k+(k-1)*P),G=Math.max(G,0);var M=0,j;y.each(O,function(z,V){z.width||(z.width=G),j=z,M+=z.width*(1+P)}),j&&(M-=j.width*P);var K=-M/2;y.each(O,function(z,V){_[S][V]=_[S][V]||{bandWidth:I,offset:K,width:z.width},K+=z.width*(1+P)})}),_}function c(E,C,_){if(E&&C){var T=E[t(C)];return T!=null&&_!=null&&(T=T[n(_)]),T}}function h(E,C){var _=e(E,C),T=r(_),S={},O={};y.each(_,function(I){var F=I.getData(),P=I.coordinateSystem,B=P.getBaseAxis(),k=n(I),G=T[t(B)][k],M=G.offset,j=G.width,K=P.getOtherAxis(B),z=I.get("barMinHeight")||0;S[k]=S[k]||[],O[k]=O[k]||[],F.setLayout({bandWidth:G.bandWidth,offset:M,size:j});for(var V=F.mapDimension(K.dim),Q=F.mapDimension(B.dim),X=m(F,V),te=K.isHorizontal(),$=w(B,K,X),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=$;X&&(S[k][Re]||(S[k][Re]={p:$,n:$}),Je=S[k][Re][Pe]);var Ge,ct,Ue,ae;if(te){var lt=P.dataToPoint([Se,Re]);Ge=Je,ct=lt[1]+M,Ue=lt[0]-$,ae=j,Math.abs(Ue)<z&&(Ue=(Ue<0?-1:1)*z),isNaN(Ue)||X&&(S[k][Re][Pe]+=Ue)}else{var lt=P.dataToPoint([Re,Se]);Ge=lt[0]+M,ct=Je,Ue=j,ae=lt[1]-$,Math.abs(ae)<z&&(ae=(ae<=0?-1:1)*z),isNaN(ae)||X&&(S[k][Re][Pe]+=ae)}F.setItemLayout(le,{x:Ge,y:ct,width:Ue,height:ae})}},this)}var g={seriesType:"bar",plan:f(),reset:function(E){if(!A(E)||!b(E))return;var C=E.getData(),_=E.coordinateSystem,T=_.grid.getRect(),S=_.getBaseAxis(),O=_.getOtherAxis(S),I=C.mapDimension(O.dim),F=C.mapDimension(S.dim),P=O.isHorizontal(),B=P?0:1,k=c(r([E]),S,E).width;return k>l||(k=l),{progress:G};function G(M,j){for(var K=M.count,z=new o(K*2),V=new o(K*2),Q=new o(K),X,te=[],$=[],le=0,re=0;(X=M.next())!=null;)$[B]=j.get(I,X),$[1-B]=j.get(F,X),te=_.dataToPoint($,null,te),V[le]=P?T.x+T.width:te[0],z[le++]=te[0],V[le]=P?te[1]:T.y+T.height,z[le++]=te[1],Q[re++]=X;j.setLayout({largePoints:z,largeDataIndices:Q,largeBackgroundPoints:V,barWidth:k,valueAxisStart:w(S,O,!1),backgroundStart:P?T.x:T.y,valueAxisHorizontal:P})}}};function A(E){return E.coordinateSystem&&E.coordinateSystem.type==="cartesian2d"}function b(E){return E.pipelineContext&&E.pipelineContext.large}function w(E,C,_){return C.toGlobalCoord(C.dataToCoord(C.type==="log"?1:0))}D.getLayoutOnAxis=a,D.prepareLayoutBarSeries=e,D.makeColumnLayout=r,D.retrieveColumnLayout=c,D.layout=h,D.largeLayout=g},ngQI:function(R,D,i){"use strict";i.d(D,"a",function(){return gu}),i.d(D,"b",function(){return js}),i.d(D,"c",function(){return sn});var y=i("q1tI"),p=i.n(y),x=i("dI71"),v=i("wx14"),m=i("ANjH"),f=i("/MKj");function d(je,oe){if(je.length!==oe.length)return!1;for(var Oe=0;Oe<je.length;Oe++)if(je[Oe]!==oe[Oe])return!1;return!0}function l(je,oe){var Oe=Object(y.useState)(function(){return{inputs:oe,result:je()}})[0],$e=Object(y.useRef)(!0),bt=Object(y.useRef)(Oe),Vt=$e.current||Boolean(oe&&bt.current.inputs&&d(oe,bt.current.inputs)),er=Vt?bt.current:{inputs:oe,result:je()};return Object(y.useEffect)(function(){$e.current=!1,bt.current=er},[er]),er.result}function o(je,oe){return l(function(){return je},oe)}var n=l,t=o,a=i("9R94"),e=function(oe){var Oe=oe.top,$e=oe.right,bt=oe.bottom,Vt=oe.left,er=$e-Vt,ir=bt-Oe,zr={top:Oe,right:$e,bottom:bt,left:Vt,width:er,height:ir,x:Vt,y:Oe,center:{x:($e+Vt)/2,y:(bt+Oe)/2}};return zr},u=function(oe,Oe){return{top:oe.top-Oe.top,left:oe.left-Oe.left,bottom:oe.bottom+Oe.bottom,right:oe.right+Oe.right}},r=function(oe,Oe){return{top:oe.top+Oe.top,left:oe.left+Oe.left,bottom:oe.bottom-Oe.bottom,right:oe.right-Oe.right}},s=function(oe,Oe){return{top:oe.top+Oe.y,left:oe.left+Oe.x,bottom:oe.bottom+Oe.y,right:oe.right+Oe.x}},c={top:0,right:0,bottom:0,left:0},h=function(oe){var Oe=oe.borderBox,$e=oe.margin,bt=$e===void 0?c:$e,Vt=oe.border,er=Vt===void 0?c:Vt,ir=oe.padding,zr=ir===void 0?c:ir,hn=e(u(Oe,bt)),Wr=e(r(Oe,er)),jr=e(r(Wr,zr));return{marginBox:hn,borderBox:e(Oe),paddingBox:Wr,contentBox:jr,margin:bt,border:er,padding:zr}},g=function(oe){var Oe=oe.slice(0,-2),$e=oe.slice(-2);if($e!=="px")return 0;var bt=Number(Oe);return isNaN(bt)&&Object(a.a)(!1),bt},A=function(){return{x:window.pageXOffset,y:window.pageYOffset}},b=function(oe,Oe){var $e=oe.borderBox,bt=oe.border,Vt=oe.margin,er=oe.padding,ir=s($e,Oe);return h({borderBox:ir,border:bt,margin:Vt,padding:er})},w=function(oe,Oe){return Oe===void 0&&(Oe=A()),b(oe,Oe)},E=function(oe,Oe){var $e={top:g(Oe.marginTop),right:g(Oe.marginRight),bottom:g(Oe.marginBottom),left:g(Oe.marginLeft)},bt={top:g(Oe.paddingTop),right:g(Oe.paddingRight),bottom:g(Oe.paddingBottom),left:g(Oe.paddingLeft)},Vt={top:g(Oe.borderTopWidth),right:g(Oe.borderRightWidth),bottom:g(Oe.borderBottomWidth),left:g(Oe.borderLeftWidth)};return h({borderBox:oe,margin:$e,padding:bt,border:Vt})},C=function(oe){var Oe=oe.getBoundingClientRect(),$e=window.getComputedStyle(oe);return E(Oe,$e)},_=Number.isNaN||function(oe){return typeof oe=="number"&&oe!==oe};function T(je,oe){return je===oe?!0:!!(_(je)&&_(oe))}function S(je,oe){if(je.length!==oe.length)return!1;for(var Oe=0;Oe<je.length;Oe++)if(!T(je[Oe],oe[Oe]))return!1;return!0}function O(je,oe){oe===void 0&&(oe=S);var Oe,$e=[],bt,Vt=!1;function er(){for(var ir=[],zr=0;zr<arguments.length;zr++)ir[zr]=arguments[zr];return Vt&&Oe===this&&oe(ir,$e)||(bt=je.apply(this,ir),Vt=!0,Oe=this,$e=ir),bt}return er}var I=O,F=function(oe){var Oe=[],$e=null,bt=function(){for(var er=arguments.length,ir=new Array(er),zr=0;zr<er;zr++)ir[zr]=arguments[zr];if(Oe=ir,$e)return;$e=requestAnimationFrame(function(){$e=null,oe.apply(void 0,Oe)})};return bt.cancel=function(){if(!$e)return;cancelAnimationFrame($e),$e=null},bt},P=F,B=i("i8i4"),k=i.n(B),G=!0,M=/[ \t]{2,}/g,j=/^[ \t]*/gm,K=function(oe){return oe.replace(M," ").replace(j,"").trim()},z=function(oe){return K(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+K(oe)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},V=function(oe){return[z(oe),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Q="__react-beautiful-dnd-disable-dev-warnings";function X(je,oe){var Oe;if(G)return;if(typeof window!="undefined"&&window[Q])return;(Oe=console)[je].apply(Oe,V(oe))}var te=X.bind(null,"warn"),$=X.bind(null,"error");function le(){}function re(je,oe){return Object(v.a)({},je,{},oe)}function Se(je,oe,Oe){var $e=oe.map(function(bt){var Vt=re(Oe,bt.options);return je.addEventListener(bt.eventName,bt.fn,Vt),function(){je.removeEventListener(bt.eventName,bt.fn,Vt)}});return function(){$e.forEach(function(Vt){Vt()})}}var Re=!0,Pe="Invariant failed";function Je(je){this.message=je}Je.prototype.toString=function(){return this.message};function Ge(je,oe){if(je)return;throw Re?new Je(Pe):new Je(Pe+": "+(oe||""))}var ct=function(je){Object(x.a)(oe,je);function oe(){for(var $e,bt=arguments.length,Vt=new Array(bt),er=0;er<bt;er++)Vt[er]=arguments[er];return $e=je.call.apply(je,[this].concat(Vt))||this,$e.callbacks=null,$e.unbind=le,$e.onWindowError=function(ir){var zr=$e.getCallbacks();zr.isDragging()&&zr.tryAbort();var hn=ir.error;hn instanceof Je&&ir.preventDefault()},$e.getCallbacks=function(){if(!$e.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return $e.callbacks},$e.setCallbacks=function(ir){$e.callbacks=ir},$e}var Oe=oe.prototype;return Oe.componentDidMount=function(){this.unbind=Se(window,[{eventName:"error",fn:this.onWindowError}])},Oe.componentWillUnmount=function(){this.unbind()},Oe.componentDidCatch=function(bt){if(bt instanceof Je){this.setState({});return}throw bt},Oe.render=function(){return this.props.children(this.setCallbacks)},oe}(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
|
|
|
`,ae=function(oe){return oe+1},lt=function(oe){return`
|
|
|
You have lifted an item in position `+ae(oe.source.index)+`
|
|
|
`},pe=function(oe,Oe){var $e=oe.droppableId===Oe.droppableId,bt=ae(oe.index),Vt=ae(Oe.index);return $e?`
|
|
|
You have moved the item from position `+bt+`
|
|
|
to position `+Vt+`
|
|
|
`:`
|
|
|
You have moved the item from position `+bt+`
|
|
|
in list `+oe.droppableId+`
|
|
|
to list `+Oe.droppableId+`
|
|
|
in position `+Vt+`
|
|
|
`},J=function(oe,Oe,$e){var bt=Oe.droppableId===$e.droppableId;return bt?`
|
|
|
The item `+oe+`
|
|
|
has been combined with `+$e.draggableId:`
|
|
|
The item `+oe+`
|
|
|
in list `+Oe.droppableId+`
|
|
|
has been combined with `+$e.draggableId+`
|
|
|
in list `+$e.droppableId+`
|
|
|
`},Y=function(oe){var Oe=oe.destination;if(Oe)return pe(oe.source,Oe);var $e=oe.combine;return $e?J(oe.draggableId,oe.source,$e):"You are over an area that cannot be dropped on"},ee=function(oe){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+ae(oe.index)+`
|
|
|
`},fe=function(oe){if(oe.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+ee(oe.source)+`
|
|
|
`;var Oe=oe.destination,$e=oe.combine;return Oe?`
|
|
|
You have dropped the item.
|
|
|
`+pe(oe.source,Oe)+`
|
|
|
`:$e?`
|
|
|
You have dropped the item.
|
|
|
`+J(oe.draggableId,oe.source,$e)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+ee(oe.source)+`
|
|
|
`},we={dragHandleUsageInstructions:Ue,onDragStart:lt,onDragUpdate:Y,onDragEnd:fe},Ce={x:0,y:0},_e=function(oe,Oe){return{x:oe.x+Oe.x,y:oe.y+Oe.y}},he=function(oe,Oe){return{x:oe.x-Oe.x,y:oe.y-Oe.y}},ye=function(oe,Oe){return oe.x===Oe.x&&oe.y===Oe.y},Le=function(oe){return{x:oe.x!==0?-oe.x:0,y:oe.y!==0?-oe.y:0}},tt=function(oe,Oe,$e){var bt;return $e===void 0&&($e=0),bt={},bt[oe]=Oe,bt[oe==="x"?"y":"x"]=$e,bt},gt=function(oe,Oe){return Math.sqrt(Math.pow(Oe.x-oe.x,2)+Math.pow(Oe.y-oe.y,2))},at=function(oe,Oe){return Math.min.apply(Math,Oe.map(function($e){return gt(oe,$e)}))},Fe=function(oe){return function(Oe){return{x:oe(Oe.x),y:oe(Oe.y)}}},mt=function(oe,Oe){var $e=e({top:Math.max(Oe.top,oe.top),right:Math.min(Oe.right,oe.right),bottom:Math.min(Oe.bottom,oe.bottom),left:Math.max(Oe.left,oe.left)});return $e.width<=0||$e.height<=0?null:$e},et=function(oe,Oe){return{top:oe.top+Oe.y,left:oe.left+Oe.x,bottom:oe.bottom+Oe.y,right:oe.right+Oe.x}},St=function(oe){return[{x:oe.left,y:oe.top},{x:oe.right,y:oe.top},{x:oe.left,y:oe.bottom},{x:oe.right,y:oe.bottom}]},jt={top:0,right:0,bottom:0,left:0},Mt=function(oe,Oe){return Oe?et(oe,Oe.scroll.diff.displacement):oe},Ot=function(oe,Oe,$e){if($e&&$e.increasedBy){var bt;return Object(v.a)({},oe,(bt={},bt[Oe.end]=oe[Oe.end]+$e.increasedBy[Oe.line],bt))}return oe},Bt=function(oe,Oe){return Oe&&Oe.shouldClipSubject?mt(Oe.pageMarginBox,oe):e(oe)},Ke=function(oe){var Oe=oe.page,$e=oe.withPlaceholder,bt=oe.axis,Vt=oe.frame,er=Mt(Oe.marginBox,Vt),ir=Ot(er,bt,$e),zr=Bt(ir,Vt);return{page:Oe,withPlaceholder:$e,active:zr}},de=function(oe,Oe){oe.frame||Ge(!1);var $e=oe.frame,bt=he(Oe,$e.scroll.initial),Vt=Le(bt),er=Object(v.a)({},$e,{scroll:{initial:$e.scroll.initial,current:Oe,diff:{value:bt,displacement:Vt},max:$e.scroll.max}}),ir=Ke({page:oe.subject.page,withPlaceholder:oe.subject.withPlaceholder,axis:oe.axis,frame:er}),zr=Object(v.a)({},oe,{frame:er,subject:ir});return zr};function se(je){return Number.isInteger?Number.isInteger(je):typeof je=="number"&&isFinite(je)&&Math.floor(je)===je}function ut(je){return Object.values?Object.values(je):Object.keys(je).map(function(oe){return je[oe]})}function qe(je,oe){if(je.findIndex)return je.findIndex(oe);for(var Oe=0;Oe<je.length;Oe++)if(oe(je[Oe]))return Oe;return-1}function me(je,oe){if(je.find)return je.find(oe);var Oe=qe(je,oe);return Oe!==-1?je[Oe]:void 0}function Wt(je){return Array.prototype.slice.call(je)}var dr=I(function(je){return je.reduce(function(oe,Oe){return oe[Oe.descriptor.id]=Oe,oe},{})}),vt=I(function(je){return je.reduce(function(oe,Oe){return oe[Oe.descriptor.id]=Oe,oe},{})}),rr=I(function(je){return ut(je)}),ur=I(function(je){return ut(je)}),mn=I(function(je,oe){var Oe=ur(oe).filter(function($e){return je===$e.descriptor.droppableId}).sort(function($e,bt){return $e.descriptor.index-bt.descriptor.index});return Oe});function sr(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 pr=I(function(je,oe){return oe.filter(function(Oe){return Oe.descriptor.id!==je.descriptor.id})}),Zt=function(oe){var Oe=oe.isMovingForward,$e=oe.draggable,bt=oe.destination,Vt=oe.insideDestination,er=oe.previousImpact;if(!bt.isCombineEnabled)return null;var ir=sr(er);if(!ir)return null;function zr(ki){var da={type:"COMBINE",combine:{draggableId:ki,droppableId:bt.descriptor.id}};return Object(v.a)({},er,{at:da})}var hn=er.displaced.all,Wr=hn.length?hn[0]:null;if(Oe)return Wr?zr(Wr):null;var jr=pr($e,Vt);if(!Wr){if(!jr.length)return null;var ln=jr[jr.length-1];return zr(ln.descriptor.id)}var yn=qe(jr,function(ki){return ki.descriptor.id===Wr});yn!==-1||Ge(!1);var Wn=yn-1;if(Wn<0)return null;var Ii=jr[Wn];return zr(Ii.descriptor.id)},Ct=function(oe,Oe){return oe.descriptor.droppableId===Oe.descriptor.id},on={point:Ce,value:0},Mn={invisible:{},visible:{},all:[]},Xn={displaced:Mn,displacedBy:on,at:null},oi=function(oe,Oe){return function($e){return oe<=$e&&$e<=Oe}},Ui=function(oe){var Oe=oi(oe.top,oe.bottom),$e=oi(oe.left,oe.right);return function(bt){var Vt=Oe(bt.top)&&Oe(bt.bottom)&&$e(bt.left)&&$e(bt.right);if(Vt)return!0;var er=Oe(bt.top)||Oe(bt.bottom),ir=$e(bt.left)||$e(bt.right),zr=er&&ir;if(zr)return!0;var hn=bt.top<oe.top&&bt.bottom>oe.bottom,Wr=bt.left<oe.left&&bt.right>oe.right,jr=hn&&Wr;if(jr)return!0;var ln=hn&&ir||Wr&&er;return ln}},Un=function(oe){var Oe=oi(oe.top,oe.bottom),$e=oi(oe.left,oe.right);return function(bt){var Vt=Oe(bt.top)&&Oe(bt.bottom)&&$e(bt.left)&&$e(bt.right);return Vt}},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"},Nt=function(oe){return function(Oe){var $e=oi(Oe.top,Oe.bottom),bt=oi(Oe.left,Oe.right);return function(Vt){return oe===Qn?$e(Vt.top)&&$e(Vt.bottom):bt(Vt.left)&&bt(Vt.right)}}},Me=function(oe,Oe){var $e=Oe.frame?Oe.frame.scroll.diff.displacement:Ce;return et(oe,$e)},ke=function(oe,Oe,$e){return Oe.subject.active?$e(Oe.subject.active)(oe):!1},Be=function(oe,Oe,$e){return $e(Oe)(oe)},it=function(oe){var Oe=oe.target,$e=oe.destination,bt=oe.viewport,Vt=oe.withDroppableDisplacement,er=oe.isVisibleThroughFrameFn,ir=Vt?Me(Oe,$e):Oe;return ke(ir,$e,er)&&Be(ir,bt,er)},yt=function(oe){return it(Object(v.a)({},oe,{isVisibleThroughFrameFn:Ui}))},Tt=function(oe){return it(Object(v.a)({},oe,{isVisibleThroughFrameFn:Un}))},Yt=function(oe){return it(Object(v.a)({},oe,{isVisibleThroughFrameFn:Nt(oe.destination.axis)}))},Pr=function(oe,Oe,$e){if(typeof $e=="boolean")return $e;if(!Oe)return!0;var bt=Oe.invisible,Vt=Oe.visible;if(bt[oe])return!1;var er=Vt[oe];return er?er.shouldAnimate:!0};function $r(je,oe){var Oe=je.page.marginBox,$e={top:oe.point.y,right:0,bottom:0,left:oe.point.x};return e(u(Oe,$e))}function An(je){var oe=je.afterDragging,Oe=je.destination,$e=je.displacedBy,bt=je.viewport,Vt=je.forceShouldAnimate,er=je.last;return oe.reduce(function(zr,hn){var Wr=$r(hn,$e),jr=hn.descriptor.id;zr.all.push(jr);var ln=yt({target:Wr,destination:Oe,viewport:bt,withDroppableDisplacement:!0});if(!ln)return zr.invisible[hn.descriptor.id]=!0,zr;var yn=Pr(jr,er,Vt),Wn={draggableId:jr,shouldAnimate:yn};return zr.visible[jr]=Wn,zr},{all:[],visible:{},invisible:{}})}function zt(je,oe){if(!je.length)return 0;var Oe=je[je.length-1].descriptor.index;return oe.inHomeList?Oe:Oe+1}function At(je){var oe=je.insideDestination,Oe=je.inHomeList,$e=je.displacedBy,bt=je.destination,Vt=zt(oe,{inHomeList:Oe});return{displaced:Mn,displacedBy:$e,at:{type:"REORDER",destination:{droppableId:bt.descriptor.id,index:Vt}}}}function wt(je){var oe=je.draggable,Oe=je.insideDestination,$e=je.destination,bt=je.viewport,Vt=je.displacedBy,er=je.last,ir=je.index,zr=je.forceShouldAnimate,hn=Ct(oe,$e);if(ir==null)return At({insideDestination:Oe,inHomeList:hn,displacedBy:Vt,destination:$e});var Wr=me(Oe,function(Ii){return Ii.descriptor.index===ir});if(!Wr)return At({insideDestination:Oe,inHomeList:hn,displacedBy:Vt,destination:$e});var jr=pr(oe,Oe),ln=Oe.indexOf(Wr),yn=jr.slice(ln),Wn=An({afterDragging:yn,destination:$e,displacedBy:Vt,last:er,viewport:bt.frame,forceShouldAnimate:zr});return{displaced:Wn,displacedBy:Vt,at:{type:"REORDER",destination:{droppableId:$e.descriptor.id,index:ir}}}}function vr(je,oe){return Boolean(oe.effected[je])}var Jt=function(oe){var Oe=oe.isMovingForward,$e=oe.destination,bt=oe.draggables,Vt=oe.combine,er=oe.afterCritical;if(!$e.isCombineEnabled)return null;var ir=Vt.draggableId,zr=bt[ir],hn=zr.descriptor.index,Wr=vr(ir,er);return Wr?Oe?hn:hn-1:Oe?hn+1:hn},Ut=function(oe){var Oe=oe.isMovingForward,$e=oe.isInHomeList,bt=oe.insideDestination,Vt=oe.location;if(!bt.length)return null;var er=Vt.index,ir=Oe?er+1:er-1,zr=bt[0].descriptor.index,hn=bt[bt.length-1].descriptor.index,Wr=$e?hn:hn+1;return ir<zr||ir>Wr?null:ir},tr=function(oe){var Oe=oe.isMovingForward,$e=oe.isInHomeList,bt=oe.draggable,Vt=oe.draggables,er=oe.destination,ir=oe.insideDestination,zr=oe.previousImpact,hn=oe.viewport,Wr=oe.afterCritical,jr=zr.at;if(jr||Ge(!1),jr.type==="REORDER"){var ln=Ut({isMovingForward:Oe,isInHomeList:$e,location:jr.destination,insideDestination:ir});return ln==null?null:wt({draggable:bt,insideDestination:ir,destination:er,viewport:hn,last:zr.displaced,displacedBy:zr.displacedBy,index:ln})}var yn=Jt({isMovingForward:Oe,destination:er,displaced:zr.displaced,draggables:Vt,combine:jr.combine,afterCritical:Wr});return yn==null?null:wt({draggable:bt,insideDestination:ir,destination:er,viewport:hn,last:zr.displaced,displacedBy:zr.displacedBy,index:yn})},Ft=function(oe){var Oe=oe.displaced,$e=oe.afterCritical,bt=oe.combineWith,Vt=oe.displacedBy,er=Boolean(Oe.visible[bt]||Oe.invisible[bt]);return vr(bt,$e)?er?Ce:Le(Vt.point):er?Vt.point:Ce},qt=function(oe){var Oe=oe.afterCritical,$e=oe.impact,bt=oe.draggables,Vt=xr($e);Vt||Ge(!1);var er=Vt.draggableId,ir=bt[er].page.borderBox.center,zr=Ft({displaced:$e.displaced,afterCritical:Oe,combineWith:er,displacedBy:$e.displacedBy});return _e(ir,zr)},Hr=function(oe,Oe){return Oe.margin[oe.start]+Oe.borderBox[oe.size]/2},Nr=function(oe,Oe){return Oe.margin[oe.end]+Oe.borderBox[oe.size]/2},Dr=function(oe,Oe,$e){return Oe[oe.crossAxisStart]+$e.margin[oe.crossAxisStart]+$e.borderBox[oe.crossAxisSize]/2},cn=function(oe){var Oe=oe.axis,$e=oe.moveRelativeTo,bt=oe.isMoving;return tt(Oe.line,$e.marginBox[Oe.end]+Hr(Oe,bt),Dr(Oe,$e.marginBox,bt))},vn=function(oe){var Oe=oe.axis,$e=oe.moveRelativeTo,bt=oe.isMoving;return tt(Oe.line,$e.marginBox[Oe.start]-Nr(Oe,bt),Dr(Oe,$e.marginBox,bt))},ei=function(oe){var Oe=oe.axis,$e=oe.moveInto,bt=oe.isMoving;return tt(Oe.line,$e.contentBox[Oe.start]+Hr(Oe,bt),Dr(Oe,$e.contentBox,bt))},qn=function(oe){var Oe=oe.impact,$e=oe.draggable,bt=oe.draggables,Vt=oe.droppable,er=oe.afterCritical,ir=mn(Vt.descriptor.id,bt),zr=$e.page,hn=Vt.axis;if(!ir.length)return ei({axis:hn,moveInto:Vt.page,isMoving:zr});var Wr=Oe.displaced,jr=Oe.displacedBy,ln=Wr.all[0];if(ln){var yn=bt[ln];if(vr(ln,er))return vn({axis:hn,moveRelativeTo:yn.page,isMoving:zr});var Wn=b(yn.page,jr.point);return vn({axis:hn,moveRelativeTo:Wn,isMoving:zr})}var Ii=ir[ir.length-1];if(Ii.descriptor.id===$e.descriptor.id)return zr.borderBox.center;if(vr(Ii.descriptor.id,er)){var ki=b(Ii.page,Le(er.displacedBy.point));return cn({axis:hn,moveRelativeTo:ki,isMoving:zr})}return cn({axis:hn,moveRelativeTo:Ii.page,isMoving:zr})},fi=function(oe,Oe){var $e=oe.frame;return $e?_e(Oe,$e.scroll.diff.displacement):Oe},xi=function(oe){var Oe=oe.impact,$e=oe.draggable,bt=oe.droppable,Vt=oe.draggables,er=oe.afterCritical,ir=$e.page.borderBox.center,zr=Oe.at;return bt&&zr?zr.type==="REORDER"?qn({impact:Oe,draggable:$e,draggables:Vt,droppable:bt,afterCritical:er}):qt({impact:Oe,draggables:Vt,afterCritical:er}):ir},Ni=function(oe){var Oe=xi(oe),$e=oe.droppable,bt=$e?fi($e,Oe):Oe;return bt},Hi=function(oe,Oe){var $e=he(Oe,oe.scroll.initial),bt=Le($e),Vt=e({top:Oe.y,bottom:Oe.y+oe.frame.height,left:Oe.x,right:Oe.x+oe.frame.width}),er={frame:Vt,scroll:{initial:oe.scroll.initial,max:oe.scroll.max,current:Oe,diff:{value:$e,displacement:bt}}};return er};function nt(je,oe){return je.map(function(Oe){return oe[Oe]})}function Ne(je,oe){for(var Oe=0;Oe<oe.length;Oe++){var $e=oe[Oe].visible[je];if($e)return $e}return null}var He=function(oe){var Oe=oe.impact,$e=oe.viewport,bt=oe.destination,Vt=oe.draggables,er=oe.maxScrollChange,ir=Hi($e,_e($e.scroll.current,er)),zr=bt.frame?de(bt,_e(bt.frame.scroll.current,er)):bt,hn=Oe.displaced,Wr=An({afterDragging:nt(hn.all,Vt),destination:bt,displacedBy:Oe.displacedBy,viewport:ir.frame,last:hn,forceShouldAnimate:!1}),jr=An({afterDragging:nt(hn.all,Vt),destination:zr,displacedBy:Oe.displacedBy,viewport:$e.frame,last:hn,forceShouldAnimate:!1}),ln={},yn={},Wn=[hn,Wr,jr];hn.all.forEach(function(ki){var da=Ne(ki,Wn);if(da){yn[ki]=da;return}ln[ki]=!0});var Ii=Object(v.a)({},Oe,{displaced:{all:hn.all,invisible:ln,visible:yn}});return Ii},Xe=function(oe,Oe){return _e(oe.scroll.diff.displacement,Oe)},rt=function(oe){var Oe=oe.pageBorderBoxCenter,$e=oe.draggable,bt=oe.viewport,Vt=Xe(bt,Oe),er=he(Vt,$e.page.borderBox.center);return _e($e.client.borderBox.center,er)},Ze=function(oe){var Oe=oe.draggable,$e=oe.destination,bt=oe.newPageBorderBoxCenter,Vt=oe.viewport,er=oe.withDroppableDisplacement,ir=oe.onlyOnMainAxis,zr=ir===void 0?!1:ir,hn=he(bt,Oe.page.borderBox.center),Wr=et(Oe.page.borderBox,hn),jr={target:Wr,destination:$e,withDroppableDisplacement:er,viewport:Vt};return zr?Yt(jr):Tt(jr)},st=function(oe){var Oe=oe.isMovingForward,$e=oe.draggable,bt=oe.destination,Vt=oe.draggables,er=oe.previousImpact,ir=oe.viewport,zr=oe.previousPageBorderBoxCenter,hn=oe.previousClientSelection,Wr=oe.afterCritical;if(!bt.isEnabled)return null;var jr=mn(bt.descriptor.id,Vt),ln=Ct($e,bt),yn=Zt({isMovingForward:Oe,draggable:$e,destination:bt,insideDestination:jr,previousImpact:er})||tr({isMovingForward:Oe,isInHomeList:ln,draggable:$e,draggables:Vt,destination:bt,insideDestination:jr,previousImpact:er,viewport:ir,afterCritical:Wr});if(!yn)return null;var Wn=Ni({impact:yn,draggable:$e,droppable:bt,draggables:Vt,afterCritical:Wr}),Ii=Ze({draggable:$e,destination:bt,newPageBorderBoxCenter:Wn,viewport:ir.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(Ii){var ki=rt({pageBorderBoxCenter:Wn,draggable:$e,viewport:ir});return{clientSelection:ki,impact:yn,scrollJumpRequest:null}}var da=he(Wn,zr),$i=He({impact:yn,viewport:ir,destination:bt,draggables:Vt,maxScrollChange:da});return{clientSelection:hn,impact:$i,scrollJumpRequest:da}},xt=function(oe){var Oe=oe.subject.active;return Oe||Ge(!1),Oe},pt=function(oe){var Oe=oe.isMovingForward,$e=oe.pageBorderBoxCenter,bt=oe.source,Vt=oe.droppables,er=oe.viewport,ir=bt.subject.active;if(!ir)return null;var zr=bt.axis,hn=oi(ir[zr.start],ir[zr.end]),Wr=rr(Vt).filter(function(ln){return ln!==bt}).filter(function(ln){return ln.isEnabled}).filter(function(ln){return Boolean(ln.subject.active)}).filter(function(ln){return Ui(er.frame)(xt(ln))}).filter(function(ln){var yn=xt(ln);return Oe?ir[zr.crossAxisEnd]<yn[zr.crossAxisEnd]:yn[zr.crossAxisStart]<ir[zr.crossAxisStart]}).filter(function(ln){var yn=xt(ln),Wn=oi(yn[zr.start],yn[zr.end]);return hn(yn[zr.start])||hn(yn[zr.end])||Wn(ir[zr.start])||Wn(ir[zr.end])}).sort(function(ln,yn){var Wn=xt(ln)[zr.crossAxisStart],Ii=xt(yn)[zr.crossAxisStart];return Oe?Wn-Ii:Ii-Wn}).filter(function(ln,yn,Wn){return xt(ln)[zr.crossAxisStart]===xt(Wn[0])[zr.crossAxisStart]});if(!Wr.length)return null;if(Wr.length===1)return Wr[0];var jr=Wr.filter(function(ln){var yn=oi(xt(ln)[zr.start],xt(ln)[zr.end]);return yn($e[zr.line])});return jr.length===1?jr[0]:jr.length>1?jr.sort(function(ln,yn){return xt(ln)[zr.start]-xt(yn)[zr.start]})[0]:Wr.sort(function(ln,yn){var Wn=at($e,St(xt(ln))),Ii=at($e,St(xt(yn)));return Wn!==Ii?Wn-Ii:xt(ln)[zr.start]-xt(yn)[zr.start]})[0]},hr=function(oe,Oe){var $e=oe.page.borderBox.center;return vr(oe.descriptor.id,Oe)?he($e,Oe.displacedBy.point):$e},Zr=function(oe,Oe){var $e=oe.page.borderBox;return vr(oe.descriptor.id,Oe)?et($e,Le(Oe.displacedBy.point)):$e},Xr=function(oe){var Oe=oe.pageBorderBoxCenter,$e=oe.viewport,bt=oe.destination,Vt=oe.insideDestination,er=oe.afterCritical,ir=Vt.filter(function(zr){return Tt({target:Zr(zr,er),destination:bt,viewport:$e.frame,withDroppableDisplacement:!0})}).sort(function(zr,hn){var Wr=gt(Oe,fi(bt,hr(zr,er))),jr=gt(Oe,fi(bt,hr(hn,er)));return Wr<jr?-1:jr<Wr?1:zr.descriptor.index-hn.descriptor.index});return ir[0]||null},pn=I(function(oe,Oe){var $e=Oe[oe.line];return{value:$e,point:tt(oe.line,$e)}}),gr=function(oe,Oe,$e){var bt=oe.axis;if(oe.descriptor.mode==="virtual")return tt(bt.line,Oe[bt.line]);var Vt=oe.subject.page.contentBox[bt.size],er=mn(oe.descriptor.id,$e),ir=er.reduce(function(Wr,jr){return Wr+jr.client.marginBox[bt.size]},0),zr=ir+Oe[bt.line],hn=zr-Vt;return hn<=0?null:tt(bt.line,hn)},Kn=function(oe,Oe){return Object(v.a)({},oe,{scroll:Object(v.a)({},oe.scroll,{max:Oe})})},Rr=function(oe,Oe,$e){var bt=oe.frame;Ct(Oe,oe)&&Ge(!1),oe.subject.withPlaceholder&&Ge(!1);var Vt=pn(oe.axis,Oe.displaceBy).point,er=gr(oe,Vt,$e),ir={placeholderSize:Vt,increasedBy:er,oldFrameMaxScroll:oe.frame?oe.frame.scroll.max:null};if(!bt){var zr=Ke({page:oe.subject.page,withPlaceholder:ir,axis:oe.axis,frame:oe.frame});return Object(v.a)({},oe,{subject:zr})}var hn=er?_e(bt.scroll.max,er):bt.scroll.max,Wr=Kn(bt,hn),jr=Ke({page:oe.subject.page,withPlaceholder:ir,axis:oe.axis,frame:Wr});return Object(v.a)({},oe,{subject:jr,frame:Wr})},Pn=function(oe){var Oe=oe.subject.withPlaceholder;Oe||Ge(!1);var $e=oe.frame;if(!$e){var bt=Ke({page:oe.subject.page,axis:oe.axis,frame:null,withPlaceholder:null});return Object(v.a)({},oe,{subject:bt})}var Vt=Oe.oldFrameMaxScroll;Vt||Ge(!1);var er=Kn($e,Vt),ir=Ke({page:oe.subject.page,axis:oe.axis,frame:er,withPlaceholder:null});return Object(v.a)({},oe,{subject:ir,frame:er})},an=function(oe){var Oe=oe.previousPageBorderBoxCenter,$e=oe.moveRelativeTo,bt=oe.insideDestination,Vt=oe.draggable,er=oe.draggables,ir=oe.destination,zr=oe.viewport,hn=oe.afterCritical;if(!$e){if(bt.length)return null;var Wr={displaced:Mn,displacedBy:on,at:{type:"REORDER",destination:{droppableId:ir.descriptor.id,index:0}}},jr=Ni({impact:Wr,draggable:Vt,droppable:ir,draggables:er,afterCritical:hn}),ln=Ct(Vt,ir)?ir:Rr(ir,Vt,er),yn=Ze({draggable:Vt,destination:ln,newPageBorderBoxCenter:jr,viewport:zr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return yn?Wr:null}var Wn=Boolean(Oe[ir.axis.line]<=$e.page.borderBox.center[ir.axis.line]),Ii=function(){var da=$e.descriptor.index;return $e.descriptor.id===Vt.descriptor.id||Wn?da:da+1}(),ki=pn(ir.axis,Vt.displaceBy);return wt({draggable:Vt,insideDestination:bt,destination:ir,viewport:zr,displacedBy:ki,last:Mn,index:Ii})},Ur=function(oe){var Oe=oe.isMovingForward,$e=oe.previousPageBorderBoxCenter,bt=oe.draggable,Vt=oe.isOver,er=oe.draggables,ir=oe.droppables,zr=oe.viewport,hn=oe.afterCritical,Wr=pt({isMovingForward:Oe,pageBorderBoxCenter:$e,source:Vt,droppables:ir,viewport:zr});if(!Wr)return null;var jr=mn(Wr.descriptor.id,er),ln=Xr({pageBorderBoxCenter:$e,viewport:zr,destination:Wr,insideDestination:jr,afterCritical:hn}),yn=an({previousPageBorderBoxCenter:$e,destination:Wr,draggable:bt,draggables:er,moveRelativeTo:ln,insideDestination:jr,viewport:zr,afterCritical:hn});if(!yn)return null;var Wn=Ni({impact:yn,draggable:bt,droppable:Wr,draggables:er,afterCritical:hn}),Ii=rt({pageBorderBoxCenter:Wn,draggable:bt,viewport:zr});return{clientSelection:Ii,impact:yn,scrollJumpRequest:null}},ii=function(oe){var Oe=oe.at;return Oe?Oe.type==="REORDER"?Oe.destination.droppableId:Oe.combine.droppableId:null},_i=function(oe,Oe){var $e=ii(oe);return $e?Oe[$e]:null},Gi=function(oe){var Oe=oe.state,$e=oe.type,bt=_i(Oe.impact,Oe.dimensions.droppables),Vt=Boolean(bt),er=Oe.dimensions.droppables[Oe.critical.droppable.id],ir=bt||er,zr=ir.axis.direction,hn=zr==="vertical"&&($e==="MOVE_UP"||$e==="MOVE_DOWN")||zr==="horizontal"&&($e==="MOVE_LEFT"||$e==="MOVE_RIGHT");if(hn&&!Vt)return null;var Wr=$e==="MOVE_DOWN"||$e==="MOVE_RIGHT",jr=Oe.dimensions.draggables[Oe.critical.draggable.id],ln=Oe.current.page.borderBoxCenter,yn=Oe.dimensions,Wn=yn.draggables,Ii=yn.droppables;return hn?st({isMovingForward:Wr,previousPageBorderBoxCenter:ln,draggable:jr,destination:ir,draggables:Wn,viewport:Oe.viewport,previousClientSelection:Oe.current.client.selection,previousImpact:Oe.impact,afterCritical:Oe.afterCritical}):Ur({isMovingForward:Wr,previousPageBorderBoxCenter:ln,draggable:jr,isOver:ir,draggables:Wn,droppables:Ii,viewport:Oe.viewport,afterCritical:Oe.afterCritical})};function tn(je){return je.phase==="DRAGGING"||je.phase==="COLLECTING"}function Tn(je){var oe=oi(je.top,je.bottom),Oe=oi(je.left,je.right);return function(bt){return oe(bt.y)&&Oe(bt.x)}}function Vn(je,oe){return je.left<oe.right&&je.right>oe.left&&je.top<oe.bottom&&je.bottom>oe.top}function Xt(je){var oe=je.pageBorderBox,Oe=je.draggable,$e=je.candidates,bt=Oe.page.borderBox.center,Vt=$e.map(function(er){var ir=er.axis,zr=tt(er.axis.line,oe.center[ir.line],er.page.borderBox.center[ir.crossAxisLine]);return{id:er.descriptor.id,distance:gt(bt,zr)}}).sort(function(er,ir){return ir.distance-er.distance});return Vt[0]?Vt[0].id:null}function It(je){var oe=je.pageBorderBox,Oe=je.draggable,$e=je.droppables,bt=rr($e).filter(function(Vt){if(!Vt.isEnabled)return!1;var er=Vt.subject.active;if(!er)return!1;if(!Vn(oe,er))return!1;if(Tn(er)(oe.center))return!0;var ir=Vt.axis,zr=er.center[ir.crossAxisLine],hn=oe[ir.crossAxisStart],Wr=oe[ir.crossAxisEnd],jr=oi(er[ir.crossAxisStart],er[ir.crossAxisEnd]),ln=jr(hn),yn=jr(Wr);return!ln&&!yn?!0:ln?hn<zr:Wr>zr});return bt.length?bt.length===1?bt[0].descriptor.id:Xt({pageBorderBox:oe,draggable:Oe,candidates:bt}):null}var Pt=function(oe,Oe){return e(et(oe,Oe))},Kt=function(oe,Oe){var $e=oe.frame;return $e?Pt(Oe,$e.scroll.diff.value):Oe};function Gt(je){var oe=je.displaced,Oe=je.id;return Boolean(oe.visible[Oe]||oe.invisible[Oe])}function Dt(je){var oe=je.draggable,Oe=je.closest,$e=je.inHomeList;return Oe?$e&&Oe.descriptor.index>oe.descriptor.index?Oe.descriptor.index-1:Oe.descriptor.index:null}var lr=function(oe){var Oe=oe.pageBorderBoxWithDroppableScroll,$e=oe.draggable,bt=oe.destination,Vt=oe.insideDestination,er=oe.last,ir=oe.viewport,zr=oe.afterCritical,hn=bt.axis,Wr=pn(bt.axis,$e.displaceBy),jr=Wr.value,ln=Oe[hn.start],yn=Oe[hn.end],Wn=pr($e,Vt),Ii=me(Wn,function(da){var $i=da.descriptor.id,Qa=da.page.borderBox.center[hn.line],ya=vr($i,zr),fo=Gt({displaced:er,id:$i});return ya?fo?yn<=Qa:ln<Qa-jr:fo?yn<=Qa+jr:ln<Qa}),ki=Dt({draggable:$e,closest:Ii,inHomeList:Ct($e,bt)});return wt({draggable:$e,insideDestination:Vt,destination:bt,viewport:ir,last:er,displacedBy:Wr,index:ki})},Ar=4,yr=function(oe){var Oe=oe.draggable,$e=oe.pageBorderBoxWithDroppableScroll,bt=oe.previousImpact,Vt=oe.destination,er=oe.insideDestination,ir=oe.afterCritical;if(!Vt.isCombineEnabled)return null;var zr=Vt.axis,hn=pn(Vt.axis,Oe.displaceBy),Wr=hn.value,jr=$e[zr.start],ln=$e[zr.end],yn=pr(Oe,er),Wn=me(yn,function(ki){var da=ki.descriptor.id,$i=ki.page.borderBox,Qa=$i[zr.size],ya=Qa/Ar,fo=vr(da,ir),za=Gt({displaced:bt.displaced,id:da});return fo?za?ln>$i[zr.start]+ya&&ln<$i[zr.end]-ya:jr>$i[zr.start]-Wr+ya&&jr<$i[zr.end]-Wr-ya:za?ln>$i[zr.start]+Wr+ya&&ln<$i[zr.end]+Wr-ya:jr>$i[zr.start]+ya&&jr<$i[zr.end]-ya});if(!Wn)return null;var Ii={displacedBy:hn,displaced:bt.displaced,at:{type:"COMBINE",combine:{draggableId:Wn.descriptor.id,droppableId:Vt.descriptor.id}}};return Ii},Mr=function(oe){var Oe=oe.pageOffset,$e=oe.draggable,bt=oe.draggables,Vt=oe.droppables,er=oe.previousImpact,ir=oe.viewport,zr=oe.afterCritical,hn=Pt($e.page.borderBox,Oe),Wr=It({pageBorderBox:hn,draggable:$e,droppables:Vt});if(!Wr)return Xn;var jr=Vt[Wr],ln=mn(jr.descriptor.id,bt),yn=Kt(jr,hn);return yr({pageBorderBoxWithDroppableScroll:yn,draggable:$e,previousImpact:er,destination:jr,insideDestination:ln,afterCritical:zr})||lr({pageBorderBoxWithDroppableScroll:yn,draggable:$e,destination:jr,insideDestination:ln,last:er.displaced,viewport:ir,afterCritical:zr})},zn=function(oe,Oe){var $e;return Object(v.a)({},oe,($e={},$e[Oe.descriptor.id]=Oe,$e))},Rn=function(oe){var Oe=oe.previousImpact,$e=oe.impact,bt=oe.droppables,Vt=ii(Oe),er=ii($e);if(!Vt)return bt;if(Vt===er)return bt;var ir=bt[Vt];if(!ir.subject.withPlaceholder)return bt;var zr=Pn(ir);return zn(bt,zr)},di=function(oe){var Oe=oe.draggable,$e=oe.draggables,bt=oe.droppables,Vt=oe.previousImpact,er=oe.impact,ir=Rn({previousImpact:Vt,impact:er,droppables:bt}),zr=ii(er);if(!zr)return ir;var hn=bt[zr];if(Ct(Oe,hn))return ir;if(hn.subject.withPlaceholder)return ir;var Wr=Rr(hn,Oe,$e);return zn(ir,Wr)},gn=function(oe){var Oe=oe.state,$e=oe.clientSelection,bt=oe.dimensions,Vt=oe.viewport,er=oe.impact,ir=oe.scrollJumpRequest,zr=Vt||Oe.viewport,hn=bt||Oe.dimensions,Wr=$e||Oe.current.client.selection,jr=he(Wr,Oe.initial.client.selection),ln={offset:jr,selection:Wr,borderBoxCenter:_e(Oe.initial.client.borderBoxCenter,jr)},yn={selection:_e(ln.selection,zr.scroll.current),borderBoxCenter:_e(ln.borderBoxCenter,zr.scroll.current),offset:_e(ln.offset,zr.scroll.diff.value)},Wn={client:ln,page:yn};if(Oe.phase==="COLLECTING")return Object(v.a)({phase:"COLLECTING"},Oe,{dimensions:hn,viewport:zr,current:Wn});var Ii=hn.draggables[Oe.critical.draggable.id],ki=er||Mr({pageOffset:yn.offset,draggable:Ii,draggables:hn.draggables,droppables:hn.droppables,previousImpact:Oe.impact,viewport:zr,afterCritical:Oe.afterCritical}),da=di({draggable:Ii,impact:ki,previousImpact:Oe.impact,draggables:hn.draggables,droppables:hn.droppables}),$i=Object(v.a)({},Oe,{current:Wn,dimensions:{draggables:hn.draggables,droppables:da},impact:ki,viewport:zr,scrollJumpRequest:ir||null,forceShouldAnimate:ir?!1:null});return $i};function Br(je,oe){return je.map(function(Oe){return oe[Oe]})}var _n=function(oe){var Oe=oe.impact,$e=oe.viewport,bt=oe.draggables,Vt=oe.destination,er=oe.forceShouldAnimate,ir=Oe.displaced,zr=Br(ir.all,bt),hn=An({afterDragging:zr,destination:Vt,displacedBy:Oe.displacedBy,viewport:$e.frame,forceShouldAnimate:er,last:ir});return Object(v.a)({},Oe,{displaced:hn})},Gn=function(oe){var Oe=oe.impact,$e=oe.draggable,bt=oe.droppable,Vt=oe.draggables,er=oe.viewport,ir=oe.afterCritical,zr=Ni({impact:Oe,draggable:$e,draggables:Vt,droppable:bt,afterCritical:ir});return rt({pageBorderBoxCenter:zr,draggable:$e,viewport:er})},Zn=function(oe){var Oe=oe.state,$e=oe.dimensions,bt=oe.viewport;Oe.movementMode==="SNAP"||Ge(!1);var Vt=Oe.impact,er=bt||Oe.viewport,ir=$e||Oe.dimensions,zr=ir.draggables,hn=ir.droppables,Wr=zr[Oe.critical.draggable.id],jr=ii(Vt);jr||Ge(!1);var ln=hn[jr],yn=_n({impact:Vt,viewport:er,destination:ln,draggables:zr}),Wn=Gn({impact:yn,draggable:Wr,droppable:ln,draggables:zr,viewport:er,afterCritical:Oe.afterCritical});return gn({impact:yn,clientSelection:Wn,state:Oe,dimensions:ir,viewport:er})},ai=function(oe){return{index:oe.index,droppableId:oe.droppableId}},Ei=function(oe){var Oe=oe.draggable,$e=oe.home,bt=oe.draggables,Vt=oe.viewport,er=pn($e.axis,Oe.displaceBy),ir=mn($e.descriptor.id,bt),zr=ir.indexOf(Oe);zr!==-1||Ge(!1);var hn=ir.slice(zr+1),Wr=hn.reduce(function(Wn,Ii){return Wn[Ii.descriptor.id]=!0,Wn},{}),jr={inVirtualList:$e.descriptor.mode==="virtual",displacedBy:er,effected:Wr},ln=An({afterDragging:hn,destination:$e,displacedBy:er,last:null,viewport:Vt.frame,forceShouldAnimate:!1}),yn={displaced:ln,displacedBy:er,at:{type:"REORDER",destination:ai(Oe.descriptor)}};return{impact:yn,afterCritical:jr}},Ri=function(oe,Oe){return{draggables:oe.draggables,droppables:zn(oe.droppables,Oe)}},Di=function(oe){},oa=function(oe){},ma=function(oe){var Oe=oe.draggable,$e=oe.offset,bt=oe.initialWindowScroll,Vt=b(Oe.client,$e),er=w(Vt,bt),ir=Object(v.a)({},Oe,{placeholder:Object(v.a)({},Oe.placeholder,{client:Vt}),client:Vt,page:er});return ir},aa=function(oe){var Oe=oe.frame;return Oe||Ge(!1),Oe},ba=function(oe){var Oe=oe.additions,$e=oe.updatedDroppables,bt=oe.viewport,Vt=bt.scroll.diff.value;return Oe.map(function(er){var ir=er.descriptor.droppableId,zr=$e[ir],hn=aa(zr),Wr=hn.scroll.diff.value,jr=_e(Vt,Wr),ln=ma({draggable:er,offset:jr,initialWindowScroll:bt.scroll.initial});return ln})},Ai=function(oe){var Oe=oe.state,$e=oe.published;Di();var bt=$e.modified.map(function(ya){var fo=Oe.dimensions.droppables[ya.droppableId],za=de(fo,ya.scroll);return za}),Vt=Object(v.a)({},Oe.dimensions.droppables,{},dr(bt)),er=vt(ba({additions:$e.additions,updatedDroppables:Vt,viewport:Oe.viewport})),ir=Object(v.a)({},Oe.dimensions.draggables,{},er);$e.removals.forEach(function(ya){delete ir[ya]});var zr={droppables:Vt,draggables:ir},hn=ii(Oe.impact),Wr=hn?zr.droppables[hn]:null,jr=zr.draggables[Oe.critical.draggable.id],ln=zr.droppables[Oe.critical.droppable.id],yn=Ei({draggable:jr,home:ln,draggables:ir,viewport:Oe.viewport}),Wn=yn.impact,Ii=yn.afterCritical,ki=Wr&&Wr.isCombineEnabled?Oe.impact:Wn,da=Mr({pageOffset:Oe.current.page.offset,draggable:zr.draggables[Oe.critical.draggable.id],draggables:zr.draggables,droppables:zr.droppables,previousImpact:ki,viewport:Oe.viewport,afterCritical:Ii});oa();var $i=Object(v.a)({phase:"DRAGGING"},Oe,{phase:"DRAGGING",impact:da,onLiftImpact:Wn,dimensions:zr,afterCritical:Ii,forceShouldAnimate:!1});if(Oe.phase==="COLLECTING")return $i;var Qa=Object(v.a)({phase:"DROP_PENDING"},$i,{phase:"DROP_PENDING",reason:Oe.reason,isWaiting:!1});return Qa},Dn=function(oe){return oe.movementMode==="SNAP"},Bi=function(oe,Oe,$e){var bt=Ri(oe.dimensions,Oe);return!Dn(oe)||$e?gn({state:oe,dimensions:bt}):Zn({state:oe,dimensions:bt})};function ha(je){return je.isDragging&&je.movementMode==="SNAP"?Object(v.a)({phase:"DRAGGING"},je,{scrollJumpRequest:null}):je}var ta={phase:"IDLE",completed:null,shouldFlush:!1},ra=function(oe,Oe){if(oe===void 0&&(oe=ta),Oe.type==="FLUSH")return Object(v.a)({},ta,{shouldFlush:!0});if(Oe.type==="INITIAL_PUBLISH"){oe.phase==="IDLE"||Ge(!1);var $e=Oe.payload,bt=$e.critical,Vt=$e.clientSelection,er=$e.viewport,ir=$e.dimensions,zr=$e.movementMode,hn=ir.draggables[bt.draggable.id],Wr=ir.droppables[bt.droppable.id],jr={selection:Vt,borderBoxCenter:hn.client.borderBox.center,offset:Ce},ln={client:jr,page:{selection:_e(jr.selection,er.scroll.initial),borderBoxCenter:_e(jr.selection,er.scroll.initial),offset:_e(jr.selection,er.scroll.diff.value)}},yn=rr(ir.droppables).every(function(Ss){return!Ss.isFixedOnPage}),Wn=Ei({draggable:hn,home:Wr,draggables:ir.draggables,viewport:er}),Ii=Wn.impact,ki=Wn.afterCritical,da={phase:"DRAGGING",isDragging:!0,critical:bt,movementMode:zr,dimensions:ir,initial:ln,current:ln,isWindowScrollAllowed:yn,impact:Ii,afterCritical:ki,onLiftImpact:Ii,viewport:er,scrollJumpRequest:null,forceShouldAnimate:null};return da}if(Oe.type==="COLLECTION_STARTING"){if(oe.phase==="COLLECTING"||oe.phase==="DROP_PENDING")return oe;oe.phase==="DRAGGING"||Ge(!1);var $i=Object(v.a)({phase:"COLLECTING"},oe,{phase:"COLLECTING"});return $i}if(Oe.type==="PUBLISH_WHILE_DRAGGING")return oe.phase==="COLLECTING"||oe.phase==="DROP_PENDING"||Ge(!1),Ai({state:oe,published:Oe.payload});if(Oe.type==="MOVE"){if(oe.phase==="DROP_PENDING")return oe;tn(oe)||Ge(!1);var Qa=Oe.payload.client;return ye(Qa,oe.current.client.selection)?oe:gn({state:oe,clientSelection:Qa,impact:Dn(oe)?oe.impact:null})}if(Oe.type==="UPDATE_DROPPABLE_SCROLL"){if(oe.phase==="DROP_PENDING")return ha(oe);if(oe.phase==="COLLECTING")return ha(oe);tn(oe)||Ge(!1);var ya=Oe.payload,fo=ya.id,za=ya.newScroll,Xo=oe.dimensions.droppables[fo];if(!Xo)return oe;var ls=de(Xo,za);return Bi(oe,ls,!1)}if(Oe.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(oe.phase==="DROP_PENDING")return oe;tn(oe)||Ge(!1);var N=Oe.payload,U=N.id,ie=N.isEnabled,ue=oe.dimensions.droppables[U];ue||Ge(!1),ue.isEnabled!==ie||Ge(!1);var ge=Object(v.a)({},ue,{isEnabled:ie});return Bi(oe,ge,!0)}if(Oe.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(oe.phase==="DROP_PENDING")return oe;tn(oe)||Ge(!1);var We=Oe.payload,Lt=We.id,nr=We.isCombineEnabled,br=oe.dimensions.droppables[Lt];br||Ge(!1),br.isCombineEnabled!==nr||Ge(!1);var _r=Object(v.a)({},br,{isCombineEnabled:nr});return Bi(oe,_r,!0)}if(Oe.type==="MOVE_BY_WINDOW_SCROLL"){if(oe.phase==="DROP_PENDING"||oe.phase==="DROP_ANIMATING")return oe;tn(oe)||Ge(!1),oe.isWindowScrollAllowed||Ge(!1);var Bn=Oe.payload.newScroll;if(ye(oe.viewport.scroll.current,Bn))return ha(oe);var ti=Hi(oe.viewport,Bn);return Dn(oe)?Zn({state:oe,viewport:ti}):gn({state:oe,viewport:ti})}if(Oe.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!tn(oe))return oe;var Si=Oe.payload.maxScroll;if(ye(Si,oe.viewport.scroll.max))return oe;var Ci=Object(v.a)({},oe.viewport,{scroll:Object(v.a)({},oe.viewport.scroll,{max:Si})});return Object(v.a)({phase:"DRAGGING"},oe,{viewport:Ci})}if(Oe.type==="MOVE_UP"||Oe.type==="MOVE_DOWN"||Oe.type==="MOVE_LEFT"||Oe.type==="MOVE_RIGHT"){if(oe.phase==="COLLECTING"||oe.phase==="DROP_PENDING")return oe;oe.phase==="DRAGGING"||Ge(!1);var la=Gi({state:oe,type:Oe.type});return la?gn({state:oe,impact:la.impact,clientSelection:la.clientSelection,scrollJumpRequest:la.scrollJumpRequest}):oe}if(Oe.type==="DROP_PENDING"){var Ta=Oe.payload.reason;oe.phase==="COLLECTING"||Ge(!1);var Wa=Object(v.a)({phase:"DROP_PENDING"},oe,{phase:"DROP_PENDING",isWaiting:!0,reason:Ta});return Wa}if(Oe.type==="DROP_ANIMATE"){var Ma=Oe.payload,Na=Ma.completed,qa=Ma.dropDuration,ho=Ma.newHomeClientOffset;oe.phase==="DRAGGING"||oe.phase==="DROP_PENDING"||Ge(!1);var ns={phase:"DROP_ANIMATING",completed:Na,dropDuration:qa,newHomeClientOffset:ho,dimensions:oe.dimensions};return ns}if(Oe.type==="DROP_COMPLETE"){var Mo=Oe.payload.completed;return{phase:"IDLE",completed:Mo,shouldFlush:!1}}return oe},Ir=function(oe){return{type:"BEFORE_INITIAL_CAPTURE",payload:oe}},Sr=function(oe){return{type:"LIFT",payload:oe}},En=function(oe){return{type:"INITIAL_PUBLISH",payload:oe}},fr=function(oe){return{type:"PUBLISH_WHILE_DRAGGING",payload:oe}},kr=function(){return{type:"COLLECTION_STARTING",payload:null}},Vr=function(oe){return{type:"UPDATE_DROPPABLE_SCROLL",payload:oe}},un=function(oe){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:oe}},kn=function(oe){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:oe}},_t=function(oe){return{type:"MOVE",payload:oe}},Or=function(oe){return{type:"MOVE_BY_WINDOW_SCROLL",payload:oe}},Lr=function(oe){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:oe}},en=function(){return{type:"MOVE_UP",payload:null}},Sn=function(){return{type:"MOVE_DOWN",payload:null}},On=function(){return{type:"MOVE_RIGHT",payload:null}},wn=function(){return{type:"MOVE_LEFT",payload:null}},$n=function(){return{type:"FLUSH",payload:null}},jn=function(oe){return{type:"DROP_ANIMATE",payload:oe}},pi=function(oe){return{type:"DROP_COMPLETE",payload:oe}},Mi=function(oe){return{type:"DROP",payload:oe}},yi=function(oe){return{type:"DROP_PENDING",payload:oe}},Oi=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function zi(je){if(je.length<=1)return;for(var oe=je.map(function(ir){return ir.descriptor.index}),Oe={},$e=1;$e<oe.length;$e++){var bt=oe[$e],Vt=oe[$e-1];bt!==Vt+1&&(Oe[bt]=!0)}if(!Object.keys(Oe).length)return;var er=oe.map(function(ir){var zr=Boolean(Oe[ir]);return zr?"[\u{1F525}"+ir+"]":""+ir}).join(", ")}function ea(je,oe){if(!1)var Oe}var Xi=function(oe){return function(Oe){var $e=Oe.getState,bt=Oe.dispatch;return function(Vt){return function(er){if(er.type!=="LIFT"){Vt(er);return}var ir=er.payload,zr=ir.id,hn=ir.clientSelection,Wr=ir.movementMode,jr=$e();jr.phase==="DROP_ANIMATING"&&bt(pi({completed:jr.completed})),$e().phase==="IDLE"||Ge(!1),bt($n()),bt(Ir({draggableId:zr,movementMode:Wr}));var ln={shouldPublishImmediately:Wr==="SNAP"},yn={draggableId:zr,scrollOptions:ln},Wn=oe.startPublishing(yn),Ii=Wn.critical,ki=Wn.dimensions,da=Wn.viewport;ea(Ii,ki),bt(En({critical:Ii,dimensions:ki,clientSelection:hn,movementMode:Wr,viewport:da}))}}}},Wi=function(oe){return function(){return function(Oe){return function($e){$e.type==="INITIAL_PUBLISH"&&oe.dragging(),$e.type==="DROP_ANIMATE"&&oe.dropping($e.payload.completed.result.reason),($e.type==="FLUSH"||$e.type==="DROP_COMPLETE")&&oe.resting(),Oe($e)}}}},ji={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ji={opacity:{drop:0,combining:.7},scale:{drop:.75}},ca={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Ca=ca.outOfTheWay+"s "+ji.outOfTheWay,na={fluid:"opacity "+Ca,snap:"transform "+Ca+", opacity "+Ca,drop:function(oe){var Oe=oe+"s "+ji.drop;return"transform "+Oe+", opacity "+Oe},outOfTheWay:"transform "+Ca,placeholder:"height "+Ca+", width "+Ca+", margin "+Ca},Pa=function(oe){return ye(oe,Ce)?null:"translate("+oe.x+"px, "+oe.y+"px)"},La={moveTo:Pa,drop:function(oe,Oe){var $e=Pa(oe);return $e?Oe?$e+" scale("+Ji.scale.drop+")":$e:null}},va=ca.minDropTime,ga=ca.maxDropTime,Oa=ga-va,Aa=1500,Xa=.6,_a=function(oe){var Oe=oe.current,$e=oe.destination,bt=oe.reason,Vt=gt(Oe,$e);if(Vt<=0)return va;if(Vt>=Aa)return ga;var er=Vt/Aa,ir=va+Oa*er,zr=bt==="CANCEL"?ir*Xa:ir;return Number(zr.toFixed(2))},Va=function(oe){var Oe=oe.impact,$e=oe.draggable,bt=oe.dimensions,Vt=oe.viewport,er=oe.afterCritical,ir=bt.draggables,zr=bt.droppables,hn=ii(Oe),Wr=hn?zr[hn]:null,jr=zr[$e.descriptor.droppableId],ln=Gn({impact:Oe,draggable:$e,draggables:ir,afterCritical:er,droppable:Wr||jr,viewport:Vt}),yn=he(ln,$e.client.borderBox.center);return yn},Pi=function(oe){var Oe=oe.draggables,$e=oe.reason,bt=oe.lastImpact,Vt=oe.home,er=oe.viewport,ir=oe.onLiftImpact;if(!bt.at||$e!=="DROP"){var zr=_n({draggables:Oe,impact:ir,destination:Vt,viewport:er,forceShouldAnimate:!0});return{impact:zr,didDropInsideDroppable:!1}}if(bt.at.type==="REORDER")return{impact:bt,didDropInsideDroppable:!0};var hn=Object(v.a)({},bt,{displaced:Mn});return{impact:hn,didDropInsideDroppable:!0}},io=function(oe){var Oe=oe.getState,$e=oe.dispatch;return function(bt){return function(Vt){if(Vt.type!=="DROP"){bt(Vt);return}var er=Oe(),ir=Vt.payload.reason;if(er.phase==="COLLECTING"){$e(yi({reason:ir}));return}if(er.phase==="IDLE")return;var zr=er.phase==="DROP_PENDING"&&er.isWaiting;zr&&Ge(!1),er.phase==="DRAGGING"||er.phase==="DROP_PENDING"||Ge(!1);var hn=er.critical,Wr=er.dimensions,jr=Wr.draggables[er.critical.draggable.id],ln=Pi({reason:ir,lastImpact:er.impact,afterCritical:er.afterCritical,onLiftImpact:er.onLiftImpact,home:er.dimensions.droppables[er.critical.droppable.id],viewport:er.viewport,draggables:er.dimensions.draggables}),yn=ln.impact,Wn=ln.didDropInsideDroppable,Ii=Wn?sr(yn):null,ki=Wn?xr(yn):null,da={index:hn.draggable.index,droppableId:hn.droppable.id},$i={draggableId:jr.descriptor.id,type:jr.descriptor.type,source:da,reason:ir,mode:er.movementMode,destination:Ii,combine:ki},Qa=Va({impact:yn,draggable:jr,dimensions:Wr,viewport:er.viewport,afterCritical:er.afterCritical}),ya={critical:er.critical,afterCritical:er.afterCritical,result:$i,impact:yn},fo=!ye(er.current.client.offset,Qa)||Boolean($i.combine);if(!fo){$e(pi({completed:ya}));return}var za=_a({current:er.current.client.offset,destination:Qa,reason:ir}),Xo={newHomeClientOffset:Qa,dropDuration:za,completed:ya};$e(jn(Xo))}}},oo=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Qo(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 oe=je.onWindowScroll;function Oe(){oe(oo())}var $e=P(Oe),bt=Qo($e),Vt=le;function er(){return Vt!==le}function ir(){er()&&Ge(!1),Vt=Se(window,[bt])}function zr(){er()||Ge(!1),$e.cancel(),Vt(),Vt=le}return{start:ir,stop:zr,isActive:er}}var To=function(oe){return oe.type==="DROP_COMPLETE"||oe.type==="DROP_ANIMATE"||oe.type==="FLUSH"},ao=function(oe){var Oe=mo({onWindowScroll:function(bt){oe.dispatch(Or({newScroll:bt}))}});return function($e){return function(bt){!Oe.isActive()&&bt.type==="INITIAL_PUBLISH"&&Oe.start(),Oe.isActive()&&To(bt)&&Oe.stop(),$e(bt)}}},So=function(oe){var Oe=!1,$e=!1,bt=setTimeout(function(){$e=!0}),Vt=function(ir){if(Oe)return;if($e)return;Oe=!0,oe(ir),clearTimeout(bt)};return Vt.wasCalled=function(){return Oe},Vt},bo=function(){var oe=[],Oe=function(er){var ir=qe(oe,function(Wr){return Wr.timerId===er});ir!==-1||Ge(!1);var zr=oe.splice(ir,1),hn=zr[0];hn.callback()},$e=function(er){var ir=setTimeout(function(){return Oe(ir)}),zr={timerId:ir,callback:er};oe.push(zr)},bt=function(){if(!oe.length)return;var er=[].concat(oe);oe.length=0,er.forEach(function(ir){clearTimeout(ir.timerId),ir.callback()})};return{add:$e,flush:bt}},to=function(oe,Oe){return oe==null&&Oe==null?!0:oe==null||Oe==null?!1:oe.droppableId===Oe.droppableId&&oe.index===Oe.index},Jo=function(oe,Oe){return oe==null&&Oe==null?!0:oe==null||Oe==null?!1:oe.draggableId===Oe.draggableId&&oe.droppableId===Oe.droppableId},Uo=function(oe,Oe){if(oe===Oe)return!0;var $e=oe.draggable.id===Oe.draggable.id&&oe.draggable.droppableId===Oe.draggable.droppableId&&oe.draggable.type===Oe.draggable.type&&oe.draggable.index===Oe.draggable.index,bt=oe.droppable.id===Oe.droppable.id&&oe.droppable.type===Oe.droppable.type;return $e&&bt},wo=function(oe,Oe){Di(),Oe(),oa()},ts=function(oe,Oe){return{draggableId:oe.draggable.id,type:oe.droppable.type,source:{droppableId:oe.droppable.id,index:oe.draggable.index},mode:Oe}},Ia=function(oe,Oe,$e,bt){if(!oe){$e(bt(Oe));return}var Vt=So($e),er={announce:Vt};oe(Oe,er),Vt.wasCalled()||$e(bt(Oe))},Oo=function(oe,Oe){var $e=bo(),bt=null,Vt=function(yn,Wn){bt&&Ge(!1),wo("onBeforeCapture",function(){var Ii=oe().onBeforeCapture;if(Ii){var ki={draggableId:yn,mode:Wn};Ii(ki)}})},er=function(yn,Wn){bt&&Ge(!1),wo("onBeforeDragStart",function(){var Ii=oe().onBeforeDragStart;Ii&&Ii(ts(yn,Wn))})},ir=function(yn,Wn){bt&&Ge(!1);var Ii=ts(yn,Wn);bt={mode:Wn,lastCritical:yn,lastLocation:Ii.source,lastCombine:null},$e.add(function(){wo("onDragStart",function(){return Ia(oe().onDragStart,Ii,Oe,we.onDragStart)})})},zr=function(yn,Wn){var Ii=sr(Wn),ki=xr(Wn);bt||Ge(!1);var da=!Uo(yn,bt.lastCritical);da&&(bt.lastCritical=yn);var $i=!to(bt.lastLocation,Ii);$i&&(bt.lastLocation=Ii);var Qa=!Jo(bt.lastCombine,ki);if(Qa&&(bt.lastCombine=ki),!da&&!$i&&!Qa)return;var ya=Object(v.a)({},ts(yn,bt.mode),{combine:ki,destination:Ii});$e.add(function(){wo("onDragUpdate",function(){return Ia(oe().onDragUpdate,ya,Oe,we.onDragUpdate)})})},hn=function(){bt||Ge(!1),$e.flush()},Wr=function(yn){bt||Ge(!1),bt=null,wo("onDragEnd",function(){return Ia(oe().onDragEnd,yn,Oe,we.onDragEnd)})},jr=function(){if(!bt)return;var yn=Object(v.a)({},ts(bt.lastCritical,bt.mode),{combine:null,destination:null,reason:"CANCEL"});Wr(yn)};return{beforeCapture:Vt,beforeStart:er,start:ir,update:zr,flush:hn,drop:Wr,abort:jr}},Io=function(oe,Oe){var $e=Oo(oe,Oe);return function(bt){return function(Vt){return function(er){if(er.type==="BEFORE_INITIAL_CAPTURE"){$e.beforeCapture(er.payload.draggableId,er.payload.movementMode);return}if(er.type==="INITIAL_PUBLISH"){var ir=er.payload.critical;$e.beforeStart(ir,er.payload.movementMode),Vt(er),$e.start(ir,er.payload.movementMode);return}if(er.type==="DROP_COMPLETE"){var zr=er.payload.completed.result;$e.flush(),Vt(er),$e.drop(zr);return}if(Vt(er),er.type==="FLUSH"){$e.abort();return}var hn=bt.getState();hn.phase==="DRAGGING"&&$e.update(hn.critical,hn.impact)}}}},os=function(oe){return function(Oe){return function($e){if($e.type!=="DROP_ANIMATION_FINISHED"){Oe($e);return}var bt=oe.getState();bt.phase==="DROP_ANIMATING"||Ge(!1),oe.dispatch(pi({completed:bt.completed}))}}},xo=function(oe){var Oe=null,$e=null;function bt(){$e&&(cancelAnimationFrame($e),$e=null),Oe&&(Oe(),Oe=null)}return function(Vt){return function(er){if((er.type==="FLUSH"||er.type==="DROP_COMPLETE"||er.type==="DROP_ANIMATION_FINISHED")&&bt(),Vt(er),er.type!=="DROP_ANIMATE")return;var ir={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var hn=oe.getState();hn.phase==="DROP_ANIMATING"&&oe.dispatch(Oi())}};$e=requestAnimationFrame(function(){$e=null,Oe=Se(window,[ir])})}}},rs=function(oe){return function(){return function(Oe){return function($e){($e.type==="DROP_COMPLETE"||$e.type==="FLUSH"||$e.type==="DROP_ANIMATE")&&oe.stopPublishing(),Oe($e)}}}},Ho=function(oe){var Oe=!1;return function(){return function($e){return function(bt){if(bt.type==="INITIAL_PUBLISH"){Oe=!0,oe.tryRecordFocus(bt.payload.critical.draggable.id),$e(bt),oe.tryRestoreFocusRecorded();return}if($e(bt),!Oe)return;if(bt.type==="FLUSH"){Oe=!1,oe.tryRestoreFocusRecorded();return}if(bt.type==="DROP_COMPLETE"){Oe=!1;var Vt=bt.payload.completed.result;Vt.combine&&oe.tryShiftRecord(Vt.draggableId,Vt.combine.draggableId),oe.tryRestoreFocusRecorded()}}}}},_o=function(oe){return oe.type==="DROP_COMPLETE"||oe.type==="DROP_ANIMATE"||oe.type==="FLUSH"},uo=function(oe){return function(Oe){return function($e){return function(bt){if(_o(bt)){oe.stop(),$e(bt);return}if(bt.type==="INITIAL_PUBLISH"){$e(bt);var Vt=Oe.getState();Vt.phase==="DRAGGING"||Ge(!1),oe.start(Vt);return}$e(bt),oe.scroll(Oe.getState())}}}},Ha=function(oe){return function(Oe){return function($e){if(Oe($e),$e.type!=="PUBLISH_WHILE_DRAGGING")return;var bt=oe.getState();if(bt.phase!=="DROP_PENDING")return;if(bt.isWaiting)return;oe.dispatch(Mi({reason:bt.reason}))}}},ft=m.d,Tr=function(oe){var Oe=oe.dimensionMarshal,$e=oe.focusMarshal,bt=oe.styleMarshal,Vt=oe.getResponders,er=oe.announce,ir=oe.autoScroller;return Object(m.e)(ra,ft(Object(m.a)(Wi(bt),rs(Oe),Xi(Oe),io,os,xo,Ha,uo(ir),ao,Ho($e),Io(Vt,er))))},qr=function(){return{additions:{},removals:{},modified:{}}};function Yr(je){var oe=je.registry,Oe=je.callbacks,$e=qr(),bt=null,Vt=function(){if(bt)return;Oe.collectionStarting(),bt=requestAnimationFrame(function(){bt=null,Di();var Wr=$e,jr=Wr.additions,ln=Wr.removals,yn=Wr.modified,Wn=Object.keys(jr).map(function(da){return oe.draggable.getById(da).getDimension(Ce)}).sort(function(da,$i){return da.descriptor.index-$i.descriptor.index}),Ii=Object.keys(yn).map(function(da){var $i=oe.droppable.getById(da),Qa=$i.callbacks.getScrollWhileDragging();return{droppableId:da,scroll:Qa}}),ki={additions:Wn,removals:Object.keys(ln),modified:Ii};$e=qr(),oa(),Oe.publish(ki)})},er=function(Wr){var jr=Wr.descriptor.id;$e.additions[jr]=Wr,$e.modified[Wr.descriptor.droppableId]=!0,$e.removals[jr]&&delete $e.removals[jr],Vt()},ir=function(Wr){var jr=Wr.descriptor;$e.removals[jr.id]=!0,$e.modified[jr.droppableId]=!0,$e.additions[jr.id]&&delete $e.additions[jr.id],Vt()},zr=function(){if(!bt)return;cancelAnimationFrame(bt),bt=null,$e=qr()};return{add:er,remove:ir,stop:zr}}var Yn=function(oe){var Oe=oe.scrollHeight,$e=oe.scrollWidth,bt=oe.height,Vt=oe.width,er=he({x:$e,y:Oe},{x:Vt,y:bt}),ir={x:Math.max(0,er.x),y:Math.max(0,er.y)};return ir},dn=function(){var oe=document.documentElement;return oe||Ge(!1),oe},Gr=function(){var oe=dn(),Oe=Yn({scrollHeight:oe.scrollHeight,scrollWidth:oe.scrollWidth,width:oe.clientWidth,height:oe.clientHeight});return Oe},ri=function(){var oe=oo(),Oe=Gr(),$e=oe.y,bt=oe.x,Vt=dn(),er=Vt.clientWidth,ir=Vt.clientHeight,zr=bt+er,hn=$e+ir,Wr=e({top:$e,left:bt,right:zr,bottom:hn}),jr={frame:Wr,scroll:{initial:oe,current:oe,max:Oe,diff:{value:Ce,displacement:Ce}}};return jr},rn=function(oe){var Oe=oe.critical,$e=oe.scrollOptions,bt=oe.registry;Di();var Vt=ri(),er=Vt.scroll.current,ir=Oe.droppable,zr=bt.droppable.getAllByType(ir.type).map(function(ln){return ln.callbacks.getDimensionAndWatchScroll(er,$e)}),hn=bt.draggable.getAllByType(Oe.draggable.type).map(function(ln){return ln.getDimension(er)}),Wr={draggables:vt(hn),droppables:dr(zr)};oa();var jr={dimensions:Wr,critical:Oe,viewport:Vt};return jr};function Hn(je,oe,Oe){if(Oe.descriptor.id===oe.id)return!1;if(Oe.descriptor.type!==oe.type)return!1;var $e=je.droppable.getById(Oe.descriptor.droppableId);return!($e.descriptor.mode!=="virtual")}var li=function(oe,Oe){var $e=null,bt=Yr({callbacks:{publish:Oe.publishWhileDragging,collectionStarting:Oe.collectionStarting},registry:oe}),Vt=function(Wn,Ii){if(oe.droppable.exists(Wn)||Ge(!1),!$e)return;Oe.updateDroppableIsEnabled({id:Wn,isEnabled:Ii})},er=function(Wn,Ii){if(!$e)return;oe.droppable.exists(Wn)||Ge(!1),Oe.updateDroppableIsCombineEnabled({id:Wn,isCombineEnabled:Ii})},ir=function(Wn,Ii){if(!$e)return;oe.droppable.exists(Wn)||Ge(!1),Oe.updateDroppableScroll({id:Wn,newScroll:Ii})},zr=function(Wn,Ii){if(!$e)return;oe.droppable.getById(Wn).callbacks.scroll(Ii)},hn=function(){if(!$e)return;bt.stop();var Wn=$e.critical.droppable;oe.droppable.getAllByType(Wn.type).forEach(function(Ii){return Ii.callbacks.dragStopped()}),$e.unsubscribe(),$e=null},Wr=function(Wn){$e||Ge(!1);var Ii=$e.critical.draggable;Wn.type==="ADDITION"&&(Hn(oe,Ii,Wn.value)&&bt.add(Wn.value)),Wn.type==="REMOVAL"&&(Hn(oe,Ii,Wn.value)&&bt.remove(Wn.value))},jr=function(Wn){$e&&Ge(!1);var Ii=oe.draggable.getById(Wn.draggableId),ki=oe.droppable.getById(Ii.descriptor.droppableId),da={draggable:Ii.descriptor,droppable:ki.descriptor},$i=oe.subscribe(Wr);return $e={critical:da,unsubscribe:$i},rn({critical:da,registry:oe,scrollOptions:Wn.scrollOptions})},ln={updateDroppableIsEnabled:Vt,updateDroppableIsCombineEnabled:er,scrollDroppable:zr,updateDroppableScroll:ir,startPublishing:jr,stopPublishing:hn};return ln},ci=function(oe,Oe){return oe.phase==="IDLE"?!0:oe.phase!=="DROP_ANIMATING"||oe.completed.result.draggableId===Oe?!1:oe.completed.result.reason==="DROP"},si=function(oe){window.scrollBy(oe.x,oe.y)},Ti=I(function(je){return rr(je).filter(function(oe){return oe.isEnabled?!!oe.frame:!1})}),mi=function(oe,Oe){var $e=me(Ti(Oe),function(bt){return bt.frame||Ge(!1),Tn(bt.frame.pageMarginBox)(oe)});return $e},vi=function(oe){var Oe=oe.center,$e=oe.destination,bt=oe.droppables;if($e){var Vt=bt[$e];return Vt.frame?Vt:null}var er=mi(Oe,bt);return er},Li={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(oe){return Math.pow(oe,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},ia=function(oe,Oe){var $e=oe[Oe.size]*Li.startFromPercentage,bt=oe[Oe.size]*Li.maxScrollAtPercentage,Vt={startScrollingFrom:$e,maxScrollValueAt:bt};return Vt},Ki=function(oe){var Oe=oe.startOfRange,$e=oe.endOfRange,bt=oe.current,Vt=$e-Oe;if(Vt===0)return 0;var er=bt-Oe,ir=er/Vt;return ir},fa=1,Ya=function(oe,Oe){if(oe>Oe.startScrollingFrom)return 0;if(oe<=Oe.maxScrollValueAt)return Li.maxPixelScroll;if(oe===Oe.startScrollingFrom)return fa;var $e=Ki({startOfRange:Oe.maxScrollValueAt,endOfRange:Oe.startScrollingFrom,current:oe}),bt=1-$e,Vt=Li.maxPixelScroll*Li.ease(bt);return Math.ceil(Vt)},xa=Li.durationDampening.accelerateAt,wa=Li.durationDampening.stopDampeningAt,Da=function(oe,Oe){var $e=Oe,bt=wa,Vt=Date.now(),er=Vt-$e;if(er>=wa)return oe;if(er<xa)return fa;var ir=Ki({startOfRange:xa,endOfRange:bt,current:er}),zr=oe*Li.ease(ir);return Math.ceil(zr)},ja=function(oe){var Oe=oe.distanceToEdge,$e=oe.thresholds,bt=oe.dragStartTime,Vt=oe.shouldUseTimeDampening,er=Ya(Oe,$e);return er===0?0:Vt?Math.max(Da(er,bt),fa):er},ko=function(oe){var Oe=oe.container,$e=oe.distanceToEdges,bt=oe.dragStartTime,Vt=oe.axis,er=oe.shouldUseTimeDampening,ir=ia(Oe,Vt),zr=$e[Vt.end]<$e[Vt.start];return zr?ja({distanceToEdge:$e[Vt.end],thresholds:ir,dragStartTime:bt,shouldUseTimeDampening:er}):-1*ja({distanceToEdge:$e[Vt.start],thresholds:ir,dragStartTime:bt,shouldUseTimeDampening:er})},ro=function(oe){var Oe=oe.container,$e=oe.subject,bt=oe.proposedScroll,Vt=$e.height>Oe.height,er=$e.width>Oe.width;return!er&&!Vt?bt:er&&Vt?null:{x:er?0:bt.x,y:Vt?0:bt.y}},pa=Fe(function(je){return je===0?0:je}),Ea=function(oe){var Oe=oe.dragStartTime,$e=oe.container,bt=oe.subject,Vt=oe.center,er=oe.shouldUseTimeDampening,ir={top:Vt.y-$e.top,right:$e.right-Vt.x,bottom:$e.bottom-Vt.y,left:Vt.x-$e.left},zr=ko({container:$e,distanceToEdges:ir,dragStartTime:Oe,axis:Qn,shouldUseTimeDampening:er}),hn=ko({container:$e,distanceToEdges:ir,dragStartTime:Oe,axis:$t,shouldUseTimeDampening:er}),Wr=pa({x:hn,y:zr});if(ye(Wr,Ce))return null;var jr=ro({container:$e,subject:bt,proposedScroll:Wr});return jr?ye(jr,Ce)?null:jr:null},Fa=Fe(function(je){return je===0?0:je>0?1:-1}),Ka=function(){var je=function(Oe,$e){return Oe<0?Oe:Oe>$e?Oe-$e:0};return function(oe){var Oe=oe.current,$e=oe.max,bt=oe.change,Vt=_e(Oe,bt),er={x:je(Vt.x,$e.x),y:je(Vt.y,$e.y)};return ye(er,Ce)?null:er}}(),lo=function(oe){var Oe=oe.max,$e=oe.current,bt=oe.change,Vt={x:Math.max($e.x,Oe.x),y:Math.max($e.y,Oe.y)},er=Fa(bt),ir=Ka({max:Vt,current:$e,change:er});return ir?er.x!==0&&ir.x===0?!0:er.y!==0&&ir.y===0:!0},so=function(oe,Oe){return lo({current:oe.scroll.current,max:oe.scroll.max,change:Oe})},Co=function(oe,Oe){if(!so(oe,Oe))return null;var $e=oe.scroll.max,bt=oe.scroll.current;return Ka({current:bt,max:$e,change:Oe})},Lo=function(oe,Oe){var $e=oe.frame;return $e?lo({current:$e.scroll.current,max:$e.scroll.max,change:Oe}):!1},is=function(oe,Oe){var $e=oe.frame;return $e&&Lo(oe,Oe)?Ka({current:$e.scroll.current,max:$e.scroll.max,change:Oe}):null},cs=function(oe){var Oe=oe.viewport,$e=oe.subject,bt=oe.center,Vt=oe.dragStartTime,er=oe.shouldUseTimeDampening,ir=Ea({dragStartTime:Vt,container:Oe.frame,subject:$e,center:bt,shouldUseTimeDampening:er});return ir&&so(Oe,ir)?ir:null},Rs=function(oe){var Oe=oe.droppable,$e=oe.subject,bt=oe.center,Vt=oe.dragStartTime,er=oe.shouldUseTimeDampening,ir=Oe.frame;if(!ir)return null;var zr=Ea({dragStartTime:Vt,container:ir.pageMarginBox,subject:$e,center:bt,shouldUseTimeDampening:er});return zr&&Lo(Oe,zr)?zr:null},Ko=function(oe){var Oe=oe.state,$e=oe.dragStartTime,bt=oe.shouldUseTimeDampening,Vt=oe.scrollWindow,er=oe.scrollDroppable,ir=Oe.current.page.borderBoxCenter,zr=Oe.dimensions.draggables[Oe.critical.draggable.id],hn=zr.page.marginBox;if(Oe.isWindowScrollAllowed){var Wr=Oe.viewport,jr=cs({dragStartTime:$e,viewport:Wr,subject:hn,center:ir,shouldUseTimeDampening:bt});if(jr){Vt(jr);return}}var ln=vi({center:ir,destination:ii(Oe.impact),droppables:Oe.dimensions.droppables});if(!ln)return;var yn=Rs({dragStartTime:$e,droppable:ln,subject:hn,center:ir,shouldUseTimeDampening:bt});yn&&er(ln.descriptor.id,yn)},as=function(oe){var Oe=oe.scrollWindow,$e=oe.scrollDroppable,bt=P(Oe),Vt=P($e),er=null,ir=function(jr){er||Ge(!1);var ln=er,yn=ln.shouldUseTimeDampening,Wn=ln.dragStartTime;Ko({state:jr,scrollWindow:bt,scrollDroppable:Vt,dragStartTime:Wn,shouldUseTimeDampening:yn})},zr=function(jr){Di(),er&&Ge(!1);var ln=Date.now(),yn=!1,Wn=function(){yn=!0};Ko({state:jr,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Wn,scrollDroppable:Wn}),er={dragStartTime:ln,shouldUseTimeDampening:yn},oa(),yn&&ir(jr)},hn=function(){if(!er)return;bt.cancel(),Vt.cancel(),er=null};return{start:zr,stop:hn,scroll:ir}},co=function(oe){var Oe=oe.move,$e=oe.scrollDroppable,bt=oe.scrollWindow,Vt=function(Wr,jr){var ln=_e(Wr.current.client.selection,jr);Oe({client:ln})},er=function(Wr,jr){if(!Lo(Wr,jr))return jr;var ln=is(Wr,jr);if(!ln)return $e(Wr.descriptor.id,jr),null;var yn=he(jr,ln);$e(Wr.descriptor.id,yn);var Wn=he(jr,yn);return Wn},ir=function(Wr,jr,ln){if(!Wr)return ln;if(!so(jr,ln))return ln;var yn=Co(jr,ln);if(!yn)return bt(ln),null;var Wn=he(ln,yn);bt(Wn);var Ii=he(ln,Wn);return Ii},zr=function(Wr){var jr=Wr.scrollJumpRequest;if(!jr)return;var ln=ii(Wr.impact);ln||Ge(!1);var yn=er(Wr.dimensions.droppables[ln],jr);if(!yn)return;var Wn=Wr.viewport,Ii=ir(Wr.isWindowScrollAllowed,Wn,yn);if(!Ii)return;Vt(Wr,Ii)};return zr},Ao=function(oe){var Oe=oe.scrollDroppable,$e=oe.scrollWindow,bt=oe.move,Vt=as({scrollWindow:$e,scrollDroppable:Oe}),er=co({move:bt,scrollWindow:$e,scrollDroppable:Oe}),ir=function(Wr){if(Wr.phase!=="DRAGGING")return;if(Wr.movementMode==="FLUID"){Vt.scroll(Wr);return}if(!Wr.scrollJumpRequest)return;er(Wr)},zr={scroll:ir,start:Vt.start,stop:Vt.stop};return zr},$a="data-rbd",ss=function(){var je=$a+"-drag-handle";return{base:je,draggableId:je+"-draggable-id",contextId:je+"-context-id"}}(),_s=function(){var je=$a+"-draggable";return{base:je,contextId:je+"-context-id",id:je+"-id"}}(),Fo=function(){var je=$a+"-droppable";return{base:je,contextId:je+"-context-id",id:je+"-id"}}(),il={contextId:$a+"-scroll-container-context-id"},Eo=function(oe){return function(Oe){return"["+Oe+'="'+oe+'"]'}},zo=function(oe,Oe){return oe.map(function($e){var bt=$e.styles[Oe];return bt?$e.selector+" { "+bt+" }":""}).join(" ")},Fs="pointer-events: none;",ms=function(oe){var Oe=Eo(oe),$e=function(){var zr=`
|
|
|
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:zr,dragging:Fs,dropAnimating:zr}}}(),bt=function(){var zr=`
|
|
|
transition: `+na.outOfTheWay+`;
|
|
|
`;return{selector:Oe(_s.contextId),styles:{dragging:zr,dropAnimating:zr,userCancel:zr}}}(),Vt={selector:Oe(Fo.contextId),styles:{always:"overflow-anchor: none;"}},er={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;
|
|
|
`}},ir=[bt,$e,Vt,er];return{always:zo(ir,"always"),resting:zo(ir,"resting"),dragging:zo(ir,"dragging"),dropAnimating:zo(ir,"dropAnimating"),userCancel:zo(ir,"userCancel")}},hs=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect,bn=function(){var oe=document.querySelector("head");return oe||Ge(!1),oe},Ns=function(oe){var Oe=document.createElement("style");return oe&&Oe.setAttribute("nonce",oe),Oe.type="text/css",Oe};function Ll(je,oe){var Oe=n(function(){return ms(je)},[je]),$e=Object(y.useRef)(null),bt=Object(y.useRef)(null),Vt=t(I(function(jr){var ln=bt.current;ln||Ge(!1),ln.textContent=jr}),[]),er=t(function(jr){var ln=$e.current;ln||Ge(!1),ln.textContent=jr},[]);hs(function(){!$e.current&&!bt.current||Ge(!1);var jr=Ns(oe),ln=Ns(oe);return $e.current=jr,bt.current=ln,jr.setAttribute($a+"-always",je),ln.setAttribute($a+"-dynamic",je),bn().appendChild(jr),bn().appendChild(ln),er(Oe.always),Vt(Oe.resting),function(){var yn=function(Ii){var ki=Ii.current;ki||Ge(!1),bn().removeChild(ki),Ii.current=null};yn($e),yn(bt)}},[oe,er,Vt,Oe.always,Oe.resting,je]);var ir=t(function(){return Vt(Oe.dragging)},[Vt,Oe.dragging]),zr=t(function(jr){if(jr==="DROP"){Vt(Oe.dropAnimating);return}Vt(Oe.userCancel)},[Vt,Oe.dropAnimating,Oe.userCancel]),hn=t(function(){if(!bt.current)return;Vt(Oe.resting)},[Vt,Oe.resting]),Wr=n(function(){return{dragging:ir,dropping:zr,resting:hn}},[ir,zr,hn]);return Wr}var el=function(oe){return oe&&oe.ownerDocument?oe.ownerDocument.defaultView:window};function Gs(je){return je instanceof el(je).HTMLElement}function ds(je,oe){var Oe="["+ss.contextId+'="'+je+'"]',$e=Wt(document.querySelectorAll(Oe));if(!$e.length)return null;var bt=me($e,function(Vt){return Vt.getAttribute(ss.draggableId)===oe});return bt&&Gs(bt)?bt:null}function ks(je){var oe=Object(y.useRef)({}),Oe=Object(y.useRef)(null),$e=Object(y.useRef)(null),bt=Object(y.useRef)(!1),Vt=t(function(ln,yn){var Wn={id:ln,focus:yn};return oe.current[ln]=Wn,function(){var ki=oe.current,da=ki[ln];da!==Wn&&delete ki[ln]}},[]),er=t(function(ln){var yn=ds(je,ln);yn&&yn!==document.activeElement&&yn.focus()},[je]),ir=t(function(ln,yn){Oe.current===ln&&(Oe.current=yn)},[]),zr=t(function(){if($e.current)return;if(!bt.current)return;$e.current=requestAnimationFrame(function(){$e.current=null;var ln=Oe.current;ln&&er(ln)})},[er]),hn=t(function(ln){Oe.current=null;var yn=document.activeElement;if(!yn)return;if(yn.getAttribute(ss.draggableId)!==ln)return;Oe.current=ln},[]);hs(function(){return bt.current=!0,function(){bt.current=!1;var ln=$e.current;ln&&cancelAnimationFrame(ln)}},[]);var Wr=n(function(){return{register:Vt,tryRecordFocus:hn,tryRestoreFocusRecorded:zr,tryShiftRecord:ir}},[Vt,hn,zr,ir]);return Wr}function Qs(){var je={draggables:{},droppables:{}},oe=[];function Oe(jr){return oe.push(jr),function(){var yn=oe.indexOf(jr);if(yn===-1)return;oe.splice(yn,1)}}function $e(jr){oe.length&&oe.forEach(function(ln){return ln(jr)})}function bt(jr){return je.draggables[jr]||null}function Vt(jr){var ln=bt(jr);return ln||Ge(!1),ln}var er={register:function(ln){je.draggables[ln.descriptor.id]=ln,$e({type:"ADDITION",value:ln})},update:function(ln,yn){var Wn=je.draggables[yn.descriptor.id];if(!Wn)return;if(Wn.uniqueId!==ln.uniqueId)return;delete je.draggables[yn.descriptor.id],je.draggables[ln.descriptor.id]=ln},unregister:function(ln){var yn=ln.descriptor.id,Wn=bt(yn);if(!Wn)return;if(ln.uniqueId!==Wn.uniqueId)return;delete je.draggables[yn],$e({type:"REMOVAL",value:ln})},getById:Vt,findById:bt,exists:function(ln){return Boolean(bt(ln))},getAllByType:function(ln){return ut(je.draggables).filter(function(yn){return yn.descriptor.type===ln})}};function ir(jr){return je.droppables[jr]||null}function zr(jr){var ln=ir(jr);return ln||Ge(!1),ln}var hn={register:function(ln){je.droppables[ln.descriptor.id]=ln},unregister:function(ln){var yn=ir(ln.descriptor.id);if(!yn)return;if(ln.uniqueId!==yn.uniqueId)return;delete je.droppables[ln.descriptor.id]},getById:zr,findById:ir,exists:function(ln){return Boolean(ir(ln))},getAllByType:function(ln){return ut(je.droppables).filter(function(yn){return yn.descriptor.type===ln})}};function Wr(){je.draggables={},je.droppables={},oe.length=0}return{draggable:er,droppable:hn,subscribe:Oe,clean:Wr}}function tl(){var je=n(Qs,[]);return Object(y.useEffect)(function(){return function(){requestAnimationFrame(je.clean)}},[je]),je}var xs=p.a.createContext(null),Bs=function(){var oe=document.body;return oe||Ge(!1),oe},al={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Js=function(oe){return"rbd-announcement-"+oe};function Vo(je){var oe=n(function(){return Js(je)},[je]),Oe=Object(y.useRef)(null);Object(y.useEffect)(function(){var Vt=document.createElement("div");return Oe.current=Vt,Vt.id=oe,Vt.setAttribute("aria-live","assertive"),Vt.setAttribute("aria-atomic","true"),Object(v.a)(Vt.style,al),Bs().appendChild(Vt),function(){setTimeout(function(){var zr=Bs();zr.contains(Vt)&&zr.removeChild(Vt),Vt===Oe.current&&(Oe.current=null)})}},[oe]);var $e=t(function(bt){var Vt=Oe.current;if(Vt){Vt.textContent=bt;return}},[]);return $e}var No=0,fs={separator:"::"};function Ds(){No=0}function go(je,oe){return oe===void 0&&(oe=fs),n(function(){return""+je+oe.separator+No++},[oe.separator,je])}function Ht(je){var oe=je.contextId,Oe=je.uniqueId;return"rbd-hidden-text-"+oe+"-"+Oe}function ar(je){var oe=je.contextId,Oe=je.text,$e=go("hidden-text",{separator:"-"}),bt=n(function(){return Ht({contextId:oe,uniqueId:$e})},[$e,oe]);return Object(y.useEffect)(function(){var er=document.createElement("div");return er.id=bt,er.textContent=Oe,er.style.display="none",Bs().appendChild(er),function(){var zr=Bs();zr.contains(er)&&zr.removeChild(er)}},[bt,Oe]),bt}var In=p.a.createContext(null),hi={react:"^16.8.5","react-dom":"^16.8.5"},Rt=/(\d+)\.(\d+)\.(\d+)/,ce=function(oe){var Oe=Rt.exec(oe);Oe!=null||Ge(!1);var $e=Number(Oe[1]),bt=Number(Oe[2]),Vt=Number(Oe[3]);return{major:$e,minor:bt,patch:Vt,raw:oe}},xe=function(oe,Oe){return Oe.major>oe.major?!0:Oe.major<oe.major?!1:Oe.minor>oe.minor?!0:Oe.minor<oe.minor?!1:Oe.patch>=oe.patch},Ie=function(oe,Oe){var $e=ce(oe),bt=ce(Oe);if(xe($e,bt))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
|
|
|
`,kt=function(oe){var Oe=oe.doctype;if(!Oe)return;Oe.name.toLowerCase()!=="html",Oe.publicId!==""};function or(je){}function Qr(je,oe){or(function(){Object(y.useEffect)(function(){try{je()}catch(Oe){$(`
|
|
|
A setup problem was encountered.
|
|
|
|
|
|
> `+Oe.message+`
|
|
|
`)}},oe)})}function fn(){Qr(function(){Ie(hi.react,p.a.version),kt(document)},[])}function Ln(je){var oe=Object(y.useRef)(je);return Object(y.useEffect)(function(){oe.current=je}),oe}function ui(){var je=null;function oe(){return Boolean(je)}function Oe(er){return er===je}function $e(er){je&&Ge(!1);var ir={abandon:er};return je=ir,ir}function bt(){je||Ge(!1),je=null}function Vt(){je&&(je.abandon(),bt())}return{isClaimed:oe,isActive:Oe,claim:$e,release:bt,tryAbandon:Vt}}var wi=9,gi=13,Qi=27,sa=32,Ua=33,no=34,Wo=35,Zo=36,Bo=37,Es=38,As=39,$o=40,Do,vo=(Do={},Do[gi]=!0,Do[wi]=!0,Do),Ms=function(oe){vo[oe.keyCode]&&oe.preventDefault()},rl=function(){var je="visibilitychange";if(typeof document=="undefined")return je;var oe=[je,"ms"+je,"webkit"+je,"moz"+je,"o"+je],Oe=me(oe,function($e){return"on"+$e in document});return Oe||je}(),gs=0,Ra=5;function dl(je,oe){return Math.abs(oe.x-je.x)>=Ra||Math.abs(oe.y-je.y)>=Ra}var fl={type:"IDLE"};function Us(je){var oe=je.cancel,Oe=je.completed,$e=je.getPhase,bt=je.setPhase;return[{eventName:"mousemove",fn:function(er){var ir=er.button,zr=er.clientX,hn=er.clientY;if(ir!==gs)return;var Wr={x:zr,y:hn},jr=$e();if(jr.type==="DRAGGING"){er.preventDefault(),jr.actions.move(Wr);return}jr.type==="PENDING"||Ge(!1);var ln=jr.point;if(!dl(ln,Wr))return;er.preventDefault();var yn=jr.actions.fluidLift(Wr);bt({type:"DRAGGING",actions:yn})}},{eventName:"mouseup",fn:function(er){var ir=$e();if(ir.type!=="DRAGGING"){oe();return}er.preventDefault(),ir.actions.drop({shouldBlockNextClick:!0}),Oe()}},{eventName:"mousedown",fn:function(er){$e().type==="DRAGGING"&&er.preventDefault(),oe()}},{eventName:"keydown",fn:function(er){var ir=$e();if(ir.type==="PENDING"){oe();return}if(er.keyCode===Qi){er.preventDefault(),oe();return}Ms(er)}},{eventName:"resize",fn:oe},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){$e().type==="PENDING"&&oe()}},{eventName:"webkitmouseforcedown",fn:function(er){var ir=$e();if(ir.type!=="IDLE"||Ge(!1),ir.actions.shouldRespectForcePress()){oe();return}er.preventDefault()}},{eventName:rl,fn:oe}]}function Os(je){var oe=Object(y.useRef)(fl),Oe=Object(y.useRef)(le),$e=n(function(){return{eventName:"mousedown",fn:function(jr){if(jr.defaultPrevented)return;if(jr.button!==gs)return;if(jr.ctrlKey||jr.metaKey||jr.shiftKey||jr.altKey)return;var ln=je.findClosestDraggableId(jr);if(!ln)return;var yn=je.tryGetLock(ln,er,{sourceEvent:jr});if(!yn)return;jr.preventDefault();var Wn={x:jr.clientX,y:jr.clientY};Oe.current(),hn(yn,Wn)}}},[je]),bt=n(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(jr){if(jr.defaultPrevented)return;var ln=je.findClosestDraggableId(jr);if(!ln)return;var yn=je.findOptionsForDraggable(ln);if(!yn)return;if(yn.shouldRespectForcePress)return;if(!je.canGetLock(ln))return;jr.preventDefault()}}},[je]),Vt=t(function(){var jr={passive:!1,capture:!0};Oe.current=Se(window,[bt,$e],jr)},[bt,$e]),er=t(function(){var Wr=oe.current;if(Wr.type==="IDLE")return;oe.current=fl,Oe.current(),Vt()},[Vt]),ir=t(function(){var Wr=oe.current;er(),Wr.type==="DRAGGING"&&Wr.actions.cancel({shouldBlockNextClick:!0}),Wr.type==="PENDING"&&Wr.actions.abort()},[er]),zr=t(function(){var jr={capture:!0,passive:!1},ln=Us({cancel:ir,completed:er,getPhase:function(){return oe.current},setPhase:function(Wn){oe.current=Wn}});Oe.current=Se(window,ln,jr)},[ir,er]),hn=t(function(jr,ln){oe.current.type==="IDLE"||Ge(!1),oe.current={type:"PENDING",point:ln,actions:jr},zr()},[zr]);hs(function(){return Vt(),function(){Oe.current()}},[Vt])}var Xs;function Ql(){}var Ul=(Xs={},Xs[no]=!0,Xs[Ua]=!0,Xs[Zo]=!0,Xs[Wo]=!0,Xs);function wl(je,oe){function Oe(){oe(),je.cancel()}function $e(){oe(),je.drop()}return[{eventName:"keydown",fn:function(Vt){if(Vt.keyCode===Qi){Vt.preventDefault(),Oe();return}if(Vt.keyCode===sa){Vt.preventDefault(),$e();return}if(Vt.keyCode===$o){Vt.preventDefault(),je.moveDown();return}if(Vt.keyCode===Es){Vt.preventDefault(),je.moveUp();return}if(Vt.keyCode===As){Vt.preventDefault(),je.moveRight();return}if(Vt.keyCode===Bo){Vt.preventDefault(),je.moveLeft();return}if(Ul[Vt.keyCode]){Vt.preventDefault();return}Ms(Vt)}},{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:rl,fn:Oe}]}function Ts(je){var oe=Object(y.useRef)(Ql),Oe=n(function(){return{eventName:"keydown",fn:function(Vt){if(Vt.defaultPrevented)return;if(Vt.keyCode!==sa)return;var er=je.findClosestDraggableId(Vt);if(!er)return;var ir=je.tryGetLock(er,Wr,{sourceEvent:Vt});if(!ir)return;Vt.preventDefault();var zr=!0,hn=ir.snapLift();oe.current();function Wr(){zr||Ge(!1),zr=!1,oe.current(),$e()}oe.current=Se(window,wl(hn,Wr),{capture:!0,passive:!1})}}},[je]),$e=t(function(){var Vt={passive:!1,capture:!0};oe.current=Se(window,[Oe],Vt)},[Oe]);hs(function(){return $e(),function(){oe.current()}},[$e])}var Ws={type:"IDLE"},Tl=120,pl=.15;function jo(je){var oe=je.cancel,Oe=je.getPhase;return[{eventName:"orientationchange",fn:oe},{eventName:"resize",fn:oe},{eventName:"contextmenu",fn:function(bt){bt.preventDefault()}},{eventName:"keydown",fn:function(bt){if(Oe().type!=="DRAGGING"){oe();return}bt.keyCode===Qi&&bt.preventDefault(),oe()}},{eventName:rl,fn:oe}]}function yo(je){var oe=je.cancel,Oe=je.completed,$e=je.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Vt){var er=$e();if(er.type!=="DRAGGING"){oe();return}er.hasMoved=!0;var ir=Vt.touches[0],zr=ir.clientX,hn=ir.clientY,Wr={x:zr,y:hn};Vt.preventDefault(),er.actions.move(Wr)}},{eventName:"touchend",fn:function(Vt){var er=$e();if(er.type!=="DRAGGING"){oe();return}Vt.preventDefault(),er.actions.drop({shouldBlockNextClick:!0}),Oe()}},{eventName:"touchcancel",fn:function(Vt){if($e().type!=="DRAGGING"){oe();return}Vt.preventDefault(),oe()}},{eventName:"touchforcechange",fn:function(Vt){var er=$e();er.type!=="IDLE"||Ge(!1);var ir=Vt.touches[0];if(!ir)return;var zr=ir.force>=pl;if(!zr)return;var hn=er.actions.shouldRespectForcePress();if(er.type==="PENDING"){hn&&oe();return}if(hn){if(er.hasMoved){Vt.preventDefault();return}oe();return}Vt.preventDefault()}},{eventName:rl,fn:oe}]}function qo(je){var oe=Object(y.useRef)(Ws),Oe=Object(y.useRef)(le),$e=t(function(){return oe.current},[]),bt=t(function(yn){oe.current=yn},[]),Vt=n(function(){return{eventName:"touchstart",fn:function(yn){if(yn.defaultPrevented)return;var Wn=je.findClosestDraggableId(yn);if(!Wn)return;var Ii=je.tryGetLock(Wn,ir,{sourceEvent:yn});if(!Ii)return;var ki=yn.touches[0],da=ki.clientX,$i=ki.clientY,Qa={x:da,y:$i};Oe.current(),jr(Ii,Qa)}}},[je]),er=t(function(){var yn={capture:!0,passive:!1};Oe.current=Se(window,[Vt],yn)},[Vt]),ir=t(function(){var ln=oe.current;if(ln.type==="IDLE")return;ln.type==="PENDING"&&clearTimeout(ln.longPressTimerId),bt(Ws),Oe.current(),er()},[er,bt]),zr=t(function(){var ln=oe.current;ir(),ln.type==="DRAGGING"&&ln.actions.cancel({shouldBlockNextClick:!0}),ln.type==="PENDING"&&ln.actions.abort()},[ir]),hn=t(function(){var yn={capture:!0,passive:!1},Wn={cancel:zr,completed:ir,getPhase:$e},Ii=Se(window,yo(Wn),yn),ki=Se(window,jo(Wn),yn);Oe.current=function(){Ii(),ki()}},[zr,$e,ir]),Wr=t(function(){var yn=$e();yn.type==="PENDING"||Ge(!1);var Wn=yn.actions.fluidLift(yn.point);bt({type:"DRAGGING",actions:Wn,hasMoved:!1})},[$e,bt]),jr=t(function(yn,Wn){$e().type==="IDLE"||Ge(!1);var Ii=setTimeout(Wr,Tl);bt({type:"PENDING",point:Wn,actions:yn,longPressTimerId:Ii}),hn()},[hn,$e,bt,Wr]);hs(function(){return er(),function(){Oe.current();var Wn=$e();Wn.type==="PENDING"&&(clearTimeout(Wn.longPressTimerId),bt(Ws))}},[$e,er,bt]),hs(function(){var yn=Se(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return yn},[])}function ps(je){or(function(){var oe=Ln(je);Qr(function(){oe.current.length===je.length||Ge(!1)})})}var Is={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function es(je,oe){if(oe==null)return!1;var Oe=Boolean(Is[oe.tagName.toLowerCase()]);if(Oe)return!0;var $e=oe.getAttribute("contenteditable");return $e==="true"||$e===""?!0:oe===je?!1:es(je,oe.parentElement)}function Ls(je,oe){var Oe=oe.target;return Gs(Oe)?es(je,Oe):!1}var Ps=function(oe){return e(oe.getBoundingClientRect()).center};function ml(je){return je instanceof el(je).Element}var Rl=function(){var je="matches";if(typeof document=="undefined")return je;var oe=[je,"msMatchesSelector","webkitMatchesSelector"],Oe=me(oe,function($e){return $e in Element.prototype});return Oe||je}();function _l(je,oe){return je==null?null:je[Rl](oe)?je:_l(je.parentElement,oe)}function Bl(je,oe){return je.closest?je.closest(oe):_l(je,oe)}function jl(je){return"["+ss.contextId+'="'+je+'"]'}function kl(je,oe){var Oe=oe.target;if(!ml(Oe))return null;var $e=jl(je),bt=Bl(Oe,$e);return bt&&Gs(bt)?bt:null}function Xl(je,oe){var Oe=kl(je,oe);return Oe?Oe.getAttribute(ss.draggableId):null}function ol(je,oe){var Oe="["+_s.contextId+'="'+je+'"]',$e=Wt(document.querySelectorAll(Oe)),bt=me($e,function(Vt){return Vt.getAttribute(_s.id)===oe});return bt&&Gs(bt)?bt:null}function Ys(je){je.preventDefault()}function sl(je){var oe=je.expected,Oe=je.phase,$e=je.isLockActive,bt=je.shouldWarn;return $e()?!(oe!==Oe):!1}function nl(je){var oe=je.lockAPI,Oe=je.store,$e=je.registry,bt=je.draggableId;if(oe.isClaimed())return!1;var Vt=$e.draggable.findById(bt);return Vt&&Vt.options.isEnabled?!!ci(Oe.getState(),bt):!1}function xl(je){var oe=je.lockAPI,Oe=je.contextId,$e=je.store,bt=je.registry,Vt=je.draggableId,er=je.forceSensorStop,ir=je.sourceEvent,zr=nl({lockAPI:oe,store:$e,registry:bt,draggableId:Vt});if(!zr)return null;var hn=bt.draggable.getById(Vt),Wr=ol(Oe,hn.descriptor.id);if(!Wr)return null;if(ir&&!hn.options.canDragInteractiveElements&&Ls(Wr,ir))return null;var jr=oe.claim(er||le),ln="PRE_DRAG";function yn(){return hn.options.shouldRespectForcePress}function Wn(){return oe.isActive(jr)}function Ii(za,Xo){sl({expected:za,phase:ln,isLockActive:Wn,shouldWarn:!0})&&$e.dispatch(Xo())}var ki=Ii.bind(null,"DRAGGING");function da(za){function Xo(){oe.release(),ln="COMPLETED"}ln!=="PRE_DRAG"&&(Xo(),ln==="PRE_DRAG"||Ge(!1)),$e.dispatch(Sr(za.liftActionArgs)),ln="DRAGGING";function ls(N,U){if(U===void 0&&(U={shouldBlockNextClick:!1}),za.cleanup(),U.shouldBlockNextClick){var ie=Se(window,[{eventName:"click",fn:Ys,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ie)}Xo(),$e.dispatch(Mi({reason:N}))}return Object(v.a)({isActive:function(){return sl({expected:"DRAGGING",phase:ln,isLockActive:Wn,shouldWarn:!1})},shouldRespectForcePress:yn,drop:function(U){return ls("DROP",U)},cancel:function(U){return ls("CANCEL",U)}},za.actions)}function $i(za){var Xo=P(function(N){ki(function(){return _t({client:N})})}),ls=da({liftActionArgs:{id:Vt,clientSelection:za,movementMode:"FLUID"},cleanup:function(){return Xo.cancel()},actions:{move:Xo}});return Object(v.a)({},ls,{move:Xo})}function Qa(){var za={moveUp:function(){return ki(en)},moveRight:function(){return ki(On)},moveDown:function(){return ki(Sn)},moveLeft:function(){return ki(wn)}};return da({liftActionArgs:{id:Vt,clientSelection:Ps(Wr),movementMode:"SNAP"},cleanup:le,actions:za})}function ya(){var za=sl({expected:"PRE_DRAG",phase:ln,isLockActive:Wn,shouldWarn:!0});za&&oe.release()}var fo={isActive:function(){return sl({expected:"PRE_DRAG",phase:ln,isLockActive:Wn,shouldWarn:!1})},shouldRespectForcePress:yn,fluidLift:$i,snapLift:Qa,abort:ya};return fo}var Ml=[Os,Ts,qo];function Wl(je){var oe=je.contextId,Oe=je.store,$e=je.registry,bt=je.customSensors,Vt=je.enableDefaultSensors,er=[].concat(Vt?Ml:[],bt||[]),ir=Object(y.useState)(function(){return ui()})[0],zr=t(function($i,Qa){$i.isDragging&&!Qa.isDragging&&ir.tryAbandon()},[ir]);hs(function(){var $i=Oe.getState(),Qa=Oe.subscribe(function(){var ya=Oe.getState();zr($i,ya),$i=ya});return Qa},[ir,Oe,zr]),hs(function(){return ir.tryAbandon},[ir.tryAbandon]);var hn=t(function(da){return nl({lockAPI:ir,registry:$e,store:Oe,draggableId:da})},[ir,$e,Oe]),Wr=t(function(da,$i,Qa){return xl({lockAPI:ir,registry:$e,contextId:oe,store:Oe,draggableId:da,forceSensorStop:$i,sourceEvent:Qa&&Qa.sourceEvent?Qa.sourceEvent:null})},[oe,ir,$e,Oe]),jr=t(function(da){return Xl(oe,da)},[oe]),ln=t(function(da){var $i=$e.draggable.findById(da);return $i?$i.options:null},[$e.draggable]),yn=t(function(){if(!ir.isClaimed())return;ir.tryAbandon(),Oe.getState().phase!=="IDLE"&&Oe.dispatch($n())},[ir,Oe]),Wn=t(ir.isClaimed,[ir]),Ii=n(function(){return{canGetLock:hn,tryGetLock:Wr,findClosestDraggableId:jr,findOptionsForDraggable:ln,tryReleaseLock:yn,isLockClaimed:Wn}},[hn,Wr,jr,ln,yn,Wn]);ps(er);for(var ki=0;ki<er.length;ki++)er[ki](Ii)}var au=function(oe){return{onBeforeCapture:oe.onBeforeCapture,onBeforeDragStart:oe.onBeforeDragStart,onDragStart:oe.onDragStart,onDragEnd:oe.onDragEnd,onDragUpdate:oe.onDragUpdate}};function Nl(je){return je.current||Ge(!1),je.current}function $l(je){var oe=je.contextId,Oe=je.setCallbacks,$e=je.sensors,bt=je.nonce,Vt=je.dragHandleUsageInstructions,er=Object(y.useRef)(null);fn();var ir=Ln(je),zr=t(function(){return au(ir.current)},[ir]),hn=Vo(oe),Wr=ar({contextId:oe,text:Vt}),jr=Ll(oe,bt),ln=t(function(N){Nl(er).dispatch(N)},[]),yn=n(function(){return Object(m.b)({publishWhileDragging:fr,updateDroppableScroll:Vr,updateDroppableIsEnabled:un,updateDroppableIsCombineEnabled:kn,collectionStarting:kr},ln)},[ln]),Wn=tl(),Ii=n(function(){return li(Wn,yn)},[Wn,yn]),ki=n(function(){return Ao(Object(v.a)({scrollWindow:si,scrollDroppable:Ii.scrollDroppable},Object(m.b)({move:_t},ln)))},[Ii.scrollDroppable,ln]),da=ks(oe),$i=n(function(){return Tr({announce:hn,autoScroller:ki,dimensionMarshal:Ii,focusMarshal:da,getResponders:zr,styleMarshal:jr})},[hn,ki,Ii,da,zr,jr]);er.current=$i;var Qa=t(function(){var N=Nl(er),U=N.getState();U.phase!=="IDLE"&&N.dispatch($n())},[]),ya=t(function(){var N=Nl(er).getState();return N.isDragging||N.phase==="DROP_ANIMATING"},[]),fo=n(function(){return{isDragging:ya,tryAbort:Qa}},[ya,Qa]);Oe(fo);var za=t(function(N){return ci(Nl(er).getState(),N)},[]),Xo=t(function(){return tn(Nl(er).getState())},[]),ls=n(function(){return{marshal:Ii,focus:da,contextId:oe,canLift:za,isMovementAllowed:Xo,dragHandleUsageInstructionsId:Wr,registry:Wn}},[oe,Ii,Wr,da,za,Xo,Wn]);return Wl({contextId:oe,store:$i,registry:Wn,customSensors:$e,enableDefaultSensors:je.enableDefaultSensors!==!1}),Object(y.useEffect)(function(){return Qa},[Qa]),p.a.createElement(In.Provider,{value:ls},p.a.createElement(f.a,{context:xs,store:$i},je.children))}var tu=0;function Iu(){tu=0}function pu(){return n(function(){return""+tu++},[])}function mu(){Iu(),Ds()}function gu(je){var oe=pu(),Oe=je.dragHandleUsageInstructions||we.dragHandleUsageInstructions;return p.a.createElement(ct,null,function($e){return p.a.createElement($l,{nonce:je.nonce,contextId:oe,setCallbacks:$e,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 ql=function(oe){return function(Oe){return oe===Oe}},Cl=ql("scroll"),ll=ql("auto"),Hl=ql("visible"),Sl=function(oe,Oe){return Oe(oe.overflowX)||Oe(oe.overflowY)},Su=function(oe,Oe){return Oe(oe.overflowX)&&Oe(oe.overflowY)},vu=function(oe){var Oe=window.getComputedStyle(oe),$e={overflowX:Oe.overflowX,overflowY:Oe.overflowY};return Sl($e,Cl)||Sl($e,ll)},Au=function(){return!1;var oe,Oe;if(!vu(oe))return!1;var $e,bt;if(Su(bt,Hl))return!1},Ol=function je(oe){return oe==null?null:oe===document.body?Au()?oe:null:oe===document.documentElement?null:vu(oe)?oe:je(oe.parentElement)},cu=function(oe){if(!oe)return;var Oe=Ol(oe.parentElement);if(!Oe)return},du=function(oe){return{x:oe.scrollLeft,y:oe.scrollTop}},Lu=function je(oe){if(!oe)return!1;var Oe=window.getComputedStyle(oe);return Oe.position==="fixed"?!0:je(oe.parentElement)},zl=function(oe){var Oe=Ol(oe),$e=Lu(oe);return{closestScrollable:Oe,isFixedOnPage:$e}},ru=function(oe){var Oe=oe.descriptor,$e=oe.isEnabled,bt=oe.isCombineEnabled,Vt=oe.isFixedOnPage,er=oe.direction,ir=oe.client,zr=oe.page,hn=oe.closest,Wr=function(){if(!hn)return null;var Wn=hn.scrollSize,Ii=hn.client,ki=Yn({scrollHeight:Wn.scrollHeight,scrollWidth:Wn.scrollWidth,height:Ii.paddingBox.height,width:Ii.paddingBox.width});return{pageMarginBox:hn.page.marginBox,frameClient:Ii,scrollSize:Wn,shouldClipSubject:hn.shouldClipSubject,scroll:{initial:hn.scroll,current:hn.scroll,max:ki,diff:{value:Ce,displacement:Ce}}}}(),jr=er==="vertical"?Qn:$t,ln=Ke({page:zr,withPlaceholder:null,axis:jr,frame:Wr}),yn={descriptor:Oe,isCombineEnabled:bt,isFixedOnPage:Vt,axis:jr,isEnabled:$e,client:ir,page:zr,frame:Wr,subject:ln};return yn},ou=function(oe,Oe){var $e=C(oe);if(!Oe)return $e;if(oe!==Oe)return $e;var bt=$e.paddingBox.top-Oe.scrollTop,Vt=$e.paddingBox.left-Oe.scrollLeft,er=bt+Oe.scrollHeight,ir=Vt+Oe.scrollWidth,zr={top:bt,right:ir,bottom:er,left:Vt},hn=u(zr,$e.border),Wr=h({borderBox:hn,margin:$e.margin,border:$e.border,padding:$e.padding});return Wr},su=function(oe){var Oe=oe.ref,$e=oe.descriptor,bt=oe.env,Vt=oe.windowScroll,er=oe.direction,ir=oe.isDropDisabled,zr=oe.isCombineEnabled,hn=oe.shouldClipSubject,Wr=bt.closestScrollable,jr=ou(Oe,Wr),ln=w(jr,Vt),yn=function(){if(!Wr)return null;var Ii=C(Wr),ki={scrollHeight:Wr.scrollHeight,scrollWidth:Wr.scrollWidth};return{client:Ii,page:w(Ii,Vt),scroll:du(Wr),scrollSize:ki,shouldClipSubject:hn}}(),Wn=ru({descriptor:$e,isEnabled:!ir,isCombineEnabled:zr,isFixedOnPage:bt.isFixedOnPage,direction:er,client:jr,page:ln,closest:yn});return Wn},Jl={passive:!1},Du={passive:!0},Ru=function(oe){return oe.shouldPublishImmediately?Jl:Du};function Zl(je){var oe=Object(y.useContext)(je);return oe||Ge(!1),oe}var yu=function(oe){return oe&&oe.env.closestScrollable||null};function xu(je){var oe=Object(y.useRef)(null),Oe=Zl(In),$e=go("droppable"),bt=Oe.registry,Vt=Oe.marshal,er=Ln(je),ir=n(function(){return{id:je.droppableId,type:je.type,mode:je.mode}},[je.droppableId,je.mode,je.type]),zr=Object(y.useRef)(ir),hn=n(function(){return I(function(ya,fo){oe.current||Ge(!1);var za={x:ya,y:fo};Vt.updateDroppableScroll(ir.id,za)})},[ir.id,Vt]),Wr=t(function(){var ya=oe.current;return!ya||!ya.env.closestScrollable?Ce:du(ya.env.closestScrollable)},[]),jr=t(function(){var ya=Wr();hn(ya.x,ya.y)},[Wr,hn]),ln=n(function(){return P(jr)},[jr]),yn=t(function(){var ya=oe.current,fo=yu(ya);ya&&fo||Ge(!1);var za=ya.scrollOptions;if(za.shouldPublishImmediately){jr();return}ln()},[ln,jr]),Wn=t(function(ya,fo){oe.current&&Ge(!1);var za=er.current,Xo=za.getDroppableRef();Xo||Ge(!1);var ls=zl(Xo),N={ref:Xo,descriptor:ir,env:ls,scrollOptions:fo};oe.current=N;var U=su({ref:Xo,descriptor:ir,env:ls,windowScroll:ya,direction:za.direction,isDropDisabled:za.isDropDisabled,isCombineEnabled:za.isCombineEnabled,shouldClipSubject:!za.ignoreContainerClipping}),ie=ls.closestScrollable;return ie&&(ie.setAttribute(il.contextId,Oe.contextId),ie.addEventListener("scroll",yn,Ru(N.scrollOptions))),U},[Oe.contextId,ir,yn,er]),Ii=t(function(){var ya=oe.current,fo=yu(ya);return ya&&fo||Ge(!1),du(fo)},[]),ki=t(function(){var ya=oe.current;ya||Ge(!1);var fo=yu(ya);if(oe.current=null,!fo)return;ln.cancel(),fo.removeAttribute(il.contextId),fo.removeEventListener("scroll",yn,Ru(ya.scrollOptions))},[yn,ln]),da=t(function(ya){var fo=oe.current;fo||Ge(!1);var za=yu(fo);za||Ge(!1),za.scrollTop+=ya.y,za.scrollLeft+=ya.x},[]),$i=n(function(){return{getDimensionAndWatchScroll:Wn,getScrollWhileDragging:Ii,dragStopped:ki,scroll:da}},[ki,Wn,Ii,da]),Qa=n(function(){return{uniqueId:$e,descriptor:ir,callbacks:$i}},[$i,ir,$e]);hs(function(){return zr.current=Qa.descriptor,bt.droppable.register(Qa),function(){oe.current&&ki(),bt.droppable.unregister(Qa)}},[$i,ir,ki,Qa,Vt,bt.droppable]),hs(function(){if(!oe.current)return;Vt.updateDroppableIsEnabled(zr.current.id,!je.isDropDisabled)},[je.isDropDisabled,Vt]),hs(function(){if(!oe.current)return;Vt.updateDroppableIsCombineEnabled(zr.current.id,je.isCombineEnabled)},[je.isCombineEnabled,Vt])}function bu(){}var hl={width:0,height:0,margin:jt},Dl=function(oe){var Oe=oe.isAnimatingOpenOnMount,$e=oe.placeholder,bt=oe.animate;return Oe||bt==="close"?hl:{height:$e.client.borderBox.height,width:$e.client.borderBox.width,margin:$e.client.margin}},nu=function(oe){var Oe=oe.isAnimatingOpenOnMount,$e=oe.placeholder,bt=oe.animate,Vt=Dl({isAnimatingOpenOnMount:Oe,placeholder:$e,animate:bt});return{display:$e.display,boxSizing:"border-box",width:Vt.width,height:Vt.height,marginTop:Vt.margin.top,marginRight:Vt.margin.right,marginBottom:Vt.margin.bottom,marginLeft:Vt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:bt!=="none"?na.placeholder:null}};function Nu(je){var oe=Object(y.useRef)(null),Oe=t(function(){if(!oe.current)return;clearTimeout(oe.current),oe.current=null},[]),$e=je.animate,bt=je.onTransitionEnd,Vt=je.onClose,er=je.contextId,ir=Object(y.useState)(je.animate==="open"),zr=ir[0],hn=ir[1];Object(y.useEffect)(function(){return zr?$e!=="open"?(Oe(),hn(!1),bu):oe.current?bu:(oe.current=setTimeout(function(){oe.current=null,hn(!1)}),Oe):bu},[$e,zr,Oe]);var Wr=t(function(ln){if(ln.propertyName!=="height")return;bt(),$e==="close"&&Vt()},[$e,Vt,bt]),jr=nu({isAnimatingOpenOnMount:zr,animate:je.animate,placeholder:je.placeholder});return p.a.createElement(je.placeholder.tagName,{style:jr,"data-rbd-placeholder-context-id":er,onTransitionEnd:Wr,ref:je.innerRef})}var hu=p.a.memo(Nu),fu=p.a.createContext(null);function iu(je){je&&Gs(je)||Ge(!1)}function Ae(je){return typeof je=="boolean"}function q(je,oe){oe.forEach(function(Oe){return Oe(je)})}var L=[function(oe){var Oe=oe.props;Oe.droppableId||Ge(!1),typeof Oe.droppableId=="string"||Ge(!1)},function(oe){var Oe=oe.props;Ae(Oe.isDropDisabled)||Ge(!1),Ae(Oe.isCombineEnabled)||Ge(!1),Ae(Oe.ignoreContainerClipping)||Ge(!1)},function(oe){var Oe=oe.getDroppableRef;iu(Oe())}],W=[function(oe){var Oe=oe.props,$e=oe.getPlaceholderRef;if(!Oe.placeholder)return;var bt=$e();if(bt)return}],H=[function(oe){var Oe=oe.props;Oe.renderClone||Ge(!1)},function(oe){var Oe=oe.getPlaceholderRef;Oe()&&Ge(!1)}];function Z(je){Qr(function(){q(je,L),je.props.mode==="standard"&&q(je,W),je.props.mode==="virtual"&&q(je,H)})}var ne=function(je){Object(x.a)(oe,je);function oe(){for(var $e,bt=arguments.length,Vt=new Array(bt),er=0;er<bt;er++)Vt[er]=arguments[er];return $e=je.call.apply(je,[this].concat(Vt))||this,$e.state={isVisible:Boolean($e.props.on),data:$e.props.on,animate:$e.props.shouldAnimate&&$e.props.on?"open":"none"},$e.onClose=function(){if($e.state.animate!=="close")return;$e.setState({isVisible:!1})},$e}oe.getDerivedStateFromProps=function(bt,Vt){return bt.shouldAnimate?bt.on?{isVisible:!0,data:bt.on,animate:"open"}:Vt.isVisible?{isVisible:!0,data:Vt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(bt.on),data:bt.on,animate:"none"}};var Oe=oe.prototype;return Oe.render=function(){if(!this.state.isVisible)return null;var bt={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(bt)},oe}(p.a.PureComponent),ve={dragging:5e3,dropAnimating:4500},Te=function(oe,Oe){return Oe?na.drop(Oe.duration):oe?na.snap:na.fluid},Ve=function(oe,Oe){return oe?Oe?Ji.opacity.drop:Ji.opacity.combining:null},ot=function(oe){return oe.forceShouldAnimate!=null?oe.forceShouldAnimate:oe.mode==="SNAP"};function ht(je){var oe=je.dimension,Oe=oe.client,$e=je.offset,bt=je.combineWith,Vt=je.dropping,er=Boolean(bt),ir=ot(je),zr=Boolean(Vt),hn=zr?La.drop($e,er):La.moveTo($e),Wr={position:"fixed",top:Oe.marginBox.top,left:Oe.marginBox.left,boxSizing:"border-box",width:Oe.borderBox.width,height:Oe.borderBox.height,transition:Te(ir,Vt),transform:hn,opacity:Ve(er,zr),zIndex:zr?ve.dropAnimating:ve.dragging,pointerEvents:"none"};return Wr}function Qt(je){return{transform:La.moveTo(je.offset),transition:je.shouldAnimateDisplacement?null:"none"}}function Cr(je){return je.type==="DRAGGING"?ht(je):Qt(je)}function wr(je,oe,Oe){Oe===void 0&&(Oe=Ce);var $e=window.getComputedStyle(oe),bt=oe.getBoundingClientRect(),Vt=E(bt,$e),er=w(Vt,Oe),ir={client:Vt,tagName:oe.tagName.toLowerCase(),display:$e.display},zr={x:Vt.marginBox.width,y:Vt.marginBox.height},hn={descriptor:je,placeholder:ir,displaceBy:zr,client:Vt,page:er};return hn}function Kr(je){var oe=go("draggable"),Oe=je.descriptor,$e=je.registry,bt=je.getDraggableRef,Vt=je.canDragInteractiveElements,er=je.shouldRespectForcePress,ir=je.isEnabled,zr=n(function(){return{canDragInteractiveElements:Vt,shouldRespectForcePress:er,isEnabled:ir}},[Vt,ir,er]),hn=t(function(yn){var Wn=bt();return Wn||Ge(!1),wr(Oe,Wn,yn)},[Oe,bt]),Wr=n(function(){return{uniqueId:oe,descriptor:Oe,options:zr,getDimension:hn}},[Oe,hn,zr,oe]),jr=Object(y.useRef)(Wr),ln=Object(y.useRef)(!0);hs(function(){return $e.draggable.register(jr.current),function(){return $e.draggable.unregister(jr.current)}},[$e.draggable]),hs(function(){if(ln.current){ln.current=!1;return}var yn=jr.current;jr.current=Wr,$e.draggable.update(Wr,yn)},[Wr,$e.draggable])}function Jr(je,oe,Oe){Qr(function(){function $e(Vt){return"Draggable[id: "+Vt+"]: "}var bt=je.draggableId;if(bt||Ge(!1),typeof bt=="string"||Ge(!1),se(je.index)||Ge(!1),je.mapped.type==="DRAGGING")return;iu(Oe()),je.isEnabled&&(ds(oe,bt)||Ge(!1))})}function Cn(je){or(function(){var oe=Object(y.useRef)(je);Qr(function(){je===oe.current||Ge(!1)},[je])})}function Nn(je){je.preventDefault()}function Jn(je){var oe=Object(y.useRef)(null),Oe=t(function(N){oe.current=N},[]),$e=t(function(){return oe.current},[]),bt=Zl(In),Vt=bt.contextId,er=bt.dragHandleUsageInstructionsId,ir=bt.registry,zr=Zl(fu),hn=zr.type,Wr=zr.droppableId,jr=n(function(){return{id:je.draggableId,index:je.index,type:hn,droppableId:Wr}},[je.draggableId,je.index,hn,Wr]),ln=je.children,yn=je.draggableId,Wn=je.isEnabled,Ii=je.shouldRespectForcePress,ki=je.canDragInteractiveElements,da=je.isClone,$i=je.mapped,Qa=je.dropAnimationFinished;if(Jr(je,Vt,$e),Cn(da),!da){var ya=n(function(){return{descriptor:jr,registry:ir,getDraggableRef:$e,canDragInteractiveElements:ki,shouldRespectForcePress:Ii,isEnabled:Wn}},[jr,ir,$e,ki,Ii,Wn]);Kr(ya)}var fo=n(function(){return Wn?{tabIndex:0,role:"button","aria-describedby":er,"data-rbd-drag-handle-draggable-id":yn,"data-rbd-drag-handle-context-id":Vt,draggable:!1,onDragStart:Nn}:null},[Vt,er,yn,Wn]),za=t(function(N){if($i.type!=="DRAGGING")return;if(!$i.dropping)return;if(N.propertyName!=="transform")return;Qa()},[Qa,$i]),Xo=n(function(){var N=Cr($i),U=$i.type==="DRAGGING"&&$i.dropping?za:null,ie={innerRef:Oe,draggableProps:{"data-rbd-draggable-context-id":Vt,"data-rbd-draggable-id":yn,style:N,onTransitionEnd:U},dragHandleProps:fo};return ie},[Vt,fo,yn,$i,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 ln(Xo,$i.snapshot,ls)}var bi=function(oe,Oe){return oe===Oe},ua=function(oe){var Oe=oe.combine,$e=oe.destination;return $e?$e.droppableId:Oe?Oe.droppableId:null},Vi=function(oe){return oe.combine?oe.combine.draggableId:null},Zi=function(oe){return oe.at&&oe.at.type==="COMBINE"?oe.at.combine.draggableId:null};function ka(){var je=I(function(bt,Vt){return{x:bt,y:Vt}}),oe=I(function(bt,Vt,er,ir,zr){return{isDragging:!0,isClone:Vt,isDropAnimating:Boolean(zr),dropAnimation:zr,mode:bt,draggingOver:er,combineWith:ir,combineTargetFor:null}}),Oe=I(function(bt,Vt,er,ir,zr,hn,Wr){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:zr,combineWith:hn,mode:Vt,offset:bt,dimension:er,forceShouldAnimate:Wr,snapshot:oe(Vt,ir,zr,hn,null)}}}),$e=function(Vt,er){if(Vt.isDragging){if(Vt.critical.draggable.id!==er.draggableId)return null;var ir=Vt.current.client.offset,zr=Vt.dimensions.draggables[er.draggableId],hn=ii(Vt.impact),Wr=Zi(Vt.impact),jr=Vt.forceShouldAnimate;return Oe(je(ir.x,ir.y),Vt.movementMode,zr,er.isClone,hn,Wr,jr)}if(Vt.phase==="DROP_ANIMATING"){var ln=Vt.completed;if(ln.result.draggableId!==er.draggableId)return null;var yn=er.isClone,Wn=Vt.dimensions.draggables[er.draggableId],Ii=ln.result,ki=Ii.mode,da=ua(Ii),$i=Vi(Ii),Qa=Vt.dropDuration,ya={duration:Qa,curve:ji.drop,moveTo:Vt.newHomeClientOffset,opacity:$i?Ji.opacity.drop:null,scale:$i?Ji.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Vt.newHomeClientOffset,dimension:Wn,dropping:ya,draggingOver:da,combineWith:$i,mode:ki,forceShouldAnimate:null,snapshot:oe(ki,yn,da,$i,ya)}}}return null};return $e}function Ga(je){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:je,combineWith:null}}var Ba={mapped:{type:"SECONDARY",offset:Ce,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Ga(null)}};function Sa(){var je=I(function(er,ir){return{x:er,y:ir}}),oe=I(Ga),Oe=I(function(er,ir,zr){return ir===void 0&&(ir=null),{mapped:{type:"SECONDARY",offset:er,combineTargetFor:ir,shouldAnimateDisplacement:zr,snapshot:oe(ir)}}}),$e=function(ir){return ir?Oe(Ce,ir,!0):null},bt=function(ir,zr,hn,Wr){var jr=hn.displaced.visible[ir],ln=Boolean(Wr.inVirtualList&&Wr.effected[ir]),yn=xr(hn),Wn=yn&&yn.draggableId===ir?zr:null;if(!jr){if(!ln)return $e(Wn);if(hn.displaced.invisible[ir])return null;var Ii=Le(Wr.displacedBy.point),ki=je(Ii.x,Ii.y);return Oe(ki,Wn,!0)}if(ln)return $e(Wn);var da=hn.displacedBy.point,$i=je(da.x,da.y);return Oe($i,Wn,jr.shouldAnimate)},Vt=function(ir,zr){if(ir.isDragging)return ir.critical.draggable.id===zr.draggableId?null:bt(zr.draggableId,ir.critical.draggable.id,ir.impact,ir.afterCritical);if(ir.phase==="DROP_ANIMATING"){var hn=ir.completed;return hn.result.draggableId===zr.draggableId?null:bt(zr.draggableId,hn.result.draggableId,hn.impact,hn.afterCritical)}return null};return Vt}var Go=function(){var oe=ka(),Oe=Sa(),$e=function(Vt,er){return oe(Vt,er)||Oe(Vt,er)||Ba};return $e},bs={dropAnimationFinished:Oi},ys=Object(f.c)(Go,bs,null,{context:xs,pure:!0,areStatePropsEqual:bi})(Jn);function Cs(je){var oe=Zl(fu),Oe=oe.isUsingCloneFor;return Oe===je.draggableId&&!je.isClone?null:p.a.createElement(ys,je)}function js(je){var oe=typeof je.isDragDisabled=="boolean"?!je.isDragDisabled:!0,Oe=Boolean(je.disableInteractiveElementBlocking),$e=Boolean(je.shouldRespectForcePress);return p.a.createElement(Cs,Object(v.a)({},je,{isClone:!1,isEnabled:oe,canDragInteractiveElements:Oe,shouldRespectForcePress:$e}))}function ws(je){var oe=Object(y.useContext)(In);oe||Ge(!1);var Oe=oe.contextId,$e=oe.isMovementAllowed,bt=Object(y.useRef)(null),Vt=Object(y.useRef)(null),er=je.children,ir=je.droppableId,zr=je.type,hn=je.mode,Wr=je.direction,jr=je.ignoreContainerClipping,ln=je.isDropDisabled,yn=je.isCombineEnabled,Wn=je.snapshot,Ii=je.useClone,ki=je.updateViewportMaxScroll,da=je.getContainerForClone,$i=t(function(){return bt.current},[]),Qa=t(function(ue){bt.current=ue},[]),ya=t(function(){return Vt.current},[]),fo=t(function(ue){Vt.current=ue},[]);Z({props:je,getDroppableRef:$i,getPlaceholderRef:ya});var za=t(function(){$e()&&ki({maxScroll:Gr()})},[$e,ki]);xu({droppableId:ir,type:zr,mode:hn,direction:Wr,isDropDisabled:ln,isCombineEnabled:yn,ignoreContainerClipping:jr,getDroppableRef:$i});var Xo=p.a.createElement(ne,{on:je.placeholder,shouldAnimate:je.shouldAnimatePlaceholder},function(ue){var ge=ue.onClose,We=ue.data,Lt=ue.animate;return p.a.createElement(hu,{placeholder:We,onClose:ge,innerRef:fo,animate:Lt,contextId:Oe,onTransitionEnd:za})}),ls=n(function(){return{innerRef:Qa,placeholder:Xo,droppableProps:{"data-rbd-droppable-id":ir,"data-rbd-droppable-context-id":Oe}}},[Oe,ir,Xo,Qa]),N=Ii?Ii.dragging.draggableId:null,U=n(function(){return{droppableId:ir,type:zr,isUsingCloneFor:N}},[ir,N,zr]);function ie(){if(!Ii)return null;var ue=Ii.dragging,ge=Ii.render,We=p.a.createElement(Cs,{draggableId:ue.draggableId,index:ue.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(Lt,nr){return ge(Lt,nr,ue)});return k.a.createPortal(We,da())}return p.a.createElement(fu.Provider,{value:U},er(ls,Wn),ie())}var Hs=function(oe,Oe){return oe===Oe.droppable.type},Ee=function(oe,Oe){return Oe.draggables[oe.draggable.id]},Ye=function(){var oe={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},Oe=Object(v.a)({},oe,{shouldAnimatePlaceholder:!1}),$e=I(function(er){return{draggableId:er.id,type:er.type,source:{index:er.index,droppableId:er.droppableId}}}),bt=I(function(er,ir,zr,hn,Wr,jr){var ln=Wr.descriptor.id,yn=Wr.descriptor.droppableId===er;if(yn){var Wn=jr?{render:jr,dragging:$e(Wr.descriptor)}:null,Ii={isDraggingOver:zr,draggingOverWith:zr?ln:null,draggingFromThisWith:ln,isUsingPlaceholder:!0};return{placeholder:Wr.placeholder,shouldAnimatePlaceholder:!1,snapshot:Ii,useClone:Wn}}if(!ir)return Oe;if(!hn)return oe;var ki={isDraggingOver:zr,draggingOverWith:ln,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Wr.placeholder,shouldAnimatePlaceholder:!0,snapshot:ki,useClone:null}}),Vt=function(ir,zr){var hn=zr.droppableId,Wr=zr.type,jr=!zr.isDropDisabled,ln=zr.renderClone;if(ir.isDragging){var yn=ir.critical;if(!Hs(Wr,yn))return Oe;var Wn=Ee(yn,ir.dimensions),Ii=ii(ir.impact)===hn;return bt(hn,jr,Ii,Ii,Wn,ln)}if(ir.phase==="DROP_ANIMATING"){var ki=ir.completed;if(!Hs(Wr,ki.critical))return Oe;var da=Ee(ki.critical,ir.dimensions);return bt(hn,jr,ua(ki.result)===hn,ii(ki.impact)===hn,da,ln)}if(ir.phase==="IDLE"&&ir.completed&&!ir.shouldFlush){var $i=ir.completed;if(!Hs(Wr,$i.critical))return Oe;var Qa=ii($i.impact)===hn,ya=Boolean($i.impact.at&&$i.impact.at.type==="COMBINE"),fo=$i.critical.droppable.id===hn;return Qa?ya?oe:Oe:fo?oe:Oe}return Oe};return Vt},Et={updateViewportMaxScroll:Lr};function cr(){return document.body||Ge(!1),document.body}var Fr={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:cr},sn=Object(f.c)(Ye,Et,null,{context:xs,pure:!0,areStatePropsEqual:bi})(ws);sn.defaultProps=Fr},ni6a:function(R,D,i){var y=i("pzxd"),p=i("mFDi"),x=i("gut8"),v=x.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,v),o.restore()}};var d=f;R.exports=d},nkfE:function(R,D,i){var y=i("bYtY"),p=i("ca2m"),x=i("bLfw"),v=i("+TT/"),m=v.getLayoutParams,f=v.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)})}),x.registerSubTypeDefaulter(n+"Axis",y.curry(a,n))}R.exports=o},noeP:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("UOVi");y.registerAction("dataZoom",function(v,m){var f=x.createLinkedNodesFinder(p.bind(m.eachComponent,m,"dataZoom"),x.eachAxisDim,function(l,o){return l.get(o.axisIndex)}),d=[];m.eachComponent({mainType:"dataZoom",query:v},function(l,o){d.push.apply(d,f(l).nodes)}),p.each(d,function(l,o){l.setRawRange({start:v.start,end:v.end,startValue:v.startValue,endValue:v.endValue})})})},o40c:function(R,D,i){var y=i("IwbS"),p=i("OS9S"),x=i("loD1"),v=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 A=(s+h)/2-(c-g)*a,b=(c+g)/2-(h-s)*a;o.quadraticCurveTo(A,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 A=a[r++],b=a[r++];if(x.containStroke(c,h,A,b))return u}u++}else for(var u=0,r=0;r<a.length;){var c=a[r++],h=a[r++],A=a[r++],b=a[r++];if(e>0){var w=(c+A)/2-(h-b)*e,E=(h+b)/2-(A-c)*e;if(v.containStroke(c,h,w,E,A,b))return u}else if(x.containStroke(c,h,A,b))return u;u++}return-1}});function f(){this.group=new y.Group}var d=f.prototype;d.isPersistent=function(){return!this._incremental},d.updateData=function(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;R.exports=l},oBaM:function(R,D,i){var y=i("T4UG"),p=i("5GtS"),x=i("bYtY"),v=i("7aKB"),m=v.encodeHTML,f=i("xKMd"),d=y.extend({type:"series.radar",dependencies:["radar"],init:function(o){d.superApply(this,"init",arguments),this.legendVisualProvider=new f(x.bind(this.getData,this),x.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/>"+x.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(x.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;R.exports=l},oE7X:function(R,D,i){var y=i("bLfw");y.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(R,D,i){},oRuE:function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.pad.Iso10126={pad:function(x,v){var m=v*4,f=m-x.sigBytes%m;x.concat(y.lib.WordArray.random(f-1)).concat(y.lib.WordArray.create([f<<24],1))},unpad:function(x){var v=x.words[x.sigBytes-1>>>2]&255;x.sigBytes-=v}},y.pad.Iso10126})},oVpE:function(R,D,i){var y=i("bYtY"),p=i("IwbS"),x=i("mFDi"),v=i("6GrX"),m=v.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,A=c.width/2,b=c.height/2;s.moveTo(h,g-b),s.lineTo(h+A,g+b),s.lineTo(h-A,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,A=c.width/2,b=c.height/2;s.moveTo(h,g-b),s.lineTo(h+A,g),s.lineTo(h,g+b),s.lineTo(h-A,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,A=c.width/5*3,b=Math.max(A,c.height),w=A/2,E=w*w/(b-w),C=g-b+w+E,_=Math.asin(E/w),T=Math.cos(_)*w,S=Math.sin(_),O=Math.cos(_),I=w*.6,F=w*.7;s.moveTo(h-T,C+E),s.arc(h,C,w,Math.PI-_,Math.PI*2+_),s.bezierCurveTo(h+T-S*I,C+E+O*I,h,g-F,h,g),s.bezierCurveTo(h,g-F,h-T+S*I,C+E+O*I,h-T,C+E),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,A=c.x,b=c.y,w=g/3*2;s.moveTo(A,b),s.lineTo(A+w,b+h),s.lineTo(A,b+h/4*3),s.lineTo(A-w,b+h),s.lineTo(A,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,A){A.x1=s,A.y1=c+g/2,A.x2=s+h,A.y2=c+g/2},rect:function(s,c,h,g,A){A.x=s,A.y=c,A.width=h,A.height=g},roundRect:function(s,c,h,g,A){A.x=s,A.y=c,A.width=h,A.height=g,A.r=Math.min(h,g)/4},square:function(s,c,h,g,A){var b=Math.min(h,g);A.x=s,A.y=c,A.width=b,A.height=b},circle:function(s,c,h,g,A){A.cx=s+h/2,A.cy=c+g/2,A.r=Math.min(h,g)/2},diamond:function(s,c,h,g,A){A.cx=s+h/2,A.cy=c+g/2,A.width=h,A.height=g},pin:function(s,c,h,g,A){A.x=s+h/2,A.y=c+g/2,A.width=h,A.height=g},arrow:function(s,c,h,g,A){A.x=s+h/2,A.y=c+g/2,A.width=h,A.height=g},triangle:function(s,c,h,g,A){A.cx=s+h/2,A.cy=c+g/2,A.width=h,A.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),A=this.shape;return A&&A.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 A=a[g];A||(g="rect",A=a[g]),t[g](c.x,c.y,c.width,c.height,A.shape),A.buildPath(s,A.shape,h)}}});function u(s,c){if(this.type!=="image"){var h=this.style,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,A,b,w){var E=s.indexOf("empty")===0;E&&(s=s.substr(5,1).toLowerCase()+s.substr(6));var C;return s.indexOf("image://")===0?C=p.makeImage(s.slice(8),new x(c,h,g,A),w?"center":"cover"):s.indexOf("path://")===0?C=p.makePath(s.slice(7),{},new x(c,h,g,A),w?"center":"cover"):C=new e({shape:{symbolType:s,x:c,y:h,width:g,height:A}}),C.__isEmptyBrush=E,C.setColor=u,C.setColor(b),C}D.createSymbol=r},oY9F:function(R,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}});R.exports=p},or5M:function(R,D,i){var y=i("1hJj"),p=i("QoRX"),x=i("xYSL"),v=1,m=2;function f(d,l,o,n,t,a){var e=o&v,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,A=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 E=e?n(w,b,h,l,d,a):n(b,w,h,d,l,a);if(E!==void 0){if(E)continue;g=!1;break}if(A){if(!p(l,function(C,_){if(!x(A,_)&&(b===C||t(b,C,o,n,a)))return A.push(_)})){g=!1;break}}else if(!(b===w||t(b,w,o,n,a))){g=!1;break}}return a.delete(d),a.delete(l),g}R.exports=f},osHv:function(R,D,i){(function(y){y(i("VrN/"))})(function(y){"use strict";var p=y.Pos;function x(c,h){return c.line-h.line||c.ch-h.ch}var v="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=v+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",f=new RegExp("<(/?)(["+v+"]["+m+"]*)","g");function d(c,h,g,A){this.line=h,this.ch=g,this.cm=c,this.text=c.getLine(h),this.min=A?Math.max(A.from,c.firstLine()):c.firstLine(),this.max=A?Math.min(A.to-1,c.lastLine()):c.lastLine()}function l(c,h){var 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),A=g>-1&&!/\S/.test(c.text.slice(g+1,h));return c.ch=h+1,A?"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),A=g>-1&&!/\S/.test(c.text.slice(g+1,h));return c.ch=h+1,A?"selfClose":"regular"}}function r(c,h){for(var g=[];;){var A=e(c),b,w=c.line,E=c.ch-(A?A[0].length:0);if(!A||!(b=t(c)))return;if(b=="selfClose")continue;if(A[1]){for(var C=g.length-1;C>=0;--C)if(g[C]==A[2]){g.length=C;break}if(C<0&&(!h||h==A[2]))return{tag:A[2],from:p(w,E),to:p(c.line,c.ch)}}else g.push(A[2])}}function s(c,h){for(var g=[];;){var A=u(c);if(!A)return;if(A=="selfClose"){a(c);continue}var b=c.line,w=c.ch,E=a(c);if(!E)return;if(E[1])g.push(E[2]);else{for(var C=g.length-1;C>=0;--C)if(g[C]==E[2]){g.length=C;break}if(C<0&&(!h||h==E[2]))return{tag:E[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 A=e(g);if(!A||g.line!=h.line)return;var b=t(g);if(!b)return;if(!A[1]&&b!="selfClose"){var w=p(g.line,g.ch),E=r(g,A[2]);return E&&x(E.from,w)>0?{from:w,to:E.from}:null}}}),y.findMatchingTag=function(c,h,g){var A=new d(c,h.line,h.ch,g);if(A.text.indexOf(">")==-1&&A.text.indexOf("<")==-1)return;var b=t(A),w=b&&p(A.line,A.ch),E=b&&a(A);if(!b||!E||x(A,h)>0)return;var C={from:p(A.line,A.ch),to:w,tag:E[2]};return b=="selfClose"?{open:C,close:null,at:"open"}:E[1]?{open:s(A,E[2]),close:C,at:"close"}:(A=new d(c,w.line,w.ch,g),{open:C,close:r(A,E[2]),at:"open"})},y.findEnclosingTag=function(c,h,g,A){for(var b=new d(c,h.line,h.ch,g);;){var w=s(b,A);if(!w)break;var E=new d(c,h.line,h.ch,g),C=r(E,w.tag);if(C)return{open:w,close:C}}},y.scanForClosingTag=function(c,h,g,A){var b=new d(c,h.line,h.ch,A?{from:0,to:A}:null);return r(b,g)}})},ozfa:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("KxFI"),v=i.n(x)},"p+If":function(R,D,i){var y=i("ProS");i("cpOr"),i("rkZ5");var p=i("ZYIC"),x=i("7ph2");y.registerLayout(p),y.registerVisual(x)},"p/La":function(R,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,x){p==="china"&&x.name==="\u53F0\u6E7E"&&x.geometries.push({type:"polygon",exterior:i[0]})}R.exports=y},p1MT:function(R,D,i){var y=i("Hw7h"),p=i("IwbS"),x=i("6Ic6"),v=i("OELB"),m=v.parsePercent,f=v.round,d=v.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()),A=m(r[1],u.getHeight()),b=m(e.get("radius"),h/2);return{cx:g,cy:A,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=x.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"),A=g.getModel("lineStyle"),b=e.get("clockwise"),w=-e.get("startAngle")/180*Math.PI,E=-e.get("endAngle")/180*Math.PI,C=(E-w)%n,_=w,T=A.get("width"),S=g.get("show"),O=0;S&&O<s.length;O++){var I=Math.min(Math.max(s[O][0],0),1),E=w+C*I,F=new p.Sector({shape:{startAngle:_,endAngle:E,cx:c.cx,cy:c.cy,clockwise:b,r0:c.r-T,r:c.r},silent:!0});F.setStyle({fill:s[O][1]}),F.setStyle(A.getLineStyle(["color","borderWidth","borderColor"])),h.add(F),_=E}var P=function(k){if(k<=0)return s[0][1];for(var G=0;G<s.length;G++)if(s[G][0]>=k&&(G===0?0:s[G-1][0])<k)return s[G][1];return s[G-1][1]};if(!b){var B=w;w=E,E=B}this._renderTicks(e,u,r,P,c,w,E,b),this._renderPointer(e,u,r,P,c,w,E,b),this._renderTitle(e,u,r,P,c),this._renderDetail(e,u,r,P,c)},_renderTicks:function(e,u,r,s,c,h,g,A){for(var b=this.group,w=c.cx,E=c.cy,C=c.r,_=+e.get("min"),T=+e.get("max"),S=e.getModel("splitLine"),O=e.getModel("axisTick"),I=e.getModel("axisLabel"),F=e.get("splitNumber"),P=O.get("splitNumber"),B=m(S.get("length"),C),k=m(O.get("length"),C),G=h,M=(g-h)/F,j=M/P,K=S.getModel("lineStyle").getLineStyle(),z=O.getModel("lineStyle").getLineStyle(),V=0;V<=F;V++){var Q=Math.cos(G),X=Math.sin(G);if(S.get("show")){var te=new p.Line({shape:{x1:Q*C+w,y1:X*C+E,x2:Q*(C-B)+w,y2:X*(C-B)+E},style:K,silent:!0});K.stroke==="auto"&&te.setStyle({stroke:s(V/F)}),b.add(te)}if(I.get("show")){var $=o(f(V/F*(T-_)+_),I.get("formatter")),le=I.get("distance"),re=s(V/F);b.add(new p.Text({style:p.setTextStyle({},I,{text:$,x:Q*(C-B-le)+w,y:X*(C-B-le)+E,textVerticalAlign:X<-.4?"top":X>.4?"bottom":"middle",textAlign:Q<-.4?"left":Q>.4?"right":"center"},{autoColor:re}),silent:!0}))}if(O.get("show")&&V!==F){for(var Se=0;Se<=P;Se++){var Q=Math.cos(G),X=Math.sin(G),Re=new p.Line({shape:{x1:Q*C+w,y1:X*C+E,x2:Q*(C-k)+w,y2:X*(C-k)+E},silent:!0,style:z});z.stroke==="auto"&&Re.setStyle({stroke:s((V+Se/P)/F)}),b.add(Re),G+=j}G-=j}else G+=M}},_renderPointer:function(e,u,r,s,c,h,g,A){var b=this.group,w=this._data;if(!e.get("pointer.show")){w&&w.eachItemGraphicEl(function(S){b.remove(S)});return}var E=[+e.get("min"),+e.get("max")],C=[h,g],_=e.getData(),T=_.mapDimension("value");_.diff(w).add(function(S){var O=new y({shape:{angle:h}});p.initProps(O,{shape:{angle:d(_.get(T,S),E,C,!0)}},e),b.add(O),_.setItemGraphicEl(S,O)}).update(function(S,O){var I=w.getItemGraphicEl(O);p.updateProps(I,{shape:{angle:d(_.get(T,S),E,C,!0)}},e),b.add(I),_.setItemGraphicEl(S,I)}).remove(function(S){var O=w.getItemGraphicEl(S);b.remove(O)}).execute(),_.eachItemGraphicEl(function(S,O){var I=_.getItemModel(O),F=I.getModel("pointer");S.setShape({x:c.cx,y:c.cy,width:m(F.get("width"),c.r),r:m(F.get("length"),c.r)}),S.useStyle(I.getModel("itemStyle").getItemStyle()),S.style.fill==="auto"&&S.setStyle("fill",s(d(_.get(T,O),E,[0,1],!0))),p.setHoverStyle(S,I.getModel("emphasis.itemStyle").getItemStyle())}),this._data=_},_renderTitle:function(e,u,r,s,c){var h=e.getData(),g=h.mapDimension("value"),A=e.getModel("title");if(A.get("show")){var b=A.get("offsetCenter"),w=c.cx+m(b[0],c.r),E=c.cy+m(b[1],c.r),C=+e.get("min"),_=+e.get("max"),T=e.getData().get(g,0),S=s(d(T,[C,_],[0,1],!0));this.group.add(new p.Text({silent:!0,style:p.setTextStyle({},A,{x:w,y:E,text:h.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:S,forceRich:!0})}))}},_renderDetail:function(e,u,r,s,c){var h=e.getModel("detail"),g=+e.get("min"),A=+e.get("max");if(h.get("show")){var b=h.get("offsetCenter"),w=c.cx+m(b[0],c.r),E=c.cy+m(b[1],c.r),C=m(h.get("width"),c.r),_=m(h.get("height"),c.r),T=e.getData(),S=T.get(T.mapDimension("value"),0),O=s(d(S,[g,A],[0,1],!0));this.group.add(new p.Text({silent:!0,style:p.setTextStyle({},h,{x:w,y:E,text:o(S,h.get("formatter")),textWidth:isNaN(C)?null:C,textHeight:isNaN(_)?null:_,textAlign:"center",textVerticalAlign:"middle"},{autoColor:O,forceRich:!0})}))}}}),a=t;R.exports=a},"p77/":function(R,D,i){},pA7S:function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.WordArray,m=x.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=[],A=0;A<56;A++){var b=d[A]-1;g[A]=h[b>>>5]>>>31-b%32&1}for(var w=this._subKeys=[],E=0;E<16;E++){for(var C=w[E]=[],_=o[E],A=0;A<24;A++)C[A/6|0]|=g[(l[A]-1+_)%28]<<31-A%6,C[4+(A/6|0)]|=g[28+(l[A+24]-1+_)%28]<<31-A%6;C[0]=C[0]<<1|C[0]>>>31;for(var A=1;A<7;A++)C[A]=C[A]>>>(A-1)*4+3;C[7]=C[7]<<5|C[7]>>>27}for(var T=this._invSubKeys=[],A=0;A<16;A++)T[A]=w[15-A]},encryptBlock:function(c,h){this._doCryptBlock(c,h,this._subKeys)},decryptBlock:function(c,h){this._doCryptBlock(c,h,this._invSubKeys)},_doCryptBlock:function(c,h,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 A=0;A<16;A++){for(var b=g[A],w=this._lBlock,E=this._rBlock,C=0,_=0;_<8;_++)C|=n[_][((E^b[_])&t[_])>>>0];this._lBlock=E,this._rBlock=w^C}var T=this._lBlock;this._lBlock=this._rBlock,this._rBlock=T,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),A=h.length<4?h.slice(0,2):h.slice(2,4),b=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=a.createEncryptor(v.create(g)),this._des2=a.createEncryptor(v.create(A)),this._des3=a.createEncryptor(v.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(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("xzDV"),v=i.n(x),m=i("5Dmo")},"pED+":function(R,D,i){},pG52:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("WXVj"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},pLH3:function(R,D,i){var y=i("ProS");i("ALo7"),i("TWL2");var p=i("mOdp"),x=i("JLnu"),v=i("0/Rx");y.registerVisual(p("funnel")),y.registerLayout(x),y.registerProcessor(v("funnel"))},pP6R:function(R,D,i){var y=i("ProS"),p="\0_ec_interaction_mutex";function x(d,l,o){var n=f(d);n[l]=o}function v(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=x,D.release=v,D.isTaken=m},pSRY:function(R,D,i){var y=i("QkVE");function p(x){return y(this,x).has(x)}R.exports=p},pWdF:function(R,D,i){"use strict";i.d(D,"a",function(){return iu});var y=i("oBTY"),p=i("rAM+"),x=i("tJVT"),v=i("tS8v"),m=i("oZsa"),f=i("iZzK");function d(Ae){return Function.toString.call(Ae).indexOf("[native code]")!==-1}var l=i("cHpt");function o(Ae,q,L){return Object(l.a)()?o=Reflect.construct:o=function(H,Z,ne){var ve=[null];ve.push.apply(ve,Z);var Te=Function.bind.apply(H,ve),Ve=new Te;return ne&&Object(f.a)(Ve,ne.prototype),Ve},o.apply(null,arguments)}function n(Ae){var q=typeof Map=="function"?new Map:void 0;return n=function(W){if(W===null||!d(W))return W;if(typeof W!="function")throw new TypeError("Super expression must either be null or a function");if(typeof q!="undefined"){if(q.has(W))return q.get(W);q.set(W,H)}function H(){return o(W,arguments,Object(m.a)(this).constructor)}return H.prototype=Object.create(W.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),Object(f.a)(H,W)},n(Ae)}var t=i("w4Tj"),a=i("yKVA"),e=i("879j"),u=i("jrin"),r=i("fWQN"),s=i("mtLc");function c(Ae){return Ae&&Ae.__esModule&&Object.prototype.hasOwnProperty.call(Ae,"default")?Ae.default:Ae}var h={exports:{}};(function(Ae,q){(function(L){var W=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,H=/^(?=([^\/?#]*))\1([^]*)$/,Z=/(?:\/|^)\.(?=\/)/g,ne=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,ve={buildAbsoluteURL:function(Ve,ot,ht){if(ht=ht||{},Ve=Ve.trim(),ot=ot.trim(),!ot){if(!ht.alwaysNormalize)return Ve;var Qt=ve.parseURL(Ve);if(!Qt)throw new Error("Error trying to parse base URL.");return Qt.path=ve.normalizePath(Qt.path),ve.buildURLFromParts(Qt)}var Cr=ve.parseURL(ot);if(!Cr)throw new Error("Error trying to parse relative URL.");if(Cr.scheme)return ht.alwaysNormalize?(Cr.path=ve.normalizePath(Cr.path),ve.buildURLFromParts(Cr)):ot;var wr=ve.parseURL(Ve);if(!wr)throw new Error("Error trying to parse base URL.");if(!wr.netLoc&&wr.path&&wr.path[0]!=="/"){var Kr=H.exec(wr.path);wr.netLoc=Kr[1],wr.path=Kr[2]}wr.netLoc&&!wr.path&&(wr.path="/");var Jr={scheme:wr.scheme,netLoc:Cr.netLoc,path:null,params:Cr.params,query:Cr.query,fragment:Cr.fragment};if(!Cr.netLoc&&(Jr.netLoc=wr.netLoc,Cr.path[0]!=="/"))if(!Cr.path)Jr.path=wr.path,Cr.params||(Jr.params=wr.params,Cr.query||(Jr.query=wr.query));else{var Cn=wr.path,Nn=Cn.substring(0,Cn.lastIndexOf("/")+1)+Cr.path;Jr.path=ve.normalizePath(Nn)}return Jr.path===null&&(Jr.path=ht.alwaysNormalize?ve.normalizePath(Cr.path):Cr.path),ve.buildURLFromParts(Jr)},parseURL:function(Ve){var ot=W.exec(Ve);return ot?{scheme:ot[1]||"",netLoc:ot[2]||"",path:ot[3]||"",params:ot[4]||"",query:ot[5]||"",fragment:ot[6]||""}:null},normalizePath:function(Ve){for(Ve=Ve.split("").reverse().join("").replace(Z,"");Ve.length!==(Ve=Ve.replace(ne,"")).length;);return Ve.split("").reverse().join("")},buildURLFromParts:function(Ve){return Ve.scheme+Ve.netLoc+Ve.path+Ve.params+Ve.query+Ve.fragment}};Ae.exports=ve})()})(h);var g=h.exports;function A(Ae,q){var L=Object.keys(Ae);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(Ae);q&&(W=W.filter(function(H){return Object.getOwnPropertyDescriptor(Ae,H).enumerable})),L.push.apply(L,W)}return L}function b(Ae){for(var q=1;q<arguments.length;q++){var L=arguments[q]!=null?arguments[q]:{};q%2?A(Object(L),!0).forEach(function(W){w(Ae,W,L[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ae,Object.getOwnPropertyDescriptors(L)):A(Object(L)).forEach(function(W){Object.defineProperty(Ae,W,Object.getOwnPropertyDescriptor(L,W))})}return Ae}function w(Ae,q,L){return q=_(q),q in Ae?Object.defineProperty(Ae,q,{value:L,enumerable:!0,configurable:!0,writable:!0}):Ae[q]=L,Ae}function E(){return E=Object.assign?Object.assign.bind():function(Ae){for(var q=1;q<arguments.length;q++){var L=arguments[q];for(var W in L)Object.prototype.hasOwnProperty.call(L,W)&&(Ae[W]=L[W])}return Ae},E.apply(this,arguments)}function C(Ae,q){if(typeof Ae!="object"||Ae===null)return Ae;var L=Ae[Symbol.toPrimitive];if(L!==void 0){var W=L.call(Ae,q||"default");if(typeof W!="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(q==="string"?String:Number)(Ae)}function _(Ae){var q=C(Ae,"string");return typeof q=="symbol"?q:String(q)}var T=Number.isFinite||function(Ae){return typeof Ae=="number"&&isFinite(Ae)},S=function(Ae){return Ae.MEDIA_ATTACHING="hlsMediaAttaching",Ae.MEDIA_ATTACHED="hlsMediaAttached",Ae.MEDIA_DETACHING="hlsMediaDetaching",Ae.MEDIA_DETACHED="hlsMediaDetached",Ae.BUFFER_RESET="hlsBufferReset",Ae.BUFFER_CODECS="hlsBufferCodecs",Ae.BUFFER_CREATED="hlsBufferCreated",Ae.BUFFER_APPENDING="hlsBufferAppending",Ae.BUFFER_APPENDED="hlsBufferAppended",Ae.BUFFER_EOS="hlsBufferEos",Ae.BUFFER_FLUSHING="hlsBufferFlushing",Ae.BUFFER_FLUSHED="hlsBufferFlushed",Ae.MANIFEST_LOADING="hlsManifestLoading",Ae.MANIFEST_LOADED="hlsManifestLoaded",Ae.MANIFEST_PARSED="hlsManifestParsed",Ae.LEVEL_SWITCHING="hlsLevelSwitching",Ae.LEVEL_SWITCHED="hlsLevelSwitched",Ae.LEVEL_LOADING="hlsLevelLoading",Ae.LEVEL_LOADED="hlsLevelLoaded",Ae.LEVEL_UPDATED="hlsLevelUpdated",Ae.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",Ae.LEVELS_UPDATED="hlsLevelsUpdated",Ae.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",Ae.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",Ae.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",Ae.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",Ae.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",Ae.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",Ae.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",Ae.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",Ae.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",Ae.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",Ae.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",Ae.CUES_PARSED="hlsCuesParsed",Ae.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",Ae.INIT_PTS_FOUND="hlsInitPtsFound",Ae.FRAG_LOADING="hlsFragLoading",Ae.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",Ae.FRAG_LOADED="hlsFragLoaded",Ae.FRAG_DECRYPTED="hlsFragDecrypted",Ae.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",Ae.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",Ae.FRAG_PARSING_METADATA="hlsFragParsingMetadata",Ae.FRAG_PARSED="hlsFragParsed",Ae.FRAG_BUFFERED="hlsFragBuffered",Ae.FRAG_CHANGED="hlsFragChanged",Ae.FPS_DROP="hlsFpsDrop",Ae.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",Ae.ERROR="hlsError",Ae.DESTROYING="hlsDestroying",Ae.KEY_LOADING="hlsKeyLoading",Ae.KEY_LOADED="hlsKeyLoaded",Ae.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",Ae.BACK_BUFFER_REACHED="hlsBackBufferReached",Ae}({}),O=function(Ae){return Ae.NETWORK_ERROR="networkError",Ae.MEDIA_ERROR="mediaError",Ae.KEY_SYSTEM_ERROR="keySystemError",Ae.MUX_ERROR="muxError",Ae.OTHER_ERROR="otherError",Ae}({}),I=function(Ae){return Ae.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",Ae.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",Ae.KEY_SYSTEM_NO_SESSION="keySystemNoSession",Ae.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",Ae.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",Ae.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",Ae.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",Ae.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",Ae.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",Ae.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",Ae.MANIFEST_LOAD_ERROR="manifestLoadError",Ae.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",Ae.MANIFEST_PARSING_ERROR="manifestParsingError",Ae.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",Ae.LEVEL_EMPTY_ERROR="levelEmptyError",Ae.LEVEL_LOAD_ERROR="levelLoadError",Ae.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",Ae.LEVEL_PARSING_ERROR="levelParsingError",Ae.LEVEL_SWITCH_ERROR="levelSwitchError",Ae.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",Ae.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",Ae.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",Ae.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",Ae.FRAG_LOAD_ERROR="fragLoadError",Ae.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",Ae.FRAG_DECRYPT_ERROR="fragDecryptError",Ae.FRAG_PARSING_ERROR="fragParsingError",Ae.FRAG_GAP="fragGap",Ae.REMUX_ALLOC_ERROR="remuxAllocError",Ae.KEY_LOAD_ERROR="keyLoadError",Ae.KEY_LOAD_TIMEOUT="keyLoadTimeOut",Ae.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",Ae.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",Ae.BUFFER_APPEND_ERROR="bufferAppendError",Ae.BUFFER_APPENDING_ERROR="bufferAppendingError",Ae.BUFFER_STALLED_ERROR="bufferStalledError",Ae.BUFFER_FULL_ERROR="bufferFullError",Ae.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",Ae.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",Ae.INTERNAL_EXCEPTION="internalException",Ae.INTERNAL_ABORTED="aborted",Ae.UNKNOWN="unknown",Ae}({}),F=function(){},P={trace:F,debug:F,log:F,warn:F,info:F,error:F},B=P;function k(Ae){var q=self.console[Ae];return q?q.bind(self.console,"[".concat(Ae,"] >")):F}function G(Ae){for(var q=arguments.length,L=new Array(q>1?q-1:0),W=1;W<q;W++)L[W-1]=arguments[W];L.forEach(function(H){B[H]=Ae[H]?Ae[H].bind(Ae):k(H)})}function M(Ae,q){if(self.console&&Ae===!0||typeof Ae=="object"){G(Ae,"debug","log","info","warn","error");try{B.log('Debug logs enabled for "'.concat(q,'" in hls.js version ',"1.4.12"))}catch(L){B=P}}else B=P}var j=B,K=/^(\d+)x(\d+)$/,z=/(.+?)=(".*?"|.*?)(?:,|$)/g,V=function(){function Ae(q){Object(r.a)(this,Ae),typeof q=="string"&&(q=Ae.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)(Ae,[{key:"decimalInteger",value:function(L){var W=parseInt(this[L],10);return W>Number.MAX_SAFE_INTEGER?Infinity:W}},{key:"hexadecimalInteger",value:function(L){if(this[L]){var W=(this[L]||"0x").slice(2);W=(W.length&1?"0":"")+W;for(var H=new Uint8Array(W.length/2),Z=0;Z<W.length/2;Z++)H[Z]=parseInt(W.slice(Z*2,Z*2+2),16);return H}else return null}},{key:"hexadecimalIntegerAsNumber",value:function(L){var W=parseInt(this[L],16);return W>Number.MAX_SAFE_INTEGER?Infinity:W}},{key:"decimalFloatingPoint",value:function(L){return parseFloat(this[L])}},{key:"optionalFloat",value:function(L,W){var H=this[L];return H?parseFloat(H):W}},{key:"enumeratedString",value:function(L){return this[L]}},{key:"bool",value:function(L){return this[L]==="YES"}},{key:"decimalResolution",value:function(L){var W=K.exec(this[L]);return W===null?void 0:{width:parseInt(W[1],10),height:parseInt(W[2],10)}}}],[{key:"parseAttrList",value:function(L){var W,H={},Z='"';for(z.lastIndex=0;(W=z.exec(L))!==null;){var ne=W[2];ne.indexOf(Z)===0&&ne.lastIndexOf(Z)===ne.length-1&&(ne=ne.slice(1,-1));var ve=W[1].trim();H[ve]=ne}return H}}]),Ae}();function Q(Ae){return Ae!=="ID"&&Ae!=="CLASS"&&Ae!=="START-DATE"&&Ae!=="DURATION"&&Ae!=="END-DATE"&&Ae!=="END-ON-NEXT"}function X(Ae){return Ae==="SCTE35-OUT"||Ae==="SCTE35-IN"}var te=function(){function Ae(q,L){if(Object(r.a)(this,Ae),this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,L){var W=L.attr;for(var H in W)if(Object.prototype.hasOwnProperty.call(q,H)&&q[H]!==W[H]){j.warn('DATERANGE tag attribute: "'.concat(H,'" does not match for tags with ID: "').concat(q.ID,'"')),this._badValueForSameId=H;break}q=E(new V({}),W,q)}if(this.attr=q,this._startDate=new Date(q["START-DATE"]),"END-DATE"in this.attr){var Z=new Date(this.attr["END-DATE"]);T(Z.getTime())&&(this._endDate=Z)}}return Object(s.a)(Ae,[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){if(this._endDate)return this._endDate;var L=this.duration;return L!==null?new Date(this._startDate.getTime()+L*1e3):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var L=this.attr.decimalFloatingPoint("DURATION");if(T(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&&T(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}]),Ae}(),$=Object(s.a)(function Ae(){Object(r.a)(this,Ae),this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}),le={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"},re=function(){function Ae(q){var L;Object(r.a)(this,Ae),this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(L={},Object(u.a)(L,le.AUDIO,null),Object(u.a)(L,le.VIDEO,null),Object(u.a)(L,le.AUDIOVIDEO,null),L),this.baseurl=q}return Object(s.a)(Ae,[{key:"setByteRange",value:function(L,W){var H=L.split("@",2),Z=[];H.length===1?Z[0]=W?W.byteRangeEndOffset:0:Z[0]=parseInt(H[1]),Z[1]=parseInt(H[0])+Z[0],this._byteRange=Z}},{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=g.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(L){this._url=L}}]),Ae}(),Se=function(Ae){Object(a.a)(L,Ae);var q=Object(e.a)(L);function L(W,H){var Z;return Object(r.a)(this,L),Z=q.call(this,H),Z._decryptdata=null,Z.rawProgramDateTime=null,Z.programDateTime=null,Z.tagList=[],Z.duration=0,Z.sn=0,Z.levelkeys=void 0,Z.type=void 0,Z.loader=null,Z.keyLoader=null,Z.level=-1,Z.cc=0,Z.startPTS=void 0,Z.endPTS=void 0,Z.startDTS=void 0,Z.endDTS=void 0,Z.start=0,Z.deltaPTS=void 0,Z.maxStartPTS=void 0,Z.minEndPTS=void 0,Z.stats=new $,Z.urlId=0,Z.data=void 0,Z.bitrateTest=!1,Z.title=null,Z.initSegment=null,Z.endList=void 0,Z.gap=void 0,Z.type=W,Z}return Object(s.a)(L,[{key:"decryptdata",get:function(){var H=this.levelkeys;if(!H&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var Z=this.levelkeys.identity;if(Z)this._decryptdata=Z.getDecryptData(this.sn);else{var ne=Object.keys(this.levelkeys);if(ne.length===1)return this._decryptdata=this.levelkeys[ne[0]].getDecryptData(this.sn)}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!T(this.programDateTime))return null;var H=T(this.duration)?this.duration:0;return this.programDateTime+H*1e3}},{key:"encrypted",get:function(){var H;if((H=this._decryptdata)!=null&&H.encrypted)return!0;if(this.levelkeys){var Z=Object.keys(this.levelkeys),ne=Z.length;if(ne>1||ne===1&&this.levelkeys[Z[0]].encrypted)return!0}return!1}},{key:"setKeyFormat",value:function(H){if(this.levelkeys){var Z=this.levelkeys[H];Z&&!this._decryptdata&&(this._decryptdata=Z.getDecryptData(this.sn))}}},{key:"abortRequests",value:function(){var H,Z;(H=this.loader)==null||H.abort(),(Z=this.keyLoader)==null||Z.abort()}},{key:"setElementaryStreamInfo",value:function(H,Z,ne,ve,Te){var Ve=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ot=this.elementaryStreams,ht=ot[H];if(!ht){ot[H]={startPTS:Z,endPTS:ne,startDTS:ve,endDTS:Te,partial:Ve};return}ht.startPTS=Math.min(ht.startPTS,Z),ht.endPTS=Math.max(ht.endPTS,ne),ht.startDTS=Math.min(ht.startDTS,ve),ht.endDTS=Math.max(ht.endDTS,Te)}},{key:"clearElementaryStreamInfo",value:function(){var H=this.elementaryStreams;H[le.AUDIO]=null,H[le.VIDEO]=null,H[le.AUDIOVIDEO]=null}}]),L}(re),Re=function(Ae){Object(a.a)(L,Ae);var q=Object(e.a)(L);function L(W,H,Z,ne,ve){var Te;Object(r.a)(this,L),Te=q.call(this,Z),Te.fragOffset=0,Te.duration=0,Te.gap=!1,Te.independent=!1,Te.relurl=void 0,Te.fragment=void 0,Te.index=void 0,Te.stats=new $,Te.duration=W.decimalFloatingPoint("DURATION"),Te.gap=W.bool("GAP"),Te.independent=W.bool("INDEPENDENT"),Te.relurl=W.enumeratedString("URI"),Te.fragment=H,Te.index=ne;var Ve=W.enumeratedString("BYTERANGE");return Ve&&Te.setByteRange(Ve,ve),ve&&(Te.fragOffset=ve.fragOffset+ve.duration),Te}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),Pe=10,Je=function(){function Ae(q){Object(r.a)(this,Ae),this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=q}return Object(s.a)(Ae,[{key:"reloaded",value:function(L){if(!L){this.advanced=!0,this.updated=!0;return}var W=this.lastPartSn-L.lastPartSn,H=this.lastPartIndex-L.lastPartIndex;this.updated=this.endSN!==L.endSN||!!H||!!W||!this.live,this.advanced=this.endSN>L.endSN||W>0||W===0&&H>0,this.updated||this.advanced?this.misses=Math.floor(L.misses*.6):this.misses=L.misses+1,this.availabilityDelay=L.availabilityDelay}},{key:"hasProgramDateTime",get:function(){return this.fragments.length?T(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||Pe}},{key:"drift",get:function(){var L=this.driftEndTime-this.driftStartTime;if(L>0){var W=this.driftEnd-this.driftStart;return W*1e3/L}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var L;return(L=this.fragments)!=null&&L.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),Ae}();function Ge(Ae){return Uint8Array.from(atob(Ae),function(q){return q.charCodeAt(0)})}function ct(Ae){var q=lt(Ae).subarray(0,16),L=new Uint8Array(16);return L.set(q,16-q.length),L}function Ue(Ae){var q=function(W,H,Z){var ne=W[H];W[H]=W[Z],W[Z]=ne};q(Ae,0,3),q(Ae,1,2),q(Ae,4,5),q(Ae,6,7)}function ae(Ae){var q=Ae.split(":"),L=null;if(q[0]==="data"&&q.length===2){var W=q[1].split(";"),H=W[W.length-1].split(",");if(H.length===2){var Z=H[0]==="base64",ne=H[1];Z?(W.splice(-1,1),L=Ge(ne)):L=ct(ne)}}return L}function lt(Ae){return Uint8Array.from(unescape(encodeURIComponent(Ae)),function(q){return q.charCodeAt(0)})}var pe={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},J={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Y(Ae){switch(Ae){case J.FAIRPLAY:return pe.FAIRPLAY;case J.PLAYREADY:return pe.PLAYREADY;case J.WIDEVINE:return pe.WIDEVINE;case J.CLEARKEY:return pe.CLEARKEY}}var ee={WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function fe(Ae){if(Ae===ee.WIDEVINE)return pe.WIDEVINE}function we(Ae){switch(Ae){case pe.FAIRPLAY:return J.FAIRPLAY;case pe.PLAYREADY:return J.PLAYREADY;case pe.WIDEVINE:return J.WIDEVINE;case pe.CLEARKEY:return J.CLEARKEY}}function Ce(Ae){var q=Ae.drmSystems,L=Ae.widevineLicenseUrl,W=q?[pe.FAIRPLAY,pe.WIDEVINE,pe.PLAYREADY,pe.CLEARKEY].filter(function(H){return!!q[H]}):[];return!W[pe.WIDEVINE]&&L&&W.push(pe.WIDEVINE),W}var _e=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function he(Ae,q,L,W){var H;switch(Ae){case pe.FAIRPLAY:H=["cenc","sinf"];break;case pe.WIDEVINE:case pe.PLAYREADY:H=["cenc"];break;case pe.CLEARKEY:H=["cenc","keyids"];break;default:throw new Error("Unknown key-system: ".concat(Ae))}return ye(H,q,L,W)}function ye(Ae,q,L,W){var H={initDataTypes:Ae,persistentState:W.persistentState||"not-allowed",distinctiveIdentifier:W.distinctiveIdentifier||"not-allowed",sessionTypes:W.sessionTypes||[W.sessionType||"temporary"],audioCapabilities:q.map(function(Z){return{contentType:'audio/mp4; codecs="'.concat(Z,'"'),robustness:W.audioRobustness||"",encryptionScheme:W.audioEncryptionScheme||null}}),videoCapabilities:L.map(function(Z){return{contentType:'video/mp4; codecs="'.concat(Z,'"'),robustness:W.videoRobustness||"",encryptionScheme:W.videoEncryptionScheme||null}})};return[H]}function Le(Ae,q,L){return Uint8Array.prototype.slice?Ae.slice(q,L):new Uint8Array(Array.prototype.slice.call(Ae,q,L))}var tt=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)))},gt=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)))},at=function(q,L){for(var W=L,H=0;tt(q,L);){H+=10;var Z=Fe(q,L+6);H+=Z,gt(q,L+10)&&(H+=10),L+=H}return H>0?q.subarray(W,W+H):void 0},Fe=function(q,L){var W=0;return W=(q[L]&127)<<21,W|=(q[L+1]&127)<<14,W|=(q[L+2]&127)<<7,W|=q[L+3]&127,W},mt=function(q,L){return tt(q,L)&&Fe(q,L+6)+10<=q.length-L},et=function(q){for(var L=Mt(q),W=0;W<L.length;W++){var H=L[W];if(St(H))return se(H)}return},St=function(q){return q&&q.key==="PRIV"&&q.info==="com.apple.streaming.transportStreamTimestamp"},jt=function(q){var L=String.fromCharCode(q[0],q[1],q[2],q[3]),W=Fe(q,4),H=10;return{type:L,size:W,data:q.subarray(H,H+W)}},Mt=function(q){for(var L=0,W=[];tt(q,L);){var H=Fe(q,L+6);L+=10;for(var Z=L+H;L+8<Z;){var ne=jt(q.subarray(L)),ve=Ot(ne);ve&&W.push(ve),L+=ne.size+10}gt(q,L)&&(L+=10)}return W},Ot=function(q){return q.type==="PRIV"?Bt(q):q.type[0]==="W"?de(q):Ke(q)},Bt=function(q){if(q.size<2)return;var L=ut(q.data,!0),W=new Uint8Array(q.data.subarray(L.length+1));return{key:q.type,info:L,data:W.buffer}},Ke=function(q){if(q.size<2)return;if(q.type==="TXXX"){var L=1,W=ut(q.data.subarray(L),!0);L+=W.length+1;var H=ut(q.data.subarray(L));return{key:q.type,info:W,data:H}}var Z=ut(q.data.subarray(1));return{key:q.type,data:Z}},de=function(q){if(q.type==="WXXX"){if(q.size<2)return;var L=1,W=ut(q.data.subarray(L),!0);L+=W.length+1;var H=ut(q.data.subarray(L));return{key:q.type,info:W,data:H}}var Z=ut(q.data);return{key:q.type,data:Z}},se=function(q){if(q.data.byteLength===8){var L=new Uint8Array(q.data),W=L[3]&1,H=(L[4]<<23)+(L[5]<<15)+(L[6]<<7)+L[7];return H/=45,W&&(H+=4772185884e-2),Math.round(H)}return},ut=function(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,W=me();if(W){var H=W.decode(q);if(L){var Z=H.indexOf("\0");return Z!==-1?H.substring(0,Z):H}return H.replace(/\0/g,"")}for(var ne=q.length,ve,Te,Ve,ot="",ht=0;ht<ne;){if(ve=q[ht++],ve===0&&L)return ot;if(ve===0||ve===3)continue;switch(ve>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:ot+=String.fromCharCode(ve);break;case 12:case 13:Te=q[ht++],ot+=String.fromCharCode((ve&31)<<6|Te&63);break;case 14:Te=q[ht++],Ve=q[ht++],ot+=String.fromCharCode((ve&15)<<12|(Te&63)<<6|(Ve&63)<<0);break}}return ot},qe;function me(){return!qe&&typeof self.TextDecoder!="undefined"&&(qe=new self.TextDecoder("utf-8")),qe}var Wt={hexDump:function(q){for(var L="",W=0;W<q.length;W++){var H=q[W].toString(16);H.length<2&&(H="0"+H),L+=H}return L}},dr=Math.pow(2,32)-1,vt=[].push,rr={video:1,audio:2,id3:3,text:4};function ur(Ae){return String.fromCharCode.apply(null,Ae)}function mn(Ae,q){var L=Ae[q]<<8|Ae[q+1];return L<0?65536+L:L}function sr(Ae,q){var L=xr(Ae,q);return L<0?4294967296+L:L}function xr(Ae,q){return Ae[q]<<24|Ae[q+1]<<16|Ae[q+2]<<8|Ae[q+3]}function pr(Ae,q,L){Ae[q]=L>>24,Ae[q+1]=L>>16&255,Ae[q+2]=L>>8&255,Ae[q+3]=L&255}function Zt(Ae,q){var L=[];if(!q.length)return L;for(var W=Ae.byteLength,H=0;H<W;){var Z=sr(Ae,H),ne=ur(Ae.subarray(H+4,H+8)),ve=Z>1?H+Z:W;if(ne===q[0])if(q.length===1)L.push(Ae.subarray(H+8,ve));else{var Te=Zt(Ae.subarray(H+8,ve),q.slice(1));Te.length&&vt.apply(L,Te)}H=ve}return L}function Ct(Ae){var q=[],L=Ae[0],W=8,H=sr(Ae,W);W+=4;var Z=0,ne=0;L===0?W+=8:W+=16,W+=2;var ve=Ae.length+ne,Te=mn(Ae,W);W+=2;for(var Ve=0;Ve<Te;Ve++){var ot=W,ht=sr(Ae,ot);ot+=4;var Qt=ht&2147483647,Cr=(ht&2147483648)>>>31;if(Cr===1)return j.warn("SIDX has hierarchical references (not supported)"),null;var wr=sr(Ae,ot);ot+=4,q.push({referenceSize:Qt,subsegmentDuration:wr,info:{duration:wr/H,start:ve,end:ve+Qt-1}}),ve+=Qt,ot+=4,W=ot}return{earliestPresentationTime:Z,timescale:H,version:L,referencesCount:Te,references:q}}function on(Ae){for(var q=[],L=Zt(Ae,["moov","trak"]),W=0;W<L.length;W++){var H=L[W],Z=Zt(H,["tkhd"])[0];if(Z){var ne=Z[0],ve=ne===0?12:20,Te=sr(Z,ve),Ve=Zt(H,["mdia","mdhd"])[0];if(Ve){ne=Ve[0],ve=ne===0?12:20;var ot=sr(Ve,ve),ht=Zt(H,["mdia","hdlr"])[0];if(ht){var Qt=ur(ht.subarray(8,12)),Cr={soun:le.AUDIO,vide:le.VIDEO}[Qt];if(Cr){var wr=Zt(H,["mdia","minf","stbl","stsd"])[0],Kr=void 0;wr&&(Kr=ur(wr.subarray(12,16))),q[Te]={timescale:ot,type:Cr},q[Cr]={timescale:ot,id:Te,codec:Kr}}}}}}var Jr=Zt(Ae,["moov","mvex","trex"]);return Jr.forEach(function(Cn){var Nn=sr(Cn,4),Jn=q[Nn];Jn&&(Jn.default={duration:sr(Cn,12),flags:sr(Cn,20)})}),q}function Mn(Ae,q){if(!Ae||!q)return Ae;var L=q.keyId;if(L&&q.isCommonEncryption){var W=Zt(Ae,["moov","trak"]);W.forEach(function(H){var Z=Zt(H,["mdia","minf","stbl","stsd"])[0],ne=Z.subarray(8),ve=Zt(ne,["enca"]),Te=ve.length>0;Te||(ve=Zt(ne,["encv"])),ve.forEach(function(Ve){var ot=Te?Ve.subarray(28):Ve.subarray(78),ht=Zt(ot,["sinf"]);ht.forEach(function(Qt){var Cr=Xn(Qt);if(Cr){var wr=Cr.subarray(8,24);wr.some(function(Kr){return Kr!==0})||(j.log("[eme] Patching keyId in 'enc".concat(Te?"a":"v",">sinf>>tenc' box: ").concat(Wt.hexDump(wr)," -> ").concat(Wt.hexDump(L))),Cr.set(L,8))}})})})}return Ae}function Xn(Ae){var q=Zt(Ae,["schm"])[0];if(q){var L=ur(q.subarray(4,8));if(L==="cbcs"||L==="cenc")return Zt(Ae,["schi","tenc"])[0]}return j.error("[eme] missing 'schm' box"),null}function oi(Ae,q){return Zt(q,["moof","traf"]).reduce(function(L,W){var H=Zt(W,["tfdt"])[0],Z=H[0],ne=Zt(W,["tfhd"]).reduce(function(ve,Te){var Ve=sr(Te,4),ot=Ae[Ve];if(ot){var ht=sr(H,4);if(Z===1){if(ht===dr)return j.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),ve;ht*=dr+1,ht+=sr(H,8)}var Qt=ot.timescale||9e4,Cr=ht/Qt;if(isFinite(Cr)&&(ve===null||Cr<ve))return Cr}return ve},null);return ne!==null&&isFinite(ne)&&(L===null||ne<L)?ne:L},null)}function Ui(Ae,q){for(var L=0,W=0,H=0,Z=Zt(Ae,["moof","traf"]),ne=0;ne<Z.length;ne++){var ve=Z[ne],Te=Zt(ve,["tfhd"])[0],Ve=sr(Te,4),ot=q[Ve];if(!ot)continue;var ht=ot.default,Qt=sr(Te,0)|(ht==null?void 0:ht.flags),Cr=ht==null?void 0:ht.duration;Qt&8&&(Qt&2?Cr=sr(Te,12):Cr=sr(Te,8));for(var wr=ot.timescale||9e4,Kr=Zt(ve,["trun"]),Jr=0;Jr<Kr.length;Jr++){if(L=Un(Kr[Jr]),!L&&Cr){var Cn=sr(Kr[Jr],4);L=Cr*Cn}ot.type===le.VIDEO?W+=L/wr:ot.type===le.AUDIO&&(H+=L/wr)}}if(W===0&&H===0){for(var Nn=0,Jn=Zt(Ae,["sidx"]),bi=0;bi<Jn.length;bi++){var ua=Ct(Jn[bi]);ua!=null&&ua.references&&(Nn+=ua.references.reduce(function(Vi,Zi){return Vi+Zi.info.duration||0},0))}return Nn}return W||H}function Un(Ae){var q=sr(Ae,0),L=8;q&1&&(L+=4),q&4&&(L+=4);for(var W=0,H=sr(Ae,4),Z=0;Z<H;Z++){if(q&256){var ne=sr(Ae,L);W+=ne,L+=4}q&512&&(L+=4),q&1024&&(L+=4),q&2048&&(L+=4)}return W}function Qn(Ae,q,L){Zt(q,["moof","traf"]).forEach(function(W){Zt(W,["tfhd"]).forEach(function(H){var Z=sr(H,4),ne=Ae[Z];if(!ne)return;var ve=ne.timescale||9e4;Zt(W,["tfdt"]).forEach(function(Te){var Ve=Te[0],ot=sr(Te,4);if(Ve===0)ot-=L*ve,ot=Math.max(ot,0),pr(Te,4,ot);else{ot*=Math.pow(2,32),ot+=sr(Te,8),ot-=L*ve,ot=Math.max(ot,0);var ht=Math.floor(ot/(dr+1)),Qt=Math.floor(ot%(dr+1));pr(Te,4,ht),pr(Te,8,Qt)}})})})}function $t(Ae){var q={valid:null,remainder:null},L=Zt(Ae,["moof"]);if(L){if(L.length<2)return q.remainder=Ae,q}else return q;var W=L[L.length-1];return q.valid=Le(Ae,0,W.byteOffset-8),q.remainder=Le(Ae,W.byteOffset-8),q}function Nt(Ae,q){var L=new Uint8Array(Ae.length+q.length);return L.set(Ae),L.set(q,Ae.length),L}function Me(Ae,q){var L=[],W=q.samples,H=q.timescale,Z=q.id,ne=!1,ve=Zt(W,["moof"]);return ve.map(function(Te){var Ve=Te.byteOffset-8,ot=Zt(Te,["traf"]);ot.map(function(ht){var Qt=Zt(ht,["tfdt"]).map(function(Cr){var wr=Cr[0],Kr=sr(Cr,4);return wr===1&&(Kr*=Math.pow(2,32),Kr+=sr(Cr,8)),Kr/H})[0];return Qt!==void 0&&(Ae=Qt),Zt(ht,["tfhd"]).map(function(Cr){var wr=sr(Cr,4),Kr=sr(Cr,0)&16777215,Jr=(Kr&1)!==0,Cn=(Kr&2)!==0,Nn=(Kr&8)!==0,Jn=0,bi=(Kr&16)!==0,ua=0,Vi=(Kr&32)!==0,Zi=8;wr===Z&&(Jr&&(Zi+=8),Cn&&(Zi+=4),Nn&&(Jn=sr(Cr,Zi),Zi+=4),bi&&(ua=sr(Cr,Zi),Zi+=4),Vi&&(Zi+=4),q.type==="video"&&(ne=ke(q.codec)),Zt(ht,["trun"]).map(function(ka){var Ga=ka[0],Ba=sr(ka,0)&16777215,Sa=(Ba&1)!==0,Go=0,bs=(Ba&4)!==0,ys=(Ba&256)!==0,Cs=0,js=(Ba&512)!==0,ws=0,Hs=(Ba&1024)!==0,Ee=(Ba&2048)!==0,Ye=0,Et=sr(ka,4),cr=8;Sa&&(Go=sr(ka,cr),cr+=4),bs&&(cr+=4);for(var Fr=Go+Ve,sn=0;sn<Et;sn++){if(ys?(Cs=sr(ka,cr),cr+=4):Cs=Jn,js?(ws=sr(ka,cr),cr+=4):ws=ua,Hs&&(cr+=4),Ee&&(Ga===0?Ye=sr(ka,cr):Ye=xr(ka,cr),cr+=4),q.type===le.VIDEO)for(var je=0;je<ws;){var oe=sr(W,Fr);if(Fr+=4,Be(ne,W[Fr])){var Oe=W.subarray(Fr,Fr+oe);it(Oe,ne?2:1,Ae+Ye/H,L)}Fr+=oe,je+=oe+4}Ae+=Cs/H}}))})})}),L}function ke(Ae){if(!Ae)return!1;var q=Ae.indexOf("."),L=q<0?Ae:Ae.substring(0,q);return L==="hvc1"||L==="hev1"||L==="dvh1"||L==="dvhe"}function Be(Ae,q){if(Ae){var L=q>>1&63;return L===39||L===40}else{var W=q&31;return W===6}}function it(Ae,q,L,W){var H=yt(Ae),Z=0;Z+=q;for(var ne=0,ve=0,Te=!1,Ve=0;Z<H.length;){ne=0;do{if(Z>=H.length)break;Ve=H[Z++],ne+=Ve}while(Ve===255);ve=0;do{if(Z>=H.length)break;Ve=H[Z++],ve+=Ve}while(Ve===255);var ot=H.length-Z;if(!Te&&ne===4&&Z<H.length){Te=!0;var ht=H[Z++];if(ht===181){var Qt=mn(H,Z);if(Z+=2,Qt===49){var Cr=sr(H,Z);if(Z+=4,Cr===1195456820){var wr=H[Z++];if(wr===3){var Kr=H[Z++],Jr=31&Kr,Cn=64&Kr,Nn=Cn?2+Jr*3:0,Jn=new Uint8Array(Nn);if(Cn){Jn[0]=Kr;for(var bi=1;bi<Nn;bi++)Jn[bi]=H[Z++]}W.push({type:wr,payloadType:ne,pts:L,bytes:Jn})}}}}}else if(ne===5&&ve<ot){if(Te=!0,ve>16){for(var ua=[],Vi=0;Vi<16;Vi++){var Zi=H[Z++].toString(16);ua.push(Zi.length==1?"0"+Zi:Zi),(Vi===3||Vi===5||Vi===7||Vi===9)&&ua.push("-")}for(var ka=ve-16,Ga=new Uint8Array(ka),Ba=0;Ba<ka;Ba++)Ga[Ba]=H[Z++];W.push({payloadType:ne,pts:L,uuid:ua.join(""),userData:ut(Ga),userDataBytes:Ga})}}else if(ve<ot)Z+=ve;else if(ve>ot)break}}function yt(Ae){for(var q=Ae.byteLength,L=[],W=1;W<q-2;)Ae[W]===0&&Ae[W+1]===0&&Ae[W+2]===3?(L.push(W+2),W+=2):W++;if(L.length===0)return Ae;var H=q-L.length,Z=new Uint8Array(H),ne=0;for(W=0;W<H;ne++,W++)ne===L[0]&&(ne++,L.shift()),Z[W]=Ae[ne];return Z}function Tt(Ae){var q=Ae[0],L="",W="",H=0,Z=0,ne=0,ve=0,Te=0,Ve=0;if(q===0){for(;ur(Ae.subarray(Ve,Ve+1))!=="\0";)L+=ur(Ae.subarray(Ve,Ve+1)),Ve+=1;for(L+=ur(Ae.subarray(Ve,Ve+1)),Ve+=1;ur(Ae.subarray(Ve,Ve+1))!=="\0";)W+=ur(Ae.subarray(Ve,Ve+1)),Ve+=1;W+=ur(Ae.subarray(Ve,Ve+1)),Ve+=1,H=sr(Ae,12),Z=sr(Ae,16),ve=sr(Ae,20),Te=sr(Ae,24),Ve=28}else if(q===1){Ve+=4,H=sr(Ae,Ve),Ve+=4;var ot=sr(Ae,Ve);Ve+=4;var ht=sr(Ae,Ve);for(Ve+=4,ne=Math.pow(2,32)*ot+ht,Number.isSafeInteger(ne)||(ne=Number.MAX_SAFE_INTEGER,j.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),ve=sr(Ae,Ve),Ve+=4,Te=sr(Ae,Ve),Ve+=4;ur(Ae.subarray(Ve,Ve+1))!=="\0";)L+=ur(Ae.subarray(Ve,Ve+1)),Ve+=1;for(L+=ur(Ae.subarray(Ve,Ve+1)),Ve+=1;ur(Ae.subarray(Ve,Ve+1))!=="\0";)W+=ur(Ae.subarray(Ve,Ve+1)),Ve+=1;W+=ur(Ae.subarray(Ve,Ve+1)),Ve+=1}var Qt=Ae.subarray(Ve,Ae.byteLength);return{schemeIdUri:L,value:W,timeScale:H,presentationTime:ne,presentationTimeDelta:Z,eventDuration:ve,id:Te,payload:Qt}}function Yt(Ae){for(var q=arguments.length,L=new Array(q>1?q-1:0),W=1;W<q;W++)L[W-1]=arguments[W];for(var H=L.length,Z=8,ne=H;ne--;)Z+=L[ne].byteLength;var ve=new Uint8Array(Z);for(ve[0]=Z>>24&255,ve[1]=Z>>16&255,ve[2]=Z>>8&255,ve[3]=Z&255,ve.set(Ae,4),ne=0,Z=8;ne<H;ne++)ve.set(L[ne],Z),Z+=L[ne].byteLength;return ve}function Pr(Ae,q,L){if(Ae.byteLength!==16)throw new RangeError("Invalid system id");var W,H;if(q){W=1,H=new Uint8Array(q.length*16);for(var Z=0;Z<q.length;Z++){var ne=q[Z];if(ne.byteLength!==16)throw new RangeError("Invalid key");H.set(ne,Z*16)}}else W=0,H=new Uint8Array;var ve;W>0?(ve=new Uint8Array(4),q.length>0&&new DataView(ve.buffer).setUint32(0,q.length,!1)):ve=new Uint8Array;var Te=new Uint8Array(4);return L&&L.byteLength>0&&new DataView(Te.buffer).setUint32(0,L.byteLength,!1),Yt([112,115,115,104],new Uint8Array([W,0,0,0]),Ae,ve,H,Te,L||new Uint8Array)}function $r(Ae){if(!(Ae instanceof ArrayBuffer)||Ae.byteLength<32)return null;var q={version:0,systemId:"",kids:null,data:null},L=new DataView(Ae),W=L.getUint32(0);if(Ae.byteLength!==W&&W>44)return null;var H=L.getUint32(4);if(H!==1886614376)return null;if(q.version=L.getUint32(8)>>>24,q.version>1)return null;q.systemId=Wt.hexDump(new Uint8Array(Ae,12,16));var Z=L.getUint32(28);if(q.version===0){if(W-32<Z)return null;q.data=new Uint8Array(Ae,32,Z)}else if(q.version===1){q.kids=[];for(var ne=0;ne<Z;ne++)q.kids.push(new Uint8Array(Ae,32+ne*16,16))}return q}var An={},zt=function(){function Ae(q,L,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;Object(r.a)(this,Ae),this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=q,this.uri=L,this.keyFormat=W,this.keyFormatVersions=H,this.iv=Z,this.encrypted=q?q!=="NONE":!1,this.isCommonEncryption=this.encrypted&&q!=="AES-128"}return Object(s.a)(Ae,[{key:"isSupported",value:function(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case J.FAIRPLAY:case J.WIDEVINE:case J.PLAYREADY:case J.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}},{key:"getDecryptData",value:function(L){if(!this.encrypted||!this.uri)return null;if(this.method==="AES-128"&&this.uri&&!this.iv){typeof L!="number"&&(this.method==="AES-128"&&!this.iv&&j.warn('missing IV for initialization segment with method="'.concat(this.method,'" - compliance issue')),L=0);var W=At(L),H=new Ae(this.method,this.uri,"identity",this.keyFormatVersions,W);return H}var Z=ae(this.uri);if(Z)switch(this.keyFormat){case J.WIDEVINE:this.pssh=Z,Z.length>=22&&(this.keyId=Z.subarray(Z.length-22,Z.length-6));break;case J.PLAYREADY:{var ne=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Pr(ne,null,Z);var ve=new Uint16Array(Z.buffer,Z.byteOffset,Z.byteLength/2),Te=String.fromCharCode.apply(null,Array.from(ve)),Ve=Te.substring(Te.indexOf("<"),Te.length),ot=new DOMParser,ht=ot.parseFromString(Ve,"text/xml"),Qt=ht.getElementsByTagName("KID")[0];if(Qt){var Cr=Qt.childNodes[0]?Qt.childNodes[0].nodeValue:Qt.getAttribute("VALUE");if(Cr){var wr=Ge(Cr).subarray(0,16);Ue(wr),this.keyId=wr}}break}default:{var Kr=Z.subarray(0,16);if(Kr.length!==16){var Jr=new Uint8Array(16);Jr.set(Kr,16-Kr.length),Kr=Jr}this.keyId=Kr;break}}if(!this.keyId||this.keyId.byteLength!==16){var Cn=An[this.uri];if(!Cn){var Nn=Object.keys(An).length%Number.MAX_SAFE_INTEGER;Cn=new Uint8Array(16);var Jn=new DataView(Cn.buffer,12,4);Jn.setUint32(0,Nn),An[this.uri]=Cn}this.keyId=Cn}return this}}],[{key:"clearKeyUriToKeyIdMap",value:function(){An={}}}]),Ae}();function At(Ae){for(var q=new Uint8Array(16),L=12;L<16;L++)q[L]=Ae>>8*(15-L)&255;return q}var wt=/\{\$([a-zA-Z0-9-_]+)\}/g;function vr(Ae){return wt.test(Ae)}function Jt(Ae,q,L){if(Ae.variableList!==null||Ae.hasVariableRefs)for(var W=L.length;W--;){var H=L[W],Z=q[H];Z&&(q[H]=Ut(Ae,Z))}}function Ut(Ae,q){if(Ae.variableList!==null||Ae.hasVariableRefs){var L=Ae.variableList;return q.replace(wt,function(W){var H=W.substring(2,W.length-1),Z=L==null?void 0:L[H];return Z===void 0?(Ae.playlistParsingError||(Ae.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'.concat(H,'"'))),W):Z})}return q}function tr(Ae,q,L){var W=Ae.variableList;W||(Ae.variableList=W={});var H,Z;if("QUERYPARAM"in q){H=q.QUERYPARAM;try{var ne=new self.URL(L).searchParams;if(ne.has(H))Z=ne.get(H);else throw new Error('"'.concat(H,'" does not match any query parameter in URI: "').concat(L,'"'))}catch(ve){Ae.playlistParsingError||(Ae.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: ".concat(ve.message)))}}else H=q.NAME,Z=q.VALUE;H in W?Ae.playlistParsingError||(Ae.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'.concat(H,'"'))):W[H]=Z||""}function Ft(Ae,q,L){var W=q.IMPORT;if(L&&W in L){var H=Ae.variableList;H||(Ae.variableList=H={}),H[W]=L[W]}else Ae.playlistParsingError||(Ae.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'.concat(W,'"')))}function qt(){return typeof self=="undefined"?void 0:self.MediaSource||self.WebKitMediaSource}var Hr={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}},Nr=qt();function Dr(Ae,q){var L=Hr[q];return!!L&&L[Ae.slice(0,4)]===!0}function cn(Ae,q){var L;return(L=Nr==null?void 0:Nr.isTypeSupported("".concat(q||"video",'/mp4;codecs="').concat(Ae,'"')))!=null?L:!1}var vn=/#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,ei=/#EXT-X-MEDIA:(.*)/g,qn=/^#EXT(?:INF|-X-TARGETDURATION):/m,fi=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),xi=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("|")),Ni=function(){function Ae(){Object(r.a)(this,Ae)}return Object(s.a)(Ae,null,[{key:"findGroup",value:function(L,W){for(var H=0;H<L.length;H++){var Z=L[H];if(Z.id===W)return Z}}},{key:"convertAVC1ToAVCOTI",value:function(L){var W=L.split(".");if(W.length>2){var H=W.shift()+".";return H+=parseInt(W.shift()).toString(16),H+=("000"+parseInt(W.shift()).toString(16)).slice(-4),H}return L}},{key:"resolve",value:function(L,W){return g.buildAbsoluteURL(W,L,{alwaysNormalize:!0})}},{key:"isMediaPlaylist",value:function(L){return qn.test(L)}},{key:"parseMasterPlaylist",value:function(L,W){var H=vr(L),Z={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:H},ne=[];vn.lastIndex=0;for(var ve;(ve=vn.exec(L))!=null;)if(ve[1]){var Te,Ve=new V(ve[1]);Jt(Z,Ve,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);var ot=Ut(Z,ve[2]),ht={attrs:Ve,bitrate:Ve.decimalInteger("AVERAGE-BANDWIDTH")||Ve.decimalInteger("BANDWIDTH"),name:Ve.NAME,url:Ae.resolve(ot,W)},Qt=Ve.decimalResolution("RESOLUTION");Qt&&(ht.width=Qt.width,ht.height=Qt.height),Ne((Ve.CODECS||"").split(/[ ,]+/).filter(function(ua){return ua}),ht),ht.videoCodec&&ht.videoCodec.indexOf("avc1")!==-1&&(ht.videoCodec=Ae.convertAVC1ToAVCOTI(ht.videoCodec)),(Te=ht.unknownCodecs)!=null&&Te.length||ne.push(ht),Z.levels.push(ht)}else if(ve[3]){var Cr=ve[3],wr=ve[4];switch(Cr){case"SESSION-DATA":{var Kr=new V(wr);Jt(Z,Kr,["DATA-ID","LANGUAGE","VALUE","URI"]);var Jr=Kr["DATA-ID"];Jr&&(Z.sessionData===null&&(Z.sessionData={}),Z.sessionData[Jr]=Kr);break}case"SESSION-KEY":{var Cn=Hi(wr,W,Z);Cn.encrypted&&Cn.isSupported()?(Z.sessionKeys===null&&(Z.sessionKeys=[]),Z.sessionKeys.push(Cn)):j.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'.concat(wr,'"'));break}case"DEFINE":{{var Nn=new V(wr);Jt(Z,Nn,["NAME","VALUE","QUERYPARAM"]),tr(Z,Nn,W)}break}case"CONTENT-STEERING":{var Jn=new V(wr);Jt(Z,Jn,["SERVER-URI","PATHWAY-ID"]),Z.contentSteering={uri:Ae.resolve(Jn["SERVER-URI"],W),pathwayId:Jn["PATHWAY-ID"]||"."};break}case"START":{Z.startTimeOffset=nt(wr);break}}}var bi=ne.length>0&&ne.length<Z.levels.length;return Z.levels=bi?ne:Z.levels,Z.levels.length===0&&(Z.playlistParsingError=new Error("no levels found in manifest")),Z}},{key:"parseMasterPlaylistMedia",value:function(L,W,H){var Z,ne={},ve=H.levels,Te={AUDIO:ve.map(function(Jr){return{id:Jr.attrs.AUDIO,audioCodec:Jr.audioCodec}}),SUBTITLES:ve.map(function(Jr){return{id:Jr.attrs.SUBTITLES,textCodec:Jr.textCodec}}),"CLOSED-CAPTIONS":[]},Ve=0;for(ei.lastIndex=0;(Z=ei.exec(L))!==null;){var ot=new V(Z[1]),ht=ot.TYPE;if(ht){var Qt=Te[ht],Cr=ne[ht]||[];ne[ht]=Cr,Jt(H,ot,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);var wr={attrs:ot,bitrate:0,id:Ve++,groupId:ot["GROUP-ID"]||"",instreamId:ot["INSTREAM-ID"],name:ot.NAME||ot.LANGUAGE||"",type:ht,default:ot.bool("DEFAULT"),autoselect:ot.bool("AUTOSELECT"),forced:ot.bool("FORCED"),lang:ot.LANGUAGE,url:ot.URI?Ae.resolve(ot.URI,W):""};if(Qt!=null&&Qt.length){var Kr=Ae.findGroup(Qt,wr.groupId)||Qt[0];He(wr,Kr,"audioCodec"),He(wr,Kr,"textCodec")}Cr.push(wr)}}return ne}},{key:"parseLevelPlaylist",value:function(L,W,H,Z,ne,ve){var Te=new Je(W),Ve=Te.fragments,ot=null,ht=0,Qt=0,Cr=0,wr=0,Kr=null,Jr=new Se(Z,W),Cn,Nn,Jn,bi=-1,ua=!1;for(fi.lastIndex=0,Te.m3u8=L,Te.hasVariableRefs=vr(L);(Cn=fi.exec(L))!==null;){ua&&(ua=!1,Jr=new Se(Z,W),Jr.start=Cr,Jr.sn=ht,Jr.cc=wr,Jr.level=H,ot&&(Jr.initSegment=ot,Jr.rawProgramDateTime=ot.rawProgramDateTime,ot.rawProgramDateTime=null));var Vi=Cn[1];if(Vi){Jr.duration=parseFloat(Vi);var Zi=(" "+Cn[2]).slice(1);Jr.title=Zi||null,Jr.tagList.push(Zi?["INF",Vi,Zi]:["INF",Vi])}else if(Cn[3]){if(T(Jr.duration)){Jr.start=Cr,Jn&&st(Jr,Jn,Te),Jr.sn=ht,Jr.level=H,Jr.cc=wr,Jr.urlId=ne,Ve.push(Jr);var ka=(" "+Cn[3]).slice(1);Jr.relurl=Ut(Te,ka),rt(Jr,Kr),Kr=Jr,Cr+=Jr.duration,ht++,Qt=0,ua=!0}}else if(Cn[4]){var Ga=(" "+Cn[4]).slice(1);Kr?Jr.setByteRange(Ga,Kr):Jr.setByteRange(Ga)}else if(Cn[5])Jr.rawProgramDateTime=(" "+Cn[5]).slice(1),Jr.tagList.push(["PROGRAM-DATE-TIME",Jr.rawProgramDateTime]),bi===-1&&(bi=Ve.length);else{if(Cn=Cn[0].match(xi),!Cn){j.warn("No matches on slow regex match for level playlist!");continue}for(Nn=1;Nn<Cn.length&&!(typeof Cn[Nn]!="undefined");Nn++);var Ba=(" "+Cn[Nn]).slice(1),Sa=(" "+Cn[Nn+1]).slice(1),Go=Cn[Nn+2]?(" "+Cn[Nn+2]).slice(1):"";switch(Ba){case"PLAYLIST-TYPE":Te.type=Sa.toUpperCase();break;case"MEDIA-SEQUENCE":ht=Te.startSN=parseInt(Sa);break;case"SKIP":{var bs=new V(Sa);Jt(Te,bs,["RECENTLY-REMOVED-DATERANGES"]);var ys=bs.decimalInteger("SKIPPED-SEGMENTS");if(T(ys)){Te.skippedSegments=ys;for(var Cs=ys;Cs--;)Ve.unshift(null);ht+=ys}var js=bs.enumeratedString("RECENTLY-REMOVED-DATERANGES");js&&(Te.recentlyRemovedDateranges=js.split(" "));break}case"TARGETDURATION":Te.targetduration=Math.max(parseInt(Sa),1);break;case"VERSION":Te.version=parseInt(Sa);break;case"EXTM3U":break;case"ENDLIST":Te.live=!1;break;case"#":(Sa||Go)&&Jr.tagList.push(Go?[Sa,Go]:[Sa]);break;case"DISCONTINUITY":wr++,Jr.tagList.push(["DIS"]);break;case"GAP":Jr.gap=!0,Jr.tagList.push([Ba]);break;case"BITRATE":Jr.tagList.push([Ba,Sa]);break;case"DATERANGE":{var ws=new V(Sa);Jt(Te,ws,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Jt(Te,ws,ws.clientAttrs);var Hs=new te(ws,Te.dateRanges[ws.ID]);Hs.isValid||Te.skippedSegments?Te.dateRanges[Hs.id]=Hs:j.warn('Ignoring invalid DATERANGE tag: "'.concat(Sa,'"')),Jr.tagList.push(["EXT-X-DATERANGE",Sa]);break}case"DEFINE":{{var Ee=new V(Sa);Jt(Te,Ee,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in Ee?Ft(Te,Ee,ve):tr(Te,Ee,W)}break}case"DISCONTINUITY-SEQUENCE":wr=parseInt(Sa);break;case"KEY":{var Ye=Hi(Sa,W,Te);if(Ye.isSupported()){if(Ye.method==="NONE"){Jn=void 0;break}Jn||(Jn={}),Jn[Ye.keyFormat]&&(Jn=E({},Jn)),Jn[Ye.keyFormat]=Ye}else j.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'.concat(Sa,'"'));break}case"START":Te.startTimeOffset=nt(Sa);break;case"MAP":{var Et=new V(Sa);if(Jt(Te,Et,["BYTERANGE","URI"]),Jr.duration){var cr=new Se(Z,W);Ze(cr,Et,H,Jn),ot=cr,Jr.initSegment=ot,ot.rawProgramDateTime&&!Jr.rawProgramDateTime&&(Jr.rawProgramDateTime=ot.rawProgramDateTime)}else Ze(Jr,Et,H,Jn),ot=Jr,ua=!0;break}case"SERVER-CONTROL":{var Fr=new V(Sa);Te.canBlockReload=Fr.bool("CAN-BLOCK-RELOAD"),Te.canSkipUntil=Fr.optionalFloat("CAN-SKIP-UNTIL",0),Te.canSkipDateRanges=Te.canSkipUntil>0&&Fr.bool("CAN-SKIP-DATERANGES"),Te.partHoldBack=Fr.optionalFloat("PART-HOLD-BACK",0),Te.holdBack=Fr.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var sn=new V(Sa);Te.partTarget=sn.decimalFloatingPoint("PART-TARGET");break}case"PART":{var je=Te.partList;je||(je=Te.partList=[]);var oe=Qt>0?je[je.length-1]:void 0,Oe=Qt++,$e=new V(Sa);Jt(Te,$e,["BYTERANGE","URI"]);var bt=new Re($e,Jr,W,Oe,oe);je.push(bt),Jr.duration+=bt.duration;break}case"PRELOAD-HINT":{var Vt=new V(Sa);Jt(Te,Vt,["URI"]),Te.preloadHint=Vt;break}case"RENDITION-REPORT":{var er=new V(Sa);Jt(Te,er,["URI"]),Te.renditionReports=Te.renditionReports||[],Te.renditionReports.push(er);break}default:j.warn("line parsed but not handled: ".concat(Cn));break}}}Kr&&!Kr.relurl?(Ve.pop(),Cr-=Kr.duration,Te.partList&&(Te.fragmentHint=Kr)):Te.partList&&(rt(Jr,Kr),Jr.cc=wr,Te.fragmentHint=Jr,Jn&&st(Jr,Jn,Te));var ir=Ve.length,zr=Ve[0],hn=Ve[ir-1];if(Cr+=Te.skippedSegments*Te.targetduration,Cr>0&&ir&&hn){Te.averagetargetduration=Cr/ir;var Wr=hn.sn;Te.endSN=Wr!=="initSegment"?Wr:0,Te.live||(hn.endList=!0),zr&&(Te.startCC=zr.cc)}else Te.endSN=0,Te.startCC=0;return Te.fragmentHint&&(Cr+=Te.fragmentHint.duration),Te.totalduration=Cr,Te.endCC=wr,bi>0&&Xe(Ve,bi),Te}}]),Ae}();function Hi(Ae,q,L){var W,H,Z=new V(Ae);Jt(L,Z,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var ne=(W=Z.METHOD)!=null?W:"",ve=Z.URI,Te=Z.hexadecimalInteger("IV"),Ve=Z.KEYFORMATVERSIONS,ot=(H=Z.KEYFORMAT)!=null?H:"identity";ve&&Z.IV&&!Te&&j.error("Invalid IV: ".concat(Z.IV));var ht=ve?Ni.resolve(ve,q):"",Qt=(Ve||"1").split("/").map(Number).filter(Number.isFinite);return new zt(ne,ht,ot,Qt,Te)}function nt(Ae){var q=new V(Ae),L=q.decimalFloatingPoint("TIME-OFFSET");return T(L)?L:null}function Ne(Ae,q){["video","audio","text"].forEach(function(L){var W=Ae.filter(function(Z){return Dr(Z,L)});if(W.length){var H=W.filter(function(Z){return Z.lastIndexOf("avc1",0)===0||Z.lastIndexOf("mp4a",0)===0});q["".concat(L,"Codec")]=H.length>0?H[0]:W[0],Ae=Ae.filter(function(Z){return W.indexOf(Z)===-1})}}),q.unknownCodecs=Ae}function He(Ae,q,L){var W=q[L];W&&(Ae[L]=W)}function Xe(Ae,q){for(var L=Ae[q],W=q;W--;){var H=Ae[W];if(!H)return;H.programDateTime=L.programDateTime-H.duration*1e3,L=H}}function rt(Ae,q){Ae.rawProgramDateTime?Ae.programDateTime=Date.parse(Ae.rawProgramDateTime):q!=null&&q.programDateTime&&(Ae.programDateTime=q.endProgramDateTime),T(Ae.programDateTime)||(Ae.programDateTime=null,Ae.rawProgramDateTime=null)}function Ze(Ae,q,L,W){Ae.relurl=q.URI,q.BYTERANGE&&Ae.setByteRange(q.BYTERANGE),Ae.level=L,Ae.sn="initSegment",W&&(Ae.levelkeys=W),Ae.initSegment=null}function st(Ae,q,L){Ae.levelkeys=q;var W=L.encryptedFragments;(!W.length||W[W.length-1].levelkeys!==q)&&Object.keys(q).some(function(H){return q[H].isCommonEncryption})&&W.push(Ae)}var xt={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},pt={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function hr(Ae){var q=Ae.type;switch(q){case xt.AUDIO_TRACK:return pt.AUDIO;case xt.SUBTITLE_TRACK:return pt.SUBTITLE;default:return pt.MAIN}}function Zr(Ae,q){var L=Ae.url;return(L===void 0||L.indexOf("data:")===0)&&(L=q.url),L}var Xr=function(){function Ae(q){Object(r.a)(this,Ae),this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=q,this.registerListeners()}return Object(s.a)(Ae,[{key:"startLoad",value:function(L){}},{key:"stopLoad",value:function(){this.destroyInternalLoaders()}},{key:"registerListeners",value:function(){var L=this.hls;L.on(S.MANIFEST_LOADING,this.onManifestLoading,this),L.on(S.LEVEL_LOADING,this.onLevelLoading,this),L.on(S.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),L.on(S.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(S.MANIFEST_LOADING,this.onManifestLoading,this),L.off(S.LEVEL_LOADING,this.onLevelLoading,this),L.off(S.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),L.off(S.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"createInternalLoader",value:function(L){var W=this.hls.config,H=W.pLoader,Z=W.loader,ne=H||Z,ve=new ne(W);return this.loaders[L.type]=ve,ve}},{key:"getInternalLoader",value:function(L){return this.loaders[L.type]}},{key:"resetInternalLoader",value:function(L){this.loaders[L]&&delete this.loaders[L]}},{key:"destroyInternalLoaders",value:function(){for(var L in this.loaders){var W=this.loaders[L];W&&W.destroy(),this.resetInternalLoader(L)}}},{key:"destroy",value:function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}},{key:"onManifestLoading",value:function(L,W){var H=W.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:xt.MANIFEST,url:H,deliveryDirectives:null})}},{key:"onLevelLoading",value:function(L,W){var H=W.id,Z=W.level,ne=W.url,ve=W.deliveryDirectives;this.load({id:H,level:Z,responseType:"text",type:xt.LEVEL,url:ne,deliveryDirectives:ve})}},{key:"onAudioTrackLoading",value:function(L,W){var H=W.id,Z=W.groupId,ne=W.url,ve=W.deliveryDirectives;this.load({id:H,groupId:Z,level:null,responseType:"text",type:xt.AUDIO_TRACK,url:ne,deliveryDirectives:ve})}},{key:"onSubtitleTrackLoading",value:function(L,W){var H=W.id,Z=W.groupId,ne=W.url,ve=W.deliveryDirectives;this.load({id:H,groupId:Z,level:null,responseType:"text",type:xt.SUBTITLE_TRACK,url:ne,deliveryDirectives:ve})}},{key:"load",value:function(L){var W=this,H,Z=this.hls.config,ne=this.getInternalLoader(L);if(ne){var ve=ne.context;if(ve&&ve.url===L.url){j.trace("[playlist-loader]: playlist request ongoing");return}j.log("[playlist-loader]: aborting previous loader for type: ".concat(L.type)),ne.abort()}var Te;if(L.type===xt.MANIFEST?Te=Z.manifestLoadPolicy.default:Te=E({},Z.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),ne=this.createInternalLoader(L),(H=L.deliveryDirectives)!=null&&H.part){var Ve;if(L.type===xt.LEVEL&&L.level!==null?Ve=this.hls.levels[L.level].details:L.type===xt.AUDIO_TRACK&&L.id!==null?Ve=this.hls.audioTracks[L.id].details:L.type===xt.SUBTITLE_TRACK&&L.id!==null&&(Ve=this.hls.subtitleTracks[L.id].details),Ve){var ot=Ve.partTarget,ht=Ve.targetduration;if(ot&&ht){var Qt=Math.max(ot*3,ht*.8)*1e3;Te=E({},Te,{maxTimeToFirstByteMs:Math.min(Qt,Te.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(Qt,Te.maxTimeToFirstByteMs)})}}}var Cr=Te.errorRetry||Te.timeoutRetry||{},wr={loadPolicy:Te,timeout:Te.maxLoadTimeMs,maxRetry:Cr.maxNumRetry||0,retryDelay:Cr.retryDelayMs||0,maxRetryDelay:Cr.maxRetryDelayMs||0},Kr={onSuccess:function(Cn,Nn,Jn,bi){var ua=W.getInternalLoader(Jn);W.resetInternalLoader(Jn.type);var Vi=Cn.data;if(Vi.indexOf("#EXTM3U")!==0){W.handleManifestParsingError(Cn,Jn,new Error("no EXTM3U delimiter"),bi||null,Nn);return}Nn.parsing.start=performance.now(),Ni.isMediaPlaylist(Vi)?W.handleTrackOrLevelPlaylist(Cn,Nn,Jn,bi||null,ua):W.handleMasterPlaylist(Cn,Nn,Jn,bi)},onError:function(Cn,Nn,Jn,bi){W.handleNetworkError(Nn,Jn,!1,Cn,bi)},onTimeout:function(Cn,Nn,Jn){W.handleNetworkError(Nn,Jn,!0,void 0,Cn)}};ne.load(L,wr,Kr)}},{key:"handleMasterPlaylist",value:function(L,W,H,Z){var ne=this.hls,ve=L.data,Te=Zr(L,H),Ve=Ni.parseMasterPlaylist(ve,Te);if(Ve.playlistParsingError){this.handleManifestParsingError(L,H,Ve.playlistParsingError,Z,W);return}var ot=Ve.contentSteering,ht=Ve.levels,Qt=Ve.sessionData,Cr=Ve.sessionKeys,wr=Ve.startTimeOffset,Kr=Ve.variableList;this.variableList=Kr;var Jr=Ni.parseMasterPlaylistMedia(ve,Te,Ve),Cn=Jr.AUDIO,Nn=Cn===void 0?[]:Cn,Jn=Jr.SUBTITLES,bi=Jr["CLOSED-CAPTIONS"];if(Nn.length){var ua=Nn.some(function(Vi){return!Vi.url});!ua&&ht[0].audioCodec&&!ht[0].attrs.AUDIO&&(j.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 V({}),bitrate:0,url:""}))}ne.trigger(S.MANIFEST_LOADED,{levels:ht,audioTracks:Nn,subtitles:Jn,captions:bi,contentSteering:ot,url:Te,stats:W,networkDetails:Z,sessionData:Qt,sessionKeys:Cr,startTimeOffset:wr,variableList:Kr})}},{key:"handleTrackOrLevelPlaylist",value:function(L,W,H,Z,ne){var ve=this.hls,Te=H.id,Ve=H.level,ot=H.type,ht=Zr(L,H),Qt=T(Te)?Te:0,Cr=T(Ve)?Ve:Qt,wr=hr(H),Kr=Ni.parseLevelPlaylist(L.data,ht,Cr,wr,Qt,this.variableList);if(ot===xt.MANIFEST){var Jr={attrs:new V({}),bitrate:0,details:Kr,name:"",url:ht};ve.trigger(S.MANIFEST_LOADED,{levels:[Jr],audioTracks:[],url:ht,stats:W,networkDetails:Z,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}W.parsing.end=performance.now(),H.levelDetails=Kr,this.handlePlaylistLoaded(Kr,L,W,H,Z,ne)}},{key:"handleManifestParsingError",value:function(L,W,H,Z,ne){this.hls.trigger(S.ERROR,{type:O.NETWORK_ERROR,details:I.MANIFEST_PARSING_ERROR,fatal:W.type===xt.MANIFEST,url:L.url,err:H,error:H,reason:H.message,response:L,context:W,networkDetails:Z,stats:ne})}},{key:"handleNetworkError",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Z=arguments.length>3?arguments[3]:void 0,ne=arguments.length>4?arguments[4]:void 0,ve="A network ".concat(H?"timeout":"error"+(Z?" (status "+Z.code+")":"")," occurred while loading ").concat(L.type);L.type===xt.LEVEL?ve+=": ".concat(L.level," id: ").concat(L.id):(L.type===xt.AUDIO_TRACK||L.type===xt.SUBTITLE_TRACK)&&(ve+=" id: ".concat(L.id,' group-id: "').concat(L.groupId,'"'));var Te=new Error(ve);j.warn("[playlist-loader]: ".concat(ve));var Ve=I.UNKNOWN,ot=!1,ht=this.getInternalLoader(L);switch(L.type){case xt.MANIFEST:Ve=H?I.MANIFEST_LOAD_TIMEOUT:I.MANIFEST_LOAD_ERROR,ot=!0;break;case xt.LEVEL:Ve=H?I.LEVEL_LOAD_TIMEOUT:I.LEVEL_LOAD_ERROR,ot=!1;break;case xt.AUDIO_TRACK:Ve=H?I.AUDIO_TRACK_LOAD_TIMEOUT:I.AUDIO_TRACK_LOAD_ERROR,ot=!1;break;case xt.SUBTITLE_TRACK:Ve=H?I.SUBTITLE_TRACK_LOAD_TIMEOUT:I.SUBTITLE_LOAD_ERROR,ot=!1;break}ht&&this.resetInternalLoader(L.type);var Qt={type:O.NETWORK_ERROR,details:Ve,fatal:ot,url:L.url,loader:ht,context:L,error:Te,networkDetails:W,stats:ne};if(Z){var Cr=(W==null?void 0:W.url)||L.url;Qt.response=b({url:Cr,data:void 0},Z)}this.hls.trigger(S.ERROR,Qt)}},{key:"handlePlaylistLoaded",value:function(L,W,H,Z,ne,ve){var Te=this.hls,Ve=Z.type,ot=Z.level,ht=Z.id,Qt=Z.groupId,Cr=Z.deliveryDirectives,wr=Zr(W,Z),Kr=hr(Z),Jr=typeof Z.level=="number"&&Kr===pt.MAIN?ot:void 0;if(!L.fragments.length){var Cn=new Error("No Segments found in Playlist");Te.trigger(S.ERROR,{type:O.NETWORK_ERROR,details:I.LEVEL_EMPTY_ERROR,fatal:!1,url:wr,error:Cn,reason:Cn.message,response:W,context:Z,level:Jr,parent:Kr,networkDetails:ne,stats:H});return}L.targetduration||(L.playlistParsingError=new Error("Missing Target Duration"));var Nn=L.playlistParsingError;if(Nn){Te.trigger(S.ERROR,{type:O.NETWORK_ERROR,details:I.LEVEL_PARSING_ERROR,fatal:!1,url:wr,error:Nn,reason:Nn.message,response:W,context:Z,level:Jr,parent:Kr,networkDetails:ne,stats:H});return}L.live&&ve&&(ve.getCacheAge&&(L.ageHeader=ve.getCacheAge()||0),(!ve.getCacheAge||isNaN(L.ageHeader))&&(L.ageHeader=0));switch(Ve){case xt.MANIFEST:case xt.LEVEL:Te.trigger(S.LEVEL_LOADED,{details:L,level:Jr||0,id:ht||0,stats:H,networkDetails:ne,deliveryDirectives:Cr});break;case xt.AUDIO_TRACK:Te.trigger(S.AUDIO_TRACK_LOADED,{details:L,id:ht||0,groupId:Qt||"",stats:H,networkDetails:ne,deliveryDirectives:Cr});break;case xt.SUBTITLE_TRACK:Te.trigger(S.SUBTITLE_TRACK_LOADED,{details:L,id:ht||0,groupId:Qt||"",stats:H,networkDetails:ne,deliveryDirectives:Cr});break}}}]),Ae}();function pn(Ae,q){var L;try{L=new Event("addtrack")}catch(W){L=document.createEvent("Event"),L.initEvent("addtrack",!1,!1)}L.track=Ae,q.dispatchEvent(L)}function gr(Ae,q){var L=Ae.mode;if(L==="disabled"&&(Ae.mode="hidden"),Ae.cues&&!Ae.cues.getCueById(q.id))try{if(Ae.addCue(q),!Ae.cues.getCueById(q.id))throw new Error("addCue is failed for: ".concat(q))}catch(H){j.debug("[texttrack-utils]: ".concat(H));try{var W=new self.TextTrackCue(q.startTime,q.endTime,q.text);W.id=q.id,Ae.addCue(W)}catch(Z){j.debug("[texttrack-utils]: Legacy TextTrackCue fallback failed: ".concat(Z))}}L==="disabled"&&(Ae.mode=L)}function Kn(Ae){var q=Ae.mode;if(q==="disabled"&&(Ae.mode="hidden"),Ae.cues)for(var L=Ae.cues.length;L--;)Ae.removeCue(Ae.cues[L]);q==="disabled"&&(Ae.mode=q)}function Rr(Ae,q,L,W){var H=Ae.mode;if(H==="disabled"&&(Ae.mode="hidden"),Ae.cues&&Ae.cues.length>0)for(var Z=an(Ae.cues,q,L),ne=0;ne<Z.length;ne++)(!W||W(Z[ne]))&&Ae.removeCue(Z[ne]);H==="disabled"&&(Ae.mode=H)}function Pn(Ae,q){if(q<Ae[0].startTime)return 0;var L=Ae.length-1;if(q>Ae[L].endTime)return-1;for(var W=0,H=L;W<=H;){var Z=Math.floor((H+W)/2);if(q<Ae[Z].startTime)H=Z-1;else if(q>Ae[Z].startTime&&W<L)W=Z+1;else return Z}return Ae[W].startTime-q<q-Ae[H].startTime?W:H}function an(Ae,q,L){var W=[],H=Pn(Ae,q);if(H>-1)for(var Z=H,ne=Ae.length;Z<ne;Z++){var ve=Ae[Z];if(ve.startTime>=q&&ve.endTime<=L)W.push(ve);else if(ve.startTime>L)return W}return W}var Ur={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"},ii=.25;function _i(){return typeof self=="undefined"?void 0:self.WebKitDataCue||self.VTTCue||self.TextTrackCue}var Gi=function(){var Ae=_i();try{new Ae(0,Number.POSITIVE_INFINITY,"")}catch(q){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function tn(Ae,q){return Ae.getTime()/1e3-q}function Tn(Ae){return Uint8Array.from(Ae.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}var Vn=function(){function Ae(q){Object(r.a)(this,Ae),this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=q,this._registerListeners()}return Object(s.a)(Ae,[{key:"destroy",value:function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}},{key:"_registerListeners",value:function(){var L=this.hls;L.on(S.MEDIA_ATTACHED,this.onMediaAttached,this),L.on(S.MEDIA_DETACHING,this.onMediaDetaching,this),L.on(S.MANIFEST_LOADING,this.onManifestLoading,this),L.on(S.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),L.on(S.BUFFER_FLUSHING,this.onBufferFlushing,this),L.on(S.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"_unregisterListeners",value:function(){var L=this.hls;L.off(S.MEDIA_ATTACHED,this.onMediaAttached,this),L.off(S.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(S.MANIFEST_LOADING,this.onManifestLoading,this),L.off(S.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),L.off(S.BUFFER_FLUSHING,this.onBufferFlushing,this),L.off(S.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"onMediaAttached",value:function(L,W){this.media=W.media}},{key:"onMediaDetaching",value:function(){if(!this.id3Track)return;Kn(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={}}},{key:"onManifestLoading",value:function(){this.dateRangeCuesAppended={}}},{key:"createTrack",value:function(L){var W=this.getID3Track(L.textTracks);return W.mode="hidden",W}},{key:"getID3Track",value:function(L){if(!this.media)return;for(var W=0;W<L.length;W++){var H=L[W];if(H.kind==="metadata"&&H.label==="id3")return pn(H,this.media),H}return this.media.addTextTrack("metadata","id3")}},{key:"onFragParsingMetadata",value:function(L,W){if(!this.media)return;var H=this.hls.config,Z=H.enableEmsgMetadataCues,ne=H.enableID3MetadataCues;if(!Z&&!ne)return;var ve=W.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var Te=_i(),Ve=0;Ve<ve.length;Ve++){var ot=ve[Ve].type;if(ot===Ur.emsg&&!Z||!ne)continue;var ht=Mt(ve[Ve].data);if(ht){var Qt=ve[Ve].pts,Cr=Qt+ve[Ve].duration;Cr>Gi&&(Cr=Gi);var wr=Cr-Qt;wr<=0&&(Cr=Qt+ii);for(var Kr=0;Kr<ht.length;Kr++){var Jr=ht[Kr];if(!St(Jr)){this.updateId3CueEnds(Qt,ot);var Cn=new Te(Qt,Cr,"");Cn.value=Jr,ot&&(Cn.type=ot),this.id3Track.addCue(Cn)}}}}}},{key:"updateId3CueEnds",value:function(L,W){var H,Z=(H=this.id3Track)==null?void 0:H.cues;if(Z)for(var ne=Z.length;ne--;){var ve=Z[ne];ve.type===W&&ve.startTime<L&&ve.endTime===Gi&&(ve.endTime=L)}}},{key:"onBufferFlushing",value:function(L,W){var H=W.startOffset,Z=W.endOffset,ne=W.type,ve=this.id3Track,Te=this.hls;if(!Te)return;var Ve=Te.config,ot=Ve.enableEmsgMetadataCues,ht=Ve.enableID3MetadataCues;if(ve&&(ot||ht)){var Qt;ne==="audio"?Qt=function(wr){return wr.type===Ur.audioId3&&ht}:ne==="video"?Qt=function(wr){return wr.type===Ur.emsg&&ot}:Qt=function(wr){return wr.type===Ur.audioId3&&ht||wr.type===Ur.emsg&&ot},Rr(ve,H,Z,Qt)}}},{key:"onLevelUpdated",value:function(L,W){var H=this,Z=W.details;if(!this.media||!Z.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;var ne=this.dateRangeCuesAppended,ve=this.id3Track,Te=Z.dateRanges,Ve=Object.keys(Te);if(ve)for(var ot=Object.keys(ne).filter(function(Nn){return!Ve.includes(Nn)}),ht=function(){var Jn=ot[Qt];Object.keys(ne[Jn].cues).forEach(function(bi){ve.removeCue(ne[Jn].cues[bi])}),delete ne[Jn]},Qt=ot.length;Qt--;)ht();var Cr=Z.fragments[Z.fragments.length-1];if(Ve.length===0||!T(Cr==null?void 0:Cr.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var wr=Cr.programDateTime/1e3-Cr.start,Kr=_i(),Jr=function(){var Jn=Ve[Cn],bi=Te[Jn],ua=ne[Jn],Vi=(ua==null?void 0:ua.cues)||{},Zi=(ua==null?void 0:ua.durationKnown)||!1,ka=tn(bi.startDate,wr),Ga=Gi,Ba=bi.endDate;if(Ba)Ga=tn(Ba,wr),Zi=!0;else if(bi.endOnNext&&!Zi){var Sa=Ve.reduce(function(ws,Hs){var Ee=Te[Hs];return Ee.class===bi.class&&Ee.id!==Hs&&Ee.startDate>bi.startDate&&ws.push(Ee),ws},[]).sort(function(ws,Hs){return ws.startDate.getTime()-Hs.startDate.getTime()})[0];Sa&&(Ga=tn(Sa.startDate,wr),Zi=!0)}for(var Go=Object.keys(bi.attr),bs=0;bs<Go.length;bs++){var ys=Go[bs];if(!Q(ys))continue;var Cs=Vi[ys];if(Cs)Zi&&!ua.durationKnown&&(Cs.endTime=Ga);else{var js=bi.attr[ys];Cs=new Kr(ka,Ga,""),X(ys)&&(js=Tn(js)),Cs.value={key:ys,data:js},Cs.type=Ur.dateRange,Cs.id=Jn,H.id3Track.addCue(Cs),Vi[ys]=Cs}}ne[Jn]={cues:Vi,dateRange:bi,durationKnown:Zi}},Cn=0;Cn<Ve.length;Cn++)Jr()}}]),Ae}(),Xt=function(){function Ae(q){var L=this;Object(r.a)(this,Ae),this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return L.timeupdate()},this.hls=q,this.config=q.config,this.registerListeners()}return Object(s.a)(Ae,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var L=this.config,W=this.levelDetails;return L.liveMaxLatencyDuration!==void 0?L.liveMaxLatencyDuration:W?L.liveMaxLatencyDurationCount*W.targetduration:0}},{key:"targetLatency",get:function(){var L=this.levelDetails;if(L===null)return null;var W=L.holdBack,H=L.partHoldBack,Z=L.targetduration,ne=this.config,ve=ne.liveSyncDuration,Te=ne.liveSyncDurationCount,Ve=ne.lowLatencyMode,ot=this.hls.userConfig,ht=Ve&&H||W;(ot.liveSyncDuration||ot.liveSyncDurationCount||ht===0)&&(ht=ve!==void 0?ve:Te*Z);var Qt=Z,Cr=1;return ht+Math.min(this.stallCount*Cr,Qt)}},{key:"liveSyncPosition",get:function(){var L=this.estimateLiveEdge(),W=this.targetLatency,H=this.levelDetails;if(L===null||W===null||H===null)return null;var Z=H.edge,ne=L-W-this.edgeStalled,ve=Z-H.totalduration,Te=Z-(this.config.lowLatencyMode&&H.partTarget||H.targetduration);return Math.min(Math.max(ve,ne),Te)}},{key:"drift",get:function(){var L=this.levelDetails;return L===null?1:L.drift}},{key:"edgeStalled",get:function(){var L=this.levelDetails;if(L===null)return 0;var W=(this.config.lowLatencyMode&&L.partTarget||L.targetduration)*3;return Math.max(L.age-W,0)}},{key:"forwardBufferLength",get:function(){var L=this.media,W=this.levelDetails;if(!L||!W)return 0;var H=L.buffered.length;return(H?L.buffered.end(H-1):W.edge)-this.currentTime}},{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}},{key:"registerListeners",value:function(){this.hls.on(S.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(S.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(S.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(S.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(S.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){this.hls.off(S.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(S.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(S.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(S.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(S.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(L,W){this.media=W.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}},{key:"onMediaDetaching",value:function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}},{key:"onManifestLoading",value:function(){this.levelDetails=null,this._latency=null,this.stallCount=0}},{key:"onLevelUpdated",value:function(L,W){var H=W.details;this.levelDetails=H,H.advanced&&this.timeupdate(),!H.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}},{key:"onError",value:function(L,W){var H;if(W.details!==I.BUFFER_STALLED_ERROR)return;this.stallCount++,(H=this.levelDetails)!=null&&H.live&&j.warn("[playback-rate-controller]: Stall detected, adjusting target latency")}},{key:"timeupdate",value:function(){var L=this.media,W=this.levelDetails;if(!L||!W)return;this.currentTime=L.currentTime;var H=this.computeLatency();if(H===null)return;this._latency=H;var Z=this.config,ne=Z.lowLatencyMode,ve=Z.maxLiveSyncPlaybackRate;if(!ne||ve===1)return;var Te=this.targetLatency;if(Te===null)return;var Ve=H-Te,ot=Math.min(this.maxLatency,Te+W.targetduration),ht=Ve<ot;if(W.live&&ht&&Ve>.05&&this.forwardBufferLength>1){var Qt=Math.min(2,Math.max(1,ve)),Cr=Math.round(2/(1+Math.exp(-.75*Ve-this.edgeStalled))*20)/20;L.playbackRate=Math.min(Qt,Math.max(1,Cr))}else L.playbackRate!==1&&L.playbackRate!==0&&(L.playbackRate=1)}},{key:"estimateLiveEdge",value:function(){var L=this.levelDetails;return L===null?null:L.edge+L.age}},{key:"computeLatency",value:function(){var L=this.estimateLiveEdge();return L===null?null:L-this.currentTime}}]),Ae}(),It=["NONE","TYPE-0","TYPE-1",null],Pt={No:"",Yes:"YES",v2:"v2"};function Kt(Ae,q){var L=Ae.canSkipUntil,W=Ae.canSkipDateRanges,H=Ae.endSN,Z=q!==void 0?q-H:0;return L&&Z<L?W?Pt.v2:Pt.Yes:Pt.No}var Gt=function(){function Ae(q,L,W){Object(r.a)(this,Ae),this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=q,this.part=L,this.skip=W}return Object(s.a)(Ae,[{key:"addDirectives",value:function(L){var W=new self.URL(L);return this.msn!==void 0&&W.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&W.searchParams.set("_HLS_part",this.part.toString()),this.skip&&W.searchParams.set("_HLS_skip",this.skip),W.href}}]),Ae}(),Dt=function(){function Ae(q){Object(r.a)(this,Ae),this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[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)(Ae,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"attrs",get:function(){return this._attrs[this._urlId]}},{key:"pathwayId",get:function(){return this.attrs["PATHWAY-ID"]||"."}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(L){var W=L%this.url.length;this._urlId!==W&&(this.fragmentError=0,this.loadError=0,this.details=void 0,this._urlId=W)}},{key:"audioGroupId",get:function(){var L;return(L=this.audioGroupIds)==null?void 0:L[this.urlId]}},{key:"textGroupId",get:function(){var L;return(L=this.textGroupIds)==null?void 0:L[this.urlId]}},{key:"addFallback",value:function(L){this.url.push(L.url),this._attrs.push(L.attrs)}}]),Ae}();function lr(Ae,q){var L=q.startPTS;if(T(L)){var W=0,H;q.sn>Ae.sn?(W=L-Ae.start,H=Ae):(W=Ae.start-L,H=q),H.duration!==W&&(H.duration=W)}else if(q.sn>Ae.sn){var Z=Ae.cc===q.cc;Z&&Ae.minEndPTS?q.start=Ae.start+(Ae.minEndPTS-Ae.start):q.start=Ae.start+Ae.duration}else q.start=Math.max(Ae.start-q.duration,0)}function Ar(Ae,q,L,W,H,Z){var ne=W-L;ne<=0&&(j.warn("Fragment should have a positive duration",q),W=L+q.duration,Z=H+q.duration);var ve=L,Te=W,Ve=q.startPTS,ot=q.endPTS;if(T(Ve)){var ht=Math.abs(Ve-L);T(q.deltaPTS)?q.deltaPTS=Math.max(ht,q.deltaPTS):q.deltaPTS=ht,ve=Math.max(L,Ve),L=Math.min(L,Ve),H=Math.min(H,q.startDTS),Te=Math.min(W,ot),W=Math.max(W,ot),Z=Math.max(Z,q.endDTS)}var Qt=L-q.start;q.start!==0&&(q.start=L),q.duration=W-q.start,q.startPTS=L,q.maxStartPTS=ve,q.startDTS=H,q.endPTS=W,q.minEndPTS=Te,q.endDTS=Z;var Cr=q.sn;if(!Ae||Cr<Ae.startSN||Cr>Ae.endSN)return 0;var wr,Kr=Cr-Ae.startSN,Jr=Ae.fragments;for(Jr[Kr]=q,wr=Kr;wr>0;wr--)lr(Jr[wr],Jr[wr-1]);for(wr=Kr;wr<Jr.length-1;wr++)lr(Jr[wr],Jr[wr+1]);return Ae.fragmentHint&&lr(Jr[Jr.length-1],Ae.fragmentHint),Ae.PTSKnown=Ae.alignedSliding=!0,Qt}function yr(Ae,q){for(var L=null,W=Ae.fragments,H=W.length-1;H>=0;H--){var Z=W[H].initSegment;if(Z){L=Z;break}}Ae.fragmentHint&&delete Ae.fragmentHint.endPTS;var ne=0,ve;if(Rn(Ae,q,function(wr,Kr){wr.relurl&&(ne=wr.cc-Kr.cc),T(wr.startPTS)&&T(wr.endPTS)&&(Kr.start=Kr.startPTS=wr.startPTS,Kr.startDTS=wr.startDTS,Kr.maxStartPTS=wr.maxStartPTS,Kr.endPTS=wr.endPTS,Kr.endDTS=wr.endDTS,Kr.minEndPTS=wr.minEndPTS,Kr.duration=wr.endPTS-wr.startPTS,Kr.duration&&(ve=Kr),q.PTSKnown=q.alignedSliding=!0),Kr.elementaryStreams=wr.elementaryStreams,Kr.loader=wr.loader,Kr.stats=wr.stats,Kr.urlId=wr.urlId,wr.initSegment&&(Kr.initSegment=wr.initSegment,L=wr.initSegment)}),L){var Te=q.fragmentHint?q.fragments.concat(q.fragmentHint):q.fragments;Te.forEach(function(wr){var Kr;(!wr.initSegment||wr.initSegment.relurl===((Kr=L)==null?void 0:Kr.relurl))&&(wr.initSegment=L)})}if(q.skippedSegments)if(q.deltaUpdateFailed=q.fragments.some(function(wr){return!wr}),q.deltaUpdateFailed){j.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var Ve=q.skippedSegments;Ve--;)q.fragments.shift();q.startSN=q.fragments[0].sn,q.startCC=q.fragments[0].cc}else q.canSkipDateRanges&&(q.dateRanges=Mr(Ae.dateRanges,q.dateRanges,q.recentlyRemovedDateranges));var ot=q.fragments;if(ne){j.warn("discontinuity sliding from playlist, take drift into account");for(var ht=0;ht<ot.length;ht++)ot[ht].cc+=ne}q.skippedSegments&&(q.startCC=q.fragments[0].cc),zn(Ae.partList,q.partList,function(wr,Kr){Kr.elementaryStreams=wr.elementaryStreams,Kr.stats=wr.stats}),ve?Ar(q,ve,ve.startPTS,ve.endPTS,ve.startDTS,ve.endDTS):di(Ae,q),ot.length&&(q.totalduration=q.edge-ot[0].start),q.driftStartTime=Ae.driftStartTime,q.driftStart=Ae.driftStart;var Qt=q.advancedDateTime;if(q.advanced&&Qt){var Cr=q.edge;q.driftStart||(q.driftStartTime=Qt,q.driftStart=Cr),q.driftEndTime=Qt,q.driftEnd=Cr}else q.driftEndTime=Ae.driftEndTime,q.driftEnd=Ae.driftEnd,q.advancedDateTime=Ae.advancedDateTime}function Mr(Ae,q,L){var W=E({},Ae);return L&&L.forEach(function(H){delete W[H]}),Object.keys(q).forEach(function(H){var Z=new te(q[H].attr,W[H]);Z.isValid?W[H]=Z:j.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'.concat(JSON.stringify(q[H].attr),'"'))}),W}function zn(Ae,q,L){if(Ae&&q)for(var W=0,H=0,Z=Ae.length;H<=Z;H++){var ne=Ae[H],ve=q[H+W];ne&&ve&&ne.index===ve.index&&ne.fragment.sn===ve.fragment.sn?L(ne,ve):W--}}function Rn(Ae,q,L){for(var W=q.skippedSegments,H=Math.max(Ae.startSN,q.startSN)-q.startSN,Z=(Ae.fragmentHint?1:0)+(W?q.endSN:Math.min(Ae.endSN,q.endSN))-q.startSN,ne=q.startSN-Ae.startSN,ve=q.fragmentHint?q.fragments.concat(q.fragmentHint):q.fragments,Te=Ae.fragmentHint?Ae.fragments.concat(Ae.fragmentHint):Ae.fragments,Ve=H;Ve<=Z;Ve++){var ot=Te[ne+Ve],ht=ve[Ve];W&&!ht&&Ve<W&&(ht=q.fragments[Ve]=ot),ot&&ht&&L(ot,ht)}}function di(Ae,q){var L=q.startSN+q.skippedSegments-Ae.startSN,W=Ae.fragments;if(L<0||L>=W.length)return;gn(q,W[L].start)}function gn(Ae,q){if(q){for(var L=Ae.fragments,W=Ae.skippedSegments;W<L.length;W++)L[W].start+=q;Ae.fragmentHint&&(Ae.fragmentHint.start+=q)}}function Br(Ae){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Infinity,L=1e3*Ae.targetduration;if(Ae.updated){var W=Ae.fragments,H=4;if(W.length&&L*H>q){var Z=W[W.length-1].duration*1e3;Z<L&&(L=Z)}}else L/=2;return Math.round(L)}function _n(Ae,q,L){if(!(Ae!=null&&Ae.details))return null;var W=Ae.details,H=W.fragments[q-W.startSN];return H||(H=W.fragmentHint,H&&H.sn===q?H:q<W.startSN&&L&&L.sn===q?L:null)}function Gn(Ae,q,L){var W;return Ae!=null&&Ae.details?Zn((W=Ae.details)==null?void 0:W.partList,q,L):null}function Zn(Ae,q,L){if(Ae)for(var W=Ae.length;W--;){var H=Ae[W];if(H.index===L&&H.fragment.sn===q)return H}return null}function ai(Ae){switch(Ae.details){case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_TIMEOUT:case I.LEVEL_LOAD_TIMEOUT:case I.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Ei(Ae,q){var L=ai(q);return Ae.default["".concat(L?"timeout":"error","Retry")]}function Ri(Ae,q){var L=Ae.backoff==="linear"?1:Math.pow(2,q);return Math.min(L*Ae.retryDelayMs,Ae.maxRetryDelayMs)}function Di(Ae){return b(b({},Ae),{errorRetry:null,timeoutRetry:null})}function oa(Ae,q,L,W){return!!Ae&&q<Ae.maxNumRetry&&(ma(W)||!!L)}function ma(Ae){return Ae===0&&navigator.onLine===!1||!!Ae&&(Ae<400||Ae>499)}var aa={search:function(q,L){for(var W=0,H=q.length-1,Z=null,ne=null;W<=H;){Z=(W+H)/2|0,ne=q[Z];var ve=L(ne);if(ve>0)W=Z+1;else if(ve<0)H=Z-1;else return ne}return null}};function ba(Ae,q,L){if(q===null||!Array.isArray(Ae)||!Ae.length||!T(q))return null;var W=Ae[0].programDateTime;if(q<(W||0))return null;var H=Ae[Ae.length-1].endProgramDateTime;if(q>=(H||0))return null;L=L||0;for(var Z=0;Z<Ae.length;++Z){var ne=Ae[Z];if(Bi(q,L,ne))return ne}return null}function Ai(Ae,q){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,H=null;if(Ae?H=q[Ae.sn-q[0].sn+1]||null:L===0&&q[0].start===0&&(H=q[0]),H&&Dn(L,W,H)===0)return H;var Z=aa.search(q,Dn.bind(null,L,W));return Z&&(Z!==Ae||!H)?Z:H}function Dn(){var Ae=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<=Ae&&L.start+L.duration>Ae)return 0;var W=Math.min(q,L.duration+(L.deltaPTS?L.deltaPTS:0));return L.start+L.duration-W<=Ae?1:L.start-W>Ae&&L.start?-1:0}function Bi(Ae,q,L){var W=Math.min(q,L.duration+(L.deltaPTS?L.deltaPTS:0))*1e3,H=L.endProgramDateTime||0;return H-W>Ae}function ha(Ae,q){return aa.search(Ae,function(L){return L.cc<q?1:L.cc>q?-1:0})}var ta=3e5,ra={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Ir={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4},Sr=function(){function Ae(q){Object(r.a)(this,Ae),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=q,this.log=j.log.bind(j,"[info]:"),this.warn=j.warn.bind(j,"[warning]:"),this.error=j.error.bind(j,"[error]:"),this.registerListeners()}return Object(s.a)(Ae,[{key:"registerListeners",value:function(){var L=this.hls;L.on(S.ERROR,this.onError,this),L.on(S.MANIFEST_LOADING,this.onManifestLoading,this),L.on(S.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;if(!L)return;L.off(S.ERROR,this.onError,this),L.off(S.ERROR,this.onErrorOut,this),L.off(S.MANIFEST_LOADING,this.onManifestLoading,this),L.off(S.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)===pt.MAIN?L.level:this.hls.loadLevel}},{key:"onManifestLoading",value:function(){this.playlistError=0,this.penalizedRenditions={}}},{key:"onLevelUpdated",value:function(){this.playlistError=0}},{key:"onError",value:function(L,W){var H,Z;if(W.fatal)return;var ne=this.hls,ve=W.context;switch(W.details){case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:W.errorAction=this.getFragRetryOrSwitchAction(W);return;case I.FRAG_PARSING_ERROR:if((H=W.frag)!=null&&H.gap){W.errorAction={action:ra.DoNothing,flags:Ir.None};return}case I.FRAG_GAP:case I.FRAG_DECRYPT_ERROR:{W.errorAction=this.getFragRetryOrSwitchAction(W),W.errorAction.action=ra.SendAlternateToPenaltyBox;return}case I.LEVEL_EMPTY_ERROR:case I.LEVEL_PARSING_ERROR:{var Te,Ve,ot=W.parent===pt.MAIN?W.level:ne.loadLevel;W.details===I.LEVEL_EMPTY_ERROR&&!!((Te=W.context)!=null&&(Ve=Te.levelDetails)!=null&&Ve.live)?W.errorAction=this.getPlaylistRetryOrSwitchAction(W,ot):(W.levelRetry=!1,W.errorAction=this.getLevelSwitchAction(W,ot))}return;case I.LEVEL_LOAD_ERROR:case I.LEVEL_LOAD_TIMEOUT:typeof(ve==null?void 0:ve.level)=="number"&&(W.errorAction=this.getPlaylistRetryOrSwitchAction(W,ve.level));return;case I.AUDIO_TRACK_LOAD_ERROR:case I.AUDIO_TRACK_LOAD_TIMEOUT:case I.SUBTITLE_LOAD_ERROR:case I.SUBTITLE_TRACK_LOAD_TIMEOUT:if(ve){var ht=ne.levels[ne.loadLevel];if(ht&&(ve.type===xt.AUDIO_TRACK&&ve.groupId===ht.audioGroupId||ve.type===xt.SUBTITLE_TRACK&&ve.groupId===ht.textGroupId)){W.errorAction=this.getPlaylistRetryOrSwitchAction(W,ne.loadLevel),W.errorAction.action=ra.SendAlternateToPenaltyBox,W.errorAction.flags=Ir.MoveAllAlternatesMatchingHost;return}}return;case I.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{var Qt=ne.levels[ne.loadLevel],Cr=Qt==null?void 0:Qt.attrs["HDCP-LEVEL"];Cr&&(W.errorAction={action:ra.SendAlternateToPenaltyBox,flags:Ir.MoveAllAlternatesMatchingHDCP,hdcpLevel:Cr})}return;case I.BUFFER_ADD_CODEC_ERROR:case I.REMUX_ALLOC_ERROR:W.errorAction=this.getLevelSwitchAction(W,(Z=W.level)!=null?Z:ne.loadLevel);return;case I.INTERNAL_EXCEPTION:case I.BUFFER_APPENDING_ERROR:case I.BUFFER_APPEND_ERROR:case I.BUFFER_FULL_ERROR:case I.LEVEL_SWITCH_ERROR:case I.BUFFER_STALLED_ERROR:case I.BUFFER_SEEK_OVER_HOLE:case I.BUFFER_NUDGE_ON_STALL:W.errorAction={action:ra.DoNothing,flags:Ir.None};return}if(W.type===O.KEY_SYSTEM_ERROR){var wr=this.getVariantLevelIndex(W.frag);W.levelRetry=!1,W.errorAction=this.getLevelSwitchAction(W,wr);return}}},{key:"getPlaylistRetryOrSwitchAction",value:function(L,W){var H,Z=this.hls,ne=Ei(Z.config.playlistLoadPolicy,L),ve=this.playlistError++,Te=(H=L.response)==null?void 0:H.code,Ve=oa(ne,ve,ai(L),Te);if(Ve)return{action:ra.RetryRequest,flags:Ir.None,retryConfig:ne,retryCount:ve};var ot=this.getLevelSwitchAction(L,W);return ne&&(ot.retryConfig=ne,ot.retryCount=ve),ot}},{key:"getFragRetryOrSwitchAction",value:function(L){var W=this.hls,H=this.getVariantLevelIndex(L.frag),Z=W.levels[H],ne=W.config,ve=ne.fragLoadPolicy,Te=ne.keyLoadPolicy,Ve=Ei(L.details.startsWith("key")?Te:ve,L),ot=W.levels.reduce(function(Kr,Jr){return Kr+Jr.fragmentError},0);if(Z){var ht;L.details!==I.FRAG_GAP&&Z.fragmentError++;var Qt=(ht=L.response)==null?void 0:ht.code,Cr=oa(Ve,ot,ai(L),Qt);if(Cr)return{action:ra.RetryRequest,flags:Ir.None,retryConfig:Ve,retryCount:ot}}var wr=this.getLevelSwitchAction(L,H);return Ve&&(wr.retryConfig=Ve,wr.retryCount=ot),wr}},{key:"getLevelSwitchAction",value:function(L,W){var H=this.hls;W==null&&(W=H.loadLevel);var Z=this.hls.levels[W];if(Z&&(Z.loadError++,H.autoLevelEnabled)){for(var ne,ve,Te=-1,Ve=H.levels,ot=H.loadLevel,ht=H.minAutoLevel,Qt=H.maxAutoLevel,Cr=(ne=L.frag)==null?void 0:ne.type,wr=(ve=L.context)!=null?ve:{},Kr=wr.type,Jr=wr.groupId,Cn=Ve.length;Cn--;){var Nn=(Cn+ot)%Ve.length;if(Nn!==ot&&Nn>=ht&&Nn<=Qt&&Ve[Nn].loadError===0){var Jn=Ve[Nn];if(L.details===I.FRAG_GAP&&L.frag){var bi=Ve[Nn].details;if(bi){var ua=Ai(L.frag,bi.fragments,L.frag.start);if(ua!=null&&ua.gap)continue}}else{if(Kr===xt.AUDIO_TRACK&&Jr===Jn.audioGroupId||Kr===xt.SUBTITLE_TRACK&&Jr===Jn.textGroupId)continue;if(Cr===pt.AUDIO&&Z.audioGroupId===Jn.audioGroupId||Cr===pt.SUBTITLE&&Z.textGroupId===Jn.textGroupId)continue}Te=Nn;break}}if(Te>-1&&H.loadLevel!==Te)return L.levelRetry=!0,this.playlistError=0,{action:ra.SendAlternateToPenaltyBox,flags:Ir.None,nextAutoLevel:Te}}return{action:ra.SendAlternateToPenaltyBox,flags:Ir.MoveAllAlternatesMatchingHost}}},{key:"onErrorOut",value:function(L,W){var H;switch((H=W.errorAction)==null?void 0:H.action){case ra.DoNothing:break;case ra.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(W),!W.errorAction.resolved&&W.details!==I.FRAG_GAP&&(W.fatal=!0);break}if(W.fatal){this.hls.stopLoad();return}}},{key:"sendAlternateToPenaltyBox",value:function(L){var W=this.hls,H=L.errorAction;if(!H)return;var Z=H.flags,ne=H.hdcpLevel,ve=H.nextAutoLevel;switch(Z){case Ir.None:this.switchLevel(L,ve);break;case Ir.MoveAllAlternatesMatchingHost:H.resolved||(H.resolved=this.redundantFailover(L));break;case Ir.MoveAllAlternatesMatchingHDCP:ne&&(W.maxHdcpLevel=It[It.indexOf(ne)-1],H.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'.concat(W.maxHdcpLevel,'" or lower'));break}H.resolved||this.switchLevel(L,ve)}},{key:"switchLevel",value:function(L,W){W!==void 0&&L.errorAction&&(this.warn("switching to level ".concat(W," after ").concat(L.details)),this.hls.nextAutoLevel=W,L.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}},{key:"redundantFailover",value:function(L){var W=this,H=this.hls,Z=this.penalizedRenditions,ne=L.parent===pt.MAIN?L.level:H.loadLevel,ve=H.levels[ne],Te=ve.url.length,Ve=L.frag?L.frag.urlId:ve.urlId;ve.urlId===Ve&&(!L.frag||ve.details)&&this.penalizeRendition(ve,L);for(var ot=function(){var wr=(Ve+Qt)%Te,Kr=Z[wr];if(!Kr||En(Kr,L,Z[Ve]))return W.warn("Switching to Redundant Stream ".concat(wr+1,"/").concat(Te,': "').concat(ve.url[wr],'" after ').concat(L.details)),W.playlistError=0,H.levels.forEach(function(Jr){Jr.urlId=wr}),H.nextLoadLevel=ne,{v:!0}},ht,Qt=1;Qt<Te;Qt++)if(ht=ot(),ht)return ht.v;return!1}},{key:"penalizeRendition",value:function(L,W){var H=this.penalizedRenditions,Z=H[L.urlId]||{lastErrorPerfMs:0,errors:[],details:void 0};Z.lastErrorPerfMs=performance.now(),Z.errors.push(W),Z.details=L.details,H[L.urlId]=Z}}]),Ae}();function En(Ae,q,L){if(performance.now()-Ae.lastErrorPerfMs>ta)return!0;var W=Ae.details;if(q.details===I.FRAG_GAP&&W&&q.frag){var H=q.frag.start,Z=Ai(null,W.fragments,H);if(Z&&!Z.gap)return!0}if(L&&Ae.errors.length<L.errors.length){var ne=Ae.errors[Ae.errors.length-1];if(W&&ne.frag&&q.frag&&Math.abs(ne.frag.start-q.frag.start)>W.targetduration*3)return!0}return!1}var fr=function(){function Ae(q,L){Object(r.a)(this,Ae),this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=j.log.bind(j,"".concat(L,":")),this.warn=j.warn.bind(j,"".concat(L,":")),this.hls=q}return Object(s.a)(Ae,[{key:"destroy",value:function(){this.clearTimer(),this.hls=this.log=this.warn=null}},{key:"clearTimer",value:function(){clearTimeout(this.timer),this.timer=-1}},{key:"startLoad",value:function(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}},{key:"stopLoad",value:function(){this.canLoad=!1,this.clearTimer()}},{key:"switchParams",value:function(L,W){var H=W==null?void 0:W.renditionReports;if(H){for(var Z=-1,ne=0;ne<H.length;ne++){var ve=H[ne],Te=void 0;try{Te=new self.URL(ve.URI,W.url).href}catch(Cr){j.warn("Could not construct new URL for Rendition Report: ".concat(Cr)),Te=ve.URI||""}if(Te===L){Z=ne;break}else Te===L.substring(0,Te.length)&&(Z=ne)}if(Z!==-1){var Ve=H[Z],ot=parseInt(Ve["LAST-MSN"])||(W==null?void 0:W.lastPartSn),ht=parseInt(Ve["LAST-PART"])||(W==null?void 0:W.lastPartIndex);if(this.hls.config.lowLatencyMode){var Qt=Math.min(W.age-W.partTarget,W.targetduration);ht>=0&&Qt>W.partTarget&&(ht+=1)}return new Gt(ot,ht>=0?ht:void 0,Pt.No)}}}},{key:"loadPlaylist",value:function(L){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}},{key:"shouldLoadPlaylist",value:function(L){return this.canLoad&&!!L&&!!L.url&&(!L.details||L.details.live)}},{key:"shouldReloadPlaylist",value:function(L){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(L)}},{key:"playlistLoaded",value:function(L,W,H){var Z=this,ne=W.details,ve=W.stats,Te=self.performance.now(),Ve=ve.loading.first?Math.max(0,Te-ve.loading.first):0;if(ne.advancedDateTime=Date.now()-Ve,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&&yr(H,ne),!this.canLoad||!ne.live)return;var ot,ht=void 0,Qt=void 0;if(ne.canBlockReload&&ne.endSN&&ne.advanced){var Cr=this.hls.config.lowLatencyMode,wr=ne.lastPartSn,Kr=ne.endSN,Jr=ne.lastPartIndex,Cn=Jr!==-1,Nn=wr===Kr,Jn=Cr?0:Jr;Cn?(ht=Nn?Kr+1:wr,Qt=Nn?Jn:Jr+1):ht=Kr+1;var bi=ne.age,ua=bi+ne.ageHeader,Vi=Math.min(ua-ne.partTarget,ne.targetduration*1.5);if(Vi>0){if(H&&Vi>H.tuneInGoal)this.warn("CDN Tune-in goal increased from: ".concat(H.tuneInGoal," to: ").concat(Vi," with playlist age: ").concat(ne.age)),Vi=0;else{var Zi=Math.floor(Vi/ne.targetduration);if(ht+=Zi,Qt!==void 0){var ka=Math.round(Vi%ne.targetduration/ne.partTarget);Qt+=ka}this.log("CDN Tune-in age: ".concat(ne.ageHeader,"s last advanced ").concat(bi.toFixed(2),"s goal: ").concat(Vi," skip sn ").concat(Zi," to part ").concat(Qt))}ne.tuneInGoal=Vi}if(ot=this.getDeliveryDirectives(ne,W.deliveryDirectives,ht,Qt),Cr||!Nn){this.loadPlaylist(ot);return}}else(ne.canBlockReload||ne.canSkipUntil)&&(ot=this.getDeliveryDirectives(ne,W.deliveryDirectives,ht,Qt));var Ga=this.hls.mainForwardBufferInfo,Ba=Ga?Ga.end-Ga.len:0,Sa=(ne.edge-Ba)*1e3,Go=Br(ne,Sa);ne.updated&&Te>this.requestScheduled+Go&&(this.requestScheduled=ve.loading.start),ht!==void 0&&ne.canBlockReload?this.requestScheduled=ve.loading.first+Go-(ne.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+Go<Te?this.requestScheduled=Te:this.requestScheduled-Te<=0&&(this.requestScheduled+=Go);var bs=this.requestScheduled-Te;bs=Math.max(0,bs),this.log("reload live playlist ".concat(L," in ").concat(Math.round(bs)," ms")),this.timer=self.setTimeout(function(){return Z.loadPlaylist(ot)},bs)}else this.clearTimer()}},{key:"getDeliveryDirectives",value:function(L,W,H,Z){var ne=Kt(L,H);return W!=null&&W.skip&&L.deltaUpdateFailed&&(H=W.msn,Z=W.part,ne=Pt.No),new Gt(H,Z,ne)}},{key:"checkRetry",value:function(L){var W=this,H=L.details,Z=ai(L),ne=L.errorAction,ve=ne||{},Te=ve.action,Ve=ve.retryCount,ot=Ve===void 0?0:Ve,ht=ve.retryConfig,Qt=!!ne&&!!ht&&(Te===ra.RetryRequest||!ne.resolved&&Te===ra.SendAlternateToPenaltyBox);if(Qt){var Cr;if(this.requestScheduled=-1,ot>=ht.maxNumRetry)return!1;if(Z&&(Cr=L.context)!=null&&Cr.deliveryDirectives)this.warn("Retrying playlist loading ".concat(ot+1,"/").concat(ht.maxNumRetry,' after "').concat(H,'" without delivery-directives')),this.loadPlaylist();else{var wr=Ri(ht,ot);this.timer=self.setTimeout(function(){return W.loadPlaylist()},wr),this.warn("Retrying playlist loading ".concat(ot+1,"/").concat(ht.maxNumRetry,' after "').concat(H,'" in ').concat(wr,"ms"))}L.levelRetry=!0,ne.resolved=!0}return Qt}}]),Ae}(),kr,Vr=function(Ae){Object(a.a)(L,Ae);var q=Object(e.a)(L);function L(W,H){var Z;return Object(r.a)(this,L),Z=q.call(this,W,"[level-controller]"),Z._levels=[],Z._firstLevel=-1,Z._startLevel=void 0,Z.currentLevel=null,Z.currentLevelIndex=-1,Z.manualLevelIndex=-1,Z.steering=void 0,Z.onParsedComplete=void 0,Z.steering=H,Z._registerListeners(),Z}return Object(s.a)(L,[{key:"_registerListeners",value:function(){var H=this.hls;H.on(S.MANIFEST_LOADING,this.onManifestLoading,this),H.on(S.MANIFEST_LOADED,this.onManifestLoaded,this),H.on(S.LEVEL_LOADED,this.onLevelLoaded,this),H.on(S.LEVELS_UPDATED,this.onLevelsUpdated,this),H.on(S.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.on(S.FRAG_LOADED,this.onFragLoaded,this),H.on(S.ERROR,this.onError,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(S.MANIFEST_LOADING,this.onManifestLoading,this),H.off(S.MANIFEST_LOADED,this.onManifestLoaded,this),H.off(S.LEVEL_LOADED,this.onLevelLoaded,this),H.off(S.LEVELS_UPDATED,this.onLevelsUpdated,this),H.off(S.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.off(S.FRAG_LOADED,this.onFragLoaded,this),H.off(S.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(Z){Z.loadError=0,Z.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,Z){this.resetLevels()}},{key:"onManifestLoaded",value:function(H,Z){var ne=[],ve={},Te;Z.levels.forEach(function(Ve){var ot,ht=Ve.attrs;((ot=Ve.audioCodec)==null?void 0:ot.indexOf("mp4a.40.34"))!==-1&&(kr||(kr=/chrome|firefox/i.test(navigator.userAgent)),kr&&(Ve.audioCodec=void 0));var Qt=ht.AUDIO,Cr=ht.CODECS,wr=ht["FRAME-RATE"],Kr=ht["PATHWAY-ID"],Jr=ht.RESOLUTION,Cn=ht.SUBTITLES,Nn="".concat(Kr||".","-"),Jn="".concat(Nn).concat(Ve.bitrate,"-").concat(Jr,"-").concat(wr,"-").concat(Cr);Te=ve[Jn],Te?Te.addFallback(Ve):(Te=new Dt(Ve),ve[Jn]=Te,ne.push(Te)),un(Te,"audio",Qt),un(Te,"text",Cn)}),this.filterAndSortMediaOptions(ne,Z)}},{key:"filterAndSortMediaOptions",value:function(H,Z){var ne=this,ve=[],Te=[],Ve=!1,ot=!1,ht=!1,Qt=H.filter(function(Jn){var bi=Jn.audioCodec,ua=Jn.videoCodec,Vi=Jn.width,Zi=Jn.height,ka=Jn.unknownCodecs;return Ve||(Ve=!!(Vi&&Zi)),ot||(ot=!!ua),ht||(ht=!!bi),!(ka!=null&&ka.length)&&(!bi||cn(bi,"audio"))&&(!ua||cn(ua,"video"))});if((Ve||ot)&&ht&&(Qt=Qt.filter(function(Jn){var bi=Jn.videoCodec,ua=Jn.width,Vi=Jn.height;return!!bi||!!(ua&&Vi)})),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(S.ERROR,{type:O.MEDIA_ERROR,details:I.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:Z.url,error:Jn,reason:Jn.message})}});return}Z.audioTracks&&(ve=Z.audioTracks.filter(function(Jn){return!Jn.audioCodec||cn(Jn.audioCodec,"audio")}),kn(ve)),Z.subtitles&&(Te=Z.subtitles,kn(Te));var Cr=Qt.slice(0);Qt.sort(function(Jn,bi){return Jn.attrs["HDCP-LEVEL"]!==bi.attrs["HDCP-LEVEL"]?(Jn.attrs["HDCP-LEVEL"]||"")>(bi.attrs["HDCP-LEVEL"]||"")?1:-1:Jn.bitrate!==bi.bitrate?Jn.bitrate-bi.bitrate:Jn.attrs["FRAME-RATE"]!==bi.attrs["FRAME-RATE"]?Jn.attrs.decimalFloatingPoint("FRAME-RATE")-bi.attrs.decimalFloatingPoint("FRAME-RATE"):Jn.attrs.SCORE!==bi.attrs.SCORE?Jn.attrs.decimalFloatingPoint("SCORE")-bi.attrs.decimalFloatingPoint("SCORE"):Ve&&Jn.height!==bi.height?Jn.height-bi.height:0});var wr=Cr[0];if(this.steering&&(Qt=this.steering.filterParsedLevels(Qt),Qt.length!==Cr.length)){for(var Kr=0;Kr<Cr.length;Kr++)if(Cr[Kr].pathwayId===Qt[0].pathwayId){wr=Cr[Kr];break}}this._levels=Qt;for(var Jr=0;Jr<Qt.length;Jr++)if(Qt[Jr]===wr){this._firstLevel=Jr,this.log("manifest loaded, ".concat(Qt.length," level(s) found, first bitrate: ").concat(wr.bitrate));break}var Cn=ht&&!ot,Nn={levels:Qt,audioTracks:ve,subtitleTracks:Te,sessionData:Z.sessionData,sessionKeys:Z.sessionKeys,firstLevel:this._firstLevel,stats:Z.stats,audio:ht,video:ot,altAudio:!Cn&&ve.some(function(Jn){return!!Jn.url})};this.hls.trigger(S.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 Z=this._levels;if(Z.length===0)return;if(H<0||H>=Z.length){var ne=new Error("invalid level idx"),ve=H<0;if(this.hls.trigger(S.ERROR,{type:O.OTHER_ERROR,details:I.LEVEL_SWITCH_ERROR,level:H,fatal:ve,error:ne,reason:ne.message}),ve)return;H=Math.min(H,Z.length-1)}var Te=this.currentLevelIndex,Ve=this.currentLevel,ot=Ve?Ve.attrs["PATHWAY-ID"]:void 0,ht=Z[H],Qt=ht.attrs["PATHWAY-ID"];if(this.currentLevelIndex=H,this.currentLevel=ht,Te===H&&ht.details&&Ve&&ot===Qt)return;this.log("Switching to level ".concat(H).concat(Qt?" with Pathway "+Qt:""," from level ").concat(Te).concat(ot?" with Pathway "+ot:""));var Cr=E({},ht,{level:H,maxBitrate:ht.maxBitrate,attrs:ht.attrs,uri:ht.uri,urlId:ht.urlId});delete Cr._attrs,delete Cr._urlId,this.hls.trigger(S.LEVEL_SWITCHING,Cr);var wr=ht.details;if(!wr||wr.live){var Kr=this.switchParams(ht.uri,Ve==null?void 0:Ve.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,Z){if(Z.fatal||!Z.context)return;Z.context.type===xt.LEVEL&&Z.context.level===this.level&&this.checkRetry(Z)}},{key:"onFragLoaded",value:function(H,Z){var ne=Z.frag;if(ne!==void 0&&ne.type===pt.MAIN){var ve=this._levels[ne.level];ve!==void 0&&(ve.loadError=0)}}},{key:"onLevelLoaded",value:function(H,Z){var ne,ve=Z.level,Te=Z.details,Ve=this._levels[ve];if(!Ve){var ot;this.warn("Invalid level index ".concat(ve)),(ot=Z.deliveryDirectives)!=null&&ot.skip&&(Te.deltaUpdateFailed=!0);return}ve===this.currentLevelIndex?(Ve.fragmentError===0&&(Ve.loadError=0),this.playlistLoaded(ve,Z,Ve.details)):(ne=Z.deliveryDirectives)!=null&&ne.skip&&(Te.deltaUpdateFailed=!0)}},{key:"onAudioTrackSwitched",value:function(H,Z){var ne=this.currentLevel;if(!ne)return;var ve=this.hls.audioTracks[Z.id].groupId;if(ne.audioGroupIds&&ne.audioGroupId!==ve){for(var Te=-1,Ve=0;Ve<ne.audioGroupIds.length;Ve++)if(ne.audioGroupIds[Ve]===ve){Te=Ve;break}Te!==-1&&Te!==ne.urlId&&(ne.urlId=Te,this.canLoad&&this.startLoad())}}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var Z=this.currentLevelIndex,ne=this.currentLevel;if(ne&&this.shouldLoadPlaylist(ne)){var ve=ne.urlId,Te=ne.uri;if(H)try{Te=H.addDirectives(Te)}catch(ot){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(ot))}var Ve=ne.attrs["PATHWAY-ID"];this.log("Loading level index ".concat(Z).concat((H==null?void 0:H.msn)!==void 0?" at sn "+H.msn+" part "+H.part:""," with").concat(Ve?" Pathway "+Ve:""," URI ").concat(ve+1,"/").concat(ne.url.length," ").concat(Te)),this.clearTimer(),this.hls.trigger(S.LEVEL_LOADING,{url:Te,level:Z,id:ve,deliveryDirectives:H||null})}}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(H){this.level=H,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=H)}},{key:"removeLevel",value:function(H,Z){var ne=this,ve=function(ot,ht){return ht!==Z},Te=this._levels.filter(function(Ve,ot){return ot!==H?!0:Ve.url.length>1&&Z!==void 0?(Ve.url=Ve.url.filter(ve),Ve.audioGroupIds&&(Ve.audioGroupIds=Ve.audioGroupIds.filter(ve)),Ve.textGroupIds&&(Ve.textGroupIds=Ve.textGroupIds.filter(ve)),Ve.urlId=0,!0):(ne.steering&&ne.steering.removeLevel(Ve),!1)});this.hls.trigger(S.LEVELS_UPDATED,{levels:Te})}},{key:"onLevelsUpdated",value:function(H,Z){var ne=Z.levels;ne.forEach(function(ve,Te){var Ve=ve.details;Ve!=null&&Ve.fragments&&Ve.fragments.forEach(function(ot){ot.level=Te})}),this._levels=ne}}]),L}(fr);function un(Ae,q,L){if(!L)return;q==="audio"?(Ae.audioGroupIds||(Ae.audioGroupIds=[]),Ae.audioGroupIds[Ae.url.length-1]=L):q==="text"&&(Ae.textGroupIds||(Ae.textGroupIds=[]),Ae.textGroupIds[Ae.url.length-1]=L)}function kn(Ae){var q={};Ae.forEach(function(L){var W=L.groupId||"";L.id=q[W]=q[W]||0,q[W]++})}var _t={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"},Or=function(){function Ae(q){Object(r.a)(this,Ae),this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=q,this._registerListeners()}return Object(s.a)(Ae,[{key:"_registerListeners",value:function(){var L=this.hls;L.on(S.BUFFER_APPENDED,this.onBufferAppended,this),L.on(S.FRAG_BUFFERED,this.onFragBuffered,this),L.on(S.FRAG_LOADED,this.onFragLoaded,this)}},{key:"_unregisterListeners",value:function(){var L=this.hls;L.off(S.BUFFER_APPENDED,this.onBufferAppended,this),L.off(S.FRAG_BUFFERED,this.onFragBuffered,this),L.off(S.FRAG_LOADED,this.onFragLoaded,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}},{key:"getAppendedFrag",value:function(L,W){var H=this.activePartLists[W];if(H)for(var Z=H.length;Z--;){var ne=H[Z];if(!ne)break;var ve=ne.end;if(ne.start<=L&&ve!==null&&L<=ve)return ne}return this.getBufferedFrag(L,W)}},{key:"getBufferedFrag",value:function(L,W){for(var H=this.fragments,Z=Object.keys(H),ne=Z.length;ne--;){var ve=H[Z[ne]];if((ve==null?void 0:ve.body.type)===W&&ve.buffered){var Te=ve.body;if(Te.start<=L&&L<=Te.end)return Te}}return null}},{key:"detectEvictedFragments",value:function(L,W,H,Z){var ne=this;this.timeRanges&&(this.timeRanges[L]=W);var ve=(Z==null?void 0:Z.fragment.sn)||-1;Object.keys(this.fragments).forEach(function(Te){var Ve=ne.fragments[Te];if(!Ve)return;if(ve>=Ve.body.sn)return;if(!Ve.buffered&&!Ve.loaded){Ve.body.type===H&&ne.removeFragment(Ve.body);return}var ot=Ve.range[L];if(!ot)return;ot.time.some(function(ht){var Qt=!ne.isTimeBuffered(ht.startPTS,ht.endPTS,W);return Qt&&ne.removeFragment(Ve.body),Qt})})}},{key:"detectPartialFragments",value:function(L){var W=this,H=this.timeRanges,Z=L.frag,ne=L.part;if(!H||Z.sn==="initSegment")return;var ve=en(Z),Te=this.fragments[ve];if(!Te||Te.buffered&&Z.gap)return;var Ve=!Z.relurl;if(Object.keys(H).forEach(function(ht){var Qt=Z.elementaryStreams[ht];if(!Qt)return;var Cr=H[ht],wr=Ve||Qt.partial===!0;Te.range[ht]=W.getBufferedTimes(Z,ne,wr,Cr)}),Te.loaded=null,Object.keys(Te.range).length){Te.buffered=!0;var ot=Te.body.endList=Z.endList||Te.body.endList;ot&&(this.endListFragments[Te.body.type]=Te),Lr(Te)||this.removeParts(Z.sn-1,Z.type)}else this.removeFragment(Te.body)}},{key:"removeParts",value:function(L,W){var H=this.activePartLists[W];if(!H)return;this.activePartLists[W]=H.filter(function(Z){return Z.fragment.sn>=L})}},{key:"fragBuffered",value:function(L,W){var H=en(L),Z=this.fragments[H];!Z&&W&&(Z=this.fragments[H]={body:L,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},L.gap&&(this.hasGaps=!0)),Z&&(Z.loaded=null,Z.buffered=!0)}},{key:"getBufferedTimes",value:function(L,W,H,Z){for(var ne={time:[],partial:H},ve=L.start,Te=L.end,Ve=L.minEndPTS||Te,ot=L.maxStartPTS||ve,ht=0;ht<Z.length;ht++){var Qt=Z.start(ht)-this.bufferPadding,Cr=Z.end(ht)+this.bufferPadding;if(ot>=Qt&&Ve<=Cr){ne.time.push({startPTS:Math.max(ve,Z.start(ht)),endPTS:Math.min(Te,Z.end(ht))});break}else if(ve<Cr&&Te>Qt)ne.partial=!0,ne.time.push({startPTS:Math.max(ve,Z.start(ht)),endPTS:Math.min(Te,Z.end(ht))});else if(Te<=Qt)break}return ne}},{key:"getPartialFragment",value:function(L){var W=null,H,Z,ne,ve=0,Te=this.bufferPadding,Ve=this.fragments;return Object.keys(Ve).forEach(function(ot){var ht=Ve[ot];if(!ht)return;Lr(ht)&&(Z=ht.body.start-Te,ne=ht.body.end+Te,L>=Z&&L<=ne&&(H=Math.min(L-Z,ne-L),ve<=H&&(W=ht.body,ve=H)))}),W}},{key:"isEndListAppended",value:function(L){var W=this.endListFragments[L];return W!==void 0&&(W.buffered||Lr(W))}},{key:"getState",value:function(L){var W=en(L),H=this.fragments[W];return H?H.buffered?Lr(H)?_t.PARTIAL:_t.OK:_t.APPENDING:_t.NOT_LOADED}},{key:"isTimeBuffered",value:function(L,W,H){for(var Z,ne,ve=0;ve<H.length;ve++){if(Z=H.start(ve)-this.bufferPadding,ne=H.end(ve)+this.bufferPadding,L>=Z&&W<=ne)return!0;if(W<=Z)return!1}return!1}},{key:"onFragLoaded",value:function(L,W){var H=W.frag,Z=W.part;if(H.sn==="initSegment"||H.bitrateTest)return;var ne=Z?null:W,ve=en(H);this.fragments[ve]={body:H,appendedPTS:null,loaded:ne,buffered:!1,range:Object.create(null)}}},{key:"onBufferAppended",value:function(L,W){var H=this,Z=W.frag,ne=W.part,ve=W.timeRanges;if(Z.sn==="initSegment")return;var Te=Z.type;if(ne){var Ve=this.activePartLists[Te];Ve||(this.activePartLists[Te]=Ve=[]),Ve.push(ne)}this.timeRanges=ve,Object.keys(ve).forEach(function(ot){var ht=ve[ot];H.detectEvictedFragments(ot,ht,Te,ne)})}},{key:"onFragBuffered",value:function(L,W){this.detectPartialFragments(W)}},{key:"hasFragment",value:function(L){var W=en(L);return!!this.fragments[W]}},{key:"hasParts",value:function(L){var W;return!!((W=this.activePartLists[L])!=null&&W.length)}},{key:"removeFragmentsInRange",value:function(L,W,H,Z,ne){var ve=this;if(Z&&!this.hasGaps)return;Object.keys(this.fragments).forEach(function(Te){var Ve=ve.fragments[Te];if(!Ve)return;var ot=Ve.body;if(ot.type!==H||Z&&!ot.gap)return;ot.start<W&&ot.end>L&&(Ve.buffered||ne)&&ve.removeFragment(ot)})}},{key:"removeFragment",value:function(L){var W=en(L);L.stats.loaded=0,L.clearElementaryStreamInfo();var H=this.activePartLists[L.type];if(H){var Z=L.sn;this.activePartLists[L.type]=H.filter(function(ne){return ne.fragment.sn!==Z})}delete this.fragments[W],L.endList&&delete this.endListFragments[L.type]}},{key:"removeAllFragments",value:function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}]),Ae}();function Lr(Ae){var q,L,W;return Ae.buffered&&(Ae.body.gap||((q=Ae.range.video)==null?void 0:q.partial)||((L=Ae.range.audio)==null?void 0:L.partial)||((W=Ae.range.audiovideo)==null?void 0:W.partial))}function en(Ae){return"".concat(Ae.type,"_").concat(Ae.level,"_").concat(Ae.urlId,"_").concat(Ae.sn)}var Sn=Math.pow(2,17),On=function(){function Ae(q){Object(r.a)(this,Ae),this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=q}return Object(s.a)(Ae,[{key:"destroy",value:function(){this.loader&&(this.loader.destroy(),this.loader=null)}},{key:"abort",value:function(){this.loader&&this.loader.abort()}},{key:"load",value:function(L,W){var H=this,Z=L.url;if(!Z)return Promise.reject(new jn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,error:new Error("Fragment does not have a ".concat(Z?"part list":"url")),networkDetails:null}));this.abort();var ne=this.config,ve=ne.fLoader,Te=ne.loader;return new Promise(function(Ve,ot){if(H.loader&&H.loader.destroy(),L.gap)if(L.tagList.some(function(Kr){return Kr[0]==="GAP"})){ot($n(L));return}else L.gap=!1;var ht=H.loader=L.loader=ve?new ve(ne):new Te(ne),Qt=wn(L),Cr=Di(ne.fragLoadPolicy.default),wr={loadPolicy:Cr,timeout:Cr.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:L.sn==="initSegment"?Infinity:Sn};L.stats=ht.stats,ht.load(Qt,wr,{onSuccess:function(Jr,Cn,Nn,Jn){H.resetLoader(L,ht);var bi=Jr.data;Nn.resetIV&&L.decryptdata&&(L.decryptdata.iv=new Uint8Array(bi.slice(0,16)),bi=bi.slice(16)),Ve({frag:L,part:null,payload:bi,networkDetails:Jn})},onError:function(Jr,Cn,Nn,Jn){H.resetLoader(L,ht),ot(new jn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,response:b({url:Z,data:void 0},Jr),error:new Error("HTTP Error ".concat(Jr.code," ").concat(Jr.text)),networkDetails:Nn,stats:Jn}))},onAbort:function(Jr,Cn,Nn){H.resetLoader(L,ht),ot(new jn({type:O.NETWORK_ERROR,details:I.INTERNAL_ABORTED,fatal:!1,frag:L,error:new Error("Aborted"),networkDetails:Nn,stats:Jr}))},onTimeout:function(Jr,Cn,Nn){H.resetLoader(L,ht),ot(new jn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_TIMEOUT,fatal:!1,frag:L,error:new Error("Timeout after ".concat(wr.timeout,"ms")),networkDetails:Nn,stats:Jr}))},onProgress:function(Jr,Cn,Nn,Jn){W&&W({frag:L,part:null,payload:Nn,networkDetails:Jn})}})})}},{key:"loadPart",value:function(L,W,H){var Z=this;this.abort();var ne=this.config,ve=ne.fLoader,Te=ne.loader;return new Promise(function(Ve,ot){if(Z.loader&&Z.loader.destroy(),L.gap||W.gap){ot($n(L,W));return}var ht=Z.loader=L.loader=ve?new ve(ne):new Te(ne),Qt=wn(L,W),Cr=Di(ne.fragLoadPolicy.default),wr={loadPolicy:Cr,timeout:Cr.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Sn};W.stats=ht.stats,ht.load(Qt,wr,{onSuccess:function(Jr,Cn,Nn,Jn){Z.resetLoader(L,ht),Z.updateStatsFromPart(L,W);var bi={frag:L,part:W,payload:Jr.data,networkDetails:Jn};H(bi),Ve(bi)},onError:function(Jr,Cn,Nn,Jn){Z.resetLoader(L,ht),ot(new jn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,part:W,response:b({url:Qt.url,data:void 0},Jr),error:new Error("HTTP Error ".concat(Jr.code," ").concat(Jr.text)),networkDetails:Nn,stats:Jn}))},onAbort:function(Jr,Cn,Nn){L.stats.aborted=W.stats.aborted,Z.resetLoader(L,ht),ot(new jn({type:O.NETWORK_ERROR,details:I.INTERNAL_ABORTED,fatal:!1,frag:L,part:W,error:new Error("Aborted"),networkDetails:Nn,stats:Jr}))},onTimeout:function(Jr,Cn,Nn){Z.resetLoader(L,ht),ot(new jn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_TIMEOUT,fatal:!1,frag:L,part:W,error:new Error("Timeout after ".concat(wr.timeout,"ms")),networkDetails:Nn,stats:Jr}))}})})}},{key:"updateStatsFromPart",value:function(L,W){var H=L.stats,Z=W.stats,ne=Z.total;if(H.loaded+=Z.loaded,ne){var ve=Math.round(L.duration/W.duration),Te=Math.min(Math.round(H.loaded/ne),ve),Ve=ve-Te,ot=Ve*Math.round(H.loaded/Te);H.total=H.loaded+ot}else H.total=Math.max(H.loaded,H.total);var ht=H.loading,Qt=Z.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,W){L.loader=null,this.loader===W&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),W.destroy()}}]),Ae}();function wn(Ae){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,L=q||Ae,W={frag:Ae,part:q,responseType:"arraybuffer",url:L.url,headers:{},rangeStart:0,rangeEnd:0},H=L.byteRangeStartOffset,Z=L.byteRangeEndOffset;if(T(H)&&T(Z)){var ne,ve=H,Te=Z;if(Ae.sn==="initSegment"&&((ne=Ae.decryptdata)==null?void 0:ne.method)==="AES-128"){var Ve=Z-H;Ve%16&&(Te=Z+(16-Ve%16)),H!==0&&(W.resetIV=!0,ve=H-16)}W.rangeStart=ve,W.rangeEnd=Te}return W}function $n(Ae,q){var L=new Error("GAP ".concat(Ae.gap?"tag":"attribute"," found")),W={type:O.MEDIA_ERROR,details:I.FRAG_GAP,fatal:!1,frag:Ae,error:L,networkDetails:null};return q&&(W.part=q),(q||Ae).stats.aborted=!0,new jn(W)}var jn=function(Ae){Object(a.a)(L,Ae);var q=Object(e.a)(L);function L(W){var H;return Object(r.a)(this,L),H=q.call(this,W.error.message),H.data=void 0,H.data=W,H}return Object(s.a)(L)}(n(Error)),pi=function(){function Ae(q){Object(r.a)(this,Ae),this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=q}return Object(s.a)(Ae,[{key:"abort",value:function(L){for(var W in this.keyUriToKeyInfo){var H=this.keyUriToKeyInfo[W].loader;if(H){if(L&&L!==H.context.frag.type)return;H.abort()}}}},{key:"detach",value:function(){for(var L in this.keyUriToKeyInfo){var W=this.keyUriToKeyInfo[L];(W.mediaKeySessionContext||W.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[L]}}},{key:"destroy",value:function(){this.detach();for(var L in this.keyUriToKeyInfo){var W=this.keyUriToKeyInfo[L].loader;W&&W.destroy()}this.keyUriToKeyInfo={}}},{key:"createKeyLoadError",value:function(L){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I.KEY_LOAD_ERROR,H=arguments.length>2?arguments[2]:void 0,Z=arguments.length>3?arguments[3]:void 0,ne=arguments.length>4?arguments[4]:void 0;return new jn({type:O.NETWORK_ERROR,details:W,fatal:!1,frag:L,response:ne,error:H,networkDetails:Z})}},{key:"loadClear",value:function(L,W){var H=this;if(this.emeController&&this.config.emeEnabled)for(var Z=L.sn,ne=L.cc,ve=function(){var ot=W[Te];if(ne<=ot.cc&&(Z==="initSegment"||ot.sn==="initSegment"||Z<ot.sn))return H.emeController.selectKeySystemFormat(ot).then(function(ht){ot.setKeyFormat(ht)}),1},Te=0;Te<W.length&&!ve();Te++);}},{key:"load",value:function(L){var W=this;return!L.decryptdata&&L.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(L).then(function(H){return W.loadInternal(L,H)}):this.loadInternal(L)}},{key:"loadInternal",value:function(L,W){var H,Z;W&&L.setKeyFormat(W);var ne=L.decryptdata;if(!ne){var ve=new Error(W?"Expected frag.decryptdata to be defined after setting format ".concat(W):"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(L,I.KEY_LOAD_ERROR,ve))}var Te=ne.uri;if(!Te)return Promise.reject(this.createKeyLoadError(L,I.KEY_LOAD_ERROR,new Error('Invalid key URI: "'.concat(Te,'"'))));var Ve=this.keyUriToKeyInfo[Te];if((H=Ve)!=null&&H.decryptdata.key)return ne.key=Ve.decryptdata.key,Promise.resolve({frag:L,keyInfo:Ve});if((Z=Ve)!=null&&Z.keyLoadPromise){var ot;switch((ot=Ve.mediaKeySessionContext)==null?void 0:ot.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return Ve.keyLoadPromise.then(function(ht){return ne.key=ht.keyInfo.decryptdata.key,{frag:L,keyInfo:Ve}})}}Ve=this.keyUriToKeyInfo[Te]={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(Ve,L):this.loadKeyEME(Ve,L);case"AES-128":return this.loadKeyHTTP(Ve,L);default:return Promise.reject(this.createKeyLoadError(L,I.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'.concat(ne.method,'"'))))}}},{key:"loadKeyEME",value:function(L,W){var H={frag:W,keyInfo:L};if(this.emeController&&this.config.emeEnabled){var Z=this.emeController.loadKey(H);if(Z)return(L.keyLoadPromise=Z.then(function(ne){return L.mediaKeySessionContext=ne,H})).catch(function(ne){throw L.keyLoadPromise=null,ne})}return Promise.resolve(H)}},{key:"loadKeyHTTP",value:function(L,W){var H=this,Z=this.config,ne=Z.loader,ve=new ne(Z);return W.keyLoader=L.loader=ve,L.keyLoadPromise=new Promise(function(Te,Ve){var ot={keyInfo:L,frag:W,responseType:"arraybuffer",url:L.decryptdata.uri},ht=Z.keyLoadPolicy.default,Qt={loadPolicy:ht,timeout:ht.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Cr={onSuccess:function(Kr,Jr,Cn,Nn){var Jn=Cn.frag,bi=Cn.keyInfo,ua=Cn.url;if(!Jn.decryptdata||bi!==H.keyUriToKeyInfo[ua])return Ve(H.createKeyLoadError(Jn,I.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Nn));bi.decryptdata.key=Jn.decryptdata.key=new Uint8Array(Kr.data),Jn.keyLoader=null,bi.loader=null,Te({frag:Jn,keyInfo:bi})},onError:function(Kr,Jr,Cn,Nn){H.resetLoader(Jr),Ve(H.createKeyLoadError(W,I.KEY_LOAD_ERROR,new Error("HTTP Error ".concat(Kr.code," loading key ").concat(Kr.text)),Cn,b({url:ot.url,data:void 0},Kr)))},onTimeout:function(Kr,Jr,Cn){H.resetLoader(Jr),Ve(H.createKeyLoadError(W,I.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),Cn))},onAbort:function(Kr,Jr,Cn){H.resetLoader(Jr),Ve(H.createKeyLoadError(W,I.INTERNAL_ABORTED,new Error("key loading aborted"),Cn))}};ve.load(ot,Qt,Cr)})}},{key:"resetLoader",value:function(L){var W=L.frag,H=L.keyInfo,Z=L.url,ne=H.loader;W.keyLoader===ne&&(W.keyLoader=null,H.loader=null),delete this.keyUriToKeyInfo[Z],ne&&ne.destroy()}}]),Ae}(),Mi=function(){function Ae(){Object(r.a)(this,Ae),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}return Object(s.a)(Ae,[{key:"destroy",value:function(){this.onHandlerDestroying(),this.onHandlerDestroyed()}},{key:"onHandlerDestroying",value:function(){this.clearNextTick(),this.clearInterval()}},{key:"onHandlerDestroyed",value:function(){}},{key:"hasInterval",value:function(){return!!this._tickInterval}},{key:"hasNextTick",value:function(){return!!this._tickTimer}},{key:"setInterval",value:function(L){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,L),!0)}},{key:"clearInterval",value:function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}},{key:"clearNextTick",value:function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}},{key:"tick",value:function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}},{key:"tickImmediate",value:function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}},{key:"doTick",value:function(){}}]),Ae}(),yi={length:0,start:function(){return 0},end:function(){return 0}},Oi=function(){function Ae(){Object(r.a)(this,Ae)}return Object(s.a)(Ae,null,[{key:"isBuffered",value:function(L,W){try{if(L){for(var H=Ae.getBuffered(L),Z=0;Z<H.length;Z++)if(W>=H.start(Z)&&W<=H.end(Z))return!0}}catch(ne){}return!1}},{key:"bufferInfo",value:function(L,W,H){try{if(L){var Z=Ae.getBuffered(L),ne=[],ve;for(ve=0;ve<Z.length;ve++)ne.push({start:Z.start(ve),end:Z.end(ve)});return this.bufferedInfo(ne,W,H)}}catch(Te){}return{len:0,start:W,end:W,nextStart:void 0}}},{key:"bufferedInfo",value:function(L,W,H){W=Math.max(0,W),L.sort(function(Jr,Cn){var Nn=Jr.start-Cn.start;return Nn||Cn.end-Jr.end});var Z=[];if(H)for(var ne=0;ne<L.length;ne++){var ve=Z.length;if(ve){var Te=Z[ve-1].end;L[ne].start-Te<H?L[ne].end>Te&&(Z[ve-1].end=L[ne].end):Z.push(L[ne])}else Z.push(L[ne])}else Z=L;for(var Ve=0,ot,ht=W,Qt=W,Cr=0;Cr<Z.length;Cr++){var wr=Z[Cr].start,Kr=Z[Cr].end;if(W+H>=wr&&W<Kr)ht=wr,Qt=Kr,Ve=Qt-W;else if(W+H<wr){ot=wr;break}}return{len:Ve,start:ht||0,end:Qt||0,nextStart:ot}}},{key:"getBuffered",value:function(L){try{return L.buffered}catch(W){return j.log("failed to get media.buffered",W),yi}}}]),Ae}(),zi=Object(s.a)(function Ae(q,L,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,ne=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;Object(r.a)(this,Ae),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=ea(),this.buffering={audio:ea(),video:ea(),audiovideo:ea()},this.level=q,this.sn=L,this.id=W,this.size=H,this.part=Z,this.partial=ne});function ea(){return{start:0,executeStart:0,executeEnd:0,end:0}}function Xi(Ae,q){for(var L=null,W=0,H=Ae.length;W<H;W++){var Z=Ae[W];if(Z&&Z.cc===q){L=Z;break}}return L}function Wi(Ae,q,L){return!!(q.details&&(L.endCC>L.startCC||Ae&&Ae.cc<L.startCC))}function ji(Ae,q){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,W=Ae.fragments,H=q.fragments;if(!H.length||!W.length){j.log("No fragments to align");return}var Z=Xi(W,H[0].cc);if(!Z||Z&&!Z.startPTS){j.log("No frag in previous level to align on");return}return Z}function Ji(Ae,q){if(Ae){var L=Ae.start+q;Ae.start=Ae.startPTS=L,Ae.endPTS=L+Ae.duration}}function ca(Ae,q){for(var L=q.fragments,W=0,H=L.length;W<H;W++)Ji(L[W],Ae);q.fragmentHint&&Ji(q.fragmentHint,Ae),q.alignedSliding=!0}function Ca(Ae,q,L){if(!q)return;na(Ae,L,q),!L.alignedSliding&&q.details&&Pa(L,q.details),!L.alignedSliding&&q.details&&!L.skippedSegments&&di(q.details,L)}function na(Ae,q,L){if(Wi(Ae,L,q)){var W=ji(L.details,q);W&&T(W.start)&&(j.log("Adjusting PTS using last level due to CC increase within current level ".concat(q.url)),ca(W.start,q))}}function Pa(Ae,q){if(!q.fragments.length||!Ae.hasProgramDateTime||!q.hasProgramDateTime)return;var L=q.fragments[0].programDateTime,W=Ae.fragments[0].programDateTime,H=(W-L)/1e3+q.fragments[0].start;H&&T(H)&&(j.log("Adjusting PTS using programDateTime delta ".concat(W-L,"ms, sliding:").concat(H.toFixed(3)," ").concat(Ae.url," ")),ca(H,Ae))}function La(Ae,q){if(!Ae.hasProgramDateTime||!q.hasProgramDateTime)return;var L=Ae.fragments,W=q.fragments;if(!L.length||!W.length)return;var H=Math.round(W.length/2)-1,Z=W[H],ne=Xi(L,Z.cc)||L[Math.round(L.length/2)-1],ve=Z.programDateTime,Te=ne.programDateTime;if(ve===null||Te===null)return;var Ve=(Te-ve)/1e3-(ne.start-Z.start);ca(Ve,Ae)}var va=function(){function Ae(q,L){Object(r.a)(this,Ae),this.subtle=void 0,this.aesIV=void 0,this.subtle=q,this.aesIV=L}return Object(s.a)(Ae,[{key:"decrypt",value:function(L,W){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},W,L)}}]),Ae}(),ga=function(){function Ae(q,L){Object(r.a)(this,Ae),this.subtle=void 0,this.key=void 0,this.subtle=q,this.key=L}return Object(s.a)(Ae,[{key:"expandKey",value:function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}]),Ae}();function Oa(Ae){var q=Ae.byteLength,L=q&&new DataView(Ae.buffer).getUint8(q-1);return L?Le(Ae,0,q-L):Ae}var Aa=function(){function Ae(){Object(r.a)(this,Ae),this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}return Object(s.a)(Ae,[{key:"uint8ArrayToUint32Array_",value:function(L){for(var W=new DataView(L),H=new Uint32Array(4),Z=0;Z<4;Z++)H[Z]=W.getUint32(Z*4);return H}},{key:"initTable",value:function(){var L=this.sBox,W=this.invSBox,H=this.subMix,Z=H[0],ne=H[1],ve=H[2],Te=H[3],Ve=this.invSubMix,ot=Ve[0],ht=Ve[1],Qt=Ve[2],Cr=Ve[3],wr=new Uint32Array(256),Kr=0,Jr=0,Cn=0;for(Cn=0;Cn<256;Cn++)Cn<128?wr[Cn]=Cn<<1:wr[Cn]=Cn<<1^283;for(Cn=0;Cn<256;Cn++){var Nn=Jr^Jr<<1^Jr<<2^Jr<<3^Jr<<4;Nn=Nn>>>8^Nn&255^99,L[Kr]=Nn,W[Nn]=Kr;var Jn=wr[Kr],bi=wr[Jn],ua=wr[bi],Vi=wr[Nn]*257^Nn*16843008;Z[Kr]=Vi<<24|Vi>>>8,ne[Kr]=Vi<<16|Vi>>>16,ve[Kr]=Vi<<8|Vi>>>24,Te[Kr]=Vi,Vi=ua*16843009^bi*65537^Jn*257^Kr*16843008,ot[Nn]=Vi<<24|Vi>>>8,ht[Nn]=Vi<<16|Vi>>>16,Qt[Nn]=Vi<<8|Vi>>>24,Cr[Nn]=Vi,Kr?(Kr=Jn^wr[wr[wr[ua^Jn]]],Jr^=wr[wr[Jr]]):Kr=Jr=1}}},{key:"expandKey",value:function(L){for(var W=this.uint8ArrayToUint32Array_(L),H=!0,Z=0;Z<W.length&&H;)H=W[Z]===this.key[Z],Z++;if(H)return;this.key=W;var ne=this.keySize=W.length;if(ne!==4&&ne!==6&&ne!==8)throw new Error("Invalid aes key size="+ne);var ve=this.ksRows=(ne+6+1)*4,Te,Ve,ot=this.keySchedule=new Uint32Array(ve),ht=this.invKeySchedule=new Uint32Array(ve),Qt=this.sBox,Cr=this.rcon,wr=this.invSubMix,Kr=wr[0],Jr=wr[1],Cn=wr[2],Nn=wr[3],Jn,bi;for(Te=0;Te<ve;Te++){if(Te<ne){Jn=ot[Te]=W[Te];continue}bi=Jn,Te%ne===0?(bi=bi<<8|bi>>>24,bi=Qt[bi>>>24]<<24|Qt[bi>>>16&255]<<16|Qt[bi>>>8&255]<<8|Qt[bi&255],bi^=Cr[Te/ne|0]<<24):ne>6&&Te%ne===4&&(bi=Qt[bi>>>24]<<24|Qt[bi>>>16&255]<<16|Qt[bi>>>8&255]<<8|Qt[bi&255]),ot[Te]=Jn=(ot[Te-ne]^bi)>>>0}for(Ve=0;Ve<ve;Ve++)Te=ve-Ve,Ve&3?bi=ot[Te]:bi=ot[Te-4],Ve<4||Te<=4?ht[Ve]=bi:ht[Ve]=Kr[Qt[bi>>>24]]^Jr[Qt[bi>>>16&255]]^Cn[Qt[bi>>>8&255]]^Nn[Qt[bi&255]],ht[Ve]=ht[Ve]>>>0}},{key:"networkToHostOrderSwap",value:function(L){return L<<24|(L&65280)<<8|(L&16711680)>>8|L>>>24}},{key:"decrypt",value:function(L,W,H){for(var Z=this.keySize+6,ne=this.invKeySchedule,ve=this.invSBox,Te=this.invSubMix,Ve=Te[0],ot=Te[1],ht=Te[2],Qt=Te[3],Cr=this.uint8ArrayToUint32Array_(H),wr=Cr[0],Kr=Cr[1],Jr=Cr[2],Cn=Cr[3],Nn=new Int32Array(L),Jn=new Int32Array(Nn.length),bi,ua,Vi,Zi,ka,Ga,Ba,Sa,Go,bs,ys,Cs,js,ws,Hs=this.networkToHostOrderSwap;W<Nn.length;){for(Go=Hs(Nn[W]),bs=Hs(Nn[W+1]),ys=Hs(Nn[W+2]),Cs=Hs(Nn[W+3]),ka=Go^ne[0],Ga=Cs^ne[1],Ba=ys^ne[2],Sa=bs^ne[3],js=4,ws=1;ws<Z;ws++)bi=Ve[ka>>>24]^ot[Ga>>16&255]^ht[Ba>>8&255]^Qt[Sa&255]^ne[js],ua=Ve[Ga>>>24]^ot[Ba>>16&255]^ht[Sa>>8&255]^Qt[ka&255]^ne[js+1],Vi=Ve[Ba>>>24]^ot[Sa>>16&255]^ht[ka>>8&255]^Qt[Ga&255]^ne[js+2],Zi=Ve[Sa>>>24]^ot[ka>>16&255]^ht[Ga>>8&255]^Qt[Ba&255]^ne[js+3],ka=bi,Ga=ua,Ba=Vi,Sa=Zi,js=js+4;bi=ve[ka>>>24]<<24^ve[Ga>>16&255]<<16^ve[Ba>>8&255]<<8^ve[Sa&255]^ne[js],ua=ve[Ga>>>24]<<24^ve[Ba>>16&255]<<16^ve[Sa>>8&255]<<8^ve[ka&255]^ne[js+1],Vi=ve[Ba>>>24]<<24^ve[Sa>>16&255]<<16^ve[ka>>8&255]<<8^ve[Ga&255]^ne[js+2],Zi=ve[Sa>>>24]<<24^ve[ka>>16&255]<<16^ve[Ga>>8&255]<<8^ve[Ba&255]^ne[js+3],Jn[W]=Hs(bi^wr),Jn[W+1]=Hs(Zi^Kr),Jn[W+2]=Hs(Vi^Jr),Jn[W+3]=Hs(ua^Cn),wr=Go,Kr=bs,Jr=ys,Cn=Cs,W=W+4}return Jn.buffer}}]),Ae}(),Xa=16,_a=function(){function Ae(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=L.removePKCS7Padding,H=W===void 0?!0:W;if(Object(r.a)(this,Ae),this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=q.enableSoftwareAES,this.removePKCS7Padding=H,H)try{var Z=self.crypto;Z&&(this.subtle=Z.subtle||Z.webkitSubtle)}catch(ne){}this.subtle===null&&(this.useSoftware=!0)}return Object(s.a)(Ae,[{key:"destroy",value:function(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}},{key:"isSync",value:function(){return this.useSoftware}},{key:"flush",value:function(){var L=this.currentResult,W=this.remainderData;if(!L||W)return this.reset(),null;var H=new Uint8Array(L);return this.reset(),this.removePKCS7Padding?Oa(H):H}},{key:"reset",value:function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}},{key:"decrypt",value:function(L,W,H){var Z=this;return this.useSoftware?new Promise(function(ne,ve){Z.softwareDecrypt(new Uint8Array(L),W,H);var Te=Z.flush();Te?ne(Te.buffer):ve(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(L),W,H)}},{key:"softwareDecrypt",value:function(L,W,H){var Z=this.currentIV,ne=this.currentResult,ve=this.remainderData;this.logOnce("JS AES decrypt"),ve&&(L=Nt(ve,L),this.remainderData=null);var Te=this.getValidChunk(L);if(!Te.length)return null;Z&&(H=Z);var Ve=this.softwareDecrypter;Ve||(Ve=this.softwareDecrypter=new Aa),Ve.expandKey(W);var ot=ne;return this.currentResult=Ve.decrypt(Te.buffer,0,H),this.currentIV=Le(Te,-16).buffer,ot||null}},{key:"webCryptoDecrypt",value:function(L,W,H){var Z=this,ne=this.subtle;return(this.key!==W||!this.fastAesKey)&&(this.key=W,this.fastAesKey=new ga(ne,W)),this.fastAesKey.expandKey().then(function(ve){if(!ne)return Promise.reject(new Error("web crypto not initialized"));Z.logOnce("WebCrypto AES decrypt");var Te=new va(ne,new Uint8Array(H));return Te.decrypt(L.buffer,ve)}).catch(function(ve){return j.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, ".concat(ve.name,": ").concat(ve.message)),Z.onWebCryptoError(L,W,H)})}},{key:"onWebCryptoError",value:function(L,W,H){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(L,W,H);var Z=this.flush();if(Z)return Z.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}},{key:"getValidChunk",value:function(L){var W=L,H=L.length-L.length%Xa;return H!==L.length&&(W=Le(L,0,H),this.remainderData=Le(L,H)),W}},{key:"logOnce",value:function(L){if(!this.logEnabled)return;j.log("[decrypter]: ".concat(L)),this.logEnabled=!1}}]),Ae}(),Va={toString:function(q){for(var L="",W=q.length,H=0;H<W;H++)L+="[".concat(q.start(H).toFixed(3),"-").concat(q.end(H).toFixed(3),"]");return L}},Pi={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},io=function(Ae){Object(a.a)(L,Ae);var q=Object(e.a)(L);function L(W,H,Z,ne,ve){var Te;return Object(r.a)(this,L),Te=q.call(this),Te.hls=void 0,Te.fragPrevious=null,Te.fragCurrent=null,Te.fragmentTracker=void 0,Te.transmuxer=null,Te._state=Pi.STOPPED,Te.playlistType=void 0,Te.media=null,Te.mediaBuffer=null,Te.config=void 0,Te.bitrateTest=!1,Te.lastCurrentTime=0,Te.nextLoadPosition=0,Te.startPosition=0,Te.startTimeOffset=null,Te.loadedmetadata=!1,Te.retryDate=0,Te.levels=null,Te.fragmentLoader=void 0,Te.keyLoader=void 0,Te.levelLastLoaded=null,Te.startFragRequested=!1,Te.decrypter=void 0,Te.initPTS=[],Te.onvseeking=null,Te.onvended=null,Te.logPrefix="",Te.log=void 0,Te.warn=void 0,Te.playlistType=ve,Te.logPrefix=ne,Te.log=j.log.bind(j,"".concat(ne,":")),Te.warn=j.warn.bind(j,"".concat(ne,":")),Te.hls=W,Te.fragmentLoader=new On(W.config),Te.keyLoader=Z,Te.fragmentTracker=H,Te.config=W.config,Te.decrypter=new _a(W.config),W.on(S.MANIFEST_LOADED,Te.onManifestLoaded,Object(v.a)(Te)),Te}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=Pi.STOPPED}},{key:"_streamEnded",value:function(H,Z){if(Z.live||H.nextStart||!H.end||!this.media)return!1;var ne=Z.partList;if(ne!=null&&ne.length){var ve=ne[ne.length-1],Te=Oi.isBuffered(this.media,ve.start+ve.duration/2);return Te}var Ve=Z.fragments[Z.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(Ve)}},{key:"getLevelDetails",value:function(){if(this.levels&&this.levelLastLoaded!==null){var H;return(H=this.levels[this.levelLastLoaded])==null?void 0:H.details}}},{key:"onMediaAttached",value:function(H,Z){var ne=this.media=this.mediaBuffer=Z.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),ne.addEventListener("seeking",this.onvseeking),ne.addEventListener("ended",this.onvended);var ve=this.config;this.levels&&ve.autoStartLoad&&this.state===Pi.STOPPED&&this.startLoad(ve.startPosition)}},{key:"onMediaDetaching",value:function(){var H=this.media;H!=null&&H.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),H&&this.onvseeking&&this.onvended&&(H.removeEventListener("seeking",this.onvseeking),H.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}},{key:"onMediaSeeking",value:function(){var H=this.config,Z=this.fragCurrent,ne=this.media,ve=this.mediaBuffer,Te=this.state,Ve=ne?ne.currentTime:0,ot=Oi.bufferInfo(ve||ne,Ve,H.maxBufferHole);if(this.log("media seeking to ".concat(T(Ve)?Ve.toFixed(3):Ve,", state: ").concat(Te)),this.state===Pi.ENDED)this.resetLoadingState();else if(Z){var ht=H.maxFragLookUpTolerance,Qt=Z.start-ht,Cr=Z.start+Z.duration+ht;if(!ot.len||Cr<ot.start||Qt>ot.end){var wr=Ve>Cr;(Ve<Qt||wr)&&(wr&&Z.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),Z.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}ne&&(this.fragmentTracker.removeFragmentsInRange(Ve,Infinity,this.playlistType,!0),this.lastCurrentTime=Ve),!this.loadedmetadata&&!ot.len&&(this.nextLoadPosition=this.startPosition=Ve),this.tickImmediate()}},{key:"onMediaEnded",value:function(){this.startPosition=this.lastCurrentTime=0}},{key:"onManifestLoaded",value:function(H,Z){this.startTimeOffset=Z.startTimeOffset,this.initPTS=[]}},{key:"onHandlerDestroying",value:function(){this.stopLoad(),Object(t.a)(Object(m.a)(L.prototype),"onHandlerDestroying",this).call(this)}},{key:"onHandlerDestroyed",value:function(){this.state=Pi.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,Z,ne){this._loadFragForPlayback(H,Z,ne)}},{key:"_loadFragForPlayback",value:function(H,Z,ne){var ve=this,Te=function(ot){if(ve.fragContextChanged(H)){ve.warn("Fragment ".concat(H.sn).concat(ot.part?" p: "+ot.part.index:""," of level ").concat(H.level," was dropped during download.")),ve.fragmentTracker.removeFragment(H);return}H.stats.chunkCount++,ve._handleFragmentLoadProgress(ot)};this._doFragLoad(H,Z,ne,Te).then(function(Ve){if(!Ve)return;var ot=ve.state;if(ve.fragContextChanged(H)){(ot===Pi.FRAG_LOADING||!ve.fragCurrent&&ot===Pi.PARSING)&&(ve.fragmentTracker.removeFragment(H),ve.state=Pi.IDLE);return}"payload"in Ve&&(ve.log("Loaded fragment ".concat(H.sn," of level ").concat(H.level)),ve.hls.trigger(S.FRAG_LOADED,Ve)),ve._handleFragmentLoadComplete(Ve)}).catch(function(Ve){if(ve.state===Pi.STOPPED||ve.state===Pi.ERROR)return;ve.warn(Ve),ve.resetFragmentLoading(H)})}},{key:"clearTrackerIfNeeded",value:function(H){var Z,ne=this.fragmentTracker,ve=ne.getState(H);if(ve===_t.APPENDING){var Te=H.type,Ve=this.getFwdBufferInfo(this.mediaBuffer,Te),ot=Math.max(H.duration,Ve?Ve.len:this.config.maxBufferLength);this.reduceMaxBufferLength(ot)&&ne.removeFragment(H)}else((Z=this.mediaBuffer)==null?void 0:Z.buffered.length)===0?ne.removeAllFragments():ne.hasParts(H.type)&&(ne.detectPartialFragments({frag:H,part:null,stats:H.stats,id:H.type}),ne.getState(H)===_t.PARTIAL&&ne.removeFragment(H))}},{key:"checkLiveUpdate",value:function(H){if(H.updated&&!H.live){var Z=H.fragments[H.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:Z,part:null,stats:Z.stats,id:Z.type})}H.fragments[0]||(H.deltaUpdateFailed=!0)}},{key:"flushMainBuffer",value:function(H,Z){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!(H-Z))return;var ve={startOffset:H,endOffset:Z,type:ne};this.hls.trigger(S.BUFFER_FLUSHING,ve)}},{key:"_loadInitSegment",value:function(H,Z){var ne=this;this._doFragLoad(H,Z).then(function(ve){if(!ve||ne.fragContextChanged(H)||!ne.levels)throw new Error("init load aborted");return ve}).then(function(ve){var Te=ne.hls,Ve=ve.payload,ot=H.decryptdata;if(Ve&&Ve.byteLength>0&&ot&&ot.key&&ot.iv&&ot.method==="AES-128"){var ht=self.performance.now();return ne.decrypter.decrypt(new Uint8Array(Ve),ot.key.buffer,ot.iv.buffer).catch(function(Qt){throw Te.trigger(S.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_DECRYPT_ERROR,fatal:!1,error:Qt,reason:Qt.message,frag:H}),Qt}).then(function(Qt){var Cr=self.performance.now();return Te.trigger(S.FRAG_DECRYPTED,{frag:H,payload:Qt,stats:{tstart:ht,tdecrypt:Cr}}),ve.payload=Qt,ve})}return ve}).then(function(ve){var Te=ne.fragCurrent,Ve=ne.hls,ot=ne.levels;if(!ot)throw new Error("init load aborted, missing levels");var ht=H.stats;ne.state=Pi.IDLE,Z.fragmentError=0,H.data=new Uint8Array(ve.payload),ht.parsing.start=ht.buffering.start=self.performance.now(),ht.parsing.end=ht.buffering.end=self.performance.now(),ve.frag===Te&&Ve.trigger(S.FRAG_BUFFERED,{stats:ht,frag:Te,part:null,id:H.type}),ne.tick()}).catch(function(ve){if(ne.state===Pi.STOPPED||ne.state===Pi.ERROR)return;ne.warn(ve),ne.resetFragmentLoading(H)})}},{key:"fragContextChanged",value:function(H){var Z=this.fragCurrent;return!H||!Z||H.level!==Z.level||H.sn!==Z.sn||H.urlId!==Z.urlId}},{key:"fragBufferedComplete",value:function(H,Z){var ne,ve,Te,Ve,ot=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered ".concat(H.type," sn: ").concat(H.sn).concat(Z?" part: "+Z.index:""," of ").concat(this.playlistType===pt.MAIN?"level":"track"," ").concat(H.level," (frag:[").concat(((ne=H.startPTS)!=null?ne:NaN).toFixed(3),"-").concat(((ve=H.endPTS)!=null?ve:NaN).toFixed(3),"] > buffer:").concat(ot?Va.toString(Oi.getBuffered(ot)):"(detached)",")")),this.state=Pi.IDLE,!ot)return;!this.loadedmetadata&&H.type==pt.MAIN&&ot.buffered.length&&((Te=this.fragCurrent)==null?void 0:Te.sn)===((Ve=this.fragPrevious)==null?void 0:Ve.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick()}},{key:"seekToStartPos",value:function(){}},{key:"_handleFragmentLoadComplete",value:function(H){var Z=this.transmuxer;if(!Z)return;var ne=H.frag,ve=H.part,Te=H.partsLoaded,Ve=!Te||Te.length===0||Te.some(function(ht){return!ht}),ot=new zi(ne.level,ne.sn,ne.stats.chunkCount+1,0,ve?ve.index:-1,!Ve);Z.flush(ot)}},{key:"_handleFragmentLoadProgress",value:function(H){}},{key:"_doFragLoad",value:function(H,Z){var ne=this,ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Te=arguments.length>3?arguments[3]:void 0,Ve,ot=Z==null?void 0:Z.details;if(!this.levels||!ot)throw new Error("frag load aborted, missing level".concat(ot?"":" detail","s"));var ht=null;if(H.encrypted&&!((Ve=H.decryptdata)!=null&&Ve.key)?(this.log("Loading key for ".concat(H.sn," of [").concat(ot.startSN,"-").concat(ot.endSN,"], ").concat(this.logPrefix==="[stream-controller]"?"level":"track"," ").concat(H.level)),this.state=Pi.KEY_LOADING,this.fragCurrent=H,ht=this.keyLoader.load(H).then(function(Nn){if(!ne.fragContextChanged(Nn.frag))return ne.hls.trigger(S.KEY_LOADED,Nn),ne.state===Pi.KEY_LOADING&&(ne.state=Pi.IDLE),Nn}),this.hls.trigger(S.KEY_LOADING,{frag:H}),this.fragCurrent===null&&(ht=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!H.encrypted&&ot.encryptedFragments.length&&this.keyLoader.loadClear(H,ot.encryptedFragments),ve=Math.max(H.start,ve||0),this.config.lowLatencyMode&&H.sn!=="initSegment"){var Qt=ot.partList;if(Qt&&Te){ve>H.end&&ot.fragmentHint&&(H=ot.fragmentHint);var Cr=this.getNextPart(Qt,H,ve);if(Cr>-1){var wr=Qt[Cr];this.log("Loading part sn: ".concat(H.sn," p: ").concat(wr.index," cc: ").concat(H.cc," of playlist [").concat(ot.startSN,"-").concat(ot.endSN,"] parts [0-").concat(Cr,"-").concat(Qt.length-1,"] ").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(H.level,", target: ").concat(parseFloat(ve.toFixed(3)))),this.nextLoadPosition=wr.start+wr.duration,this.state=Pi.FRAG_LOADING;var Kr;return ht?Kr=ht.then(function(Nn){return!Nn||ne.fragContextChanged(Nn.frag)?null:ne.doFragPartsLoad(H,wr,Z,Te)}).catch(function(Nn){return ne.handleFragLoadError(Nn)}):Kr=this.doFragPartsLoad(H,wr,Z,Te).catch(function(Nn){return ne.handleFragLoadError(Nn)}),this.hls.trigger(S.FRAG_LOADING,{frag:H,part:wr,targetBufferTime:ve}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Kr}else if(!H.url||this.loadedEndOfParts(Qt,ve))return Promise.resolve(null)}}this.log("Loading fragment ".concat(H.sn," cc: ").concat(H.cc," ").concat(ot?"of ["+ot.startSN+"-"+ot.endSN+"] ":"").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(H.level,", target: ").concat(parseFloat(ve.toFixed(3)))),T(H.sn)&&!this.bitrateTest&&(this.nextLoadPosition=H.start+H.duration),this.state=Pi.FRAG_LOADING;var Jr=this.config.progressive,Cn;return Jr&&ht?Cn=ht.then(function(Nn){return!Nn||ne.fragContextChanged(Nn==null?void 0:Nn.frag)?null:ne.fragmentLoader.load(H,Te)}).catch(function(Nn){return ne.handleFragLoadError(Nn)}):Cn=Promise.all([this.fragmentLoader.load(H,Jr?Te:void 0),ht]).then(function(Nn){var Jn=Object(x.a)(Nn,1),bi=Jn[0];return!Jr&&bi&&Te&&Te(bi),bi}).catch(function(Nn){return ne.handleFragLoadError(Nn)}),this.hls.trigger(S.FRAG_LOADING,{frag:H,targetBufferTime:ve}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):Cn}},{key:"doFragPartsLoad",value:function(H,Z,ne,ve){var Te=this;return new Promise(function(Ve,ot){var ht,Qt=[],Cr=(ht=ne.details)==null?void 0:ht.partList,wr=function Kr(Jr){Te.fragmentLoader.loadPart(H,Jr,ve).then(function(Cn){Qt[Jr.index]=Cn;var Nn=Cn.part;Te.hls.trigger(S.FRAG_LOADED,Cn);var Jn=Gn(ne,H.sn,Jr.index+1)||Zn(Cr,H.sn,Jr.index+1);if(Jn)Kr(Jn);else return Ve({frag:H,part:Nn,partsLoaded:Qt})}).catch(ot)};wr(Z)})}},{key:"handleFragLoadError",value:function(H){if("data"in H){var Z=H.data;H.data&&Z.details===I.INTERNAL_ABORTED?this.handleFragLoadAborted(Z.frag,Z.part):this.hls.trigger(S.ERROR,Z)}else this.hls.trigger(S.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,err:H,error:H,fatal:!0});return null}},{key:"_handleTransmuxerFlush",value:function(H){var Z=this.getCurrentContext(H);if(!Z||this.state!==Pi.PARSING){!this.fragCurrent&&this.state!==Pi.STOPPED&&this.state!==Pi.ERROR&&(this.state=Pi.IDLE);return}var ne=Z.frag,ve=Z.part,Te=Z.level,Ve=self.performance.now();ne.stats.parsing.end=Ve,ve&&(ve.stats.parsing.end=Ve),this.updateLevelTiming(ne,ve,Te,H.partial)}},{key:"getCurrentContext",value:function(H){var Z=this.levels,ne=this.fragCurrent,ve=H.level,Te=H.sn,Ve=H.part;if(!(Z!=null&&Z[ve]))return this.warn("Levels object was unset while buffering fragment ".concat(Te," of level ").concat(ve,". The current chunk will not be buffered.")),null;var ot=Z[ve],ht=Ve>-1?Gn(ot,Te,Ve):null,Qt=ht?ht.fragment:_n(ot,Te,ne);return Qt?(ne&&ne!==Qt&&(Qt.stats=ne.stats),{frag:Qt,part:ht,level:ot}):null}},{key:"bufferFragmentData",value:function(H,Z,ne,ve,Te){var Ve;if(!H||this.state!==Pi.PARSING)return;var ot=H.data1,ht=H.data2,Qt=ot;if(ot&&ht&&(Qt=Nt(ot,ht)),!((Ve=Qt)!=null&&Ve.length))return;var Cr={type:H.type,frag:Z,part:ne,chunkMeta:ve,parent:Z.type,data:Qt};if(this.hls.trigger(S.BUFFER_APPENDING,Cr),H.dropped&&H.independent&&!ne){if(Te)return;this.flushBufferGap(Z)}}},{key:"flushBufferGap",value:function(H){var Z=this.media;if(!Z)return;if(!Oi.isBuffered(Z,Z.currentTime)){this.flushMainBuffer(0,H.start);return}var ne=Z.currentTime,ve=Oi.bufferInfo(Z,ne,0),Te=H.duration,Ve=Math.min(this.config.maxFragLookUpTolerance*2,Te*.25),ot=Math.max(Math.min(H.start-Ve,ve.end-Ve),ne+Ve);H.start-ot>Ve&&this.flushMainBuffer(ot,H.start)}},{key:"getFwdBufferInfo",value:function(H,Z){var ne=this.getLoadPosition();return T(ne)?this.getFwdBufferInfoAtPos(H,ne,Z):null}},{key:"getFwdBufferInfoAtPos",value:function(H,Z,ne){var ve=this.config.maxBufferHole,Te=Oi.bufferInfo(H,Z,ve);if(Te.len===0&&Te.nextStart!==void 0){var Ve=this.fragmentTracker.getBufferedFrag(Z,ne);if(Ve&&Te.nextStart<Ve.end)return Oi.bufferInfo(H,Z,Math.max(Te.nextStart,ve))}return Te}},{key:"getMaxBufferLength",value:function(H){var Z=this.config,ne;return H?ne=Math.max(8*Z.maxBufferSize/H,Z.maxBufferLength):ne=Z.maxBufferLength,Math.min(ne,Z.maxMaxBufferLength)}},{key:"reduceMaxBufferLength",value:function(H){var Z=this.config,ne=H||Z.maxBufferLength;return Z.maxMaxBufferLength>=ne?(Z.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to ".concat(Z.maxMaxBufferLength,"s")),!0):!1}},{key:"getAppendedFrag",value:function(H){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pt.MAIN,ne=this.fragmentTracker.getAppendedFrag(H,pt.MAIN);return ne&&"fragment"in ne?ne.fragment:ne}},{key:"getNextFragment",value:function(H,Z){var ne=Z.fragments,ve=ne.length;if(!ve)return null;var Te=this.config,Ve=ne[0].start,ot;if(Z.live){var ht=Te.initialLiveManifestSize;if(ve<ht)return this.warn("Not enough fragments to start playback (have: ".concat(ve,", need: ").concat(ht,")")),null;!Z.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(ot=this.getInitialLiveFragment(Z,ne),this.startPosition=ot?this.hls.liveSyncPosition||ot.start:H)}else H<=Ve&&(ot=ne[0]);if(!ot){var Qt=Te.lowLatencyMode?Z.partEnd:Z.fragmentEnd;ot=this.getFragmentAtPosition(H,Qt,Z)}return this.mapToInitFragWhenRequired(ot)}},{key:"isLoopLoading",value:function(H,Z){var ne=this.fragmentTracker.getState(H);return(ne===_t.OK||ne===_t.PARTIAL&&!!H.gap)&&this.nextLoadPosition>Z}},{key:"getNextFragmentLoopLoading",value:function(H,Z,ne,ve,Te){var Ve=H.gap,ot=this.getNextFragment(this.nextLoadPosition,Z);if(ot===null)return ot;if(H=ot,Ve&&H&&!H.gap&&ne.nextStart){var ht=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,ne.nextStart,ve);if(ht!==null&&ne.len+ht.len>=Te)return this.log('buffer full after gaps in "'.concat(ve,'" playlist starting at sn: ').concat(H.sn)),null}return H}},{key:"mapToInitFragWhenRequired",value:function(H){return H!=null&&H.initSegment&&!(H!=null&&H.initSegment.data)&&!this.bitrateTest?H.initSegment:H}},{key:"getNextPart",value:function(H,Z,ne){for(var ve=-1,Te=!1,Ve=!0,ot=0,ht=H.length;ot<ht;ot++){var Qt=H[ot];if(Ve=Ve&&!Qt.independent,ve>-1&&ne<Qt.start)break;var Cr=Qt.loaded;Cr?ve=-1:(Te||Qt.independent||Ve)&&Qt.fragment===Z&&(ve=ot),Te=Cr}return ve}},{key:"loadedEndOfParts",value:function(H,Z){var ne=H[H.length-1];return ne&&Z>ne.start&&ne.loaded}},{key:"getInitialLiveFragment",value:function(H,Z){var ne=this.fragPrevious,ve=null;if(ne){if(H.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: ".concat(ne.programDateTime)),ve=ba(Z,ne.endProgramDateTime,this.config.maxFragLookUpTolerance)),!ve){var Te=ne.sn+1;if(Te>=H.startSN&&Te<=H.endSN){var Ve=Z[Te-H.startSN];ne.cc===Ve.cc&&(ve=Ve,this.log("Live playlist, switching playlist, load frag with next SN: ".concat(ve.sn)))}ve||(ve=ha(Z,ne.cc),ve&&this.log("Live playlist, switching playlist, load frag with same CC: ".concat(ve.sn)))}}else{var ot=this.hls.liveSyncPosition;ot!==null&&(ve=this.getFragmentAtPosition(ot,this.bitrateTest?H.fragmentEnd:H.edge,H))}return ve}},{key:"getFragmentAtPosition",value:function(H,Z,ne){var ve=this.config,Te=this.fragPrevious,Ve=ne.fragments,ot=ne.endSN,ht=ne.fragmentHint,Qt=ve.maxFragLookUpTolerance,Cr=ne.partList,wr=!!(ve.lowLatencyMode&&Cr!=null&&Cr.length&&ht);wr&&ht&&!this.bitrateTest&&(Ve=Ve.concat(ht),ot=ht.sn);var Kr;if(H<Z){var Jr=H>Z-Qt?0:Qt;Kr=Ai(Te,Ve,H,Jr)}else Kr=Ve[Ve.length-1];if(Kr){var Cn=Kr.sn-ne.startSN,Nn=this.fragmentTracker.getState(Kr);if((Nn===_t.OK||Nn===_t.PARTIAL&&Kr.gap)&&(Te=Kr),Te&&Kr.sn===Te.sn&&(!wr||Cr[0].fragment.sn>Kr.sn)){var Jn=Te&&Kr.level===Te.level;if(Jn){var bi=Ve[Cn+1];Kr.sn<ot&&this.fragmentTracker.getState(bi)!==_t.OK?Kr=bi:Kr=null}}}return Kr}},{key:"synchronizeToLiveEdge",value:function(H){var Z=this.config,ne=this.media;if(!ne)return;var ve=this.hls.liveSyncPosition,Te=ne.currentTime,Ve=H.fragments[0].start,ot=H.edge,ht=Te>=Ve-Z.maxFragLookUpTolerance&&Te<=ot;if(ve!==null&&ne.duration>ve&&(Te<ve||!ht)){var Qt=Z.liveMaxLatencyDuration!==void 0?Z.liveMaxLatencyDuration:Z.liveMaxLatencyDurationCount*H.targetduration;(!ht&&ne.readyState<4||Te<ot-Qt)&&(this.loadedmetadata||(this.nextLoadPosition=ve),ne.readyState&&(this.warn("Playback: ".concat(Te.toFixed(3)," is located too far from the end of live sliding playlist: ").concat(ot,", reset currentTime to : ").concat(ve.toFixed(3))),ne.currentTime=ve))}}},{key:"alignPlaylists",value:function(H,Z){var ne=this.levels,ve=this.levelLastLoaded,Te=this.fragPrevious,Ve=ve!==null?ne[ve]:null,ot=H.fragments.length;if(!ot)return this.warn("No fragments in live playlist"),0;var ht=H.fragments[0].start,Qt=!Z,Cr=H.alignedSliding&&T(ht);if(Qt||!Cr&&!ht){Ca(Te,Ve,H);var wr=H.fragments[0].start;return this.log("Live playlist sliding: ".concat(wr.toFixed(2)," start-sn: ").concat(Z?Z.startSN:"na","->").concat(H.startSN," prev-sn: ").concat(Te?Te.sn:"na"," fragments: ").concat(ot)),wr}return ht}},{key:"waitForCdnTuneIn",value:function(H){var Z=3;return H.live&&H.canBlockReload&&H.partTarget&&H.tuneInGoal>Math.max(H.partHoldBack,H.partTarget*Z)}},{key:"setStartPosition",value:function(H,Z){var ne=this.startPosition;if(ne<Z&&(ne=-1),ne===-1||this.lastCurrentTime===-1){var ve=this.startTimeOffset!==null,Te=ve?this.startTimeOffset:H.startTimeOffset;Te!==null&&T(Te)?(ne=Z+Te,Te<0&&(ne+=H.totalduration),ne=Math.min(Math.max(Z,ne),Z+H.totalduration),this.log("Start time offset ".concat(Te," found in ").concat(ve?"multivariant":"media"," playlist, adjust startPosition to ").concat(ne)),this.startPosition=ne):H.live?ne=this.hls.liveSyncPosition||Z:this.startPosition=ne=0,this.lastCurrentTime=ne}this.nextLoadPosition=ne}},{key:"getLoadPosition",value:function(){var H=this.media,Z=0;return this.loadedmetadata&&H?Z=H.currentTime:this.nextLoadPosition&&(Z=this.nextLoadPosition),Z}},{key:"handleFragLoadAborted",value:function(H,Z){this.transmuxer&&H.sn!=="initSegment"&&H.stats.aborted&&(this.warn("Fragment ".concat(H.sn).concat(Z?" part "+Z.index:""," of level ").concat(H.level," was aborted")),this.resetFragmentLoading(H))}},{key:"resetFragmentLoading",value:function(H){(!this.fragCurrent||!this.fragContextChanged(H)&&this.state!==Pi.FRAG_LOADING_WAITING_RETRY)&&(this.state=Pi.IDLE)}},{key:"onFragmentOrKeyLoadError",value:function(H,Z){if(Z.chunkMeta&&!Z.frag){var ne=this.getCurrentContext(Z.chunkMeta);ne&&(Z.frag=ne.frag)}var ve=Z.frag;if(!ve||ve.type!==H||!this.levels)return;if(this.fragContextChanged(ve)){var Te;this.warn("Frag load error must match current frag to retry ".concat(ve.url," > ").concat((Te=this.fragCurrent)==null?void 0:Te.url));return}var Ve=Z.details===I.FRAG_GAP;Ve&&this.fragmentTracker.fragBuffered(ve,!0);var ot=Z.errorAction,ht=ot||{},Qt=ht.action,Cr=ht.retryCount,wr=Cr===void 0?0:Cr,Kr=ht.retryConfig;if(ot&&Qt===ra.RetryRequest&&Kr){var Jr;this.resetStartWhenNotLoaded((Jr=this.levelLastLoaded)!=null?Jr:ve.level);var Cn=Ri(Kr,wr);this.warn("Fragment ".concat(ve.sn," of ").concat(H," ").concat(ve.level," errored with ").concat(Z.details,", retrying loading ").concat(wr+1,"/").concat(Kr.maxNumRetry," in ").concat(Cn,"ms")),ot.resolved=!0,this.retryDate=self.performance.now()+Cn,this.state=Pi.FRAG_LOADING_WAITING_RETRY}else Kr&&ot?(this.resetFragmentErrors(H),wr<Kr.maxNumRetry?Ve||(ot.resolved=!0):j.warn("".concat(Z.details," reached or exceeded max retry (").concat(wr,")"))):(ot==null?void 0:ot.action)===ra.SendAlternateToPenaltyBox?this.state=Pi.WAITING_LEVEL:this.state=Pi.ERROR;this.tickImmediate()}},{key:"reduceLengthAndFlushBuffer",value:function(H){if(this.state===Pi.PARSING||this.state===Pi.PARSED){var Z=H.parent,ne=this.getFwdBufferInfo(this.mediaBuffer,Z),ve=ne&&ne.len>.5;ve&&this.reduceMaxBufferLength(ne.len);var Te=!ve;return Te&&this.warn("Buffer full error while media.currentTime is not buffered, flush ".concat(Z," buffer")),H.frag&&(this.fragmentTracker.removeFragment(H.frag),this.nextLoadPosition=H.frag.start),this.resetLoadingState(),Te}return!1}},{key:"resetFragmentErrors",value:function(H){H===pt.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Pi.STOPPED&&(this.state=Pi.IDLE)}},{key:"afterBufferFlushed",value:function(H,Z,ne){if(!H)return;var ve=Oi.getBuffered(H);this.fragmentTracker.detectEvictedFragments(Z,ve,ne),this.state===Pi.ENDED&&this.resetLoadingState()}},{key:"resetLoadingState",value:function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Pi.IDLE}},{key:"resetStartWhenNotLoaded",value:function(H){if(!this.loadedmetadata){this.startFragRequested=!1;var Z=this.levels?this.levels[H].details:null;Z!=null&&Z.live?(this.startPosition=-1,this.setStartPosition(Z,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}},{key:"resetWhenMissingContext",value:function(H){var Z;this.warn("The loading context changed while buffering fragment ".concat(H.sn," of level ").concat(H.level,". This chunk will not be buffered.")),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded((Z=this.levelLastLoaded)!=null?Z:H.level),this.resetLoadingState()}},{key:"removeUnbufferedFrags",value:function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.fragmentTracker.removeFragmentsInRange(H,Infinity,this.playlistType,!1,!0)}},{key:"updateLevelTiming",value:function(H,Z,ne,ve){var Te=this,Ve,ot=ne.details;if(!ot){this.warn("level.details undefined");return}var ht=Object.keys(H.elementaryStreams).reduce(function(Cr,wr){var Kr=H.elementaryStreams[wr];if(Kr){var Jr=Kr.endPTS-Kr.startPTS;if(Jr<=0)return Te.warn("Could not parse fragment ".concat(H.sn," ").concat(wr," duration reliably (").concat(Jr,")")),Cr||!1;var Cn=ve?0:Ar(ot,H,Kr.startPTS,Kr.endPTS,Kr.startDTS,Kr.endDTS);return Te.hls.trigger(S.LEVEL_PTS_UPDATED,{details:ot,level:ne,drift:Cn,type:wr,frag:H,start:Kr.startPTS,end:Kr.endPTS}),!0}return Cr},!1);if(ht)ne.fragmentError=0;else if(((Ve=this.transmuxer)==null?void 0:Ve.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(S.ERROR,{type:O.MEDIA_ERROR,details:I.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=Pi.PARSED,this.hls.trigger(S.FRAG_PARSED,{frag:H,part:Z})}},{key:"resetTransmuxer",value:function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}},{key:"recoverWorkerError",value:function(H){if(H.event==="demuxerWorker"){var Z,ne,ve;this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded((Z=(ne=this.levelLastLoaded)!=null?ne:(ve=this.fragCurrent)==null?void 0:ve.level)!=null?Z:0),this.resetLoadingState()}}},{key:"state",get:function(){return this._state},set:function(H){var Z=this._state;Z!==H&&(this._state=H,this.log("".concat(Z,"->").concat(H)))}}]),L}(Mi);function oo(){return self.SourceBuffer||self.WebKitSourceBuffer}function Qo(){var Ae=qt();if(!Ae)return!1;var q=oo(),L=Ae&&typeof Ae.isTypeSupported=="function"&&Ae.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),W=!q||q.prototype&&typeof q.prototype.appendBuffer=="function"&&typeof q.prototype.remove=="function";return!!L&&!!W}function mo(){var Ae,q=oo();return typeof(q==null||(Ae=q.prototype)==null?void 0:Ae.changeType)=="function"}function To(){return typeof __HLS_WORKER_BUNDLE__=="function"}function ao(){var Ae=new self.Blob(["var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(".concat(__HLS_WORKER_BUNDLE__.toString(),")(true);")],{type:"text/javascript"}),q=self.URL.createObjectURL(Ae),L=new self.Worker(q);return{worker:L,objectURL:q}}function So(Ae){var q=new self.URL(Ae,self.location.href).href,L=new self.Worker(q);return{worker:L,scriptURL:q}}function bo(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:9e4;return{type:Ae,id:-1,pid:-1,inputTimeScale:q,sequenceNumber:-1,samples:[],dropped:0}}var to=function(){function Ae(){Object(r.a)(this,Ae),this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}return Object(s.a)(Ae,[{key:"resetInitSegment",value:function(L,W,H,Z){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}},{key:"resetTimeStamp",value:function(L){this.initPTS=L,this.resetContiguity()}},{key:"resetContiguity",value:function(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}},{key:"canParse",value:function(L,W){return!1}},{key:"appendFrame",value:function(L,W,H){}},{key:"demux",value:function(L,W){this.cachedData&&(L=Nt(this.cachedData,L),this.cachedData=null);var H=at(L,0),Z=H?H.length:0,ne,ve=this._audioTrack,Te=this._id3Track,Ve=H?et(H):void 0,ot=L.length;for((this.basePTS===null||this.frameIndex===0&&T(Ve))&&(this.basePTS=Jo(Ve,W,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),H&&H.length>0&&Te.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:H,type:Ur.audioId3,duration:Number.POSITIVE_INFINITY});Z<ot;){if(this.canParse(L,Z)){var ht=this.appendFrame(ve,L,Z);ht?(this.frameIndex++,this.lastPTS=ht.sample.pts,Z+=ht.length,ne=Z):Z=ot}else mt(L,Z)?(H=at(L,Z),Te.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:H,type:Ur.audioId3,duration:Number.POSITIVE_INFINITY}),Z+=H.length,ne=Z):Z++;if(Z===ot&&ne!==ot){var Qt=Le(L,ne);this.cachedData?this.cachedData=Nt(this.cachedData,Qt):this.cachedData=Qt}}return{audioTrack:ve,videoTrack:bo(),id3Track:Te,textTrack:bo()}}},{key:"demuxSampleAes",value:function(L,W,H){return Promise.reject(new Error("[".concat(this,"] This demuxer does not support Sample-AES decryption")))}},{key:"flush",value:function(L){var W=this.cachedData;return W&&(this.cachedData=null,this.demux(W,0)),{audioTrack:this._audioTrack,videoTrack:bo(),id3Track:this._id3Track,textTrack:bo()}}},{key:"destroy",value:function(){}}]),Ae}(),Jo=function(q,L,W){if(T(q))return q*90;var H=W?W.baseTime*9e4/W.timescale:0;return L*9e4+H};function Uo(Ae,q,L,W){var H,Z,ne,ve,Te=navigator.userAgent.toLowerCase(),Ve=W,ot=[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>ot.length-1){Ae.trigger(S.ERROR,{type:O.MEDIA_ERROR,details:I.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,j.log("manifest codec:".concat(W,", ADTS type:").concat(H,", samplingIndex:").concat(ht)),/firefox/i.test(Te)?ht>=6?(H=5,ve=new Array(4),Z=ht-3):(H=2,ve=new Array(2),Z=ht):Te.indexOf("android")!==-1?(H=2,ve=new Array(2),Z=ht):(H=5,ve=new Array(4),W&&(W.indexOf("mp4a.40.29")!==-1||W.indexOf("mp4a.40.5")!==-1)||!W&&ht>=6?Z=ht-3:((W&&W.indexOf("mp4a.40.2")!==-1&&(ht>=6&&ne===1||/vivaldi/i.test(Te))||!W&&ne===1)&&(H=2,ve=new Array(2)),Z=ht)),ve[0]=H<<3,ve[0]|=(ht&14)>>1,ve[1]|=(ht&1)<<7,ve[1]|=ne<<3,H===5&&(ve[1]|=(Z&14)>>1,ve[2]=(Z&1)<<7,ve[2]|=2<<2,ve[3]=0),{config:ve,samplerate:ot[ht],channelCount:ne,codec:"mp4a.40."+H,manifestCodec:Ve}}function wo(Ae,q){return Ae[q]===255&&(Ae[q+1]&246)===240}function ts(Ae,q){return Ae[q+1]&1?7:9}function Ia(Ae,q){return(Ae[q+3]&3)<<11|Ae[q+4]<<3|(Ae[q+5]&224)>>>5}function Oo(Ae,q){return q+5<Ae.length}function Io(Ae,q){return q+1<Ae.length&&wo(Ae,q)}function os(Ae,q){return Oo(Ae,q)&&wo(Ae,q)&&Ia(Ae,q)<=Ae.length-q}function xo(Ae,q){if(Io(Ae,q)){var L=ts(Ae,q);if(q+L>=Ae.length)return!1;var W=Ia(Ae,q);if(W<=L)return!1;var H=q+W;return H===Ae.length||Io(Ae,H)}return!1}function rs(Ae,q,L,W,H){if(!Ae.samplerate){var Z=Uo(q,L,W,H);if(!Z)return;Ae.config=Z.config,Ae.samplerate=Z.samplerate,Ae.channelCount=Z.channelCount,Ae.codec=Z.codec,Ae.manifestCodec=Z.manifestCodec,j.log("parsed codec:".concat(Ae.codec,", rate:").concat(Z.samplerate,", channels:").concat(Z.channelCount))}}function Ho(Ae){return 1024*9e4/Ae}function _o(Ae,q){var L=ts(Ae,q);if(q+L<=Ae.length){var W=Ia(Ae,q)-L;if(W>0)return{headerLength:L,frameLength:W}}}function uo(Ae,q,L,W,H){var Z=Ho(Ae.samplerate),ne=W+H*Z,ve=_o(q,L),Te;if(ve){var Ve=ve.frameLength,ot=ve.headerLength,ht=ot+Ve,Qt=Math.max(0,L+ht-q.length);Qt?(Te=new Uint8Array(ht-ot),Te.set(q.subarray(L+ot,q.length),0)):Te=q.subarray(L+ot,L+ht);var Cr={unit:Te,pts:ne};return Qt||Ae.samples.push(Cr),{sample:Cr,length:ht,missing:Qt}}var wr=q.length-L;Te=new Uint8Array(wr),Te.set(q.subarray(L,q.length),0);var Kr={unit:Te,pts:ne};return{sample:Kr,length:wr,missing:-1}}var Ha=function(Ae){Object(a.a)(L,Ae);var q=Object(e.a)(L);function L(W,H){var Z;return Object(r.a)(this,L),Z=q.call(this),Z.observer=void 0,Z.config=void 0,Z.observer=W,Z.config=H,Z}return Object(s.a)(L,[{key:"resetInitSegment",value:function(H,Z,ne,ve){Object(t.a)(Object(m.a)(L.prototype),"resetInitSegment",this).call(this,H,Z,ne,ve),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:Z,duration:ve,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(H,Z){return os(H,Z)}},{key:"appendFrame",value:function(H,Z,ne){rs(H,this.observer,Z,ne,H.manifestCodec);var ve=uo(H,Z,ne,this.basePTS,this.frameIndex);if(ve&&ve.missing===0)return ve}}],[{key:"probe",value:function(H){if(!H)return!1;for(var Z=at(H,0)||[],ne=Z.length,ve=H.length;ne<ve;ne++)if(xo(H,ne))return j.log("ADTS sync word found !"),!0;return!1}}]),L}(to),ft=/\/emsg[-/]ID3/i,Tr=function(){function Ae(q,L){Object(r.a)(this,Ae),this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=L}return Object(s.a)(Ae,[{key:"resetTimeStamp",value:function(){}},{key:"resetInitSegment",value:function(L,W,H,Z){var ne=this.videoTrack=bo("video",1),ve=this.audioTrack=bo("audio",1),Te=this.txtTrack=bo("text",1);if(this.id3Track=bo("id3",1),this.timeOffset=0,!(L!=null&&L.byteLength))return;var Ve=on(L);if(Ve.video){var ot=Ve.video,ht=ot.id,Qt=ot.timescale,Cr=ot.codec;ne.id=ht,ne.timescale=Te.timescale=Qt,ne.codec=Cr}if(Ve.audio){var wr=Ve.audio,Kr=wr.id,Jr=wr.timescale,Cn=wr.codec;ve.id=Kr,ve.timescale=Jr,ve.codec=Cn}Te.id=rr.text,ne.sampleDuration=0,ne.duration=ve.duration=Z}},{key:"resetContiguity",value:function(){this.remainderData=null}},{key:"demux",value:function(L,W){this.timeOffset=W;var H=L,Z=this.videoTrack,ne=this.txtTrack;if(this.config.progressive){this.remainderData&&(H=Nt(this.remainderData,L));var ve=$t(H);this.remainderData=ve.remainder,Z.samples=ve.valid||new Uint8Array}else Z.samples=H;var Te=this.extractID3Track(Z,W);return ne.samples=Me(W,Z),{videoTrack:Z,audioTrack:this.audioTrack,id3Track:Te,textTrack:this.txtTrack}}},{key:"flush",value:function(){var L=this.timeOffset,W=this.videoTrack,H=this.txtTrack;W.samples=this.remainderData||new Uint8Array,this.remainderData=null;var Z=this.extractID3Track(W,this.timeOffset);return H.samples=Me(L,W),{videoTrack:W,audioTrack:bo(),id3Track:Z,textTrack:bo()}}},{key:"extractID3Track",value:function(L,W){var H=this.id3Track;if(L.samples.length){var Z=Zt(L.samples,["emsg"]);Z&&Z.forEach(function(ne){var ve=Tt(ne);if(ft.test(ve.schemeIdUri)){var Te=T(ve.presentationTime)?ve.presentationTime/ve.timeScale:W+ve.presentationTimeDelta/ve.timeScale,Ve=ve.eventDuration===4294967295?Number.POSITIVE_INFINITY:ve.eventDuration/ve.timeScale;Ve<=.001&&(Ve=Number.POSITIVE_INFINITY);var ot=ve.payload;H.samples.push({data:ot,len:ot.byteLength,dts:Te,pts:Te,type:Ur.emsg,duration:Ve})}})}return H}},{key:"demuxSampleAes",value:function(L,W,H){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}},{key:"destroy",value:function(){}}],[{key:"probe",value:function(L){return L=L.length>16384?L.subarray(0,16384):L,Zt(L,["moof"]).length>0}}]),Ae}(),qr=null,Yr=[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],Yn=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],dn=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Gr=[0,1,1,4];function ri(Ae,q,L,W,H){if(L+24>q.length)return;var Z=rn(q,L);if(Z&&L+Z.frameLength<=q.length){var ne=Z.samplesPerFrame*9e4/Z.sampleRate,ve=W+H*ne,Te={unit:q.subarray(L,L+Z.frameLength),pts:ve,dts:ve};return Ae.config=[],Ae.channelCount=Z.channelCount,Ae.samplerate=Z.sampleRate,Ae.samples.push(Te),{sample:Te,length:Z.frameLength,missing:0}}}function rn(Ae,q){var L=Ae[q+1]>>3&3,W=Ae[q+1]>>1&3,H=Ae[q+2]>>4&15,Z=Ae[q+2]>>2&3;if(L!==1&&H!==0&&H!==15&&Z!==3){var ne=Ae[q+2]>>1&1,ve=Ae[q+3]>>6,Te=L===3?3-W:W===3?3:4,Ve=Yr[Te*14+H-1]*1e3,ot=L===3?0:L===2?1:2,ht=Yn[ot*3+Z],Qt=ve===3?1:2,Cr=dn[L][W],wr=Gr[W],Kr=Cr*8*wr,Jr=Math.floor(Cr*Ve/ht+ne)*wr;if(qr===null){var Cn=navigator.userAgent||"",Nn=Cn.match(/Chrome\/(\d+)/i);qr=Nn?parseInt(Nn[1]):0}var Jn=!!qr&&qr<=87;return Jn&&W===2&&Ve>=224e3&&ve===0&&(Ae[q+3]=Ae[q+3]|128),{sampleRate:ht,channelCount:Qt,frameLength:Jr,samplesPerFrame:Kr}}}function Hn(Ae,q){return Ae[q]===255&&(Ae[q+1]&224)===224&&(Ae[q+1]&6)!==0}function li(Ae,q){return q+1<Ae.length&&Hn(Ae,q)}function ci(Ae,q){var L=4;return Hn(Ae,q)&&L<=Ae.length-q}function si(Ae,q){if(q+1<Ae.length&&Hn(Ae,q)){var L=4,W=rn(Ae,q),H=L;W!=null&&W.frameLength&&(H=W.frameLength);var Z=q+H;return Z===Ae.length||li(Ae,Z)}return!1}var Ti=function(){function Ae(q){Object(r.a)(this,Ae),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)(Ae,[{key:"loadWord",value:function(){var L=this.data,W=this.bytesAvailable,H=L.byteLength-W,Z=new Uint8Array(4),ne=Math.min(4,W);if(ne===0)throw new Error("no bytes available");Z.set(L.subarray(H,H+ne)),this.word=new DataView(Z.buffer).getUint32(0),this.bitsAvailable=ne*8,this.bytesAvailable-=ne}},{key:"skipBits",value:function(L){var W;L=Math.min(L,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>L?(this.word<<=L,this.bitsAvailable-=L):(L-=this.bitsAvailable,W=L>>3,L-=W<<3,this.bytesAvailable-=W,this.loadWord(),this.word<<=L,this.bitsAvailable-=L)}},{key:"readBits",value:function(L){var W=Math.min(this.bitsAvailable,L),H=this.word>>>32-W;if(L>32&&j.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=W,this.bitsAvailable>0)this.word<<=W;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return W=L-W,W>0&&this.bitsAvailable?H<<W|this.readBits(W):H}},{key:"skipLZ",value:function(){var L;for(L=0;L<this.bitsAvailable;++L)if((this.word&2147483648>>>L)!==0)return this.word<<=L,this.bitsAvailable-=L,L;return this.loadWord(),L+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"skipEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"readUEG",value:function(){var L=this.skipLZ();return this.readBits(L+1)-1}},{key:"readEG",value:function(){var L=this.readUEG();return 1&L?1+L>>>1:-1*(L>>>1)}},{key:"readBoolean",value:function(){return this.readBits(1)===1}},{key:"readUByte",value:function(){return this.readBits(8)}},{key:"readUShort",value:function(){return this.readBits(16)}},{key:"readUInt",value:function(){return this.readBits(32)}},{key:"skipScalingList",value:function(L){for(var W=8,H=8,Z,ne=0;ne<L;ne++)H!==0&&(Z=this.readEG(),H=(W+Z+256)%256),W=H===0?W:H}},{key:"readSPS",value:function(){var L=0,W=0,H=0,Z=0,ne,ve,Te,Ve=this.readUByte.bind(this),ot=this.readBits.bind(this),ht=this.readUEG.bind(this),Qt=this.readBoolean.bind(this),Cr=this.skipBits.bind(this),wr=this.skipEG.bind(this),Kr=this.skipUEG.bind(this),Jr=this.skipScalingList.bind(this);Ve();var Cn=Ve();if(ot(5),Cr(3),Ve(),Kr(),Cn===100||Cn===110||Cn===122||Cn===244||Cn===44||Cn===83||Cn===86||Cn===118||Cn===128){var Nn=ht();if(Nn===3&&Cr(1),Kr(),Kr(),Cr(1),Qt())for(ve=Nn!==3?8:12,Te=0;Te<ve;Te++)Qt()&&(Te<6?Jr(16):Jr(64))}Kr();var Jn=ht();if(Jn===0)ht();else if(Jn===1)for(Cr(1),wr(),wr(),ne=ht(),Te=0;Te<ne;Te++)wr();Kr(),Cr(1);var bi=ht(),ua=ht(),Vi=ot(1);Vi===0&&Cr(1),Cr(1),Qt()&&(L=ht(),W=ht(),H=ht(),Z=ht());var Zi=[1,1];if(Qt()&&Qt()){var ka=Ve();switch(ka){case 1:Zi=[1,1];break;case 2:Zi=[12,11];break;case 3:Zi=[10,11];break;case 4:Zi=[16,11];break;case 5:Zi=[40,33];break;case 6:Zi=[24,11];break;case 7:Zi=[20,11];break;case 8:Zi=[32,11];break;case 9:Zi=[80,33];break;case 10:Zi=[18,11];break;case 11:Zi=[15,11];break;case 12:Zi=[64,33];break;case 13:Zi=[160,99];break;case 14:Zi=[4,3];break;case 15:Zi=[3,2];break;case 16:Zi=[2,1];break;case 255:{Zi=[Ve()<<8|Ve(),Ve()<<8|Ve()];break}}}return{width:Math.ceil((bi+1)*16-L*2-W*2),height:(2-Vi)*(ua+1)*16-(Vi?2:4)*(H+Z),pixelRatio:Zi}}},{key:"readSliceType",value:function(){return this.readUByte(),this.readUEG(),this.readUEG()}}]),Ae}(),mi=function(){function Ae(q,L,W){Object(r.a)(this,Ae),this.keyData=void 0,this.decrypter=void 0,this.keyData=W,this.decrypter=new _a(L,{removePKCS7Padding:!1})}return Object(s.a)(Ae,[{key:"decryptBuffer",value:function(L){return this.decrypter.decrypt(L,this.keyData.key.buffer,this.keyData.iv.buffer)}},{key:"decryptAacSample",value:function(L,W,H){var Z=this,ne=L[W].unit;if(ne.length<=16)return;var ve=ne.subarray(16,ne.length-ne.length%16),Te=ve.buffer.slice(ve.byteOffset,ve.byteOffset+ve.length);this.decryptBuffer(Te).then(function(Ve){var ot=new Uint8Array(Ve);ne.set(ot,16),Z.decrypter.isSync()||Z.decryptAacSamples(L,W+1,H)})}},{key:"decryptAacSamples",value:function(L,W,H){for(;;W++){if(W>=L.length){H();return}if(L[W].unit.length<32)continue;if(this.decryptAacSample(L,W,H),!this.decrypter.isSync())return}}},{key:"getAvcEncryptedData",value:function(L){for(var W=Math.floor((L.length-48)/160)*16+16,H=new Int8Array(W),Z=0,ne=32;ne<L.length-16;ne+=160,Z+=16)H.set(L.subarray(ne,ne+16),Z);return H}},{key:"getAvcDecryptedUnit",value:function(L,W){for(var H=new Uint8Array(W),Z=0,ne=32;ne<L.length-16;ne+=160,Z+=16)L.set(H.subarray(Z,Z+16),ne);return L}},{key:"decryptAvcSample",value:function(L,W,H,Z,ne){var ve=this,Te=yt(ne.data),Ve=this.getAvcEncryptedData(Te);this.decryptBuffer(Ve.buffer).then(function(ot){ne.data=ve.getAvcDecryptedUnit(Te,ot),ve.decrypter.isSync()||ve.decryptAvcSamples(L,W,H+1,Z)})}},{key:"decryptAvcSamples",value:function(L,W,H,Z){if(L instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;W++,H=0){if(W>=L.length){Z();return}for(var ne=L[W].units;!(H>=ne.length);H++){var ve=ne[H];if(ve.data.length<=48||ve.type!==1&&ve.type!==5)continue;if(this.decryptAvcSample(L,W,H,Z,ve),!this.decrypter.isSync())return}}}}]),Ae}(),vi=188,Li=function(){function Ae(q,L,W){Object(r.a)(this,Ae),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=q,this.config=L,this.typeSupported=W}return Object(s.a)(Ae,[{key:"resetInitSegment",value:function(L,W,H,Z){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=Ae.createTrack("video"),this._audioTrack=Ae.createTrack("audio",Z),this._id3Track=Ae.createTrack("id3"),this._txtTrack=Ae.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.audioCodec=W,this.videoCodec=H,this._duration=Z}},{key:"resetTimeStamp",value:function(){}},{key:"resetContiguity",value:function(){var L=this._audioTrack,W=this._avcTrack,H=this._id3Track;L&&(L.pesData=null),W&&(W.pesData=null),H&&(H.pesData=null),this.aacOverFlow=null,this.avcSample=null,this.remainderData=null}},{key:"demux",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;H||(this.sampleAes=null);var ne,ve=this._avcTrack,Te=this._audioTrack,Ve=this._id3Track,ot=this._txtTrack,ht=ve.pid,Qt=ve.pesData,Cr=Te.pid,wr=Ve.pid,Kr=Te.pesData,Jr=Ve.pesData,Cn=null,Nn=this.pmtParsed,Jn=this._pmtId,bi=L.length;if(this.remainderData&&(L=Nt(this.remainderData,L),bi=L.length,this.remainderData=null),bi<vi&&!Z)return this.remainderData=L,{audioTrack:Te,videoTrack:ve,id3Track:Ve,textTrack:ot};var ua=Math.max(0,Ae.syncOffset(L));bi-=(bi-ua)%vi,bi<L.byteLength&&!Z&&(this.remainderData=new Uint8Array(L.buffer,bi,L.buffer.byteLength-bi));for(var Vi=0,Zi=ua;Zi<bi;Zi+=vi)if(L[Zi]===71){var ka=!!(L[Zi+1]&64),Ga=Ki(L,Zi),Ba=(L[Zi+3]&48)>>4,Sa=void 0;if(Ba>1){if(Sa=Zi+5+L[Zi+4],Sa===Zi+vi)continue}else Sa=Zi+4;switch(Ga){case ht:ka&&(Qt&&(ne=xa(Qt))&&this.parseAVCPES(ve,ot,ne,!1),Qt={data:[],size:0}),Qt&&(Qt.data.push(L.subarray(Sa,Zi+vi)),Qt.size+=Zi+vi-Sa);break;case Cr:if(ka){if(Kr&&(ne=xa(Kr)))switch(Te.segmentCodec){case"aac":this.parseAACPES(Te,ne);break;case"mp3":this.parseMPEGPES(Te,ne);break}Kr={data:[],size:0}}Kr&&(Kr.data.push(L.subarray(Sa,Zi+vi)),Kr.size+=Zi+vi-Sa);break;case wr:ka&&(Jr&&(ne=xa(Jr))&&this.parseID3PES(Ve,ne),Jr={data:[],size:0}),Jr&&(Jr.data.push(L.subarray(Sa,Zi+vi)),Jr.size+=Zi+vi-Sa);break;case 0:ka&&(Sa+=L[Sa]+1),Jn=this._pmtId=fa(L,Sa);break;case Jn:{ka&&(Sa+=L[Sa]+1);var Go=Ya(L,Sa,this.typeSupported,H);ht=Go.avc,ht>0&&(ve.pid=ht),Cr=Go.audio,Cr>0&&(Te.pid=Cr,Te.segmentCodec=Go.segmentCodec),wr=Go.id3,wr>0&&(Ve.pid=wr),Cn!==null&&!Nn&&(j.warn("MPEG-TS PMT found at ".concat(Zi," after unknown PID '").concat(Cn,"'. Backtracking to sync byte @").concat(ua," to parse all TS packets.")),Cn=null,Zi=ua-188),Nn=this.pmtParsed=!0;break}case 17:case 8191:break;default:Cn=Ga;break}}else Vi++;if(Vi>0){var bs=new Error("Found ".concat(Vi," TS packet/s that do not start with 0x47"));this.observer.emit(S.ERROR,S.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:bs,reason:bs.message})}ve.pesData=Qt,Te.pesData=Kr,Ve.pesData=Jr;var ys={audioTrack:Te,videoTrack:ve,id3Track:Ve,textTrack:ot};return Z&&this.extractRemainingSamples(ys),ys}},{key:"flush",value:function(){var L=this.remainderData;this.remainderData=null;var W;return L?W=this.demux(L,-1,!1,!0):W={videoTrack:this._avcTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(W),this.sampleAes?this.decrypt(W,this.sampleAes):W}},{key:"extractRemainingSamples",value:function(L){var W=L.audioTrack,H=L.videoTrack,Z=L.id3Track,ne=L.textTrack,ve=H.pesData,Te=W.pesData,Ve=Z.pesData,ot;if(ve&&(ot=xa(ve))?(this.parseAVCPES(H,ne,ot,!0),H.pesData=null):H.pesData=ve,Te&&(ot=xa(Te))){switch(W.segmentCodec){case"aac":this.parseAACPES(W,ot);break;case"mp3":this.parseMPEGPES(W,ot);break}W.pesData=null}else Te!=null&&Te.size&&j.log("last AAC PES packet truncated,might overlap between fragments"),W.pesData=Te;Ve&&(ot=xa(Ve))?(this.parseID3PES(Z,ot),Z.pesData=null):Z.pesData=Ve}},{key:"demuxSampleAes",value:function(L,W,H){var Z=this.demux(L,H,!0,!this.config.progressive),ne=this.sampleAes=new mi(this.observer,this.config,W);return this.decrypt(Z,ne)}},{key:"decrypt",value:function(L,W){return new Promise(function(H){var Z=L.audioTrack,ne=L.videoTrack;Z.samples&&Z.segmentCodec==="aac"?W.decryptAacSamples(Z.samples,0,function(){ne.samples?W.decryptAvcSamples(ne.samples,0,0,function(){H(L)}):H(L)}):ne.samples&&W.decryptAvcSamples(ne.samples,0,0,function(){H(L)})})}},{key:"destroy",value:function(){this._duration=0}},{key:"parseAVCPES",value:function(L,W,H,Z){var ne=this,ve=this.parseAVCNALu(L,H.data),Te=this.avcSample,Ve,ot=!1;H.data=null,Te&&ve.length&&!L.audFound&&(wa(Te,L),Te=this.avcSample=ia(!1,H.pts,H.dts,"")),ve.forEach(function(ht){var Qt;switch(ht.type){case 1:{var Cr=!1;Ve=!0;var wr=ht.data;if(ot&&wr.length>4){var Kr=new Ti(wr).readSliceType();(Kr===2||Kr===4||Kr===7||Kr===9)&&(Cr=!0)}if(Cr){var Jr;(Jr=Te)!=null&&Jr.frame&&!Te.key&&(wa(Te,L),Te=ne.avcSample=null)}Te||(Te=ne.avcSample=ia(!0,H.pts,H.dts,"")),Te.frame=!0,Te.key=Cr;break}case 5:Ve=!0,(Qt=Te)!=null&&Qt.frame&&!Te.key&&(wa(Te,L),Te=ne.avcSample=null),Te||(Te=ne.avcSample=ia(!0,H.pts,H.dts,"")),Te.key=!0,Te.frame=!0;break;case 6:{Ve=!0,it(ht.data,1,H.pts,W.samples);break}case 7:if(Ve=!0,ot=!0,!L.sps){var Cn=ht.data,Nn=new Ti(Cn),Jn=Nn.readSPS();L.width=Jn.width,L.height=Jn.height,L.pixelRatio=Jn.pixelRatio,L.sps=[Cn],L.duration=ne._duration;for(var bi=Cn.subarray(1,4),ua="avc1.",Vi=0;Vi<3;Vi++){var Zi=bi[Vi].toString(16);Zi.length<2&&(Zi="0"+Zi),ua+=Zi}L.codec=ua}break;case 8:Ve=!0,L.pps||(L.pps=[ht.data]);break;case 9:Ve=!1,L.audFound=!0,Te&&wa(Te,L),Te=ne.avcSample=ia(!1,H.pts,H.dts,"");break;case 12:Ve=!0;break;default:Ve=!1,Te&&(Te.debug+="unknown NAL "+ht.type+" ");break}if(Te&&Ve){var ka=Te.units;ka.push(ht)}}),Z&&Te&&(wa(Te,L),this.avcSample=null)}},{key:"getLastNalUnit",value:function(L){var W,H=this.avcSample,Z;if((!H||H.units.length===0)&&(H=L[L.length-1]),(W=H)!=null&&W.units){var ne=H.units;Z=ne[ne.length-1]}return Z}},{key:"parseAVCNALu",value:function(L,W){var H=W.byteLength,Z=L.naluState||0,ne=Z,ve=[],Te=0,Ve,ot,ht,Qt=-1,Cr=0;for(Z===-1&&(Qt=0,Cr=W[0]&31,Z=0,Te=1);Te<H;){if(Ve=W[Te++],!Z){Z=Ve?0:1;continue}if(Z===1){Z=Ve?0:2;continue}if(!Ve)Z=3;else if(Ve===1){if(Qt>=0){var wr={data:W.subarray(Qt,Te-Z-1),type:Cr};ve.push(wr)}else{var Kr=this.getLastNalUnit(L.samples);if(Kr&&(ne&&Te<=4-ne&&(Kr.state&&(Kr.data=Kr.data.subarray(0,Kr.data.byteLength-ne))),ot=Te-Z-1,ot>0)){var Jr=new Uint8Array(Kr.data.byteLength+ot);Jr.set(Kr.data,0),Jr.set(W.subarray(0,ot),Kr.data.byteLength),Kr.data=Jr,Kr.state=0}}Te<H?(ht=W[Te]&31,Qt=Te,Cr=ht,Z=0):Z=-1}else Z=0}if(Qt>=0&&Z>=0){var Cn={data:W.subarray(Qt,H),type:Cr,state:Z};ve.push(Cn)}if(ve.length===0){var Nn=this.getLastNalUnit(L.samples);if(Nn){var Jn=new Uint8Array(Nn.data.byteLength+W.byteLength);Jn.set(Nn.data,0),Jn.set(W,Nn.data.byteLength),Nn.data=Jn}}return L.naluState=Z,ve}},{key:"parseAACPES",value:function(L,W){var H=0,Z=this.aacOverFlow,ne=W.data;if(Z){this.aacOverFlow=null;var ve=Z.missing,Te=Z.sample.unit.byteLength;if(ve===-1){var Ve=new Uint8Array(Te+ne.byteLength);Ve.set(Z.sample.unit,0),Ve.set(ne,Te),ne=Ve}else{var ot=Te-ve;Z.sample.unit.set(ne.subarray(0,ve),ot),L.samples.push(Z.sample),H=Z.missing}}var ht,Qt;for(ht=H,Qt=ne.length;ht<Qt-1&&!Io(ne,ht);ht++);if(ht!==H){var Cr,wr=ht<Qt-1;wr?Cr="AAC PES did not start with ADTS header,offset:".concat(ht):Cr="No ADTS header found in AAC PES";var Kr=new Error(Cr);if(j.warn("parsing error: ".concat(Cr)),this.observer.emit(S.ERROR,S.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,levelRetry:wr,error:Kr,reason:Cr}),!wr)return}rs(L,this.observer,ne,ht,this.audioCodec);var Jr;if(W.pts!==void 0)Jr=W.pts;else if(Z){var Cn=Ho(L.samplerate);Jr=Z.sample.pts+Cn}else{j.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var Nn=0,Jn;ht<Qt;)if(Jn=uo(L,ne,ht,Jr,Nn),ht+=Jn.length,Jn.missing){this.aacOverFlow=Jn;break}else for(Nn++;ht<Qt-1&&!Io(ne,ht);ht++);}},{key:"parseMPEGPES",value:function(L,W){var H=W.data,Z=H.length,ne=0,ve=0,Te=W.pts;if(Te===void 0){j.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;ve<Z;)if(li(H,ve)){var Ve=ri(L,H,ve,Te,ne);if(Ve)ve+=Ve.length,ne++;else break}else ve++}},{key:"parseID3PES",value:function(L,W){if(W.pts===void 0){j.warn("[tsdemuxer]: ID3 PES unknown PTS");return}var H=E({},W,{type:this._avcTrack?Ur.emsg:Ur.audioId3,duration:Number.POSITIVE_INFINITY});L.samples.push(H)}}],[{key:"probe",value:function(L){var W=Ae.syncOffset(L);return W>0&&j.warn("MPEG2-TS detected but first sync word found @ offset ".concat(W)),W!==-1}},{key:"syncOffset",value:function(L){for(var W=L.length,H=Math.min(vi*5,L.length-vi)+1,Z=0;Z<H;){for(var ne=!1,ve=-1,Te=0,Ve=Z;Ve<W;Ve+=vi)if(L[Ve]===71){if(Te++,ve===-1&&(ve=Ve,ve!==0&&(H=Math.min(ve+vi*99,L.length-vi)+1)),ne||(ne=Ki(L,Ve)===0),ne&&Te>1&&(ve===0&&Te>2||Ve+vi>H))return ve}else{if(Te)return-1;break}Z++}return-1}},{key:"createTrack",value:function(L,W){return{container:L==="video"||L==="audio"?"video/mp2t":void 0,type:L,id:rr[L],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:L==="audio"?W:void 0}}}]),Ae}();function ia(Ae,q,L,W){return{key:Ae,frame:!1,pts:q,dts:L,units:[],debug:W,length:0}}function Ki(Ae,q){return((Ae[q+1]&31)<<8)+Ae[q+2]}function fa(Ae,q){return(Ae[q+10]&31)<<8|Ae[q+11]}function Ya(Ae,q,L,W){var H={audio:-1,avc:-1,id3:-1,segmentCodec:"aac"},Z=(Ae[q+1]&15)<<8|Ae[q+2],ne=q+3+Z-4,ve=(Ae[q+10]&15)<<8|Ae[q+11];for(q+=12+ve;q<ne;){var Te=Ki(Ae,q);switch(Ae[q]){case 207:if(!W){j.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:H.audio===-1&&(H.audio=Te);break;case 21:H.id3===-1&&(H.id3=Te);break;case 219:if(!W){j.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:H.avc===-1&&(H.avc=Te);break;case 3:case 4:L.mpeg!==!0&&L.mp3!==!0?j.log("MPEG audio found, not supported in this browser"):H.audio===-1&&(H.audio=Te,H.segmentCodec="mp3");break;case 36:j.warn("Unsupported HEVC stream type found");break}q+=((Ae[q+3]&15)<<8|Ae[q+4])+5}return H}function xa(Ae){var q=0,L,W,H,Z,ne,ve=Ae.data;if(!Ae||Ae.size===0)return null;for(;ve[0].length<19&&ve.length>1;){var Te=new Uint8Array(ve[0].length+ve[1].length);Te.set(ve[0]),Te.set(ve[1],ve[0].length),ve[0]=Te,ve.splice(1,1)}L=ve[0];var Ve=(L[0]<<16)+(L[1]<<8)+L[2];if(Ve===1){if(W=(L[4]<<8)+L[5],W&&W>Ae.size-6)return null;var ot=L[7];ot&192&&(Z=(L[9]&14)*536870912+(L[10]&255)*4194304+(L[11]&254)*16384+(L[12]&255)*128+(L[13]&254)/2,ot&64?(ne=(L[14]&14)*536870912+(L[15]&255)*4194304+(L[16]&254)*16384+(L[17]&255)*128+(L[18]&254)/2,Z-ne>60*9e4&&(j.warn("".concat(Math.round((Z-ne)/9e4),"s delta between PTS and DTS, align them")),Z=ne)):ne=Z),H=L[8];var ht=H+9;if(Ae.size<=ht)return null;Ae.size-=ht;for(var Qt=new Uint8Array(Ae.size),Cr=0,wr=ve.length;Cr<wr;Cr++){L=ve[Cr];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 W&&(W-=H+3),{data:Qt,pts:Z,dts:ne,len:W}}return null}function wa(Ae,q){if(Ae.units.length&&Ae.frame){if(Ae.pts===void 0){var L=q.samples,W=L.length;if(W){var H=L[W-1];Ae.pts=H.pts,Ae.dts=H.dts}else{q.dropped++;return}}q.samples.push(Ae)}Ae.debug.length&&j.log(Ae.pts+"/"+Ae.dts+":"+Ae.debug)}var Da=function(Ae){Object(a.a)(L,Ae);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,Z,ne,ve){Object(t.a)(Object(m.a)(L.prototype),"resetInitSegment",this).call(this,H,Z,ne,ve),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:Z,duration:ve,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(H,Z){return ci(H,Z)}},{key:"appendFrame",value:function(H,Z,ne){return this.basePTS===null?void 0:ri(H,Z,ne,this.basePTS,this.frameIndex)}}],[{key:"probe",value:function(H){if(!H)return!1;for(var Z=at(H,0)||[],ne=Z.length,ve=H.length;ne<ve;ne++)if(si(H,ne))return j.log("MPEG Audio sync word found !"),!0;return!1}}]),L}(to),ja=function(){function Ae(){Object(r.a)(this,Ae)}return Object(s.a)(Ae,null,[{key:"getSilentFrame",value:function(L,W){switch(L){case"mp4a.40.2":if(W===1)return new Uint8Array([0,200,0,128,35,128]);if(W===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(W===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(W===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(W===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(W===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(W===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(W===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(W===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return}}]),Ae}(),ko=Math.pow(2,32)-1,ro=function(){function Ae(){Object(r.a)(this,Ae)}return Object(s.a)(Ae,null,[{key:"init",value:function(){Ae.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var L;for(L in Ae.types)Ae.types.hasOwnProperty(L)&&(Ae.types[L]=[L.charCodeAt(0),L.charCodeAt(1),L.charCodeAt(2),L.charCodeAt(3)]);var W=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),H=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);Ae.HDLR_TYPES={video:W,audio:H};var Z=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ne=new Uint8Array([0,0,0,0,0,0,0,0]);Ae.STTS=Ae.STSC=Ae.STCO=ne,Ae.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ae.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Ae.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ae.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var ve=new Uint8Array([105,115,111,109]),Te=new Uint8Array([97,118,99,49]),Ve=new Uint8Array([0,0,0,1]);Ae.FTYP=Ae.box(Ae.types.ftyp,ve,Ve,ve,Te),Ae.DINF=Ae.box(Ae.types.dinf,Ae.box(Ae.types.dref,Z))}},{key:"box",value:function(L){for(var W=8,H=arguments.length,Z=new Array(H>1?H-1:0),ne=1;ne<H;ne++)Z[ne-1]=arguments[ne];for(var ve=Z.length,Te=ve;ve--;)W+=Z[ve].byteLength;var Ve=new Uint8Array(W);for(Ve[0]=W>>24&255,Ve[1]=W>>16&255,Ve[2]=W>>8&255,Ve[3]=W&255,Ve.set(L,4),ve=0,W=8;ve<Te;ve++)Ve.set(Z[ve],W),W+=Z[ve].byteLength;return Ve}},{key:"hdlr",value:function(L){return Ae.box(Ae.types.hdlr,Ae.HDLR_TYPES[L])}},{key:"mdat",value:function(L){return Ae.box(Ae.types.mdat,L)}},{key:"mdhd",value:function(L,W){W*=L;var H=Math.floor(W/(ko+1)),Z=Math.floor(W%(ko+1));return Ae.box(Ae.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,L>>24&255,L>>16&255,L>>8&255,L&255,H>>24,H>>16&255,H>>8&255,H&255,Z>>24,Z>>16&255,Z>>8&255,Z&255,85,196,0,0]))}},{key:"mdia",value:function(L){return Ae.box(Ae.types.mdia,Ae.mdhd(L.timescale,L.duration),Ae.hdlr(L.type),Ae.minf(L))}},{key:"mfhd",value:function(L){return Ae.box(Ae.types.mfhd,new Uint8Array([0,0,0,0,L>>24,L>>16&255,L>>8&255,L&255]))}},{key:"minf",value:function(L){return L.type==="audio"?Ae.box(Ae.types.minf,Ae.box(Ae.types.smhd,Ae.SMHD),Ae.DINF,Ae.stbl(L)):Ae.box(Ae.types.minf,Ae.box(Ae.types.vmhd,Ae.VMHD),Ae.DINF,Ae.stbl(L))}},{key:"moof",value:function(L,W,H){return Ae.box(Ae.types.moof,Ae.mfhd(L),Ae.traf(H,W))}},{key:"moov",value:function(L){for(var W=L.length,H=[];W--;)H[W]=Ae.trak(L[W]);return Ae.box.apply(null,[Ae.types.moov,Ae.mvhd(L[0].timescale,L[0].duration)].concat(H).concat(Ae.mvex(L)))}},{key:"mvex",value:function(L){for(var W=L.length,H=[];W--;)H[W]=Ae.trex(L[W]);return Ae.box.apply(null,[Ae.types.mvex].concat(H))}},{key:"mvhd",value:function(L,W){W*=L;var H=Math.floor(W/(ko+1)),Z=Math.floor(W%(ko+1)),ne=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,L>>24&255,L>>16&255,L>>8&255,L&255,H>>24,H>>16&255,H>>8&255,H&255,Z>>24,Z>>16&255,Z>>8&255,Z&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return Ae.box(Ae.types.mvhd,ne)}},{key:"sdtp",value:function(L){var W=L.samples||[],H=new Uint8Array(4+W.length),Z,ne;for(Z=0;Z<W.length;Z++)ne=W[Z].flags,H[Z+4]=ne.dependsOn<<4|ne.isDependedOn<<2|ne.hasRedundancy;return Ae.box(Ae.types.sdtp,H)}},{key:"stbl",value:function(L){return Ae.box(Ae.types.stbl,Ae.stsd(L),Ae.box(Ae.types.stts,Ae.STTS),Ae.box(Ae.types.stsc,Ae.STSC),Ae.box(Ae.types.stsz,Ae.STSZ),Ae.box(Ae.types.stco,Ae.STCO))}},{key:"avc1",value:function(L){var W=[],H=[],Z,ne,ve;for(Z=0;Z<L.sps.length;Z++)ne=L.sps[Z],ve=ne.byteLength,W.push(ve>>>8&255),W.push(ve&255),W=W.concat(Array.prototype.slice.call(ne));for(Z=0;Z<L.pps.length;Z++)ne=L.pps[Z],ve=ne.byteLength,H.push(ve>>>8&255),H.push(ve&255),H=H.concat(Array.prototype.slice.call(ne));var Te=Ae.box(Ae.types.avcC,new Uint8Array([1,W[3],W[4],W[5],252|3,224|L.sps.length].concat(W).concat([L.pps.length]).concat(H))),Ve=L.width,ot=L.height,ht=L.pixelRatio[0],Qt=L.pixelRatio[1];return Ae.box(Ae.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Ve>>8&255,Ve&255,ot>>8&255,ot&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]),Te,Ae.box(Ae.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ae.box(Ae.types.pasp,new Uint8Array([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 W=L.config.length;return new Uint8Array([0,0,0,0,3,23+W,0,1,0,4,15+W,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([W]).concat(L.config).concat([6,1,2]))}},{key:"mp4a",value:function(L){var W=L.samplerate;return Ae.box(Ae.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,L.channelCount,0,16,0,0,0,0,W>>8&255,W&255,0,0]),Ae.box(Ae.types.esds,Ae.esds(L)))}},{key:"mp3",value:function(L){var W=L.samplerate;return Ae.box(Ae.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,L.channelCount,0,16,0,0,0,0,W>>8&255,W&255,0,0]))}},{key:"stsd",value:function(L){return L.type==="audio"?L.segmentCodec==="mp3"&&L.codec==="mp3"?Ae.box(Ae.types.stsd,Ae.STSD,Ae.mp3(L)):Ae.box(Ae.types.stsd,Ae.STSD,Ae.mp4a(L)):Ae.box(Ae.types.stsd,Ae.STSD,Ae.avc1(L))}},{key:"tkhd",value:function(L){var W=L.id,H=L.duration*L.timescale,Z=L.width,ne=L.height,ve=Math.floor(H/(ko+1)),Te=Math.floor(H%(ko+1));return Ae.box(Ae.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,W>>24&255,W>>16&255,W>>8&255,W&255,0,0,0,0,ve>>24,ve>>16&255,ve>>8&255,ve&255,Te>>24,Te>>16&255,Te>>8&255,Te&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,Z>>8&255,Z&255,0,0,ne>>8&255,ne&255,0,0]))}},{key:"traf",value:function(L,W){var H=Ae.sdtp(L),Z=L.id,ne=Math.floor(W/(ko+1)),ve=Math.floor(W%(ko+1));return Ae.box(Ae.types.traf,Ae.box(Ae.types.tfhd,new Uint8Array([0,0,0,0,Z>>24,Z>>16&255,Z>>8&255,Z&255])),Ae.box(Ae.types.tfdt,new Uint8Array([1,0,0,0,ne>>24,ne>>16&255,ne>>8&255,ne&255,ve>>24,ve>>16&255,ve>>8&255,ve&255])),Ae.trun(L,H.length+16+20+8+16+8+8),H)}},{key:"trak",value:function(L){return L.duration=L.duration||4294967295,Ae.box(Ae.types.trak,Ae.tkhd(L),Ae.mdia(L))}},{key:"trex",value:function(L){var W=L.id;return Ae.box(Ae.types.trex,new Uint8Array([0,0,0,0,W>>24,W>>16&255,W>>8&255,W&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trun",value:function(L,W){var H=L.samples||[],Z=H.length,ne=12+16*Z,ve=new Uint8Array(ne),Te,Ve,ot,ht,Qt,Cr;for(W+=8+ne,ve.set([L.type==="video"?1:0,0,15,1,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z&255,W>>>24&255,W>>>16&255,W>>>8&255,W&255],0),Te=0;Te<Z;Te++)Ve=H[Te],ot=Ve.duration,ht=Ve.size,Qt=Ve.flags,Cr=Ve.cts,ve.set([ot>>>24&255,ot>>>16&255,ot>>>8&255,ot&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,Cr>>>24&255,Cr>>>16&255,Cr>>>8&255,Cr&255],12+16*Te);return Ae.box(Ae.types.trun,ve)}},{key:"initSegment",value:function(L){Ae.types||Ae.init();var W=Ae.moov(L),H=new Uint8Array(Ae.FTYP.byteLength+W.byteLength);return H.set(Ae.FTYP),H.set(W,Ae.FTYP.byteLength),H}}]),Ae}();ro.types=void 0,ro.HDLR_TYPES=void 0,ro.STTS=void 0,ro.STSC=void 0,ro.STCO=void 0,ro.STSZ=void 0,ro.VMHD=void 0,ro.SMHD=void 0,ro.STSD=void 0,ro.FTYP=void 0,ro.DINF=void 0;var pa=9e4;function Ea(Ae,q){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,H=Ae*q*L;return W?Math.round(H):H}function Fa(Ae,q){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ea(Ae,q,1/L,W)}function Ka(Ae){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ea(Ae,1e3,1/pa,q)}function lo(Ae){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Ea(Ae,pa,1/q)}var so=10*1e3,Co=1024,Lo=1152,is=null,cs=null,Rs=function(){function Ae(q,L,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";if(Object(r.a)(this,Ae),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=q,this.config=L,this.typeSupported=W,this.ISGenerated=!1,is===null){var Z=navigator.userAgent||"",ne=Z.match(/Chrome\/(\d+)/i);is=ne?parseInt(ne[1]):0}if(cs===null){var ve=navigator.userAgent.match(/Safari\/(\d+)/i);cs=ve?parseInt(ve[1]):0}}return Object(s.a)(Ae,[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(L){j.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=L}},{key:"resetNextTimestamp",value:function(){j.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}},{key:"resetInitSegment",value:function(){j.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1}},{key:"getVideoStartPts",value:function(L){var W=!1,H=L.reduce(function(Z,ne){var ve=ne.pts-Z;return ve<-4294967296?(W=!0,Ko(Z,ne.pts)):ve>0?Z:ne.pts},L[0].pts);return W&&j.debug("PTS rollover detected"),H}},{key:"remux",value:function(L,W,H,Z,ne,ve,Te,Ve){var ot,ht,Qt,Cr,wr,Kr,Jr=ne,Cn=ne,Nn=L.pid>-1,Jn=W.pid>-1,bi=W.samples.length,ua=L.samples.length>0,Vi=Te&&bi>0||bi>1,Zi=(!Nn||ua)&&(!Jn||Vi)||this.ISGenerated||Te;if(Zi){this.ISGenerated||(Qt=this.generateIS(L,W,ne,ve));var ka=this.isVideoContiguous,Ga=-1,Ba;if(Vi&&(Ga=as(W.samples),!ka&&this.config.forceKeyFrameOnDiscontinuity))if(Kr=!0,Ga>0){j.warn("[mp4-remuxer]: Dropped ".concat(Ga," out of ").concat(bi," video samples due to a missing keyframe"));var Sa=this.getVideoStartPts(W.samples);W.samples=W.samples.slice(Ga),W.dropped+=Ga,Cn+=(W.samples[0].pts-Sa)/W.inputTimeScale,Ba=Cn}else Ga===-1&&(j.warn("[mp4-remuxer]: No keyframe found out of ".concat(bi," video samples")),Kr=!1);if(this.ISGenerated){if(ua&&Vi){var Go=this.getVideoStartPts(W.samples),bs=Ko(L.samples[0].pts,Go)-Go,ys=bs/W.inputTimeScale;Jr+=Math.max(0,ys),Cn+=Math.max(0,-ys)}if(ua){if(L.samplerate||(j.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),Qt=this.generateIS(L,W,ne,ve)),ht=this.remuxAudio(L,Jr,this.isAudioContiguous,ve,Jn||Vi||Ve===pt.AUDIO?Cn:void 0),Vi){var Cs=ht?ht.endPTS-ht.startPTS:0;W.inputTimeScale||(j.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),Qt=this.generateIS(L,W,ne,ve)),ot=this.remuxVideo(W,Cn,ka,Cs)}}else Vi&&(ot=this.remuxVideo(W,Cn,ka,0));ot&&(ot.firstKeyFrame=Ga,ot.independent=Ga!==-1,ot.firstKeyFramePTS=Ba)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(H.samples.length&&(wr=co(H,ne,this._initPTS,this._initDTS)),Z.samples.length&&(Cr=Ao(Z,ne,this._initPTS))),{audio:ht,video:ot,initSegment:Qt,independent:Kr,text:Cr,id3:wr}}},{key:"generateIS",value:function(L,W,H,Z){var ne=L.samples,ve=W.samples,Te=this.typeSupported,Ve={},ot=this._initPTS,ht=!ot||Z,Qt="audio/mp4",Cr,wr,Kr;if(ht&&(Cr=wr=Infinity),L.config&&ne.length){L.timescale=L.samplerate;switch(L.segmentCodec){case"mp3":Te.mpeg?(Qt="audio/mpeg",L.codec=""):Te.mp3&&(L.codec="mp3");break}Ve.audio={id:"audio",container:Qt,codec:L.codec,initSegment:L.segmentCodec==="mp3"&&Te.mpeg?new Uint8Array(0):ro.initSegment([L]),metadata:{channelCount:L.channelCount}},ht&&(Kr=L.inputTimeScale,!ot||Kr!==ot.timescale?Cr=wr=ne[0].pts-Math.round(Kr*H):ht=!1)}if(W.sps&&W.pps&&ve.length&&(W.timescale=W.inputTimeScale,Ve.video={id:"main",container:"video/mp4",codec:W.codec,initSegment:ro.initSegment([W]),metadata:{width:W.width,height:W.height}},ht))if(Kr=W.inputTimeScale,!ot||Kr!==ot.timescale){var Jr=this.getVideoStartPts(ve),Cn=Math.round(Kr*H);wr=Math.min(wr,Ko(ve[0].dts,Jr)-Cn),Cr=Math.min(Cr,Jr-Cn)}else ht=!1;if(Object.keys(Ve).length)return this.ISGenerated=!0,ht?(this._initPTS={baseTime:Cr,timescale:Kr},this._initDTS={baseTime:wr,timescale:Kr}):Cr=Kr=void 0,{tracks:Ve,initPTS:Cr,timescale:Kr}}},{key:"remuxVideo",value:function(L,W,H,Z){var ne=L.inputTimeScale,ve=L.samples,Te=[],Ve=ve.length,ot=this._initPTS,ht=this.nextAvcDts,Qt=8,Cr=this.videoSampleDuration,wr,Kr,Jr=Number.POSITIVE_INFINITY,Cn=Number.NEGATIVE_INFINITY,Nn=!1;if(!H||ht===null){var Jn=W*ne,bi=ve[0].pts-Ko(ve[0].dts,ve[0].pts);ht=Jn-bi}for(var ua=ot.baseTime*ne/ot.timescale,Vi=0;Vi<Ve;Vi++){var Zi=ve[Vi];Zi.pts=Ko(Zi.pts-ua,ht),Zi.dts=Ko(Zi.dts-ua,ht),Zi.dts<ve[Vi>0?Vi-1:Vi].dts&&(Nn=!0)}Nn&&ve.sort(function(We,Lt){var nr=We.dts-Lt.dts,br=We.pts-Lt.pts;return nr||br}),wr=ve[0].dts,Kr=ve[ve.length-1].dts;var ka=Kr-wr,Ga=ka?Math.round(ka/(Ve-1)):Cr||L.inputTimeScale/30;if(H){var Ba=wr-ht,Sa=Ba>Ga,Go=Ba<-1;if((Sa||Go)&&(Sa?j.warn("AVC: ".concat(Ka(Ba,!0)," ms (").concat(Ba,"dts) hole between fragments detected, filling it")):j.warn("AVC: ".concat(Ka(-Ba,!0)," ms (").concat(Ba,"dts) overlapping between fragments detected")),!Go||ht>=ve[0].pts)){wr=ht;var bs=ve[0].pts-Ba;ve[0].dts=wr,ve[0].pts=bs,j.log("Video: First PTS/DTS adjusted: ".concat(Ka(bs,!0),"/").concat(Ka(wr,!0),", delta: ").concat(Ka(Ba,!0)," ms"))}}wr=Math.max(0,wr);for(var ys=0,Cs=0,js=0;js<Ve;js++){for(var ws=ve[js],Hs=ws.units,Ee=Hs.length,Ye=0,Et=0;Et<Ee;Et++)Ye+=Hs[Et].data.length;Cs+=Ye,ys+=Ee,ws.length=Ye,ws.dts=Math.max(ws.dts,wr),Jr=Math.min(ws.pts,Jr),Cn=Math.max(ws.pts,Cn)}Kr=ve[Ve-1].dts;var cr=Cs+4*ys+8,Fr;try{Fr=new Uint8Array(cr)}catch(We){this.observer.emit(S.ERROR,S.ERROR,{type:O.MUX_ERROR,details:I.REMUX_ALLOC_ERROR,fatal:!1,error:We,bytes:cr,reason:"fail allocating video mdat ".concat(cr)});return}var sn=new DataView(Fr.buffer);sn.setUint32(0,cr),Fr.set(ro.types.mdat,4);for(var je=!1,oe=Number.POSITIVE_INFINITY,Oe=Number.POSITIVE_INFINITY,$e=Number.NEGATIVE_INFINITY,bt=Number.NEGATIVE_INFINITY,Vt=0;Vt<Ve;Vt++){for(var er=ve[Vt],ir=er.units,zr=0,hn=0,Wr=ir.length;hn<Wr;hn++){var jr=ir[hn],ln=jr.data,yn=jr.data.byteLength;sn.setUint32(Qt,yn),Qt+=4,Fr.set(ln,Qt),Qt+=yn,zr+=4+yn}var Wn=void 0;if(Vt<Ve-1)Cr=ve[Vt+1].dts-er.dts,Wn=ve[Vt+1].pts-er.pts;else{var Ii=this.config,ki=Vt>0?er.dts-ve[Vt-1].dts:Ga;if(Wn=Vt>0?er.pts-ve[Vt-1].pts:Ga,Ii.stretchShortVideoTrack&&this.nextAudioPts!==null){var da=Math.floor(Ii.maxBufferHole*ne),$i=(Z?Jr+Z*ne:this.nextAudioPts)-er.pts;$i>da?(Cr=$i-ki,Cr<0?Cr=ki:je=!0,j.log("[mp4-remuxer]: It is approximately ".concat($i/90," ms to the next segment; using duration ").concat(Cr/90," ms for the last video frame."))):Cr=ki}else Cr=ki}var Qa=Math.round(er.pts-er.dts);oe=Math.min(oe,Cr),$e=Math.max($e,Cr),Oe=Math.min(Oe,Wn),bt=Math.max(bt,Wn),Te.push(new $a(er.key,Cr,zr,Qa))}if(Te.length){if(is){if(is<70){var ya=Te[0].flags;ya.dependsOn=2,ya.isNonSync=0}}else if(cs&&(bt-Oe<$e-oe&&Ga/$e<.025&&Te[0].cts===0)){j.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var fo=wr,za=0,Xo=Te.length;za<Xo;za++){var ls=fo+Te[za].duration,N=fo+Te[za].cts;if(za<Xo-1){var U=ls+Te[za+1].cts;Te[za].duration=U-N}else Te[za].duration=za?Te[za-1].duration:Ga;Te[za].cts=0,fo=ls}}}Cr=je||!Cr?Ga:Cr,this.nextAvcDts=ht=Kr+Cr,this.videoSampleDuration=Cr,this.isVideoContiguous=!0;var ie=ro.moof(L.sequenceNumber++,wr,E({},L,{samples:Te})),ue="video",ge={data1:ie,data2:Fr,startPTS:Jr/ne,endPTS:(Cn+Cr)/ne,startDTS:wr/ne,endDTS:ht/ne,type:ue,hasAudio:!1,hasVideo:!0,nb:Te.length,dropped:L.dropped};return L.samples=[],L.dropped=0,ge}},{key:"remuxAudio",value:function(L,W,H,Z,ne){var ve=L.inputTimeScale,Te=L.samplerate?L.samplerate:ve,Ve=ve/Te,ot=L.segmentCodec==="aac"?Co:Lo,ht=ot*Ve,Qt=this._initPTS,Cr=L.segmentCodec==="mp3"&&this.typeSupported.mpeg,wr=[],Kr=ne!==void 0,Jr=L.samples,Cn=Cr?0:8,Nn=this.nextAudioPts||-1,Jn=W*ve,bi=Qt.baseTime*ve/Qt.timescale;if(this.isAudioContiguous=H=H||Jr.length&&Nn>0&&(Z&&Math.abs(Jn-Nn)<9e3||Math.abs(Ko(Jr[0].pts-bi,Jn)-Nn)<20*ht),Jr.forEach(function(jr){jr.pts=Ko(jr.pts-bi,Jn)}),!H||Nn<0){if(Jr=Jr.filter(function(jr){return jr.pts>=0}),!Jr.length)return;ne===0?Nn=0:Z&&!Kr?Nn=Math.max(0,Jn):Nn=Jr[0].pts}if(L.segmentCodec==="aac")for(var ua=this.config.maxAudioFramesDrift,Vi=0,Zi=Nn;Vi<Jr.length;Vi++){var ka=Jr[Vi],Ga=ka.pts,Ba=Ga-Zi,Sa=Math.abs(1e3*Ba/ve);if(Ba<=-ua*ht&&Kr)Vi===0&&(j.warn("Audio frame @ ".concat((Ga/ve).toFixed(3),"s overlaps nextAudioPts by ").concat(Math.round(1e3*Ba/ve)," ms.")),this.nextAudioPts=Nn=Zi=Ga);else if(Ba>=ua*ht&&Sa<so&&Kr){var Go=Math.round(Ba/ht);Zi=Ga-Go*ht,Zi<0&&(Go--,Zi+=ht),Vi===0&&(this.nextAudioPts=Nn=Zi),j.warn("[mp4-remuxer]: Injecting ".concat(Go," audio frame @ ").concat((Zi/ve).toFixed(3),"s due to ").concat(Math.round(1e3*Ba/ve)," ms gap."));for(var bs=0;bs<Go;bs++){var ys=Math.max(Zi,0),Cs=ja.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);Cs||(j.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Cs=ka.unit.subarray()),Jr.splice(Vi,0,{unit:Cs,pts:ys}),Zi+=ht,Vi++}}ka.pts=Zi,Zi+=ht}for(var js=null,ws=null,Hs,Ee=0,Ye=Jr.length;Ye--;)Ee+=Jr[Ye].unit.byteLength;for(var Et=0,cr=Jr.length;Et<cr;Et++){var Fr=Jr[Et],sn=Fr.unit,je=Fr.pts;if(ws!==null){var oe=wr[Et-1];oe.duration=Math.round((je-ws)/Ve)}else if(H&&L.segmentCodec==="aac"&&(je=Nn),js=je,Ee>0){Ee+=Cn;try{Hs=new Uint8Array(Ee)}catch(jr){this.observer.emit(S.ERROR,S.ERROR,{type:O.MUX_ERROR,details:I.REMUX_ALLOC_ERROR,fatal:!1,error:jr,bytes:Ee,reason:"fail allocating audio mdat ".concat(Ee)});return}if(!Cr){var Oe=new DataView(Hs.buffer);Oe.setUint32(0,Ee),Hs.set(ro.types.mdat,4)}}else return;Hs.set(sn,Cn);var $e=sn.byteLength;Cn+=$e,wr.push(new $a(!0,ot,$e,0)),ws=je}var bt=wr.length;if(!bt)return;var Vt=wr[wr.length-1];this.nextAudioPts=Nn=ws+Ve*Vt.duration;var er=Cr?new Uint8Array(0):ro.moof(L.sequenceNumber++,js/Ve,E({},L,{samples:wr}));L.samples=[];var ir=js/ve,zr=Nn/ve,hn="audio",Wr={data1:er,data2:Hs,startPTS:ir,endPTS:zr,startDTS:ir,endDTS:zr,type:hn,hasAudio:!0,hasVideo:!1,nb:bt};return this.isAudioContiguous=!0,Wr}},{key:"remuxEmptyAudio",value:function(L,W,H,Z){var ne=L.inputTimeScale,ve=L.samplerate?L.samplerate:ne,Te=ne/ve,Ve=this.nextAudioPts,ot=this._initDTS,ht=ot.baseTime*9e4/ot.timescale,Qt=(Ve!==null?Ve:Z.startDTS*ne)+ht,Cr=Z.endDTS*ne+ht,wr=Te*Co,Kr=Math.ceil((Cr-Qt)/wr),Jr=ja.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);if(j.warn("[mp4-remuxer]: remux empty Audio"),!Jr){j.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var Cn=[],Nn=0;Nn<Kr;Nn++){var Jn=Qt+Nn*wr;Cn.push({unit:Jr,pts:Jn,dts:Jn})}return L.samples=Cn,this.remuxAudio(L,W,H,!1)}}]),Ae}();function Ko(Ae,q){var L;if(q===null)return Ae;for(q<Ae?L=-8589934592:L=8589934592;Math.abs(Ae-q)>4294967296;)Ae+=L;return Ae}function as(Ae){for(var q=0;q<Ae.length;q++)if(Ae[q].key)return q;return-1}function co(Ae,q,L,W){var H=Ae.samples.length;if(!H)return;for(var Z=Ae.inputTimeScale,ne=0;ne<H;ne++){var ve=Ae.samples[ne];ve.pts=Ko(ve.pts-L.baseTime*Z/L.timescale,q*Z)/Z,ve.dts=Ko(ve.dts-W.baseTime*Z/W.timescale,q*Z)/Z}var Te=Ae.samples;return Ae.samples=[],{samples:Te}}function Ao(Ae,q,L){var W=Ae.samples.length;if(!W)return;for(var H=Ae.inputTimeScale,Z=0;Z<W;Z++){var ne=Ae.samples[Z];ne.pts=Ko(ne.pts-L.baseTime*H/L.timescale,q*H)/H}Ae.samples.sort(function(Te,Ve){return Te.pts-Ve.pts});var ve=Ae.samples;return Ae.samples=[],{samples:ve}}var $a=Object(s.a)(function Ae(q,L,W,H){Object(r.a)(this,Ae),this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=L,this.size=W,this.cts=H,this.flags=new ss(q)}),ss=Object(s.a)(function Ae(q){Object(r.a)(this,Ae),this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=q?2:1,this.isNonSync=q?0:1}),_s=function(){function Ae(){Object(r.a)(this,Ae),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}return Object(s.a)(Ae,[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(L){this.initPTS=L,this.lastEndTime=null}},{key:"resetNextTimestamp",value:function(){this.lastEndTime=null}},{key:"resetInitSegment",value:function(L,W,H,Z){this.audioCodec=W,this.videoCodec=H,this.generateInitSegment(Mn(L,Z)),this.emitInitSegment=!0}},{key:"generateInitSegment",value:function(L){var W=this.audioCodec,H=this.videoCodec;if(!(L!=null&&L.byteLength)){this.initTracks=void 0,this.initData=void 0;return}var Z=this.initData=on(L);W||(W=il(Z.audio,le.AUDIO)),H||(H=il(Z.video,le.VIDEO));var ne={};Z.audio&&Z.video?ne.audiovideo={container:"video/mp4",codec:W+","+H,initSegment:L,id:"main"}:Z.audio?ne.audio={container:"audio/mp4",codec:W,initSegment:L,id:"audio"}:Z.video?ne.video={container:"video/mp4",codec:H,initSegment:L,id:"main"}:j.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=ne}},{key:"remux",value:function(L,W,H,Z,ne,ve){var Te,Ve,ot=this.initPTS,ht=this.lastEndTime,Qt={audio:void 0,video:void 0,text:Z,id3:H,initSegment:void 0};T(ht)||(ht=this.lastEndTime=ne||0);var Cr=W.samples;if(!(Cr!=null&&Cr.length))return Qt;var wr={initPTS:void 0,timescale:1},Kr=this.initData;if((Te=Kr)!=null&&Te.length||(this.generateInitSegment(Cr),Kr=this.initData),!((Ve=Kr)!=null&&Ve.length))return j.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),Qt;this.emitInitSegment&&(wr.tracks=this.initTracks,this.emitInitSegment=!1);var Jr=Ui(Cr,Kr),Cn=oi(Kr,Cr),Nn=Cn===null?ne:Cn;(Fo(ot,Nn,ne,Jr)||wr.timescale!==ot.timescale&&ve)&&(wr.initPTS=Nn-ne,ot&&ot.timescale===1&&j.warn("Adjusting initPTS by ".concat(wr.initPTS-ot.baseTime)),this.initPTS=ot={baseTime:wr.initPTS,timescale:1});var Jn=L?Nn-ot.baseTime/ot.timescale:ht,bi=Jn+Jr;Qn(Kr,Cr,ot.baseTime/ot.timescale),Jr>0?this.lastEndTime=bi:(j.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var ua=!!Kr.audio,Vi=!!Kr.video,Zi="";ua&&(Zi+="audio"),Vi&&(Zi+="video");var ka={data1:Cr,startPTS:Jn,startDTS:Jn,endPTS:bi,endDTS:bi,type:Zi,hasAudio:ua,hasVideo:Vi,nb:1,dropped:0};return Qt.audio=ka.type==="audio"?ka:void 0,Qt.video=ka.type!=="audio"?ka:void 0,Qt.initSegment=wr,Qt.id3=co(H,ne,ot,ot),Z.samples.length&&(Qt.text=Ao(Z,ne,ot)),Qt}}]),Ae}();function Fo(Ae,q,L,W){if(Ae===null)return!0;var H=Math.max(W,1),Z=q-Ae.baseTime/Ae.timescale;return Math.abs(Z-L)>H}function il(Ae,q){var L=Ae==null?void 0:Ae.codec;return L&&L.length>4?L:L==="hvc1"||L==="hev1"?"hvc1.1.6.L120.90":L==="av01"?"av01.0.04M.08":L==="avc1"||q===le.VIDEO?"avc1.42e01e":"mp4a.40.5"}var Eo;try{Eo=self.performance.now.bind(self.performance)}catch(Ae){j.debug("Unable to use Performance API on this environment"),Eo=typeof self!="undefined"&&self.Date.now}var zo=[{demux:Tr,remux:_s},{demux:Li,remux:Rs},{demux:Ha,remux:Rs},{demux:Da,remux:Rs}],Fs=function(){function Ae(q,L,W,H,Z){Object(r.a)(this,Ae),this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=q,this.typeSupported=L,this.config=W,this.vendor=H,this.id=Z}return Object(s.a)(Ae,[{key:"configure",value:function(L){this.transmuxConfig=L,this.decrypter&&this.decrypter.reset()}},{key:"push",value:function(L,W,H,Z){var ne=this,ve=H.transmuxing;ve.executeStart=Eo();var Te=new Uint8Array(L),Ve=this.currentTransmuxState,ot=this.transmuxConfig;Z&&(this.currentTransmuxState=Z);var ht=Z||Ve,Qt=ht.contiguous,Cr=ht.discontinuity,wr=ht.trackSwitch,Kr=ht.accurateTimeOffset,Jr=ht.timeOffset,Cn=ht.initSegmentChange,Nn=ot.audioCodec,Jn=ot.videoCodec,bi=ot.defaultInitPts,ua=ot.duration,Vi=ot.initSegmentData,Zi=ms(Te,W);if(Zi&&Zi.method==="AES-128"){var ka=this.getDecrypter();if(ka.isSync()){var Ga=ka.softwareDecrypt(Te,Zi.key.buffer,Zi.iv.buffer),Ba=H.part>-1;if(Ba&&(Ga=ka.flush()),!Ga)return ve.executeEnd=Eo(),hs(H);Te=new Uint8Array(Ga)}else return this.decryptionPromise=ka.webCryptoDecrypt(Te,Zi.key.buffer,Zi.iv.buffer).then(function(Cs){var js=ne.push(Cs,null,H);return ne.decryptionPromise=null,js}),this.decryptionPromise}var Sa=this.needsProbing(Cr,wr);if(Sa){var Go=this.configureTransmuxer(Te);if(Go)return j.warn("[transmuxer] ".concat(Go.message)),this.observer.emit(S.ERROR,S.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:Go,reason:Go.message}),ve.executeEnd=Eo(),hs(H)}(Cr||wr||Cn||Sa)&&this.resetInitSegment(Vi,Nn,Jn,ua,W),(Cr||Cn||Sa)&&this.resetInitialTimestamp(bi),Qt||this.resetContiguity();var bs=this.transmux(Te,Zi,Jr,Kr,H),ys=this.currentTransmuxState;return ys.contiguous=!0,ys.discontinuity=!1,ys.trackSwitch=!1,ve.executeEnd=Eo(),bs}},{key:"flush",value:function(L){var W=this,H=L.transmuxing;H.executeStart=Eo();var Z=this.decrypter,ne=this.currentTransmuxState,ve=this.decryptionPromise;if(ve)return ve.then(function(){return W.flush(L)});var Te=[],Ve=ne.timeOffset;if(Z){var ot=Z.flush();ot&&Te.push(this.push(ot,null,L))}var ht=this.demuxer,Qt=this.remuxer;if(!ht||!Qt)return H.executeEnd=Eo(),[hs(L)];var Cr=ht.flush(Ve);return bn(Cr)?Cr.then(function(wr){return W.flushRemux(Te,wr,L),Te}):(this.flushRemux(Te,Cr,L),Te)}},{key:"flushRemux",value:function(L,W,H){var Z=W.audioTrack,ne=W.videoTrack,ve=W.id3Track,Te=W.textTrack,Ve=this.currentTransmuxState,ot=Ve.accurateTimeOffset,ht=Ve.timeOffset;j.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(Z,ne,ve,Te,ht,ot,!0,this.id);L.push({remuxResult:Qt,chunkMeta:H}),H.transmuxing.executeEnd=Eo()}},{key:"resetInitialTimestamp",value:function(L){var W=this.demuxer,H=this.remuxer;if(!W||!H)return;W.resetTimeStamp(L),H.resetTimeStamp(L)}},{key:"resetContiguity",value:function(){var L=this.demuxer,W=this.remuxer;if(!L||!W)return;L.resetContiguity(),W.resetNextTimestamp()}},{key:"resetInitSegment",value:function(L,W,H,Z,ne){var ve=this.demuxer,Te=this.remuxer;if(!ve||!Te)return;ve.resetInitSegment(L,W,H,Z),Te.resetInitSegment(L,W,H,ne)}},{key:"destroy",value:function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}},{key:"transmux",value:function(L,W,H,Z,ne){var ve;return W&&W.method==="SAMPLE-AES"?ve=this.transmuxSampleAes(L,W,H,Z,ne):ve=this.transmuxUnencrypted(L,H,Z,ne),ve}},{key:"transmuxUnencrypted",value:function(L,W,H,Z){var ne=this.demuxer.demux(L,W,!1,!this.config.progressive),ve=ne.audioTrack,Te=ne.videoTrack,Ve=ne.id3Track,ot=ne.textTrack,ht=this.remuxer.remux(ve,Te,Ve,ot,W,H,!1,this.id);return{remuxResult:ht,chunkMeta:Z}}},{key:"transmuxSampleAes",value:function(L,W,H,Z,ne){var ve=this;return this.demuxer.demuxSampleAes(L,W,H).then(function(Te){var Ve=ve.remuxer.remux(Te.audioTrack,Te.videoTrack,Te.id3Track,Te.textTrack,H,Z,!1,ve.id);return{remuxResult:Ve,chunkMeta:ne}})}},{key:"configureTransmuxer",value:function(L){for(var W=this.config,H=this.observer,Z=this.typeSupported,ne=this.vendor,ve,Te=0,Ve=zo.length;Te<Ve;Te++)if(zo[Te].demux.probe(L)){ve=zo[Te];break}if(!ve)return new Error("Failed to find demuxer by probing fragment data");var ot=this.demuxer,ht=this.remuxer,Qt=ve.remux,Cr=ve.demux;(!ht||!(ht instanceof Qt))&&(this.remuxer=new Qt(H,W,Z,ne)),(!ot||!(ot instanceof Cr))&&(this.demuxer=new Cr(H,W,Z),this.probe=Cr.probe)}},{key:"needsProbing",value:function(L,W){return!this.demuxer||!this.remuxer||L||W}},{key:"getDecrypter",value:function(){var L=this.decrypter;return L||(L=this.decrypter=new _a(this.config)),L}}]),Ae}();function ms(Ae,q){var L=null;return Ae.byteLength>0&&q!=null&&q.key!=null&&q.iv!==null&&q.method!=null&&(L=q),L}var hs=function(q){return{remuxResult:{},chunkMeta:q}};function bn(Ae){return"then"in Ae&&Ae.then instanceof Function}var Ns=Object(s.a)(function Ae(q,L,W,H,Z){Object(r.a)(this,Ae),this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=q,this.videoCodec=L,this.initSegmentData=W,this.duration=H,this.defaultInitPts=Z||null}),Ll=Object(s.a)(function Ae(q,L,W,H,Z,ne){Object(r.a)(this,Ae),this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=q,this.contiguous=L,this.accurateTimeOffset=W,this.trackSwitch=H,this.timeOffset=Z,this.initSegmentChange=ne}),el={exports:{}};(function(Ae){var q=Object.prototype.hasOwnProperty,L="~";function W(){}Object.create&&(W.prototype=Object.create(null),new W().__proto__||(L=!1));function H(Te,Ve,ot){this.fn=Te,this.context=Ve,this.once=ot||!1}function Z(Te,Ve,ot,ht,Qt){if(typeof ot!="function")throw new TypeError("The listener must be a function");var Cr=new H(ot,ht||Te,Qt),wr=L?L+Ve:Ve;return Te._events[wr]?Te._events[wr].fn?Te._events[wr]=[Te._events[wr],Cr]:Te._events[wr].push(Cr):(Te._events[wr]=Cr,Te._eventsCount++),Te}function ne(Te,Ve){--Te._eventsCount===0?Te._events=new W:delete Te._events[Ve]}function ve(){this._events=new W,this._eventsCount=0}ve.prototype.eventNames=function(){var Ve=[],ot,ht;if(this._eventsCount===0)return Ve;for(ht in ot=this._events)q.call(ot,ht)&&Ve.push(L?ht.slice(1):ht);return Object.getOwnPropertySymbols?Ve.concat(Object.getOwnPropertySymbols(ot)):Ve},ve.prototype.listeners=function(Ve){var ot=L?L+Ve:Ve,ht=this._events[ot];if(!ht)return[];if(ht.fn)return[ht.fn];for(var Qt=0,Cr=ht.length,wr=new Array(Cr);Qt<Cr;Qt++)wr[Qt]=ht[Qt].fn;return wr},ve.prototype.listenerCount=function(Ve){var ot=L?L+Ve:Ve,ht=this._events[ot];return ht?ht.fn?1:ht.length:0},ve.prototype.emit=function(Ve,ot,ht,Qt,Cr,wr){var Kr=L?L+Ve:Ve;if(!this._events[Kr])return!1;var Jr=this._events[Kr],Cn=arguments.length,Nn,Jn;if(Jr.fn){Jr.once&&this.removeListener(Ve,Jr.fn,void 0,!0);switch(Cn){case 1:return Jr.fn.call(Jr.context),!0;case 2:return Jr.fn.call(Jr.context,ot),!0;case 3:return Jr.fn.call(Jr.context,ot,ht),!0;case 4:return Jr.fn.call(Jr.context,ot,ht,Qt),!0;case 5:return Jr.fn.call(Jr.context,ot,ht,Qt,Cr),!0;case 6:return Jr.fn.call(Jr.context,ot,ht,Qt,Cr,wr),!0}for(Jn=1,Nn=new Array(Cn-1);Jn<Cn;Jn++)Nn[Jn-1]=arguments[Jn];Jr.fn.apply(Jr.context,Nn)}else{var bi=Jr.length,ua;for(Jn=0;Jn<bi;Jn++){Jr[Jn].once&&this.removeListener(Ve,Jr[Jn].fn,void 0,!0);switch(Cn){case 1:Jr[Jn].fn.call(Jr[Jn].context);break;case 2:Jr[Jn].fn.call(Jr[Jn].context,ot);break;case 3:Jr[Jn].fn.call(Jr[Jn].context,ot,ht);break;case 4:Jr[Jn].fn.call(Jr[Jn].context,ot,ht,Qt);break;default:if(!Nn)for(ua=1,Nn=new Array(Cn-1);ua<Cn;ua++)Nn[ua-1]=arguments[ua];Jr[Jn].fn.apply(Jr[Jn].context,Nn)}}}return!0},ve.prototype.on=function(Ve,ot,ht){return Z(this,Ve,ot,ht,!1)},ve.prototype.once=function(Ve,ot,ht){return Z(this,Ve,ot,ht,!0)},ve.prototype.removeListener=function(Ve,ot,ht,Qt){var Cr=L?L+Ve:Ve;if(!this._events[Cr])return this;if(!ot)return ne(this,Cr),this;var wr=this._events[Cr];if(wr.fn)wr.fn===ot&&(!Qt||wr.once)&&(!ht||wr.context===ht)&&ne(this,Cr);else{for(var Kr=0,Jr=[],Cn=wr.length;Kr<Cn;Kr++)(wr[Kr].fn!==ot||Qt&&!wr[Kr].once||ht&&wr[Kr].context!==ht)&&Jr.push(wr[Kr]);Jr.length?this._events[Cr]=Jr.length===1?Jr[0]:Jr:ne(this,Cr)}return this},ve.prototype.removeAllListeners=function(Ve){var ot;return Ve?(ot=L?L+Ve:Ve,this._events[ot]&&ne(this,ot)):(this._events=new W,this._eventsCount=0),this},ve.prototype.off=ve.prototype.removeListener,ve.prototype.addListener=ve.prototype.on,ve.prefixed=L,ve.EventEmitter=ve,Ae.exports=ve})(el);var Gs=el.exports,ds=c(Gs),ks=qt()||{isTypeSupported:function(){return!1}},Qs=function(){function Ae(q,L,W,H){var Z=this;Object(r.a)(this,Ae),this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;var ne=q.config;this.hls=q,this.id=L,this.useWorker=!!ne.enableWorker,this.onTransmuxComplete=W,this.onFlush=H;var ve=function(Cr,wr){wr=wr||{},wr.frag=Z.frag,wr.id=Z.id,Cr===S.ERROR&&(Z.error=wr.error),Z.hls.trigger(Cr,wr)};this.observer=new ds,this.observer.on(S.FRAG_DECRYPTED,ve),this.observer.on(S.ERROR,ve);var Te={mp4:ks.isTypeSupported("video/mp4"),mpeg:ks.isTypeSupported("audio/mpeg"),mp3:ks.isTypeSupported('audio/mp4; codecs="mp3"')},Ve=navigator.vendor;if(this.useWorker&&typeof Worker!="undefined"){var ot=ne.workerPath||To();if(ot){try{ne.workerPath?(j.log("loading Web Worker ".concat(ne.workerPath,' for "').concat(L,'"')),this.workerContext=So(ne.workerPath)):(j.log('injecting Web Worker for "'.concat(L,'"')),this.workerContext=ao()),this.onwmsg=function(Qt){return Z.onWorkerMessage(Qt)};var ht=this.workerContext.worker;ht.addEventListener("message",this.onwmsg),ht.onerror=function(Qt){var Cr=new Error("".concat(Qt.message," (").concat(Qt.filename,":").concat(Qt.lineno,")"));ne.enableWorker=!1,j.warn('Error in "'.concat(L,'" Web Worker, fallback to inline')),Z.hls.trigger(S.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:Cr})},ht.postMessage({cmd:"init",typeSupported:Te,vendor:Ve,id:L,config:JSON.stringify(ne)})}catch(Qt){j.warn('Error setting up "'.concat(L,'" Web Worker, fallback to inline'),Qt),this.resetWorker(),this.error=null,this.transmuxer=new Fs(this.observer,Te,ne,Ve,L)}return}}this.transmuxer=new Fs(this.observer,Te,ne,Ve,L)}return Object(s.a)(Ae,[{key:"resetWorker",value:function(){if(this.workerContext){var L=this.workerContext,W=L.worker,H=L.objectURL;H&&self.URL.revokeObjectURL(H),W.removeEventListener("message",this.onwmsg),W.onerror=null,W.terminate(),this.workerContext=null}}},{key:"destroy",value:function(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{var L=this.transmuxer;L&&(L.destroy(),this.transmuxer=null)}var W=this.observer;W&&W.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}},{key:"push",value:function(L,W,H,Z,ne,ve,Te,Ve,ot,ht){var Qt=this,Cr,wr;ot.transmuxing.start=self.performance.now();var Kr=this.transmuxer,Jr=ve?ve.start:ne.start,Cn=ne.decryptdata,Nn=this.frag,Jn=!(Nn&&ne.cc===Nn.cc),bi=!(Nn&&ot.level===Nn.level),ua=Nn?ot.sn-Nn.sn:-1,Vi=this.part?ot.part-this.part.index:-1,Zi=ua===0&&ot.id>1&&ot.id===(Nn==null?void 0:Nn.stats.chunkCount),ka=!bi&&(ua===1||ua===0&&(Vi===1||Zi&&Vi<=0)),Ga=self.performance.now();(bi||ua||ne.stats.parsing.start===0)&&(ne.stats.parsing.start=Ga),ve&&(Vi||!ka)&&(ve.stats.parsing.start=Ga);var Ba=!(Nn&&((Cr=ne.initSegment)==null?void 0:Cr.url)===((wr=Nn.initSegment)==null?void 0:wr.url)),Sa=new Ll(Jn,ka,Ve,bi,Jr,Ba);if(!ka||Jn||Ba){j.log("[transmuxer-interface, ".concat(ne.type,"]: Starting new transmux session for sn: ").concat(ot.sn," p: ").concat(ot.part," level: ").concat(ot.level," id: ").concat(ot.id,`
|
|
|
discontinuity: `).concat(Jn,`
|
|
|
trackSwitch: `).concat(bi,`
|
|
|
contiguous: `).concat(ka,`
|
|
|
accurateTimeOffset: `).concat(Ve,`
|
|
|
timeOffset: `).concat(Jr,`
|
|
|
initSegmentChange: `).concat(Ba));var Go=new Ns(H,Z,W,Te,ht);this.configureTransmuxer(Go)}if(this.frag=ne,this.part=ve,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:L,decryptdata:Cn,chunkMeta:ot,state:Sa},L instanceof ArrayBuffer?[L]:[]);else if(Kr){var bs=Kr.push(L,Cn,ot,Sa);bn(bs)?(Kr.async=!0,bs.then(function(ys){Qt.handleTransmuxComplete(ys)}).catch(function(ys){Qt.transmuxerError(ys,ot,"transmuxer-interface push error")})):(Kr.async=!1,this.handleTransmuxComplete(bs))}}},{key:"flush",value:function(L){var W=this;L.transmuxing.start=self.performance.now();var H=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:L});else if(H){var Z=H.flush(L),ne=bn(Z);ne||H.async?(bn(Z)||(Z=Promise.resolve(Z)),Z.then(function(ve){W.handleFlushResult(ve,L)}).catch(function(ve){W.transmuxerError(ve,L,"transmuxer-interface flush error")})):this.handleFlushResult(Z,L)}}},{key:"transmuxerError",value:function(L,W,H){if(!this.hls)return;this.error=L,this.hls.trigger(S.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,chunkMeta:W,fatal:!1,error:L,err:L,reason:H})}},{key:"handleFlushResult",value:function(L,W){var H=this;L.forEach(function(Z){H.handleTransmuxComplete(Z)}),this.onFlush(W)}},{key:"onWorkerMessage",value:function(L){var W=L.data,H=this.hls;switch(W.event){case"init":{var Z,ne=(Z=this.workerContext)==null?void 0:Z.objectURL;ne&&self.URL.revokeObjectURL(ne);break}case"transmuxComplete":{this.handleTransmuxComplete(W.data);break}case"flush":{this.onFlush(W.data);break}case"workerLog":j[W.data.logType]&&j[W.data.logType](W.data.message);break;default:{W.data=W.data||{},W.data.frag=this.frag,W.data.id=this.id,H.trigger(W.event,W.data);break}}}},{key:"configureTransmuxer",value:function(L){var W=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:L}):W&&W.configure(L)}},{key:"handleTransmuxComplete",value:function(L){L.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(L)}}]),Ae}(),tl=250,xs=2,Bs=.1,al=.05,Js=function(){function Ae(q,L,W,H){Object(r.a)(this,Ae),this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=q,this.media=L,this.fragmentTracker=W,this.hls=H}return Object(s.a)(Ae,[{key:"destroy",value:function(){this.media=null,this.hls=this.fragmentTracker=null}},{key:"poll",value:function(L,W){var H=this.config,Z=this.media,ne=this.stalled;if(Z===null)return;var ve=Z.currentTime,Te=Z.seeking,Ve=this.seeking&&!Te,ot=!this.seeking&&Te;if(this.seeking=Te,ve!==L){if(this.moved=!0,ne!==null){if(this.stallReported){var ht=self.performance.now()-ne;j.warn("playback not stuck anymore @".concat(ve,", after ").concat(Math.round(ht),"ms")),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if(ot||Ve){this.stalled=null;return}if(Z.paused&&!Te||Z.ended||Z.playbackRate===0||!Oi.getBuffered(Z).length)return;var Qt=Oi.bufferInfo(Z,ve,0),Cr=Qt.len>0,wr=Qt.nextStart||0;if(!Cr&&!wr)return;if(Te){var Kr=Qt.len>xs,Jr=!wr||W&&W.start<=ve||wr-ve>xs&&!this.fragmentTracker.getPartialFragment(ve);if(Kr||Jr)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var Cn,Nn=Math.max(wr,Qt.start||0)-ve,Jn=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,bi=Jn==null||(Cn=Jn.details)==null?void 0:Cn.live,ua=bi?Jn.details.targetduration*2:xs,Vi=this.fragmentTracker.getPartialFragment(ve);if(Nn>0&&(Nn<=ua||Vi)){this._trySkipBufferHole(Vi);return}}var Zi=self.performance.now();if(ne===null){this.stalled=Zi;return}var ka=Zi-ne;if(!Te&&ka>=tl&&(this._reportStall(Qt),!this.media))return;var Ga=Oi.bufferInfo(Z,ve,H.maxBufferHole);this._tryFixBufferStall(Ga,ka)}},{key:"_tryFixBufferStall",value:function(L,W){var H=this.config,Z=this.fragmentTracker,ne=this.media;if(ne===null)return;var ve=ne.currentTime,Te=Z.getPartialFragment(ve);if(Te){var Ve=this._trySkipBufferHole(Te);if(Ve||!this.media)return}(L.len>H.maxBufferHole||L.nextStart&&L.nextStart-ve<H.maxBufferHole)&&W>H.highBufferWatchdogPeriod*1e3&&(j.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},{key:"_reportStall",value:function(L){var W=this.hls,H=this.media,Z=this.stallReported;if(!Z&&H){this.stallReported=!0;var ne=new Error("Playback stalling at @".concat(H.currentTime," due to low buffer (").concat(JSON.stringify(L),")"));j.warn(ne.message),W.trigger(S.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_STALLED_ERROR,fatal:!1,error:ne,buffer:L.len})}}},{key:"_trySkipBufferHole",value:function(L){var W=this.config,H=this.hls,Z=this.media;if(Z===null)return 0;var ne=Z.currentTime,ve=Oi.bufferInfo(Z,ne,0),Te=ne<ve.start?ve.start:ve.nextStart;if(Te){var Ve=ve.len<=W.maxBufferHole,ot=ve.len>0&&ve.len<1&&Z.readyState<3,ht=Te-ne;if(ht>0&&(Ve||ot)){if(ht>W.maxBufferHole){var Qt=this.fragmentTracker,Cr=!1;if(ne===0){var wr=Qt.getAppendedFrag(0,pt.MAIN);wr&&Te<wr.end&&(Cr=!0)}if(!Cr){var Kr=L||Qt.getAppendedFrag(ne,pt.MAIN);if(Kr){for(var Jr=!1,Cn=Kr.end;Cn<Te;){var Nn=Qt.getPartialFragment(Cn);if(Nn)Cn+=Nn.duration;else{Jr=!0;break}}if(Jr)return 0}}}var Jn=Math.max(Te+al,ne+Bs);if(j.warn("skipping hole, adjusting currentTime from ".concat(ne," to ").concat(Jn)),this.moved=!0,this.stalled=null,Z.currentTime=Jn,L&&!L.gap){var bi=new Error("fragment loaded with buffer holes, seeking from ".concat(ne," to ").concat(Jn));H.trigger(S.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:bi,reason:bi.message,frag:L})}return Jn}}return 0}},{key:"_tryNudgeBuffer",value:function(){var L=this.config,W=this.hls,H=this.media,Z=this.nudgeRetry;if(H===null)return;var ne=H.currentTime;if(this.nudgeRetry++,Z<L.nudgeMaxRetry){var ve=ne+(Z+1)*L.nudgeOffset,Te=new Error("Nudging 'currentTime' from ".concat(ne," to ").concat(ve));j.warn(Te.message),H.currentTime=ve,W.trigger(S.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_NUDGE_ON_STALL,error:Te,fatal:!1})}else{var Ve=new Error("Playhead still not moving while enough data buffered @".concat(ne," after ").concat(L.nudgeMaxRetry," nudges"));j.error(Ve.message),W.trigger(S.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_STALLED_ERROR,error:Ve,fatal:!0})}}}]),Ae}(),Vo=100,No=function(Ae){Object(a.a)(L,Ae);var q=Object(e.a)(L);function L(W,H,Z){var ne;return Object(r.a)(this,L),ne=q.call(this,W,H,Z,"[stream-controller]",pt.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(S.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(S.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(S.MANIFEST_LOADING,this.onManifestLoading,this),H.on(S.MANIFEST_PARSED,this.onManifestParsed,this),H.on(S.LEVEL_LOADING,this.onLevelLoading,this),H.on(S.LEVEL_LOADED,this.onLevelLoaded,this),H.on(S.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),H.on(S.ERROR,this.onError,this),H.on(S.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.on(S.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.on(S.BUFFER_CREATED,this.onBufferCreated,this),H.on(S.BUFFER_FLUSHED,this.onBufferFlushed,this),H.on(S.LEVELS_UPDATED,this.onLevelsUpdated,this),H.on(S.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(S.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(S.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(S.MANIFEST_LOADING,this.onManifestLoading,this),H.off(S.MANIFEST_PARSED,this.onManifestParsed,this),H.off(S.LEVEL_LOADED,this.onLevelLoaded,this),H.off(S.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),H.off(S.ERROR,this.onError,this),H.off(S.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.off(S.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.off(S.BUFFER_CREATED,this.onBufferCreated,this),H.off(S.BUFFER_FLUSHED,this.onBufferFlushed,this),H.off(S.LEVELS_UPDATED,this.onLevelsUpdated,this),H.off(S.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.onMediaDetaching()}},{key:"startLoad",value:function(H){if(this.levels){var Z=this.lastCurrentTime,ne=this.hls;if(this.stopLoad(),this.setInterval(Vo),this.level=-1,!this.startFragRequested){var ve=ne.startLevel;ve===-1&&(ne.config.testBandwidth&&this.levels.length>1?(ve=0,this.bitrateTest=!0):ve=ne.nextAutoLevel),this.level=ne.nextLoadLevel=ve,this.loadedmetadata=!1}Z>0&&H===-1&&(this.log("Override startPosition with lastCurrentTime @".concat(Z.toFixed(3))),H=Z),this.state=Pi.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}else this._forceStartLoad=!0,this.state=Pi.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 Pi.WAITING_LEVEL:{var H,Z=this.levels,ne=this.level,ve=Z==null||(H=Z[ne])==null?void 0:H.details;if(ve&&(!ve.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(ve))break;this.state=Pi.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Pi.IDLE;break}break}case Pi.FRAG_LOADING_WAITING_RETRY:{var Te,Ve=self.performance.now(),ot=this.retryDate;(!ot||Ve>=ot||(Te=this.media)!=null&&Te.seeking)&&(this.resetStartWhenNotLoaded(this.level),this.state=Pi.IDLE)}break}this.state===Pi.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,Z=this.levelLastLoaded,ne=this.levels,ve=this.media,Te=H.config,Ve=H.nextLoadLevel;if(Z===null||!ve&&(this.startFragRequested||!Te.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!(ne!=null&&ne[Ve]))return;var ot=ne[Ve],ht=this.getMainFwdBufferInfo();if(ht===null)return;var Qt=this.getLevelDetails();if(Qt&&this._streamEnded(ht,Qt)){var Cr={};this.altAudio&&(Cr.type="video"),this.hls.trigger(S.BUFFER_EOS,Cr),this.state=Pi.ENDED;return}H.loadLevel!==Ve&&H.manualLevel===-1&&this.log("Adapting to level ".concat(Ve," from level ").concat(this.level)),this.level=H.nextLoadLevel=Ve;var wr=ot.details;if(!wr||this.state===Pi.WAITING_LEVEL||wr.live&&this.levelLastLoaded!==Ve){this.level=Ve,this.state=Pi.WAITING_LEVEL;return}var Kr=ht.len,Jr=this.getMaxBufferLength(ot.maxBitrate);if(Kr>=Jr)return;this.backtrackFragment&&this.backtrackFragment.start>ht.end&&(this.backtrackFragment=null);var Cn=this.backtrackFragment?this.backtrackFragment.start:ht.end,Nn=this.getNextFragment(Cn,wr);if(this.couldBacktrack&&!this.fragPrevious&&Nn&&Nn.sn!=="initSegment"&&this.fragmentTracker.getState(Nn)!==_t.OK){var Jn,bi=((Jn=this.backtrackFragment)!=null?Jn:Nn).sn,ua=bi-wr.startSN,Vi=wr.fragments[ua-1];Vi&&Nn.cc===Vi.cc&&(Nn=Vi,this.fragmentTracker.removeFragment(Vi))}else this.backtrackFragment&&ht.len&&(this.backtrackFragment=null);if(Nn&&this.isLoopLoading(Nn,Cn)){var Zi=Nn.gap;if(!Zi){var ka=this.audioOnly&&!this.altAudio?le.AUDIO:le.VIDEO,Ga=(ka===le.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ga&&this.afterBufferFlushed(Ga,ka,pt.MAIN)}Nn=this.getNextFragmentLoopLoading(Nn,wr,ht,pt.MAIN,Jr)}if(!Nn)return;Nn.initSegment&&!Nn.initSegment.data&&!this.bitrateTest&&(Nn=Nn.initSegment),this.loadFragment(Nn,ot,Cn)}},{key:"loadFragment",value:function(H,Z,ne){var ve=this.fragmentTracker.getState(H);this.fragCurrent=H,ve===_t.NOT_LOADED||ve===_t.PARTIAL?H.sn==="initSegment"?this._loadInitSegment(H,Z):this.bitrateTest?(this.log("Fragment ".concat(H.sn," of level ").concat(H.level," is being downloaded to test bitrate and will not be buffered")),this._loadBitrateTestFrag(H,Z)):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,H,Z,ne)):this.clearTrackerIfNeeded(H)}},{key:"getBufferedFrag",value:function(H){return this.fragmentTracker.getBufferedFrag(H,pt.MAIN)}},{key:"followingBufferedFrag",value:function(H){return H?this.getBufferedFrag(H.end+.5):null}},{key:"immediateLevelSwitch",value:function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}},{key:"nextLevelSwitch",value:function(){var H=this.levels,Z=this.media;if(Z!=null&&Z.readyState){var ne,ve=this.getAppendedFrag(Z.currentTime);ve&&ve.start>1&&this.flushMainBuffer(0,ve.start-1);var Te=this.getLevelDetails();if(Te!=null&&Te.live){var Ve=this.getMainFwdBufferInfo();if(!Ve||Ve.len<Te.targetduration*2)return}if(!Z.paused&&H){var ot=this.hls.nextLoadLevel,ht=H[ot],Qt=this.fragLastKbps;Qt&&this.fragCurrent?ne=this.fragCurrent.duration*ht.maxBitrate/(1e3*Qt)+1:ne=0}else ne=0;var Cr=this.getBufferedFrag(Z.currentTime+ne);if(Cr){var wr=this.followingBufferedFrag(Cr);if(wr){this.abortCurrentFrag();var Kr=wr.maxStartPTS?wr.maxStartPTS:wr.start,Jr=wr.duration,Cn=Math.max(Cr.end,Kr+Math.min(Math.max(Jr-this.config.maxFragLookUpTolerance,Jr*.5),Jr*.75));this.flushMainBuffer(Cn,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 Pi.KEY_LOADING:case Pi.FRAG_LOADING:case Pi.FRAG_LOADING_WAITING_RETRY:case Pi.PARSING:case Pi.PARSED:this.state=Pi.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}},{key:"flushMainBuffer",value:function(H,Z){Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,H,Z,this.altAudio?"video":null)}},{key:"onMediaAttached",value:function(H,Z){Object(t.a)(Object(m.a)(L.prototype),"onMediaAttached",this).call(this,H,Z);var ne=Z.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),ne.addEventListener("playing",this.onvplaying),ne.addEventListener("seeked",this.onvseeked),this.gapController=new Js(this.config,ne,this.fragmentTracker,this.hls)}},{key:"onMediaDetaching",value:function(){var H=this.media;H&&this.onvplaying&&this.onvseeked&&(H.removeEventListener("playing",this.onvplaying),H.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),Object(t.a)(Object(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onMediaPlaying",value:function(){this.tick()}},{key:"onMediaSeeked",value:function(){var H=this.media,Z=H?H.currentTime:null;T(Z)&&this.log("Media seeked to ".concat(Z.toFixed(3)));var ne=this.getMainFwdBufferInfo();if(ne===null||ne.len===0){this.warn('Main forward buffer length on "seeked" event '.concat(ne?ne.len:"empty",")"));return}this.tick()}},{key:"onManifestLoading",value:function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(S.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=0,this.levels=this.fragPlaying=this.backtrackFragment=null,this.altAudio=this.audioOnly=!1}},{key:"onManifestParsed",value:function(H,Z){var ne=!1,ve=!1,Te;Z.levels.forEach(function(Ve){Te=Ve.audioCodec,Te&&(Te.indexOf("mp4a.40.2")!==-1&&(ne=!0),Te.indexOf("mp4a.40.5")!==-1&&(ve=!0))}),this.audioCodecSwitch=ne&&ve&&!mo(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=Z.levels,this.startFragRequested=!1}},{key:"onLevelLoading",value:function(H,Z){var ne=this.levels;if(!ne||this.state!==Pi.IDLE)return;var ve=ne[Z.level];(!ve.details||ve.details.live&&this.levelLastLoaded!==Z.level||this.waitForCdnTuneIn(ve.details))&&(this.state=Pi.WAITING_LEVEL)}},{key:"onLevelLoaded",value:function(H,Z){var ne,ve=this.levels,Te=Z.level,Ve=Z.details,ot=Ve.totalduration;if(!ve){this.warn("Levels were reset while loading level ".concat(Te));return}this.log("Level ".concat(Te," loaded [").concat(Ve.startSN,",").concat(Ve.endSN,"]").concat(Ve.lastPartSn?"[part-".concat(Ve.lastPartSn,"-").concat(Ve.lastPartIndex,"]"):"",", cc [").concat(Ve.startCC,", ").concat(Ve.endCC,"] duration:").concat(ot));var ht=ve[Te],Qt=this.fragCurrent;Qt&&(this.state===Pi.FRAG_LOADING||this.state===Pi.FRAG_LOADING_WAITING_RETRY)&&((Qt.level!==Z.level||Qt.urlId!==ht.urlId)&&Qt.loader&&this.abortCurrentFrag());var Cr=0;if(Ve.live||(ne=ht.details)!=null&&ne.live){if(this.checkLiveUpdate(Ve),Ve.deltaUpdateFailed)return;Cr=this.alignPlaylists(Ve,ht.details)}if(ht.details=Ve,this.levelLastLoaded=Te,this.hls.trigger(S.LEVEL_UPDATED,{details:Ve,level:Te}),this.state===Pi.WAITING_LEVEL){if(this.waitForCdnTuneIn(Ve))return;this.state=Pi.IDLE}this.startFragRequested?Ve.live&&this.synchronizeToLiveEdge(Ve):this.setStartPosition(Ve,Cr),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(H){var Z,ne=H.frag,ve=H.part,Te=H.payload,Ve=this.levels;if(!Ve){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 ot=Ve[ne.level],ht=ot.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=ot.videoCodec,Cr=ht.PTSKnown||!ht.live,wr=(Z=ne.initSegment)==null?void 0:Z.data,Kr=this._getAudioCodec(ot),Jr=this.transmuxer=this.transmuxer||new Qs(this.hls,pt.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),Cn=ve?ve.index:-1,Nn=Cn!==-1,Jn=new zi(ne.level,ne.sn,ne.stats.chunkCount,Te.byteLength,Cn,Nn),bi=this.initPTS[ne.cc];Jr.push(Te,wr,Kr,Qt,ne,ve,ht.totalduration,Cr,Jn,bi)}},{key:"onAudioTrackSwitching",value:function(H,Z){var ne=this.altAudio,ve=!!Z.url;if(!ve){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var Te=this.fragCurrent;Te&&(this.log("Switching to main audio track, cancel main fragment load"),Te.abortRequests(),this.fragmentTracker.removeFragment(Te)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var Ve=this.hls;ne&&(Ve.trigger(S.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),Ve.trigger(S.AUDIO_TRACK_SWITCHED,Z)}}},{key:"onAudioTrackSwitched",value:function(H,Z){var ne=Z.id,ve=!!this.hls.audioTracks[ne].url;if(ve){var Te=this.videoBuffer;Te&&this.mediaBuffer!==Te&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=Te)}this.altAudio=ve,this.tick()}},{key:"onBufferCreated",value:function(H,Z){var ne=Z.tracks,ve,Te,Ve=!1;for(var ot in ne){var ht=ne[ot];if(ht.id==="main"){if(Te=ot,ve=ht,ot==="video"){var Qt=ne[ot];Qt&&(this.videoBuffer=Qt.buffer)}}else Ve=!0}Ve&&ve?(this.log("Alternate track found, use ".concat(Te,".buffered to schedule main fragment loading")),this.mediaBuffer=ve.buffer):this.mediaBuffer=this.media}},{key:"onFragBuffered",value:function(H,Z){var ne=Z.frag,ve=Z.part;if(ne&&ne.type!==pt.MAIN)return;if(this.fragContextChanged(ne)){this.warn("Fragment ".concat(ne.sn).concat(ve?" p: "+ve.index:""," of level ").concat(ne.level," finished buffering, but was aborted. state: ").concat(this.state)),this.state===Pi.PARSED&&(this.state=Pi.IDLE);return}var Te=ve?ve.stats:ne.stats;this.fragLastKbps=Math.round(8*Te.total/(Te.buffering.end-Te.loading.first)),ne.sn!=="initSegment"&&(this.fragPrevious=ne),this.fragBufferedComplete(ne,ve)}},{key:"onError",value:function(H,Z){var ne;if(Z.fatal){this.state=Pi.ERROR;return}switch(Z.details){case I.FRAG_GAP:case I.FRAG_PARSING_ERROR:case I.FRAG_DECRYPT_ERROR:case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(pt.MAIN,Z);break;case I.LEVEL_LOAD_ERROR:case I.LEVEL_LOAD_TIMEOUT:case I.LEVEL_PARSING_ERROR:!Z.levelRetry&&this.state===Pi.WAITING_LEVEL&&((ne=Z.context)==null?void 0:ne.type)===xt.LEVEL&&(this.state=Pi.IDLE);break;case I.BUFFER_FULL_ERROR:if(!Z.parent||Z.parent!=="main")return;this.reduceLengthAndFlushBuffer(Z)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case I.INTERNAL_EXCEPTION:this.recoverWorkerError(Z);break}}},{key:"checkBuffer",value:function(){var H=this.media,Z=this.gapController;if(!H||!Z||!H.readyState)return;if(this.loadedmetadata||!Oi.getBuffered(H).length){var ne=this.state!==Pi.IDLE?this.fragCurrent:null;Z.poll(this.lastCurrentTime,ne)}this.lastCurrentTime=H.currentTime}},{key:"onFragLoadEmergencyAborted",value:function(){this.state=Pi.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}},{key:"onBufferFlushed",value:function(H,Z){var ne=Z.type;if(ne!==le.AUDIO||this.audioOnly&&!this.altAudio){var ve=(ne===le.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(ve,ne,pt.MAIN)}}},{key:"onLevelsUpdated",value:function(H,Z){this.levels=Z.levels}},{key:"swapAudioCodec",value:function(){this.audioCodecSwap=!this.audioCodecSwap}},{key:"seekToStartPos",value:function(){var H=this.media;if(!H)return;var Z=H.currentTime,ne=this.startPosition;if(ne>=0&&Z<ne){if(H.seeking){this.log("could not seek to ".concat(ne,", already seeking at ").concat(Z));return}var ve=Oi.getBuffered(H),Te=ve.length?ve.start(0):0,Ve=Te-ne;Ve>0&&(Ve<this.config.maxBufferHole||Ve<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by ".concat(Ve," to match buffer start")),ne+=Ve,this.startPosition=ne),this.log("seek to target start position ".concat(ne," from current time ").concat(Z)),H.currentTime=ne}}},{key:"_getAudioCodec",value:function(H){var Z=this.config.defaultAudioCodec||H.audioCodec;return this.audioCodecSwap&&Z&&(this.log("Swapping audio codec"),Z.indexOf("mp4a.40.5")!==-1?Z="mp4a.40.2":Z="mp4a.40.5"),Z}},{key:"_loadBitrateTestFrag",value:function(H,Z){var ne=this;H.bitrateTest=!0,this._doFragLoad(H,Z).then(function(ve){var Te=ne.hls;if(!ve||ne.fragContextChanged(H))return;Z.fragmentError=0,ne.state=Pi.IDLE,ne.startFragRequested=!1,ne.bitrateTest=!1;var Ve=H.stats;Ve.parsing.start=Ve.parsing.end=Ve.buffering.start=Ve.buffering.end=self.performance.now(),Te.trigger(S.FRAG_LOADED,ve),H.bitrateTest=!1})}},{key:"_handleTransmuxComplete",value:function(H){var Z,ne="main",ve=this.hls,Te=H.remuxResult,Ve=H.chunkMeta,ot=this.getCurrentContext(Ve);if(!ot){this.resetWhenMissingContext(Ve);return}var ht=ot.frag,Qt=ot.part,Cr=ot.level,wr=Te.video,Kr=Te.text,Jr=Te.id3,Cn=Te.initSegment,Nn=Cr.details,Jn=this.altAudio?void 0:Te.audio;if(this.fragContextChanged(ht)){this.fragmentTracker.removeFragment(ht);return}if(this.state=Pi.PARSING,Cn){if(Cn!=null&&Cn.tracks){var bi=ht.initSegment||ht;this._bufferInitSegment(Cr,Cn.tracks,bi,Ve),ve.trigger(S.FRAG_PARSING_INIT_SEGMENT,{frag:bi,id:ne,tracks:Cn.tracks})}var ua=Cn.initPTS,Vi=Cn.timescale;T(ua)&&(this.initPTS[ht.cc]={baseTime:ua,timescale:Vi},ve.trigger(S.INIT_PTS_FOUND,{frag:ht,id:ne,initPTS:ua,timescale:Vi}))}if(wr&&Nn&&ht.sn!=="initSegment"){var Zi=Nn.fragments[ht.sn-1-Nn.startSN],ka=ht.sn===Nn.startSN,Ga=!Zi||ht.cc>Zi.cc;if(Te.independent!==!1){var Ba=wr.startPTS,Sa=wr.endPTS,Go=wr.startDTS,bs=wr.endDTS;if(Qt)Qt.elementaryStreams[wr.type]={startPTS:Ba,endPTS:Sa,startDTS:Go,endDTS:bs};else if(wr.firstKeyFrame&&wr.independent&&Ve.id===1&&!Ga&&(this.couldBacktrack=!0),wr.dropped&&wr.independent){var ys=this.getMainFwdBufferInfo(),Cs=(ys?ys.end:this.getLoadPosition())+this.config.maxBufferHole,js=wr.firstKeyFramePTS?wr.firstKeyFramePTS:Ba;if(!ka&&Cs<js-this.config.maxBufferHole&&!Ga){this.backtrack(ht);return}else Ga&&(ht.gap=!0);ht.setElementaryStreamInfo(wr.type,ht.start,Sa,ht.start,bs,!0)}ht.setElementaryStreamInfo(wr.type,Ba,Sa,Go,bs),this.backtrackFragment&&(this.backtrackFragment=ht),this.bufferFragmentData(wr,ht,Qt,Ve,ka||Ga)}else if(ka||Ga)ht.gap=!0;else{this.backtrack(ht);return}}if(Jn){var ws=Jn.startPTS,Hs=Jn.endPTS,Ee=Jn.startDTS,Ye=Jn.endDTS;Qt&&(Qt.elementaryStreams[le.AUDIO]={startPTS:ws,endPTS:Hs,startDTS:Ee,endDTS:Ye}),ht.setElementaryStreamInfo(le.AUDIO,ws,Hs,Ee,Ye),this.bufferFragmentData(Jn,ht,Qt,Ve)}if(Nn&&Jr!=null&&(Z=Jr.samples)!=null&&Z.length){var Et={id:ne,frag:ht,details:Nn,samples:Jr.samples};ve.trigger(S.FRAG_PARSING_METADATA,Et)}if(Nn&&Kr){var cr={id:ne,frag:ht,details:Nn,samples:Kr.samples};ve.trigger(S.FRAG_PARSING_USERDATA,cr)}}},{key:"_bufferInitSegment",value:function(H,Z,ne,ve){var Te=this;if(this.state!==Pi.PARSING)return;this.audioOnly=!!Z.audio&&!Z.video,this.altAudio&&!this.audioOnly&&delete Z.audio;var Ve=Z.audio,ot=Z.video,ht=Z.audiovideo;if(Ve){var Qt=H.audioCodec,Cr=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(Qt&&(Qt.indexOf("mp4a.40.5")!==-1?Qt="mp4a.40.2":Qt="mp4a.40.5"),Ve.metadata.channelCount!==1&&Cr.indexOf("firefox")===-1&&(Qt="mp4a.40.5")),Cr.indexOf("android")!==-1&&Ve.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,'"')),Ve.levelCodec=Qt,Ve.id="main",this.log("Init audio buffer, container:".concat(Ve.container,", codecs[selected/level/parsed]=[").concat(Qt||"","/").concat(H.audioCodec||"","/").concat(Ve.codec,"]"))}ot&&(ot.levelCodec=H.videoCodec,ot.id="main",this.log("Init video buffer, container:".concat(ot.container,", codecs[level/parsed]=[").concat(H.videoCodec||"","/").concat(ot.codec,"]"))),ht&&this.log("Init audiovideo buffer, container:".concat(ht.container,", codecs[level/parsed]=[").concat(H.attrs.CODECS||"","/").concat(ht.codec,"]")),this.hls.trigger(S.BUFFER_CODECS,Z),Object.keys(Z).forEach(function(wr){var Kr=Z[wr],Jr=Kr.initSegment;Jr!=null&&Jr.byteLength&&Te.hls.trigger(S.BUFFER_APPENDING,{type:wr,data:Jr,frag:ne,part:null,chunkMeta:ve,parent:ne.type})}),this.tick()}},{key:"getMainFwdBufferInfo",value:function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,pt.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=Pi.IDLE}},{key:"checkFragmentChanged",value:function(){var H=this.media,Z=null;if(H&&H.readyState>1&&H.seeking===!1){var ne=H.currentTime;if(Oi.isBuffered(H,ne)?Z=this.getAppendedFrag(ne):Oi.isBuffered(H,ne+.1)&&(Z=this.getAppendedFrag(ne+.1)),Z){this.backtrackFragment=null;var ve=this.fragPlaying,Te=Z.level;(!ve||Z.sn!==ve.sn||ve.level!==Te||Z.urlId!==ve.urlId)&&(this.fragPlaying=Z,this.hls.trigger(S.FRAG_CHANGED,{frag:Z}),(!ve||ve.level!==Te)&&this.hls.trigger(S.LEVEL_SWITCHED,{level:Te}))}}}},{key:"nextLevel",get:function(){var H=this.nextBufferedFrag;return H?H.level:-1}},{key:"currentFrag",get:function(){var H=this.media;return H?this.fragPlaying||this.getAppendedFrag(H.currentTime):null}},{key:"currentProgramDateTime",get:function(){var H=this.media;if(H){var Z=H.currentTime,ne=this.currentFrag;if(ne&&T(Z)&&T(ne.programDateTime)){var ve=ne.programDateTime+(Z-ne.start)*1e3;return new Date(ve)}}return null}},{key:"currentLevel",get:function(){var H=this.currentFrag;return H?H.level:-1}},{key:"nextBufferedFrag",get:function(){var H=this.currentFrag;return H?this.followingBufferedFrag(H):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),L}(io),fs=function(){function Ae(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Object(r.a)(this,Ae),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=q,this.alpha_=q?Math.exp(Math.log(.5)/q):0,this.estimate_=L,this.totalWeight_=W}return Object(s.a)(Ae,[{key:"sample",value:function(L,W){var H=Math.pow(this.alpha_,L);this.estimate_=W*(1-H)+H*this.estimate_,this.totalWeight_+=L}},{key:"getTotalWeight",value:function(){return this.totalWeight_}},{key:"getEstimate",value:function(){if(this.alpha_){var L=1-Math.pow(this.alpha_,this.totalWeight_);if(L)return this.estimate_/L}return this.estimate_}}]),Ae}(),Ds=function(){function Ae(q,L,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:100;Object(r.a)(this,Ae),this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=W,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new fs(q),this.fast_=new fs(L),this.defaultTTFB_=H,this.ttfb_=new fs(q)}return Object(s.a)(Ae,[{key:"update",value:function(L,W){var H=this.slow_,Z=this.fast_,ne=this.ttfb_;H.halfLife!==L&&(this.slow_=new fs(L,H.getEstimate(),H.getTotalWeight())),Z.halfLife!==W&&(this.fast_=new fs(W,Z.getEstimate(),Z.getTotalWeight())),ne.halfLife!==L&&(this.ttfb_=new fs(L,ne.getEstimate(),ne.getTotalWeight()))}},{key:"sample",value:function(L,W){L=Math.max(L,this.minDelayMs_);var H=8*W,Z=L/1e3,ne=H/Z;this.fast_.sample(Z,ne),this.slow_.sample(Z,ne)}},{key:"sampleTTFB",value:function(L){var W=L/1e3,H=Math.sqrt(2)*Math.exp(-Math.pow(W,2)/2);this.ttfb_.sample(H,Math.max(L,5))}},{key:"canEstimate",value:function(){return this.fast_.getTotalWeight()>=this.minWeight_}},{key:"getEstimate",value:function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}},{key:"getEstimateTTFB",value:function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}},{key:"destroy",value:function(){}}]),Ae}(),go=function(){function Ae(q){Object(r.a)(this,Ae),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=-1,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=q;var L=q.config;this.bwEstimator=new Ds(L.abrEwmaSlowVoD,L.abrEwmaFastVoD,L.abrEwmaDefaultEstimate),this.registerListeners()}return Object(s.a)(Ae,[{key:"registerListeners",value:function(){var L=this.hls;L.on(S.FRAG_LOADING,this.onFragLoading,this),L.on(S.FRAG_LOADED,this.onFragLoaded,this),L.on(S.FRAG_BUFFERED,this.onFragBuffered,this),L.on(S.LEVEL_SWITCHING,this.onLevelSwitching,this),L.on(S.LEVEL_LOADED,this.onLevelLoaded,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(S.FRAG_LOADING,this.onFragLoading,this),L.off(S.FRAG_LOADED,this.onFragLoaded,this),L.off(S.FRAG_BUFFERED,this.onFragBuffered,this),L.off(S.LEVEL_SWITCHING,this.onLevelSwitching,this),L.off(S.LEVEL_LOADED,this.onLevelLoaded,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null}},{key:"onFragLoading",value:function(L,W){var H,Z=W.frag;if(this.ignoreFragment(Z))return;this.fragCurrent=Z,this.partCurrent=(H=W.part)!=null?H:null,this.clearTimer(),this.timer=self.setInterval(this.onCheck,100)}},{key:"onLevelSwitching",value:function(L,W){this.clearTimer()}},{key:"getTimeToLoadFrag",value:function(L,W,H,Z){var ne=L+H/W,ve=Z?this.lastLevelLoadSec:0;return ne+ve}},{key:"onLevelLoaded",value:function(L,W){var H=this.hls.config,Z=W.stats,ne=Z.total,ve=Z.bwEstimate;T(ne)&&T(ve)&&(this.lastLevelLoadSec=8*ne/ve),W.details.live?this.bwEstimator.update(H.abrEwmaSlowLive,H.abrEwmaFastLive):this.bwEstimator.update(H.abrEwmaSlowVoD,H.abrEwmaFastVoD)}},{key:"_abandonRulesCheck",value:function(){var L=this.fragCurrent,W=this.partCurrent,H=this.hls,Z=H.autoLevelEnabled,ne=H.media;if(!L||!ne)return;var ve=performance.now(),Te=W?W.stats:L.stats,Ve=W?W.duration:L.duration,ot=ve-Te.loading.start;if(Te.aborted||Te.loaded&&Te.loaded===Te.total||L.level===0){this.clearTimer(),this._nextAutoLevel=-1;return}if(!Z||ne.paused||!ne.playbackRate||!ne.readyState)return;var ht=H.mainForwardBufferInfo;if(ht===null)return;var Qt=this.bwEstimator.getEstimateTTFB(),Cr=Math.abs(ne.playbackRate);if(ot<=Math.max(Qt,1e3*(Ve/(Cr*2))))return;var wr=ht.len/Cr;if(wr>=2*Ve/Cr)return;var Kr=Te.loading.first?Te.loading.first-Te.loading.start:-1,Jr=Te.loaded&&Kr>-1,Cn=this.bwEstimator.getEstimate(),Nn=H.levels,Jn=H.minAutoLevel,bi=Nn[L.level],ua=Te.total||Math.max(Te.loaded,Math.round(Ve*bi.maxBitrate/8)),Vi=ot-Kr;Vi<1&&Jr&&(Vi=Math.min(ot,Te.loaded*8/Cn));var Zi=Jr?Te.loaded*1e3/Vi:0,ka=Zi?(ua-Te.loaded)/Zi:ua*8/Cn+Qt/1e3;if(ka<=wr)return;var Ga=Zi?Zi*8:Cn,Ba=Number.POSITIVE_INFINITY,Sa;for(Sa=L.level-1;Sa>Jn;Sa--){var Go=Nn[Sa].maxBitrate;if(Ba=this.getTimeToLoadFrag(Qt/1e3,Ga,Ve*Go,!Nn[Sa].details),Ba<wr)break}if(Ba>=ka)return;if(Ba>Ve*10)return;H.nextLoadLevel=Sa,Jr?this.bwEstimator.sample(ot-Math.min(Qt,Kr),Te.loaded):this.bwEstimator.sampleTTFB(ot),this.clearTimer(),j.warn("[abr] Fragment ".concat(L.sn).concat(W?" part "+W.index:""," of level ").concat(L.level,` is loading too slowly;
|
|
|
Time to underbuffer: `).concat(wr.toFixed(3),` s
|
|
|
Estimated load time for current fragment: `).concat(ka.toFixed(3),` s
|
|
|
Estimated load time for down switch fragment: `).concat(Ba.toFixed(3),` s
|
|
|
TTFB estimate: `).concat(Kr,`
|
|
|
Current BW estimate: `).concat(T(Cn)?(Cn/1024).toFixed(3):"Unknown",` Kb/s
|
|
|
New BW estimate: `).concat((this.bwEstimator.getEstimate()/1024).toFixed(3),` Kb/s
|
|
|
Aborting and switching to level `).concat(Sa)),L.loader&&(this.fragCurrent=this.partCurrent=null,L.abortRequests()),H.trigger(S.FRAG_LOAD_EMERGENCY_ABORTED,{frag:L,part:W,stats:Te})}},{key:"onFragLoaded",value:function(L,W){var H=W.frag,Z=W.part,ne=Z?Z.stats:H.stats;if(H.type===pt.MAIN&&this.bwEstimator.sampleTTFB(ne.loading.first-ne.loading.start),this.ignoreFragment(H))return;if(this.clearTimer(),this.lastLoadedFragLevel=H.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var ve=Z?Z.duration:H.duration,Te=this.hls.levels[H.level],Ve=(Te.loaded?Te.loaded.bytes:0)+ne.loaded,ot=(Te.loaded?Te.loaded.duration:0)+ve;Te.loaded={bytes:Ve,duration:ot},Te.realBitrate=Math.round(8*Ve/ot)}if(H.bitrateTest){var ht={stats:ne,frag:H,part:Z,id:H.type};this.onFragBuffered(S.FRAG_BUFFERED,ht),H.bitrateTest=!1}}},{key:"onFragBuffered",value:function(L,W){var H=W.frag,Z=W.part,ne=Z!=null&&Z.stats.loaded?Z.stats:H.stats;if(ne.aborted)return;if(this.ignoreFragment(H))return;var ve=ne.parsing.end-ne.loading.start-Math.min(ne.loading.first-ne.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(ve,ne.loaded),ne.bwEstimate=this.bwEstimator.getEstimate(),H.bitrateTest?this.bitrateTestDelay=ve/1e3:this.bitrateTestDelay=0}},{key:"ignoreFragment",value:function(L){return L.type!==pt.MAIN||L.sn==="initSegment"}},{key:"clearTimer",value:function(){self.clearInterval(this.timer)}},{key:"nextAutoLevel",get:function(){var L=this._nextAutoLevel,W=this.bwEstimator;if(L!==-1&&!W.canEstimate())return L;var H=this.getNextABRAutoLevel();if(L!==-1){var Z=this.hls.levels;if(Z.length>Math.max(L,H)&&Z[L].loadError<=Z[H].loadError)return L}return L!==-1&&(H=Math.min(L,H)),H},set:function(L){this._nextAutoLevel=L}},{key:"getNextABRAutoLevel",value:function(){var L=this.fragCurrent,W=this.partCurrent,H=this.hls,Z=H.maxAutoLevel,ne=H.config,ve=H.minAutoLevel,Te=H.media,Ve=W?W.duration:L?L.duration:0,ot=Te&&Te.playbackRate!==0?Math.abs(Te.playbackRate):1,ht=this.bwEstimator?this.bwEstimator.getEstimate():ne.abrEwmaDefaultEstimate,Qt=H.mainForwardBufferInfo,Cr=(Qt?Qt.len:0)/ot,wr=this.findBestLevel(ht,ve,Z,Cr,ne.abrBandWidthFactor,ne.abrBandWidthUpFactor);if(wr>=0)return wr;j.trace("[abr] ".concat(Cr?"rebuffering expected":"buffer is empty",", finding optimal quality level"));var Kr=Ve?Math.min(Ve,ne.maxStarvationDelay):ne.maxStarvationDelay,Jr=ne.abrBandWidthFactor,Cn=ne.abrBandWidthUpFactor;if(!Cr){var Nn=this.bitrateTestDelay;if(Nn){var Jn=Ve?Math.min(Ve,ne.maxLoadingDelay):ne.maxLoadingDelay;Kr=Jn-Nn,j.trace("[abr] bitrate test took ".concat(Math.round(1e3*Nn),"ms, set first fragment max fetchDuration to ").concat(Math.round(1e3*Kr)," ms")),Jr=Cn=1}}return wr=this.findBestLevel(ht,ve,Z,Cr+Kr,Jr,Cn),Math.max(wr,0)}},{key:"findBestLevel",value:function(L,W,H,Z,ne,ve){for(var Te,Ve=this.fragCurrent,ot=this.partCurrent,ht=this.lastLoadedFragLevel,Qt=this.hls.levels,Cr=Qt[ht],wr=!!(Cr!=null&&(Te=Cr.details)!=null&&Te.live),Kr=Cr==null?void 0:Cr.codecSet,Jr=ot?ot.duration:Ve?Ve.duration:0,Cn=this.bwEstimator.getEstimateTTFB()/1e3,Nn=W,Jn=-1,bi=H;bi>=W;bi--){var ua=Qt[bi];if(!ua||Kr&&ua.codecSet!==Kr){ua&&(Nn=Math.min(bi,Nn),Jn=Math.max(bi,Jn));continue}Jn!==-1&&j.trace("[abr] Skipped level(s) ".concat(Nn,"-").concat(Jn,' with CODECS:"').concat(Qt[Jn].attrs.CODECS,'"; not compatible with "').concat(Cr.attrs.CODECS,'"'));var Vi=ua.details,Zi=(ot?Vi==null?void 0:Vi.partTarget:Vi==null?void 0:Vi.averagetargetduration)||Jr,ka=void 0;bi<=ht?ka=ne*L:ka=ve*L;var Ga=Qt[bi].maxBitrate,Ba=this.getTimeToLoadFrag(Cn,ka,Ga*Zi,Vi===void 0);if(j.trace("[abr] level:".concat(bi," adjustedbw-bitrate:").concat(Math.round(ka-Ga)," avgDuration:").concat(Zi.toFixed(1)," maxFetchDuration:").concat(Z.toFixed(1)," fetchDuration:").concat(Ba.toFixed(1))),ka>Ga&&(Ba===0||!T(Ba)||wr&&!this.bitrateTestDelay||Ba<Z))return bi}return-1}}]),Ae}(),Ht=function(){function Ae(){Object(r.a)(this,Ae),this.chunks=[],this.dataLength=0}return Object(s.a)(Ae,[{key:"push",value:function(L){this.chunks.push(L),this.dataLength+=L.length}},{key:"flush",value:function(){var L=this.chunks,W=this.dataLength,H;if(L.length)L.length===1?H=L[0]:H=ar(L,W);else return new Uint8Array(0);return this.reset(),H}},{key:"reset",value:function(){this.chunks.length=0,this.dataLength=0}}]),Ae}();function ar(Ae,q){for(var L=new Uint8Array(q),W=0,H=0;H<Ae.length;H++){var Z=Ae[H];L.set(Z,W),W+=Z.length}return L}var In=100,hi=function(Ae){Object(a.a)(L,Ae);var q=Object(e.a)(L);function L(W,H,Z){var ne;return Object(r.a)(this,L),ne=q.call(this,W,H,Z,"[audio-stream-controller]",pt.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(S.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(S.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(S.MANIFEST_LOADING,this.onManifestLoading,this),H.on(S.LEVEL_LOADED,this.onLevelLoaded,this),H.on(S.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),H.on(S.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.on(S.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.on(S.ERROR,this.onError,this),H.on(S.BUFFER_RESET,this.onBufferReset,this),H.on(S.BUFFER_CREATED,this.onBufferCreated,this),H.on(S.BUFFER_FLUSHED,this.onBufferFlushed,this),H.on(S.INIT_PTS_FOUND,this.onInitPtsFound,this),H.on(S.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(S.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(S.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(S.MANIFEST_LOADING,this.onManifestLoading,this),H.off(S.LEVEL_LOADED,this.onLevelLoaded,this),H.off(S.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),H.off(S.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.off(S.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.off(S.ERROR,this.onError,this),H.off(S.BUFFER_RESET,this.onBufferReset,this),H.off(S.BUFFER_CREATED,this.onBufferCreated,this),H.off(S.BUFFER_FLUSHED,this.onBufferFlushed,this),H.off(S.INIT_PTS_FOUND,this.onInitPtsFound,this),H.off(S.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onInitPtsFound",value:function(H,Z){var ne=Z.frag,ve=Z.id,Te=Z.initPTS,Ve=Z.timescale;if(ve==="main"){var ot=ne.cc;this.initPTS[ne.cc]={baseTime:Te,timescale:Ve},this.log("InitPTS for cc: ".concat(ot," found from main: ").concat(Te)),this.videoTrackCC=ot,this.state===Pi.WAITING_INIT_PTS&&this.tick()}}},{key:"startLoad",value:function(H){if(!this.levels){this.startPosition=H,this.state=Pi.STOPPED;return}var Z=this.lastCurrentTime;this.stopLoad(),this.setInterval(In),Z>0&&H===-1?(this.log("Override startPosition with lastCurrentTime @".concat(Z.toFixed(3))),H=Z,this.state=Pi.IDLE):(this.loadedmetadata=!1,this.state=Pi.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}},{key:"doTick",value:function(){switch(this.state){case Pi.IDLE:this.doTickIdle();break;case Pi.WAITING_TRACK:{var H,Z=this.levels,ne=this.trackId,ve=Z==null||(H=Z[ne])==null?void 0:H.details;if(ve){if(this.waitForCdnTuneIn(ve))break;this.state=Pi.WAITING_INIT_PTS}break}case Pi.FRAG_LOADING_WAITING_RETRY:{var Te,Ve=performance.now(),ot=this.retryDate;(!ot||Ve>=ot||(Te=this.media)!=null&&Te.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(this.trackId),this.state=Pi.IDLE);break}case Pi.WAITING_INIT_PTS:{var ht=this.waitingData;if(ht){var Qt=ht.frag,Cr=ht.part,wr=ht.cache,Kr=ht.complete;if(this.initPTS[Qt.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=Pi.FRAG_LOADING;var Jr=wr.flush(),Cn={frag:Qt,part:Cr,payload:Jr,networkDetails:null};this._handleFragmentLoadProgress(Cn),Kr&&Object(t.a)(Object(m.a)(L.prototype),"_handleFragmentLoadComplete",this).call(this,Cn)}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=Oi.bufferInfo(this.mediaBuffer,Nn,this.config.maxBufferHole),bi=Dn(Jn.end,this.config.maxFragLookUpTolerance,Qt);bi<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=Pi.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=Pi.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,Z=this.levels,ne=this.media,ve=this.trackId,Te=H.config;if(!(Z!=null&&Z[ve]))return;if(!ne&&(this.startFragRequested||!Te.startFragPrefetch))return;var Ve=Z[ve],ot=Ve.details;if(!ot||ot.live&&this.levelLastLoaded!==ve||this.waitForCdnTuneIn(ot)){this.state=Pi.WAITING_TRACK;return}var ht=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&ht&&(this.bufferFlushed=!1,this.afterBufferFlushed(ht,le.AUDIO,pt.AUDIO));var Qt=this.getFwdBufferInfo(ht,pt.AUDIO);if(Qt===null)return;var Cr=this.bufferedTrack,wr=this.switchingTrack;if(!wr&&this._streamEnded(Qt,ot)){H.trigger(S.BUFFER_EOS,{type:"audio"}),this.state=Pi.ENDED;return}var Kr=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,pt.MAIN),Jr=Qt.len,Cn=this.getMaxBufferLength(Kr==null?void 0:Kr.len);if(Jr>=Cn&&!wr)return;var Nn=ot.fragments,Jn=Nn[0].start,bi=Qt.end;if(wr&&ne){var ua=this.getLoadPosition();Cr&&wr.attrs!==Cr.attrs&&(bi=ua),ot.PTSKnown&&ua<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 Vi=this.getNextFragment(bi,ot),Zi=!1;if(Vi&&this.isLoopLoading(Vi,bi)&&(Zi=!!Vi.gap,Vi=this.getNextFragmentLoopLoading(Vi,ot,Qt,pt.MAIN,Cn)),!Vi){this.bufferFlushed=!0;return}var ka=Kr&&Vi.start>Kr.end+ot.targetduration;if(ka||!(Kr!=null&&Kr.len)&&Qt.len){var Ga=this.getAppendedFrag(Vi.start,pt.MAIN);if(Ga===null)return;if(Zi||(Zi=!!Ga.gap||!!ka&&Kr.len===0),ka&&!Zi||Zi&&Qt.nextStart&&Qt.nextStart<Ga.end)return}this.loadFragment(Vi,Ve,bi)}},{key:"getMaxBufferLength",value:function(H){var Z=Object(t.a)(Object(m.a)(L.prototype),"getMaxBufferLength",this).call(this);return H?Math.min(Math.max(Z,H),this.config.maxMaxBufferLength):Z}},{key:"onMediaDetaching",value:function(){this.videoBuffer=null,Object(t.a)(Object(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onAudioTracksUpdated",value:function(H,Z){var ne=Z.audioTracks;this.resetTransmuxer(),this.levels=ne.map(function(ve){return new Dt(ve)})}},{key:"onAudioTrackSwitching",value:function(H,Z){var ne=!!Z.url;this.trackId=Z.id;var ve=this.fragCurrent;ve&&(ve.abortRequests(),this.removeUnbufferedFrags(ve.start)),this.resetLoadingState(),ne?this.setInterval(In):this.resetTransmuxer(),ne?(this.switchingTrack=Z,this.state=Pi.IDLE):(this.switchingTrack=null,this.bufferedTrack=Z,this.state=Pi.STOPPED),this.tick()}},{key:"onManifestLoading",value:function(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}},{key:"onLevelLoaded",value:function(H,Z){this.mainDetails=Z.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(S.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}},{key:"onAudioTrackLoaded",value:function(H,Z){var ne;if(this.mainDetails==null){this.cachedTrackLoadedData=Z;return}var ve=this.levels,Te=Z.details,Ve=Z.id;if(!ve){this.warn("Audio tracks were reset while loading level ".concat(Ve));return}this.log("Track ".concat(Ve," loaded [").concat(Te.startSN,",").concat(Te.endSN,"]").concat(Te.lastPartSn?"[part-".concat(Te.lastPartSn,"-").concat(Te.lastPartIndex,"]"):"",",duration:").concat(Te.totalduration));var ot=ve[Ve],ht=0;if(Te.live||(ne=ot.details)!=null&&ne.live){this.checkLiveUpdate(Te);var Qt=this.mainDetails;if(Te.deltaUpdateFailed||!Qt)return;!ot.details&&Te.hasProgramDateTime&&Qt.hasProgramDateTime?(La(Te,Qt),ht=Te.fragments[0].start):ht=this.alignPlaylists(Te,ot.details)}ot.details=Te,this.levelLastLoaded=Ve,!this.startFragRequested&&(this.mainDetails||!Te.live)&&this.setStartPosition(ot.details,ht),this.state===Pi.WAITING_TRACK&&!this.waitForCdnTuneIn(Te)&&(this.state=Pi.IDLE),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(H){var Z,ne=H.frag,ve=H.part,Te=H.payload,Ve=this.config,ot=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[ot];if(!Qt){this.warn("Audio track is undefined on fragment load progress");return}var Cr=Qt.details;if(!Cr){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(ne.start);return}var wr=Ve.defaultAudioCodec||Qt.audioCodec||"mp4a.40.2",Kr=this.transmuxer;Kr||(Kr=this.transmuxer=new Qs(this.hls,pt.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var Jr=this.initPTS[ne.cc],Cn=(Z=ne.initSegment)==null?void 0:Z.data;if(Jr!==void 0){var Nn=!1,Jn=ve?ve.index:-1,bi=Jn!==-1,ua=new zi(ne.level,ne.sn,ne.stats.chunkCount,Te.byteLength,Jn,bi);Kr.push(Te,Cn,wr,"",ne,ve,Cr.totalduration,Nn,ua,Jr)}else{this.log("Unknown video PTS for cc ".concat(ne.cc,", waiting for video PTS before demuxing audio frag ").concat(ne.sn," of [").concat(Cr.startSN," ,").concat(Cr.endSN,"],track ").concat(ot));var Vi=this.waitingData=this.waitingData||{frag:ne,part:ve,cache:new Ht,complete:!1},Zi=Vi.cache;Zi.push(new Uint8Array(Te)),this.waitingVideoCC=this.videoTrackCC,this.state=Pi.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,Z){var ne=Z.tracks.audio;ne&&(this.mediaBuffer=ne.buffer||null),Z.tracks.video&&(this.videoBuffer=Z.tracks.video.buffer||null)}},{key:"onFragBuffered",value:function(H,Z){var ne=Z.frag,ve=Z.part;if(ne.type!==pt.AUDIO){if(!this.loadedmetadata&&ne.type===pt.MAIN){var Te=this.videoBuffer||this.media;if(Te){var Ve=Oi.getBuffered(Te);Ve.length&&(this.loadedmetadata=!0)}}return}if(this.fragContextChanged(ne)){this.warn("Fragment ".concat(ne.sn).concat(ve?" p: "+ve.index:""," of level ").concat(ne.level," finished buffering, but was aborted. state: ").concat(this.state,", audioSwitch: ").concat(this.switchingTrack?this.switchingTrack.name:"false"));return}if(ne.sn!=="initSegment"){this.fragPrevious=ne;var ot=this.switchingTrack;ot&&(this.bufferedTrack=ot,this.switchingTrack=null,this.hls.trigger(S.AUDIO_TRACK_SWITCHED,b({},ot)))}this.fragBufferedComplete(ne,ve)}},{key:"onError",value:function(H,Z){var ne;if(Z.fatal){this.state=Pi.ERROR;return}switch(Z.details){case I.FRAG_GAP:case I.FRAG_PARSING_ERROR:case I.FRAG_DECRYPT_ERROR:case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(pt.AUDIO,Z);break;case I.AUDIO_TRACK_LOAD_ERROR:case I.AUDIO_TRACK_LOAD_TIMEOUT:case I.LEVEL_PARSING_ERROR:!Z.levelRetry&&this.state===Pi.WAITING_TRACK&&((ne=Z.context)==null?void 0:ne.type)===xt.AUDIO_TRACK&&(this.state=Pi.IDLE);break;case I.BUFFER_FULL_ERROR:if(!Z.parent||Z.parent!=="audio")return;this.reduceLengthAndFlushBuffer(Z)&&(this.bufferedTrack=null,Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio"));break;case I.INTERNAL_EXCEPTION:this.recoverWorkerError(Z);break}}},{key:"onBufferFlushed",value:function(H,Z){var ne=Z.type;ne===le.AUDIO&&(this.bufferFlushed=!0,this.state===Pi.ENDED&&(this.state=Pi.IDLE))}},{key:"_handleTransmuxComplete",value:function(H){var Z,ne="audio",ve=this.hls,Te=H.remuxResult,Ve=H.chunkMeta,ot=this.getCurrentContext(Ve);if(!ot){this.resetWhenMissingContext(Ve);return}var ht=ot.frag,Qt=ot.part,Cr=ot.level,wr=Cr.details,Kr=Te.audio,Jr=Te.text,Cn=Te.id3,Nn=Te.initSegment;if(this.fragContextChanged(ht)||!wr){this.fragmentTracker.removeFragment(ht);return}if(this.state=Pi.PARSING,this.switchingTrack&&Kr&&this.completeAudioSwitch(this.switchingTrack),Nn!=null&&Nn.tracks){var Jn=ht.initSegment||ht;this._bufferInitSegment(Nn.tracks,Jn,Ve),ve.trigger(S.FRAG_PARSING_INIT_SEGMENT,{frag:Jn,id:ne,tracks:Nn.tracks})}if(Kr){var bi=Kr.startPTS,ua=Kr.endPTS,Vi=Kr.startDTS,Zi=Kr.endDTS;Qt&&(Qt.elementaryStreams[le.AUDIO]={startPTS:bi,endPTS:ua,startDTS:Vi,endDTS:Zi}),ht.setElementaryStreamInfo(le.AUDIO,bi,ua,Vi,Zi),this.bufferFragmentData(Kr,ht,Qt,Ve)}if(Cn!=null&&(Z=Cn.samples)!=null&&Z.length){var ka=E({id:ne,frag:ht,details:wr},Cn);ve.trigger(S.FRAG_PARSING_METADATA,ka)}if(Jr){var Ga=E({id:ne,frag:ht,details:wr},Jr);ve.trigger(S.FRAG_PARSING_USERDATA,Ga)}}},{key:"_bufferInitSegment",value:function(H,Z,ne){if(this.state!==Pi.PARSING)return;H.video&&delete H.video;var ve=H.audio;if(!ve)return;ve.levelCodec=ve.codec,ve.id="audio",this.log("Init audio buffer, container:".concat(ve.container,", codecs[parsed]=[").concat(ve.codec,"]")),this.hls.trigger(S.BUFFER_CODECS,H);var Te=ve.initSegment;if(Te!=null&&Te.byteLength){var Ve={type:"audio",frag:Z,part:null,chunkMeta:ne,parent:Z.type,data:Te};this.hls.trigger(S.BUFFER_APPENDING,Ve)}this.tick()}},{key:"loadFragment",value:function(H,Z,ne){var ve=this.fragmentTracker.getState(H);if(this.fragCurrent=H,this.switchingTrack||ve===_t.NOT_LOADED||ve===_t.PARTIAL){var Te;H.sn==="initSegment"?this._loadInitSegment(H,Z):(Te=Z.details)!=null&&Te.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=Pi.WAITING_INIT_PTS):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,H,Z,ne))}else this.clearTrackerIfNeeded(H)}},{key:"completeAudioSwitch",value:function(H){var Z=this.hls,ne=this.media,ve=this.bufferedTrack,Te=ve==null?void 0:ve.attrs,Ve=H.attrs;ne&&Te&&(Te.CHANNELS!==Ve.CHANNELS||Te.NAME!==Ve.NAME||Te.LANGUAGE!==Ve.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,Z.trigger(S.AUDIO_TRACK_SWITCHED,b({},H))}}]),L}(io),Rt=function(Ae){Object(a.a)(L,Ae);var q=Object(e.a)(L);function L(W){var H;return Object(r.a)(this,L),H=q.call(this,W,"[audio-track-controller]"),H.tracks=[],H.groupId=null,H.tracksInGroup=[],H.trackId=-1,H.currentTrack=null,H.selectDefaultTrack=!0,H.registerListeners(),H}return Object(s.a)(L,[{key:"registerListeners",value:function(){var H=this.hls;H.on(S.MANIFEST_LOADING,this.onManifestLoading,this),H.on(S.MANIFEST_PARSED,this.onManifestParsed,this),H.on(S.LEVEL_LOADING,this.onLevelLoading,this),H.on(S.LEVEL_SWITCHING,this.onLevelSwitching,this),H.on(S.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.on(S.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var H=this.hls;H.off(S.MANIFEST_LOADING,this.onManifestLoading,this),H.off(S.MANIFEST_PARSED,this.onManifestParsed,this),H.off(S.LEVEL_LOADING,this.onLevelLoading,this),H.off(S.LEVEL_SWITCHING,this.onLevelSwitching,this),H.off(S.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.off(S.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,Z){this.tracks=Z.audioTracks||[]}},{key:"onAudioTrackLoaded",value:function(H,Z){var ne=Z.id,ve=Z.groupId,Te=Z.details,Ve=this.tracksInGroup[ne];if(!Ve||Ve.groupId!==ve){this.warn("Track with id:".concat(ne," and group:").concat(ve," not found in active group ").concat(Ve.groupId));return}var ot=Ve.details;Ve.details=Z.details,this.log("audio-track ".concat(ne,' "').concat(Ve.name,'" lang:').concat(Ve.lang," group:").concat(ve," loaded [").concat(Te.startSN,"-").concat(Te.endSN,"]")),ne===this.trackId&&this.playlistLoaded(ne,Z,ot)}},{key:"onLevelLoading",value:function(H,Z){this.switchLevel(Z.level)}},{key:"onLevelSwitching",value:function(H,Z){this.switchLevel(Z.level)}},{key:"switchLevel",value:function(H){var Z=this.hls.levels[H];if(!(Z!=null&&Z.audioGroupIds))return;var ne=Z.audioGroupIds[Z.urlId];if(this.groupId!==ne){this.groupId=ne||null;var ve=this.tracks.filter(function(Ve){return!ne||Ve.groupId===ne});this.selectDefaultTrack&&!ve.some(function(Ve){return Ve.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=ve;var Te={audioTracks:ve};this.log("Updating audio tracks, ".concat(ve.length," track(s) found in group:").concat(ne)),this.hls.trigger(S.AUDIO_TRACKS_UPDATED,Te),this.selectInitialTrack()}else this.shouldReloadPlaylist(this.currentTrack)&&this.setAudioTrack(this.trackId)}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===xt.AUDIO_TRACK&&Z.context.id===this.trackId&&Z.context.groupId===this.groupId&&(this.requestScheduled=-1,this.checkRetry(Z))}},{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(H){this.selectDefaultTrack=!1,this.setAudioTrack(H)}},{key:"setAudioTrack",value:function(H){var Z=this.tracksInGroup;if(H<0||H>=Z.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var ne=this.currentTrack;Z[this.trackId];var ve=Z[H],Te=ve.groupId,Ve=ve.name;if(this.log("Switching to audio-track ".concat(H,' "').concat(Ve,'" lang:').concat(ve.lang," group:").concat(Te)),this.trackId=H,this.currentTrack=ve,this.selectDefaultTrack=!1,this.hls.trigger(S.AUDIO_TRACK_SWITCHING,b({},ve)),ve.details&&!ve.details.live)return;var ot=this.switchParams(ve.url,ne==null?void 0:ne.details);this.loadPlaylist(ot)}},{key:"selectInitialTrack",value:function(){var H=this.tracksInGroup,Z=this.findTrackId(this.currentTrack)|this.findTrackId(null);if(Z!==-1)this.setAudioTrack(Z);else{var ne=new Error("No track found for running audio group-ID: ".concat(this.groupId," track count: ").concat(H.length));this.warn(ne.message),this.hls.trigger(S.ERROR,{type:O.MEDIA_ERROR,details:I.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:ne})}}},{key:"findTrackId",value:function(H){for(var Z=this.tracksInGroup,ne=0;ne<Z.length;ne++){var ve=Z[ne];if(!this.selectDefaultTrack||ve.default){if(!H||H.attrs["STABLE-RENDITION-ID"]!==void 0&&H.attrs["STABLE-RENDITION-ID"]===ve.attrs["STABLE-RENDITION-ID"])return ve.id;if(H.name===ve.name&&H.lang===ve.lang)return ve.id}}return-1}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var Z=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(Z)){var ne=Z.id,ve=Z.groupId,Te=Z.url;if(H)try{Te=H.addDirectives(Te)}catch(Ve){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(Ve))}this.log("loading audio-track playlist ".concat(ne,' "').concat(Z.name,'" lang:').concat(Z.lang," group:").concat(ve)),this.clearTimer(),this.hls.trigger(S.AUDIO_TRACK_LOADING,{url:Te,id:ne,groupId:ve,deliveryDirectives:H||null})}}}]),L}(fr);function ce(Ae,q){if(Ae.length!==q.length)return!1;for(var L=0;L<Ae.length;L++)if(!xe(Ae[L].attrs,q[L].attrs))return!1;return!0}function xe(Ae,q){var L=Ae["STABLE-RENDITION-ID"];return L?L===q["STABLE-RENDITION-ID"]:!["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED"].some(function(W){return Ae[W]!==q[W]})}var Ie=500,Qe=function(Ae){Object(a.a)(L,Ae);var q=Object(e.a)(L);function L(W,H,Z){var ne;return Object(r.a)(this,L),ne=q.call(this,W,H,Z,"[subtitle-stream-controller]",pt.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(S.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(S.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(S.MANIFEST_LOADING,this.onManifestLoading,this),H.on(S.LEVEL_LOADED,this.onLevelLoaded,this),H.on(S.ERROR,this.onError,this),H.on(S.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),H.on(S.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),H.on(S.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.on(S.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),H.on(S.BUFFER_FLUSHING,this.onBufferFlushing,this),H.on(S.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(S.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(S.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(S.MANIFEST_LOADING,this.onManifestLoading,this),H.off(S.LEVEL_LOADED,this.onLevelLoaded,this),H.off(S.ERROR,this.onError,this),H.off(S.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),H.off(S.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),H.off(S.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.off(S.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),H.off(S.BUFFER_FLUSHING,this.onBufferFlushing,this),H.off(S.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"startLoad",value:function(H){this.stopLoad(),this.state=Pi.IDLE,this.setInterval(Ie),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}},{key:"onManifestLoading",value:function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}},{key:"onMediaDetaching",value:function(){this.tracksBuffered=[],Object(t.a)(Object(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onLevelLoaded",value:function(H,Z){this.mainDetails=Z.details}},{key:"onSubtitleFragProcessed",value:function(H,Z){var ne=Z.frag,ve=Z.success;if(this.fragPrevious=ne,this.state=Pi.IDLE,!ve)return;var Te=this.tracksBuffered[this.currentTrackId];if(!Te)return;for(var Ve,ot=ne.start,ht=0;ht<Te.length;ht++)if(ot>=Te[ht].start&&ot<=Te[ht].end){Ve=Te[ht];break}var Qt=ne.start+ne.duration;Ve?Ve.end=Qt:(Ve={start:ot,end:Qt},Te.push(Ve)),this.fragmentTracker.fragBuffered(ne)}},{key:"onBufferFlushing",value:function(H,Z){var ne=Z.startOffset,ve=Z.endOffset;if(ne===0&&ve!==Number.POSITIVE_INFINITY){var Te=ve-1;if(Te<=0)return;Z.endOffsetSubtitles=Math.max(0,Te),this.tracksBuffered.forEach(function(Ve){for(var ot=0;ot<Ve.length;){if(Ve[ot].end<=Te){Ve.shift();continue}else if(Ve[ot].start<Te)Ve[ot].start=Te;else break;ot++}}),this.fragmentTracker.removeFragmentsInRange(ne,Te,pt.SUBTITLE)}}},{key:"onFragBuffered",value:function(H,Z){if(!this.loadedmetadata&&Z.frag.type===pt.MAIN){var ne;(ne=this.media)!=null&&ne.buffered.length&&(this.loadedmetadata=!0)}}},{key:"onError",value:function(H,Z){var ne=Z.frag;(ne==null?void 0:ne.type)===pt.SUBTITLE&&(this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Pi.STOPPED&&(this.state=Pi.IDLE))}},{key:"onSubtitleTracksUpdated",value:function(H,Z){var ne=this,ve=Z.subtitleTracks;if(ce(this.levels,ve)){this.levels=ve.map(function(Te){return new Dt(Te)});return}this.tracksBuffered=[],this.levels=ve.map(function(Te){var Ve=new Dt(Te);return ne.tracksBuffered[Ve.id]=[],Ve}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,pt.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}},{key:"onSubtitleTrackSwitch",value:function(H,Z){if(this.currentTrackId=Z.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var ne=this.levels[this.currentTrackId];ne!=null&&ne.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,ne&&this.setInterval(Ie)}},{key:"onSubtitleTrackLoaded",value:function(H,Z){var ne,ve=Z.details,Te=Z.id,Ve=this.currentTrackId,ot=this.levels;if(!ot.length)return;var ht=ot[Ve];if(Te>=ot.length||Te!==Ve||!ht)return;this.mediaBuffer=this.mediaBufferTimeRanges;var Qt=0;if(ve.live||(ne=ht.details)!=null&&ne.live){var Cr=this.mainDetails;if(ve.deltaUpdateFailed||!Cr)return;var wr=Cr.fragments[0];ht.details?(Qt=this.alignPlaylists(ve,ht.details),Qt===0&&wr&&(Qt=wr.start,gn(ve,Qt))):ve.hasProgramDateTime&&Cr.hasProgramDateTime?(La(ve,Cr),Qt=ve.fragments[0].start):wr&&(Qt=wr.start,gn(ve,Qt))}if(ht.details=ve,this.levelLastLoaded=Te,!this.startFragRequested&&(this.mainDetails||!ve.live)&&this.setStartPosition(ht.details,Qt),this.tick(),ve.live&&!this.fragCurrent&&this.media&&this.state===Pi.IDLE){var Kr=Ai(null,ve.fragments,this.media.currentTime,0);Kr||(this.warn("Subtitle playlist not aligned with playback"),ht.details=void 0)}}},{key:"_handleFragmentLoadComplete",value:function(H){var Z=this,ne=H.frag,ve=H.payload,Te=ne.decryptdata,Ve=this.hls;if(this.fragContextChanged(ne))return;if(ve&&ve.byteLength>0&&Te&&Te.key&&Te.iv&&Te.method==="AES-128"){var ot=performance.now();this.decrypter.decrypt(new Uint8Array(ve),Te.key.buffer,Te.iv.buffer).catch(function(ht){throw Ve.trigger(S.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_DECRYPT_ERROR,fatal:!1,error:ht,reason:ht.message,frag:ne}),ht}).then(function(ht){var Qt=performance.now();Ve.trigger(S.FRAG_DECRYPTED,{frag:ne,payload:ht,stats:{tstart:ot,tdecrypt:Qt}})}).catch(function(ht){Z.warn("".concat(ht.name,": ").concat(ht.message)),Z.state=Pi.IDLE})}}},{key:"doTick",value:function(){if(!this.media){this.state=Pi.IDLE;return}if(this.state===Pi.IDLE){var H=this.currentTrackId,Z=this.levels,ne=Z[H];if(!Z.length||!ne||!ne.details)return;var ve=this.config,Te=this.getLoadPosition(),Ve=Oi.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],Te,ve.maxBufferHole),ot=Ve.end,ht=Ve.len,Qt=this.getFwdBufferInfo(this.media,pt.MAIN),Cr=ne.details,wr=this.getMaxBufferLength(Qt==null?void 0:Qt.len)+Cr.levelTargetDuration;if(ht>wr)return;var Kr=Cr.fragments,Jr=Kr.length,Cn=Cr.edge,Nn=null,Jn=this.fragPrevious;if(ot<Cn){var bi=ve.maxFragLookUpTolerance,ua=ot>Cn-bi?0:bi;Nn=Ai(Jn,Kr,Math.max(Kr[0].start,ot),ua),!Nn&&Jn&&Jn.start<Kr[0].start&&(Nn=Kr[0])}else Nn=Kr[Jr-1];if(!Nn)return;if(Nn=this.mapToInitFragWhenRequired(Nn),Nn.sn!=="initSegment"){var Vi=Nn.sn-Cr.startSN,Zi=Kr[Vi-1];Zi&&Zi.cc===Nn.cc&&this.fragmentTracker.getState(Zi)===_t.NOT_LOADED&&(Nn=Zi)}this.fragmentTracker.getState(Nn)===_t.NOT_LOADED&&this.loadFragment(Nn,ne,ot)}}},{key:"getMaxBufferLength",value:function(H){var Z=Object(t.a)(Object(m.a)(L.prototype),"getMaxBufferLength",this).call(this);return H?Math.max(Z,H):Z}},{key:"loadFragment",value:function(H,Z,ne){this.fragCurrent=H,H.sn==="initSegment"?this._loadInitSegment(H,Z):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,H,Z,ne))}},{key:"mediaBufferTimeRanges",get:function(){return new kt(this.tracksBuffered[this.currentTrackId]||[])}}]),L}(io),kt=Object(s.a)(function Ae(q){Object(r.a)(this,Ae),this.buffered=void 0;var L=function(H,Z,ne){if(Z=Z>>>0,Z>ne-1)throw new DOMException("Failed to execute '".concat(H,"' on 'TimeRanges': The index provided (").concat(Z,") is greater than the maximum bound (").concat(ne,")"));return q[Z][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)}}}),or=function(Ae){Object(a.a)(L,Ae);var q=Object(e.a)(L);function L(W){var H;return Object(r.a)(this,L),H=q.call(this,W,"[subtitle-track-controller]"),H.media=null,H.tracks=[],H.groupId=null,H.tracksInGroup=[],H.trackId=-1,H.selectDefaultTrack=!0,H.queuedDefaultTrack=-1,H.trackChangeListener=function(){return H.onTextTracksChanged()},H.asyncPollTrackChange=function(){return H.pollTrackChange(0)},H.useTextTrackPolling=!1,H.subtitlePollingInterval=-1,H._subtitleDisplay=!0,H.registerListeners(),H}return Object(s.a)(L,[{key:"destroy",value:function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,Object(t.a)(Object(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(S.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(S.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(S.MANIFEST_LOADING,this.onManifestLoading,this),H.on(S.MANIFEST_PARSED,this.onManifestParsed,this),H.on(S.LEVEL_LOADING,this.onLevelLoading,this),H.on(S.LEVEL_SWITCHING,this.onLevelSwitching,this),H.on(S.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.on(S.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var H=this.hls;H.off(S.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(S.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(S.MANIFEST_LOADING,this.onManifestLoading,this),H.off(S.MANIFEST_PARSED,this.onManifestParsed,this),H.off(S.LEVEL_LOADING,this.onLevelLoading,this),H.off(S.LEVEL_SWITCHING,this.onLevelSwitching,this),H.off(S.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.off(S.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(H,Z){if(this.media=Z.media,!this.media)return;this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)}},{key:"pollTrackChange",value:function(H){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,H)}},{key:"onMediaDetaching",value:function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var H=Qr(this.media.textTracks);H.forEach(function(Z){Kn(Z)}),this.subtitleTrack=-1,this.media=null}},{key:"onManifestLoading",value:function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0}},{key:"onManifestParsed",value:function(H,Z){this.tracks=Z.subtitleTracks}},{key:"onSubtitleTrackLoaded",value:function(H,Z){var ne=Z.id,ve=Z.details,Te=this.trackId,Ve=this.tracksInGroup[Te];if(!Ve){this.warn("Invalid subtitle track id ".concat(ne));return}var ot=Ve.details;Ve.details=Z.details,this.log("subtitle track ".concat(ne," loaded [").concat(ve.startSN,"-").concat(ve.endSN,"]")),ne===this.trackId&&this.playlistLoaded(ne,Z,ot)}},{key:"onLevelLoading",value:function(H,Z){this.switchLevel(Z.level)}},{key:"onLevelSwitching",value:function(H,Z){this.switchLevel(Z.level)}},{key:"switchLevel",value:function(H){var Z=this.hls.levels[H];if(!(Z!=null&&Z.textGroupIds))return;var ne=Z.textGroupIds[Z.urlId],ve=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;if(this.groupId!==ne){var Te=this.tracks.filter(function(ht){return!ne||ht.groupId===ne});this.tracksInGroup=Te;var Ve=this.findTrackId(ve==null?void 0:ve.name)||this.findTrackId();this.groupId=ne||null;var ot={subtitleTracks:Te};this.log("Updating subtitle tracks, ".concat(Te.length,' track(s) found in "').concat(ne,'" group-id')),this.hls.trigger(S.SUBTITLE_TRACKS_UPDATED,ot),Ve!==-1&&this.setSubtitleTrack(Ve,ve)}else this.shouldReloadPlaylist(ve)&&this.setSubtitleTrack(this.trackId,ve)}},{key:"findTrackId",value:function(H){for(var Z=this.tracksInGroup,ne=0;ne<Z.length;ne++){var ve=Z[ne];if((!this.selectDefaultTrack||ve.default)&&(!H||H===ve.name))return ve.id}return-1}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===xt.SUBTITLE_TRACK&&Z.context.id===this.trackId&&Z.context.groupId===this.groupId&&this.checkRetry(Z)}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(H){this.selectDefaultTrack=!1;var Z=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(H,Z)}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var Z=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(Z)){var ne=Z.id,ve=Z.groupId,Te=Z.url;if(H)try{Te=H.addDirectives(Te)}catch(Ve){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(Ve))}this.log("Loading subtitle playlist for id ".concat(ne)),this.hls.trigger(S.SUBTITLE_TRACK_LOADING,{url:Te,id:ne,groupId:ve,deliveryDirectives:H||null})}}},{key:"toggleTrackModes",value:function(H){var Z=this,ne=this.media,ve=this.trackId;if(!ne)return;var Te=Qr(ne.textTracks),Ve=Te.filter(function(Qt){return Qt.groupId===Z.groupId});if(H===-1)[].slice.call(Te).forEach(function(Qt){Qt.mode="disabled"});else{var ot=Ve[ve];ot&&(ot.mode="disabled")}var ht=Ve[H];ht&&(ht.mode=this.subtitleDisplay?"showing":"hidden")}},{key:"setSubtitleTrack",value:function(H,Z){var ne,ve=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=H;return}if(this.trackId!==H&&this.toggleTrackModes(H),this.trackId===H&&(H===-1||(ne=ve[H])!=null&&ne.details)||H<-1||H>=ve.length)return;this.clearTimer();var Te=ve[H];if(this.log("Switching to subtitle-track ".concat(H)+(Te?' "'.concat(Te.name,'" lang:').concat(Te.lang," group:").concat(Te.groupId):"")),this.trackId=H,Te){var Ve=Te.id,ot=Te.groupId,ht=ot===void 0?"":ot,Qt=Te.name,Cr=Te.type,wr=Te.url;this.hls.trigger(S.SUBTITLE_TRACK_SWITCH,{id:Ve,groupId:ht,name:Qt,type:Cr,url:wr});var Kr=this.switchParams(Te.url,Z==null?void 0:Z.details);this.loadPlaylist(Kr)}else this.hls.trigger(S.SUBTITLE_TRACK_SWITCH,{id:H})}},{key:"onTextTracksChanged",value:function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var H=-1,Z=Qr(this.media.textTracks),ne=0;ne<Z.length;ne++)if(Z[ne].mode==="hidden")H=ne;else if(Z[ne].mode==="showing"){H=ne;break}this.subtitleTrack!==H&&(this.subtitleTrack=H)}}]),L}(fr);function Qr(Ae){for(var q=[],L=0;L<Ae.length;L++){var W=Ae[L];(W.kind==="subtitles"||W.kind==="captions")&&W.label&&q.push(Ae[L])}return q}var fn=function(){function Ae(q){Object(r.a)(this,Ae),this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=q}return Object(s.a)(Ae,[{key:"append",value:function(L,W){var H=this.queues[W];H.push(L),H.length===1&&this.buffers[W]&&this.executeNext(W)}},{key:"insertAbort",value:function(L,W){var H=this.queues[W];H.unshift(L),this.executeNext(W)}},{key:"appendBlocker",value:function(L){var W,H=new Promise(function(ne){W=ne}),Z={execute:W,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(Z,L),H}},{key:"executeNext",value:function(L){var W=this.buffers,H=this.queues,Z=W[L],ne=H[L];if(ne.length){var ve=ne[0];try{ve.execute()}catch(Te){j.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),ve.onError(Te),Z!=null&&Z.updating||(ne.shift(),this.executeNext(L))}}}},{key:"shiftAndExecuteNext",value:function(L){this.queues[L].shift(),this.executeNext(L)}},{key:"current",value:function(L){return this.queues[L][0]}}]),Ae}(),Ln=qt(),ui=/([ha]vc.)(?:\.[^.,]+)+/,wi=function(){function Ae(q){var L=this;Object(r.a)(this,Ae),this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var W=L.media,H=L.mediaSource;j.log("[buffer-controller]: Media source opened"),W&&(W.removeEventListener("emptied",L._onMediaEmptied),L.updateMediaElementDuration(),L.hls.trigger(S.MEDIA_ATTACHED,{media:W})),H&&H.removeEventListener("sourceopen",L._onMediaSourceOpen),L.checkPendingTracks()},this._onMediaSourceClose=function(){j.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){j.log("[buffer-controller]: Media source ended")},this._onMediaEmptied=function(){var W=L.media,H=L._objectUrl;W&&W.src!==H&&j.error("Media element src was set while attaching MediaSource (".concat(H," > ").concat(W.src,")"))},this.hls=q,this._initSourceBuffer(),this.registerListeners()}return Object(s.a)(Ae,[{key:"hasSourceTypes",value:function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}},{key:"destroy",value:function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null}},{key:"registerListeners",value:function(){var L=this.hls;L.on(S.MEDIA_ATTACHING,this.onMediaAttaching,this),L.on(S.MEDIA_DETACHING,this.onMediaDetaching,this),L.on(S.MANIFEST_LOADING,this.onManifestLoading,this),L.on(S.MANIFEST_PARSED,this.onManifestParsed,this),L.on(S.BUFFER_RESET,this.onBufferReset,this),L.on(S.BUFFER_APPENDING,this.onBufferAppending,this),L.on(S.BUFFER_CODECS,this.onBufferCodecs,this),L.on(S.BUFFER_EOS,this.onBufferEos,this),L.on(S.BUFFER_FLUSHING,this.onBufferFlushing,this),L.on(S.LEVEL_UPDATED,this.onLevelUpdated,this),L.on(S.FRAG_PARSED,this.onFragParsed,this),L.on(S.FRAG_CHANGED,this.onFragChanged,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(S.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(S.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(S.MANIFEST_LOADING,this.onManifestLoading,this),L.off(S.MANIFEST_PARSED,this.onManifestParsed,this),L.off(S.BUFFER_RESET,this.onBufferReset,this),L.off(S.BUFFER_APPENDING,this.onBufferAppending,this),L.off(S.BUFFER_CODECS,this.onBufferCodecs,this),L.off(S.BUFFER_EOS,this.onBufferEos,this),L.off(S.BUFFER_FLUSHING,this.onBufferFlushing,this),L.off(S.LEVEL_UPDATED,this.onLevelUpdated,this),L.off(S.FRAG_PARSED,this.onFragParsed,this),L.off(S.FRAG_CHANGED,this.onFragChanged,this)}},{key:"_initSourceBuffer",value:function(){this.sourceBuffer={},this.operationQueue=new fn(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.lastMpegAudioChunk=null}},{key:"onManifestLoading",value:function(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}},{key:"onManifestParsed",value:function(L,W){var H=2;(W.audio&&!W.video||!W.altAudio||!1)&&(H=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=H,j.log("".concat(this.bufferCodecEventsExpected," bufferCodec event(s) expected"))}},{key:"onMediaAttaching",value:function(L,W){var H=this.media=W.media;if(H&&Ln){var Z=this.mediaSource=new Ln;Z.addEventListener("sourceopen",this._onMediaSourceOpen),Z.addEventListener("sourceended",this._onMediaSourceEnded),Z.addEventListener("sourceclose",this._onMediaSourceClose),H.src=self.URL.createObjectURL(Z),this._objectUrl=H.src,H.addEventListener("emptied",this._onMediaEmptied)}}},{key:"onMediaDetaching",value:function(){var L=this.media,W=this.mediaSource,H=this._objectUrl;if(W){if(j.log("[buffer-controller]: media source detaching"),W.readyState==="open")try{W.endOfStream()}catch(Z){j.warn("[buffer-controller]: onMediaDetaching: ".concat(Z.message," while calling endOfStream"))}this.onBufferReset(),W.removeEventListener("sourceopen",this._onMediaSourceOpen),W.removeEventListener("sourceended",this._onMediaSourceEnded),W.removeEventListener("sourceclose",this._onMediaSourceClose),L&&(L.removeEventListener("emptied",this._onMediaEmptied),H&&self.URL.revokeObjectURL(H),L.src===H?(L.removeAttribute("src"),L.load()):j.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(S.MEDIA_DETACHED,void 0)}},{key:"onBufferReset",value:function(){var L=this;this.getSourceBufferTypes().forEach(function(W){var H=L.sourceBuffer[W];try{H&&(L.removeBufferListeners(W),L.mediaSource&&L.mediaSource.removeSourceBuffer(H),L.sourceBuffer[W]=void 0)}catch(Z){j.warn("[buffer-controller]: Failed to reset the ".concat(W," buffer"),Z)}}),this._initSourceBuffer()}},{key:"onBufferCodecs",value:function(L,W){var H=this,Z=this.getSourceBufferTypes().length;if(Object.keys(W).forEach(function(ne){if(Z){var ve=H.tracks[ne];if(ve&&typeof ve.buffer.changeType=="function"){var Te=W[ne],Ve=Te.id,ot=Te.codec,ht=Te.levelCodec,Qt=Te.container,Cr=Te.metadata,wr=(ve.levelCodec||ve.codec).replace(ui,"$1"),Kr=(ht||ot).replace(ui,"$1");if(wr!==Kr){var Jr="".concat(Qt,";codecs=").concat(ht||ot);H.appendChangeType(ne,Jr),j.log("[buffer-controller]: switching codec ".concat(wr," to ").concat(Kr)),H.tracks[ne]={buffer:ve.buffer,codec:ot,container:Qt,levelCodec:ht,metadata:Cr,id:Ve}}}}else H.pendingTracks[ne]=W[ne]}),Z)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}},{key:"appendChangeType",value:function(L,W){var H=this,Z=this.operationQueue,ne={execute:function(){var Te=H.sourceBuffer[L];Te&&(j.log("[buffer-controller]: changing ".concat(L," sourceBuffer type to ").concat(W)),Te.changeType(W)),Z.shiftAndExecuteNext(L)},onStart:function(){},onComplete:function(){},onError:function(Te){j.warn("[buffer-controller]: Failed to change ".concat(L," SourceBuffer type"),Te)}};Z.append(ne,L)}},{key:"onBufferAppending",value:function(L,W){var H=this,Z=this.hls,ne=this.operationQueue,ve=this.tracks,Te=W.data,Ve=W.type,ot=W.frag,ht=W.part,Qt=W.chunkMeta,Cr=Qt.buffering[Ve],wr=self.performance.now();Cr.start=wr;var Kr=ot.stats.buffering,Jr=ht?ht.stats.buffering:null;Kr.start===0&&(Kr.start=wr),Jr&&Jr.start===0&&(Jr.start=wr);var Cn=ve.audio,Nn=!1;Ve==="audio"&&(Cn==null?void 0:Cn.container)==="audio/mpeg"&&(Nn=!this.lastMpegAudioChunk||Qt.id===1||this.lastMpegAudioChunk.sn!==Qt.sn,this.lastMpegAudioChunk=Qt);var Jn=ot.start,bi={execute:function(){if(Cr.executeStart=self.performance.now(),Nn){var Vi=H.sourceBuffer[Ve];if(Vi){var Zi=Jn-Vi.timestampOffset;Math.abs(Zi)>=.1&&(j.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to ".concat(Jn," (delta: ").concat(Zi,") sn: ").concat(ot.sn,")")),Vi.timestampOffset=Jn)}}H.appendExecutor(Te,Ve)},onStart:function(){},onComplete:function(){var Vi=self.performance.now();Cr.executeEnd=Cr.end=Vi,Kr.first===0&&(Kr.first=Vi),Jr&&Jr.first===0&&(Jr.first=Vi);var Zi=H.sourceBuffer,ka={};for(var Ga in Zi)ka[Ga]=Oi.getBuffered(Zi[Ga]);H.appendError=0,H.hls.trigger(S.BUFFER_APPENDED,{type:Ve,frag:ot,part:ht,chunkMeta:Qt,parent:ot.type,timeRanges:ka})},onError:function(Vi){j.error("[buffer-controller]: Error encountered while trying to append to the ".concat(Ve," SourceBuffer"),Vi);var Zi={type:O.MEDIA_ERROR,parent:ot.type,details:I.BUFFER_APPEND_ERROR,frag:ot,part:ht,chunkMeta:Qt,error:Vi,err:Vi,fatal:!1};Vi.code===DOMException.QUOTA_EXCEEDED_ERR?Zi.details=I.BUFFER_FULL_ERROR:(H.appendError++,Zi.details=I.BUFFER_APPEND_ERROR,H.appendError>Z.config.appendErrorMaxRetry&&(j.error("[buffer-controller]: Failed ".concat(Z.config.appendErrorMaxRetry," times to append segment in sourceBuffer")),Zi.fatal=!0)),Z.trigger(S.ERROR,Zi)}};ne.append(bi,Ve)}},{key:"onBufferFlushing",value:function(L,W){var H=this,Z=this.operationQueue,ne=function(Te){return{execute:H.removeExecutor.bind(H,Te,W.startOffset,W.endOffset),onStart:function(){},onComplete:function(){H.hls.trigger(S.BUFFER_FLUSHED,{type:Te})},onError:function(ot){j.warn("[buffer-controller]: Failed to remove from ".concat(Te," SourceBuffer"),ot)}}};W.type?Z.append(ne(W.type),W.type):this.getSourceBufferTypes().forEach(function(ve){Z.append(ne(ve),ve)})}},{key:"onFragParsed",value:function(L,W){var H=this,Z=W.frag,ne=W.part,ve=[],Te=ne?ne.elementaryStreams:Z.elementaryStreams;Te[le.AUDIOVIDEO]?ve.push("audiovideo"):(Te[le.AUDIO]&&ve.push("audio"),Te[le.VIDEO]&&ve.push("video"));var Ve=function(){var ht=self.performance.now();Z.stats.buffering.end=ht,ne&&(ne.stats.buffering.end=ht);var Qt=ne?ne.stats:Z.stats;H.hls.trigger(S.FRAG_BUFFERED,{frag:Z,part:ne,stats:Qt,id:Z.type})};ve.length===0&&j.warn("Fragments must have at least one ElementaryStreamType set. type: ".concat(Z.type," level: ").concat(Z.level," sn: ").concat(Z.sn)),this.blockBuffers(Ve,ve)}},{key:"onFragChanged",value:function(L,W){this.flushBackBuffer()}},{key:"onBufferEos",value:function(L,W){var H=this,Z=this.getSourceBufferTypes().reduce(function(ne,ve){var Te=H.sourceBuffer[ve];return Te&&(!W.type||W.type===ve)&&(Te.ending=!0,Te.ended||(Te.ended=!0,j.log("[buffer-controller]: ".concat(ve," sourceBuffer now EOS")))),ne&&!!(!Te||Te.ended)},!0);Z&&(j.log("[buffer-controller]: Queueing mediaSource.endOfStream()"),this.blockBuffers(function(){H.getSourceBufferTypes().forEach(function(ve){var Te=H.sourceBuffer[ve];Te&&(Te.ending=!1)});var ne=H.mediaSource;if(!ne||ne.readyState!=="open"){ne&&j.info("[buffer-controller]: Could not call mediaSource.endOfStream(). mediaSource.readyState: ".concat(ne.readyState));return}j.log("[buffer-controller]: Calling mediaSource.endOfStream()"),ne.endOfStream()}))}},{key:"onLevelUpdated",value:function(L,W){var H=W.details;if(!H.fragments.length)return;this.details=H,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()}},{key:"flushBackBuffer",value:function(){var L=this.hls,W=this.details,H=this.media,Z=this.sourceBuffer;if(!H||W===null)return;var ne=this.getSourceBufferTypes();if(!ne.length)return;var ve=W.live&&L.config.liveBackBufferLength!==null?L.config.liveBackBufferLength:L.config.backBufferLength;if(!T(ve)||ve<0)return;var Te=H.currentTime,Ve=W.levelTargetDuration,ot=Math.max(ve,Ve),ht=Math.floor(Te/Ve)*Ve-ot;ne.forEach(function(Qt){var Cr=Z[Qt];if(Cr){var wr=Oi.getBuffered(Cr);if(wr.length>0&&ht>wr.start(0)){if(L.trigger(S.BACK_BUFFER_REACHED,{bufferEnd:ht}),W.live)L.trigger(S.LIVE_BACK_BUFFER_REACHED,{bufferEnd:ht});else if(Cr.ended&&wr.end(wr.length-1)-Te<Ve*2){j.info("[buffer-controller]: Cannot flush ".concat(Qt," back buffer while SourceBuffer is in ended state"));return}L.trigger(S.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,W=this.hls,H=this.media,Z=this.mediaSource,ne=L.fragments[0].start+L.totalduration,ve=H.duration,Te=T(Z.duration)?Z.duration:0;L.live&&W.config.liveDurationInfinity?(j.log("[buffer-controller]: Media Source duration is set to Infinity"),Z.duration=Infinity,this.updateSeekableRange(L)):(ne>Te&&ne>ve||!T(ve))&&(j.log("[buffer-controller]: Updating Media Source duration to ".concat(ne.toFixed(3))),Z.duration=ne)}},{key:"updateSeekableRange",value:function(L){var W=this.mediaSource,H=L.fragments,Z=H.length;if(Z&&L.live&&W!=null&&W.setLiveSeekableRange){var ne=Math.max(0,H[0].start),ve=Math.max(ne,ne+L.totalduration);W.setLiveSeekableRange(ne,ve)}}},{key:"checkPendingTracks",value:function(){var L=this.bufferCodecEventsExpected,W=this.operationQueue,H=this.pendingTracks,Z=Object.keys(H).length;if(Z&&!L||Z===2){this.createSourceBuffers(H),this.pendingTracks={};var ne=this.getSourceBufferTypes();if(ne.length)this.hls.trigger(S.BUFFER_CREATED,{tracks:this.tracks}),ne.forEach(function(Te){W.executeNext(Te)});else{var ve=new Error("could not create source buffer for media codec(s)");this.hls.trigger(S.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:ve,reason:ve.message})}}}},{key:"createSourceBuffers",value:function(L){var W=this.sourceBuffer,H=this.mediaSource;if(!H)throw Error("createSourceBuffers called when mediaSource was null");for(var Z in L)if(!W[Z]){var ne=L[Z];if(!ne)throw Error("source buffer exists for track ".concat(Z,", however track does not"));var ve=ne.levelCodec||ne.codec,Te="".concat(ne.container,";codecs=").concat(ve);j.log("[buffer-controller]: creating sourceBuffer(".concat(Te,")"));try{var Ve=W[Z]=H.addSourceBuffer(Te),ot=Z;this.addBufferListener(ot,"updatestart",this._onSBUpdateStart),this.addBufferListener(ot,"updateend",this._onSBUpdateEnd),this.addBufferListener(ot,"error",this._onSBUpdateError),this.tracks[Z]={buffer:Ve,codec:ve,container:ne.container,levelCodec:ne.levelCodec,metadata:ne.metadata,id:ne.id}}catch(ht){j.error("[buffer-controller]: error while trying to add sourceBuffer: ".concat(ht.message)),this.hls.trigger(S.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:ht,mimeType:Te})}}}},{key:"_onSBUpdateStart",value:function(L){var W=this.operationQueue,H=W.current(L);H.onStart()}},{key:"_onSBUpdateEnd",value:function(L){var W=this.operationQueue,H=W.current(L);H.onComplete(),W.shiftAndExecuteNext(L)}},{key:"_onSBUpdateError",value:function(L,W){var H=new Error("".concat(L," SourceBuffer error"));j.error("[buffer-controller]: ".concat(H),W),this.hls.trigger(S.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_APPENDING_ERROR,error:H,fatal:!1});var Z=this.operationQueue.current(L);Z&&Z.onError(W)}},{key:"removeExecutor",value:function(L,W,H){var Z=this.media,ne=this.mediaSource,ve=this.operationQueue,Te=this.sourceBuffer,Ve=Te[L];if(!Z||!ne||!Ve){j.warn("[buffer-controller]: Attempting to remove from the ".concat(L," SourceBuffer, but it does not exist")),ve.shiftAndExecuteNext(L);return}var ot=T(Z.duration)?Z.duration:Infinity,ht=T(ne.duration)?ne.duration:Infinity,Qt=Math.max(0,W),Cr=Math.min(H,ot,ht);Cr>Qt&&!Ve.ending?(Ve.ended=!1,j.log("[buffer-controller]: Removing [".concat(Qt,",").concat(Cr,"] from the ").concat(L," SourceBuffer")),Ve.remove(Qt,Cr)):ve.shiftAndExecuteNext(L)}},{key:"appendExecutor",value:function(L,W){var H=this.operationQueue,Z=this.sourceBuffer,ne=Z[W];if(!ne){j.warn("[buffer-controller]: Attempting to append to the ".concat(W," SourceBuffer, but it does not exist")),H.shiftAndExecuteNext(W);return}ne.ended=!1,ne.appendBuffer(L)}},{key:"blockBuffers",value:function(L){var W=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getSourceBufferTypes();if(!H.length){j.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(L);return}var Z=this.operationQueue,ne=H.map(function(ve){return Z.appendBlocker(ve)});Promise.all(ne).then(function(){L(),H.forEach(function(ve){var Te=W.sourceBuffer[ve];Te!=null&&Te.updating||Z.shiftAndExecuteNext(ve)})})}},{key:"getSourceBufferTypes",value:function(){return Object.keys(this.sourceBuffer)}},{key:"addBufferListener",value:function(L,W,H){var Z=this.sourceBuffer[L];if(!Z)return;var ne=H.bind(this,L);this.listeners[L].push({event:W,listener:ne}),Z.addEventListener(W,ne)}},{key:"removeBufferListeners",value:function(L){var W=this.sourceBuffer[L];if(!W)return;this.listeners[L].forEach(function(H){W.removeEventListener(H.event,H.listener)})}}]),Ae}(),gi={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Qi=function(q){var L=q;return gi.hasOwnProperty(q)&&(L=gi[q]),String.fromCharCode(L)},sa=15,Ua=100,no={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Wo={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Zo={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Bo={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Es=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],As=function(){function Ae(){Object(r.a)(this,Ae),this.time=null,this.verboseLevel=0}return Object(s.a)(Ae,[{key:"log",value:function(L,W){if(this.verboseLevel>=L){var H=typeof W=="function"?W():W;j.log("".concat(this.time," [").concat(L,"] ").concat(H))}}}]),Ae}(),$o=function(q){for(var L=[],W=0;W<q.length;W++)L.push(q[W].toString(16));return L},Do=function(){function Ae(q,L,W,H,Z){Object(r.a)(this,Ae),this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=q||"white",this.underline=L||!1,this.italics=W||!1,this.background=H||"black",this.flash=Z||!1}return Object(s.a)(Ae,[{key:"reset",value:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}},{key:"setStyles",value:function(L){for(var W=["foreground","underline","italics","background","flash"],H=0;H<W.length;H++){var Z=W[H];L.hasOwnProperty(Z)&&(this[Z]=L[Z])}}},{key:"isDefault",value:function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}},{key:"equals",value:function(L){return this.foreground===L.foreground&&this.underline===L.underline&&this.italics===L.italics&&this.background===L.background&&this.flash===L.flash}},{key:"copy",value:function(L){this.foreground=L.foreground,this.underline=L.underline,this.italics=L.italics,this.background=L.background,this.flash=L.flash}},{key:"toString",value:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}]),Ae}(),vo=function(){function Ae(q,L,W,H,Z,ne){Object(r.a)(this,Ae),this.uchar=void 0,this.penState=void 0,this.uchar=q||" ",this.penState=new Do(L,W,H,Z,ne)}return Object(s.a)(Ae,[{key:"reset",value:function(){this.uchar=" ",this.penState.reset()}},{key:"setChar",value:function(L,W){this.uchar=L,this.penState.copy(W)}},{key:"setPenState",value:function(L){this.penState.copy(L)}},{key:"equals",value:function(L){return this.uchar===L.uchar&&this.penState.equals(L.penState)}},{key:"copy",value:function(L){this.uchar=L.uchar,this.penState.copy(L.penState)}},{key:"isEmpty",value:function(){return this.uchar===" "&&this.penState.isDefault()}}]),Ae}(),Ms=function(){function Ae(q){Object(r.a)(this,Ae),this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var L=0;L<Ua;L++)this.chars.push(new vo);this.logger=q,this.pos=0,this.currPenState=new Do}return Object(s.a)(Ae,[{key:"equals",value:function(L){for(var W=!0,H=0;H<Ua;H++)if(!this.chars[H].equals(L.chars[H])){W=!1;break}return W}},{key:"copy",value:function(L){for(var W=0;W<Ua;W++)this.chars[W].copy(L.chars[W])}},{key:"isEmpty",value:function(){for(var L=!0,W=0;W<Ua;W++)if(!this.chars[W].isEmpty()){L=!1;break}return L}},{key:"setCursor",value:function(L){this.pos!==L&&(this.pos=L),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>Ua&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Ua)}},{key:"moveCursor",value:function(L){var W=this.pos+L;if(L>1)for(var H=this.pos+1;H<W+1;H++)this.chars[H].setPenState(this.currPenState);this.setCursor(W)}},{key:"backSpace",value:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}},{key:"insertChar",value:function(L){var W=this;L>=144&&this.backSpace();var H=Qi(L);if(this.pos>=Ua){this.logger.log(0,function(){return"Cannot insert "+L.toString(16)+" ("+H+") at position "+W.pos+". Skipping it!"});return}this.chars[this.pos].setChar(H,this.currPenState),this.moveCursor(1)}},{key:"clearFromPos",value:function(L){var W;for(W=L;W<Ua;W++)this.chars[W].reset()}},{key:"clear",value:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}},{key:"clearToEndOfRow",value:function(){this.clearFromPos(this.pos)}},{key:"getTextString",value:function(){for(var L=[],W=!0,H=0;H<Ua;H++){var Z=this.chars[H].uchar;Z!==" "&&(W=!1),L.push(Z)}return W?"":L.join("")}},{key:"setPenStyles",value:function(L){this.currPenState.setStyles(L);var W=this.chars[this.pos];W.setPenState(this.currPenState)}}]),Ae}(),rl=function(){function Ae(q){Object(r.a)(this,Ae),this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var L=0;L<sa;L++)this.rows.push(new Ms(q));this.logger=q,this.currRow=sa-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}return Object(s.a)(Ae,[{key:"reset",value:function(){for(var L=0;L<sa;L++)this.rows[L].clear();this.currRow=sa-1}},{key:"equals",value:function(L){for(var W=!0,H=0;H<sa;H++)if(!this.rows[H].equals(L.rows[H])){W=!1;break}return W}},{key:"copy",value:function(L){for(var W=0;W<sa;W++)this.rows[W].copy(L.rows[W])}},{key:"isEmpty",value:function(){for(var L=!0,W=0;W<sa;W++)if(!this.rows[W].isEmpty()){L=!1;break}return L}},{key:"backSpace",value:function(){var L=this.rows[this.currRow];L.backSpace()}},{key:"clearToEndOfRow",value:function(){var L=this.rows[this.currRow];L.clearToEndOfRow()}},{key:"insertChar",value:function(L){var W=this.rows[this.currRow];W.insertChar(L)}},{key:"setPen",value:function(L){var W=this.rows[this.currRow];W.setPenStyles(L)}},{key:"moveCursor",value:function(L){var W=this.rows[this.currRow];W.moveCursor(L)}},{key:"setCursor",value:function(L){this.logger.log(2,"setCursor: "+L);var W=this.rows[this.currRow];W.setCursor(L)}},{key:"setPAC",value:function(L){this.logger.log(2,function(){return"pacData = "+JSON.stringify(L)});var W=L.row-1;if(this.nrRollUpRows&&W<this.nrRollUpRows-1&&(W=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==W){for(var H=0;H<sa;H++)this.rows[H].clear();var Z=this.currRow+1-this.nrRollUpRows,ne=this.lastOutputScreen;if(ne){var ve=ne.rows[Z].cueStartTime,Te=this.logger.time;if(ve&&Te!==null&&ve<Te)for(var Ve=0;Ve<this.nrRollUpRows;Ve++)this.rows[W-this.nrRollUpRows+Ve+1].copy(ne.rows[Z+Ve])}}this.currRow=W;var ot=this.rows[this.currRow];if(L.indent!==null){var ht=L.indent,Qt=Math.max(ht-1,0);ot.setCursor(L.indent),L.color=ot.chars[Qt].penState.foreground}var Cr={foreground:L.color,underline:L.underline,italics:L.italics,background:"black",flash:!1};this.setPen(Cr)}},{key:"setBkgData",value:function(L){this.logger.log(2,function(){return"bkgData = "+JSON.stringify(L)}),this.backSpace(),this.setPen(L),this.insertChar(32)}},{key:"setRollUpRows",value:function(L){this.nrRollUpRows=L}},{key:"rollUp",value:function(){var L=this;if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,function(){return L.getDisplayText()});var W=this.currRow+1-this.nrRollUpRows,H=this.rows.splice(W,1)[0];H.clear(),this.rows.splice(this.currRow,0,H),this.logger.log(2,"Rolling up")}},{key:"getDisplayText",value:function(L){L=L||!1;for(var W=[],H="",Z=-1,ne=0;ne<sa;ne++){var ve=this.rows[ne].getTextString();ve&&(Z=ne+1,L?W.push("Row "+Z+": '"+ve+"'"):W.push(ve.trim()))}return W.length>0&&(L?H="["+W.join(" | ")+"]":H=W.join(`
|
|
|
`)),H}},{key:"getTextAndFormat",value:function(){return this.rows}}]),Ae}(),gs=function(){function Ae(q,L,W){Object(r.a)(this,Ae),this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=q,this.outputFilter=L,this.mode=null,this.verbose=0,this.displayedMemory=new rl(W),this.nonDisplayedMemory=new rl(W),this.lastOutputScreen=new rl(W),this.currRollUpRow=this.displayedMemory.rows[sa-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=W}return Object(s.a)(Ae,[{key:"reset",value:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[sa-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}},{key:"getHandler",value:function(){return this.outputFilter}},{key:"setHandler",value:function(L){this.outputFilter=L}},{key:"setPAC",value:function(L){this.writeScreen.setPAC(L)}},{key:"setBkgData",value:function(L){this.writeScreen.setBkgData(L)}},{key:"setMode",value:function(L){if(L===this.mode)return;this.mode=L,this.logger.log(2,function(){return"MODE="+L}),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=L}},{key:"insertChars",value:function(L){for(var W=this,H=0;H<L.length;H++)this.writeScreen.insertChar(L[H]);var Z=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,function(){return Z+": "+W.writeScreen.getDisplayText(!0)}),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,function(){return"DISPLAYED: "+W.displayedMemory.getDisplayText(!0)}),this.outputDataUpdate())}},{key:"ccRCL",value:function(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}},{key:"ccBS",value:function(){if(this.logger.log(2,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()}},{key:"ccAOF",value:function(){}},{key:"ccAON",value:function(){}},{key:"ccDER",value:function(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}},{key:"ccRU",value:function(L){this.logger.log(2,"RU("+L+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(L)}},{key:"ccFON",value:function(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}},{key:"ccRDC",value:function(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}},{key:"ccTR",value:function(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}},{key:"ccRTD",value:function(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}},{key:"ccEDM",value:function(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}},{key:"ccCR",value:function(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}},{key:"ccENM",value:function(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}},{key:"ccEOC",value:function(){var L=this;if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var W=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=W,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,function(){return"DISP: "+L.displayedMemory.getDisplayText()})}this.outputDataUpdate(!0)}},{key:"ccTO",value:function(L){this.logger.log(2,"TO("+L+") - Tab Offset"),this.writeScreen.moveCursor(L)}},{key:"ccMIDROW",value:function(L){var W={flash:!1};if(W.underline=L%2===1,W.italics=L>=46,W.italics)W.foreground="white";else{var H=Math.floor(L/2)-16,Z=["white","green","blue","cyan","red","yellow","magenta"];W.foreground=Z[H]}this.logger.log(2,"MIDROW: "+JSON.stringify(W)),this.writeScreen.setPen(W)}},{key:"outputDataUpdate",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,W=this.logger.time;if(W===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=W:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,W,this.lastOutputScreen),L&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:W),this.lastOutputScreen.copy(this.displayedMemory))}},{key:"cueSplitAtTime",value:function(L){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,L,this.displayedMemory),this.cueStartTime=L))}}]),Ae}(),Ra=function(){function Ae(q,L,W){Object(r.a)(this,Ae),this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var H=new As;this.channels=[null,new gs(q,L,H),new gs(q+1,W,H)],this.cmdHistory=Us(),this.logger=H}return Object(s.a)(Ae,[{key:"getHandler",value:function(L){return this.channels[L].getHandler()}},{key:"setHandler",value:function(L,W){this.channels[L].setHandler(W)}},{key:"addData",value:function(L,W){var H,Z,ne,ve=!1;this.logger.time=L;for(var Te=0;Te<W.length;Te+=2){if(Z=W[Te]&127,ne=W[Te+1]&127,Z===0&&ne===0)continue;if(this.logger.log(3,"["+$o([W[Te],W[Te+1]])+"] -> ("+$o([Z,ne])+")"),H=this.parseCmd(Z,ne),H||(H=this.parseMidrow(Z,ne)),H||(H=this.parsePAC(Z,ne)),H||(H=this.parseBackgroundAttributes(Z,ne)),!H&&(ve=this.parseChars(Z,ne),ve)){var Ve=this.currentChannel;if(Ve&&Ve>0){var ot=this.channels[Ve];ot.insertChars(ve)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}!H&&!ve&&this.logger.log(2,"Couldn't parse cleaned data "+$o([Z,ne])+" orig: "+$o([W[Te],W[Te+1]]))}}},{key:"parseCmd",value:function(L,W){var H=this.cmdHistory,Z=(L===20||L===28||L===21||L===29)&&W>=32&&W<=47,ne=(L===23||L===31)&&W>=33&&W<=35;if(!(Z||ne))return!1;if(fl(L,W,H))return dl(null,null,H),this.logger.log(3,"Repeated command ("+$o([L,W])+") is dropped"),!0;var ve=L===20||L===21||L===23?1:2,Te=this.channels[ve];return L===20||L===21||L===28||L===29?W===32?Te.ccRCL():W===33?Te.ccBS():W===34?Te.ccAOF():W===35?Te.ccAON():W===36?Te.ccDER():W===37?Te.ccRU(2):W===38?Te.ccRU(3):W===39?Te.ccRU(4):W===40?Te.ccFON():W===41?Te.ccRDC():W===42?Te.ccTR():W===43?Te.ccRTD():W===44?Te.ccEDM():W===45?Te.ccCR():W===46?Te.ccENM():W===47&&Te.ccEOC():Te.ccTO(W-32),dl(L,W,H),this.currentChannel=ve,!0}},{key:"parseMidrow",value:function(L,W){var H=0;if((L===17||L===25)&&W>=32&&W<=47){if(L===17?H=1:H=2,H!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var Z=this.channels[H];return Z?(Z.ccMIDROW(W),this.logger.log(3,"MIDROW ("+$o([L,W])+")"),!0):!1}return!1}},{key:"parsePAC",value:function(L,W){var H,Z=this.cmdHistory,ne=(L>=17&&L<=23||L>=25&&L<=31)&&W>=64&&W<=127,ve=(L===16||L===24)&&W>=64&&W<=95;if(!(ne||ve))return!1;if(fl(L,W,Z))return dl(null,null,Z),!0;var Te=L<=23?1:2;W>=64&&W<=95?H=Te===1?no[L]:Zo[L]:H=Te===1?Wo[L]:Bo[L];var Ve=this.channels[Te];return Ve?(Ve.setPAC(this.interpretPAC(H,W)),dl(L,W,Z),this.currentChannel=Te,!0):!1}},{key:"interpretPAC",value:function(L,W){var H,Z={color:null,italics:!1,indent:null,underline:!1,row:L};return W>95?H=W-96:H=W-64,Z.underline=(H&1)===1,H<=13?Z.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(H/2)]:H<=15?(Z.italics=!0,Z.color="white"):Z.indent=Math.floor((H-16)/2)*4,Z}},{key:"parseChars",value:function(L,W){var H,Z=null,ne=null;if(L>=25?(H=2,ne=L-8):(H=1,ne=L),ne>=17&&ne<=19){var ve;ne===17?ve=W+80:ne===18?ve=W+112:ve=W+144,this.logger.log(2,"Special char '"+Qi(ve)+"' in channel "+H),Z=[ve]}else L>=32&&L<=127&&(Z=W===0?[L]:[L,W]);if(Z){var Te=$o(Z);this.logger.log(3,"Char codes = "+Te.join(",")),dl(L,W,this.cmdHistory)}return Z}},{key:"parseBackgroundAttributes",value:function(L,W){var H=(L===16||L===24)&&W>=32&&W<=47,Z=(L===23||L===31)&&W>=45&&W<=47;if(!(H||Z))return!1;var ne,ve={};L===16||L===24?(ne=Math.floor((W-32)/2),ve.background=Es[ne],W%2===1&&(ve.background=ve.background+"_semi")):W===45?ve.background="transparent":(ve.foreground="black",W===47&&(ve.underline=!0));var Te=L<=23?1:2,Ve=this.channels[Te];return Ve.setBkgData(ve),dl(L,W,this.cmdHistory),!0}},{key:"reset",value:function(){for(var L=0;L<Object.keys(this.channels).length;L++){var W=this.channels[L];W&&W.reset()}this.cmdHistory=Us()}},{key:"cueSplitAtTime",value:function(L){for(var W=0;W<this.channels.length;W++){var H=this.channels[W];H&&H.cueSplitAtTime(L)}}}]),Ae}();function dl(Ae,q,L){L.a=Ae,L.b=q}function fl(Ae,q,L){return L.a===Ae&&L.b===q}function Us(){return{a:null,b:null}}var Os=function(){function Ae(q,L){Object(r.a)(this,Ae),this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=q,this.trackName=L}return Object(s.a)(Ae,[{key:"dispatchCue",value:function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null}},{key:"newCue",value:function(L,W,H){(this.startTime===null||this.startTime>L)&&(this.startTime=L),this.endTime=W,this.screen=H,this.timelineController.createCaptionsTrack(this.trackName)}},{key:"reset",value:function(){this.cueRanges=[],this.startTime=null}}]),Ae}(),Xs=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var Ae=["","lr","rl"],q=["start","middle","end","left","right"];function L(ve,Te){if(typeof Te!="string")return!1;if(!Array.isArray(ve))return!1;var Ve=Te.toLowerCase();return~ve.indexOf(Ve)?Ve:!1}function W(ve){return L(Ae,ve)}function H(ve){return L(q,ve)}function Z(ve){for(var Te=arguments.length,Ve=new Array(Te>1?Te-1:0),ot=1;ot<Te;ot++)Ve[ot-1]=arguments[ot];for(var ht=1;ht<arguments.length;ht++){var Qt=arguments[ht];for(var Cr in Qt)ve[Cr]=Qt[Cr]}return ve}function ne(ve,Te,Ve){var ot=this,ht={enumerable:!0};ot.hasBeenReset=!1;var Qt="",Cr=!1,wr=ve,Kr=Te,Jr=Ve,Cn=null,Nn="",Jn=!0,bi="auto",ua="start",Vi=50,Zi="middle",ka=50,Ga="middle";Object.defineProperty(ot,"id",Z({},ht,{get:function(){return Qt},set:function(Sa){Qt=""+Sa}})),Object.defineProperty(ot,"pauseOnExit",Z({},ht,{get:function(){return Cr},set:function(Sa){Cr=!!Sa}})),Object.defineProperty(ot,"startTime",Z({},ht,{get:function(){return wr},set:function(Sa){if(typeof Sa!="number")throw new TypeError("Start time must be set to a number.");wr=Sa,this.hasBeenReset=!0}})),Object.defineProperty(ot,"endTime",Z({},ht,{get:function(){return Kr},set:function(Sa){if(typeof Sa!="number")throw new TypeError("End time must be set to a number.");Kr=Sa,this.hasBeenReset=!0}})),Object.defineProperty(ot,"text",Z({},ht,{get:function(){return Jr},set:function(Sa){Jr=""+Sa,this.hasBeenReset=!0}})),Object.defineProperty(ot,"region",Z({},ht,{get:function(){return Cn},set:function(Sa){Cn=Sa,this.hasBeenReset=!0}})),Object.defineProperty(ot,"vertical",Z({},ht,{get:function(){return Nn},set:function(Sa){var Go=W(Sa);if(Go===!1)throw new SyntaxError("An invalid or illegal string was specified.");Nn=Go,this.hasBeenReset=!0}})),Object.defineProperty(ot,"snapToLines",Z({},ht,{get:function(){return Jn},set:function(Sa){Jn=!!Sa,this.hasBeenReset=!0}})),Object.defineProperty(ot,"line",Z({},ht,{get:function(){return bi},set:function(Sa){if(typeof Sa!="number"&&Sa!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");bi=Sa,this.hasBeenReset=!0}})),Object.defineProperty(ot,"lineAlign",Z({},ht,{get:function(){return ua},set:function(Sa){var Go=H(Sa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");ua=Go,this.hasBeenReset=!0}})),Object.defineProperty(ot,"position",Z({},ht,{get:function(){return Vi},set:function(Sa){if(Sa<0||Sa>100)throw new Error("Position must be between 0 and 100.");Vi=Sa,this.hasBeenReset=!0}})),Object.defineProperty(ot,"positionAlign",Z({},ht,{get:function(){return Zi},set:function(Sa){var Go=H(Sa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");Zi=Go,this.hasBeenReset=!0}})),Object.defineProperty(ot,"size",Z({},ht,{get:function(){return ka},set:function(Sa){if(Sa<0||Sa>100)throw new Error("Size must be between 0 and 100.");ka=Sa,this.hasBeenReset=!0}})),Object.defineProperty(ot,"align",Z({},ht,{get:function(){return Ga},set:function(Sa){var Go=H(Sa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");Ga=Go,this.hasBeenReset=!0}})),ot.displayState=void 0}return ne.prototype.getCueAsHTML=function(){var ve=self.WebVTT;return ve.convertCueToDOMTree(self,this.text)},ne}(),Ql=function(){function Ae(){Object(r.a)(this,Ae)}return Object(s.a)(Ae,[{key:"decode",value:function(L,W){if(!L)return"";if(typeof L!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(L))}}]),Ae}();function Ul(Ae){function q(W,H,Z,ne){return(W|0)*3600+(H|0)*60+(Z|0)+parseFloat(ne||0)}var L=Ae.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return L?parseFloat(L[2])>59?q(L[2],L[3],0,L[4]):q(L[1],L[2],L[3],L[4]):null}var wl=function(){function Ae(){Object(r.a)(this,Ae),this.values=Object.create(null)}return Object(s.a)(Ae,[{key:"set",value:function(L,W){!this.get(L)&&W!==""&&(this.values[L]=W)}},{key:"get",value:function(L,W,H){return H?this.has(L)?this.values[L]:W[H]:this.has(L)?this.values[L]:W}},{key:"has",value:function(L){return L in this.values}},{key:"alt",value:function(L,W,H){for(var Z=0;Z<H.length;++Z)if(W===H[Z]){this.set(L,W);break}}},{key:"integer",value:function(L,W){/^-?\d+$/.test(W)&&this.set(L,parseInt(W,10))}},{key:"percent",value:function(L,W){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(W)){var H=parseFloat(W);if(H>=0&&H<=100)return this.set(L,H),!0}return!1}}]),Ae}();function Ts(Ae,q,L,W){var H=W?Ae.split(W):[Ae];for(var Z in H){if(typeof H[Z]!="string")continue;var ne=H[Z].split(L);if(ne.length!==2)continue;var ve=ne[0],Te=ne[1];q(ve,Te)}}var Ws=new Xs(0,0,""),Tl=Ws.align==="middle"?"middle":"center";function pl(Ae,q,L){var W=Ae;function H(){var ve=Ul(Ae);if(ve===null)throw new Error("Malformed timestamp: "+W);return Ae=Ae.replace(/^[^\sa-zA-Z-]+/,""),ve}function Z(ve,Te){var Ve=new wl;Ts(ve,function(Qt,Cr){var wr;switch(Qt){case"region":for(var Kr=L.length-1;Kr>=0;Kr--)if(L[Kr].id===Cr){Ve.set(Qt,L[Kr].region);break}break;case"vertical":Ve.alt(Qt,Cr,["rl","lr"]);break;case"line":wr=Cr.split(","),Ve.integer(Qt,wr[0]),Ve.percent(Qt,wr[0])&&Ve.set("snapToLines",!1),Ve.alt(Qt,wr[0],["auto"]),wr.length===2&&Ve.alt("lineAlign",wr[1],["start",Tl,"end"]);break;case"position":wr=Cr.split(","),Ve.percent(Qt,wr[0]),wr.length===2&&Ve.alt("positionAlign",wr[1],["start",Tl,"end","line-left","line-right","auto"]);break;case"size":Ve.percent(Qt,Cr);break;case"align":Ve.alt(Qt,Cr,["start",Tl,"end","left","right"]);break}},/:/,/\s/),Te.region=Ve.get("region",null),Te.vertical=Ve.get("vertical","");var ot=Ve.get("line","auto");ot==="auto"&&Ws.line===-1&&(ot=-1),Te.line=ot,Te.lineAlign=Ve.get("lineAlign","start"),Te.snapToLines=Ve.get("snapToLines",!0),Te.size=Ve.get("size",100),Te.align=Ve.get("align",Tl);var ht=Ve.get("position","auto");ht==="auto"&&Ws.position===50&&(ht=Te.align==="start"||Te.align==="left"?0:Te.align==="end"||Te.align==="right"?100:50),Te.position=ht}function ne(){Ae=Ae.replace(/^\s+/,"")}if(ne(),q.startTime=H(),ne(),Ae.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+W);Ae=Ae.slice(3),ne(),q.endTime=H(),ne(),Z(Ae,q)}function jo(Ae){return Ae.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}var yo=function(){function Ae(){Object(r.a)(this,Ae),this.state="INITIAL",this.buffer="",this.decoder=new Ql,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}return Object(s.a)(Ae,[{key:"parse",value:function(L){var W=this;L&&(W.buffer+=W.decoder.decode(L,{stream:!0}));function H(){var ot=W.buffer,ht=0;for(ot=jo(ot);ht<ot.length&&ot[ht]!=="\r"&&ot[ht]!==`
|
|
|
`;)++ht;var Qt=ot.slice(0,ht);return ot[ht]==="\r"&&++ht,ot[ht]===`
|
|
|
`&&++ht,W.buffer=ot.slice(ht),Qt}function Z(ot){Ts(ot,function(ht,Qt){},/:/)}try{var ne="";if(W.state==="INITIAL"){if(!/\r\n|\n/.test(W.buffer))return this;ne=H();var ve=ne.match(/^()?WEBVTT([ \t].*)?$/);if(!(ve!=null&&ve[0]))throw new Error("Malformed WebVTT signature.");W.state="HEADER"}for(var Te=!1;W.buffer;){if(!/\r\n|\n/.test(W.buffer))return this;Te?Te=!1:ne=H();switch(W.state){case"HEADER":/:/.test(ne)?Z(ne):ne||(W.state="ID");continue;case"NOTE":ne||(W.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(ne)){W.state="NOTE";break}if(!ne)continue;if(W.cue=new Xs(0,0,""),W.state="CUE",ne.indexOf("-->")===-1){W.cue.id=ne;continue}case"CUE":if(!W.cue){W.state="BADCUE";continue}try{pl(ne,W.cue,W.regionList)}catch(ot){W.cue=null,W.state="BADCUE";continue}W.state="CUETEXT";continue;case"CUETEXT":{var Ve=ne.indexOf("-->")!==-1;if(!ne||Ve&&(Te=!0)){W.oncue&&W.cue&&W.oncue(W.cue),W.cue=null,W.state="ID";continue}if(W.cue===null)continue;W.cue.text&&(W.cue.text+=`
|
|
|
`),W.cue.text+=ne}continue;case"BADCUE":ne||(W.state="ID")}}}catch(ot){W.state==="CUETEXT"&&W.cue&&W.oncue&&W.oncue(W.cue),W.cue=null,W.state=W.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}},{key:"flush",value:function(){var L=this;try{if((L.cue||L.state==="HEADER")&&(L.buffer+=`
|
|
|
|
|
|
`,L.parse()),L.state==="INITIAL"||L.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(W){L.onparsingerror&&L.onparsingerror(W)}return L.onflush&&L.onflush(),this}}]),Ae}(),qo=/\r\n|\n\r|\n|\r/g,ps=function(q,L){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return q.slice(W,W+L.length)===L},Is=function(q){var L=parseInt(q.slice(-3)),W=parseInt(q.slice(-6,-4)),H=parseInt(q.slice(-9,-7)),Z=q.length>9?parseInt(q.substring(0,q.indexOf(":"))):0;if(!T(L)||!T(W)||!T(H)||!T(Z))throw Error("Malformed X-TIMESTAMP-MAP: Local:".concat(q));return L+=1e3*W,L+=60*1e3*H,L+=60*60*1e3*Z,L},es=function(q){for(var L=5381,W=q.length;W;)L=L*33^q.charCodeAt(--W);return(L>>>0).toString()};function Ls(Ae,q,L){return es(Ae.toString())+es(q.toString())+es(L)}var Ps=function(q,L,W){var H=q[L],Z=q[H.prevCC];if(!Z||!Z.new&&H.new){q.ccOffset=q.presentationOffset=H.start,H.new=!1;return}for(;(ne=Z)!=null&&ne.new;){var ne;q.ccOffset+=H.start-Z.start,H.new=!1,H=Z,Z=q[H.prevCC]}q.presentationOffset=W};function ml(Ae,q,L,W,H,Z,ne){var ve=new yo,Te=ut(new Uint8Array(Ae)).trim().replace(qo,`
|
|
|
`).split(`
|
|
|
`),Ve=[],ot=q?lo(q.baseTime,q.timescale):0,ht="00:00.000",Qt=0,Cr=0,wr,Kr=!0;ve.oncue=function(Jr){var Cn=L[W],Nn=L.ccOffset,Jn=(Qt-ot)/9e4;if(Cn!=null&&Cn.new&&(Cr!==void 0?Nn=L.ccOffset=Cn.start:Ps(L,W,Jn)),Jn){if(!q){wr=new Error("Missing initPTS for VTT MPEGTS");return}Nn=Jn-L.presentationOffset}var bi=Jr.endTime-Jr.startTime,ua=Ko((Jr.startTime+Nn-Cr)*9e4,H*9e4)/9e4;Jr.startTime=Math.max(ua,0),Jr.endTime=Math.max(ua+bi,0);var Vi=Jr.text.trim();Jr.text=decodeURIComponent(encodeURIComponent(Vi)),Jr.id||(Jr.id=Ls(Jr.startTime,Jr.endTime,Vi)),Jr.endTime>0&&Ve.push(Jr)},ve.onparsingerror=function(Jr){wr=Jr},ve.onflush=function(){if(wr){ne(wr);return}Z(Ve)},Te.forEach(function(Jr){if(Kr)if(ps(Jr,"X-TIMESTAMP-MAP=")){Kr=!1,Jr.slice(16).split(",").forEach(function(Cn){ps(Cn,"LOCAL:")?ht=Cn.slice(6):ps(Cn,"MPEGTS:")&&(Qt=parseInt(Cn.slice(7)))});try{Cr=Is(ht)/1e3}catch(Cn){wr=Cn}return}else Jr===""&&(Kr=!1);ve.parse(Jr+`
|
|
|
`)}),ve.flush()}var Rl="stpp.ttml.im1t",_l=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Bl=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,jl={left:"start",center:"center",right:"end",start:"start",end:"end"};function kl(Ae,q,L,W){var H=Zt(new Uint8Array(Ae),["mdat"]);if(H.length===0){W(new Error("Could not parse IMSC1 mdat"));return}var Z=H.map(function(ve){return ut(ve)}),ne=Fa(q.baseTime,1,q.timescale);try{Z.forEach(function(ve){return L(Xl(ve,ne))})}catch(ve){W(ve)}}function Xl(Ae,q){var L=new DOMParser,W=L.parseFromString(Ae,"text/xml"),H=W.getElementsByTagName("tt")[0];if(!H)throw new Error("Invalid ttml");var Z={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},ne=Object.keys(Z).reduce(function(ht,Qt){return ht[Qt]=H.getAttribute("ttp:".concat(Qt))||Z[Qt],ht},{}),ve=H.getAttribute("xml:space")!=="preserve",Te=Ys(ol(H,"styling","style")),Ve=Ys(ol(H,"layout","region")),ot=ol(H,"body","[begin]");return[].map.call(ot,function(ht){var Qt=sl(ht,ve);if(!Qt||!ht.hasAttribute("begin"))return null;var Cr=Wl(ht.getAttribute("begin"),ne),wr=Wl(ht.getAttribute("dur"),ne),Kr=Wl(ht.getAttribute("end"),ne);if(Cr===null)throw Ml(ht);if(Kr===null){if(wr===null)throw Ml(ht);Kr=Cr+wr}var Jr=new Xs(Cr-q,Kr-q,Qt);Jr.id=Ls(Jr.startTime,Jr.endTime,Jr.text);var Cn=Ve[ht.getAttribute("region")],Nn=Te[ht.getAttribute("style")],Jn=nl(Cn,Nn,Te),bi=Jn.textAlign;if(bi){var ua=jl[bi];ua&&(Jr.lineAlign=ua),Jr.align=bi}return E(Jr,Jn),Jr}).filter(function(ht){return ht!==null})}function ol(Ae,q,L){var W=Ae.getElementsByTagName(q)[0];return W?[].slice.call(W.querySelectorAll(L)):[]}function Ys(Ae){return Ae.reduce(function(q,L){var W=L.getAttribute("xml:id");return W&&(q[W]=L),q},{})}function sl(Ae,q){return[].slice.call(Ae.childNodes).reduce(function(L,W,H){var Z;return W.nodeName==="br"&&H?L+`
|
|
|
`:(Z=W.childNodes)!=null&&Z.length?sl(W,q):q?L+W.textContent.trim().replace(/\s+/g," "):L+W.textContent},"")}function nl(Ae,q,L){var W="http://www.w3.org/ns/ttml#styling",H=null,Z=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],ne=Ae!=null&&Ae.hasAttribute("style")?Ae.getAttribute("style"):null;return ne&&L.hasOwnProperty(ne)&&(H=L[ne]),Z.reduce(function(ve,Te){var Ve=xl(q,W,Te)||xl(Ae,W,Te)||xl(H,W,Te);return Ve&&(ve[Te]=Ve),ve},{})}function xl(Ae,q,L){return Ae&&Ae.hasAttributeNS(q,L)?Ae.getAttributeNS(q,L):null}function Ml(Ae){return new Error("Could not parse ttml timestamp ".concat(Ae))}function Wl(Ae,q){if(!Ae)return null;var L=Ul(Ae);return L===null&&(_l.test(Ae)?L=au(Ae,q):Bl.test(Ae)&&(L=Nl(Ae,q))),L}function au(Ae,q){var L=_l.exec(Ae),W=(L[4]|0)+(L[5]|0)/q.subFrameRate;return(L[1]|0)*3600+(L[2]|0)*60+(L[3]|0)+W/q.frameRate}function Nl(Ae,q){var L=Bl.exec(Ae),W=Number(L[1]),H=L[2];switch(H){case"h":return W*3600;case"m":return W*60;case"ms":return W*1e3;case"f":return W/q.frameRate;case"t":return W/q.tickRate}return W}var $l=function(){function Ae(q){if(Object(r.a)(this,Ae),this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=pu(),this.captionsProperties=void 0,this.hls=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 Os(this,"textTrack1"),W=new Os(this,"textTrack2"),H=new Os(this,"textTrack3"),Z=new Os(this,"textTrack4");this.cea608Parser1=new Ra(1,L,W),this.cea608Parser2=new Ra(3,H,Z)}q.on(S.MEDIA_ATTACHING,this.onMediaAttaching,this),q.on(S.MEDIA_DETACHING,this.onMediaDetaching,this),q.on(S.MANIFEST_LOADING,this.onManifestLoading,this),q.on(S.MANIFEST_LOADED,this.onManifestLoaded,this),q.on(S.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),q.on(S.FRAG_LOADING,this.onFragLoading,this),q.on(S.FRAG_LOADED,this.onFragLoaded,this),q.on(S.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),q.on(S.FRAG_DECRYPTED,this.onFragDecrypted,this),q.on(S.INIT_PTS_FOUND,this.onInitPtsFound,this),q.on(S.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),q.on(S.BUFFER_FLUSHING,this.onBufferFlushing,this)}return Object(s.a)(Ae,[{key:"destroy",value:function(){var L=this.hls;L.off(S.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(S.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(S.MANIFEST_LOADING,this.onManifestLoading,this),L.off(S.MANIFEST_LOADED,this.onManifestLoaded,this),L.off(S.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),L.off(S.FRAG_LOADING,this.onFragLoading,this),L.off(S.FRAG_LOADED,this.onFragLoaded,this),L.off(S.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),L.off(S.FRAG_DECRYPTED,this.onFragDecrypted,this),L.off(S.INIT_PTS_FOUND,this.onInitPtsFound,this),L.off(S.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),L.off(S.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null}},{key:"addCues",value:function(L,W,H,Z,ne){for(var ve=!1,Te=ne.length;Te--;){var Ve=ne[Te],ot=Iu(Ve[0],Ve[1],W,H);if(ot>=0&&(Ve[0]=Math.min(Ve[0],W),Ve[1]=Math.max(Ve[1],H),ve=!0,ot/(H-W)>.5))return}if(ve||ne.push([W,H]),this.config.renderTextTracksNatively){var ht=this.captionsTracks[L];this.Cues.newCue(ht,W,H,Z)}else{var Qt=this.Cues.newCue(null,W,H,Z);this.hls.trigger(S.CUES_PARSED,{type:"captions",cues:Qt,track:L})}}},{key:"onInitPtsFound",value:function(L,W){var H=this,Z=W.frag,ne=W.id,ve=W.initPTS,Te=W.timescale,Ve=this.unparsedVttFrags;ne==="main"&&(this.initPTS[Z.cc]={baseTime:ve,timescale:Te}),Ve.length&&(this.unparsedVttFrags=[],Ve.forEach(function(ot){H.onFragLoaded(S.FRAG_LOADED,ot)}))}},{key:"getExistingTrack",value:function(L){var W=this.media;if(W)for(var H=0;H<W.textTracks.length;H++){var Z=W.textTracks[H];if(Z[L])return Z}return null}},{key:"createCaptionsTrack",value:function(L){this.config.renderTextTracksNatively?this.createNativeTrack(L):this.createNonNativeTrack(L)}},{key:"createNativeTrack",value:function(L){if(this.captionsTracks[L])return;var W=this.captionsProperties,H=this.captionsTracks,Z=this.media,ne=W[L],ve=ne.label,Te=ne.languageCode,Ve=this.getExistingTrack(L);if(Ve)H[L]=Ve,Kn(H[L]),pn(H[L],Z);else{var ot=this.createTextTrack("captions",ve,Te);ot&&(ot[L]=!0,H[L]=ot)}}},{key:"createNonNativeTrack",value:function(L){if(this.nonNativeCaptionsTracks[L])return;var W=this.captionsProperties[L];if(!W)return;var H=W.label,Z={_id:L,label:H,kind:"captions",default:W.media?!!W.media.default:!1,closedCaptions:W.media};this.nonNativeCaptionsTracks[L]=Z,this.hls.trigger(S.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[Z]})}},{key:"createTextTrack",value:function(L,W,H){var Z=this.media;return Z?Z.addTextTrack(L,W,H):void 0}},{key:"onMediaAttaching",value:function(L,W){this.media=W.media,this._cleanTracks()}},{key:"onMediaDetaching",value:function(){var L=this.captionsTracks;Object.keys(L).forEach(function(W){Kn(L[W]),delete L[W]}),this.nonNativeCaptionsTracks={}}},{key:"onManifestLoading",value:function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=pu(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}},{key:"_cleanTracks",value:function(){var L=this.media;if(!L)return;var W=L.textTracks;if(W)for(var H=0;H<W.length;H++)Kn(W[H])}},{key:"onSubtitleTracksUpdated",value:function(L,W){var H=this,Z=W.subtitleTracks||[],ne=Z.some(function(ot){return ot.textCodec===Rl});if(this.config.enableWebVTT||ne&&this.config.enableIMSC1){var ve=ce(this.tracks,Z);if(ve){this.tracks=Z;return}if(this.textTracks=[],this.tracks=Z,this.config.renderTextTracksNatively){var Te=this.media?this.media.textTracks:null;this.tracks.forEach(function(ot,ht){var Qt;if(Te&&ht<Te.length){for(var Cr=null,wr=0;wr<Te.length;wr++)if(tu(Te[wr],ot)){Cr=Te[wr];break}Cr&&(Qt=Cr)}if(Qt)Kn(Qt);else{var Kr=H._captionsOrSubtitlesFromCharacteristics(ot);Qt=H.createTextTrack(Kr,ot.name,ot.lang),Qt&&(Qt.mode="disabled")}Qt&&(Qt.groupId=ot.groupId,H.textTracks.push(Qt))})}else if(this.tracks.length){var Ve=this.tracks.map(function(ot){return{label:ot.name,kind:ot.type.toLowerCase(),default:ot.default,subtitleTrack:ot}});this.hls.trigger(S.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:Ve})}}}},{key:"_captionsOrSubtitlesFromCharacteristics",value:function(L){if(L.attrs.CHARACTERISTICS){var W=/transcribes-spoken-dialog/gi.test(L.attrs.CHARACTERISTICS),H=/describes-music-and-sound/gi.test(L.attrs.CHARACTERISTICS);if(W&&H)return"captions"}return"subtitles"}},{key:"onManifestLoaded",value:function(L,W){var H=this;this.config.enableCEA708Captions&&W.captions&&W.captions.forEach(function(Z){var ne=/(?:CC|SERVICE)([1-4])/.exec(Z.instreamId);if(!ne)return;var ve="textTrack".concat(ne[1]),Te=H.captionsProperties[ve];if(!Te)return;Te.label=Z.name,Z.lang&&(Te.languageCode=Z.lang),Te.media=Z})}},{key:"closedCaptionsForLevel",value:function(L){var W=this.hls.levels[L.level];return W==null?void 0:W.attrs["CLOSED-CAPTIONS"]}},{key:"onFragLoading",value:function(L,W){var H=this.cea608Parser1,Z=this.cea608Parser2,ne=this.lastSn,ve=this.lastPartIndex;if(!this.enabled||!(H&&Z))return;if(W.frag.type===pt.MAIN){var Te,Ve,ot=W.frag.sn,ht=(Te=W==null||(Ve=W.part)==null?void 0:Ve.index)!=null?Te:-1;ot===ne+1||ot===ne&&ht===ve+1||(H.reset(),Z.reset()),this.lastSn=ot,this.lastPartIndex=ht}}},{key:"onFragLoaded",value:function(L,W){var H=W.frag,Z=W.payload;if(H.type===pt.SUBTITLE)if(Z.byteLength){var ne=H.decryptdata,ve="stats"in W;if(ne==null||!ne.encrypted||ve){var Te=this.tracks[H.level],Ve=this.vttCCs;Ve[H.cc]||(Ve[H.cc]={start:H.start,prevCC:this.prevCC,new:!0},this.prevCC=H.cc),Te&&Te.textCodec===Rl?this._parseIMSC1(H,Z):this._parseVTTs(W)}}else this.hls.trigger(S.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:H,error:new Error("Empty subtitle payload")})}},{key:"_parseIMSC1",value:function(L,W){var H=this,Z=this.hls;kl(W,this.initPTS[L.cc],function(ne){H._appendCues(ne,L.level),Z.trigger(S.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:L})},function(ne){j.log("Failed to parse IMSC1: ".concat(ne)),Z.trigger(S.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:L,error:ne})})}},{key:"_parseVTTs",value:function(L){var W=this,H,Z=L.frag,ne=L.payload,ve=this.initPTS,Te=this.unparsedVttFrags,Ve=ve.length-1;if(!ve[Z.cc]&&Ve===-1){Te.push(L);return}var ot=this.hls,ht=(H=Z.initSegment)!=null&&H.data?Nt(Z.initSegment.data,new Uint8Array(ne)):ne;ml(ht,this.initPTS[Z.cc],this.vttCCs,Z.cc,Z.start,function(Qt){W._appendCues(Qt,Z.level),ot.trigger(S.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:Z})},function(Qt){var Cr=Qt.message==="Missing initPTS for VTT MPEGTS";if(Cr?Te.push(L):W._fallbackToIMSC1(Z,ne),j.log("Failed to parse VTT cue: ".concat(Qt)),Cr&&Ve>Z.cc)return;ot.trigger(S.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:Z,error:Qt})})}},{key:"_fallbackToIMSC1",value:function(L,W){var H=this,Z=this.tracks[L.level];Z.textCodec||kl(W,this.initPTS[L.cc],function(){Z.textCodec=Rl,H._parseIMSC1(L,W)},function(){Z.textCodec="wvtt"})}},{key:"_appendCues",value:function(L,W){var H=this.hls;if(this.config.renderTextTracksNatively){var Z=this.textTracks[W];if(!Z||Z.mode==="disabled")return;L.forEach(function(Te){return gr(Z,Te)})}else{var ne=this.tracks[W];if(!ne)return;var ve=ne.default?"default":"subtitles"+W;H.trigger(S.CUES_PARSED,{type:"subtitles",cues:L,track:ve})}}},{key:"onFragDecrypted",value:function(L,W){var H=W.frag;H.type===pt.SUBTITLE&&this.onFragLoaded(S.FRAG_LOADED,W)}},{key:"onSubtitleTracksCleared",value:function(){this.tracks=[],this.captionsTracks={}}},{key:"onFragParsingUserdata",value:function(L,W){var H=this.cea608Parser1,Z=this.cea608Parser2;if(!this.enabled||!(H&&Z))return;var ne=W.frag,ve=W.samples;if(ne.type===pt.MAIN&&this.closedCaptionsForLevel(ne)==="NONE")return;for(var Te=0;Te<ve.length;Te++){var Ve=ve[Te].bytes;if(Ve){var ot=this.extractCea608Data(Ve);H.addData(ve[Te].pts,ot[0]),Z.addData(ve[Te].pts,ot[1])}}}},{key:"onBufferFlushing",value:function(L,W){var H=W.startOffset,Z=W.endOffset,ne=W.endOffsetSubtitles,ve=W.type,Te=this.media;if(!Te||Te.currentTime<Z)return;if(!ve||ve==="video"){var Ve=this.captionsTracks;Object.keys(Ve).forEach(function(ht){return Rr(Ve[ht],H,Z)})}if(this.config.renderTextTracksNatively&&(H===0&&ne!==void 0)){var ot=this.textTracks;Object.keys(ot).forEach(function(ht){return Rr(ot[ht],H,ne)})}}},{key:"extractCea608Data",value:function(L){for(var W=[[],[]],H=L[0]&31,Z=2,ne=0;ne<H;ne++){var ve=L[Z++],Te=127&L[Z++],Ve=127&L[Z++];if(Te===0&&Ve===0)continue;var ot=(4&ve)!==0;if(ot){var ht=3&ve;(ht===0||ht===1)&&(W[ht].push(Te),W[ht].push(Ve))}}return W}}]),Ae}();function tu(Ae,q){return!!Ae&&Ae.label===q.name&&!(Ae.textTrack1||Ae.textTrack2)}function Iu(Ae,q,L,W){return Math.min(q,W)-Math.max(Ae,L)}function pu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}var mu=function(){function Ae(q){Object(r.a)(this,Ae),this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=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)(Ae,[{key:"setStreamController",value:function(L){this.streamController=L}},{key:"destroy",value:function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}},{key:"registerListeners",value:function(){var L=this.hls;L.on(S.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),L.on(S.MEDIA_ATTACHING,this.onMediaAttaching,this),L.on(S.MANIFEST_PARSED,this.onManifestParsed,this),L.on(S.BUFFER_CODECS,this.onBufferCodecs,this),L.on(S.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"unregisterListener",value:function(){var L=this.hls;L.off(S.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),L.off(S.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(S.MANIFEST_PARSED,this.onManifestParsed,this),L.off(S.BUFFER_CODECS,this.onBufferCodecs,this),L.off(S.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"onFpsDropLevelCapping",value:function(L,W){var H=this.hls.levels[W.droppedLevel];this.isLevelAllowed(H)&&this.restrictedLevels.push({bitrate:H.bitrate,height:H.height,width:H.width})}},{key:"onMediaAttaching",value:function(L,W){this.media=W.media instanceof HTMLVideoElement?W.media:null,this.clientRect=null}},{key:"onManifestParsed",value:function(L,W){var H=this.hls;this.restrictedLevels=[],this.firstLevel=W.firstLevel,H.config.capLevelToPlayerSize&&W.video&&this.startCapping()}},{key:"onBufferCodecs",value:function(L,W){var H=this.hls;H.config.capLevelToPlayerSize&&W.video&&this.startCapping()}},{key:"onMediaDetaching",value:function(){this.stopCapping()}},{key:"detectPlayerSize",value:function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var L=this.hls.levels;if(L.length){var W=this.hls;W.autoLevelCapping=this.getMaxLevel(L.length-1),W.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=W.autoLevelCapping}}}},{key:"getMaxLevel",value:function(L){var W=this,H=this.hls.levels;if(!H.length)return-1;var Z=H.filter(function(ne,ve){return W.isLevelAllowed(ne)&&ve<=L});return this.clientRect=null,Ae.getMaxLevelByMediaSize(Z,this.mediaWidth,this.mediaHeight)}},{key:"startCapping",value:function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()}},{key:"stopCapping",value:function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}},{key:"getDimensions",value:function(){if(this.clientRect)return this.clientRect;var L=this.media,W={width:0,height:0};if(L){var H=L.getBoundingClientRect();W.width=H.width,W.height=H.height,!W.width&&!W.height&&(W.width=H.right-H.left||L.width||0,W.height=H.bottom-H.top||L.height||0)}return this.clientRect=W,W}},{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var L=1;if(!this.hls.config.ignoreDevicePixelRatio)try{L=self.devicePixelRatio}catch(W){}return L}},{key:"isLevelAllowed",value:function(L){var W=this.restrictedLevels;return!W.some(function(H){return L.bitrate===H.bitrate&&L.width===H.width&&L.height===H.height})}}],[{key:"getMaxLevelByMediaSize",value:function(L,W,H){if(!(L!=null&&L.length))return-1;for(var Z=function(ot,ht){return ht?ot.width!==ht.width||ot.height!==ht.height:!0},ne=L.length-1,ve=0;ve<L.length;ve+=1){var Te=L[ve];if((Te.width>=W||Te.height>=H)&&Z(Te,L[ve+1])){ne=ve;break}}return ne}}]),Ae}(),gu=function(){function Ae(q){Object(r.a)(this,Ae),this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=q,this.registerListeners()}return Object(s.a)(Ae,[{key:"setStreamController",value:function(L){this.streamController=L}},{key:"registerListeners",value:function(){this.hls.on(S.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"unregisterListeners",value:function(){this.hls.off(S.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"destroy",value:function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}},{key:"onMediaAttaching",value:function(L,W){var H=this.hls.config;if(H.capLevelOnFPSDrop){var Z=W.media instanceof self.HTMLVideoElement?W.media:null;this.media=Z,Z&&typeof Z.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),H.fpsDroppedMonitoringPeriod)}}},{key:"checkFPS",value:function(L,W,H){var Z=performance.now();if(W){if(this.lastTime){var ne=Z-this.lastTime,ve=H-this.lastDroppedFrames,Te=W-this.lastDecodedFrames,Ve=1e3*ve/ne,ot=this.hls;if(ot.trigger(S.FPS_DROP,{currentDropped:ve,currentDecoded:Te,totalDroppedFrames:H}),Ve>0&&ve>ot.config.fpsDroppedMonitoringThreshold*Te){var ht=ot.currentLevel;j.warn("drop FPS ratio greater than max allowed value for currentLevel: "+ht),ht>0&&(ot.autoLevelCapping===-1||ot.autoLevelCapping>=ht)&&(ht=ht-1,ot.trigger(S.FPS_DROP_LEVEL_CAPPING,{level:ht,droppedLevel:ot.currentLevel}),ot.autoLevelCapping=ht,this.streamController.nextLevelSwitch())}}this.lastTime=Z,this.lastDroppedFrames=H,this.lastDecodedFrames=W}}},{key:"checkFPSInterval",value:function(){var L=this.media;if(L)if(this.isVideoPlaybackQualityAvailable){var W=L.getVideoPlaybackQuality();this.checkFPS(L,W.totalVideoFrames,W.droppedVideoFrames)}else this.checkFPS(L,L.webkitDecodedFrameCount,L.webkitDroppedFrameCount)}}]),Ae}(),ql="[eme]",Cl=function(){function Ae(q){Object(r.a)(this,Ae),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Ae.CDMCleanupPromise?[Ae.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=j.debug.bind(j,ql),this.log=j.log.bind(j,ql),this.warn=j.warn.bind(j,ql),this.error=j.error.bind(j,ql),this.hls=q,this.config=q.config,this.registerListeners()}return Object(s.a)(Ae,[{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetached();var L=this.config;L.requestMediaKeySystemAccessFunc=null,L.licenseXhrSetup=L.licenseResponseCallback=void 0,L.drmSystems=L.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null}},{key:"registerListeners",value:function(){this.hls.on(S.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(S.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(S.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(S.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"unregisterListeners",value:function(){this.hls.off(S.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(S.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(S.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(S.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"getLicenseServerUrl",value:function(L){var W=this.config,H=W.drmSystems,Z=W.widevineLicenseUrl,ne=H[L];if(ne)return ne.licenseUrl;if(L===pe.WIDEVINE&&Z)return Z;throw new Error('no license server URL configured for key-system "'.concat(L,'"'))}},{key:"getServerCertificateUrl",value:function(L){var W=this.config.drmSystems,H=W[L];if(H)return H.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'.concat(L,'"]'))}},{key:"attemptKeySystemAccess",value:function(L){var W=this,H=this.hls.levels,Z=function(Ve,ot,ht){return!!Ve&&ht.indexOf(Ve)===ot},ne=H.map(function(Te){return Te.audioCodec}).filter(Z),ve=H.map(function(Te){return Te.videoCodec}).filter(Z);return ne.length+ve.length===0&&ve.push("avc1.42e01e"),new Promise(function(Te,Ve){var ot=function ht(Qt){var Cr=Qt.shift();W.getMediaKeysPromise(Cr,ne,ve).then(function(wr){return Te({keySystem:Cr,mediaKeys:wr})}).catch(function(wr){Qt.length?ht(Qt):wr instanceof ll?Ve(wr):Ve(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_ACCESS,error:wr,fatal:!0},wr.message))})};ot(L)})}},{key:"requestMediaKeySystemAccess",value:function(L,W){var H=this.config.requestMediaKeySystemAccessFunc;if(!(typeof H=="function")){var Z="Configured requestMediaKeySystemAccess is not a function ".concat(H);return _e===null&&self.location.protocol==="http:"&&(Z="navigator.requestMediaKeySystemAccess is not available over insecure protocol ".concat(location.protocol)),Promise.reject(new Error(Z))}return H(L,W)}},{key:"getMediaKeysPromise",value:function(L,W,H){var Z=this,ne=he(L,W,H,this.config.drmSystemOptions),ve=this.keySystemAccessPromises[L],Te=ve==null?void 0:ve.keySystemAccess;if(!Te){this.log('Requesting encrypted media "'.concat(L,'" key-system access with config: ').concat(JSON.stringify(ne))),Te=this.requestMediaKeySystemAccess(L,ne);var Ve=this.keySystemAccessPromises[L]={keySystemAccess:Te};return Te.catch(function(ot){Z.log('Failed to obtain access to key-system "'.concat(L,'": ').concat(ot))}),Te.then(function(ot){Z.log('Access for key-system "'.concat(ot.keySystem,'" obtained'));var ht=Z.fetchServerCertificate(L);return Z.log('Create media-keys for "'.concat(L,'"')),Ve.mediaKeys=ot.createMediaKeys().then(function(Qt){return Z.log('Media-keys created for "'.concat(L,'"')),ht.then(function(Cr){return Cr?Z.setMediaKeysServerCertificate(Qt,L,Cr):Qt})}),Ve.mediaKeys.catch(function(Qt){Z.error('Failed to create media-keys for "'.concat(L,'"}: ').concat(Qt))}),Ve.mediaKeys})}return Te.then(function(){return ve.mediaKeys})}},{key:"createMediaKeySessionContext",value:function(L){var W=L.decryptdata,H=L.keySystem,Z=L.mediaKeys;this.log('Creating key-system session "'.concat(H,'" keyId: ').concat(Wt.hexDump(W.keyId||[])));var ne=Z.createSession(),ve={decryptdata:W,keySystem:H,mediaKeys:Z,mediaKeysSession:ne,keyStatus:"status-pending"};return this.mediaKeySessions.push(ve),ve}},{key:"renewKeySession",value:function(L){var W=L.decryptdata;if(W.pssh){var H=this.createMediaKeySessionContext(L),Z=this.getKeyIdString(W),ne="cenc";this.keyIdToKeySessionPromise[Z]=this.generateRequestWithPreferredKeySession(H,ne,W.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(L)}},{key:"getKeyIdString",value:function(L){if(!L)throw new Error("Could not read keyId of undefined decryptdata");if(L.keyId===null)throw new Error("keyId is null");return Wt.hexDump(L.keyId)}},{key:"updateKeySession",value:function(L,W){var H,Z=L.mediaKeysSession;return this.log('Updating key-session "'.concat(Z.sessionId,'" for keyID ').concat(Wt.hexDump(((H=L.decryptdata)==null?void 0:H.keyId)||[]),`
|
|
|
} (data length: `).concat(W&&W.byteLength,")")),Z.update(W)}},{key:"selectKeySystemFormat",value:function(L){var W=Object.keys(L.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: ".concat(L.sn," ").concat(L.type,": ").concat(L.level,") key formats ").concat(W.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(W)),this.keyFormatPromise}},{key:"getKeyFormatPromise",value:function(L){var W=this;return new Promise(function(H,Z){var ne=Ce(W.config),ve=L.map(Y).filter(function(Te){return!!Te&&ne.indexOf(Te)!==-1});return W.getKeySystemSelectionPromise(ve).then(function(Te){var Ve=Te.keySystem,ot=we(Ve);ot?H(ot):Z(new Error('Unable to find format for key-system "'.concat(Ve,'"')))}).catch(Z)})}},{key:"loadKey",value:function(L){var W=this,H=L.keyInfo.decryptdata,Z=this.getKeyIdString(H),ne="(keyId: ".concat(Z,' format: "').concat(H.keyFormat,'" method: ').concat(H.method," uri: ").concat(H.uri,")");this.log("Starting session for key ".concat(ne));var ve=this.keyIdToKeySessionPromise[Z];return ve||(ve=this.keyIdToKeySessionPromise[Z]=this.getKeySystemForKeyPromise(H).then(function(Te){var Ve=Te.keySystem,ot=Te.mediaKeys;return W.throwIfDestroyed(),W.log("Handle encrypted media sn: ".concat(L.frag.sn," ").concat(L.frag.type,": ").concat(L.frag.level," using key ").concat(ne)),W.attemptSetMediaKeys(Ve,ot).then(function(){W.throwIfDestroyed();var ht=W.createMediaKeySessionContext({keySystem:Ve,mediaKeys:ot,decryptdata:H}),Qt="cenc";return W.generateRequestWithPreferredKeySession(ht,Qt,H.pssh,"playlist-key")})}),ve.catch(function(Te){return W.handleError(Te)})),ve}},{key:"throwIfDestroyed",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Invalid state";if(!this.hls)throw new Error("invalid state")}},{key:"handleError",value:function(L){if(!this.hls)return;this.error(L.message),L instanceof ll?this.hls.trigger(S.ERROR,L.data):this.hls.trigger(S.ERROR,{type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_KEYS,error:L,fatal:!0})}},{key:"getKeySystemForKeyPromise",value:function(L){var W=this.getKeyIdString(L),H=this.keyIdToKeySessionPromise[W];if(!H){var Z=Y(L.keyFormat),ne=Z?[Z]:Ce(this.config);return this.attemptKeySystemAccess(ne)}return H}},{key:"getKeySystemSelectionPromise",value:function(L){if(L.length||(L=Ce(this.config)),L.length===0)throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options ".concat(JSON.stringify({drmSystems:this.config.drmSystems})));return this.attemptKeySystemAccess(L)}},{key:"_onMediaEncrypted",value:function(L){var W=this,H=L.initDataType,Z=L.initData;if(this.debug('"'.concat(L.type,'" event: init data type: "').concat(H,'"')),Z===null)return;var ne,ve;if(H==="sinf"&&this.config.drmSystems[pe.FAIRPLAY]){var Te=ur(new Uint8Array(Z));try{var Ve=Ge(JSON.parse(Te).sinf),ot=Xn(new Uint8Array(Ve));if(!ot)return;ne=ot.subarray(8,24),ve=pe.FAIRPLAY}catch(Jn){this.warn('Failed to parse sinf "encrypted" event message initData');return}}else{var ht=$r(Z);if(ht===null)return;ht.version===0&&ht.systemId===ee.WIDEVINE&&ht.data&&(ne=ht.data.subarray(8,24)),ve=fe(ht.systemId)}if(!ve||!ne)return;for(var Qt=Wt.hexDump(ne),Cr=this.keyIdToKeySessionPromise,wr=this.mediaKeySessions,Kr=Cr[Qt],Jr=function(){var bi=wr[Nn],ua=bi.decryptdata;if(ua.pssh||!ua.keyId)return 0;var Vi=Wt.hexDump(ua.keyId);if(Qt===Vi||ua.uri.replace(/-/g,"").indexOf(Qt)!==-1)return Kr=Cr[Vi],delete Cr[Vi],ua.pssh=new Uint8Array(Z),ua.keyId=ne,Kr=Cr[Qt]=Kr.then(function(){return W.generateRequestWithPreferredKeySession(bi,H,Z,"encrypted-event-key-match")}),1},Cn,Nn=0;Nn<wr.length;Nn++){if(Cn=Jr(),Cn===0)continue;if(Cn===1)break}Kr||(Kr=Cr[Qt]=this.getKeySystemSelectionPromise([ve]).then(function(Jn){var bi=Jn.keySystem,ua=Jn.mediaKeys,Vi;W.throwIfDestroyed();var Zi=new zt("ISO-23001-7",Qt,(Vi=we(bi))!=null?Vi:"");return Zi.pssh=new Uint8Array(Z),Zi.keyId=ne,W.attemptSetMediaKeys(bi,ua).then(function(){W.throwIfDestroyed();var ka=W.createMediaKeySessionContext({decryptdata:Zi,keySystem:bi,mediaKeys:ua});return W.generateRequestWithPreferredKeySession(ka,H,Z,"encrypted-event-no-match")})})),Kr.catch(function(Jn){return W.handleError(Jn)})}},{key:"_onWaitingForKey",value:function(L){this.log('"'.concat(L.type,'" event'))}},{key:"attemptSetMediaKeys",value:function(L,W){var H=this,Z=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'.concat(L,'"'));var ne=Promise.all(Z).then(function(){if(!H.media)throw new Error("Attempted to set mediaKeys without media element attached");return H.media.setMediaKeys(W)});return this.setMediaKeysQueue.push(ne),ne.then(function(){H.log('Media-keys set for "'.concat(L,'"')),Z.push(ne),H.setMediaKeysQueue=H.setMediaKeysQueue.filter(function(ve){return Z.indexOf(ve)===-1})})}},{key:"generateRequestWithPreferredKeySession",value:function(L,W,H,Z){var ne=this,ve,Te,Ve=(ve=this.config.drmSystems)==null||(Te=ve[L.keySystem])==null?void 0:Te.generateRequest;if(Ve)try{var ot=Ve.call(this.hls,W,H,L);if(!ot)throw new Error("Invalid response from configured generateRequest filter");W=ot.initDataType,H=L.decryptdata.pssh=ot.initData?new Uint8Array(ot.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(Z,'" (no initData)')),Promise.resolve(L);var Qt=this.getKeyIdString(L.decryptdata);this.log('Generating key-session request for "'.concat(Z,'": ').concat(Qt," (init data type: ").concat(W," length: ").concat(H?H.byteLength:null,")"));var Cr=new ds;L.mediaKeysSession.onmessage=function(Kr){var Jr=L.mediaKeysSession;if(!Jr){Cr.emit("error",new Error("invalid state"));return}var Cn=Kr.messageType,Nn=Kr.message;ne.log('"'.concat(Cn,'" message event for session "').concat(Jr.sessionId,'" message size: ').concat(Nn.byteLength)),Cn==="license-request"||Cn==="license-renewal"?ne.renewLicense(L,Nn).catch(function(Jn){ne.handleError(Jn),Cr.emit("error",Jn)}):Cn==="license-release"?L.keySystem===pe.FAIRPLAY&&(ne.updateKeySession(L,lt("acknowledged")),ne.removeSession(L)):ne.warn('unhandled media key message type "'.concat(Cn,'"'))},L.mediaKeysSession.onkeystatuseschange=function(Kr){var Jr=L.mediaKeysSession;if(!Jr){Cr.emit("error",new Error("invalid state"));return}ne.onKeyStatusChange(L);var Cn=L.keyStatus;Cr.emit("keyStatus",Cn),Cn==="expired"&&(ne.warn("".concat(L.keySystem," expired for key ").concat(Qt)),ne.renewKeySession(L))};var wr=new Promise(function(Kr,Jr){Cr.on("error",Jr),Cr.on("keyStatus",function(Cn){Cn.startsWith("usable")?Kr():Cn==="output-restricted"?Jr(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):Cn==="internal-error"?Jr(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'.concat(Cn,'"'))):Cn==="expired"?Jr(new Error("key expired while generating request")):ne.warn('unhandled key status change "'.concat(Cn,'"'))})});return L.mediaKeysSession.generateRequest(W,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 ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_SESSION,error:Kr,fatal:!1},"Error generating key-session request: ".concat(Kr))}).then(function(){return wr}).catch(function(Kr){throw Cr.removeAllListeners(),ne.removeSession(L),Kr}).then(function(){return Cr.removeAllListeners(),L})}},{key:"onKeyStatusChange",value:function(L){var W=this;L.mediaKeysSession.keyStatuses.forEach(function(H,Z){W.log('key status change "'.concat(H,'" for keyStatuses keyId: ').concat(Wt.hexDump("buffer"in Z?new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength):new Uint8Array(Z))," session keyId: ").concat(Wt.hexDump(new Uint8Array(L.decryptdata.keyId||[]))," uri: ").concat(L.decryptdata.uri)),L.keyStatus=H})}},{key:"fetchServerCertificate",value:function(L){var W=this.config,H=W.loader,Z=new H(W),ne=this.getServerCertificateUrl(L);return ne?(this.log('Fetching serverCertificate for "'.concat(L,'"')),new Promise(function(ve,Te){var Ve={responseType:"arraybuffer",url:ne},ot=W.certLoadPolicy.default,ht={loadPolicy:ot,timeout:ot.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Qt={onSuccess:function(wr,Kr,Jr,Cn){ve(wr.data)},onError:function(wr,Kr,Jr,Cn){Te(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Jr,response:b({url:Ve.url,data:void 0},wr)},'"'.concat(L,'" certificate request failed (').concat(ne,"). Status: ").concat(wr.code," (").concat(wr.text,")")))},onTimeout:function(wr,Kr,Jr){Te(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Jr,response:{url:Ve.url,data:void 0}},'"'.concat(L,'" certificate request timed out (').concat(ne,")")))},onAbort:function(wr,Kr,Jr){Te(new Error("aborted"))}};Z.load(Ve,ht,Qt)})):Promise.resolve()}},{key:"setMediaKeysServerCertificate",value:function(L,W,H){var Z=this;return new Promise(function(ne,ve){L.setServerCertificate(H).then(function(Te){Z.log("setServerCertificate ".concat(Te?"success":"not supported by CDM"," (").concat(H==null?void 0:H.byteLength,') on "').concat(W,'"')),ne(L)}).catch(function(Te){ve(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:Te,fatal:!0},Te.message))})})}},{key:"renewLicense",value:function(L,W){var H=this;return this.requestLicense(L,new Uint8Array(W)).then(function(Z){return H.updateKeySession(L,new Uint8Array(Z)).catch(function(ne){throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:ne,fatal:!0},ne.message)})})}},{key:"setupLicenseXHR",value:function(L,W,H,Z){var ne=this,ve=this.config.licenseXhrSetup;return ve?Promise.resolve().then(function(){if(!H.decryptdata)throw new Error("Key removed");return ve.call(ne.hls,L,W,H,Z)}).catch(function(Te){if(!H.decryptdata)throw Te;return L.open("POST",W,!0),ve.call(ne.hls,L,W,H,Z)}).then(function(Te){L.readyState||L.open("POST",W,!0);var Ve=Te||Z;return{xhr:L,licenseChallenge:Ve}}):(L.open("POST",W,!0),Promise.resolve({xhr:L,licenseChallenge:Z}))}},{key:"requestLicense",value:function(L,W){var H=this,Z=this.config.keyLoadPolicy.default;return new Promise(function(ne,ve){var Te=H.getLicenseServerUrl(L.keySystem);H.log("Sending license request to URL: ".concat(Te));var Ve=new XMLHttpRequest;Ve.responseType="arraybuffer",Ve.onreadystatechange=function(){if(!H.hls||!L.mediaKeysSession)return ve(new Error("invalid state"));if(Ve.readyState===4)if(Ve.status===200){H._requestLicenseFailureCount=0;var ot=Ve.response;H.log("License received ".concat(ot instanceof ArrayBuffer?ot.byteLength:ot));var ht=H.config.licenseResponseCallback;if(ht)try{ot=ht.call(H.hls,Ve,Te,L)}catch(Kr){H.error(Kr)}ne(ot)}else{var Qt=Z.errorRetry,Cr=Qt?Qt.maxNumRetry:0;if(H._requestLicenseFailureCount++,H._requestLicenseFailureCount>Cr||Ve.status>=400&&Ve.status<500)ve(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:Ve,response:{url:Te,data:void 0,code:Ve.status,text:Ve.statusText}},"License Request XHR failed (".concat(Te,"). Status: ").concat(Ve.status," (").concat(Ve.statusText,")")));else{var wr=Cr-H._requestLicenseFailureCount+1;H.warn("Retrying license request, ".concat(wr," attempts left")),H.requestLicense(L,W).then(ne,ve)}}},L.licenseXhr&&L.licenseXhr.readyState!==XMLHttpRequest.DONE&&L.licenseXhr.abort(),L.licenseXhr=Ve,H.setupLicenseXHR(Ve,Te,L,W).then(function(ot){var ht=ot.xhr,Qt=ot.licenseChallenge;ht.send(Qt)})})}},{key:"onMediaAttached",value:function(L,W){if(!this.config.emeEnabled)return;var H=W.media;this.media=H,H.addEventListener("encrypted",this.onMediaEncrypted),H.addEventListener("waitingforkey",this.onWaitingForKey)}},{key:"onMediaDetached",value:function(){var L=this,W=this.media,H=this.mediaKeySessions;W&&(W.removeEventListener("encrypted",this.onMediaEncrypted),W.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},zt.clearKeyUriToKeyIdMap();var Z=H.length;Ae.CDMCleanupPromise=Promise.all(H.map(function(ne){return L.removeSession(ne)}).concat(W==null?void 0:W.setMediaKeys(null).catch(function(ne){L.log("Could not clear media keys: ".concat(ne,". media.src: ").concat(W==null?void 0:W.src))}))).then(function(){Z&&(L.log("finished closing key sessions and clearing media keys"),H.length=0)}).catch(function(ne){L.log("Could not close sessions and clear media keys: ".concat(ne,". media.src: ").concat(W==null?void 0:W.src))})}},{key:"onManifestLoading",value:function(){this.keyFormatPromise=null}},{key:"onManifestLoaded",value:function(L,W){var H=W.sessionKeys;if(!H||!this.config.emeEnabled)return;if(!this.keyFormatPromise){var Z=H.reduce(function(ne,ve){return ne.indexOf(ve.keyFormat)===-1&&ne.push(ve.keyFormat),ne},[]);this.log("Selecting key-system from session-keys ".concat(Z.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(Z)}}},{key:"removeSession",value:function(L){var W=this,H=L.mediaKeysSession,Z=L.licenseXhr;if(H){this.log("Remove licenses and keys and close session ".concat(H.sessionId)),H.onmessage=null,H.onkeystatuseschange=null,Z&&Z.readyState!==XMLHttpRequest.DONE&&Z.abort(),L.mediaKeysSession=L.decryptdata=L.licenseXhr=void 0;var ne=this.mediaKeySessions.indexOf(L);return ne>-1&&this.mediaKeySessions.splice(ne,1),H.remove().catch(function(ve){W.log("Could not remove session: ".concat(ve))}).then(function(){return H.close()}).catch(function(ve){W.log("Could not close session: ".concat(ve))})}}}]),Ae}();Cl.CDMCleanupPromise=void 0;var ll=function(Ae){Object(a.a)(L,Ae);var q=Object(e.a)(L);function L(W,H){var Z;return Object(r.a)(this,L),Z=q.call(this,H),Z.data=void 0,W.error||(W.error=new Error(H)),Z.data=W,W.err=W.error,Z}return Object(s.a)(L)}(n(Error)),Hl=1,Sl={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},Su="h",vu=function(){function Ae(q){var L=this;Object(r.a)(this,Ae),this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){L.initialized&&(L.starved=!0),L.buffering=!0},this.onPlaying=function(){L.initialized||(L.initialized=!0),L.buffering=!1},this.applyPlaylistData=function(Z){try{L.apply(Z,{ot:Sl.MANIFEST,su:!L.initialized})}catch(ne){j.warn("Could not generate manifest CMCD data.",ne)}},this.applyFragmentData=function(Z){try{var ne=Z.frag,ve=L.hls.levels[ne.level],Te=L.getObjectType(ne),Ve={d:ne.duration*1e3,ot:Te};(Te===Sl.VIDEO||Te===Sl.AUDIO||Te==Sl.MUXED)&&(Ve.br=ve.bitrate/1e3,Ve.tb=L.getTopBandwidth(Te)/1e3,Ve.bl=L.getBufferLength(Te)),L.apply(Z,Ve)}catch(ot){j.warn("Could not generate segment CMCD data.",ot)}},this.hls=q;var W=this.config=q.config,H=W.cmcd;H!=null&&(W.pLoader=this.createPlaylistLoader(),W.fLoader=this.createFragmentLoader(),this.sid=H.sessionId||Ae.uuid(),this.cid=H.contentId,this.useHeaders=H.useHeaders===!0,this.registerListeners())}return Object(s.a)(Ae,[{key:"registerListeners",value:function(){var L=this.hls;L.on(S.MEDIA_ATTACHED,this.onMediaAttached,this),L.on(S.MEDIA_DETACHED,this.onMediaDetached,this),L.on(S.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(S.MEDIA_ATTACHED,this.onMediaAttached,this),L.off(S.MEDIA_DETACHED,this.onMediaDetached,this),L.off(S.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null}},{key:"onMediaAttached",value:function(L,W){this.media=W.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}},{key:"onMediaDetached",value:function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null}},{key:"onBufferCreated",value:function(L,W){var H,Z;this.audioBuffer=(H=W.tracks.audio)==null?void 0:H.buffer,this.videoBuffer=(Z=W.tracks.video)==null?void 0:Z.buffer}},{key:"createData",value:function(){var L;return{v:Hl,sf:Su,sid:this.sid,cid:this.cid,pr:(L=this.media)==null?void 0:L.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}},{key:"apply",value:function(L){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E(W,this.createData());var H=W.ot===Sl.INIT||W.ot===Sl.VIDEO||W.ot===Sl.MUXED;if(this.starved&&H&&(W.bs=!0,W.su=!0,this.starved=!1),W.su==null&&(W.su=this.buffering),this.useHeaders){var Z=Ae.toHeaders(W);if(!Object.keys(Z).length)return;L.headers||(L.headers={}),E(L.headers,Z)}else{var ne=Ae.toQuery(W);if(!ne)return;L.url=Ae.appendQueryToUri(L.url,ne)}}},{key:"getObjectType",value:function(L){var W=L.type;return W==="subtitle"?Sl.TIMED_TEXT:L.sn==="initSegment"?Sl.INIT:W==="audio"?Sl.AUDIO:W==="main"?this.hls.audioTracks.length?Sl.VIDEO:Sl.MUXED:void 0}},{key:"getTopBandwidth",value:function(L){var W=0,H,Z=this.hls;if(L===Sl.AUDIO)H=Z.audioTracks;else{var ne=Z.maxAutoLevel,ve=ne>-1?ne+1:Z.levels.length;H=Z.levels.slice(0,ve)}var Te=Object(p.a)(H),Ve;try{for(Te.s();!(Ve=Te.n()).done;){var ot=Ve.value;ot.bitrate>W&&(W=ot.bitrate)}}catch(ht){Te.e(ht)}finally{Te.f()}return W>0?W:NaN}},{key:"getBufferLength",value:function(L){var W=this.hls.media,H=L===Sl.AUDIO?this.audioBuffer:this.videoBuffer;if(!H||!W)return NaN;var Z=Oi.bufferInfo(H,W.currentTime,this.config.maxBufferHole);return Z.len*1e3}},{key:"createPlaylistLoader",value:function(){var L=this.config.pLoader,W=this.applyPlaylistData,H=L||this.config.loader;return function(){function Z(ne){Object(r.a)(this,Z),this.loader=void 0,this.loader=new H(ne)}return Object(s.a)(Z,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}},{key:"destroy",value:function(){this.loader.destroy()}},{key:"abort",value:function(){this.loader.abort()}},{key:"load",value:function(ve,Te,Ve){W(ve),this.loader.load(ve,Te,Ve)}}]),Z}()}},{key:"createFragmentLoader",value:function(){var L=this.config.fLoader,W=this.applyFragmentData,H=L||this.config.loader;return function(){function Z(ne){Object(r.a)(this,Z),this.loader=void 0,this.loader=new H(ne)}return Object(s.a)(Z,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}},{key:"destroy",value:function(){this.loader.destroy()}},{key:"abort",value:function(){this.loader.abort()}},{key:"load",value:function(ve,Te,Ve){W(ve),this.loader.load(ve,Te,Ve)}}]),Z}()}}],[{key:"uuid",value:function(){var L=URL.createObjectURL(new Blob),W=L.toString();return URL.revokeObjectURL(L),W.slice(W.lastIndexOf("/")+1)}},{key:"serialize",value:function(L){var W=[],H=function(Nn){return!Number.isNaN(Nn)&&Nn!=null&&Nn!==""&&Nn!==!1},Z=function(Nn){return Math.round(Nn)},ne=function(Nn){return Z(Nn/100)*100},ve=function(Nn){return encodeURIComponent(Nn)},Te={br:Z,d:Z,bl:ne,dl:ne,mtp:ne,nor:ve,rtp:ne,tb:Z},Ve=Object.keys(L||{}).sort(),ot=Object(p.a)(Ve),ht;try{for(ot.s();!(ht=ot.n()).done;){var Qt=ht.value,Cr=L[Qt];if(!H(Cr))continue;if(Qt==="v"&&Cr===1)continue;if(Qt=="pr"&&Cr===1)continue;var wr=Te[Qt];wr&&(Cr=wr(Cr));var Kr=typeof Cr,Jr=void 0;Qt==="ot"||Qt==="sf"||Qt==="st"?Jr="".concat(Qt,"=").concat(Cr):Kr==="boolean"?Jr=Qt:Kr==="number"?Jr="".concat(Qt,"=").concat(Cr):Jr="".concat(Qt,"=").concat(JSON.stringify(Cr)),W.push(Jr)}}catch(Cn){ot.e(Cn)}finally{ot.f()}return W.join(",")}},{key:"toHeaders",value:function(L){for(var W=Object.keys(L),H={},Z=["Object","Request","Session","Status"],ne=[{},{},{},{}],ve={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},Te=0,Ve=W;Te<Ve.length;Te++){var ot=Ve[Te],ht=ve[ot]!=null?ve[ot]:1;ne[ht][ot]=L[ot]}for(var Qt=0;Qt<ne.length;Qt++){var Cr=Ae.serialize(ne[Qt]);Cr&&(H["CMCD-".concat(Z[Qt])]=Cr)}return H}},{key:"toQuery",value:function(L){return"CMCD=".concat(encodeURIComponent(Ae.serialize(L)))}},{key:"appendQueryToUri",value:function(L,W){if(!W)return L;var H=L.includes("?")?"&":"?";return"".concat(L).concat(H).concat(W)}}]),Ae}(),Au=3e5,Ol=function(){function Ae(q){Object(r.a)(this,Ae),this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=q,this.log=j.log.bind(j,"[content-steering]:"),this.registerListeners()}return Object(s.a)(Ae,[{key:"registerListeners",value:function(){var L=this.hls;L.on(S.MANIFEST_LOADING,this.onManifestLoading,this),L.on(S.MANIFEST_LOADED,this.onManifestLoaded,this),L.on(S.MANIFEST_PARSED,this.onManifestParsed,this),L.on(S.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;if(!L)return;L.off(S.MANIFEST_LOADING,this.onManifestLoading,this),L.off(S.MANIFEST_LOADED,this.onManifestLoaded,this),L.off(S.MANIFEST_PARSED,this.onManifestParsed,this),L.off(S.ERROR,this.onError,this)}},{key:"startLoad",value:function(){if(this.started=!0,self.clearTimeout(this.reloadTimer),this.enabled&&this.uri)if(this.updated){var L=Math.max(this.timeToLoad*1e3-(performance.now()-this.updated),0);this.scheduleRefresh(this.uri,L)}else this.loadSteeringManifest(this.uri)}},{key:"stopLoad",value:function(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),self.clearTimeout(this.reloadTimer)}},{key:"destroy",value:function(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}},{key:"removeLevel",value:function(L){var W=this.levels;W&&(this.levels=W.filter(function(H){return H!==L}))}},{key:"onManifestLoading",value:function(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}},{key:"onManifestLoaded",value:function(L,W){var H=W.contentSteering;if(H===null)return;this.pathwayId=H.pathwayId,this.uri=H.uri,this.started&&this.startLoad()}},{key:"onManifestParsed",value:function(L,W){this.audioTracks=W.audioTracks,this.subtitleTracks=W.subtitleTracks}},{key:"onError",value:function(L,W){var H=W.errorAction;if((H==null?void 0:H.action)===ra.SendAlternateToPenaltyBox&&H.flags===Ir.MoveAllAlternatesMatchingHost){var Z=this.pathwayPriority,ne=this.pathwayId;this.penalizedPathways[ne]||(this.penalizedPathways[ne]=performance.now()),!Z&&this.levels&&(Z=this.levels.reduce(function(ve,Te){return ve.indexOf(Te.pathwayId)===-1&&ve.push(Te.pathwayId),ve},[])),Z&&Z.length>1&&(this.updatePathwayPriority(Z),H.resolved=this.pathwayId!==ne)}}},{key:"filterParsedLevels",value:function(L){this.levels=L;var W=this.getLevelsForPathway(this.pathwayId);if(W.length===0){var H=L[0].pathwayId;this.log("No levels found in Pathway ".concat(this.pathwayId,'. Setting initial Pathway to "').concat(H,'"')),W=this.getLevelsForPathway(H),this.pathwayId=H}return W.length!==L.length?(this.log("Found ".concat(W.length,"/").concat(L.length,' levels in Pathway "').concat(this.pathwayId,'"')),W):L}},{key:"getLevelsForPathway",value:function(L){return this.levels===null?[]:this.levels.filter(function(W){return L===W.pathwayId})}},{key:"updatePathwayPriority",value:function(L){this.pathwayPriority=L;var W,H=this.penalizedPathways,Z=performance.now();Object.keys(H).forEach(function(ht){Z-H[ht]>Au&&delete H[ht]});for(var ne=0;ne<L.length;ne++){var ve=L[ne];if(H[ve])continue;if(ve===this.pathwayId)return;var Te=this.hls.nextLoadLevel,Ve=this.hls.levels[Te];if(W=this.getLevelsForPathway(ve),W.length>0){this.log('Setting Pathway to "'.concat(ve,'"')),this.pathwayId=ve,this.hls.trigger(S.LEVELS_UPDATED,{levels:W});var ot=this.hls.levels[Te];Ve&&ot&&this.levels&&(ot.attrs["STABLE-VARIANT-ID"]!==Ve.attrs["STABLE-VARIANT-ID"]&&ot.bitrate!==Ve.bitrate&&this.log("Unstable Pathways change from bitrate ".concat(Ve.bitrate," to ").concat(ot.bitrate)),this.hls.nextLoadLevel=Te);break}}}},{key:"clonePathways",value:function(L){var W=this,H=this.levels;if(!H)return;var Z={},ne={};L.forEach(function(ve){var Te=ve.ID,Ve=ve["BASE-ID"],ot=ve["URI-REPLACEMENT"];if(H.some(function(Qt){return Qt.pathwayId===Te}))return;var ht=W.getLevelsForPathway(Ve).map(function(Qt){var Cr=E({},Qt);Cr.details=void 0,Cr.url=du(Qt.uri,Qt.attrs["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",ot);var wr=new V(Qt.attrs);wr["PATHWAY-ID"]=Te;var Kr=wr.AUDIO&&"".concat(wr.AUDIO,"_clone_").concat(Te),Jr=wr.SUBTITLES&&"".concat(wr.SUBTITLES,"_clone_").concat(Te);Kr&&(Z[wr.AUDIO]=Kr,wr.AUDIO=Kr),Jr&&(ne[wr.SUBTITLES]=Jr,wr.SUBTITLES=Jr),Cr.attrs=wr;var Cn=new Dt(Cr);return un(Cn,"audio",Kr),un(Cn,"text",Jr),Cn});H.push.apply(H,Object(y.a)(ht)),cu(W.audioTracks,Z,ot,Te),cu(W.subtitleTracks,ne,ot,Te)})}},{key:"loadSteeringManifest",value:function(L){var W=this,H=this.hls.config,Z=H.loader;this.loader&&this.loader.destroy(),this.loader=new Z(H);var ne;try{ne=new self.URL(L)}catch(Cr){this.enabled=!1,this.log("Failed to parse Steering Manifest URI: ".concat(L));return}if(ne.protocol!=="data:"){var ve=(this.hls.bandwidthEstimate||H.abrEwmaDefaultEstimate)|0;ne.searchParams.set("_HLS_pathway",this.pathwayId),ne.searchParams.set("_HLS_throughput",""+ve)}var Te={responseType:"json",url:ne.href},Ve=H.steeringManifestLoadPolicy.default,ot=Ve.errorRetry||Ve.timeoutRetry||{},ht={loadPolicy:Ve,timeout:Ve.maxLoadTimeMs,maxRetry:ot.maxNumRetry||0,retryDelay:ot.retryDelayMs||0,maxRetryDelay:ot.maxRetryDelayMs||0},Qt={onSuccess:function(wr,Kr,Jr,Cn){W.log('Loaded steering manifest: "'.concat(ne,'"'));var Nn=wr.data;if(Nn.VERSION!==1){W.log("Steering VERSION ".concat(Nn.VERSION," not supported!"));return}W.updated=performance.now(),W.timeToLoad=Nn.TTL;var Jn=Nn["RELOAD-URI"],bi=Nn["PATHWAY-CLONES"],ua=Nn["PATHWAY-PRIORITY"];if(Jn)try{W.uri=new self.URL(Jn,ne).href}catch(Vi){W.enabled=!1,W.log("Failed to parse Steering Manifest RELOAD-URI: ".concat(Jn));return}W.scheduleRefresh(W.uri||Jr.url),bi&&W.clonePathways(bi),ua&&W.updatePathwayPriority(ua)},onError:function(wr,Kr,Jr,Cn){if(W.log("Error loading steering manifest: ".concat(wr.code," ").concat(wr.text," (").concat(Kr.url,")")),W.stopLoad(),wr.code===410){W.enabled=!1,W.log("Steering manifest ".concat(Kr.url," no longer available"));return}var Nn=W.timeToLoad*1e3;if(wr.code===429){var Jn=W.loader;if(typeof(Jn==null?void 0:Jn.getResponseHeader)=="function"){var bi=Jn.getResponseHeader("Retry-After");bi&&(Nn=parseFloat(bi)*1e3)}W.log("Steering manifest ".concat(Kr.url," rate limited"));return}W.scheduleRefresh(W.uri||Kr.url,Nn)},onTimeout:function(wr,Kr,Jr){W.log("Timeout loading steering manifest (".concat(Kr.url,")")),W.scheduleRefresh(W.uri||Kr.url)}};this.log("Requesting steering manifest: ".concat(ne)),this.loader.load(Te,ht,Qt)}},{key:"scheduleRefresh",value:function(L){var W=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.timeToLoad*1e3;self.clearTimeout(this.reloadTimer),this.reloadTimer=self.setTimeout(function(){W.loadSteeringManifest(L)},H)}}]),Ae}();function cu(Ae,q,L,W){if(!Ae)return;Object.keys(q).forEach(function(H){var Z=Ae.filter(function(ne){return ne.groupId===H}).map(function(ne){var ve=E({},ne);return ve.details=void 0,ve.attrs=new V(ve.attrs),ve.url=ve.attrs.URI=du(ne.url,ne.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",L),ve.groupId=ve.attrs["GROUP-ID"]=q[H],ve.attrs["PATHWAY-ID"]=W,ve});Ae.push.apply(Ae,Object(y.a)(Z))})}function du(Ae,q,L,W){var H=W.HOST,Z=W.PARAMS,ne=W[L],ve;q&&(ve=ne==null?void 0:ne[q],ve&&(Ae=ve));var Te=new self.URL(Ae);return H&&!ve&&(Te.host=H),Z&&Object.keys(Z).sort().forEach(function(Ve){Ve&&Te.searchParams.set(Ve,Z[Ve])}),Te.href}var Lu=/^age:\s*[\d.]+\s*$/im,zl=function(){function Ae(q){Object(r.a)(this,Ae),this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=q&&q.xhrSetup||null,this.stats=new $,this.retryDelay=0}return Object(s.a)(Ae,[{key:"destroy",value:function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null}},{key:"abortInternal",value:function(){var L=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),L&&(L.onreadystatechange=null,L.onprogress=null,L.readyState!==4&&(this.stats.aborted=!0,L.abort()))}},{key:"abort",value:function(){var L;this.abortInternal(),(L=this.callbacks)!=null&&L.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}},{key:"load",value:function(L,W,H){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=L,this.config=W,this.callbacks=H,this.loadInternal()}},{key:"loadInternal",value:function(){var L=this,W=this.config,H=this.context;if(!W)return;var Z=this.loader=new self.XMLHttpRequest,ne=this.stats;ne.loading.first=0,ne.loaded=0,ne.aborted=!1;var ve=this.xhrSetup;ve?Promise.resolve().then(function(){return L.stats.aborted?void 0:ve(Z,H.url)}).catch(function(Te){return Z.open("GET",H.url,!0),ve(Z,H.url)}).then(function(){if(L.stats.aborted)return;L.openAndSendXhr(Z,H,W)}).catch(function(Te){L.callbacks.onError({code:Z.status,text:Te.message},H,Z,ne);return}):this.openAndSendXhr(Z,H,W)}},{key:"openAndSendXhr",value:function(L,W,H){L.readyState||L.open("GET",W.url,!0);var Z=this.context.headers,ne=H.loadPolicy,ve=ne.maxTimeToFirstByteMs,Te=ne.maxLoadTimeMs;if(Z)for(var Ve in Z)L.setRequestHeader(Ve,Z[Ve]);W.rangeEnd&&L.setRequestHeader("Range","bytes="+W.rangeStart+"-"+(W.rangeEnd-1)),L.onreadystatechange=this.readystatechange.bind(this),L.onprogress=this.loadprogress.bind(this),L.responseType=W.responseType,self.clearTimeout(this.requestTimeout),H.timeout=ve&&T(ve)?ve:Te,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),H.timeout),L.send()}},{key:"readystatechange",value:function(){var L=this.context,W=this.loader,H=this.stats;if(!L||!W)return;var Z=W.readyState,ne=this.config;if(H.aborted)return;if(Z>=2&&(H.loading.first===0&&(H.loading.first=Math.max(self.performance.now(),H.loading.start),ne.timeout!==ne.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),ne.timeout=ne.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),ne.loadPolicy.maxLoadTimeMs-(H.loading.first-H.loading.start)))),Z===4)){self.clearTimeout(this.requestTimeout),W.onreadystatechange=null,W.onprogress=null;var ve=W.status,Te=W.responseType!=="text";if(ve>=200&&ve<300&&(Te&&W.response||W.responseText!==null)){H.loading.end=Math.max(self.performance.now(),H.loading.first);var Ve=Te?W.response:W.responseText,ot=W.responseType==="arraybuffer"?Ve.byteLength:Ve.length;if(H.loaded=H.total=ot,H.bwEstimate=H.total*8e3/(H.loading.end-H.loading.first),!this.callbacks)return;var ht=this.callbacks.onProgress;if(ht&&ht(H,L,Ve,W),!this.callbacks)return;var Qt={url:W.responseURL,data:Ve,code:ve};this.callbacks.onSuccess(Qt,H,L,W)}else{var Cr=ne.loadPolicy.errorRetry,wr=H.retry;oa(Cr,wr,!1,ve)?this.retry(Cr):(j.error("".concat(ve," while loading ").concat(L.url)),this.callbacks.onError({code:ve,text:W.statusText},L,W,H))}}}},{key:"loadtimeout",value:function(){var L,W=(L=this.config)==null?void 0:L.loadPolicy.timeoutRetry,H=this.stats.retry;if(oa(W,H,!0))this.retry(W);else{j.warn("timeout while loading ".concat(this.context.url));var Z=this.callbacks;Z&&(this.abortInternal(),Z.onTimeout(this.stats,this.context,this.loader))}}},{key:"retry",value:function(L){var W=this.context,H=this.stats;this.retryDelay=Ri(L,H.retry),H.retry++,j.warn("".concat(status?"HTTP Status "+status:"Timeout"," while loading ").concat(W.url,", retrying ").concat(H.retry,"/").concat(L.maxNumRetry," in ").concat(this.retryDelay,"ms")),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}},{key:"loadprogress",value:function(L){var W=this.stats;W.loaded=L.loaded,L.lengthComputable&&(W.total=L.total)}},{key:"getCacheAge",value:function(){var L=null;if(this.loader&&Lu.test(this.loader.getAllResponseHeaders())){var W=this.loader.getResponseHeader("age");L=W?parseFloat(W):null}return L}},{key:"getResponseHeader",value:function(L){return this.loader&&new RegExp("^".concat(L,":\\s*[\\d.]+\\s*$"),"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(L):null}}]),Ae}();function ru(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(Ae){}return!1}var ou=/(\d+)-(\d+)\/(\d+)/,su=function(){function Ae(q){Object(r.a)(this,Ae),this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=q.fetchSetup||Zl,this.controller=new self.AbortController,this.stats=new $}return Object(s.a)(Ae,[{key:"destroy",value:function(){this.loader=this.callbacks=null,this.abortInternal()}},{key:"abortInternal",value:function(){var L=this.response;L!=null&&L.ok||(this.stats.aborted=!0,this.controller.abort())}},{key:"abort",value:function(){var L;this.abortInternal(),(L=this.callbacks)!=null&&L.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}},{key:"load",value:function(L,W,H){var Z=this,ne=this.stats;if(ne.loading.start)throw new Error("Loader can only be used once.");ne.loading.start=self.performance.now();var ve=Jl(L,this.controller.signal),Te=H.onProgress,Ve=L.responseType==="arraybuffer",ot=Ve?"byteLength":"length",ht=W.loadPolicy,Qt=ht.maxTimeToFirstByteMs,Cr=ht.maxLoadTimeMs;this.context=L,this.config=W,this.callbacks=H,this.request=this.fetchSetup(L,ve),self.clearTimeout(this.requestTimeout),W.timeout=Qt&&T(Qt)?Qt:Cr,this.requestTimeout=self.setTimeout(function(){Z.abortInternal(),H.onTimeout(ne,L,Z.response)},W.timeout),self.fetch(this.request).then(function(wr){Z.response=Z.loader=wr;var Kr=Math.max(self.performance.now(),ne.loading.start);if(self.clearTimeout(Z.requestTimeout),W.timeout=Cr,Z.requestTimeout=self.setTimeout(function(){Z.abortInternal(),H.onTimeout(ne,L,Z.response)},Cr-(Kr-ne.loading.start)),!wr.ok){var Jr=wr.status,Cn=wr.statusText;throw new yu(Cn||"fetch, bad network response",Jr,wr)}return ne.loading.first=Kr,ne.total=Ru(wr.headers)||ne.total,Te&&T(W.highWaterMark)?Z.loadProgressively(wr,ne,L,W.highWaterMark,Te):Ve?wr.arrayBuffer():L.responseType==="json"?wr.json():wr.text()}).then(function(wr){var Kr=Z.response;self.clearTimeout(Z.requestTimeout),ne.loading.end=Math.max(self.performance.now(),ne.loading.first);var Jr=wr[ot];Jr&&(ne.loaded=ne.total=Jr);var Cn={url:Kr.url,data:wr,code:Kr.status};Te&&!T(W.highWaterMark)&&Te(ne,L,wr,Kr),H.onSuccess(Cn,ne,L,Kr)}).catch(function(wr){if(self.clearTimeout(Z.requestTimeout),ne.aborted)return;var Kr=wr&&wr.code||0,Jr=wr?wr.message:null;H.onError({code:Kr,text:Jr},L,wr?wr.details:null,ne)})}},{key:"getCacheAge",value:function(){var L=null;if(this.response){var W=this.response.headers.get("age");L=W?parseFloat(W):null}return L}},{key:"getResponseHeader",value:function(L){return this.response?this.response.headers.get(L):null}},{key:"loadProgressively",value:function(L,W,H){var Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,ne=arguments.length>4?arguments[4]:void 0,ve=new Ht,Te=L.body.getReader(),Ve=function ot(){return Te.read().then(function(ht){if(ht.done)return ve.dataLength&&ne(W,H,ve.flush(),L),Promise.resolve(new ArrayBuffer(0));var Qt=ht.value,Cr=Qt.length;return W.loaded+=Cr,Cr<Z||ve.dataLength?(ve.push(Qt),ve.dataLength>=Z&&ne(W,H,ve.flush(),L)):ne(W,H,Qt,L),ot()}).catch(function(){return Promise.reject()})};return Ve()}}]),Ae}();function Jl(Ae,q){var L={method:"GET",mode:"cors",credentials:"same-origin",signal:q,headers:new self.Headers(E({},Ae.headers))};return Ae.rangeEnd&&L.headers.set("Range","bytes="+Ae.rangeStart+"-"+String(Ae.rangeEnd-1)),L}function Du(Ae){var q=ou.exec(Ae);if(q)return parseInt(q[2])-parseInt(q[1])+1}function Ru(Ae){var q=Ae.get("Content-Range");if(q){var L=Du(q);if(T(L))return L}var W=Ae.get("Content-Length");if(W)return parseInt(W)}function Zl(Ae,q){return new self.Request(Ae.url,q)}var yu=function(Ae){Object(a.a)(L,Ae);var q=Object(e.a)(L);function L(W,H,Z){var ne;return Object(r.a)(this,L),ne=q.call(this,W),ne.code=void 0,ne.details=void 0,ne.code=H,ne.details=Z,ne}return Object(s.a)(L)}(n(Error)),xu=/\s/,bu={newCue:function(q,L,W,H){for(var Z=[],ne,ve,Te,Ve,ot,ht=self.VTTCue||self.TextTrackCue,Qt=0;Qt<H.rows.length;Qt++)if(ne=H.rows[Qt],Te=!0,Ve=0,ot="",!ne.isEmpty()){for(var Cr,wr=0;wr<ne.chars.length;wr++)xu.test(ne.chars[wr].uchar)&&Te?Ve++:(ot+=ne.chars[wr].uchar,Te=!1);ne.cueStartTime=L,L===W&&(W+=1e-4),Ve>=16?Ve--:Ve++;var Kr=jo(ot.trim()),Jr=Ls(L,W,Kr);q!=null&&(Cr=q.cues)!=null&&Cr.getCueById(Jr)||(ve=new ht(L,W,Kr),ve.id=Jr,ve.line=Qt+1,ve.align="left",ve.position=10+Math.min(80,Math.floor(Ve*8/32)*10),Z.push(ve))}return q&&Z.length&&(Z.sort(function(Cn,Nn){return Cn.line==="auto"||Nn.line==="auto"?0:Cn.line>8&&Nn.line>8?Nn.line-Cn.line:Cn.line-Nn.line}),Z.forEach(function(Cn){return gr(q,Cn)})),Z}},hl={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Dl=b(b({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:zl,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:go,bufferController:wi,capLevelController:mu,errorController:Sr,fpsController:gu,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:_e,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,certLoadPolicy:{default:hl},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:Infinity,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},nu()),{},{subtitleStreamController:Qe,subtitleTrackController:or,timelineController:$l,audioStreamController:hi,audioTrackController:Rt,emeController:Cl,cmcdController:vu,contentSteeringController:Ol});function nu(){return{cueHandler:bu,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function Nu(Ae,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=hu(Ae),W=["manifest","level","frag"],H=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return W.forEach(function(Z){var ne="".concat(Z==="level"?"playlist":Z,"LoadPolicy"),ve=q[ne]===void 0,Te=[];H.forEach(function(Ve){var ot="".concat(Z,"Loading").concat(Ve),ht=q[ot];if(ht!==void 0&&ve){Te.push(ot);var Qt=L[ne].default;q[ne]={default:Qt};switch(Ve){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}}}),Te.length&&j.warn('hls.js config: "'.concat(Te.join('", "'),'" setting(s) are deprecated, use "').concat(ne,'": ').concat(JSON.stringify(q[ne])))}),b(b({},L),q)}function hu(Ae){return Ae&&typeof Ae=="object"?Array.isArray(Ae)?Ae.map(hu):Object.keys(Ae).reduce(function(q,L){return q[L]=hu(Ae[L]),q},{}):Ae}function fu(Ae){var q=Ae.loader;if(q!==su&&q!==zl)j.log("[config]: Custom loader detected, cannot enable progressive streaming"),Ae.progressive=!1;else{var L=ru();L&&(Ae.loader=su,Ae.progressive=!0,Ae.enableSoftwareAES=!0,j.log("[config]: Progressive streaming enabled, using FetchLoader"))}}var iu=function(){function Ae(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object(r.a)(this,Ae),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new ds,this._autoLevelCapping=void 0,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,M(q.debug||!1,"Hls instance");var L=this.config=Nu(Ae.DefaultConfig,q);this.userConfig=q,this._autoLevelCapping=-1,L.progressive&&fu(L);var W=L.abrController,H=L.bufferController,Z=L.capLevelController,ne=L.errorController,ve=L.fpsController,Te=new ne(this),Ve=this.abrController=new W(this),ot=this.bufferController=new H(this),ht=this.capLevelController=new Z(this),Qt=new ve(this),Cr=new Xr(this),wr=new Vn(this),Kr=L.contentSteeringController,Jr=Kr?new Kr(this):null,Cn=this.levelController=new Vr(this,Jr),Nn=new Or(this),Jn=new pi(this.config),bi=this.streamController=new No(this,Nn,Jn);ht.setStreamController(bi),Qt.setStreamController(bi);var ua=[Cr,Cn,bi];Jr&&ua.splice(1,0,Jr),this.networkControllers=ua;var Vi=[Ve,ot,ht,Qt,wr,Nn];this.audioTrackController=this.createController(L.audioTrackController,ua);var Zi=L.audioStreamController;Zi&&ua.push(new Zi(this,Nn,Jn)),this.subtitleTrackController=this.createController(L.subtitleTrackController,ua);var ka=L.subtitleStreamController;ka&&ua.push(new ka(this,Nn,Jn)),this.createController(L.timelineController,Vi),Jn.emeController=this.emeController=this.createController(L.emeController,Vi),this.cmcdController=this.createController(L.cmcdController,Vi),this.latencyController=this.createController(Xt,Vi),this.coreComponents=Vi,ua.push(Te);var Ga=Te.onErrorOut;typeof Ga=="function"&&this.on(S.ERROR,Ga,Te)}return Object(s.a)(Ae,[{key:"createController",value:function(L,W){if(L){var H=new L(this);return W&&W.push(H),H}return null}},{key:"on",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.on(L,W,H)}},{key:"once",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.once(L,W,H)}},{key:"removeAllListeners",value:function(L){this._emitter.removeAllListeners(L)}},{key:"off",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this,Z=arguments.length>3?arguments[3]:void 0;this._emitter.off(L,W,H,Z)}},{key:"listeners",value:function(L){return this._emitter.listeners(L)}},{key:"emit",value:function(L,W,H){return this._emitter.emit(L,W,H)}},{key:"trigger",value:function(L,W){if(this.config.debug)return this.emit(L,L,W);try{return this.emit(L,L,W)}catch(H){j.error("An internal error happened while handling event "+L+'. Error message: "'+H.message+'". Here is a stacktrace:',H),this.trigger(S.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,fatal:!1,event:L,error:H})}return!1}},{key:"listenerCount",value:function(L){return this._emitter.listenerCount(L)}},{key:"destroy",value:function(){j.log("destroy"),this.trigger(S.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(W){return W.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(W){return W.destroy()}),this.coreComponents.length=0;var L=this.config;L.xhrSetup=L.fetchSetup=void 0,this.userConfig=null}},{key:"attachMedia",value:function(L){j.log("attachMedia"),this._media=L,this.trigger(S.MEDIA_ATTACHING,{media:L})}},{key:"detachMedia",value:function(){j.log("detachMedia"),this.trigger(S.MEDIA_DETACHING,void 0),this._media=null}},{key:"loadSource",value:function(L){this.stopLoad();var W=this.media,H=this.url,Z=this.url=g.buildAbsoluteURL(self.location.href,L,{alwaysNormalize:!0});j.log("loadSource:".concat(Z)),W&&H&&(H!==Z||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(W)),this.trigger(S.MANIFEST_LOADING,{url:L})}},{key:"startLoad",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;j.log("startLoad(".concat(L,")")),this.networkControllers.forEach(function(W){W.startLoad(L)})}},{key:"stopLoad",value:function(){j.log("stopLoad"),this.networkControllers.forEach(function(L){L.stopLoad()})}},{key:"swapAudioCodec",value:function(){j.log("swapAudioCodec"),this.streamController.swapAudioCodec()}},{key:"recoverMediaError",value:function(){j.log("recoverMediaError");var L=this._media;this.detachMedia(),L&&this.attachMedia(L)}},{key:"removeLevel",value:function(L){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.levelController.removeLevel(L,W)}},{key:"levels",get:function(){var L=this.levelController.levels;return L||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(L){j.log("set currentLevel:".concat(L)),this.loadLevel=L,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(L){j.log("set nextLevel:".concat(L)),this.levelController.manualLevel=L,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(L){j.log("set loadLevel:".concat(L)),this.levelController.manualLevel=L}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(L){this.levelController.nextLoadLevel=L}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(L){j.log("set firstLevel:".concat(L)),this.levelController.firstLevel=L}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(L){j.log("set startLevel:".concat(L)),L!==-1&&(L=Math.max(L,this.minAutoLevel)),this.levelController.startLevel=L}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(L){var W=!!L;W!==this.config.capLevelToPlayerSize&&(W?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=W)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(L){this._autoLevelCapping!==L&&(j.log("set autoLevelCapping:".concat(L)),this._autoLevelCapping=L)}},{key:"bandwidthEstimate",get:function(){var L=this.abrController.bwEstimator;return L?L.getEstimate():NaN}},{key:"ttfbEstimate",get:function(){var L=this.abrController.bwEstimator;return L?L.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(L){It.indexOf(L)>-1&&(this._maxHdcpLevel=L)}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var L=this.levels,W=this.config.minAutoBitrate;if(!L)return 0;for(var H=L.length,Z=0;Z<H;Z++)if(L[Z].maxBitrate>=W)return Z;return 0}},{key:"maxAutoLevel",get:function(){var L=this.levels,W=this.autoLevelCapping,H=this.maxHdcpLevel,Z;if(W===-1&&L&&L.length?Z=L.length-1:Z=W,H)for(var ne=Z;ne--;){var ve=L[ne].attrs["HDCP-LEVEL"];if(ve&&ve<=H)return ne}return Z}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(L){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,L)}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"audioTracks",get:function(){var L=this.audioTrackController;return L?L.audioTracks:[]}},{key:"audioTrack",get:function(){var L=this.audioTrackController;return L?L.audioTrack:-1},set:function(L){var W=this.audioTrackController;W&&(W.audioTrack=L)}},{key:"subtitleTracks",get:function(){var L=this.subtitleTrackController;return L?L.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var L=this.subtitleTrackController;return L?L.subtitleTrack:-1},set:function(L){var W=this.subtitleTrackController;W&&(W.subtitleTrack=L)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var L=this.subtitleTrackController;return L?L.subtitleDisplay:!1},set:function(L){var W=this.subtitleTrackController;W&&(W.subtitleDisplay=L)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(L){this.config.lowLatencyMode=L}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.4.12"}},{key:"isSupported",value:function(){return Qo()}},{key:"Events",get:function(){return S}},{key:"ErrorTypes",get:function(){return O}},{key:"ErrorDetails",get:function(){return I}},{key:"DefaultConfig",get:function(){return Ae.defaultConfig?Ae.defaultConfig:Dl},set:function(L){Ae.defaultConfig=L}}]),Ae}();iu.defaultConfig=void 0},pmaE:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("IwbS"),v=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 v(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,A=new x.Circle({style:{fill:n.getData().getVisual("color")},shape:{cx:h[0]+g*9,cy:h[1],r:3},silent:!0,z2:8+(g?0:x.Z2_EMPHASIS_LIFT+1)});if(!g){var b=n.mainSeries.getData(),w=e.getName(s),E=b.indexOfName(w),C=e.getItemModel(s),_=C.getModel("label"),T=C.getModel("emphasis.label"),S=b.getItemGraphicEl(E),O=p.retrieve2(n.getFormattedLabel(E,"normal"),w),I=p.retrieve2(n.getFormattedLabel(E,"emphasis"),O),F=S[m],P=Math.random();if(!F){F=S[m]={};var B=p.curry(l,!0),k=p.curry(l,!1);S.on("mouseover",B).on("mouseout",k).on("emphasis",B).on("normal",k)}S[f]=P,p.extend(F,{recordVersion:P,circle:A,labelModel:_,hoverLabelModel:T,emphasisText:I,normalText:O}),o(F,!1)}u.add(A)})}});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(x.setTextStyle({},u,{text:u.get("show")?r:null},{isRectText:!0,useInsideStyle:!1},!0)),a.__mapOriginalZ2=a.z2,a.z2+=x.Z2_EMPHASIS_LIFT):(x.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))}R.exports=d},pwpV:function(R,D,i){},pzxd:function(R,D,i){var y=i("bYtY"),p=y.retrieve2,x=y.retrieve3,v=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={},A={};function b(V){return w(V),v(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 X=V.textVerticalAlign||V.textBaseline;X==="center"&&(X="middle"),V.textVerticalAlign=X==null||c[X]?X:"top";var te=V.textPadding;te&&(V.textPadding=m(V.textPadding))}}function E(V,Q,X,te,$,le){te.rich?_(V,Q,X,te,$,le):C(V,Q,X,te,$,le)}function C(V,Q,X,te,$,le){"use strict";var re=I(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 Ge=V.__computedFont;V.__styleFont!==Je&&(V.__styleFont=Je,Ge=V.__computedFont=Q.font);var ct=te.textPadding,Ue=te.textLineHeight,ae=V.__textCotentBlock;(!ae||V.__dirtyText)&&(ae=V.__textCotentBlock=l.parsePlainText(X,Ge,ct,Ue,te.truncate));var lt=ae.outerHeight,pe=ae.lines,J=ae.lineHeight,Y=B(A,V,te,$),ee=Y.baseX,fe=Y.baseY,we=Y.textAlign||"left",Ce=Y.textVerticalAlign;S(Q,te,$,ee,fe);var _e=l.adjustTextY(fe,lt,Ce),he=ee,ye=_e;if(re||ct){var Le=l.getWidth(X,Ge),tt=Le;ct&&(tt+=ct[1]+ct[3]);var gt=l.adjustTextX(ee,tt,we);re&&F(V,Q,te,gt,_e,tt,lt),ct&&(he=K(ee,we,ct),ye+=ct[0])}Q.textAlign=we,Q.textBaseline="middle",Q.globalAlpha=te.opacity||1;for(var at=0;at<h.length;at++){var Fe=h[at],mt=Fe[0],et=Fe[1],St=te[mt];(!Re||St!==Se[mt])&&(Q[et]=t(Q,et,St||Fe[2]))}ye+=J/2;var jt=te.textStrokeWidth,Mt=Re?Se.textStrokeWidth:null,Ot=!Re||jt!==Mt,Bt=!Re||Ot||te.textStroke!==Se.textStroke,Ke=G(te.textStroke,jt),de=M(te.textFill);if(Ke&&(Ot&&(Q.lineWidth=jt),Bt&&(Q.strokeStyle=Ke)),de&&((!Re||te.textFill!==Se.textFill)&&(Q.fillStyle=de)),pe.length===1)Ke&&Q.strokeText(pe[0],he,ye),de&&Q.fillText(pe[0],he,ye);else for(var at=0;at<pe.length;at++)Ke&&Q.strokeText(pe[at],he,ye),de&&Q.fillText(pe[at],he,ye),ye+=J}function _(V,Q,X,te,$,le){le!==u&&(Q.__attrCachedBy=e.NONE);var re=V.__textCotentBlock;(!re||V.__dirtyText)&&(re=V.__textCotentBlock=l.parseRichText(X,te)),T(V,Q,re,te,$)}function T(V,Q,X,te,$){var le=X.width,re=X.outerWidth,Se=X.outerHeight,Re=te.textPadding,Pe=B(A,V,te,$),Je=Pe.baseX,Ge=Pe.baseY,ct=Pe.textAlign,Ue=Pe.textVerticalAlign;S(Q,te,$,Je,Ge);var ae=l.adjustTextX(Je,re,ct),lt=l.adjustTextY(Ge,Se,Ue),pe=ae,J=lt;Re&&(pe+=Re[3],J+=Re[0]);var Y=pe+le;I(te)&&F(V,Q,te,ae,lt,re,Se);for(var ee=0;ee<X.lines.length;ee++){for(var fe=X.lines[ee],we=fe.tokens,Ce=we.length,_e=fe.lineHeight,he=fe.width,ye=0,Le=pe,tt=Y,gt=Ce-1,at;ye<Ce&&(at=we[ye],!at.textAlign||at.textAlign==="left");)O(V,Q,at,te,_e,J,Le,"left"),he-=at.width,Le+=at.width,ye++;for(;gt>=0&&(at=we[gt],at.textAlign==="right");)O(V,Q,at,te,_e,J,tt,"right"),he-=at.width,tt-=at.width,gt--;for(Le+=(le-(Le-pe)-(Y-tt)-he)/2;ye<=gt;)at=we[ye],O(V,Q,at,te,_e,J,Le+at.width/2,"center"),Le+=at.width,ye++;J+=_e}}function S(V,Q,X,te,$){if(X&&Q.textRotation){var le=Q.textOrigin;le==="center"?(te=X.width/2+X.x,$=X.height/2+X.y):le&&(te=le[0]+X.x,$=le[1]+X.y),V.translate(te,$),V.rotate(-Q.textRotation),V.translate(-te,-$)}}function O(V,Q,X,te,$,le,re,Se){var Re=te.rich[X.styleName]||{};Re.text=X.text;var Pe=X.textVerticalAlign,Je=le+$/2;Pe==="top"?Je=le+X.height/2:Pe==="bottom"&&(Je=le+$-X.height/2),!X.isLineHolder&&I(Re)&&F(V,Q,Re,Se==="right"?re-X.width:Se==="center"?re-X.width/2:re,Je-X.height/2,X.width,X.height);var Ge=X.textPadding;Ge&&(re=K(re,Se,Ge),Je-=X.height/2-Ge[2]-X.textHeight/2),k(Q,"shadowBlur",x(Re.textShadowBlur,te.textShadowBlur,0)),k(Q,"shadowColor",Re.textShadowColor||te.textShadowColor||"transparent"),k(Q,"shadowOffsetX",x(Re.textShadowOffsetX,te.textShadowOffsetX,0)),k(Q,"shadowOffsetY",x(Re.textShadowOffsetY,te.textShadowOffsetY,0)),k(Q,"textAlign",Se),k(Q,"textBaseline","middle"),k(Q,"font",X.font||r);var ct=G(Re.textStroke||te.textStroke,ae),Ue=M(Re.textFill||te.textFill),ae=p(Re.textStrokeWidth,te.textStrokeWidth);ct&&(k(Q,"lineWidth",ae),k(Q,"strokeStyle",ct),Q.strokeText(X.text,re,Je)),Ue&&(k(Q,"fillStyle",Ue),Q.fillText(X.text,re,Je))}function I(V){return!!(V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor)}function F(V,Q,X,te,$,le,re){var Se=X.textBackgroundColor,Re=X.textBorderWidth,Pe=X.textBorderColor,Je=f(Se);if(k(Q,"shadowBlur",X.textBoxShadowBlur||0),k(Q,"shadowColor",X.textBoxShadowColor||"transparent"),k(Q,"shadowOffsetX",X.textBoxShadowOffsetX||0),k(Q,"shadowOffsetY",X.textBoxShadowOffsetY||0),Je||Re&&Pe){Q.beginPath();var Ge=X.textBorderRadius;Ge?o.buildPath(Q,{x:te,y:$,width:le,height:re,r:Ge}):Q.rect(te,$,le,re),Q.closePath()}if(Je)if(k(Q,"fillStyle",Se),X.fillOpacity!=null){var ct=Q.globalAlpha;Q.globalAlpha=X.fillOpacity*X.opacity,Q.fill(),Q.globalAlpha=ct}else Q.fill();else if(d(Se)){var Ue=Se.image;Ue=n.createOrUpdateImage(Ue,null,V,P,Se),Ue&&n.isImageReady(Ue)&&Q.drawImage(Ue,te,$,le,re)}if(Re&&Pe)if(k(Q,"lineWidth",Re),k(Q,"strokeStyle",Pe),X.strokeOpacity!=null){var ct=Q.globalAlpha;Q.globalAlpha=X.strokeOpacity*X.opacity,Q.stroke(),Q.globalAlpha=ct}else Q.stroke()}function P(V,Q){Q.image=V}function B(V,Q,X,te){var $=X.x||0,le=X.y||0,re=X.textAlign,Se=X.textVerticalAlign;if(te){var Re=X.textPosition;if(Re instanceof Array)$=te.x+j(Re[0],te.width),le=te.y+j(Re[1],te.height);else{var Pe=Q&&Q.calculateTextPosition?Q.calculateTextPosition(g,X,te):l.calculateTextPosition(g,X,te);$=Pe.x,le=Pe.y,re=re||Pe.textAlign,Se=Se||Pe.textVerticalAlign}var Je=X.textOffset;Je&&($+=Je[0],le+=Je[1])}return V=V||{},V.baseX=$,V.baseY=le,V.textAlign=re,V.textVerticalAlign=Se,V}function k(V,Q,X){return V[Q]=t(V,Q,X),V[Q]}function G(V,Q){return V==null||Q<=0||V==="transparent"||V==="none"?null:V.image||V.colorStops?"#000":V}function M(V){return V==null||V==="none"?null:V.image||V.colorStops?"#000":V}function j(V,Q){return typeof V=="string"?V.lastIndexOf("%")>=0?parseFloat(V)/100*Q:parseFloat(V):V}function K(V,Q,X){return Q==="right"?V-X[1]:Q==="center"?V+X[3]/2-X[1]/2:V+X[3]}function z(V,Q){return V!=null&&(V||Q.textBackgroundColor||Q.textBorderWidth&&Q.textBorderColor||Q.textPadding)}D.normalizeTextStyle=b,D.renderText=E,D.getBoxPosition=B,D.getStroke=G,D.getFill=M,D.parsePercent=j,D.needDrawText=z},"q/+u":function(R,D,i){var y=i("ProS"),p=i("9wZj"),x=i("yWXo"),v=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=v().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 x: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(R,D){var i=["lineStyle","normal","opacity"],y={seriesType:"parallel",reset:function(p,x,v){var m=p.getModel("itemStyle"),f=p.getModel("lineStyle"),d=x.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 A=u[h];if(h==="normal"&&c.hasItemOption){var b=c.getItemModel(g).get(i,!0);b!=null&&(A=b)}c.setItemVisual(g,"opacity",A)},s.start,s.end)}return{progress:r}}};R.exports=y},q4HE:function(R,D){var i="\\ud800-\\udfff",y="\\u0300-\\u036f",p="\\ufe20-\\ufe2f",x="\\u20d0-\\u20ff",v=y+p+x,m="\\ufe0e\\ufe0f",f="["+i+"]",d="["+v+"]",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 A(b){for(var w=g.lastIndex=0;g.test(b);)++w;return w}R.exports=A},q7KB:function(R,D,i){},qBft:function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.pad.AnsiX923={pad:function(x,v){var m=x.sigBytes,f=v*4,d=f-m%f,l=m+d-1;x.clamp(),x.words[l>>>2]|=d<<24-l%4*8,x.sigBytes+=d},unpad:function(x){var v=x.words[x.sigBytes-1>>>2]&255;x.sigBytes-=v}},y.pad.Ansix923})},qH13:function(R,D,i){var y=i("ItGF"),p=i("QBsz"),x=p.applyTransform,v=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,A=Math.cos,b=Math.sin,w=Math.max;if(!y.canvasSupported){var E=",",C="progid:DXImageTransform.Microsoft",_=21600,T=_/2,S=1e5,O=1e3,I=function(fe){fe.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",fe.coordsize=_+","+_,fe.coordorigin="0,0"},F=function(fe){return String(fe).replace(/&/g,"&").replace(/"/g,""")},P=function(fe,we,Ce){return"rgb("+[fe,we,Ce].join(",")+")"},B=function(fe,we){we&&fe&&we.parentNode!==fe&&fe.appendChild(we)},k=function(fe,we){we&&fe&&we.parentNode===fe&&fe.removeChild(we)},G=function(fe,we,Ce){return(parseFloat(fe)||0)*S+(parseFloat(we)||0)*O+Ce},M=d.parsePercent,j=function(fe,we,Ce){var _e=m.parse(we);Ce=+Ce,isNaN(Ce)&&(Ce=1),_e&&(fe.color=P(_e[0],_e[1],_e[2]),fe.opacity=Ce*_e[3])},K=function(fe){var we=m.parse(fe);return[P(we[0],we[1],we[2]),we[3]]},z=function(fe,we,Ce){var _e=we.fill;if(_e!=null)if(_e instanceof u){var he,ye=0,Le=[0,0],tt=0,gt=1,at=Ce.getBoundingRect(),Fe=at.width,mt=at.height;if(_e.type==="linear"){he="gradient";var et=Ce.transform,St=[_e.x*Fe,_e.y*mt],jt=[_e.x2*Fe,_e.y2*mt];et&&(x(St,St,et),x(jt,jt,et));var Mt=jt[0]-St[0],Ot=jt[1]-St[1];ye=Math.atan2(Mt,Ot)*180/Math.PI,ye<0&&(ye+=360),ye<1e-6&&(ye=0)}else{he="gradientradial";var St=[_e.x*Fe,_e.y*mt],et=Ce.transform,Bt=Ce.scale,Ke=Fe,de=mt;Le=[(St[0]-at.x)/Ke,(St[1]-at.y)/de],et&&x(St,St,et),Ke/=Bt[0]*_,de/=Bt[1]*_;var se=w(Ke,de);tt=2*0/se,gt=2*_e.r/se-tt}var ut=_e.colorStops.slice();ut.sort(function(pr,Zt){return pr.offset-Zt.offset});for(var qe=ut.length,me=[],Wt=[],dr=0;dr<qe;dr++){var vt=ut[dr],rr=K(vt.color);Wt.push(vt.offset*gt+tt+" "+rr[0]),(dr===0||dr===qe-1)&&me.push(rr)}if(qe>=2){var ur=me[0][0],mn=me[1][0],sr=me[0][1]*we.opacity,xr=me[1][1]*we.opacity;fe.type=he,fe.method="none",fe.focus="100%",fe.angle=ye,fe.color=ur,fe.color2=mn,fe.colors=Wt.join(","),fe.opacity=xr,fe.opacity2=sr}he==="radial"&&(fe.focusposition=Le.join(","))}else j(fe,_e,we.opacity)},V=function(fe,we){we.lineDash&&(fe.dashstyle=we.lineDash.join(" ")),we.stroke!=null&&!(we.stroke instanceof u)&&j(fe,we.stroke,we.opacity)},Q=function(fe,we,Ce,_e){var he=we==="fill",ye=fe.getElementsByTagName(we)[0];Ce[we]!=null&&Ce[we]!=="none"&&(he||!he&&Ce.lineWidth)?(fe[he?"filled":"stroked"]="true",Ce[we]instanceof u&&k(fe,ye),ye||(ye=r.createNode(we)),he?z(ye,Ce,_e):V(ye,Ce),B(fe,ye)):(fe[he?"filled":"stroked"]="false",k(fe,ye))},X=[[],[],[]],te=function(fe,we){var Ce=s.M,_e=s.C,he=s.L,ye=s.A,Le=s.Q,tt=[],gt,at,Fe,mt,et,St,jt=fe.data,Mt=fe.len();for(mt=0;mt<Mt;){Fe=jt[mt++],at="",gt=0;switch(Fe){case Ce:at=" m ",gt=1,et=jt[mt++],St=jt[mt++],X[0][0]=et,X[0][1]=St;break;case he:at=" l ",gt=1,et=jt[mt++],St=jt[mt++],X[0][0]=et,X[0][1]=St;break;case Le:case _e:at=" c ",gt=3;var Ot=jt[mt++],Bt=jt[mt++],Ke=jt[mt++],de=jt[mt++],se,ut;Fe===Le?(se=Ke,ut=de,Ke=(Ke+2*Ot)/3,de=(de+2*Bt)/3,Ot=(et+2*Ot)/3,Bt=(St+2*Bt)/3):(se=jt[mt++],ut=jt[mt++]),X[0][0]=Ot,X[0][1]=Bt,X[1][0]=Ke,X[1][1]=de,X[2][0]=se,X[2][1]=ut,et=se,St=ut;break;case ye:var qe=0,me=0,Wt=1,dr=1,vt=0;we&&(qe=we[4],me=we[5],Wt=h(we[0]*we[0]+we[1]*we[1]),dr=h(we[2]*we[2]+we[3]*we[3]),vt=Math.atan2(-we[1]/dr,we[0]/Wt));var rr=jt[mt++],ur=jt[mt++],mn=jt[mt++],sr=jt[mt++],xr=jt[mt++]+vt,pr=jt[mt++]+xr+vt;mt++;var Zt=jt[mt++],Ct=rr+A(xr)*mn,on=ur+b(xr)*sr,Ot=rr+A(pr)*mn,Bt=ur+b(pr)*sr,Mn=Zt?" wa ":" at ";Math.abs(Ct-Ot)<1e-4&&(Math.abs(pr-xr)>.01?Zt&&(Ct+=270/_):Math.abs(on-ur)<1e-4?Zt&&Ct<rr||!Zt&&Ct>rr?Bt-=270/_:Bt+=270/_:Zt&&on<ur||!Zt&&on>ur?Ot+=270/_:Ot-=270/_),tt.push(Mn,c(((rr-mn)*Wt+qe)*_-T),E,c(((ur-sr)*dr+me)*_-T),E,c(((rr+mn)*Wt+qe)*_-T),E,c(((ur+sr)*dr+me)*_-T),E,c((Ct*Wt+qe)*_-T),E,c((on*dr+me)*_-T),E,c((Ot*Wt+qe)*_-T),E,c((Bt*dr+me)*_-T)),et=Ot,St=Bt;break;case s.R:var Xn=X[0],oi=X[1];Xn[0]=jt[mt++],Xn[1]=jt[mt++],oi[0]=Xn[0]+jt[mt++],oi[1]=Xn[1]+jt[mt++],we&&(x(Xn,Xn,we),x(oi,oi,we)),Xn[0]=c(Xn[0]*_-T),oi[0]=c(oi[0]*_-T),Xn[1]=c(Xn[1]*_-T),oi[1]=c(oi[1]*_-T),tt.push(" m ",Xn[0],E,Xn[1]," l ",oi[0],E,Xn[1]," l ",oi[0],E,oi[1]," l ",Xn[0],E,oi[1]);break;case s.Z:tt.push(" x ")}if(gt>0){tt.push(at);for(var Ui=0;Ui<gt;Ui++){var Un=X[Ui];we&&x(Un,Un,we),tt.push(c(Un[0]*_-T),E,c(Un[1]*_-T),Ui<gt-1?E:"")}}}return tt.join("")};a.prototype.brushVML=function(ee){var fe=this.style,we=this._vmlEl;we||(we=r.createNode("shape"),I(we),this._vmlEl=we),Q(we,"fill",fe,this),Q(we,"stroke",fe,this);var Ce=this.transform,_e=Ce!=null,he=we.getElementsByTagName("stroke")[0];if(he){var ye=fe.lineWidth;if(_e&&!fe.strokeNoScale){var Le=Ce[0]*Ce[3]-Ce[1]*Ce[2];ye*=h(g(Le))}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),we.path=te(tt,this.transform),we.style.zIndex=G(this.zlevel,this.z,this.z2),B(ee,we),fe.text!=null?this.drawRectText(ee,this.getBoundingRect()):this.removeRectText(ee)},a.prototype.onRemove=function(ee){k(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,we=fe.image,Ce,_e;if($(we)){var he=we.src;if(he===this._imageSrc)Ce=this._imageWidth,_e=this._imageHeight;else{var ye=we.runtimeStyle,Le=ye.width,tt=ye.height;ye.width="auto",ye.height="auto",Ce=we.width,_e=we.height,ye.width=Le,ye.height=tt,this._imageSrc=he,this._imageWidth=Ce,this._imageHeight=_e}we=he}else we===this._imageSrc&&(Ce=this._imageWidth,_e=this._imageHeight);if(!we)return;var gt=fe.x||0,at=fe.y||0,Fe=fe.width,mt=fe.height,et=fe.sWidth,St=fe.sHeight,jt=fe.sx||0,Mt=fe.sy||0,Ot=et&&St,Bt=this._vmlEl;Bt||(Bt=r.doc.createElement("div"),I(Bt),this._vmlEl=Bt);var Ke=Bt.style,de=!1,se,ut=1,qe=1;if(this.transform&&(se=this.transform,ut=h(se[0]*se[0]+se[1]*se[1]),qe=h(se[2]*se[2]+se[3]*se[3]),de=se[1]||se[2]),de){var me=[gt,at],Wt=[gt+Fe,at],dr=[gt,at+mt],vt=[gt+Fe,at+mt];x(me,me,se),x(Wt,Wt,se),x(dr,dr,se),x(vt,vt,se);var rr=w(me[0],Wt[0],dr[0],vt[0]),ur=w(me[1],Wt[1],dr[1],vt[1]),mn=[];mn.push("M11=",se[0]/ut,E,"M12=",se[2]/qe,E,"M21=",se[1]/ut,E,"M22=",se[3]/qe,E,"Dx=",c(gt*ut+se[4]),E,"Dy=",c(at*qe+se[5])),Ke.padding="0 "+c(rr)+"px "+c(ur)+"px 0",Ke.filter=C+".Matrix("+mn.join("")+", SizingMethod=clip)"}else se&&(gt=gt*ut+se[4],at=at*qe+se[5]),Ke.filter="",Ke.left=c(gt)+"px",Ke.top=c(at)+"px";var sr=this._imageEl,xr=this._cropEl;sr||(sr=r.doc.createElement("div"),this._imageEl=sr);var pr=sr.style;if(Ot){if(Ce&&_e)pr.width=c(ut*Ce*Fe/et)+"px",pr.height=c(qe*_e*mt/St)+"px";else{var Zt=new Image,Ct=this;Zt.onload=function(){Zt.onload=null,Ce=Zt.width,_e=Zt.height,pr.width=c(ut*Ce*Fe/et)+"px",pr.height=c(qe*_e*mt/St)+"px",Ct._imageWidth=Ce,Ct._imageHeight=_e,Ct._imageSrc=we},Zt.src=we}xr||(xr=r.doc.createElement("div"),xr.style.overflow="hidden",this._cropEl=xr);var on=xr.style;on.width=c((Fe+jt*Fe/et)*ut),on.height=c((mt+Mt*mt/St)*qe),on.filter=C+".Matrix(Dx="+-jt*Fe/et*ut+",Dy="+-Mt*mt/St*qe+")",xr.parentNode||Bt.appendChild(xr),sr.parentNode!==xr&&xr.appendChild(sr)}else pr.width=c(ut*Fe)+"px",pr.height=c(qe*mt)+"px",Bt.appendChild(sr),xr&&xr.parentNode&&(Bt.removeChild(xr),this._cropEl=null);var Mn="",Xn=fe.opacity;Xn<1&&(Mn+=".Alpha(opacity="+c(Xn*100)+") "),Mn+=C+".AlphaImageLoader(src="+we+", SizingMethod=scale)",pr.filter=Mn,Bt.style.zIndex=G(this.zlevel,this.z,this.z2),B(ee,Bt),fe.text!=null&&this.drawRectText(ee,this.getBoundingRect())},n.prototype.onRemove=function(ee){k(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 we=re[fe];if(!we){Se>Re&&(Se=0,re={});var Ce=Pe.style,_e;try{Ce.font=fe,_e=Ce.fontFamily.split(",")[0]}catch(he){}we={style:Ce.fontStyle||le,variant:Ce.fontVariant||le,weight:Ce.fontWeight||le,size:parseFloat(Ce.fontSize||12)|0,family:_e||"Microsoft YaHei"},re[fe]=we,Se++}return we},Ge;f.$override("measureText",function(ee,fe){var we=r.doc;Ge||(Ge=we.createElement("div"),Ge.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",r.doc.body.appendChild(Ge));try{Ge.style.font=fe}catch(Ce){}return Ge.innerHTML="",Ge.appendChild(we.createTextNode(ee)),{width:Ge.offsetWidth}});for(var ct=new v,Ue=function(fe,we,Ce,_e){var he=this.style;this.__dirty&&d.normalizeTextStyle(he,!0);var ye=he.text;if(ye!=null&&(ye+=""),!ye)return;if(he.rich){var Le=f.parseRichText(ye,he);ye=[];for(var tt=0;tt<Le.lines.length;tt++){for(var gt=Le.lines[tt].tokens,at=[],Fe=0;Fe<gt.length;Fe++)at.push(gt[Fe].text);ye.push(at.join(""))}ye=ye.join(`
|
|
|
`)}var mt,et,St=he.textAlign,jt=he.textVerticalAlign,Mt=Je(he.font),Ot=Mt.style+" "+Mt.variant+" "+Mt.weight+" "+Mt.size+'px "'+Mt.family+'"';Ce=Ce||f.getBoundingRect(ye,Ot,St,jt,he.textPadding,he.textLineHeight);var Bt=this.transform;if(Bt&&!_e&&(ct.copy(we),ct.applyTransform(Bt),we=ct),_e)mt=we.x,et=we.y;else{var Ke=he.textPosition;if(Ke instanceof Array)mt=we.x+M(Ke[0],we.width),et=we.y+M(Ke[1],we.height),St=St||"left";else{var de=this.calculateTextPosition?this.calculateTextPosition({},he,we):f.calculateTextPosition({},he,we);mt=de.x,et=de.y,St=St||de.textAlign,jt=jt||de.textVerticalAlign}}mt=f.adjustTextX(mt,Ce.width,St),et=f.adjustTextY(et,Ce.height,jt),et+=Ce.height/2;var se=r.createNode,ut=this._textVmlEl,qe,me,Wt;ut?(Wt=ut.firstChild,qe=Wt.nextSibling,me=qe.nextSibling):(ut=se("line"),qe=se("path"),me=se("textpath"),Wt=se("skew"),me.style["v-text-align"]="left",I(ut),qe.textpathok=!0,me.on=!0,ut.from="0 0",ut.to="1000 0.05",B(ut,Wt),B(ut,qe),B(ut,me),this._textVmlEl=ut);var dr=[mt,et],vt=ut.style;Bt&&_e?(x(dr,dr,Bt),Wt.on=!0,Wt.matrix=Bt[0].toFixed(3)+E+Bt[2].toFixed(3)+E+Bt[1].toFixed(3)+E+Bt[3].toFixed(3)+",0,0",Wt.offset=(c(dr[0])||0)+","+(c(dr[1])||0),Wt.origin="0 0",vt.left="0px",vt.top="0px"):(Wt.on=!1,vt.left=c(mt)+"px",vt.top=c(et)+"px"),me.string=F(ye);try{me.style.font=Ot}catch(rr){}Q(ut,"fill",{fill:he.textFill,opacity:he.opacity},this),Q(ut,"stroke",{stroke:he.textStroke,opacity:he.opacity,lineDash:he.lineDash||null},this),ut.style.zIndex=G(this.zlevel,this.z,this.z2),B(fe,ut)},ae=function(fe){k(fe,this._textVmlEl),this._textVmlEl=null},lt=function(fe){B(fe,this._textVmlEl)},pe=[l,o,n,a,t],J=0;J<pe.length;J++){var Y=pe[J].prototype;Y.drawRectText=Ue,Y.removeRectText=ae,Y.appendRectText=lt}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(R,D,i){var y=i("BlVb"),p=i("mFDi"),x=i("IwbS"),v=x.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])||v(e,u,e+r,u,a)||v(e,u,e,u+s,a)||v(e+r,u,e+r,u+s,a)||v(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;R.exports=l},qM6L:function(R,D,i){(function(y,p){R.exports=D=p(i("Ib8C"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.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 v.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 v.create(t,n*2)}};function d(l){return l<<8&4278255360|l>>>8&16711935}}(),y.enc.Utf16})},qMZE:function(R,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}}}});R.exports=p},qOx5:function(R,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 x(d){var l=d||{},o=l.disabled,n=l.disableCheckbox,t=l.checkable;return!!(o||n)||t===!1}function v(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,A=h.node,b=h.children,w=b===void 0?[]:b;t.has(g)&&!n(A)&&w.filter(function(E){return!n(E.node)}).forEach(function(E){t.add(E.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,A=h.node;if(n(A)||!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(E){return!n(E.node)}).forEach(function(E){var C=E.key,_=t.has(C);b&&!_&&(b=!1),!w&&(_||a.has(C))&&(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 A=g.key,b=g.node,w=g.children,E=w===void 0?[]:w;!a.has(A)&&!e.has(A)&&!t(b)&&E.filter(function(C){return!t(C.node)}).forEach(function(C){a.delete(C.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 A=g.parent,b=g.node;if(t(b)||!g.parent||s.has(g.parent.key))return;if(t(g.parent.node)){s.add(A.key);return}var w=!0,E=!1;(A.children||[]).filter(function(C){return!t(C.node)}).forEach(function(C){var _=C.key,T=a.has(_);w&&!T&&(w=!1),!E&&(T||e.has(_))&&(E=!0)}),w||a.delete(A.key),E&&e.add(A.key),s.add(A.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=x;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,A=u.get(g);A||(A=new Set,u.set(g,A)),A.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=v(e,u,r,a):s=m(e,l.halfCheckedKeys,u,r,a),s}},qPY4:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("u4NN"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},qWUW:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="CaretDownOutlined";var n=v.forwardRef(o);D.default=n},qWt2:function(R,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}}});R.exports=p},qZFw:function(R,D,i){var y=i("bYtY"),p=i("6GrX"),x=i("hM6l"),v=i("4NO4"),m=v.makeInner,f=m();function d(o,n){n=n||[0,360],x.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:x.prototype.dataToCoord,angleToData:x.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 A=Math.max(0,Math.floor(g)),b=f(o.model),w=b.lastAutoInterval,E=b.lastTickCount;return w!=null&&E!=null&&Math.abs(w-A)<=1&&Math.abs(E-e)<=1&&w>A?A=w:(b.lastTickCount=e,b.lastAutoInterval=A),A}},y.inherits(d,x);var l=d;R.exports=l},qZTm:function(R,D,i){var y=i("fR/l"),p=i("MvSz"),x=i("7GkX");function v(m){return y(m,x,p)}R.exports=v},qgGe:function(R,D,i){var y=i("bYtY"),p=i("T4UG"),x=i("Bsck"),v=i("VaxA"),m=v.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,x.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}R.exports=f},qj72:function(R,D,i){var y=i("bYtY");function p(v,m){return m=m||[0,0],y.map(["x","y"],function(f,d){var l=this.getAxis(f),o=m[d],n=v[d]/2;return l.type==="category"?l.getBandWidth():Math.abs(l.dataToCoord(o-n)-l.dataToCoord(o+n))},this)}function x(v){var m=v.grid.getRect();return{coordSys:{type:"cartesian2d",x:m.x,y:m.y,width:m.width,height:m.height},api:{coord:function(f){return v.dataToPoint(f)},size:y.bind(p,v)}}}R.exports=x},"qt/9":function(R,D,i){var y=i("ProS"),p=i("bYtY");i("Wqna"),i("1tlw"),i("Mylv");var x=i("nVfU"),v=x.layout,m=i("f5Yq");i("Ae16"),y.registerLayout(p.curry(v,"pictorialBar")),y.registerVisual(m("pictorialBar","roundRect"))},qu8F:function(R,D,i){(function(y,p,x){R.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 x(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 v(f){return(f[0]=x(f[0]))===0&&(f[1]=x(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),v(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(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("K4ya"),v=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(x.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=v.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(A){return e[A]}function g(A,b){e[A]=b}}},"r+aA":function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="EyeInvisibleOutlined";var n=v.forwardRef(o);D.default=n},"r/2G":function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("+Zaj"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},r6Bn:function(R,D,i){var y=i("bYtY"),p=i("ItGF"),x=i("4fz+"),v=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&&v(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 x&&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 x&&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 x&&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;R.exports=d},rA99:function(R,D,i){var y=i("y+Vt"),p=i("QBsz"),x=i("Sj9i"),v=x.quadraticSubdivide,m=x.cubicSubdivide,f=x.quadraticAt,d=x.cubicAt,l=x.quadraticDerivativeAt,o=x.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,A=r.cpx1,b=r.cpy1,w=r.cpx2,E=r.cpy2,C=r.percent;if(C===0)return;u.moveTo(s,c),w==null||E==null?(C<1&&(v(s,A,h,C,n),A=n[1],h=n[2],v(c,b,g,C,n),b=n[1],g=n[2]),u.quadraticCurveTo(A,b,h,g)):(C<1&&(m(s,A,w,h,C,n),A=n[1],w=n[2],h=n[3],m(c,b,E,g,C,n),b=n[1],E=n[2],g=n[3]),u.bezierCurveTo(A,b,w,E,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)}});R.exports=a},"rAM+":function(R,D,i){"use strict";i.d(D,"a",function(){return p});var y=i("Qw5x");function p(x,v){var m;if(typeof Symbol=="undefined"||x[Symbol.iterator]==null){if(Array.isArray(x)||(m=Object(y.a)(x))||v&&x&&typeof x.length=="number"){m&&(x=m);var f=0,d=function(){};return{s:d,n:function(){return f>=x.length?{done:!0}:{done:!1,value:x[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=x[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(R,D){function i(y){var p=-1,x=Array(y.size);return y.forEach(function(v){x[++p]=v}),x}R.exports=i},rHrb:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CopyToClipboard=void 0;var y=x(i("q1tI")),p=x(i("+QRC"));function x(g){return g&&g.__esModule?g:{default:g}}function v(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(b){return typeof b}:v=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},v(g)}function m(g,A){var b=Object.keys(g);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(g);A&&(w=w.filter(function(E){return Object.getOwnPropertyDescriptor(g,E).enumerable})),b.push.apply(b,w)}return b}function f(g){for(var A=1;A<arguments.length;A++){var b=arguments[A]!=null?arguments[A]:{};A%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,A){if(g==null)return{};var b=l(g,A),w,E;if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(g);for(E=0;E<C.length;E++){if(w=C[E],A.indexOf(w)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(g,w))continue;b[w]=g[w]}}return b}function l(g,A){if(g==null)return{};var b={},w=Object.keys(g),E,C;for(C=0;C<w.length;C++){if(E=w[C],A.indexOf(E)>=0)continue;b[E]=g[E]}return b}function o(g,A){if(!(g instanceof A))throw new TypeError("Cannot call a class as a function")}function n(g,A){for(var b=0;b<A.length;b++){var w=A[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}function t(g,A,b){return A&&n(g.prototype,A),b&&n(g,b),g}function a(g,A){return A&&(v(A)==="object"||typeof A=="function")?A: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,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(A&&A.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),A&&s(g,A)}function s(g,A){return s=Object.setPrototypeOf||function(w,E){return w.__proto__=E,w},s(g,A)}function c(g,A,b){return A in g?Object.defineProperty(g,A,{value:b,enumerable:!0,configurable:!0,writable:!0}):g[A]=b,g}var h=function(g){r(A,g);function A(){var b,w;o(this,A);for(var E=arguments.length,C=new Array(E),_=0;_<E;_++)C[_]=arguments[_];return w=a(this,(b=e(A)).call.apply(b,[this].concat(C))),c(u(w),"onClick",function(T){var S=w.props,O=S.text,I=S.onCopy,F=S.children,P=S.options,B=y.default.Children.only(F),k=(0,p.default)(O,P);I&&I(O,k),B&&B.props&&typeof B.props.onClick=="function"&&B.props.onClick(T)}),w}return t(A,[{key:"render",value:function(){var w=this.props,E=w.text,C=w.onCopy,_=w.options,T=w.children,S=d(w,["text","onCopy","options","children"]),O=y.default.Children.only(T);return y.default.cloneElement(O,f({},S,{onClick:this.onClick}))}}]),A}(y.default.PureComponent);D.CopyToClipboard=h,c(h,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="ReloadOutlined";var d=D.a=p.forwardRef(f)},rUJ1:function(R,D){var i=/[&<>"']/,y=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,x=/[<>"']|&(?!#?\w+;)/g,v={"&":"&","<":"<",">":">",'"':""","'":"'"},m=function(T){return v[T]};function f(_,T){if(T){if(i.test(_))return _.replace(y,m)}else if(p.test(_))return _.replace(x,m);return _}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function l(_){return _.replace(d,function(T,S){return S=S.toLowerCase(),S==="colon"?":":S.charAt(0)==="#"?S.charAt(1)==="x"?String.fromCharCode(parseInt(S.substring(2),16)):String.fromCharCode(+S.substring(1)):""})}var o=/(^|[^\[])\^/g;function n(_,T){_=_.source||_,T=T||"";var S={replace:function(I,F){return F=F.source||F,F=F.replace(o,"$1"),_=_.replace(I,F),S},getRegex:function(){return new RegExp(_,T)}};return S}var t=/[^\w:]/g,a=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function e(_,T,S){if(_){var O;try{O=decodeURIComponent(l(S)).replace(t,"").toLowerCase()}catch(I){return null}if(O.indexOf("javascript:")===0||O.indexOf("vbscript:")===0||O.indexOf("data:")===0)return null}T&&!a.test(S)&&(S=h(T,S));try{S=encodeURI(S).replace(/%25/g,"%")}catch(I){return null}return S}var u={},r=/^[^:]+:\/*[^/]*$/,s=/^([^:]+:)[\s\S]*$/,c=/^([^:]+:\/*[^/]*)[\s\S]*$/;function h(_,T){u[" "+_]||(r.test(_)?u[" "+_]=_+"/":u[" "+_]=w(_,"/",!0)),_=u[" "+_];var S=_.indexOf(":")===-1;return T.substring(0,2)==="//"?S?T:_.replace(s,"$1")+T:T.charAt(0)==="/"?S?T:_.replace(c,"$1")+T:_+T}var g={exec:function(){}};function A(_){for(var T=1,S,O;T<arguments.length;T++){S=arguments[T];for(O in S)Object.prototype.hasOwnProperty.call(S,O)&&(_[O]=S[O])}return _}function b(_,T){var S=_.replace(/\|/g,function(F,P,B){for(var k=!1,G=P;--G>=0&&B[G]==="\\";)k=!k;return k?"|":" |"}),O=S.split(/ \|/),I=0;if(O.length>T)O.splice(T);else for(;O.length<T;)O.push("");for(;I<O.length;I++)O[I]=O[I].trim().replace(/\\\|/g,"|");return O}function w(_,T,S){var O=_.length;if(O===0)return"";for(var I=0;I<O;){var F=_.charAt(O-I-1);if(F===T&&!S)I++;else if(F!==T&&S)I++;else break}return _.substr(0,O-I)}function E(_,T){if(_.indexOf(T[1])===-1)return-1;for(var S=_.length,O=0,I=0;I<S;I++)if(_[I]==="\\")I++;else if(_[I]===T[0])O++;else if(_[I]===T[1]&&(O--,O<0))return I;return-1}function C(_){_&&_.sanitize&&!_.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}R.exports={escape:f,unescape:l,edit:n,cleanUrl:e,resolveUrl:h,noopTest:g,merge:A,splitCells:b,rtrim:w,findClosingBracket:E,checkSanitizeDeprecation:C}},rcnY:function(R,D,i){var y=i("aRTE");function p(x,v){this.totalCount=x,this.dataCount=v}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(x,v){var m=p.getRsBlockTable(x,v);if(m==null)throw new Error("bad rs block @ typeNumber:"+x+"/errorCorrectLevel:"+v);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(x,v){switch(v){case y.L:return p.RS_BLOCK_TABLE[(x-1)*4+0];case y.M:return p.RS_BLOCK_TABLE[(x-1)*4+1];case y.Q:return p.RS_BLOCK_TABLE[(x-1)*4+2];case y.H:return p.RS_BLOCK_TABLE[(x-1)*4+3];default:return}},R.exports=p},rdUC:function(R,D,i){var y=i("MFOe"),p=y.Global;R.exports={name:"localStorage",read:v,write:m,each:f,remove:d,clearAll:l};function x(){return p.localStorage}function v(o){return x().getItem(o)}function m(o,n){return x().setItem(o,n)}function f(o){for(var n=x().length-1;n>=0;n--){var t=x().key(n);o(v(t),t)}}function d(o){return x().removeItem(o)}function l(){return x().clear()}},rdor:function(R,D,i){var y=i("lOQZ"),p=y.circularLayout;function x(v){v.eachSeriesByType("graph",function(m){m.get("layout")==="circular"&&p(m,"symbolSize")})}R.exports=x},rfSb:function(R,D,i){var y=i("T4UG"),p=i("sdST"),x=i("L0Ub"),v=x.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,k){h.push({name:k,dataList:B})});for(var g=h.length,A=-1,b=-1,w=0;w<g;++w){var E=h[w].dataList.length;E>A&&(A=E,b=w)}for(var C=0;C<g;++C){if(C===b)continue;for(var _=h[C].name,T=0;T<A;++T){for(var S=h[b].dataList[T][0],O=h[C].dataList.length,I=-1,F=0;F<O;++F){var P=h[C].dataList[F][0];if(P===S){I=F;break}}I===-1&&(r[s]=[],r[s][0]=S,r[s][1]=0,r[s][2]=_,s++)}}return r},getInitialData:function(r,s){for(var c=s.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],h=c.get("type"),g=f.filter(r.data,function(S){return S[2]!==void 0}),A=this.fixData(g||[]),b=[],w=this.nameMap=f.createHashMap(),E=0,C=0;C<A.length;++C)b.push(A[C][a]),w.get(A[C][a])||(w.set(A[C][a],E),E++);var _=p(A,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:v(h)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),T=new m(_,this);return T.initData(A),T},getLayerSeries:function(){for(var r=this.getData(),s=r.count(),c=[],h=0;h<s;++h)c[h]=h;var g=r.mapDimension("single"),A=l(c,function(w){return r.get("name",w)}),b=[];return A.buckets.each(function(w,E){w.sort(function(C,_){return r.get(g,C)-r.get(g,_)}),b.push({name:E,indices:w})}),b},getAxisTooltipData:function(r,s,c){f.isArray(r)||(r=r?[r]:[]);for(var h=this.getData(),g=this.getLayerSeries(),A=[],b=g.length,w,E=0;E<b;++E){for(var C=Number.MAX_VALUE,_=-1,T=g[E].indices.length,S=0;S<T;++S){var O=h.get(r[0],g[E].indices[S]),I=Math.abs(O-s);I<=C&&(w=O,C=I,_=g[E].indices[S])}A.push(_)}return{dataIndices:A,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;R.exports=u},rkZ5:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("ProS"),v=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=x.extendChartView({type:"lines",init:function(){},render:function(u,r,s){var c=u.getData(),h=this._updateLineDraw(c,u),g=u.get("zlevel"),A=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)&&A&&(w||b.configLayer(g,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(A/10+.9,1),0)})),h.updateData(c);var E=u.get("clip",!0)&&a(u.coordinateSystem,!1,u);E?this.group.setClipPath(E):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,A=g.large;return(!s||c!==this._hasEffet||h!==this._isPolyline||A!==this._isLargeDraw)&&(s&&s.remove(),s=this._lineDraw=A?new o:new v(h?c?l:d:c?m:f),this._hasEffet=c,this._isPolyline=h,this._isLargeDraw=A,this.group.removeAll()),this.group.add(s.group),s},_showEffect:function(u){return!!u.get("effect.show")},_clearLayer:function(u){var r=u.getZr(),s=r.painter.getType()==="svg";!s&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(u,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},dispose:function(){}});R.exports=e},rmlV:function(R,D,i){var y=i("y+Vt"),p=y.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(v,m){var f=.5522848,d=m.cx,l=m.cy,o=m.rx,n=m.ry,t=o*f,a=n*f;v.moveTo(d-o,l),v.bezierCurveTo(d-o,l-a,d-t,l-n,d,l-n),v.bezierCurveTo(d+t,l-n,d+o,l-a,d+o,l),v.bezierCurveTo(d+o,l+a,d+t,l+n,d,l+n),v.bezierCurveTo(d-t,l+n,d-o,l+a,d-o,l),v.closePath()}});R.exports=p},rnVJ:function(R,D,i){var y=i("bYtY"),p=["rect","polygon","keep","clear"];function x(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),v(a),f&&!a.length&&a.push.apply(a,p)}function v(m){var f={};y.each(m,function(d){f[d]=1}),m.length=0,y.each(f,function(d,l){m.push(l)})}R.exports=x},rwxt:function(R,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 x(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 v(d,l,o){return l&&x(d.prototype,l),o&&x(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 v(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(R,D,i){i("SMc4"),i("8nMs")},s2MQ:function(R,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(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("IwbS"),v=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=x.Group,s=x.Rect,c=p.each,h=3,g=["label"],A=["emphasis","label"],b=["upperLabel"],w=["emphasis","upperLabel"],E=10,C=1,_=2,T=t([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),S=function(B){var k=T(B);return k.stroke=k.fill=k.lineWidth=null,k},O=y.extendChartView({type:"treemap",init:function(B,k){this._containerGroup,this._storage=I(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(B,k,G,M){var j=k.findComponents({mainType:"series",subType:"treemap",query:M});if(p.indexOf(j,B)<0)return;this.seriesModel=B,this.api=G,this.ecModel=k;var K=["treemapZoomToNode","treemapRootToNode"],z=m.retrieveTargetInfo(M,K,B),V=M&&M.type,Q=B.layoutInfo,X=!this._oldTree,te=this._storage,$=V==="treemapRootToNode"&&z&&te?{rootNodeGroup:te.nodeGroup[z.node.getRawIndex()],direction:M.direction}:null,le=this._giveContainerGroup(Q),re=this._doRender(le,B,$);!X&&(!V||V==="treemapZoomToNode"||V==="treemapRootToNode")?this._doAnimation(le,re,B,$):re.renderFinally(),this._resetController(G),this._renderBreadcrumb(B,G,z)},_giveContainerGroup:function(B){var k=this._containerGroup;return k||(k=this._containerGroup=new r,this._initEvents(k),this.group.add(k)),k.attr("position",[B.x,B.y]),k},_doRender:function(B,k,G){var M=k.getData().tree,j=this._oldTree,K=I(),z=I(),V=this._storage,Q=[],X=p.curry(F,k,z,V,G,K,Q);$(M.root?[M.root]:[],j&&j.root?[j.root]:[],B,M===j||!j,0);var te=le(V);return this._oldTree=M,this._storage=z,{lastsForAnimation:K,willDeleteEls:te,renderFinally:re};function $(Se,Re,Pe,Je,Ge){Je?(Re=Se,c(Se,function(ae,lt){!ae.isRemoved()&&Ue(lt,lt)})):new v(Re,Se,ct,ct).add(Ue).update(Ue).remove(p.curry(Ue,null)).execute();function ct(ae){return ae.getId()}function Ue(ae,lt){var pe=ae!=null?Se[ae]:null,J=lt!=null?Re[lt]:null,Y=X(pe,J,Pe,Ge);Y&&$(pe&&pe.viewChildren||[],J&&J.viewChildren||[],Y,Je,Ge+1)}}function le(Se){var Re=I();return Se&&c(Se,function(Pe,Je){var Ge=Re[Je];c(Pe,function(ct){ct&&(Ge.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,k,G,M){if(!G.get("animation"))return;var j=G.get("animationDurationUpdate"),K=G.get("animationEasing"),z=n.createWrap();c(k.willDeleteEls,function(V,Q){c(V,function(X,te){if(X.invisible)return;var $=X.parent,le;if(M&&M.direction==="drillDown")le=$===M.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&&z.add(X,le,j,K)})}),c(this._storage,function(V,Q){c(V,function(X,te){var $=k.lastsForAnimation[Q][te],le={};if(!$)return;Q==="nodeGroup"?$.old&&(le.position=X.position.slice(),X.attr("position",$.old)):($.old&&(le.shape=p.extend({},X.shape),X.setShape($.old)),$.fadein?(X.setStyle("opacity",0),le.style={opacity:1}):X.style.opacity!==1&&(le.style={opacity:1})),z.add(X,le,j,K)})},this),this._state="animating",z.done(u(function(){this._state="ready",k.renderFinally()},this)).start()},_resetController:function(B){var k=this._controller;k||(k=this._controller=new d(B.getZr()),k.enable(this.seriesModel.get("roam")),k.on("pan",u(this._onPan,this)),k.on("zoom",u(this._onZoom,this)));var G=new l(0,0,B.getWidth(),B.getHeight());k.setPointerChecker(function(M,j,K){return G.contain(j,K)})},_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 k=this.seriesModel.getData().tree.root;if(!k)return;var G=k.getLayout();if(!G)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:G.x+B.dx,y:G.y+B.dy,width:G.width,height:G.height}})}},_onZoom:function(B){var k=B.originX,G=B.originY;if(this._state!=="animating"){var M=this.seriesModel.getData().tree.root;if(!M)return;var j=M.getLayout();if(!j)return;var K=new l(j.x,j.y,j.width,j.height),z=this.seriesModel.layoutInfo;k-=z.x,G-=z.y;var V=o.create();o.translate(V,V,[-k,-G]),o.scale(V,V,[B.scale,B.scale]),o.translate(V,V,[k,G]),K.applyTransform(V),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:K.x,y:K.y,width:K.width,height:K.height}})}},_initEvents:function(B){B.on("click",function(k){if(this._state!=="ready")return;var G=this.seriesModel.get("nodeClick",!0);if(!G)return;var M=this.findTarget(k.offsetX,k.offsetY);if(!M)return;var j=M.node;if(j.getLayout().isLeafRoot)this._rootToNode(M);else if(G==="zoomToNode")this._zoomToNode(M);else if(G==="link"){var K=j.hostTree.data.getItemModel(j.dataIndex),z=K.get("link",!0),V=K.get("target",!0)||"blank";z&&e(z,V)}},this)},_renderBreadcrumb:function(B,k,G){G||(G=B.get("leafDepth",!0)!=null?{node:B.getViewRoot()}:this.findTarget(k.getWidth()/2,k.getHeight()/2),G||(G={node:B.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new f(this.group))).render(B,k,G.node,u(M,this));function M(j){this._state!=="animating"&&(m.aboveViewRoot(B.getViewRoot(),j)?this._rootToNode({node:j}):this._zoomToNode({node:j}))}},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=I(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(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,k){var G,M=this.seriesModel.getViewRoot();return M.eachNode({attr:"viewChildren",order:"preorder"},function(j){var K=this._storage.background[j.getRawIndex()];if(K){var z=K.transformCoordToLocal(B,k),V=K.shape;if(V.x<=z[0]&&z[0]<=V.x+V.width&&V.y<=z[1]&&z[1]<=V.y+V.height)G={node:j,offsetX:z[0],offsetY:z[1]};else return!1}},this),G}});function I(){return{nodeGroup:[],background:[],content:[]}}function F(B,k,G,M,j,K,z,V,Q,X){if(!z)return;var te=z.getLayout(),$=B.getData();if($.setItemGraphicEl(z.dataIndex,null),!te||!te.isInView)return;var le=te.width,re=te.height,Se=te.borderWidth,Re=te.invisible,Pe=z.getRawIndex(),Je=V&&V.getRawIndex(),Ge=z.viewChildren,ct=te.upperHeight,Ue=Ge&&Ge.length,ae=z.getModel("itemStyle"),lt=z.getModel("emphasis.itemStyle"),pe=ye("nodeGroup",r);if(!pe)return;if(Q.add(pe),pe.attr("position",[te.x||0,te.y||0]),pe.__tmNodeWidth=le,pe.__tmNodeHeight=re,te.isAboveViewRoot)return pe;var J=z.getModel(),Y=ye("background",s,X,C);if(Y&&fe(pe,Y,Ue&&te.upperLabelHeight),Ue)x.isHighDownDispatcher(pe)&&x.setAsHighDownDispatcher(pe,!1),Y&&(x.setAsHighDownDispatcher(Y,!0),$.setItemGraphicEl(z.dataIndex,Y));else{var ee=ye("content",s,X,_);ee&&we(pe,ee),Y&&x.isHighDownDispatcher(Y)&&x.setAsHighDownDispatcher(Y,!1),x.setAsHighDownDispatcher(pe,!0),$.setItemGraphicEl(z.dataIndex,pe)}return pe;function fe(gt,at,Fe){if(at.dataIndex=z.dataIndex,at.seriesIndex=B.seriesIndex,at.setShape({x:0,y:0,width:le,height:re}),Re)Ce(at);else{at.invisible=!1;var mt=z.getVisual("borderColor",!0),et=lt.get("borderColor"),St=S(ae);St.fill=mt;var jt=T(lt);if(jt.fill=et,Fe){var Mt=le-2*Se;_e(St,jt,mt,Mt,ct,{x:Se,y:0,width:Mt,height:ct})}else St.text=jt.text=null;at.setStyle(St),x.setElementHoverStyle(at,jt)}gt.add(at)}function we(gt,at){at.dataIndex=z.dataIndex,at.seriesIndex=B.seriesIndex;var Fe=Math.max(le-2*Se,0),mt=Math.max(re-2*Se,0);if(at.culling=!0,at.setShape({x:Se,y:Se,width:Fe,height:mt}),Re)Ce(at);else{at.invisible=!1;var et=z.getVisual("color",!0),St=S(ae);St.fill=et;var jt=T(lt);_e(St,jt,et,Fe,mt),at.setStyle(St),x.setElementHoverStyle(at,jt)}gt.add(at)}function Ce(gt){!gt.invisible&&K.push(gt)}function _e(gt,at,Fe,mt,et,St){var jt=J.get("name"),Mt=J.getModel(St?b:g),Ot=J.getModel(St?w:A),Bt=Mt.getShallow("show");x.setLabelStyle(gt,at,Mt,Ot,{defaultText:Bt?jt:null,autoColor:Fe,isRectText:!0,labelFetcher:B,labelDataIndex:z.dataIndex,labelProp:St?"upperLabel":"label"}),he(gt,St,te),he(at,St,te),St&&(gt.textRect=p.clone(St)),gt.truncate=Bt&&Mt.get("ellipsis")?{outerWidth:mt,outerHeight:et,minChar:2}:null}function he(gt,at,Fe){var mt=gt.text;if(!at&&Fe.isLeafRoot&&mt!=null){var et=B.get("drillDownIcon",!0);gt.text=et?et+" "+mt:mt}}function ye(gt,at,Fe,mt){var et=Je!=null&&G[gt][Je],St=j[gt];return et?(G[gt][Je]=null,Le(St,et,gt)):Re||(et=new at({z:P(Fe,mt)}),et.__tmDepth=Fe,et.__tmStorageName=gt,tt(St,et,gt)),k[gt][Pe]=et}function Le(gt,at,Fe){var mt=gt[Pe]={};mt.old=Fe==="nodeGroup"?at.position.slice():p.extend({},at.shape)}function tt(gt,at,Fe){var mt=gt[Pe]={},et=z.parentNode;if(et&&(!M||M.direction==="drillDown")){var St=0,jt=0,Mt=j.background[et.getRawIndex()];!M&&Mt&&Mt.old&&(St=Mt.old.width,jt=Mt.old.height),mt.old=Fe==="nodeGroup"?[0,jt]:{x:St,y:jt,width:0,height:0}}mt.fadein=Fe!=="nodeGroup"}}function P(B,k){var G=B*E+k;return(G-1)/G}R.exports=O},sAZ8:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("+rIm"),v=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 v(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,A=e.getAreaSelectStyle(),b=A.width,w=e.axis.dim,E=g.getAxisLayout(w),C=p.extend({strokeContainThreshold:b},E),_=new x(e,C);p.each(d,_.add,_),this._axisGroup.add(_.getGroup()),this._refreshBrushController(C,A,e,h,b,r);var T=s&&s.animation===!1?null:e;f.groupTransition(c,this._axisGroup,T)},_refreshBrushController:function(e,u,r,s,c,h){var g=r.axis.getExtent(),A=g[1]-g[0],b=Math.min(30,Math.abs(A)*.1),w=f.BoundingRect.create({x:g[0],y:-c/2,width:A,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;R.exports=a},sE09:function(R,D,i){},sEf8:function(R,D){function i(y){return function(p){return y(p)}}R.exports=i},sGsY:function(R,D,i){"use strict";var y=i("lSNA"),p=i.n(y),x=i("pVnL"),v=i.n(x),m=i("q1tI"),f=i("TSYQ"),d=i.n(f),l=i("H84U"),o=i("B6l+"),n=i.n(o),t=function(z){var V=z.value,Q=z.formatter,X=z.precision,te=z.decimalSeparator,$=z.groupSeparator,le=$===void 0?"":$,re=z.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],Ge=Pe[2]||"0",ct=Pe[4]||"";Ge=Ge.replace(/\B(?=(\d{3})+(?!\d))/g,le),typeof X=="number"&&(ct=n()(ct,X,"0").slice(0,X)),ct&&(ct="".concat(te).concat(ct)),Se=[m.createElement("span",{key:"int",className:"".concat(re,"-content-value-int")},Je,Ge),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(z){var V=z.prefixCls,Q=z.className,X=z.style,te=z.valueStyle,$=z.value,le=$===void 0?0:$,re=z.title,Se=z.valueRender,Re=z.prefix,Pe=z.suffix,Je=z.direction,Ge=z.onMouseEnter,ct=z.onMouseLeave,Ue=m.createElement(a,v()({},z,{value:le})),ae=d()(V,Q,p()({},"".concat(V,"-rtl"),Je==="rtl"));return m.createElement("div",{className:ae,style:X,onMouseEnter:Ge,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),A=i("7W2i"),b=i.n(A),w=i("LQ03"),E=i.n(w),C=i("J4zp"),_=i.n(C),T=i("QQZ/"),S=i.n(T),O=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function I(K,z){var V=K,Q=/\[[^\]]*]/g,X=(z.match(Q)||[]).map(function(re){return re.slice(1,-1)}),te=z.replace(Q,"[]"),$=O.reduce(function(re,Se){var Re=_()(Se,2),Pe=Re[0],Je=Re[1];if(re.indexOf(Pe)!==-1){var Ge=Math.floor(V/Je);return V-=Ge*Je,re.replace(new RegExp("".concat(Pe,"+"),"g"),function(ct){var Ue=ct.length;return S()(Ge.toString(),Ue,"0")})}return re},te),le=0;return $.replace(Q,function(){var re=X[le];return le+=1,re})}function F(K,z){var V=z.format,Q=V===void 0?"":V,X=new Date(K).getTime(),te=Date.now(),$=Math.max(X-te,0);return I($,Q)}var P=i("0n0R"),B=1e3/30;function k(K){return new Date(K).getTime()}var G=function(K){b()(V,K);var z=E()(V);function V(){var Q;return c()(this,V),Q=z.apply(this,arguments),Q.syncTimer=function(){var X=Q.props.value,te=k(X);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 X=Q.props,te=X.onFinish,$=X.value;if(Q.countdownId){clearInterval(Q.countdownId),Q.countdownId=void 0;var le=k($);te&&le<Date.now()&&te()}},Q.formatCountdown=function(X,te){var $=Q.props.format;return F(X,v()(v()({},te),{format:$}))},Q.valueRender=function(X){return Object(P.a)(X,{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,v()({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),V}(m.Component);G.defaultProps={format:"HH:mm:ss"};var M=G;r.Countdown=M;var j=D.a=r},"sK/D":function(R,D,i){var y=i("IwbS"),p=i("OELB"),x=p.round;function v(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:x(d.cx,1),cy:x(d.cy,1),r0:x(n.r0,1),r:x(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 v(d,l,o)}else return null;return null}D.createGridClipPath=v,D.createPolarClipPath=m,D.createClipPath=f},sKgW:function(R,D){var i=9007199254740991,y=Math.floor;function p(x,v){var m="";if(!x||v<1||v>i)return m;do v%2&&(m+=x),v=y(v/2),v&&(x+=x);while(v);return m}R.exports=p},sPJy:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("AOa7"),v=i.n(x),m=i("lUTK"),f=i("qVdP")},sPtV:function(R,D,i){"use strict";i.d(D,"a",function(){return v});var y=i("q1tI"),p=i.n(y),x=i("hkKa");function v(m){var f=y.useRef(m),d=Object(x.a)();return[function(){return f.current},function(l){f.current=l,d()}]}},sRwP:function(R,D,i){i("jsU+"),i("2548"),i("Tp9H"),i("06DH"),i("dnwI"),i("fE02"),i("33Ds")},"sS/r":function(R,D,i){var y=i("4fz+"),p=i("iRjW"),x=i("Yl7c"),v=function(){this.group=new y,this.uid=p.getUID("viewComponent")};v.prototype={constructor:v,init:function(d,l){},render:function(d,l,o,n){},dispose:function(){},filterForExposedEvent:null};var m=v.prototype;m.updateView=m.updateLayout=m.updateVisual=function(d,l,o,n){},x.enableClassExtend(v),x.enableClassManagement(v,{registerWhenExtend:!0});var f=v;R.exports=f},"sW+o":function(R,D,i){var y=i("SrGk"),p=i("bYtY"),x=i("SUKs"),v=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 x("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{x("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=v.parse(e)[3],r=v.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;R.exports=f},sdST:function(R,D,i){var y=i("hi0g");function p(x,v){return v=v||{},y(v.coordDimensions||[],x,{dimsDef:v.dimensionsDefine||x.dimensionsDefine,encodeDef:v.encodeDefine||x.encodeDefine,dimCount:v.dimensionsCount,encodeDefaulter:v.encodeDefaulter,generateCoord:v.generateCoord,generateCoordCount:v.generateCoordCount})}R.exports=p},seXi:function(R,D,i){var y=i("qZTm"),p=1,x=Object.prototype,v=x.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:v.call(d,h)))return!1}var g=t.get(f),A=t.get(d);if(g&&A)return g==d&&A==f;var b=!0;t.set(f,d),t.set(d,f);for(var w=a;++c<u;){h=e[c];var E=f[h],C=d[h];if(o)var _=a?o(C,E,h,d,f,t):o(E,C,h,f,d,t);if(!(_===void 0?E===C||n(E,C,l,o,t):_)){b=!1;break}w||(w=h=="constructor")}if(b&&!w){var T=f.constructor,S=d.constructor;T!=S&&"constructor"in f&&"constructor"in d&&!(typeof T=="function"&&T instanceof T&&typeof S=="function"&&S instanceof S)&&(b=!1)}return t.delete(f),t.delete(d),b}R.exports=m},shjB:function(R,D){var i=9007199254740991;function y(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=i}R.exports=y},sjKO:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=x;var y=30,p=12;function x(v,m){var f,d,l,o,n,t,a,e,u,r,s,c,h,g,A,b,w,E,C,_,T,S,O,I,F;f=v.state,d=v.next_in,I=v.input,l=d+(v.avail_in-5),o=v.next_out,F=v.output,n=o-(m-v.avail_out),t=o+(v.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,A=f.distcode,b=(1<<f.lenbits)-1,w=(1<<f.distbits)-1;e:do{h<15&&(c+=I[d++]<<h,h+=8,c+=I[d++]<<h,h+=8),E=g[c&b];t:for(;;){if(C=E>>>24,c>>>=C,h-=C,C=E>>>16&255,C===0)F[o++]=E&65535;else if(C&16){_=E&65535,C&=15,C&&(h<C&&(c+=I[d++]<<h,h+=8),_+=c&(1<<C)-1,c>>>=C,h-=C),h<15&&(c+=I[d++]<<h,h+=8,c+=I[d++]<<h,h+=8),E=A[c&w];r:for(;;){if(C=E>>>24,c>>>=C,h-=C,C=E>>>16&255,C&16){if(T=E&65535,C&=15,h<C&&(c+=I[d++]<<h,h+=8,h<C&&(c+=I[d++]<<h,h+=8)),T+=c&(1<<C)-1,T>a){v.msg="invalid distance too far back",f.mode=y;break e}if(c>>>=C,h-=C,C=o-n,T>C){if(C=T-C,C>u&&f.sane){v.msg="invalid distance too far back",f.mode=y;break e}if(S=0,O=s,r===0){if(S+=e-C,C<_){_-=C;do F[o++]=s[S++];while(--C);S=o-T,O=F}}else if(r<C){if(S+=e+r-C,C-=r,C<_){_-=C;do F[o++]=s[S++];while(--C);if(S=0,r<_){C=r,_-=C;do F[o++]=s[S++];while(--C);S=o-T,O=F}}}else if(S+=r-C,C<_){_-=C;do F[o++]=s[S++];while(--C);S=o-T,O=F}for(;_>2;)F[o++]=O[S++],F[o++]=O[S++],F[o++]=O[S++],_-=3;_&&(F[o++]=O[S++],_>1&&(F[o++]=O[S++]))}else{S=o-T;do F[o++]=F[S++],F[o++]=F[S++],F[o++]=F[S++],_-=3;while(_>2);_&&(F[o++]=F[S++],_>1&&(F[o++]=F[S++]))}}else if((C&64)===0){E=A[(E&65535)+(c&(1<<C)-1)];continue r}else{v.msg="invalid distance code",f.mode=y;break e}break}}else if((C&64)===0){E=g[(E&65535)+(c&(1<<C)-1)];continue t}else if(C&32){f.mode=p;break e}else{v.msg="invalid literal/length code",f.mode=y;break e}break}}while(d<l&&o<t);_=h>>3,d-=_,h-=_<<3,c&=(1<<h)-1,v.next_in=d,v.next_out=o,v.avail_in=d<l?5+(l-d):5-(d-l),v.avail_out=o<t?257+(t-o):257-(o-t),f.hold=c,f.bits=h;return}},szbU:function(R,D,i){var y=i("bYtY"),p=y.each;function x(m){var f=m&&m.visualMap;y.isArray(f)||(f=f?[f]:[]),p(f,function(d){if(!d)return;v(d,"splitList")&&!v(d,"pieces")&&(d.pieces=d.splitList,delete d.splitList);var l=d.pieces;l&&y.isArray(l)&&p(l,function(o){y.isObject(o)&&(v(o,"start")&&!v(o,"min")&&(o.min=o.start),v(o,"end")&&!v(o,"max")&&(o.max=o.end))})})}function v(m,f){return m&&m.hasOwnProperty&&m.hasOwnProperty(f)}R.exports=x},t23M:function(R,D,i){"use strict";var y=i("wx14"),p=i("q1tI"),x=i("Zm9Q"),v=i("Kwbf"),m=i("VTBJ"),f=i("c+Xe"),d=i("m+aA"),l=i("bdgK"),o=new Map;function n(F){F.forEach(function(P){var B,k=P.target;(B=o.get(k))===null||B===void 0||B.forEach(function(G){return G(k)})})}var t=new l.default(n),a=null,e=null;function u(F,P){o.has(F)||(o.set(F,new Set),t.observe(F)),o.get(F).add(P)}function r(F,P){o.has(F)&&(o.get(F).delete(P),o.get(F).size||(t.unobserve(F),o.delete(F)))}var s=i("1OyB"),c=i("vuIU"),h=i("Ji7U"),g=i("LK+K"),A=function(F){Object(h.a)(B,F);var P=Object(g.a)(B);function B(){return Object(s.a)(this,B),P.apply(this,arguments)}return Object(c.a)(B,[{key:"render",value:function(){return this.props.children}}]),B}(p.Component),b=p.createContext(null);function w(F){var P=F.children,B=F.onBatchResize,k=p.useRef(0),G=p.useRef([]),M=p.useContext(b),j=p.useCallback(function(K,z,V){k.current+=1;var Q=k.current;G.current.push({size:K,element:z,data:V}),Promise.resolve().then(function(){Q===k.current&&(B==null||B(G.current),G.current=[])}),M==null||M(K,z,V)},[B,M]);return p.createElement(b.Provider,{value:j},P)}function E(F,P){var B=F.children,k=F.disabled,G=p.useRef(null),M=p.useRef(null),j=p.useContext(b),K=typeof B=="function",z=K?B(G):B,V=p.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Q=!K&&p.isValidElement(z)&&Object(f.c)(z),X=Q?z.ref:null,te=p.useMemo(function(){return Object(f.a)(X,G)},[X,G]),$=function(){return Object(d.a)(G.current)||Object(d.a)(M.current)};p.useImperativeHandle(P,function(){return $()});var le=p.useRef(F);le.current=F;var re=p.useCallback(function(Se){var Re=le.current,Pe=Re.onResize,Je=Re.data,Ge=Se.getBoundingClientRect(),ct=Ge.width,Ue=Ge.height,ae=Se.offsetWidth,lt=Se.offsetHeight,pe=Math.floor(ct),J=Math.floor(Ue);if(V.current.width!==pe||V.current.height!==J||V.current.offsetWidth!==ae||V.current.offsetHeight!==lt){var Y={width:pe,height:J,offsetWidth:ae,offsetHeight:lt};V.current=Y;var ee=ae===Math.round(ct)?ct:ae,fe=lt===Math.round(Ue)?Ue:lt,we=Object(m.a)(Object(m.a)({},Y),{},{offsetWidth:ee,offsetHeight:fe});j==null||j(we,Se,Je),Pe&&Promise.resolve().then(function(){Pe(we,Se)})}},[]);return p.useEffect(function(){var Se=$();return Se&&!k&&u(Se,re),function(){return r(Se,re)}},[G.current,k]),p.createElement(A,{ref:M},Q?p.cloneElement(z,{ref:te}):z)}var C=p.forwardRef(E),_=C,T="rc-observer-key";function S(F,P){var B=F.children,k=typeof B=="function"?[B]:Object(x.a)(B);return k.map(function(G,M){var j=(G==null?void 0:G.key)||"".concat(T,"-").concat(M);return p.createElement(_,Object(y.a)({},F,{key:j,ref:M===0?P:void 0}),G)})}var O=p.forwardRef(S);O.Collection=w;var I=D.a=O},t3Fx:function(R,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 A=h[g];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(c,A.key,A)}}return function(c,h,g){return h&&s(c.prototype,h),g&&s(c,g),c}}(),x=i("q1tI"),v=t(x),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(A){console.warn(A)}g.echartsLib.dispose(g.echartsElement)}},g.rerender=function(){var A=g.props,b=A.onEvents,w=A.onChartReady,E=g.renderEchartDom();g.bindEvents(E,b||{}),typeof w=="function"&&g.props.onChartReady(E),g.echartsElement&&(0,o.bind)(g.echartsElement,function(){try{E.resize()}catch(C){console.warn(C)}})},g.bindEvents=function(A,b){var w=function(_,T){typeof _=="string"&&typeof T=="function"&&A.on(_,function(S){T(S,A)})};for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&w(E,b[E])},g.renderEchartDom=function(){var A=g.getEchartsInstance();return A.setOption(g.props.option,g.props.notMerge||!1,g.props.lazyUpdate||!1),g.props.showLoading?A.showLoading(g.props.loadingOption||null):A.hideLoading(),A},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 A=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if((0,l.default)((0,n.pick)(this.props,A),(0,n.pick)(g,A)))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,A=this.props,b=A.style,w=A.className,E=y({height:300},b);return v.default.createElement("div",{ref:function(_){g.echartsElement=_},style:E,className:"echarts-for-react "+w})}}]),c}(x.Component);D.default=r,r.propTypes={option:f.default.object.isRequired,echarts:f.default.object,notMerge:f.default.bool,lazyUpdate:f.default.bool,style:f.default.object,className:f.default.string,theme:f.default.oneOfType([f.default.string,f.default.object]),onChartReady:f.default.func,showLoading:f.default.bool,loadingOption:f.default.object,onEvents:f.default.object,opts:f.default.shape({devicePixelRatio:f.default.number,renderer:f.default.oneOf(["canvas","svg"]),width:f.default.oneOfType([f.default.number,f.default.oneOf([null,void 0,"auto"])]),height:f.default.oneOfType([f.default.number,f.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:f.default.func},r.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},tBnm:function(R,D,i){var y=i("bYtY"),p=i("IwbS"),x=i("Qxkt"),v=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=v.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(A){return new p.Line({shape:d(a,[h,h+c],A.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)],A=[],b=0;b<u.length;b++)for(var w=0;w<u[b].length;w++)A.push(new p.Line({shape:d(a,[g,g+h],u[b][w].coord)}));this.group.add(p.mergePath(A,{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"),A=t.get("triggerEvent");y.each(s,function(b,w){var E=h,C=b.tickValue,_=r[l(a)],T=a.coordToPoint([_+g,b.coord]),S=a.cx,O=a.cy,I=Math.abs(T[0]-S)/_<.3?"center":T[0]>S?"left":"right",F=Math.abs(T[1]-O)/_<.3?"middle":T[1]>O?"top":"bottom";c&&c[C]&&c[C].textStyle&&(E=new x(c[C].textStyle,h,h.ecModel));var P=new p.Text({silent:m.isLabelSilent(t)});this.group.add(P),p.setTextStyle(P.style,E,{x:T[0],y:T[1],textFill:E.getTextColor()||t.get("axisLine.lineStyle.color"),text:b.formattedLabel,textAlign:I,textVerticalAlign:F}),A&&(P.eventData=m.makeAxisEventDataBase(t),P.eventData.targetType="axisLabel",P.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 A=[],b=0;b<e.length;b++){var w=g++%h.length;A[w]=A[w]||[],A[w].push(new p.Line({shape:d(a,r,e[b].coord)}))}for(var b=0;b<A.length;b++)this.group.add(p.mergePath(A[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 A=0;A<u[g].length;A++)h.push(new p.Line({shape:d(a,r,u[g][A].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 A=[],b=Math.PI/180,w=-e[0].coord*b,E=Math.min(r[0],r[1]),C=Math.max(r[0],r[1]),_=t.get("clockwise"),T=1;T<e.length;T++){var S=g++%h.length;A[S]=A[S]||[],A[S].push(new p.Sector({shape:{cx:a.cx,cy:a.cy,r0:E,r:C,startAngle:w,endAngle:-e[T].coord*b,clockwise:_},silent:!0})),w=-e[T].coord*b}for(var T=0;T<A.length;T++)this.group.add(p.mergePath(A[T],{style:y.defaults({fill:h[T%h.length]},c.getAreaStyle()),silent:!0}))}});R.exports=n},tMB7:function(R,D,i){var y=i("y1pI");function p(x){var v=this.__data__,m=y(v,x);return m<0?void 0:v[m][1]}R.exports=p},tSko:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="PlusOutlined";var n=v.forwardRef(o);D.default=n},tadb:function(R,D,i){var y=i("Cwc5"),p=i("Kz5y"),x=y(p,"DataView");R.exports=x},tceW:function(R,D,i){var y=i("KCsZ"),p=y([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),x={getBarItemStyle:function(v){var m=p(this,v);if(this.getBorderLineDash){var f=this.getBorderLineDash();f&&(m.lineDash=f)}return m}};R.exports=x},tkwv:function(R,D,i){"use strict";var y=Array.isArray,p=Object.keys,x=Object.prototype.hasOwnProperty;R.exports=function v(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(!v(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(!x.call(f,s[o]))return!1;for(o=n;o--!==0;)if(t=s[o],!v(m[t],f[t]))return!1;return!0}return m!==m&&f!==f}},txkQ:function(R,D,i){var y=i("aX58");D.zrender=y;var p=i("Fofx");D.matrix=p;var x=i("QBsz");D.vector=x;var v=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={};v.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(A){h[A]=v[A]});var g={};v.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(A){g[A]=f[A]}),D.parseGeoJson=c,D.util=h,D.graphic=g},u3DP:function(R,D,i){var y=i("6GrX"),p=i("OELB"),x=p.parsePercent,v=Math.PI/180;function m(o,n,t,a,e,u,r,s,c,h){o.sort(function(I,F){return I.y-F.y});function g(I,F,P,B){for(var k=I;k<F&&!(o[k].y+P>c+r);k++)if(o[k].y+=P,k>I&&k+1<F&&o[k+1].y>o[k].y+o[k].height){A(k,P/2);return}A(F-1,P/2)}function A(I,F){for(var P=I;P>=0&&!(o[P].y-F<c);P--)if(o[P].y-=F,P>0&&o[P].y>o[P-1].y+o[P-1].height)break}function b(I,F,P,B,k,G){for(var M=(G>0,F?Number.MAX_VALUE:0),j=0,K=I.length;j<K;j++){if(I[j].labelAlignTo!=="none")continue;var z=Math.abs(I[j].y-B),V=I[j].len,Q=I[j].len2,X=z<k+V?Math.sqrt((k+V+Q)*(k+V+Q)-z*z):Math.abs(I[j].x-P);F&&X>=M&&(X=M-10),!F&&X<=M&&(X=M+10),I[j].x=P+X*G,M=X}}for(var w=0,E,C=o.length,_=[],T=[],S=0;S<C;S++){if(o[S].position==="outer"&&o[S].labelAlignTo==="labelLine"){var O=o[S].x-h;o[S].linePoints[1][0]+=O,o[S].x=h}E=o[S].y-w,E<0&&g(S,C,-E,e),w=o[S].y+o[S].height}r-w<0&&A(C-1,w-r);for(var S=0;S<C;S++)o[S].y>=t?T.push(o[S]):_.push(o[S]);b(_,!1,n,t,a,e),b(T,!0,n,t,a,e)}function f(o,n,t,a,e,u,r,s){for(var c=[],h=[],g=Number.MAX_VALUE,A=-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])):(A=Math.max(A,o[b].x),h.push(o[b]))}m(h,n,t,a,1,e,u,r,s,A),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 E=w.linePoints;if(E){var C=w.labelAlignTo==="edge",_=w.textRect.width,T;C?w.x<n?T=E[2][0]-w.labelDistance-r-w.labelMargin:T=r+e-w.labelMargin-E[2][0]-w.labelDistance:w.x<n?T=w.x-r-w.bleedMargin:T=r+e-w.x-w.bleedMargin,T<w.textRect.width&&(w.text=y.truncateText(w.text,T,w.font),w.labelAlignTo==="edge"&&(_=y.getWidth(w.text,w.font)));var S=E[1][0]-E[2][0];C?w.x<n?E[2][0]=r+w.labelMargin+_+w.labelDistance:E[2][0]=r+e-w.labelMargin-_-w.labelDistance:(w.x<n?E[2][0]=w.x+w.labelDistance:E[2][0]=w.x-w.labelDistance,E[1][0]=E[2][0]+S),E[1][1]=E[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,A=(o.get("minShowLabelAngle")||0)*v;r.each(function(b){var w=r.getItemLayout(b),E=r.getItemModel(b),C=E.getModel("label"),_=C.get("position")||E.get("emphasis.label.position"),T=C.get("distanceToLabelLine"),S=C.get("alignTo"),O=x(C.get("margin"),t),I=C.get("bleedMargin"),F=C.getFont(),P=E.getModel("labelLine"),B=P.get("length");B=x(B,t);var k=P.get("length2");if(k=x(k,t),w.angle<A)return;var G=(w.startAngle+w.endAngle)/2,M=Math.cos(G),j=Math.sin(G),K,z,V,Q;c=w.cx,h=w.cy;var X=o.getFormattedLabel(b,"normal")||r.getName(b),te=y.getBoundingRect(X,F,Q,"top"),$=_==="inside"||_==="inner";if(_==="center")K=w.cx,z=w.cy,Q="center";else{var le=($?(w.r+w.r0)/2*M:w.r*M)+c,re=($?(w.r+w.r0)/2*j:w.r*j)+h;if(K=le+M*3,z=re+j*3,!$){var Se=le+M*(B+n-w.r),Re=re+j*(B+n-w.r),Pe=Se+(M<0?-1:1)*k,Je=Re;S==="edge"?K=M<0?e+O:e+t-O:K=Pe+(M<0?-T:T),z=Je,V=[[le,re],[Se,Re],[Pe,Je]]}Q=$?"center":S==="edge"?M>0?"right":"left":M>0?"left":"right"}var Ge,ct=C.get("rotate");typeof ct=="number"?Ge=ct*(Math.PI/180):Ge=ct?M<0?-G+Math.PI:-G:0,g=!!Ge,w.label={x:K,y:z,position:_,height:te.height,len:B,len2:k,linePoints:V,textAlign:Q,verticalAlign:"middle",rotation:Ge,inside:$,labelDistance:T,labelAlignTo:S,labelMargin:O,bleedMargin:I,textRect:te,text:X,font:F},$||s.push(w.label)}),!g&&o.get("avoidLabelOverlap")&&f(s,c,h,n,t,a,e,u)}R.exports=l},u3os:function(R,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 x=function(f){var d=(0,y.getSensor)(f);(0,y.removeSensor)(d)};D.clear=x;var v="1.0.2";D.ver=v},u4NN:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="EyeOutlined";var n=v.forwardRef(o);D.default=n},u8Dt:function(R,D,i){var y=i("YESw"),p="__lodash_hash_undefined__",x=Object.prototype,v=x.hasOwnProperty;function m(f){var d=this.__data__;if(y){var l=d[f];return l===p?void 0:l}return v.call(d,f)?d[f]:void 0}R.exports=m},u9fO:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("b80e"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},uAnK:function(R,D,i){var y=i("bYtY"),p=i("Kagy"),x=i("KxfA"),v=x.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 E,C=b.get("name"),_="series."+(o>1?"multiple":"single")+".";E=h(C?_+"withName":_+"withoutName"),E=c(E,{seriesId:b.seriesIndex,seriesName:b.get("name"),seriesType:A(b.subType)});var T=b.getData();window.data=T,T.count()>n?E+=c(h("data.partialData"),{displayCnt:n}):E+=h("data.allData");for(var S=[],O=0;O<T.count();O++)if(O<n){var I=T.getName(O),F=v(T,O);S.push(c(h(I?"data.withName":"data.withoutName"),{name:I,value:F}))}E+=S.join(h("data.separator.middle"))+h("data.separator.end"),r.push(E)}}),e+=r.join(h("series.multiple.separator.middle"))+h("series.multiple.separator.end"),f.setAttribute("aria-label",e);function c(b,w){if(typeof b!="string")return b;var E=b;return y.each(w,function(C,_){E=E.replace(new RegExp("\\{\\s*"+_+"\\s*\\}","g"),C)}),E}function h(b){var w=l.get(b);if(w==null){for(var E=b.split("."),C=p.aria,_=0;_<E.length;++_)C=C[E[_]];return C}else return w}function g(){var b=d.getModel("title").option;return b&&b.length&&(b=b[0]),b&&b.text}function A(b){return p.series.typeNames[b]||"\u81EA\u5B9A\u4E49\u56FE"}}R.exports=m},uGsb:function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("MlIO"),i("1uat"))})(this,function(y){return function(){var p=y,x=p.x64,v=x.Word,m=x.WordArray,f=p.algo,d=f.SHA512,l=f.SHA384=d.extend({_doReset:function(){this._hash=new m.init([new v.init(3418070365,3238371032),new v.init(1654270250,914150663),new v.init(2438529370,812702999),new v.init(355462360,4144912697),new v.init(1731405415,4290775857),new v.init(2394180231,1750603025),new v.init(3675008525,1694076839),new v.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(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.pad.NoPadding={pad:function(){},unpad:function(){}},y.pad.NoPadding})},uK0f:function(R,D,i){(function(y,p){R.exports=p()})(this,function(){"use strict";function y(p,x,v){v=v||{},v.childrenKeyName=v.childrenKeyName||"children";var m=p||[],f=[],d=0;do{var l=m.filter(function(o){return x(o,d)})[0];if(!l)break;f.push(l),m=l[v.childrenKeyName]||[],d+=1}while(m.length>0);return f}return y})},uOyE:function(R,D,i){var y=i("ProS");y.registerAction({type:"brush",event:"brush"},function(p,x){x.eachComponent({mainType:"brush",query:p},function(v){v.setAreas(p.areas)})}),y.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),y.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},uQRt:function(R,D,i){R.exports=y;function y(){return i("gaXo"),{}}},uciX:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("wx14"),x=i("1OyB"),v=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 A(ae,lt,pe){return pe?ae[0]===lt[0]:ae[0]===lt[0]&&ae[1]===lt[1]}function b(ae,lt,pe){var J=ae[lt]||{};return Object(y.a)(Object(y.a)({},J),pe)}function w(ae,lt,pe,J){for(var Y=pe.points,ee=Object.keys(ae),fe=0;fe<ee.length;fe+=1){var we=ee[fe];if(A(ae[we].points,Y,J))return"".concat(lt,"-placement-").concat(we)}return""}var E=i("ODXe"),C=i("Ff2n"),_=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ae=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(ae)||/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(ae==null?void 0:ae.substr(0,4))},T=i("8XRh");function S(ae){var lt=ae.prefixCls,pe=ae.motion,J=ae.animation,Y=ae.transitionName;return pe||(J?{motionName:"".concat(lt,"-").concat(J)}:Y?{motionName:Y}:null)}function O(ae){var lt=ae.prefixCls,pe=ae.visible,J=ae.zIndex,Y=ae.mask,ee=ae.maskMotion,fe=ae.maskAnimation,we=ae.maskTransitionName;if(!Y)return null;var Ce={};return(ee||we||fe)&&(Ce=Object(y.a)({motionAppear:!0},S({motion:ee,prefixCls:lt,transitionName:we,animation:fe}))),o.createElement(T.b,Object(p.a)({},Ce,{visible:pe,removeOnLeave:!0}),function(_e){var he=_e.className;return o.createElement("div",{style:{zIndex:J},className:g()("".concat(lt,"-mask"),he)})})}var I=i("9mu1"),F=i("TNol"),P=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 lt};var ae,lt={},pe=Object.prototype,J=pe.hasOwnProperty,Y=Object.defineProperty||function(vt,rr,ur){vt[rr]=ur.value},ee=typeof Symbol=="function"?Symbol:{},fe=ee.iterator||"@@iterator",we=ee.asyncIterator||"@@asyncIterator",Ce=ee.toStringTag||"@@toStringTag";function _e(vt,rr,ur){return Object.defineProperty(vt,rr,{value:ur,enumerable:!0,configurable:!0,writable:!0}),vt[rr]}try{_e({},"")}catch(vt){_e=function(ur,mn,sr){return ur[mn]=sr}}function he(vt,rr,ur,mn){var sr=rr&&rr.prototype instanceof mt?rr:mt,xr=Object.create(sr.prototype),pr=new Wt(mn||[]);return Y(xr,"_invoke",{value:se(vt,ur,pr)}),xr}function ye(vt,rr,ur){try{return{type:"normal",arg:vt.call(rr,ur)}}catch(mn){return{type:"throw",arg:mn}}}lt.wrap=he;var Le="suspendedStart",tt="suspendedYield",gt="executing",at="completed",Fe={};function mt(){}function et(){}function St(){}var jt={};_e(jt,fe,function(){return this});var Mt=Object.getPrototypeOf,Ot=Mt&&Mt(Mt(dr([])));Ot&&Ot!==pe&&J.call(Ot,fe)&&(jt=Ot);var Bt=St.prototype=mt.prototype=Object.create(jt);function Ke(vt){["next","throw","return"].forEach(function(rr){_e(vt,rr,function(ur){return this._invoke(rr,ur)})})}function de(vt,rr){function ur(sr,xr,pr,Zt){var Ct=ye(vt[sr],vt,xr);if(Ct.type!=="throw"){var on=Ct.arg,Mn=on.value;return Mn&&Object(P.a)(Mn)=="object"&&J.call(Mn,"__await")?rr.resolve(Mn.__await).then(function(Xn){ur("next",Xn,pr,Zt)},function(Xn){ur("throw",Xn,pr,Zt)}):rr.resolve(Mn).then(function(Xn){on.value=Xn,pr(on)},function(Xn){return ur("throw",Xn,pr,Zt)})}Zt(Ct.arg)}var mn;Y(this,"_invoke",{value:function(xr,pr){function Zt(){return new rr(function(Ct,on){ur(xr,pr,Ct,on)})}return mn=mn?mn.then(Zt,Zt):Zt()}})}function se(vt,rr,ur){var mn=Le;return function(sr,xr){if(mn===gt)throw new Error("Generator is already running");if(mn===at){if(sr==="throw")throw xr;return{value:ae,done:!0}}for(ur.method=sr,ur.arg=xr;;){var pr=ur.delegate;if(pr){var Zt=ut(pr,ur);if(Zt){if(Zt===Fe)continue;return Zt}}if(ur.method==="next")ur.sent=ur._sent=ur.arg;else if(ur.method==="throw"){if(mn===Le)throw mn=at,ur.arg;ur.dispatchException(ur.arg)}else ur.method==="return"&&ur.abrupt("return",ur.arg);mn=gt;var Ct=ye(vt,rr,ur);if(Ct.type==="normal"){if(mn=ur.done?at:tt,Ct.arg===Fe)continue;return{value:Ct.arg,done:ur.done}}Ct.type==="throw"&&(mn=at,ur.method="throw",ur.arg=Ct.arg)}}}function ut(vt,rr){var ur=rr.method,mn=vt.iterator[ur];if(mn===ae)return rr.delegate=null,ur==="throw"&&vt.iterator.return&&(rr.method="return",rr.arg=ae,ut(vt,rr),rr.method==="throw")||ur!=="return"&&(rr.method="throw",rr.arg=new TypeError("The iterator does not provide a '"+ur+"' method")),Fe;var sr=ye(mn,vt.iterator,rr.arg);if(sr.type==="throw")return rr.method="throw",rr.arg=sr.arg,rr.delegate=null,Fe;var xr=sr.arg;return xr?xr.done?(rr[vt.resultName]=xr.value,rr.next=vt.nextLoc,rr.method!=="return"&&(rr.method="next",rr.arg=ae),rr.delegate=null,Fe):xr:(rr.method="throw",rr.arg=new TypeError("iterator result is not an object"),rr.delegate=null,Fe)}function qe(vt){var rr={tryLoc:vt[0]};1 in vt&&(rr.catchLoc=vt[1]),2 in vt&&(rr.finallyLoc=vt[2],rr.afterLoc=vt[3]),this.tryEntries.push(rr)}function me(vt){var rr=vt.completion||{};rr.type="normal",delete rr.arg,vt.completion=rr}function Wt(vt){this.tryEntries=[{tryLoc:"root"}],vt.forEach(qe,this),this.reset(!0)}function dr(vt){if(vt||vt===""){var rr=vt[fe];if(rr)return rr.call(vt);if(typeof vt.next=="function")return vt;if(!isNaN(vt.length)){var ur=-1,mn=function sr(){for(;++ur<vt.length;)if(J.call(vt,ur))return sr.value=vt[ur],sr.done=!1,sr;return sr.value=ae,sr.done=!0,sr};return mn.next=mn}}throw new TypeError(Object(P.a)(vt)+" is not iterable")}return et.prototype=St,Y(Bt,"constructor",{value:St,configurable:!0}),Y(St,"constructor",{value:et,configurable:!0}),et.displayName=_e(St,Ce,"GeneratorFunction"),lt.isGeneratorFunction=function(vt){var rr=typeof vt=="function"&&vt.constructor;return!!rr&&(rr===et||(rr.displayName||rr.name)==="GeneratorFunction")},lt.mark=function(vt){return Object.setPrototypeOf?Object.setPrototypeOf(vt,St):(vt.__proto__=St,_e(vt,Ce,"GeneratorFunction")),vt.prototype=Object.create(Bt),vt},lt.awrap=function(vt){return{__await:vt}},Ke(de.prototype),_e(de.prototype,we,function(){return this}),lt.AsyncIterator=de,lt.async=function(vt,rr,ur,mn,sr){sr===void 0&&(sr=Promise);var xr=new de(he(vt,rr,ur,mn),sr);return lt.isGeneratorFunction(rr)?xr:xr.next().then(function(pr){return pr.done?pr.value:xr.next()})},Ke(Bt),_e(Bt,Ce,"Generator"),_e(Bt,fe,function(){return this}),_e(Bt,"toString",function(){return"[object Generator]"}),lt.keys=function(vt){var rr=Object(vt),ur=[];for(var mn in rr)ur.push(mn);return ur.reverse(),function sr(){for(;ur.length;){var xr=ur.pop();if(xr in rr)return sr.value=xr,sr.done=!1,sr}return sr.done=!0,sr}},lt.values=dr,Wt.prototype={constructor:Wt,reset:function(rr){if(this.prev=0,this.next=0,this.sent=this._sent=ae,this.done=!1,this.delegate=null,this.method="next",this.arg=ae,this.tryEntries.forEach(me),!rr)for(var ur in this)ur.charAt(0)==="t"&&J.call(this,ur)&&!isNaN(+ur.slice(1))&&(this[ur]=ae)},stop:function(){this.done=!0;var rr=this.tryEntries[0].completion;if(rr.type==="throw")throw rr.arg;return this.rval},dispatchException:function(rr){if(this.done)throw rr;var ur=this;function mn(on,Mn){return pr.type="throw",pr.arg=rr,ur.next=on,Mn&&(ur.method="next",ur.arg=ae),!!Mn}for(var sr=this.tryEntries.length-1;sr>=0;--sr){var xr=this.tryEntries[sr],pr=xr.completion;if(xr.tryLoc==="root")return mn("end");if(xr.tryLoc<=this.prev){var Zt=J.call(xr,"catchLoc"),Ct=J.call(xr,"finallyLoc");if(Zt&&Ct){if(this.prev<xr.catchLoc)return mn(xr.catchLoc,!0);if(this.prev<xr.finallyLoc)return mn(xr.finallyLoc)}else if(Zt){if(this.prev<xr.catchLoc)return mn(xr.catchLoc,!0)}else{if(!Ct)throw new Error("try statement without catch or finally");if(this.prev<xr.finallyLoc)return mn(xr.finallyLoc)}}}},abrupt:function(rr,ur){for(var mn=this.tryEntries.length-1;mn>=0;--mn){var sr=this.tryEntries[mn];if(sr.tryLoc<=this.prev&&J.call(sr,"finallyLoc")&&this.prev<sr.finallyLoc){var xr=sr;break}}xr&&(rr==="break"||rr==="continue")&&xr.tryLoc<=ur&&ur<=xr.finallyLoc&&(xr=null);var pr=xr?xr.completion:{};return pr.type=rr,pr.arg=ur,xr?(this.method="next",this.next=xr.finallyLoc,Fe):this.complete(pr)},complete:function(rr,ur){if(rr.type==="throw")throw rr.arg;return rr.type==="break"||rr.type==="continue"?this.next=rr.arg:rr.type==="return"?(this.rval=this.arg=rr.arg,this.method="return",this.next="end"):rr.type==="normal"&&ur&&(this.next=ur),Fe},finish:function(rr){for(var ur=this.tryEntries.length-1;ur>=0;--ur){var mn=this.tryEntries[ur];if(mn.finallyLoc===rr)return this.complete(mn.completion,mn.afterLoc),me(mn),Fe}},catch:function(rr){for(var ur=this.tryEntries.length-1;ur>=0;--ur){var mn=this.tryEntries[ur];if(mn.tryLoc===rr){var sr=mn.completion;if(sr.type==="throw"){var xr=sr.arg;me(mn)}return xr}}throw new Error("illegal catch attempt")},delegateYield:function(rr,ur,mn){return this.delegate={iterator:dr(rr),resultName:ur,nextLoc:mn},this.method==="next"&&(this.arg=ae),Fe}},lt}var k=i("HaE+"),G=i("dm2S"),M=["measure","alignPre","align",null,"motion"],j=function(ae,lt){var pe=Object(G.a)(null),J=Object(E.a)(pe,2),Y=J[0],ee=J[1],fe=Object(o.useRef)();function we(he){ee(he,!0)}function Ce(){a.a.cancel(fe.current)}function _e(he){Ce(),fe.current=Object(a.a)(function(){we(function(ye){switch(Y){case"align":return"motion";case"motion":return"stable";default:}return ye}),he==null||he()})}return Object(o.useEffect)(function(){we("measure")},[ae]),Object(o.useEffect)(function(){switch(Y){case"measure":lt();break;default:}Y&&(fe.current=Object(a.a)(Object(k.a)(B().mark(function he(){var ye,Le;return B().wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:ye=M.indexOf(Y),Le=M[ye+1],Le&&ye!==-1&&we(Le);case 3:case"end":return gt.stop()}},he)}))))},[Y]),Object(o.useEffect)(function(){return function(){Ce()}},[]),[Y,_e]},K=function(ae){var lt=o.useState({width:0,height:0}),pe=Object(E.a)(lt,2),J=pe[0],Y=pe[1];function ee(we){var Ce=we.offsetWidth,_e=we.offsetHeight,he=we.getBoundingClientRect(),ye=he.width,Le=he.height;Math.abs(Ce-ye)<1&&Math.abs(_e-Le)<1&&(Ce=ye,_e=Le),Y({width:Ce,height:_e})}var fe=o.useMemo(function(){var we={};if(ae){var Ce=J.width,_e=J.height;ae.indexOf("height")!==-1&&_e?we.height=_e:ae.indexOf("minHeight")!==-1&&_e&&(we.minHeight=_e),ae.indexOf("width")!==-1&&Ce?we.width=Ce:ae.indexOf("minWidth")!==-1&&Ce&&(we.minWidth=Ce)}return we},[ae,J]);return[fe,ee]},z=o.forwardRef(function(ae,lt){var pe=ae.visible,J=ae.prefixCls,Y=ae.className,ee=ae.style,fe=ae.children,we=ae.zIndex,Ce=ae.stretch,_e=ae.destroyPopupOnHide,he=ae.forceRender,ye=ae.align,Le=ae.point,tt=ae.getRootDomNode,gt=ae.getClassNameFromAlign,at=ae.onAlign,Fe=ae.onMouseEnter,mt=ae.onMouseLeave,et=ae.onMouseDown,St=ae.onTouchStart,jt=ae.onClick,Mt=Object(o.useRef)(),Ot=Object(o.useRef)(),Bt=Object(o.useState)(),Ke=Object(E.a)(Bt,2),de=Ke[0],se=Ke[1],ut=K(Ce),qe=Object(E.a)(ut,2),me=qe[0],Wt=qe[1];function dr(){Ce&&Wt(tt())}var vt=j(pe,dr),rr=Object(E.a)(vt,2),ur=rr[0],mn=rr[1],sr=Object(o.useState)(0),xr=Object(E.a)(sr,2),pr=xr[0],Zt=xr[1],Ct=Object(o.useRef)();Object(F.a)(function(){ur==="alignPre"&&Zt(0)},[ur]);function on(){return Le||tt}function Mn(){var Nt;(Nt=Mt.current)===null||Nt===void 0||Nt.forceAlign()}function Xn(Nt,Me){var ke=gt(Me);de!==ke&&se(ke),Zt(function(Be){return Be+1}),ur==="align"&&(at==null||at(Nt,Me))}Object(F.a)(function(){ur==="align"&&(pr<3?Mn():mn(function(){var Nt;(Nt=Ct.current)===null||Nt===void 0||Nt.call(Ct)}))},[pr]);var oi=Object(y.a)({},S(ae));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Nt){var Me=oi[Nt];oi[Nt]=function(ke,Be){return mn(),Me==null?void 0:Me(ke,Be)}});function Ui(){return new Promise(function(Nt){Ct.current=Nt})}o.useEffect(function(){!oi.motionName&&ur==="motion"&&mn()},[oi.motionName,ur]),o.useImperativeHandle(lt,function(){return{forceAlign:Mn,getElement:function(){return Ot.current}}});var Un=Object(y.a)(Object(y.a)({},me),{},{zIndex:we,opacity:ur==="motion"||ur==="stable"||!pe?void 0:0,pointerEvents:!pe&&ur!=="stable"?"none":void 0},ee),Qn=!0;ye!=null&&ye.points&&(ur==="align"||ur==="stable")&&(Qn=!1);var $t=fe;return o.Children.count(fe)>1&&($t=o.createElement("div",{className:"".concat(J,"-content")},fe)),o.createElement(T.b,Object(p.a)({visible:pe,ref:Ot,leavedClassName:"".concat(J,"-hidden")},oi,{onAppearPrepare:Ui,onEnterPrepare:Ui,removeOnLeave:_e,forceRender:he}),function(Nt,Me){var ke=Nt.className,Be=Nt.style,it=g()(J,Y,de,ke);return o.createElement(I.a,{target:on(),key:"popup",ref:Mt,monitorWindowResize:!0,disabled:Qn,align:ye,onAlign:Xn},o.createElement("div",{ref:Me,className:it,onMouseEnter:Fe,onMouseLeave:mt,onMouseDownCapture:et,onTouchStartCapture:St,onClick:jt,style:Object(y.a)(Object(y.a)({},Be),Un)},$t))})});z.displayName="PopupInner";var V=z,Q=o.forwardRef(function(ae,lt){var pe=ae.prefixCls,J=ae.visible,Y=ae.zIndex,ee=ae.children,fe=ae.mobile;fe=fe===void 0?{}:fe;var we=fe.popupClassName,Ce=fe.popupStyle,_e=fe.popupMotion,he=_e===void 0?{}:_e,ye=fe.popupRender,Le=ae.onClick,tt=o.useRef();o.useImperativeHandle(lt,function(){return{forceAlign:function(){},getElement:function(){return tt.current}}});var gt=Object(y.a)({zIndex:Y},Ce),at=ee;return o.Children.count(ee)>1&&(at=o.createElement("div",{className:"".concat(pe,"-content")},ee)),ye&&(at=ye(at)),o.createElement(T.b,Object(p.a)({visible:J,ref:tt,removeOnLeave:!0},he),function(Fe,mt){var et=Fe.className,St=Fe.style,jt=g()(pe,we,et);return o.createElement("div",{ref:mt,className:jt,onClick:Le,style:Object(y.a)(Object(y.a)({},St),gt)},at)})});Q.displayName="MobilePopupInner";var X=Q,te=["visible","mobile"],$=o.forwardRef(function(ae,lt){var pe=ae.visible,J=ae.mobile,Y=Object(C.a)(ae,te),ee=Object(o.useState)(pe),fe=Object(E.a)(ee,2),we=fe[0],Ce=fe[1],_e=Object(o.useState)(!1),he=Object(E.a)(_e,2),ye=he[0],Le=he[1],tt=Object(y.a)(Object(y.a)({},Y),{},{visible:we});Object(o.useEffect)(function(){Ce(pe),pe&&J&&Le(_())},[pe,J]);var gt=ye?o.createElement(X,Object(p.a)({},tt,{mobile:J,ref:lt})):o.createElement(V,Object(p.a)({},tt,{ref:lt}));return o.createElement("div",null,o.createElement(O,tt),gt)});$.displayName="Popup";var le=$,re=o.createContext(null),Se=re;function Re(){}function Pe(){return""}function Je(ae){return ae?ae.ownerDocument:window.document}var Ge=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ct(ae){var lt=function(pe){Object(f.a)(Y,pe);var J=Object(d.a)(Y);function Y(ee){var fe;Object(x.a)(this,Y),fe=J.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 _e=fe.props.mouseEnterDelay;fe.fireEvents("onMouseEnter",Ce),fe.delaySetPopupVisible(!0,_e,_e?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 _e;if(Ce.relatedTarget&&!Ce.relatedTarget.setTimeout&&Object(e.a)((_e=fe.popupRef.current)===null||_e===void 0?void 0:_e.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 _e;if(fe.preClickTime&&fe.preTouchTime?_e=Math.min(fe.preClickTime,fe.preTouchTime):fe.preClickTime?_e=fe.preClickTime:fe.preTouchTime&&(_e=fe.preTouchTime),Math.abs(_e-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 _e=Ce.target,he=fe.getRootDomNode(),ye=fe.getPopupDomNode();(!Object(e.a)(he,_e)||fe.isContextMenuOnly())&&!Object(e.a)(ye,_e)&&!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 _e=Object(u.a)(fe.triggerRef.current);if(_e)return _e}catch(he){}return t.a.findDOMNode(Object(m.a)(fe))}),Object(l.a)(Object(m.a)(fe),"getPopupClassNameFromAlign",function(Ce){var _e=[],he=fe.props,ye=he.popupPlacement,Le=he.builtinPlacements,tt=he.prefixCls,gt=he.alignPoint,at=he.getPopupClassNameFromAlign;return ye&&Le&&_e.push(w(Le,tt,Ce,gt)),at&&_e.push(at(Ce)),_e.join(" ")}),Object(l.a)(Object(m.a)(fe),"getComponent",function(){var Ce=fe.props,_e=Ce.prefixCls,he=Ce.destroyPopupOnHide,ye=Ce.popupClassName,Le=Ce.onPopupAlign,tt=Ce.popupMotion,gt=Ce.popupAnimation,at=Ce.popupTransitionName,Fe=Ce.popupStyle,mt=Ce.mask,et=Ce.maskAnimation,St=Ce.maskTransitionName,jt=Ce.maskMotion,Mt=Ce.zIndex,Ot=Ce.popup,Bt=Ce.stretch,Ke=Ce.alignPoint,de=Ce.mobile,se=Ce.forceRender,ut=Ce.onPopupClick,qe=fe.state,me=qe.popupVisible,Wt=qe.point,dr=fe.getPopupAlign(),vt={};return fe.isMouseEnterToShow()&&(vt.onMouseEnter=fe.onPopupMouseEnter),fe.isMouseLeaveToHide()&&(vt.onMouseLeave=fe.onPopupMouseLeave),vt.onMouseDown=fe.onPopupMouseDown,vt.onTouchStart=fe.onPopupMouseDown,o.createElement(le,Object(p.a)({prefixCls:_e,destroyPopupOnHide:he,visible:me,point:Ke&&Wt,className:ye,align:dr,onAlign:Le,animation:gt,getClassNameFromAlign:fe.getPopupClassNameFromAlign},vt,{stretch:Bt,getRootDomNode:fe.getRootDomNode,style:Fe,mask:mt,zIndex:Mt,transitionName:at,maskAnimation:et,maskTransitionName:St,maskMotion:jt,ref:fe.popupRef,motion:tt,mobile:de,forceRender:se,onClick:ut}),typeof Ot=="function"?Ot():Ot)}),Object(l.a)(Object(m.a)(fe),"attachParent",function(Ce){a.a.cancel(fe.attachId);var _e=fe.props,he=_e.getPopupContainer,ye=_e.getDocument,Le=fe.getRootDomNode(),tt;he?(Le||he.length===0)&&(tt=he(Le)):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,_e=Ce(fe.getRootDomNode()).createElement("div");_e.style.position="absolute",_e.style.top="0",_e.style.left="0",_e.style.width="100%",fe.portalContainer=_e}return fe.attachParent(fe.portalContainer),fe.portalContainer}),Object(l.a)(Object(m.a)(fe),"setPoint",function(Ce){var _e=fe.props.alignPoint;if(!_e||!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 we;return"popupVisible"in ee?we=!!ee.popupVisible:we=!!ee.defaultPopupVisible,fe.state={prevPopupVisible:we,popupVisible:we},Ge.forEach(function(Ce){fe["fire".concat(Ce)]=function(_e){fe.fireEvents(Ce,_e)}}),fe}return Object(v.a)(Y,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var fe=this.props,we=this.state;if(we.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,we=fe.popupPlacement,Ce=fe.popupAlign,_e=fe.builtinPlacements;return we&&_e?b(_e,we,Ce):Ce}},{key:"setPopupVisible",value:function(fe,we){var Ce=this.props.alignPoint,_e=this.state.popupVisible;this.clearDelayTimer(),_e!==fe&&("popupVisible"in this.props||this.setState({popupVisible:fe,prevPopupVisible:_e}),this.props.onPopupVisibleChange(fe)),Ce&&we&&fe&&this.setPoint(we)}},{key:"delaySetPopupVisible",value:function(fe,we,Ce){var _e=this,he=we*1e3;if(this.clearDelayTimer(),he){var ye=Ce?{pageX:Ce.pageX,pageY:Ce.pageY}:null;this.delayTimer=window.setTimeout(function(){_e.setPopupVisible(fe,ye),_e.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 we=this.props.children.props,Ce=this.props;return we[fe]&&Ce[fe]?this["fire".concat(fe)]:we[fe]||Ce[fe]}},{key:"isClickToShow",value:function(){var fe=this.props,we=fe.action,Ce=fe.showAction;return we.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,we=fe.action,Ce=fe.showAction;return we.indexOf("contextMenu")!==-1||Ce.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var fe=this.props,we=fe.action,Ce=fe.hideAction;return we.indexOf("click")!==-1||Ce.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var fe=this.props,we=fe.action,Ce=fe.showAction;return we.indexOf("hover")!==-1||Ce.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var fe=this.props,we=fe.action,Ce=fe.hideAction;return we.indexOf("hover")!==-1||Ce.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var fe=this.props,we=fe.action,Ce=fe.showAction;return we.indexOf("focus")!==-1||Ce.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var fe=this.props,we=fe.action,Ce=fe.hideAction;return we.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,we){var Ce=this.props.children.props[fe];Ce&&Ce(we);var _e=this.props[fe];_e&&_e(we)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var fe=this.state.popupVisible,we=this.props,Ce=we.children,_e=we.forceRender,he=we.alignPoint,ye=we.className,Le=we.autoDestroy,tt=o.Children.only(Ce),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,he&&(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 at=g()(tt&&tt.props&&tt.props.className,ye);at&&(gt.className=at);var Fe=Object(y.a)({},gt);Object(r.c)(tt)&&(Fe.ref=Object(r.a)(this.triggerRef,tt.ref));var mt=o.cloneElement(tt,Fe),et;return(fe||this.popupRef.current||_e)&&(et=o.createElement(ae,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!fe&&Le&&(et=null),o.createElement(Se.Provider,{value:this.triggerContextValue},mt,et)}}],[{key:"getDerivedStateFromProps",value:function(fe,we){var Ce=fe.popupVisible,_e={};return Ce!==void 0&&we.popupVisible!==Ce&&(_e.popupVisible=Ce,_e.prevPopupVisible=we.popupVisible),_e}}]),Y}(o.Component);return Object(l.a)(lt,"contextType",Se),Object(l.a)(lt,"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}),lt}var Ue=D.a=ct(c.a)},ugBc:function(R,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(R,D,i){},v5uJ:function(R,D,i){var y=i("ProS"),p=i("2B6p"),x=p.updateCenterAndZoom;y.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(v,m){m.eachComponent({mainType:"series",subType:"tree",query:v},function(f){var d=v.dataIndex,l=f.getData().tree,o=l.getNodeByDataIndex(d);o.isExpand=!o.isExpand})}),y.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(v,m){m.eachComponent({mainType:"series",subType:"tree",query:v},function(f){var d=f.coordinateSystem,l=x(d,v);f.setCenter&&f.setCenter(l.center),f.setZoom&&f.setZoom(l.zoom)})})},"vF/C":function(R,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(R,D,i){var y=i("SrGk"),p=i("bYtY");function x(f,d){y.call(this,f,d,["filter"],"__filter_in_use__","_shadowDom")}p.inherits(x,y),x.prototype.addWithoutUpdate=function(f,d){if(d&&v(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+")"}},x.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},x.prototype.update=function(f,d){var l=d.style;if(v(l)){var o=this;y.prototype.update.call(this,d,function(){o.updateDom(d,d._shadowDom)})}else this.remove(f,d)},x.prototype.remove=function(f,d){d._shadowDomId!=null&&(this.removeDom(f),f.style.filter="")},x.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},x.prototype.markUsed=function(f){f._shadowDom&&y.prototype.markUsed.call(this,f._shadowDom)};function v(f){return f&&(f.shadowBlur||f.shadowOffsetX||f.shadowOffsetY||f.textShadowBlur||f.textShadowOffsetX||f.textShadowOffsetY)}var m=x;R.exports=m},vL6D:function(R,D,i){var y=i("bYtY"),p=i("+rIm"),x=i("IwbS"),v=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 x.Group;var g=v.layout(e),A=new p(e,g);y.each(o,A.add,A),c.add(this._axisGroup),c.add(A.getGroup()),y.each(n,function(b){e.get(b+".show")&&this["_"+b](e)},this),x.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(),A=u.isHorizontal(),b=[],w=0,E=u.getTicksCoords({tickModel:r}),C=[],_=[],T=0;T<E.length;++T){var S=u.toGlobalCoord(E[T].coord);A?(C[0]=S,C[1]=g.y,_[0]=S,_[1]=g.y+g.height):(C[0]=g.x,C[1]=S,_[0]=g.x+g.width,_[1]=S);var O=w++%h.length;b[O]=b[O]||[],b[O].push(new x.Line({subPixelOptimize:!0,shape:{x1:C[0],y1:C[1],x2:_[0],y2:_[1]},style:{lineWidth:c},silent:!0}))}for(var T=0;T<b.length;++T)this.group.add(x.mergePath(b[T],{style:{stroke:h[T%h.length],lineDash:s.getLineDash(c),lineWidth:c},silent:!0}))},_splitArea:function(e){d(this,this._axisGroup,e,e)}}),a=t;R.exports=a},vWvF:function(R,D,i){var y=i("Bq2U"),p=i("SUKs"),x=i("bYtY"),v=x.isString,m=x.isFunction,f=x.isObject,d=x.isArrayLike,l=x.indexOf,o=function(){this.animators=[]};o.prototype={constructor:o,animate:function(r,s){var c,h=!1,g=this,A=this.__zr;if(r){var b=r.split("."),w=g;h=b[0]==="shape";for(var E=0,C=b.length;E<C;E++){if(!w)continue;w=w[b[E]]}w&&(c=w)}else c=g;if(!c){p('Property "'+r+'" is not existed in element '+g.id);return}var _=g.animators,T=new y(c,s);return T.during(function(S){g.dirty(h)}).done(function(){_.splice(l(_,T),1)}),_.push(T),A&&A.animation.addAnimator(T),T},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,A){n(this,r,s,c,h,g,A)},animateFrom:function(r,s,c,h,g,A){n(this,r,s,c,h,g,A,!0)}};function n(u,r,s,c,h,g,A,b){v(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(),E=w.length;function C(){E--,E||g&&g()}E||g&&g();for(var _=0;_<w.length;_++)w[_].done(C).start(h,A)}function t(u,r,s,c,h,g,A){var b={},w=0;for(var E in c){if(!c.hasOwnProperty(E))continue;s[E]!=null?f(c[E])&&!d(c[E])?t(u,r?r+"."+E:E,s[E],c[E],h,g,A):(A?(b[E]=s[E],a(u,r,E,c[E])):b[E]=c[E],w++):c[E]!=null&&!A&&a(u,r,E,c[E])}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;R.exports=e},vZ6x:function(R,D,i){var y=i("Tghj"),p=y.__DEV__,x=i("bYtY"),v=i("IwbS"),m=i("4NO4"),f=i("9KIM"),d=x.each,l=x.indexOf,o=x.curry,n=["dataToPoint","pointToData"],t=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function a(T,S,O){var I=this._targetInfoList=[],F={},P=r(S,T);d(s,function(B,k){(!O||!O.include||l(O.include,k)>=0)&&B(P,I,F)})}var e=a.prototype;e.setOutputRanges=function(T,S){this.matchOutputRanges(T,S,function(O,I,F){if((O.coordRanges||(O.coordRanges=[])).push(I),!O.coordRange){O.coordRange=I;var P=g[O.brushType](0,F,I);O.__rangeOffset={offset:b[O.brushType](P.values,O.range,[1,1]),xyMinMax:P.xyMinMax}}})},e.matchOutputRanges=function(T,S,O){d(T,function(I){var F=this.findTargetInfo(I,S);F&&F!==!0&&x.each(F.coordSyses,function(P){var B=g[I.brushType](1,P,I.range);O(I,B.values,P,S)})},this)},e.setInputRanges=function(T,S){d(T,function(O){var I=this.findTargetInfo(O,S);if(O.range=O.range||[],I&&I!==!0){O.panelId=I.panelId;var F=g[O.brushType](0,I.coordSys,O.coordRange),P=O.__rangeOffset;O.range=P?b[O.brushType](F.values,P.offset,E(F.xyMinMax,P.xyMinMax)):F.values}},this)},e.makePanelOpts=function(T,S){return x.map(this._targetInfoList,function(O){var I=O.getPanelRect();return{panelId:O.panelId,defaultBrushType:S&&S(O),clipPath:f.makeRectPanelClipPath(I),isTargetByCursor:f.makeRectIsTargetByCursor(I,T,O.coordSysModel),getLinearBrushOtherExtent:f.makeLinearBrushOtherExtent(I)}})},e.controlSeries=function(T,S,O){var I=this.findTargetInfo(T,O);return I===!0||I&&l(I.coordSyses,S.coordinateSystem)>=0},e.findTargetInfo=function(T,S){for(var O=this._targetInfoList,I=r(S,T),F=0;F<O.length;F++){var P=O[F],B=T.panelId;if(B){if(P.panelId===B)return P}else for(var F=0;F<c.length;F++)if(c[F](I,P))return P}return!0};function u(T){return T[0]>T[1]&&T.reverse(),T}function r(T,S){return m.parseFinder(T,S,{includeMainTypes:t})}var s={grid:function(T,S){var O=T.xAxisModels,I=T.yAxisModels,F=T.gridModels,P=x.createHashMap(),B={},k={};if(!O&&!I&&!F)return;d(O,function(G){var M=G.axis.grid.model;P.set(M.id,M),B[M.id]=!0}),d(I,function(G){var M=G.axis.grid.model;P.set(M.id,M),k[M.id]=!0}),d(F,function(G){P.set(G.id,G),B[G.id]=!0,k[G.id]=!0}),P.each(function(G){var M=G.coordinateSystem,j=[];d(M.getCartesians(),function(K,z){(l(O,K.getAxis("x").model)>=0||l(I,K.getAxis("y").model)>=0)&&j.push(K)}),S.push({panelId:"grid--"+G.id,gridModel:G,coordSysModel:G,coordSys:j[0],coordSyses:j,getPanelRect:h.grid,xAxisDeclared:B[G.id],yAxisDeclared:k[G.id]})})},geo:function(T,S){d(T.geoModels,function(O){var I=O.coordinateSystem;S.push({panelId:"geo--"+O.id,geoModel:O,coordSysModel:O,coordSys:I,coordSyses:[I],getPanelRect:h.geo})})}},c=[function(T,S){var O=T.xAxisModel,I=T.yAxisModel,F=T.gridModel;return!F&&O&&(F=O.axis.grid.model),!F&&I&&(F=I.axis.grid.model),F&&F===S.gridModel},function(T,S){var O=T.geoModel;return O&&O===S.geoModel}],h={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var T=this.coordSys,S=T.getBoundingRect().clone();return S.applyTransform(v.getTransform(T)),S}},g={lineX:o(A,0),lineY:o(A,1),rect:function(T,S,O){var I=S[n[T]]([O[0][0],O[1][0]]),F=S[n[T]]([O[0][1],O[1][1]]),P=[u([I[0],F[0]]),u([I[1],F[1]])];return{values:P,xyMinMax:P}},polygon:function(T,S,O){var I=[[Infinity,-Infinity],[Infinity,-Infinity]],F=x.map(O,function(P){var B=S[n[T]](P);return I[0][0]=Math.min(I[0][0],B[0]),I[1][0]=Math.min(I[1][0],B[1]),I[0][1]=Math.max(I[0][1],B[0]),I[1][1]=Math.max(I[1][1],B[1]),B});return{values:F,xyMinMax:I}}};function A(T,S,O,I){var F=O.getAxis(["x","y"][T]),P=u(x.map([0,1],function(k){return S?F.coordToData(F.toLocalCoord(I[k])):F.toGlobalCoord(F.dataToCoord(I[k]))})),B=[];return B[T]=P,B[1-T]=[NaN,NaN],{values:P,xyMinMax:B}}var b={lineX:o(w,0),lineY:o(w,1),rect:function(T,S,O){return[[T[0][0]-O[0]*S[0][0],T[0][1]-O[0]*S[0][1]],[T[1][0]-O[1]*S[1][0],T[1][1]-O[1]*S[1][1]]]},polygon:function(T,S,O){return x.map(T,function(I,F){return[I[0]-O[0]*S[F][0],I[1]-O[1]*S[F][1]]})}};function w(T,S,O,I){return[S[0]-I[T]*O[0],S[1]-I[T]*O[1]]}function E(T,S){var O=C(T),I=C(S),F=[O[0]/I[0],O[1]/I[1]];return isNaN(F[0])&&(F[0]=1),isNaN(F[1])&&(F[1]=1),F}function C(T){return T?[T[0][1]-T[0][0],T[1][1]-T[1][0]]:[NaN,NaN]}var _=a;R.exports=_},vZI5:function(R,D,i){var y=i("bYtY"),p=i("T4UG"),x=i("5GhG"),v=x.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,v,!0);var f=m;R.exports=f},vafp:function(R,D,i){var y=i("bYtY"),p=i("8nly");function x(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]=v(r,e[u],d);else if(t.type==="MultiPolygon")for(var s=0;s<r.length;s++){var c=r[s];r[s]=v(c,e[u][s],d)}}return f.UTF8Encoding=!1,f}function v(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 x(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})}R.exports=m},vcCh:function(R,D,i){var y=i("ProS");i("0qV/"),y.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(p,x){x.eachComponent({mainType:"series",subType:"sankey",query:p},function(v){v.setNodePosition(p.dataIndex,[p.localX,p.localY])})})},vewr:function(R,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 x=!1,v=null;document.captureElement=null;function m(n){if(x)return;var t=new n.constructor(n.type,n);x=!0,document.captureElement?document.captureElement.dispatchEvent(t):v.dispatchEvent(t),x=!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;v=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(R,D,i){},"vk+C":function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("RZPm"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},w4Tj:function(R,D,i){"use strict";i.d(D,"a",function(){return x});var y=i("oZsa");function p(v,m){for(;!Object.prototype.hasOwnProperty.call(v,m)&&!(v=Object(y.a)(v),v===null););return v}function x(v,m,f){return typeof Reflect!="undefined"&&Reflect.get?x=Reflect.get:x=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},x(v,m,f||v)}},w5pM:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="PlusCircleOutlined";var d=D.a=p.forwardRef(f)},w6Tc:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("apAg"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,R.exports=x},w7YG:function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.StreamCipher,m=p.algo,f=m.RC4=v.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=v._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=v._createHelper(l)}(),y.RC4})},wCAj:function(R,D,i){"use strict";var y=i("cDf5"),p=i.n(y),x=i("lSNA"),v=i.n(x),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),A=i("Kwbf"),b=i("1OyB"),w=i("vuIU"),E=i("Ji7U"),C=i("LK+K"),_=i("m+aA"),T=i("Zm9Q"),S=i("c+Xe"),O=i("bdgK"),I="rc-observer-key",F=function(_t){Object(E.a)(Lr,_t);var Or=Object(C.a)(Lr);function Lr(){var en;return Object(b.a)(this,Lr),en=Or.apply(this,arguments),en.resizeObserver=null,en.childNode=null,en.currentElement=null,en.state={width:0,height:0,offsetHeight:0,offsetWidth:0},en.onResize=function(Sn){var On=en.props.onResize,wn=Sn[0].target,$n=wn.getBoundingClientRect(),jn=$n.width,pi=$n.height,Mi=wn.offsetWidth,yi=wn.offsetHeight,Oi=Math.floor(jn),zi=Math.floor(pi);if(en.state.width!==Oi||en.state.height!==zi||en.state.offsetWidth!==Mi||en.state.offsetHeight!==yi){var ea={width:Oi,height:zi,offsetWidth:Mi,offsetHeight:yi};en.setState(ea),On&&Promise.resolve().then(function(){On(Object(u.a)(Object(u.a)({},ea),{},{offsetWidth:Mi,offsetHeight:yi}))})}},en.setChildNode=function(Sn){en.childNode=Sn},en}return Object(w.a)(Lr,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var Sn=this.props.disabled;if(Sn){this.destroyObserver();return}var On=Object(_.a)(this.childNode||this),wn=On!==this.currentElement;wn&&(this.destroyObserver(),this.currentElement=On),!this.resizeObserver&&On&&(this.resizeObserver=new O.default(this.onResize),this.resizeObserver.observe(On))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var Sn=this.props.children,On=Object(T.a)(Sn);if(On.length>1)Object(A.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(On.length===0)return Object(A.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var wn=On[0];if(o.isValidElement(wn)&&Object(S.c)(wn)){var $n=wn.ref;On[0]=o.cloneElement(wn,{ref:Object(S.a)($n,this.setChildNode)})}return On.length===1?On[0]:On.map(function(jn,pi){return!o.isValidElement(jn)||"key"in jn&&jn.key!==null?jn:o.cloneElement(jn,{key:"".concat(I,"-").concat(pi)})})}}]),Lr}(o.Component);F.displayName="ResizeObserver";var P=F,B=i("qx4F");function k(_t){return null}var G=k;function M(_t){return null}var j=M,K=i("Ff2n"),z="RC_TABLE_KEY";function V(_t){return _t==null?[]:Array.isArray(_t)?_t:[_t]}function Q(_t,Or){if(!Or&&typeof Or!="number")return _t;for(var Lr=V(Or),en=_t,Sn=0;Sn<Lr.length;Sn+=1){if(!en)return null;var On=Lr[Sn];en=en[On]}return en}function X(_t){var Or=[],Lr={};return _t.forEach(function(en){for(var Sn=en||{},On=Sn.key,wn=Sn.dataIndex,$n=On||V(wn).join("-")||z;Lr[$n];)$n="".concat($n,"_next");Lr[$n]=!0,Or.push($n)}),Or}function te(){var _t={};function Or(On,wn){wn&&Object.keys(wn).forEach(function($n){var jn=wn[$n];jn&&Object(s.a)(jn)==="object"?(On[$n]=On[$n]||{},Or(On[$n],jn)):On[$n]=jn})}for(var Lr=arguments.length,en=new Array(Lr),Sn=0;Sn<Lr;Sn++)en[Sn]=arguments[Sn];return en.forEach(function(On){Or(_t,On)}),_t}function $(_t){return _t!=null}function le(_t){return _t&&Object(s.a)(_t)==="object"&&!Array.isArray(_t)&&!o.isValidElement(_t)}function re(_t){return typeof _t=="string"?!0:Object(S.c)(_t)}function Se(_t,Or){var Lr,en=_t.prefixCls,Sn=_t.className,On=_t.record,wn=_t.index,$n=_t.dataIndex,jn=_t.render,pi=_t.children,Mi=_t.component,yi=Mi===void 0?"td":Mi,Oi=_t.colSpan,zi=_t.rowSpan,ea=_t.fixLeft,Xi=_t.fixRight,Wi=_t.firstFixLeft,ji=_t.lastFixLeft,Ji=_t.firstFixRight,ca=_t.lastFixRight,Ca=_t.appendNode,na=_t.additionalProps,Pa=na===void 0?{}:na,La=_t.ellipsis,va=_t.align,ga=_t.rowType,Oa=_t.isSticky,Aa="".concat(en,"-cell"),Xa,_a;if(pi)_a=pi;else{var Va=Q(On,$n);if(_a=Va,jn){var Pi=jn(Va,On,wn);le(Pi)?(_a=Pi.children,Xa=Pi.props):_a=Pi}}Object(s.a)(_a)==="object"&&!Array.isArray(_a)&&!o.isValidElement(_a)&&(_a=null),La&&(ji||Ji)&&(_a=o.createElement("span",{className:"".concat(Aa,"-content")},_a));var io=Xa||{},oo=io.colSpan,Qo=io.rowSpan,mo=io.style,To=io.className,ao=Object(K.a)(io,["colSpan","rowSpan","style","className"]),So=oo!==void 0?oo:Oi,bo=Qo!==void 0?Qo:zi;if(So===0||bo===0)return null;var to={},Jo=typeof ea=="number",Uo=typeof Xi=="number";Jo&&(to.position="sticky",to.left=ea),Uo&&(to.position="sticky",to.right=Xi);var wo={};va&&(wo.textAlign=va);var ts,Ia=La===!0?{showTitle:!0}:La;Ia&&(Ia.showTitle||ga==="header")&&(typeof _a=="string"||typeof _a=="number"?ts=_a.toString():o.isValidElement(_a)&&typeof _a.props.children=="string"&&(ts=_a.props.children));var Oo=Object(u.a)(Object(u.a)(Object(u.a)({title:ts},ao),Pa),{},{colSpan:So&&So!==1?So:null,rowSpan:bo&&bo!==1?bo:null,className:t()(Aa,Sn,(Lr={},Object(e.a)(Lr,"".concat(Aa,"-fix-left"),Jo),Object(e.a)(Lr,"".concat(Aa,"-fix-left-first"),Wi),Object(e.a)(Lr,"".concat(Aa,"-fix-left-last"),ji),Object(e.a)(Lr,"".concat(Aa,"-fix-right"),Uo),Object(e.a)(Lr,"".concat(Aa,"-fix-right-first"),Ji),Object(e.a)(Lr,"".concat(Aa,"-fix-right-last"),ca),Object(e.a)(Lr,"".concat(Aa,"-ellipsis"),La),Object(e.a)(Lr,"".concat(Aa,"-with-append"),Ca),Object(e.a)(Lr,"".concat(Aa,"-fix-sticky"),(Jo||Uo)&&Oa),Lr),Pa.className,To),style:Object(u.a)(Object(u.a)(Object(u.a)(Object(u.a)({},Pa.style),wo),to),mo),ref:re(yi)?Or:null});return o.createElement(yi,Object.assign({},Oo),Ca,_a)}var Re=o.forwardRef(Se);Re.displayName="Cell";var Pe=o.memo(Re,function(_t,Or){return Or.shouldCellUpdate?!Or.shouldCellUpdate(Or.record,_t.record):!1}),Je=Pe,Ge=o.createContext(null),ct=Ge;function Ue(_t,Or,Lr,en,Sn){var On=Lr[_t]||{},wn=Lr[Or]||{},$n,jn;On.fixed==="left"?$n=en.left[_t]:wn.fixed==="right"&&(jn=en.right[Or]);var pi=!1,Mi=!1,yi=!1,Oi=!1,zi=Lr[Or+1],ea=Lr[_t-1];if(Sn==="rtl"){if($n!==void 0){var Xi=ea&&ea.fixed==="left";Oi=!Xi}else if(jn!==void 0){var Wi=zi&&zi.fixed==="right";yi=!Wi}}else if($n!==void 0){var ji=zi&&zi.fixed==="left";pi=!ji}else if(jn!==void 0){var Ji=ea&&ea.fixed==="right";Mi=!Ji}return{fixLeft:$n,fixRight:jn,lastFixLeft:pi,firstFixRight:Mi,lastFixRight:yi,firstFixLeft:Oi,isSticky:en.isSticky}}function ae(_t){var Or=_t.cells,Lr=_t.stickyOffsets,en=_t.flattenColumns,Sn=_t.rowComponent,On=_t.cellComponent,wn=_t.onHeaderRow,$n=_t.index,jn=o.useContext(ct),pi=jn.prefixCls,Mi=jn.direction,yi;wn&&(yi=wn(Or.map(function(zi){return zi.column}),$n));var Oi=X(Or.map(function(zi){return zi.column}));return o.createElement(Sn,Object.assign({},yi),Or.map(function(zi,ea){var Xi=zi.column,Wi=Ue(zi.colStart,zi.colEnd,en,Lr,Mi),ji;return Xi&&Xi.onHeaderCell&&(ji=zi.column.onHeaderCell(Xi)),o.createElement(Je,Object.assign({},zi,{ellipsis:Xi.ellipsis,align:Xi.align,component:On,prefixCls:pi,key:Oi[ea]},Wi,{additionalProps:ji,rowType:"header"}))}))}ae.displayName="HeaderRow";var lt=ae;function pe(_t){var Or=[];function Lr(wn,$n){var jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Or[jn]=Or[jn]||[];var pi=$n,Mi=wn.filter(Boolean).map(function(yi){var Oi={key:yi.key,className:yi.className||"",children:yi.title,column:yi,colStart:pi},zi=1,ea=yi.children;return ea&&ea.length>0&&(zi=Lr(ea,pi,jn+1).reduce(function(Xi,Wi){return Xi+Wi},0),Oi.hasSubColumns=!0),"colSpan"in yi&&(zi=yi.colSpan),"rowSpan"in yi&&(Oi.rowSpan=yi.rowSpan),Oi.colSpan=zi,Oi.colEnd=Oi.colStart+zi-1,Or[jn].push(Oi),pi+=zi,zi});return Mi}Lr(_t,0);for(var en=Or.length,Sn=function($n){Or[$n].forEach(function(jn){!("rowSpan"in jn)&&!jn.hasSubColumns&&(jn.rowSpan=en-$n)})},On=0;On<en;On+=1)Sn(On);return Or}function J(_t){var Or=_t.stickyOffsets,Lr=_t.columns,en=_t.flattenColumns,Sn=_t.onHeaderRow,On=o.useContext(ct),wn=On.prefixCls,$n=On.getComponent,jn=o.useMemo(function(){return pe(Lr)},[Lr]),pi=$n(["header","wrapper"],"thead"),Mi=$n(["header","row"],"tr"),yi=$n(["header","cell"],"th");return o.createElement(pi,{className:"".concat(wn,"-thead")},jn.map(function(Oi,zi){var ea=o.createElement(lt,{key:zi,flattenColumns:en,cells:Oi,stickyOffsets:Or,rowComponent:Mi,cellComponent:yi,onHeaderRow:Sn,index:zi});return ea}))}var Y=J,ee="RC_TABLE_INTERNAL_COL_DEFINE";function fe(_t){var Or=_t.expandable,Lr=Object(K.a)(_t,["expandable"]);return"expandable"in _t?Object(u.a)(Object(u.a)({},Lr),Or):Lr}function we(_t){return Object.keys(_t).reduce(function(Or,Lr){return(Lr.substr(0,5)==="data-"||Lr.substr(0,5)==="aria-")&&(Or[Lr]=_t[Lr]),Or},{})}function Ce(_t){for(var Or=_t.colWidths,Lr=_t.columns,en=_t.columCount,Sn=[],On=en||Lr.length,wn=!1,$n=On-1;$n>=0;$n-=1){var jn=Or[$n],pi=Lr&&Lr[$n],Mi=pi&&pi[ee];(jn||Mi||wn)&&(Sn.unshift(o.createElement("col",Object.assign({key:$n,style:{width:jn,minWidth:jn}},Mi))),wn=!0)}return o.createElement("colgroup",null,Sn)}var _e=Ce;function he(_t,Or){return Object(o.useMemo)(function(){for(var Lr=[],en=0;en<Or;en+=1){var Sn=_t[en];if(Sn!==void 0)Lr[en]=Sn;else return null}return Lr},[_t.join("_"),Or])}var ye=o.forwardRef(function(_t,Or){var Lr=_t.noData,en=_t.columns,Sn=_t.flattenColumns,On=_t.colWidths,wn=_t.columCount,$n=_t.stickyOffsets,jn=_t.direction,pi=_t.fixHeader,Mi=_t.offsetHeader,yi=_t.stickyClassName,Oi=_t.onScroll,zi=Object(K.a)(_t,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),ea=o.useContext(ct),Xi=ea.prefixCls,Wi=ea.scrollbarSize,ji=ea.isSticky,Ji=ji&&!pi?0:Wi,ca=o.useRef(null),Ca=o.useCallback(function(Aa){Object(S.b)(Or,Aa),Object(S.b)(ca,Aa)},[]);o.useEffect(function(){var Aa;function Xa(_a){var Va=_a.currentTarget,Pi=_a.deltaX;Pi&&(Oi({currentTarget:Va,scrollLeft:Va.scrollLeft+Pi}),_a.preventDefault())}return(Aa=ca.current)===null||Aa===void 0||Aa.addEventListener("wheel",Xa),function(){var _a;(_a=ca.current)===null||_a===void 0||_a.removeEventListener("wheel",Xa)}},[]);var na=Sn[Sn.length-1],Pa={fixed:na?na.fixed:null,onHeaderCell:function(){return{className:"".concat(Xi,"-cell-scrollbar")}}},La=Object(o.useMemo)(function(){return Ji?[].concat(Object(r.a)(en),[Pa]):en},[Ji,en]),va=Object(o.useMemo)(function(){return Ji?[].concat(Object(r.a)(Sn),[Pa]):Sn},[Ji,Sn]),ga=Object(o.useMemo)(function(){var Aa=$n.right,Xa=$n.left;return Object(u.a)(Object(u.a)({},$n),{},{left:jn==="rtl"?[].concat(Object(r.a)(Xa.map(function(_a){return _a+Ji})),[0]):Xa,right:jn==="rtl"?Aa:[].concat(Object(r.a)(Aa.map(function(_a){return _a+Ji})),[0]),isSticky:ji})},[Ji,$n,ji]),Oa=he(On,wn);return o.createElement("div",{style:Object(u.a)({overflow:"hidden"},ji?{top:Mi}:{}),ref:Ca,className:t()("".concat(Xi,"-header"),Object(e.a)({},yi,!!yi))},o.createElement("table",{style:{tableLayout:"fixed",visibility:Lr||Oa?null:"hidden"}},o.createElement(_e,{colWidths:Oa?[].concat(Object(r.a)(Oa),[Ji]):[],columCount:wn+1,columns:va}),o.createElement(Y,Object.assign({},zi,{stickyOffsets:ga,columns:La,flattenColumns:va}))))});ye.displayName="FixedHeader";var Le=ye,tt=o.createContext(null),gt=tt;function at(_t){var Or=_t.prefixCls,Lr=_t.children,en=_t.component,Sn=_t.cellComponent,On=_t.fixHeader,wn=_t.fixColumn,$n=_t.horizonScroll,jn=_t.className,pi=_t.expanded,Mi=_t.componentWidth,yi=_t.colSpan,Oi=o.useContext(ct),zi=Oi.scrollbarSize;return o.useMemo(function(){var ea=Lr;return wn&&(ea=o.createElement("div",{style:{width:Mi-(On?zi:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Or,"-expanded-row-fixed")},ea)),o.createElement(en,{className:jn,style:{display:pi?null:"none"}},o.createElement(Je,{component:Sn,prefixCls:Or,colSpan:yi},ea))},[Lr,en,On,$n,jn,pi,Mi,yi,zi])}var Fe=at;function mt(_t){var Or=_t.className,Lr=_t.style,en=_t.record,Sn=_t.index,On=_t.rowKey,wn=_t.getRowKey,$n=_t.rowExpandable,jn=_t.expandedKeys,pi=_t.onRow,Mi=_t.indent,yi=Mi===void 0?0:Mi,Oi=_t.rowComponent,zi=_t.cellComponent,ea=_t.childrenColumnName,Xi=o.useContext(ct),Wi=Xi.prefixCls,ji=Xi.fixedInfoList,Ji=o.useContext(gt),ca=Ji.fixHeader,Ca=Ji.fixColumn,na=Ji.horizonScroll,Pa=Ji.componentWidth,La=Ji.flattenColumns,va=Ji.expandableType,ga=Ji.expandRowByClick,Oa=Ji.onTriggerExpand,Aa=Ji.rowClassName,Xa=Ji.expandedRowClassName,_a=Ji.indentSize,Va=Ji.expandIcon,Pi=Ji.expandedRowRender,io=Ji.expandIconColumnIndex,oo=o.useState(!1),Qo=Object(c.a)(oo,2),mo=Qo[0],To=Qo[1],ao=jn&&jn.has(_t.recordKey);o.useEffect(function(){ao&&To(!0)},[ao]);var So=va==="row"&&(!$n||$n(en)),bo=va==="nest",to=ea&&en&&en[ea],Jo=So||bo,Uo;pi&&(Uo=pi(en,Sn));var wo=function(_o){if(ga&&Jo&&Oa(en,_o),Uo&&Uo.onClick){for(var uo,Ha=arguments.length,ft=new Array(Ha>1?Ha-1:0),Tr=1;Tr<Ha;Tr++)ft[Tr-1]=arguments[Tr];(uo=Uo).onClick.apply(uo,[_o].concat(ft))}},ts;typeof Aa=="string"?ts=Aa:typeof Aa=="function"&&(ts=Aa(en,Sn,yi));var Ia=X(La),Oo=o.createElement(Oi,Object.assign({},Uo,{"data-row-key":On,className:t()(Or,"".concat(Wi,"-row"),"".concat(Wi,"-row-level-").concat(yi),ts,Uo&&Uo.className),style:Object(u.a)(Object(u.a)({},Lr),Uo?Uo.style:null),onClick:wo}),La.map(function(Ho,_o){var uo=Ho.render,Ha=Ho.dataIndex,ft=Ho.className,Tr=Ia[_o],qr=ji[_o],Yr;_o===(io||0)&&bo&&(Yr=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(_a*yi,"px")},className:"".concat(Wi,"-row-indent indent-level-").concat(yi)}),Va({prefixCls:Wi,expanded:ao,expandable:to,record:en,onExpand:Oa})));var Yn;return Ho.onCell&&(Yn=Ho.onCell(en,Sn)),o.createElement(Je,Object.assign({className:ft,ellipsis:Ho.ellipsis,align:Ho.align,component:zi,prefixCls:Wi,key:Tr,record:en,index:Sn,dataIndex:Ha,render:uo,shouldCellUpdate:Ho.shouldCellUpdate},qr,{appendNode:Yr,additionalProps:Yn}))})),Io;if(So&&(mo||ao)){var os=Pi(en,Sn,yi+1,ao),xo=Xa&&Xa(en,Sn,yi);Io=o.createElement(Fe,{expanded:ao,className:t()("".concat(Wi,"-expanded-row"),"".concat(Wi,"-expanded-row-level-").concat(yi+1),xo),prefixCls:Wi,fixHeader:ca,fixColumn:Ca,horizonScroll:na,component:Oi,componentWidth:Pa,cellComponent:zi,colSpan:La.length},os)}var rs;return to&&ao&&(rs=(en[ea]||[]).map(function(Ho,_o){var uo=wn(Ho,_o);return o.createElement(mt,Object.assign({},_t,{key:uo,rowKey:uo,record:Ho,recordKey:uo,index:_o,indent:yi+1}))})),o.createElement(o.Fragment,null,Oo,Io,rs)}mt.displayName="BodyRow";var et=mt,St=o.createContext(null),jt=St;function Mt(_t){var Or=_t.columnKey,Lr=_t.onColumnResize,en=o.useRef();return o.useEffect(function(){en.current&&Lr(Or,en.current.offsetWidth)},[]),o.createElement(P,{onResize:function(On){var wn=On.offsetWidth;Lr(Or,wn)}},o.createElement("td",{ref:en,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Ot(_t){var Or=_t.data,Lr=_t.getRowKey,en=_t.measureColumnWidth,Sn=_t.expandedKeys,On=_t.onRow,wn=_t.rowExpandable,$n=_t.emptyNode,jn=_t.childrenColumnName,pi=o.useContext(jt),Mi=pi.onColumnResize,yi=o.useContext(ct),Oi=yi.prefixCls,zi=yi.getComponent,ea=o.useContext(gt),Xi=ea.fixHeader,Wi=ea.horizonScroll,ji=ea.flattenColumns,Ji=ea.componentWidth;return o.useMemo(function(){var ca=zi(["body","wrapper"],"tbody"),Ca=zi(["body","row"],"tr"),na=zi(["body","cell"],"td"),Pa;Or.length?Pa=Or.map(function(va,ga){var Oa=Lr(va,ga);return o.createElement(et,{key:Oa,rowKey:Oa,record:va,recordKey:Oa,index:ga,rowComponent:Ca,cellComponent:na,expandedKeys:Sn,onRow:On,getRowKey:Lr,rowExpandable:wn,childrenColumnName:jn})}):Pa=o.createElement(Fe,{expanded:!0,className:"".concat(Oi,"-placeholder"),prefixCls:Oi,fixHeader:Xi,fixColumn:Wi,horizonScroll:Wi,component:Ca,componentWidth:Ji,cellComponent:na,colSpan:ji.length},$n);var La=X(ji);return o.createElement(ca,{className:"".concat(Oi,"-tbody")},en&&o.createElement("tr",{"aria-hidden":"true",className:"".concat(Oi,"-measure-row"),style:{height:0}},La.map(function(va){return o.createElement(Mt,{key:va,columnKey:va,onColumnResize:Mi})})),Pa)},[Or,Oi,On,en,Sn,Lr,zi,Ji,$n,ji])}var Bt=o.memo(Ot);Bt.displayName="Body";var Ke=Bt;function de(_t){return Object(T.a)(_t).filter(function(Or){return o.isValidElement(Or)}).map(function(Or){var Lr=Or.key,en=Or.props,Sn=en.children,On=Object(K.a)(en,["children"]),wn=Object(u.a)({key:Lr},On);return Sn&&(wn.children=de(Sn)),wn})}function se(_t){return _t.reduce(function(Or,Lr){var en=Lr.fixed,Sn=en===!0?"left":en,On=Lr.children;return On&&On.length>0?[].concat(Object(r.a)(Or),Object(r.a)(se(On).map(function(wn){return Object(u.a)({fixed:Sn},wn)}))):[].concat(Object(r.a)(Or),[Object(u.a)(Object(u.a)({},Lr),{},{fixed:Sn})])},[])}function ut(_t){for(var Or=!0,Lr=0;Lr<_t.length;Lr+=1){var en=_t[Lr];if(Or&&en.fixed!=="left")Or=!1;else if(!Or&&en.fixed==="left"){Object(A.a)(!1,"Index ".concat(Lr-1," of `columns` missing `fixed='left'` prop."));break}}for(var Sn=!0,On=_t.length-1;On>=0;On-=1){var wn=_t[On];if(Sn&&wn.fixed!=="right")Sn=!1;else if(!Sn&&wn.fixed==="right"){Object(A.a)(!1,"Index ".concat(On+1," of `columns` missing `fixed='right'` prop."));break}}}function qe(_t){return _t.map(function(Or){var Lr=Or.fixed,en=Object(K.a)(Or,["fixed"]),Sn=Lr;return Lr==="left"?Sn="right":Lr==="right"&&(Sn="left"),Object(u.a)({fixed:Sn},en)})}function me(_t,Or){var Lr=_t.prefixCls,en=_t.columns,Sn=_t.children,On=_t.expandable,wn=_t.expandedKeys,$n=_t.getRowKey,jn=_t.onTriggerExpand,pi=_t.expandIcon,Mi=_t.rowExpandable,yi=_t.expandIconColumnIndex,Oi=_t.direction,zi=_t.expandRowByClick,ea=o.useMemo(function(){return en||de(Sn)},[en,Sn]),Xi=o.useMemo(function(){if(On){var Ji,ca=yi||0,Ca=ea[ca],na=(Ji={},Object(e.a)(Ji,ee,{className:"".concat(Lr,"-expand-icon-col")}),Object(e.a)(Ji,"title",""),Object(e.a)(Ji,"fixed",Ca?Ca.fixed:null),Object(e.a)(Ji,"className","".concat(Lr,"-row-expand-icon-cell")),Object(e.a)(Ji,"render",function(va,ga,Oa){var Aa=$n(ga,Oa),Xa=wn.has(Aa),_a=Mi?Mi(ga):!0,Va=pi({prefixCls:Lr,expanded:Xa,expandable:_a,record:ga,onExpand:jn});return zi?o.createElement("span",{onClick:function(io){return io.stopPropagation()}},Va):Va}),Ji),Pa=ea.slice();return ca>=0&&Pa.splice(ca,0,na),Pa}return ea},[On,ea,$n,wn,pi,Oi]),Wi=o.useMemo(function(){var Ji=Xi;return Or&&(Ji=Or(Ji)),Ji.length||(Ji=[{render:function(){return null}}]),Ji},[Or,Xi,Oi]),ji=o.useMemo(function(){return Oi==="rtl"?qe(se(Wi)):se(Wi)},[Wi,Oi]);return[Wi,ji]}var Wt=me,dr=i("xEkU"),vt=i.n(dr);function rr(_t){var Or=Object(o.useRef)(_t),Lr=Object(o.useState)({}),en=Object(c.a)(Lr,2),Sn=en[1],On=Object(o.useRef)(null),wn=Object(o.useRef)([]);function $n(jn){On.current===null&&(wn.current=[],On.current=vt()(function(){wn.current.forEach(function(pi){Or.current=pi(Or.current)}),On.current=null,Sn({})})),wn.current.push(jn)}return Object(o.useEffect)(function(){return function(){vt.a.cancel(On.current)}},[]),[Or.current,$n]}function ur(_t){var Or=Object(o.useRef)(_t),Lr=Object(o.useRef)(null);function en(){window.clearTimeout(Lr.current)}function Sn(wn){Or.current=wn,en(),Lr.current=window.setTimeout(function(){Or.current=null,Lr.current=null},100)}function On(){return Or.current}return Object(o.useEffect)(function(){return en},[]),[Sn,On]}function mn(_t,Or,Lr){var en=Object(o.useMemo)(function(){for(var Sn=[],On=[],wn=0,$n=0,jn=0;jn<Or;jn+=1)if(Lr==="rtl"){On[jn]=$n,$n+=_t[jn]||0;var pi=Or-jn-1;Sn[pi]=wn,wn+=_t[pi]||0}else{Sn[jn]=wn,wn+=_t[jn]||0;var Mi=Or-jn-1;On[Mi]=$n,$n+=_t[Mi]||0}return{left:Sn,right:On}},[_t,Or,Lr]);return en}var sr=mn;function xr(_t){var Or=_t.className,Lr=_t.children;return o.createElement("div",{className:Or},Lr)}var pr=xr;function Zt(_t){var Or=_t.className,Lr=_t.index,en=_t.children,Sn=_t.colSpan,On=_t.rowSpan,wn=o.useContext(ct),$n=wn.prefixCls,jn=wn.fixedInfoList,pi=jn[Lr];return o.createElement(Je,Object.assign({className:Or,index:Lr,component:"td",prefixCls:$n,record:null,dataIndex:null,render:function(){return{children:en,props:{colSpan:Sn,rowSpan:On}}}},pi))}function Ct(_t){return o.createElement("tr",Object.assign({},_t))}function on(_t){var Or=_t.children,Lr=o.useContext(ct),en=Lr.prefixCls;return o.createElement("tfoot",{className:"".concat(en,"-summary")},Or)}var Mn=on,Xn={Cell:Zt,Row:Ct};function oi(_t){var Or,Lr=_t.prefixCls,en=_t.record,Sn=_t.onExpand,On=_t.expanded,wn=_t.expandable,$n="".concat(Lr,"-row-expand-icon");if(!wn)return o.createElement("span",{className:t()($n,"".concat(Lr,"-row-spaced"))});var jn=function(Mi){Sn(en,Mi),Mi.stopPropagation()};return o.createElement("span",{className:t()($n,(Or={},Object(e.a)(Or,"".concat(Lr,"-row-expanded"),On),Object(e.a)(Or,"".concat(Lr,"-row-collapsed"),!On),Or)),onClick:jn})}function Ui(_t,Or,Lr){var en=[];function Sn(On){(On||[]).forEach(function(wn,$n){en.push(Or(wn,$n)),Sn(wn[Lr])})}return Sn(_t),en}var Un=i("zT1h"),Qn=i("y0+3"),$t=function(Or,Lr){var en,Sn,On=Or.scrollBodyRef,wn=Or.onScroll,$n=Or.offsetScroll,jn=o.useContext(ct),pi=jn.prefixCls,Mi=((en=On.current)===null||en===void 0?void 0:en.scrollWidth)||0,yi=((Sn=On.current)===null||Sn===void 0?void 0:Sn.clientWidth)||0,Oi=Mi&&yi*(yi/Mi),zi=o.useRef(),ea=rr({scrollLeft:0,isHiddenScrollBar:!1}),Xi=Object(c.a)(ea,2),Wi=Xi[0],ji=Xi[1],Ji=o.useRef({delta:0,x:0}),ca=o.useState(!1),Ca=Object(c.a)(ca,2),na=Ca[0],Pa=Ca[1],La=function(){Pa(!1)},va=function(_a){_a.persist(),Ji.current.delta=_a.pageX-Wi.scrollLeft,Ji.current.x=0,Pa(!0),_a.preventDefault()},ga=function(_a){var Va,Pi=_a||((Va=window)===null||Va===void 0?void 0:Va.event),io=Pi.buttons;if(!na||io===0){na&&Pa(!1);return}var oo=Ji.current.x+_a.pageX-Ji.current.x-Ji.current.delta;oo<=0&&(oo=0),oo+Oi>=yi&&(oo=yi-Oi),wn({scrollLeft:oo/yi*(Mi+2)}),Ji.current.x=_a.pageX},Oa=function(){var _a=Object(Qn.b)(On.current).top,Va=_a+On.current.offsetHeight,Pi=document.documentElement.scrollTop+window.innerHeight;Va-Object(B.a)()<=Pi||_a>=Pi-$n?ji(function(io){return Object(u.a)(Object(u.a)({},io),{},{isHiddenScrollBar:!0})}):ji(function(io){return Object(u.a)(Object(u.a)({},io),{},{isHiddenScrollBar:!1})})},Aa=function(_a){ji(function(Va){return Object(u.a)(Object(u.a)({},Va),{},{scrollLeft:_a/Mi*yi||0})})};return o.useImperativeHandle(Lr,function(){return{setScrollLeft:Aa}}),o.useEffect(function(){var Xa=Object(Un.a)(document.body,"mouseup",La,!1),_a=Object(Un.a)(document.body,"mousemove",ga,!1);return Oa(),function(){Xa.remove(),_a.remove()}},[Oi,na]),o.useEffect(function(){var Xa=Object(Un.a)(window,"scroll",Oa,!1),_a=Object(Un.a)(window,"resize",Oa,!1);return function(){Xa.remove(),_a.remove()}},[]),o.useEffect(function(){Wi.isHiddenScrollBar||ji(function(Xa){var _a,Va;return Object(u.a)(Object(u.a)({},Xa),{},{scrollLeft:On.current.scrollLeft/((_a=On.current)===null||_a===void 0?void 0:_a.scrollWidth)*((Va=On.current)===null||Va===void 0?void 0:Va.clientWidth)})})},[Wi.isHiddenScrollBar]),Mi<=yi||!Oi||Wi.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(B.a)(),width:yi,bottom:$n},className:"".concat(pi,"-sticky-scroll")},o.createElement("div",{onMouseDown:va,ref:zi,className:t()("".concat(pi,"-sticky-scroll-bar"),Object(e.a)({},"".concat(pi,"-sticky-scroll-bar-active"),na)),style:{width:"".concat(Oi,"px"),transform:"translate3d(".concat(Wi.scrollLeft,"px, 0, 0)")}}))},Nt=o.forwardRef($t);function Me(_t,Or){return o.useMemo(function(){var Lr=!!_t;return{isSticky:Lr,stickyClassName:Lr?"".concat(Or,"-sticky-header"):"",offsetHeader:Object(s.a)(_t)==="object"&&_t.offsetHeader||0,offsetScroll:Object(s.a)(_t)==="object"&&_t.offsetScroll||0}},[_t,Or])}var ke=[],Be={},it="rc-table-internal-hook",yt=o.memo(function(_t){var Or=_t.children;return Or},function(_t,Or){return g()(_t.props,Or.props)?_t.pingLeft!==Or.pingLeft||_t.pingRight!==Or.pingRight:!1});function Tt(_t){var Or,Lr=_t.prefixCls,en=_t.className,Sn=_t.rowClassName,On=_t.style,wn=_t.data,$n=_t.rowKey,jn=_t.scroll,pi=_t.tableLayout,Mi=_t.direction,yi=_t.title,Oi=_t.footer,zi=_t.summary,ea=_t.id,Xi=_t.showHeader,Wi=_t.components,ji=_t.emptyText,Ji=_t.onRow,ca=_t.onHeaderRow,Ca=_t.internalHooks,na=_t.transformColumns,Pa=_t.internalRefs,La=_t.sticky,va=wn||ke,ga=!!va.length,Oa=o.useState(0),Aa=Object(c.a)(Oa,2),Xa=Aa[0],_a=Aa[1];o.useEffect(function(){_a(Object(B.a)())});var Va=o.useMemo(function(){return te(Wi,{})},[Wi]),Pi=o.useCallback(function(Vo,No){return Q(Va,Vo)||No},[Va]),io=o.useMemo(function(){return typeof $n=="function"?$n:function(Vo){var No=Vo&&Vo[$n];return No}},[$n]),oo=fe(_t),Qo=oo.expandIcon,mo=oo.expandedRowKeys,To=oo.defaultExpandedRowKeys,ao=oo.defaultExpandAllRows,So=oo.expandedRowRender,bo=oo.onExpand,to=oo.onExpandedRowsChange,Jo=oo.expandRowByClick,Uo=oo.rowExpandable,wo=oo.expandIconColumnIndex,ts=oo.expandedRowClassName,Ia=oo.childrenColumnName,Oo=oo.indentSize,Io=Qo||oi,os=Ia||"children",xo=o.useMemo(function(){return So?"row":_t.expandable&&Ca===it&&_t.expandable.__PARENT_RENDER_ICON__||va.some(function(Vo){return Vo&&Object(s.a)(Vo)==="object"&&Vo[os]})?"nest":!1},[!!So,va]),rs=o.useState(function(){return To||(ao?Ui(va,io,os):[])}),Ho=Object(c.a)(rs,2),_o=Ho[0],uo=Ho[1],Ha=o.useMemo(function(){return new Set(mo||_o||[])},[mo,_o]),ft=o.useCallback(function(Vo){var No=io(Vo,va.indexOf(Vo)),fs,Ds=Ha.has(No);Ds?(Ha.delete(No),fs=Object(r.a)(Ha)):fs=[].concat(Object(r.a)(Ha),[No]),uo(fs),bo&&bo(!Ds,Vo),to&&to(fs)},[io,Ha,va,bo,to]),Tr=o.useState(0),qr=Object(c.a)(Tr,2),Yr=qr[0],Yn=qr[1],dn=Wt(Object(u.a)(Object(u.a)(Object(u.a)({},_t),oo),{},{expandable:!!So,expandedKeys:Ha,getRowKey:io,onTriggerExpand:ft,expandIcon:Io,expandIconColumnIndex:wo,direction:Mi}),Ca===it?na:null),Gr=Object(c.a)(dn,2),ri=Gr[0],rn=Gr[1],Hn=o.useMemo(function(){return{columns:ri,flattenColumns:rn}},[ri,rn]),li=o.useRef(),ci=o.useRef(),si=o.useRef(),Ti=o.useState(!1),mi=Object(c.a)(Ti,2),vi=mi[0],Li=mi[1],ia=o.useState(!1),Ki=Object(c.a)(ia,2),fa=Ki[0],Ya=Ki[1],xa=rr(new Map),wa=Object(c.a)(xa,2),Da=wa[0],ja=wa[1],ko=X(rn),ro=ko.map(function(Vo){return Da.get(Vo)}),pa=o.useMemo(function(){return ro},[ro.join("_")]),Ea=sr(pa,rn.length,Mi),Fa=jn&&$(jn.y),Ka=jn&&$(jn.x),lo=Ka&&rn.some(function(Vo){var No=Vo.fixed;return No}),so=o.useRef(),Co=Me(La,Lr),Lo=Co.isSticky,is=Co.offsetHeader,cs=Co.offsetScroll,Rs=Co.stickyClassName,Ko,as,co;Fa&&(as={overflowY:"scroll",maxHeight:jn.y}),Ka&&(Ko={overflowX:"auto"},Fa||(as={overflowY:"hidden"}),co={width:jn.x===!0?"auto":jn.x,minWidth:"100%"});var Ao=o.useCallback(function(Vo,No){ja(function(fs){var Ds=new Map(fs);return Ds.set(Vo,No),Ds})},[]),$a=ur(null),ss=Object(c.a)($a,2),_s=ss[0],Fo=ss[1];function il(Vo,No){if(!No)return;typeof No=="function"?No(Vo):No.scrollLeft!==Vo&&(No.scrollLeft=Vo)}var Eo=function(No){var fs=No.currentTarget,Ds=No.scrollLeft,go=typeof Ds=="number"?Ds:fs.scrollLeft,Ht=fs||Be;if(!Fo()||Fo()===Ht){var ar;_s(Ht),il(go,ci.current),il(go,si.current),il(go,(ar=so.current)===null||ar===void 0?void 0:ar.setScrollLeft)}if(fs){var In=fs.scrollWidth,hi=fs.clientWidth;Li(go>0),Ya(go<In-hi)}},zo=function(){si.current&&Eo({currentTarget:si.current})},Fs=function(No){var fs=No.width;zo(),Yn(li.current?li.current.offsetWidth:fs)};o.useEffect(function(){return zo},[]),o.useEffect(function(){Ka&&zo()},[Ka]),o.useEffect(function(){Ca===it&&Pa&&(Pa.body.current=si.current)});var ms=Pi(["table"],"table"),hs=o.useMemo(function(){return pi||(lo?jn.x==="max-content"?"auto":"fixed":Fa||rn.some(function(Vo){var No=Vo.ellipsis;return No})?"fixed":"auto")},[Fa,lo,rn,pi]),bn,Ns={colWidths:pa,columCount:rn.length,stickyOffsets:Ea,onHeaderRow:ca,fixHeader:Fa},Ll=o.useMemo(function(){return ga?null:typeof ji=="function"?ji():ji},[ga,ji]),el=o.createElement(Ke,{data:va,measureColumnWidth:Fa||Ka||Lo,expandedKeys:Ha,rowExpandable:Uo,getRowKey:io,onRow:Ji,emptyNode:Ll,childrenColumnName:os}),Gs=o.createElement(_e,{colWidths:rn.map(function(Vo){var No=Vo.width;return No}),columns:rn}),ds=zi&&o.createElement(Mn,null,zi(va)),ks=Pi(["body"]);if(Fa||Lo){var Qs;typeof ks=="function"?(Qs=ks(va,{scrollbarSize:Xa,ref:si,onScroll:Eo}),Ns.colWidths=rn.map(function(Vo,No){var fs=Vo.width,Ds=No===ri.length-1?fs-Xa:fs;return typeof Ds=="number"&&!Number.isNaN(Ds)?Ds:(Object(A.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Qs=o.createElement("div",{style:Object(u.a)(Object(u.a)({},Ko),as),onScroll:Eo,ref:si,className:t()("".concat(Lr,"-body"))},o.createElement(ms,{style:Object(u.a)(Object(u.a)({},co),{},{tableLayout:hs})},Gs,el,ds),Lo&&o.createElement(Nt,{ref:so,offsetScroll:cs,scrollBodyRef:si,onScroll:Eo})),bn=o.createElement(o.Fragment,null,Xi!==!1&&o.createElement(Le,Object.assign({noData:!va.length},Ns,Hn,{direction:Mi,offsetHeader:is,stickyClassName:Rs,ref:ci,onScroll:Eo})),Qs)}else bn=o.createElement("div",{style:Object(u.a)(Object(u.a)({},Ko),as),className:t()("".concat(Lr,"-content")),onScroll:Eo,ref:si},o.createElement(ms,{style:Object(u.a)(Object(u.a)({},co),{},{tableLayout:hs})},Gs,Xi!==!1&&o.createElement(Y,Object.assign({},Ns,Hn)),el,ds));var tl=we(_t),xs=o.createElement("div",Object.assign({className:t()(Lr,en,(Or={},Object(e.a)(Or,"".concat(Lr,"-rtl"),Mi==="rtl"),Object(e.a)(Or,"".concat(Lr,"-ping-left"),vi),Object(e.a)(Or,"".concat(Lr,"-ping-right"),fa),Object(e.a)(Or,"".concat(Lr,"-layout-fixed"),pi==="fixed"),Object(e.a)(Or,"".concat(Lr,"-fixed-header"),Fa),Object(e.a)(Or,"".concat(Lr,"-fixed-column"),lo),Object(e.a)(Or,"".concat(Lr,"-scroll-horizontal"),Ka),Object(e.a)(Or,"".concat(Lr,"-has-fix-left"),rn[0]&&rn[0].fixed),Object(e.a)(Or,"".concat(Lr,"-has-fix-right"),rn[rn.length-1]&&rn[rn.length-1].fixed==="right"),Or)),style:On,id:ea,ref:li},tl),o.createElement(yt,{pingLeft:vi,pingRight:fa,props:Object(u.a)(Object(u.a)({},_t),{},{stickyOffsets:Ea,mergedExpandedKeys:Ha})},yi&&o.createElement(pr,{className:"".concat(Lr,"-title")},yi(va)),o.createElement("div",{className:"".concat(Lr,"-container")},bn),Oi&&o.createElement(pr,{className:"".concat(Lr,"-footer")},Oi(va))));Ka&&(xs=o.createElement(P,{onResize:Fs},xs));var Bs=o.useMemo(function(){return{prefixCls:Lr,getComponent:Pi,scrollbarSize:Xa,direction:Mi,fixedInfoList:rn.map(function(Vo,No){return Ue(No,No,rn,Ea,Mi)}),isSticky:Lo}},[Lr,Pi,Xa,Mi,rn,Ea,Mi,Lo]),al=o.useMemo(function(){return Object(u.a)(Object(u.a)({},Hn),{},{tableLayout:hs,rowClassName:Sn,expandedRowClassName:ts,componentWidth:Yr,fixHeader:Fa,fixColumn:lo,horizonScroll:Ka,expandIcon:Io,expandableType:xo,expandRowByClick:Jo,expandedRowRender:So,onTriggerExpand:ft,expandIconColumnIndex:wo,indentSize:Oo})},[Hn,hs,Sn,ts,Yr,Fa,lo,Ka,Io,xo,Jo,So,ft,wo,Oo]),Js=o.useMemo(function(){return{onColumnResize:Ao}},[Ao]);return o.createElement(ct.Provider,{value:Bs},o.createElement(gt.Provider,{value:al},o.createElement(jt.Provider,{value:Js},xs)))}Tt.Column=j,Tt.ColumnGroup=G,Tt.Summary=Xn,Tt.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var Yt=Tt,Pr=Yt,$r=i("W9HT"),An=i("NUBc"),zt=i("H84U"),At=function(_t,Or){var Lr={};for(var en in _t)Object.prototype.hasOwnProperty.call(_t,en)&&Or.indexOf(en)<0&&(Lr[en]=_t[en]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sn=0,en=Object.getOwnPropertySymbols(_t);Sn<en.length;Sn++)Or.indexOf(en[Sn])<0&&Object.prototype.propertyIsEnumerable.call(_t,en[Sn])&&(Lr[en[Sn]]=_t[en[Sn]]);return Lr},wt=10;function vr(_t,Or){var Lr={current:Or.current,pageSize:Or.pageSize},en=_t&&p()(_t)==="object"?_t:{};return Object.keys(en).forEach(function(Sn){var On=Or[Sn];typeof On!="function"&&(Lr[Sn]=On)}),Lr}function Jt(){for(var _t={},Or=arguments.length,Lr=new Array(Or),en=0;en<Or;en++)Lr[en]=arguments[en];return Lr.forEach(function(Sn){Sn&&Object.keys(Sn).forEach(function(On){var wn=Sn[On];wn!==void 0&&(_t[On]=wn)})}),_t}function Ut(_t,Or,Lr){var en=Or&&p()(Or)==="object"?Or:{},Sn=en.total,On=Sn===void 0?0:Sn,wn=At(en,["total"]),$n=Object(o.useState)(function(){return{current:"defaultCurrent"in wn?wn.defaultCurrent:1,pageSize:"defaultPageSize"in wn?wn.defaultPageSize:wt}}),jn=f()($n,2),pi=jn[0],Mi=jn[1],yi=Jt(pi,wn,{total:On>0?On:_t});if(!On){var Oi=Math.ceil(_t/yi.pageSize);Oi<yi.current&&(yi.current=1)}var zi=function(){var Wi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,ji=arguments.length>1?arguments[1]:void 0;Mi(l()(l()({},yi),{current:Wi,pageSize:ji||yi.pageSize}))},ea=function(Wi,ji){var Ji=yi==null?void 0:yi.pageSize;ji&&ji!==Ji&&(Wi=1,Or&&Or.onShowSizeChange&&Or.onShowSizeChange(Wi,ji)),Or&&Or.onChange&&Or.onChange(Wi,ji),zi(Wi,ji),Lr(Wi,ji||Ji)};return Or===!1?[{},function(){}]:[l()(l()({},yi),{onChange:ea}),zi]}function tr(_t,Or,Lr){var en=o.useRef({});function Sn(On){if(!en.current||en.current.data!==_t||en.current.childrenColumnName!==Or||en.current.getRowKey!==Lr){var wn=function jn(pi){pi.forEach(function(Mi,yi){var Oi=Lr(Mi,yi);$n.set(Oi,Mi),Mi&&p()(Mi)==="object"&&Or in Mi&&jn(Mi[Or]||[])})},$n=new Map;wn(_t),en.current={data:_t,childrenColumnName:Or,kvMap:$n,getRowKey:Lr}}return en.current.kvMap.get(On)}return[Sn]}var Ft=i("SA+Z"),qt=i.n(Ft),Hr=i("RIqP"),Nr=i.n(Hr),Dr=i("HQEm"),cn=i.n(Dr),vn=i("c3jg"),ei=i("qOx5"),qn=i("wPhX"),fi=i("6cGi"),xi=i("kaz8"),Ni=i("jsC+"),Hi=i("BvKs"),nt=i("9yH6"),Ne=i("uaoM"),He="SELECT_ALL",Xe="SELECT_INVERT";function rt(_t){return _t&&_t.fixed}function Ze(_t,Or){var Lr=[];return(_t||[]).forEach(function(en){Lr.push(en),en&&p()(en)==="object"&&Or in en&&(Lr=[].concat(Nr()(Lr),Nr()(Ze(en[Or],Or))))}),Lr}function st(_t,Or){var Lr=_t||{},en=Lr.preserveSelectedRowKeys,Sn=Lr.selectedRowKeys,On=Lr.getCheckboxProps,wn=Lr.onChange,$n=Lr.onSelect,jn=Lr.onSelectAll,pi=Lr.onSelectInvert,Mi=Lr.onSelectMultiple,yi=Lr.columnWidth,Oi=Lr.type,zi=Lr.selections,ea=Lr.fixed,Xi=Lr.renderCell,Wi=Lr.hideSelectAll,ji=Lr.checkStrictly,Ji=ji===void 0?!0:ji,ca=Or.prefixCls,Ca=Or.data,na=Or.pageData,Pa=Or.getRecordByKey,La=Or.getRowKey,va=Or.expandType,ga=Or.childrenColumnName,Oa=Or.locale,Aa=Or.expandIconColumnIndex,Xa=Or.getPopupContainer,_a=o.useRef(new Map),Va=Object(fi.a)(Sn||[],{value:Sn}),Pi=f()(Va,2),io=Pi[0],oo=Pi[1],Qo=Object(o.useMemo)(function(){return Ji?{keyEntities:null}:Object(vn.a)(Ca,void 0,La)},[Ca,La,Ji]),mo=Qo.keyEntities,To=Object(o.useMemo)(function(){return Ze(na,ga)},[na,ga]),ao=Object(o.useMemo)(function(){var uo=new Map;return To.forEach(function(Ha,ft){var Tr=La(Ha,ft),qr=(On?On(Ha):null)||{};uo.set(Tr,qr)}),uo},[To,La,On]),So=Object(o.useCallback)(function(uo){var Ha;return!!((Ha=ao.get(La(uo)))===null||Ha===void 0?void 0:Ha.disabled)},[ao,La]),bo=Object(o.useMemo)(function(){if(Ji)return[io,[]];var uo=Object(ei.a)(io,!0,mo,So),Ha=uo.checkedKeys,ft=uo.halfCheckedKeys;return[Ha,ft]},[io,Ji,mo,So]),to=f()(bo,2),Jo=to[0],Uo=to[1],wo=Object(o.useMemo)(function(){var uo=Oi==="radio"?Jo.slice(0,1):Jo;return new Set(uo)},[Jo,Oi]),ts=Object(o.useMemo)(function(){return Oi==="radio"?new Set:new Set(Uo)},[Uo,Oi]),Ia=Object(o.useState)(null),Oo=f()(Ia,2),Io=Oo[0],os=Oo[1];o.useEffect(function(){_t||oo([])},[!!_t]);var xo=Object(o.useCallback)(function(uo){var Ha,ft;if(en){var Tr=new Map;Ha=uo,ft=uo.map(function(qr){var Yr=Pa(qr);return!Yr&&_a.current.has(qr)&&(Yr=_a.current.get(qr)),Tr.set(qr,Yr),Yr}),_a.current=Tr}else Ha=[],ft=[],uo.forEach(function(qr){var Yr=Pa(qr);Yr!==void 0&&(Ha.push(qr),ft.push(Yr))});oo(Ha),wn&&wn(Ha,ft)},[oo,Pa,wn,en]),rs=Object(o.useCallback)(function(uo,Ha,ft,Tr){if($n){var qr=ft.map(function(Yr){return Pa(Yr)});$n(Pa(uo),Ha,qr,Tr)}xo(ft)},[$n,Pa,xo]),Ho=Object(o.useMemo)(function(){if(!zi||Wi)return null;var uo=zi===!0?[He,Xe]:zi;return uo.map(function(Ha){return Ha===He?{key:"all",text:Oa.selectionAll,onSelect:function(){xo(Ca.map(function(Tr,qr){return La(Tr,qr)}))}}:Ha===Xe?{key:"invert",text:Oa.selectInvert,onSelect:function(){var Tr=new Set(wo);na.forEach(function(Yr,Yn){var dn=La(Yr,Yn);Tr.has(dn)?Tr.delete(dn):Tr.add(dn)});var qr=Array.from(Tr);xo(qr),pi&&(Object(Ne.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),pi(qr))}}:Ha})},[zi,wo,na,La,pi,xo]),_o=Object(o.useCallback)(function(uo){if(!_t)return uo;var Ha=new Set(wo),ft=To.map(La).filter(function(vi){return!ao.get(vi).disabled}),Tr=ft.every(function(vi){return Ha.has(vi)}),qr=ft.some(function(vi){return Ha.has(vi)}),Yr=function(){var Li=[];Tr?ft.forEach(function(Ki){Ha.delete(Ki),Li.push(Ki)}):ft.forEach(function(Ki){Ha.has(Ki)||(Ha.add(Ki),Li.push(Ki))});var ia=Array.from(Ha);xo(ia),jn&&jn(!Tr,ia.map(function(Ki){return Pa(Ki)}),Li.map(function(Ki){return Pa(Ki)}))},Yn;if(Oi!=="radio"){var dn;if(Ho){var Gr=o.createElement(Hi.a,{getPopupContainer:Xa},Ho.map(function(vi,Li){var ia=vi.key,Ki=vi.text,fa=vi.onSelect;return o.createElement(Hi.a.Item,{key:ia||Li,onClick:function(){fa&&fa(ft)}},Ki)}));dn=o.createElement("div",{className:"".concat(ca,"-selection-extra")},o.createElement(Ni.a,{overlay:Gr,getPopupContainer:Xa},o.createElement("span",null,o.createElement(cn.a,null))))}var ri=To.every(function(vi,Li){var ia=La(vi,Li),Ki=ao.get(ia)||{};return Ki.disabled});Yn=!Wi&&o.createElement("div",{className:"".concat(ca,"-selection")},o.createElement(xi.a,{checked:!ri&&!!To.length&&Tr,indeterminate:!Tr&&qr,onChange:Yr,disabled:To.length===0||ri}),dn)}var rn;Oi==="radio"?rn=function(Li,ia,Ki){var fa=La(ia,Ki),Ya=Ha.has(fa);return{node:o.createElement(nt.a,l()({},ao.get(fa),{checked:Ya,onClick:function(wa){return wa.stopPropagation()},onChange:function(wa){Ha.has(fa)||rs(fa,!0,[fa],wa.nativeEvent)}})),checked:Ya}}:rn=function(Li,ia,Ki){var fa,Ya=La(ia,Ki),xa=Ha.has(Ya),wa=ts.has(Ya),Da=ao.get(Ya),ja;return va==="nest"?(ja=wa,Object(Ne.a)(!(typeof(Da==null?void 0:Da.indeterminate)=="boolean"),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ja=(fa=Da==null?void 0:Da.indeterminate)!==null&&fa!==void 0?fa:wa,{node:o.createElement(xi.a,l()({},Da,{indeterminate:ja,checked:xa,onClick:function(ro){return ro.stopPropagation()},onChange:function(ro){var pa=ro.nativeEvent,Ea=pa.shiftKey,Fa=-1,Ka=-1;if(Ea&&Ji){var lo=new Set([Io,Ya]);ft.some(function($a,ss){if(lo.has($a))if(Fa===-1)Fa=ss;else return Ka=ss,!0;return!1})}if(Ka!==-1&&Fa!==Ka&&Ji){var so=ft.slice(Fa,Ka+1),Co=[];xa?so.forEach(function($a){Ha.has($a)&&(Co.push($a),Ha.delete($a))}):so.forEach(function($a){Ha.has($a)||(Co.push($a),Ha.add($a))});var Lo=Array.from(Ha);xo(Lo),Mi&&Mi(!xa,Lo.map(function($a){return Pa($a)}),Co.map(function($a){return Pa($a)}))}else{var is=Jo;if(Ji){var cs=xa?Object(qn.b)(is,Ya):Object(qn.a)(is,Ya);rs(Ya,!xa,cs,pa)}else{var Rs=Object(ei.a)([].concat(Nr()(is),[Ya]),!0,mo,So),Ko=Rs.checkedKeys,as=Rs.halfCheckedKeys,co=Ko;if(xa){var Ao=new Set(Ko);Ao.delete(Ya),co=Object(ei.a)(Array.from(Ao),{checked:!1,halfCheckedKeys:as},mo,So).checkedKeys}rs(Ya,!xa,co,pa)}}os(Ya)}})),checked:xa}};var Hn=function(Li,ia,Ki){var fa=rn(Li,ia,Ki),Ya=fa.node,xa=fa.checked;return Xi?Xi(xa,ia,Ki,Ya):Ya},li=v()({width:yi,className:"".concat(ca,"-selection-column"),title:_t.columnTitle||Yn,render:Hn},ee,{className:"".concat(ca,"-selection-col")});if(va==="row"&&uo.length&&!Aa){var ci=qt()(uo),si=ci[0],Ti=ci.slice(1),mi=ea||rt(Ti[0]);return mi&&(si.fixed=mi),[si,l()(l()({},li),{fixed:mi})].concat(Nr()(Ti))}return[l()(l()({},li),{fixed:ea||rt(uo[0])})].concat(Nr()(uo))},[La,To,_t,Jo,wo,ts,yi,Ho,va,Io,ao,Mi,rs,So]);return[_o,wo]}var xt=i("6SEX"),pt=i.n(xt),hr=i("i8CU"),Zr=i.n(hr),Xr=i("3S7+");function pn(_t,Or){return"key"in _t&&_t.key!==void 0&&_t.key!==null?_t.key:_t.dataIndex?Array.isArray(_t.dataIndex)?_t.dataIndex.join("."):_t.dataIndex:Or}function gr(_t,Or){return Or?"".concat(Or,"-").concat(_t):"".concat(_t)}function Kn(_t,Or){return typeof _t=="function"?_t(Or):_t}var Rr="ascend",Pn="descend";function an(_t){return p()(_t.sorter)==="object"&&typeof _t.sorter.multiple=="number"?_t.sorter.multiple:!1}function Ur(_t){return typeof _t=="function"?_t:_t&&p()(_t)==="object"&&_t.compare?_t.compare:!1}function ii(_t,Or){return Or?_t[_t.indexOf(Or)+1]:_t[0]}function _i(_t,Or,Lr){var en=[];function Sn(On,wn){en.push({column:On,key:pn(On,wn),multiplePriority:an(On),sortOrder:On.sortOrder})}return(_t||[]).forEach(function(On,wn){var $n=gr(wn,Lr);On.children?("sortOrder"in On&&Sn(On,$n),en=[].concat(Nr()(en),Nr()(_i(On.children,Or,$n)))):On.sorter&&("sortOrder"in On?Sn(On,$n):Or&&On.defaultSortOrder&&en.push({column:On,key:pn(On,$n),multiplePriority:an(On),sortOrder:On.defaultSortOrder}))}),en}function Gi(_t,Or,Lr,en,Sn,On,wn,$n){return(Or||[]).map(function(jn,pi){var Mi=gr(pi,$n),yi=jn;if(yi.sorter){var Oi=yi.sortDirections||Sn,zi=yi.showSorterTooltip===void 0?wn:yi.showSorterTooltip,ea=pn(yi,Mi),Xi=Lr.find(function(ga){var Oa=ga.key;return Oa===ea}),Wi=Xi?Xi.sortOrder:null,ji=ii(Oi,Wi),Ji=Oi.includes(Rr)&&o.createElement(Zr.a,{className:t()("".concat(_t,"-column-sorter-up"),{active:Wi===Rr})}),ca=Oi.includes(Pn)&&o.createElement(pt.a,{className:t()("".concat(_t,"-column-sorter-down"),{active:Wi===Pn})}),Ca=On||{},na=Ca.cancelSort,Pa=Ca.triggerAsc,La=Ca.triggerDesc,va=na;ji===Pn?va=La:ji===Rr&&(va=Pa),yi=l()(l()({},yi),{className:t()(yi.className,v()({},"".concat(_t,"-column-sort"),Wi)),title:function(Oa){var Aa=o.createElement("div",{className:"".concat(_t,"-column-sorters")},o.createElement("span",null,Kn(jn.title,Oa)),o.createElement("span",{className:t()("".concat(_t,"-column-sorter"),v()({},"".concat(_t,"-column-sorter-full"),Ji&&ca))},o.createElement("span",{className:"".concat(_t,"-column-sorter-inner")},Ji,ca)));return zi?o.createElement(Xr.a,{title:va},o.createElement("div",{className:"".concat(_t,"-column-sorters-with-tooltip")},Aa)):Aa},onHeaderCell:function(Oa){var Aa=jn.onHeaderCell&&jn.onHeaderCell(Oa)||{},Xa=Aa.onClick;return Aa.onClick=function(_a){en({column:jn,key:ea,sortOrder:ji,multiplePriority:an(jn)}),Xa&&Xa(_a)},Aa.className=t()(Aa.className,"".concat(_t,"-column-has-sorters")),Aa}})}return"children"in yi&&(yi=l()(l()({},yi),{children:Gi(_t,yi.children,Lr,en,Sn,On,wn,Mi)})),yi})}function tn(_t){var Or=_t.column,Lr=_t.sortOrder;return{column:Or,order:Lr,field:Or.dataIndex,columnKey:Or.key}}function Tn(_t){var Or=_t.filter(function(Lr){var en=Lr.sortOrder;return en}).map(tn);return Or.length===0&&_t.length?l()(l()({},tn(_t[_t.length-1])),{column:void 0}):Or.length<=1?Or[0]||{}:Or}function Vn(_t,Or,Lr){var en=Or.slice().sort(function(wn,$n){return $n.multiplePriority-wn.multiplePriority}),Sn=_t.slice(),On=en.filter(function(wn){var $n=wn.column.sorter,jn=wn.sortOrder;return Ur($n)&&jn});return On.length?Sn.sort(function(wn,$n){for(var jn=0;jn<On.length;jn+=1){var pi=On[jn],Mi=pi.column.sorter,yi=pi.sortOrder,Oi=Ur(Mi);if(Oi&&yi){var zi=Oi(wn,$n,yi);if(zi!==0)return yi===Rr?zi:-zi}}return 0}).map(function(wn){var $n=wn[Lr];return $n?l()(l()({},wn),v()({},Lr,Vn($n,Or,Lr))):wn}):Sn}function Xt(_t){var Or=_t.prefixCls,Lr=_t.mergedColumns,en=_t.onSorterChange,Sn=_t.sortDirections,On=_t.tableLocale,wn=_t.showSorterTooltip,$n=o.useState(_i(Lr,!0)),jn=f()($n,2),pi=jn[0],Mi=jn[1],yi=o.useMemo(function(){var Wi=!0,ji=_i(Lr,!1);if(!ji.length)return pi;var Ji=[];function ca(na){Wi?Ji.push(na):Ji.push(l()(l()({},na),{sortOrder:null}))}var Ca=null;return ji.forEach(function(na){Ca===null?(ca(na),na.sortOrder&&(na.multiplePriority===!1?Wi=!1:Ca=!0)):(Ca&&na.multiplePriority!==!1||(Wi=!1),ca(na))}),Ji},[Lr,pi]),Oi=o.useMemo(function(){var Wi=yi.map(function(ji){var Ji=ji.column,ca=ji.sortOrder;return{column:Ji,order:ca}});return{sortColumns:Wi,sortColumn:Wi[0]&&Wi[0].column,sortOrder:Wi[0]&&Wi[0].order}},[yi]);function zi(Wi){var ji;Wi.multiplePriority===!1||!yi.length||yi[0].multiplePriority===!1?ji=[Wi]:ji=[].concat(Nr()(yi.filter(function(Ji){var ca=Ji.key;return ca!==Wi.key})),[Wi]),Mi(ji),en(Tn(ji),ji)}var ea=function(ji){return Gi(Or,ji,yi,zi,Sn,On,wn)},Xi=function(){return Tn(yi)};return[ea,yi,Oi,Xi]}var It=i("Y+p1"),Pt=i.n(It),Kt=i("5Uyt"),Gt=i.n(Kt),Dt=i("2/Rp"),lr=i("ECub"),Ar=function(Or){return o.createElement("div",{className:Or.className,onClick:function(en){return en.stopPropagation()}},Or.children)},yr=Ar,Mr=i("sPtV"),zn=Hi.a.SubMenu,Rn=Hi.a.Item;function di(_t){return _t.some(function(Or){var Lr=Or.children;return Lr})}function gn(_t){var Or=_t.filters,Lr=_t.prefixCls,en=_t.filteredKeys,Sn=_t.filterMultiple,On=_t.locale;return Or.length===0?o.createElement(o.Fragment,null,o.createElement(lr.a,{image:lr.a.PRESENTED_IMAGE_SIMPLE,description:On.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}})):Or.map(function(wn,$n){var jn=String(wn.value);if(wn.children)return o.createElement(zn,{key:jn||$n,title:wn.text,popupClassName:"".concat(Lr,"-dropdown-submenu")},gn({filters:wn.children,prefixCls:Lr,filteredKeys:en,filterMultiple:Sn,locale:On}));var pi=Sn?xi.a:nt.a;return o.createElement(Rn,{key:wn.value!==void 0?jn:$n},o.createElement(pi,{checked:en.includes(jn)}),o.createElement("span",null,wn.text))})}function Br(_t){var Or,Lr=_t.prefixCls,en=_t.column,Sn=_t.dropdownPrefixCls,On=_t.columnKey,wn=_t.filterMultiple,$n=_t.filterState,jn=_t.triggerFilter,pi=_t.locale,Mi=_t.children,yi=_t.getPopupContainer,Oi=en.filterDropdownVisible,zi=en.onFilterDropdownVisibleChange,ea=o.useState(!1),Xi=f()(ea,2),Wi=Xi[0],ji=Xi[1],Ji=!!($n&&(((Or=$n.filteredKeys)===null||Or===void 0?void 0:Or.length)||$n.forceFiltered)),ca=function(Oo){ji(Oo),zi&&zi(Oo)},Ca=typeof Oi=="boolean"?Oi:Wi,na=$n&&$n.filteredKeys,Pa=Object(Mr.a)(na||[]),La=f()(Pa,2),va=La[0],ga=La[1],Oa=function(Oo){var Io=Oo.selectedKeys;ga(Io)};o.useEffect(function(){Oa({selectedKeys:na||[]})},[na]);var Aa=o.useState([]),Xa=f()(Aa,2),_a=Xa[0],Va=Xa[1],Pi=o.useRef(),io=function(Oo){Pi.current=window.setTimeout(function(){Va(Oo)})},oo=function(){window.clearTimeout(Pi.current)};o.useEffect(function(){return function(){window.clearTimeout(Pi.current)}},[]);var Qo=function(Oo){ca(!1);var Io=Oo&&Oo.length?Oo:null;if(Io===null&&(!$n||!$n.filteredKeys))return null;if(Pt()(Io,$n==null?void 0:$n.filteredKeys))return null;jn({column:en,key:On,filteredKeys:Io})},mo=function(){Qo(va())},To=function(){ga([]),Qo([])},ao=function(Oo){Oo&&na!==void 0&&ga(na||[]),ca(Oo),!Oo&&!en.filterDropdown&&mo()},So=t()(v()({},"".concat(Sn,"-menu-without-submenu"),!di(en.filters||[]))),bo;if(typeof en.filterDropdown=="function")bo=en.filterDropdown({prefixCls:"".concat(Sn,"-custom"),setSelectedKeys:function(Oo){return Oa({selectedKeys:Oo})},selectedKeys:va(),confirm:mo,clearFilters:To,filters:en.filters,visible:Ca});else if(en.filterDropdown)bo=en.filterDropdown;else{var to=va()||[];bo=o.createElement(o.Fragment,null,o.createElement(Hi.a,{multiple:wn,prefixCls:"".concat(Sn,"-menu"),className:So,onClick:oo,onSelect:Oa,onDeselect:Oa,selectedKeys:to,getPopupContainer:yi,openKeys:_a,onOpenChange:io},gn({filters:en.filters||[],prefixCls:Lr,filteredKeys:va(),filterMultiple:wn,locale:pi})),o.createElement("div",{className:"".concat(Lr,"-dropdown-btns")},o.createElement(Dt.a,{type:"link",size:"small",disabled:to.length===0,onClick:To},pi.filterReset),o.createElement(Dt.a,{type:"primary",size:"small",onClick:mo},pi.filterConfirm)))}var Jo=o.createElement(yr,{className:"".concat(Lr,"-dropdown")},bo),Uo;typeof en.filterIcon=="function"?Uo=en.filterIcon(Ji):en.filterIcon?Uo=en.filterIcon:Uo=o.createElement(Gt.a,null);var wo=o.useContext(zt.b),ts=wo.direction;return o.createElement("div",{className:t()("".concat(Lr,"-column"))},o.createElement("span",{className:"".concat(Lr,"-column-title")},Mi),o.createElement("span",{className:t()("".concat(Lr,"-trigger-container"),v()({},"".concat(Lr,"-trigger-container-open"),Ca)),onClick:function(Oo){Oo.stopPropagation()}},o.createElement(Ni.a,{overlay:Jo,trigger:["click"],visible:Ca,onVisibleChange:ao,getPopupContainer:yi,placement:ts==="rtl"?"bottomLeft":"bottomRight"},o.createElement("span",{role:"button",tabIndex:-1,className:t()("".concat(Lr,"-trigger"),{active:Ji})},Uo))))}var _n=Br;function Gn(_t,Or,Lr){var en=[];return(_t||[]).forEach(function(Sn,On){var wn=gr(On,Lr);"children"in Sn?en=[].concat(Nr()(en),Nr()(Gn(Sn.children,Or,wn))):(Sn.filters||"filterDropdown"in Sn||"onFilter"in Sn)&&("filteredValue"in Sn?en.push({column:Sn,key:pn(Sn,wn),filteredKeys:Sn.filteredValue,forceFiltered:Sn.filtered}):en.push({column:Sn,key:pn(Sn,wn),filteredKeys:Or&&Sn.defaultFilteredValue?Sn.defaultFilteredValue:void 0,forceFiltered:Sn.filtered}))}),en}function Zn(_t,Or,Lr,en,Sn,On,wn,$n){return Lr.map(function(jn,pi){var Mi=gr(pi,$n),yi=jn.filterMultiple,Oi=yi===void 0?!0:yi;if(jn.filters||"filterDropdown"in jn){var zi=pn(jn,Mi),ea=en.find(function(Xi){var Wi=Xi.key;return zi===Wi});return l()(l()({},jn),{title:function(Wi){return o.createElement(_n,{prefixCls:"".concat(_t,"-filter"),dropdownPrefixCls:Or,column:jn,columnKey:zi,filterState:ea,filterMultiple:Oi,triggerFilter:Sn,locale:wn,getPopupContainer:On},Kn(jn.title,Wi))}})}return"children"in jn?l()(l()({},jn),{children:Zn(_t,Or,jn.children,en,Sn,On,wn,Mi)}):jn})}function ai(_t){var Or={};return _t.forEach(function(Lr){var en=Lr.key,Sn=Lr.filteredKeys;Or[en]=Sn||null}),Or}function Ei(_t){var Or=[];return(_t||[]).forEach(function(Lr){var en=Lr.value,Sn=Lr.children;Or.push(en),Sn&&(Or=[].concat(Nr()(Or),Nr()(Ei(Sn))))}),Or}function Ri(_t,Or){return Or.reduce(function(Lr,en){var Sn=en.column,On=Sn.onFilter,wn=Sn.filters,$n=en.filteredKeys;return On&&$n&&$n.length?Lr.filter(function(jn){return $n.some(function(pi){var Mi=Ei(wn),yi=Mi.findIndex(function(zi){return String(zi)===String(pi)}),Oi=yi!==-1?Mi[yi]:pi;return On(Oi,jn)})}):Lr},_t)}function Di(_t){var Or=_t.prefixCls,Lr=_t.dropdownPrefixCls,en=_t.mergedColumns,Sn=_t.onFilterChange,On=_t.getPopupContainer,wn=_t.locale,$n=o.useState(Gn(en,!0)),jn=f()($n,2),pi=jn[0],Mi=jn[1],yi=o.useMemo(function(){var Xi=Gn(en,!1);return Xi.every(function(Wi){var ji=Wi.filteredKeys;return ji===void 0})?pi:Xi},[en,pi]),Oi=o.useCallback(function(){return ai(yi)},[yi]),zi=function(Wi){var ji=yi.filter(function(Ji){var ca=Ji.key;return ca!==Wi.key});ji.push(Wi),Mi(ji),Sn(ai(ji),ji)},ea=function(Wi){return Zn(Or,Lr,Wi,yi,zi,On,wn)};return[ea,yi,Oi]}var oa=Di;function ma(_t,Or){return _t.map(function(Lr){var en=l()({},Lr);return en.title=Kn(Lr.title,Or),"children"in en&&(en.children=ma(en.children,Or)),en})}function aa(_t){var Or=o.useCallback(function(Lr){return ma(Lr,_t)},[_t]);return[Or]}function ba(_t){return function(Lr){var en,Sn=Lr.prefixCls,On=Lr.onExpand,wn=Lr.record,$n=Lr.expanded,jn=Lr.expandable,pi="".concat(Sn,"-row-expand-icon");return o.createElement("button",{type:"button",onClick:function(yi){On(wn,yi),yi.stopPropagation()},className:t()(pi,(en={},v()(en,"".concat(pi,"-spaced"),!jn),v()(en,"".concat(pi,"-expanded"),jn&&$n),v()(en,"".concat(pi,"-collapsed"),jn&&!$n),en)),"aria-label":$n?_t.collapse:_t.expand})}}var Ai=ba,Dn=i("zAh6"),Bi=i("ZvpZ"),ha=Bi.a,ta=i("3Nzz");function ra(_t){return null}var Ir=ra;function Sr(_t){return null}var En=Sr,fr=i("5OYt"),kr=[];function Vr(_t){var Or,Lr=_t.prefixCls,en=_t.className,Sn=_t.style,On=_t.size,wn=_t.bordered,$n=_t.dropdownPrefixCls,jn=_t.dataSource,pi=_t.pagination,Mi=_t.rowSelection,yi=_t.rowKey,Oi=_t.rowClassName,zi=_t.columns,ea=_t.children,Xi=_t.childrenColumnName,Wi=_t.onChange,ji=_t.getPopupContainer,Ji=_t.loading,ca=_t.expandIcon,Ca=_t.expandable,na=_t.expandedRowRender,Pa=_t.expandIconColumnIndex,La=_t.indentSize,va=_t.scroll,ga=_t.sortDirections,Oa=_t.locale,Aa=_t.showSorterTooltip,Xa=Aa===void 0?!0:Aa;Object(Ne.a)(!(typeof yi=="function"&&yi.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var _a=Object(fr.a)(),Va=o.useMemo(function(){var Ao=new Set(Object.keys(_a).filter(function($a){return _a[$a]}));return(zi||de(ea)).filter(function($a){return!$a.responsive||$a.responsive.some(function(ss){return Ao.has(ss)})})},[ea,zi,_a]),Pi=Object(a.default)(_t,["className","style","columns"]),io=o.useContext(ta.b),oo=o.useContext(zt.b),Qo=oo.locale,mo=Qo===void 0?ha:Qo,To=oo.renderEmpty,ao=oo.direction,So=On||io,bo=l()(l()({},mo.Table),Oa),to=jn||kr,Jo=o.useContext(zt.b),Uo=Jo.getPrefixCls,wo=Uo("table",Lr),ts=Uo("dropdown",$n),Ia=l()({childrenColumnName:Xi,expandIconColumnIndex:Pa},Ca),Oo=Ia.childrenColumnName,Io=Oo===void 0?"children":Oo,os=o.useMemo(function(){return to.some(function(Ao){var $a;return($a=Ao)===null||$a===void 0?void 0:$a[Io]})?"nest":na||Ca&&Ca.expandedRowRender?"row":null},[to]),xo={body:o.useRef()},rs=o.useMemo(function(){return typeof yi=="function"?yi:function(Ao){var $a;return($a=Ao)===null||$a===void 0?void 0:$a[yi]}},[yi]),Ho=tr(to,Io,rs),_o=f()(Ho,1),uo=_o[0],Ha={},ft=function($a,ss){var _s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Fo=l()(l()({},Ha),$a);_s&&(Ha.resetPagination(),Fo.pagination.current&&(Fo.pagination.current=1),pi&&pi.onChange&&pi.onChange(1,Fo.pagination.pageSize)),va&&va.scrollToFirstRowOnChange!==!1&&xo.body.current&&Object(Dn.a)(0,{getContainer:function(){return xo.body.current}}),Wi&&Wi(Fo.pagination,Fo.filters,Fo.sorter,{currentDataSource:Ri(Vn(to,Fo.sorterStates,Io),Fo.filterStates),action:ss})},Tr=function($a,ss){ft({sorter:$a,sorterStates:ss},"sort",!1)},qr=Xt({prefixCls:wo,mergedColumns:Va,onSorterChange:Tr,sortDirections:ga||["ascend","descend"],tableLocale:bo,showSorterTooltip:Xa}),Yr=f()(qr,4),Yn=Yr[0],dn=Yr[1],Gr=Yr[2],ri=Yr[3],rn=o.useMemo(function(){return Vn(to,dn,Io)},[to,dn]);Ha.sorter=ri(),Ha.sorterStates=dn;var Hn=function($a,ss){ft({filters:$a,filterStates:ss},"filter",!0)},li=oa({prefixCls:wo,locale:bo,dropdownPrefixCls:ts,mergedColumns:Va,onFilterChange:Hn,getPopupContainer:ji}),ci=f()(li,3),si=ci[0],Ti=ci[1],mi=ci[2],vi=Ri(rn,Ti);Ha.filters=mi(),Ha.filterStates=Ti;var Li=o.useMemo(function(){return l()({},Gr)},[Gr]),ia=aa(Li),Ki=f()(ia,1),fa=Ki[0],Ya=function($a,ss){ft({pagination:l()(l()({},Ha.pagination),{current:$a,pageSize:ss})},"paginate")},xa=Ut(vi.length,pi,Ya),wa=f()(xa,2),Da=wa[0],ja=wa[1];Ha.pagination=pi===!1?{}:vr(pi,Da),Ha.resetPagination=ja;var ko=o.useMemo(function(){if(pi===!1||!Da.pageSize)return vi;var Ao=Da.current,$a=Ao===void 0?1:Ao,ss=Da.total,_s=Da.pageSize,Fo=_s===void 0?wt:_s;return vi.length<ss?vi.length>Fo?(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."),vi.slice(($a-1)*Fo,$a*Fo)):vi:vi.slice(($a-1)*Fo,$a*Fo)},[!!pi,vi,Da&&Da.current,Da&&Da.pageSize,Da&&Da.total]),ro=st(Mi,{prefixCls:wo,data:vi,pageData:ko,getRowKey:rs,getRecordByKey:uo,expandType:os,childrenColumnName:Io,locale:bo,expandIconColumnIndex:Ia.expandIconColumnIndex,getPopupContainer:ji}),pa=f()(ro,2),Ea=pa[0],Fa=pa[1],Ka=function($a,ss,_s){var Fo;return typeof Oi=="function"?Fo=t()(Oi($a,ss,_s)):Fo=t()(Oi),t()(v()({},"".concat(wo,"-row-selected"),Fa.has(rs($a,ss))),Fo)};Ia.__PARENT_RENDER_ICON__=Ia.expandIcon,Ia.expandIcon=Ia.expandIcon||ca||Ai(bo),os==="nest"&&Ia.expandIconColumnIndex===void 0?Ia.expandIconColumnIndex=Mi?1:0:Ia.expandIconColumnIndex>0&&Mi&&(Ia.expandIconColumnIndex-=1),typeof Ia.indentSize!="number"&&(Ia.indentSize=typeof La=="number"?La:15);var lo=o.useCallback(function(Ao){return fa(Ea(si(Yn(Ao))))},[Yn,si,Ea]),so,Co;if(pi!==!1){var Lo;Da.size?Lo=Da.size:Lo=So==="small"||So==="middle"?"small":void 0;var is=function($a){return o.createElement(An.a,l()({className:"".concat(wo,"-pagination ").concat(wo,"-pagination-").concat($a)},Da,{size:Lo}))},cs=ao==="rtl"?"left":"right";if(Da.position!==null&&Array.isArray(Da.position)){var Rs=Da.position.find(function(Ao){return Ao.indexOf("top")!==-1}),Ko=Da.position.find(function(Ao){return Ao.indexOf("bottom")!==-1});!Rs&&!Ko?Co=is(cs):(Rs&&(so=is(Rs.toLowerCase().replace("top",""))),Ko&&(Co=is(Ko.toLowerCase().replace("bottom",""))))}else Co=is(cs)}var as;typeof Ji=="boolean"?as={spinning:Ji}:p()(Ji)==="object"&&(as=l()({spinning:!0},Ji));var co=t()("".concat(wo,"-wrapper"),en,v()({},"".concat(wo,"-wrapper-rtl"),ao==="rtl"));return o.createElement("div",{className:co,style:Sn},o.createElement($r.a,l()({spinning:!1},as),so,o.createElement(Pr,l()({},Pi,{columns:Va,direction:ao,expandable:Ia,prefixCls:wo,className:t()((Or={},v()(Or,"".concat(wo,"-middle"),So==="middle"),v()(Or,"".concat(wo,"-small"),So==="small"),v()(Or,"".concat(wo,"-bordered"),wn),v()(Or,"".concat(wo,"-empty"),to.length===0),Or)),data:ko,rowKey:rs,rowClassName:Ka,emptyText:Oa&&Oa.emptyText||To("Table"),internalHooks:it,internalRefs:xo,transformColumns:lo})),vi&&vi.length>0&&Co))}Vr.defaultProps={rowKey:"key"},Vr.SELECTION_ALL=He,Vr.SELECTION_INVERT=Xe,Vr.Column=Ir,Vr.ColumnGroup=En,Vr.Summary=Xn;var un=Vr,kn=D.a=un},wDdD:function(R,D,i){var y=i("ProS"),p=i("bYtY");i("98bh"),i("GrNh");var x=i("d4KN"),v=i("mOdp"),m=i("KS52"),f=i("0/Rx");x("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),y.registerVisual(v("pie")),y.registerLayout(p.curry(m,"pie")),y.registerProcessor(f("pie"))},"wF/u":function(R,D,i){var y=i("e5cp"),p=i("ExA7");function x(v,m,f,d,l){return v===m?!0:v==null||m==null||!p(v)&&!p(m)?v!==v&&m!==m:y(v,m,f,d,x,l)}R.exports=x},wJg7:function(R,D){var i=9007199254740991,y=/^(?:0|[1-9]\d*)$/;function p(x,v){var m=typeof x;return v=v==null?i:v,!!v&&(m=="number"||m!="symbol"&&y.test(x))&&(x>-1&&x%1==0)&&x<v}R.exports=p},wOnQ:function(R,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){R.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(be,De){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,dt){ze.__proto__=dt}||function(ze,dt){for(var mr in dt)Object.prototype.hasOwnProperty.call(dt,mr)&&(ze[mr]=dt[mr])},y(be,De)};function p(Er,be){if(typeof be!="function"&&be!==null)throw new TypeError("Class extends value "+String(be)+" is not a constructor or null");y(Er,be);function De(){this.constructor=Er}Er.prototype=be===null?Object.create(be):(De.prototype=be.prototype,new De)}var x=function(){return x=Object.assign||function(De){for(var ze,dt=1,mr=arguments.length;dt<mr;dt++){ze=arguments[dt];for(var nn in ze)Object.prototype.hasOwnProperty.call(ze,nn)&&(De[nn]=ze[nn])}return De},x.apply(this,arguments)};function v(Er,be,De,ze){function dt(mr){return mr instanceof De?mr:new De(function(nn){nn(mr)})}return new(De||(De=Promise))(function(mr,nn){function xn(Yi){try{ni(ze.next(Yi))}catch(Fi){nn(Fi)}}function Fn(Yi){try{ni(ze.throw(Yi))}catch(Fi){nn(Fi)}}function ni(Yi){Yi.done?mr(Yi.value):dt(Yi.value).then(xn,Fn)}ni((ze=ze.apply(Er,be||[])).next())})}function m(Er,be){var De={label:0,sent:function(){if(mr[0]&1)throw mr[1];return mr[1]},trys:[],ops:[]},ze,dt,mr,nn;return nn={next:xn(0),throw:xn(1),return:xn(2)},typeof Symbol=="function"&&(nn[Symbol.iterator]=function(){return this}),nn;function xn(ni){return function(Yi){return Fn([ni,Yi])}}function Fn(ni){if(ze)throw new TypeError("Generator is already executing.");for(;De;)try{if(ze=1,dt&&(mr=ni[0]&2?dt.return:ni[0]?dt.throw||((mr=dt.return)&&mr.call(dt),0):dt.next)&&!(mr=mr.call(dt,ni[1])).done)return mr;(dt=0,mr)&&(ni=[ni[0]&2,mr.value]);switch(ni[0]){case 0:case 1:mr=ni;break;case 4:return De.label++,{value:ni[1],done:!1};case 5:De.label++,dt=ni[1],ni=[0];continue;case 7:ni=De.ops.pop(),De.trys.pop();continue;default:if(!(mr=De.trys,mr=mr.length>0&&mr[mr.length-1])&&(ni[0]===6||ni[0]===2)){De=0;continue}if(ni[0]===3&&(!mr||ni[1]>mr[0]&&ni[1]<mr[3])){De.label=ni[1];break}if(ni[0]===6&&De.label<mr[1]){De.label=mr[1],mr=ni;break}if(mr&&De.label<mr[2]){De.label=mr[2],De.ops.push(ni);break}mr[2]&&De.ops.pop(),De.trys.pop();continue}ni=be.call(Er,De)}catch(Yi){ni=[6,Yi],dt=0}finally{ze=mr=0}if(ni[0]&5)throw ni[1];return{value:ni[0]?ni[1]:void 0,done:!0}}}function f(Er,be,De){if(De||arguments.length===2)for(var ze=0,dt=be.length,mr;ze<dt;ze++)(mr||!(ze in be))&&(mr||(mr=Array.prototype.slice.call(be,0,ze)),mr[ze]=be[ze]);return Er.concat(mr||be)}for(var d=function(){function Er(be,De,ze,dt){this.left=be,this.top=De,this.width=ze,this.height=dt}return Er.prototype.add=function(be,De,ze,dt){return new Er(this.left+be,this.top+De,this.width+ze,this.height+dt)},Er.fromClientRect=function(be,De){return new Er(De.left+be.windowBounds.left,De.top+be.windowBounds.top,De.width,De.height)},Er.fromDOMRectList=function(be,De){var ze=Array.from(De).find(function(dt){return dt.width!==0});return ze?new Er(ze.left+be.windowBounds.left,ze.top+be.windowBounds.top,ze.width,ze.height):Er.EMPTY},Er.EMPTY=new Er(0,0,0,0),Er}(),l=function(be,De){return d.fromClientRect(be,De.getBoundingClientRect())},o=function(be){var De=be.body,ze=be.documentElement;if(!De||!ze)throw new Error("Unable to get document size");var dt=Math.max(Math.max(De.scrollWidth,ze.scrollWidth),Math.max(De.offsetWidth,ze.offsetWidth),Math.max(De.clientWidth,ze.clientWidth)),mr=Math.max(Math.max(De.scrollHeight,ze.scrollHeight),Math.max(De.offsetHeight,ze.offsetHeight),Math.max(De.clientHeight,ze.clientHeight));return new d(0,0,dt,mr)},n=function(be){for(var De=[],ze=0,dt=be.length;ze<dt;){var mr=be.charCodeAt(ze++);if(mr>=55296&&mr<=56319&&ze<dt){var nn=be.charCodeAt(ze++);(nn&64512)===56320?De.push(((mr&1023)<<10)+(nn&1023)+65536):(De.push(mr),ze--)}else De.push(mr)}return De},t=function(){for(var be=[],De=0;De<arguments.length;De++)be[De]=arguments[De];if(String.fromCodePoint)return String.fromCodePoint.apply(String,be);var ze=be.length;if(!ze)return"";for(var dt=[],mr=-1,nn="";++mr<ze;){var xn=be[mr];xn<=65535?dt.push(xn):(xn-=65536,dt.push((xn>>10)+55296,xn%1024+56320)),(mr+1===ze||dt.length>16384)&&(nn+=String.fromCharCode.apply(String,dt),dt.length=0)}return nn},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(be){var De=be.length*.75,ze=be.length,dt,mr=0,nn,xn,Fn,ni;be[be.length-1]==="="&&(De--,be[be.length-2]==="="&&De--);var Yi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(De):new Array(De),Fi=Array.isArray(Yi)?Yi:new Uint8Array(Yi);for(dt=0;dt<ze;dt+=4)nn=s[be.charCodeAt(dt)],xn=s[be.charCodeAt(dt+1)],Fn=s[be.charCodeAt(dt+2)],ni=s[be.charCodeAt(dt+3)],Fi[mr++]=nn<<2|xn>>4,Fi[mr++]=(xn&15)<<4|Fn>>2,Fi[mr++]=(Fn&3)<<6|ni&63;return Yi},g=function(be){for(var De=be.length,ze=[],dt=0;dt<De;dt+=2)ze.push(be[dt+1]<<8|be[dt]);return ze},A=function(be){for(var De=be.length,ze=[],dt=0;dt<De;dt+=4)ze.push(be[dt+3]<<24|be[dt+2]<<16|be[dt+1]<<8|be[dt]);return ze},b=5,w=6+5,E=2,C=w-b,_=65536>>b,T=1<<b,S=T-1,O=1024>>b,I=_+O,F=I,P=2048>>6,B=F+P,k=65536>>w,G=1<<C,M=G-1,j=function(be,De,ze){return be.slice?be.slice(De,ze):new Uint16Array(Array.prototype.slice.call(be,De,ze))},K=function(be,De,ze){return be.slice?be.slice(De,ze):new Uint32Array(Array.prototype.slice.call(be,De,ze))},z=function(be,De){var ze=h(be),dt=Array.isArray(ze)?A(ze):new Uint32Array(ze),mr=Array.isArray(ze)?g(ze):new Uint16Array(ze),nn=24,xn=j(mr,nn/2,dt[4]/2),Fn=dt[5]===2?j(mr,(nn+dt[4])/2):K(dt,Math.ceil((nn+dt[4])/4));return new V(dt[0],dt[1],dt[2],dt[3],xn,Fn)},V=function(){function Er(be,De,ze,dt,mr,nn){this.initialValue=be,this.errorValue=De,this.highStart=ze,this.highValueIndex=dt,this.index=mr,this.data=nn}return Er.prototype.get=function(be){var De;if(be>=0){if(be<55296||be>56319&&be<=65535)return De=this.index[be>>b],De=(De<<E)+(be&S),this.data[De];if(be<=65535)return De=this.index[_+(be-55296>>b)],De=(De<<E)+(be&S),this.data[De];if(be<this.highStart)return De=B-k+(be>>w),De=this.index[De],De+=be>>b&M,De=this.index[De],De=(De<<E)+(be&S),this.data[De];if(be<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Er}(),Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",X=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),te=0;te<Q.length;te++)X[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,Ge=7,ct=8,Ue=9,ae=10,lt=11,pe=12,J=13,Y=14,ee=15,fe=16,we=17,Ce=18,_e=19,he=20,ye=21,Le=22,tt=23,gt=24,at=25,Fe=26,mt=27,et=28,St=29,jt=30,Mt=31,Ot=32,Bt=33,Ke=34,de=35,se=36,ut=37,qe=38,me=39,Wt=40,dr=41,vt=42,rr=43,ur=[9001,65288],mn="!",sr="\xD7",xr="\xF7",pr=z($),Zt=[jt,se],Ct=[re,Se,Re,Je],on=[ae,ct],Mn=[mt,Fe],Xn=Ct.concat(on),oi=[qe,me,Wt,Ke,de],Ui=[ee,J],Un=function(be,De){De===void 0&&(De="strict");var ze=[],dt=[],mr=[];return be.forEach(function(nn,xn){var Fn=pr.get(nn);if(Fn>le?(mr.push(!0),Fn-=le):mr.push(!1),["normal","auto","loose"].indexOf(De)!==-1&&[8208,8211,12316,12448].indexOf(nn)!==-1)return dt.push(xn),ze.push(fe);if(Fn===Pe||Fn===lt){if(xn===0)return dt.push(xn),ze.push(jt);var ni=ze[xn-1];return Xn.indexOf(ni)===-1?(dt.push(dt[xn-1]),ze.push(ni)):(dt.push(xn),ze.push(jt))}if(dt.push(xn),Fn===Mt)return ze.push(De==="strict"?ye:ut);if(Fn===vt)return ze.push(jt);if(Fn===St)return ze.push(jt);if(Fn===rr)return nn>=131072&&nn<=196605||nn>=196608&&nn<=262141?ze.push(ut):ze.push(jt);ze.push(Fn)}),[dt,ze,mr]},Qn=function(be,De,ze,dt){var mr=dt[ze];if(Array.isArray(be)?be.indexOf(mr)!==-1:be===mr)for(var nn=ze;nn<=dt.length;){nn++;var xn=dt[nn];if(xn===De)return!0;if(xn!==ae)break}if(mr===ae)for(var nn=ze;nn>0;){nn--;var Fn=dt[nn];if(Array.isArray(be)?be.indexOf(Fn)!==-1:be===Fn)for(var ni=ze;ni<=dt.length;){ni++;var xn=dt[ni];if(xn===De)return!0;if(xn!==ae)break}if(Fn!==ae)break}return!1},$t=function(be,De){for(var ze=be;ze>=0;){var dt=De[ze];if(dt===ae)ze--;else return dt}return 0},Nt=function(be,De,ze,dt,mr){if(ze[dt]===0)return sr;var nn=dt-1;if(Array.isArray(mr)&&mr[nn]===!0)return sr;var xn=nn-1,Fn=nn+1,ni=De[nn],Yi=xn>=0?De[xn]:0,Fi=De[Fn];if(ni===Se&&Fi===Re)return sr;if(Ct.indexOf(ni)!==-1)return mn;if(Ct.indexOf(Fi)!==-1)return sr;if(on.indexOf(Fi)!==-1)return sr;if($t(nn,De)===ct)return xr;if(pr.get(be[nn])===lt)return sr;if((ni===Ot||ni===Bt)&&pr.get(be[Fn])===lt)return sr;if(ni===Ge||Fi===Ge)return sr;if(ni===Ue)return sr;if([ae,J,ee].indexOf(ni)===-1&&Fi===Ue)return sr;if([we,Ce,_e,gt,et].indexOf(Fi)!==-1)return sr;if($t(nn,De)===Le)return sr;if(Qn(tt,Le,nn,De))return sr;if(Qn([we,Ce],ye,nn,De))return sr;if(Qn(pe,pe,nn,De))return sr;if(ni===ae)return xr;if(ni===tt||Fi===tt)return sr;if(Fi===fe||ni===fe)return xr;if([J,ee,ye].indexOf(Fi)!==-1||ni===Y)return sr;if(Yi===se&&Ui.indexOf(ni)!==-1)return sr;if(ni===et&&Fi===se)return sr;if(Fi===he)return sr;if(Zt.indexOf(Fi)!==-1&&ni===at||Zt.indexOf(ni)!==-1&&Fi===at)return sr;if(ni===mt&&[ut,Ot,Bt].indexOf(Fi)!==-1||[ut,Ot,Bt].indexOf(ni)!==-1&&Fi===Fe)return sr;if(Zt.indexOf(ni)!==-1&&Mn.indexOf(Fi)!==-1||Mn.indexOf(ni)!==-1&&Zt.indexOf(Fi)!==-1)return sr;if([mt,Fe].indexOf(ni)!==-1&&(Fi===at||[Le,ee].indexOf(Fi)!==-1&&De[Fn+1]===at)||[Le,ee].indexOf(ni)!==-1&&Fi===at||ni===at&&[at,et,gt].indexOf(Fi)!==-1)return sr;if([at,et,gt,we,Ce].indexOf(Fi)!==-1)for(var qi=nn;qi>=0;){var Za=De[qi];if(Za===at)return sr;if([et,gt].indexOf(Za)!==-1)qi--;else break}if([mt,Fe].indexOf(Fi)!==-1)for(var qi=[we,Ce].indexOf(ni)!==-1?xn:nn;qi>=0;){var Za=De[qi];if(Za===at)return sr;if([et,gt].indexOf(Za)!==-1)qi--;else break}if(qe===ni&&[qe,me,Ke,de].indexOf(Fi)!==-1||[me,Ke].indexOf(ni)!==-1&&[me,Wt].indexOf(Fi)!==-1||[Wt,de].indexOf(ni)!==-1&&Fi===Wt)return sr;if(oi.indexOf(ni)!==-1&&[he,Fe].indexOf(Fi)!==-1||oi.indexOf(Fi)!==-1&&ni===mt)return sr;if(Zt.indexOf(ni)!==-1&&Zt.indexOf(Fi)!==-1)return sr;if(ni===gt&&Zt.indexOf(Fi)!==-1)return sr;if(Zt.concat(at).indexOf(ni)!==-1&&Fi===Le&&ur.indexOf(be[Fn])===-1||Zt.concat(at).indexOf(Fi)!==-1&&ni===Ce)return sr;if(ni===dr&&Fi===dr){for(var eo=ze[nn],po=1;eo>0&&(eo--,De[eo]===dr);)po++;if(po%2!==0)return sr}return ni===Ot&&Fi===Bt?sr:xr},Me=function(be,De){De||(De={lineBreak:"normal",wordBreak:"normal"});var ze=Un(be,De.lineBreak),dt=ze[0],mr=ze[1],nn=ze[2];(De.wordBreak==="break-all"||De.wordBreak==="break-word")&&(mr=mr.map(function(Fn){return[at,jt,vt].indexOf(Fn)!==-1?ut:Fn}));var xn=De.wordBreak==="keep-all"?nn.map(function(Fn,ni){return Fn&&be[ni]>=19968&&be[ni]<=40959}):void 0;return[dt,mr,xn]},ke=function(){function Er(be,De,ze,dt){this.codePoints=be,this.required=De===mn,this.start=ze,this.end=dt}return Er.prototype.slice=function(){return t.apply(void 0,this.codePoints.slice(this.start,this.end))},Er}(),Be=function(be,De){var ze=n(be),dt=Me(ze,De),mr=dt[0],nn=dt[1],xn=dt[2],Fn=ze.length,ni=0,Yi=0;return{next:function(){if(Yi>=Fn)return{done:!0,value:null};for(var qi=sr;Yi<Fn&&(qi=Nt(ze,nn,mr,++Yi,xn))===sr;);if(qi!==sr||Yi===Fn){var Za=new ke(ze,qi,ni,Yi);return ni=Yi,{value:Za,done:!1}}return{done:!0,value:null}}}},it=1<<0,yt=1<<1,Tt=1<<2,Yt=1<<3,Pr=10,$r=47,An=92,zt=9,At=32,wt=34,vr=61,Jt=35,Ut=36,tr=37,Ft=39,qt=40,Hr=41,Nr=95,Dr=45,cn=33,vn=60,ei=62,qn=64,fi=91,xi=93,Ni=61,Hi=123,nt=63,Ne=125,He=124,Xe=126,rt=128,Ze=65533,st=42,xt=43,pt=44,hr=58,Zr=59,Xr=46,pn=0,gr=8,Kn=11,Rr=14,Pn=31,an=127,Ur=-1,ii=48,_i=97,Gi=101,tn=102,Tn=117,Vn=122,Xt=65,It=69,Pt=70,Kt=85,Gt=90,Dt=function(be){return be>=ii&&be<=57},lr=function(be){return be>=55296&&be<=57343},Ar=function(be){return Dt(be)||be>=Xt&&be<=Pt||be>=_i&&be<=tn},yr=function(be){return be>=_i&&be<=Vn},Mr=function(be){return be>=Xt&&be<=Gt},zn=function(be){return yr(be)||Mr(be)},Rn=function(be){return be>=rt},di=function(be){return be===Pr||be===zt||be===At},gn=function(be){return zn(be)||Rn(be)||be===Nr},Br=function(be){return gn(be)||Dt(be)||be===Dr},_n=function(be){return be>=pn&&be<=gr||be===Kn||be>=Rr&&be<=Pn||be===an},Gn=function(be,De){return be!==An?!1:De!==Pr},Zn=function(be,De,ze){return be===Dr?gn(De)||Gn(De,ze):gn(be)?!0:!!(be===An&&Gn(be,De))},ai=function(be,De,ze){return be===xt||be===Dr?Dt(De)?!0:De===Xr&&Dt(ze):be===Xr?Dt(De):Dt(be)},Ei=function(be){var De=0,ze=1;(be[De]===xt||be[De]===Dr)&&(be[De]===Dr&&(ze=-1),De++);for(var dt=[];Dt(be[De]);)dt.push(be[De++]);var mr=dt.length?parseInt(t.apply(void 0,dt),10):0;be[De]===Xr&&De++;for(var nn=[];Dt(be[De]);)nn.push(be[De++]);var xn=nn.length,Fn=xn?parseInt(t.apply(void 0,nn),10):0;(be[De]===It||be[De]===Gi)&&De++;var ni=1;(be[De]===xt||be[De]===Dr)&&(be[De]===Dr&&(ni=-1),De++);for(var Yi=[];Dt(be[De]);)Yi.push(be[De++]);var Fi=Yi.length?parseInt(t.apply(void 0,Yi),10):0;return ze*(mr+Fn*Math.pow(10,-xn))*Math.pow(10,ni*Fi)},Ri={type:2},Di={type:3},oa={type:4},ma={type:13},aa={type:8},ba={type:21},Ai={type:9},Dn={type:10},Bi={type:11},ha={type:12},ta={type:14},ra={type:23},Ir={type:1},Sr={type:25},En={type:24},fr={type:26},kr={type:27},Vr={type:28},un={type:29},kn={type:31},_t={type:32},Or=function(){function Er(){this._value=[]}return Er.prototype.write=function(be){this._value=this._value.concat(n(be))},Er.prototype.read=function(){for(var be=[],De=this.consumeToken();De!==_t;)be.push(De),De=this.consumeToken();return be},Er.prototype.consumeToken=function(){var be=this.consumeCodePoint();switch(be){case wt:return this.consumeStringToken(wt);case Jt:var De=this.peekCodePoint(0),ze=this.peekCodePoint(1),dt=this.peekCodePoint(2);if(Br(De)||Gn(ze,dt)){var mr=Zn(De,ze,dt)?yt:it,nn=this.consumeName();return{type:5,value:nn,flags:mr}}break;case Ut:if(this.peekCodePoint(0)===vr)return this.consumeCodePoint(),ma;break;case Ft:return this.consumeStringToken(Ft);case qt:return Ri;case Hr:return Di;case st:if(this.peekCodePoint(0)===vr)return this.consumeCodePoint(),ta;break;case xt:if(ai(be,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(be),this.consumeNumericToken();break;case pt:return oa;case Dr:var xn=be,Fn=this.peekCodePoint(0),ni=this.peekCodePoint(1);if(ai(xn,Fn,ni))return this.reconsumeCodePoint(be),this.consumeNumericToken();if(Zn(xn,Fn,ni))return this.reconsumeCodePoint(be),this.consumeIdentLikeToken();if(Fn===Dr&&ni===ei)return this.consumeCodePoint(),this.consumeCodePoint(),En;break;case Xr:if(ai(be,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(be),this.consumeNumericToken();break;case $r:if(this.peekCodePoint(0)===st)for(this.consumeCodePoint();;){var Yi=this.consumeCodePoint();if(Yi===st&&(Yi=this.consumeCodePoint(),Yi===$r))return this.consumeToken();if(Yi===Ur)return this.consumeToken()}break;case hr:return fr;case Zr:return kr;case vn:if(this.peekCodePoint(0)===cn&&this.peekCodePoint(1)===Dr&&this.peekCodePoint(2)===Dr)return this.consumeCodePoint(),this.consumeCodePoint(),Sr;break;case qn:var Fi=this.peekCodePoint(0),qi=this.peekCodePoint(1),Za=this.peekCodePoint(2);if(Zn(Fi,qi,Za)){var nn=this.consumeName();return{type:7,value:nn}}break;case fi:return Vr;case An:if(Gn(be,this.peekCodePoint(0)))return this.reconsumeCodePoint(be),this.consumeIdentLikeToken();break;case xi:return un;case Ni:if(this.peekCodePoint(0)===vr)return this.consumeCodePoint(),aa;break;case Hi:return Bi;case Ne:return ha;case Tn:case Kt:var eo=this.peekCodePoint(0),po=this.peekCodePoint(1);return eo===xt&&(Ar(po)||po===nt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(be),this.consumeIdentLikeToken();case He:if(this.peekCodePoint(0)===vr)return this.consumeCodePoint(),Ai;if(this.peekCodePoint(0)===He)return this.consumeCodePoint(),ba;break;case Xe:if(this.peekCodePoint(0)===vr)return this.consumeCodePoint(),Dn;break;case Ur:return _t}return di(be)?(this.consumeWhiteSpace(),kn):Dt(be)?(this.reconsumeCodePoint(be),this.consumeNumericToken()):gn(be)?(this.reconsumeCodePoint(be),this.consumeIdentLikeToken()):{type:6,value:t(be)}},Er.prototype.consumeCodePoint=function(){var be=this._value.shift();return typeof be=="undefined"?-1:be},Er.prototype.reconsumeCodePoint=function(be){this._value.unshift(be)},Er.prototype.peekCodePoint=function(be){return be>=this._value.length?-1:this._value[be]},Er.prototype.consumeUnicodeRangeToken=function(){for(var be=[],De=this.consumeCodePoint();Ar(De)&&be.length<6;)be.push(De),De=this.consumeCodePoint();for(var ze=!1;De===nt&&be.length<6;)be.push(De),De=this.consumeCodePoint(),ze=!0;if(ze){var dt=parseInt(t.apply(void 0,be.map(function(Fn){return Fn===nt?ii:Fn})),16),mr=parseInt(t.apply(void 0,be.map(function(Fn){return Fn===nt?Pt:Fn})),16);return{type:30,start:dt,end:mr}}var nn=parseInt(t.apply(void 0,be),16);if(this.peekCodePoint(0)===Dr&&Ar(this.peekCodePoint(1))){this.consumeCodePoint(),De=this.consumeCodePoint();for(var xn=[];Ar(De)&&xn.length<6;)xn.push(De),De=this.consumeCodePoint();var mr=parseInt(t.apply(void 0,xn),16);return{type:30,start:nn,end:mr}}else return{type:30,start:nn,end:nn}},Er.prototype.consumeIdentLikeToken=function(){var be=this.consumeName();return be.toLowerCase()==="url"&&this.peekCodePoint(0)===qt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===qt?(this.consumeCodePoint(),{type:19,value:be}):{type:20,value:be}},Er.prototype.consumeUrlToken=function(){var be=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ur)return{type:22,value:""};var De=this.peekCodePoint(0);if(De===Ft||De===wt){var ze=this.consumeStringToken(this.consumeCodePoint());return ze.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ur||this.peekCodePoint(0)===Hr)?(this.consumeCodePoint(),{type:22,value:ze.value}):(this.consumeBadUrlRemnants(),ra)}for(;;){var dt=this.consumeCodePoint();if(dt===Ur||dt===Hr)return{type:22,value:t.apply(void 0,be)};if(di(dt))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ur||this.peekCodePoint(0)===Hr?(this.consumeCodePoint(),{type:22,value:t.apply(void 0,be)}):(this.consumeBadUrlRemnants(),ra);if(dt===wt||dt===Ft||dt===qt||_n(dt))return this.consumeBadUrlRemnants(),ra;if(dt===An)if(Gn(dt,this.peekCodePoint(0)))be.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ra;else be.push(dt)}},Er.prototype.consumeWhiteSpace=function(){for(;di(this.peekCodePoint(0));)this.consumeCodePoint()},Er.prototype.consumeBadUrlRemnants=function(){for(;;){var be=this.consumeCodePoint();if(be===Hr||be===Ur)return;Gn(be,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Er.prototype.consumeStringSlice=function(be){for(var De=5e4,ze="";be>0;){var dt=Math.min(De,be);ze+=t.apply(void 0,this._value.splice(0,dt)),be-=dt}return this._value.shift(),ze},Er.prototype.consumeStringToken=function(be){var De="",ze=0;do{var dt=this._value[ze];if(dt===Ur||dt===void 0||dt===be)return De+=this.consumeStringSlice(ze),{type:0,value:De};if(dt===Pr)return this._value.splice(0,ze),Ir;if(dt===An){var mr=this._value[ze+1];mr!==Ur&&mr!==void 0&&(mr===Pr?(De+=this.consumeStringSlice(ze),ze=-1,this._value.shift()):Gn(dt,mr)&&(De+=this.consumeStringSlice(ze),De+=t(this.consumeEscapedCodePoint()),ze=-1))}ze++}while(!0)},Er.prototype.consumeNumber=function(){var be=[],De=Tt,ze=this.peekCodePoint(0);for((ze===xt||ze===Dr)&&be.push(this.consumeCodePoint());Dt(this.peekCodePoint(0));)be.push(this.consumeCodePoint());ze=this.peekCodePoint(0);var dt=this.peekCodePoint(1);if(ze===Xr&&Dt(dt))for(be.push(this.consumeCodePoint(),this.consumeCodePoint()),De=Yt;Dt(this.peekCodePoint(0));)be.push(this.consumeCodePoint());ze=this.peekCodePoint(0),dt=this.peekCodePoint(1);var mr=this.peekCodePoint(2);if((ze===It||ze===Gi)&&((dt===xt||dt===Dr)&&Dt(mr)||Dt(dt)))for(be.push(this.consumeCodePoint(),this.consumeCodePoint()),De=Yt;Dt(this.peekCodePoint(0));)be.push(this.consumeCodePoint());return[Ei(be),De]},Er.prototype.consumeNumericToken=function(){var be=this.consumeNumber(),De=be[0],ze=be[1],dt=this.peekCodePoint(0),mr=this.peekCodePoint(1),nn=this.peekCodePoint(2);if(Zn(dt,mr,nn)){var xn=this.consumeName();return{type:15,number:De,flags:ze,unit:xn}}return dt===tr?(this.consumeCodePoint(),{type:16,number:De,flags:ze}):{type:17,number:De,flags:ze}},Er.prototype.consumeEscapedCodePoint=function(){var be=this.consumeCodePoint();if(Ar(be)){for(var De=t(be);Ar(this.peekCodePoint(0))&&De.length<6;)De+=t(this.consumeCodePoint());di(this.peekCodePoint(0))&&this.consumeCodePoint();var ze=parseInt(De,16);return ze===0||lr(ze)||ze>1114111?Ze:ze}return be===Ur?Ze:be},Er.prototype.consumeName=function(){for(var be="";;){var De=this.consumeCodePoint();if(Br(De))be+=t(De);else if(Gn(De,this.peekCodePoint(0)))be+=t(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(De),be}},Er}(),Lr=function(){function Er(be){this._tokens=be}return Er.create=function(be){var De=new Or;return De.write(be),new Er(De.read())},Er.parseValue=function(be){return Er.create(be).parseComponentValue()},Er.parseValues=function(be){return Er.create(be).parseComponentValues()},Er.prototype.parseComponentValue=function(){for(var be=this.consumeToken();be.type===31;)be=this.consumeToken();if(be.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(be);var De=this.consumeComponentValue();do be=this.consumeToken();while(be.type===31);if(be.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 be=[];;){var De=this.consumeComponentValue();if(De.type===32)return be;be.push(De),be.push()}},Er.prototype.consumeComponentValue=function(){var be=this.consumeToken();switch(be.type){case 11:case 28:case 2:return this.consumeSimpleBlock(be.type);case 19:return this.consumeFunction(be)}return be},Er.prototype.consumeSimpleBlock=function(be){for(var De={type:be,values:[]},ze=this.consumeToken();;){if(ze.type===32||yi(ze,be))return De;this.reconsumeToken(ze),De.values.push(this.consumeComponentValue()),ze=this.consumeToken()}},Er.prototype.consumeFunction=function(be){for(var De={name:be.value,values:[],type:18};;){var ze=this.consumeToken();if(ze.type===32||ze.type===3)return De;this.reconsumeToken(ze),De.values.push(this.consumeComponentValue())}},Er.prototype.consumeToken=function(){var be=this._tokens.shift();return typeof be=="undefined"?_t:be},Er.prototype.reconsumeToken=function(be){this._tokens.unshift(be)},Er}(),en=function(be){return be.type===15},Sn=function(be){return be.type===17},On=function(be){return be.type===20},wn=function(be){return be.type===0},$n=function(be,De){return On(be)&&be.value===De},jn=function(be){return be.type!==31},pi=function(be){return be.type!==31&&be.type!==4},Mi=function(be){var De=[],ze=[];return be.forEach(function(dt){if(dt.type===4){if(ze.length===0)throw new Error("Error parsing function args, zero tokens for arg");De.push(ze),ze=[];return}dt.type!==31&&ze.push(dt)}),ze.length&&De.push(ze),De},yi=function(be,De){return De===11&&be.type===12||De===28&&be.type===29?!0:De===2&&be.type===3},Oi=function(be){return be.type===17||be.type===15},zi=function(be){return be.type===16||Oi(be)},ea=function(be){return be.length>1?[be[0],be[1]]:[be[0]]},Xi={type:17,number:0,flags:Tt},Wi={type:16,number:50,flags:Tt},ji={type:16,number:100,flags:Tt},Ji=function(be,De,ze){var dt=be[0],mr=be[1];return[ca(dt,De),ca(typeof mr!="undefined"?mr:dt,ze)]},ca=function(be,De){if(be.type===16)return be.number/100*De;if(en(be))switch(be.unit){case"rem":case"em":return 16*be.number;case"px":default:return be.number}return be.number},Ca="deg",na="grad",Pa="rad",La="turn",va={name:"angle",parse:function(be,De){if(De.type===15)switch(De.unit){case Ca:return Math.PI*De.number/180;case na:return Math.PI/200*De.number;case Pa:return De.number;case La:return Math.PI*2*De.number}throw new Error("Unsupported angle type")}},ga=function(be){return be.type===15&&(be.unit===Ca||be.unit===na||be.unit===Pa||be.unit===La)},Oa=function(be){var De=be.filter(On).map(function(ze){return ze.value}).join(" ");switch(De){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Xi,Xi];case"to top":case"bottom":return Aa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Xi,ji];case"to right":case"left":return Aa(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ji,ji];case"to bottom":case"top":return Aa(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ji,Xi];case"to left":case"right":return Aa(270)}return 0},Aa=function(be){return Math.PI*be/180},Xa={name:"color",parse:function(be,De){if(De.type===18){var ze=To[De.name];if(typeof ze=="undefined")throw new Error('Attempting to parse an unsupported color function "'+De.name+'"');return ze(be,De.values)}if(De.type===5){if(De.value.length===3){var dt=De.value.substring(0,1),mr=De.value.substring(1,2),nn=De.value.substring(2,3);return Pi(parseInt(dt+dt,16),parseInt(mr+mr,16),parseInt(nn+nn,16),1)}if(De.value.length===4){var dt=De.value.substring(0,1),mr=De.value.substring(1,2),nn=De.value.substring(2,3),xn=De.value.substring(3,4);return Pi(parseInt(dt+dt,16),parseInt(mr+mr,16),parseInt(nn+nn,16),parseInt(xn+xn,16)/255)}if(De.value.length===6){var dt=De.value.substring(0,2),mr=De.value.substring(2,4),nn=De.value.substring(4,6);return Pi(parseInt(dt,16),parseInt(mr,16),parseInt(nn,16),1)}if(De.value.length===8){var dt=De.value.substring(0,2),mr=De.value.substring(2,4),nn=De.value.substring(4,6),xn=De.value.substring(6,8);return Pi(parseInt(dt,16),parseInt(mr,16),parseInt(nn,16),parseInt(xn,16)/255)}}if(De.type===20){var Fn=So[De.value.toUpperCase()];if(typeof Fn!="undefined")return Fn}return So.TRANSPARENT}},_a=function(be){return(255&be)===0},Va=function(be){var De=255&be,ze=255&be>>8,dt=255&be>>16,mr=255&be>>24;return De<255?"rgba("+mr+","+dt+","+ze+","+De/255+")":"rgb("+mr+","+dt+","+ze+")"},Pi=function(be,De,ze,dt){return(be<<24|De<<16|ze<<8|Math.round(dt*255)<<0)>>>0},io=function(be,De){if(be.type===17)return be.number;if(be.type===16){var ze=De===3?1:255;return De===3?be.number/100*ze:Math.round(be.number/100*ze)}return 0},oo=function(be,De){var ze=De.filter(pi);if(ze.length===3){var dt=ze.map(io),mr=dt[0],nn=dt[1],xn=dt[2];return Pi(mr,nn,xn,1)}if(ze.length===4){var Fn=ze.map(io),mr=Fn[0],nn=Fn[1],xn=Fn[2],ni=Fn[3];return Pi(mr,nn,xn,ni)}return 0};function Qo(Er,be,De){return De<0&&(De+=1),De>=1&&(De-=1),De<1/6?(be-Er)*De*6+Er:De<1/2?be:De<2/3?(be-Er)*6*(2/3-De)+Er:Er}var mo=function(be,De){var ze=De.filter(pi),dt=ze[0],mr=ze[1],nn=ze[2],xn=ze[3],Fn=(dt.type===17?Aa(dt.number):va.parse(be,dt))/(Math.PI*2),ni=zi(mr)?mr.number/100:0,Yi=zi(nn)?nn.number/100:0,Fi=typeof xn!="undefined"&&zi(xn)?ca(xn,1):1;if(ni===0)return Pi(Yi*255,Yi*255,Yi*255,1);var qi=Yi<=.5?Yi*(ni+1):Yi+ni-Yi*ni,Za=Yi*2-qi,eo=Qo(Za,qi,Fn+1/3),po=Qo(Za,qi,Fn),us=Qo(Za,qi,Fn-1/3);return Pi(eo*255,po*255,us*255,Fi)},To={hsl:mo,hsla:mo,rgb:oo,rgba:oo},ao=function(be,De){return Xa.parse(be,Lr.create(De).parseComponentValue())},So={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},bo={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(be,De){return De.map(function(ze){if(On(ze))switch(ze.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},to={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Jo=function(be,De){var ze=Xa.parse(be,De[0]),dt=De[1];return dt&&zi(dt)?{color:ze,stop:dt}:{color:ze,stop:null}},Uo=function(be,De){var ze=be[0],dt=be[be.length-1];ze.stop===null&&(ze.stop=Xi),dt.stop===null&&(dt.stop=ji);for(var mr=[],nn=0,xn=0;xn<be.length;xn++){var Fn=be[xn].stop;if(Fn!==null){var ni=ca(Fn,De);ni>nn?mr.push(ni):mr.push(nn),nn=ni}else mr.push(null)}for(var Yi=null,xn=0;xn<mr.length;xn++){var Fi=mr[xn];if(Fi===null)Yi===null&&(Yi=xn);else if(Yi!==null){for(var qi=xn-Yi,Za=mr[Yi-1],eo=(Fi-Za)/(qi+1),po=1;po<=qi;po++)mr[Yi+po-1]=eo*po;Yi=null}}return be.map(function(us,Yo){var Po=us.color;return{color:Po,stop:Math.max(Math.min(1,mr[Yo]/De),0)}})},wo=function(be,De,ze){var dt=De/2,mr=ze/2,nn=ca(be[0],De)-dt,xn=mr-ca(be[1],ze);return(Math.atan2(xn,nn)+Math.PI*2)%(Math.PI*2)},ts=function(be,De,ze){var dt=typeof be=="number"?be:wo(be,De,ze),mr=Math.abs(De*Math.sin(dt))+Math.abs(ze*Math.cos(dt)),nn=De/2,xn=ze/2,Fn=mr/2,ni=Math.sin(dt-Math.PI/2)*Fn,Yi=Math.cos(dt-Math.PI/2)*Fn;return[mr,nn-Yi,nn+Yi,xn-ni,xn+ni]},Ia=function(be,De){return Math.sqrt(be*be+De*De)},Oo=function(be,De,ze,dt,mr){var nn=[[0,0],[0,De],[be,0],[be,De]];return nn.reduce(function(xn,Fn){var ni=Fn[0],Yi=Fn[1],Fi=Ia(ze-ni,dt-Yi);return(mr?Fi<xn.optimumDistance:Fi>xn.optimumDistance)?{optimumCorner:Fn,optimumDistance:Fi}:xn},{optimumDistance:mr?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Io=function(be,De,ze,dt,mr){var nn=0,xn=0;switch(be.size){case 0:be.shape===0?nn=xn=Math.min(Math.abs(De),Math.abs(De-dt),Math.abs(ze),Math.abs(ze-mr)):be.shape===1&&(nn=Math.min(Math.abs(De),Math.abs(De-dt)),xn=Math.min(Math.abs(ze),Math.abs(ze-mr)));break;case 2:if(be.shape===0)nn=xn=Math.min(Ia(De,ze),Ia(De,ze-mr),Ia(De-dt,ze),Ia(De-dt,ze-mr));else if(be.shape===1){var Fn=Math.min(Math.abs(ze),Math.abs(ze-mr))/Math.min(Math.abs(De),Math.abs(De-dt)),ni=Oo(dt,mr,De,ze,!0),Yi=ni[0],Fi=ni[1];nn=Ia(Yi-De,(Fi-ze)/Fn),xn=Fn*nn}break;case 1:be.shape===0?nn=xn=Math.max(Math.abs(De),Math.abs(De-dt),Math.abs(ze),Math.abs(ze-mr)):be.shape===1&&(nn=Math.max(Math.abs(De),Math.abs(De-dt)),xn=Math.max(Math.abs(ze),Math.abs(ze-mr)));break;case 3:if(be.shape===0)nn=xn=Math.max(Ia(De,ze),Ia(De,ze-mr),Ia(De-dt,ze),Ia(De-dt,ze-mr));else if(be.shape===1){var Fn=Math.max(Math.abs(ze),Math.abs(ze-mr))/Math.max(Math.abs(De),Math.abs(De-dt)),qi=Oo(dt,mr,De,ze,!1),Yi=qi[0],Fi=qi[1];nn=Ia(Yi-De,(Fi-ze)/Fn),xn=Fn*nn}break}return Array.isArray(be.size)&&(nn=ca(be.size[0],dt),xn=be.size.length===2?ca(be.size[1],mr):nn),[nn,xn]},os=function(be,De){var ze=Aa(180),dt=[];return Mi(De).forEach(function(mr,nn){if(nn===0){var xn=mr[0];if(xn.type===20&&xn.value==="to"){ze=Oa(mr);return}else if(ga(xn)){ze=va.parse(be,xn);return}}var Fn=Jo(be,mr);dt.push(Fn)}),{angle:ze,stops:dt,type:1}},xo=function(be,De){var ze=Aa(180),dt=[];return Mi(De).forEach(function(mr,nn){if(nn===0){var xn=mr[0];if(xn.type===20&&["top","left","right","bottom"].indexOf(xn.value)!==-1){ze=Oa(mr);return}else if(ga(xn)){ze=(va.parse(be,xn)+Aa(270))%Aa(360);return}}var Fn=Jo(be,mr);dt.push(Fn)}),{angle:ze,stops:dt,type:1}},rs=function(be,De){var ze=Aa(180),dt=[],mr=1,nn=0,xn=3,Fn=[];return Mi(De).forEach(function(ni,Yi){var Fi=ni[0];if(Yi===0){if(On(Fi)&&Fi.value==="linear"){mr=1;return}else if(On(Fi)&&Fi.value==="radial"){mr=2;return}}if(Fi.type===18){if(Fi.name==="from"){var qi=Xa.parse(be,Fi.values[0]);dt.push({stop:Xi,color:qi})}else if(Fi.name==="to"){var qi=Xa.parse(be,Fi.values[0]);dt.push({stop:ji,color:qi})}else if(Fi.name==="color-stop"){var Za=Fi.values.filter(pi);if(Za.length===2){var qi=Xa.parse(be,Za[1]),eo=Za[0];Sn(eo)&&dt.push({stop:{type:16,number:eo.number*100,flags:eo.flags},color:qi})}}}}),mr===1?{angle:(ze+Aa(180))%Aa(360),stops:dt,type:mr}:{size:xn,shape:nn,stops:dt,position:Fn,type:mr}},Ho="closest-side",_o="farthest-side",uo="closest-corner",Ha="farthest-corner",ft="circle",Tr="ellipse",qr="cover",Yr="contain",Yn=function(be,De){var ze=0,dt=3,mr=[],nn=[];return Mi(De).forEach(function(xn,Fn){var ni=!0;if(Fn===0){var Yi=!1;ni=xn.reduce(function(qi,Za){if(Yi)if(On(Za))switch(Za.value){case"center":return nn.push(Wi),qi;case"top":case"left":return nn.push(Xi),qi;case"right":case"bottom":return nn.push(ji),qi}else(zi(Za)||Oi(Za))&&nn.push(Za);else if(On(Za))switch(Za.value){case ft:return ze=0,!1;case Tr:return ze=1,!1;case"at":return Yi=!0,!1;case Ho:return dt=0,!1;case qr:case _o:return dt=1,!1;case Yr:case uo:return dt=2,!1;case Ha:return dt=3,!1}else if(Oi(Za)||zi(Za))return Array.isArray(dt)||(dt=[]),dt.push(Za),!1;return qi},ni)}if(ni){var Fi=Jo(be,xn);mr.push(Fi)}}),{size:dt,shape:ze,stops:mr,position:nn,type:2}},dn=function(be,De){var ze=0,dt=3,mr=[],nn=[];return Mi(De).forEach(function(xn,Fn){var ni=!0;if(Fn===0?ni=xn.reduce(function(Fi,qi){if(On(qi))switch(qi.value){case"center":return nn.push(Wi),!1;case"top":case"left":return nn.push(Xi),!1;case"right":case"bottom":return nn.push(ji),!1}else if(zi(qi)||Oi(qi))return nn.push(qi),!1;return Fi},ni):Fn===1&&(ni=xn.reduce(function(Fi,qi){if(On(qi))switch(qi.value){case ft:return ze=0,!1;case Tr:return ze=1,!1;case Yr:case Ho:return dt=0,!1;case _o:return dt=1,!1;case uo:return dt=2,!1;case qr:case Ha:return dt=3,!1}else if(Oi(qi)||zi(qi))return Array.isArray(dt)||(dt=[]),dt.push(qi),!1;return Fi},ni)),ni){var Yi=Jo(be,xn);mr.push(Yi)}}),{size:dt,shape:ze,stops:mr,position:nn,type:2}},Gr=function(be){return be.type===1},ri=function(be){return be.type===2},rn={name:"image",parse:function(be,De){if(De.type===22){var ze={url:De.value,type:0};return be.cache.addImage(De.value),ze}if(De.type===18){var dt=li[De.name];if(typeof dt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+De.name+'"');return dt(be,De.values)}throw new Error("Unsupported image type "+De.type)}};function Hn(Er){return!(Er.type===20&&Er.value==="none")&&(Er.type!==18||!!li[Er.name])}var li={"linear-gradient":os,"-moz-linear-gradient":xo,"-ms-linear-gradient":xo,"-o-linear-gradient":xo,"-webkit-linear-gradient":xo,"radial-gradient":Yn,"-moz-radial-gradient":dn,"-ms-radial-gradient":dn,"-o-radial-gradient":dn,"-webkit-radial-gradient":dn,"-webkit-gradient":rs},ci={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(be,De){if(De.length===0)return[];var ze=De[0];return ze.type===20&&ze.value==="none"?[]:De.filter(function(dt){return pi(dt)&&Hn(dt)}).map(function(dt){return rn.parse(be,dt)})}},si={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(be,De){return De.map(function(ze){if(On(ze))switch(ze.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ti={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(be,De){return Mi(De).map(function(ze){return ze.filter(zi)}).map(ea)}},mi={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(be,De){return Mi(De).map(function(ze){return ze.filter(On).map(function(dt){return dt.value}).join(" ")}).map(vi)}},vi=function(be){switch(be){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}},Li;(function(Er){Er.AUTO="auto",Er.CONTAIN="contain",Er.COVER="cover"})(Li||(Li={}));var ia={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(be,De){return Mi(De).map(function(ze){return ze.filter(Ki)})}},Ki=function(be){return On(be)||zi(be)},fa=function(be){return{name:"border-"+be+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ya=fa("top"),xa=fa("right"),wa=fa("bottom"),Da=fa("left"),ja=function(be){return{name:"border-radius-"+be,initialValue:"0 0",prefix:!1,type:1,parse:function(ze,dt){return ea(dt.filter(zi))}}},ko=ja("top-left"),ro=ja("top-right"),pa=ja("bottom-right"),Ea=ja("bottom-left"),Fa=function(be){return{name:"border-"+be+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(ze,dt){switch(dt){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ka=Fa("top"),lo=Fa("right"),so=Fa("bottom"),Co=Fa("left"),Lo=function(be){return{name:"border-"+be+"-width",initialValue:"0",type:0,prefix:!1,parse:function(ze,dt){return en(dt)?dt.number:0}}},is=Lo("top"),cs=Lo("right"),Rs=Lo("bottom"),Ko=Lo("left"),as={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},co={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(be,De){switch(De){case"rtl":return 1;case"ltr":default:return 0}}},Ao={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(be,De){return De.filter(On).reduce(function(ze,dt){return ze|$a(dt.value)},0)}},$a=function(be){switch(be){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(be,De){switch(De){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},_s={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(be,De){return De.type===20&&De.value==="normal"?0:De.type===17||De.type===15?De.number:0}},Fo;(function(Er){Er.NORMAL="normal",Er.STRICT="strict"})(Fo||(Fo={}));var il={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(be,De){switch(De){case"strict":return Fo.STRICT;case"normal":default:return Fo.NORMAL}}},Eo={name:"line-height",initialValue:"normal",prefix:!1,type:4},zo=function(be,De){return On(be)&&be.value==="normal"?1.2*De:be.type===17?De*be.number:zi(be)?ca(be,De):De},Fs={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(be,De){return De.type===20&&De.value==="none"?null:rn.parse(be,De)}},ms={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(be,De){switch(De){case"inside":return 0;case"outside":default:return 1}}},hs={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(be,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}}},bn=function(be){return{name:"margin-"+be,initialValue:"0",prefix:!1,type:4}},Ns=bn("top"),Ll=bn("right"),el=bn("bottom"),Gs=bn("left"),ds={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(be,De){return De.filter(On).map(function(ze){switch(ze.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ks={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(be,De){switch(De){case"break-word":return"break-word";case"normal":default:return"normal"}}},Qs=function(be){return{name:"padding-"+be,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},tl=Qs("top"),xs=Qs("right"),Bs=Qs("bottom"),al=Qs("left"),Js={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(be,De){switch(De){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Vo={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(be,De){switch(De){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},No={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(be,De){return De.length===1&&$n(De[0],"none")?[]:Mi(De).map(function(ze){for(var dt={color:So.TRANSPARENT,offsetX:Xi,offsetY:Xi,blur:Xi},mr=0,nn=0;nn<ze.length;nn++){var xn=ze[nn];Oi(xn)?(mr===0?dt.offsetX=xn:mr===1?dt.offsetY=xn:dt.blur=xn,mr++):dt.color=Xa.parse(be,xn)}return dt})}},fs={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(be,De){switch(De){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Ds={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(be,De){if(De.type===20&&De.value==="none")return null;if(De.type===18){var ze=ar[De.name];if(typeof ze=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+De.name+'"');return ze(De.values)}return null}},go=function(be){var De=be.filter(function(ze){return ze.type===17}).map(function(ze){return ze.number});return De.length===6?De:null},Ht=function(be){var De=be.filter(function(ni){return ni.type===17}).map(function(ni){return ni.number}),ze=De[0],dt=De[1];De[2],De[3];var mr=De[4],nn=De[5];De[6],De[7],De[8],De[9],De[10],De[11];var xn=De[12],Fn=De[13];return De[14],De[15],De.length===16?[ze,dt,mr,nn,xn,Fn]:null},ar={matrix:go,matrix3d:Ht},In={type:16,number:50,flags:Tt},hi=[In,In],Rt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(be,De){var ze=De.filter(zi);return ze.length!==2?hi:[ze[0],ze[1]]}},ce={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(be,De){switch(De){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},xe;(function(Er){Er.NORMAL="normal",Er.BREAK_ALL="break-all",Er.KEEP_ALL="keep-all"})(xe||(xe={}));for(var Ie={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(be,De){switch(De){case"break-all":return xe.BREAK_ALL;case"keep-all":return xe.KEEP_ALL;case"normal":default:return xe.NORMAL}}},Qe={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(be,De){if(De.type===20)return{auto:!0,order:0};if(Sn(De))return{auto:!1,order:De.number};throw new Error("Invalid z-index number parsed")}},kt={name:"time",parse:function(be,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")}},or={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(be,De){return Sn(De)?De.number:1}},Qr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(be,De){return De.filter(On).map(function(ze){switch(ze.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(ze){return ze!==0})}},Ln={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(be,De){var ze=[],dt=[];return De.forEach(function(mr){switch(mr.type){case 20:case 0:ze.push(mr.value);break;case 17:ze.push(mr.number.toString());break;case 4:dt.push(ze.join(" ")),ze.length=0;break}}),ze.length&&dt.push(ze.join(" ")),dt.map(function(mr){return mr.indexOf(" ")===-1?mr:"'"+mr+"'"})}},ui={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},wi={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(be,De){if(Sn(De))return De.number;if(On(De))switch(De.value){case"bold":return 700;case"normal":default:return 400}return 400}},gi={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(be,De){return De.filter(On).map(function(ze){return ze.value})}},Qi={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(be,De){switch(De){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},sa=function(be,De){return(be&De)!==0},Ua={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(be,De){if(De.length===0)return[];var ze=De[0];return ze.type===20&&ze.value==="none"?[]:De}},no={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(be,De){if(De.length===0)return null;var ze=De[0];if(ze.type===20&&ze.value==="none")return null;for(var dt=[],mr=De.filter(jn),nn=0;nn<mr.length;nn++){var xn=mr[nn],Fn=mr[nn+1];if(xn.type===20){var ni=Fn&&Sn(Fn)?Fn.number:1;dt.push({counter:xn.value,increment:ni})}}return dt}},Wo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(be,De){if(De.length===0)return[];for(var ze=[],dt=De.filter(jn),mr=0;mr<dt.length;mr++){var nn=dt[mr],xn=dt[mr+1];if(On(nn)&&nn.value!=="none"){var Fn=xn&&Sn(xn)?xn.number:0;ze.push({counter:nn.value,reset:Fn})}}return ze}},Zo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(be,De){return De.filter(en).map(function(ze){return kt.parse(be,ze)})}},Bo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(be,De){if(De.length===0)return null;var ze=De[0];if(ze.type===20&&ze.value==="none")return null;var dt=[],mr=De.filter(wn);if(mr.length%2!==0)return null;for(var nn=0;nn<mr.length;nn+=2){var xn=mr[nn].value,Fn=mr[nn+1].value;dt.push({open:xn,close:Fn})}return dt}},Es=function(be,De,ze){if(!be)return"";var dt=be[Math.min(De,be.length-1)];return dt?ze?dt.open:dt.close:""},As={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(be,De){return De.length===1&&$n(De[0],"none")?[]:Mi(De).map(function(ze){for(var dt={color:255,offsetX:Xi,offsetY:Xi,blur:Xi,spread:Xi,inset:!1},mr=0,nn=0;nn<ze.length;nn++){var xn=ze[nn];$n(xn,"inset")?dt.inset=!0:Oi(xn)?(mr===0?dt.offsetX=xn:mr===1?dt.offsetY=xn:mr===2?dt.blur=xn:dt.spread=xn,mr++):dt.color=Xa.parse(be,xn)}return dt})}},$o={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(be,De){var ze=[0,1,2],dt=[];return De.filter(On).forEach(function(mr){switch(mr.value){case"stroke":dt.push(1);break;case"fill":dt.push(0);break;case"markers":dt.push(2);break}}),ze.forEach(function(mr){dt.indexOf(mr)===-1&&dt.push(mr)}),dt}},Do={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},vo={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(be,De){return en(De)?De.number:0}},Ms=function(){function Er(be,De){var ze,dt;this.animationDuration=Ra(be,Zo,De.animationDuration),this.backgroundClip=Ra(be,bo,De.backgroundClip),this.backgroundColor=Ra(be,to,De.backgroundColor),this.backgroundImage=Ra(be,ci,De.backgroundImage),this.backgroundOrigin=Ra(be,si,De.backgroundOrigin),this.backgroundPosition=Ra(be,Ti,De.backgroundPosition),this.backgroundRepeat=Ra(be,mi,De.backgroundRepeat),this.backgroundSize=Ra(be,ia,De.backgroundSize),this.borderTopColor=Ra(be,Ya,De.borderTopColor),this.borderRightColor=Ra(be,xa,De.borderRightColor),this.borderBottomColor=Ra(be,wa,De.borderBottomColor),this.borderLeftColor=Ra(be,Da,De.borderLeftColor),this.borderTopLeftRadius=Ra(be,ko,De.borderTopLeftRadius),this.borderTopRightRadius=Ra(be,ro,De.borderTopRightRadius),this.borderBottomRightRadius=Ra(be,pa,De.borderBottomRightRadius),this.borderBottomLeftRadius=Ra(be,Ea,De.borderBottomLeftRadius),this.borderTopStyle=Ra(be,Ka,De.borderTopStyle),this.borderRightStyle=Ra(be,lo,De.borderRightStyle),this.borderBottomStyle=Ra(be,so,De.borderBottomStyle),this.borderLeftStyle=Ra(be,Co,De.borderLeftStyle),this.borderTopWidth=Ra(be,is,De.borderTopWidth),this.borderRightWidth=Ra(be,cs,De.borderRightWidth),this.borderBottomWidth=Ra(be,Rs,De.borderBottomWidth),this.borderLeftWidth=Ra(be,Ko,De.borderLeftWidth),this.boxShadow=Ra(be,As,De.boxShadow),this.color=Ra(be,as,De.color),this.direction=Ra(be,co,De.direction),this.display=Ra(be,Ao,De.display),this.float=Ra(be,ss,De.cssFloat),this.fontFamily=Ra(be,Ln,De.fontFamily),this.fontSize=Ra(be,ui,De.fontSize),this.fontStyle=Ra(be,Qi,De.fontStyle),this.fontVariant=Ra(be,gi,De.fontVariant),this.fontWeight=Ra(be,wi,De.fontWeight),this.letterSpacing=Ra(be,_s,De.letterSpacing),this.lineBreak=Ra(be,il,De.lineBreak),this.lineHeight=Ra(be,Eo,De.lineHeight),this.listStyleImage=Ra(be,Fs,De.listStyleImage),this.listStylePosition=Ra(be,ms,De.listStylePosition),this.listStyleType=Ra(be,hs,De.listStyleType),this.marginTop=Ra(be,Ns,De.marginTop),this.marginRight=Ra(be,Ll,De.marginRight),this.marginBottom=Ra(be,el,De.marginBottom),this.marginLeft=Ra(be,Gs,De.marginLeft),this.opacity=Ra(be,or,De.opacity);var mr=Ra(be,ds,De.overflow);this.overflowX=mr[0],this.overflowY=mr[mr.length>1?1:0],this.overflowWrap=Ra(be,ks,De.overflowWrap),this.paddingTop=Ra(be,tl,De.paddingTop),this.paddingRight=Ra(be,xs,De.paddingRight),this.paddingBottom=Ra(be,Bs,De.paddingBottom),this.paddingLeft=Ra(be,al,De.paddingLeft),this.paintOrder=Ra(be,$o,De.paintOrder),this.position=Ra(be,Vo,De.position),this.textAlign=Ra(be,Js,De.textAlign),this.textDecorationColor=Ra(be,Qr,(ze=De.textDecorationColor)!==null&&ze!==void 0?ze:De.color),this.textDecorationLine=Ra(be,fn,(dt=De.textDecorationLine)!==null&&dt!==void 0?dt:De.textDecoration),this.textShadow=Ra(be,No,De.textShadow),this.textTransform=Ra(be,fs,De.textTransform),this.transform=Ra(be,Ds,De.transform),this.transformOrigin=Ra(be,Rt,De.transformOrigin),this.visibility=Ra(be,ce,De.visibility),this.webkitTextStrokeColor=Ra(be,Do,De.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ra(be,vo,De.webkitTextStrokeWidth),this.wordBreak=Ra(be,Ie,De.wordBreak),this.zIndex=Ra(be,Qe,De.zIndex)}return Er.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Er.prototype.isTransparent=function(){return _a(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 sa(this.display,4)||sa(this.display,33554432)||sa(this.display,268435456)||sa(this.display,536870912)||sa(this.display,67108864)||sa(this.display,134217728)},Er}(),rl=function(){function Er(be,De){this.content=Ra(be,Ua,De.content),this.quotes=Ra(be,Bo,De.quotes)}return Er}(),gs=function(){function Er(be,De){this.counterIncrement=Ra(be,no,De.counterIncrement),this.counterReset=Ra(be,Wo,De.counterReset)}return Er}(),Ra=function(be,De,ze){var dt=new Or,mr=ze!==null&&typeof ze!="undefined"?ze.toString():De.initialValue;dt.write(mr);var nn=new Lr(dt.read());switch(De.type){case 2:var xn=nn.parseComponentValue();return De.parse(be,On(xn)?xn.value:De.initialValue);case 0:return De.parse(be,nn.parseComponentValue());case 1:return De.parse(be,nn.parseComponentValues());case 4:return nn.parseComponentValue();case 3:switch(De.format){case"angle":return va.parse(be,nn.parseComponentValue());case"color":return Xa.parse(be,nn.parseComponentValue());case"image":return rn.parse(be,nn.parseComponentValue());case"length":var Fn=nn.parseComponentValue();return Oi(Fn)?Fn:Xi;case"length-percentage":var ni=nn.parseComponentValue();return zi(ni)?ni:Xi;case"time":return kt.parse(be,nn.parseComponentValue())}break}},dl="data-html2canvas-debug",fl=function(be){var De=be.getAttribute(dl);switch(De){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Us=function(be,De){var ze=fl(be);return ze===1||De===ze},Os=function(){function Er(be,De){if(this.context=be,this.textNodes=[],this.elements=[],this.flags=0,Us(De,3))debugger;this.styles=new Ms(be,window.getComputedStyle(De,null)),js(De)&&(this.styles.animationDuration.some(function(ze){return ze>0})&&(De.style.animationDuration="0s"),this.styles.transform!==null&&(De.style.transform="none")),this.bounds=l(this.context,De),Us(De,4)&&(this.flags|=16)}return Er}(),Xs="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ql="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ul=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),wl=0;wl<Ql.length;wl++)Ul[Ql.charCodeAt(wl)]=wl;for(var Ts=function(be){var De=be.length*.75,ze=be.length,dt,mr=0,nn,xn,Fn,ni;be[be.length-1]==="="&&(De--,be[be.length-2]==="="&&De--);var Yi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(De):new Array(De),Fi=Array.isArray(Yi)?Yi:new Uint8Array(Yi);for(dt=0;dt<ze;dt+=4)nn=Ul[be.charCodeAt(dt)],xn=Ul[be.charCodeAt(dt+1)],Fn=Ul[be.charCodeAt(dt+2)],ni=Ul[be.charCodeAt(dt+3)],Fi[mr++]=nn<<2|xn>>4,Fi[mr++]=(xn&15)<<4|Fn>>2,Fi[mr++]=(Fn&3)<<6|ni&63;return Yi},Ws=function(be){for(var De=be.length,ze=[],dt=0;dt<De;dt+=2)ze.push(be[dt+1]<<8|be[dt]);return ze},Tl=function(be){for(var De=be.length,ze=[],dt=0;dt<De;dt+=4)ze.push(be[dt+3]<<24|be[dt+2]<<16|be[dt+1]<<8|be[dt]);return ze},pl=5,jo=6+5,yo=2,qo=jo-pl,ps=65536>>pl,Is=1<<pl,es=Is-1,Ls=1024>>pl,Ps=ps+Ls,ml=Ps,Rl=2048>>6,_l=ml+Rl,Bl=65536>>jo,jl=1<<qo,kl=jl-1,Xl=function(be,De,ze){return be.slice?be.slice(De,ze):new Uint16Array(Array.prototype.slice.call(be,De,ze))},ol=function(be,De,ze){return be.slice?be.slice(De,ze):new Uint32Array(Array.prototype.slice.call(be,De,ze))},Ys=function(be,De){var ze=Ts(be),dt=Array.isArray(ze)?Tl(ze):new Uint32Array(ze),mr=Array.isArray(ze)?Ws(ze):new Uint16Array(ze),nn=24,xn=Xl(mr,nn/2,dt[4]/2),Fn=dt[5]===2?Xl(mr,(nn+dt[4])/2):ol(dt,Math.ceil((nn+dt[4])/4));return new sl(dt[0],dt[1],dt[2],dt[3],xn,Fn)},sl=function(){function Er(be,De,ze,dt,mr,nn){this.initialValue=be,this.errorValue=De,this.highStart=ze,this.highValueIndex=dt,this.index=mr,this.data=nn}return Er.prototype.get=function(be){var De;if(be>=0){if(be<55296||be>56319&&be<=65535)return De=this.index[be>>pl],De=(De<<yo)+(be&es),this.data[De];if(be<=65535)return De=this.index[ps+(be-55296>>pl)],De=(De<<yo)+(be&es),this.data[De];if(be<this.highStart)return De=_l-Bl+(be>>jo),De=this.index[De],De+=be>>pl&kl,De=this.index[De],De=(De<<yo)+(be&es),this.data[De];if(be<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Er}(),nl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ml=0;Ml<nl.length;Ml++)xl[nl.charCodeAt(Ml)]=Ml;var Wl=1,au=2,Nl=3,$l=4,tu=5,Iu=7,pu=8,mu=9,gu=10,ql=11,Cl=12,ll=13,Hl=14,Sl=15,Su=function(be){for(var De=[],ze=0,dt=be.length;ze<dt;){var mr=be.charCodeAt(ze++);if(mr>=55296&&mr<=56319&&ze<dt){var nn=be.charCodeAt(ze++);(nn&64512)===56320?De.push(((mr&1023)<<10)+(nn&1023)+65536):(De.push(mr),ze--)}else De.push(mr)}return De},vu=function(){for(var be=[],De=0;De<arguments.length;De++)be[De]=arguments[De];if(String.fromCodePoint)return String.fromCodePoint.apply(String,be);var ze=be.length;if(!ze)return"";for(var dt=[],mr=-1,nn="";++mr<ze;){var xn=be[mr];xn<=65535?dt.push(xn):(xn-=65536,dt.push((xn>>10)+55296,xn%1024+56320)),(mr+1===ze||dt.length>16384)&&(nn+=String.fromCharCode.apply(String,dt),dt.length=0)}return nn},Au=Ys(Xs),Ol="\xD7",cu="\xF7",du=function(be){return Au.get(be)},Lu=function(be,De,ze){var dt=ze-2,mr=De[dt],nn=De[ze-1],xn=De[ze];if(nn===au&&xn===Nl)return Ol;if(nn===au||nn===Nl||nn===$l)return cu;if(xn===au||xn===Nl||xn===$l)return cu;if(nn===pu&&[pu,mu,ql,Cl].indexOf(xn)!==-1)return Ol;if((nn===ql||nn===mu)&&(xn===mu||xn===gu))return Ol;if((nn===Cl||nn===gu)&&xn===gu)return Ol;if(xn===ll||xn===tu)return Ol;if(xn===Iu)return Ol;if(nn===Wl)return Ol;if(nn===ll&&xn===Hl){for(;mr===tu;)mr=De[--dt];if(mr===Hl)return Ol}if(nn===Sl&&xn===Sl){for(var Fn=0;mr===Sl;)Fn++,mr=De[--dt];if(Fn%2===0)return Ol}return cu},zl=function(be){var De=Su(be),ze=De.length,dt=0,mr=0,nn=De.map(du);return{next:function(){if(dt>=ze)return{done:!0,value:null};for(var Fn=Ol;dt<ze&&(Fn=Lu(De,nn,++dt))===Ol;);if(Fn!==Ol||dt===ze){var ni=vu.apply(null,De.slice(mr,dt));return mr=dt,{value:ni,done:!1}}return{done:!0,value:null}}}},ru=function(be){for(var De=zl(be),ze=[],dt;!(dt=De.next()).done;)dt.value&&ze.push(dt.value.slice());return ze},ou=function(be){var De=123;if(be.createRange){var ze=be.createRange();if(ze.getBoundingClientRect){var dt=be.createElement("boundtest");dt.style.height=De+"px",dt.style.display="block",be.body.appendChild(dt),ze.selectNode(dt);var mr=ze.getBoundingClientRect(),nn=Math.round(mr.height);if(be.body.removeChild(dt),nn===De)return!0}}return!1},su=function(be){var De=be.createElement("boundtest");De.style.width="50px",De.style.display="block",De.style.fontSize="12px",De.style.letterSpacing="0px",De.style.wordSpacing="0px",be.body.appendChild(De);var ze=be.createRange();De.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var dt=De.firstChild,mr=n(dt.data).map(function(ni){return t(ni)}),nn=0,xn={},Fn=mr.every(function(ni,Yi){ze.setStart(dt,nn),ze.setEnd(dt,nn+ni.length);var Fi=ze.getBoundingClientRect();nn+=ni.length;var qi=Fi.x>xn.x||Fi.y>xn.y;return xn=Fi,Yi===0?!0:qi});return be.body.removeChild(De),Fn},Jl=function(){return typeof new Image().crossOrigin!="undefined"},Du=function(){return typeof new XMLHttpRequest().responseType=="string"},Ru=function(be){var De=new Image,ze=be.createElement("canvas"),dt=ze.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),ze.toDataURL()}catch(mr){return!1}return!0},Zl=function(be){return be[0]===0&&be[1]===255&&be[2]===0&&be[3]===255},yu=function(be){var De=be.createElement("canvas"),ze=100;De.width=ze,De.height=ze;var dt=De.getContext("2d");if(!dt)return Promise.reject(!1);dt.fillStyle="rgb(0, 255, 0)",dt.fillRect(0,0,ze,ze);var mr=new Image,nn=De.toDataURL();mr.src=nn;var xn=xu(ze,ze,0,0,mr);return dt.fillStyle="red",dt.fillRect(0,0,ze,ze),bu(xn).then(function(Fn){dt.drawImage(Fn,0,0);var ni=dt.getImageData(0,0,ze,ze).data;dt.fillStyle="red",dt.fillRect(0,0,ze,ze);var Yi=be.createElement("div");return Yi.style.backgroundImage="url("+nn+")",Yi.style.height=ze+"px",Zl(ni)?bu(xu(ze,ze,0,0,Yi)):Promise.reject(!1)}).then(function(Fn){return dt.drawImage(Fn,0,0),Zl(dt.getImageData(0,0,ze,ze).data)}).catch(function(){return!1})},xu=function(be,De,ze,dt,mr){var nn="http://www.w3.org/2000/svg",xn=document.createElementNS(nn,"svg"),Fn=document.createElementNS(nn,"foreignObject");return xn.setAttributeNS(null,"width",be.toString()),xn.setAttributeNS(null,"height",De.toString()),Fn.setAttributeNS(null,"width","100%"),Fn.setAttributeNS(null,"height","100%"),Fn.setAttributeNS(null,"x",ze.toString()),Fn.setAttributeNS(null,"y",dt.toString()),Fn.setAttributeNS(null,"externalResourcesRequired","true"),xn.appendChild(Fn),Fn.appendChild(mr),xn},bu=function(be){return new Promise(function(De,ze){var dt=new Image;dt.onload=function(){return De(dt)},dt.onerror=ze,dt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(be))})},hl={get SUPPORT_RANGE_BOUNDS(){var Er=ou(document);return Object.defineProperty(hl,"SUPPORT_RANGE_BOUNDS",{value:Er}),Er},get SUPPORT_WORD_BREAKING(){var Er=hl.SUPPORT_RANGE_BOUNDS&&su(document);return Object.defineProperty(hl,"SUPPORT_WORD_BREAKING",{value:Er}),Er},get SUPPORT_SVG_DRAWING(){var Er=Ru(document);return Object.defineProperty(hl,"SUPPORT_SVG_DRAWING",{value:Er}),Er},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Er=typeof Array.from=="function"&&typeof window.fetch=="function"?yu(document):Promise.resolve(!1);return Object.defineProperty(hl,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Er}),Er},get SUPPORT_CORS_IMAGES(){var Er=Jl();return Object.defineProperty(hl,"SUPPORT_CORS_IMAGES",{value:Er}),Er},get SUPPORT_RESPONSE_TYPE(){var Er=Du();return Object.defineProperty(hl,"SUPPORT_RESPONSE_TYPE",{value:Er}),Er},get SUPPORT_CORS_XHR(){var Er="withCredentials"in new XMLHttpRequest;return Object.defineProperty(hl,"SUPPORT_CORS_XHR",{value:Er}),Er},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Er=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(hl,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Er}),Er}},Dl=function(){function Er(be,De){this.text=be,this.bounds=De}return Er}(),nu=function(be,De,ze,dt){var mr=Ae(De,ze),nn=[],xn=0;return mr.forEach(function(Fn){if(ze.textDecorationLine.length||Fn.trim().length>0)if(hl.SUPPORT_RANGE_BOUNDS){var ni=hu(dt,xn,Fn.length).getClientRects();if(ni.length>1){var Yi=fu(Fn),Fi=0;Yi.forEach(function(Za){nn.push(new Dl(Za,d.fromDOMRectList(be,hu(dt,Fi+xn,Za.length).getClientRects()))),Fi+=Za.length})}else nn.push(new Dl(Fn,d.fromDOMRectList(be,ni)))}else{var qi=dt.splitText(Fn.length);nn.push(new Dl(Fn,Nu(be,dt))),dt=qi}else hl.SUPPORT_RANGE_BOUNDS||(dt=dt.splitText(Fn.length));xn+=Fn.length}),nn},Nu=function(be,De){var ze=De.ownerDocument;if(ze){var dt=ze.createElement("html2canvaswrapper");dt.appendChild(De.cloneNode(!0));var mr=De.parentNode;if(mr){mr.replaceChild(dt,De);var nn=l(be,dt);return dt.firstChild&&mr.replaceChild(dt.firstChild,dt),nn}}return d.EMPTY},hu=function(be,De,ze){var dt=be.ownerDocument;if(!dt)throw new Error("Node has no owner document");var mr=dt.createRange();return mr.setStart(be,De),mr.setEnd(be,De+ze),mr},fu=function(be){if(hl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var De=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(De.segment(be)).map(function(ze){return ze.segment})}return ru(be)},iu=function(be,De){if(hl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var ze=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(ze.segment(be)).map(function(dt){return dt.segment})}return L(be,De)},Ae=function(be,De){return De.letterSpacing!==0?fu(be):iu(be,De)},q=[32,160,4961,65792,65793,4153,4241],L=function(be,De){for(var ze=Be(be,{lineBreak:De.lineBreak,wordBreak:De.overflowWrap==="break-word"?"break-word":De.wordBreak}),dt=[],mr,nn=function(){if(mr.value){var Fn=mr.value.slice(),ni=n(Fn),Yi="";ni.forEach(function(Fi){q.indexOf(Fi)===-1?Yi+=t(Fi):(Yi.length&&dt.push(Yi),dt.push(t(Fi)),Yi="")}),Yi.length&&dt.push(Yi)}};!(mr=ze.next()).done;)nn();return dt},W=function(){function Er(be,De,ze){this.text=H(De.data,ze.textTransform),this.textBounds=nu(be,this.text,ze,De)}return Er}(),H=function(be,De){switch(De){case 1:return be.toLowerCase();case 3:return be.replace(Z,ne);case 2:return be.toUpperCase();default:return be}},Z=/(^|\s|:|-|\(|\))([a-z])/g,ne=function(be,De,ze){return be.length>0?De+ze.toUpperCase():be},ve=function(Er){p(be,Er);function be(De,ze){var dt=Er.call(this,De,ze)||this;return dt.src=ze.currentSrc||ze.src,dt.intrinsicWidth=ze.naturalWidth,dt.intrinsicHeight=ze.naturalHeight,dt.context.cache.addImage(dt.src),dt}return be}(Os),Te=function(Er){p(be,Er);function be(De,ze){var dt=Er.call(this,De,ze)||this;return dt.canvas=ze,dt.intrinsicWidth=ze.width,dt.intrinsicHeight=ze.height,dt}return be}(Os),Ve=function(Er){p(be,Er);function be(De,ze){var dt=Er.call(this,De,ze)||this,mr=new XMLSerializer,nn=l(De,ze);return ze.setAttribute("width",nn.width+"px"),ze.setAttribute("height",nn.height+"px"),dt.svg="data:image/svg+xml,"+encodeURIComponent(mr.serializeToString(ze)),dt.intrinsicWidth=ze.width.baseVal.value,dt.intrinsicHeight=ze.height.baseVal.value,dt.context.cache.addImage(dt.svg),dt}return be}(Os),ot=function(Er){p(be,Er);function be(De,ze){var dt=Er.call(this,De,ze)||this;return dt.value=ze.value,dt}return be}(Os),ht=function(Er){p(be,Er);function be(De,ze){var dt=Er.call(this,De,ze)||this;return dt.start=ze.start,dt.reversed=typeof ze.reversed=="boolean"&&ze.reversed===!0,dt}return be}(Os),Qt=[{type:15,flags:0,unit:"px",number:3}],Cr=[{type:16,flags:0,number:50}],wr=function(be){return be.width>be.height?new d(be.left+(be.width-be.height)/2,be.top,be.height,be.height):be.width<be.height?new d(be.left,be.top+(be.height-be.width)/2,be.width,be.width):be},Kr=function(be){var De=be.type===Nn?new Array(be.value.length+1).join("\u2022"):be.value;return De.length===0?be.placeholder||"":De},Jr="checkbox",Cn="radio",Nn="password",Jn=707406591,bi=function(Er){p(be,Er);function be(De,ze){var dt=Er.call(this,De,ze)||this;dt.type=ze.type.toLowerCase(),dt.checked=ze.checked,dt.value=Kr(ze),(dt.type===Jr||dt.type===Cn)&&(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=wr(dt.bounds));switch(dt.type){case Jr:dt.styles.borderTopRightRadius=dt.styles.borderTopLeftRadius=dt.styles.borderBottomRightRadius=dt.styles.borderBottomLeftRadius=Qt;break;case Cn:dt.styles.borderTopRightRadius=dt.styles.borderTopLeftRadius=dt.styles.borderBottomRightRadius=dt.styles.borderBottomLeftRadius=Cr;break}return dt}return be}(Os),ua=function(Er){p(be,Er);function be(De,ze){var dt=Er.call(this,De,ze)||this,mr=ze.options[ze.selectedIndex||0];return dt.value=mr&&mr.text||"",dt}return be}(Os),Vi=function(Er){p(be,Er);function be(De,ze){var dt=Er.call(this,De,ze)||this;return dt.value=ze.value,dt}return be}(Os),Zi=function(Er){p(be,Er);function be(De,ze){var dt=Er.call(this,De,ze)||this;dt.src=ze.src,dt.width=parseInt(ze.width,10)||0,dt.height=parseInt(ze.height,10)||0,dt.backgroundColor=dt.styles.backgroundColor;try{if(ze.contentWindow&&ze.contentWindow.document&&ze.contentWindow.document.documentElement){dt.tree=Sa(De,ze.contentWindow.document.documentElement);var mr=ze.contentWindow.document.documentElement?ao(De,getComputedStyle(ze.contentWindow.document.documentElement).backgroundColor):So.TRANSPARENT,nn=ze.contentWindow.document.body?ao(De,getComputedStyle(ze.contentWindow.document.body).backgroundColor):So.TRANSPARENT;dt.backgroundColor=_a(mr)?_a(nn)?dt.styles.backgroundColor:nn:mr}}catch(xn){}return dt}return be}(Os),ka=["OL","UL","MENU"],Ga=function Er(be,De,ze,dt){for(var mr=De.firstChild,nn=void 0;mr;mr=nn)if(nn=mr.nextSibling,ys(mr)&&mr.data.trim().length>0)ze.textNodes.push(new W(be,mr,ze.styles));else if(Cs(mr))if(ir(mr)&&mr.assignedNodes)mr.assignedNodes().forEach(function(Fn){return Er(be,Fn,ze,dt)});else{var xn=Ba(be,mr);xn.styles.isVisible()&&(Go(mr,xn,dt)?xn.flags|=4:bs(xn.styles)&&(xn.flags|=2),ka.indexOf(mr.tagName)!==-1&&(xn.flags|=8),ze.elements.push(xn),mr.slot,mr.shadowRoot?Er(be,mr.shadowRoot,xn,dt):!Vt(mr)&&!cr(mr)&&!er(mr)&&Er(be,mr,xn,dt))}},Ba=function(be,De){return oe(De)?new ve(be,De):sn(De)?new Te(be,De):cr(De)?new Ve(be,De):Hs(De)?new ot(be,De):Ee(De)?new ht(be,De):Ye(De)?new bi(be,De):er(De)?new ua(be,De):Vt(De)?new Vi(be,De):Oe(De)?new Zi(be,De):new Os(be,De)},Sa=function(be,De){var ze=Ba(be,De);return ze.flags|=4,Ga(be,De,ze,ze),ze},Go=function(be,De,ze){return De.styles.isPositionedWithZIndex()||De.styles.opacity<1||De.styles.isTransformed()||Fr(be)&&ze.styles.isTransparent()},bs=function(be){return be.isPositioned()||be.isFloating()},ys=function(be){return be.nodeType===Node.TEXT_NODE},Cs=function(be){return be.nodeType===Node.ELEMENT_NODE},js=function(be){return Cs(be)&&typeof be.style!="undefined"&&!ws(be)},ws=function(be){return typeof be.className=="object"},Hs=function(be){return be.tagName==="LI"},Ee=function(be){return be.tagName==="OL"},Ye=function(be){return be.tagName==="INPUT"},Et=function(be){return be.tagName==="HTML"},cr=function(be){return be.tagName==="svg"},Fr=function(be){return be.tagName==="BODY"},sn=function(be){return be.tagName==="CANVAS"},je=function(be){return be.tagName==="VIDEO"},oe=function(be){return be.tagName==="IMG"},Oe=function(be){return be.tagName==="IFRAME"},$e=function(be){return be.tagName==="STYLE"},bt=function(be){return be.tagName==="SCRIPT"},Vt=function(be){return be.tagName==="TEXTAREA"},er=function(be){return be.tagName==="SELECT"},ir=function(be){return be.tagName==="SLOT"},zr=function(be){return be.tagName.indexOf("-")>0},hn=function(){function Er(){this.counters={}}return Er.prototype.getCounterValue=function(be){var De=this.counters[be];return De&&De.length?De[De.length-1]:1},Er.prototype.getCounterValues=function(be){var De=this.counters[be];return De||[]},Er.prototype.pop=function(be){var De=this;be.forEach(function(ze){return De.counters[ze].pop()})},Er.prototype.parse=function(be){var De=this,ze=be.counterIncrement,dt=be.counterReset,mr=!0;ze!==null&&ze.forEach(function(xn){var Fn=De.counters[xn.counter];Fn&&xn.increment!==0&&(mr=!1,Fn.length||Fn.push(1),Fn[Math.max(0,Fn.length-1)]+=xn.increment)});var nn=[];return mr&&dt.forEach(function(xn){var Fn=De.counters[xn.counter];nn.push(xn.counter),Fn||(Fn=De.counters[xn.counter]=[]),Fn.push(xn.reset)}),nn},Er}(),Wr={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"]},ln={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"]},yn={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"]},Wn=function(be,De,ze,dt,mr,nn){return be<De||be>ze?ie(be,mr,nn.length>0):dt.integers.reduce(function(xn,Fn,ni){for(;be>=Fn;)be-=Fn,xn+=dt.values[ni];return xn},"")+nn},Ii=function(be,De,ze,dt){var mr="";do ze||be--,mr=dt(be)+mr,be/=De;while(be*De>=De);return mr},ki=function(be,De,ze,dt,mr){var nn=ze-De+1;return(be<0?"-":"")+(Ii(Math.abs(be),nn,dt,function(xn){return t(Math.floor(xn%nn)+De)})+mr)},da=function(be,De,ze){ze===void 0&&(ze=". ");var dt=De.length;return Ii(Math.abs(be),dt,!1,function(mr){return De[Math.floor(mr%dt)]})+ze},$i=1<<0,Qa=1<<1,ya=1<<2,fo=1<<3,za=function(be,De,ze,dt,mr,nn){if(be<-9999||be>9999)return ie(be,4,mr.length>0);var xn=Math.abs(be),Fn=mr;if(xn===0)return De[0]+Fn;for(var ni=0;xn>0&&ni<=4;ni++){var Yi=xn%10;Yi===0&&sa(nn,$i)&&Fn!==""?Fn=De[Yi]+Fn:Yi>1||Yi===1&&ni===0||Yi===1&&ni===1&&sa(nn,Qa)||Yi===1&&ni===1&&sa(nn,ya)&&be>100||Yi===1&&ni>1&&sa(nn,fo)?Fn=De[Yi]+(ni>0?ze[ni-1]:"")+Fn:Yi===1&&ni>0&&(Fn=ze[ni-1]+Fn),xn=Math.floor(xn/10)}return(be<0?dt:"")+Fn},Xo="\u5341\u767E\u5343\u842C",ls="\u62FE\u4F70\u4EDF\u842C",N="\u30DE\u30A4\u30CA\u30B9",U="\uB9C8\uC774\uB108\uC2A4",ie=function(be,De,ze){var dt=ze?". ":"",mr=ze?"\u3001":"",nn=ze?", ":"",xn=ze?" ":"";switch(De){case 0:return"\u2022"+xn;case 1:return"\u25E6"+xn;case 2:return"\u25FE"+xn;case 5:var Fn=ki(be,48,57,!0,dt);return Fn.length<4?"0"+Fn:Fn;case 4:return da(be,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",mr);case 6:return Wn(be,1,3999,Wr,3,dt).toLowerCase();case 7:return Wn(be,1,3999,Wr,3,dt);case 8:return ki(be,945,969,!1,dt);case 9:return ki(be,97,122,!1,dt);case 10:return ki(be,65,90,!1,dt);case 11:return ki(be,1632,1641,!0,dt);case 12:case 49:return Wn(be,1,9999,jr,3,dt);case 35:return Wn(be,1,9999,jr,3,dt).toLowerCase();case 13:return ki(be,2534,2543,!0,dt);case 14:case 30:return ki(be,6112,6121,!0,dt);case 15:return da(be,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",mr);case 16:return da(be,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",mr);case 17:case 48:return za(be,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Xo,"\u8CA0",mr,Qa|ya|fo);case 47:return za(be,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ls,"\u8CA0",mr,$i|Qa|ya|fo);case 42:return za(be,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Xo,"\u8D1F",mr,Qa|ya|fo);case 41:return za(be,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ls,"\u8D1F",mr,$i|Qa|ya|fo);case 26:return za(be,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",N,mr,0);case 25:return za(be,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",N,mr,$i|Qa|ya);case 31:return za(be,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",U,nn,$i|Qa|ya);case 33:return za(be,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",U,nn,0);case 32:return za(be,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",U,nn,$i|Qa|ya);case 18:return ki(be,2406,2415,!0,dt);case 20:return Wn(be,1,19999,yn,3,dt);case 21:return ki(be,2790,2799,!0,dt);case 22:return ki(be,2662,2671,!0,dt);case 22:return Wn(be,1,10999,ln,3,dt);case 23:return da(be,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return da(be,"\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(be,3302,3311,!0,dt);case 28:return da(be,"\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",mr);case 29:return da(be,"\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",mr);case 34:return ki(be,3792,3801,!0,dt);case 37:return ki(be,6160,6169,!0,dt);case 38:return ki(be,4160,4169,!0,dt);case 39:return ki(be,2918,2927,!0,dt);case 40:return ki(be,1776,1785,!0,dt);case 43:return ki(be,3046,3055,!0,dt);case 44:return ki(be,3174,3183,!0,dt);case 45:return ki(be,3664,3673,!0,dt);case 46:return ki(be,3872,3881,!0,dt);case 3:default:return ki(be,48,57,!0,dt)}},ue="data-html2canvas-ignore",ge=function(){function Er(be,De,ze){if(this.context=be,this.options=ze,this.scrolledElements=[],this.referenceElement=De,this.counters=new hn,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(be,De){var ze=this,dt=Lt(be,De);if(!dt.contentWindow)return Promise.reject("Unable to find iframe window");var mr=be.defaultView.pageXOffset,nn=be.defaultView.pageYOffset,xn=dt.contentWindow,Fn=xn.document,ni=_r(dt).then(function(){return v(ze,void 0,void 0,function(){var Yi,Fi;return m(this,function(qi){switch(qi.label){case 0:return this.scrolledElements.forEach(la),xn&&(xn.scrollTo(De.left,De.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(xn.scrollY!==De.top||xn.scrollX!==De.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(xn.scrollX-De.left,xn.scrollY-De.top,0,0))),Yi=this.options.onclone,Fi=this.clonedReferenceElement,typeof Fi=="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,br(Fn)]:[3,4];case 3:qi.sent(),qi.label=4;case 4:return typeof Yi=="function"?[2,Promise.resolve().then(function(){return Yi(Fn,Fi)}).then(function(){return dt})]:[2,dt]}})})});return Fn.open(),Fn.write(Si(document.doctype)+"<html></html>"),Ci(this.referenceElement.ownerDocument,mr,nn),Fn.replaceChild(Fn.adoptNode(this.documentElement),Fn.documentElement),Fn.close(),ni},Er.prototype.createElementClone=function(be){if(Us(be,2))debugger;if(sn(be))return this.createCanvasClone(be);if(je(be))return this.createVideoClone(be);if($e(be))return this.createStyleClone(be);var De=be.cloneNode(!1);return oe(De)&&(oe(be)&&be.currentSrc&&be.currentSrc!==be.src&&(De.src=be.currentSrc,De.srcset=""),De.loading==="lazy"&&(De.loading="eager")),zr(De)?this.createCustomElementClone(De):De},Er.prototype.createCustomElementClone=function(be){var De=document.createElement("html2canvascustomelement");return ti(be.style,De),De},Er.prototype.createStyleClone=function(be){try{var De=be.sheet;if(De&&De.cssRules){var ze=[].slice.call(De.cssRules,0).reduce(function(mr,nn){return nn&&typeof nn.cssText=="string"?mr+nn.cssText:mr},""),dt=be.cloneNode(!1);return dt.textContent=ze,dt}}catch(mr){if(this.context.logger.error("Unable to access cssRules property",mr),mr.name!=="SecurityError")throw mr}return be.cloneNode(!1)},Er.prototype.createCanvasClone=function(be){var De;if(this.options.inlineImages&&be.ownerDocument){var ze=be.ownerDocument.createElement("img");try{return ze.src=be.toDataURL(),ze}catch(ni){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",be)}}var dt=be.cloneNode(!1);try{dt.width=be.width,dt.height=be.height;var mr=be.getContext("2d"),nn=dt.getContext("2d");if(nn)if(!this.options.allowTaint&&mr)nn.putImageData(mr.getImageData(0,0,be.width,be.height),0,0);else{var xn=(De=be.getContext("webgl2"))!==null&&De!==void 0?De:be.getContext("webgl");if(xn){var Fn=xn.getContextAttributes();(Fn==null?void 0:Fn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",be)}nn.drawImage(be,0,0)}return dt}catch(ni){this.context.logger.info("Unable to clone canvas as it is tainted",be)}return dt},Er.prototype.createVideoClone=function(be){var De=be.ownerDocument.createElement("canvas");De.width=be.offsetWidth,De.height=be.offsetHeight;var ze=De.getContext("2d");try{return ze&&(ze.drawImage(be,0,0,De.width,De.height),this.options.allowTaint||ze.getImageData(0,0,De.width,De.height)),De}catch(mr){this.context.logger.info("Unable to clone video as it is tainted",be)}var dt=be.ownerDocument.createElement("canvas");return dt.width=be.offsetWidth,dt.height=be.offsetHeight,dt},Er.prototype.appendChildNode=function(be,De,ze){(!Cs(De)||!bt(De)&&!De.hasAttribute(ue)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(De)))&&((!this.options.copyStyles||!Cs(De)||!$e(De))&&be.appendChild(this.cloneNode(De,ze)))},Er.prototype.cloneChildNodes=function(be,De,ze){for(var dt=this,mr=be.shadowRoot?be.shadowRoot.firstChild:be.firstChild;mr;mr=mr.nextSibling)if(Cs(mr)&&ir(mr)&&typeof mr.assignedNodes=="function"){var nn=mr.assignedNodes();nn.length&&nn.forEach(function(xn){return dt.appendChildNode(De,xn,ze)})}else this.appendChildNode(De,mr,ze)},Er.prototype.cloneNode=function(be,De){if(ys(be))return document.createTextNode(be.data);if(!be.ownerDocument)return be.cloneNode(!1);var ze=be.ownerDocument.defaultView;if(ze&&Cs(be)&&(js(be)||ws(be))){var dt=this.createElementClone(be);dt.style.transitionProperty="none";var mr=ze.getComputedStyle(be),nn=ze.getComputedStyle(be,":before"),xn=ze.getComputedStyle(be,":after");this.referenceElement===be&&js(dt)&&(this.clonedReferenceElement=dt),Fr(dt)&&ho(dt);var Fn=this.counters.parse(new gs(this.context,mr)),ni=this.resolvePseudoContent(be,dt,nn,We.BEFORE);zr(be)&&(De=!0),je(be)||this.cloneChildNodes(be,dt,De),ni&&dt.insertBefore(ni,dt.firstChild);var Yi=this.resolvePseudoContent(be,dt,xn,We.AFTER);return Yi&&dt.appendChild(Yi),this.counters.pop(Fn),(mr&&(this.options.copyStyles||ws(be))&&!Oe(be)||De)&&ti(mr,dt),(be.scrollTop!==0||be.scrollLeft!==0)&&this.scrolledElements.push([dt,be.scrollLeft,be.scrollTop]),(Vt(be)||er(be))&&(Vt(dt)||er(dt))&&(dt.value=be.value),dt}return be.cloneNode(!1)},Er.prototype.resolvePseudoContent=function(be,De,ze,dt){var mr=this;if(!ze)return;var nn=ze.content,xn=De.ownerDocument;if(!xn||!nn||nn==="none"||nn==="-moz-alt-content"||ze.display==="none")return;this.counters.parse(new gs(this.context,ze));var Fn=new rl(this.context,ze),ni=xn.createElement("html2canvaspseudoelement");ti(ze,ni),Fn.content.forEach(function(Fi){if(Fi.type===0)ni.appendChild(xn.createTextNode(Fi.value));else if(Fi.type===22){var qi=xn.createElement("img");qi.src=Fi.value,qi.style.opacity="1",ni.appendChild(qi)}else if(Fi.type===18){if(Fi.name==="attr"){var Za=Fi.values.filter(On);Za.length&&ni.appendChild(xn.createTextNode(be.getAttribute(Za[0].value)||""))}else if(Fi.name==="counter"){var eo=Fi.values.filter(pi),po=eo[0],us=eo[1];if(po&&On(po)){var Yo=mr.counters.getCounterValue(po.value),Po=us&&On(us)?hs.parse(mr.context,us.value):3;ni.appendChild(xn.createTextNode(ie(Yo,Po,!1)))}}else if(Fi.name==="counters"){var $s=Fi.values.filter(pi),po=$s[0],cl=$s[1],us=$s[2];if(po&&On(po)){var zs=mr.counters.getCounterValues(po.value),Ro=us&&On(us)?hs.parse(mr.context,us.value):3,Al=cl&&cl.type===0?cl.value:"",bl=zs.map(function(Mu){return ie(Mu,Ro,!1)}).join(Al);ni.appendChild(xn.createTextNode(bl))}}}else if(Fi.type===20)switch(Fi.value){case"open-quote":ni.appendChild(xn.createTextNode(Es(Fn.quotes,mr.quoteDepth++,!0)));break;case"close-quote":ni.appendChild(xn.createTextNode(Es(Fn.quotes,--mr.quoteDepth,!1)));break;default:ni.appendChild(xn.createTextNode(Fi.value))}}),ni.className=Ma+" "+Na;var Yi=dt===We.BEFORE?" "+Ma:" "+Na;return ws(De)?De.className.baseValue+=Yi:De.className+=Yi,ni},Er.destroy=function(be){return be.parentNode?(be.parentNode.removeChild(be),!0):!1},Er}(),We;(function(Er){Er[Er.BEFORE=0]="BEFORE",Er[Er.AFTER=1]="AFTER"})(We||(We={}));var Lt=function(be,De){var ze=be.createElement("iframe");return ze.className="html2canvas-container",ze.style.visibility="hidden",ze.style.position="fixed",ze.style.left="-10000px",ze.style.top="0px",ze.style.border="0",ze.width=De.width.toString(),ze.height=De.height.toString(),ze.scrolling="no",ze.setAttribute(ue,"true"),be.body.appendChild(ze),ze},nr=function(be){return new Promise(function(De){if(be.complete){De();return}if(!be.src){De();return}be.onload=De,be.onerror=De})},br=function(be){return Promise.all([].slice.call(be.images,0).map(nr))},_r=function(be){return new Promise(function(De,ze){var dt=be.contentWindow;if(!dt)return ze("No window assigned for iframe");var mr=dt.document;dt.onload=be.onload=function(){dt.onload=be.onload=null;var nn=setInterval(function(){mr.body.childNodes.length>0&&mr.readyState==="complete"&&(clearInterval(nn),De(be))},50)}})},Bn=["all","d","content"],ti=function(be,De){for(var ze=be.length-1;ze>=0;ze--){var dt=be.item(ze);Bn.indexOf(dt)===-1&&De.style.setProperty(dt,be.getPropertyValue(dt))}return De},Si=function(be){var De="";return be&&(De+="<!DOCTYPE ",be.name&&(De+=be.name),be.internalSubset&&(De+=be.internalSubset),be.publicId&&(De+='"'+be.publicId+'"'),be.systemId&&(De+='"'+be.systemId+'"'),De+=">"),De},Ci=function(be,De,ze){be&&be.defaultView&&(De!==be.defaultView.pageXOffset||ze!==be.defaultView.pageYOffset)&&be.defaultView.scrollTo(De,ze)},la=function(be){var De=be[0],ze=be[1],dt=be[2];De.scrollLeft=ze,De.scrollTop=dt},Ta=":before",Wa=":after",Ma="___html2canvas___pseudoelement_before",Na="___html2canvas___pseudoelement_after",qa=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,ho=function(be){ns(be,"."+Ma+Ta+qa+`
|
|
|
.`+Na+Wa+qa)},ns=function(be,De){var ze=be.ownerDocument;if(ze){var dt=ze.createElement("style");dt.textContent=De,be.appendChild(dt)}},Mo=function(){function Er(){}return Er.getOrigin=function(be){var De=Er._link;return De?(De.href=be,De.href=De.href,De.protocol+De.hostname+De.port):"about:blank"},Er.isSameOrigin=function(be){return Er.getOrigin(be)===Er._origin},Er.setContext=function(be){Er._link=be.document.createElement("a"),Er._origin=Er.getOrigin(be.location.href)},Er._origin="about:blank",Er}(),Ss=function(){function Er(be,De){this.context=be,this._options=De,this._cache={}}return Er.prototype.addImage=function(be){var De=Promise.resolve();return this.has(be)||(Gl(be)||Pl(be))&&(this._cache[be]=this.loadImage(be)).catch(function(){}),De},Er.prototype.match=function(be){return this._cache[be]},Er.prototype.loadImage=function(be){return v(this,void 0,void 0,function(){var De,ze,dt,mr,nn=this;return m(this,function(xn){switch(xn.label){case 0:return De=Mo.isSameOrigin(be),ze=!Vl(be)&&this._options.useCORS===!0&&hl.SUPPORT_CORS_IMAGES&&!De,dt=!Vl(be)&&!De&&!Gl(be)&&typeof this._options.proxy=="string"&&hl.SUPPORT_CORS_XHR&&!ze,!De&&this._options.allowTaint===!1&&!Vl(be)&&!Gl(be)&&!dt&&!ze?[2]:(mr=be,dt?[4,this.proxy(mr)]:[3,2]);case 1:mr=xn.sent(),xn.label=2;case 2:return this.context.logger.debug("Added image "+be.substring(0,256)),[4,new Promise(function(Fn,ni){var Yi=new Image;Yi.onload=function(){return Fn(Yi)},Yi.onerror=ni,(Il(mr)||ze)&&(Yi.crossOrigin="anonymous"),Yi.src=mr,Yi.complete===!0&&setTimeout(function(){return Fn(Yi)},500),nn._options.imageTimeout>0&&setTimeout(function(){return ni("Timed out ("+nn._options.imageTimeout+"ms) loading image")},nn._options.imageTimeout)})];case 3:return[2,xn.sent()]}})})},Er.prototype.has=function(be){return typeof this._cache[be]!="undefined"},Er.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Er.prototype.proxy=function(be){var De=this,ze=this._options.proxy;if(!ze)throw new Error("No proxy defined");var dt=be.substring(0,256);return new Promise(function(mr,nn){var xn=hl.SUPPORT_RESPONSE_TYPE?"blob":"text",Fn=new XMLHttpRequest;Fn.onload=function(){if(Fn.status===200)if(xn==="text")mr(Fn.response);else{var Fi=new FileReader;Fi.addEventListener("load",function(){return mr(Fi.result)},!1),Fi.addEventListener("error",function(qi){return nn(qi)},!1),Fi.readAsDataURL(Fn.response)}else nn("Failed to proxy resource "+dt+" with status code "+Fn.status)},Fn.onerror=nn;var ni=ze.indexOf("?")>-1?"&":"?";if(Fn.open("GET",""+ze+ni+"url="+encodeURIComponent(be)+"&responseType="+xn),xn!=="text"&&Fn instanceof XMLHttpRequest&&(Fn.responseType=xn),De._options.imageTimeout){var Yi=De._options.imageTimeout;Fn.timeout=Yi,Fn.ontimeout=function(){return nn("Timed out ("+Yi+"ms) proxying "+dt)}}Fn.send()})},Er}(),Zs=/^data:image\/svg\+xml/i,yl=/^data:image\/.*;base64,/i,ul=/^data:image\/.*/i,Pl=function(be){return hl.SUPPORT_SVG_DRAWING||!Fl(be)},Vl=function(be){return ul.test(be)},Il=function(be){return yl.test(be)},Gl=function(be){return be.substr(0,4)==="blob"},Fl=function(be){return be.substr(-3).toLowerCase()==="svg"||Zs.test(be)},Ja=function(){function Er(be,De){this.type=0,this.x=be,this.y=De}return Er.prototype.add=function(be,De){return new Er(this.x+be,this.y+De)},Er}(),vl=function(be,De,ze){return new Ja(be.x+(De.x-be.x)*ze,be.y+(De.y-be.y)*ze)},gl=function(){function Er(be,De,ze,dt){this.type=1,this.start=be,this.startControl=De,this.endControl=ze,this.end=dt}return Er.prototype.subdivide=function(be,De){var ze=vl(this.start,this.startControl,be),dt=vl(this.startControl,this.endControl,be),mr=vl(this.endControl,this.end,be),nn=vl(ze,dt,be),xn=vl(dt,mr,be),Fn=vl(nn,xn,be);return De?new Er(this.start,ze,nn,Fn):new Er(Fn,xn,mr,this.end)},Er.prototype.add=function(be,De){return new Er(this.start.add(be,De),this.startControl.add(be,De),this.endControl.add(be,De),this.end.add(be,De))},Er.prototype.reverse=function(){return new Er(this.end,this.endControl,this.startControl,this.start)},Er}(),El=function(be){return be.type===1},Bu=function(){function Er(be){var De=be.styles,ze=be.bounds,dt=Ji(De.borderTopLeftRadius,ze.width,ze.height),mr=dt[0],nn=dt[1],xn=Ji(De.borderTopRightRadius,ze.width,ze.height),Fn=xn[0],ni=xn[1],Yi=Ji(De.borderBottomRightRadius,ze.width,ze.height),Fi=Yi[0],qi=Yi[1],Za=Ji(De.borderBottomLeftRadius,ze.width,ze.height),eo=Za[0],po=Za[1],us=[];us.push((mr+Fn)/ze.width),us.push((eo+Fi)/ze.width),us.push((nn+po)/ze.height),us.push((ni+qi)/ze.height);var Yo=Math.max.apply(Math,us);Yo>1&&(mr/=Yo,nn/=Yo,Fn/=Yo,ni/=Yo,Fi/=Yo,qi/=Yo,eo/=Yo,po/=Yo);var Po=ze.width-Fn,$s=ze.height-qi,cl=ze.width-Fi,zs=ze.height-po,Ro=De.borderTopWidth,Al=De.borderRightWidth,bl=De.borderBottomWidth,Vs=De.borderLeftWidth,_u=ca(De.paddingTop,be.bounds.width),Mu=ca(De.paddingRight,be.bounds.width),Ou=ca(De.paddingBottom,be.bounds.width),eu=ca(De.paddingLeft,be.bounds.width);this.topLeftBorderDoubleOuterBox=mr>0||nn>0?vs(ze.left+Vs/3,ze.top+Ro/3,mr-Vs/3,nn-Ro/3,Ks.TOP_LEFT):new Ja(ze.left+Vs/3,ze.top+Ro/3),this.topRightBorderDoubleOuterBox=mr>0||nn>0?vs(ze.left+Po,ze.top+Ro/3,Fn-Al/3,ni-Ro/3,Ks.TOP_RIGHT):new Ja(ze.left+ze.width-Al/3,ze.top+Ro/3),this.bottomRightBorderDoubleOuterBox=Fi>0||qi>0?vs(ze.left+cl,ze.top+$s,Fi-Al/3,qi-bl/3,Ks.BOTTOM_RIGHT):new Ja(ze.left+ze.width-Al/3,ze.top+ze.height-bl/3),this.bottomLeftBorderDoubleOuterBox=eo>0||po>0?vs(ze.left+Vs/3,ze.top+zs,eo-Vs/3,po-bl/3,Ks.BOTTOM_LEFT):new Ja(ze.left+Vs/3,ze.top+ze.height-bl/3),this.topLeftBorderDoubleInnerBox=mr>0||nn>0?vs(ze.left+Vs*2/3,ze.top+Ro*2/3,mr-Vs*2/3,nn-Ro*2/3,Ks.TOP_LEFT):new Ja(ze.left+Vs*2/3,ze.top+Ro*2/3),this.topRightBorderDoubleInnerBox=mr>0||nn>0?vs(ze.left+Po,ze.top+Ro*2/3,Fn-Al*2/3,ni-Ro*2/3,Ks.TOP_RIGHT):new Ja(ze.left+ze.width-Al*2/3,ze.top+Ro*2/3),this.bottomRightBorderDoubleInnerBox=Fi>0||qi>0?vs(ze.left+cl,ze.top+$s,Fi-Al*2/3,qi-bl*2/3,Ks.BOTTOM_RIGHT):new Ja(ze.left+ze.width-Al*2/3,ze.top+ze.height-bl*2/3),this.bottomLeftBorderDoubleInnerBox=eo>0||po>0?vs(ze.left+Vs*2/3,ze.top+zs,eo-Vs*2/3,po-bl*2/3,Ks.BOTTOM_LEFT):new Ja(ze.left+Vs*2/3,ze.top+ze.height-bl*2/3),this.topLeftBorderStroke=mr>0||nn>0?vs(ze.left+Vs/2,ze.top+Ro/2,mr-Vs/2,nn-Ro/2,Ks.TOP_LEFT):new Ja(ze.left+Vs/2,ze.top+Ro/2),this.topRightBorderStroke=mr>0||nn>0?vs(ze.left+Po,ze.top+Ro/2,Fn-Al/2,ni-Ro/2,Ks.TOP_RIGHT):new Ja(ze.left+ze.width-Al/2,ze.top+Ro/2),this.bottomRightBorderStroke=Fi>0||qi>0?vs(ze.left+cl,ze.top+$s,Fi-Al/2,qi-bl/2,Ks.BOTTOM_RIGHT):new Ja(ze.left+ze.width-Al/2,ze.top+ze.height-bl/2),this.bottomLeftBorderStroke=eo>0||po>0?vs(ze.left+Vs/2,ze.top+zs,eo-Vs/2,po-bl/2,Ks.BOTTOM_LEFT):new Ja(ze.left+Vs/2,ze.top+ze.height-bl/2),this.topLeftBorderBox=mr>0||nn>0?vs(ze.left,ze.top,mr,nn,Ks.TOP_LEFT):new Ja(ze.left,ze.top),this.topRightBorderBox=Fn>0||ni>0?vs(ze.left+Po,ze.top,Fn,ni,Ks.TOP_RIGHT):new Ja(ze.left+ze.width,ze.top),this.bottomRightBorderBox=Fi>0||qi>0?vs(ze.left+cl,ze.top+$s,Fi,qi,Ks.BOTTOM_RIGHT):new Ja(ze.left+ze.width,ze.top+ze.height),this.bottomLeftBorderBox=eo>0||po>0?vs(ze.left,ze.top+zs,eo,po,Ks.BOTTOM_LEFT):new Ja(ze.left,ze.top+ze.height),this.topLeftPaddingBox=mr>0||nn>0?vs(ze.left+Vs,ze.top+Ro,Math.max(0,mr-Vs),Math.max(0,nn-Ro),Ks.TOP_LEFT):new Ja(ze.left+Vs,ze.top+Ro),this.topRightPaddingBox=Fn>0||ni>0?vs(ze.left+Math.min(Po,ze.width-Al),ze.top+Ro,Po>ze.width+Al?0:Math.max(0,Fn-Al),Math.max(0,ni-Ro),Ks.TOP_RIGHT):new Ja(ze.left+ze.width-Al,ze.top+Ro),this.bottomRightPaddingBox=Fi>0||qi>0?vs(ze.left+Math.min(cl,ze.width-Vs),ze.top+Math.min($s,ze.height-bl),Math.max(0,Fi-Al),Math.max(0,qi-bl),Ks.BOTTOM_RIGHT):new Ja(ze.left+ze.width-Al,ze.top+ze.height-bl),this.bottomLeftPaddingBox=eo>0||po>0?vs(ze.left+Vs,ze.top+Math.min(zs,ze.height-bl),Math.max(0,eo-Vs),Math.max(0,po-bl),Ks.BOTTOM_LEFT):new Ja(ze.left+Vs,ze.top+ze.height-bl),this.topLeftContentBox=mr>0||nn>0?vs(ze.left+Vs+eu,ze.top+Ro+_u,Math.max(0,mr-(Vs+eu)),Math.max(0,nn-(Ro+_u)),Ks.TOP_LEFT):new Ja(ze.left+Vs+eu,ze.top+Ro+_u),this.topRightContentBox=Fn>0||ni>0?vs(ze.left+Math.min(Po,ze.width+Vs+eu),ze.top+Ro+_u,Po>ze.width+Vs+eu?0:Fn-Vs+eu,ni-(Ro+_u),Ks.TOP_RIGHT):new Ja(ze.left+ze.width-(Al+Mu),ze.top+Ro+_u),this.bottomRightContentBox=Fi>0||qi>0?vs(ze.left+Math.min(cl,ze.width-(Vs+eu)),ze.top+Math.min($s,ze.height+Ro+_u),Math.max(0,Fi-(Al+Mu)),qi-(bl+Ou),Ks.BOTTOM_RIGHT):new Ja(ze.left+ze.width-(Al+Mu),ze.top+ze.height-(bl+Ou)),this.bottomLeftContentBox=eo>0||po>0?vs(ze.left+Vs+eu,ze.top+zs,Math.max(0,eo-(Vs+eu)),po-(bl+Ou),Ks.BOTTOM_LEFT):new Ja(ze.left+Vs+eu,ze.top+ze.height-(bl+Ou))}return Er}(),Ks;(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"})(Ks||(Ks={}));var vs=function(be,De,ze,dt,mr){var nn=4*((Math.sqrt(2)-1)/3),xn=ze*nn,Fn=dt*nn,ni=be+ze,Yi=De+dt;switch(mr){case Ks.TOP_LEFT:return new gl(new Ja(be,Yi),new Ja(be,Yi-Fn),new Ja(ni-xn,De),new Ja(ni,De));case Ks.TOP_RIGHT:return new gl(new Ja(be,De),new Ja(be+xn,De),new Ja(ni,Yi-Fn),new Ja(ni,Yi));case Ks.BOTTOM_RIGHT:return new gl(new Ja(ni,De),new Ja(ni,De+Fn),new Ja(be+xn,Yi),new Ja(be,Yi));case Ks.BOTTOM_LEFT:default:return new gl(new Ja(ni,Yi),new Ja(ni-xn,Yi),new Ja(be,De+Fn),new Ja(be,De))}},lu=function(be){return[be.topLeftBorderBox,be.topRightBorderBox,be.bottomRightBorderBox,be.bottomLeftBorderBox]},Kl=function(be){return[be.topLeftContentBox,be.topRightContentBox,be.bottomRightContentBox,be.bottomLeftContentBox]},Uu=function(be){return[be.topLeftPaddingBox,be.topRightPaddingBox,be.bottomRightPaddingBox,be.bottomLeftPaddingBox]},Eu=function(){function Er(be,De,ze){this.offsetX=be,this.offsetY=De,this.matrix=ze,this.type=0,this.target=2|4}return Er}(),uu=function(){function Er(be,De){this.path=be,this.target=De,this.type=1}return Er}(),ku=function(){function Er(be){this.opacity=be,this.type=2,this.target=2|4}return Er}(),Yl=function(be){return be.type===0},Tu=function(be){return be.type===1},Vu=function(be){return be.type===2},Ju=function(be,De){return be.length===De.length?be.some(function(ze,dt){return ze===De[dt]}):!1},vc=function(be,De,ze,dt,mr){return be.map(function(nn,xn){switch(xn){case 0:return nn.add(De,ze);case 1:return nn.add(De+dt,ze);case 2:return nn.add(De+dt,ze+mr);case 3:return nn.add(De,ze+mr)}return nn})},Ac=function(){function Er(be){this.element=be,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Er}(),tc=function(){function Er(be,De){if(this.container=be,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 ze=this.container.bounds.left+this.container.styles.transformOrigin[0].number,dt=this.container.bounds.top+this.container.styles.transformOrigin[1].number,mr=this.container.styles.transform;this.effects.push(new Eu(ze,dt,mr))}if(this.container.styles.overflowX!==0){var nn=lu(this.curves),xn=Uu(this.curves);Ju(nn,xn)?this.effects.push(new uu(nn,2|4)):(this.effects.push(new uu(nn,2)),this.effects.push(new uu(xn,4)))}}return Er.prototype.getEffects=function(be){for(var De=[2,3].indexOf(this.container.styles.position)===-1,ze=this.parent,dt=this.effects.slice(0);ze;){var mr=ze.effects.filter(function(Fn){return!Tu(Fn)});if(De||ze.container.styles.position!==0||!ze.parent){if(dt.unshift.apply(dt,mr),De=[2,3].indexOf(ze.container.styles.position)===-1,ze.container.styles.overflowX!==0){var nn=lu(ze.curves),xn=Uu(ze.curves);Ju(nn,xn)||dt.unshift(new uu(xn,2|4))}}else dt.unshift.apply(dt,mr);ze=ze.parent}return dt.filter(function(Fn){return sa(Fn.target,be)})},Er}(),yc=function Er(be,De,ze,dt){be.container.elements.forEach(function(mr){var nn=sa(mr.flags,4),xn=sa(mr.flags,2),Fn=new tc(mr,be);sa(mr.styles.display,2048)&&dt.push(Fn);var ni=sa(mr.flags,8)?[]:dt;if(nn||xn){var Yi=nn||mr.styles.isPositioned()?ze:De,Fi=new Ac(Fn);if(mr.styles.isPositioned()||mr.styles.opacity<1||mr.styles.isTransformed()){var qi=mr.styles.zIndex.order;if(qi<0){var Za=0;Yi.negativeZIndex.some(function(po,us){return qi>po.element.container.styles.zIndex.order?(Za=us,!1):Za>0}),Yi.negativeZIndex.splice(Za,0,Fi)}else if(qi>0){var eo=0;Yi.positiveZIndex.some(function(po,us){return qi>=po.element.container.styles.zIndex.order?(eo=us+1,!1):eo>0}),Yi.positiveZIndex.splice(eo,0,Fi)}else Yi.zeroOrAutoZIndexOrTransformedOrOpacity.push(Fi)}else mr.styles.isFloating()?Yi.nonPositionedFloats.push(Fi):Yi.nonPositionedInlineLevel.push(Fi);Er(Fn,Fi,nn?Fi:ze,ni)}else mr.styles.isInlineLevel()?De.inlineLevel.push(Fn):De.nonInlineLevel.push(Fn),Er(Fn,De,ze,ni);sa(mr.flags,8)&&sc(mr,ni)})},sc=function(be,De){for(var ze=be instanceof ht?be.start:1,dt=be instanceof ht?be.reversed:!1,mr=0;mr<De.length;mr++){var nn=De[mr];nn.container instanceof ot&&typeof nn.container.value=="number"&&nn.container.value!==0&&(ze=nn.container.value),nn.listValue=ie(ze,nn.container.styles.listStyleType,!0),ze+=dt?-1:1}},ju=function(be){var De=new tc(be,null),ze=new Ac(De),dt=[];return yc(De,ze,ze,dt),sc(De.container,dt),ze},hc=function(be,De){switch(De){case 0:return Cu(be.topLeftBorderBox,be.topLeftPaddingBox,be.topRightBorderBox,be.topRightPaddingBox);case 1:return Cu(be.topRightBorderBox,be.topRightPaddingBox,be.bottomRightBorderBox,be.bottomRightPaddingBox);case 2:return Cu(be.bottomRightBorderBox,be.bottomRightPaddingBox,be.bottomLeftBorderBox,be.bottomLeftPaddingBox);case 3:default:return Cu(be.bottomLeftBorderBox,be.bottomLeftPaddingBox,be.topLeftBorderBox,be.topLeftPaddingBox)}},bc=function(be,De){switch(De){case 0:return Cu(be.topLeftBorderBox,be.topLeftBorderDoubleOuterBox,be.topRightBorderBox,be.topRightBorderDoubleOuterBox);case 1:return Cu(be.topRightBorderBox,be.topRightBorderDoubleOuterBox,be.bottomRightBorderBox,be.bottomRightBorderDoubleOuterBox);case 2:return Cu(be.bottomRightBorderBox,be.bottomRightBorderDoubleOuterBox,be.bottomLeftBorderBox,be.bottomLeftBorderDoubleOuterBox);case 3:default:return Cu(be.bottomLeftBorderBox,be.bottomLeftBorderDoubleOuterBox,be.topLeftBorderBox,be.topLeftBorderDoubleOuterBox)}},Tc=function(be,De){switch(De){case 0:return Cu(be.topLeftBorderDoubleInnerBox,be.topLeftPaddingBox,be.topRightBorderDoubleInnerBox,be.topRightPaddingBox);case 1:return Cu(be.topRightBorderDoubleInnerBox,be.topRightPaddingBox,be.bottomRightBorderDoubleInnerBox,be.bottomRightPaddingBox);case 2:return Cu(be.bottomRightBorderDoubleInnerBox,be.bottomRightPaddingBox,be.bottomLeftBorderDoubleInnerBox,be.bottomLeftPaddingBox);case 3:default:return Cu(be.bottomLeftBorderDoubleInnerBox,be.bottomLeftPaddingBox,be.topLeftBorderDoubleInnerBox,be.topLeftPaddingBox)}},wc=function(be,De){switch(De){case 0:return Pu(be.topLeftBorderStroke,be.topRightBorderStroke);case 1:return Pu(be.topRightBorderStroke,be.bottomRightBorderStroke);case 2:return Pu(be.bottomRightBorderStroke,be.bottomLeftBorderStroke);case 3:default:return Pu(be.bottomLeftBorderStroke,be.topLeftBorderStroke)}},Pu=function(be,De){var ze=[];return El(be)?ze.push(be.subdivide(.5,!1)):ze.push(be),El(De)?ze.push(De.subdivide(.5,!0)):ze.push(De),ze},Cu=function(be,De,ze,dt){var mr=[];return El(be)?mr.push(be.subdivide(.5,!1)):mr.push(be),El(ze)?mr.push(ze.subdivide(.5,!0)):mr.push(ze),El(dt)?mr.push(dt.subdivide(.5,!0).reverse()):mr.push(dt),El(De)?mr.push(De.subdivide(.5,!1).reverse()):mr.push(De),mr},fc=function(be){var De=be.bounds,ze=be.styles;return De.add(ze.borderLeftWidth,ze.borderTopWidth,-(ze.borderRightWidth+ze.borderLeftWidth),-(ze.borderTopWidth+ze.borderBottomWidth))},lc=function(be){var De=be.styles,ze=be.bounds,dt=ca(De.paddingLeft,ze.width),mr=ca(De.paddingRight,ze.width),nn=ca(De.paddingTop,ze.width),xn=ca(De.paddingBottom,ze.width);return ze.add(dt+De.borderLeftWidth,nn+De.borderTopWidth,-(De.borderRightWidth+De.borderLeftWidth+dt+mr),-(De.borderTopWidth+De.borderBottomWidth+nn+xn))},Sc=function(be,De){return be===0?De.bounds:be===2?lc(De):fc(De)},Cc=function(be,De){return be===0?De.bounds:be===2?lc(De):fc(De)},Gu=function(be,De,ze){var dt=Sc(wu(be.styles.backgroundOrigin,De),be),mr=Cc(wu(be.styles.backgroundClip,De),be),nn=Fu(wu(be.styles.backgroundSize,De),ze,dt),xn=nn[0],Fn=nn[1],ni=Ji(wu(be.styles.backgroundPosition,De),dt.width-xn,dt.height-Fn),Yi=Ku(wu(be.styles.backgroundRepeat,De),ni,nn,dt,mr),Fi=Math.round(dt.left+ni[0]),qi=Math.round(dt.top+ni[1]);return[Yi,Fi,qi,xn,Fn]},Hu=function(be){return On(be)&&be.value===Li.AUTO},Xu=function(be){return typeof be=="number"},Fu=function(be,De,ze){var dt=De[0],mr=De[1],nn=De[2],xn=be[0],Fn=be[1];if(!xn)return[0,0];if(zi(xn)&&Fn&&zi(Fn))return[ca(xn,ze.width),ca(Fn,ze.height)];var ni=Xu(nn);if(On(xn)&&(xn.value===Li.CONTAIN||xn.value===Li.COVER)){if(Xu(nn)){var Yi=ze.width/ze.height;return Yi<nn!==(xn.value===Li.COVER)?[ze.width,ze.width/nn]:[ze.height*nn,ze.height]}return[ze.width,ze.height]}var Fi=Xu(dt),qi=Xu(mr),Za=Fi||qi;if(Hu(xn)&&(!Fn||Hu(Fn))){if(Fi&&qi)return[dt,mr];if(!ni&&!Za)return[ze.width,ze.height];if(Za&&ni){var eo=Fi?dt:mr*nn,po=qi?mr:dt/nn;return[eo,po]}var us=Fi?dt:ze.width,Yo=qi?mr:ze.height;return[us,Yo]}if(ni){var Po=0,$s=0;return zi(xn)?Po=ca(xn,ze.width):zi(Fn)&&($s=ca(Fn,ze.height)),Hu(xn)?Po=$s*nn:(!Fn||Hu(Fn))&&($s=Po/nn),[Po,$s]}var cl=null,zs=null;if(zi(xn)?cl=ca(xn,ze.width):Fn&&zi(Fn)&&(zs=ca(Fn,ze.height)),cl!==null&&(!Fn||Hu(Fn))&&(zs=Fi&&qi?cl/dt*mr:ze.height),zs!==null&&Hu(xn)&&(cl=Fi&&qi?zs/mr*dt:ze.width),cl!==null&&zs!==null)return[cl,zs];throw new Error("Unable to calculate background-size for element")},wu=function(be,De){var ze=be[De];return typeof ze=="undefined"?be[0]:ze},Ku=function(be,De,ze,dt,mr){var nn=De[0],xn=De[1],Fn=ze[0],ni=ze[1];switch(be){case 2:return[new Ja(Math.round(dt.left),Math.round(dt.top+xn)),new Ja(Math.round(dt.left+dt.width),Math.round(dt.top+xn)),new Ja(Math.round(dt.left+dt.width),Math.round(ni+dt.top+xn)),new Ja(Math.round(dt.left),Math.round(ni+dt.top+xn))];case 3:return[new Ja(Math.round(dt.left+nn),Math.round(dt.top)),new Ja(Math.round(dt.left+nn+Fn),Math.round(dt.top)),new Ja(Math.round(dt.left+nn+Fn),Math.round(dt.height+dt.top)),new Ja(Math.round(dt.left+nn),Math.round(dt.height+dt.top))];case 1:return[new Ja(Math.round(dt.left+nn),Math.round(dt.top+xn)),new Ja(Math.round(dt.left+nn+Fn),Math.round(dt.top+xn)),new Ja(Math.round(dt.left+nn+Fn),Math.round(dt.top+xn+ni)),new Ja(Math.round(dt.left+nn),Math.round(dt.top+xn+ni))];default:return[new Ja(Math.round(mr.left),Math.round(mr.top)),new Ja(Math.round(mr.left+mr.width),Math.round(mr.top)),new Ja(Math.round(mr.left+mr.width),Math.round(mr.height+mr.top)),new Ja(Math.round(mr.left),Math.round(mr.height+mr.top))]}},uc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",cc="Hidden Text",xc=function(){function Er(be){this._data={},this._document=be}return Er.prototype.parseMetrics=function(be,De){var ze=this._document.createElement("div"),dt=this._document.createElement("img"),mr=this._document.createElement("span"),nn=this._document.body;ze.style.visibility="hidden",ze.style.fontFamily=be,ze.style.fontSize=De,ze.style.margin="0",ze.style.padding="0",ze.style.whiteSpace="nowrap",nn.appendChild(ze),dt.src=uc,dt.width=1,dt.height=1,dt.style.margin="0",dt.style.padding="0",dt.style.verticalAlign="baseline",mr.style.fontFamily=be,mr.style.fontSize=De,mr.style.margin="0",mr.style.padding="0",mr.appendChild(this._document.createTextNode(cc)),ze.appendChild(mr),ze.appendChild(dt);var xn=dt.offsetTop-mr.offsetTop+2;ze.removeChild(mr),ze.appendChild(this._document.createTextNode(cc)),ze.style.lineHeight="normal",dt.style.verticalAlign="super";var Fn=dt.offsetTop-ze.offsetTop+2;return nn.removeChild(ze),{baseline:xn,middle:Fn}},Er.prototype.getMetrics=function(be,De){var ze=be+" "+De;return typeof this._data[ze]=="undefined"&&(this._data[ze]=this.parseMetrics(be,De)),this._data[ze]},Er}(),Ec=function(){function Er(be,De){this.context=be,this.options=De}return Er}(),pc=1e4,mc=function(Er){p(be,Er);function be(De,ze){var dt=Er.call(this,De,ze)||this;return dt._activeEffects=[],dt.canvas=ze.canvas?ze.canvas:document.createElement("canvas"),dt.ctx=dt.canvas.getContext("2d"),ze.canvas||(dt.canvas.width=Math.floor(ze.width*ze.scale),dt.canvas.height=Math.floor(ze.height*ze.scale),dt.canvas.style.width=ze.width+"px",dt.canvas.style.height=ze.height+"px"),dt.fontMetrics=new xc(document),dt.ctx.scale(dt.options.scale,dt.options.scale),dt.ctx.translate(-ze.x,-ze.y),dt.ctx.textBaseline="bottom",dt._activeEffects=[],dt.context.logger.debug("Canvas renderer initialized ("+ze.width+"x"+ze.height+") with scale "+ze.scale),dt}return be.prototype.applyEffects=function(De){for(var ze=this;this._activeEffects.length;)this.popEffect();De.forEach(function(dt){return ze.applyEffect(dt)})},be.prototype.applyEffect=function(De){this.ctx.save(),Vu(De)&&(this.ctx.globalAlpha=De.opacity),Yl(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)),Tu(De)&&(this.path(De.path),this.ctx.clip()),this._activeEffects.push(De)},be.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},be.prototype.renderStack=function(De){return v(this,void 0,void 0,function(){var ze;return m(this,function(dt){switch(dt.label){case 0:return ze=De.element.container.styles,ze.isVisible()?[4,this.renderStackContent(De)]:[3,2];case 1:dt.sent(),dt.label=2;case 2:return[2]}})})},be.prototype.renderNode=function(De){return v(this,void 0,void 0,function(){return m(this,function(ze){switch(ze.label){case 0:if(sa(De.container.flags,16))debugger;return De.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(De)]:[3,3];case 1:return ze.sent(),[4,this.renderNodeContent(De)];case 2:ze.sent(),ze.label=3;case 3:return[2]}})})},be.prototype.renderTextWithLetterSpacing=function(De,ze,dt){var mr=this;if(ze===0)this.ctx.fillText(De.text,De.bounds.left,De.bounds.top+dt);else{var nn=fu(De.text);nn.reduce(function(xn,Fn){return mr.ctx.fillText(Fn,xn,De.bounds.top+dt),xn+mr.ctx.measureText(Fn).width},De.bounds.left)}},be.prototype.createFontStyle=function(De){var ze=De.fontVariant.filter(function(nn){return nn==="normal"||nn==="small-caps"}).join(""),dt=Nc(De.fontFamily).join(", "),mr=en(De.fontSize)?""+De.fontSize.number+De.fontSize.unit:De.fontSize.number+"px";return[[De.fontStyle,ze,De.fontWeight,mr,dt].join(" "),dt,mr]},be.prototype.renderTextNode=function(De,ze){return v(this,void 0,void 0,function(){var dt,mr,nn,xn,Fn,ni,Yi,Fi,qi=this;return m(this,function(Za){return dt=this.createFontStyle(ze),mr=dt[0],nn=dt[1],xn=dt[2],this.ctx.font=mr,this.ctx.direction=ze.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",Fn=this.fontMetrics.getMetrics(nn,xn),ni=Fn.baseline,Yi=Fn.middle,Fi=ze.paintOrder,De.textBounds.forEach(function(eo){Fi.forEach(function(po){switch(po){case 0:qi.ctx.fillStyle=Va(ze.color),qi.renderTextWithLetterSpacing(eo,ze.letterSpacing,ni);var us=ze.textShadow;us.length&&eo.text.trim().length&&(us.slice(0).reverse().forEach(function(Yo){qi.ctx.shadowColor=Va(Yo.color),qi.ctx.shadowOffsetX=Yo.offsetX.number*qi.options.scale,qi.ctx.shadowOffsetY=Yo.offsetY.number*qi.options.scale,qi.ctx.shadowBlur=Yo.blur.number,qi.renderTextWithLetterSpacing(eo,ze.letterSpacing,ni)}),qi.ctx.shadowColor="",qi.ctx.shadowOffsetX=0,qi.ctx.shadowOffsetY=0,qi.ctx.shadowBlur=0),ze.textDecorationLine.length&&(qi.ctx.fillStyle=Va(ze.textDecorationColor||ze.color),ze.textDecorationLine.forEach(function(Yo){switch(Yo){case 1:qi.ctx.fillRect(eo.bounds.left,Math.round(eo.bounds.top+ni),eo.bounds.width,1);break;case 2:qi.ctx.fillRect(eo.bounds.left,Math.round(eo.bounds.top),eo.bounds.width,1);break;case 3:qi.ctx.fillRect(eo.bounds.left,Math.ceil(eo.bounds.top+Yi),eo.bounds.width,1);break}}));break;case 1:ze.webkitTextStrokeWidth&&eo.text.trim().length&&(qi.ctx.strokeStyle=Va(ze.webkitTextStrokeColor),qi.ctx.lineWidth=ze.webkitTextStrokeWidth,qi.ctx.lineJoin=window.chrome?"miter":"round",qi.ctx.strokeText(eo.text,eo.bounds.left,eo.bounds.top+ni)),qi.ctx.strokeStyle="",qi.ctx.lineWidth=0,qi.ctx.lineJoin="miter";break}})}),[2]})})},be.prototype.renderReplacedElement=function(De,ze,dt){if(dt&&De.intrinsicWidth>0&&De.intrinsicHeight>0){var mr=lc(De),nn=Uu(ze);this.path(nn),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(dt,0,0,De.intrinsicWidth,De.intrinsicHeight,mr.left,mr.top,mr.width,mr.height),this.ctx.restore()}},be.prototype.renderNodeContent=function(De){return v(this,void 0,void 0,function(){var ze,dt,mr,nn,xn,Fn,ni,ni,Yi,Fi,qi,Za,eo,po,us,Yo,Po,$s,cl,ni,zs,eo,Yo;return m(this,function(Ro){switch(Ro.label){case 0:this.applyEffects(De.getEffects(4)),ze=De.container,dt=De.curves,mr=ze.styles,nn=0,xn=ze.textNodes,Ro.label=1;case 1:return nn<xn.length?(Fn=xn[nn],[4,this.renderTextNode(Fn,mr)]):[3,4];case 2:Ro.sent(),Ro.label=3;case 3:return nn++,[3,1];case 4:if(!(ze instanceof ve))return[3,8];Ro.label=5;case 5:return Ro.trys.push([5,7,,8]),[4,this.context.cache.match(ze.src)];case 6:return ni=Ro.sent(),this.renderReplacedElement(ze,dt,ni),[3,8];case 7:return Ro.sent(),this.context.logger.error("Error loading image "+ze.src),[3,8];case 8:if(ze instanceof Te&&this.renderReplacedElement(ze,dt,ze.canvas),!(ze instanceof Ve))return[3,12];Ro.label=9;case 9:return Ro.trys.push([9,11,,12]),[4,this.context.cache.match(ze.svg)];case 10:return ni=Ro.sent(),this.renderReplacedElement(ze,dt,ni),[3,12];case 11:return Ro.sent(),this.context.logger.error("Error loading svg "+ze.svg.substring(0,255)),[3,12];case 12:return ze instanceof Zi&&ze.tree?(Yi=new be(this.context,{scale:this.options.scale,backgroundColor:ze.backgroundColor,x:0,y:0,width:ze.width,height:ze.height}),[4,Yi.render(ze.tree)]):[3,14];case 13:Fi=Ro.sent(),ze.width&&ze.height&&this.ctx.drawImage(Fi,0,0,ze.width,ze.height,ze.bounds.left,ze.bounds.top,ze.bounds.width,ze.bounds.height),Ro.label=14;case 14:if(ze instanceof bi&&(qi=Math.min(ze.bounds.width,ze.bounds.height),ze.type===Jr?ze.checked&&(this.ctx.save(),this.path([new Ja(ze.bounds.left+qi*.39363,ze.bounds.top+qi*.79),new Ja(ze.bounds.left+qi*.16,ze.bounds.top+qi*.5549),new Ja(ze.bounds.left+qi*.27347,ze.bounds.top+qi*.44071),new Ja(ze.bounds.left+qi*.39694,ze.bounds.top+qi*.5649),new Ja(ze.bounds.left+qi*.72983,ze.bounds.top+qi*.23),new Ja(ze.bounds.left+qi*.84,ze.bounds.top+qi*.34085),new Ja(ze.bounds.left+qi*.39363,ze.bounds.top+qi*.79)]),this.ctx.fillStyle=Va(Jn),this.ctx.fill(),this.ctx.restore()):ze.type===Cn&&(ze.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(ze.bounds.left+qi/2,ze.bounds.top+qi/2,qi/4,0,Math.PI*2,!0),this.ctx.fillStyle=Va(Jn),this.ctx.fill(),this.ctx.restore()))),_c(ze)&&ze.value.length){Za=this.createFontStyle(mr),eo=Za[0],po=Za[1],us=this.fontMetrics.getMetrics(eo,po).baseline,this.ctx.font=eo,this.ctx.fillStyle=Va(mr.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ic(ze.styles.textAlign),Yo=lc(ze),Po=0;switch(ze.styles.textAlign){case 1:Po+=Yo.width/2;break;case 2:Po+=Yo.width;break}$s=Yo.add(Po,0,0,-Yo.height/2+1),this.ctx.save(),this.path([new Ja(Yo.left,Yo.top),new Ja(Yo.left+Yo.width,Yo.top),new Ja(Yo.left+Yo.width,Yo.top+Yo.height),new Ja(Yo.left,Yo.top+Yo.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Dl(ze.value,$s),mr.letterSpacing,us),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!sa(ze.styles.display,2048))return[3,20];if(!(ze.styles.listStyleImage!==null))return[3,19];if(cl=ze.styles.listStyleImage,!(cl.type===0))return[3,18];ni=void 0,zs=cl.url,Ro.label=15;case 15:return Ro.trys.push([15,17,,18]),[4,this.context.cache.match(zs)];case 16:return ni=Ro.sent(),this.ctx.drawImage(ni,ze.bounds.left-(ni.width+10),ze.bounds.top),[3,18];case 17:return Ro.sent(),this.context.logger.error("Error loading list-style-image "+zs),[3,18];case 18:return[3,20];case 19:De.listValue&&ze.styles.listStyleType!==-1&&(eo=this.createFontStyle(mr)[0],this.ctx.font=eo,this.ctx.fillStyle=Va(mr.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Yo=new d(ze.bounds.left,ze.bounds.top+ca(ze.styles.paddingTop,ze.bounds.width),ze.bounds.width,zo(mr.lineHeight,mr.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Dl(De.listValue,Yo),mr.letterSpacing,zo(mr.lineHeight,mr.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Ro.label=20;case 20:return[2]}})})},be.prototype.renderStackContent=function(De){return v(this,void 0,void 0,function(){var ze,dt,mr,nn,xn,mr,Fn,ni,mr,Yi,Fi,mr,qi,Za,mr,eo,po,mr,us,Yo,mr;return m(this,function(Po){switch(Po.label){case 0:if(sa(De.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(De.element)];case 1:Po.sent(),ze=0,dt=De.negativeZIndex,Po.label=2;case 2:return ze<dt.length?(mr=dt[ze],[4,this.renderStack(mr)]):[3,5];case 3:Po.sent(),Po.label=4;case 4:return ze++,[3,2];case 5:return[4,this.renderNodeContent(De.element)];case 6:Po.sent(),nn=0,xn=De.nonInlineLevel,Po.label=7;case 7:return nn<xn.length?(mr=xn[nn],[4,this.renderNode(mr)]):[3,10];case 8:Po.sent(),Po.label=9;case 9:return nn++,[3,7];case 10:Fn=0,ni=De.nonPositionedFloats,Po.label=11;case 11:return Fn<ni.length?(mr=ni[Fn],[4,this.renderStack(mr)]):[3,14];case 12:Po.sent(),Po.label=13;case 13:return Fn++,[3,11];case 14:Yi=0,Fi=De.nonPositionedInlineLevel,Po.label=15;case 15:return Yi<Fi.length?(mr=Fi[Yi],[4,this.renderStack(mr)]):[3,18];case 16:Po.sent(),Po.label=17;case 17:return Yi++,[3,15];case 18:qi=0,Za=De.inlineLevel,Po.label=19;case 19:return qi<Za.length?(mr=Za[qi],[4,this.renderNode(mr)]):[3,22];case 20:Po.sent(),Po.label=21;case 21:return qi++,[3,19];case 22:eo=0,po=De.zeroOrAutoZIndexOrTransformedOrOpacity,Po.label=23;case 23:return eo<po.length?(mr=po[eo],[4,this.renderStack(mr)]):[3,26];case 24:Po.sent(),Po.label=25;case 25:return eo++,[3,23];case 26:us=0,Yo=De.positiveZIndex,Po.label=27;case 27:return us<Yo.length?(mr=Yo[us],[4,this.renderStack(mr)]):[3,30];case 28:Po.sent(),Po.label=29;case 29:return us++,[3,27];case 30:return[2]}})})},be.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()},be.prototype.path=function(De){this.ctx.beginPath(),this.formatPath(De),this.ctx.closePath()},be.prototype.formatPath=function(De){var ze=this;De.forEach(function(dt,mr){var nn=El(dt)?dt.start:dt;mr===0?ze.ctx.moveTo(nn.x,nn.y):ze.ctx.lineTo(nn.x,nn.y),El(dt)&&ze.ctx.bezierCurveTo(dt.startControl.x,dt.startControl.y,dt.endControl.x,dt.endControl.y,dt.end.x,dt.end.y)})},be.prototype.renderRepeat=function(De,ze,dt,mr){this.path(De),this.ctx.fillStyle=ze,this.ctx.translate(dt,mr),this.ctx.fill(),this.ctx.translate(-dt,-mr)},be.prototype.resizeImage=function(De,ze,dt){var mr;if(De.width===ze&&De.height===dt)return De;var nn=(mr=this.canvas.ownerDocument)!==null&&mr!==void 0?mr:document,xn=nn.createElement("canvas");xn.width=Math.max(1,ze),xn.height=Math.max(1,dt);var Fn=xn.getContext("2d");return Fn.drawImage(De,0,0,De.width,De.height,0,0,ze,dt),xn},be.prototype.renderBackgroundImage=function(De){return v(this,void 0,void 0,function(){var ze,dt,mr,nn,xn,Fn;return m(this,function(ni){switch(ni.label){case 0:ze=De.styles.backgroundImage.length-1,dt=function(Fi){var qi,Za,eo,po,us,Yo,Po,$s,cl,zs,po,us,Yo,Po,$s,Ro,Al,bl,Vs,_u,Mu,Ou,eu,rc,cl,Wu,po,Zu,$u,Po,$s,qu,us,Yo,nc,zu,ec,ic,ac,Yu,oc,Qu;return m(this,function(dc){switch(dc.label){case 0:if(!(Fi.type===0))return[3,5];qi=void 0,Za=Fi.url,dc.label=1;case 1:return dc.trys.push([1,3,,4]),[4,mr.context.cache.match(Za)];case 2:return qi=dc.sent(),[3,4];case 3:return dc.sent(),mr.context.logger.error("Error loading background-image "+Za),[3,4];case 4:return qi&&(eo=Gu(De,ze,[qi.width,qi.height,qi.width/qi.height]),po=eo[0],us=eo[1],Yo=eo[2],Po=eo[3],$s=eo[4],cl=mr.ctx.createPattern(mr.resizeImage(qi,Po,$s),"repeat"),mr.renderRepeat(po,cl,us,Yo)),[3,6];case 5:Gr(Fi)?(zs=Gu(De,ze,[null,null,null]),po=zs[0],us=zs[1],Yo=zs[2],Po=zs[3],$s=zs[4],Ro=ts(Fi.angle,Po,$s),Al=Ro[0],bl=Ro[1],Vs=Ro[2],_u=Ro[3],Mu=Ro[4],Ou=document.createElement("canvas"),Ou.width=Po,Ou.height=$s,eu=Ou.getContext("2d"),rc=eu.createLinearGradient(bl,_u,Vs,Mu),Uo(Fi.stops,Al).forEach(function(gc){return rc.addColorStop(gc.stop,Va(gc.color))}),eu.fillStyle=rc,eu.fillRect(0,0,Po,$s),Po>0&&$s>0&&(cl=mr.ctx.createPattern(Ou,"repeat"),mr.renderRepeat(po,cl,us,Yo))):ri(Fi)&&(Wu=Gu(De,ze,[null,null,null]),po=Wu[0],Zu=Wu[1],$u=Wu[2],Po=Wu[3],$s=Wu[4],qu=Fi.position.length===0?[Wi]:Fi.position,us=ca(qu[0],Po),Yo=ca(qu[qu.length-1],$s),nc=Io(Fi,us,Yo,Po,$s),zu=nc[0],ec=nc[1],zu>0&&ec>0&&(ic=mr.ctx.createRadialGradient(Zu+us,$u+Yo,0,Zu+us,$u+Yo,zu),Uo(Fi.stops,zu*2).forEach(function(gc){return ic.addColorStop(gc.stop,Va(gc.color))}),mr.path(po),mr.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,mr.ctx.save(),mr.ctx.translate(ac,Yu),mr.ctx.transform(1,0,0,oc,0,0),mr.ctx.translate(-ac,-Yu),mr.ctx.fillRect(Zu,Qu*($u-Yu)+Yu,Po,$s*Qu),mr.ctx.restore()):mr.ctx.fill())),dc.label=6;case 6:return ze--,[2]}})},mr=this,nn=0,xn=De.styles.backgroundImage.slice(0).reverse(),ni.label=1;case 1:return nn<xn.length?(Fn=xn[nn],[5,dt(Fn)]):[3,4];case 2:ni.sent(),ni.label=3;case 3:return nn++,[3,1];case 4:return[2]}})})},be.prototype.renderSolidBorder=function(De,ze,dt){return v(this,void 0,void 0,function(){return m(this,function(mr){return this.path(hc(dt,ze)),this.ctx.fillStyle=Va(De),this.ctx.fill(),[2]})})},be.prototype.renderDoubleBorder=function(De,ze,dt,mr){return v(this,void 0,void 0,function(){var nn,xn;return m(this,function(Fn){switch(Fn.label){case 0:return ze<3?[4,this.renderSolidBorder(De,dt,mr)]:[3,2];case 1:return Fn.sent(),[2];case 2:return nn=bc(mr,dt),this.path(nn),this.ctx.fillStyle=Va(De),this.ctx.fill(),xn=Tc(mr,dt),this.path(xn),this.ctx.fill(),[2]}})})},be.prototype.renderNodeBackgroundAndBorders=function(De){return v(this,void 0,void 0,function(){var ze,dt,mr,nn,xn,Fn,ni,Yi,Fi=this;return m(this,function(qi){switch(qi.label){case 0:return this.applyEffects(De.getEffects(2)),ze=De.container.styles,dt=!_a(ze.backgroundColor)||ze.backgroundImage.length,mr=[{style:ze.borderTopStyle,color:ze.borderTopColor,width:ze.borderTopWidth},{style:ze.borderRightStyle,color:ze.borderRightColor,width:ze.borderRightWidth},{style:ze.borderBottomStyle,color:ze.borderBottomColor,width:ze.borderBottomWidth},{style:ze.borderLeftStyle,color:ze.borderLeftColor,width:ze.borderLeftWidth}],nn=Oc(wu(ze.backgroundClip,0),De.curves),dt||ze.boxShadow.length?(this.ctx.save(),this.path(nn),this.ctx.clip(),_a(ze.backgroundColor)||(this.ctx.fillStyle=Va(ze.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(De.container)]):[3,2];case 1:qi.sent(),this.ctx.restore(),ze.boxShadow.slice(0).reverse().forEach(function(Za){Fi.ctx.save();var eo=lu(De.curves),po=Za.inset?0:pc,us=vc(eo,-po+(Za.inset?1:-1)*Za.spread.number,(Za.inset?1:-1)*Za.spread.number,Za.spread.number*(Za.inset?-2:2),Za.spread.number*(Za.inset?-2:2));Za.inset?(Fi.path(eo),Fi.ctx.clip(),Fi.mask(us)):(Fi.mask(eo),Fi.ctx.clip(),Fi.path(us)),Fi.ctx.shadowOffsetX=Za.offsetX.number+po,Fi.ctx.shadowOffsetY=Za.offsetY.number,Fi.ctx.shadowColor=Va(Za.color),Fi.ctx.shadowBlur=Za.blur.number,Fi.ctx.fillStyle=Za.inset?Va(Za.color):"rgba(0,0,0,1)",Fi.ctx.fill(),Fi.ctx.restore()}),qi.label=2;case 2:xn=0,Fn=0,ni=mr,qi.label=3;case 3:return Fn<ni.length?(Yi=ni[Fn],Yi.style!==0&&!_a(Yi.color)&&Yi.width>0?Yi.style===2?[4,this.renderDashedDottedBorder(Yi.color,Yi.width,xn,De.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return qi.sent(),[3,11];case 5:return Yi.style===3?[4,this.renderDashedDottedBorder(Yi.color,Yi.width,xn,De.curves,3)]:[3,7];case 6:return qi.sent(),[3,11];case 7:return Yi.style===4?[4,this.renderDoubleBorder(Yi.color,Yi.width,xn,De.curves)]:[3,9];case 8:return qi.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Yi.color,xn,De.curves)];case 10:qi.sent(),qi.label=11;case 11:xn++,qi.label=12;case 12:return Fn++,[3,3];case 13:return[2]}})})},be.prototype.renderDashedDottedBorder=function(De,ze,dt,mr,nn){return v(this,void 0,void 0,function(){var xn,Fn,ni,Yi,Fi,qi,Za,eo,po,us,Yo,Po,$s,cl,zs,Ro,zs,Ro;return m(this,function(Al){return this.ctx.save(),xn=wc(mr,dt),Fn=hc(mr,dt),nn===2&&(this.path(Fn),this.ctx.clip()),El(Fn[0])?(ni=Fn[0].start.x,Yi=Fn[0].start.y):(ni=Fn[0].x,Yi=Fn[0].y),El(Fn[1])?(Fi=Fn[1].end.x,qi=Fn[1].end.y):(Fi=Fn[1].x,qi=Fn[1].y),dt===0||dt===2?Za=Math.abs(ni-Fi):Za=Math.abs(Yi-qi),this.ctx.beginPath(),nn===3?this.formatPath(xn):this.formatPath(Fn.slice(0,2)),eo=ze<3?ze*3:ze*2,po=ze<3?ze*2:ze,nn===3&&(eo=ze,po=ze),us=!0,Za<=eo*2?us=!1:Za<=eo*2+po?(Yo=Za/(2*eo+po),eo*=Yo,po*=Yo):(Po=Math.floor((Za+po)/(eo+po)),$s=(Za-Po*eo)/(Po-1),cl=(Za-(Po+1)*eo)/Po,po=cl<=0||Math.abs(po-$s)<Math.abs(po-cl)?$s:cl),us&&(nn===3?this.ctx.setLineDash([0,eo+po]):this.ctx.setLineDash([eo,po])),nn===3?(this.ctx.lineCap="round",this.ctx.lineWidth=ze):this.ctx.lineWidth=ze*2+1.1,this.ctx.strokeStyle=Va(De),this.ctx.stroke(),this.ctx.setLineDash([]),nn===2&&(El(Fn[0])&&(zs=Fn[3],Ro=Fn[0],this.ctx.beginPath(),this.formatPath([new Ja(zs.end.x,zs.end.y),new Ja(Ro.start.x,Ro.start.y)]),this.ctx.stroke()),El(Fn[1])&&(zs=Fn[1],Ro=Fn[2],this.ctx.beginPath(),this.formatPath([new Ja(zs.end.x,zs.end.y),new Ja(Ro.start.x,Ro.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},be.prototype.render=function(De){return v(this,void 0,void 0,function(){var ze;return m(this,function(dt){switch(dt.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Va(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),ze=ju(De),[4,this.renderStack(ze)];case 1:return dt.sent(),this.applyEffects([]),[2,this.canvas]}})})},be}(Ec),_c=function(be){return be instanceof Vi||be instanceof ua?!0:be instanceof bi&&be.type!==Cn&&be.type!==Jr},Oc=function(be,De){switch(be){case 0:return lu(De);case 2:return Kl(De);case 1:default:return Uu(De)}},Ic=function(be){switch(be){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Lc=["-apple-system","system-ui"],Nc=function(be){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?be.filter(function(De){return Lc.indexOf(De)===-1}):be},Dc=function(Er){p(be,Er);function be(De,ze){var dt=Er.call(this,De,ze)||this;return dt.canvas=ze.canvas?ze.canvas:document.createElement("canvas"),dt.ctx=dt.canvas.getContext("2d"),dt.options=ze,dt.canvas.width=Math.floor(ze.width*ze.scale),dt.canvas.height=Math.floor(ze.height*ze.scale),dt.canvas.style.width=ze.width+"px",dt.canvas.style.height=ze.height+"px",dt.ctx.scale(dt.options.scale,dt.options.scale),dt.ctx.translate(-ze.x,-ze.y),dt.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+ze.width+"x"+ze.height+" at "+ze.x+","+ze.y+") with scale "+ze.scale),dt}return be.prototype.render=function(De){return v(this,void 0,void 0,function(){var ze,dt;return m(this,function(mr){switch(mr.label){case 0:return ze=xu(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,De),[4,Rc(ze)];case 1:return dt=mr.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Va(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(dt,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},be}(Ec),Rc=function(be){return new Promise(function(De,ze){var dt=new Image;dt.onload=function(){De(dt)},dt.onerror=ze,dt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(be))})},kc=function(){function Er(be){var De=be.id,ze=be.enabled;this.id=De,this.enabled=ze,this.start=Date.now()}return Er.prototype.debug=function(){for(var be=[],De=0;De<arguments.length;De++)be[De]=arguments[De];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,f([this.id,this.getTime()+"ms"],be)):this.info.apply(this,be))},Er.prototype.getTime=function(){return Date.now()-this.start},Er.prototype.info=function(){for(var be=[],De=0;De<arguments.length;De++)be[De]=arguments[De];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,f([this.id,this.getTime()+"ms"],be)))},Er.prototype.warn=function(){for(var be=[],De=0;De<arguments.length;De++)be[De]=arguments[De];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,f([this.id,this.getTime()+"ms"],be)):this.info.apply(this,be))},Er.prototype.error=function(){for(var be=[],De=0;De<arguments.length;De++)be[De]=arguments[De];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,f([this.id,this.getTime()+"ms"],be)):this.info.apply(this,be))},Er.instances={},Er}(),Mc=function(){function Er(be,De){var ze;this.windowBounds=De,this.instanceName="#"+Er.instanceCount++,this.logger=new kc({id:this.instanceName,enabled:be.logging}),this.cache=(ze=be.cache)!==null&&ze!==void 0?ze:new Ss(this,be)}return Er.instanceCount=1,Er}(),Pc=function(be,De){return De===void 0&&(De={}),Fc(be,De)};typeof window!="undefined"&&Mo.setContext(window);var Fc=function(be,De){return v(void 0,void 0,void 0,function(){var ze,dt,mr,nn,xn,Fn,ni,Yi,Fi,qi,Za,eo,po,us,Yo,Po,$s,cl,zs,Ro,Al,bl,Al,Vs,_u,Mu,Ou,eu,rc,Wu,Zu,$u,qu,nc,zu,ec,ic,ac,Yu,oc;return m(this,function(Qu){switch(Qu.label){case 0:if(!be||typeof be!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(ze=be.ownerDocument,!ze)throw new Error("Element is not attached to a Document");if(dt=ze.defaultView,!dt)throw new Error("Document is not attached to a Window");return mr={allowTaint:(Vs=De.allowTaint)!==null&&Vs!==void 0?Vs:!1,imageTimeout:(_u=De.imageTimeout)!==null&&_u!==void 0?_u:15e3,proxy:De.proxy,useCORS:(Mu=De.useCORS)!==null&&Mu!==void 0?Mu:!1},nn=x({logging:(Ou=De.logging)!==null&&Ou!==void 0?Ou:!0,cache:De.cache},mr),xn={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(xn.scrollX,xn.scrollY,xn.windowWidth,xn.windowHeight),ni=new Mc(nn,Fn),Yi=($u=De.foreignObjectRendering)!==null&&$u!==void 0?$u:!1,Fi={allowTaint:(qu=De.allowTaint)!==null&&qu!==void 0?qu:!1,onclone:De.onclone,ignoreElements:De.ignoreElements,inlineImages:Yi,copyStyles:Yi},ni.logger.debug("Starting document clone with size "+Fn.width+"x"+Fn.height+" scrolled to "+-Fn.left+","+-Fn.top),qi=new ge(ni,be,Fi),Za=qi.clonedReferenceElement,Za?[4,qi.toIFrame(ze,Fn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return eo=Qu.sent(),po=Fr(Za)||Et(Za)?o(Za.ownerDocument):l(ni,Za),us=po.width,Yo=po.height,Po=po.left,$s=po.top,cl=Bc(ni,Za,De.backgroundColor),zs={canvas:De.canvas,backgroundColor:cl,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)+Po,y:((ic=De.y)!==null&&ic!==void 0?ic:0)+$s,width:(ac=De.width)!==null&&ac!==void 0?ac:Math.ceil(us),height:(Yu=De.height)!==null&&Yu!==void 0?Yu:Math.ceil(Yo)},Yi?(ni.logger.debug("Document cloned, using foreign object rendering"),Al=new Dc(ni,zs),[4,Al.render(Za)]):[3,3];case 2:return Ro=Qu.sent(),[3,5];case 3:return ni.logger.debug("Document cloned, element located at "+Po+","+$s+" with size "+us+"x"+Yo+" using computed rendering"),ni.logger.debug("Starting DOM parsing"),bl=Sa(ni,Za),cl===bl.styles.backgroundColor&&(bl.styles.backgroundColor=So.TRANSPARENT),ni.logger.debug("Starting renderer for element at "+zs.x+","+zs.y+" with size "+zs.width+"x"+zs.height),Al=new mc(ni,zs),[4,Al.render(bl)];case 4:Ro=Qu.sent(),Qu.label=5;case 5:return((oc=De.removeContainer)!==null&&oc!==void 0?oc:!0)&&(ge.destroy(eo)||ni.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),ni.logger.debug("Finished rendering"),[2,Ro]}})})},Bc=function(be,De,ze){var dt=De.ownerDocument,mr=dt.documentElement?ao(be,getComputedStyle(dt.documentElement).backgroundColor):So.TRANSPARENT,nn=dt.body?ao(be,getComputedStyle(dt.body).backgroundColor):So.TRANSPARENT,xn=typeof ze=="string"?ao(be,ze):ze===null?So.TRANSPARENT:4294967295;return De===dt.documentElement?_a(mr)?_a(nn)?xn:nn:mr:xn};return Pc})},wPhX:function(R,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 A}),i.d(D,"e",function(){return b}),i.d(D,"f",function(){return w});var y=i("KQm4"),p=i("U8pU"),x=i("Ff2n"),v=i("q1tI"),m=i.n(v),f=i("Kwbf"),d=i("lr6o"),l=.25,o=2;function n(E,C){var _=E.slice(),T=_.indexOf(C);return T>=0&&_.splice(T,1),_}function t(E,C){var _=E.slice();return _.indexOf(C)===-1&&_.push(C),_}function a(E){return E.split("-")}function e(E,C){return"".concat(E,"-").concat(C)}function u(E){return E&&E.type&&E.type.isTreeNode}function r(E,C){var _=[E],T=C[E];function S(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];O.forEach(function(I){var F=I.key,P=I.children;_.push(F),S(P)})}return S(T.children),_}function s(E,C){var _=E.clientY,T=C.selectHandle.getBoundingClientRect(),S=T.top,O=T.bottom,I=T.height,F=Math.max(I*l,o);return _<=S+F?-1:_>=O-F?1:0}function c(E,C){if(!E)return;var _=C.multiple;return _?E.slice():E.length?[E[0]]:E}var h=function(C){return C};function g(E,C){if(!E)return[];var _=C||{},T=_.processProps,S=T===void 0?h:T,O=Array.isArray(E)?E:[E];return O.map(function(I){var F=I.children,P=Object(x.a)(I,["children"]),B=g(F,C);return m.a.createElement(d.a,Object.assign({},S(P)),B)})}function A(E){if(!E)return null;var C;if(Array.isArray(E))C={checkedKeys:E,halfCheckedKeys:void 0};else if(Object(p.a)(E)==="object")C={checkedKeys:E.checked||void 0,halfCheckedKeys:E.halfChecked||void 0};else return Object(f.a)(!1,"`checkedKeys` is not an array or an object"),null;return C}function b(E,C){var _=new Set;function T(S){if(_.has(S))return;var O=C[S];if(!O)return;_.add(S);var I=O.parent,F=O.node;if(F.disabled)return;I&&T(I.key)}return(E||[]).forEach(function(S){T(S)}),Object(y.a)(_)}function w(E){var C={};return Object.keys(E).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(C[_]=E[_])}),C}},wU8J:function(R,D){function i(){this.buffer=new Array,this.length=0}i.prototype={get:function(p){var x=Math.floor(p/8);return(this.buffer[x]>>>7-p%8&1)==1},put:function(p,x){for(var v=0;v<x;v++)this.putBit((p>>>x-v-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(p){var x=Math.floor(this.length/8);this.buffer.length<=x&&this.buffer.push(0),p&&(this.buffer[x]|=128>>>this.length%8),this.length++}},R.exports=i},wXyp:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="CheckOutlined";var n=v.forwardRef(o);D.default=n},wYyv:function(R,D,i){"use strict";var y=i("R5yR"),p=i("5wUe"),x=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)}},v=function(f,d,l){return f=y(f),x(f,d,l),f};R.exports=v,R.exports.mutate=x},wZgz:function(R,D,i){(function(y,p,x){R.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.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 A=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[A]=w,d[w]=A;var E=h[A],C=h[E],_=h[C],T=h[w]*257^w*16843008;l[A]=T<<24|T>>>8,o[A]=T<<16|T>>>16,n[A]=T<<8|T>>>24,t[A]=T;var T=_*16843009^C*65537^E*257^A*16843008;a[w]=T<<24|T>>>8,e[w]=T<<16|T>>>16,u[w]=T<<8|T>>>24,r[w]=T,A?(A=E^h[h[h[_^E]]],b^=h[h[b]]):A=b=1}})();var s=[0,1,2,4,8,16,32,64,128,27,54],c=m.AES=v.extend({_doReset:function(){var g;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var A=this._keyPriorReset=this._key,b=A.words,w=A.sigBytes/4,E=this._nRounds=w+6,C=(E+1)*4,_=this._keySchedule=[],T=0;T<C;T++)T<w?_[T]=b[T]:(g=_[T-1],T%w?w>6&&T%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[T/w|0]<<24),_[T]=_[T-w]^g);for(var S=this._invKeySchedule=[],O=0;O<C;O++){var T=C-O;if(O%4)var g=_[T];else var g=_[T-4];O<4||T<=4?S[O]=g:S[O]=a[f[g>>>24]]^e[f[g>>>16&255]]^u[f[g>>>8&255]]^r[f[g&255]]}},encryptBlock:function(g,A){this._doCryptBlock(g,A,this._keySchedule,l,o,n,t,f)},decryptBlock:function(g,A){var b=g[A+1];g[A+1]=g[A+3],g[A+3]=b,this._doCryptBlock(g,A,this._invKeySchedule,a,e,u,r,d);var b=g[A+1];g[A+1]=g[A+3],g[A+3]=b},_doCryptBlock:function(g,A,b,w,E,C,_,T){for(var S=this._nRounds,O=g[A]^b[0],I=g[A+1]^b[1],F=g[A+2]^b[2],P=g[A+3]^b[3],B=4,k=1;k<S;k++){var G=w[O>>>24]^E[I>>>16&255]^C[F>>>8&255]^_[P&255]^b[B++],M=w[I>>>24]^E[F>>>16&255]^C[P>>>8&255]^_[O&255]^b[B++],j=w[F>>>24]^E[P>>>16&255]^C[O>>>8&255]^_[I&255]^b[B++],K=w[P>>>24]^E[O>>>16&255]^C[I>>>8&255]^_[F&255]^b[B++];O=G,I=M,F=j,P=K}var G=(T[O>>>24]<<24|T[I>>>16&255]<<16|T[F>>>8&255]<<8|T[P&255])^b[B++],M=(T[I>>>24]<<24|T[F>>>16&255]<<16|T[P>>>8&255]<<8|T[O&255])^b[B++],j=(T[F>>>24]<<24|T[P>>>16&255]<<16|T[O>>>8&255]<<8|T[I&255])^b[B++],K=(T[P>>>24]<<24|T[O>>>16&255]<<16|T[I>>>8&255]<<8|T[F&255])^b[B++];g[A]=G,g[A+1]=M,g[A+2]=j,g[A+3]=K},keySize:256/32});p.AES=v._createHelper(c)}(),y.AES})},wbyO:function(R,D,i){(function(y,p){R.exports=D=p(i("Ib8C"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.WordArray,m=p.enc,f=m.Base64url={stringify:function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,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,A=0;A<4&&r+A*.75<a;A++)u.push(e.charAt(g>>>6*(3-A)&63));var b=e.charAt(64);if(b)for(;u.length%4;)u.push(b);return u.join("")},parse:function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,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 v.create(t,a)}}(),y.enc.Base64url})},wgjA:function(R,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(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=i("lNSK"),p=x(i("1q3G"));function x(l){return l&&l.__esModule?l:{default:l}}function v(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(){v(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(R,D,i){var y=i("IwbS"),p=y.extendShape,x=p({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(v,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&&(v.moveTo(r*l+f,s*l+d),v.arc(r*t+f,s*t+d,n,-Math.PI+a,a,!u)),v.arc(f,d,o,a,e,!u),v.moveTo(c*o+f,h*o+d),v.arc(c*t+f,h*t+d,n,e-Math.PI*2,e-Math.PI,!u),l!==0&&(v.arc(f,d,l,e,a,u),v.moveTo(r*l+f,h*l+d)),v.closePath()}});R.exports=x},wt3j:function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("/IIm"),v=i("EMyp"),m=v.layoutCovers,f=y.extendComponentView({type:"brush",init:function(l,o){this.ecModel=l,this.api=o,this.model,(this._brushController=new x(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())}R.exports=f},x3X8:function(R,D,i){var y=i("KxfA"),p=y.retrieveRawValue;function x(v,m){var f=v.mapDimension("defaultedLabel",!0),d=f.length;if(d===1)return p(v,m,f[0]);if(d){for(var l=[],o=0;o<f.length;o++){var n=p(v,m,f[o]);l.push(n)}return l.join(" ")}}D.getDefaultLabel=x},x54q:function(R,D,i){},x6Kt:function(R,D,i){var y=i("y+Vt"),p=i("VpOo"),x=i("nPnh"),v=x.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?(v(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}});R.exports=f},xGfz:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="PlusSquareOutlined";var d=D.a=p.forwardRef(f)},xKMd:function(R,D){function i(p,x){this.getAllNames=function(){var v=x();return v.mapArray(v.getName)},this.containName=function(v){var m=x();return m.indexOfName(v)>=0},this.indexOfName=function(v){var m=p();return m.indexOfName(v)},this.getItemVisual=function(v,m){var f=p();return f.getItemVisual(v,m)}}var y=i;R.exports=y},xO64:function(R,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 x(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(c){return typeof c}:x=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},x(r)}function v(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 A=e(this).constructor;g=Reflect.construct(h,arguments,A)}else g=h.apply(this,arguments);return n(this,g)}}function n(r,s){return s&&(x(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 v(this,c),s.apply(this,arguments)}return f(c,[{key:"_pngRect",value:function(g,A,b,w,E,C,_){var T=this._readData(E);return T===null?!1:(C.imageRect(g,A,b,w,"image/png",T),!0)}},{key:"_basicRect",value:function(g,A,b,w,E,C,_,T){throw new Error("BasicCompression received in TightPNG rect")}}]),c}(y.default);D.default=u},xOOu:function(R,D,i){(function(y,p,x){var v,v;/*!
|
|
|
|
|
|
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){R.exports=m()}(function(){return function m(f,d,l){function o(a,e){if(!d[a]){if(!f[a]){var u=typeof v=="function"&&v;if(!e&&u)return v(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 v=="function"&&v,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=[],A=0,b=t.length,w=b,E=l.getTypeOf(t)!=="string";A<t.length;)w=b-A,u=E?(a=t[A++],e=A<b?t[A++]:0,A<b?t[A++]:0):(a=t.charCodeAt(A++),e=A<b?t.charCodeAt(A++):0,A<b?t.charCodeAt(A++):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,A="data:";if(t.substr(0,A.length)===A)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,A,b){var w,E,C=s.file,_=s.compression,T=b!==a.utf8encode,S=n.transformTo("string",b(C.name)),O=n.transformTo("string",a.utf8encode(C.name)),I=C.comment,F=n.transformTo("string",b(I)),P=n.transformTo("string",a.utf8encode(I)),B=O.length!==C.name.length,k=P.length!==I.length,G="",M="",j="",K=C.dir,z=C.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),T||!B&&!k||(Q|=2048);var X=0,te=0;K&&(X|=16),A==="UNIX"?(te=798,X|=function(le,re){var Se=le;return le||(Se=re?16893:33204),(65535&Se)<<16}(C.unixPermissions,K)):(te=20,X|=function(le){return 63&(le||0)}(C.dosPermissions)),w=z.getUTCHours(),w<<=6,w|=z.getUTCMinutes(),w<<=5,w|=z.getUTCSeconds()/2,E=z.getUTCFullYear()-1980,E<<=4,E|=z.getUTCMonth()+1,E<<=5,E|=z.getUTCDate(),B&&(M=l(1,1)+l(e(S),4)+O,G+="up"+l(M.length,2)+M),k&&(j=l(1,1)+l(e(F),4)+P,G+="uc"+l(j.length,2)+j);var $="";return $+=`
|
|
|
\0`,$+=l(Q,2),$+=_.magic,$+=l(w,2),$+=l(E,2),$+=l(V.crc32,4),$+=l(V.compressedSize,4),$+=l(V.uncompressedSize,4),$+=l(S.length,2),$+=l(G.length,2),{fileRecord:u.LOCAL_FILE_HEADER+$+S+G,dirRecord:u.CENTRAL_FILE_HEADER+l(te,2)+$+l(F.length,2)+"\0\0\0\0"+l(X,4)+l(g,4)+S+G+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(A,b,w,E,C){var _=n.transformTo("string",C(E));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(A,2)+l(A,2)+l(b,4)+l(w,4)+l(_.length,2)+_}(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 E=b||w,C=l[E];if(!C)throw new Error(E+" is not a valid compression method !");return C}(s.options.compression,t.compression),h=s.options.compressionOptions||t.compressionOptions||{},g=s.dir,A=s.date;s._compressWorker(c,h).withStreamInfo("file",{name:r,dir:g,date:A,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(e)}),e.entriesCount=u}catch(r){e.error(r)}return e}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(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)],A=h.files;if(s.checkCRC32)for(var b=0;b<A.length;b++)g.push(u(A[b]));return o.Promise.all(g)}).then(function(h){for(var g=h.shift(),A=g.files,b=0;b<A.length;b++){var w=A[b],E=w.fileNameStr,C=l.resolve(w.fileNameStr);c.file(C,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(C).unsafeOriginalName=E)}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(C,_,T){var S,O=n.getTypeOf(_),I=n.extend(T||{},e);I.date=I.date||new Date,I.compression!==null&&(I.compression=I.compression.toUpperCase()),typeof I.unixPermissions=="string"&&(I.unixPermissions=parseInt(I.unixPermissions,8)),I.unixPermissions&&16384&I.unixPermissions&&(I.dir=!0),I.dosPermissions&&16&I.dosPermissions&&(I.dir=!0),I.dir&&(C=A(C)),I.createFolders&&(S=g(C))&&b.call(this,S,!0);var F=O==="string"&&I.binary===!1&&I.base64===!1;T&&T.binary!==void 0||(I.binary=!F),(_ instanceof u&&_.uncompressedSize===0||I.dir||!_||_.length===0)&&(I.base64=!1,I.binary=!0,_="",I.compression="STORE",O="string");var P=null;P=_ instanceof u||_ instanceof t?_:c.isNode&&c.isStream(_)?new h(C,_):n.prepareContent(C,_,I.binary,I.optimizedBinaryString,I.base64);var B=new r(C,P,I);this.files[C]=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(_){_.slice(-1)==="/"&&(_=_.substring(0,_.length-1));var T=_.lastIndexOf("/");return 0<T?_.substring(0,T):""},A=function(_){return _.slice(-1)!=="/"&&(_+="/"),_},b=function(_,T){return T=T!==void 0?T:e.createFolders,_=A(_),this.files[_]||l.call(this,_,null,{dir:!0,createFolders:T}),this.files[_]};function w(C){return Object.prototype.toString.call(C)==="[object RegExp]"}var E={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(_){var T,S,O;for(T in this.files)O=this.files[T],(S=T.slice(this.root.length,T.length))&&T.slice(0,this.root.length)===this.root&&_(S,O)},filter:function(_){var T=[];return this.forEach(function(S,O){_(S,O)&&T.push(O)}),T},file:function(_,T,S){if(arguments.length!==1)return _=this.root+_,l.call(this,_,T,S),this;if(w(_)){var O=_;return this.filter(function(F,P){return!P.dir&&O.test(F)})}var I=this.files[this.root+_];return I&&!I.dir?I:null},folder:function(_){if(!_)return this;if(w(_))return this.filter(function(I,F){return F.dir&&_.test(I)});var T=this.root+_,S=b.call(this,T),O=this.clone();return O.root=S.name,O},remove:function(_){_=this.root+_;var T=this.files[_];if(T||(_.slice(-1)!=="/"&&(_+="/"),T=this.files[_]),T&&!T.dir)delete this.files[_];else for(var S=this.filter(function(I,F){return F.name.slice(0,_.length)===_}),O=0;O<S.length;O++)delete this.files[S[O].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(_){var T,S={};try{if((S=n.extend(_||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=S.type.toLowerCase(),S.compression=S.compression.toUpperCase(),S.type==="binarystring"&&(S.type="string"),!S.type)throw new Error("No output type specified.");n.checkSupport(S.type),S.platform!=="darwin"&&S.platform!=="freebsd"&&S.platform!=="linux"&&S.platform!=="sunos"||(S.platform="UNIX"),S.platform==="win32"&&(S.platform="DOS");var O=S.comment||this.comment||"";T=s.generateWorker(this,S,O)}catch(I){(T=new t("error")).error(I)}return new a(T,S.type||"string",S.mimeType)},generateAsync:function(_,T){return this.generateInternalStream(_).accumulate(T)},generateNodeStream:function(_,T){return(_=_||{}).type||(_.type="nodebuffer"),this.generateInternalStream(_).toNodejsStream(T)}};f.exports=E},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(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,A){var b=[],w=c._internalType,E=c._outputType,C=c._mimeType;c.on("data",function(_,T){b.push(_),h&&h(T)}).on("error",function(_){b=[],A(_)}).on("end",function(){try{var _=function(T,S,O){switch(T){case"blob":return l.newBlob(l.transformTo("arraybuffer",S),O);case"base64":return t.encode(S);default:return l.transformTo(T,S)}}(E,function(T,S){var O,I=0,F=null,P=0;for(O=0;O<S.length;O++)P+=S[O].length;switch(T){case"string":return S.join("");case"array":return Array.prototype.concat.apply([],S);case"uint8array":for(F=new Uint8Array(P),O=0;O<S.length;O++)F.set(S[O],I),I+=S[O].length;return F;case"nodebuffer":return y.concat(S);default:throw new Error("concat : unsupported type '"+T+"'")}}(w,b),C);g(_)}catch(T){A(T)}b=[]}).resume()})}function s(c,h,g){var A=h;switch(h){case"blob":case"arraybuffer":A="uint8array";break;case"base64":A="string"}try{this._internalType=A,this._outputType=h,this._mimeType=g,l.checkSupport(A),this._worker=c.pipe(new o(A)),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 A=this;return h==="data"?this._worker.on(h,function(b){g.call(A,b.data,b.meta)}):this._worker.on(h,function(){l.delay(g,arguments,A)}),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(h){if(l.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:this._outputType!=="nodebuffer"},h)}},f.exports=s},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(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,A,b,w,E=c.length,C=0;for(b=0;b<E;b++)(64512&(g=c.charCodeAt(b)))==55296&&b+1<E&&(64512&(A=c.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(A-56320),b++),C+=g<128?1:g<2048?2:g<65536?3:4;for(h=o.uint8array?new Uint8Array(C):new Array(C),b=w=0;w<C;b++)(64512&(g=c.charCodeAt(b)))==55296&&b+1<E&&(64512&(A=c.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(A-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,A,b,w=c.length,E=new Array(2*w);for(h=g=0;h<w;)if((A=c[h++])<128)E[g++]=A;else if(4<(b=a[A]))E[g++]=65533,h+=b-1;else{for(A&=b===2?31:b===3?15:7;1<b&&h<w;)A=A<<6|63&c[h++],b--;1<b?E[g++]=65533:A<65536?E[g++]=A:(A-=65536,E[g++]=55296|A>>10&1023,E[g++]=56320|1023&A)}return E.length!==g&&(E.subarray?E=E.subarray(0,g):E.length=g),l.applyFromCharCode(E)}(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 E;for((w=w||b.length)>b.length&&(w=b.length),E=w-1;0<=E&&(192&b[E])==128;)E--;return E<0||E===0?w:E+a[b[E]]>w?E:w}(c),A=c;g!==c.length&&(o.uint8array?(A=c.subarray(0,g),this.leftOver=c.subarray(g,c.length)):(A=c.slice(0,g),this.leftOver=c.slice(g,c.length))),this.push({data:d.utf8decode(A),meta:s.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:d.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},d.Utf8DecodeWorker=u,l.inherits(r,t),r.prototype.processChunk=function(s){this.push({data:d.utf8encode(s.data),meta:s.meta})},d.Utf8EncodeWorker=r},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(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 A=0;A<h.length;++A)g[A]=255&h.charCodeAt(A);return g}m("setimmediate"),d.newBlob=function(h,g){d.checkSupport("blob");try{return new Blob([h],{type:g})}catch(b){try{var A=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return A.append(h),A.getBlob(g)}catch(w){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(g,A,b){var w=[],E=0,C=g.length;if(C<=b)return String.fromCharCode.apply(null,g);for(;E<C;)A==="array"||A==="nodebuffer"?w.push(String.fromCharCode.apply(null,g.slice(E,Math.min(E+b,C)))):w.push(String.fromCharCode.apply(null,g.subarray(E,Math.min(E+b,C)))),E+=b;return w.join("")},stringifyByChar:function(g){for(var A="",b=0;b<g.length;b++)A+=String.fromCharCode(g[b]);return A},applyCanBeUsed:{uint8array:function(){try{return l.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(h){return!1}}(),nodebuffer:function(){try{return l.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch(h){return!1}}()}};function r(h){var g=65536,A=d.getTypeOf(h),b=!0;if(A==="uint8array"?b=u.applyCanBeUsed.uint8array:A==="nodebuffer"&&(b=u.applyCanBeUsed.nodebuffer),b)for(;1<g;)try{return u.stringifyByChunk(h,A,g)}catch(w){g=Math.floor(g/2)}return u.stringifyByChar(h)}function s(h,g){for(var A=0;A<h.length;A++)g[A]=h[A];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 A=d.getTypeOf(g);return c[A][h](g)},d.resolve=function(h){for(var g=h.split("/"),A=[],b=0;b<g.length;b++){var w=g[b];w==="."||w===""&&b!==0&&b!==g.length-1||(w===".."?A.pop():A.push(w))}return A.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,A,b="";for(A=0;A<(h||"").length;A++)b+="\\x"+((g=h.charCodeAt(A))<16?"0":"")+g.toString(16).toUpperCase();return b},d.delay=function(h,g,A){setImmediate(function(){h.apply(A||null,g||[])})},d.inherits=function(h,g){function A(){}A.prototype=g.prototype,h.prototype=new A},d.extend=function(){var h,g,A={};for(h=0;h<arguments.length;h++)for(g in arguments[h])Object.prototype.hasOwnProperty.call(arguments[h],g)&&A[g]===void 0&&(A[g]=arguments[h][g]);return A},d.prepareContent=function(h,g,A,b,w){return t.Promise.resolve(g).then(function(E){return l.blob&&(E instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(E))!==-1)&&typeof FileReader!="undefined"?new t.Promise(function(C,_){var T=new FileReader;T.onload=function(S){C(S.target.result)},T.onerror=function(S){_(S.target.error)},T.readAsArrayBuffer(E)}):E}).then(function(E){var C=d.getTypeOf(E);return C?(C==="arraybuffer"?E=d.transformTo("uint8array",E):C==="string"&&(w?E=o.decode(E):A&&b!==!0&&(E=function(_){return e(_,l.uint8array?new Uint8Array(_.length):new Array(_.length))}(E))),E):t.Promise.reject(new Error("Can't read the data of '"+h+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(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(A){for(var b in e)if(Object.prototype.hasOwnProperty.call(e,b)&&e[b].magic===A)return e[b];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+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,A,b=c.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});c.index+4<b;)h=c.readInt(2),g=c.readInt(2),A=c.readData(g),this.extraFields[h]={id:h,length:g,value:A};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 A=this.findExtraFieldUnicodeComment();if(A!==null)this.fileCommentStr=A;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,A="string";try{if(!h)throw new Error("No output type specified.");var b=(A=h.toLowerCase())==="string"||A==="text";A!=="binarystring"&&A!=="text"||(A="string"),g=this._decompressWorker();var w=!this._dataBinary;w&&!b&&(g=g.pipe(new t.Utf8EncodeWorker)),!w&&b&&(g=g.pipe(new t.Utf8DecodeWorker))}catch(E){(g=new e("error")).error(E)}return new o(g,A,"")},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 A=this._decompressWorker();return this._dataBinary||(A=A.pipe(new t.Utf8EncodeWorker)),a.createWorkerFrom(A,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 A=s.length;A;){for(g=s,s=[],h=-1;++h<A;)g[h]();A=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(A){if(typeof A!="function")throw new TypeError("resolver must be a function");this.state=e,this.queue=[],this.outcome=void 0,A!==o&&h(this,A)}function r(A,b,w){this.promise=A,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof w=="function"&&(this.onRejected=w,this.callRejected=this.otherCallRejected)}function s(A,b,w){l(function(){var E;try{E=b(w)}catch(C){return n.reject(A,C)}E===A?n.reject(A,new TypeError("Cannot resolve promise with itself")):n.resolve(A,E)})}function c(A){var b=A&&A.then;if(A&&(typeof A=="object"||typeof A=="function")&&typeof b=="function")return function(){b.apply(A,arguments)}}function h(A,b){var w=!1;function E(T){w||(w=!0,n.reject(A,T))}function C(T){w||(w=!0,n.resolve(A,T))}var _=g(function(){b(C,E)});_.status==="error"&&E(_.value)}function g(A,b){var w={};try{w.value=A(b),w.status="success"}catch(E){w.status="error",w.value=E}return w}(f.exports=u).prototype.finally=function(A){if(typeof A!="function")return this;var b=this.constructor;return this.then(function(w){return b.resolve(A()).then(function(){return w})},function(w){return b.resolve(A()).then(function(){throw w})})},u.prototype.catch=function(A){return this.then(null,A)},u.prototype.then=function(A,b){if(typeof A!="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?A:b,this.outcome):this.queue.push(new r(w,A,b)),w},r.prototype.callFulfilled=function(A){n.resolve(this.promise,A)},r.prototype.otherCallFulfilled=function(A){s(this.promise,this.onFulfilled,A)},r.prototype.callRejected=function(A){n.reject(this.promise,A)},r.prototype.otherCallRejected=function(A){s(this.promise,this.onRejected,A)},n.resolve=function(A,b){var w=g(c,b);if(w.status==="error")return n.reject(A,w.value);var E=w.value;if(E)h(A,E);else{A.state=a,A.outcome=b;for(var C=-1,_=A.queue.length;++C<_;)A.queue[C].callFulfilled(b)}return A},n.reject=function(A,b){A.state=t,A.outcome=b;for(var w=-1,E=A.queue.length;++w<E;)A.queue[w].callRejected(b);return A},u.resolve=function(A){return A instanceof this?A:n.resolve(new this(o),A)},u.reject=function(A){var b=new this(o);return n.reject(b,A)},u.all=function(A){var b=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=A.length,E=!1;if(!w)return this.resolve([]);for(var C=new Array(w),_=0,T=-1,S=new this(o);++T<w;)O(A[T],T);return S;function O(I,F){b.resolve(I).then(function(P){C[F]=P,++_!==w||E||(E=!0,n.resolve(S,C))},function(P){E||(E=!0,n.reject(S,P))})}},u.race=function(A){var b=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=A.length,E=!1;if(!w)return this.resolve([]);for(var C=-1,_=new this(o);++C<w;)T=A[C],b.resolve(T).then(function(S){E||(E=!0,n.resolve(_,S))},function(S){E||(E=!0,n.reject(_,S))});var T;return _}},{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(A){if(!(this instanceof h))return new h(A);this.options=o.assign({level:r,method:c,chunkSize:16384,windowBits:15,memLevel:8,strategy:s,to:""},A||{});var b=this.options;b.raw&&0<b.windowBits?b.windowBits=-b.windowBits:b.gzip&&0<b.windowBits&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new 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 E;if(E=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,E))!==u)throw new Error(t[w]);this._dict_set=!0}}function g(A,b){var w=new h(b);if(w.push(A,!0),w.err)throw w.msg||t[w.err];return w.result}h.prototype.push=function(A,b){var w,E,C=this.strm,_=this.options.chunkSize;if(this.ended)return!1;E=b===~~b?b:b===!0?4:0,typeof A=="string"?C.input=n.string2buf(A):e.call(A)==="[object ArrayBuffer]"?C.input=new Uint8Array(A):C.input=A,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new o.Buf8(_),C.next_out=0,C.avail_out=_),(w=l.deflate(C,E))!==1&&w!==u)return this.onEnd(w),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||E!==4&&E!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(o.shrinkBuf(C.output,C.next_out))):this.onData(o.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&w!==1);return E===4?(w=l.deflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===u):E!==2||(this.onEnd(u),!(C.avail_out=0))},h.prototype.onData=function(A){this.chunks.push(A)},h.prototype.onEnd=function(A){A===u&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg},d.Deflate=h,d.deflate=g,d.deflateRaw=function(A,b){return(b=b||{}).raw=!0,g(A,b)},d.gzip=function(A,b){return(b=b||{}).gzip=!0,g(A,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 A=l.inflateInit2(this.strm,g.windowBits);if(A!==t.Z_OK)throw new Error(a[A]);this.header=new u,l.inflateGetHeader(this.strm,this.header)}function c(h,g){var A=new s(g);if(A.push(h,!0),A.err)throw A.msg||a[A.err];return A.result}s.prototype.push=function(h,g){var A,b,w,E,C,_,T=this.strm,S=this.options.chunkSize,O=this.options.dictionary,I=!1;if(this.ended)return!1;b=g===~~g?g:g===!0?t.Z_FINISH:t.Z_NO_FLUSH,typeof h=="string"?T.input=n.binstring2buf(h):r.call(h)==="[object ArrayBuffer]"?T.input=new Uint8Array(h):T.input=h,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new o.Buf8(S),T.next_out=0,T.avail_out=S),(A=l.inflate(T,t.Z_NO_FLUSH))===t.Z_NEED_DICT&&O&&(_=typeof O=="string"?n.string2buf(O):r.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,A=l.inflateSetDictionary(this.strm,_)),A===t.Z_BUF_ERROR&&I===!0&&(A=t.Z_OK,I=!1),A!==t.Z_STREAM_END&&A!==t.Z_OK)return this.onEnd(A),!(this.ended=!0);T.next_out&&(T.avail_out!==0&&A!==t.Z_STREAM_END&&(T.avail_in!==0||b!==t.Z_FINISH&&b!==t.Z_SYNC_FLUSH)||(this.options.to==="string"?(w=n.utf8border(T.output,T.next_out),E=T.next_out-w,C=n.buf2string(T.output,w),T.next_out=E,T.avail_out=S-E,E&&o.arraySet(T.output,T.output,w,E,0),this.onData(C)):this.onData(o.shrinkBuf(T.output,T.next_out)))),T.avail_in===0&&T.avail_out===0&&(I=!0)}while((0<T.avail_in||T.avail_out===0)&&A!==t.Z_STREAM_END);return A===t.Z_STREAM_END&&(b=t.Z_FINISH),b===t.Z_FINISH?(A=l.inflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===t.Z_OK):b!==t.Z_SYNC_FLUSH||(this.onEnd(t.Z_OK),!(T.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,A=u.length,b=0;for(h=0;h<A;h++)(64512&(s=u.charCodeAt(h)))==55296&&h+1<A&&(64512&(c=u.charCodeAt(h+1)))==56320&&(s=65536+(s-55296<<10)+(c-56320),h++),b+=s<128?1:s<2048?2:s<65536?3:4;for(r=new l.Buf8(b),h=g=0;g<b;h++)(64512&(s=u.charCodeAt(h)))==55296&&h+1<A&&(64512&(c=u.charCodeAt(h+1)))==56320&&(s=65536+(s-55296<<10)+(c-56320),h++),s<128?r[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,A=r||u.length,b=new Array(2*A);for(s=c=0;s<A;)if((h=u[s++])<128)b[c++]=h;else if(4<(g=t[h]))b[c++]=65533,s+=g-1;else{for(h&=g===2?31:g===3?15:7;1<g&&s<A;)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,A=2,b=8,w=9,E=286,C=30,_=19,T=2*E+1,S=15,O=3,I=258,F=I+O+1,P=42,B=113,k=1,G=2,M=3,j=4;function K(ae,lt){return ae.msg=e[lt],lt}function z(ae){return(ae<<1)-(4<ae?9:0)}function V(ae){for(var lt=ae.length;0<=--lt;)ae[lt]=0}function Q(ae){var lt=ae.state,pe=lt.pending;pe>ae.avail_out&&(pe=ae.avail_out),pe!==0&&(o.arraySet(ae.output,lt.pending_buf,lt.pending_out,pe,ae.next_out),ae.next_out+=pe,lt.pending_out+=pe,ae.total_out+=pe,ae.avail_out-=pe,lt.pending-=pe,lt.pending===0&&(lt.pending_out=0))}function X(ae,lt){n._tr_flush_block(ae,0<=ae.block_start?ae.block_start:-1,ae.strstart-ae.block_start,lt),ae.block_start=ae.strstart,Q(ae.strm)}function te(ae,lt){ae.pending_buf[ae.pending++]=lt}function $(ae,lt){ae.pending_buf[ae.pending++]=lt>>>8&255,ae.pending_buf[ae.pending++]=255<}function le(ae,lt){var pe,J,Y=ae.max_chain_length,ee=ae.strstart,fe=ae.prev_length,we=ae.nice_match,Ce=ae.strstart>ae.w_size-F?ae.strstart-(ae.w_size-F):0,_e=ae.window,he=ae.w_mask,ye=ae.prev,Le=ae.strstart+I,tt=_e[ee+fe-1],gt=_e[ee+fe];ae.prev_length>=ae.good_match&&(Y>>=2),we>ae.lookahead&&(we=ae.lookahead);do if(_e[(pe=lt)+fe]===gt&&_e[pe+fe-1]===tt&&_e[pe]===_e[ee]&&_e[++pe]===_e[ee+1]){ee+=2,pe++;do;while(_e[++ee]===_e[++pe]&&_e[++ee]===_e[++pe]&&_e[++ee]===_e[++pe]&&_e[++ee]===_e[++pe]&&_e[++ee]===_e[++pe]&&_e[++ee]===_e[++pe]&&_e[++ee]===_e[++pe]&&_e[++ee]===_e[++pe]&&ee<Le);if(J=I-(Le-ee),ee=Le-I,fe<J){if(ae.match_start=lt,we<=(fe=J))break;tt=_e[ee+fe-1],gt=_e[ee+fe]}}while((lt=ye[lt&he])>Ce&&--Y!=0);return fe<=ae.lookahead?fe:ae.lookahead}function re(ae){var lt,pe,J,Y,ee,fe,we,Ce,_e,he,ye=ae.w_size;do{if(Y=ae.window_size-ae.lookahead-ae.strstart,ae.strstart>=ye+(ye-F)){for(o.arraySet(ae.window,ae.window,ye,ye,0),ae.match_start-=ye,ae.strstart-=ye,ae.block_start-=ye,lt=pe=ae.hash_size;J=ae.head[--lt],ae.head[lt]=ye<=J?J-ye:0,--pe;);for(lt=pe=ye;J=ae.prev[--lt],ae.prev[lt]=ye<=J?J-ye:0,--pe;);Y+=ye}if(ae.strm.avail_in===0)break;if(fe=ae.strm,we=ae.window,Ce=ae.strstart+ae.lookahead,_e=Y,he=void 0,he=fe.avail_in,_e<he&&(he=_e),pe=he===0?0:(fe.avail_in-=he,o.arraySet(we,fe.input,fe.next_in,he,Ce),fe.state.wrap===1?fe.adler=t(fe.adler,we,he,Ce):fe.state.wrap===2&&(fe.adler=a(fe.adler,we,he,Ce)),fe.next_in+=he,fe.total_in+=he,he),ae.lookahead+=pe,ae.lookahead+ae.insert>=O)for(ee=ae.strstart-ae.insert,ae.ins_h=ae.window[ee],ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ee+1])&ae.hash_mask;ae.insert&&(ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ee+O-1])&ae.hash_mask,ae.prev[ee&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=ee,ee++,ae.insert--,!(ae.lookahead+ae.insert<O)););}while(ae.lookahead<F&&ae.strm.avail_in!==0)}function Se(ae,lt){for(var pe,J;;){if(ae.lookahead<F){if(re(ae),ae.lookahead<F&<===u)return k;if(ae.lookahead===0)break}if(pe=0,ae.lookahead>=O&&(ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+O-1])&ae.hash_mask,pe=ae.prev[ae.strstart&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=ae.strstart),pe!==0&&ae.strstart-pe<=ae.w_size-F&&(ae.match_length=le(ae,pe)),ae.match_length>=O)if(J=n._tr_tally(ae,ae.strstart-ae.match_start,ae.match_length-O),ae.lookahead-=ae.match_length,ae.match_length<=ae.max_lazy_match&&ae.lookahead>=O){for(ae.match_length--;ae.strstart++,ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+O-1])&ae.hash_mask,pe=ae.prev[ae.strstart&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=ae.strstart,--ae.match_length!=0;);ae.strstart++}else ae.strstart+=ae.match_length,ae.match_length=0,ae.ins_h=ae.window[ae.strstart],ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+1])&ae.hash_mask;else J=n._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++;if(J&&(X(ae,!1),ae.strm.avail_out===0))return k}return ae.insert=ae.strstart<O-1?ae.strstart:O-1,lt===r?(X(ae,!0),ae.strm.avail_out===0?M:j):ae.last_lit&&(X(ae,!1),ae.strm.avail_out===0)?k:G}function Re(ae,lt){for(var pe,J,Y;;){if(ae.lookahead<F){if(re(ae),ae.lookahead<F&<===u)return k;if(ae.lookahead===0)break}if(pe=0,ae.lookahead>=O&&(ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+O-1])&ae.hash_mask,pe=ae.prev[ae.strstart&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=ae.strstart),ae.prev_length=ae.match_length,ae.prev_match=ae.match_start,ae.match_length=O-1,pe!==0&&ae.prev_length<ae.max_lazy_match&&ae.strstart-pe<=ae.w_size-F&&(ae.match_length=le(ae,pe),ae.match_length<=5&&(ae.strategy===1||ae.match_length===O&&4096<ae.strstart-ae.match_start)&&(ae.match_length=O-1)),ae.prev_length>=O&&ae.match_length<=ae.prev_length){for(Y=ae.strstart+ae.lookahead-O,J=n._tr_tally(ae,ae.strstart-1-ae.prev_match,ae.prev_length-O),ae.lookahead-=ae.prev_length-1,ae.prev_length-=2;++ae.strstart<=Y&&(ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+O-1])&ae.hash_mask,pe=ae.prev[ae.strstart&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=ae.strstart),--ae.prev_length!=0;);if(ae.match_available=0,ae.match_length=O-1,ae.strstart++,J&&(X(ae,!1),ae.strm.avail_out===0))return k}else if(ae.match_available){if((J=n._tr_tally(ae,0,ae.window[ae.strstart-1]))&&X(ae,!1),ae.strstart++,ae.lookahead--,ae.strm.avail_out===0)return k}else ae.match_available=1,ae.strstart++,ae.lookahead--}return ae.match_available&&(J=n._tr_tally(ae,0,ae.window[ae.strstart-1]),ae.match_available=0),ae.insert=ae.strstart<O-1?ae.strstart:O-1,lt===r?(X(ae,!0),ae.strm.avail_out===0?M:j):ae.last_lit&&(X(ae,!1),ae.strm.avail_out===0)?k:G}function Pe(ae,lt,pe,J,Y){this.good_length=ae,this.max_lazy=lt,this.nice_length=pe,this.max_chain=J,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*T),this.dyn_dtree=new o.Buf16(2*(2*C+1)),this.bl_tree=new o.Buf16(2*(2*_+1)),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(S+1),this.heap=new o.Buf16(2*E+1),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*E+1),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ge(ae){var lt;return ae&&ae.state?(ae.total_in=ae.total_out=0,ae.data_type=A,(lt=ae.state).pending=0,lt.pending_out=0,lt.wrap<0&&(lt.wrap=-lt.wrap),lt.status=lt.wrap?P:B,ae.adler=lt.wrap===2?0:1,lt.last_flush=u,n._tr_init(lt),s):K(ae,c)}function ct(ae){var lt=Ge(ae);return lt===s&&function(pe){pe.window_size=2*pe.w_size,V(pe.head),pe.max_lazy_match=l[pe.level].max_lazy,pe.good_match=l[pe.level].good_length,pe.nice_match=l[pe.level].nice_length,pe.max_chain_length=l[pe.level].max_chain,pe.strstart=0,pe.block_start=0,pe.lookahead=0,pe.insert=0,pe.match_length=pe.prev_length=O-1,pe.match_available=0,pe.ins_h=0}(ae.state),lt}function Ue(ae,lt,pe,J,Y,ee){if(!ae)return c;var fe=1;if(lt===h&&(lt=6),J<0?(fe=0,J=-J):15<J&&(fe=2,J-=16),Y<1||w<Y||pe!==b||J<8||15<J||lt<0||9<lt||ee<0||g<ee)return K(ae,c);J===8&&(J=9);var we=new Je;return(ae.state=we).strm=ae,we.wrap=fe,we.gzhead=null,we.w_bits=J,we.w_size=1<<we.w_bits,we.w_mask=we.w_size-1,we.hash_bits=Y+7,we.hash_size=1<<we.hash_bits,we.hash_mask=we.hash_size-1,we.hash_shift=~~((we.hash_bits+O-1)/O),we.window=new o.Buf8(2*we.w_size),we.head=new o.Buf16(we.hash_size),we.prev=new o.Buf16(we.w_size),we.lit_bufsize=1<<Y+6,we.pending_buf_size=4*we.lit_bufsize,we.pending_buf=new o.Buf8(we.pending_buf_size),we.d_buf=1*we.lit_bufsize,we.l_buf=3*we.lit_bufsize,we.level=lt,we.strategy=ee,we.method=pe,ct(ae)}l=[new Pe(0,0,0,0,function(ae,lt){var pe=65535;for(pe>ae.pending_buf_size-5&&(pe=ae.pending_buf_size-5);;){if(ae.lookahead<=1){if(re(ae),ae.lookahead===0&<===u)return k;if(ae.lookahead===0)break}ae.strstart+=ae.lookahead,ae.lookahead=0;var J=ae.block_start+pe;if((ae.strstart===0||ae.strstart>=J)&&(ae.lookahead=ae.strstart-J,ae.strstart=J,X(ae,!1),ae.strm.avail_out===0))return k;if(ae.strstart-ae.block_start>=ae.w_size-F&&(X(ae,!1),ae.strm.avail_out===0))return k}return ae.insert=0,lt===r?(X(ae,!0),ae.strm.avail_out===0?M:j):(ae.strstart>ae.block_start&&(X(ae,!1),ae.strm.avail_out),k)}),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(ae,lt){return Ue(ae,lt,b,15,8,0)},d.deflateInit2=Ue,d.deflateReset=ct,d.deflateResetKeep=Ge,d.deflateSetHeader=function(ae,lt){return ae&&ae.state?ae.state.wrap!==2?c:(ae.state.gzhead=lt,s):c},d.deflate=function(ae,lt){var pe,J,Y,ee;if(!ae||!ae.state||5<lt||lt<0)return ae?K(ae,c):c;if(J=ae.state,!ae.output||!ae.input&&ae.avail_in!==0||J.status===666&<!==r)return K(ae,ae.avail_out===0?-5:c);if(J.strm=ae,pe=J.last_flush,J.last_flush=lt,J.status===P)if(J.wrap===2)ae.adler=0,te(J,31),te(J,139),te(J,8),J.gzhead?(te(J,(J.gzhead.text?1:0)+(J.gzhead.hcrc?2:0)+(J.gzhead.extra?4:0)+(J.gzhead.name?8:0)+(J.gzhead.comment?16:0)),te(J,255&J.gzhead.time),te(J,J.gzhead.time>>8&255),te(J,J.gzhead.time>>16&255),te(J,J.gzhead.time>>24&255),te(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),te(J,255&J.gzhead.os),J.gzhead.extra&&J.gzhead.extra.length&&(te(J,255&J.gzhead.extra.length),te(J,J.gzhead.extra.length>>8&255)),J.gzhead.hcrc&&(ae.adler=a(ae.adler,J.pending_buf,J.pending,0)),J.gzindex=0,J.status=69):(te(J,0),te(J,0),te(J,0),te(J,0),te(J,0),te(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),te(J,3),J.status=B);else{var fe=b+(J.w_bits-8<<4)<<8;fe|=(2<=J.strategy||J.level<2?0:J.level<6?1:J.level===6?2:3)<<6,J.strstart!==0&&(fe|=32),fe+=31-fe%31,J.status=B,$(J,fe),J.strstart!==0&&($(J,ae.adler>>>16),$(J,65535&ae.adler)),ae.adler=1}if(J.status===69)if(J.gzhead.extra){for(Y=J.pending;J.gzindex<(65535&J.gzhead.extra.length)&&(J.pending!==J.pending_buf_size||(J.gzhead.hcrc&&J.pending>Y&&(ae.adler=a(ae.adler,J.pending_buf,J.pending-Y,Y)),Q(ae),Y=J.pending,J.pending!==J.pending_buf_size));)te(J,255&J.gzhead.extra[J.gzindex]),J.gzindex++;J.gzhead.hcrc&&J.pending>Y&&(ae.adler=a(ae.adler,J.pending_buf,J.pending-Y,Y)),J.gzindex===J.gzhead.extra.length&&(J.gzindex=0,J.status=73)}else J.status=73;if(J.status===73)if(J.gzhead.name){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(ae.adler=a(ae.adler,J.pending_buf,J.pending-Y,Y)),Q(ae),Y=J.pending,J.pending===J.pending_buf_size)){ee=1;break}ee=J.gzindex<J.gzhead.name.length?255&J.gzhead.name.charCodeAt(J.gzindex++):0,te(J,ee)}while(ee!==0);J.gzhead.hcrc&&J.pending>Y&&(ae.adler=a(ae.adler,J.pending_buf,J.pending-Y,Y)),ee===0&&(J.gzindex=0,J.status=91)}else J.status=91;if(J.status===91)if(J.gzhead.comment){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(ae.adler=a(ae.adler,J.pending_buf,J.pending-Y,Y)),Q(ae),Y=J.pending,J.pending===J.pending_buf_size)){ee=1;break}ee=J.gzindex<J.gzhead.comment.length?255&J.gzhead.comment.charCodeAt(J.gzindex++):0,te(J,ee)}while(ee!==0);J.gzhead.hcrc&&J.pending>Y&&(ae.adler=a(ae.adler,J.pending_buf,J.pending-Y,Y)),ee===0&&(J.status=103)}else J.status=103;if(J.status===103&&(J.gzhead.hcrc?(J.pending+2>J.pending_buf_size&&Q(ae),J.pending+2<=J.pending_buf_size&&(te(J,255&ae.adler),te(J,ae.adler>>8&255),ae.adler=0,J.status=B)):J.status=B),J.pending!==0){if(Q(ae),ae.avail_out===0)return J.last_flush=-1,s}else if(ae.avail_in===0&&z(lt)<=z(pe)&<!==r)return K(ae,-5);if(J.status===666&&ae.avail_in!==0)return K(ae,-5);if(ae.avail_in!==0||J.lookahead!==0||lt!==u&&J.status!==666){var we=J.strategy===2?function(Ce,_e){for(var he;;){if(Ce.lookahead===0&&(re(Ce),Ce.lookahead===0)){if(_e===u)return k;break}if(Ce.match_length=0,he=n._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++,he&&(X(Ce,!1),Ce.strm.avail_out===0))return k}return Ce.insert=0,_e===r?(X(Ce,!0),Ce.strm.avail_out===0?M:j):Ce.last_lit&&(X(Ce,!1),Ce.strm.avail_out===0)?k:G}(J,lt):J.strategy===3?function(Ce,_e){for(var he,ye,Le,tt,gt=Ce.window;;){if(Ce.lookahead<=I){if(re(Ce),Ce.lookahead<=I&&_e===u)return k;if(Ce.lookahead===0)break}if(Ce.match_length=0,Ce.lookahead>=O&&0<Ce.strstart&&(ye=gt[Le=Ce.strstart-1])===gt[++Le]&&ye===gt[++Le]&&ye===gt[++Le]){tt=Ce.strstart+I;do;while(ye===gt[++Le]&&ye===gt[++Le]&&ye===gt[++Le]&&ye===gt[++Le]&&ye===gt[++Le]&&ye===gt[++Le]&&ye===gt[++Le]&&ye===gt[++Le]&&Le<tt);Ce.match_length=I-(tt-Le),Ce.match_length>Ce.lookahead&&(Ce.match_length=Ce.lookahead)}if(Ce.match_length>=O?(he=n._tr_tally(Ce,1,Ce.match_length-O),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&&(X(Ce,!1),Ce.strm.avail_out===0))return k}return Ce.insert=0,_e===r?(X(Ce,!0),Ce.strm.avail_out===0?M:j):Ce.last_lit&&(X(Ce,!1),Ce.strm.avail_out===0)?k:G}(J,lt):l[J.level].func(J,lt);if(we!==M&&we!==j||(J.status=666),we===k||we===M)return ae.avail_out===0&&(J.last_flush=-1),s;if(we===G&&(lt===1?n._tr_align(J):lt!==5&&(n._tr_stored_block(J,0,0,!1),lt===3&&(V(J.head),J.lookahead===0&&(J.strstart=0,J.block_start=0,J.insert=0))),Q(ae),ae.avail_out===0))return J.last_flush=-1,s}return lt!==r?s:J.wrap<=0?1:(J.wrap===2?(te(J,255&ae.adler),te(J,ae.adler>>8&255),te(J,ae.adler>>16&255),te(J,ae.adler>>24&255),te(J,255&ae.total_in),te(J,ae.total_in>>8&255),te(J,ae.total_in>>16&255),te(J,ae.total_in>>24&255)):($(J,ae.adler>>>16),$(J,65535&ae.adler)),Q(ae),0<J.wrap&&(J.wrap=-J.wrap),J.pending!==0?s:1)},d.deflateEnd=function(ae){var lt;return ae&&ae.state?(lt=ae.state.status)!==P&<!==69&<!==73&<!==91&<!==103&<!==B&<!==666?K(ae,c):(ae.state=null,lt===B?K(ae,-3):s):c},d.deflateSetDictionary=function(ae,lt){var pe,J,Y,ee,fe,we,Ce,_e,he=lt.length;if(!ae||!ae.state)return c;if((ee=(pe=ae.state).wrap)===2||ee===1&&pe.status!==P||pe.lookahead)return c;for(ee===1&&(ae.adler=t(ae.adler,lt,he,0)),pe.wrap=0,he>=pe.w_size&&(ee===0&&(V(pe.head),pe.strstart=0,pe.block_start=0,pe.insert=0),_e=new o.Buf8(pe.w_size),o.arraySet(_e,lt,he-pe.w_size,pe.w_size,0),lt=_e,he=pe.w_size),fe=ae.avail_in,we=ae.next_in,Ce=ae.input,ae.avail_in=he,ae.next_in=0,ae.input=lt,re(pe);pe.lookahead>=O;){for(J=pe.strstart,Y=pe.lookahead-(O-1);pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[J+O-1])&pe.hash_mask,pe.prev[J&pe.w_mask]=pe.head[pe.ins_h],pe.head[pe.ins_h]=J,J++,--Y;);pe.strstart=J,pe.lookahead=O-1,re(pe)}return pe.strstart+=pe.lookahead,pe.block_start=pe.strstart,pe.insert=pe.lookahead,pe.lookahead=0,pe.match_length=pe.prev_length=O-1,pe.match_available=0,ae.next_in=we,ae.input=Ce,ae.avail_in=fe,pe.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,A,b,w,E,C,_,T,S,O,I,F,P,B,k,G;n=l.state,t=l.next_in,k=l.input,a=t+(l.avail_in-5),e=l.next_out,G=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,A=n.window,b=n.hold,w=n.bits,E=n.lencode,C=n.distcode,_=(1<<n.lenbits)-1,T=(1<<n.distbits)-1;e:do{w<15&&(b+=k[t++]<<w,w+=8,b+=k[t++]<<w,w+=8),S=E[b&_];t:for(;;){if(b>>>=O=S>>>24,w-=O,(O=S>>>16&255)===0)G[e++]=65535&S;else{if(!(16&O)){if((64&O)==0){S=E[(65535&S)+(b&(1<<O)-1)];continue t}if(32&O){n.mode=12;break e}l.msg="invalid literal/length code",n.mode=30;break e}I=65535&S,(O&=15)&&(w<O&&(b+=k[t++]<<w,w+=8),I+=b&(1<<O)-1,b>>>=O,w-=O),w<15&&(b+=k[t++]<<w,w+=8,b+=k[t++]<<w,w+=8),S=C[b&T];r:for(;;){if(b>>>=O=S>>>24,w-=O,!(16&(O=S>>>16&255))){if((64&O)==0){S=C[(65535&S)+(b&(1<<O)-1)];continue r}l.msg="invalid distance code",n.mode=30;break e}if(F=65535&S,w<(O&=15)&&(b+=k[t++]<<w,(w+=8)<O&&(b+=k[t++]<<w,w+=8)),s<(F+=b&(1<<O)-1)){l.msg="invalid distance too far back",n.mode=30;break e}if(b>>>=O,w-=O,(O=e-u)<F){if(h<(O=F-O)&&n.sane){l.msg="invalid distance too far back",n.mode=30;break e}if(B=A,(P=0)===g){if(P+=c-O,O<I){for(I-=O;G[e++]=A[P++],--O;);P=e-F,B=G}}else if(g<O){if(P+=c+g-O,(O-=g)<I){for(I-=O;G[e++]=A[P++],--O;);if(P=0,g<I){for(I-=O=g;G[e++]=A[P++],--O;);P=e-F,B=G}}}else if(P+=g-O,O<I){for(I-=O;G[e++]=A[P++],--O;);P=e-F,B=G}for(;2<I;)G[e++]=B[P++],G[e++]=B[P++],G[e++]=B[P++],I-=3;I&&(G[e++]=B[P++],1<I&&(G[e++]=B[P++]))}else{for(P=e-F;G[e++]=G[P++],G[e++]=G[P++],G[e++]=G[P++],2<(I-=3););I&&(G[e++]=G[P++],1<I&&(G[e++]=G[P++]))}break}}break}}while(t<a&&e<r);t-=I=w>>3,b&=(1<<(w-=I<<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 A(P){return(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<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(P){var B;return P&&P.state?(B=P.state,P.total_in=P.total_out=B.total=0,P.msg="",B.wrap&&(P.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 E(P){var B;return P&&P.state?((B=P.state).wsize=0,B.whave=0,B.wnext=0,w(P)):s}function C(P,B){var k,G;return P&&P.state?(G=P.state,B<0?(k=0,B=-B):(k=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?s:(G.window!==null&&G.wbits!==B&&(G.window=null),G.wrap=k,G.wbits=B,E(P))):s}function _(P,B){var k,G;return P?(G=new b,(P.state=G).window=null,(k=C(P,B))!==r&&(P.state=null),k):s}var T,S,O=!0;function I(P){if(O){var B;for(T=new l.Buf32(512),S=new l.Buf32(32),B=0;B<144;)P.lens[B++]=8;for(;B<256;)P.lens[B++]=9;for(;B<280;)P.lens[B++]=7;for(;B<288;)P.lens[B++]=8;for(a(e,P.lens,0,288,T,0,P.work,{bits:9}),B=0;B<32;)P.lens[B++]=5;a(u,P.lens,0,32,S,0,P.work,{bits:5}),O=!1}P.lencode=T,P.lenbits=9,P.distcode=S,P.distbits=5}function F(P,B,k,G){var M,j=P.state;return j.window===null&&(j.wsize=1<<j.wbits,j.wnext=0,j.whave=0,j.window=new l.Buf8(j.wsize)),G>=j.wsize?(l.arraySet(j.window,B,k-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):(G<(M=j.wsize-j.wnext)&&(M=G),l.arraySet(j.window,B,k-G,M,j.wnext),(G-=M)?(l.arraySet(j.window,B,k-G,G,0),j.wnext=G,j.whave=j.wsize):(j.wnext+=M,j.wnext===j.wsize&&(j.wnext=0),j.whave<j.wsize&&(j.whave+=M))),0}d.inflateReset=E,d.inflateReset2=C,d.inflateResetKeep=w,d.inflateInit=function(P){return _(P,15)},d.inflateInit2=_,d.inflate=function(P,B){var k,G,M,j,K,z,V,Q,X,te,$,le,re,Se,Re,Pe,Je,Ge,ct,Ue,ae,lt,pe,J,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(!P||!P.state||!P.output||!P.input&&P.avail_in!==0)return s;(k=P.state).mode===12&&(k.mode=13),K=P.next_out,M=P.output,V=P.avail_out,j=P.next_in,G=P.input,z=P.avail_in,Q=k.hold,X=k.bits,te=z,$=V,lt=r;e:for(;;)switch(k.mode){case c:if(k.wrap===0){k.mode=13;break}for(;X<16;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}if(2&k.wrap&&Q===35615){ee[k.check=0]=255&Q,ee[1]=Q>>>8&255,k.check=n(k.check,ee,2,0),X=Q=0,k.mode=2;break}if(k.flags=0,k.head&&(k.head.done=!1),!(1&k.wrap)||(((255&Q)<<8)+(Q>>8))%31){P.msg="incorrect header check",k.mode=30;break}if((15&Q)!=8){P.msg="unknown compression method",k.mode=30;break}if(X-=4,ae=8+(15&(Q>>>=4)),k.wbits===0)k.wbits=ae;else if(ae>k.wbits){P.msg="invalid window size",k.mode=30;break}k.dmax=1<<ae,P.adler=k.check=1,k.mode=512&Q?10:12,X=Q=0;break;case 2:for(;X<16;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}if(k.flags=Q,(255&k.flags)!=8){P.msg="unknown compression method",k.mode=30;break}if(57344&k.flags){P.msg="unknown header flags set",k.mode=30;break}k.head&&(k.head.text=Q>>8&1),512&k.flags&&(ee[0]=255&Q,ee[1]=Q>>>8&255,k.check=n(k.check,ee,2,0)),X=Q=0,k.mode=3;case 3:for(;X<32;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}k.head&&(k.head.time=Q),512&k.flags&&(ee[0]=255&Q,ee[1]=Q>>>8&255,ee[2]=Q>>>16&255,ee[3]=Q>>>24&255,k.check=n(k.check,ee,4,0)),X=Q=0,k.mode=4;case 4:for(;X<16;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}k.head&&(k.head.xflags=255&Q,k.head.os=Q>>8),512&k.flags&&(ee[0]=255&Q,ee[1]=Q>>>8&255,k.check=n(k.check,ee,2,0)),X=Q=0,k.mode=5;case 5:if(1024&k.flags){for(;X<16;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}k.length=Q,k.head&&(k.head.extra_len=Q),512&k.flags&&(ee[0]=255&Q,ee[1]=Q>>>8&255,k.check=n(k.check,ee,2,0)),X=Q=0}else k.head&&(k.head.extra=null);k.mode=6;case 6:if(1024&k.flags&&(z<(le=k.length)&&(le=z),le&&(k.head&&(ae=k.head.extra_len-k.length,k.head.extra||(k.head.extra=new Array(k.head.extra_len)),l.arraySet(k.head.extra,G,j,le,ae)),512&k.flags&&(k.check=n(k.check,G,le,j)),z-=le,j+=le,k.length-=le),k.length))break e;k.length=0,k.mode=7;case 7:if(2048&k.flags){if(z===0)break e;for(le=0;ae=G[j+le++],k.head&&ae&&k.length<65536&&(k.head.name+=String.fromCharCode(ae)),ae&&le<z;);if(512&k.flags&&(k.check=n(k.check,G,le,j)),z-=le,j+=le,ae)break e}else k.head&&(k.head.name=null);k.length=0,k.mode=8;case 8:if(4096&k.flags){if(z===0)break e;for(le=0;ae=G[j+le++],k.head&&ae&&k.length<65536&&(k.head.comment+=String.fromCharCode(ae)),ae&&le<z;);if(512&k.flags&&(k.check=n(k.check,G,le,j)),z-=le,j+=le,ae)break e}else k.head&&(k.head.comment=null);k.mode=9;case 9:if(512&k.flags){for(;X<16;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}if(Q!==(65535&k.check)){P.msg="header crc mismatch",k.mode=30;break}X=Q=0}k.head&&(k.head.hcrc=k.flags>>9&1,k.head.done=!0),P.adler=k.check=0,k.mode=12;break;case 10:for(;X<32;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}P.adler=k.check=A(Q),X=Q=0,k.mode=11;case 11:if(k.havedict===0)return P.next_out=K,P.avail_out=V,P.next_in=j,P.avail_in=z,k.hold=Q,k.bits=X,2;P.adler=k.check=1,k.mode=12;case 12:if(B===5||B===6)break e;case 13:if(k.last){Q>>>=7&X,X-=7&X,k.mode=27;break}for(;X<3;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}switch(k.last=1&Q,X-=1,3&(Q>>>=1)){case 0:k.mode=14;break;case 1:if(I(k),k.mode=20,B!==6)break;Q>>>=2,X-=2;break e;case 2:k.mode=17;break;case 3:P.msg="invalid block type",k.mode=30}Q>>>=2,X-=2;break;case 14:for(Q>>>=7&X,X-=7&X;X<32;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}if((65535&Q)!=(Q>>>16^65535)){P.msg="invalid stored block lengths",k.mode=30;break}if(k.length=65535&Q,X=Q=0,k.mode=15,B===6)break e;case 15:k.mode=16;case 16:if(le=k.length){if(z<le&&(le=z),V<le&&(le=V),le===0)break e;l.arraySet(M,G,j,le,K),z-=le,j+=le,V-=le,K+=le,k.length-=le;break}k.mode=12;break;case 17:for(;X<14;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}if(k.nlen=257+(31&Q),Q>>>=5,X-=5,k.ndist=1+(31&Q),Q>>>=5,X-=5,k.ncode=4+(15&Q),Q>>>=4,X-=4,286<k.nlen||30<k.ndist){P.msg="too many length or distance symbols",k.mode=30;break}k.have=0,k.mode=18;case 18:for(;k.have<k.ncode;){for(;X<3;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}k.lens[fe[k.have++]]=7&Q,Q>>>=3,X-=3}for(;k.have<19;)k.lens[fe[k.have++]]=0;if(k.lencode=k.lendyn,k.lenbits=7,pe={bits:k.lenbits},lt=a(0,k.lens,0,19,k.lencode,0,k.work,pe),k.lenbits=pe.bits,lt){P.msg="invalid code lengths set",k.mode=30;break}k.have=0,k.mode=19;case 19:for(;k.have<k.nlen+k.ndist;){for(;Pe=(Y=k.lencode[Q&(1<<k.lenbits)-1])>>>16&255,Je=65535&Y,!((Re=Y>>>24)<=X);){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}if(Je<16)Q>>>=Re,X-=Re,k.lens[k.have++]=Je;else{if(Je===16){for(J=Re+2;X<J;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}if(Q>>>=Re,X-=Re,k.have===0){P.msg="invalid bit length repeat",k.mode=30;break}ae=k.lens[k.have-1],le=3+(3&Q),Q>>>=2,X-=2}else if(Je===17){for(J=Re+3;X<J;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}X-=Re,ae=0,le=3+(7&(Q>>>=Re)),Q>>>=3,X-=3}else{for(J=Re+7;X<J;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}X-=Re,ae=0,le=11+(127&(Q>>>=Re)),Q>>>=7,X-=7}if(k.have+le>k.nlen+k.ndist){P.msg="invalid bit length repeat",k.mode=30;break}for(;le--;)k.lens[k.have++]=ae}}if(k.mode===30)break;if(k.lens[256]===0){P.msg="invalid code -- missing end-of-block",k.mode=30;break}if(k.lenbits=9,pe={bits:k.lenbits},lt=a(e,k.lens,0,k.nlen,k.lencode,0,k.work,pe),k.lenbits=pe.bits,lt){P.msg="invalid literal/lengths set",k.mode=30;break}if(k.distbits=6,k.distcode=k.distdyn,pe={bits:k.distbits},lt=a(u,k.lens,k.nlen,k.ndist,k.distcode,0,k.work,pe),k.distbits=pe.bits,lt){P.msg="invalid distances set",k.mode=30;break}if(k.mode=20,B===6)break e;case 20:k.mode=21;case 21:if(6<=z&&258<=V){P.next_out=K,P.avail_out=V,P.next_in=j,P.avail_in=z,k.hold=Q,k.bits=X,t(P,$),K=P.next_out,M=P.output,V=P.avail_out,j=P.next_in,G=P.input,z=P.avail_in,Q=k.hold,X=k.bits,k.mode===12&&(k.back=-1);break}for(k.back=0;Pe=(Y=k.lencode[Q&(1<<k.lenbits)-1])>>>16&255,Je=65535&Y,!((Re=Y>>>24)<=X);){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}if(Pe&&(240&Pe)==0){for(Ge=Re,ct=Pe,Ue=Je;Pe=(Y=k.lencode[Ue+((Q&(1<<Ge+ct)-1)>>Ge)])>>>16&255,Je=65535&Y,!(Ge+(Re=Y>>>24)<=X);){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}Q>>>=Ge,X-=Ge,k.back+=Ge}if(Q>>>=Re,X-=Re,k.back+=Re,k.length=Je,Pe===0){k.mode=26;break}if(32&Pe){k.back=-1,k.mode=12;break}if(64&Pe){P.msg="invalid literal/length code",k.mode=30;break}k.extra=15&Pe,k.mode=22;case 22:if(k.extra){for(J=k.extra;X<J;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}k.length+=Q&(1<<k.extra)-1,Q>>>=k.extra,X-=k.extra,k.back+=k.extra}k.was=k.length,k.mode=23;case 23:for(;Pe=(Y=k.distcode[Q&(1<<k.distbits)-1])>>>16&255,Je=65535&Y,!((Re=Y>>>24)<=X);){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}if((240&Pe)==0){for(Ge=Re,ct=Pe,Ue=Je;Pe=(Y=k.distcode[Ue+((Q&(1<<Ge+ct)-1)>>Ge)])>>>16&255,Je=65535&Y,!(Ge+(Re=Y>>>24)<=X);){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}Q>>>=Ge,X-=Ge,k.back+=Ge}if(Q>>>=Re,X-=Re,k.back+=Re,64&Pe){P.msg="invalid distance code",k.mode=30;break}k.offset=Je,k.extra=15&Pe,k.mode=24;case 24:if(k.extra){for(J=k.extra;X<J;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}k.offset+=Q&(1<<k.extra)-1,Q>>>=k.extra,X-=k.extra,k.back+=k.extra}if(k.offset>k.dmax){P.msg="invalid distance too far back",k.mode=30;break}k.mode=25;case 25:if(V===0)break e;if(le=$-V,k.offset>le){if((le=k.offset-le)>k.whave&&k.sane){P.msg="invalid distance too far back",k.mode=30;break}re=le>k.wnext?(le-=k.wnext,k.wsize-le):k.wnext-le,le>k.length&&(le=k.length),Se=k.window}else Se=M,re=K-k.offset,le=k.length;for(V<le&&(le=V),V-=le,k.length-=le;M[K++]=Se[re++],--le;);k.length===0&&(k.mode=21);break;case 26:if(V===0)break e;M[K++]=k.length,V--,k.mode=21;break;case 27:if(k.wrap){for(;X<32;){if(z===0)break e;z--,Q|=G[j++]<<X,X+=8}if($-=V,P.total_out+=$,k.total+=$,$&&(P.adler=k.check=k.flags?n(k.check,M,$,K-$):o(k.check,M,$,K-$)),$=V,(k.flags?Q:A(Q))!==k.check){P.msg="incorrect data check",k.mode=30;break}X=Q=0}k.mode=28;case 28:if(k.wrap&&k.flags){for(;X<32;){if(z===0)break e;z--,Q+=G[j++]<<X,X+=8}if(Q!==(4294967295&k.total)){P.msg="incorrect length check",k.mode=30;break}X=Q=0}k.mode=29;case 29:lt=1;break e;case 30:lt=-3;break e;case 31:return-4;case 32:default:return s}return P.next_out=K,P.avail_out=V,P.next_in=j,P.avail_in=z,k.hold=Q,k.bits=X,(k.wsize||$!==P.avail_out&&k.mode<30&&(k.mode<27||B!==4))&&F(P,P.output,P.next_out,$-P.avail_out)?(k.mode=31,-4):(te-=P.avail_in,$-=P.avail_out,P.total_in+=te,P.total_out+=$,k.total+=$,k.wrap&&$&&(P.adler=k.check=k.flags?n(k.check,M,$,P.next_out-$):o(k.check,M,$,P.next_out-$)),P.data_type=k.bits+(k.last?64:0)+(k.mode===12?128:0)+(k.mode===20||k.mode===15?256:0),(te==0&&$===0||B===4)&<===r&&(lt=-5),lt)},d.inflateEnd=function(P){if(!P||!P.state)return s;var B=P.state;return B.window&&(B.window=null),P.state=null,r},d.inflateGetHeader=function(P,B){var k;return P&&P.state?(2&(k=P.state).wrap)==0?s:((k.head=B).done=!1,r):s},d.inflateSetDictionary=function(P,B){var k,G=B.length;return P&&P.state?(k=P.state).wrap!==0&&k.mode!==11?s:k.mode===11&&o(1,B,G,0)!==k.check?-3:F(P,B,G,G)?(k.mode=31,-4):(k.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,A){var b,w,E,C,_,T,S,O,I,F=A.bits,P=0,B=0,k=0,G=0,M=0,j=0,K=0,z=0,V=0,Q=0,X=null,te=0,$=new l.Buf16(16),le=new l.Buf16(16),re=null,Se=0;for(P=0;P<=15;P++)$[P]=0;for(B=0;B<s;B++)$[u[r+B]]++;for(M=F,G=15;1<=G&&$[G]===0;G--);if(G<M&&(M=G),G===0)return c[h++]=20971520,c[h++]=20971520,A.bits=1,0;for(k=1;k<G&&$[k]===0;k++);for(M<k&&(M=k),P=z=1;P<=15;P++)if(z<<=1,(z-=$[P])<0)return-1;if(0<z&&(e===0||G!==1))return-1;for(le[1]=0,P=1;P<15;P++)le[P+1]=le[P]+$[P];for(B=0;B<s;B++)u[r+B]!==0&&(g[le[u[r+B]]++]=B);if(T=e===0?(X=re=g,19):e===1?(X=o,te-=257,re=n,Se-=257,256):(X=t,re=a,-1),P=k,_=h,K=B=Q=0,E=-1,C=(V=1<<(j=M))-1,e===1&&852<V||e===2&&592<V)return 1;for(;;){for(S=P-K,I=g[B]<T?(O=0,g[B]):g[B]>T?(O=re[Se+g[B]],X[te+g[B]]):(O=96,0),b=1<<P-K,k=w=1<<j;c[_+(Q>>K)+(w-=b)]=S<<24|O<<16|I|0,w!==0;);for(b=1<<P-1;Q&b;)b>>=1;if(b!==0?(Q&=b-1,Q+=b):Q=0,B++,--$[P]==0){if(P===G)break;P=u[r+g[B]]}if(M<P&&(Q&C)!==E){for(K===0&&(K=M),_+=k,z=1<<(j=P-K);j+K<G&&!((z-=$[j+K])<=0);)j++,z<<=1;if(V+=1<<j,e===1&&852<V||e===2&&592<V)return 1;c[E=Q&C]=M<<24|j<<16|_-h|0}}return Q!==0&&(c[_+Q]=P-K<<24|64<<16|0),A.bits=M,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,A=16,b=7,w=256,E=16,C=17,_=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],S=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F=new Array(2*(r+2));t(F);var P=new Array(2*s);t(P);var B=new Array(512);t(B);var k=new Array(256);t(k);var G=new Array(e);t(G);var M,j,K,z=new Array(s);function V(Y,ee,fe,we,Ce){this.static_tree=Y,this.extra_bits=ee,this.extra_base=fe,this.elems=we,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 X(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>A-fe?(Y.bi_buf|=ee<<Y.bi_valid&65535,te(Y,Y.bi_buf),Y.bi_buf=ee>>A-Y.bi_valid,Y.bi_valid+=fe-A):(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 we,Ce,_e=new Array(g+1),he=0;for(we=1;we<=g;we++)_e[we]=he=he+fe[we-1]<<1;for(Ce=0;Ce<=ee;Ce++){var ye=Y[2*Ce+1];ye!==0&&(Y[2*Ce]=re(_e[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,we){var Ce=2*ee,_e=2*fe;return Y[Ce]<Y[_e]||Y[Ce]===Y[_e]&&we[ee]<=we[fe]}function Ge(Y,ee,fe){for(var we=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,we,Y.heap[Ce],Y.depth));)Y.heap[fe]=Y.heap[Ce],fe=Ce,Ce<<=1;Y.heap[fe]=we}function ct(Y,ee,fe){var we,Ce,_e,he,ye=0;if(Y.last_lit!==0)for(;we=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++,we===0?le(Y,Ce,ee):(le(Y,(_e=k[Ce])+u+1,ee),(he=T[_e])!==0&&$(Y,Ce-=G[_e],he),le(Y,_e=X(--we),fe),(he=S[_e])!==0&&$(Y,we-=z[_e],he)),ye<Y.last_lit;);le(Y,w,ee)}function Ue(Y,ee){var fe,we,Ce,_e=ee.dyn_tree,he=ee.stat_desc.static_tree,ye=ee.stat_desc.has_stree,Le=ee.stat_desc.elems,tt=-1;for(Y.heap_len=0,Y.heap_max=h,fe=0;fe<Le;fe++)_e[2*fe]!==0?(Y.heap[++Y.heap_len]=tt=fe,Y.depth[fe]=0):_e[2*fe+1]=0;for(;Y.heap_len<2;)_e[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--)Ge(Y,_e,fe);for(Ce=Le;fe=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],Ge(Y,_e,1),we=Y.heap[1],Y.heap[--Y.heap_max]=fe,Y.heap[--Y.heap_max]=we,_e[2*Ce]=_e[2*fe]+_e[2*we],Y.depth[Ce]=(Y.depth[fe]>=Y.depth[we]?Y.depth[fe]:Y.depth[we])+1,_e[2*fe+1]=_e[2*we+1]=Ce,Y.heap[1]=Ce++,Ge(Y,_e,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(gt,at){var Fe,mt,et,St,jt,Mt,Ot=at.dyn_tree,Bt=at.max_code,Ke=at.stat_desc.static_tree,de=at.stat_desc.has_stree,se=at.stat_desc.extra_bits,ut=at.stat_desc.extra_base,qe=at.stat_desc.max_length,me=0;for(St=0;St<=g;St++)gt.bl_count[St]=0;for(Ot[2*gt.heap[gt.heap_max]+1]=0,Fe=gt.heap_max+1;Fe<h;Fe++)qe<(St=Ot[2*Ot[2*(mt=gt.heap[Fe])+1]+1]+1)&&(St=qe,me++),Ot[2*mt+1]=St,Bt<mt||(gt.bl_count[St]++,jt=0,ut<=mt&&(jt=se[mt-ut]),Mt=Ot[2*mt],gt.opt_len+=Mt*(St+jt),de&&(gt.static_len+=Mt*(Ke[2*mt+1]+jt)));if(me!==0){do{for(St=qe-1;gt.bl_count[St]===0;)St--;gt.bl_count[St]--,gt.bl_count[St+1]+=2,gt.bl_count[qe]--,me-=2}while(0<me);for(St=qe;St!==0;St--)for(mt=gt.bl_count[St];mt!==0;)Bt<(et=gt.heap[--Fe])||(Ot[2*et+1]!==St&&(gt.opt_len+=(St-Ot[2*et+1])*Ot[2*et],Ot[2*et+1]=St),mt--)}}(Y,ee),Se(_e,tt,Y.bl_count)}function ae(Y,ee,fe){var we,Ce,_e=-1,he=ee[1],ye=0,Le=7,tt=4;for(he===0&&(Le=138,tt=3),ee[2*(fe+1)+1]=65535,we=0;we<=fe;we++)Ce=he,he=ee[2*(we+1)+1],++ye<Le&&Ce===he||(ye<tt?Y.bl_tree[2*Ce]+=ye:Ce!==0?(Ce!==_e&&Y.bl_tree[2*Ce]++,Y.bl_tree[2*E]++):ye<=10?Y.bl_tree[2*C]++:Y.bl_tree[2*_]++,_e=Ce,tt=(ye=0)===he?(Le=138,3):Ce===he?(Le=6,3):(Le=7,4))}function lt(Y,ee,fe){var we,Ce,_e=-1,he=ee[1],ye=0,Le=7,tt=4;for(he===0&&(Le=138,tt=3),we=0;we<=fe;we++)if(Ce=he,he=ee[2*(we+1)+1],!(++ye<Le&&Ce===he)){if(ye<tt)for(;le(Y,Ce,Y.bl_tree),--ye!=0;);else Ce!==0?(Ce!==_e&&(le(Y,Ce,Y.bl_tree),ye--),le(Y,E,Y.bl_tree),$(Y,ye-3,2)):ye<=10?(le(Y,C,Y.bl_tree),$(Y,ye-3,3)):(le(Y,_,Y.bl_tree),$(Y,ye-11,7));_e=Ce,tt=(ye=0)===he?(Le=138,3):Ce===he?(Le=6,3):(Le=7,4)}}t(z);var pe=!1;function J(Y,ee,fe,we){$(Y,(a<<1)+(we?1:0),3),function(Ce,_e,he,ye){Pe(Ce),ye&&(te(Ce,he),te(Ce,~he)),l.arraySet(Ce.pending_buf,Ce.window,_e,he,Ce.pending),Ce.pending+=he}(Y,ee,fe,!0)}d._tr_init=function(Y){pe||(function(){var ee,fe,we,Ce,_e,he=new Array(g+1);for(Ce=we=0;Ce<e-1;Ce++)for(G[Ce]=we,ee=0;ee<1<<T[Ce];ee++)k[we++]=Ce;for(k[we-1]=Ce,Ce=_e=0;Ce<16;Ce++)for(z[Ce]=_e,ee=0;ee<1<<S[Ce];ee++)B[_e++]=Ce;for(_e>>=7;Ce<s;Ce++)for(z[Ce]=_e<<7,ee=0;ee<1<<S[Ce]-7;ee++)B[256+_e++]=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++)P[2*ee+1]=5,P[2*ee]=re(ee,5);M=new V(F,T,u+1,r,g),j=new V(P,S,0,s,g),K=new V(new Array(0),O,0,c,b)}(),pe=!0),Y.l_desc=new Q(Y.dyn_ltree,M),Y.d_desc=new Q(Y.dyn_dtree,j),Y.bl_desc=new Q(Y.bl_tree,K),Y.bi_buf=0,Y.bi_valid=0,Re(Y)},d._tr_stored_block=J,d._tr_flush_block=function(Y,ee,fe,we){var Ce,_e,he=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(ye){var Le,tt=4093624447;for(Le=0;Le<=31;Le++,tt>>>=1)if(1&tt&&ye.dyn_ltree[2*Le]!==0)return o;if(ye.dyn_ltree[18]!==0||ye.dyn_ltree[20]!==0||ye.dyn_ltree[26]!==0)return n;for(Le=32;Le<u;Le++)if(ye.dyn_ltree[2*Le]!==0)return n;return o}(Y)),Ue(Y,Y.l_desc),Ue(Y,Y.d_desc),he=function(ye){var Le;for(ae(ye,ye.dyn_ltree,ye.l_desc.max_code),ae(ye,ye.dyn_dtree,ye.d_desc.max_code),Ue(ye,ye.bl_desc),Le=c-1;3<=Le&&ye.bl_tree[2*I[Le]+1]===0;Le--);return ye.opt_len+=3*(Le+1)+5+5+4,Le}(Y),Ce=Y.opt_len+3+7>>>3,(_e=Y.static_len+3+7>>>3)<=Ce&&(Ce=_e)):Ce=_e=fe+5,fe+4<=Ce&&ee!==-1?J(Y,ee,fe,we):Y.strategy===4||_e===Ce?($(Y,2+(we?1:0),3),ct(Y,F,P)):($(Y,4+(we?1:0),3),function(ye,Le,tt,gt){var at;for($(ye,Le-257,5),$(ye,tt-1,5),$(ye,gt-4,4),at=0;at<gt;at++)$(ye,ye.bl_tree[2*I[at]+1],3);lt(ye,ye.dyn_ltree,Le-1),lt(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),we&&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*(k[fe]+u+1)]++,Y.dyn_dtree[2*X(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(E){x.nextTick(function(){b(E)})}:function(){if(o.postMessage&&!o.importScripts){var E=!0,C=o.onmessage;return o.onmessage=function(){E=!1},o.postMessage("","*"),o.onmessage=C,E}}()?(u="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",w,!1):o.attachEvent("onmessage",w),function(E){o.postMessage(u+E,"*")}):o.MessageChannel?((e=new MessageChannel).port1.onmessage=function(E){b(E.data)},function(E){e.port2.postMessage(E)}):h&&"onreadystatechange"in h.createElement("script")?(a=h.documentElement,function(E){var C=h.createElement("script");C.onreadystatechange=function(){b(E),C.onreadystatechange=null,a.removeChild(C),C=null},a.appendChild(C)}):function(E){setTimeout(b,0,E)},g.setImmediate=function(E){typeof E!="function"&&(E=new Function(""+E));for(var C=new Array(arguments.length-1),_=0;_<C.length;_++)C[_]=arguments[_+1];var T={callback:E,args:C};return s[r]=T,t(r),r++},g.clearImmediate=A}function A(E){delete s[E]}function b(E){if(c)setTimeout(b,0,E);else{var C=s[E];if(C){c=!0;try{!function(_){var T=_.callback,S=_.args;switch(S.length){case 0:T();break;case 1:T(S[0]);break;case 2:T(S[0],S[1]);break;case 3:T(S[0],S[1],S[2]);break;default:T.apply(n,S)}}(C)}finally{A(E),c=!1}}}}function w(E){E.source===o&&typeof E.data=="string"&&E.data.indexOf(u)===0&&b(+E.data.slice(u.length))}}(typeof self=="undefined"?l===void 0?this:l:self)}).call(this,typeof p!="undefined"?p:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}).call(this,i("HDXh").Buffer,i("yLpj"),i("Q2Ig"))},xRUu:function(R,D,i){i("hJvP"),i("hFmY"),i("sAZ8")},xSIq:function(R,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(R,D){var i={axisPointer:1,tooltip:1,brush:1};function y(p,x,v){var m=x.getComponentByElement(p.topTarget),f=m&&m.coordinateSystem;return m&&m!==v&&!i[m.mainType]&&f&&f.model!==v}D.onIrrelevantElement=y},xTNl:function(R,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]};R.exports=y},xYSL:function(R,D){function i(y,p){return y.has(p)}R.exports=i},xb2K:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="RedoOutlined";var n=v.forwardRef(o);D.default=n},xiyX:function(R,D,i){var y=i("bYtY"),p=i("bLfw"),x=i("nkfE"),v=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,v),x("single",m,d,f);var l=m;R.exports=l},xlC8:function(R,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(p,x,v,m){for(var f=p&65535|0,d=p>>>16&65535|0,l=0;v!==0;){l=v>2e3?2e3:v,v-=l;do f=f+x[m++]|0,d=d+f|0;while(--l);f%=65521,d%=65521}return f|d<<16|0}},xvlK:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="PlusOutlined";var d=D.a=p.forwardRef(f)},xzDV:function(R,D,i){},"y+Vt":function(R,D,i){var y=i("Gev7"),p=i("bYtY"),x=i("IMiH"),v=i("2DNl"),m=i("3C/r"),f=m.prototype.getCanvasPattern,d=Math.abs,l=new x(!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,A=c&&!!h.colorStops,b=s&&!!g.colorStops,w=c&&!!h.image,E=s&&!!g.image;if(u.bind(a,this,e),this.setTransform(a),this.__dirty){var C;A&&(C=C||this.getBoundingRect(),this._fillGradient=u.getGradient(a,h,C)),b&&(C=C||this.getBoundingRect(),this._strokeGradient=u.getGradient(a,g,C))}A?a.fillStyle=this._fillGradient:w&&(a.fillStyle=f.call(h,a)),b?a.strokeStyle=this._strokeGradient:E&&(a.strokeStyle=f.call(g,a));var _=u.lineDash,T=u.lineDashOffset,S=!!a.setLineDash,O=this.getGlobalScale();if(r.setScale(O[0],O[1],this.segmentIgnoreThreshold),this.__dirtyPath||_&&!S&&s?(r.beginPath(a),_&&!S&&(r.setLineDash(_),r.setLineDashOffset(T)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(a.beginPath(),this.path.rebuildPath(a)),c)if(u.fillOpacity!=null){var I=a.globalAlpha;a.globalAlpha=u.fillOpacity*u.opacity,r.fill(a),a.globalAlpha=I}else r.fill(a);if(_&&S&&(a.setLineDash(_),a.lineDashOffset=T),s)if(u.strokeOpacity!=null){var I=a.globalAlpha;a.globalAlpha=u.strokeOpacity*u.opacity,r.stroke(a),a.globalAlpha=I}else r.stroke(a);_&&S&&a.setLineDash([]),u.text!=null&&(this.restoreTransform(a),this.drawRectText(a,this.getBoundingRect()))},buildPath:function(a,e,u){},createPathProxy:function(){this.path=new x},getBoundingRect:function(){var a=this._rect,e=this.style,u=!a;if(u){var r=this.path;r||(r=this.path=new x),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)),v.containStroke(c,h/g,a,e)))return!0}if(s.hasFill())return v.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;R.exports=n},"y+lR":function(R,D,i){var y=i("bYtY"),p=i("mFDi"),x=i("z35g");function v(f){x.call(this,f)}v.prototype={constructor:v,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(v,x);var m=v;R.exports=m},"y0+3":function(R,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},x={cssFloat:1,styleFloat:1,float:1};function v(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=v(u);return r=x[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=x[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 v(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(R,D,i){var y=i("ljhN");function p(x,v){for(var m=x.length;m--;)if(y(x[m][0],v))return m;return-1}R.exports=p},y23F:function(R,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(v){for(var m=v.target;m&&!m.draggable;)m=m.parent;m&&(this._draggingTarget=m,m.dragging=!0,this._x=v.offsetX,this._y=v.offsetY,this.dispatchToElement(y(m,v),"dragstart",v.event))},_drag:function(v){var m=this._draggingTarget;if(m){var f=v.offsetX,d=v.offsetY,l=f-this._x,o=d-this._y;this._x=f,this._y=d,m.drift(l,o,v),this.dispatchToElement(y(m,v),"drag",v.event);var n=this.findHover(f,d,m).target,t=this._dropTarget;this._dropTarget=n,m!==n&&(t&&n!==t&&this.dispatchToElement(y(t,v),"dragleave",v.event),n&&n!==t&&this.dispatchToElement(y(n,v),"dragenter",v.event))}},_dragEnd:function(v){var m=this._draggingTarget;m&&(m.dragging=!1),this.dispatchToElement(y(m,v),"dragend",v.event),this._dropTarget&&this.dispatchToElement(y(this._dropTarget,v),"drop",v.event),this._draggingTarget=null,this._dropTarget=null}};function y(x,v){return{target:x,topTarget:v&&v.topTarget}}var p=i;R.exports=p},y2l5:function(R,D,i){var y=i("MwEJ"),p=i("T4UG"),x=p.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(v,m){return y(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var v=this.option.progressive;return v==null?this.option.large?5e3:this.get("progressive"):v},getProgressiveThreshold:function(){var v=this.option.progressiveThreshold;return v==null?this.option.large?1e4:this.get("progressiveThreshold"):v},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});R.exports=x},y3Kf:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="UpOutlined";var d=D.a=p.forwardRef(f)},y3NT:function(R,D,i){var y=i("OELB"),p=y.parsePercent,x=i("bYtY"),v=Math.PI/180;function m(l,o,n,t){o.eachSeriesByType(l,function(a){var e=a.get("center"),u=a.get("radius");x.isArray(u)||(u=[0,u]),x.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),A=p(u[0],c/2),b=p(u[1],c/2),w=-a.get("startAngle")*v,E=a.get("minAngle")*v,C=a.getData().tree.root,_=a.getViewRoot(),T=_.depth,S=a.get("sort");S!=null&&f(_,S);var O=0;x.each(_.children,function(X){!isNaN(X.getValue())&&O++});var I=_.getValue(),F=Math.PI/(I||O)*2,P=_.depth>0,B=_.height-(P?-1:1),k=(b-A)/(B||1),G=a.get("clockwise"),M=a.get("stillShowZeroSum"),j=G?1:-1,K=function(X,te){if(!X)return;var $=te;if(X!==C){var le=X.getValue(),re=I===0&&M?F:le*F;re<E&&(re=E),$=te+j*re;var Se=X.depth-T-(P?-1:1),Re=A+k*Se,Pe=A+k*(Se+1),Je=X.getModel();Je.get("r0")!=null&&(Re=p(Je.get("r0"),c/2)),Je.get("r")!=null&&(Pe=p(Je.get("r"),c/2)),X.setLayout({angle:re,startAngle:te,endAngle:$,clockwise:G,cx:h,cy:g,r0:Re,r:Pe})}if(X.children&&X.children.length){var Ge=0;x.each(X.children,function(ct){Ge+=K(ct,te+Ge)})}return $-te};if(P){var z=A,V=A+k,Q=Math.PI*2;C.setLayout({angle:Q,startAngle:w,endAngle:w+Q,clockwise:G,cx:h,cy:g,r0:z,r:V})}K(_,w)})}function f(l,o){var n=l.children||[];l.children=d(n,o),n.length&&x.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})}R.exports=m},y3Yb:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="PaperClipOutlined";var n=v.forwardRef(o);D.default=n},"y4/Y":function(R,D,i){var y=i("ProS"),p=i("bYtY"),x=i("zTMp"),v=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=x.collect(m,f)}),y.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},v)},y7Aq:function(R,D,i){var y=i("bYtY"),p=i("+TT/"),x=p.getLayoutRect;function v(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=x(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=v,D.makeHighDownBatch=m},y8nQ:function(R,D,i){"use strict";var y=i("cIOH"),p=i.n(y),x=i("gwTy"),v=i.n(x),m=i("1GLa")},yEEn:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="ArrowDownOutlined";var d=D.a=p.forwardRef(f)},yGk4:function(R,D,i){var y=i("Cwc5"),p=i("Kz5y"),x=y(p,"Set");R.exports=x},yO87:function(R,D,i){var y=i("bYtY"),p=i("oVpE"),x=p.createSymbol,v=i("IwbS"),m=v.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 A=x(s,-1,-1,2,2,c);A.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var b=-g/o*r.period+r.effectOffset;A.animate("",!0).when(r.period,{scale:[r.rippleScale/2,r.rippleScale/2]}).delay(b).start(),A.animateStyle(!0).when(r.period,{opacity:0}).delay(b).start(),h.add(A)}t(h,r)},e.updateEffectAnimation=function(r){for(var s=this._effectCfg,c=this.childAt(1),h=["symbolType","period","rippleScale"],g=0;g<h.length;g++){var A=h[g];if(s[A]!==r[A]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}t(c,r)},e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.updateData=function(r,s){var c=r.hostModel;this.childAt(0).updateData(r,s);var h=this.childAt(1),g=r.getItemModel(s),A=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 E=g.getShallow("symbolOffset");if(E){var C=h.position;C[0]=d(E[0],b[0]),C[1]=d(E[1],b[1])}var _=r.getItemVisual(s,"symbolRotate");h.rotation=(_||0)*Math.PI/180||0;var T={};if(T.showEffectOn=c.get("showEffectOn"),T.rippleScale=g.get("rippleEffect.scale"),T.brushType=g.get("rippleEffect.brushType"),T.period=g.get("rippleEffect.period")*1e3,T.effectOffset=s/r.count(),T.z=g.getShallow("z")||0,T.zlevel=g.getShallow("zlevel")||0,T.symbolType=A,T.color=w,T.rippleEffectColor=g.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),T.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(T):this.startEffectAnimation(T),this._effectCfg=T;else{this._effectCfg=null,this.stopEffectAnimation();var S=this.childAt(0),O=function(){S.highlight(),T.showEffectOn!=="render"&&this.startEffectAnimation(T)},I=function(){S.downplay(),T.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",O,this).on("mouseout",I,this).on("emphasis",O,this).on("normal",I,this)}this._effectCfg=T},e.fadeOut=function(r){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),r&&r()},y.inherits(a,m);var u=a;R.exports=u},yS9w:function(R,D,i){var y=i("MEGo"),p=y.parseSVG,x=y.makeViewBoxTransform,v=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()),A=g.get(c);if(A)return A;var b=h.originRoot,w=h.boundingRect;return h.originRootHostKey?A=u(s,w).root:(h.originRootHostKey=c,A=b),g.set(c,A)},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(_){throw new Error(`Invalid svg format
|
|
|
`+_.message)}var A=h.width,b=h.height,w=h.viewBoxRect;if(s||(s=A==null||b==null?g.getBoundingRect():new o(0,0,0,0),A!=null&&(s.width=A),b!=null&&(s.height=b)),w){var E=x(w,s.width,s.height),C=g;g=new v,g.add(C),C.scale=E.scale,C.position=E.position}return g.setClipPath(new m({shape:s.plain()})),{root:g,boundingRect:s}}R.exports=e},yWXo:function(R,D,i){var y=i("IwbS"),p=i("oVpE"),x=p.createSymbol,v=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++],A=a[h++];if(isNaN(g)||isNaN(A))continue;if(this.softClipShape&&!this.softClipShape.contain(g,A))continue;r.x=g-e[0]/2,r.y=A-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,A=e[h+1]-s/2;if(n>=g&&t>=A&&n<=g+r&&t<=A+s)return c}return-1}});function d(){this.group=new y.Group}var l=d.prototype;l.isPersistent=function(){return!this._incremental},l.updateData=function(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 v({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=x(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;R.exports=o},ycre:function(R,D,i){var y=i("711d"),p=y("length");R.exports=p},ye1Q:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="LoadingOutlined";var d=D.a=p.forwardRef(f)},ygfH:function(R,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(R,D,i){var y=i("bZqE"),p=y.eachAfter,x=y.eachBefore,v=i("Itpr"),m=v.init,f=v.firstWalk,d=v.secondWalk,l=v.separation,o=v.radialCoordinate,n=v.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,k){return(B.parentNode===k.parentNode?1:2)/B.depth})):(c=r.width,h=r.height,g=l());var A=e.getData().tree.root,b=A.children[0];if(b){m(A),p(b,f,g),A.hierNode.modifier=-b.hierNode.prelim,x(b,d);var w=b,E=b,C=b;x(b,function(B){var k=B.getLayout().x;k<w.getLayout().x&&(w=B),k>E.getLayout().x&&(E=B),B.depth>C.depth&&(C=B)});var _=w===E?1:g(w,E)/2,T=_-w.getLayout().x,S=0,O=0,I=0,F=0;if(s==="radial")S=c/(E.getLayout().x+_+T),O=h/(C.depth-1||1),x(b,function(B){I=(B.getLayout().x+T)*S,F=(B.depth-1)*O;var k=o(I,F);B.setLayout({x:k.x,y:k.y,rawX:I,rawY:F},!0)});else{var P=e.getOrient();P==="RL"||P==="LR"?(O=h/(E.getLayout().x+_+T),S=c/(C.depth-1||1),x(b,function(B){F=(B.getLayout().x+T)*O,I=P==="LR"?(B.depth-1)*S:c-(B.depth-1)*S,B.setLayout({x:I,y:F},!0)})):(P==="TB"||P==="BT")&&(S=c/(E.getLayout().x+_+T),O=h/(C.depth-1||1),x(b,function(B){I=(B.getLayout().x+T)*S,F=P==="TB"?(B.depth-1)*O:h-(B.depth-1)*O,B.setLayout({x:I,y:F},!0)}))}}}R.exports=t},ynwM:function(R,D,i){var y=i("MFOe"),p=y.Global;R.exports={name:"oldFF-globalStorage",read:v,write:m,each:f,remove:d,clearAll:l};var x=p.globalStorage;function v(o){return x[o]}function m(o,n){x[o]=n}function f(o){for(var n=x.length-1;n>=0;n--){var t=x.key(n);o(x[t],t)}}function d(o){return x.removeItem(o)}function l(){f(function(o,n){delete x[o]})}},ypgQ:function(R,D,i){var y=i("bYtY"),p=i("4NO4"),x=i("bLfw"),v=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(A){A&&A.data&&y.isTypedArray(A.data)&&y.setAsPrimitive(A.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,A=this._mediaDefault,b=[],w=[];if(!g.length&&!A)return w;for(var E=0,C=g.length;E<C;E++)t(g[E].query,c,h)&&b.push(E);return!b.length&&A&&(b=[-1]),b.length&&!e(b,this._currentMediaIndices)&&(w=f(b,function(_){return m(_===-1?A.option:g[_].option)})),this._currentMediaIndices=b,w}};function n(s,c,h){var g=[],A=[],b,w,E=s.timeline;if(s.baseOption&&(w=s.baseOption),(E||s.options)&&(w=w||{},g=(s.options||[]).slice()),s.media){w=w||{};var C=s.media;v(C,function(_){_&&_.option&&(_.query?A.push(_):b||(b=_))})}return w||(w=s),w.timeline||(w.timeline=E),v([w].concat(g).concat(y.map(A,function(_){return _.option})),function(_){v(c,function(T){T(_,h)})}),{baseOption:w,timelineOptions:g,mediaDefault:b,mediaList:A}}function t(s,c,h){var g={width:c,height:h,aspectratio:c/h},A=!0;return y.each(s,function(b,w){var E=w.match(l);if(!E||!E[1]||!E[2])return;var C=E[1],_=E[2].toLowerCase();a(g[_],b,C)||(A=!1)}),A}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||{},v(c,function(h,g){if(h==null)return;var A=s[g];if(!x.hasClass(g))s[g]=d(A,h,!0);else{h=p.normalizeToArray(h),A=p.normalizeToArray(A);var b=p.mappingToExists(A,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;R.exports=r},yxFR:function(R,D,i){var y=i("y+Vt"),p=i("nPnh"),x=p.subPixelOptimizeLine,v={},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?(x(v,l,this.style),o=v.x1,n=v.y1,t=v.x2,a=v.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]}});R.exports=m},z35g:function(R,D,i){var y=i("bYtY");function p(m){return this._axes[m]}var x=function(m){this._axes={},this._dimList=[],this.name=m||""};x.prototype={constructor:x,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 v=x;R.exports=v},z7Xi:function(R,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),x={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"},v=x,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="UploadOutlined";var d=D.a=p.forwardRef(f)},zAh6:function(R,D,i){"use strict";i.d(D,"a",function(){return m});var y=i("xEkU"),p=i.n(y),x=i("i6bk");function v(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(x.a)(e,!0),r=Date.now(),s=function c(){var h=Date.now(),g=h-r,A=v(g>a?a:g,u,f,a);Object(x.b)(e)?e.scrollTo(window.pageXOffset,A):e instanceof HTMLDocument||e.constructor.name==="HTMLDocument"?e.documentElement.scrollTop=A:e.scrollTop=A,g<a?p()(c):typeof n=="function"&&n()};p()(s)}},zDms:function(R,D,i){var y=i("bYtY"),p=i("OELB"),x=i("UOVi"),v=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(x.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(A){(A.get(h)||0)===(r.get(h)||0)&&(g=A)}),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=[],A=[],b;m(["start","end"],function(C,_){var T=e[C],S=e[C+"Value"];c[_]==="percent"?(T==null&&(T=h[_]),S=s.parse(p.linearMap(T,h,u))):(b=!0,S=S==null?u[_]:s.parse(S),T=p.linearMap(S,u,h)),A[_]=S,g[_]=T}),f(A),f(g);var w=this._minMaxSpan;b?E(A,g,u,h,!1):E(g,A,h,u,!0);function E(C,_,T,S,O){var I=O?"Span":"ValueSpan";v(0,C,T,"all",w["min"+I],w["max"+I]);for(var F=0;F<2;F++)_[F]=p.linearMap(C[F],T,S,!0),O&&(_[F]=s.parse(_[F]))}return{valueWindow:A,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(A){var b=A.getData(),w=b.mapDimension(r,!0);if(!w.length)return;c==="weakFilter"?b.filterSelf(function(E){for(var C,_,T,S=0;S<w.length;S++){var O=b.get(w[S],E),I=!isNaN(O),F=O<h[0],P=O>h[1];if(I&&!F&&!P)return!0;I&&(T=!0),F&&(C=!0),P&&(_=!0)}return T&&C&&_}):m(w,function(E){if(c==="empty")A.setData(b=b.map(E,function(_){return g(_)?_:NaN}));else{var C={};C[E]=h,b.selectRange(C)}}),m(w,function(E){b.setApproximateExtent(h,E)})});function g(A){return A>=h[0]&&A<=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 A=h.getApproximateExtent(g);A[0]<s[0]&&(s[0]=A[0]),A[1]>s[1]&&(s[1]=A[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;R.exports=a},zM3Q:function(R,D,i){var y=i("4NO4"),p=y.makeInner;function x(){var v=p();return function(m){var f=v(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"}}R.exports=x},zRKj:function(R,D,i){i("Ae16"),i("Sp2Z"),i("y4/Y")},zTMp:function(R,D,i){var y=i("bYtY"),p=i("Qxkt"),x=y.each,v=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"),A=c.getComponent("axisPointer"),b=A.get("link",!0)||[],w=[];x(h.getCoordinateSystems(),function(E){if(!E.axisPointerEnabled)return;var C=r(E.model),_=s.coordSysAxesInfo[C]={};s.coordSysMap[C]=E;var T=E.model,S=T.getModel("tooltip",g);if(x(E.getAxes(),v(P,!1,null)),E.getTooltipAxes&&g&&S.get("show")){var O=S.get("trigger")==="axis",I=S.get("axisPointer.type")==="cross",F=E.getTooltipAxes(S.get("axisPointer.axis"));(O||I)&&x(F.baseAxes,v(P,I?"cross":!0,O)),I&&x(F.otherAxes,v(P,"cross",!1))}function P(B,k,G){var M=G.model.getModel("axisPointer",A),j=M.get("show");if(!j||j==="auto"&&!B&&!u(M))return;k==null&&(k=M.get("triggerTooltip")),M=B?d(G,S,A,c,B,k):M;var K=M.get("snap"),z=r(G.model),V=k||K||G.type==="category",Q=s.axesInfo[z]={key:z,axis:G,coordSys:E,axisPointerModel:M,triggerTooltip:k,involveSeries:V,snap:K,useHandle:u(M),seriesModels:[]};_[z]=Q,s.seriesInvolved|=V;var X=o(b,G);if(X!=null){var te=w[X]||(w[X]={axesInfo:{}});te.axesInfo[z]=Q,te.mapper=b[X].mapper,Q.linkGroup=te}}})}function d(s,c,h,g,A,b){var w=c.getModel("axisPointer"),E={};x(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(S){E[S]=y.clone(w.get(S))}),E.snap=s.type!=="category"&&!!b,w.get("type")==="cross"&&(E.type="line");var C=E.label||(E.label={});if(C.show==null&&(C.show=!1),A==="cross"){var _=w.get("label.show");if(C.show=_!=null?_:!0,!b){var T=E.lineStyle=w.get("crossStyle");T&&y.defaults(C,T.textStyle)}}return s.model.getModel("axisPointer",new p(E,h,g))}function l(s,c){c.eachSeries(function(h){var g=h.coordinateSystem,A=h.get("tooltip.trigger",!0),b=h.get("tooltip.show",!0);if(!g||A==="none"||A===!1||A==="item"||b===!1||h.get("axisPointer.show",!0)===!1)return;x(s.coordSysAxesInfo[r(g.model)],function(w){var E=w.axis;g.getAxis(E.dim)===E&&(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,A=0;A<s.length;A++){var b=s[A]||{};if(n(b[g+"AxisId"],h.id)||n(b[g+"AxisIndex"],h.componentIndex)||n(b[g+"AxisName"],h.name))return A}}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,A=h.option,b=h.get("status"),w=h.get("value");w!=null&&(w=g.parse(w));var E=u(h);b==null&&(A.status=E?"show":"hide");var C=g.getExtent().slice();C[0]>C[1]&&C.reverse(),(w==null||w>C[1])&&(w=C[1]),w<C[0]&&(w=C[0]),A.value=w,E&&(A.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(R,D,i){var y=i("bYtY"),p=256;function x(){var m=y.createCanvas();this.canvas=m,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}x.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],A=g[0],b=g[1],w=g[2],E=l(w);s.globalAlpha=E,s.drawImage(t,A-u,b-u)}if(!r.width||!r.height)return r;for(var C=s.getImageData(0,0,r.width,r.height),_=C.data,T=0,S=_.length,O=this.minOpacity,I=this.maxOpacity,F=I-O;T<S;){var E=_[T+3]/256,P=Math.floor(E*(p-1))*4;if(E>0){var B=n(E)?a:e;E>0&&(E=E*F+O),_[T++]=B[P],_[T++]=B[P+1],_[T++]=B[P+2],_[T++]=B[P+3]*E*256}else T+=4}return s.putImageData(C,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 v=x;R.exports=v},zarK:function(R,D,i){var y=i("YH21"),p=y.addEventListener,x=y.removeEventListener,v=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"],k=["touchstart","touchend","touchmove"],G={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},M=f.map(B,function(j){var K=j.replace("mouse","pointer");return G.hasOwnProperty(K)?K:j});return{mouse:B,touch:k,pointer:M}}(),a={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function e(B){return B==="mousewheel"&&l.browser.firefox?"DOMMouseScroll":B}function u(B){var k=B.pointerType;return k==="pen"||k==="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,k){return v(B.dom,new g(B,k),!0)}function h(B,k){for(var G=k,M=!1;G&&G.nodeType!==9&&!(M=G.domBelongToZr||G!==k&&G===B.painterRoot);)G=G.parentNode;return M}function g(B,k){this.type=k.type,this.target=this.currentTarget=B.dom,this.pointerType=k.pointerType,this.clientX=k.clientX,this.clientY=k.clientY}var A=g.prototype;A.stopPropagation=A.stopImmediatePropagation=A.preventDefault=f.noop;var b={mousedown:function(k){k=v(this.dom,k),this._mayPointerCapture=[k.zrX,k.zrY],this.trigger("mousedown",k)},mousemove:function(k){k=v(this.dom,k);var G=this._mayPointerCapture;G&&(k.zrX!==G[0]||k.zrY!==G[1])&&S(this,!0),this.trigger("mousemove",k)},mouseup:function(k){k=v(this.dom,k),S(this,!1),this.trigger("mouseup",k)},mouseout:function(k){k=v(this.dom,k),this._pointerCapturing&&(k.zrEventControl="no_globalout");var G=k.toElement||k.relatedTarget;k.zrIsToLocalDOM=h(this,G),this.trigger("mouseout",k)},touchstart:function(k){k=v(this.dom,k),s(k),this._lastTouchMoment=new Date,this.handler.processGesture(k,"start"),b.mousemove.call(this,k),b.mousedown.call(this,k)},touchmove:function(k){k=v(this.dom,k),s(k),this.handler.processGesture(k,"change"),b.mousemove.call(this,k)},touchend:function(k){k=v(this.dom,k),s(k),this.handler.processGesture(k,"end"),b.mouseup.call(this,k),+new Date-this._lastTouchMoment<o&&b.click.call(this,k)},pointerdown:function(k){b.mousedown.call(this,k)},pointermove:function(k){u(k)||b.mousemove.call(this,k)},pointerup:function(k){b.mouseup.call(this,k)},pointerout:function(k){u(k)||b.mouseout.call(this,k)}};f.each(["click","mousewheel","dblclick","contextmenu"],function(B){b[B]=function(k){k=v(this.dom,k),this.trigger(B,k)}});var w={pointermove:function(k){u(k)||w.mousemove.call(this,k)},pointerup:function(k){w.mouseup.call(this,k)},mousemove:function(k){this.trigger("mousemove",k)},mouseup:function(k){var G=this._pointerCapturing;S(this,!1),this.trigger("mouseup",k),G&&(k.zrEventControl="only_globalout",this.trigger("mouseout",k))}};function E(B,k){var G=k.domHandlers;l.pointerEventsSupported?f.each(t.pointer,function(M){_(k,M,function(j){G[M].call(B,j)})}):(l.touchEventsSupported&&f.each(t.touch,function(M){_(k,M,function(j){G[M].call(B,j),r(k)})}),f.each(t.mouse,function(M){_(k,M,function(j){j=m(j),k.touching||G[M].call(B,j)})}))}function C(B,k){l.pointerEventsSupported?f.each(a.pointer,G):l.touchEventsSupported||f.each(a.mouse,G);function G(M){function j(K){K=m(K),h(B,K.target)||(K=c(B,K),k.domHandlers[M].call(B,K))}_(k,M,j,{capture:!0})}}function _(B,k,G,M){B.mounted[k]=G,B.listenerOpts[k]=M,p(B.domTarget,e(k),G,M)}function T(B){var k=B.mounted;for(var G in k)k.hasOwnProperty(G)&&x(B.domTarget,e(G),k[G],B.listenerOpts[G]);B.mounted={}}function S(B,k){if(B._mayPointerCapture=null,n&&B._pointerCapturing^k){B._pointerCapturing=k;var G=B._globalHandlerScope;k?C(B,G):T(G)}}function O(B,k){this.domTarget=B,this.domHandlers=k,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function I(B,k){d.call(this),this.dom=B,this.painterRoot=k,this._localHandlerScope=new O(B,b),n&&(this._globalHandlerScope=new O(document,w)),this._pointerCapturing=!1,this._mayPointerCapture=null,E(this,this._localHandlerScope)}var F=I.prototype;F.dispose=function(){T(this._localHandlerScope),n&&T(this._globalHandlerScope)},F.setCursor=function(B){this.dom.style&&(this.dom.style.cursor=B||"default")},f.mixin(I,d);var P=I;R.exports=P},zdCA:function(R,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(i("3tO9")),v=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 v.createElement(f.default,(0,x.default)((0,x.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="BarsOutlined";var n=v.forwardRef(o);D.default=n},zeV3:function(R,D,i){"use strict";var y=i("pVnL"),p=i.n(y),x=i("lSNA"),v=i.n(x),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,A=u.size,b=A===void 0?(h==null?void 0:h.size)||"small":A,w=u.align,E=u.className,C=u.children,_=u.direction,T=_===void 0?"horizontal":_,S=u.prefixCls,O=n(u,["size","align","className","children","direction","prefixCls"]),I=m.Children.count(C);if(I===0)return null;var F=w===void 0&&T==="horizontal"?"center":w,P=c("space",S),B=l()(P,"".concat(P,"-").concat(T),(r={},v()(r,"".concat(P,"-rtl"),g==="rtl"),v()(r,"".concat(P,"-align-").concat(F),F),r),E),k="".concat(P,"-item"),G=g==="rtl"?"marginLeft":"marginRight";return m.createElement("div",p()({className:B},O),m.Children.map(C,function(M,j){return m.createElement("div",{className:k,key:"".concat(k,"-").concat(j),style:j===I-1||M===null||M===void 0?{}:v()({},T==="vertical"?"marginBottom":G,typeof b=="string"?t[b]:b)},M)}))};D.a=a},zuHt:function(R,D,i){var y=i("bYtY");function p(x){var v={};x.eachSeriesByType("map",function(m){var f=m.getMapType();if(m.getHostGeoModel()||v[f])return;var d={};y.each(m.seriesGroup,function(o){var n=o.coordinateSystem,t=o.originalData;o.get("showLegendSymbol")&&x.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)}),v[f]=!0})}R.exports=p}}]);
|