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

951 lines
4.6 MiB

This file contains invisible Unicode characters!

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

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

(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+6XX":function(k,D,n){var y=n("y1pI");function p(x){return y(this.__data__,x)>-1}k.exports=p},"+BJd":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("6MrE"),v=n.n(x)},"+QRC":function(k,D,n){"use strict";var y=n("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 u,o,i,t,s,e,l=!1;d||(d={}),u=d.debug||!1;try{i=y(),t=document.createRange(),s=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(a){if(a.stopPropagation(),d.format)if(a.preventDefault(),typeof a.clipboardData=="undefined"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var c=p[d.format]||p.default;window.clipboardData.setData(c,f)}else a.clipboardData.clearData(),a.clipboardData.setData(d.format,f);d.onCopy&&(a.preventDefault(),d.onCopy(a.clipboardData))}),document.body.appendChild(e),t.selectNodeContents(e),s.addRange(t);var r=document.execCommand("copy");if(!r)throw new Error("copy command was unsuccessful");l=!0}catch(a){u&&console.error("unable to copy using execCommand: ",a),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(d.format||"text",f),d.onCopy&&d.onCopy(window.clipboardData),l=!0}catch(c){u&&console.error("unable to copy using clipboardData: ",c),u&&console.error("falling back to prompt"),o=v("message"in d?d.message:x),window.prompt(o,f)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(t):s.removeAllRanges()),e&&document.body.removeChild(e),i()}return l}k.exports=m},"+TT/":function(k,D,n){var y=n("bYtY"),p=n("mFDi"),x=n("OELB"),v=x.parsePercent,m=n("7aKB"),f=y.each,d=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function o(A,b,S,E,C){var _=0,T=0;E==null&&(E=Infinity),C==null&&(C=Infinity);var w=0;b.eachChild(function(O,I){var R=O.position,M=O.getBoundingRect(),B=b.childAt(I+1),P=B&&B.getBoundingRect(),X,F;if(A==="horizontal"){var j=M.width+(P?-P.x+M.x:0);X=_+j,X>E||O.newline?(_=0,X=j,T+=w+S,w=M.height):w=Math.max(w,M.height)}else{var K=M.height+(P?-P.y+M.y:0);F=T+K,F>C||O.newline?(_+=w+S,T=0,F=K,w=M.width):w=Math.max(w,M.width)}if(O.newline)return;R[0]=_,R[1]=T,A==="horizontal"?_=X+S:T=F+S})}var i=o,t=y.curry(o,"vertical"),s=y.curry(o,"horizontal");function e(A,b,S){var E=b.width,C=b.height,_=v(A.x,E),T=v(A.y,C),w=v(A.x2,E),O=v(A.y2,C);return(isNaN(_)||isNaN(parseFloat(A.x)))&&(_=0),(isNaN(w)||isNaN(parseFloat(A.x2)))&&(w=E),(isNaN(T)||isNaN(parseFloat(A.y)))&&(T=0),(isNaN(O)||isNaN(parseFloat(A.y2)))&&(O=C),S=m.normalizeCssArray(S||0),{width:Math.max(w-_-S[1]-S[3],0),height:Math.max(O-T-S[0]-S[2],0)}}function l(A,b,S){S=m.normalizeCssArray(S||0);var E=b.width,C=b.height,_=v(A.left,E),T=v(A.top,C),w=v(A.right,E),O=v(A.bottom,C),I=v(A.width,E),R=v(A.height,C),M=S[2]+S[0],B=S[1]+S[3],P=A.aspect;isNaN(I)&&(I=E-w-B-_),isNaN(R)&&(R=C-O-M-T),P!=null&&(isNaN(I)&&isNaN(R)&&(P>E/C?I=E*.8:R=C*.8),isNaN(I)&&(I=P*R),isNaN(R)&&(R=I/P)),isNaN(_)&&(_=E-w-I-B),isNaN(T)&&(T=C-O-R-M);switch(A.left||A.right){case"center":_=E/2-I/2-S[3];break;case"right":_=E-I-B;break}switch(A.top||A.bottom){case"middle":case"center":T=C/2-R/2-S[0];break;case"bottom":T=C-R-M;break}_=_||0,T=T||0,isNaN(I)&&(I=E-B-_-(w||0)),isNaN(R)&&(R=C-M-T-(O||0));var X=new p(_+S[3],T+S[0],I,R);return X.margin=S,X}function r(A,b,S,E,C){var _=!C||!C.hv||C.hv[0],T=!C||!C.hv||C.hv[1],w=C&&C.boundingMode||"all";if(!_&&!T)return;var O;if(w==="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=l(y.defaults({width:O.width,height:O.height},b),S,E);var R=A.position,M=_?b.x-O.x:0,B=T?b.y-O.y:0;A.attr("position",w==="raw"?[M,B]:[R[0]+M,R[1]+B])}function a(A,b){return A[u[b][0]]!=null||A[u[b][1]]!=null&&A[u[b][2]]!=null}function c(A,b,S){!y.isObject(S)&&(S={});var E=S.ignoreSize;!y.isArray(E)&&(E=[E,E]);var C=T(u[0],0),_=T(u[1],1);I(u[0],A,C),I(u[1],A,_);function T(R,M){var B={},P=0,X={},F=0,j=2;if(f(R,function(V){X[V]=A[V]}),f(R,function(V){w(b,V)&&(B[V]=X[V]=b[V]),O(B,V)&&P++,O(X,V)&&F++}),E[M])return O(b,R[1])?X[R[2]]=null:O(b,R[2])&&(X[R[1]]=null),X;if(F===j||!P)return X;if(P>=j)return B;for(var K=0;K<R.length;K++){var z=R[K];if(!w(B,z)&&w(A,z)){B[z]=A[z];break}}return B}function w(R,M){return R.hasOwnProperty(M)}function O(R,M){return R[M]!=null&&R[M]!=="auto"}function I(R,M,B){f(R,function(P){M[P]=B[P]})}}function h(A){return g({},A)}function g(A,b){return b&&A&&f(d,function(S){b.hasOwnProperty(S)&&(A[S]=b[S])}),A}D.LOCATION_PARAMS=d,D.HV_NAMES=u,D.box=i,D.vbox=t,D.hbox=s,D.getAvailableSize=e,D.getLayoutRect=l,D.positionElement=r,D.sizeCalculable=a,D.mergeLayoutParam=c,D.getLayoutParams=h,D.copyLayoutParams=g},"+Zaj":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("ugBc")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="CalendarOutlined";var i=v.forwardRef(o);D.default=i},"+d4F":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("y3Yb"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},"+eQT":function(k,D,n){"use strict";var y=n("wd/R"),p=n.n(y),x=n("Kwbf"),v={getNow:function(){return p()()},getWeekDay:function(Tr){var en=Tr.clone().locale("en_US");return en.weekday()+en.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,en){var Jr=Tr.clone();return Jr.add(en,"year")},addMonth:function(Tr,en){var Jr=Tr.clone();return Jr.add(en,"month")},addDate:function(Tr,en){var Jr=Tr.clone();return Jr.add(en,"day")},setYear:function(Tr,en){var Jr=Tr.clone();return Jr.year(en)},setMonth:function(Tr,en){var Jr=Tr.clone();return Jr.month(en)},setDate:function(Tr,en){var Jr=Tr.clone();return Jr.date(en)},setHour:function(Tr,en){var Jr=Tr.clone();return Jr.hour(en)},setMinute:function(Tr,en){var Jr=Tr.clone();return Jr.minute(en)},setSecond:function(Tr,en){var Jr=Tr.clone();return Jr.second(en)},isAfter:function(Tr,en){return Tr.isAfter(en)},isValidate:function(Tr){return Tr.isValid()},locale:{getWeekFirstDay:function(Tr){var en=p()().locale(Tr);return en.localeData().firstDayOfWeek()},getWeek:function(Tr,en){var Jr=en.clone(),Jn=Jr.locale(Tr);return Jn.week()},getShortWeekDays:function(Tr){var en=p()().locale(Tr);return en.localeData().weekdaysMin()},getShortMonths:function(Tr){var en=p()().locale(Tr);return en.localeData().monthsShort()},format:function(Tr,en,Jr){var Jn=en.clone(),fn=Jn.locale(Tr);return fn.format(Jr)},parse:function(Tr,en,Jr){for(var Jn=[],fn=0;fn<Jr.length;fn+=1){var Yr=Jr[fn],ni=en;if(Yr.includes("wo")||Yr.includes("Wo")){Yr=Yr.replace(/wo/g,"w").replace(/Wo/g,"W");var nn=Yr.match(/[-YyMmDdHhSsWwGg]+/g),zn=ni.match(/[-\d]+/g);nn&&zn?(Yr=nn.join(""),ni=zn.join("")):Jn.push(Yr.replace(/o/g,""))}var li=p()(ni,Yr,Tr,!0);if(li.isValid())return li}for(var ci=0;ci<Jn.length;ci+=1){var si=p()(en,Jn[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=n("pVnL"),d=n.n(f),u=n("q1tI"),o=n.n(u),i=n("2/Rp");function t(mt){return u.createElement(i.a,d()({size:"small",type:"primary"},mt))}var s=n("mr32");function e(mt){return u.createElement(s.a,d()({color:"blue"},mt))}var l=n("lSNA"),r=n.n(l),a=n("lwsE"),c=n.n(a),h=n("W8MJ"),g=n.n(h),A=n("7W2i"),b=n.n(A),S=n("LQ03"),E=n.n(S),C=n("TSYQ"),_=n.n(C),T=n("r/2G"),w=n.n(T),O=n("XzQk"),I=n.n(O),R=n("kbBi"),M=n.n(R),B=n("1OyB"),P=n("vuIU"),X=n("Ji7U"),F=n("LK+K"),j=n("rePB"),K=n("VTBJ"),z=n("ODXe"),V=n("6cGi"),Q=n("U8pU"),G=n("4IlW"),te=u.createContext({}),q=te,le={visibility:"hidden"};function re(mt){var Tr=mt.prefixCls,en=mt.prevIcon,Jr=en===void 0?"\u2039":en,Jn=mt.nextIcon,fn=Jn===void 0?"\u203A":Jn,Yr=mt.superPrevIcon,ni=Yr===void 0?"\xAB":Yr,nn=mt.superNextIcon,zn=nn===void 0?"\xBB":nn,li=mt.onSuperPrev,ci=mt.onSuperNext,si=mt.onPrev,Ci=mt.onNext,mi=mt.children,Ai=u.useContext(q),Ni=Ai.hideNextBtn,ia=Ai.hidePrevBtn;return u.createElement("div",{className:Tr},li&&u.createElement("button",{type:"button",onClick:li,tabIndex:-1,className:"".concat(Tr,"-super-prev-btn"),style:ia?le:{}},ni),si&&u.createElement("button",{type:"button",onClick:si,tabIndex:-1,className:"".concat(Tr,"-prev-btn"),style:ia?le:{}},Jr),u.createElement("div",{className:"".concat(Tr,"-view")},mi),Ci&&u.createElement("button",{type:"button",onClick:Ci,tabIndex:-1,className:"".concat(Tr,"-next-btn"),style:Ni?le:{}},fn),ci&&u.createElement("button",{type:"button",onClick:ci,tabIndex:-1,className:"".concat(Tr,"-super-next-btn"),style:Ni?le:{}},zn))}var we=re;function Ie(mt){var Tr=u.useContext(q),en=Tr.hideHeader;if(en)return null;var Jr=mt.prefixCls,Jn=mt.generateConfig,fn=mt.locale,Yr=mt.value,ni=mt.format,nn="".concat(Jr,"-header");return u.createElement(we,{prefixCls:nn},Yr?Jn.locale.format(fn.locale,Yr,ni):"\xA0")}var Me=Ie,Je=n("YrtM"),Ve=n("KQm4"),ut=new Map;function Fe(mt,Tr,en){if(ut.get(mt)&&cancelAnimationFrame(ut.get(mt)),en<=0){ut.set(mt,requestAnimationFrame(function(){mt.scrollTop=Tr}));return}var Jr=Tr-mt.scrollTop,Jn=Jr/en*10;ut.set(mt,requestAnimationFrame(function(){mt.scrollTop+=Jn,mt.scrollTop!==Tr&&Fe(mt,Tr,en-10)}))}function ae(mt,Tr){var en=Tr.onLeftRight,Jr=Tr.onCtrlLeftRight,Jn=Tr.onUpDown,fn=Tr.onPageUpDown,Yr=Tr.onEnter,ni=mt.which,nn=mt.ctrlKey,zn=mt.metaKey;switch(ni){case G.a.LEFT:if(nn||zn){if(Jr)return Jr(-1),!0}else if(en)return en(-1),!0;break;case G.a.RIGHT:if(nn||zn){if(Jr)return Jr(1),!0}else if(en)return en(1),!0;break;case G.a.UP:if(Jn)return Jn(-1),!0;break;case G.a.DOWN:if(Jn)return Jn(1),!0;break;case G.a.PAGE_UP:if(fn)return fn(-1),!0;break;case G.a.PAGE_DOWN:if(fn)return fn(1),!0;break;case G.a.ENTER:if(Yr)return Yr(),!0;break}return!1}function at(mt,Tr,en,Jr){var Jn=mt;if(!Jn)switch(Tr){case"time":Jn=Jr?"hh:mm:ss a":"HH:mm:ss";break;case"week":Jn="gggg-wo";break;case"month":Jn="YYYY-MM";break;case"quarter":Jn="YYYY-[Q]Q";break;case"year":Jn="YYYY";break;default:Jn=en?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Jn}function he(mt,Tr){var en=mt==="time"?8:10;return Math.max(en,Tr.length)+2}var J=null,Y=new Set;function $(mt){return!J&&typeof window!="undefined"&&window.addEventListener&&(J=function(en){Object(Ve.a)(Y).forEach(function(Jr){Jr(en)})},window.addEventListener("mousedown",J)),Y.add(mt),function(){Y.delete(mt),Y.size===0&&(window.removeEventListener("mousedown",J),J=null)}}var de=function(Tr){return Tr==="month"||Tr==="date"?"year":Tr},be=function(Tr){return Tr==="date"?"month":Tr},Ce=function(Tr){return Tr==="month"||Tr==="date"?"quarter":Tr},Be=function(Tr){return Tr==="date"?"week":Tr},fe={year:de,month:be,quarter:Ce,week:Be,time:null,date:null};function Se(mt,Tr){return mt.some(function(en){return en&&en.contains(Tr)})}function ke(mt){var Tr=mt.prefixCls,en=mt.units,Jr=mt.onSelect,Jn=mt.value,fn=mt.active,Yr=mt.hideDisabledOptions,ni="".concat(Tr,"-cell"),nn=u.useContext(q),zn=nn.open,li=u.useRef(null),ci=u.useRef(new Map);return u.useLayoutEffect(function(){var si=ci.current.get(Jn);si&&zn!==!1&&Fe(li.current,si.offsetTop,120)},[Jn]),u.useLayoutEffect(function(){if(zn){var si=ci.current.get(Jn);si&&Fe(li.current,si.offsetTop,0)}},[zn]),u.createElement("ul",{className:_()("".concat(Tr,"-column"),Object(j.a)({},"".concat(Tr,"-column-active"),fn)),ref:li,style:{position:"relative"}},en.map(function(si){var Ci;return Yr&&si.disabled?null:u.createElement("li",{key:si.value,ref:function(Ai){ci.current.set(si.value,Ai)},className:_()(ni,(Ci={},Object(j.a)(Ci,"".concat(ni,"-disabled"),si.disabled),Object(j.a)(Ci,"".concat(ni,"-selected"),Jn===si.value),Ci)),onClick:function(){if(si.disabled)return;Jr(si.value)}},u.createElement("div",{className:"".concat(ni,"-inner")},si.label))}))}var rt=ke;function xt(mt,Tr){for(var en=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Jr=String(mt);Jr.length<Tr;)Jr="".concat(en).concat(mt);return Jr}var ht=function(){for(var Tr=arguments.length,en=new Array(Tr),Jr=0;Jr<Tr;Jr++)en[Jr]=arguments[Jr];return en};function He(mt){return mt==null?[]:Array.isArray(mt)?mt:[mt]}function ir(mt){var Tr={};return Object.keys(mt).forEach(function(en){(en.substr(0,5)==="data-"||en.substr(0,5)==="aria-"||en==="role"||en==="name")&&en.substr(0,7)!=="data-__"&&(Tr[en]=mt[en])}),Tr}function ct(mt,Tr){return mt?mt[Tr]:null}function Xt(mt,Tr,en){var Jr=[ct(mt,0),ct(mt,1)];return Jr[en]=typeof Tr=="function"?Tr(Jr[en]):Tr,!Jr[0]&&!Jr[1]?null:Jr}function hr(mt,Tr,en,Jr,Jn){var fn=mt.setHour(Tr,en);return fn=mt.setMinute(fn,Jr),fn=mt.setSecond(fn,Jn),fn}function Jt(mt,Tr,en,Jr,Jn,fn){var Yr=Math.floor(mt/Jr)*Jr;if(Yr<mt)return[Yr,60-Jn,60-fn];var ni=Math.floor(Tr/Jn)*Jn;if(ni<Tr)return[Yr,ni,60-fn];var nn=Math.floor(en/fn)*fn;return[Yr,ni,nn]}function Pt(mt,Tr){if(mt.length!==Tr.length)return!0;for(var en=0;en<mt.length;en+=1)if(mt[en].disabled!==Tr[en].disabled)return!0;return!1}function Wt(mt,Tr,en,Jr){for(var Jn=[],fn=mt;fn<=Tr;fn+=en)Jn.push({label:xt(fn,2),value:fn,disabled:(Jr||[]).includes(fn)});return Jn}function Ge(mt){var Tr=mt.generateConfig,en=mt.prefixCls,Jr=mt.operationRef,Jn=mt.activeColumnIndex,fn=mt.value,Yr=mt.showHour,ni=mt.showMinute,nn=mt.showSecond,zn=mt.use12Hours,li=mt.hourStep,ci=li===void 0?1:li,si=mt.minuteStep,Ci=si===void 0?1:si,mi=mt.secondStep,Ai=mi===void 0?1:mi,Ni=mt.disabledHours,ia=mt.disabledMinutes,Ki=mt.disabledSeconds,fa=mt.hideDisabledOptions,Ya=mt.onSelect,xa=[],wa="".concat(en,"-content"),Da="".concat(en,"-time-panel"),ja,ko=fn?Tr.getHour(fn):-1,ro=fn?Tr.getMinute(fn):-1,pa=fn?Tr.getSecond(fn):-1,Ea=function(Ao,$a,ss,_s){var Fo=fn||Tr.getNow(),il=Math.max(0,$a),Eo=Math.max(0,ss),zo=Math.max(0,_s);return Fo=hr(Tr,Fo,!zn||!Ao?il:il+12,Eo,zo),Fo},Fa=Wt(0,23,ci,Ni&&Ni()),Ka=Object(Je.a)(function(){return Fa},Fa,Pt);zn&&(ja=ko>=12,ko%=12);var lo=u.useMemo(function(){if(!zn)return[!1,!1];var co=[!0,!0];return Ka.forEach(function(Ao){var $a=Ao.disabled,ss=Ao.value;if($a)return;ss>=12?co[1]=!1:co[0]=!1}),co},[zn,Ka]),so=Object(z.a)(lo,2),Co=so[0],Lo=so[1],is=u.useMemo(function(){return zn?Ka.filter(ja?function(co){return co.value>=12}:function(co){return co.value<12}).map(function(co){var Ao=co.value%12,$a=Ao===0?"12":xt(Ao,2);return Object(K.a)(Object(K.a)({},co),{},{label:$a,value:Ao})}):Ka},[zn,Ka]),cs=Wt(0,59,Ci,ia&&ia(ko)),Rs=Wt(0,59,Ai,Ki&&Ki(ko,ro));Jr.current={onUpDown:function(Ao){var $a=xa[Jn];if($a)for(var ss=$a.units.findIndex(function(Eo){return Eo.value===$a.value}),_s=$a.units.length,Fo=1;Fo<_s;Fo+=1){var il=$a.units[(ss+Ao*Fo+_s)%_s];if(il.disabled!==!0){$a.onSelect(il.value);break}}}};function Ko(co,Ao,$a,ss,_s){co!==!1&&xa.push({node:u.cloneElement(Ao,{prefixCls:Da,value:$a,active:Jn===xa.length,onSelect:_s,units:ss,hideDisabledOptions:fa}),onSelect:_s,value:$a,units:ss})}Ko(Yr,u.createElement(rt,{key:"hour"}),ko,is,function(co){Ya(Ea(ja,co,ro,pa),"mouse")}),Ko(ni,u.createElement(rt,{key:"minute"}),ro,cs,function(co){Ya(Ea(ja,ko,co,pa),"mouse")}),Ko(nn,u.createElement(rt,{key:"second"}),pa,Rs,function(co){Ya(Ea(ja,ko,ro,co),"mouse")});var as=-1;return typeof ja=="boolean"&&(as=ja?1:0),Ko(zn===!0,u.createElement(rt,{key:"12hours"}),as,[{label:"AM",value:0,disabled:Co},{label:"PM",value:1,disabled:Lo}],function(co){Ya(Ea(!!co,ko,ro,pa),"mouse")}),u.createElement("div",{className:wa},xa.map(function(co){var Ao=co.node;return Ao}))}var pe=Ge,se=function(Tr){return Tr.filter(function(en){return en!==!1}).length};function lt(mt){var Tr=mt.generateConfig,en=mt.format,Jr=en===void 0?"HH:mm:ss":en,Jn=mt.prefixCls,fn=mt.active,Yr=mt.operationRef,ni=mt.showHour,nn=mt.showMinute,zn=mt.showSecond,li=mt.use12Hours,ci=li===void 0?!1:li,si=mt.onSelect,Ci=mt.value,mi="".concat(Jn,"-time-panel"),Ai=u.useRef(),Ni=u.useState(-1),ia=Object(z.a)(Ni,2),Ki=ia[0],fa=ia[1],Ya=se([ni,nn,zn,ci]);return Yr.current={onKeyDown:function(wa){return ae(wa,{onLeftRight:function(ja){fa((Ki+ja+Ya)%Ya)},onUpDown:function(ja){Ki===-1?fa(0):Ai.current&&Ai.current.onUpDown(ja)},onEnter:function(){si(Ci||Tr.getNow(),"key"),fa(-1)}})},onBlur:function(){fa(-1)}},u.createElement("div",{className:_()(mi,Object(j.a)({},"".concat(mi,"-active"),fn))},u.createElement(Me,Object.assign({},mt,{format:Jr,prefixCls:Jn})),u.createElement(pe,Object.assign({},mt,{prefixCls:Jn,activeColumnIndex:Ki,operationRef:Ai})))}var qe=lt,me=7;function Ht(mt,Tr){return!mt&&!Tr?!0:!mt||!Tr?!1:void 0}function yr(mt,Tr,en){var Jr=Ht(Tr,en);if(typeof Jr=="boolean")return Jr;var Jn=Math.floor(mt.getYear(Tr)/10),fn=Math.floor(mt.getYear(en)/10);return Jn===fn}function At(mt,Tr,en){var Jr=Ht(Tr,en);return typeof Jr=="boolean"?Jr:mt.getYear(Tr)===mt.getYear(en)}function rr(mt,Tr){var en=Math.floor(mt.getMonth(Tr)/3);return en+1}function ur(mt,Tr,en){var Jr=Ht(Tr,en);return typeof Jr=="boolean"?Jr:At(mt,Tr,en)&&rr(mt,Tr)===rr(mt,en)}function vn(mt,Tr,en){var Jr=Ht(Tr,en);return typeof Jr=="boolean"?Jr:At(mt,Tr,en)&&mt.getMonth(Tr)===mt.getMonth(en)}function Bt(mt,Tr,en){var Jr=Ht(Tr,en);return typeof Jr=="boolean"?Jr:mt.getYear(Tr)===mt.getYear(en)&&mt.getMonth(Tr)===mt.getMonth(en)&&mt.getDate(Tr)===mt.getDate(en)}function sr(mt,Tr,en){var Jr=Ht(Tr,en);return typeof Jr=="boolean"?Jr:mt.getHour(Tr)===mt.getHour(en)&&mt.getMinute(Tr)===mt.getMinute(en)&&mt.getSecond(Tr)===mt.getSecond(en)}function Yt(mt,Tr,en,Jr){var Jn=Ht(en,Jr);return typeof Jn=="boolean"?Jn:mt.locale.getWeek(Tr,en)===mt.locale.getWeek(Tr,Jr)}function pt(mt,Tr,en){return Bt(mt,Tr,en)&&sr(mt,Tr,en)}function it(mt,Tr,en,Jr){return!Tr||!en||!Jr?!1:!Bt(mt,Tr,Jr)&&!Bt(mt,en,Jr)&&mt.isAfter(Jr,Tr)&&mt.isAfter(en,Jr)}function Fr(mt,Tr,en){var Jr=Tr.locale.getWeekFirstDay(mt),Jn=Tr.setDate(en,1),fn=Tr.getWeekDay(Jn),Yr=Tr.addDate(Jn,Jr-fn);return Tr.getMonth(Yr)===Tr.getMonth(en)&&Tr.getDate(Yr)>1&&(Yr=Tr.addDate(Yr,-7)),Yr}function cn(mt,Tr,en){var Jr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Tr){case"year":return en.addYear(mt,Jr*10);case"quarter":case"month":return en.addYear(mt,Jr);default:return en.addMonth(mt,Jr)}}var _n=u.createContext({}),Kn=_n;function gi(mt){var Tr=mt.cellPrefixCls,en=mt.generateConfig,Jr=mt.rangedValue,Jn=mt.hoverRangedValue,fn=mt.isInView,Yr=mt.isSameCell,ni=mt.offsetCell,nn=mt.today,zn=mt.value;function li(ci){var si,Ci=ni(ci,-1),mi=ni(ci,1),Ai=ct(Jr,0),Ni=ct(Jr,1),ia=ct(Jn,0),Ki=ct(Jn,1),fa=it(en,ia,Ki,ci);function Ya(ro){return Yr(Ai,ro)}function xa(ro){return Yr(Ni,ro)}var wa=Yr(ia,ci),Da=Yr(Ki,ci),ja=(fa||Da)&&(!fn(Ci)||xa(Ci)),ko=(fa||wa)&&(!fn(mi)||Ya(mi));return si={},Object(j.a)(si,"".concat(Tr,"-in-view"),fn(ci)),Object(j.a)(si,"".concat(Tr,"-in-range"),it(en,Ai,Ni,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)&&!Ni),Object(j.a)(si,"".concat(Tr,"-range-end-single"),xa(ci)&&!Ai),Object(j.a)(si,"".concat(Tr,"-range-start-near-hover"),Ya(ci)&&(Yr(Ci,ia)||it(en,ia,Ki,Ci))),Object(j.a)(si,"".concat(Tr,"-range-end-near-hover"),xa(ci)&&(Yr(mi,Ki)||it(en,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&&Yr(Ci,Ni)),Object(j.a)(si,"".concat(Tr,"-range-hover-edge-end-near-range"),ko&&Yr(mi,Ai)),Object(j.a)(si,"".concat(Tr,"-today"),Yr(nn,ci)),Object(j.a)(si,"".concat(Tr,"-selected"),Yr(zn,ci)),si}return li}function Mn(mt){for(var Tr=mt.prefixCls,en=mt.disabledDate,Jr=mt.onSelect,Jn=mt.rowNum,fn=mt.colNum,Yr=mt.prefixColumn,ni=mt.rowClassName,nn=mt.baseDate,zn=mt.getCellClassName,li=mt.getCellText,ci=mt.getCellNode,si=mt.getCellDate,Ci=mt.titleCell,mi=mt.headerCells,Ai=u.useContext(q),Ni=Ai.onDateMouseEnter,ia=Ai.onDateMouseLeave,Ki="".concat(Tr,"-cell"),fa=[],Ya=0;Ya<Jn;Ya+=1){for(var xa=[],wa=void 0,Da=function(ro){var pa=Ya*fn+ro,Ea=si(nn,pa),Fa=en&&en(Ea);ro===0&&(wa=Ea,Yr&&xa.push(Yr(wa))),xa.push(u.createElement("td",{key:ro,title:Ci&&Ci(Ea),className:_()(Ki,Object(K.a)(Object(j.a)({},"".concat(Ki,"-disabled"),Fa),zn(Ea))),onClick:function(){Fa||Jr(Ea)},onMouseEnter:function(){!Fa&&Ni&&Ni(Ea)},onMouseLeave:function(){!Fa&&ia&&ia(Ea)}},ci?ci(Ea):u.createElement("div",{className:"".concat(Ki,"-inner")},li(Ea))))},ja=0;ja<fn;ja+=1)Da(ja);fa.push(u.createElement("tr",{key:Ya,className:ni&&ni(wa)},xa))}return u.createElement("div",{className:"".concat(Tr,"-body")},u.createElement("table",{className:"".concat(Tr,"-content")},mi&&u.createElement("thead",null,u.createElement("tr",null,mi)),u.createElement("tbody",null,fa)))}function Un(mt){var Tr=mt.prefixCls,en=mt.generateConfig,Jr=mt.prefixColumn,Jn=mt.locale,fn=mt.rowCount,Yr=mt.viewDate,ni=mt.value,nn=mt.dateRender,zn=u.useContext(Kn),li=zn.rangedValue,ci=zn.hoverRangedValue,si=Fr(Jn.locale,en,Yr),Ci="".concat(Tr,"-cell"),mi=en.locale.getWeekFirstDay(Jn.locale),Ai=en.getNow(),Ni=[],ia=Jn.shortWeekDays||(en.locale.getShortWeekDays?en.locale.getShortWeekDays(Jn.locale):[]);Jr&&Ni.push(u.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Ki=0;Ki<me;Ki+=1)Ni.push(u.createElement("th",{key:Ki},ia[(Ki+mi)%me]));var fa=gi({cellPrefixCls:Ci,today:Ai,value:ni,generateConfig:en,rangedValue:Jr?null:li,hoverRangedValue:Jr?null:ci,isSameCell:function(wa,Da){return Bt(en,wa,Da)},isInView:function(wa){return vn(en,wa,Yr)},offsetCell:function(wa,Da){return en.addDate(wa,Da)}}),Ya=nn?function(xa){return nn(xa,Ai)}:void 0;return u.createElement(Mn,Object.assign({},mt,{rowNum:fn,colNum:me,baseDate:si,getCellNode:Ya,getCellText:en.getDate,getCellClassName:fa,getCellDate:en.addDate,titleCell:function(wa){return en.locale.format(Jn.locale,wa,"YYYY-MM-DD")},headerCells:Ni}))}var $t=Un;function Ct(mt){var Tr=mt.prefixCls,en=mt.generateConfig,Jr=mt.locale,Jn=mt.viewDate,fn=mt.onNextMonth,Yr=mt.onPrevMonth,ni=mt.onNextYear,nn=mt.onPrevYear,zn=mt.onYearClick,li=mt.onMonthClick,ci=u.useContext(q),si=ci.hideHeader;if(si)return null;var Ci="".concat(Tr,"-header"),mi=Jr.shortMonths||(en.locale.getShortMonths?en.locale.getShortMonths(Jr.locale):[]),Ai=en.getMonth(Jn),Ni=u.createElement("button",{type:"button",key:"year",onClick:zn,tabIndex:-1,className:"".concat(Tr,"-year-btn")},en.locale.format(Jr.locale,Jn,Jr.yearFormat)),ia=u.createElement("button",{type:"button",key:"month",onClick:li,tabIndex:-1,className:"".concat(Tr,"-month-btn")},Jr.monthFormat?en.locale.format(Jr.locale,Jn,Jr.monthFormat):mi[Ai]),Ki=Jr.monthBeforeYear?[ia,Ni]:[Ni,ia];return u.createElement(we,Object.assign({},mt,{prefixCls:Ci,onSuperPrev:nn,onPrev:Yr,onNext:fn,onSuperNext:ni}),Ki)}var Re=Ct,De=6;function Pe(mt){var Tr=mt.prefixCls,en=mt.panelName,Jr=en===void 0?"date":en,Jn=mt.keyboardConfig,fn=mt.active,Yr=mt.operationRef,ni=mt.generateConfig,nn=mt.value,zn=mt.viewDate,li=mt.onViewDateChange,ci=mt.onPanelChange,si=mt.onSelect,Ci="".concat(Tr,"-").concat(Jr,"-panel");Yr.current={onKeyDown:function(ia){return ae(ia,Object(K.a)({onLeftRight:function(fa){si(ni.addDate(nn||zn,fa),"key")},onCtrlLeftRight:function(fa){si(ni.addYear(nn||zn,fa),"key")},onUpDown:function(fa){si(ni.addDate(nn||zn,fa*me),"key")},onPageUpDown:function(fa){si(ni.addMonth(nn||zn,fa),"key")}},Jn))}};var mi=function(ia){var Ki=ni.addYear(zn,ia);li(Ki),ci(null,Ki)},Ai=function(ia){var Ki=ni.addMonth(zn,ia);li(Ki),ci(null,Ki)};return u.createElement("div",{className:_()(Ci,Object(j.a)({},"".concat(Ci,"-active"),fn))},u.createElement(Re,Object.assign({},mt,{prefixCls:Tr,value:nn,viewDate:zn,onPrevYear:function(){mi(-1)},onNextYear:function(){mi(1)},onPrevMonth:function(){Ai(-1)},onNextMonth:function(){Ai(1)},onMonthClick:function(){ci("month",zn)},onYearClick:function(){ci("year",zn)}})),u.createElement($t,Object.assign({},mt,{onSelect:function(ia){return si(ia,"mouse")},prefixCls:Tr,value:nn,viewDate:zn,rowCount:De})))}var et=Pe;function yt(mt,Tr,en){if(!en)return Tr;var Jr=Tr;return Jr=mt.setHour(Jr,mt.getHour(en)),Jr=mt.setMinute(Jr,mt.getMinute(en)),Jr=mt.setSecond(Jr,mt.getSecond(en)),Jr}var St=ht("date","time");function Vt(mt){var Tr=mt.prefixCls,en=mt.operationRef,Jr=mt.generateConfig,Jn=mt.value,fn=mt.defaultValue,Yr=mt.disabledTime,ni=mt.showTime,nn=mt.onSelect,zn="".concat(Tr,"-datetime-panel"),li=u.useState(null),ci=Object(z.a)(li,2),si=ci[0],Ci=ci[1],mi=u.useRef({}),Ai=u.useRef({}),Ni=Object(Q.a)(ni)==="object"?Object(K.a)({},ni):{};function ia(xa){var wa=St.indexOf(si)+xa,Da=St[wa]||null;return Da}var Ki=function(wa){Ai.current.onBlur&&Ai.current.onBlur(wa),Ci(null)};en.current={onKeyDown:function(wa){if(wa.which===G.a.TAB){var Da=ia(wa.shiftKey?-1:1);return Ci(Da),Da&&wa.preventDefault(),!0}if(si){var ja=si==="date"?mi:Ai;return ja.current&&ja.current.onKeyDown&&ja.current.onKeyDown(wa),!0}return[G.a.LEFT,G.a.RIGHT,G.a.UP,G.a.DOWN].includes(wa.which)?(Ci("date"),!0):!1},onBlur:Ki,onClose:Ki};var fa=function(wa,Da){var ja=wa;Da==="date"&&!Jn&&Ni.defaultValue?(ja=Jr.setHour(ja,Jr.getHour(Ni.defaultValue)),ja=Jr.setMinute(ja,Jr.getMinute(Ni.defaultValue)),ja=Jr.setSecond(ja,Jr.getSecond(Ni.defaultValue))):Da==="time"&&!Jn&&fn&&(ja=Jr.setYear(ja,Jr.getYear(fn)),ja=Jr.setMonth(ja,Jr.getMonth(fn)),ja=Jr.setDate(ja,Jr.getDate(fn))),nn&&nn(ja,"mouse")},Ya=Yr?Yr(Jn||null):{};return u.createElement("div",{className:_()(zn,Object(j.a)({},"".concat(zn,"-active"),si))},u.createElement(et,Object.assign({},mt,{operationRef:mi,active:si==="date",onSelect:function(wa){fa(yt(Jr,wa,ni&&Object(Q.a)(ni)==="object"?ni.defaultValue:null),"date")}})),u.createElement(qe,Object.assign({},mt,{format:void 0},Ni,Ya,{defaultValue:void 0,operationRef:Ai,active:si==="time",onSelect:function(wa){fa(wa,"time")}})))}var Rr=Vt;function Vr(mt){var Tr=mt.prefixCls,en=mt.generateConfig,Jr=mt.locale,Jn=mt.value,fn="".concat(Tr,"-cell"),Yr=function(li){return u.createElement("td",{key:"week",className:_()(fn,"".concat(fn,"-week"))},en.locale.getWeek(Jr.locale,li))},ni="".concat(Tr,"-week-panel-row"),nn=function(li){return _()(ni,Object(j.a)({},"".concat(ni,"-selected"),Yt(en,Jr.locale,Jn,li)))};return u.createElement(et,Object.assign({},mt,{panelName:"week",prefixColumn:Yr,rowClassName:nn,keyboardConfig:{onLeftRight:null}}))}var hn=Vr;function Ft(mt){var Tr=mt.prefixCls,en=mt.generateConfig,Jr=mt.locale,Jn=mt.viewDate,fn=mt.onNextYear,Yr=mt.onPrevYear,ni=mt.onYearClick,nn=u.useContext(q),zn=nn.hideHeader;if(zn)return null;var li="".concat(Tr,"-header");return u.createElement(we,Object.assign({},mt,{prefixCls:li,onSuperPrev:Yr,onSuperNext:fn}),u.createElement("button",{type:"button",onClick:ni,className:"".concat(Tr,"-year-btn")},en.locale.format(Jr.locale,Jn,Jr.yearFormat)))}var vt=Ft,bt=3,fr=4;function Qt(mt){var Tr=mt.prefixCls,en=mt.locale,Jr=mt.value,Jn=mt.viewDate,fn=mt.generateConfig,Yr=mt.monthCellRender,ni=u.useContext(Kn),nn=ni.rangedValue,zn=ni.hoverRangedValue,li="".concat(Tr,"-cell"),ci=gi({cellPrefixCls:li,value:Jr,generateConfig:fn,rangedValue:nn,hoverRangedValue:zn,isSameCell:function(Ni,ia){return vn(fn,Ni,ia)},isInView:function(){return!0},offsetCell:function(Ni,ia){return fn.addMonth(Ni,ia)}}),si=en.shortMonths||(fn.locale.getShortMonths?fn.locale.getShortMonths(en.locale):[]),Ci=fn.setMonth(Jn,0),mi=Yr?function(Ai){return Yr(Ai,en)}:void 0;return u.createElement(Mn,Object.assign({},mt,{rowNum:fr,colNum:bt,baseDate:Ci,getCellNode:mi,getCellText:function(Ni){return en.monthFormat?fn.locale.format(en.locale,Ni,en.monthFormat):si[fn.getMonth(Ni)]},getCellClassName:ci,getCellDate:fn.addMonth,titleCell:function(Ni){return fn.locale.format(en.locale,Ni,"YYYY-MM")}}))}var Mt=Qt;function qt(mt){var Tr=mt.prefixCls,en=mt.operationRef,Jr=mt.onViewDateChange,Jn=mt.generateConfig,fn=mt.value,Yr=mt.viewDate,ni=mt.onPanelChange,nn=mt.onSelect,zn="".concat(Tr,"-month-panel");en.current={onKeyDown:function(si){return ae(si,{onLeftRight:function(mi){nn(Jn.addMonth(fn||Yr,mi),"key")},onCtrlLeftRight:function(mi){nn(Jn.addYear(fn||Yr,mi),"key")},onUpDown:function(mi){nn(Jn.addMonth(fn||Yr,mi*bt),"key")},onEnter:function(){ni("date",fn||Yr)}})}};var li=function(si){var Ci=Jn.addYear(Yr,si);Jr(Ci),ni(null,Ci)};return u.createElement("div",{className:zn},u.createElement(vt,Object.assign({},mt,{prefixCls:Tr,onPrevYear:function(){li(-1)},onNextYear:function(){li(1)},onYearClick:function(){ni("year",Yr)}})),u.createElement(Mt,Object.assign({},mt,{prefixCls:Tr,onSelect:function(si){nn(si,"mouse"),ni("date",si)}})))}var kt=qt;function er(mt){var Tr=mt.prefixCls,en=mt.generateConfig,Jr=mt.locale,Jn=mt.viewDate,fn=mt.onNextYear,Yr=mt.onPrevYear,ni=mt.onYearClick,nn=u.useContext(q),zn=nn.hideHeader;if(zn)return null;var li="".concat(Tr,"-header");return u.createElement(we,Object.assign({},mt,{prefixCls:li,onSuperPrev:Yr,onSuperNext:fn}),u.createElement("button",{type:"button",onClick:ni,className:"".concat(Tr,"-year-btn")},en.locale.format(Jr.locale,Jn,Jr.yearFormat)))}var Kr=er,Ir=4,Dr=1;function dn(mt){var Tr=mt.prefixCls,en=mt.locale,Jr=mt.value,Jn=mt.viewDate,fn=mt.generateConfig,Yr=u.useContext(Kn),ni=Yr.rangedValue,nn=Yr.hoverRangedValue,zn="".concat(Tr,"-cell"),li=gi({cellPrefixCls:zn,value:Jr,generateConfig:fn,rangedValue:ni,hoverRangedValue:nn,isSameCell:function(Ci,mi){return ur(fn,Ci,mi)},isInView:function(){return!0},offsetCell:function(Ci,mi){return fn.addMonth(Ci,mi*3)}}),ci=fn.setDate(fn.setMonth(Jn,0),1);return u.createElement(Mn,Object.assign({},mt,{rowNum:Dr,colNum:Ir,baseDate:ci,getCellText:function(Ci){return fn.locale.format(en.locale,Ci,en.quarterFormat||"[Q]Q")},getCellClassName:li,getCellDate:function(Ci,mi){return fn.addMonth(Ci,mi*3)},titleCell:function(Ci){return fn.locale.format(en.locale,Ci,"YYYY-[Q]Q")}}))}var yn=dn;function ti(mt){var Tr=mt.prefixCls,en=mt.operationRef,Jr=mt.onViewDateChange,Jn=mt.generateConfig,fn=mt.value,Yr=mt.viewDate,ni=mt.onPanelChange,nn=mt.onSelect,zn="".concat(Tr,"-quarter-panel");en.current={onKeyDown:function(si){return ae(si,{onLeftRight:function(mi){nn(Jn.addMonth(fn||Yr,mi*3),"key")},onCtrlLeftRight:function(mi){nn(Jn.addYear(fn||Yr,mi),"key")},onUpDown:function(mi){nn(Jn.addYear(fn||Yr,mi),"key")}})}};var li=function(si){var Ci=Jn.addYear(Yr,si);Jr(Ci),ni(null,Ci)};return u.createElement("div",{className:zn},u.createElement(Kr,Object.assign({},mt,{prefixCls:Tr,onPrevYear:function(){li(-1)},onNextYear:function(){li(1)},onYearClick:function(){ni("year",Yr)}})),u.createElement(yn,Object.assign({},mt,{prefixCls:Tr,onSelect:function(si){nn(si,"mouse")}})))}var ei=ti;function fi(mt){var Tr=mt.prefixCls,en=mt.generateConfig,Jr=mt.viewDate,Jn=mt.onPrevDecade,fn=mt.onNextDecade,Yr=mt.onDecadeClick,ni=u.useContext(q),nn=ni.hideHeader;if(nn)return null;var zn="".concat(Tr,"-header"),li=en.getYear(Jr),ci=Math.floor(li/je)*je,si=ci+je-1;return u.createElement(we,Object.assign({},mt,{prefixCls:zn,onSuperPrev:Jn,onSuperNext:fn}),u.createElement("button",{type:"button",onClick:Yr,className:"".concat(Tr,"-decade-btn")},ci,"-",si))}var Ei=fi,Di=3,Hi=4;function nt(mt){var Tr=mt.prefixCls,en=mt.value,Jr=mt.viewDate,Jn=mt.locale,fn=mt.generateConfig,Yr=u.useContext(Kn),ni=Yr.rangedValue,nn=Yr.hoverRangedValue,zn="".concat(Tr,"-cell"),li=fn.getYear(Jr),ci=Math.floor(li/je)*je,si=ci+je-1,Ci=fn.setYear(Jr,ci-Math.ceil((Di*Hi-je)/2)),mi=function(ia){var Ki=fn.getYear(ia);return ci<=Ki&&Ki<=si},Ai=gi({cellPrefixCls:zn,value:en,generateConfig:fn,rangedValue:ni,hoverRangedValue:nn,isSameCell:function(ia,Ki){return At(fn,ia,Ki)},isInView:mi,offsetCell:function(ia,Ki){return fn.addYear(ia,Ki)}});return u.createElement(Mn,Object.assign({},mt,{rowNum:Hi,colNum:Di,baseDate:Ci,getCellText:fn.getYear,getCellClassName:Ai,getCellDate:fn.addYear,titleCell:function(ia){return fn.locale.format(Jn.locale,ia,"YYYY")}}))}var Le=nt,je=10;function Xe(mt){var Tr=mt.prefixCls,en=mt.operationRef,Jr=mt.onViewDateChange,Jn=mt.generateConfig,fn=mt.value,Yr=mt.viewDate,ni=mt.sourceMode,nn=mt.onSelect,zn=mt.onPanelChange,li="".concat(Tr,"-year-panel");en.current={onKeyDown:function(Ci){return ae(Ci,{onLeftRight:function(Ai){nn(Jn.addYear(fn||Yr,Ai),"key")},onCtrlLeftRight:function(Ai){nn(Jn.addYear(fn||Yr,Ai*je),"key")},onUpDown:function(Ai){nn(Jn.addYear(fn||Yr,Ai*Di),"key")},onEnter:function(){zn(ni==="date"?"date":"month",fn||Yr)}})}};var ci=function(Ci){var mi=Jn.addYear(Yr,Ci*10);Jr(mi),zn(null,mi)};return u.createElement("div",{className:li},u.createElement(Ei,Object.assign({},mt,{prefixCls:Tr,onPrevDecade:function(){ci(-1)},onNextDecade:function(){ci(1)},onDecadeClick:function(){zn("decade",Yr)}})),u.createElement(Le,Object.assign({},mt,{prefixCls:Tr,onSelect:function(Ci){zn(ni==="date"?"date":"month",Ci),nn(Ci,"mouse")}})))}var tt=Xe;function Ze(mt){var Tr=mt.prefixCls,en=mt.generateConfig,Jr=mt.viewDate,Jn=mt.onPrevDecades,fn=mt.onNextDecades,Yr=u.useContext(q),ni=Yr.hideHeader;if(ni)return null;var nn="".concat(Tr,"-header"),zn=en.getYear(Jr),li=Math.floor(zn/gn)*gn,ci=li+gn-1;return u.createElement(we,Object.assign({},mt,{prefixCls:nn,onSuperPrev:Jn,onSuperNext:fn}),li,"-",ci)}var st=Ze,Et=3,gt=4;function pr(mt){var Tr=Qr-1,en=mt.prefixCls,Jr=mt.viewDate,Jn=mt.generateConfig,fn=mt.disabledDate,Yr="".concat(en,"-cell"),ni=Jn.getYear(Jr),nn=Math.floor(ni/Qr)*Qr,zn=Math.floor(ni/gn)*gn,li=zn+gn-1,ci=Jn.setYear(Jr,zn-Math.ceil((Et*gt*Qr-gn)/2)),si=function(mi){var Ai,Ni=fn&&fn(mi),ia=Jn.getYear(mi),Ki=ia+Tr;return Ai={},Object(j.a)(Ai,"".concat(Yr,"-disabled"),Ni),Object(j.a)(Ai,"".concat(Yr,"-in-view"),zn<=ia&&Ki<=li),Object(j.a)(Ai,"".concat(Yr,"-selected"),ia===nn),Ai};return u.createElement(Mn,Object.assign({},mt,{rowNum:gt,colNum:Et,baseDate:ci,getCellText:function(mi){var Ai=Jn.getYear(mi);return"".concat(Ai,"-").concat(Ai+Tr)},getCellClassName:si,getCellDate:function(mi,Ai){return Jn.addYear(mi,Ai*Qr)}}))}var qr=pr,Qr=10,gn=Qr*10;function vr(mt){var Tr=mt.prefixCls,en=mt.onViewDateChange,Jr=mt.generateConfig,Jn=mt.viewDate,fn=mt.operationRef,Yr=mt.onSelect,ni=mt.onPanelChange,nn="".concat(Tr,"-decade-panel");fn.current={onKeyDown:function(si){return ae(si,{onLeftRight:function(mi){Yr(Jr.addYear(Jn,mi*Qr),"key")},onCtrlLeftRight:function(mi){Yr(Jr.addYear(Jn,mi*gn),"key")},onUpDown:function(mi){Yr(Jr.addYear(Jn,mi*Qr*Et),"key")},onEnter:function(){ni("year",Jn)}})}};var zn=function(si){var Ci=Jr.addYear(Jn,si*gn);en(Ci),ni(null,Ci)},li=function(si){Yr(si,"mouse"),ni("year",si)};return u.createElement("div",{className:nn},u.createElement(st,Object.assign({},mt,{prefixCls:Tr,onPrevDecades:function(){zn(-1)},onNextDecades:function(){zn(1)}})),u.createElement(qr,Object.assign({},mt,{prefixCls:Tr,onSelect:li})))}var Vn=vr;function kr(mt,Tr,en){return en?u.createElement("div",{className:"".concat(mt,"-footer-extra")},en(Tr)):null}function Bn(mt){var Tr=mt.prefixCls,en=mt.rangeList,Jr=en===void 0?[]:en,Jn=mt.components,fn=Jn===void 0?{}:Jn,Yr=mt.needConfirmButton,ni=mt.onNow,nn=mt.onOk,zn=mt.okDisabled,li=mt.showNow,ci=mt.locale,si,Ci;if(Jr.length){var mi=fn.rangeItem||"span";si=u.createElement(u.Fragment,null,Jr.map(function(Ni){var ia=Ni.label,Ki=Ni.onClick,fa=Ni.onMouseEnter,Ya=Ni.onMouseLeave;return u.createElement("li",{key:ia,className:"".concat(Tr,"-preset")},u.createElement(mi,{onClick:Ki,onMouseEnter:fa,onMouseLeave:Ya},ia))}))}if(Yr){var Ai=fn.button||"button";ni&&!si&&li!==!1&&(si=u.createElement("li",{className:"".concat(Tr,"-now")},u.createElement("a",{className:"".concat(Tr,"-now-btn"),onClick:ni},ci.now))),Ci=Yr&&u.createElement("li",{className:"".concat(Tr,"-ok")},u.createElement(Ai,{disabled:zn,onClick:nn},ci.ok))}return!si&&!Ci?null:u.createElement("ul",{className:"".concat(Tr,"-ranges")},si,Ci)}function on(mt){var Tr,en=mt.prefixCls,Jr=en===void 0?"rc-picker":en,Jn=mt.className,fn=mt.style,Yr=mt.locale,ni=mt.generateConfig,nn=mt.value,zn=mt.defaultValue,li=mt.pickerValue,ci=mt.defaultPickerValue,si=mt.disabledDate,Ci=mt.mode,mi=mt.picker,Ai=mi===void 0?"date":mi,Ni=mt.tabIndex,ia=Ni===void 0?0:Ni,Ki=mt.showNow,fa=mt.showTime,Ya=mt.showToday,xa=mt.renderExtraFooter,wa=mt.hideHeader,Da=mt.onSelect,ja=mt.onChange,ko=mt.onPanelChange,ro=mt.onMouseDown,pa=mt.onPickerValueChange,Ea=mt.onOk,Fa=mt.components,Ka=mt.direction,lo=mt.hourStep,so=lo===void 0?1:lo,Co=mt.minuteStep,Lo=Co===void 0?1:Co,is=mt.secondStep,cs=is===void 0?1:is,Rs=Ai==="date"&&!!fa||Ai==="time",Ko=24%so===0,as=60%Lo===0,co=60%cs===0,Ao=u.useContext(q),$a=Ao.operationRef,ss=Ao.panelRef,_s=Ao.onSelect,Fo=Ao.hideRanges,il=Ao.defaultOpenValue,Eo=u.useContext(Kn),zo=Eo.inRange,Fs=Eo.panelPosition,ms=Eo.rangedValue,hs=Eo.hoverRangedValue,wn=u.useRef({}),Ns=u.useRef(!0),Ll=Object(V.a)(null,{value:nn,defaultValue:zn,postState:function(vi){return!vi&&il&&Ai==="time"?il:vi}}),el=Object(z.a)(Ll,2),Gs=el[0],ds=el[1],ks=Object(V.a)(null,{value:li,defaultValue:ci||Gs,postState:function(vi){return vi||ni.getNow()}}),Qs=Object(z.a)(ks,2),tl=Qs[0],xs=Qs[1],Bs=function(vi){xs(vi),pa&&pa(vi)},al=function(vi){var Qi=fe[Ai];return Qi?Qi(vi):vi},Js=Object(V.a)(function(){return Ai==="time"?"time":al("date")},{value:Ci}),Vo=Object(z.a)(Js,2),No=Vo[0],fs=Vo[1];u.useEffect(function(){fs(Ai)},[Ai]);var Ds=u.useState(function(){return No}),go=Object(z.a)(Ds,2),Ut=go[0],or=go[1],Nn=function(vi,Qi){var sa=al(vi||No);or(No),fs(sa),ko&&(No!==sa||pt(ni,tl,tl))&&ko(Qi,sa)},hi=function(vi,Qi){var sa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(No===Ai||sa)&&(ds(vi),Da&&Da(vi),_s&&_s(vi,Qi),ja&&!pt(ni,vi,Gs)&&ja(vi))},Nt=function(vi){return wn.current&&wn.current.onKeyDown?([G.a.LEFT,G.a.RIGHT,G.a.UP,G.a.DOWN,G.a.PAGE_UP,G.a.PAGE_DOWN,G.a.ENTER].includes(vi.which)&&vi.preventDefault(),wn.current.onKeyDown(vi)):(Object(x.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},ce=function(vi){wn.current&&wn.current.onBlur&&wn.current.onBlur(vi)};$a&&Fs!=="right"&&($a.current={onKeyDown:Nt,onClose:function(){wn.current&&wn.current.onClose&&wn.current.onClose()}}),u.useEffect(function(){nn&&!Ns.current&&xs(nn)},[nn]),u.useEffect(function(){Ns.current=!1},[]);var xe,Oe=Object(K.a)(Object(K.a)({},mt),{},{operationRef:wn,prefixCls:Jr,viewDate:tl,value:Gs,onViewDateChange:Bs,sourceMode:Ut,onPanelChange:Nn,disabledDate:No!=="decade"?si:void 0});delete Oe.onChange,delete Oe.onSelect;switch(No){case"decade":xe=u.createElement(Vn,Object.assign({},Oe,{onSelect:function(vi,Qi){Bs(vi),hi(vi,Qi)}}));break;case"year":xe=u.createElement(tt,Object.assign({},Oe,{onSelect:function(vi,Qi){Bs(vi),hi(vi,Qi)}}));break;case"month":xe=u.createElement(kt,Object.assign({},Oe,{onSelect:function(vi,Qi){Bs(vi),hi(vi,Qi)}}));break;case"quarter":xe=u.createElement(ei,Object.assign({},Oe,{onSelect:function(vi,Qi){Bs(vi),hi(vi,Qi)}}));break;case"week":xe=u.createElement(hn,Object.assign({},Oe,{onSelect:function(vi,Qi){Bs(vi),hi(vi,Qi)}}));break;case"time":delete Oe.showTime,xe=u.createElement(qe,Object.assign({},Oe,Object(Q.a)(fa)==="object"?fa:null,{onSelect:function(vi,Qi){Bs(vi),hi(vi,Qi)}}));break;default:fa?xe=u.createElement(Rr,Object.assign({},Oe,{onSelect:function(vi,Qi){Bs(vi),hi(vi,Qi)}})):xe=u.createElement(et,Object.assign({},Oe,{onSelect:function(vi,Qi){Bs(vi),hi(vi,Qi)}}))}var Qe,Dt,lr=function(){var vi=ni.getNow(),Qi=Jt(ni.getHour(vi),ni.getMinute(vi),ni.getSecond(vi),Ko?so:1,as?Lo:1,co?cs:1),sa=hr(ni,vi,Qi[0],Qi[1],Qi[2]);hi(sa,"submit")};Fo||(Qe=kr(Jr,No,xa),Dt=Bn({prefixCls:Jr,components:Fa,needConfirmButton:Rs,okDisabled:!Gs||si&&si(Gs),locale:Yr,showNow:Ki,onNow:Rs&&lr,onOk:function(){Gs&&(hi(Gs,"submit",!0),Ea&&Ea(Gs))}}));var Zr;if(Ya&&No==="date"&&Ai==="date"&&!fa){var mn=ni.getNow(),Dn="".concat(Jr,"-today-btn"),ui=si&&si(mn);Zr=u.createElement("a",{className:_()(Dn,ui&&"".concat(Dn,"-disabled")),"aria-disabled":ui,onClick:function(){ui||hi(mn,"mouse",!0)}},Yr.today)}return u.createElement(q.Provider,{value:Object(K.a)(Object(K.a)({},Ao),{},{hideHeader:"hideHeader"in mt?wa:Ao.hideHeader,hidePrevBtn:zo&&Fs==="right",hideNextBtn:zo&&Fs==="left"})},u.createElement("div",{tabIndex:ia,className:_()("".concat(Jr,"-panel"),Jn,(Tr={},Object(j.a)(Tr,"".concat(Jr,"-panel-has-range"),ms&&ms[0]&&ms[1]),Object(j.a)(Tr,"".concat(Jr,"-panel-has-range-hover"),hs&&hs[0]&&hs[1]),Object(j.a)(Tr,"".concat(Jr,"-panel-rtl"),Ka==="rtl"),Tr)),style:fn,onKeyDown:Nt,onBlur:ce,onMouseDown:ro,ref:ss},xe,Qe||Dt||Zr?u.createElement("div",{className:"".concat(Jr,"-footer")},Qe,Dt,Zr):null))}var jr=on,ai=n("JX7q"),Oi=n("i8i4"),Gi=n.n(Oi),rn=n("l4aY"),Cn=n("m+aA"),Yn=n("c+Xe"),Gt=n("zT1h"),Ot=n("QC+M");function Rt(mt,Tr,en){return en?mt[0]===Tr[0]:mt[0]===Tr[0]&&mt[1]===Tr[1]}function jt(mt,Tr,en){var Jr=mt[Tr]||{};return Object(K.a)(Object(K.a)({},Jr),en)}function zt(mt,Tr,en,Jr){for(var Jn=en.points,fn=Object.keys(mt),Yr=0;Yr<fn.length;Yr+=1){var ni=fn[Yr];if(Rt(mt[ni].points,Jn,Jr))return"".concat(Tr,"-placement-").concat(ni)}return""}var Lt=n("Ff2n"),cr=n("xEkU"),Ar=n.n(cr),br=n("9mu1"),Pr=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function Xn(mt,Tr){var en={};return en[mt.toLowerCase()]=Tr.toLowerCase(),en["Webkit".concat(mt)]="webkit".concat(Tr),en["Moz".concat(mt)]="moz".concat(Tr),en["ms".concat(mt)]="MS".concat(Tr),en["O".concat(mt)]="o".concat(Tr.toLowerCase()),en}function Pn(mt,Tr){var en={animationend:Xn("Animation","AnimationEnd"),transitionend:Xn("Transition","TransitionEnd")};return mt&&("AnimationEvent"in Tr||delete en.animationend.animation,"TransitionEvent"in Tr||delete en.transitionend.transition),en}var di=Pn(Pr,typeof window!="undefined"?window:{}),An={};if(Pr){var Ur=document.createElement("div");An=Ur.style}var In={};function Qn(mt){if(In[mt])return In[mt];var Tr=di[mt];if(Tr)for(var en=Object.keys(Tr),Jr=en.length,Jn=0;Jn<Jr;Jn+=1){var fn=en[Jn];if(Object.prototype.hasOwnProperty.call(Tr,fn)&&fn in An)return In[mt]=Tr[fn],In[mt]}return""}var $n=Qn("animationend"),oi=Qn("transitionend"),Ti=!!($n&&oi);function ki(mt,Tr){if(!mt)return null;if(Object(Q.a)(mt)==="object"){var en=Tr.replace(/-\w/g,function(Jr){return Jr[1].toUpperCase()});return mt[en]}return"".concat(mt,"-").concat(Tr)}var Ri="none",oa="appear",ma="enter",aa="leave";function ba(mt){var Tr=mt,en=!!u.forwardRef;Object(Q.a)(mt)==="object"&&(Tr=mt.transitionSupport,en="forwardRef"in mt?mt.forwardRef:en);function Jr(fn){return!!(fn.motionName&&Tr)}var Jn=function(fn){Object(X.a)(ni,fn);var Yr=Object(F.a)(ni);function ni(){var nn;return Object(B.a)(this,ni),nn=Yr.apply(this,arguments),nn.$cacheEle=null,nn.node=null,nn.raf=null,nn.destroyed=!1,nn.deadlineId=null,nn.state={status:Ri,statusActive:!1,newStatus:!1,statusStyle:null},nn.onDomUpdate=function(){var zn=nn.state,li=zn.status,ci=zn.newStatus,si=nn.props,Ci=si.onAppearStart,mi=si.onEnterStart,Ai=si.onLeaveStart,Ni=si.onAppearActive,ia=si.onEnterActive,Ki=si.onLeaveActive,fa=si.motionAppear,Ya=si.motionEnter,xa=si.motionLeave;if(!Jr(nn.props))return;var wa=nn.getElement();nn.$cacheEle!==wa&&(nn.removeEventListener(nn.$cacheEle),nn.addEventListener(wa),nn.$cacheEle=wa),ci&&li===oa&&fa?nn.updateStatus(Ci,null,null,function(){nn.updateActiveStatus(Ni,oa)}):ci&&li===ma&&Ya?nn.updateStatus(mi,null,null,function(){nn.updateActiveStatus(ia,ma)}):ci&&li===aa&&xa&&nn.updateStatus(Ai,null,null,function(){nn.updateActiveStatus(Ki,aa)})},nn.onMotionEnd=function(zn){if(zn&&!zn.deadline&&zn.target!==nn.getElement())return;var li=nn.state,ci=li.status,si=li.statusActive,Ci=nn.props,mi=Ci.onAppearEnd,Ai=Ci.onEnterEnd,Ni=Ci.onLeaveEnd;ci===oa&&si?nn.updateStatus(mi,{status:Ri},zn):ci===ma&&si?nn.updateStatus(Ai,{status:Ri},zn):ci===aa&&si&&nn.updateStatus(Ni,{status:Ri},zn)},nn.setNodeRef=function(zn){var li=nn.props.internalRef;nn.node=zn,Object(Yn.b)(li,zn)},nn.getElement=function(){try{return Object(Cn.a)(nn.node||Object(ai.a)(nn))}catch(zn){return nn.$cacheEle}},nn.addEventListener=function(zn){if(!zn)return;zn.addEventListener(oi,nn.onMotionEnd),zn.addEventListener($n,nn.onMotionEnd)},nn.removeEventListener=function(zn){if(!zn)return;zn.removeEventListener(oi,nn.onMotionEnd),zn.removeEventListener($n,nn.onMotionEnd)},nn.updateStatus=function(zn,li,ci,si){var Ci=zn?zn(nn.getElement(),ci):null;if(Ci===!1||nn.destroyed)return;var mi;si&&(mi=function(){nn.nextFrame(si)}),nn.setState(Object(K.a)({statusStyle:Object(Q.a)(Ci)==="object"?Ci:null,newStatus:!1},li),mi)},nn.updateActiveStatus=function(zn,li){nn.nextFrame(function(){var ci=nn.state.status;if(ci!==li)return;var si=nn.props.motionDeadline;nn.updateStatus(zn,{statusActive:!0}),si>0&&(nn.deadlineId=setTimeout(function(){nn.onMotionEnd({deadline:!0})},si))})},nn.nextFrame=function(zn){nn.cancelNextFrame(),nn.raf=Ar()(zn)},nn.cancelNextFrame=function(){nn.raf&&(Ar.a.cancel(nn.raf),nn.raf=null)},nn}return Object(P.a)(ni,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var zn,li=this.state,ci=li.status,si=li.statusActive,Ci=li.statusStyle,mi=this.props,Ai=mi.children,Ni=mi.motionName,ia=mi.visible,Ki=mi.removeOnLeave,fa=mi.leavedClassName,Ya=mi.eventProps;return Ai?ci===Ri||!Jr(this.props)?ia?Ai(Object(K.a)({},Ya),this.setNodeRef):Ki?null:Ai(Object(K.a)(Object(K.a)({},Ya),{},{className:fa}),this.setNodeRef):Ai(Object(K.a)(Object(K.a)({},Ya),{},{className:_()(ki(Ni,ci),(zn={},Object(j.a)(zn,ki(Ni,"".concat(ci,"-active")),si),Object(j.a)(zn,Ni,typeof Ni=="string"),zn)),style:Ci}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(zn,li){var ci=li.prevProps,si=li.status;if(!Jr(zn))return{};var Ci=zn.visible,mi=zn.motionAppear,Ai=zn.motionEnter,Ni=zn.motionLeave,ia=zn.motionLeaveImmediately,Ki={prevProps:zn};return(si===oa&&!mi||si===ma&&!Ai||si===aa&&!Ni)&&(Ki.status=Ri,Ki.statusActive=!1,Ki.newStatus=!1),!ci&&Ci&&mi&&(Ki.status=oa,Ki.statusActive=!1,Ki.newStatus=!0),ci&&!ci.visible&&Ci&&Ai&&(Ki.status=ma,Ki.statusActive=!1,Ki.newStatus=!0),(ci&&ci.visible&&!Ci&&Ni||!ci&&ia&&!Ci&&Ni)&&(Ki.status=aa,Ki.statusActive=!1,Ki.newStatus=!0),Ki}}]),ni}(u.Component);return Jn.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},en?u.forwardRef(function(fn,Yr){return u.createElement(Jn,Object.assign({internalRef:Yr},fn))}):Jn}var yi=ba(Ti),kn="add",Ui="keep",ha="remove",ta="removed";function ra(mt){var Tr;return mt&&Object(Q.a)(mt)==="object"&&"key"in mt?Tr=mt:Tr={key:mt},Object(K.a)(Object(K.a)({},Tr),{},{key:String(Tr.key)})}function Lr(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return mt.map(ra)}function xr(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],en=[],Jr=0,Jn=Tr.length,fn=Lr(mt),Yr=Lr(Tr);fn.forEach(function(zn){for(var li=!1,ci=Jr;ci<Jn;ci+=1){var si=Yr[ci];if(si.key===zn.key){Jr<ci&&(en=en.concat(Yr.slice(Jr,ci).map(function(Ci){return Object(K.a)(Object(K.a)({},Ci),{},{status:kn})})),Jr=ci),en.push(Object(K.a)(Object(K.a)({},si),{},{status:Ui})),Jr+=1,li=!0;break}}li||en.push(Object(K.a)(Object(K.a)({},zn),{},{status:ha}))}),Jr<Jn&&(en=en.concat(Yr.slice(Jr).map(function(zn){return Object(K.a)(Object(K.a)({},zn),{},{status:kn})})));var ni={};en.forEach(function(zn){var li=zn.key;ni[li]=(ni[li]||0)+1});var nn=Object.keys(ni).filter(function(zn){return ni[zn]>1});return nn.forEach(function(zn){en=en.filter(function(li){var ci=li.key,si=li.status;return ci!==zn||si!==ha}),en.forEach(function(li){li.key===zn&&(li.status=Ui)})}),en}var Tn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function mr(mt){var Tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yi,en=function(Jr){Object(X.a)(fn,Jr);var Jn=Object(F.a)(fn);function fn(){var Yr;return Object(B.a)(this,fn),Yr=Jn.apply(this,arguments),Yr.state={keyEntities:[]},Yr.removeKey=function(ni){Yr.setState(function(nn){var zn=nn.keyEntities;return{keyEntities:zn.map(function(li){return li.key!==ni?li:Object(K.a)(Object(K.a)({},li),{},{status:ta})})}})},Yr}return Object(P.a)(fn,[{key:"render",value:function(){var ni=this,nn=this.state.keyEntities,zn=this.props,li=zn.component,ci=zn.children,si=Object(Lt.a)(zn,["component","children"]),Ci=li||u.Fragment,mi={};return Tn.forEach(function(Ai){mi[Ai]=si[Ai],delete si[Ai]}),delete si.keys,u.createElement(Ci,Object.assign({},si),nn.map(function(Ai){var Ni=Ai.status,ia=Object(Lt.a)(Ai,["status"]),Ki=Ni===kn||Ni===Ui;return u.createElement(Tr,Object.assign({},mi,{key:ia.key,visible:Ki,eventProps:ia,onLeaveEnd:function(){mi.onLeaveEnd&&mi.onLeaveEnd.apply(mi,arguments),ni.removeKey(ia.key)}}),ci)}))}}],[{key:"getDerivedStateFromProps",value:function(ni,nn){var zn=ni.keys,li=nn.keyEntities,ci=Lr(zn);if(!mt)return{keyEntities:ci.map(function(mi){return Object(K.a)(Object(K.a)({},mi),{},{status:Ui})})};var si=xr(li,ci),Ci=li.length;return{keyEntities:si.filter(function(mi){for(var Ai=null,Ni=0;Ni<Ci;Ni+=1){var ia=li[Ni];if(ia.key===mi.key){Ai=ia;break}}return!(Ai&&Ai.status===ta&&mi.status===ha)})}}}]),fn}(u.Component);return en.defaultProps={component:"div"},en}var Mr=mr(Ti),Xr=yi,un=function(Tr,en){var Jr=Tr.prefixCls,Jn=Tr.className,fn=Tr.style,Yr=Tr.children,ni=Tr.onMouseEnter,nn=Tr.onMouseLeave,zn=Tr.onMouseDown,li=Tr.onTouchStart,ci=Yr;return u.Children.count(Yr)>1&&(ci=u.createElement("div",{className:"".concat(Jr,"-content")},Yr)),u.createElement("div",{ref:en,className:Jn,onMouseEnter:ni,onMouseLeave:nn,onMouseDown:zn,onTouchStart:li,style:fn},ci)},Fn=u.forwardRef(un);Fn.displayName="PopupInner";var _t=Fn;function Or(mt){var Tr=mt.prefixCls,en=mt.motion,Jr=mt.animation,Jn=mt.transitionName;return en||(Jr?{motionName:"".concat(Tr,"-").concat(Jr)}:Jn?{motionName:Jn}:null)}function Nr(mt){return mt&&mt.motionName}var tn=function(mt){Object(X.a)(en,mt);var Tr=Object(F.a)(en);function en(){var Jr;return Object(B.a)(this,en),Jr=Tr.apply(this,arguments),Jr.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Jr.popupRef=o.a.createRef(),Jr.alignRef=o.a.createRef(),Jr.nextFrameState=null,Jr.nextFrameId=null,Jr.onAlign=function(Jn,fn){var Yr=Jr.state.status,ni=Jr.props,nn=ni.getClassNameFromAlign,zn=ni.onAlign,li=nn(fn);Yr==="align"?Jr.setState({alignClassName:li,status:"aligned"},function(){Jr.alignRef.current.forceAlign()}):Yr==="aligned"?(Jr.setState({alignClassName:li,status:"afterAlign"}),zn(Jn,fn)):Jr.setState({alignClassName:li})},Jr.onMotionEnd=function(){var Jn=Jr.props.visible;Jr.setState({status:Jn?"AfterMotion":"stable",inMotion:!1})},Jr.setStateOnNextFrame=function(Jn){Jr.cancelFrameState(),Jr.nextFrameState=Object(K.a)(Object(K.a)({},Jr.nextFrameState),Jn),Jr.nextFrameId=Ar()(function(){var fn=Object(K.a)({},Jr.nextFrameState);Jr.nextFrameState=null,Jr.setState(fn)})},Jr.getMotion=function(){return Object(K.a)({},Or(Jr.props))},Jr.getAlignTarget=function(){var Jn=Jr.props,fn=Jn.point,Yr=Jn.getRootDomNode;return fn||Yr},Jr.cancelFrameState=function(){Ar.a.cancel(Jr.nextFrameId)},Jr.renderPopupElement=function(){var Jn=Jr.state,fn=Jn.status,Yr=Jn.targetHeight,ni=Jn.targetWidth,nn=Jn.alignClassName,zn=Jr.props,li=zn.prefixCls,ci=zn.className,si=zn.style,Ci=zn.stretch,mi=zn.visible,Ai=zn.align,Ni=zn.destroyPopupOnHide,ia=zn.onMouseEnter,Ki=zn.onMouseLeave,fa=zn.onMouseDown,Ya=zn.onTouchStart,xa=zn.children,wa=_()(li,ci,nn),Da="".concat(li,"-hidden"),ja={};Ci&&(Ci.indexOf("height")!==-1?ja.height=Yr:Ci.indexOf("minHeight")!==-1&&(ja.minHeight=Yr),Ci.indexOf("width")!==-1?ja.width=ni:Ci.indexOf("minWidth")!==-1&&(ja.minWidth=ni));var ko=Object(K.a)(Object(K.a)(Object(K.a)(Object(K.a)({},ja),Jr.getZIndexStyle()),si),{},{opacity:fn==="stable"||!mi?void 0:0,pointerEvents:fn==="stable"||!mi?void 0:"none"}),ro=Jr.getMotion(),pa=mi;mi&&fn!=="beforeMotion"&&fn!=="motion"&&fn!=="stable"&&(ro.motionAppear=!1,ro.motionEnter=!1,ro.motionLeave=!1),(fn==="afterAlign"||fn==="beforeMotion")&&(pa=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(Ka){var lo=ro==null?void 0:ro[Ka];ro[Ka]=function(){for(var so=arguments.length,Co=new Array(so),Lo=0;Lo<so;Lo++)Co[Lo]=arguments[Lo];lo==null||lo.apply(void 0,Co),Jr.setState({inMotion:!0})}});var Ea=!mi||fn!=="align"&&fn!=="aligned"&&fn!=="stable",Fa=!0;return fn==="stable"&&(Fa=mi),Ni&&!Fa?null:o.a.createElement(Xr,Object.assign({visible:pa},ro,{removeOnLeave:!1,onEnterEnd:Jr.onMotionEnd,onLeaveEnd:Jr.onMotionEnd,leavedClassName:Da}),function(Ka,lo){var so=Ka.style,Co=Ka.className;return o.a.createElement(br.a,{target:Jr.getAlignTarget(),key:"popup",ref:Jr.alignRef,monitorWindowResize:!0,disabled:Ea,align:Ai,onAlign:Jr.onAlign},o.a.createElement(_t,{prefixCls:li,className:_()(wa,Co),ref:Object(Yn.a)(lo,Jr.popupRef),onMouseEnter:ia,onMouseLeave:Ki,onMouseDown:fa,onTouchStart:Ya,style:Object(K.a)(Object(K.a)({},ko),so)},xa))})},Jr.renderMaskElement=function(){var Jn=Jr.props,fn=Jn.mask,Yr=Jn.maskMotion,ni=Jn.maskTransitionName,nn=Jn.maskAnimation,zn=Jn.prefixCls,li=Jn.visible;if(!fn)return null;var ci={};return Yr&&Yr.motionName&&(ci=Object(K.a)({motionAppear:!0},Or({motion:Yr,prefixCls:zn,transitionName:ni,animation:nn}))),o.a.createElement(Xr,Object.assign({},ci,{visible:li,removeOnLeave:!0}),function(si){var Ci=si.className;return o.a.createElement("div",{style:Jr.getZIndexStyle(),key:"mask",className:_()("".concat(zn,"-mask"),Ci)})})},Jr}return Object(P.a)(en,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Jn=this.state.status,fn=this.props,Yr=fn.getRootDomNode,ni=fn.visible,nn=fn.stretch;if(this.cancelFrameState(),ni&&Jn!=="stable")switch(Jn){case null:{this.setStateOnNextFrame({status:nn?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Nr(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var zn=["measure","align",null,"beforeMotion","motion"],li=zn.indexOf(Jn),ci=zn[li+1];li!==-1&&ci&&this.setStateOnNextFrame({status:ci})}}if(Jn==="measure"){var si=Yr();si&&this.setStateOnNextFrame({targetHeight:si.offsetHeight,targetWidth:si.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Jn=this.props.zIndex;return{zIndex:Jn}}},{key:"render",value:function(){return o.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Jn,fn){var Yr=Jn.visible,ni=Object(Lt.a)(Jn,["visible"]),nn=fn.prevVisible,zn=fn.status,li=fn.inMotion,ci={prevVisible:Yr,status:zn},si=Or(ni);return nn===null&&Yr===!1?(ci.status="stable",ci.inMotion=!1):Yr!==nn&&(ci.inMotion=!1,Yr||Nr(si)&&li?ci.status=null:ci.status="stable",Yr&&(ci.alignClassName=null)),ci}}]),en}(u.Component),xn=tn,Ln=u.createContext(null),Sn=Ln;function qn(){}function Wn(){return""}function pi(){return window.document}var Pi=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function bi(mt){var Tr=function(en){Object(X.a)(Jn,en);var Jr=Object(F.a)(Jn);function Jn(fn){var Yr;Object(B.a)(this,Jn),Yr=Jr.call(this,fn),Yr.popupRef=o.a.createRef(),Yr.triggerRef=o.a.createRef(),Yr.onMouseEnter=function(nn){var zn=Yr.props.mouseEnterDelay;Yr.fireEvents("onMouseEnter",nn),Yr.delaySetPopupVisible(!0,zn,zn?null:nn)},Yr.onMouseMove=function(nn){Yr.fireEvents("onMouseMove",nn),Yr.setPoint(nn)},Yr.onMouseLeave=function(nn){Yr.fireEvents("onMouseLeave",nn),Yr.delaySetPopupVisible(!1,Yr.props.mouseLeaveDelay)},Yr.onPopupMouseEnter=function(){Yr.clearDelayTimer()},Yr.onPopupMouseLeave=function(nn){if(nn.relatedTarget&&!nn.relatedTarget.setTimeout&&Yr.popupRef.current&&Yr.popupRef.current.popupRef.current&&Object(rn.a)(Yr.popupRef.current.popupRef.current,nn.relatedTarget))return;Yr.delaySetPopupVisible(!1,Yr.props.mouseLeaveDelay)},Yr.onFocus=function(nn){Yr.fireEvents("onFocus",nn),Yr.clearDelayTimer(),Yr.isFocusToShow()&&(Yr.focusTime=Date.now(),Yr.delaySetPopupVisible(!0,Yr.props.focusDelay))},Yr.onMouseDown=function(nn){Yr.fireEvents("onMouseDown",nn),Yr.preClickTime=Date.now()},Yr.onTouchStart=function(nn){Yr.fireEvents("onTouchStart",nn),Yr.preTouchTime=Date.now()},Yr.onBlur=function(nn){Yr.fireEvents("onBlur",nn),Yr.clearDelayTimer(),Yr.isBlurToHide()&&Yr.delaySetPopupVisible(!1,Yr.props.blurDelay)},Yr.onContextMenu=function(nn){nn.preventDefault(),Yr.fireEvents("onContextMenu",nn),Yr.setPopupVisible(!0,nn)},Yr.onContextMenuClose=function(){Yr.isContextMenuToShow()&&Yr.close()},Yr.onClick=function(nn){if(Yr.fireEvents("onClick",nn),Yr.focusTime){var zn;if(Yr.preClickTime&&Yr.preTouchTime?zn=Math.min(Yr.preClickTime,Yr.preTouchTime):Yr.preClickTime?zn=Yr.preClickTime:Yr.preTouchTime&&(zn=Yr.preTouchTime),Math.abs(zn-Yr.focusTime)<20)return;Yr.focusTime=0}Yr.preClickTime=0,Yr.preTouchTime=0,Yr.isClickToShow()&&(Yr.isClickToHide()||Yr.isBlurToHide())&&nn&&nn.preventDefault&&nn.preventDefault();var li=!Yr.state.popupVisible;(Yr.isClickToHide()&&!li||li&&Yr.isClickToShow())&&Yr.setPopupVisible(!Yr.state.popupVisible,nn)},Yr.onPopupMouseDown=function(){if(Yr.hasPopupMouseDown=!0,clearTimeout(Yr.mouseDownTimeout),Yr.mouseDownTimeout=window.setTimeout(function(){Yr.hasPopupMouseDown=!1},0),Yr.context){var nn;(nn=Yr.context).onPopupMouseDown.apply(nn,arguments)}},Yr.onDocumentClick=function(nn){if(Yr.props.mask&&!Yr.props.maskClosable)return;var zn=nn.target,li=Yr.getRootDomNode(),ci=Yr.getPopupDomNode();!Object(rn.a)(li,zn)&&!Object(rn.a)(ci,zn)&&!Yr.hasPopupMouseDown&&Yr.close()},Yr.getRootDomNode=function(){var nn=Yr.props.getTriggerDOMNode;if(nn)return nn(Yr.triggerRef.current);try{var zn=Object(Cn.a)(Yr.triggerRef.current);if(zn)return zn}catch(li){}return Gi.a.findDOMNode(Object(ai.a)(Yr))},Yr.getPopupClassNameFromAlign=function(nn){var zn=[],li=Yr.props,ci=li.popupPlacement,si=li.builtinPlacements,Ci=li.prefixCls,mi=li.alignPoint,Ai=li.getPopupClassNameFromAlign;return ci&&si&&zn.push(zt(si,Ci,nn,mi)),Ai&&zn.push(Ai(nn)),zn.join(" ")},Yr.getComponent=function(){var nn=Yr.props,zn=nn.prefixCls,li=nn.destroyPopupOnHide,ci=nn.popupClassName,si=nn.onPopupAlign,Ci=nn.popupMotion,mi=nn.popupAnimation,Ai=nn.popupTransitionName,Ni=nn.popupStyle,ia=nn.mask,Ki=nn.maskAnimation,fa=nn.maskTransitionName,Ya=nn.maskMotion,xa=nn.zIndex,wa=nn.popup,Da=nn.stretch,ja=nn.alignPoint,ko=Yr.state,ro=ko.popupVisible,pa=ko.point,Ea=Yr.getPopupAlign(),Fa={};return Yr.isMouseEnterToShow()&&(Fa.onMouseEnter=Yr.onPopupMouseEnter),Yr.isMouseLeaveToHide()&&(Fa.onMouseLeave=Yr.onPopupMouseLeave),Fa.onMouseDown=Yr.onPopupMouseDown,Fa.onTouchStart=Yr.onPopupMouseDown,o.a.createElement(xn,Object.assign({prefixCls:zn,destroyPopupOnHide:li,visible:ro,point:ja&&pa,className:ci,align:Ea,onAlign:si,animation:mi,getClassNameFromAlign:Yr.getPopupClassNameFromAlign},Fa,{stretch:Da,getRootDomNode:Yr.getRootDomNode,style:Ni,mask:ia,zIndex:xa,transitionName:Ai,maskAnimation:Ki,maskTransitionName:fa,maskMotion:Ya,ref:Yr.popupRef,motion:Ci}),typeof wa=="function"?wa():wa)},Yr.getContainer=function(){var nn=Object(ai.a)(Yr),zn=nn.props,li=document.createElement("div");li.style.position="absolute",li.style.top="0",li.style.left="0",li.style.width="100%";var ci=zn.getPopupContainer?zn.getPopupContainer(Yr.getRootDomNode()):zn.getDocument().body;return ci.appendChild(li),li},Yr.setPoint=function(nn){var zn=Yr.props.alignPoint;if(!zn||!nn)return;Yr.setState({point:{pageX:nn.pageX,pageY:nn.pageY}})},Yr.handlePortalUpdate=function(){Yr.state.prevPopupVisible!==Yr.state.popupVisible&&Yr.props.afterPopupVisibleChange(Yr.state.popupVisible)};var ni;return"popupVisible"in fn?ni=!!fn.popupVisible:ni=!!fn.defaultPopupVisible,Yr.state={prevPopupVisible:ni,popupVisible:ni},Pi.forEach(function(nn){Yr["fire".concat(nn)]=function(zn){Yr.fireEvents(nn,zn)}}),Yr}return Object(P.a)(Jn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Yr=this.props,ni=this.state;if(ni.popupVisible){var nn;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(nn=Yr.getDocument(),this.clickOutsideHandler=Object(Gt.a)(nn,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(nn=nn||Yr.getDocument(),this.touchOutsideHandler=Object(Gt.a)(nn,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(nn=nn||Yr.getDocument(),this.contextMenuOutsideHandler1=Object(Gt.a)(nn,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Gt.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var Yr=this.props,ni=Yr.popupPlacement,nn=Yr.popupAlign,zn=Yr.builtinPlacements;return ni&&zn?jt(zn,ni,nn):nn}},{key:"setPopupVisible",value:function(Yr,ni){var nn=this.props.alignPoint,zn=this.state.popupVisible;this.clearDelayTimer(),zn!==Yr&&("popupVisible"in this.props||this.setState({popupVisible:Yr,prevPopupVisible:zn}),this.props.onPopupVisibleChange(Yr)),nn&&ni&&this.setPoint(ni)}},{key:"delaySetPopupVisible",value:function(Yr,ni,nn){var zn=this,li=ni*1e3;if(this.clearDelayTimer(),li){var ci=nn?{pageX:nn.pageX,pageY:nn.pageY}:null;this.delayTimer=window.setTimeout(function(){zn.setPopupVisible(Yr,ci),zn.clearDelayTimer()},li)}else this.setPopupVisible(Yr,nn)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Yr){var ni=this.props.children.props,nn=this.props;return ni[Yr]&&nn[Yr]?this["fire".concat(Yr)]:ni[Yr]||nn[Yr]}},{key:"isClickToShow",value:function(){var Yr=this.props,ni=Yr.action,nn=Yr.showAction;return ni.indexOf("click")!==-1||nn.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Yr=this.props,ni=Yr.action,nn=Yr.showAction;return ni.indexOf("contextMenu")!==-1||nn.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Yr=this.props,ni=Yr.action,nn=Yr.hideAction;return ni.indexOf("click")!==-1||nn.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Yr=this.props,ni=Yr.action,nn=Yr.showAction;return ni.indexOf("hover")!==-1||nn.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Yr=this.props,ni=Yr.action,nn=Yr.hideAction;return ni.indexOf("hover")!==-1||nn.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Yr=this.props,ni=Yr.action,nn=Yr.showAction;return ni.indexOf("focus")!==-1||nn.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Yr=this.props,ni=Yr.action,nn=Yr.hideAction;return ni.indexOf("focus")!==-1||nn.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(Yr,ni){var nn=this.props.children.props[Yr];nn&&nn(ni);var zn=this.props[Yr];zn&&zn(ni)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Yr=this.state.popupVisible,ni=this.props,nn=ni.children,zn=ni.forceRender,li=ni.alignPoint,ci=ni.className,si=ni.autoDestroy,Ci=o.a.Children.only(nn),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 Ai=_()(Ci&&Ci.props&&Ci.props.className,ci);Ai&&(mi.className=Ai);var Ni=Object(K.a)({},mi);Object(Yn.c)(Ci)&&(Ni.ref=Object(Yn.a)(this.triggerRef,Ci.ref));var ia=o.a.cloneElement(Ci,Ni),Ki;return(Yr||this.popupRef.current||zn)&&(Ki=o.a.createElement(mt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Yr&&si&&(Ki=null),o.a.createElement(Sn.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},ia,Ki)}}],[{key:"getDerivedStateFromProps",value:function(Yr,ni){var nn=Yr.popupVisible,zn={};return nn!==void 0&&ni.popupVisible!==nn&&(zn.popupVisible=nn,zn.prevPopupVisible=ni.popupVisible),zn}}]),Jn}(o.a.Component);return Tr.contextType=Sn,Tr.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Wn,getDocument:pi,onPopupVisibleChange:qn,afterPopupVisibleChange:qn,onPopupAlign:qn,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 Ii=bi(Ot.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(mt){var Tr,en=mt.prefixCls,Jr=mt.popupElement,Jn=mt.popupStyle,fn=mt.visible,Yr=mt.dropdownClassName,ni=mt.dropdownAlign,nn=mt.transitionName,zn=mt.getPopupContainer,li=mt.children,ci=mt.range,si=mt.popupPlacement,Ci=mt.direction,mi="".concat(en,"-dropdown"),Ai=function(){return si!==void 0?si:Ci==="rtl"?"bottomRight":"bottomLeft"};return u.createElement(Ii,{showAction:[],hideAction:[],popupPlacement:Ai(),builtinPlacements:zi,prefixCls:mi,popupTransitionName:nn,popup:Jr,popupAlign:ni,popupVisible:fn,popupClassName:_()(Yr,(Tr={},Object(j.a)(Tr,"".concat(mi,"-range"),ci),Object(j.a)(Tr,"".concat(mi,"-rtl"),Ci==="rtl"),Tr)),popupStyle:Jn,getPopupContainer:zn},li)}var Xi=ea;function Wi(mt){var Tr=mt.open,en=mt.value,Jr=mt.isClickOutside,Jn=mt.triggerOpen,fn=mt.forwardKeyDown,Yr=mt.blurToCancel,ni=mt.onSubmit,nn=mt.onCancel,zn=mt.onFocus,li=mt.onBlur,ci=Object(u.useState)(!1),si=Object(z.a)(ci,2),Ci=si[0],mi=si[1],Ai=Object(u.useState)(!1),Ni=Object(z.a)(Ai,2),ia=Ni[0],Ki=Ni[1],fa=Object(u.useRef)(!1),Ya=Object(u.useRef)(!1),xa={onMouseDown:function(){mi(!0),Jn(!0)},onKeyDown:function(Da){switch(Da.which){case G.a.ENTER:{Tr?ni()!==!1&&mi(!0):Jn(!0),Da.preventDefault();return}case G.a.TAB:{Ci&&Tr&&!Da.shiftKey?(mi(!1),Da.preventDefault()):!Ci&&Tr&&(!fn(Da)&&Da.shiftKey&&(mi(!0),Da.preventDefault()));return}case G.a.ESC:{mi(!0),nn();return}}!Tr&&![G.a.SHIFT].includes(Da.which)?Jn(!0):Ci||fn(Da)},onFocus:function(Da){mi(!0),Ki(!0),zn&&zn(Da)},onBlur:function(Da){if(fa.current||!Jr(document.activeElement)){fa.current=!1;return}Yr?setTimeout(function(){Jr(document.activeElement)&&nn()},0):Tr&&(Jn(!1),Ya.current&&ni()),Ki(!1),li&&li(Da)}};return Object(u.useEffect)(function(){Ya.current=!1},[Tr]),Object(u.useEffect)(function(){Ya.current=!0},[en]),Object(u.useEffect)(function(){return $(function(wa){var Da=wa.target;Tr&&(Jr(Da)?ia||Jn(!1):(fa.current=!0,requestAnimationFrame(function(){fa.current=!1})))})}),[xa,{focused:ia,typing:Ci}]}function ji(mt){var Tr=mt.valueTexts,en=mt.onTextChange,Jr=u.useState(""),Jn=Object(z.a)(Jr,2),fn=Jn[0],Yr=Jn[1],ni=u.useRef([]);ni.current=Tr;function nn(li){Yr(li),en(li)}function zn(){Yr(ni.current[0])}return u.useEffect(function(){Tr.every(function(li){return li!==fn})&&zn()},[Tr.join("||")]),[fn,nn,zn]}var Ji=n("Gytx"),ca=n.n(Ji);function Ca(mt,Tr){var en=Tr.formatList,Jr=Tr.generateConfig,Jn=Tr.locale;return Object(Je.a)(function(){if(!mt)return[[""],""];for(var fn="",Yr=[],ni=0;ni<en.length;ni+=1){var nn=en[ni],zn=Jr.locale.format(Jn.locale,mt,nn);Yr.push(zn),ni===0&&(fn=zn)}return[Yr,fn]},[mt,en],function(fn,Yr){return fn[0]!==Yr[0]||!ca()(fn[1],Yr[1])})}function na(mt,Tr){var en=Tr.formatList,Jr=Tr.generateConfig,Jn=Tr.locale,fn=Object(u.useState)(null),Yr=Object(z.a)(fn,2),ni=Yr[0],nn=Yr[1],zn=Object(u.useRef)(null);function li(Ni){var ia=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(zn.current),ia){nn(Ni);return}zn.current=requestAnimationFrame(function(){nn(Ni)})}var ci=Ca(ni,{formatList:en,generateConfig:Jr,locale:Jn}),si=Object(z.a)(ci,2),Ci=si[1];function mi(Ni){li(Ni)}function Ai(){var Ni=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;li(null,Ni)}return Object(u.useEffect)(function(){Ai(!0)},[mt]),Object(u.useEffect)(function(){return function(){return cancelAnimationFrame(zn.current)}},[]),[Ci,mi,Ai]}function Pa(mt){var Tr,en=mt.prefixCls,Jr=en===void 0?"rc-picker":en,Jn=mt.id,fn=mt.tabIndex,Yr=mt.style,ni=mt.className,nn=mt.dropdownClassName,zn=mt.dropdownAlign,li=mt.popupStyle,ci=mt.transitionName,si=mt.generateConfig,Ci=mt.locale,mi=mt.inputReadOnly,Ai=mt.allowClear,Ni=mt.autoFocus,ia=mt.showTime,Ki=mt.picker,fa=Ki===void 0?"date":Ki,Ya=mt.format,xa=mt.use12Hours,wa=mt.value,Da=mt.defaultValue,ja=mt.open,ko=mt.defaultOpen,ro=mt.defaultOpenValue,pa=mt.suffixIcon,Ea=mt.clearIcon,Fa=mt.disabled,Ka=mt.disabledDate,lo=mt.placeholder,so=mt.getPopupContainer,Co=mt.pickerRef,Lo=mt.panelRender,is=mt.onChange,cs=mt.onOpenChange,Rs=mt.onFocus,Ko=mt.onBlur,as=mt.onMouseDown,co=mt.onMouseUp,Ao=mt.onMouseEnter,$a=mt.onMouseLeave,ss=mt.onContextMenu,_s=mt.onClick,Fo=mt.direction,il=mt.autoComplete,Eo=il===void 0?"off":il,zo=u.useRef(null),Fs=fa==="date"&&!!ia||fa==="time",ms=He(at(Ya,fa,ia,xa)),hs=u.useRef(null),wn=u.useRef(null),Ns=Object(V.a)(null,{value:wa,defaultValue:Da}),Ll=Object(z.a)(Ns,2),el=Ll[0],Gs=Ll[1],ds=u.useState(el),ks=Object(z.a)(ds,2),Qs=ks[0],tl=ks[1],xs=u.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:Ci}),fs=Object(z.a)(No,2),Ds=fs[0],go=fs[1],Ut=ji({valueTexts:Ds,onTextChange:function(vo){var Ms=si.locale.parse(Ci.locale,vo,ms);Ms&&(!Ka||!Ka(Ms))&&tl(Ms)}}),or=Object(z.a)(Ut,3),Nn=or[0],hi=or[1],Nt=or[2],ce=function(vo){tl(vo),Gs(vo),is&&!pt(si,el,vo)&&is(vo,vo?si.locale.format(Ci.locale,vo,ms[0]):"")},xe=function(vo){if(Fa&&vo)return;Vo(vo)},Oe=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))},Dt=Wi({blurToCancel:Fs,open:Js,value:Nn,triggerOpen:xe,forwardKeyDown:Oe,isClickOutside:function(vo){return!Se([hs.current,wn.current],vo)},onSubmit:function(){return Ka&&Ka(Qs)?!1:(ce(Qs),xe(!1),Nt(),!0)},onCancel:function(){xe(!1),tl(el),Nt()},onFocus:Rs,onBlur:Ko}),lr=Object(z.a)(Dt,2),Zr=lr[0],mn=lr[1],Dn=mn.focused,ui=mn.typing;u.useEffect(function(){Js||(tl(el),!Ds.length||Ds[0]===""?hi(""):go!==Nn&&Nt())},[Js,Ds]),u.useEffect(function(){Js||Nt()},[fa]),u.useEffect(function(){tl(el)},[el]),Co&&(Co.current={focus:function(){zo.current&&zo.current.focus()},blur:function(){zo.current&&zo.current.blur()}});var Si=Object(K.a)(Object(K.a)({},mt),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),vi=u.createElement(jr,Object.assign({},Si,{generateConfig:si,className:_()(Object(j.a)({},"".concat(Jr,"-panel-focused"),!ui)),value:Qs,locale:Ci,tabIndex:-1,onChange:tl,direction:Fo}));Lo&&(vi=Lo(vi));var Qi=u.createElement("div",{className:"".concat(Jr,"-panel-container"),onMouseDown:function(vo){vo.preventDefault()}},vi),sa;pa&&(sa=u.createElement("span",{className:"".concat(Jr,"-suffix")},pa));var Ua;Ai&&el&&!Fa&&(Ua=u.createElement("span",{onMouseDown:function(vo){vo.preventDefault(),vo.stopPropagation()},onMouseUp:function(vo){vo.preventDefault(),vo.stopPropagation(),ce(null),xe(!1)},className:"".concat(Jr,"-clear")},Ea||u.createElement("span",{className:"".concat(Jr,"-clear-btn")})));var no=function(vo,Ms){(Ms==="submit"||Ms!=="key"&&!Fs)&&(ce(vo),xe(!1))},Wo=Fo==="rtl"?"bottomRight":"bottomLeft",Zo=na(Nn,{formatList:ms,generateConfig:si,locale:Ci}),Bo=Object(z.a)(Zo,3),Es=Bo[0],As=Bo[1],$o=Bo[2];return u.createElement(q.Provider,{value:{operationRef:xs,hideHeader:fa==="time",panelRef:hs,onSelect:no,open:Js,defaultOpenValue:ro,onDateMouseEnter:As,onDateMouseLeave:$o}},u.createElement(Xi,{visible:Js,popupElement:Qi,popupStyle:li,prefixCls:Jr,dropdownClassName:nn,dropdownAlign:zn,getPopupContainer:so,transitionName:ci,popupPlacement:Wo,direction:Fo},u.createElement("div",{className:_()(Jr,ni,(Tr={},Object(j.a)(Tr,"".concat(Jr,"-disabled"),Fa),Object(j.a)(Tr,"".concat(Jr,"-focused"),Dn),Object(j.a)(Tr,"".concat(Jr,"-rtl"),Fo==="rtl"),Tr)),style:Yr,onMouseDown:as,onMouseUp:Qe,onMouseEnter:Ao,onMouseLeave:$a,onContextMenu:ss,onClick:_s},u.createElement("div",{className:_()("".concat(Jr,"-input"),Object(j.a)({},"".concat(Jr,"-input-placeholder"),!!Es)),ref:wn},u.createElement("input",Object.assign({id:Jn,tabIndex:fn,disabled:Fa,readOnly:mi||!ui,value:Es||Nn,onChange:function(vo){hi(vo.target.value)},autoFocus:Ni,placeholder:lo,ref:zo,title:Nn},Zr,{size:he(fa,ms[0])},ir(mt),{autoComplete:Eo})),sa,Ua))))}var La=function(mt){Object(X.a)(en,mt);var Tr=Object(F.a)(en);function en(){var Jr;return Object(B.a)(this,en),Jr=Tr.apply(this,arguments),Jr.pickerRef=u.createRef(),Jr.focus=function(){Jr.pickerRef.current&&Jr.pickerRef.current.focus()},Jr.blur=function(){Jr.pickerRef.current&&Jr.pickerRef.current.blur()},Jr}return Object(P.a)(en,[{key:"render",value:function(){return u.createElement(Pa,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),en}(u.Component),va=La;function ga(mt,Tr,en){var Jr=mt.picker,Jn=mt.locale,fn=mt.selectedValue,Yr=mt.disabledDate,ni=mt.disabled,nn=mt.generateConfig,zn=ct(fn,0),li=ct(fn,1);function ci(Ni){var ia=nn.getYear(Ni),Ki=nn.locale.getWeek(Jn.locale,Ni);return ia*100+Ki}function si(Ni){var ia=nn.getYear(Ni),Ki=nn.getMonth(Ni);return ia*100+Ki}function Ci(Ni){var ia=nn.getYear(Ni),Ki=rr(nn,Ni);return ia*10+Ki}var mi=u.useCallback(function(Ni){if(Yr&&Yr(Ni))return!0;if(ni[1]&&li)return!Bt(nn,Ni,li)&&nn.isAfter(Ni,li);if(Tr&&li)switch(Jr){case"quarter":return Ci(Ni)>Ci(li);case"month":return si(Ni)>si(li);case"week":return ci(Ni)>ci(li);default:return!Bt(nn,Ni,li)&&nn.isAfter(Ni,li)}return!1},[Yr,ni[1],li,Tr]),Ai=u.useCallback(function(Ni){if(Yr&&Yr(Ni))return!0;if(ni[0]&&zn)return!Bt(nn,Ni,li)&&nn.isAfter(zn,Ni);if(en&&zn)switch(Jr){case"quarter":return Ci(Ni)<Ci(zn);case"month":return si(Ni)<si(zn);case"week":return ci(Ni)<ci(zn);default:return!Bt(nn,Ni,zn)&&nn.isAfter(zn,Ni)}return!1},[Yr,ni[0],zn,en]);return[mi,Ai]}function Oa(mt,Tr,en,Jr){var Jn=cn(mt,en,Jr,1);function fn(Yr){return Yr(mt,Tr)?"same":Yr(Jn,Tr)?"closing":"far"}switch(en){case"year":return fn(function(Yr,ni){return yr(Jr,Yr,ni)});case"quarter":case"month":return fn(function(Yr,ni){return At(Jr,Yr,ni)});default:return fn(function(Yr,ni){return vn(Jr,Yr,ni)})}}function Aa(mt,Tr,en,Jr){var Jn=ct(mt,0),fn=ct(mt,1);if(Tr===0)return Jn;if(Jn&&fn){var Yr=Oa(Jn,fn,en,Jr);switch(Yr){case"same":return Jn;case"closing":return Jn;default:return cn(fn,en,Jr,-1)}}return Jn}function Xa(mt){var Tr=mt.values,en=mt.picker,Jr=mt.defaultDates,Jn=mt.generateConfig,fn=u.useState(function(){return[ct(Jr,0),ct(Jr,1)]}),Yr=Object(z.a)(fn,2),ni=Yr[0],nn=Yr[1],zn=u.useState(null),li=Object(z.a)(zn,2),ci=li[0],si=li[1],Ci=ct(Tr,0),mi=ct(Tr,1);function Ai(ia){return ni[ia]?ni[ia]:ct(ci,ia)||Aa(Tr,ia,en,Jn)||Ci||mi||Jn.getNow()}function Ni(ia,Ki){if(ia){var fa=Xt(ci,ia,Ki);nn(Xt(ni,null,Ki)||[null,null]);var Ya=(Ki+1)%2;ct(Tr,Ya)||(fa=Xt(fa,ia,Ya)),si(fa)}else(Ci||mi)&&si(null)}return[Ai,Ni]}function _a(mt,Tr){return mt&&mt[0]&&mt[1]&&Tr.isAfter(mt[0],mt[1])?[mt[1],mt[0]]:mt}function Va(mt,Tr,en,Jr){return mt||Jr&&Jr[Tr]?!0:!!en[(Tr+1)%2]}function Fi(mt){var Tr,en,Jr,Jn=mt.prefixCls,fn=Jn===void 0?"rc-picker":Jn,Yr=mt.id,ni=mt.style,nn=mt.className,zn=mt.popupStyle,li=mt.dropdownClassName,ci=mt.transitionName,si=mt.dropdownAlign,Ci=mt.getPopupContainer,mi=mt.generateConfig,Ai=mt.locale,Ni=mt.placeholder,ia=mt.autoFocus,Ki=mt.disabled,fa=mt.format,Ya=mt.picker,xa=Ya===void 0?"date":Ya,wa=mt.showTime,Da=mt.use12Hours,ja=mt.separator,ko=ja===void 0?"~":ja,ro=mt.value,pa=mt.defaultValue,Ea=mt.defaultPickerValue,Fa=mt.open,Ka=mt.defaultOpen,lo=mt.disabledDate,so=mt.disabledTime,Co=mt.dateRender,Lo=mt.panelRender,is=mt.ranges,cs=mt.allowEmpty,Rs=mt.allowClear,Ko=mt.suffixIcon,as=mt.clearIcon,co=mt.pickerRef,Ao=mt.inputReadOnly,$a=mt.mode,ss=mt.renderExtraFooter,_s=mt.onChange,Fo=mt.onOpenChange,il=mt.onPanelChange,Eo=mt.onCalendarChange,zo=mt.onFocus,Fs=mt.onBlur,ms=mt.onOk,hs=mt.components,wn=mt.order,Ns=mt.direction,Ll=mt.activePickerIndex,el=mt.autoComplete,Gs=el===void 0?"off":el,ds=xa==="date"&&!!wa||xa==="time",ks=Object(u.useRef)({}),Qs=Object(u.useRef)(null),tl=Object(u.useRef)(null),xs=Object(u.useRef)(null),Bs=Object(u.useRef)(null),al=Object(u.useRef)(null),Js=Object(u.useRef)(null),Vo=Object(u.useRef)(null),No=He(at(fa,xa,wa,Da)),fs=Object(V.a)(0,{value:Ll}),Ds=Object(z.a)(fs,2),go=Ds[0],Ut=Ds[1],or=Object(u.useRef)(null),Nn=u.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"&&!wn?ve:_a(ve,mi)}}),Nt=Object(z.a)(hi,2),ce=Nt[0],xe=Nt[1],Oe=Xa({values:ce,picker:xa,defaultDates:Ea,generateConfig:mi}),Qe=Object(z.a)(Oe,2),Dt=Qe[0],lr=Qe[1],Zr=Object(V.a)(ce,{postState:function(ve){var Te=ve;if(Nn[0]&&Nn[1])return Te;for(var ze=0;ze<2;ze+=1)Nn[ze]&&!ct(Te,ze)&&!ct(cs,ze)&&(Te=Xt(Te,mi.getNow(),ze));return Te}}),mn=Object(z.a)(Zr,2),Dn=mn[0],ui=mn[1],Si=Object(V.a)([xa,xa],{value:$a}),vi=Object(z.a)(Si,2),Qi=vi[0],sa=vi[1];Object(u.useEffect)(function(){sa([xa,xa])},[xa]);var Ua=function(ve,Te){sa(ve),il&&il(Te,ve)},no=ga({picker:xa,selectedValue:Dn,locale:Ai,disabled:Nn,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 Nn[go]?!1:ve},onChange:function(ve){Fo&&Fo(ve),!ve&&or.current&&or.current.onClose&&or.current.onClose()}}),As=Object(z.a)(Es,2),$o=As[0],Do=As[1],vo=$o&&go===0,Ms=$o&&go===1,rl=Object(u.useState)(0),gs=Object(z.a)(rl,2),Ra=gs[0],dl=gs[1];Object(u.useEffect)(function(){!$o&&Qs.current&&dl(Qs.current.offsetWidth)},[$o]);var fl=u.useRef();function Us(ne,ve){if(ne)clearTimeout(fl.current),ks.current[ve]=!0,Ut(ve),Do(ne),$o||lr(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,ze=ct(Te,0),ot=ct(Te,1);ze&&ot&&mi.isAfter(ze,ot)&&(xa==="week"&&!Yt(mi,Ai.locale,ze,ot)||xa==="quarter"&&!ur(mi,ze,ot)||xa!=="week"&&xa!=="quarter"&&xa!=="time"&&!Bt(mi,ze,ot)?(ve===0?(Te=[ze,null],ot=null):(ze=null,Te=[null,ot]),ks.current=Object(j.a)({},ve,!0)):(xa!=="time"||wn!==!1)&&(Te=_a(Te,mi))),ui(Te);var ft=Te&&Te[0]?mi.locale.format(Ai.locale,Te[0],No[0]):"",Zt=Te&&Te[1]?mi.locale.format(Ai.locale,Te[1],No[0]):"";if(Eo){var Cr={range:ve===0?"start":"end"};Eo(Te,[ft,Zt],Cr)}var Sr=Va(ze,0,Nn,cs),Wr=Va(ot,1,Nn,cs),$r=Te===null||Sr&&Wr;$r&&(xe(Te),_s&&(!pt(mi,ct(ce,0),ze)||!pt(mi,ct(ce,1),ot))&&_s(Te,[ft,Zt]));var On=null;ve===0&&!Nn[1]?On=1:ve===1&&!Nn[0]&&(On=0),On!==null&&On!==go&&(!ks.current[On]||!ct(Te,On))&&ct(Te,ve)?Os(On):Us(!1,ve)}var Ql=function(ve){return $o&&or.current&&or.current.onKeyDown?or.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:Ai},wl=Ca(ct(Dn,0),Ul),Ts=Object(z.a)(wl,2),Ws=Ts[0],Tl=Ts[1],pl=Ca(ct(Dn,1),Ul),jo=Object(z.a)(pl,2),yo=jo[0],qo=jo[1],ps=function(ve,Te){var ze=mi.locale.parse(Ai.locale,ve,No),ot=Te===0?Zo:Bo;ze&&!ot(ze)&&(ui(Xt(Dn,ze,Te)),lr(ze,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(u.useState)(null),ol=Object(z.a)(Xl,2),Ys=ol[0],sl=ol[1],nl=Object(u.useState)(null),xl=Object(z.a)(nl,2),Ml=xl[0],Wl=xl[1],au=na(Ls,{formatList:No,generateConfig:mi,locale:Ai}),Nl=Object(z.a)(au,3),$l=Nl[0],tu=Nl[1],Iu=Nl[2],pu=na(Bl,{formatList:No,generateConfig:mi,locale:Ai}),mu=Object(z.a)(pu,3),gu=mu[0],ql=mu[1],Cl=mu[2],ll=function(ve){Wl(Xt(Dn,ve,go)),go===0?tu(ve):ql(ve)},Hl=function(){Wl(Xt(Dn,null,go)),go===0?Iu():Cl()},Sl=function(ve,Te){return{blurToCancel:ds,forwardKeyDown:Ql,onBlur:Fs,isClickOutside:function(ot){return!Se([tl.current,xs.current,Bs.current],ot)},onFocus:function(ot){Ut(ve),zo&&zo(ot)},triggerOpen:function(ot){Us(ot,ve)},onSubmit:function(){Xs(Dn,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)&&(Nn[0]?Nn[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(Ai.locale,ce[0],"YYYYMMDDHHmmss"):"",yu=ce&&ce[1]?mi.locale.format(Ai.locale,ce[1],"YYYYMMDDHHmmss"):"";Object(u.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(u.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 ze=wa;if(wa&&Object(Q.a)(wa)==="object"&&wa.defaultValue){var ot=wa.defaultValue;ze=Object(K.a)(Object(K.a)({},wa),{},{defaultValue:ct(ot,go)||void 0})}var ft=null;return Co&&(ft=function(Cr,Sr){return Co(Cr,Sr,{range:go?"end":"start"})}),u.createElement(Kn.Provider,{value:{inRange:!0,panelPosition:ne,rangedValue:Ys||Dn,hoverRangedValue:Te}},u.createElement(jr,Object.assign({},mt,ve,{dateRender:ft,showTime:ze,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(fn,"-panel-focused"),go===0?!du:!Jl)),value:ct(Dn,go),locale:Ai,tabIndex:-1,onPanelChange:function(Cr,Sr){Ua(Xt(Qi,Sr,go),Xt(Dn,Cr,go));var Wr=Cr;ne==="right"&&Qi[go]===Sr&&(Wr=cn(Wr,Sr,mi,-1)),lr(Wr,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=kr(fn,Qi[go],ss),Te=Bn({prefixCls:fn,components:hs,needConfirmButton:ds,okDisabled:!ct(Dn,go)||lo&&lo(Dn[go]),locale:Ai,rangeList:bu,onOk:function(){ct(Dn,go)&&(Xs(Dn,go),ms&&ms(Dn))}});if(xa!=="time"&&!wa){var ze=Dt(go),ot=cn(ze,xa,mi),ft=Qi[go],Zt=ft===xa,Cr=hl(Zt?"left":!1,{pickerValue:ze,onPickerValueChange:function(On){lr(On,go)}}),Sr=hl("right",{pickerValue:ot,onPickerValueChange:function(On){lr(cn(On,xa,mi,-1),go)}});Ns==="rtl"?ne=u.createElement(u.Fragment,null,Sr,Zt&&Cr):ne=u.createElement(u.Fragment,null,Cr,Zt&&Sr)}else ne=hl();var Wr=u.createElement(u.Fragment,null,u.createElement("div",{className:"".concat(fn,"-panels")},ne),(ve||Te)&&u.createElement("div",{className:"".concat(fn,"-footer")},ve,Te));return Lo&&(Wr=Lo(Wr)),u.createElement("div",{className:"".concat(fn,"-panel-container"),style:{marginLeft:nu},ref:tl,onMouseDown:function(On){On.preventDefault()}},Wr)}var fu=u.createElement("div",{className:_()("".concat(fn,"-range-wrapper"),"".concat(fn,"-").concat(xa,"-range-wrapper")),style:{minWidth:Ra}},u.createElement("div",{className:"".concat(fn,"-range-arrow"),style:Nu}),hu()),iu;Ko&&(iu=u.createElement("span",{className:"".concat(fn,"-suffix")},Ko));var Ae;Rs&&(ct(ce,0)&&!Nn[0]||ct(ce,1)&&!Nn[1])&&(Ae=u.createElement("span",{onMouseDown:function(ve){ve.preventDefault(),ve.stopPropagation()},onMouseUp:function(ve){ve.preventDefault(),ve.stopPropagation();var Te=ce;Nn[0]||(Te=Xt(Te,null,0)),Nn[1]||(Te=Xt(Te,null,1)),Xs(Te,null),Us(!1,go)},className:"".concat(fn,"-clear")},as||u.createElement("span",{className:"".concat(fn,"-clear-btn")})));var ee={size:he(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 ze=Xt(Dn,ve,go);Te==="submit"||Te!=="key"&&!ds?(Xs(ze,go),go===0?Iu():Cl()):ui(ze)};return u.createElement(q.Provider,{value:{operationRef:or,hideHeader:xa==="time",onDateMouseEnter:ll,onDateMouseLeave:Hl,hideRanges:!0,onSelect:Z,open:$o}},u.createElement(Xi,{visible:$o,popupElement:fu,popupStyle:zn,prefixCls:fn,dropdownClassName:li,dropdownAlign:si,getPopupContainer:Ci,transitionName:ci,range:!0,direction:Ns},u.createElement("div",Object.assign({ref:Qs,className:_()(fn,"".concat(fn,"-range"),nn,(Tr={},Object(j.a)(Tr,"".concat(fn,"-disabled"),Nn[0]&&Nn[1]),Object(j.a)(Tr,"".concat(fn,"-focused"),go===0?cu:su),Object(j.a)(Tr,"".concat(fn,"-rtl"),Ns==="rtl"),Tr)),style:ni,onClick:Du,onMouseDown:Ru},ir(mt)),u.createElement("div",{className:_()("".concat(fn,"-input"),(en={},Object(j.a)(en,"".concat(fn,"-input-active"),go===0),Object(j.a)(en,"".concat(fn,"-input-placeholder"),!!$l),en)),ref:xs},u.createElement("input",Object.assign({id:Yr,disabled:Nn[0],readOnly:Ao||!du,value:$l||Ls,onChange:function(ve){Ps(ve.target.value)},autoFocus:ia,placeholder:ct(Ni,0)||"",ref:Js},Au,ee,{autoComplete:Gs}))),u.createElement("div",{className:"".concat(fn,"-range-separator"),ref:al},ko),u.createElement("div",{className:_()("".concat(fn,"-input"),(Jr={},Object(j.a)(Jr,"".concat(fn,"-input-active"),go===1),Object(j.a)(Jr,"".concat(fn,"-input-placeholder"),!!gu),Jr)),ref:Bs},u.createElement("input",Object.assign({disabled:Nn[1],readOnly:Ao||!Jl,value:gu||Bl,onChange:function(ve){jl(ve.target.value)},placeholder:ct(Ni,1)||"",ref:Vo},ru,ee,{autoComplete:Gs}))),u.createElement("div",{className:"".concat(fn,"-active-bar"),style:Object(K.a)(Object(K.a)({},H),{},{width:W,position:"absolute"})}),iu,Ae)))}var io=function(mt){Object(X.a)(en,mt);var Tr=Object(F.a)(en);function en(){var Jr;return Object(B.a)(this,en),Jr=Tr.apply(this,arguments),Jr.pickerRef=u.createRef(),Jr.focus=function(){Jr.pickerRef.current&&Jr.pickerRef.current.focus()},Jr.blur=function(){Jr.pickerRef.current&&Jr.pickerRef.current.blur()},Jr}return Object(P.a)(en,[{key:"render",value:function(){return u.createElement(Fi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),en}(u.Component),oo=io,Qo=va,mo=n("61s2");function To(mt,Tr,en){return en!==void 0?en:mt==="year"&&Tr.lang.yearPlaceholder?Tr.lang.yearPlaceholder:mt==="quarter"&&Tr.lang.quarterPlaceholder?Tr.lang.quarterPlaceholder:mt==="month"&&Tr.lang.monthPlaceholder?Tr.lang.monthPlaceholder:mt==="week"&&Tr.lang.weekPlaceholder?Tr.lang.weekPlaceholder:mt==="time"&&Tr.timePickerLocale.placeholder?Tr.timePickerLocale.placeholder:Tr.lang.placeholder}function ao(mt,Tr,en){return en!==void 0?en:mt==="year"&&Tr.lang.yearPlaceholder?Tr.lang.rangeYearPlaceholder:mt==="month"&&Tr.lang.monthPlaceholder?Tr.lang.rangeMonthPlaceholder:mt==="week"&&Tr.lang.weekPlaceholder?Tr.lang.rangeWeekPlaceholder:mt==="time"&&Tr.timePickerLocale.placeholder?Tr.timePickerLocale.rangePlaceholder:Tr.lang.rangePlaceholder}var So=n("uaoM"),bo=n("H84U"),to=n("YMnH"),Jo=n("3Nzz"),Uo=function(mt,Tr){var en={};for(var Jr in mt)Object.prototype.hasOwnProperty.call(mt,Jr)&&Tr.indexOf(Jr)<0&&(en[Jr]=mt[Jr]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jn=0,Jr=Object.getOwnPropertySymbols(mt);Jn<Jr.length;Jn++)Tr.indexOf(Jr[Jn])<0&&Object.prototype.propertyIsEnumerable.call(mt,Jr[Jn])&&(en[Jr[Jn]]=mt[Jr[Jn]]);return en};function wo(mt){function Tr(nn,zn){var li=function(ci){b()(Ci,ci);var si=E()(Ci);function Ci(mi){var Ai;return c()(this,Ci),Ai=si.call(this,mi),Ai.pickerRef=u.createRef(),Ai.focus=function(){Ai.pickerRef.current&&Ai.pickerRef.current.focus()},Ai.blur=function(){Ai.pickerRef.current&&Ai.pickerRef.current.blur()},Ai.getDefaultLocale=function(){var Ni=Ai.props.locale,ia=d()(d()({},mo.a),Ni);return ia.lang=d()(d()({},ia.lang),(Ni||{}).lang),ia},Ai.renderPicker=function(Ni){var ia=Ai.context,Ki=ia.getPrefixCls,fa=ia.direction,Ya=ia.getPopupContainer,xa=Ai.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=Ai.props,lo=Ka.format,so=Ka.showTime,Co=Ki("picker",wa),Lo={showToday:!0},is={};nn&&(is.picker=nn);var cs=nn||Ai.props.picker;return is=d()(d()(d()({},is),so?rs(d()({format:lo,picker:cs},so)):{}),cs==="time"?rs(d()(d()({format:lo},Ai.props),{picker:cs})):{}),u.createElement(Jo.b.Consumer,null,function(Rs){var Ko,as=ko||Rs;return u.createElement(Qo,d()({ref:Ai.pickerRef,placeholder:To(cs,Ni,Ea),suffixIcon:cs==="time"?u.createElement(I.a,null):u.createElement(w.a,null),clearIcon:u.createElement(M.a,null),allowClear:!0,transitionName:"slide-up"},Lo,Fa,is,{locale:Ni.lang,className:_()(ja,(Ko={},r()(Ko,"".concat(Co,"-").concat(as),as),r()(Ko,"".concat(Co,"-borderless"),!pa),Ko)),prefixCls:Co,getPopupContainer:Da||Ya,generateConfig:mt,prevIcon:u.createElement("span",{className:"".concat(Co,"-prev-icon")}),nextIcon:u.createElement("span",{className:"".concat(Co,"-next-icon")}),superPrevIcon:u.createElement("span",{className:"".concat(Co,"-super-prev-icon")}),superNextIcon:u.createElement("span",{className:"".concat(Co,"-super-next-icon")}),components:os,direction:fa}))})},Object(So.a)(nn!=="quarter",zn,"DatePicker.".concat(zn," is legacy usage. Please use DatePicker[picker='").concat(nn,"'] directly.")),Ai}return g()(Ci,[{key:"render",value:function(){return u.createElement(to.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Ci}(u.Component);return li.contextType=bo.b,zn&&(li.displayName=zn),li}var en=Tr(),Jr=Tr("week","WeekPicker"),Jn=Tr("month","MonthPicker"),fn=Tr("year","YearPicker"),Yr=Tr("time","TimePicker"),ni=Tr("quarter","QuarterPicker");return{DatePicker:en,WeekPicker:Jr,MonthPicker:Jn,YearPicker:fn,TimePicker:Yr,QuarterPicker:ni}}var ts=n("8ISB"),Ia=n.n(ts),Oo=function(mt,Tr){var en={};for(var Jr in mt)Object.prototype.hasOwnProperty.call(mt,Jr)&&Tr.indexOf(Jr)<0&&(en[Jr]=mt[Jr]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jn=0,Jr=Object.getOwnPropertySymbols(mt);Jn<Jr.length;Jn++)Tr.indexOf(Jr[Jn])<0&&Object.prototype.propertyIsEnumerable.call(mt,Jr[Jn])&&(en[Jr[Jn]]=mt[Jr[Jn]]);return en};function Io(mt){var Tr=function(en){b()(Jn,en);var Jr=E()(Jn);function Jn(){var fn;return c()(this,Jn),fn=Jr.apply(this,arguments),fn.pickerRef=u.createRef(),fn.focus=function(){fn.pickerRef.current&&fn.pickerRef.current.focus()},fn.blur=function(){fn.pickerRef.current&&fn.pickerRef.current.blur()},fn.getDefaultLocale=function(){var Yr=fn.props.locale,ni=d()(d()({},mo.a),Yr);return ni.lang=d()(d()({},ni.lang),(Yr||{}).lang),ni},fn.renderPicker=function(Yr){var ni=fn.context,nn=ni.getPrefixCls,zn=ni.direction,li=ni.getPopupContainer,ci=fn.props,si=ci.prefixCls,Ci=ci.getPopupContainer,mi=ci.className,Ai=ci.size,Ni=ci.bordered,ia=Ni===void 0?!0:Ni,Ki=ci.placeholder,fa=Oo(ci,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Ya=fn.props,xa=Ya.format,wa=Ya.showTime,Da=Ya.picker,ja=nn("picker",si),ko={};return ko=d()(d()(d()({},ko),wa?rs(d()({format:xa,picker:Da},wa)):{}),Da==="time"?rs(d()(d()({format:xa},fn.props),{picker:Da})):{}),u.createElement(Jo.b.Consumer,null,function(ro){var pa,Ea=Ai||ro;return u.createElement(oo,d()({separator:u.createElement("span",{"aria-label":"to",className:"".concat(ja,"-separator")},u.createElement(Ia.a,null)),ref:fn.pickerRef,placeholder:ao(Da,Yr,Ki),suffixIcon:Da==="time"?u.createElement(I.a,null):u.createElement(w.a,null),clearIcon:u.createElement(M.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:Yr.lang,prefixCls:ja,getPopupContainer:Ci||li,generateConfig:mt,prevIcon:u.createElement("span",{className:"".concat(ja,"-prev-icon")}),nextIcon:u.createElement("span",{className:"".concat(ja,"-next-icon")}),superPrevIcon:u.createElement("span",{className:"".concat(ja,"-super-prev-icon")}),superNextIcon:u.createElement("span",{className:"".concat(ja,"-super-next-icon")}),components:os,direction:zn}))})},fn}return g()(Jn,[{key:"render",value:function(){return u.createElement(to.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Jn}(u.Component);return Tr.contextType=bo.b,Tr}var os={button:t,rangeItem:e};function xo(mt){return mt?Array.isArray(mt)?mt:[mt]:[]}function rs(mt){var Tr=mt.format,en=mt.picker,Jr=mt.showHour,Jn=mt.showMinute,fn=mt.showSecond,Yr=mt.use12Hours,ni=xo(Tr)[0],nn=d()({},mt);return ni&&(!ni.includes("s")&&fn===void 0&&(nn.showSecond=!1),!ni.includes("m")&&Jn===void 0&&(nn.showMinute=!1),!ni.includes("H")&&!ni.includes("h")&&Jr===void 0&&(nn.showHour=!1),(ni.includes("a")||ni.includes("A"))&&Yr===void 0&&(nn.use12Hours=!0)),en==="time"?nn:{showTime:nn}}function Ho(mt){var Tr=wo(mt),en=Tr.DatePicker,Jr=Tr.WeekPicker,Jn=Tr.MonthPicker,fn=Tr.YearPicker,Yr=Tr.TimePicker,ni=Tr.QuarterPicker,nn=Io(mt),zn=en;return zn.WeekPicker=Jr,zn.MonthPicker=Jn,zn.YearPicker=fn,zn.RangePicker=nn,zn.TimePicker=Yr,zn.QuarterPicker=ni,zn}var _o=Ho,uo=_o(m),Ha=D.a=uo},"+lIL":function(k,D,n){var y=n("ProS");n("/ry/"),n("3OrL");var p=n("L5E0"),x=n("7Phj");y.registerVisual(p),y.registerLayout(x)},"+nKL":function(k,D,n){"use strict";var y=n("wx14"),p=n("VTBJ"),x=n("U8pU"),v=n("ODXe"),m=n("rePB"),f=n("Ff2n"),d=n("q1tI"),u=n("i8i4"),o=n("TSYQ"),i=n.n(o),t=n("t23M"),s=d.forwardRef(function(ae,at){var he=ae.height,J=ae.offsetY,Y=ae.offsetX,$=ae.children,de=ae.prefixCls,be=ae.onInnerResize,Ce=ae.innerProps,Be=ae.rtl,fe=ae.extra,Se={},ke={display:"flex",flexDirection:"column"};if(J!==void 0){var rt;Se={height:he,position:"relative",overflow:"hidden"},ke=Object(p.a)(Object(p.a)({},ke),{},(rt={transform:"translateY(".concat(J,"px)")},Object(m.a)(rt,Be?"marginRight":"marginLeft",-Y),Object(m.a)(rt,"position","absolute"),Object(m.a)(rt,"left",0),Object(m.a)(rt,"right",0),Object(m.a)(rt,"top",0),rt))}return d.createElement("div",{style:Se},d.createElement(t.a,{onResize:function(ht){var He=ht.offsetHeight;He&&be&&be()}},d.createElement("div",Object(y.a)({style:ke,className:i()(Object(m.a)({},"".concat(de,"-holder-inner"),de)),ref:at},Ce),$,fe)))});s.displayName="Filler";var e=s,l=n("wgJM");function r(ae,at){var he="touches"in ae?ae.touches[0]:ae;return he[at?"pageX":"pageY"]}var a=d.forwardRef(function(ae,at){var he,J=ae.prefixCls,Y=ae.rtl,$=ae.scrollOffset,de=ae.scrollRange,be=ae.onStartMove,Ce=ae.onStopMove,Be=ae.onScroll,fe=ae.horizontal,Se=ae.spinSize,ke=ae.containerSize,rt=d.useState(!1),xt=Object(v.a)(rt,2),ht=xt[0],He=xt[1],ir=d.useState(null),ct=Object(v.a)(ir,2),Xt=ct[0],hr=ct[1],Jt=d.useState(null),Pt=Object(v.a)(Jt,2),Wt=Pt[0],Ge=Pt[1],pe=!Y,se=d.useRef(),lt=d.useRef(),qe=d.useState(!1),me=Object(v.a)(qe,2),Ht=me[0],yr=me[1],At=d.useRef(),rr=function(){clearTimeout(At.current),yr(!0),At.current=setTimeout(function(){yr(!1)},3e3)},ur=de-ke||0,vn=ke-Se||0,Bt=ur>0,sr=d.useMemo(function(){if($===0||ur===0)return 0;var Mn=$/ur;return Mn*vn},[$,ur,vn]),Yt=function(Un){Un.stopPropagation(),Un.preventDefault()},pt=d.useRef({top:sr,dragging:ht,pageY:Xt,startTop:Wt});pt.current={top:sr,dragging:ht,pageY:Xt,startTop:Wt};var it=function(Un){He(!0),hr(r(Un,fe)),Ge(pt.current.top),be(),Un.stopPropagation(),Un.preventDefault()};d.useEffect(function(){var Mn=function(Re){Re.preventDefault()},Un=se.current,$t=lt.current;return Un.addEventListener("touchstart",Mn),$t.addEventListener("touchstart",it),function(){Un.removeEventListener("touchstart",Mn),$t.removeEventListener("touchstart",it)}},[]);var Fr=d.useRef();Fr.current=ur;var cn=d.useRef();cn.current=vn,d.useEffect(function(){if(ht){var Mn,Un=function(Re){var De=pt.current,Pe=De.dragging,et=De.pageY,yt=De.startTop;if(l.a.cancel(Mn),Pe){var St=r(Re,fe)-et,Vt=yt;!pe&&fe?Vt-=St:Vt+=St;var Rr=Fr.current,Vr=cn.current,hn=Vr?Vt/Vr:0,Ft=Math.ceil(hn*Rr);Ft=Math.max(Ft,0),Ft=Math.min(Ft,Rr),Mn=Object(l.a)(function(){Be(Ft,fe)})}},$t=function(){He(!1),Ce()};return window.addEventListener("mousemove",Un),window.addEventListener("touchmove",Un),window.addEventListener("mouseup",$t),window.addEventListener("touchend",$t),function(){window.removeEventListener("mousemove",Un),window.removeEventListener("touchmove",Un),window.removeEventListener("mouseup",$t),window.removeEventListener("touchend",$t),l.a.cancel(Mn)}}},[ht]),d.useEffect(function(){rr()},[$]),d.useImperativeHandle(at,function(){return{delayHidden:rr}});var _n="".concat(J,"-scrollbar"),Kn={position:"absolute",visibility:Ht&&Bt?null:"hidden"},gi={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return fe?(Kn.height=8,Kn.left=0,Kn.right=0,Kn.bottom=0,gi.height="100%",gi.width=Se,pe?gi.left=sr:gi.right=sr):(Kn.width=8,Kn.top=0,Kn.bottom=0,pe?Kn.right=0:Kn.left=0,gi.width="100%",gi.height=Se,gi.top=sr),d.createElement("div",{ref:se,className:i()(_n,(he={},Object(m.a)(he,"".concat(_n,"-horizontal"),fe),Object(m.a)(he,"".concat(_n,"-vertical"),!fe),Object(m.a)(he,"".concat(_n,"-visible"),Ht),he)),style:Kn,onMouseDown:Yt,onMouseMove:rr},d.createElement("div",{ref:lt,className:i()("".concat(_n,"-thumb"),Object(m.a)({},"".concat(_n,"-thumb-moving"),ht)),style:gi,onMouseDown:it}))}),c=a;function h(ae){var at=ae.children,he=ae.setRef,J=d.useCallback(function(Y){he(Y)},[]);return d.cloneElement(at,{ref:J})}function g(ae,at,he,J,Y,$,de){var be=de.getKey;return ae.slice(at,he+1).map(function(Ce,Be){var fe=at+Be,Se=$(Ce,fe,{style:{width:J}}),ke=be(Ce);return d.createElement(h,{key:ke,setRef:function(xt){return Y(Ce,xt)}},Se)})}var A=n("m+aA"),b=n("1OyB"),S=n("vuIU"),E=function(){function ae(){Object(b.a)(this,ae),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return Object(S.a)(ae,[{key:"set",value:function(he,J){this.maps[he]=J,this.id+=1}},{key:"get",value:function(he){return this.maps[he]}}]),ae}(),C=E;function _(ae,at,he){var J=d.useState(0),Y=Object(v.a)(J,2),$=Y[0],de=Y[1],be=Object(d.useRef)(new Map),Ce=Object(d.useRef)(new C),Be=Object(d.useRef)();function fe(){l.a.cancel(Be.current)}function Se(){fe(),Be.current=Object(l.a)(function(){be.current.forEach(function(rt,xt){if(rt&&rt.offsetParent){var ht=Object(A.a)(rt),He=ht.offsetHeight;Ce.current.get(xt)!==He&&Ce.current.set(xt,ht.offsetHeight)}}),de(function(rt){return rt+1})})}function ke(rt,xt){var ht=ae(rt),He=be.current.get(ht);xt?(be.current.set(ht,xt),Se()):be.current.delete(ht),!He!==!xt&&(xt?at==null||at(rt):he==null||he(rt))}return Object(d.useEffect)(function(){return fe},[]),[ke,Se,Ce.current,$]}function T(ae,at,he,J,Y,$,de,be){var Ce=d.useRef();return function(Be){if(Be==null){be();return}if(l.a.cancel(Ce.current),typeof Be=="number")de(Be);else if(Be&&Object(x.a)(Be)==="object"){var fe,Se=Be.align;"index"in Be?fe=Be.index:fe=at.findIndex(function(ht){return Y(ht)===Be.key});var ke=Be.offset,rt=ke===void 0?0:ke,xt=function ht(He,ir){if(He<0||!ae.current)return;var ct=ae.current.clientHeight,Xt=!1,hr=ir;if(ct){for(var Jt=ir||Se,Pt=0,Wt=0,Ge=0,pe=Math.min(at.length,fe),se=0;se<=pe;se+=1){var lt=Y(at[se]);Wt=Pt;var qe=he.get(lt);Ge=Wt+(qe===void 0?J:qe),Pt=Ge,se===fe&&qe===void 0&&(Xt=!0)}var me=null;switch(Jt){case"top":me=Wt-rt;break;case"bottom":me=Ge-ct+rt;break;default:{var Ht=ae.current.scrollTop,yr=Ht+ct;Wt<Ht?hr="top":Ge>yr&&(hr="bottom")}}me!==null&&me!==ae.current.scrollTop&&de(me)}Ce.current=Object(l.a)(function(){Xt&&$(),ht(He-1,hr)},2)};xt(3)}}}function w(ae,at,he,J){var Y=he-ae,$=at-he,de=Math.min(Y,$)*2;if(J<=de){var be=Math.floor(J/2);return J%2?he+be+1:he-be}return Y>$?he-(J-$):he+(J-Y)}function O(ae,at,he){var J=ae.length,Y=at.length,$,de;if(J===0&&Y===0)return null;J<Y?($=ae,de=at):($=at,de=ae);var be={__EMPTY_ITEM__:!0};function Ce(xt){return xt!==void 0?he(xt):be}for(var Be=null,fe=Math.abs(J-Y)!==1,Se=0;Se<de.length;Se+=1){var ke=Ce($[Se]),rt=Ce(de[Se]);if(ke!==rt){Be=Se,fe=fe||ke!==Ce(de[Se+1]);break}}return Be===null?null:{index:Be,multiple:fe}}function I(ae,at,he){var J=d.useState(ae),Y=Object(v.a)(J,2),$=Y[0],de=Y[1],be=d.useState(null),Ce=Object(v.a)(be,2),Be=Ce[0],fe=Ce[1];return d.useEffect(function(){var Se=O($||[],ae||[],at);(Se==null?void 0:Se.index)!==void 0&&(he==null||he(Se.index),fe(ae[Se.index])),de(ae)},[ae]),[Be]}var R=(typeof navigator=="undefined"?"undefined":Object(x.a)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),M=R,B=function(ae,at){var he=Object(d.useRef)(!1),J=Object(d.useRef)(null);function Y(){clearTimeout(J.current),he.current=!0,J.current=setTimeout(function(){he.current=!1},50)}var $=Object(d.useRef)({top:ae,bottom:at});return $.current.top=ae,$.current.bottom=at,function(de){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ce=de<0&&$.current.top||de>0&&$.current.bottom;return be&&Ce?(clearTimeout(J.current),he.current=!1):(!Ce||he.current)&&Y(),!he.current&&Ce}};function P(ae,at,he,J,Y){var $=Object(d.useRef)(0),de=Object(d.useRef)(null),be=Object(d.useRef)(null),Ce=Object(d.useRef)(!1),Be=B(at,he);function fe(He,ir){if(l.a.cancel(de.current),$.current+=ir,be.current=ir,Be(ir))return;M||He.preventDefault(),de.current=Object(l.a)(function(){var ct=Ce.current?10:1;Y($.current*ct),$.current=0})}function Se(He,ir){Y(ir,!0),M||He.preventDefault()}var ke=Object(d.useRef)(null),rt=Object(d.useRef)(null);function xt(He){if(!ae)return;l.a.cancel(rt.current),rt.current=Object(l.a)(function(){ke.current=null},2);var ir=He.deltaX,ct=He.deltaY,Xt=He.shiftKey,hr=ir,Jt=ct;(ke.current==="sx"||!ke.current&&(Xt||!1)&&ct&&!ir)&&(hr=ct,Jt=0,ke.current="sx");var Pt=Math.abs(hr),Wt=Math.abs(Jt);ke.current===null&&(ke.current=J&&Pt>Wt?"x":"y"),ke.current==="y"?fe(He,Jt):Se(He,hr)}function ht(He){if(!ae)return;Ce.current=He.detail===be.current}return[xt,ht]}var X=n("TNol"),F=14/15;function j(ae,at,he){var J=Object(d.useRef)(!1),Y=Object(d.useRef)(0),$=Object(d.useRef)(null),de=Object(d.useRef)(null),be,Ce=function(ke){if(J.current){var rt=Math.ceil(ke.touches[0].pageY),xt=Y.current-rt;Y.current=rt,he(xt)&&ke.preventDefault(),clearInterval(de.current),de.current=setInterval(function(){xt*=F,(!he(xt,!0)||Math.abs(xt)<=.1)&&clearInterval(de.current)},16)}},Be=function(){J.current=!1,be()},fe=function(ke){be(),ke.touches.length===1&&!J.current&&(J.current=!0,Y.current=Math.ceil(ke.touches[0].pageY),$.current=ke.target,$.current.addEventListener("touchmove",Ce),$.current.addEventListener("touchend",Be))};be=function(){$.current&&($.current.removeEventListener("touchmove",Ce),$.current.removeEventListener("touchend",Be))},Object(X.a)(function(){return ae&&at.current.addEventListener("touchstart",fe),function(){var Se;(Se=at.current)===null||Se===void 0||Se.removeEventListener("touchstart",fe),be(),clearInterval(de.current)}},[ae])}var K=20;function z(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,he=ae/at*100;return isNaN(he)&&(he=0),he=Math.max(he,K),he=Math.min(he,ae/2),Math.floor(he)}var V=n("mBDr"),Q=n("6cGi"),G=n("c+Xe"),te=n("ub+h"),q=n("bG1m"),le=n("Kwbf");function re(ae,at,he,J){var Y=d.useMemo(function(){return[new Map,[]]},[ae,he.id,J]),$=Object(v.a)(Y,2),de=$[0],be=$[1],Ce=function(fe){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fe,ke=de.get(fe),rt=de.get(Se);if(ke===void 0||rt===void 0)for(var xt=ae.length,ht=be.length;ht<xt;ht+=1){var He,ir=ae[ht],ct=at(ir);de.set(ct,ht);var Xt=(He=he.get(ct))!==null&&He!==void 0?He:J;if(be[ht]=(be[ht-1]||0)+Xt,ct===fe&&(ke=ht),ct===Se&&(rt=ht),ke!==void 0&&rt!==void 0)break}return{top:be[ke-1]||0,bottom:be[rt]}};return Ce}var we=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender"],Ie=[],Me={overflowY:"auto",overflowAnchor:"none"};function Je(ae,at){var he=ae.prefixCls,J=he===void 0?"rc-virtual-list":he,Y=ae.className,$=ae.height,de=ae.itemHeight,be=ae.fullHeight,Ce=be===void 0?!0:be,Be=ae.style,fe=ae.data,Se=ae.children,ke=ae.itemKey,rt=ae.virtual,xt=ae.direction,ht=ae.scrollWidth,He=ae.component,ir=He===void 0?"div":He,ct=ae.onScroll,Xt=ae.onVirtualScroll,hr=ae.onVisibleChange,Jt=ae.innerProps,Pt=ae.extraRender,Wt=Object(f.a)(ae,we),Ge=!!(rt!==!1&&$&&de),pe=Ge&&fe&&(de*fe.length>$||!!ht),se=xt==="rtl",lt=i()(J,Object(m.a)({},"".concat(J,"-rtl"),se),Y),qe=fe||Ie,me=Object(d.useRef)(),Ht=Object(d.useRef)(),yr=Object(d.useState)(0),At=Object(v.a)(yr,2),rr=At[0],ur=At[1],vn=Object(d.useState)(0),Bt=Object(v.a)(vn,2),sr=Bt[0],Yt=Bt[1],pt=Object(d.useState)(!1),it=Object(v.a)(pt,2),Fr=it[0],cn=it[1],_n=function(){cn(!0)},Kn=function(){cn(!1)},gi=d.useCallback(function(on){return typeof ke=="function"?ke(on):on==null?void 0:on[ke]},[ke]),Mn={getKey:gi};function Un(on){ur(function(jr){var ai;typeof on=="function"?ai=on(jr):ai=on;var Oi=ei(ai);return me.current.scrollTop=Oi,Oi})}var $t=Object(d.useRef)({start:0,end:qe.length}),Ct=Object(d.useRef)(),Re=I(qe,gi),De=Object(v.a)(Re,1),Pe=De[0];Ct.current=Pe;var et=_(gi,null,null),yt=Object(v.a)(et,4),St=yt[0],Vt=yt[1],Rr=yt[2],Vr=yt[3],hn=d.useMemo(function(){if(!Ge)return{scrollHeight:void 0,start:0,end:qe.length-1,offset:void 0};if(!pe){var on;return{scrollHeight:((on=Ht.current)===null||on===void 0?void 0:on.offsetHeight)||0,start:0,end:qe.length-1,offset:void 0}}for(var jr=0,ai,Oi,Gi,rn=qe.length,Cn=0;Cn<rn;Cn+=1){var Yn=qe[Cn],Gt=gi(Yn),Ot=Rr.get(Gt),Rt=jr+(Ot===void 0?de:Ot);Rt>=rr&&ai===void 0&&(ai=Cn,Oi=jr),Rt>rr+$&&Gi===void 0&&(Gi=Cn),jr=Rt}return ai===void 0&&(ai=0,Oi=0,Gi=Math.ceil($/de)),Gi===void 0&&(Gi=qe.length-1),Gi=Math.min(Gi+1,qe.length-1),{scrollHeight:jr,start:ai,end:Gi,offset:Oi}},[pe,Ge,rr,qe,Vr,$]),Ft=hn.scrollHeight,vt=hn.start,bt=hn.end,fr=hn.offset;$t.current.start=vt,$t.current.end=bt;var Qt=d.useState({width:0,height:$}),Mt=Object(v.a)(Qt,2),qt=Mt[0],kt=Mt[1],er=function(jr){kt(jr)},Kr=Object(d.useRef)(),Ir=Object(d.useRef)(),Dr=d.useMemo(function(){return z(qt.width,ht)},[qt.width,ht]),dn=d.useMemo(function(){return z(qt.height,Ft)},[qt.height,Ft]),yn=Ft-$,ti=Object(d.useRef)(yn);ti.current=yn;function ei(on){var jr=on;return Number.isNaN(ti.current)||(jr=Math.min(jr,ti.current)),jr=Math.max(jr,0),jr}var fi=rr<=0,Ei=rr>=yn,Di=B(fi,Ei),Hi=function(){return{x:se?-sr:sr,y:rr}},nt=Object(d.useRef)(Hi()),Le=Object(V.a)(function(){if(Xt){var on=Hi();(nt.current.x!==on.x||nt.current.y!==on.y)&&(Xt(on),nt.current=on)}});function je(on,jr){var ai=on;jr?(Object(u.flushSync)(function(){Yt(ai)}),Le()):Un(ai)}function Xe(on){var jr=on.currentTarget.scrollTop;jr!==rr&&Un(jr),ct==null||ct(on),Le()}var tt=function(jr){var ai=jr,Oi=ht-qt.width;return ai=Math.max(ai,0),ai=Math.min(ai,Oi),ai},Ze=Object(V.a)(function(on,jr){jr?(Object(u.flushSync)(function(){Yt(function(ai){var Oi=ai+(se?-on:on);return tt(Oi)})}),Le()):Un(function(ai){var Oi=ai+on;return Oi})}),st=P(Ge,fi,Ei,!!ht,Ze),Et=Object(v.a)(st,2),gt=Et[0],pr=Et[1];j(Ge,me,function(on,jr){return Di(on,jr)?!1:(gt({preventDefault:function(){},deltaY:on}),!0)}),Object(X.a)(function(){function on(ai){Ge&&ai.preventDefault()}var jr=me.current;return jr.addEventListener("wheel",gt),jr.addEventListener("DOMMouseScroll",pr),jr.addEventListener("MozMousePixelScroll",on),function(){jr.removeEventListener("wheel",gt),jr.removeEventListener("DOMMouseScroll",pr),jr.removeEventListener("MozMousePixelScroll",on)}},[Ge]);var qr=function(){var jr,ai;(jr=Kr.current)===null||jr===void 0||jr.delayHidden(),(ai=Ir.current)===null||ai===void 0||ai.delayHidden()},Qr=T(me,qe,Rr,de,gi,Vt,Un,qr);d.useImperativeHandle(at,function(){return{getScrollInfo:Hi,scrollTo:function(jr){function ai(Oi){return Oi&&Object(x.a)(Oi)==="object"&&("left"in Oi||"top"in Oi)}ai(jr)?(jr.left!==void 0&&Yt(tt(jr.left)),Qr(jr.top)):Qr(jr)}}}),Object(X.a)(function(){if(hr){var on=qe.slice(vt,bt+1);hr(on,qe)}},[vt,bt,qe]);var gn=re(qe,gi,Rr,de),vr=Pt==null?void 0:Pt({start:vt,end:bt,virtual:pe,offsetX:sr,offsetY:fr,rtl:se,getSize:gn}),Vn=g(qe,vt,bt,ht,St,Se,Mn),kr=null;$&&(kr=Object(p.a)(Object(m.a)({},Ce?"height":"maxHeight",$),Me),Ge&&(kr.overflowY="hidden",ht&&(kr.overflowX="hidden"),Fr&&(kr.pointerEvents="none")));var Bn={};return se&&(Bn.dir="rtl"),d.createElement("div",Object(y.a)({style:Object(p.a)(Object(p.a)({},Be),{},{position:"relative"}),className:lt},Bn,Wt),d.createElement(t.a,{onResize:er},d.createElement(ir,{className:"".concat(J,"-holder"),style:kr,ref:me,onScroll:Xe,onMouseEnter:qr},d.createElement(e,{prefixCls:J,height:Ft,offsetX:sr,offsetY:fr,scrollWidth:ht,onInnerResize:Vt,ref:Ht,innerProps:Jt,rtl:se,extra:vr},Vn))),pe&&Ft>$&&d.createElement(c,{ref:Kr,prefixCls:J,scrollOffset:rr,scrollRange:Ft,rtl:se,onScroll:je,onStartMove:_n,onStopMove:Kn,spinSize:dn,containerSize:qt.height}),pe&&ht&&d.createElement(c,{ref:Ir,prefixCls:J,scrollOffset:sr,scrollRange:ht,rtl:se,onScroll:je,onStartMove:_n,onStopMove:Kn,spinSize:Dr,containerSize:qt.width,horizontal:!0}))}var Ve=d.forwardRef(Je);Ve.displayName="List";var ut=Ve,Fe=D.a=ut},"+rIm":function(k,D,n){var y=n("bYtY"),p=y.retrieve,x=y.defaults,v=y.extend,m=y.each,f=n("7aKB"),d=n("IwbS"),u=n("Qxkt"),o=n("OELB"),i=o.isRadianAroundZero,t=o.remRadian,s=n("oVpE"),e=s.createSymbol,l=n("Fofx"),r=n("QBsz"),a=r.applyTransform,c=n("aX7z"),h=c.shouldShowAllLabels,g=Math.PI,A=function(F,j){this.opt=j,this.axisModel=F,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(F){return!!b[F]},add:function(F){b[F].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var F=this.opt,j=this.axisModel;if(!j.get("axisLine.show"))return;var K=this.axisModel.axis.getExtent(),z=this._transform,V=[K[0],0],Q=[K[1],0];z&&(a(V,V,z),a(Q,Q,z));var G=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:G,strokeContainThreshold:F.strokeContainThreshold||5,silent:!0,z2:1}));var te=j.get("axisLine.symbol"),q=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 q=="string"||typeof q=="number")&&(q=[q,q]);var re=q[0],we=q[1];m([{rotate:F.rotation+Math.PI/2,offset:le[0],r:0},{rotate:F.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(Ie,Me){if(te[Me]!=="none"&&te[Me]!=null){var Je=e(te[Me],-re/2,-we/2,re,we,G.stroke,!0),Ve=Ie.r+Ie.offset,ut=[V[0]+Ve*Math.cos(F.rotation),V[1]-Ve*Math.sin(F.rotation)];Je.attr({rotation:Ie.rotate,position:ut,silent:!0,z2:11}),this.group.add(Je)}},this)}},axisTickLabel:function(){var F=this.axisModel,j=this.opt,K=M(this,F,j),z=P(this,F,j);T(F,z,K),B(this,F,j)},axisName:function(){var F=this.opt,j=this.axisModel,K=p(F.axisName,j.get("name"));if(!K)return;var z=j.get("nameLocation"),V=F.nameDirection,Q=j.getModel("nameTextStyle"),G=j.get("nameGap")||0,te=this.axisModel.axis.getExtent(),q=te[0]>te[1]?-1:1,le=[z==="start"?te[0]-q*G:z==="end"?te[1]+q*G:(te[0]+te[1])/2,I(z)?F.labelOffset+V*G:0],re,we=j.get("nameRotate");we!=null&&(we=we*g/180);var Ie;I(z)?re=E(F.rotation,we!=null?we:F.rotation,V):(re=C(F,z,we||0,te),Ie=F.axisNameAvailableWidth,Ie!=null&&(Ie=Math.abs(Ie/Math.sin(re.rotation)),!isFinite(Ie)&&(Ie=null)));var Me=Q.getFont(),Je=j.get("nameTruncate",!0)||{},Ve=Je.ellipsis,ut=p(F.nameTruncateMaxWidth,Je.maxWidth,Ie),Fe=Ve!=null&&ut!=null?f.truncateText(K,ut,Me,Ve,{minChar:2,placeholder:Je.placeholder}):K,ae=j.get("tooltip",!0),at=j.mainType,he={componentType:at,name:K,$vars:["name"]};he[at+"Index"]=j.componentIndex;var J=new d.Text({anid:"name",__fullText:K,__truncatedText:Fe,position:le,rotation:re.rotation,silent:_(j),z2:1,tooltip:ae&&ae.show?v({content:K,formatter:function(){return K},formatterParams:he},ae):null});d.setTextStyle(J.style,Q,{text:Fe,textFont:Me,textFill:Q.getTextColor()||j.get("axisLine.lineStyle.color"),textAlign:Q.get("align")||re.textAlign,textVerticalAlign:Q.get("verticalAlign")||re.textVerticalAlign}),j.get("triggerEvent")&&(J.eventData=S(j),J.eventData.targetType="axisName",J.eventData.name=K),this._dumbGroup.add(J),J.updateTransform(),this.group.add(J),J.decomposeTransform()}},S=A.makeAxisEventDataBase=function(F){var j={componentType:F.mainType,componentIndex:F.componentIndex};return j[F.mainType+"Index"]=F.componentIndex,j},E=A.innerTextLayout=function(F,j,K){var z=t(j-F),V,Q;return i(z)?(Q=K>0?"top":"bottom",V="center"):i(z-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(F,j,K,z){var V=t(K-F.rotation),Q,G,te=z[0]>z[1],q=j==="start"&&!te||j!=="start"&&te;return i(V-g/2)?(G=q?"bottom":"top",Q="center"):i(V-g*1.5)?(G=q?"top":"bottom",Q="center"):(G="middle",V<g*1.5&&V>g/2?Q=q?"left":"right":Q=q?"right":"left"),{rotation:V,textAlign:Q,textVerticalAlign:G}}var _=A.isLabelSilent=function(F){var j=F.get("tooltip");return F.get("silent")||!(F.get("triggerEvent")||j&&j.show)};function T(F,j,K){if(h(F.axis))return;var z=F.get("axisLabel.showMinLabel"),V=F.get("axisLabel.showMaxLabel");j=j||[],K=K||[];var Q=j[0],G=j[1],te=j[j.length-1],q=j[j.length-2],le=K[0],re=K[1],we=K[K.length-1],Ie=K[K.length-2];z===!1?(w(Q),w(le)):O(Q,G)&&(z?(w(G),w(re)):(w(Q),w(le))),V===!1?(w(te),w(we)):O(q,te)&&(V?(w(q),w(Ie)):(w(te),w(we)))}function w(F){F&&(F.ignore=!0)}function O(F,j,K){var z=F&&F.getBoundingRect().clone(),V=j&&j.getBoundingRect().clone();if(!z||!V)return;var Q=l.identity([]);return l.rotate(Q,Q,-F.rotation),z.applyTransform(l.mul([],Q,F.getLocalTransform())),V.applyTransform(l.mul([],Q,j.getLocalTransform())),z.intersect(V)}function I(F){return F==="middle"||F==="center"}function R(F,j,K,z,V){for(var Q=[],G=[],te=[],q=0;q<F.length;q++){var le=F[q].coord;G[0]=le,G[1]=0,te[0]=le,te[1]=K,j&&(a(G,G,j),a(te,te,j));var re=new d.Line({anid:V+"_"+F[q].tickValue,subPixelOptimize:!0,shape:{x1:G[0],y1:G[1],x2:te[0],y2:te[1]},style:z,z2:2,silent:!0});Q.push(re)}return Q}function M(F,j,K){var z=j.axis,V=j.getModel("axisTick");if(!V.get("show")||z.scale.isBlank())return;for(var Q=V.getModel("lineStyle"),G=K.tickDirection*V.get("length"),te=z.getTicksCoords(),q=R(te,F._transform,G,x(Q.getLineStyle(),{stroke:j.get("axisLine.lineStyle.color")}),"ticks"),le=0;le<q.length;le++)F.group.add(q[le]);return q}function B(F,j,K){var z=j.axis,V=j.getModel("minorTick");if(!V.get("show")||z.scale.isBlank())return;var Q=z.getMinorTicksCoords();if(!Q.length)return;for(var G=V.getModel("lineStyle"),te=K.tickDirection*V.get("length"),q=x(G.getLineStyle(),x(j.getModel("axisTick").getLineStyle(),{stroke:j.get("axisLine.lineStyle.color")})),le=0;le<Q.length;le++)for(var re=R(Q[le],F._transform,te,q,"minorticks_"+le),we=0;we<re.length;we++)F.group.add(re[we])}function P(F,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"),G=Q.get("margin"),te=z.getViewLabels(),q=(p(K.labelRotate,Q.get("rotate"))||0)*g/180,le=E(K.rotation,q,K.labelDirection),re=j.getCategories&&j.getCategories(!0),we=[],Ie=_(j),Me=j.get("triggerEvent");return m(te,function(Je,Ve){var ut=Je.tickValue,Fe=Je.formattedLabel,ae=Je.rawLabel,at=Q;re&&re[ut]&&re[ut].textStyle&&(at=new u(re[ut].textStyle,Q,j.ecModel));var he=at.getTextColor()||j.get("axisLine.lineStyle.color"),J=z.dataToCoord(ut),Y=[J,K.labelOffset+K.labelDirection*G],$=new d.Text({anid:"label_"+ut,position:Y,rotation:le.rotation,silent:Ie,z2:10});d.setTextStyle($.style,at,{text:Fe,textAlign:at.getShallow("align",!0)||le.textAlign,textVerticalAlign:at.getShallow("verticalAlign",!0)||at.getShallow("baseline",!0)||le.textVerticalAlign,textFill:typeof he=="function"?he(z.type==="category"?ae:z.type==="value"?ut+"":ut,Ve):he}),Me&&($.eventData=S(j),$.eventData.targetType="axisLabel",$.eventData.value=ae),F._dumbGroup.add($),$.updateTransform(),we.push($),F.group.add($),$.decomposeTransform()}),we}var X=A;k.exports=X},"+wW9":function(k,D,n){var y=n("bYtY"),p=y.each,x=y.isArray,v=y.isObject,m=n("JuEJ"),f=n("4NO4"),d=f.normalizeToArray;function u(l,r){r=r.split(",");for(var a=l,c=0;c<r.length&&!(a=a&&a[r[c]],a==null);c++);return a}function o(l,r,a,c){r=r.split(",");for(var h=l,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]]=a)}function i(l){p(t,function(r){r[0]in l&&!(r[1]in l)&&(l[r[1]]=l[r[0]])})}var t=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],s=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function e(l,r){m(l,r),l.series=d(l.series),p(l.series,function(a){if(!v(a))return;var c=a.type;if(c==="line")a.clipOverflow!=null&&(a.clip=a.clipOverflow);else if(c==="pie"||c==="gauge")a.clockWise!=null&&(a.clockwise=a.clockWise);else if(c==="gauge"){var h=u(a,"pointer.color");h!=null&&o(a,"itemStyle.color",h)}i(a)}),l.dataRange&&(l.visualMap=l.dataRange),p(s,function(a){var c=l[a];c&&(x(c)||(c=[c]),p(c,function(h){i(h)}))})}k.exports=e},"/IIm":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),v=n("H6uX"),m=n("IwbS"),f=n("pP6R"),d=n("gPAo"),u=x.curry,o=x.each,i=x.map,t=Math.min,s=Math.max,e=Math.pow,l=1e4,r=6,a=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 S(fe){v.call(this),this._zr=fe,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(Se,ke){this._handlers[ke]=x.bind(Se,this)},this)}S.prototype={constructor:S,enableBrush:function(fe){return this._brushType&&C(this),fe.brushType&&E(this,fe),this},setPanels:function(fe){if(fe&&fe.length){var Se=this._panels={};x.each(fe,function(ke){Se[ke.panelId]=x.clone(ke)})}else this._panels=null;return this},mount:function(fe){fe=fe||{},this._enableGlobalPan=fe.enableGlobalPan;var Se=this.group;return this._zr.add(Se),Se.attr({position:fe.position||[0,0],rotation:fe.rotation||0,scale:fe.scale||[1,1]}),this._transform=Se.getLocalTransform(),this},eachCover:function(fe,Se){o(this._covers,fe,Se)},updateCovers:function(fe){fe=x.map(fe,function(hr){return x.merge(x.clone(A),hr,!0)});var Se="\0-brush-index-",ke=this._covers,rt=this._covers=[],xt=this,ht=this._creatingCover;return new d(ke,fe,ir,He).add(ct).update(ct).remove(Xt).execute(),this;function He(hr,Jt){return(hr.id!=null?hr.id:Se+Jt)+"-"+hr.brushType}function ir(hr,Jt){return He(hr.__brushOption,Jt)}function ct(hr,Jt){var Pt=fe[hr];if(Jt!=null&&ke[Jt]===ht)rt[hr]=ke[Jt];else{var Wt=rt[hr]=Jt!=null?(ke[Jt].__brushOption=Pt,ke[Jt]):O(xt,w(xt,Pt));M(xt,Wt)}}function Xt(hr){ke[hr]!==ht&&xt.group.remove(ke[hr])}},unmount:function(){return this.enableBrush(!1),F(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},x.mixin(S,v);function E(fe,Se){var ke=fe._zr;fe._enableGlobalPan||f.take(ke,c,fe._uid),_(ke,fe._handlers),fe._brushType=Se.brushType,fe._brushOption=x.merge(x.clone(A),Se,!0)}function C(fe){var Se=fe._zr;f.release(Se,c,fe._uid),T(Se,fe._handlers),fe._brushType=fe._brushOption=null}function _(fe,Se){o(Se,function(ke,rt){fe.on(rt,ke)})}function T(fe,Se){o(Se,function(ke,rt){fe.off(rt,ke)})}function w(fe,Se){var ke=be[Se.brushType].createCover(fe,Se);return ke.__brushOption=Se,R(ke,Se),fe.group.add(ke),ke}function O(fe,Se){var ke=B(Se);return ke.endCreating&&(ke.endCreating(fe,Se),R(Se,Se.__brushOption)),Se}function I(fe,Se){var ke=Se.__brushOption;B(Se).updateCoverShape(fe,Se,ke.range,ke)}function R(fe,Se){var ke=Se.z;ke==null&&(ke=l),fe.traverse(function(rt){rt.z=ke,rt.z2=ke})}function M(fe,Se){B(Se).updateCommon(fe,Se),I(fe,Se)}function B(fe){return be[fe.__brushOption.brushType]}function P(fe,Se,ke){var rt=fe._panels;if(!rt)return!0;var xt,ht=fe._transform;return o(rt,function(He){He.isTargetByCursor(Se,ke,ht)&&(xt=He)}),xt}function X(fe,Se){var ke=fe._panels;if(!ke)return!0;var rt=Se.__brushOption.panelId;return rt!=null?ke[rt]:!0}function F(fe){var Se=fe._covers,ke=Se.length;return o(Se,function(rt){fe.group.remove(rt)},fe),Se.length=0,!!ke}function j(fe,Se){var ke=i(fe._covers,function(rt){var xt=rt.__brushOption,ht=x.clone(xt.range);return{brushType:xt.brushType,panelId:xt.panelId,range:ht}});fe.trigger("brush",ke,{isEnd:!!Se.isEnd,removeOnClick:!!Se.removeOnClick})}function K(fe){var Se=fe._track;if(!Se.length)return!1;var ke=Se[Se.length-1],rt=Se[0],xt=ke[0]-rt[0],ht=ke[1]-rt[1],He=e(xt*xt+ht*ht,.5);return He>r}function z(fe){var Se=fe.length-1;return Se<0&&(Se=0),[fe[0],fe[Se]]}function V(fe,Se,ke,rt){var xt=new m.Group;return xt.add(new m.Rect({name:"main",style:q(ke),silent:!0,draggable:!0,cursor:"move",drift:u(fe,Se,xt,"nswe"),ondragend:u(j,Se,{isEnd:!0})})),o(rt,function(ht){xt.add(new m.Rect({name:ht,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:u(fe,Se,xt,ht),ondragend:u(j,Se,{isEnd:!0})}))}),xt}function Q(fe,Se,ke,rt){var xt=rt.brushStyle.lineWidth||0,ht=s(xt,a),He=ke[0][0],ir=ke[1][0],ct=He-xt/2,Xt=ir-xt/2,hr=ke[0][1],Jt=ke[1][1],Pt=hr-ht+xt/2,Wt=Jt-ht+xt/2,Ge=hr-He,pe=Jt-ir,se=Ge+xt,lt=pe+xt;te(fe,Se,"main",He,ir,Ge,pe),rt.transformable&&(te(fe,Se,"w",ct,Xt,ht,lt),te(fe,Se,"e",Pt,Xt,ht,lt),te(fe,Se,"n",ct,Xt,se,ht),te(fe,Se,"s",ct,Wt,se,ht),te(fe,Se,"nw",ct,Xt,ht,ht),te(fe,Se,"ne",Pt,Xt,ht,ht),te(fe,Se,"sw",ct,Wt,ht,ht),te(fe,Se,"se",Pt,Wt,ht,ht))}function G(fe,Se){var ke=Se.__brushOption,rt=ke.transformable,xt=Se.childAt(0);xt.useStyle(q(ke)),xt.attr({silent:!rt,cursor:rt?"move":"default"}),o(["w","e","n","s","se","sw","ne","nw"],function(ht){var He=Se.childOfName(ht),ir=we(fe,ht);He&&He.attr({silent:!rt,invisible:!rt,cursor:rt?g[ir]+"-resize":null})})}function te(fe,Se,ke,rt,xt,ht,He){var ir=Se.childOfName(ke);ir&&ir.setShape(ut(Ve(fe,Se,[[rt,xt],[rt+ht,xt+He]])))}function q(fe){return x.defaults({strokeNoScale:!0},fe.brushStyle)}function le(fe,Se,ke,rt){var xt=[t(fe,ke),t(Se,rt)],ht=[s(fe,ke),s(Se,rt)];return[[xt[0],ht[0]],[xt[1],ht[1]]]}function re(fe){return m.getTransform(fe.group)}function we(fe,Se){if(Se.length>1){Se=Se.split("");var ke=[we(fe,Se[0]),we(fe,Se[1])];return(ke[0]==="e"||ke[0]==="w")&&ke.reverse(),ke.join("")}else{var rt={w:"left",e:"right",n:"top",s:"bottom"},xt={left:"w",right:"e",top:"n",bottom:"s"},ke=m.transformDirection(rt[Se],re(fe));return xt[ke]}}function Ie(fe,Se,ke,rt,xt,ht,He,ir){var ct=rt.__brushOption,Xt=fe(ct.range),hr=Je(ke,ht,He);o(xt.split(""),function(Jt){var Pt=h[Jt];Xt[Pt[0]][Pt[1]]+=hr[Pt[0]]}),ct.range=Se(le(Xt[0][0],Xt[1][0],Xt[0][1],Xt[1][1])),M(ke,rt),j(ke,{isEnd:!1})}function Me(fe,Se,ke,rt,xt){var ht=Se.__brushOption.range,He=Je(fe,ke,rt);o(ht,function(ir){ir[0]+=He[0],ir[1]+=He[1]}),M(fe,Se),j(fe,{isEnd:!1})}function Je(fe,Se,ke){var rt=fe.group,xt=rt.transformCoordToLocal(Se,ke),ht=rt.transformCoordToLocal(0,0);return[xt[0]-ht[0],xt[1]-ht[1]]}function Ve(fe,Se,ke){var rt=X(fe,Se);return rt&&rt!==!0?rt.clipPath(ke,fe._transform):x.clone(ke)}function ut(fe){var Se=t(fe[0][0],fe[1][0]),ke=t(fe[0][1],fe[1][1]),rt=s(fe[0][0],fe[1][0]),xt=s(fe[0][1],fe[1][1]);return{x:Se,y:ke,width:rt-Se,height:xt-ke}}function Fe(fe,Se,ke){if(!fe._brushType||de(fe,Se))return;var rt=fe._zr,xt=fe._covers,ht=P(fe,Se,ke);if(!fe._dragging)for(var He=0;He<xt.length;He++){var ir=xt[He].__brushOption;if(ht&&(ht===!0||ir.panelId===ht.panelId)&&be[ir.brushType].contain(xt[He],ke[0],ke[1]))return}ht&&rt.setCursorStyle("crosshair")}function ae(fe){var Se=fe.event;Se.preventDefault&&Se.preventDefault()}function at(fe,Se,ke){return fe.childOfName("main").contain(Se,ke)}function he(fe,Se,ke,rt){var xt=fe._creatingCover,ht=fe._creatingPanel,He=fe._brushOption,ir;if(fe._track.push(ke.slice()),K(fe)||xt){if(ht&&!xt){He.brushMode==="single"&&F(fe);var ct=x.clone(He);ct.brushType=J(ct.brushType,ht),ct.panelId=ht===!0?null:ht.panelId,xt=fe._creatingCover=w(fe,ct),fe._covers.push(xt)}if(xt){var Xt=be[J(fe._brushType,ht)],hr=xt.__brushOption;hr.range=Xt.getCreatingRange(Ve(fe,xt,fe._track)),rt&&(O(fe,xt),Xt.updateCommon(fe,xt)),I(fe,xt),ir={isEnd:rt}}}else rt&&He.brushMode==="single"&&He.removeOnClick&&(P(fe,Se,ke)&&F(fe)&&(ir={isEnd:rt,removeOnClick:!0}));return ir}function J(fe,Se){return fe==="auto"?Se.defaultBrushType:fe}var Y={mousedown:function(fe){if(this._dragging)$(this,fe);else if(!fe.target||!fe.target.draggable){ae(fe);var Se=this.group.transformCoordToLocal(fe.offsetX,fe.offsetY);this._creatingCover=null;var ke=this._creatingPanel=P(this,fe,Se);ke&&(this._dragging=!0,this._track=[Se.slice()])}},mousemove:function(fe){var Se=fe.offsetX,ke=fe.offsetY,rt=this.group.transformCoordToLocal(Se,ke);if(Fe(this,fe,rt),this._dragging){ae(fe);var xt=he(this,fe,rt,!1);xt&&j(this,xt)}},mouseup:function(fe){$(this,fe)}};function $(fe,Se){if(fe._dragging){ae(Se);var ke=Se.offsetX,rt=Se.offsetY,xt=fe.group.transformCoordToLocal(ke,rt),ht=he(fe,Se,xt,!0);fe._dragging=!1,fe._track=[],fe._creatingCover=null,ht&&j(fe,ht)}}function de(fe,Se,ke){var rt=fe._zr;return Se<0||Se>rt.getWidth()||ke<0||ke>rt.getHeight()}var be={lineX:Ce(0),lineY:Ce(1),rect:{createCover:function(fe,Se){return V(u(Ie,function(ke){return ke},function(ke){return ke}),fe,Se,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(fe){var Se=z(fe);return le(Se[1][0],Se[1][1],Se[0][0],Se[0][1])},updateCoverShape:function(fe,Se,ke,rt){Q(fe,Se,ke,rt)},updateCommon:G,contain:at},polygon:{createCover:function(fe,Se){var ke=new m.Group;return ke.add(new m.Polyline({name:"main",style:q(Se),silent:!0})),ke},getCreatingRange:function(fe){return fe},endCreating:function(fe,Se){Se.remove(Se.childAt(0)),Se.add(new m.Polygon({name:"main",draggable:!0,drift:u(Me,fe,Se),ondragend:u(j,fe,{isEnd:!0})}))},updateCoverShape:function(fe,Se,ke,rt){Se.childAt(0).setShape({points:Ve(fe,Se,ke)})},updateCommon:G,contain:at}};function Ce(fe){return{createCover:function(Se,ke){return V(u(Ie,function(rt){var xt=[rt,[0,100]];return fe&&xt.reverse(),xt},function(rt){return rt[fe]}),Se,ke,[["w","e"],["n","s"]][fe])},getCreatingRange:function(Se){var ke=z(Se),rt=t(ke[0][fe],ke[1][fe]),xt=s(ke[0][fe],ke[1][fe]);return[rt,xt]},updateCoverShape:function(Se,ke,rt,xt){var ht,He=X(Se,ke);if(He!==!0&&He.getLinearBrushOtherExtent)ht=He.getLinearBrushOtherExtent(fe,Se._transform);else{var ir=Se._zr;ht=[0,[ir.getWidth(),ir.getHeight()][1-fe]]}var ct=[rt,ht];fe&&ct.reverse(),Q(Se,ke,ct,xt)},updateCommon:G,contain:at}}var Be=S;k.exports=Be},"/MfK":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="DeleteOutlined";var d=D.a=p.forwardRef(f)},"/POA":function(k,D,n){!function(y,p){if(!0)k.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(u){return v[u]}.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(u){return d._listeners.push(u),{dispose:function(){if(!d._disposed){for(var i=0;i<d._listeners.length;i++)if(d._listeners[i]===u)return void d._listeners.splice(i,1)}}}}),this._event},enumerable:!1,configurable:!0}),m.prototype.fire=function(f,d){for(var u=[],o=0;o<this._listeners.length;o++)u.push(this._listeners[o]);for(o=0;o<u.length;o++)u[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,u=this._disposables;d<u.length;d++)u[d].dispose();this._disposables.length=0},f.prototype.register=function(d){return this._disposables.push(d),d},f.prototype.unregister=function(d){var u=this._disposables.indexOf(d);u!==-1&&this._disposables.splice(u,1)},f}();function m(f){for(var d=0,u=f;d<u.length;d++)u[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,s){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var r in l)l.hasOwnProperty(r)&&(e[r]=l[r])})(t,s)},function(i,t){function s(){this.constructor=i}v(i,t),i.prototype=t===null?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(p,"__esModule",{value:!0}),p.CellData=void 0;var f=x(8),d=x(3),u=x(6),o=function(i){function t(){var s=i!==null&&i.apply(this,arguments)||this;return s.content=0,s.fg=0,s.bg=0,s.extended=new u.ExtendedAttrs,s.combinedData="",s}return m(t,i),t.fromCharData=function(s){var e=new t;return e.setFromCharData(s),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(s){this.fg=s[d.CHAR_DATA_ATTR_INDEX],this.bg=0;var e=!1;if(s[d.CHAR_DATA_CHAR_INDEX].length>2)e=!0;else if(s[d.CHAR_DATA_CHAR_INDEX].length===2){var l=s[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=l&&l<=56319){var r=s[d.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=r&&r<=57343?this.content=1024*(l-55296)+r-56320+65536|s[d.CHAR_DATA_WIDTH_INDEX]<<22:e=!0}else e=!0}else this.content=s[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|s[d.CHAR_DATA_WIDTH_INDEX]<<22;e&&(this.combinedData=s[d.CHAR_DATA_CHAR_INDEX],this.content=2097152|s[d.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(u.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,u){d===void 0&&(d=0),u===void 0&&(u=-1),this.underlineStyle=d,this.underlineColor=u}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 u=!1;return{dispose:function(){u||(u=!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,u){d===void 0&&(d=0),u===void 0&&(u=f.length);for(var o="",i=d;i<u;++i){var t=f[i];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,u){var o=d.length;if(!o)return 0;var i=0,t=0;this._interim&&(56320<=(l=d.charCodeAt(t++))&&l<=57343?u[i++]=1024*(this._interim-55296)+l-56320+65536:(u[i++]=this._interim,u[i++]=l),this._interim=0);for(var s=t;s<o;++s){var e=d.charCodeAt(s);if(55296<=e&&e<=56319){if(++s>=o)return this._interim=e,i;var l;56320<=(l=d.charCodeAt(s))&&l<=57343?u[i++]=1024*(e-55296)+l-56320+65536:(u[i++]=e,u[i++]=l)}else u[i++]=e}return i},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,u){var o=d.length;if(!o)return 0;var i,t,s,e,l=0,r=0,a=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,S=b-g;a<S;){if(a>=o)return 0;if((192&(A=d[a++]))!=128){a--,c=!0;break}this.interim[g++]=A,h<<=6,h|=63&A}c||(b===2?h<128?a--:u[l++]=h:b===3?h<2048||h>=55296&&h<=57343||(u[l++]=h):h<65536||h>1114111||(u[l++]=h)),this.interim.fill(0)}for(var E=o-4,C=a;C<o;){for(;!(!(C<E)||128&(i=d[C])||128&(t=d[C+1])||128&(s=d[C+2])||128&(e=d[C+3]));)u[l++]=i,u[l++]=t,u[l++]=s,u[l++]=e,C+=4;if((i=d[C++])<128)u[l++]=i;else if((224&i)==192){if(C>=o)return this.interim[0]=i,l;if((192&(t=d[C++]))!=128){C--;continue}if((r=(31&i)<<6|63&t)<128){C--;continue}u[l++]=r}else if((240&i)==224){if(C>=o)return this.interim[0]=i,l;if((192&(t=d[C++]))!=128){C--;continue}if(C>=o)return this.interim[0]=i,this.interim[1]=t,l;if((192&(s=d[C++]))!=128){C--;continue}if((r=(15&i)<<12|(63&t)<<6|63&s)<2048||r>=55296&&r<=57343)continue;u[l++]=r}else if((248&i)==240){if(C>=o)return this.interim[0]=i,l;if((192&(t=d[C++]))!=128){C--;continue}if(C>=o)return this.interim[0]=i,this.interim[1]=t,l;if((192&(s=d[C++]))!=128){C--;continue}if(C>=o)return this.interim[0]=i,this.interim[1]=t,this.interim[2]=s,l;if((192&(e=d[C++]))!=128){C--;continue}if((r=(7&i)<<18|(63&t)<<12|(63&s)<<6|63&e)<65536||r>1114111)continue;u[l++]=r}}return l},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 u(i){var t=i.toString(16);return t.length<2?"0"+t:t}function o(i,t){return i<t?(t+.05)/(i+.05):(i+.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(i){i.toCss=function(t,s,e,l){return l!==void 0?"#"+u(t)+u(s)+u(e)+u(l):"#"+u(t)+u(s)+u(e)},i.toRgba=function(t,s,e,l){return l===void 0&&(l=255),(t<<24|s<<16|e<<8|l)>>>0}}(v=p.channels||(p.channels={})),(m=p.color||(p.color={})).blend=function(i,t){var s=(255&t.rgba)/255;if(s===1)return{css:t.css,rgba:t.rgba};var e=t.rgba>>24&255,l=t.rgba>>16&255,r=t.rgba>>8&255,a=i.rgba>>24&255,c=i.rgba>>16&255,h=i.rgba>>8&255,g=a+Math.round((e-a)*s),A=c+Math.round((l-c)*s),b=h+Math.round((r-h)*s);return{css:v.toCss(g,A,b),rgba:v.toRgba(g,A,b)}},m.isOpaque=function(i){return(255&i.rgba)==255},m.ensureContrastRatio=function(i,t,s){var e=d.ensureContrastRatio(i.rgba,t.rgba,s);if(e)return d.toColor(e>>24&255,e>>16&255,e>>8&255)},m.opaque=function(i){var t=(255|i.rgba)>>>0,s=d.toChannels(t),e=s[0],l=s[1],r=s[2];return{css:v.toCss(e,l,r),rgba:t}},m.opacity=function(i,t){var s=Math.round(255*t),e=d.toChannels(i.rgba),l=e[0],r=e[1],a=e[2];return{css:v.toCss(l,r,a,s),rgba:v.toRgba(l,r,a,s)}},(p.css||(p.css={})).toColor=function(i){switch(i.length){case 7:return{css:i,rgba:(parseInt(i.slice(1),16)<<8|255)>>>0};case 9:return{css:i,rgba:parseInt(i.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(i){function t(s,e,l){var r=s/255,a=e/255,c=l/255;return .2126*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.7152*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.0722*(c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4))}i.relativeLuminance=function(s){return t(s>>16&255,s>>8&255,255&s)},i.relativeLuminance2=t}(f=p.rgb||(p.rgb={})),function(i){function t(e,l,r){for(var a=e>>24&255,c=e>>16&255,h=e>>8&255,g=l>>24&255,A=l>>16&255,b=l>>8&255,S=o(f.relativeLuminance2(g,b,A),f.relativeLuminance2(a,c,h));S<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)),S=o(f.relativeLuminance2(g,b,A),f.relativeLuminance2(a,c,h));return(g<<24|A<<16|b<<8|255)>>>0}function s(e,l,r){for(var a=e>>24&255,c=e>>16&255,h=e>>8&255,g=l>>24&255,A=l>>16&255,b=l>>8&255,S=o(f.relativeLuminance2(g,b,A),f.relativeLuminance2(a,c,h));S<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))),S=o(f.relativeLuminance2(g,b,A),f.relativeLuminance2(a,c,h));return(g<<24|A<<16|b<<8|255)>>>0}i.ensureContrastRatio=function(e,l,r){var a=f.relativeLuminance(e>>8),c=f.relativeLuminance(l>>8);if(o(a,c)<r)return c<a?t(e,l,r):s(e,l,r)},i.reduceLuminance=t,i.increaseLuminance=s,i.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},i.toColor=function(e,l,r){return{css:v.toCss(e,l,r),rgba:v.toRgba(e,l,r)}}}(d=p.rgba||(p.rgba={})),p.toPaddedHex=u,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(u,o){return u.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),u=x(28),o=x(10),i=x(17),t=function(){function s(e,l,r,a,c,h,g,A){this._container=e,this._alpha=a,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-"+l+"-layer"),this._canvas.style.zIndex=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return s.prototype.dispose=function(){var e;i.removeElementFromParent(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},s.prototype._initCanvas=function(){this._ctx=u.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},s.prototype.onOptionsChanged=function(){},s.prototype.onBlur=function(){},s.prototype.onFocus=function(){},s.prototype.onCursorMove=function(){},s.prototype.onGridChanged=function(e,l){},s.prototype.onSelectionChanged=function(e,l,r){r===void 0&&(r=!1)},s.prototype.setColors=function(e){this._refreshCharAtlas(e)},s.prototype._setTransparency=function(e){if(e!==this._alpha){var l=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,l),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},s.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())},s.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)},s.prototype._fillCells=function(e,l,r,a){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,r*this._scaledCellWidth,a*this._scaledCellHeight)},s.prototype._fillBottomLineAtCells=function(e,l,r){r===void 0&&(r=1),this._ctx.fillRect(e*this._scaledCellWidth,(l+1)*this._scaledCellHeight-window.devicePixelRatio-1,r*this._scaledCellWidth,window.devicePixelRatio)},s.prototype._fillLeftLineAtCell=function(e,l,r){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,window.devicePixelRatio*r,this._scaledCellHeight)},s.prototype._strokeRectAtCell=function(e,l,r,a){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,l*this._scaledCellHeight+window.devicePixelRatio/2,r*this._scaledCellWidth-window.devicePixelRatio,a*this._scaledCellHeight-window.devicePixelRatio)},s.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))},s.prototype._clearCells=function(e,l,r,a){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,l*this._scaledCellHeight,r*this._scaledCellWidth,a*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,r*this._scaledCellWidth,a*this._scaledCellHeight))},s.prototype._fillCharTrueColor=function(e,l,r){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(r),this._ctx.fillText(e.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},s.prototype._drawChars=function(e,l,r){var a,c,h=this._getContrastColor(e);h||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,l,r,h):(e.isInverse()?(a=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(),a=e.isFgDefault()?v.DEFAULT_COLOR:e.getFgColor()),a+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&a<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=a,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,l*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,l,r))},s.prototype._drawUncachedChars=function(e,l,r,a){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="middle",e.isInverse())if(a)this._ctx.fillStyle=a.css;else if(e.isBgDefault())this._ctx.fillStyle=o.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+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(a)this._ctx.fillStyle=a.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+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(),l*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},s.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},s.prototype._getFont=function(e,l){return(l?"italic":"")+" "+(e?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},s.prototype._getContrastColor=function(e){if(this._optionsService.options.minimumContrastRatio!==1){var l=this._colors.contrastCache.getColor(e.bg,e.fg);if(l!==void 0)return l||void 0;var r=e.getFgColor(),a=e.getFgColorMode(),c=e.getBgColor(),h=e.getBgColorMode(),g=!!e.isInverse(),A=!!e.isInverse();if(g){var b=r;r=c,c=b;var S=a;a=h,h=S}var E=this._resolveBackgroundRgba(h,c,g),C=this._resolveForegroundRgba(a,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)}},s.prototype._resolveBackgroundRgba=function(e,l,r){switch(e){case 16777216:case 33554432:return this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return r?this._colors.foreground.rgba:this._colors.background.rgba}},s.prototype._resolveForegroundRgba=function(e,l,r,a){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&a&&l<8&&(l+=8),this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return r?this._colors.background.rgba:this._colors.foreground.rgba}},s}();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(u,o,i){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");v(d,u,i)};return f.toString=function(){return m},p.serviceRegistry.set(m,f),f}},function(y,p,x){"use strict";function v(m,f,d,u){if(d===void 0&&(d=0),u===void 0&&(u=m.length),d>=m.length)return m;d=(m.length+d)%m.length,u=u>=m.length?m.length:(m.length+u)%m.length;for(var o=d;o<u;++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,u){return m.fill?m.fill(f,d,u):v(m,f,d,u)},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 u=function(){function o(i,t,s){s===void 0&&(s=!1),this.isWrapped=s,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*i);for(var e=t||f.CellData.fromCharData([0,m.NULL_CELL_CHAR,m.NULL_CELL_WIDTH,m.NULL_CELL_CODE]),l=0;l<i;++l)this.setCell(l,e);this.length=i}return o.prototype.get=function(i){var t=this._data[3*i+0],s=2097151&t;return[this._data[3*i+1],2097152&t?this._combined[i]:s?v.stringFromCodePoint(s):"",t>>22,2097152&t?this._combined[i].charCodeAt(this._combined[i].length-1):s]},o.prototype.set=function(i,t){this._data[3*i+1]=t[m.CHAR_DATA_ATTR_INDEX],t[m.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[i]=t[1],this._data[3*i+0]=2097152|i|t[m.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*i+0]=t[m.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[m.CHAR_DATA_WIDTH_INDEX]<<22},o.prototype.getWidth=function(i){return this._data[3*i+0]>>22},o.prototype.hasWidth=function(i){return 12582912&this._data[3*i+0]},o.prototype.getFg=function(i){return this._data[3*i+1]},o.prototype.getBg=function(i){return this._data[3*i+2]},o.prototype.hasContent=function(i){return 4194303&this._data[3*i+0]},o.prototype.getCodePoint=function(i){var t=this._data[3*i+0];return 2097152&t?this._combined[i].charCodeAt(this._combined[i].length-1):2097151&t},o.prototype.isCombined=function(i){return 2097152&this._data[3*i+0]},o.prototype.getString=function(i){var t=this._data[3*i+0];return 2097152&t?this._combined[i]:2097151&t?v.stringFromCodePoint(2097151&t):""},o.prototype.loadCell=function(i,t){var s=3*i;return t.content=this._data[s+0],t.fg=this._data[s+1],t.bg=this._data[s+2],2097152&t.content&&(t.combinedData=this._combined[i]),268435456&t.bg&&(t.extended=this._extendedAttrs[i]),t},o.prototype.setCell=function(i,t){2097152&t.content&&(this._combined[i]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[i]=t.extended),this._data[3*i+0]=t.content,this._data[3*i+1]=t.fg,this._data[3*i+2]=t.bg},o.prototype.setCellFromCodePoint=function(i,t,s,e,l,r){268435456&l&&(this._extendedAttrs[i]=r),this._data[3*i+0]=t|s<<22,this._data[3*i+1]=e,this._data[3*i+2]=l},o.prototype.addCodepointToCell=function(i,t){var s=this._data[3*i+0];2097152&s?this._combined[i]+=v.stringFromCodePoint(t):(2097151&s?(this._combined[i]=v.stringFromCodePoint(2097151&s)+v.stringFromCodePoint(t),s&=-2097152,s|=2097152):s=t|1<<22,this._data[3*i+0]=s)},o.prototype.insertCells=function(i,t,s,e){if((i%=this.length)&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs),t<this.length-i){for(var l=new f.CellData,r=this.length-i-t-1;r>=0;--r)this.setCell(i+t+r,this.loadCell(i+r,l));for(r=0;r<t;++r)this.setCell(i+r,s)}else for(r=i;r<this.length;++r)this.setCell(r,s);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(i,t,s,e){if(i%=this.length,t<this.length-i){for(var l=new f.CellData,r=0;r<this.length-i-t;++r)this.setCell(i+r,this.loadCell(i+t+r,l));for(r=this.length-t;r<this.length;++r)this.setCell(r,s)}else for(r=i;r<this.length;++r)this.setCell(r,s);i&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs),this.getWidth(i)!==0||this.hasContent(i)||this.setCellFromCodePoint(i,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs)},o.prototype.replaceCells=function(i,t,s,e){for(i&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs),t<this.length&&this.getWidth(t-1)===2&&this.setCellFromCodePoint(t,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs);i<t&&i<this.length;)this.setCell(i++,s)},o.prototype.resize=function(i,t){if(i!==this.length){if(i>this.length){var s=new Uint32Array(3*i);this.length&&(3*i<this._data.length?s.set(this._data.subarray(0,3*i)):s.set(this._data)),this._data=s;for(var e=this.length;e<i;++e)this.setCell(e,t)}else if(i){(s=new Uint32Array(3*i)).set(this._data.subarray(0,3*i)),this._data=s;var l=Object.keys(this._combined);for(e=0;e<l.length;e++){var r=parseInt(l[e],10);r>=i&&delete this._combined[r]}}else this._data=new Uint32Array(0),this._combined={};this.length=i}},o.prototype.fill=function(i){this._combined={},this._extendedAttrs={};for(var t=0;t<this.length;++t)this.setCell(t,i)},o.prototype.copyFrom=function(i){for(var t in this.length!==i.length?this._data=new Uint32Array(i._data):this._data.set(i._data),this.length=i.length,this._combined={},i._combined)this._combined[t]=i._combined[t];for(var t in this._extendedAttrs={},i._extendedAttrs)this._extendedAttrs[t]=i._extendedAttrs[t];this.isWrapped=i.isWrapped},o.prototype.clone=function(){var i=new o(0);for(var t in i._data=new Uint32Array(this._data),i.length=this.length,this._combined)i._combined[t]=this._combined[t];for(var t in this._extendedAttrs)i._extendedAttrs[t]=this._extendedAttrs[t];return i.isWrapped=this.isWrapped,i},o.prototype.getTrimmedLength=function(){for(var i=this.length-1;i>=0;--i)if(4194303&this._data[3*i+0])return i+(this._data[3*i+0]>>22);return 0},o.prototype.copyCellsFrom=function(i,t,s,e,l){var r=i._data;if(l)for(var a=e-1;a>=0;a--)for(var c=0;c<3;c++)this._data[3*(s+a)+c]=r[3*(t+a)+c];else for(a=0;a<e;a++)for(c=0;c<3;c++)this._data[3*(s+a)+c]=r[3*(t+a)+c];var h=Object.keys(i._combined);for(c=0;c<h.length;c++){var g=parseInt(h[c],10);g>=t&&(this._combined[g-t+s]=i._combined[g])}},o.prototype.translateToString=function(i,t,s){i===void 0&&(i=!1),t===void 0&&(t=0),s===void 0&&(s=this.length),i&&(s=Math.min(s,this.getTrimmedLength()));for(var e="";t<s;){var l=this._data[3*t+0],r=2097151&l;e+=2097152&l?this._combined[t]:r?v.stringFromCodePoint(r):m.WHITESPACE_CELL_CHAR,t+=l>>22||1}return e},o}();p.BufferLine=u},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,u=m;d<u.length;d++){var o=u[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(w,O){w.__proto__=O}||function(w,O){for(var I in O)O.hasOwnProperty(I)&&(w[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),u=x(20),o=x(39),i=x(2),t=x(15),s=x(8),e=x(16),l=x(0),r=x(3),a=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 S=function(){function C(_,T,w,O){this._bufferService=_,this._coreService=T,this._logService=w,this._optionsService=O,this._data=new Uint32Array(0)}return C.prototype.hook=function(_){this._data=new Uint32Array(0)},C.prototype.put=function(_,T,w){this._data=t.concat(this._data,_.subarray(T,w))},C.prototype.unhook=function(_){if(_){var T=s.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 w=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r"+w+d.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r0m"+d.C0.ESC+"\\");case" q":var O={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return O-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(d.C0.ESC+"P1$r"+O+" q"+d.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",T),this._coreService.triggerDataEvent(d.C0.ESC+"P0$r"+d.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},C}(),E=function(C){function _(T,w,O,I,R,M,B,P,X){X===void 0&&(X=new o.EscapeSequenceParser);var F=C.call(this)||this;F._bufferService=T,F._charsetService=w,F._coreService=O,F._dirtyRowService=I,F._logService=R,F._optionsService=M,F._coreMouseService=B,F._unicodeService=P,F._parser=X,F._parseBuffer=new Uint32Array(4096),F._stringDecoder=new s.StringToUtf32,F._utf8Decoder=new s.Utf8ToUtf32,F._workCell=new a.CellData,F._windowTitle="",F._iconName="",F._windowTitleStack=[],F._iconNameStack=[],F._curAttrData=e.DEFAULT_ATTR_DATA.clone(),F._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),F._onRequestBell=new l.EventEmitter,F._onRequestRefreshRows=new l.EventEmitter,F._onRequestReset=new l.EventEmitter,F._onRequestScroll=new l.EventEmitter,F._onRequestSyncScrollBar=new l.EventEmitter,F._onRequestWindowsOptionsReport=new l.EventEmitter,F._onA11yChar=new l.EventEmitter,F._onA11yTab=new l.EventEmitter,F._onCursorMove=new l.EventEmitter,F._onLineFeed=new l.EventEmitter,F._onScroll=new l.EventEmitter,F._onTitleChange=new l.EventEmitter,F.register(F._parser),F._parser.setCsiHandlerFallback(function(V,Q){F._logService.debug("Unknown CSI code: ",{identifier:F._parser.identToString(V),params:Q.toArray()})}),F._parser.setEscHandlerFallback(function(V){F._logService.debug("Unknown ESC code: ",{identifier:F._parser.identToString(V)})}),F._parser.setExecuteHandlerFallback(function(V){F._logService.debug("Unknown EXECUTE code: ",{code:V})}),F._parser.setOscHandlerFallback(function(V,Q,G){F._logService.debug("Unknown OSC code: ",{identifier:V,action:Q,data:G})}),F._parser.setDcsHandlerFallback(function(V,Q,G){Q==="HOOK"&&(G=G.toArray()),F._logService.debug("Unknown DCS code: ",{identifier:F._parser.identToString(V),action:Q,payload:G})}),F._parser.setPrintHandler(function(V,Q,G){return F.print(V,Q,G)}),F._parser.setCsiHandler({final:"@"},function(V){return F.insertChars(V)}),F._parser.setCsiHandler({intermediates:" ",final:"@"},function(V){return F.scrollLeft(V)}),F._parser.setCsiHandler({final:"A"},function(V){return F.cursorUp(V)}),F._parser.setCsiHandler({intermediates:" ",final:"A"},function(V){return F.scrollRight(V)}),F._parser.setCsiHandler({final:"B"},function(V){return F.cursorDown(V)}),F._parser.setCsiHandler({final:"C"},function(V){return F.cursorForward(V)}),F._parser.setCsiHandler({final:"D"},function(V){return F.cursorBackward(V)}),F._parser.setCsiHandler({final:"E"},function(V){return F.cursorNextLine(V)}),F._parser.setCsiHandler({final:"F"},function(V){return F.cursorPrecedingLine(V)}),F._parser.setCsiHandler({final:"G"},function(V){return F.cursorCharAbsolute(V)}),F._parser.setCsiHandler({final:"H"},function(V){return F.cursorPosition(V)}),F._parser.setCsiHandler({final:"I"},function(V){return F.cursorForwardTab(V)}),F._parser.setCsiHandler({final:"J"},function(V){return F.eraseInDisplay(V)}),F._parser.setCsiHandler({prefix:"?",final:"J"},function(V){return F.eraseInDisplay(V)}),F._parser.setCsiHandler({final:"K"},function(V){return F.eraseInLine(V)}),F._parser.setCsiHandler({prefix:"?",final:"K"},function(V){return F.eraseInLine(V)}),F._parser.setCsiHandler({final:"L"},function(V){return F.insertLines(V)}),F._parser.setCsiHandler({final:"M"},function(V){return F.deleteLines(V)}),F._parser.setCsiHandler({final:"P"},function(V){return F.deleteChars(V)}),F._parser.setCsiHandler({final:"S"},function(V){return F.scrollUp(V)}),F._parser.setCsiHandler({final:"T"},function(V){return F.scrollDown(V)}),F._parser.setCsiHandler({final:"X"},function(V){return F.eraseChars(V)}),F._parser.setCsiHandler({final:"Z"},function(V){return F.cursorBackwardTab(V)}),F._parser.setCsiHandler({final:"`"},function(V){return F.charPosAbsolute(V)}),F._parser.setCsiHandler({final:"a"},function(V){return F.hPositionRelative(V)}),F._parser.setCsiHandler({final:"b"},function(V){return F.repeatPrecedingCharacter(V)}),F._parser.setCsiHandler({final:"c"},function(V){return F.sendDeviceAttributesPrimary(V)}),F._parser.setCsiHandler({prefix:">",final:"c"},function(V){return F.sendDeviceAttributesSecondary(V)}),F._parser.setCsiHandler({final:"d"},function(V){return F.linePosAbsolute(V)}),F._parser.setCsiHandler({final:"e"},function(V){return F.vPositionRelative(V)}),F._parser.setCsiHandler({final:"f"},function(V){return F.hVPosition(V)}),F._parser.setCsiHandler({final:"g"},function(V){return F.tabClear(V)}),F._parser.setCsiHandler({final:"h"},function(V){return F.setMode(V)}),F._parser.setCsiHandler({prefix:"?",final:"h"},function(V){return F.setModePrivate(V)}),F._parser.setCsiHandler({final:"l"},function(V){return F.resetMode(V)}),F._parser.setCsiHandler({prefix:"?",final:"l"},function(V){return F.resetModePrivate(V)}),F._parser.setCsiHandler({final:"m"},function(V){return F.charAttributes(V)}),F._parser.setCsiHandler({final:"n"},function(V){return F.deviceStatus(V)}),F._parser.setCsiHandler({prefix:"?",final:"n"},function(V){return F.deviceStatusPrivate(V)}),F._parser.setCsiHandler({intermediates:"!",final:"p"},function(V){return F.softReset(V)}),F._parser.setCsiHandler({intermediates:" ",final:"q"},function(V){return F.setCursorStyle(V)}),F._parser.setCsiHandler({final:"r"},function(V){return F.setScrollRegion(V)}),F._parser.setCsiHandler({final:"s"},function(V){return F.saveCursor(V)}),F._parser.setCsiHandler({final:"t"},function(V){return F.windowOptions(V)}),F._parser.setCsiHandler({final:"u"},function(V){return F.restoreCursor(V)}),F._parser.setCsiHandler({intermediates:"'",final:"}"},function(V){return F.insertColumns(V)}),F._parser.setCsiHandler({intermediates:"'",final:"~"},function(V){return F.deleteColumns(V)}),F._parser.setExecuteHandler(d.C0.BEL,function(){return F.bell()}),F._parser.setExecuteHandler(d.C0.LF,function(){return F.lineFeed()}),F._parser.setExecuteHandler(d.C0.VT,function(){return F.lineFeed()}),F._parser.setExecuteHandler(d.C0.FF,function(){return F.lineFeed()}),F._parser.setExecuteHandler(d.C0.CR,function(){return F.carriageReturn()}),F._parser.setExecuteHandler(d.C0.BS,function(){return F.backspace()}),F._parser.setExecuteHandler(d.C0.HT,function(){return F.tab()}),F._parser.setExecuteHandler(d.C0.SO,function(){return F.shiftOut()}),F._parser.setExecuteHandler(d.C0.SI,function(){return F.shiftIn()}),F._parser.setExecuteHandler(d.C1.IND,function(){return F.index()}),F._parser.setExecuteHandler(d.C1.NEL,function(){return F.nextLine()}),F._parser.setExecuteHandler(d.C1.HTS,function(){return F.tabSet()}),F._parser.setOscHandler(0,new h.OscHandler(function(V){F.setTitle(V),F.setIconName(V)})),F._parser.setOscHandler(1,new h.OscHandler(function(V){return F.setIconName(V)})),F._parser.setOscHandler(2,new h.OscHandler(function(V){return F.setTitle(V)})),F._parser.setEscHandler({final:"7"},function(){return F.saveCursor()}),F._parser.setEscHandler({final:"8"},function(){return F.restoreCursor()}),F._parser.setEscHandler({final:"D"},function(){return F.index()}),F._parser.setEscHandler({final:"E"},function(){return F.nextLine()}),F._parser.setEscHandler({final:"H"},function(){return F.tabSet()}),F._parser.setEscHandler({final:"M"},function(){return F.reverseIndex()}),F._parser.setEscHandler({final:"="},function(){return F.keypadApplicationMode()}),F._parser.setEscHandler({final:">"},function(){return F.keypadNumericMode()}),F._parser.setEscHandler({final:"c"},function(){return F.fullReset()}),F._parser.setEscHandler({final:"n"},function(){return F.setgLevel(2)}),F._parser.setEscHandler({final:"o"},function(){return F.setgLevel(3)}),F._parser.setEscHandler({final:"|"},function(){return F.setgLevel(3)}),F._parser.setEscHandler({final:"}"},function(){return F.setgLevel(2)}),F._parser.setEscHandler({final:"~"},function(){return F.setgLevel(1)}),F._parser.setEscHandler({intermediates:"%",final:"@"},function(){return F.selectDefaultCharset()}),F._parser.setEscHandler({intermediates:"%",final:"G"},function(){return F.selectDefaultCharset()});var j=function(Q){K._parser.setEscHandler({intermediates:"(",final:Q},function(){return F.selectCharset("("+Q)}),K._parser.setEscHandler({intermediates:")",final:Q},function(){return F.selectCharset(")"+Q)}),K._parser.setEscHandler({intermediates:"*",final:Q},function(){return F.selectCharset("*"+Q)}),K._parser.setEscHandler({intermediates:"+",final:Q},function(){return F.selectCharset("+"+Q)}),K._parser.setEscHandler({intermediates:"-",final:Q},function(){return F.selectCharset("-"+Q)}),K._parser.setEscHandler({intermediates:".",final:Q},function(){return F.selectCharset("."+Q)}),K._parser.setEscHandler({intermediates:"/",final:Q},function(){return F.selectCharset("/"+Q)})},K=this;for(var z in u.CHARSETS)j(z);return F._parser.setEscHandler({intermediates:"#",final:"8"},function(){return F.screenAlignmentPattern()}),F._parser.setErrorHandler(function(V){return F._logService.error("Parsing error: ",V),V}),F._parser.setDcsHandler({intermediates:"$",final:"q"},new S(F._bufferService,F._coreService,F._logService,F._optionsService)),F}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 w=this._bufferService.buffer,O=w.x,I=w.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 R=0;R<T.length;R+=131072){var M=R+131072<T.length?R+131072:T.length,B=typeof T=="string"?this._stringDecoder.decode(T.substring(R,M),this._parseBuffer):this._utf8Decoder.decode(T.subarray(R,M),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);(w=this._bufferService.buffer).x===O&&w.y===I||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},_.prototype.print=function(T,w,O){var I,R,M=this._bufferService.buffer,B=this._charsetService.charset,P=this._optionsService.options.screenReaderMode,X=this._bufferService.cols,F=this._coreService.decPrivateModes.wraparound,j=this._coreService.modes.insertMode,K=this._curAttrData,z=M.lines.get(M.ybase+M.y);this._dirtyRowService.markDirty(M.y),M.x&&O-w>0&&z.getWidth(M.x-1)===2&&z.setCellFromCodePoint(M.x-1,0,1,K.fg,K.bg,K.extended);for(var V=w;V<O;++V){if(I=T[V],R=this._unicodeService.wcwidth(I),I<127&&B){var Q=B[String.fromCharCode(I)];Q&&(I=Q.charCodeAt(0))}if(P&&this._onA11yChar.fire(s.stringFromCodePoint(I)),R||!M.x){if(M.x+R-1>=X){if(F){for(;M.x<X;)z.setCellFromCodePoint(M.x++,0,1,K.fg,K.bg,K.extended);M.x=0,M.y++,M.y===M.scrollBottom+1?(M.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(M.y>=this._bufferService.rows&&(M.y=this._bufferService.rows-1),M.lines.get(M.ybase+M.y).isWrapped=!0),z=M.lines.get(M.ybase+M.y)}else if(M.x=X-1,R===2)continue}if(j&&(z.insertCells(M.x,R,M.getNullCell(K),K),z.getWidth(X-1)===2&&z.setCellFromCodePoint(X-1,r.NULL_CELL_CODE,r.NULL_CELL_WIDTH,K.fg,K.bg,K.extended)),z.setCellFromCodePoint(M.x++,I,R,K.fg,K.bg,K.extended),R>0)for(;--R;)z.setCellFromCodePoint(M.x++,0,0,K.fg,K.bg,K.extended)}else z.getWidth(M.x-1)?z.addCodepointToCell(M.x-1,I):z.addCodepointToCell(M.x-2,I)}O-w>0&&(z.loadCell(M.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),M.x<X&&O-w>0&&z.getWidth(M.x)===0&&!z.hasContent(M.x)&&z.setCellFromCodePoint(M.x,0,1,K.fg,K.bg,K.extended),this._dirtyRowService.markDirty(M.y)},_.prototype.addCsiHandler=function(T,w){var O=this;return T.final!=="t"||T.prefix||T.intermediates?this._parser.addCsiHandler(T,w):this._parser.addCsiHandler(T,function(I){return!b(I.params[0],O._optionsService.options.windowOptions)||w(I)})},_.prototype.addDcsHandler=function(T,w){return this._parser.addDcsHandler(T,new g.DcsHandler(w))},_.prototype.addEscHandler=function(T,w){return this._parser.addEscHandler(T,w)},_.prototype.addOscHandler=function(T,w){return this._parser.addOscHandler(T,new h.OscHandler(w))},_.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,w=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(w.x>0&&w.x--);if(this._restrictCursor(this._bufferService.cols),w.x>0)w.x--;else if(w.x===0&&w.y>w.scrollTop&&w.y<=w.scrollBottom&&((T=w.lines.get(w.ybase+w.y))===null||T===void 0?void 0:T.isWrapped)){w.lines.get(w.ybase+w.y).isWrapped=!1,w.y--,w.x=this._bufferService.cols-1;var O=w.lines.get(w.ybase+w.y);O.hasWidth(w.x)&&!O.hasContent(w.x)&&w.x--}this._restrictCursor()},_.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var 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,w){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=T,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+w):(this._bufferService.buffer.x=T,this._bufferService.buffer.y=w),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},_.prototype._moveCursor=function(T,w){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+T,this._bufferService.buffer.y+w)},_.prototype.cursorUp=function(T){var w=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;w>=0?this._moveCursor(0,-Math.min(w,T.params[0]||1)):this._moveCursor(0,-(T.params[0]||1))},_.prototype.cursorDown=function(T){var w=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;w>=0?this._moveCursor(0,Math.min(w,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 w=T.params[0];w===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:w===3&&(this._bufferService.buffer.tabs={})},_.prototype.cursorForwardTab=function(T){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var w=T.params[0]||1;w--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},_.prototype.cursorBackwardTab=function(T){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var w=T.params[0]||1,O=this._bufferService.buffer;w--;)O.x=O.prevStop()},_.prototype._eraseInBufferLine=function(T,w,O,I){I===void 0&&(I=!1);var R=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+T);R.replaceCells(w,O,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),I&&(R.isWrapped=!1)},_.prototype._resetBufferLine=function(T){var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+T);w.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),w.isWrapped=!1},_.prototype.eraseInDisplay=function(T){var w;switch(this._restrictCursor(),T.params[0]){case 0:for(w=this._bufferService.buffer.y,this._dirtyRowService.markDirty(w),this._eraseInBufferLine(w++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);w<this._bufferService.rows;w++)this._resetBufferLine(w);this._dirtyRowService.markDirty(w);break;case 1:for(w=this._bufferService.buffer.y,this._dirtyRowService.markDirty(w),this._eraseInBufferLine(w,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(w+1).isWrapped=!1);w--;)this._resetBufferLine(w);this._dirtyRowService.markDirty(0);break;case 2:for(w=this._bufferService.rows,this._dirtyRowService.markDirty(w-1);w--;)this._resetBufferLine(w);this._dirtyRowService.markDirty(0);break;case 3:var O=this._bufferService.buffer.lines.length-this._bufferService.rows;O>0&&(this._bufferService.buffer.lines.trimStart(O),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-O,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-O,0),this._onScroll.fire(0))}},_.prototype.eraseInLine=function(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 w=T.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.y<O.scrollTop)){for(var I=O.ybase+O.y,R=this._bufferService.rows-1-O.scrollBottom,M=this._bufferService.rows-1+O.ybase-R+1;w--;)O.lines.splice(M-1,1),O.lines.splice(I,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.y,O.scrollBottom),O.x=0}},_.prototype.deleteLines=function(T){this._restrictCursor();var w=T.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.y<O.scrollTop)){var I,R=O.ybase+O.y;for(I=this._bufferService.rows-1-O.scrollBottom,I=this._bufferService.rows-1+O.ybase-I;w--;)O.lines.splice(R,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 w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.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 w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.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 w=T.params[0]||1,O=this._bufferService.buffer;w--;)O.lines.splice(O.ybase+O.scrollTop,1),O.lines.splice(O.ybase+O.scrollBottom,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.scrollTop,O.scrollBottom)},_.prototype.scrollDown=function(T){for(var w=T.params[0]||1,O=this._bufferService.buffer;w--;)O.lines.splice(O.ybase+O.scrollBottom,1),O.lines.splice(O.ybase+O.scrollTop,0,O.getBlankLine(e.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(O.scrollTop,O.scrollBottom)},_.prototype.scrollLeft=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var R=w.lines.get(w.ybase+I);R.deleteCells(0,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.scrollRight=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var R=w.lines.get(w.ybase+I);R.insertCells(0,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.insertColumns=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var R=this._bufferService.buffer.lines.get(w.ybase+I);R.insertCells(w.x,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.deleteColumns=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var R=w.lines.get(w.ybase+I);R.deleteCells(w.x,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.eraseChars=function(T){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(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 w=T.params[0]||1,O=new Uint32Array(w),I=0;I<w;++I)O[I]=this._parser.precedingCodepoint;this.print(O,0,O.length)}},_.prototype.sendDeviceAttributesPrimary=function(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 w=0;w<T.length;w++)switch(T.params[w]){case 4:this._coreService.modes.insertMode=!0}},_.prototype.setModePrivate=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,u.DEFAULT_CHARSET),this._charsetService.setgCharset(1,u.DEFAULT_CHARSET),this._charsetService.setgCharset(2,u.DEFAULT_CHARSET),this._charsetService.setgCharset(3,u.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 w=0;w<T.length;w++)switch(T.params[w]){case 4:this._coreService.modes.insertMode=!1}},_.prototype.resetModePrivate=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),T.params[w]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},_.prototype._updateAttrColor=function(T,w,O,I,R){return w===2?(T|=50331648,T&=-16777216,T|=c.AttributeData.fromColorRGB([O,I,R])):w===5&&(T&=-50331904,T|=33554432|255&O),T},_.prototype._extractColor=function(T,w,O){var I=[0,0,-1,0,0,0],R=0,M=0;do{if(I[M+R]=T.params[w+M],T.hasSubParams(w+M)){var B=T.getSubParams(w+M),P=0;do I[1]===5&&(R=1),I[M+P+1+R]=B[P];while(++P<B.length&&P+M+1+R<I.length);break}if(I[1]===5&&M+R>=2||I[1]===2&&M+R>=5)break;I[1]&&(R=1)}while(++M+w<T.length&&M+R<I.length);for(P=2;P<I.length;++P)I[P]===-1&&(I[P]=0);switch(I[0]){case 38:O.fg=this._updateAttrColor(O.fg,I[1],I[3],I[4],I[5]);break;case 48:O.bg=this._updateAttrColor(O.bg,I[1],I[3],I[4],I[5]);break;case 58:O.extended=O.extended.clone(),O.extended.underlineColor=this._updateAttrColor(O.extended.underlineColor,I[1],I[3],I[4],I[5])}return M},_.prototype._processUnderline=function(T,w){w.extended=w.extended.clone(),(!~T||T>5)&&(T=1),w.extended.underlineStyle=T,w.fg|=268435456,T===0&&(w.fg&=-268435457),w.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 w,O=T.length,I=this._curAttrData,R=0;R<O;R++)(w=T.params[R])>=30&&w<=37?(I.fg&=-50331904,I.fg|=16777216|w-30):w>=40&&w<=47?(I.bg&=-50331904,I.bg|=16777216|w-40):w>=90&&w<=97?(I.fg&=-50331904,I.fg|=16777224|w-90):w>=100&&w<=107?(I.bg&=-50331904,I.bg|=16777224|w-100):w===0?(I.fg=e.DEFAULT_ATTR_DATA.fg,I.bg=e.DEFAULT_ATTR_DATA.bg):w===1?I.fg|=134217728:w===3?I.bg|=67108864:w===4?(I.fg|=268435456,this._processUnderline(T.hasSubParams(R)?T.getSubParams(R)[0]:1,I)):w===5?I.fg|=536870912:w===7?I.fg|=67108864:w===8?I.fg|=1073741824:w===2?I.bg|=134217728:w===21?this._processUnderline(2,I):w===22?(I.fg&=-134217729,I.bg&=-134217729):w===23?I.bg&=-67108865:w===24?I.fg&=-268435457:w===25?I.fg&=-536870913:w===27?I.fg&=-67108865:w===28?I.fg&=-1073741825:w===39?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):w===49?(I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):w===38||w===48||w===58?R+=this._extractColor(T,R,I):w===59?(I.extended=I.extended.clone(),I.extended.underlineColor=-1,I.updateExtended()):w===100?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",w)},_.prototype.deviceStatus=function(T){switch(T.params[0]){case 5:this._coreService.triggerDataEvent(d.C0.ESC+"[0n");break;case 6:var w=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(d.C0.ESC+"["+w+";"+O+"R")}},_.prototype.deviceStatusPrivate=function(T){switch(T.params[0]){case 6:var w=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(d.C0.ESC+"[?"+w+";"+O+"R")}},_.prototype.softReset=function(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 w=T.params[0]||1;switch(w){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var O=w%2==1;this._optionsService.options.cursorBlink=O},_.prototype.setScrollRegion=function(T){var w,O=T.params[0]||1;(T.length<2||(w=T.params[1])>this._bufferService.rows||w===0)&&(w=this._bufferService.rows),w>O&&(this._bufferService.buffer.scrollTop=O-1,this._bufferService.buffer.scrollBottom=w-1,this._setCursor(0,0))},_.prototype.windowOptions=function(T){if(b(T.params[0],this._optionsService.options.windowOptions)){var w=T.length>1?T.params[1]:0;switch(T.params[0]){case 14:w!==2&&this._onRequestWindowsOptionsReport.fire(f.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(f.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(d.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:w!==0&&w!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),w!==0&&w!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:w!==0&&w!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),w!==0&&w!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},_.prototype.saveCursor=function(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,u.DEFAULT_CHARSET)},_.prototype.selectCharset=function(T){T.length===2?T[0]!=="/"&&this._charsetService.setgCharset(A[T[0]],u.CHARSETS[T[1]]||u.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 w=T.scrollBottom-T.scrollTop;T.lines.shiftElements(T.ybase+T.y,w,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 a.CellData;T.content=1<<22|"E".charCodeAt(0),T.fg=this._curAttrData.fg,T.bg=this._curAttrData.bg;var w=this._bufferService.buffer;this._setCursor(0,0);for(var O=0;O<this._bufferService.rows;++O){var I=w.ybase+w.y+O,R=w.lines.get(I);R&&(R.fill(T),R.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},_}(i.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 u=f[0]instanceof Array?1:0;u<f.length;++u){var o=f[u];if(o instanceof Array)for(var i=0;i<o.length;++i)d.addSubParam(o[i]);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 u=this._subParamsIdx[d]>>8,o=255&this._subParamsIdx[d];o-u>0&&f.push(Array.prototype.slice.call(this._subParams,u,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,u=255&this._subParamsIdx[f];return u-d>0?this._subParams.subarray(d,u):null},m.prototype.getSubParamsAll=function(){for(var f={},d=0;d<this.length;++d){var u=this._subParamsIdx[d]>>8,o=255&this._subParamsIdx[d];o-u>0&&(f[d]=this._subParams.slice(u,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 u=this._digitIsSub?this._subParams:this.params,o=u[d-1];u[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 u(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return u.prototype.addHandler=function(o,i){this._handlers[o]===void 0&&(this._handlers[o]=[]);var t=this._handlers[o];return t.push(i),{dispose:function(){var e=t.indexOf(i);e!==-1&&t.splice(e,1)}}},u.prototype.setHandler=function(o,i){this._handlers[o]=[i]},u.prototype.clearHandler=function(o){this._handlers[o]&&delete this._handlers[o]},u.prototype.setHandlerFallback=function(o){this._handlerFb=o},u.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},u.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},u.prototype._start=function(){var o=this._handlers[this._id];if(o)for(var i=o.length-1;i>=0;i--)o[i].start();else this._handlerFb(this._id,"START")},u.prototype._put=function(o,i,t){var s=this._handlers[this._id];if(s)for(var e=s.length-1;e>=0;e--)s[e].put(o,i,t);else this._handlerFb(this._id,"PUT",m.utf32ToString(o,i,t))},u.prototype._end=function(o){var i=this._handlers[this._id];if(i){for(var t=i.length-1;t>=0&&i[t].end(o)===!1;t--);for(t--;t>=0;t--)i[t].end(!1)}else this._handlerFb(this._id,"END",o)},u.prototype.start=function(){this.reset(),this._id=-1,this._state=1},u.prototype.put=function(o,i,t){if(this._state!==3){if(this._state===1)for(;i<t;){var s=o[i++];if(s===59){this._state=2,this._start();break}if(s<48||57<s)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+s-48}this._state===2&&t-i>0&&this._put(o,i,t)}},u.prototype.end=function(o){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(o)),this._id=-1,this._state=0)},u}();p.OscParser=f;var d=function(){function u(o){this._handler=o,this._data="",this._hitLimit=!1}return u.prototype.start=function(){this._data="",this._hitLimit=!1},u.prototype.put=function(o,i,t){this._hitLimit||(this._data+=m.utf32ToString(o,i,t),this._data.length>v.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},u.prototype.end=function(o){var i;return this._hitLimit?i=!1:o&&(i=this._handler(this._data)),this._data="",this._hitLimit=!1,i},u}();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=[],u=function(){function i(){this._handlers=Object.create(null),this._active=d,this._ident=0,this._handlerFb=function(){}}return i.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},i.prototype.addHandler=function(t,s){this._handlers[t]===void 0&&(this._handlers[t]=[]);var e=this._handlers[t];return e.push(s),{dispose:function(){var r=e.indexOf(s);r!==-1&&e.splice(r,1)}}},i.prototype.setHandler=function(t,s){this._handlers[t]=[s]},i.prototype.clearHandler=function(t){this._handlers[t]&&delete this._handlers[t]},i.prototype.setHandlerFallback=function(t){this._handlerFb=t},i.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=d,this._ident=0},i.prototype.hook=function(t,s){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(s);else this._handlerFb(this._ident,"HOOK",s)},i.prototype.put=function(t,s,e){if(this._active.length)for(var l=this._active.length-1;l>=0;l--)this._active[l].put(t,s,e);else this._handlerFb(this._ident,"PUT",v.utf32ToString(t,s,e))},i.prototype.unhook=function(t){if(this._active.length){for(var s=this._active.length-1;s>=0&&this._active[s].unhook(t)===!1;s--);for(s--;s>=0;s--)this._active[s].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",t);this._active=d,this._ident=0},i}();p.DcsParser=u;var o=function(){function i(t){this._handler=t,this._data="",this._hitLimit=!1}return i.prototype.hook=function(t){this._params=t.clone(),this._data="",this._hitLimit=!1},i.prototype.put=function(t,s,e){this._hitLimit||(this._data+=v.utf32ToString(t,s,e),this._data.length>f.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},i.prototype.unhook=function(t){var s;return this._hitLimit?s=!1:t&&(s=this._handler(this._data,this._params||new m.Params)),this._params=void 0,this._data="",this._hitLimit=!1,s},i}();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,u,o,i,t){for(var s=v.generateConfig(i,t,d,o),e=0;e<f.length;e++){var l=(r=f[e]).ownedBy.indexOf(u);if(l>=0){if(v.configEquals(r.config,s))return r.atlas;r.ownedBy.length===1?(r.atlas.dispose(),f.splice(e,1)):r.ownedBy.splice(l,1);break}}for(e=0;e<f.length;e++){var r=f[e];if(v.configEquals(r.config,s))return r.ownedBy.push(u),r.atlas}var a={atlas:new m.DynamicCharAtlas(document,s),config:s,ownedBy:[u]};return f.push(a),a.atlas},p.removeTerminalFromCache=function(d){for(var u=0;u<f.length;u++){var o=f[u].ownedBy.indexOf(d);if(o!==-1){f[u].ownedBy.length===1?(f[u].atlas.dispose(),f.splice(u,1)):f[u].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,u){var o={foreground:u.foreground,background:u.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:u.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"),u=v.css.toColor("#ffffff"),o=v.css.toColor("#000000"),i={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};p.DEFAULT_ANSI_COLORS=function(){for(var s=[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],l=0;l<216;l++){var r=e[l/36%6|0],a=e[l/6%6|0],c=e[l%6];s.push({css:v.channels.toCss(r,a,c),rgba:v.channels.toRgba(r,a,c)})}for(l=0;l<24;l++){var h=8+10*l;s.push({css:v.channels.toCss(h,h,h),rgba:v.channels.toRgba(h,h,h)})}return s}();var t=function(){function s(e,l){this.allowTransparency=l;var r=e.createElement("canvas");r.width=1,r.height=1;var a=r.getContext("2d");if(!a)throw new Error("Could not get rendering context");this._ctx=a,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new m.ColorContrastCache,this.colors={foreground:f,background:d,cursor:u,cursorAccent:o,selectionTransparent:i,selectionOpaque:v.color.blend(d,i),ansi:p.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return s.prototype.onOptionsChange=function(e){e==="minimumContrastRatio"&&this._contrastCache.clear()},s.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,u,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,o,!0),this.colors.selectionTransparent=this._parseColor(e.selection,i,!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()},s.prototype._parseColor=function(e,l,r){if(r===void 0&&(r=this.allowTransparency),e===void 0)return l;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+e+" is invalid using fallback "+l.css),l;this._ctx.fillRect(0,0,1,1);var a=this._ctx.getImageData(0,0,1,1).data;if(a[3]!==255){if(!r)return console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+l.css+"."),l;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],S=Math.round(255*b);return{rgba:v.channels.toRgba(h,g,A,S),css:e}}return{css:this._ctx.fillStyle,rgba:v.channels.toRgba(a[0],a[1],a[2],a[3])}},s}();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(s,e){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,r){l.__proto__=r}||function(l,r){for(var a in r)r.hasOwnProperty(a)&&(l[a]=r[a])})(s,e)},function(t,s){function e(){this.constructor=t}v(t,s),t.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)});Object.defineProperty(p,"__esModule",{value:!0}),p.CharacterJoinerRegistry=p.JoinedCellData=void 0;var f=x(6),d=x(3),u=x(4),o=function(t){function s(e,l,r){var a=t.call(this)||this;return a.content=0,a.combinedData="",a.fg=e.fg,a.bg=e.bg,a.combinedData=l,a._width=r,a}return m(s,t),s.prototype.isCombined=function(){return 2097152},s.prototype.getWidth=function(){return this._width},s.prototype.getChars=function(){return this.combinedData},s.prototype.getCode=function(){return 2097151},s.prototype.setFromCharData=function(e){throw new Error("not implemented")},s.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},s}(f.AttributeData);p.JoinedCellData=o;var i=function(){function t(s){this._bufferService=s,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new u.CellData}return t.prototype.registerCharacterJoiner=function(s){var e={id:this._nextCharacterJoinerId++,handler:s};return this._characterJoiners.push(e),e.id},t.prototype.deregisterCharacterJoiner=function(s){for(var e=0;e<this._characterJoiners.length;e++)if(this._characterJoiners[e].id===s)return this._characterJoiners.splice(e,1),!0;return!1},t.prototype.getJoinedCharacters=function(s){if(this._characterJoiners.length===0)return[];var e=this._bufferService.buffer.lines.get(s);if(!e||e.length===0)return[];for(var l=[],r=e.translateToString(!0),a=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-a>1)for(var S=this._getJoinedRanges(r,h,c,e,a),E=0;E<S.length;E++)l.push(S[E]);a=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-a>1)for(S=this._getJoinedRanges(r,h,c,e,a),E=0;E<S.length;E++)l.push(S[E]);return l},t.prototype._getJoinedRanges=function(s,e,l,r,a){for(var c=s.substring(e,l),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,a),h},t.prototype._stringRangesToCellRanges=function(s,e,l){var r=0,a=!1,c=0,h=s[r];if(h){for(var g=l;g<this._bufferService.cols;g++){var A=e.getWidth(g),b=e.getString(g).length||d.WHITESPACE_CELL_CHAR.length;if(A!==0){if(!a&&h[0]<=c&&(h[0]=g,a=!0),h[1]<=c){if(h[1]=g,!(h=s[++r]))break;h[0]<=c?(h[0]=g,a=!0):a=!1}c+=b}}h&&(h[1]=this._bufferService.cols)}},t._mergeRanges=function(s,e){for(var l=!1,r=0;r<s.length;r++){var a=s[r];if(l){if(e[1]<=a[0])return s[r-1][1]=e[1],s;if(e[1]<=a[1])return s[r-1][1]=Math.max(e[1],a[1]),s.splice(r,1),s;s.splice(r,1),r--}else{if(e[1]<=a[0])return s.splice(r,0,e),s;if(e[1]<=a[1])return a[0]=Math.min(e[0],a[0]),s;e[0]<a[1]&&(a[0]=Math.min(e[0],a[0]),l=!0)}}return l?s[s.length-1][1]=e[1]:s.push(e),s},t}();p.CharacterJoinerRegistry=i},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,u,o,i,t,s){if(o){var e=v(m,f);if(e)return e[0]=Math.ceil((e[0]+(s?i/2:0))/i),e[1]=Math.ceil(e[1]/t),e[0]=Math.min(Math.max(e[0],1),d+(s?1:0)),e[1]=Math.min(Math.max(e[1],1),u),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,u){var o=this;this._rowCount=u,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(u,o){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var s in t)t.hasOwnProperty(s)&&(i[s]=t[s])})(u,o)},function(d,u){function o(){this.constructor=d}v(d,u),d.prototype=u===null?Object.create(u):(o.prototype=u.prototype,new o)});Object.defineProperty(p,"__esModule",{value:!0}),p.ScreenDprMonitor=void 0;var f=function(d){function u(){var o=d!==null&&d.apply(this,arguments)||this;return o._currentDevicePixelRatio=window.devicePixelRatio,o}return m(u,d),u.prototype.setListener=function(o){var i=this;this._listener&&this.clearListener(),this._listener=o,this._outerListener=function(){i._listener&&(i._listener(window.devicePixelRatio,i._currentDevicePixelRatio),i._updateDpr())},this._updateDpr()},u.prototype.dispose=function(){d.prototype.dispose.call(this),this.clearListener()},u.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))},u.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)},u}(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 u in m)d[u]=f<=1?m[u]:m[u]?v(m[u],f-1):m[u];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),u=x(83),o=function(){function r(a){this._core=new m.Terminal(a),this._addonManager=new u.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 l(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(a,c){this._verifyIntegers(a,c),this._core.resize(a,c)},r.prototype.open=function(a){this._core.open(a)},r.prototype.attachCustomKeyEventHandler=function(a){this._core.attachCustomKeyEventHandler(a)},r.prototype.registerLinkMatcher=function(a,c,h){return this._checkProposedApi(),this._core.registerLinkMatcher(a,c,h)},r.prototype.deregisterLinkMatcher=function(a){this._checkProposedApi(),this._core.deregisterLinkMatcher(a)},r.prototype.registerLinkProvider=function(a){return this._checkProposedApi(),this._core.registerLinkProvider(a)},r.prototype.registerCharacterJoiner=function(a){return this._checkProposedApi(),this._core.registerCharacterJoiner(a)},r.prototype.deregisterCharacterJoiner=function(a){this._checkProposedApi(),this._core.deregisterCharacterJoiner(a)},r.prototype.registerMarker=function(a){return this._checkProposedApi(),this._verifyIntegers(a),this._core.addMarker(a)},r.prototype.addMarker=function(a){return this.registerMarker(a)},r.prototype.hasSelection=function(){return this._core.hasSelection()},r.prototype.select=function(a,c,h){this._verifyIntegers(a,c,h),this._core.select(a,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(a,c){this._verifyIntegers(a,c),this._core.selectLines(a,c)},r.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},r.prototype.scrollLines=function(a){this._verifyIntegers(a),this._core.scrollLines(a)},r.prototype.scrollPages=function(a){this._verifyIntegers(a),this._core.scrollPages(a)},r.prototype.scrollToTop=function(){this._core.scrollToTop()},r.prototype.scrollToBottom=function(){this._core.scrollToBottom()},r.prototype.scrollToLine=function(a){this._verifyIntegers(a),this._core.scrollToLine(a)},r.prototype.clear=function(){this._core.clear()},r.prototype.write=function(a,c){this._core.write(a,c)},r.prototype.writeUtf8=function(a,c){this._core.write(a,c)},r.prototype.writeln=function(a,c){this._core.write(a),this._core.write(`\r
`,c)},r.prototype.paste=function(a){this._core.paste(a)},r.prototype.getOption=function(a){return this._core.optionsService.getOption(a)},r.prototype.setOption=function(a,c){this._core.optionsService.setOption(a,c)},r.prototype.refresh=function(a,c){this._verifyIntegers(a,c),this._core.refresh(a,c)},r.prototype.reset=function(){this._core.reset()},r.prototype.loadAddon=function(a){return this._addonManager.loadAddon(this,a)},Object.defineProperty(r,"strings",{get:function(){return f},enumerable:!1,configurable:!0}),r.prototype._verifyIntegers=function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];for(var h=0,g=a;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 i=function(){function r(a,c){this._buffer=a,this.type=c}return r.prototype.init=function(a){return this._buffer=a,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(a){var c=this._buffer.lines.get(a);if(c)return new s(c)},r.prototype.getNullCell=function(){return new v.CellData},r}(),t=function(){function r(a){var c=this;this._buffers=a,this._onBufferChange=new d.EventEmitter,this._normal=new i(this._buffers.normal,"normal"),this._alternate=new i(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return c._onBufferChange.fire(c.active)})}return Object.defineProperty(r.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),r}(),s=function(){function r(a){this._line=a}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(a,c){if(!(a<0||a>=this._line.length))return c?(this._line.loadCell(a,c),c):this._line.loadCell(a,new v.CellData)},r.prototype.translateToString=function(a,c,h){return this._line.translateToString(a,c,h)},r}(),e=function(){function r(a){this._core=a}return r.prototype.registerCsiHandler=function(a,c){return this._core.addCsiHandler(a,function(h){return c(h.toArray())})},r.prototype.addCsiHandler=function(a,c){return this.registerCsiHandler(a,c)},r.prototype.registerDcsHandler=function(a,c){return this._core.addDcsHandler(a,function(h,g){return c(h,g.toArray())})},r.prototype.addDcsHandler=function(a,c){return this.registerDcsHandler(a,c)},r.prototype.registerEscHandler=function(a,c){return this._core.addEscHandler(a,c)},r.prototype.addEscHandler=function(a,c){return this.registerEscHandler(a,c)},r.prototype.registerOscHandler=function(a,c){return this._core.addOscHandler(a,c)},r.prototype.addOscHandler=function(a,c){return this.registerOscHandler(a,c)},r}(),l=function(){function r(a){this._core=a}return r.prototype.register=function(a){this._core.unicodeService.register(a)},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(F,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])})(F,j)},function(X,F){function j(){this.constructor=X}v(X,F),X.prototype=F===null?Object.create(F):(j.prototype=F.prototype,new j)});Object.defineProperty(p,"__esModule",{value:!0}),p.Terminal=void 0;var f=x(36),d=x(37),u=x(38),o=x(12),i=x(19),t=x(40),s=x(50),e=x(51),l=x(11),r=x(7),a=x(18),c=x(54),h=x(55),g=x(56),A=x(57),b=x(59),S=x(0),E=x(16),C=x(27),_=x(60),T=x(5),w=x(61),O=x(62),I=x(63),R=x(64),M=x(65),B=typeof window!="undefined"?window.document:null,P=function(X){function F(j){j===void 0&&(j={});var K=X.call(this,j)||this;return K.browser=l,K._keyDownHandled=!1,K._onCursorMove=new S.EventEmitter,K._onKey=new S.EventEmitter,K._onRender=new S.EventEmitter,K._onSelectionChange=new S.EventEmitter,K._onTitleChange=new S.EventEmitter,K._onFocus=new S.EventEmitter,K._onBlur=new S.EventEmitter,K._onA11yCharEmitter=new S.EventEmitter,K._onA11yTabEmitter=new S.EventEmitter,K._setup(),K.linkifier=K._instantiationService.createInstance(s.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(S.forwardEvent(K._inputHandler.onCursorMove,K._onCursorMove)),K.register(S.forwardEvent(K._inputHandler.onTitleChange,K._onTitleChange)),K.register(S.forwardEvent(K._inputHandler.onA11yChar,K._onA11yCharEmitter)),K.register(S.forwardEvent(K._inputHandler.onA11yTab,K._onA11yTabEmitter)),K.register(K._bufferService.onResize(function(z){return K._afterResize(z.cols,z.rows)})),K}return m(F,X),Object.defineProperty(F.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),F.prototype.dispose=function(){var j,K,z;this._isDisposed||(X.prototype.dispose.call(this),(j=this._renderService)===null||j===void 0||j.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(z=(K=this.element)===null||K===void 0?void 0:K.parentNode)===null||z===void 0||z.removeChild(this.element))},F.prototype._setup=function(){X.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(F.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),F.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},F.prototype._updateOptions=function(j){var K,z,V,Q;switch(X.prototype._updateOptions.call(this,j),j){case"fontFamily":case"fontSize":(K=this._renderService)===null||K===void 0||K.clear(),(z=this._charSizeService)===null||z===void 0||z.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(V=this.viewport)===null||V===void 0||V.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new 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)}},F.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()},F.prototype.blur=function(){var j;return(j=this.textarea)===null||j===void 0?void 0:j.blur()},F.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(o.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},F.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var j=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),K=this._bufferService.buffer.y*j,z=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=z+"px",this.textarea.style.top=K+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=j+"px",this.textarea.style.lineHeight=j+"px",this.textarea.style.zIndex="-5"}},F.prototype._initGlobal=function(){var j=this;this._bindKeys(),this.register(r.addDisposableDomListener(this.element,"copy",function(z){j.hasSelection()&&u.copyHandler(z,j._selectionService)}));var K=function(V){return u.handlePasteEvent(V,j.textarea,j._coreService)};this.register(r.addDisposableDomListener(this.textarea,"paste",K)),this.register(r.addDisposableDomListener(this.element,"paste",K)),l.isFirefox?this.register(r.addDisposableDomListener(this.element,"mousedown",function(z){z.button===2&&u.rightClickHandler(z,j.textarea,j.screenElement,j._selectionService,j.options.rightClickSelectsWord)})):this.register(r.addDisposableDomListener(this.element,"contextmenu",function(z){u.rightClickHandler(z,j.textarea,j.screenElement,j._selectionService,j.options.rightClickSelectsWord)})),l.isLinux&&this.register(r.addDisposableDomListener(this.element,"auxclick",function(z){z.button===1&&u.moveTextAreaUnderMouseCursor(z,j.textarea,j.screenElement)}))},F.prototype._bindKeys=function(){var j=this;this.register(r.addDisposableDomListener(this.textarea,"keyup",function(K){return j._keyUp(K)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keydown",function(K){return j._keyDown(K)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keypress",function(K){return j._keyPress(K)},!0)),this.register(r.addDisposableDomListener(this.textarea,"compositionstart",function(){return j._compositionHelper.compositionstart()})),this.register(r.addDisposableDomListener(this.textarea,"compositionupdate",function(K){return j._compositionHelper.compositionupdate(K)})),this.register(r.addDisposableDomListener(this.textarea,"compositionend",function(){return j._compositionHelper.compositionend()})),this.register(this.onRender(function(){return j._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(K){return j._queueLinkification(K.start,K.end)}))},F.prototype.open=function(j){var K=this;if(!j)throw new Error("Terminal requires a parent element.");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",a.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(r.addDisposableDomListener(this.textarea,"focus",function(G){return K._onTextAreaFocus(G)})),this.register(r.addDisposableDomListener(this.textarea,"blur",function(){return K._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var V=this._instantiationService.createInstance(R.CoreBrowserService,this.textarea);this._instantiationService.setService(T.ICoreBrowserService,V),this._charSizeService=this._instantiationService.createInstance(w.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(G){return K._colorManager.onOptionsChange(G)})),this._colorManager.setTheme(this._theme);var Q=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(_.RenderService,Q,this.rows,this.screenElement)),this._instantiationService.setService(T.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(G){return K._onRender.fire(G)})),this.onResize(function(G){return K._renderService.resize(G.cols,G.rows)}),this._soundService=this._instantiationService.createInstance(c.SoundService),this._instantiationService.setService(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(G,te){return K.scrollLines(G,te)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return K.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){K._renderService.onCursorMove(),K._syncTextArea()})),this.register(this.onResize(function(){return K._renderService.onResize(K.cols,K.rows)})),this.register(this.onBlur(function(){return K._renderService.onBlur()})),this.register(this.onFocus(function(){return K._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return K.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(e.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(T.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(G){return K.scrollLines(G.amount,G.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return K._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(G){return K._renderService.onSelectionChanged(G.start,G.end,G.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(G){K.textarea.value=G,K.textarea.focus(),K.textarea.select()})),this.register(this.onScroll(function(){K.viewport.syncScrollArea(),K._selectionService.refresh()})),this.register(r.addDisposableDomListener(this._viewportElement,"scroll",function(){return K._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(h.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return K._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(r.addDisposableDomListener(this.element,"mousedown",function(G){return K._selectionService.onMouseDown(G)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new g.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},F.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(t.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(A.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},F.prototype._setTheme=function(j){var K,z,V;this._theme=j,(K=this._colorManager)===null||K===void 0||K.setTheme(j),(z=this._renderService)===null||z===void 0||z.setColors(this._colorManager.colors),(V=this.viewport)===null||V===void 0||V.onThemeChange(this._colorManager.colors)},F.prototype.bindMouse=function(){var j=this,K=this,z=this.element;function V(re){var we,Ie,Me=K._mouseService.getRawByteCoords(re,K.screenElement,K.cols,K.rows);if(!Me)return!1;switch(re.overrideType||re.type){case"mousemove":Ie=32,re.buttons===void 0?(we=3,re.button!==void 0&&(we=re.button<3?re.button:3)):we=1&re.buttons?0:4&re.buttons?1:2&re.buttons?2:3;break;case"mouseup":Ie=0,we=re.button<3?re.button:3;break;case"mousedown":Ie=1,we=re.button<3?re.button:3;break;case"wheel":re.deltaY!==0&&(Ie=re.deltaY<0?0:1),we=4;break;default:return!1}return!(Ie===void 0||we===void 0||we>4)&&K._coreMouseService.triggerMouseEvent({col:Me.x-33,row:Me.y-33,button:we,action:Ie,ctrl:re.ctrlKey,alt:re.altKey,shift:re.shiftKey})}var Q={mouseup:null,wheel:null,mousedrag:null,mousemove:null},G=function(we){return V(we),we.buttons||(j._document.removeEventListener("mouseup",Q.mouseup),Q.mousedrag&&j._document.removeEventListener("mousemove",Q.mousedrag)),j.cancel(we)},te=function(we){return V(we),we.preventDefault(),j.cancel(we)},q=function(we){we.buttons&&V(we)},le=function(we){we.buttons||V(we)};this.register(this._coreMouseService.onProtocolChange(function(re){re?(j.optionsService.options.logLevel==="debug"&&j._logService.debug("Binding to mouse events:",j._coreMouseService.explainEvents(re)),j.element.classList.add("enable-mouse-events"),j._selectionService.disable()):(j._logService.debug("Unbinding from mouse events."),j.element.classList.remove("enable-mouse-events"),j._selectionService.enable()),8&re?Q.mousemove||(z.addEventListener("mousemove",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=G):(j._document.removeEventListener("mouseup",Q.mouseup),Q.mouseup=null),4&re?Q.mousedrag||(Q.mousedrag=q):(j._document.removeEventListener("mousemove",Q.mousedrag),Q.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(r.addDisposableDomListener(z,"mousedown",function(re){if(re.preventDefault(),j.focus(),j._coreMouseService.areMouseEventsActive&&!j._selectionService.shouldForceSelection(re))return V(re),Q.mouseup&&j._document.addEventListener("mouseup",Q.mouseup),Q.mousedrag&&j._document.addEventListener("mousemove",Q.mousedrag),j.cancel(re)})),this.register(r.addDisposableDomListener(z,"wheel",function(re){if(!Q.wheel){if(!j.buffer.hasScrollback){var we=j.viewport.getLinesScrolled(re);if(we===0)return;for(var Ie=o.C0.ESC+(j._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(re.deltaY<0?"A":"B"),Me="",Je=0;Je<Math.abs(we);Je++)Me+=Ie;j._coreService.triggerDataEvent(Me,!0)}}},{passive:!0})),this.register(r.addDisposableDomListener(z,"wheel",function(re){if(!Q.wheel)return j.viewport.onWheel(re)?void 0:j.cancel(re)},{passive:!1})),this.register(r.addDisposableDomListener(z,"touchstart",function(re){if(!j._coreMouseService.areMouseEventsActive)return j.viewport.onTouchStart(re),j.cancel(re)},{passive:!0})),this.register(r.addDisposableDomListener(z,"touchmove",function(re){if(!j._coreMouseService.areMouseEventsActive)return j.viewport.onTouchMove(re)?void 0:j.cancel(re)},{passive:!1}))},F.prototype.refresh=function(j,K){var z;(z=this._renderService)===null||z===void 0||z.refreshRows(j,K)},F.prototype._queueLinkification=function(j,K){var z;(z=this.linkifier)===null||z===void 0||z.linkifyRows(j,K)},F.prototype.updateCursorStyle=function(j){this._selectionService&&this._selectionService.shouldColumnSelect(j)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},F.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},F.prototype.scrollLines=function(j,K){X.prototype.scrollLines.call(this,j,K),this.refresh(0,this.rows-1)},F.prototype.paste=function(j){u.paste(j,this.textarea,this._coreService)},F.prototype.attachCustomKeyEventHandler=function(j){this._customKeyEventHandler=j},F.prototype.registerLinkMatcher=function(j,K,z){var V=this.linkifier.registerLinkMatcher(j,K,z);return this.refresh(0,this.rows-1),V},F.prototype.deregisterLinkMatcher=function(j){this.linkifier.deregisterLinkMatcher(j)&&this.refresh(0,this.rows-1)},F.prototype.registerLinkProvider=function(j){return this.linkifier2.registerLinkProvider(j)},F.prototype.registerCharacterJoiner=function(j){var K=this._renderService.registerCharacterJoiner(j);return this.refresh(0,this.rows-1),K},F.prototype.deregisterCharacterJoiner=function(j){this._renderService.deregisterCharacterJoiner(j)&&this.refresh(0,this.rows-1)},Object.defineProperty(F.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),F.prototype.addMarker=function(j){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+j)},F.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},F.prototype.select=function(j,K,z){this._selectionService.setSelection(j,K,z)},F.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},F.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},F.prototype.clearSelection=function(){var j;(j=this._selectionService)===null||j===void 0||j.clearSelection()},F.prototype.selectAll=function(){var j;(j=this._selectionService)===null||j===void 0||j.selectAll()},F.prototype.selectLines=function(j,K){var z;(z=this._selectionService)===null||z===void 0||z.selectLines(j,K)},F.prototype._keyDown=function(j){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1)return!1;if(!this._compositionHelper.keydown(j))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var K=b.evaluateKeyboardEvent(j,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(j),K.type===3||K.type===2){var z=this.rows-1;return this.scrollLines(K.type===2?-z:z),this.cancel(j,!0)}return K.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,j)||(K.cancel&&this.cancel(j,!0),!K.key||(K.key!==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)))},F.prototype._isThirdLevelShift=function(j,K){var z=j.isMac&&!this.options.macOptionIsMeta&&K.altKey&&!K.ctrlKey&&!K.metaKey||j.isWindows&&K.altKey&&K.ctrlKey&&!K.metaKey;return K.type==="keypress"?z:z&&(!K.keyCode||K.keyCode>47)},F.prototype._keyUp=function(j){this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1||(function(K){return K.keyCode===16||K.keyCode===17||K.keyCode===18}(j)||this.focus(),this.updateCursorStyle(j))},F.prototype._keyPress=function(j){var K;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1)return!1;if(this.cancel(j),j.charCode)K=j.charCode;else if(j.which===null||j.which===void 0)K=j.keyCode;else{if(j.which===0||j.charCode===0)return!1;K=j.which}return!(!K||(j.altKey||j.ctrlKey||j.metaKey)&&!this._isThirdLevelShift(this.browser,j))&&(K=String.fromCharCode(K),this._onKey.fire({key:K,domEvent:j}),this._showCursor(),this._coreService.triggerDataEvent(K,!0),!0)},F.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},F.prototype.resize=function(j,K){j!==this.cols||K!==this.rows?X.prototype.resize.call(this,j,K):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},F.prototype._afterResize=function(j,K){var z,V;(z=this._charSizeService)===null||z===void 0||z.measure(),(V=this.viewport)===null||V===void 0||V.syncScrollArea(!0)},F.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var j=1;j<this.rows;j++)this.buffer.lines.push(this.buffer.getBlankLine(E.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},F.prototype.reset=function(){var j,K;this.options.rows=this.rows,this.options.cols=this.cols;var z=this._customKeyEventHandler;this._setup(),X.prototype.reset.call(this),(j=this._selectionService)===null||j===void 0||j.reset(),this._customKeyEventHandler=z,this.refresh(0,this.rows-1),(K=this.viewport)===null||K===void 0||K.syncScrollArea()},F.prototype._reportWindowsOptions=function(j){if(this._renderService)switch(j){case i.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var K=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),z=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(o.C0.ESC+"[4;"+z+";"+K+"t");break;case i.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var V=this._renderService.dimensions.scaledCellWidth.toFixed(0),Q=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(o.C0.ESC+"[6;"+Q+";"+V+"t")}},F.prototype.cancel=function(j,K){if(this.options.cancelEvents||K)return j.preventDefault(),j.stopPropagation(),!1},F.prototype._visualBell=function(){return!1},F.prototype._soundBell=function(){return this.options.bellStyle==="sound"},F}(M.CoreTerminal);p.Terminal=P},function(y,p,x){"use strict";var v=this&&this.__decorate||function(o,i,t,s){var e,l=arguments.length,r=l<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,i,t,s);else for(var a=o.length-1;a>=0;a--)(e=o[a])&&(r=(l<3?e(r):l>3?e(i,t,r):e(i,t))||r);return l>3&&r&&Object.defineProperty(i,t,r),r},m=this&&this.__param||function(o,i){return function(t,s){i(t,s,o)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CompositionHelper=void 0;var f=x(5),d=x(1),u=function(){function o(i,t,s,e,l,r){this._textarea=i,this._compositionView=t,this._bufferService=s,this._optionsService=e,this._charSizeService=l,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(i){var t=this;this._compositionView.textContent=i.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},o.prototype.compositionend=function(){this._finalizeComposition(!0)},o.prototype.keydown=function(i){if(this._isComposing||this._isSendingComposition){if(i.keyCode===229)return!1;if(i.keyCode===16||i.keyCode===17||i.keyCode===18)return!1;this._finalizeComposition(!1)}return i.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},o.prototype._finalizeComposition=function(i){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,i){var s={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(t._isSendingComposition){t._isSendingComposition=!1;var l=void 0;l=t._isComposing?t._textarea.value.substring(s.start,s.end):t._textarea.value.substring(s.start),t._coreService.triggerDataEvent(l,!0)}},0)}else{this._isSendingComposition=!1;var e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}},o.prototype._handleAnyTextareaChanges=function(){var i=this,t=this._textarea.value;setTimeout(function(){if(!i._isComposing){var s=i._textarea.value.replace(t,"");s.length>0&&i._coreService.triggerDataEvent(s,!0)}},0)},o.prototype.updateCompositionElements=function(i){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var s=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),e=this._bufferService.buffer.y*s,l=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=l+"px",this._compositionView.style.top=e+"px",this._compositionView.style.height=s+"px",this._compositionView.style.lineHeight=s+"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=l+"px",this._textarea.style.top=e+"px",this._textarea.style.width=r.width+"px",this._textarea.style.height=r.height+"px",this._textarea.style.lineHeight=r.height+"px"}i||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},o=v([m(2,d.IBufferService),m(3,d.IOptionsService),m(4,f.ICharSizeService),m(5,d.ICoreService)],o)}();p.CompositionHelper=u},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var h in c)c.hasOwnProperty(h)&&(a[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)}),f=this&&this.__decorate||function(e,l,r,a){var c,h=arguments.length,g=h<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,a);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(g=(h<3?c(g):h>3?c(l,r,g):c(l,r))||g);return h>3&&g&&Object.defineProperty(l,r,g),g},d=this&&this.__param||function(e,l){return function(r,a){l(r,a,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.Viewport=void 0;var u=x(2),o=x(7),i=x(5),t=x(1),s=function(e){function l(r,a,c,h,g,A,b){var S=e.call(this)||this;return S._scrollLines=r,S._viewportElement=a,S._scrollArea=c,S._bufferService=h,S._optionsService=g,S._charSizeService=A,S._renderService=b,S.scrollBarWidth=0,S._currentRowHeight=0,S._lastRecordedBufferLength=0,S._lastRecordedViewportHeight=0,S._lastRecordedBufferHeight=0,S._lastTouchY=0,S._lastScrollTop=0,S._wheelPartialScroll=0,S._refreshAnimationFrame=null,S._ignoreNextScrollEvent=!1,S.scrollBarWidth=S._viewportElement.offsetWidth-S._scrollArea.offsetWidth||15,S.register(o.addDisposableDomListener(S._viewportElement,"scroll",S._onScroll.bind(S))),setTimeout(function(){return S.syncScrollArea()},0),S}return m(l,e),l.prototype.onThemeChange=function(r){this._viewportElement.style.backgroundColor=r.background.css},l.prototype._refresh=function(r){var a=this;if(r)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return a._innerRefresh()}))},l.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var 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 a=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==a&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=a),this._refreshAnimationFrame=null},l.prototype.syncScrollArea=function(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 a=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===a&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(r)}else this._refresh(r)},l.prototype._onScroll=function(r){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var a=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(a,!0)}},l.prototype._bubbleScroll=function(r,a){var c=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(a<0&&this._viewportElement.scrollTop!==0||a>0&&c<this._lastRecordedBufferHeight)||(r.cancelable&&r.preventDefault(),!1)},l.prototype.onWheel=function(r){var a=this._getPixelsScrolled(r);return a!==0&&(this._viewportElement.scrollTop+=a,this._bubbleScroll(r,a))},l.prototype._getPixelsScrolled=function(r){if(r.deltaY===0)return 0;var a=this._applyScrollModifier(r.deltaY,r);return r.deltaMode===WheelEvent.DOM_DELTA_LINE?a*=this._currentRowHeight:r.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(a*=this._currentRowHeight*this._bufferService.rows),a},l.prototype.getLinesScrolled=function(r){if(r.deltaY===0)return 0;var a=this._applyScrollModifier(r.deltaY,r);return r.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(a/=this._currentRowHeight+0,this._wheelPartialScroll+=a,a=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):r.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(a*=this._bufferService.rows),a},l.prototype._applyScrollModifier=function(r,a){var c=this._optionsService.options.fastScrollModifier;return c==="alt"&&a.altKey||c==="ctrl"&&a.ctrlKey||c==="shift"&&a.shiftKey?r*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:r*this._optionsService.options.scrollSensitivity},l.prototype.onTouchStart=function(r){this._lastTouchY=r.touches[0].pageY},l.prototype.onTouchMove=function(r){var a=this._lastTouchY-r.touches[0].pageY;return this._lastTouchY=r.touches[0].pageY,a!==0&&(this._viewportElement.scrollTop+=a,this._bubbleScroll(r,a))},l=f([d(3,t.IBufferService),d(4,t.IOptionsService),d(5,i.ICharSizeService),d(6,i.IRenderService)],l)}(u.Disposable);p.Viewport=s},function(y,p,x){"use strict";function v(u){return u.replace(/\r?\n/g,"\r")}function m(u,o){return o?"[200~"+u+"[201~":u}function f(u,o,i){u=m(u=v(u),i.decPrivateModes.bracketedPasteMode),i.triggerDataEvent(u,!0),o.value=""}function d(u,o,i){var t=i.getBoundingClientRect(),s=u.clientX-t.left-10,e=u.clientY-t.top-10;o.style.width="20px",o.style.height="20px",o.style.left=s+"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(u,o){u.clipboardData&&u.clipboardData.setData("text/plain",o.selectionText),u.preventDefault()},p.handlePasteEvent=function(u,o,i){u.stopPropagation(),u.clipboardData&&f(u.clipboardData.getData("text/plain"),o,i)},p.paste=f,p.moveTextAreaUnderMouseCursor=d,p.rightClickHandler=function(u,o,i,t,s){d(u,o,i),s&&!t.isClickInSelection(u)&&t.selectWordAtCursor(u),o.value=t.selectionText,o.select()}},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var h in c)c.hasOwnProperty(h)&&(a[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.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),u=x(21),o=x(22),i=x(24),t=function(){function e(l){this.table=new Uint8Array(l)}return e.prototype.setDefault=function(l,r){d.fill(this.table,l<<4|r)},e.prototype.add=function(l,r,a,c){this.table[r<<8|l]=a<<4|c},e.prototype.addMany=function(l,r,a,c){for(var h=0;h<l.length;h++)this.table[r<<8|l[h]]=a<<4|c},e}();p.TransitionTable=t,p.VT500_TRANSITION_TABLE=function(){var e=new t(4095),l=Array.apply(null,Array(256)).map(function(A,b){return b}),r=function(b,S){return l.slice(b,S)},a=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(a,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(a,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(a,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(a,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(160,0,2,0),e.add(160,8,5,8),e.add(160,6,0,6),e.add(160,11,0,11),e.add(160,13,13,13),e}();var s=function(e){function l(r){r===void 0&&(r=p.VT500_TRANSITION_TABLE);var a=e.call(this)||this;return a._transitions=r,a.initialState=0,a.currentState=a.initialState,a._params=new u.Params,a._params.addParam(0),a._collect=0,a.precedingCodepoint=0,a._printHandlerFb=function(c,h,g){},a._executeHandlerFb=function(c){},a._csiHandlerFb=function(c,h){},a._escHandlerFb=function(c){},a._errorHandlerFb=function(c){return c},a._printHandler=a._printHandlerFb,a._executeHandlers=Object.create(null),a._csiHandlers=Object.create(null),a._escHandlers=Object.create(null),a._oscParser=new o.OscParser,a._dcsParser=new i.DcsParser,a._errorHandler=a._errorHandlerFb,a.setEscHandler({final:"\\"},function(){}),a}return m(l,e),l.prototype._identifier=function(r,a){a===void 0&&(a=[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(a[0]>A||A>a[1])throw new Error("final must be in range "+a[0]+" .. "+a[1]);return c<<=8,c|=A},l.prototype.identToString=function(r){for(var a=[];r;)a.push(String.fromCharCode(255&r)),r>>=8;return a.reverse().join("")},l.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},l.prototype.setPrintHandler=function(r){this._printHandler=r},l.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},l.prototype.addEscHandler=function(r,a){var c=this._identifier(r,[48,126]);this._escHandlers[c]===void 0&&(this._escHandlers[c]=[]);var h=this._escHandlers[c];return h.push(a),{dispose:function(){var A=h.indexOf(a);A!==-1&&h.splice(A,1)}}},l.prototype.setEscHandler=function(r,a){this._escHandlers[this._identifier(r,[48,126])]=[a]},l.prototype.clearEscHandler=function(r){this._escHandlers[this._identifier(r,[48,126])]&&delete this._escHandlers[this._identifier(r,[48,126])]},l.prototype.setEscHandlerFallback=function(r){this._escHandlerFb=r},l.prototype.setExecuteHandler=function(r,a){this._executeHandlers[r.charCodeAt(0)]=a},l.prototype.clearExecuteHandler=function(r){this._executeHandlers[r.charCodeAt(0)]&&delete this._executeHandlers[r.charCodeAt(0)]},l.prototype.setExecuteHandlerFallback=function(r){this._executeHandlerFb=r},l.prototype.addCsiHandler=function(r,a){var c=this._identifier(r);this._csiHandlers[c]===void 0&&(this._csiHandlers[c]=[]);var h=this._csiHandlers[c];return h.push(a),{dispose:function(){var A=h.indexOf(a);A!==-1&&h.splice(A,1)}}},l.prototype.setCsiHandler=function(r,a){this._csiHandlers[this._identifier(r)]=[a]},l.prototype.clearCsiHandler=function(r){this._csiHandlers[this._identifier(r)]&&delete this._csiHandlers[this._identifier(r)]},l.prototype.setCsiHandlerFallback=function(r){this._csiHandlerFb=r},l.prototype.addDcsHandler=function(r,a){return this._dcsParser.addHandler(this._identifier(r),a)},l.prototype.setDcsHandler=function(r,a){this._dcsParser.setHandler(this._identifier(r),a)},l.prototype.clearDcsHandler=function(r){this._dcsParser.clearHandler(this._identifier(r))},l.prototype.setDcsHandlerFallback=function(r){this._dcsParser.setHandlerFallback(r)},l.prototype.addOscHandler=function(r,a){return this._oscParser.addHandler(r,a)},l.prototype.setOscHandler=function(r,a){this._oscParser.setHandler(r,a)},l.prototype.clearOscHandler=function(r){this._oscParser.clearHandler(r)},l.prototype.setOscHandlerFallback=function(r){this._oscParser.setHandlerFallback(r)},l.prototype.setErrorHandler=function(r){this._errorHandler=r},l.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},l.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},l.prototype.parse=function(r,a){for(var c=0,h=0,g=this.currentState,A=this._oscParser,b=this._dcsParser,S=this._collect,E=this._params,C=this._transitions.table,_=0;_<a;++_){switch((h=C[g<<8|((c=r[_])<160?c:160)])>>4){case 2:for(var T=_+1;;++T){if(T>=a||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}if(++T>=a||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}if(++T>=a||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}if(++T>=a||(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:S,params:E,abort:!1}).abort)return;break;case 7:for(var w=this._csiHandlers[S<<8|c],O=w?w.length-1:-1;O>=0&&w[O](E)===!1;O--);O<0&&this._csiHandlerFb(S<<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(++_<a&&(c=r[_])>47&&c<60);_--;break;case 9:S<<=8,S|=c;break;case 10:for(var I=this._escHandlers[S<<8|c],R=I?I.length-1:-1;R>=0&&I[R]()===!1;R--);R<0&&this._escHandlerFb(S<<8|c),this.precedingCodepoint=0;break;case 11:E.reset(),E.addParam(0),S=0;break;case 12:b.hook(S<<8|c,E);break;case 13:for(var M=_+1;;++M)if(M>=a||(c=r[M])===24||c===26||c===27||c>127&&c<160){b.put(r,_,M),_=M-1;break}break;case 14:b.unhook(c!==24&&c!==26),c===27&&(h|=1),E.reset(),E.addParam(0),S=0,this.precedingCodepoint=0;break;case 4:A.start();break;case 5:for(var B=_+1;;B++)if(B>=a||(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),S=0,this.precedingCodepoint=0}g=15&h}this._collect=S,this.currentState=g},l}(f.Disposable);p.EscapeSequenceParser=s},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(b,S){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,S)},function(A,b){function S(){this.constructor=A}v(A,b),A.prototype=b===null?Object.create(b):(S.prototype=b.prototype,new S)}),f=this&&this.__decorate||function(A,b,S,E){var C,_=arguments.length,T=_<3?b:E===null?E=Object.getOwnPropertyDescriptor(b,S):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(A,b,S,E);else for(var w=A.length-1;w>=0;w--)(C=A[w])&&(T=(_<3?C(T):_>3?C(b,S,T):C(b,S))||T);return _>3&&T&&Object.defineProperty(b,S,T),T},d=this&&this.__param||function(A,b){return function(S,E){b(S,E,A)}};Object.defineProperty(p,"__esModule",{value:!0}),p.Renderer=void 0;var u=x(41),o=x(47),i=x(48),t=x(49),s=x(29),e=x(2),l=x(5),r=x(1),a=x(25),c=x(0),h=1,g=function(A){function b(S,E,C,_,T,w,O,I,R){var M=A.call(this)||this;M._colors=S,M._screenElement=E,M._bufferService=T,M._charSizeService=w,M._optionsService=O,M._id=h++,M._onRequestRedraw=new c.EventEmitter;var B=M._optionsService.options.allowTransparency;return M._characterJoinerRegistry=new s.CharacterJoinerRegistry(M._bufferService),M._renderLayers=[new u.TextRenderLayer(M._screenElement,0,M._colors,M._characterJoinerRegistry,B,M._id,M._bufferService,O),new o.SelectionRenderLayer(M._screenElement,1,M._colors,M._id,M._bufferService,O),new t.LinkRenderLayer(M._screenElement,2,M._colors,M._id,C,_,M._bufferService,O),new i.CursorRenderLayer(M._screenElement,3,M._colors,M._id,M._onRequestRedraw,M._bufferService,O,I,R)],M.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},M._devicePixelRatio=window.devicePixelRatio,M._updateDimensions(),M.onOptionsChanged(),M}return m(b,A),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){for(var S=0,E=this._renderLayers;S<E.length;S++)E[S].dispose();A.prototype.dispose.call(this),a.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(S){this._colors=S;for(var E=0,C=this._renderLayers;E<C.length;E++){var _=C[E];_.setColors(this._colors),_.reset()}},b.prototype.onResize=function(S,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(S){return S.onBlur()})},b.prototype.onFocus=function(){this._runOperation(function(S){return S.onFocus()})},b.prototype.onSelectionChanged=function(S,E,C){C===void 0&&(C=!1),this._runOperation(function(_){return _.onSelectionChanged(S,E,C)})},b.prototype.onCursorMove=function(){this._runOperation(function(S){return S.onCursorMove()})},b.prototype.onOptionsChanged=function(){this._runOperation(function(S){return S.onOptionsChanged()})},b.prototype.clear=function(){this._runOperation(function(S){return S.reset()})},b.prototype._runOperation=function(S){for(var E=0,C=this._renderLayers;E<C.length;E++)S(C[E])},b.prototype.renderRows=function(S,E){for(var C=0,_=this._renderLayers;C<_.length;C++)_[C].onGridChanged(S,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(S){return this._characterJoinerRegistry.registerCharacterJoiner(S)},b.prototype.deregisterCharacterJoiner=function(S){return this._characterJoinerRegistry.deregisterCharacterJoiner(S)},b=f([d(4,r.IBufferService),d(5,l.ICharSizeService),d(6,r.IOptionsService),d(7,r.ICoreService),d(8,l.ICoreBrowserService)],b)}(e.Disposable);p.Renderer=g},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var h in c)c.hasOwnProperty(h)&&(a[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)});Object.defineProperty(p,"__esModule",{value:!0}),p.TextRenderLayer=void 0;var f=x(42),d=x(13),u=x(6),o=x(3),i=x(29),t=x(4),s=function(e){function l(r,a,c,h,g,A,b,S){var E=e.call(this,r,"text",a,g,c,A,b,S)||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(l,e),l.prototype.resize=function(r){e.prototype.resize.call(this,r);var a=this._getFont(!1,!1);this._characterWidth===r.scaledCharWidth&&this._characterFont===a||(this._characterWidth=r.scaledCharWidth,this._characterFont=a,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},l.prototype.reset=function(){this._state.clear(),this._clearAll()},l.prototype._forEachCell=function(r,a,c,h){for(var g=r;g<=a;g++)for(var A=g+this._bufferService.buffer.ydisp,b=this._bufferService.buffer.lines.get(A),S=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(S.length>0&&E===S[0][0]){_=!0;var w=S.shift();C=new i.JoinedCellData(this._workCell,b.translateToString(!0,w[0],w[1]),w[1]-w[0]),T=w[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}}},l.prototype._drawBackground=function(r,a){var c=this,h=this._ctx,g=this._bufferService.cols,A=0,b=0,S=null;h.save(),this._forEachCell(r,a,null,function(E,C,_){var T=null;E.isInverse()?T=E.isFgDefault()?c._colors.foreground.css:E.isFgRGB()?"rgb("+u.AttributeData.toColorRGB(E.getFgColor()).join(",")+")":c._colors.ansi[E.getFgColor()].css:E.isBgRGB()?T="rgb("+u.AttributeData.toColorRGB(E.getBgColor()).join(",")+")":E.isBgPalette()&&(T=c._colors.ansi[E.getBgColor()].css),S===null&&(A=C,b=_),_!==b?(h.fillStyle=S||"",c._fillCells(A,b,g-A,1),A=C,b=_):S!==T&&(h.fillStyle=S||"",c._fillCells(A,b,C-A,1),A=C,b=_),S=T}),S!==null&&(h.fillStyle=S,this._fillCells(A,b,g-A,1)),h.restore()},l.prototype._drawForeground=function(r,a){var c=this;this._forEachCell(r,a,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("+u.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("+u.AttributeData.toColorRGB(h.getFgColor()).join(",")+")";else{var S=h.getFgColor();c._optionsService.options.drawBoldTextInBrightColors&&h.isBold()&&S<8&&(S+=8),c._ctx.fillStyle=c._colors.ansi[S].css}c._fillBottomLineAtCells(g,A,h.getWidth()),c._ctx.restore()}})},l.prototype.onGridChanged=function(r,a){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,r,this._bufferService.cols,a-r+1),this._drawBackground(r,a),this._drawForeground(r,a))},l.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},l.prototype._isOverlapping=function(r){if(r.getWidth()!==1)return!1;if(r.getCode()<256)return!1;var a=r.getChars();if(this._characterOverlapCache.hasOwnProperty(a))return this._characterOverlapCache[a];this._ctx.save(),this._ctx.font=this._characterFont;var c=Math.floor(this._ctx.measureText(a).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[a]=c,c},l}(d.BaseRenderLayer);p.TextRenderLayer=s},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 u=0;u<f;u++){this.cache.length<=u&&this.cache.push([]);for(var o=this.cache[u].length;o<d;o++)this.cache[u].push(void 0);this.cache[u].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 S in b)b.hasOwnProperty(S)&&(A[S]=b[S])})(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),u=x(27),o=x(46),i=x(11),t=x(28),s=x(10),e={css:"rgba(0, 0, 0, 0)",rgba:0};function l(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=l;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 S=g.createElement("canvas");S.width=b._config.scaledCharWidth,S.height=b._config.scaledCharHeight,b._tmpCtx=t.throwIfFalsy(S.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,S){if(A.code===32)return!0;if(!this._canCache(A))return!1;var E=l(A),C=this._cacheMap.get(E);if(C!=null)return this._drawFromCache(g,C,b,S),!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,S),!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,S){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,S,this._config.scaledCharWidth,this._config.scaledCharHeight)}},h.prototype._getColorFromAnsiIndex=function(g){return g<this._config.colors.ansi.length?this._config.colors.ansi[g]:u.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?s.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 S=g.bold?this._config.fontWeightBold:this._config.fontWeight,E=g.italic?"italic":"";this._tmpCtx.font=E+" "+S+" "+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,R){for(var M=!0,B=R.rgba>>>24,P=R.rgba>>>16&255,X=R.rgba>>>8&255,F=0;F<I.data.length;F+=4)I.data[F]===B&&I.data[F+1]===P&&I.data[F+2]===X?I.data[F+3]=0:M=!1;return M}(C,b));var T=this._toCoordinateX(A),w=this._toCoordinateY(A);this._cacheCtx.putImageData(C,T,w);var O={index:A,isEmpty:_,inBitmap:!1};return this._addGlyphToBitmap(O),O},h.prototype._addGlyphToBitmap=function(g){var A=this;!("createImageBitmap"in window)||i.isFirefox||i.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 S=0;S<A.length;S++)A[S].inBitmap=!0}),this._bitmapCommitTimeout=null},h}(d.BaseCharAtlas);p.DynamicCharAtlas=r;var a=function(c){function h(g,A){return c.call(this)||this}return m(h,c),h.prototype.draw=function(g,A,b,S){return!1},h}(d.BaseCharAtlas);p.NoneCharAtlas=a},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,u){this._rgba[f]||(this._rgba[f]={}),this._rgba[f][d]=u},m.prototype.getCss=function(f,d){return this._rgba[f]?this._rgba[f][d]:void 0},m.prototype.setColor=function(f,d,u){this._color[f]||(this._color[f]={}),this._color[f][d]=u},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,u=f.next;f===this._head&&(this._head=u),f===this._tail&&(this._tail=d),d!==null&&(d.next=u),u!==null&&(u.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,u=0;u<f;u++)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 u=this._map[f];if(u!==void 0)u=this._map[f],this._unlinkNode(u),u.value=d;else if(this.size>=this.capacity)u=this._head,this._unlinkNode(u),delete this._map[u.key],u.key=f,u.value=d,this._map[f]=u;else{var o=this._nodePool;o.length>0?((u=o.pop()).key=f,u.value=d):u={prev:null,next:null,key:f,value:d},this._map[f]=u,this.size++}this._appendNode(u)},m}();p.LRUMap=v},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(u,o){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var s in t)t.hasOwnProperty(s)&&(i[s]=t[s])})(u,o)},function(d,u){function o(){this.constructor=d}v(d,u),d.prototype=u===null?Object.create(u):(o.prototype=u.prototype,new o)});Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionRenderLayer=void 0;var f=function(d){function u(o,i,t,s,e,l){var r=d.call(this,o,"selection",i,!0,t,s,e,l)||this;return r._clearState(),r}return m(u,d),u.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},u.prototype.resize=function(o){d.prototype.resize.call(this,o),this._clearState()},u.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},u.prototype.onSelectionChanged=function(o,i,t){if(this._didStateChange(o,i,t,this._bufferService.buffer.ydisp))if(this._clearAll(),o&&i){var s=o[1]-this._bufferService.buffer.ydisp,e=i[1]-this._bufferService.buffer.ydisp,l=Math.max(s,0),r=Math.min(e,this._bufferService.rows-1);if(!(l>=this._bufferService.rows||r<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,t){var a=o[0],c=i[0]-a,h=r-l+1;this._fillCells(a,l,c,h)}else{a=s===l?o[0]:0;var g=l===r?i[0]:this._bufferService.cols;this._fillCells(a,l,g-a,1);var A=Math.max(r-l-1,0);if(this._fillCells(0,l+1,this._bufferService.cols,A),l!==r){var b=e===r?i[0]:this._bufferService.cols;this._fillCells(0,r,b,1)}}this._state.start=[o[0],o[1]],this._state.end=[i[0],i[1]],this._state.columnSelectMode=t,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},u.prototype._didStateChange=function(o,i,t,s){return!this._areCoordinatesEqual(o,this._state.start)||!this._areCoordinatesEqual(i,this._state.end)||t!==this._state.columnSelectMode||s!==this._state.ydisp},u.prototype._areCoordinatesEqual=function(o,i){return!(!o||!i)&&o[0]===i[0]&&o[1]===i[1]},u}(x(13).BaseRenderLayer);p.SelectionRenderLayer=f},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(t,s){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var r in l)l.hasOwnProperty(r)&&(e[r]=l[r])})(t,s)},function(i,t){function s(){this.constructor=i}v(i,t),i.prototype=t===null?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(p,"__esModule",{value:!0}),p.CursorRenderLayer=void 0;var f=x(13),d=x(4),u=function(i){function t(s,e,l,r,a,c,h,g,A){var b=i.call(this,s,"cursor",e,!0,l,r,c,h)||this;return b._onRequestRedraw=a,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,i),t.prototype.resize=function(s){i.prototype.resize.call(this,s),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 s,e=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new o(this._coreBrowserService.isFocused,function(){e._render(!0)})):((s=this._cursorBlinkStateManager)===null||s===void 0||s.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(s,e){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(s){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var e=this._bufferService.buffer.ybase+this._bufferService.buffer.y,l=e-this._bufferService.buffer.ydisp;if(l<0||l>=this._bufferService.rows)this._clearCursor();else{var 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 a=this._optionsService.options.cursorStyle;return a&&a!=="block"?this._cursorRenderers[a](r,l,this._cell):this._renderBlurCursor(r,l,this._cell),this._ctx.restore(),this._state.x=r,this._state.y=l,this._state.isFocused=!1,this._state.style=a,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===r&&this._state.y===l&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](r,l,this._cell),this._ctx.restore(),this._state.x=r,this._state.y=l,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},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(s,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(s,e,this._optionsService.options.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(s,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(s,e,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,s,e),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(s,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(s,e),this._ctx.restore()},t.prototype._renderBlurCursor=function(s,e,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(s,e,l.getWidth(),1),this._ctx.restore()},t}(f.BaseRenderLayer);p.CursorRenderLayer=u;var o=function(){function i(t,s){this._renderCallback=s,this.isCursorVisible=!0,t&&this._restartInterval()}return Object.defineProperty(i.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},i.prototype.restartBlinkAnimation=function(){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})))},i.prototype._restartInterval=function(t){var s=this;t===void 0&&(t=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(s._animationTimeRestarted){var e=600-(Date.now()-s._animationTimeRestarted);if(s._animationTimeRestarted=void 0,e>0)return void s._restartInterval(e)}s.isCursorVisible=!1,s._animationFrame=window.requestAnimationFrame(function(){s._renderCallback(),s._animationFrame=void 0}),s._blinkInterval=window.setInterval(function(){if(s._animationTimeRestarted){var l=600-(Date.now()-s._animationTimeRestarted);return s._animationTimeRestarted=void 0,void s._restartInterval(l)}s.isCursorVisible=!s.isCursorVisible,s._animationFrame=window.requestAnimationFrame(function(){s._renderCallback(),s._animationFrame=void 0})},600)},t)},i.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},i.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},i}()},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(t,s){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var r in l)l.hasOwnProperty(r)&&(e[r]=l[r])})(t,s)},function(i,t){function s(){this.constructor=i}v(i,t),i.prototype=t===null?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(p,"__esModule",{value:!0}),p.LinkRenderLayer=void 0;var f=x(13),d=x(9),u=x(26),o=function(i){function t(s,e,l,r,a,c,h,g){var A=i.call(this,s,"link",e,!0,l,r,h,g)||this;return a.onShowLinkUnderline(function(b){return A._onShowLinkUnderline(b)}),a.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,i),t.prototype.resize=function(s){i.prototype.resize.call(this,s),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 s=this._state.y2-this._state.y1-1;s>0&&this._clearCells(0,this._state.y1+1,this._state.cols,s),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(s){if(s.fg===d.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:s.fg&&u.is256Color(s.fg)?this._ctx.fillStyle=this._colors.ansi[s.fg].css:this._ctx.fillStyle=this._colors.foreground.css,s.y1===s.y2)this._fillBottomLineAtCells(s.x1,s.y1,s.x2-s.x1);else{this._fillBottomLineAtCells(s.x1,s.y1,s.cols-s.x1);for(var e=s.y1+1;e<s.y2;e++)this._fillBottomLineAtCells(0,e,s.cols);this._fillBottomLineAtCells(0,s.y2,s.x2)}this._state=s},t.prototype._onHideLinkUnderline=function(s){this._clearCurrentLink()},t}(f.BaseRenderLayer);p.LinkRenderLayer=o},function(y,p,x){"use strict";var v=this&&this.__decorate||function(i,t,s,e){var l,r=arguments.length,a=r<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(i,t,s,e);else for(var c=i.length-1;c>=0;c--)(l=i[c])&&(a=(r<3?l(a):r>3?l(t,s,a):l(t,s))||a);return r>3&&a&&Object.defineProperty(t,s,a),a},m=this&&this.__param||function(i,t){return function(s,e){t(s,e,i)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseZone=p.Linkifier=void 0;var f=x(0),d=x(1),u=function(){function i(t,s,e){this._bufferService=t,this._logService=s,this._unicodeService=e,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new f.EventEmitter,this._onHideLinkUnderline=new f.EventEmitter,this._onLinkTooltip=new f.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(i.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),i.prototype.attachToDom=function(t,s){this._element=t,this._mouseZoneManager=s},i.prototype.linkifyRows=function(t,s){var e=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=s):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,s)),this._mouseZoneManager.clearAll(t,s),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return e._linkifyRows()},i._timeBeforeLatency))},i.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var t=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var s=t.ydisp+this._rowsToLinkify.start;if(!(s>=t.lines.length)){for(var e=t.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,l=Math.ceil(2e3/this._bufferService.cols),r=this._bufferService.buffer.iterator(!1,s,e,l,l);r.hasNext();)for(var a=r.next(),c=0;c<this._linkMatchers.length;c++)this._doLinkifyRow(a.range.first,a.content,this._linkMatchers[c]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},i.prototype.registerLinkMatcher=function(t,s,e){if(e===void 0&&(e={}),!s)throw new Error("handler must be defined");var l={id:this._nextLinkMatcherId++,regex:t,handler:s,matchIndex:e.matchIndex,validationCallback:e.validationCallback,hoverTooltipCallback:e.tooltipCallback,hoverLeaveCallback:e.leaveCallback,willLinkActivate:e.willLinkActivate,priority:e.priority||0};return this._addLinkMatcherToList(l),l.id},i.prototype._addLinkMatcherToList=function(t){if(this._linkMatchers.length!==0){for(var s=this._linkMatchers.length-1;s>=0;s--)if(t.priority<=this._linkMatchers[s].priority)return void this._linkMatchers.splice(s+1,0,t);this._linkMatchers.splice(0,0,t)}else this._linkMatchers.push(t)},i.prototype.deregisterLinkMatcher=function(t){for(var s=0;s<this._linkMatchers.length;s++)if(this._linkMatchers[s].id===t)return this._linkMatchers.splice(s,1),!0;return!1},i.prototype._doLinkifyRow=function(t,s,e){for(var l,r=this,a=new RegExp(e.regex.source,(e.regex.flags||"")+"g"),c=-1,h=function(){var b=l[typeof e.matchIndex!="number"?0:e.matchIndex];if(!b)return g._logService.debug("match found without corresponding matchIndex",l,e),"break";if(c=s.indexOf(b,c+1),a.lastIndex=c+b.length,c<0)return"break";var S=g._bufferService.buffer.stringIndexToBufferIndex(t,c);if(S[0]<0)return"break";var E=g._bufferService.buffer.lines.get(S[0]);if(!E)return"break";var C=E.getFg(S[1]),_=C?C>>9&511:void 0;e.validationCallback?e.validationCallback(b,function(T){r._rowsTimeoutId||T&&r._addLink(S[1],S[0]-r._bufferService.buffer.ydisp,b,e,_)}):g._addLink(S[1],S[0]-g._bufferService.buffer.ydisp,b,e,_)},g=this;(l=a.exec(s))!==null&&!(h()==="break"););},i.prototype._addLink=function(t,s,e,l,r){var a=this;if(this._mouseZoneManager&&this._element){var c=this._unicodeService.getStringCellWidth(e),h=t%this._bufferService.cols,g=s+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(S){if(l.handler)return l.handler(S,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(){a._onShowLinkUnderline.fire(a._createLinkHoverEvent(h,g,A,b,r)),a._element.classList.add("xterm-cursor-pointer")},function(S){a._onLinkTooltip.fire(a._createLinkHoverEvent(h,g,A,b,r)),l.hoverTooltipCallback&&l.hoverTooltipCallback(S,e,{start:{x:h,y:g},end:{x:A,y:b}})},function(){a._onHideLinkUnderline.fire(a._createLinkHoverEvent(h,g,A,b,r)),a._element.classList.remove("xterm-cursor-pointer"),l.hoverLeaveCallback&&l.hoverLeaveCallback()},function(S){return!l.willLinkActivate||l.willLinkActivate(S,e)}))}},i.prototype._createLinkHoverEvent=function(t,s,e,l,r){return{x1:t,y1:s,x2:e,y2:l,cols:this._bufferService.cols,fg:r}},i._timeBeforeLatency=200,i=v([m(0,d.IBufferService),m(1,d.ILogService),m(2,d.IUnicodeService)],i)}();p.Linkifier=u;var o=function(t,s,e,l,r,a,c,h,g){this.x1=t,this.y1=s,this.x2=e,this.y2=l,this.clickCallback=r,this.hoverCallback=a,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,S){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,S)},function(A,b){function S(){this.constructor=A}v(A,b),A.prototype=b===null?Object.create(b):(S.prototype=b.prototype,new S)}),f=this&&this.__decorate||function(A,b,S,E){var C,_=arguments.length,T=_<3?b:E===null?E=Object.getOwnPropertyDescriptor(b,S):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(A,b,S,E);else for(var w=A.length-1;w>=0;w--)(C=A[w])&&(T=(_<3?C(T):_>3?C(b,S,T):C(b,S))||T);return _>3&&T&&Object.defineProperty(b,S,T),T},d=this&&this.__param||function(A,b){return function(S,E){b(S,E,A)}};Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionService=void 0;var u=x(11),o=x(52),i=x(4),t=x(0),s=x(5),e=x(1),l=x(30),r=x(53),a=x(2),c=String.fromCharCode(160),h=new RegExp(c,"g"),g=function(A){function b(S,E,C,_,T,w,O){var I=A.call(this)||this;return I._element=S,I._screenElement=E,I._bufferService=C,I._coreService=_,I._mouseService=T,I._optionsService=w,I._renderService=O,I._dragScrollAmount=0,I._enabled=!0,I._workCell=new i.CellData,I._mouseDownTimeStamp=0,I._onLinuxMouseSelection=I.register(new t.EventEmitter),I._onRedrawRequest=I.register(new t.EventEmitter),I._onSelectionChange=I.register(new t.EventEmitter),I._onRequestScrollLines=I.register(new t.EventEmitter),I._mouseMoveListener=function(R){return I._onMouseMove(R)},I._mouseUpListener=function(R){return I._onMouseUp(R)},I._coreService.onUserInput(function(){I.hasSelection&&I.clearSelection()}),I._trimListener=I._bufferService.buffer.lines.onTrim(function(R){return I._onTrim(R)}),I.register(I._bufferService.buffers.onBufferActivate(function(R){return I._onBufferActivate(R)})),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 w=E[1];w<=C[1];w++){var O=_.translateBufferLineToString(w,!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)),w=E[1]+1;w<=C[1]-1;w++){var R=_.lines.get(w);O=_.translateBufferLineToString(w,!0),R&&R.isWrapped?T[T.length-1]+=O:T.push(O)}E[1]!==C[1]&&(R=_.lines.get(C[1]),O=_.translateBufferLineToString(C[1],!0,0,C[0]),R&&R.isWrapped?T[T.length-1]+=O:T.push(O))}return T.map(function(M){return M.replace(h," ")}).join(u.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),b.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},b.prototype.refresh=function(S){var E=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return E._refresh()})),u.isLinux&&S)&&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(S){var E=this._getMouseBufferCoords(S),C=this._model.finalSelectionStart,_=this._model.finalSelectionEnd;return!!(C&&_&&E)&&this._areCoordsInSelection(E,C,_)},b.prototype._areCoordsInSelection=function(S,E,C){return S[1]>E[1]&&S[1]<C[1]||E[1]===C[1]&&S[1]===E[1]&&S[0]>=E[0]&&S[0]<C[0]||E[1]<C[1]&&S[1]===C[1]&&S[0]<C[0]||E[1]<C[1]&&S[1]===E[1]&&S[0]>=E[0]},b.prototype.selectWordAtCursor=function(S){var E=this._getMouseBufferCoords(S);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(S,E){this._model.clearSelection(),S=Math.max(S,0),E=Math.min(E,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,S],this._model.selectionEnd=[this._bufferService.cols,E],this.refresh(),this._onSelectionChange.fire()},b.prototype._onTrim=function(S){this._model.onTrim(S)&&this.refresh()},b.prototype._getMouseBufferCoords=function(S){var E=this._mouseService.getCoords(S,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(S){var E=l.getCoordsRelativeToElement(S,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(S){return u.isMac?S.altKey&&this._optionsService.options.macOptionClickForcesSelection:S.shiftKey},b.prototype.onMouseDown=function(S){if(this._mouseDownTimeStamp=S.timeStamp,(S.button!==2||!this.hasSelection)&&S.button===0){if(!this._enabled){if(!this.shouldForceSelection(S))return;S.stopPropagation()}S.preventDefault(),this._dragScrollAmount=0,this._enabled&&S.shiftKey?this._onIncrementalClick(S):S.detail===1?this._onSingleClick(S):S.detail===2?this._onDoubleClick(S):S.detail===3&&this._onTripleClick(S),this._addMouseDownListeners(),this.refresh(!0)}},b.prototype._addMouseDownListeners=function(){var S=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return S._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(S){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(S))},b.prototype._onSingleClick=function(S){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(S)?3:0,this._model.selectionStart=this._getMouseBufferCoords(S),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(S){var E=this._getMouseBufferCoords(S);E&&(this._activeSelectionMode=1,this._selectWordAt(E,!0))},b.prototype._onTripleClick=function(S){var E=this._getMouseBufferCoords(S);E&&(this._activeSelectionMode=2,this._selectLineAt(E[1]))},b.prototype.shouldColumnSelect=function(S){return S.altKey&&!(u.isMac&&this._optionsService.options.macOptionClickForcesSelection)},b.prototype._onMouseMove=function(S){if(S.stopImmediatePropagation(),this._model.selectionStart){var E=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(S),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(S),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 S=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(S.ydisp+this._bufferService.rows,S.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=S.ydisp),this.refresh()}},b.prototype._onMouseUp=function(S){var E=S.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&E<500&&S.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var C=this._mouseService.getCoords(S,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(S){var E=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=S.activeBuffer.lines.onTrim(function(C){return E._onTrim(C)})},b.prototype._convertViewportColToCharacterIndex=function(S,E){for(var C=E[0],_=0;E[0]>=_;_++){var T=S.loadCell(_,this._workCell).getChars().length;this._workCell.getWidth()===0?C--:T>1&&E[0]!==_&&(C+=T-1)}return C},b.prototype.setSelection=function(S,E,C){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[S,E],this._model.selectionStartLength=C,this.refresh()},b.prototype._getWordAt=function(S,E,C,_){if(C===void 0&&(C=!0),_===void 0&&(_=!0),!(S[0]>=this._bufferService.cols)){var T=this._bufferService.buffer,w=T.lines.get(S[1]);if(w){var O=T.translateBufferLineToString(S[1],!1),I=this._convertViewportColToCharacterIndex(w,S),R=I,M=S[0]-I,B=0,P=0,X=0,F=0;if(O.charAt(I)===" "){for(;I>0&&O.charAt(I-1)===" ";)I--;for(;R<O.length&&O.charAt(R+1)===" ";)R++}else{var j=S[0],K=S[0];w.getWidth(j)===0&&(B++,j--),w.getWidth(K)===2&&(P++,K++);var z=w.getString(K).length;for(z>1&&(F+=z-1,R+=z-1);j>0&&I>0&&!this._isCharWordSeparator(w.loadCell(j-1,this._workCell));){w.loadCell(j-1,this._workCell);var V=this._workCell.getChars().length;this._workCell.getWidth()===0?(B++,j--):V>1&&(X+=V-1,I-=V-1),I--,j--}for(;K<w.length&&R+1<O.length&&!this._isCharWordSeparator(w.loadCell(K+1,this._workCell));){w.loadCell(K+1,this._workCell);var Q=this._workCell.getChars().length;this._workCell.getWidth()===2?(P++,K++):Q>1&&(F+=Q-1,R+=Q-1),R++,K++}}R++;var G=I+M-B+X,te=Math.min(this._bufferService.cols,R-I+B+P-X-F);if(E||O.slice(I,R).trim()!==""){if(C&&G===0&&w.getCodePoint(0)!==32){var q=T.lines.get(S[1]-1);if(q&&w.isWrapped&&q.getCodePoint(this._bufferService.cols-1)!==32){var le=this._getWordAt([this._bufferService.cols-1,S[1]-1],!1,!0,!1);if(le){var re=this._bufferService.cols-le.start;G-=re,te+=re}}}if(_&&G+te===this._bufferService.cols&&w.getCodePoint(this._bufferService.cols-1)!==32){var we=T.lines.get(S[1]+1);if(we&&we.isWrapped&&we.getCodePoint(0)!==32){var Ie=this._getWordAt([0,S[1]+1],!1,!1,!0);Ie&&(te+=Ie.length)}}return{start:G,length:te}}}}},b.prototype._selectWordAt=function(S,E){var C=this._getWordAt(S,E);if(C){for(;C.start<0;)C.start+=this._bufferService.cols,S[1]--;this._model.selectionStart=[C.start,S[1]],this._model.selectionStartLength=C.length}},b.prototype._selectToWordAt=function(S){var E=this._getWordAt(S,!0);if(E){for(var C=S[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(S){return S.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(S.getChars())>=0},b.prototype._selectLineAt=function(S){var E=this._bufferService.buffer.getWrappedRangeForLine(S);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,s.IMouseService),d(5,e.IOptionsService),d(6,s.IRenderService)],b)}(a.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,s,e,l){var r=t-f(e,t),a=s-f(e,s);return i(Math.abs(r-a)-function(c,h,g){for(var A=0,b=c-f(g,c),S=h-f(g,h),E=0;E<Math.abs(b-S);E++){var C=d(c,h)==="A"?-1:1,_=g.buffer.lines.get(b+C*E);_&&_.isWrapped&&A++}return A}(t,s,e),o(d(t,s),l))}function f(t,s){for(var e=0,l=t.buffer.lines.get(s),r=l&&l.isWrapped;r&&s>=0&&s<t.rows;)e++,r=(l=t.buffer.lines.get(--s))&&l.isWrapped;return e}function d(t,s){return t>s?"A":"B"}function u(t,s,e,l,r,a){for(var c=t,h=s,g="";c!==e||h!==l;)c+=r?1:-1,r&&c>a.cols-1?(g+=a.buffer.translateBufferLineToString(h,!1,t,c),c=0,t=0,h++):!r&&c<0&&(g+=a.buffer.translateBufferLineToString(h,!1,0,t+1),t=c=a.cols-1,h--);return g+a.buffer.translateBufferLineToString(h,!1,t,c)}function o(t,s){var e=s?"O":"[";return v.C0.ESC+e+t}function i(t,s){t=Math.floor(t);for(var e="",l=0;l<t;l++)e+=s;return e}p.moveToCellSequence=function(t,s,e,l){var r,a=e.buffer.x,c=e.buffer.y;if(!e.buffer.hasScrollback)return function(g,A,b,S,E,C){return m(A,S,E,C).length===0?"":i(u(g,A,g,A-f(E,A),!1,E).length,o("D",C))}(a,c,0,s,e,l)+m(c,s,e,l)+function(g,A,b,S,E,C){var _;_=m(A,S,E,C).length>0?S-f(E,S):A;var T=S,w=function(O,I,R,M,B,P){var X;return X=m(R,M,B,P).length>0?M-f(B,M):I,O<R&&X<=M||O>=R&&X<M?"C":"D"}(g,A,b,S,E,C);return i(u(g,_,b,T,w==="C",E).length,o(w,C))}(a,c,t,s,e,l);if(c===s)return r=a>t?"D":"C",i(Math.abs(a-t),o(r,l));r=c>s?"D":"C";var h=Math.abs(c-s);return i(function(g,A){return A.cols-g}(c>s?t:a,e)+(h-1)*e.cols+1+((c>s?a:t)-1),o(r,l))}},function(y,p,x){"use strict";var v=this&&this.__decorate||function(u,o,i,t){var s,e=arguments.length,l=e<3?o:t===null?t=Object.getOwnPropertyDescriptor(o,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(u,o,i,t);else for(var r=u.length-1;r>=0;r--)(s=u[r])&&(l=(e<3?s(l):e>3?s(o,i,l):s(o,i))||l);return e>3&&l&&Object.defineProperty(o,i,l),l},m=this&&this.__param||function(u,o){return function(i,t){o(i,t,u)}};Object.defineProperty(p,"__esModule",{value:!0}),p.SoundService=void 0;var f=x(1),d=function(){function u(o){this._optionsService=o}return Object.defineProperty(u,"audioContext",{get:function(){if(!u._audioContext){var i=window.AudioContext||window.webkitAudioContext;if(!i)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;u._audioContext=new i}return u._audioContext},enumerable:!1,configurable:!0}),u.prototype.playBellSound=function(){var o=u.audioContext;if(o){var i=o.createBufferSource();o.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(t){i.buffer=t,i.connect(o.destination),i.start(0)})}},u.prototype._base64ToArrayBuffer=function(o){for(var i=window.atob(o),t=i.length,s=new Uint8Array(t),e=0;e<t;e++)s[e]=i.charCodeAt(e);return s.buffer},u.prototype._removeMimeType=function(o){return o.split(",")[1]},u=v([m(0,f.IOptionsService)],u)}();p.SoundService=d},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var h in c)c.hasOwnProperty(h)&&(a[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)}),f=this&&this.__decorate||function(e,l,r,a){var c,h=arguments.length,g=h<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,a);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(g=(h<3?c(g):h>3?c(l,r,g):c(l,r))||g);return h>3&&g&&Object.defineProperty(l,r,g),g},d=this&&this.__param||function(e,l){return function(r,a){l(r,a,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseZoneManager=void 0;var u=x(2),o=x(7),i=x(5),t=x(1),s=function(e){function l(r,a,c,h,g,A){var b=e.call(this)||this;return b._element=r,b._screenElement=a,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(S){return b._onMouseDown(S)})),b._mouseMoveListener=function(S){return b._onMouseMove(S)},b._mouseLeaveListener=function(S){return b._onMouseLeave(S)},b._clickListener=function(S){return b._onClick(S)},b}return m(l,e),l.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},l.prototype.add=function(r){this._zones.push(r),this._zones.length===1&&this._activate()},l.prototype.clearAll=function(r,a){if(this._zones.length!==0){r&&a||(r=0,a=this._bufferService.rows-1);for(var c=0;c<this._zones.length;c++){var h=this._zones[c];(h.y1>r&&h.y1<=a+1||h.y2>r&&h.y2<=a+1||h.y1<r&&h.y2>a+1)&&(this._currentZone&&this._currentZone===h&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(c--,1))}this._zones.length===0&&this._deactivate()}},l.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},l.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},l.prototype._onMouseMove=function(r){this._lastHoverCoords[0]===r.pageX&&this._lastHoverCoords[1]===r.pageY||(this._onHover(r),this._lastHoverCoords=[r.pageX,r.pageY])},l.prototype._onHover=function(r){var a=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 a._onTooltip(r)},this._optionsService.options.linkTooltipHoverDuration)))},l.prototype._onTooltip=function(r){this._tooltipTimeout=void 0;var a=this._findZoneEventAt(r);a&&a.tooltipCallback&&a.tooltipCallback(r)},l.prototype._onMouseDown=function(r){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var a=this._findZoneEventAt(r);(a==null?void 0:a.willLinkActivate(r))&&(r.preventDefault(),r.stopImmediatePropagation())}},l.prototype._onMouseLeave=function(r){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},l.prototype._onClick=function(r){var a=this._findZoneEventAt(r),c=this._getSelectionLength();a&&c===this._initialSelectionLength&&(a.clickCallback(r),r.preventDefault(),r.stopImmediatePropagation())},l.prototype._getSelectionLength=function(){var r=this._selectionService.selectionText;return r?r.length:0},l.prototype._findZoneEventAt=function(r){var a=this._mouseService.getCoords(r,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(a)for(var c=a[0],h=a[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}},l=f([d(2,t.IBufferService),d(3,i.IMouseService),d(4,i.ISelectionService),d(5,t.IOptionsService)],l)}(u.Disposable);p.MouseZoneManager=s},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(r,a){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,a)},function(l,r){function a(){this.constructor=l}v(l,r),l.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)});Object.defineProperty(p,"__esModule",{value:!0}),p.AccessibilityManager=void 0;var f=x(18),d=x(11),u=x(31),o=x(7),i=x(2),t=x(32),s=x(17),e=function(l){function r(a,c){var h=l.call(this)||this;h._terminal=a,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 u.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,l),r.prototype.dispose=function(){l.prototype.dispose.call(this),s.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},r.prototype._onBoundaryFocus=function(a,c){var h=a.target,g=this._rowElements[c===0?1:this._rowElements.length-2];if(h.getAttribute("aria-posinset")!==(c===0?"1":""+this._terminal.buffer.lines.length)&&a.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 S=this._createAccessibilityTreeNode();this._rowElements.unshift(S),this._rowContainer.insertAdjacentElement("afterbegin",S)}else S=this._createAccessibilityTreeNode(),this._rowElements.push(S),this._rowContainer.appendChild(S);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(),a.preventDefault(),a.stopImmediatePropagation()}},r.prototype._onResize=function(a){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>a;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},r.prototype._createAccessibilityTreeNode=function(){var a=document.createElement("div");return a.setAttribute("role","listitem"),a.tabIndex=-1,this._refreshRowDimensions(a),a},r.prototype._onTab=function(a){for(var c=0;c<a;c++)this._onChar(" ")},r.prototype._onChar=function(a){var c=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==a&&(this._charsToAnnounce+=a):this._charsToAnnounce+=a,a===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=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&&s.removeElementFromParent(this._liveRegion)},r.prototype._onKey=function(a){this._clearLiveRegion(),this._charsToConsume.push(a)},r.prototype._refreshRows=function(a,c){this._renderRowsDebouncer.refresh(a,c,this._terminal.rows)},r.prototype._renderRows=function(a,c){for(var h=this._terminal.buffer,g=h.lines.length.toString(),A=a;A<=c;A++){var b=h.translateBufferLineToString(h.ydisp+A,!0),S=(h.ydisp+A+1).toString(),E=this._rowElements[A];E&&(b.length===0?E.innerHTML="&nbsp;":E.textContent=b,E.setAttribute("aria-posinset",S),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 a=0;a<this._terminal.rows;a++)this._refreshRowDimensions(this._rowElements[a])}},r.prototype._refreshRowDimensions=function(a){a.style.height=this._renderService.dimensions.actualCellHeight+"px"},r.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},r}(i.Disposable);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,S){b.__proto__=S}||function(b,S){for(var E in S)S.hasOwnProperty(E)&&(b[E]=S[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 S,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;_--)(S=h[_])&&(C=(E<3?S(C):E>3?S(g,A,C):S(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 u=x(58),o=x(9),i=x(2),t=x(5),s=x(1),e=x(0),l=x(10),r=x(17),a=1,c=function(h){function g(A,b,S,E,C,_,T,w,O){var I=h.call(this)||this;return I._colors=A,I._element=b,I._screenElement=S,I._viewportElement=E,I._linkifier=C,I._linkifier2=_,I._charSizeService=T,I._optionsService=w,I._bufferService=O,I._terminalClass=a++,I._rowElements=[],I._rowContainer=document.createElement("div"),I._rowContainer.classList.add("xterm-rows"),I._rowContainer.style.lineHeight="normal",I._rowContainer.setAttribute("aria-hidden","true"),I._refreshRowElements(I._bufferService.cols,I._bufferService.rows),I._selectionContainer=document.createElement("div"),I._selectionContainer.classList.add("xterm-selection"),I._selectionContainer.setAttribute("aria-hidden","true"),I.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},I._updateDimensions(),I._injectCss(),I._rowFactory=new u.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(R){return I._onLinkHover(R)}),I._linkifier.onHideLinkUnderline(function(R){return I._onLinkLeave(R)}),I._linkifier2.onShowLinkUnderline(function(R){return I._onLinkHover(R)}),I._linkifier2.onHideLinkUnderline(function(R){return I._onLinkLeave(R)}),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 S=b[A];S.style.width=this.dimensions.canvasWidth+"px",S.style.height=this.dimensions.actualCellHeight+"px",S.style.lineHeight=this.dimensions.actualCellHeight+"px",S.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(."+u.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+u.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+u.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) ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_BLINK_CLASS+":not(."+u.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_BLINK_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+u.CURSOR_CLASS+"."+u.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(S,E){b+=A._terminalSelector+" .xterm-fg-"+E+" { color: "+S.css+"; }"+A._terminalSelector+" .xterm-bg-"+E+" { background-color: "+S.css+"; }"}),b+=this._terminalSelector+" .xterm-fg-"+o.INVERTED_DEFAULT_COLOR+" { color: "+l.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+o.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=b},g.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},g.prototype._refreshRowElements=function(A,b){for(var S=this._rowElements.length;S<=b;S++){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,S){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 w=document.createDocumentFragment();if(S)w.appendChild(this._createSelectionElement(_,A[0],b[0],T-_+1));else{var O=E===_?A[0]:0,I=_===T?b[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(_,O,I));var R=T-_-1;if(w.appendChild(this._createSelectionElement(_+1,0,this._bufferService.cols,R)),_!==T){var M=C===T?b[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(T,0,M))}}this._selectionContainer.appendChild(w)}}},g.prototype._createSelectionElement=function(A,b,S,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*(S-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 S=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 w=_+this._bufferService.buffer.ydisp,O=this._bufferService.buffer.lines.get(w),I=this._optionsService.options.cursorStyle;T.appendChild(this._rowFactory.createRow(O,w===S,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,S,E,C,_){for(;A!==b||S!==E;){var T=this._rowElements[S];if(!T)return;var w=T.children[A];w&&(w.style.textDecoration=_?"underline":"none"),++A>=C&&(A=0,S++)}},g=f([d(6,t.ICharSizeService),d(7,s.IOptionsService),d(8,s.IBufferService)],g)}(i.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 u=function(){function i(t,s,e){this._document=t,this._optionsService=s,this._colors=e,this._workCell=new f.CellData}return i.prototype.setColors=function(t){this._colors=t},i.prototype.createRow=function(t,s,e,l,r,a,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||s&&A===l){g=A+1;break}for(A=0;A<g;A++){t.loadCell(A,this._workCell);var b=this._workCell.getWidth();if(b!==0){var S=this._document.createElement("span");if(b>1&&(S.style.width=a*b+"px"),s&&A===l)switch(S.classList.add(p.CURSOR_CLASS),r&&S.classList.add(p.CURSOR_BLINK_CLASS),e){case"bar":S.classList.add(p.CURSOR_STYLE_BAR_CLASS);break;case"underline":S.classList.add(p.CURSOR_STYLE_UNDERLINE_CLASS);break;default:S.classList.add(p.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&S.classList.add(p.BOLD_CLASS),this._workCell.isItalic()&&S.classList.add(p.ITALIC_CLASS),this._workCell.isDim()&&S.classList.add(p.DIM_CLASS),this._workCell.isUnderline()&&S.classList.add(p.UNDERLINE_CLASS),this._workCell.isInvisible()?S.textContent=m.WHITESPACE_CELL_CHAR:S.textContent=this._workCell.getChars()||m.WHITESPACE_CELL_CHAR;var E=this._workCell.getFgColor(),C=this._workCell.getFgColorMode(),_=this._workCell.getBgColor(),T=this._workCell.getBgColorMode(),w=!!this._workCell.isInverse();if(w){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(S,this._colors.background,this._colors.ansi[E])||S.classList.add("xterm-fg-"+E);break;case 50331648:var R=d.rgba.toColor(E>>16&255,E>>8&255,255&E);this._applyMinimumContrast(S,this._colors.background,R)||this._addStyle(S,"color:#"+o(E.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(S,this._colors.background,this._colors.foreground)||w&&S.classList.add("xterm-fg-"+v.INVERTED_DEFAULT_COLOR)}switch(T){case 16777216:case 33554432:S.classList.add("xterm-bg-"+_);break;case 50331648:this._addStyle(S,"background-color:#"+o(_.toString(16),"0",6));break;case 0:default:w&&S.classList.add("xterm-bg-"+v.INVERTED_DEFAULT_COLOR)}h.appendChild(S)}}return h},i.prototype._applyMinimumContrast=function(t,s,e){if(this._optionsService.options.minimumContrastRatio===1)return!1;var l=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return l===void 0&&(l=d.color.ensureContrastRatio(s,e,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,l!=null?l:null)),!!l&&(this._addStyle(t,"color:"+l.css),!0)},i.prototype._addStyle=function(t,s){t.setAttribute("style",""+(t.getAttribute("style")||"")+s+";")},i}();function o(i,t,s){for(;i.length<s;)i=t+i;return i}p.DomRendererRowFactory=u},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,u,o){var i={type:0,cancel:!1,key:void 0},t=(f.shiftKey?1:0)|(f.altKey?2:0)|(f.ctrlKey?4:0)|(f.metaKey?8:0);switch(f.keyCode){case 0:f.key==="UIKeyInputUpArrow"?i.key=d?v.C0.ESC+"OA":v.C0.ESC+"[A":f.key==="UIKeyInputLeftArrow"?i.key=d?v.C0.ESC+"OD":v.C0.ESC+"[D":f.key==="UIKeyInputRightArrow"?i.key=d?v.C0.ESC+"OC":v.C0.ESC+"[C":f.key==="UIKeyInputDownArrow"&&(i.key=d?v.C0.ESC+"OB":v.C0.ESC+"[B");break;case 8:if(f.shiftKey){i.key=v.C0.BS;break}if(f.altKey){i.key=v.C0.ESC+v.C0.DEL;break}i.key=v.C0.DEL;break;case 9:if(f.shiftKey){i.key=v.C0.ESC+"[Z";break}i.key=v.C0.HT,i.cancel=!0;break;case 13:i.key=f.altKey?v.C0.ESC+v.C0.CR:v.C0.CR,i.cancel=!0;break;case 27:i.key=v.C0.ESC,f.altKey&&(i.key=v.C0.ESC+v.C0.ESC),i.cancel=!0;break;case 37:if(f.metaKey)break;t?(i.key=v.C0.ESC+"[1;"+(t+1)+"D",i.key===v.C0.ESC+"[1;3D"&&(i.key=v.C0.ESC+(u?"b":"[1;5D"))):i.key=d?v.C0.ESC+"OD":v.C0.ESC+"[D";break;case 39:if(f.metaKey)break;t?(i.key=v.C0.ESC+"[1;"+(t+1)+"C",i.key===v.C0.ESC+"[1;3C"&&(i.key=v.C0.ESC+(u?"f":"[1;5C"))):i.key=d?v.C0.ESC+"OC":v.C0.ESC+"[C";break;case 38:if(f.metaKey)break;t?(i.key=v.C0.ESC+"[1;"+(t+1)+"A",u||i.key!==v.C0.ESC+"[1;3A"||(i.key=v.C0.ESC+"[1;5A")):i.key=d?v.C0.ESC+"OA":v.C0.ESC+"[A";break;case 40:if(f.metaKey)break;t?(i.key=v.C0.ESC+"[1;"+(t+1)+"B",u||i.key!==v.C0.ESC+"[1;3B"||(i.key=v.C0.ESC+"[1;5B")):i.key=d?v.C0.ESC+"OB":v.C0.ESC+"[B";break;case 45:f.shiftKey||f.ctrlKey||(i.key=v.C0.ESC+"[2~");break;case 46:i.key=t?v.C0.ESC+"[3;"+(t+1)+"~":v.C0.ESC+"[3~";break;case 36:i.key=t?v.C0.ESC+"[1;"+(t+1)+"H":d?v.C0.ESC+"OH":v.C0.ESC+"[H";break;case 35:i.key=t?v.C0.ESC+"[1;"+(t+1)+"F":d?v.C0.ESC+"OF":v.C0.ESC+"[F";break;case 33:f.shiftKey?i.type=2:i.key=v.C0.ESC+"[5~";break;case 34:f.shiftKey?i.type=3:i.key=v.C0.ESC+"[6~";break;case 112:i.key=t?v.C0.ESC+"[1;"+(t+1)+"P":v.C0.ESC+"OP";break;case 113:i.key=t?v.C0.ESC+"[1;"+(t+1)+"Q":v.C0.ESC+"OQ";break;case 114:i.key=t?v.C0.ESC+"[1;"+(t+1)+"R":v.C0.ESC+"OR";break;case 115:i.key=t?v.C0.ESC+"[1;"+(t+1)+"S":v.C0.ESC+"OS";break;case 116:i.key=t?v.C0.ESC+"[15;"+(t+1)+"~":v.C0.ESC+"[15~";break;case 117:i.key=t?v.C0.ESC+"[17;"+(t+1)+"~":v.C0.ESC+"[17~";break;case 118:i.key=t?v.C0.ESC+"[18;"+(t+1)+"~":v.C0.ESC+"[18~";break;case 119:i.key=t?v.C0.ESC+"[19;"+(t+1)+"~":v.C0.ESC+"[19~";break;case 120:i.key=t?v.C0.ESC+"[20;"+(t+1)+"~":v.C0.ESC+"[20~";break;case 121:i.key=t?v.C0.ESC+"[21;"+(t+1)+"~":v.C0.ESC+"[21~";break;case 122:i.key=t?v.C0.ESC+"[23;"+(t+1)+"~":v.C0.ESC+"[23~";break;case 123:i.key=t?v.C0.ESC+"[24;"+(t+1)+"~":v.C0.ESC+"[24~";break;default:if(!f.ctrlKey||f.shiftKey||f.altKey||f.metaKey)if(u&&!o||!f.altKey||f.metaKey)u&&!f.altKey&&!f.ctrlKey&&f.metaKey?f.keyCode===65&&(i.type=1):f.key&&!f.ctrlKey&&!f.altKey&&!f.metaKey&&f.keyCode>=48&&f.key.length===1?i.key=f.key:f.key&&f.ctrlKey&&f.key==="_"&&(i.key=v.C0.US);else{var s=m[f.keyCode],e=s&&s[f.shiftKey?1:0];if(e)i.key=v.C0.ESC+e;else if(f.keyCode>=65&&f.keyCode<=90){var l=f.ctrlKey?f.keyCode-64:f.keyCode+32;i.key=v.C0.ESC+String.fromCharCode(l)}}else f.keyCode>=65&&f.keyCode<=90?i.key=String.fromCharCode(f.keyCode-64):f.keyCode===32?i.key=v.C0.NUL:f.keyCode>=51&&f.keyCode<=55?i.key=String.fromCharCode(f.keyCode-51+27):f.keyCode===56?i.key=v.C0.DEL:f.keyCode===219?i.key=v.C0.ESC:f.keyCode===220?i.key=v.C0.FS:f.keyCode===221&&(i.key=v.C0.GS)}return i}},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(a,c){function h(){this.constructor=a}v(a,c),a.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}),f=this&&this.__decorate||function(a,c,h,g){var A,b=arguments.length,S=b<3?c:g===null?g=Object.getOwnPropertyDescriptor(c,h):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(a,c,h,g);else for(var E=a.length-1;E>=0;E--)(A=a[E])&&(S=(b<3?A(S):b>3?A(c,h,S):A(c,h))||S);return b>3&&S&&Object.defineProperty(c,h,S),S},d=this&&this.__param||function(a,c){return function(h,g){c(h,g,a)}};Object.defineProperty(p,"__esModule",{value:!0}),p.RenderService=void 0;var u=x(31),o=x(0),i=x(2),t=x(32),s=x(7),e=x(1),l=x(5),r=function(a){function c(h,g,A,b,S,E){var C=a.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 u.RenderDebouncer(function(T,w){return C._renderRows(T,w)}),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(S.onCharSizeChange(function(){return C.onCharSizeChanged()})),C._renderer.onRequestRedraw(function(T){return C.refreshRows(T.start,T.end,!0)}),C.register(s.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,a),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(){a.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,l.ICharSizeService),d(5,e.IBufferService)],c)}(i.Disposable);p.RenderService=r},function(y,p,x){"use strict";var v=this&&this.__decorate||function(i,t,s,e){var l,r=arguments.length,a=r<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(i,t,s,e);else for(var c=i.length-1;c>=0;c--)(l=i[c])&&(a=(r<3?l(a):r>3?l(t,s,a):l(t,s))||a);return r>3&&a&&Object.defineProperty(t,s,a),a},m=this&&this.__param||function(i,t){return function(s,e){t(s,e,i)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CharSizeService=void 0;var f=x(1),d=x(0),u=function(){function i(t,s,e){this._optionsService=e,this.width=0,this.height=0,this._onCharSizeChange=new d.EventEmitter,this._measureStrategy=new o(t,s,this._optionsService)}return Object.defineProperty(i.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),i.prototype.measure=function(){var t=this._measureStrategy.measure();t.width===this.width&&t.height===this.height||(this.width=t.width,this.height=t.height,this._onCharSizeChange.fire())},i=v([m(2,f.IOptionsService)],i)}();p.CharSizeService=u;var o=function(){function i(t,s,e){this._document=t,this._parentElement=s,this._optionsService=e,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return i.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var t=this._measureElement.getBoundingClientRect();return t.width!==0&&t.height!==0&&(this._result.width=t.width,this._result.height=Math.ceil(t.height)),this._result},i}()},function(y,p,x){"use strict";var v=this&&this.__decorate||function(o,i,t,s){var e,l=arguments.length,r=l<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,i,t,s);else for(var a=o.length-1;a>=0;a--)(e=o[a])&&(r=(l<3?e(r):l>3?e(i,t,r):e(i,t))||r);return l>3&&r&&Object.defineProperty(i,t,r),r},m=this&&this.__param||function(o,i){return function(t,s){i(t,s,o)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseService=void 0;var f=x(5),d=x(30),u=function(){function o(i,t){this._renderService=i,this._charSizeService=t}return o.prototype.getCoords=function(i,t,s,e,l){return d.getCoords(i,t,s,e,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,l)},o.prototype.getRawByteCoords=function(i,t,s,e){var l=this.getCoords(i,t,s,e);return d.getRawByteCoords(l)},o=v([m(0,f.IRenderService),m(1,f.ICharSizeService)],o)}();p.MouseService=u},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var h in c)c.hasOwnProperty(h)&&(a[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)}),f=this&&this.__decorate||function(e,l,r,a){var c,h=arguments.length,g=h<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,a);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(g=(h<3?c(g):h>3?c(l,r,g):c(l,r))||g);return h>3&&g&&Object.defineProperty(l,r,g),g},d=this&&this.__param||function(e,l){return function(r,a){l(r,a,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.Linkifier2=void 0;var u=x(1),o=x(0),i=x(2),t=x(7),s=function(e){function l(r){var a=e.call(this)||this;return a._bufferService=r,a._linkProviders=[],a._linkCacheDisposables=[],a._isMouseOut=!0,a._activeLine=-1,a._onShowLinkUnderline=a.register(new o.EventEmitter),a._onHideLinkUnderline=a.register(new o.EventEmitter),a.register(i.getDisposeArrayDisposable(a._linkCacheDisposables)),a}return m(l,e),Object.defineProperty(l.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),l.prototype.registerLinkProvider=function(r){var a=this;return this._linkProviders.push(r),{dispose:function(){var h=a._linkProviders.indexOf(r);h!==-1&&a._linkProviders.splice(h,1)}}},l.prototype.attachToDom=function(r,a,c){var h=this;this._element=r,this._mouseService=a,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)))},l.prototype._onMouseMove=function(r){if(this._lastMouseEvent=r,this._element&&this._mouseService){var a=this._positionFromMouseEvent(r,this._element,this._mouseService);if(a){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&&a.x===this._lastBufferCell.x&&a.y===this._lastBufferCell.y||(this._onHover(a),this._lastBufferCell=a)}}},l.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))},l.prototype._askForLink=function(r,a){var c=this;this._activeProviderReplies&&a||(this._activeProviderReplies=new Map,this._activeLine=r.y);var h=!1;this._linkProviders.forEach(function(g,A){var b;a?((b=c._activeProviderReplies)===null||b===void 0?void 0:b.get(A))&&(h=c._checkLinkProviderResult(A,r,h)):g.provideLinks(r.y,function(S){var E,C;if(!c._isMouseOut){var _=S==null?void 0:S.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)}})})},l.prototype._removeIntersectingLinks=function(r,a){for(var c=new Set,h=0;h<a.size;h++){var g=a.get(h);if(g)for(var A=0;A<g.length;A++)for(var b=g[A],S=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=S;C<=E;C++){if(c.has(C)){g.splice(A--,1);break}c.add(C)}}},l.prototype._checkLinkProviderResult=function(r,a,c){var h,g=this;if(!this._activeProviderReplies)return c;for(var A=this._activeProviderReplies.get(r),b=!1,S=0;S<r;S++)this._activeProviderReplies.has(S)&&!this._activeProviderReplies.get(S)||(b=!0);if(!b&&A){var E=A.find(function(_){return g._linkAtPosition(_.link,a)});E&&(c=!0,this._handleNewLink(E))}if(this._activeProviderReplies.size===this._linkProviders.length&&!c)for(S=0;S<this._activeProviderReplies.size;S++){var C=(h=this._activeProviderReplies.get(S))===null||h===void 0?void 0:h.find(function(_){return g._linkAtPosition(_.link,a)});if(C){c=!0,this._handleNewLink(C);break}}return c},l.prototype._onClick=function(r){if(this._element&&this._mouseService&&this._currentLink){var a=this._positionFromMouseEvent(r,this._element,this._mouseService);a&&this._linkAtPosition(this._currentLink.link,a)&&this._currentLink.link.activate(r,this._currentLink.link.text)}},l.prototype._clearCurrentLink=function(r,a){this._element&&this._currentLink&&this._lastMouseEvent&&(!r||!a||this._currentLink.link.range.start.y>=r&&this._currentLink.link.range.end.y<=a)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,i.disposeArray(this._linkCacheDisposables))},l.prototype._handleNewLink=function(r){var a=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=a._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=a._currentLink)===null||A===void 0?void 0:A.state)&&a._currentLink.state.decorations.pointerCursor!==g&&(a._currentLink.state.decorations.pointerCursor=g,a._currentLink.state.isHovered&&((b=a._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",g)))}},underline:{get:function(){var g,A;return(A=(g=a._currentLink)===null||g===void 0?void 0:g.state)===null||A===void 0?void 0:A.decorations.underline},set:function(g){var A,b,S;((A=a._currentLink)===null||A===void 0?void 0:A.state)&&((S=(b=a._currentLink)===null||b===void 0?void 0:b.state)===null||S===void 0?void 0:S.decorations.underline)!==g&&(a._currentLink.state.decorations.underline=g,a._currentLink.state.isHovered&&a._fireUnderlineEvent(r.link,g))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(h){var g=h.start===0?0:h.start+1+a._bufferService.buffer.ydisp;a._clearCurrentLink(g,h.end+1+a._bufferService.buffer.ydisp)})))}},l.prototype._linkHover=function(r,a,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(a,!0),this._currentLink.state.decorations.pointerCursor&&r.classList.add("xterm-cursor-pointer")),a.hover&&a.hover(c,a.text)},l.prototype._fireUnderlineEvent=function(r,a){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);(a?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(g)},l.prototype._linkLeave=function(r,a,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(a,!1),this._currentLink.state.decorations.pointerCursor&&r.classList.remove("xterm-cursor-pointer")),a.leave&&a.leave(c,a.text)},l.prototype._linkAtPosition=function(r,a){var c=r.range.start.y===r.range.end.y,h=r.range.start.y<a.y,g=r.range.end.y>a.y;return(c&&r.range.start.x<=a.x&&r.range.end.x>=a.x||h&&r.range.end.x>=a.x||g&&r.range.start.x<=a.x||h&&g)&&r.range.start.y<=a.y&&r.range.end.y>=a.y},l.prototype._positionFromMouseEvent=function(r,a,c){var h=c.getCoords(r,a,this._bufferService.cols,this._bufferService.rows);if(h)return{x:h[0],y:h[1]+this._bufferService.buffer.ydisp}},l.prototype._createLinkUnderlineEvent=function(r,a,c,h,g){return{x1:r,y1:a,x2:c,y2:h,cols:this._bufferService.cols,fg:g}},l=f([d(0,u.IBufferService)],l)}(i.Disposable);p.Linkifier2=s},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 w in T)T.hasOwnProperty(w)&&(_[w]=T[w])})(E,C)},function(S,E){function C(){this.constructor=S}v(S,E),S.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),u=x(66),o=x(67),i=x(68),t=x(74),s=x(75),e=x(0),l=x(76),r=x(77),a=x(78),c=x(80),h=x(81),g=x(19),A=x(82),b=function(S){function E(C){var _=S.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 u.InstantiationService,_.optionsService=new t.OptionsService(C),_._instantiationService.setService(d.IOptionsService,_.optionsService),_._bufferService=_.register(_._instantiationService.createInstance(i.BufferService)),_._instantiationService.setService(d.IBufferService,_._bufferService),_._logService=_._instantiationService.createInstance(o.LogService),_._instantiationService.setService(d.ILogService,_._logService),_._coreService=_.register(_._instantiationService.createInstance(s.CoreService,function(){return _.scrollToBottom()})),_._instantiationService.setService(d.ICoreService,_._coreService),_._coreMouseService=_._instantiationService.createInstance(l.CoreMouseService),_._instantiationService.setService(d.ICoreMouseService,_._coreMouseService),_._dirtyRowService=_._instantiationService.createInstance(r.DirtyRowService),_._instantiationService.setService(d.IDirtyRowService,_._dirtyRowService),_.unicodeService=_._instantiationService.createInstance(a.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,S),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||(S.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,i.MINIMUM_COLS),_=Math.max(_,i.MINIMUM_ROWS),this._bufferService.resize(C,_))},E.prototype.scroll=function(C,_){_===void 0&&(_=!1);var T,w=this._bufferService.buffer;(T=this._cachedBlankLine)&&T.length===this.cols&&T.getFg(0)===C.fg&&T.getBg(0)===C.bg||(T=w.getBlankLine(C,_),this._cachedBlankLine=T),T.isWrapped=_;var O=w.ybase+w.scrollTop,I=w.ybase+w.scrollBottom;if(w.scrollTop===0){var R=w.lines.isFull;I===w.lines.length-1?R?w.lines.recycle().copyFrom(T):w.lines.push(T.clone()):w.lines.splice(I+1,0,T.clone()),R?this._bufferService.isUserScrolling&&(w.ydisp=Math.max(w.ydisp-1,0)):(w.ybase++,this._bufferService.isUserScrolling||w.ydisp++)}else{var M=I-O+1;w.lines.shiftElements(O+1,M-1,-1),w.lines.set(I,T.clone())}this._bufferService.isUserScrolling||(w.ydisp=w.ybase),this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom),this._onScroll.fire(w.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 w=T.ydisp;T.ydisp=Math.max(Math.min(T.ydisp+C,T.ybase),0),w!==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 w=0,O=_;w<O.length;w++)O[w].dispose()}}}},E}(f.Disposable);p.CoreTerminal=b},function(y,p,x){"use strict";var v=this&&this.__spreadArrays||function(){for(var o=0,i=0,t=arguments.length;i<t;i++)o+=arguments[i].length;var s=Array(o),e=0;for(i=0;i<t;i++)for(var l=arguments[i],r=0,a=l.length;r<a;r++,e++)s[e]=l[r];return s};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 i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];this._entries=new Map;for(var s=0,e=i;s<e.length;s++){var l=e[s],r=l[0],a=l[1];this.set(r,a)}}return o.prototype.set=function(i,t){var s=this._entries.get(i);return this._entries.set(i,t),s},o.prototype.forEach=function(i){this._entries.forEach(function(t,s){return i(s,t)})},o.prototype.has=function(i){return this._entries.has(i)},o.prototype.get=function(i){return this._entries.get(i)},o}();p.ServiceCollection=d;var u=function(){function o(){this._services=new d,this._services.set(m.IInstantiationService,this)}return o.prototype.setService=function(i,t){this._services.set(i,t)},o.prototype.getService=function(i){return this._services.get(i)},o.prototype.createInstance=function(i){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];for(var e=f.getServiceDependencies(i).sort(function(A,b){return A.index-b.index}),l=[],r=0,a=e;r<a.length;r++){var c=a[r],h=this._services.get(c.id);if(!h)throw new Error("[createInstance] "+i.name+" depends on UNKNOWN service "+c.id+".");l.push(h)}var g=e.length>0?e[0].index:t.length;if(t.length!==g)throw new Error("[createInstance] First service dependency of "+i.name+" at position "+(g+1)+" conflicts with "+t.length+" static arguments");return new(i.bind.apply(i,v([void 0],v(t,l))))},o}();p.InstantiationService=u},function(y,p,x){"use strict";var v=this&&this.__decorate||function(t,s,e,l){var r,a=arguments.length,c=a<3?s:l===null?l=Object.getOwnPropertyDescriptor(s,e):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(t,s,e,l);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(c=(a<3?r(c):a>3?r(s,e,c):r(s,e))||c);return a>3&&c&&Object.defineProperty(s,e,c),c},m=this&&this.__param||function(t,s){return function(e,l){s(e,l,t)}},f=this&&this.__spreadArrays||function(){for(var t=0,s=0,e=arguments.length;s<e;s++)t+=arguments[s].length;var l=Array(t),r=0;for(s=0;s<e;s++)for(var a=arguments[s],c=0,h=a.length;c<h;c++,r++)l[r]=a[c];return l};Object.defineProperty(p,"__esModule",{value:!0}),p.LogService=p.LogLevel=void 0;var d,u=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},i=function(){function t(s){var e=this;this._optionsService=s,this._updateLogLevel(),this._optionsService.onOptionChange(function(l){l==="logLevel"&&e._updateLogLevel()})}return t.prototype._updateLogLevel=function(){this._logLevel=o[this._optionsService.options.logLevel]},t.prototype._evalLazyOptionalParams=function(s){for(var e=0;e<s.length;e++)typeof s[e]=="function"&&(s[e]=s[e]())},t.prototype._log=function(s,e,l){this._evalLazyOptionalParams(l),s.call.apply(s,f([console,"xterm.js: "+e],l))},t.prototype.debug=function(s){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=d.DEBUG&&this._log(console.log,s,e)},t.prototype.info=function(s){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=d.INFO&&this._log(console.info,s,e)},t.prototype.warn=function(s){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=d.WARN&&this._log(console.warn,s,e)},t.prototype.error=function(s){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=d.ERROR&&this._log(console.error,s,e)},t=v([m(0,u.IOptionsService)],t)}();p.LogService=i},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var h in c)c.hasOwnProperty(h)&&(a[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)}),f=this&&this.__decorate||function(e,l,r,a){var c,h=arguments.length,g=h<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,a);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(g=(h<3?c(g):h>3?c(l,r,g):c(l,r))||g);return h>3&&g&&Object.defineProperty(l,r,g),g},d=this&&this.__param||function(e,l){return function(r,a){l(r,a,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.BufferService=p.MINIMUM_ROWS=p.MINIMUM_COLS=void 0;var u=x(1),o=x(69),i=x(0),t=x(2);p.MINIMUM_COLS=2,p.MINIMUM_ROWS=1;var s=function(e){function l(r){var a=e.call(this)||this;return a._optionsService=r,a.isUserScrolling=!1,a._onResize=new i.EventEmitter,a.cols=Math.max(r.options.cols,p.MINIMUM_COLS),a.rows=Math.max(r.options.rows,p.MINIMUM_ROWS),a.buffers=new o.BufferSet(r,a),a}return m(l,e),Object.defineProperty(l.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),l.prototype.dispose=function(){e.prototype.dispose.call(this),this.buffers.dispose()},l.prototype.resize=function(r,a){this.cols=r,this.rows=a,this.buffers.resize(r,a),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:r,rows:a})},l.prototype.reset=function(){this.buffers.dispose(),this.buffers=new o.BufferSet(this._optionsService,this),this.isUserScrolling=!1},l=f([d(0,u.IOptionsService)],l)}(t.Disposable);p.BufferService=s},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(i,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,e){s.__proto__=e}||function(s,e){for(var l in e)e.hasOwnProperty(l)&&(s[l]=e[l])})(i,t)},function(o,i){function t(){this.constructor=o}v(o,i),o.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)});Object.defineProperty(p,"__esModule",{value:!0}),p.BufferSet=void 0;var f=x(70),d=x(0),u=function(o){function i(t,s){var e=o.call(this)||this;return e._onBufferActivate=e.register(new d.EventEmitter),e._normal=new f.Buffer(!0,t,s),e._normal.fillViewportRows(),e._alt=new f.Buffer(!1,t,s),e._activeBuffer=e._normal,e.setupTabStops(),e}return m(i,o),Object.defineProperty(i.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),i.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},i.prototype.activateAltBuffer=function(t){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(t),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},i.prototype.resize=function(t,s){this._normal.resize(t,s),this._alt.resize(t,s)},i.prototype.setupTabStops=function(t){this._normal.setupTabStops(t),this._alt.setupTabStops(t)},i}(x(2).Disposable);p.BufferSet=u},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),u=x(72),o=x(73),i=x(20),t=x(6);p.MAX_BUFFER_SIZE=4294967295;var s=function(){function l(r,a,c){this._hasScrollback=r,this._optionsService=a,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=i.DEFAULT_CHARSET,this.markers=[],this._nullCell=f.CellData.fromCharData([0,d.NULL_CELL_CHAR,d.NULL_CELL_WIDTH,d.NULL_CELL_CODE]),this._whitespaceCell=f.CellData.fromCharData([0,d.WHITESPACE_CELL_CHAR,d.WHITESPACE_CELL_WIDTH,d.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new v.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return l.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},l.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},l.prototype.getBlankLine=function(r,a){return new m.BufferLine(this._bufferService.cols,this.getNullCell(r),a)},Object.defineProperty(l.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isCursorInViewport",{get:function(){var a=this.ybase+this.y-this.ydisp;return a>=0&&a<this._rows},enumerable:!1,configurable:!0}),l.prototype._getCorrectBufferLength=function(r){if(!this._hasScrollback)return r;var a=r+this._optionsService.options.scrollback;return a>p.MAX_BUFFER_SIZE?p.MAX_BUFFER_SIZE:a},l.prototype.fillViewportRows=function(r){if(this.lines.length===0){r===void 0&&(r=m.DEFAULT_ATTR_DATA);for(var a=this._rows;a--;)this.lines.push(this.getBlankLine(r))}},l.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()},l.prototype.resize=function(r,a){var c=this.getNullCell(m.DEFAULT_ATTR_DATA),h=this._getCorrectBufferLength(a);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<a)for(var b=this._rows;b<a;b++)this.lines.length<a+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>a;b--)this.lines.length>a+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(h<this.lines.maxLength){var S=this.lines.length-h;S>0&&(this.lines.trimStart(S),this.ybase=Math.max(this.ybase-S,0),this.ydisp=Math.max(this.ydisp-S,0),this.savedY=Math.max(this.savedY-S,0)),this.lines.maxLength=h}this.x=Math.min(this.x,r-1),this.y=Math.min(this.y,a-1),A&&(this.y+=A),this.savedX=Math.min(this.savedX,r-1),this.scrollTop=0}if(this.scrollBottom=a-1,this._isReflowEnabled&&(this._reflow(r,a),this._cols>r))for(g=0;g<this.lines.length;g++)this.lines.get(g).resize(r,c);this._cols=r,this._rows=a},Object.defineProperty(l.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),l.prototype._reflow=function(r,a){this._cols!==r&&(r>this._cols?this._reflowLarger(r,a):this._reflowSmaller(r,a))},l.prototype._reflowLarger=function(r,a){var c=u.reflowLargerGetLinesToRemove(this.lines,this._cols,r,this.ybase+this.y,this.getNullCell(m.DEFAULT_ATTR_DATA));if(c.length>0){var h=u.reflowLargerCreateNewLayout(this.lines,c);u.reflowLargerApplyNewLayout(this.lines,h.layout),this._reflowLargerAdjustViewport(r,a,h.countRemoved)}},l.prototype._reflowLargerAdjustViewport=function(r,a,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<a&&this.lines.push(new m.BufferLine(r,h))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-c,0)},l.prototype._reflowSmaller=function(r,a){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 S=[b];b.isWrapped&&A>0;)b=this.lines.get(--A),S.unshift(b);var E=this.ybase+this.y;if(!(E>=A&&E<A+S.length)){var C=S[S.length-1].getTrimmedLength(),_=u.reflowSmallerGetNewLineLengths(S,this._cols,r),T=_.length-S.length,w=void 0;w=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 R=this.getBlankLine(m.DEFAULT_ATTR_DATA,!0);O.push(R)}O.length>0&&(h.push({start:A+S.length+g,newLines:O}),g+=O.length),S.push.apply(S,O);var M=_.length-1,B=_[M];B===0&&(B=_[--M]);for(var P=S.length-T-1,X=C;P>=0;){var F=Math.min(X,B);if(S[M].copyCellsFrom(S[P],X-F,B-F,F,!0),(B-=F)===0&&(B=_[--M]),(X-=F)===0){P--;var j=Math.max(P,0);X=u.getWrappedLineTrimmedLength(S,j,this._cols)}}for(I=0;I<S.length;I++)_[I]<r&&S[I].setCell(_[I],c);for(var K=T-w;K-- >0;)this.ybase===0?this.y<a-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+g)-a&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+T,this.ybase+a-1)}}}if(h.length>0){var z=[],V=[];for(I=0;I<this.lines.length;I++)V.push(this.lines.get(I));var Q=this.lines.length,G=Q-1,te=0,q=h[te];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+g);var le=0;for(I=Math.min(this.lines.maxLength-1,Q+g-1);I>=0;I--)if(q&&q.start>G+le){for(var re=q.newLines.length-1;re>=0;re--)this.lines.set(I--,q.newLines[re]);I++,z.push({index:G+1,amount:q.newLines.length}),le+=q.newLines.length,q=h[++te]}else this.lines.set(I,V[G--]);var we=0;for(I=z.length-1;I>=0;I--)z[I].index+=we,this.lines.onInsertEmitter.fire(z[I]),we+=z[I].amount;var Ie=Math.max(0,Q+g-this.lines.maxLength);Ie>0&&this.lines.onTrimEmitter.fire(Ie)}},l.prototype.stringIndexToBufferIndex=function(r,a,c){for(c===void 0&&(c=!1);a;){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]&&(a-=h.get(A)[d.CHAR_DATA_CHAR_INDEX].length||1),a<0)return[r,A];r++}return[r,0]},l.prototype.translateBufferLineToString=function(r,a,c,h){c===void 0&&(c=0);var g=this.lines.get(r);return g?g.translateToString(a,c,h):""},l.prototype.getWrappedRangeForLine=function(r){for(var a=r,c=r;a>0&&this.lines.get(a).isWrapped;)a--;for(;c+1<this.lines.length&&this.lines.get(c+1).isWrapped;)c++;return{first:a,last:c}},l.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},l.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},l.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},l.prototype.addMarker=function(r){var a=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 a._removeMarker(c)})),c},l.prototype._removeMarker=function(r){this.markers.splice(this.markers.indexOf(r),1)},l.prototype.iterator=function(r,a,c,h,g){return new e(this,r,a,c,h,g)},l}();p.Buffer=s;var e=function(){function l(r,a,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=a,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 l.prototype.hasNext=function(){return this._current<this._endIndex},l.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 a="",c=r.first;c<=r.last;++c)a+=this._buffer.translateBufferLineToString(c,this._trimRight);return this._current=r.last+1,{range:r,content:a}},l}();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(u){if(this._maxLength!==u){for(var o=new Array(u),i=0;i<Math.min(u,this.length);i++)o[i]=this._array[this._getCyclicIndex(i)];this._array=o,this._maxLength=u,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"length",{get:function(){return this._length},set:function(u){if(u>this._length)for(var o=this._length;o<u;o++)this._array[o]=void 0;this._length=u},enumerable:!1,configurable:!0}),f.prototype.get=function(d){return this._array[this._getCyclicIndex(d)]},f.prototype.set=function(d,u){this._array[this._getCyclicIndex(d)]=u},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,u){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];if(u){for(var t=d;t<this._length-u;t++)this._array[this._getCyclicIndex(t)]=this._array[this._getCyclicIndex(t+u)];this._length-=u}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 s=this._length+o.length-this._maxLength;this._startIndex+=s,this._length=this._maxLength,this.onTrimEmitter.fire(s)}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,u,o){if(!(u<=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 i=u-1;i>=0;i--)this.set(d+i+o,this.get(d+i));var t=d+u+o-this._length;if(t>0)for(this._length+=t;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(i=0;i<u;i++)this.set(d+i+o,this.get(d+i))}},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 u=!m[f].hasContent(d-1)&&m[f].getWidth(d-1)===1,o=m[f+1].getWidth(0)===2;return u&&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,u,o){for(var i=[],t=0;t<m.length-1;t++){var s=t,e=m.get(++s);if(e.isWrapped){for(var l=[m.get(t)];s<m.length&&e.isWrapped;)l.push(e),e=m.get(++s);if(u>=t&&u<s)t+=l.length-1;else{for(var r=0,a=v(l,r,f),c=1,h=0;c<l.length;){var g=v(l,c,f),A=g-h,b=d-a,S=Math.min(A,b);l[r].copyCellsFrom(l[c],h,a,S,!1),(a+=S)===d&&(r++,a=0),(h+=S)===g&&(c++,h=0),a===0&&r!==0&&l[r-1].getWidth(d-1)===2&&(l[r].copyCellsFrom(l[r-1],d-1,a++,1,!1),l[r-1].setCell(d-1,o))}l[r].replaceCells(a,d,o);for(var E=0,C=l.length-1;C>0&&(C>r||l[C].getTrimmedLength()===0);C--)E++;E>0&&(i.push(t+l.length-E),i.push(E)),t+=l.length-1}}}return i},p.reflowLargerCreateNewLayout=function(m,f){for(var d=[],u=0,o=f[u],i=0,t=0;t<m.length;t++)if(o===t){var s=f[++u];m.onDeleteEmitter.fire({index:t-i,amount:s}),t+=s-1,i+=s,o=f[++u]}else d.push(t);return{layout:d,countRemoved:i}},p.reflowLargerApplyNewLayout=function(m,f){for(var d=[],u=0;u<f.length;u++)d.push(m.get(f[u]));for(u=0;u<d.length;u++)m.set(u,d[u]);m.length=f.length},p.reflowSmallerGetNewLineLengths=function(m,f,d){for(var u=[],o=m.map(function(a,c){return v(m,c,f)}).reduce(function(a,c){return a+c}),i=0,t=0,s=0;s<o;){if(o-s<d){u.push(o-s);break}i+=d;var e=v(m,t,f);i>e&&(i-=e,t++);var l=m[t].getWidth(i-1)===2;l&&i--;var r=l?d-1:d;u.push(r),s+=r}return u},p.getWrappedLineTrimmedLength=v},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(o,i){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,s){t.__proto__=s}||function(t,s){for(var e in s)s.hasOwnProperty(e)&&(t[e]=s[e])})(o,i)},function(u,o){function i(){this.constructor=u}v(u,o),u.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)});Object.defineProperty(p,"__esModule",{value:!0}),p.Marker=void 0;var f=x(0),d=function(u){function o(i){var t=u.call(this)||this;return t.line=i,t._id=o._nextId++,t.isDisposed=!1,t._onDispose=new f.EventEmitter,t}return m(o,u),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"],u=function(){function o(i){this._onOptionChange=new v.EventEmitter,this.options=f.clone(p.DEFAULT_OPTIONS);for(var t=0,s=Object.keys(i);t<s.length;t++){var e=s[t];if(e in this.options){var l=i[e];this.options[e]=l}}}return Object.defineProperty(o.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),o.prototype.setOption=function(i,t){if(!(i in p.DEFAULT_OPTIONS))throw new Error('No option with key "'+i+'"');if(d.indexOf(i)!==-1)throw new Error('Option "'+i+'" can only be set in the constructor');this.options[i]!==t&&(t=this._sanitizeAndValidateOption(i,t),this.options[i]!==t&&(this.options[i]=t,this._onOptionChange.fire(i)))},o.prototype._sanitizeAndValidateOption=function(i,t){switch(i){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":t||(t=p.DEFAULT_OPTIONS[i]);break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(i+" cannot be less than 1, value: "+t);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(10*t)/10));break;case"scrollback":if((t=Math.min(t,4294967295))<0)throw new Error(i+" cannot be less than 0, value: "+t);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(i+" cannot be less than or equal to 0, value: "+t)}return t},o.prototype.getOption=function(i){if(!(i in p.DEFAULT_OPTIONS))throw new Error('No option with key "'+i+'"');return this.options[i]},o}();p.OptionsService=u},function(y,p,x){"use strict";var v,m=this&&this.__extends||(v=function(a,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])})(a,c)},function(r,a){function c(){this.constructor=r}v(r,a),r.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}),f=this&&this.__decorate||function(r,a,c,h){var g,A=arguments.length,b=A<3?a:h===null?h=Object.getOwnPropertyDescriptor(a,c):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(r,a,c,h);else for(var S=r.length-1;S>=0;S--)(g=r[S])&&(b=(A<3?g(b):A>3?g(a,c,b):g(a,c))||b);return A>3&&b&&Object.defineProperty(a,c,b),b},d=this&&this.__param||function(r,a){return function(c,h){a(c,h,r)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CoreService=void 0;var u=x(1),o=x(0),i=x(33),t=x(2),s=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),l=function(r){function a(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=i.clone(s),b.decPrivateModes=i.clone(e),b}return m(a,r),Object.defineProperty(a.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),a.prototype.reset=function(){this.modes=i.clone(s),this.decPrivateModes=i.clone(e)},a.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)}},a.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))},a=f([d(1,u.IBufferService),d(2,u.ILogService),d(3,u.IOptionsService)],a)}(t.Disposable);p.CoreService=l},function(y,p,x){"use strict";var v=this&&this.__decorate||function(e,l,r,a){var c,h=arguments.length,g=h<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,a);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(g=(h<3?c(g):h>3?c(l,r,g):c(l,r))||g);return h>3&&g&&Object.defineProperty(l,r,g),g},m=this&&this.__param||function(e,l){return function(r,a){l(r,a,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CoreMouseService=void 0;var f=x(1),d=x(0),u={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(l){return l.button!==4&&l.action===1&&(l.ctrl=!1,l.alt=!1,l.shift=!1,!0)}},VT200:{events:19,restrict:function(l){return l.action!==32}},DRAG:{events:23,restrict:function(l){return l.action!==32||l.button!==3}},ANY:{events:31,restrict:function(l){return!0}}};function o(e,l){var 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||l||(r|=3)),r}var i=String.fromCharCode,t={DEFAULT:function(l){var r=[o(l,!1)+32,l.col+32,l.row+32];return r[0]>255||r[1]>255||r[2]>255?"":""+i(r[0])+i(r[1])+i(r[2])},SGR:function(l){var r=l.action===0&&l.button!==4?"m":"M";return"[<"+o(l,!0)+";"+l.col+";"+l.row+r}},s=function(){function e(l,r){this._bufferService=l,this._coreService=r,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new d.EventEmitter,this._lastEvent=null;for(var a=0,c=Object.keys(u);a<c.length;a++){var h=c[a];this.addProtocol(h,u[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(l,r){this._protocols[l]=r},e.prototype.addEncoding=function(l,r){this._encodings[l]=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(l){if(l.col<0||l.col>=this._bufferService.cols||l.row<0||l.row>=this._bufferService.rows)return!1;if(l.button===4&&l.action===32)return!1;if(l.button===3&&l.action!==32)return!1;if(l.button!==4&&(l.action===2||l.action===3))return!1;if(l.col++,l.row++,l.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,l))return!1;if(!this._protocols[this._activeProtocol].restrict(l))return!1;var r=this._encodings[this._activeEncoding](l);return r&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(r):this._coreService.triggerDataEvent(r,!0)),this._lastEvent=l,!0},e.prototype.explainEvents=function(l){return{down:!!(1&l),up:!!(2&l),drag:!!(4&l),move:!!(8&l),wheel:!!(16&l)}},e.prototype._compareEvents=function(l,r){return l.col===r.col&&l.row===r.row&&l.button===r.button&&l.action===r.action&&l.ctrl===r.ctrl&&l.alt===r.alt&&l.shift===r.shift},e=v([m(0,f.IBufferService),m(1,f.ICoreService)],e)}();p.CoreMouseService=s},function(y,p,x){"use strict";var v=this&&this.__decorate||function(u,o,i,t){var s,e=arguments.length,l=e<3?o:t===null?t=Object.getOwnPropertyDescriptor(o,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(u,o,i,t);else for(var r=u.length-1;r>=0;r--)(s=u[r])&&(l=(e<3?s(l):e>3?s(o,i,l):s(o,i))||l);return e>3&&l&&Object.defineProperty(o,i,l),l},m=this&&this.__param||function(u,o){return function(i,t){o(i,t,u)}};Object.defineProperty(p,"__esModule",{value:!0}),p.DirtyRowService=void 0;var f=x(1),d=function(){function u(o){this._bufferService=o,this.clearRange()}return Object.defineProperty(u.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),u.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},u.prototype.markDirty=function(o){o<this._start?this._start=o:o>this._end&&(this._end=o)},u.prototype.markRangeDirty=function(o,i){if(o>i){var t=o;o=i,i=t}o<this._start&&(this._start=o),i>this._end&&(this._end=i)},u.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},u=v([m(0,f.IBufferService)],u)}();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 u=new m.UnicodeV6;this.register(u),this._active=u.version,this._activeProvider=u}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(u){this._providers[u.version]=u},d.prototype.wcwidth=function(u){return this._activeProvider.wcwidth(u)},d.prototype.getStringCellWidth=function(u){for(var o=0,i=u.length,t=0;t<i;++t){var s=u.charCodeAt(t);if(55296<=s&&s<=56319){if(++t>=i)return o+this.wcwidth(s);var e=u.charCodeAt(t);56320<=e&&e<=57343?s=1024*(s-55296)+e-56320+65536:o+=this.wcwidth(e)}o+=this.wcwidth(s)}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]],u=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 i=0;i<f.length;++i)m.fill(v,0,f[i][0],f[i][1]+1)}}return o.prototype.wcwidth=function(i){return i<32?0:i<127?1:i<65536?v[i]:function(t,s){var e,l=0,r=s.length-1;if(t<s[0][0]||t>s[r][1])return!1;for(;r>=l;)if(t>s[e=l+r>>1][1])l=e+1;else{if(!(t<s[e][0]))return!0;r=e-1}return!1}(i,d)?0:i>=131072&&i<=196605||i>=196608&&i<=262141?2:1},o}();p.UnicodeV6=u},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),u=m.buffer.lines.get(m.buffer.ybase+m.buffer.y);u&&d&&(u.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 u=this._writeBuffer[d],o=this._callbacks[d];this._action(u),o&&o()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(f)},m.prototype.write=function(f,d){var u=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 u._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 u=this._writeBuffer[this._bufferOffset],o=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(u),this._pendingData-=u.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 u=this,o={instance:d,dispose:d.dispose,isDisposed:!1};this._addons.push(o),d.dispose=function(){return u._wrappedAddonDispose(o)},d.activate(f)},m.prototype._wrappedAddonDispose=function(f){if(!f.isDisposed){for(var d=-1,u=0;u<this._addons.length;u++)if(this._addons[u]===f){d=u;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(k,D,n){var y=n("knOB"),p=n("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,u=this._radiusAxis;return d.scale.type===m&&f.push(d),u.scale.type===m&&f.push(u),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,u=this.getAngleAxis(),o=u.getExtent(),i=Math.min(o[0],o[1]),t=Math.max(o[0],o[1]);u.inverse?i=t-360:t=i+360;var s=Math.sqrt(f*f+d*d);f/=s,d/=s;for(var e=Math.atan2(-d,f)/Math.PI*180,l=e<i?1:-1;e<i||e>t;)e+=l*360;return[s,e]},coordToPoint:function(m){var f=m[0],d=m[1]/180*Math.PI,u=Math.cos(d)*f+this.cx,o=-Math.sin(d)*f+this.cy;return[u,o]},getArea:function(){var m=this.getAngleAxis(),f=this.getRadiusAxis(),d=f.getExtent().slice();d[0]>d[1]&&d.reverse();var u=m.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:d[0],r:d[1],startAngle:-u[0]*o,endAngle:-u[1]*o,clockwise:m.inverse,contain:function(i,t){var s=i-this.cx,e=t-this.cy,l=s*s+e*e,r=this.r,a=this.r0;return l<=r*r&&l>=a*a}}}};var v=x;k.exports=v},"/WM3":function(k,D,n){var y=n("QuXc"),p=n("bYtY"),x=p.isFunction,v={createOnAllSeries:!0,performRawSeries:!0,reset:function(m,f){var d=m.getData(),u=(m.visualColorAccessPath||"itemStyle.color").split("."),o=m.get(u),i=x(o)&&!(o instanceof y)?o:null;(!o||i)&&(o=m.getColorFromPalette(m.name,null,f.getSeriesCount())),d.setVisual("color",o);var t=(m.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),s=m.get(t);if(d.setVisual("borderColor",s),!f.isSeriesFiltered(m)){i&&d.each(function(l){d.setItemVisual(l,"color",i(m.getDataParams(l)))});var e=function(l,r){var a=l.getItemModel(r),c=a.get(u,!0),h=a.get(t,!0);c!=null&&l.setItemVisual(r,"color",c),h!=null&&l.setItemVisual(r,"borderColor",h)};return{dataEach:d.hasItemOption?e:null}}}};k.exports=v},"/d5a":function(k,D){var n={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(),u=v.get("sampling"),o=v.coordinateSystem;if(o.type==="cartesian2d"&&u){var i=o.getBaseAxis(),t=o.getOtherAxis(i),s=i.getExtent(),e=s[1]-s[0],l=Math.round(d.count()/e);if(l>1){var r;typeof u=="string"?r=n[u]:typeof u=="function"&&(r=u),r&&v.setData(d.downSample(d.mapDimension(t.dim),1/l,r,y))}}}}}k.exports=p},"/ezw":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),v=n.n(x),m=n("cDf5"),f=n.n(m),d=n("q1tI"),u=n("TSYQ"),o=n.n(u),i=function(K){var z=K.prefixCls,V=K.className,Q=K.width,G=K.style;return d.createElement("h3",{className:o()(z,V),style:v()({width:Q},G)})},t=i,s=n("RIqP"),e=n.n(s),l=function(K){var z=function(re){var we=K.width,Ie=K.rows,Me=Ie===void 0?2:Ie;return Array.isArray(we)?we[re]:Me-1===re?we:void 0},V=K.prefixCls,Q=K.className,G=K.style,te=K.rows,q=e()(Array(te)).map(function(le,re){return d.createElement("li",{key:re,style:{width:z(re)}})});return d.createElement("ul",{className:o()(V,Q),style:G},q)},r=l,a=n("H84U"),c=function(K){var z,V,Q=K.prefixCls,G=K.className,te=K.style,q=K.size,le=K.shape,re=o()((z={},p()(z,"".concat(Q,"-lg"),q==="large"),p()(z,"".concat(Q,"-sm"),q==="small"),z)),we=o()((V={},p()(V,"".concat(Q,"-circle"),le==="circle"),p()(V,"".concat(Q,"-square"),le==="square"),p()(V,"".concat(Q,"-round"),le==="round"),V)),Ie=typeof q=="number"?{width:q,height:q,lineHeight:"".concat(q,"px")}:{};return d.createElement("span",{className:o()(Q,G,re,we),style:v()(v()({},Ie),te)})},h=c,g=n("BGR+"),A=function(K){var z=function(Q){var G=Q.getPrefixCls,te=K.prefixCls,q=K.className,le=K.active,re=G("skeleton",te),we=Object(g.default)(K,["prefixCls"]),Ie=o()(re,q,"".concat(re,"-element"),p()({},"".concat(re,"-active"),le));return d.createElement("div",{className:Ie},d.createElement(h,v()({prefixCls:"".concat(re,"-avatar")},we)))};return d.createElement(a.a,null,z)};A.defaultProps={size:"default",shape:"circle"};var b=A,S=function(K){var z=function(Q){var G=Q.getPrefixCls,te=K.prefixCls,q=K.className,le=K.active,re=G("skeleton",te),we=Object(g.default)(K,["prefixCls"]),Ie=o()(re,q,"".concat(re,"-element"),p()({},"".concat(re,"-active"),le));return d.createElement("div",{className:Ie},d.createElement(h,v()({prefixCls:"".concat(re,"-button")},we)))};return d.createElement(a.a,null,z)};S.defaultProps={size:"default"};var E=S,C=function(K){var z=function(Q){var G=Q.getPrefixCls,te=K.prefixCls,q=K.className,le=K.active,re=G("skeleton",te),we=Object(g.default)(K,["prefixCls"]),Ie=o()(re,q,"".concat(re,"-element"),p()({},"".concat(re,"-active"),le));return d.createElement("div",{className:Ie},d.createElement(h,v()({prefixCls:"".concat(re,"-input")},we)))};return d.createElement(a.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",w=function(K){var z=function(Q){var G=Q.getPrefixCls,te=K.prefixCls,q=K.className,le=K.style,re=G("skeleton",te),we=o()(re,q,"".concat(re,"-element"));return d.createElement("div",{className:we},d.createElement("div",{className:o()("".concat(re,"-image"),q),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(a.a,null,z)},O=w;function I(j){return j&&f()(j)==="object"?j:{}}function R(j,K){return j&&!K?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function M(j,K){return!j&&K?{width:"38%"}:j&&K?{width:"50%"}:{}}function B(j,K){var z={};return(!j||!K)&&(z.width="61%"),!j&&K?z.rows=3:z.rows=2,z}var P=function(K){var z=function(Q){var G=Q.getPrefixCls,te=Q.direction,q=K.prefixCls,le=K.loading,re=K.className,we=K.children,Ie=K.avatar,Me=K.title,Je=K.paragraph,Ve=K.active,ut=K.round,Fe=G("skeleton",q);if(le||!("loading"in K)){var ae,at=!!Ie,he=!!Me,J=!!Je,Y;if(at){var $=v()(v()({prefixCls:"".concat(Fe,"-avatar")},R(he,J)),I(Ie));Y=d.createElement("div",{className:"".concat(Fe,"-header")},d.createElement(h,$))}var de;if(he||J){var be;if(he){var Ce=v()(v()({prefixCls:"".concat(Fe,"-title")},M(at,J)),I(Me));be=d.createElement(t,Ce)}var Be;if(J){var fe=v()(v()({prefixCls:"".concat(Fe,"-paragraph")},B(at,he)),I(Je));Be=d.createElement(r,fe)}de=d.createElement("div",{className:"".concat(Fe,"-content")},be,Be)}var Se=o()(Fe,re,(ae={},p()(ae,"".concat(Fe,"-with-avatar"),at),p()(ae,"".concat(Fe,"-active"),Ve),p()(ae,"".concat(Fe,"-rtl"),te==="rtl"),p()(ae,"".concat(Fe,"-round"),ut),ae));return d.createElement("div",{className:Se},Y,de)}return we};return d.createElement(a.a,null,z)};P.defaultProps={avatar:!1,title:!0,paragraph:!0},P.Button=E,P.Avatar=b,P.Input=_,P.Image=O;var X=P,F=D.a=X},"/iHx":function(k,D,n){var y=n("6GrX"),p=n("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"))}};k.exports=v},"/qDX":function(k,D,n){},"/ry/":function(k,D,n){var y=n("bYtY"),p=n("T4UG"),x=n("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;k.exports=f},"/stD":function(k,D,n){var y=n("bYtY"),p=n("IUWy"),x=n("Kagy"),v=x.toolbox.brush;function m(u,o,i){this.model=u,this.ecModel=o,this.api=i,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(u,o,i){var t,s,e;o.eachComponent({mainType:"brush"},function(l){t=l.brushType,s=l.brushOption.brushMode||"single",e|=l.areas.length}),this._brushType=t,this._brushMode=s,y.each(u.get("type",!0),function(l){u.setIconStatus(l,(l==="keep"?s==="multiple":l==="clear"?e:l===t)?"emphasis":"normal")})},f.getIcons=function(){var u=this.model,o=u.get("icon",!0),i={};return y.each(u.get("type",!0),function(t){o[t]&&(i[t]=o[t])}),i},f.onclick=function(u,o,i){var t=this._brushType,s=this._brushMode;i==="clear"?(o.dispatchAction({type:"axisAreaSelect",intervals:[]}),o.dispatchAction({type:"brush",command:"clear",areas:[]})):o.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?t:t===i?!1:i,brushMode:i==="keep"?s==="multiple"?"single":"multiple":s}})},p.register("brush",m);var d=m;k.exports=d},"/thR":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("YCuv")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="EnterOutlined";var i=v.forwardRef(o);D.default=i},"/wGt":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),v=n.n(x),m=n("lwsE"),f=n.n(m),d=n("W8MJ"),u=n.n(d),o=n("PJYZ"),i=n.n(o),t=n("7W2i"),s=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),a=n("Ff2n"),c=n("1OyB"),h=n("vuIU"),g=n("Ji7U"),A=n("md7G"),b=n("foSv"),S=n("1W/9"),E=n("rePB"),C=n("JX7q"),_=n("TSYQ"),T=n.n(_),w=n("qx4F"),O=n("4IlW");function I(be){return Array.isArray(be)?be:[be]}var R={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},M=Object.keys(R).filter(function(be){if(typeof document=="undefined")return!1;var Ce=document.getElementsByTagName("html")[0];return be in(Ce?Ce.style:{})})[0],B=R[M];function P(be,Ce,Be,fe){be.addEventListener?be.addEventListener(Ce,Be,fe):be.attachEvent&&be.attachEvent("on".concat(Ce),Be)}function X(be,Ce,Be,fe){be.removeEventListener?be.removeEventListener(Ce,Be,fe):be.attachEvent&&be.detachEvent("on".concat(Ce),Be)}function F(be,Ce){var Be=typeof be=="function"?be(Ce):be;return Array.isArray(Be)?Be.length===2?Be:[Be[0],Be[1]]:[Be]}var j=function(Ce){return!isNaN(parseFloat(Ce))&&isFinite(Ce)},K=!(typeof window!="undefined"&&window.document&&window.document.createElement),z=function be(Ce,Be,fe,Se){if(!Be||Be===document||Be instanceof Document)return!1;if(Be===Ce.parentNode)return!0;var ke=Math.max(Math.abs(fe),Math.abs(Se))===Math.abs(Se),rt=Math.max(Math.abs(fe),Math.abs(Se))===Math.abs(fe),xt=Be.scrollHeight-Be.clientHeight,ht=Be.scrollWidth-Be.clientWidth,He=document.defaultView.getComputedStyle(Be),ir=He.overflowY==="auto"||He.overflowY==="scroll",ct=He.overflowX==="auto"||He.overflowX==="scroll",Xt=xt&&ir,hr=ht&&ct;return ke&&(!Xt||Xt&&(Be.scrollTop>=xt&&Se<0||Be.scrollTop<=0&&Se>0))||rt&&(!hr||hr&&(Be.scrollLeft>=ht&&fe<0||Be.scrollLeft<=0&&fe>0))?be(Ce,Be.parentNode,fe,Se):!1};function V(be){var Ce=Q();return function(){var fe=Object(b.a)(be),Se;if(Ce){var ke=Object(b.a)(this).constructor;Se=Reflect.construct(fe,arguments,ke)}else Se=fe.apply(this,arguments);return Object(A.a)(this,Se)}}function Q(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(be){return!1}}var G={},te=function(be){Object(g.a)(Be,be);var Ce=V(Be);function Be(fe){var Se;return Object(c.a)(this,Be),Se=Ce.call(this,fe),Se.domFocus=function(){Se.dom&&Se.dom.focus()},Se.removeStartHandler=function(ke){if(ke.touches.length>1)return;Se.startPos={x:ke.touches[0].clientX,y:ke.touches[0].clientY}},Se.removeMoveHandler=function(ke){if(ke.changedTouches.length>1)return;var rt=ke.currentTarget,xt=ke.changedTouches[0].clientX-Se.startPos.x,ht=ke.changedTouches[0].clientY-Se.startPos.y;(rt===Se.maskDom||rt===Se.handlerDom||rt===Se.contentDom&&z(rt,ke.target,xt,ht))&&ke.cancelable&&ke.preventDefault()},Se.transitionEnd=function(ke){var rt=ke.target;X(rt,B,Se.transitionEnd),rt.style.transition=""},Se.onKeyDown=function(ke){if(ke.keyCode===O.a.ESC){var rt=Se.props.onClose;ke.stopPropagation(),rt&&rt(ke)}},Se.onWrapperTransitionEnd=function(ke){var rt=Se.props,xt=rt.open,ht=rt.afterVisibleChange;ke.target===Se.contentWrapper&&ke.propertyName.match(/transform$/)&&(Se.dom.style.transition="",!xt&&Se.getCurrentDrawerSome()&&(document.body.style.overflowX="",Se.maskDom&&(Se.maskDom.style.left="",Se.maskDom.style.width="")),ht&&ht(!!xt))},Se.openLevelTransition=function(){var ke=Se.props,rt=ke.open,xt=ke.width,ht=ke.height,He=Se.getHorizontalBoolAndPlacementName(),ir=He.isHorizontal,ct=He.placementName,Xt=Se.contentDom?Se.contentDom.getBoundingClientRect()[ir?"width":"height"]:0,hr=(ir?xt:ht)||Xt;Se.setLevelAndScrolling(rt,ct,hr)},Se.setLevelTransform=function(ke,rt,xt,ht){var He=Se.props,ir=He.placement,ct=He.levelMove,Xt=He.duration,hr=He.ease,Jt=He.showMask;Se.levelDom.forEach(function(Pt){Pt.style.transition="transform ".concat(Xt," ").concat(hr),P(Pt,B,Se.transitionEnd);var Wt=ke?xt:0;if(ct){var Ge=F(ct,{target:Pt,open:ke});Wt=ke?Ge[0]:Ge[1]||0}var pe=typeof Wt=="number"?"".concat(Wt,"px"):Wt,se=ir==="left"||ir==="top"?pe:"-".concat(pe);se=Jt&&ir==="right"&&ht?"calc(".concat(se," + ").concat(ht,"px)"):se,Pt.style.transform=Wt?"".concat(rt,"(").concat(se,")"):""})},Se.setLevelAndScrolling=function(ke,rt,xt){var ht=Se.props.onChange;if(!K){var He=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(w.a)(!0):0;Se.setLevelTransform(ke,rt,xt,He),Se.toggleScrollingToDrawerAndBody(He)}ht&&ht(ke)},Se.toggleScrollingToDrawerAndBody=function(ke){var rt=Se.props,xt=rt.getOpenCount,ht=rt.getContainer,He=rt.showMask,ir=rt.open,ct=ht&&ht(),Xt=xt&&xt();if(ct&&ct.parentNode===document.body&&He){var hr=["touchstart"],Jt=[document.body,Se.maskDom,Se.handlerDom,Se.contentDom];ir&&document.body.style.overflow!=="hidden"?(ke&&Se.addScrollingEffect(ke),Xt===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",Jt.forEach(function(Pt,Wt){if(!Pt)return;P(Pt,hr[Wt]||"touchmove",Wt?Se.removeMoveHandler:Se.removeStartHandler,Se.passive)})):Se.getCurrentDrawerSome()&&(Xt||(document.body.style.overflow=""),document.body.style.touchAction="",ke&&Se.remScrollingEffect(ke),Jt.forEach(function(Pt,Wt){if(!Pt)return;X(Pt,hr[Wt]||"touchmove",Wt?Se.removeMoveHandler:Se.removeStartHandler,Se.passive)}))}},Se.addScrollingEffect=function(ke){var rt=Se.props,xt=rt.placement,ht=rt.duration,He=rt.ease,ir=rt.getOpenCount,ct=rt.switchScrollingEffect,Xt=ir&&ir();Xt===1&&ct();var hr="width ".concat(ht," ").concat(He),Jt="transform ".concat(ht," ").concat(He);Se.dom.style.transition="none";switch(xt){case"right":Se.dom.style.transform="translateX(-".concat(ke,"px)");break;case"top":case"bottom":Se.dom.style.width="calc(100% - ".concat(ke,"px)"),Se.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(Se.timeout),Se.timeout=setTimeout(function(){Se.dom&&(Se.dom.style.transition="".concat(Jt,",").concat(hr),Se.dom.style.width="",Se.dom.style.transform="")})},Se.remScrollingEffect=function(ke){var rt=Se.props,xt=rt.placement,ht=rt.duration,He=rt.ease,ir=rt.getOpenCount,ct=rt.switchScrollingEffect,Xt=ir&&ir();Xt||ct(!0),M&&(document.body.style.overflowX="hidden"),Se.dom.style.transition="none";var hr,Jt="width ".concat(ht," ").concat(He),Pt="transform ".concat(ht," ").concat(He);switch(xt){case"left":{Se.dom.style.width="100%",Jt="width 0s ".concat(He," ").concat(ht);break}case"right":{Se.dom.style.transform="translateX(".concat(ke,"px)"),Se.dom.style.width="100%",Jt="width 0s ".concat(He," ").concat(ht),Se.maskDom&&(Se.maskDom.style.left="-".concat(ke,"px"),Se.maskDom.style.width="calc(100% + ".concat(ke,"px)"));break}case"top":case"bottom":{Se.dom.style.width="calc(100% + ".concat(ke,"px)"),Se.dom.style.height="100%",Se.dom.style.transform="translateZ(0)",hr="height 0s ".concat(He," ").concat(ht);break}default:break}clearTimeout(Se.timeout),Se.timeout=setTimeout(function(){Se.dom&&(Se.dom.style.transition="".concat(Pt,",").concat(hr?"".concat(hr,","):"").concat(Jt),Se.dom.style.transform="",Se.dom.style.width="",Se.dom.style.height="")})},Se.getCurrentDrawerSome=function(){return!Object.keys(G).some(function(ke){return G[ke]})},Se.getLevelDom=function(ke){var rt=ke.level,xt=ke.getContainer;if(K)return;var ht=xt&&xt(),He=ht?ht.parentNode:null;if(Se.levelDom=[],rt==="all"){var ir=He?Array.prototype.slice.call(He.children):[];ir.forEach(function(ct){ct.nodeName!=="SCRIPT"&&ct.nodeName!=="STYLE"&&ct.nodeName!=="LINK"&&ct!==ht&&Se.levelDom.push(ct)})}else rt&&I(rt).forEach(function(ct){document.querySelectorAll(ct).forEach(function(Xt){Se.levelDom.push(Xt)})})},Se.getHorizontalBoolAndPlacementName=function(){var ke=Se.props.placement,rt=ke==="left"||ke==="right",xt="translate".concat(rt?"X":"Y");return{isHorizontal:rt,placementName:xt}},Se.state={_self:Object(C.a)(Se)},Se}return Object(h.a)(Be,[{key:"componentDidMount",value:function(){var Se=this;if(!K){var ke=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return ke=!0,null}}))}catch(ir){}this.passive=ke?{passive:!1}:!1}var rt=this.props,xt=rt.open,ht=rt.getContainer,He=ht&&ht();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),xt&&(He&&He.parentNode===document.body&&(G[this.drawerId]=xt),this.openLevelTransition(),this.forceUpdate(function(){Se.domFocus()}))}},{key:"componentDidUpdate",value:function(Se){var ke=this.props,rt=ke.open,xt=ke.getContainer,ht=xt&&xt();rt!==Se.open&&(rt&&this.domFocus(),ht&&ht.parentNode===document.body&&(G[this.drawerId]=!!rt),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var Se=this.props,ke=Se.getOpenCount,rt=Se.open,xt=Se.switchScrollingEffect,ht=typeof ke=="function"&&ke();delete G[this.drawerId],rt&&(this.setLevelTransform(!1),document.body.style.touchAction=""),ht||(document.body.style.overflow="",xt(!0))}},{key:"render",value:function(){var Se,ke=this,rt=this.props,xt=rt.className,ht=rt.children,He=rt.style,ir=rt.width,ct=rt.height,Xt=rt.defaultOpen,hr=rt.open,Jt=rt.prefixCls,Pt=rt.placement,Wt=rt.level,Ge=rt.levelMove,pe=rt.ease,se=rt.duration,lt=rt.getContainer,qe=rt.handler,me=rt.onChange,Ht=rt.afterVisibleChange,yr=rt.showMask,At=rt.maskClosable,rr=rt.maskStyle,ur=rt.onClose,vn=rt.onHandleClick,Bt=rt.keyboard,sr=rt.getOpenCount,Yt=rt.switchScrollingEffect,pt=Object(a.a)(rt,["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"]),it=this.dom?hr:!1,Fr=T()(Jt,(Se={},Object(E.a)(Se,"".concat(Jt,"-").concat(Pt),!0),Object(E.a)(Se,"".concat(Jt,"-open"),it),Object(E.a)(Se,xt||"",!!xt),Object(E.a)(Se,"no-mask",!yr),Se)),cn=this.getHorizontalBoolAndPlacementName(),_n=cn.placementName,Kn=Pt==="left"||Pt==="top"?"-100%":"100%",gi=it?"":"".concat(_n,"(").concat(Kn,")"),Mn=qe&&r.cloneElement(qe,{onClick:function($t){qe.props.onClick&&qe.props.onClick(),vn&&vn($t)},ref:function($t){ke.handlerDom=$t}});return r.createElement("div",Object.assign({},pt,{tabIndex:-1,className:Fr,style:He,ref:function($t){ke.dom=$t},onKeyDown:it&&Bt?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),yr&&r.createElement("div",{className:"".concat(Jt,"-mask"),onClick:At?ur:void 0,style:rr,ref:function($t){ke.maskDom=$t}}),r.createElement("div",{className:"".concat(Jt,"-content-wrapper"),style:{transform:gi,msTransform:gi,width:j(ir)?"".concat(ir,"px"):ir,height:j(ct)?"".concat(ct,"px"):ct},ref:function($t){ke.contentWrapper=$t}},r.createElement("div",{className:"".concat(Jt,"-content"),ref:function($t){ke.contentDom=$t},onTouchStart:it&&yr?this.removeStartHandler:void 0,onTouchMove:it&&yr?this.removeMoveHandler:void 0},ht),Mn))}}],[{key:"getDerivedStateFromProps",value:function(Se,ke){var rt=ke.prevProps,xt=ke._self,ht={prevProps:Se};if(rt!==void 0){var He=Se.placement,ir=Se.level;He!==rt.placement&&(xt.contentDom=null),ir!==rt.level&&xt.getLevelDom(Se)}return ht}}]),Be}(r.Component);te.defaultProps={switchScrollingEffect:function(){}};var q=te;function le(be){var Ce=re();return function(){var fe=Object(b.a)(be),Se;if(Ce){var ke=Object(b.a)(this).constructor;Se=Reflect.construct(fe,arguments,ke)}else Se=fe.apply(this,arguments);return Object(A.a)(this,Se)}}function re(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(be){return!1}}var we=function(be){Object(g.a)(Be,be);var Ce=le(Be);function Be(fe){var Se;Object(c.a)(this,Be),Se=Ce.call(this,fe),Se.onHandleClick=function(rt){var xt=Se.props,ht=xt.onHandleClick,He=xt.open;if(ht&&ht(rt),typeof He=="undefined"){var ir=Se.state.open;Se.setState({open:!ir})}},Se.onClose=function(rt){var xt=Se.props,ht=xt.onClose,He=xt.open;ht&&ht(rt),typeof He=="undefined"&&Se.setState({open:!1})};var ke=typeof fe.open!="undefined"?fe.open:!!fe.defaultOpen;return Se.state={open:ke},"onMaskClick"in fe&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),Se}return Object(h.a)(Be,[{key:"render",value:function(){var Se=this,ke=this.props,rt=ke.defaultOpen,xt=ke.getContainer,ht=ke.wrapperClassName,He=ke.forceRender,ir=ke.handler,ct=Object(a.a)(ke,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),Xt=this.state.open;if(!xt)return r.createElement("div",{className:ht,ref:function(Pt){Se.dom=Pt}},r.createElement(q,Object.assign({},ct,{open:Xt,handler:ir,getContainer:function(){return Se.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var hr=!!ir||He;return r.createElement(S.a,{visible:Xt,forceRender:hr,getContainer:xt,wrapperClassName:ht},function(Jt){var Pt=Jt.visible,Wt=Jt.afterClose,Ge=Object(a.a)(Jt,["visible","afterClose"]);return r.createElement(q,Object.assign({},ct,Ge,{open:Pt!==void 0?Pt:Xt,afterVisibleChange:Wt!==void 0?Wt:ct.afterVisibleChange,handler:ir,onClose:Se.onClose,onHandleClick:Se.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(Se,ke){var rt=ke.prevProps,xt={prevProps:Se};return typeof rt!="undefined"&&Se.open!==rt.open&&(xt.open=Se.open),xt}}]),Be}(r.Component);we.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:r.createElement("div",{className:"drawer-handle"},r.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var Ie=we,Me=Ie,Je=n("V/uB"),Ve=n.n(Je),ut=n("BGR+"),Fe=n("H84U"),ae=n("CWQg"),at=function(be,Ce){var Be={};for(var fe in be)Object.prototype.hasOwnProperty.call(be,fe)&&Ce.indexOf(fe)<0&&(Be[fe]=be[fe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,fe=Object.getOwnPropertySymbols(be);Se<fe.length;Se++)Ce.indexOf(fe[Se])<0&&Object.prototype.propertyIsEnumerable.call(be,fe[Se])&&(Be[fe[Se]]=be[fe[Se]]);return Be},he=r.createContext(null),J=Object(ae.a)("top","right","bottom","left"),Y={distance:180},$=function(be){s()(Be,be);var Ce=l()(Be);function Be(){var fe;return f()(this,Be),fe=Ce.apply(this,arguments),fe.state={push:!1},fe.push=function(){fe.props.push&&fe.setState({push:!0})},fe.pull=function(){fe.props.push&&fe.setState({push:!1})},fe.onDestroyTransitionEnd=function(){var Se=fe.getDestroyOnClose();if(!Se)return;fe.props.visible||(fe.destroyClose=!0,fe.forceUpdate())},fe.getDestroyOnClose=function(){return fe.props.destroyOnClose&&!fe.props.visible},fe.getPushDistance=function(){var Se=fe.props.push,ke;return typeof Se=="boolean"?ke=Se?Y.distance:0:ke=Se.distance,parseFloat(String(ke||0))},fe.getPushTransform=function(Se){var ke=fe.getPushDistance();if(Se==="left"||Se==="right")return"translateX(".concat(Se==="left"?ke:-ke,"px)");if(Se==="top"||Se==="bottom")return"translateY(".concat(Se==="top"?ke:-ke,"px)")},fe.getRcDrawerStyle=function(){var Se=fe.props,ke=Se.zIndex,rt=Se.placement,xt=Se.mask,ht=Se.style,He=fe.state.push,ir=xt?{}:fe.getOffsetStyle();return v()(v()({zIndex:ke,transform:He?fe.getPushTransform(rt):void 0},ir),ht)},fe.renderBody=function(){var Se=fe.props,ke=Se.bodyStyle,rt=Se.drawerStyle,xt=Se.prefixCls,ht=Se.visible;if(fe.destroyClose&&!ht)return null;fe.destroyClose=!1;var He={},ir=fe.getDestroyOnClose();return ir&&(He.opacity=0,He.transition="opacity .3s"),r.createElement("div",{className:"".concat(xt,"-wrapper-body"),style:v()(v()({},He),rt),onTransitionEnd:fe.onDestroyTransitionEnd},fe.renderHeader(),r.createElement("div",{className:"".concat(xt,"-body"),style:ke},fe.props.children),fe.renderFooter())},fe.renderProvider=function(Se){return fe.parentDrawer=Se,r.createElement(Fe.a,null,function(ke){var rt=ke.getPopupContainer,xt=ke.getPrefixCls,ht=fe.props,He=ht.prefixCls,ir=ht.placement,ct=ht.className,Xt=ht.mask,hr=ht.direction,Jt=ht.visible,Pt=at(ht,["prefixCls","placement","className","mask","direction","visible"]),Wt=xt("select",He),Ge=T()(ct,p()({"no-mask":!Xt},"".concat(Wt,"-rtl"),hr==="rtl")),pe=Xt?fe.getOffsetStyle():{};return r.createElement(he.Provider,{value:i()(fe)},r.createElement(Me,v()({handler:!1},Object(ut.default)(Pt,["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:Pt.getContainer===void 0&&rt?function(){return rt(document.body)}:Pt.getContainer},pe,{prefixCls:Wt,open:Jt,showMask:Xt,placement:ir,style:fe.getRcDrawerStyle(),className:Ge}),fe.renderBody()))})},fe}return u()(Be,[{key:"componentDidMount",value:function(){var Se=this.props.visible;Se&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(Se){var ke=this.props.visible;Se.visible!==ke&&this.parentDrawer&&(ke?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"getOffsetStyle",value:function(){var Se=this.props,ke=Se.placement,rt=Se.width,xt=Se.height,ht=Se.visible,He=Se.mask;if(!ht&&!He)return{};var ir={};return ke==="left"||ke==="right"?ir.width=rt:ir.height=xt,ir}},{key:"renderHeader",value:function(){var Se=this.props,ke=Se.title,rt=Se.prefixCls,xt=Se.closable,ht=Se.headerStyle;if(!ke&&!xt)return null;var He=ke?"".concat(rt,"-header"):"".concat(rt,"-header-no-title");return r.createElement("div",{className:He,style:ht},ke&&r.createElement("div",{className:"".concat(rt,"-title")},ke),xt&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var Se=this.props,ke=Se.footer,rt=Se.footerStyle,xt=Se.prefixCls;if(!ke)return null;var ht="".concat(xt,"-footer");return r.createElement("div",{className:ht,style:rt},ke)}},{key:"renderCloseIcon",value:function(){var Se=this.props,ke=Se.closable,rt=Se.closeIcon,xt=rt===void 0?r.createElement(Ve.a,null):rt,ht=Se.prefixCls,He=Se.onClose;return ke&&r.createElement("button",{onClick:He,"aria-label":"Close",className:"".concat(ht,"-close"),style:{"--scroll-bar":"".concat(Object(w.a)(),"px")}},xt)}},{key:"render",value:function(){return r.createElement(he.Consumer,null,this.renderProvider)}}]),Be}(r.Component);$.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:Y};var de=D.a=Object(Fe.c)({prefixCls:"drawer"})($)},"/y7N":function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("6GrX"),v=n("7aKB"),m=n("Fofx"),f=n("aX7z"),d=n("+rIm");function u(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 S=g.get("value"),E=t(S,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(),w=x.getBoundingRect(E,T),O=b.position,I=w.width+_[1]+_[3],R=w.height+_[0]+_[2],M=b.align;M==="right"&&(O[0]-=I),M==="center"&&(O[0]-=I/2);var B=b.verticalAlign;B==="bottom"&&(O[1]-=R),B==="middle"&&(O[1]-=R/2),i(O,I,R,A);var P=C.get("backgroundColor");(!P||P==="auto")&&(P=h.get("axisLine.lineStyle.color")),c.label={shape:{x:0,y:0,width:I,height:R,r:C.get("borderRadius")},position:O.slice(),style:{text:E,textFont:T,textFill:C.getTextColor(),textPosition:"inside",textPadding:_,fill:P,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 i(c,h,g,A){var b=A.getWidth(),S=A.getHeight();c[0]=Math.min(c[0]+h,b)-h,c[1]=Math.min(c[1]+g,S)-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 S=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),w=_.dataIndexInside,O=T&&T.getDataParams(w);O&&C.seriesData.push(O)}),y.isString(E)?S=E.replace("{value}",S):y.isFunction(E)&&(S=E(C))}return S}function s(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,S){var E=d.innerTextLayout(g.rotation,0,g.labelDirection);g.labelMargin=b.get("label.margin"),o(h,A,b,S,{position:s(A.axis,c,g),align:E.textAlign,verticalAlign:E.textVerticalAlign})}function l(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 a(c,h,g,A,b,S){return{cx:c,cy:h,r0:g,r:A,startAngle:b,endAngle:S,clockwise:!0}}D.buildElStyle=u,D.buildLabelElOption=o,D.getValueLabel=t,D.getTransformedPosition=s,D.buildCartesianSingleLabelElOption=e,D.makeLineShape=l,D.makeRectShape=r,D.makeSectorShape=a},"/zsF":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("bE4E"),v=n.n(x)},"0/Rx":function(k,D){function n(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),u=0;u<v.length;u++)if(!v[u].isSelected(d))return!1;return!0})}}}k.exports=n},"01d+":function(k,D,n){var y=n("bYtY"),p=y.each,x=n("HF/U"),v=x.simpleLayout,m=x.simpleLayoutEdge;function f(d,u){d.eachSeriesByType("graph",function(o){var i=o.get("layout"),t=o.coordinateSystem;if(t&&t.type!=="view"){var s=o.getData(),e=[];p(t.dimensions,function(g){e=e.concat(s.mapDimension(g,!0))});for(var l=0;l<s.count();l++){for(var r=[],a=!1,c=0;c<e.length;c++){var h=s.get(e[c],l);isNaN(h)||(a=!0),r.push(h)}a?s.setItemLayout(l,t.dataToPoint(r)):s.setItemLayout(l,[NaN,NaN])}m(s.graph)}else(!i||i==="none")&&v(o)})}k.exports=f},"03A+":function(k,D,n){var y=n("JTzB"),p=n("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")};k.exports=f},"06DH":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("Kagy"),v=n("IUWy"),m=x.toolbox.magicType,f="__ec_magicType_stack__";function d(s){this.model=s}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 u=d.prototype;u.getIcons=function(){var s=this.model,e=s.get("icon"),l={};return p.each(s.get("type"),function(r){e[r]&&(l[r]=e[r])}),l};var o={line:function(s,e,l,r){if(s==="bar")return p.merge({id:e,type:"line",data:l.get("data"),stack:l.get("stack"),markPoint:l.get("markPoint"),markLine:l.get("markLine")},r.get("option.line")||{},!0)},bar:function(s,e,l,r){if(s==="line")return p.merge({id:e,type:"bar",data:l.get("data"),stack:l.get("stack"),markPoint:l.get("markPoint"),markLine:l.get("markLine")},r.get("option.bar")||{},!0)},stack:function(s,e,l,r){var a=l.get("stack")===f;if(s==="line"||s==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),p.merge({id:e,stack:a?"":f},r.get("option.stack")||{},!0)}},i=[["line","bar"],["stack"]];u.onclick=function(s,e,l){var r=this.model,a=r.get("seriesIndex."+l);if(!o[l])return;var c={series:[]},h=function(b){var S=b.subType,E=b.id,C=o[l](S,E,b,r);C&&(p.defaults(C,b.option),c.series.push(C));var _=b.coordinateSystem;if(_&&_.type==="cartesian2d"&&(l==="line"||l==="bar")){var T=_.getAxesByScale("ordinal")[0];if(T){var w=T.dim,O=w+"Axis",I=s.queryComponents({mainType:O,index:b.get(name+"Index"),id:b.get(name+"Id")})[0],R=I.componentIndex;c[O]=c[O]||[];for(var M=0;M<=R;M++)c[O][R]=c[O][R]||{};c[O][R].boundaryGap=l==="bar"}}};p.each(i,function(b){p.indexOf(b,l)>=0&&p.each(b,function(S){r.setIconStatus(S,"normal")})}),r.setIconStatus(l,"emphasis"),s.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},h);var g;if(l==="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:l,newOption:c,newTitle:g,featureName:"magicType"})},y.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(s,e){e.mergeOption(s.newOption)}),v.register("magicType",d);var t=d;k.exports=t},"06Qe":function(k,D,n){var y=n("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(i){return m.createElement("<zrvml:"+i+' class="zrvml">')}}catch(o){d=function(t){return m.createElement("<"+t+' xmlns="'+p+'" class="zrvml">')}}function u(){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=u},"09Wf":function(k,D,n){"use strict";n.d(D,"b",function(){return p}),n.d(D,"a",function(){return x});var y=n("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(k,D,n){var y=n("T4UG"),p=n("I3/A"),x=n("7aKB"),v=x.encodeHTML,m=n("Qxkt"),f=n("Tghj"),d=f.__DEV__,u=y.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(i,t){for(var s=i.edges||i.links,e=i.data||i.nodes,l=i.levels,r=this.levelModels={},a=0;a<l.length;a++)l[a].depth!=null&&l[a].depth>=0&&(r[l[a].depth]=new m(l[a],this,t));if(e&&s){var c=p(e,s,this,!0,h);return c.data}function h(g,A){g.wrapMethod("getItemModel",function(b,S){return b.customizeGetParent(function(E){var C=this.parentModel,_=C.getData().getItemLayout(S).depth,T=C.levelModels[_];return T||this.parentModel}),b}),A.wrapMethod("getItemModel",function(b,S){return b.customizeGetParent(function(E){var C=this.parentModel,_=C.getGraph().getEdgeByIndex(S),T=_.node1.getLayout().depth,w=C.levelModels[T];return w||this.parentModel}),b})}},setNodePosition:function(i,t){var s=this.option.data[i];s.localX=t[0],s.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(i,t,s){if(s==="edge"){var e=this.getDataParams(i,s),l=e.data,r=l.source+" -- "+l.target;return e.value&&(r+=" : "+e.value),v(r)}else if(s==="node"){var a=this.getGraph().getNodeByIndex(i),c=a.getLayout().value,h=this.getDataParams(i,s).data.name;if(c)var r=h+" : "+c;return v(r)}return u.superCall(this,"formatTooltip",i,t)},optionUpdated:function(){var i=this.option;i.focusNodeAdjacency===!0&&(i.focusNodeAdjacency="allEdges")},getDataParams:function(i,t){var s=u.superCall(this,"getDataParams",i,t);if(s.value==null&&t==="node"){var e=this.getGraph().getNodeByIndex(i),l=e.getLayout().value;s.value=l}return s},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=u;k.exports=o},"0Cz8":function(k,D,n){var y=n("Xi7e"),p=n("ebwN"),x=n("e4Nc"),v=200;function m(f,d){var u=this.__data__;if(u instanceof y){var o=u.__data__;if(!p||o.length<v-1)return o.push([f,d]),this.size=++u.size,this;u=this.__data__=new x(o)}return u.set(f,d),this.size=u.size,this}k.exports=m},"0HBW":function(k,D,n){var y=n("ProS"),p=n("bYtY");n("Hxpc"),n("7uqq"),n("dmGj"),n("SehX");function x(v,m){m.update="updateView",y.registerAction(m,function(f,d){var u={};return d.eachComponent({mainType:"geo",query:f},function(o){o[v](f.name);var i=o.coordinateSystem;p.each(i.regions,function(t){u[t.name]=o.isSelected(t.name)||!1})}),{selected:u,name:f.name}})}x("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),x("select",{type:"geoSelect",event:"geoselected"}),x("unSelect",{type:"geoUnSelect",event:"geounselected"})},"0JAE":function(k,D,n){var y=n("bYtY"),p=n("+TT/"),x=n("OELB"),v=n("IDmD"),m=864e5;function f(o,i,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 i=o.getFullYear(),t=o.getMonth()+1;t=t<10?"0"+t:t;var s=o.getDate();s=s<10?"0"+s:s;var e=o.getDay();return e=Math.abs((e+7-this.getFirstDayOfWeek())%7),{y:i,m:t,d:s,day:e,time:o.getTime(),formatedDate:i+"-"+t+"-"+s,date:o}},getNextNDay:function(o,i){return i=i||0,i===0?this.getDateInfo(o):(o=new Date(this.getDateInfo(o).time),o.setDate(o.getDate()+i),this.getDateInfo(o))},update:function(o,i){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var t=this._rangeInfo.weeks||1,s=["width","height"],e=this._model.get("cellSize").slice(),l=this._model.getBoxLayoutParams(),r=this._orient==="horizontal"?[t,7]:[7,t];y.each([0,1],function(g){h(e,g)&&(l[s[g]]=e[g]*r[g])});var a={width:i.getWidth(),height:i.getHeight()},c=this._rect=p.getLayoutRect(l,a);y.each([0,1],function(g){h(e,g)||(e[g]=c[s[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,i){y.isArray(o)&&(o=o[0]),i==null&&(i=!0);var t=this.getDateInfo(o),s=this._rangeInfo,e=t.formatedDate;if(i&&!(t.time>=s.start.time&&t.time<s.end.time+m))return[NaN,NaN];var l=t.day,r=this._getRangeInfo([s.start.time,e]).nthWeek;return this._orient==="vertical"?[this._rect.x+l*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+l*this._sh+this._sh/2]},pointToData:function(o){var i=this.pointToDate(o);return i&&i.time},dataToRect:function(o,i){var t=this.dataToPoint(o,i);return{contentShape:{x:t[0]-(this._sw-this._lineWidth)/2,y:t[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:t,tl:[t[0]-this._sw/2,t[1]-this._sh/2],tr:[t[0]+this._sw/2,t[1]-this._sh/2],br:[t[0]+this._sw/2,t[1]+this._sh/2],bl:[t[0]-this._sw/2,t[1]+this._sh/2]}},pointToDate:function(o){var i=Math.floor((o[0]-this._rect.x)/this._sw)+1,t=Math.floor((o[1]-this._rect.y)/this._sh)+1,s=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(t,i-1,s):this._getDateByWeeksAndDay(i,t-1,s)},convertToPixel:y.curry(d,"dataToPoint"),convertFromPixel:y.curry(d,"pointToData"),_initRangeOption:function(){var o=this._model.get("range"),i=o;if(y.isArray(i)&&i.length===1&&(i=i[0]),/^\d{4}$/.test(i)&&(o=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var t=this.getDateInfo(i),s=t.date;s.setMonth(s.getMonth()+1);var e=this.getNextNDay(s,-1);o=[t.formatedDate,e.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(o=[i,i]);var l=this._getRangeInfo(o);return l.start.time>l.end.time&&o.reverse(),o},_getRangeInfo:function(o){o=[this.getDateInfo(o[0]),this.getDateInfo(o[1])];var i;o[0].time>o[1].time&&(i=!0,o.reverse());var t=Math.floor(o[1].time/m)-Math.floor(o[0].time/m)+1,s=new Date(o[0].time),e=s.getDate(),l=o[1].date.getDate();s.setDate(e+t-1);var r=s.getDate();if(r!==l)for(var a=s.getTime()-o[1].time>0?1:-1;(r=s.getDate())!==l&&(s.getTime()-o[1].time)*a>0;)t-=a,s.setDate(r-a);var c=Math.floor((t+o[0].day+6)/7),h=i?-c+1:c-1;return i&&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,i,t){var s=this._getRangeInfo(t);if(o>s.weeks||o===0&&i<s.fweek||o===s.weeks&&i>s.lweek)return!1;var e=(o-1)*7-s.fweek+i,l=new Date(s.start.time);return l.setDate(s.start.d+e),this.getDateInfo(l)}},f.dimensions=f.prototype.dimensions,f.getDimensionsInfo=f.prototype.getDimensionsInfo,f.create=function(o,i){var t=[];return o.eachComponent("calendar",function(s){var e=new f(s,o,i);t.push(e),s.coordinateSystem=e}),o.eachSeries(function(s){s.get("coordinateSystem")==="calendar"&&(s.coordinateSystem=t[s.get("calendarIndex")||0])}),t};function d(o,i,t,s){var e=t.calendarModel,l=t.seriesModel,r=e?e.coordinateSystem:l?l.coordinateSystem:null;return r===this?r[o](s):null}v.register("calendar",f);var u=f;k.exports=u},"0NbB":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="CaretDownOutlined";var d=D.a=p.forwardRef(f)},"0OKo":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("TdNH"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},"0V0F":function(k,D,n){var y=n("bYtY"),p=y.createHashMap,x=y.each;function v(f){var d=p();f.eachSeries(function(u){var o=u.get("stack");if(o){var i=d.get(o)||d.set(o,[]),t=u.getData(),s={stackResultDimension:t.getCalculationInfo("stackResultDimension"),stackedOverDimension:t.getCalculationInfo("stackedOverDimension"),stackedDimension:t.getCalculationInfo("stackedDimension"),stackedByDimension:t.getCalculationInfo("stackedByDimension"),isStackedByIndex:t.getCalculationInfo("isStackedByIndex"),data:t,seriesModel:u};if(!s.stackedDimension||!(s.isStackedByIndex||s.stackedByDimension))return;i.length&&t.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(s)}}),d.each(m)}function m(f){x(f,function(d,u){var o=[],i=[NaN,NaN],t=[d.stackResultDimension,d.stackedOverDimension],s=d.data,e=d.isStackedByIndex,l=s.map(t,function(r,a,c){var h=s.get(d.stackedDimension,c);if(isNaN(h))return i;var g,A;e?A=s.getRawIndex(c):g=s.get(d.stackedByDimension,c);for(var b=NaN,S=u-1;S>=0;S--){var E=f[S];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});s.hostModel.setData(l),d.data=l})}k.exports=v},"0XgM":function(k,D,n){},"0fbx":function(k,D,n){},"0o9m":function(k,D,n){var y=n("ProS");n("hNWo"),n("RlCK"),n("XpcN");var p=n("kDyi"),x=n("bLfw");y.registerProcessor(y.PRIORITY.PROCESSOR.SERIES_FILTER,p),x.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(k,D,n){var y=n("ProS");y.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),y.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},"0r65":function(k,D){var n=arguments[3],y=arguments[4],p=arguments[5],x=JSON.stringify;k.exports=function(v,m){for(var f,d=Object.keys(p),u=0,o=d.length;u<o;u++){var i=d[u],t=p[i].exports;if(t===v||t&&t.default===v){f=i;break}}if(!f){f=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var s={},u=0,o=d.length;u<o;u++){var i=d[u];s[i]=i}y[f]=["function(require,module,exports){"+v+"(self); }",s]}var e=Math.floor(Math.pow(16,8)*Math.random()).toString(16),l={};l[f]=f,y[e]=["function(require,module,exports){var f = require("+x(f)+");(f.default ? f.default : f)(self);}",l];var r={};a(e);function a(S){r[S]=!0;for(var E in y[S][1]){var C=y[S][1][E];r[C]||a(C)}}var c="("+n+")({"+Object.keys(r).map(function(S){return x(S)+":["+y[S][0]+","+x(y[S][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(k,D,n){var y=n("bYtY"),p=n("QBsz"),x=n("y23F"),v=n("H6uX"),m=n("YH21"),f=n("C0SR"),d="silent";function u(a,c,h){return{type:a,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 i(){}i.prototype.dispose=function(){};var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],s=function(c,h,g,A){v.call(this),this.storage=c,this.painter=h,this.painterRoot=A,g=g||new i,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,x.call(this),this.setHandlerProxy(g)};s.prototype={constructor:s,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=l(this,h,g),b=this._hovered,S=b.target;S&&!S.__zr&&(b=this.findHover(b.x,b.y),S=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"),S&&C!==S&&this.dispatchToElement(b,"mouseout",c),this.dispatchToElement(E,"mousemove",c),C&&C!==S&&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,S=u(h,c,g);A&&!(A[b]&&(S.cancelBubble=A[b].call(A,S)),A.trigger(h,S),A=A.parent,S.cancelBubble););S.cancelBubble||(this.trigger(h,S),this.painter&&this.painter.eachOtherLayer(function(E){typeof E[b]=="function"&&E[b].call(E,S),E.trigger&&E.trigger(h,S)}))},findHover:function(c,h,g){for(var A=this.storage.getDisplayList(),b={x:c,y:h},S=A.length-1;S>=0;S--){var E;if(A[S]!==g&&!A[S].ignore&&(E=e(A[S],c,h))&&(!b.topTarget&&(b.topTarget=A[S]),E!==d)){b.target=A[S];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(a){s.prototype[a]=function(c){var h=c.zrX,g=c.zrY,A=l(this,h,g),b,S;if((a!=="mouseup"||!A)&&(b=this.findHover(h,g),S=b.target),a==="mousedown")this._downEl=S,this._downPoint=[c.zrX,c.zrY],this._upEl=S;else if(a==="mouseup")this._upEl=S;else if(a==="click"){if(this._downEl!==this._upEl||!this._downPoint||p.dist(this._downPoint,[c.zrX,c.zrY])>4)return;this._downPoint=null}this.dispatchToElement(b,a,c)}});function e(a,c,h){if(a[a.rectHover?"rectContain":"contain"](c,h)){for(var g=a,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 l(a,c,h){var g=a.painter;return c<0||c>g.getWidth()||h<0||h>g.getHeight()}y.mixin(s,v),y.mixin(s,x);var r=s;k.exports=r},"0ycA":function(k,D){function n(){return[]}k.exports=n},"10cm":function(k,D,n){var y=n("ProS"),p=n("2B6p"),x=p.updateCenterAndZoom;n("0qV/");var v={type:"graphRoam",event:"graphRoam",update:"none"};y.registerAction(v,function(m,f){f.eachComponent({mainType:"series",query:m},function(d){var u=d.coordinateSystem,o=x(u,m);d.setCenter&&d.setCenter(o.center),d.setZoom&&d.setZoom(o.zoom)})})},"15/o":function(k,D,n){},"19Vz":function(k,D,n){(function(y){y(n("VrN/"))})(function(y){y.defineOption("placeholder","",function(u,o,i){var t=i&&i!=y.Init;if(o&&!t)u.on("blur",m),u.on("change",f),u.on("swapDoc",f),y.on(u.getInputField(),"compositionupdate",u.state.placeholderCompose=function(){v(u)}),f(u);else if(!o&&t){u.off("blur",m),u.off("change",f),u.off("swapDoc",f),y.off(u.getInputField(),"compositionupdate",u.state.placeholderCompose),p(u);var s=u.getWrapperElement();s.className=s.className.replace(" CodeMirror-empty","")}o&&!u.hasFocus()&&m(u)});function p(u){u.state.placeholder&&(u.state.placeholder.parentNode.removeChild(u.state.placeholder),u.state.placeholder=null)}function x(u){p(u);var o=u.state.placeholder=document.createElement("pre");o.style.cssText="height: 0; overflow: visible",o.style.direction=u.getOption("direction"),o.className="CodeMirror-placeholder CodeMirror-line-like";var i=u.getOption("placeholder");typeof i=="string"&&(i=document.createTextNode(i)),o.appendChild(i),u.display.lineSpace.insertBefore(o,u.display.lineSpace.firstChild)}function v(u){setTimeout(function(){var o=!1,i=u.getInputField();i.nodeName=="TEXTAREA"?o=!i.value:u.lineCount()==1&&(o=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),o?x(u):p(u)},20)}function m(u){d(u)&&x(u)}function f(u){var o=u.getWrapperElement(),i=d(u);o.className=o.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?x(u):p(u)}function d(u){return u.lineCount()===1&&u.getLine(0)===""}})},"1Jh7":function(k,D,n){var y=n("y+Vt"),p=n("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)}});k.exports=x},"1LEl":function(k,D,n){var y=n("ProS"),p=n("F9bG"),x=y.extendComponentView({type:"axisPointer",render:function(m,f,d){var u=f.getComponent("tooltip"),o=m.get("triggerOn")||u&&u.get("triggerOn")||"mousemove|click";p.register("axisPointer",d,function(i,t,s){o!=="none"&&(i==="leave"||o.indexOf(i)>=0)&&s({type:"updateAxisPointer",currTrigger:i,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;k.exports=v},"1MYJ":function(k,D,n){var y=n("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)}});k.exports=p},"1NG9":function(k,D,n){var y=n("y+Vt"),p=n("QBsz"),x=n("iXp4"),v=p.min,m=p.max,f=p.scaleAndAdd,d=p.copy,u=[],o=[],i=[];function t(h){return isNaN(h[0])||isNaN(h[1])}function s(h,g,A,b,S,E,C,_,T,w,O){return w==="none"||!w?l.apply(this,arguments):e.apply(this,arguments)}function e(h,g,A,b,S,E,C,_,T,w,O){for(var I=0,R=A,M=0;M<b;M++){var B=g[R];if(R>=S||R<0)break;if(t(B)){if(O){R+=E;continue}break}if(R===A)h[E>0?"moveTo":"lineTo"](B[0],B[1]);else if(T>0){var P=g[I],X=w==="y"?1:0,F=(B[X]-P[X])*T;d(o,P),o[X]=P[X]+F,d(i,B),i[X]=B[X]-F,h.bezierCurveTo(o[0],o[1],i[0],i[1],B[0],B[1])}else h.lineTo(B[0],B[1]);I=R,R+=E}return M}function l(h,g,A,b,S,E,C,_,T,w,O){for(var I=0,R=A,M=0;M<b;M++){var B=g[R];if(R>=S||R<0)break;if(t(B)){if(O){R+=E;continue}break}if(R===A)h[E>0?"moveTo":"lineTo"](B[0],B[1]),d(o,B);else if(T>0){var P=R+E,X=g[P];if(O)for(;X&&t(g[P]);)P+=E,X=g[P];var F=.5,j=g[I],X=g[P];if(!X||t(X))d(i,B);else{t(X)&&!O&&(X=B),p.sub(u,X,j);var K,z;if(w==="x"||w==="y"){var V=w==="x"?0:1;K=Math.abs(B[V]-j[V]),z=Math.abs(B[V]-X[V])}else K=p.dist(B,j),z=p.dist(B,X);F=z/(z+K),f(i,B,u,-T*(1-F))}v(o,o,_),m(o,o,C),v(i,i,_),m(i,i,C),h.bezierCurveTo(o[0],o[1],i[0],i[1],B[0],B[1]),f(o,B,u,T*F)}else h.lineTo(B[0],B[1]);I=R,R+=E}return M}function r(h,g){var A=[Infinity,Infinity],b=[-Infinity,-Infinity];if(g)for(var S=0;S<h.length;S++){var E=h[S];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 a=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,S=A.length,E=r(A,g.smoothConstraint);if(g.connectNulls){for(;S>0&&t(A[S-1]);S--);for(;b<S&&t(A[b]);b++);}for(;b<S;)b+=s(h,A,b,S,S,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,S=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(;S<E&&t(A[S]);S++);}for(;S<E;){var w=s(h,A,S,E,E,1,_.min,_.max,g.smooth,C,g.connectNulls);s(h,b,S+w-1,w,E,-1,T.min,T.max,g.stackedOnSmooth,C,g.connectNulls),S+=w+1,h.closePath()}}});D.Polyline=a,D.Polygon=c},"1RvN":function(k,D){var n=function(){this.head=null,this.tail=null,this._len=0},y=n.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,u=f.next;d?d.next=u:this.head=u,u?u.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 n,this._map={},this._maxSize=d||10,this._lastRemovedEntry=null},v=x.prototype;v.put=function(f,d){var u=this._list,o=this._map,i=null;if(o[f]==null){var t=u.len(),s=this._lastRemovedEntry;if(t>=this._maxSize&&t>0){var e=u.head;u.remove(e),delete o[e.key],i=e.value,this._lastRemovedEntry=e}s?s.value=d:s=new p(d),s.key=f,u.insertEntry(s),o[f]=s}return i},v.get=function(f){var d=this._map[f],u=this._list;if(d!=null)return d!==u.tail&&(u.remove(d),u.insertEntry(d)),d.value},v.clear=function(){this._list.clear(),this._map={}};var m=x;k.exports=m},"1bdT":function(k,D,n){var y=n("3gBT"),p=n("H6uX"),x=n("DN4a"),v=n("vWvF"),m=n("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,i){switch(this.draggable){case"horizontal":i=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]+=i,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(o,i){},attrKV:function(o,i){if(o==="position"||o==="scale"||o==="origin"){if(i){var t=this[o];t||(t=this[o]=[]),t[0]=i[0],t[1]=i[1]}}else this[o]=i},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(o,i){if(typeof o=="string")this.attrKV(o,i);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 i=this.__zr;i&&o.addSelfToZr(i),this.clipPath&&this.clipPath!==o&&this.removeClipPath(),this.clipPath=o,o.__zr=i,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 i=this.animators;if(i)for(var t=0;t<i.length;t++)o.animation.addAnimator(i[t]);this.clipPath&&this.clipPath.addSelfToZr(o)},removeSelfFromZr:function(o){this.__zr=null;var i=this.animators;if(i)for(var t=0;t<i.length;t++)o.animation.removeAnimator(i[t]);this.clipPath&&this.clipPath.removeSelfFromZr(o)}},m.mixin(f,v),m.mixin(f,x),m.mixin(f,p);var d=f;k.exports=d},"1dTM":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("GQ8N"),p=w(n("Lo0S")),x=n("VSMT"),v=n("GdRQ"),m=n("SZEN"),f=n("vewr"),d=_(n("YJ9k")),u=_(n("MZdM")),o=_(n("ItS6")),i=_(n("whVF")),t=_(n("Fv0C")),s=_(n("LCi9")),e=_(n("rwxt")),l=_(n("Mmt2")),r=_(n("iUHT")),a=_(n("mHUz")),c=_(n("P2ho")),h=n("NBmB");n("mdZa");var g=_(n("34/K")),A=_(n("hXwI")),b=_(n("SgaC")),S=_(n("3690")),E=_(n("8K/p")),C=_(n("xO64"));function _(de){return de&&de.__esModule?de:{default:de}}function T(){if(typeof WeakMap!="function")return null;var de=new WeakMap;return T=function(){return de},de}function w(de){if(de&&de.__esModule)return de;if(de===null||O(de)!=="object"&&typeof de!="function")return{default:de};var be=T();if(be&&be.has(de))return be.get(de);var Ce={},Be=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var fe in de)if(Object.prototype.hasOwnProperty.call(de,fe)){var Se=Be?Object.getOwnPropertyDescriptor(de,fe):null;Se&&(Se.get||Se.set)?Object.defineProperty(Ce,fe,Se):Ce[fe]=de[fe]}return Ce.default=de,be&&be.set(de,Ce),Ce}function O(de){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(de)}function I(de,be){if(!(de instanceof be))throw new TypeError("Cannot call a class as a function")}function R(de,be){for(var Ce=0;Ce<be.length;Ce++){var Be=be[Ce];Be.enumerable=Be.enumerable||!1,Be.configurable=!0,"value"in Be&&(Be.writable=!0),Object.defineProperty(de,Be.key,Be)}}function M(de,be,Ce){return be&&R(de.prototype,be),Ce&&R(de,Ce),de}function B(de,be){if(typeof be!="function"&&be!==null)throw new TypeError("Super expression must either be null or a function");de.prototype=Object.create(be&&be.prototype,{constructor:{value:de,writable:!0,configurable:!0}}),be&&P(de,be)}function P(de,be){return P=Object.setPrototypeOf||function(Be,fe){return Be.__proto__=fe,Be},P(de,be)}function X(de){var be=K();return function(){var Be=z(de),fe;if(be){var Se=z(this).constructor;fe=Reflect.construct(Be,arguments,Se)}else fe=Be.apply(this,arguments);return F(this,fe)}}function F(de,be){return be&&(O(be)==="object"||typeof be=="function")?be:j(de)}function j(de){if(de===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de}function K(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(de){return!1}}function z(de){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(Ce){return Ce.__proto__||Object.getPrototypeOf(Ce)},z(de)}var V=3,Q="rgb(40, 40, 40)",G=17,te=50,q=19,le=75,re=50,we=1e3,Ie=50,Me=1,Je=1<<1,Ve=1<<2,ut=1<<3,Fe=1<<4,ae=1<<24,at=1<<25,he=1<<26,J=1<<27,Y=1<<28,$=function(de){B(Ce,de);var be=X(Ce);function Ce(Be,fe,Se){var ke;if(I(this,Ce),!Be)throw new Error("Must specify target");if(!fe)throw new Error("Must specify URL");ke=be.call(this),ke._target=Be,ke._url=fe,Se=Se||{},ke._rfbCredentials=Se.credentials||{},ke._shared="shared"in Se?!!Se.shared:!0,ke._repeaterID=Se.repeaterID||"",ke._wsProtocols=Se.wsProtocols||[],ke._rfbConnectionState="",ke._rfbInitState="",ke._rfbAuthScheme=-1,ke._rfbCleanDisconnect=!0,ke._rfbVersion=0,ke._rfbMaxVersion=3.8,ke._rfbTightVNC=!1,ke._rfbVeNCryptState=0,ke._rfbXvpVer=0,ke._fbWidth=0,ke._fbHeight=0,ke._fbName="",ke._capabilities={power:!1},ke._supportsFence=!1,ke._supportsContinuousUpdates=!1,ke._enabledContinuousUpdates=!1,ke._supportsSetDesktopSize=!1,ke._screenID=0,ke._screenFlags=0,ke._qemuExtKeyEventSupported=!1,ke._clipboardText=null,ke._clipboardServerCapabilitiesActions={},ke._clipboardServerCapabilitiesFormats={},ke._sock=null,ke._display=null,ke._flushing=!1,ke._keyboard=null,ke._gestures=null,ke._disconnTimer=null,ke._resizeTimeout=null,ke._mouseMoveTimer=null,ke._decoders={},ke._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},ke._mousePos={},ke._mouseButtonMask=0,ke._mouseLastMoveTime=0,ke._viewportDragging=!1,ke._viewportDragPos={},ke._viewportHasMoved=!1,ke._accumulatedWheelDeltaX=0,ke._accumulatedWheelDeltaY=0,ke._gestureLastTapTime=null,ke._gestureFirstDoubleTapEv=null,ke._gestureLastMagnitudeX=0,ke._gestureLastMagnitudeY=0,ke._eventHandlers={focusCanvas:ke._focusCanvas.bind(j(ke)),windowResize:ke._windowResize.bind(j(ke)),handleMouse:ke._handleMouse.bind(j(ke)),handleWheel:ke._handleWheel.bind(j(ke)),handleGesture:ke._handleGesture.bind(j(ke))},p.Debug(">> RFB.constructor"),ke._screen=document.createElement("div"),ke._screen.style.display="flex",ke._screen.style.width="100%",ke._screen.style.height="100%",ke._screen.style.overflow="auto",ke._screen.style.background=Q,ke._canvas=document.createElement("canvas"),ke._canvas.style.margin="auto",ke._canvas.style.outline="none",ke._canvas.style.flexShrink="0",ke._canvas.width=0,ke._canvas.height=0,ke._canvas.tabIndex=-1,ke._screen.appendChild(ke._canvas),ke._cursor=new e.default,ke._cursorImage=Ce.cursors.none,ke._decoders[h.encodings.encodingRaw]=new g.default,ke._decoders[h.encodings.encodingCopyRect]=new A.default,ke._decoders[h.encodings.encodingRRE]=new b.default,ke._decoders[h.encodings.encodingHextile]=new S.default,ke._decoders[h.encodings.encodingTight]=new E.default,ke._decoders[h.encodings.encodingTightPNG]=new C.default;try{ke._display=new u.default(ke._canvas)}catch(rt){throw p.Error("Display exception: "+rt),rt}return ke._display.onflush=ke._onFlush.bind(j(ke)),ke._keyboard=new t.default(ke._canvas),ke._keyboard.onkeyevent=ke._handleKeyEvent.bind(j(ke)),ke._gestures=new s.default,ke._sock=new l.default,ke._sock.on("message",function(){ke._handleMessage()}),ke._sock.on("open",function(){ke._rfbConnectionState==="connecting"&&ke._rfbInitState===""?(ke._rfbInitState="ProtocolVersion",p.Debug("Starting VNC handshake")):ke._fail("Unexpected server connection while "+ke._rfbConnectionState)}),ke._sock.on("close",function(rt){p.Debug("WebSocket on-close event");var xt="";rt.code&&(xt="(code: "+rt.code,rt.reason&&(xt+=", reason: "+rt.reason),xt+=")");switch(ke._rfbConnectionState){case"connecting":ke._fail("Connection closed "+xt);break;case"connected":ke._updateConnectionState("disconnecting"),ke._updateConnectionState("disconnected");break;case"disconnecting":ke._updateConnectionState("disconnected");break;case"disconnected":ke._fail("Unexpected server disconnect when already disconnected "+xt);break;default:ke._fail("Unexpected server disconnect before connecting "+xt);break}ke._sock.off("close")}),ke._sock.on("error",function(rt){return p.Warn("WebSocket on-error event")}),setTimeout(ke._updateConnectionState.bind(j(ke),"connecting")),p.Debug("<< RFB.constructor"),ke.dragViewport=!1,ke.focusOnClick=!0,ke._viewOnly=!1,ke._clipViewport=!1,ke._scaleViewport=!1,ke._resizeSession=!1,ke._showDotCursor=!1,Se.showDotCursor!==void 0&&(p.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),ke._showDotCursor=Se.showDotCursor),ke._qualityLevel=6,ke._compressionLevel=2,ke}return M(Ce,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(fe){this._rfbCredentials=fe,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;p.Info("Sending Ctrl-Alt-Del"),this.sendKey(a.default.XK_Control_L,"ControlLeft",!0),this.sendKey(a.default.XK_Alt_L,"AltLeft",!0),this.sendKey(a.default.XK_Delete,"Delete",!0),this.sendKey(a.default.XK_Delete,"Delete",!1),this.sendKey(a.default.XK_Alt_L,"AltLeft",!1),this.sendKey(a.default.XK_Control_L,"ControlLeft",!1)}},{key:"machineShutdown",value:function(){this._xvpOp(1,2)}},{key:"machineReboot",value:function(){this._xvpOp(1,3)}},{key:"machineReset",value:function(){this._xvpOp(1,4)}},{key:"sendKey",value:function(fe,Se,ke){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(ke===void 0){this.sendKey(fe,Se,!0),this.sendKey(fe,Se,!1);return}var rt=c.default[Se];if(this._qemuExtKeyEventSupported&&rt)fe=fe||0,p.Info("Sending key ("+(ke?"down":"up")+"): keysym "+fe+", scancode "+rt),Ce.messages.QEMUExtendedKeyEvent(this._sock,fe,ke,rt);else{if(!fe)return;p.Info("Sending keysym ("+(ke?"down":"up")+"): "+fe),Ce.messages.keyEvent(this._sock,fe,ke?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(fe){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[Me]&&this._clipboardServerCapabilitiesActions[J])this._clipboardText=fe,Ce.messages.extendedClipboardNotify(this._sock,[Me]);else{for(var Se=new Uint8Array(fe.length),ke=0;ke<fe.length;ke++)Se[ke]=fe.charCodeAt(ke);Ce.messages.clientCutText(this._sock,Se)}}},{key:"_connect",value:function(){p.Debug(">> RFB.connect"),p.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(fe){fe.name==="SyntaxError"?this._fail("Invalid host or port ("+fe+")"):this._fail("Error when opening socket ("+fe+")")}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),window.addEventListener("resize",this._eventHandlers.windowResize),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),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(fe){if(!(fe.name==="NotFoundError"))throw fe}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),p.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(fe){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(fe){this._fbName=fe,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(fe){var Se=this;window.requestAnimationFrame(function(){Se._updateClip(),Se._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var fe=this._display.clipViewport,Se=this._clipViewport;if(this._scaleViewport&&(Se=!1),fe!==Se&&(this._display.clipViewport=Se),Se){var ke=this._screenSize();this._display.viewportChangeSize(ke.w,ke.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var fe=this._screenSize();this._display.autoscale(fe.w,fe.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var fe=this._screenSize();Ce.messages.setDesktopSize(this._sock,Math.floor(fe.w),Math.floor(fe.h),this._screenID,this._screenFlags),p.Debug("Requested new desktop size: "+fe.w+"x"+fe.h)}},{key:"_screenSize",value:function(){var fe=this._screen.getBoundingClientRect();return{w:fe.width,h:fe.height}}},{key:"_fixScrollbars",value:function(){var fe=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=fe}},{key:"_updateConnectionState",value:function(fe){var Se=this,ke=this._rfbConnectionState;if(fe===ke){p.Debug("Already in state '"+fe+"', ignoring");return}if(ke==="disconnected"){p.Error("Tried changing state of a disconnected RFB object");return}switch(fe){case"connected":if(ke!=="connecting"){p.Error("Bad transition to connected state, previous connection state: "+ke);return}break;case"disconnected":if(ke!=="disconnecting"){p.Error("Bad transition to disconnected state, previous connection state: "+ke);return}break;case"connecting":if(ke!==""){p.Error("Bad transition to connecting state, previous connection state: "+ke);return}break;case"disconnecting":if(ke!=="connected"&&ke!=="connecting"){p.Error("Bad transition to disconnecting state, previous connection state: "+ke);return}break;default:p.Error("Unknown connection state: "+fe);return}this._rfbConnectionState=fe,p.Debug("New state '"+fe+"', was '"+ke+"'."),this._disconnTimer&&fe!=="disconnecting"&&(p.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(fe){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){p.Error("Disconnection timed out."),Se._updateConnectionState("disconnected")},V*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(fe){switch(this._rfbConnectionState){case"disconnecting":p.Error("Failed when disconnecting: "+fe);break;case"connected":p.Error("Failed while connected: "+fe);break;case"connecting":p.Error("Failed when connecting: "+fe);break;default:p.Error("RFB failure: "+fe);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(fe,Se){this._capabilities[fe]=Se,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(fe,Se,ke){this.sendKey(fe,Se,ke)}},{key:"_handleMouse",value:function(fe){if(fe.type==="click"&&fe.target!==this._canvas)return;if(fe.stopPropagation(),fe.preventDefault(),fe.type==="click"||fe.type==="contextmenu")return;var Se=(0,m.clientToElement)(fe.clientX,fe.clientY,this._canvas);switch(fe.type){case"mousedown":(0,f.setCapture)(this._canvas),this._handleMouseButton(Se.x,Se.y,!0,1<<fe.button);break;case"mouseup":this._handleMouseButton(Se.x,Se.y,!1,1<<fe.button);break;case"mousemove":this._handleMouseMove(Se.x,Se.y);break}}},{key:"_handleMouseButton",value:function(fe,Se,ke,rt){if(this.dragViewport)if(ke&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:fe,y:Se},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(fe,Se,rt)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(fe,Se,this._mouseButtonMask)),ke?this._mouseButtonMask|=rt:this._mouseButtonMask&=~rt,this._sendMouse(fe,Se,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(fe,Se){var ke=this;if(this._viewportDragging){var rt=this._viewportDragPos.x-fe,xt=this._viewportDragPos.y-Se;(this._viewportHasMoved||Math.abs(rt)>v.dragThreshold||Math.abs(xt)>v.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:fe,y:Se},this._display.viewportChangePos(rt,xt));return}if(this._mousePos={x:fe,y:Se},this._mouseMoveTimer==null){var ht=Date.now()-this._mouseLastMoveTime;ht>G?(this._sendMouse(fe,Se,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){ke._handleDelayedMouseMove()},G-ht)}}},{key:"_handleDelayedMouseMove",value:function(){this._mouseMoveTimer=null,this._sendMouse(this._mousePos.x,this._mousePos.y,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()}},{key:"_sendMouse",value:function(fe,Se,ke){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Ce.messages.pointerEvent(this._sock,this._display.absX(fe),this._display.absY(Se),ke)}},{key:"_handleWheel",value:function(fe){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;fe.stopPropagation(),fe.preventDefault();var Se=(0,m.clientToElement)(fe.clientX,fe.clientY,this._canvas),ke=fe.deltaX,rt=fe.deltaY;fe.deltaMode!==0&&(ke*=q,rt*=q),this._accumulatedWheelDeltaX+=ke,this._accumulatedWheelDeltaY+=rt,Math.abs(this._accumulatedWheelDeltaX)>=te&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(Se.x,Se.y,!0,1<<5),this._handleMouseButton(Se.x,Se.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(Se.x,Se.y,!0,1<<6),this._handleMouseButton(Se.x,Se.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=te&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(Se.x,Se.y,!0,1<<3),this._handleMouseButton(Se.x,Se.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(Se.x,Se.y,!0,1<<4),this._handleMouseButton(Se.x,Se.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(fe,Se,ke){this._handleMouseMove(Se,ke),this._cursor.move(fe.detail.clientX,fe.detail.clientY)}},{key:"_handleTapEvent",value:function(fe,Se){var ke=(0,m.clientToElement)(fe.detail.clientX,fe.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<we&&this._gestureFirstDoubleTapEv.detail.type===fe.detail.type){var rt=this._gestureFirstDoubleTapEv.detail.clientX-fe.detail.clientX,xt=this._gestureFirstDoubleTapEv.detail.clientY-fe.detail.clientY,ht=Math.hypot(rt,xt);ht<Ie?ke=(0,m.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=fe}else this._gestureFirstDoubleTapEv=fe;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,ke.x,ke.y),this._handleMouseButton(ke.x,ke.y,!0,Se),this._handleMouseButton(ke.x,ke.y,!1,Se)}},{key:"_handleGesture",value:function(fe){var Se,ke=(0,m.clientToElement)(fe.detail.clientX,fe.detail.clientY,this._canvas);switch(fe.type){case"gesturestart":switch(fe.detail.type){case"onetap":this._handleTapEvent(fe,1);break;case"twotap":this._handleTapEvent(fe,4);break;case"threetap":this._handleTapEvent(fe,2);break;case"drag":this._fakeMouseMove(fe,ke.x,ke.y),this._handleMouseButton(ke.x,ke.y,!0,1);break;case"longpress":this._fakeMouseMove(fe,ke.x,ke.y),this._handleMouseButton(ke.x,ke.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=fe.detail.magnitudeX,this._gestureLastMagnitudeY=fe.detail.magnitudeY,this._fakeMouseMove(fe,ke.x,ke.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(fe.detail.magnitudeX,fe.detail.magnitudeY),this._fakeMouseMove(fe,ke.x,ke.y);break}break;case"gesturemove":switch(fe.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(fe,ke.x,ke.y);break;case"twodrag":for(this._fakeMouseMove(fe,ke.x,ke.y);fe.detail.magnitudeY-this._gestureLastMagnitudeY>re;)this._handleMouseButton(ke.x,ke.y,!0,8),this._handleMouseButton(ke.x,ke.y,!1,8),this._gestureLastMagnitudeY+=re;for(;fe.detail.magnitudeY-this._gestureLastMagnitudeY<-re;)this._handleMouseButton(ke.x,ke.y,!0,16),this._handleMouseButton(ke.x,ke.y,!1,16),this._gestureLastMagnitudeY-=re;for(;fe.detail.magnitudeX-this._gestureLastMagnitudeX>re;)this._handleMouseButton(ke.x,ke.y,!0,32),this._handleMouseButton(ke.x,ke.y,!1,32),this._gestureLastMagnitudeX+=re;for(;fe.detail.magnitudeX-this._gestureLastMagnitudeX<-re;)this._handleMouseButton(ke.x,ke.y,!0,64),this._handleMouseButton(ke.x,ke.y,!1,64),this._gestureLastMagnitudeX-=re;break;case"pinch":if(this._fakeMouseMove(fe,ke.x,ke.y),Se=Math.hypot(fe.detail.magnitudeX,fe.detail.magnitudeY),Math.abs(Se-this._gestureLastMagnitudeX)>le){for(this._handleKeyEvent(a.default.XK_Control_L,"ControlLeft",!0);Se-this._gestureLastMagnitudeX>le;)this._handleMouseButton(ke.x,ke.y,!0,8),this._handleMouseButton(ke.x,ke.y,!1,8),this._gestureLastMagnitudeX+=le;for(;Se-this._gestureLastMagnitudeX<-le;)this._handleMouseButton(ke.x,ke.y,!0,16),this._handleMouseButton(ke.x,ke.y,!1,16),this._gestureLastMagnitudeX-=le}this._handleKeyEvent(a.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(fe.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(fe,ke.x,ke.y),this._handleMouseButton(ke.x,ke.y,!1,1);break;case"longpress":this._fakeMouseMove(fe,ke.x,ke.y),this._handleMouseButton(ke.x,ke.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var fe=this._sock.rQshiftStr(12).substr(4,7);p.Info("Server ProtocolVersion: "+fe);var Se=0;switch(fe){case"000.000":Se=1;break;case"003.003":case"003.006":case"003.889":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+fe)}if(Se){for(var ke="ID:"+this._repeaterID;ke.length<250;)ke+="\0";return this._sock.sendString(ke),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var rt="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+rt+`
`),p.Debug("Sent ProtocolVersion: "+rt),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function fe(rt,xt){for(var ht=0;ht<xt.length;ht++)if(xt[ht]===rt)return!0;return!1}if(this._rfbVersion>=3.7){var Se=this._sock.rQshift8();if(this._sock.rQwait("security type",Se,1))return!1;if(Se===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var ke=this._sock.rQshiftBytes(Se);if(p.Debug("Server security types: "+ke),fe(1,ke))this._rfbAuthScheme=1;else if(fe(22,ke))this._rfbAuthScheme=22;else if(fe(16,ke))this._rfbAuthScheme=16;else if(fe(2,ke))this._rfbAuthScheme=2;else if(fe(19,ke))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+ke+")");this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),this._rfbAuthScheme==0)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",p.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var fe=this._sock.rQshift32(),Se="";if(fe>0){if(this._sock.rQwait("reason",fe,4))return!1;Se=this._sock.rQshiftStr(fe)}return Se!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:Se}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+Se+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}},{key:"_negotiateXvpAuth",value:function(){if(this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0||this._rfbCredentials.target===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1;var fe=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(fe),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var fe=this._sock.rQshift8(),Se=this._sock.rQshift8();if(!(fe==0&&Se==2))return this._fail("Unsupported VeNCrypt version "+fe+"."+Se);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var ke=this._sock.rQshift8();if(ke!=0)return this._fail("VeNCrypt failure "+ke);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var rt=this._sock.rQshift8();if(rt<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=rt,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var xt=[],ht=0;ht<this._rfbVeNCryptSubtypesLength;ht++)xt.push(this._sock.rQshift32());if(xt.indexOf(256)!=-1)this._sock.send([0,0,1,0]),this._rfbVeNCryptState=4;else return this._fail("VeNCrypt Plain subtype not offered by server")}if(this._rfbVeNCryptState==4){if(!this._rfbCredentials.username||!this._rfbCredentials.password)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1;var He=(0,x.encodeUTF8)(this._rfbCredentials.username),ir=(0,x.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,He.length]),this._sock.send([0,0,0,ir.length]),this._sock.sendString(He),this._sock.sendString(ir),this._rfbInitState="SecurityResult",!0}}},{key:"_negotiateStdVNCAuth",value:function(){if(this._sock.rQwait("auth challenge",16))return!1;if(this._rfbCredentials.password===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["password"]}})),!1;var fe=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),Se=Ce.genDES(this._rfbCredentials.password,fe);return this._sock.send(Se),this._rfbInitState="SecurityResult",!0}},{key:"_negotiateTightUnixAuth",value:function(){return this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0?(this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1):(this._sock.send([0,0,0,this._rfbCredentials.username.length]),this._sock.send([0,0,0,this._rfbCredentials.password.length]),this._sock.sendString(this._rfbCredentials.username),this._sock.sendString(this._rfbCredentials.password),this._rfbInitState="SecurityResult",!0)}},{key:"_negotiateTightTunnels",value:function(fe){for(var Se={0:{vendor:"TGHT",signature:"NOTUNNEL"}},ke={},rt=0;rt<fe;rt++){var xt=this._sock.rQshift32(),ht=this._sock.rQshiftStr(4),He=this._sock.rQshiftStr(8);ke[xt]={vendor:ht,signature:He}}return p.Debug("Server Tight tunnel types: "+ke),ke[1]&&ke[1].vendor==="SICR"&&ke[1].signature==="SCHANNEL"&&(p.Debug("Detected Siemens server. Assuming NOTUNNEL support."),ke[0]={vendor:"TGHT",signature:"NOTUNNEL"}),ke[0]?ke[0].vendor!=Se[0].vendor||ke[0].signature!=Se[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(p.Debug("Selected tunnel type: "+Se[0]),this._sock.send([0,0,0,0]),!1):this._fail("Server wanted tunnels, but doesn't support the notunnel type")}},{key:"_negotiateTightAuth",value:function(){if(!this._rfbTightVNC){if(this._sock.rQwait("num tunnels",4))return!1;var fe=this._sock.rQshift32();if(fe>0&&this._sock.rQwait("tunnel capabilities",16*fe,4))return!1;if(this._rfbTightVNC=!0,fe>0)return this._negotiateTightTunnels(fe),!1}if(this._sock.rQwait("sub auth count",4))return!1;var Se=this._sock.rQshift32();if(Se===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*Se,4))return!1;for(var ke={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},rt=[],xt=0;xt<Se;xt++){this._sock.rQshift32();var ht=this._sock.rQshiftStr(12);rt.push(ht)}p.Debug("Server Tight authentication types: "+rt);for(var He in ke)if(rt.indexOf(He)!=-1){this._sock.send([0,0,0,ke[He]]),p.Debug("Selected authentication type: "+He);switch(He){case"STDVNOAUTH__":return this._rfbInitState="SecurityResult",!0;case"STDVVNCAUTH_":return this._rfbAuthScheme=2,this._initMsg();case"TGHTULGNAUTH":return this._rfbAuthScheme=129,this._initMsg();default:return this._fail("Unsupported tiny auth scheme (scheme: "+He+")")}}return this._fail("No supported sub-auth types!")}},{key:"_negotiateAuthentication",value:function(){switch(this._rfbAuthScheme){case 1:return this._rfbVersion>=3.8?(this._rfbInitState="SecurityResult",!0):(this._rfbInitState="ClientInitialisation",this._initMsg());case 22:return this._negotiateXvpAuth();case 2:return this._negotiateStdVNCAuth();case 16:return this._negotiateTightAuth();case 19:return this._negotiateVeNCryptAuth();case 129:return this._negotiateTightUnixAuth();default:return this._fail("Unsupported auth scheme (scheme: "+this._rfbAuthScheme+")")}}},{key:"_handleSecurityResult",value:function(){if(this._sock.rQwait("VNC auth response ",4))return!1;var fe=this._sock.rQshift32();return fe===0?(this._rfbInitState="ClientInitialisation",p.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=fe,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:fe}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var fe=this._sock.rQshift16(),Se=this._sock.rQshift16(),ke=this._sock.rQshift8(),rt=this._sock.rQshift8(),xt=this._sock.rQshift8(),ht=this._sock.rQshift8(),He=this._sock.rQshift16(),ir=this._sock.rQshift16(),ct=this._sock.rQshift16(),Xt=this._sock.rQshift8(),hr=this._sock.rQshift8(),Jt=this._sock.rQshift8();this._sock.rQskipBytes(3);var Pt=this._sock.rQshift32();if(this._sock.rQwait("server init name",Pt,24))return!1;var Wt=this._sock.rQshiftStr(Pt);if(Wt=(0,x.decodeUTF8)(Wt,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+Pt))return!1;var Ge=this._sock.rQshift16(),pe=this._sock.rQshift16(),se=this._sock.rQshift16();this._sock.rQskipBytes(2);var lt=(Ge+pe+se)*16;if(this._sock.rQwait("TightVNC extended server init header",lt,32+Pt))return!1;this._sock.rQskipBytes(16*Ge),this._sock.rQskipBytes(16*pe),this._sock.rQskipBytes(16*se)}return p.Info("Screen: "+fe+"x"+Se+", bpp: "+ke+", depth: "+rt+", bigEndian: "+xt+", trueColor: "+ht+", redMax: "+He+", greenMax: "+ir+", blueMax: "+ct+", redShift: "+Xt+", greenShift: "+hr+", blueShift: "+Jt),this._setDesktopName(Wt),this._resize(fe,Se),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 fe=[];fe.push(h.encodings.encodingCopyRect),this._fbDepth==24&&(fe.push(h.encodings.encodingTight),fe.push(h.encodings.encodingTightPNG),fe.push(h.encodings.encodingHextile),fe.push(h.encodings.encodingRRE)),fe.push(h.encodings.encodingRaw),fe.push(h.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),fe.push(h.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),fe.push(h.encodings.pseudoEncodingDesktopSize),fe.push(h.encodings.pseudoEncodingLastRect),fe.push(h.encodings.pseudoEncodingQEMUExtendedKeyEvent),fe.push(h.encodings.pseudoEncodingExtendedDesktopSize),fe.push(h.encodings.pseudoEncodingXvp),fe.push(h.encodings.pseudoEncodingFence),fe.push(h.encodings.pseudoEncodingContinuousUpdates),fe.push(h.encodings.pseudoEncodingDesktopName),fe.push(h.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(fe.push(h.encodings.pseudoEncodingVMwareCursor),fe.push(h.encodings.pseudoEncodingCursor)),Ce.messages.clientEncodings(this._sock,fe)}},{key:"_initMsg",value:function(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}},{key:"_handleSetColourMapMsg",value:function(){return 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 fe=this._sock.rQshift32();if(fe=(0,y.toSigned32bit)(fe),this._sock.rQwait("ServerCutText content",Math.abs(fe),8))return!1;if(fe>=0){var Se=this._sock.rQshiftStr(fe);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Se}}))}else{fe=Math.abs(fe);var ke=this._sock.rQshift32(),rt=ke&65535,xt=ke&4278190080,ht=!!(xt&ae);if(ht){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var He=0;He<=15;He++){var ir=1<<He;rt&ir&&(this._clipboardServerCapabilitiesFormats[ir]=!0,this._sock.rQshift32())}for(var ct=24;ct<=31;ct++){var Xt=1<<ct;this._clipboardServerCapabilitiesActions[Xt]=!!(xt&Xt)}var hr=[ae,at,he,J,Y];Ce.messages.extendedClipboardCaps(this._sock,hr,{extendedClipboardFormatText:0})}else if(xt===at){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[Y]&&(rt&Me&&Ce.messages.extendedClipboardProvide(this._sock,[Me],[this._clipboardText]))}else if(xt===he){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[J]&&(this._clipboardText!=null?Ce.messages.extendedClipboardNotify(this._sock,[Me]):Ce.messages.extendedClipboardNotify(this._sock,[]))}else if(xt===J){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[at]&&(rt&Me&&Ce.messages.extendedClipboardRequest(this._sock,[Me]))}else if(xt===Y){if(this._viewOnly)return!0;if(!(rt&Me))return!0;this._clipboardText=null;var Jt=this._sock.rQshiftBytes(fe-4),Pt=new o.default,Wt=null;Pt.setInput(Jt);for(var Ge=0;Ge<=15;Ge++){var pe=1<<Ge;if(rt&pe){var se=0,lt=Pt.inflate(4);se|=lt[0]<<24,se|=lt[1]<<16,se|=lt[2]<<8,se|=lt[3];var qe=Pt.inflate(se);pe===Me&&(Wt=qe)}}if(Pt.setInput(null),Wt!==null){for(var me="",Ht=0;Ht<Wt.length;Ht++)me+=String.fromCharCode(Wt[Ht]);Wt=me,Wt=(0,x.decodeUTF8)(Wt),Wt.length>0&&Wt.charAt(Wt.length-1)==="\0"&&(Wt=Wt.slice(0,-1)),Wt=Wt.replace(`\r
`,`
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Wt}}))}}else return this._fail("Unexpected action in extended clipboard message: "+xt)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var fe=this._sock.rQshift32(),Se=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",Se,9))return!1;Se>64&&(p.Warn("Bad payload length ("+Se+") in fence response"),Se=64);var ke=this._sock.rQshiftStr(Se);return this._supportsFence=!0,fe&1<<31?(fe&=1<<0|1<<1,Ce.messages.clientFence(this._sock,fe,ke),!0):this._fail("Unexpected fence response")}},{key:"_handleXvpMsg",value:function(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);var fe=this._sock.rQshift8(),Se=this._sock.rQshift8();switch(Se){case 0:p.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=fe,p.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+Se+")");break}return!0}},{key:"_normalMsg",value:function(){var fe;this._FBU.rects>0?fe=0:fe=this._sock.rQshift8();var Se,ke;switch(fe){case 0:return ke=this._framebufferUpdate(),ke&&!this._enabledContinuousUpdates&&Ce.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),ke;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 Se=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,Se&&(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 "+fe+")"),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 fe=this._sock.rQshiftBytes(12);this._FBU.x=(fe[0]<<8)+fe[1],this._FBU.y=(fe[2]<<8)+fe[3],this._FBU.width=(fe[4]<<8)+fe[5],this._FBU.height=(fe[6]<<8)+fe[7],this._FBU.encoding=parseInt((fe[8]<<24)+(fe[9]<<16)+(fe[10]<<8)+fe[11],10)}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}},{key:"_handleRect",value:function(){switch(this._FBU.encoding){case h.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case h.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case h.encodings.pseudoEncodingCursor:return this._handleCursor();case h.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var fe=document.createEvent("keyboardEvent");fe.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(Se){}return!0;case h.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case h.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case h.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var fe=this._FBU.x,Se=this._FBU.y,ke=this._FBU.width,rt=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var xt=this._sock.rQshift8();this._sock.rQshift8();var ht,He=4;if(xt==0){var ir=4294967040|0;if(ht=new Array(ke*rt*He),this._sock.rQwait("VMware cursor classic encoding",ke*rt*He*2,2))return!1;for(var ct=new Array(ke*rt),Xt=0;Xt<ke*rt;Xt++)ct[Xt]=this._sock.rQshift32();for(var hr=new Array(ke*rt),Jt=0;Jt<ke*rt;Jt++)hr[Jt]=this._sock.rQshift32();for(var Pt=0;Pt<ke*rt;Pt++)if(ct[Pt]==0){var Wt=hr[Pt],Ge=Wt>>8&255,pe=Wt>>16&255,se=Wt>>24&255;ht[Pt*He]=Ge,ht[Pt*He+1]=pe,ht[Pt*He+2]=se,ht[Pt*He+3]=255}else(ct[Pt]&ir)==ir?hr[Pt]==0?(ht[Pt*He]=0,ht[Pt*He+1]=0,ht[Pt*He+2]=0,ht[Pt*He+3]=0):((hr[Pt]&ir)==ir,ht[Pt*He]=0,ht[Pt*He+1]=0,ht[Pt*He+2]=0,ht[Pt*He+3]=255):(ht[Pt*He]=0,ht[Pt*He+1]=0,ht[Pt*He+2]=0,ht[Pt*He+3]=255)}else if(xt==1){if(this._sock.rQwait("VMware cursor alpha encoding",ke*rt*4,2))return!1;ht=new Array(ke*rt*He);for(var lt=0;lt<ke*rt;lt++){var qe=this._sock.rQshift32();ht[lt*4]=qe>>24&255,ht[lt*4+1]=qe>>16&255,ht[lt*4+2]=qe>>8&255,ht[lt*4+3]=qe&255}}else return p.Warn("The given cursor type is not supported: "+xt+" given."),!1;return this._updateCursor(ht,fe,Se,ke,rt),!0}},{key:"_handleCursor",value:function(){var fe=this._FBU.x,Se=this._FBU.y,ke=this._FBU.width,rt=this._FBU.height,xt=ke*rt*4,ht=Math.ceil(ke/8)*rt,He=xt+ht;if(this._sock.rQwait("cursor encoding",He))return!1;for(var ir=this._sock.rQshiftBytes(xt),ct=this._sock.rQshiftBytes(ht),Xt=new Uint8Array(ke*rt*4),hr=0,Jt=0;Jt<rt;Jt++)for(var Pt=0;Pt<ke;Pt++){var Wt=Jt*Math.ceil(ke/8)+Math.floor(Pt/8),Ge=ct[Wt]<<Pt%8&128?255:0;Xt[hr]=ir[hr+2],Xt[hr+1]=ir[hr+1],Xt[hr+2]=ir[hr],Xt[hr+3]=Ge,hr+=4}return this._updateCursor(Xt,fe,Se,ke,rt),!0}},{key:"_handleDesktopName",value:function(){if(this._sock.rQwait("DesktopName",4))return!1;var fe=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",fe,4))return!1;var Se=this._sock.rQshiftStr(fe);return Se=(0,x.decodeUTF8)(Se,!0),this._setDesktopName(Se),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var fe=this._sock.rQpeek8(),Se=4+fe*16;if(this._sock.rQwait("ExtendedDesktopSize",Se))return!1;var ke=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,ke&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var rt=0;rt<fe;rt+=1)rt===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 xt="";switch(this._FBU.y){case 1:xt="Resize is administratively prohibited";break;case 2:xt="Out of resources";break;case 3:xt="Invalid screen layout";break;default:xt="Unknown reason";break}p.Warn("Server did not accept the resize request: "+xt)}else this._resize(this._FBU.width,this._FBU.height);return!0}},{key:"_handleDataRect",value:function(){var fe=this._decoders[this._FBU.encoding];if(!fe)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return fe.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(Se){return this._fail("Error decoding rect: "+Se),!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(fe,Se){this._fbWidth=fe,this._fbHeight=Se,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(fe,Se){if(this._rfbXvpVer<fe)return;p.Info("Sending XVP operation "+Se+" (version "+fe+")"),Ce.messages.xvpOp(this._sock,fe,Se)}},{key:"_updateCursor",value:function(fe,Se,ke,rt,xt){this._cursorImage={rgbaPixels:fe,hotx:Se,hoty:ke,w:rt,h:xt},this._refreshCursor()}},{key:"_shouldShowDotCursor",value:function(){if(!this._showDotCursor)return!1;for(var fe=3;fe<this._cursorImage.rgbaPixels.length;fe+=4)if(this._cursorImage.rgbaPixels[fe])return!1;return!0}},{key:"_refreshCursor",value:function(){if(this._rfbConnectionState!=="connecting"&&this._rfbConnectionState!=="connected")return;var fe=this._shouldShowDotCursor()?Ce.cursors.dot:this._cursorImage;this._cursor.change(fe.rgbaPixels,fe.hotx,fe.hoty,fe.w,fe.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(fe){this._viewOnly=fe,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(fe?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(fe){p.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(fe){this._clipViewport=fe,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(fe){this._scaleViewport=fe,fe&&this._clipViewport&&this._updateClip(),this._updateScale(),!fe&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(fe){this._resizeSession=fe,fe&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(fe){this._showDotCursor=fe,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(fe){this._screen.style.background=fe}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(fe){if(!Number.isInteger(fe)||fe<0||fe>9){p.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===fe)return;this._qualityLevel=fe,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(fe){if(!Number.isInteger(fe)||fe<0||fe>9){p.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===fe)return;this._compressionLevel=fe,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(fe,Se){var ke=fe.split("").map(function(rt){return rt.charCodeAt(0)});return new r.default(ke).encrypt(Se)}}]),Ce}(d.default);D.default=$,$.messages={keyEvent:function(be,Ce,Be){var fe=be._sQ,Se=be._sQlen;fe[Se]=4,fe[Se+1]=Be,fe[Se+2]=0,fe[Se+3]=0,fe[Se+4]=Ce>>24,fe[Se+5]=Ce>>16,fe[Se+6]=Ce>>8,fe[Se+7]=Ce,be._sQlen+=8,be.flush()},QEMUExtendedKeyEvent:function(be,Ce,Be,fe){function Se(ht){var He=fe>>8,ir=fe&255;return He===224&&ir<127?ir|128:ht}var ke=be._sQ,rt=be._sQlen;ke[rt]=255,ke[rt+1]=0,ke[rt+2]=Be>>8,ke[rt+3]=Be,ke[rt+4]=Ce>>24,ke[rt+5]=Ce>>16,ke[rt+6]=Ce>>8,ke[rt+7]=Ce;var xt=Se(fe);ke[rt+8]=xt>>24,ke[rt+9]=xt>>16,ke[rt+10]=xt>>8,ke[rt+11]=xt,be._sQlen+=12,be.flush()},pointerEvent:function(be,Ce,Be,fe){var Se=be._sQ,ke=be._sQlen;Se[ke]=5,Se[ke+1]=fe,Se[ke+2]=Ce>>8,Se[ke+3]=Ce,Se[ke+4]=Be>>8,Se[ke+5]=Be,be._sQlen+=6,be.flush()},_buildExtendedClipboardFlags:function(be,Ce){for(var Be=new Uint8Array(4),fe=0,Se=0,ke=0;ke<be.length;ke++)Se|=be[ke];for(var rt=0;rt<Ce.length;rt++)fe|=Ce[rt];return Be[0]=Se>>24,Be[1]=0,Be[2]=0,Be[3]=fe,Be},extendedClipboardProvide:function(be,Ce,Be){for(var fe=new i.default,Se=[],ke=0;ke<Ce.length;ke++){if(Ce[ke]!=Me)throw new Error("Unsupported extended clipboard format for Provide message.");Be[ke]=Be[ke].replace(/\r\n|\r|\n/gm,`\r
`);var rt=(0,x.encodeUTF8)(Be[ke]+"\0");Se.push(rt.length>>24&255,rt.length>>16&255,rt.length>>8&255,rt.length&255);for(var xt=0;xt<rt.length;xt++)Se.push(rt.charCodeAt(xt))}var ht=fe.deflate(new Uint8Array(Se)),He=new Uint8Array(4+ht.length);He.set($.messages._buildExtendedClipboardFlags([Y],Ce)),He.set(ht,4),$.messages.clientCutText(be,He,!0)},extendedClipboardNotify:function(be,Ce){var Be=$.messages._buildExtendedClipboardFlags([J],Ce);$.messages.clientCutText(be,Be,!0)},extendedClipboardRequest:function(be,Ce){var Be=$.messages._buildExtendedClipboardFlags([at],Ce);$.messages.clientCutText(be,Be,!0)},extendedClipboardCaps:function(be,Ce,Be){var fe=Object.keys(Be),Se=new Uint8Array(4+4*fe.length);fe.map(function(xt){return parseInt(xt)}),fe.sort(function(xt,ht){return xt-ht}),Se.set($.messages._buildExtendedClipboardFlags(Ce,[]));for(var ke=4,rt=0;rt<fe.length;rt++)Se[ke]=Be[fe[rt]]>>24,Se[ke+1]=Be[fe[rt]]>>16,Se[ke+2]=Be[fe[rt]]>>8,Se[ke+3]=Be[fe[rt]]>>0,ke+=4,Se[3]|=1<<fe[rt];$.messages.clientCutText(be,Se,!0)},clientCutText:function(be,Ce){var Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,fe=be._sQ,Se=be._sQlen;fe[Se]=6,fe[Se+1]=0,fe[Se+2]=0,fe[Se+3]=0;var ke;Be?ke=(0,y.toUnsigned32bit)(-Ce.length):ke=Ce.length,fe[Se+4]=ke>>24,fe[Se+5]=ke>>16,fe[Se+6]=ke>>8,fe[Se+7]=ke,be._sQlen+=8;for(var rt=0,xt=Ce.length;xt>0;){for(var ht=Math.min(xt,be._sQbufferSize-be._sQlen),He=0;He<ht;He++)fe[be._sQlen+He]=Ce[rt+He];be._sQlen+=ht,be.flush(),xt-=ht,rt+=ht}},setDesktopSize:function(be,Ce,Be,fe,Se){var ke=be._sQ,rt=be._sQlen;ke[rt]=251,ke[rt+1]=0,ke[rt+2]=Ce>>8,ke[rt+3]=Ce,ke[rt+4]=Be>>8,ke[rt+5]=Be,ke[rt+6]=1,ke[rt+7]=0,ke[rt+8]=fe>>24,ke[rt+9]=fe>>16,ke[rt+10]=fe>>8,ke[rt+11]=fe,ke[rt+12]=0,ke[rt+13]=0,ke[rt+14]=0,ke[rt+15]=0,ke[rt+16]=Ce>>8,ke[rt+17]=Ce,ke[rt+18]=Be>>8,ke[rt+19]=Be,ke[rt+20]=Se>>24,ke[rt+21]=Se>>16,ke[rt+22]=Se>>8,ke[rt+23]=Se,be._sQlen+=24,be.flush()},clientFence:function(be,Ce,Be){var fe=be._sQ,Se=be._sQlen;fe[Se]=248,fe[Se+1]=0,fe[Se+2]=0,fe[Se+3]=0,fe[Se+4]=Ce>>24,fe[Se+5]=Ce>>16,fe[Se+6]=Ce>>8,fe[Se+7]=Ce;var ke=Be.length;fe[Se+8]=ke;for(var rt=0;rt<ke;rt++)fe[Se+9+rt]=Be.charCodeAt(rt);be._sQlen+=9+ke,be.flush()},enableContinuousUpdates:function(be,Ce,Be,fe,Se,ke){var rt=be._sQ,xt=be._sQlen;rt[xt]=150,rt[xt+1]=Ce,rt[xt+2]=Be>>8,rt[xt+3]=Be,rt[xt+4]=fe>>8,rt[xt+5]=fe,rt[xt+6]=Se>>8,rt[xt+7]=Se,rt[xt+8]=ke>>8,rt[xt+9]=ke,be._sQlen+=10,be.flush()},pixelFormat:function(be,Ce,Be){var fe=be._sQ,Se=be._sQlen,ke;Ce>16?ke=32:Ce>8?ke=16:ke=8;var rt=Math.floor(Ce/3);fe[Se]=0,fe[Se+1]=0,fe[Se+2]=0,fe[Se+3]=0,fe[Se+4]=ke,fe[Se+5]=Ce,fe[Se+6]=0,fe[Se+7]=Be?1:0,fe[Se+8]=0,fe[Se+9]=(1<<rt)-1,fe[Se+10]=0,fe[Se+11]=(1<<rt)-1,fe[Se+12]=0,fe[Se+13]=(1<<rt)-1,fe[Se+14]=rt*2,fe[Se+15]=rt*1,fe[Se+16]=rt*0,fe[Se+17]=0,fe[Se+18]=0,fe[Se+19]=0,be._sQlen+=20,be.flush()},clientEncodings:function(be,Ce){var Be=be._sQ,fe=be._sQlen;Be[fe]=2,Be[fe+1]=0,Be[fe+2]=Ce.length>>8,Be[fe+3]=Ce.length;for(var Se=fe+4,ke=0;ke<Ce.length;ke++){var rt=Ce[ke];Be[Se]=rt>>24,Be[Se+1]=rt>>16,Be[Se+2]=rt>>8,Be[Se+3]=rt,Se+=4}be._sQlen+=Se-fe,be.flush()},fbUpdateRequest:function(be,Ce,Be,fe,Se,ke){var rt=be._sQ,xt=be._sQlen;typeof Be=="undefined"&&(Be=0),typeof fe=="undefined"&&(fe=0),rt[xt]=3,rt[xt+1]=Ce?1:0,rt[xt+2]=Be>>8&255,rt[xt+3]=Be&255,rt[xt+4]=fe>>8&255,rt[xt+5]=fe&255,rt[xt+6]=Se>>8&255,rt[xt+7]=Se&255,rt[xt+8]=ke>>8&255,rt[xt+9]=ke&255,be._sQlen+=10,be.flush()},xvpOp:function(be,Ce,Be){var fe=be._sQ,Se=be._sQlen;fe[Se]=250,fe[Se+1]=0,fe[Se+2]=Ce,fe[Se+3]=Be,be._sQlen+=4,be.flush()}},$.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}}},"1eCo":function(k,D,n){(function(y){y(n("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={},u=m.htmlMode?p:x;for(var o in u)d[o]=u[o];for(var o in m)d[o]=m[o];var i,t;function s(I,R){function M(X){return R.tokenize=X,X(I,R)}var B=I.next();if(B=="<")return I.eat("!")?I.eat("[")?I.match("CDATA[")?M(r("atom","]]>")):null:I.match("--")?M(r("comment","-->")):I.match("DOCTYPE",!0,!0)?(I.eatWhile(/[\w\._\-]/),M(a(1))):null:I.eat("?")?(I.eatWhile(/[\w\._\-]/),R.tokenize=r("meta","?>"),"meta"):(i=I.eat("/")?"closeTag":"openTag",R.tokenize=e,"tag bracket");if(B=="&"){var P;return I.eat("#")?I.eat("x")?P=I.eatWhile(/[a-fA-F\d]/)&&I.eat(";"):P=I.eatWhile(/[\d]/)&&I.eat(";"):P=I.eatWhile(/[\w\.\-:]/)&&I.eat(";"),P?"atom":"error"}else return I.eatWhile(/[^&<]/),null}s.isInText=!0;function e(I,R){var M=I.next();if(M==">"||M=="/"&&I.eat(">"))return R.tokenize=s,i=M==">"?"endTag":"selfcloseTag","tag bracket";if(M=="=")return i="equals",null;if(M=="<"){R.tokenize=s,R.state=A,R.tagName=R.tagStart=null;var B=R.tokenize(I,R);return B?B+" tag error":"tag error"}else return/[\'\"]/.test(M)?(R.tokenize=l(M),R.stringStartCol=I.column(),R.tokenize(I,R)):(I.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(I){var R=function(B,P){for(;!B.eol();)if(B.next()==I){P.tokenize=e;break}return"string"};return R.isInAttribute=!0,R}function r(I,R){return function(M,B){for(;!M.eol();){if(M.match(R)){B.tokenize=s;break}M.next()}return I}}function a(I){return function(R,M){for(var B;(B=R.next())!=null;){if(B=="<")return M.tokenize=a(I+1),M.tokenize(R,M);if(B==">")if(I==1){M.tokenize=s;break}else return M.tokenize=a(I-1),M.tokenize(R,M)}return"meta"}}function c(I,R,M){this.prev=I.context,this.tagName=R,this.indent=I.indented,this.startOfLine=M,(d.doNotIndent.hasOwnProperty(R)||I.context&&I.context.noIndent)&&(this.noIndent=!0)}function h(I){I.context&&(I.context=I.context.prev)}function g(I,R){for(var M;;){if(!I.context)return;if(M=I.context.tagName,!d.contextGrabbers.hasOwnProperty(M)||!d.contextGrabbers[M].hasOwnProperty(R))return;h(I)}}function A(I,R,M){return I=="openTag"?(M.tagStart=R.column(),b):I=="closeTag"?S:A}function b(I,R,M){return I=="word"?(M.tagName=R.current(),t="tag",_):d.allowMissingTagName&&I=="endTag"?(t="tag bracket",_(I,R,M)):(t="error",b)}function S(I,R,M){if(I=="word"){var B=R.current();return M.context&&M.context.tagName!=B&&d.implicitlyClosed.hasOwnProperty(M.context.tagName)&&h(M),M.context&&M.context.tagName==B||d.matchClosing===!1?(t="tag",E):(t="tag error",C)}else return d.allowMissingTagName&&I=="endTag"?(t="tag bracket",E(I,R,M)):(t="error",C)}function E(I,R,M){return I!="endTag"?(t="error",E):(h(M),A)}function C(I,R,M){return t="error",E(I,R,M)}function _(I,R,M){if(I=="word")return t="attribute",T;if(I=="endTag"||I=="selfcloseTag"){var B=M.tagName,P=M.tagStart;return M.tagName=M.tagStart=null,I=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(B)?g(M,B):(g(M,B),M.context=new c(M,B,P==M.indented)),A}return t="error",_}function T(I,R,M){return I=="equals"?w:(d.allowMissing||(t="error"),_(I,R,M))}function w(I,R,M){return I=="string"?O:I=="word"&&d.allowUnquoted?(t="string",_):(t="error",_(I,R,M))}function O(I,R,M){return I=="string"?O:_(I,R,M)}return{startState:function(R){var M={tokenize:s,state:A,indented:R||0,tagName:null,tagStart:null,context:null};return R!=null&&(M.baseIndent=R),M},token:function(R,M){if(!M.tagName&&R.sol()&&(M.indented=R.indentation()),R.eatSpace())return null;i=null;var B=M.tokenize(R,M);return(B||i)&&B!="comment"&&(t=null,M.state=M.state(i||B,R,M),t&&(B=t=="error"?B+" error":t)),B},indent:function(R,M,B){var P=R.context;if(R.tokenize.isInAttribute)return R.tagStart==R.indented?R.stringStartCol+1:R.indented+f;if(P&&P.noIndent)return y.Pass;if(R.tokenize!=e&&R.tokenize!=s)return B?B.match(/^(\s*)/)[0].length:0;if(R.tagName)return d.multilineTagIndentPastTag!==!1?R.tagStart+R.tagName.length+2:R.tagStart+f*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(M))return 0;var X=M&&/^<(\/)?([\w_:\.-]*)/.exec(M);if(X&&X[1])for(;P;)if(P.tagName==X[2]){P=P.prev;break}else if(d.implicitlyClosed.hasOwnProperty(P.tagName))P=P.prev;else break;else if(X)for(;P;){var F=d.contextGrabbers[P.tagName];if(F&&F.hasOwnProperty(X[2]))P=P.prev;else break}for(;P&&P.prev&&!P.startOfLine;)P=P.prev;return P?P.indent+f:R.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(R){R.state==w&&(R.state=_)},xmlCurrentTag:function(R){return R.tagName?{name:R.tagName,close:R.type=="closeTag"}:null},xmlCurrentContext:function(R){for(var M=[],B=R.context;B;B=B.prev)B.tagName&&M.push(B.tagName);return M.reverse()}}}),y.defineMIME("text/xml","xml"),y.defineMIME("application/xml","xml"),y.mimeModes.hasOwnProperty("text/html")||y.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1hJj":function(k,D,n){var y=n("e4Nc"),p=n("ftKO"),x=n("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,k.exports=v},"1n7x":function(k,D,n){(function(y,p){/*!
* html2pdf.js v0.10.1
* Copyright (c) 2021 Erik Koopmans
* Released under the MIT License.
*/(function(v,m){k.exports=m(n("dtIV"),n("wOnQ"))})(self,function(x,v){return function(){var m={"./src/plugin/hyperlinks.js":function(i,t,s){"use strict";s.r(t);var e=s("./node_modules/core-js/modules/web.dom-collections.for-each.js"),l=s.n(e),r=s("./node_modules/core-js/modules/es.string.link.js"),a=s.n(r),c=s("./src/worker.js"),h=s("./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 w=T.getClientRects(),O=0;O<w.length;O++){var I=(0,h.unitConvert)(w[O],this.prop.pageSize.k);I.left-=_.left,I.top-=_.top;var R=Math.floor(I.top/this.prop.pageSize.inner.height)+1,M=this.opt.margin[0]+I.top%this.prop.pageSize.inner.height,B=this.opt.margin[1]+I.left;g.push({page:R,top:M,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(i,t,s){"use strict";s.r(t);var e=s("./node_modules/core-js/modules/es.symbol.js"),l=s.n(e),r=s("./node_modules/core-js/modules/es.symbol.description.js"),a=s.n(r),c=s("./node_modules/core-js/modules/es.object.to-string.js"),h=s.n(c),g=s("./node_modules/core-js/modules/es.symbol.iterator.js"),A=s.n(g),b=s("./node_modules/core-js/modules/es.array.iterator.js"),S=s.n(b),E=s("./node_modules/core-js/modules/es.string.iterator.js"),C=s.n(E),_=s("./node_modules/core-js/modules/web.dom-collections.iterator.js"),T=s.n(_),w=s("jspdf"),O=s.n(w);function I(R){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(R)}w.jsPDF.getPageSize=function(R,M,B){if(I(R)==="object"){var P=R;R=P.orientation,M=P.unit||M,B=P.format||B}M=M||"mm",B=B||"a4",R=(""+(R||"P")).toLowerCase();var X=(""+B).toLowerCase(),F={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(M){case"pt":var j=1;break;case"mm":var j=72/25.4;break;case"cm":var j=72/2.54;break;case"in":var j=72;break;case"px":var j=72/96;break;case"pc":var j=12;break;case"em":var j=12;break;case"ex":var j=6;break;default:throw"Invalid unit: "+M}if(F.hasOwnProperty(X))var K=F[X][1]/j,z=F[X][0]/j;else try{var K=B[1],z=B[0]}catch(G){throw new Error("Invalid format: "+B)}if(R==="p"||R==="portrait"){if(R="p",z>K){var V=z;z=K,K=V}}else if(R==="l"||R==="landscape"){if(R="l",K>z){var V=z;z=K,K=V}}else throw"Invalid orientation: "+R;var Q={width:z,height:K,unit:M,k:j};return Q},t.default=w.jsPDF},"./src/plugin/pagebreaks.js":function(i,t,s){"use strict";s.r(t);var e=s("./node_modules/core-js/modules/es.array.concat.js"),l=s.n(e),r=s("./node_modules/core-js/modules/es.array.slice.js"),a=s.n(r),c=s("./node_modules/core-js/modules/es.array.join.js"),h=s.n(c),g=s("./node_modules/core-js/modules/web.dom-collections.for-each.js"),A=s.n(g),b=s("./node_modules/core-js/modules/es.object.keys.js"),S=s.n(b),E=s("./src/worker.js"),C=s("./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,R=[].concat(this.opt.pagebreak.mode),M={avoidAll:R.indexOf("avoid-all")!==-1,css:R.indexOf("css")!==-1,legacy:R.indexOf("legacy")!==-1},B={},P=this;["before","after","avoid"].forEach(function(j){var K=M.avoidAll&&j==="avoid";B[j]=K?[]:[].concat(P.opt.pagebreak[j]||[]),B[j].length>0&&(B[j]=Array.prototype.slice.call(O.querySelectorAll(B[j].join(", "))))});var X=O.querySelectorAll(".html2pdf__page-break");X=Array.prototype.slice.call(X);var F=O.querySelectorAll("*");Array.prototype.forEach.call(F,function(K){var z={before:!1,after:M.legacy&&X.indexOf(K)!==-1,avoid:M.avoidAll};if(M.css){var V=window.getComputedStyle(K),Q=["always","page","left","right"],G=["avoid","avoid-page"];z={before:z.before||Q.indexOf(V.breakBefore||V.pageBreakBefore)!==-1,after:z.after||Q.indexOf(V.breakAfter||V.pageBreakAfter)!==-1,avoid:z.avoid||G.indexOf(V.breakInside||V.pageBreakInside)!==-1}}Object.keys(z).forEach(function(Ie){z[Ie]=z[Ie]||B[Ie].indexOf(K)!==-1});var te=K.getBoundingClientRect();if(z.avoid&&!z.before){var q=Math.floor(te.top/I),le=Math.floor(te.bottom/I),re=Math.abs(te.bottom-te.top)/I;le!==q&&re<=1&&(z.before=!0)}if(z.before){var we=(0,C.createElement)("div",{style:{display:"block",height:I-te.top%I+"px"}});K.parentNode.insertBefore(we,K)}if(z.after){var we=(0,C.createElement)("div",{style:{display:"block",height:I-te.bottom%I+"px"}});K.parentNode.insertBefore(we,K.nextSibling)}})})}},"./src/utils.js":function(i,t,s){"use strict";s.r(t),s.d(t,{objType:function(){return R},createElement:function(){return M},cloneNode:function(){return B},unitConvert:function(){return P},toPx:function(){return X}});var e=s("./node_modules/core-js/modules/es.number.constructor.js"),l=s.n(e),r=s("./node_modules/core-js/modules/es.symbol.js"),a=s.n(r),c=s("./node_modules/core-js/modules/es.symbol.description.js"),h=s.n(c),g=s("./node_modules/core-js/modules/es.object.to-string.js"),A=s.n(g),b=s("./node_modules/core-js/modules/es.symbol.iterator.js"),S=s.n(b),E=s("./node_modules/core-js/modules/es.array.iterator.js"),C=s.n(E),_=s("./node_modules/core-js/modules/es.string.iterator.js"),T=s.n(_),w=s("./node_modules/core-js/modules/web.dom-collections.iterator.js"),O=s.n(w);function I(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(K){return typeof K}:I=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},I(F)}var R=function(j){var K=I(j);return K==="undefined"?"undefined":K==="string"||j instanceof String?"string":K==="number"||j instanceof Number?"number":K==="function"||j instanceof Function?"function":!!j&&j.constructor===Array?"array":j&&j.nodeType===1?"element":K==="object"?"object":"unknown"},M=function(j,K){var z=document.createElement(j);if(K.className&&(z.className=K.className),K.innerHTML){z.innerHTML=K.innerHTML;for(var V=z.getElementsByTagName("script"),Q=V.length;Q-- >0;null)V[Q].parentNode.removeChild(V[Q])}for(var G in K.style)z.style[G]=K.style[G];return z},B=function F(j,K){for(var z=j.nodeType===3?document.createTextNode(j.nodeValue):j.cloneNode(!1),V=j.firstChild;V;V=V.nextSibling)(K===!0||V.nodeType!==1||V.nodeName!=="SCRIPT")&&z.appendChild(F(V,K));return j.nodeType===1&&(j.nodeName==="CANVAS"?(z.width=j.width,z.height=j.height,z.getContext("2d").drawImage(j,0,0)):(j.nodeName==="TEXTAREA"||j.nodeName==="SELECT")&&(z.value=j.value),z.addEventListener("load",function(){z.scrollTop=j.scrollTop,z.scrollLeft=j.scrollLeft},!0)),z},P=function(j,K){if(R(j)==="number")return j*72/96/K;var z={};for(var V in j)z[V]=j[V]*72/96/K;return z},X=function(j,K){return Math.floor(j*K/72*96)}},"./src/worker.js":function(i,t,s){"use strict";s.r(t);var e=s("./node_modules/core-js/modules/es.object.assign.js"),l=s.n(e),r=s("./node_modules/core-js/modules/es.array.map.js"),a=s.n(r),c=s("./node_modules/core-js/modules/es.object.keys.js"),h=s.n(c),g=s("./node_modules/core-js/modules/es.array.concat.js"),A=s.n(g),b=s("./node_modules/core-js/modules/es.object.to-string.js"),S=s.n(b),E=s("./node_modules/core-js/modules/es.regexp.to-string.js"),C=s.n(E),_=s("./node_modules/core-js/modules/es.function.name.js"),T=s.n(_),w=s("./node_modules/core-js/modules/web.dom-collections.for-each.js"),O=s.n(w),I=s("jspdf"),R=s.n(I),M=s("html2canvas"),B=s.n(M),P=s("./src/utils.js"),X=s("./node_modules/es6-promise/dist/es6-promise.js"),F=s.n(X),j=F().Promise,K=function z(V){var Q=Object.assign(z.convert(j.resolve()),JSON.parse(JSON.stringify(z.template))),G=z.convert(j.resolve(),Q);return G=G.setProgress(1,z,1,[z]),G=G.set(V),G};K.prototype=Object.create(j.prototype),K.prototype.constructor=K,K.convert=function(V,Q){return V.__proto__=Q||K.prototype,V},K.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},K.prototype.from=function(V,Q){function G(te){switch((0,P.objType)(te)){case"string":return"string";case"element":return te.nodeName.toLowerCase==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){Q=Q||G(V);switch(Q){case"string":return this.set({src:(0,P.createElement)("div",{innerHTML:V})});case"element":return this.set({src:V});case"canvas":return this.set({canvas:V});case"img":return this.set({img:V});default:return this.error("Unknown source type.")}})},K.prototype.to=function(V){switch(V){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},K.prototype.toContainer=function(){var V=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(V).then(function(){var G={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},te={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};G.opacity=0;var q=(0,P.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,P.createElement)("div",{className:"html2pdf__overlay",style:G}),this.prop.container=(0,P.createElement)("div",{className:"html2pdf__container",style:te}),this.prop.container.appendChild(q),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},K.prototype.toCanvas=function(){var V=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(V).then(function(){var G=Object.assign({},this.opt.html2canvas);return delete G.onrendered,M(this.prop.container,G)}).then(function(G){var te=this.opt.html2canvas.onrendered||function(){};te(G),this.prop.canvas=G,document.body.removeChild(this.prop.overlay)})},K.prototype.toImg=function(){var V=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(V).then(function(){var G=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=G})},K.prototype.toPdf=function(){var V=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(V).then(function(){var G=this.prop.canvas,te=this.opt,q=G.height,le=Math.floor(G.width*this.prop.pageSize.inner.ratio),re=Math.ceil(q/le),we=this.prop.pageSize.inner.height,Ie=document.createElement("canvas"),Me=Ie.getContext("2d");Ie.width=G.width,Ie.height=le,this.prop.pdf=this.prop.pdf||new I.jsPDF(te.jsPDF);for(var Je=0;Je<re;Je++){Je===re-1&&q%le!==0&&(Ie.height=q%le,we=Ie.height*this.prop.pageSize.inner.width/Ie.width);var Ve=Ie.width,ut=Ie.height;Me.fillStyle="white",Me.fillRect(0,0,Ve,ut),Me.drawImage(G,0,Je*le,Ve,ut,0,0,Ve,ut),Je&&this.prop.pdf.addPage();var Fe=Ie.toDataURL("image/"+te.image.type,te.image.quality);this.prop.pdf.addImage(Fe,te.image.type,te.margin[1],te.margin[0],this.prop.pageSize.inner.width,we)}})},K.prototype.output=function(V,Q,G){return G=G||"pdf",G.toLowerCase()==="img"||G.toLowerCase()==="image"?this.outputImg(V,Q):this.outputPdf(V,Q)},K.prototype.outputPdf=function(V,Q){var G=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(G).then(function(){return this.prop.pdf.output(V,Q)})},K.prototype.outputImg=function(V,Q){var G=[function(){return this.prop.img||this.toImg()}];return this.thenList(G).then(function(){switch(V){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+V+'" is not supported.'}})},K.prototype.save=function(V){var Q=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Q).set(V?{filename:V}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},K.prototype.set=function(V){if((0,P.objType)(V)!=="object")return this;var Q=Object.keys(V||{}).map(function(G){switch(G){case"margin":return this.setMargin.bind(this,V.margin);case"jsPDF":return function(){return this.opt.jsPDF=V.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,V.pageSize);default:return G in K.template.prop?function(){this.prop[G]=V[G]}:function(){this.opt[G]=V[G]}}},this);return this.then(function(){return this.thenList(Q)})},K.prototype.get=function(V,Q){return this.then(function(){var te=V in K.template.prop?this.prop[V]:this.opt[V];return Q?Q(te):te})},K.prototype.setMargin=function(V){return this.then(function(){switch((0,P.objType)(V)){case"number":V=[V,V,V,V];case"array":if(V.length===2&&(V=[V[0],V[1],V[0],V[1]]),V.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=V}).then(this.setPageSize)},K.prototype.setPageSize=function(V){return this.then(function(){V=V||I.jsPDF.getPageSize(this.opt.jsPDF),V.hasOwnProperty("inner")||(V.inner={width:V.width-this.opt.margin[1]-this.opt.margin[3],height:V.height-this.opt.margin[0]-this.opt.margin[2]},V.inner.px={width:(0,P.toPx)(V.inner.width,V.k),height:(0,P.toPx)(V.inner.height,V.k)},V.inner.ratio=V.inner.height/V.inner.width),this.prop.pageSize=V})},K.prototype.setProgress=function(V,Q,G,te){return V!=null&&(this.progress.val=V),Q!=null&&(this.progress.state=Q),G!=null&&(this.progress.n=G),te!=null&&(this.progress.stack=te),this.progress.ratio=this.progress.val/this.progress.state,this},K.prototype.updateProgress=function(V,Q,G,te){return this.setProgress(V?this.progress.val+V:null,Q||null,G?this.progress.n+G:null,te?this.progress.stack.concat(te):null)},K.prototype.then=function(V,Q){var G=this;return this.thenCore(V,Q,function(q,le){return G.updateProgress(null,null,1,[q]),j.prototype.then.call(this,function(we){return G.updateProgress(null,q),we}).then(q,le).then(function(we){return G.updateProgress(1),we})})},K.prototype.thenCore=function(V,Q,G){G=G||j.prototype.then;var te=this;V&&(V=V.bind(te)),Q&&(Q=Q.bind(te));var q=j.toString().indexOf("[native code]")!==-1&&j.name==="Promise",le=q?te:K.convert(Object.assign({},te),j.prototype),re=G.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(i){i.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"./node_modules/core-js/internals/a-possible-prototype.js":function(i,t,s){var e=s("./node_modules/core-js/internals/is-object.js");i.exports=function(l){if(!e(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"./node_modules/core-js/internals/add-to-unscopables.js":function(i,t,s){var e=s("./node_modules/core-js/internals/well-known-symbol.js"),l=s("./node_modules/core-js/internals/object-create.js"),r=s("./node_modules/core-js/internals/object-define-property.js"),a=e("unscopables"),c=Array.prototype;c[a]==null&&r.f(c,a,{configurable:!0,value:l(null)}),i.exports=function(h){c[a][h]=!0}},"./node_modules/core-js/internals/an-object.js":function(i,t,s){var e=s("./node_modules/core-js/internals/is-object.js");i.exports=function(l){if(!e(l))throw TypeError(String(l)+" is not an object");return l}},"./node_modules/core-js/internals/array-for-each.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/array-iteration.js").forEach,l=s("./node_modules/core-js/internals/array-method-is-strict.js"),r=l("forEach");i.exports=r?[].forEach:function(c){return e(this,c,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-indexed-object.js"),l=s("./node_modules/core-js/internals/to-length.js"),r=s("./node_modules/core-js/internals/to-absolute-index.js"),a=function(h){return function(g,A,b){var S=e(g),E=l(S.length),C=r(b,E),_;if(h&&A!=A){for(;E>C;)if(_=S[C++],_!=_)return!0}else for(;E>C;C++)if((h||C in S)&&S[C]===A)return h||C||0;return!h&&-1}};i.exports={includes:a(!0),indexOf:a(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(i,t,s){var e=s("./node_modules/core-js/internals/function-bind-context.js"),l=s("./node_modules/core-js/internals/indexed-object.js"),r=s("./node_modules/core-js/internals/to-object.js"),a=s("./node_modules/core-js/internals/to-length.js"),c=s("./node_modules/core-js/internals/array-species-create.js"),h=[].push,g=function(b){var S=b==1,E=b==2,C=b==3,_=b==4,T=b==6,w=b==7,O=b==5||T;return function(I,R,M,B){for(var P=r(I),X=l(P),F=e(R,M,3),j=a(X.length),K=0,z=B||c,V=S?z(I,j):E||w?z(I,0):void 0,Q,G;j>K;K++)if((O||K in X)&&(Q=X[K],G=F(Q,K,P),b))if(S)V[K]=G;else if(G)switch(b){case 3:return!0;case 5:return Q;case 6:return K;case 2:h.call(V,Q)}else switch(b){case 4:return!1;case 7:h.call(V,Q)}return T?-1:C||_?_:V}};i.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(i,t,s){var e=s("./node_modules/core-js/internals/fails.js"),l=s("./node_modules/core-js/internals/well-known-symbol.js"),r=s("./node_modules/core-js/internals/engine-v8-version.js"),a=l("species");i.exports=function(c){return r>=51||!e(function(){var h=[],g=h.constructor={};return g[a]=function(){return{foo:1}},h[c](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/fails.js");i.exports=function(l,r){var a=[][l];return!!a&&e(function(){a.call(null,r||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(i,t,s){var e=s("./node_modules/core-js/internals/is-object.js"),l=s("./node_modules/core-js/internals/is-array.js"),r=s("./node_modules/core-js/internals/well-known-symbol.js"),a=r("species");i.exports=function(c){var h;return l(c)&&(h=c.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:e(h)&&(h=h[a],h===null&&(h=void 0))),h===void 0?Array:h}},"./node_modules/core-js/internals/array-species-create.js":function(i,t,s){var e=s("./node_modules/core-js/internals/array-species-constructor.js");i.exports=function(l,r){return new(e(l))(r===0?0:r)}},"./node_modules/core-js/internals/classof-raw.js":function(i){var t={}.toString;i.exports=function(s){return t.call(s).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-string-tag-support.js"),l=s("./node_modules/core-js/internals/classof-raw.js"),r=s("./node_modules/core-js/internals/well-known-symbol.js"),a=r("toStringTag"),c=l(function(){return arguments}())=="Arguments",h=function(A,b){try{return A[b]}catch(S){}};i.exports=e?l:function(g){var A,b,S;return g===void 0?"Undefined":g===null?"Null":typeof(b=h(A=Object(g),a))=="string"?b:c?l(A):(S=l(A))=="Object"&&typeof A.callee=="function"?"Arguments":S}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(i,t,s){var e=s("./node_modules/core-js/internals/has.js"),l=s("./node_modules/core-js/internals/own-keys.js"),r=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),a=s("./node_modules/core-js/internals/object-define-property.js");i.exports=function(c,h){for(var g=l(h),A=a.f,b=r.f,S=0;S<g.length;S++){var E=g[S];e(c,E)||A(c,E,b(h,E))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(i,t,s){var e=s("./node_modules/core-js/internals/fails.js");i.exports=!e(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},"./node_modules/core-js/internals/create-html.js":function(i,t,s){var e=s("./node_modules/core-js/internals/require-object-coercible.js"),l=s("./node_modules/core-js/internals/to-string.js"),r=/"/g;i.exports=function(a,c,h,g){var A=l(e(a)),b="<"+c;return h!==""&&(b+=" "+h+'="'+l(g).replace(r,"&quot;")+'"'),b+">"+A+"</"+c+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,l=s("./node_modules/core-js/internals/object-create.js"),r=s("./node_modules/core-js/internals/create-property-descriptor.js"),a=s("./node_modules/core-js/internals/set-to-string-tag.js"),c=s("./node_modules/core-js/internals/iterators.js"),h=function(){return this};i.exports=function(g,A,b){var S=A+" Iterator";return g.prototype=l(e,{next:r(1,b)}),a(g,S,!1,!0),c[S]=h,g}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(i,t,s){var e=s("./node_modules/core-js/internals/descriptors.js"),l=s("./node_modules/core-js/internals/object-define-property.js"),r=s("./node_modules/core-js/internals/create-property-descriptor.js");i.exports=e?function(a,c,h){return l.f(a,c,r(1,h))}:function(a,c,h){return a[c]=h,a}},"./node_modules/core-js/internals/create-property-descriptor.js":function(i){i.exports=function(t,s){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:s}}},"./node_modules/core-js/internals/create-property.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/to-property-key.js"),l=s("./node_modules/core-js/internals/object-define-property.js"),r=s("./node_modules/core-js/internals/create-property-descriptor.js");i.exports=function(a,c,h){var g=e(c);g in a?l.f(a,g,r(0,h)):a[g]=h}},"./node_modules/core-js/internals/define-iterator.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/create-iterator-constructor.js"),r=s("./node_modules/core-js/internals/object-get-prototype-of.js"),a=s("./node_modules/core-js/internals/object-set-prototype-of.js"),c=s("./node_modules/core-js/internals/set-to-string-tag.js"),h=s("./node_modules/core-js/internals/create-non-enumerable-property.js"),g=s("./node_modules/core-js/internals/redefine.js"),A=s("./node_modules/core-js/internals/well-known-symbol.js"),b=s("./node_modules/core-js/internals/is-pure.js"),S=s("./node_modules/core-js/internals/iterators.js"),E=s("./node_modules/core-js/internals/iterators-core.js"),C=E.IteratorPrototype,_=E.BUGGY_SAFARI_ITERATORS,T=A("iterator"),w="keys",O="values",I="entries",R=function(){return this};i.exports=function(M,B,P,X,F,j,K){l(P,B,X);var z=function(Je){if(Je===F&&q)return q;if(!_&&Je in G)return G[Je];switch(Je){case w:return function(){return new P(this,Je)};case O:return function(){return new P(this,Je)};case I:return function(){return new P(this,Je)}}return function(){return new P(this)}},V=B+" Iterator",Q=!1,G=M.prototype,te=G[T]||G["@@iterator"]||F&&G[F],q=!_&&te||z(F),le=B=="Array"&&G.entries||te,re,we,Ie;if(le&&(re=r(le.call(new M)),C!==Object.prototype&&re.next&&(!b&&r(re)!==C&&(a?a(re,C):typeof re[T]!="function"&&h(re,T,R)),c(re,V,!0,!0),b&&(S[V]=R))),F==O&&te&&te.name!==O&&(Q=!0,q=function(){return te.call(this)}),(!b||K)&&G[T]!==q&&h(G,T,q),S[B]=q,F)if(we={values:z(O),keys:j?q:z(w),entries:z(I)},K)for(Ie in we)(_||Q||!(Ie in G))&&g(G,Ie,we[Ie]);else e({target:B,proto:!0,forced:_||Q},we);return we}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(i,t,s){var e=s("./node_modules/core-js/internals/path.js"),l=s("./node_modules/core-js/internals/has.js"),r=s("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),a=s("./node_modules/core-js/internals/object-define-property.js").f;i.exports=function(c){var h=e.Symbol||(e.Symbol={});l(h,c)||a(h,c,{value:r.f(c)})}},"./node_modules/core-js/internals/descriptors.js":function(i,t,s){var e=s("./node_modules/core-js/internals/fails.js");i.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/is-object.js"),r=e.document,a=l(r)&&l(r.createElement);i.exports=function(c){return a?r.createElement(c):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(i){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(i,t,s){var e=s("./node_modules/core-js/internals/get-built-in.js");i.exports=e("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/engine-user-agent.js"),r=e.process,a=e.Deno,c=r&&r.versions||a&&a.version,h=c&&c.v8,g,A;h?(g=h.split("."),A=g[0]<4?1:g[0]+g[1]):l&&(g=l.match(/Edge\/(\d+)/),(!g||g[1]>=74)&&(g=l.match(/Chrome\/(\d+)/),g&&(A=g[1]))),i.exports=A&&+A},"./node_modules/core-js/internals/enum-bug-keys.js":function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,r=s("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=s("./node_modules/core-js/internals/redefine.js"),c=s("./node_modules/core-js/internals/set-global.js"),h=s("./node_modules/core-js/internals/copy-constructor-properties.js"),g=s("./node_modules/core-js/internals/is-forced.js");i.exports=function(A,b){var S=A.target,E=A.global,C=A.stat,_,T,w,O,I,R;if(E?T=e:C?T=e[S]||c(S,{}):T=(e[S]||{}).prototype,T)for(w in b){if(I=b[w],A.noTargetGet?(R=l(T,w),O=R&&R.value):O=T[w],_=g(E?w:S+(C?".":"#")+w,A.forced),!_&&O!==void 0){if(typeof I===typeof O)continue;h(I,O)}(A.sham||O&&O.sham)&&r(I,"sham",!0),a(T,w,I,A)}}},"./node_modules/core-js/internals/fails.js":function(i){i.exports=function(t){try{return!!t()}catch(s){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(i,t,s){var e=s("./node_modules/core-js/internals/a-function.js");i.exports=function(l,r,a){if(e(l),r===void 0)return l;switch(a){case 0:return function(){return l.call(r)};case 1:return function(c){return l.call(r,c)};case 2:return function(c,h){return l.call(r,c,h)};case 3:return function(c,h,g){return l.call(r,c,h,g)}}return function(){return l.apply(r,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=function(a){return typeof a=="function"?a:void 0};i.exports=function(r,a){return arguments.length<2?l(e[r]):e[r]&&e[r][a]}},"./node_modules/core-js/internals/global.js":function(i){var t=function(e){return e&&e.Math==Math&&e};i.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof y=="object"&&y)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-object.js"),l={}.hasOwnProperty;i.exports=Object.hasOwn||function(a,c){return l.call(e(a),c)}},"./node_modules/core-js/internals/hidden-keys.js":function(i){i.exports={}},"./node_modules/core-js/internals/html.js":function(i,t,s){var e=s("./node_modules/core-js/internals/get-built-in.js");i.exports=e("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(i,t,s){var e=s("./node_modules/core-js/internals/descriptors.js"),l=s("./node_modules/core-js/internals/fails.js"),r=s("./node_modules/core-js/internals/document-create-element.js");i.exports=!e&&!l(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(i,t,s){var e=s("./node_modules/core-js/internals/fails.js"),l=s("./node_modules/core-js/internals/classof-raw.js"),r="".split;i.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return l(a)=="String"?r.call(a,""):Object(a)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(i,t,s){var e=s("./node_modules/core-js/internals/is-object.js"),l=s("./node_modules/core-js/internals/object-set-prototype-of.js");i.exports=function(r,a,c){var h,g;return l&&typeof(h=a.constructor)=="function"&&h!==c&&e(g=h.prototype)&&g!==c.prototype&&l(r,g),r}},"./node_modules/core-js/internals/inspect-source.js":function(i,t,s){var e=s("./node_modules/core-js/internals/shared-store.js"),l=Function.toString;typeof e.inspectSource!="function"&&(e.inspectSource=function(r){return l.call(r)}),i.exports=e.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(i,t,s){var e=s("./node_modules/core-js/internals/native-weak-map.js"),l=s("./node_modules/core-js/internals/global.js"),r=s("./node_modules/core-js/internals/is-object.js"),a=s("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=s("./node_modules/core-js/internals/has.js"),h=s("./node_modules/core-js/internals/shared-store.js"),g=s("./node_modules/core-js/internals/shared-key.js"),A=s("./node_modules/core-js/internals/hidden-keys.js"),b="Object already initialized",S=l.WeakMap,E,C,_,T=function(X){return _(X)?C(X):E(X,{})},w=function(X){return function(F){var j;if(!r(F)||(j=C(F)).type!==X)throw TypeError("Incompatible receiver, "+X+" required");return j}};if(e||h.state){var O=h.state||(h.state=new S),I=O.get,R=O.has,M=O.set;E=function(X,F){if(R.call(O,X))throw new TypeError(b);return F.facade=X,M.call(O,X,F),F},C=function(X){return I.call(O,X)||{}},_=function(X){return R.call(O,X)}}else{var B=g("state");A[B]=!0,E=function(X,F){if(c(X,B))throw new TypeError(b);return F.facade=X,a(X,B,F),F},C=function(X){return c(X,B)?X[B]:{}},_=function(X){return c(X,B)}}i.exports={set:E,get:C,has:_,enforce:T,getterFor:w}},"./node_modules/core-js/internals/is-array.js":function(i,t,s){var e=s("./node_modules/core-js/internals/classof-raw.js");i.exports=Array.isArray||function(r){return e(r)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(i,t,s){var e=s("./node_modules/core-js/internals/fails.js"),l=/#|\.prototype\./,r=function(b,S){var E=c[a(b)];return E==g?!0:E==h?!1:typeof S=="function"?e(S):!!S},a=r.normalize=function(A){return String(A).replace(l,".").toLowerCase()},c=r.data={},h=r.NATIVE="N",g=r.POLYFILL="P";i.exports=r},"./node_modules/core-js/internals/is-object.js":function(i){i.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},"./node_modules/core-js/internals/is-pure.js":function(i){i.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(i,t,s){var e=s("./node_modules/core-js/internals/get-built-in.js"),l=s("./node_modules/core-js/internals/use-symbol-as-uid.js");i.exports=l?function(r){return typeof r=="symbol"}:function(r){var a=e("Symbol");return typeof a=="function"&&Object(r)instanceof a}},"./node_modules/core-js/internals/iterators-core.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/fails.js"),l=s("./node_modules/core-js/internals/object-get-prototype-of.js"),r=s("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=s("./node_modules/core-js/internals/has.js"),c=s("./node_modules/core-js/internals/well-known-symbol.js"),h=s("./node_modules/core-js/internals/is-pure.js"),g=c("iterator"),A=!1,b=function(){return this},S,E,C;[].keys&&(C=[].keys(),"next"in C?(E=l(l(C)),E!==Object.prototype&&(S=E)):A=!0);var _=S==null||e(function(){var T={};return S[g].call(T)!==T});_&&(S={}),(!h||_)&&!a(S,g)&&r(S,g,b),i.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:A}},"./node_modules/core-js/internals/iterators.js":function(i){i.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(i,t,s){var e=s("./node_modules/core-js/internals/engine-v8-version.js"),l=s("./node_modules/core-js/internals/fails.js");i.exports=!!Object.getOwnPropertySymbols&&!l(function(){var r=Symbol();return!String(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&e&&e<41})},"./node_modules/core-js/internals/native-weak-map.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/inspect-source.js"),r=e.WeakMap;i.exports=typeof r=="function"&&/native code/.test(l(r))},"./node_modules/core-js/internals/object-assign.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/descriptors.js"),l=s("./node_modules/core-js/internals/fails.js"),r=s("./node_modules/core-js/internals/object-keys.js"),a=s("./node_modules/core-js/internals/object-get-own-property-symbols.js"),c=s("./node_modules/core-js/internals/object-property-is-enumerable.js"),h=s("./node_modules/core-js/internals/to-object.js"),g=s("./node_modules/core-js/internals/indexed-object.js"),A=Object.assign,b=Object.defineProperty;i.exports=!A||l(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 S={},E={},C=Symbol(),_="abcdefghijklmnopqrst";return S[C]=7,_.split("").forEach(function(T){E[T]=T}),A({},S)[C]!=7||r(A({},E)).join("")!=_})?function(E,C){for(var _=h(E),T=arguments.length,w=1,O=a.f,I=c.f;T>w;)for(var R=g(arguments[w++]),M=O?r(R).concat(O(R)):r(R),B=M.length,P=0,X;B>P;)X=M[P++],(!e||I.call(R,X))&&(_[X]=R[X]);return _}:A},"./node_modules/core-js/internals/object-create.js":function(i,t,s){var e=s("./node_modules/core-js/internals/an-object.js"),l=s("./node_modules/core-js/internals/object-define-properties.js"),r=s("./node_modules/core-js/internals/enum-bug-keys.js"),a=s("./node_modules/core-js/internals/hidden-keys.js"),c=s("./node_modules/core-js/internals/html.js"),h=s("./node_modules/core-js/internals/document-create-element.js"),g=s("./node_modules/core-js/internals/shared-key.js"),A=">",b="<",S="prototype",E="script",C=g("IE_PROTO"),_=function(){},T=function(B){return b+E+A+B+b+"/"+E+A},w=function(B){B.write(T("")),B.close();var P=B.parentWindow.Object;return B=null,P},O=function(){var B=h("iframe"),P="java"+E+":",X;if(B.style)return B.style.display="none",c.appendChild(B),B.src=String(P),X=B.contentWindow.document,X.open(),X.write(T("document.F=Object")),X.close(),X.F},I,R=function(){try{I=new ActiveXObject("htmlfile")}catch(P){}R=document.domain&&I?w(I):O()||w(I);for(var B=r.length;B--;)delete R[S][r[B]];return R()};a[C]=!0,i.exports=Object.create||function(B,P){var X;return B!==null?(_[S]=e(B),X=new _,_[S]=null,X[C]=B):X=R(),P===void 0?X:l(X,P)}},"./node_modules/core-js/internals/object-define-properties.js":function(i,t,s){var e=s("./node_modules/core-js/internals/descriptors.js"),l=s("./node_modules/core-js/internals/object-define-property.js"),r=s("./node_modules/core-js/internals/an-object.js"),a=s("./node_modules/core-js/internals/object-keys.js");i.exports=e?Object.defineProperties:function(h,g){r(h);for(var A=a(g),b=A.length,S=0,E;b>S;)l.f(h,E=A[S++],g[E]);return h}},"./node_modules/core-js/internals/object-define-property.js":function(i,t,s){var e=s("./node_modules/core-js/internals/descriptors.js"),l=s("./node_modules/core-js/internals/ie8-dom-define.js"),r=s("./node_modules/core-js/internals/an-object.js"),a=s("./node_modules/core-js/internals/to-property-key.js"),c=Object.defineProperty;t.f=e?c:function(g,A,b){if(r(g),A=a(A),r(b),l)try{return c(g,A,b)}catch(S){}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(i,t,s){var e=s("./node_modules/core-js/internals/descriptors.js"),l=s("./node_modules/core-js/internals/object-property-is-enumerable.js"),r=s("./node_modules/core-js/internals/create-property-descriptor.js"),a=s("./node_modules/core-js/internals/to-indexed-object.js"),c=s("./node_modules/core-js/internals/to-property-key.js"),h=s("./node_modules/core-js/internals/has.js"),g=s("./node_modules/core-js/internals/ie8-dom-define.js"),A=Object.getOwnPropertyDescriptor;t.f=e?A:function(S,E){if(S=a(S),E=c(E),g)try{return A(S,E)}catch(C){}if(h(S,E))return r(!l.f.call(S,E),S[E])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-indexed-object.js"),l=s("./node_modules/core-js/internals/object-get-own-property-names.js").f,r={}.toString,a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(g){try{return l(g)}catch(A){return a.slice()}};i.exports.f=function(g){return a&&r.call(g)=="[object Window]"?c(g):l(e(g))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(i,t,s){var e=s("./node_modules/core-js/internals/object-keys-internal.js"),l=s("./node_modules/core-js/internals/enum-bug-keys.js"),r=l.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(c){return e(c,r)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(i,t){t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(i,t,s){var e=s("./node_modules/core-js/internals/has.js"),l=s("./node_modules/core-js/internals/to-object.js"),r=s("./node_modules/core-js/internals/shared-key.js"),a=s("./node_modules/core-js/internals/correct-prototype-getter.js"),c=r("IE_PROTO"),h=Object.prototype;i.exports=a?Object.getPrototypeOf:function(g){return g=l(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(i,t,s){var e=s("./node_modules/core-js/internals/has.js"),l=s("./node_modules/core-js/internals/to-indexed-object.js"),r=s("./node_modules/core-js/internals/array-includes.js").indexOf,a=s("./node_modules/core-js/internals/hidden-keys.js");i.exports=function(c,h){var g=l(c),A=0,b=[],S;for(S in g)!e(a,S)&&e(g,S)&&b.push(S);for(;h.length>A;)e(g,S=h[A++])&&(~r(b,S)||b.push(S));return b}},"./node_modules/core-js/internals/object-keys.js":function(i,t,s){var e=s("./node_modules/core-js/internals/object-keys-internal.js"),l=s("./node_modules/core-js/internals/enum-bug-keys.js");i.exports=Object.keys||function(a){return e(a,l)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(i,t){"use strict";var s={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,l=e&&!s.call({1:2},1);t.f=l?function(a){var c=e(this,a);return!!c&&c.enumerable}:s},"./node_modules/core-js/internals/object-set-prototype-of.js":function(i,t,s){var e=s("./node_modules/core-js/internals/an-object.js"),l=s("./node_modules/core-js/internals/a-possible-prototype.js");i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,a={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(a,[]),r=a instanceof Array}catch(h){}return function(g,A){return e(g),l(A),r?c.call(g,A):g.__proto__=A,g}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/to-string-tag-support.js"),l=s("./node_modules/core-js/internals/classof.js");i.exports=e?{}.toString:function(){return"[object "+l(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(i,t,s){var e=s("./node_modules/core-js/internals/is-object.js");i.exports=function(l,r){var a,c;if(r==="string"&&typeof(a=l.toString)=="function"&&!e(c=a.call(l)))return c;if(typeof(a=l.valueOf)=="function"&&!e(c=a.call(l)))return c;if(r!=="string"&&typeof(a=l.toString)=="function"&&!e(c=a.call(l)))return c;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(i,t,s){var e=s("./node_modules/core-js/internals/get-built-in.js"),l=s("./node_modules/core-js/internals/object-get-own-property-names.js"),r=s("./node_modules/core-js/internals/object-get-own-property-symbols.js"),a=s("./node_modules/core-js/internals/an-object.js");i.exports=e("Reflect","ownKeys")||function(h){var g=l.f(a(h)),A=r.f;return A?g.concat(A(h)):g}},"./node_modules/core-js/internals/path.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js");i.exports=e},"./node_modules/core-js/internals/redefine.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/create-non-enumerable-property.js"),r=s("./node_modules/core-js/internals/has.js"),a=s("./node_modules/core-js/internals/set-global.js"),c=s("./node_modules/core-js/internals/inspect-source.js"),h=s("./node_modules/core-js/internals/internal-state.js"),g=h.get,A=h.enforce,b=String(String).split("String");(i.exports=function(S,E,C,_){var T=_?!!_.unsafe:!1,w=_?!!_.enumerable:!1,O=_?!!_.noTargetGet:!1,I;if(typeof C=="function"&&(typeof E=="string"&&!r(C,"name")&&l(C,"name",E),I=A(C),I.source||(I.source=b.join(typeof E=="string"?E:""))),S===e){w?S[E]=C:a(E,C);return}else T?!O&&S[E]&&(w=!0):delete S[E];w?S[E]=C:l(S,E,C)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||c(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/an-object.js");i.exports=function(){var l=e(this),r="";return l.global&&(r+="g"),l.ignoreCase&&(r+="i"),l.multiline&&(r+="m"),l.dotAll&&(r+="s"),l.unicode&&(r+="u"),l.sticky&&(r+="y"),r}},"./node_modules/core-js/internals/require-object-coercible.js":function(i){i.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"./node_modules/core-js/internals/set-global.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js");i.exports=function(l,r){try{Object.defineProperty(e,l,{value:r,configurable:!0,writable:!0})}catch(a){e[l]=r}return r}},"./node_modules/core-js/internals/set-to-string-tag.js":function(i,t,s){var e=s("./node_modules/core-js/internals/object-define-property.js").f,l=s("./node_modules/core-js/internals/has.js"),r=s("./node_modules/core-js/internals/well-known-symbol.js"),a=r("toStringTag");i.exports=function(c,h,g){c&&!l(c=g?c:c.prototype,a)&&e(c,a,{configurable:!0,value:h})}},"./node_modules/core-js/internals/shared-key.js":function(i,t,s){var e=s("./node_modules/core-js/internals/shared.js"),l=s("./node_modules/core-js/internals/uid.js"),r=e("keys");i.exports=function(a){return r[a]||(r[a]=l(a))}},"./node_modules/core-js/internals/shared-store.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/set-global.js"),r="__core-js_shared__",a=e[r]||l(r,{});i.exports=a},"./node_modules/core-js/internals/shared.js":function(i,t,s){var e=s("./node_modules/core-js/internals/is-pure.js"),l=s("./node_modules/core-js/internals/shared-store.js");(i.exports=function(r,a){return l[r]||(l[r]=a!==void 0?a:{})})("versions",[]).push({version:"3.16.0",mode:e?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(i,t,s){var e=s("./node_modules/core-js/internals/fails.js");i.exports=function(l){return e(function(){var r=""[l]('"');return r!==r.toLowerCase()||r.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-integer.js"),l=s("./node_modules/core-js/internals/to-string.js"),r=s("./node_modules/core-js/internals/require-object-coercible.js"),a=function(h){return function(g,A){var b=l(r(g)),S=e(A),E=b.length,C,_;return S<0||S>=E?h?"":void 0:(C=b.charCodeAt(S),C<55296||C>56319||S+1===E||(_=b.charCodeAt(S+1))<56320||_>57343?h?b.charAt(S):C:h?b.slice(S,S+2):(C-55296<<10)+(_-56320)+65536)}};i.exports={codeAt:a(!1),charAt:a(!0)}},"./node_modules/core-js/internals/string-trim.js":function(i,t,s){var e=s("./node_modules/core-js/internals/require-object-coercible.js"),l=s("./node_modules/core-js/internals/to-string.js"),r=s("./node_modules/core-js/internals/whitespaces.js"),a="["+r+"]",c=RegExp("^"+a+a+"*"),h=RegExp(a+a+"*$"),g=function(b){return function(S){var E=l(e(S));return b&1&&(E=E.replace(c,"")),b&2&&(E=E.replace(h,"")),E}};i.exports={start:g(1),end:g(2),trim:g(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-integer.js"),l=Math.max,r=Math.min;i.exports=function(a,c){var h=e(a);return h<0?l(h+c,0):r(h,c)}},"./node_modules/core-js/internals/to-indexed-object.js":function(i,t,s){var e=s("./node_modules/core-js/internals/indexed-object.js"),l=s("./node_modules/core-js/internals/require-object-coercible.js");i.exports=function(r){return e(l(r))}},"./node_modules/core-js/internals/to-integer.js":function(i){var t=Math.ceil,s=Math.floor;i.exports=function(e){return isNaN(e=+e)?0:(e>0?s:t)(e)}},"./node_modules/core-js/internals/to-length.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-integer.js"),l=Math.min;i.exports=function(r){return r>0?l(e(r),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(i,t,s){var e=s("./node_modules/core-js/internals/require-object-coercible.js");i.exports=function(l){return Object(e(l))}},"./node_modules/core-js/internals/to-primitive.js":function(i,t,s){var e=s("./node_modules/core-js/internals/is-object.js"),l=s("./node_modules/core-js/internals/is-symbol.js"),r=s("./node_modules/core-js/internals/ordinary-to-primitive.js"),a=s("./node_modules/core-js/internals/well-known-symbol.js"),c=a("toPrimitive");i.exports=function(h,g){if(!e(h)||l(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)||l(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(i,t,s){var e=s("./node_modules/core-js/internals/to-primitive.js"),l=s("./node_modules/core-js/internals/is-symbol.js");i.exports=function(r){var a=e(r,"string");return l(a)?a:String(a)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(i,t,s){var e=s("./node_modules/core-js/internals/well-known-symbol.js"),l=e("toStringTag"),r={};r[l]="z",i.exports=String(r)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(i,t,s){var e=s("./node_modules/core-js/internals/is-symbol.js");i.exports=function(l){if(e(l))throw TypeError("Cannot convert a Symbol value to a string");return String(l)}},"./node_modules/core-js/internals/uid.js":function(i){var t=0,s=Math.random();i.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++t+s).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(i,t,s){var e=s("./node_modules/core-js/internals/native-symbol.js");i.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(i,t,s){var e=s("./node_modules/core-js/internals/well-known-symbol.js");t.f=e},"./node_modules/core-js/internals/well-known-symbol.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/shared.js"),r=s("./node_modules/core-js/internals/has.js"),a=s("./node_modules/core-js/internals/uid.js"),c=s("./node_modules/core-js/internals/native-symbol.js"),h=s("./node_modules/core-js/internals/use-symbol-as-uid.js"),g=l("wks"),A=e.Symbol,b=h?A:A&&A.withoutSetter||a;i.exports=function(S){return(!r(g,S)||!(c||typeof g[S]=="string"))&&(c&&r(A,S)?g[S]=A[S]:g[S]=b("Symbol."+S)),g[S]}},"./node_modules/core-js/internals/whitespaces.js":function(i){i.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/fails.js"),r=s("./node_modules/core-js/internals/is-array.js"),a=s("./node_modules/core-js/internals/is-object.js"),c=s("./node_modules/core-js/internals/to-object.js"),h=s("./node_modules/core-js/internals/to-length.js"),g=s("./node_modules/core-js/internals/create-property.js"),A=s("./node_modules/core-js/internals/array-species-create.js"),b=s("./node_modules/core-js/internals/array-method-has-species-support.js"),S=s("./node_modules/core-js/internals/well-known-symbol.js"),E=s("./node_modules/core-js/internals/engine-v8-version.js"),C=S("isConcatSpreadable"),_=9007199254740991,T="Maximum allowed index exceeded",w=E>=51||!l(function(){var M=[];return M[C]=!1,M.concat()[0]!==M}),O=b("concat"),I=function(B){if(!a(B))return!1;var P=B[C];return P!==void 0?!!P:r(B)},R=!w||!O;e({target:"Array",proto:!0,forced:R},{concat:function(B){var P=c(this),X=A(P,0),F=0,j,K,z,V,Q;for(j=-1,z=arguments.length;j<z;j++)if(Q=j===-1?P:arguments[j],I(Q)){if(V=h(Q.length),F+V>_)throw TypeError(T);for(K=0;K<V;K++,F++)K in Q&&g(X,F,Q[K])}else{if(F>=_)throw TypeError(T);g(X,F++,Q)}return X.length=F,X}})},"./node_modules/core-js/modules/es.array.iterator.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/to-indexed-object.js"),l=s("./node_modules/core-js/internals/add-to-unscopables.js"),r=s("./node_modules/core-js/internals/iterators.js"),a=s("./node_modules/core-js/internals/internal-state.js"),c=s("./node_modules/core-js/internals/define-iterator.js"),h="Array Iterator",g=a.set,A=a.getterFor(h);i.exports=c(Array,"Array",function(b,S){g(this,{type:h,target:e(b),index:0,kind:S})},function(){var b=A(this),S=b.target,E=b.kind,C=b.index++;return!S||C>=S.length?(b.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:C,done:!1}:E=="values"?{value:S[C],done:!1}:{value:[C,S[C]],done:!1}},"values"),r.Arguments=r.Array,l("keys"),l("values"),l("entries")},"./node_modules/core-js/modules/es.array.join.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/indexed-object.js"),r=s("./node_modules/core-js/internals/to-indexed-object.js"),a=s("./node_modules/core-js/internals/array-method-is-strict.js"),c=[].join,h=l!=Object,g=a("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(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/array-iteration.js").map,r=s("./node_modules/core-js/internals/array-method-has-species-support.js"),a=r("map");e({target:"Array",proto:!0,forced:!a},{map:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/is-object.js"),r=s("./node_modules/core-js/internals/is-array.js"),a=s("./node_modules/core-js/internals/to-absolute-index.js"),c=s("./node_modules/core-js/internals/to-length.js"),h=s("./node_modules/core-js/internals/to-indexed-object.js"),g=s("./node_modules/core-js/internals/create-property.js"),A=s("./node_modules/core-js/internals/well-known-symbol.js"),b=s("./node_modules/core-js/internals/array-method-has-species-support.js"),S=b("slice"),E=A("species"),C=[].slice,_=Math.max;e({target:"Array",proto:!0,forced:!S},{slice:function(w,O){var I=h(this),R=c(I.length),M=a(w,R),B=a(O===void 0?R:O,R),P,X,F;if(r(I)&&(P=I.constructor,typeof P=="function"&&(P===Array||r(P.prototype))?P=void 0:l(P)&&(P=P[E],P===null&&(P=void 0)),P===Array||P===void 0))return C.call(I,M,B);for(X=new(P===void 0?Array:P)(_(B-M,0)),F=0;M<B;M++,F++)M in I&&g(X,F,I[M]);return X.length=F,X}})},"./node_modules/core-js/modules/es.function.name.js":function(i,t,s){var e=s("./node_modules/core-js/internals/descriptors.js"),l=s("./node_modules/core-js/internals/object-define-property.js").f,r=Function.prototype,a=r.toString,c=/^\s*function ([^ (]*)/,h="name";e&&!(h in r)&&l(r,h,{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(A){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/descriptors.js"),l=s("./node_modules/core-js/internals/global.js"),r=s("./node_modules/core-js/internals/is-forced.js"),a=s("./node_modules/core-js/internals/redefine.js"),c=s("./node_modules/core-js/internals/has.js"),h=s("./node_modules/core-js/internals/classof-raw.js"),g=s("./node_modules/core-js/internals/inherit-if-required.js"),A=s("./node_modules/core-js/internals/is-symbol.js"),b=s("./node_modules/core-js/internals/to-primitive.js"),S=s("./node_modules/core-js/internals/fails.js"),E=s("./node_modules/core-js/internals/object-create.js"),C=s("./node_modules/core-js/internals/object-get-own-property-names.js").f,_=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,T=s("./node_modules/core-js/internals/object-define-property.js").f,w=s("./node_modules/core-js/internals/string-trim.js").trim,O="Number",I=l[O],R=I.prototype,M=h(E(R))==O,B=function(z){if(A(z))throw TypeError("Cannot convert a Symbol value to a number");var V=b(z,"number"),Q,G,te,q,le,re,we,Ie;if(typeof V=="string"&&V.length>2){if(V=w(V),Q=V.charCodeAt(0),Q===43||Q===45){if(G=V.charCodeAt(2),G===88||G===120)return NaN}else if(Q===48){switch(V.charCodeAt(1)){case 66:case 98:te=2,q=49;break;case 79:case 111:te=8,q=55;break;default:return+V}for(le=V.slice(2),re=le.length,we=0;we<re;we++)if(Ie=le.charCodeAt(we),Ie<48||Ie>q)return NaN;return parseInt(le,te)}}return+V};if(r(O,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var P=function(z){var V=arguments.length<1?0:z,Q=this;return Q instanceof P&&(M?S(function(){R.valueOf.call(Q)}):h(Q)!=O)?g(new I(B(V)),Q,P):B(V)},X=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(","),F=0,j;X.length>F;F++)c(I,j=X[F])&&!c(P,j)&&T(P,j,_(I,j));P.prototype=R,R.constructor=P,a(l,O,P)}},"./node_modules/core-js/modules/es.object.assign.js":function(i,t,s){var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/object-assign.js");e({target:"Object",stat:!0,forced:Object.assign!==l},{assign:l})},"./node_modules/core-js/modules/es.object.keys.js":function(i,t,s){var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/to-object.js"),r=s("./node_modules/core-js/internals/object-keys.js"),a=s("./node_modules/core-js/internals/fails.js"),c=a(function(){r(1)});e({target:"Object",stat:!0,forced:c},{keys:function(g){return r(l(g))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-string-tag-support.js"),l=s("./node_modules/core-js/internals/redefine.js"),r=s("./node_modules/core-js/internals/object-to-string.js");e||l(Object.prototype,"toString",r,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/redefine.js"),l=s("./node_modules/core-js/internals/an-object.js"),r=s("./node_modules/core-js/internals/to-string.js"),a=s("./node_modules/core-js/internals/fails.js"),c=s("./node_modules/core-js/internals/regexp-flags.js"),h="toString",g=RegExp.prototype,A=g[h],b=a(function(){return A.call({source:"a",flags:"b"})!="/a/b"}),S=A.name!=h;(b||S)&&e(RegExp.prototype,h,function(){var C=l(this),_=r(C.source),T=C.flags,w=r(T===void 0&&C instanceof RegExp&&!("flags"in g)?c.call(C):T);return"/"+_+"/"+w},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/string-multibyte.js").charAt,l=s("./node_modules/core-js/internals/to-string.js"),r=s("./node_modules/core-js/internals/internal-state.js"),a=s("./node_modules/core-js/internals/define-iterator.js"),c="String Iterator",h=r.set,g=r.getterFor(c);a(String,"String",function(A){h(this,{type:c,string:l(A),index:0})},function(){var b=g(this),S=b.string,E=b.index,C;return E>=S.length?{value:void 0,done:!0}:(C=e(S,E),b.index+=C.length,{value:C,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/create-html.js"),r=s("./node_modules/core-js/internals/string-html-forced.js");e({target:"String",proto:!0,forced:r("link")},{link:function(c){return l(this,"a","href",c)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/descriptors.js"),r=s("./node_modules/core-js/internals/global.js"),a=s("./node_modules/core-js/internals/has.js"),c=s("./node_modules/core-js/internals/is-object.js"),h=s("./node_modules/core-js/internals/object-define-property.js").f,g=s("./node_modules/core-js/internals/copy-constructor-properties.js"),A=r.Symbol;if(l&&typeof A=="function"&&(!("description"in A.prototype)||A().description!==void 0)){var b={},S=function(){var O=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),I=this instanceof S?new A(O):O===void 0?A():A(O);return O===""&&(b[I]=!0),I};g(S,A);var E=S.prototype=A.prototype;E.constructor=S;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(a(b,O))return"";var R=_?I.slice(7,-1):I.replace(T,"$1");return R===""?void 0:R}}),e({global:!0,forced:!0},{Symbol:S})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(i,t,s){var e=s("./node_modules/core-js/internals/define-well-known-symbol.js");e("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/global.js"),r=s("./node_modules/core-js/internals/get-built-in.js"),a=s("./node_modules/core-js/internals/is-pure.js"),c=s("./node_modules/core-js/internals/descriptors.js"),h=s("./node_modules/core-js/internals/native-symbol.js"),g=s("./node_modules/core-js/internals/fails.js"),A=s("./node_modules/core-js/internals/has.js"),b=s("./node_modules/core-js/internals/is-array.js"),S=s("./node_modules/core-js/internals/is-object.js"),E=s("./node_modules/core-js/internals/is-symbol.js"),C=s("./node_modules/core-js/internals/an-object.js"),_=s("./node_modules/core-js/internals/to-object.js"),T=s("./node_modules/core-js/internals/to-indexed-object.js"),w=s("./node_modules/core-js/internals/to-property-key.js"),O=s("./node_modules/core-js/internals/to-string.js"),I=s("./node_modules/core-js/internals/create-property-descriptor.js"),R=s("./node_modules/core-js/internals/object-create.js"),M=s("./node_modules/core-js/internals/object-keys.js"),B=s("./node_modules/core-js/internals/object-get-own-property-names.js"),P=s("./node_modules/core-js/internals/object-get-own-property-names-external.js"),X=s("./node_modules/core-js/internals/object-get-own-property-symbols.js"),F=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),j=s("./node_modules/core-js/internals/object-define-property.js"),K=s("./node_modules/core-js/internals/object-property-is-enumerable.js"),z=s("./node_modules/core-js/internals/create-non-enumerable-property.js"),V=s("./node_modules/core-js/internals/redefine.js"),Q=s("./node_modules/core-js/internals/shared.js"),G=s("./node_modules/core-js/internals/shared-key.js"),te=s("./node_modules/core-js/internals/hidden-keys.js"),q=s("./node_modules/core-js/internals/uid.js"),le=s("./node_modules/core-js/internals/well-known-symbol.js"),re=s("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),we=s("./node_modules/core-js/internals/define-well-known-symbol.js"),Ie=s("./node_modules/core-js/internals/set-to-string-tag.js"),Me=s("./node_modules/core-js/internals/internal-state.js"),Je=s("./node_modules/core-js/internals/array-iteration.js").forEach,Ve=G("hidden"),ut="Symbol",Fe="prototype",ae=le("toPrimitive"),at=Me.set,he=Me.getterFor(ut),J=Object[Fe],Y=l.Symbol,$=r("JSON","stringify"),de=F.f,be=j.f,Ce=P.f,Be=K.f,fe=Q("symbols"),Se=Q("op-symbols"),ke=Q("string-to-symbol-registry"),rt=Q("symbol-to-string-registry"),xt=Q("wks"),ht=l.QObject,He=!ht||!ht[Fe]||!ht[Fe].findChild,ir=c&&g(function(){return R(be({},"a",{get:function(){return be(this,"a",{value:7}).a}})).a!=7})?function(lt,qe,me){var Ht=de(J,qe);Ht&&delete J[qe],be(lt,qe,me),Ht&&lt!==J&&be(J,qe,Ht)}:be,ct=function(qe,me){var Ht=fe[qe]=R(Y[Fe]);return at(Ht,{type:ut,tag:qe,description:me}),c||(Ht.description=me),Ht},Xt=function(qe,me,Ht){qe===J&&Xt(Se,me,Ht),C(qe);var yr=w(me);return C(Ht),A(fe,yr)?(Ht.enumerable?(A(qe,Ve)&&qe[Ve][yr]&&(qe[Ve][yr]=!1),Ht=R(Ht,{enumerable:I(0,!1)})):(A(qe,Ve)||be(qe,Ve,I(1,{})),qe[Ve][yr]=!0),ir(qe,yr,Ht)):be(qe,yr,Ht)},hr=function(qe,me){C(qe);var Ht=T(me),yr=M(Ht).concat(pe(Ht));return Je(yr,function(At){(!c||Pt.call(Ht,At))&&Xt(qe,At,Ht[At])}),qe},Jt=function(qe,me){return me===void 0?R(qe):hr(R(qe),me)},Pt=function(qe){var me=w(qe),Ht=Be.call(this,me);return this===J&&A(fe,me)&&!A(Se,me)?!1:Ht||!A(this,me)||!A(fe,me)||A(this,Ve)&&this[Ve][me]?Ht:!0},Wt=function(qe,me){var Ht=T(qe),yr=w(me);if(Ht===J&&A(fe,yr)&&!A(Se,yr))return;var At=de(Ht,yr);return At&&A(fe,yr)&&!(A(Ht,Ve)&&Ht[Ve][yr])&&(At.enumerable=!0),At},Ge=function(qe){var me=Ce(T(qe)),Ht=[];return Je(me,function(yr){!A(fe,yr)&&!A(te,yr)&&Ht.push(yr)}),Ht},pe=function(qe){var me=qe===J,Ht=Ce(me?Se:T(qe)),yr=[];return Je(Ht,function(At){A(fe,At)&&(!me||A(J,At))&&yr.push(fe[At])}),yr};if(h||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var qe=!arguments.length||arguments[0]===void 0?void 0:O(arguments[0]),me=q(qe),Ht=function yr(At){this===J&&yr.call(Se,At),A(this,Ve)&&A(this[Ve],me)&&(this[Ve][me]=!1),ir(this,me,I(1,At))};return c&&He&&ir(J,me,{configurable:!0,set:Ht}),ct(me,qe)},V(Y[Fe],"toString",function(){return he(this).tag}),V(Y,"withoutSetter",function(lt){return ct(q(lt),lt)}),K.f=Pt,j.f=Xt,F.f=Wt,B.f=P.f=Ge,X.f=pe,re.f=function(lt){return ct(le(lt),lt)},c&&(be(Y[Fe],"description",{configurable:!0,get:function(){return he(this).description}}),a||V(J,"propertyIsEnumerable",Pt,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:Y}),Je(M(xt),function(lt){we(lt)}),e({target:ut,stat:!0,forced:!h},{for:function(qe){var me=O(qe);if(A(ke,me))return ke[me];var Ht=Y(me);return ke[me]=Ht,rt[Ht]=me,Ht},keyFor:function(qe){if(!E(qe))throw TypeError(qe+" is not a symbol");if(A(rt,qe))return rt[qe]},useSetter:function(){He=!0},useSimple:function(){He=!1}}),e({target:"Object",stat:!0,forced:!h,sham:!c},{create:Jt,defineProperty:Xt,defineProperties:hr,getOwnPropertyDescriptor:Wt}),e({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:Ge,getOwnPropertySymbols:pe}),e({target:"Object",stat:!0,forced:g(function(){X.f(1)})},{getOwnPropertySymbols:function(qe){return X.f(_(qe))}}),$){var se=!h||g(function(){var lt=Y();return $([lt])!="[null]"||$({a:lt})!="{}"||$(Object(lt))!="{}"});e({target:"JSON",stat:!0,forced:se},{stringify:function(qe,me,Ht){for(var yr=[qe],At=1,rr;arguments.length>At;)yr.push(arguments[At++]);return rr=me,!S(me)&&qe===void 0||E(qe)?void 0:(b(me)||(me=function(vn,Bt){if(typeof rr=="function"&&(Bt=rr.call(this,vn,Bt)),!E(Bt))return Bt}),yr[1]=me,$.apply(null,yr))}})}Y[Fe][ae]||z(Y[Fe],ae,Y[Fe].valueOf),Ie(Y,ut),te[Ve]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/dom-iterables.js"),r=s("./node_modules/core-js/internals/array-for-each.js"),a=s("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var c in l){var h=e[c],g=h&&h.prototype;if(g&&g.forEach!==r)try{a(g,"forEach",r)}catch(A){g.forEach=r}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/dom-iterables.js"),r=s("./node_modules/core-js/modules/es.array.iterator.js"),a=s("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=s("./node_modules/core-js/internals/well-known-symbol.js"),h=c("iterator"),g=c("toStringTag"),A=r.values;for(var b in l){var S=e[b],E=S&&S.prototype;if(E){if(E[h]!==A)try{a(E,h,A)}catch(_){E[h]=A}if(E[g]||a(E,g,b),l[b]){for(var C in r)if(E[C]!==r[C])try{a(E,C,r[C])}catch(_){E[C]=r[C]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(i){/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6
*/(function(t,s){i.exports=s()})(this,function(){"use strict";function t(ht){var He=typeof ht;return ht!==null&&(He==="object"||He==="function")}function s(ht){return typeof ht=="function"}var e=void 0;Array.isArray?e=Array.isArray:e=function(He){return Object.prototype.toString.call(He)==="[object Array]"};var l=e,r=0,a=void 0,c=void 0,h=function(He,ir){M[r]=He,M[r+1]=ir,r+=2,r===2&&(c?c(B):X())};function g(ht){c=ht}function A(ht){h=ht}var b=typeof window!="undefined"?window:void 0,S=b||{},E=S.MutationObserver||S.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 w(){return typeof a!="undefined"?function(){a(B)}:R()}function O(){var ht=0,He=new E(B),ir=document.createTextNode("");return He.observe(ir,{characterData:!0}),function(){ir.data=ht=++ht%2}}function I(){var ht=new MessageChannel;return ht.port1.onmessage=B,function(){return ht.port2.postMessage(0)}}function R(){var ht=setTimeout;return function(){return ht(B,1)}}var M=new Array(1e3);function B(){for(var ht=0;ht<r;ht+=2){var He=M[ht],ir=M[ht+1];He(ir),M[ht]=void 0,M[ht+1]=void 0}r=0}function P(){try{var ht=Function("return this")().require("vertx");return a=ht.runOnLoop||ht.runOnContext,w()}catch(He){return R()}}var X=void 0;C?X=T():E?X=O():_?X=I():b===void 0&&!0?X=P():X=R();function F(ht,He){var ir=this,ct=new this.constructor(z);ct[K]===void 0&&$(ct);var Xt=ir._state;if(Xt){var hr=arguments[Xt-1];h(function(){return at(Xt,ct,hr,ir._result)})}else Fe(ir,ct,ht,He);return ct}function j(ht){var He=this;if(ht&&typeof ht=="object"&&ht.constructor===He)return ht;var ir=new He(z);return Me(ir,ht),ir}var K=Math.random().toString(36).substring(2);function z(){}var V=void 0,Q=1,G=2;function te(){return new TypeError("You cannot resolve a promise with itself")}function q(){return new TypeError("A promises callback cannot return that same promise.")}function le(ht,He,ir,ct){try{ht.call(He,ir,ct)}catch(Xt){return Xt}}function re(ht,He,ir){h(function(ct){var Xt=!1,hr=le(ir,He,function(Jt){if(Xt)return;Xt=!0,He!==Jt?Me(ct,Jt):Ve(ct,Jt)},function(Jt){if(Xt)return;Xt=!0,ut(ct,Jt)},"Settle: "+(ct._label||" unknown promise"));!Xt&&hr&&(Xt=!0,ut(ct,hr))},ht)}function we(ht,He){He._state===Q?Ve(ht,He._result):He._state===G?ut(ht,He._result):Fe(He,void 0,function(ir){return Me(ht,ir)},function(ir){return ut(ht,ir)})}function Ie(ht,He,ir){He.constructor===ht.constructor&&ir===F&&He.constructor.resolve===j?we(ht,He):ir===void 0?Ve(ht,He):s(ir)?re(ht,He,ir):Ve(ht,He)}function Me(ht,He){if(ht===He)ut(ht,te());else if(t(He)){var ir=void 0;try{ir=He.then}catch(ct){ut(ht,ct);return}Ie(ht,He,ir)}else Ve(ht,He)}function Je(ht){ht._onerror&&ht._onerror(ht._result),ae(ht)}function Ve(ht,He){if(ht._state!==V)return;ht._result=He,ht._state=Q,ht._subscribers.length!==0&&h(ae,ht)}function ut(ht,He){if(ht._state!==V)return;ht._state=G,ht._result=He,h(Je,ht)}function Fe(ht,He,ir,ct){var Xt=ht._subscribers,hr=Xt.length;ht._onerror=null,Xt[hr]=He,Xt[hr+Q]=ir,Xt[hr+G]=ct,hr===0&&ht._state&&h(ae,ht)}function ae(ht){var He=ht._subscribers,ir=ht._state;if(He.length===0)return;for(var ct=void 0,Xt=void 0,hr=ht._result,Jt=0;Jt<He.length;Jt+=3)ct=He[Jt],Xt=He[Jt+ir],ct?at(ir,ct,Xt,hr):Xt(hr);ht._subscribers.length=0}function at(ht,He,ir,ct){var Xt=s(ir),hr=void 0,Jt=void 0,Pt=!0;if(Xt){try{hr=ir(ct)}catch(Wt){Pt=!1,Jt=Wt}if(He===hr){ut(He,q());return}}else hr=ct;He._state!==V||(Xt&&Pt?Me(He,hr):Pt===!1?ut(He,Jt):ht===Q?Ve(He,hr):ht===G&&ut(He,hr))}function he(ht,He){try{He(function(ct){Me(ht,ct)},function(ct){ut(ht,ct)})}catch(ir){ut(ht,ir)}}var J=0;function Y(){return J++}function $(ht){ht[K]=J++,ht._state=void 0,ht._result=void 0,ht._subscribers=[]}function de(){return new Error("Array Methods must be provided an Array")}var be=function(){function ht(He,ir){this._instanceConstructor=He,this.promise=new He(z),this.promise[K]||$(this.promise),l(ir)?(this.length=ir.length,this._remaining=ir.length,this._result=new Array(this.length),this.length===0?Ve(this.promise,this._result):(this.length=this.length||0,this._enumerate(ir),this._remaining===0&&Ve(this.promise,this._result))):ut(this.promise,de())}return ht.prototype._enumerate=function(ir){for(var ct=0;this._state===V&&ct<ir.length;ct++)this._eachEntry(ir[ct],ct)},ht.prototype._eachEntry=function(ir,ct){var Xt=this._instanceConstructor,hr=Xt.resolve;if(hr===j){var Jt=void 0,Pt=void 0,Wt=!1;try{Jt=ir.then}catch(pe){Wt=!0,Pt=pe}if(Jt===F&&ir._state!==V)this._settledAt(ir._state,ct,ir._result);else if(typeof Jt!="function")this._remaining--,this._result[ct]=ir;else if(Xt===rt){var Ge=new Xt(z);Wt?ut(Ge,Pt):Ie(Ge,ir,Jt),this._willSettleAt(Ge,ct)}else this._willSettleAt(new Xt(function(pe){return pe(ir)}),ct)}else this._willSettleAt(hr(ir),ct)},ht.prototype._settledAt=function(ir,ct,Xt){var hr=this.promise;hr._state===V&&(this._remaining--,ir===G?ut(hr,Xt):this._result[ct]=Xt),this._remaining===0&&Ve(hr,this._result)},ht.prototype._willSettleAt=function(ir,ct){var Xt=this;Fe(ir,void 0,function(hr){return Xt._settledAt(Q,ct,hr)},function(hr){return Xt._settledAt(G,ct,hr)})},ht}();function Ce(ht){return new be(this,ht).promise}function Be(ht){var He=this;return l(ht)?new He(function(ir,ct){for(var Xt=ht.length,hr=0;hr<Xt;hr++)He.resolve(ht[hr]).then(ir,ct)}):new He(function(ir,ct){return ct(new TypeError("You must pass an array to race."))})}function fe(ht){var He=this,ir=new He(z);return ut(ir,ht),ir}function Se(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ke(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var rt=function(){function ht(He){this[K]=Y(),this._result=this._state=void 0,this._subscribers=[],z!==He&&(typeof He!="function"&&Se(),this instanceof ht?he(this,He):ke())}return ht.prototype.catch=function(ir){return this.then(null,ir)},ht.prototype.finally=function(ir){var ct=this,Xt=ct.constructor;return s(ir)?ct.then(function(hr){return Xt.resolve(ir()).then(function(){return hr})},function(hr){return Xt.resolve(ir()).then(function(){throw hr})}):ct.then(ir,ir)},ht}();rt.prototype.then=F,rt.all=Ce,rt.race=Be,rt.resolve=j,rt.reject=fe,rt._setScheduler=g,rt._setAsap=A,rt._asap=h;function xt(){var ht=void 0;if(typeof y!="undefined")ht=y;else if(typeof self!="undefined")ht=self;else try{ht=Function("return this")()}catch(ct){throw new Error("polyfill failed because global object is unavailable in this environment")}var He=ht.Promise;if(He){var ir=null;try{ir=Object.prototype.toString.call(He.resolve())}catch(ct){}if(ir==="[object Promise]"&&!He.cast)return}ht.Promise=rt}return rt.polyfill=xt,rt.Promise=rt,rt})},html2canvas:function(i){"use strict";i.exports=v},jspdf:function(i){"use strict";i.exports=x}},f={};function d(o){var i=f[o];if(i!==void 0)return i.exports;var t=f[o]={exports:{}};return m[o].call(t.exports,t,t.exports,d),t.exports}!function(){d.n=function(o){var i=o&&o.__esModule?function(){return o.default}:function(){return o};return d.d(i,{a:i}),i}}(),!function(){d.d=function(o,i){for(var t in i)d.o(i,t)&&!d.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:i[t]})}}(),!function(){d.o=function(o,i){return Object.prototype.hasOwnProperty.call(o,i)}}(),!function(){d.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}}();var u={};return!function(){"use strict";/*!**********************!*\
!*** ./src/index.js ***!
\**********************/d.r(u);var o=d("./src/worker.js"),i=d("./src/plugin/jspdf-plugin.js"),t=d("./src/plugin/pagebreaks.js"),s=d("./src/plugin/hyperlinks.js"),e=function l(r,a){var c=new l.Worker(a);return r?c.from(r).save():c};e.Worker=o.default,u.default=e}(),u=u.default,u}()})}).call(this,n("yLpj"),n("Q2Ig"))},"1q3G":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},"1tlw":function(k,D,n){var y=n("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;k.exports=x},"1u/T":function(k,D,n){var y=n("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(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("MlIO"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.Hasher,m=p.x64,f=m.Word,d=m.WordArray,u=p.algo;function o(){return f.create.apply(f,arguments)}var i=[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 s=u.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(l,r){for(var a=this._hash.words,c=a[0],h=a[1],g=a[2],A=a[3],b=a[4],S=a[5],E=a[6],C=a[7],_=c.high,T=c.low,w=h.high,O=h.low,I=g.high,R=g.low,M=A.high,B=A.low,P=b.high,X=b.low,F=S.high,j=S.low,K=E.high,z=E.low,V=C.high,Q=C.low,G=_,te=T,q=w,le=O,re=I,we=R,Ie=M,Me=B,Je=P,Ve=X,ut=F,Fe=j,ae=K,at=z,he=V,J=Q,Y=0;Y<80;Y++){var $,de,be=t[Y];if(Y<16)de=be.high=l[r+Y*2]|0,$=be.low=l[r+Y*2+1]|0;else{var Ce=t[Y-15],Be=Ce.high,fe=Ce.low,Se=(Be>>>1|fe<<31)^(Be>>>8|fe<<24)^Be>>>7,ke=(fe>>>1|Be<<31)^(fe>>>8|Be<<24)^(fe>>>7|Be<<25),rt=t[Y-2],xt=rt.high,ht=rt.low,He=(xt>>>19|ht<<13)^(xt<<3|ht>>>29)^xt>>>6,ir=(ht>>>19|xt<<13)^(ht<<3|xt>>>29)^(ht>>>6|xt<<26),ct=t[Y-7],Xt=ct.high,hr=ct.low,Jt=t[Y-16],Pt=Jt.high,Wt=Jt.low;$=ke+hr,de=Se+Xt+($>>>0<ke>>>0?1:0),$=$+ir,de=de+He+($>>>0<ir>>>0?1:0),$=$+Wt,de=de+Pt+($>>>0<Wt>>>0?1:0),be.high=de,be.low=$}var Ge=Je&ut^~Je&ae,pe=Ve&Fe^~Ve&at,se=G&q^G&re^q&re,lt=te&le^te&we^le&we,qe=(G>>>28|te<<4)^(G<<30|te>>>2)^(G<<25|te>>>7),me=(te>>>28|G<<4)^(te<<30|G>>>2)^(te<<25|G>>>7),Ht=(Je>>>14|Ve<<18)^(Je>>>18|Ve<<14)^(Je<<23|Ve>>>9),yr=(Ve>>>14|Je<<18)^(Ve>>>18|Je<<14)^(Ve<<23|Je>>>9),At=i[Y],rr=At.high,ur=At.low,vn=J+yr,Bt=he+Ht+(vn>>>0<J>>>0?1:0),vn=vn+pe,Bt=Bt+Ge+(vn>>>0<pe>>>0?1:0),vn=vn+ur,Bt=Bt+rr+(vn>>>0<ur>>>0?1:0),vn=vn+$,Bt=Bt+de+(vn>>>0<$>>>0?1:0),sr=me+lt,Yt=qe+se+(sr>>>0<me>>>0?1:0);he=ae,J=at,ae=ut,at=Fe,ut=Je,Fe=Ve,Ve=Me+vn|0,Je=Ie+Bt+(Ve>>>0<Me>>>0?1:0)|0,Ie=re,Me=we,re=q,we=le,q=G,le=te,te=vn+sr|0,G=Bt+Yt+(te>>>0<vn>>>0?1:0)|0}T=c.low=T+te,c.high=_+G+(T>>>0<te>>>0?1:0),O=h.low=O+le,h.high=w+q+(O>>>0<le>>>0?1:0),R=g.low=R+we,g.high=I+re+(R>>>0<we>>>0?1:0),B=A.low=B+Me,A.high=M+Ie+(B>>>0<Me>>>0?1:0),X=b.low=X+Ve,b.high=P+Je+(X>>>0<Ve>>>0?1:0),j=S.low=j+Fe,S.high=F+ut+(j>>>0<Fe>>>0?1:0),z=E.low=z+at,E.high=K+ae+(z>>>0<at>>>0?1:0),Q=C.low=Q+J,C.high=V+he+(Q>>>0<J>>>0?1:0)},_doFinalize:function(){var l=this._data,r=l.words,a=this._nDataBytes*8,c=l.sigBytes*8;r[c>>>5]|=128<<24-c%32,r[(c+128>>>10<<5)+30]=Math.floor(a/4294967296),r[(c+128>>>10<<5)+31]=a,l.sigBytes=r.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var l=v.clone.call(this);return l._hash=this._hash.clone(),l},blockSize:1024/32});p.SHA512=v._createHelper(s),p.HmacSHA512=v._createHmacHelper(s)}(),y.SHA512})},"1vzs":function(k,D,n){"use strict";n.d(D,"a",function(){return r});var y=n("q1tI"),p=n.n(y),x=n("HQEm"),v=n.n(x),m=n("gZBC"),f=n.n(m),d=n("NAnI"),u=n.n(d),o=n("V/uB"),i=n.n(o),t=n("kbBi"),s=n.n(t),e=n("w6Tc"),l=n.n(e);function r(a){var c=a.suffixIcon,h=a.clearIcon,g=a.menuItemSelectedIcon,A=a.removeIcon,b=a.loading,S=a.multiple,E=a.prefixCls,C=h;h||(C=y.createElement(s.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(R){var M=R.open,B=R.showSearch;return M&&B?y.createElement(l.a,{className:T}):y.createElement(v.a,{className:T})}}var w=null;g!==void 0?w=g:S?w=y.createElement(u.a,null):w=null;var O=null;return A!==void 0?O=A:O=y.createElement(i.a,null),{clearIcon:C,suffixIcon:_,itemIcon:w,removeIcon:O}}},"1xaR":function(k,D,n){var y=n("ProS"),p=n("bYtY");n("qgGe"),n("NA0q"),n("RPvy");var x=n("mOdp"),v=n("y3NT"),m=n("0/Rx");y.registerVisual(p.curry(x,"sunburst")),y.registerLayout(p.curry(v,"sunburst")),y.registerProcessor(p.curry(m,"sunburst"))},"24YM":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.SizeSensorId=D.SensorTabIndex=D.SensorClassName=void 0;var y="size-sensor-id";D.SizeSensorId=y;var p="size-sensor-object";D.SensorClassName=p;var x="-1";D.SensorTabIndex=x},"2548":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("6GrX"),v=n("IUWy"),m=n("IwbS"),f=n("Qxkt"),d=n("gPAo"),u=n("eRkO"),o=y.extendComponentView({type:"toolbox",render:function(t,s,e,l){var r=this.group;if(r.removeAll(),!t.get("show"))return;var a=+t.get("itemSize"),c=t.get("feature")||{},h=this._features||(this._features={}),g=[];p.each(c,function(S,E){g.push(E)}),new d(this._featureNames||[],g).add(A).update(A).remove(p.curry(A,null)).execute(),this._featureNames=g;function A(S,E){var C=g[S],_=g[E],T=c[C],w=new f(T,t,t.ecModel),O;if(l&&l.newTitle!=null&&l.featureName===C&&(T.title=l.newTitle),C&&!_){if(i(C))O={model:w,onclick:w.option.onclick,featureName:C};else{var I=v.get(C);if(!I)return;O=new I(w,s,e)}h[C]=O}else{if(O=h[_],!O)return;O.model=w,O.ecModel=s,O.api=e}if(!C&&_){O.dispose&&O.dispose(s,e);return}if(!w.get("show")||O.unusable){O.remove&&O.remove(s,e);return}b(w,O,C),w.setIconStatus=function(R,M){var B=this.option,P=this.iconPaths;B.iconStatus=B.iconStatus||{},B.iconStatus[R]=M,P[R]&&P[R].trigger(M)},O.render&&O.render(w,s,e,l)}function b(S,E,C){var _=S.getModel("iconStyle"),T=S.getModel("emphasis.iconStyle"),w=E.getIcons?E.getIcons():S.get("icon"),O=S.get("title")||{};if(typeof w=="string"){var I=w,R=O;w={},O={},w[C]=I,O[C]=R}var M=S.iconPaths={};p.each(w,function(B,P){var X=m.createIcon(B,{},{x:-a/2,y:-a/2,width:a,height:a});X.setStyle(_.getItemStyle()),X.hoverStyle=T.getItemStyle(),X.setStyle({text:O[P],textAlign:T.get("textAlign"),textBorderRadius:T.get("textBorderRadius"),textPadding:T.get("textPadding"),textFill:null});var F=t.getModel("tooltip");F&&F.get("show")&&X.attr("tooltip",p.extend({content:O[P],formatter:F.get("formatter",!0)||function(){return O[P]},formatterParams:{componentType:"toolbox",name:P,title:O[P],$vars:["name","title"]},position:F.get("position",!0)||"bottom"},F.option)),m.setHoverStyle(X),t.get("showTitle")&&(X.__title=O[P],X.on("mouseover",function(){var j=T.getItemStyle(),K=t.get("orient")==="vertical"?t.get("right")==null?"right":"left":t.get("bottom")==null?"bottom":"top";X.setStyle({textFill:T.get("textFill")||j.fill||j.stroke||"#000",textBackgroundColor:T.get("textBackgroundColor"),textPosition:T.get("textPosition")||K})}).on("mouseout",function(){X.setStyle({textFill:null,textBackgroundColor:null})})),X.trigger(S.get("iconStatus."+P)||"normal"),r.add(X),X.on("click",p.bind(E.onclick,E,s,e,P)),M[P]=X})}u.layout(r,t,e),r.add(u.makeBackground(r.getBoundingRect(),t)),r.eachChild(function(S){var E=S.__title,C=S.hoverStyle;if(C&&E){var _=x.getBoundingRect(E,x.makeFont(C)),T=S.position[0]+r.position[0],w=S.position[1]+r.position[1]+a,O=!1;w+_.height>e.getHeight()&&(C.textPosition="top",O=!0);var I=O?-5-_.height:a+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,s,e,l){p.each(this._features,function(r){r.updateView&&r.updateView(r.model,s,e,l)})},remove:function(t,s){p.each(this._features,function(e){e.remove&&e.remove(t,s)}),this.group.removeAll()},dispose:function(t,s){p.each(this._features,function(e){e.dispose&&e.dispose(t,s)})}});function i(t){return t.indexOf("my")===0}k.exports=o},"2B6p":function(k,D){function n(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 u=x.min||0,o=x.max||Infinity;f=Math.max(Math.min(v*f,o),u)/v}y.scale[0]*=f,y.scale[1]*=f;var i=y.position,t=(p.originX-i[0])*(f-1),s=(p.originY-i[1])*(f-1);i[0]-=t,i[1]-=s,y.updateTransform();var m=y.pointToData(d);y.setCenter(m),y.setZoom(f*v)}return{center:y.getCenter(),zoom:y.getZoom()}}D.updateCenterAndZoom=n},"2BaD":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="CloseCircleOutlined";var d=D.a=p.forwardRef(f)},"2DNl":function(k,D,n){var y=n("IMiH"),p=n("loD1"),x=n("59Ip"),v=n("aKvl"),m=n("n1HI"),f=n("hX1E"),d=f.normalizeRadian,u=n("Sj9i"),o=n("hyiK"),i=y.CMD,t=Math.PI*2,s=1e-4;function e(E,C){return Math.abs(E-C)<s}var l=[-1,-1,-1],r=[-1,-1];function a(){var E=r[0];r[0]=r[1],r[1]=E}function c(E,C,_,T,w,O,I,R,M,B){if(B>C&&B>T&&B>O&&B>R||B<C&&B<T&&B<O&&B<R)return 0;var P=u.cubicRootAt(C,T,O,R,B,l);if(P===0)return 0;for(var X=0,F=-1,j,K,z=0;z<P;z++){var V=l[z],Q=V===0||V===1?.5:1,G=u.cubicAt(E,_,w,I,V);if(G<M)continue;F<0&&(F=u.cubicExtrema(C,T,O,R,r),r[1]<r[0]&&F>1&&a(),j=u.cubicAt(C,T,O,R,r[0]),F>1&&(K=u.cubicAt(C,T,O,R,r[1]))),F===2?V<r[0]?X+=j<C?Q:-Q:V<r[1]?X+=K<j?Q:-Q:X+=R<K?Q:-Q:V<r[0]?X+=j<C?Q:-Q:X+=R<j?Q:-Q}return X}function h(E,C,_,T,w,O,I,R){if(R>C&&R>T&&R>O||R<C&&R<T&&R<O)return 0;var M=u.quadraticRootAt(C,T,O,R,l);if(M===0)return 0;var B=u.quadraticExtremum(C,T,O);if(B>=0&&B<=1){for(var P=0,X=u.quadraticAt(C,T,O,B),F=0;F<M;F++){var j=l[F]===0||l[F]===1?.5:1,K=u.quadraticAt(E,_,w,l[F]);if(K<I)continue;l[F]<B?P+=X<C?j:-j:P+=O<X?j:-j}return P}else{var j=l[0]===0||l[0]===1?.5:1,K=u.quadraticAt(E,_,w,l[0]);return K<I?0:O<C?j:-j}}function g(E,C,_,T,w,O,I,R){if(R-=C,R>_||R<-_)return 0;var M=Math.sqrt(_*_-R*R);l[0]=-M,l[1]=M;var B=Math.abs(T-w);if(B<1e-4)return 0;if(B%t<1e-4){T=0,w=t;var P=O?1:-1;return I>=l[0]+E&&I<=l[1]+E?P:0}if(O){var M=T;T=d(w),w=d(M)}else T=d(T),w=d(w);T>w&&(w+=t);for(var X=0,F=0;F<2;F++){var j=l[F];if(j+E>I){var K=Math.atan2(R,j),P=O?1:-1;K<0&&(K=t+K),(K>=T&&K<=w||K+t>=T&&K+t<=w)&&(K>Math.PI/2&&K<Math.PI*1.5&&(P=-P),X+=P)}}return X}function A(E,C,_,T,w){for(var O=0,I=0,R=0,M=0,B=0,P=0;P<E.length;){var X=E[P++];X===i.M&&P>1&&(_||(O+=o(I,R,M,B,T,w))),P===1&&(I=E[P],R=E[P+1],M=I,B=R);switch(X){case i.M:M=E[P++],B=E[P++],I=M,R=B;break;case i.L:if(_){if(p.containStroke(I,R,E[P],E[P+1],C,T,w))return!0}else O+=o(I,R,E[P],E[P+1],T,w)||0;I=E[P++],R=E[P++];break;case i.C:if(_){if(x.containStroke(I,R,E[P++],E[P++],E[P++],E[P++],E[P],E[P+1],C,T,w))return!0}else O+=c(I,R,E[P++],E[P++],E[P++],E[P++],E[P],E[P+1],T,w)||0;I=E[P++],R=E[P++];break;case i.Q:if(_){if(v.containStroke(I,R,E[P++],E[P++],E[P],E[P+1],C,T,w))return!0}else O+=h(I,R,E[P++],E[P++],E[P],E[P+1],T,w)||0;I=E[P++],R=E[P++];break;case i.A:var F=E[P++],j=E[P++],K=E[P++],z=E[P++],V=E[P++],Q=E[P++];P+=1;var G=1-E[P++],te=Math.cos(V)*K+F,q=Math.sin(V)*z+j;P>1?O+=o(I,R,te,q,T,w):(M=te,B=q);var le=(T-F)*z/K+F;if(_){if(m.containStroke(F,j,z,V,V+Q,G,C,le,w))return!0}else O+=g(F,j,z,V,V+Q,G,le,w);I=Math.cos(V+Q)*K+F,R=Math.sin(V+Q)*z+j;break;case i.R:M=I=E[P++],B=R=E[P++];var re=E[P++],we=E[P++],te=M+re,q=B+we;if(_){if(p.containStroke(M,B,te,B,C,T,w)||p.containStroke(te,B,te,q,C,T,w)||p.containStroke(te,q,M,q,C,T,w)||p.containStroke(M,q,M,B,C,T,w))return!0}else O+=o(te,B,te,q,T,w),O+=o(M,q,M,B,T,w);break;case i.Z:if(_){if(p.containStroke(I,R,M,B,C,T,w))return!0}else O+=o(I,R,M,B,T,w);I=M,R=B;break}}return!_&&!e(R,B)&&(O+=o(I,R,M,B,T,w)||0),O!==0}function b(E,C,_){return A(E,0,!1,C,_)}function S(E,C,_,T){return A(E,C,!0,_,T)}D.contain=b,D.containStroke=S},"2dDv":function(k,D,n){var y=n("bYtY"),p=n("Fofx"),x=n("+TT/"),v=n("aX7z"),m=n("D1WM"),f=n("IwbS"),d=n("OELB"),u=n("72pK"),o=y.each,i=Math.min,t=Math.max,s=Math.floor,e=Math.ceil,l=d.round,r=Math.PI;function a(b,S,E){this._axesMap=y.createHashMap(),this._axesLayout={},this.dimensions=b.dimensions,this._rect,this._model=b,this._init(b,S,E)}a.prototype={type:"parallel",constructor:a,_init:function(b,S,E){var C=b.dimensions,_=b.parallelAxisIndex;o(C,function(T,w){var O=_[w],I=S.getComponent("parallelAxis",O),R=this._axesMap.set(T,new m(T,v.createScaleByModel(I),[0,0],I.get("type"),O)),M=R.type==="category";R.onBand=M&&I.get("boundaryGap"),R.inverse=I.get("inverse"),I.axis=R,R.model=I,R.coordinateSystem=I.coordinateSystem=this},this)},update:function(b,S){this._updateAxesFromSeries(this._model,b)},containPoint:function(b){var S=this._makeLayoutInfo(),E=S.axisBase,C=S.layoutBase,_=S.pixelDimIndex,T=b[1-_],w=b[_];return T>=E&&T<=E+S.axisLength&&w>=C&&w<=C+S.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(b,S){S.eachSeries(function(E){if(!b.contains(E,S))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,S){this._rect=x.getLayoutRect(b.getBoxLayoutParams(),{width:S.getWidth(),height:S.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var b=this._model,S=this._rect,E=["x","y"],C=["width","height"],_=b.get("layout"),T=_==="horizontal"?0:1,w=S[C[T]],O=[0,w],I=this.dimensions.length,R=c(b.get("axisExpandWidth"),O),M=c(b.get("axisExpandCount")||0,[0,I]),B=b.get("axisExpandable")&&I>3&&I>M&&M>1&&R>0&&w>0,P=b.get("axisExpandWindow"),X;if(P)X=c(P[1]-P[0],O),P[1]=P[0]+X;else{X=c(R*(M-1),O);var F=b.get("axisExpandCenter")||s(I/2);P=[R*F-X/2],P[1]=P[0]+X}var j=(w-X)/(I-M);j<3&&(j=0);var K=[s(l(P[0]/R,1))+1,e(l(P[1]/R,1))-1],z=j/R*P[0];return{layout:_,pixelDimIndex:T,layoutBase:S[E[T]],layoutLength:w,axisBase:S[E[1-T]],axisLength:S[C[1-T]],axisExpandable:B,axisExpandWidth:R,axisCollapseWidth:j,axisExpandWindow:P,axisCount:I,winInnerIndices:K,axisExpandWindow0Pos:z}},_layoutAxes:function(){var b=this._rect,S=this._axesMap,E=this.dimensions,C=this._makeLayoutInfo(),_=C.layout;S.each(function(T){var w=[0,C.axisLength],O=T.inverse?1:0;T.setExtent(w[O],w[1-O])}),o(E,function(T,w){var O=(C.axisExpandable?g:h)(w,C),I={horizontal:{x:O.position,y:C.axisLength},vertical:{x:0,y:O.position}},R={horizontal:r/2,vertical:0},M=[I[_].x+b.x,I[_].y+b.y],B=R[_],P=p.create();p.rotate(P,P,B),p.translate(P,P,M),this._axesLayout[T]={position:M,rotation:B,transform:P,axisNameAvailableWidth:O.axisNameAvailableWidth,axisLabelShow:O.axisLabelShow,nameTruncateMaxWidth:O.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(b){return this._axesMap.get(b)},dataToPoint:function(b,S){return this.axisCoordToPoint(this._axesMap.get(S).dataToCoord(b),S)},eachActiveState:function(b,S,E,C){E==null&&(E=0),C==null&&(C=b.count());var _=this._axesMap,T=this.dimensions,w=[],O=[];y.each(T,function(j){w.push(b.mapDimension(j)),O.push(_.get(j).model)});for(var I=this.hasAxisBrushed(),R=E;R<C;R++){var M;if(!I)M="normal";else{M="active";for(var B=b.getValues(w,R),P=0,X=T.length;P<X;P++){var F=O[P].getActiveState(B[P]);if(F==="inactive"){M="inactive";break}}}S(M,R)}},hasAxisBrushed:function(){for(var b=this.dimensions,S=this._axesMap,E=!1,C=0,_=b.length;C<_;C++)S.get(b[C]).model.getActiveState()!=="normal"&&(E=!0);return E},axisCoordToPoint:function(b,S){var E=this._axesLayout[S];return f.applyTransform([b,0],E.transform)},getAxisLayout:function(b){return y.clone(this._axesLayout[b])},getSlidedAxisExpandWindow:function(b){var S=this._makeLayoutInfo(),E=S.pixelDimIndex,C=S.axisExpandWindow.slice(),_=C[1]-C[0],T=[0,S.axisExpandWidth*(S.axisCount-1)];if(!this.containPoint(b))return{behavior:"none",axisExpandWindow:C};var w=b[E]-S.layoutBase-S.axisExpandWindow0Pos,O,I="slide",R=S.axisCollapseWidth,M=this._model.get("axisExpandSlideTriggerArea"),B=M[0]!=null;if(R)B&&R&&w<_*M[0]?(I="jump",O=w-_*M[2]):B&&R&&w>_*(1-M[0])?(I="jump",O=w-_*(1-M[2])):(O=w-_*M[1])>=0&&(O=w-_*(1-M[1]))<=0&&(O=0),O*=S.axisExpandWidth/R,O?u(O,C,T,"all"):I="none";else{var _=C[1]-C[0],P=T[1]*w/_;C=[t(0,P-_/2)],C[1]=i(T[1],C[0]+_),C[0]=C[1]-_}return{axisExpandWindow:C,behavior:I}}};function c(b,S){return i(t(b,S[0]),S[1])}function h(b,S){var E=S.layoutLength/(S.axisCount-1);return{position:E*b,axisNameAvailableWidth:E,axisLabelShow:!0}}function g(b,S){var E=S.layoutLength,C=S.axisExpandWidth,_=S.axisCount,T=S.axisCollapseWidth,w=S.winInnerIndices,O,I=T,R=!1,M;return b<w[0]?(O=b*T,M=T):b<=w[1]?(O=S.axisExpandWindow0Pos+b*C-S.axisExpandWindow[0],I=C,R=!0):(O=E-(_-1-b)*T,M=T),{position:O,axisNameAvailableWidth:I,axisLabelShow:R,nameTruncateMaxWidth:M}}var A=a;k.exports=A},"2fGM":function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("nkfE"),v=n("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(u,o){return o.type||(o.data?"category":"value")}x("angle",m,d,f.angle),x("radius",m,d,f.radius)},"2fM7":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),v=n.n(x),m=n("lwsE"),f=n.n(m),d=n("W8MJ"),u=n.n(d),o=n("7W2i"),i=n.n(o),t=n("LQ03"),s=n.n(t),e=n("q1tI"),l=n("BGR+"),r=n("TSYQ"),a=n.n(r),c=n("1OyB"),h=n("vuIU"),g=n("Ji7U"),A=n("LK+K"),b=n("rePB"),S=n("Ff2n"),E=n("ODXe"),C=n("4IlW"),_=n("bX4T"),T=n("YrtM"),w=n("+nKL"),O=function(De){var Pe=De.className,et=De.customizeIcon,yt=De.customizeIconProps,St=De.onMouseDown,Vt=De.onClick,Rr=De.children,Vr;return typeof et=="function"?Vr=et(yt):Vr=et,e.createElement("span",{className:Pe,onMouseDown:function(Ft){Ft.preventDefault(),St&&St(Ft)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Vt,"aria-hidden":!0},Vr!==void 0?Vr:e.createElement("span",{className:a()(Pe.split(/\s+/).map(function(hn){return"".concat(hn,"-icon")}))},Rr))},I=O,R=function(De,Pe){var et=De.prefixCls,yt=De.id,St=De.flattenOptions,Vt=De.childrenAsData,Rr=De.values,Vr=De.searchValue,hn=De.multiple,Ft=De.defaultActiveFirstOption,vt=De.height,bt=De.itemHeight,fr=De.notFoundContent,Qt=De.open,Mt=De.menuItemSelectedIcon,qt=De.virtual,kt=De.onSelect,er=De.onToggleOpen,Kr=De.onActiveValue,Ir=De.onScroll,Dr=De.onMouseEnter,dn="".concat(et,"-item"),yn=Object(T.a)(function(){return St},[Qt,St],function(Ze,st){return st[0]&&Ze[1]!==st[1]}),ti=e.useRef(null),ei=function(st){st.preventDefault()},fi=function(st){ti.current&&ti.current.scrollTo({index:st})},Ei=function(st){for(var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,gt=yn.length,pr=0;pr<gt;pr+=1){var qr=(st+pr*Et+gt)%gt,Qr=yn[qr],gn=Qr.group,vr=Qr.data;if(!gn&&!vr.disabled)return qr}return-1},Di=e.useState(function(){return Ei(0)}),Hi=Object(E.a)(Di,2),nt=Hi[0],Le=Hi[1],je=function(st){Le(st);var Et=yn[st];if(!Et){Kr(null,-1);return}Kr(Et.data.value,st)};e.useEffect(function(){je(Ft!==!1?Ei(0):-1)},[yn.length,Vr]),e.useEffect(function(){var Ze=setTimeout(function(){if(!hn&&Qt&&Rr.size===1){var st=Array.from(Rr)[0],Et=yn.findIndex(function(gt){var pr=gt.data;return pr.value===st});je(Et),fi(Et)}});return function(){return clearTimeout(Ze)}},[Qt]);var Xe=function(st){st!==void 0&&kt(st,{selected:!Rr.has(st)}),hn||er(!1)};if(e.useImperativeHandle(Pe,function(){return{onKeyDown:function(st){var Et=st.which;switch(Et){case C.a.UP:case C.a.DOWN:{var gt=0;if(Et===C.a.UP?gt=-1:Et===C.a.DOWN&&(gt=1),gt!==0){var pr=Ei(nt+gt,gt);fi(pr),je(pr)}break}case C.a.ENTER:{var qr=yn[nt];qr&&!qr.data.disabled?Xe(qr.data.value):Xe(void 0),Qt&&st.preventDefault();break}case C.a.ESC:er(!1)}},onKeyUp:function(){},scrollTo:function(st){fi(st)}}}),yn.length===0)return e.createElement("div",{role:"listbox",id:"".concat(yt,"_list"),className:"".concat(dn,"-empty"),onMouseDown:ei},fr);function tt(Ze){var st=yn[Ze];if(!st)return null;var Et=st.data||{},gt=Et.value,pr=Et.label,qr=Et.children,Qr=Object(_.a)(Et,!0),gn=Vt?qr:pr;return st?e.createElement("div",Object.assign({"aria-label":typeof gn=="string"?gn:null},Qr,{key:Ze,role:"option",id:"".concat(yt,"_list_").concat(Ze),"aria-selected":Rr.has(gt)}),gt):null}return e.createElement(e.Fragment,null,e.createElement("div",{role:"listbox",id:"".concat(yt,"_list"),style:{height:0,width:0,overflow:"hidden"}},tt(nt-1),tt(nt),tt(nt+1)),e.createElement(w.a,{itemKey:"key",ref:ti,data:yn,height:vt,itemHeight:bt,fullHeight:!1,onMouseDown:ei,onScroll:Ir,virtual:qt,onMouseEnter:Dr},function(Ze,st){var Et,gt=Ze.group,pr=Ze.groupOption,qr=Ze.data,Qr=qr.label,gn=qr.key;if(gt)return e.createElement("div",{className:a()(dn,"".concat(dn,"-group"))},Qr!==void 0?Qr:gn);var vr=qr.disabled,Vn=qr.value,kr=qr.title,Bn=qr.children,on=qr.style,jr=qr.className,ai=Object(S.a)(qr,["disabled","value","title","children","style","className"]),Oi=Rr.has(Vn),Gi="".concat(dn,"-option"),rn=a()(dn,Gi,jr,(Et={},Object(b.a)(Et,"".concat(Gi,"-grouped"),pr),Object(b.a)(Et,"".concat(Gi,"-active"),nt===st&&!vr),Object(b.a)(Et,"".concat(Gi,"-disabled"),vr),Object(b.a)(Et,"".concat(Gi,"-selected"),Oi),Et)),Cn=Vt?Bn:Qr,Yn=!Mt||typeof Mt=="function"||Oi;return e.createElement("div",Object.assign({},ai,{"aria-selected":Oi,className:rn,title:kr,onMouseMove:function(){if(nt===st||vr)return;je(st)},onClick:function(){vr||Xe(Vn)},style:on}),e.createElement("div",{className:"".concat(Gi,"-content")},Cn||Vn),e.isValidElement(Mt)||Oi,Yn&&e.createElement(I,{className:"".concat(dn,"-option-state"),customizeIcon:Mt,customizeIconProps:{isSelected:Oi}},Oi?"\u2713":null))}))},M=e.forwardRef(R);M.displayName="OptionList";var B=M,P=function(){return null};P.isSelectOption=!0;var X=P,F=function(){return null};F.isSelectOptGroup=!0;var j=F,K=n("VTBJ"),z=n("Zm9Q");function V(Re){var De=Re.key,Pe=Re.props,et=Pe.children,yt=Pe.value,St=Object(S.a)(Pe,["children","value"]);return Object(K.a)({key:De,value:yt!==void 0?yt:De,children:et},St)}function Q(Re){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(z.a)(Re).map(function(Pe,et){if(!e.isValidElement(Pe)||!Pe.type)return null;var yt=Pe.type.isSelectOptGroup,St=Pe.key,Vt=Pe.props,Rr=Vt.children,Vr=Object(S.a)(Vt,["children"]);return De||!yt?V(Pe):Object(K.a)(Object(K.a)({key:"__RC_SELECT_GRP__".concat(St===null?et:St,"__"),label:St},Vr),{},{options:Q(Rr)})}).filter(function(Pe){return Pe})}var G=n("KQm4"),te=n("T5bk"),q=n("U8pU"),le=n("Kwbf");function re(Re){return Array.isArray(Re)?Re:Re!==void 0?[Re]:[]}function we(Re,De){var Pe=De.labelInValue,et=De.combobox;if(Re===void 0||Re===""&&et)return[];var yt=Array.isArray(Re)?Re:[Re];return Pe?yt.map(function(St){var Vt=St.key,Rr=St.value;return Rr!==void 0?Rr:Vt}):yt}function Ie(Re,De){var Pe=De.optionLabelProp,et=De.labelInValue,yt=De.prevValue,St=De.options,Vt=De.getLabeledValue,Rr=Re;return et&&(Rr=Rr.map(function(Vr){return Vt(Vr,{options:St,prevValue:yt,labelInValue:et,optionLabelProp:Pe})})),Rr}function Me(Re,De){var Pe=Object(G.a)(De),et;for(et=Re.length-1;et>=0&&Re[et].disabled;et-=1);var yt=null;return et!==-1&&(yt=Pe[et],Pe.splice(et,1)),{values:Pe,removedValue:yt}}var Je=typeof window!="undefined"&&window.document&&window.document.documentElement,Ve=Je,ut=0;function Fe(){var Re;return Ve?(Re=ut,ut+=1):Re="TEST_OR_SSR",Re}function ae(Re,De){var Pe=Re.key,et;return"value"in Re&&(et=Re.value),Pe!=null?Pe:et!==void 0?et:"rc-index-key-".concat(De)}function at(Re){var De=[];function Pe(et,yt){et.forEach(function(St){yt||!("options"in St)?De.push({key:ae(St,De.length),groupOption:yt,data:St}):(De.push({key:ae(St,De.length),group:!0,data:St}),Pe(St.options,!0))})}return Pe(Re,!1),De}function he(Re){var De=Object(K.a)({},Re);return"props"in De||Object.defineProperty(De,"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`."),De}}),De}function J(Re,De){var Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},et=Pe.prevValueOptions,yt=et===void 0?[]:et,St=new Map;return De.forEach(function(Vt){if(!Vt.group){var Rr=Vt.data;St.set(Rr.value,Rr)}}),Re.map(function(Vt){var Rr=St.get(Vt);return Rr||(Rr=Object(K.a)({},yt.find(function(Vr){return Vr._INTERNAL_OPTION_VALUE_===Vt}))),he(Rr)})}var Y=function(De,Pe){var et=Pe.options,yt=Pe.prevValue,St=Pe.labelInValue,Vt=Pe.optionLabelProp,Rr=J([De],et)[0],Vr={value:De},hn,Ft=re(yt);return St&&(hn=Ft.find(function(vt){return Object(q.a)(vt)==="object"&&"value"in vt?vt.value===De:vt.key===De})),hn&&Object(q.a)(hn)==="object"&&"label"in hn?(Vr.label=hn.label,Rr&&typeof hn.label=="string"&&typeof Rr[Vt]=="string"&&hn.label.trim()!==Rr[Vt].trim()&&Object(le.a)(!1,"`label` of `value` is not same as `label` in Select options.")):Rr&&Vt in Rr?Vr.label=Rr[Vt]:Vr.label=De,Vr.key=Vr.value,Vr};function $(Re){return re(Re).join("")}function de(Re){return function(De,Pe){var et=De.toLowerCase();if("options"in Pe)return $(Pe.label).toLowerCase().includes(et);var yt=Pe[Re],St=$(yt).toLowerCase();return St.includes(et)}}function be(Re,De,Pe){var et=Pe.optionFilterProp,yt=Pe.filterOption,St=[],Vt;return yt===!1?De:(typeof yt=="function"?Vt=yt:Vt=de(et),De.forEach(function(Rr){if("options"in Rr){var Vr=Vt(Re,Rr);if(Vr)St.push(Rr);else{var hn=Rr.options.filter(function(Ft){return Vt(Re,Ft)});hn.length&&St.push(Object(K.a)(Object(K.a)({},Rr),{},{options:hn}))}return}Vt(Re,he(Rr))&&St.push(Rr)}),St)}function Ce(Re,De){if(!De||!De.length)return null;var Pe=!1;function et(St,Vt){var Rr=Object(te.a)(Vt),Vr=Rr[0],hn=Rr.slice(1);if(!Vr)return[St];var Ft=St.split(Vr);return Pe=Pe||Ft.length>1,Ft.reduce(function(vt,bt){return[].concat(Object(G.a)(vt),Object(G.a)(et(bt,hn)))},[]).filter(function(vt){return vt})}var yt=et(Re,De);return Pe?yt:null}function Be(Re,De){var Pe=J([Re],De)[0];return Pe.disabled}function fe(Re,De,Pe,et){var yt=re(De).slice().sort(),St=Object(G.a)(Re),Vt=new Set;return Re.forEach(function(Rr){Rr.options?Rr.options.forEach(function(Vr){Vt.add(Vr.value)}):Vt.add(Rr.value)}),yt.forEach(function(Rr){var Vr=et?Rr.value:Rr;if(!Vt.has(Vr)){var hn;St.push(et?(hn={},Object(b.a)(hn,Pe,Rr.label),Object(b.a)(hn,"value",Vr),hn):{value:Vr})}}),St}var Se=n("6cGi"),ke=n("HTfv"),rt=n("c+Xe"),xt=function(De,Pe){var et=De.prefixCls,yt=De.id,St=De.inputElement,Vt=De.disabled,Rr=De.tabIndex,Vr=De.autoFocus,hn=De.autoComplete,Ft=De.editable,vt=De.accessibilityIndex,bt=De.value,fr=De.onKeyDown,Qt=De.onMouseDown,Mt=De.onChange,qt=De.onPaste,kt=De.onCompositionStart,er=De.onCompositionEnd,Kr=De.open,Ir=De.attrs,Dr=St||e.createElement("input",null),dn=Dr,yn=dn.ref,ti=dn.props,ei=ti.onKeyDown,fi=ti.onChange,Ei=ti.onMouseDown,Di=ti.onCompositionStart,Hi=ti.onCompositionEnd,nt=ti.style;return Dr=e.cloneElement(Dr,Object(K.a)(Object(K.a)({id:yt,ref:Object(rt.a)(Pe,yn),disabled:Vt,tabIndex:Rr,autoComplete:hn||"off",autoFocus:Vr,className:"".concat(et,"-selection-search-input"),style:Object(K.a)(Object(K.a)({},nt),{},{opacity:Ft?null:0}),role:"combobox","aria-expanded":Kr,"aria-haspopup":"listbox","aria-owns":"".concat(yt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(yt,"_list"),"aria-activedescendant":"".concat(yt,"_list_").concat(vt)},Ir),{},{value:Ft?bt:"",readOnly:!Ft,unselectable:Ft?null:"on",onKeyDown:function(je){fr(je),ei&&ei(je)},onMouseDown:function(je){Qt(je),Ei&&Ei(je)},onChange:function(je){Mt(je),fi&&fi(je)},onCompositionStart:function(je){kt(je),Di&&Di(je)},onCompositionEnd:function(je){er(je),Hi&&Hi(je)},onPaste:qt})),Dr},ht=e.forwardRef(xt);ht.displayName="Input";var He=ht;function ir(Re,De){Ve?e.useLayoutEffect(Re,De):e.useEffect(Re,De)}var ct="__RC_SELECT_MAX_REST_COUNT__",Xt=function(De){var Pe=De.id,et=De.prefixCls,yt=De.values,St=De.open,Vt=De.searchValue,Rr=De.inputRef,Vr=De.placeholder,hn=De.disabled,Ft=De.mode,vt=De.showSearch,bt=De.autoFocus,fr=De.autoComplete,Qt=De.accessibilityIndex,Mt=De.tabIndex,qt=De.removeIcon,kt=De.choiceTransitionName,er=De.maxTagCount,Kr=De.maxTagTextLength,Ir=De.maxTagPlaceholder,Dr=Ir===void 0?function(Vn){return"+ ".concat(Vn.length," ...")}:Ir,dn=De.tagRender,yn=De.onSelect,ti=De.onInputChange,ei=De.onInputPaste,fi=De.onInputKeyDown,Ei=De.onInputMouseDown,Di=De.onInputCompositionStart,Hi=De.onInputCompositionEnd,nt=e.useState(!1),Le=Object(E.a)(nt,2),je=Le[0],Xe=Le[1],tt=e.useRef(null),Ze=e.useState(0),st=Object(E.a)(Ze,2),Et=st[0],gt=st[1];e.useEffect(function(){Xe(!0)},[]);var pr=St||Ft==="tags"?Vt:"",qr=Ft==="tags"||St&&vt;ir(function(){gt(tt.current.scrollWidth)},[pr]);var Qr=yt,gn;typeof er=="number"&&(gn=yt.length-er,Qr=yt.slice(0,er)),typeof Kr=="number"&&(Qr=Qr.map(function(Vn){var kr=Vn.label,Bn=Object(S.a)(Vn,["label"]),on=kr;if(typeof kr=="string"||typeof kr=="number"){var jr=String(on);jr.length>Kr&&(on="".concat(jr.slice(0,Kr),"..."))}return Object(K.a)(Object(K.a)({},Bn),{},{label:on})})),gn>0&&Qr.push({key:ct,label:typeof Dr=="function"?Dr(yt.slice(er)):Dr});var vr=e.createElement(ke.CSSMotionList,{component:!1,keys:Qr,motionName:kt,motionAppear:je},function(Vn){var kr=Vn.key,Bn=Vn.label,on=Vn.value,jr=Vn.disabled,ai=Vn.className,Oi=Vn.style,Gi=kr||on,rn=kr!==ct&&!jr,Cn=function(Ot){Ot.preventDefault(),Ot.stopPropagation()},Yn=function(Ot){Ot&&Ot.stopPropagation(),yn(on,{selected:!1})};return typeof dn=="function"?e.createElement("span",{key:Gi,onMouseDown:Cn,className:ai,style:Oi},dn({label:Bn,value:on,disabled:jr,closable:rn,onClose:Yn})):e.createElement("span",{key:Gi,className:a()(ai,"".concat(et,"-selection-item"),Object(b.a)({},"".concat(et,"-selection-item-disabled"),jr)),style:Oi},e.createElement("span",{className:"".concat(et,"-selection-item-content")},Bn),rn&&e.createElement(I,{className:"".concat(et,"-selection-item-remove"),onMouseDown:Cn,onClick:Yn,customizeIcon:qt},"\xD7"))});return e.createElement(e.Fragment,null,vr,e.createElement("span",{className:"".concat(et,"-selection-search"),style:{width:Et}},e.createElement(He,{ref:Rr,open:St,prefixCls:et,id:Pe,inputElement:null,disabled:hn,autoFocus:bt,autoComplete:fr,editable:qr,accessibilityIndex:Qt,value:pr,onKeyDown:fi,onMouseDown:Ei,onChange:ti,onPaste:ei,onCompositionStart:Di,onCompositionEnd:Hi,tabIndex:Mt,attrs:Object(_.a)(De,!0)}),e.createElement("span",{ref:tt,className:"".concat(et,"-selection-search-mirror"),"aria-hidden":!0},pr,"\xA0")),!yt.length&&!pr&&e.createElement("span",{className:"".concat(et,"-selection-placeholder")},Vr))},hr=Xt,Jt=function(De){var Pe=De.inputElement,et=De.prefixCls,yt=De.id,St=De.inputRef,Vt=De.disabled,Rr=De.autoFocus,Vr=De.autoComplete,hn=De.accessibilityIndex,Ft=De.mode,vt=De.open,bt=De.values,fr=De.placeholder,Qt=De.tabIndex,Mt=De.showSearch,qt=De.searchValue,kt=De.activeValue,er=De.onInputKeyDown,Kr=De.onInputMouseDown,Ir=De.onInputChange,Dr=De.onInputPaste,dn=De.onInputCompositionStart,yn=De.onInputCompositionEnd,ti=e.useState(!1),ei=Object(E.a)(ti,2),fi=ei[0],Ei=ei[1],Di=Ft==="combobox",Hi=Di||Mt&&vt,nt=bt[0],Le=qt||"";Di&&kt&&!fi&&(Le=kt),e.useEffect(function(){Di&&Ei(!1)},[Di,kt]);var je=Ft!=="combobox"&&!vt?!1:!!Le,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(et,"-selection-search")},e.createElement(He,{ref:St,prefixCls:et,id:yt,open:vt,inputElement:Pe,disabled:Vt,autoFocus:Rr,autoComplete:Vr,editable:Hi,accessibilityIndex:hn,value:Le,onKeyDown:er,onMouseDown:Kr,onChange:function(Ze){Ei(!0),Ir(Ze)},onPaste:Dr,onCompositionStart:dn,onCompositionEnd:yn,tabIndex:Qt,attrs:Object(_.a)(De,!0)})),!Di&&nt&&!je&&e.createElement("span",{className:"".concat(et,"-selection-item"),title:Xe},nt.label),!nt&&!je&&e.createElement("span",{className:"".concat(et,"-selection-placeholder")},fr))},Pt=Jt;function Wt(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,De=e.useRef(null),Pe=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Pe.current)}},[]);function et(yt){(yt||De.current===null)&&(De.current=yt),window.clearTimeout(Pe.current),Pe.current=window.setTimeout(function(){De.current=null},Re)}return[function(){return De.current},et]}var Ge=function(De,Pe){var et=Object(e.useRef)(null),yt=Object(e.useRef)(!1),St=De.prefixCls,Vt=De.multiple,Rr=De.open,Vr=De.mode,hn=De.showSearch,Ft=De.tokenWithEnter,vt=De.onSearch,bt=De.onSearchSubmit,fr=De.onToggleOpen,Qt=De.onInputKeyDown,Mt=De.domRef;e.useImperativeHandle(Pe,function(){return{focus:function(){et.current.focus()},blur:function(){et.current.blur()}}});var qt=Wt(0),kt=Object(E.a)(qt,2),er=kt[0],Kr=kt[1],Ir=function(je){var Xe=je.which;(Xe===C.a.UP||Xe===C.a.DOWN)&&je.preventDefault(),Qt&&Qt(je),Xe===C.a.ENTER&&Vr==="tags"&&!yt.current&&!Rr&&bt(je.target.value),[C.a.SHIFT,C.a.TAB,C.a.BACKSPACE,C.a.ESC].includes(Xe)||fr(!0)},Dr=function(){Kr(!0)},dn=Object(e.useRef)(null),yn=function(je){vt(je,!0,yt.current)!==!1&&fr(!0)},ti=function(){yt.current=!0},ei=function(){yt.current=!1},fi=function(je){var Xe=je.target.value;if(Ft&&dn.current&&/[\r\n]/.test(dn.current)){var tt=dn.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Xe=Xe.replace(tt,dn.current)}dn.current=null,yn(Xe)},Ei=function(je){var Xe=je.clipboardData,tt=Xe.getData("text");dn.current=tt},Di=function(je){var Xe=er();if(je.target!==et.current){Xe||je.preventDefault();var tt=document.body.style.msTouchAction!==void 0;tt?setTimeout(function(){et.current.focus()}):et.current.focus()}(Vr!=="combobox"&&(!hn||!Xe)||!Rr)&&(Rr&&vt("",!0,!1),fr())},Hi={inputRef:et,onInputKeyDown:Ir,onInputMouseDown:Dr,onInputChange:fi,onInputPaste:Ei,onInputCompositionStart:ti,onInputCompositionEnd:ei},nt=Vt?e.createElement(hr,Object.assign({},De,Hi)):e.createElement(Pt,Object.assign({},De,Hi));return e.createElement("div",{ref:Mt,className:"".concat(St,"-selector"),onMouseDown:Di},nt)},pe=e.forwardRef(Ge);pe.displayName="Selector";var se=pe,lt=n("Uaa1"),qe=function(De){var Pe=typeof De!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Pe,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Pe,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Pe,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Pe,adjustY:1}}}},me=function(De,Pe){var et=De.prefixCls,yt=De.disabled,St=De.visible,Vt=De.children,Rr=De.popupElement,Vr=De.containerWidth,hn=De.animation,Ft=De.transitionName,vt=De.dropdownStyle,bt=De.dropdownClassName,fr=De.direction,Qt=fr===void 0?"ltr":fr,Mt=De.dropdownMatchSelectWidth,qt=Mt===void 0?!0:Mt,kt=De.dropdownRender,er=De.dropdownAlign,Kr=De.getPopupContainer,Ir=De.empty,Dr=De.getTriggerDOMNode,dn=Object(S.a)(De,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),yn="".concat(et,"-dropdown"),ti=Rr;kt&&(ti=kt(Rr));var ei=e.useMemo(function(){return qe(qt)},[qt]),fi=hn?"".concat(yn,"-").concat(hn):Ft,Ei=e.useRef(null);e.useImperativeHandle(Pe,function(){return{getPopupElement:function(){return Ei.current}}});var Di=Object(K.a)({minWidth:Vr},vt);return typeof qt=="number"?Di.width=qt:qt&&(Di.width=Vr),e.createElement(lt.a,Object.assign({},dn,{showAction:[],hideAction:[],popupPlacement:Qt==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:ei,prefixCls:yn,popupTransitionName:fi,popup:e.createElement("div",{ref:Ei},ti),popupAlign:er,popupVisible:St,getPopupContainer:Kr,popupClassName:a()(bt,Object(b.a)({},"".concat(yn,"-empty"),Ir)),popupStyle:Di,getTriggerDOMNode:Dr}),Vt)},Ht=e.forwardRef(me);Ht.displayName="SelectTrigger";var yr=Ht,At="RC_SELECT_INTERNAL_PROPS_MARK";function rr(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,De=e.useState(!1),Pe=Object(E.a)(De,2),et=Pe[0],yt=Pe[1],St=e.useRef(null),Vt=function(){window.clearTimeout(St.current)};e.useEffect(function(){return Vt},[]);var Rr=function(hn,Ft){Vt(),St.current=window.setTimeout(function(){yt(hn),Ft&&Ft()},Re)};return[et,Rr,Vt]}function ur(Re,De,Pe){var et=e.useRef(null);et.current={elements:Re.filter(function(yt){return yt}),open:De,triggerOpen:Pe},e.useEffect(function(){function yt(St){var Vt=St.target;et.current.open&&et.current.elements.every(function(Rr){return!Rr.contains(Vt)&&Rr!==Vt})&&et.current.triggerOpen(!1)}return window.addEventListener("mousedown",yt),function(){return window.removeEventListener("mousedown",yt)}},[])}function vn(Re){var De=e.useRef(Re),Pe=e.useMemo(function(){var et=new Map;De.current.forEach(function(St){var Vt=St.value,Rr=St.label;Vt!==Rr&&et.set(Vt,Rr)});var yt=Re.map(function(St){var Vt=et.get(St.value);return St.value===St.label&&Vt?Object(K.a)(Object(K.a)({},St),{},{label:Vt}):St});return De.current=yt,yt},[Re]);return Pe}function Bt(Re,De){var Pe=e.useRef(null),et=e.useMemo(function(){var St=new Map;return De.forEach(function(Vt){var Rr=Vt.data.value;St.set(Rr,Vt)}),St},[Re,De]);Pe.current=et;var yt=function(Vt){return Vt.map(function(Rr){return Pe.current.get(Rr)}).filter(Boolean)};return yt}var sr=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function Yt(Re){var De=Re.prefixCls,Pe=Re.components.optionList,et=Re.convertChildrenToData,yt=Re.flattenOptions,St=Re.getLabeledValue,Vt=Re.filterOptions,Rr=Re.isValueDisabled,Vr=Re.findValueOption,hn=Re.warningProps,Ft=Re.fillOptionsWithMissingValue,vt=Re.omitDOMProps;function bt(Qt,Mt){var qt,kt=Qt.prefixCls,er=kt===void 0?De:kt,Kr=Qt.className,Ir=Qt.id,Dr=Qt.open,dn=Qt.defaultOpen,yn=Qt.options,ti=Qt.children,ei=Qt.mode,fi=Qt.value,Ei=Qt.defaultValue,Di=Qt.labelInValue,Hi=Qt.showSearch,nt=Qt.inputValue,Le=Qt.searchValue,je=Qt.filterOption,Xe=Qt.optionFilterProp,tt=Xe===void 0?"value":Xe,Ze=Qt.autoClearSearchValue,st=Ze===void 0?!0:Ze,Et=Qt.onSearch,gt=Qt.allowClear,pr=Qt.clearIcon,qr=Qt.showArrow,Qr=Qt.inputIcon,gn=Qt.menuItemSelectedIcon,vr=Qt.disabled,Vn=Qt.loading,kr=Qt.defaultActiveFirstOption,Bn=Qt.notFoundContent,on=Bn===void 0?"Not Found":Bn,jr=Qt.optionLabelProp,ai=Qt.backfill,Oi=Qt.getInputElement,Gi=Qt.getPopupContainer,rn=Qt.listHeight,Cn=rn===void 0?200:rn,Yn=Qt.listItemHeight,Gt=Yn===void 0?20:Yn,Ot=Qt.animation,Rt=Qt.transitionName,jt=Qt.virtual,zt=Qt.dropdownStyle,Lt=Qt.dropdownClassName,cr=Qt.dropdownMatchSelectWidth,Ar=Qt.dropdownRender,br=Qt.dropdownAlign,Pr=Qt.showAction,Xn=Pr===void 0?[]:Pr,Pn=Qt.direction,di=Qt.tokenSeparators,An=Qt.tagRender,Ur=Qt.onPopupScroll,In=Qt.onDropdownVisibleChange,Qn=Qt.onFocus,$n=Qt.onBlur,oi=Qt.onKeyUp,Ti=Qt.onKeyDown,ki=Qt.onMouseDown,Ri=Qt.onChange,oa=Qt.onSelect,ma=Qt.onDeselect,aa=Qt.onClear,ba=Qt.internalProps,yi=ba===void 0?{}:ba,kn=Object(S.a)(Qt,["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"]),Ui=yi.mark===At,ha=vt?vt(kn):kn;sr.forEach(function(pa){delete ha[pa]});var ta=Object(e.useRef)(null),ra=Object(e.useRef)(null),Lr=Object(e.useRef)(null),xr=Object(e.useRef)(null),Tn=Object(e.useMemo)(function(){return(di||[]).some(function(pa){return[`
`,`\r
`].includes(pa)})},[di]),mr=rr(),Mr=Object(E.a)(mr,3),Xr=Mr[0],un=Mr[1],Fn=Mr[2],_t=Object(e.useState)(),Or=Object(E.a)(_t,2),Nr=Or[0],tn=Or[1];Object(e.useEffect)(function(){tn("rc_select_".concat(Fe()))},[]);var xn=Ir||Nr,Ln=jr;Ln===void 0&&(Ln=yn?"label":"children");var Sn=ei==="combobox"?!1:Di,qn=ei==="tags"||ei==="multiple",Wn=Hi!==void 0?Hi:qn||ei==="combobox",pi=Object(e.useRef)(null);e.useImperativeHandle(Mt,function(){return{focus:Lr.current.focus,blur:Lr.current.blur}});var Pi=Object(Se.a)(Ei,{value:fi}),bi=Object(E.a)(Pi,2),Ii=bi[0],zi=bi[1],ea=Object(e.useMemo)(function(){return we(Ii,{labelInValue:Sn,combobox:ei==="combobox"})},[Ii,Sn]),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;ei==="combobox"&&Ii!==void 0?va=Ii:Le!==void 0?va=Le:nt&&(va=nt);var ga=Object(e.useMemo)(function(){var pa=yn;return pa===void 0&&(pa=et(ti)),ei==="tags"&&Ft&&(pa=Ft(pa,Ii,Ln,Di)),pa||[]},[yn,ti,ei,Ii]),Oa=Object(e.useMemo)(function(){return yt(ga,Qt)},[ga]),Aa=Bt(ea,Oa),Xa=Object(e.useMemo)(function(){if(!va||!Wn)return Object(G.a)(ga);var pa=Vt(va,ga,{optionFilterProp:tt,filterOption:ei==="combobox"&&je===void 0?function(){return!0}:je});return ei==="tags"&&pa.every(function(Ea){return Ea[tt]!==va})&&pa.unshift({value:va,label:va,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),pa},[ga,va,ei,Wn]),_a=Object(e.useMemo)(function(){return yt(Xa,Qt)},[Xa]);Object(e.useEffect)(function(){xr.current&&xr.current.scrollTo&&xr.current.scrollTo(0)},[va]);var Va=Object(e.useMemo)(function(){var pa=ea.map(function(Ea){var Fa=Aa([Ea]),Ka=St(Ea,{options:Fa,prevValue:Ii,labelInValue:Sn,optionLabelProp:Ln});return Object(K.a)(Object(K.a)({},Ka),{},{disabled:Rr(Ea,Fa)})});return!ei&&pa.length===1&&pa[0].value===null&&pa[0].label===null?[]:pa},[Ii,ga,ei]);Va=vn(Va);var Fi=function(Ea,Fa,Ka){var lo=Aa([Ea]),so=Vr([Ea],lo)[0];if(!yi.skipTriggerSelect){var Co=Sn?St(Ea,{options:lo,prevValue:Ii,labelInValue:Sn,optionLabelProp:Ln}):Ea;Fa&&oa?oa(Co,so):!Fa&&ma&&ma(Co,so)}Ui&&(Fa&&yi.onRawSelect?yi.onRawSelect(Ea,so,Ka):!Fa&&yi.onRawDeselect&&yi.onRawDeselect(Ea,so,Ka))},io=Object(e.useState)([]),oo=Object(E.a)(io,2),Qo=oo[0],mo=oo[1],To=function(Ea){if(Ui&&yi.skipTriggerChange)return;var Fa=Aa(Ea),Ka=Ie(Array.from(Ea),{labelInValue:Sn,options:Fa,getLabeledValue:St,prevValue:Ii,optionLabelProp:Ln}),lo=qn?Ka:Ka[0];if(Ri&&(ea.length!==0||Ka.length!==0)){var so=Vr(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})),Ri(lo,qn?so:so[0])}zi(lo)},ao=function(Ea,Fa){var Ka=Fa.selected,lo=Fa.source;if(vr)return;var so;qn?(so=new Set(ea),Ka?so.add(Ea):so.delete(Ea)):(so=new Set,so.add(Ea)),(qn||!qn&&Array.from(ea)[0]!==Ea)&&To(Array.from(so)),Fi(Ea,!qn||Ka,lo),ei==="combobox"?(La(String(Ea)),ca("")):(!qn||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=ei==="combobox"&&Oi&&Oi()||null,Jo=Object(Se.a)(void 0,{defaultValue:dn,value:Dr}),Uo=Object(E.a)(Jo,2),wo=Uo[0],ts=Uo[1],Ia=wo,Oo=!on&&!Xa.length;(vr||Oo&&Ia&&ei==="combobox")&&(Ia=!1);var Io=Oo?!1:Ia,os=function(Ea){var Fa=Ea!==void 0?Ea:!Ia;wo!==Fa&&!vr&&(ts(Fa),In&&In(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(ei==="combobox")Fa&&To([so]);else if(Co){so="",ei!=="tags"&&(Lo=Co.map(function(cs){var Rs=Oa.find(function(Ko){var as=Ko.data;return as[Ln]===cs});return Rs?Rs.data.value:null}).filter(function(cs){return cs!==null}));var is=Array.from(new Set([].concat(Object(G.a)(ea),Object(G.a)(Lo))));To(is),is.forEach(function(cs){Fi(cs,!0,"input")}),os(!1),lo=!1}return La(so),Et&&va!==so&&Et(so),lo},rs=function(Ea){var Fa=Array.from(new Set([].concat(Object(G.a)(ea),[Ea])));To(Fa),Fa.forEach(function(Ka){Fi(Ka,!0,"input")}),La("")};Object(e.useEffect)(function(){wo&&!!vr&&ts(!1)},[vr]),Object(e.useEffect)(function(){!Ia&&!qn&&ei!=="combobox"&&xo("",!1,!1)},[Ia]);var Ho=Wt(),_o=Object(E.a)(Ho,2),uo=_o[0],Ha=_o[1],mt=function(Ea){var Fa=uo(),Ka=Ea.which;if(!Ia&&Ka===C.a.ENTER&&os(!0),Ha(!!va),Ka===C.a.BACKSPACE&&!Fa&&qn&&!va&&ea.length){var lo=Me(Va,ea);lo.removedValue!==null&&(To(lo.values),Fi(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&&xr.current){var is;(is=xr.current).onKeyDown.apply(is,[Ea].concat(Co))}Ti&&Ti.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&&xr.current){var so;(so=xr.current).onKeyUp.apply(so,[Ea].concat(Ka))}oi&&oi.apply(void 0,[Ea].concat(Ka))},en=Object(e.useRef)(!1),Jr=function(){un(!0),vr||(Qn&&!en.current&&Qn.apply(void 0,arguments),Xn.includes("focus")&&os(!0)),en.current=!0},Jn=function(){if(un(!1,function(){en.current=!1,os(!1)}),vr)return;va&&(ei==="tags"?(xo("",!1,!1),To(Array.from(new Set([].concat(Object(G.a)(ea),[va]))))):ei==="multiple"&&La("")),$n&&$n.apply(void 0,arguments)},fn=[];Object(e.useEffect)(function(){return function(){fn.forEach(function(pa){return clearTimeout(pa)}),fn.splice(0,fn.length)}},[]);var Yr=function(Ea){var Fa=Ea.target,Ka=ra.current&&ra.current.getPopupElement();if(Ka&&Ka.contains(Fa)){var lo=setTimeout(function(){var is=fn.indexOf(lo);is!==-1&&fn.splice(is,1),Fn(),Ka.contains(document.activeElement)||Lr.current.focus()});fn.push(lo)}if(ki){for(var so=arguments.length,Co=new Array(so>1?so-1:0),Lo=1;Lo<so;Lo++)Co[Lo-1]=arguments[Lo];ki.apply(void 0,[Ea].concat(Co))}},ni=Object(e.useState)(0),nn=Object(E.a)(ni,2),zn=nn[0],li=nn[1],ci=kr!==void 0?kr:ei!=="combobox",si=function(Ea,Fa){li(Fa),ai&&ei==="combobox"&&Ea!==null&&ca(String(Ea))},Ci=Object(e.useState)(null),mi=Object(E.a)(Ci,2),Ai=mi[0],Ni=mi[1],ia=Object(e.useState)({}),Ki=Object(E.a)(ia,2),fa=Ki[1];function Ya(){fa({})}ir(function(){if(Io){var pa=Math.ceil(ta.current.offsetWidth);Ai!==pa&&Ni(pa)}},[Io]);var xa=e.createElement(Pe,{ref:xr,prefixCls:er,id:xn,open:Ia,childrenAsData:!yn,options:Xa,flattenOptions:_a,multiple:qn,values:Xi,height:Cn,itemHeight:Gt,onSelect:So,onToggleOpen:os,onActiveValue:si,defaultActiveFirstOption:ci,notFoundContent:on,onScroll:Ur,searchValue:va,menuItemSelectedIcon:gn,virtual:jt!==!1&&cr!==!1,onMouseEnter:Ya}),wa,Da=function(){Ui&&yi.onClear&&yi.onClear(),aa&&aa(),To([]),xo("",!1,!1)};!vr&&gt&&(ea.length||va)&&(wa=e.createElement(I,{className:"".concat(er,"-clear"),onMouseDown:Da,customizeIcon:pr},"\xD7"));var ja=qr!==void 0?qr:Vn||!qn&&ei!=="combobox",ko;ja&&(ko=e.createElement(I,{className:a()("".concat(er,"-arrow"),Object(b.a)({},"".concat(er,"-arrow-loading"),Vn)),customizeIcon:Qr,customizeIconProps:{loading:Vn,searchValue:va,open:Ia,focused:Xr,showSearch:Wn}}));var ro=a()(er,Kr,(qt={},Object(b.a)(qt,"".concat(er,"-focused"),Xr),Object(b.a)(qt,"".concat(er,"-multiple"),qn),Object(b.a)(qt,"".concat(er,"-single"),!qn),Object(b.a)(qt,"".concat(er,"-allow-clear"),gt),Object(b.a)(qt,"".concat(er,"-show-arrow"),ja),Object(b.a)(qt,"".concat(er,"-disabled"),vr),Object(b.a)(qt,"".concat(er,"-loading"),Vn),Object(b.a)(qt,"".concat(er,"-open"),Ia),Object(b.a)(qt,"".concat(er,"-customize-input"),to),Object(b.a)(qt,"".concat(er,"-show-search"),Wn),qt));return e.createElement("div",Object.assign({className:ro},ha,{ref:ta,onMouseDown:Yr,onKeyDown:mt,onKeyUp:Tr,onFocus:Jr,onBlur:Jn}),Xr&&!Ia&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ea.join(", "))),e.createElement(yr,{ref:ra,disabled:vr,prefixCls:er,visible:Io,popupElement:xa,containerWidth:Ai,animation:Ot,transitionName:Rt,dropdownStyle:zt,dropdownClassName:Lt,direction:Pn,dropdownMatchSelectWidth:cr,dropdownRender:Ar,dropdownAlign:br,getPopupContainer:Gi,empty:!ga.length,getTriggerDOMNode:function(){return pi.current}},e.createElement(se,Object.assign({},Qt,{domRef:pi,prefixCls:er,inputElement:to,ref:Lr,id:xn,showSearch:Wn,mode:ei,accessibilityIndex:zn,multiple:qn,tagRender:An,values:Va,open:Ia,onToggleOpen:os,searchValue:va,activeValue:Ji,onSearch:xo,onSearchSubmit:rs,onSelect:bo,tokenWithEnter:Tn}))),ko,wa)}var fr=e.forwardRef(bt);return fr}function pt(Re){var De=Re.mode,Pe=Re.options,et=Re.children,yt=Re.backfill,St=Re.allowClear,Vt=Re.placeholder,Rr=Re.getInputElement,Vr=Re.showSearch,hn=Re.onSearch,Ft=Re.defaultOpen,vt=Re.autoFocus,bt=Re.labelInValue,fr=Re.value,Qt=Re.inputValue,Mt=Re.optionLabelProp,qt=De==="multiple"||De==="tags",kt=Vr!==void 0?Vr:qt||De==="combobox",er=Pe||Q(et);if(Object(le.a)(De!=="tags"||er.every(function(dn){return!dn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),De==="tags"||De==="combobox"){var Kr=er.some(function(dn){return dn.options?dn.options.some(function(yn){return typeof("value"in yn?yn.value:yn.key)=="number"}):typeof("value"in dn?dn.value:dn.key)=="number"});Object(le.a)(!Kr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(le.a)(De!=="combobox"||!Mt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(le.a)(De==="combobox"||!yt,"`backfill` only works with `combobox` mode."),Object(le.a)(De==="combobox"||!Rr,"`getInputElement` only work with `combobox` mode."),Object(le.b)(De!=="combobox"||!Rr||!St||!Vt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),hn&&!kt&&De!=="combobox"&&De!=="tags"&&Object(le.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(le.b)(!Ft||vt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),fr!=null){var Ir=re(fr);Object(le.a)(!bt||Ir.every(function(dn){return Object(q.a)(dn)==="object"&&("key"in dn||"value"in dn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(le.a)(!qt||Array.isArray(fr),"`value` should be array when `mode` is `multiple` or `tags`")}if(et){var Dr=null;Object(z.a)(et).some(function(dn){if(!e.isValidElement(dn)||!dn.type)return!1;var yn=dn.type;if(yn.isSelectOption)return!1;if(yn.isSelectOptGroup){var ti=Object(z.a)(dn.props.children).every(function(ei){return!e.isValidElement(ei)||!dn.type||ei.type.isSelectOption?!0:(Dr=ei.type,!1)});return!ti}return Dr=yn,!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)(Qt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var it=pt,Fr=Yt({prefixCls:"rc-select",components:{optionList:B},convertChildrenToData:Q,flattenOptions:at,getLabeledValue:Y,filterOptions:be,isValueDisabled:Be,findValueOption:J,warningProps:it,fillOptionsWithMissingValue:fe}),cn=function(Re){Object(g.a)(Pe,Re);var De=Object(A.a)(Pe);function Pe(){var et;return Object(c.a)(this,Pe),et=De.apply(this,arguments),et.selectRef=e.createRef(),et.focus=function(){et.selectRef.current.focus()},et.blur=function(){et.selectRef.current.blur()},et}return Object(h.a)(Pe,[{key:"render",value:function(){return e.createElement(Fr,Object.assign({ref:this.selectRef},this.props))}}]),Pe}(e.Component);cn.Option=X,cn.OptGroup=j;var _n=cn,Kn=_n,gi=n("H84U"),Mn=n("1vzs"),Un=n("3Nzz"),$t=function(Re){i()(Pe,Re);var De=s()(Pe);function Pe(){var et;return f()(this,Pe),et=De.apply(this,arguments),et.selectRef=e.createRef(),et.focus=function(){et.selectRef.current&&et.selectRef.current.focus()},et.blur=function(){et.selectRef.current&&et.selectRef.current.blur()},et.getMode=function(){var yt=et.props.mode;return yt==="combobox"?void 0:yt===Pe.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":yt},et.renderSelect=function(yt){var St=yt.getPopupContainer,Vt=yt.getPrefixCls,Rr=yt.renderEmpty,Vr=yt.direction,hn=yt.virtual,Ft=yt.dropdownMatchSelectWidth,vt=et.props,bt=vt.prefixCls,fr=vt.notFoundContent,Qt=vt.className,Mt=vt.size,qt=vt.listHeight,kt=qt===void 0?256:qt,er=vt.listItemHeight,Kr=er===void 0?24:er,Ir=vt.getPopupContainer,Dr=vt.dropdownClassName,dn=vt.bordered,yn=Vt("select",bt),ti=et.getMode(),ei=ti==="multiple"||ti==="tags",fi;fr!==void 0?fi=fr:ti==="combobox"?fi=null:fi=Rr("Select");var Ei=Object(Mn.a)(v()(v()({},et.props),{multiple:ei,prefixCls:yn})),Di=Ei.suffixIcon,Hi=Ei.itemIcon,nt=Ei.removeIcon,Le=Ei.clearIcon,je=Object(l.default)(et.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),Xe=a()(Dr,p()({},"".concat(yn,"-dropdown-").concat(Vr),Vr==="rtl"));return e.createElement(Un.b.Consumer,null,function(tt){var Ze,st=Mt||tt,Et=a()(Qt,(Ze={},p()(Ze,"".concat(yn,"-lg"),st==="large"),p()(Ze,"".concat(yn,"-sm"),st==="small"),p()(Ze,"".concat(yn,"-rtl"),Vr==="rtl"),p()(Ze,"".concat(yn,"-borderless"),!dn),Ze));return e.createElement(Kn,v()({ref:et.selectRef,virtual:hn,dropdownMatchSelectWidth:Ft},je,{listHeight:kt,listItemHeight:Kr,mode:ti,prefixCls:yn,direction:Vr,inputIcon:Di,menuItemSelectedIcon:Hi,removeIcon:nt,clearIcon:Le,notFoundContent:fi,className:Et,getPopupContainer:Ir||St,dropdownClassName:Xe}))})},et}return u()(Pe,[{key:"render",value:function(){return e.createElement(gi.a,null,this.renderSelect)}}]),Pe}(e.Component);$t.Option=X,$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 Ct=D.a=$t},"2fw6":function(k,D,n){var y=n("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)}});k.exports=p},"2gN3":function(k,D,n){var y=n("Kz5y"),p=y["__core-js_shared__"];k.exports=p},"2jpz":function(k,D,n){"use strict";n.d(D,"a",function(){return h});var y=n("cDf5"),p=n.n(y),x=n("q1tI"),v=n.n(x),m=n("TSYQ"),f=n.n(m),d=n("gZBC"),u=n.n(d),o=n("vk+C"),i=n.n(o),t=n("pG52"),s=n.n(t),e=n("Csr3"),l=n.n(e),r=n("e5VY"),a=n.n(r),c=n("0n0R");function h(g,A,b,S){var E=S.isLeaf,C=S.expanded,_=S.loading;if(_)return x.createElement(u.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(i.a,{className:"".concat(g,"-switcher-line-icon")}):null;var w="".concat(g,"-switcher-icon");return Object(c.b)(A)?Object(c.a)(A,{className:f()(A.props.className||"",w)}):A||(b?C?x.createElement(s.a,{className:"".concat(g,"-switcher-line-icon")}):x.createElement(l.a,{className:"".concat(g,"-switcher-line-icon")}):x.createElement(a.a,{className:w}))}},"2oIt":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};D.default=y},"2uGb":function(k,D,n){var y=n("ProS");n("ko1b"),n("s2lz"),n("RBEP");var p=n("kMLO"),x=n("nKiI");y.registerVisual(p),y.registerLayout(x)},"2w7y":function(k,D,n){var y=n("ProS");n("qMZE"),n("g0SD"),y.registerPreprocessor(function(p){p.markPoint=p.markPoint||{}})},"33Ds":function(k,D,n){var y=n("ProS"),p=n("b9oc"),x=n("Kagy"),v=n("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,i,t){p.clear(o),i.dispatchAction({type:"restore",from:this.uid})},v.register("restore",f),y.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(o,i){i.resetOption("recreate")});var u=f;k.exports=u},"34/K":function(k,D,n){"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 u=f[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}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,u,o,i,t,s,e){this._lines===0&&(this._lines=i);var l=e==8?1:4,r=o*l;if(t.rQwait("RAW",r))return!1;var a=u+(i-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),S=0;S<A;S++)b[S*4+0]=(h[g+S]>>0&3)*255/3,b[S*4+1]=(h[g+S]>>2&3)*255/3,b[S*4+2]=(h[g+S]>>4&3)*255/3,b[S*4+4]=0;h=b,g=0}return s.blitImage(d,a,o,c,h,g),t.rQskipBytes(c*r),this._lines-=c,!(this._lines>0)}}]),m}();D.default=v},"3690":function(k,D,n){"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(n("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 i=x();if(i&&i.has(o))return i.get(o);var t={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in o)if(Object.prototype.hasOwnProperty.call(o,e)){var l=s?Object.getOwnPropertyDescriptor(o,e):null;l&&(l.get||l.set)?Object.defineProperty(t,e,l):t[e]=o[e]}return t.default=o,i&&i.set(o,t),t}function m(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function f(o,i){for(var t=0;t<i.length;t++){var s=i[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(o,s.key,s)}}function d(o,i,t){return i&&f(o.prototype,i),t&&f(o,t),o}var u=function(){function o(){m(this,o),this._tiles=0,this._lastsubencoding=0}return d(o,[{key:"decodeRect",value:function(t,s,e,l,r,a,c){for(this._tiles===0&&(this._tilesX=Math.ceil(e/16),this._tilesY=Math.ceil(l/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);this._tiles>0;){var 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 S=this._totalTiles-this._tiles,E=S%this._tilesX,C=Math.floor(S/this._tilesX),_=t+E*16,T=s+C*16,w=Math.min(16,t+e-_),O=Math.min(16,s+l-T);if(b&1)h+=w*O*4;else if(b&2&&(h+=4),b&4&&(h+=4),b&8){if(h++,r.rQwait("HEXTILE",h))return!1;var I=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"):a.fillRect(_,T,w,O,this._background);else if(b&1)a.blitImage(_,T,w,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),a.startTile(_,T,w,O,this._background),b&8){var R=g[A];A++;for(var M=0;M<R;M++){var B=void 0;b&16?(B=[g[A],g[A+1],g[A+2],g[A+3]],A+=4):B=this._foreground;var P=g[A];A++;var X=P>>4,F=P&15,j=g[A];A++;var K=(j>>4)+1,z=(j&15)+1;a.subTile(X,F,K,z,B)}}a.finishTile()}r.rQi=A,this._lastsubencoding=b,this._tiles--}return!0}}]),o}();D.default=u},"3A9y":function(k,D){function n(y){return this.__data__.has(y)}k.exports=n},"3C/r":function(k,D){var n=function(x,v){this.image=x,this.repeat=v,this.type="pattern"};n.prototype.getCanvasPattern=function(p){return p.createPattern(this.image,this.repeat||"repeat")};var y=n;k.exports=y},"3CBa":function(k,D,n){var y=n("hydK"),p=y.createElement,x=n("bYtY"),v=n("SUKs"),m=n("y+Vt"),f=n("Dagg"),d=n("dqUG"),u=n("DBLp"),o=n("sW+o"),i=n("n6Mw"),t=n("vKoX"),s=n("P47w"),e=s.path,l=s.image,r=s.text;function a(w){return parseInt(w,10)}function c(w){return w instanceof m?e:w instanceof f?l:w instanceof d?r:e}function h(w,O){return O&&w&&O.parentNode!==w}function g(w,O,I){if(h(w,O)&&I){var R=I.nextSibling;R?w.insertBefore(O,R):w.appendChild(O)}}function A(w,O){if(h(w,O)){var I=w.firstChild;I?w.insertBefore(O,I):w.appendChild(O)}}function b(w,O){O&&w&&O.parentNode===w&&w.removeChild(O)}function S(w){return w.__textSvgEl}function E(w){return w.__svgEl}var C=function(O,I,R,M){this.root=O,this.storage=I,this._opts=R=x.extend({},R||{});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 P=p("g");B.appendChild(P);var X=p("g");B.appendChild(X),this.gradientManager=new o(M,X),this.clipPathManager=new i(M,X),this.shadowManager=new t(M,X);var F=document.createElement("div");F.style.cssText="overflow:hidden;position:relative",this._svgDom=B,this._svgRoot=X,this._backgroundRoot=P,this._viewport=F,O.appendChild(F),F.appendChild(B),this.resize(R.width,R.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,R=this._visibleList,M=O.length,B=[],P;for(P=0;P<M;P++){var X=O[P],F=c(X),j=E(X)||S(X);X.invisible||(X.__dirty&&(F&&F.brush(X),this.clipPathManager.update(X),X.style&&(this.gradientManager.update(X.style.fill),this.gradientManager.update(X.style.stroke),this.shadowManager.update(j,X)),X.__dirty=!1),B.push(X))}var K=u(R,B),z;for(P=0;P<K.length;P++){var V=K[P];if(V.removed)for(var Q=0;Q<V.count;Q++){var X=R[V.indices[Q]],j=E(X),G=S(X);b(I,j),b(I,G)}}for(P=0;P<K.length;P++){var V=K[P];if(V.added)for(var Q=0;Q<V.count;Q++){var X=B[V.indices[Q]],j=E(X),G=S(X);z?g(I,j,z):A(I,j),j?g(I,G,j):z?g(I,G,z):A(I,G),g(I,G,j),z=G||j||z,this.gradientManager.addWithoutUpdate(j||G,X),this.shadowManager.addWithoutUpdate(j||G,X),this.clipPathManager.markUsed(X)}else if(!V.removed)for(var Q=0;Q<V.count;Q++){var X=B[V.indices[Q]],j=E(X),G=S(X),j=E(X),G=S(X);this.gradientManager.markUsed(X),this.gradientManager.addWithoutUpdate(j||G,X),this.shadowManager.markUsed(X),this.shadowManager.addWithoutUpdate(j||G,X),this.clipPathManager.markUsed(X),G&&g(I,G,j),z=j||G||z}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=B},_getDefs:function(O){var I=this._svgDom,R=I.getElementsByTagName("defs");if(R.length===0)if(O){var R=I.insertBefore(p("defs"),I.firstChild);return R.contains||(R.contains=function(B){var P=R.children;if(!P)return!1;for(var X=P.length-1;X>=0;--X)if(P[X]===B)return!0;return!1}),R}else return null;else return R[0]},resize:function(O,I){var R=this._viewport;R.style.display="none";var M=this._opts;if(O!=null&&(M.width=O),I!=null&&(M.height=I),O=this._getSize(0),I=this._getSize(1),R.style.display="",this._width!==O||this._height!==I){this._width=O,this._height=I;var B=R.style;B.width=O+"px",B.height=I+"px";var P=this._svgDom;P.setAttribute("width",O),P.setAttribute("height",I)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",O),this._backgroundNode.setAttribute("height",I))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(O){var I=this._opts,R=["width","height"][O],M=["clientWidth","clientHeight"][O],B=["paddingLeft","paddingTop"][O],P=["paddingRight","paddingBottom"][O];if(I[R]!=null&&I[R]!=="auto")return parseFloat(I[R]);var X=this.root,F=document.defaultView.getComputedStyle(X);return(X[M]||a(F[R])||a(X.style[R]))-(a(F[B])||0)-(a(F[P])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var O=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
\r<`));return"data:image/svg+xml;charset=UTF-8,"+O}};function _(w){return function(){v('In SVG mode painter not support method "'+w+'"')}}x.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(w){C.prototype[w]=_(w)});var T=C;k.exports=T},"3Fdi":function(k,D){var n=Function.prototype,y=n.toString;function p(x){if(x!=null){try{return y.call(x)}catch(v){}try{return x+""}catch(v){}}return""}k.exports=p},"3LNs":function(k,D,n){var y=n("bYtY"),p=n("Yl7c"),x=n("IwbS"),v=n("zTMp"),m=n("YH21"),f=n("iLNv"),d=n("4NO4"),u=d.makeInner,o=u(),i=y.clone,t=y.bind;function s(){}s.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(g,A,b,S){var E=A.get("value"),C=A.get("status");if(this._axisModel=g,this._axisPointerModel=A,this._api=b,!S&&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 w={};this.makeElOption(w,E,g,A,b);var O=w.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(_,w,g,A),this.createLabelEl(_,w,g,A),b.getZr().add(_);else{var R=y.curry(e,A,I);this.updatePointerEl(_,w,R,A),this.updateLabelEl(_,w,R,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"),S=g.axis,E=S.type==="category",C=A.get("snap");if(!C&&!E)return!1;if(b==="auto"||b==null){var _=this.animationThreshold;if(E&&S.getBandWidth()>_)return!0;if(C){var T=v.getAxisInfo(g).seriesDataCount,w=S.getExtent();return Math.abs(w[0]-w[1])/T>_}return!1}return b===!0},makeElOption:function(g,A,b,S,E){},createPointerEl:function(g,A,b,S){var E=A.pointer;if(E){var C=o(g).pointerEl=new x[E.type](i(A.pointer));g.add(C)}},createLabelEl:function(g,A,b,S){if(A.label){var E=o(g).labelEl=new x.Rect(i(A.label));g.add(E),r(E,S)}},updatePointerEl:function(g,A,b){var S=o(g).pointerEl;S&&A.pointer&&(S.setStyle(A.pointer.style),b(S,{shape:A.pointer.shape}))},updateLabelEl:function(g,A,b,S){var E=o(g).labelEl;E&&(E.setStyle(A.label.style),b(E,{shape:A.label.shape,position:A.label.position}),r(E,S))},_renderHandle:function(g){if(this._dragging||!this.updateHandleTransform)return;var A=this._axisPointerModel,b=this._api.getZr(),S=this._handle,E=A.getModel("handle"),C=A.get("status");if(!E.get("show")||!C||C==="hide"){S&&b.remove(S),this._handle=null;return}var _;this._handle||(_=!0,S=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(S)),c(S,A,!1);var T=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];S.setStyle(E.getItemStyle(null,T));var w=E.get("size");y.isArray(w)||(w=[w,w]),S.attr("scale",[w[0]/2,w[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,a(this.getHandleTransform(g,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(g,A){var b=this._handle;if(!b)return;this._dragging=!0;var S=this.updateHandleTransform(a(b),[g,A],this._axisModel,this._axisPointerModel);this._payloadInfo=S,b.stopAnimation(),b.attr(a(S)),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,S=this._handle;A&&b&&(this._lastGraphicKey=null,b&&A.remove(b),S&&A.remove(S),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]}}},s.prototype.constructor=s;function e(g,A,b,S){l(o(b).lastProp,S)||(o(b).lastProp=S,A?x.updateProps(b,S,g):(b.stopAnimation(),b.attr(S)))}function l(g,A){if(y.isObject(g)&&y.isObject(A)){var b=!0;return y.each(A,function(S,E){b=b&&l(g[E],S)}),!!b}else return g===A}function r(g,A){g[A.get("label.show")?"show":"hide"]()}function a(g){return{position:g.position.slice(),rotation:g.rotation||0}}function c(g,A,b){var S=A.get("z"),E=A.get("zlevel");g&&g.traverse(function(C){C.type!=="group"&&(S!=null&&(C.z=S),E!=null&&(C.zlevel=E),C.silent=b)})}p.enableClassExtend(s);var h=s;k.exports=h},"3OrL":function(k,D,n){var y=n("bYtY"),p=n("6Ic6"),x=n("IwbS"),v=n("y+Vt"),m=["itemStyle"],f=["emphasis","itemStyle"],d=p.extend({type:"boxplot",render:function(e,l,r){var a=e.getData(),c=this.group,h=this._data;this._data||c.removeAll();var g=e.get("layout")==="horizontal"?1:0;a.diff(h).add(function(A){if(a.hasValue(A)){var b=a.getItemLayout(A),S=o(b,a,A,g,!0);a.setItemGraphicEl(A,S),c.add(S)}}).update(function(A,b){var S=h.getItemGraphicEl(b);if(!a.hasValue(A)){c.remove(S);return}var E=a.getItemLayout(A);S?i(E,S,a,A):S=o(E,a,A,g),c.add(S),a.setItemGraphicEl(A,S)}).remove(function(A){var b=h.getItemGraphicEl(A);b&&c.remove(b)}).execute(),this._data=a},remove:function(e){var l=this.group,r=this._data;this._data=null,r&&r.eachItemGraphicEl(function(a){a&&l.remove(a)})},dispose:y.noop}),u=v.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,l){var r=l.points,a=0;for(e.moveTo(r[a][0],r[a][1]),a++;a<4;a++)e.lineTo(r[a][0],r[a][1]);for(e.closePath();a<r.length;a++)e.moveTo(r[a][0],r[a][1]),a++,e.lineTo(r[a][0],r[a][1])}});function o(e,l,r,a,c){var h=e.ends,g=new u({shape:{points:c?t(h,a,e):h}});return i(e,g,l,r,c),g}function i(e,l,r,a,c){var h=r.hostModel,g=x[c?"initProps":"updateProps"];g(l,{shape:{points:e.ends}},h,a);var A=r.getItemModel(a),b=A.getModel(m),S=r.getItemVisual(a,"color"),E=b.getItemStyle(["borderColor"]);E.stroke=S,E.strokeNoScale=!0,l.useStyle(E),l.z2=100;var C=A.getModel(f).getItemStyle();x.setHoverStyle(l,C)}function t(e,l,r){return y.map(e,function(a){return a=a.slice(),a[l]=r.initBaseline,a})}var s=d;k.exports=s},"3S7+":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("J4zp"),v=n.n(x),m=n("pVnL"),f=n.n(m),d=n("q1tI"),u=n.n(d),o=n("U8pU"),i=n("VTBJ"),t=n("Ff2n"),s=n("1OyB"),e=n("vuIU"),l=n("JX7q"),r=n("Ji7U"),a=n("LK+K"),c=n("i8i4"),h=n.n(c),g=n("l4aY"),A=n("m+aA"),b=n("c+Xe"),S=n("zT1h"),E=n("QC+M"),C=n("TSYQ"),_=n.n(C);function T(Mn,Un,$t){return $t?Mn[0]===Un[0]:Mn[0]===Un[0]&&Mn[1]===Un[1]}function w(Mn,Un,$t){var Ct=Mn[Un]||{};return Object(i.a)(Object(i.a)({},Ct),$t)}function O(Mn,Un,$t,Ct){for(var Re=$t.points,De=Object.keys(Mn),Pe=0;Pe<De.length;Pe+=1){var et=De[Pe];if(T(Mn[et].points,Re,Ct))return"".concat(Un,"-placement-").concat(et)}return""}var I=n("xEkU"),R=n.n(I),M=n("9mu1"),B=n("rePB"),P=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function X(Mn,Un){var $t={};return $t[Mn.toLowerCase()]=Un.toLowerCase(),$t["Webkit".concat(Mn)]="webkit".concat(Un),$t["Moz".concat(Mn)]="moz".concat(Un),$t["ms".concat(Mn)]="MS".concat(Un),$t["O".concat(Mn)]="o".concat(Un.toLowerCase()),$t}function F(Mn,Un){var $t={animationend:X("Animation","AnimationEnd"),transitionend:X("Transition","TransitionEnd")};return Mn&&("AnimationEvent"in Un||delete $t.animationend.animation,"TransitionEvent"in Un||delete $t.transitionend.transition),$t}var j=F(P,typeof window!="undefined"?window:{}),K={};if(P){var z=document.createElement("div");K=z.style}var V={};function Q(Mn){if(V[Mn])return V[Mn];var Un=j[Mn];if(Un)for(var $t=Object.keys(Un),Ct=$t.length,Re=0;Re<Ct;Re+=1){var De=$t[Re];if(Object.prototype.hasOwnProperty.call(Un,De)&&De in K)return V[Mn]=Un[De],V[Mn]}return""}var G=Q("animationend"),te=Q("transitionend"),q=!!(G&&te);function le(Mn,Un){if(!Mn)return null;if(Object(o.a)(Mn)==="object"){var $t=Un.replace(/-\w/g,function(Ct){return Ct[1].toUpperCase()});return Mn[$t]}return"".concat(Mn,"-").concat(Un)}var re="none",we="appear",Ie="enter",Me="leave";function Je(Mn){var Un=Mn,$t=!!d.forwardRef;Object(o.a)(Mn)==="object"&&(Un=Mn.transitionSupport,$t="forwardRef"in Mn?Mn.forwardRef:$t);function Ct(De){return!!(De.motionName&&Un)}var Re=function(De){Object(r.a)(et,De);var Pe=Object(a.a)(et);function et(){var yt;return Object(s.a)(this,et),yt=Pe.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 St=yt.state,Vt=St.status,Rr=St.newStatus,Vr=yt.props,hn=Vr.onAppearStart,Ft=Vr.onEnterStart,vt=Vr.onLeaveStart,bt=Vr.onAppearActive,fr=Vr.onEnterActive,Qt=Vr.onLeaveActive,Mt=Vr.motionAppear,qt=Vr.motionEnter,kt=Vr.motionLeave;if(!Ct(yt.props))return;var er=yt.getElement();yt.$cacheEle!==er&&(yt.removeEventListener(yt.$cacheEle),yt.addEventListener(er),yt.$cacheEle=er),Rr&&Vt===we&&Mt?yt.updateStatus(hn,null,null,function(){yt.updateActiveStatus(bt,we)}):Rr&&Vt===Ie&&qt?yt.updateStatus(Ft,null,null,function(){yt.updateActiveStatus(fr,Ie)}):Rr&&Vt===Me&&kt&&yt.updateStatus(vt,null,null,function(){yt.updateActiveStatus(Qt,Me)})},yt.onMotionEnd=function(St){if(St&&!St.deadline&&St.target!==yt.getElement())return;var Vt=yt.state,Rr=Vt.status,Vr=Vt.statusActive,hn=yt.props,Ft=hn.onAppearEnd,vt=hn.onEnterEnd,bt=hn.onLeaveEnd;Rr===we&&Vr?yt.updateStatus(Ft,{status:re},St):Rr===Ie&&Vr?yt.updateStatus(vt,{status:re},St):Rr===Me&&Vr&&yt.updateStatus(bt,{status:re},St)},yt.setNodeRef=function(St){var Vt=yt.props.internalRef;yt.node=St,Object(b.b)(Vt,St)},yt.getElement=function(){try{return Object(A.a)(yt.node||Object(l.a)(yt))}catch(St){return yt.$cacheEle}},yt.addEventListener=function(St){if(!St)return;St.addEventListener(te,yt.onMotionEnd),St.addEventListener(G,yt.onMotionEnd)},yt.removeEventListener=function(St){if(!St)return;St.removeEventListener(te,yt.onMotionEnd),St.removeEventListener(G,yt.onMotionEnd)},yt.updateStatus=function(St,Vt,Rr,Vr){var hn=St?St(yt.getElement(),Rr):null;if(hn===!1||yt.destroyed)return;var Ft;Vr&&(Ft=function(){yt.nextFrame(Vr)}),yt.setState(Object(i.a)({statusStyle:Object(o.a)(hn)==="object"?hn:null,newStatus:!1},Vt),Ft)},yt.updateActiveStatus=function(St,Vt){yt.nextFrame(function(){var Rr=yt.state.status;if(Rr!==Vt)return;var Vr=yt.props.motionDeadline;yt.updateStatus(St,{statusActive:!0}),Vr>0&&(yt.deadlineId=setTimeout(function(){yt.onMotionEnd({deadline:!0})},Vr))})},yt.nextFrame=function(St){yt.cancelNextFrame(),yt.raf=R()(St)},yt.cancelNextFrame=function(){yt.raf&&(R.a.cancel(yt.raf),yt.raf=null)},yt}return Object(e.a)(et,[{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 St,Vt=this.state,Rr=Vt.status,Vr=Vt.statusActive,hn=Vt.statusStyle,Ft=this.props,vt=Ft.children,bt=Ft.motionName,fr=Ft.visible,Qt=Ft.removeOnLeave,Mt=Ft.leavedClassName,qt=Ft.eventProps;return vt?Rr===re||!Ct(this.props)?fr?vt(Object(i.a)({},qt),this.setNodeRef):Qt?null:vt(Object(i.a)(Object(i.a)({},qt),{},{className:Mt}),this.setNodeRef):vt(Object(i.a)(Object(i.a)({},qt),{},{className:_()(le(bt,Rr),(St={},Object(B.a)(St,le(bt,"".concat(Rr,"-active")),Vr),Object(B.a)(St,bt,typeof bt=="string"),St)),style:hn}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(St,Vt){var Rr=Vt.prevProps,Vr=Vt.status;if(!Ct(St))return{};var hn=St.visible,Ft=St.motionAppear,vt=St.motionEnter,bt=St.motionLeave,fr=St.motionLeaveImmediately,Qt={prevProps:St};return(Vr===we&&!Ft||Vr===Ie&&!vt||Vr===Me&&!bt)&&(Qt.status=re,Qt.statusActive=!1,Qt.newStatus=!1),!Rr&&hn&&Ft&&(Qt.status=we,Qt.statusActive=!1,Qt.newStatus=!0),Rr&&!Rr.visible&&hn&&vt&&(Qt.status=Ie,Qt.statusActive=!1,Qt.newStatus=!0),(Rr&&Rr.visible&&!hn&&bt||!Rr&&fr&&!hn&&bt)&&(Qt.status=Me,Qt.statusActive=!1,Qt.newStatus=!0),Qt}}]),et}(d.Component);return Re.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},$t?d.forwardRef(function(De,Pe){return d.createElement(Re,Object.assign({internalRef:Pe},De))}):Re}var Ve=Je(q),ut="add",Fe="keep",ae="remove",at="removed";function he(Mn){var Un;return Mn&&Object(o.a)(Mn)==="object"&&"key"in Mn?Un=Mn:Un={key:Mn},Object(i.a)(Object(i.a)({},Un),{},{key:String(Un.key)})}function J(){var Mn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Mn.map(he)}function Y(){var Mn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],$t=[],Ct=0,Re=Un.length,De=J(Mn),Pe=J(Un);De.forEach(function(St){for(var Vt=!1,Rr=Ct;Rr<Re;Rr+=1){var Vr=Pe[Rr];if(Vr.key===St.key){Ct<Rr&&($t=$t.concat(Pe.slice(Ct,Rr).map(function(hn){return Object(i.a)(Object(i.a)({},hn),{},{status:ut})})),Ct=Rr),$t.push(Object(i.a)(Object(i.a)({},Vr),{},{status:Fe})),Ct+=1,Vt=!0;break}}Vt||$t.push(Object(i.a)(Object(i.a)({},St),{},{status:ae}))}),Ct<Re&&($t=$t.concat(Pe.slice(Ct).map(function(St){return Object(i.a)(Object(i.a)({},St),{},{status:ut})})));var et={};$t.forEach(function(St){var Vt=St.key;et[Vt]=(et[Vt]||0)+1});var yt=Object.keys(et).filter(function(St){return et[St]>1});return yt.forEach(function(St){$t=$t.filter(function(Vt){var Rr=Vt.key,Vr=Vt.status;return Rr!==St||Vr!==ae}),$t.forEach(function(Vt){Vt.key===St&&(Vt.status=Fe)})}),$t}var $=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function de(Mn){var Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ve,$t=function(Ct){Object(r.a)(De,Ct);var Re=Object(a.a)(De);function De(){var Pe;return Object(s.a)(this,De),Pe=Re.apply(this,arguments),Pe.state={keyEntities:[]},Pe.removeKey=function(et){Pe.setState(function(yt){var St=yt.keyEntities;return{keyEntities:St.map(function(Vt){return Vt.key!==et?Vt:Object(i.a)(Object(i.a)({},Vt),{},{status:at})})}})},Pe}return Object(e.a)(De,[{key:"render",value:function(){var et=this,yt=this.state.keyEntities,St=this.props,Vt=St.component,Rr=St.children,Vr=Object(t.a)(St,["component","children"]),hn=Vt||d.Fragment,Ft={};return $.forEach(function(vt){Ft[vt]=Vr[vt],delete Vr[vt]}),delete Vr.keys,d.createElement(hn,Object.assign({},Vr),yt.map(function(vt){var bt=vt.status,fr=Object(t.a)(vt,["status"]),Qt=bt===ut||bt===Fe;return d.createElement(Un,Object.assign({},Ft,{key:fr.key,visible:Qt,eventProps:fr,onLeaveEnd:function(){Ft.onLeaveEnd&&Ft.onLeaveEnd.apply(Ft,arguments),et.removeKey(fr.key)}}),Rr)}))}}],[{key:"getDerivedStateFromProps",value:function(et,yt){var St=et.keys,Vt=yt.keyEntities,Rr=J(St);if(!Mn)return{keyEntities:Rr.map(function(Ft){return Object(i.a)(Object(i.a)({},Ft),{},{status:Fe})})};var Vr=Y(Vt,Rr),hn=Vt.length;return{keyEntities:Vr.filter(function(Ft){for(var vt=null,bt=0;bt<hn;bt+=1){var fr=Vt[bt];if(fr.key===Ft.key){vt=fr;break}}return!(vt&&vt.status===at&&Ft.status===ae)})}}}]),De}(d.Component);return $t.defaultProps={component:"div"},$t}var be=de(q),Ce=Ve,Be=function(Un,$t){var Ct=Un.prefixCls,Re=Un.className,De=Un.style,Pe=Un.children,et=Un.onMouseEnter,yt=Un.onMouseLeave,St=Un.onMouseDown,Vt=Un.onTouchStart,Rr=Pe;return d.Children.count(Pe)>1&&(Rr=d.createElement("div",{className:"".concat(Ct,"-content")},Pe)),d.createElement("div",{ref:$t,className:Re,onMouseEnter:et,onMouseLeave:yt,onMouseDown:St,onTouchStart:Vt,style:De},Rr)},fe=d.forwardRef(Be);fe.displayName="PopupInner";var Se=fe;function ke(Mn){var Un=Mn.prefixCls,$t=Mn.motion,Ct=Mn.animation,Re=Mn.transitionName;return $t||(Ct?{motionName:"".concat(Un,"-").concat(Ct)}:Re?{motionName:Re}:null)}function rt(Mn){return Mn&&Mn.motionName}var xt=function(Mn){Object(r.a)($t,Mn);var Un=Object(a.a)($t);function $t(){var Ct;return Object(s.a)(this,$t),Ct=Un.apply(this,arguments),Ct.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Ct.popupRef=u.a.createRef(),Ct.alignRef=u.a.createRef(),Ct.nextFrameState=null,Ct.nextFrameId=null,Ct.onAlign=function(Re,De){var Pe=Ct.state.status,et=Ct.props,yt=et.getClassNameFromAlign,St=et.onAlign,Vt=yt(De);Pe==="align"?Ct.setState({alignClassName:Vt,status:"aligned"},function(){Ct.alignRef.current.forceAlign()}):Pe==="aligned"?(Ct.setState({alignClassName:Vt,status:"afterAlign"}),St(Re,De)):Ct.setState({alignClassName:Vt})},Ct.onMotionEnd=function(){var Re=Ct.props.visible;Ct.setState({status:Re?"AfterMotion":"stable",inMotion:!1})},Ct.setStateOnNextFrame=function(Re){Ct.cancelFrameState(),Ct.nextFrameState=Object(i.a)(Object(i.a)({},Ct.nextFrameState),Re),Ct.nextFrameId=R()(function(){var De=Object(i.a)({},Ct.nextFrameState);Ct.nextFrameState=null,Ct.setState(De)})},Ct.getMotion=function(){return Object(i.a)({},ke(Ct.props))},Ct.getAlignTarget=function(){var Re=Ct.props,De=Re.point,Pe=Re.getRootDomNode;return De||Pe},Ct.cancelFrameState=function(){R.a.cancel(Ct.nextFrameId)},Ct.renderPopupElement=function(){var Re=Ct.state,De=Re.status,Pe=Re.targetHeight,et=Re.targetWidth,yt=Re.alignClassName,St=Ct.props,Vt=St.prefixCls,Rr=St.className,Vr=St.style,hn=St.stretch,Ft=St.visible,vt=St.align,bt=St.destroyPopupOnHide,fr=St.onMouseEnter,Qt=St.onMouseLeave,Mt=St.onMouseDown,qt=St.onTouchStart,kt=St.children,er=_()(Vt,Rr,yt),Kr="".concat(Vt,"-hidden"),Ir={};hn&&(hn.indexOf("height")!==-1?Ir.height=Pe:hn.indexOf("minHeight")!==-1&&(Ir.minHeight=Pe),hn.indexOf("width")!==-1?Ir.width=et:hn.indexOf("minWidth")!==-1&&(Ir.minWidth=et));var Dr=Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)({},Ir),Ct.getZIndexStyle()),Vr),{},{opacity:De==="stable"||!Ft?void 0:0,pointerEvents:De==="stable"||!Ft?void 0:"none"}),dn=Ct.getMotion(),yn=Ft;Ft&&De!=="beforeMotion"&&De!=="motion"&&De!=="stable"&&(dn.motionAppear=!1,dn.motionEnter=!1,dn.motionLeave=!1),(De==="afterAlign"||De==="beforeMotion")&&(yn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(fi){var Ei=dn==null?void 0:dn[fi];dn[fi]=function(){for(var Di=arguments.length,Hi=new Array(Di),nt=0;nt<Di;nt++)Hi[nt]=arguments[nt];Ei==null||Ei.apply(void 0,Hi),Ct.setState({inMotion:!0})}});var ti=!Ft||De!=="align"&&De!=="aligned"&&De!=="stable",ei=!0;return De==="stable"&&(ei=Ft),bt&&!ei?null:u.a.createElement(Ce,Object.assign({visible:yn},dn,{removeOnLeave:!1,onEnterEnd:Ct.onMotionEnd,onLeaveEnd:Ct.onMotionEnd,leavedClassName:Kr}),function(fi,Ei){var Di=fi.style,Hi=fi.className;return u.a.createElement(M.a,{target:Ct.getAlignTarget(),key:"popup",ref:Ct.alignRef,monitorWindowResize:!0,disabled:ti,align:vt,onAlign:Ct.onAlign},u.a.createElement(Se,{prefixCls:Vt,className:_()(er,Hi),ref:Object(b.a)(Ei,Ct.popupRef),onMouseEnter:fr,onMouseLeave:Qt,onMouseDown:Mt,onTouchStart:qt,style:Object(i.a)(Object(i.a)({},Dr),Di)},kt))})},Ct.renderMaskElement=function(){var Re=Ct.props,De=Re.mask,Pe=Re.maskMotion,et=Re.maskTransitionName,yt=Re.maskAnimation,St=Re.prefixCls,Vt=Re.visible;if(!De)return null;var Rr={};return Pe&&Pe.motionName&&(Rr=Object(i.a)({motionAppear:!0},ke({motion:Pe,prefixCls:St,transitionName:et,animation:yt}))),u.a.createElement(Ce,Object.assign({},Rr,{visible:Vt,removeOnLeave:!0}),function(Vr){var hn=Vr.className;return u.a.createElement("div",{style:Ct.getZIndexStyle(),key:"mask",className:_()("".concat(St,"-mask"),hn)})})},Ct}return Object(e.a)($t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Re=this.state.status,De=this.props,Pe=De.getRootDomNode,et=De.visible,yt=De.stretch;if(this.cancelFrameState(),et&&Re!=="stable")switch(Re){case null:{this.setStateOnNextFrame({status:yt?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:rt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var St=["measure","align",null,"beforeMotion","motion"],Vt=St.indexOf(Re),Rr=St[Vt+1];Vt!==-1&&Rr&&this.setStateOnNextFrame({status:Rr})}}if(Re==="measure"){var Vr=Pe();Vr&&this.setStateOnNextFrame({targetHeight:Vr.offsetHeight,targetWidth:Vr.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Re=this.props.zIndex;return{zIndex:Re}}},{key:"render",value:function(){return u.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Re,De){var Pe=Re.visible,et=Object(t.a)(Re,["visible"]),yt=De.prevVisible,St=De.status,Vt=De.inMotion,Rr={prevVisible:Pe,status:St},Vr=ke(et);return yt===null&&Pe===!1?(Rr.status="stable",Rr.inMotion=!1):Pe!==yt&&(Rr.inMotion=!1,Pe||rt(Vr)&&Vt?Rr.status=null:Rr.status="stable",Pe&&(Rr.alignClassName=null)),Rr}}]),$t}(d.Component),ht=xt,He=d.createContext(null),ir=He;function ct(){}function Xt(){return""}function hr(){return window.document}var Jt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Pt(Mn){var Un=function($t){Object(r.a)(Re,$t);var Ct=Object(a.a)(Re);function Re(De){var Pe;Object(s.a)(this,Re),Pe=Ct.call(this,De),Pe.popupRef=u.a.createRef(),Pe.triggerRef=u.a.createRef(),Pe.onMouseEnter=function(yt){var St=Pe.props.mouseEnterDelay;Pe.fireEvents("onMouseEnter",yt),Pe.delaySetPopupVisible(!0,St,St?null:yt)},Pe.onMouseMove=function(yt){Pe.fireEvents("onMouseMove",yt),Pe.setPoint(yt)},Pe.onMouseLeave=function(yt){Pe.fireEvents("onMouseLeave",yt),Pe.delaySetPopupVisible(!1,Pe.props.mouseLeaveDelay)},Pe.onPopupMouseEnter=function(){Pe.clearDelayTimer()},Pe.onPopupMouseLeave=function(yt){if(yt.relatedTarget&&!yt.relatedTarget.setTimeout&&Pe.popupRef.current&&Pe.popupRef.current.popupRef.current&&Object(g.a)(Pe.popupRef.current.popupRef.current,yt.relatedTarget))return;Pe.delaySetPopupVisible(!1,Pe.props.mouseLeaveDelay)},Pe.onFocus=function(yt){Pe.fireEvents("onFocus",yt),Pe.clearDelayTimer(),Pe.isFocusToShow()&&(Pe.focusTime=Date.now(),Pe.delaySetPopupVisible(!0,Pe.props.focusDelay))},Pe.onMouseDown=function(yt){Pe.fireEvents("onMouseDown",yt),Pe.preClickTime=Date.now()},Pe.onTouchStart=function(yt){Pe.fireEvents("onTouchStart",yt),Pe.preTouchTime=Date.now()},Pe.onBlur=function(yt){Pe.fireEvents("onBlur",yt),Pe.clearDelayTimer(),Pe.isBlurToHide()&&Pe.delaySetPopupVisible(!1,Pe.props.blurDelay)},Pe.onContextMenu=function(yt){yt.preventDefault(),Pe.fireEvents("onContextMenu",yt),Pe.setPopupVisible(!0,yt)},Pe.onContextMenuClose=function(){Pe.isContextMenuToShow()&&Pe.close()},Pe.onClick=function(yt){if(Pe.fireEvents("onClick",yt),Pe.focusTime){var St;if(Pe.preClickTime&&Pe.preTouchTime?St=Math.min(Pe.preClickTime,Pe.preTouchTime):Pe.preClickTime?St=Pe.preClickTime:Pe.preTouchTime&&(St=Pe.preTouchTime),Math.abs(St-Pe.focusTime)<20)return;Pe.focusTime=0}Pe.preClickTime=0,Pe.preTouchTime=0,Pe.isClickToShow()&&(Pe.isClickToHide()||Pe.isBlurToHide())&&yt&&yt.preventDefault&&yt.preventDefault();var Vt=!Pe.state.popupVisible;(Pe.isClickToHide()&&!Vt||Vt&&Pe.isClickToShow())&&Pe.setPopupVisible(!Pe.state.popupVisible,yt)},Pe.onPopupMouseDown=function(){if(Pe.hasPopupMouseDown=!0,clearTimeout(Pe.mouseDownTimeout),Pe.mouseDownTimeout=window.setTimeout(function(){Pe.hasPopupMouseDown=!1},0),Pe.context){var yt;(yt=Pe.context).onPopupMouseDown.apply(yt,arguments)}},Pe.onDocumentClick=function(yt){if(Pe.props.mask&&!Pe.props.maskClosable)return;var St=yt.target,Vt=Pe.getRootDomNode(),Rr=Pe.getPopupDomNode();!Object(g.a)(Vt,St)&&!Object(g.a)(Rr,St)&&!Pe.hasPopupMouseDown&&Pe.close()},Pe.getRootDomNode=function(){var yt=Pe.props.getTriggerDOMNode;if(yt)return yt(Pe.triggerRef.current);try{var St=Object(A.a)(Pe.triggerRef.current);if(St)return St}catch(Vt){}return h.a.findDOMNode(Object(l.a)(Pe))},Pe.getPopupClassNameFromAlign=function(yt){var St=[],Vt=Pe.props,Rr=Vt.popupPlacement,Vr=Vt.builtinPlacements,hn=Vt.prefixCls,Ft=Vt.alignPoint,vt=Vt.getPopupClassNameFromAlign;return Rr&&Vr&&St.push(O(Vr,hn,yt,Ft)),vt&&St.push(vt(yt)),St.join(" ")},Pe.getComponent=function(){var yt=Pe.props,St=yt.prefixCls,Vt=yt.destroyPopupOnHide,Rr=yt.popupClassName,Vr=yt.onPopupAlign,hn=yt.popupMotion,Ft=yt.popupAnimation,vt=yt.popupTransitionName,bt=yt.popupStyle,fr=yt.mask,Qt=yt.maskAnimation,Mt=yt.maskTransitionName,qt=yt.maskMotion,kt=yt.zIndex,er=yt.popup,Kr=yt.stretch,Ir=yt.alignPoint,Dr=Pe.state,dn=Dr.popupVisible,yn=Dr.point,ti=Pe.getPopupAlign(),ei={};return Pe.isMouseEnterToShow()&&(ei.onMouseEnter=Pe.onPopupMouseEnter),Pe.isMouseLeaveToHide()&&(ei.onMouseLeave=Pe.onPopupMouseLeave),ei.onMouseDown=Pe.onPopupMouseDown,ei.onTouchStart=Pe.onPopupMouseDown,u.a.createElement(ht,Object.assign({prefixCls:St,destroyPopupOnHide:Vt,visible:dn,point:Ir&&yn,className:Rr,align:ti,onAlign:Vr,animation:Ft,getClassNameFromAlign:Pe.getPopupClassNameFromAlign},ei,{stretch:Kr,getRootDomNode:Pe.getRootDomNode,style:bt,mask:fr,zIndex:kt,transitionName:vt,maskAnimation:Qt,maskTransitionName:Mt,maskMotion:qt,ref:Pe.popupRef,motion:hn}),typeof er=="function"?er():er)},Pe.getContainer=function(){var yt=Object(l.a)(Pe),St=yt.props,Vt=document.createElement("div");Vt.style.position="absolute",Vt.style.top="0",Vt.style.left="0",Vt.style.width="100%";var Rr=St.getPopupContainer?St.getPopupContainer(Pe.getRootDomNode()):St.getDocument().body;return Rr.appendChild(Vt),Vt},Pe.setPoint=function(yt){var St=Pe.props.alignPoint;if(!St||!yt)return;Pe.setState({point:{pageX:yt.pageX,pageY:yt.pageY}})},Pe.handlePortalUpdate=function(){Pe.state.prevPopupVisible!==Pe.state.popupVisible&&Pe.props.afterPopupVisibleChange(Pe.state.popupVisible)};var et;return"popupVisible"in De?et=!!De.popupVisible:et=!!De.defaultPopupVisible,Pe.state={prevPopupVisible:et,popupVisible:et},Jt.forEach(function(yt){Pe["fire".concat(yt)]=function(St){Pe.fireEvents(yt,St)}}),Pe}return Object(e.a)(Re,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pe=this.props,et=this.state;if(et.popupVisible){var yt;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(yt=Pe.getDocument(),this.clickOutsideHandler=Object(S.a)(yt,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(yt=yt||Pe.getDocument(),this.touchOutsideHandler=Object(S.a)(yt,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(yt=yt||Pe.getDocument(),this.contextMenuOutsideHandler1=Object(S.a)(yt,"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)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var Pe=this.props,et=Pe.popupPlacement,yt=Pe.popupAlign,St=Pe.builtinPlacements;return et&&St?w(St,et,yt):yt}},{key:"setPopupVisible",value:function(Pe,et){var yt=this.props.alignPoint,St=this.state.popupVisible;this.clearDelayTimer(),St!==Pe&&("popupVisible"in this.props||this.setState({popupVisible:Pe,prevPopupVisible:St}),this.props.onPopupVisibleChange(Pe)),yt&&et&&this.setPoint(et)}},{key:"delaySetPopupVisible",value:function(Pe,et,yt){var St=this,Vt=et*1e3;if(this.clearDelayTimer(),Vt){var Rr=yt?{pageX:yt.pageX,pageY:yt.pageY}:null;this.delayTimer=window.setTimeout(function(){St.setPopupVisible(Pe,Rr),St.clearDelayTimer()},Vt)}else this.setPopupVisible(Pe,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(Pe){var et=this.props.children.props,yt=this.props;return et[Pe]&&yt[Pe]?this["fire".concat(Pe)]:et[Pe]||yt[Pe]}},{key:"isClickToShow",value:function(){var Pe=this.props,et=Pe.action,yt=Pe.showAction;return et.indexOf("click")!==-1||yt.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Pe=this.props,et=Pe.action,yt=Pe.showAction;return et.indexOf("contextMenu")!==-1||yt.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Pe=this.props,et=Pe.action,yt=Pe.hideAction;return et.indexOf("click")!==-1||yt.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Pe=this.props,et=Pe.action,yt=Pe.showAction;return et.indexOf("hover")!==-1||yt.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Pe=this.props,et=Pe.action,yt=Pe.hideAction;return et.indexOf("hover")!==-1||yt.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Pe=this.props,et=Pe.action,yt=Pe.showAction;return et.indexOf("focus")!==-1||yt.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Pe=this.props,et=Pe.action,yt=Pe.hideAction;return et.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(Pe,et){var yt=this.props.children.props[Pe];yt&&yt(et);var St=this.props[Pe];St&&St(et)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Pe=this.state.popupVisible,et=this.props,yt=et.children,St=et.forceRender,Vt=et.alignPoint,Rr=et.className,Vr=et.autoDestroy,hn=u.a.Children.only(yt),Ft={key:"trigger"};this.isContextMenuToShow()?Ft.onContextMenu=this.onContextMenu:Ft.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Ft.onClick=this.onClick,Ft.onMouseDown=this.onMouseDown,Ft.onTouchStart=this.onTouchStart):(Ft.onClick=this.createTwoChains("onClick"),Ft.onMouseDown=this.createTwoChains("onMouseDown"),Ft.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Ft.onMouseEnter=this.onMouseEnter,Vt&&(Ft.onMouseMove=this.onMouseMove)):Ft.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Ft.onMouseLeave=this.onMouseLeave:Ft.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Ft.onFocus=this.onFocus,Ft.onBlur=this.onBlur):(Ft.onFocus=this.createTwoChains("onFocus"),Ft.onBlur=this.createTwoChains("onBlur"));var vt=_()(hn&&hn.props&&hn.props.className,Rr);vt&&(Ft.className=vt);var bt=Object(i.a)({},Ft);Object(b.c)(hn)&&(bt.ref=Object(b.a)(this.triggerRef,hn.ref));var fr=u.a.cloneElement(hn,bt),Qt;return(Pe||this.popupRef.current||St)&&(Qt=u.a.createElement(Mn,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Pe&&Vr&&(Qt=null),u.a.createElement(ir.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},fr,Qt)}}],[{key:"getDerivedStateFromProps",value:function(Pe,et){var yt=Pe.popupVisible,St={};return yt!==void 0&&et.popupVisible!==yt&&(St.popupVisible=yt,St.prevPopupVisible=et.popupVisible),St}}]),Re}(u.a.Component);return Un.contextType=ir,Un.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Xt,getDocument:hr,onPopupVisibleChange:ct,afterPopupVisibleChange:ct,onPopupAlign:ct,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Un}var Wt=Pt(E.a),Ge={adjustX:1,adjustY:1},pe=[0,0],se={left:{points:["cr","cl"],overflow:Ge,offset:[-4,0],targetOffset:pe},right:{points:["cl","cr"],overflow:Ge,offset:[4,0],targetOffset:pe},top:{points:["bc","tc"],overflow:Ge,offset:[0,-4],targetOffset:pe},bottom:{points:["tc","bc"],overflow:Ge,offset:[0,4],targetOffset:pe},topLeft:{points:["bl","tl"],overflow:Ge,offset:[0,-4],targetOffset:pe},leftTop:{points:["tr","tl"],overflow:Ge,offset:[-4,0],targetOffset:pe},topRight:{points:["br","tr"],overflow:Ge,offset:[0,-4],targetOffset:pe},rightTop:{points:["tl","tr"],overflow:Ge,offset:[4,0],targetOffset:pe},bottomRight:{points:["tr","br"],overflow:Ge,offset:[0,4],targetOffset:pe},rightBottom:{points:["bl","br"],overflow:Ge,offset:[4,0],targetOffset:pe},bottomLeft:{points:["tl","bl"],overflow:Ge,offset:[0,4],targetOffset:pe},leftBottom:{points:["br","bl"],overflow:Ge,offset:[-4,0],targetOffset:pe}},lt=se,qe=function(Un){var $t=Un.overlay,Ct=Un.prefixCls,Re=Un.id,De=Un.overlayInnerStyle;return d.createElement("div",{className:"".concat(Ct,"-inner"),id:Re,role:"tooltip",style:De},typeof $t=="function"?$t():$t)},me=qe,Ht=function(Un,$t){var Ct=Un.overlayClassName,Re=Un.trigger,De=Re===void 0?["hover"]:Re,Pe=Un.mouseEnterDelay,et=Pe===void 0?0:Pe,yt=Un.mouseLeaveDelay,St=yt===void 0?.1:yt,Vt=Un.overlayStyle,Rr=Un.prefixCls,Vr=Rr===void 0?"rc-tooltip":Rr,hn=Un.children,Ft=Un.onVisibleChange,vt=Un.afterVisibleChange,bt=Un.transitionName,fr=Un.animation,Qt=Un.placement,Mt=Qt===void 0?"right":Qt,qt=Un.align,kt=qt===void 0?{}:qt,er=Un.destroyTooltipOnHide,Kr=er===void 0?!1:er,Ir=Un.defaultVisible,Dr=Un.getTooltipContainer,dn=Un.overlayInnerStyle,yn=Object(t.a)(Un,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ti=Object(d.useRef)(null);Object(d.useImperativeHandle)($t,function(){return ti.current});var ei=Object(i.a)({},yn);"visible"in Un&&(ei.popupVisible=Un.visible);var fi=function(){var Le=Un.arrowContent,je=Le===void 0?null:Le,Xe=Un.overlay,tt=Un.id;return[d.createElement("div",{className:"".concat(Vr,"-arrow"),key:"arrow"},je),d.createElement(me,{key:"content",prefixCls:Vr,id:tt,overlay:Xe,overlayInnerStyle:dn})]},Ei=!1,Di=!1;if(typeof Kr=="boolean")Ei=Kr;else if(Kr&&Object(o.a)(Kr)==="object"){var Hi=Kr.keepParent;Ei=Hi===!0,Di=Hi===!1}return d.createElement(Wt,Object.assign({popupClassName:Ct,prefixCls:Vr,popup:fi,action:De,builtinPlacements:se,popupPlacement:Mt,ref:ti,popupAlign:kt,getPopupContainer:Dr,onPopupVisibleChange:Ft,afterPopupVisibleChange:vt,popupTransitionName:bt,popupAnimation:fr,defaultPopupVisible:Ir,destroyPopupOnHide:Ei,autoDestroy:Di,mouseLeaveDelay:St,popupStyle:Vt,mouseEnterDelay:et},ei),hn)},yr=Object(d.forwardRef)(Ht),At=yr,rr={adjustX:1,adjustY:1},ur={adjustX:0,adjustY:0},vn=[0,0];function Bt(Mn){return typeof Mn=="boolean"?Mn?rr:ur:f()(f()({},ur),Mn)}function sr(Mn){var Un=Mn.arrowWidth,$t=Un===void 0?5:Un,Ct=Mn.horizontalArrowShift,Re=Ct===void 0?16:Ct,De=Mn.verticalArrowShift,Pe=De===void 0?8:De,et=Mn.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:[-(Re+$t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Pe+$t)]},topRight:{points:["br","tc"],offset:[Re+$t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Pe+$t)]},bottomRight:{points:["tr","bc"],offset:[Re+$t,4]},rightBottom:{points:["bl","cr"],offset:[4,Pe+$t]},bottomLeft:{points:["tl","bc"],offset:[-(Re+$t),4]},leftBottom:{points:["br","cl"],offset:[-4,Pe+$t]}};return Object.keys(yt).forEach(function(St){yt[St]=Mn.arrowPointAtCenter?f()(f()({},yt[St]),{overflow:Bt(et),targetOffset:vn}):f()(f()({},se[St]),{overflow:Bt(et)}),yt[St].ignoreShake=!0}),yt}var Yt=n("0n0R"),pt=n("H84U"),it=n("09Wf"),Fr=function(Un,$t){var Ct={},Re=f()({},Un);return $t.forEach(function(De){Un&&De in Un&&(Ct[De]=Un[De],delete Re[De])}),{picked:Ct,omitted:Re}},cn=new RegExp("^(".concat(it.a.join("|"),")(-inverse)?$"));function _n(Mn,Un){var $t=Mn.type;if(($t.__ANT_BUTTON===!0||$t.__ANT_SWITCH===!0||$t.__ANT_CHECKBOX===!0||Mn.type==="button")&&Mn.props.disabled){var Ct=Fr(Mn.props.style,["position","left","right","top","bottom","float","display","zIndex"]),Re=Ct.picked,De=Ct.omitted,Pe=f()(f()({display:"inline-block"},Re),{cursor:"not-allowed",width:Mn.props.block?"100%":null}),et=f()(f()({},De),{pointerEvents:"none"}),yt=Object(Yt.a)(Mn,{style:et,className:null});return d.createElement("span",{style:Pe,className:_()(Mn.props.className,"".concat(Un,"-disabled-compatible-wrapper"))},yt)}return Mn}var Kn=d.forwardRef(function(Mn,Un){var $t,Ct=d.useContext(pt.b),Re=Ct.getPopupContainer,De=Ct.getPrefixCls,Pe=Ct.direction,et=d.useState(!!Mn.visible||!!Mn.defaultVisible),yt=v()(et,2),St=yt[0],Vt=yt[1];d.useEffect(function(){"visible"in Mn&&Vt(Mn.visible)},[Mn.visible]);var Rr=function(){var Hi=Mn.title,nt=Mn.overlay;return!Hi&&!nt&&Hi!==0},Vr=function(Hi){"visible"in Mn||Vt(Rr()?!1:Hi),Mn.onVisibleChange&&!Rr()&&Mn.onVisibleChange(Hi)},hn=function(){var Hi=Mn.builtinPlacements,nt=Mn.arrowPointAtCenter,Le=Mn.autoAdjustOverflow;return Hi||sr({arrowPointAtCenter:nt,autoAdjustOverflow:Le})},Ft=function(Hi,nt){var Le=hn(),je=Object.keys(Le).filter(function(Ze){return Le[Ze].points[0]===nt.points[0]&&Le[Ze].points[1]===nt.points[1]})[0];if(!je)return;var Xe=Hi.getBoundingClientRect(),tt={top:"50%",left:"50%"};je.indexOf("top")>=0||je.indexOf("Bottom")>=0?tt.top="".concat(Xe.height-nt.offset[1],"px"):(je.indexOf("Top")>=0||je.indexOf("bottom")>=0)&&(tt.top="".concat(-nt.offset[1],"px")),je.indexOf("left")>=0||je.indexOf("Right")>=0?tt.left="".concat(Xe.width-nt.offset[0],"px"):(je.indexOf("right")>=0||je.indexOf("Left")>=0)&&(tt.left="".concat(-nt.offset[0],"px")),Hi.style.transformOrigin="".concat(tt.left," ").concat(tt.top)},vt=function(){var Hi=Mn.title,nt=Mn.overlay;return Hi===0?Hi:nt||Hi||""},bt=Mn.prefixCls,fr=Mn.openClassName,Qt=Mn.getPopupContainer,Mt=Mn.getTooltipContainer,qt=Mn.overlayClassName,kt=Mn.color,er=Mn.overlayInnerStyle,Kr=Mn.children,Ir=De("tooltip",bt),Dr=St;!("visible"in Mn)&&Rr()&&(Dr=!1);var dn=_n(Object(Yt.b)(Kr)?Kr:d.createElement("span",null,Kr),Ir),yn=dn.props,ti=_()(yn.className,p()({},fr||"".concat(Ir,"-open"),!0)),ei=_()(qt,($t={},p()($t,"".concat(Ir,"-rtl"),Pe==="rtl"),p()($t,"".concat(Ir,"-").concat(kt),kt&&cn.test(kt)),$t)),fi,Ei;return kt&&!cn.test(kt)&&(fi=f()(f()({},er),{background:kt}),Ei={background:kt}),d.createElement(At,f()({},Mn,{prefixCls:Ir,overlayClassName:ei,getTooltipContainer:Qt||Mt||Re,ref:Un,builtinPlacements:hn(),overlay:vt(),visible:Dr,onVisibleChange:Vr,onPopupAlign:Ft,overlayInnerStyle:fi,arrowContent:d.createElement("span",{className:"".concat(Ir,"-arrow-content"),style:Ei})}),Dr?Object(Yt.a)(dn,{className:ti}):dn)});Kn.displayName="Tooltip",Kn.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var gi=D.a=Kn},"3TkU":function(k,D,n){n("aTJb"),n("OlYY"),n("fc+c"),n("QUw5"),n("Swgg"),n("LBfv"),n("noeP")},"3X6L":function(k,D,n){var y=n("bYtY"),p=n("7a+S"),x=n("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;k.exports=m},"3e3G":function(k,D,n){var y=n("bYtY"),p=n("QuXc"),x=function(f,d,u,o,i){this.x=f==null?.5:f,this.y=d==null?.5:d,this.r=u==null?.5:u,this.type="radial",this.global=i||!1,p.call(this,o)};x.prototype={constructor:x},y.inherits(x,p);var v=x;k.exports=v},"3gBT":function(k,D){var n=2311;function y(){return n++}k.exports=y},"3hzK":function(k,D){var n={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};k.exports=n},"3m61":function(k,D){function n(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=n(x.get("edgeSymbol")),d=n(x.get("edgeSymbolSize")),u="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(u)),m.setVisual("opacity",x.get(o)),m.each(function(i){var t=m.getItemModel(i),s=v.getEdgeByIndex(i),e=n(t.getShallow("symbol",!0)),l=n(t.getShallow("symbolSize",!0)),r=t.get(u),a=t.get(o);switch(r){case"source":r=s.node1.getVisual("color");break;case"target":r=s.node2.getVisual("color");break}e[0]&&s.setVisual("fromSymbol",e[0]),e[1]&&s.setVisual("toSymbol",e[1]),l[0]&&s.setVisual("fromSymbolSize",l[0]),l[1]&&s.setVisual("toSymbolSize",l[1]),s.setVisual("color",r),s.setVisual("opacity",a)})})}k.exports=y},"3ouR":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="CloseSquareOutlined";var d=D.a=p.forwardRef(f)},"3y9D":function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.WordArray,m=x.Hasher,f=p.algo,d=[],u=f.SHA1=m.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(i,t){for(var s=this._hash.words,e=s[0],l=s[1],r=s[2],a=s[3],c=s[4],h=0;h<80;h++){if(h<16)d[h]=i[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+=(l&r|~l&a)+1518500249:h<40?A+=(l^r^a)+1859775393:h<60?A+=(l&r|l&a|r&a)-1894007588:A+=(l^r^a)-899497514,c=a,a=r,r=l<<30|l>>>2,l=e,e=A}s[0]=s[0]+e|0,s[1]=s[1]+l|0,s[2]=s[2]+r|0,s[3]=s[3]+a|0,s[4]=s[4]+c|0},_doFinalize:function(){var i=this._data,t=i.words,s=this._nDataBytes*8,e=i.sigBytes*8;return t[e>>>5]|=128<<24-e%32,t[(e+64>>>9<<4)+14]=Math.floor(s/4294967296),t[(e+64>>>9<<4)+15]=s,i.sigBytes=t.length*4,this._process(),this._hash},clone:function(){var i=m.clone.call(this);return i._hash=this._hash.clone(),i}});p.SHA1=m._createHelper(u),p.HmacSHA1=m._createHmacHelper(u)}(),y.SHA1})},"3zoK":function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("KCsZ"),v=n("nkfE"),m=n("OELB"),f=n("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 s=this.activeIntervals=y.clone(t);if(s)for(var e=s.length-1;e>=0;e--)m.asc(s[e])},getActiveState:function(t){var s=this.activeIntervals;if(!s.length)return"normal";if(t==null||isNaN(t))return"inactive";if(s.length===1){var e=s[0];if(e[0]<=t&&t<=e[1])return"active"}else for(var l=0,r=s.length;l<r;l++)if(s[l][0]<=t&&t<=s[l][1])return"active";return"inactive"}}),u={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,s){return s.type||(s.data?"category":"value")}v("parallel",d,o,u);var i=d;k.exports=i},"49sm":function(k,D){var n={}.toString;k.exports=Array.isArray||function(y){return n.call(y)=="[object Array]"}},"4Feb":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),v=n("IwbS"),m=n("x3X8"),f=m.getDefaultLabel,d=n("MwEJ"),u=n("nVfU"),o=u.getLayoutOnAxis,i=n("gPAo"),t=n("T4UG"),s=n("Qxkt"),e=n("6Ic6"),l=n("sK/D"),r=l.createClipPath,a=n("qj72"),c=n("ANjR"),h=n("MHtr"),g=n("6usn"),A=n("Rx6q"),b=v.CACHED_LABEL_STYLE_PROPERTIES,S=["itemStyle"],E=["emphasis","itemStyle"],C=["label"],_=["emphasis","label"],T="e\0\0",w={cartesian2d:a,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,we){return d(this.getSource(),this)},getDataParams:function(re,we,Ie){var Me=t.prototype.getDataParams.apply(this,arguments);return Ie&&(Me.info=Ie.info),Me}}),e.extend({type:"custom",_data:null,render:function(re,we,Ie,Me){var Je=this._data,Ve=re.getData(),ut=this.group,Fe=M(re,Ve,we,Ie);Ve.diff(Je).add(function(at){P(null,at,Fe(at,Me),re,ut,Ve)}).update(function(at,he){var J=Je.getItemGraphicEl(he);P(J,at,Fe(at,Me),re,ut,Ve)}).remove(function(at){var he=Je.getItemGraphicEl(at);he&&ut.remove(he)}).execute();var ae=re.get("clip",!0)?r(re.coordinateSystem,!1,re):null;ae?ut.setClipPath(ae):ut.removeClipPath(),this._data=Ve},incrementalPrepareRender:function(re,we,Ie){this.group.removeAll(),this._data=null},incrementalRender:function(re,we,Ie,Me,Je){var Ve=we.getData(),ut=M(we,Ve,Ie,Me);function Fe(he){he.isGroup||(he.incremental=!0,he.useHoverLayer=!0)}for(var ae=re.start;ae<re.end;ae++){var at=P(null,ae,ut(ae,Je),we,this.group,Ve);at.traverse(Fe)}},dispose:x.noop,filterForExposedEvent:function(re,we,Ie,Me){var Je=we.element;if(Je==null||Ie.name===Je)return!0;for(;(Ie=Ie.parent)&&Ie!==this.group;)if(Ie.name===Je)return!0;return!1}});function O(re){var we=re.type,Ie;if(we==="path"){var Me=re.shape,Je=Me.width!=null&&Me.height!=null?{x:Me.x||0,y:Me.y||0,width:Me.width,height:Me.height}:null,Ve=te(Me);Ie=v.makePath(Ve,null,Je,Me.layout||"center"),Ie.__customPathData=Ve}else if(we==="image")Ie=new v.Image({}),Ie.__customImagePath=re.style.image;else if(we==="text")Ie=new v.Text({}),Ie.__customText=re.style.text;else if(we==="group")Ie=new v.Group;else{if(we==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var ut=v.getShapeClass(we);Ie=new ut}return Ie.__customGraphicType=we,Ie.name=re.name,Ie}function I(re,we,Ie,Me,Je,Ve,ut){var Fe={},ae=Ie.style||{};if(Ie.shape&&(Fe.shape=x.clone(Ie.shape)),Ie.position&&(Fe.position=Ie.position.slice()),Ie.scale&&(Fe.scale=Ie.scale.slice()),Ie.origin&&(Fe.origin=Ie.origin.slice()),Ie.rotation&&(Fe.rotation=Ie.rotation),re.type==="image"&&Ie.style){var at=Fe.style={};x.each(["x","y","width","height"],function(Y){R(Y,at,ae,re.style,Ve)})}if(re.type==="text"&&Ie.style){var at=Fe.style={};x.each(["x","y"],function($){R($,at,ae,re.style,Ve)}),!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),Ve)){re.style.opacity=0;var he=ae.opacity;he==null&&(he=1),v.initProps(re,{style:{opacity:he}},Me,we)}Ve?re.attr(Fe):v.updateProps(re,Fe,Me,we),Ie.hasOwnProperty("z2")&&re.attr("z2",Ie.z2||0),Ie.hasOwnProperty("silent")&&re.attr("silent",Ie.silent),Ie.hasOwnProperty("invisible")&&re.attr("invisible",Ie.invisible),Ie.hasOwnProperty("ignore")&&re.attr("ignore",Ie.ignore),Ie.hasOwnProperty("info")&&re.attr("info",Ie.info);var J=Ie.styleEmphasis;v.setElementHoverStyle(re,J),ut&&v.setAsHighDownDispatcher(re,J!==!1)}function R(re,we,Ie,Me,Je){Ie[re]!=null&&!Je&&(we[re]=Ie[re],Ie[re]=Me[re])}function M(re,we,Ie,Me){var Je=re.get("renderItem"),Ve=re.coordinateSystem,ut={};Ve&&(ut=Ve.prepareCustoms?Ve.prepareCustoms():w[Ve.type](Ve));var Fe=x.defaults({getWidth:Me.getWidth,getHeight:Me.getHeight,getZr:Me.getZr,getDevicePixelRatio:Me.getDevicePixelRatio,value:Ce,style:Be,styleEmphasis:fe,visual:Se,barLayout:ke,currentSeriesIndices:rt,font:xt},ut.api||{}),ae={context:{},seriesId:re.id,seriesName:re.name,seriesIndex:re.seriesIndex,coordSys:ut.coordSys,dataInsideLength:we.count(),encode:B(re.getData())},at,he=!0,J,Y,$,de;return function(ht,He){return at=ht,he=!0,Je&&Je(x.defaults({dataIndexInside:ht,dataIndex:we.getRawIndex(ht),actionType:He?He.type:null},ae),Fe)};function be(ht){ht==null&&(ht=at),he&&(J=we.getItemModel(ht),Y=J.getModel(C),$=J.getModel(_),de=we.getItemVisual(ht,"color"),he=!1)}function Ce(ht,He){return He==null&&(He=at),we.get(we.getDimension(ht||0),He)}function Be(ht,He){He==null&&(He=at),be(He);var ir=J.getModel(S).getItemStyle();de!=null&&(ir.fill=de);var ct=we.getItemVisual(He,"opacity");ct!=null&&(ir.opacity=ct);var Xt=ht?V(ht,Y):Y;return v.setTextStyle(ir,Xt,null,{autoColor:de,isRectText:!0}),ir.text=Xt.getShallow("show")?x.retrieve2(re.getFormattedLabel(He,"normal"),f(we,He)):null,ht&&Q(ir,ht),ir}function fe(ht,He){He==null&&(He=at),be(He);var ir=J.getModel(E).getItemStyle(),ct=ht?V(ht,$):$;return v.setTextStyle(ir,ct,null,{isRectText:!0},!0),ir.text=ct.getShallow("show")?x.retrieve3(re.getFormattedLabel(He,"emphasis"),re.getFormattedLabel(He,"normal"),f(we,He)):null,ht&&Q(ir,ht),ir}function Se(ht,He){return He==null&&(He=at),we.getItemVisual(He,ht)}function ke(ht){if(Ve.getBaseAxis){var He=Ve.getBaseAxis();return o(x.defaults({axis:He},ht),Me)}}function rt(){return Ie.getCurrentSeriesIndices()}function xt(ht){return v.getFont(ht,Ie)}}function B(re){var we={};return x.each(re.dimensions,function(Ie,Me){var Je=re.getDimensionInfo(Ie);if(!Je.isExtraCoord){var Ve=Je.coordDim,ut=we[Ve]=we[Ve]||[];ut[Je.coordDimIndex]=Me}}),we}function P(re,we,Ie,Me,Je,Ve){return re=X(re,we,Ie,Me,Je,Ve,!0),re&&Ve.setItemGraphicEl(we,re),re}function X(re,we,Ie,Me,Je,Ve,ut){var Fe=!Ie;Ie=Ie||{};var ae=Ie.type,at=Ie.shape,he=Ie.style;if(re&&(Fe||ae!=null&&ae!==re.__customGraphicType||ae==="path"&&q(at)&&te(at)!==re.__customPathData||ae==="image"&&le(he,"image")&&he.image!==re.__customImagePath||ae==="text"&&le(at,"text")&&he.text!==re.__customText)&&(Je.remove(re),re=null),Fe)return;var J=!re;return!re&&(re=O(Ie)),I(re,we,Ie,Me,Ve,J,ut),ae==="group"&&F(re,we,Ie,Me,Ve),Je.add(re),re}function F(re,we,Ie,Me,Je){var Ve=Ie.children,ut=Ve?Ve.length:0,Fe=Ie.$mergeChildren,ae=Fe==="byName"||Ie.diffChildrenByName,at=Fe===!1;if(!ut&&!ae&&!at)return;if(ae){j({oldChildren:re.children()||[],newChildren:Ve||[],dataIndex:we,animatableModel:Me,group:re,data:Je});return}at&&re.removeAll();for(var he=0;he<ut;he++)Ve[he]&&X(re.childAt(he),we,Ve[he],Me,re,Je)}function j(re){new i(re.oldChildren,re.newChildren,K,K,re).add(z).update(z).remove(G).execute()}function K(re,we){var Ie=re&&re.name;return Ie!=null?Ie:T+we}function z(re,we){var Ie=this.context,Me=re!=null?Ie.newChildren[re]:null,Je=we!=null?Ie.oldChildren[we]:null;X(Je,Ie.dataIndex,Me,Ie.animatableModel,Ie.group,Ie.data)}function V(re,we){var Ie=new s({},we);return x.each(b,function(Me,Je){re.hasOwnProperty(Me)&&(Ie.option[Je]=re[Me])}),Ie}function Q(re,we){for(var Ie in we)(we.hasOwnProperty(Ie)||!b.hasOwnProperty(Ie))&&(re[Ie]=we[Ie])}function G(re){var we=this.context,Ie=we.oldChildren[re];Ie&&we.group.remove(Ie)}function te(re){return re&&(re.pathData||re.d)}function q(re){return re&&(re.hasOwnProperty("pathData")||re.hasOwnProperty("d"))}function le(re,we){return re&&re.hasOwnProperty(we)}},"4HMb":function(k,D,n){var y=n("bYtY"),p=n("6GrX"),x=n("4NO4"),v=x.makeInner,m=n("aX7z"),f=m.makeLabelFormatter,d=m.getOptionCategoryInterval,u=m.shouldShowAllLabels,o=v();function i(C){return C.type==="category"?s(C):r(C)}function t(C,_){return C.type==="category"?l(C,_):{ticks:C.scale.getTicks()}}function s(C){var _=C.getLabelModel(),T=e(C,_);return!_.get("show")||C.scale.isBlank()?{labels:[],labelCategoryInterval:T.labelCategoryInterval}:T}function e(C,_){var T=a(C,"labels"),w=d(_),O=c(T,w);if(O)return O;var I,R;return y.isFunction(w)?I=E(C,w):(R=w==="auto"?g(C):w,I=S(C,R)),h(T,w,{labels:I,labelCategoryInterval:R})}function l(C,_){var T=a(C,"ticks"),w=d(_),O=c(T,w);if(O)return O;var I,R;if((!_.get("show")||C.scale.isBlank())&&(I=[]),y.isFunction(w))I=E(C,w,!0);else if(w==="auto"){var M=e(C,C.getLabelModel());R=M.labelCategoryInterval,I=y.map(M.labels,function(B){return B.tickValue})}else R=w,I=S(C,R,!0);return h(T,w,{ticks:I,tickCategoryInterval:R})}function r(C){var _=C.scale.getTicks(),T=f(C);return{labels:y.map(_,function(w,O){return{formattedLabel:T(w,O),rawLabel:C.scale.getLabel(w),tickValue:w}})}}function a(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),w=(_.axisRotate-_.labelRotate)/180*Math.PI,O=C.scale,I=O.getExtent(),R=O.count();if(I[1]-I[0]<1)return 0;var M=1;R>40&&(M=Math.max(1,Math.floor(R/40)));for(var B=I[0],P=C.dataToCoord(B+1)-C.dataToCoord(B),X=Math.abs(P*Math.cos(w)),F=Math.abs(P*Math.sin(w)),j=0,K=0;B<=I[1];B+=M){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 G=j/X,te=K/F;isNaN(G)&&(G=Infinity),isNaN(te)&&(te=Infinity);var q=Math.max(0,Math.floor(Math.min(G,te))),le=o(C.model),re=C.getExtent(),we=le.lastAutoInterval,Ie=le.lastTickCount;return we!=null&&Ie!=null&&Math.abs(we-q)<=1&&Math.abs(Ie-R)<=1&&we>q&&le.axisExtend0===re[0]&&le.axisExtend1===re[1]?q=we:(le.lastTickCount=R,le.lastAutoInterval=q,le.axisExtend0=re[0],le.axisExtend1=re[1]),q}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 S(C,_,T){var w=f(C),O=C.scale,I=O.getExtent(),R=C.getLabelModel(),M=[],B=Math.max((_||0)+1,1),P=I[0],X=O.count();P!==0&&B>1&&X/B>2&&(P=Math.round(Math.ceil(P/B)*B));var F=u(C),j=R.get("showMinLabel")||F,K=R.get("showMaxLabel")||F;j&&P!==I[0]&&V(I[0]);for(var z=P;z<=I[1];z+=B)V(z);K&&z-B!==I[1]&&V(I[1]);function V(Q){M.push(T?Q:{formattedLabel:w(Q),rawLabel:O.getLabel(Q),tickValue:Q})}return M}function E(C,_,T){var w=C.scale,O=f(C),I=[];return y.each(w.getTicks(),function(R){var M=w.getLabel(R);_(R,M)&&I.push(T?R:{formattedLabel:O(R),rawLabel:M,tickValue:R})}),I}D.createAxisLabels=i,D.createAxisTicks=t,D.calculateCategoryInterval=A},"4NO4":function(k,D,n){var y=n("bYtY"),p=n("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 u(T,w,O){if(T){T[w]=T[w]||{},T.emphasis=T.emphasis||{},T.emphasis[w]=T.emphasis[w]||{};for(var I=0,R=O.length;I<R;I++){var M=O[I];!T.emphasis[w].hasOwnProperty(M)&&T[w].hasOwnProperty(M)&&(T.emphasis[w][M]=T[w][M])}}}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 i(T){return v(T)&&!m(T)&&!(T instanceof Date)?T.value:T}function t(T){return v(T)&&!(T instanceof Array)}function s(T,w){w=(w||[]).slice();var O=y.map(T||[],function(I,R){return{exist:I}});return x(w,function(I,R){if(!v(I))return;for(var M=0;M<O.length;M++)if(!O[M].option&&I.id!=null&&O[M].exist.id===I.id+""){O[M].option=I,w[R]=null;return}for(var M=0;M<O.length;M++){var B=O[M].exist;if(!O[M].option&&(B.id==null||I.id==null)&&I.name!=null&&!r(I)&&!r(B)&&B.name===I.name+""){O[M].option=I,w[R]=null;return}}}),x(w,function(I,R){if(!v(I))return;for(var M=0;M<O.length;M++){var B=O[M].exist;if(!O[M].option&&!r(B)&&I.id==null){O[M].option=I;break}}M>=O.length&&O.push({option:I})}),O}function e(T){var w=y.createHashMap();x(T,function(O,I){var R=O.exist;R&&w.set(R.id,O)}),x(T,function(O,I){var R=O.option;y.assert(!R||R.id==null||!w.get(R.id)||w.get(R.id)===O,"id duplicates: "+(R&&R.id)),R&&R.id!=null&&w.set(R.id,O),!O.keyInfo&&(O.keyInfo={})}),x(T,function(O,I){var R=O.exist,M=O.option,B=O.keyInfo;if(!v(M))return;if(B.name=M.name!=null?M.name+"":R?R.name:f+I,R)B.id=R.id;else if(M.id!=null)B.id=M.id+"";else{var P=0;do B.id="\0"+B.name+"\0"+P++;while(w.get(B.id))}w.set(B.id,O)})}function l(T){var w=T.name;return!!(w&&w.indexOf(f))}function r(T){return v(T)&&T.id&&(T.id+"").indexOf("\0_ec_\0")===0}function a(T,w){var O={},I={};return R(T||[],O),R(w||[],I,O),[M(O),M(I)];function R(B,P,X){for(var F=0,j=B.length;F<j;F++)for(var K=B[F].seriesId,z=d(B[F].dataIndex),V=X&&X[K],Q=0,G=z.length;Q<G;Q++){var te=z[Q];V&&V[te]?V[te]=null:(P[K]||(P[K]={}))[te]=1}}function M(B,P){var X=[];for(var F in B)if(B.hasOwnProperty(F)&&B[F]!=null)if(P)X.push(+F);else{var j=M(B[F],!0);j.length&&X.push({seriesId:F,dataIndex:j})}return X}}function c(T,w){if(w.dataIndexInside!=null)return w.dataIndexInside;if(w.dataIndex!=null)return y.isArray(w.dataIndex)?y.map(w.dataIndex,function(O){return T.indexOfRawIndex(O)}):T.indexOfRawIndex(w.dataIndex);if(w.name!=null)return y.isArray(w.name)?y.map(w.name,function(O){return T.indexOfName(O)}):T.indexOfName(w.name)}function h(){var T="__\0ec_inner_"+g+++"_"+Math.random().toFixed(5);return function(w){return w[T]||(w[T]={})}}var g=0;function A(T,w,O){if(y.isString(w)){var I={};I[w+"Index"]=0,w=I}var R=O&&O.defaultMainType;R&&!b(w,R+"Index")&&!b(w,R+"Id")&&!b(w,R+"Name")&&(w[R+"Index"]=0);var M={};return x(w,function(B,P){var B=w[P];if(P==="dataIndex"||P==="dataIndexInside"){M[P]=B;return}var X=P.match(/^(\w+)(Index|Id|Name)$/)||[],F=X[1],j=(X[2]||"").toLowerCase();if(!F||!j||B==null||j==="index"&&B==="none"||O&&O.includeMainTypes&&y.indexOf(O.includeMainTypes,F)<0)return;var K={mainType:F};(j!=="index"||B!=="all")&&(K[j]=B);var z=T.queryComponents(K);M[F+"Models"]=z,M[F+"Model"]=z[0]}),M}function b(T,w){return T&&T.hasOwnProperty(w)}function S(T,w,O){T.setAttribute?T.setAttribute(w,O):T[w]=O}function E(T,w){return T.getAttribute?T.getAttribute(w):T[w]}function C(T){return T==="auto"?p.domSupported?"html":"richText":T||"html"}function _(T,w){var O=y.createHashMap(),I=[];return y.each(T,function(R){var M=w(R);(O.get(M)||(I.push(M),O.set(M,[]))).push(R)}),{keys:I,buckets:O}}D.normalizeToArray=d,D.defaultEmphasis=u,D.TEXT_STYLE_OPTIONS=o,D.getDataItemValue=i,D.isDataItemOption=t,D.mappingToExists=s,D.makeIdAndName=e,D.isNameSpecified=l,D.isIdInner=r,D.compressBatches=a,D.queryDataIndex=c,D.makeInner=h,D.parseFinder=A,D.setAttribute=S,D.getAttribute=E,D.getTooltipRenderMode=C,D.groupData=_},"4NgU":function(k,D,n){var y=n("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;k.exports=x},"4fz+":function(k,D,n){var y=n("bYtY"),p=n("1bdT"),x=n("mFDi"),v=function(d){d=d||{},p.call(this,d);for(var u in d)d.hasOwnProperty(u)&&(this[u]=d[u]);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 u=this._children,o=0;o<u.length;o++)if(u[o].name===d)return u[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,u){if(d&&d!==this&&d.parent!==this&&u&&u.parent===this){var o=this._children,i=o.indexOf(u);i>=0&&(o.splice(i,0,d),this._doAdd(d))}return this},_doAdd:function(d){d.parent&&d.parent.remove(d),d.parent=this;var u=this.__storage,o=this.__zr;u&&u!==d.__storage&&(u.addToStorage(d),d instanceof v&&d.addChildrenToStorage(u)),o&&o.refresh()},remove:function(d){var u=this.__zr,o=this.__storage,i=this._children,t=y.indexOf(i,d);return t<0?this:(i.splice(t,1),d.parent=null,o&&(o.delFromStorage(d),d instanceof v&&d.delChildrenFromStorage(o)),u&&u.refresh(),this)},removeAll:function(){var d=this._children,u=this.__storage,o,i;for(i=0;i<d.length;i++)o=d[i],u&&(u.delFromStorage(o),o instanceof v&&o.delChildrenFromStorage(u)),o.parent=null;return d.length=0,this},eachChild:function(d,u){for(var o=this._children,i=0;i<o.length;i++){var t=o[i];d.call(u,t,i)}return this},traverse:function(d,u){for(var o=0;o<this._children.length;o++){var i=this._children[o];d.call(u,i),i.type==="group"&&i.traverse(d,u)}return this},addChildrenToStorage:function(d){for(var u=0;u<this._children.length;u++){var o=this._children[u];d.addToStorage(o),o instanceof v&&o.addChildrenToStorage(d)}},delChildrenFromStorage:function(d){for(var u=0;u<this._children.length;u++){var o=this._children[u];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 u=null,o=new x(0,0,0,0),i=d||this._children,t=[],s=0;s<i.length;s++){var e=i[s];if(e.ignore||e.invisible)continue;var l=e.getBoundingRect(),r=e.getLocalTransform(t);r?(o.copy(l),o.applyTransform(r),u=u||o.clone(),u.union(o)):(u=u||l.clone(),u.union(l))}return u||o}},y.inherits(v,p);var m=v;k.exports=m},"4i/N":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="CloseOutlined";var d=D.a=p.forwardRef(f)},"4kuk":function(k,D,n){var y=n("SfRM"),p=n("Hvzi"),x=n("u8Dt"),v=n("ekgI"),m=n("JSQU");function f(d){var u=-1,o=d==null?0:d.length;for(this.clear();++u<o;){var i=d[u];this.set(i[0],i[1])}}f.prototype.clear=y,f.prototype.delete=p,f.prototype.get=x,f.prototype.has=v,f.prototype.set=m,k.exports=f},"4mN7":function(k,D,n){var y=n("QBsz"),p=n("Sj9i"),x=Math.min,v=Math.max,m=Math.sin,f=Math.cos,d=Math.PI*2,u=y.create(),o=y.create(),i=y.create();function t(h,g,A){if(h.length===0)return;var b=h[0],S=b[0],E=b[0],C=b[1],_=b[1],T;for(T=1;T<h.length;T++)b=h[T],S=x(S,b[0]),E=v(E,b[0]),C=x(C,b[1]),_=v(_,b[1]);g[0]=S,g[1]=C,A[0]=E,A[1]=_}function s(h,g,A,b,S,E){S[0]=x(h,A),S[1]=x(g,b),E[0]=v(h,A),E[1]=v(g,b)}var e=[],l=[];function r(h,g,A,b,S,E,C,_,T,w){var O=p.cubicExtrema,I=p.cubicAt,R,M=O(h,A,S,C,e);for(T[0]=Infinity,T[1]=Infinity,w[0]=-Infinity,w[1]=-Infinity,R=0;R<M;R++){var B=I(h,A,S,C,e[R]);T[0]=x(B,T[0]),w[0]=v(B,w[0])}for(M=O(g,b,E,_,l),R=0;R<M;R++){var P=I(g,b,E,_,l[R]);T[1]=x(P,T[1]),w[1]=v(P,w[1])}T[0]=x(h,T[0]),w[0]=v(h,w[0]),T[0]=x(C,T[0]),w[0]=v(C,w[0]),T[1]=x(g,T[1]),w[1]=v(g,w[1]),T[1]=x(_,T[1]),w[1]=v(_,w[1])}function a(h,g,A,b,S,E,C,_){var T=p.quadraticExtremum,w=p.quadraticAt,O=v(x(T(h,A,S),1),0),I=v(x(T(g,b,E),1),0),R=w(h,A,S,O),M=w(g,b,E,I);C[0]=x(h,S,R),C[1]=x(g,E,M),_[0]=v(h,S,R),_[1]=v(g,E,M)}function c(h,g,A,b,S,E,C,_,T){var w=y.min,O=y.max,I=Math.abs(S-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(u[0]=f(S)*A+h,u[1]=m(S)*b+g,o[0]=f(E)*A+h,o[1]=m(E)*b+g,w(_,u,o),O(T,u,o),S=S%d,S<0&&(S=S+d),E=E%d,E<0&&(E=E+d),S>E&&!C?E+=d:S<E&&C&&(S+=d),C){var R=E;E=S,S=R}for(var M=0;M<E;M+=Math.PI/2)M>S&&(i[0]=f(M)*A+h,i[1]=m(M)*b+g,w(_,i,_),O(T,i,T))}D.fromPoints=t,D.fromLine=s,D.fromCubic=r,D.fromQuadratic=a,D.fromArc=c},"4vCz":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("X2/X")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="PlusSquareOutlined";var i=v.forwardRef(o);D.default=i},"4xFK":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};D.default=y},"56rv":function(k,D,n){var y=n("IwbS"),p=n("x3X8"),x=p.getDefaultLabel;function v(f,d,u,o,i,t,s){var e=u.getModel("label"),l=u.getModel("emphasis.label");y.setLabelStyle(f,d,e,l,{labelFetcher:i,labelDataIndex:t,defaultText:x(i.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(k,D,n){var y=n("Sj9i");function p(x,v,m,f,d,u,o,i,t,s,e){if(t===0)return!1;var l=t;if(e>v+l&&e>f+l&&e>u+l&&e>i+l||e<v-l&&e<f-l&&e<u-l&&e<i-l||s>x+l&&s>m+l&&s>d+l&&s>o+l||s<x-l&&s<m-l&&s<d-l&&s<o-l)return!1;var r=y.cubicProjectPoint(x,v,m,f,d,u,o,i,s,e,null);return r<=l/2}D.containStroke=p},"5Dmo":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("5YgA"),v=n.n(x)},"5GOC":function(k,D,n){"use strict";var y=n("cIOH"),p=n("b56q"),x=n("15/o")},"5GhG":function(k,D,n){var y=n("5GtS"),p=n("bYtY"),x=n("L0Ub"),v=x.getDimensionTypeByAxis,m=n("D5nY"),f=m.makeSeriesEncodeForAxisCoordSys,d={_baseAxisDim:null,getInitialData:function(u,o){var i,t=o.getComponent("xAxis",this.get("xAxisIndex")),s=o.getComponent("yAxis",this.get("yAxisIndex")),e=t.get("type"),l=s.get("type"),r;e==="category"?(u.layout="horizontal",i=t.getOrdinalMeta(),r=!0):l==="category"?(u.layout="vertical",i=s.getOrdinalMeta(),r=!0):u.layout=u.layout||"horizontal";var a=["x","y"],c=u.layout==="horizontal"?0:1,h=this._baseAxisDim=a[c],g=a[1-c],A=[t,s],b=A[c].get("type"),S=A[1-c].get("type"),E=u.data;if(E&&r){var C=[];p.each(E,function(w,O){var I;w.value&&p.isArray(w.value)?(I=w.value.slice(),w.value.unshift(O)):p.isArray(w)?(I=w.slice(),w.unshift(O)):I=w,C.push(I)}),u.data=C}var _=this.defaultValueDimensions,T=[{name:h,type:v(b),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:v(S),dimsDef:_.slice()}];return y(this,{coordDimensions:T,dimensionsCount:_.length+1,encodeDefaulter:p.curry(f,T,this)})},getBaseAxis:function(){var u=this._baseAxisDim;return this.ecModel.getComponent(u+"Axis",this.get(u+"AxisIndex")).axis}};D.seriesModelMixin=d},"5GtS":function(k,D,n){var y=n("sdST"),p=n("YXkt"),x=n("bYtY"),v=x.extend,m=x.isArray;function f(d,u,o){u=m(u)&&{coordDimensions:u}||v({},u);var i=d.getSource(),t=y(i,u),s=new p(t,d);return s.initData(i,o),s}k.exports=f},"5Hur":function(k,D,n){var y=n("4NO4"),p=y.makeInner,x=y.normalizeToArray,v=p();function m(d,u){for(var o=d.length,i=0;i<o;i++)if(d[i].length>u)return d[i];return d[o-1]}var f={clearColorPalette:function(){v(this).colorIdx=0,v(this).colorNameMap={}},getColorFromPalette:function(d,u,o){u=u||this;var i=v(u),t=i.colorIdx||0,s=i.colorNameMap=i.colorNameMap||{};if(s.hasOwnProperty(d))return s[d];var e=x(this.get("color",!0)),l=this.get("colorLayer",!0),r=o==null||!l?e:m(l,o);if(r=r||e,!r||!r.length)return;var a=r[t];return d&&(s[d]=a),i.colorIdx=(t+1)%r.length,a}};k.exports=f},"5NDa":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("OnYD"),v=n.n(x),m=n("+L6B")},"5NHt":function(k,D,n){n("aTJb"),n("OlYY"),n("fc+c"),n("N5BQ"),n("IyUQ"),n("LBfv"),n("noeP")},"5OYt":function(k,D,n){"use strict";var y=n("J4zp"),p=n.n(y),x=n("q1tI"),v=n.n(x),m=n("ACnJ");function f(){var d=Object(x.useState)({}),u=p()(d,2),o=u[0],i=u[1];return Object(x.useEffect)(function(){var t=m.a.subscribe(function(s){i(s)});return function(){return m.a.unsubscribe(t)}},[]),o}D.a=f},"5RzL":function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),v=n.n(x),m=n("lwsE"),f=n.n(m),d=n("W8MJ"),u=n.n(d),o=n("7W2i"),i=n.n(o),t=n("LQ03"),s=n.n(t),e=n("q1tI"),l=n.n(e),r=n("1OyB"),a=n("vuIU"),c=n("Ji7U"),h=n("LK+K"),g=n("KQm4"),A=n("U8pU"),b=n("ODXe"),S=n("VTBJ"),E=n("rePB"),C=n("Ff2n"),_=n("4IlW"),T=n("TSYQ"),w=n.n(T),O=n("6cGi"),I=n("bX4T"),R=n("8XRh"),M=function(xr){var Tn=xr.className,mr=xr.customizeIcon,Mr=xr.customizeIconProps,Xr=xr.onMouseDown,un=xr.onClick,Fn=xr.children,_t;return typeof mr=="function"?_t=mr(Mr):_t=mr,e.createElement("span",{className:Tn,onMouseDown:function(Nr){Nr.preventDefault(),Xr&&Xr(Nr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:un,"aria-hidden":!0},_t!==void 0?_t:e.createElement("span",{className:w()(Tn.split(/\s+/).map(function(Or){return"".concat(Or,"-icon")}))},Fn))},B=M,P=n("c+Xe"),X=function(xr,Tn){var mr=xr.prefixCls,Mr=xr.id,Xr=xr.inputElement,un=xr.disabled,Fn=xr.tabIndex,_t=xr.autoFocus,Or=xr.autoComplete,Nr=xr.editable,tn=xr.accessibilityIndex,xn=xr.value,Ln=xr.maxLength,Sn=xr.onKeyDown,qn=xr.onMouseDown,Wn=xr.onChange,pi=xr.onPaste,Pi=xr.onCompositionStart,bi=xr.onCompositionEnd,Ii=xr.open,zi=xr.attrs,ea=Xr||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(S.a)(Object(S.a)({id:Mr,ref:Object(P.a)(Tn,Wi),disabled:un,tabIndex:Fn,autoComplete:Or||"off",type:"search",autoFocus:_t,className:"".concat(mr,"-selection-search-input"),style:Object(S.a)(Object(S.a)({},La),{},{opacity:Nr?null:0}),role:"combobox","aria-expanded":Ii,"aria-haspopup":"listbox","aria-owns":"".concat(Mr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Mr,"_list"),"aria-activedescendant":"".concat(Mr,"_list_").concat(tn)},zi),{},{value:Nr?xn:"",maxLength:Ln,readOnly:!Nr,unselectable:Nr?null:"on",onKeyDown:function(ga){Sn(ga),Ji&&Ji(ga)},onMouseDown:function(ga){qn(ga),Ca&&Ca(ga)},onChange:function(ga){Wn(ga),ca&&ca(ga)},onCompositionStart:function(ga){Pi(ga),na&&na(ga)},onCompositionEnd:function(ga){bi(ga),Pa&&Pa(ga)},onPaste:pi})),ea},F=e.forwardRef(X);F.displayName="Input";var j=F;function K(Lr){return Array.isArray(Lr)?Lr:Lr!==void 0?[Lr]:[]}function z(Lr,xr){var Tn=xr.labelInValue,mr=xr.combobox;if(Lr===void 0||Lr===""&&mr)return[];var Mr=Array.isArray(Lr)?Lr:[Lr];return Tn?Mr.map(function(Xr){var un=Xr.key,Fn=Xr.value;return Fn!==void 0?Fn:un}):Mr}function V(Lr,xr){var Tn=xr.optionLabelProp,mr=xr.labelInValue,Mr=xr.prevValue,Xr=xr.options,un=xr.getLabeledValue,Fn=Lr;return mr&&(Fn=Fn.map(function(_t){return un(_t,{options:Xr,prevValue:Mr,labelInValue:mr,optionLabelProp:Tn})})),Fn}function Q(Lr,xr){var Tn=Object(g.a)(xr),mr;for(mr=Lr.length-1;mr>=0&&Lr[mr].disabled;mr-=1);var Mr=null;return mr!==-1&&(Mr=Tn[mr],Tn.splice(mr,1)),{values:Tn,removedValue:Mr}}var G=typeof window!="undefined"&&window.document&&window.document.documentElement,te=G,q=0;function le(){var Lr;return te?(Lr=q,q+=1):Lr="TEST_OR_SSR",Lr}function re(Lr,xr){te?e.useLayoutEffect(Lr,xr):e.useEffect(Lr,xr)}var we="__RC_SELECT_MAX_REST_COUNT__",Ie=function(xr){var Tn=xr.id,mr=xr.prefixCls,Mr=xr.values,Xr=xr.open,un=xr.searchValue,Fn=xr.inputRef,_t=xr.placeholder,Or=xr.disabled,Nr=xr.mode,tn=xr.showSearch,xn=xr.autoFocus,Ln=xr.autoComplete,Sn=xr.accessibilityIndex,qn=xr.tabIndex,Wn=xr.removeIcon,pi=xr.choiceTransitionName,Pi=xr.maxTagCount,bi=xr.maxTagTextLength,Ii=xr.maxTagPlaceholder,zi=Ii===void 0?function(to){return"+ ".concat(to.length," ...")}:Ii,ea=xr.tagRender,Xi=xr.onSelect,Wi=xr.onInputChange,ji=xr.onInputPaste,Ji=xr.onInputKeyDown,ca=xr.onInputMouseDown,Ca=xr.onInputCompositionStart,na=xr.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],Fi=Object(e.useState)(!1),io=Object(b.a)(Fi,2),oo=io[0],Qo=io[1];e.useEffect(function(){ga(!0)},[]);var mo=Xr||Nr==="tags"?un:"",To=Nr==="tags"||tn&&(Xr||oo);re(function(){Va(Oa.current.scrollWidth)},[mo]);var ao=Mr,So;typeof Pi=="number"&&(So=Mr.length-Pi,ao=Mr.slice(0,Pi)),typeof bi=="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>bi&&(wo="".concat(ts.slice(0,bi),"..."))}return Object(S.a)(Object(S.a)({},Uo),{},{label:wo})})),So>0&&ao.push({key:we,label:typeof zi=="function"?zi(Mr.slice(Pi)):zi});var bo=e.createElement(R.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!==we&&!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:w()(Ia,"".concat(mr,"-selection-item"),Object(E.a)({},"".concat(mr,"-selection-item-disabled"),ts)),style:Oo},e.createElement("span",{className:"".concat(mr,"-selection-item-content")},Uo),os&&e.createElement(B,{className:"".concat(mr,"-selection-item-remove"),onMouseDown:xo,onClick:rs,customizeIcon:Wn},"\xD7"))});return e.createElement(e.Fragment,null,bo,e.createElement("span",{className:"".concat(mr,"-selection-search"),style:{width:_a},onFocus:function(){Qo(!0)},onBlur:function(){Qo(!1)}},e.createElement(j,{ref:Fn,open:Xr,prefixCls:mr,id:Tn,inputElement:null,disabled:Or,autoFocus:xn,autoComplete:Ln,editable:To,accessibilityIndex:Sn,value:mo,onKeyDown:Ji,onMouseDown:ca,onChange:Wi,onPaste:ji,onCompositionStart:Ca,onCompositionEnd:na,tabIndex:qn,attrs:Object(I.a)(xr,!0)}),e.createElement("span",{ref:Oa,className:"".concat(mr,"-selection-search-mirror"),"aria-hidden":!0},mo,"\xA0")),!Mr.length&&!mo&&e.createElement("span",{className:"".concat(mr,"-selection-placeholder")},_t))},Me=Ie,Je=function(xr){var Tn=xr.inputElement,mr=xr.prefixCls,Mr=xr.id,Xr=xr.inputRef,un=xr.disabled,Fn=xr.autoFocus,_t=xr.autoComplete,Or=xr.accessibilityIndex,Nr=xr.mode,tn=xr.open,xn=xr.values,Ln=xr.placeholder,Sn=xr.tabIndex,qn=xr.showSearch,Wn=xr.searchValue,pi=xr.activeValue,Pi=xr.maxLength,bi=xr.onInputKeyDown,Ii=xr.onInputMouseDown,zi=xr.onInputChange,ea=xr.onInputPaste,Xi=xr.onInputCompositionStart,Wi=xr.onInputCompositionEnd,ji=e.useState(!1),Ji=Object(b.a)(ji,2),ca=Ji[0],Ca=Ji[1],na=Nr==="combobox",Pa=na||qn,La=xn[0],va=Wn||"";na&&pi&&!ca&&(va=pi),e.useEffect(function(){na&&Ca(!1)},[na,pi]);var ga=Nr!=="combobox"&&!tn?!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(mr,"-selection-search")},e.createElement(j,{ref:Xr,prefixCls:mr,id:Mr,open:tn,inputElement:Tn,disabled:un,autoFocus:Fn,autoComplete:_t,editable:Pa,accessibilityIndex:Or,value:va,onKeyDown:bi,onMouseDown:Ii,onChange:function(Xa){Ca(!0),zi(Xa)},onPaste:ea,onCompositionStart:Xi,onCompositionEnd:Wi,tabIndex:Sn,attrs:Object(I.a)(xr,!0),maxLength:na?Pi:void 0})),!na&&La&&!ga&&e.createElement("span",{className:"".concat(mr,"-selection-item"),title:Oa},La.label),!La&&!ga&&e.createElement("span",{className:"".concat(mr,"-selection-placeholder")},Ln))},Ve=Je;function ut(){var Lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,xr=e.useRef(null),Tn=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Tn.current)}},[]);function mr(Mr){(Mr||xr.current===null)&&(xr.current=Mr),window.clearTimeout(Tn.current),Tn.current=window.setTimeout(function(){xr.current=null},Lr)}return[function(){return xr.current},mr]}var Fe=function(xr,Tn){var mr=Object(e.useRef)(null),Mr=Object(e.useRef)(!1),Xr=xr.prefixCls,un=xr.multiple,Fn=xr.open,_t=xr.mode,Or=xr.showSearch,Nr=xr.tokenWithEnter,tn=xr.onSearch,xn=xr.onSearchSubmit,Ln=xr.onToggleOpen,Sn=xr.onInputKeyDown,qn=xr.domRef;e.useImperativeHandle(Tn,function(){return{focus:function(){mr.current.focus()},blur:function(){mr.current.blur()}}});var Wn=ut(0),pi=Object(b.a)(Wn,2),Pi=pi[0],bi=pi[1],Ii=function(ga){var Oa=ga.which;(Oa===_.a.UP||Oa===_.a.DOWN)&&ga.preventDefault(),Sn&&Sn(ga),Oa===_.a.ENTER&&_t==="tags"&&!Mr.current&&!Fn&&xn(ga.target.value),[_.a.SHIFT,_.a.TAB,_.a.BACKSPACE,_.a.ESC].includes(Oa)||Ln(!0)},zi=function(){bi(!0)},ea=Object(e.useRef)(null),Xi=function(ga){tn(ga,!0,Mr.current)!==!1&&Ln(!0)},Wi=function(){Mr.current=!0},ji=function(){Mr.current=!1},Ji=function(ga){var Oa=ga.target.value;if(Nr&&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!==mr.current){var Aa=document.body.style.msTouchAction!==void 0;Aa?setTimeout(function(){mr.current.focus()}):mr.current.focus()}},na=function(ga){var Oa=Pi();ga.target!==mr.current&&!Oa&&ga.preventDefault(),(_t!=="combobox"&&(!Or||!Oa)||!Fn)&&(Fn&&tn("",!0,!1),Ln())},Pa={inputRef:mr,onInputKeyDown:Ii,onInputMouseDown:zi,onInputChange:Ji,onInputPaste:ca,onInputCompositionStart:Wi,onInputCompositionEnd:ji},La=un?e.createElement(Me,Object.assign({},xr,Pa)):e.createElement(Ve,Object.assign({},xr,Pa));return e.createElement("div",{ref:qn,className:"".concat(Xr,"-selector"),onClick:Ca,onMouseDown:na},La)},ae=e.forwardRef(Fe);ae.displayName="Selector";var at=ae,he=n("uciX"),J=function(xr){var Tn=typeof xr!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Tn,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Tn,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Tn,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Tn,adjustY:1}}}},Y=function(xr,Tn){var mr=xr.prefixCls,Mr=xr.disabled,Xr=xr.visible,un=xr.children,Fn=xr.popupElement,_t=xr.containerWidth,Or=xr.animation,Nr=xr.transitionName,tn=xr.dropdownStyle,xn=xr.dropdownClassName,Ln=xr.direction,Sn=Ln===void 0?"ltr":Ln,qn=xr.dropdownMatchSelectWidth,Wn=qn===void 0?!0:qn,pi=xr.dropdownRender,Pi=xr.dropdownAlign,bi=xr.getPopupContainer,Ii=xr.empty,zi=xr.getTriggerDOMNode,ea=Object(C.a)(xr,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),Xi="".concat(mr,"-dropdown"),Wi=Fn;pi&&(Wi=pi(Fn));var ji=e.useMemo(function(){return J(Wn)},[Wn]),Ji=Or?"".concat(Xi,"-").concat(Or):Nr,ca=e.useRef(null);e.useImperativeHandle(Tn,function(){return{getPopupElement:function(){return ca.current}}});var Ca=Object(S.a)({minWidth:_t},tn);return typeof Wn=="number"?Ca.width=Wn:Wn&&(Ca.width=_t),e.createElement(he.a,Object.assign({},ea,{showAction:[],hideAction:[],popupPlacement:Sn==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:ji,prefixCls:Xi,popupTransitionName:Ji,popup:e.createElement("div",{ref:ca},Wi),popupAlign:Pi,popupVisible:Xr,getPopupContainer:bi,popupClassName:w()(xn,Object(E.a)({},"".concat(Xi,"-empty"),Ii)),popupStyle:Ca,getTriggerDOMNode:zi}),un)},$=e.forwardRef(Y);$.displayName="SelectTrigger";var de=$,be="RC_SELECT_INTERNAL_PROPS_MARK";function Ce(){var Lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,xr=e.useState(!1),Tn=Object(b.a)(xr,2),mr=Tn[0],Mr=Tn[1],Xr=e.useRef(null),un=function(){window.clearTimeout(Xr.current)};e.useEffect(function(){return un},[]);var Fn=function(Or,Nr){un(),Xr.current=window.setTimeout(function(){Mr(Or),Nr&&Nr()},Lr)};return[mr,Fn,un]}var Be=n("T5bk"),fe=n("Kwbf");function Se(Lr,xr){var Tn=Lr.key,mr;return"value"in Lr&&(mr=Lr.value),Tn!=null?Tn:mr!==void 0?mr:"rc-index-key-".concat(xr)}function ke(Lr){var xr=[];function Tn(mr,Mr){mr.forEach(function(Xr){Mr||!("options"in Xr)?xr.push({key:Se(Xr,xr.length),groupOption:Mr,data:Xr}):(xr.push({key:Se(Xr,xr.length),group:!0,data:Xr}),Tn(Xr.options,!0))})}return Tn(Lr,!1),xr}function rt(Lr){var xr=Object(S.a)({},Lr);return"props"in xr||Object.defineProperty(xr,"props",{get:function(){return Object(fe.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),xr}}),xr}function xt(Lr,xr){var Tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},mr=Tn.prevValueOptions,Mr=mr===void 0?[]:mr,Xr=new Map;return xr.forEach(function(un){if(!un.group){var Fn=un.data;Xr.set(Fn.value,Fn)}}),Lr.map(function(un){var Fn=Xr.get(un);return Fn||(Fn=Object(S.a)({},Mr.find(function(_t){return _t._INTERNAL_OPTION_VALUE_===un}))),rt(Fn)})}var ht=function(xr,Tn){var mr=Tn.options,Mr=Tn.prevValue,Xr=Tn.labelInValue,un=Tn.optionLabelProp,Fn=xt([xr],mr)[0],_t={value:xr},Or,Nr=K(Mr);return Xr&&(Or=Nr.find(function(tn){return Object(A.a)(tn)==="object"&&"value"in tn?tn.value===xr:tn.key===xr})),Or&&Object(A.a)(Or)==="object"&&"label"in Or?(_t.label=Or.label,Fn&&typeof Or.label=="string"&&typeof Fn[un]=="string"&&Or.label.trim()!==Fn[un].trim()&&Object(fe.a)(!1,"`label` of `value` is not same as `label` in Select options.")):Fn&&un in Fn?_t.label=Fn[un]:_t.label=xr,_t.key=_t.value,_t};function He(Lr){return K(Lr).join("")}function ir(Lr){return function(xr,Tn){var mr=xr.toLowerCase();if("options"in Tn)return He(Tn.label).toLowerCase().includes(mr);var Mr=Tn[Lr],Xr=He(Mr).toLowerCase();return Xr.includes(mr)}}function ct(Lr,xr,Tn){var mr=Tn.optionFilterProp,Mr=Tn.filterOption,Xr=[],un;return Mr===!1?Object(g.a)(xr):(typeof Mr=="function"?un=Mr:un=ir(mr),xr.forEach(function(Fn){if("options"in Fn){var _t=un(Lr,Fn);if(_t)Xr.push(Fn);else{var Or=Fn.options.filter(function(Nr){return un(Lr,Nr)});Or.length&&Xr.push(Object(S.a)(Object(S.a)({},Fn),{},{options:Or}))}return}un(Lr,rt(Fn))&&Xr.push(Fn)}),Xr)}function Xt(Lr,xr){if(!xr||!xr.length)return null;var Tn=!1;function mr(Xr,un){var Fn=Object(Be.a)(un),_t=Fn[0],Or=Fn.slice(1);if(!_t)return[Xr];var Nr=Xr.split(_t);return Tn=Tn||Nr.length>1,Nr.reduce(function(tn,xn){return[].concat(Object(g.a)(tn),Object(g.a)(mr(xn,Or)))},[]).filter(function(tn){return tn})}var Mr=mr(Lr,xr);return Tn?Mr:null}function hr(Lr,xr){var Tn=xt([Lr],xr)[0];return Tn.disabled}function Jt(Lr,xr,Tn,mr){var Mr=K(xr).slice().sort(),Xr=Object(g.a)(Lr),un=new Set;return Lr.forEach(function(Fn){Fn.options?Fn.options.forEach(function(_t){un.add(_t.value)}):un.add(Fn.value)}),Mr.forEach(function(Fn){var _t=mr?Fn.value:Fn;if(!un.has(_t)){var Or;Xr.push(mr?(Or={},Object(E.a)(Or,Tn,Fn.label),Object(E.a)(Or,"value",_t),Or):{value:_t})}}),Xr}function Pt(Lr,xr,Tn){var mr=e.useRef(null);mr.current={elements:Lr.filter(function(Mr){return Mr}),open:xr,triggerOpen:Tn},e.useEffect(function(){function Mr(Xr){var un=Xr.target;mr.current.open&&mr.current.elements.every(function(Fn){return!Fn.contains(un)&&Fn!==un})&&mr.current.triggerOpen(!1)}return window.addEventListener("mousedown",Mr),function(){return window.removeEventListener("mousedown",Mr)}},[])}function Wt(Lr){var xr=e.useRef(Lr),Tn=e.useMemo(function(){var mr=new Map;xr.current.forEach(function(Xr){var un=Xr.value,Fn=Xr.label;un!==Fn&&mr.set(un,Fn)});var Mr=Lr.map(function(Xr){var un=mr.get(Xr.value);return Xr.value===Xr.label&&un?Object(S.a)(Object(S.a)({},Xr),{},{label:un}):Xr});return xr.current=Mr,Mr},[Lr]);return Tn}function Ge(Lr,xr){var Tn=e.useRef(null),mr=e.useMemo(function(){var Xr=new Map;return xr.forEach(function(un){var Fn=un.data.value;Xr.set(Fn,un)}),Xr},[Lr,xr]);Tn.current=mr;var Mr=function(un){return un.map(function(Fn){return Tn.current.get(Fn)}).filter(Boolean)};return Mr}var pe=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function se(Lr){var xr=Lr.prefixCls,Tn=Lr.components.optionList,mr=Lr.convertChildrenToData,Mr=Lr.flattenOptions,Xr=Lr.getLabeledValue,un=Lr.filterOptions,Fn=Lr.isValueDisabled,_t=Lr.findValueOption,Or=Lr.warningProps,Nr=Lr.fillOptionsWithMissingValue,tn=Lr.omitDOMProps;function xn(Sn,qn){var Wn,pi=Sn.prefixCls,Pi=pi===void 0?xr:pi,bi=Sn.className,Ii=Sn.id,zi=Sn.open,ea=Sn.defaultOpen,Xi=Sn.options,Wi=Sn.children,ji=Sn.mode,Ji=Sn.value,ca=Sn.defaultValue,Ca=Sn.labelInValue,na=Sn.showSearch,Pa=Sn.inputValue,La=Sn.searchValue,va=Sn.filterOption,ga=Sn.filterSort,Oa=Sn.optionFilterProp,Aa=Oa===void 0?"value":Oa,Xa=Sn.autoClearSearchValue,_a=Xa===void 0?!0:Xa,Va=Sn.onSearch,Fi=Sn.allowClear,io=Sn.clearIcon,oo=Sn.showArrow,Qo=Sn.inputIcon,mo=Sn.menuItemSelectedIcon,To=Sn.disabled,ao=Sn.loading,So=Sn.defaultActiveFirstOption,bo=Sn.notFoundContent,to=bo===void 0?"Not Found":bo,Jo=Sn.optionLabelProp,Uo=Sn.backfill,wo=Sn.getInputElement,ts=Sn.getPopupContainer,Ia=Sn.listHeight,Oo=Ia===void 0?200:Ia,Io=Sn.listItemHeight,os=Io===void 0?20:Io,xo=Sn.animation,rs=Sn.transitionName,Ho=Sn.virtual,_o=Sn.dropdownStyle,uo=Sn.dropdownClassName,Ha=Sn.dropdownMatchSelectWidth,mt=Sn.dropdownRender,Tr=Sn.dropdownAlign,en=Sn.showAction,Jr=en===void 0?[]:en,Jn=Sn.direction,fn=Sn.tokenSeparators,Yr=Sn.tagRender,ni=Sn.onPopupScroll,nn=Sn.onDropdownVisibleChange,zn=Sn.onFocus,li=Sn.onBlur,ci=Sn.onKeyUp,si=Sn.onKeyDown,Ci=Sn.onMouseDown,mi=Sn.onChange,Ai=Sn.onSelect,Ni=Sn.onDeselect,ia=Sn.onClear,Ki=Sn.internalProps,fa=Ki===void 0?{}:Ki,Ya=Object(C.a)(Sn,["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===be,wa=tn?tn(Ya):Ya;pe.forEach(function(jo){delete wa[jo]});var Da=Object(e.useRef)(null),ja=Object(e.useRef)(null),ko=Object(e.useRef)(null),ro=Object(e.useRef)(null),pa=Object(e.useMemo)(function(){return(fn||[]).some(function(jo){return[`
`,`\r
`].includes(jo)})},[fn]),Ea=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=Ii||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(qn,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],wn=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=mr(Wi)),ji==="tags"&&Nr&&(jo=Nr(jo,Fo,Ko,Ca)),jo||[]},[Xi,Wi,ji,Fo]),Qs=Object(e.useMemo)(function(){return Mr(ks,Sn)},[ks]),tl=Ge(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 Mr(xs,Sn)},[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=Xr(yo,{options:qo,prevValue:Fo,labelInValue:as,optionLabelProp:Ko});return Object(S.a)(Object(S.a)({},ps),{},{disabled:Fn(yo,qo)})});return!ji&&jo.length===1&&jo[0].value===null&&jo[0].label===null?[]:jo},[Fo,ks,ji]);al=Wt(al);var Js=function(yo,qo,ps){var Is=tl([yo]),es=_t([yo],Is)[0];if(!fa.skipTriggerSelect){var Ls=as?Xr(yo,{options:Is,prevValue:Fo,labelInValue:as,optionLabelProp:Ko}):yo;qo&&Ai?Ai(Ls,es):!qo&&Ni&&Ni(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:Xr,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(S.a)({},Ls);return Object.defineProperty(ml,"_INTERNAL_OPTION_VALUE_",{get:function(){return yo[Ps]}}),ml})),mi(Is,co?es:es[0])}il(Is)},Ut=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)),wn("")):(!co||_a)&&(Gs(""),wn(""))},or=function(yo,qo){Ut(yo,Object(S.a)(Object(S.a)({},qo),{},{source:"option"}))},Nn=function(yo,qo){Ut(yo,Object(S.a)(Object(S.a)({},qo),{},{source:"selection"}))},hi=ji==="combobox"&&wo&&wo()||null,Nt=Object(O.a)(void 0,{defaultValue:ea,value:zi}),ce=Object(b.a)(Nt,2),xe=ce[0],Oe=ce[1],Qe=xe,Dt=!to&&!xs.length;(To||Dt&&Qe&&ji==="combobox")&&(Qe=!1);var lr=Dt?!1:Qe,Zr=function(yo){var qo=yo!==void 0?yo:!Qe;xe!==qo&&!To&&(Oe(qo),nn&&nn(qo))};Pt([Da.current,ja.current&&ja.current.getPopupElement()],lr,Zr);var mn=function(yo,qo,ps){var Is=!0,es=yo;wn(null);var Ls=ps?null:Xt(yo,fn),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")}),Zr(!1),Is=!1}return Gs(es),Va&&ds!==es&&Va(es),Is},Dn=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&&Oe(!1)},[To]),Object(e.useEffect)(function(){!Qe&&!co&&ji!=="combobox"&&mn("",!1,!1)},[Qe]);var ui=ut(),Si=Object(b.a)(ui,2),vi=Si[0],Qi=Si[1],sa=function(yo){var qo=vi(),ps=yo.which;if(!Qe&&ps===_.a.ENTER&&Zr(!0),Qi(!!ds),ps===_.a.BACKSPACE&&!qo&&co&&!ds&&Eo.length){var Is=Q(al,Eo);Is.removedValue!==null&&(go(Is.values),Js(Is.removedValue,!1,"input"))}for(var es=arguments.length,Ls=new Array(es>1?es-1:0),Ps=1;Ps<es;Ps++)Ls[Ps-1]=arguments[Ps];if(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||(zn&&!no.current&&zn.apply(void 0,arguments),Jr.includes("focus")&&Zr(!0)),no.current=!0},Zo=function(){if(lo(!1,function(){no.current=!1,Zr(!1)}),To)return;ds&&(ji==="tags"?(mn("",!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(Ci){for(var es=arguments.length,Ls=new Array(es>1?es-1:0),Ps=1;Ps<es;Ps++)Ls[Ps-1]=arguments[Ps];Ci.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"&&wn(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(lr){var jo=Math.ceil(Da.current.offsetWidth);dl!==jo&&fl(jo)}},[lr]);var Ul=e.createElement(Tn,{ref:ro,prefixCls:Pi,id:Rs,open:Qe,childrenAsData:!Xi,options:xs,flattenOptions:Bs,multiple:co,values:zo,height:Oo,itemHeight:os,onSelect:or,onToggleOpen:Zr,onActiveValue:rl,defaultActiveFirstOption:Ms,notFoundContent:to,onScroll:ni,searchValue:ds,menuItemSelectedIcon:mo,virtual:Ho!==!1&&Ha!==!1,onMouseEnter:Ql}),wl,Ts=function(){xa&&fa.onClear&&fa.onClear(),ia&&ia(),go([]),mn("",!1,!1)};!To&&Fi&&(Eo.length||ds)&&(wl=e.createElement(B,{className:"".concat(Pi,"-clear"),onMouseDown:Ts,customizeIcon:io},"\xD7"));var Ws=oo!==void 0?oo:ao||!co&&ji!=="combobox",Tl;Ws&&(Tl=e.createElement(B,{className:w()("".concat(Pi,"-arrow"),Object(E.a)({},"".concat(Pi,"-arrow-loading"),ao)),customizeIcon:Qo,customizeIconProps:{loading:ao,searchValue:ds,open:Qe,focused:Ka,showSearch:Ao}}));var pl=w()(Pi,bi,(Wn={},Object(E.a)(Wn,"".concat(Pi,"-focused"),Ka),Object(E.a)(Wn,"".concat(Pi,"-multiple"),co),Object(E.a)(Wn,"".concat(Pi,"-single"),!co),Object(E.a)(Wn,"".concat(Pi,"-allow-clear"),Fi),Object(E.a)(Wn,"".concat(Pi,"-show-arrow"),Ws),Object(E.a)(Wn,"".concat(Pi,"-disabled"),To),Object(E.a)(Wn,"".concat(Pi,"-loading"),ao),Object(E.a)(Wn,"".concat(Pi,"-open"),Qe),Object(E.a)(Wn,"".concat(Pi,"-customize-input"),hi),Object(E.a)(Wn,"".concat(Pi,"-show-search"),Ao),Wn));return e.createElement("div",Object.assign({className:pl},wa,{ref:Da,onMouseDown:Es,onKeyDown:sa,onKeyUp:Ua,onFocus:Wo,onBlur:Zo}),Ka&&!Qe&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Eo.join(", "))),e.createElement(de,{ref:ja,disabled:To,prefixCls:Pi,visible:lr,popupElement:Ul,containerWidth:dl,animation:xo,transitionName:rs,dropdownStyle:_o,dropdownClassName:uo,direction:Jn,dropdownMatchSelectWidth:Ha,dropdownRender:mt,dropdownAlign:Tr,getPopupContainer:ts,empty:!ks.length,getTriggerDOMNode:function(){return $a.current}},e.createElement(at,Object.assign({},Sn,{domRef:$a,prefixCls:Pi,inputElement:hi,ref:ko,id:Rs,showSearch:Ao,mode:ji,accessibilityIndex:Do,multiple:co,tagRender:Yr,values:al,open:Qe,onToggleOpen:Zr,searchValue:ds,activeValue:hs,onSearch:mn,onSearchSubmit:Dn,onSelect:Nn,tokenWithEnter:pa}))),Tl,wl)}var Ln=e.forwardRef(xn);return Ln}var lt=n("Zm9Q"),qe=n("JX7q"),me=e.createContext(null),Ht=function(xr){var Tn=xr.prefixCls,mr=xr.level,Mr=xr.isStart,Xr=xr.isEnd;if(!mr)return null;for(var un="".concat(Tn,"-indent-unit"),Fn=[],_t=0;_t<mr;_t+=1){var Or;Fn.push(e.createElement("span",{key:_t,className:w()(un,(Or={},Object(E.a)(Or,"".concat(un,"-start"),Mr[_t]),Object(E.a)(Or,"".concat(un,"-end"),Xr[_t]),Or))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(Tn,"-indent")},Fn)},yr=Ht,At="open",rr="close",ur="---",vn=function(Lr){Object(c.a)(Tn,Lr);var xr=Object(h.a)(Tn);function Tn(){var mr;return Object(r.a)(this,Tn),mr=xr.apply(this,arguments),mr.state={dragNodeHighlight:!1},mr.onSelectorClick=function(Mr){var Xr=mr.props.context.onNodeClick;Xr(Mr,Ft(mr.props)),mr.isSelectable()?mr.onSelect(Mr):mr.onCheck(Mr)},mr.onSelectorDoubleClick=function(Mr){var Xr=mr.props.context.onNodeDoubleClick;Xr(Mr,Ft(mr.props))},mr.onSelect=function(Mr){if(mr.isDisabled())return;var Xr=mr.props.context.onNodeSelect;Mr.preventDefault(),Xr(Mr,Ft(mr.props))},mr.onCheck=function(Mr){if(mr.isDisabled())return;var Xr=mr.props,un=Xr.disableCheckbox,Fn=Xr.checked,_t=mr.props.context.onNodeCheck;if(!mr.isCheckable()||un)return;Mr.preventDefault();var Or=!Fn;_t(Mr,Ft(mr.props),Or)},mr.onMouseEnter=function(Mr){var Xr=mr.props.context.onNodeMouseEnter;Xr(Mr,Ft(mr.props))},mr.onMouseLeave=function(Mr){var Xr=mr.props.context.onNodeMouseLeave;Xr(Mr,Ft(mr.props))},mr.onContextMenu=function(Mr){var Xr=mr.props.context.onNodeContextMenu;Xr(Mr,Ft(mr.props))},mr.onDragStart=function(Mr){var Xr=mr.props.context.onNodeDragStart;Mr.stopPropagation(),mr.setState({dragNodeHighlight:!0}),Xr(Mr,Object(qe.a)(mr));try{Mr.dataTransfer.setData("text/plain","")}catch(un){}},mr.onDragEnter=function(Mr){var Xr=mr.props.context.onNodeDragEnter;Mr.preventDefault(),Mr.stopPropagation(),Xr(Mr,Object(qe.a)(mr))},mr.onDragOver=function(Mr){var Xr=mr.props.context.onNodeDragOver;Mr.preventDefault(),Mr.stopPropagation(),Xr(Mr,Object(qe.a)(mr))},mr.onDragLeave=function(Mr){var Xr=mr.props.context.onNodeDragLeave;Mr.stopPropagation(),Xr(Mr,Object(qe.a)(mr))},mr.onDragEnd=function(Mr){var Xr=mr.props.context.onNodeDragEnd;Mr.stopPropagation(),mr.setState({dragNodeHighlight:!1}),Xr(Mr,Object(qe.a)(mr))},mr.onDrop=function(Mr){var Xr=mr.props.context.onNodeDrop;Mr.preventDefault(),Mr.stopPropagation(),mr.setState({dragNodeHighlight:!1}),Xr(Mr,Object(qe.a)(mr))},mr.onExpand=function(Mr){var Xr=mr.props.context.onNodeExpand;Xr(Mr,Ft(mr.props))},mr.setSelectHandle=function(Mr){mr.selectHandle=Mr},mr.getNodeState=function(){var Mr=mr.props.expanded;return mr.isLeaf()?null:Mr?At:rr},mr.hasChildren=function(){var Mr=mr.props.eventKey,Xr=mr.props.context.keyEntities,un=Xr[Mr]||{},Fn=un.children;return!!(Fn||[]).length},mr.isLeaf=function(){var Mr=mr.props,Xr=Mr.isLeaf,un=Mr.loaded,Fn=mr.props.context.loadData,_t=mr.hasChildren();return Xr===!1?!1:Xr||!Fn&&!_t||Fn&&un&&!_t},mr.isDisabled=function(){var Mr=mr.props.disabled,Xr=mr.props.context.disabled;return!!(Xr||Mr)},mr.isCheckable=function(){var Mr=mr.props.checkable,Xr=mr.props.context.checkable;return!Xr||Mr===!1?!1:Xr},mr.syncLoadData=function(Mr){var Xr=Mr.expanded,un=Mr.loading,Fn=Mr.loaded,_t=mr.props.context,Or=_t.loadData,Nr=_t.onNodeLoad;if(un)return;Or&&Xr&&!mr.isLeaf()&&(!mr.hasChildren()&&!Fn&&Nr(Ft(mr.props)))},mr.renderSwitcher=function(){var Mr=mr.props,Xr=Mr.expanded,un=Mr.switcherIcon,Fn=mr.props.context,_t=Fn.prefixCls,Or=Fn.switcherIcon,Nr=un||Or;if(mr.isLeaf())return e.createElement("span",{className:w()("".concat(_t,"-switcher"),"".concat(_t,"-switcher-noop"))},typeof Nr=="function"?Nr(Object(S.a)(Object(S.a)({},mr.props),{},{isLeaf:!0})):Nr);var tn=w()("".concat(_t,"-switcher"),"".concat(_t,"-switcher_").concat(Xr?At:rr));return e.createElement("span",{onClick:mr.onExpand,className:tn},typeof Nr=="function"?Nr(Object(S.a)(Object(S.a)({},mr.props),{},{isLeaf:!1})):Nr)},mr.renderCheckbox=function(){var Mr=mr.props,Xr=Mr.checked,un=Mr.halfChecked,Fn=Mr.disableCheckbox,_t=mr.props.context.prefixCls,Or=mr.isDisabled(),Nr=mr.isCheckable();if(!Nr)return null;var tn=typeof Nr!="boolean"?Nr:null;return e.createElement("span",{className:w()("".concat(_t,"-checkbox"),Xr&&"".concat(_t,"-checkbox-checked"),!Xr&&un&&"".concat(_t,"-checkbox-indeterminate"),(Or||Fn)&&"".concat(_t,"-checkbox-disabled")),onClick:mr.onCheck},tn)},mr.renderIcon=function(){var Mr=mr.props.loading,Xr=mr.props.context.prefixCls;return e.createElement("span",{className:w()("".concat(Xr,"-iconEle"),"".concat(Xr,"-icon__").concat(mr.getNodeState()||"docu"),Mr&&"".concat(Xr,"-icon_loading"))})},mr.renderSelector=function(){var Mr=mr.state.dragNodeHighlight,Xr=mr.props,un=Xr.title,Fn=Xr.selected,_t=Xr.icon,Or=Xr.loading,Nr=Xr.data,tn=mr.props.context,xn=tn.prefixCls,Ln=tn.showIcon,Sn=tn.icon,qn=tn.draggable,Wn=tn.loadData,pi=tn.titleRender,Pi=mr.isDisabled(),bi="".concat(xn,"-node-content-wrapper"),Ii;if(Ln){var zi=_t||Sn;Ii=zi?e.createElement("span",{className:w()("".concat(xn,"-iconEle"),"".concat(xn,"-icon__customize"))},typeof zi=="function"?zi(mr.props):zi):mr.renderIcon()}else Wn&&Or&&(Ii=mr.renderIcon());var ea;typeof un=="function"?ea=un(Nr):pi?ea=pi(Nr):ea=un;var Xi=e.createElement("span",{className:"".concat(xn,"-title")},ea);return e.createElement("span",{ref:mr.setSelectHandle,title:typeof un=="string"?un:"",className:w()("".concat(bi),"".concat(bi,"-").concat(mr.getNodeState()||"normal"),!Pi&&(Fn||Mr)&&"".concat(xn,"-node-selected"),!Pi&&qn&&"draggable"),draggable:!Pi&&qn||void 0,"aria-grabbed":!Pi&&qn||void 0,onMouseEnter:mr.onMouseEnter,onMouseLeave:mr.onMouseLeave,onContextMenu:mr.onContextMenu,onClick:mr.onSelectorClick,onDoubleClick:mr.onSelectorDoubleClick,onDragStart:qn?mr.onDragStart:void 0},Ii,Xi)},mr}return Object(a.a)(Tn,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Mr=this.props.selectable,Xr=this.props.context.selectable;return typeof Mr=="boolean"?Mr:Xr}},{key:"render",value:function(){var Mr,Xr=this.props,un=Xr.eventKey,Fn=Xr.className,_t=Xr.style,Or=Xr.dragOver,Nr=Xr.dragOverGapTop,tn=Xr.dragOverGapBottom,xn=Xr.isLeaf,Ln=Xr.isStart,Sn=Xr.isEnd,qn=Xr.expanded,Wn=Xr.selected,pi=Xr.checked,Pi=Xr.halfChecked,bi=Xr.loading,Ii=Xr.domRef,zi=Xr.active,ea=Xr.onMouseMove,Xi=Object(C.a)(Xr,["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=Pe(Xi),La=Ca[un]||{},va=La.level,ga=Sn[Sn.length-1];return e.createElement("div",Object.assign({ref:Ii,className:w()(Fn,"".concat(ji,"-treenode"),(Mr={},Object(E.a)(Mr,"".concat(ji,"-treenode-disabled"),na),Object(E.a)(Mr,"".concat(ji,"-treenode-switcher-").concat(qn?"open":"close"),!xn),Object(E.a)(Mr,"".concat(ji,"-treenode-checkbox-checked"),pi),Object(E.a)(Mr,"".concat(ji,"-treenode-checkbox-indeterminate"),Pi),Object(E.a)(Mr,"".concat(ji,"-treenode-selected"),Wn),Object(E.a)(Mr,"".concat(ji,"-treenode-loading"),bi),Object(E.a)(Mr,"".concat(ji,"-treenode-active"),zi),Object(E.a)(Mr,"".concat(ji,"-treenode-leaf-last"),ga),Object(E.a)(Mr,"drag-over",!na&&Or),Object(E.a)(Mr,"drag-over-gap-top",!na&&Nr),Object(E.a)(Mr,"drag-over-gap-bottom",!na&&tn),Object(E.a)(Mr,"filter-node",Ji&&Ji(Ft(this.props))),Mr)),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(yr,{prefixCls:ji,level:va,isStart:Ln,isEnd:Sn}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Tn}(e.Component),Bt=function(xr){return e.createElement(me.Consumer,null,function(Tn){return e.createElement(vn,Object.assign({},xr,{context:Tn}))})};Bt.displayName="TreeNode",Bt.defaultProps={title:ur},Bt.isTreeNode=1;var sr=Bt,Yt=.25,pt=2;function it(Lr,xr){var Tn=Lr.slice(),mr=Tn.indexOf(xr);return mr>=0&&Tn.splice(mr,1),Tn}function Fr(Lr,xr){var Tn=Lr.slice();return Tn.indexOf(xr)===-1&&Tn.push(xr),Tn}function cn(Lr){return Lr.split("-")}function _n(Lr,xr){return"".concat(Lr,"-").concat(xr)}function Kn(Lr){return Lr&&Lr.type&&Lr.type.isTreeNode}function gi(Lr,xr){var Tn=[Lr],mr=xr[Lr];function Mr(){var Xr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Xr.forEach(function(un){var Fn=un.key,_t=un.children;Tn.push(Fn),Mr(_t)})}return Mr(mr.children),Tn}function Mn(Lr,xr){var Tn=Lr.clientY,mr=xr.selectHandle.getBoundingClientRect(),Mr=mr.top,Xr=mr.bottom,un=mr.height,Fn=Math.max(un*Yt,pt);return Tn<=Mr+Fn?-1:Tn>=Xr-Fn?1:0}function Un(Lr,xr){if(!Lr)return;var Tn=xr.multiple;return Tn?Lr.slice():Lr.length?[Lr[0]]:Lr}var $t=function(xr){return xr};function Ct(Lr,xr){if(!Lr)return[];var Tn=xr||{},mr=Tn.processProps,Mr=mr===void 0?$t:mr,Xr=Array.isArray(Lr)?Lr:[Lr];return Xr.map(function(un){var Fn=un.children,_t=Object(C.a)(un,["children"]),Or=Ct(Fn,xr);return l.a.createElement(sr,Object.assign({},Mr(_t)),Or)})}function Re(Lr){if(!Lr)return null;var xr;if(Array.isArray(Lr))xr={checkedKeys:Lr,halfCheckedKeys:void 0};else if(Object(A.a)(Lr)==="object")xr={checkedKeys:Lr.checked||void 0,halfCheckedKeys:Lr.halfChecked||void 0};else return Object(fe.a)(!1,"`checkedKeys` is not an array or an object"),null;return xr}function De(Lr,xr){var Tn=new Set;function mr(Mr){if(Tn.has(Mr))return;var Xr=xr[Mr];if(!Xr)return;Tn.add(Mr);var un=Xr.parent,Fn=Xr.node;if(Fn.disabled)return;un&&mr(un.key)}return(Lr||[]).forEach(function(Mr){mr(Mr)}),Object(g.a)(Tn)}function Pe(Lr){var xr={};return Object.keys(Lr).forEach(function(Tn){(Tn.startsWith("data-")||Tn.startsWith("aria-"))&&(xr[Tn]=Lr[Tn])}),xr}function et(Lr,xr){return Lr!=null?Lr:xr}function yt(){var Lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],xr=new Map;function Tn(mr){var Mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(mr||[]).forEach(function(Xr){var un=Xr.key,Fn=Xr.children;Object(fe.a)(un!=null,"Tree node must have a certain key: [".concat(Mr).concat(un,"]"));var _t=String(un);Object(fe.a)(!xr.has(_t)||un===null||un===void 0,"Same 'key' exist in the Tree: ".concat(_t)),xr.set(_t,!0),Tn(Fn,"".concat(Mr).concat(_t," > "))})}Tn(Lr)}function St(Lr){function xr(Tn){var mr=Object(lt.a)(Tn);return mr.map(function(Mr){if(!Kn(Mr))return Object(fe.a)(!Mr,"Tree/TreeNode can only accept TreeNode as children."),null;var Xr=Mr.key,un=Mr.props,Fn=un.children,_t=Object(C.a)(un,["children"]),Or=Object(S.a)({key:Xr},_t),Nr=xr(Fn);return Nr.length&&(Or.children=Nr),Or}).filter(function(Mr){return Mr})}return xr(Lr)}function Vt(){var Lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Tn=new Set(xr===!0?[]:xr),mr=[];function Mr(Xr){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Xr.map(function(Fn,_t){var Or=_n(un?un.pos:"0",_t),Nr=et(Fn.key,Or),tn=Object(S.a)(Object(S.a)({},Fn),{},{parent:un,pos:Or,children:null,data:Fn,isStart:[].concat(Object(g.a)(un?un.isStart:[]),[_t===0]),isEnd:[].concat(Object(g.a)(un?un.isEnd:[]),[_t===Xr.length-1])});return mr.push(tn),xr===!0||Tn.has(Nr)?tn.children=Mr(Fn.children||[],tn):tn.children=[],tn})}return Mr(Lr),mr}function Rr(Lr,xr,Tn){var mr;Tn?typeof Tn=="string"?mr=function(un){return un[Tn]}:typeof Tn=="function"&&(mr=function(un){return Tn(un)}):mr=function(un,Fn){return et(un.key,Fn)};function Mr(Xr,un,Fn){var _t=Xr?Xr.children:Lr,Or=Xr?_n(Fn.pos,un):"0";if(Xr){var Nr=mr(Xr,Or),tn={node:Xr,index:un,pos:Or,key:Nr,parentPos:Fn.node?Fn.pos:null,level:Fn.level+1};xr(tn)}_t&&_t.forEach(function(xn,Ln){Mr(xn,Ln,{node:Xr,pos:Or,level:Fn?Fn.level+1:-1})})}Mr(null)}function Vr(Lr){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Tn=xr.initWrapper,mr=xr.processEntity,Mr=xr.onProcessFinished,Xr=arguments.length>2?arguments[2]:void 0,un={},Fn={},_t={posEntities:un,keyEntities:Fn};return Tn&&(_t=Tn(_t)||_t),Rr(Lr,function(Or){var Nr=Or.node,tn=Or.index,xn=Or.pos,Ln=Or.key,Sn=Or.parentPos,qn=Or.level,Wn={node:Nr,index:tn,key:Ln,pos:xn,level:qn},pi=et(Ln,xn);un[xn]=Wn,Fn[pi]=Wn,Wn.parent=un[Sn],Wn.parent&&(Wn.parent.children=Wn.parent.children||[],Wn.parent.children.push(Wn)),mr&&mr(Wn,_t)},Xr),Mr&&Mr(_t),_t}function hn(Lr,xr){var Tn=xr.expandedKeys,mr=xr.selectedKeys,Mr=xr.loadedKeys,Xr=xr.loadingKeys,un=xr.checkedKeys,Fn=xr.halfCheckedKeys,_t=xr.dragOverNodeKey,Or=xr.dropPosition,Nr=xr.keyEntities,tn=Nr[Lr],xn={eventKey:Lr,expanded:Tn.indexOf(Lr)!==-1,selected:mr.indexOf(Lr)!==-1,loaded:Mr.indexOf(Lr)!==-1,loading:Xr.indexOf(Lr)!==-1,checked:un.indexOf(Lr)!==-1,halfChecked:Fn.indexOf(Lr)!==-1,pos:String(tn?tn.pos:""),dragOver:_t===Lr&&Or===0,dragOverGapTop:_t===Lr&&Or===-1,dragOverGapBottom:_t===Lr&&Or===1};return xn}function Ft(Lr){var xr=Lr.data,Tn=Lr.expanded,mr=Lr.selected,Mr=Lr.checked,Xr=Lr.loaded,un=Lr.loading,Fn=Lr.halfChecked,_t=Lr.dragOver,Or=Lr.dragOverGapTop,Nr=Lr.dragOverGapBottom,tn=Lr.pos,xn=Lr.active,Ln=Object(S.a)(Object(S.a)({},xr),{},{expanded:Tn,selected:mr,checked:Mr,loaded:Xr,loading:un,halfChecked:Fn,dragOver:_t,dragOverGapTop:Or,dragOverGapBottom:Nr,pos:tn,active:xn});return"props"in Ln||Object.defineProperty(Ln,"props",{get:function(){return Object(fe.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Lr}}),Ln}function vt(Lr,xr){var Tn=new Set;return Lr.forEach(function(mr){xr.has(mr)||Tn.add(mr)}),Tn}function bt(Lr){var xr=Lr||{},Tn=xr.disabled,mr=xr.disableCheckbox,Mr=xr.checkable;return!!(Tn||mr)||Mr===!1}function fr(Lr,xr,Tn,mr){for(var Mr=new Set(Lr),Xr=new Set,un=0;un<=Tn;un+=1){var Fn=xr.get(un)||new Set;Fn.forEach(function(tn){var xn=tn.key,Ln=tn.node,Sn=tn.children,qn=Sn===void 0?[]:Sn;Mr.has(xn)&&!mr(Ln)&&qn.filter(function(Wn){return!mr(Wn.node)}).forEach(function(Wn){Mr.add(Wn.key)})})}for(var _t=new Set,Or=Tn;Or>=0;Or-=1){var Nr=xr.get(Or)||new Set;Nr.forEach(function(tn){var xn=tn.parent,Ln=tn.node;if(mr(Ln)||!tn.parent||_t.has(tn.parent.key))return;if(mr(tn.parent.node)){_t.add(xn.key);return}var Sn=!0,qn=!1;(xn.children||[]).filter(function(Wn){return!mr(Wn.node)}).forEach(function(Wn){var pi=Wn.key,Pi=Mr.has(pi);Sn&&!Pi&&(Sn=!1),!qn&&(Pi||Xr.has(pi))&&(qn=!0)}),Sn&&Mr.add(xn.key),qn&&Xr.add(xn.key),_t.add(xn.key)})}return{checkedKeys:Array.from(Mr),halfCheckedKeys:Array.from(vt(Xr,Mr))}}function Qt(Lr,xr,Tn,mr,Mr){for(var Xr=new Set(Lr),un=new Set(xr),Fn=0;Fn<=mr;Fn+=1){var _t=Tn.get(Fn)||new Set;_t.forEach(function(xn){var Ln=xn.key,Sn=xn.node,qn=xn.children,Wn=qn===void 0?[]:qn;!Xr.has(Ln)&&!un.has(Ln)&&!Mr(Sn)&&Wn.filter(function(pi){return!Mr(pi.node)}).forEach(function(pi){Xr.delete(pi.key)})})}un=new Set;for(var Or=new Set,Nr=mr;Nr>=0;Nr-=1){var tn=Tn.get(Nr)||new Set;tn.forEach(function(xn){var Ln=xn.parent,Sn=xn.node;if(Mr(Sn)||!xn.parent||Or.has(xn.parent.key))return;if(Mr(xn.parent.node)){Or.add(Ln.key);return}var qn=!0,Wn=!1;(Ln.children||[]).filter(function(pi){return!Mr(pi.node)}).forEach(function(pi){var Pi=pi.key,bi=Xr.has(Pi);qn&&!bi&&(qn=!1),!Wn&&(bi||un.has(Pi))&&(Wn=!0)}),qn||Xr.delete(Ln.key),Wn&&un.add(Ln.key),Or.add(Ln.key)})}return{checkedKeys:Array.from(Xr),halfCheckedKeys:Array.from(vt(un,Xr))}}function Mt(Lr,xr,Tn,mr){var Mr=[],Xr;mr?Xr=mr:Xr=bt;var un=new Set(Lr.filter(function(Nr){var tn=!!Tn[Nr];return tn||Mr.push(Nr),tn})),Fn=new Map,_t=0;Object.keys(Tn).forEach(function(Nr){var tn=Tn[Nr],xn=tn.level,Ln=Fn.get(xn);Ln||(Ln=new Set,Fn.set(xn,Ln)),Ln.add(tn),_t=Math.max(_t,xn)}),Object(fe.a)(!Mr.length,"Tree missing follow keys: ".concat(Mr.slice(0,100).map(function(Nr){return"'".concat(Nr,"'")}).join(", ")));var Or;return xr===!0?Or=fr(un,Fn,_t,Xr):Or=Qt(un,xr.halfCheckedKeys,Fn,_t,Xr),Or}var qt=n("YrtM"),kt=n("+nKL"),er=function(xr,Tn){var mr=xr.className,Mr=xr.style,Xr=xr.motion,un=xr.motionNodes,Fn=xr.motionType,_t=xr.onMotionStart,Or=xr.onMotionEnd,Nr=xr.active,tn=xr.treeNodeRequiredProps,xn=Object(C.a)(xr,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),Ln=e.useState(!0),Sn=Object(b.a)(Ln,2),qn=Sn[0],Wn=Sn[1],pi=e.useContext(me),Pi=pi.prefixCls,bi=e.useRef(!1),Ii=function(){bi.current||Or(),bi.current=!0};return Object(e.useEffect)(function(){un&&Fn==="hide"&&qn&&Wn(!1)},[un]),Object(e.useEffect)(function(){return un&&_t(),function(){un&&Ii()}},[]),un?e.createElement(R.b,Object.assign({ref:Tn,visible:qn},Xr,{motionAppear:Fn==="show",onAppearEnd:Ii,onLeaveEnd:Ii}),function(zi,ea){var Xi=zi.className,Wi=zi.style;return e.createElement("div",{ref:ea,className:w()("".concat(Pi,"-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=hn(ca,tn);return e.createElement(sr,Object.assign({},Ca,La,{active:Nr,data:ji.data,key:ca,isStart:na,isEnd:Pa}))}))}):e.createElement(sr,Object.assign({domRef:Tn,className:mr,style:Mr},xn,{active:Nr}))};er.displayName="MotionTreeNode";var Kr=e.forwardRef(er),Ir=Kr;function Dr(){var Lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Tn=Lr.length,mr=xr.length;if(Math.abs(Tn-mr)!==1)return{add:!1,key:null};function Mr(Xr,un){var Fn=new Map;Xr.forEach(function(Or){Fn.set(Or,!0)});var _t=un.filter(function(Or){return!Fn.has(Or)});return _t.length===1?_t[0]:null}return Tn<mr?{add:!0,key:Mr(Lr,xr)}:{add:!1,key:Mr(xr,Lr)}}function dn(Lr,xr,Tn){var mr=Lr.findIndex(function(Fn){var _t=Fn.data;return _t.key===Tn}),Mr=Lr[mr+1],Xr=xr.findIndex(function(Fn){var _t=Fn.data;return _t.key===Tn});if(Mr){var un=xr.findIndex(function(Fn){var _t=Fn.data;return _t.key===Mr.data.key});return xr.slice(Xr+1,un)}return xr.slice(Xr+1)}var yn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ti=function(){},ei="RC_TREE_MOTION_".concat(Math.random()),fi={key:ei},Ei={key:ei,level:0,index:0,pos:"0",node:fi},Di={parent:null,children:[],pos:Ei.pos,data:fi,isStart:[],isEnd:[]};function Hi(Lr,xr,Tn,mr){return xr===!1||!Tn?Lr:Lr.slice(0,Math.ceil(Tn/mr)+1)}function nt(Lr){var xr=Lr.data.key,Tn=Lr.pos;return et(xr,Tn)}function Le(Lr){for(var xr=String(Lr.data.key),Tn=Lr;Tn.parent;)Tn=Tn.parent,xr="".concat(Tn.data.key," > ").concat(xr);return xr}var je=function(xr,Tn){var mr=xr.prefixCls,Mr=xr.data,Xr=xr.selectable,un=xr.checkable,Fn=xr.expandedKeys,_t=xr.selectedKeys,Or=xr.checkedKeys,Nr=xr.loadedKeys,tn=xr.loadingKeys,xn=xr.halfCheckedKeys,Ln=xr.keyEntities,Sn=xr.disabled,qn=xr.dragging,Wn=xr.dragOverNodeKey,pi=xr.dropPosition,Pi=xr.motion,bi=xr.height,Ii=xr.itemHeight,zi=xr.virtual,ea=xr.focusable,Xi=xr.activeItem,Wi=xr.focused,ji=xr.tabIndex,Ji=xr.onKeyDown,ca=xr.onFocus,Ca=xr.onBlur,na=xr.onActiveChange,Pa=xr.onListChangeStart,La=xr.onListChangeEnd,va=Object(C.a)(xr,["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(Tn,function(){return{scrollTo:function(rs){ga.current.scrollTo(rs)}}});var Oa=e.useState(Fn),Aa=Object(b.a)(Oa,2),Xa=Aa[0],_a=Aa[1],Va=e.useState(Mr),Fi=Object(b.a)(Va,2),io=Fi[0],oo=Fi[1],Qo=e.useState(Mr),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(Mr),ao(Mr),Jo([]),Ia(null),La()}e.useEffect(function(){_a(Fn);var xo=Dr(Xa,Fn);if(xo.key!==null)if(xo.add){var rs=io.findIndex(function(Tr){var en=Tr.data.key;return en===xo.key}),Ho=Hi(dn(io,Mr,xo.key),zi,bi,Ii),_o=io.slice();_o.splice(rs+1,0,Di),ao(_o),Jo(Ho),Ia("show")}else{var uo=Mr.findIndex(function(Tr){var en=Tr.data.key;return en===xo.key}),Ha=Hi(dn(Mr,io,xo.key),zi,bi,Ii),mt=Mr.slice();mt.splice(uo+1,0,Di),ao(mt),Jo(Ha),Ia("hide")}else io!==Mr&&(oo(Mr),ao(Mr))},[Fn,Mr]),e.useEffect(function(){qn||Oo()},[qn]);var Io=Pi?To:Mr,os={expandedKeys:Fn,selectedKeys:_t,loadedKeys:Nr,loadingKeys:tn,checkedKeys:Or,halfCheckedKeys:xn,dragOverNodeKey:Wn,dropPosition:pi,keyEntities:Ln};return e.createElement(e.Fragment,null,Wi&&Xi&&e.createElement("span",{style:yn,"aria-live":"assertive"},Le(Xi)),e.createElement("div",{role:"tree"},e.createElement("input",{style:yn,disabled:ea===!1||Sn,tabIndex:ea!==!1?ji:null,onKeyDown:Ji,onFocus:ca,onBlur:Ca,value:"",onChange:ti})),e.createElement(kt.a,Object.assign({},va,{data:Io,itemKey:nt,height:bi,fullHeight:!1,virtual:zi,itemHeight:Ii,prefixCls:"".concat(mr,"-list"),ref:ga}),function(xo){var rs=xo.pos,Ho=xo.data,_o=Ho.key,uo=Object(C.a)(Ho,["key"]),Ha=xo.isStart,mt=xo.isEnd,Tr=et(_o,rs);delete uo.children;var en=hn(Tr,os);return e.createElement(Ir,Object.assign({},uo,en,{active:Xi&&_o===Xi.data.key,pos:rs,data:xo.data,isStart:Ha,isEnd:mt,motion:Pi,motionNodes:_o===ei?to:null,motionType:ts,onMotionStart:Pa,onMotionEnd:Oo,treeNodeRequiredProps:os,onMouseMove:function(){na(null)}}))}))},Xe=e.forwardRef(je);Xe.displayName="NodeList";var tt=Xe,Ze=function(Lr){Object(c.a)(Tn,Lr);var xr=Object(h.a)(Tn);function Tn(){var mr;return Object(r.a)(this,Tn),mr=xr.apply(this,arguments),mr.destroyed=!1,mr.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},mr.listRef=e.createRef(),mr.onNodeDragStart=function(Mr,Xr){var un=mr.state,Fn=un.expandedKeys,_t=un.keyEntities,Or=mr.props.onDragStart,Nr=Xr.props.eventKey;mr.dragNode=Xr;var tn=it(Fn,Nr);mr.setState({dragging:!0,dragNodesKeys:gi(Nr,_t)}),mr.setExpandedKeys(tn),Or&&Or({event:Mr,node:Ft(Xr.props)})},mr.onNodeDragEnter=function(Mr,Xr){var un=mr.state,Fn=un.expandedKeys,_t=un.keyEntities,Or=un.dragNodesKeys,Nr=mr.props.onDragEnter,tn=Xr.props,xn=tn.pos,Ln=tn.eventKey;if(!mr.dragNode||Or.indexOf(Ln)!==-1)return;var Sn=Mn(Mr,Xr);if(mr.dragNode.props.eventKey===Ln&&Sn===0){mr.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){mr.setState({dragOverNodeKey:Ln,dropPosition:Sn}),mr.delayedDragEnterLogic||(mr.delayedDragEnterLogic={}),Object.keys(mr.delayedDragEnterLogic).forEach(function(qn){clearTimeout(mr.delayedDragEnterLogic[qn])}),mr.delayedDragEnterLogic[xn]=window.setTimeout(function(){if(!mr.state.dragging)return;var qn=Object(g.a)(Fn),Wn=_t[Ln];Wn&&(Wn.children||[]).length&&(qn=Fr(Fn,Ln)),"expandedKeys"in mr.props||mr.setExpandedKeys(qn),Nr&&Nr({event:Mr,node:Ft(Xr.props),expandedKeys:qn})},400)},0)},mr.onNodeDragOver=function(Mr,Xr){var un=mr.state.dragNodesKeys,Fn=mr.props.onDragOver,_t=Xr.props.eventKey;if(un.indexOf(_t)!==-1)return;if(mr.dragNode&&_t===mr.state.dragOverNodeKey){var Or=Mn(Mr,Xr);if(Or===mr.state.dropPosition)return;mr.setState({dropPosition:Or})}Fn&&Fn({event:Mr,node:Ft(Xr.props)})},mr.onNodeDragLeave=function(Mr,Xr){var un=mr.props.onDragLeave;mr.setState({dragOverNodeKey:""}),un&&un({event:Mr,node:Ft(Xr.props)})},mr.onNodeDragEnd=function(Mr,Xr){var un=mr.props.onDragEnd;mr.setState({dragOverNodeKey:""}),mr.cleanDragState(),un&&un({event:Mr,node:Ft(Xr.props)}),mr.dragNode=null},mr.onNodeDrop=function(Mr,Xr){var un=mr.state,Fn=un.dragNodesKeys,_t=Fn===void 0?[]:Fn,Or=un.dropPosition,Nr=mr.props.onDrop,tn=Xr.props,xn=tn.eventKey,Ln=tn.pos;if(mr.setState({dragOverNodeKey:""}),mr.cleanDragState(),_t.indexOf(xn)!==-1){Object(fe.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Sn=cn(Ln),qn={event:Mr,node:Ft(Xr.props),dragNode:mr.dragNode?Ft(mr.dragNode.props):null,dragNodesKeys:_t.slice(),dropPosition:Or+Number(Sn[Sn.length-1]),dropToGap:!1};Or!==0&&(qn.dropToGap=!0),Nr&&Nr(qn),mr.dragNode=null},mr.cleanDragState=function(){var Mr=mr.state.dragging;Mr&&mr.setState({dragging:!1})},mr.onNodeClick=function(Mr,Xr){var un=mr.props.onClick;un&&un(Mr,Xr)},mr.onNodeDoubleClick=function(Mr,Xr){var un=mr.props.onDoubleClick;un&&un(Mr,Xr)},mr.onNodeSelect=function(Mr,Xr){var un=mr.state.selectedKeys,Fn=mr.state.keyEntities,_t=mr.props,Or=_t.onSelect,Nr=_t.multiple,tn=Xr.selected,xn=Xr.key,Ln=!tn;Ln?Nr?un=Fr(un,xn):un=[xn]:un=it(un,xn);var Sn=un.map(function(qn){var Wn=Fn[qn];return Wn?Wn.node:null}).filter(function(qn){return qn});mr.setUncontrolledState({selectedKeys:un}),Or&&Or(un,{event:"select",selected:Ln,node:Xr,selectedNodes:Sn,nativeEvent:Mr.nativeEvent})},mr.onNodeCheck=function(Mr,Xr,un){var Fn=mr.state,_t=Fn.keyEntities,Or=Fn.checkedKeys,Nr=Fn.halfCheckedKeys,tn=mr.props,xn=tn.checkStrictly,Ln=tn.onCheck,Sn=Xr.key,qn,Wn={event:"check",node:Xr,checked:un,nativeEvent:Mr.nativeEvent};if(xn){var pi=un?Fr(Or,Sn):it(Or,Sn),Pi=it(Nr,Sn);qn={checked:pi,halfChecked:Pi},Wn.checkedNodes=pi.map(function(Wi){return _t[Wi]}).filter(function(Wi){return Wi}).map(function(Wi){return Wi.node}),mr.setUncontrolledState({checkedKeys:pi})}else{var bi=Mt([].concat(Object(g.a)(Or),[Sn]),!0,_t),Ii=bi.checkedKeys,zi=bi.halfCheckedKeys;if(!un){var ea=new Set(Ii);ea.delete(Sn);var Xi=Mt(Array.from(ea),{checked:!1,halfCheckedKeys:zi},_t);Ii=Xi.checkedKeys,zi=Xi.halfCheckedKeys}qn=Ii,Wn.checkedNodes=[],Wn.checkedNodesPositions=[],Wn.halfCheckedKeys=zi,Ii.forEach(function(Wi){var ji=_t[Wi];if(!ji)return;var Ji=ji.node,ca=ji.pos;Wn.checkedNodes.push(Ji),Wn.checkedNodesPositions.push({node:Ji,pos:ca})}),mr.setUncontrolledState({checkedKeys:Ii},!1,{halfCheckedKeys:zi})}Ln&&Ln(qn,Wn)},mr.onNodeLoad=function(Mr){return new Promise(function(Xr){mr.setState(function(un){var Fn=un.loadedKeys,_t=Fn===void 0?[]:Fn,Or=un.loadingKeys,Nr=Or===void 0?[]:Or,tn=mr.props,xn=tn.loadData,Ln=tn.onLoad,Sn=Mr.key;if(!xn||_t.indexOf(Sn)!==-1||Nr.indexOf(Sn)!==-1)return{};var qn=xn(Mr);return qn.then(function(){var Wn=mr.state,pi=Wn.loadedKeys,Pi=Wn.loadingKeys,bi=Fr(pi,Sn),Ii=it(Pi,Sn);Ln&&Ln(bi,{event:"load",node:Mr}),mr.setUncontrolledState({loadedKeys:bi}),mr.setState({loadingKeys:Ii}),Xr()}),{loadingKeys:Fr(Nr,Sn)}})})},mr.onNodeMouseEnter=function(Mr,Xr){var un=mr.props.onMouseEnter;un&&un({event:Mr,node:Xr})},mr.onNodeMouseLeave=function(Mr,Xr){var un=mr.props.onMouseLeave;un&&un({event:Mr,node:Xr})},mr.onNodeContextMenu=function(Mr,Xr){var un=mr.props.onRightClick;un&&(Mr.preventDefault(),un({event:Mr,node:Xr}))},mr.onFocus=function(){var Mr=mr.props.onFocus;mr.setState({focused:!0}),Mr&&Mr.apply(void 0,arguments)},mr.onBlur=function(){var Mr=mr.props.onBlur;mr.setState({focused:!1}),mr.onActiveChange(null),Mr&&Mr.apply(void 0,arguments)},mr.getTreeNodeRequiredProps=function(){var Mr=mr.state,Xr=Mr.expandedKeys,un=Mr.selectedKeys,Fn=Mr.loadedKeys,_t=Mr.loadingKeys,Or=Mr.checkedKeys,Nr=Mr.halfCheckedKeys,tn=Mr.dragOverNodeKey,xn=Mr.dropPosition,Ln=Mr.keyEntities;return{expandedKeys:Xr||[],selectedKeys:un||[],loadedKeys:Fn||[],loadingKeys:_t||[],checkedKeys:Or||[],halfCheckedKeys:Nr||[],dragOverNodeKey:tn,dropPosition:xn,keyEntities:Ln}},mr.setExpandedKeys=function(Mr){var Xr=mr.state.treeData,un=Vt(Xr,Mr);mr.setUncontrolledState({expandedKeys:Mr,flattenNodes:un},!0)},mr.onNodeExpand=function(Mr,Xr){var un=mr.state.expandedKeys,Fn=mr.state.listChanging,_t=mr.props,Or=_t.onExpand,Nr=_t.loadData,tn=Xr.key,xn=Xr.expanded;if(Fn)return;var Ln=un.indexOf(tn),Sn=!xn;if(Object(fe.a)(xn&&Ln!==-1||!xn&&Ln===-1,"Expand state not sync with index check"),Sn?un=Fr(un,tn):un=it(un,tn),mr.setExpandedKeys(un),Or&&Or(un,{node:Xr,expanded:Sn,nativeEvent:Mr.nativeEvent}),Sn&&Nr){var qn=mr.onNodeLoad(Xr);qn&&qn.then(function(){var Wn=Vt(mr.state.treeData,un);mr.setUncontrolledState({flattenNodes:Wn})})}},mr.onListChangeStart=function(){mr.setUncontrolledState({listChanging:!0})},mr.onListChangeEnd=function(){setTimeout(function(){mr.setUncontrolledState({listChanging:!1})})},mr.onActiveChange=function(Mr){var Xr=mr.state.activeKey,un=mr.props.onActiveChange;if(Xr===Mr)return;mr.setState({activeKey:Mr}),Mr!==null&&mr.scrollTo({key:Mr}),un&&un(Mr)},mr.getActiveItem=function(){var Mr=mr.state,Xr=Mr.activeKey,un=Mr.flattenNodes;return Xr===null?null:un.find(function(Fn){var _t=Fn.data.key;return _t===Xr})||null},mr.offsetActiveKey=function(Mr){var Xr=mr.state,un=Xr.flattenNodes,Fn=Xr.activeKey,_t=un.findIndex(function(tn){var xn=tn.data.key;return xn===Fn});_t===-1&&Mr<0&&(_t=un.length),_t=(_t+Mr+un.length)%un.length;var Or=un[_t];if(Or){var Nr=Or.data.key;mr.onActiveChange(Nr)}else mr.onActiveChange(null)},mr.onKeyDown=function(Mr){var Xr=mr.state,un=Xr.activeKey,Fn=Xr.expandedKeys,_t=Xr.checkedKeys,Or=mr.props,Nr=Or.onKeyDown,tn=Or.checkable,xn=Or.selectable;switch(Mr.which){case _.a.UP:{mr.offsetActiveKey(-1),Mr.preventDefault();break}case _.a.DOWN:{mr.offsetActiveKey(1),Mr.preventDefault();break}}var Ln=mr.getActiveItem();if(Ln&&Ln.data){var Sn=mr.getTreeNodeRequiredProps(),qn=Ln.data.isLeaf===!1||!!(Ln.data.children||[]).length,Wn=Ft(Object(S.a)(Object(S.a)({},hn(un,Sn)),{},{data:Ln.data,active:!0}));switch(Mr.which){case _.a.LEFT:{qn&&Fn.includes(un)?mr.onNodeExpand({},Wn):Ln.parent&&mr.onActiveChange(Ln.parent.data.key),Mr.preventDefault();break}case _.a.RIGHT:{qn&&!Fn.includes(un)?mr.onNodeExpand({},Wn):Ln.children&&Ln.children.length&&mr.onActiveChange(Ln.children[0].data.key),Mr.preventDefault();break}case _.a.ENTER:case _.a.SPACE:{tn&&!Wn.disabled&&Wn.checkable!==!1&&!Wn.disableCheckbox?mr.onNodeCheck({},Wn,!_t.includes(un)):!tn&&xn&&!Wn.disabled&&Wn.selectable!==!1&&mr.onNodeSelect({},Wn);break}}}Nr&&Nr(Mr)},mr.setUncontrolledState=function(Mr){var Xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,un=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(mr.destroyed)return;var Fn=!1,_t=!0,Or={};Object.keys(Mr).forEach(function(Nr){if(Nr in mr.props){_t=!1;return}Fn=!0,Or[Nr]=Mr[Nr]}),Fn&&(!Xr||_t)&&mr.setState(Object(S.a)(Object(S.a)({},Or),un))},mr.scrollTo=function(Mr){mr.listRef.current.scrollTo(Mr)},mr}return Object(a.a)(Tn,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var Mr,Xr=this.state,un=Xr.focused,Fn=Xr.flattenNodes,_t=Xr.keyEntities,Or=Xr.dragging,Nr=Xr.activeKey,tn=this.props,xn=tn.prefixCls,Ln=tn.className,Sn=tn.style,qn=tn.showLine,Wn=tn.focusable,pi=tn.tabIndex,Pi=pi===void 0?0:pi,bi=tn.selectable,Ii=tn.showIcon,zi=tn.icon,ea=tn.switcherIcon,Xi=tn.draggable,Wi=tn.checkable,ji=tn.checkStrictly,Ji=tn.disabled,ca=tn.motion,Ca=tn.loadData,na=tn.filterTreeNode,Pa=tn.height,La=tn.itemHeight,va=tn.virtual,ga=tn.titleRender,Oa=tn.onContextMenu,Aa=Pe(this.props);return e.createElement(me.Provider,{value:{prefixCls:xn,selectable:bi,showIcon:Ii,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:w()(xn,Ln,(Mr={},Object(E.a)(Mr,"".concat(xn,"-show-line"),qn),Object(E.a)(Mr,"".concat(xn,"-focused"),un),Object(E.a)(Mr,"".concat(xn,"-active-focused"),Nr!==null),Mr))},e.createElement(tt,Object.assign({ref:this.listRef,prefixCls:xn,style:Sn,data:Fn,disabled:Ji,selectable:bi,checkable:!!Wi,motion:ca,dragging:Or,height:Pa,itemHeight:La,virtual:va,focusable:Wn,focused:un,tabIndex:Pi,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(Mr,Xr){var un=Xr.prevProps,Fn={prevProps:Mr};function _t(zi){return!un&&zi in Mr||un&&un[zi]!==Mr[zi]}var Or;if(_t("treeData")?Or=Mr.treeData:_t("children")&&(Object(fe.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Or=St(Mr.children)),Or){Fn.treeData=Or;var Nr=Vr(Or);Fn.keyEntities=Object(S.a)(Object(E.a)({},ei,Ei),Nr.keyEntities)}var tn=Fn.keyEntities||Xr.keyEntities;if(_t("expandedKeys")||un&&_t("autoExpandParent"))Fn.expandedKeys=Mr.autoExpandParent||!un&&Mr.defaultExpandParent?De(Mr.expandedKeys,tn):Mr.expandedKeys;else if(!un&&Mr.defaultExpandAll){var xn=Object(S.a)({},tn);delete xn[ei],Fn.expandedKeys=Object.keys(xn).map(function(zi){return xn[zi].key})}else!un&&Mr.defaultExpandedKeys&&(Fn.expandedKeys=Mr.autoExpandParent||Mr.defaultExpandParent?De(Mr.defaultExpandedKeys,tn):Mr.defaultExpandedKeys);if(Fn.expandedKeys||delete Fn.expandedKeys,Or||Fn.expandedKeys){var Ln=Vt(Or||Xr.treeData,Fn.expandedKeys||Xr.expandedKeys);Fn.flattenNodes=Ln}if(Mr.selectable&&(_t("selectedKeys")?Fn.selectedKeys=Un(Mr.selectedKeys,Mr):!un&&Mr.defaultSelectedKeys&&(Fn.selectedKeys=Un(Mr.defaultSelectedKeys,Mr))),Mr.checkable){var Sn;if(_t("checkedKeys")?Sn=Re(Mr.checkedKeys)||{}:!un&&Mr.defaultCheckedKeys?Sn=Re(Mr.defaultCheckedKeys)||{}:Or&&(Sn=Re(Mr.checkedKeys)||{checkedKeys:Xr.checkedKeys,halfCheckedKeys:Xr.halfCheckedKeys}),Sn){var qn=Sn,Wn=qn.checkedKeys,pi=Wn===void 0?[]:Wn,Pi=qn.halfCheckedKeys,bi=Pi===void 0?[]:Pi;if(!Mr.checkStrictly){var Ii=Mt(pi,!0,tn);pi=Ii.checkedKeys,bi=Ii.halfCheckedKeys}Fn.checkedKeys=pi,Fn.halfCheckedKeys=bi}}return _t("loadedKeys")&&(Fn.loadedKeys=Mr.loadedKeys),Fn}}]),Tn}(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=sr;var st=Ze,Et=st,gt=e.createContext(null);function pr(Lr,xr){if(!Lr)return!0;var Tn=Lr.data,mr=Tn.disabled,Mr=Tn.disableCheckbox;switch(xr){case"select":return mr;case"checkbox":return mr||Mr}return!1}function qr(Lr,xr){var Tn=e.useCallback(function(Mr){var Xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",un=arguments.length>2?arguments[2]:void 0,Fn=Lr.get(Mr);return!un&&pr(Fn,Xr)?null:Fn},[Lr]),mr=e.useCallback(function(Mr){var Xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",un=arguments.length>2?arguments[2]:void 0,Fn=xr.get(Mr);return!un&&pr(Fn,Xr)?null:Fn},[xr]);return[Tn,mr]}function Qr(Lr){return e.useMemo(function(){var xr=new Map,Tn=new Map;return Lr.forEach(function(mr){xr.set(mr.key,mr),Tn.set(mr.data.value,mr)}),[xr,Tn]},[Lr])}var gn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},vr=function(xr,Tn){var mr=xr.prefixCls,Mr=xr.height,Xr=xr.itemHeight,un=xr.virtual,Fn=xr.options,_t=xr.flattenOptions,Or=xr.multiple,Nr=xr.searchValue,tn=xr.onSelect,xn=xr.onToggleOpen,Ln=xr.open,Sn=xr.notFoundContent,qn=xr.onMouseEnter,Wn=e.useContext(gt),pi=Wn.checkable,Pi=Wn.checkedKeys,bi=Wn.halfCheckedKeys,Ii=Wn.treeExpandedKeys,zi=Wn.treeDefaultExpandAll,ea=Wn.treeDefaultExpandedKeys,Xi=Wn.onTreeExpand,Wi=Wn.treeIcon,ji=Wn.showTreeIcon,Ji=Wn.switcherIcon,ca=Wn.treeLine,Ca=Wn.treeNodeFilterProp,na=Wn.loadData,Pa=Wn.treeLoadedKeys,La=Wn.treeMotion,va=Wn.onTreeLoad,ga=e.useRef(),Oa=Object(qt.a)(function(){return Fn},[Ln,Fn],function(en,Jr){return Jr[0]&&en[1]!==Jr[1]}),Aa=Qr(_t),Xa=Object(b.a)(Aa,2),_a=Xa[0],Va=Xa[1],Fi=qr(_a,Va),io=Object(b.a)(Fi,2),oo=io[0],Qo=io[1],mo=e.useMemo(function(){return Pi.map(function(en){var Jr=Qo(en);return Jr?Jr.key:null})},[Pi]),To=e.useMemo(function(){return pi?{checked:mo,halfChecked:bi}:null},[mo,bi,pi]);e.useEffect(function(){if(Ln&&!Or&&mo.length){var en;(en=ga.current)===null||en===void 0||en.scrollTo({key:mo[0]})}},[Ln]);var ao=String(Nr).toLowerCase(),So=function(Jr){return ao?String(Jr[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 Ii?Object(g.a)(Ii):Nr?Ia:Jo},[Jo,Ia,ao,Ii]);e.useEffect(function(){Nr&&Oo(_t.map(function(en){return en.key}))},[Nr]);var os=function(Jr){Uo(Jr),Oo(Jr),Xi&&Xi(Jr)},xo=function(Jr){Jr.preventDefault()},rs=function(Jr,Jn){var fn=Jn.node.key,Yr=oo(fn,pi?"checkbox":"select");Yr!==null&&tn(Yr.data.value,{selected:!Pi.includes(Yr.data.value)}),Or||xn(!1)},Ho=e.useState(null),_o=Object(b.a)(Ho,2),uo=_o[0],Ha=_o[1],mt=oo(uo);if(e.useImperativeHandle(Tn,function(){return{onKeyDown:function(Jr){var Jn,fn=Jr.which;switch(fn){case _.a.UP:case _.a.DOWN:case _.a.LEFT:case _.a.RIGHT:(Jn=ga.current)===null||Jn===void 0||Jn.onKeyDown(Jr);break;case _.a.ENTER:{mt!==null&&rs(null,{node:{key:uo},selected:!Pi.includes(mt.data.value)});break}case _.a.ESC:xn(!1)}},onKeyUp:function(){}}}),Oa.length===0)return e.createElement("div",{role:"listbox",className:"".concat(mr,"-empty"),onMouseDown:xo},Sn);var Tr={};return Pa&&(Tr.loadedKeys=Pa),Io&&(Tr.expandedKeys=Io),e.createElement("div",{onMouseDown:xo,onMouseEnter:qn},mt&&Ln&&e.createElement("span",{style:gn,"aria-live":"assertive"},mt.data.value),e.createElement(Et,Object.assign({ref:ga,focusable:!1,prefixCls:"".concat(mr,"-tree"),treeData:Oa,height:Mr,itemHeight:Xr,virtual:un,multiple:Or,icon:Wi,showIcon:ji,switcherIcon:Ji,showLine:ca,loadData:Nr?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})))},Vn=e.forwardRef(vr);Vn.displayName="OptionList";var kr=Vn,Bn=function(){return null},on=Bn;function jr(Lr){return Object(lt.a)(Lr).map(function(xr){if(!e.isValidElement(xr)||!xr.type)return null;var Tn=xr.key,mr=xr.props,Mr=mr.children,Xr=mr.value,un=Object(C.a)(mr,["children","value"]),Fn=Object(S.a)({key:Tn,value:Xr},un),_t=jr(Mr);return _t.length&&(Fn.children=_t),Fn}).filter(function(xr){return xr})}function ai(Lr){if(!Lr)return Lr;var xr=Object(S.a)({},Lr);return"props"in xr||Object.defineProperty(xr,"props",{get:function(){return Object(fe.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),xr}}),xr}function Oi(Lr,xr,Tn,mr,Mr){var Xr=null,un=null;function Fn(){function _t(Or){var Nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Or.map(function(xn,Ln){var Sn="".concat(Nr,"-").concat(Ln),qn=Tn.includes(xn.value),Wn=_t(xn.children||[],Sn,qn),pi=e.createElement(on,Object.assign({},xn),Wn.map(function(bi){return bi.node}));if(xr===xn.value&&(Xr=pi),qn){var Pi={pos:Sn,node:pi,children:Wn};return tn||un.push(Pi),Pi}return null}).filter(function(xn){return xn})}un||(un=[],_t(mr),un.sort(function(Or,Nr){var tn=Or.node.props.value,xn=Nr.node.props.value,Ln=Tn.indexOf(tn),Sn=Tn.indexOf(xn);return Ln-Sn}))}Object.defineProperty(Lr,"triggerNode",{get:function(){return Object(fe.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Fn(),Xr}}),Object.defineProperty(Lr,"allCheckedNodes",{get:function(){return Object(fe.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Fn(),Mr?un:un.map(function(Or){var Nr=Or.node;return Nr})}})}function Gi(Lr){return Array.isArray(Lr)?Lr:Lr!==void 0?[Lr]:[]}function rn(Lr,xr){var Tn=new Map;return xr.forEach(function(mr){var Mr=mr.data;Tn.set(Mr.value,Mr)}),Lr.map(function(mr){return ai(Tn.get(mr))})}function Cn(Lr,xr){var Tn=rn([Lr],xr)[0];return Tn?Tn.disabled:!1}function Yn(Lr){return Lr.disabled||Lr.disableCheckbox||Lr.checkable===!1}function Gt(Lr){for(var xr=Lr.parent,Tn=0,mr=xr;mr;)mr=mr.parent,Tn+=1;return Tn}function Ot(Lr){function xr(mr){return(mr||[]).map(function(Mr){var Xr=Mr.value,un=Mr.key,Fn=Mr.children,_t=Object(S.a)(Object(S.a)({},Mr),{},{key:"key"in Mr?un:Xr});return Fn&&(_t.children=xr(Fn)),_t})}var Tn=Vt(xr(Lr),!0);return Tn.map(function(mr){return{key:mr.data.key,data:mr.data,level:Gt(mr)}})}function Rt(Lr){return function(xr,Tn){var mr=Tn[Lr];return String(mr).toLowerCase().includes(String(xr).toLowerCase())}}function jt(Lr,xr,Tn){var mr=Tn.optionFilterProp,Mr=Tn.filterOption;if(Mr===!1)return xr;var Xr;typeof Mr=="function"?Xr=Mr:Xr=Rt(mr);function un(Fn){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Fn.map(function(Or){var Nr=Or.children,tn=_t||Xr(Lr,ai(Or)),xn=un(Nr||[],tn);return tn||xn.length?Object(S.a)(Object(S.a)({},Or),{},{children:xn}):null}).filter(function(Or){return Or})}return un(xr)}function zt(Lr,xr,Tn,mr){var Mr=new Map;return Gi(xr).forEach(function(Xr){Xr&&Object(A.a)(Xr)==="object"&&"value"in Xr&&Mr.set(Xr.value,Xr)}),Lr.map(function(Xr){var un={value:Xr},Fn=Tn(Xr,"select",!0),_t=Fn?mr(Fn.data):Xr;if(Mr.has(Xr)){var Or=Mr.get(Xr);un.label="label"in Or?Or.label:_t,"halfChecked"in Or&&(un.halfChecked=Or.halfChecked)}else un.label=_t;return un})}function Lt(Lr,xr){var Tn=new Set(Lr);return Tn.add(xr),Array.from(Tn)}function cr(Lr,xr){var Tn=new Set(Lr);return Tn.delete(xr),Array.from(Tn)}function Ar(Lr){var xr=Lr.searchPlaceholder,Tn=Lr.treeCheckStrictly,mr=Lr.treeCheckable,Mr=Lr.labelInValue,Xr=Lr.value,un=Lr.multiple;Object(fe.a)(!xr,"`searchPlaceholder` has been removed."),Tn&&Mr===!1&&Object(fe.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Mr||Tn)&&Object(fe.a)(Gi(Xr).every(function(Fn){return Fn&&Object(A.a)(Fn)==="object"&&"value"in Fn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Tn||un||mr?Object(fe.a)(!Xr||Array.isArray(Xr),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(fe.a)(!Array.isArray(Xr),"`value` should not be array when `TreeSelect` is single mode.")}var br=Ar,Pr=10;function Xn(Lr,xr){var Tn=xr.id,mr=xr.pId,Mr=xr.rootPId,Xr={},un=[],Fn=Lr.map(function(_t){var Or=Object(S.a)({},_t),Nr=Or[Tn];return Xr[Nr]=Or,Or.key=Or.key||Nr,Or});return Fn.forEach(function(_t){var Or=_t[mr],Nr=Xr[Or];Nr&&(Nr.children=Nr.children||[],Nr.children.push(_t)),(Or===Mr||!Nr&&Mr===null)&&un.push(_t)}),un}function Pn(Lr,xr){var Tn=0,mr=new Set;function Mr(Xr){return(Xr||[]).map(function(un){var Fn=un.key,_t=un.value,Or=un.children,Nr=Object(C.a)(un,["key","value","children"]),tn="value"in un?_t:Fn,xn=Object(S.a)(Object(S.a)({},Nr),{},{key:Fn!=null?Fn:tn,value:tn,title:xr(un)});return"children"in un&&(xn.children=Mr(Or)),xn})}return Mr(Lr)}function di(Lr,xr,Tn){var mr=Tn.getLabelProp,Mr=Tn.simpleMode,Xr=e.useRef({});return Lr?(Xr.current.formatTreeData=Xr.current.treeData===Lr?Xr.current.formatTreeData:Pn(Mr?Xn(Lr,Object(S.a)({id:"id",pId:"pId",rootPId:null},Mr!==!0?Mr:{})):Lr,mr),Xr.current.treeData=Lr):Xr.current.formatTreeData=Xr.current.children===xr?Xr.current.formatTreeData:Pn(jr(xr),mr),Xr.current.formatTreeData}var An="SHOW_ALL",Ur="SHOW_PARENT",In="SHOW_CHILD";function Qn(Lr,xr,Tn){var mr=new Set(Lr);return xr===In?Lr.filter(function(Mr){var Xr=Tn[Mr];return!(Xr&&Xr.children&&Xr.children.every(function(un){var Fn=un.node;return Yn(Fn)||mr.has(Fn.key)}))}):xr===Ur?Lr.filter(function(Mr){var Xr=Tn[Mr],un=Xr?Xr.parent:null;return!(un&&!Yn(un.node)&&mr.has(un.node.key))}):Lr}function $n(Lr,xr){var Tn=xr.value,mr=xr.getEntityByValue,Mr=xr.getEntityByKey,Xr=xr.treeConduction,un=xr.showCheckedStrategy,Fn=xr.conductKeyEntities,_t=xr.getLabelProp;return e.useMemo(function(){var Or=Lr;if(Xr){var Nr=Qn(Lr.map(function(tn){var xn=mr(tn);return xn?xn.key:tn}),un,Fn);Or=Nr.map(function(tn){var xn=Mr(tn);return xn?xn.data.value:tn})}return zt(Or,Tn,mr,_t)},[Lr,Tn,Xr,un,mr])}var oi=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],Ti=se({prefixCls:"rc-tree-select",components:{optionList:kr},convertChildrenToData:function(){return null},flattenOptions:Ot,getLabeledValue:ht,filterOptions:jt,isValueDisabled:Cn,findValueOption:rn,omitDOMProps:function(xr){var Tn=Object(S.a)({},xr);return oi.forEach(function(mr){delete Tn[mr]}),Tn}});Ti.displayName="Select";var ki=e.forwardRef(function(Lr,xr){var Tn=Lr.multiple,mr=Lr.treeCheckable,Mr=Lr.treeCheckStrictly,Xr=Lr.showCheckedStrategy,un=Xr===void 0?"SHOW_CHILD":Xr,Fn=Lr.labelInValue,_t=Lr.loadData,Or=Lr.treeLoadedKeys,Nr=Lr.treeNodeFilterProp,tn=Nr===void 0?"value":Nr,xn=Lr.treeNodeLabelProp,Ln=Lr.treeDataSimpleMode,Sn=Lr.treeData,qn=Lr.treeExpandedKeys,Wn=Lr.treeDefaultExpandedKeys,pi=Lr.treeDefaultExpandAll,Pi=Lr.children,bi=Lr.treeIcon,Ii=Lr.showTreeIcon,zi=Lr.switcherIcon,ea=Lr.treeLine,Xi=Lr.treeMotion,Wi=Lr.filterTreeNode,ji=Lr.dropdownPopupAlign,Ji=Lr.onChange,ca=Lr.onTreeExpand,Ca=Lr.onTreeLoad,na=Lr.onDropdownVisibleChange,Pa=Lr.onSelect,La=Lr.onDeselect,va=mr||Mr,ga=Tn||va,Oa=mr&&!Mr,Aa=Mr||Fn,Xa=e.useRef(null);e.useImperativeHandle(xr,function(){return{focus:Xa.current.focus,blur:Xa.current.blur}});var _a=function(fn){return Sn&&fn.label||fn.title},Va=function(fn){return xn?fn[xn]:_a(fn)},Fi=di(Sn,Pi,{getLabelProp:_a,simpleMode:Ln}),io=Object(e.useMemo)(function(){return Ot(Fi)},[Fi]),oo=Qr(io),Qo=Object(b.a)(oo,2),mo=Qo[0],To=Qo[1],ao=qr(mo,To),So=Object(b.a)(ao,2),bo=So[0],to=So[1],Jo=Object(e.useMemo)(function(){return Oa?Vr(Fi):{keyEntities:null}},[Fi,mr,Mr]),Uo=Jo.keyEntities,wo=Object(O.a)(Lr.defaultValue,{value:Lr.value}),ts=Object(b.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=function(fn){var Yr=[],ni=[];return fn.forEach(function(nn){to(nn)?ni.push(nn):Yr.push(nn)}),{missingRawValues:Yr,existRawValues:ni}},os=Object(e.useMemo)(function(){var Jn=[],fn=[];if(Gi(Ia).forEach(function(Ci){if(Ci&&Object(A.a)(Ci)==="object"&&"value"in Ci)if(Ci.halfChecked&&Mr){var mi=to(Ci.value);Jn.push(mi?mi.key:Ci.value)}else fn.push(Ci.value);else fn.push(Ci)}),Oa){var Yr=Io(fn),ni=Yr.missingRawValues,nn=Yr.existRawValues,zn=nn.map(function(Ci){return to(Ci).key}),li=Mt(zn,!0,Uo),ci=li.checkedKeys,si=li.halfCheckedKeys;return[[].concat(Object(g.a)(ni),Object(g.a)(ci.map(function(Ci){return bo(Ci).data.value}))),si]}return[fn,Jn]},[Ia,ga,Aa,mr,Mr]),xo=Object(b.a)(os,2),rs=xo[0],Ho=xo[1],_o=$n(rs,{treeConduction:Oa,value:Ia,showCheckedStrategy:un,conductKeyEntities:Uo,getEntityByValue:to,getEntityByKey:bo,getLabelProp:Va}),uo=function(fn,Yr,ni){if(Oo(ga?fn:fn[0]),Ji){var nn=fn;if(Oa&&un!=="SHOW_ALL"){var zn=fn.map(function(Ki){var fa=to(Ki);return fa?fa.key:Ki}),li=Qn(zn,un,Uo);nn=li.map(function(Ki){var fa=bo(Ki);return fa?fa.data.value:Ki})}var ci=Yr||{triggerValue:void 0,selected:void 0},si=ci.triggerValue,Ci=ci.selected,mi=Aa?zt(nn,Ia,to,Va):nn;if(Mr){var Ai=Ho.map(function(Ki){var fa=bo(Ki);return fa?fa.data.value:Ki}).filter(function(Ki){return!nn.includes(Ki)});mi=[].concat(Object(g.a)(mi),Object(g.a)(zt(Ai,Ia,to,Va)))}var Ni={preValue:_o,triggerValue:si},ia=!0;(Mr||ni==="selection"&&!Ci)&&(ia=!1),Oi(Ni,si,fn,Fi,ia),va?Ni.checked=Ci:Ni.selected=Ci,Ji(ga?mi:mi[0],Aa?null:nn.map(function(Ki){var fa=to(Ki);return fa?Va(fa.data):null}),Ni)}},Ha=function(fn,Yr,ni){var nn=fn;if(!ga)uo([fn],{selected:!0,triggerValue:fn},ni);else{var zn=Lt(rs,fn);if(Oa){var li=Io(zn),ci=li.missingRawValues,si=li.existRawValues,Ci=si.map(function(Ni){return to(Ni).key}),mi=Mt(Ci,!0,Uo),Ai=mi.checkedKeys;zn=[].concat(Object(g.a)(ci),Object(g.a)(Ai.map(function(Ni){return bo(Ni).data.value})))}uo(zn,{selected:!0,triggerValue:fn},ni)}Pa&&Pa(nn,Yr)},mt=function(fn,Yr,ni){var nn=fn,zn=cr(rs,fn);if(Oa){var li=Io(zn),ci=li.missingRawValues,si=li.existRawValues,Ci=si.map(function(Ni){return to(Ni).key}),mi=Mt(Ci,{checked:!1,halfCheckedKeys:Ho},Uo),Ai=mi.checkedKeys;zn=[].concat(Object(g.a)(ci),Object(g.a)(Ai.map(function(Ni){return bo(Ni).data.value})))}uo(zn,{selected:!1,triggerValue:fn},ni),La&&La(nn,Yr)},Tr=function(){uo([],null,"clear")},en=e.useCallback(function(Jn){if(na){var fn={};Object.defineProperty(fn,"documentClickClose",{get:function(){return Object(fe.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),na(Jn,fn)}},[na]),Jr={optionLabelProp:null,optionFilterProp:tn,dropdownAlign:ji,internalProps:{mark:be,onClear:Tr,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:Ha,onRawDeselect:mt}};return"filterTreeNode"in Lr&&(Jr.filterOption=Wi),e.createElement(gt.Provider,{value:{checkable:va,loadData:_t,treeLoadedKeys:Or,onTreeLoad:Ca,checkedKeys:rs,halfCheckedKeys:Ho,treeDefaultExpandAll:pi,treeExpandedKeys:qn,treeDefaultExpandedKeys:Wn,onTreeExpand:ca,treeIcon:bi,treeMotion:Xi,showTreeIcon:Ii,switcherIcon:zi,treeLine:ea,treeNodeFilterProp:tn}},e.createElement(Ti,Object.assign({ref:Xa,mode:ga?"multiple":null},Lr,Jr,{value:_o,labelInValue:!0,options:Fi,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:en})))}),Ri=function(Lr){Object(c.a)(Tn,Lr);var xr=Object(h.a)(Tn);function Tn(){var mr;return Object(r.a)(this,Tn),mr=xr.apply(this,arguments),mr.selectRef=e.createRef(),mr.focus=function(){mr.selectRef.current.focus()},mr.blur=function(){mr.selectRef.current.blur()},mr}return Object(a.a)(Tn,[{key:"render",value:function(){return e.createElement(ki,Object.assign({ref:this.selectRef},this.props))}}]),Tn}(e.Component);Ri.TreeNode=on,Ri.SHOW_ALL=An,Ri.SHOW_PARENT=Ur,Ri.SHOW_CHILD=In;var oa=Ri,ma=oa,aa=n("BGR+"),ba=n("H84U"),yi=n("uaoM"),kn=n("1vzs"),Ui=n("2jpz"),ha=n("3Nzz"),ta=function(Lr){i()(Tn,Lr);var xr=s()(Tn);function Tn(mr){var Mr;return f()(this,Tn),Mr=xr.call(this,mr),Mr.selectRef=e.createRef(),Mr.renderTreeSelect=function(Xr){var un=Xr.getPopupContainer,Fn=Xr.getPrefixCls,_t=Xr.renderEmpty,Or=Xr.direction,Nr=Xr.virtual,tn=Xr.dropdownMatchSelectWidth,xn=Mr.props,Ln=xn.prefixCls,Sn=xn.size,qn=xn.className,Wn=xn.treeCheckable,pi=xn.multiple,Pi=xn.listHeight,bi=Pi===void 0?256:Pi,Ii=xn.listItemHeight,zi=Ii===void 0?26:Ii,ea=xn.notFoundContent,Xi=xn.switcherIcon,Wi=xn.treeLine,ji=xn.getPopupContainer,Ji=xn.dropdownClassName,ca=xn.bordered,Ca=xn.treeIcon,na=Ca===void 0?!1:Ca,Pa=Fn("select",Ln),La=Fn("select-tree",Ln),va=Fn("tree-select",Ln),ga=w()(Ji,"".concat(va,"-dropdown"),v()({},"".concat(va,"-dropdown-rtl"),Or==="rtl")),Oa=!!(Wn||pi),Aa=Object(kn.a)(p()(p()({},Mr.props),{multiple:Oa,prefixCls:Pa})),Xa=Aa.suffixIcon,_a=Aa.itemIcon,Va=Aa.removeIcon,Fi=Aa.clearIcon,io;ea!==void 0?io=ea:io=_t("Select");var oo=Object(aa.default)(Mr.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return e.createElement(ha.b.Consumer,null,function(Qo){var mo,To=Sn||Qo,ao=w()(!Ln&&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),qn);return e.createElement(ma,p()({virtual:Nr,dropdownMatchSelectWidth:tn},oo,{ref:Mr.selectRef,prefixCls:Pa,className:ao,listHeight:bi,listItemHeight:zi,treeCheckable:Wn&&e.createElement("span",{className:"".concat(Pa,"-tree-checkbox-inner")}),inputIcon:Xa,menuItemSelectedIcon:_a,removeIcon:Va,clearIcon:Fi,switcherIcon:function(bo){return Object(Ui.a)(La,Xi,Wi,bo)},showTreeIcon:na,notFoundContent:io,getPopupContainer:ji||un,treeMotion:null,dropdownClassName:ga}))})},Object(yi.a)(mr.multiple!==!1||!mr.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),Mr}return u()(Tn,[{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)}}]),Tn}(e.Component);ta.TreeNode=on,ta.SHOW_ALL=An,ta.SHOW_PARENT=Ur,ta.SHOW_CHILD=In,ta.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var ra=D.a=ta},"5Uyt":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("KmBX"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},"5YOS":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("xb2K"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},"5YgA":function(k,D,n){},"5bA4":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="LeftOutlined";var d=D.a=p.forwardRef(f)},"5hvy":function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("MlIO"))})(this,function(y){return function(p){var x=y,v=x.lib,m=v.WordArray,f=v.Hasher,d=x.x64,u=d.Word,o=x.algo,i=[],t=[],s=[];(function(){for(var r=1,a=0,c=0;c<24;c++){i[r+5*a]=(c+1)*(c+2)/2%64;var h=a%5,g=(2*r+3*a)%5;r=h,a=g}for(var r=0;r<5;r++)for(var a=0;a<5;a++)t[r+5*a]=a+(2*r+3*a)%5*5;for(var A=1,b=0;b<24;b++){for(var S=0,E=0,C=0;C<7;C++){if(A&1){var _=(1<<C)-1;_<32?E^=1<<_:S^=1<<_-32}A&128?A=A<<1^113:A<<=1}s[b]=u.create(S,E)}})();var e=[];(function(){for(var r=0;r<25;r++)e[r]=u.create()})();var l=o.SHA3=f.extend({cfg:f.cfg.extend({outputLength:512}),_doReset:function(){for(var a=this._state=[],c=0;c<25;c++)a[c]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(a,c){for(var h=this._state,g=this.blockSize/2,A=0;A<g;A++){var b=a[c+2*A],S=a[c+2*A+1];b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360;var E=h[A];E.high^=S,E.low^=b}for(var C=0;C<24;C++){for(var _=0;_<5;_++){for(var T=0,w=0,O=0;O<5;O++){var E=h[_+5*O];T^=E.high,w^=E.low}var I=e[_];I.high=T,I.low=w}for(var _=0;_<5;_++)for(var R=e[(_+4)%5],M=e[(_+1)%5],B=M.high,P=M.low,T=R.high^(B<<1|P>>>31),w=R.low^(P<<1|B>>>31),O=0;O<5;O++){var E=h[_+5*O];E.high^=T,E.low^=w}for(var X=1;X<25;X++){var T,w,E=h[X],F=E.high,j=E.low,K=i[X];K<32?(T=F<<K|j>>>32-K,w=j<<K|F>>>32-K):(T=j<<K-32|F>>>64-K,w=F<<K-32|j>>>64-K);var z=e[t[X]];z.high=T,z.low=w}var V=e[0],Q=h[0];V.high=Q.high,V.low=Q.low;for(var _=0;_<5;_++)for(var O=0;O<5;O++){var X=_+5*O,E=h[X],G=e[X],te=e[(_+1)%5+5*O],q=e[(_+2)%5+5*O];E.high=G.high^~te.high&q.high,E.low=G.low^~te.low&q.low}var E=h[0],le=s[C];E.high^=le.high,E.low^=le.low}},_doFinalize:function(){var a=this._data,c=a.words,h=this._nDataBytes*8,g=a.sigBytes*8,A=this.blockSize*32;c[g>>>5]|=1<<24-g%32,c[(p.ceil((g+1)/A)*A>>>5)-1]|=128,a.sigBytes=c.length*4,this._process();for(var b=this._state,S=this.cfg.outputLength/8,E=S/8,C=[],_=0;_<E;_++){var T=b[_],w=T.high,O=T.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,C.push(O),C.push(w)}return new m.init(C,S)},clone:function(){for(var a=f.clone.call(this),c=a._state=this._state.slice(0),h=0;h<25;h++)c[h]=c[h].clone();return a}});x.SHA3=f._createHelper(l),x.HmacSHA3=f._createHmacHelper(l)}(Math),y.SHA3})},"5nXd":function(k,D,n){var y=n("MFOe"),p=y.slice,x=y.pluck,v=y.each,m=y.bind,f=y.create,d=y.isList,u=y.isFunction,o=y.isObject;k.exports={createStore:s};var i={version:"2.0.12",enabled:!1,get:function(l,r){var a=this.storage.read(this._namespacePrefix+l);return this._deserialize(a,r)},set:function(l,r){return r===void 0?this.remove(l):(this.storage.write(this._namespacePrefix+l,this._serialize(r)),r)},remove:function(l){this.storage.remove(this._namespacePrefix+l)},each:function(l){var r=this;this.storage.each(function(a,c){l.call(r,r._deserialize(a),(c||"").replace(r._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(l){return this._namespacePrefix=="__storejs_"+l+"_"},createStore:function(){return s.apply(this,arguments)},addPlugin:function(l){this._addPlugin(l)},namespace:function(l){return s(this.storage,this.plugins,l)}};function t(){var e=typeof console=="undefined"?null:console;if(!e)return;var l=e.warn?e.warn:e.log;l.apply(e,arguments)}function s(e,l,r){r||(r=""),e&&!d(e)&&(e=[e]),l&&!d(l)&&(l=[l]);var a=r?"__storejs_"+r+"_":"",c=r?new RegExp("^"+a):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:a,_namespaceRegexp:c,_testStorage:function(S){try{var E="__storejs__test__";S.write(E,E);var C=S.read(E)===E;return S.remove(E),C}catch(_){return!1}},_assignPluginFnProp:function(S,E){var C=this[E];this[E]=function(){var T=p(arguments,0),w=this;function O(){return C?(v(arguments,function(R,M){T[M]=R}),C.apply(w,T)):void 0}var I=[O].concat(T);return S.apply(w,I)}},_serialize:function(S){return JSON.stringify(S)},_deserialize:function(S,E){if(!S)return E;var C="";try{C=JSON.parse(S)}catch(_){C=S}return C!==void 0?C:E},_addStorage:function(S){if(this.enabled)return;this._testStorage(S)&&(this.storage=S,this.enabled=!0)},_addPlugin:function(S){var E=this;if(d(S)){v(S,function(T){E._addPlugin(T)});return}var C=x(this.plugins,function(T){return S===T});if(C)return;if(this.plugins.push(S),!u(S))throw new Error("Plugins must be function values that return objects");var _=S.call(this);if(!o(_))throw new Error("Plugins must return an object of function properties");v(_,function(T,w){if(!u(T))throw new Error("Bad plugin property: "+w+" from plugin "+S.name+". Plugins should only return functions.");E._assignPluginFnProp(T,w)})},addStorage:function(S){t("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(S)}},A=f(g,i,{plugins:[]});return A.raw={},v(A,function(b,S){u(b)&&(A.raw[S]=m(A,b))}),v(e,function(b){A._addStorage(b)}),v(l,function(b){A._addPlugin(b)}),A}},"5rEg":function(k,D,n){"use strict";var y=n("mh/l"),p=n("lSNA"),x=n.n(p),v=n("q1tI"),m=n("TSYQ"),f=n.n(m),d=n("H84U"),u=function(K){return v.createElement(d.a,null,function(z){var V,Q=z.getPrefixCls,G=z.direction,te=K.prefixCls,q=K.className,le=q===void 0?"":q,re=Q("input-group",te),we=f()(re,(V={},x()(V,"".concat(re,"-lg"),K.size==="large"),x()(V,"".concat(re,"-sm"),K.size==="small"),x()(V,"".concat(re,"-compact"),K.compact),x()(V,"".concat(re,"-rtl"),G==="rtl"),V),le);return v.createElement("span",{className:we,style:K.style,onMouseEnter:K.onMouseEnter,onMouseLeave:K.onMouseLeave,onFocus:K.onFocus,onBlur:K.onBlur},K.children)})},o=u,i=n("pVnL"),t=n.n(i),s=n("c+Xe"),e=n("w6Tc"),l=n.n(e),r=n("gZBC"),a=n.n(r),c=n("2/Rp"),h=n("3Nzz"),g=n("0n0R"),A=function(j,K){var z={};for(var V in j)Object.prototype.hasOwnProperty.call(j,V)&&K.indexOf(V)<0&&(z[V]=j[V]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(j);Q<V.length;Q++)K.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(j,V[Q])&&(z[V[Q]]=j[V[Q]]);return z},b=v.forwardRef(function(j,K){var z=v.useRef(null),V=function(Ie){var Me=j.onChange,Je=j.onSearch;Ie&&Ie.target&&Ie.type==="click"&&Je&&Je(Ie.target.value,Ie),Me&&Me(Ie)},Q=function(Ie){var Me;document.activeElement===((Me=z.current)===null||Me===void 0?void 0:Me.input)&&Ie.preventDefault()},G=function(Ie){var Me,Je=j.onSearch,Ve=j.loading,ut=j.disabled;if(Ve||ut)return;Je&&Je((Me=z.current)===null||Me===void 0?void 0:Me.input.value,Ie)},te=function(Ie){var Me=j.enterButton,Je=j.size;return Me?v.createElement(h.b.Consumer,{key:"enterButton"},function(Ve){return v.createElement(c.a,{className:"".concat(Ie,"-button"),type:"primary",size:Je||Ve},v.createElement(a.a,null))}):v.createElement(a.a,{className:"".concat(Ie,"-icon"),key:"loadingIcon"})},q=function(Ie){var Me=j.suffix,Je=j.enterButton,Ve=j.loading;if(Ve&&!Je)return[Me,te(Ie)];if(Je)return Me;var ut=v.createElement(l.a,{className:"".concat(Ie,"-icon"),key:"searchIcon",onClick:G});return Me?[Object(g.c)(Me,null,{key:"suffix"}),ut]:ut},le=function(Ie,Me){var Je=j.enterButton,Ve=j.disabled,ut=j.addonAfter,Fe=j.loading,ae="".concat(Ie,"-button");if(Fe&&Je)return[te(Ie),ut];if(!Je)return ut;var at,he=Je,J=he.type&&he.type.__ANT_BUTTON===!0;return J||he.type==="button"?at=Object(g.a)(he,t()({onMouseDown:Q,onClick:G,key:"enterButton"},J?{className:ae,size:Me}:{})):at=v.createElement(c.a,{className:ae,type:"primary",size:Me,disabled:Ve,key:"enterButton",onMouseDown:Q,onClick:G},Je===!0?v.createElement(l.a,null):Je),ut?[at,Object(g.c)(ut,null,{key:"addonAfter"})]:at},re=function(Ie){var Me=Ie.getPrefixCls,Je=Ie.direction,Ve=j.prefixCls,ut=j.inputPrefixCls,Fe=j.enterButton,ae=j.className,at=j.size,he=A(j,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete he.onSearch,delete he.loading;var J=Me("input-search",Ve),Y=Me("input",ut),$=function(be){var Ce;if(Fe){var Be;Ce=f()(J,ae,(Be={},x()(Be,"".concat(J,"-rtl"),Je==="rtl"),x()(Be,"".concat(J,"-enter-button"),!!Fe),x()(Be,"".concat(J,"-").concat(be),!!be),Be))}else Ce=f()(J,ae,x()({},"".concat(J,"-rtl"),Je==="rtl"));return Ce};return v.createElement(h.b.Consumer,null,function(de){return v.createElement(y.a,t()({ref:Object(s.a)(z,K),onPressEnter:G},he,{size:at||de,prefixCls:Y,addonAfter:le(J,at||de),suffix:q(J),onChange:V,className:$(at||de)}))})};return v.createElement(d.a,null,re)});b.defaultProps={enterButton:!1},b.displayName="Search";var S=b,E=n("whJP"),C=n("J4zp"),_=n.n(C),T=n("BGR+"),w=n("qPY4"),O=n.n(w),I=n("fUL4"),R=n.n(I),M=function(j,K){var z={};for(var V in j)Object.prototype.hasOwnProperty.call(j,V)&&K.indexOf(V)<0&&(z[V]=j[V]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(j);Q<V.length;Q++)K.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(j,V[Q])&&(z[V[Q]]=j[V[Q]]);return z},B={click:"onClick",hover:"onMouseOver"},P=v.forwardRef(function(j,K){var z=Object(v.useState)(!1),V=_()(z,2),Q=V[0],G=V[1],te=function(){var we=j.disabled;if(we)return;G(!Q)},q=function(we){var Ie,Me=j.action,Je=j.iconRender,Ve=Je===void 0?function(){return null}:Je,ut=B[Me]||"",Fe=Ve(Q),ae=(Ie={},x()(Ie,ut,te),x()(Ie,"className","".concat(we,"-icon")),x()(Ie,"key","passwordIcon"),x()(Ie,"onMouseDown",function(he){he.preventDefault()}),x()(Ie,"onMouseUp",function(he){he.preventDefault()}),Ie);return v.cloneElement(v.isValidElement(Fe)?Fe:v.createElement("span",null,Fe),ae)},le=function(we){var Ie=we.getPrefixCls,Me=j.className,Je=j.prefixCls,Ve=j.inputPrefixCls,ut=j.size,Fe=j.visibilityToggle,ae=M(j,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),at=Ie("input",Ve),he=Ie("input-password",Je),J=Fe&&q(he),Y=f()(he,Me,x()({},"".concat(he,"-").concat(ut),!!ut)),$=t()(t()({},Object(T.default)(ae,["suffix","iconRender"])),{type:Q?"text":"password",className:Y,prefixCls:at,suffix:J});return ut&&($.size=ut),v.createElement(y.a,t()({ref:K},$))};return v.createElement(d.a,null,le)});P.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(K){return K?v.createElement(O.a,null):v.createElement(R.a,null)}},P.displayName="Password";var X=P;y.a.Group=o,y.a.Search=S,y.a.TextArea=E.a,y.a.Password=X;var F=D.a=y.a},"5s0K":function(k,D,n){var y=n("bYtY");function p(){var x=[],v={},m;return{add:function(f,d,u,o,i){return y.isString(o)&&(i=o,o=0),v[f.id]?!1:(v[f.id]=1,x.push({el:f,target:d,time:u,delay:o,easing:i}),!0)},done:function(f){return m=f,this},start:function(){for(var f=x.length,d=0,u=x.length;d<u;d++){var o=x[d];o.el.animateTo(o.target,o.time,o.delay,o.easing,i)}return this;function i(){f--,f||(x.length=0,v={},m&&m())}}}}D.createWrap=p},"5yev":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};D.default=y},"6/nd":function(k,D,n){var y=n("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(k,D,n){var y=n("bYtY"),p=n("4NO4"),x=p.makeInner,v=n("zTMp"),m=n("Ez2D"),f=y.each,d=y.curry,u=x();function o(A,b,S){var E=A.currTrigger,C=[A.x,A.y],_=A,T=A.dispatchAction||y.bind(S.dispatchAction,S),w=b.getComponent("axisPointer").coordSysAxesInfo;if(!w)return;g(C)&&(C=m({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},b).point);var O=g(C),I=_.axesInfo,R=w.axesInfo,M=E==="leave"||g(C),B={},P={},X={list:[],map:{}},F={showPointer:d(s,P),showTooltip:d(e,X)};f(w.coordSysMap,function(K,z){var V=O||K.containPoint(C);f(w.coordSysAxesInfo[z],function(Q,G){var te=Q.axis,q=c(I,Q);if(!M&&V&&(!I||q)){var le=q&&q.value;le==null&&!O&&(le=te.pointToData(C)),le!=null&&i(Q,le,F,!1,B)}})});var j={};return f(R,function(K,z){var V=K.linkGroup;V&&!P[z]&&f(V.axesInfo,function(Q,G){var te=P[G];if(Q!==K&&te){var q=te.value;V.mapper&&(q=K.axis.scale.parse(V.mapper(q,h(Q),h(K)))),j[K.key]=q}})}),f(j,function(K,z){i(R[z],K,F,!0,B)}),l(P,R,B),r(X,C,A,T),a(R,T,S),B}function i(A,b,S,E,C){var _=A.axis;if(_.scale.isBlank()||!_.containData(b))return;if(!A.involveSeries){S.showPointer(A,b);return}var T=t(b,A),w=T.payloadBatch,O=T.snapToValue;w[0]&&C.seriesIndex==null&&y.extend(C,w[0]),!E&&A.snap&&(_.containData(O)&&O!=null&&(b=O)),S.showPointer(A,b,w,C),S.showTooltip(A,T,O)}function t(A,b){var S=b.axis,E=S.dim,C=A,_=[],T=Number.MAX_VALUE,w=-1;return f(b.seriesModels,function(O,I){var R=O.getData().mapDimension(E,!0),M,B;if(O.getAxisTooltipData){var P=O.getAxisTooltipData(R,A,S);B=P.dataIndices,M=P.nestestValue}else{if(B=O.getData().indicesOfNearest(R[0],A,S.type==="category"?.5:null),!B.length)return;M=O.getData().get(R[0],B[0])}if(M==null||!isFinite(M))return;var X=A-M,F=Math.abs(X);F<=T&&((F<T||X>=0&&w<0)&&(T=F,w=X,C=M,_.length=0),f(B,function(j){_.push({seriesIndex:O.seriesIndex,dataIndexInside:j,dataIndex:O.getData().getRawIndex(j)})}))}),{payloadBatch:_,snapToValue:C}}function s(A,b,S,E){A[b.key]={value:S,payloadBatch:E}}function e(A,b,S,E){var C=S.payloadBatch,_=b.axis,T=_.model,w=b.axisPointerModel;if(!b.triggerTooltip||!C.length)return;var O=b.coordSys.model,I=v.makeKey(O),R=A.map[I];R||(R=A.map[I]={coordSysId:O.id,coordSysIndex:O.componentIndex,coordSysType:O.type,coordSysMainType:O.mainType,dataByAxis:[]},A.list.push(R)),R.dataByAxis.push({axisDim:_.dim,axisIndex:T.componentIndex,axisType:T.type,axisId:T.id,value:E,valueLabelOpt:{precision:w.get("label.precision"),formatter:w.get("label.formatter")},seriesDataIndices:C.slice()})}function l(A,b,S){var E=S.axesInfo=[];f(b,function(C,_){var T=C.axisPointerModel.option,w=A[_];w?(!C.useHandle&&(T.status="show"),T.value=w.value,T.seriesDataIndices=(w.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,S,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:S.tooltipOption,position:S.position,dataIndexInside:C.dataIndexInside,dataIndex:C.dataIndex,seriesIndex:C.seriesIndex,dataByCoordSys:A.list})}function a(A,b,S){var E=S.getZr(),C="axisPointerLastHighlights",_=u(E)[C]||{},T=u(E)[C]={};f(A,function(I,R){var M=I.axisPointerModel.option;M.status==="show"&&f(M.seriesDataIndices,function(B){var P=B.seriesIndex+" | "+B.dataIndex;T[P]=B})});var w=[],O=[];y.each(_,function(I,R){!T[R]&&O.push(I)}),y.each(T,function(I,R){!_[R]&&w.push(I)}),O.length&&S.dispatchAction({type:"downplay",escapeConnect:!0,batch:O}),w.length&&S.dispatchAction({type:"highlight",escapeConnect:!0,batch:w})}function c(A,b){for(var S=0;S<(A||[]).length;S++){var E=A[S];if(b.axis.dim===E.axisDim&&b.axis.model.componentIndex===E.axisIndex)return E}}function h(A){var b=A.axis.model,S={},E=S.axisDim=A.axis.dim;return S.axisIndex=S[E+"AxisIndex"]=b.componentIndex,S.axisName=S[E+"AxisName"]=b.name,S.axisId=S[E+"AxisId"]=b.id,S}function g(A){return!A||A[0]==null||isNaN(A[0])||A[1]==null||isNaN(A[1])}k.exports=o},"6BzB":function(k,D,n){"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,u){return d.length===u?d:d.subarray?d.subarray(0,u):(d.length=u,d)}function p(d,u,o,i,t){if(u.subarray&&d.subarray){d.set(u.subarray(o,o+i),t);return}for(var s=0;s<i;s++)d[t+s]=u[o+s]}function x(d){var u,o,i,t,s,e;for(i=0,u=0,o=d.length;u<o;u++)i+=d[u].length;for(e=new Uint8Array(i),t=0,u=0,o=d.length;u<o;u++)s=d[u],e.set(s,t),t+=s.length;return e}var v=Uint8Array;D.Buf8=v;var m=Uint16Array;D.Buf16=m;var f=Int32Array;D.Buf32=f},"6D9b":function(k,D,n){},"6GrX":function(k,D,n){var y=n("mFDi"),p=n("Xnb7"),x=n("bYtY"),v=x.getContext,m=x.extend,f=x.retrieve2,d=x.retrieve3,u=x.trim,o={},i=0,t=5e3,s=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,e="12px sans-serif",l={};function r(X,F){l[X]=F}function a(X,F){F=F||e;var j=X+":"+F;if(o[j])return o[j];for(var K=(X+"").split(`
`),z=0,V=0,Q=K.length;V<Q;V++)z=Math.max(I(K[V],F).width,z);return i>t&&(i=0,o={}),i++,o[j]=z,z}function c(X,F,j,K,z,V,Q,G){return Q?g(X,F,j,K,z,V,Q,G):h(X,F,j,K,z,V,G)}function h(X,F,j,K,z,V,Q){var G=R(X,F,z,V,Q),te=a(X,F);z&&(te+=z[1]+z[3]);var q=G.outerHeight,le=A(0,te,j),re=b(0,q,K),we=new y(le,re,te,q);return we.lineHeight=G.lineHeight,we}function g(X,F,j,K,z,V,Q,G){var te=M(X,{rich:Q,truncate:G,font:F,textAlign:j,textPadding:z,textLineHeight:V}),q=te.outerWidth,le=te.outerHeight,re=A(0,q,j),we=b(0,le,K);return new y(re,we,q,le)}function A(X,F,j){return j==="right"?X-=F:j==="center"&&(X-=F/2),X}function b(X,F,j){return j==="middle"?X-=F/2:j==="bottom"&&(X-=F),X}function S(X,F,j){var K=F.textPosition,z=F.textDistance,V=j.x,Q=j.y;z=z||0;var G=j.height,te=j.width,q=G/2,le="left",re="top";switch(K){case"left":V-=z,Q+=q,le="right",re="middle";break;case"right":V+=z+te,Q+=q,re="middle";break;case"top":V+=te/2,Q-=z,le="center",re="bottom";break;case"bottom":V+=te/2,Q+=G+z,le="center";break;case"inside":V+=te/2,Q+=q,le="center",re="middle";break;case"insideLeft":V+=z,Q+=q,re="middle";break;case"insideRight":V+=te-z,Q+=q,le="right",re="middle";break;case"insideTop":V+=te/2,Q+=z,le="center";break;case"insideBottom":V+=te/2,Q+=G-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+=G-z,re="bottom";break;case"insideBottomRight":V+=te-z,Q+=G-z,le="right",re="bottom";break}return X=X||{},X.x=V,X.y=Q,X.textAlign=le,X.textVerticalAlign=re,X}function E(X,F,j){var K={textPosition:X,textDistance:j};return S({},K,F)}function C(X,F,j,K,z){if(!F)return"";var V=(X+"").split(`
`);z=_(F,j,K,z);for(var Q=0,G=V.length;Q<G;Q++)V[Q]=T(V[Q],z);return V.join(`
`)}function _(X,F,j,K){K=m({},K),K.font=F;var j=f(j,"...");K.maxIterations=f(K.maxIterations,2);var z=K.minChar=f(K.minChar,0);K.cnCharWidth=a("\u56FD",F);var V=K.ascCharWidth=a("a",F);K.placeholder=f(K.placeholder,"");for(var Q=X=Math.max(0,X-1),G=0;G<z&&Q>=V;G++)Q-=V;var te=a(j,F);return te>Q&&(j="",te=0),Q=X-te,K.ellipsis=j,K.ellipsisWidth=te,K.contentWidth=Q,K.containerWidth=X,K}function T(X,F){var j=F.containerWidth,K=F.font,z=F.contentWidth;if(!j)return"";var V=a(X,K);if(V<=j)return X;for(var Q=0;;Q++){if(V<=z||Q>=F.maxIterations){X+=F.ellipsis;break}var G=Q===0?w(X,z,F.ascCharWidth,F.cnCharWidth):V>0?Math.floor(X.length*z/V):0;X=X.substr(0,G),V=a(X,K)}return X===""&&(X=F.placeholder),X}function w(X,F,j,K){for(var z=0,V=0,Q=X.length;V<Q&&z<F;V++){var G=X.charCodeAt(V);z+=0<=G&&G<=127?j:K}return V}function O(X){return a("\u56FD",X)}function I(X,F){return l.measureText(X,F)}l.measureText=function(X,F){var j=v();return j.font=F||e,j.measureText(X)};function R(X,F,j,K,z){X!=null&&(X+="");var V=f(K,O(F)),Q=X?X.split(`
`):[],G=Q.length*V,te=G,q=!0;if(j&&(te+=j[0]+j[2]),X&&z){q=!1;var le=z.outerHeight,re=z.outerWidth;if(le!=null&&te>le)X="",Q=[];else if(re!=null)for(var we=_(re-(j?j[1]+j[3]:0),F,z.ellipsis,{minChar:z.minChar,placeholder:z.placeholder}),Ie=0,Me=Q.length;Ie<Me;Ie++)Q[Ie]=T(Q[Ie],we)}return{lines:Q,height:G,outerHeight:te,lineHeight:V,canCacheByTextString:q}}function M(X,F){var j={lines:[],width:0,height:0};if(X!=null&&(X+=""),!X)return j;for(var K=s.lastIndex=0,z;(z=s.exec(X))!=null;){var V=z.index;V>K&&B(j,X.substring(K,V)),B(j,z[2],z[1]),K=s.lastIndex}K<X.length&&B(j,X.substring(K,X.length));var Q=j.lines,G=0,te=0,q=[],le=F.textPadding,re=F.truncate,we=re&&re.outerWidth,Ie=re&&re.outerHeight;le&&(we!=null&&(we-=le[1]+le[3]),Ie!=null&&(Ie-=le[0]+le[2]));for(var Me=0;Me<Q.length;Me++){for(var Je=Q[Me],Ve=0,ut=0,Fe=0;Fe<Je.tokens.length;Fe++){var ae=Je.tokens[Fe],at=ae.styleName&&F.rich[ae.styleName]||{},he=ae.textPadding=at.textPadding,J=ae.font=at.font||F.font,Y=ae.textHeight=f(at.textHeight,O(J));if(he&&(Y+=he[0]+he[2]),ae.height=Y,ae.lineHeight=d(at.textLineHeight,F.textLineHeight,Y),ae.textAlign=at&&at.textAlign||F.textAlign,ae.textVerticalAlign=at&&at.textVerticalAlign||"middle",Ie!=null&&G+ae.lineHeight>Ie)return{lines:[],width:0,height:0};ae.textWidth=a(ae.text,J);var $=at.textWidth,de=$==null||$==="auto";if(typeof $=="string"&&$.charAt($.length-1)==="%")ae.percentWidth=$,q.push(ae),$=0;else{if(de){$=ae.textWidth;var be=at.textBackgroundColor,Ce=be&&be.image;Ce&&(Ce=p.findExistImage(Ce),p.isImageReady(Ce)&&($=Math.max($,Ce.width*Y/Ce.height)))}var Be=he?he[1]+he[3]:0;$+=Be;var fe=we!=null?we-ut:null;fe!=null&&fe<$&&(!de||fe<Be?(ae.text="",ae.textWidth=$=0):(ae.text=C(ae.text,fe-Be,J,re.ellipsis,{minChar:re.minChar}),ae.textWidth=a(ae.text,J),$=ae.textWidth+Be))}ut+=ae.width=$,at&&(Ve=Math.max(Ve,ae.lineHeight))}Je.width=ut,Je.lineHeight=Ve,G+=Ve,te=Math.max(te,ut)}j.outerWidth=j.width=f(F.textWidth,te),j.outerHeight=j.height=f(F.textHeight,G),le&&(j.outerWidth+=le[1]+le[3],j.outerHeight+=le[0]+le[2]);for(var Me=0;Me<q.length;Me++){var ae=q[Me],Se=ae.percentWidth;ae.width=parseInt(Se,10)/100*te}return j}function B(X,F,j){for(var K=F==="",z=F.split(`
`),V=X.lines,Q=0;Q<z.length;Q++){var G=z[Q],te={styleName:j,text:G,isLineHolder:!G&&!K};if(Q)V.push({tokens:[te]});else{var q=(V[V.length-1]||(V[0]={tokens:[]})).tokens,le=q.length;le===1&&q[0].isLineHolder?q[0]=te:(G||!le||K)&&q.push(te)}}}function P(X){var F=(X.fontSize||X.fontFamily)&&[X.fontStyle,X.fontWeight,(X.fontSize||12)+"px",X.fontFamily||"sans-serif"].join(" ");return F&&u(F)||X.textFont||X.font}D.DEFAULT_FONT=e,D.$override=r,D.getWidth=a,D.getBoundingRect=c,D.adjustTextX=A,D.adjustTextY=b,D.calculateTextPosition=S,D.adjustTextPositionOnRect=E,D.truncateText=C,D.getLineHeight=O,D.measureText=I,D.parsePlainText=R,D.parseRichText=M,D.makeFont=P},"6Hfg":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("FhB9")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="SwapRightOutlined";var i=v.forwardRef(o);D.default=i},"6Ic6":function(k,D,n){var y=n("bYtY"),p=y.each,x=n("4fz+"),v=n("iRjW"),m=n("Yl7c"),f=n("4NO4"),d=n("IwbS"),u=n("9H2F"),o=u.createTask,i=n("zM3Q"),t=f.makeInner(),s=i();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,S){},render:function(b,S,E,C){},highlight:function(b,S,E,C){a(b.getData(),C,"emphasis")},downplay:function(b,S,E,C){a(b.getData(),C,"normal")},remove:function(b,S){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var l=e.prototype;l.updateView=l.updateLayout=l.updateVisual=function(b,S,E,C){this.render(b,S,E,C)};function r(b,S,E){if(b&&(b.trigger(S,E),b.isGroup&&!d.isHighDownDispatcher(b)))for(var C=0,_=b.childCount();C<_;C++)r(b.childAt(C),S,E)}function a(b,S,E){var C=f.queryDataIndex(b,S),_=S&&S.highlightKey!=null?d.getHighlightDigit(S.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,S){t(b).updateMethod=S};function c(b){return s(b.model)}function h(b){var S=b.model,E=b.ecModel,C=b.api,_=b.payload,T=S.pipelineContext.progressiveRender,w=b.view,O=_&&t(_).updateMethod,I=T?"incrementalPrepareRender":O&&w[O]?O:"render";return I!=="render"&&w[I](S,E,C,_),g[I]}var g={incrementalPrepareRender:{progress:function(b,S){S.view.incrementalRender(b,S.model,S.ecModel,S.api,S.payload)}},render:{forceFirstProgress:!0,progress:function(b,S){S.view.render(S.model,S.ecModel,S.api,S.payload)}}},A=e;k.exports=A},"6MrE":function(k,D,n){},"6Qwc":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={8:"Backspace",9:"Tab",10:"NumpadClear",12:"Numpad5",13:"Enter",16:"ShiftLeft",17:"ControlLeft",18:"AltLeft",19:"Pause",20:"CapsLock",21:"Lang1",25:"Lang2",27:"Escape",28:"Convert",29:"NonConvert",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",44:"PrintScreen",45:"Insert",46:"Delete",47:"Help",48:"Digit0",49:"Digit1",50:"Digit2",51:"Digit3",52:"Digit4",53:"Digit5",54:"Digit6",55:"Digit7",56:"Digit8",57:"Digit9",91:"MetaLeft",92:"MetaRight",93:"ContextMenu",95:"Sleep",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",108:"NumpadDecimal",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",144:"NumLock",145:"ScrollLock",166:"BrowserBack",167:"BrowserForward",168:"BrowserRefresh",169:"BrowserStop",170:"BrowserSearch",171:"BrowserFavorites",172:"BrowserHome",173:"AudioVolumeMute",174:"AudioVolumeDown",175:"AudioVolumeUp",176:"MediaTrackNext",177:"MediaTrackPrevious",178:"MediaStop",179:"MediaPlayPause",180:"LaunchMail",181:"MediaSelect",182:"LaunchApp1",183:"LaunchApp2",225:"AltRight"};D.default=y},"6SEX":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("qWUW"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},"6UJt":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("v56E"),v=n.n(x),m=n("R9oj"),f=n("5NDa")},"6VBw":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("ODXe"),x=n("rePB"),v=n("Ff2n"),m=n("q1tI"),f=n("TSYQ"),d=n.n(f),u=n("Pw59"),o=n("Qi1f"),i=["icon","className","onClick","style","primaryColor","secondaryColor"],t={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function s(b){var S=b.primaryColor,E=b.secondaryColor;t.primaryColor=S,t.secondaryColor=E||Object(o.b)(S),t.calculated=!!E}function e(){return Object(y.a)({},t)}var l=function(S){var E=S.icon,C=S.className,_=S.onClick,T=S.style,w=S.primaryColor,O=S.secondaryColor,I=Object(v.a)(S,i),R=t;if(w&&(R={primaryColor:w,secondaryColor:O||Object(o.b)(w)}),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 M=E;return M&&typeof M.icon=="function"&&(M=Object(y.a)(Object(y.a)({},M),{},{icon:M.icon(R.primaryColor,R.secondaryColor)})),Object(o.a)(M.icon,"svg-".concat(M.name),Object(y.a)({className:C,onClick:_,style:T,"data-icon":M.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},I))};l.displayName="IconReact",l.getTwoToneColors=e,l.setTwoToneColors=s;var r=l;function a(b){var S=Object(o.d)(b),E=Object(p.a)(S,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"];a("#1890ff");var g=m.forwardRef(function(b,S){var E,C=b.className,_=b.icon,T=b.spin,w=b.rotate,O=b.tabIndex,I=b.onClick,R=b.twoToneColor,M=Object(v.a)(b,h),B=m.useContext(u.a),P=B.prefixCls,X=P===void 0?"anticon":P,F=B.rootClassName,j=d()(F,X,(E={},Object(x.a)(E,"".concat(X,"-").concat(_.name),!!_.name),Object(x.a)(E,"".concat(X,"-spin"),!!T||_.name==="loading"),E),C),K=O;K===void 0&&I&&(K=-1);var z=w?{msTransform:"rotate(".concat(w,"deg)"),transform:"rotate(".concat(w,"deg)")}:void 0,V=Object(o.d)(R),Q=Object(p.a)(V,2),G=Q[0],te=Q[1];return m.createElement("span",Object(y.a)(Object(y.a)({role:"img","aria-label":_.name},M),{},{ref:S,tabIndex:K,onClick:I,className:j}),m.createElement(r,{icon:_,primaryColor:G,secondaryColor:te,style:z}))});g.displayName="AntdIcon",g.getTwoToneColor=c,g.setTwoToneColor=a;var A=D.a=g},"6cGi":function(k,D,n){"use strict";n.d(D,"a",function(){return f});var y=n("ODXe"),p=n("mBDr"),x=n("TNol"),v=n("dm2S");function m(d){return d!==void 0}function f(d,u){var o=u||{},i=o.defaultValue,t=o.value,s=o.onChange,e=o.postState,l=Object(v.a)(function(){return m(t)?t:m(i)?typeof i=="function"?i():i:typeof d=="function"?d():d}),r=Object(y.a)(l,2),a=r[0],c=r[1],h=t!==void 0?t:a,g=e?e(h):h,A=Object(p.a)(s),b=Object(v.a)([h]),S=Object(y.a)(b,2),E=S[0],C=S[1];Object(x.b)(function(){var T=E[0];a!==T&&A(a,T)},[E]),Object(x.b)(function(){m(t)||c(t)},[t]);var _=Object(p.a)(function(T,w){c(T,w),C([h],w)});return[g,_]}},"6fms":function(k,D,n){var y=n("SUKs"),p=n("06Qe"),x=n("bYtY"),v=x.each;function m(o){return parseInt(o,10)}function f(o,i){p.initVML(),this.root=o,this.storage=i;var t=document.createElement("div"),s=document.createElement("div");t.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",s.style.cssText="position:absolute;left:0;top:0;",o.appendChild(t),this._vmlRoot=s,this._vmlViewport=t,this.resize();var e=i.delFromStorage,l=i.addToStorage;i.delFromStorage=function(r){e.call(i,r),r&&(r.onRemove&&r.onRemove(s))},i.addToStorage=function(r){r.onAdd&&r.onAdd(s),l.call(i,r)},this._firstPaint=!0}f.prototype={constructor:f,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var i=this.getViewportRoot();if(i)return{offsetLeft:i.offsetLeft||0,offsetTop:i.offsetTop||0}},refresh:function(){var i=this.storage.getDisplayList(!0,!0);this._paintList(i)},_paintList:function(i){for(var t=this._vmlRoot,s=0;s<i.length;s++){var e=i[s];e.invisible||e.ignore?(e.__alreadyNotVisible||e.onRemove(t),e.__alreadyNotVisible=!0):(e.__alreadyNotVisible&&e.onAdd(t),e.__alreadyNotVisible=!1,e.__dirty&&(e.beforeBrush&&e.beforeBrush(),(e.brushVML||e.brush).call(e,t),e.afterBrush&&e.afterBrush())),e.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(i,t){var i=i==null?this._getWidth():i,t=t==null?this._getHeight():t;if(this._width!==i||this._height!==t){this._width=i,this._height=t;var s=this._vmlViewport.style;s.width=i+"px",s.height=t+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var i=this.root,t=i.currentStyle;return(i.clientWidth||m(t.width))-m(t.paddingLeft)-m(t.paddingRight)|0},_getHeight:function(){var i=this.root,t=i.currentStyle;return(i.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 u=f;k.exports=u},"6ner":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("1OyB"),x=n("vuIU"),v=n("Ji7U"),m=n("LK+K"),f=n("q1tI"),d=n.n(f),u=n("m+aA"),o=n("Zm9Q"),i=n("Kwbf"),t=n("c+Xe"),s=n("bdgK"),e="rc-observer-key",l=function(r){Object(v.a)(c,r);var a=Object(m.a)(c);function c(){var h;return Object(p.a)(this,c),h=a.apply(this,arguments),h.resizeObserver=null,h.childNode=null,h.currentElement=null,h.state={width:0,height:0,offsetHeight:0,offsetWidth:0},h.onResize=function(g){var A=h.props.onResize,b=g[0].target,S=b.getBoundingClientRect(),E=S.width,C=S.height,_=b.offsetWidth,T=b.offsetHeight,w=Math.floor(E),O=Math.floor(C);if(h.state.width!==w||h.state.height!==O||h.state.offsetWidth!==_||h.state.offsetHeight!==T){var I={width:w,height:O,offsetWidth:_,offsetHeight:T};h.setState(I),A&&Promise.resolve().then(function(){A(Object(y.a)(Object(y.a)({},I),{},{offsetWidth:_,offsetHeight:T}))})}},h.setChildNode=function(g){h.childNode=g},h}return Object(x.a)(c,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var g=this.props.disabled;if(g){this.destroyObserver();return}var A=Object(u.a)(this.childNode||this),b=A!==this.currentElement;b&&(this.destroyObserver(),this.currentElement=A),!this.resizeObserver&&A&&(this.resizeObserver=new s.default(this.onResize),this.resizeObserver.observe(A))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var g=this.props.children,A=Object(o.a)(g);if(A.length>1)Object(i.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(A.length===0)return Object(i.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var b=A[0];if(f.isValidElement(b)&&Object(t.c)(b)){var S=b.ref;A[0]=f.cloneElement(b,{ref:Object(t.a)(S,this.setChildNode)})}return A.length===1?A[0]:A.map(function(E,C){return!f.isValidElement(E)||"key"in E&&E.key!==null?E:f.cloneElement(E,{key:"".concat(e,"-").concat(C)})})}}]),c}(f.Component);l.displayName="ResizeObserver",D.a=l},"6r85":function(k,D,n){var y=n("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")})}k.exports=p},"6sVZ":function(k,D){var n=Object.prototype;function y(p){var x=p&&p.constructor,v=typeof x=="function"&&x.prototype||n;return p===v}k.exports=y},"6uqw":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("ItGF"),v=n("YOMW"),m=n("XxSj"),f=n("K4ya"),d=n("4NO4"),u=n("OELB"),o=m.mapVisual,i=m.eachVisual,t=p.isArray,s=p.each,e=u.asc,l=u.linearMap,r=p.noop,a=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,S=b.precision,E=this.dataBound,C=b.formatter,_,T;if(A=A||["<",">"],p.isArray(h)&&(h=h.slice(),_=!0),T=g?h:_?[w(h[0]),w(h[1])]:w(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 w(O){return O===E[0]?"min":O===E[1]?"max":(+O).toFixed(Math.min(S,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,S=b.length-1;S>=0;S--){var E=b[S],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={}),S=g.controller||(g.controller={});p.merge(b,A),p.merge(S,A);var E=this.isCategory();C.call(this,b),C.call(this,S),_.call(this,b,"inRange","outOfRange"),T.call(this,S);function C(w){t(g.color)&&!w.inRange&&(w.inRange={color:g.color.slice().reverse()}),w.inRange=w.inRange||{color:h.get("gradientColor")},s(this.stateList,function(O){var I=w[O];if(p.isString(I)){var R=v.get(I,"active",E);R?(w[O]={},w[O][I]=R):delete w[O]}},this)}function _(w,O,I){var R=w[O],M=w[I];R&&!M&&(M=w[I]={},s(R,function(B,P){if(!m.isValidType(P))return;var X=v.get(P,"inactive",E);X!=null&&(M[P]=X,P==="color"&&!M.hasOwnProperty("opacity")&&!M.hasOwnProperty("colorAlpha")&&(M.opacity=[0,0]))}))}function T(w){var O=(w.inRange||{}).symbol||(w.outOfRange||{}).symbol,I=(w.inRange||{}).symbolSize||(w.outOfRange||{}).symbolSize,R=this.get("inactiveColor");s(this.stateList,function(M){var B=this.itemSize,P=w[M];P||(P=w[M]={color:E?R:[R]}),P.symbol==null&&(P.symbol=O&&p.clone(O)||(E?"roundRect":["roundRect"])),P.symbolSize==null&&(P.symbolSize=I&&p.clone(I)||(E?B[0]:[B[0],B[0]])),P.symbol=o(P.symbol,function(j){return j==="none"||j==="square"?"roundRect":j});var X=P.symbolSize;if(X!=null){var F=-Infinity;i(X,function(j){j>F&&(F=j)}),P.symbolSize=o(X,function(j){return l(j,[0,F],[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=a;k.exports=c},"6usn":function(k,D,n){var y=n("bYtY");function p(v,m){return y.map(["Radius","Angle"],function(f,d){var u=this["get"+f+"Axis"](),o=m[d],i=v[d]/2,t="dataTo"+f,s=u.type==="category"?u.getBandWidth():Math.abs(u[t](o-i)-u[t](o+i));return f==="Angle"&&(s=s*Math.PI/180),s},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(u){var o=m.dataToRadius(u[0]),i=f.dataToAngle(u[1]),t=v.coordToPoint([o,i]);return t.push(o,i*Math.PI/180),t}),size:y.bind(p,v)}}}k.exports=x},"6xvX":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("V7ic"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},"711d":function(k,D){function n(y){return function(p){return p==null?void 0:p[y]}}k.exports=n},"72pK":function(k,D){function n(x,v,m,f,d,u){x=x||0;var o=m[1]-m[0];if(d!=null&&(d=p(d,[0,o])),u!=null&&(u=Math.max(u,d!=null?d:0)),f==="all"){var i=Math.abs(v[1]-v[0]);i=p(i,[0,o]),d=u=p(i,[d,u]),f=0}v[0]=p(v[0],m),v[1]=p(v[1],m);var t=y(v,f);v[f]+=x;var s=d||0,e=m.slice();t.sign<0?e[0]+=s:e[1]-=s,v[f]=p(v[f],e);var l=y(v,f);d!=null&&(l.sign!==t.sign||l.span<d)&&(v[1-f]=v[f]+t.sign*d);var l=y(v,f);return u!=null&&l.span>u&&(v[1-f]=v[f]+l.sign*u),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))}k.exports=n},"75ce":function(k,D,n){var y=n("ProS");n("IXuL"),n("8X+K");var p=n("f5Yq"),x=n("h8O9"),v=n("/d5a");n("Ae16"),y.registerVisual(p("line","circle","line")),y.registerLayout(x("line")),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,v("line"))},"75ev":function(k,D,n){var y=n("ProS");n("IWNH"),n("bNin"),n("v5uJ");var p=n("f5Yq"),x=n("yik8");y.registerVisual(p("tree","circle")),y.registerLayout(x)},"77Zs":function(k,D,n){var y=n("Xi7e");function p(){this.__data__=new y,this.size=0}k.exports=p},"7AJT":function(k,D,n){var y=n("bYtY"),p=n("hM6l"),x=function(m,f,d,u,o){p.call(this,m,f,d),this.type=u||"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;k.exports=v},"7Cbv":function(k,D,n){"use strict";var y=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),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=[],u=0;u<256;++u)d.push((u+256).toString(16).substr(1));function o(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(d[e[l+0]]+d[e[l+1]]+d[e[l+2]]+d[e[l+3]]+"-"+d[e[l+4]]+d[e[l+5]]+"-"+d[e[l+6]]+d[e[l+7]]+"-"+d[e[l+8]]+d[e[l+9]]+"-"+d[e[l+10]]+d[e[l+11]]+d[e[l+12]]+d[e[l+13]]+d[e[l+14]]+d[e[l+15]]).toLowerCase();if(!f(r))throw TypeError("Stringified UUID is invalid");return r}var i=o;function t(e,l,r){e=e||{};var a=e.random||(e.rng||x)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,l){r=r||0;for(var c=0;c<16;++c)l[r+c]=a[c];return l}return i(a)}var s=D.a=t},"7DRL":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),v=x.createHashMap,m=x.isString,f=x.isArray,d=x.each,u=x.assert,o=n("MEGo"),i=o.parseXML,t=v(),s={registerMap:function(l,r,a){var c;return f(r)?c=r:r.svg?c=[{type:"svg",source:r.svg,specialAreas:r.specialAreas}]:(r.geoJson&&!r.features&&(a=r.specialAreas,r=r.geoJson),c=[{type:"geoJSON",source:r,specialAreas:a}]),d(c,function(h){var g=h.type;g==="geoJson"&&(g=h.type="geoJSON");var A=e[g];A(h)}),t.set(l,c)},retrieveMap:function(l){return t.get(l)}},e={geoJSON:function(l){var r=l.source;l.geoJSON=m(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r},svg:function(l){l.svgXML=i(l.source)}};k.exports=s},"7G+c":function(k,D,n){var y=n("bYtY"),p=y.createHashMap,x=y.isTypedArray,v=n("Yl7c"),m=v.enableClassCheck,f=n("k9D9"),d=f.SOURCE_FORMAT_ORIGINAL,u=f.SERIES_LAYOUT_BY_COLUMN,o=f.SOURCE_FORMAT_UNKNOWN,i=f.SOURCE_FORMAT_TYPED_ARRAY,t=f.SOURCE_FORMAT_KEYED_COLUMNS;function s(l){this.fromDataset=l.fromDataset,this.data=l.data||(l.sourceFormat===t?{}:[]),this.sourceFormat=l.sourceFormat||o,this.seriesLayoutBy=l.seriesLayoutBy||u,this.dimensionsDefine=l.dimensionsDefine,this.encodeDefine=l.encodeDefine&&p(l.encodeDefine),this.startIndex=l.startIndex||0,this.dimensionsDetectCount=l.dimensionsDetectCount}s.seriesDataToSource=function(l){return new s({data:l,sourceFormat:x(l)?i:d,fromDataset:!1})},m(s);var e=s;k.exports=e},"7GkX":function(k,D,n){var y=n("b80T"),p=n("A90E"),x=n("MMmD");function v(m){return x(m)?y(m):p(m)}k.exports=v},"7Kak":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("KPFz"),v=n.n(x)},"7Phj":function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=p.parsePercent,v=y.each;function m(o){var i=f(o);v(i,function(t){var s=t.seriesModels;if(!s.length)return;d(t),v(s,function(e,l){u(e,t.boxOffsetList[l],t.boxWidthList[l])})})}function f(o){var i=[],t=[];return o.eachSeriesByType("boxplot",function(s){var e=s.getBaseAxis(),l=y.indexOf(t,e);l<0&&(l=t.length,t[l]=e,i[l]={axis:e,seriesModels:[]}),i[l].seriesModels.push(s)}),i}function d(o){var i,t=o.axis,s=o.seriesModels,e=s.length,l=o.boxWidthList=[],r=o.boxOffsetList=[],a=[],c;if(t.type==="category")c=t.getBandWidth();else{var h=0;v(s,function(E){h=Math.max(h,E.getData().count())}),i=t.getExtent(),Math.abs(i[1]-i[0])/h}v(s,function(E){var C=E.get("boxWidth");y.isArray(C)||(C=[C,C]),a.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,S=b/2-g/2;v(s,function(E,C){r.push(S),S+=A+b,l.push(Math.min(Math.max(b,a[C][0]),a[C][1]))})}function u(o,i,t){var s=o.coordinateSystem,e=o.getData(),l=t/2,r=o.get("layout")==="horizontal"?0:1,a=1-r,c=["x","y"],h=e.mapDimension(c[r]),g=e.mapDimension(c[a],!0);if(h==null||g.length<5)return;for(var A=0;A<e.count();A++){var b=e.get(h,A),S=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),w=[];I(w,C,0),I(w,_,1),w.push(E,C,T,_),R(w,E),R(w,T),R(w,S),e.setItemLayout(A,{initBaseline:S[a],ends:w})}function O(M,B,P){var X=e.get(B,P),F=[];F[r]=M,F[a]=X;var j;return isNaN(M)||isNaN(X)?j=[NaN,NaN]:(j=s.dataToPoint(F),j[r]+=i),j}function I(M,B,P){var X=B.slice(),F=B.slice();X[r]+=l,F[r]-=l,P?M.push(X,F):M.push(F,X)}function R(M,B){var P=B.slice(),X=B.slice();P[r]-=l,X[r]+=l,M.push(P,X)}}k.exports=m},"7SHv":function(k,D,n){var y=n("LPTA"),p=y.devicePixelRatio,x=n("bYtY"),v=n("SUKs"),m=n("mFDi"),f=n("BPZU"),d=n("Xmg4"),u=n("mLcG"),o=n("Dagg"),i=n("ItGF"),t=1e5,s=314159,e=.01,l=.001;function r(_){return parseInt(_,10)}function a(_){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,w){return c.copy(_.getBoundingRect()),_.transform&&c.applyTransform(_.transform),h.width=T,h.height=w,!c.intersect(h)}function A(_,T){if(_===T)return!1;if(!_||!T||_.length!==T.length)return!0;for(var w=0;w<_.length;w++)if(_[w]!==T[w])return!0;return!1}function b(_,T){for(var w=0;w<_.length;w++){var O=_[w];O.setTransform(T),T.beginPath(),O.buildPath(T,O.shape),T.clip(),O.restoreTransform(T)}}function S(_,T){var w=document.createElement("div");return w.style.cssText=["position:relative","width:"+_+"px","height:"+T+"px","padding:0","margin:0","border-width:0"].join(";")+";",w}var E=function(T,w,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 R=T.style;R&&(R["-webkit-tap-highlight-color"]="transparent",R["-webkit-user-select"]=R["user-select"]=R["-webkit-touch-callout"]="none",T.innerHTML=""),this.storage=w;var M=this._zlevelList=[],B=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,I){var X=T.width,F=T.height;O.width!=null&&(X=O.width),O.height!=null&&(F=O.height),this.dpr=O.devicePixelRatio||1,T.width=X*this.dpr,T.height=F*this.dpr,this._width=X,this._height=F;var j=new d(T,this,this.dpr);j.__builtin__=!0,j.initContext(),B[s]=j,j.zlevel=s,M.push(s),this._domRoot=T}else{this._width=this._getSize(0),this._height=this._getSize(1);var P=this._domRoot=S(this._width,this._height);T.appendChild(P)}this._hoverlayer=null,this._hoverElements=[]};E.prototype={constructor:E,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var T=this.getViewportRoot();if(T)return{offsetLeft:T.offsetLeft||0,offsetTop:T.offsetTop||0}},refresh:function(T){var w=this.storage.getDisplayList(!0),O=this._zlevelList;this._redrawId=Math.random(),this._paintList(w,T,this._redrawId);for(var I=0;I<O.length;I++){var R=O[I],M=this._layers[R];if(!M.__builtin__&&M.refresh){var B=I===0?this._backgroundColor:null;M.refresh(B)}}return this.refreshHover(),this},addHover:function(T,w){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,w&&O.setStyle(w),this._hoverElements.push(O),O},removeHover:function(T){var w=T.__hoverMir,O=this._hoverElements,I=x.indexOf(O,w);I>=0&&O.splice(I,1),T.__hoverMir=null},clearHover:function(T){for(var w=this._hoverElements,O=0;O<w.length;O++){var I=w[O].__from;I&&(I.__hoverMir=null)}w.length=0},refreshHover:function(){var T=this._hoverElements,w=T.length,O=this._hoverlayer;if(O&&O.clear(),!w)return;f(T,this.storage.displayableSortFunc),O||(O=this._hoverlayer=this.getLayer(t));var I={};O.ctx.save();for(var R=0;R<w;){var M=T[R],B=M.__from;if(!(B&&B.__zr)){T.splice(R,1),B.__hoverMir=null,w--;continue}R++,B.invisible||(M.transform=B.transform,M.invTransform=B.invTransform,M.__clipPaths=B.__clipPaths,this._doPaintEl(M,O,!0,I))}O.ctx.restore()},getHoverLayer:function(){return this.getLayer(t)},_paintList:function(T,w,O){if(this._redrawId!==O)return;w=w||!1,this._updateLayerStatus(T);var I=this._doPaintList(T,w);if(this._needsManuallyCompositing&&this._compositeManually(),!I){var R=this;u(function(){R._paintList(T,w,O)})}},_compositeManually:function(){var T=this.getLayer(s).ctx,w=this._domRoot.width,O=this._domRoot.height;T.clearRect(0,0,w,O),this.eachBuiltinLayer(function(I){I.virtual&&T.drawImage(I.dom,0,0,w,O)})},_doPaintList:function(T,w){for(var O=[],I=0;I<this._zlevelList.length;I++){var R=this._zlevelList[I],M=this._layers[R];M.__builtin__&&M!==this._hoverlayer&&(M.__dirty||w)&&O.push(M)}for(var B=!0,P=0;P<O.length;P++){var M=O[P],X=M.ctx,F={};X.save();var j=w?M.__startIndex:M.__drawIndex,K=!w&&M.incremental&&Date.now,z=K&&Date.now(),V=M.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(M.__startIndex===M.__endIndex)M.clear(!1,V);else if(j===M.__startIndex){var Q=T[j];(!Q.incremental||!Q.notClear||w)&&M.clear(!1,V)}j===-1&&(console.error("For some unknown reason. drawIndex is -1"),j=M.__startIndex);for(var G=j;G<M.__endIndex;G++){var te=T[G];if(this._doPaintEl(te,M,w,F),te.__dirty=te.__dirtyText=!1,K){var q=Date.now()-z;if(q>15)break}}M.__drawIndex=G,M.__drawIndex<M.__endIndex&&(B=!1),F.prevElClipPaths&&X.restore(),X.restore()}return i.wxa&&x.each(this._layers,function(le){le&&le.ctx&&le.ctx.draw&&le.ctx.draw()}),B},_doPaintEl:function(T,w,O,I){var R=w.ctx,M=T.transform;if((w.__dirty||O)&&!T.invisible&&T.style.opacity!==0&&!(M&&!M[0]&&!M[3])&&!(T.culling&&g(T,this._width,this._height))){var B=T.__clipPaths,P=I.prevElClipPaths;(!P||A(B,P))&&(P&&(R.restore(),I.prevElClipPaths=null,I.prevEl=null),B&&(R.save(),b(B,R),I.prevElClipPaths=B)),T.beforeBrush&&T.beforeBrush(R),T.brush(R,I.prevEl||null),I.prevEl=T,T.afterBrush&&T.afterBrush(R)}},getLayer:function(T,w){this._singleCanvas&&!this._needsManuallyCompositing&&(T=s);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),w&&(O.virtual=w),this.insertLayer(T,O),O.initContext()),O},insertLayer:function(T,w){var O=this._layers,I=this._zlevelList,R=I.length,M=null,B=-1,P=this._domRoot;if(O[T]){v("ZLevel "+T+" has been used already");return}if(!a(w)){v("Layer of zlevel "+T+" is not valid");return}if(R>0&&T>I[0]){for(B=0;B<R-1&&!(I[B]<T&&I[B+1]>T);B++);M=O[I[B]]}if(I.splice(B+1,0,T),O[T]=w,!w.virtual)if(M){var X=M.dom;X.nextSibling?P.insertBefore(w.dom,X.nextSibling):P.appendChild(w.dom)}else P.firstChild?P.insertBefore(w.dom,P.firstChild):P.appendChild(w.dom)},eachLayer:function(T,w){var O=this._zlevelList,I,R;for(R=0;R<O.length;R++)I=O[R],T.call(w,this._layers[I],I)},eachBuiltinLayer:function(T,w){var O=this._zlevelList,I,R,M;for(M=0;M<O.length;M++)R=O[M],I=this._layers[R],I.__builtin__&&T.call(w,I,R)},eachOtherLayer:function(T,w){var O=this._zlevelList,I,R,M;for(M=0;M<O.length;M++)R=O[M],I=this._layers[R],I.__builtin__||T.call(w,I,R)},getLayers:function(){return this._layers},_updateLayerStatus:function(T){this.eachBuiltinLayer(function(F,j){F.__dirty=F.__used=!1});function w(F){R&&(R.__endIndex!==F&&(R.__dirty=!0),R.__endIndex=F)}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 R=null,M=0,B,O=0;O<T.length;O++){var I=T[O],P=I.zlevel,X;B!==P&&(B=P,M=0),I.incremental?(X=this.getLayer(P+l,this._needsManuallyCompositing),X.incremental=!0,M=1):X=this.getLayer(P+(M>0?e:0),this._needsManuallyCompositing),X.__builtin__||v("ZLevel "+P+" has been used by unkown layer "+X.id),X!==R&&(X.__used=!0,X.__startIndex!==O&&(X.__dirty=!0),X.__startIndex=O,X.incremental?X.__drawIndex=-1:X.__drawIndex=O,w(O),R=X),I.__dirty&&(X.__dirty=!0,X.incremental&&X.__drawIndex<0&&(X.__drawIndex=O))}w(O),this.eachBuiltinLayer(function(F,j){!F.__used&&F.getElementCount()>0&&(F.__dirty=!0,F.__startIndex=F.__endIndex=F.__drawIndex=0),F.__dirty&&F.__drawIndex<0&&(F.__drawIndex=F.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(T){T.clear()},setBackgroundColor:function(T){this._backgroundColor=T},configLayer:function(T,w){if(w){var O=this._layerConfig;O[T]?x.merge(O[T],w,!0):O[T]=w;for(var I=0;I<this._zlevelList.length;I++){var R=this._zlevelList[I];if(R===T||R===T+e){var M=this._layers[R];x.merge(M,O[T],!0)}}}},delLayer:function(T){var w=this._layers,O=this._zlevelList,I=w[T];if(!I)return;I.dom.parentNode.removeChild(I.dom),delete w[T],O.splice(x.indexOf(O,T),1)},resize:function(T,w){if(this._domRoot.style){var O=this._domRoot;O.style.display="none";var I=this._opts;if(T!=null&&(I.width=T),w!=null&&(I.height=w),T=this._getSize(0),w=this._getSize(1),O.style.display="",this._width!==T||w!==this._height){O.style.width=T+"px",O.style.height=w+"px";for(var R in this._layers)this._layers.hasOwnProperty(R)&&this._layers[R].resize(T,w);x.each(this._progressiveLayers,function(M){M.resize(T,w)}),this.refresh(!0)}this._width=T,this._height=w}else{if(T==null||w==null)return;this._width=T,this._height=w,this.getLayer(s).resize(T,w)}return this},clearLayer:function(T){var w=this._layers[T];w&&w.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[s].dom;var w=new d("image",this,T.pixelRatio||this.dpr);if(w.initContext(),w.clear(!1,T.backgroundColor||this._backgroundColor),T.pixelRatio<=this.dpr){this.refresh();var O=w.dom.width,I=w.dom.height,R=w.ctx;this.eachLayer(function(F){F.__builtin__?R.drawImage(F.dom,0,0,O,I):F.renderToCanvas&&(w.ctx.save(),F.renderToCanvas(w.ctx),w.ctx.restore())})}else for(var M={},B=this.storage.getDisplayList(!0),P=0;P<B.length;P++){var X=B[P];this._doPaintEl(X,w,!0,M)}return w.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(T){var w=this._opts,O=["width","height"][T],I=["clientWidth","clientHeight"][T],R=["paddingLeft","paddingTop"][T],M=["paddingRight","paddingBottom"][T];if(w[O]!=null&&w[O]!=="auto")return parseFloat(w[O]);var B=this.root,P=document.defaultView.getComputedStyle(B);return(B[I]||r(P[O])||r(B.style[O]))-(r(P[R])||0)-(r(P[M])||0)|0},pathToImage:function(T,w){w=w||this.dpr;var O=document.createElement("canvas"),I=O.getContext("2d"),R=T.getBoundingRect(),M=T.style,B=M.shadowBlur*w,P=M.shadowOffsetX*w,X=M.shadowOffsetY*w,F=M.hasStroke()?M.lineWidth:0,j=Math.max(F/2,-P+B),K=Math.max(F/2,P+B),z=Math.max(F/2,-X+B),V=Math.max(F/2,X+B),Q=R.width+j+K,G=R.height+z+V;O.width=Q*w,O.height=G*w,I.scale(w,w),I.clearRect(0,0,Q,G),I.dpr=w;var te={position:T.position,rotation:T.rotation,scale:T.scale};T.position=[j-R.x,z-R.y],T.rotation=0,T.scale=[1,1],T.updateTransform(),T&&T.brush(I);var q=o,le=new q({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;k.exports=C},"7a+S":function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("YXkt"),v=n("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,u,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 u=this._data.count();this.option.loop?d=(d%u+u)%u:(d>=u&&(d=u-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,u=d.data||[],o=d.axisType,i=this._names=[];if(o==="category"){var t=[];y.each(u,function(l,r){var a=v.getDataItemValue(l),c;y.isObject(l)?(c=y.clone(l),c.value=r):c=r,t.push(c),!y.isString(a)&&(a==null||isNaN(a))&&(a=""),i.push(a+"")}),u=t}var s={category:"ordinal",time:"time"}[o]||"number",e=this._data=new x([{name:"value",type:s}],this);e.initData(u,i)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}}),f=m;k.exports=f},"7aKB":function(k,D,n){var y=n("bYtY"),p=n("6GrX"),x=n("OELB");function v(S){return isNaN(S)?"-":(S=(S+"").split("."),S[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(S.length>1?"."+S[1]:""))}function m(S,E){return S=(S||"").toLowerCase().replace(/-(.)/g,function(C,_){return _.toUpperCase()}),E&&S&&(S=S.charAt(0).toUpperCase()+S.slice(1)),S}var f=y.normalizeCssArray,d=/([&<>"'])/g,u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function o(S){return S==null?"":(S+"").replace(d,function(E,C){return u[C]})}var i=["a","b","c","d","e","f","g"],t=function(S,E){return"{"+S+(E==null?"":E)+"}"};function s(S,E,C){y.isArray(E)||(E=[E]);var _=E.length;if(!_)return"";for(var T=E[0].$vars||[],w=0;w<T.length;w++){var O=i[w];S=S.replace(t(O),t(O,0))}for(var I=0;I<_;I++)for(var R=0;R<T.length;R++){var M=E[I][T[R]];S=S.replace(t(i[R],I),C?o(M):M)}return S}function e(S,E,C){return y.each(E,function(_,T){S=S.replace("{"+T+"}",C?o(_):_)}),S}function l(S,E){S=y.isString(S)?{color:S,extraCssText:E}:S||{};var C=S.color,_=S.type,E=S.extraCssText,T=S.renderMode||"html",w=S.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"+w+"|} ",style:{color:C}}:""}function r(S,E){return S+="","0000".substr(0,E-S.length)+S}function a(S,E,C){(S==="week"||S==="month"||S==="quarter"||S==="half-year"||S==="year")&&(S=`MM-dd
yyyy`);var _=x.parseDate(E),T=C?"UTC":"",w=_["get"+T+"FullYear"](),O=_["get"+T+"Month"]()+1,I=_["get"+T+"Date"](),R=_["get"+T+"Hours"](),M=_["get"+T+"Minutes"](),B=_["get"+T+"Seconds"](),P=_["get"+T+"Milliseconds"]();return S=S.replace("MM",r(O,2)).replace("M",O).replace("yyyy",w).replace("yy",w%100).replace("dd",r(I,2)).replace("d",I).replace("hh",r(R,2)).replace("h",R).replace("mm",r(M,2)).replace("m",M).replace("ss",r(B,2)).replace("s",B).replace("SSS",r(P,3)),S}function c(S){return S&&S.charAt(0).toUpperCase()+S.substr(1)}var h=p.truncateText;function g(S){return p.getBoundingRect(S.text,S.font,S.textAlign,S.textVerticalAlign,S.textPadding,S.textLineHeight,S.rich,S.truncate)}function A(S,E,C,_,T,w,O,I){return p.getBoundingRect(S,E,C,_,T,I,w,O)}function b(S,E){if(E==="_blank"||E==="blank"){var C=window.open();C.opener=null,C.location=S}else window.open(S,E)}D.addCommas=v,D.toCamelCase=m,D.normalizeCssArray=f,D.encodeHTML=o,D.formatTpl=s,D.formatTplSimple=e,D.getTooltipMarker=l,D.formatTime=a,D.capitalFirst=c,D.truncateText=h,D.getTextBoundingRect=g,D.getTextRect=A,D.windowOpen=b},"7bkD":function(k,D,n){var y=n("bYtY");function p(x,v){v=v||{};var m=x.coordinateSystem,f=x.axis,d={},u=f.position,o=f.orient,i=m.getRect(),t=[i.x,i.x+i.width,i.y,i.y+i.height],s={horizontal:{top:t[2],bottom:t[3]},vertical:{left:t[0],right:t[1]}};d.position=[o==="vertical"?s.vertical[u]:t[0],o==="horizontal"?s.horizontal[u]:t[3]];var e={horizontal:0,vertical:1};d.rotation=Math.PI/2*e[o];var l={top:-1,bottom:1,right:1,left:-1};d.labelDirection=d.tickDirection=d.nameDirection=l[u],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=u==="top"?-r:r,d.z2=1,d}D.layout=p},"7fqy":function(k,D){function n(y){var p=-1,x=Array(y.size);return y.forEach(function(v,m){x[++p]=[m,v]}),x}k.exports=n},"7hqr":function(k,D,n){var y=n("bYtY"),p=y.each,x=y.isString;function v(d,u,o){o=o||{};var i=o.byIndex,t=o.stackedCoordDimension,s=!!(d&&d.get("stack")),e,l,r,a;if(p(u,function(A,b){x(A)&&(u[b]=A={name:A}),s&&!A.isExtraCoord&&(!i&&!e&&A.ordinalMeta&&(e=A),!l&&A.type!=="ordinal"&&A.type!=="time"&&(!t||t===A.coordDim)&&(l=A))}),l&&!i&&!e&&(i=!0),l){r="__\0ecstackresult",a="__\0ecstackedover",e&&(e.createInvertedIndices=!0);var c=l.coordDim,h=l.type,g=0;p(u,function(A){A.coordDim===c&&g++}),u.push({name:r,coordDim:c,coordDimIndex:g,type:h,isExtraCoord:!0,isCalculationCoord:!0}),g++,u.push({name:a,coordDim:a,coordDimIndex:g,type:h,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:l&&l.name,stackedByDimension:e&&e.name,isStackedByIndex:i,stackedOverDimension:a,stackResultDimension:r}}function m(d,u){return!!u&&u===d.getCalculationInfo("stackedDimension")}function f(d,u){return m(d,u)?d.getCalculationInfo("stackResultDimension"):u}D.enableDataStack=v,D.isDimensionStacked=m,D.getStackedDimension=f},"7mYs":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS"),v=n("7aKB"),m=n("OELB"),f={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},d={EN:["S","M","T","W","T","F","S"],CN:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},u=y.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(o,i,t){var s=this.group;s.removeAll();var e=o.coordinateSystem,l=e.getRangeInfo(),r=e.getOrient();this._renderDayRect(o,l,s),this._renderLines(o,l,r,s),this._renderYearText(o,l,r,s),this._renderMonthText(o,r,s),this._renderWeekText(o,l,r,s)},_renderDayRect:function(o,i,t){for(var s=o.coordinateSystem,e=o.getModel("itemStyle").getItemStyle(),l=s.getCellWidth(),r=s.getCellHeight(),a=i.start.time;a<=i.end.time;a=s.getNextNDay(a,1).time){var c=s.dataToRect([a],!1).tl,h=new x.Rect({shape:{x:c[0],y:c[1],width:l,height:r},cursor:"default",style:e});t.add(h)}},_renderLines:function(o,i,t,s){var e=this,l=o.coordinateSystem,r=o.getModel("splitLine.lineStyle").getLineStyle(),a=o.get("splitLine.show"),c=r.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=i.start,g=0;h.time<=i.end.time;g++){b(h.formatedDate),g===0&&(h=l.getDateInfo(i.start.y+"-"+i.start.m));var A=h.date;A.setMonth(A.getMonth()+1),h=l.getDateInfo(A)}b(l.getNextNDay(i.end.time,1).formatedDate);function b(S){e._firstDayOfMonth.push(l.getDateInfo(S)),e._firstDayPoints.push(l.dataToRect([S],!1).tl);var E=e._getLinePointsOfOneWeek(o,S,t);e._tlpoints.push(E[0]),e._blpoints.push(E[E.length-1]),a&&e._drawSplitline(E,r,s)}a&&this._drawSplitline(e._getEdgesPoints(e._tlpoints,c,t),r,s),a&&this._drawSplitline(e._getEdgesPoints(e._blpoints,c,t),r,s)},_getEdgesPoints:function(o,i,t){var s=[o[0].slice(),o[o.length-1].slice()],e=t==="horizontal"?0:1;return s[0][e]=s[0][e]-i/2,s[1][e]=s[1][e]+i/2,s},_drawSplitline:function(o,i,t){var s=new x.Polyline({z2:20,shape:{points:o},style:i});t.add(s)},_getLinePointsOfOneWeek:function(o,i,t){var s=o.coordinateSystem;i=s.getDateInfo(i);for(var e=[],l=0;l<7;l++){var r=s.getNextNDay(i.time,l),a=s.dataToRect([r.time],!1);e[2*r.day]=a.tl,e[2*r.day+1]=a[t==="horizontal"?"bl":"tr"]}return e},_formatterLabel:function(o,i){return typeof o=="string"&&o?v.formatTplSimple(o,i):typeof o=="function"?o(i):i.nameMap},_yearTextPositionControl:function(o,i,t,s,e){i=i.slice();var l=["center","bottom"];s==="bottom"?(i[1]+=e,l=["center","top"]):s==="left"?i[0]-=e:s==="right"?(i[0]+=e,l=["center","top"]):i[1]-=e;var r=0;return(s==="left"||s==="right")&&(r=Math.PI/2),{rotation:r,position:i,style:{textAlign:l[0],textVerticalAlign:l[1]}}},_renderYearText:function(o,i,t,s){var e=o.getModel("yearLabel");if(!e.get("show"))return;var l=e.get("margin"),r=e.get("position");r||(r=t!=="horizontal"?"top":"left");var a=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(a[0][0]+a[1][0])/2,h=(a[0][1]+a[1][1])/2,g=t==="horizontal"?0:1,A={top:[c,a[g][1]],bottom:[c,a[1-g][1]],left:[a[1-g][0],h],right:[a[g][0],h]},b=i.start.y;+i.end.y>+i.start.y&&(b=b+"-"+i.end.y);var S=e.get("formatter"),E={start:i.start.y,end:i.end.y,nameMap:b},C=this._formatterLabel(S,E),_=new x.Text({z2:30});x.setTextStyle(_.style,e,{text:C}),_.attr(this._yearTextPositionControl(_,A[r],t,r,l)),s.add(_)},_monthTextPositionControl:function(o,i,t,s,e){var l="left",r="top",a=o[0],c=o[1];return t==="horizontal"?(c=c+e,i&&(l="center"),s==="start"&&(r="bottom")):(a=a+e,i&&(r="middle"),s==="start"&&(l="right")),{x:a,y:c,textAlign:l,textVerticalAlign:r}},_renderMonthText:function(o,i,t){var s=o.getModel("monthLabel");if(!s.get("show"))return;var e=s.get("nameMap"),l=s.get("margin"),r=s.get("position"),a=s.get("align"),c=[this._tlpoints,this._blpoints];p.isString(e)&&(e=f[e.toUpperCase()]||[]);var h=r==="start"?0:1,g=i==="horizontal"?0:1;l=r==="start"?-l:l;for(var A=a==="center",b=0;b<c[h].length-1;b++){var S=c[h][b].slice(),E=this._firstDayOfMonth[b];if(A){var C=this._firstDayPoints[b];S[g]=(C[g]+c[0][b+1][g])/2}var _=s.get("formatter"),T=e[+E.m-1],w={yyyy:E.y,yy:(E.y+"").slice(2),MM:E.m,M:+E.m,nameMap:T},O=this._formatterLabel(_,w),I=new x.Text({z2:30});p.extend(x.setTextStyle(I.style,s,{text:O}),this._monthTextPositionControl(S,A,i,r,l)),t.add(I)}},_weekTextPositionControl:function(o,i,t,s,e){var l="center",r="middle",a=o[0],c=o[1],h=t==="start";return i==="horizontal"?(a=a+s+(h?1:-1)*e[0]/2,l=h?"right":"left"):(c=c+s+(h?1:-1)*e[1]/2,r=h?"bottom":"top"),{x:a,y:c,textAlign:l,textVerticalAlign:r}},_renderWeekText:function(o,i,t,s){var e=o.getModel("dayLabel");if(!e.get("show"))return;var l=o.coordinateSystem,r=e.get("position"),a=e.get("nameMap"),c=e.get("margin"),h=l.getFirstDayOfWeek();p.isString(a)&&(a=d[a.toUpperCase()]||[]);var g=l.getNextNDay(i.end.time,7-i.lweek).time,A=[l.getCellWidth(),l.getCellHeight()];c=m.parsePercent(c,A[t==="horizontal"?0:1]),r==="start"&&(g=l.getNextNDay(i.start.time,-(7+i.fweek)).time,c=-c);for(var b=0;b<7;b++){var S=l.getNextNDay(g,b),E=l.dataToRect([S.time],!1).center,C=b;C=Math.abs((b+h)%7);var _=new x.Text({z2:30});p.extend(x.setTextStyle(_.style,e,{text:a[C]}),this._weekTextPositionControl(E,t,r,c,A)),s.add(_)}}});k.exports=u},"7oTu":function(k,D,n){var y=n("IMiH"),p=n("QBsz"),x=p.applyTransform,v=y.CMD,m=[[],[],[]],f=Math.sqrt,d=Math.atan2;function u(o,i){var t=o.data,s,e,l,r,a,c,h=v.M,g=v.C,A=v.L,b=v.R,S=v.A,E=v.Q;for(l=0,r=0;l<t.length;){s=t[l++],r=l,e=0;switch(s){case h:e=1;break;case A:e=1;break;case g:e=3;break;case E:e=2;break;case S:var C=i[4],_=i[5],T=f(i[0]*i[0]+i[1]*i[1]),w=f(i[2]*i[2]+i[3]*i[3]),O=d(-i[1]/w,i[0]/T);t[l]*=T,t[l++]+=C,t[l]*=w,t[l++]+=_,t[l++]*=T,t[l++]*=w,t[l++]+=O,t[l++]+=O,l+=2,r=l;break;case b:c[0]=t[l++],c[1]=t[l++],x(c,c,i),t[r++]=c[0],t[r++]=c[1],c[0]+=t[l++],c[1]+=t[l++],x(c,c,i),t[r++]=c[0],t[r++]=c[1]}for(a=0;a<e;a++){var c=m[a];c[0]=t[l++],c[1]=t[l++],x(c,c,i),t[r++]=c[0],t[r++]=c[1]}}}k.exports=u},"7pVf":function(k,D,n){var y=n("ProS"),p=n("ZqQs");n("oE7X"),n("OUJF"),n("3X6L"),n("NH9N"),y.registerPreprocessor(p)},"7ph2":function(k,D){function n(x){return x instanceof Array||(x=[x,x]),x}var y="lineStyle.opacity".split("."),p={seriesType:"lines",reset:function(x,v,m){var f=n(x.get("symbol")),d=n(x.get("symbolSize")),u=x.getData();u.setVisual("fromSymbol",f&&f[0]),u.setVisual("toSymbol",f&&f[1]),u.setVisual("fromSymbolSize",d&&d[0]),u.setVisual("toSymbolSize",d&&d[1]),u.setVisual("opacity",x.get(y));function o(i,t){var s=i.getItemModel(t),e=n(s.getShallow("symbol",!0)),l=n(s.getShallow("symbolSize",!0)),r=s.get(y);e[0]&&i.setItemVisual(t,"fromSymbol",e[0]),e[1]&&i.setItemVisual(t,"toSymbol",e[1]),l[0]&&i.setItemVisual(t,"fromSymbolSize",l[0]),l[1]&&i.setItemVisual(t,"toSymbolSize",l[1]),i.setItemVisual(t,"opacity",r)}return{dataEach:u.hasItemOption?o:null}}};k.exports=p},"7uqq":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),v=n("bYtY"),m=n("AUH6"),f=n("+TT/"),d=n("OELB"),u=n("W4dC"),o=n("7DRL");function i(l,r){var a=l.get("boundingCoords");if(a!=null){var c=a[0],h=a[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=l.get("layoutCenter"),S=l.get("layoutSize"),E=r.getWidth(),C=r.getHeight(),_=g.width/g.height*this.aspectScale,T=!1;b&&S&&(b=[d.parsePercent(b[0],E),d.parsePercent(b[1],C)],S=d.parsePercent(S,Math.min(E,C)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(S)&&(T=!0));var w;if(T){var w={};_>1?(w.width=S,w.height=S/_):(w.height=S,w.width=S*_),w.y=b[1]-w.height/2,w.x=b[0]-w.width/2}else A=l.getBoxLayoutParams(),A.aspect=_,w=f.getLayoutRect(A,{width:E,height:C});this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(l.get("center")),this.setZoom(l.get("zoom"))}function t(l,r){v.each(r.get("geoCoord"),function(a,c){l.addGeoCoord(c,a)})}var s={dimensions:m.prototype.dimensions,create:function(l,r){var a=[];l.eachComponent("geo",function(h,g){var A=h.get("map"),b=h.get("aspectScale"),S=!0,E=o.retrieveMap(A);E&&E[0]&&E[0].type==="svg"?(b==null&&(b=1),S=!1):b==null&&(b=.75);var C=new m(A+g,A,h.get("nameMap"),S);C.aspectScale=b,C.zoomLimit=h.get("scaleLimit"),a.push(C),t(C,h),h.coordinateSystem=C,C.model=h,C.resize=i,C.resize(h,r)}),l.eachSeries(function(h){var g=h.get("coordinateSystem");if(g==="geo"){var A=h.get("geoIndex")||0;h.coordinateSystem=a[A]}});var c={};return l.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(S){return S.get("nameMap")}),b=new m(g,g,v.mergeAll(A));b.zoomLimit=v.retrieve.apply(null,v.map(h,function(S){return S.get("scaleLimit")})),a.push(b),b.resize=i,b.aspectScale=h[0].get("aspectScale"),b.resize(h[0],r),v.each(h,function(S){S.coordinateSystem=b,t(b,S)})}),a},getFilledRegions:function(l,r,a){for(var c=(l||[]).slice(),h=v.createHashMap(),g=0;g<c.length;g++)h.set(c[g].name,c[g]);var A=u.load(r,a);return v.each(A.regions,function(b){var S=b.name;!h.get(S)&&c.push({name:S})}),c}};x.registerCoordinateSystem("geo",s);var e=s;k.exports=e},"7yuC":function(k,D,n){var y=n("QBsz"),p=y.scaleAndAdd;function x(v,m,f){for(var d=f.rect,u=d.width,o=d.height,i=[d.x+u/2,d.y+o/2],t=f.gravity==null?.1:f.gravity,s=0;s<v.length;s++){var e=v[s];e.p||(e.p=y.create(u*(Math.random()-.5)+i[0],o*(Math.random()-.5)+i[1])),e.pp=y.clone(e.p),e.edges=null}var l=f.friction==null?.6:f.friction,r=l;return{warmUp:function(){r=l*.8},setFixed:function(a){v[a].fixed=!0},setUnfixed:function(a){v[a].fixed=!1},step:function(a){for(var c=[],h=v.length,g=0;g<m.length;g++){var A=m[g];if(A.ignoreForceLayout)continue;var b=A.n1,S=A.n2;y.sub(c,S.p,b.p);var E=y.len(c)-A.d,C=S.w/(b.w+S.w);isNaN(C)&&(C=0),y.normalize(c,c),!b.fixed&&p(b.p,b.p,c,C*E*r),!S.fixed&&p(S.p,S.p,c,-(1-C)*E*r)}for(var g=0;g<h;g++){var _=v[g];_.fixed||(y.sub(c,i,_.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 S=v[T];y.sub(c,S.p,b.p);var E=y.len(c);E===0&&(y.set(c,Math.random()-.5,Math.random()-.5),E=1);var w=(b.rep+S.rep)/E/E;!b.fixed&&p(b.pp,b.pp,c,w),!S.fixed&&p(S.pp,S.pp,c,-w)}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,a&&a(v,m,r<.01)}}}D.forceLayout=x},"8+yF":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={256:960,257:992,258:451,259:483,260:417,261:433,262:454,263:486,264:710,265:742,266:709,267:741,268:456,269:488,270:463,271:495,272:464,273:496,274:938,275:954,278:972,279:1004,280:458,281:490,282:460,283:492,284:728,285:760,286:683,287:699,288:725,289:757,290:939,291:955,292:678,293:694,294:673,295:689,296:933,297:949,298:975,299:1007,302:967,303:999,304:681,305:697,308:684,309:700,310:979,311:1011,312:930,313:453,314:485,315:934,316:950,317:421,318:437,321:419,322:435,323:465,324:497,325:977,326:1009,327:466,328:498,330:957,331:959,332:978,333:1010,336:469,337:501,338:5052,339:5053,340:448,341:480,342:931,343:947,344:472,345:504,346:422,347:438,348:734,349:766,350:426,351:442,352:425,353:441,354:478,355:510,356:427,357:443,358:940,359:956,360:989,361:1021,362:990,363:1022,364:733,365:765,366:473,367:505,368:475,369:507,370:985,371:1017,376:5054,377:428,378:444,379:431,380:447,381:430,382:446,402:2294,466:16777681,711:439,728:418,729:511,731:434,733:445,901:1966,902:1953,904:1954,905:1955,906:1956,908:1959,910:1960,911:1963,912:1974,913:1985,914:1986,915:1987,916:1988,917:1989,918:1990,919:1991,920:1992,921:1993,922:1994,923:1995,924:1996,925:1997,926:1998,927:1999,928:2e3,929:2001,931:2002,932:2004,933:2005,934:2006,935:2007,936:2008,937:2009,938:1957,939:1961,940:1969,941:1970,942:1971,943:1972,944:1978,945:2017,946:2018,947:2019,948:2020,949:2021,950:2022,951:2023,952:2024,953:2025,954:2026,955:2027,956:2028,957:2029,958:2030,959:2031,960:2032,961:2033,962:2035,963:2034,964:2036,965:2037,966:2038,967:2039,968:2040,969:2041,970:1973,971:1977,972:1975,973:1976,974:1979,1025:1715,1026:1713,1027:1714,1028:1716,1029:1717,1030:1718,1031:1719,1032:1720,1033:1721,1034:1722,1035:1723,1036:1724,1038:1726,1039:1727,1040:1761,1041:1762,1042:1783,1043:1767,1044:1764,1045:1765,1046:1782,1047:1786,1048:1769,1049:1770,1050:1771,1051:1772,1052:1773,1053:1774,1054:1775,1055:1776,1056:1778,1057:1779,1058:1780,1059:1781,1060:1766,1061:1768,1062:1763,1063:1790,1064:1787,1065:1789,1066:1791,1067:1785,1068:1784,1069:1788,1070:1760,1071:1777,1072:1729,1073:1730,1074:1751,1075:1735,1076:1732,1077:1733,1078:1750,1079:1754,1080:1737,1081:1738,1082:1739,1083:1740,1084:1741,1085:1742,1086:1743,1087:1744,1088:1746,1089:1747,1090:1748,1091:1749,1092:1734,1093:1736,1094:1731,1095:1758,1096:1755,1097:1757,1098:1759,1099:1753,1100:1752,1101:1756,1102:1728,1103:1745,1105:1699,1106:1697,1107:1698,1108:1700,1109:1701,1110:1702,1111:1703,1112:1704,1113:1705,1114:1706,1115:1707,1116:1708,1118:1710,1119:1711,1168:1725,1169:1709,1488:3296,1489:3297,1490:3298,1491:3299,1492:3300,1493:3301,1494:3302,1495:3303,1496:3304,1497:3305,1498:3306,1499:3307,1500:3308,1501:3309,1502:3310,1503:3311,1504:3312,1505:3313,1506:3314,1507:3315,1508:3316,1509:3317,1510:3318,1511:3319,1512:3320,1513:3321,1514:3322,1548:1452,1563:1467,1567:1471,1569:1473,1570:1474,1571:1475,1572:1476,1573:1477,1574:1478,1575:1479,1576:1480,1577:1481,1578:1482,1579:1483,1580:1484,1581:1485,1582:1486,1583:1487,1584:1488,1585:1489,1586:1490,1587:1491,1588:1492,1589:1493,1590:1494,1591:1495,1592:1496,1593:1497,1594:1498,1600:1504,1601:1505,1602:1506,1603:1507,1604:1508,1605:1509,1606:1510,1607:1511,1608:1512,1609:1513,1610:1514,1611:1515,1612:1516,1613:1517,1614:1518,1615:1519,1616:1520,1617:1521,1618:1522,3585:3489,3586:3490,3587:3491,3588:3492,3589:3493,3590:3494,3591:3495,3592:3496,3593:3497,3594:3498,3595:3499,3596:3500,3597:3501,3598:3502,3599:3503,3600:3504,3601:3505,3602:3506,3603:3507,3604:3508,3605:3509,3606:3510,3607:3511,3608:3512,3609:3513,3610:3514,3611:3515,3612:3516,3613:3517,3614:3518,3615:3519,3616:3520,3617:3521,3618:3522,3619:3523,3620:3524,3621:3525,3622:3526,3623:3527,3624:3528,3625:3529,3626:3530,3627:3531,3628:3532,3629:3533,3630:3534,3631:3535,3632:3536,3633:3537,3634:3538,3635:3539,3636:3540,3637:3541,3638:3542,3639:3543,3640:3544,3641:3545,3642:3546,3647:3551,3648:3552,3649:3553,3650:3554,3651:3555,3652:3556,3653:3557,3654:3558,3655:3559,3656:3560,3657:3561,3658:3562,3659:3563,3660:3564,3661:3565,3664:3568,3665:3569,3666:3570,3667:3571,3668:3572,3669:3573,3670:3574,3671:3575,3672:3576,3673:3577,8194:2722,8195:2721,8196:2723,8197:2724,8199:2725,8200:2726,8201:2727,8202:2728,8210:2747,8211:2730,8212:2729,8213:1967,8215:3295,8216:2768,8217:2769,8218:2813,8220:2770,8221:2771,8222:2814,8224:2801,8225:2802,8226:2790,8229:2735,8230:2734,8240:2773,8242:2774,8243:2775,8248:2812,8254:1150,8361:3839,8364:8364,8453:2744,8470:1712,8471:2811,8478:2772,8482:2761,8531:2736,8532:2737,8533:2738,8534:2739,8535:2740,8536:2741,8537:2742,8538:2743,8539:2755,8540:2756,8541:2757,8542:2758,8592:2299,8593:2300,8594:2301,8595:2302,8658:2254,8660:2253,8706:2287,8711:2245,8728:3018,8730:2262,8733:2241,8734:2242,8743:2270,8744:2271,8745:2268,8746:2269,8747:2239,8756:2240,8764:2248,8771:2249,8773:16785992,8800:2237,8801:2255,8804:2236,8805:2238,8834:2266,8835:2267,8866:3068,8867:3036,8868:3010,8869:3022,8968:3027,8970:3012,8981:2810,8992:2212,8993:2213,9109:3020,9115:2219,9117:2220,9118:2221,9120:2222,9121:2215,9123:2216,9124:2217,9126:2218,9128:2223,9132:2224,9143:2209,9146:2543,9147:2544,9148:2546,9149:2547,9225:2530,9226:2533,9227:2537,9228:2531,9229:2532,9251:2732,9252:2536,9472:2211,9474:2214,9484:2210,9488:2539,9492:2541,9496:2538,9500:2548,9508:2549,9516:2551,9524:2550,9532:2542,9618:2529,9642:2791,9643:2785,9644:2779,9645:2786,9646:2783,9647:2767,9650:2792,9651:2787,9654:2781,9655:2765,9660:2793,9661:2788,9664:2780,9665:2764,9670:2528,9675:2766,9679:2782,9702:2784,9734:2789,9742:2809,9747:2762,9756:2794,9758:2795,9792:2808,9794:2807,9827:2796,9829:2798,9830:2797,9837:2806,9839:2805,10003:2803,10007:2804,10013:2777,10016:2800,10216:2748,10217:2750,12289:1188,12290:1185,12300:1186,12301:1187,12443:1246,12444:1247,12449:1191,12450:1201,12451:1192,12452:1202,12453:1193,12454:1203,12455:1194,12456:1204,12457:1195,12458:1205,12459:1206,12461:1207,12463:1208,12465:1209,12467:1210,12469:1211,12471:1212,12473:1213,12475:1214,12477:1215,12479:1216,12481:1217,12483:1199,12484:1218,12486:1219,12488:1220,12490:1221,12491:1222,12492:1223,12493:1224,12494:1225,12495:1226,12498:1227,12501:1228,12504:1229,12507:1230,12510:1231,12511:1232,12512:1233,12513:1234,12514:1235,12515:1196,12516:1236,12517:1197,12518:1237,12519:1198,12520:1238,12521:1239,12522:1240,12523:1241,12524:1242,12525:1243,12527:1244,12530:1190,12531:1245,12539:1189,12540:1200},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(k,D,n){"use strict";function y(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(a){return typeof a}:y=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},y(l)}Object.defineProperty(D,"__esModule",{value:!0}),D.getKeycode=t,D.getKey=s,D.getKeysym=e;var p=i(n("mHUz")),x=i(n("8+yF")),v=i(n("6Qwc")),m=i(n("gIYZ")),f=i(n("mTgk")),d=o(n("GdRQ"));function u(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return u=function(){return l},l}function o(l){if(l&&l.__esModule)return l;if(l===null||y(l)!=="object"&&typeof l!="function")return{default:l};var r=u();if(r&&r.has(l))return r.get(l);var a={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in l)if(Object.prototype.hasOwnProperty.call(l,h)){var g=c?Object.getOwnPropertyDescriptor(l,h):null;g&&(g.get||g.set)?Object.defineProperty(a,h,g):a[h]=l[h]}return a.default=l,r&&r.set(l,a),a}function i(l){return l&&l.__esModule?l:{default:l}}function t(l){if(l.code){switch(l.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return l.code}if(l.type!=="keypress"&&l.keyCode in v.default){var r=v.default[l.keyCode];if(d.isMac()&&r==="ContextMenu"&&(r="MetaRight"),l.location===2)switch(r){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(l.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 s(l){if(l.key!==void 0){switch(l.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return l.char}switch(l.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(l.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if(l.key==="\0"&&l.code==="NumpadDecimal")return"Delete";if(!d.isIE()&&!d.isEdge())return l.key;if(l.key.length!==1&&l.key!=="Unidentified")return l.key}var r=t(l);return r in m.default?m.default[r]:l.charCode?String.fromCharCode(l.charCode):"Unidentified"}function e(l){var r=s(l);if(r==="Unidentified")return null;if(r in f.default){var a=l.location;if(r==="Meta"&&a===0&&(a=2),r==="Clear"&&a===3){var c=t(l);c==="NumLock"&&(a=0)}if((a===void 0||a>3)&&(a=0),r==="Meta"){var h=t(l);if(h==="AltLeft")return p.default.XK_Meta_L;if(h==="AltRight")return p.default.XK_Meta_R}if(r==="Clear"){var g=t(l);if(g==="NumLock")return p.default.XK_Num_Lock}return f.default[r][a]}if(r.length!==1)return null;var A=r.charCodeAt();return A?x.default.lookup(A):null}},"8EBN":function(k,D,n){(function(y){y(n("VrN/"))})(function(y){"use strict";y.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var 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("."),u=d>-1&&v.substring(d+1,v.length);if(u)return y.findModeByExtension(u)},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(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};D.default=y},"8ISB":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("6Hfg"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},"8K/p":function(k,D,n){"use strict";function y(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(e){return typeof e}:y=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(t)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=f(n("Lo0S")),x=v(n("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 s=m();if(s&&s.has(t))return s.get(t);var e={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=l?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(e,r,a):e[r]=t[r]}return e.default=t,s&&s.set(t,e),e}function d(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function u(t,s){for(var e=0;e<s.length;e++){var l=s[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function o(t,s,e){return s&&u(t.prototype,s),e&&u(t,e),t}var i=function(){function t(){d(this,t),this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(var s=0;s<4;s++)this._zlibs[s]=new x.default}return o(t,[{key:"decodeRect",value:function(e,l,r,a,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,l,r,a,c,h,g);else if(this._ctl===9)b=this._jpegRect(e,l,r,a,c,h,g);else if(this._ctl===10)b=this._pngRect(e,l,r,a,c,h,g);else if((this._ctl&128)==0)b=this._basicRect(this._ctl,e,l,r,a,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,l,r,a,c,h,g){if(c.rQwait("TIGHT",3))return!1;var A=c.rQi,b=c.rQ;return h.fillRect(e,l,r,a,[b[A+2],b[A+1],b[A]],!1),c.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(e,l,r,a,c,h,g){var A=this._readData(c);return A===null?!1:(h.imageRect(e,l,r,a,"image/jpeg",A),!0)}},{key:"_pngRect",value:function(e,l,r,a,c,h,g){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(e,l,r,a,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,S;switch(this._filter){case 0:S=this._copyFilter(b,l,r,a,c,h,g,A);break;case 1:S=this._paletteFilter(b,l,r,a,c,h,g,A);break;case 2:S=this._gradientFilter(b,l,r,a,c,h,g,A);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return S&&(this._filter=null),S}},{key:"_copyFilter",value:function(e,l,r,a,c,h,g,A){var b=a*c*3,S;if(b<12){if(h.rQwait("TIGHT",b))return!1;S=h.rQshiftBytes(b)}else{if(S=this._readData(h),S===null)return!1;this._zlibs[e].setInput(S),S=this._zlibs[e].inflate(b),this._zlibs[e].setInput(null)}return g.blitRgbImage(l,r,a,c,S,0,!1),!0}},{key:"_paletteFilter",value:function(e,l,r,a,c,h,g,A){if(this._numColors===0){if(h.rQwait("TIGHT palette",1))return!1;var b=h.rQpeek8()+1,S=b*3;if(h.rQwait("TIGHT palette",1+S))return!1;this._numColors=b,h.rQskipBytes(1),h.rQshiftTo(this._palette,S)}var E=this._numColors<=2?1:8,C=Math.floor((a*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(l,r,a,c,T,this._palette,g):this._paletteRect(l,r,a,c,T,this._palette,g),this._numColors=0,!0}},{key:"_monoRect",value:function(e,l,r,a,c,h,g){for(var A=this._getScratchBuffer(r*a*4),b=Math.floor((r+7)/8),S=Math.floor(r/8),E=0;E<a;E++){var C=void 0,_=void 0,T=void 0;for(T=0;T<S;T++)for(var w=7;w>=0;w--)C=(E*r+T*8+7-w)*4,_=(c[E*b+T]>>w&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,l,r,a,A,0,!1)}},{key:"_paletteRect",value:function(e,l,r,a,c,h,g){for(var A=this._getScratchBuffer(r*a*4),b=r*a*4,S=0,E=0;S<b;S+=4,E++){var C=c[E]*3;A[S]=h[C],A[S+1]=h[C+1],A[S+2]=h[C+2],A[S+3]=255}g.blitRgbxImage(e,l,r,a,A,0,!1)}},{key:"_gradientFilter",value:function(e,l,r,a,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 l;l=e.rQshift8(),this._len=l&127,l&128&&(l=e.rQshift8(),this._len|=(l&127)<<7,l&128&&(l=e.rQshift8(),this._len|=l<<14))}if(e.rQwait("TIGHT",this._len))return null;var r=e.rQshiftBytes(this._len);return this._len=0,r}},{key:"_getScratchBuffer",value:function(e){return(!this._scratchBuffer||this._scratchBuffer.length<e)&&(this._scratchBuffer=new Uint8Array(e)),this._scratchBuffer}}]),t}();D.default=i},"8SMY":function(k,D,n){var y=n("n4Lv"),p=y.prepareDataCoordInfo,x=y.getStackedOnPoint;function v(f,d){var u=[];return d.diff(f).add(function(o){u.push({cmd:"+",idx:o})}).update(function(o,i){u.push({cmd:"=",idx:i,idx1:o})}).remove(function(o){u.push({cmd:"-",idx:o})}).execute(),u}function m(f,d,u,o,i,t,s,e){for(var l=v(f,d),r=[],a=[],c=[],h=[],g=[],A=[],b=[],S=p(i,d,s),E=p(t,f,e),C=0;C<l.length;C++){var _=l[C],T=!0;switch(_.cmd){case"=":var w=f.getItemLayout(_.idx),O=d.getItemLayout(_.idx1);(isNaN(w[0])||isNaN(w[1]))&&(w=O.slice()),r.push(w),a.push(O),c.push(u[_.idx]),h.push(o[_.idx1]),b.push(d.getRawIndex(_.idx1));break;case"+":var I=_.idx;r.push(i.dataToPoint([d.get(S.dataDimsForPoint[0],I),d.get(S.dataDimsForPoint[1],I)])),a.push(d.getItemLayout(I).slice()),c.push(x(S,i,d,I)),h.push(o[I]),b.push(d.getRawIndex(I));break;case"-":var I=_.idx,R=f.getRawIndex(I);R!==I?(r.push(f.getItemLayout(I)),a.push(t.dataToPoint([f.get(E.dataDimsForPoint[0],I),f.get(E.dataDimsForPoint[1],I)])),c.push(u[I]),h.push(x(E,t,f,I)),b.push(R)):T=!1}T&&(g.push(_),A.push(A.length))}A.sort(function(j,K){return b[j]-b[K]});for(var M=[],B=[],P=[],X=[],F=[],C=0;C<A.length;C++){var I=A[C];M[C]=r[I],B[C]=a[I],P[C]=c[I],X[C]=h[I],F[C]=g[I]}return{current:M,next:B,stackedOnCurrent:P,stackedOnNext:X,status:F}}k.exports=m},"8Skl":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="DownOutlined";var d=D.a=p.forwardRef(f)},"8Th4":function(k,D,n){var y=n("3LNs"),p=n("/y7N"),x=n("7bkD"),v=n("Znkb"),m=["x","y"],f=["width","height"],d=y.extend({makeElOption:function(s,e,l,r,a){var c=l.axis,h=c.coordinateSystem,g=i(h,1-o(c)),A=h.dataToPoint(e)[0],b=r.get("type");if(b&&b!=="none"){var S=p.buildElStyle(r),E=u[b](c,A,g);E.style=S,s.graphicKey=E.type,s.pointer=E}var C=x.layout(l);p.buildCartesianSingleLabelElOption(e,s,C,l,r,a)},getHandleTransform:function(s,e,l){var r=x.layout(e,{labelInside:!1});return r.labelMargin=l.get("handle.margin"),{position:p.getTransformedPosition(e.axis,s,r),rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(s,e,l,r){var a=l.axis,c=a.coordinateSystem,h=o(a),g=i(c,h),A=s.position;A[h]+=e[h],A[h]=Math.min(g[1],A[h]),A[h]=Math.max(g[0],A[h]);var b=i(c,1-h),S=(b[1]+b[0])/2,E=[S,S];return E[h]=A[h],{position:A,rotation:s.rotation,cursorPoint:E,tooltipOption:{verticalAlign:"middle"}}}}),u={line:function(s,e,l){var r=p.makeLineShape([e,l[0]],[e,l[1]],o(s));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(s,e,l){var r=s.getBandWidth(),a=l[1]-l[0];return{type:"Rect",shape:p.makeRectShape([e-r/2,l[0]],[r,a],o(s))}}};function o(s){return s.isHorizontal()?0:1}function i(s,e){var l=s.getRect();return[l[m[e]],l[m[e]]+l[f[e]]]}v.registerAxisPointerClass("SingleAxisPointer",d);var t=d;k.exports=t},"8Uz6":function(k,D,n){var y=n("hNWo"),p=n("+TT/"),x=p.mergeLayoutParam,v=p.getLayoutParams,m=y.extend({type:"legend.scroll",setScrollDataIndex:function(u){this.option.scrollDataIndex=u},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(u,o,i,t){var s=v(u);m.superCall(this,"init",u,o,i,t),f(this,u,s)},mergeOption:function(u,o){m.superCall(this,"mergeOption",u,o),f(this,this.option,u)}});function f(u,o,i){var t=u.getOrient(),s=[1,1];s[t.index]=0,x(o,i,{type:"box",ignoreSize:s})}var d=m;k.exports=d},"8X+K":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),v=n("4mN7"),m=v.fromPoints,f=n("9wZj"),d=n("FBjb"),u=n("8SMY"),o=n("IwbS"),i=n("4NO4"),t=n("1NG9"),s=t.Polyline,e=t.Polygon,l=n("6Ic6"),r=n("n4Lv"),a=r.prepareDataCoordInfo,c=r.getStackedOnPoint,h=n("sK/D"),g=h.createGridClipPath,A=h.createPolarClipPath;function b(M,B){if(M.length!==B.length)return;for(var P=0;P<M.length;P++){var X=M[P],F=B[P];if(X[0]!==F[0]||X[1]!==F[1])return}return!0}function S(M,B){var P=[],X=[],F=[],j=[];return m(M,P,X),m(B,F,j),Math.max(Math.abs(P[0]-F[0]),Math.abs(P[1]-F[1]),Math.abs(X[0]-j[0]),Math.abs(X[1]-j[1]))}function E(M){return typeof M=="number"?M:M?.5:0}function C(M,B,P){if(!P.valueDim)return[];for(var X=[],F=0,j=B.count();F<j;F++)X.push(c(P,M,B,F));return X}function _(M,B,P){for(var X=B.getBaseAxis(),F=X.dim==="x"||X.dim==="radius"?0:1,j=[],K=0;K<M.length-1;K++){var z=M[K+1],V=M[K];j.push(V);var Q=[];switch(P){case"end":Q[F]=z[F],Q[1-F]=V[1-F],j.push(Q);break;case"middle":var G=(V[F]+z[F])/2,te=[];Q[F]=te[F]=G,Q[1-F]=V[1-F],te[1-F]=z[1-F],j.push(Q),j.push(te);break;default:Q[F]=V[F],Q[1-F]=z[1-F],j.push(Q)}}return M[K]&&j.push(M[K]),j}function T(M,B){var P=M.getVisual("visualMeta");if(!P||!P.length||!M.count())return;if(B.type!=="cartesian2d")return;for(var X,F,j=P.length-1;j>=0;j--){var K=P[j].dimension,z=M.dimensions[K],V=M.getDimensionInfo(z);if(X=V&&V.coordDim,X==="x"||X==="y"){F=P[j];break}}if(!F)return;var Q=B.getAxis(X),G=x.map(F.stops,function(Je){return{coord:Q.toGlobalCoord(Q.dataToCoord(Je.value)),color:Je.color}}),te=G.length,q=F.outerColors.slice();te&&G[0].coord>G[te-1].coord&&(G.reverse(),q.reverse());var le=10,re=G[0].coord-le,we=G[te-1].coord+le,Ie=we-re;if(Ie<.001)return"transparent";x.each(G,function(Je){Je.offset=(Je.coord-re)/Ie}),G.push({offset:te?G[te-1].offset:.5,color:q[1]||"transparent"}),G.unshift({offset:te?G[0].offset:.5,color:q[0]||"transparent"});var Me=new o.LinearGradient(0,0,0,0,G,!0);return Me[X]=re,Me[X+"2"]=we,Me}function w(M,B,P){var X=M.get("showAllSymbol"),F=X==="auto";if(X&&!F)return;var j=P.getAxesByScale("ordinal")[0];if(!j)return;if(F&&O(j,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(M,B){var P=M.getExtent(),X=Math.abs(P[1]-P[0])/M.scale.count();isNaN(X)&&(X=0);for(var F=B.count(),j=Math.max(1,Math.round(F/5)),K=0;K<F;K+=j)if(d.getSymbolSize(B,K)[M.isHorizontal()?1:0]*1.5>X)return!1;return!0}function I(M,B,P){if(M.type==="cartesian2d"){var X=M.getBaseAxis().isHorizontal(),F=g(M,B,P);if(!P.get("clip",!0)){var j=F.shape,K=Math.max(j.width,j.height);X?(j.y-=K,j.height+=K*2):(j.x-=K,j.width+=K*2)}return F}else return A(M,B,P)}var R=l.extend({type:"line",init:function(){var M=new o.Group,B=new f;this.group.add(B.group),this._symbolDraw=B,this._lineGroup=M},render:function(M,B,P){var X=M.coordinateSystem,F=this.group,j=M.getData(),K=M.getModel("lineStyle"),z=M.getModel("areaStyle"),V=j.mapArray(j.getItemLayout),Q=X.type==="polar",G=this._coordSys,te=this._symbolDraw,q=this._polyline,le=this._polygon,re=this._lineGroup,we=M.get("animation"),Ie=!z.isEmpty(),Me=z.get("origin"),Je=a(X,j,Me),Ve=C(X,j,Je),ut=M.get("showSymbol"),Fe=ut&&!Q&&w(M,j,X),ae=this._data;ae&&ae.eachItemGraphicEl(function(be,Ce){be.__temp&&(F.remove(be),ae.setItemGraphicEl(Ce,null))}),ut||te.remove(),F.add(re);var at=!Q&&M.get("step"),he;X&&X.getArea&&M.get("clip",!0)&&(he=X.getArea(),he.width!=null?(he.x-=.1,he.y-=.1,he.width+=.2,he.height+=.2):he.r0&&(he.r0-=.5,he.r1+=.5)),this._clipShapeForSymbol=he,q&&G.type===X.type&&at===this._step?(Ie&&!le?le=this._newPolygon(V,Ve,X,we):le&&!Ie&&(re.remove(le),le=this._polygon=null),re.setClipPath(I(X,!1,M)),ut&&te.updateData(j,{isIgnore:Fe,clipShape:he}),j.eachItemGraphicEl(function(be){be.stopAnimation(!0)}),(!b(this._stackedOnPoints,Ve)||!b(this._points,V))&&(we?this._updateAnimation(j,Ve,X,P,at,Me):(at&&(V=_(V,X,at),Ve=_(Ve,X,at)),q.setShape({points:V}),le&&le.setShape({points:V,stackedOnPoints:Ve})))):(ut&&te.updateData(j,{isIgnore:Fe,clipShape:he}),at&&(V=_(V,X,at),Ve=_(Ve,X,at)),q=this._newPolyline(V,X,we),Ie&&(le=this._newPolygon(V,Ve,X,we)),re.setClipPath(I(X,!0,M)));var J=T(j,X)||j.getVisual("color");q.useStyle(x.defaults(K.getLineStyle(),{fill:"none",stroke:J,lineJoin:"bevel"}));var Y=M.get("smooth");if(Y=E(M.get("smooth")),q.setShape({smooth:Y,smoothMonotone:M.get("smoothMonotone"),connectNulls:M.get("connectNulls")}),le){var $=j.getCalculationInfo("stackedOnSeries"),de=0;le.useStyle(x.defaults(z.getAreaStyle(),{fill:J,opacity:.7,lineJoin:"bevel"})),$&&(de=E($.get("smooth"))),le.setShape({smooth:Y,stackedOnSmooth:de,smoothMonotone:M.get("smoothMonotone"),connectNulls:M.get("connectNulls")})}this._data=j,this._coordSys=X,this._stackedOnPoints=Ve,this._points=V,this._step=at,this._valueOrigin=Me},dispose:function(){},highlight:function(M,B,P,X){var F=M.getData(),j=i.queryDataIndex(F,X);if(!(j instanceof Array)&&j!=null&&j>=0){var K=F.getItemGraphicEl(j);if(!K){var z=F.getItemLayout(j);if(!z)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(z[0],z[1]))return;K=new d(F,j),K.position=z,K.setZ(M.get("zlevel"),M.get("z")),K.ignore=isNaN(z[0])||isNaN(z[1]),K.__temp=!0,F.setItemGraphicEl(j,K),K.stopSymbolAnimation(!0),this.group.add(K)}K.highlight()}else l.prototype.highlight.call(this,M,B,P,X)},downplay:function(M,B,P,X){var F=M.getData(),j=i.queryDataIndex(F,X);if(j!=null&&j>=0){var K=F.getItemGraphicEl(j);K&&(K.__temp?(F.setItemGraphicEl(j,null),this.group.remove(K)):K.downplay())}else l.prototype.downplay.call(this,M,B,P,X)},_newPolyline:function(M){var B=this._polyline;return B&&this._lineGroup.remove(B),B=new s({shape:{points:M},silent:!0,z2:10}),this._lineGroup.add(B),this._polyline=B,B},_newPolygon:function(M,B){var P=this._polygon;return P&&this._lineGroup.remove(P),P=new e({shape:{points:M,stackedOnPoints:B},silent:!0}),this._lineGroup.add(P),this._polygon=P,P},_updateAnimation:function(M,B,P,X,F,j){var K=this._polyline,z=this._polygon,V=M.hostModel,Q=u(this._data,M,this._stackedOnPoints,B,this._coordSys,P,this._valueOrigin,j),G=Q.current,te=Q.stackedOnCurrent,q=Q.next,le=Q.stackedOnNext;if(F&&(G=_(Q.current,P,F),te=_(Q.stackedOnCurrent,P,F),q=_(Q.next,P,F),le=_(Q.stackedOnNext,P,F)),S(G,q)>3e3||z&&S(te,le)>3e3){K.setShape({points:q}),z&&z.setShape({points:q,stackedOnPoints:le});return}K.shape.__points=Q.current,K.shape.points=G,o.updateProps(K,{shape:{points:q}},V),z&&(z.setShape({points:G,stackedOnPoints:te}),o.updateProps(z,{shape:{points:q,stackedOnPoints:le}},V));for(var re=[],we=Q.status,Ie=0;Ie<we.length;Ie++){var Me=we[Ie].cmd;if(Me==="="){var Je=M.getItemGraphicEl(we[Ie].idx1);Je&&re.push({el:Je,ptIdx:Ie})}}K.animators&&K.animators.length&&K.animators[0].during(function(){for(var Ve=0;Ve<re.length;Ve++){var ut=re[Ve].el;ut.attr("position",K.shape.__points[re[Ve].ptIdx])}})},remove:function(M){var B=this.group,P=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),P&&P.eachItemGraphicEl(function(X,F){X.__temp&&(B.remove(X),P.setItemGraphicEl(F,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});k.exports=R},"8XDt":function(k,D,n){n("qH13");var y=n("aX58"),p=y.registerPainter,x=n("6fms");p("vml",x)},"8XRh":function(k,D,n){"use strict";n.d(D,"a",function(){return Xt});var y=n("rePB"),p=n("VTBJ"),x=n("ODXe"),v=n("U8pU"),m=n("TSYQ"),f=n.n(m),d=n("m+aA"),u=n("c+Xe"),o=n("q1tI"),i=n("Ff2n"),t=["children"],s=o.createContext({});function e(Jt){var Pt=Jt.children,Wt=Object(i.a)(Jt,t);return o.createElement(s.Provider,{value:Wt},Pt)}var l=n("1OyB"),r=n("vuIU"),a=n("Ji7U"),c=n("LK+K"),h=function(Jt){Object(a.a)(Wt,Jt);var Pt=Object(c.a)(Wt);function Wt(){return Object(l.a)(this,Wt),Pt.apply(this,arguments)}return Object(r.a)(Wt,[{key:"render",value:function(){return this.props.children}}]),Wt}(o.Component),g=h,A=n("dm2S"),b="none",S="appear",E="enter",C="leave",_="none",T="prepare",w="start",O="active",I="end",R="prepared",M=n("MNnm");function B(Jt,Pt){var Wt={};return Wt[Jt.toLowerCase()]=Pt.toLowerCase(),Wt["Webkit".concat(Jt)]="webkit".concat(Pt),Wt["Moz".concat(Jt)]="moz".concat(Pt),Wt["ms".concat(Jt)]="MS".concat(Pt),Wt["O".concat(Jt)]="o".concat(Pt.toLowerCase()),Wt}function P(Jt,Pt){var Wt={animationend:B("Animation","AnimationEnd"),transitionend:B("Transition","TransitionEnd")};return Jt&&("AnimationEvent"in Pt||delete Wt.animationend.animation,"TransitionEvent"in Pt||delete Wt.transitionend.transition),Wt}var X=P(Object(M.a)(),typeof window!="undefined"?window:{}),F={};if(Object(M.a)()){var j=document.createElement("div");F=j.style}var K={};function z(Jt){if(K[Jt])return K[Jt];var Pt=X[Jt];if(Pt)for(var Wt=Object.keys(Pt),Ge=Wt.length,pe=0;pe<Ge;pe+=1){var se=Wt[pe];if(Object.prototype.hasOwnProperty.call(Pt,se)&&se in F)return K[Jt]=Pt[se],K[Jt]}return""}var V=z("animationend"),Q=z("transitionend"),G=!!(V&&Q),te=V||"animationend",q=Q||"transitionend";function le(Jt,Pt){if(!Jt)return null;if(Object(v.a)(Jt)==="object"){var Wt=Pt.replace(/-\w/g,function(Ge){return Ge[1].toUpperCase()});return Jt[Wt]}return"".concat(Jt,"-").concat(Pt)}var re=function(Jt){var Pt=Object(o.useRef)(),Wt=Object(o.useRef)(Jt);Wt.current=Jt;var Ge=o.useCallback(function(lt){Wt.current(lt)},[]);function pe(lt){lt&&(lt.removeEventListener(q,Ge),lt.removeEventListener(te,Ge))}function se(lt){Pt.current&&Pt.current!==lt&&pe(Pt.current),lt&&lt!==Pt.current&&(lt.addEventListener(q,Ge),lt.addEventListener(te,Ge),Pt.current=lt)}return o.useEffect(function(){return function(){pe(Pt.current)}},[]),[se,pe]},we=Object(M.a)()?o.useLayoutEffect:o.useEffect,Ie=we,Me=n("wgJM"),Je=function(){var Jt=o.useRef(null);function Pt(){Me.a.cancel(Jt.current)}function Wt(Ge){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Pt();var se=Object(Me.a)(function(){pe<=1?Ge({isCanceled:function(){return se!==Jt.current}}):Wt(Ge,pe-1)});Jt.current=se}return o.useEffect(function(){return function(){Pt()}},[]),[Wt,Pt]},Ve=[T,w,O,I],ut=[T,R],Fe=!1,ae=!0;function at(Jt){return Jt===O||Jt===I}var he=function(Jt,Pt,Wt){var Ge=Object(A.a)(_),pe=Object(x.a)(Ge,2),se=pe[0],lt=pe[1],qe=Je(),me=Object(x.a)(qe,2),Ht=me[0],yr=me[1];function At(){lt(T,!0)}var rr=Pt?ut:Ve;return Ie(function(){if(se!==_&&se!==I){var ur=rr.indexOf(se),vn=rr[ur+1],Bt=Wt(se);Bt===Fe?lt(vn,!0):vn&&Ht(function(sr){function Yt(){if(sr.isCanceled())return;lt(vn,!0)}Bt===!0?Yt():Promise.resolve(Bt).then(Yt)})}},[Jt,se]),o.useEffect(function(){return function(){yr()}},[]),[At,se]};function J(Jt,Pt,Wt,Ge){var pe=Ge.motionEnter,se=pe===void 0?!0:pe,lt=Ge.motionAppear,qe=lt===void 0?!0:lt,me=Ge.motionLeave,Ht=me===void 0?!0:me,yr=Ge.motionDeadline,At=Ge.motionLeaveImmediately,rr=Ge.onAppearPrepare,ur=Ge.onEnterPrepare,vn=Ge.onLeavePrepare,Bt=Ge.onAppearStart,sr=Ge.onEnterStart,Yt=Ge.onLeaveStart,pt=Ge.onAppearActive,it=Ge.onEnterActive,Fr=Ge.onLeaveActive,cn=Ge.onAppearEnd,_n=Ge.onEnterEnd,Kn=Ge.onLeaveEnd,gi=Ge.onVisibleChanged,Mn=Object(A.a)(),Un=Object(x.a)(Mn,2),$t=Un[0],Ct=Un[1],Re=Object(A.a)(b),De=Object(x.a)(Re,2),Pe=De[0],et=De[1],yt=Object(A.a)(null),St=Object(x.a)(yt,2),Vt=St[0],Rr=St[1],Vr=Object(o.useRef)(!1),hn=Object(o.useRef)(null);function Ft(){return Wt()}var vt=Object(o.useRef)(!1);function bt(){et(b,!0),Rr(null,!0)}function fr(fi){var Ei=Ft();if(fi&&!fi.deadline&&fi.target!==Ei)return;var Di=vt.current,Hi;Pe===S&&Di?Hi=cn==null?void 0:cn(Ei,fi):Pe===E&&Di?Hi=_n==null?void 0:_n(Ei,fi):Pe===C&&Di&&(Hi=Kn==null?void 0:Kn(Ei,fi)),Pe!==b&&Di&&Hi!==!1&&bt()}var Qt=re(fr),Mt=Object(x.a)(Qt,1),qt=Mt[0],kt=function(Ei){var Di,Hi,nt;switch(Ei){case S:return Di={},Object(y.a)(Di,T,rr),Object(y.a)(Di,w,Bt),Object(y.a)(Di,O,pt),Di;case E:return Hi={},Object(y.a)(Hi,T,ur),Object(y.a)(Hi,w,sr),Object(y.a)(Hi,O,it),Hi;case C:return nt={},Object(y.a)(nt,T,vn),Object(y.a)(nt,w,Yt),Object(y.a)(nt,O,Fr),nt;default:return{}}},er=o.useMemo(function(){return kt(Pe)},[Pe]),Kr=he(Pe,!Jt,function(fi){if(fi===T){var Ei=er[T];return Ei?Ei(Ft()):Fe}if(dn in er){var Di;Rr(((Di=er[dn])===null||Di===void 0?void 0:Di.call(er,Ft(),null))||null)}return dn===O&&(qt(Ft()),yr>0&&(clearTimeout(hn.current),hn.current=setTimeout(function(){fr({deadline:!0})},yr))),dn===R&&bt(),ae}),Ir=Object(x.a)(Kr,2),Dr=Ir[0],dn=Ir[1],yn=at(dn);vt.current=yn,Ie(function(){Ct(Pt);var fi=Vr.current;Vr.current=!0;var Ei;!fi&&Pt&&qe&&(Ei=S),fi&&Pt&&se&&(Ei=E),(fi&&!Pt&&Ht||!fi&&At&&!Pt&&Ht)&&(Ei=C);var Di=kt(Ei);Ei&&(Jt||Di[T])?(et(Ei),Dr()):et(b)},[Pt]),Object(o.useEffect)(function(){(Pe===S&&!qe||Pe===E&&!se||Pe===C&&!Ht)&&et(b)},[qe,se,Ht]),Object(o.useEffect)(function(){return function(){Vr.current=!1,clearTimeout(hn.current)}},[]);var ti=o.useRef(!1);Object(o.useEffect)(function(){$t&&(ti.current=!0),$t!==void 0&&Pe===b&&((ti.current||$t)&&(gi==null||gi($t)),ti.current=!0)},[$t,Pe]);var ei=Vt;return er[T]&&dn===w&&(ei=Object(p.a)({transition:"none"},ei)),[Pe,dn,ei,$t!=null?$t:Pt]}function Y(Jt){var Pt=Jt;Object(v.a)(Jt)==="object"&&(Pt=Jt.transitionSupport);function Wt(pe,se){return!!(pe.motionName&&Pt&&se!==!1)}var Ge=o.forwardRef(function(pe,se){var lt=pe.visible,qe=lt===void 0?!0:lt,me=pe.removeOnLeave,Ht=me===void 0?!0:me,yr=pe.forceRender,At=pe.children,rr=pe.motionName,ur=pe.leavedClassName,vn=pe.eventProps,Bt=o.useContext(s),sr=Bt.motion,Yt=Wt(pe,sr),pt=Object(o.useRef)(),it=Object(o.useRef)();function Fr(){try{return pt.current instanceof HTMLElement?pt.current:Object(d.a)(it.current)}catch(Rr){return null}}var cn=J(Yt,qe,Fr,pe),_n=Object(x.a)(cn,4),Kn=_n[0],gi=_n[1],Mn=_n[2],Un=_n[3],$t=o.useRef(Un);Un&&($t.current=!0);var Ct=o.useCallback(function(Rr){pt.current=Rr,Object(u.b)(se,Rr)},[se]),Re,De=Object(p.a)(Object(p.a)({},vn),{},{visible:qe});if(!At)Re=null;else if(Kn===b)Un?Re=At(Object(p.a)({},De),Ct):!Ht&&$t.current&&ur?Re=At(Object(p.a)(Object(p.a)({},De),{},{className:ur}),Ct):yr||!Ht&&!ur?Re=At(Object(p.a)(Object(p.a)({},De),{},{style:{display:"none"}}),Ct):Re=null;else{var Pe,et;gi===T?et="prepare":at(gi)?et="active":gi===w&&(et="start");var yt=le(rr,"".concat(Kn,"-").concat(et));Re=At(Object(p.a)(Object(p.a)({},De),{},{className:f()(le(rr,Kn),(Pe={},Object(y.a)(Pe,yt,yt&&et),Object(y.a)(Pe,rr,typeof rr=="string"),Pe)),style:Mn}),Ct)}if(o.isValidElement(Re)&&Object(u.c)(Re)){var St=Re,Vt=St.ref;Vt||(Re=o.cloneElement(Re,{ref:Ct}))}return o.createElement(g,{ref:it},Re)});return Ge.displayName="CSSMotion",Ge}var $=Y(G),de=n("wx14"),be=n("JX7q"),Ce="add",Be="keep",fe="remove",Se="removed";function ke(Jt){var Pt;return Jt&&Object(v.a)(Jt)==="object"&&"key"in Jt?Pt=Jt:Pt={key:Jt},Object(p.a)(Object(p.a)({},Pt),{},{key:String(Pt.key)})}function rt(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Jt.map(ke)}function xt(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Wt=[],Ge=0,pe=Pt.length,se=rt(Jt),lt=rt(Pt);se.forEach(function(Ht){for(var yr=!1,At=Ge;At<pe;At+=1){var rr=lt[At];if(rr.key===Ht.key){Ge<At&&(Wt=Wt.concat(lt.slice(Ge,At).map(function(ur){return Object(p.a)(Object(p.a)({},ur),{},{status:Ce})})),Ge=At),Wt.push(Object(p.a)(Object(p.a)({},rr),{},{status:Be})),Ge+=1,yr=!0;break}}yr||Wt.push(Object(p.a)(Object(p.a)({},Ht),{},{status:fe}))}),Ge<pe&&(Wt=Wt.concat(lt.slice(Ge).map(function(Ht){return Object(p.a)(Object(p.a)({},Ht),{},{status:Ce})})));var qe={};Wt.forEach(function(Ht){var yr=Ht.key;qe[yr]=(qe[yr]||0)+1});var me=Object.keys(qe).filter(function(Ht){return qe[Ht]>1});return me.forEach(function(Ht){Wt=Wt.filter(function(yr){var At=yr.key,rr=yr.status;return At!==Ht||rr!==fe}),Wt.forEach(function(yr){yr.key===Ht&&(yr.status=Be)})}),Wt}var ht=["component","children","onVisibleChanged","onAllRemoved"],He=["status"],ir=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ct(Jt){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,Wt=function(Ge){Object(a.a)(se,Ge);var pe=Object(c.a)(se);function se(){var lt;Object(l.a)(this,se);for(var qe=arguments.length,me=new Array(qe),Ht=0;Ht<qe;Ht++)me[Ht]=arguments[Ht];return lt=pe.call.apply(pe,[this].concat(me)),Object(y.a)(Object(be.a)(lt),"state",{keyEntities:[]}),Object(y.a)(Object(be.a)(lt),"removeKey",function(yr){var At=lt.state.keyEntities,rr=At.map(function(ur){return ur.key!==yr?ur:Object(p.a)(Object(p.a)({},ur),{},{status:Se})});return lt.setState({keyEntities:rr}),rr.filter(function(ur){var vn=ur.status;return vn!==Se}).length}),lt}return Object(r.a)(se,[{key:"render",value:function(){var qe=this,me=this.state.keyEntities,Ht=this.props,yr=Ht.component,At=Ht.children,rr=Ht.onVisibleChanged,ur=Ht.onAllRemoved,vn=Object(i.a)(Ht,ht),Bt=yr||o.Fragment,sr={};return ir.forEach(function(Yt){sr[Yt]=vn[Yt],delete vn[Yt]}),delete vn.keys,o.createElement(Bt,vn,me.map(function(Yt,pt){var it=Yt.status,Fr=Object(i.a)(Yt,He),cn=it===Ce||it===Be;return o.createElement(Pt,Object(de.a)({},sr,{key:Fr.key,visible:cn,eventProps:Fr,onVisibleChanged:function(Kn){if(rr==null||rr(Kn,{key:Fr.key}),!Kn){var gi=qe.removeKey(Fr.key);gi===0&&ur&&ur()}}}),function(_n,Kn){return At(Object(p.a)(Object(p.a)({},_n),{},{index:pt}),Kn)})}))}}],[{key:"getDerivedStateFromProps",value:function(qe,me){var Ht=qe.keys,yr=me.keyEntities,At=rt(Ht),rr=xt(yr,At);return{keyEntities:rr.filter(function(ur){var vn=yr.find(function(Bt){var sr=Bt.key;return ur.key===sr});return!(vn&&vn.status===Se&&ur.status===fe)})}}}]),se}(o.Component);return Object(y.a)(Wt,"defaultProps",{component:"div"}),Wt}var Xt=ct(G),hr=D.b=$},"8hn6":function(k,D){var n="#eee",y=function(){return{axisLine:{lineStyle:{color:n}},axisTick:{lineStyle:{color:n}},axisLabel:{textStyle:{color:n}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:n}}}},p=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],x={color:p,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:n},crossStyle:{color:n},label:{color:"#000"}}},legend:{textStyle:{color:n}},textStyle:{color:n},title:{textStyle:{color:n}},toolbox:{iconStyle:{normal:{borderColor:n}}},dataZoom:{textStyle:{color:n}},visualMap:{textStyle:{color:n}},timeline:{lineStyle:{color:n},itemStyle:{normal:{color:p[1]}},label:{normal:{textStyle:{color:n}}},controlStyle:{normal:{color:n,borderColor:n}}},timeAxis:y(),logAxis:y(),valueAxis:y(),categoryAxis:y(),line:{symbol:"circle"},graph:{color:p},gauge:{title:{textStyle:{color:n}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};x.categoryAxis.splitLine.show=!1;var v=x;k.exports=v},"8nMs":function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("+rIm"),v=n("Znkb"),m=n("AVZG"),f=n("WN+l"),d=f.rectCoordAxisBuildSplitArea,u=f.rectCoordAxisHandleRemove,o=["axisLine","axisTickLabel","axisName"],i=["splitArea","splitLine","minorSplitLine"],t=v.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(s,e,l,r){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new p.Group,this.group.add(this._axisGroup),!s.get("show"))return;var c=s.getCoordSysModel(),h=m.layout(c,s),g=new x(s,h);y.each(o,g.add,g),this._axisGroup.add(g.getGroup()),y.each(i,function(A){s.get(A+".show")&&this["_"+A](s,c)},this),p.groupTransition(a,this._axisGroup,s),t.superCall(this,"render",s,e,l,r)},remove:function(){u(this)},_splitLine:function(s,e){var l=s.axis;if(l.scale.isBlank())return;var r=s.getModel("splitLine"),a=r.getModel("lineStyle"),c=a.get("color");c=y.isArray(c)?c:[c];for(var h=e.coordinateSystem.getRect(),g=l.isHorizontal(),A=0,b=l.getTicksCoords({tickModel:r}),S=[],E=[],C=a.getLineStyle(),_=0;_<b.length;_++){var T=l.toGlobalCoord(b[_].coord);g?(S[0]=T,S[1]=h.y,E[0]=T,E[1]=h.y+h.height):(S[0]=h.x,S[1]=T,E[0]=h.x+h.width,E[1]=T);var w=A++%c.length,O=b[_].tickValue;this._axisGroup.add(new p.Line({anid:O!=null?"line_"+b[_].tickValue:null,subPixelOptimize:!0,shape:{x1:S[0],y1:S[1],x2:E[0],y2:E[1]},style:y.defaults({stroke:c[w]},C),silent:!0}))}},_minorSplitLine:function(s,e){var l=s.axis,r=s.getModel("minorSplitLine"),a=r.getModel("lineStyle"),c=e.coordinateSystem.getRect(),h=l.isHorizontal(),g=l.getMinorTicksCoords();if(!g.length)return;for(var A=[],b=[],S=a.getLineStyle(),E=0;E<g.length;E++)for(var C=0;C<g[E].length;C++){var _=l.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:S,silent:!0}))}},_splitArea:function(s,e){d(this,this._axisGroup,s,e)}});t.extend({type:"xAxis"}),t.extend({type:"yAxis"})},"8nly":function(k,D,n){var y=n("mFDi"),p=n("4mN7"),x=n("QBsz"),v=n("BlVb");function m(d,u,o){if(this.name=d,this.geometries=u,o)o=[o[0],o[1]];else{var i=this.getBoundingRect();o=[i.x+i.width/2,i.y+i.height/2]}this.center=o}m.prototype={constructor:m,properties:null,getBoundingRect:function(){var d=this._rect;if(d)return d;for(var u=Number.MAX_VALUE,o=[u,u],i=[-u,-u],t=[],s=[],e=this.geometries,l=0;l<e.length;l++){if(e[l].type!=="polygon")continue;var r=e[l].exterior;p.fromPoints(r,t,s),x.min(o,o,t),x.max(i,i,s)}return l===0&&(o[0]=o[1]=i[0]=i[1]=0),this._rect=new y(o[0],o[1],i[0]-o[0],i[1]-o[1])},contain:function(d){var u=this.getBoundingRect(),o=this.geometries;if(!u.contain(d[0],d[1]))return!1;e:for(var i=0,t=o.length;i<t;i++){if(o[i].type!=="polygon")continue;var s=o[i].exterior,e=o[i].interiors;if(v.contain(s,d[0],d[1])){for(var l=0;l<(e?e.length:0);l++)if(v.contain(e[l]))continue e;return!0}}return!1},transformTo:function(d,u,o,i){var t=this.getBoundingRect(),s=t.width/t.height;o?i||(i=o/s):o=s*i;for(var e=new y(d,u,o,i),l=t.calculateTransform(e),r=this.geometries,a=0;a<r.length;a++){if(r[a].type!=="polygon")continue;for(var c=r[a].exterior,h=r[a].interiors,g=0;g<c.length;g++)x.applyTransform(c[g],c[g],l);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],l)}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 u=new m(d,this.geometries,this.center);return u._rect=this._rect,u.transformTo=null,u}};var f=m;k.exports=f},"8txm":function(k,D,n){},"8waO":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("iLNv"),v=n("ZWlE");n("hJvP"),n("IXyC"),n("xRUu");var m=5;y.extendComponentView({type:"parallel",render:function(u,o,i){this._model=u,this._api=i,this._handlers||(this._handlers={},p.each(f,function(t,s){i.getZr().on(s,this._handlers[s]=p.bind(t,this))},this)),x.createOrUpdate(this,"_throttledDispatchExpand",u.get("axisExpandRate"),"fixRate")},dispose:function(u,o){p.each(this._handlers,function(i,t){o.getZr().off(t,i)}),this._handlers=null},_throttledDispatchExpand:function(u){this._dispatchExpand(u)},_dispatchExpand:function(u){u&&this._api.dispatchAction(p.extend({type:"parallelAxisExpand"},u))}});var f={mousedown:function(u){d(this,"click")&&(this._mouseDownPoint=[u.offsetX,u.offsetY])},mouseup:function(u){var o=this._mouseDownPoint;if(d(this,"click")&&o){var i=[u.offsetX,u.offsetY],t=Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2);if(t>m)return;var s=this._model.coordinateSystem.getSlidedAxisExpandWindow([u.offsetX,u.offsetY]);s.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:s.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(u){if(this._mouseDownPoint||!d(this,"mousemove"))return;var o=this._model,i=o.coordinateSystem.getSlidedAxisExpandWindow([u.offsetX,u.offsetY]),t=i.behavior;t==="jump"&&this._throttledDispatchExpand.debounceNextCall(o.get("axisExpandDebounce")),this._throttledDispatchExpand(t==="none"?null:{axisExpandWindow:i.axisExpandWindow,animation:t==="jump"?null:!1})}};function d(u,o){var i=u._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===o}y.registerPreprocessor(v)},"8x+h":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),v=n("bYtY"),m=n("K4ya"),f=n("Qxkt"),d=["#ddd"],u=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,s){var e=this.option;!s&&m.replaceVisualOption(e,t,["inBrush","outOfBrush"]);var l=e.inBrush=e.inBrush||{};e.outOfBrush=e.outOfBrush||{color:d},l.hasOwnProperty("liftZ")||(l.liftZ=5)},setAreas:function(t){if(!t)return;this.areas=v.map(t,function(s){return o(this.option,s)},this)},setBrushOption:function(t){this.brushOption=o(this.option,t),this.brushType=this.brushOption.brushType}});function o(t,s){return v.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new f(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},s,!0)}var i=u;k.exports=i},"8z0m":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("RIqP"),v=n.n(x),m=n("pVnL"),f=n.n(m),d=n("J4zp"),u=n.n(d),o=n("q1tI"),i=n.n(o),t=n("TSYQ"),s=n.n(t);function e(Bt,sr){var Yt="cannot "+Bt.method+" "+Bt.action+" "+sr.status+"'",pt=new Error(Yt);return pt.status=sr.status,pt.method=Bt.method,pt.url=Bt.action,pt}function l(Bt){var sr=Bt.responseText||Bt.response;if(!sr)return sr;try{return JSON.parse(sr)}catch(Yt){return sr}}function r(Bt){var sr=new XMLHttpRequest;Bt.onProgress&&sr.upload&&(sr.upload.onprogress=function(Fr){Fr.total>0&&(Fr.percent=Fr.loaded/Fr.total*100),Bt.onProgress(Fr)});var Yt=new FormData;Bt.data&&Object.keys(Bt.data).forEach(function(it){var Fr=Bt.data[it];if(Array.isArray(Fr)){Fr.forEach(function(cn){Yt.append(it+"[]",cn)});return}Yt.append(it,Bt.data[it])}),Bt.file instanceof Blob?Yt.append(Bt.filename,Bt.file,Bt.file.name):Yt.append(Bt.filename,Bt.file),sr.onerror=function(Fr){Bt.onError(Fr)},sr.onload=function(){return sr.status<200||sr.status>=300?Bt.onError(e(Bt,sr),l(sr)):Bt.onSuccess(l(sr),sr)},sr.open(Bt.method,Bt.action,!0),Bt.withCredentials&&"withCredentials"in sr&&(sr.withCredentials=!0);var pt=Bt.headers||{};return pt["X-Requested-With"]!==null&&sr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(pt).forEach(function(it){pt[it]!==null&&sr.setRequestHeader(it,pt[it])}),sr.send(Yt),{abort:function(){sr.abort()}}}var a=+new Date,c=0;function h(){return"rc-upload-"+a+"-"+ ++c}function g(Bt,sr){return Bt.indexOf(sr,Bt.length-sr.length)!==-1}var A=function(Bt,sr){if(Bt&&sr){var Yt=Array.isArray(sr)?sr:sr.split(","),pt=Bt.name||"",it=Bt.type||"",Fr=it.replace(/\/.*$/,"");return Yt.some(function(cn){var _n=cn.trim();return _n.charAt(0)==="."?g(pt.toLowerCase(),_n.toLowerCase()):/\/\*$/.test(_n)?Fr===_n.replace(/\/.*$/,""):it===_n})}return!0};function b(Bt,sr){var Yt=Bt.createReader(),pt=[];function it(){Yt.readEntries(function(Fr){var cn=Array.prototype.slice.apply(Fr);pt=pt.concat(cn);var _n=!cn.length;_n?sr(pt):it()})}it()}var S=function(sr,Yt,pt){var it=function Fr(cn,_n){_n=_n||"",cn.isFile?cn.file(function(Kn){pt(Kn)&&(cn.fullPath&&!Kn.webkitRelativePath&&(Object.defineProperties(Kn,{webkitRelativePath:{writable:!0}}),Kn.webkitRelativePath=cn.fullPath.replace(/^\//,""),Object.defineProperties(Kn,{webkitRelativePath:{writable:!1}})),Yt([Kn]))}):cn.isDirectory&&b(cn,function(Kn){Kn.forEach(function(gi){Fr(gi,""+_n+cn.name+"/")})})};sr.forEach(function(Fr){it(Fr.webkitGetAsEntry())})},E=S,C=Object.assign||function(Bt){for(var sr=1;sr<arguments.length;sr++){var Yt=arguments[sr];for(var pt in Yt)Object.prototype.hasOwnProperty.call(Yt,pt)&&(Bt[pt]=Yt[pt])}return Bt},_=function(){function Bt(sr,Yt){var pt=[],it=!0,Fr=!1,cn=void 0;try{for(var _n=sr[Symbol.iterator](),Kn;!(it=(Kn=_n.next()).done)&&!(pt.push(Kn.value),Yt&&pt.length===Yt);it=!0);}catch(gi){Fr=!0,cn=gi}finally{try{!it&&_n.return&&_n.return()}finally{if(Fr)throw cn}}return pt}return function(sr,Yt){if(Array.isArray(sr))return sr;if(Symbol.iterator in Object(sr))return Bt(sr,Yt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function Bt(sr,Yt){for(var pt=0;pt<Yt.length;pt++){var it=Yt[pt];it.enumerable=it.enumerable||!1,it.configurable=!0,"value"in it&&(it.writable=!0),Object.defineProperty(sr,it.key,it)}}return function(sr,Yt,pt){return Yt&&Bt(sr.prototype,Yt),pt&&Bt(sr,pt),sr}}();function w(Bt,sr,Yt){return sr in Bt?Object.defineProperty(Bt,sr,{value:Yt,enumerable:!0,configurable:!0,writable:!0}):Bt[sr]=Yt,Bt}function O(Bt,sr){var Yt={};for(var pt in Bt){if(sr.indexOf(pt)>=0)continue;if(!Object.prototype.hasOwnProperty.call(Bt,pt))continue;Yt[pt]=Bt[pt]}return Yt}function I(Bt,sr){if(!(Bt instanceof sr))throw new TypeError("Cannot call a class as a function")}function R(Bt,sr){if(!Bt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return sr&&(typeof sr=="object"||typeof sr=="function")?sr:Bt}function M(Bt,sr){if(typeof sr!="function"&&sr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof sr);Bt.prototype=Object.create(sr&&sr.prototype,{constructor:{value:Bt,enumerable:!1,writable:!0,configurable:!0}}),sr&&(Object.setPrototypeOf?Object.setPrototypeOf(Bt,sr):Bt.__proto__=sr)}var B=function(sr){return Object.keys(sr).reduce(function(Yt,pt){return(pt.substr(0,5)==="data-"||pt.substr(0,5)==="aria-"||pt==="role")&&(Yt[pt]=sr[pt]),Yt},{})},P=function(Bt){M(sr,Bt);function sr(){var Yt,pt,it,Fr;I(this,sr);for(var cn=arguments.length,_n=Array(cn),Kn=0;Kn<cn;Kn++)_n[Kn]=arguments[Kn];return Fr=(pt=(it=R(this,(Yt=sr.__proto__||Object.getPrototypeOf(sr)).call.apply(Yt,[this].concat(_n))),it),it.state={uid:h()},it.reqs={},it.onChange=function(gi){var Mn=gi.target.files;it.uploadFiles(Mn),it.reset()},it.onClick=function(gi){var Mn=it.fileInput;if(!Mn)return;var Un=it.props,$t=Un.children,Ct=Un.onClick;$t&&$t.type==="button"&&(Mn.parentNode.focus(),Mn.parentNode.querySelector("button").blur()),Mn.click(),Ct&&Ct(gi)},it.onKeyDown=function(gi){gi.key==="Enter"&&it.onClick()},it.onFileDrop=function(gi){var Mn=it.props.multiple;if(gi.preventDefault(),gi.type==="dragover")return;if(it.props.directory)E(Array.prototype.slice.call(gi.dataTransfer.items),it.uploadFiles,function($t){return A($t,it.props.accept)});else{var Un=Array.prototype.slice.call(gi.dataTransfer.files).filter(function($t){return A($t,it.props.accept)});Mn===!1&&(Un=Un.slice(0,1)),it.uploadFiles(Un)}},it.uploadFiles=function(gi){var Mn=Array.prototype.slice.call(gi);Mn.map(function(Un){return Un.uid=h(),Un}).forEach(function(Un){it.upload(Un,Mn)})},it.saveFileInput=function(gi){it.fileInput=gi},pt),R(it,Fr)}return T(sr,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(pt,it){var Fr=this,cn=this.props;if(!cn.beforeUpload)return setTimeout(function(){return Fr.post(pt)},0);var _n=cn.beforeUpload(pt,it);_n&&_n.then?_n.then(function(Kn){var gi=Object.prototype.toString.call(Kn);return gi==="[object File]"||gi==="[object Blob]"?Fr.post(Kn):Fr.post(pt)}).catch(function(Kn){console.log(Kn)}):_n!==!1&&setTimeout(function(){return Fr.post(pt)},0);return}},{key:"post",value:function(pt){var it=this;if(!this._isMounted)return;var Fr=this.props,cn=Fr.onStart,_n=Fr.onProgress,Kn=Fr.transformFile,gi=Kn===void 0?function(Mn){return Mn}:Kn;new Promise(function(Mn){var Un=Fr.action;return typeof Un=="function"&&(Un=Un(pt)),Mn(Un)}).then(function(Mn){var Un=pt.uid,$t=Fr.customRequest||r,Ct=Promise.resolve(gi(pt)).then(function(Re){var De=Fr.data;return typeof De=="function"&&(De=De(Re)),Promise.all([Re,De])}).catch(function(Re){console.error(Re)});Ct.then(function(Re){var De=_(Re,2),Pe=De[0],et=De[1],yt={action:Mn,filename:Fr.name,data:et,file:Pe,headers:Fr.headers,withCredentials:Fr.withCredentials,method:Fr.method||"post",onProgress:_n?function(St){_n(St,pt)}:null,onSuccess:function(Vt,Rr){delete it.reqs[Un],Fr.onSuccess(Vt,pt,Rr)},onError:function(Vt,Rr){delete it.reqs[Un],Fr.onError(Vt,Rr,pt)}};cn(pt),it.reqs[Un]=$t(yt)})})}},{key:"reset",value:function(){this.setState({uid:h()})}},{key:"abort",value:function(pt){var it=this.reqs;if(pt){var Fr=pt;pt&&pt.uid&&(Fr=pt.uid),it[Fr]&&it[Fr].abort&&it[Fr].abort(),delete it[Fr]}else Object.keys(it).forEach(function(cn){it[cn]&&it[cn].abort&&it[cn].abort(),delete it[cn]})}},{key:"render",value:function(){var pt,it=this.props,Fr=it.component,cn=it.prefixCls,_n=it.className,Kn=it.disabled,gi=it.id,Mn=it.style,Un=it.multiple,$t=it.accept,Ct=it.children,Re=it.directory,De=it.openFileDialogOnClick,Pe=it.onMouseEnter,et=it.onMouseLeave,yt=O(it,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),St=s()((pt={},w(pt,cn,!0),w(pt,cn+"-disabled",Kn),w(pt,_n,_n),pt)),Vt=Kn?{}:{onClick:De?this.onClick:function(){},onKeyDown:De?this.onKeyDown:function(){},onMouseEnter:Pe,onMouseLeave:et,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return i.a.createElement(Fr,C({},Vt,{className:St,role:"button",style:Mn}),i.a.createElement("input",C({},B(yt),{id:gi,type:"file",ref:this.saveFileInput,onClick:function(Vr){return Vr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:$t,directory:Re?"directory":null,webkitdirectory:Re?"webkitdirectory":null,multiple:Un,onChange:this.onChange})),Ct)}}]),sr}(o.Component),X=P,F=Object.assign||function(Bt){for(var sr=1;sr<arguments.length;sr++){var Yt=arguments[sr];for(var pt in Yt)Object.prototype.hasOwnProperty.call(Yt,pt)&&(Bt[pt]=Yt[pt])}return Bt},j=function(){function Bt(sr,Yt){for(var pt=0;pt<Yt.length;pt++){var it=Yt[pt];it.enumerable=it.enumerable||!1,it.configurable=!0,"value"in it&&(it.writable=!0),Object.defineProperty(sr,it.key,it)}}return function(sr,Yt,pt){return Yt&&Bt(sr.prototype,Yt),pt&&Bt(sr,pt),sr}}();function K(Bt,sr){if(!(Bt instanceof sr))throw new TypeError("Cannot call a class as a function")}function z(Bt,sr){if(!Bt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return sr&&(typeof sr=="object"||typeof sr=="function")?sr:Bt}function V(Bt,sr){if(typeof sr!="function"&&sr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof sr);Bt.prototype=Object.create(sr&&sr.prototype,{constructor:{value:Bt,enumerable:!1,writable:!0,configurable:!0}}),sr&&(Object.setPrototypeOf?Object.setPrototypeOf(Bt,sr):Bt.__proto__=sr)}function Q(){}var G=function(Bt){V(sr,Bt);function sr(){var Yt,pt,it,Fr;K(this,sr);for(var cn=arguments.length,_n=Array(cn),Kn=0;Kn<cn;Kn++)_n[Kn]=arguments[Kn];return Fr=(pt=(it=z(this,(Yt=sr.__proto__||Object.getPrototypeOf(sr)).call.apply(Yt,[this].concat(_n))),it),it.saveUploader=function(gi){it.uploader=gi},pt),z(it,Fr)}return j(sr,[{key:"abort",value:function(pt){this.uploader.abort(pt)}},{key:"render",value:function(){return i.a.createElement(X,F({},this.props,{ref:this.saveUploader}))}}]),sr}(o.Component);G.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Q,onError:Q,onSuccess:Q,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var te=G,q=te,le=function(Bt,sr){var Yt={};for(var pt in Bt)Object.prototype.hasOwnProperty.call(Bt,pt)&&sr.indexOf(pt)<0&&(Yt[pt]=Bt[pt]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,pt=Object.getOwnPropertySymbols(Bt);it<pt.length;it++)sr.indexOf(pt[it])<0&&Object.prototype.propertyIsEnumerable.call(Bt,pt[it])&&(Yt[pt[it]]=Bt[pt[it]]);return Yt},re=function(sr,Yt){var pt=sr.style,it=sr.height,Fr=le(sr,["style","height"]);return o.createElement(ur,f()({ref:Yt},Fr,{type:"drag",style:f()(f()({},pt),{height:it})}))},we=o.forwardRef(re);we.displayName="Dragger";var Ie=we,Me=n("UmKh"),Je=n("gZBC"),Ve=n.n(Je),ut=n("+d4F"),Fe=n.n(ut),ae=n("XAae"),at=n.n(ae),he=n("6xvX"),J=n.n(he),Y=n("qPY4"),$=n.n(Y),de=n("QB+1"),be=n.n(de),Ce=n("Qs3X"),Be=n.n(Ce),fe=n("0n0R");function Se(){return!0}function ke(Bt){return f()(f()({},Bt),{lastModified:Bt.lastModified,lastModifiedDate:Bt.lastModifiedDate,name:Bt.name,size:Bt.size,type:Bt.type,uid:Bt.uid,percent:0,originFileObj:Bt})}function rt(Bt,sr){var Yt=Bt.uid!==void 0?"uid":"name";return sr.filter(function(pt){return pt[Yt]===Bt[Yt]})[0]}function xt(Bt,sr){var Yt=Bt.uid!==void 0?"uid":"name",pt=sr.filter(function(it){return it[Yt]!==Bt[Yt]});return pt.length===sr.length?null:pt}var ht=function(){var sr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Yt=sr.split("/"),pt=Yt[Yt.length-1],it=pt.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(it)||[""])[0]},He=function(sr){return sr.indexOf("image/")===0},ir=function(sr){if(sr.type&&!sr.thumbUrl)return He(sr.type);var Yt=sr.thumbUrl||sr.url,pt=ht(Yt);return/^data:image\//.test(Yt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(pt)?!0:/^data:/.test(Yt)?!1:!pt},ct=200;function Xt(Bt){return new Promise(function(sr){if(!Bt.type||!He(Bt.type)){sr("");return}var Yt=document.createElement("canvas");Yt.width=ct,Yt.height=ct,Yt.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(ct,"px; height: ").concat(ct,"px; z-index: 9999; display: none;"),document.body.appendChild(Yt);var pt=Yt.getContext("2d"),it=new Image;it.onload=function(){var Fr=it.width,cn=it.height,_n=ct,Kn=ct,gi=0,Mn=0;Fr<cn?(Kn=cn*(ct/Fr),Mn=-(Kn-_n)/2):(_n=Fr*(ct/cn),gi=-(_n-Kn)/2),pt.drawImage(it,gi,Mn,_n,Kn);var Un=Yt.toDataURL();document.body.removeChild(Yt),sr(Un)},it.src=window.URL.createObjectURL(Bt)})}var hr=n("3S7+"),Jt=n("CFYs"),Pt=n("H84U"),Wt=n("2/Rp"),Ge=n("hkKa"),pe=function(sr,Yt){var pt,it=sr.listType,Fr=sr.previewFile,cn=sr.onPreview,_n=sr.onDownload,Kn=sr.onRemove,gi=sr.locale,Mn=sr.iconRender,Un=sr.isImageUrl,$t=sr.prefixCls,Ct=sr.items,Re=Ct===void 0?[]:Ct,De=sr.showPreviewIcon,Pe=sr.showRemoveIcon,et=sr.showDownloadIcon,yt=sr.removeIcon,St=sr.downloadIcon,Vt=sr.progress,Rr=Object(Ge.a)();o.useEffect(function(){if(it!=="picture"&&it!=="picture-card")return;(Re||[]).forEach(function(Ir){if(typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Ir.originFileObj instanceof File||Ir.originFileObj instanceof Blob)||Ir.thumbUrl!==void 0)return;Ir.thumbUrl="",Fr&&Fr(Ir.originFileObj).then(function(Dr){Ir.thumbUrl=Dr||"",Rr()})})},[it,Re,Fr]);var Vr=function(Dr,dn){return cn?(dn.preventDefault(),cn(Dr)):void 0},hn=function(Dr){typeof _n=="function"?_n(Dr):Dr.url&&window.open(Dr.url)},Ft=function(Dr){Kn&&Kn(Dr)},vt=function(Dr){if(Mn)return Mn(Dr,it);var dn=Dr.status==="uploading",yn=Un&&Un(Dr)?o.createElement(at.a,null):o.createElement(J.a,null),ti=dn?o.createElement(Ve.a,null):o.createElement(Fe.a,null);return it==="picture"?ti=dn?o.createElement(Ve.a,null):yn:it==="picture-card"&&(ti=dn?gi.uploading:yn),ti},bt=function(Dr,dn,yn,ti){var ei={type:"text",size:"small",title:ti,onClick:function(Di){dn(),Object(fe.b)(Dr)&&Dr.props.onClick&&Dr.props.onClick(Di)},className:"".concat(yn,"-list-item-card-actions-btn")};if(Object(fe.b)(Dr)){var fi=Object(fe.a)(Dr,f()(f()({},Dr.props),{onClick:function(){}}));return o.createElement(Wt.a,f()({},ei,{icon:fi}))}return o.createElement(Wt.a,ei,o.createElement("span",null,Dr))};o.useImperativeHandle(Yt,function(){return{handlePreview:Vr,handleDownload:hn}});var fr=o.useContext(Pt.b),Qt=fr.getPrefixCls,Mt=fr.direction,qt=Qt("upload",$t),kt=Re.map(function(Ir){var Dr,dn,yn,ti=vt(Ir),ei=o.createElement("div",{className:"".concat(qt,"-text-icon")},ti);if(it==="picture"||it==="picture-card")if(Ir.status==="uploading"||!Ir.thumbUrl&&!Ir.url){var fi,Ei=s()((fi={},p()(fi,"".concat(qt,"-list-item-thumbnail"),!0),p()(fi,"".concat(qt,"-list-item-file"),Ir.status!=="uploading"),fi));ei=o.createElement("div",{className:Ei},ti)}else{var Di,Hi=Un&&Un(Ir)?o.createElement("img",{src:Ir.thumbUrl||Ir.url,alt:Ir.name,className:"".concat(qt,"-list-item-image")}):ti,nt=s()((Di={},p()(Di,"".concat(qt,"-list-item-thumbnail"),!0),p()(Di,"".concat(qt,"-list-item-file"),Un&&!Un(Ir)),Di));ei=o.createElement("a",{className:nt,onClick:function(on){return Vr(Ir,on)},href:Ir.url||Ir.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Hi)}if(Ir.status==="uploading"){var Le="percent"in Ir?o.createElement(Jt.a,f()({},Vt,{type:"line",percent:Ir.percent})):null;yn=o.createElement("div",{className:"".concat(qt,"-list-item-progress"),key:"progress"},Le)}var je=s()((Dr={},p()(Dr,"".concat(qt,"-list-item"),!0),p()(Dr,"".concat(qt,"-list-item-").concat(Ir.status),!0),p()(Dr,"".concat(qt,"-list-item-list-type-").concat(it),!0),Dr)),Xe=typeof Ir.linkProps=="string"?JSON.parse(Ir.linkProps):Ir.linkProps,tt=Pe?bt(yt||o.createElement(be.a,null),function(){return Ft(Ir)},qt,gi.removeFile):null,Ze=et&&Ir.status==="done"?bt(St||o.createElement(Be.a,null),function(){return hn(Ir)},qt,gi.downloadFile):null,st=it!=="picture-card"&&o.createElement("span",{key:"download-delete",className:"".concat(qt,"-list-item-card-actions ").concat(it==="picture"?"picture":"")},Ze,tt),Et=s()((dn={},p()(dn,"".concat(qt,"-list-item-name"),!0),p()(dn,"".concat(qt,"-list-item-name-icon-count-").concat([Ze,tt].filter(function(Bn){return Bn}).length),!0),dn)),gt=Ir.url?[o.createElement("a",f()({key:"view",target:"_blank",rel:"noopener noreferrer",className:Et,title:Ir.name},Xe,{href:Ir.url,onClick:function(on){return Vr(Ir,on)}}),Ir.name),st]:[o.createElement("span",{key:"view",className:Et,onClick:function(on){return Vr(Ir,on)},title:Ir.name},Ir.name),st],pr={pointerEvents:"none",opacity:.5},qr=De?o.createElement("a",{href:Ir.url||Ir.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ir.url||Ir.thumbUrl?void 0:pr,onClick:function(on){return Vr(Ir,on)},title:gi.previewFile},o.createElement($.a,null)):null,Qr=it==="picture-card"&&Ir.status!=="uploading"&&o.createElement("span",{className:"".concat(qt,"-list-item-actions")},qr,Ir.status==="done"&&Ze,tt),gn;Ir.response&&typeof Ir.response=="string"?gn=Ir.response:gn=Ir.error&&Ir.error.statusText||gi.uploadError;var vr=o.createElement("span",null,ei,gt),Vn=o.createElement("div",{className:je},o.createElement("div",{className:"".concat(qt,"-list-item-info")},vr),Qr,o.createElement(Me.a,{transitionName:"fade",component:""},yn)),kr=s()(p()({},"".concat(qt,"-list-picture-card-container"),it==="picture-card"));return o.createElement("div",{key:Ir.uid,className:kr},Ir.status==="error"?o.createElement(hr.a,{title:gn,getPopupContainer:function(on){return on.parentNode}},Vn):o.createElement("span",null,Vn))}),er=s()((pt={},p()(pt,"".concat(qt,"-list"),!0),p()(pt,"".concat(qt,"-list-").concat(it),!0),p()(pt,"".concat(qt,"-list-rtl"),Mt==="rtl"),pt)),Kr=it==="picture-card"?"animate-inline":"animate";return o.createElement(Me.a,{transitionName:"".concat(qt,"-").concat(Kr),component:"div",className:er},kt)},se=o.forwardRef(pe);se.displayName="UploadList",se.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:Xt,isImageUrl:ir};var lt=se,qe=n("YMnH"),me=n("ZvpZ"),Ht=n("uaoM"),yr=n("sPtV"),At=function(sr,Yt){var pt,it=sr.fileList,Fr=sr.defaultFileList,cn=sr.onRemove,_n=sr.showUploadList,Kn=sr.listType,gi=sr.onPreview,Mn=sr.onDownload,Un=sr.previewFile,$t=sr.disabled,Ct=sr.locale,Re=sr.iconRender,De=sr.isImageUrl,Pe=sr.progress,et=sr.prefixCls,yt=sr.className,St=sr.type,Vt=sr.children,Rr=sr.style,Vr=Object(yr.a)(it||Fr||[]),hn=u()(Vr,2),Ft=hn[0],vt=hn[1],bt=o.useState("drop"),fr=u()(bt,2),Qt=fr[0],Mt=fr[1],qt=o.useRef();o.useEffect(function(){vt(it||Fr||[]),Object(Ht.a)("fileList"in sr||!("value"in sr),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),o.useEffect(function(){"fileList"in sr&&vt(it||[])},[it]);var kt=function(gt){"fileList"in sr||vt(gt.fileList);var pr=sr.onChange;pr&&pr(f()(f()({},gt),{fileList:v()(gt.fileList)}))},er=function(gt){var pr=ke(gt);pr.status="uploading";var qr=Ft().concat(),Qr=qr.findIndex(function(gn){var vr=gn.uid;return vr===pr.uid});Qr===-1?qr.push(pr):qr[Qr]=pr,kt({file:pr,fileList:qr})},Kr=function(gt,pr,qr){try{typeof gt=="string"&&(gt=JSON.parse(gt))}catch(gn){}var Qr=rt(pr,Ft());if(!Qr)return;Qr.status="done",Qr.response=gt,Qr.xhr=qr,kt({file:f()({},Qr),fileList:Ft().concat()})},Ir=function(gt,pr){var qr=rt(pr,Ft());if(!qr)return;qr.percent=gt.percent,kt({event:gt,file:f()({},qr),fileList:Ft().concat()})},Dr=function(gt,pr,qr){var Qr=rt(qr,Ft());if(!Qr)return;Qr.error=gt,Qr.response=pr,Qr.status="error",kt({file:f()({},Qr),fileList:Ft().concat()})},dn=function(gt){Promise.resolve(typeof cn=="function"?cn(gt):cn).then(function(pr){if(pr===!1)return;var qr=xt(gt,Ft());qr&&(gt.status="removed",qt.current&&qt.current.abort(gt),kt({file:gt,fileList:qr}))})},yn=function(gt){Mt(gt.type)},ti=function(gt,pr){var qr=sr.beforeUpload;if(!qr)return!0;var Qr=qr(gt,pr);if(Qr===!1){var gn=[];return Ft().concat(pr.map(ke)).forEach(function(vr){gn.every(function(Vn){return Vn.uid!==vr.uid})&&gn.push(vr)}),kt({file:gt,fileList:gn}),!1}return Qr&&Qr.then?Qr:!0},ei=Object(Ge.a)();o.useImperativeHandle(Yt,function(){return{onStart:er,onSuccess:Kr,onProgress:Ir,onError:Dr,fileList:Ft(),upload:qt.current,forceUpdate:ei}});var fi=function(gt){var pr=_n.showRemoveIcon,qr=_n.showPreviewIcon,Qr=_n.showDownloadIcon,gn=_n.removeIcon,vr=_n.downloadIcon;return o.createElement(lt,{listType:Kn,items:Ft(),previewFile:Un,onPreview:gi,onDownload:Mn,onRemove:dn,showRemoveIcon:!$t&&pr,showPreviewIcon:qr,showDownloadIcon:Qr,removeIcon:gn,downloadIcon:vr,iconRender:Re,locale:f()(f()({},gt),Ct),isImageUrl:De,progress:Pe})},Ei=o.useContext(Pt.b),Di=Ei.getPrefixCls,Hi=Ei.direction,nt=Di("upload",et),Le=f()(f()({onStart:er,onError:Dr,onProgress:Ir,onSuccess:Kr},sr),{prefixCls:nt,beforeUpload:ti});delete Le.className,delete Le.style,(!Vt||$t)&&delete Le.id;var je=_n?o.createElement(qe.a,{componentName:"Upload",defaultLocale:me.a.Upload},fi):null;if(St==="drag"){var Xe,tt=s()(nt,(Xe={},p()(Xe,"".concat(nt,"-drag"),!0),p()(Xe,"".concat(nt,"-drag-uploading"),Ft().some(function(Et){return Et.status==="uploading"})),p()(Xe,"".concat(nt,"-drag-hover"),Qt==="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:tt,onDrop:yn,onDragOver:yn,onDragLeave:yn,style:Rr},o.createElement(q,f()({},Le,{ref:qt,className:"".concat(nt,"-btn")}),o.createElement("div",{className:"".concat(nt,"-drag-container")},Vt))),je)}var Ze=s()(nt,(pt={},p()(pt,"".concat(nt,"-select"),!0),p()(pt,"".concat(nt,"-select-").concat(Kn),!0),p()(pt,"".concat(nt,"-disabled"),$t),p()(pt,"".concat(nt,"-rtl"),Hi==="rtl"),pt)),st=o.createElement("div",{className:Ze,style:Vt?void 0:{display:"none"}},o.createElement(q,f()({},Le,{ref:qt})));return Kn==="picture-card"?o.createElement("span",{className:s()(yt,"".concat(nt,"-picture-card-wrapper"))},je,st):o.createElement("span",{className:yt},st,je)},rr=o.forwardRef(At);rr.Dragger=Ie,rr.displayName="Upload",rr.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:Se,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var ur=rr;ur.Dragger=Ie;var vn=D.a=ur},"98bh":function(k,D,n){var y=n("ProS"),p=n("5GtS"),x=n("bYtY"),v=n("4NO4"),m=n("OELB"),f=m.getPercentWithPrecision,d=n("cCMj"),u=n("KxfA"),o=u.retrieveRawAttr,i=n("D5nY"),t=i.makeSeriesEncodeForNameBased,s=n("xKMd"),e=y.extendSeriesModel({type:"series.pie",init:function(r){e.superApply(this,"init",arguments),this.legendVisualProvider=new s(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,a){return p(this,{coordDimensions:["value"],encodeDefaulter:x.curry(t,this)})},_createSelectableList:function(){for(var r=this.getRawData(),a=r.mapDimension("value"),c=[],h=0,g=r.count();h<g;h++)c.push({name:r.getName(h),value:r.get(a,h),selected:o(r,h,"selected")});return c},getDataParams:function(r){var a=this.getData(),c=e.superCall(this,"getDataParams",r),h=[];return a.each(a.mapDimension("value"),function(g){h.push(g)}),c.percent=f(h,r,a.hostModel.get("percentPrecision")),c.$vars.push("percent"),c},_defaultLabelLine:function(r){v.defaultEmphasis(r,"labelLine",["show"]);var a=r.labelLine,c=r.emphasis.labelLine;a.show=a.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 l=e;k.exports=l},"9H2F":function(k,D,n){var y=n("bYtY"),p=y.assert,x=y.isArray,v=n("Tghj"),m=v.__DEV__;function f(s){return new d(s)}function d(s){s=s||{},this._reset=s.reset,this._plan=s.plan,this._count=s.count,this._onDirty=s.onDirty,this._dirty=!0,this.context}var u=d.prototype;u.perform=function(s){var e=this._upstream,l=s&&s.skip;if(this._dirty&&e){var r=this.context;r.data=r.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!l&&(a=this._plan(this.context));var c=b(this._modBy),h=this._modDataCount||0,g=b(s&&s.modBy),A=s&&s.modDataCount||0;(c!==g||h!==A)&&(a="reset");function b(I){return!(I>=1)&&(I=1),I}var S;(this._dirty||a==="reset")&&(this._dirty=!1,S=t(this,l)),this._modBy=g,this._modDataCount=A;var E=s&&s.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(!l&&(S||C<_)){var T=this._progress;if(x(T))for(var w=0;w<T.length;w++)i(this,T[w],C,_,g,A);else i(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 s,e,l,r,a,c={reset:function(A,b,S,E){e=A,s=b,l=S,r=E,a=Math.ceil(r/l),c.next=l>1&&r>0?g:h}};return c;function h(){return e<s?e++:null}function g(){var A=e%a*l+Math.ceil(e/a),b=e>=s?null:A<r?A:e;return e++,b}}();u.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function i(s,e,l,r,a,c){o.reset(l,r,a,c),s._callingProgress=e,s._callingProgress({start:l,end:r,count:r-l,next:o.next},s.context)}function t(s,e){s._dueIndex=s._outputDueEnd=s._dueEnd=0,s._settedOutputEnd=null;var l,r;!e&&s._reset&&(l=s._reset(s.context),l&&l.progress&&(r=l.forceFirstProgress,l=l.progress),x(l)&&!l.length&&(l=null)),s._progress=l,s._modBy=s._modDataCount=null;var a=s._downstream;return a&&a.dirty(),r}u.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},u.pipe=function(s){(this._downstream!==s||this._dirty)&&(this._downstream=s,s._upstream=this,s.dirty())},u.dispose=function(){if(this._disposed)return;this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0},u.getUpstream=function(){return this._upstream},u.getDownstream=function(){return this._downstream},u.setOutputEnd=function(s){this._outputDueEnd=this._settedOutputEnd=s},D.createTask=f},"9KIM":function(k,D,n){var y=n("mFDi"),p=n("xSat"),x=p.onIrrelevantElement,v=n("IwbS");function m(o){return o=u(o),function(i,t){return v.clipPointsByRect(i,o)}}function f(o,i){return o=u(o),function(t){var s=i!=null?i:t,e=s?o.width:o.height,l=s?o.x:o.y;return[l,l+(e||0)]}}function d(o,i,t){return o=u(o),function(s,e,l){return o.contain(e[0],e[1])&&!x(s,i,t)}}function u(o){return y.create(o)}D.makeRectPanelClipPath=m,D.makeLinearBrushOtherExtent=f,D.makeRectIsTargetByCursor=d},"9OqN":function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("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,u=d.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var t=i.slice(0);d.encryptBlock(t,0),i[u-1]=i[u-1]+1|0;for(var s=0;s<u;s++)m[f+s]^=t[s]}});return p.Decryptor=x,p}(),y.mode.CTR})},"9ama":function(k,D,n){},"9eas":function(k,D,n){n("HM/N"),n("tBnm")},"9hCq":function(k,D,n){var y=n("IwbS"),p=n("+TT/"),x=n("bYtY"),v=n("VaxA"),m=v.wrapTreePathInfo,f=8,d=8,u=5;function o(e){this.group=new y.Group,e.add(this.group)}o.prototype={constructor:o,render:function(e,l,r,a){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:l.getWidth(),height:l.getHeight()},emptyItemWidth:c.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,b,A),this._renderContent(e,b,g,A,a),p.positionElement(h,b.pos,b.box)},_prepare:function(e,l,r){for(var a=e;a;a=a.parentNode){var c=a.getModel().get("name"),h=r.getTextRect(c),g=Math.max(h.width+f*2,l.emptyItemWidth);l.totalWidth+=g+d,l.renderList.push({node:a,text:c,width:g})}},_renderContent:function(e,l,r,a,c){for(var h=0,g=l.emptyItemWidth,A=e.get("breadcrumb.height"),b=p.getAvailableSize(l.pos,l.box),S=l.totalWidth,E=l.renderList,C=E.length-1;C>=0;C--){var _=E[C],T=_.node,w=_.width,O=_.text;S>b.width&&(S-=w-g,w=g,O=null);var I=new y.Polygon({shape:{points:i(h,0,w,A,C===E.length-1,C===0)},style:x.defaults(r.getItemStyle(),{lineJoin:"bevel",text:O,textFill:a.getTextColor(),textFont:a.getFont()}),z:10,onclick:x.curry(c,T)});this.group.add(I),t(I,e,T),h+=w+d}},remove:function(){this.group.removeAll()}};function i(e,l,r,a,c,h){var g=[[c?e:e-u,l],[e+r,l],[e+r,l+a],[c?e:e-u,l+a]];return!h&&g.splice(2,0,[e+r+u,l+a/2]),!c&&g.push([e,l+a/2]),g}function t(e,l,r){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:l.componentIndex,seriesIndex:l.componentIndex,seriesName:l.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&m(r,l)}}var s=o;k.exports=s},"9u0u":function(k,D,n){var y=n("bYtY");function p(v,m){var f={};return y.each(v,function(d){d.each(d.mapDimension("value"),function(u,o){var i="ec-"+d.getName(o);f[i]=f[i]||[],isNaN(u)||f[i].push(u)})}),v[0].map(v[0].mapDimension("value"),function(d,u){for(var o="ec-"+v[0].getName(u),i=0,t=Infinity,s=-Infinity,e=f[o].length,l=0;l<e;l++)t=Math.min(t,f[o][l]),s=Math.max(s,f[o][l]),i+=f[o][l];var r;return m==="min"?r=t:m==="max"?r=s:m==="average"?r=i/e:r=i,e===0?NaN:r})}function x(v){var m={};v.eachSeriesByType("map",function(f){var d=f.getHostGeoModel(),u=d?"o"+d.id:"i"+f.getMapType();(m[u]=m[u]||[]).push(f)}),y.each(m,function(f,d){for(var u=p(y.map(f,function(i){return i.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(u.cloneShallow()),f[o].mainSeries=f[0]})}k.exports=x},"9wZj":function(k,D,n){var y=n("IwbS"),p=n("FBjb"),x=n("bYtY"),v=x.isObject;function m(t){this.group=new y.Group,this._symbolCtor=t||p}var f=m.prototype;function d(t,s,e,l){return s&&!isNaN(s[0])&&!isNaN(s[1])&&!(l.isIgnore&&l.isIgnore(e))&&!(l.clipShape&&!l.clipShape.contain(s[0],s[1]))&&t.getItemVisual(e,"symbol")!=="none"}f.updateData=function(t,s){s=u(s);var e=this.group,l=t.hostModel,r=this._data,a=this._symbolCtor,c=o(t);r||e.removeAll(),t.diff(r).add(function(h){var g=t.getItemLayout(h);if(d(t,g,h,s)){var A=new a(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,s)){e.remove(A);return}A?(A.updateData(t,h,c),y.updateProps(A,{position:b},l)):(A=new a(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(s,e){var l=t.getItemLayout(e);s.attr("position",l)})},f.incrementalPrepareUpdate=function(t){this._seriesScope=o(t),this._data=null,this.group.removeAll()},f.incrementalUpdate=function(t,s,e){e=u(e);function l(h){h.isGroup||(h.incremental=h.useHoverLayer=!0)}for(var r=t.start;r<t.end;r++){var a=s.getItemLayout(r);if(d(s,a,r,e)){var c=new this._symbolCtor(s,r,this._seriesScope);c.traverse(l),c.attr("position",a),this.group.add(c),s.setItemGraphicEl(r,c)}}};function u(t){return t!=null&&!v(t)&&(t={isIgnore:t}),t||{}}f.remove=function(t){var s=this.group,e=this._data;e&&t?e.eachItemGraphicEl(function(l){l.fadeOut(function(){s.remove(l)})}):s.removeAll()};function o(t){var s=t.hostModel;return{itemStyle:s.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:s.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:s.get("symbolRotate"),symbolOffset:s.get("symbolOffset"),hoverAnimation:s.get("hoverAnimation"),labelModel:s.getModel("label"),hoverLabelModel:s.getModel("emphasis.label"),cursorStyle:s.get("cursor")}}var i=m;k.exports=i},"9yH6":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),v=n.n(x),m=n("q1tI"),f=n("x1Ya"),d=n("TSYQ"),u=n.n(d),o=n("H84U"),i=m.createContext(null),t=i.Provider,s=i,e=n("ID/q"),l=n("uaoM"),r=function(R,M){var B={};for(var P in R)Object.prototype.hasOwnProperty.call(R,P)&&M.indexOf(P)<0&&(B[P]=R[P]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,P=Object.getOwnPropertySymbols(R);X<P.length;X++)M.indexOf(P[X])<0&&Object.prototype.propertyIsEnumerable.call(R,P[X])&&(B[P[X]]=R[P[X]]);return B},a=function(M,B){var P,X=m.useContext(s),F=m.useContext(o.b),j=F.getPrefixCls,K=F.direction,z=m.useRef(),V=Object(e.a)(B,z);m.useEffect(function(){Object(l.a)(!("optionType"in M),"Radio","`optionType` is only support in Radio.Group.")},[]);var Q=function(Ve){M.onChange&&M.onChange(Ve),(X==null?void 0:X.onChange)&&X.onChange(Ve)},G=M.prefixCls,te=M.className,q=M.children,le=M.style,re=r(M,["prefixCls","className","children","style"]),we=j("radio",G),Ie=v()({},re);X&&(Ie.name=X.name,Ie.onChange=Q,Ie.checked=M.value===X.value,Ie.disabled=M.disabled||X.disabled);var Me=u()(te,(P={},p()(P,"".concat(we,"-wrapper"),!0),p()(P,"".concat(we,"-wrapper-checked"),Ie.checked),p()(P,"".concat(we,"-wrapper-disabled"),Ie.disabled),p()(P,"".concat(we,"-wrapper-rtl"),K==="rtl"),P));return m.createElement("label",{className:Me,style:le,onMouseEnter:M.onMouseEnter,onMouseLeave:M.onMouseLeave},m.createElement(f.a,v()({},Ie,{prefixCls:we,ref:V})),q!==void 0?m.createElement("span",null,q):null)},c=m.forwardRef(a);c.displayName="Radio",c.defaultProps={type:"radio"};var h=c,g=n("J4zp"),A=n.n(g),b=n("6cGi"),S=n("3Nzz"),E=m.forwardRef(function(R,M){var B=m.useContext(o.b),P=B.getPrefixCls,X=B.direction,F=m.useContext(S.b),j=Object(b.a)(R.defaultValue,{value:R.value}),K=A()(j,2),z=K[0],V=K[1],Q=function(q){var le=z,re=q.target.value;"value"in R||V(re);var we=R.onChange;we&&re!==le&&we(q)},G=function(){var q,le=R.prefixCls,re=R.className,we=re===void 0?"":re,Ie=R.options,Me=R.optionType,Je=R.buttonStyle,Ve=R.disabled,ut=R.children,Fe=R.size,ae=R.style,at=R.id,he=R.onMouseEnter,J=R.onMouseLeave,Y=P("radio",le),$="".concat(Y,"-group"),de=ut;if(Ie&&Ie.length>0){var be=Me==="button"?"".concat(Y,"-button"):Y;de=Ie.map(function(fe){return typeof fe=="string"?m.createElement(h,{ref:M,key:fe,prefixCls:be,disabled:Ve,value:fe,checked:z===fe},fe):m.createElement(h,{ref:M,key:"radio-group-value-options-".concat(fe.value),prefixCls:be,disabled:fe.disabled||Ve,value:fe.value,checked:z===fe.value,style:fe.style},fe.label)})}var Ce=Fe||F,Be=u()($,"".concat($,"-").concat(Je),(q={},p()(q,"".concat($,"-").concat(Ce),Ce),p()(q,"".concat($,"-rtl"),X==="rtl"),q),we);return m.createElement("div",{className:Be,style:ae,onMouseEnter:he,onMouseLeave:J,id:at},de)};return m.createElement(t,{value:{onChange:Q,value:z,disabled:R.disabled,name:R.name}},G())});E.defaultProps={buttonStyle:"outline"};var C=m.memo(E),_=function(R,M){var B={};for(var P in R)Object.prototype.hasOwnProperty.call(R,P)&&M.indexOf(P)<0&&(B[P]=R[P]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,P=Object.getOwnPropertySymbols(R);X<P.length;X++)M.indexOf(P[X])<0&&Object.prototype.propertyIsEnumerable.call(R,P[X])&&(B[P[X]]=R[P[X]]);return B},T=function(M,B){var P=m.useContext(s),X=m.useContext(o.b),F=X.getPrefixCls,j=M.prefixCls,K=_(M,["prefixCls"]),z=F("radio-button",j);return P&&(K.checked=M.value===P.value,K.disabled=M.disabled||P.disabled),m.createElement(h,v()({prefixCls:z},K,{type:"radio",ref:B}))},w=m.forwardRef(T),O=h;O.Button=w,O.Group=C;var I=D.a=O},A1Ka:function(k,D,n){var y=n("bLfw"),p=n("sS/r"),x=n("D5nY"),v=x.detectSourceFormat,m=n("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(k,D,n){var y=n("6sVZ"),p=n("V6Ve"),x=Object.prototype,v=x.hasOwnProperty;function m(f){if(!y(f))return p(f);var d=[];for(var u in Object(f))v.call(f,u)&&u!="constructor"&&d.push(u);return d}k.exports=m},ABKa:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("Qs9O")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="FolderOutlined";var i=v.forwardRef(o);D.default=i},AE9C:function(k,D,n){var y=n("bYtY"),p=n("crZl"),x=n("IwbS"),v=n("oVpE"),m=v.createSymbol,f=n("+TT/"),d=n("y7Aq"),u=p.extend({type:"visualMap.piecewise",doRender:function(){var i=this.group;i.removeAll();var t=this.visualMapModel,s=t.get("textGap"),e=t.textStyleModel,l=e.getFont(),r=e.getTextColor(),a=this._getItemAlign(),c=t.itemSize,h=this._getViewData(),g=h.endsText,A=y.retrieve(t.get("showLabel",!0),!g);g&&this._renderEndsText(i,g[0],c,A,a),y.each(h.viewPieceList,b,this),g&&this._renderEndsText(i,g[1],c,A,a),f.box(t.get("orient"),i,t.get("itemGap")),this.renderBackground(i),this.positionGroup(i);function b(S){var E=S.piece,C=new x.Group;C.onclick=y.bind(this._onItemClick,this,E),this._enableHoverLink(C,S.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:a==="right"?-s:c[0]+s,y:c[1]/2,text:E.text,textVerticalAlign:"middle",textAlign:a,textFont:l,textFill:r,opacity:T==="outOfRange"?.5:1}}))}i.add(C)}},_enableHoverLink:function(i,t){i.on("mouseover",y.bind(s,this,"highlight")).on("mouseout",y.bind(s,this,"downplay"));function s(e){var l=this.visualMapModel;l.option.hoverLink&&this.api.dispatchAction({type:e,batch:d.makeHighDownBatch(l.findTargetDataIndices(t),l)})}},_getItemAlign:function(){var i=this.visualMapModel,t=i.option;if(t.orient==="vertical")return d.getItemAlign(i,this.api,i.itemSize);var s=t.align;return(!s||s==="auto")&&(s="left"),s},_renderEndsText:function(i,t,s,e,l){if(!t)return;var r=new x.Group,a=this.visualMapModel.textStyleModel;r.add(new x.Text({style:{x:e?l==="right"?s[0]:0:s[0]/2,y:s[1]/2,textVerticalAlign:"middle",textAlign:e?l:"center",text:t,textFont:a.getFont(),textFill:a.getTextColor()}})),i.add(r)},_getViewData:function(){var i=this.visualMapModel,t=y.map(i.getPieceList(),function(r,a){return{piece:r,indexInModelPieceList:a}}),s=i.get("text"),e=i.get("orient"),l=i.get("inverse");return(e==="horizontal"?l:!l)?t.reverse():s&&(s=s.slice().reverse()),{viewPieceList:t,endsText:s}},_createItemSymbol:function(i,t,s){i.add(m(this.getControllerVisual(t,"symbol"),s[0],s[1],s[2],s[3],this.getControllerVisual(t,"color")))},_onItemClick:function(i){var t=this.visualMapModel,s=t.option,e=y.clone(s.selected),l=t.getSelectedMapKey(i);s.selectedMode==="single"?(e[l]=!0,y.each(e,function(r,a){e[a]=a===l})):e[l]=!e[l],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:e})}}),o=u;k.exports=o},AEZ6:function(k,D,n){var y=n("bYtY"),p=y.each,x=y.createHashMap,v=n("T4UG"),m=n("MwEJ"),f=v.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(o,i){var t=this.getSource();return d(t,this),m(t,this)},getRawIndicesByActiveState:function(o){var i=this.coordinateSystem,t=this.getData(),s=[];return i.eachActiveState(t,function(e,l){o===e&&s.push(t.getRawIndex(l))}),s},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,i){if(o.encodeDefine)return;var t=i.ecModel.getComponent("parallel",i.get("parallelIndex"));if(!t)return;var s=o.encodeDefine=x();p(t.dimensions,function(e){var l=u(e);s.set(e,l)})}function u(o){return+o.replace("dim","")}k.exports=f},AH3D:function(k,D,n){var y=n("ProS");n("y4/Y"),n("qWt2"),n("Qvb6"),y.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),y.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},ALo7:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("5GtS"),v=n("4NO4"),m=v.defaultEmphasis,f=n("D5nY"),d=f.makeSeriesEncodeForNameBased,u=n("xKMd"),o=y.extendSeriesModel({type:"series.funnel",init:function(t){o.superApply(this,"init",arguments),this.legendVisualProvider=new u(p.bind(this.getData,this),p.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,s){return x(this,{coordDimensions:["value"],encodeDefaulter:p.curry(d,this)})},_defaultLabelLine:function(t){m(t,"labelLine",["show"]);var s=t.labelLine,e=t.emphasis.labelLine;s.show=s.show&&t.label.show,e.show=e.show&&t.emphasis.label.show},getDataParams:function(t){var s=this.getData(),e=o.superCall(this,"getDataParams",t),l=s.mapDimension("value"),r=s.getSum(l);return e.percent=r?+(s.get(l,t)/r*100).toFixed(2):0,e.$vars.push("percent"),e},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),i=o;k.exports=i},ALsQ:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("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,u=d.blockSize;x.call(this,m,f,u,d),this._prevBlock=m.slice(f,f+u)}}),p.Decryptor=p.extend({processBlock:function(m,f){var d=this._cipher,u=d.blockSize,o=m.slice(f,f+u);x.call(this,m,f,u,d),this._prevBlock=o}});function x(v,m,f,d){var u,o=this._iv;o?(u=o.slice(0),this._iv=void 0):u=this._prevBlock,d.encryptBlock(u,0);for(var i=0;i<f;i++)v[m+i]^=u[i]}return p}(),y.mode.CFB})},ANjR:function(k,D,n){var y=n("bYtY");function p(v,m){return m=m||[0,0],y.map([0,1],function(f){var d=m[f],u=v[f]/2,o=[],i=[];return o[f]=d-u,i[f]=d+u,o[1-f]=i[1-f]=m[1-f],Math.abs(this.dataToPoint(o)[f]-this.dataToPoint(i)[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)}}}k.exports=x},AOa7:function(k,D,n){},AUH6:function(k,D,n){var y=n("bYtY"),p=n("mFDi"),x=n("bMXI"),v=n("W4dC");function m(u,o,i,t){x.call(this,u),this.map=o;var s=v.load(o,i);this._nameCoordMap=s.nameCoordMap,this._regionsMap=s.regionsMap,this._invertLongitute=t==null?!0:t,this.regions=s.regions,this._rect=s.boundingRect}m.prototype={constructor:m,type:"geo",dimensions:["lng","lat"],containCoord:function(u){for(var o=this.regions,i=0;i<o.length;i++)if(o[i].contain(u))return!0;return!1},transformTo:function(u,o,i,t){var s=this.getBoundingRect(),e=this._invertLongitute;s=s.clone(),e&&(s.y=-s.y-s.height);var l=this._rawTransformable;if(l.transform=s.calculateTransform(new p(u,o,i,t)),l.decomposeTransform(),e){var r=l.scale;r[1]=-r[1]}l.updateTransform(),this._updateTransform()},getRegion:function(u){return this._regionsMap.get(u)},getRegionByCoord:function(u){for(var o=this.regions,i=0;i<o.length;i++)if(o[i].contain(u))return o[i]},addGeoCoord:function(u,o){this._nameCoordMap.set(u,o)},getGeoCoord:function(u){return this._nameCoordMap.get(u)},getBoundingRect:function(){return this._rect},dataToPoint:function(u,o,i){if(typeof u=="string"&&(u=this.getGeoCoord(u)),u)return x.prototype.dataToPoint.call(this,u,o,i)},convertToPixel:y.curry(f,"dataToPoint"),convertFromPixel:y.curry(f,"pointToData")},y.mixin(m,x);function f(u,o,i,t){var s=i.geoModel,e=i.seriesModel,l=s?s.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return l===this?l[u](t):null}var d=m;k.exports=d},AVZG:function(k,D,n){var y=n("bYtY");function p(x,v,m){m=m||{};var f=x.coordinateSystem,d=v.axis,u={},o=d.getAxesOnZeroOf()[0],i=d.position,t=o?"onZero":i,s=d.dim,e=f.getRect(),l=[e.x,e.x+e.width,e.y,e.y+e.height],r={left:0,right:1,top:0,bottom:1,onZero:2},a=v.get("offset")||0,c=s==="x"?[l[2]-a,l[3]+a]:[l[0]-a,l[1]+a];if(o){var h=o.toGlobalCoord(o.dataToCoord(0));c[r.onZero]=Math.max(Math.min(h,c[1]),c[0])}u.position=[s==="y"?c[r[t]]:l[0],s==="x"?c[r[t]]:l[3]],u.rotation=Math.PI/2*(s==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};u.labelDirection=u.tickDirection=u.nameDirection=g[i],u.labelOffset=o?c[r[i]]-c[r.onZero]:0,v.get("axisTick.inside")&&(u.tickDirection=-u.tickDirection),y.retrieve(m.labelInside,v.get("axisLabel.inside"))&&(u.labelDirection=-u.labelDirection);var A=v.get("axisLabel.rotate");return u.labelRotate=t==="top"?-A:A,u.z2=1,u}D.layout=p},"Ae+d":function(k,D){function n(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,u=f.position,o=f.scale,i=p.zoom=p.zoom||1;if(i*=x,d){var t=d.min||0,s=d.max||Infinity;i=Math.max(Math.min(s,i),t)}var e=i/p.zoom;p.zoom=i,u[0]-=(v-u[0])*(e-1),u[1]-=(m-u[1])*(e-1),o[0]*=e,o[1]*=e,f.dirty()}D.updateViewOnPan=n,D.updateViewOnZoom=y},Ae16:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS");n("Wqna"),n("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(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("PQMj"),v=n.n(x)},"B+YJ":function(k,D,n){n("TYVI"),n("p1MT")},"B6l+":function(k,D,n){var y=n("Sq3C"),p=n("Z1HP"),x=n("Sxd8"),v=n("dt0z");function m(f,d,u){f=v(f),d=x(d);var o=d?p(f):0;return d&&o<d?f+y(d-o,u):f}k.exports=m},B8du:function(k,D){function n(){return!1}k.exports=n},B9cy:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("0XgM"),v=n.n(x)},B9fm:function(k,D,n){var y=n("bYtY"),p=n("Qe9p"),x=n("YH21"),v=n("Ze12"),m=n("ItGF"),f=n("7aKB"),d=y.each,u=f.toCamelCase,o=["","-webkit-","-moz-","-o-"],i="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function t(c){var h="cubic-bezier(0.23, 1, 0.32, 1)",g="left "+c+"s "+h+",top "+c+"s "+h;return y.map(o,function(A){return A+"transition:"+g}).join(";")}function s(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 S=c.get(b);S&&h.push("text-"+b+":"+S)}),h.join(";")}function e(c){var h=[],g=c.get("transitionDuration"),A=c.get("backgroundColor"),b=c.getModel("textStyle"),S=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,_=u(C),T=c.get(_);T!=null&&h.push(C+":"+T+(E==="color"?"":"px"))}),h.push(s(b)),S!=null&&h.push("padding:"+f.normalizeCssArray(S).join("px ")+"px"),h.join(";")+";"}function l(c,h,g,A,b){var S=h&&h.painter;if(g){var E=S&&S.getViewportRoot();E&&v.transformLocalCoord(c,E,document.body,A,b)}else{c[0]=A,c[1]=b;var C=S&&S.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(),S=this._appendToBody=g&&g.appendToBody;this._styleCoord=[0,0],l(this._styleCoord,b,S,h.getWidth()/2,h.getHeight()/2),S?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=i+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;l(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 a=r;k.exports=a},BPZU:function(k,D){var n=32,y=7,p=256;function x(t){for(var s=0;t>=n;)s|=t&1,t>>=1;return t+s}function v(t,s,e,l){var r=s+1;if(r===e)return 1;if(l(t[r++],t[s])<0){for(;r<e&&l(t[r],t[r-1])<0;)r++;m(t,s,r)}else for(;r<e&&l(t[r],t[r-1])>=0;)r++;return r-s}function m(t,s,e){for(e--;s<e;){var l=t[s];t[s++]=t[e],t[e--]=l}}function f(t,s,e,l,r){for(l===s&&l++;l<e;l++){for(var a=t[l],c=s,h=l,g;c<h;)g=c+h>>>1,r(a,t[g])<0?h=g:c=g+1;var A=l-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]=a}}function d(t,s,e,l,r,a){var c=0,h=0,g=1;if(a(t,s[e+r])>0){for(h=l-r;g<h&&a(t,s[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&&a(t,s[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);a(t,s[e+b])>0?c=b+1:g=b}return g}function u(t,s,e,l,r,a){var c=0,h=0,g=1;if(a(t,s[e+r])<0){for(h=r+1;g<h&&a(t,s[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=l-r;g<h&&a(t,s[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);a(t,s[e+b])<0?g=b:c=b+1}return g}function o(t,s){var e=y,l=0,r=p,a=0,c,h,g=0;l=t.length,l<2*p&&(r=l>>>1);var A=[];a=l<120?5:l<1542?10:l<119151?19:40,c=[],h=[];function b(w,O){c[g]=w,h[g]=O,g+=1}function S(){for(;g>1;){var w=g-2;if(w>=1&&h[w-1]<=h[w]+h[w+1]||w>=2&&h[w-2]<=h[w]+h[w-1])h[w-1]<h[w+1]&&w--;else if(h[w]>h[w+1])break;C(w)}}function E(){for(;g>1;){var w=g-2;w>0&&h[w-1]<h[w+1]&&w--,C(w)}}function C(w){var O=c[w],I=h[w],R=c[w+1],M=h[w+1];h[w]=I+M,w===g-3&&(c[w+1]=c[w+2],h[w+1]=h[w+2]),g--;var B=u(t[R],t,O,I,0,s);if(O+=B,I-=B,I===0)return;if(M=d(t[O+I-1],t,R,M,M-1,s),M===0)return;I<=M?_(O,I,R,M):T(O,I,R,M)}function _(w,O,I,R){var M=0;for(M=0;M<O;M++)A[M]=t[w+M];var B=0,P=I,X=w;if(t[X++]=t[P++],--R===0){for(M=0;M<O;M++)t[X+M]=A[B+M];return}if(O===1){for(M=0;M<R;M++)t[X+M]=t[P+M];t[X+R]=A[B];return}for(var F=e,j,K,z;;){j=0,K=0,z=!1;do if(s(t[P],A[B])<0){if(t[X++]=t[P++],K++,j=0,--R===0){z=!0;break}}else if(t[X++]=A[B++],j++,K=0,--O===1){z=!0;break}while((j|K)<F);if(z)break;do{if(j=u(t[P],A,B,O,0,s),j!==0){for(M=0;M<j;M++)t[X+M]=A[B+M];if(X+=j,B+=j,O-=j,O<=1){z=!0;break}}if(t[X++]=t[P++],--R===0){z=!0;break}if(K=d(A[B],t,P,R,0,s),K!==0){for(M=0;M<K;M++)t[X+M]=t[P+M];if(X+=K,P+=K,R-=K,R===0){z=!0;break}}if(t[X++]=A[B++],--O===1){z=!0;break}F--}while(j>=y||K>=y);if(z)break;F<0&&(F=0),F+=2}if(e=F,e<1&&(e=1),O===1){for(M=0;M<R;M++)t[X+M]=t[P+M];t[X+R]=A[B]}else{if(O===0)throw new Error;for(M=0;M<O;M++)t[X+M]=A[B+M]}}function T(w,O,I,R){var M=0;for(M=0;M<R;M++)A[M]=t[I+M];var B=w+O-1,P=R-1,X=I+R-1,F=0,j=0;if(t[X--]=t[B--],--O===0){for(F=X-(R-1),M=0;M<R;M++)t[F+M]=A[M];return}if(R===1){for(X-=O,B-=O,j=X+1,F=B+1,M=O-1;M>=0;M--)t[j+M]=t[F+M];t[X]=A[P];return}for(var K=e;;){var z=0,V=0,Q=!1;do if(s(A[P],t[B])<0){if(t[X--]=t[B--],z++,V=0,--O===0){Q=!0;break}}else if(t[X--]=A[P--],V++,z=0,--R===1){Q=!0;break}while((z|V)<K);if(Q)break;do{if(z=O-u(A[P],t,w,O,O-1,s),z!==0){for(X-=z,B-=z,O-=z,j=X+1,F=B+1,M=z-1;M>=0;M--)t[j+M]=t[F+M];if(O===0){Q=!0;break}}if(t[X--]=A[P--],--R===1){Q=!0;break}if(V=R-d(t[B],A,0,R,R-1,s),V!==0){for(X-=V,P-=V,R-=V,j=X+1,F=P+1,M=0;M<V;M++)t[j+M]=A[F+M];if(R<=1){Q=!0;break}}if(t[X--]=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),R===1){for(X-=O,B-=O,j=X+1,F=B+1,M=O-1;M>=0;M--)t[j+M]=t[F+M];t[X]=A[P]}else{if(R===0)throw new Error;for(F=X-(R-1),M=0;M<R;M++)t[F+M]=A[M]}}this.mergeRuns=S,this.forceMergeRuns=E,this.pushRun=b}function i(t,s,e,l){e||(e=0),l||(l=t.length);var r=l-e;if(r<2)return;var a=0;if(r<n){a=v(t,e,l,s),f(t,e,l,e+a,s);return}var c=new o(t,s),h=x(r);do{if(a=v(t,e,l,s),a<h){var g=r;g>h&&(g=h),f(t,e,e+g,e+a,s),a=g}c.pushRun(e,a),c.mergeRuns(),r-=a,e+=a}while(r!==0);c.forceMergeRuns()}k.exports=i},Bd2K:function(k,D,n){(function(y){y(n("VrN/"),n("osHv"))})(function(y){y.defineOption("autoCloseTags",!1,function(o,i,t){if(t!=y.Init&&t&&o.removeKeyMap("autoCloseTags"),!i)return;var s={name:"autoCloseTags"};(typeof i!="object"||i.whenClosing!==!1)&&(s["'/'"]=function(e){return f(e)}),(typeof i!="object"||i.whenOpening!==!1)&&(s["'>'"]=function(e){return v(e)}),o.addKeyMap(s)});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 i=o.listSelections(),t=[],s=o.getOption("autoCloseTags"),e=0;e<i.length;e++){if(!i[e].empty())return y.Pass;var l=i[e].head,r=o.getTokenAt(l),a=y.innerMode(o.getMode(),r.state),c=a.state,h=a.mode.xmlCurrentTag&&a.mode.xmlCurrentTag(c),g=h&&h.name;if(!g)return y.Pass;var A=a.mode.configuration=="html",b=typeof s=="object"&&s.dontCloseTags||A&&p,S=typeof s=="object"&&s.indentTags||A&&x;r.end>l.ch&&(g=g.slice(0,g.length-r.end+l.ch));var E=g.toLowerCase();if(!g||r.type=="string"&&(r.end!=l.ch||!/[\"\']/.test(r.string.charAt(r.string.length-1))||r.string.length==1)||r.type=="tag"&&h.close||r.string.indexOf("/")==l.ch-r.start-1||b&&d(b,E)>-1||u(o,a.mode.xmlCurrentContext&&a.mode.xmlCurrentContext(c)||[],g,l,!0))return y.Pass;var C=typeof s=="object"&&s.emptyTags;if(C&&d(C,g)>-1){t[e]={text:"/>",newPos:y.Pos(l.line,l.ch+2)};continue}var _=S&&d(S,E)>-1;t[e]={indent:_,text:">"+(_?`
`:"")+"</"+g+">",newPos:_?y.Pos(l.line+1,0):y.Pos(l.line,l.ch+1)}}for(var T=typeof s=="object"&&s.dontIndentOnAutoClose,e=i.length-1;e>=0;e--){var w=t[e];o.replaceRange(w.text,i[e].head,i[e].anchor,"+insert");var O=o.listSelections().slice(0);O[e]={head:w.newPos,anchor:w.newPos},o.setSelections(O),!T&&w.indent&&(o.indentLine(w.newPos.line,null,!0),o.indentLine(w.newPos.line+1,null,!0))}}function m(o,i){for(var t=o.listSelections(),s=[],e=i?"/":"</",l=o.getOption("autoCloseTags"),r=typeof l=="object"&&l.dontIndentOnSlash,a=0;a<t.length;a++){if(!t[a].empty())return y.Pass;var c=t[a].head,h=o.getTokenAt(c),g=y.innerMode(o.getMode(),h.state),A=g.state;if(i&&(h.type=="string"||h.string.charAt(0)!="<"||h.start!=c.ch-1))return y.Pass;var b,S=g.mode.name!="xml"&&o.getMode().name=="htmlmixed";if(S&&g.mode.name=="javascript")b=e+"script";else if(S&&g.mode.name=="css")b=e+"style";else{var E=g.mode.xmlCurrentContext&&g.mode.xmlCurrentContext(A);if(!E||E.length&&u(o,E,E[E.length-1],c))return y.Pass;b=e+E[E.length-1]}o.getLine(c.line).charAt(h.end)!=">"&&(b+=">"),s[a]=b}if(o.replaceSelections(s),t=o.listSelections(),!r)for(var a=0;a<t.length;a++)(a==t.length-1||t[a].head.line<t[a+1].head.line)&&o.indentLine(t[a].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,i){if(o.indexOf)return o.indexOf(i);for(var t=0,s=o.length;t<s;++t)if(o[t]==i)return t;return-1}function u(o,i,t,s,e){if(!y.scanForClosingTag)return!1;var l=Math.min(o.lastLine()+1,s.line+500),r=y.scanForClosingTag(o,s,null,l);if(!r||r.tag!=t)return!1;for(var a=e?1:0,c=i.length-1;c>=0&&i[c]==t;c--)++a;s=r.to;for(var c=1;c<a;c++){var h=y.scanForClosingTag(o,s,null,l);if(!h||h.tag!=t)return!1;s=h.to}return!0}})},BlVb:function(k,D,n){var y=n("hyiK"),p=1e-8;function x(m,f){return Math.abs(m-f)<p}function v(m,f,d){var u=0,o=m[0];if(!o)return!1;for(var i=1;i<m.length;i++){var t=m[i];u+=y(o[0],o[1],t[0],t[1],f,d),o=t}var s=m[0];return(!x(o[0],s[0])||!x(o[1],s[1]))&&(u+=y(o[0],o[1],s[0],s[1],f,d)),u!==0}D.contain=v},BoS7:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("czTT"),v=n.n(x)},Bq2U:function(k,D,n){var y=n("RDYZ"),p=n("Qe9p"),x=n("bYtY"),v=x.isArrayLike,m=Array.prototype.slice;function f(b,S){return b[S]}function d(b,S,E){b[S]=E}function u(b,S,E){return(S-b)*E+b}function o(b,S,E){return E>.5?S:b}function i(b,S,E,C,_){var T=b.length;if(_===1)for(var w=0;w<T;w++)C[w]=u(b[w],S[w],E);else for(var O=T&&b[0].length,w=0;w<T;w++)for(var I=0;I<O;I++)C[w][I]=u(b[w][I],S[w][I],E)}function t(b,S,E){var C=b.length,_=S.length;if(C!==_){var T=C>_;if(T)b.length=_;else for(var w=C;w<_;w++)b.push(E===1?S[w]:m.call(S[w]))}for(var O=b[0]&&b[0].length,w=0;w<b.length;w++)if(E===1)isNaN(b[w])&&(b[w]=S[w]);else for(var I=0;I<O;I++)isNaN(b[w][I])&&(b[w][I]=S[w][I])}function s(b,S,E){if(b===S)return!0;var C=b.length;if(C!==S.length)return!1;if(E===1){for(var _=0;_<C;_++)if(b[_]!==S[_])return!1}else for(var T=b[0].length,_=0;_<C;_++)for(var w=0;w<T;w++)if(b[_][w]!==S[_][w])return!1;return!0}function e(b,S,E,C,_,T,w,O,I){var R=b.length;if(I===1)for(var M=0;M<R;M++)O[M]=l(b[M],S[M],E[M],C[M],_,T,w);else for(var B=b[0].length,M=0;M<R;M++)for(var P=0;P<B;P++)O[M][P]=l(b[M][P],S[M][P],E[M][P],C[M][P],_,T,w)}function l(b,S,E,C,_,T,w){var O=(E-b)*.5,I=(C-S)*.5;return(2*(S-E)+O+I)*w+(-3*(S-E)-2*O-I)*T+O*_+S}function r(b){if(v(b)){var S=b.length;if(v(b[0])){for(var E=[],C=0;C<S;C++)E.push(m.call(b[C]));return E}return m.call(b)}return b}function a(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 S=b[b.length-1].value;return v(S&&S[0])?2:1}function h(b,S,E,C,_,T){var w=b._getter,O=b._setter,I=S==="spline",R=C.length;if(!R)return;var M=C[0].value,B=v(M),P=!1,X=!1,F=B?c(C):0,j;C.sort(function(J,Y){return J.time-Y.time}),j=C[R-1].time;for(var K=[],z=[],V=C[0].value,Q=!0,G=0;G<R;G++){K.push(C[G].time/j);var te=C[G].value;if(B&&s(te,V,F)||!B&&te===V||(Q=!1),V=te,typeof te=="string"){var q=p.parse(te);q?(te=q,P=!0):X=!0}z.push(te)}if(!T&&Q)return;for(var le=z[R-1],G=0;G<R-1;G++)B?t(z[G],le,F):isNaN(z[G])&&!isNaN(le)&&!X&&!P&&(z[G]=le);B&&t(w(b._target,_),le,F);var re=0,we=0,Ie,Me,Je,Ve,ut,Fe;if(P)var ae=[0,0,0,0];var at=function(Y,$){var de;if($<0)de=0;else if($<we){for(Ie=Math.min(re+1,R-1),de=Ie;de>=0&&!(K[de]<=$);de--);de=Math.min(de,R-2)}else{for(de=re;de<R&&!(K[de]>$);de++);de=Math.min(de-1,R-2)}re=de,we=$;var be=K[de+1]-K[de];if(be===0)return;if(Me=($-K[de])/be,I)if(Ve=z[de],Je=z[de===0?de:de-1],ut=z[de>R-2?R-1:de+1],Fe=z[de>R-3?R-1:de+2],B)e(Je,Ve,ut,Fe,Me,Me*Me,Me*Me*Me,w(Y,_),F);else{var Ce;if(P)Ce=e(Je,Ve,ut,Fe,Me,Me*Me,Me*Me*Me,ae,1),Ce=a(ae);else{if(X)return o(Ve,ut,Me);Ce=l(Je,Ve,ut,Fe,Me,Me*Me,Me*Me*Me)}O(Y,_,Ce)}else if(B)i(z[de],z[de+1],Me,w(Y,_),F);else{var Ce;if(P)i(z[de],z[de+1],Me,ae,1),Ce=a(ae);else{if(X)return o(z[de],z[de+1],Me);Ce=u(z[de],z[de+1],Me)}O(Y,_,Ce)}},he=new y({target:b._target,life:j,loop:b._loop,delay:b._delay,onframe:at,ondestroy:E});return S&&S!=="spline"&&(he.easing=S),he}var g=function(S,E,C,_){this._tracks={},this._target=S,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(S,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;S!==0&&C[_].push({time:0,value:r(T)})}C[_].push({time:S,value:E[_]})}return this},during:function(S){return this._onframeList.push(S),this},pause:function(){for(var S=0;S<this._clipList.length;S++)this._clipList[S].pause();this._paused=!0},resume:function(){for(var S=0;S<this._clipList.length;S++)this._clipList[S].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var S=this._doneList,E=S.length,C=0;C<E;C++)S[C].call(this)},start:function(S,E){var C=this,_=0,T=function(){_--,_||C._doneCallback()},w;for(var O in this._tracks){if(!this._tracks.hasOwnProperty(O))continue;var I=h(this,S,T,this._tracks[O],O,E);I&&(this._clipList.push(I),_++,this.animation&&this.animation.addClip(I),w=I)}if(w){var R=w.onframe;w.onframe=function(M,B){R(M,B);for(var P=0;P<C._onframeList.length;P++)C._onframeList[P](M,B)}}return _||this._doneCallback(),this},stop:function(S){for(var E=this._clipList,C=this.animation,_=0;_<E.length;_++){var T=E[_];S&&T.onframe(this._target,1),C&&C.removeClip(T)}E.length=0},delay:function(S){return this._delay=S,this},done:function(S){return S&&this._doneList.push(S),this},getClips:function(){return this._clipList}};var A=g;k.exports=A},Bqw1:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};D.default=y},Bsck:function(k,D,n){var y=n("bYtY"),p=n("Qxkt"),x=n("Mdki"),v=n("YXkt"),m=n("sdST"),f=function(i,t){this.name=i||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};f.prototype={constructor:f,isRemoved:function(){return this.dataIndex<0},eachNode:function(i,t,s){typeof i=="function"&&(s=t,t=i,i=null),i=i||{},y.isString(i)&&(i={order:i});var e=i.order||"preorder",l=this[i.attr||"children"],r;e==="preorder"&&(r=t.call(s,this));for(var a=0;!r&&a<l.length;a++)l[a].eachNode(i,t,s);e==="postorder"&&t.call(s,this)},updateDepthAndHeight:function(i){var t=0;this.depth=i;for(var s=0;s<this.children.length;s++){var e=this.children[s];e.updateDepthAndHeight(i+1),e.height>t&&(t=e.height)}this.height=t+1},getNodeById:function(i){if(this.getId()===i)return this;for(var t=0,s=this.children,e=s.length;t<e;t++){var l=s[t].getNodeById(i);if(l)return l}},contains:function(i){if(i===this)return!0;for(var t=0,s=this.children,e=s.length;t<e;t++){var l=s[t].contains(i);if(l)return l}},getAncestors:function(i){for(var t=[],s=i?this:this.parentNode;s;)t.push(s),s=s.parentNode;return t.reverse(),t},getValue:function(i){var t=this.hostTree.data;return t.get(t.getDimension(i||"value"),this.dataIndex)},setLayout:function(i,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,i,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(i){if(this.dataIndex<0)return;var t=this.hostTree,s=t.data.getItemModel(this.dataIndex),e=this.getLevelModel();return e?s.getModel(i,e.getModel(i)):s.getModel(i)},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(i,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,i,t)},getVisual:function(i,t){return this.hostTree.data.getItemVisual(this.dataIndex,i,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(i){for(var t=i.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(i){return i!==this&&i.isAncestorOf(this)}};function d(i,t){this.root,this.data,this._nodes=[],this.hostModel=i,this.levelModels=y.map(t||[],function(s){return new p(s,i,i.ecModel)})}d.prototype={constructor:d,type:"tree",eachNode:function(i,t,s){this.root.eachNode(i,t,s)},getNodeByDataIndex:function(i){var t=this.data.getRawIndex(i);return this._nodes[t]},getNodeByName:function(i){return this.root.getNodeByName(i)},update:function(){for(var i=this.data,t=this._nodes,s=0,e=t.length;s<e;s++)t[s].dataIndex=-1;for(var s=0,e=i.count();s<e;s++)t[i.getRawIndex(s)].dataIndex=s},clearLayouts:function(){this.data.clearItemLayouts()}},d.createTree=function(i,t,s,e){var l=new d(t,s&&s.levels),r=[],a=1;c(i);function c(A,b){var S=A.value;a=Math.max(a,y.isArray(S)?S.length:1),r.push(A);var E=new f(A.name,l);b?u(E,b):l.root=E,l._nodes.push(E);var C=A.children;if(C)for(var _=0;_<C.length;_++)c(C[_],E)}l.root.updateDepthAndHeight(0);var h=m(r,{coordDimensions:["value"],dimensionsCount:a}),g=new v(h,t);return g.initData(r),e&&e(g),x({mainData:g,struct:l,structAttr:"tree"}),l.update(),l};function u(i,t){var s=t.children;if(i.parentNode===t)return;s.push(i),i.parentNode=t}var o=d;k.exports=o},BtR2:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="LikeOutlined";var d=D.a=p.forwardRef(f)},BuqR:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),v=n("6uqw"),m=n("XxSj"),f=n("YOMW"),d=n("OELB"),u=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,l){o.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var r=this._mode=this._determineMode();i[this._mode].call(this),this._resetSelected(e,l);var a=this.option.categories;this.resetVisual(function(c,h){r==="categories"?(c.mappingMethod="category",c.categories=x.clone(a)):(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,l={},r=m.listVisualTypes(),a=this.isCategory();x.each(e.pieces,function(h){x.each(r,function(g){h.hasOwnProperty(g)&&(l[g]=1)})}),x.each(l,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",a)})},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,l){var r=this.option,a=this._pieceList,c=(l?r:e).selected||{};if(r.selected=c,x.each(a,function(g,A){var b=this.getSelectedMapKey(g);c.hasOwnProperty(b)||(c[b]=!0)},this),r.selectedMode==="single"){var h=!1;x.each(a,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 l=m.findPieceIndex(e,this._pieceList);return l!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[l])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var l=[];return this.eachTargetSeries(function(r){var a=[],c=r.getData();c.each(this.getDataDimension(c),function(h,g){var A=m.findPieceIndex(h,this._pieceList);A===e&&a.push(g)},this),l.push({seriesId:r.id,dataIndex:a})},this),l},getRepresentValue:function(e){var l;if(this.isCategory())l=e.value;else if(e.value!=null)l=e.value;else{var r=e.interval||[];l=r[0]===-Infinity&&r[1]===Infinity?0:(r[0]+r[1])/2}return l},getVisualMeta:function(e){if(this.isCategory())return;var l=[],r=[],a=this;function c(b,S){var E=a.getRepresentValue({interval:b});S||(S=a.getValueState(E));var C=e(E,S);b[0]===-Infinity?r[0]=C:b[1]===Infinity?r[1]=C:l.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 S=b.interval;S&&(S[0]>A&&c([A,S[0]],"outOfRange"),c(S.slice()),A=S[1])},this),{stops:l,outerColors:r}}}),i={splitNumber:function(){var e=this.option,l=this._pieceList,r=Math.min(e.precision,20),a=this.getExtent(),c=e.splitNumber;c=Math.max(parseInt(c,10),1),e.splitNumber=c;for(var h=(a[1]-a[0])/c;+h.toFixed(r)!==h&&r<5;)r++;e.precision=r,h=+h.toFixed(r),e.minOpen&&l.push({interval:[-Infinity,a[0]],close:[0,0]});for(var g=0,A=a[0];g<c;A+=h,g++){var b=g===c-1?a[1]:A+h;l.push({interval:[A,b],close:[1,1]})}e.maxOpen&&l.push({interval:[a[1],Infinity],close:[0,0]}),u(l),x.each(l,function(S,E){S.index=E,S.text=this.formatValueText(S.interval)},this)},categories:function(){var e=this.option;x.each(e.categories,function(l){this._pieceList.push({text:this.formatValueText(l,!0),value:l})},this),t(e,this._pieceList)},pieces:function(){var e=this.option,l=this._pieceList;x.each(e.pieces,function(r,a){x.isObject(r)||(r={value:r});var c={text:"",index:a};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],S=[-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]=S[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),l.push(c)},this),t(e,l),u(l),x.each(l,function(r){var a=r.close,c=[["<","\u2264"][a[1]],[">","\u2265"][a[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,c)},this)}};function t(e,l){var r=e.inverse;(e.orient==="vertical"?!r:r)&&l.reverse()}var s=o;k.exports=s},BvKs:function(k,D,n){"use strict";n.d(D,"a",function(){return Ft});var y=n("pVnL"),p=n.n(y),x=n("lSNA"),v=n.n(x),m=n("lwsE"),f=n.n(m),d=n("W8MJ"),u=n.n(d),o=n("7W2i"),i=n.n(o),t=n("LQ03"),s=n.n(t),e=n("q1tI"),l=n("VTBJ"),r=n("1OyB"),a=n("vuIU"),c=n("JX7q"),h=n("Ji7U"),g=n("LK+K"),A=n("I8Z2"),b=n("BGR+"),S=n("wx14"),E=n("rePB"),C=n("4IlW"),_=n("2GS6"),T=n("Gytx"),w=n.n(T),O=n("TSYQ"),I=n.n(O),R=n("U8pU"),M=n("ODXe"),B=/iPhone/i,P=/iPod/i,X=/iPad/i,F=/\bAndroid(?:.+)Mobile\b/i,j=/Android/i,K=/\bAndroid(?:.+)SD4930UR\b/i,z=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,V=/Windows Phone/i,Q=/\bWindows(?:.+)ARM\b/i,G=/BlackBerry/i,te=/BB10/i,q=/Opera Mini/i,le=/\b(CriOS|Chrome)(?:.+)Mobile/i,re=/Mobile(?:.+)Firefox\b/i;function we(vt,bt){return vt.test(bt)}function Ie(vt){var bt=vt||(typeof navigator!="undefined"?navigator.userAgent:""),fr=bt.split("[FBAN");if(typeof fr[1]!="undefined"){var Qt=fr,Mt=Object(M.a)(Qt,1);bt=Mt[0]}if(fr=bt.split("Twitter"),typeof fr[1]!="undefined"){var qt=fr,kt=Object(M.a)(qt,1);bt=kt[0]}var er={apple:{phone:we(B,bt)&&!we(V,bt),ipod:we(P,bt),tablet:!we(B,bt)&&we(X,bt)&&!we(V,bt),device:(we(B,bt)||we(P,bt)||we(X,bt))&&!we(V,bt)},amazon:{phone:we(K,bt),tablet:!we(K,bt)&&we(z,bt),device:we(K,bt)||we(z,bt)},android:{phone:!we(V,bt)&&we(K,bt)||!we(V,bt)&&we(F,bt),tablet:!we(V,bt)&&!we(K,bt)&&!we(F,bt)&&(we(z,bt)||we(j,bt)),device:!we(V,bt)&&(we(K,bt)||we(z,bt)||we(F,bt)||we(j,bt))||we(/\bokhttp\b/i,bt)},windows:{phone:we(V,bt),tablet:we(Q,bt),device:we(V,bt)||we(Q,bt)},other:{blackberry:we(G,bt),blackberry10:we(te,bt),opera:we(q,bt),firefox:we(re,bt),chrome:we(le,bt),device:we(G,bt)||we(te,bt)||we(q,bt)||we(re,bt)||we(le,bt)},any:null,phone:null,tablet:null};return er.any=er.apple.device||er.android.device||er.windows.device||er.other.device,er.phone=er.apple.phone||er.android.phone||er.windows.phone,er.tablet=er.apple.tablet||er.android.tablet||er.windows.tablet,er}var Me=Object(l.a)(Object(l.a)({},Ie()),{},{isMobile:Ie}),Je=Me;function Ve(){}function ut(vt,bt,fr){var Qt=bt||"";return vt.key||"".concat(Qt,"item_").concat(fr)}function Fe(vt){return"".concat(vt,"-menu-")}function ae(vt,bt){var fr=-1;e.Children.forEach(vt,function(Qt){fr+=1,Qt&&Qt.type&&Qt.type.isMenuItemGroup?e.Children.forEach(Qt.props.children,function(Mt){fr+=1,bt(Mt,fr)}):bt(Qt,fr)})}function at(vt,bt,fr){if(!vt||fr.find)return;e.Children.forEach(vt,function(Qt){if(Qt){var Mt=Qt.type;if(!Mt||!(Mt.isSubMenu||Mt.isMenuItem||Mt.isMenuItemGroup))return;bt.indexOf(Qt.key)!==-1?fr.find=!0:Qt.props.children&&at(Qt.props.children,bt,fr)}})}var he=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],J=function(bt){var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qt=bt&&typeof bt.getBoundingClientRect=="function"&&bt.getBoundingClientRect().width;if(Qt){if(fr){var Mt=getComputedStyle(bt),qt=Mt.marginLeft,kt=Mt.marginRight;Qt+=+qt.replace("px","")+ +kt.replace("px","")}Qt=+Qt.toFixed(6)}return Qt||0},Y=function(bt,fr,Qt){bt&&Object(R.a)(bt.style)==="object"&&(bt.style[fr]=Qt)},$=function(){return Je.any},de=n("KQm4"),be=n("Ff2n"),Ce=n("i8i4"),Be=n("bdgK"),fe=n("Uaa1"),Se=n("HTfv"),ke={adjustX:1,adjustY:1},rt={topLeft:{points:["bl","tl"],overflow:ke,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ke,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ke,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ke,offset:[4,0]}},xt={topLeft:{points:["bl","tl"],overflow:ke,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ke,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ke,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ke,offset:[4,0]}},ht=rt,He=0,ir={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ct=function(bt,fr,Qt){var Mt=Fe(fr),qt=bt.getState();bt.setState({defaultActiveFirst:Object(l.a)(Object(l.a)({},qt.defaultActiveFirst),{},Object(E.a)({},Mt,Qt))})},Xt=function(vt){Object(h.a)(fr,vt);var bt=Object(g.a)(fr);function fr(Qt){var Mt;Object(r.a)(this,fr),Mt=bt.call(this,Qt),Mt.onDestroy=function(Dr){Mt.props.onDestroy(Dr)},Mt.onKeyDown=function(Dr){var dn=Dr.keyCode,yn=Mt.menuInstance,ti=Mt.props,ei=ti.isOpen,fi=ti.store;if(dn===C.a.ENTER)return Mt.onTitleClick(Dr),ct(fi,Mt.props.eventKey,!0),!0;if(dn===C.a.RIGHT)return ei?yn.onKeyDown(Dr):(Mt.triggerOpenChange(!0),ct(fi,Mt.props.eventKey,!0)),!0;if(dn===C.a.LEFT){var Ei;if(ei)Ei=yn.onKeyDown(Dr);else return;return Ei||(Mt.triggerOpenChange(!1),Ei=!0),Ei}return ei&&(dn===C.a.UP||dn===C.a.DOWN)?yn.onKeyDown(Dr):void 0},Mt.onOpenChange=function(Dr){Mt.props.onOpenChange(Dr)},Mt.onPopupVisibleChange=function(Dr){Mt.triggerOpenChange(Dr,Dr?"mouseenter":"mouseleave")},Mt.onMouseEnter=function(Dr){var dn=Mt.props,yn=dn.eventKey,ti=dn.onMouseEnter,ei=dn.store;ct(ei,Mt.props.eventKey,!1),ti({key:yn,domEvent:Dr})},Mt.onMouseLeave=function(Dr){var dn=Mt.props,yn=dn.parentMenu,ti=dn.eventKey,ei=dn.onMouseLeave;yn.subMenuInstance=Object(c.a)(Mt),ei({key:ti,domEvent:Dr})},Mt.onTitleMouseEnter=function(Dr){var dn=Mt.props,yn=dn.eventKey,ti=dn.onItemHover,ei=dn.onTitleMouseEnter;ti({key:yn,hover:!0}),ei({key:yn,domEvent:Dr})},Mt.onTitleMouseLeave=function(Dr){var dn=Mt.props,yn=dn.parentMenu,ti=dn.eventKey,ei=dn.onItemHover,fi=dn.onTitleMouseLeave;yn.subMenuInstance=Object(c.a)(Mt),ei({key:ti,hover:!1}),fi({key:ti,domEvent:Dr})},Mt.onTitleClick=function(Dr){var dn=Object(c.a)(Mt),yn=dn.props;if(yn.onTitleClick({key:yn.eventKey,domEvent:Dr}),yn.triggerSubMenuAction==="hover")return;Mt.triggerOpenChange(!yn.isOpen,"click"),ct(yn.store,Mt.props.eventKey,!1)},Mt.onSubMenuClick=function(Dr){typeof Mt.props.onClick=="function"&&Mt.props.onClick(Mt.addKeyPath(Dr))},Mt.onSelect=function(Dr){Mt.props.onSelect(Dr)},Mt.onDeselect=function(Dr){Mt.props.onDeselect(Dr)},Mt.getPrefixCls=function(){return"".concat(Mt.props.rootPrefixCls,"-submenu")},Mt.getActiveClassName=function(){return"".concat(Mt.getPrefixCls(),"-active")},Mt.getDisabledClassName=function(){return"".concat(Mt.getPrefixCls(),"-disabled")},Mt.getSelectedClassName=function(){return"".concat(Mt.getPrefixCls(),"-selected")},Mt.getOpenClassName=function(){return"".concat(Mt.props.rootPrefixCls,"-submenu-open")},Mt.saveMenuInstance=function(Dr){Mt.menuInstance=Dr},Mt.addKeyPath=function(Dr){return Object(l.a)(Object(l.a)({},Dr),{},{keyPath:(Dr.keyPath||[]).concat(Mt.props.eventKey)})},Mt.triggerOpenChange=function(Dr,dn){var yn=Mt.props.eventKey,ti=function(){Mt.onOpenChange({key:yn,item:Object(c.a)(Mt),trigger:dn,open:Dr})};dn==="mouseenter"?Mt.mouseenterTimeout=setTimeout(function(){ti()},0):ti()},Mt.isChildrenSelected=function(){var Dr={find:!1};return at(Mt.props.children,Mt.props.selectedKeys,Dr),Dr.find},Mt.isOpen=function(){return Mt.props.openKeys.indexOf(Mt.props.eventKey)!==-1},Mt.adjustWidth=function(){if(!Mt.subMenuTitle||!Mt.menuInstance)return;var Dr=Ce.findDOMNode(Mt.menuInstance);if(Dr.offsetWidth>=Mt.subMenuTitle.offsetWidth)return;Dr.style.minWidth="".concat(Mt.subMenuTitle.offsetWidth,"px")},Mt.saveSubMenuTitle=function(Dr){Mt.subMenuTitle=Dr},Mt.getBaseProps=function(){var Dr=Object(c.a)(Mt),dn=Dr.props;return{mode:dn.mode==="horizontal"?"vertical":dn.mode,visible:Mt.props.isOpen,level:dn.level+1,inlineIndent:dn.inlineIndent,focusable:!1,onClick:Mt.onSubMenuClick,onSelect:Mt.onSelect,onDeselect:Mt.onDeselect,onDestroy:Mt.onDestroy,selectedKeys:dn.selectedKeys,eventKey:"".concat(dn.eventKey,"-menu-"),openKeys:dn.openKeys,motion:dn.motion,onOpenChange:Mt.onOpenChange,subMenuOpenDelay:dn.subMenuOpenDelay,parentMenu:Object(c.a)(Mt),subMenuCloseDelay:dn.subMenuCloseDelay,forceSubMenuRender:dn.forceSubMenuRender,triggerSubMenuAction:dn.triggerSubMenuAction,builtinPlacements:dn.builtinPlacements,defaultActiveFirst:dn.store.getState().defaultActiveFirst[Fe(dn.eventKey)],multiple:dn.multiple,prefixCls:dn.rootPrefixCls,id:Mt.internalMenuId,manualRef:Mt.saveMenuInstance,itemIcon:dn.itemIcon,expandIcon:dn.expandIcon,direction:dn.direction}},Mt.getMotion=function(Dr,dn){var yn=Object(c.a)(Mt),ti=yn.haveRendered,ei=Mt.props,fi=ei.motion,Ei=ei.rootPrefixCls,Di=Object(l.a)(Object(l.a)({},fi),{},{leavedClassName:"".concat(Ei,"-hidden"),removeOnLeave:!1,motionAppear:ti||!dn||Dr!=="inline"});return Di};var qt=Qt.store,kt=Qt.eventKey,er=qt.getState(),Kr=er.defaultActiveFirst;Mt.isRootMenu=!1;var Ir=!1;return Kr&&(Ir=Kr[kt]),ct(qt,kt,Ir),Mt}return Object(a.a)(fr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Mt=this,qt=this.props,kt=qt.mode,er=qt.parentMenu,Kr=qt.manualRef;if(Kr&&Kr(this),kt!=="horizontal"||!er.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Mt.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Mt=this.props,qt=Mt.onDestroy,kt=Mt.eventKey;qt&&qt(kt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Mt){var qt=this,kt=this.getBaseProps(),er=this.getMotion(kt.mode,kt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||kt.visible||kt.forceSubMenuRender,!this.haveOpened)return e.createElement("div",null);var Kr=kt.direction;return e.createElement(Se.default,Object.assign({visible:kt.visible},er),function(Ir){var Dr=Ir.className,dn=Ir.style,yn=I()("".concat(kt.prefixCls,"-sub"),Dr,Object(E.a)({},"".concat(kt.prefixCls,"-rtl"),Kr==="rtl"));return e.createElement(rr,Object.assign({},kt,{id:qt.internalMenuId,className:yn,style:dn}),Mt)})}},{key:"render",value:function(){var Mt,qt=Object(l.a)({},this.props),kt=qt.isOpen,er=this.getPrefixCls(),Kr=qt.mode==="inline",Ir=I()(er,"".concat(er,"-").concat(qt.mode),(Mt={},Object(E.a)(Mt,qt.className,!!qt.className),Object(E.a)(Mt,this.getOpenClassName(),kt),Object(E.a)(Mt,this.getActiveClassName(),qt.active||kt&&!Kr),Object(E.a)(Mt,this.getDisabledClassName(),qt.disabled),Object(E.a)(Mt,this.getSelectedClassName(),this.isChildrenSelected()),Mt));this.internalMenuId||(qt.eventKey?this.internalMenuId="".concat(qt.eventKey,"$Menu"):(He+=1,this.internalMenuId="$__$".concat(He,"$Menu")));var Dr={},dn={},yn={};qt.disabled||(Dr={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},dn={onClick:this.onTitleClick},yn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ti={},ei=qt.direction;Kr&&(ei==="rtl"?ti.paddingRight=qt.inlineIndent*qt.level:ti.paddingLeft=qt.inlineIndent*qt.level);var fi={};this.props.isOpen&&(fi={"aria-owns":this.internalMenuId});var Ei=null;qt.mode!=="horizontal"&&(Ei=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Ei=e.createElement(this.props.expandIcon,Object(l.a)({},this.props))));var Di=e.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:ti,className:"".concat(er,"-title"),role:"button"},yn,dn,{"aria-expanded":kt},fi,{"aria-haspopup":"true",title:typeof qt.title=="string"?qt.title:void 0}),qt.title,Ei||e.createElement("i",{className:"".concat(er,"-arrow")})),Hi=this.renderChildren(qt.children),nt=qt.parentMenu.isRootMenu?qt.parentMenu.props.getPopupContainer:function(Qr){return Qr.parentNode},Le=ir[qt.mode],je=qt.popupOffset?{offset:qt.popupOffset}:{},Xe=qt.mode==="inline"?"":qt.popupClassName;Xe+=ei==="rtl"?" ".concat(er,"-rtl"):"";var tt=qt.disabled,Ze=qt.triggerSubMenuAction,st=qt.subMenuOpenDelay,Et=qt.forceSubMenuRender,gt=qt.subMenuCloseDelay,pr=qt.builtinPlacements;he.forEach(function(Qr){return delete qt[Qr]}),delete qt.onClick;var qr=ei==="rtl"?Object.assign({},xt,pr):Object.assign({},rt,pr);return delete qt.direction,e.createElement("li",Object.assign({},qt,Dr,{className:Ir,role:"menuitem"}),Kr&&Di,Kr&&Hi,!Kr&&e.createElement(fe.a,{prefixCls:er,popupClassName:I()("".concat(er,"-popup"),Xe),getPopupContainer:nt,builtinPlacements:qr,popupPlacement:Le,popupVisible:kt,popupAlign:je,popup:Hi,action:tt?[]:[Ze],mouseEnterDelay:st,mouseLeaveDelay:gt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Et},Di))}}]),fr}(e.Component);Xt.defaultProps={onMouseEnter:Ve,onMouseLeave:Ve,onTitleMouseEnter:Ve,onTitleMouseLeave:Ve,onTitleClick:Ve,manualRef:Ve,mode:"vertical",title:""};var hr=Object(A.b)(function(vt,bt){var fr=vt.openKeys,Qt=vt.activeKey,Mt=vt.selectedKeys,qt=bt.eventKey,kt=bt.subMenuKey;return{isOpen:fr.indexOf(qt)>-1,active:Qt[kt]===qt,selectedKeys:Mt}})(Xt);hr.isSubMenu=!0;var Jt=hr,Pt="menuitem-overflowed",Wt=.5,Ge=function(vt){Object(h.a)(fr,vt);var bt=Object(g.a)(fr);function fr(){var Qt;return Object(r.a)(this,fr),Qt=bt.apply(this,arguments),Qt.resizeObserver=null,Qt.mutationObserver=null,Qt.originalTotalWidth=0,Qt.overflowedItems=[],Qt.menuItemSizes=[],Qt.cancelFrameId=null,Qt.state={lastVisibleIndex:void 0},Qt.getMenuItemNodes=function(){var Mt=Qt.props.prefixCls,qt=Ce.findDOMNode(Object(c.a)(Qt));return qt?[].slice.call(qt.children).filter(function(kt){return kt.className.split(" ").indexOf("".concat(Mt,"-overflowed-submenu"))<0}):[]},Qt.getOverflowedSubMenuItem=function(Mt,qt,kt){var er=Qt.props,Kr=er.overflowedIndicator,Ir=er.level,Dr=er.mode,dn=er.prefixCls,yn=er.theme;if(Ir!==1||Dr!=="horizontal")return null;var ti=Qt.props.children[0],ei=ti.props,fi=ei.children,Ei=ei.title,Di=ei.style,Hi=Object(be.a)(ei,["children","title","style"]),nt=Object(l.a)({},Di),Le="".concat(Mt,"-overflowed-indicator"),je="".concat(Mt,"-overflowed-indicator");qt.length===0&&kt!==!0?nt=Object(l.a)(Object(l.a)({},nt),{},{display:"none"}):kt&&(nt=Object(l.a)(Object(l.a)({},nt),{},{visibility:"hidden",position:"absolute"}),Le="".concat(Le,"-placeholder"),je="".concat(je,"-placeholder"));var Xe=yn?"".concat(dn,"-").concat(yn):"",tt={};return he.forEach(function(Ze){Hi[Ze]!==void 0&&(tt[Ze]=Hi[Ze])}),e.createElement(Jt,Object.assign({title:Kr,className:"".concat(dn,"-overflowed-submenu"),popupClassName:Xe},tt,{key:Le,eventKey:je,disabled:!1,style:nt}),qt)},Qt.setChildrenWidthAndResize=function(){if(Qt.props.mode!=="horizontal")return;var Mt=Ce.findDOMNode(Object(c.a)(Qt));if(!Mt)return;var qt=Mt.children;if(!qt||qt.length===0)return;var kt=Mt.children[qt.length-1];Y(kt,"display","inline-block");var er=Qt.getMenuItemNodes(),Kr=er.filter(function(Ir){return Ir.className.split(" ").indexOf(Pt)>=0});Kr.forEach(function(Ir){Y(Ir,"display","inline-block")}),Qt.menuItemSizes=er.map(function(Ir){return J(Ir,!0)}),Kr.forEach(function(Ir){Y(Ir,"display","none")}),Qt.overflowedIndicatorWidth=J(Mt.children[Mt.children.length-1],!0),Qt.originalTotalWidth=Qt.menuItemSizes.reduce(function(Ir,Dr){return Ir+Dr},0),Qt.handleResize(),Y(kt,"display","none")},Qt.handleResize=function(){if(Qt.props.mode!=="horizontal")return;var Mt=Ce.findDOMNode(Object(c.a)(Qt));if(!Mt)return;var qt=J(Mt);Qt.overflowedItems=[];var kt=0,er;Qt.originalTotalWidth>qt+Wt&&(er=-1,Qt.menuItemSizes.forEach(function(Kr){kt+=Kr,kt+Qt.overflowedIndicatorWidth<=qt&&(er+=1)})),Qt.setState({lastVisibleIndex:er})},Qt}return Object(a.a)(fr,[{key:"componentDidMount",value:function(){var Mt=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var qt=Ce.findDOMNode(this);if(!qt)return;this.resizeObserver=new Be.default(function(kt){kt.forEach(function(){var er=Mt.cancelFrameId;cancelAnimationFrame(er),Mt.cancelFrameId=requestAnimationFrame(Mt.setChildrenWidthAndResize)})}),[].slice.call(qt.children).concat(qt).forEach(function(kt){Mt.resizeObserver.observe(kt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Mt.resizeObserver.disconnect(),[].slice.call(qt.children).concat(qt).forEach(function(kt){Mt.resizeObserver.observe(kt)}),Mt.setChildrenWidthAndResize()}),this.mutationObserver.observe(qt,{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(Mt){var qt=this,kt=this.state.lastVisibleIndex;return(Mt||[]).reduce(function(er,Kr,Ir){var Dr=Kr;if(qt.props.mode==="horizontal"){var dn=qt.getOverflowedSubMenuItem(Kr.props.eventKey,[]);kt!==void 0&&qt.props.className.indexOf("".concat(qt.props.prefixCls,"-root"))!==-1&&(Ir>kt&&(Dr=e.cloneElement(Kr,{style:{display:"none"},eventKey:"".concat(Kr.props.eventKey,"-hidden"),className:"".concat(Pt)})),Ir===kt+1&&(qt.overflowedItems=Mt.slice(kt+1).map(function(ti){return e.cloneElement(ti,{key:ti.props.eventKey,mode:"vertical-left"})}),dn=qt.getOverflowedSubMenuItem(Kr.props.eventKey,qt.overflowedItems)));var yn=[].concat(Object(de.a)(er),[dn,Dr]);return Ir===Mt.length-1&&yn.push(qt.getOverflowedSubMenuItem(Kr.props.eventKey,[],!0)),yn}return[].concat(Object(de.a)(er),[Dr])},[])}},{key:"render",value:function(){var Mt=this.props,qt=Mt.visible,kt=Mt.prefixCls,er=Mt.overflowedIndicator,Kr=Mt.mode,Ir=Mt.level,Dr=Mt.tag,dn=Mt.children,yn=Mt.theme,ti=Object(be.a)(Mt,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),ei=Dr;return e.createElement(ei,Object.assign({},ti),this.renderChildren(dn))}}]),fr}(e.Component);Ge.defaultProps={tag:"div",className:""};var pe=Ge;function se(vt){return vt.length?vt.every(function(bt){return!!bt.props.disabled}):!0}function lt(vt,bt,fr){var Qt=vt.getState();vt.setState({activeKey:Object(l.a)(Object(l.a)({},Qt.activeKey),{},Object(E.a)({},bt,fr))})}function qe(vt){return vt.eventKey||"0-menu-"}function me(vt,bt){var fr=bt,Qt=vt.children,Mt=vt.eventKey;if(fr){var qt;if(ae(Qt,function(kt,er){kt&&kt.props&&!kt.props.disabled&&fr===ut(kt,Mt,er)&&(qt=!0)}),qt)return fr}return fr=null,vt.defaultActiveFirst&&ae(Qt,function(kt,er){!fr&&kt&&!kt.props.disabled&&(fr=ut(kt,Mt,er))}),fr}function Ht(vt){if(vt){var bt=this.instanceArray.indexOf(vt);bt!==-1?this.instanceArray[bt]=vt:this.instanceArray.push(vt)}}var yr=function(vt){Object(h.a)(fr,vt);var bt=Object(g.a)(fr);function fr(Qt){var Mt;return Object(r.a)(this,fr),Mt=bt.call(this,Qt),Mt.onKeyDown=function(qt,kt){var er=qt.keyCode,Kr;if(Mt.getFlatInstanceArray().forEach(function(Dr){Dr&&Dr.props.active&&Dr.onKeyDown&&(Kr=Dr.onKeyDown(qt))}),Kr)return 1;var Ir=null;return(er===C.a.UP||er===C.a.DOWN)&&(Ir=Mt.step(er===C.a.UP?-1:1)),Ir?(qt.preventDefault(),lt(Mt.props.store,qe(Mt.props),Ir.props.eventKey),typeof kt=="function"&&kt(Ir),1):void 0},Mt.onItemHover=function(qt){var kt=qt.key,er=qt.hover;lt(Mt.props.store,qe(Mt.props),er?kt:null)},Mt.onDeselect=function(qt){Mt.props.onDeselect(qt)},Mt.onSelect=function(qt){Mt.props.onSelect(qt)},Mt.onClick=function(qt){Mt.props.onClick(qt)},Mt.onOpenChange=function(qt){Mt.props.onOpenChange(qt)},Mt.onDestroy=function(qt){Mt.props.onDestroy(qt)},Mt.getFlatInstanceArray=function(){return Mt.instanceArray},Mt.step=function(qt){var kt=Mt.getFlatInstanceArray(),er=Mt.props.store.getState().activeKey[qe(Mt.props)],Kr=kt.length;if(!Kr)return null;qt<0&&(kt=kt.concat().reverse());var Ir=-1;if(kt.every(function(ti,ei){return ti&&ti.props.eventKey===er?(Ir=ei,!1):!0}),!Mt.props.defaultActiveFirst&&Ir!==-1&&se(kt.slice(Ir,Kr-1)))return;var Dr=(Ir+1)%Kr,dn=Dr;do{var yn=kt[dn];if(!yn||yn.props.disabled)dn=(dn+1)%Kr;else return yn}while(dn!==Dr);return null},Mt.renderCommonMenuItem=function(qt,kt,er){var Kr=Mt.props.store.getState(),Ir=Object(c.a)(Mt),Dr=Ir.props,dn=ut(qt,Dr.eventKey,kt),yn=qt.props;if(!yn||typeof qt.type=="string")return qt;var ti=dn===Kr.activeKey,ei=Object(l.a)(Object(l.a)({mode:yn.mode||Dr.mode,level:Dr.level,inlineIndent:Dr.inlineIndent,renderMenuItem:Mt.renderMenuItem,rootPrefixCls:Dr.prefixCls,index:kt,parentMenu:Dr.parentMenu,manualRef:yn.disabled?void 0:Object(_.a)(qt.ref,Ht.bind(Object(c.a)(Mt))),eventKey:dn,active:!yn.disabled&&ti,multiple:Dr.multiple,onClick:function(Ei){(yn.onClick||Ve)(Ei),Mt.onClick(Ei)},onItemHover:Mt.onItemHover,motion:Dr.motion,subMenuOpenDelay:Dr.subMenuOpenDelay,subMenuCloseDelay:Dr.subMenuCloseDelay,forceSubMenuRender:Dr.forceSubMenuRender,onOpenChange:Mt.onOpenChange,onDeselect:Mt.onDeselect,onSelect:Mt.onSelect,builtinPlacements:Dr.builtinPlacements,itemIcon:yn.itemIcon||Mt.props.itemIcon,expandIcon:yn.expandIcon||Mt.props.expandIcon},er),{},{direction:Dr.direction});return(Dr.mode==="inline"||$())&&(ei.triggerSubMenuAction="click"),e.cloneElement(qt,ei)},Mt.renderMenuItem=function(qt,kt,er){if(!qt)return null;var Kr=Mt.props.store.getState(),Ir={openKeys:Kr.openKeys,selectedKeys:Kr.selectedKeys,triggerSubMenuAction:Mt.props.triggerSubMenuAction,subMenuKey:er};return Mt.renderCommonMenuItem(qt,kt,Ir)},Qt.store.setState({activeKey:Object(l.a)(Object(l.a)({},Qt.store.getState().activeKey),{},Object(E.a)({},Qt.eventKey,me(Qt,Qt.activeKey)))}),Mt.instanceArray=[],Mt}return Object(a.a)(fr,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Mt){return this.props.visible||Mt.visible||this.props.className!==Mt.className||!w()(this.props.style,Mt.style)}},{key:"componentDidUpdate",value:function(Mt){var qt=this.props,kt="activeKey"in qt?qt.activeKey:qt.store.getState().activeKey[qe(qt)],er=me(qt,kt);if(er!==kt)lt(qt.store,qe(qt),er);else if("activeKey"in Mt){var Kr=me(Mt,Mt.activeKey);er!==Kr&&lt(qt.store,qe(qt),er)}}},{key:"render",value:function(){var Mt=this,qt=Object(S.a)({},this.props);this.instanceArray=[];var kt=I()(qt.prefixCls,qt.className,"".concat(qt.prefixCls,"-").concat(qt.mode)),er={className:kt,role:qt.role||"menu"};qt.id&&(er.id=qt.id),qt.focusable&&(er.tabIndex=0,er.onKeyDown=this.onKeyDown);var Kr=qt.prefixCls,Ir=qt.eventKey,Dr=qt.visible,dn=qt.level,yn=qt.mode,ti=qt.overflowedIndicator,ei=qt.theme;return he.forEach(function(fi){return delete qt[fi]}),delete qt.onClick,e.createElement(pe,Object.assign({},qt,{prefixCls:Kr,mode:yn,tag:"ul",level:dn,theme:ei,visible:Dr,overflowedIndicator:ti},er),e.Children.map(qt.children,function(fi,Ei){return Mt.renderMenuItem(fi,Ei,Ir||"0-menu-")}))}}]),fr}(e.Component);yr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ve};var At=Object(A.b)()(yr),rr=At,ur=n("Kwbf");function vn(vt,bt,fr){var Qt=vt.prefixCls,Mt=vt.motion,qt=vt.defaultMotions,kt=qt===void 0?{}:qt,er=vt.openAnimation,Kr=vt.openTransitionName,Ir=bt.switchingModeFromInline;if(Mt)return Mt;if(Object(R.a)(er)==="object"&&er)Object(ur.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof er=="string")return{motionName:"".concat(Qt,"-open-").concat(er)};if(Kr)return{motionName:Kr};var Dr=kt[fr];return Dr||(Ir?null:kt.other)}var Bt=function(vt){Object(h.a)(fr,vt);var bt=Object(g.a)(fr);function fr(Qt){var Mt;Object(r.a)(this,fr),Mt=bt.call(this,Qt),Mt.inlineOpenKeys=[],Mt.onSelect=function(er){var Kr=Object(c.a)(Mt),Ir=Kr.props;if(Ir.selectable){var Dr=Mt.store.getState(),dn=Dr.selectedKeys,yn=er.key;Ir.multiple?dn=dn.concat([yn]):dn=[yn],"selectedKeys"in Ir||Mt.store.setState({selectedKeys:dn}),Ir.onSelect(Object(l.a)(Object(l.a)({},er),{},{selectedKeys:dn}))}},Mt.onClick=function(er){var Kr=Mt.getRealMenuMode(),Ir=Object(c.a)(Mt),Dr=Ir.store,dn=Ir.props.onOpenChange;Kr!=="inline"&&!("openKeys"in Mt.props)&&(Dr.setState({openKeys:[]}),dn([])),Mt.props.onClick(er)},Mt.onKeyDown=function(er,Kr){Mt.innerMenu.getWrappedInstance().onKeyDown(er,Kr)},Mt.onOpenChange=function(er){var Kr=Object(c.a)(Mt),Ir=Kr.props,Dr=Mt.store.getState().openKeys.concat(),dn=!1,yn=function(ei){var fi=!1;if(ei.open)fi=Dr.indexOf(ei.key)===-1,fi&&Dr.push(ei.key);else{var Ei=Dr.indexOf(ei.key);fi=Ei!==-1,fi&&Dr.splice(Ei,1)}dn=dn||fi};Array.isArray(er)?er.forEach(yn):yn(er),dn&&("openKeys"in Mt.props||Mt.store.setState({openKeys:Dr}),Ir.onOpenChange(Dr))},Mt.onDeselect=function(er){var Kr=Object(c.a)(Mt),Ir=Kr.props;if(Ir.selectable){var Dr=Mt.store.getState().selectedKeys.concat(),dn=er.key,yn=Dr.indexOf(dn);yn!==-1&&Dr.splice(yn,1),"selectedKeys"in Ir||Mt.store.setState({selectedKeys:Dr}),Ir.onDeselect(Object(l.a)(Object(l.a)({},er),{},{selectedKeys:Dr}))}},Mt.onMouseEnter=function(er){Mt.restoreModeVerticalFromInline();var Kr=Mt.props.onMouseEnter;Kr&&Kr(er)},Mt.onTransitionEnd=function(er){var Kr=er.propertyName==="width"&&er.target===er.currentTarget,Ir=er.target.className,Dr=Object.prototype.toString.call(Ir)==="[object SVGAnimatedString]"?Ir.animVal:Ir,dn=er.propertyName==="font-size"&&Dr.indexOf("anticon")>=0;(Kr||dn)&&Mt.restoreModeVerticalFromInline()},Mt.setInnerMenu=function(er){Mt.innerMenu=er},Mt.isRootMenu=!0;var qt=Qt.defaultSelectedKeys,kt=Qt.defaultOpenKeys;return"selectedKeys"in Qt&&(qt=Qt.selectedKeys||[]),"openKeys"in Qt&&(kt=Qt.openKeys||[]),Mt.store=Object(A.c)({selectedKeys:qt,openKeys:kt,activeKey:{"0-menu-":me(Qt,Qt.activeKey)}}),Mt.state={switchingModeFromInline:!1},Mt}return Object(a.a)(fr,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Mt){this.updateOpentKeysWhenSwitchMode(Mt),this.updateMiniStore();var qt=this.props,kt=qt.siderCollapsed,er=qt.inlineCollapsed,Kr=qt.onOpenChange;(!Mt.inlineCollapsed&&er||!Mt.siderCollapsed&&kt)&&Kr([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Mt){var qt=this.props,kt=this.store,er=this.inlineOpenKeys,Kr=kt.getState(),Ir={};Mt.mode==="inline"&&qt.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in qt||((qt.inlineCollapsed&&!Mt.inlineCollapsed||qt.siderCollapsed&&!Mt.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Kr.openKeys.concat(),Ir.openKeys=[]),(!qt.inlineCollapsed&&Mt.inlineCollapsed||!qt.siderCollapsed&&Mt.siderCollapsed)&&(Ir.openKeys=er,this.inlineOpenKeys=[])),Object.keys(Ir).length&&kt.setState(Ir)}},{key:"updateMenuDisplay",value:function(){var Mt=this.props.collapsedWidth,qt=this.store,kt=this.prevOpenKeys,er=this.getInlineCollapsed()&&(Mt===0||Mt==="0"||Mt==="0px");er?(this.prevOpenKeys=qt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):kt&&(this.store.setState({openKeys:kt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Mt=this.props.mode,qt=this.state.switchingModeFromInline,kt=this.getInlineCollapsed();return qt&&kt?"inline":kt?"vertical":Mt}},{key:"getInlineCollapsed",value:function(){var Mt=this.props,qt=Mt.inlineCollapsed,kt=Mt.siderCollapsed;return kt!==void 0?kt:qt}},{key:"restoreModeVerticalFromInline",value:function(){var Mt=this.state.switchingModeFromInline;Mt&&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 Mt=Object(l.a)({},Object(b.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),qt=this.getRealMenuMode();return Mt.className+=" ".concat(Mt.prefixCls,"-root"),Mt.direction==="rtl"&&(Mt.className+=" ".concat(Mt.prefixCls,"-rtl")),Mt=Object(l.a)(Object(l.a)({},Mt),{},{mode:qt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:vn(this.props,this.state,qt)}),delete Mt.openAnimation,delete Mt.openTransitionName,e.createElement(A.a,{store:this.store},e.createElement(rr,Object.assign({},Mt,{ref:this.setInnerMenu}),this.props.children))}}]),fr}(e.Component);Bt.defaultProps={selectable:!0,onClick:Ve,onSelect:Ve,onOpenChange:Ve,onDeselect:Ve,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:e.createElement("span",null,"\xB7\xB7\xB7")};var sr=Bt,Yt=function(vt){Object(h.a)(fr,vt);var bt=Object(g.a)(fr);function fr(){var Qt;return Object(r.a)(this,fr),Qt=bt.apply(this,arguments),Qt.onKeyDown=function(Mt){var qt=Mt.keyCode;return qt===C.a.ENTER?(Qt.onClick(Mt),!0):void 0},Qt.onMouseLeave=function(Mt){var qt=Qt.props,kt=qt.eventKey,er=qt.onItemHover,Kr=qt.onMouseLeave;er({key:kt,hover:!1}),Kr({key:kt,domEvent:Mt})},Qt.onMouseEnter=function(Mt){var qt=Qt.props,kt=qt.eventKey,er=qt.onItemHover,Kr=qt.onMouseEnter;er({key:kt,hover:!0}),Kr({key:kt,domEvent:Mt})},Qt.onClick=function(Mt){var qt=Qt.props,kt=qt.eventKey,er=qt.multiple,Kr=qt.onClick,Ir=qt.onSelect,Dr=qt.onDeselect,dn=qt.isSelected,yn={key:kt,keyPath:[kt],item:Object(c.a)(Qt),domEvent:Mt};Kr(yn),er?dn?Dr(yn):Ir(yn):dn||Ir(yn)},Qt.saveNode=function(Mt){Qt.node=Mt},Qt}return Object(a.a)(fr,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Mt=this.props;Mt.onDestroy&&Mt.onDestroy(Mt.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 Mt,qt=Object(l.a)({},this.props),kt=I()(this.getPrefixCls(),qt.className,(Mt={},Object(E.a)(Mt,this.getActiveClassName(),!qt.disabled&&qt.active),Object(E.a)(Mt,this.getSelectedClassName(),qt.isSelected),Object(E.a)(Mt,this.getDisabledClassName(),qt.disabled),Mt)),er=Object(l.a)(Object(l.a)({},qt.attribute),{},{title:typeof qt.title=="string"?qt.title:void 0,className:kt,role:qt.role||"menuitem","aria-disabled":qt.disabled});qt.role==="option"?er=Object(l.a)(Object(l.a)({},er),{},{role:"option","aria-selected":qt.isSelected}):(qt.role===null||qt.role==="none")&&(er.role="none");var Kr={onClick:qt.disabled?null:this.onClick,onMouseLeave:qt.disabled?null:this.onMouseLeave,onMouseEnter:qt.disabled?null:this.onMouseEnter},Ir=Object(l.a)({},qt.style);qt.mode==="inline"&&(qt.direction==="rtl"?Ir.paddingRight=qt.inlineIndent*qt.level:Ir.paddingLeft=qt.inlineIndent*qt.level),he.forEach(function(dn){return delete qt[dn]}),delete qt.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)(qt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),er,Kr,{style:Ir,ref:this.saveNode}),qt.children,Dr)}}]),fr}(e.Component);Yt.isMenuItem=!0,Yt.defaultProps={onSelect:Ve,onMouseEnter:Ve,onMouseLeave:Ve,manualRef:Ve};var pt=Object(A.b)(function(vt,bt){var fr=vt.activeKey,Qt=vt.selectedKeys,Mt=bt.eventKey,qt=bt.subMenuKey;return{active:fr[qt]===Mt,isSelected:Qt.indexOf(Mt)!==-1}})(Yt),it=pt,Fr=function(vt){Object(h.a)(fr,vt);var bt=Object(g.a)(fr);function fr(){var Qt;return Object(r.a)(this,fr),Qt=bt.apply(this,arguments),Qt.renderInnerMenuItem=function(Mt){var qt=Qt.props,kt=qt.renderMenuItem,er=qt.index;return kt(Mt,er,Qt.props.subMenuKey)},Qt}return Object(a.a)(fr,[{key:"render",value:function(){var Mt=Object(S.a)({},this.props),qt=Mt.className,kt=qt===void 0?"":qt,er=Mt.rootPrefixCls,Kr="".concat(er,"-item-group-title"),Ir="".concat(er,"-item-group-list"),Dr=Mt.title,dn=Mt.children;return he.forEach(function(yn){return delete Mt[yn]}),delete Mt.onClick,delete Mt.direction,e.createElement("li",Object.assign({},Mt,{className:"".concat(kt," ").concat(er,"-item-group")}),e.createElement("div",{className:Kr,title:typeof Dr=="string"?Dr:void 0},Dr),e.createElement("ul",{className:Ir},e.Children.map(dn,this.renderInnerMenuItem)))}}]),fr}(e.Component);Fr.isMenuItemGroup=!0,Fr.defaultProps={disabled:!0};var cn=Fr,_n=function(bt){var fr=bt.className,Qt=bt.rootPrefixCls,Mt=bt.style;return e.createElement("li",{className:"".concat(fr," ").concat(Qt,"-item-divider"),style:Mt})};_n.defaultProps={disabled:!0,className:"",style:{}};var Kn=_n,gi=sr,Mn=Object(e.createContext)({inlineCollapsed:!1}),Un=Mn,$t=n("0n0R"),Ct=function(vt){i()(fr,vt);var bt=s()(fr);function fr(){return f()(this,fr),bt.apply(this,arguments)}return u()(fr,[{key:"renderTitle",value:function(Mt){var qt=this.props,kt=qt.icon,er=qt.title,Kr=qt.level,Ir=qt.rootPrefixCls;if(!kt)return Mt&&Kr===1&&er&&typeof er=="string"?e.createElement("div",{className:"".concat(Ir,"-inline-collapsed-noicon")},er.charAt(0)):er;var Dr=Object($t.b)(er)&&er.type==="span";return e.createElement(e.Fragment,null,kt,Dr?er:e.createElement("span",null,er))}},{key:"render",value:function(){var Mt=this,qt=this.props,kt=qt.rootPrefixCls,er=qt.popupClassName;return e.createElement(Un.Consumer,null,function(Kr){var Ir=Kr.inlineCollapsed,Dr=Kr.antdMenuTheme;return e.createElement(Jt,p()({},Object(b.default)(Mt.props,["icon"]),{title:Mt.renderTitle(Ir),popupClassName:I()(kt,"".concat(kt,"-").concat(Dr),er)}))})}}]),fr}(e.Component);Ct.contextType=Un,Ct.isSubMenu=1;var Re=Ct,De=n("Zm9Q"),Pe=n("3S7+"),et=n("ZX9x"),yt=function(vt,bt){var fr={};for(var Qt in vt)Object.prototype.hasOwnProperty.call(vt,Qt)&&bt.indexOf(Qt)<0&&(fr[Qt]=vt[Qt]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Qt=Object.getOwnPropertySymbols(vt);Mt<Qt.length;Mt++)bt.indexOf(Qt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(vt,Qt[Mt])&&(fr[Qt[Mt]]=vt[Qt[Mt]]);return fr},St=function(vt){i()(fr,vt);var bt=s()(fr);function fr(){var Qt;return f()(this,fr),Qt=bt.apply(this,arguments),Qt.renderItem=function(Mt){var qt=Mt.siderCollapsed,kt=Qt.props,er=kt.level,Kr=kt.className,Ir=kt.children,Dr=kt.rootPrefixCls,dn=Qt.props,yn=dn.title,ti=dn.icon,ei=dn.danger,fi=yt(dn,["title","icon","danger"]);return e.createElement(Un.Consumer,null,function(Ei){var Di,Hi=Ei.inlineCollapsed,nt=Ei.direction,Le=yn;typeof yn=="undefined"?Le=er===1?Ir:"":yn===!1&&(Le="");var je={title:Le};!qt&&!Hi&&(je.title=null,je.visible=!1);var Xe=Object(De.a)(Ir).length;return e.createElement(Pe.a,p()({},je,{placement:nt==="rtl"?"left":"right",overlayClassName:"".concat(Dr,"-inline-collapsed-tooltip")}),e.createElement(it,p()({},fi,{className:I()(Kr,(Di={},v()(Di,"".concat(Dr,"-item-danger"),ei),v()(Di,"".concat(Dr,"-item-only-child"),(ti?Xe+1:Xe)===1),Di)),title:yn}),ti,Qt.renderItemChildren(Hi)))})},Qt}return u()(fr,[{key:"renderItemChildren",value:function(Mt){var qt=this.props,kt=qt.icon,er=qt.children,Kr=qt.level,Ir=qt.rootPrefixCls;return!kt||Object($t.b)(er)&&er.type==="span"?er&&Mt&&Kr===1&&typeof er=="string"?e.createElement("div",{className:"".concat(Ir,"-inline-collapsed-noicon")},er.charAt(0)):er:e.createElement("span",null,er)}},{key:"render",value:function(){return e.createElement(et.a.Consumer,null,this.renderItem)}}]),fr}(e.Component);St.isMenuItem=!0;var Vt=n("H84U"),Rr=n("uaoM"),Vr=n("EXcs"),hn=function(vt){i()(fr,vt);var bt=s()(fr);function fr(Qt){var Mt;return f()(this,fr),Mt=bt.call(this,Qt),Mt.renderMenu=function(qt){var kt=qt.getPopupContainer,er=qt.getPrefixCls,Kr=qt.direction,Ir=Mt.props,Dr=Ir.prefixCls,dn=Ir.className,yn=Ir.theme,ti={horizontal:{motionName:"slide-up"},inline:Vr.a,other:{motionName:"zoom-big"}},ei=er("menu",Dr),fi=I()(dn,"".concat(ei,"-").concat(yn),v()({},"".concat(ei,"-inline-collapsed"),Mt.getInlineCollapsed()));return e.createElement(Un.Provider,{value:{inlineCollapsed:Mt.getInlineCollapsed()||!1,antdMenuTheme:yn,direction:Kr}},e.createElement(gi,p()({getPopupContainer:kt},Mt.props,{className:fi,prefixCls:ei,direction:Kr,defaultMotions:ti})))},Object(Rr.a)(!("inlineCollapsed"in Qt&&Qt.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(Rr.a)(!(Qt.siderCollapsed!==void 0&&"inlineCollapsed"in Qt),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),Mt}return u()(fr,[{key:"getInlineCollapsed",value:function(){var Mt=this.props,qt=Mt.inlineCollapsed,kt=Mt.siderCollapsed;return kt!==void 0?kt:qt}},{key:"render",value:function(){return e.createElement(Vt.a,null,this.renderMenu)}}]),fr}(e.Component);hn.defaultProps={className:"",theme:"light",focusable:!1};var Ft=function(vt){i()(fr,vt);var bt=s()(fr);function fr(){return f()(this,fr),bt.apply(this,arguments)}return u()(fr,[{key:"render",value:function(){var Mt=this;return e.createElement(et.a.Consumer,null,function(qt){return e.createElement(hn,p()({},Mt.props,qt))})}}]),fr}(e.Component);Ft.Divider=Kn,Ft.Item=St,Ft.SubMenu=Re,Ft.ItemGroup=cn},C0SR:function(k,D,n){var y=n("YH21"),p=function(){this._track=[]};p.prototype={constructor:p,recognize:function(u,o,i){return this._doTrack(u,o,i),this._recognize(u)},clear:function(){return this._track.length=0,this},_doTrack:function(u,o,i){var t=u.touches;if(!t)return;for(var s={points:[],touches:[],target:o,event:u},e=0,l=t.length;e<l;e++){var r=t[e],a=y.clientToLocal(i,r,{});s.points.push([a.zrX,a.zrY]),s.touches.push(r)}this._track.push(s)},_recognize:function(u){for(var o in m)if(m.hasOwnProperty(o)){var i=m[o](this._track,u);if(i)return i}}};function x(d){var u=d[1][0]-d[0][0],o=d[1][1]-d[0][1];return Math.sqrt(u*u+o*o)}function v(d){return[(d[0][0]+d[1][0])/2,(d[0][1]+d[1][1])/2]}var m={pinch:function(u,o){var i=u.length;if(!i)return;var t=(u[i-1]||{}).points,s=(u[i-2]||{}).points||t;if(s&&s.length>1&&t&&t.length>1){var e=x(t)/x(s);!isFinite(e)&&(e=1),o.pinchScale=e;var l=v(t);return o.pinchX=l[0],o.pinchY=l[1],{type:"pinch",target:u[0].target,event:o}}}},f=p;k.exports=f},C0tN:function(k,D,n){n("0o9m"),n("8Uz6"),n("Ducp"),n("6/nd")},CBdT:function(k,D,n){var y=n("ProS");n("8waO"),n("AEZ6"),n("YNf1");var p=n("q3GZ");y.registerVisual(p)},CF2D:function(k,D,n){var y=n("ProS");n("vZI5"),n("GeKi");var p=n("6r85"),x=n("TJmX"),v=n("CbHG");y.registerPreprocessor(p),y.registerVisual(x),y.registerLayout(v)},CFYs:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),v=n.n(x),m=n("lwsE"),f=n.n(m),d=n("W8MJ"),u=n.n(d),o=n("PJYZ"),i=n.n(o),t=n("7W2i"),s=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),a=n.n(r),c=n("TSYQ"),h=n.n(c),g=n("BGR+"),A=n("V/uB"),b=n.n(A),S=n("NAnI"),E=n.n(S),C=n("J84W"),_=n.n(C),T=n("kbBi"),w=n.n(T),O=n("H84U"),I=n("CWQg"),R=n("uaoM"),M=n("lMfh"),B=n.n(M),P=2,X=.16,F=.05,j=.05,K=.15,z=5,V=4,Q=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function G(St,Vt,Rr){var Vr;return Math.round(St.h)>=60&&Math.round(St.h)<=240?Vr=Rr?Math.round(St.h)-P*Vt:Math.round(St.h)+P*Vt:Vr=Rr?Math.round(St.h)+P*Vt:Math.round(St.h)-P*Vt,Vr<0?Vr+=360:Vr>=360&&(Vr-=360),Vr}function te(St,Vt,Rr){if(St.h===0&&St.s===0)return St.s;var Vr;return Rr?Vr=St.s-X*Vt:Vt===V?Vr=St.s+X:Vr=St.s+F*Vt,Vr>1&&(Vr=1),Rr&&Vt===z&&Vr>.1&&(Vr=.1),Vr<.06&&(Vr=.06),Number(Vr.toFixed(2))}function q(St,Vt,Rr){var Vr;return Rr?Vr=St.v+j*Vt:Vr=St.v-K*Vt,Vr>1&&(Vr=1),Number(Vr.toFixed(2))}function le(St){for(var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Rr=[],Vr=B()(St),hn=z;hn>0;hn-=1){var Ft=Vr.toHsv(),vt=B()({h:G(Ft,hn,!0),s:te(Ft,hn,!0),v:q(Ft,hn,!0)}).toHexString();Rr.push(vt)}Rr.push(Vr.toHexString());for(var bt=1;bt<=V;bt+=1){var fr=Vr.toHsv(),Qt=B()({h:G(fr,bt),s:te(fr,bt),v:q(fr,bt)}).toHexString();Rr.push(Qt)}return Vt.theme==="dark"?Q.map(function(Mt){var qt=Mt.index,kt=Mt.opacity,er=B.a.mix(Vt.backgroundColor||"#141414",Rr[qt],kt*100).toHexString();return er}):Rr}var re={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},we={},Ie={};Object.keys(re).forEach(function(St){we[St]=le(re[St]),we[St].primary=we[St][5],Ie[St]=le(re[St],{theme:"dark",backgroundColor:"#141414"}),Ie[St].primary=Ie[St][5]});var Me=we.red,Je=we.volcano,Ve=we.gold,ut=we.orange,Fe=we.yellow,ae=we.lime,at=we.green,he=we.cyan,J=we.blue,Y=we.geekblue,$=we.purple,de=we.magenta,be=we.grey;function Ce(St){return!St||St<0?0:St>100?100:St}function Be(St){var Vt=St.success,Rr=St.successPercent,Vr=Rr;return Vt&&"progress"in Vt&&(Object(R.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),Vr=Vt.progress),Vt&&"percent"in Vt&&(Vr=Vt.percent),Vr}var fe=function(St,Vt){var Rr={};for(var Vr in St)Object.prototype.hasOwnProperty.call(St,Vr)&&Vt.indexOf(Vr)<0&&(Rr[Vr]=St[Vr]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Vr=Object.getOwnPropertySymbols(St);hn<Vr.length;hn++)Vt.indexOf(Vr[hn])<0&&Object.prototype.propertyIsEnumerable.call(St,Vr[hn])&&(Rr[Vr[hn]]=St[Vr[hn]]);return Rr},Se=function(Vt){var Rr=[];return Object.keys(Vt).forEach(function(Vr){var hn=parseFloat(Vr.replace(/%/g,""));isNaN(hn)||Rr.push({key:hn,value:Vt[Vr]})}),Rr=Rr.sort(function(Vr,hn){return Vr.key-hn.key}),Rr.map(function(Vr){var hn=Vr.key,Ft=Vr.value;return"".concat(Ft," ").concat(hn,"%")}).join(", ")},ke=function(Vt){var Rr=Vt.from,Vr=Rr===void 0?re.blue:Rr,hn=Vt.to,Ft=hn===void 0?re.blue:hn,vt=Vt.direction,bt=vt===void 0?"to right":vt,fr=fe(Vt,["from","to","direction"]);if(Object.keys(fr).length!==0){var Qt=Se(fr);return{backgroundImage:"linear-gradient(".concat(bt,", ").concat(Qt,")")}}return{backgroundImage:"linear-gradient(".concat(bt,", ").concat(Vr,", ").concat(Ft,")")}},rt=function(Vt){var Rr=Vt.prefixCls,Vr=Vt.percent,hn=Vt.strokeWidth,Ft=Vt.size,vt=Vt.strokeColor,bt=Vt.strokeLinecap,fr=Vt.children,Qt=Vt.trailColor,Mt=Vt.success,qt=vt&&typeof vt!="string"?ke(vt):{background:vt},kt=Qt?{backgroundColor:Qt}:void 0,er=v()({width:"".concat(Ce(Vr),"%"),height:hn||(Ft==="small"?6:8),borderRadius:bt==="square"?0:""},qt),Kr=Be(Vt),Ir={width:"".concat(Ce(Kr),"%"),height:hn||(Ft==="small"?6:8),borderRadius:bt==="square"?0:"",backgroundColor:Mt==null?void 0:Mt.strokeColor},Dr=Kr!==void 0?r.createElement("div",{className:"".concat(Rr,"-success-bg"),style:Ir}):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(Rr,"-outer")},r.createElement("div",{className:"".concat(Rr,"-inner"),style:kt},r.createElement("div",{className:"".concat(Rr,"-bg"),style:er}),Dr)),fr)},xt=rt,ht={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},He=function(Vt){var Rr=Vt.map(function(){return Object(r.useRef)()}),Vr=Object(r.useRef)();return Object(r.useEffect)(function(){var hn=Date.now(),Ft=!1;Object.keys(Rr).forEach(function(vt){var bt=Rr[vt].current;if(!bt)return;Ft=!0;var fr=bt.style;fr.transitionDuration=".3s, .3s, .3s, .06s",Vr.current&&hn-Vr.current<100&&(fr.transitionDuration="0s, 0s")}),Ft&&(Vr.current=Date.now())}),[Rr]};function ir(){return ir=Object.assign||function(St){for(var Vt=1;Vt<arguments.length;Vt++){var Rr=arguments[Vt];for(var Vr in Rr)Object.prototype.hasOwnProperty.call(Rr,Vr)&&(St[Vr]=Rr[Vr])}return St},ir.apply(this,arguments)}function ct(St,Vt){return Wt(St)||Pt(St,Vt)||hr(St,Vt)||Xt()}function Xt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hr(St,Vt){if(!St)return;if(typeof St=="string")return Jt(St,Vt);var Rr=Object.prototype.toString.call(St).slice(8,-1);if(Rr==="Object"&&St.constructor&&(Rr=St.constructor.name),Rr==="Map"||Rr==="Set")return Array.from(St);if(Rr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Rr))return Jt(St,Vt)}function Jt(St,Vt){(Vt==null||Vt>St.length)&&(Vt=St.length);for(var Rr=0,Vr=new Array(Vt);Rr<Vt;Rr++)Vr[Rr]=St[Rr];return Vr}function Pt(St,Vt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(St)))return;var Rr=[],Vr=!0,hn=!1,Ft=void 0;try{for(var vt=St[Symbol.iterator](),bt;!(Vr=(bt=vt.next()).done)&&!(Rr.push(bt.value),Vt&&Rr.length===Vt);Vr=!0);}catch(fr){hn=!0,Ft=fr}finally{try{!Vr&&vt.return!=null&&vt.return()}finally{if(hn)throw Ft}}return Rr}function Wt(St){if(Array.isArray(St))return St}function Ge(St,Vt){if(St==null)return{};var Rr=pe(St,Vt),Vr,hn;if(Object.getOwnPropertySymbols){var Ft=Object.getOwnPropertySymbols(St);for(hn=0;hn<Ft.length;hn++){if(Vr=Ft[hn],Vt.indexOf(Vr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(St,Vr))continue;Rr[Vr]=St[Vr]}}return Rr}function pe(St,Vt){if(St==null)return{};var Rr={},Vr=Object.keys(St),hn,Ft;for(Ft=0;Ft<Vr.length;Ft++){if(hn=Vr[Ft],Vt.indexOf(hn)>=0)continue;Rr[hn]=St[hn]}return Rr}var se=function(Vt){var Rr=Vt.className,Vr=Vt.percent,hn=Vt.prefixCls,Ft=Vt.strokeColor,vt=Vt.strokeLinecap,bt=Vt.strokeWidth,fr=Vt.style,Qt=Vt.trailColor,Mt=Vt.trailWidth,qt=Vt.transition,kt=Ge(Vt,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete kt.gapPosition;var er=Array.isArray(Vr)?Vr:[Vr],Kr=Array.isArray(Ft)?Ft:[Ft],Ir=He(er),Dr=ct(Ir,1),dn=Dr[0],yn=bt/2,ti=100-bt/2,ei="M ".concat(vt==="round"?yn:0,",").concat(yn,`
L `).concat(vt==="round"?ti:100,",").concat(yn),fi="0 0 100 ".concat(bt),Ei=0;return a.a.createElement("svg",ir({className:h()("".concat(hn,"-line"),Rr),viewBox:fi,preserveAspectRatio:"none",style:fr},kt),a.a.createElement("path",{className:"".concat(hn,"-line-trail"),d:ei,strokeLinecap:vt,stroke:Qt,strokeWidth:Mt||bt,fillOpacity:"0"}),er.map(function(Di,Hi){var nt={strokeDasharray:"".concat(Di,"px, 100px"),strokeDashoffset:"-".concat(Ei,"px"),transition:qt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Le=Kr[Hi]||Kr[Kr.length-1];return Ei+=Di,a.a.createElement("path",{key:Hi,className:"".concat(hn,"-line-path"),d:ei,strokeLinecap:vt,stroke:Le,strokeWidth:bt,fillOpacity:"0",ref:dn[Hi],style:nt})}))};se.defaultProps=ht;var lt=se;function qe(){return qe=Object.assign||function(St){for(var Vt=1;Vt<arguments.length;Vt++){var Rr=arguments[Vt];for(var Vr in Rr)Object.prototype.hasOwnProperty.call(Rr,Vr)&&(St[Vr]=Rr[Vr])}return St},qe.apply(this,arguments)}function me(St,Vt){return ur(St)||rr(St,Vt)||yr(St,Vt)||Ht()}function Ht(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yr(St,Vt){if(!St)return;if(typeof St=="string")return At(St,Vt);var Rr=Object.prototype.toString.call(St).slice(8,-1);if(Rr==="Object"&&St.constructor&&(Rr=St.constructor.name),Rr==="Map"||Rr==="Set")return Array.from(St);if(Rr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Rr))return At(St,Vt)}function At(St,Vt){(Vt==null||Vt>St.length)&&(Vt=St.length);for(var Rr=0,Vr=new Array(Vt);Rr<Vt;Rr++)Vr[Rr]=St[Rr];return Vr}function rr(St,Vt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(St)))return;var Rr=[],Vr=!0,hn=!1,Ft=void 0;try{for(var vt=St[Symbol.iterator](),bt;!(Vr=(bt=vt.next()).done)&&!(Rr.push(bt.value),Vt&&Rr.length===Vt);Vr=!0);}catch(fr){hn=!0,Ft=fr}finally{try{!Vr&&vt.return!=null&&vt.return()}finally{if(hn)throw Ft}}return Rr}function ur(St){if(Array.isArray(St))return St}function vn(St,Vt){if(St==null)return{};var Rr=Bt(St,Vt),Vr,hn;if(Object.getOwnPropertySymbols){var Ft=Object.getOwnPropertySymbols(St);for(hn=0;hn<Ft.length;hn++){if(Vr=Ft[hn],Vt.indexOf(Vr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(St,Vr))continue;Rr[Vr]=St[Vr]}}return Rr}function Bt(St,Vt){if(St==null)return{};var Rr={},Vr=Object.keys(St),hn,Ft;for(Ft=0;Ft<Vr.length;Ft++){if(hn=Vr[Ft],Vt.indexOf(hn)>=0)continue;Rr[hn]=St[hn]}return Rr}var sr=0;function Yt(St){return+St.replace("%","")}function pt(St){return Array.isArray(St)?St:[St]}function it(St,Vt,Rr,Vr){var hn=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,Ft=arguments.length>5?arguments[5]:void 0,vt=50-Vr/2,bt=0,fr=-vt,Qt=0,Mt=-2*vt;switch(Ft){case"left":bt=-vt,fr=0,Qt=2*vt,Mt=0;break;case"right":bt=vt,fr=0,Qt=-2*vt,Mt=0;break;case"bottom":fr=vt,Mt=2*vt;break;default:}var qt="M 50,50 m ".concat(bt,",").concat(fr,`
a `).concat(vt,",").concat(vt," 0 1 1 ").concat(Qt,",").concat(-Mt,`
a `).concat(vt,",").concat(vt," 0 1 1 ").concat(-Qt,",").concat(Mt),kt=Math.PI*2*vt,er={stroke:Rr,strokeDasharray:"".concat(Vt/100*(kt-hn),"px ").concat(kt,"px"),strokeDashoffset:"-".concat(hn/2+St/100*(kt-hn),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:qt,pathStyle:er}}var Fr=function(Vt){var Rr=Vt.prefixCls,Vr=Vt.strokeWidth,hn=Vt.trailWidth,Ft=Vt.gapDegree,vt=Vt.gapPosition,bt=Vt.trailColor,fr=Vt.strokeLinecap,Qt=Vt.style,Mt=Vt.className,qt=Vt.strokeColor,kt=Vt.percent,er=vn(Vt,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Kr=Object(r.useMemo)(function(){return sr+=1,sr},[]),Ir=it(0,100,bt,Vr,Ft,vt),Dr=Ir.pathString,dn=Ir.pathStyle,yn=pt(kt),ti=pt(qt),ei=ti.find(function(nt){return Object.prototype.toString.call(nt)==="[object Object]"}),fi=He(yn),Ei=me(fi,1),Di=Ei[0],Hi=function(){var Le=0;return yn.map(function(je,Xe){var tt=ti[Xe]||ti[ti.length-1],Ze=Object.prototype.toString.call(tt)==="[object Object]"?"url(#".concat(Rr,"-gradient-").concat(Kr,")"):"",st=it(Le,je,tt,Vr,Ft,vt);return Le+=je,a.a.createElement("path",{key:Xe,className:"".concat(Rr,"-circle-path"),d:st.pathString,stroke:Ze,strokeLinecap:fr,strokeWidth:Vr,opacity:je===0?0:1,fillOpacity:"0",style:st.pathStyle,ref:Di[Xe]})})};return a.a.createElement("svg",qe({className:h()("".concat(Rr,"-circle"),Mt),viewBox:"0 0 100 100",style:Qt},er),ei&&a.a.createElement("defs",null,a.a.createElement("linearGradient",{id:"".concat(Rr,"-gradient-").concat(Kr),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(ei).sort(function(nt,Le){return Yt(nt)-Yt(Le)}).map(function(nt,Le){return a.a.createElement("stop",{key:Le,offset:nt,stopColor:ei[nt]})}))),a.a.createElement("path",{className:"".concat(Rr,"-circle-trail"),d:Dr,stroke:bt,strokeLinecap:fr,strokeWidth:hn||Vr,fillOpacity:"0",style:dn}),Hi().reverse())};Fr.defaultProps=ht;var cn=Fr,_n={Line:lt,Circle:cn};function Kn(St){var Vt=St.percent,Rr=St.success,Vr=St.successPercent,hn=Ce(Vt),Ft=Be({success:Rr,successPercent:Vr});return Ft?[Ce(Ft),Ce(hn-Ce(Ft))]:hn}function gi(St){var Vt=St.success,Rr=St.strokeColor,Vr=St.successPercent,hn=Rr||null,Ft=Be({success:Vt,successPercent:Vr});return Ft?[re.green,hn]:hn}var Mn=function(Vt){var Rr=Vt.prefixCls,Vr=Vt.width,hn=Vt.strokeWidth,Ft=Vt.trailColor,vt=Vt.strokeLinecap,bt=Vt.gapPosition,fr=Vt.gapDegree,Qt=Vt.type,Mt=Vt.children,qt=Vr||120,kt={width:qt,height:qt,fontSize:qt*.15+6},er=hn||6,Kr=bt||Qt==="dashboard"&&"bottom"||"top",Ir=function(){return fr||fr===0?fr:Qt==="dashboard"?75:void 0},Dr=gi(Vt),dn=Object.prototype.toString.call(Dr)==="[object Object]",yn=h()("".concat(Rr,"-inner"),p()({},"".concat(Rr,"-circle-gradient"),dn));return r.createElement("div",{className:yn,style:kt},r.createElement(cn,{percent:Kn(Vt),strokeWidth:er,trailWidth:er,strokeColor:Dr,strokeLinecap:vt,trailColor:Ft,prefixCls:Rr,gapDegree:Ir(),gapPosition:Kr}),Mt)},Un=Mn,$t=function(Vt){for(var Rr=Vt.size,Vr=Vt.steps,hn=Vt.percent,Ft=hn===void 0?0:hn,vt=Vt.strokeWidth,bt=vt===void 0?8:vt,fr=Vt.strokeColor,Qt=Vt.trailColor,Mt=Vt.prefixCls,qt=Vt.children,kt=Math.floor(Vr*(Ft/100)),er=Rr==="small"?2:14,Kr=[],Ir=0;Ir<Vr;Ir+=1)Kr.push(r.createElement("div",{key:Ir,className:h()("".concat(Mt,"-steps-item"),p()({},"".concat(Mt,"-steps-item-active"),Ir<=kt-1)),style:{backgroundColor:Ir<=kt-1?fr:Qt,width:er,height:bt}}));return r.createElement("div",{className:"".concat(Mt,"-steps-outer")},Kr,qt)},Ct=$t,Re=function(St,Vt){var Rr={};for(var Vr in St)Object.prototype.hasOwnProperty.call(St,Vr)&&Vt.indexOf(Vr)<0&&(Rr[Vr]=St[Vr]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Vr=Object.getOwnPropertySymbols(St);hn<Vr.length;hn++)Vt.indexOf(Vr[hn])<0&&Object.prototype.propertyIsEnumerable.call(St,Vr[hn])&&(Rr[Vr[hn]]=St[Vr[hn]]);return Rr},De=Object(I.a)("line","circle","dashboard"),Pe=Object(I.a)("normal","exception","active","success"),et=function(St){s()(Rr,St);var Vt=l()(Rr);function Rr(){var Vr;return f()(this,Rr),Vr=Vt.apply(this,arguments),Vr.renderProgress=function(hn){var Ft,vt=hn.getPrefixCls,bt=hn.direction,fr=i()(Vr),Qt=fr.props,Mt=Qt.prefixCls,qt=Qt.className,kt=Qt.size,er=Qt.type,Kr=Qt.steps,Ir=Qt.showInfo,Dr=Qt.strokeColor,dn=Re(Qt,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),yn=vt("progress",Mt),ti=Vr.getProgressStatus(),ei=Vr.renderProcessInfo(yn,ti);Object(R.a)(!("successPercent"in Qt),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var fi;er==="line"?fi=Kr?r.createElement(Ct,v()({},Vr.props,{strokeColor:typeof Dr=="string"?Dr:void 0,prefixCls:yn,steps:Kr}),ei):r.createElement(xt,v()({},Vr.props,{prefixCls:yn}),ei):(er==="circle"||er==="dashboard")&&(fi=r.createElement(Un,v()({},Vr.props,{prefixCls:yn,progressStatus:ti}),ei));var Ei=h()(yn,(Ft={},p()(Ft,"".concat(yn,"-").concat(er==="dashboard"&&"circle"||Kr&&"steps"||er),!0),p()(Ft,"".concat(yn,"-status-").concat(ti),!0),p()(Ft,"".concat(yn,"-show-info"),Ir),p()(Ft,"".concat(yn,"-").concat(kt),kt),p()(Ft,"".concat(yn,"-rtl"),bt==="rtl"),Ft),qt);return r.createElement("div",v()({},Object(g.default)(dn,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:Ei}),fi)},Vr}return u()(Rr,[{key:"getPercentNumber",value:function(){var hn=this.props.percent,Ft=hn===void 0?0:hn,vt=Be(this.props);return parseInt(vt!==void 0?vt.toString():Ft.toString(),10)}},{key:"getProgressStatus",value:function(){var hn=this.props.status;return Pe.indexOf(hn)<0&&this.getPercentNumber()>=100?"success":hn||"normal"}},{key:"renderProcessInfo",value:function(hn,Ft){var vt=this.props,bt=vt.showInfo,fr=vt.format,Qt=vt.type,Mt=vt.percent,qt=Be(this.props);if(!bt)return null;var kt,er=fr||function(Ir){return"".concat(Ir,"%")},Kr=Qt==="line";return fr||Ft!=="exception"&&Ft!=="success"?kt=er(Ce(Mt),Ce(qt)):Ft==="exception"?kt=Kr?r.createElement(w.a,null):r.createElement(b.a,null):Ft==="success"&&(kt=Kr?r.createElement(_.a,null):r.createElement(E.a,null)),r.createElement("span",{className:"".concat(hn,"-text"),title:typeof kt=="string"?kt:void 0},kt)}},{key:"render",value:function(){return r.createElement(O.a,null,this.renderProgress)}}]),Rr}(r.Component);et.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var yt=D.a=et},CH3K:function(k,D){function n(y,p){for(var x=-1,v=p.length,m=y.length;++x<v;)y[m+x]=p[x];return y}k.exports=n},"CMP+":function(k,D,n){var y=n("bYtY"),p=n("hM6l"),x=function(m,f,d,u){p.call(this,m,f,d),this.type=u||"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;k.exports=v},CP8R:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};D.default=y},"CWI+":function(k,D,n){},CbHG:function(k,D,n){var y=n("IwbS"),p=y.subPixelOptimize,x=n("zM3Q"),v=n("OELB"),m=v.parsePercent,f=n("bYtY"),d=f.retrieve2,u=typeof Float32Array!="undefined"?Float32Array:Array,o={seriesType:"candlestick",plan:x(),reset:function(s){var e=s.coordinateSystem,l=s.getData(),r=t(s,l),a=0,c=1,h=["x","y"],g=l.mapDimension(h[a]),A=l.mapDimension(h[c],!0),b=A[0],S=A[1],E=A[2],C=A[3];if(l.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),g==null||A.length<4)return;return{progress:s.pipelineContext.large?T:_};function _(w,O){for(var I;(I=w.next())!=null;){var R=O.get(g,I),M=O.get(b,I),B=O.get(S,I),P=O.get(E,I),X=O.get(C,I),F=Math.min(M,B),j=Math.max(M,B),K=te(F,R),z=te(j,R),V=te(P,R),Q=te(X,R),G=[];q(G,z,0),q(G,K,1),G.push(re(Q),re(z),re(V),re(K)),O.setItemLayout(I,{sign:i(O,I,M,B,S),initBaseline:M>B?z[c]:K[c],ends:G,brushRect:le(P,X,R)})}function te(we,Ie){var Me=[];return Me[a]=Ie,Me[c]=we,isNaN(Ie)||isNaN(we)?[NaN,NaN]:e.dataToPoint(Me)}function q(we,Ie,Me){var Je=Ie.slice(),Ve=Ie.slice();Je[a]=p(Je[a]+r/2,1,!1),Ve[a]=p(Ve[a]-r/2,1,!0),Me?we.push(Je,Ve):we.push(Ve,Je)}function le(we,Ie,Me){var Je=te(we,Me),Ve=te(Ie,Me);return Je[a]-=r/2,Ve[a]-=r/2,{x:Je[0],y:Je[1],width:c?r:Ve[0]-Je[0],height:c?Ve[1]-Je[1]:r}}function re(we){return we[a]=p(we[a],1),we}}function T(w,O){for(var I=new u(w.count*4),R=0,M,B=[],P=[],X;(X=w.next())!=null;){var F=O.get(g,X),j=O.get(b,X),K=O.get(S,X),z=O.get(E,X),V=O.get(C,X);if(isNaN(F)||isNaN(z)||isNaN(V)){I[R++]=NaN,R+=3;continue}I[R++]=i(O,X,j,K,S),B[a]=F,B[c]=z,M=e.dataToPoint(B,null,P),I[R++]=M?M[0]:NaN,I[R++]=M?M[1]:NaN,B[c]=V,M=e.dataToPoint(B,null,P),I[R++]=M?M[1]:NaN}O.setLayout("largePoints",I)}}};function i(s,e,l,r,a){var c;return l>r?c=-1:l<r?c=1:c=e>0?s.get(a,e-1)<=r?1:-1:1,c}function t(s,e){var l=s.getBaseAxis(),r,a=l.type==="category"?l.getBandWidth():(r=l.getExtent(),Math.abs(r[1]-r[0])/e.count()),c=m(d(s.get("barMaxWidth"),a),a),h=m(d(s.get("barMinWidth"),1),a),g=s.get("barWidth");return g!=null?m(g,a):Math.max(Math.min(a/2,c),h)}k.exports=o},CiB2:function(k,D,n){"use strict";n.d(D,"a",function(){return y});function y(p){if(p==null)throw new TypeError("Cannot destructure undefined")}},Cm0C:function(k,D,n){n("5NHt"),n("f3JH")},CrYA:function(k,D,n){var y=n("MFOe"),p=y.Global;k.exports={name:"sessionStorage",read:v,write:m,each:f,remove:d,clearAll:u};function x(){return p.sessionStorage}function v(o){return x().getItem(o)}function m(o,i){return x().setItem(o,i)}function f(o){for(var i=x().length-1;i>=0;i--){var t=x().key(i);o(v(t),t)}}function d(o){return x().removeItem(o)}function u(){return x().clear()}},Csr3:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("4vCz"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},Cwc5:function(k,D,n){var y=n("NKxu"),p=n("Npjl");function x(v,m){var f=p(v,m);return y(f)?f:void 0}k.exports=x},D1WM:function(k,D,n){var y=n("bYtY"),p=n("hM6l"),x=function(m,f,d,u,o){p.call(this,m,f,d),this.type=u||"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;k.exports=v},D5nY:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("4NO4"),v=x.makeInner,m=x.getDataItemValue,f=n("bYtY"),d=f.createHashMap,u=f.each,o=f.map,i=f.isArray,t=f.isString,s=f.isObject,e=f.isTypedArray,l=f.isArrayLike,r=f.extend,a=f.assert,c=n("7G+c"),h=n("k9D9"),g=h.SOURCE_FORMAT_ORIGINAL,A=h.SOURCE_FORMAT_ARRAY_ROWS,b=h.SOURCE_FORMAT_OBJECT_ROWS,S=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},w=v();function O(G){var te=G.option.source,q=E;if(e(te))q=C;else if(i(te)){te.length===0&&(q=A);for(var le=0,re=te.length;le<re;le++){var we=te[le];if(we==null)continue;if(i(we)){q=A;break}else if(s(we)){q=b;break}}}else if(s(te)){for(var Ie in te)if(te.hasOwnProperty(Ie)&&l(te[Ie])){q=S;break}}else if(te!=null)throw new Error("Invalid data");w(G).sourceFormat=q}function I(G){return w(G).source}function R(G){w(G).datasetMap=d()}function M(G){var te=G.option,q=te.data,le=e(q)?C:g,re=!1,we=te.seriesLayoutBy,Ie=te.sourceHeader,Me=te.dimensions,Je=z(G);if(Je){var Ve=Je.option;q=Ve.source,le=w(Je).sourceFormat,re=!0,we=we||Ve.seriesLayoutBy,Ie==null&&(Ie=Ve.sourceHeader),Me=Me||Ve.dimensions}var ut=B(q,le,we,Ie,Me);w(G).source=new c({data:q,fromDataset:re,seriesLayoutBy:we,sourceFormat:le,dimensionsDefine:ut.dimensionsDefine,startIndex:ut.startIndex,dimensionsDetectCount:ut.dimensionsDetectCount,encodeDefine:te.encode})}function B(G,te,q,le,re){if(!G)return{dimensionsDefine:P(re)};var we,Ie;if(te===A)le==="auto"||le==null?X(function(Je){Je!=null&&Je!=="-"&&(t(Je)?Ie==null&&(Ie=1):Ie=0)},q,G,10):Ie=le?1:0,!re&&Ie===1&&(re=[],X(function(Je,Ve){re[Ve]=Je!=null?Je:""},q,G)),we=re?re.length:q===_?G.length:G[0]?G[0].length:null;else if(te===b)re||(re=F(G));else if(te===S)re||(re=[],u(G,function(Je,Ve){re.push(Ve)}));else if(te===g){var Me=m(G[0]);we=i(Me)&&Me.length||1}else te===C;return{startIndex:Ie,dimensionsDefine:P(re),dimensionsDetectCount:we}}function P(G){if(!G)return;var te=d();return o(G,function(q,le){if(q=r({},s(q)?q:{name:q}),q.name==null)return q;q.name+="",q.displayName==null&&(q.displayName=q.name);var re=te.get(q.name);return re?q.name+="-"+re.count++:te.set(q.name,{count:1}),q})}function X(G,te,q,le){if(le==null&&(le=Infinity),te===_)for(var re=0;re<q.length&&re<le;re++)G(q[re]?q[re][0]:null,re);else for(var we=q[0]||[],re=0;re<we.length&&re<le;re++)G(we[re],re)}function F(G){for(var te=0,q;te<G.length&&!(q=G[te++]););if(q){var le=[];return u(q,function(re,we){le.push(we)}),le}}function j(G,te,q){var le={},re=z(te);if(!re||!G)return le;var we=[],Ie=[],Me=te.ecModel,Je=w(Me).datasetMap,Ve=re.uid+"_"+q.seriesLayoutBy,ut,Fe;G=G.slice(),u(G,function(J,Y){!s(J)&&(G[Y]={name:J}),J.type==="ordinal"&&ut==null&&(ut=Y,Fe=he(G[Y])),le[J.name]=[]});var ae=Je.get(Ve)||Je.set(Ve,{categoryWayDim:Fe,valueWayDim:0});u(G,function(J,Y){var $=J.name,de=he(J);if(ut==null){var be=ae.valueWayDim;at(le[$],be,de),at(Ie,be,de),ae.valueWayDim+=de}else if(ut===Y)at(le[$],0,de),at(we,0,de);else{var be=ae.categoryWayDim;at(le[$],be,de),at(Ie,be,de),ae.categoryWayDim+=de}});function at(J,Y,$){for(var de=0;de<$;de++)J.push(Y+de)}function he(J){var Y=J.dimsDef;return Y?Y.length:1}return we.length&&(le.itemName=we),Ie.length&&(le.seriesName=Ie),le}function K(G,te,q){var le={},re=z(G);if(!re)return le;var we=te.sourceFormat,Ie=te.dimensionsDefine,Me;(we===b||we===S)&&u(Ie,function(ut,Fe){(s(ut)?ut.name:ut)==="name"&&(Me=Fe)});var Je=function(){for(var ut={},Fe={},ae=[],at=0,he=Math.min(5,q);at<he;at++){var J=Q(te.data,we,te.seriesLayoutBy,Ie,te.startIndex,at);ae.push(J);var Y=J===T.Not;if(Y&&ut.v==null&&at!==Me&&(ut.v=at),(ut.n==null||ut.n===ut.v||!Y&&ae[ut.n]===T.Not)&&(ut.n=at),$(ut)&&ae[ut.n]!==T.Not)return ut;Y||(J===T.Might&&Fe.v==null&&at!==Me&&(Fe.v=at),(Fe.n==null||Fe.n===Fe.v)&&(Fe.n=at))}function $(de){return de.v!=null&&de.n!=null}return $(ut)?ut:$(Fe)?Fe:null}();if(Je){le.value=Je.v;var Ve=Me!=null?Me:Je.n;le.itemName=[Ve],le.seriesName=[Ve]}return le}function z(G){var te=G.option,q=te.data;if(!q)return G.ecModel.getComponent("dataset",te.datasetIndex||0)}function V(G,te){return Q(G.data,G.sourceFormat,G.seriesLayoutBy,G.dimensionsDefine,G.startIndex,te)}function Q(G,te,q,le,re,we){var Ie,Me=5;if(e(G))return T.Not;var Je,Ve;if(le){var ut=le[we];s(ut)?(Je=ut.name,Ve=ut.type):t(ut)&&(Je=ut)}if(Ve!=null)return Ve==="ordinal"?T.Must:T.Not;if(te===A)if(q===_){for(var Fe=G[we],ae=0;ae<(Fe||[]).length&&ae<Me;ae++)if((Ie=Y(Fe[re+ae]))!=null)return Ie}else for(var ae=0;ae<G.length&&ae<Me;ae++){var at=G[re+ae];if(at&&(Ie=Y(at[we]))!=null)return Ie}else if(te===b){if(!Je)return T.Not;for(var ae=0;ae<G.length&&ae<Me;ae++){var he=G[ae];if(he&&(Ie=Y(he[Je]))!=null)return Ie}}else if(te===S){if(!Je)return T.Not;var Fe=G[Je];if(!Fe||e(Fe))return T.Not;for(var ae=0;ae<Fe.length&&ae<Me;ae++)if((Ie=Y(Fe[ae]))!=null)return Ie}else if(te===g)for(var ae=0;ae<G.length&&ae<Me;ae++){var he=G[ae],J=m(he);if(!i(J))return T.Not;if((Ie=Y(J[we]))!=null)return Ie}function Y($){var de=t($);if($!=null&&isFinite($)&&$!=="")return de?T.Might:T.Not;if(de&&$!=="-")return T.Must}return T.Not}D.BE_ORDINAL=T,D.detectSourceFormat=O,D.getSource=I,D.resetSourceDefaulter=R,D.prepareSource=M,D.makeSeriesEncodeForAxisCoordSys=j,D.makeSeriesEncodeForNameBased=K,D.guessOrdinal=V},D9ME:function(k,D,n){var y=n("IwbS"),p=n("fls0"),x=n("bYtY"),v=n("oVpE"),m=v.createSymbol,f=n("QBsz"),d=n("Sj9i");function u(t,s,e){y.Group.call(this),this.add(this.createLine(t,s,e)),this._updateEffectSymbol(t,s)}var o=u.prototype;o.createLine=function(t,s,e){return new p(t,s,e)},o._updateEffectSymbol=function(t,s){var e=t.getItemModel(s),l=e.getModel("effect"),r=l.get("symbolSize"),a=l.get("symbol");x.isArray(r)||(r=[r,r]);var c=l.get("color")||t.getItemVisual(s,"color"),h=this.childAt(1);if(this._symbolType!==a&&(this.remove(h),h=m(a,-.5,-.5,1,1,c),h.z2=100,h.culling=!0,this.add(h)),!h)return;h.setStyle("shadowColor",c),h.setStyle(l.getItemStyle(["color"])),h.attr("scale",r),h.setColor(c),h.attr("scale",r),this._symbolType=a,this._symbolScale=r,this._updateEffectAnimation(t,l,s)},o._updateEffectAnimation=function(t,s,e){var l=this.childAt(1);if(!l)return;var r=this,a=t.getItemLayout(e),c=s.get("period")*1e3,h=s.get("loop"),g=s.get("constantSpeed"),A=x.retrieve(s.get("delay"),function(C){return C/t.count()*c/3}),b=typeof A=="function";if(l.ignore=!0,this.updateAnimationPoints(l,a),g>0&&(c=this.getLineLength(l)/g*1e3),c!==this._period||h!==this._loop){l.stopAnimation();var S=A;b&&(S=A(e)),l.__t>0&&(S=-c*l.__t),l.__t=0;var E=l.animate("",h).when(c,{__t:1}).delay(S).during(function(){r.updateSymbolPosition(l)});h||E.done(function(){r.remove(l)}),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,s){t.__p1=s[0],t.__p2=s[1],t.__cp1=s[2]||[(s[0][0]+s[1][0])/2,(s[0][1]+s[1][1])/2]},o.updateData=function(t,s,e){this.childAt(0).updateData(t,s,e),this._updateEffectSymbol(t,s)},o.updateSymbolPosition=function(t){var s=t.__p1,e=t.__p2,l=t.__cp1,r=t.__t,a=t.position,c=[a[0],a[1]],h=d.quadraticAt,g=d.quadraticDerivativeAt;a[0]=h(s[0],l[0],e[0],r),a[1]=h(s[1],l[1],e[1],r);var A=g(s[0],l[0],e[0],r),b=g(s[1],l[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 S=f.dist(c,a)*1.05;t.attr("scale",[t.scale[0],S]),r===1&&(a[0]=c[0]+(a[0]-c[0])/2,a[1]=c[1]+(a[1]-c[1])/2)}else if(t.__lastT===1){var S=2*f.dist(s,a);t.attr("scale",[t.scale[0],S])}else t.attr("scale",this._symbolScale);t.__lastT=t.__t,t.ignore=!1},o.updateLayout=function(t,s){this.childAt(0).updateLayout(t,s);var e=t.getItemModel(s).getModel("effect");this._updateEffectAnimation(t,e,s)},x.inherits(u,y.Group);var i=u;k.exports=i},DBLp:function(k,D){function n(){}n.prototype={diff:function(f,d,u){u||(u=function(b,S){return b===S}),this.equals=u;var o=this;f=f.slice(),d=d.slice();var i=d.length,t=f.length,s=1,e=i+t,l=[{newPos:-1,components:[]}],r=this.extractCommon(l[0],d,f,0);if(l[0].newPos+1>=i&&r+1>=t){for(var a=[],c=0;c<d.length;c++)a.push(c);return[{indices:a,count:d.length}]}function h(){for(var A=-1*s;A<=s;A+=2){var b,S=l[A-1],E=l[A+1],C=(E?E.newPos:0)-A;S&&(l[A-1]=void 0);var _=S&&S.newPos+1<i,T=E&&0<=C&&C<t;if(!_&&!T){l[A]=void 0;continue}if(!_||T&&S.newPos<E.newPos?(b=p(E),o.pushComponent(b.components,void 0,!0)):(b=S,b.newPos++,o.pushComponent(b.components,!0,void 0)),C=o.extractCommon(b,d,f,A),b.newPos+1>=i&&C+1>=t)return y(o,b.components,d,f);l[A]=b}s++}for(;s<=e;){var g=h();if(g)return g}},pushComponent:function(f,d,u){var o=f[f.length-1];o&&o.added===d&&o.removed===u?f[f.length-1]={count:o.count+1,added:d,removed:u}:f.push({count:1,added:d,removed:u})},extractCommon:function(f,d,u,o){for(var i=d.length,t=u.length,s=f.newPos,e=s-o,l=0;s+1<i&&e+1<t&&this.equals(d[s+1],u[e+1]);)s++,e++,l++;return l&&f.components.push({count:l}),f.newPos=s,e},tokenize:function(f){return f.slice()},join:function(f){return f.slice()}};function y(m,f,d,u){for(var o=0,i=f.length,t=0,s=0;o<i;o++){var e=f[o];if(e.removed){for(var l=[],r=s;r<s+e.count;r++)l.push(r);e.indices=l,s+=e.count}else{for(var l=[],r=t;r<t+e.count;r++)l.push(r);e.indices=l,t+=e.count,e.added||(s+=e.count)}}return f}function p(m){return{newPos:m.newPos,components:m.components.slice(0)}}var x=new n;function v(m,f,d){return x.diff(m,f,d)}k.exports=v},DEFe:function(k,D,n){var y=n("bYtY"),p=n("SgGq"),x=n("Ae+d"),v=n("xSat"),m=v.onIrrelevantElement,f=n("IwbS"),d=n("W4dC"),u=n("iRjW"),o=u.getUID,i=n("DN4a");function t(a){var c=a.getItemStyle(),h=a.get("areaColor");return h!=null&&(c.fill=h),c}function s(a,c,h,g,A){h.off("click"),h.off("mousedown"),c.get("selectedMode")&&(h.on("mousedown",function(){a._mouseDownFlag=!0}),h.on("click",function(b){if(!a._mouseDownFlag)return;a._mouseDownFlag=!1;for(var S=b.target;!S.__regions;)S=S.parent;if(!S)return;var E={type:(c.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:y.map(S.__regions,function(C){return{name:C.name,from:A.uid}})};E[c.mainType+"Id"]=c.id,g.dispatchAction(E),e(c,h)}))}function e(a,c){c.eachChild(function(h){y.each(h.__regions,function(g){h.trigger(a.isSelected(g.name)?"emphasis":"normal")})})}function l(a,c){var h=new f.Group;this.uid=o("ec_map_draw"),this._controller=new p(a.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)}l.prototype={constructor:l,draw:function(a,c,h,g,A){var b=a.mainType==="geo",S=a.getData&&a.getData();b&&c.eachComponent({mainType:"series",subType:"map"},function(z){!S&&z.getHostGeoModel()===a&&(S=z.getData())});var E=a.coordinateSystem;this._updateBackground(E);var C=this._regionsGroup,_=this.group,T=E.getTransformInfo(),w=!C.childAt(0)||A,O;if(w)_.transform=T.roamTransform,_.decomposeTransform(),_.dirty();else{var I=new i;I.transform=T.roamTransform,I.decomposeTransform();var R={scale:I.scale,position:I.position};O=I.scale,f.updateProps(_,R,a)}var M=T.rawScale,B=T.rawPosition;C.removeAll();var P=["itemStyle"],X=["emphasis","itemStyle"],F=["label"],j=["emphasis","label"],K=y.createHashMap();y.each(E.regions,function(z){var V=K.get(z.name)||K.set(z.name,new f.Group),Q=new f.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});V.add(Q);var G=a.getRegionModel(z.name)||a,te=G.getModel(P),q=G.getModel(X),le=t(te),re=t(q),we=G.getModel(F),Ie=G.getModel(j),Me;if(S){Me=S.indexOfName(z.name);var Je=S.getItemVisual(Me,"color",!0);Je&&(le.fill=Je)}var Ve=function(be){return[be[0]*M[0]+B[0],be[1]*M[1]+B[1]]};y.each(z.geometries,function(be){if(be.type!=="polygon")return;for(var Ce=[],Be=0;Be<be.exterior.length;++Be)Ce.push(Ve(be.exterior[Be]));Q.shape.paths.push(new f.Polygon({segmentIgnoreThreshold:1,shape:{points:Ce}}));for(var Be=0;Be<(be.interiors?be.interiors.length:0);++Be){for(var fe=be.interiors[Be],Ce=[],Se=0;Se<fe.length;++Se)Ce.push(Ve(fe[Se]));Q.shape.paths.push(new f.Polygon({segmentIgnoreThreshold:1,shape:{points:Ce}}))}}),Q.setStyle(le),Q.style.strokeNoScale=!0,Q.culling=!0;var ut=we.get("show"),Fe=Ie.get("show"),ae=S&&isNaN(S.get(S.mapDimension("value"),Me)),at=S&&S.getItemLayout(Me);if(b||ae&&(ut||Fe)||at&&at.showLabel){var he=b?z.name:Me,J;(!S||Me>=0)&&(J=a);var Y=new f.Text({position:Ve(z.center.slice()),scale:[1/_.scale[0],1/_.scale[1]],z2:10,silent:!0});if(f.setLabelStyle(Y.style,Y.hoverStyle={},we,Ie,{labelFetcher:J,labelDataIndex:he,defaultText:z.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!w){var $=[1/O[0],1/O[1]];f.updateProps(Y,{scale:$},a)}V.add(Y)}if(S)S.setItemGraphicEl(Me,V);else{var G=a.getRegionModel(z.name);Q.eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:z.name,region:G&&G.option||{}}}var de=V.__regions||(V.__regions=[]);de.push(z),V.highDownSilentOnTouch=!!a.get("selectedMode"),f.setHoverStyle(V,re),C.add(V)}),this._updateController(a,c,h),s(this,a,C,h,g),e(a,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(a){var c=a.map;this._mapName!==c&&y.each(d.makeGraphic(c,this.uid),function(h){this._backgroundGroup.add(h)},this),this._mapName=c},_updateController:function(a,c,h){var g=a.coordinateSystem,A=this._controller,b=this._controllerHost;b.zoomLimit=a.get("scaleLimit"),b.zoom=g.getZoom(),A.enable(a.get("roam")||!1);var S=a.mainType;function E(){var C={type:"geoRoam",componentType:S};return C[S+"Id"]=a.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,a)})}};var r=l;k.exports=r},DFOY:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),v=n.n(x),m=n("lwsE"),f=n.n(m),d=n("W8MJ"),u=n.n(d),o=n("PJYZ"),i=n.n(o),t=n("7W2i"),s=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),a=n.n(r),c=n("VTBJ"),h=n("1OyB"),g=n("vuIU"),A=n("JX7q"),b=n("Ji7U"),S=n("LK+K"),E=n("i8i4"),C=n.n(E),_=n("l4aY"),T=n("m+aA"),w=n("c+Xe"),O=n("zT1h"),I=n("QC+M"),R=n("TSYQ"),M=n.n(R);function B(Gt,Ot,Rt){return Rt?Gt[0]===Ot[0]:Gt[0]===Ot[0]&&Gt[1]===Ot[1]}function P(Gt,Ot,Rt){var jt=Gt[Ot]||{};return Object(c.a)(Object(c.a)({},jt),Rt)}function X(Gt,Ot,Rt,jt){for(var zt=Rt.points,Lt=Object.keys(Gt),cr=0;cr<Lt.length;cr+=1){var Ar=Lt[cr];if(B(Gt[Ar].points,zt,jt))return"".concat(Ot,"-placement-").concat(Ar)}return""}var F=n("Ff2n"),j=n("xEkU"),K=n.n(j),z=n("9mu1"),V=n("rePB"),Q=n("U8pU"),G=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function te(Gt,Ot){var Rt={};return Rt[Gt.toLowerCase()]=Ot.toLowerCase(),Rt["Webkit".concat(Gt)]="webkit".concat(Ot),Rt["Moz".concat(Gt)]="moz".concat(Ot),Rt["ms".concat(Gt)]="MS".concat(Ot),Rt["O".concat(Gt)]="o".concat(Ot.toLowerCase()),Rt}function q(Gt,Ot){var Rt={animationend:te("Animation","AnimationEnd"),transitionend:te("Transition","TransitionEnd")};return Gt&&("AnimationEvent"in Ot||delete Rt.animationend.animation,"TransitionEvent"in Ot||delete Rt.transitionend.transition),Rt}var le=q(G,typeof window!="undefined"?window:{}),re={};if(G){var we=document.createElement("div");re=we.style}var Ie={};function Me(Gt){if(Ie[Gt])return Ie[Gt];var Ot=le[Gt];if(Ot)for(var Rt=Object.keys(Ot),jt=Rt.length,zt=0;zt<jt;zt+=1){var Lt=Rt[zt];if(Object.prototype.hasOwnProperty.call(Ot,Lt)&&Lt in re)return Ie[Gt]=Ot[Lt],Ie[Gt]}return""}var Je=Me("animationend"),Ve=Me("transitionend"),ut=!!(Je&&Ve);function Fe(Gt,Ot){if(!Gt)return null;if(Object(Q.a)(Gt)==="object"){var Rt=Ot.replace(/-\w/g,function(jt){return jt[1].toUpperCase()});return Gt[Rt]}return"".concat(Gt,"-").concat(Ot)}var ae="none",at="appear",he="enter",J="leave";function Y(Gt){var Ot=Gt,Rt=!!r.forwardRef;Object(Q.a)(Gt)==="object"&&(Ot=Gt.transitionSupport,Rt="forwardRef"in Gt?Gt.forwardRef:Rt);function jt(Lt){return!!(Lt.motionName&&Ot)}var zt=function(Lt){Object(b.a)(Ar,Lt);var cr=Object(S.a)(Ar);function Ar(){var br;return Object(h.a)(this,Ar),br=cr.apply(this,arguments),br.$cacheEle=null,br.node=null,br.raf=null,br.destroyed=!1,br.deadlineId=null,br.state={status:ae,statusActive:!1,newStatus:!1,statusStyle:null},br.onDomUpdate=function(){var Pr=br.state,Xn=Pr.status,Pn=Pr.newStatus,di=br.props,An=di.onAppearStart,Ur=di.onEnterStart,In=di.onLeaveStart,Qn=di.onAppearActive,$n=di.onEnterActive,oi=di.onLeaveActive,Ti=di.motionAppear,ki=di.motionEnter,Ri=di.motionLeave;if(!jt(br.props))return;var oa=br.getElement();br.$cacheEle!==oa&&(br.removeEventListener(br.$cacheEle),br.addEventListener(oa),br.$cacheEle=oa),Pn&&Xn===at&&Ti?br.updateStatus(An,null,null,function(){br.updateActiveStatus(Qn,at)}):Pn&&Xn===he&&ki?br.updateStatus(Ur,null,null,function(){br.updateActiveStatus($n,he)}):Pn&&Xn===J&&Ri&&br.updateStatus(In,null,null,function(){br.updateActiveStatus(oi,J)})},br.onMotionEnd=function(Pr){if(Pr&&!Pr.deadline&&Pr.target!==br.getElement())return;var Xn=br.state,Pn=Xn.status,di=Xn.statusActive,An=br.props,Ur=An.onAppearEnd,In=An.onEnterEnd,Qn=An.onLeaveEnd;Pn===at&&di?br.updateStatus(Ur,{status:ae},Pr):Pn===he&&di?br.updateStatus(In,{status:ae},Pr):Pn===J&&di&&br.updateStatus(Qn,{status:ae},Pr)},br.setNodeRef=function(Pr){var Xn=br.props.internalRef;br.node=Pr,Object(w.b)(Xn,Pr)},br.getElement=function(){try{return Object(T.a)(br.node||Object(A.a)(br))}catch(Pr){return br.$cacheEle}},br.addEventListener=function(Pr){if(!Pr)return;Pr.addEventListener(Ve,br.onMotionEnd),Pr.addEventListener(Je,br.onMotionEnd)},br.removeEventListener=function(Pr){if(!Pr)return;Pr.removeEventListener(Ve,br.onMotionEnd),Pr.removeEventListener(Je,br.onMotionEnd)},br.updateStatus=function(Pr,Xn,Pn,di){var An=Pr?Pr(br.getElement(),Pn):null;if(An===!1||br.destroyed)return;var Ur;di&&(Ur=function(){br.nextFrame(di)}),br.setState(Object(c.a)({statusStyle:Object(Q.a)(An)==="object"?An:null,newStatus:!1},Xn),Ur)},br.updateActiveStatus=function(Pr,Xn){br.nextFrame(function(){var Pn=br.state.status;if(Pn!==Xn)return;var di=br.props.motionDeadline;br.updateStatus(Pr,{statusActive:!0}),di>0&&(br.deadlineId=setTimeout(function(){br.onMotionEnd({deadline:!0})},di))})},br.nextFrame=function(Pr){br.cancelNextFrame(),br.raf=K()(Pr)},br.cancelNextFrame=function(){br.raf&&(K.a.cancel(br.raf),br.raf=null)},br}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 Pr,Xn=this.state,Pn=Xn.status,di=Xn.statusActive,An=Xn.statusStyle,Ur=this.props,In=Ur.children,Qn=Ur.motionName,$n=Ur.visible,oi=Ur.removeOnLeave,Ti=Ur.leavedClassName,ki=Ur.eventProps;return In?Pn===ae||!jt(this.props)?$n?In(Object(c.a)({},ki),this.setNodeRef):oi?null:In(Object(c.a)(Object(c.a)({},ki),{},{className:Ti}),this.setNodeRef):In(Object(c.a)(Object(c.a)({},ki),{},{className:M()(Fe(Qn,Pn),(Pr={},Object(V.a)(Pr,Fe(Qn,"".concat(Pn,"-active")),di),Object(V.a)(Pr,Qn,typeof Qn=="string"),Pr)),style:An}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Pr,Xn){var Pn=Xn.prevProps,di=Xn.status;if(!jt(Pr))return{};var An=Pr.visible,Ur=Pr.motionAppear,In=Pr.motionEnter,Qn=Pr.motionLeave,$n=Pr.motionLeaveImmediately,oi={prevProps:Pr};return(di===at&&!Ur||di===he&&!In||di===J&&!Qn)&&(oi.status=ae,oi.statusActive=!1,oi.newStatus=!1),!Pn&&An&&Ur&&(oi.status=at,oi.statusActive=!1,oi.newStatus=!0),Pn&&!Pn.visible&&An&&In&&(oi.status=he,oi.statusActive=!1,oi.newStatus=!0),(Pn&&Pn.visible&&!An&&Qn||!Pn&&$n&&!An&&Qn)&&(oi.status=J,oi.statusActive=!1,oi.newStatus=!0),oi}}]),Ar}(r.Component);return zt.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Rt?r.forwardRef(function(Lt,cr){return r.createElement(zt,Object.assign({internalRef:cr},Lt))}):zt}var $=Y(ut),de="add",be="keep",Ce="remove",Be="removed";function fe(Gt){var Ot;return Gt&&Object(Q.a)(Gt)==="object"&&"key"in Gt?Ot=Gt:Ot={key:Gt},Object(c.a)(Object(c.a)({},Ot),{},{key:String(Ot.key)})}function Se(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Gt.map(fe)}function ke(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Rt=[],jt=0,zt=Ot.length,Lt=Se(Gt),cr=Se(Ot);Lt.forEach(function(Pr){for(var Xn=!1,Pn=jt;Pn<zt;Pn+=1){var di=cr[Pn];if(di.key===Pr.key){jt<Pn&&(Rt=Rt.concat(cr.slice(jt,Pn).map(function(An){return Object(c.a)(Object(c.a)({},An),{},{status:de})})),jt=Pn),Rt.push(Object(c.a)(Object(c.a)({},di),{},{status:be})),jt+=1,Xn=!0;break}}Xn||Rt.push(Object(c.a)(Object(c.a)({},Pr),{},{status:Ce}))}),jt<zt&&(Rt=Rt.concat(cr.slice(jt).map(function(Pr){return Object(c.a)(Object(c.a)({},Pr),{},{status:de})})));var Ar={};Rt.forEach(function(Pr){var Xn=Pr.key;Ar[Xn]=(Ar[Xn]||0)+1});var br=Object.keys(Ar).filter(function(Pr){return Ar[Pr]>1});return br.forEach(function(Pr){Rt=Rt.filter(function(Xn){var Pn=Xn.key,di=Xn.status;return Pn!==Pr||di!==Ce}),Rt.forEach(function(Xn){Xn.key===Pr&&(Xn.status=be)})}),Rt}var rt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function xt(Gt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,Rt=function(jt){Object(b.a)(Lt,jt);var zt=Object(S.a)(Lt);function Lt(){var cr;return Object(h.a)(this,Lt),cr=zt.apply(this,arguments),cr.state={keyEntities:[]},cr.removeKey=function(Ar){cr.setState(function(br){var Pr=br.keyEntities;return{keyEntities:Pr.map(function(Xn){return Xn.key!==Ar?Xn:Object(c.a)(Object(c.a)({},Xn),{},{status:Be})})}})},cr}return Object(g.a)(Lt,[{key:"render",value:function(){var Ar=this,br=this.state.keyEntities,Pr=this.props,Xn=Pr.component,Pn=Pr.children,di=Object(F.a)(Pr,["component","children"]),An=Xn||r.Fragment,Ur={};return rt.forEach(function(In){Ur[In]=di[In],delete di[In]}),delete di.keys,r.createElement(An,Object.assign({},di),br.map(function(In){var Qn=In.status,$n=Object(F.a)(In,["status"]),oi=Qn===de||Qn===be;return r.createElement(Ot,Object.assign({},Ur,{key:$n.key,visible:oi,eventProps:$n,onLeaveEnd:function(){Ur.onLeaveEnd&&Ur.onLeaveEnd.apply(Ur,arguments),Ar.removeKey($n.key)}}),Pn)}))}}],[{key:"getDerivedStateFromProps",value:function(Ar,br){var Pr=Ar.keys,Xn=br.keyEntities,Pn=Se(Pr);if(!Gt)return{keyEntities:Pn.map(function(Ur){return Object(c.a)(Object(c.a)({},Ur),{},{status:be})})};var di=ke(Xn,Pn),An=Xn.length;return{keyEntities:di.filter(function(Ur){for(var In=null,Qn=0;Qn<An;Qn+=1){var $n=Xn[Qn];if($n.key===Ur.key){In=$n;break}}return!(In&&In.status===Be&&Ur.status===Ce)})}}}]),Lt}(r.Component);return Rt.defaultProps={component:"div"},Rt}var ht=xt(ut),He=$,ir=function(Ot,Rt){var jt=Ot.prefixCls,zt=Ot.className,Lt=Ot.style,cr=Ot.children,Ar=Ot.onMouseEnter,br=Ot.onMouseLeave,Pr=Ot.onMouseDown,Xn=Ot.onTouchStart,Pn=cr;return r.Children.count(cr)>1&&(Pn=r.createElement("div",{className:"".concat(jt,"-content")},cr)),r.createElement("div",{ref:Rt,className:zt,onMouseEnter:Ar,onMouseLeave:br,onMouseDown:Pr,onTouchStart:Xn,style:Lt},Pn)},ct=r.forwardRef(ir);ct.displayName="PopupInner";var Xt=ct;function hr(Gt){var Ot=Gt.prefixCls,Rt=Gt.motion,jt=Gt.animation,zt=Gt.transitionName;return Rt||(jt?{motionName:"".concat(Ot,"-").concat(jt)}:zt?{motionName:zt}:null)}function Jt(Gt){return Gt&&Gt.motionName}var Pt=function(Gt){Object(b.a)(Rt,Gt);var Ot=Object(S.a)(Rt);function Rt(){var jt;return Object(h.a)(this,Rt),jt=Ot.apply(this,arguments),jt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},jt.popupRef=a.a.createRef(),jt.alignRef=a.a.createRef(),jt.nextFrameState=null,jt.nextFrameId=null,jt.onAlign=function(zt,Lt){var cr=jt.state.status,Ar=jt.props,br=Ar.getClassNameFromAlign,Pr=Ar.onAlign,Xn=br(Lt);cr==="align"?jt.setState({alignClassName:Xn,status:"aligned"},function(){jt.alignRef.current.forceAlign()}):cr==="aligned"?(jt.setState({alignClassName:Xn,status:"afterAlign"}),Pr(zt,Lt)):jt.setState({alignClassName:Xn})},jt.onMotionEnd=function(){var zt=jt.props.visible;jt.setState({status:zt?"AfterMotion":"stable",inMotion:!1})},jt.setStateOnNextFrame=function(zt){jt.cancelFrameState(),jt.nextFrameState=Object(c.a)(Object(c.a)({},jt.nextFrameState),zt),jt.nextFrameId=K()(function(){var Lt=Object(c.a)({},jt.nextFrameState);jt.nextFrameState=null,jt.setState(Lt)})},jt.getMotion=function(){return Object(c.a)({},hr(jt.props))},jt.getAlignTarget=function(){var zt=jt.props,Lt=zt.point,cr=zt.getRootDomNode;return Lt||cr},jt.cancelFrameState=function(){K.a.cancel(jt.nextFrameId)},jt.renderPopupElement=function(){var zt=jt.state,Lt=zt.status,cr=zt.targetHeight,Ar=zt.targetWidth,br=zt.alignClassName,Pr=jt.props,Xn=Pr.prefixCls,Pn=Pr.className,di=Pr.style,An=Pr.stretch,Ur=Pr.visible,In=Pr.align,Qn=Pr.destroyPopupOnHide,$n=Pr.onMouseEnter,oi=Pr.onMouseLeave,Ti=Pr.onMouseDown,ki=Pr.onTouchStart,Ri=Pr.children,oa=M()(Xn,Pn,br),ma="".concat(Xn,"-hidden"),aa={};An&&(An.indexOf("height")!==-1?aa.height=cr:An.indexOf("minHeight")!==-1&&(aa.minHeight=cr),An.indexOf("width")!==-1?aa.width=Ar:An.indexOf("minWidth")!==-1&&(aa.minWidth=Ar));var ba=Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({},aa),jt.getZIndexStyle()),di),{},{opacity:Lt==="stable"||!Ur?void 0:0,pointerEvents:Lt==="stable"||!Ur?void 0:"none"}),yi=jt.getMotion(),kn=Ur;Ur&&Lt!=="beforeMotion"&&Lt!=="motion"&&Lt!=="stable"&&(yi.motionAppear=!1,yi.motionEnter=!1,yi.motionLeave=!1),(Lt==="afterAlign"||Lt==="beforeMotion")&&(kn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(ta){var ra=yi==null?void 0:yi[ta];yi[ta]=function(){for(var Lr=arguments.length,xr=new Array(Lr),Tn=0;Tn<Lr;Tn++)xr[Tn]=arguments[Tn];ra==null||ra.apply(void 0,xr),jt.setState({inMotion:!0})}});var Ui=!Ur||Lt!=="align"&&Lt!=="aligned"&&Lt!=="stable",ha=!0;return Lt==="stable"&&(ha=Ur),Qn&&!ha?null:a.a.createElement(He,Object.assign({visible:kn},yi,{removeOnLeave:!1,onEnterEnd:jt.onMotionEnd,onLeaveEnd:jt.onMotionEnd,leavedClassName:ma}),function(ta,ra){var Lr=ta.style,xr=ta.className;return a.a.createElement(z.a,{target:jt.getAlignTarget(),key:"popup",ref:jt.alignRef,monitorWindowResize:!0,disabled:Ui,align:In,onAlign:jt.onAlign},a.a.createElement(Xt,{prefixCls:Xn,className:M()(oa,xr),ref:Object(w.a)(ra,jt.popupRef),onMouseEnter:$n,onMouseLeave:oi,onMouseDown:Ti,onTouchStart:ki,style:Object(c.a)(Object(c.a)({},ba),Lr)},Ri))})},jt.renderMaskElement=function(){var zt=jt.props,Lt=zt.mask,cr=zt.maskMotion,Ar=zt.maskTransitionName,br=zt.maskAnimation,Pr=zt.prefixCls,Xn=zt.visible;if(!Lt)return null;var Pn={};return cr&&cr.motionName&&(Pn=Object(c.a)({motionAppear:!0},hr({motion:cr,prefixCls:Pr,transitionName:Ar,animation:br}))),a.a.createElement(He,Object.assign({},Pn,{visible:Xn,removeOnLeave:!0}),function(di){var An=di.className;return a.a.createElement("div",{style:jt.getZIndexStyle(),key:"mask",className:M()("".concat(Pr,"-mask"),An)})})},jt}return Object(g.a)(Rt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var zt=this.state.status,Lt=this.props,cr=Lt.getRootDomNode,Ar=Lt.visible,br=Lt.stretch;if(this.cancelFrameState(),Ar&&zt!=="stable")switch(zt){case null:{this.setStateOnNextFrame({status:br?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Jt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Pr=["measure","align",null,"beforeMotion","motion"],Xn=Pr.indexOf(zt),Pn=Pr[Xn+1];Xn!==-1&&Pn&&this.setStateOnNextFrame({status:Pn})}}if(zt==="measure"){var di=cr();di&&this.setStateOnNextFrame({targetHeight:di.offsetHeight,targetWidth:di.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var zt=this.props.zIndex;return{zIndex:zt}}},{key:"render",value:function(){return a.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(zt,Lt){var cr=zt.visible,Ar=Object(F.a)(zt,["visible"]),br=Lt.prevVisible,Pr=Lt.status,Xn=Lt.inMotion,Pn={prevVisible:cr,status:Pr},di=hr(Ar);return br===null&&cr===!1?(Pn.status="stable",Pn.inMotion=!1):cr!==br&&(Pn.inMotion=!1,cr||Jt(di)&&Xn?Pn.status=null:Pn.status="stable",cr&&(Pn.alignClassName=null)),Pn}}]),Rt}(r.Component),Wt=Pt,Ge=r.createContext(null),pe=Ge;function se(){}function lt(){return""}function qe(){return window.document}var me=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ht(Gt){var Ot=function(Rt){Object(b.a)(zt,Rt);var jt=Object(S.a)(zt);function zt(Lt){var cr;Object(h.a)(this,zt),cr=jt.call(this,Lt),cr.popupRef=a.a.createRef(),cr.triggerRef=a.a.createRef(),cr.onMouseEnter=function(br){var Pr=cr.props.mouseEnterDelay;cr.fireEvents("onMouseEnter",br),cr.delaySetPopupVisible(!0,Pr,Pr?null:br)},cr.onMouseMove=function(br){cr.fireEvents("onMouseMove",br),cr.setPoint(br)},cr.onMouseLeave=function(br){cr.fireEvents("onMouseLeave",br),cr.delaySetPopupVisible(!1,cr.props.mouseLeaveDelay)},cr.onPopupMouseEnter=function(){cr.clearDelayTimer()},cr.onPopupMouseLeave=function(br){if(br.relatedTarget&&!br.relatedTarget.setTimeout&&cr.popupRef.current&&cr.popupRef.current.popupRef.current&&Object(_.a)(cr.popupRef.current.popupRef.current,br.relatedTarget))return;cr.delaySetPopupVisible(!1,cr.props.mouseLeaveDelay)},cr.onFocus=function(br){cr.fireEvents("onFocus",br),cr.clearDelayTimer(),cr.isFocusToShow()&&(cr.focusTime=Date.now(),cr.delaySetPopupVisible(!0,cr.props.focusDelay))},cr.onMouseDown=function(br){cr.fireEvents("onMouseDown",br),cr.preClickTime=Date.now()},cr.onTouchStart=function(br){cr.fireEvents("onTouchStart",br),cr.preTouchTime=Date.now()},cr.onBlur=function(br){cr.fireEvents("onBlur",br),cr.clearDelayTimer(),cr.isBlurToHide()&&cr.delaySetPopupVisible(!1,cr.props.blurDelay)},cr.onContextMenu=function(br){br.preventDefault(),cr.fireEvents("onContextMenu",br),cr.setPopupVisible(!0,br)},cr.onContextMenuClose=function(){cr.isContextMenuToShow()&&cr.close()},cr.onClick=function(br){if(cr.fireEvents("onClick",br),cr.focusTime){var Pr;if(cr.preClickTime&&cr.preTouchTime?Pr=Math.min(cr.preClickTime,cr.preTouchTime):cr.preClickTime?Pr=cr.preClickTime:cr.preTouchTime&&(Pr=cr.preTouchTime),Math.abs(Pr-cr.focusTime)<20)return;cr.focusTime=0}cr.preClickTime=0,cr.preTouchTime=0,cr.isClickToShow()&&(cr.isClickToHide()||cr.isBlurToHide())&&br&&br.preventDefault&&br.preventDefault();var Xn=!cr.state.popupVisible;(cr.isClickToHide()&&!Xn||Xn&&cr.isClickToShow())&&cr.setPopupVisible(!cr.state.popupVisible,br)},cr.onPopupMouseDown=function(){if(cr.hasPopupMouseDown=!0,clearTimeout(cr.mouseDownTimeout),cr.mouseDownTimeout=window.setTimeout(function(){cr.hasPopupMouseDown=!1},0),cr.context){var br;(br=cr.context).onPopupMouseDown.apply(br,arguments)}},cr.onDocumentClick=function(br){if(cr.props.mask&&!cr.props.maskClosable)return;var Pr=br.target,Xn=cr.getRootDomNode(),Pn=cr.getPopupDomNode();!Object(_.a)(Xn,Pr)&&!Object(_.a)(Pn,Pr)&&!cr.hasPopupMouseDown&&cr.close()},cr.getRootDomNode=function(){var br=cr.props.getTriggerDOMNode;if(br)return br(cr.triggerRef.current);try{var Pr=Object(T.a)(cr.triggerRef.current);if(Pr)return Pr}catch(Xn){}return C.a.findDOMNode(Object(A.a)(cr))},cr.getPopupClassNameFromAlign=function(br){var Pr=[],Xn=cr.props,Pn=Xn.popupPlacement,di=Xn.builtinPlacements,An=Xn.prefixCls,Ur=Xn.alignPoint,In=Xn.getPopupClassNameFromAlign;return Pn&&di&&Pr.push(X(di,An,br,Ur)),In&&Pr.push(In(br)),Pr.join(" ")},cr.getComponent=function(){var br=cr.props,Pr=br.prefixCls,Xn=br.destroyPopupOnHide,Pn=br.popupClassName,di=br.onPopupAlign,An=br.popupMotion,Ur=br.popupAnimation,In=br.popupTransitionName,Qn=br.popupStyle,$n=br.mask,oi=br.maskAnimation,Ti=br.maskTransitionName,ki=br.maskMotion,Ri=br.zIndex,oa=br.popup,ma=br.stretch,aa=br.alignPoint,ba=cr.state,yi=ba.popupVisible,kn=ba.point,Ui=cr.getPopupAlign(),ha={};return cr.isMouseEnterToShow()&&(ha.onMouseEnter=cr.onPopupMouseEnter),cr.isMouseLeaveToHide()&&(ha.onMouseLeave=cr.onPopupMouseLeave),ha.onMouseDown=cr.onPopupMouseDown,ha.onTouchStart=cr.onPopupMouseDown,a.a.createElement(Wt,Object.assign({prefixCls:Pr,destroyPopupOnHide:Xn,visible:yi,point:aa&&kn,className:Pn,align:Ui,onAlign:di,animation:Ur,getClassNameFromAlign:cr.getPopupClassNameFromAlign},ha,{stretch:ma,getRootDomNode:cr.getRootDomNode,style:Qn,mask:$n,zIndex:Ri,transitionName:In,maskAnimation:oi,maskTransitionName:Ti,maskMotion:ki,ref:cr.popupRef,motion:An}),typeof oa=="function"?oa():oa)},cr.getContainer=function(){var br=Object(A.a)(cr),Pr=br.props,Xn=document.createElement("div");Xn.style.position="absolute",Xn.style.top="0",Xn.style.left="0",Xn.style.width="100%";var Pn=Pr.getPopupContainer?Pr.getPopupContainer(cr.getRootDomNode()):Pr.getDocument().body;return Pn.appendChild(Xn),Xn},cr.setPoint=function(br){var Pr=cr.props.alignPoint;if(!Pr||!br)return;cr.setState({point:{pageX:br.pageX,pageY:br.pageY}})},cr.handlePortalUpdate=function(){cr.state.prevPopupVisible!==cr.state.popupVisible&&cr.props.afterPopupVisibleChange(cr.state.popupVisible)};var Ar;return"popupVisible"in Lt?Ar=!!Lt.popupVisible:Ar=!!Lt.defaultPopupVisible,cr.state={prevPopupVisible:Ar,popupVisible:Ar},me.forEach(function(br){cr["fire".concat(br)]=function(Pr){cr.fireEvents(br,Pr)}}),cr}return Object(g.a)(zt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var cr=this.props,Ar=this.state;if(Ar.popupVisible){var br;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(br=cr.getDocument(),this.clickOutsideHandler=Object(O.a)(br,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(br=br||cr.getDocument(),this.touchOutsideHandler=Object(O.a)(br,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(br=br||cr.getDocument(),this.contextMenuOutsideHandler1=Object(O.a)(br,"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 cr=this.props,Ar=cr.popupPlacement,br=cr.popupAlign,Pr=cr.builtinPlacements;return Ar&&Pr?P(Pr,Ar,br):br}},{key:"setPopupVisible",value:function(cr,Ar){var br=this.props.alignPoint,Pr=this.state.popupVisible;this.clearDelayTimer(),Pr!==cr&&("popupVisible"in this.props||this.setState({popupVisible:cr,prevPopupVisible:Pr}),this.props.onPopupVisibleChange(cr)),br&&Ar&&this.setPoint(Ar)}},{key:"delaySetPopupVisible",value:function(cr,Ar,br){var Pr=this,Xn=Ar*1e3;if(this.clearDelayTimer(),Xn){var Pn=br?{pageX:br.pageX,pageY:br.pageY}:null;this.delayTimer=window.setTimeout(function(){Pr.setPopupVisible(cr,Pn),Pr.clearDelayTimer()},Xn)}else this.setPopupVisible(cr,br)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(cr){var Ar=this.props.children.props,br=this.props;return Ar[cr]&&br[cr]?this["fire".concat(cr)]:Ar[cr]||br[cr]}},{key:"isClickToShow",value:function(){var cr=this.props,Ar=cr.action,br=cr.showAction;return Ar.indexOf("click")!==-1||br.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var cr=this.props,Ar=cr.action,br=cr.showAction;return Ar.indexOf("contextMenu")!==-1||br.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var cr=this.props,Ar=cr.action,br=cr.hideAction;return Ar.indexOf("click")!==-1||br.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var cr=this.props,Ar=cr.action,br=cr.showAction;return Ar.indexOf("hover")!==-1||br.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var cr=this.props,Ar=cr.action,br=cr.hideAction;return Ar.indexOf("hover")!==-1||br.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var cr=this.props,Ar=cr.action,br=cr.showAction;return Ar.indexOf("focus")!==-1||br.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var cr=this.props,Ar=cr.action,br=cr.hideAction;return Ar.indexOf("focus")!==-1||br.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(cr,Ar){var br=this.props.children.props[cr];br&&br(Ar);var Pr=this.props[cr];Pr&&Pr(Ar)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var cr=this.state.popupVisible,Ar=this.props,br=Ar.children,Pr=Ar.forceRender,Xn=Ar.alignPoint,Pn=Ar.className,di=Ar.autoDestroy,An=a.a.Children.only(br),Ur={key:"trigger"};this.isContextMenuToShow()?Ur.onContextMenu=this.onContextMenu:Ur.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Ur.onClick=this.onClick,Ur.onMouseDown=this.onMouseDown,Ur.onTouchStart=this.onTouchStart):(Ur.onClick=this.createTwoChains("onClick"),Ur.onMouseDown=this.createTwoChains("onMouseDown"),Ur.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Ur.onMouseEnter=this.onMouseEnter,Xn&&(Ur.onMouseMove=this.onMouseMove)):Ur.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Ur.onMouseLeave=this.onMouseLeave:Ur.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Ur.onFocus=this.onFocus,Ur.onBlur=this.onBlur):(Ur.onFocus=this.createTwoChains("onFocus"),Ur.onBlur=this.createTwoChains("onBlur"));var In=M()(An&&An.props&&An.props.className,Pn);In&&(Ur.className=In);var Qn=Object(c.a)({},Ur);Object(w.c)(An)&&(Qn.ref=Object(w.a)(this.triggerRef,An.ref));var $n=a.a.cloneElement(An,Qn),oi;return(cr||this.popupRef.current||Pr)&&(oi=a.a.createElement(Gt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!cr&&di&&(oi=null),a.a.createElement(pe.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},$n,oi)}}],[{key:"getDerivedStateFromProps",value:function(cr,Ar){var br=cr.popupVisible,Pr={};return br!==void 0&&Ar.popupVisible!==br&&(Pr.popupVisible=br,Pr.prevPopupVisible=Ar.popupVisible),Pr}}]),zt}(a.a.Component);return Ot.contextType=pe,Ot.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:lt,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},Ot}var yr=Ht(I.a),At=n("2W6z"),rr=n.n(At),ur=n("4IlW"),vn=n("uK0f"),Bt=n.n(vn);function sr(Gt,Ot){if(Gt===Ot)return!0;if(!Gt||!Ot)return!1;var Rt=Gt.length;if(Ot.length!==Rt)return!1;for(var jt=0;jt<Rt;jt++)if(Gt[jt]!==Ot[jt])return!1;return!0}function Yt(Gt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yt=function(Rt){return typeof Rt}:Yt=function(Rt){return Rt&&typeof Symbol=="function"&&Rt.constructor===Symbol&&Rt!==Symbol.prototype?"symbol":typeof Rt},Yt(Gt)}function pt(Gt,Ot){if(!(Gt instanceof Ot))throw new TypeError("Cannot call a class as a function")}function it(Gt,Ot){for(var Rt=0;Rt<Ot.length;Rt++){var jt=Ot[Rt];jt.enumerable=jt.enumerable||!1,jt.configurable=!0,"value"in jt&&(jt.writable=!0),Object.defineProperty(Gt,jt.key,jt)}}function Fr(Gt,Ot,Rt){return Ot&&it(Gt.prototype,Ot),Rt&&it(Gt,Rt),Gt}function cn(Gt,Ot){if(typeof Ot!="function"&&Ot!==null)throw new TypeError("Super expression must either be null or a function");Gt.prototype=Object.create(Ot&&Ot.prototype,{constructor:{value:Gt,writable:!0,configurable:!0}}),Ot&&_n(Gt,Ot)}function _n(Gt,Ot){return _n=Object.setPrototypeOf||function(jt,zt){return jt.__proto__=zt,jt},_n(Gt,Ot)}function Kn(Gt){var Ot=Un();return function(){var Rt=$t(Gt),jt;if(Ot){var zt=$t(this).constructor;jt=Reflect.construct(Rt,arguments,zt)}else jt=Rt.apply(this,arguments);return gi(this,jt)}}function gi(Gt,Ot){return Ot&&(Yt(Ot)==="object"||typeof Ot=="function")?Ot:Mn(Gt)}function Mn(Gt){if(Gt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Gt}function Un(){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(Gt){return!1}}function $t(Gt){return $t=Object.setPrototypeOf?Object.getPrototypeOf:function(Rt){return Rt.__proto__||Object.getPrototypeOf(Rt)},$t(Gt)}var Ct=function(){var Gt=function(Ot){cn(jt,Ot);var Rt=Kn(jt);function jt(){var zt;return pt(this,jt),zt=Rt.apply(this,arguments),zt.menuItems={},zt.saveMenuItem=function(Lt){return function(cr){zt.menuItems[Lt]=cr}},zt}return Fr(jt,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(Lt){!Lt.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(Lt){var cr=this.props,Ar=cr.fieldNames,br=cr.defaultFieldNames;return Ar[Lt]||br[Lt]}},{key:"getOption",value:function(Lt,cr){var Ar=this.props,br=Ar.prefixCls,Pr=Ar.expandTrigger,Xn=Ar.expandIcon,Pn=Ar.loadingIcon,di=this.props.onSelect.bind(this,Lt,cr),An=this.props.onItemDoubleClick.bind(this,Lt,cr),Ur={onClick:di,onDoubleClick:An},In="".concat(br,"-menu-item"),Qn=null,$n=Lt[this.getFieldName("children")]&&Lt[this.getFieldName("children")].length>0;($n||Lt.isLeaf===!1)&&(In+=" ".concat(br,"-menu-item-expand"),Lt.loading||(Qn=r.createElement("span",{className:"".concat(br,"-menu-item-expand-icon")},Xn))),Pr==="hover"&&($n||Lt.isLeaf===!1)&&(Ur={onMouseEnter:this.delayOnSelect.bind(this,di),onMouseLeave:this.delayOnSelect.bind(this),onClick:di}),this.isActiveOption(Lt,cr)&&(In+=" ".concat(br,"-menu-item-active"),Ur.ref=this.saveMenuItem(cr)),Lt.disabled&&(In+=" ".concat(br,"-menu-item-disabled"));var oi=null;Lt.loading&&(In+=" ".concat(br,"-menu-item-loading"),oi=Pn||null);var Ti="";return"title"in Lt?Ti=Lt.title:typeof Lt[this.getFieldName("label")]=="string"&&(Ti=Lt[this.getFieldName("label")]),r.createElement("li",Object.assign({key:Lt[this.getFieldName("value")],className:In,title:Ti},Ur,{role:"menuitem",onMouseDown:function(Ri){return Ri.preventDefault()}}),Lt[this.getFieldName("label")],Qn,oi)}},{key:"getActiveOptions",value:function(Lt){var cr=this,Ar=this.props.options,br=Lt||this.props.activeValue;return Bt()(Ar,function(Pr,Xn){return Pr[cr.getFieldName("value")]===br[Xn]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var Lt=this,cr=this.props.options,Ar=this.getActiveOptions().map(function(br){return br[Lt.getFieldName("children")]}).filter(function(br){return!!br});return Ar.unshift(cr),Ar}},{key:"delayOnSelect",value:function(Lt){for(var cr=this,Ar=arguments.length,br=new Array(Ar>1?Ar-1:0),Pr=1;Pr<Ar;Pr++)br[Pr-1]=arguments[Pr];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof Lt=="function"&&(this.delayTimer=window.setTimeout(function(){Lt(br),cr.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var Lt=this.getShowOptions().length,cr=0;cr<Lt;cr++){var Ar=this.menuItems[cr];Ar&&Ar.parentElement&&(Ar.parentElement.scrollTop=Ar.offsetTop)}}},{key:"isActiveOption",value:function(Lt,cr){var Ar=this.props.activeValue,br=Ar===void 0?[]:Ar;return br[cr]===Lt[this.getFieldName("value")]}},{key:"render",value:function(){var Lt=this,cr=this.props,Ar=cr.prefixCls,br=cr.dropdownMenuColumnStyle;return r.createElement("div",null,this.getShowOptions().map(function(Pr,Xn){return r.createElement("ul",{className:"".concat(Ar,"-menu"),key:Xn,style:br},Pr.map(function(Pn){return Lt.getOption(Pn,Xn)}))}))}}]),jt}(r.Component);return Gt.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},Gt}(),Re=Ct,De={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},Pe=De;function et(Gt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?et=function(Rt){return typeof Rt}:et=function(Rt){return Rt&&typeof Symbol=="function"&&Rt.constructor===Symbol&&Rt!==Symbol.prototype?"symbol":typeof Rt},et(Gt)}function yt(Gt,Ot){if(Gt==null)return{};var Rt=St(Gt,Ot),jt,zt;if(Object.getOwnPropertySymbols){var Lt=Object.getOwnPropertySymbols(Gt);for(zt=0;zt<Lt.length;zt++){if(jt=Lt[zt],Ot.indexOf(jt)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Gt,jt))continue;Rt[jt]=Gt[jt]}}return Rt}function St(Gt,Ot){if(Gt==null)return{};var Rt={},jt=Object.keys(Gt),zt,Lt;for(Lt=0;Lt<jt.length;Lt++){if(zt=jt[Lt],Ot.indexOf(zt)>=0)continue;Rt[zt]=Gt[zt]}return Rt}function Vt(Gt){return Ft(Gt)||hn(Gt)||Vr(Gt)||Rr()}function Rr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vr(Gt,Ot){if(!Gt)return;if(typeof Gt=="string")return vt(Gt,Ot);var Rt=Object.prototype.toString.call(Gt).slice(8,-1);if(Rt==="Object"&&Gt.constructor&&(Rt=Gt.constructor.name),Rt==="Map"||Rt==="Set")return Array.from(Gt);if(Rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Rt))return vt(Gt,Ot)}function hn(Gt){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(Gt))return Array.from(Gt)}function Ft(Gt){if(Array.isArray(Gt))return vt(Gt)}function vt(Gt,Ot){(Ot==null||Ot>Gt.length)&&(Ot=Gt.length);for(var Rt=0,jt=new Array(Ot);Rt<Ot;Rt++)jt[Rt]=Gt[Rt];return jt}function bt(Gt,Ot){if(!(Gt instanceof Ot))throw new TypeError("Cannot call a class as a function")}function fr(Gt,Ot){for(var Rt=0;Rt<Ot.length;Rt++){var jt=Ot[Rt];jt.enumerable=jt.enumerable||!1,jt.configurable=!0,"value"in jt&&(jt.writable=!0),Object.defineProperty(Gt,jt.key,jt)}}function Qt(Gt,Ot,Rt){return Ot&&fr(Gt.prototype,Ot),Rt&&fr(Gt,Rt),Gt}function Mt(Gt,Ot){if(typeof Ot!="function"&&Ot!==null)throw new TypeError("Super expression must either be null or a function");Gt.prototype=Object.create(Ot&&Ot.prototype,{constructor:{value:Gt,writable:!0,configurable:!0}}),Ot&&qt(Gt,Ot)}function qt(Gt,Ot){return qt=Object.setPrototypeOf||function(jt,zt){return jt.__proto__=zt,jt},qt(Gt,Ot)}function kt(Gt){var Ot=Ir();return function(){var Rt=Dr(Gt),jt;if(Ot){var zt=Dr(this).constructor;jt=Reflect.construct(Rt,arguments,zt)}else jt=Rt.apply(this,arguments);return er(this,jt)}}function er(Gt,Ot){return Ot&&(et(Ot)==="object"||typeof Ot=="function")?Ot:Kr(Gt)}function Kr(Gt){if(Gt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Gt}function Ir(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(Gt){return!1}}function Dr(Gt){return Dr=Object.setPrototypeOf?Object.getPrototypeOf:function(Rt){return Rt.__proto__||Object.getPrototypeOf(Rt)},Dr(Gt)}var dn=function(){var Gt=function(Ot){Mt(jt,Ot);var Rt=kt(jt);function jt(zt){var Lt;bt(this,jt),Lt=Rt.call(this,zt),Lt.setPopupVisible=function(Ar){var br=Lt.state.value;"popupVisible"in Lt.props||Lt.setState({popupVisible:Ar}),Ar&&!Lt.state.popupVisible&&Lt.setState({activeValue:br}),Lt.props.onPopupVisibleChange(Ar)},Lt.handleChange=function(Ar,br,Pr){var Xn=br.visible;(Pr.type!=="keydown"||Pr.keyCode===ur.a.ENTER)&&(Lt.props.onChange(Ar.map(function(Pn){return Pn[Lt.getFieldName("value")]}),Ar),Lt.setPopupVisible(Xn))},Lt.handlePopupVisibleChange=function(Ar){Lt.setPopupVisible(Ar)},Lt.handleMenuSelect=function(Ar,br,Pr){var Xn=Lt.trigger.getRootDomNode();Xn&&Xn.focus&&Xn.focus();var Pn=Lt.props,di=Pn.changeOnSelect,An=Pn.loadData,Ur=Pn.expandTrigger;if(!Ar||Ar.disabled)return;var In=Lt.state.activeValue;In=In.slice(0,br+1),In[br]=Ar[Lt.getFieldName("value")];var Qn=Lt.getActiveOptions(In);if(Ar.isLeaf===!1&&!Ar[Lt.getFieldName("children")]&&An){di&&Lt.handleChange(Qn,{visible:!0},Pr),Lt.setState({activeValue:In}),An(Qn);return}var $n={};!Ar[Lt.getFieldName("children")]||!Ar[Lt.getFieldName("children")].length?(Lt.handleChange(Qn,{visible:!1},Pr),$n.value=In):di&&(Pr.type==="click"||Pr.type==="keydown")&&(Ur==="hover"?Lt.handleChange(Qn,{visible:!1},Pr):Lt.handleChange(Qn,{visible:!0},Pr),$n.value=In),$n.activeValue=In,("value"in Lt.props||Pr.type==="keydown"&&Pr.keyCode!==ur.a.ENTER)&&delete $n.value,Lt.setState($n)},Lt.handleItemDoubleClick=function(){var Ar=Lt.props.changeOnSelect;Ar&&Lt.setPopupVisible(!1)},Lt.handleKeyDown=function(Ar){var br=Lt.props.children;if(br&&br.props.onKeyDown){br.props.onKeyDown(Ar);return}var Pr=Vt(Lt.state.activeValue),Xn=Pr.length-1<0?0:Pr.length-1,Pn=Lt.getCurrentLevelOptions(),di=Pn.map(function(Qn){return Qn[Lt.getFieldName("value")]}).indexOf(Pr[Xn]);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(!Lt.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){Lt.setPopupVisible(!0);return}if(Ar.keyCode===ur.a.DOWN||Ar.keyCode===ur.a.UP){Ar.preventDefault();var An=di;An!==-1?Ar.keyCode===ur.a.DOWN?(An+=1,An=An>=Pn.length?0:An):(An-=1,An=An<0?Pn.length-1:An):An=0,Pr[Xn]=Pn[An][Lt.getFieldName("value")]}else if(Ar.keyCode===ur.a.LEFT||Ar.keyCode===ur.a.BACKSPACE)Ar.preventDefault(),Pr.splice(Pr.length-1,1);else if(Ar.keyCode===ur.a.RIGHT)Ar.preventDefault(),Pn[di]&&Pn[di][Lt.getFieldName("children")]&&Pr.push(Pn[di][Lt.getFieldName("children")][0][Lt.getFieldName("value")]);else if(Ar.keyCode===ur.a.ESC||Ar.keyCode===ur.a.TAB){Lt.setPopupVisible(!1);return}(!Pr||Pr.length===0)&&Lt.setPopupVisible(!1);var Ur=Lt.getActiveOptions(Pr),In=Ur[Ur.length-1];Lt.handleMenuSelect(In,Ur.length-1,Ar),Lt.props.onKeyDown&&Lt.props.onKeyDown(Ar)},Lt.saveTrigger=function(Ar){Lt.trigger=Ar};var cr=[];return"value"in zt?cr=zt.value||[]:"defaultValue"in zt&&(cr=zt.defaultValue||[]),rr()(!("filedNames"in zt),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),Lt.state={popupVisible:zt.popupVisible,activeValue:cr,value:cr,prevProps:zt},Lt.defaultFieldNames={label:"label",value:"value",children:"children"},Lt}return Qt(jt,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(Lt){var cr=this.defaultFieldNames,Ar=this.props,br=Ar.fieldNames,Pr=Ar.filedNames;return"filedNames"in this.props?Pr[Lt]||cr[Lt]:br[Lt]||cr[Lt]}},{key:"getFieldNames",value:function(){var Lt=this.props,cr=Lt.fieldNames,Ar=Lt.filedNames;return"filedNames"in this.props?Ar:cr}},{key:"getCurrentLevelOptions",value:function(){var Lt=this,cr=this.props.options,Ar=cr===void 0?[]:cr,br=this.state.activeValue,Pr=br===void 0?[]:br,Xn=Bt()(Ar,function(Pn,di){return Pn[Lt.getFieldName("value")]===Pr[di]},{childrenKeyName:this.getFieldName("children")});return Xn[Xn.length-2]?Xn[Xn.length-2][this.getFieldName("children")]:Vt(Ar).filter(function(Pn){return!Pn.disabled})}},{key:"getActiveOptions",value:function(Lt){var cr=this;return Bt()(this.props.options||[],function(Ar,br){return Ar[cr.getFieldName("value")]===Lt[br]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var Lt=this.props,cr=Lt.prefixCls,Ar=Lt.transitionName,br=Lt.popupClassName,Pr=Lt.options,Xn=Pr===void 0?[]:Pr,Pn=Lt.disabled,di=Lt.builtinPlacements,An=Lt.popupPlacement,Ur=Lt.children,In=Lt.dropdownRender,Qn=yt(Lt,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),$n=r.createElement("div",null),oi="";Xn&&Xn.length>0?$n=r.createElement(Re,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):oi=" ".concat(cr,"-menus-empty");var Ti=$n;return In&&(Ti=In($n)),r.createElement(yr,Object.assign({ref:this.saveTrigger},Qn,{popupPlacement:An,builtinPlacements:di,popupTransitionName:Ar,action:Pn?[]:["click"],popupVisible:Pn?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(cr,"-menus"),popupClassName:br+oi,popup:Ti}),r.cloneElement(Ur,{onKeyDown:this.handleKeyDown,tabIndex:Pn?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(Lt,cr){var Ar=cr.prevProps,br=Ar===void 0?{}:Ar,Pr={prevProps:Lt};return"value"in Lt&&!sr(br.value,Lt.value)&&(Pr.value=Lt.value||[],"loadData"in Lt||(Pr.activeValue=Lt.value||[])),"popupVisible"in Lt&&(Pr.popupVisible=Lt.popupVisible),Pr}}]),jt}(r.Component);return Gt.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:Pe,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},Gt}(),yn=dn,ti=yn,ei=n("BGR+"),fi=n("kbBi"),Ei=n.n(fi),Di=n("HQEm"),Hi=n.n(Di),nt=n("fEPi"),Le=n.n(nt),je=n("5YOS"),Xe=n.n(je),tt=n("DFhj"),Ze=n.n(tt),st=n("5rEg"),Et=n("H84U"),gt=n("YMnH"),pr=n("uaoM"),qr=n("3Nzz"),Qr=n("0n0R"),gn=function(Gt,Ot){var Rt={};for(var jt in Gt)Object.prototype.hasOwnProperty.call(Gt,jt)&&Ot.indexOf(jt)<0&&(Rt[jt]=Gt[jt]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,jt=Object.getOwnPropertySymbols(Gt);zt<jt.length;zt++)Ot.indexOf(jt[zt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,jt[zt])&&(Rt[jt[zt]]=Gt[jt[zt]]);return Rt},vr=50;function Vn(Gt,Ot,Rt){return Gt.split(Ot).map(function(jt,zt){return zt===0?jt:[r.createElement("span",{className:"".concat(Rt,"-menu-item-keyword"),key:"seperator"},Ot),jt]})}function kr(Gt,Ot,Rt){return Ot.some(function(jt){return jt[Rt.label].indexOf(Gt)>-1})}function Bn(Gt,Ot,Rt,jt){return Ot.map(function(zt,Lt){var cr=zt[jt.label],Ar=cr.indexOf(Gt)>-1?Vn(cr,Gt,Rt):cr;return Lt===0?Ar:[" / ",Ar]})}function on(Gt,Ot,Rt,jt){function zt(Lt){return Lt[jt.label].indexOf(Rt)>-1}return Gt.findIndex(zt)-Ot.findIndex(zt)}function jr(Gt){var Ot=Gt.fieldNames;return Ot}function ai(Gt){var Ot=jr(Gt)||{},Rt={children:Ot.children||"children",label:Ot.label||"label",value:Ot.value||"value"};return Rt}function Oi(Gt,Ot){var Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],jt=ai(Ot),zt=[],Lt=jt.children;return Gt.forEach(function(cr){var Ar=Rt.concat(cr);(Ot.changeOnSelect||!cr[Lt]||!cr[Lt].length)&&zt.push(Ar),cr[Lt]&&(zt=zt.concat(Oi(cr[Lt],Ot,Ar)))}),zt}var Gi=function(Ot){return Ot.join(" / ")};function rn(Gt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(Gt||[]).forEach(function(Rt){var jt=Ot.value||"value";Object(pr.a)(jt in Rt,"Cascader","Not found `value` in `options`."),rn(Rt[Ot.children||"children"],Ot)})}var Cn=function(Gt){s()(Rt,Gt);var Ot=l()(Rt);function Rt(jt){var zt;return f()(this,Rt),zt=Ot.call(this,jt),zt.cachedOptions=[],zt.setValue=function(Lt){var cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in zt.props||zt.setState({value:Lt});var Ar=zt.props.onChange;Ar&&Ar(Lt,cr)},zt.saveInput=function(Lt){zt.input=Lt},zt.handleChange=function(Lt,cr){if(zt.setState({inputValue:""}),cr[0].__IS_FILTERED_OPTION){var Ar=Lt[0],br=cr[0].path;zt.setValue(Ar,br);return}zt.setValue(Lt,cr)},zt.handlePopupVisibleChange=function(Lt){"popupVisible"in zt.props||zt.setState(function(Ar){return{popupVisible:Lt,inputFocused:Lt,inputValue:Lt?Ar.inputValue:""}});var cr=zt.props.onPopupVisibleChange;cr&&cr(Lt)},zt.handleInputBlur=function(){zt.setState({inputFocused:!1})},zt.handleInputClick=function(Lt){var cr=zt.state,Ar=cr.inputFocused,br=cr.popupVisible;(Ar||br)&&Lt.stopPropagation()},zt.handleKeyDown=function(Lt){(Lt.keyCode===ur.a.BACKSPACE||Lt.keyCode===ur.a.SPACE)&&Lt.stopPropagation()},zt.handleInputChange=function(Lt){var cr=zt.state.popupVisible,Ar=Lt.target.value;cr||zt.handlePopupVisibleChange(!0),zt.setState({inputValue:Ar})},zt.clearSelection=function(Lt){var cr=zt.state.inputValue;Lt.preventDefault(),Lt.stopPropagation(),cr?zt.setState({inputValue:""}):(zt.handlePopupVisibleChange(!1),zt.clearSelectionTimeout=setTimeout(function(){zt.setValue([])},200))},zt.renderCascader=function(Lt,cr){var Ar=Lt.getPopupContainer,br=Lt.getPrefixCls,Pr=Lt.renderEmpty,Xn=Lt.direction;return r.createElement(qr.b.Consumer,null,function(Pn){var di,An,Ur,In,Qn=i()(zt),$n=Qn.props,oi=Qn.state,Ti=$n.prefixCls,ki=$n.inputPrefixCls,Ri=$n.children,oa=$n.placeholder,ma=oa===void 0?cr.placeholder||"Please select":oa,aa=$n.size,ba=$n.disabled,yi=$n.className,kn=$n.style,Ui=$n.allowClear,ha=$n.showSearch,ta=ha===void 0?!1:ha,ra=$n.suffixIcon,Lr=$n.expandIcon,xr=$n.notFoundContent,Tn=$n.popupClassName,mr=$n.bordered,Mr=$n.dropdownRender,Xr=gn($n,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),un=aa||Pn,Fn=oi.value,_t=oi.inputFocused,Or=Xn==="rtl",Nr=br("cascader",Ti),tn=br("input",ki),xn=M()((di={},v()(di,"".concat(tn,"-lg"),un==="large"),v()(di,"".concat(tn,"-sm"),un==="small"),di)),Ln=Ui&&!ba&&Fn.length>0||oi.inputValue?r.createElement(Ei.a,{className:"".concat(Nr,"-picker-clear"),onClick:zt.clearSelection}):null,Sn=M()((An={},v()(An,"".concat(Nr,"-picker-arrow"),!0),v()(An,"".concat(Nr,"-picker-arrow-expand"),oi.popupVisible),An)),qn=M()(yi,"".concat(Nr,"-picker"),(Ur={},v()(Ur,"".concat(Nr,"-picker-rtl"),Or),v()(Ur,"".concat(Nr,"-picker-with-value"),oi.inputValue),v()(Ur,"".concat(Nr,"-picker-disabled"),ba),v()(Ur,"".concat(Nr,"-picker-").concat(un),!!un),v()(Ur,"".concat(Nr,"-picker-show-search"),!!ta),v()(Ur,"".concat(Nr,"-picker-focused"),_t),v()(Ur,"".concat(Nr,"-picker-borderless"),!mr),Ur)),Wn=Object(ei.default)(Xr,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),pi=$n.options,Pi=ai(zt.props);if(pi&&pi.length>0)oi.inputValue&&(pi=zt.generateFilteredOptions(Nr,Pr));else{var bi;pi=[(bi={},v()(bi,Pi.label,xr||Pr("Cascader")),v()(bi,Pi.value,"ANT_CASCADER_NOT_FOUND"),bi)]}oi.popupVisible?zt.cachedOptions=pi:pi=zt.cachedOptions;var Ii={},zi=(pi||[]).length===1&&pi[0].isEmptyNode;zi&&(Ii.height="auto");var ea=ta.matchInputWidth!==!1;ea&&(oi.inputValue||zi)&&zt.input&&(Ii.width=zt.input.input.offsetWidth);var Xi;ra?Xi=Object(Qr.c)(ra,r.createElement("span",{className:"".concat(Nr,"-picker-arrow")},ra),function(){var Pa;return{className:M()((Pa={},v()(Pa,ra.props.className,ra.props.className),v()(Pa,"".concat(Nr,"-picker-arrow"),!0),Pa))}}):Xi=r.createElement(Hi.a,{className:Sn});var Wi=Ri||r.createElement("span",{style:kn,className:qn},r.createElement("span",{className:"".concat(Nr,"-picker-label")},zt.getLabel()),r.createElement(st.a,p()({},Wn,{tabIndex:"-1",ref:zt.saveInput,prefixCls:tn,placeholder:Fn&&Fn.length>0?void 0:ma,className:"".concat(Nr,"-input ").concat(xn),value:oi.inputValue,disabled:ba,readOnly:!ta,autoComplete:Wn.autoComplete||"off",onClick:ta?zt.handleInputClick:void 0,onBlur:ta?zt.handleInputBlur:void 0,onKeyDown:zt.handleKeyDown,onChange:ta?zt.handleInputChange:void 0})),Ln,Xi),ji;Lr?ji=Lr:ji=Or?r.createElement(Ze.a,null):r.createElement(Le.a,null);var Ji=r.createElement("span",{className:"".concat(Nr,"-menu-item-loading-icon")},r.createElement(Xe.a,{spin:!0})),ca=$n.getPopupContainer||Ar,Ca=Object(ei.default)($n,["inputIcon","expandIcon","loadingIcon","bordered"]),na=M()(Tn,(In={},v()(In,"".concat(Nr,"-menu-").concat(Xn),Xn==="rtl"),v()(In,"".concat(Nr,"-menu-empty"),pi.length===1&&pi[0].value==="ANT_CASCADER_NOT_FOUND"),In));return r.createElement(ti,p()({},Ca,{prefixCls:Nr,getPopupContainer:ca,options:pi,value:Fn,popupVisible:oi.popupVisible,onPopupVisibleChange:zt.handlePopupVisibleChange,onChange:zt.handleChange,dropdownMenuColumnStyle:Ii,expandIcon:ji,loadingIcon:Ji,popupClassName:na,popupPlacement:zt.getPopupPlacement(Xn),dropdownRender:Mr}),Wi)})},zt.state={value:jt.value||jt.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:jt.popupVisible,flattenOptions:jt.showSearch?Oi(jt.options,jt):void 0,prevProps:jt},zt}return u()(Rt,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var zt=this.props,Lt=zt.options,cr=zt.displayRender,Ar=cr===void 0?Gi:cr,br=ai(this.props),Pr=this.state.value,Xn=Array.isArray(Pr[0])?Pr[0]:Pr,Pn=Bt()(Lt,function(An,Ur){return An[br.value]===Xn[Ur]},{childrenKeyName:br.children}),di=Pn.length?Pn.map(function(An){return An[br.label]}):Pr;return Ar(di,Pn)}},{key:"generateFilteredOptions",value:function(zt,Lt){var cr=this,Ar,br=this.props,Pr=br.showSearch,Xn=br.notFoundContent,Pn=ai(this.props),di=Pr.filter,An=di===void 0?kr:di,Ur=Pr.render,In=Ur===void 0?Bn:Ur,Qn=Pr.sort,$n=Qn===void 0?on:Qn,oi=Pr.limit,Ti=oi===void 0?vr:oi,ki=this.state,Ri=ki.flattenOptions,oa=Ri===void 0?[]:Ri,ma=ki.inputValue,aa;if(Ti>0){aa=[];var ba=0;oa.some(function(yi){var kn=An(cr.state.inputValue,yi,Pn);return kn&&(aa.push(yi),ba+=1),ba>=Ti})}else Object(pr.a)(typeof Ti!="number","Cascader","'limit' of showSearch should be positive number or false."),aa=oa.filter(function(yi){return An(cr.state.inputValue,yi,Pn)});return aa=aa.sort(function(yi,kn){return $n(yi,kn,ma,Pn)}),aa.length>0?aa.map(function(yi){var kn;return kn={__IS_FILTERED_OPTION:!0,path:yi},v()(kn,Pn.value,yi.map(function(Ui){return Ui[Pn.value]})),v()(kn,Pn.label,In(ma,yi,zt,Pn)),v()(kn,"disabled",yi.some(function(Ui){return!!Ui.disabled})),v()(kn,"isEmptyNode",!0),kn}):[(Ar={},v()(Ar,Pn.value,"ANT_CASCADER_NOT_FOUND"),v()(Ar,Pn.label,Xn||Lt("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 zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",Lt=this.props.popupPlacement;return Lt!==void 0?Lt:zt==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var zt=this;return r.createElement(Et.a,null,function(Lt){return r.createElement(gt.a,null,function(cr){return zt.renderCascader(Lt,cr)})})}}],[{key:"getDerivedStateFromProps",value:function(zt,Lt){var cr=Lt.prevProps,Ar={prevProps:zt};return"value"in zt&&(Ar.value=zt.value||[]),"popupVisible"in zt&&(Ar.popupVisible=zt.popupVisible),zt.showSearch&&cr.options!==zt.options&&(Ar.flattenOptions=Oi(zt.options,zt)),Ar}}]),Rt}(r.Component);Cn.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};var Yn=D.a=Cn},DFhj:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("GGyF"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},DL4k:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};D.default=y},DN4a:function(k,D,n){var y=n("Fofx"),p=n("QBsz"),x=y.identity,v=5e-5;function m(s){return s>v||s<-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 u=[];d.updateTransform=function(){var s=this.parent,e=s&&s.transform,l=this.needLocalTransform(),r=this.transform;if(!(l||e)){r&&x(r);return}r=r||y.create(),l?this.getLocalTransform(r):x(r),e&&(l?y.mul(r,s.transform,r):y.copy(r,s.transform)),this.transform=r;var a=this.globalScaleRatio;if(a!=null&&a!==1){this.getGlobalScale(u);var c=u[0]<0?-1:1,h=u[1]<0?-1:1,g=((u[0]-c)*a+c)/u[0]||0,A=((u[1]-h)*a+h)/u[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(s){return f.getLocalTransform(this,s)},d.setTransform=function(s){var e=this.transform,l=s.dpr||1;e?s.setTransform(l*e[0],l*e[1],l*e[2],l*e[3],l*e[4],l*e[5]):s.setTransform(l,0,0,l,0,0)},d.restoreTransform=function(s){var e=s.dpr||1;s.setTransform(e,0,0,e,0,0)};var o=[],i=y.create();d.setLocalTransform=function(s){if(!s)return;var e=s[0]*s[0]+s[1]*s[1],l=s[2]*s[2]+s[3]*s[3],r=this.position,a=this.scale;m(e-1)&&(e=Math.sqrt(e)),m(l-1)&&(l=Math.sqrt(l)),s[0]<0&&(e=-e),s[3]<0&&(l=-l),r[0]=s[4],r[1]=s[5],a[0]=e,a[1]=l,this.rotation=Math.atan2(-s[1]/l,s[0]/e)},d.decomposeTransform=function(){if(!this.transform)return;var s=this.parent,e=this.transform;s&&s.transform&&(y.mul(o,s.invTransform,e),e=o);var l=this.origin;l&&(l[0]||l[1])&&(i[4]=l[0],i[5]=l[1],y.mul(o,e,i),o[4]-=l[0],o[5]-=l[1],e=o),this.setLocalTransform(e)},d.getGlobalScale=function(s){var e=this.transform;return s=s||[],e?(s[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),s[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(s[0]=-s[0]),e[3]<0&&(s[1]=-s[1]),s):(s[0]=1,s[1]=1,s)},d.transformCoordToLocal=function(s,e){var l=[s,e],r=this.invTransform;return r&&p.applyTransform(l,l,r),l},d.transformCoordToGlobal=function(s,e){var l=[s,e],r=this.transform;return r&&p.applyTransform(l,l,r),l},f.getLocalTransform=function(s,e){e=e||[],x(e);var l=s.origin,r=s.scale||[1,1],a=s.rotation||0,c=s.position||[0,0];return l&&(e[4]-=l[0],e[5]-=l[1]),y.scale(e,e,r),a&&y.rotate(e,e,a),l&&(e[4]+=l[0],e[5]+=l[1]),e[4]+=c[0],e[5]+=c[1],e};var t=f;k.exports=t},DO2E:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};D.default=y},DSRE:function(k,D,n){(function(y){var p=n("Kz5y"),x=n("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,u=d?d.isBuffer:void 0,o=u||x;y.exports=o}).call(this,n("YuTi")(k))},DYRE:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("OPEp"),v=n.n(x)},DZo9:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("JGo8"),v=n.n(x),m=n("+L6B"),f=n("MXD1"),d=n("5Dmo")},Dagg:function(k,D,n){var y=n("Gev7"),p=n("mFDi"),x=n("bYtY"),v=n("Xnb7");function m(d){y.call(this,d)}m.prototype={constructor:m,type:"image",brush:function(u,o){var i=this.style,t=i.image;i.bind(u,this,o);var s=this._image=v.createOrUpdateImage(t,this._image,this,this.onload);if(!s||!v.isImageReady(s))return;var e=i.x||0,l=i.y||0,r=i.width,a=i.height,c=s.width/s.height;if(r==null&&a!=null?r=a*c:a==null&&r!=null?a=r/c:r==null&&a==null&&(r=s.width,a=s.height),this.setTransform(u),i.sWidth&&i.sHeight){var h=i.sx||0,g=i.sy||0;u.drawImage(s,h,g,i.sWidth,i.sHeight,e,l,r,a)}else if(i.sx&&i.sy){var h=i.sx,g=i.sy,A=r-h,b=a-g;u.drawImage(s,h,g,A,b,e,l,r,a)}else u.drawImage(s,e,l,r,a);i.text!=null&&(this.restoreTransform(u),this.drawRectText(u,this.getBoundingRect()))},getBoundingRect:function(){var u=this.style;return this._rect||(this._rect=new p(u.x||0,u.y||0,u.width||0,u.height||0)),this._rect}},x.inherits(m,y);var f=m;k.exports=f},Dg8C:function(k,D,n){var y=n("XxSj"),p=n("bYtY");function x(v,m){v.eachSeriesByType("sankey",function(f){var d=f.getGraph(),u=d.nodes;if(u.length){var o=Infinity,i=-Infinity;p.each(u,function(t){var s=t.getLayout().value;s<o&&(o=s),s>i&&(i=s)}),p.each(u,function(t){var s=new y({type:"color",mappingMethod:"linear",dataExtent:[o,i],visual:f.get("color")}),e=s.mapValueToVisual(t.getLayout().value),l=t.getModel().get("itemStyle.color");l!=null?t.setVisual("color",l):t.setVisual("color",e)})}})}k.exports=x},DjyN:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("Urep"),v=n.n(x),m=n("OaEy")},DlQD:function(k,D,n){(function(y,p){k.exports=p()})(this,function(){"use strict";function y(Jt,Pt){for(var Wt=0;Wt<Pt.length;Wt++){var Ge=Pt[Wt];Ge.enumerable=Ge.enumerable||!1,Ge.configurable=!0,"value"in Ge&&(Ge.writable=!0),Object.defineProperty(Jt,Ge.key,Ge)}}function p(Jt,Pt,Wt){return Pt&&y(Jt.prototype,Pt),Wt&&y(Jt,Wt),Jt}function x(Jt,Pt){if(!Jt)return;if(typeof Jt=="string")return v(Jt,Pt);var Wt=Object.prototype.toString.call(Jt).slice(8,-1);if(Wt==="Object"&&Jt.constructor&&(Wt=Jt.constructor.name),Wt==="Map"||Wt==="Set")return Array.from(Jt);if(Wt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Wt))return v(Jt,Pt)}function v(Jt,Pt){(Pt==null||Pt>Jt.length)&&(Pt=Jt.length);for(var Wt=0,Ge=new Array(Pt);Wt<Pt;Wt++)Ge[Wt]=Jt[Wt];return Ge}function m(Jt,Pt){var Wt;if(typeof Symbol=="undefined"||Jt[Symbol.iterator]==null){if(Array.isArray(Jt)||(Wt=x(Jt))||Pt&&Jt&&typeof Jt.length=="number"){Wt&&(Jt=Wt);var Ge=0;return function(){return Ge>=Jt.length?{done:!0}:{done:!1,value:Jt[Ge++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Wt=Jt[Symbol.iterator](),Wt.next.bind(Wt)}function f(Jt,Pt){return Pt={exports:{}},Jt(Pt,Pt.exports),Pt.exports}var d=f(function(Jt){function Pt(){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 Wt(Ge){Jt.exports.defaults=Ge}Jt.exports={defaults:Pt(),getDefaults:Pt,changeDefaults:Wt}}),u=d.defaults,o=d.getDefaults,i=d.changeDefaults,t=/[&<>"']/,s=/[&<>"']/g,e=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},a=function(Pt){return r[Pt]};function c(Jt,Pt){if(Pt){if(t.test(Jt))return Jt.replace(s,a)}else if(e.test(Jt))return Jt.replace(l,a);return Jt}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function g(Jt){return Jt.replace(h,function(Pt,Wt){return Wt=Wt.toLowerCase(),Wt==="colon"?":":Wt.charAt(0)==="#"?Wt.charAt(1)==="x"?String.fromCharCode(parseInt(Wt.substring(2),16)):String.fromCharCode(+Wt.substring(1)):""})}var A=/(^|[^\[])\^/g;function b(Jt,Pt){Jt=Jt.source||Jt,Pt=Pt||"";var Wt={replace:function(pe,se){return se=se.source||se,se=se.replace(A,"$1"),Jt=Jt.replace(pe,se),Wt},getRegex:function(){return new RegExp(Jt,Pt)}};return Wt}var S=/[^\w:]/g,E=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function C(Jt,Pt,Wt){if(Jt){var Ge;try{Ge=decodeURIComponent(g(Wt)).replace(S,"").toLowerCase()}catch(pe){return null}if(Ge.indexOf("javascript:")===0||Ge.indexOf("vbscript:")===0||Ge.indexOf("data:")===0)return null}Pt&&!E.test(Wt)&&(Wt=I(Pt,Wt));try{Wt=encodeURI(Wt).replace(/%25/g,"%")}catch(pe){return null}return Wt}var _={},T=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,O=/^([^:]+:\/*[^/]*)[\s\S]*$/;function I(Jt,Pt){_[" "+Jt]||(T.test(Jt)?_[" "+Jt]=Jt+"/":_[" "+Jt]=P(Jt,"/",!0)),Jt=_[" "+Jt];var Wt=Jt.indexOf(":")===-1;return Pt.substring(0,2)==="//"?Wt?Pt:Jt.replace(w,"$1")+Pt:Pt.charAt(0)==="/"?Wt?Pt:Jt.replace(O,"$1")+Pt:Jt+Pt}var R={exec:function(){}};function M(Jt){for(var Pt=1,Wt,Ge;Pt<arguments.length;Pt++){Wt=arguments[Pt];for(Ge in Wt)Object.prototype.hasOwnProperty.call(Wt,Ge)&&(Jt[Ge]=Wt[Ge])}return Jt}function B(Jt,Pt){var Wt=Jt.replace(/\|/g,function(se,lt,qe){for(var me=!1,Ht=lt;--Ht>=0&&qe[Ht]==="\\";)me=!me;return me?"|":" |"}),Ge=Wt.split(/ \|/),pe=0;if(Ge.length>Pt)Ge.splice(Pt);else for(;Ge.length<Pt;)Ge.push("");for(;pe<Ge.length;pe++)Ge[pe]=Ge[pe].trim().replace(/\\\|/g,"|");return Ge}function P(Jt,Pt,Wt){var Ge=Jt.length;if(Ge===0)return"";for(var pe=0;pe<Ge;){var se=Jt.charAt(Ge-pe-1);if(se===Pt&&!Wt)pe++;else if(se!==Pt&&Wt)pe++;else break}return Jt.substr(0,Ge-pe)}function X(Jt,Pt){if(Jt.indexOf(Pt[1])===-1)return-1;for(var Wt=Jt.length,Ge=0,pe=0;pe<Wt;pe++)if(Jt[pe]==="\\")pe++;else if(Jt[pe]===Pt[0])Ge++;else if(Jt[pe]===Pt[1]&&(Ge--,Ge<0))return pe;return-1}function F(Jt){Jt&&Jt.sanitize&&!Jt.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:R,merge:M,splitCells:B,rtrim:P,findClosingBracket:X,checkSanitizeDeprecation:F},K=d.defaults,z=j.rtrim,V=j.splitCells,Q=j.escape,G=j.findClosingBracket;function te(Jt,Pt,Wt){var Ge=Pt.href,pe=Pt.title?Q(Pt.title):null,se=Jt[1].replace(/\\([\[\]])/g,"$1");return Jt[0].charAt(0)!=="!"?{type:"link",raw:Wt,href:Ge,title:pe,text:se}:{type:"image",raw:Wt,href:Ge,title:pe,text:Q(se)}}function q(Jt,Pt){var Wt=Jt.match(/^(\s+)(?:```)/);if(Wt===null)return Pt;var Ge=Wt[1];return Pt.split(`
`).map(function(pe){var se=pe.match(/^\s+/);if(se===null)return pe;var lt=se[0];return lt.length>=Ge.length?pe.slice(Ge.length):pe}).join(`
`)}var le=function(){function Jt(Wt){this.options=Wt||K}var Pt=Jt.prototype;return Pt.space=function(Ge){var pe=this.rules.block.newline.exec(Ge);if(pe)return pe[0].length>1?{type:"space",raw:pe[0]}:{raw:`
`}},Pt.code=function(Ge,pe){var se=this.rules.block.code.exec(Ge);if(se){var lt=pe[pe.length-1];if(lt&&lt.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,`
`)}}},Pt.fences=function(Ge){var pe=this.rules.block.fences.exec(Ge);if(pe){var se=pe[0],lt=q(se,pe[3]||"");return{type:"code",raw:se,lang:pe[2]?pe[2].trim():pe[2],text:lt}}},Pt.heading=function(Ge){var pe=this.rules.block.heading.exec(Ge);if(pe)return{type:"heading",raw:pe[0],depth:pe[1].length,text:pe[2]}},Pt.nptable=function(Ge){var pe=this.rules.block.nptable.exec(Ge);if(pe){var se={type:"table",header:V(pe[1].replace(/^ *| *\| *$/g,"")),align:pe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pe[3]?pe[3].replace(/\n$/,"").split(`
`):[],raw:pe[0]};if(se.header.length===se.align.length){var lt=se.align.length,qe;for(qe=0;qe<lt;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(lt=se.cells.length,qe=0;qe<lt;qe++)se.cells[qe]=V(se.cells[qe],se.header.length);return se}}},Pt.hr=function(Ge){var pe=this.rules.block.hr.exec(Ge);if(pe)return{type:"hr",raw:pe[0]}},Pt.blockquote=function(Ge){var pe=this.rules.block.blockquote.exec(Ge);if(pe){var se=pe[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:pe[0],text:se}}},Pt.list=function(Ge){var pe=this.rules.block.list.exec(Ge);if(pe){for(var se=pe[0],lt=pe[2],qe=lt.length>1,me=lt[lt.length-1]===")",Ht={type:"list",raw:se,ordered:qe,start:qe?+lt.slice(0,-1):"",loose:!1,items:[]},yr=pe[0].match(this.rules.block.item),At=!1,rr,ur,vn,Bt,sr,Yt,pt,it=yr.length,Fr=0;Fr<it;Fr++)rr=yr[Fr],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"),"")),Fr!==it-1&&(vn=this.rules.block.bullet.exec(yr[Fr+1])[0],(qe?vn.length===1||!me&&vn[vn.length-1]===")":vn.length>1||this.options.smartLists&&vn!==lt)&&(Bt=yr.slice(Fr+1).join(`
`),Ht.raw=Ht.raw.substring(0,Ht.raw.length-Bt.length),Fr=it-1)),sr=At||/\n\n(?!\s*$)/.test(rr),Fr!==it-1&&(At=rr.charAt(rr.length-1)===`
`,sr||(sr=At)),sr&&(Ht.loose=!0),Yt=/^\[[ xX]\] /.test(rr),pt=void 0,Yt&&(pt=rr[1]!==" ",rr=rr.replace(/^\[[ xX]\] +/,"")),Ht.items.push({type:"list_item",raw:se,task:Yt,checked:pt,loose:sr,text:rr});return Ht}},Pt.html=function(Ge){var pe=this.rules.block.html.exec(Ge);if(pe)return{type:this.options.sanitize?"paragraph":"html",raw:pe[0],pre:!this.options.sanitizer&&(pe[1]==="pre"||pe[1]==="script"||pe[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(pe[0]):Q(pe[0]):pe[0]}},Pt.def=function(Ge){var pe=this.rules.block.def.exec(Ge);if(pe){pe[3]&&(pe[3]=pe[3].substring(1,pe[3].length-1));var se=pe[1].toLowerCase().replace(/\s+/g," ");return{tag:se,raw:pe[0],href:pe[2],title:pe[3]}}},Pt.table=function(Ge){var pe=this.rules.block.table.exec(Ge);if(pe){var se={type:"table",header:V(pe[1].replace(/^ *| *\| *$/g,"")),align:pe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pe[3]?pe[3].replace(/\n$/,"").split(`
`):[]};if(se.header.length===se.align.length){se.raw=pe[0];var lt=se.align.length,qe;for(qe=0;qe<lt;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(lt=se.cells.length,qe=0;qe<lt;qe++)se.cells[qe]=V(se.cells[qe].replace(/^ *\| *| *\| *$/g,""),se.header.length);return se}}},Pt.lheading=function(Ge){var pe=this.rules.block.lheading.exec(Ge);if(pe)return{type:"heading",raw:pe[0],depth:pe[2].charAt(0)==="="?1:2,text:pe[1]}},Pt.paragraph=function(Ge){var pe=this.rules.block.paragraph.exec(Ge);if(pe)return{type:"paragraph",raw:pe[0],text:pe[1].charAt(pe[1].length-1)===`
`?pe[1].slice(0,-1):pe[1]}},Pt.text=function(Ge,pe){var se=this.rules.block.text.exec(Ge);if(se){var lt=pe[pe.length-1];return lt&&lt.type==="text"?{raw:se[0],text:se[0]}:{type:"text",raw:se[0],text:se[0]}}},Pt.escape=function(Ge){var pe=this.rules.inline.escape.exec(Ge);if(pe)return{type:"escape",raw:pe[0],text:Q(pe[1])}},Pt.tag=function(Ge,pe,se){var lt=this.rules.inline.tag.exec(Ge);if(lt)return!pe&&/^<a /i.test(lt[0])?pe=!0:pe&&/^<\/a>/i.test(lt[0])&&(pe=!1),!se&&/^<(pre|code|kbd|script)(\s|>)/i.test(lt[0])?se=!0:se&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(lt[0])&&(se=!1),{type:this.options.sanitize?"text":"html",raw:lt[0],inLink:pe,inRawBlock:se,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(lt[0]):Q(lt[0]):lt[0]}},Pt.link=function(Ge){var pe=this.rules.inline.link.exec(Ge);if(pe){var se=G(pe[2],"()");if(se>-1){var lt=pe[0].indexOf("!")===0?5:4,qe=lt+pe[1].length+se;pe[2]=pe[2].substring(0,se),pe[0]=pe[0].substring(0,qe).trim(),pe[3]=""}var me=pe[2],Ht="";if(this.options.pedantic){var yr=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(me);yr?(me=yr[1],Ht=yr[3]):Ht=""}else Ht=pe[3]?pe[3].slice(1,-1):"";me=me.trim().replace(/^<([\s\S]*)>$/,"$1");var At=te(pe,{href:me&&me.replace(this.rules.inline._escapes,"$1"),title:Ht&&Ht.replace(this.rules.inline._escapes,"$1")},pe[0]);return At}},Pt.reflink=function(Ge,pe){var se;if((se=this.rules.inline.reflink.exec(Ge))||(se=this.rules.inline.nolink.exec(Ge))){var lt=(se[2]||se[1]).replace(/\s+/g," ");if(lt=pe[lt.toLowerCase()],!lt||!lt.href){var qe=se[0].charAt(0);return{type:"text",raw:qe,text:qe}}var me=te(se,lt,se[0]);return me}},Pt.strong=function(Ge,pe,se){se===void 0&&(se="");var lt=this.rules.inline.strong.start.exec(Ge);if(lt&&(!lt[1]||lt[1]&&(se===""||this.rules.inline.punctuation.exec(se)))){pe=pe.slice(-1*Ge.length);var qe=lt[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;qe.lastIndex=0;for(var me;(lt=qe.exec(pe))!=null;)if(me=this.rules.inline.strong.middle.exec(pe.slice(0,lt.index+3)),me)return{type:"strong",raw:Ge.slice(0,me[0].length),text:Ge.slice(2,me[0].length-2)}}},Pt.em=function(Ge,pe,se){se===void 0&&(se="");var lt=this.rules.inline.em.start.exec(Ge);if(lt&&(!lt[1]||lt[1]&&(se===""||this.rules.inline.punctuation.exec(se)))){pe=pe.slice(-1*Ge.length);var qe=lt[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;qe.lastIndex=0;for(var me;(lt=qe.exec(pe))!=null;)if(me=this.rules.inline.em.middle.exec(pe.slice(0,lt.index+2)),me)return{type:"em",raw:Ge.slice(0,me[0].length),text:Ge.slice(1,me[0].length-1)}}},Pt.codespan=function(Ge){var pe=this.rules.inline.code.exec(Ge);if(pe){var se=pe[2].replace(/\n/g," "),lt=/[^ ]/.test(se),qe=se.startsWith(" ")&&se.endsWith(" ");return lt&&qe&&(se=se.substring(1,se.length-1)),se=Q(se,!0),{type:"codespan",raw:pe[0],text:se}}},Pt.br=function(Ge){var pe=this.rules.inline.br.exec(Ge);if(pe)return{type:"br",raw:pe[0]}},Pt.del=function(Ge){var pe=this.rules.inline.del.exec(Ge);if(pe)return{type:"del",raw:pe[0],text:pe[1]}},Pt.autolink=function(Ge,pe){var se=this.rules.inline.autolink.exec(Ge);if(se){var lt,qe;return se[2]==="@"?(lt=Q(this.options.mangle?pe(se[1]):se[1]),qe="mailto:"+lt):(lt=Q(se[1]),qe=lt),{type:"link",raw:se[0],text:lt,href:qe,tokens:[{type:"text",raw:lt,text:lt}]}}},Pt.url=function(Ge,pe){var se;if(se=this.rules.inline.url.exec(Ge)){var lt,qe;if(se[2]==="@")lt=Q(this.options.mangle?pe(se[0]):se[0]),qe="mailto:"+lt;else{var me;do me=se[0],se[0]=this.rules.inline._backpedal.exec(se[0])[0];while(me!==se[0]);lt=Q(se[0]),se[1]==="www."?qe="http://"+lt:qe=lt}return{type:"link",raw:se[0],text:lt,href:qe,tokens:[{type:"text",raw:lt,text:lt}]}}},Pt.inlineText=function(Ge,pe,se){var lt=this.rules.inline.text.exec(Ge);if(lt){var qe;return pe?qe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(lt[0]):Q(lt[0]):lt[0]:qe=Q(this.options.smartypants?se(lt[0]):lt[0]),{type:"text",raw:lt[0],text:qe}}},Jt}(),re=j.noopTest,we=j.edit,Ie=j.merge,Me={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:re,table:re,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Me._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Me._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Me.def=we(Me.def).replace("label",Me._label).replace("title",Me._title).getRegex(),Me.bullet=/(?:[*+-]|\d{1,9}[.)])/,Me.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Me.item=we(Me.item,"gm").replace(/bull/g,Me.bullet).getRegex(),Me.list=we(Me.list).replace(/bull/g,Me.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Me.def.source+")").getRegex(),Me._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Me._comment=/<!--(?!-?>)[\s\S]*?-->/,Me.html=we(Me.html,"i").replace("comment",Me._comment).replace("tag",Me._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Me.paragraph=we(Me._paragraph).replace("hr",Me.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Me._tag).getRegex(),Me.blockquote=we(Me.blockquote).replace("paragraph",Me.paragraph).getRegex(),Me.normal=Ie({},Me),Me.gfm=Ie({},Me.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Me.gfm.nptable=we(Me.gfm.nptable).replace("hr",Me.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Me._tag).getRegex(),Me.gfm.table=we(Me.gfm.table).replace("hr",Me.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Me._tag).getRegex(),Me.pedantic=Ie({},Me.normal,{html:we(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Me._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:re,paragraph:we(Me.normal._paragraph).replace("hr",Me.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Me.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var 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=we(Je.punctuation).replace(/punctuation/g,Je._punctuation).getRegex(),Je._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Je._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Je.em.start=we(Je.em.start).replace(/punctuation/g,Je._punctuation).getRegex(),Je.em.middle=we(Je.em.middle).replace(/punctuation/g,Je._punctuation).replace(/overlapSkip/g,Je._overlapSkip).getRegex(),Je.em.endAst=we(Je.em.endAst,"g").replace(/punctuation/g,Je._punctuation).getRegex(),Je.em.endUnd=we(Je.em.endUnd,"g").replace(/punctuation/g,Je._punctuation).getRegex(),Je.strong.start=we(Je.strong.start).replace(/punctuation/g,Je._punctuation).getRegex(),Je.strong.middle=we(Je.strong.middle).replace(/punctuation/g,Je._punctuation).replace(/blockSkip/g,Je._blockSkip).getRegex(),Je.strong.endAst=we(Je.strong.endAst,"g").replace(/punctuation/g,Je._punctuation).getRegex(),Je.strong.endUnd=we(Je.strong.endUnd,"g").replace(/punctuation/g,Je._punctuation).getRegex(),Je.blockSkip=we(Je._blockSkip,"g").getRegex(),Je.overlapSkip=we(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=we(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=we(Je.tag).replace("comment",Me._comment).replace("attribute",Je._attribute).getRegex(),Je._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Je._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Je._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Je.link=we(Je.link).replace("label",Je._label).replace("href",Je._href).replace("title",Je._title).getRegex(),Je.reflink=we(Je.reflink).replace("label",Je._label).getRegex(),Je.reflinkSearch=we(Je.reflinkSearch,"g").replace("reflink",Je.reflink).replace("nolink",Je.nolink).getRegex(),Je.normal=Ie({},Je),Je.pedantic=Ie({},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:we(/^!?\[(label)\]\((.*?)\)/).replace("label",Je._label).getRegex(),reflink:we(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Je._label).getRegex()}),Je.gfm=Ie({},Je.normal,{escape:we(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=we(Je.gfm.url,"i").replace("email",Je.gfm._extended_email).getRegex(),Je.breaks=Ie({},Je.gfm,{br:we(Je.br).replace("{2,}","*").getRegex(),text:we(Je.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Ve={block:Me,inline:Je},ut=d.defaults,Fe=Ve.block,ae=Ve.inline;function at(Jt){return Jt.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function he(Jt){var Pt="",Wt,Ge,pe=Jt.length;for(Wt=0;Wt<pe;Wt++)Ge=Jt.charCodeAt(Wt),Math.random()>.5&&(Ge="x"+Ge.toString(16)),Pt+="&#"+Ge+";";return Pt}var J=function(){function Jt(Wt){this.tokens=[],this.tokens.links=Object.create(null),this.options=Wt||ut,this.options.tokenizer=this.options.tokenizer||new le,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ge={block:Fe.normal,inline:ae.normal};this.options.pedantic?(Ge.block=Fe.pedantic,Ge.inline=ae.pedantic):this.options.gfm&&(Ge.block=Fe.gfm,this.options.breaks?Ge.inline=ae.breaks:Ge.inline=ae.gfm),this.tokenizer.rules=Ge}Jt.lex=function(Ge,pe){var se=new Jt(pe);return se.lex(Ge)};var Pt=Jt.prototype;return Pt.lex=function(Ge){return Ge=Ge.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Ge,this.tokens,!0),this.inline(this.tokens),this.tokens},Pt.blockTokens=function(Ge,pe,se){pe===void 0&&(pe=[]),se===void 0&&(se=!0),Ge=Ge.replace(/^ +$/gm,"");for(var lt,qe,me,Ht;Ge;){if(lt=this.tokenizer.space(Ge)){Ge=Ge.substring(lt.raw.length),lt.type&&pe.push(lt);continue}if(lt=this.tokenizer.code(Ge,pe)){Ge=Ge.substring(lt.raw.length),lt.type?pe.push(lt):(Ht=pe[pe.length-1],Ht.raw+=`
`+lt.raw,Ht.text+=`
`+lt.text);continue}if(lt=this.tokenizer.fences(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.heading(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.nptable(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.hr(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.blockquote(Ge)){Ge=Ge.substring(lt.raw.length),lt.tokens=this.blockTokens(lt.text,[],se),pe.push(lt);continue}if(lt=this.tokenizer.list(Ge)){for(Ge=Ge.substring(lt.raw.length),me=lt.items.length,qe=0;qe<me;qe++)lt.items[qe].tokens=this.blockTokens(lt.items[qe].text,[],!1);pe.push(lt);continue}if(lt=this.tokenizer.html(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(se&&(lt=this.tokenizer.def(Ge))){Ge=Ge.substring(lt.raw.length),this.tokens.links[lt.tag]||(this.tokens.links[lt.tag]={href:lt.href,title:lt.title});continue}if(lt=this.tokenizer.table(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.lheading(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(se&&(lt=this.tokenizer.paragraph(Ge))){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.text(Ge,pe)){Ge=Ge.substring(lt.raw.length),lt.type?pe.push(lt):(Ht=pe[pe.length-1],Ht.raw+=`
`+lt.raw,Ht.text+=`
`+lt.text);continue}if(Ge){var yr="Infinite loop on byte: "+Ge.charCodeAt(0);if(this.options.silent){console.error(yr);break}else throw new Error(yr)}}return pe},Pt.inline=function(Ge){var pe,se,lt,qe,me,Ht,yr=Ge.length;for(pe=0;pe<yr;pe++){Ht=Ge[pe];switch(Ht.type){case"paragraph":case"text":case"heading":{Ht.tokens=[],this.inlineTokens(Ht.text,Ht.tokens);break}case"table":{for(Ht.tokens={header:[],cells:[]},qe=Ht.header.length,se=0;se<qe;se++)Ht.tokens.header[se]=[],this.inlineTokens(Ht.header[se],Ht.tokens.header[se]);for(qe=Ht.cells.length,se=0;se<qe;se++)for(me=Ht.cells[se],Ht.tokens.cells[se]=[],lt=0;lt<me.length;lt++)Ht.tokens.cells[se][lt]=[],this.inlineTokens(me[lt],Ht.tokens.cells[se][lt]);break}case"blockquote":{this.inline(Ht.tokens);break}case"list":{for(qe=Ht.items.length,se=0;se<qe;se++)this.inline(Ht.items[se].tokens);break}}}return Ge},Pt.inlineTokens=function(Ge,pe,se,lt,qe){pe===void 0&&(pe=[]),se===void 0&&(se=!1),lt===void 0&&(lt=!1),qe===void 0&&(qe="");var me,Ht=Ge,yr;if(this.tokens.links){var At=Object.keys(this.tokens.links);if(At.length>0)for(;(yr=this.tokenizer.rules.inline.reflinkSearch.exec(Ht))!=null;)At.includes(yr[0].slice(yr[0].lastIndexOf("[")+1,-1))&&(Ht=Ht.slice(0,yr.index)+"["+"a".repeat(yr[0].length-2)+"]"+Ht.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(yr=this.tokenizer.rules.inline.blockSkip.exec(Ht))!=null;)Ht=Ht.slice(0,yr.index)+"["+"a".repeat(yr[0].length-2)+"]"+Ht.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ge;){if(me=this.tokenizer.escape(Ge)){Ge=Ge.substring(me.raw.length),pe.push(me);continue}if(me=this.tokenizer.tag(Ge,se,lt)){Ge=Ge.substring(me.raw.length),se=me.inLink,lt=me.inRawBlock,pe.push(me);continue}if(me=this.tokenizer.link(Ge)){Ge=Ge.substring(me.raw.length),me.type==="link"&&(me.tokens=this.inlineTokens(me.text,[],!0,lt)),pe.push(me);continue}if(me=this.tokenizer.reflink(Ge,this.tokens.links)){Ge=Ge.substring(me.raw.length),me.type==="link"&&(me.tokens=this.inlineTokens(me.text,[],!0,lt)),pe.push(me);continue}if(me=this.tokenizer.strong(Ge,Ht,qe)){Ge=Ge.substring(me.raw.length),me.tokens=this.inlineTokens(me.text,[],se,lt),pe.push(me);continue}if(me=this.tokenizer.em(Ge,Ht,qe)){Ge=Ge.substring(me.raw.length),me.tokens=this.inlineTokens(me.text,[],se,lt),pe.push(me);continue}if(me=this.tokenizer.codespan(Ge)){Ge=Ge.substring(me.raw.length),pe.push(me);continue}if(me=this.tokenizer.br(Ge)){Ge=Ge.substring(me.raw.length),pe.push(me);continue}if(me=this.tokenizer.del(Ge)){Ge=Ge.substring(me.raw.length),me.tokens=this.inlineTokens(me.text,[],se,lt),pe.push(me);continue}if(me=this.tokenizer.autolink(Ge,he)){Ge=Ge.substring(me.raw.length),pe.push(me);continue}if(!se&&(me=this.tokenizer.url(Ge,he))){Ge=Ge.substring(me.raw.length),pe.push(me);continue}if(me=this.tokenizer.inlineText(Ge,lt,at)){Ge=Ge.substring(me.raw.length),qe=me.raw.slice(-1),pe.push(me);continue}if(Ge){var rr="Infinite loop on byte: "+Ge.charCodeAt(0);if(this.options.silent){console.error(rr);break}else throw new Error(rr)}}return pe},p(Jt,null,[{key:"rules",get:function(){return{block:Fe,inline:ae}}}]),Jt}(),Y=d.defaults,$=j.cleanUrl,de=j.escape,be=function(){function Jt(Wt){this.options=Wt||Y}var Pt=Jt.prototype;return Pt.code=function(Ge,pe,se){var lt=(pe||"").match(/\S*/)[0];if(this.options.highlight){var qe=this.options.highlight(Ge,lt);qe!=null&&qe!==Ge&&(se=!0,Ge=qe)}return lt?'<pre><code class="'+this.options.langPrefix+de(lt,!0)+'">'+(se?Ge:de(Ge,!0))+`</code></pre>
`:"<pre><code>"+(se?Ge:de(Ge,!0))+`</code></pre>
`},Pt.blockquote=function(Ge){return`<blockquote>
`+Ge+`</blockquote>
`},Pt.html=function(Ge){return Ge},Pt.heading=function(Ge,pe,se,lt){return this.options.headerIds?"<h"+pe+' id="'+this.options.headerPrefix+lt.slug(se)+'">'+Ge+"</h"+pe+`>
`:"<h"+pe+">"+Ge+"</h"+pe+`>
`},Pt.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Pt.list=function(Ge,pe,se){var lt=pe?"ol":"ul",qe=pe&&se!==1?' start="'+se+'"':"";return"<"+lt+qe+`>
`+Ge+"</"+lt+`>
`},Pt.listitem=function(Ge){return"<li>"+Ge+`</li>
`},Pt.checkbox=function(Ge){return"<input "+(Ge?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Pt.paragraph=function(Ge){return"<p>"+Ge+`</p>
`},Pt.table=function(Ge,pe){return pe&&(pe="<tbody>"+pe+"</tbody>"),`<table>
<thead>
`+Ge+`</thead>
`+pe+`</table>
`},Pt.tablerow=function(Ge){return`<tr>
`+Ge+`</tr>
`},Pt.tablecell=function(Ge,pe){var se=pe.header?"th":"td",lt=pe.align?"<"+se+' align="'+pe.align+'">':"<"+se+">";return lt+Ge+"</"+se+`>
`},Pt.strong=function(Ge){return"<strong>"+Ge+"</strong>"},Pt.em=function(Ge){return"<em>"+Ge+"</em>"},Pt.codespan=function(Ge){return"<code>"+Ge+"</code>"},Pt.br=function(){return this.options.xhtml?"<br/>":"<br>"},Pt.del=function(Ge){return"<del>"+Ge+"</del>"},Pt.link=function(Ge,pe,se){if(Ge=$(this.options.sanitize,this.options.baseUrl,Ge),Ge===null)return se;var lt='<a href="'+de(Ge)+'"';return pe&&(lt+=' title="'+pe+'"'),lt+=">"+se+"</a>",lt},Pt.image=function(Ge,pe,se){if(Ge=$(this.options.sanitize,this.options.baseUrl,Ge),Ge===null)return se;var lt='<img src="'+Ge+'" alt="'+se+'"';return pe&&(lt+=' title="'+pe+'"'),lt+=this.options.xhtml?"/>":">",lt},Pt.text=function(Ge){return Ge},Jt}(),Ce=function(){function Jt(){}var Pt=Jt.prototype;return Pt.strong=function(Ge){return Ge},Pt.em=function(Ge){return Ge},Pt.codespan=function(Ge){return Ge},Pt.del=function(Ge){return Ge},Pt.html=function(Ge){return Ge},Pt.text=function(Ge){return Ge},Pt.link=function(Ge,pe,se){return""+se},Pt.image=function(Ge,pe,se){return""+se},Pt.br=function(){return""},Jt}(),Be=function(){function Jt(){this.seen={}}var Pt=Jt.prototype;return Pt.slug=function(Ge){var pe=Ge.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(pe)){var se=pe;do this.seen[se]++,pe=se+"-"+this.seen[se];while(this.seen.hasOwnProperty(pe))}return this.seen[pe]=0,pe},Jt}(),fe=d.defaults,Se=j.unescape,ke=function(){function Jt(Wt){this.options=Wt||fe,this.options.renderer=this.options.renderer||new be,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ce,this.slugger=new Be}Jt.parse=function(Ge,pe){var se=new Jt(pe);return se.parse(Ge)};var Pt=Jt.prototype;return Pt.parse=function(Ge,pe){pe===void 0&&(pe=!0);var se="",lt,qe,me,Ht,yr,At,rr,ur,vn,Bt,sr,Yt,pt,it,Fr,cn,_n,Kn,gi=Ge.length;for(lt=0;lt<gi;lt++){Bt=Ge[lt];switch(Bt.type){case"space":continue;case"hr":{se+=this.renderer.hr();continue}case"heading":{se+=this.renderer.heading(this.parseInline(Bt.tokens),Bt.depth,Se(this.parseInline(Bt.tokens,this.textRenderer)),this.slugger);continue}case"code":{se+=this.renderer.code(Bt.text,Bt.lang,Bt.escaped);continue}case"table":{for(ur="",rr="",Ht=Bt.header.length,qe=0;qe<Ht;qe++)rr+=this.renderer.tablecell(this.parseInline(Bt.tokens.header[qe]),{header:!0,align:Bt.align[qe]});for(ur+=this.renderer.tablerow(rr),vn="",Ht=Bt.cells.length,qe=0;qe<Ht;qe++){for(At=Bt.tokens.cells[qe],rr="",yr=At.length,me=0;me<yr;me++)rr+=this.renderer.tablecell(this.parseInline(At[me]),{header:!1,align:Bt.align[me]});vn+=this.renderer.tablerow(rr)}se+=this.renderer.table(ur,vn);continue}case"blockquote":{vn=this.parse(Bt.tokens),se+=this.renderer.blockquote(vn);continue}case"list":{for(sr=Bt.ordered,Yt=Bt.start,pt=Bt.loose,Ht=Bt.items.length,vn="",qe=0;qe<Ht;qe++)Fr=Bt.items[qe],cn=Fr.checked,_n=Fr.task,it="",Fr.task&&(Kn=this.renderer.checkbox(cn),pt?Fr.tokens.length>0&&Fr.tokens[0].type==="text"?(Fr.tokens[0].text=Kn+" "+Fr.tokens[0].text,Fr.tokens[0].tokens&&Fr.tokens[0].tokens.length>0&&Fr.tokens[0].tokens[0].type==="text"&&(Fr.tokens[0].tokens[0].text=Kn+" "+Fr.tokens[0].tokens[0].text)):Fr.tokens.unshift({type:"text",text:Kn}):it+=Kn),it+=this.parse(Fr.tokens,pt),vn+=this.renderer.listitem(it,_n,cn);se+=this.renderer.list(vn,sr,Yt);continue}case"html":{se+=this.renderer.html(Bt.text);continue}case"paragraph":{se+=this.renderer.paragraph(this.parseInline(Bt.tokens));continue}case"text":{for(vn=Bt.tokens?this.parseInline(Bt.tokens):Bt.text;lt+1<gi&&Ge[lt+1].type==="text";)Bt=Ge[++lt],vn+=`
`+(Bt.tokens?this.parseInline(Bt.tokens):Bt.text);se+=pe?this.renderer.paragraph(vn):vn;continue}default:{var Mn='Token with "'+Bt.type+'" type was not found.';if(this.options.silent){console.error(Mn);return}else throw new Error(Mn)}}}return se},Pt.parseInline=function(Ge,pe){pe=pe||this.renderer;var se="",lt,qe,me=Ge.length;for(lt=0;lt<me;lt++){qe=Ge[lt];switch(qe.type){case"escape":{se+=pe.text(qe.text);break}case"html":{se+=pe.html(qe.text);break}case"link":{se+=pe.link(qe.href,qe.title,this.parseInline(qe.tokens,pe));break}case"image":{se+=pe.image(qe.href,qe.title,qe.text);break}case"strong":{se+=pe.strong(this.parseInline(qe.tokens,pe));break}case"em":{se+=pe.em(this.parseInline(qe.tokens,pe));break}case"codespan":{se+=pe.codespan(qe.text);break}case"br":{se+=pe.br();break}case"del":{se+=pe.del(this.parseInline(qe.tokens,pe));break}case"text":{se+=pe.text(qe.text);break}default:{var Ht='Token with "'+qe.type+'" type was not found.';if(this.options.silent){console.error(Ht);return}else throw new Error(Ht)}}}return se},Jt}(),rt=j.merge,xt=j.checkSanitizeDeprecation,ht=j.escape,He=d.getDefaults,ir=d.changeDefaults,ct=d.defaults;function Xt(Jt,Pt,Wt){if(typeof Jt=="undefined"||Jt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Jt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Jt)+", string expected");if(typeof Pt=="function"&&(Wt=Pt,Pt=null),Pt=rt({},Xt.defaults,Pt||{}),xt(Pt),Wt){var Ge=Pt.highlight,pe;try{pe=J.lex(Jt,Pt)}catch(me){return Wt(me)}var se=function(Ht){var yr;if(!Ht)try{yr=ke.parse(pe,Pt)}catch(At){Ht=At}return Pt.highlight=Ge,Ht?Wt(Ht):Wt(null,yr)};if(!Ge||Ge.length<3)return se();if(delete Pt.highlight,!pe.length)return se();var lt=0;Xt.walkTokens(pe,function(me){me.type==="code"&&(lt++,setTimeout(function(){Ge(me.text,me.lang,function(Ht,yr){if(Ht)return se(Ht);yr!=null&&yr!==me.text&&(me.text=yr,me.escaped=!0),lt--,lt===0&&se()})},0))}),lt===0&&se();return}try{var qe=J.lex(Jt,Pt);return Pt.walkTokens&&Xt.walkTokens(qe,Pt.walkTokens),ke.parse(qe,Pt)}catch(me){if(me.message+=`
Please report this to https://github.com/markedjs/marked.`,Pt.silent)return"<p>An error occurred:</p><pre>"+ht(me.message+"",!0)+"</pre>";throw me}}Xt.options=Xt.setOptions=function(Jt){return rt(Xt.defaults,Jt),ir(Xt.defaults),Xt},Xt.getDefaults=He,Xt.defaults=ct,Xt.use=function(Jt){var Pt=rt({},Jt);if(Jt.renderer&&function(){var Ge=Xt.defaults.renderer||new be,pe=function(qe){var me=Ge[qe];Ge[qe]=function(){for(var Ht=arguments.length,yr=new Array(Ht),At=0;At<Ht;At++)yr[At]=arguments[At];var rr=Jt.renderer[qe].apply(Ge,yr);return rr===!1&&(rr=me.apply(Ge,yr)),rr}};for(var se in Jt.renderer)pe(se);Pt.renderer=Ge}(),Jt.tokenizer&&function(){var Ge=Xt.defaults.tokenizer||new le,pe=function(qe){var me=Ge[qe];Ge[qe]=function(){for(var Ht=arguments.length,yr=new Array(Ht),At=0;At<Ht;At++)yr[At]=arguments[At];var rr=Jt.tokenizer[qe].apply(Ge,yr);return rr===!1&&(rr=me.apply(Ge,yr)),rr}};for(var se in Jt.tokenizer)pe(se);Pt.tokenizer=Ge}(),Jt.walkTokens){var Wt=Xt.defaults.walkTokens;Pt.walkTokens=function(Ge){Jt.walkTokens(Ge),Wt&&Wt(Ge)}}Xt.setOptions(Pt)},Xt.walkTokens=function(Jt,Pt){for(var Wt=m(Jt),Ge;!(Ge=Wt()).done;){var pe=Ge.value;Pt(pe);switch(pe.type){case"table":{for(var se=m(pe.tokens.header),lt;!(lt=se()).done;){var qe=lt.value;Xt.walkTokens(qe,Pt)}for(var me=m(pe.tokens.cells),Ht;!(Ht=me()).done;)for(var yr=Ht.value,At=m(yr),rr;!(rr=At()).done;){var ur=rr.value;Xt.walkTokens(ur,Pt)}break}case"list":{Xt.walkTokens(pe.items,Pt);break}default:pe.tokens&&Xt.walkTokens(pe.tokens,Pt)}}},Xt.Parser=ke,Xt.parser=ke.parse,Xt.Renderer=be,Xt.TextRenderer=Ce,Xt.Lexer=J,Xt.lexer=J.lex,Xt.Tokenizer=le,Xt.Slugger=Be,Xt.parse=Xt;var hr=Xt;return hr})},"DlR+":function(k,D,n){var y=n("MFOe"),p=y.Global,x=y.trim;k.exports={name:"cookieStorage",read:m,write:d,each:f,remove:u,clearAll:o};var v=p.document;function m(t){if(!t||!i(t))return null;var s="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(v.cookie.replace(new RegExp(s),"$1"))}function f(t){for(var s=v.cookie.split(/; ?/g),e=s.length-1;e>=0;e--){if(!x(s[e]))continue;var l=s[e].split("="),r=unescape(l[0]),a=unescape(l[1]);t(a,r)}}function d(t,s){if(!t)return;v.cookie=escape(t)+"="+escape(s)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function u(t){if(!t||!i(t))return;v.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function o(){f(function(t,s){u(s)})}function i(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(v.cookie)}},Ducp:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("+TT/"),v=n("XpcN"),m=p.Group,f=["width","height"],d=["x","y"],u=v.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){u.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(){u.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(i,t,s,e,l,r,a){var c=this;u.superCall(this,"renderInner",i,t,s,e,l,r,a);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(S,E){var C=S+"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=S,h.add(_)}},layoutInner:function(i,t,s,e,l,r){var a=this.getSelectorGroup(),c=i.getOrient().index,h=f[c],g=d[c],A=f[1-c],b=d[1-c];l&&x.box("horizontal",a,i.get("selectorItemGap",!0));var S=i.get("selectorButtonGap",!0),E=a.getBoundingRect(),C=[-E.x,-E.y],_=y.clone(s);l&&(_[h]=s[h]-E[h]-S);var T=this._layoutContentAndController(i,e,_,c,h,A,b);if(l){if(r==="end")C[c]+=T[h]+S;else{var w=E[h]+S;C[c]-=w,T[g]-=w}T[h]+=E[h]+S,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]),a.attr("position",C)}return T},_layoutContentAndController:function(i,t,s,e,l,r,a){var c=this.getContentGroup(),h=this._containerGroup,g=this._controllerGroup;x.box(i.get("orient"),c,i.get("itemGap"),e?s.width:null,e?null:s.height),x.box("horizontal",g,i.get("pageButtonItemGap",!0));var A=c.getBoundingRect(),b=g.getBoundingRect(),S=this._showController=A[l]>s[l],E=[-A.x,-A.y];t||(E[e]=c.position[e]);var C=[0,0],_=[-b.x,-b.y],T=y.retrieve2(i.get("pageButtonGap",!0),i.get("itemGap",!0));if(S){var w=i.get("pageButtonPosition",!0);w==="end"?_[e]+=s[l]-b[l]:C[e]+=b[l]+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[l]=S?s[l]:A[l],O[r]=Math.max(A[r],b[r]),O[a]=Math.min(0,b[a]+_[1-e]),h.__rectSize=s[l],S){var I={x:0,y:0};I[l]=Math.max(s[l]-b[l]-T,0),I[r]=O[r],h.setClipPath(new p.Rect({shape:I})),h.__rectSize=I[l]}else g.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var R=this._getPageInfo(i);return R.pageIndex!=null&&p.updateProps(c,{position:R.contentPosition},S?i:!1),this._updatePageInfoView(i,R),O},_pageGo:function(i,t,s){var e=this._getPageInfo(t)[i];e!=null&&s.dispatchAction({type:"legendScroll",scrollDataIndex:e,legendId:t.id})},_updatePageInfoView:function(i,t){var s=this._controllerGroup;y.each(["pagePrev","pageNext"],function(h){var g=t[h+"DataIndex"]!=null,A=s.childOfName(h);A&&(A.setStyle("fill",g?i.get("pageIconColor",!0):i.get("pageIconInactiveColor",!0)),A.cursor=g?"pointer":"default")});var e=s.childOfName("pageText"),l=i.get("pageFormatter"),r=t.pageIndex,a=r!=null?r+1:0,c=t.pageCount;e&&l&&e.setStyle("text",y.isString(l)?l.replace("{current}",a).replace("{total}",c):l({current:a,total:c}))},_getPageInfo:function(i){var t=i.get("scrollDataIndex",!0),s=this.getContentGroup(),e=this._containerGroup.__rectSize,l=i.getOrient().index,r=f[l],a=d[l],c=this._findTargetItemIndex(t),h=s.children(),g=h[c],A=h.length,b=A?1:0,S={contentPosition:s.position.slice(),pageCount:b,pageIndex:b-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!g)return S;var E=O(g);S.contentPosition[l]=-E.s;for(var C=c+1,_=E,T=E,w=null;C<=A;++C)w=O(h[C]),(!w&&T.e>_.s+e||w&&!I(w,_.s))&&(T.i>_.i?_=T:_=w,_&&(S.pageNextDataIndex==null&&(S.pageNextDataIndex=_.i),++S.pageCount)),T=w;for(var C=c-1,_=E,T=E,w=null;C>=-1;--C)w=O(h[C]),(!w||!I(T,w.s))&&_.i<T.i&&(T=_,S.pagePrevDataIndex==null&&(S.pagePrevDataIndex=_.i),++S.pageCount,++S.pageIndex),_=w;return S;function O(R){if(R){var M=R.getBoundingRect(),B=M[a]+R.position[l];return{s:B,e:B+M[r],i:R.__legendDataIndex}}}function I(R,M){return R.e>=M&&R.s<=M+e}},_findTargetItemIndex:function(i){if(!this._showController)return 0;var t,s=this.getContentGroup(),e;return s.eachChild(function(l,r){var a=l.__legendDataIndex;e==null&&a!=null&&(e=r),a===i&&(t=r)}),t!=null?t:e}}),o=u;k.exports=o},"E/ki":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};D.default=y},E2g8:function(k,D,n){(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){k.exports=v()})(this,function(){"use strict";function x(be){var Ce=typeof be;return be!==null&&(Ce==="object"||Ce==="function")}function v(be){return typeof be=="function"}var m=void 0;Array.isArray?m=Array.isArray:m=function(Ce){return Object.prototype.toString.call(Ce)==="[object Array]"};var f=m,d=0,u=void 0,o=void 0,i=function(Ce,Be){E[d]=Ce,E[d+1]=Be,d+=2,d===2&&(o?o(C):T())};function t(be){o=be}function s(be){i=be}var e=typeof window!="undefined"?window:void 0,l=e||{},r=l.MutationObserver||l.WebKitMutationObserver,a=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 u!="undefined"?function(){u(C)}:S()}function A(){var be=0,Ce=new r(C),Be=document.createTextNode("");return Ce.observe(Be,{characterData:!0}),function(){Be.data=be=++be%2}}function b(){var be=new MessageChannel;return be.port1.onmessage=C,function(){return be.port2.postMessage(0)}}function S(){var be=setTimeout;return function(){return be(C,1)}}var E=new Array(1e3);function C(){for(var be=0;be<d;be+=2){var Ce=E[be],Be=E[be+1];Ce(Be),E[be]=void 0,E[be+1]=void 0}d=0}function _(){try{var be=Function("return this")().require("vertx");return u=be.runOnLoop||be.runOnContext,g()}catch(Ce){return S()}}var T=void 0;a?T=h():r?T=A():c?T=b():e===void 0&&!0?T=_():T=S();function w(be,Ce){var Be=this,fe=new this.constructor(R);fe[I]===void 0&&Ve(fe);var Se=Be._state;if(Se){var ke=arguments[Se-1];i(function(){return we(Se,fe,ke,Be._result)})}else le(Be,fe,be,Ce);return fe}function O(be){var Ce=this;if(be&&typeof be=="object"&&be.constructor===Ce)return be;var Be=new Ce(R);return Q(Be,be),Be}var I=Math.random().toString(36).substring(2);function R(){}var M=void 0,B=1,P=2;function X(){return new TypeError("You cannot resolve a promise with itself")}function F(){return new TypeError("A promises callback cannot return that same promise.")}function j(be,Ce,Be,fe){try{be.call(Ce,Be,fe)}catch(Se){return Se}}function K(be,Ce,Be){i(function(fe){var Se=!1,ke=j(Be,Ce,function(rt){if(Se)return;Se=!0,Ce!==rt?Q(fe,rt):te(fe,rt)},function(rt){if(Se)return;Se=!0,q(fe,rt)},"Settle: "+(fe._label||" unknown promise"));!Se&&ke&&(Se=!0,q(fe,ke))},be)}function z(be,Ce){Ce._state===B?te(be,Ce._result):Ce._state===P?q(be,Ce._result):le(Ce,void 0,function(Be){return Q(be,Be)},function(Be){return q(be,Be)})}function V(be,Ce,Be){Ce.constructor===be.constructor&&Be===w&&Ce.constructor.resolve===O?z(be,Ce):Be===void 0?te(be,Ce):v(Be)?K(be,Ce,Be):te(be,Ce)}function Q(be,Ce){if(be===Ce)q(be,X());else if(x(Ce)){var Be=void 0;try{Be=Ce.then}catch(fe){q(be,fe);return}V(be,Ce,Be)}else te(be,Ce)}function G(be){be._onerror&&be._onerror(be._result),re(be)}function te(be,Ce){if(be._state!==M)return;be._result=Ce,be._state=B,be._subscribers.length!==0&&i(re,be)}function q(be,Ce){if(be._state!==M)return;be._state=P,be._result=Ce,i(G,be)}function le(be,Ce,Be,fe){var Se=be._subscribers,ke=Se.length;be._onerror=null,Se[ke]=Ce,Se[ke+B]=Be,Se[ke+P]=fe,ke===0&&be._state&&i(re,be)}function re(be){var Ce=be._subscribers,Be=be._state;if(Ce.length===0)return;for(var fe=void 0,Se=void 0,ke=be._result,rt=0;rt<Ce.length;rt+=3)fe=Ce[rt],Se=Ce[rt+Be],fe?we(Be,fe,Se,ke):Se(ke);be._subscribers.length=0}function we(be,Ce,Be,fe){var Se=v(Be),ke=void 0,rt=void 0,xt=!0;if(Se){try{ke=Be(fe)}catch(ht){xt=!1,rt=ht}if(Ce===ke){q(Ce,F());return}}else ke=fe;Ce._state!==M||(Se&&xt?Q(Ce,ke):xt===!1?q(Ce,rt):be===B?te(Ce,ke):be===P&&q(Ce,ke))}function Ie(be,Ce){try{Ce(function(fe){Q(be,fe)},function(fe){q(be,fe)})}catch(Be){q(be,Be)}}var Me=0;function Je(){return Me++}function Ve(be){be[I]=Me++,be._state=void 0,be._result=void 0,be._subscribers=[]}function ut(){return new Error("Array Methods must be provided an Array")}var Fe=function(){function be(Ce,Be){this._instanceConstructor=Ce,this.promise=new Ce(R),this.promise[I]||Ve(this.promise),f(Be)?(this.length=Be.length,this._remaining=Be.length,this._result=new Array(this.length),this.length===0?te(this.promise,this._result):(this.length=this.length||0,this._enumerate(Be),this._remaining===0&&te(this.promise,this._result))):q(this.promise,ut())}return be.prototype._enumerate=function(Be){for(var fe=0;this._state===M&&fe<Be.length;fe++)this._eachEntry(Be[fe],fe)},be.prototype._eachEntry=function(Be,fe){var Se=this._instanceConstructor,ke=Se.resolve;if(ke===O){var rt=void 0,xt=void 0,ht=!1;try{rt=Be.then}catch(ir){ht=!0,xt=ir}if(rt===w&&Be._state!==M)this._settledAt(Be._state,fe,Be._result);else if(typeof rt!="function")this._remaining--,this._result[fe]=Be;else if(Se===$){var He=new Se(R);ht?q(He,xt):V(He,Be,rt),this._willSettleAt(He,fe)}else this._willSettleAt(new Se(function(ir){return ir(Be)}),fe)}else this._willSettleAt(ke(Be),fe)},be.prototype._settledAt=function(Be,fe,Se){var ke=this.promise;ke._state===M&&(this._remaining--,Be===P?q(ke,Se):this._result[fe]=Se),this._remaining===0&&te(ke,this._result)},be.prototype._willSettleAt=function(Be,fe){var Se=this;le(Be,void 0,function(ke){return Se._settledAt(B,fe,ke)},function(ke){return Se._settledAt(P,fe,ke)})},be}();function ae(be){return new Fe(this,be).promise}function at(be){var Ce=this;return f(be)?new Ce(function(Be,fe){for(var Se=be.length,ke=0;ke<Se;ke++)Ce.resolve(be[ke]).then(Be,fe)}):new Ce(function(Be,fe){return fe(new TypeError("You must pass an array to race."))})}function he(be){var Ce=this,Be=new Ce(R);return q(Be,be),Be}function J(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Y(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var $=function(){function be(Ce){this[I]=Je(),this._result=this._state=void 0,this._subscribers=[],R!==Ce&&(typeof Ce!="function"&&J(),this instanceof be?Ie(this,Ce):Y())}return be.prototype.catch=function(Be){return this.then(null,Be)},be.prototype.finally=function(Be){var fe=this,Se=fe.constructor;return v(Be)?fe.then(function(ke){return Se.resolve(Be()).then(function(){return ke})},function(ke){return Se.resolve(Be()).then(function(){throw ke})}):fe.then(Be,Be)},be}();$.prototype.then=w,$.all=ae,$.race=at,$.resolve=O,$.reject=he,$._setScheduler=t,$._setAsap=s,$._asap=i;function de(){var be=void 0;if(typeof p!="undefined")be=p;else if(typeof self!="undefined")be=self;else try{be=Function("return this")()}catch(fe){throw new Error("polyfill failed because global object is unavailable in this environment")}var Ce=be.Promise;if(Ce){var Be=null;try{Be=Object.prototype.toString.call(Ce.resolve())}catch(fe){}if(Be==="[object Promise]"&&!Ce.cast)return}be.Promise=$}return $.polyfill=de,$.Promise=$,$})}).call(this,n("Q2Ig"),n("yLpj"))},E2jh:function(k,D,n){var y=n("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}k.exports=x},E4JC:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.StreamCipher,m=p.algo,f=[],d=[],u=[],o=m.Rabbit=v.extend({_doReset:function(){for(var s=this._key.words,e=this.cfg.iv,l=0;l<4;l++)s[l]=(s[l]<<8|s[l]>>>24)&16711935|(s[l]<<24|s[l]>>>8)&4278255360;var r=this._X=[s[0],s[3]<<16|s[2]>>>16,s[1],s[0]<<16|s[3]>>>16,s[2],s[1]<<16|s[0]>>>16,s[3],s[2]<<16|s[1]>>>16],a=this._C=[s[2]<<16|s[2]>>>16,s[0]&4294901760|s[1]&65535,s[3]<<16|s[3]>>>16,s[1]&4294901760|s[2]&65535,s[0]<<16|s[0]>>>16,s[2]&4294901760|s[3]&65535,s[1]<<16|s[1]>>>16,s[3]&4294901760|s[0]&65535];this._b=0;for(var l=0;l<4;l++)i.call(this);for(var l=0;l<8;l++)a[l]^=r[l+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,S=A>>>16|b&4294901760,E=b<<16|A&65535;a[0]^=A,a[1]^=S,a[2]^=b,a[3]^=E,a[4]^=A,a[5]^=S,a[6]^=b,a[7]^=E;for(var l=0;l<4;l++)i.call(this)}},_doProcessBlock:function(s,e){var l=this._X;i.call(this),f[0]=l[0]^l[5]>>>16^l[3]<<16,f[1]=l[2]^l[7]>>>16^l[5]<<16,f[2]=l[4]^l[1]>>>16^l[7]<<16,f[3]=l[6]^l[3]>>>16^l[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,s[e+r]^=f[r]},blockSize:128/32,ivSize:64/32});function i(){for(var t=this._X,s=this._C,e=0;e<8;e++)d[e]=s[e];s[0]=s[0]+1295307597+this._b|0,s[1]=s[1]+3545052371+(s[0]>>>0<d[0]>>>0?1:0)|0,s[2]=s[2]+886263092+(s[1]>>>0<d[1]>>>0?1:0)|0,s[3]=s[3]+1295307597+(s[2]>>>0<d[2]>>>0?1:0)|0,s[4]=s[4]+3545052371+(s[3]>>>0<d[3]>>>0?1:0)|0,s[5]=s[5]+886263092+(s[4]>>>0<d[4]>>>0?1:0)|0,s[6]=s[6]+1295307597+(s[5]>>>0<d[5]>>>0?1:0)|0,s[7]=s[7]+3545052371+(s[6]>>>0<d[6]>>>0?1:0)|0,this._b=s[7]>>>0<d[7]>>>0?1:0;for(var e=0;e<8;e++){var l=t[e]+s[e],r=l&65535,a=l>>>16,c=((r*r>>>17)+r*a>>>15)+a*a,h=((l&4294901760)*l|0)+((l&65535)*l|0);u[e]=c^h}t[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,t[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,t[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,t[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,t[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,t[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,t[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,t[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}p.Rabbit=v._createHelper(o)}(),y.Rabbit})},E9nw:function(k,D){k.exports=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var y=document.activeElement,p=[],x=0;x<n.rangeCount;x++)p.push(n.getRangeAt(x));switch(y.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":y.blur();break;default:y=null;break}return n.removeAllRanges(),function(){n.type==="Caret"&&n.removeAllRanges(),n.rangeCount||p.forEach(function(v){n.addRange(v)}),y&&y.focus()}}},ELLl:function(k,D,n){(function(y){y(n("VrN/"))})(function(y){var p={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=y.Pos;y.defineOption("autoCloseBrackets",!1,function(r,a,c){c&&c!=y.Init&&(r.removeKeyMap(m),r.state.closeBrackets=null),a&&(f(v(a,"pairs")),r.state.closeBrackets=a,r.addKeyMap(m))});function v(r,a){return a=="pairs"&&typeof r=="string"?r:typeof r=="object"&&r[a]!=null?r[a]:p[a]}var m={Backspace:o,Enter:i};function f(r){for(var a=0;a<r.length;a++){var c=r.charAt(a),h="'"+c+"'";m[h]||(m[h]=d(c))}}f(p.pairs+"`");function d(r){return function(a){return s(a,r)}}function u(r){var a=r.state.closeBrackets;if(!a||a.override)return a;var c=r.getModeAt(r.getCursor());return c.closeBrackets||a}function o(r){var a=u(r);if(!a||r.getOption("disableInput"))return y.Pass;for(var c=v(a,"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 i(r){var a=u(r),c=a&&v(a,"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 S=0;S<h.length;S++){var E=h[S].head.line;r.indentLine(E,null,!0),r.indentLine(E+1,null,!0)}})}function t(r){var a=y.cmpPos(r.anchor,r.head)>0;return{anchor:new x(r.anchor.line,r.anchor.ch+(a?-1:1)),head:new x(r.head.line,r.head.ch+(a?1:-1))}}function s(r,a){var c=u(r);if(!c||r.getOption("disableInput"))return y.Pass;var h=v(c,"pairs"),g=h.indexOf(a);if(g==-1)return y.Pass;for(var A=v(c,"closeBefore"),b=v(c,"triples"),S=h.charAt(g+1)==a,E=r.listSelections(),C=g%2==0,_,T=0;T<E.length;T++){var w=E[T],O=w.head,I,R=r.getRange(O,x(O.line,O.ch+1));if(C&&!w.empty())I="surround";else if((S||!C)&&R==a)S&&l(r,O)?I="both":b.indexOf(a)>=0&&r.getRange(O,x(O.line,O.ch+3))==a+a+a?I="skipThree":I="skip";else if(S&&O.ch>1&&b.indexOf(a)>=0&&r.getRange(x(O.line,O.ch-2),O)==a+a){if(O.ch>2&&/\bstring/.test(r.getTokenTypeAt(x(O.line,O.ch-2))))return y.Pass;I="addFour"}else if(S){var M=O.ch==0?" ":r.getRange(x(O.line,O.ch-1),O);if(!y.isWordChar(R)&&M!=a&&!y.isWordChar(M))I="both";else return y.Pass}else if(C&&(R.length===0||/\s/.test(R)||A.indexOf(R)>-1))I="both";else return y.Pass;if(!_)_=I;else if(_!=I)return y.Pass}var B=g%2?h.charAt(g-1):a,P=g%2?a:h.charAt(g+1);r.operation(function(){if(_=="skip")r.execCommand("goCharRight");else if(_=="skipThree")for(var X=0;X<3;X++)r.execCommand("goCharRight");else if(_=="surround"){for(var F=r.getSelections(),X=0;X<F.length;X++)F[X]=B+F[X]+P;r.replaceSelections(F,"around"),F=r.listSelections().slice();for(var X=0;X<F.length;X++)F[X]=t(F[X]);r.setSelections(F)}else _=="both"?(r.replaceSelection(B+P,null),r.triggerElectric(B+P),r.execCommand("goCharLeft")):_=="addFour"&&(r.replaceSelection(B+B+B+B,"before"),r.execCommand("goCharRight"))})}function e(r,a){var c=r.getRange(x(a.line,a.ch-1),x(a.line,a.ch+1));return c.length==2?c:null}function l(r,a){var c=r.getTokenAt(x(a.line,a.ch+1));return/\bstring/.test(c.type)&&c.start==a.ch&&(a.ch==0||!/\bstring/.test(r.getTokenTypeAt(a)))}})},ELcG:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(p){var x=y,v=x.lib,m=v.WordArray,f=v.Hasher,d=x.algo,u=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]),i=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]),s=m.create([0,1518500249,1859775393,2400959708,2840853838]),e=m.create([1352829926,1548603684,1836072691,2053994217,0]),l=d.RIPEMD160=f.extend({_doReset:function(){this._hash=m.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(S,E){for(var C=0;C<16;C++){var _=E+C,T=S[_];S[_]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}var w=this._hash.words,O=s.words,I=e.words,R=u.words,M=o.words,B=i.words,P=t.words,X,F,j,K,z,V,Q,G,te,q;V=X=w[0],Q=F=w[1],G=j=w[2],te=K=w[3],q=z=w[4];for(var le,C=0;C<80;C+=1)le=X+S[E+R[C]]|0,C<16?le+=r(F,j,K)+O[0]:C<32?le+=a(F,j,K)+O[1]:C<48?le+=c(F,j,K)+O[2]:C<64?le+=h(F,j,K)+O[3]:le+=g(F,j,K)+O[4],le=le|0,le=A(le,B[C]),le=le+z|0,X=z,z=K,K=A(j,10),j=F,F=le,le=V+S[E+M[C]]|0,C<16?le+=g(Q,G,te)+I[0]:C<32?le+=h(Q,G,te)+I[1]:C<48?le+=c(Q,G,te)+I[2]:C<64?le+=a(Q,G,te)+I[3]:le+=r(Q,G,te)+I[4],le=le|0,le=A(le,P[C]),le=le+q|0,V=q,q=te,te=A(G,10),G=Q,Q=le;le=w[1]+j+te|0,w[1]=w[2]+K+q|0,w[2]=w[3]+z+V|0,w[3]=w[4]+X+Q|0,w[4]=w[0]+F+G|0,w[0]=le},_doFinalize:function(){var S=this._data,E=S.words,C=this._nDataBytes*8,_=S.sigBytes*8;E[_>>>5]|=128<<24-_%32,E[(_+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,S.sigBytes=(E.length+1)*4,this._process();for(var T=this._hash,w=T.words,O=0;O<5;O++){var I=w[O];w[O]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return T},clone:function(){var S=f.clone.call(this);return S._hash=this._hash.clone(),S}});function r(b,S,E){return b^S^E}function a(b,S,E){return b&S|~b&E}function c(b,S,E){return(b|~S)^E}function h(b,S,E){return b&E|S&~E}function g(b,S,E){return b^(S|~E)}function A(b,S){return b<<S|b>>>32-S}x.RIPEMD160=f._createHelper(l),x.HmacRIPEMD160=f._createHmacHelper(l)}(Math),y.RIPEMD160})},EMyp:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("mFDi"),v=n("K4ya"),m=n("qJCg"),f=n("iLNv"),d=n("vZ6x"),u=["inBrush","outOfBrush"],o="__ecBrushSelect",i="__ecInBrushSelectEvent",t=y.PRIORITY.VISUAL.BRUSH;y.registerLayout(t,function(b,S,E){b.eachComponent({mainType:"brush"},function(C){E&&E.type==="takeGlobalCursor"&&C.setBrushOption(E.key==="brush"?E.brushOption:{brushType:!1})}),s(b)});function s(b){b.eachComponent({mainType:"brush"},function(S){var E=S.brushTargetManager=new d(S.option,b);E.setInputRanges(S.areas,b)})}y.registerVisual(t,function(b,S,E){var C=[],_,T;b.eachComponent({mainType:"brush"},function(w,O){var I={brushId:w.id,brushIndex:O,brushName:w.name,areas:p.clone(w.areas),selected:[]};C.push(I);var R=w.option,M=R.brushLink,B=[],P=[],X=[],F=0;O||(_=R.throttleType,T=R.throttleDelay);var j=p.map(w.areas,function(te){return h(p.defaults({boundingRect:g[te.brushType](te)},te))}),K=v.createVisualMappings(w.option,u,function(te){te.mappingMethod="fixed"});p.isArray(M)&&p.each(M,function(te){B[te]=1});function z(te){return M==="all"||B[te]}function V(te){return!!te.length}b.eachSeries(function(te,q){var le=X[q]=[];te.subType==="parallel"?Q(te,q,le):G(te,q,le)});function Q(te,q){var le=te.coordinateSystem;F|=le.hasAxisBrushed(),z(q)&&le.eachActiveState(te.getData(),function(re,we){re==="active"&&(P[we]=1)})}function G(te,q,le){var re=a(te);if(!re||c(w,q))return;if(p.each(j,function(Ie){re[Ie.brushType]&&w.brushTargetManager.controlSeries(Ie,te,b)&&le.push(Ie),F|=V(le)}),z(q)&&V(le)){var we=te.getData();we.each(function(Ie){r(re,le,we,Ie)&&(P[Ie]=1)})}}b.eachSeries(function(te,q){var le={seriesId:te.id,seriesIndex:q,seriesName:te.name,dataIndex:[]};I.selected.push(le);var re=a(te),we=X[q],Ie=te.getData(),Me=z(q)?function(Je){return P[Je]?(le.dataIndex.push(Ie.getRawIndex(Je)),"inBrush"):"outOfBrush"}:function(Je){return r(re,we,Ie,Je)?(le.dataIndex.push(Ie.getRawIndex(Je)),"inBrush"):"outOfBrush"};(z(q)?F:V(we))&&v.applyVisual(u,K,Ie,Me)})}),e(S,_,T,C,E)});function e(b,S,E,C,_){if(!_)return;var T=b.getZr();if(T[i])return;T[o]||(T[o]=l);var w=f.createOrUpdate(T,o,E,S);w(b,C)}function l(b,S){if(!b.isDisposed()){var E=b.getZr();E[i]=!0,b.dispatchAction({type:"brushSelect",batch:S}),E[i]=!1}}function r(b,S,E,C){for(var _=0,T=S.length;_<T;_++){var w=S[_];if(b[w.brushType](C,E,w.selectors,w))return!0}}function a(b){var S=b.brushSelector;if(p.isString(S)){var E=[];return p.each(m,function(_,T){E[T]=function(w,O,I,R){var M=O.getItemLayout(w);return _[S](M,I,R)}}),E}else if(p.isFunction(S)){var C={};return p.each(m,function(_,T){C[T]=S}),C}return S}function c(b,S){var E=b.option.seriesIndex;return E!=null&&E!=="all"&&(p.isArray(E)?p.indexOf(E,S)<0:S!==E)}function h(b){var S=b.selectors={};return p.each(m[b.brushType],function(E,C){S[C]=function(_){return E(_,S,b)}}),b}var g={lineX:p.noop,lineY:p.noop,rect:function(b){return A(b.range)},polygon:function(b){for(var S,E=b.range,C=0,_=E.length;C<_;C++){S=S||[[Infinity,-Infinity],[Infinity,-Infinity]];var T=E[C];T[0]<S[0][0]&&(S[0][0]=T[0]),T[0]>S[0][1]&&(S[0][1]=T[0]),T[1]<S[1][0]&&(S[1][0]=T[1]),T[1]>S[1][1]&&(S[1][1]=T[1])}return S&&A(S)}};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=s},ERHi:function(k,D,n){var y=n("ProS");n("Z6js"),n("R4Th");var p=n("f5Yq"),x=n("h8O9");y.registerVisual(p("effectScatter","circle")),y.registerLayout(x("effectScatter"))},ETIr:function(k,D,n){(function(y,p){k.exports=D=p(n("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 i=o.words,t=o.sigBytes,s=this._map;o.clamp();for(var e=[],l=0;l<t;l+=3)for(var r=i[l>>>2]>>>24-l%4*8&255,a=i[l+1>>>2]>>>24-(l+1)%4*8&255,c=i[l+2>>>2]>>>24-(l+2)%4*8&255,h=r<<16|a<<8|c,g=0;g<4&&l+g*.75<t;g++)e.push(s.charAt(h>>>6*(3-g)&63));var A=s.charAt(64);if(A)for(;e.length%4;)e.push(A);return e.join("")},parse:function(o){var i=o.length,t=this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var e=0;e<t.length;e++)s[t.charCodeAt(e)]=e}var l=t.charAt(64);if(l){var r=o.indexOf(l);r!==-1&&(i=r)}return d(o,i,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function d(u,o,i){for(var t=[],s=0,e=0;e<o;e++)if(e%4){var l=i[u.charCodeAt(e-1)]<<e%4*2,r=i[u.charCodeAt(e)]>>>6-e%4*2,a=l|r;t[s>>>2]|=a<<24-s%4*8,s++}return v.create(t,s)}}(),y.enc.Base64})},EXcs:function(k,D,n){"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,u){return u.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(k,D){function n(y){var p=typeof y;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?y!=="__proto__":y===null}k.exports=n},Ez2D:function(k,D,n){var y=n("bYtY"),p=n("4NO4");function x(v,m){var f=[],d=v.seriesIndex,u;if(d==null||!(u=m.getSeriesByIndex(d)))return{point:[]};var o=u.getData(),i=p.queryDataIndex(o,v);if(i==null||i<0||y.isArray(i))return{point:[]};var t=o.getItemGraphicEl(i),s=u.coordinateSystem;if(u.getTooltipPosition)f=u.getTooltipPosition(i)||[];else if(s&&s.dataToPoint)f=s.dataToPoint(o.getValues(y.map(s.dimensions,function(l){return o.mapDimension(l)}),i,!0))||[];else if(t){var e=t.getBoundingRect().clone();e.applyTransform(t.transform),f=[e.x+e.width/2,e.y+e.height/2]}return{point:f,el:t}}k.exports=x},"F+F2":function(k,D,n){(function(y,p){k.exports=D=p(n("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 u=d.byteLength,o=[],i=0;i<u;i++)o[i>>>2]|=d[i]<<24-i%4*8;m.call(this,o,u)}else m.apply(this,arguments)};f.prototype=v}(),y.lib.WordArray})},F0hE:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("ca2m"),v=n("Qxkt"),m=n("ICMv"),f=x.valueAxis;function d(i,t){return p.defaults({show:t},i)}var u=y.extendComponentModel({type:"radar",optionUpdated:function(){var i=this.get("boundaryGap"),t=this.get("splitNumber"),s=this.get("scale"),e=this.get("axisLine"),l=this.get("axisTick"),r=this.get("axisType"),a=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"),S=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:i,splitNumber:t,scale:s,axisLine:e,axisTick:l,axisType:r,axisLabel:a,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 S}},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=u;k.exports=o},F5Ls:function(k,D){var n={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function y(p,x){if(p==="china"){var v=n[x.name];if(v){var m=x.center;m[0]+=v[0]/10.5,m[1]+=-v[1]/(10.5/.75)}}}k.exports=y},F7hV:function(k,D,n){var y=n("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}}});k.exports=p},F9bG:function(k,D,n){var y=n("bYtY"),p=n("ItGF"),x=n("4NO4"),v=x.makeInner,m=v(),f=y.each;function d(l,r,a){if(p.node)return;var c=r.getZr();m(c).records||(m(c).records={}),u(c,r);var h=m(c).records[l]||(m(c).records[l]={});h.handler=a}function u(l,r){if(m(l).initialized)return;m(l).initialized=!0,a("click",y.curry(t,"click")),a("mousemove",y.curry(t,"mousemove")),a("globalout",i);function a(c,h){l.on(c,function(g){var A=s(r);f(m(l).records,function(b){b&&h(b,g,A.dispatchAction)}),o(A.pendings,r)})}}function o(l,r){var a=l.showTip.length,c=l.hideTip.length,h;a?h=l.showTip[a-1]:c&&(h=l.hideTip[c-1]),h&&(h.dispatchAction=null,r.dispatchAction(h))}function i(l,r,a){l.handler("leave",null,a)}function t(l,r,a,c){r.handler(l,a,c)}function s(l){var r={showTip:[],hideTip:[]},a=function(c){var h=r[c.type];h?h.push(c):(c.dispatchAction=a,l.dispatchAction(c))};return{dispatchAction:a,pendings:r}}function e(l,r){if(p.node)return;var a=r.getZr(),c=(m(a).records||{})[l];c&&(m(a).records[l]=null)}D.register=d,D.unregister=e},FBjb:function(k,D,n){var y=n("bYtY"),p=n("oVpE"),x=p.createSymbol,v=n("IwbS"),m=n("OELB"),f=m.parsePercent,d=n("x3X8"),u=d.getDefaultLabel;function o(A,b,S){v.Group.call(this),this.updateData(A,b,S)}var i=o.prototype,t=o.getSymbolSize=function(A,b){var S=A.getItemVisual(b,"symbolSize");return S instanceof Array?S.slice():[+S,+S]};function s(A){return[A[0]/2,A[1]/2]}function e(A,b){this.parent.drift(A,b)}i._createSymbol=function(A,b,S,E,C){this.removeAll();var _=b.getItemVisual(S,"color"),T=x(A,-1,-1,2,2,_,C);T.attr({z2:100,culling:!0,scale:s(E)}),T.drift=e,this._symbolType=A,this.add(T)},i.stopSymbolAnimation=function(A){this.childAt(0).stopAnimation(A)},i.getSymbolPath=function(){return this.childAt(0)},i.getScale=function(){return this.childAt(0).scale},i.highlight=function(){this.childAt(0).trigger("emphasis")},i.downplay=function(){this.childAt(0).trigger("normal")},i.setZ=function(A,b){var S=this.childAt(0);S.zlevel=A,S.z=b},i.setDraggable=function(A){var b=this.childAt(0);b.draggable=A,b.cursor=A?"move":b.cursor},i.updateData=function(A,b,S){this.silent=!1;var E=A.getItemVisual(b,"symbol")||"circle",C=A.hostModel,_=t(A,b),T=E!==this._symbolType;if(T){var w=A.getItemVisual(b,"symbolKeepAspect");this._createSymbol(E,A,b,_,w)}else{var O=this.childAt(0);O.silent=!1,v.updateProps(O,{scale:s(_)},C,b)}if(this._updateCommon(A,b,_,S),T){var O=this.childAt(0),I=S&&S.fadeIn,R={scale:O.scale.slice()};I&&(R.style={opacity:O.style.opacity}),O.scale=[0,0],I&&(O.style.opacity=0),v.initProps(O,R,C,b)}this._seriesModel=C};var l=["itemStyle"],r=["emphasis","itemStyle"],a=["label"],c=["emphasis","label"];i._updateCommon=function(A,b,S,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 w=E&&E.itemStyle,O=E&&E.hoverItemStyle,I=E&&E.symbolOffset,R=E&&E.labelModel,M=E&&E.hoverLabelModel,B=E&&E.hoverAnimation,P=E&&E.cursorStyle;if(!E||A.hasItemOption){var X=E&&E.itemModel?E.itemModel:A.getItemModel(b);w=X.getModel(l).getItemStyle(["color"]),O=X.getModel(r).getItemStyle(),I=X.getShallow("symbolOffset"),R=X.getModel(a),M=X.getModel(c),B=X.getShallow("hoverAnimation"),P=X.getShallow("cursor")}else O=y.extend({},O);var F=C.style,j=A.getItemVisual(b,"symbolRotate");C.attr("rotation",(j||0)*Math.PI/180||0),I&&C.attr("position",[f(I[0],S[0]),f(I[1],S[1])]),P&&C.attr("cursor",P),C.setColor(T,E&&E.symbolInnerColor),C.setStyle(w);var K=A.getItemVisual(b,"opacity");K!=null&&(F.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(F,O,R,M,{labelFetcher:_,labelDataIndex:b,defaultText:G,isRectText:!0,autoColor:T});function G(te,q){return Q?A.getName(te):u(A,te)}C.__symbolOriginalScale=s(S),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 S=this.__symbolOriginalScale,E=S[1]/S[0],C={scale:[Math.max(S[0]*1.1,S[0]+3),Math.max(S[1]*1.1,S[1]+3*E)]};this.animateTo(C,400,"elasticOut")}else b==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}i.fadeOut=function(A,b){var S=this.childAt(0);this.silent=S.silent=!0,!(b&&b.keepLabel)&&(S.style.text=null),v.updateProps(S,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,A)},y.inherits(o,v.Group);var g=o;k.exports=g},FGaS:function(k,D,n){var y=n("ProS"),p=n("IwbS"),x=n("bYtY"),v=n("oVpE");function m(d){return x.isArray(d)||(d=[+d,+d]),d}var f=y.extendChartView({type:"radar",render:function(d,u,o){var i=d.coordinateSystem,t=this.group,s=d.getData(),e=this._data;function l(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")),S=v.createSymbol(g,-1,-1,2,2,A);return S.attr({style:{strokeNoScale:!0},z2:100,scale:[b[0]/2,b[1]/2]}),S}function r(c,h,g,A,b,S){g.removeAll();for(var E=0;E<h.length-1;E++){var C=l(A,b);C&&(C.__dimIdx=E,c[E]?(C.attr("position",c[E]),p[S?"initProps":"updateProps"](C,{position:h[E]},d,b)):C.attr("position",h[E]),g.add(C))}}function a(c){return x.map(c,function(h){return[i.cx,i.cy]})}s.diff(e).add(function(c){var h=s.getItemLayout(c);if(!h)return;var g=new p.Polygon,A=new p.Polyline,b={shape:{points:h}};g.shape.points=a(h),A.shape.points=a(h),p.initProps(g,b,d,c),p.initProps(A,b,d,c);var S=new p.Group,E=new p.Group;S.add(A),S.add(g),S.add(E),r(A.shape.points,h,E,s,c,!0),s.setItemGraphicEl(c,S)}).update(function(c,h){var g=e.getItemGraphicEl(h),A=g.childAt(0),b=g.childAt(1),S=g.childAt(2),E={shape:{points:s.getItemLayout(c)}};if(!E.shape.points)return;r(A.shape.points,E.shape.points,S,s,c,!1),p.updateProps(A,E,d),p.updateProps(b,E,d),s.setItemGraphicEl(c,g)}).remove(function(c){t.remove(e.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,h){var g=s.getItemModel(h),A=c.childAt(0),b=c.childAt(1),S=c.childAt(2),E=s.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(),w=_.isEmpty()&&_.parentModel.isEmpty();w=w&&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(),R=g.getModel("label"),M=g.getModel("emphasis.label");S.eachChild(function(B){B.setStyle(O),B.hoverStyle=x.clone(I);var P=s.get(s.dimensions[B.__dimIdx],h);(P==null||isNaN(P))&&(P=""),p.setLabelStyle(B.style,B.hoverStyle,R,M,{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:B.__dimIdx,defaultText:P,autoColor:E,isRectText:!0})}),c.highDownOnUpdate=function(B,P){b.attr("ignore",P==="emphasis"?w:T)},p.setHoverStyle(c)}),this._data=s},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});k.exports=f},FH2Y:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("ZMnZ"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},FJo9:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("8txm"),v=n.n(x),m=n("MXD1")},FMes:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("/thR"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},FNN5:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("+rIm"),v=n("Znkb"),m=["axisLine","axisTickLabel","axisName"],f=["splitLine","splitArea","minorSplitLine"],d=v.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(o,i){if(this.group.removeAll(),!o.get("show"))return;var t=o.axis,s=t.polar,e=s.getAngleAxis(),l=t.getTicksCoords(),r=t.getMinorTicksCoords(),a=e.getExtent()[0],c=t.getExtent(),h=u(s,o,a),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,s,a,c,l,r)},this)},_splitLine:function(o,i,t,s,e){var l=o.getModel("splitLine"),r=l.getModel("lineStyle"),a=r.get("color"),c=0;a=a instanceof Array?a:[a];for(var h=[],g=0;g<e.length;g++){var A=c++%a.length;h[A]=h[A]||[],h[A].push(new p.Circle({shape:{cx:i.cx,cy:i.cy,r:e[g].coord}}))}for(var g=0;g<h.length;g++)this.group.add(p.mergePath(h[g],{style:y.defaults({stroke:a[g%a.length],fill:null},r.getLineStyle()),silent:!0}))},_minorSplitLine:function(o,i,t,s,e,l){if(!l.length)return;for(var r=o.getModel("minorSplitLine"),a=r.getModel("lineStyle"),c=[],h=0;h<l.length;h++)for(var g=0;g<l[h].length;g++)c.push(new p.Circle({shape:{cx:i.cx,cy:i.cy,r:l[h][g].coord}}));this.group.add(p.mergePath(c,{style:y.defaults({fill:null},a.getLineStyle()),silent:!0}))},_splitArea:function(o,i,t,s,e){if(!e.length)return;var l=o.getModel("splitArea"),r=l.getModel("areaStyle"),a=r.get("color"),c=0;a=a instanceof Array?a:[a];for(var h=[],g=e[0].coord,A=1;A<e.length;A++){var b=c++%a.length;h[b]=h[b]||[],h[b].push(new p.Sector({shape:{cx:i.cx,cy:i.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:a[A%a.length]},r.getAreaStyle()),silent:!0}))}});function u(o,i,t){return{position:[o.cx,o.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:i.getModel("axisLabel").get("rotate"),z2:1}}k.exports=d},FTAc:function(k,D,n){"use strict";n.d(D,"a",function(){return x});var y=n("q1tI"),p=n.n(y),x=y.createContext(null)},FUi9:function(k,D,n){var y=n("bYtY"),p=n("MwEJ"),x=n("aX7z"),v=n("ICMv"),m=n("Qxkt"),f=n("+TT/"),d=f.getLayoutRect;D.getLayoutRect=f.getLayoutRect;var u=n("7hqr"),o=u.enableDataStack,i=u.isDimensionStacked,t=u.getStackedDimension,s=n("hi0g");D.completeDimensions=s;var e=n("sdST");D.createDimensions=e;var l=n("oVpE");D.createSymbol=l.createSymbol;function r(g){return p(g.getSource(),g)}var a={isDimensionStacked:i,enableDataStack:o,getStackedDimension:t};function c(g,A){var b=A;m.isInstance(A)||(b=new m(A),y.mixin(b,v));var S=x.createScaleByModel(b);return S.setExtent(g[0],g[1]),x.niceScaleExtent(S,b),S}function h(g){y.mixin(g,v)}D.createList=r,D.dataStack=a,D.createScale=c,D.mixinAxisModelCommonMethods=h},"Fa/5":function(k,D,n){var y=n("ProS");n("y2l5"),n("q/+u");var p=n("f5Yq"),x=n("h8O9");n("Ae16"),y.registerVisual(p("scatter","circle")),y.registerLayout(x("scatter"))},FhB9:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};D.default=y},"Fm1+":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("a7Wl")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="CaretUpOutlined";var i=v.forwardRef(o);D.default=i},Fofx:function(k,D){var n=typeof Float32Array=="undefined"?Array:Float32Array;function y(){var i=new n(6);return p(i),i}function p(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=1,i[4]=0,i[5]=0,i}function x(i,t){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4],i[5]=t[5],i}function v(i,t,s){var e=t[0]*s[0]+t[2]*s[1],l=t[1]*s[0]+t[3]*s[1],r=t[0]*s[2]+t[2]*s[3],a=t[1]*s[2]+t[3]*s[3],c=t[0]*s[4]+t[2]*s[5]+t[4],h=t[1]*s[4]+t[3]*s[5]+t[5];return i[0]=e,i[1]=l,i[2]=r,i[3]=a,i[4]=c,i[5]=h,i}function m(i,t,s){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4]+s[0],i[5]=t[5]+s[1],i}function f(i,t,s){var e=t[0],l=t[2],r=t[4],a=t[1],c=t[3],h=t[5],g=Math.sin(s),A=Math.cos(s);return i[0]=e*A+a*g,i[1]=-e*g+a*A,i[2]=l*A+c*g,i[3]=-l*g+A*c,i[4]=A*r+g*h,i[5]=A*h-g*r,i}function d(i,t,s){var e=s[0],l=s[1];return i[0]=t[0]*e,i[1]=t[1]*l,i[2]=t[2]*e,i[3]=t[3]*l,i[4]=t[4]*e,i[5]=t[5]*l,i}function u(i,t){var s=t[0],e=t[2],l=t[4],r=t[1],a=t[3],c=t[5],h=s*a-r*e;return h?(h=1/h,i[0]=a*h,i[1]=-r*h,i[2]=-e*h,i[3]=s*h,i[4]=(e*c-a*l)*h,i[5]=(r*l-s*c)*h,i):null}function o(i){var t=y();return x(t,i),t}D.create=y,D.identity=p,D.copy=x,D.mul=v,D.translate=m,D.rotate=f,D.scale=d,D.invert=u,D.clone=o},Fv0C:function(k,D,n){"use strict";function y(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(a){return typeof a}:y=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},y(l)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=o(n("Lo0S")),x=n("vewr"),v=o(n("8CQX")),m=d(n("mHUz")),f=o(n("GdRQ"));function d(l){return l&&l.__esModule?l:{default:l}}function u(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return u=function(){return l},l}function o(l){if(l&&l.__esModule)return l;if(l===null||y(l)!=="object"&&typeof l!="function")return{default:l};var r=u();if(r&&r.has(l))return r.get(l);var a={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in l)if(Object.prototype.hasOwnProperty.call(l,h)){var g=c?Object.getOwnPropertyDescriptor(l,h):null;g&&(g.get||g.set)?Object.defineProperty(a,h,g):a[h]=l[h]}return a.default=l,r&&r.set(l,a),a}function i(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function t(l,r){for(var a=0;a<r.length;a++){var c=r[a];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(l,c.key,c)}}function s(l,r,a){return r&&t(l.prototype,r),a&&t(l,a),l}var e=function(){function l(r){i(this,l),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 s(l,[{key:"_sendKeyEvent",value:function(a,c,h){if(h)this._keyDownList[c]=a;else{if(!(c in this._keyDownList))return;delete this._keyDownList[c]}p.Debug("onkeyevent "+(h?"down":"up")+", keysym: "+a,", code: "+c),this.onkeyevent(a,c,h)}},{key:"_getKeyCode",value:function(a){var c=v.getKeycode(a);if(c!=="Unidentified")return c;if(a.keyCode&&a.type!=="keypress"&&a.keyCode!==229)return"Platform"+a.keyCode;if(a.keyIdentifier){if(a.keyIdentifier.substr(0,2)!=="U+")return a.keyIdentifier;var h=parseInt(a.keyIdentifier.substr(2),16),g=String.fromCharCode(h).toUpperCase();return"Platform"+g.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(a){var c=this._getKeyCode(a),h=v.getKeysym(a);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),c==="AltRight"&&a.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)(a);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)(a);return}if(!h&&(!a.key||f.isIE()||f.isEdge())){this._pendingKey=c,setTimeout(this._handleKeyPressTimeout.bind(this),10,a);return}if(this._pendingKey=null,(0,x.stopEvent)(a),c==="ControlLeft"&&f.isWindows()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=a.timeStamp;return}this._sendKeyEvent(h,c,!0)}},{key:"_handleKeyPress",value:function(a){if((0,x.stopEvent)(a),this._pendingKey===null)return;var c=this._getKeyCode(a),h=v.getKeysym(a);if(c!=="Unidentified"&&c!=this._pendingKey)return;if(c=this._pendingKey,this._pendingKey=null,!h){p.Info("keypress with no keysym:",a);return}this._sendKeyEvent(h,c,!0)}},{key:"_handleKeyPressTimeout",value:function(a){if(this._pendingKey===null)return;var c,h=this._pendingKey;if(this._pendingKey=null,a.keyCode>=48&&a.keyCode<=57)c=a.keyCode;else if(a.keyCode>=65&&a.keyCode<=90){var g=String.fromCharCode(a.keyCode);a.shiftKey?g=g.toUpperCase():g=g.toLowerCase(),c=g.charCodeAt()}else c=0;this._sendKeyEvent(c,h,!0)}},{key:"_handleKeyUp",value:function(a){(0,x.stopEvent)(a);var c=this._getKeyCode(a);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 a in this._keyDownList)this._sendKeyEvent(this._keyDownList[a],a,!1);p.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(a){if(a.skipCheckAlt)return;if(a.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 a=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(c){return document.addEventListener(c,a,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(f.isWindows()&&f.isFirefox()){var a=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(c){return document.removeEventListener(c,a)})}this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),this._target.removeEventListener("keypress",this._eventHandlers.keypress),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}]),l}();D.default=e},FxDU:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=n("QO+J"),p=n("j5sG"),x=typeof ResizeObserver!="undefined"?p.createSensor:y.createSensor;D.createSensor=x},GGyF:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("wgjA")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="LeftOutlined";var i=v.forwardRef(o);D.default=i},GIiI:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="PoweroffOutlined";var d=D.a=p.forwardRef(f)},GMDS:function(k,D,n){var y=n("bYtY"),p=n("4NgU"),x=n("jkPA"),v=p.prototype,m=p.extend({type:"ordinal",init:function(d,u){(!d||y.isArray(d))&&(d=new x({categories:d})),this._ordinalMeta=d,this._extent=u||[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=[],u=this._extent,o=u[0];o<=u[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,u){this.unionExtent(d.getApproximateExtent(u))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:y.noop,niceExtent:y.noop});m.create=function(){return new m};var f=m;k.exports=f},GQ8N:function(k,D,n){"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(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("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(k,D,n){"use strict";var y=n("fWQN"),p=n("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(Re,De){return Re.__proto__=De,Re},Object.assign=Object.assign||function(Re){if(Re==null)throw new TypeError("Cannot convert undefined or null to object");for(var De=Object(Re),Pe=1;Pe<arguments.length;Pe++){var et=arguments[Pe];if(et!=null)for(var yt in et)et.hasOwnProperty(yt)&&(De[yt]=et[yt])}return De},typeof self.Promise!="function"&&n("E2g8").polyfill()}}]),$t}();x.install();var v=x,m=n("+qE3"),f=n.n(m),d=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"e",value:function(Re,De){(!Re||$t.FORCE_GLOBAL_TAG)&&(Re=$t.GLOBAL_TAG);var Pe="[".concat(Re,"] > ").concat(De);if($t.ENABLE_CALLBACK&&$t.emitter.emit("log","error",Pe),!$t.ENABLE_ERROR)return;console.error?console.error(Pe):console.warn?console.warn(Pe):console.log(Pe)}},{key:"i",value:function(Re,De){(!Re||$t.FORCE_GLOBAL_TAG)&&(Re=$t.GLOBAL_TAG);var Pe="[".concat(Re,"] > ").concat(De);if($t.ENABLE_CALLBACK&&$t.emitter.emit("log","info",Pe),!$t.ENABLE_INFO)return;console.info?console.info(Pe):console.log(Pe)}},{key:"w",value:function(Re,De){(!Re||$t.FORCE_GLOBAL_TAG)&&(Re=$t.GLOBAL_TAG);var Pe="[".concat(Re,"] > ").concat(De);if($t.ENABLE_CALLBACK&&$t.emitter.emit("log","warn",Pe),!$t.ENABLE_WARN)return;console.warn?console.warn(Pe):console.log(Pe)}},{key:"d",value:function(Re,De){(!Re||$t.FORCE_GLOBAL_TAG)&&(Re=$t.GLOBAL_TAG);var Pe="[".concat(Re,"] > ").concat(De);if($t.ENABLE_CALLBACK&&$t.emitter.emit("log","debug",Pe),!$t.ENABLE_DEBUG)return;console.debug?console.debug(Pe):console.log(Pe)}},{key:"v",value:function(Re,De){(!Re||$t.FORCE_GLOBAL_TAG)&&(Re=$t.GLOBAL_TAG);var Pe="[".concat(Re,"] > ").concat(De);if($t.ENABLE_CALLBACK&&$t.emitter.emit("log","verbose",Pe),!$t.ENABLE_VERBOSE)return;console.log(Pe)}}]),$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 u=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(Re){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=Re,this._totalBytes+=Re):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=Re,this._totalBytes+=Re):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=Re,this._totalBytes+=Re,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var Re=(this._now()-this._lastCheckpoint)/1e3;return Re==0&&(Re=1),this._intervalBytes/Re/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 Re=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/Re/1024}}]),$t}(),i=o,t=n("yKVA"),s=n("879j"),e=function(){function $t(Ct){Object(y.a)(this,$t),this._message=Ct}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}(),l=function($t){Object(t.a)(Re,$t);var Ct=Object(s.a)(Re);function Re(De){return Object(y.a)(this,Re),Ct.call(this,De)}return Object(p.a)(Re,[{key:"name",get:function(){return"IllegalStateException"}}]),Re}(e),r=function($t){Object(t.a)(Re,$t);var Ct=Object(s.a)(Re);function Re(De){return Object(y.a)(this,Re),Ct.call(this,De)}return Object(p.a)(Re,[{key:"name",get:function(){return"InvalidArgumentException"}}]),Re}(e),a=function($t){Object(t.a)(Re,$t);var Ct=Object(s.a)(Re);function Re(De){return Object(y.a)(this,Re),Ct.call(this,De)}return Object(p.a)(Re,[{key:"name",get:function(){return"NotImplementedException"}}]),Re}(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(Ct){Object(y.a)(this,$t),this._type=Ct||"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(Re){this._onContentLengthKnown=Re}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(Re){this._onURLRedirect=Re}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Re){this._onDataArrival=Re}},{key:"onError",get:function(){return this._onError},set:function(Re){this._onError=Re}},{key:"onComplete",get:function(){return this._onComplete},set:function(Re){this._onComplete=Re}},{key:"open",value:function(Re,De){throw new a("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new a("Unimplemented abstract function!")}}]),$t}(),A=n("w4Tj"),b=n("oZsa"),S={};function E(){var $t=self.navigator.userAgent.toLowerCase(),Ct=/(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)||[],Re=/(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)||[],De={browser:Ct[5]||Ct[3]||Ct[1]||"",version:Ct[2]||Ct[4]||"0",majorVersion:Ct[4]||Ct[2]||"0",platform:Re[0]||""},Pe={};if(De.browser){Pe[De.browser]=!0;var et=De.majorVersion.split(".");Pe.version={major:parseInt(De.majorVersion,10),string:De.version},et.length>1&&(Pe.version.minor=parseInt(et[1],10)),et.length>2&&(Pe.version.build=parseInt(et[2],10))}if(De.platform&&(Pe[De.platform]=!0),(Pe.chrome||Pe.opr||Pe.safari)&&(Pe.webkit=!0),Pe.rv||Pe.iemobile){Pe.rv&&delete Pe.rv;var yt="msie";De.browser=yt,Pe[yt]=!0}if(Pe.edge){delete Pe.edge;var St="msedge";De.browser=St,Pe[St]=!0}if(Pe.opr){var Vt="opera";De.browser=Vt,Pe[Vt]=!0}if(Pe.safari&&Pe.android){var Rr="android";De.browser=Rr,Pe[Rr]=!0}Pe.name=De.browser,Pe.platform=De.platform;for(var Vr in S)S.hasOwnProperty(Vr)&&delete S[Vr];Object.assign(S,Pe)}E();var C=S,_=function($t){Object(t.a)(Re,$t);var Ct=Object(s.a)(Re);function Re(De,Pe){var et;return Object(y.a)(this,Re),et=Ct.call(this,"fetch-stream-loader"),et.TAG="FetchStreamLoader",et._seekHandler=De,et._config=Pe,et._needStash=!0,et._requestAbort=!1,et._contentLength=null,et._receivedLength=0,et}return Object(p.a)(Re,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(A.a)(Object(b.a)(Re.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,et){var yt=this;this._dataSource=Pe,this._range=et;var St=Pe.url;this._config.reuseRedirectedURL&&Pe.redirectedURL!=null&&(St=Pe.redirectedURL);var Vt=this._seekHandler.getConfig(St,et),Rr=new self.Headers;if(typeof Vt.headers=="object"){var Vr=Vt.headers;for(var hn in Vr)Vr.hasOwnProperty(hn)&&Rr.append(hn,Vr[hn])}var Ft={method:"GET",headers:Rr,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var vt in this._config.headers)Rr.append(vt,this._config.headers[vt]);Pe.cors===!1&&(Ft.mode="same-origin"),Pe.withCredentials&&(Ft.credentials="include"),Pe.referrerPolicy&&(Ft.referrerPolicy=Pe.referrerPolicy),this._status=c.kConnecting,self.fetch(Vt.url,Ft).then(function(bt){if(yt._requestAbort){yt._requestAbort=!1,yt._status=c.kIdle;return}if(bt.ok&&bt.status>=200&&bt.status<=299){if(bt.url!==Vt.url&&yt._onURLRedirect){var fr=yt._seekHandler.removeURLParameters(bt.url);yt._onURLRedirect(fr)}var Qt=bt.headers.get("Content-Length");return Qt!=null&&(yt._contentLength=parseInt(Qt),yt._contentLength!==0&&(yt._onContentLengthKnown&&yt._onContentLengthKnown(yt._contentLength))),yt._pump.call(yt,bt.body.getReader())}else if(yt._status=c.kError,yt._onError)yt._onError(h.HTTP_STATUS_CODE_INVALID,{code:bt.status,msg:bt.statusText});else throw new e("FetchStreamLoader: Http code invalid, "+bt.status+" "+bt.statusText)}).catch(function(bt){if(yt._status=c.kError,yt._onError)yt._onError(h.EXCEPTION,{code:-1,msg:bt.message});else throw bt})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Pe){var et=this;return Pe.read().then(function(yt){if(yt.done)if(et._contentLength!==null&&et._receivedLength<et._contentLength){et._status=c.kError;var St=h.EARLY_EOF,Vt={code:-1,msg:"Fetch stream meet Early-EOF"};if(et._onError)et._onError(St,Vt);else throw new e(Vt.msg)}else et._status=c.kComplete,et._onComplete&&et._onComplete(et._range.from,et._range.from+et._receivedLength-1);else{if(et._requestAbort===!0)return et._requestAbort=!1,et._status=c.kComplete,Pe.cancel();et._status=c.kBuffering;var Rr=yt.value.buffer,Vr=et._range.from+et._receivedLength;et._receivedLength+=Rr.byteLength,et._onDataArrival&&et._onDataArrival(Rr,Vr,et._receivedLength),et._pump(Pe)}}).catch(function(yt){if(yt.code===11&&C.msedge)return;et._status=c.kError;var St=0,Vt=null;if((yt.code===19||yt.message==="network error")&&(et._contentLength===null||et._contentLength!==null&&et._receivedLength<et._contentLength)?(St=h.EARLY_EOF,Vt={code:yt.code,msg:"Fetch stream meet Early-EOF"}):(St=h.EXCEPTION,Vt={code:yt.code,msg:yt.message}),et._onError)et._onError(St,Vt);else throw new e(Vt.msg)})}}],[{key:"isSupported",value:function(){try{var Pe=C.msedge&&C.version.minor>=15048,et=C.msedge?Pe:!0;return self.fetch&&self.ReadableStream&&et}catch(yt){return!1}}}]),Re}(g),T=_,w=function($t){Object(t.a)(Re,$t);var Ct=Object(s.a)(Re);function Re(De,Pe){var et;return Object(y.a)(this,Re),et=Ct.call(this,"xhr-moz-chunked-loader"),et.TAG="MozChunkedLoader",et._seekHandler=De,et._config=Pe,et._needStash=!0,et._xhr=null,et._requestAbort=!1,et._contentLength=null,et._receivedLength=0,et}return Object(p.a)(Re,[{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)(Re.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,et){this._dataSource=Pe,this._range=et;var yt=Pe.url;this._config.reuseRedirectedURL&&Pe.redirectedURL!=null&&(yt=Pe.redirectedURL);var St=this._seekHandler.getConfig(yt,et);this._requestURL=St.url;var Vt=this._xhr=new XMLHttpRequest;if(Vt.open("GET",St.url,!0),Vt.responseType="moz-chunked-arraybuffer",Vt.onreadystatechange=this._onReadyStateChange.bind(this),Vt.onprogress=this._onProgress.bind(this),Vt.onloadend=this._onLoadEnd.bind(this),Vt.onerror=this._onXhrError.bind(this),Pe.withCredentials&&(Vt.withCredentials=!0),typeof St.headers=="object"){var Rr=St.headers;for(var Vr in Rr)Rr.hasOwnProperty(Vr)&&Vt.setRequestHeader(Vr,Rr[Vr])}if(typeof this._config.headers=="object"){var hn=this._config.headers;for(var Ft in hn)hn.hasOwnProperty(Ft)&&Vt.setRequestHeader(Ft,hn[Ft])}this._status=c.kConnecting,Vt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=c.kComplete}},{key:"_onReadyStateChange",value:function(Pe){var et=Pe.target;if(et.readyState===2){if(et.responseURL!=null&&et.responseURL!==this._requestURL&&this._onURLRedirect){var yt=this._seekHandler.removeURLParameters(et.responseURL);this._onURLRedirect(yt)}if(et.status!==0&&(et.status<200||et.status>299))if(this._status=c.kError,this._onError)this._onError(h.HTTP_STATUS_CODE_INVALID,{code:et.status,msg:et.statusText});else throw new e("MozChunkedLoader: Http code invalid, "+et.status+" "+et.statusText);else this._status=c.kBuffering}}},{key:"_onProgress",value:function(Pe){if(this._status===c.kError)return;this._contentLength===null&&(Pe.total!==null&&Pe.total!==0&&(this._contentLength=Pe.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var et=Pe.target.response,yt=this._range.from+this._receivedLength;this._receivedLength+=et.byteLength,this._onDataArrival&&this._onDataArrival(et,yt,this._receivedLength)}},{key:"_onLoadEnd",value:function(Pe){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===c.kError)return;this._status=c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(Pe){this._status=c.kError;var et=0,yt=null;if(this._contentLength&&Pe.loaded<this._contentLength?(et=h.EARLY_EOF,yt={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(et=h.EXCEPTION,yt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(et,yt);else throw new e(yt.msg)}}],[{key:"isSupported",value:function(){try{var Pe=new XMLHttpRequest;return Pe.open("GET","https://example.com",!0),Pe.responseType="moz-chunked-arraybuffer",Pe.responseType==="moz-chunked-arraybuffer"}catch(et){return u.w("MozChunkedLoader",et.message),!1}}}]),Re}(g),O=w,I=function($t){Object(t.a)(Re,$t);var Ct=Object(s.a)(Re);function Re(De,Pe){var et;return Object(y.a)(this,Re),et=Ct.call(this,"xhr-msstream-loader"),et.TAG="MSStreamLoader",et._seekHandler=De,et._config=Pe,et._needStash=!0,et._xhr=null,et._reader=null,et._totalRange=null,et._currentRange=null,et._currentRequestURL=null,et._currentRedirectedURL=null,et._contentLength=null,et._receivedLength=0,et._bufferLimit=16*1024*1024,et._lastTimeBufferSize=0,et._isReconnecting=!1,et}return Object(p.a)(Re,[{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)(Re.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,et){this._internalOpen(Pe,et,!1)}},{key:"_internalOpen",value:function(Pe,et,yt){this._dataSource=Pe,yt?this._currentRange=et:this._totalRange=et;var St=Pe.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?St=this._currentRedirectedURL:Pe.redirectedURL!=null&&(St=Pe.redirectedURL));var Vt=this._seekHandler.getConfig(St,et);this._currentRequestURL=Vt.url;var Rr=this._reader=new self.MSStreamReader;Rr.onprogress=this._msrOnProgress.bind(this),Rr.onload=this._msrOnLoad.bind(this),Rr.onerror=this._msrOnError.bind(this);var Vr=this._xhr=new XMLHttpRequest;if(Vr.open("GET",Vt.url,!0),Vr.responseType="ms-stream",Vr.onreadystatechange=this._xhrOnReadyStateChange.bind(this),Vr.onerror=this._xhrOnError.bind(this),Pe.withCredentials&&(Vr.withCredentials=!0),typeof Vt.headers=="object"){var hn=Vt.headers;for(var Ft in hn)hn.hasOwnProperty(Ft)&&Vr.setRequestHeader(Ft,hn[Ft])}if(typeof this._config.headers=="object"){var vt=this._config.headers;for(var bt in vt)vt.hasOwnProperty(bt)&&Vr.setRequestHeader(bt,vt[bt])}this._isReconnecting?this._isReconnecting=!1:this._status=c.kConnecting,Vr.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=c.kComplete}},{key:"_internalAbort",value:function(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}},{key:"_xhrOnReadyStateChange",value:function(Pe){var et=Pe.target;if(et.readyState===2)if(et.status>=200&&et.status<=299){if(this._status=c.kBuffering,et.responseURL!=null){var yt=this._seekHandler.removeURLParameters(et.responseURL);et.responseURL!==this._currentRequestURL&&yt!==this._currentRedirectedURL&&(this._currentRedirectedURL=yt,this._onURLRedirect&&this._onURLRedirect(yt))}var St=et.getResponseHeader("Content-Length");if(St!=null&&this._contentLength==null){var Vt=parseInt(St);Vt>0&&(this._contentLength=Vt,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=c.kError,this._onError)this._onError(h.HTTP_STATUS_CODE_INVALID,{code:et.status,msg:et.statusText});else throw new e("MSStreamLoader: Http code invalid, "+et.status+" "+et.statusText);else if(et.readyState===3&&(et.status>=200&&et.status<=299)){this._status=c.kBuffering;var Rr=et.response;this._reader.readAsArrayBuffer(Rr)}}},{key:"_xhrOnError",value:function(Pe){this._status=c.kError;var et=h.EXCEPTION,yt={code:-1,msg:Pe.constructor.name+" "+Pe.type};if(this._onError)this._onError(et,yt);else throw new e(yt.msg)}},{key:"_msrOnProgress",value:function(Pe){var et=Pe.target,yt=et.result;if(yt==null){this._doReconnectIfNeeded();return}var St=yt.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=yt.byteLength;var Vt=this._totalRange.from+this._receivedLength;this._receivedLength+=St.byteLength,this._onDataArrival&&this._onDataArrival(St,Vt,this._receivedLength),yt.byteLength>=this._bufferLimit&&(u.v(this.TAG,"MSStream buffer exceeded max size near ".concat(Vt+St.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}},{key:"_doReconnectIfNeeded",value:function(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();var Pe={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,Pe,!0)}}},{key:"_msrOnLoad",value:function(Pe){this._status=c.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(Pe){this._status=c.kError;var et=0,yt=null;if(this._contentLength&&this._receivedLength<this._contentLength?(et=h.EARLY_EOF,yt={code:-1,msg:"MSStream meet Early-Eof"}):(et=h.EARLY_EOF,yt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(et,yt);else throw new e(yt.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var Pe=new XMLHttpRequest;return Pe.open("GET","https://example.com",!0),Pe.responseType="ms-stream",Pe.responseType==="ms-stream"}catch(et){return u.w("MSStreamLoader",et.message),!1}}}]),Re}(g),R=I,M=function($t){Object(t.a)(Re,$t);var Ct=Object(s.a)(Re);function Re(De,Pe){var et;return Object(y.a)(this,Re),et=Ct.call(this,"xhr-range-loader"),et.TAG="RangeLoader",et._seekHandler=De,et._config=Pe,et._needStash=!1,et._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],et._currentChunkSizeKB=384,et._currentSpeedNormalized=0,et._zeroSpeedChunkCount=0,et._xhr=null,et._speedSampler=new i,et._requestAbort=!1,et._waitForTotalLength=!1,et._totalLengthReceived=!1,et._currentRequestURL=null,et._currentRedirectedURL=null,et._currentRequestRange=null,et._totalLength=null,et._contentLength=null,et._receivedLength=0,et._lastTimeLoaded=0,et}return Object(p.a)(Re,[{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)(Re.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(Pe,et){this._dataSource=Pe,this._range=et,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 Pe=this._currentChunkSizeKB*1024,et=this._range.from+this._receivedLength,yt=et+Pe;this._contentLength!=null&&(yt-this._range.from>=this._contentLength&&(yt=this._range.from+this._contentLength-1)),this._currentRequestRange={from:et,to:yt},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Pe,et){this._lastTimeLoaded=0;var yt=Pe.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?yt=this._currentRedirectedURL:Pe.redirectedURL!=null&&(yt=Pe.redirectedURL));var St=this._seekHandler.getConfig(yt,et);this._currentRequestURL=St.url;var Vt=this._xhr=new XMLHttpRequest;if(Vt.open("GET",St.url,!0),Vt.responseType="arraybuffer",Vt.onreadystatechange=this._onReadyStateChange.bind(this),Vt.onprogress=this._onProgress.bind(this),Vt.onload=this._onLoad.bind(this),Vt.onerror=this._onXhrError.bind(this),Pe.withCredentials&&(Vt.withCredentials=!0),typeof St.headers=="object"){var Rr=St.headers;for(var Vr in Rr)Rr.hasOwnProperty(Vr)&&Vt.setRequestHeader(Vr,Rr[Vr])}if(typeof this._config.headers=="object"){var hn=this._config.headers;for(var Ft in hn)hn.hasOwnProperty(Ft)&&Vt.setRequestHeader(Ft,hn[Ft])}Vt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=c.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(Pe){var et=Pe.target;if(et.readyState===2){if(et.responseURL!=null){var yt=this._seekHandler.removeURLParameters(et.responseURL);et.responseURL!==this._currentRequestURL&&yt!==this._currentRedirectedURL&&(this._currentRedirectedURL=yt,this._onURLRedirect&&this._onURLRedirect(yt))}if(et.status>=200&&et.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:et.status,msg:et.statusText});else throw new e("RangeLoader: Http code invalid, "+et.status+" "+et.statusText)}}},{key:"_onProgress",value:function(Pe){if(this._status===c.kError)return;if(this._contentLength===null){var et=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,et=!0;var yt=Pe.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,et){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var St=Pe.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Pe.loaded,this._speedSampler.addBytes(St)}},{key:"_normalizeSpeed",value:function(Pe){var et=this._chunkSizeKBList,yt=et.length-1,St=0,Vt=0,Rr=yt;if(Pe<et[0])return et[0];for(;Vt<=Rr;){if(St=Vt+Math.floor((Rr-Vt)/2),St===yt||Pe>=et[St]&&Pe<et[St+1])return et[St];et[St]<Pe?Vt=St+1:Rr=St-1}}},{key:"_onLoad",value:function(Pe){if(this._status===c.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var et=this._speedSampler.lastSecondKBps;if(et===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(et=this._speedSampler.currentKBps)),et!==0){var yt=this._normalizeSpeed(et);this._currentSpeedNormalized!==yt&&(this._currentSpeedNormalized=yt,this._currentChunkSizeKB=yt)}var St=Pe.target.response,Vt=this._range.from+this._receivedLength;this._receivedLength+=St.byteLength;var Rr=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Rr=!0,this._onDataArrival&&this._onDataArrival(St,Vt,this._receivedLength),Rr&&(this._status=c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(Pe){this._status=c.kError;var et=0,yt=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(et=h.EARLY_EOF,yt={code:-1,msg:"RangeLoader meet Early-Eof"}):(et=h.EXCEPTION,yt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(et,yt);else throw new e(yt.msg)}}],[{key:"isSupported",value:function(){try{var Pe=new XMLHttpRequest;return Pe.open("GET","https://example.com",!0),Pe.responseType="arraybuffer",Pe.responseType==="arraybuffer"}catch(et){return u.w("RangeLoader",et.message),!1}}}]),Re}(g),B=M,P=function($t){Object(t.a)(Re,$t);var Ct=Object(s.a)(Re);function Re(){var De;return Object(y.a)(this,Re),De=Ct.call(this,"websocket-loader"),De.TAG="WebSocketLoader",De._needStash=!0,De._ws=null,De._requestAbort=!1,De._receivedLength=0,De}return Object(p.a)(Re,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(A.a)(Object(b.a)(Re.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe){try{var et=this._ws=new self.WebSocket(Pe.url);et.binaryType="arraybuffer",et.onopen=this._onWebSocketOpen.bind(this),et.onclose=this._onWebSocketClose.bind(this),et.onmessage=this._onWebSocketMessage.bind(this),et.onerror=this._onWebSocketError.bind(this),this._status=c.kConnecting}catch(St){this._status=c.kError;var yt={code:St.code,msg:St.message};if(this._onError)this._onError(h.EXCEPTION,yt);else throw new e(yt.msg)}}},{key:"abort",value:function(){var Pe=this._ws;Pe&&(Pe.readyState===0||Pe.readyState===1)&&(this._requestAbort=!0,Pe.close()),this._ws=null,this._status=c.kComplete}},{key:"_onWebSocketOpen",value:function(Pe){this._status=c.kBuffering}},{key:"_onWebSocketClose",value:function(Pe){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=c.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(Pe){var et=this;if(Pe.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Pe.data);else if(Pe.data instanceof Blob){var yt=new FileReader;yt.onload=function(){et._dispatchArrayBuffer(yt.result)},yt.readAsArrayBuffer(Pe.data)}else{this._status=c.kError;var St={code:-1,msg:"Unsupported WebSocket message type: "+Pe.data.constructor.name};if(this._onError)this._onError(h.EXCEPTION,St);else throw new e(St.msg)}}},{key:"_dispatchArrayBuffer",value:function(Pe){var et=Pe,yt=this._receivedLength;this._receivedLength+=et.byteLength,this._onDataArrival&&this._onDataArrival(et,yt,this._receivedLength)}},{key:"_onWebSocketError",value:function(Pe){this._status=c.kError;var et={code:Pe.code,msg:Pe.message};if(this._onError)this._onError(h.EXCEPTION,et);else throw new e(et.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(Pe){return!1}}}]),Re}(g),X=P,F=function(){function $t(Ct){Object(y.a)(this,$t),this._zeroStart=Ct||!1}return Object(p.a)($t,[{key:"getConfig",value:function(Re,De){var Pe={};if(De.from!==0||De.to!==-1){var et;De.to!==-1?et="bytes=".concat(De.from.toString(),"-").concat(De.to.toString()):et="bytes=".concat(De.from.toString(),"-"),Pe.Range=et}else this._zeroStart&&(Pe.Range="bytes=0-");return{url:Re,headers:Pe}}},{key:"removeURLParameters",value:function(Re){return Re}}]),$t}(),j=F,K=function(){function $t(Ct,Re){Object(y.a)(this,$t),this._startName=Ct,this._endName=Re}return Object(p.a)($t,[{key:"getConfig",value:function(Re,De){var Pe=Re;if(De.from!==0||De.to!==-1){var et=!0;Pe.indexOf("?")===-1&&(Pe+="?",et=!1),et&&(Pe+="&"),Pe+="".concat(this._startName,"=").concat(De.from.toString()),De.to!==-1&&(Pe+="&".concat(this._endName,"=").concat(De.to.toString()))}return{url:Pe,headers:{}}}},{key:"removeURLParameters",value:function(Re){var De=Re.split("?")[0],Pe=void 0,et=Re.indexOf("?");et!==-1&&(Pe=Re.substring(et+1));var yt="";if(Pe!=null&&Pe.length>0)for(var St=Pe.split("&"),Vt=0;Vt<St.length;Vt++){var Rr=St[Vt].split("="),Vr=Vt>0;Rr[0]!==this._startName&&Rr[0]!==this._endName&&(Vr&&(yt+="&"),yt+=St[Vt])}return yt.length===0?De:De+"?"+yt}}]),$t}(),z=K,V=function(){function $t(Ct,Re,De){Object(y.a)(this,$t),this.TAG="IOController",this._config=Re,this._extraData=De,this._stashInitialSize=1024*384,Re.stashInitialSize!=null&&Re.stashInitialSize>0&&(this._stashInitialSize=Re.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,Re.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=Ct,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(Ct.url),this._refTotalLength=Ct.filesize?Ct.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new i,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Object(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(Re){this._extraData=Re}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Re){this._onDataArrival=Re}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(Re){this._onSeeked=Re}},{key:"onError",get:function(){return this._onError},set:function(Re){this._onError=Re}},{key:"onComplete",get:function(){return this._onComplete},set:function(Re){this._onComplete=Re}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(Re){this._onRedirect=Re}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(Re){this._onRecoveredEarlyEof=Re}},{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 Re=this._config;if(Re.seekType==="range")this._seekHandler=new j(this._config.rangeLoadZeroStart);else if(Re.seekType==="param"){var De=Re.seekParamStart||"bstart",Pe=Re.seekParamEnd||"bend";this._seekHandler=new z(De,Pe)}else if(Re.seekType==="custom"){if(typeof Re.customSeekHandler!="function")throw new r("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new Re.customSeekHandler}else throw new r("Invalid seekType in config: ".concat(Re.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=X;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(Re){this._currentRange={from:0,to:-1},Re&&(this._currentRange.from=Re),this._speedSampler.reset(),Re||(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 Re=this._resumeFrom;this._resumeFrom=0,this._internalSeek(Re,!0)}}},{key:"seek",value:function(Re){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(Re,!0)}},{key:"_internalSeek",value:function(Re,De){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(De),this._loader.destroy(),this._loader=null;var Pe={from:Re,to:-1};this._currentRange={from:Pe.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Pe),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(Re){if(!Re||typeof Re!="string"||Re.length===0)throw new r("Url must be a non-empty string!");this._dataSource.url=Re}},{key:"_expandBuffer",value:function(Re){for(var De=this._stashSize;De+1024*1024*1<Re;)De*=2;if(De+=1024*1024*1,De===this._bufferSize)return;var Pe=new ArrayBuffer(De);if(this._stashUsed>0){var et=new Uint8Array(this._stashBuffer,0,this._stashUsed),yt=new Uint8Array(Pe,0,De);yt.set(et,0)}this._stashBuffer=Pe,this._bufferSize=De}},{key:"_normalizeSpeed",value:function(Re){var De=this._speedNormalizeList,Pe=De.length-1,et=0,yt=0,St=Pe;if(Re<De[0])return De[0];for(;yt<=St;){if(et=yt+Math.floor((St-yt)/2),et===Pe||Re>=De[et]&&Re<De[et+1])return De[et];De[et]<Re?yt=et+1:St=et-1}}},{key:"_adjustStashSize",value:function(Re){var De=0;this._config.isLive||Re<512?De=Re:Re>=512&&Re<=1024?De=Math.floor(Re*1.5):De=Re*2,De>8192&&(De=8192);var Pe=De*1024+1024*1024*1;this._bufferSize<Pe&&this._expandBuffer(Pe),this._stashSize=De*1024}},{key:"_dispatchChunks",value:function(Re,De){return this._currentRange.to=De+Re.byteLength-1,this._onDataArrival(Re,De)}},{key:"_onURLRedirect",value:function(Re){this._redirectedURL=Re,this._onRedirect&&this._onRedirect(Re)}},{key:"_onContentLengthKnown",value:function(Re){Re&&this._fullRequestFlag&&(this._totalLength=Re,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(Re,De,Pe){if(!this._onDataArrival)throw new l("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(Re.byteLength);var et=this._speedSampler.lastSecondKBps;if(et!==0){var yt=this._normalizeSpeed(et);this._speedNormalized!==yt&&(this._speedNormalized=yt,this._adjustStashSize(yt))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=De),this._stashUsed+Re.byteLength<=this._stashSize){var vt=new Uint8Array(this._stashBuffer,0,this._stashSize);vt.set(new Uint8Array(Re),this._stashUsed),this._stashUsed+=Re.byteLength}else{var bt=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var fr=this._stashBuffer.slice(0,this._stashUsed),Qt=this._dispatchChunks(fr,this._stashByteStart);if(Qt<fr.byteLength){if(Qt>0){var Mt=new Uint8Array(fr,Qt);bt.set(Mt,0),this._stashUsed=Mt.byteLength,this._stashByteStart+=Qt}}else this._stashUsed=0,this._stashByteStart+=Qt;this._stashUsed+Re.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+Re.byteLength),bt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),bt.set(new Uint8Array(Re),this._stashUsed),this._stashUsed+=Re.byteLength}else{var qt=this._dispatchChunks(Re,De);if(qt<Re.byteLength){var kt=Re.byteLength-qt;kt>this._bufferSize&&(this._expandBuffer(kt),bt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),bt.set(new Uint8Array(Re,qt),0),this._stashUsed+=kt,this._stashByteStart=De+qt}}}else if(this._stashUsed===0){var St=this._dispatchChunks(Re,De);if(St<Re.byteLength){var Vt=Re.byteLength-St;Vt>this._bufferSize&&this._expandBuffer(Vt);var Rr=new Uint8Array(this._stashBuffer,0,this._bufferSize);Rr.set(new Uint8Array(Re,St),0),this._stashUsed+=Vt,this._stashByteStart=De+St}}else{this._stashUsed+Re.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+Re.byteLength);var Vr=new Uint8Array(this._stashBuffer,0,this._bufferSize);Vr.set(new Uint8Array(Re),this._stashUsed),this._stashUsed+=Re.byteLength;var hn=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(hn<this._stashUsed&&hn>0){var Ft=new Uint8Array(this._stashBuffer,hn);Vr.set(Ft,0)}this._stashUsed-=hn,this._stashByteStart+=hn}}},{key:"_flushStashBuffer",value:function(Re){if(this._stashUsed>0){var De=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(De,this._stashByteStart),et=De.byteLength-Pe;if(Pe<De.byteLength)if(Re)u.w(this.TAG,"".concat(et," bytes unconsumed data remain when flush buffer, dropped"));else{if(Pe>0){var yt=new Uint8Array(this._stashBuffer,0,this._bufferSize),St=new Uint8Array(De,Pe);yt.set(St,0),this._stashUsed=St.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,et}return 0}},{key:"_onLoaderComplete",value:function(Re,De){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(Re,De){u.e(this.TAG,"Loader error, code = ".concat(De.code,", msg = ").concat(De.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,Re=h.UNRECOVERABLE_EARLY_EOF);switch(Re){case h.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var Pe=this._currentRange.to+1;Pe<this._totalLength&&(u.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Pe,!1));return}Re=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(Re,De);else throw new e("IOException: "+De.msg)}}]),$t}(),Q=V,G={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function te(){return Object.assign({},G)}var q=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 Re=new Q({},te()),De=Re.loaderType;return Re.destroy(),De=="fetch-stream-loader"||De=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var Re=new Q({},te()),De=Re.loaderType;return Re.destroy(),De}},{key:"supportNativeMediaPlayback",value:function(Re){$t.videoElement==null&&($t.videoElement=window.document.createElement("video"));var De=$t.videoElement.canPlayType(Re);return De==="probably"||De=="maybe"}},{key:"getFeatureList",value:function(){var Re={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return Re.mseFlvPlayback=$t.supportMSEH264Playback(),Re.networkStreamIO=$t.supportNetworkStreamIO(),Re.networkLoaderName=$t.getNetworkLoaderTypeName(),Re.mseLiveFlvPlayback=Re.mseFlvPlayback&&Re.networkStreamIO,Re.nativeMP4H264Playback=$t.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Re.nativeWebmVP8Playback=$t.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),Re.nativeWebmVP9Playback=$t.supportNativeMediaPlayback('video/webm; codecs="vp9"'),Re}}]),$t}(),le=q,re={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"},we=re,Ie=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"forceGlobalTag",get:function(){return u.FORCE_GLOBAL_TAG},set:function(Re){u.FORCE_GLOBAL_TAG=Re,$t._notifyChange()}},{key:"globalTag",get:function(){return u.GLOBAL_TAG},set:function(Re){u.GLOBAL_TAG=Re,$t._notifyChange()}},{key:"enableAll",get:function(){return u.ENABLE_VERBOSE&&u.ENABLE_DEBUG&&u.ENABLE_INFO&&u.ENABLE_WARN&&u.ENABLE_ERROR},set:function(Re){u.ENABLE_VERBOSE=Re,u.ENABLE_DEBUG=Re,u.ENABLE_INFO=Re,u.ENABLE_WARN=Re,u.ENABLE_ERROR=Re,$t._notifyChange()}},{key:"enableDebug",get:function(){return u.ENABLE_DEBUG},set:function(Re){u.ENABLE_DEBUG=Re,$t._notifyChange()}},{key:"enableVerbose",get:function(){return u.ENABLE_VERBOSE},set:function(Re){u.ENABLE_VERBOSE=Re,$t._notifyChange()}},{key:"enableInfo",get:function(){return u.ENABLE_INFO},set:function(Re){u.ENABLE_INFO=Re,$t._notifyChange()}},{key:"enableWarn",get:function(){return u.ENABLE_WARN},set:function(Re){u.ENABLE_WARN=Re,$t._notifyChange()}},{key:"enableError",get:function(){return u.ENABLE_ERROR},set:function(Re){u.ENABLE_ERROR=Re,$t._notifyChange()}},{key:"getConfig",value:function(){return{globalTag:u.GLOBAL_TAG,forceGlobalTag:u.FORCE_GLOBAL_TAG,enableVerbose:u.ENABLE_VERBOSE,enableDebug:u.ENABLE_DEBUG,enableInfo:u.ENABLE_INFO,enableWarn:u.ENABLE_WARN,enableError:u.ENABLE_ERROR,enableCallback:u.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(Re){u.GLOBAL_TAG=Re.globalTag,u.FORCE_GLOBAL_TAG=Re.forceGlobalTag,u.ENABLE_VERBOSE=Re.enableVerbose,u.ENABLE_DEBUG=Re.enableDebug,u.ENABLE_INFO=Re.enableInfo,u.ENABLE_WARN=Re.enableWarn,u.ENABLE_ERROR=Re.enableError,u.ENABLE_CALLBACK=Re.enableCallback}},{key:"_notifyChange",value:function(){var Re=$t.emitter;if(Re.listenerCount("change")>0){var De=$t.getConfig();Re.emit("change",De)}}},{key:"registerListener",value:function(Re){$t.emitter.addListener("change",Re)}},{key:"removeListener",value:function(Re){$t.emitter.removeListener("change",Re)}},{key:"addLogListener",value:function(Re){u.emitter.addListener("log",Re),u.emitter.listenerCount("log")>0&&(u.ENABLE_CALLBACK=!0,$t._notifyChange())}},{key:"removeLogListener",value:function(Re){u.emitter.removeListener("log",Re),u.emitter.listenerCount("log")===0&&(u.ENABLE_CALLBACK=!1,$t._notifyChange())}}]),$t}();Ie.emitter=new f.a;var Me=Ie,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 Re=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,De=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&&Re&&De}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(Re){if(this.keyframesIndex==null)return null;var De=this.keyframesIndex,Pe=this._search(De.times,Re);return{index:Pe,milliseconds:De.times[Pe],fileposition:De.filepositions[Pe]}}},{key:"_search",value:function(Re,De){var Pe=0,et=Re.length-1,yt=0,St=0,Vt=et;for(De<Re[0]&&(Pe=0,St=Vt+1);St<=Vt;)if(yt=St+Math.floor((Vt-St)/2),yt===et||De>=Re[yt]&&De<Re[yt+1]){Pe=yt;break}else Re[yt]<De?St=yt+1:Vt=yt-1;return Pe}}]),$t}(),Ve=Je;function ut($t,Ct,Re){var De=$t;if(Ct+Re<De.length){for(;Re--;)if((De[++Ct]&192)!==128)return!1;return!0}else return!1}function Fe($t){for(var Ct=[],Re=$t,De=0,Pe=$t.length;De<Pe;){if(Re[De]<128){Ct.push(String.fromCharCode(Re[De])),++De;continue}else if(!(Re[De]<192)){if(Re[De]<224){if(ut(Re,De,1)){var et=(Re[De]&31)<<6|Re[De+1]&63;if(et>=128){Ct.push(String.fromCharCode(et&65535)),De+=2;continue}}}else if(Re[De]<240){if(ut(Re,De,2)){var yt=(Re[De]&15)<<12|(Re[De+1]&63)<<6|Re[De+2]&63;if(yt>=2048&&(yt&63488)!==55296){Ct.push(String.fromCharCode(yt&65535)),De+=3;continue}}}else if(Re[De]<248&&ut(Re,De,3)){var St=(Re[De]&7)<<18|(Re[De+1]&63)<<12|(Re[De+2]&63)<<6|Re[De+3]&63;if(St>65536&&St<1114112){St-=65536,Ct.push(String.fromCharCode(St>>>10|55296)),Ct.push(String.fromCharCode(St&1023|56320)),De+=4;continue}}}Ct.push(String.fromCharCode(65533)),++De}return Ct.join("")}var ae=Fe,at=function(){var $t=new ArrayBuffer(2);return new DataView($t).setInt16(0,256,!0),new Int16Array($t)[0]===256}(),he=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"parseScriptData",value:function(Re,De,Pe){var et={};try{var yt=$t.parseValue(Re,De,Pe),St=$t.parseValue(Re,De+yt.size,Pe-yt.size);et[yt.data]=St.data}catch(Vt){u.e("AMF",Vt.toString())}return et}},{key:"parseObject",value:function(Re,De,Pe){if(Pe<3)throw new l("Data not enough when parse ScriptDataObject");var et=$t.parseString(Re,De,Pe),yt=$t.parseValue(Re,De+et.size,Pe-et.size),St=yt.objectEnd;return{data:{name:et.data,value:yt.data},size:et.size+yt.size,objectEnd:St}}},{key:"parseVariable",value:function(Re,De,Pe){return $t.parseObject(Re,De,Pe)}},{key:"parseString",value:function(Re,De,Pe){if(Pe<2)throw new l("Data not enough when parse String");var et=new DataView(Re,De,Pe),yt=et.getUint16(0,!at),St;return yt>0?St=ae(new Uint8Array(Re,De+2,yt)):St="",{data:St,size:2+yt}}},{key:"parseLongString",value:function(Re,De,Pe){if(Pe<4)throw new l("Data not enough when parse LongString");var et=new DataView(Re,De,Pe),yt=et.getUint32(0,!at),St;return yt>0?St=ae(new Uint8Array(Re,De+4,yt)):St="",{data:St,size:4+yt}}},{key:"parseDate",value:function(Re,De,Pe){if(Pe<10)throw new l("Data size invalid when parse Date");var et=new DataView(Re,De,Pe),yt=et.getFloat64(0,!at),St=et.getInt16(8,!at);return yt+=St*60*1e3,{data:new Date(yt),size:8+2}}},{key:"parseValue",value:function(Re,De,Pe){if(Pe<1)throw new l("Data not enough when parse Value");var et=new DataView(Re,De,Pe),yt=1,St=et.getUint8(0),Vt,Rr=!1;try{switch(St){case 0:Vt=et.getFloat64(1,!at),yt+=8;break;case 1:{var Vr=et.getUint8(1);Vt=!!Vr,yt+=1;break}case 2:{var hn=$t.parseString(Re,De+1,Pe-1);Vt=hn.data,yt+=hn.size;break}case 3:{Vt={};var Ft=0;for((et.getUint32(Pe-4,!at)&16777215)===9&&(Ft=3);yt<Pe-4;){var vt=$t.parseObject(Re,De+yt,Pe-yt-Ft);if(vt.objectEnd)break;Vt[vt.data.name]=vt.data.value,yt+=vt.size}if(yt<=Pe-3){var bt=et.getUint32(yt-1,!at)&16777215;bt===9&&(yt+=3)}break}case 8:{Vt={},yt+=4;var fr=0;for((et.getUint32(Pe-4,!at)&16777215)===9&&(fr=3);yt<Pe-8;){var Qt=$t.parseVariable(Re,De+yt,Pe-yt-fr);if(Qt.objectEnd)break;Vt[Qt.data.name]=Qt.data.value,yt+=Qt.size}if(yt<=Pe-3){var Mt=et.getUint32(yt-1,!at)&16777215;Mt===9&&(yt+=3)}break}case 9:Vt=void 0,yt=1,Rr=!0;break;case 10:{Vt=[];var qt=et.getUint32(1,!at);yt+=4;for(var kt=0;kt<qt;kt++){var er=$t.parseValue(Re,De+yt,Pe-yt);Vt.push(er.data),yt+=er.size}break}case 11:{var Kr=$t.parseDate(Re,De+1,Pe-1);Vt=Kr.data,yt+=Kr.size;break}case 12:{var Ir=$t.parseString(Re,De+1,Pe-1);Vt=Ir.data,yt+=Ir.size;break}default:yt=Pe,u.w("AMF","Unsupported AMF value type "+St)}}catch(Dr){u.e("AMF",Dr.toString())}return{data:Vt,size:yt,objectEnd:Rr}}}]),$t}(),J=he,Y=function(){function $t(Ct){Object(y.a)(this,$t),this.TAG="ExpGolomb",this._buffer=Ct,this._buffer_index=0,this._total_bytes=Ct.byteLength,this._total_bits=Ct.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 Re=this._total_bytes-this._buffer_index;if(Re<=0)throw new l("ExpGolomb: _fillCurrentWord() but no bytes available");var De=Math.min(4,Re),Pe=new Uint8Array(4);Pe.set(this._buffer.subarray(this._buffer_index,this._buffer_index+De)),this._current_word=new DataView(Pe.buffer).getUint32(0,!1),this._buffer_index+=De,this._current_word_bits_left=De*8}},{key:"readBits",value:function(Re){if(Re>32)throw new r("ExpGolomb: readBits() bits exceeded max 32bits!");if(Re<=this._current_word_bits_left){var De=this._current_word>>>32-Re;return this._current_word<<=Re,this._current_word_bits_left-=Re,De}var Pe=this._current_word_bits_left?this._current_word:0;Pe=Pe>>>32-this._current_word_bits_left;var et=Re-this._current_word_bits_left;this._fillCurrentWord();var yt=Math.min(et,this._current_word_bits_left),St=this._current_word>>>32-yt;return this._current_word<<=yt,this._current_word_bits_left-=yt,Pe=Pe<<yt|St,Pe}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var Re;for(Re=0;Re<this._current_word_bits_left;Re++)if((this._current_word&2147483648>>>Re)!==0)return this._current_word<<=Re,this._current_word_bits_left-=Re,Re;return this._fillCurrentWord(),Re+this._skipLeadingZero()}},{key:"readUEG",value:function(){var Re=this._skipLeadingZero();return this.readBits(Re+1)-1}},{key:"readSEG",value:function(){var Re=this.readUEG();return Re&1?Re+1>>>1:-1*(Re>>>1)}}]),$t}(),$=Y,de=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"_ebsp2rbsp",value:function(Re){for(var De=Re,Pe=De.byteLength,et=new Uint8Array(Pe),yt=0,St=0;St<Pe;St++){if(St>=2&&(De[St]===3&&De[St-1]===0&&De[St-2]===0))continue;et[yt]=De[St],yt++}return new Uint8Array(et.buffer,0,yt)}},{key:"parseSPS",value:function(Re){var De=$t._ebsp2rbsp(Re),Pe=new $(De);Pe.readByte();var et=Pe.readByte();Pe.readByte();var yt=Pe.readByte();Pe.readUEG();var St=$t.getProfileString(et),Vt=$t.getLevelString(yt),Rr=1,Vr=420,hn=[0,420,422,444],Ft=8;if((et===100||et===110||et===122||et===244||et===44||et===83||et===86||et===118||et===128||et===138||et===144)&&(Rr=Pe.readUEG(),Rr===3&&Pe.readBits(1),Rr<=3&&(Vr=hn[Rr]),Ft=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool()))for(var vt=Rr!==3?8:12,bt=0;bt<vt;bt++)Pe.readBool()&&(bt<6?$t._skipScalingList(Pe,16):$t._skipScalingList(Pe,64));Pe.readUEG();var fr=Pe.readUEG();if(fr===0)Pe.readUEG();else if(fr===1){Pe.readBits(1),Pe.readSEG(),Pe.readSEG();for(var Qt=Pe.readUEG(),Mt=0;Mt<Qt;Mt++)Pe.readSEG()}var qt=Pe.readUEG();Pe.readBits(1);var kt=Pe.readUEG(),er=Pe.readUEG(),Kr=Pe.readBits(1);Kr===0&&Pe.readBits(1),Pe.readBits(1);var Ir=0,Dr=0,dn=0,yn=0,ti=Pe.readBool();ti&&(Ir=Pe.readUEG(),Dr=Pe.readUEG(),dn=Pe.readUEG(),yn=Pe.readUEG());var ei=1,fi=1,Ei=0,Di=!0,Hi=0,nt=0,Le=Pe.readBool();if(Le){if(Pe.readBool()){var je=Pe.readByte(),Xe=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],tt=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];je>0&&je<16?(ei=Xe[je-1],fi=tt[je-1]):je===255&&(ei=Pe.readByte()<<8|Pe.readByte(),fi=Pe.readByte()<<8|Pe.readByte())}if(Pe.readBool()&&Pe.readBool(),Pe.readBool()&&(Pe.readBits(4),Pe.readBool()&&Pe.readBits(24)),Pe.readBool()&&(Pe.readUEG(),Pe.readUEG()),Pe.readBool()){var Ze=Pe.readBits(32),st=Pe.readBits(32);Di=Pe.readBool(),Hi=st,nt=Ze*2,Ei=Hi/nt}}var Et=1;(ei!==1||fi!==1)&&(Et=ei/fi);var gt=0,pr=0;if(Rr===0)gt=1,pr=2-Kr;else{var qr=Rr===3?1:2,Qr=Rr===1?2:1;gt=qr,pr=Qr*(2-Kr)}var gn=(kt+1)*16,vr=(2-Kr)*((er+1)*16);gn-=(Ir+Dr)*gt,vr-=(dn+yn)*pr;var Vn=Math.ceil(gn*Et);return Pe.destroy(),Pe=null,{profile_string:St,level_string:Vt,bit_depth:Ft,ref_frames:qt,chroma_format:Vr,chroma_format_string:$t.getChromaFormatString(Vr),frame_rate:{fixed:Di,fps:Ei,fps_den:nt,fps_num:Hi},sar_ratio:{width:ei,height:fi},codec_size:{width:gn,height:vr},present_size:{width:Vn,height:vr}}}},{key:"_skipScalingList",value:function(Re,De){for(var Pe=8,et=8,yt=0,St=0;St<De;St++)et!==0&&(yt=Re.readSEG(),et=(Pe+yt+256)%256),Pe=et===0?Pe:et}},{key:"getProfileString",value:function(Re){switch(Re){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(Re){return(Re/10).toFixed(1)}},{key:"getChromaFormatString",value:function(Re){switch(Re){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),$t}(),be=de,Ce={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Be=Ce;function fe($t){return $t>>>8&255|($t&255)<<8}function Se($t){return($t&4278190080)>>>24|($t&16711680)>>>8|($t&65280)<<8|($t&255)<<24}function ke($t,Ct){return $t[Ct]<<24|$t[Ct+1]<<16|$t[Ct+2]<<8|$t[Ct+3]}var rt=function(){function $t(Ct,Re){Object(y.a)(this,$t),this.TAG="FLVDemuxer",this._config=Re,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=Ct.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=Ct.hasAudioTrack,this._hasVideo=Ct.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Ve,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var De=new ArrayBuffer(2);return new DataView(De).setInt16(0,256,!0),new Int16Array(De)[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(Re){return Re.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(Re){this._onTrackMetadata=Re}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(Re){this._onMediaInfo=Re}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(Re){this._onMetaDataArrived=Re}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(Re){this._onScriptDataArrived=Re}},{key:"onError",get:function(){return this._onError},set:function(Re){this._onError=Re}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(Re){this._onDataAvailable=Re}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(Re){this._timestampBase=Re}},{key:"overridedDuration",get:function(){return this._duration},set:function(Re){this._durationOverrided=!0,this._duration=Re,this._mediaInfo.duration=Re}},{key:"overridedHasAudio",set:function(Re){this._hasAudioFlagOverrided=!0,this._hasAudio=Re,this._mediaInfo.hasAudio=Re}},{key:"overridedHasVideo",set:function(Re){this._hasVideoFlagOverrided=!0,this._hasVideo=Re,this._mediaInfo.hasVideo=Re}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new Ve}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}},{key:"parseChunks",value:function(Re,De){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new l("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var Pe=0,et=this._littleEndian;if(De===0)if(Re.byteLength>13){var yt=$t.probe(Re);Pe=yt.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,De+Pe!==this._dataOffset&&u.w(this.TAG,"First time parsing but chunk byteStart invalid!");var St=new DataView(Re,Pe),Vt=St.getUint32(0,!et);Vt!==0&&u.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4}for(;Pe<Re.byteLength;){this._dispatch=!0;var Rr=new DataView(Re,Pe);if(Pe+11+4>Re.byteLength)break;var Vr=Rr.getUint8(0),hn=Rr.getUint32(0,!et)&16777215;if(Pe+11+hn+4>Re.byteLength)break;if(Vr!==8&&Vr!==9&&Vr!==18){u.w(this.TAG,"Unsupported tag type ".concat(Vr,", skipped")),Pe+=11+hn+4;continue}var Ft=Rr.getUint8(4),vt=Rr.getUint8(5),bt=Rr.getUint8(6),fr=Rr.getUint8(7),Qt=bt|vt<<8|Ft<<16|fr<<24,Mt=Rr.getUint32(7,!et)&16777215;Mt!==0&&u.w(this.TAG,"Meet tag which has StreamID != 0!");var qt=Pe+11;switch(Vr){case 8:this._parseAudioData(Re,qt,hn,Qt);break;case 9:this._parseVideoData(Re,qt,hn,Qt,De+Pe);break;case 18:this._parseScriptData(Re,qt,hn);break}var kt=Rr.getUint32(11+hn,!et);kt!==11+hn&&u.w(this.TAG,"Invalid PrevTagSize ".concat(kt)),Pe+=11+hn+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),Pe}},{key:"_parseScriptData",value:function(Re,De,Pe){var et=J.parseScriptData(Re,De,Pe);if(et.hasOwnProperty("onMetaData")){if(et.onMetaData==null||typeof et.onMetaData!="object"){u.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&u.w(this.TAG,"Found another onMetaData tag!"),this._metadata=et;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 St=Math.floor(yt.duration*this._timescale);this._duration=St,this._mediaInfo.duration=St}}else this._mediaInfo.duration=0;if(typeof yt.framerate=="number"){var Vt=Math.floor(yt.framerate*1e3);if(Vt>0){var Rr=Vt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Rr,this._referenceFrameRate.fps_num=Vt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Rr}}if(typeof yt.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var Vr=yt.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(Vr),yt.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=yt,u.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(et).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},et)))}},{key:"_parseKeyframesIndex",value:function(Re){for(var De=[],Pe=[],et=1;et<Re.times.length;et++){var yt=this._timestampBase+Math.floor(Re.times[et]*1e3);De.push(yt),Pe.push(Re.filepositions[et])}return{times:De,filepositions:Pe}}},{key:"_parseAudioData",value:function(Re,De,Pe,et){if(Pe<=1){u.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var yt=this._littleEndian,St=new DataView(Re,De,Pe),Vt=St.getUint8(0),Rr=Vt>>>4;if(Rr!==2&&Rr!==10){this._onError(Be.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Rr);return}var Vr=0,hn=(Vt&12)>>>2;if(hn>=0&&hn<=4)Vr=this._flvSoundRateTable[hn];else{this._onError(Be.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+hn);return}var Ft=(Vt&2)>>>1,vt=Vt&1,bt=this._audioMetadata,fr=this._audioTrack;if(bt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),bt=this._audioMetadata={},bt.type="audio",bt.id=fr.id,bt.timescale=this._timescale,bt.duration=this._duration,bt.audioSampleRate=Vr,bt.channelCount=vt===0?1:2),Rr===10){var Qt=this._parseAACAudioData(Re,De+1,Pe-1);if(Qt==null)return;if(Qt.packetType===0){bt.config&&u.w(this.TAG,"Found another AudioSpecificConfig!");var Mt=Qt.data;bt.audioSampleRate=Mt.samplingRate,bt.channelCount=Mt.channelCount,bt.codec=Mt.codec,bt.originalCodec=Mt.originalCodec,bt.config=Mt.config,bt.refSampleDuration=1024/bt.audioSampleRate*bt.timescale,u.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",bt);var qt=this._mediaInfo;qt.audioCodec=bt.originalCodec,qt.audioSampleRate=bt.audioSampleRate,qt.audioChannelCount=bt.channelCount,qt.hasVideo?qt.videoCodec!=null&&(qt.mimeType='video/x-flv; codecs="'+qt.videoCodec+","+qt.audioCodec+'"'):qt.mimeType='video/x-flv; codecs="'+qt.audioCodec+'"',qt.isComplete()&&this._onMediaInfo(qt)}else if(Qt.packetType===1){var kt=this._timestampBase+et,er={unit:Qt.data,length:Qt.data.byteLength,dts:kt,pts:kt};fr.samples.push(er),fr.length+=Qt.data.length}else u.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Qt.packetType))}else if(Rr===2){if(!bt.codec){var Kr=this._parseMP3AudioData(Re,De+1,Pe-1,!0);if(Kr==null)return;bt.audioSampleRate=Kr.samplingRate,bt.channelCount=Kr.channelCount,bt.codec=Kr.codec,bt.originalCodec=Kr.originalCodec,bt.refSampleDuration=1152/bt.audioSampleRate*bt.timescale,u.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",bt);var Ir=this._mediaInfo;Ir.audioCodec=bt.codec,Ir.audioSampleRate=bt.audioSampleRate,Ir.audioChannelCount=bt.channelCount,Ir.audioDataRate=Kr.bitRate,Ir.hasVideo?Ir.videoCodec!=null&&(Ir.mimeType='video/x-flv; codecs="'+Ir.videoCodec+","+Ir.audioCodec+'"'):Ir.mimeType='video/x-flv; codecs="'+Ir.audioCodec+'"',Ir.isComplete()&&this._onMediaInfo(Ir)}var Dr=this._parseMP3AudioData(Re,De+1,Pe-1,!1);if(Dr==null)return;var dn=this._timestampBase+et,yn={unit:Dr,length:Dr.byteLength,dts:dn,pts:dn};fr.samples.push(yn),fr.length+=Dr.length}}},{key:"_parseAACAudioData",value:function(Re,De,Pe){if(Pe<=1){u.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var et={},yt=new Uint8Array(Re,De,Pe);return et.packetType=yt[0],yt[0]===0?et.data=this._parseAACAudioSpecificConfig(Re,De+1,Pe-1):et.data=yt.subarray(1),et}},{key:"_parseAACAudioSpecificConfig",value:function(Re,De,Pe){var et=new Uint8Array(Re,De,Pe),yt=null,St=0,Vt=0,Rr=null,Vr=0,hn=null;if(St=Vt=et[0]>>>3,Vr=(et[0]&7)<<1|et[1]>>>7,Vr<0||Vr>=this._mpegSamplingRates.length){this._onError(Be.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var Ft=this._mpegSamplingRates[Vr],vt=(et[1]&120)>>>3;if(vt<0||vt>=8){this._onError(Be.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}St===5&&(hn=(et[1]&7)<<1|et[2]>>>7,Rr=(et[2]&124)>>>2);var bt=self.navigator.userAgent.toLowerCase();return bt.indexOf("firefox")!==-1?Vr>=6?(St=5,yt=new Array(4),hn=Vr-3):(St=2,yt=new Array(2),hn=Vr):bt.indexOf("android")!==-1?(St=2,yt=new Array(2),hn=Vr):(St=5,hn=Vr,yt=new Array(4),Vr>=6?hn=Vr-3:vt===1&&(St=2,yt=new Array(2),hn=Vr)),yt[0]=St<<3,yt[0]|=(Vr&15)>>>1,yt[1]=(Vr&15)<<7,yt[1]|=(vt&15)<<3,St===5&&(yt[1]|=(hn&15)>>>1,yt[2]=(hn&1)<<7,yt[2]|=2<<2,yt[3]=0),{config:yt,samplingRate:Ft,channelCount:vt,codec:"mp4a.40."+St,originalCodec:"mp4a.40."+Vt}}},{key:"_parseMP3AudioData",value:function(Re,De,Pe,et){if(Pe<4){u.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var yt=this._littleEndian,St=new Uint8Array(Re,De,Pe),Vt=null;if(et){if(St[0]!==255)return;var Rr=St[1]>>>3&3,Vr=(St[1]&6)>>1,hn=(St[2]&240)>>>4,Ft=(St[2]&12)>>>2,vt=St[3]>>>6&3,bt=vt!==3?2:1,fr=0,Qt=0,Mt=34,qt="mp3";switch(Rr){case 0:fr=this._mpegAudioV25SampleRateTable[Ft];break;case 2:fr=this._mpegAudioV20SampleRateTable[Ft];break;case 3:fr=this._mpegAudioV10SampleRateTable[Ft];break}switch(Vr){case 1:Mt=34,hn<this._mpegAudioL3BitRateTable.length&&(Qt=this._mpegAudioL3BitRateTable[hn]);break;case 2:Mt=33,hn<this._mpegAudioL2BitRateTable.length&&(Qt=this._mpegAudioL2BitRateTable[hn]);break;case 3:Mt=32,hn<this._mpegAudioL1BitRateTable.length&&(Qt=this._mpegAudioL1BitRateTable[hn]);break}Vt={bitRate:Qt,samplingRate:fr,channelCount:bt,codec:qt,originalCodec:qt}}else Vt=St;return Vt}},{key:"_parseVideoData",value:function(Re,De,Pe,et,yt){if(Pe<=1){u.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var St=new Uint8Array(Re,De,Pe)[0],Vt=(St&240)>>>4,Rr=St&15;if(Rr!==7){this._onError(Be.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(Rr));return}this._parseAVCVideoPacket(Re,De+1,Pe-1,et,yt,Vt)}},{key:"_parseAVCVideoPacket",value:function(Re,De,Pe,et,yt,St){if(Pe<4){u.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var Vt=this._littleEndian,Rr=new DataView(Re,De,Pe),Vr=Rr.getUint8(0),hn=Rr.getUint32(0,!Vt)&16777215,Ft=hn<<8>>8;if(Vr===0)this._parseAVCDecoderConfigurationRecord(Re,De+4,Pe-4);else if(Vr===1)this._parseAVCVideoData(Re,De+4,Pe-4,et,yt,St,Ft);else if(!(Vr===2)){this._onError(Be.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Vr));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(Re,De,Pe){if(Pe<7){u.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var et=this._videoMetadata,yt=this._videoTrack,St=this._littleEndian,Vt=new DataView(Re,De,Pe);et?typeof et.avcc!="undefined"&&u.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),et=this._videoMetadata={},et.type="video",et.id=yt.id,et.timescale=this._timescale,et.duration=this._duration);var Rr=Vt.getUint8(0),Vr=Vt.getUint8(1),hn=Vt.getUint8(2),Ft=Vt.getUint8(3);if(Rr!==1||Vr===0){this._onError(Be.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Vt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Be.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var vt=Vt.getUint8(5)&31;if(vt===0){this._onError(Be.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else vt>1&&u.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(vt));for(var bt=6,fr=0;fr<vt;fr++){var Qt=Vt.getUint16(bt,!St);if(bt+=2,Qt===0)continue;var Mt=new Uint8Array(Re,De+bt,Qt);bt+=Qt;var qt=be.parseSPS(Mt);if(fr!==0)continue;et.codecWidth=qt.codec_size.width,et.codecHeight=qt.codec_size.height,et.presentWidth=qt.present_size.width,et.presentHeight=qt.present_size.height,et.profile=qt.profile_string,et.level=qt.level_string,et.bitDepth=qt.bit_depth,et.chromaFormat=qt.chroma_format,et.sarRatio=qt.sar_ratio,et.frameRate=qt.frame_rate,(qt.frame_rate.fixed===!1||qt.frame_rate.fps_num===0||qt.frame_rate.fps_den===0)&&(et.frameRate=this._referenceFrameRate);var kt=et.frameRate.fps_den,er=et.frameRate.fps_num;et.refSampleDuration=et.timescale*(kt/er);for(var Kr=Mt.subarray(1,4),Ir="avc1.",Dr=0;Dr<3;Dr++){var dn=Kr[Dr].toString(16);dn.length<2&&(dn="0"+dn),Ir+=dn}et.codec=Ir;var yn=this._mediaInfo;yn.width=et.codecWidth,yn.height=et.codecHeight,yn.fps=et.frameRate.fps,yn.profile=et.profile,yn.level=et.level,yn.refFrames=qt.ref_frames,yn.chromaFormat=qt.chroma_format_string,yn.sarNum=et.sarRatio.width,yn.sarDen=et.sarRatio.height,yn.videoCodec=Ir,yn.hasAudio?yn.audioCodec!=null&&(yn.mimeType='video/x-flv; codecs="'+yn.videoCodec+","+yn.audioCodec+'"'):yn.mimeType='video/x-flv; codecs="'+yn.videoCodec+'"',yn.isComplete()&&this._onMediaInfo(yn)}var ti=Vt.getUint8(bt);if(ti===0){this._onError(Be.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else ti>1&&u.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(ti));bt++;for(var ei=0;ei<ti;ei++){var fi=Vt.getUint16(bt,!St);if(bt+=2,fi===0)continue;bt+=fi}et.avcc=new Uint8Array(Pe),et.avcc.set(new Uint8Array(Re,De,Pe),0),u.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",et)}},{key:"_parseAVCVideoData",value:function(Re,De,Pe,et,yt,St,Vt){for(var Rr=this._littleEndian,Vr=new DataView(Re,De,Pe),hn=[],Ft=0,vt=0,bt=this._naluLengthSize,fr=this._timestampBase+et,Qt=St===1;vt<Pe;){if(vt+4>=Pe){u.w(this.TAG,"Malformed Nalu near timestamp ".concat(fr,", offset = ").concat(vt,", dataSize = ").concat(Pe));break}var Mt=Vr.getUint32(vt,!Rr);if(bt===3&&(Mt>>>=8),Mt>Pe-bt){u.w(this.TAG,"Malformed Nalus near timestamp ".concat(fr,", NaluSize > DataSize!"));return}var qt=Vr.getUint8(vt+bt)&31;qt===5&&(Qt=!0);var kt=new Uint8Array(Re,De+vt,bt+Mt),er={type:qt,data:kt};hn.push(er),Ft+=kt.byteLength,vt+=bt+Mt}if(hn.length){var Kr=this._videoTrack,Ir={units:hn,length:Ft,isKeyframe:Qt,dts:fr,cts:Vt,pts:fr+Vt};Qt&&(Ir.fileposition=yt),Kr.samples.push(Ir),Kr.length+=Ft}}}],[{key:"probe",value:function(Re){var De=new Uint8Array(Re),Pe={match:!1};if(De[0]!==70||De[1]!==76||De[2]!==86||De[3]!==1)return Pe;var et=(De[4]&4)>>>2!==0,yt=(De[4]&1)!==0,St=ke(De,5);return St<9?Pe:{match:!0,consumed:St,dataOffset:St,hasAudioTrack:et,hasVideoTrack:yt}}}]),$t}(),xt=rt,ht=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 Re in $t.types)$t.types.hasOwnProperty(Re)&&($t.types[Re]=[Re.charCodeAt(0),Re.charCodeAt(1),Re.charCodeAt(2),Re.charCodeAt(3)]);var De=$t.constants={};De.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),De.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),De.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),De.STSC=De.STCO=De.STTS,De.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),De.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]),De.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]),De.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),De.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),De.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(Re){for(var De=8,Pe=null,et=Array.prototype.slice.call(arguments,1),yt=et.length,St=0;St<yt;St++)De+=et[St].byteLength;Pe=new Uint8Array(De),Pe[0]=De>>>24&255,Pe[1]=De>>>16&255,Pe[2]=De>>>8&255,Pe[3]=De&255,Pe.set(Re,4);for(var Vt=8,Rr=0;Rr<yt;Rr++)Pe.set(et[Rr],Vt),Vt+=et[Rr].byteLength;return Pe}},{key:"generateInitSegment",value:function(Re){var De=$t.box($t.types.ftyp,$t.constants.FTYP),Pe=$t.moov(Re),et=new Uint8Array(De.byteLength+Pe.byteLength);return et.set(De,0),et.set(Pe,De.byteLength),et}},{key:"moov",value:function(Re){var De=$t.mvhd(Re.timescale,Re.duration),Pe=$t.trak(Re),et=$t.mvex(Re);return $t.box($t.types.moov,De,Pe,et)}},{key:"mvhd",value:function(Re,De){return $t.box($t.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255,De>>>24&255,De>>>16&255,De>>>8&255,De&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(Re){return $t.box($t.types.trak,$t.tkhd(Re),$t.mdia(Re))}},{key:"tkhd",value:function(Re){var De=Re.id,Pe=Re.duration,et=Re.presentWidth,yt=Re.presentHeight;return $t.box($t.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,De>>>24&255,De>>>16&255,De>>>8&255,De&255,0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,et>>>8&255,et&255,0,0,yt>>>8&255,yt&255,0,0]))}},{key:"mdia",value:function(Re){return $t.box($t.types.mdia,$t.mdhd(Re),$t.hdlr(Re),$t.minf(Re))}},{key:"mdhd",value:function(Re){var De=Re.timescale,Pe=Re.duration;return $t.box($t.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,De>>>24&255,De>>>16&255,De>>>8&255,De&255,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,85,196,0,0]))}},{key:"hdlr",value:function(Re){var De=null;return Re.type==="audio"?De=$t.constants.HDLR_AUDIO:De=$t.constants.HDLR_VIDEO,$t.box($t.types.hdlr,De)}},{key:"minf",value:function(Re){var De=null;return Re.type==="audio"?De=$t.box($t.types.smhd,$t.constants.SMHD):De=$t.box($t.types.vmhd,$t.constants.VMHD),$t.box($t.types.minf,De,$t.dinf(),$t.stbl(Re))}},{key:"dinf",value:function(){var Re=$t.box($t.types.dinf,$t.box($t.types.dref,$t.constants.DREF));return Re}},{key:"stbl",value:function(Re){var De=$t.box($t.types.stbl,$t.stsd(Re),$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 De}},{key:"stsd",value:function(Re){return Re.type==="audio"?Re.codec==="mp3"?$t.box($t.types.stsd,$t.constants.STSD_PREFIX,$t.mp3(Re)):$t.box($t.types.stsd,$t.constants.STSD_PREFIX,$t.mp4a(Re)):$t.box($t.types.stsd,$t.constants.STSD_PREFIX,$t.avc1(Re))}},{key:"mp3",value:function(Re){var De=Re.channelCount,Pe=Re.audioSampleRate,et=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,De,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return $t.box($t.types[".mp3"],et)}},{key:"mp4a",value:function(Re){var De=Re.channelCount,Pe=Re.audioSampleRate,et=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,De,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return $t.box($t.types.mp4a,et,$t.esds(Re))}},{key:"esds",value:function(Re){var De=Re.config||[],Pe=De.length,et=new Uint8Array([0,0,0,0,3,23+Pe,0,1,0,4,15+Pe,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Pe]).concat(De).concat([6,1,2]));return $t.box($t.types.esds,et)}},{key:"avc1",value:function(Re){var De=Re.avcc,Pe=Re.codecWidth,et=Re.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,Pe>>>8&255,Pe&255,et>>>8&255,et&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,De))}},{key:"mvex",value:function(Re){return $t.box($t.types.mvex,$t.trex(Re))}},{key:"trex",value:function(Re){var De=Re.id,Pe=new Uint8Array([0,0,0,0,De>>>24&255,De>>>16&255,De>>>8&255,De&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return $t.box($t.types.trex,Pe)}},{key:"moof",value:function(Re,De){return $t.box($t.types.moof,$t.mfhd(Re.sequenceNumber),$t.traf(Re,De))}},{key:"mfhd",value:function(Re){var De=new Uint8Array([0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255]);return $t.box($t.types.mfhd,De)}},{key:"traf",value:function(Re,De){var Pe=Re.id,et=$t.box($t.types.tfhd,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),yt=$t.box($t.types.tfdt,new Uint8Array([0,0,0,0,De>>>24&255,De>>>16&255,De>>>8&255,De&255])),St=$t.sdtp(Re),Vt=$t.trun(Re,St.byteLength+16+16+8+16+8+8);return $t.box($t.types.traf,et,yt,Vt,St)}},{key:"sdtp",value:function(Re){for(var De=Re.samples||[],Pe=De.length,et=new Uint8Array(4+Pe),yt=0;yt<Pe;yt++){var St=De[yt].flags;et[yt+4]=St.isLeading<<6|St.dependsOn<<4|St.isDependedOn<<2|St.hasRedundancy}return $t.box($t.types.sdtp,et)}},{key:"trun",value:function(Re,De){var Pe=Re.samples||[],et=Pe.length,yt=12+16*et,St=new Uint8Array(yt);De+=8+yt,St.set([0,0,15,1,et>>>24&255,et>>>16&255,et>>>8&255,et&255,De>>>24&255,De>>>16&255,De>>>8&255,De&255],0);for(var Vt=0;Vt<et;Vt++){var Rr=Pe[Vt].duration,Vr=Pe[Vt].size,hn=Pe[Vt].flags,Ft=Pe[Vt].cts;St.set([Rr>>>24&255,Rr>>>16&255,Rr>>>8&255,Rr&255,Vr>>>24&255,Vr>>>16&255,Vr>>>8&255,Vr&255,hn.isLeading<<2|hn.dependsOn,hn.isDependedOn<<6|hn.hasRedundancy<<4|hn.isNonSync,0,0,Ft>>>24&255,Ft>>>16&255,Ft>>>8&255,Ft&255],12+16*Vt)}return $t.box($t.types.trun,St)}},{key:"mdat",value:function(Re){return $t.box($t.types.mdat,Re)}}]),$t}();ht.init();var He=ht,ir=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"getSilentFrame",value:function(Re,De){if(Re==="mp4a.40.2"){if(De===1)return new Uint8Array([0,200,0,128,35,128]);if(De===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(De===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(De===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(De===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(De===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(De===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(De===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(De===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}(),ct=ir,Xt=Object(p.a)(function $t(Ct,Re,De,Pe,et){Object(y.a)(this,$t),this.dts=Ct,this.pts=Re,this.duration=De,this.originalDts=Pe,this.isSyncPoint=et,this.fileposition=null}),hr=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(Re){Re.isSyncPoint=!0,this.syncPoints.push(Re)}}]),$t}(),Jt=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(Re){var De=this._list;if(Re.length===0)return;De.length>0&&Re[0].originalDts<De[De.length-1].originalDts&&this.clear(),Array.prototype.push.apply(De,Re)}},{key:"getLastSyncPointBeforeDts",value:function(Re){if(this._list.length==0)return null;var De=this._list,Pe=0,et=De.length-1,yt=0,St=0,Vt=et;for(Re<De[0].dts&&(Pe=0,St=Vt+1);St<=Vt;)if(yt=St+Math.floor((Vt-St)/2),yt===et||Re>=De[yt].dts&&Re<De[yt+1].dts){Pe=yt;break}else De[yt].dts<Re?St=yt+1:Vt=yt-1;return this._list[Pe]}}]),$t}(),Pt=function(){function $t(Ct){Object(y.a)(this,$t),this._type=Ct,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(Re){var De=this._list;if(De.length===0)return-2;var Pe=De.length-1,et=0,yt=0,St=Pe,Vt=0;if(Re<De[0].originalBeginDts)return Vt=-1,Vt;for(;yt<=St;)if(et=yt+Math.floor((St-yt)/2),et===Pe||Re>De[et].lastSample.originalDts&&Re<De[et+1].originalBeginDts){Vt=et;break}else De[et].originalBeginDts<Re?yt=et+1:St=et-1;return Vt}},{key:"_searchNearestSegmentAfter",value:function(Re){return this._searchNearestSegmentBefore(Re)+1}},{key:"append",value:function(Re){var De=this._list,Pe=Re,et=this._lastAppendLocation,yt=0;et!==-1&&et<De.length&&Pe.originalBeginDts>=De[et].lastSample.originalDts&&(et===De.length-1||et<De.length-1&&Pe.originalBeginDts<De[et+1].originalBeginDts)?yt=et+1:De.length>0&&(yt=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=yt,this._list.splice(yt,0,Pe)}},{key:"getLastSegmentBefore",value:function(Re){var De=this._searchNearestSegmentBefore(Re);return De>=0?this._list[De]:null}},{key:"getLastSampleBefore",value:function(Re){var De=this.getLastSegmentBefore(Re);return De!=null?De.lastSample:null}},{key:"getLastSyncPointBefore",value:function(Re){for(var De=this._searchNearestSegmentBefore(Re),Pe=this._list[De].syncPoints;Pe.length===0&&De>0;)De--,Pe=this._list[De].syncPoints;return Pe.length>0?Pe[Pe.length-1]:null}}]),$t}(),Wt=function(){function $t(Ct){Object(y.a)(this,$t),this.TAG="MP4Remuxer",this._config=Ct,this._isLive=Ct.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 Pt("audio"),this._videoSegmentInfoList=new Pt("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(Re){return Re.onDataAvailable=this.remux.bind(this),Re.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(Re){this._onInitSegment=Re}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(Re){this._onMediaSegment=Re}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(Re){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(Re,De){if(!this._onMediaSegment)throw new l("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(Re,De),this._remuxVideo(De),this._remuxAudio(Re)}},{key:"_onTrackMetadataReceived",value:function(Re,De){var Pe=null,et="mp4",yt=De.codec;if(Re==="audio")this._audioMeta=De,De.codec==="mp3"&&this._mp3UseMpegAudio?(et="mpeg",yt="",Pe=new Uint8Array):Pe=He.generateInitSegment(De);else if(Re==="video")this._videoMeta=De,Pe=He.generateInitSegment(De);else return;if(!this._onInitSegment)throw new l("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(Re,{type:Re,data:Pe.buffer,codec:yt,container:"".concat(Re,"/").concat(et),mediaDuration:De.duration})}},{key:"_calculateDtsBase",value:function(Re,De){if(this._dtsBaseInited)return;Re.samples&&Re.samples.length&&(this._audioDtsBase=Re.samples[0].dts),De.samples&&De.samples.length&&(this._videoDtsBase=De.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var Re=this._videoStashedLastSample,De=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};Re!=null&&(Pe.samples.push(Re),Pe.length=Re.length);var et={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};De!=null&&(et.samples.push(De),et.length=De.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Pe,!0),this._remuxAudio(et,!0)}},{key:"_remuxAudio",value:function(Re,De){if(this._audioMeta==null)return;var Pe=Re,et=Pe.samples,yt=void 0,St=-1,Vt=-1,Rr=-1,Vr=this._audioMeta.refSampleDuration,hn=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Ft=this._dtsBaseInited&&this._audioNextDts===void 0,vt=!1;if(!et||et.length===0)return;if(et.length===1&&!De)return;var bt=0,fr=null,Qt=0;hn?(bt=0,Qt=Pe.length):(bt=8,Qt=8+Pe.length);var Mt=null;if(et.length>1&&(Mt=et.pop(),Qt-=Mt.length),this._audioStashedLastSample!=null){var qt=this._audioStashedLastSample;this._audioStashedLastSample=null,et.unshift(qt),Qt+=qt.length}Mt!=null&&(this._audioStashedLastSample=Mt);var kt=et[0].dts-this._dtsBase;if(this._audioNextDts)yt=kt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())yt=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(vt=!0));else{var er=this._audioSegmentInfoList.getLastSampleBefore(kt);if(er!=null){var Kr=kt-(er.originalDts+er.duration);Kr<=3&&(Kr=0);var Ir=er.dts+er.duration+Kr;yt=kt-Ir}else yt=0}if(vt){var Dr=kt-yt,dn=this._videoSegmentInfoList.getLastSegmentBefore(kt);if(dn!=null&&dn.beginDts<Dr){var yn=ct.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(yn){var ti=dn.beginDts,ei=Dr-dn.beginDts;u.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(ti,", duration: ").concat(ei)),et.unshift({unit:yn,dts:ti,pts:ti}),Qt+=yn.byteLength}}else vt=!1}for(var fi=[],Ei=0;Ei<et.length;Ei++){var Di=et[Ei],Hi=Di.unit,nt=Di.dts-this._dtsBase,Le=nt-yt;St===-1&&(St=Le);var je=0;if(Ei!==et.length-1){var Xe=et[Ei+1].dts-this._dtsBase-yt;je=Xe-Le}else if(Mt!=null){var tt=Mt.dts-this._dtsBase-yt;je=tt-Le}else fi.length>=1?je=fi[fi.length-1].duration:je=Math.floor(Vr);var Ze=!1,st=null;if(je>Vr*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!C.safari){Ze=!0;var Et=Math.abs(je-Vr),gt=Math.ceil(Et/Vr),pr=Le+Vr;u.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
`+"dts: ".concat(Le+je," ms, expected: ").concat(Le+Math.round(Vr)," ms, ")+"delta: ".concat(Math.round(Et)," ms, generate: ").concat(gt," frames"));var qr=ct.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);qr==null&&(u.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),qr=Hi),st=[];for(var Qr=0;Qr<gt;Qr++){var gn=Math.round(pr);if(st.length>0){var vr=st[st.length-1];vr.duration=gn-vr.dts}var Vn={dts:gn,pts:gn,cts:0,unit:qr,size:qr.byteLength,duration:0,originalDts:nt,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};st.push(Vn),Qt+=Vn.size,pr+=Vr}var kr=st[st.length-1];kr.duration=Le+je-kr.dts,je=Math.round(Vr)}fi.push({dts:Le,pts:Le,cts:0,unit:Di.unit,size:Di.unit.byteLength,duration:je,originalDts:nt,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Ze&&fi.push.apply(fi,st)}hn?fr=new Uint8Array(Qt):(fr=new Uint8Array(Qt),fr[0]=Qt>>>24&255,fr[1]=Qt>>>16&255,fr[2]=Qt>>>8&255,fr[3]=Qt&255,fr.set(He.types.mdat,4));for(var Bn=0;Bn<fi.length;Bn++){var on=fi[Bn].unit;fr.set(on,bt),bt+=on.byteLength}var jr=fi[fi.length-1];Vt=jr.dts+jr.duration,this._audioNextDts=Vt;var ai=new hr;ai.beginDts=St,ai.endDts=Vt,ai.beginPts=St,ai.endPts=Vt,ai.originalBeginDts=fi[0].originalDts,ai.originalEndDts=jr.originalDts+jr.duration,ai.firstSample=new Xt(fi[0].dts,fi[0].pts,fi[0].duration,fi[0].originalDts,!1),ai.lastSample=new Xt(jr.dts,jr.pts,jr.duration,jr.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(ai),Pe.samples=fi,Pe.sequenceNumber++;var Oi=null;hn?Oi=new Uint8Array:Oi=He.moof(Pe,St),Pe.samples=[],Pe.length=0;var Gi={type:"audio",data:this._mergeBoxes(Oi,fr).buffer,sampleCount:fi.length,info:ai};hn&&Ft&&(Gi.timestampOffset=St),this._onMediaSegment("audio",Gi)}},{key:"_remuxVideo",value:function(Re,De){if(this._videoMeta==null)return;var Pe=Re,et=Pe.samples,yt=void 0,St=-1,Vt=-1,Rr=-1,Vr=-1;if(!et||et.length===0)return;if(et.length===1&&!De)return;var hn=8,Ft=null,vt=8+Re.length,bt=null;if(et.length>1&&(bt=et.pop(),vt-=bt.length),this._videoStashedLastSample!=null){var fr=this._videoStashedLastSample;this._videoStashedLastSample=null,et.unshift(fr),vt+=fr.length}bt!=null&&(this._videoStashedLastSample=bt);var Qt=et[0].dts-this._dtsBase;if(this._videoNextDts)yt=Qt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())yt=0;else{var Mt=this._videoSegmentInfoList.getLastSampleBefore(Qt);if(Mt!=null){var qt=Qt-(Mt.originalDts+Mt.duration);qt<=3&&(qt=0);var kt=Mt.dts+Mt.duration+qt;yt=Qt-kt}else yt=0}for(var er=new hr,Kr=[],Ir=0;Ir<et.length;Ir++){var Dr=et[Ir],dn=Dr.dts-this._dtsBase,yn=Dr.isKeyframe,ti=dn-yt,ei=Dr.cts,fi=ti+ei;St===-1&&(St=ti,Rr=fi);var Ei=0;if(Ir!==et.length-1){var Di=et[Ir+1].dts-this._dtsBase-yt;Ei=Di-ti}else if(bt!=null){var Hi=bt.dts-this._dtsBase-yt;Ei=Hi-ti}else Kr.length>=1?Ei=Kr[Kr.length-1].duration:Ei=Math.floor(this._videoMeta.refSampleDuration);if(yn){var nt=new Xt(ti,fi,Ei,Dr.dts,!0);nt.fileposition=Dr.fileposition,er.appendSyncPoint(nt)}Kr.push({dts:ti,pts:fi,cts:ei,units:Dr.units,size:Dr.length,isKeyframe:yn,duration:Ei,originalDts:dn,flags:{isLeading:0,dependsOn:yn?2:1,isDependedOn:yn?1:0,hasRedundancy:0,isNonSync:yn?0:1}})}Ft=new Uint8Array(vt),Ft[0]=vt>>>24&255,Ft[1]=vt>>>16&255,Ft[2]=vt>>>8&255,Ft[3]=vt&255,Ft.set(He.types.mdat,4);for(var Le=0;Le<Kr.length;Le++)for(var je=Kr[Le].units;je.length;){var Xe=je.shift(),tt=Xe.data;Ft.set(tt,hn),hn+=tt.byteLength}var Ze=Kr[Kr.length-1];if(Vt=Ze.dts+Ze.duration,Vr=Ze.pts+Ze.duration,this._videoNextDts=Vt,er.beginDts=St,er.endDts=Vt,er.beginPts=Rr,er.endPts=Vr,er.originalBeginDts=Kr[0].originalDts,er.originalEndDts=Ze.originalDts+Ze.duration,er.firstSample=new Xt(Kr[0].dts,Kr[0].pts,Kr[0].duration,Kr[0].originalDts,Kr[0].isKeyframe),er.lastSample=new Xt(Ze.dts,Ze.pts,Ze.duration,Ze.originalDts,Ze.isKeyframe),this._isLive||this._videoSegmentInfoList.append(er),Pe.samples=Kr,Pe.sequenceNumber++,this._forceFirstIDR){var st=Kr[0].flags;st.dependsOn=2,st.isNonSync=0}var Et=He.moof(Pe,St);Pe.samples=[],Pe.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Et,Ft).buffer,sampleCount:Kr.length,info:er})}},{key:"_mergeBoxes",value:function(Re,De){var Pe=new Uint8Array(Re.byteLength+De.byteLength);return Pe.set(Re,0),Pe.set(De,Re.byteLength),Pe}}]),$t}(),Ge=Wt,pe={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"},se=pe,lt=function(){function $t(Ct,Re){Object(y.a)(this,$t),this.TAG="TransmuxingController",this._emitter=new f.a,this._config=Re,Ct.segments||(Ct.segments=[{duration:Ct.duration,filesize:Ct.filesize,url:Ct.url}]),typeof Ct.cors!="boolean"&&(Ct.cors=!0),typeof Ct.withCredentials!="boolean"&&(Ct.withCredentials=!1),this._mediaDataSource=Ct,this._currentSegmentIndex=0;var De=0;this._mediaDataSource.segments.forEach(function(Pe){Pe.timestampBase=De,De+=Pe.duration,Pe.cors=Ct.cors,Pe.withCredentials=Ct.withCredentials,Re.referrerPolicy&&(Pe.referrerPolicy=Re.referrerPolicy)}),!isNaN(De)&&this._mediaDataSource.duration!==De&&(this._mediaDataSource.duration=De),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(Re,De){this._emitter.addListener(Re,De)}},{key:"off",value:function(Re,De){this._emitter.removeListener(Re,De)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(Re,De){this._currentSegmentIndex=Re;var Pe=this._mediaDataSource.segments[Re],et=this._ioctl=new Q(Pe,this._config,Re);et.onError=this._onIOException.bind(this),et.onSeeked=this._onIOSeeked.bind(this),et.onComplete=this._onIOComplete.bind(this),et.onRedirect=this._onIORedirect.bind(this),et.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),De?this._demuxer.bindDataSource(this._ioctl):et.onDataArrival=this._onInitChunkArrival.bind(this),et.open(De)}},{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(Re){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var De=this._searchSegmentIndexContains(Re);if(De===this._currentSegmentIndex){var Pe=this._mediaInfo.segments[De];if(Pe==null)this._pendingSeekTime=Re;else{var et=Pe.getNearestKeyframe(Re);this._remuxer.seek(et.milliseconds),this._ioctl.seek(et.fileposition),this._pendingResolveSeekPoint=et.milliseconds}}else{var yt=this._mediaInfo.segments[De];if(yt==null)this._pendingSeekTime=Re,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(De);else{var St=yt.getNearestKeyframe(Re);this._internalAbort(),this._remuxer.seek(Re),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[De].timestampBase,this._loadSegment(De,St.fileposition),this._pendingResolveSeekPoint=St.milliseconds,this._reportSegmentMediaInfo(De)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(Re){for(var De=this._mediaDataSource.segments,Pe=De.length-1,et=0;et<De.length;et++)if(Re<De[et].timestampBase){Pe=et-1;break}return Pe}},{key:"_onInitChunkArrival",value:function(Re,De){var Pe=this,et=null,yt=0;if(De>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,yt=this._demuxer.parseChunks(Re,De);else if((et=xt.probe(Re)).match){this._demuxer=new xt(et,this._config),this._remuxer||(this._remuxer=new Ge(this._config));var St=this._mediaDataSource;St.duration!=null&&!isNaN(St.duration)&&(this._demuxer.overridedDuration=St.duration),typeof St.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=St.hasAudio),typeof St.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=St.hasVideo),this._demuxer.timestampBase=St.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(Re,De)}else et=null,u.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Pe._internalAbort()}),this._emitter.emit(se.DEMUX_ERROR,Be.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),yt=0;return yt}},{key:"_onMediaInfo",value:function(Re){var De=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},Re),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ve.prototype));var Pe=Object.assign({},Re);Object.setPrototypeOf(Pe,Ve.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Pe,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var et=De._pendingSeekTime;De._pendingSeekTime=null,De.seek(et)})}},{key:"_onMetaDataArrived",value:function(Re){this._emitter.emit(se.METADATA_ARRIVED,Re)}},{key:"_onScriptDataArrived",value:function(Re){this._emitter.emit(se.SCRIPTDATA_ARRIVED,Re)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(Re){var De=Re,Pe=De+1;Pe<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Pe)):(this._remuxer.flushStashedSamples(),this._emitter.emit(se.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(Re){var De=this._ioctl.extraData;this._mediaDataSource.segments[De].redirectedURL=Re}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(se.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(Re,De){u.e(this.TAG,"IOException: type = ".concat(Re,", code = ").concat(De.code,", msg = ").concat(De.msg)),this._emitter.emit(se.IO_ERROR,Re,De),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(Re,De){u.e(this.TAG,"DemuxException: type = ".concat(Re,", info = ").concat(De)),this._emitter.emit(se.DEMUX_ERROR,Re,De)}},{key:"_onRemuxerInitSegmentArrival",value:function(Re,De){this._emitter.emit(se.INIT_SEGMENT,Re,De)}},{key:"_onRemuxerMediaSegmentArrival",value:function(Re,De){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(se.MEDIA_SEGMENT,Re,De),this._pendingResolveSeekPoint!=null&&Re==="video"){var Pe=De.info.syncPoints,et=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,C.safari&&Pe.length>0&&Pe[0].originalDts===et&&(et=Pe[0].pts),this._emitter.emit(se.RECOMMEND_SEEKPOINT,et)}}},{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(Re){var De=this._mediaInfo.segments[Re],Pe=Object.assign({},De);Pe.duration=this._mediaInfo.duration,Pe.segmentCount=this._mediaInfo.segmentCount,delete Pe.segments,delete Pe.keyframesIndex,this._emitter.emit(se.MEDIA_INFO,Pe)}},{key:"_reportStatisticsInfo",value:function(){var Re={};Re.url=this._ioctl.currentURL,Re.hasRedirect=this._ioctl.hasRedirect,Re.hasRedirect&&(Re.redirectedURL=this._ioctl.currentRedirectedURL),Re.speed=this._ioctl.currentSpeed,Re.loaderType=this._ioctl.loaderType,Re.currentSegmentIndex=this._currentSegmentIndex,Re.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(se.STATISTICS_INFO,Re)}}]),$t}(),qe=lt,me=function(Ct){var Re="TransmuxingWorker",De=null,Pe=Qt.bind(this);v.install(),Ct.addEventListener("message",function(Mt){switch(Mt.data.cmd){case"init":De=new qe(Mt.data.param[0],Mt.data.param[1]),De.on(se.IO_ERROR,vt.bind(this)),De.on(se.DEMUX_ERROR,bt.bind(this)),De.on(se.INIT_SEGMENT,et.bind(this)),De.on(se.MEDIA_SEGMENT,yt.bind(this)),De.on(se.LOADING_COMPLETE,St.bind(this)),De.on(se.RECOVERED_EARLY_EOF,Vt.bind(this)),De.on(se.MEDIA_INFO,Rr.bind(this)),De.on(se.METADATA_ARRIVED,Vr.bind(this)),De.on(se.SCRIPTDATA_ARRIVED,hn.bind(this)),De.on(se.STATISTICS_INFO,Ft.bind(this)),De.on(se.RECOMMEND_SEEKPOINT,fr.bind(this));break;case"destroy":De&&(De.destroy(),De=null),Ct.postMessage({msg:"destroyed"});break;case"start":De.start();break;case"stop":De.stop();break;case"seek":De.seek(Mt.data.param);break;case"pause":De.pause();break;case"resume":De.resume();break;case"logging_config":{var qt=Mt.data.param;Me.applyConfig(qt),qt.enableCallback===!0?Me.addLogListener(Pe):Me.removeLogListener(Pe);break}}});function et(Mt,qt){var kt={msg:se.INIT_SEGMENT,data:{type:Mt,data:qt}};Ct.postMessage(kt,[qt.data])}function yt(Mt,qt){var kt={msg:se.MEDIA_SEGMENT,data:{type:Mt,data:qt}};Ct.postMessage(kt,[qt.data])}function St(){var Mt={msg:se.LOADING_COMPLETE};Ct.postMessage(Mt)}function Vt(){var Mt={msg:se.RECOVERED_EARLY_EOF};Ct.postMessage(Mt)}function Rr(Mt){var qt={msg:se.MEDIA_INFO,data:Mt};Ct.postMessage(qt)}function Vr(Mt){var qt={msg:se.METADATA_ARRIVED,data:Mt};Ct.postMessage(qt)}function hn(Mt){var qt={msg:se.SCRIPTDATA_ARRIVED,data:Mt};Ct.postMessage(qt)}function Ft(Mt){var qt={msg:se.STATISTICS_INFO,data:Mt};Ct.postMessage(qt)}function vt(Mt,qt){Ct.postMessage({msg:se.IO_ERROR,data:{type:Mt,info:qt}})}function bt(Mt,qt){Ct.postMessage({msg:se.DEMUX_ERROR,data:{type:Mt,info:qt}})}function fr(Mt){Ct.postMessage({msg:se.RECOMMEND_SEEKPOINT,data:Mt})}function Qt(Mt,qt){Ct.postMessage({msg:"logcat_callback",data:{type:Mt,logcat:qt}})}},Ht=me,yr=function(){function $t(Ct,Re){if(Object(y.a)(this,$t),this.TAG="Transmuxer",this._emitter=new f.a,Re.enableWorker&&typeof Worker!="undefined")try{var De=n("0r65");this._worker=De(Ht),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[Ct,Re]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Me.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Me.getConfig()})}catch(et){u.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new qe(Ct,Re)}else this._controller=new qe(Ct,Re);if(this._controller){var Pe=this._controller;Pe.on(se.IO_ERROR,this._onIOError.bind(this)),Pe.on(se.DEMUX_ERROR,this._onDemuxError.bind(this)),Pe.on(se.INIT_SEGMENT,this._onInitSegment.bind(this)),Pe.on(se.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Pe.on(se.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Pe.on(se.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Pe.on(se.MEDIA_INFO,this._onMediaInfo.bind(this)),Pe.on(se.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Pe.on(se.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Pe.on(se.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Pe.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"}),Me.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Re,De){this._emitter.addListener(Re,De)}},{key:"off",value:function(Re,De){this._emitter.removeListener(Re,De)}},{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(Re){this._worker?this._worker.postMessage({cmd:"seek",param:Re}):this._controller.seek(Re)}},{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(Re,De){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(se.INIT_SEGMENT,Re,De)})}},{key:"_onMediaSegment",value:function(Re,De){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(se.MEDIA_SEGMENT,Re,De)})}},{key:"_onLoadingComplete",value:function(){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(se.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(se.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(Re){var De=this;Promise.resolve().then(function(){De._emitter.emit(se.MEDIA_INFO,Re)})}},{key:"_onMetaDataArrived",value:function(Re){var De=this;Promise.resolve().then(function(){De._emitter.emit(se.METADATA_ARRIVED,Re)})}},{key:"_onScriptDataArrived",value:function(Re){var De=this;Promise.resolve().then(function(){De._emitter.emit(se.SCRIPTDATA_ARRIVED,Re)})}},{key:"_onStatisticsInfo",value:function(Re){var De=this;Promise.resolve().then(function(){De._emitter.emit(se.STATISTICS_INFO,Re)})}},{key:"_onIOError",value:function(Re,De){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(se.IO_ERROR,Re,De)})}},{key:"_onDemuxError",value:function(Re,De){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(se.DEMUX_ERROR,Re,De)})}},{key:"_onRecommendSeekpoint",value:function(Re){var De=this;Promise.resolve().then(function(){De._emitter.emit(se.RECOMMEND_SEEKPOINT,Re)})}},{key:"_onLoggingConfigChanged",value:function(Re){this._worker&&this._worker.postMessage({cmd:"logging_config",param:Re})}},{key:"_onWorkerMessage",value:function(Re){var De=Re.data,Pe=De.data;if(De.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(De.msg){case se.INIT_SEGMENT:case se.MEDIA_SEGMENT:this._emitter.emit(De.msg,Pe.type,Pe.data);break;case se.LOADING_COMPLETE:case se.RECOVERED_EARLY_EOF:this._emitter.emit(De.msg);break;case se.MEDIA_INFO:Object.setPrototypeOf(Pe,Ve.prototype),this._emitter.emit(De.msg,Pe);break;case se.METADATA_ARRIVED:case se.SCRIPTDATA_ARRIVED:case se.STATISTICS_INFO:this._emitter.emit(De.msg,Pe);break;case se.IO_ERROR:case se.DEMUX_ERROR:this._emitter.emit(De.msg,Pe.type,Pe.info);break;case se.RECOMMEND_SEEKPOINT:this._emitter.emit(De.msg,Pe);break;case"logcat_callback":u.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}]),$t}(),At=yr,rr={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},ur=rr,vn=function(){function $t(Ct){Object(y.a)(this,$t),this.TAG="MSEController",this._config=Ct,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 Jt}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(Re,De){this._emitter.addListener(Re,De)}},{key:"off",value:function(Re,De){this._emitter.removeListener(Re,De)}},{key:"attachMediaElement",value:function(Re){if(this._mediaSource)throw new l("MediaSource has been attached to an HTMLMediaElement!");var De=this._mediaSource=new window.MediaSource;De.addEventListener("sourceopen",this.e.onSourceOpen),De.addEventListener("sourceended",this.e.onSourceEnded),De.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=Re,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),Re.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var Re=this._mediaSource;for(var De in this._sourceBuffers){var Pe=this._pendingSegments[De];Pe.splice(0,Pe.length),this._pendingSegments[De]=null,this._pendingRemoveRanges[De]=null,this._lastInitSegments[De]=null;var et=this._sourceBuffers[De];if(et){if(Re.readyState!=="closed"){try{Re.removeSourceBuffer(et)}catch(yt){u.e(this.TAG,yt.message)}et.removeEventListener("error",this.e.onSourceBufferError),et.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[De]=null,this._sourceBuffers[De]=null}}if(Re.readyState==="open")try{Re.endOfStream()}catch(yt){u.e(this.TAG,yt.message)}Re.removeEventListener("sourceopen",this.e.onSourceOpen),Re.removeEventListener("sourceended",this.e.onSourceEnded),Re.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(Re,De){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(Re),this._pendingSegments[Re.type].push(Re);return}var Pe=Re,et="".concat(Pe.container);Pe.codec&&Pe.codec.length>0&&(et+=";codecs=".concat(Pe.codec));var yt=!1;if(u.v(this.TAG,"Received Initialization Segment, mimeType: "+et),this._lastInitSegments[Pe.type]=Pe,et!==this._mimeTypes[Pe.type]){if(this._mimeTypes[Pe.type])u.v(this.TAG,"Notice: ".concat(Pe.type," mimeType changed, origin: ").concat(this._mimeTypes[Pe.type],", target: ").concat(et));else{yt=!0;try{var St=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(et);St.addEventListener("error",this.e.onSourceBufferError),St.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Vt){u.e(this.TAG,Vt.message),this._emitter.emit(ur.ERROR,{code:Vt.code,msg:Vt.message});return}}this._mimeTypes[Pe.type]=et}De||this._pendingSegments[Pe.type].push(Pe),yt||this._sourceBuffers[Pe.type]&&!this._sourceBuffers[Pe.type].updating&&this._doAppendSegments(),C.safari&&Pe.container==="audio/mpeg"&&Pe.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Pe.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(Re){var De=Re;this._pendingSegments[De.type].push(De),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var Pe=this._sourceBuffers[De.type];Pe&&!Pe.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(Re){for(var De in this._sourceBuffers){if(!this._sourceBuffers[De])continue;var Pe=this._sourceBuffers[De];if(this._mediaSource.readyState==="open")try{Pe.abort()}catch(Vr){u.e(this.TAG,Vr.message)}this._idrList.clear();var et=this._pendingSegments[De];if(et.splice(0,et.length),this._mediaSource.readyState==="closed")continue;for(var yt=0;yt<Pe.buffered.length;yt++){var St=Pe.buffered.start(yt),Vt=Pe.buffered.end(yt);this._pendingRemoveRanges[De].push({start:St,end:Vt})}if(Pe.updating||this._doRemoveRanges(),C.safari){var Rr=this._lastInitSegments[De];Rr&&(this._pendingSegments[De].push(Rr),Pe.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var Re=this._mediaSource,De=this._sourceBuffers;if(!Re||Re.readyState!=="open"){Re&&Re.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}De.video&&De.video.updating||De.audio&&De.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,Re.endOfStream())}},{key:"getNearestKeyframe",value:function(Re){return this._idrList.getLastSyncPointBeforeDts(Re)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var Re=this._mediaElement.currentTime;for(var De in this._sourceBuffers){var Pe=this._sourceBuffers[De];if(Pe){var et=Pe.buffered;if(et.length>=1&&Re-et.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var Re=this._mediaElement.currentTime;for(var De in this._sourceBuffers){var Pe=this._sourceBuffers[De];if(Pe){for(var et=Pe.buffered,yt=!1,St=0;St<et.length;St++){var Vt=et.start(St),Rr=et.end(St);if(Vt<=Re&&Re<Rr+3){if(Re-Vt>=this._config.autoCleanupMaxBackwardDuration){yt=!0;var Vr=Re-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[De].push({start:Vt,end:Vr})}}else Rr<Re&&(yt=!0,this._pendingRemoveRanges[De].push({start:Vt,end:Rr}))}yt&&!Pe.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var Re=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(Re.video&&Re.video.updating||Re.audio&&Re.audio.updating)return;var De=this._mediaSource.duration,Pe=this._pendingMediaDuration;Pe>0&&(isNaN(De)||Pe>De)&&(u.v(this.TAG,"Update MediaSource duration from ".concat(De," to ").concat(Pe)),this._mediaSource.duration=Pe),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var Re in this._pendingRemoveRanges){if(!this._sourceBuffers[Re]||this._sourceBuffers[Re].updating)continue;for(var De=this._sourceBuffers[Re],Pe=this._pendingRemoveRanges[Re];Pe.length&&!De.updating;){var et=Pe.shift();De.remove(et.start,et.end)}}}},{key:"_doAppendSegments",value:function(){var Re=this._pendingSegments;for(var De in Re){if(!this._sourceBuffers[De]||this._sourceBuffers[De].updating)continue;if(Re[De].length>0){var Pe=Re[De].shift();if(Pe.timestampOffset){var et=this._sourceBuffers[De].timestampOffset,yt=Pe.timestampOffset/1e3,St=Math.abs(et-yt);St>.1&&(u.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(et," to ").concat(yt)),this._sourceBuffers[De].timestampOffset=yt),delete Pe.timestampOffset}if(!Pe.data||Pe.data.byteLength===0)continue;try{this._sourceBuffers[De].appendBuffer(Pe.data),this._isBufferFull=!1,De==="video"&&Pe.hasOwnProperty("info")&&this._idrList.appendArray(Pe.info.syncPoints)}catch(Vt){this._pendingSegments[De].unshift(Pe),Vt.code===22?(this._isBufferFull||this._emitter.emit(ur.BUFFER_FULL),this._isBufferFull=!0):(u.e(this.TAG,Vt.message),this._emitter.emit(ur.ERROR,{code:Vt.code,msg:Vt.message}))}}}}},{key:"_onSourceOpen",value:function(){if(u.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var Re=this._pendingSourceBufferInit;Re.length;){var De=Re.shift();this.appendInitSegment(De,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(ur.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){u.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){u.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 Re=this._pendingSegments;return Re.video.length>0||Re.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var Re=this._pendingRemoveRanges;return Re.video.length>0||Re.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(Re){u.e(this.TAG,"SourceBuffer Error: ".concat(Re))}}]),$t}(),Bt=vn,sr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Yt={NETWORK_EXCEPTION:h.EXCEPTION,NETWORK_STATUS_CODE_INVALID:h.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:h.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:h.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Be.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Be.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Be.CODEC_UNSUPPORTED},pt=function(){function $t(Ct,Re){if(Object(y.a)(this,$t),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new f.a,this._config=te(),typeof Re=="object"&&Object.assign(this._config,Re),Ct.type.toLowerCase()!=="flv")throw new r("FlvPlayer requires an flv MediaDataSource input!");Ct.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=Ct,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 De=C.chrome&&(C.version.major<50||C.version.major===50&&C.version.build<2661);this._alwaysSeekKeyframe=!!(De||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(Re,De){var Pe=this;Re===we.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Pe._emitter.emit(we.MEDIA_INFO,Pe.mediaInfo)}):Re===we.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Pe._emitter.emit(we.STATISTICS_INFO,Pe.statisticsInfo)})),this._emitter.addListener(Re,De)}},{key:"off",value:function(Re,De){this._emitter.removeListener(Re,De)}},{key:"attachMediaElement",value:function(Re){var De=this;if(this._mediaElement=Re,Re.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),Re.addEventListener("seeking",this.e.onvSeeking),Re.addEventListener("canplay",this.e.onvCanPlay),Re.addEventListener("stalled",this.e.onvStalled),Re.addEventListener("progress",this.e.onvProgress),this._msectl=new Bt(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(){De._mseSourceOpened=!0,De._hasPendingLoad&&(De._hasPendingLoad=!1,De.load())}),this._msectl.on(ur.ERROR,function(Pe){De._emitter.emit(we.ERROR,sr.MEDIA_ERROR,Yt.MEDIA_MSE_ERROR,Pe)}),this._msectl.attachMediaElement(Re),this._pendingSeekTime!=null)try{Re.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Pe){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var Re=this;if(!this._mediaElement)throw new l("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new l("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new At(this._mediaDataSource,this._config),this._transmuxer.on(se.INIT_SEGMENT,function(De,Pe){Re._msectl.appendInitSegment(Pe)}),this._transmuxer.on(se.MEDIA_SEGMENT,function(De,Pe){if(Re._msectl.appendMediaSegment(Pe),Re._config.lazyLoad&&!Re._config.isLive){var et=Re._mediaElement.currentTime;Pe.info.endDts>=(et+Re._config.lazyLoadMaxDuration)*1e3&&(Re._progressChecker==null&&(u.v(Re.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),Re._suspendTransmuxer()))}}),this._transmuxer.on(se.LOADING_COMPLETE,function(){Re._msectl.endOfStream(),Re._emitter.emit(we.LOADING_COMPLETE)}),this._transmuxer.on(se.RECOVERED_EARLY_EOF,function(){Re._emitter.emit(we.RECOVERED_EARLY_EOF)}),this._transmuxer.on(se.IO_ERROR,function(De,Pe){Re._emitter.emit(we.ERROR,sr.NETWORK_ERROR,De,Pe)}),this._transmuxer.on(se.DEMUX_ERROR,function(De,Pe){Re._emitter.emit(we.ERROR,sr.MEDIA_ERROR,De,{code:-1,msg:Pe})}),this._transmuxer.on(se.MEDIA_INFO,function(De){Re._mediaInfo=De,Re._emitter.emit(we.MEDIA_INFO,Object.assign({},De))}),this._transmuxer.on(se.METADATA_ARRIVED,function(De){Re._emitter.emit(we.METADATA_ARRIVED,De)}),this._transmuxer.on(se.SCRIPTDATA_ARRIVED,function(De){Re._emitter.emit(we.SCRIPTDATA_ARRIVED,De)}),this._transmuxer.on(se.STATISTICS_INFO,function(De){Re._statisticsInfo=Re._fillStatisticsInfo(De),Re._emitter.emit(we.STATISTICS_INFO,Object.assign({},Re._statisticsInfo))}),this._transmuxer.on(se.RECOMMEND_SEEKPOINT,function(De){Re._mediaElement&&!Re._config.accurateSeek&&(Re._requestSetTime=!0,Re._mediaElement.currentTime=De/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(Re){this._mediaElement.volume=Re}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Re){this._mediaElement.muted=Re}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Re){this._mediaElement?this._internalSeek(Re):this._pendingSeekTime=Re}},{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(Re){if(Re.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return Re;var De=!0,Pe=0,et=0;if(this._mediaElement.getVideoPlaybackQuality){var yt=this._mediaElement.getVideoPlaybackQuality();Pe=yt.totalVideoFrames,et=yt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,et=this._mediaElement.webkitDroppedFrameCount):De=!1;return De&&(Re.decodedFrames=Pe,Re.droppedFrames=et),Re}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var Re=this._mediaElement.buffered,De=this._mediaElement.currentTime,Pe=0,et=0,yt=0;yt<Re.length;yt++){var St=Re.start(yt),Vt=Re.end(yt);if(St<=De&&De<Vt){Pe=St,et=Vt;break}}et>=De+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(u.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){u.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 Re=this._mediaElement.currentTime,De=this._mediaElement.buffered,Pe=!1,et=0;et<De.length;et++){var yt=De.start(et),St=De.end(et);if(Re>=yt&&Re<St){Re>=St-this._config.lazyLoadRecoverDuration&&(Pe=!0);break}}Pe&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Pe&&(u.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(Re){for(var De=this._mediaElement.buffered,Pe=0;Pe<De.length;Pe++){var et=De.start(Pe),yt=De.end(Pe);if(Re>=et&&Re<yt)return!0}return!1}},{key:"_internalSeek",value:function(Re){var De=this._isTimepointBuffered(Re),Pe=!1,et=0;if(Re<1&&this._mediaElement.buffered.length>0){var yt=this._mediaElement.buffered.start(0);(yt<1&&Re<yt||C.safari)&&(Pe=!0,et=C.safari?.1:yt)}if(Pe)this._requestSetTime=!0,this._mediaElement.currentTime=et;else if(De){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=Re;else{var St=this._msectl.getNearestKeyframe(Math.floor(Re*1e3));this._requestSetTime=!0,St!=null?this._mediaElement.currentTime=St.dts/1e3:this._mediaElement.currentTime=Re}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(Re),this._transmuxer.seek(Math.floor(Re*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Re)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var Re=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(Re)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(Re),this._transmuxer.seek(Math.floor(Re*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Re))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(Re){var De=this._mediaElement;if(Re||!this._receivedCanPlay||De.readyState<2){var Pe=De.buffered;Pe.length>0&&De.currentTime<Pe.start(0)&&(u.w(this.TAG,"Playback seems stuck at ".concat(De.currentTime,", seek to ").concat(Pe.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=Pe.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(Re){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(Re){var De=this._mediaElement.currentTime,Pe=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(De<1&&Pe.length>0){var et=Pe.start(0);if(et<1&&De<et||C.safari){this._requestSetTime=!0,this._mediaElement.currentTime=C.safari?.1:et;return}}if(this._isTimepointBuffered(De)){if(this._alwaysSeekKeyframe){var yt=this._msectl.getNearestKeyframe(Math.floor(De*1e3));yt!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=yt.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:De,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(Re){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(Re){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(Re){this._checkAndResumeStuckPlayback()}}]),$t}(),it=pt,Fr=function(){function $t(Ct,Re){if(Object(y.a)(this,$t),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new f.a,this._config=te(),typeof Re=="object"&&Object.assign(this._config,Re),Ct.type.toLowerCase()==="flv")throw new r("NativePlayer does't support flv MediaDataSource input!");if(Ct.hasOwnProperty("segments"))throw new r("NativePlayer(".concat(Ct.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=Ct,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(Re,De){var Pe=this;Re===we.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Pe._emitter.emit(we.MEDIA_INFO,Pe.mediaInfo)}):Re===we.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Pe._emitter.emit(we.STATISTICS_INFO,Pe.statisticsInfo)})),this._emitter.addListener(Re,De)}},{key:"off",value:function(Re,De){this._emitter.removeListener(Re,De)}},{key:"attachMediaElement",value:function(Re){if(this._mediaElement=Re,Re.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{Re.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(De){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"load",value:function(){if(!this._mediaElement)throw new l("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(Re){this._mediaElement.volume=Re}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Re){this._mediaElement.muted=Re}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Re){this._mediaElement?this._mediaElement.currentTime=Re:this._pendingSeekTime=Re}},{key:"mediaInfo",get:function(){var Re=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",De={mimeType:Re+this._mediaDataSource.type};return this._mediaElement&&(De.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(De.width=this._mediaElement.videoWidth,De.height=this._mediaElement.videoHeight)),De}},{key:"statisticsInfo",get:function(){var Re={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Re;var De=!0,Pe=0,et=0;if(this._mediaElement.getVideoPlaybackQuality){var yt=this._mediaElement.getVideoPlaybackQuality();Pe=yt.totalVideoFrames,et=yt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,et=this._mediaElement.webkitDroppedFrameCount):De=!1;return De&&(Re.decodedFrames=Pe,Re.droppedFrames=et),Re}},{key:"_onvLoadedMetadata",value:function(Re){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(we.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(we.STATISTICS_INFO,this.statisticsInfo)}}]),$t}(),cn=Fr;v.install();function _n($t,Ct){var Re=$t;if(Re==null||typeof Re!="object")throw new r("MediaDataSource must be an javascript object!");if(!Re.hasOwnProperty("type"))throw new r("MediaDataSource must has type field to indicate video file type!");switch(Re.type){case"flv":return new it(Re,Ct);default:return new cn(Re,Ct)}}function Kn(){return le.supportMSEH264Playback()}function gi(){return le.getFeatureList()}var Mn={};Mn.createPlayer=_n,Mn.isSupported=Kn,Mn.getFeatureList=gi,Mn.BaseLoader=g,Mn.LoaderStatus=c,Mn.LoaderErrors=h,Mn.Events=we,Mn.ErrorTypes=sr,Mn.ErrorDetails=Yt,Mn.FlvPlayer=it,Mn.NativePlayer=cn,Mn.LoggingControl=Me,Object.defineProperty(Mn,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Un=D.a=Mn},GVMX:function(k,D,n){var y=n("JEkh"),p=y.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});k.exports=p},GdRQ:function(k,D,n){"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=S,D.isFirefox=E,D.hasScrollbarGutter=D.supportsImageMetadata=D.supportsCursorURIs=D.dragThreshold=D.isTouchDevice=void 0;var p=v(n("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={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in C)if(Object.prototype.hasOwnProperty.call(C,O)){var I=w?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 u=document.createElement("canvas");u.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',u.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 i=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),i=!0}catch(C){}var t=i;D.supportsImageMetadata=t;var s=!0;try{var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);var l=document.createElement("div");e.appendChild(l);var r=e.offsetWidth-l.offsetWidth;e.parentNode.removeChild(e),s=r!=0}catch(C){p.Error("Scrollbar test exception: "+C)}var a=s;D.hasScrollbarGutter=a;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 S(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function E(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GeKi:function(k,D,n){var y=n("bYtY"),p=n("6Ic6"),x=n("IwbS"),v=n("y+Vt"),m=n("sK/D"),f=m.createClipPath,d=["itemStyle"],u=["emphasis","itemStyle"],o=["color","color0","borderColor","borderColor0"],i=p.extend({type:"candlestick",render:function(A,b,S){this.group.removeClipPath(),this._updateDrawMode(A),this._isLargeDraw?this._renderLarge(A):this._renderNormal(A)},incrementalPrepareRender:function(A,b,S){this._clear(),this._updateDrawMode(A)},incrementalRender:function(A,b,S,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(),S=this._data,E=this.group,C=b.getLayout("isSimpleBox"),_=A.get("clip",!0),T=A.coordinateSystem,w=T.getArea&&T.getArea();this._data||E.removeAll(),b.diff(S).add(function(O){if(b.hasValue(O)){var I,R=b.getItemLayout(O);if(_&&e(w,R))return;I=s(R,O,!0),x.initProps(I,{shape:{points:R.ends}},A,O),l(I,b,O,C),E.add(I),b.setItemGraphicEl(O,I)}}).update(function(O,I){var R=S.getItemGraphicEl(I);if(!b.hasValue(O)){E.remove(R);return}var M=b.getItemLayout(O);if(_&&e(w,M)){E.remove(R);return}R?x.updateProps(R,{shape:{points:M.ends}},A,O):R=s(M,O),l(R,b,O,C),E.add(R),b.setItemGraphicEl(O,R)}).remove(function(O){var I=S.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 S=b.getData(),E=S.getLayout("isSimpleBox"),C;(C=A.next())!=null;){var _,T=S.getItemLayout(C);_=s(T,C),l(_,S,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 S=b.points;this.__simpleBox?(A.moveTo(S[4][0],S[4][1]),A.lineTo(S[6][0],S[6][1])):(A.moveTo(S[0][0],S[0][1]),A.lineTo(S[1][0],S[1][1]),A.lineTo(S[2][0],S[2][1]),A.lineTo(S[3][0],S[3][1]),A.closePath(),A.moveTo(S[4][0],S[4][1]),A.lineTo(S[5][0],S[5][1]),A.moveTo(S[6][0],S[6][1]),A.lineTo(S[7][0],S[7][1]))}});function s(A,b,S){var E=A.ends;return new t({shape:{points:S?r(E,A):E},z2:100})}function e(A,b){for(var S=!0,E=0;E<b.ends.length;E++)if(A.contain(b.ends[E][0],b.ends[E][1])){S=!1;break}return S}function l(A,b,S,E){var C=b.getItemModel(S),_=C.getModel(d),T=b.getItemVisual(S,"color"),w=b.getItemVisual(S,"borderColor")||T,O=_.getItemStyle(o);A.useStyle(O),A.style.strokeNoScale=!0,A.style.fill=T,A.style.stroke=w,A.__simpleBox=E;var I=C.getModel(u).getItemStyle();x.setHoverStyle(A,I)}function r(A,b){return y.map(A,function(S){return S=S.slice(),S[1]=b.initBaseline,S})}var a=v.extend({type:"largeCandlestickBox",shape:{},buildPath:function(A,b){for(var S=b.points,E=0;E<S.length;)if(this.__sign===S[E++]){var C=S[E++];A.moveTo(C,S[E++]),A.lineTo(C,S[E++])}else E+=3}});function c(A,b,S){var E=A.getData(),C=E.getLayout("largePoints"),_=new a({shape:{points:C},__sign:1});b.add(_);var T=new a({shape:{points:C},__sign:-1});b.add(T),h(1,_,A,E),h(-1,T,A,E),S&&(_.incremental=!0,T.incremental=!0)}function h(A,b,S,E){var C=A>0?"P":"N",_=E.getVisual("borderColor"+C)||E.getVisual("color"+C),T=S.getModel(d).getItemStyle(o);b.useStyle(T),b.style.fill=null,b.style.stroke=_}var g=i;k.exports=g},Gev7:function(k,D,n){var y=n("bYtY"),p=n("K2GJ"),x=n("1bdT"),v=n("ni6a");function m(d){d=d||{},x.call(this,d);for(var u in d)d.hasOwnProperty(u)&&u!=="style"&&(this[u]=d[u]);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(u){},afterBrush:function(u){},brush:function(u,o){},getBoundingRect:function(){},contain:function(u,o){return this.rectContain(u,o)},traverse:function(u,o){u.call(o,this)},rectContain:function(u,o){var i=this.transformCoordToLocal(u,o),t=this.getBoundingRect();return t.contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(u){return this.animate("style",u)},attrKV:function(u,o){u!=="style"?x.prototype.attrKV.call(this,u,o):this.style.set(o)},setStyle:function(u,o){return this.style.set(u,o),this.dirty(!1),this},useStyle:function(u){return this.style=new p(u,this),this.dirty(!1),this},calculateTextPosition:null},y.inherits(m,x),y.mixin(m,v);var f=m;k.exports=f},GrNh:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("6Ic6");function v(i,t,s,e){var l=t.getData(),r=this.dataIndex,a=l.getName(r),c=t.get("selectedOffset");e.dispatchAction({type:"pieToggleSelect",from:i,name:a,seriesId:t.id}),l.each(function(h){m(l.getItemGraphicEl(h),l.getItemLayout(h),t.isSelected(l.getName(h)),c,s)})}function m(i,t,s,e,l){var r=(t.startAngle+t.endAngle)/2,a=Math.cos(r),c=Math.sin(r),h=s?e:0,g=[a*h,c*h];l?i.animate().when(200,{position:g}).start("bounceOut"):i.attr("position",g)}function f(i,t){p.Group.call(this);var s=new p.Sector({z2:2}),e=new p.Polyline,l=new p.Text;this.add(s),this.add(e),this.add(l),this.updateData(i,t,!0)}var d=f.prototype;d.updateData=function(i,t,s){var e=this.childAt(0),l=this.childAt(1),r=this.childAt(2),a=i.hostModel,c=i.getItemModel(t),h=i.getItemLayout(t),g=y.extend({},h);g.label=null;var A=a.getShallow("animationTypeUpdate");if(s){e.setShape(g);var b=a.getShallow("animationType");b==="scale"?(e.shape.r=h.r0,p.initProps(e,{shape:{r:h.r}},a,t)):(e.shape.endAngle=h.startAngle,p.updateProps(e,{shape:{endAngle:h.endAngle}},a,t))}else A==="expansion"?e.setShape(g):p.updateProps(e,{shape:g},a,t);var S=i.getItemVisual(t,"color");e.useStyle(y.defaults({lineJoin:"bevel",fill:S},c.getModel("itemStyle").getItemStyle())),e.hoverStyle=c.getModel("emphasis.itemStyle").getItemStyle();var E=c.getShallow("cursor");E&&e.attr("cursor",E),m(this,i.getItemLayout(t),a.isSelected(i.getName(t)),a.get("selectedOffset"),a.get("animation"));var C=!s&&A==="transition";this._updateLabel(i,t,C),this.highDownOnUpdate=a.get("silent")?null:function(_,T){var w=a.isAnimationEnabled()&&c.get("hoverAnimation");T==="emphasis"?(l.ignore=l.hoverIgnore,r.ignore=r.hoverIgnore,w&&(e.stopAnimation(!0),e.animateTo({shape:{r:h.r+a.get("hoverOffset")}},300,"elasticOut"))):(l.ignore=l.normalIgnore,r.ignore=r.normalIgnore,w&&(e.stopAnimation(!0),e.animateTo({shape:{r:h.r}},300,"elasticOut")))},p.setHoverStyle(this)},d._updateLabel=function(i,t,s){var e=this.childAt(1),l=this.childAt(2),r=i.hostModel,a=i.getItemModel(t),c=i.getItemLayout(t),h=c.label,g=i.getItemVisual(t,"color");if(!h||isNaN(h.x)||isNaN(h.y)){l.ignore=l.normalIgnore=l.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};s?(p.updateProps(e,{shape:A},r,t),p.updateProps(l,{style:b},r,t)):(e.attr({shape:A}),l.attr({style:b})),l.attr({rotation:h.rotation,origin:[h.x,h.y],z2:10});var S=a.getModel("label"),E=a.getModel("emphasis.label"),C=a.getModel("labelLine"),_=a.getModel("emphasis.labelLine"),g=i.getItemVisual(t,"color");p.setLabelStyle(l.style,l.hoverStyle={},S,E,{labelFetcher:i.hostModel,labelDataIndex:t,defaultText:h.text,autoColor:g,useInsideStyle:!!h.inside},{textAlign:h.textAlign,textVerticalAlign:h.verticalAlign,opacity:i.getItemVisual(t,"opacity")}),l.ignore=l.normalIgnore=!S.get("show"),l.hoverIgnore=!E.get("show"),e.ignore=e.normalIgnore=!C.get("show"),e.hoverIgnore=!_.get("show"),e.setStyle({stroke:g,opacity:i.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 u=x.extend({type:"pie",init:function(){var i=new p.Group;this._sectorGroup=i},render:function(i,t,s,e){if(e&&e.from===this.uid)return;var l=i.getData(),r=this._data,a=this.group,c=t.get("animation"),h=!r,g=i.get("animationType"),A=i.get("animationTypeUpdate"),b=y.curry(v,this.uid,i,c,s),S=i.get("selectedMode");if(l.diff(r).add(function(w){var O=new f(l,w);h&&g!=="scale"&&O.eachChild(function(I){I.stopAnimation(!0)}),S&&O.on("click",b),l.setItemGraphicEl(w,O),a.add(O)}).update(function(w,O){var I=r.getItemGraphicEl(O);!h&&A!=="transition"&&I.eachChild(function(R){R.stopAnimation(!0)}),I.updateData(l,w),I.off("click"),S&&I.on("click",b),a.add(I),l.setItemGraphicEl(w,I)}).remove(function(w){var O=r.getItemGraphicEl(w);a.remove(O)}).execute(),c&&l.count()>0&&(h?g!=="scale":A!=="transition")){for(var E=l.getItemLayout(0),C=1;isNaN(E.startAngle)&&C<l.count();++C)E=l.getItemLayout(C);var _=Math.max(s.getWidth(),s.getHeight())/2,T=y.bind(a.removeClipPath,a);a.setClipPath(this._createClipPath(E.cx,E.cy,_,E.startAngle,E.clockwise,T,i,h))}else a.removeClipPath();this._data=l},dispose:function(){},_createClipPath:function(i,t,s,e,l,r,a,c){var h=new p.Sector({shape:{cx:i,cy:t,r0:0,r:s,startAngle:e,endAngle:e,clockwise:l}}),g=c?p.initProps:p.updateProps;return g(h,{shape:{endAngle:e+(l?1:-1)*Math.PI*2}},a,r),h},containPoint:function(i,t){var s=t.getData(),e=s.getItemLayout(0);if(e){var l=i[0]-e.cx,r=i[1]-e.cy,a=Math.sqrt(l*l+r*r);return a<=e.r&&a>=e.r0}}}),o=u;k.exports=o},Gytx:function(k,D){k.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 u=Object.prototype.hasOwnProperty.bind(p),o=0;o<f.length;o++){var i=f[o];if(!u(i))return!1;var t=y[i],s=p[i];if(m=x?x.call(v,t,s,i):void 0,m===!1||m===void 0&&t!==s)return!1}return!0}},GzdX:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("q1tI"),v=n.n(x),m=n("rePB"),f=n("1OyB"),d=n("vuIU"),u=n("Ji7U"),o=n("md7G"),i=n("foSv"),t=n("m+aA"),s=n("TSYQ"),e=n.n(s),l=n("4IlW");function r(j){var K=j.pageXOffset,z="scrollLeft";if(typeof K!="number"){var V=j.document;K=V.documentElement[z],typeof K!="number"&&(K=V.body[z])}return K}function a(j){var K,z,V=j.ownerDocument,Q=V.body,G=V&&V.documentElement,te=j.getBoundingClientRect();return K=te.left,z=te.top,K-=G.clientLeft||Q.clientLeft||0,z-=G.clientTop||Q.clientTop||0,{left:K,top:z}}function c(j){var K=a(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(i.a)(j),Q;if(K){var G=Object(i.a)(this).constructor;Q=Reflect.construct(V,arguments,G)}else Q=V.apply(this,arguments);return Object(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(u.a)(z,j);var K=h(z);function z(){var V;return Object(f.a)(this,z),V=K.apply(this,arguments),V.onHover=function(Q){var G=V.props,te=G.onHover,q=G.index;te(Q,q)},V.onClick=function(Q){var G=V.props,te=G.onClick,q=G.index;te(Q,q)},V.onKeyDown=function(Q){var G=V.props,te=G.onClick,q=G.index;Q.keyCode===13&&te(Q,q)},V}return Object(d.a)(z,[{key:"getClassName",value:function(){var Q=this.props,G=Q.prefixCls,te=Q.index,q=Q.value,le=Q.allowHalf,re=Q.focused,we=te+1,Ie=G;return q===0&&te===0&&re?Ie+=" ".concat(G,"-focused"):le&&q+.5>=we&&q<we?(Ie+=" ".concat(G,"-half ").concat(G,"-active"),re&&(Ie+=" ".concat(G,"-focused"))):(Ie+=we<=q?" ".concat(G,"-full"):" ".concat(G,"-zero"),we===q&&re&&(Ie+=" ".concat(G,"-focused"))),Ie}},{key:"render",value:function(){var Q=this.onHover,G=this.onClick,te=this.onKeyDown,q=this.props,le=q.disabled,re=q.prefixCls,we=q.character,Ie=q.characterRender,Me=q.index,Je=q.count,Ve=q.value,ut=typeof we=="function"?we(this.props):we,Fe=v.a.createElement("li",{className:this.getClassName()},v.a.createElement("div",{onClick:le?null:G,onKeyDown:le?null:te,onMouseMove:le?null:Q,role:"radio","aria-checked":Ve>Me?"true":"false","aria-posinset":Me+1,"aria-setsize":Je,tabIndex:le?-1:0},v.a.createElement("div",{className:"".concat(re,"-first")},ut),v.a.createElement("div",{className:"".concat(re,"-second")},ut)));return Ie&&(Fe=Ie(Fe,this.props)),Fe}}]),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 S(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(i.a)(j),Q;if(K){var G=Object(i.a)(this).constructor;Q=Reflect.construct(V,arguments,G)}else Q=V.apply(this,arguments);return Object(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(u.a)(z,j);var K=E(z);function z(V){var Q;Object(f.a)(this,z),Q=K.call(this,V),Q.onHover=function(te,q){var le=Q.props.onHoverChange,re=Q.getStarValue(q,te.pageX),we=Q.state.cleanedValue;re!==we&&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,q){var le=Q.props.allowClear,re=Q.state.value,we=Q.getStarValue(q,te.pageX),Ie=!1;le&&(Ie=we===re),Q.onMouseLeave(),Q.changeValue(Ie?0:we),Q.setState({cleanedValue:Ie?we:null})},Q.onFocus=function(){var te=Q.props.onFocus;Q.setState({focused:!0}),te&&te()},Q.onBlur=function(){var te=Q.props.onBlur;Q.setState({focused:!1}),te&&te()},Q.onKeyDown=function(te){var q=te.keyCode,le=Q.props,re=le.count,we=le.allowHalf,Ie=le.onKeyDown,Me=le.direction,Je=Me==="rtl",Ve=Q.state.value;q===l.a.RIGHT&&Ve<re&&!Je?(we?Ve+=.5:Ve+=1,Q.changeValue(Ve),te.preventDefault()):q===l.a.LEFT&&Ve>0&&!Je||q===l.a.RIGHT&&Ve>0&&Je?(we?Ve-=.5:Ve-=1,Q.changeValue(Ve),te.preventDefault()):q===l.a.LEFT&&Ve<re&&Je&&(we?Ve+=.5:Ve+=1,Q.changeValue(Ve),te.preventDefault()),Ie&&Ie(te)},Q.saveRef=function(te){return function(q){Q.stars[te]=q}},Q.saveRate=function(te){Q.rate=te};var G=V.value;return G===void 0&&(G=V.defaultValue),Q.stars={},Q.state={value:G,focused:!1,cleanedValue:null},Q}return Object(d.a)(z,[{key:"componentDidMount",value:function(){var Q=this.props,G=Q.autoFocus,te=Q.disabled;G&&!te&&this.focus()}},{key:"getStarDOM",value:function(Q){return Object(t.a)(this.stars[Q])}},{key:"getStarValue",value:function(Q,G){var te=this.props,q=te.allowHalf,le=te.direction,re=le==="rtl",we=Q+1;if(q){var Ie=this.getStarDOM(Q),Me=c(Ie),Je=Ie.clientWidth;(re&&G-Me>Je/2||!re&&G-Me<Je/2)&&(we-=.5)}return we}},{key:"focus",value:function(){var Q=this.props.disabled;Q||this.rate.focus()}},{key:"blur",value:function(){var Q=this.props.disabled;Q||this.rate.blur()}},{key:"changeValue",value:function(Q){var G=this.props.onChange;"value"in this.props||this.setState({value:Q}),G(Q)}},{key:"render",value:function(){for(var Q=this.props,G=Q.count,te=Q.allowHalf,q=Q.style,le=Q.prefixCls,re=Q.disabled,we=Q.className,Ie=Q.character,Me=Q.characterRender,Je=Q.tabIndex,Ve=Q.direction,ut=this.state,Fe=ut.value,ae=ut.hoverValue,at=ut.focused,he=[],J=re?"".concat(le,"-disabled"):"",Y=0;Y<G;Y+=1)he.push(v.a.createElement(A,{ref:this.saveRef(Y),index:Y,count:G,disabled:re,prefixCls:"".concat(le,"-star"),allowHalf:te,value:ae===void 0?Fe:ae,onClick:this.onClick,onHover:this.onHover,key:Y,character:Ie,characterRender:Me,focused:at}));var $=e()(le,J,we,Object(m.a)({},"".concat(le,"-rtl"),Ve==="rtl"));return v.a.createElement("ul",{className:$,style:q,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"},he)}}],[{key:"getDerivedStateFromProps",value:function(Q,G){return"value"in Q&&Q.value!==void 0?S(S({},G),{},{value:Q.value}):G}}]),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 w=T,O=w,I=n("Lerx"),R=n.n(I),M=n("3S7+"),B=n("H84U"),P=function(j,K){var z={};for(var V in j)Object.prototype.hasOwnProperty.call(j,V)&&K.indexOf(V)<0&&(z[V]=j[V]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(j);Q<V.length;Q++)K.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(j,V[Q])&&(z[V[Q]]=j[V[Q]]);return z},X=x.forwardRef(function(j,K){var z=j.prefixCls,V=j.tooltips,Q=P(j,["prefixCls","tooltips"]),G=function(Ie,Me){var Je=Me.index;return V?x.createElement(M.a,{title:V[Je]},Ie):Ie},te=x.useContext(B.b),q=te.getPrefixCls,le=te.direction,re=q("rate",z);return x.createElement(O,p()({ref:K,characterRender:G},Q,{prefixCls:re,direction:le}))});X.displayName="Rate",X.defaultProps={character:x.createElement(R.a,null)};var F=D.a=X},H6uX:function(k,D){var n=Array.prototype.slice,y=function(f){this._$handlers={},this._$eventProcessor=f};y.prototype={constructor:y,one:function(f,d,u,o){return x(this,f,d,u,o,!0)},on:function(f,d,u,o){return x(this,f,d,u,o,!1)},isSilent:function(f){var d=this._$handlers;return!d[f]||!d[f].length},off:function(f,d){var u=this._$handlers;if(!f)return this._$handlers={},this;if(d){if(u[f]){for(var o=[],i=0,t=u[f].length;i<t;i++)u[f][i].h!==d&&o.push(u[f][i]);u[f]=o}u[f]&&u[f].length===0&&delete u[f]}else delete u[f];return this},trigger:function(f){var d=this._$handlers[f],u=this._$eventProcessor;if(d){var o=arguments,i=o.length;i>3&&(o=n.call(o,1));for(var t=d.length,s=0;s<t;){var e=d[s];if(u&&u.filter&&e.query!=null&&!u.filter(f,e.query)){s++;continue}switch(i){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(s,1),t--):s++}}return u&&u.afterTrigger&&u.afterTrigger(f),this},triggerWithContext:function(f){var d=this._$handlers[f],u=this._$eventProcessor;if(d){var o=arguments,i=o.length;i>4&&(o=n.call(o,1,o.length-1));for(var t=o[o.length-1],s=d.length,e=0;e<s;){var l=d[e];if(u&&u.filter&&l.query!=null&&!u.filter(f,l.query)){e++;continue}switch(i){case 1:l.h.call(t);break;case 2:l.h.call(t,o[1]);break;case 3:l.h.call(t,o[1],o[2]);break;default:l.h.apply(t,o);break}l.one?(d.splice(e,1),s--):e++}}return u&&u.afterTrigger&&u.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,u,o,i){var t=m._$handlers;if(typeof d=="function"&&(o=u,u=d,d=null),!u||!f)return m;d=p(m,d),t[f]||(t[f]=[]);for(var s=0;s<t[f].length;s++)if(t[f][s].h===u)return m;var e={h:u,one:i,query:d,ctx:o||m,callAtLast:u.zrEventfulCallAtLast},l=t[f].length-1,r=t[f][l];return r&&r.callAtLast?t[f].splice(l,0,e):t[f].push(e),m}var v=y;k.exports=v},H7XF:function(k,D,n){"use strict";D.byteLength=u,D.toByteArray=i,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(l){var r=l.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=l.indexOf("=");a===-1&&(a=r);var c=a===r?0:4-a%4;return[a,c]}function u(l){var r=d(l),a=r[0],c=r[1];return(a+c)*3/4-c}function o(l,r,a){return(r+a)*3/4-a}function i(l){var r,a=d(l),c=a[0],h=a[1],g=new x(o(l,c,h)),A=0,b=h>0?c-4:c,S;for(S=0;S<b;S+=4)r=p[l.charCodeAt(S)]<<18|p[l.charCodeAt(S+1)]<<12|p[l.charCodeAt(S+2)]<<6|p[l.charCodeAt(S+3)],g[A++]=r>>16&255,g[A++]=r>>8&255,g[A++]=r&255;return h===2&&(r=p[l.charCodeAt(S)]<<2|p[l.charCodeAt(S+1)]>>4,g[A++]=r&255),h===1&&(r=p[l.charCodeAt(S)]<<10|p[l.charCodeAt(S+1)]<<4|p[l.charCodeAt(S+2)]>>2,g[A++]=r>>8&255,g[A++]=r&255),g}function t(l){return y[l>>18&63]+y[l>>12&63]+y[l>>6&63]+y[l&63]}function s(l,r,a){for(var c,h=[],g=r;g<a;g+=3)c=(l[g]<<16&16711680)+(l[g+1]<<8&65280)+(l[g+2]&255),h.push(t(c));return h.join("")}function e(l){for(var r,a=l.length,c=a%3,h=[],g=16383,A=0,b=a-c;A<b;A+=g)h.push(s(l,A,A+g>b?b:A+g));return c===1?(r=l[a-1],h.push(y[r>>2]+y[r<<4&63]+"==")):c===2&&(r=(l[a-2]<<8)+l[a-1],h.push(y[r>>10]+y[r>>4&63]+y[r<<2&63]+"=")),h.join("")}},H8j4:function(k,D,n){var y=n("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}k.exports=p},HBhm:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};D.default=y},HDXh:function(k,D,n){"use strict";(function(y){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/var p=n("H7XF"),x=n("kVK+"),v=n("49sm");D.Buffer=u,D.SlowBuffer=h,D.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=y.TYPED_ARRAY_SUPPORT!==void 0?y.TYPED_ARRAY_SUPPORT:m(),D.kMaxLength=f();function m(){try{var he=new Uint8Array(1);return he.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},he.foo()===42&&typeof he.subarray=="function"&&he.subarray(1,1).byteLength===0}catch(J){return!1}}function f(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(he,J){if(f()<J)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(he=new Uint8Array(J),he.__proto__=u.prototype):(he===null&&(he=new u(J)),he.length=J),he}function u(he,J,Y){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(he,J,Y);if(typeof he=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return s(this,he)}return o(this,he,J,Y)}u.poolSize=8192,u._augment=function(he){return he.__proto__=u.prototype,he};function o(he,J,Y,$){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?r(he,J,Y,$):typeof J=="string"?e(he,J,Y):a(he,J)}u.from=function(he,J,Y){return o(null,he,J,Y)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0}));function i(he){if(typeof he!="number")throw new TypeError('"size" argument must be a number');if(he<0)throw new RangeError('"size" argument must not be negative')}function t(he,J,Y,$){return i(J),J<=0?d(he,J):Y!==void 0?typeof $=="string"?d(he,J).fill(Y,$):d(he,J).fill(Y):d(he,J)}u.alloc=function(he,J,Y){return t(null,he,J,Y)};function s(he,J){if(i(J),he=d(he,J<0?0:c(J)|0),!u.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<J;++Y)he[Y]=0;return he}u.allocUnsafe=function(he){return s(null,he)},u.allocUnsafeSlow=function(he){return s(null,he)};function e(he,J,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!u.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var $=g(J,Y)|0;he=d(he,$);var de=he.write(J,Y);return de!==$&&(he=he.slice(0,de)),he}function l(he,J){var Y=J.length<0?0:c(J.length)|0;he=d(he,Y);for(var $=0;$<Y;$+=1)he[$]=J[$]&255;return he}function r(he,J,Y,$){if(J.byteLength,Y<0||J.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(J.byteLength<Y+($||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&$===void 0?J=new Uint8Array(J):$===void 0?J=new Uint8Array(J,Y):J=new Uint8Array(J,Y,$),u.TYPED_ARRAY_SUPPORT?(he=J,he.__proto__=u.prototype):he=l(he,J),he}function a(he,J){if(u.isBuffer(J)){var Y=c(J.length)|0;return he=d(he,Y),he.length===0||J.copy(he,0,0,Y),he}if(J){if(typeof ArrayBuffer!="undefined"&&J.buffer instanceof ArrayBuffer||"length"in J)return typeof J.length!="number"||at(J.length)?d(he,0):l(he,J);if(J.type==="Buffer"&&v(J.data))return l(he,J.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(he){if(he>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return he|0}function h(he){return+he!=he&&(he=0),u.alloc(+he)}u.isBuffer=function(J){return!!(J!=null&&J._isBuffer)},u.compare=function(J,Y){if(!u.isBuffer(J)||!u.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(J===Y)return 0;for(var $=J.length,de=Y.length,be=0,Ce=Math.min($,de);be<Ce;++be)if(J[be]!==Y[be]){$=J[be],de=Y[be];break}return $<de?-1:de<$?1:0},u.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}},u.concat=function(J,Y){if(!v(J))throw new TypeError('"list" argument must be an Array of Buffers');if(J.length===0)return u.alloc(0);var $;if(Y===void 0)for(Y=0,$=0;$<J.length;++$)Y+=J[$].length;var de=u.allocUnsafe(Y),be=0;for($=0;$<J.length;++$){var Ce=J[$];if(!u.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(de,be),be+=Ce.length}return de};function g(he,J){if(u.isBuffer(he))return he.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(he)||he instanceof ArrayBuffer))return he.byteLength;typeof he!="string"&&(he=""+he);var Y=he.length;if(Y===0)return 0;for(var $=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return Je(he).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Fe(he).length;default:if($)return Je(he).length;J=(""+J).toLowerCase(),$=!0}}u.byteLength=g;function A(he,J,Y){var $=!1;if((J===void 0||J<0)&&(J=0),J>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,J>>>=0,Y<=J)return"";for(he||(he="utf8");;)switch(he){case"hex":return j(this,J,Y);case"utf8":case"utf-8":return M(this,J,Y);case"ascii":return X(this,J,Y);case"latin1":case"binary":return F(this,J,Y);case"base64":return R(this,J,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,J,Y);default:if($)throw new TypeError("Unknown encoding: "+he);he=(he+"").toLowerCase(),$=!0}}u.prototype._isBuffer=!0;function b(he,J,Y){var $=he[J];he[J]=he[Y],he[Y]=$}u.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},u.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},u.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},u.prototype.toString=function(){var J=this.length|0;return J===0?"":arguments.length===0?M(this,0,J):A.apply(this,arguments)},u.prototype.equals=function(J){if(!u.isBuffer(J))throw new TypeError("Argument must be a Buffer");return this===J?!0:u.compare(this,J)===0},u.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+">"},u.prototype.compare=function(J,Y,$,de,be){if(!u.isBuffer(J))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),$===void 0&&($=J?J.length:0),de===void 0&&(de=0),be===void 0&&(be=this.length),Y<0||$>J.length||de<0||be>this.length)throw new RangeError("out of range index");if(de>=be&&Y>=$)return 0;if(de>=be)return-1;if(Y>=$)return 1;if(Y>>>=0,$>>>=0,de>>>=0,be>>>=0,this===J)return 0;for(var Ce=be-de,Be=$-Y,fe=Math.min(Ce,Be),Se=this.slice(de,be),ke=J.slice(Y,$),rt=0;rt<fe;++rt)if(Se[rt]!==ke[rt]){Ce=Se[rt],Be=ke[rt];break}return Ce<Be?-1:Be<Ce?1:0};function S(he,J,Y,$,de){if(he.length===0)return-1;if(typeof Y=="string"?($=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=de?0:he.length-1),Y<0&&(Y=he.length+Y),Y>=he.length){if(de)return-1;Y=he.length-1}else if(Y<0)if(de)Y=0;else return-1;if(typeof J=="string"&&(J=u.from(J,$)),u.isBuffer(J))return J.length===0?-1:E(he,J,Y,$,de);if(typeof J=="number")return J=J&255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?de?Uint8Array.prototype.indexOf.call(he,J,Y):Uint8Array.prototype.lastIndexOf.call(he,J,Y):E(he,[J],Y,$,de);throw new TypeError("val must be string, number or Buffer")}function E(he,J,Y,$,de){var be=1,Ce=he.length,Be=J.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(he.length<2||J.length<2)return-1;be=2,Ce/=2,Be/=2,Y/=2}function fe(ht,He){return be===1?ht[He]:ht.readUInt16BE(He*be)}var Se;if(de){var ke=-1;for(Se=Y;Se<Ce;Se++)if(fe(he,Se)===fe(J,ke===-1?0:Se-ke)){if(ke===-1&&(ke=Se),Se-ke+1===Be)return ke*be}else ke!==-1&&(Se-=Se-ke),ke=-1}else for(Y+Be>Ce&&(Y=Ce-Be),Se=Y;Se>=0;Se--){for(var rt=!0,xt=0;xt<Be;xt++)if(fe(he,Se+xt)!==fe(J,xt)){rt=!1;break}if(rt)return Se}return-1}u.prototype.includes=function(J,Y,$){return this.indexOf(J,Y,$)!==-1},u.prototype.indexOf=function(J,Y,$){return S(this,J,Y,$,!0)},u.prototype.lastIndexOf=function(J,Y,$){return S(this,J,Y,$,!1)};function C(he,J,Y,$){Y=Number(Y)||0;var de=he.length-Y;$?($=Number($),$>de&&($=de)):$=de;var be=J.length;if(be%2!==0)throw new TypeError("Invalid hex string");$>be/2&&($=be/2);for(var Ce=0;Ce<$;++Ce){var Be=parseInt(J.substr(Ce*2,2),16);if(isNaN(Be))return Ce;he[Y+Ce]=Be}return Ce}function _(he,J,Y,$){return ae(Je(J,he.length-Y),he,Y,$)}function T(he,J,Y,$){return ae(Ve(J),he,Y,$)}function w(he,J,Y,$){return T(he,J,Y,$)}function O(he,J,Y,$){return ae(Fe(J),he,Y,$)}function I(he,J,Y,$){return ae(ut(J,he.length-Y),he,Y,$)}u.prototype.write=function(J,Y,$,de){if(Y===void 0)de="utf8",$=this.length,Y=0;else if($===void 0&&typeof Y=="string")de=Y,$=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite($)?($=$|0,de===void 0&&(de="utf8")):(de=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var be=this.length-Y;if(($===void 0||$>be)&&($=be),J.length>0&&($<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");for(var Ce=!1;;)switch(de){case"hex":return C(this,J,Y,$);case"utf8":case"utf-8":return _(this,J,Y,$);case"ascii":return T(this,J,Y,$);case"latin1":case"binary":return w(this,J,Y,$);case"base64":return O(this,J,Y,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,J,Y,$);default:if(Ce)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),Ce=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(he,J,Y){return J===0&&Y===he.length?p.fromByteArray(he):p.fromByteArray(he.slice(J,Y))}function M(he,J,Y){Y=Math.min(he.length,Y);for(var $=[],de=J;de<Y;){var be=he[de],Ce=null,Be=be>239?4:be>223?3:be>191?2:1;if(de+Be<=Y){var fe,Se,ke,rt;switch(Be){case 1:be<128&&(Ce=be);break;case 2:fe=he[de+1],(fe&192)===128&&(rt=(be&31)<<6|fe&63,rt>127&&(Ce=rt));break;case 3:fe=he[de+1],Se=he[de+2],(fe&192)===128&&(Se&192)===128&&(rt=(be&15)<<12|(fe&63)<<6|Se&63,rt>2047&&(rt<55296||rt>57343)&&(Ce=rt));break;case 4:fe=he[de+1],Se=he[de+2],ke=he[de+3],(fe&192)===128&&(Se&192)===128&&(ke&192)===128&&(rt=(be&15)<<18|(fe&63)<<12|(Se&63)<<6|ke&63,rt>65535&&rt<1114112&&(Ce=rt))}}Ce===null?(Ce=65533,Be=1):Ce>65535&&(Ce-=65536,$.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),$.push(Ce),de+=Be}return P($)}var B=4096;function P(he){var J=he.length;if(J<=B)return String.fromCharCode.apply(String,he);for(var Y="",$=0;$<J;)Y+=String.fromCharCode.apply(String,he.slice($,$+=B));return Y}function X(he,J,Y){var $="";Y=Math.min(he.length,Y);for(var de=J;de<Y;++de)$+=String.fromCharCode(he[de]&127);return $}function F(he,J,Y){var $="";Y=Math.min(he.length,Y);for(var de=J;de<Y;++de)$+=String.fromCharCode(he[de]);return $}function j(he,J,Y){var $=he.length;(!J||J<0)&&(J=0),(!Y||Y<0||Y>$)&&(Y=$);for(var de="",be=J;be<Y;++be)de+=Me(he[be]);return de}function K(he,J,Y){for(var $=he.slice(J,Y),de="",be=0;be<$.length;be+=2)de+=String.fromCharCode($[be]+$[be+1]*256);return de}u.prototype.slice=function(J,Y){var $=this.length;J=~~J,Y=Y===void 0?$:~~Y,J<0?(J+=$,J<0&&(J=0)):J>$&&(J=$),Y<0?(Y+=$,Y<0&&(Y=0)):Y>$&&(Y=$),Y<J&&(Y=J);var de;if(u.TYPED_ARRAY_SUPPORT)de=this.subarray(J,Y),de.__proto__=u.prototype;else{var be=Y-J;de=new u(be,void 0);for(var Ce=0;Ce<be;++Ce)de[Ce]=this[Ce+J]}return de};function z(he,J,Y){if(he%1!==0||he<0)throw new RangeError("offset is not uint");if(he+J>Y)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J],be=1,Ce=0;++Ce<Y&&(be*=256);)de+=this[J+Ce]*be;return de},u.prototype.readUIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J+--Y],be=1;Y>0&&(be*=256);)de+=this[J+--Y]*be;return de},u.prototype.readUInt8=function(J,Y){return Y||z(J,1,this.length),this[J]},u.prototype.readUInt16LE=function(J,Y){return Y||z(J,2,this.length),this[J]|this[J+1]<<8},u.prototype.readUInt16BE=function(J,Y){return Y||z(J,2,this.length),this[J]<<8|this[J+1]},u.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},u.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])},u.prototype.readIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J],be=1,Ce=0;++Ce<Y&&(be*=256);)de+=this[J+Ce]*be;return be*=128,de>=be&&(de-=Math.pow(2,8*Y)),de},u.prototype.readIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=Y,be=1,Ce=this[J+--de];de>0&&(be*=256);)Ce+=this[J+--de]*be;return be*=128,Ce>=be&&(Ce-=Math.pow(2,8*Y)),Ce},u.prototype.readInt8=function(J,Y){return Y||z(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},u.prototype.readInt16LE=function(J,Y){Y||z(J,2,this.length);var $=this[J]|this[J+1]<<8;return $&32768?$|4294901760:$},u.prototype.readInt16BE=function(J,Y){Y||z(J,2,this.length);var $=this[J+1]|this[J]<<8;return $&32768?$|4294901760:$},u.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},u.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]},u.prototype.readFloatLE=function(J,Y){return Y||z(J,4,this.length),x.read(this,J,!0,23,4)},u.prototype.readFloatBE=function(J,Y){return Y||z(J,4,this.length),x.read(this,J,!1,23,4)},u.prototype.readDoubleLE=function(J,Y){return Y||z(J,8,this.length),x.read(this,J,!0,52,8)},u.prototype.readDoubleBE=function(J,Y){return Y||z(J,8,this.length),x.read(this,J,!1,52,8)};function V(he,J,Y,$,de,be){if(!u.isBuffer(he))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>de||J<be)throw new RangeError('"value" argument is out of bounds');if(Y+$>he.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(J,Y,$,de){if(J=+J,Y=Y|0,$=$|0,!de){var be=Math.pow(2,8*$)-1;V(this,J,Y,$,be,0)}var Ce=1,Be=0;for(this[Y]=J&255;++Be<$&&(Ce*=256);)this[Y+Be]=J/Ce&255;return Y+$},u.prototype.writeUIntBE=function(J,Y,$,de){if(J=+J,Y=Y|0,$=$|0,!de){var be=Math.pow(2,8*$)-1;V(this,J,Y,$,be,0)}var Ce=$-1,Be=1;for(this[Y+Ce]=J&255;--Ce>=0&&(Be*=256);)this[Y+Ce]=J/Be&255;return Y+$},u.prototype.writeUInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,255,0),u.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),this[Y]=J&255,Y+1};function Q(he,J,Y,$){J<0&&(J=65535+J+1);for(var de=0,be=Math.min(he.length-Y,2);de<be;++de)he[Y+de]=(J&255<<8*($?de:1-de))>>>($?de:1-de)*8}u.prototype.writeUInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},u.prototype.writeUInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2};function G(he,J,Y,$){J<0&&(J=4294967295+J+1);for(var de=0,be=Math.min(he.length-Y,4);de<be;++de)he[Y+de]=J>>>($?de:3-de)*8&255}u.prototype.writeUInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[Y+3]=J>>>24,this[Y+2]=J>>>16,this[Y+1]=J>>>8,this[Y]=J&255):G(this,J,Y,!0),Y+4},u.prototype.writeUInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4},u.prototype.writeIntLE=function(J,Y,$,de){if(J=+J,Y=Y|0,!de){var be=Math.pow(2,8*$-1);V(this,J,Y,$,be-1,-be)}var Ce=0,Be=1,fe=0;for(this[Y]=J&255;++Ce<$&&(Be*=256);)J<0&&fe===0&&this[Y+Ce-1]!==0&&(fe=1),this[Y+Ce]=(J/Be>>0)-fe&255;return Y+$},u.prototype.writeIntBE=function(J,Y,$,de){if(J=+J,Y=Y|0,!de){var be=Math.pow(2,8*$-1);V(this,J,Y,$,be-1,-be)}var Ce=$-1,Be=1,fe=0;for(this[Y+Ce]=J&255;--Ce>=0&&(Be*=256);)J<0&&fe===0&&this[Y+Ce+1]!==0&&(fe=1),this[Y+Ce]=(J/Be>>0)-fe&255;return Y+$},u.prototype.writeInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,127,-128),u.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),J<0&&(J=255+J+1),this[Y]=J&255,Y+1},u.prototype.writeInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},u.prototype.writeInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2},u.prototype.writeInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8,this[Y+2]=J>>>16,this[Y+3]=J>>>24):G(this,J,Y,!0),Y+4},u.prototype.writeInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4};function te(he,J,Y,$,de,be){if(Y+$>he.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function q(he,J,Y,$,de){return de||te(he,J,Y,4,34028234663852886e22,-34028234663852886e22),x.write(he,J,Y,$,23,4),Y+4}u.prototype.writeFloatLE=function(J,Y,$){return q(this,J,Y,!0,$)},u.prototype.writeFloatBE=function(J,Y,$){return q(this,J,Y,!1,$)};function le(he,J,Y,$,de){return de||te(he,J,Y,8,17976931348623157e292,-17976931348623157e292),x.write(he,J,Y,$,52,8),Y+8}u.prototype.writeDoubleLE=function(J,Y,$){return le(this,J,Y,!0,$)},u.prototype.writeDoubleBE=function(J,Y,$){return le(this,J,Y,!1,$)},u.prototype.copy=function(J,Y,$,de){if($||($=0),!de&&de!==0&&(de=this.length),Y>=J.length&&(Y=J.length),Y||(Y=0),de>0&&de<$&&(de=$),de===$)return 0;if(J.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("sourceStart out of bounds");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),J.length-Y<de-$&&(de=J.length-Y+$);var be=de-$,Ce;if(this===J&&$<Y&&Y<de)for(Ce=be-1;Ce>=0;--Ce)J[Ce+Y]=this[Ce+$];else if(be<1e3||!u.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<be;++Ce)J[Ce+Y]=this[Ce+$];else Uint8Array.prototype.set.call(J,this.subarray($,$+be),Y);return be},u.prototype.fill=function(J,Y,$,de){if(typeof J=="string"){if(typeof Y=="string"?(de=Y,Y=0,$=this.length):typeof $=="string"&&(de=$,$=this.length),J.length===1){var be=J.charCodeAt(0);be<256&&(J=be)}if(de!==void 0&&typeof de!="string")throw new TypeError("encoding must be a string");if(typeof de=="string"&&!u.isEncoding(de))throw new TypeError("Unknown encoding: "+de)}else typeof J=="number"&&(J=J&255);if(Y<0||this.length<Y||this.length<$)throw new RangeError("Out of range index");if($<=Y)return this;Y=Y>>>0,$=$===void 0?this.length:$>>>0,J||(J=0);var Ce;if(typeof J=="number")for(Ce=Y;Ce<$;++Ce)this[Ce]=J;else{var Be=u.isBuffer(J)?J:Je(new u(J,de).toString()),fe=Be.length;for(Ce=0;Ce<$-Y;++Ce)this[Ce+Y]=Be[Ce%fe]}return this};var re=/[^+\/0-9A-Za-z-_]/g;function we(he){if(he=Ie(he).replace(re,""),he.length<2)return"";for(;he.length%4!==0;)he=he+"=";return he}function Ie(he){return he.trim?he.trim():he.replace(/^\s+|\s+$/g,"")}function Me(he){return he<16?"0"+he.toString(16):he.toString(16)}function Je(he,J){J=J||Infinity;for(var Y,$=he.length,de=null,be=[],Ce=0;Ce<$;++Ce){if(Y=he.charCodeAt(Ce),Y>55295&&Y<57344){if(!de){if(Y>56319){(J-=3)>-1&&be.push(239,191,189);continue}else if(Ce+1===$){(J-=3)>-1&&be.push(239,191,189);continue}de=Y;continue}if(Y<56320){(J-=3)>-1&&be.push(239,191,189),de=Y;continue}Y=(de-55296<<10|Y-56320)+65536}else de&&((J-=3)>-1&&be.push(239,191,189));if(de=null,Y<128){if((J-=1)<0)break;be.push(Y)}else if(Y<2048){if((J-=2)<0)break;be.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((J-=3)<0)break;be.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((J-=4)<0)break;be.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return be}function Ve(he){for(var J=[],Y=0;Y<he.length;++Y)J.push(he.charCodeAt(Y)&255);return J}function ut(he,J){for(var Y,$,de,be=[],Ce=0;Ce<he.length&&!((J-=2)<0);++Ce)Y=he.charCodeAt(Ce),$=Y>>8,de=Y%256,be.push(de),be.push($);return be}function Fe(he){return p.toByteArray(we(he))}function ae(he,J,Y,$){for(var de=0;de<$&&!(de+Y>=J.length||de>=he.length);++de)J[de+Y]=he[de];return de}function at(he){return he!==he}}).call(this,n("yLpj"))},HDyB:function(k,D,n){var y=n("nmnc"),p=n("JHRd"),x=n("ljhN"),v=n("or5M"),m=n("7fqy"),f=n("rEGp"),d=1,u=2,o="[object Boolean]",i="[object Date]",t="[object Error]",s="[object Map]",e="[object Number]",l="[object RegExp]",r="[object Set]",a="[object String]",c="[object Symbol]",h="[object ArrayBuffer]",g="[object DataView]",A=y?y.prototype:void 0,b=A?A.valueOf:void 0;function S(E,C,_,T,w,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 i:case e:return x(+E,+C);case t:return E.name==C.name&&E.message==C.message;case l:case a:return E==C+"";case s:var R=m;case r:var M=T&d;if(R||(R=f),E.size!=C.size&&!M)return!1;var B=I.get(E);if(B)return B==C;T|=u,I.set(E,C);var P=v(R(E),R(C),T,w,O,I);return I.delete(E),P;case c:if(b)return b.call(E)==b.call(C)}return!1}k.exports=S},"HF/U":function(k,D,n){var y=n("QBsz");function p(v){var m=v.coordinateSystem;if(m&&m.type!=="view")return;var f=v.getGraph();f.eachNode(function(d){var u=d.getModel();d.setLayout([+u.get("x"),+u.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()),u=y.clone(m.node2.getLayout()),o=[d,u];+f&&o.push([(d[0]+u[0])/2-(d[1]-u[1])*f,(d[1]+u[1])/2-(u[0]-d[0])*f]),m.setLayout(o)})}D.simpleLayout=p,D.simpleLayoutEdge=x},"HM/N":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),v=n("/SeX"),m=n("OELB"),f=m.parsePercent,d=n("aX7z"),u=d.createScaleByModel,o=d.niceScaleExtent,i=n("IDmD"),t=n("7hqr"),s=t.getStackedDimension;n("ePAk");function e(c,h,g){var A=h.get("center"),b=g.getWidth(),S=g.getHeight();c.cx=f(A[0],b),c.cy=f(A[1],S);var E=c.getRadiusAxis(),C=Math.min(b,S)/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 l(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(_,s(_,T))}),x.each(_.mapDimension("angle",!0),function(T){A.scale.unionExtentFromData(_,s(_,T))})}}),o(A.scale,A.model),o(b.scale,b.model),A.type==="category"&&!A.onBand){var S=A.getExtent(),E=360/A.scale.count();A.inverse?S[1]+=E:S[1]-=E,A.setExtent(S[0],S[1])}}function r(c,h){if(c.type=h.get("type"),c.scale=u(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 a={dimensions:v.prototype.dimensions,create:function(c,h){var g=[];return c.eachComponent("polar",function(A,b){var S=new v(b);S.update=l;var E=S.getRadiusAxis(),C=S.getAngleAxis(),_=A.findAxisModel("radiusAxis"),T=A.findAxisModel("angleAxis");r(E,_),r(C,T),e(S,A,h),g.push(S),A.coordinateSystem=S,S.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}};i.register("polar",a)},HOxn:function(k,D,n){var y=n("Cwc5"),p=n("Kz5y"),x=y(p,"Promise");k.exports=x},HQEm:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("Sj0X"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},HjIi:function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=p.parsePercent,v=n("7hqr"),m=v.isDimensionStacked;function f(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function d(t,s){return s.dim+t.model.componentIndex}function u(t,s,e){var l={},r=o(y.filter(s.getSeriesByType(t),function(a){return!s.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));s.eachSeriesByType(t,function(a){if(a.coordinateSystem.type!=="polar")return;var c=a.getData(),h=a.coordinateSystem,g=h.getBaseAxis(),A=d(h,g),b=f(a),S=r[A][b],E=S.offset,C=S.width,_=h.getOtherAxis(g),T=a.coordinateSystem.cx,w=a.coordinateSystem.cy,O=a.get("barMinHeight")||0,I=a.get("barMinAngle")||0;l[b]=l[b]||[];for(var R=c.mapDimension(_.dim),M=c.mapDimension(g.dim),B=m(c,R),P=g.dim!=="radius"||!a.get("roundCap",!0),X=_.getExtent()[0],F=0,j=c.count();F<j;F++){var K=c.get(R,F),z=c.get(M,F),V=K>=0?"p":"n",Q=X;B&&(l[b][z]||(l[b][z]={p:X,n:X}),Q=l[b][z][V]);var G,te,q,le;if(_.dim==="radius"){var re=_.dataToRadius(K)-X,we=g.dataToAngle(z);Math.abs(re)<O&&(re=(re<0?-1:1)*O),G=Q,te=Q+re,q=we-E,le=q-C,B&&(l[b][z][V]=te)}else{var Ie=_.dataToAngle(K,P)-X,Me=g.dataToRadius(z);Math.abs(Ie)<I&&(Ie=(Ie<0?-1:1)*I),G=Me+E,te=G+C,q=Q,le=Q+Ie,B&&(l[b][z][V]=le)}c.setItemLayout(F,{cx:T,cy:w,r0:G,r:te,startAngle:-q*Math.PI/180,endAngle:-le*Math.PI/180})}},this)}function o(t,s){var e={};y.each(t,function(r,a){var c=r.getData(),h=r.coordinateSystem,g=h.getBaseAxis(),A=d(h,g),b=g.getExtent(),S=g.type==="category"?g.getBandWidth():Math.abs(b[1]-b[0])/c.count(),E=e[A]||{bandWidth:S,remainedWidth:S,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"),S),w=x(r.get("barMaxWidth"),S),O=r.get("barGap"),I=r.get("barCategoryGap");T&&!C[_].width&&(T=Math.min(E.remainedWidth,T),C[_].width=T,E.remainedWidth-=T),w&&(C[_].maxWidth=w),O!=null&&(E.gap=O),I!=null&&(E.categoryGap=I)});var l={};return y.each(e,function(r,a){l[a]={};var c=r.stacks,h=r.bandWidth,g=x(r.categoryGap,h),A=x(r.gap,1),b=r.remainedWidth,S=r.autoWidthCount,E=(b-g)/(S+(S-1)*A);E=Math.max(E,0),y.each(c,function(w,O){var I=w.maxWidth;I&&I<E&&(I=Math.min(I,b),w.width&&(I=Math.min(I,w.width)),b-=I,w.width=I,S--)}),E=(b-g)/(S+(S-1)*A),E=Math.max(E,0);var C=0,_;y.each(c,function(w,O){w.width||(w.width=E),_=w,C+=w.width*(1+A)}),_&&(C-=_.width*A);var T=-C/2;y.each(c,function(w,O){l[a][O]=l[a][O]||{offset:T,width:w.width},T+=w.width*(1+A)})}),l}var i=u;k.exports=i},HjOm:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},p=y;D.default=p},Hvzi:function(k,D){function n(y){var p=this.has(y)&&delete this.__data__[y];return this.size-=p?1:0,p}k.exports=n},Hw7h:function(k,D,n){var y=n("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,u=v.width,o=v.angle,i=v.x-m(o)*u*(u>=d/3?1:2),t=v.y-f(o)*u*(u>=d/3?1:2);o=v.angle-Math.PI/2,x.moveTo(i,t),x.lineTo(v.x+m(o)*u,v.y+f(o)*u),x.lineTo(v.x+m(v.angle)*d,v.y+f(v.angle)*d),x.lineTo(v.x-m(o)*u,v.y-f(o)*u),x.lineTo(i,t);return}});k.exports=p},Hxpc:function(k,D,n){var y=n("bYtY"),p=n("4NO4"),x=n("bLfw"),v=n("Qxkt"),m=n("cCMj"),f=n("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,i=this;o.regions=f.getFilledRegions(o.regions,o.map,o.nameMap),this._optionModelMap=y.reduce(o.regions||[],function(t,s){return s.name&&t.set(s.name,new v(s,i)),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,i){var t=this.getRegionModel(o),s=t.get("label"+(i==="normal"?".":i+".")+"formatter"),e={name:o};if(typeof s=="function")return e.status=i,s(e);if(typeof s=="string")return s.replace("{a}",o!=null?o:"")},setZoom:function(o){this.option.zoom=o},setCenter:function(o){this.option.center=o}});y.mixin(d,m);var u=d;k.exports=u},"I+77":function(k,D,n){var y=n("ProS");n("h54F"),n("lwQL"),n("10cm");var p=n("Z1r0"),x=n("f5Yq"),v=n("KUOm"),m=n("3m61"),f=n("01d+"),d=n("rdor"),u=n("WGYa"),o=n("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(u),y.registerCoordinateSystem("graphView",{create:o})},"I+Bx":function(k,D,n){var y=n("bYtY"),p=n("eIcI"),x=n("ieMj"),v=n("OELB"),m=n("aX7z"),f=m.getScaleExtent,d=m.niceScaleExtent,u=n("IDmD"),o=n("jCoz");function i(s,e,l){this._model=s,this.dimensions=[],this._indicatorAxes=y.map(s.getIndicatorModels(),function(r,a){var c="indicator_"+a,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(s,l),this.cx,this.cy,this.r,this.r0,this.startAngle}i.prototype.getIndicatorAxes=function(){return this._indicatorAxes},i.prototype.dataToPoint=function(s,e){var l=this._indicatorAxes[e];return this.coordToPoint(l.dataToCoord(s),e)},i.prototype.coordToPoint=function(s,e){var l=this._indicatorAxes[e],r=l.angle,a=this.cx+s*Math.cos(r),c=this.cy-s*Math.sin(r);return[a,c]},i.prototype.pointToData=function(s){var e=s[0]-this.cx,l=s[1]-this.cy,r=Math.sqrt(e*e+l*l);e/=r,l/=r;for(var a=Math.atan2(-l,e),c=Infinity,h,g=-1,A=0;A<this._indicatorAxes.length;A++){var b=this._indicatorAxes[A],S=Math.abs(a-b.angle);S<c&&(h=b,g=A,c=S)}return[g,+(h&&h.coordToData(r))]},i.prototype.resize=function(s,e){var l=s.get("center"),r=e.getWidth(),a=e.getHeight(),c=Math.min(r,a)/2;this.cx=v.parsePercent(l[0],r),this.cy=v.parsePercent(l[1],a),this.startAngle=s.get("startAngle")*Math.PI/180;var h=s.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)},i.prototype.update=function(s,e){var l=this._indicatorAxes,r=this._model;y.each(l,function(h){h.scale.setExtent(Infinity,-Infinity)}),s.eachSeriesByType("radar",function(h,g){if(h.get("coordinateSystem")!=="radar"||s.getComponent("radar",h.get("radarIndex"))!==r)return;var A=h.getData();y.each(l,function(b){b.scale.unionExtentFromData(A,A.mapDimension(b.dim))})},this);var a=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(l,function(h,g){var A=f(h.scale,h.model).extent;d(h.scale,h.model);var b=h.model,S=h.scale,E=b.getMin(),C=b.getMax(),_=S.getInterval();if(E!=null&&C!=null)S.setExtent(+E,+C),S.setInterval((C-E)/a);else if(E!=null){var T;do T=E+_*a,S.setExtent(+E,T),S.setInterval(_),_=c(_);while(T<A[1]&&isFinite(T)&&isFinite(A[1]))}else if(C!=null){var w;do w=C-_*a,S.setExtent(w,+C),S.setInterval(_),_=c(_);while(w>A[0]&&isFinite(w)&&isFinite(A[0]))}else{var O=S.getTicks().length-1;O>a&&(_=c(_));var T=Math.ceil(A[1]/_)*_,w=v.round(T-_*a);S.setExtent(w,T),S.setInterval(_)}})},i.dimensions=[],i.create=function(s,e){var l=[];return s.eachComponent("radar",function(r){var a=new i(r,s,e);l.push(a),r.coordinateSystem=a}),s.eachSeriesByType("radar",function(r){r.get("coordinateSystem")==="radar"&&(r.coordinateSystem=l[r.get("radarIndex")||0])}),l},u.register("radar",i);var t=i;k.exports=t},"I3/A":function(k,D,n){var y=n("bYtY"),p=n("YXkt"),x=n("c2i1"),v=n("Mdki"),m=n("sdST"),f=n("IDmD"),d=n("MwEJ");function u(o,i,t,s,e){for(var l=new x(s),r=0;r<o.length;r++)l.addNode(y.retrieve(o[r].id,o[r].name,r),r);for(var a=[],c=[],h=0,r=0;r<i.length;r++){var g=i[r],A=g.source,b=g.target;l.addEdge(A,b,h)&&(c.push(g),a.push(y.retrieve(g.id,A+" > "+b)),h++)}var S=t.get("coordinateSystem"),E;if(S==="cartesian2d"||S==="polar")E=d(o,t);else{var C=f.get(S),_=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 w=new p(["value"],t);return w.initData(c,a),e&&e(E,w),v({mainData:E,struct:l,structAttr:"graph",datas:{node:E,edge:w},datasAttr:{node:"data",edge:"edgeData"}}),l.update(),l}k.exports=u},I8Z2:function(k,D,n){"use strict";n.d(D,"a",function(){return v}),n.d(D,"b",function(){return e}),n.d(D,"c",function(){return r});var y=n("q1tI"),p=function(){var a=function(h,g){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,b){A.__proto__=b}||function(A,b){for(var S in b)b.hasOwnProperty(S)&&(A[S]=b[S])},a(h,g)};return function(c,h){a(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(a){p(c,a);function c(){return a!==null&&a.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=n("Gytx"),f=n.n(m),d=n("2mql"),u=n.n(d),o=function(){var a=function(h,g){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,b){A.__proto__=b}||function(A,b){for(var S in b)b.hasOwnProperty(S)&&(A[S]=b[S])},a(h,g)};return function(c,h){a(c,h);function g(){this.constructor=c}c.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}(),i=function(){return i=Object.assign||function(a){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)&&(a[A]=c[A])}return a},i.apply(this,arguments)};function t(a){return a.displayName||a.name||"Component"}var s=function(){return{}};function e(a,c){c===void 0&&(c={});var h=!!a,g=a||s;return function(b){var S=function(C){o(_,C);function _(T,w){var O=C.call(this,T,w)||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,w){return a&&a.length===2&&T!==w.props?{subscribed:g(w.store.getState(),T),props:T}:{props:T}},_.prototype.componentDidMount=function(){this.trySubscribe()},_.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},_.prototype.shouldComponentUpdate=function(T,w){return!f()(this.props,T)||!f()(this.state.subscribed,w.subscribed)},_.prototype.trySubscribe=function(){h&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},_.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},_.prototype.render=function(){var T=i(i(i({},this.props),this.state.subscribed),{store:this.store});return y.createElement(b,i({},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(S,i({},C,{miniStoreForwardedRef:_}))});return u()(E,b)}return u()(S,b)}}var l=function(){return l=Object.assign||function(a){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)&&(a[A]=c[A])}return a},l.apply(this,arguments)};function r(a){var c=a,h=[];function g(S){c=l(l({},c),S);for(var E=0;E<h.length;E++)h[E]()}function A(){return c}function b(S){return h.push(S),function(){var C=h.indexOf(S);h.splice(C,1)}}return{setState:g,getState:A,subscribe:b}}},"I9Y+":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("4xFK")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="DoubleRightOutlined";var i=v.forwardRef(o);D.default=i},ICMv:function(k,D,n){var y=n("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}};k.exports=p},"ID/q":function(k,D,n){"use strict";n.d(D,"a",function(){return v});var y=n("cDf5"),p=n.n(y);function x(m,f){typeof m=="function"?m(f):p()(m)==="object"&&m&&"current"in m&&(m.current=f)}function v(){for(var m=arguments.length,f=new Array(m),d=0;d<m;d++)f[d]=arguments[d];return function(u){f.forEach(function(o){x(o,u)})}}},IDmD:function(k,D,n){var y=n("bYtY"),p={};function x(){this._coordinateSystems=[]}x.prototype={constructor:x,create:function(m,f){var d=[];y.each(p,function(u,o){var i=u.create(m,f);d=d.concat(i||[])}),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;k.exports=v},IMiH:function(k,D,n){var y=n("Sj9i"),p=n("QBsz"),x=n("4mN7"),v=n("mFDi"),m=n("LPTA"),f=m.devicePixelRatio,d={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],o=[],i=[],t=[],s=Math.min,e=Math.max,l=Math.cos,r=Math.sin,a=Math.sqrt,c=Math.abs,h=typeof Float32Array!="undefined",g=function(S){this._saveData=!(S||!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(S,E,C){C=C||0,this._ux=c(C/f/S)||0,this._uy=c(C/f/E)||0},getContext:function(){return this._ctx},beginPath:function(S){return this._ctx=S,S&&S.beginPath(),S&&(this.dpr=S.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(S,E){return this.addData(d.M,S,E),this._ctx&&this._ctx.moveTo(S,E),this._x0=S,this._y0=E,this._xi=S,this._yi=E,this},lineTo:function(S,E){var C=c(S-this._xi)>this._ux||c(E-this._yi)>this._uy||this._len<5;return this.addData(d.L,S,E),this._ctx&&C&&(this._needsDash()?this._dashedLineTo(S,E):this._ctx.lineTo(S,E)),C&&(this._xi=S,this._yi=E),this},bezierCurveTo:function(S,E,C,_,T,w){return this.addData(d.C,S,E,C,_,T,w),this._ctx&&(this._needsDash()?this._dashedBezierTo(S,E,C,_,T,w):this._ctx.bezierCurveTo(S,E,C,_,T,w)),this._xi=T,this._yi=w,this},quadraticCurveTo:function(S,E,C,_){return this.addData(d.Q,S,E,C,_),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(S,E,C,_):this._ctx.quadraticCurveTo(S,E,C,_)),this._xi=C,this._yi=_,this},arc:function(S,E,C,_,T,w){return this.addData(d.A,S,E,C,C,_,T-_,0,w?0:1),this._ctx&&this._ctx.arc(S,E,C,_,T,w),this._xi=l(T)*C+S,this._yi=r(T)*C+E,this},arcTo:function(S,E,C,_,T){return this._ctx&&this._ctx.arcTo(S,E,C,_,T),this},rect:function(S,E,C,_){return this._ctx&&this._ctx.rect(S,E,C,_),this.addData(d.R,S,E,C,_),this},closePath:function(){this.addData(d.Z);var S=this._ctx,E=this._x0,C=this._y0;return S&&(this._needsDash()&&this._dashedLineTo(E,C),S.closePath()),this._xi=E,this._yi=C,this},fill:function(S){S&&S.fill(),this.toStatic()},stroke:function(S){S&&S.stroke(),this.toStatic()},setLineDash:function(S){if(S instanceof Array){this._lineDash=S,this._dashIdx=0;for(var E=0,C=0;C<S.length;C++)E+=S[C];this._dashSum=E}return this},setLineDashOffset:function(S){return this._dashOffset=S,this},len:function(){return this._len},setData:function(S){var E=S.length;!(this.data&&this.data.length===E)&&h&&(this.data=new Float32Array(E));for(var C=0;C<E;C++)this.data[C]=S[C];this._len=E},appendPath:function(S){S instanceof Array||(S=[S]);for(var E=S.length,C=0,_=this._len,T=0;T<E;T++)C+=S[T].len();h&&this.data instanceof Float32Array&&(this.data=new Float32Array(_+C));for(var T=0;T<E;T++)for(var w=S[T].data,O=0;O<w.length;O++)this.data[_++]=w[O];this._len=_},addData:function(S){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=S},_expandData:function(){if(!(this.data instanceof Array)){for(var S=[],E=0;E<this._len;E++)S[E]=this.data[E];this.data=S}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(S,E){var C=this._dashSum,_=this._dashOffset,T=this._lineDash,w=this._ctx,O=this._xi,I=this._yi,R=S-O,M=E-I,B=a(R*R+M*M),P=O,X=I,F,j=T.length,K;for(R/=B,M/=B,_<0&&(_=C+_),_%=C,P-=_*R,X-=_*M;R>0&&P<=S||R<0&&P>=S||R===0&&(M>0&&X<=E||M<0&&X>=E);){if(K=this._dashIdx,F=T[K],P+=R*F,X+=M*F,this._dashIdx=(K+1)%j,R>0&&P<O||R<0&&P>O||M>0&&X<I||M<0&&X>I)continue;w[K%2?"moveTo":"lineTo"](R>=0?s(P,S):e(P,S),M>=0?s(X,E):e(X,E))}R=P-S,M=X-E,this._dashOffset=-a(R*R+M*M)},_dashedBezierTo:function(S,E,C,_,T,w){var O=this._dashSum,I=this._dashOffset,R=this._lineDash,M=this._ctx,B=this._xi,P=this._yi,X,F,j,K=y.cubicAt,z=0,V=this._dashIdx,Q=R.length,G,te,q=0;for(I<0&&(I=O+I),I%=O,X=0;X<1;X+=.1)F=K(B,S,C,T,X+.1)-K(B,S,C,T,X),j=K(P,E,_,w,X+.1)-K(P,E,_,w,X),z+=a(F*F+j*j);for(;V<Q&&!(q+=R[V],q>I);V++);for(X=(q-I)/z;X<=1;)G=K(B,S,C,T,X),te=K(P,E,_,w,X),V%2?M.moveTo(G,te):M.lineTo(G,te),X+=R[V]/z,V=(V+1)%Q;V%2!==0&&M.lineTo(T,w),F=T-G,j=w-te,this._dashOffset=-a(F*F+j*j)},_dashedQuadraticTo:function(S,E,C,_){var T=C,w=_;C=(C+2*S)/3,_=(_+2*E)/3,S=(this._xi+2*S)/3,E=(this._yi+2*E)/3,this._dashedBezierTo(S,E,C,_,T,w)},toStatic:function(){var S=this.data;S instanceof Array&&(S.length=this._len,h&&(this.data=new Float32Array(S)))},getBoundingRect:function(){u[0]=u[1]=i[0]=i[1]=Number.MAX_VALUE,o[0]=o[1]=t[0]=t[1]=-Number.MAX_VALUE;for(var S=this.data,E=0,C=0,_=0,T=0,w=0;w<S.length;){var O=S[w++];w===1&&(E=S[w],C=S[w+1],_=E,T=C);switch(O){case d.M:_=S[w++],T=S[w++],E=_,C=T,i[0]=_,i[1]=T,t[0]=_,t[1]=T;break;case d.L:x.fromLine(E,C,S[w],S[w+1],i,t),E=S[w++],C=S[w++];break;case d.C:x.fromCubic(E,C,S[w++],S[w++],S[w++],S[w++],S[w],S[w+1],i,t),E=S[w++],C=S[w++];break;case d.Q:x.fromQuadratic(E,C,S[w++],S[w++],S[w],S[w+1],i,t),E=S[w++],C=S[w++];break;case d.A:var I=S[w++],R=S[w++],M=S[w++],B=S[w++],P=S[w++],X=S[w++]+P;w+=1;var F=1-S[w++];w===1&&(_=l(P)*M+I,T=r(P)*B+R),x.fromArc(I,R,M,B,P,X,F,i,t),E=l(X)*M+I,C=r(X)*B+R;break;case d.R:_=E=S[w++],T=C=S[w++];var j=S[w++],K=S[w++];x.fromLine(_,T,_+j,T+K,i,t);break;case d.Z:E=_,C=T;break}p.min(u,u,i),p.max(o,o,t)}return w===0&&(u[0]=u[1]=o[0]=o[1]=0),new v(u[0],u[1],o[0]-u[0],o[1]-u[1])},rebuildPath:function(S){for(var E=this.data,C,_,T,w,O,I,R=this._ux,M=this._uy,B=this._len,P=0;P<B;){var X=E[P++];P===1&&(T=E[P],w=E[P+1],C=T,_=w);switch(X){case d.M:C=T=E[P++],_=w=E[P++],S.moveTo(T,w);break;case d.L:O=E[P++],I=E[P++],(c(O-T)>R||c(I-w)>M||P===B-1)&&(S.lineTo(O,I),T=O,w=I);break;case d.C:S.bezierCurveTo(E[P++],E[P++],E[P++],E[P++],E[P++],E[P++]),T=E[P-2],w=E[P-1];break;case d.Q:S.quadraticCurveTo(E[P++],E[P++],E[P++],E[P++]),T=E[P-2],w=E[P-1];break;case d.A:var F=E[P++],j=E[P++],K=E[P++],z=E[P++],V=E[P++],Q=E[P++],G=E[P++],te=E[P++],q=K>z?K:z,le=K>z?1:K/z,re=K>z?z/K:1,we=Math.abs(K-z)>.001,Ie=V+Q;we?(S.translate(F,j),S.rotate(G),S.scale(le,re),S.arc(0,0,q,V,Ie,1-te),S.scale(1/le,1/re),S.rotate(-G),S.translate(-F,-j)):S.arc(F,j,q,V,Ie,1-te),P===1&&(C=l(V)*K+F,_=r(V)*z+j),T=l(Ie)*K+F,w=r(Ie)*z+j;break;case d.R:C=T=E[P],_=w=E[P+1],S.rect(E[P++],E[P++],E[P++],E[P++]);break;case d.Z:S.closePath(),T=C,w=_}}}},g.CMD=d;var A=g;k.exports=A},IUWy:function(k,D){var n={};function y(x,v){n[x]=v}function p(x){return n[x]}D.register=y,D.get=p},IWNH:function(k,D,n){var y=n("T4UG"),p=n("Bsck"),x=n("7aKB"),v=x.encodeHTML,m=n("Qxkt"),f=y.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(d){var u={name:d.name,children:d.data},o=d.leaves||{},i=new m(o,this,this.ecModel),t=p.createTree(u,this,{},s);function s(a){a.wrapMethod("getItemModel",function(c,h){var g=t.getNodeByDataIndex(h);return(!g.children.length||!g.isExpand)&&(c.parentModel=i),c})}var e=0;t.eachNode("preorder",function(a){a.depth>e&&(e=a.depth)});var l=d.expandAndCollapse,r=l&&d.initialTreeDepth>=0?d.initialTreeDepth:e;return t.root.eachNode("preorder",function(a){var c=a.hostTree.data.getRawDataItem(a.dataIndex);a.isExpand=c&&c.collapsed!=null?!c.collapsed:a.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 u=this.getData().tree,o=u.root.children[0],i=u.getNodeByDataIndex(d),t=i.getValue(),s=i.name;i&&i!==o;)s=i.parentNode.name+"."+s,i=i.parentNode;return v(s+(isNaN(t)||t==null?"":" : "+t))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});k.exports=f},IWp7:function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=n("7aKB"),v=n("lE7J"),m=n("ieMj"),f=m.prototype,d=Math.ceil,u=Math.floor,o=1e3,i=o*60,t=i*60,s=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},l=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]-=s,h[1]+=s),h[1]===-Infinity&&h[0]===Infinity){var g=new Date;h[1]=+new Date(g.getFullYear(),g.getMonth(),g.getDate()),h[0]=h[1]-s}this.niceTicks(c.splitNumber,c.minInterval,c.maxInterval);var A=this._interval;c.fixMin||(h[0]=p.round(u(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],S=b/c;h!=null&&S<h&&(S=h),g!=null&&S>g&&(S=g);var E=r.length,C=e(r,S,0,E),_=r[Math.min(C,E-1)],T=_[1];if(_[0]==="year"){var w=b/T,O=p.nice(w/c,!0);T*=O}var I=this.getSetting("useUTC")?0:new Date(+A[0]||+A[1]).getTimezoneOffset()*60*1e3,R=[Math.round(d((A[0]-I)/T)*T+I),Math.round(u((A[1]-I)/T)*T+I)];v.fixExtent(R,A),this._stepLvl=_,this._interval=T,this._niceExtent=R},parse:function(c){return+p.parseDate(c)}});y.each(["contain","normalize"],function(c){l.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`,i],[`hh:mm
MM-dd`,i*5],[`hh:mm
MM-dd`,i*10],[`hh:mm
MM-dd`,i*15],[`hh:mm
MM-dd`,i*30],[`hh:mm
MM-dd`,t],[`hh:mm
MM-dd`,t*2],[`hh:mm
MM-dd`,t*6],[`hh:mm
MM-dd`,t*12],[`MM-dd
yyyy`,s],[`MM-dd
yyyy`,s*2],[`MM-dd
yyyy`,s*3],[`MM-dd
yyyy`,s*4],[`MM-dd
yyyy`,s*5],[`MM-dd
yyyy`,s*6],["week",s*7],[`MM-dd
yyyy`,s*10],["week",s*14],["week",s*21],["month",s*31],["week",s*42],["month",s*62],["week",s*70],["quarter",s*95],["month",s*31*4],["month",s*31*5],["half-year",s*380/2],["month",s*31*8],["month",s*31*10],["year",s*380]];l.create=function(c){return new l({useUTC:c.ecModel.get("useUTC")})};var a=l;k.exports=a},IXuL:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("MwEJ"),v=n("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}});k.exports=m},IXyC:function(k,D,n){var y=n("bYtY"),p=n("bLfw");n("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)})}});k.exports=x},Ib8C:function(k,D,n){(function(y){(function(p,x){k.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=n(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}}(),u={},o=u.lib={},i=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=i.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,S=A.words,E=this.sigBytes,C=A.sigBytes;if(this.clamp(),E%4)for(var _=0;_<C;_++){var T=S[_>>>2]>>>24-_%4*8&255;b[E+_>>>2]|=T<<24-(E+_)%4*8}else for(var w=0;w<C;w+=4)b[E+w>>>2]=S[w>>>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=i.clone.call(this);return A.words=this.words.slice(0),A},random:function(A){for(var b=[],S=0;S<A;S+=4)b.push(f());return new t.init(b,A)}}),s=u.enc={},e=s.Hex={stringify:function(A){for(var b=A.words,S=A.sigBytes,E=[],C=0;C<S;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,S=[],E=0;E<b;E+=2)S[E>>>3]|=parseInt(A.substr(E,2),16)<<24-E%8*4;return new t.init(S,b/2)}},l=s.Latin1={stringify:function(A){for(var b=A.words,S=A.sigBytes,E=[],C=0;C<S;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,S=[],E=0;E<b;E++)S[E>>>2]|=(A.charCodeAt(E)&255)<<24-E%4*8;return new t.init(S,b)}},r=s.Utf8={stringify:function(A){try{return decodeURIComponent(escape(l.stringify(A)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(A){return l.parse(unescape(encodeURIComponent(A)))}},a=o.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new t.init,this._nDataBytes=0},_append:function(A){typeof A=="string"&&(A=r.parse(A)),this._data.concat(A),this._nDataBytes+=A.sigBytes},_process:function(A){var b,S=this._data,E=S.words,C=S.sigBytes,_=this.blockSize,T=_*4,w=C/T;A?w=x.ceil(w):w=x.max((w|0)-this._minBufferSize,0);var O=w*_,I=x.min(O*4,C);if(O){for(var R=0;R<O;R+=_)this._doProcessBlock(E,R);b=E.splice(0,O),S.sigBytes-=I}return new t.init(b,I)},clone:function(){var A=i.clone.call(this);return A._data=this._data.clone(),A},_minBufferSize:0}),c=o.Hasher=a.extend({cfg:i.extend(),init:function(A){this.cfg=this.cfg.extend(A),this.reset()},reset:function(){a.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,S){return new A.init(S).finalize(b)}},_createHmacHelper:function(A){return function(b,S){return new h.HMAC.init(A,S).finalize(b)}}}),h=u.algo={};return u}(Math);return p})}).call(this,n("yLpj"))},ItGF:function(k,D){var n={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?n={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?n={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?n={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:n=p(navigator.userAgent);var y=n;function p(x){var v={},m={},f=x.match(/Firefox\/([\d.]+)/),d=x.match(/MSIE\s([\d.]+)/)||x.match(/Trident\/.+?rv:(([\d.]+))/),u=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]),u&&(m.edge=!0,m.version=u[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"}}k.exports=y},ItS6:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("eP3c"),p=x(n("1q3G"));function x(u){return u&&u.__esModule?u:{default:u}}function v(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}function m(u,o){for(var i=0;i<o.length;i++){var t=o[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}function f(u,o,i){return o&&m(u.prototype,o),i&&m(u,i),u}var d=function(){function u(){v(this,u),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(u,[{key:"setInput",value:function(i){i?(this.strm.input=i,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0):(this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0)}},{key:"inflate",value:function(i){i>this.chunkSize&&(this.chunkSize=i,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=i;var t=(0,y.inflate)(this.strm,0);if(t<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=i)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,y.inflateReset)(this.strm)}}]),u}();D.default=d},Itpr:function(k,D,n){var y=n("+TT/");function p(r){r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var a=[r],c,h;c=a.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},a.push(b)}}function x(r,a){var c=r.isExpand?r.children:[],h=r.parentNode.children,g=r.hierNode.i?h[r.hierNode.i-1]:null;if(c.length){u(r);var A=(c[0].hierNode.prelim+c[c.length-1].hierNode.prelim)/2;g?(r.hierNode.prelim=g.hierNode.prelim+a(r,g),r.hierNode.modifier=r.hierNode.prelim-A):r.hierNode.prelim=A}else g&&(r.hierNode.prelim=g.hierNode.prelim+a(r,g));r.parentNode.hierNode.defaultAncestor=o(r,g,r.parentNode.hierNode.defaultAncestor||h[0],a)}function v(r){var a=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:a},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function m(r){return arguments.length?r:l}function f(r,a){var c={};return r-=Math.PI/2,c.x=a*Math.cos(r),c.y=a*Math.sin(r),c}function d(r,a){return y.getLayoutRect(r.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})}function u(r){for(var a=r.children,c=a.length,h=0,g=0;--c>=0;){var A=a[c];A.hierNode.prelim+=h,A.hierNode.modifier+=h,g+=A.hierNode.change,h+=A.hierNode.shift+g}}function o(r,a,c,h){if(a){for(var g=r,A=r,b=A.parentNode.children[0],S=a,E=g.hierNode.modifier,C=A.hierNode.modifier,_=b.hierNode.modifier,T=S.hierNode.modifier;S=i(S),A=t(A),S&&A;){g=i(g),b=t(b),g.hierNode.ancestor=r;var w=S.hierNode.prelim+T-A.hierNode.prelim-C+h(S,A);w>0&&(e(s(S,r,c),r,w),C+=w,E+=w),T+=S.hierNode.modifier,C+=A.hierNode.modifier,E+=g.hierNode.modifier,_+=b.hierNode.modifier}S&&!i(g)&&(g.hierNode.thread=S,g.hierNode.modifier+=T-E),A&&!t(b)&&(b.hierNode.thread=A,b.hierNode.modifier+=C-_,c=r)}return c}function i(r){var a=r.children;return a.length&&r.isExpand?a[a.length-1]:r.hierNode.thread}function t(r){var a=r.children;return a.length&&r.isExpand?a[0]:r.hierNode.thread}function s(r,a,c){return r.hierNode.ancestor.parentNode===a.parentNode?r.hierNode.ancestor:c}function e(r,a,c){var h=c/(a.hierNode.i-r.hierNode.i);a.hierNode.change-=h,a.hierNode.shift+=c,a.hierNode.modifier+=c,a.hierNode.prelim+=c,r.hierNode.change+=h}function l(r,a){return r.parentNode===a.parentNode?1:2}D.init=p,D.firstWalk=x,D.secondWalk=v,D.separation=m,D.radialCoordinate=f,D.getViewRect=d},IwbS:function(k,D,n){var y=n("bYtY"),p=n("NC18"),x=n("Qe9p"),v=n("Fofx"),m=n("QBsz"),f=n("y+Vt"),d=n("DN4a"),u=n("Dagg");D.Image=u;var o=n("4fz+");D.Group=o;var i=n("dqUG");D.Text=i;var t=n("2fw6");D.Circle=t;var s=n("SqI9");D.Sector=s;var e=n("RXMa");D.Ring=e;var l=n("h7HQ");D.Polygon=l;var r=n("1Jh7");D.Polyline=r;var a=n("x6Kt");D.Rect=a;var c=n("yxFR");D.Line=c;var h=n("rA99");D.BezierCurve=h;var g=n("jTL6");D.Arc=g;var A=n("1MYJ");D.CompoundPath=A;var b=n("SKnc");D.LinearGradient=b;var S=n("3e3G");D.RadialGradient=S;var E=n("mFDi");D.BoundingRect=E;var C=n("OS9S");D.IncrementalDisplayable=C;var _=n("nPnh"),T=Math.max,w=Math.min,O={},I=1,R={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},M="emphasis",B="normal",P=1,X={},F={};function j(pt){return f.extend(pt)}function K(pt,it){return p.extendFromString(pt,it)}function z(pt,it){F[pt]=it}function V(pt){if(F.hasOwnProperty(pt))return F[pt]}function Q(pt,it,Fr,cn){var _n=p.createFromString(pt,it);return Fr&&(cn==="center"&&(Fr=te(Fr,_n.getBoundingRect())),le(_n,Fr)),_n}function G(pt,it,Fr){var cn=new u({style:{image:pt,x:it.x,y:it.y,width:it.width,height:it.height},onload:function(_n){if(Fr==="center"){var Kn={width:_n.width,height:_n.height};cn.setStyle(te(it,Kn))}}});return cn}function te(pt,it){var Fr=it.width/it.height,cn=pt.height*Fr,_n;cn<=pt.width?_n=pt.height:(cn=pt.width,_n=cn/Fr);var Kn=pt.x+pt.width/2,gi=pt.y+pt.height/2;return{x:Kn-cn/2,y:gi-_n/2,width:cn,height:_n}}var q=p.mergePath;function le(pt,it){if(!pt.applyTransform)return;var Fr=pt.getBoundingRect(),cn=Fr.calculateTransform(it);pt.applyTransform(cn)}function re(pt){return _.subPixelOptimizeLine(pt.shape,pt.shape,pt.style),pt}function we(pt){return _.subPixelOptimizeRect(pt.shape,pt.shape,pt.style),pt}var Ie=_.subPixelOptimize;function Me(pt){return pt!=null&&pt!=="none"}var Je=y.createHashMap(),Ve=0;function ut(pt){if(typeof pt!="string")return pt;var it=Je.get(pt);return it||(it=x.lift(pt,-.1),Ve<1e4&&(Je.set(pt,it),Ve++)),it}function Fe(pt){if(!pt.__hoverStlDirty)return;pt.__hoverStlDirty=!1;var it=pt.__hoverStl;if(!it){pt.__cachedNormalStl=pt.__cachedNormalZ2=null;return}var Fr=pt.__cachedNormalStl={};pt.__cachedNormalZ2=pt.z2;var cn=pt.style;for(var _n in it)it[_n]!=null&&(Fr[_n]=cn[_n]);Fr.fill=cn.fill,Fr.stroke=cn.stroke}function ae(pt){var it=pt.__hoverStl;if(!it||pt.__highlighted)return;var Fr=pt.__zr,cn=pt.useHoverLayer&&Fr&&Fr.painter.type==="canvas";if(pt.__highlighted=cn?"layer":"plain",pt.isGroup||!Fr&&pt.useHoverLayer)return;var _n=pt,Kn=pt.style;cn&&(_n=Fr.addHover(pt),Kn=_n.style),Wt(Kn),cn||Fe(_n),Kn.extendFrom(it),at(Kn,it,"fill"),at(Kn,it,"stroke"),Pt(Kn),cn||(pt.dirty(!1),pt.z2+=I)}function at(pt,it,Fr){!Me(it[Fr])&&Me(pt[Fr])&&(pt[Fr]=ut(pt[Fr]))}function he(pt){var it=pt.__highlighted;if(!it)return;if(pt.__highlighted=!1,pt.isGroup)return;if(it==="layer")pt.__zr&&pt.__zr.removeHover(pt);else{var Fr=pt.style,cn=pt.__cachedNormalStl;cn&&(Wt(Fr),pt.setStyle(cn),Pt(Fr));var _n=pt.__cachedNormalZ2;_n!=null&&pt.z2-_n===I&&(pt.z2=_n)}}function J(pt,it,Fr){var cn=B,_n=B,Kn;pt.__highlighted&&(cn=M,Kn=!0),it(pt,Fr),pt.__highlighted&&(_n=M,Kn=!0),pt.isGroup&&pt.traverse(function(gi){!gi.isGroup&&it(gi,Fr)}),Kn&&pt.__highDownOnUpdate&&pt.__highDownOnUpdate(cn,_n)}function Y(pt,it){it=pt.__hoverStl=it!==!1&&(pt.hoverStyle||it||{}),pt.__hoverStlDirty=!0,pt.__highlighted&&(pt.__cachedNormalStl=null,he(pt),ae(pt))}function $(pt){!Be(this,pt)&&!this.__highByOuter&&J(this,ae)}function de(pt){!Be(this,pt)&&!this.__highByOuter&&J(this,he)}function be(pt){this.__highByOuter|=1<<(pt||0),J(this,ae)}function Ce(pt){!(this.__highByOuter&=~(1<<(pt||0)))&&J(this,he)}function Be(pt,it){return pt.__highDownSilentOnTouch&&it.zrByTouch}function fe(pt,it){Se(pt,!0),J(pt,Y,it)}function Se(pt,it){var Fr=it===!1;if(pt.__highDownSilentOnTouch=pt.highDownSilentOnTouch,pt.__highDownOnUpdate=pt.highDownOnUpdate,!Fr||pt.__highDownDispatcher){var cn=Fr?"off":"on";pt[cn]("mouseover",$)[cn]("mouseout",de),pt[cn]("emphasis",be)[cn]("normal",Ce),pt.__highByOuter=pt.__highByOuter||0,pt.__highDownDispatcher=!Fr}}function ke(pt){return!!(pt&&pt.__highDownDispatcher)}function rt(pt){var it=X[pt];return it==null&&P<=32&&(it=X[pt]=P++),it}function xt(pt,it,Fr,cn,_n,Kn,gi){_n=_n||O;var Mn=_n.labelFetcher,Un=_n.labelDataIndex,$t=_n.labelDimIndex,Ct=_n.labelProp,Re=Fr.getShallow("show"),De=cn.getShallow("show"),Pe;(Re||De)&&(Mn&&(Pe=Mn.getFormattedLabel(Un,"normal",null,$t,Ct)),Pe==null&&(Pe=y.isFunction(_n.defaultText)?_n.defaultText(Un,_n):_n.defaultText));var et=Re?Pe:null,yt=De?y.retrieve2(Mn?Mn.getFormattedLabel(Un,"emphasis",null,$t,Ct):null,Pe):null;(et!=null||yt!=null)&&(He(pt,Fr,Kn,_n),He(it,cn,gi,_n,!0)),pt.text=et,it.text=yt}function ht(pt,it,Fr){var cn=pt.style;it&&(Wt(cn),pt.setStyle(it),Pt(cn)),cn=pt.__hoverStl,Fr&&cn&&(Wt(cn),y.extend(cn,Fr),Pt(cn))}function He(pt,it,Fr,cn,_n){return ct(pt,it,cn,_n),Fr&&y.extend(pt,Fr),pt}function ir(pt,it,Fr){var cn={isRectText:!0},_n;Fr===!1?_n=!0:cn.autoColor=Fr,ct(pt,it,cn,_n)}function ct(pt,it,Fr,cn){if(Fr=Fr||O,Fr.isRectText){var _n;Fr.getTextPosition?_n=Fr.getTextPosition(it,cn):(_n=it.getShallow("position")||(cn?null:"inside"),_n==="outside"&&(_n="top")),pt.textPosition=_n,pt.textOffset=it.getShallow("offset");var Kn=it.getShallow("rotate");Kn!=null&&(Kn*=Math.PI/180),pt.textRotation=Kn,pt.textDistance=y.retrieve2(it.getShallow("distance"),cn?null:5)}var gi=it.ecModel,Mn=gi&&gi.option.textStyle,Un=Xt(it),$t;if(Un){$t={};for(var Ct in Un)if(Un.hasOwnProperty(Ct)){var Re=it.getModel(["rich",Ct]);hr($t[Ct]={},Re,Mn,Fr,cn)}}return pt.rich=$t,hr(pt,it,Mn,Fr,cn,!0),Fr.forceRich&&!Fr.textStyle&&(Fr.textStyle={}),pt}function Xt(pt){for(var it;pt&&pt!==pt.ecModel;){var Fr=(pt.option||O).rich;if(Fr){it=it||{};for(var cn in Fr)Fr.hasOwnProperty(cn)&&(it[cn]=1)}pt=pt.parentModel}return it}function hr(pt,it,Fr,cn,_n,Kn){Fr=!_n&&Fr||O,pt.textFill=Jt(it.getShallow("color"),cn)||Fr.color,pt.textStroke=Jt(it.getShallow("textBorderColor"),cn)||Fr.textBorderColor,pt.textStrokeWidth=y.retrieve2(it.getShallow("textBorderWidth"),Fr.textBorderWidth),_n||(Kn&&(pt.insideRollbackOpt=cn,Pt(pt)),pt.textFill==null&&(pt.textFill=cn.autoColor)),pt.fontStyle=it.getShallow("fontStyle")||Fr.fontStyle,pt.fontWeight=it.getShallow("fontWeight")||Fr.fontWeight,pt.fontSize=it.getShallow("fontSize")||Fr.fontSize,pt.fontFamily=it.getShallow("fontFamily")||Fr.fontFamily,pt.textAlign=it.getShallow("align"),pt.textVerticalAlign=it.getShallow("verticalAlign")||it.getShallow("baseline"),pt.textLineHeight=it.getShallow("lineHeight"),pt.textWidth=it.getShallow("width"),pt.textHeight=it.getShallow("height"),pt.textTag=it.getShallow("tag"),(!Kn||!cn.disableBox)&&(pt.textBackgroundColor=Jt(it.getShallow("backgroundColor"),cn),pt.textPadding=it.getShallow("padding"),pt.textBorderColor=Jt(it.getShallow("borderColor"),cn),pt.textBorderWidth=it.getShallow("borderWidth"),pt.textBorderRadius=it.getShallow("borderRadius"),pt.textBoxShadowColor=it.getShallow("shadowColor"),pt.textBoxShadowBlur=it.getShallow("shadowBlur"),pt.textBoxShadowOffsetX=it.getShallow("shadowOffsetX"),pt.textBoxShadowOffsetY=it.getShallow("shadowOffsetY")),pt.textShadowColor=it.getShallow("textShadowColor")||Fr.textShadowColor,pt.textShadowBlur=it.getShallow("textShadowBlur")||Fr.textShadowBlur,pt.textShadowOffsetX=it.getShallow("textShadowOffsetX")||Fr.textShadowOffsetX,pt.textShadowOffsetY=it.getShallow("textShadowOffsetY")||Fr.textShadowOffsetY}function Jt(pt,it){return pt!=="auto"?pt:it&&it.autoColor?it.autoColor:null}function Pt(pt){var it=pt.textPosition,Fr=pt.insideRollbackOpt,cn;if(Fr&&pt.textFill==null){var _n=Fr.autoColor,Kn=Fr.isRectText,gi=Fr.useInsideStyle,Mn=gi!==!1&&(gi===!0||Kn&&it&&typeof it=="string"&&it.indexOf("inside")>=0),Un=!Mn&&_n!=null;(Mn||Un)&&(cn={textFill:pt.textFill,textStroke:pt.textStroke,textStrokeWidth:pt.textStrokeWidth}),Mn&&(pt.textFill="#fff",pt.textStroke==null&&(pt.textStroke=_n,pt.textStrokeWidth==null&&(pt.textStrokeWidth=2))),Un&&(pt.textFill=_n)}pt.insideRollback=cn}function Wt(pt){var it=pt.insideRollback;it&&(pt.textFill=it.textFill,pt.textStroke=it.textStroke,pt.textStrokeWidth=it.textStrokeWidth,pt.insideRollback=null)}function Ge(pt,it){var Fr=it&&it.getModel("textStyle");return y.trim([pt.fontStyle||Fr&&Fr.getShallow("fontStyle")||"",pt.fontWeight||Fr&&Fr.getShallow("fontWeight")||"",(pt.fontSize||Fr&&Fr.getShallow("fontSize")||12)+"px",pt.fontFamily||Fr&&Fr.getShallow("fontFamily")||"sans-serif"].join(" "))}function pe(pt,it,Fr,cn,_n,Kn){typeof _n=="function"&&(Kn=_n,_n=null);var gi=cn&&cn.isAnimationEnabled();if(gi){var Mn=pt?"Update":"",Un=cn.getShallow("animationDuration"+Mn),$t=cn.getShallow("animationEasing"+Mn),Ct=cn.getShallow("animationDelay"+Mn);typeof Ct=="function"&&(Ct=Ct(_n,cn.getAnimationDelayParams?cn.getAnimationDelayParams(it,_n):null)),typeof Un=="function"&&(Un=Un(_n)),Un>0?it.animateTo(Fr,Un,Ct||0,$t,Kn,!!Kn):(it.stopAnimation(),it.attr(Fr),Kn&&Kn())}else it.stopAnimation(),it.attr(Fr),Kn&&Kn()}function se(pt,it,Fr,cn,_n){pe(!0,pt,it,Fr,cn,_n)}function lt(pt,it,Fr,cn,_n){pe(!1,pt,it,Fr,cn,_n)}function qe(pt,it){for(var Fr=v.identity([]);pt&&pt!==it;)v.mul(Fr,pt.getLocalTransform(),Fr),pt=pt.parent;return Fr}function me(pt,it,Fr){return it&&!y.isArrayLike(it)&&(it=d.getLocalTransform(it)),Fr&&(it=v.invert([],it)),m.applyTransform([],pt,it)}function Ht(pt,it,Fr){var cn=it[4]===0||it[5]===0||it[0]===0?1:Math.abs(2*it[4]/it[0]),_n=it[4]===0||it[5]===0||it[2]===0?1:Math.abs(2*it[4]/it[2]),Kn=[pt==="left"?-cn:pt==="right"?cn:0,pt==="top"?-_n:pt==="bottom"?_n:0];return Kn=me(Kn,it,Fr),Math.abs(Kn[0])>Math.abs(Kn[1])?Kn[0]>0?"right":"left":Kn[1]>0?"bottom":"top"}function yr(pt,it,Fr,cn){if(!pt||!it)return;function _n(Mn){var Un={};return Mn.traverse(function($t){!$t.isGroup&&$t.anid&&(Un[$t.anid]=$t)}),Un}function Kn(Mn){var Un={position:m.clone(Mn.position),rotation:Mn.rotation};return Mn.shape&&(Un.shape=y.extend({},Mn.shape)),Un}var gi=_n(pt);it.traverse(function(Mn){if(!Mn.isGroup&&Mn.anid){var Un=gi[Mn.anid];if(Un){var $t=Kn(Mn);Mn.attr(Kn(Un)),se(Mn,$t,Fr,Mn.dataIndex)}}})}function At(pt,it){return y.map(pt,function(Fr){var cn=Fr[0];cn=T(cn,it.x),cn=w(cn,it.x+it.width);var _n=Fr[1];return _n=T(_n,it.y),_n=w(_n,it.y+it.height),[cn,_n]})}function rr(pt,it){var Fr=T(pt.x,it.x),cn=w(pt.x+pt.width,it.x+it.width),_n=T(pt.y,it.y),Kn=w(pt.y+pt.height,it.y+it.height);if(cn>=Fr&&Kn>=_n)return{x:Fr,y:_n,width:cn-Fr,height:Kn-_n}}function ur(pt,it,Fr){it=y.extend({rectHover:!0},it);var cn=it.style={strokeNoScale:!0};if(Fr=Fr||{x:-1,y:-1,width:2,height:2},pt)return pt.indexOf("image://")===0?(cn.image=pt.slice(8),y.defaults(cn,Fr),new u(it)):Q(pt.replace("path://",""),it,Fr,"center")}function vn(pt,it,Fr,cn,_n){for(var Kn=0,gi=_n[_n.length-1];Kn<_n.length;Kn++){var Mn=_n[Kn];if(Bt(pt,it,Fr,cn,Mn[0],Mn[1],gi[0],gi[1]))return!0;gi=Mn}}function Bt(pt,it,Fr,cn,_n,Kn,gi,Mn){var Un=Fr-pt,$t=cn-it,Ct=gi-_n,Re=Mn-Kn,De=sr(Ct,Re,Un,$t);if(Yt(De))return!1;var Pe=pt-_n,et=it-Kn,yt=sr(Pe,et,Un,$t)/De;if(yt<0||yt>1)return!1;var St=sr(Pe,et,Ct,Re)/De;return!(St<0||St>1)}function sr(pt,it,Fr,cn){return pt*cn-Fr*it}function Yt(pt){return pt<=1e-6&&pt>=-1e-6}z("circle",t),z("sector",s),z("ring",e),z("polygon",l),z("polyline",r),z("rect",a),z("line",c),z("bezierCurve",h),z("arc",g),D.Z2_EMPHASIS_LIFT=I,D.CACHED_LABEL_STYLE_PROPERTIES=R,D.extendShape=j,D.extendPath=K,D.registerShape=z,D.getShapeClass=V,D.makePath=Q,D.makeImage=G,D.mergePath=q,D.resizePath=le,D.subPixelOptimizeLine=re,D.subPixelOptimizeRect=we,D.subPixelOptimize=Ie,D.setElementHoverStyle=Y,D.setHoverStyle=fe,D.setAsHighDownDispatcher=Se,D.isHighDownDispatcher=ke,D.getHighlightDigit=rt,D.setLabelStyle=xt,D.modifyLabelStyle=ht,D.setTextStyle=He,D.setText=ir,D.getFont=Ge,D.updateProps=se,D.initProps=lt,D.getTransform=qe,D.applyTransform=me,D.transformDirection=Ht,D.groupTransition=yr,D.clipPointsByRect=At,D.clipRectByRect=rr,D.createIcon=ur,D.linePolygonIntersect=vn,D.lineLineIntersect=Bt},IyUQ:function(k,D,n){var y=n("bYtY"),p=n("YH21"),x=n("IwbS"),v=n("iLNv"),m=n("fc+c"),f=n("OELB"),d=n("+TT/"),u=n("72pK"),o=x.Rect,i=f.linearMap,t=f.asc,s=y.bind,e=y.each,l=7,r=1,a=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,w,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,w=this._findCoordRect(),O={width:T.getWidth(),height:T.getHeight()},I=this._orient===c?{right:O.width-w.x-w.width,top:O.height-a-l,width:w.width,height:a}:{right:l,top:w.y,width:a,height:w.height},R=d.getLayoutParams(_.option);y.each(["right","top","width","height"],function(B){R[B]==="ph"&&(R[B]=I[B])});var M=d.getLayoutRect(R,O,_.padding);this._location={x:M.x,y:M.y},this._size=[M.width,M.height],this._orient===h&&this._size.reverse()},_positionGroup:function(){var _=this.group,T=this._location,w=this._orient,O=this.dataZoomModel.getFirstTargetAxisModel(),I=O&&O.get("inverse"),R=this._displayables.barGroup,M=(this._dataShadowInfo||{}).otherAxisInverse;R.attr(w===c&&!I?{scale:M?[1,1]:[1,-1]}:w===c&&I?{scale:M?[-1,1]:[-1,-1]}:w===h&&!I?{scale:M?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:M?[-1,-1]:[-1,1],rotation:Math.PI/2});var B=_.getBoundingRect([R]);_.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,w=this._displayables.barGroup;w.add(new o({silent:!0,shape:{x:0,y:0,width:T[0],height:T[1]},style:{fill:_.get("backgroundColor")},z2:-40})),w.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,w=_.series,O=w.getRawData(),I=w.getShadowDim?w.getShadowDim():_.otherDim;if(I==null)return;var R=O.getDataExtent(I),M=(R[1]-R[0])*.3;R=[R[0]-M,R[1]+M];var B=[0,T[1]],P=[0,T[0]],X=[[T[0],0],[0,0]],F=[],j=P[1]/(O.count()-1),K=0,z=Math.round(O.count()/T[0]),V;O.each([I],function(G,te){if(z>0&&te%z){K+=j;return}var q=G==null||isNaN(G)||G==="",le=q?0:i(G,R,B,!0);q&&!V&&te?(X.push([X[X.length-1][0],0]),F.push([F[F.length-1][0],0])):!q&&V&&(X.push([K,0]),F.push([K,0])),X.push([K,le]),F.push([K,le]),K+=j,V=q});var Q=this.dataZoomModel;this._displayables.barGroup.add(new x.Polygon({shape:{points:X},style:y.defaults({fill:Q.get("dataBackgroundColor")},Q.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new x.Polyline({shape:{points:F},style:Q.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))},_prepareDataShadowInfo:function(){var _=this.dataZoomModel,T=_.get("showDataShadow");if(T===!1)return;var w,O=this.ecModel;return _.eachTargetAxis(function(I,R){var M=_.getAxisProxy(I.name,R).getTargetSeriesModels();y.each(M,function(B){if(w)return;if(T!==!0&&y.indexOf(A,B.get("type"))<0)return;var P=O.getComponent(I.axis,R).axis,X=S(I.name),F,j=B.coordinateSystem;X!=null&&j.getOtherAxis&&(F=j.getOtherAxis(P).inverse),X=B.getData().mapDimension(X),w={thisAxis:P,series:B,thisDim:I.name,otherDim:X,otherAxisInverse:F}},this)},this),w},_renderHandle:function(){var _=this._displayables,T=_.handles=[],w=_.handleLabels=[],O=this._displayables.barGroup,I=this._size,R=this.dataZoomModel;O.add(_.filler=new o({draggable:!0,cursor:E(this._orient),drift:s(this._onDragMove,this,"all"),ondragstart:s(this._showDataInfo,this,!0),ondragend:s(this._onDragEnd,this),onmouseover:s(this._showDataInfo,this,!0),onmouseout:s(this._showDataInfo,this,!1),style:{fill:R.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:R.get("dataBackgroundColor")||R.get("borderColor"),lineWidth:r,fill:"rgba(0,0,0,0)"}})),e([0,1],function(M){var B=x.createIcon(R.get("handleIcon"),{cursor:E(this._orient),draggable:!0,drift:s(this._onDragMove,this,M),ondragend:s(this._onDragEnd,this),onmouseover:s(this._showDataInfo,this,!0),onmouseout:s(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),P=B.getBoundingRect();this._handleHeight=f.parsePercent(R.get("handleSize"),this._size[1]),this._handleWidth=P.width/P.height*this._handleHeight,B.setStyle(R.getModel("handleStyle").getItemStyle());var X=R.get("handleColor");X!=null&&(B.style.fill=X),O.add(T[M]=B);var F=R.textStyleModel;this.group.add(w[M]=new x.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:F.getTextColor(),textFont:F.getFont()},z2:10}))},this)},_resetInterval:function(){var _=this._range=this.dataZoomModel.getPercentRange(),T=this._getViewExtent();this._handleEnds=[i(_[0],[0,100],T,!0),i(_[1],[0,100],T,!0)]},_updateInterval:function(_,T){var w=this.dataZoomModel,O=this._handleEnds,I=this._getViewExtent(),R=w.findRepresentativeAxisProxy().getMinMaxSpan(),M=[0,100];u(T,O,I,w.get("zoomLock")?"all":_,R.minSpan!=null?i(R.minSpan,M,I,!0):null,R.maxSpan!=null?i(R.maxSpan,M,I,!0):null);var B=this._range,P=this._range=t([i(O[0],I,M,!0),i(O[1],I,M,!0)]);return!B||B[0]!==P[0]||B[1]!==P[1]},_updateView:function(_){var T=this._displayables,w=this._handleEnds,O=t(w.slice()),I=this._size;e([0,1],function(R){var M=T.handles[R],B=this._handleHeight;M.attr({scale:[B/2,B/2],position:[w[R],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,w=this._displayables,O=w.handleLabels,I=this._orient,R=["",""];if(T.get("showDetail")){var M=T.findRepresentativeAxisProxy();if(M){var B=M.getAxisModel().axis,P=this._range,X=_?M.calculateDataWindow({start:P[0],end:P[1]}).valueWindow:M.getDataValueWindow();R=[this._formatLabel(X[0],B),this._formatLabel(X[1],B)]}}var F=t(this._handleEnds.slice());j.call(this,0),j.call(this,1);function j(K){var z=x.getTransform(w.handles[K].parent,this.group),V=x.transformDirection(K===0?"right":"left",z),Q=this._handleWidth/2+g,G=x.applyTransform([F[K]+(K===0?-Q:Q),this._size[1]/2],z);O[K].setStyle({x:G[0],y:G[1],textVerticalAlign:I===c?"middle":V,textAlign:I===c?V:"center",text:R[K]})}},_formatLabel:function(_,T){var w=this.dataZoomModel,O=w.get("labelFormatter"),I=w.get("labelPrecision");(I==null||I==="auto")&&(I=T.getPixelPrecision());var R=_==null||isNaN(_)?"":T.type==="category"||T.type==="time"?T.scale.getLabel(Math.round(_)):_.toFixed(Math.min(I,20));return y.isFunction(O)?O(_,R):y.isString(O)?O.replace("{value}",R):R},_showDataInfo:function(_){_=this._dragging||_;var T=this._displayables.handleLabels;T[0].attr("invisible",!_),T[1].attr("invisible",!_)},_onDragMove:function(_,T,w,O){this._dragging=!0,p.stop(O.event);var I=this._displayables.barGroup.getLocalTransform(),R=x.applyTransform([T,w],I,!0),M=this._updateInterval(_,R[0]),B=this.dataZoomModel.get("realtime");this._updateView(!B),M&&B&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var _=this.dataZoomModel.get("realtime");!_&&this._dispatchZoomAction()},_onClickPanelClick:function(_){var T=this._size,w=this._displayables.barGroup.transformCoordToLocal(_.offsetX,_.offsetY);if(w[0]<0||w[0]>T[0]||w[1]<0||w[1]>T[1])return;var O=this._handleEnds,I=(O[0]+O[1])/2,R=this._updateInterval("all",w[0]-I);this._updateView(),R&&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(),w=this.api.getHeight();_={x:T*.2,y:w*.2,width:T*.6,height:w*.6}}return _}});function S(_){var T={x:"y",y:"x",radius:"angle",angle:"radius"};return T[_]}function E(_){return _==="vertical"?"ns-resize":"ew-resize"}var C=b;k.exports=C},IzEo:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("lnY3"),v=n.n(x),m=n("Znn+"),f=n("14J3"),d=n("jCWc")},J66h:function(k,D,n){(function(y){var p,x;(function(v,m){k.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+/",u=function(B){for(var P={},X=0,F=B.length;X<F;X++)P[B.charAt(X)]=X;return P}(d),o=String.fromCharCode,i=function(P){if(P.length<2){var X=P.charCodeAt(0);return X<128?P:X<2048?o(192|X>>>6)+o(128|X&63):o(224|X>>>12&15)+o(128|X>>>6&63)+o(128|X&63)}else{var X=65536+(P.charCodeAt(0)-55296)*1024+(P.charCodeAt(1)-56320);return o(240|X>>>18&7)+o(128|X>>>12&63)+o(128|X>>>6&63)+o(128|X&63)}},t=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,s=function(P){return P.replace(t,i)},e=function(P){var X=[0,2,1][P.length%3],F=P.charCodeAt(0)<<16|(P.length>1?P.charCodeAt(1):0)<<8|(P.length>2?P.charCodeAt(2):0),j=[d.charAt(F>>>18),d.charAt(F>>>12&63),X>=2?"=":d.charAt(F>>>6&63),X>=1?"=":d.charAt(F&63)];return j.join("")},l=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(P){return l(s(String(P)))},a=function(P){return P.replace(/[+\/]/g,function(X){return X=="+"?"-":"_"}).replace(/=/g,"")},c=function(P,X){return X?a(r(P)):r(P)},h=function(P){return c(P,!0)},g;v.Uint8Array&&(g=function(P,X){for(var F="",j=0,K=P.length;j<K;j+=3){var z=P[j],V=P[j+1],Q=P[j+2],G=z<<16|V<<8|Q;F+=d.charAt(G>>>18)+d.charAt(G>>>12&63)+(typeof V!="undefined"?d.charAt(G>>>6&63):"=")+(typeof Q!="undefined"?d.charAt(G&63):"=")}return X?a(F):F});var A=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(P){switch(P.length){case 4:var X=(7&P.charCodeAt(0))<<18|(63&P.charCodeAt(1))<<12|(63&P.charCodeAt(2))<<6|63&P.charCodeAt(3),F=X-65536;return o((F>>>10)+55296)+o((F&1023)+56320);case 3:return o((15&P.charCodeAt(0))<<12|(63&P.charCodeAt(1))<<6|63&P.charCodeAt(2));default:return o((31&P.charCodeAt(0))<<6|63&P.charCodeAt(1))}},S=function(P){return P.replace(A,b)},E=function(P){var X=P.length,F=X%4,j=(X>0?u[P.charAt(0)]<<18:0)|(X>1?u[P.charAt(1)]<<12:0)|(X>2?u[P.charAt(2)]<<6:0)|(X>3?u[P.charAt(3)]:0),K=[o(j>>>16),o(j>>>8&255),o(j&255)];return K.length-=[0,0,2,1][F],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(P){return C(String(P).replace(/[^A-Za-z0-9\+\/]/g,""))},T=function(P){return S(C(P))},w=function(P){return String(P).replace(/[-_]/g,function(X){return X=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},O=function(P){return T(w(P))},I;v.Uint8Array&&(I=function(P){return Uint8Array.from(_(w(P)),function(X){return X.charCodeAt(0)})});var R=function(){var P=v.Base64;return v.Base64=m,P};if(v.Base64={VERSION:f,atob:_,btoa:l,fromBase64:O,toBase64:c,utob:s,encode:c,encodeURI:h,btou:S,decode:O,noConflict:R,fromUint8Array:g,toUint8Array:I},typeof Object.defineProperty=="function"){var M=function(P){return{value:P,enumerable:!1,writable:!0,configurable:!0}};v.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",M(function(){return O(this)})),Object.defineProperty(String.prototype,"toBase64",M(function(B){return c(this,B)})),Object.defineProperty(String.prototype,"toBase64URI",M(function(){return c(this,!0)}))}}return v.Meteor&&(Base64=v.Base64),k.exports?k.exports.Base64=v.Base64:!(p=[],x=function(){return v.Base64}.apply(D,p),x!==void 0&&(k.exports=x)),{Base64:v.Base64}})}).call(this,n("yLpj"))},JEkh:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),v=n("bYtY"),m=n("ItGF"),f=n("4NO4"),d=n("7aKB"),u=n("OKJ2"),o=d.addCommas,i=d.encodeHTML;function t(l){f.defaultEmphasis(l,"label",["show"])}var s=x.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(l,r,a){this.mergeDefaultAndTheme(l,a),this._mergeOption(l,a,!1,!0)},isAnimationEnabled:function(){if(m.node)return!1;var l=this.__hostSeries;return this.getShallow("animation")&&l&&l.isAnimationEnabled()},mergeOption:function(l,r){this._mergeOption(l,r,!1,!1)},_mergeOption:function(l,r,a,c){var h=this.constructor,g=this.mainType+"Model";a||r.eachSeries(function(A){var b=A.get(this.mainType,!0),S=A[g];if(!b||!b.data){A[g]=null;return}S?S._mergeOption(b,r,!0):(c&&t(b),v.each(b.data,function(E){E instanceof Array?(t(E[0]),t(E[1])):t(E)}),S=new h(b,this,r),v.extend(S,{mainType:this.mainType,seriesIndex:A.seriesIndex,name:A.name,createdBySelf:!0}),S.__hostSeries=A),A[g]=S},this)},formatTooltip:function(l){var r=this.getData(),a=this.getRawValue(l),c=v.isArray(a)?v.map(a,o).join(", "):o(a),h=r.getName(l),g=i(this.name);return(a!=null||h)&&(g+="<br />"),h&&(g+=i(h),a!=null&&(g+=" : ")),a!=null&&(g+=i(c)),g},getData:function(){return this._data},setData:function(l){this._data=l}});v.mixin(s,u);var e=s;k.exports=e},JGo8:function(k,D,n){},JHRd:function(k,D,n){var y=n("Kz5y"),p=y.Uint8Array;k.exports=p},JHgL:function(k,D,n){var y=n("QkVE");function p(x){return y(this,x).get(x)}k.exports=p},JLnu:function(k,D,n){var y=n("+TT/"),p=n("OELB"),x=p.parsePercent,v=p.linearMap;function m(o,i){return y.getLayoutRect(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}function f(o,i){for(var t=o.mapDimension("value"),s=o.mapArray(t,function(c){return c}),e=[],l=i==="ascending",r=0,a=o.count();r<a;r++)e[r]=r;return typeof i=="function"?e.sort(i):i!=="none"&&e.sort(function(c,h){return l?s[c]-s[h]:s[h]-s[c]}),e}function d(o){o.each(function(i){var t=o.getItemModel(i),s=t.getModel("label"),e=s.get("position"),l=t.getModel("labelLine"),r=o.getItemLayout(i),a=r.points,c=e==="inner"||e==="inside"||e==="center"||e==="insideLeft"||e==="insideRight",h,g,A,b;if(c)e==="insideLeft"?(g=(a[0][0]+a[3][0])/2+5,A=(a[0][1]+a[3][1])/2,h="left"):e==="insideRight"?(g=(a[1][0]+a[2][0])/2-5,A=(a[1][1]+a[2][1])/2,h="right"):(g=(a[0][0]+a[1][0]+a[2][0]+a[3][0])/4,A=(a[0][1]+a[1][1]+a[2][1]+a[3][1])/4,h="center"),b=[[g,A],[g,A]];else{var S,E,C,_=l.get("length");e==="left"?(S=(a[3][0]+a[0][0])/2,E=(a[3][1]+a[0][1])/2,C=S-_,g=C-5,h="right"):e==="right"?(S=(a[1][0]+a[2][0])/2,E=(a[1][1]+a[2][1])/2,C=S+_,g=C+5,h="left"):e==="rightTop"?(S=a[1][0],E=a[1][1],C=S+_,g=C+5,h="top"):e==="rightBottom"?(S=a[2][0],E=a[2][1],C=S+_,g=C+5,h="bottom"):e==="leftTop"?(S=a[0][0],E=a[1][1],C=S-_,g=C-5,h="right"):e==="leftBottom"?(S=a[3][0],E=a[2][1],C=S-_,g=C-5,h="right"):(S=(a[1][0]+a[2][0])/2,E=(a[1][1]+a[2][1])/2,C=S+_,g=C+5,h="left");var T=E;b=[[S,E],[C,T]],A=T}r.label={linePoints:b,x:g,y:A,verticalAlign:"middle",textAlign:h,inside:c}})}function u(o,i,t){o.eachSeriesByType("funnel",function(s){var e=s.getData(),l=e.mapDimension("value"),r=s.get("sort"),a=m(s,i),c=f(e,r),h=[x(s.get("minSize"),a.width),x(s.get("maxSize"),a.width)],g=e.getDataExtent(l),A=s.get("min"),b=s.get("max");A==null&&(A=Math.min(g[0],0)),b==null&&(b=g[1]);var S=s.get("funnelAlign"),E=s.get("gap"),C=(a.height-E*(e.count()-1))/e.count(),_=a.y,T=function(X,F){var j=e.get(l,X)||0,K=v(j,[A,b],h,!0),z;switch(S){case"left":z=a.x;break;case"center":z=a.x+(a.width-K)/2;break;case"right":z=a.x+a.width-K;break}return[[z,F],[z+K,F]]};r==="ascending"&&(C=-C,E=-E,_+=a.height,c=c.reverse());for(var w=0;w<c.length;w++){var O=c[w],I=c[w+1],R=e.getItemModel(O),M=R.get("itemStyle.height");M==null?M=C:(M=x(M,a.height),r==="ascending"&&(M=-M));var B=T(O,_),P=T(I,_+M);_+=M+E,e.setItemLayout(O,{points:B.concat(P.slice().reverse())})}d(e)})}k.exports=u},JSQU:function(k,D,n){var y=n("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}k.exports=x},JSwD:function(k,D,n){"use strict";function y(a){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(a)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=r;var p=v(n("6BzB"));function x(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return x=function(){return a},a}function v(a){if(a&&a.__esModule)return a;if(a===null||y(a)!=="object"&&typeof a!="function")return{default:a};var c=x();if(c&&c.has(a))return c.get(a);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in a)if(Object.prototype.hasOwnProperty.call(a,A)){var b=g?Object.getOwnPropertyDescriptor(a,A):null;b&&(b.get||b.set)?Object.defineProperty(h,A,b):h[A]=a[A]}return h.default=a,c&&c.set(a,h),h}var m=15,f=852,d=592,u=0,o=1,i=2,t=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],e=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function r(a,c,h,g,A,b,S,E){var C=E.bits,_=0,T=0,w=0,O=0,I=0,R=0,M=0,B=0,P=0,X=0,F,j,K,z,V,Q=null,G=0,te,q=new p.Buf16(m+1),le=new p.Buf16(m+1),re=null,we=0,Ie,Me,Je;for(_=0;_<=m;_++)q[_]=0;for(T=0;T<g;T++)q[c[h+T]]++;for(I=C,O=m;O>=1&&!(q[O]!==0);O--);if(I>O&&(I=O),O===0)return A[b++]=1<<24|64<<16|0,A[b++]=1<<24|64<<16|0,E.bits=1,0;for(w=1;w<O&&!(q[w]!==0);w++);for(I<w&&(I=w),B=1,_=1;_<=m;_++)if(B<<=1,B-=q[_],B<0)return-1;if(B>0&&(a===u||O!==1))return-1;for(le[1]=0,_=1;_<m;_++)le[_+1]=le[_]+q[_];for(T=0;T<g;T++)c[h+T]!==0&&(S[le[c[h+T]]++]=T);if(a===u?(Q=re=S,te=19):a===o?(Q=t,G-=257,re=s,we-=257,te=256):(Q=e,re=l,te=-1),X=0,T=0,_=w,V=b,R=I,M=0,K=-1,P=1<<I,z=P-1,a===o&&P>f||a===i&&P>d)return 1;for(;;){Ie=_-M,S[T]<te?(Me=0,Je=S[T]):S[T]>te?(Me=re[we+S[T]],Je=Q[G+S[T]]):(Me=32+64,Je=0),F=1<<_-M,j=1<<R,w=j;do j-=F,A[V+(X>>M)+j]=Ie<<24|Me<<16|Je|0;while(j!==0);for(F=1<<_-1;X&F;)F>>=1;if(F!==0?(X&=F-1,X+=F):X=0,T++,--q[_]===0){if(_===O)break;_=c[h+S[T]]}if(_>I&&(X&z)!==K){for(M===0&&(M=I),V+=w,R=_-M,B=1<<R;R+M<O&&!(B-=q[R+M],B<=0);)R++,B<<=1;if(P+=1<<R,a===o&&P>f||a===i&&P>d)return 1;K=X&z,A[K]=I<<24|R<<16|V-b|0}}return X!==0&&(A[V+X]=_-M<<24|64<<16|0),E.bits=I,0}},JTzB:function(k,D,n){var y=n("NykK"),p=n("ExA7"),x="[object Arguments]";function v(m){return p(m)&&y(m)==x}k.exports=v},JVwQ:function(k,D,n){var y=n("ProS"),p=n("1NG9"),x=p.Polygon,v=n("IwbS"),m=n("bYtY"),f=m.bind,d=m.extend,u=n("gPAo"),o=y.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,s,e){var l=t.getData(),r=this.group,a=t.getLayerSeries(),c=l.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 u(this._layersSeries||[],a,A,A),S={};b.add(f(E,this,"add")).update(f(E,this,"update")).remove(f(E,this,"remove")).execute();function E(C,_,T){var w=this._layers;if(C==="remove"){r.remove(w[_]);return}for(var O=[],I=[],R,M=a[_].indices,B=0;B<M.length;B++){var P=l.getItemLayout(M[B]),X=P.x,F=P.y0,j=P.y;O.push([X,F]),I.push([X,F+j]),R=l.getItemVisual(M[B],"color")}var K,z,V=l.getItemLayout(M[0]),Q=l.getItemModel(M[B-1]),G=Q.getModel("label"),te=G.get("margin");if(C==="add"){var q=S[_]=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}}),q.add(K),q.add(z),r.add(q),K.setClipPath(i(K.getBoundingRect(),t,function(){K.removeClipPath()}))}else{var q=w[T];K=q.childAt(0),z=q.childAt(1),r.add(q),S[_]=q,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,G,{text:G.get("show")?t.getFormattedLabel(M[B-1],"normal")||l.getName(M[B-1]):null,textVerticalAlign:"middle"}),K.setStyle(d({fill:R},re.getItemStyle(["color"]))),v.setHoverStyle(K,le.getItemStyle())}this._layersSeries=a,this._layers=S},dispose:function(){}});function i(t,s,e){var l=new v.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return v.initProps(l,{shape:{width:t.width+20,height:t.height+20}},s,e),l}k.exports=o},JgUQ:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};D.default=y},JsLm:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),v=n.n(x),m=n("lwsE"),f=n.n(m),d=n("W8MJ"),u=n.n(d),o=n("PJYZ"),i=n.n(o),t=n("7W2i"),s=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),a=n("i8i4"),c=n("TSYQ"),h=n.n(c),g=n("zT1h"),A=n("cDf5"),b=n.n(A),S=n("BGR+"),E=n("6ner"),C=n("H84U"),_=n("RIqP"),T=n.n(_),w=n("xEkU"),O=n.n(w);function I(he){var J,Y=function(be){return function(){J=null,he.apply(void 0,T()(be))}},$=function(){if(J==null){for(var be=arguments.length,Ce=new Array(be),Be=0;Be<be;Be++)Ce[Be]=arguments[Be];J=O()(Y(Ce))}};return $.cancel=function(){return O.a.cancel(J)},$}function R(){return function(he,J,Y){var $=Y.value,de=!1;return{configurable:!0,get:function(){if(de||this===he.prototype||this.hasOwnProperty(J))return $;var Ce=I($.bind(this));return de=!0,Object.defineProperty(this,J,{value:Ce,configurable:!0,writable:!0}),de=!1,Ce}}}}function M(he){return he!==window?he.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function B(he,J,Y){return Y!==void 0&&J.top>he.top-Y?Y+J.top:void 0}function P(he,J,Y){if(Y!==void 0&&J.bottom<he.bottom+Y){var $=window.innerHeight-J.bottom;return Y+$}return}var X=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],F=[];function j(){return F}function K(he,J){if(!he)return;var Y=F.find(function($){return $.target===he});Y?Y.affixList.push(J):(Y={target:he,affixList:[J],eventHandlers:{}},F.push(Y),X.forEach(function($){Y.eventHandlers[$]=Object(g.a)(he,$,function(){Y.affixList.forEach(function(de){de.lazyUpdatePosition()})})}))}function z(he){var J=F.find(function(Y){var $=Y.affixList.some(function(de){return de===he});return $&&(Y.affixList=Y.affixList.filter(function(de){return de!==he})),$});J&&J.affixList.length===0&&(F=F.filter(function(Y){return Y!==J}),X.forEach(function(Y){var $=J.eventHandlers[Y];$&&$.remove&&$.remove()}))}var V=function(he,J,Y,$){var de=arguments.length,be=de<3?J:$===null?$=Object.getOwnPropertyDescriptor(J,Y):$,Ce;if((typeof Reflect=="undefined"?"undefined":b()(Reflect))==="object"&&typeof Reflect.decorate=="function")be=Reflect.decorate(he,J,Y,$);else for(var Be=he.length-1;Be>=0;Be--)(Ce=he[Be])&&(be=(de<3?Ce(be):de>3?Ce(J,Y,be):Ce(J,Y))||be);return de>3&&be&&Object.defineProperty(J,Y,be),be};function Q(){return typeof window!="undefined"?window:null}var G;(function(he){he[he.None=0]="None",he[he.Prepare=1]="Prepare"})(G||(G={}));var te=function(he){s()(Y,he);var J=l()(Y);function Y(){var $;return f()(this,Y),$=J.apply(this,arguments),$.state={status:G.None,lastAffix:!1,prevTarget:null},$.getOffsetTop=function(){var de=$.props.offsetBottom,be=$.props.offsetTop;return de===void 0&&be===void 0&&(be=0),be},$.getOffsetBottom=function(){return $.props.offsetBottom},$.savePlaceholderNode=function(de){$.placeholderNode=de},$.saveFixedNode=function(de){$.fixedNode=de},$.measure=function(){var de=$.state,be=de.status,Ce=de.lastAffix,Be=$.props.onChange,fe=$.getTargetFunc();if(be!==G.Prepare||!$.fixedNode||!$.placeholderNode||!fe)return;var Se=$.getOffsetTop(),ke=$.getOffsetBottom(),rt=fe();if(!rt)return;var xt={status:G.None},ht=M(rt),He=M($.placeholderNode),ir=B(He,ht,Se),ct=P(He,ht,ke);ir!==void 0?(xt.affixStyle={position:"fixed",top:ir,width:He.width,height:He.height},xt.placeholderStyle={width:He.width,height:He.height}):ct!==void 0&&(xt.affixStyle={position:"fixed",bottom:ct,width:He.width,height:He.height},xt.placeholderStyle={width:He.width,height:He.height}),xt.lastAffix=!!xt.affixStyle,Be&&Ce!==xt.lastAffix&&Be(xt.lastAffix),$.setState(xt)},$.prepareMeasure=function(){if($.setState({status:G.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var de},$.render=function(){var de=$.context.getPrefixCls,be=$.state,Ce=be.affixStyle,Be=be.placeholderStyle,fe=$.props,Se=fe.prefixCls,ke=fe.children,rt=h()(v()({},de("affix",Se),Ce)),xt=Object(S.default)($.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return r.createElement(E.a,{onResize:function(){$.updatePosition()}},r.createElement("div",p()({},xt,{ref:$.savePlaceholderNode}),Ce&&r.createElement("div",{style:Be,"aria-hidden":"true"}),r.createElement("div",{className:rt,ref:$.saveFixedNode,style:Ce},r.createElement(E.a,{onResize:function(){$.updatePosition()}},ke))))},$}return u()(Y,[{key:"getTargetFunc",value:function(){var de=this.context.getTargetContainer,be=this.props.target;return be!==void 0?be:de||Q}},{key:"componentDidMount",value:function(){var de=this,be=this.getTargetFunc();be&&(this.timeout=setTimeout(function(){K(be(),de),de.updatePosition()}))}},{key:"componentDidUpdate",value:function(de){var be=this.state.prevTarget,Ce=this.getTargetFunc(),Be=null;Ce&&(Be=Ce()||null),be!==Be&&(z(this),Be&&(K(Be,this),this.updatePosition()),this.setState({prevTarget:Be})),(de.offsetTop!==this.props.offsetTop||de.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),z(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var de=this.getTargetFunc(),be=this.state.affixStyle;if(de&&be){var Ce=this.getOffsetTop(),Be=this.getOffsetBottom(),fe=de();if(fe&&this.placeholderNode){var Se=M(fe),ke=M(this.placeholderNode),rt=B(ke,Se,Ce),xt=P(ke,Se,Be);if(rt!==void 0&&be.top===rt||xt!==void 0&&be.bottom===xt)return}}this.prepareMeasure()}}]),Y}(r.Component);te.contextType=C.b,V([R()],te.prototype,"updatePosition",null),V([R()],te.prototype,"lazyUpdatePosition",null);var q=te,le=n("zAh6"),re=n("i6bk"),we=r.createContext(null),Ie=we;function Me(){return window}function Je(he,J){if(!he.getClientRects().length)return 0;var Y=he.getBoundingClientRect();return Y.width||Y.height?J===window?(J=he.ownerDocument.documentElement,Y.top-J.clientTop):Y.top-J.getBoundingClientRect().top:Y.top}var Ve=/#(\S+)$/,ut=function(he){s()(Y,he);var J=l()(Y);function Y(){var $;return f()(this,Y),$=J.apply(this,arguments),$.state={activeLink:null},$.links=[],$.registerLink=function(de){$.links.includes(de)||$.links.push(de)},$.unregisterLink=function(de){var be=$.links.indexOf(de);be!==-1&&$.links.splice(be,1)},$.getContainer=function(){var de=$.context.getTargetContainer,be=$.props.getContainer,Ce=be||de||Me;return Ce()},$.handleScrollTo=function(de){var be=$.props,Ce=be.offsetTop,Be=be.targetOffset;$.setCurrentActiveLink(de);var fe=$.getContainer(),Se=Object(re.a)(fe,!0),ke=Ve.exec(de);if(!ke)return;var rt=document.getElementById(ke[1]);if(!rt)return;var xt=Je(rt,fe),ht=Se+xt;ht-=Be!==void 0?Be:Ce||0,$.animating=!0,Object(le.a)(ht,{callback:function(){$.animating=!1},getContainer:$.getContainer})},$.saveInkNode=function(de){$.inkNode=de},$.setCurrentActiveLink=function(de){var be=$.state.activeLink,Ce=$.props.onChange;be!==de&&($.setState({activeLink:de}),Ce&&Ce(de))},$.handleScroll=function(){if($.animating)return;var de=$.props,be=de.offsetTop,Ce=de.bounds,Be=de.targetOffset,fe=$.getCurrentAnchor(Be!==void 0?Be:be||0,Ce);$.setCurrentActiveLink(fe)},$.updateInk=function(){var de=i()($),be=de.prefixCls,Ce=a.findDOMNode(i()($)),Be=Ce.getElementsByClassName("".concat(be,"-link-title-active"))[0];Be&&($.inkNode.style.top="".concat(Be.offsetTop+Be.clientHeight/2-4.5,"px"))},$.render=function(){var de=$.context,be=de.getPrefixCls,Ce=de.direction,Be=$.props,fe=Be.prefixCls,Se=Be.className,ke=Se===void 0?"":Se,rt=Be.style,xt=Be.offsetTop,ht=Be.affix,He=Be.showInkInFixed,ir=Be.children,ct=$.state.activeLink,Xt=be("anchor",fe);$.prefixCls=Xt;var hr=h()("".concat(Xt,"-ink-ball"),{visible:ct}),Jt=h()(ke,"".concat(Xt,"-wrapper"),v()({},"".concat(Xt,"-rtl"),Ce==="rtl")),Pt=h()(Xt,{fixed:!ht&&!He}),Wt=p()({maxHeight:xt?"calc(100vh - ".concat(xt,"px)"):"100vh"},rt),Ge=r.createElement("div",{className:Jt,style:Wt},r.createElement("div",{className:Pt},r.createElement("div",{className:"".concat(Xt,"-ink")},r.createElement("span",{className:hr,ref:$.saveInkNode})),ir));return r.createElement(Ie.Provider,{value:{registerLink:$.registerLink,unregisterLink:$.unregisterLink,activeLink:$.state.activeLink,scrollTo:$.handleScrollTo,onClick:$.props.onClick}},ht?r.createElement(q,{offsetTop:xt,target:$.getContainer},Ge):Ge)},$}return u()(Y,[{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 de=this.getContainer();this.scrollContainer!==de&&(this.scrollContainer=de,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 de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,Ce=this.props.getCurrentAnchor;if(typeof Ce=="function")return Ce();var Be=[],fe=this.getContainer();if(this.links.forEach(function(ke){var rt=Ve.exec(ke.toString());if(!rt)return;var xt=document.getElementById(rt[1]);if(xt){var ht=Je(xt,fe);ht<de+be&&Be.push({link:ke,top:ht})}}),Be.length){var Se=Be.reduce(function(ke,rt){return rt.top>ke.top?rt:ke});return Se.link}return""}}]),Y}(r.Component);ut.defaultProps={affix:!0,showInkInFixed:!1},ut.contextType=C.b;var Fe=function(he){s()(Y,he);var J=l()(Y);function Y(){var $;return f()(this,Y),$=J.apply(this,arguments),$.handleClick=function(de){var be=$.context,Ce=be.scrollTo,Be=be.onClick,fe=$.props,Se=fe.href,ke=fe.title;Be&&Be(de,{title:ke,href:Se}),Ce(Se)},$.renderAnchorLink=function(de){var be=de.getPrefixCls,Ce=$.props,Be=Ce.prefixCls,fe=Ce.href,Se=Ce.title,ke=Ce.children,rt=Ce.className,xt=Ce.target,ht=be("anchor",Be),He=$.context.activeLink===fe,ir=h()(rt,"".concat(ht,"-link"),v()({},"".concat(ht,"-link-active"),He)),ct=h()("".concat(ht,"-link-title"),v()({},"".concat(ht,"-link-title-active"),He));return r.createElement("div",{className:ir},r.createElement("a",{className:ct,href:fe,title:typeof Se=="string"?Se:"",target:xt,onClick:$.handleClick},Se),ke)},$}return u()(Y,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(de){var be=de.href,Ce=this.props.href;be!==Ce&&(this.context.unregisterLink(be),this.context.registerLink(Ce))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return r.createElement(C.a,null,this.renderAnchorLink)}}]),Y}(r.Component);Fe.defaultProps={href:"#"},Fe.contextType=Ie;var ae=Fe;ut.Link=ae;var at=D.a=ut},JuEJ:function(k,D,n){var y=n("bYtY"),p=n("4NO4"),x=y.each,v=y.isObject,m=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function f(r){var a=r&&r.itemStyle;if(!a)return;for(var c=0,h=m.length;c<h;c++){var g=m[c],A=a.normal,b=a.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,a,c){if(r&&r[a]&&(r[a].normal||r[a].emphasis)){var h=r[a].normal,g=r[a].emphasis;h&&(c?(r[a].normal=r[a].emphasis=null,y.defaults(r[a],h)):r[a]=h),g&&(r.emphasis=r.emphasis||{},r.emphasis[a]=g)}}function u(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,a){var c=v(r)&&r[a],h=v(c)&&c.textStyle;if(h)for(var g=0,A=p.TEXT_STYLE_OPTIONS.length;g<A;g++){var a=p.TEXT_STYLE_OPTIONS[g];h.hasOwnProperty(a)&&(c[a]=h[a])}}function i(r){r&&(u(r),o(r,"label"),r.emphasis&&o(r.emphasis,"label"))}function t(r){if(!v(r))return;f(r),u(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 a=r.markPoint;a&&(f(a),i(a));var c=r.markLine;c&&(f(c),i(c));var h=r.markArea;h&&i(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++)i(A[b]);y.each(r.categories,function(C){u(C)})}if(g&&!y.isTypedArray(g))for(var b=0;b<g.length;b++)i(g[b]);var a=r.markPoint;if(a&&a.data)for(var S=a.data,b=0;b<S.length;b++)i(S[b]);var c=r.markLine;if(c&&c.data)for(var E=c.data,b=0;b<E.length;b++)y.isArray(E[b])?(i(E[b][0]),i(E[b][1])):i(E[b]);r.type==="gauge"?(o(r,"axisLabel"),o(r,"title"),o(r,"detail")):r.type==="treemap"?(d(r.breadcrumb,"itemStyle"),y.each(r.levels,function(C){u(C)})):r.type==="tree"&&u(r.leaves)}function s(r){return y.isArray(r)?r:r?[r]:[]}function e(r){return(y.isArray(r)?r[0]:r)||{}}function l(r,a){x(s(r.series),function(h){v(h)&&t(h)});var c=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];a&&c.push("valueAxis","categoryAxis","logAxis","timeAxis"),x(c,function(h){x(s(r[h]),function(g){g&&(o(g,"axisLabel"),o(g.axisPointer,"label"))})}),x(s(r.parallel),function(h){var g=h&&h.parallelAxisDefault;o(g,"axisLabel"),o(g&&g.axisPointer,"label")}),x(s(r.calendar),function(h){d(h,"itemStyle"),o(h,"dayLabel"),o(h,"monthLabel"),o(h,"yearLabel")}),x(s(r.radar),function(h){o(h,"name")}),x(s(r.geo),function(h){v(h)&&(i(h),x(s(h.regions),function(g){i(g)}))}),x(s(r.timeline),function(h){i(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(s(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")}k.exports=l},K2GJ:function(k,D,n){var y=n("fW2E"),p=n("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(s,e,l){var r=e.x==null?0:e.x,a=e.x2==null?1:e.x2,c=e.y==null?0:e.y,h=e.y2==null?0:e.y2;e.global||(r=r*l.width+l.x,a=a*l.width+l.x,c=c*l.height+l.y,h=h*l.height+l.y),r=isNaN(r)?0:r,a=isNaN(a)?1:a,c=isNaN(c)?0:c,h=isNaN(h)?0:h;var g=s.createLinearGradient(r,c,a,h);return g}function d(s,e,l){var r=l.width,a=l.height,c=Math.min(r,a),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+l.x,g=g*a+l.y,A=A*c);var b=s.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,l,r){var a=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||a[b]!==c[b])&&(e[b]=y(e,b,a[b]||A[1]))}if((h||a.fill!==c.fill)&&(e.fillStyle=a.fill),(h||a.stroke!==c.stroke)&&(e.strokeStyle=a.stroke),(h||a.opacity!==c.opacity)&&(e.globalAlpha=a.opacity==null?1:a.opacity),(h||a.blend!==c.blend)&&(e.globalCompositeOperation=a.blend||"source-over"),this.hasStroke()){var S=a.lineWidth;e.lineWidth=S/(this.strokeNoScale&&l&&l.getLineScale?l.getLineScale():1)}},hasFill:function(){var e=this.fill;return e!=null&&e!=="none"},hasStroke:function(){var e=this.stroke;return e!=null&&e!=="none"&&this.lineWidth>0},extendFrom:function(e,l){if(e)for(var r in e)e.hasOwnProperty(r)&&(l===!0||(l===!1?!this.hasOwnProperty(r):e[r]!=null))&&(this[r]=e[r])},set:function(e,l){typeof e=="string"?this[e]=l:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,l,r){for(var a=l.type==="radial"?d:f,c=a(e,l,r),h=l.colorStops,g=0;g<h.length;g++)c.addColorStop(h[g].offset,h[g].color);return c}};for(var u=m.prototype,o=0;o<v.length;o++){var i=v[o];i[0]in u||(u[i[0]]=i[1])}m.getGradient=u.getGradient;var t=m;k.exports=t},K3mO:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("3y9D"),n("WYAk"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.Base,m=x.WordArray,f=p.algo,d=f.MD5,u=f.EvpKDF=v.extend({cfg:v.extend({keySize:128/32,hasher:d,iterations:1}),init:function(i){this.cfg=this.cfg.extend(i)},compute:function(i,t){for(var s,e=this.cfg,l=e.hasher.create(),r=m.create(),a=r.words,c=e.keySize,h=e.iterations;a.length<c;){s&&l.update(s),s=l.update(i).finalize(t),l.reset();for(var g=1;g<h;g++)s=l.finalize(s),l.reset();r.concat(s)}return r.sigBytes=c*4,r}});p.EvpKDF=function(o,i,t){return u.create(t).compute(o,i)}}(),y.EvpKDF})},K4ya:function(k,D,n){var y=n("bYtY"),p=n("XxSj"),x=y.each;function v(o){if(o){for(var i in o)if(o.hasOwnProperty(i))return!0}}function m(o,i,t){var s={};return x(i,function(l){var r=s[l]=e();x(o[l],function(a,c){if(!p.isValidType(c))return;var h={type:c,visual:a};t&&t(h,l),r[c]=new p(h),c==="opacity"&&(h=y.clone(h),h.type="colorAlpha",r.__hidden.__alphaForOpacity=new p(h))})}),s;function e(){var l=function(){};l.prototype.__hidden=l.prototype;var r=new l;return r}}function f(o,i,t){var s;y.each(t,function(e){i.hasOwnProperty(e)&&v(i[e])&&(s=!0)}),s&&y.each(t,function(e){i.hasOwnProperty(e)&&v(i[e])?o[e]=y.clone(i[e]):delete o[e]})}function d(o,i,t,s,e,l){var r={};y.each(o,function(A){var b=p.prepareVisualTypes(i[A]);r[A]=b});var a;function c(A){return t.getItemVisual(a,A)}function h(A,b){t.setItemVisual(a,A,b)}l==null?t.each(g):t.each([l],g);function g(A,b){a=l==null?A:b;var S=t.getRawDataItem(a);if(S&&S.visualMap===!1)return;for(var E=s.call(e,A),C=i[E],_=r[E],T=0,w=_.length;T<w;T++){var O=_[T];C[O]&&C[O].applyVisual(A,c,h)}}}function u(o,i,t,s){var e={};y.each(o,function(r){var a=p.prepareVisualTypes(i[r]);e[r]=a});function l(r,a){s!=null&&(s=a.getDimension(s));function c(O){return a.getItemVisual(g,O)}function h(O,I){a.setItemVisual(g,O,I)}for(var g;(g=r.next())!=null;){var A=a.getRawDataItem(g);if(A&&A.visualMap===!1)continue;for(var b=s!=null?a.get(s,g,!0):g,S=t(b),E=i[S],C=e[S],_=0,T=C.length;_<T;_++){var w=C[_];E[w]&&E[w].applyVisual(b,c,h)}}}return{progress:l}}D.createVisualMappings=m,D.replaceVisualOption=f,D.applyVisual=d,D.incrementalApplyVisual=u},KCsZ:function(k,D,n){var y=n("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 u={},o=0;o<x.length;o++){var i=x[o][1];if(f&&y.indexOf(f,i)>=0||d&&y.indexOf(d,i)<0)continue;var t=m.getShallow(i);t!=null&&(u[x[o][0]]=t)}return u}}k.exports=p},KMkd:function(k,D){function n(){this.__data__=[],this.size=0}k.exports=n},KPFz:function(k,D,n){},KQeH:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};D.default=y},KS52:function(k,D,n){var y=n("OELB"),p=y.parsePercent,x=y.linearMap,v=n("+TT/"),m=n("u3DP"),f=n("bYtY"),d=Math.PI*2,u=Math.PI/180;function o(t,s){return v.getLayoutRect(t.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()})}function i(t,s,e,l){s.eachSeriesByType(t,function(r){var a=r.getData(),c=a.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()),S=p(h.height,e.getHeight()),E=Math.min(b,S),C=p(g[0],b)+h.x,_=p(g[1],S)+h.y,T=p(A[0],E/2),w=p(A[1],E/2),O=-r.get("startAngle")*u,I=r.get("minAngle")*u,R=0;a.each(c,function(te){!isNaN(te)&&R++});var M=a.getSum(c),B=Math.PI/(M||R)*2,P=r.get("clockwise"),X=r.get("roseType"),F=r.get("stillShowZeroSum"),j=a.getDataExtent(c);j[0]=0;var K=d,z=0,V=O,Q=P?1:-1;if(a.each(c,function(te,q){var le;if(isNaN(te)){a.setItemLayout(q,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:P,cx:C,cy:_,r0:T,r:X?NaN:w,viewRect:h});return}X!=="area"?le=M===0&&F?B:te*B:le=d/R,le<I?(le=I,K-=I):z+=te;var re=V+Q*le;a.setItemLayout(q,{angle:le,startAngle:V,endAngle:re,clockwise:P,cx:C,cy:_,r0:T,r:X?x(te,j,[T,w]):w,viewRect:h}),V=re}),K<d&&R)if(K<=.001){var G=d/R;a.each(c,function(te,q){if(!isNaN(te)){var le=a.getItemLayout(q);le.angle=G,le.startAngle=O+Q*q*G,le.endAngle=O+Q*(q+1)*G}})}else B=K/z,V=O,a.each(c,function(te,q){if(!isNaN(te)){var le=a.getItemLayout(q),re=le.angle===I?I:te*B;le.startAngle=V,le.endAngle=V+Q*re,V+=Q*re}});m(r,w,h.width,h.height,h.x,h.y)})}k.exports=i},KUOm:function(k,D){function n(y){var p={};y.eachSeriesByType("graph",function(x){var v=x.getCategoriesData(),m=x.getData(),f={};v.each(function(d){var u=v.getName(d);f["ec-"+u]=d;var o=v.getItemModel(d),i=o.get("itemStyle.color")||x.getColorFromPalette(u,p);v.setItemVisual(d,"color",i);for(var t=["opacity","symbol","symbolSize","symbolKeepAspect"],s=0;s<t.length;s++){var e=o.getShallow(t[s],!0);e!=null&&v.setItemVisual(d,t[s],e)}}),v.count()&&m.each(function(d){var u=m.getItemModel(d),o=u.getShallow("category");if(o!=null){typeof o=="string"&&(o=f["ec-"+o]);for(var i=["color","opacity","symbol","symbolSize","symbolKeepAspect"],t=0;t<i.length;t++)m.getItemVisual(d,i[t],!0)==null&&m.setItemVisual(d,i[t],v.getItemVisual(o,i[t]))}})})}k.exports=n},Kagy:function(k,D){var n={legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};k.exports=n},KamJ:function(k,D,n){var y=n("ProS"),p=n("szbU");n("vF/C"),n("qwVE"),n("BuqR"),n("AE9C"),n("1u/T"),y.registerPreprocessor(p)},KmBX:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("CP8R")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="FilterFilled";var i=v.forwardRef(o);D.default=i},KmYQ:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("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(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("E/ki")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="ClockCircleOutlined";var i=v.forwardRef(o);D.default=i},KrTs:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("cDf5"),v=n.n(x),m=n("pVnL"),f=n.n(m),d=n("q1tI"),u=n("UmKh"),o=n("TSYQ"),i=n.n(o),t=n("J4zp"),s=n.n(t),e=n("H84U"),l=n("0n0R"),r=function(w,O){var I={};for(var R in w)Object.prototype.hasOwnProperty.call(w,R)&&O.indexOf(R)<0&&(I[R]=w[R]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,R=Object.getOwnPropertySymbols(w);M<R.length;M++)O.indexOf(R[M])<0&&Object.prototype.propertyIsEnumerable.call(w,R[M])&&(I[R[M]]=w[R[M]]);return I};function a(w){return w?w.toString().split("").reverse().map(function(O){var I=Number(O);return isNaN(I)?O:I}):[]}function c(w,O){for(var I=[],R=0;R<30;R++)I.push(d.createElement("p",{key:R.toString(),className:i()(O,{current:w===R})},R%10));return I}var h=function(O){var I=O.prefixCls,R=O.count,M=O.className,B=O.style,P=O.title,X=O.component,F=X===void 0?"sup":X,j=O.displayComponent,K=O.onAnimated,z=K===void 0?function(){}:K,V=r(O,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),Q=d.useState(!0),G=s()(Q,2),te=G[0],q=G[1],le=d.useState(R),re=s()(le,2),we=re[0],Ie=re[1],Me=d.useState(R),Je=s()(Me,2),Ve=Je[0],ut=Je[1],Fe=d.useState(R),ae=s()(Fe,2),at=ae[0],he=ae[1],J=d.useContext(e.b),Y=J.getPrefixCls,$=Y("scroll-number",I);Ve!==R&&(q(!0),ut(R)),d.useEffect(function(){he(we);var fe;return te&&(fe=setTimeout(function(){q(!1),Ie(R),z()})),function(){fe&&clearTimeout(fe)}},[te,R,z]);var de=function(Se,ke){var rt=Math.abs(Number(we)),xt=Math.abs(Number(at)),ht=Math.abs(a(we)[ke]),He=Math.abs(a(xt)[ke]);return te?10+Se:rt>xt?ht>=He?10+Se:20+Se:ht<=He?10+Se:Se},be=function(Se,ke){if(typeof Se=="number"){var rt=de(Se,ke),xt=te||a(at)[ke]===void 0;return d.createElement("span",{className:"".concat($,"-only"),style:{transition:xt?"none":void 0,msTransform:"translateY(".concat(-rt*100,"%)"),WebkitTransform:"translateY(".concat(-rt*100,"%)"),transform:"translateY(".concat(-rt*100,"%)")},key:ke},c(rt,"".concat($,"-only-unit")))}return d.createElement("span",{key:"symbol",className:"".concat($,"-symbol")},Se)},Ce=function(){return we&&Number(we)%1===0?a(we).map(function(Se,ke){return be(Se,ke)}).reverse():we},Be=f()(f()({},V),{style:B,className:i()($,M),title:P});return B&&B.borderColor&&(Be.style=f()(f()({},B),{boxShadow:"0 0 0 1px ".concat(B.borderColor," inset")})),j?Object(l.a)(j,{className:i()("".concat($,"-custom-component"),j.props&&j.props.className)}):d.createElement(F,Be,Ce())},g=h,A=n("09Wf");function b(w){return A.a.indexOf(w)!==-1}var S=function(O){var I,R=O.className,M=O.prefixCls,B=O.style,P=O.color,X=O.children,F=O.text,j=O.placement,K=j===void 0?"end":j,z=d.useContext(e.b),V=z.getPrefixCls,Q=z.direction,G=V("ribbon",M),te=b(P),q=i()(G,R,"".concat(G,"-placement-").concat(K),(I={},p()(I,"".concat(G,"-rtl"),Q==="rtl"),p()(I,"".concat(G,"-color-").concat(P),te),I)),le={},re={};return P&&!te&&(le.background=P,re.color=P),d.createElement("div",{className:"".concat(G,"-wrapper")},X,d.createElement("div",{className:q,style:f()(f()({},le),B)},F,d.createElement("div",{className:"".concat(G,"-corner"),style:re})))},E=S,C=function(w,O){var I={};for(var R in w)Object.prototype.hasOwnProperty.call(w,R)&&O.indexOf(R)<0&&(I[R]=w[R]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,R=Object.getOwnPropertySymbols(w);M<R.length;M++)O.indexOf(R[M])<0&&Object.prototype.propertyIsEnumerable.call(w,R[M])&&(I[R[M]]=w[R[M]]);return I},_=function(O){var I,R,M=O.prefixCls,B=O.scrollNumberPrefixCls,P=O.children,X=O.status,F=O.text,j=O.color,K=O.count,z=K===void 0?null:K,V=O.overflowCount,Q=V===void 0?99:V,G=O.dot,te=G===void 0?!1:G,q=O.size,le=q===void 0?"default":q,re=O.title,we=O.offset,Ie=O.style,Me=O.className,Je=O.showZero,Ve=Je===void 0?!1:Je,ut=C(O,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),Fe=d.useContext(e.b),ae=Fe.getPrefixCls,at=Fe.direction,he=ae("badge",M),J=function(){var hr=z>Q?"".concat(Q,"+"):z;return hr},Y=function(){return!!X||!!j},$=function(){var hr=J();return hr==="0"||hr===0},de=function(){return te&&!$()||Y()},be=function(){return de()?"":J()},Ce=function(){return re||(typeof z=="string"||typeof z=="number"?z:void 0)},Be=function(){return at==="rtl"?we?f()({left:parseInt(we[0],10),marginTop:we[1]},Ie):Ie:we?f()({right:-parseInt(we[0],10),marginTop:we[1]},Ie):Ie},fe=function(){var hr=be(),Jt=hr==null||hr==="";return(Jt||$()&&!Ve)&&!de()},Se=function(){var hr=fe();return hr||!F?null:d.createElement("span",{className:"".concat(he,"-status-text")},F)},ke=function(){var hr=z;return!hr||v()(hr)!=="object"?void 0:Object(l.a)(hr,{style:f()(f()({},Be()),hr.props&&hr.props.style)})},rt=function(){var hr,Jt=ae("scroll-number",B),Pt=be(),Wt=de(),Ge=fe(),pe=i()((hr={},p()(hr,"".concat(he,"-dot"),Wt),p()(hr,"".concat(he,"-count"),!Wt),p()(hr,"".concat(he,"-count-sm"),le==="small"),p()(hr,"".concat(he,"-multiple-words"),!Wt&&z&&z.toString&&z.toString().length>1),p()(hr,"".concat(he,"-status-").concat(X),!!X),p()(hr,"".concat(he,"-status-").concat(j),b(j)),hr)),se=Be();return j&&!b(j)&&(se=se||{},se.background=j),Ge?null:d.createElement(g,{prefixCls:Jt,"data-show":!Ge,className:pe,count:Pt,displayComponent:ke(),title:Ce(),style:se,key:"scrollNumber"})},xt=i()((I={},p()(I,"".concat(he,"-status-dot"),Y()),p()(I,"".concat(he,"-status-").concat(X),!!X),p()(I,"".concat(he,"-status-").concat(j),b(j)),I)),ht={};j&&!b(j)&&(ht.background=j);var He=i()(Me,he,(R={},p()(R,"".concat(he,"-status"),Y()),p()(R,"".concat(he,"-not-a-wrapper"),!P),p()(R,"".concat(he,"-rtl"),at==="rtl"),R));if(!P&&Y()){var ir=Be(),ct=ir&&ir.color;return d.createElement("span",f()({},ut,{className:He,style:ir}),d.createElement("span",{className:xt,style:ht}),d.createElement("span",{style:{color:ct},className:"".concat(he,"-status-text")},F))}return d.createElement("span",f()({},ut,{className:He}),P,d.createElement(u.a,{component:"",showProp:"data-show",transitionName:P?"".concat(he,"-zoom"):"",transitionAppear:!0},rt()),Se())};_.Ribbon=E;var T=D.a=_},Kvyg:function(k,D,n){},KxFI:function(k,D,n){},KxfA:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),v=x.isTypedArray,m=x.extend,f=x.assert,d=x.each,u=x.isObject,o=n("4NO4"),i=o.getDataItemValue,t=o.isDataItemOption,s=n("OELB"),e=s.parseDate,l=n("7G+c"),r=n("k9D9"),a=r.SOURCE_FORMAT_TYPED_ARRAY,c=r.SOURCE_FORMAT_ARRAY_ROWS,h=r.SOURCE_FORMAT_ORIGINAL,g=r.SOURCE_FORMAT_OBJECT_ROWS;function A(P,X){l.isInstance(P)||(P=l.seriesDataToSource(P)),this._source=P;var F=this._data=P.data,j=P.sourceFormat;j===a&&(this._offset=0,this._dimSize=X,this._data=F);var K=S[j===c?j+"_"+P.seriesLayoutBy:j];m(this,K)}var b=A.prototype;b.pure=!1,b.persistent=!0,b.getSource=function(){return this._source};var S={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(P){return this._data[P+this._source.startIndex]},appendData:_},arrayRows_row:{pure:!0,count:function(){var P=this._data[0];return P?Math.max(0,P.length-this._source.startIndex):0},getItem:function(P){P+=this._source.startIndex;for(var X=[],F=this._data,j=0;j<F.length;j++){var K=F[j];X.push(K?K[P]:null)}return X},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:E,getItem:C,appendData:_},keyedColumns:{pure:!0,count:function(){var P=this._source.dimensionsDefine[0].name,X=this._data[P];return X?X.length:0},getItem:function(P){for(var X=[],F=this._source.dimensionsDefine,j=0;j<F.length;j++){var K=this._data[F[j].name];X.push(K?K[P]:null)}return X},appendData:function(P){var X=this._data;d(P,function(F,j){for(var K=X[j]||(X[j]=[]),z=0;z<(F||[]).length;z++)K.push(F[z])})}},original:{count:E,getItem:C,appendData:_},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(P,X){P=P-this._offset,X=X||[];for(var F=this._dimSize*P,j=0;j<this._dimSize;j++)X[j]=this._data[F+j];return X},appendData:function(P){this._data=P},clean:function(){this._offset+=this.count(),this._data=null}}};function E(){return this._data.length}function C(P){return this._data[P]}function _(P){for(var X=0;X<P.length;X++)this._data.push(P[X])}var T={arrayRows:w,objectRows:function(P,X,F,j){return F!=null?P[j]:P},keyedColumns:w,original:function(P,X,F,j){var K=i(P);return F==null||!(K instanceof Array)?K:K[F]},typedArray:w};function w(P,X,F,j){return F!=null?P[F]:P}var O={arrayRows:I,objectRows:function(P,X,F,j){return R(P[X],this._dimensionInfos[X])},keyedColumns:I,original:function(P,X,F,j){var K=P&&(P.value==null?P:P.value);return!this._rawData.pure&&t(P)&&(this.hasItemOption=!0),R(K instanceof Array?K[j]:K,this._dimensionInfos[X])},typedArray:function(P,X,F,j){return P[j]}};function I(P,X,F,j){return R(P[j],this._dimensionInfos[X])}function R(P,X){var F=X&&X.type;if(F==="ordinal"){var j=X&&X.ordinalMeta;return j?j.parseAndCollect(P):P}return F==="time"&&typeof P!="number"&&P!=null&&P!=="-"&&(P=+e(P)),P==null||P===""?NaN:+P}function M(P,X,F){if(!P)return;var j=P.getRawDataItem(X);if(j==null)return;var K=P.getProvider().getSource().sourceFormat,z,V,Q=P.getDimensionInfo(F);return Q&&(z=Q.name,V=Q.index),T[K](j,X,V,z)}function B(P,X,F){if(!P)return;var j=P.getProvider().getSource().sourceFormat;if(j!==h&&j!==g)return;var K=P.getRawDataItem(X);if(j===h&&!u(K)&&(K=null),K)return K[F]}D.DefaultDataProvider=A,D.defaultDimValueGetters=O,D.retrieveRawValue=M,D.retrieveRawAttr=B},L0Ub:function(k,D,n){var y=n("bYtY"),p=y.each,x=y.createHashMap,v=y.assert,m=n("Tghj"),f=m.__DEV__,d=x(["tooltip","label","itemName","itemId","seriesName"]);function u(s){var e={},l=e.encode={},r=x(),a=[],c=[],h=e.userOutput={dimensionNames:s.dimensions.slice(),encode:{}};p(s.dimensions,function(E){var C=s.getDimensionInfo(E),_=C.coordDim;if(_){var T=C.coordDimIndex;o(l,_)[T]=E,C.isExtraCoord||(r.set(_,1),t(C.type)&&(a[0]=E),o(h.encode,_)[T]=C.index),C.defaultTooltip&&c.push(E)}d.each(function(w,O){var I=o(l,O),R=C.otherDims[O];R!=null&&R!==!1&&(I[R]=C.name)})});var g=[],A={};r.each(function(E,C){var _=l[C];A[C]=_[0],g=g.concat(_)}),e.dataDimsOnCoord=g,e.encodeFirstDimNotExtra=A;var b=l.label;b&&b.length&&(a=b.slice());var S=l.tooltip;return S&&S.length?c=S.slice():c.length||(c=a.slice()),l.defaultedLabel=a,l.defaultedTooltip=c,e}function o(s,e){return s.hasOwnProperty(e)||(s[e]=[]),s[e]}function i(s){return s==="category"?"ordinal":s==="time"?"time":"float"}function t(s){return!(s==="ordinal"||s==="time")}D.OTHER_DIMENSIONS=d,D.summarizeDimensions=u,D.getDimensionTypeByAxis=i},L3Oj:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("HjIi");n("HM/N"),n("9eas"),n("eS4l"),n("y4/Y"),n("as94"),y.registerLayout(p.curry(x,"bar")),y.extendComponentView({type:"polar"})},L41K:function(k,D,n){"use strict";n.d(D,"a",function(){return z});var y=n("pVnL"),p=n.n(y),x=n("lSNA"),v=n.n(x),m=n("lwsE"),f=n.n(m),d=n("W8MJ"),u=n.n(d),o=n("7W2i"),i=n.n(o),t=n("LQ03"),s=n.n(t),e=n("q1tI"),l=n.n(e),r=n("BGR+"),a=n("VTBJ"),c=n("rePB"),h=n("Ff2n"),g=n("1OyB"),A=n("vuIU"),b=n("Ji7U"),S=n("LK+K"),E=n("Zm9Q"),C=n("TSYQ"),_=n.n(C),T=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function w(V){return typeof V=="string"}var O=function(V){Object(b.a)(G,V);var Q=Object(S.a)(G);function G(){var te;return Object(g.a)(this,G),te=Q.apply(this,arguments),te.onClick=function(){var q=te.props,le=q.onClick,re=q.onStepClick,we=q.stepIndex;le&&le.apply(void 0,arguments),re(we)},te}return Object(A.a)(G,[{key:"renderIconNode",value:function(){var q,le=this.props,re=le.prefixCls,we=le.progressDot,Ie=le.stepIcon,Me=le.stepNumber,Je=le.status,Ve=le.title,ut=le.description,Fe=le.icon,ae=le.iconPrefix,at=le.icons,he,J=_()("".concat(re,"-icon"),"".concat(ae,"icon"),(q={},Object(c.a)(q,"".concat(ae,"icon-").concat(Fe),Fe&&w(Fe)),Object(c.a)(q,"".concat(ae,"icon-check"),!Fe&&Je==="finish"&&(at&&!at.finish||!at)),Object(c.a)(q,"".concat(ae,"icon-cross"),!Fe&&Je==="error"&&(at&&!at.error||!at)),q)),Y=e.createElement("span",{className:"".concat(re,"-icon-dot")});return we?typeof we=="function"?he=e.createElement("span",{className:"".concat(re,"-icon")},we(Y,{index:Me-1,status:Je,title:Ve,description:ut})):he=e.createElement("span",{className:"".concat(re,"-icon")},Y):Fe&&!w(Fe)?he=e.createElement("span",{className:"".concat(re,"-icon")},Fe):at&&at.finish&&Je==="finish"?he=e.createElement("span",{className:"".concat(re,"-icon")},at.finish):at&&at.error&&Je==="error"?he=e.createElement("span",{className:"".concat(re,"-icon")},at.error):Fe||Je==="finish"||Je==="error"?he=e.createElement("span",{className:J}):he=e.createElement("span",{className:"".concat(re,"-icon")},Me),Ie&&(he=Ie({index:Me-1,status:Je,title:Ve,description:ut,node:he})),he}},{key:"render",value:function(){var q,le=this.props,re=le.className,we=le.prefixCls,Ie=le.style,Me=le.active,Je=le.status,Ve=Je===void 0?"wait":Je,ut=le.iconPrefix,Fe=le.icon,ae=le.wrapperStyle,at=le.stepNumber,he=le.disabled,J=le.description,Y=le.title,$=le.subTitle,de=le.progressDot,be=le.stepIcon,Ce=le.tailContent,Be=le.icons,fe=le.stepIndex,Se=le.onStepClick,ke=le.onClick,rt=Object(h.a)(le,T),xt=_()("".concat(we,"-item"),"".concat(we,"-item-").concat(Ve),re,(q={},Object(c.a)(q,"".concat(we,"-item-custom"),Fe),Object(c.a)(q,"".concat(we,"-item-active"),Me),Object(c.a)(q,"".concat(we,"-item-disabled"),he===!0),q)),ht=Object(a.a)({},Ie),He={};return Se&&!he&&(He.role="button",He.tabIndex=0,He.onClick=this.onClick),e.createElement("div",Object.assign({},rt,{className:xt,style:ht}),e.createElement("div",Object.assign({onClick:ke},He,{className:"".concat(we,"-item-container")}),e.createElement("div",{className:"".concat(we,"-item-tail")},Ce),e.createElement("div",{className:"".concat(we,"-item-icon")},this.renderIconNode()),e.createElement("div",{className:"".concat(we,"-item-content")},e.createElement("div",{className:"".concat(we,"-item-title")},Y,$&&e.createElement("div",{title:typeof $=="string"?$:void 0,className:"".concat(we,"-item-subtitle")},$)),J&&e.createElement("div",{className:"".concat(we,"-item-description")},J))))}}]),G}(e.Component),I=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],R=function(V){Object(b.a)(G,V);var Q=Object(S.a)(G);function G(){var te;return Object(g.a)(this,G),te=Q.apply(this,arguments),te.onStepClick=function(q){var le=te.props,re=le.onChange,we=le.current;re&&we!==q&&re(q)},te}return Object(A.a)(G,[{key:"render",value:function(){var q,le=this,re=this.props,we=re.prefixCls,Ie=re.style,Me=Ie===void 0?{}:Ie,Je=re.className,Ve=re.children,ut=re.direction,Fe=re.type,ae=re.labelPlacement,at=re.iconPrefix,he=re.status,J=re.size,Y=re.current,$=re.progressDot,de=re.stepIcon,be=re.initial,Ce=re.icons,Be=re.onChange,fe=Object(h.a)(re,I),Se=Fe==="navigation",ke=$?"vertical":ae,rt=_()(we,"".concat(we,"-").concat(ut),Je,(q={},Object(c.a)(q,"".concat(we,"-").concat(J),J),Object(c.a)(q,"".concat(we,"-label-").concat(ke),ut==="horizontal"),Object(c.a)(q,"".concat(we,"-dot"),!!$),Object(c.a)(q,"".concat(we,"-navigation"),Se),q));return l.a.createElement("div",Object.assign({className:rt,style:Me},fe),Object(E.a)(Ve).map(function(xt,ht){var He=be+ht,ir=Object(a.a)({stepNumber:"".concat(He+1),stepIndex:He,key:He,prefixCls:we,iconPrefix:at,wrapperStyle:Me,progressDot:$,stepIcon:de,icons:Ce,onStepClick:Be&&le.onStepClick},xt.props);return he==="error"&&ht===Y-1&&(ir.className="".concat(we,"-next-error")),xt.props.status||(He===Y?ir.status=he:He<Y?ir.status="finish":ir.status="wait"),ir.active=He===Y,Object(e.cloneElement)(xt,ir)}))}}]),G}(l.a.Component);R.Step=O,R.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var M=R,B=n("NAnI"),P=n.n(B),X=n("V/uB"),F=n.n(X),j=n("H84U"),K=n("CFYs"),z=function(V){i()(G,V);var Q=s()(G);function G(){var te;return f()(this,G),te=Q.apply(this,arguments),te.renderSteps=function(q){var le=q.getPrefixCls,re=q.direction,we=le("steps",te.props.prefixCls),Ie=le("",te.props.iconPrefix),Me=te.props,Je=Me.percent,Ve=Me.size,ut=_()(te.props.className,v()({},"".concat(we,"-rtl"),re==="rtl")),Fe={finish:e.createElement(P.a,{className:"".concat(we,"-finish-icon")}),error:e.createElement(F.a,{className:"".concat(we,"-error-icon")})},ae=function(he){var J=he.node,Y=he.status;if(Y==="process"&&Je!==void 0){var $=Ve==="small"?32:40,de=e.createElement("div",{className:"".concat(we,"-progress-icon")},e.createElement(K.a,{type:"circle",percent:Je,width:$,strokeWidth:4,format:function(){return null}}),J);return de}return J};return e.createElement(M,p()({icons:Fe},Object(r.default)(te.props,["progress"]),{stepIcon:ae,prefixCls:we,iconPrefix:Ie,className:ut}))},te}return u()(G,[{key:"render",value:function(){return e.createElement(j.a,null,this.renderSteps)}}]),G}(e.Component);z.Step=M.Step,z.defaultProps={current:0}},L5E0:function(k,D){var n=["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(n)||f}),p.isSeriesFiltered(m)||d.each(function(u){var o=d.getItemModel(u);d.setItemVisual(u,{color:o.get(n,!0)})})})}k.exports=y},L8xA:function(k,D){function n(y){var p=this.__data__,x=p.delete(y);return this.size=p.size,x}k.exports=n},LBfv:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=p.createHashMap,v=p.each;y.registerProcessor({getTargetSeries:function(m){var f=x();return m.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(u,o,i){var t=i.getAxisProxy(u.name,o);v(t.getTargetSeriesModels(),function(s){f.set(s.uid,s)})})}),f},modifyOutputEnd:!0,overallReset:function(m,f){m.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(u,o,i){i.getAxisProxy(u.name,o).reset(i,f)}),d.eachTargetAxis(function(u,o,i){i.getAxisProxy(u.name,o).filterData(i,f)})}),m.eachComponent("dataZoom",function(d){var u=d.findRepresentativeAxisProxy(),o=u.getDataPercentWindow(),i=u.getDataValueWindow();d.setCalculatedRange({start:o[0],end:o[1],startValue:i[0],endValue:i[1]})})}})},LCi9:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(A,b){if(!(A instanceof b))throw new TypeError("Cannot call a class as a function")}function p(A,b){for(var S=0;S<b.length;S++){var E=b[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(A,E.key,E)}}function x(A,b,S){return b&&p(A.prototype,b),S&&p(A,S),A}var v=0,m=1,f=2,d=4,u=8,o=16,i=32,t=64,s=127,e=50,l=90,r=250,a=1e3,c=1e3,h=50,g=function(){function A(){y(this,A),this._target=null,this._state=s,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(S){this.detach(),this._target=S,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(S){var E;S.stopPropagation(),S.preventDefault();switch(S.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<S.changedTouches.length;C++){var _=S.changedTouches[C];E.call(this,_.identifier,_.clientX,_.clientY)}}},{key:"_touchStart",value:function(S,E,C){if(this._hasDetectedGesture()||this._state===v){this._ignored.push(S);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>r){this._state=v,this._ignored.push(S);return}if(this._waitingRelease){this._state=v,this._ignored.push(S);return}this._tracked.push({id:S,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|u|o),this._stopLongpressTimeout();break;case 3:this._state&=~(f|i|t);break;default:this._state=v}}},{key:"_touchMove",value:function(S,E,C){var _=this._tracked.find(function(M){return M.id===S});if(_===void 0)return;_.lastX=E,_.lastY=C;var T=E-_.firstX,w=C-_.firstY;if((_.firstX!==_.lastX||_.firstY!==_.lastY)&&(_.angle=Math.atan2(w,T)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(T,w)<e)return;if(this._state&=~(m|f|d|o),this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~u),this._tracked.length!==2&&(this._state&=~(i|t)),this._tracked.length===2){var O=this._tracked.find(function(M){return M.id!==S}),I=Math.hypot(O.firstX-O.lastX,O.firstY-O.lastY);if(I>e){var R=Math.abs(_.angle-O.angle);R=Math.abs((R+180)%360-180),R>l?this._state&=~i:this._state&=~t,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(S,E,C){if(this._ignored.indexOf(S)!==-1){this._ignored.splice(this._ignored.indexOf(S),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=s,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=v),!this._hasDetectedGesture()&&(this._state&=~(u|i|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(w){return Date.now()-w.started>a})&&(this._state=v);var _=this._tracked.find(function(w){return w.id===S});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(S)!==-1&&this._ignored.splice(this._ignored.indexOf(S),1),this._ignored.length===0&&(this._state=s,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(S){return S.active}))}},{key:"_startLongpressTimeout",value:function(){var S=this;this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(function(){return S._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 S=this;this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(function(){return S._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 S=this._getAverageMovement(),E=Math.abs(S.x),C=Math.abs(S.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=i,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(S){var E={type:this._stateToGesture(this._state)},C=this._getPosition(),_=C.last;S==="gesturestart"&&(_=C.first);switch(this._state){case i:case t:_=C.first;break}if(E.clientX=_.x,E.clientY=_.y,this._state===t){var T=this._getAverageDistance();S==="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===i)if(S==="gesturestart")E.magnitudeX=0,E.magnitudeY=0;else{var w=this._getAverageMovement();E.magnitudeX=w.x,E.magnitudeY=w.y}var O=new CustomEvent(S,{detail:E});this._target.dispatchEvent(O)}},{key:"_stateToGesture",value:function(S){switch(S){case m:return"onetap";case f:return"twotap";case d:return"threetap";case u:return"drag";case o:return"longpress";case i:return"twodrag";case t:return"pinch"}throw new Error("Unknown gesture state: "+S)}},{key:"_getPosition",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture position, no tracked touches");for(var S=this._tracked.length,E=0,C=0,_=0,T=0,w=0;w<this._tracked.length;w++)E+=this._tracked[w].firstX,C+=this._tracked[w].firstY,_+=this._tracked[w].lastX,T+=this._tracked[w].lastY;return{first:{x:E/S,y:C/S},last:{x:_/S,y:T/S}}}},{key:"_getAverageMovement",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture movement, no tracked touches");var S,E;S=E=0;for(var C=this._tracked.length,_=0;_<this._tracked.length;_++)S+=this._tracked[_].lastX-this._tracked[_].firstX,E+=this._tracked[_].lastY-this._tracked[_].firstY;return{x:S/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 S=this._tracked[0],E=this._tracked[this._tracked.length-1],C=Math.abs(E.firstX-S.firstX),_=Math.abs(E.firstY-S.firstY),T=Math.abs(E.lastX-S.lastX),w=Math.abs(E.lastY-S.lastY);return{first:{x:C,y:_},last:{x:T,y:w}}}}]),A}();D.default=g},LPTA:function(k,D){var n=1;typeof window!="undefined"&&(n=Math.max(window.devicePixelRatio||1,1));var y=0,p=n;D.debugMode=y,D.devicePixelRatio=p},LPzL:function(k,D,n){var y=n("ProS");n("QzjZ"),n("vL6D"),n("xiyX"),n("y4/Y"),n("8Th4"),y.extendComponentView({type:"single"})},LSTS:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y=function(){function s(e,l){for(var r=0;r<l.length;r++){var a=l[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,l,r){return l&&s(e.prototype,l),r&&s(e,r),e}}(),p=n("q1tI"),x=f(p),v=n("17x9"),m=f(v);function f(s){return s&&s.__esModule?s:{default:s}}function d(s,e){var l={};for(var r in s){if(e.indexOf(r)>=0)continue;if(!Object.prototype.hasOwnProperty.call(s,r))continue;l[r]=s[r]}return l}function u(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")}function o(s,e){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:s}function i(s,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(s,e):s.__proto__=e)}var t=function(s){i(e,s);function e(l){u(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,l));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,a={get passive(){r=!0}};try{document.addEventListener("test",null,a),document.removeEventListener("test",null,a)}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 a=this.props.getScrollParent&&this.props.getScrollParent();return a!=null?a: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 a=window;this.props.useWindow===!1&&(a=r),a.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),a.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),a.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(r){r.deltaY===1&&!this.isPassiveSupported()&&r.preventDefault()}},{key:"scrollListener",value:function(){var r=this.scrollComponent,a=window,c=this.getParentElement(r),h=void 0;if(this.props.useWindow){var g=document.documentElement||document.body.parentNode||document.body,A=a.pageYOffset!==void 0?a.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,a){return r?this.calculateTopPosition(r)+(r.offsetHeight-a-window.innerHeight):0}},{key:"calculateTopPosition",value:function(r){return r?r.offsetTop+this.calculateTopPosition(r.offsetParent):0}},{key:"render",value:function(){var r=this,a=this.filterProps(this.props),c=a.children,h=a.element,g=a.hasMore,A=a.initialLoad,b=a.isReverse,S=a.loader,E=a.loadMore,C=a.pageStart,_=a.ref,T=a.threshold,w=a.useCapture,O=a.useWindow,I=a.getScrollParent,R=d(a,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);R.ref=function(B){r.scrollComponent=B,_&&_(B)};var M=[c];return g&&(S?b?M.unshift(S):M.push(S):this.defaultLoader&&(b?M.unshift(this.defaultLoader):M.push(this.defaultLoader))),x.default.createElement(h,R,M)}}]),e}(p.Component);t.propTypes={children:m.default.node.isRequired,element:m.default.node,hasMore:m.default.bool,initialLoad:m.default.bool,isReverse:m.default.bool,loader:m.default.node,loadMore:m.default.func.isRequired,pageStart:m.default.number,ref:m.default.func,getScrollParent:m.default.func,threshold:m.default.number,useCapture:m.default.bool,useWindow:m.default.bool},t.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},D.default=t,k.exports=D.default},LXxW:function(k,D){function n(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}k.exports=n},Lerx:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("Mds0"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},LlR5:function(k,D,n){"use strict";n.d(D,"b",function(){return b});var y=n("lSNA"),p=n.n(y),x=n("lwsE"),v=n.n(x),m=n("W8MJ"),f=n.n(m),d=n("7W2i"),u=n.n(d),o=n("LQ03"),i=n.n(o),t=n("q1tI"),s=n.n(t),e=n("TSYQ"),l=n.n(e),r=n("kbBi"),a=n.n(r),c=n("CWQg"),h=n("mh/l"),g=n("0n0R"),A=Object(c.a)("text","input");function b(E){return!!(E.prefix||E.suffix||E.allowClear)}var S=function(E){u()(_,E);var C=i()(_);function _(){var T;return v()(this,_),T=C.apply(this,arguments),T.containerRef=t.createRef(),T.onInputMouseUp=function(w){var O;if((O=T.containerRef.current)===null||O===void 0?void 0:O.contains(w.target)){var I=T.props.triggerFocus;I()}},T}return f()(_,[{key:"renderClearIcon",value:function(w){var O=this.props,I=O.allowClear,R=O.value,M=O.disabled,B=O.readOnly,P=O.inputType,X=O.handleReset;if(!I)return null;var F=!M&&!B&&R,j=P===A[0]?"".concat(w,"-textarea-clear-icon"):"".concat(w,"-clear-icon");return t.createElement(a.a,{onClick:X,className:l()(j,p()({},"".concat(j,"-hidden"),!F)),role:"button"})}},{key:"renderSuffix",value:function(w){var O=this.props,I=O.suffix,R=O.allowClear;return I||R?t.createElement("span",{className:"".concat(w,"-suffix")},this.renderClearIcon(w),I):null}},{key:"renderLabeledIcon",value:function(w,O){var I,R=this.props,M=R.focused,B=R.value,P=R.prefix,X=R.className,F=R.size,j=R.suffix,K=R.disabled,z=R.allowClear,V=R.direction,Q=R.style,G=R.readOnly,te=R.bordered,q=this.renderSuffix(w);if(!b(this.props))return Object(g.a)(O,{value:B});var le=P?t.createElement("span",{className:"".concat(w,"-prefix")},P):null,re=l()(X,"".concat(w,"-affix-wrapper"),(I={},p()(I,"".concat(w,"-affix-wrapper-focused"),M),p()(I,"".concat(w,"-affix-wrapper-disabled"),K),p()(I,"".concat(w,"-affix-wrapper-sm"),F==="small"),p()(I,"".concat(w,"-affix-wrapper-lg"),F==="large"),p()(I,"".concat(w,"-affix-wrapper-input-with-clear-btn"),j&&z&&B),p()(I,"".concat(w,"-affix-wrapper-rtl"),V==="rtl"),p()(I,"".concat(w,"-affix-wrapper-readonly"),G),p()(I,"".concat(w,"-affix-wrapper-borderless"),!te),I));return t.createElement("span",{ref:this.containerRef,className:re,style:Q,onMouseUp:this.onInputMouseUp},le,Object(g.a)(O,{style:null,value:B,className:Object(h.c)(w,te,F,K)}),q)}},{key:"renderInputWithLabel",value:function(w,O){var I,R,M=this.props,B=M.addonBefore,P=M.addonAfter,X=M.style,F=M.size,j=M.className,K=M.direction;if(!B&&!P)return O;var z="".concat(w,"-group"),V="".concat(z,"-addon"),Q=B?t.createElement("span",{className:V},B):null,G=P?t.createElement("span",{className:V},P):null,te=l()("".concat(w,"-wrapper"),(I={},p()(I,z,B||P),p()(I,"".concat(z,"-rtl"),K==="rtl"),I)),q=l()(j,"".concat(w,"-group-wrapper"),(R={},p()(R,"".concat(w,"-group-wrapper-sm"),F==="small"),p()(R,"".concat(w,"-group-wrapper-lg"),F==="large"),p()(R,"".concat(w,"-group-wrapper-rtl"),K==="rtl"),R));return t.createElement("span",{className:q,style:X},t.createElement("span",{className:te},Q,Object(g.a)(O,{style:null}),G))}},{key:"renderTextAreaWithClearIcon",value:function(w,O){var I,R=this.props,M=R.value,B=R.allowClear,P=R.className,X=R.style,F=R.direction,j=R.bordered;if(!B)return Object(g.a)(O,{value:M});var K=l()(P,"".concat(w,"-affix-wrapper"),"".concat(w,"-affix-wrapper-textarea-with-clear-btn"),(I={},p()(I,"".concat(w,"-affix-wrapper-rtl"),F==="rtl"),p()(I,"".concat(w,"-affix-wrapper-borderless"),!j),I));return t.createElement("span",{className:K,style:X},Object(g.a)(O,{style:null,value:M}),this.renderClearIcon(w))}},{key:"render",value:function(){var w=this.props,O=w.prefixCls,I=w.inputType,R=w.element;return I===A[0]?this.renderTextAreaWithClearIcon(O,R):this.renderInputWithLabel(O,this.renderLabeledIcon(O,R))}}]),_}(t.Component);D.a=S},Llu2:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="DeliveredProcedureOutlined";var d=D.a=p.forwardRef(f)},Lo0S:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.initLogging=f,D.getLogging=d,D.Error=D.Warn=D.Info=D.Debug=void 0;var y="warn",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(u){if(typeof u=="undefined"?u=y:y=u,D.Debug=p=D.Info=x=D.Warn=v=D.Error=m=function(){},typeof window.console!="undefined")switch(u){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 '"+u+"'")}}function d(){return y}f()},LtfV:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="InboxOutlined";var d=D.a=p.forwardRef(f)},Lyp1:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="QuestionCircleOutlined";var d=D.a=p.forwardRef(f)},LzGr:function(k,D,n){var y=n("ProS"),p=n("rnVJ");n("EMyp"),n("8x+h"),n("wt3j"),n("uOyE"),n("/stD"),y.registerPreprocessor(p)},MBQ8:function(k,D,n){var y=n("T4UG"),p=n("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(),u=d.getLayout("offset"),o=d.getLayout("size"),i=m.getBaseAxis().isHorizontal()?0:1;return f[i]+=u+o/2,f}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});k.exports=x},MEGo:function(k,D,n){var y=n("4fz+"),p=n("Dagg"),x=n("dqUG"),v=n("2fw6"),m=n("x6Kt"),f=n("rmlV"),d=n("yxFR"),u=n("y+Vt"),o=n("h7HQ"),i=n("1Jh7"),t=n("SKnc"),s=n("K2GJ"),e=n("Fofx"),l=n("NC18"),r=l.createFromString,a=n("bYtY"),c=a.isString,h=a.extend,g=a.defaults,A=a.trim,b=a.each,S=/[\s,]+/;function E(Q){if(c(Q)){var G=new DOMParser;Q=G.parseFromString(Q,"text/xml")}for(Q.nodeType===9&&(Q=Q.firstChild);Q.nodeName.toLowerCase()!=="svg"||Q.nodeType!==1;)Q=Q.nextSibling;return Q}function C(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}C.prototype.parse=function(Q,G){G=G||{};var te=E(Q);if(!te)throw new Error("Illegal svg");var q=new y;this._root=q;var le=te.getAttribute("viewBox")||"",re=parseFloat(te.getAttribute("width")||G.width),we=parseFloat(te.getAttribute("height")||G.height);isNaN(re)&&(re=null),isNaN(we)&&(we=null),M(te,q,null,!0);for(var Ie=te.firstChild;Ie;)this._parseNode(Ie,q),Ie=Ie.nextSibling;var Me,Je;if(le){var Ve=A(le).split(S);Ve.length>=4&&(Me={x:parseFloat(Ve[0]||0),y:parseFloat(Ve[1]||0),width:parseFloat(Ve[2]),height:parseFloat(Ve[3])})}if(Me&&re!=null&&we!=null&&(Je=z(Me,re,we),!G.ignoreViewBox)){var ut=q;q=new y,q.add(ut),ut.scale=Je.scale.slice(),ut.position=Je.position.slice()}return!G.ignoreRootClip&&re!=null&&we!=null&&q.setClipPath(new m({shape:{x:0,y:0,width:re,height:we}})),{root:q,width:re,height:we,viewBoxRect:Me,viewBoxTransform:Je}},C.prototype._parseNode=function(Q,G){var te=Q.nodeName.toLowerCase();te==="defs"?this._isDefine=!0:te==="text"&&(this._isText=!0);var q;if(this._isDefine){var le=T[te];if(le){var re=le.call(this,Q),we=Q.getAttribute("id");we&&(this._defs[we]=re)}}else{var le=_[te];le&&(q=le.call(this,Q,G),G.add(q))}for(var Ie=Q.firstChild;Ie;)Ie.nodeType===1&&this._parseNode(Ie,q),Ie.nodeType===3&&this._isText&&this._parseText(Ie,q),Ie=Ie.nextSibling;te==="defs"?this._isDefine=!1:te==="text"&&(this._isText=!1)},C.prototype._parseText=function(Q,G){if(Q.nodeType===1){var te=Q.getAttribute("dx")||0,q=Q.getAttribute("dy")||0;this._textX+=parseFloat(te),this._textY+=parseFloat(q)}var le=new x({style:{text:Q.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});O(G,le),M(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 we=le.getBoundingRect();return this._textX+=we.width,G.add(le),le};var _={g:function(G,te){var q=new y;return O(te,q),M(G,q,this._defs),q},rect:function(G,te){var q=new m;return O(te,q),M(G,q,this._defs),q.setShape({x:parseFloat(G.getAttribute("x")||0),y:parseFloat(G.getAttribute("y")||0),width:parseFloat(G.getAttribute("width")||0),height:parseFloat(G.getAttribute("height")||0)}),q},circle:function(G,te){var q=new v;return O(te,q),M(G,q,this._defs),q.setShape({cx:parseFloat(G.getAttribute("cx")||0),cy:parseFloat(G.getAttribute("cy")||0),r:parseFloat(G.getAttribute("r")||0)}),q},line:function(G,te){var q=new d;return O(te,q),M(G,q,this._defs),q.setShape({x1:parseFloat(G.getAttribute("x1")||0),y1:parseFloat(G.getAttribute("y1")||0),x2:parseFloat(G.getAttribute("x2")||0),y2:parseFloat(G.getAttribute("y2")||0)}),q},ellipse:function(G,te){var q=new f;return O(te,q),M(G,q,this._defs),q.setShape({cx:parseFloat(G.getAttribute("cx")||0),cy:parseFloat(G.getAttribute("cy")||0),rx:parseFloat(G.getAttribute("rx")||0),ry:parseFloat(G.getAttribute("ry")||0)}),q},polygon:function(G,te){var q=G.getAttribute("points");q&&(q=I(q));var le=new o({shape:{points:q||[]}});return O(te,le),M(G,le,this._defs),le},polyline:function(G,te){var q=new u;O(te,q),M(G,q,this._defs);var le=G.getAttribute("points");le&&(le=I(le));var re=new i({shape:{points:le||[]}});return re},image:function(G,te){var q=new p;return O(te,q),M(G,q,this._defs),q.setStyle({image:G.getAttribute("xlink:href"),x:G.getAttribute("x"),y:G.getAttribute("y"),width:G.getAttribute("width"),height:G.getAttribute("height")}),q},text:function(G,te){var q=G.getAttribute("x")||0,le=G.getAttribute("y")||0,re=G.getAttribute("dx")||0,we=G.getAttribute("dy")||0;this._textX=parseFloat(q)+parseFloat(re),this._textY=parseFloat(le)+parseFloat(we);var Ie=new y;return O(te,Ie),M(G,Ie,this._defs),Ie},tspan:function(G,te){var q=G.getAttribute("x"),le=G.getAttribute("y");q!=null&&(this._textX=parseFloat(q)),le!=null&&(this._textY=parseFloat(le));var re=G.getAttribute("dx")||0,we=G.getAttribute("dy")||0,Ie=new y;return O(te,Ie),M(G,Ie,this._defs),this._textX+=re,this._textY+=we,Ie},path:function(G,te){var q=G.getAttribute("d")||"",le=r(q);return O(te,le),M(G,le,this._defs),le}},T={lineargradient:function(G){var te=parseInt(G.getAttribute("x1")||0,10),q=parseInt(G.getAttribute("y1")||0,10),le=parseInt(G.getAttribute("x2")||10,10),re=parseInt(G.getAttribute("y2")||0,10),we=new t(te,q,le,re);return w(G,we),we},radialgradient:function(G){}};function w(Q,G){for(var te=Q.firstChild;te;){if(te.nodeType===1){var q=te.getAttribute("offset");q.indexOf("%")>0?q=parseInt(q,10)/100:q?q=parseFloat(q):q=0;var le=te.getAttribute("stop-color")||"#000000";G.addColorStop(q,le)}te=te.nextSibling}}function O(Q,G){Q&&Q.__inheritedStyle&&(G.__inheritedStyle||(G.__inheritedStyle={}),g(G.__inheritedStyle,Q.__inheritedStyle))}function I(Q){for(var G=A(Q).split(S),te=[],q=0;q<G.length;q+=2){var le=parseFloat(G[q]),re=parseFloat(G[q+1]);te.push([le,re])}return te}var R={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function M(Q,G,te,q){var le=G.__inheritedStyle||{},re=G.type==="text";if(Q.nodeType===1&&(F(Q,G),h(le,K(Q)),!q)){for(var we in R)if(R.hasOwnProperty(we)){var Ie=Q.getAttribute(we);Ie!=null&&(le[R[we]]=Ie)}}var Me=re?"textFill":"fill",Je=re?"textStroke":"stroke";G.style=G.style||new s;var Ve=G.style;le.fill!=null&&Ve.set(Me,P(le.fill,te)),le.stroke!=null&&Ve.set(Je,P(le.stroke,te)),b(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(ut){var Fe=ut==="lineWidth"&&re?"textStrokeWidth":ut;le[ut]!=null&&Ve.set(Fe,parseFloat(le[ut]))}),(!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(ut){le[ut]!=null&&Ve.set(ut,le[ut])}),le.lineDash&&(G.style.lineDash=A(le.lineDash).split(S)),Ve[Je]&&Ve[Je]!=="none"&&(G[Je]=!0),G.__inheritedStyle=le}var B=/url\(\s*#(.*?)\)/;function P(Q,G){var te=G&&Q&&Q.match(B);if(te){var q=A(te[1]),le=G[q];return le}return Q}var X=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function F(Q,G){var te=Q.getAttribute("transform");if(te){te=te.replace(/,/g," ");var q=null,le=[];te.replace(X,function(Me,Je,Ve){le.push(Je,Ve)});for(var re=le.length-1;re>0;re-=2){var we=le[re],Ie=le[re-1];q=q||e.create();switch(Ie){case"translate":we=A(we).split(S),e.translate(q,q,[parseFloat(we[0]),parseFloat(we[1]||0)]);break;case"scale":we=A(we).split(S),e.scale(q,q,[parseFloat(we[0]),parseFloat(we[1]||we[0])]);break;case"rotate":we=A(we).split(S),e.rotate(q,q,parseFloat(we[0]));break;case"skew":we=A(we).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":var we=A(we).split(S);q[0]=parseFloat(we[0]),q[1]=parseFloat(we[1]),q[2]=parseFloat(we[2]),q[3]=parseFloat(we[3]),q[4]=parseFloat(we[4]),q[5]=parseFloat(we[5]);break}}G.setLocalTransform(q)}}var j=/([^\s:;]+)\s*:\s*([^:;]+)/g;function K(Q){var G=Q.getAttribute("style"),te={};if(!G)return te;var q={};j.lastIndex=0;for(var le;(le=j.exec(G))!=null;)q[le[1]]=le[2];for(var re in R)R.hasOwnProperty(re)&&q[re]!=null&&(te[R[re]]=q[re]);return te}function z(Q,G,te){var q=G/Q.width,le=te/Q.height,re=Math.min(q,le),we=[re,re],Ie=[-(Q.x+Q.width/2)*re+G/2,-(Q.y+Q.height/2)*re+te/2];return{scale:we,position:Ie}}function V(Q,G){var te=new C;return te.parse(Q,G)}D.parseXML=E,D.makeViewBoxTransform=z,D.parseSVG=V},MFOe:function(k,D,n){(function(y){var p=f(),x=d(),v=u(),m=typeof window!="undefined"?window:y;k.exports={assign:p,create:x,trim:v,bind:o,slice:i,each:t,map:s,pluck:e,isList:l,isFunction:r,isObject:a,Global:m};function f(){return Object.assign?Object.assign:function(h,g,A,b){for(var S=1;S<arguments.length;S++)t(Object(arguments[S]),function(E,C){h[C]=E});return h}}function d(){if(Object.create)return function(g,A,b,S){var E=i(arguments,1);return p.apply(this,[Object.create(g)].concat(E))};var c=function(){};return function(g,A,b,S){var E=i(arguments,1);return c.prototype=g,p.apply(this,[new c].concat(E))}}function u(){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 i(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 s(c,h){var g=l(c)?[]:{};return e(c,function(A,b){return g[b]=h(A,b),!1}),g}function e(c,h){if(l(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 l(c){return c!=null&&typeof c!="function"&&typeof c.length=="number"}function r(c){return c&&{}.toString.call(c)==="[object Function]"}function a(c){return c&&{}.toString.call(c)==="[object Object]"}}).call(this,n("yLpj"))},MH26:function(k,D,n){var y=n("bYtY"),p=n("YXkt"),x=n("OELB"),v=n("kj2x"),m=n("c8qY"),f=n("iPDy"),d=n("7hqr"),u=d.getStackedDimension,o=function(a,c,h,g){var A=a.getData(),b=g.type;if(!y.isArray(g)&&(b==="min"||b==="max"||b==="average"||b==="median"||g.xAxis!=null||g.yAxis!=null)){var S,E;if(g.yAxis!=null||g.xAxis!=null)S=c.getAxis(g.yAxis!=null?"y":"x"),E=y.retrieve(g.yAxis,g.xAxis);else{var C=v.getAxisInfo(g,A,c,a);S=C.valueAxis;var _=u(A,C.valueDataDim);E=v.numCalculate(A,_,b)}var T=S.dim==="x"?0:1,w=1-T,O=y.clone(g),I={};O.type=null,O.coord=[],I.coord=[],O.coord[w]=-Infinity,I.coord[w]=Infinity;var R=h.get("precision");R>=0&&typeof E=="number"&&(E=+E.toFixed(Math.min(R,20))),O.coord[T]=I.coord[T]=E,g=[O,I,{type:b,valueIndex:g.valueIndex,value:E}]}return g=[v.dataTransform(a,g[0]),v.dataTransform(a,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 i(a){return!isNaN(a)&&!isFinite(a)}function t(a,c,h,g){var A=1-a,b=g.dimensions[a];return i(c[A])&&i(h[A])&&c[a]===h[a]&&g.getAxis(b).containData(c[a])}function s(a,c){if(a.type==="cartesian2d"){var h=c[0].coord,g=c[1].coord;if(h&&g&&(t(1,h,g,a)||t(0,h,g,a)))return!0}return v.dataFilter(a,c[0])&&v.dataFilter(a,c[1])}function e(a,c,h,g,A){var b=g.coordinateSystem,S=a.getItemModel(c),E,C=x.parsePercent(S.get("x"),A.getWidth()),_=x.parsePercent(S.get("y"),A.getHeight());if(!isNaN(C)&&!isNaN(_))E=[C,_];else{if(g.getMarkerPosition)E=g.getMarkerPosition(a.getValues(a.dimensions,c));else{var T=b.dimensions,w=a.get(T[0],c),O=a.get(T[1],c);E=b.dataToPoint([w,O])}if(b.type==="cartesian2d"){var I=b.getAxis("x"),R=b.getAxis("y"),T=b.dimensions;i(a.get(T[0],c))?E[0]=I.toGlobalCoord(I.getExtent()[h?0:1]):i(a.get(T[1],c))&&(E[1]=R.toGlobalCoord(R.getExtent()[h?0:1]))}isNaN(C)||(E[0]=C),isNaN(_)||(E[1]=_)}a.setItemLayout(c,E)}var l=f.extend({type:"markLine",updateTransform:function(a,c,h){c.eachSeries(function(g){var A=g.markLineModel;if(A){var b=A.getData(),S=A.__from,E=A.__to;S.each(function(C){e(S,C,!0,g,h),e(E,C,!1,g,h)}),b.each(function(C){b.setItemLayout(C,[S.getItemLayout(C),E.getItemLayout(C)])}),this.markerGroupMap.get(g.id).updateLayout()}},this)},renderSeries:function(a,c,h,g){var A=a.coordinateSystem,b=a.id,S=a.getData(),E=this.markerGroupMap,C=E.get(b)||E.set(b,new m);this.group.add(C.group);var _=r(A,a,c),T=_.from,w=_.to,O=_.line;c.__from=T,c.__to=w,c.setData(O);var I=c.get("symbol"),R=c.get("symbolSize");y.isArray(I)||(I=[I,I]),typeof R=="number"&&(R=[R,R]),_.from.each(function(B){M(T,B,!0),M(w,B,!1)}),O.each(function(B){var P=O.getItemModel(B).get("lineStyle.color");O.setItemVisual(B,{color:P||T.getItemVisual(B,"color")}),O.setItemLayout(B,[T.getItemLayout(B),w.getItemLayout(B)]),O.setItemVisual(B,{fromSymbolSize:T.getItemVisual(B,"symbolSize"),fromSymbol:T.getItemVisual(B,"symbol"),toSymbolSize:w.getItemVisual(B,"symbolSize"),toSymbol:w.getItemVisual(B,"symbol")})}),C.updateData(O),_.line.eachItemGraphicEl(function(B,P){B.traverse(function(X){X.dataModel=c})});function M(B,P,X){var F=B.getItemModel(P);e(B,P,X,a,g),B.setItemVisual(P,{symbolSize:F.get("symbolSize")||R[X?0:1],symbol:F.get("symbol",!0)||I[X?0:1],color:F.get("itemStyle.color")||S.getVisual("color")})}C.__keep=!0,C.group.silent=c.get("silent")||a.get("silent")}});function r(a,c,h){var g;a?g=y.map(a&&a.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),S=new p([],h),E=y.map(h.get("data"),y.curry(o,c,a,h));a&&(E=y.filter(E,y.curry(s,a)));var C=a?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),S.initData(y.map(E,function(_){return _[2]})),S.hasItemOption=!0,{from:A,to:b,line:S}}k.exports=l},MHoB:function(k,D,n){var y=n("bYtY"),p=n("6uqw"),x=n("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(u,o){m.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){m.superApply(this,"resetItemSize",arguments);var u=this.itemSize;this._orient==="horizontal"&&u.reverse(),(u[0]==null||isNaN(u[0]))&&(u[0]=v[0]),(u[1]==null||isNaN(u[1]))&&(u[1]=v[1])},_resetRange:function(){var u=this.getExtent(),o=this.option.range;!o||o.auto?(u.auto=1,this.option.range=u):y.isArray(o)&&(o[0]>o[1]&&o.reverse(),o[0]=Math.max(o[0],u[0]),o[1]=Math.min(o[1],u[1]))},completeVisualOption:function(){p.prototype.completeVisualOption.apply(this,arguments),y.each(this.stateList,function(u){var o=this.option.controller[u].symbolSize;o&&o[0]!==o[1]&&(o[0]=0)},this)},setSelected:function(u){this.option.range=u.slice(),this._resetRange()},getSelected:function(){var u=this.getExtent(),o=x.asc((this.get("range")||[]).slice());return o[0]>u[1]&&(o[0]=u[1]),o[1]>u[1]&&(o[1]=u[1]),o[0]<u[0]&&(o[0]=u[0]),o[1]<u[0]&&(o[1]=u[0]),o},getValueState:function(u){var o=this.option.range,i=this.getExtent();return(o[0]<=i[0]||o[0]<=u)&&(o[1]>=i[1]||u<=o[1])?"inRange":"outOfRange"},findTargetDataIndices:function(u){var o=[];return this.eachTargetSeries(function(i){var t=[],s=i.getData();s.each(this.getDataDimension(s),function(e,l){u[0]<=e&&e<=u[1]&&t.push(l)},this),o.push({seriesId:i.id,dataIndex:t})},this),o},getVisualMeta:function(u){var o=f(this,"outOfRange",this.getExtent()),i=f(this,"inRange",this.option.range.slice()),t=[];function s(g,A){t.push({value:g,color:u(g,A)})}for(var e=0,l=0,r=i.length,a=o.length;l<a&&(!i.length||o[l]<=i[0]);l++)o[l]<i[e]&&s(o[l],"outOfRange");for(var c=1;e<r;e++,c=0)c&&t.length&&s(i[e],"outOfRange"),s(i[e],"inRange");for(var c=1;l<a;l++)(!i.length||i[i.length-1]<o[l])&&(c&&(t.length&&s(t[t.length-1].value,"outOfRange"),c=0),s(o[l],"outOfRange"));var h=t.length;return{stops:t,outerColors:[h?t[0].color:"transparent",h?t[h-1].color:"transparent"]}}});function f(u,o,i){if(i[0]===i[1])return i.slice();for(var t=200,s=(i[1]-i[0])/t,e=i[0],l=[],r=0;r<=t&&e<i[1];r++)l.push(e),e+=s;return l.push(i[1]),l}var d=m;k.exports=d},MHtr:function(k,D,n){var y=n("bYtY");function p(v,m){var f=this.getAxis(),d=m instanceof Array?m[0]:m,u=(v instanceof Array?v[0]:v)/2;return f.type==="category"?f.getBandWidth():Math.abs(f.dataToCoord(d-u)-f.dataToCoord(d+u))}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)}}}k.exports=x},MJZm:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),v=n.n(x),m=n("q1tI"),f=n("rePB"),d=n("VTBJ"),u=n("KQm4"),o=n("1OyB"),i=n("vuIU"),t=n("Ji7U"),s=n("LK+K"),e=n("4IlW"),l=n("Kwbf"),r=n("TSYQ"),a=n.n(r),c=n("FTAc"),h=n("wPhX"),g=n("c3jg"),A=n("ODXe"),b=n("Ff2n"),S=n("+nKL"),E=n("HTfv"),C=n("lr6o"),_=function(Pt,Wt){var Ge=Pt.className,pe=Pt.style,se=Pt.motion,lt=Pt.motionNodes,qe=Pt.motionType,me=Pt.onMotionStart,Ht=Pt.onMotionEnd,yr=Pt.active,At=Pt.treeNodeRequiredProps,rr=Object(b.a)(Pt,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),ur=m.useState(!0),vn=Object(A.a)(ur,2),Bt=vn[0],sr=vn[1],Yt=m.useContext(c.a),pt=Yt.prefixCls,it=m.useRef(!1),Fr=function(){it.current||Ht(),it.current=!0};return Object(m.useEffect)(function(){lt&&qe==="hide"&&Bt&&sr(!1)},[lt]),Object(m.useEffect)(function(){return lt&&me(),function(){lt&&Fr()}},[]),lt?m.createElement(E.default,Object.assign({ref:Wt,visible:Bt},se,{motionAppear:qe==="show",onAppearEnd:Fr,onLeaveEnd:Fr}),function(cn,_n){var Kn=cn.className,gi=cn.style;return m.createElement("div",{ref:_n,className:a()("".concat(pt,"-treenode-motion"),Kn),style:gi},lt.map(function(Mn){var Un=Mn.data,$t=Un.key,Ct=Object(b.a)(Un,["key"]),Re=Mn.isStart,De=Mn.isEnd;delete Ct.children;var Pe=Object(g.f)($t,At);return m.createElement(C.a,Object.assign({},Ct,Pe,{active:yr,data:Mn.data,key:$t,isStart:Re,isEnd:De}))}))}):m.createElement(C.a,Object.assign({domRef:Wt,className:Ge,style:pe},rr,{active:yr}))};_.displayName="MotionTreeNode";var T=m.forwardRef(_),w=T;function O(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Wt=Jt.length,Ge=Pt.length;if(Math.abs(Wt-Ge)!==1)return{add:!1,key:null};function pe(se,lt){var qe=new Map;se.forEach(function(Ht){qe.set(Ht,!0)});var me=lt.filter(function(Ht){return!qe.has(Ht)});return me.length===1?me[0]:null}return Wt<Ge?{add:!0,key:pe(Jt,Pt)}:{add:!1,key:pe(Pt,Jt)}}function I(Jt,Pt,Wt){var Ge=Jt.findIndex(function(qe){var me=qe.data;return me.key===Wt}),pe=Jt[Ge+1],se=Pt.findIndex(function(qe){var me=qe.data;return me.key===Wt});if(pe){var lt=Pt.findIndex(function(qe){var me=qe.data;return me.key===pe.data.key});return Pt.slice(se+1,lt)}return Pt.slice(se+1)}var R={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},M=function(){},B="RC_TREE_MOTION_".concat(Math.random()),P={key:B},X={key:B,level:0,index:0,pos:"0",node:P},F={parent:null,children:[],pos:X.pos,data:P,isStart:[],isEnd:[]};function j(Jt,Pt,Wt,Ge){return Pt===!1||!Wt?Jt:Jt.slice(0,Math.ceil(Wt/Ge)+1)}function K(Jt){var Pt=Jt.data.key,Wt=Jt.pos;return Object(g.e)(Pt,Wt)}function z(Jt){for(var Pt=String(Jt.data.key),Wt=Jt;Wt.parent;)Wt=Wt.parent,Pt="".concat(Wt.data.key," > ").concat(Pt);return Pt}var V=function(Pt,Wt){var Ge=Pt.prefixCls,pe=Pt.data,se=Pt.selectable,lt=Pt.checkable,qe=Pt.expandedKeys,me=Pt.selectedKeys,Ht=Pt.checkedKeys,yr=Pt.loadedKeys,At=Pt.loadingKeys,rr=Pt.halfCheckedKeys,ur=Pt.keyEntities,vn=Pt.disabled,Bt=Pt.dragging,sr=Pt.dragOverNodeKey,Yt=Pt.dropPosition,pt=Pt.motion,it=Pt.height,Fr=Pt.itemHeight,cn=Pt.virtual,_n=Pt.focusable,Kn=Pt.activeItem,gi=Pt.focused,Mn=Pt.tabIndex,Un=Pt.onKeyDown,$t=Pt.onFocus,Ct=Pt.onBlur,Re=Pt.onActiveChange,De=Pt.onListChangeStart,Pe=Pt.onListChangeEnd,et=Object(b.a)(Pt,["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(Wt,function(){return{scrollTo:function(Hi){yt.current.scrollTo(Hi)}}});var St=m.useState(qe),Vt=Object(A.a)(St,2),Rr=Vt[0],Vr=Vt[1],hn=m.useState(pe),Ft=Object(A.a)(hn,2),vt=Ft[0],bt=Ft[1],fr=m.useState(pe),Qt=Object(A.a)(fr,2),Mt=Qt[0],qt=Qt[1],kt=m.useState([]),er=Object(A.a)(kt,2),Kr=er[0],Ir=er[1],Dr=m.useState(null),dn=Object(A.a)(Dr,2),yn=dn[0],ti=dn[1];function ei(){bt(pe),qt(pe),Ir([]),ti(null),Pe()}m.useEffect(function(){Vr(qe);var Di=O(Rr,qe);if(Di.key!==null)if(Di.add){var Hi=vt.findIndex(function(Ze){var st=Ze.data.key;return st===Di.key}),nt=j(I(vt,pe,Di.key),cn,it,Fr),Le=vt.slice();Le.splice(Hi+1,0,F),qt(Le),Ir(nt),ti("show")}else{var je=pe.findIndex(function(Ze){var st=Ze.data.key;return st===Di.key}),Xe=j(I(pe,vt,Di.key),cn,it,Fr),tt=pe.slice();tt.splice(je+1,0,F),qt(tt),Ir(Xe),ti("hide")}else vt!==pe&&(bt(pe),qt(pe))},[qe,pe]),m.useEffect(function(){Bt||ei()},[Bt]);var fi=pt?Mt:pe,Ei={expandedKeys:qe,selectedKeys:me,loadedKeys:yr,loadingKeys:At,checkedKeys:Ht,halfCheckedKeys:rr,dragOverNodeKey:sr,dropPosition:Yt,keyEntities:ur};return m.createElement(m.Fragment,null,gi&&Kn&&m.createElement("span",{style:R,"aria-live":"assertive"},z(Kn)),m.createElement("div",{role:"tree"},m.createElement("input",{style:R,disabled:_n===!1||vn,tabIndex:_n!==!1?Mn:null,onKeyDown:Un,onFocus:$t,onBlur:Ct,value:"",onChange:M})),m.createElement(S.a,Object.assign({},et,{data:fi,itemKey:K,height:it,fullHeight:!1,virtual:cn,itemHeight:Fr,prefixCls:"".concat(Ge,"-list"),ref:yt}),function(Di){var Hi=Di.pos,nt=Di.data,Le=nt.key,je=Object(b.a)(nt,["key"]),Xe=Di.isStart,tt=Di.isEnd,Ze=Object(g.e)(Le,Hi);delete je.children;var st=Object(g.f)(Ze,Ei);return m.createElement(w,Object.assign({},je,st,{active:Kn&&Le===Kn.data.key,pos:Hi,data:Di.data,isStart:Xe,isEnd:tt,motion:pt,motionNodes:Le===B?Kr:null,motionType:yn,onMotionStart:De,onMotionEnd:ei,treeNodeRequiredProps:Ei,onMouseMove:function(){Re(null)}}))}))},Q=m.forwardRef(V);Q.displayName="NodeList";var G=Q,te=n("qOx5"),q=function(Jt){Object(t.a)(Wt,Jt);var Pt=Object(s.a)(Wt);function Wt(){var Ge;return Object(o.a)(this,Wt),Ge=Pt.apply(this,arguments),Ge.destroyed=!1,Ge.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},Ge.listRef=m.createRef(),Ge.onNodeDragStart=function(pe,se){var lt=Ge.state,qe=lt.expandedKeys,me=lt.keyEntities,Ht=Ge.props.onDragStart,yr=se.props.eventKey;Ge.dragNode=se;var At=Object(h.b)(qe,yr);Ge.setState({dragging:!0,dragNodesKeys:Object(h.g)(yr,me)}),Ge.setExpandedKeys(At),Ht&&Ht({event:pe,node:Object(g.b)(se.props)})},Ge.onNodeDragEnter=function(pe,se){var lt=Ge.state,qe=lt.expandedKeys,me=lt.keyEntities,Ht=lt.dragNodesKeys,yr=Ge.props.onDragEnter,At=se.props,rr=At.pos,ur=At.eventKey;if(!Ge.dragNode||Ht.indexOf(ur)!==-1)return;var vn=Object(h.c)(pe,se);if(Ge.dragNode.props.eventKey===ur&&vn===0){Ge.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){Ge.setState({dragOverNodeKey:ur,dropPosition:vn}),Ge.delayedDragEnterLogic||(Ge.delayedDragEnterLogic={}),Object.keys(Ge.delayedDragEnterLogic).forEach(function(Bt){clearTimeout(Ge.delayedDragEnterLogic[Bt])}),Ge.delayedDragEnterLogic[rr]=window.setTimeout(function(){if(!Ge.state.dragging)return;var Bt=Object(u.a)(qe),sr=me[ur];sr&&(sr.children||[]).length&&(Bt=Object(h.a)(qe,ur)),"expandedKeys"in Ge.props||Ge.setExpandedKeys(Bt),yr&&yr({event:pe,node:Object(g.b)(se.props),expandedKeys:Bt})},400)},0)},Ge.onNodeDragOver=function(pe,se){var lt=Ge.state.dragNodesKeys,qe=Ge.props.onDragOver,me=se.props.eventKey;if(lt.indexOf(me)!==-1)return;if(Ge.dragNode&&me===Ge.state.dragOverNodeKey){var Ht=Object(h.c)(pe,se);if(Ht===Ge.state.dropPosition)return;Ge.setState({dropPosition:Ht})}qe&&qe({event:pe,node:Object(g.b)(se.props)})},Ge.onNodeDragLeave=function(pe,se){var lt=Ge.props.onDragLeave;Ge.setState({dragOverNodeKey:""}),lt&&lt({event:pe,node:Object(g.b)(se.props)})},Ge.onNodeDragEnd=function(pe,se){var lt=Ge.props.onDragEnd;Ge.setState({dragOverNodeKey:""}),Ge.cleanDragState(),lt&&lt({event:pe,node:Object(g.b)(se.props)}),Ge.dragNode=null},Ge.onNodeDrop=function(pe,se){var lt=Ge.state,qe=lt.dragNodesKeys,me=qe===void 0?[]:qe,Ht=lt.dropPosition,yr=Ge.props.onDrop,At=se.props,rr=At.eventKey,ur=At.pos;if(Ge.setState({dragOverNodeKey:""}),Ge.cleanDragState(),me.indexOf(rr)!==-1){Object(l.a)(!1,"Can not drop to dragNode(include it's children node)");return}var vn=Object(h.k)(ur),Bt={event:pe,node:Object(g.b)(se.props),dragNode:Ge.dragNode?Object(g.b)(Ge.dragNode.props):null,dragNodesKeys:me.slice(),dropPosition:Ht+Number(vn[vn.length-1]),dropToGap:!1};Ht!==0&&(Bt.dropToGap=!0),yr&&yr(Bt),Ge.dragNode=null},Ge.cleanDragState=function(){var pe=Ge.state.dragging;pe&&Ge.setState({dragging:!1})},Ge.onNodeClick=function(pe,se){var lt=Ge.props.onClick;lt&&lt(pe,se)},Ge.onNodeDoubleClick=function(pe,se){var lt=Ge.props.onDoubleClick;lt&&lt(pe,se)},Ge.onNodeSelect=function(pe,se){var lt=Ge.state.selectedKeys,qe=Ge.state.keyEntities,me=Ge.props,Ht=me.onSelect,yr=me.multiple,At=se.selected,rr=se.key,ur=!At;ur?yr?lt=Object(h.a)(lt,rr):lt=[rr]:lt=Object(h.b)(lt,rr);var vn=lt.map(function(Bt){var sr=qe[Bt];return sr?sr.node:null}).filter(function(Bt){return Bt});Ge.setUncontrolledState({selectedKeys:lt}),Ht&&Ht(lt,{event:"select",selected:ur,node:se,selectedNodes:vn,nativeEvent:pe.nativeEvent})},Ge.onNodeCheck=function(pe,se,lt){var qe=Ge.state,me=qe.keyEntities,Ht=qe.checkedKeys,yr=qe.halfCheckedKeys,At=Ge.props,rr=At.checkStrictly,ur=At.onCheck,vn=se.key,Bt,sr={event:"check",node:se,checked:lt,nativeEvent:pe.nativeEvent};if(rr){var Yt=lt?Object(h.a)(Ht,vn):Object(h.b)(Ht,vn),pt=Object(h.b)(yr,vn);Bt={checked:Yt,halfChecked:pt},sr.checkedNodes=Yt.map(function(gi){return me[gi]}).filter(function(gi){return gi}).map(function(gi){return gi.node}),Ge.setUncontrolledState({checkedKeys:Yt})}else{var it=Object(te.a)([].concat(Object(u.a)(Ht),[vn]),!0,me),Fr=it.checkedKeys,cn=it.halfCheckedKeys;if(!lt){var _n=new Set(Fr);_n.delete(vn);var Kn=Object(te.a)(Array.from(_n),{checked:!1,halfCheckedKeys:cn},me);Fr=Kn.checkedKeys,cn=Kn.halfCheckedKeys}Bt=Fr,sr.checkedNodes=[],sr.checkedNodesPositions=[],sr.halfCheckedKeys=cn,Fr.forEach(function(gi){var Mn=me[gi];if(!Mn)return;var Un=Mn.node,$t=Mn.pos;sr.checkedNodes.push(Un),sr.checkedNodesPositions.push({node:Un,pos:$t})}),Ge.setUncontrolledState({checkedKeys:Fr},!1,{halfCheckedKeys:cn})}ur&&ur(Bt,sr)},Ge.onNodeLoad=function(pe){return new Promise(function(se){Ge.setState(function(lt){var qe=lt.loadedKeys,me=qe===void 0?[]:qe,Ht=lt.loadingKeys,yr=Ht===void 0?[]:Ht,At=Ge.props,rr=At.loadData,ur=At.onLoad,vn=pe.key;if(!rr||me.indexOf(vn)!==-1||yr.indexOf(vn)!==-1)return{};var Bt=rr(pe);return Bt.then(function(){var sr=Ge.state,Yt=sr.loadedKeys,pt=sr.loadingKeys,it=Object(h.a)(Yt,vn),Fr=Object(h.b)(pt,vn);ur&&ur(it,{event:"load",node:pe}),Ge.setUncontrolledState({loadedKeys:it}),Ge.setState({loadingKeys:Fr}),se()}),{loadingKeys:Object(h.a)(yr,vn)}})})},Ge.onNodeMouseEnter=function(pe,se){var lt=Ge.props.onMouseEnter;lt&&lt({event:pe,node:se})},Ge.onNodeMouseLeave=function(pe,se){var lt=Ge.props.onMouseLeave;lt&&lt({event:pe,node:se})},Ge.onNodeContextMenu=function(pe,se){var lt=Ge.props.onRightClick;lt&&(pe.preventDefault(),lt({event:pe,node:se}))},Ge.onFocus=function(){var pe=Ge.props.onFocus;Ge.setState({focused:!0}),pe&&pe.apply(void 0,arguments)},Ge.onBlur=function(){var pe=Ge.props.onBlur;Ge.setState({focused:!1}),Ge.onActiveChange(null),pe&&pe.apply(void 0,arguments)},Ge.getTreeNodeRequiredProps=function(){var pe=Ge.state,se=pe.expandedKeys,lt=pe.selectedKeys,qe=pe.loadedKeys,me=pe.loadingKeys,Ht=pe.checkedKeys,yr=pe.halfCheckedKeys,At=pe.dragOverNodeKey,rr=pe.dropPosition,ur=pe.keyEntities;return{expandedKeys:se||[],selectedKeys:lt||[],loadedKeys:qe||[],loadingKeys:me||[],checkedKeys:Ht||[],halfCheckedKeys:yr||[],dragOverNodeKey:At,dropPosition:rr,keyEntities:ur}},Ge.setExpandedKeys=function(pe){var se=Ge.state.treeData,lt=Object(g.d)(se,pe);Ge.setUncontrolledState({expandedKeys:pe,flattenNodes:lt},!0)},Ge.onNodeExpand=function(pe,se){var lt=Ge.state.expandedKeys,qe=Ge.state.listChanging,me=Ge.props,Ht=me.onExpand,yr=me.loadData,At=se.key,rr=se.expanded;if(qe)return;var ur=lt.indexOf(At),vn=!rr;if(Object(l.a)(rr&&ur!==-1||!rr&&ur===-1,"Expand state not sync with index check"),vn?lt=Object(h.a)(lt,At):lt=Object(h.b)(lt,At),Ge.setExpandedKeys(lt),Ht&&Ht(lt,{node:se,expanded:vn,nativeEvent:pe.nativeEvent}),vn&&yr){var Bt=Ge.onNodeLoad(se);Bt&&Bt.then(function(){var sr=Object(g.d)(Ge.state.treeData,lt);Ge.setUncontrolledState({flattenNodes:sr})})}},Ge.onListChangeStart=function(){Ge.setUncontrolledState({listChanging:!0})},Ge.onListChangeEnd=function(){setTimeout(function(){Ge.setUncontrolledState({listChanging:!1})})},Ge.onActiveChange=function(pe){var se=Ge.state.activeKey,lt=Ge.props.onActiveChange;if(se===pe)return;Ge.setState({activeKey:pe}),pe!==null&&Ge.scrollTo({key:pe}),lt&&lt(pe)},Ge.getActiveItem=function(){var pe=Ge.state,se=pe.activeKey,lt=pe.flattenNodes;return se===null?null:lt.find(function(qe){var me=qe.data.key;return me===se})||null},Ge.offsetActiveKey=function(pe){var se=Ge.state,lt=se.flattenNodes,qe=se.activeKey,me=lt.findIndex(function(At){var rr=At.data.key;return rr===qe});me===-1&&pe<0&&(me=lt.length),me=(me+pe+lt.length)%lt.length;var Ht=lt[me];if(Ht){var yr=Ht.data.key;Ge.onActiveChange(yr)}else Ge.onActiveChange(null)},Ge.onKeyDown=function(pe){var se=Ge.state,lt=se.activeKey,qe=se.expandedKeys,me=se.checkedKeys,Ht=Ge.props,yr=Ht.onKeyDown,At=Ht.checkable,rr=Ht.selectable;switch(pe.which){case e.a.UP:{Ge.offsetActiveKey(-1),pe.preventDefault();break}case e.a.DOWN:{Ge.offsetActiveKey(1),pe.preventDefault();break}}var ur=Ge.getActiveItem();if(ur&&ur.data){var vn=Ge.getTreeNodeRequiredProps(),Bt=ur.data.isLeaf===!1||!!(ur.data.children||[]).length,sr=Object(g.b)(Object(d.a)(Object(d.a)({},Object(g.f)(lt,vn)),{},{data:ur.data,active:!0}));switch(pe.which){case e.a.LEFT:{Bt&&qe.includes(lt)?Ge.onNodeExpand({},sr):ur.parent&&Ge.onActiveChange(ur.parent.data.key),pe.preventDefault();break}case e.a.RIGHT:{Bt&&!qe.includes(lt)?Ge.onNodeExpand({},sr):ur.children&&ur.children.length&&Ge.onActiveChange(ur.children[0].data.key),pe.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{At&&!sr.disabled&&sr.checkable!==!1&&!sr.disableCheckbox?Ge.onNodeCheck({},sr,!me.includes(lt)):!At&&rr&&!sr.disabled&&sr.selectable!==!1&&Ge.onNodeSelect({},sr);break}}}yr&&yr(pe)},Ge.setUncontrolledState=function(pe){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Ge.destroyed)return;var qe=!1,me=!0,Ht={};Object.keys(pe).forEach(function(yr){if(yr in Ge.props){me=!1;return}qe=!0,Ht[yr]=pe[yr]}),qe&&(!se||me)&&Ge.setState(Object(d.a)(Object(d.a)({},Ht),lt))},Ge.scrollTo=function(pe){Ge.listRef.current.scrollTo(pe)},Ge}return Object(i.a)(Wt,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var pe,se=this.state,lt=se.focused,qe=se.flattenNodes,me=se.keyEntities,Ht=se.dragging,yr=se.activeKey,At=this.props,rr=At.prefixCls,ur=At.className,vn=At.style,Bt=At.showLine,sr=At.focusable,Yt=At.tabIndex,pt=Yt===void 0?0:Yt,it=At.selectable,Fr=At.showIcon,cn=At.icon,_n=At.switcherIcon,Kn=At.draggable,gi=At.checkable,Mn=At.checkStrictly,Un=At.disabled,$t=At.motion,Ct=At.loadData,Re=At.filterTreeNode,De=At.height,Pe=At.itemHeight,et=At.virtual,yt=At.titleRender,St=At.onContextMenu,Vt=Object(h.f)(this.props);return m.createElement(c.a.Provider,{value:{prefixCls:rr,selectable:it,showIcon:Fr,icon:cn,switcherIcon:_n,draggable:Kn,checkable:gi,checkStrictly:Mn,disabled:Un,keyEntities:me,loadData:Ct,filterTreeNode:Re,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:a()(rr,ur,(pe={},Object(f.a)(pe,"".concat(rr,"-show-line"),Bt),Object(f.a)(pe,"".concat(rr,"-focused"),lt),Object(f.a)(pe,"".concat(rr,"-active-focused"),yr!==null),pe))},m.createElement(G,Object.assign({ref:this.listRef,prefixCls:rr,style:vn,data:qe,disabled:Un,selectable:it,checkable:!!gi,motion:$t,dragging:Ht,height:De,itemHeight:Pe,virtual:et,focusable:sr,focused:lt,tabIndex:pt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:St},this.getTreeNodeRequiredProps(),Vt))))}}],[{key:"getDerivedStateFromProps",value:function(pe,se){var lt=se.prevProps,qe={prevProps:pe};function me(cn){return!lt&&cn in pe||lt&&lt[cn]!==pe[cn]}var Ht;if(me("treeData")?Ht=pe.treeData:me("children")&&(Object(l.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ht=Object(g.c)(pe.children)),Ht){qe.treeData=Ht;var yr=Object(g.a)(Ht);qe.keyEntities=Object(d.a)(Object(f.a)({},B,X),yr.keyEntities)}var At=qe.keyEntities||se.keyEntities;if(me("expandedKeys")||lt&&me("autoExpandParent"))qe.expandedKeys=pe.autoExpandParent||!lt&&pe.defaultExpandParent?Object(h.e)(pe.expandedKeys,At):pe.expandedKeys;else if(!lt&&pe.defaultExpandAll){var rr=Object(d.a)({},At);delete rr[B],qe.expandedKeys=Object.keys(rr).map(function(cn){return rr[cn].key})}else!lt&&pe.defaultExpandedKeys&&(qe.expandedKeys=pe.autoExpandParent||pe.defaultExpandParent?Object(h.e)(pe.defaultExpandedKeys,At):pe.defaultExpandedKeys);if(qe.expandedKeys||delete qe.expandedKeys,Ht||qe.expandedKeys){var ur=Object(g.d)(Ht||se.treeData,qe.expandedKeys||se.expandedKeys);qe.flattenNodes=ur}if(pe.selectable&&(me("selectedKeys")?qe.selectedKeys=Object(h.d)(pe.selectedKeys,pe):!lt&&pe.defaultSelectedKeys&&(qe.selectedKeys=Object(h.d)(pe.defaultSelectedKeys,pe))),pe.checkable){var vn;if(me("checkedKeys")?vn=Object(h.j)(pe.checkedKeys)||{}:!lt&&pe.defaultCheckedKeys?vn=Object(h.j)(pe.defaultCheckedKeys)||{}:Ht&&(vn=Object(h.j)(pe.checkedKeys)||{checkedKeys:se.checkedKeys,halfCheckedKeys:se.halfCheckedKeys}),vn){var Bt=vn,sr=Bt.checkedKeys,Yt=sr===void 0?[]:sr,pt=Bt.halfCheckedKeys,it=pt===void 0?[]:pt;if(!pe.checkStrictly){var Fr=Object(te.a)(Yt,!0,At);Yt=Fr.checkedKeys,it=Fr.halfCheckedKeys}qe.checkedKeys=Yt,qe.halfCheckedKeys=it}}return me("loadedKeys")&&(qe.loadedKeys=pe.loadedKeys),qe}}]),Wt}(m.Component);q.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},q.TreeNode=C.a;var le=q,re=le,we=n("RIqP"),Ie=n.n(we),Me=n("J4zp"),Je=n.n(Me),Ve=n("sEfC"),ut=n.n(Ve),Fe=n("vk+C"),ae=n.n(Fe),at=n("Vy0f"),he=n.n(at),J=n("kGiB"),Y=n.n(J),$=n("H84U"),de;(function(Jt){Jt[Jt.None=0]="None",Jt[Jt.Start=1]="Start",Jt[Jt.End=2]="End"})(de||(de={}));function be(Jt,Pt){function Wt(Ge){var pe=Ge.key,se=Ge.children;Pt(pe,Ge)!==!1&&be(se||[],Pt)}Jt.forEach(Wt)}function Ce(Jt){var Pt=Jt.treeData,Wt=Jt.expandedKeys,Ge=Jt.startKey,pe=Jt.endKey,se=[],lt=de.None;if(Ge&&Ge===pe)return[Ge];if(!Ge||!pe)return[];function qe(me){return me===Ge||me===pe}return be(Pt,function(me){if(lt===de.End)return!1;if(qe(me)){if(se.push(me),lt===de.None)lt=de.Start;else if(lt===de.Start)return lt=de.End,!1}else lt===de.Start&&se.push(me);return!(Wt.indexOf(me)===-1)}),se}function Be(Jt,Pt){var Wt=Ie()(Pt),Ge=[];return be(Jt,function(pe,se){var lt=Wt.indexOf(pe);return lt!==-1&&(Ge.push(se),Wt.splice(lt,1)),!!Wt.length}),Ge}var fe=function(Jt,Pt){var Wt={};for(var Ge in Jt)Object.prototype.hasOwnProperty.call(Jt,Ge)&&Pt.indexOf(Ge)<0&&(Wt[Ge]=Jt[Ge]);if(Jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Ge=Object.getOwnPropertySymbols(Jt);pe<Ge.length;pe++)Pt.indexOf(Ge[pe])<0&&Object.prototype.propertyIsEnumerable.call(Jt,Ge[pe])&&(Wt[Ge[pe]]=Jt[Ge[pe]]);return Wt};function Se(Jt){var Pt=Jt.isLeaf,Wt=Jt.expanded;return Pt?m.createElement(ae.a,null):Wt?m.createElement(he.a,null):m.createElement(Y.a,null)}function ke(Jt){var Pt=Jt.treeData,Wt=Jt.children;return Pt||Object(g.c)(Wt)}var rt=function(Pt,Wt){var Ge=Pt.defaultExpandAll,pe=Pt.defaultExpandParent,se=Pt.defaultExpandedKeys,lt=fe(Pt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),qe=m.useRef(),me=m.useRef(),Ht=m.createRef();m.useImperativeHandle(Wt,function(){return Ht.current});var yr=function(){var St=Object(g.a)(ke(lt)),Vt=St.keyEntities,Rr;return Ge?Rr=Object.keys(Vt):pe?Rr=Object(h.e)(lt.expandedKeys||se,Vt):Rr=lt.expandedKeys||se,Rr},At=m.useState(lt.selectedKeys||lt.defaultSelectedKeys||[]),rr=Je()(At,2),ur=rr[0],vn=rr[1],Bt=m.useState(yr()),sr=Je()(Bt,2),Yt=sr[0],pt=sr[1];m.useEffect(function(){"selectedKeys"in lt&&vn(lt.selectedKeys)},[lt.selectedKeys]),m.useEffect(function(){"expandedKeys"in lt&&pt(lt.expandedKeys)},[lt.expandedKeys]);var it=function(St,Vt){var Rr=Vt.isLeaf;if(Rr||St.shiftKey||St.metaKey||St.ctrlKey)return;Ht.current.onNodeExpand(St,Vt)},Fr=ut()(it,200,{leading:!0}),cn=function(St,Vt){return"expandedKeys"in lt||pt(St),lt.onExpand?lt.onExpand(St,Vt):void 0},_n=function(St,Vt){var Rr=lt.expandAction;Rr==="click"&&Fr(St,Vt),lt.onClick&&lt.onClick(St,Vt)},Kn=function(St,Vt){var Rr=lt.expandAction;Rr==="doubleClick"&&Fr(St,Vt),lt.onDoubleClick&&lt.onDoubleClick(St,Vt)},gi=function(St,Vt){var Rr=lt.multiple,Vr=Vt.node,hn=Vt.nativeEvent,Ft=Vr.key,vt=Ft===void 0?"":Ft,bt=ke(lt),fr=v()(v()({},Vt),{selected:!0}),Qt=hn.ctrlKey||hn.metaKey,Mt=hn.shiftKey,qt;Rr&&Qt?(qt=St,qe.current=vt,me.current=qt,fr.selectedNodes=Be(bt,qt)):Rr&&Mt?(qt=Array.from(new Set([].concat(Ie()(me.current||[]),Ie()(Ce({treeData:bt,expandedKeys:Yt,startKey:vt,endKey:qe.current}))))),fr.selectedNodes=Be(bt,qt)):(qt=[vt],qe.current=vt,me.current=qt,fr.selectedNodes=Be(bt,qt)),lt.onSelect&&lt.onSelect(qt,fr),"selectedKeys"in lt||vn(qt)},Mn=m.useContext($.b),Un=Mn.getPrefixCls,$t=Mn.direction,Ct=lt.prefixCls,Re=lt.className,De=fe(lt,["prefixCls","className"]),Pe=Un("tree",Ct),et=a()("".concat(Pe,"-directory"),Re,p()({},"".concat(Pe,"-directory-rtl"),$t==="rtl"));return m.createElement(Xt,v()({icon:Se,ref:Ht,blockNode:!0},De,{prefixCls:Pe,className:et,expandedKeys:Yt,selectedKeys:ur,onSelect:gi,onClick:_n,onDoubleClick:Kn,onExpand:cn}))},xt=m.forwardRef(rt);xt.displayName="DirectoryTree",xt.defaultProps={showIcon:!0,expandAction:"click"};var ht=xt,He=n("EXcs"),ir=n("2jpz"),ct=m.forwardRef(function(Jt,Pt){var Wt,Ge=m.useContext($.b),pe=Ge.getPrefixCls,se=Ge.direction,lt=Ge.virtual,qe=Jt.prefixCls,me=Jt.className,Ht=Jt.showIcon,yr=Jt.showLine,At=Jt.switcherIcon,rr=Jt.blockNode,ur=Jt.children,vn=Jt.checkable,Bt=v()(v()({},Jt),{showLine:Boolean(yr)}),sr=pe("tree",qe);return m.createElement(re,v()({itemHeight:20,ref:Pt,virtual:lt},Bt,{prefixCls:sr,className:a()(me,(Wt={},p()(Wt,"".concat(sr,"-icon-hide"),!Ht),p()(Wt,"".concat(sr,"-block-node"),rr),p()(Wt,"".concat(sr,"-rtl"),se==="rtl"),Wt)),checkable:vn&&m.createElement("span",{className:"".concat(sr,"-checkbox-inner")}),switcherIcon:function(pt){return Object(ir.a)(sr,At,yr,pt)}}),ur)});ct.TreeNode=C.a,ct.DirectoryTree=ht,ct.defaultProps={checkable:!1,showIcon:!1,motion:v()(v()({},He.a),{motionAppear:!1}),blockNode:!1};var Xt=ct,hr=D.a=Xt},MKOG:function(k,D,n){var y=n("bYtY"),p=n("YH21"),x=p.Dispatcher,v=n("mLcG"),m=n("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 i=o.getClips(),t=0;t<i.length;t++)this.addClip(i[t])},removeClip:function(o){var i=y.indexOf(this._clips,o);i>=0&&this._clips.splice(i,1)},removeAnimator:function(o){for(var i=o.getClips(),t=0;t<i.length;t++)this.removeClip(i[t]);o.animation=null},_update:function(){for(var o=new Date().getTime()-this._pausedTime,i=o-this._time,t=this._clips,s=t.length,e=[],l=[],r=0;r<s;r++){var a=t[r],c=a.step(o,i);c&&(e.push(c),l.push(a))}for(var r=0;r<s;)t[r]._needsRemove?(t[r]=t[s-1],t.pop(),s--):r++;s=e.length;for(var r=0;r<s;r++)l[r].fire(e[r]);this._time=o,this.onframe(i),this.trigger("frame",i),this.stage.update&&this.stage.update()},_startLoop:function(){var o=this;this._running=!0;function i(){o._running&&(v(i),!o._paused&&o._update())}v(i)},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(o,i){i=i||{};var t=new m(o,i.loop,i.getter,i.setter);return this.addAnimator(t),t}},y.mixin(f,x);var d=f;k.exports=d},MMmD:function(k,D,n){var y=n("lSCD"),p=n("shjB");function x(v){return v!=null&&p(v.length)&&!y(v)}k.exports=x},MRoa:function(k,D,n){var y=n("ProS");n("0Bwj"),n("W2nI"),n("vcCh");var p=n("gawk"),x=n("Dg8C");y.registerLayout(p),y.registerVisual(x)},MT78:function(k,D,n){var y=n("ProS");(function(){for(var x in y){if(y==null||!y.hasOwnProperty(x)||x==="default"||x==="__esModule")return;D[x]=y[x]}})();var p=n("txkQ");(function(){for(var x in p){if(p==null||!p.hasOwnProperty(x)||x==="default"||x==="__esModule")return;D[x]=p[x]}})(),n("A1Ka"),n("75ce"),n("lLGD"),n("wDdD"),n("Fa/5"),n("jett"),n("Z1wy"),n("75ev"),n("2uGb"),n("I+77"),n("B+YJ"),n("pLH3"),n("CBdT"),n("MRoa"),n("+lIL"),n("CF2D"),n("ERHi"),n("p+If"),n("XOKv"),n("qt/9"),n("bBL8"),n("1xaR"),n("4Feb"),n("zRKj"),n("L3Oj"),n("0HBW"),n("LPzL"),n("8waO"),n("k5C7"),n("f1nB"),n("sRwP"),n("AH3D"),n("y4/Y"),n("LzGr"),n("Ynxi"),n("7pVf"),n("2w7y"),n("laiN"),n("fjKi"),n("C0tN"),n("0o9m"),n("Cm0C"),n("f3JH"),n("5NHt"),n("VFCP"),n("dBmv"),n("KamJ"),n("8XDt"),n("juDX")},MUZu:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("ZxNd")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="EditOutlined";var i=v.forwardRef(o);D.default=i},MXD1:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("Kvyg"),v=n.n(x)},MZdM:function(k,D,n){"use strict";function y(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(r){return typeof r}:y=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},y(e)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=u(n("Lo0S")),x=f(n("N/zr")),v=n("GdRQ"),m=n("GQ8N");function f(e){return e&&e.__esModule?e:{default:e}}function d(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return d=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(e===null||y(e)!=="object"&&typeof e!="function")return{default:e};var l=d();if(l&&l.has(e))return l.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){var h=a?Object.getOwnPropertyDescriptor(e,c):null;h&&(h.get||h.set)?Object.defineProperty(r,c,h):r[c]=e[c]}return r.default=e,l&&l.set(e,r),r}function o(e,l){if(!(e instanceof l))throw new TypeError("Cannot call a class as a function")}function i(e,l){for(var r=0;r<l.length;r++){var a=l[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function t(e,l,r){return l&&i(e.prototype,l),r&&i(e,r),e}var s=function(){function e(l){if(o(this,e),this._drawCtx=null,this._renderQ=[],this._flushing=!1,this._fbWidth=0,this._fbHeight=0,this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tileX=0,this._tileY=0,p.Debug(">> Display.constructor"),this._target=l,!this._target)throw new Error("Target must be set");if(typeof this._target=="string")throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},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,a){var c=this._viewportLoc;r=Math.floor(r),a=Math.floor(a),this._clipViewport||(r=-c.w,a=-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+a<0&&(a=-c.y),g+a>=this._fbHeight&&(a-=g+a-this._fbHeight+1),r===0&&a===0)return;p.Debug("viewportChange deltaX: "+r+", deltaY: "+a),c.x+=r,c.y+=a,this._damage(c.x,c.y,c.w,c.h),this.flip()}},{key:"viewportChangeSize",value:function(r,a){(!this._clipViewport||typeof r=="undefined"||typeof a=="undefined")&&(p.Debug("Setting viewport to full display region"),r=this._fbWidth,a=this._fbHeight),r=Math.floor(r),a=Math.floor(a),r>this._fbWidth&&(r=this._fbWidth),a>this._fbHeight&&(a=this._fbHeight);var c=this._viewportLoc;if(c.w!==r||c.h!==a){c.w=r,c.h=a;var h=this._target;h.width=r,h.height=a,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,a){this._prevDrawStyle="",this._fbWidth=r,this._fbHeight=a;var c=this._backbuffer;if(c.width!==r||c.height!==a){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!==a&&(c.height=a),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,a,c,h){r<this._damageBounds.left&&(this._damageBounds.left=r),a<this._damageBounds.top&&(this._damageBounds.top=a),r+c>this._damageBounds.right&&(this._damageBounds.right=r+c),a+h>this._damageBounds.bottom&&(this._damageBounds.bottom=a+h)}},{key:"flip",value:function(r){if(this._renderQ.length!==0&&!r)this._renderQPush({type:"flip"});else{var a=this._damageBounds.left,c=this._damageBounds.top,h=this._damageBounds.right-a,g=this._damageBounds.bottom-c,A=a-this._viewportLoc.x,b=c-this._viewportLoc.y;A<0&&(h+=A,a-=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,a,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,a,c,h,g,A){this._renderQ.length!==0&&!A?this._renderQPush({type:"fill",x:r,y:a,width:c,height:h,color:g}):(this._setFillColor(g),this._drawCtx.fillRect(r,a,c,h),this._damage(r,a,c,h))}},{key:"copyImage",value:function(r,a,c,h,g,A,b){this._renderQ.length!==0&&!b?this._renderQPush({type:"copy",oldX:r,oldY:a,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,a,g,A,c,h,g,A),this._damage(c,h,g,A))}},{key:"imageRect",value:function(r,a,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:a,width:c,height:h})}},{key:"startTile",value:function(r,a,c,h,g){this._tileX=r,this._tileY=a,c===16&&h===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(c,h);for(var A=g[2],b=g[1],S=g[0],E=this._tile.data,C=0;C<c*h*4;C+=4)E[C]=A,E[C+1]=b,E[C+2]=S,E[C+3]=255}},{key:"subTile",value:function(r,a,c,h,g){for(var A=g[2],b=g[1],S=g[0],E=r+c,C=a+h,_=this._tile.data,T=this._tile.width,w=a;w<C;w++)for(var O=r;O<E;O++){var I=(O+w*T)*4;_[I]=A,_[I+1]=b,_[I+2]=S,_[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,a,c,h,g,A,b){if(this._renderQ.length!==0&&!b){var S=new Uint8Array(c*h*4);S.set(new Uint8Array(g.buffer,0,S.length)),this._renderQPush({type:"blit",data:S,x:r,y:a,width:c,height:h})}else this._bgrxImageData(r,a,c,h,g,A)}},{key:"blitRgbImage",value:function(r,a,c,h,g,A,b){if(this._renderQ.length!==0&&!b){var S=new Uint8Array(c*h*3);S.set(new Uint8Array(g.buffer,0,S.length)),this._renderQPush({type:"blitRgb",data:S,x:r,y:a,width:c,height:h})}else this._rgbImageData(r,a,c,h,g,A)}},{key:"blitRgbxImage",value:function(r,a,c,h,g,A,b){if(this._renderQ.length!==0&&!b){var S=new Uint8Array(c*h*4);S.set(new Uint8Array(g.buffer,0,S.length)),this._renderQPush({type:"blitRgbx",data:S,x:r,y:a,width:c,height:h})}else this._rgbxImageData(r,a,c,h,g,A)}},{key:"drawImage",value:function(r,a,c){this._drawCtx.drawImage(r,a,c),this._damage(a,c,r.width,r.height)}},{key:"autoscale",value:function(r,a){var c;if(r===0||a===0)c=0;else{var h=this._viewportLoc,g=r/a,A=h.w/h.h;A>=g?c=r/h.w:c=a/h.h}this._rescale(c)}},{key:"_rescale",value:function(r){this._scale=r;var a=this._viewportLoc,c=r*a.w+"px",h=r*a.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 a="rgb("+r[2]+","+r[1]+","+r[0]+")";a!==this._prevDrawStyle&&(this._drawCtx.fillStyle=a,this._prevDrawStyle=a)}},{key:"_rgbImageData",value:function(r,a,c,h,g,A){for(var b=this._drawCtx.createImageData(c,h),S=b.data,E=0,C=A;E<c*h*4;E+=4,C+=3)S[E]=g[C],S[E+1]=g[C+1],S[E+2]=g[C+2],S[E+3]=255;this._drawCtx.putImageData(b,r,a),this._damage(r,a,b.width,b.height)}},{key:"_bgrxImageData",value:function(r,a,c,h,g,A){for(var b=this._drawCtx.createImageData(c,h),S=b.data,E=0,C=A;E<c*h*4;E+=4,C+=4)S[E]=g[C+2],S[E+1]=g[C+1],S[E+2]=g[C],S[E+3]=255;this._drawCtx.putImageData(b,r,a),this._damage(r,a,b.width,b.height)}},{key:"_rgbxImageData",value:function(r,a,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,a),this._damage(r,a,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 a=this._renderQ[0];switch(a.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(a.oldX,a.oldY,a.x,a.y,a.width,a.height,!0);break;case"fill":this.fillRect(a.x,a.y,a.width,a.height,a.color,!0);break;case"blit":this.blitImage(a.x,a.y,a.width,a.height,a.data,0,!0);break;case"blitRgb":this.blitRgbImage(a.x,a.y,a.width,a.height,a.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(a.x,a.y,a.width,a.height,a.data,0,!0);break;case"img":if(a.img.complete&&a.img.width!==0&&a.img.height!==0){if(a.img.width!==a.width||a.img.height!==a.height){p.Error("Decoded image has incorrect dimensions. Got "+a.img.width+"x"+a.img.height+". Expected "+a.width+"x"+a.height+".");return}this.drawImage(a.img,a.x,a.y)}else a.img._noVNCDisplay=this,a.img.addEventListener("load",this._resumeRenderQ),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 a=this._viewportLoc;this.viewportChangeSize(a.w,a.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}}]),e}();D.default=s},Mdki:function(k,D,n){var y=n("bYtY"),p=y.each,x="\0__link_datas",v="\0__link_mainData";function m(l){var r=l.mainData,a=l.datas;a||(a={main:r},l.datasAttr={main:"data"}),l.datas=l.mainData=null,t(r,a,l),p(a,function(c){p(r.TRANSFERABLE_METHODS,function(h){c.wrapMethod(h,y.curry(f,l))})}),r.wrapMethod("cloneShallow",y.curry(u,l)),p(r.CHANGABLE_METHODS,function(c){r.wrapMethod(c,y.curry(d,l))}),y.assert(a[r.dataType]===r)}function f(l,r){if(i(this)){var a=y.extend({},this[x]);a[this.dataType]=r,t(r,a,l)}else s(r,this.dataType,this[v],l);return r}function d(l,r){return l.struct&&l.struct.update(this),r}function u(l,r){return p(r[x],function(a,c){a!==r&&s(a.cloneShallow(),c,r,l)}),r}function o(l){var r=this[v];return l==null||r==null?r:r[x][l]}function i(l){return l[v]===l}function t(l,r,a){l[x]={},p(r,function(c,h){s(c,h,l,a)})}function s(l,r,a,c){a[x][r]=l,l[v]=a,l.dataType=r,c.struct&&(l[c.structAttr]=c.struct,c.struct[c.datasAttr[r]]=l),l.getLinkedData=o}var e=m;k.exports=e},Mds0:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("8IMR")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="StarFilled";var i=v.forwardRef(o);D.default=i},Mgri:function(k,D,n){for(var y=n("bYtY"),p=n("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(u,o){u==="china"&&o.push(new p("\u5357\u6D77\u8BF8\u5C9B",y.map(v,function(i){return{type:"polygon",exterior:i}}),x))}k.exports=d},MlIO:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(p){var x=y,v=x.lib,m=v.Base,f=v.WordArray,d=x.x64={},u=d.Word=m.extend({init:function(t,s){this.high=t,this.low=s}}),o=d.WordArray=m.extend({init:function(t,s){t=this.words=t||[],s!=p?this.sigBytes=s:this.sigBytes=t.length*8},toX32:function(){for(var t=this.words,s=t.length,e=[],l=0;l<s;l++){var r=t[l];e.push(r.high),e.push(r.low)}return f.create(e,this.sigBytes)},clone:function(){for(var t=m.clone.call(this),s=t.words=this.words.slice(0),e=s.length,l=0;l<e;l++)s[l]=s[l].clone();return t}})}(),y})},Mmt2:function(k,D,n){"use strict";function y(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(e){return typeof e}:y=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(t)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=v(n("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 s=x();if(s&&s.has(t))return s.get(t);var e={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=l?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(e,r,a):e[r]=t[r]}return e.default=t,s&&s.set(t,e),e}function m(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function f(t,s){for(var e=0;e<s.length;e++){var l=s[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function d(t,s,e){return s&&f(t.prototype,s),e&&f(t,e),t}var u=!1,o=40*1024*1024,i=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 l=0,r=e-1;r>=0;r--)l+=this._rQ[this._rQi++]<<r*8;return l}},{key:"rQshiftStr",value:function(e){typeof e=="undefined"&&(e=this.rQlen);for(var l="",r=0;r<e;r+=4096){var a=this.rQshiftBytes(Math.min(4096,e-r));l+=String.fromCharCode.apply(null,a)}return l}},{key:"rQshiftBytes",value:function(e){return typeof e=="undefined"&&(e=this.rQlen),this._rQi+=e,new Uint8Array(this._rQ.buffer,this._rQi-e,e)}},{key:"rQshiftTo",value:function(e,l){l===void 0&&(l=this.rQlen),e.set(new Uint8Array(this._rQ.buffer,this._rQi,l)),this._rQi+=l}},{key:"rQslice",value:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.rQlen;return new Uint8Array(this._rQ.buffer,this._rQi+e,l-e)}},{key:"rQwait",value:function(e,l,r){if(this.rQlen<l){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(l){return l.charCodeAt(0)}))}},{key:"off",value:function(e){this._eventHandlers[e]=function(){}}},{key:"on",value:function(e,l){this._eventHandlers[e]=l}},{key:"_allocateBuffers",value:function(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}},{key:"init",value:function(){this._allocateBuffers(),this._rQi=0,this._websocket=null}},{key:"open",value:function(e,l){var r=this;this.init(),this._websocket=new WebSocket(e,l),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(a){p.Debug(">> WebSock.onclose"),r._eventHandlers.close(a),p.Debug("<< WebSock.onclose")},this._websocket.onerror=function(a){p.Debug(">> WebSock.onerror: "+a),r._eventHandlers.error(a),p.Debug("<< WebSock.onerror: "+a)}}},{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 l=(this._rQlen-this._rQi+e)*8,r=this._rQbufferSize<l;if(r&&(this._rQbufferSize=Math.max(this._rQbufferSize*2,l)),this._rQbufferSize>o&&(this._rQbufferSize=o,this._rQbufferSize-this.rQlen<e))throw new Error("Receive Queue buffer exceeded "+o+" bytes, and the new message could not fit");if(r){var a=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(a,this._rQi,this._rQlen-this._rQi))}else u?this._rQ.copyWithin(0,this._rQi,this._rQlen):this._rQ.set(new Uint8Array(this._rQ.buffer,this._rQi,this._rQlen-this._rQi));this._rQlen=this._rQlen-this._rQi,this._rQi=0}},{key:"_DecodeMessage",value:function(e){var l=new Uint8Array(e);l.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(l.length),this._rQ.set(l,this._rQlen),this._rQlen+=l.length}},{key:"_recvMessage",value:function(e){this._DecodeMessage(e.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):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=i},MqEG:function(k,D,n){var y=n("bYtY"),p=n("fc+c"),x=n("72pK"),v=n("VXYp"),m=y.bind,f=p.extend({type:"dataZoom.inside",init:function(t,s){this._range},render:function(t,s,e,l){f.superApply(this,"render",arguments),this._range=t.getPercentRange(),y.each(this.getTargetCoordInfo(),function(r,a){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,a)},this),v.register(e,{coordId:v.generateCoordId(g),allCoordIds:c,containsPoint:function(b,S,E){return g.coordinateSystem.containPoint([S,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,s,e,l){var r=this._range,a=r.slice(),c=t.axisModels[0];if(!c)return;var h=o[s](null,[l.originX,l.originY],c,e,t),g=(h.signal>0?h.pixelStart+h.pixelLength-h.pixel:h.pixel-h.pixelStart)/h.pixelLength*(a[1]-a[0])+a[0],A=Math.max(1/l.scale,0);a[0]=(a[0]-g)*A+g,a[1]=(a[1]-g)*A+g;var b=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(x(0,a,[0,100],0,b.minSpan,b.maxSpan),this._range=a,r[0]!==a[0]||r[1]!==a[1])return a},pan:u(function(t,s,e,l,r,a){var c=o[l]([a.oldX,a.oldY],[a.newX,a.newY],s,r,e);return c.signal*(t[1]-t[0])*c.pixel/c.pixelLength}),scrollMove:u(function(t,s,e,l,r,a){var c=o[l]([0,0],[a.scrollDelta,a.scrollDelta],s,r,e);return c.signal*(t[1]-t[0])*a.scrollDelta})};function u(t){return function(s,e,l,r){var a=this._range,c=a.slice(),h=s.axisModels[0];if(!h)return;var g=t(c,h,s,e,l,r);if(x(g,c,[0,100],"all"),this._range=c,a[0]!==c[0]||a[1]!==c[1])return c}}var o={grid:function(t,s,e,l,r){var a=e.axis,c={},h=r.model.coordinateSystem.getRect();return t=t||[0,0],a.dim==="x"?(c.pixel=s[0]-t[0],c.pixelLength=h.width,c.pixelStart=h.x,c.signal=a.inverse?1:-1):(c.pixel=s[1]-t[1],c.pixelLength=h.height,c.pixelStart=h.y,c.signal=a.inverse?-1:1),c},polar:function(t,s,e,l,r){var a=e.axis,c={},h=r.model.coordinateSystem,g=h.getRadiusAxis().getExtent(),A=h.getAngleAxis().getExtent();return t=t?h.pointToCoord(t):[0,0],s=h.pointToCoord(s),e.mainType==="radiusAxis"?(c.pixel=s[0]-t[0],c.pixelLength=g[1]-g[0],c.pixelStart=g[0],c.signal=a.inverse?1:-1):(c.pixel=s[1]-t[1],c.pixelLength=A[1]-A[0],c.pixelStart=A[0],c.signal=a.inverse?-1:1),c},singleAxis:function(t,s,e,l,r){var a=e.axis,c=r.model.coordinateSystem.getRect(),h={};return t=t||[0,0],a.orient==="horizontal"?(h.pixel=s[0]-t[0],h.pixelLength=c.width,h.pixelStart=c.x,h.signal=a.inverse?1:-1):(h.pixel=s[1]-t[1],h.pixelLength=c.height,h.pixelStart=c.y,h.signal=a.inverse?-1:1),h}},i=f;k.exports=i},MvSz:function(k,D,n){var y=n("LXxW"),p=n("0ycA"),x=Object.prototype,v=x.propertyIsEnumerable,m=Object.getOwnPropertySymbols,f=m?function(d){return d==null?[]:(d=Object(d),y(m(d),function(u){return v.call(d,u)}))}:p;k.exports=f},MwEJ:function(k,D,n){var y=n("bYtY"),p=n("YXkt"),x=n("sdST"),v=n("k9D9"),m=v.SOURCE_FORMAT_ORIGINAL,f=n("L0Ub"),d=f.getDimensionTypeByAxis,u=n("4NO4"),o=u.getDataItemValue,i=n("IDmD"),t=n("i38C"),s=t.getCoordSysInfoBySeries,e=n("7G+c"),l=n("7hqr"),r=l.enableDataStack,a=n("D5nY"),c=a.makeSeriesEncodeForAxisCoordSys;function h(S,E,C){C=C||{},e.isInstance(S)||(S=e.seriesDataToSource(S));var _=E.get("coordinateSystem"),T=i.get(_),w=s(E),O;w&&(O=y.map(w.coordSysDims,function(F){var j={name:F},K=w.axisMap.get(F);if(K){var z=K.get("type");j.type=d(z)}return j})),O||(O=T&&(T.getDimensionsInfo?T.getDimensionsInfo():T.dimensions.slice())||["x","y"]);var I=x(S,{coordDimensions:O,generateCoord:C.generateCoord,encodeDefaulter:C.useEncodeDefaulter?y.curry(c,O,E):null}),R,M;w&&y.each(I,function(F,j){var K=F.coordDim,z=w.categoryAxisMap.get(K);z&&(R==null&&(R=j),F.ordinalMeta=z.getOrdinalMeta()),F.otherDims.itemName!=null&&(M=!0)}),!M&&R!=null&&(I[R].otherDims.itemName=0);var B=r(E,I),P=new p(I,E);P.setCalculationInfo(B);var X=R!=null&&g(S)?function(F,j,K,z){return z===R?K:this.defaultDimValueGetter(F,j,K,z)}:null;return P.hasItemOption=!1,P.initData(S,null,X),P}function g(S){if(S.sourceFormat===m){var E=A(S.data||[]);return E!=null&&!y.isArray(o(E))}}function A(S){for(var E=0;E<S.length&&S[E]==null;)E++;return S[E]}var b=h;k.exports=b},Mylv:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS"),v=n("oVpE"),m=v.createSymbol,f=n("OELB"),d=f.parsePercent,u=f.isNumeric,o=n("56rv"),i=o.setLabel,t=["itemStyle","borderWidth"],s=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],e=new x.Circle,l=y.extendChartView({type:"pictorialBar",render:function(V,Q,G){var te=this.group,q=V.getData(),le=this._data,re=V.coordinateSystem,we=re.getBaseAxis(),Ie=!!we.isHorizontal(),Me=re.grid.getRect(),Je={ecSize:{width:G.getWidth(),height:G.getHeight()},seriesModel:V,coordSys:re,coordSysExtent:[[Me.x,Me.x+Me.width],[Me.y,Me.y+Me.height]],isHorizontal:Ie,valueDim:s[+Ie],categoryDim:s[1-Ie]};return q.diff(le).add(function(Ve){if(!q.hasValue(Ve))return;var ut=T(q,Ve),Fe=r(q,Ve,ut,Je),ae=R(q,Je,Fe);q.setItemGraphicEl(Ve,ae),te.add(ae),j(ae,Je,Fe)}).update(function(Ve,ut){var Fe=le.getItemGraphicEl(ut);if(!q.hasValue(Ve)){te.remove(Fe);return}var ae=T(q,Ve),at=r(q,Ve,ae,Je),he=P(q,at);Fe&&he!==Fe.__pictorialShapeStr&&(te.remove(Fe),q.setItemGraphicEl(Ve,null),Fe=null),Fe?M(Fe,Je,at):Fe=R(q,Je,at,!0),q.setItemGraphicEl(Ve,Fe),Fe.__pictorialSymbolMeta=at,te.add(Fe),j(Fe,Je,at)}).remove(function(Ve){var ut=le.getItemGraphicEl(Ve);ut&&B(le,Ve,ut.__pictorialSymbolMeta.animationModel,ut)}).execute(),this._data=q,this.group},dispose:p.noop,remove:function(V,Q){var G=this.group,te=this._data;V.get("animation")?te&&te.eachItemGraphicEl(function(q){B(te,q.dataIndex,V,q)}):G.removeAll()}});function r(V,Q,G,te){var q=V.getItemLayout(Q),le=G.get("symbolRepeat"),re=G.get("symbolClip"),we=G.get("symbolPosition")||"start",Ie=G.get("symbolRotate"),Me=(Ie||0)*Math.PI/180||0,Je=G.get("symbolPatternSize")||2,Ve=G.isAnimationEnabled(),ut={dataIndex:Q,layout:q,itemModel:G,symbolType:V.getItemVisual(Q,"symbol")||"circle",color:V.getItemVisual(Q,"color"),symbolClip:re,symbolRepeat:le,symbolRepeatDirection:G.get("symbolRepeatDirection"),symbolPatternSize:Je,rotation:Me,animationModel:Ve?G:null,hoverAnimation:Ve&&G.get("hoverAnimation"),z2:G.getShallow("z",!0)||0};a(G,le,q,te,ut),h(V,Q,q,le,re,ut.boundingLength,ut.pxSign,Je,te,ut),g(G,ut.symbolScale,Me,te,ut);var Fe=ut.symbolSize,ae=G.get("symbolOffset");return p.isArray(ae)&&(ae=[d(ae[0],Fe[0]),d(ae[1],Fe[1])]),A(G,Fe,q,le,re,ae,we,ut.valueLineWidth,ut.boundingLength,ut.repeatCutLength,te,ut),ut}function a(V,Q,G,te,q){var le=te.valueDim,re=V.get("symbolBoundingData"),we=te.coordSys.getOtherAxis(te.coordSys.getBaseAxis()),Ie=we.toGlobalCoord(we.dataToCoord(0)),Me=1-+(G[le.wh]<=0),Je;if(p.isArray(re)){var Ve=[c(we,re[0])-Ie,c(we,re[1])-Ie];Ve[1]<Ve[0]&&Ve.reverse(),Je=Ve[Me]}else re!=null?Je=c(we,re)-Ie:Q?Je=te.coordSysExtent[le.index][Me]-Ie:Je=G[le.wh];q.boundingLength=Je,Q&&(q.repeatCutLength=G[le.wh]),q.pxSign=Je>0?1:Je<0?-1:0}function c(V,Q){return V.toGlobalCoord(V.dataToCoord(V.scale.parse(Q)))}function h(V,Q,G,te,q,le,re,we,Ie,Me){var Je=Ie.valueDim,Ve=Ie.categoryDim,ut=Math.abs(G[Ve.wh]),Fe=V.getItemVisual(Q,"symbolSize");p.isArray(Fe)?Fe=Fe.slice():(Fe==null&&(Fe="100%"),Fe=[Fe,Fe]),Fe[Ve.index]=d(Fe[Ve.index],ut),Fe[Je.index]=d(Fe[Je.index],te?ut:Math.abs(le)),Me.symbolSize=Fe;var ae=Me.symbolScale=[Fe[0]/we,Fe[1]/we];ae[Je.index]*=(Ie.isHorizontal?-1:1)*re}function g(V,Q,G,te,q){var le=V.get(t)||0;le&&(e.attr({scale:Q.slice(),rotation:G}),e.updateTransform(),le/=e.getLineScale(),le*=Q[te.valueDim.index]),q.valueLineWidth=le}function A(V,Q,G,te,q,le,re,we,Ie,Me,Je,Ve){var ut=Je.categoryDim,Fe=Je.valueDim,ae=Ve.pxSign,at=Math.max(Q[Fe.index]+we,0),he=at;if(te){var J=Math.abs(Ie),Y=p.retrieve(V.get("symbolMargin"),"15%")+"",$=!1;Y.lastIndexOf("!")===Y.length-1&&($=!0,Y=Y.slice(0,Y.length-1)),Y=d(Y,Q[Fe.index]);var de=Math.max(at+Y*2,0),be=$?0:Y*2,Ce=u(te),Be=Ce?te:K((J+be)/de),fe=J-Be*at;Y=fe/2/($?Be:Be-1),de=at+Y*2,be=$?0:Y*2,!Ce&&te!=="fixed"&&(Be=Me?K((Math.abs(Me)+be)/de):0),he=Be*de-be,Ve.repeatTimes=Be,Ve.symbolMargin=Y}var Se=ae*(he/2),ke=Ve.pathPosition=[];ke[ut.index]=G[ut.wh]/2,ke[Fe.index]=re==="start"?Se:re==="end"?Ie-Se:Ie/2,le&&(ke[0]+=le[0],ke[1]+=le[1]);var rt=Ve.bundlePosition=[];rt[ut.index]=G[ut.xy],rt[Fe.index]=G[Fe.xy];var xt=Ve.barRectShape=p.extend({},G);xt[Fe.wh]=ae*Math.max(Math.abs(G[Fe.wh]),Math.abs(ke[Fe.index]+Se)),xt[ut.wh]=G[ut.wh];var ht=Ve.clipShape={};ht[ut.xy]=-G[ut.xy],ht[ut.wh]=Je.ecSize[ut.wh],ht[Fe.xy]=0,ht[Fe.wh]=G[Fe.wh]}function b(V){var Q=V.symbolPatternSize,G=m(V.symbolType,-Q/2,-Q/2,Q,Q,V.color);return G.attr({culling:!0}),G.type!=="image"&&G.setStyle({strokeNoScale:!0}),G}function S(V,Q,G,te){var q=V.__pictorialBundle,le=G.symbolSize,re=G.valueLineWidth,we=G.pathPosition,Ie=Q.valueDim,Me=G.repeatTimes||0,Je=0,Ve=le[Q.valueDim.index]+re+G.symbolMargin*2;for(X(V,function(J){J.__pictorialAnimationIndex=Je,J.__pictorialRepeatTimes=Me,Je<Me?F(J,null,ae(Je),G,te):F(J,null,{scale:[0,0]},G,te,function(){q.remove(J)}),I(J,G),Je++});Je<Me;Je++){var ut=b(G);ut.__pictorialAnimationIndex=Je,ut.__pictorialRepeatTimes=Me,q.add(ut);var Fe=ae(Je);F(ut,{position:Fe.position,scale:[0,0]},{scale:Fe.scale,rotation:Fe.rotation},G,te),ut.on("mouseover",at).on("mouseout",he),I(ut,G)}function ae(J){var Y=we.slice(),$=G.pxSign,de=J;return(G.symbolRepeatDirection==="start"?$>0:$<0)&&(de=Me-1-J),Y[Ie.index]=Ve*(de-Me/2+.5)+we[Ie.index],{position:Y,scale:G.symbolScale.slice(),rotation:G.rotation}}function at(){X(V,function(J){J.trigger("emphasis")})}function he(){X(V,function(J){J.trigger("normal")})}}function E(V,Q,G,te){var q=V.__pictorialBundle,le=V.__pictorialMainPath;le?F(le,null,{position:G.pathPosition.slice(),scale:G.symbolScale.slice(),rotation:G.rotation},G,te):(le=V.__pictorialMainPath=b(G),q.add(le),F(le,{position:G.pathPosition.slice(),scale:[0,0],rotation:G.rotation},{scale:G.symbolScale.slice()},G,te),le.on("mouseover",re).on("mouseout",we)),I(le,G);function re(){this.trigger("emphasis")}function we(){this.trigger("normal")}}function C(V,Q,G){var te=p.extend({},Q.barRectShape),q=V.__pictorialBarRect;q?F(q,null,{shape:te},Q,G):(q=V.__pictorialBarRect=new x.Rect({z2:2,shape:te,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),V.add(q))}function _(V,Q,G,te){if(G.symbolClip){var q=V.__pictorialClipPath,le=p.extend({},G.clipShape),re=Q.valueDim,we=G.animationModel,Ie=G.dataIndex;if(q)x.updateProps(q,{shape:le},we,Ie);else{le[re.wh]=0,q=new x.Rect({shape:le}),V.__pictorialBundle.setClipPath(q),V.__pictorialClipPath=q;var Me={};Me[re.wh]=G.clipShape[re.wh],x[te?"updateProps":"initProps"](q,{shape:Me},we,Ie)}}}function T(V,Q){var G=V.getItemModel(Q);return G.getAnimationDelayParams=w,G.isAnimationEnabled=O,G}function w(V){return{index:V.__pictorialAnimationIndex,count:V.__pictorialRepeatTimes}}function O(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function I(V,Q){V.off("emphasis").off("normal");var G=Q.symbolScale.slice();Q.hoverAnimation&&V.on("emphasis",function(){this.animateTo({scale:[G[0]*1.1,G[1]*1.1]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:G.slice()},400,"elasticOut")})}function R(V,Q,G,te){var q=new x.Group,le=new x.Group;return q.add(le),q.__pictorialBundle=le,le.attr("position",G.bundlePosition.slice()),G.symbolRepeat?S(q,Q,G):E(q,Q,G),C(q,G,te),_(q,Q,G,te),q.__pictorialShapeStr=P(V,G),q.__pictorialSymbolMeta=G,q}function M(V,Q,G){var te=G.animationModel,q=G.dataIndex,le=V.__pictorialBundle;x.updateProps(le,{position:G.bundlePosition.slice()},te,q),G.symbolRepeat?S(V,Q,G,!0):E(V,Q,G,!0),C(V,G,!0),_(V,Q,G,!0)}function B(V,Q,G,te){var q=te.__pictorialBarRect;q&&(q.style.text=null);var le=[];X(te,function(re){le.push(re)}),te.__pictorialMainPath&&le.push(te.__pictorialMainPath),te.__pictorialClipPath&&(G=null),p.each(le,function(re){x.updateProps(re,{scale:[0,0]},G,Q,function(){te.parent&&te.parent.remove(te)})}),V.setItemGraphicEl(Q,null)}function P(V,Q){return[V.getItemVisual(Q.dataIndex,"symbol")||"none",!!Q.symbolRepeat,!!Q.symbolClip].join(":")}function X(V,Q,G){p.each(V.__pictorialBundle.children(),function(te){te!==V.__pictorialBarRect&&Q.call(G,te)})}function F(V,Q,G,te,q,le){Q&&V.attr(Q),te.symbolClip&&!q?G&&V.attr(G):G&&x[q?"updateProps":"initProps"](V,G,te.animationModel,te.dataIndex,le)}function j(V,Q,G){var te=G.color,q=G.dataIndex,le=G.itemModel,re=le.getModel("itemStyle").getItemStyle(["color"]),we=le.getModel("emphasis.itemStyle").getItemStyle(),Ie=le.getShallow("cursor");X(V,function(ut){ut.setColor(te),ut.setStyle(p.defaults({fill:te,opacity:G.opacity},re)),x.setHoverStyle(ut,we),Ie&&(ut.cursor=Ie),ut.z2=G.z2});var Me={},Je=Q.valueDim.posDesc[+(G.boundingLength>0)],Ve=V.__pictorialBarRect;i(Ve.style,Me,le,te,Q.seriesModel,q,Je),x.setHoverStyle(Ve,Me)}function K(V){var Q=Math.round(V);return Math.abs(V-Q)<1e-4?Q:Math.ceil(V)}var z=l;k.exports=z},"N/zr":function(k,D,n){"use strict";function y(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(u){return typeof u}:y=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},y(f)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=v(n("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 u={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in f)if(Object.prototype.hasOwnProperty.call(f,i)){var t=o?Object.getOwnPropertyDescriptor(f,i):null;t&&(t.get||t.set)?Object.defineProperty(u,i,t):u[i]=f[i]}return u.default=f,d&&d.set(f,u),u}var m={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(d){"use strict";for(var u="",o=d.length,i=o%3,t=0;t<o-2;t+=3)u+=this.toBase64Table[d[t]>>2],u+=this.toBase64Table[((d[t]&3)<<4)+(d[t+1]>>4)],u+=this.toBase64Table[((d[t+1]&15)<<2)+(d[t+2]>>6)],u+=this.toBase64Table[d[t+2]&63];var s=o-i;return i===2?(u+=this.toBase64Table[d[s]>>2],u+=this.toBase64Table[((d[s]&3)<<4)+(d[s+1]>>4)],u+=this.toBase64Table[(d[s+1]&15)<<2],u+=this.toBase64Table[64]):i===1&&(u+=this.toBase64Table[d[s]>>2],u+=this.toBase64Table[(d[s]&3)<<4],u+=this.toBase64Table[64],u+=this.toBase64Table[64]),u},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 u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=d.indexOf("=")-u;o<0&&(o=d.length-u);for(var i=(o>>2)*3+Math.floor(o%4/1.5),t=new Array(i),s=0,e=0,l=0,r=u;r<d.length;r++){var a=this.toBinaryTable[d.charCodeAt(r)&127],c=d.charAt(r)===this.base64Pad;if(a===-1){p.Error("Illegal character code "+d.charCodeAt(r)+" at position "+r);continue}e=e<<6|a,s+=6,s>=8&&(s-=8,c||(t[l++]=e>>s&255),e&=(1<<s)-1)}if(s){var h=new Error("Corrupted base64 string");throw h.name="Base64-Error",h}return t}};D.default=m},N5BQ:function(k,D,n){var y=n("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;k.exports=x},NA0q:function(k,D,n){var y=n("bYtY"),p=n("6Ic6"),x=n("TkdX"),v=n("gPAo"),m=n("7aKB"),f=m.windowOpen,d="sunburstRootToNode",u=p.extend({type:"sunburst",init:function(){},render:function(i,t,s,e){var l=this;this.seriesModel=i,this.api=s,this.ecModel=t;var r=i.getData(),a=r.tree.root,c=i.getViewRoot(),h=this.group,g=i.get("renderLabelForZeroData"),A=[];c.eachNode(function(O){A.push(O)});var b=this._oldChildren||[];if(C(A,b),w(a,c),e&&e.highlight&&e.highlight.piece){var S=i.getShallow("highlightPolicy");e.highlight.piece.onEmphasis(S)}else if(e&&e.unhighlight){var E=this.virtualPiece;!E&&a.children.length&&(E=a.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,R,R).add(M).update(M).remove(y.curry(M,null)).execute();function R(B){return B.getId()}function M(B,P){var X=B==null?null:O[B],F=P==null?null:I[P];_(X,F)}}function _(O,I){if(!g&&O&&!O.getValue()&&(O=null),O!==a&&I!==a){if(I&&I.piece)O?(I.piece.updateData(!1,O,"normal",i,t),r.setItemGraphicEl(O.dataIndex,I.piece)):T(I);else if(O){var R=new x(O,i,t);h.add(R),r.setItemGraphicEl(O.dataIndex,R)}}}function T(O){if(!O)return;O.piece&&(h.remove(O.piece),O.piece=null)}function w(O,I){if(I.depth>0){l.virtualPiece?l.virtualPiece.updateData(!1,O,"normal",i,t):(l.virtualPiece=new x(O,i,t),h.add(l.virtualPiece)),I.piece._onclickEvent&&I.piece.off("click",I.piece._onclickEvent);var R=function(M){l._rootToNode(I.parentNode)};I.piece._onclickEvent=R,l.virtualPiece.on("click",R)}else l.virtualPiece&&(h.remove(l.virtualPiece),l.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var i=this,t=function(s){var e=!1,l=i.seriesModel.getViewRoot();l.eachNode(function(r){if(!e&&r.piece&&r.piece.childAt(0)===s.target){var a=r.getModel().get("nodeClick");if(a==="rootToNode")i._rootToNode(r);else if(a==="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(i){i!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:d,from:this.uid,seriesId:this.seriesModel.id,targetNode:i})},containPoint:function(i,t){var s=t.getData(),e=s.getItemLayout(0);if(e){var l=i[0]-e.cx,r=i[1]-e.cy,a=Math.sqrt(l*l+r*r);return a<=e.r&&a>=e.r0}}}),o=u;k.exports=o},NAnI:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("wXyp"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},NBmB:function(k,D,n){"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(k,D,n){var y=n("y+Vt"),p=n("IMiH"),x=n("7oTu"),v=Math.sqrt,m=Math.sin,f=Math.cos,d=Math.PI,u=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])/(u(A)*u(b))},i=function(A,b){return(A[0]*b[1]<A[1]*b[0]?-1:1)*Math.acos(o(A,b))};function t(g,A,b,S,E,C,_,T,w,O,I){var R=w*(d/180),M=f(R)*(g-b)/2+m(R)*(A-S)/2,B=-1*m(R)*(g-b)/2+f(R)*(A-S)/2,P=M*M/(_*_)+B*B/(T*T);P>1&&(_*=v(P),T*=v(P));var X=(E===C?-1:1)*v((_*_*(T*T)-_*_*(B*B)-T*T*(M*M))/(_*_*(B*B)+T*T*(M*M)))||0,F=X*_*B/T,j=X*-T*M/_,K=(g+b)/2+f(R)*F-m(R)*j,z=(A+S)/2+m(R)*F+f(R)*j,V=i([1,0],[(M-F)/_,(B-j)/T]),Q=[(M-F)/_,(B-j)/T],G=[(-1*M-F)/_,(-1*B-j)/T],te=i(Q,G);o(Q,G)<=-1&&(te=d),o(Q,G)>=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,R,C)}var s=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function l(g){if(!g)return new p;for(var A=0,b=0,S=A,E=b,C,_=new p,T=p.CMD,w=g.match(s),O=0;O<w.length;O++){for(var I=w[O],R=I.charAt(0),M,B=I.match(e)||[],P=B.length,X=0;X<P;X++)B[X]=parseFloat(B[X]);for(var F=0;F<P;){var j,K,z,V,Q,G,te,q=A,le=b;switch(R){case"l":A+=B[F++],b+=B[F++],M=T.L,_.addData(M,A,b);break;case"L":A=B[F++],b=B[F++],M=T.L,_.addData(M,A,b);break;case"m":A+=B[F++],b+=B[F++],M=T.M,_.addData(M,A,b),S=A,E=b,R="l";break;case"M":A=B[F++],b=B[F++],M=T.M,_.addData(M,A,b),S=A,E=b,R="L";break;case"h":A+=B[F++],M=T.L,_.addData(M,A,b);break;case"H":A=B[F++],M=T.L,_.addData(M,A,b);break;case"v":b+=B[F++],M=T.L,_.addData(M,A,b);break;case"V":b=B[F++],M=T.L,_.addData(M,A,b);break;case"C":M=T.C,_.addData(M,B[F++],B[F++],B[F++],B[F++],B[F++],B[F++]),A=B[F-2],b=B[F-1];break;case"c":M=T.C,_.addData(M,B[F++]+A,B[F++]+b,B[F++]+A,B[F++]+b,B[F++]+A,B[F++]+b),A+=B[F-2],b+=B[F-1];break;case"S":j=A,K=b;var re=_.len(),we=_.data;C===T.C&&(j+=A-we[re-4],K+=b-we[re-3]),M=T.C,q=B[F++],le=B[F++],A=B[F++],b=B[F++],_.addData(M,j,K,q,le,A,b);break;case"s":j=A,K=b;var re=_.len(),we=_.data;C===T.C&&(j+=A-we[re-4],K+=b-we[re-3]),M=T.C,q=A+B[F++],le=b+B[F++],A+=B[F++],b+=B[F++],_.addData(M,j,K,q,le,A,b);break;case"Q":q=B[F++],le=B[F++],A=B[F++],b=B[F++],M=T.Q,_.addData(M,q,le,A,b);break;case"q":q=B[F++]+A,le=B[F++]+b,A+=B[F++],b+=B[F++],M=T.Q,_.addData(M,q,le,A,b);break;case"T":j=A,K=b;var re=_.len(),we=_.data;C===T.Q&&(j+=A-we[re-4],K+=b-we[re-3]),A=B[F++],b=B[F++],M=T.Q,_.addData(M,j,K,A,b);break;case"t":j=A,K=b;var re=_.len(),we=_.data;C===T.Q&&(j+=A-we[re-4],K+=b-we[re-3]),A+=B[F++],b+=B[F++],M=T.Q,_.addData(M,j,K,A,b);break;case"A":z=B[F++],V=B[F++],Q=B[F++],G=B[F++],te=B[F++],q=A,le=b,A=B[F++],b=B[F++],M=T.A,t(q,le,A,b,G,te,z,V,Q,M,_);break;case"a":z=B[F++],V=B[F++],Q=B[F++],G=B[F++],te=B[F++],q=A,le=b,A+=B[F++],b+=B[F++],M=T.A,t(q,le,A,b,G,te,z,V,Q,M,_);break}}(R==="z"||R==="Z")&&(M=T.Z,_.addData(M),A=S,b=E),C=M}return _.toStatic(),_}function r(g,A){var b=l(g);return A=A||{},A.buildPath=function(S){if(S.setData){S.setData(b.data);var E=S.getContext();E&&S.rebuildPath(E)}else{var E=S;b.rebuildPath(E)}},A.applyTransform=function(S){x(b,S),this.dirty(!0)},A}function a(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=[],S=g.length,E=0;E<S;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 w=T.getContext();w&&T.rebuildPath(w)},_}D.createFromString=a,D.extendFromString=c,D.mergePath=h},NFKh:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("MlIO"),n("F+F2"),n("qM6L"),n("ETIr"),n("wbyO"),n("cv67"),n("3y9D"),n("lPiR"),n("GRuw"),n("1uat"),n("uGsb"),n("5hvy"),n("ELcG"),n("WYAk"),n("e7zE"),n("K3mO"),n("OLod"),n("ALsQ"),n("9OqN"),n("qu8F"),n("S6kV"),n("gb/T"),n("qBft"),n("oRuE"),n("jO9C"),n("KmYQ"),n("uGxW"),n("bQjk"),n("wZgz"),n("pA7S"),n("w7YG"),n("E4JC"),n("PVpz"))})(this,function(y){return y})},NH9N:function(k,D,n){var y=n("bYtY"),p=n("mFDi"),x=n("Fofx"),v=n("IwbS"),m=n("+TT/"),f=n("kzvK"),d=n("CMP+"),u=n("oVpE"),o=u.createSymbol,i=n("aX7z"),t=n("OELB"),s=n("7aKB"),e=s.encodeHTML,l=y.bind,r=y.each,a=Math.PI,c=f.extend({type:"timeline.slider",init:function(S,E){this.api=E,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(S,E,C,_){if(this.model=S,this.api=C,this.ecModel=E,this.group.removeAll(),S.get("show",!0)){var T=this._layout(S,C),w=this._createGroup("mainGroup"),O=this._createGroup("labelGroup"),I=this._axis=this._createAxis(T,S);S.formatTooltip=function(R){return e(I.scale.getLabel(R))},r(["AxisLine","AxisTick","Control","CurrentPointer"],function(R){this["_render"+R](T,w,I,S)},this),this._renderAxisLabel(T,O,I,S),this._position(T,S)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(S,E){var C=S.get("label.position"),_=S.get("orient"),T=h(S,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 w={horizontal:"center",vertical:C>=0||C==="+"?"left":"right"},O={horizontal:C>=0||C==="+"?"top":"bottom",vertical:"middle"},I={horizontal:0,vertical:a/2},R=_==="vertical"?T.height:T.width,M=S.getModel("controlStyle"),B=M.get("show",!0),P=B?M.get("itemSize"):0,X=B?M.get("itemGap"):0,F=P+X,j=S.get("label.rotate")||0;j=j*a/180;var K,z,V,Q,G=M.get("position",!0),te=B&&M.get("showPlayBtn",!0),q=B&&M.get("showPrevBtn",!0),le=B&&M.get("showNextBtn",!0),re=0,we=R;return G==="left"||G==="bottom"?(te&&(K=[0,0],re+=F),q&&(z=[re,0],re+=F),le&&(V=[we-P,0],we-=F)):(te&&(K=[we-P,0],we-=F),q&&(z=[0,0],re+=F),le&&(V=[we-P,0],we-=F)),Q=[re,we],S.get("inverse")&&Q.reverse(),{viewRect:T,mainLength:R,orient:_,rotation:I[_],labelRotation:j,labelPosOpt:C,labelAlign:S.get("label.align")||w[_],labelBaseline:S.get("label.verticalAlign")||S.get("label.baseline")||O[_],playPosition:K,prevBtnPosition:z,nextBtnPosition:V,axisExtent:Q,controlSize:P,controlGap:X}},_position:function(S,E){var C=this._mainGroup,_=this._labelGroup,T=S.viewRect;if(S.orient==="vertical"){var w=x.create(),O=T.x,I=T.y+T.height;x.translate(w,w,[-O,-I]),x.rotate(w,w,-a/2),x.translate(w,w,[O,I]),T=T.clone(),T.applyTransform(w)}var R=z(T),M=z(C.getBoundingRect()),B=z(_.getBoundingRect()),P=C.position,X=_.position;X[0]=P[0]=R[0][0];var F=S.labelPosOpt;if(isNaN(F)){var j=F==="+"?0:1;V(P,M,R,1,j),V(X,B,R,1,1-j)}else{var j=F>=0?0:1;V(P,M,R,1,j),X[1]=P[1]+F}C.attr("position",P),_.attr("position",X),C.rotation=_.rotation=S.rotation,K(C),K(_);function K(Q){var G=Q.position;Q.origin=[R[0][0]-G[0],R[1][0]-G[1]]}function z(Q){return[[Q.x,Q.x+Q.width],[Q.y,Q.y+Q.height]]}function V(Q,G,te,q,le){Q[q]+=te[q][le]-G[q][le]}},_createAxis:function(S,E){var C=E.getData(),_=E.get("axisType"),T=i.createScaleByModel(E,_);T.getTicks=function(){return C.mapArray(["value"],function(I){return I})};var w=C.getDataExtent("value");T.setExtent(w[0],w[1]),T.niceTicks();var O=new d("value",T,S.axisExtent,_);return O.model=E,O},_createGroup:function(S){var E=this["_"+S]=new v.Group;return this.group.add(E),E},_renderAxisLine:function(S,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(S,E,C,_){var T=_.getData(),w=C.scale.getTicks();r(w,function(O){var I=C.dataToCoord(O),R=T.getItemModel(O),M=R.getModel("itemStyle"),B=R.getModel("emphasis.itemStyle"),P={position:[I,0],onclick:l(this._changeTimeline,this,O)},X=A(R,M,E,P);v.setHoverStyle(X,B.getItemStyle()),R.get("tooltip")?(X.dataIndex=O,X.dataModel=_):X.dataIndex=X.dataModel=null},this)},_renderAxisLabel:function(S,E,C,_){var T=C.getLabelModel();if(!T.get("show"))return;var w=_.getData(),O=C.getViewLabels();r(O,function(I){var R=I.tickValue,M=w.getItemModel(R),B=M.getModel("label"),P=M.getModel("emphasis.label"),X=C.dataToCoord(I.tickValue),F=new v.Text({position:[X,0],rotation:S.labelRotation-S.rotation,onclick:l(this._changeTimeline,this,R),silent:!1});v.setTextStyle(F.style,B,{text:I.formattedLabel,textAlign:S.labelAlign,textVerticalAlign:S.labelBaseline}),E.add(F),v.setHoverStyle(F,v.setTextStyle({},P))},this)},_renderControl:function(S,E,C,_){var T=S.controlSize,w=S.rotation,O=_.getModel("controlStyle").getItemStyle(),I=_.getModel("emphasis.controlStyle").getItemStyle(),R=[0,-T/2,T,T],M=_.getPlayState(),B=_.get("inverse",!0);P(S.nextBtnPosition,"controlStyle.nextIcon",l(this._changeTimeline,this,B?"-":"+")),P(S.prevBtnPosition,"controlStyle.prevIcon",l(this._changeTimeline,this,B?"+":"-")),P(S.playPosition,"controlStyle."+(M?"stopIcon":"playIcon"),l(this._handlePlayClick,this,!M),!0);function P(X,F,j,K){if(!X)return;var z={position:X,origin:[T/2,0],rotation:K?-w:0,rectHover:!0,style:O,onclick:j},V=g(_,F,R,z);E.add(V),v.setHoverStyle(V,I)}},_renderCurrentPointer:function(S,E,C,_){var T=_.getData(),w=_.getCurrentIndex(),O=T.getItemModel(w).getModel("checkpointStyle"),I=this,R={onCreate:function(M){M.draggable=!0,M.drift=l(I._handlePointerDrag,I),M.ondragend=l(I._handlePointerDragend,I),b(M,w,C,_,!0)},onUpdate:function(M){b(M,w,C,_)}};this._currentPointer=A(O,O,this._mainGroup,{},this._currentPointer,R)},_handlePlayClick:function(S){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:S,from:this.uid})},_handlePointerDrag:function(S,E,C){this._clearTimer(),this._pointerChangeTimeline([C.offsetX,C.offsetY])},_handlePointerDragend:function(S){this._pointerChangeTimeline([S.offsetX,S.offsetY],!0)},_pointerChangeTimeline:function(S,E){var C=this._toAxisCoord(S)[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 w=this._findNearestTick(C),O=this.model;(E||w!==O.getCurrentIndex()&&O.get("realtime"))&&this._changeTimeline(w)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(l(S,this),this.model.get("playInterval")));function S(){var E=this.model;this._changeTimeline(E.getCurrentIndex()+(E.get("rewind",!0)?-1:1))}},_toAxisCoord:function(S){var E=this._mainGroup.getLocalTransform();return v.applyTransform(S,E,!0)},_findNearestTick:function(S){var E=this.model.getData(),C=Infinity,_,T=this._axis;return E.each(["value"],function(w,O){var I=T.dataToCoord(w),R=Math.abs(I-S);R<C&&(C=R,_=O)}),_},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(S){var E=this.model.getCurrentIndex();S==="+"?S=E+1:S==="-"&&(S=E-1),this.api.dispatchAction({type:"timelineChange",currentIndex:S,from:this.uid})}});function h(S,E){return m.getLayoutRect(S.getBoxLayoutParams(),{width:E.getWidth(),height:E.getHeight()},S.get("padding"))}function g(S,E,C,_){var T=v.makePath(S.get(E).replace(/^path:\/\//,""),y.clone(_||{}),new p(C[0],C[1],C[2],C[3]),"center");return T}function A(S,E,C,_,T,w){var O=E.get("color");if(T)T.setColor(O),C.add(T),w&&w.onUpdate(T);else{var I=S.get("symbol");T=o(I,-1,-1,2,2,O),T.setStyle("strokeNoScale",!0),C.add(T),w&&w.onCreate(T)}var R=E.getItemStyle(["color","symbol","symbolSize"]);T.setStyle(R),_=y.merge({rectHover:!0,z2:100},_,!0);var M=S.get("symbolSize");M=M instanceof Array?M.slice():[+M,+M],M[0]/=2,M[1]/=2,_.scale=M;var B=S.get("symbolOffset");if(B){var P=_.position=_.position||[0,0];P[0]+=t.parsePercent(B[0],M[0]),P[1]+=t.parsePercent(B[1],M[1])}var X=S.get("symbolRotate");return _.rotation=(X||0)*Math.PI/180||0,T.attr(_),T.updateTransform(),T}function b(S,E,C,_,T){if(S.dragging)return;var w=_.getModel("checkpointStyle"),O=C.dataToCoord(_.getData().get(["value"],E));T||!w.get("animation",!0)?S.attr({position:[O,0]}):(S.stopAnimation(!0),S.animateTo({position:[O,0]},w.get("animationDuration",!0),w.get("animationEasing",!0)))}k.exports=c},NJEC:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("J4zp"),v=n.n(x),m=n("q1tI"),f=n.n(m),d=n("TSYQ"),u=n.n(d),o=n("sKbD"),i=n.n(o),t=n("4IlW"),s=n("3S7+"),e=n("2/Rp"),l=n("zvFY"),r=n("YMnH"),a=n("ZvpZ"),c=n("H84U"),h=n("bogI"),g=n("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 w=0,T=Object.getOwnPropertySymbols(E);w<T.length;w++)C.indexOf(T[w])<0&&Object.prototype.propertyIsEnumerable.call(E,T[w])&&(_[T[w]]=E[T[w]]);return _},S=m.forwardRef(function(E,C){var _=m.useState(E.visible),T=v()(_,2),w=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(Ie,Me){"visible"in E||O(Ie),E.onVisibleChange&&E.onVisibleChange(Ie,Me)},R=function(Ie){I(!1,Ie),E.onConfirm&&E.onConfirm.call(A,Ie)},M=function(Ie){I(!1,Ie),E.onCancel&&E.onCancel.call(A,Ie)},B=function(Ie){Ie.keyCode===t.a.ESC&&w&&I(!1,Ie)},P=function(Ie){var Me=E.disabled;if(Me)return;I(Ie)},X=function(Ie,Me){var Je=E.okButtonProps,Ve=E.cancelButtonProps,ut=E.title,Fe=E.cancelText,ae=E.okText,at=E.okType,he=E.icon;return m.createElement("div",{className:"".concat(Ie,"-inner-content")},m.createElement("div",{className:"".concat(Ie,"-message")},he,m.createElement("div",{className:"".concat(Ie,"-message-title")},Object(h.a)(ut))),m.createElement("div",{className:"".concat(Ie,"-buttons")},m.createElement(e.a,p()({onClick:M,size:"small"},Ve),Fe||Me.cancelText),m.createElement(e.a,p()({onClick:R},Object(l.a)(at),{size:"small"},Je),ae||Me.okText)))},F=m.useContext(c.b),j=F.getPrefixCls,K=E.prefixCls,z=E.placement,V=E.children,Q=E.overlayClassName,G=b(E,["prefixCls","placement","children","overlayClassName"]),te=j("popover",K),q=j("popconfirm",K),le=u()(q,Q),re=m.createElement(r.a,{componentName:"Popconfirm",defaultLocale:a.a.Popconfirm},function(we){return X(te,we)});return m.createElement(s.a,p()({},G,{prefixCls:te,placement:z,onVisibleChange:P,visible:w,overlay:re,overlayClassName:le,ref:C}),Object(g.a)(V,{onKeyDown:function(Ie){var Me,Je;(Je=V==null?void 0:(Me=V.props).onKeyDown)===null||Je===void 0||Je.call(Me,Ie),B(Ie)}}))});S.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:m.createElement(i.a,null),disabled:!1},D.a=S},NKxu:function(k,D,n){var y=n("lSCD"),p=n("E2jh"),x=n("GoyQ"),v=n("3Fdi"),m=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,d=Function.prototype,u=Object.prototype,o=d.toString,i=u.hasOwnProperty,t=RegExp("^"+o.call(i).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function s(e){if(!x(e)||p(e))return!1;var l=y(e)?t:f;return l.test(v(e))}k.exports=s},NUBc:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),v=n.n(x),m=n("q1tI"),f=n.n(m),d=n("wx14"),u=n("rePB"),o=n("VTBJ"),i=n("1OyB"),t=n("vuIU"),s=n("Ji7U"),e=n("LK+K"),l=n("TSYQ"),r=n.n(l),a=function(Me){var Je,Ve="".concat(Me.rootPrefixCls,"-item"),ut=r()(Ve,"".concat(Ve,"-").concat(Me.page),(Je={},Object(u.a)(Je,"".concat(Ve,"-active"),Me.active),Object(u.a)(Je,Me.className,!!Me.className),Object(u.a)(Je,"".concat(Ve,"-disabled"),!Me.page),Je)),Fe=function(){Me.onClick(Me.page)},ae=function(he){Me.onKeyPress(he,Me.onClick,Me.page)};return f.a.createElement("li",{title:Me.showTitle?Me.page:null,className:ut,onClick:Fe,onKeyPress:ae,tabIndex:"0"},Me.itemRender(Me.page,"page",f.a.createElement("a",{rel:"nofollow"},Me.page)))},c=a,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(Ie){Object(s.a)(Je,Ie);var Me=Object(e.a)(Je);function Je(){var Ve;Object(i.a)(this,Je);for(var ut=arguments.length,Fe=new Array(ut),ae=0;ae<ut;ae++)Fe[ae]=arguments[ae];return Ve=Me.call.apply(Me,[this].concat(Fe)),Ve.state={goInputText:""},Ve.buildOptionText=function(at){return"".concat(at," ").concat(Ve.props.locale.items_per_page)},Ve.changeSize=function(at){Ve.props.changeSize(Number(at))},Ve.handleChange=function(at){Ve.setState({goInputText:at.target.value})},Ve.handleBlur=function(at){var he=Ve.props,J=he.goButton,Y=he.quickGo,$=he.rootPrefixCls,de=Ve.state.goInputText;if(J||de==="")return;if(at.relatedTarget&&(at.relatedTarget.className.indexOf("".concat($,"-prev"))>=0||at.relatedTarget.className.indexOf("".concat($,"-next"))>=0))return;Ve.setState({goInputText:""}),Y(Ve.getValidValue())},Ve.go=function(at){var he=Ve.state.goInputText;if(he==="")return;(at.keyCode===h.ENTER||at.type==="click")&&(Ve.setState({goInputText:""}),Ve.props.quickGo(Ve.getValidValue()))},Ve}return Object(t.a)(Je,[{key:"getValidValue",value:function(){var ut=this.state,Fe=ut.goInputText,ae=ut.current;return!Fe||isNaN(Fe)?ae:Number(Fe)}},{key:"getPageSizeOptions",value:function(){var ut=this.props,Fe=ut.pageSize,ae=ut.pageSizeOptions;return ae.some(function(at){return at.toString()===Fe.toString()})?ae:ae.concat([Fe.toString()]).sort(function(at,he){var J=isNaN(Number(at))?0:Number(at),Y=isNaN(Number(he))?0:Number(he);return J-Y})}},{key:"render",value:function(){var ut=this,Fe=this.props,ae=Fe.pageSize,at=Fe.locale,he=Fe.rootPrefixCls,J=Fe.changeSize,Y=Fe.quickGo,$=Fe.goButton,de=Fe.selectComponentClass,be=Fe.buildOptionText,Ce=Fe.selectPrefixCls,Be=Fe.disabled,fe=this.state.goInputText,Se="".concat(he,"-options"),ke=de,rt=null,xt=null,ht=null;if(!J&&!Y)return null;var He=this.getPageSizeOptions();if(J&&ke){var ir=He.map(function(ct,Xt){return f.a.createElement(ke.Option,{key:Xt,value:ct.toString()},(be||ut.buildOptionText)(ct))});rt=f.a.createElement(ke,{disabled:Be,prefixCls:Ce,showSearch:!1,className:"".concat(Se,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(ae||He[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Xt){return Xt.parentNode}},ir)}return Y&&($&&(ht=typeof $=="boolean"?f.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Be,className:"".concat(Se,"-quick-jumper-button")},at.jump_to_confirm):f.a.createElement("span",{onClick:this.go,onKeyUp:this.go},$)),xt=f.a.createElement("div",{className:"".concat(Se,"-quick-jumper")},at.jump_to,f.a.createElement("input",{disabled:Be,type:"text",value:fe,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),at.page,ht)),f.a.createElement("li",{className:"".concat(Se)},rt,xt)}}]),Je}(f.a.Component);g.defaultProps={pageSizeOptions:["10","20","50","100"]};var A=g,b=n("N2Kk");function S(){}function E(Ie){return typeof Ie=="number"&&isFinite(Ie)&&Math.floor(Ie)===Ie}function C(Ie,Me,Je){return Je}function _(Ie,Me,Je){var Ve=typeof Ie=="undefined"?Me.pageSize:Ie;return Math.floor((Je.total-1)/Ve)+1}var T=function(Ie){Object(s.a)(Je,Ie);var Me=Object(e.a)(Je);function Je(Ve){var ut;Object(i.a)(this,Je),ut=Me.call(this,Ve),ut.getJumpPrevPage=function(){return Math.max(1,ut.state.current-(ut.props.showLessItems?3:5))},ut.getJumpNextPage=function(){return Math.min(_(void 0,ut.state,ut.props),ut.state.current+(ut.props.showLessItems?3:5))},ut.getItemIcon=function(J,Y){var $=ut.props.prefixCls,de=J||f.a.createElement("button",{type:"button","aria-label":Y,className:"".concat($,"-item-link")});return typeof J=="function"&&(de=f.a.createElement(J,Object(o.a)({},ut.props))),de},ut.savePaginationNode=function(J){ut.paginationNode=J},ut.isValid=function(J){return E(J)&&J!==ut.state.current},ut.shouldDisplayQuickJumper=function(){var J=ut.props,Y=J.showQuickJumper,$=J.pageSize,de=J.total;return de<=$?!1:Y},ut.handleKeyDown=function(J){(J.keyCode===h.ARROW_UP||J.keyCode===h.ARROW_DOWN)&&J.preventDefault()},ut.handleKeyUp=function(J){var Y=ut.getValidValue(J),$=ut.state.currentInputValue;Y!==$&&ut.setState({currentInputValue:Y}),J.keyCode===h.ENTER?ut.handleChange(Y):J.keyCode===h.ARROW_UP?ut.handleChange(Y-1):J.keyCode===h.ARROW_DOWN&&ut.handleChange(Y+1)},ut.changePageSize=function(J){var Y=ut.state.current,$=_(J,ut.state,ut.props);Y=Y>$?$:Y,$===0&&(Y=ut.state.current),typeof J=="number"&&("pageSize"in ut.props||ut.setState({pageSize:J}),"current"in ut.props||ut.setState({current:Y,currentInputValue:Y})),ut.props.onShowSizeChange(Y,J),"onChange"in ut.props&&ut.props.onChange&&ut.props.onChange(Y,J)},ut.handleChange=function(J){var Y=ut.props.disabled,$=J;if(ut.isValid($)&&!Y){var de=_(void 0,ut.state,ut.props);$>de?$=de:$<1&&($=1),"current"in ut.props||ut.setState({current:$,currentInputValue:$});var be=ut.state.pageSize;return ut.props.onChange($,be),$}return ut.state.current},ut.prev=function(){ut.hasPrev()&&ut.handleChange(ut.state.current-1)},ut.next=function(){ut.hasNext()&&ut.handleChange(ut.state.current+1)},ut.jumpPrev=function(){ut.handleChange(ut.getJumpPrevPage())},ut.jumpNext=function(){ut.handleChange(ut.getJumpNextPage())},ut.hasPrev=function(){return ut.state.current>1},ut.hasNext=function(){return ut.state.current<_(void 0,ut.state,ut.props)},ut.runIfEnter=function(J,Y){if(J.key==="Enter"||J.charCode===13){for(var $=arguments.length,de=new Array($>2?$-2:0),be=2;be<$;be++)de[be-2]=arguments[be];Y.apply(void 0,de)}},ut.runIfEnterPrev=function(J){ut.runIfEnter(J,ut.prev)},ut.runIfEnterNext=function(J){ut.runIfEnter(J,ut.next)},ut.runIfEnterJumpPrev=function(J){ut.runIfEnter(J,ut.jumpPrev)},ut.runIfEnterJumpNext=function(J){ut.runIfEnter(J,ut.jumpNext)},ut.handleGoTO=function(J){(J.keyCode===h.ENTER||J.type==="click")&&ut.handleChange(ut.state.currentInputValue)};var Fe=Ve.onChange!==S,ae="current"in Ve;ae&&!Fe&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var at=Ve.defaultCurrent;"current"in Ve&&(at=Ve.current);var he=Ve.defaultPageSize;return"pageSize"in Ve&&(he=Ve.pageSize),at=Math.min(at,_(he,void 0,Ve)),ut.state={current:at,currentInputValue:at,pageSize:he},ut}return Object(t.a)(Je,[{key:"componentDidUpdate",value:function(ut,Fe){var ae=this.props.prefixCls;if(Fe.current!==this.state.current&&this.paginationNode){var at=this.paginationNode.querySelector(".".concat(ae,"-item-").concat(Fe.current));at&&document.activeElement===at&&at.blur()}}},{key:"getValidValue",value:function(ut){var Fe=ut.target.value,ae=_(void 0,this.state,this.props),at=this.state.currentInputValue,he;return Fe===""?he=Fe:isNaN(Number(Fe))?he=at:Fe>=ae?he=ae:he=Number(Fe),he}},{key:"getShowSizeChanger",value:function(){var ut=this.props,Fe=ut.showSizeChanger,ae=ut.total,at=ut.totalBoundaryShowSizeChanger;return typeof Fe!="undefined"?Fe:ae>at}},{key:"renderPrev",value:function(ut){var Fe=this.props,ae=Fe.prevIcon,at=Fe.itemRender,he=at(ut,"prev",this.getItemIcon(ae,"prev page")),J=!this.hasPrev();return Object(m.isValidElement)(he)?Object(m.cloneElement)(he,{disabled:J}):he}},{key:"renderNext",value:function(ut){var Fe=this.props,ae=Fe.nextIcon,at=Fe.itemRender,he=at(ut,"next",this.getItemIcon(ae,"next page")),J=!this.hasNext();return Object(m.isValidElement)(he)?Object(m.cloneElement)(he,{disabled:J}):he}},{key:"render",value:function(){var ut=this,Fe=this.props,ae=Fe.prefixCls,at=Fe.className,he=Fe.style,J=Fe.disabled,Y=Fe.hideOnSinglePage,$=Fe.total,de=Fe.locale,be=Fe.showQuickJumper,Ce=Fe.showLessItems,Be=Fe.showTitle,fe=Fe.showTotal,Se=Fe.simple,ke=Fe.itemRender,rt=Fe.showPrevNextJumpers,xt=Fe.jumpPrevIcon,ht=Fe.jumpNextIcon,He=Fe.selectComponentClass,ir=Fe.selectPrefixCls,ct=Fe.pageSizeOptions,Xt=this.state,hr=Xt.current,Jt=Xt.pageSize,Pt=Xt.currentInputValue;if(Y===!0&&$<=Jt)return null;var Wt=_(void 0,this.state,this.props),Ge=[],pe=null,se=null,lt=null,qe=null,me=null,Ht=be&&be.goButton,yr=Ce?1:2,At=hr-1>0?hr-1:0,rr=hr+1<Wt?hr+1:Wt,ur=Object.keys(this.props).reduce(function(Un,$t){return($t.substr(0,5)==="data-"||$t.substr(0,5)==="aria-"||$t==="role")&&(Un[$t]=ut.props[$t]),Un},{});if(Se)return Ht&&(typeof Ht=="boolean"?me=f.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},de.jump_to_confirm):me=f.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ht),me=f.a.createElement("li",{title:Be?"".concat(de.jump_to).concat(hr,"/").concat(Wt):null,className:"".concat(ae,"-simple-pager")},me)),f.a.createElement("ul",Object(d.a)({className:r()(ae,"".concat(ae,"-simple"),Object(u.a)({},"".concat(ae,"-disabled"),J),at),style:he,ref:this.savePaginationNode},ur),f.a.createElement("li",{title:Be?de.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:r()("".concat(ae,"-prev"),Object(u.a)({},"".concat(ae,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(At)),f.a.createElement("li",{title:Be?"".concat(hr,"/").concat(Wt):null,className:"".concat(ae,"-simple-pager")},f.a.createElement("input",{type:"text",value:Pt,disabled:J,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),f.a.createElement("span",{className:"".concat(ae,"-slash")},"/"),Wt),f.a.createElement("li",{title:Be?de.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:r()("".concat(ae,"-next"),Object(u.a)({},"".concat(ae,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(rr)),me);if(Wt<=3+yr*2){var vn={locale:de,rootPrefixCls:ae,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Be,itemRender:ke};Wt||Ge.push(f.a.createElement(c,Object(d.a)({},vn,{key:"noPager",page:Wt,className:"".concat(ae,"-disabled")})));for(var Bt=1;Bt<=Wt;Bt+=1){var sr=hr===Bt;Ge.push(f.a.createElement(c,Object(d.a)({},vn,{key:Bt,page:Bt,active:sr})))}}else{var Yt=Ce?de.prev_3:de.prev_5,pt=Ce?de.next_3:de.next_5;rt&&(pe=f.a.createElement("li",{title:Be?Yt:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:r()("".concat(ae,"-jump-prev"),Object(u.a)({},"".concat(ae,"-jump-prev-custom-icon"),!!xt))},ke(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(xt,"prev page"))),se=f.a.createElement("li",{title:Be?pt:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:r()("".concat(ae,"-jump-next"),Object(u.a)({},"".concat(ae,"-jump-next-custom-icon"),!!ht))},ke(this.getJumpNextPage(),"jump-next",this.getItemIcon(ht,"next page")))),qe=f.a.createElement(c,{locale:de,last:!0,rootPrefixCls:ae,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Wt,page:Wt,active:!1,showTitle:Be,itemRender:ke}),lt=f.a.createElement(c,{locale:de,rootPrefixCls:ae,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Be,itemRender:ke});var it=Math.max(1,hr-yr),Fr=Math.min(hr+yr,Wt);hr-1<=yr&&(Fr=1+yr*2),Wt-hr<=yr&&(it=Wt-yr*2);for(var cn=it;cn<=Fr;cn+=1){var _n=hr===cn;Ge.push(f.a.createElement(c,{locale:de,rootPrefixCls:ae,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:cn,page:cn,active:_n,showTitle:Be,itemRender:ke}))}hr-1>=yr*2&&hr!==1+2&&(Ge[0]=Object(m.cloneElement)(Ge[0],{className:"".concat(ae,"-item-after-jump-prev")}),Ge.unshift(pe)),Wt-hr>=yr*2&&hr!==Wt-2&&(Ge[Ge.length-1]=Object(m.cloneElement)(Ge[Ge.length-1],{className:"".concat(ae,"-item-before-jump-next")}),Ge.push(se)),it!==1&&Ge.unshift(lt),Fr!==Wt&&Ge.push(qe)}var Kn=null;fe&&(Kn=f.a.createElement("li",{className:"".concat(ae,"-total-text")},fe($,[$===0?0:(hr-1)*Jt+1,hr*Jt>$?$:hr*Jt])));var gi=!this.hasPrev()||!Wt,Mn=!this.hasNext()||!Wt;return f.a.createElement("ul",Object(d.a)({className:r()(ae,at,Object(u.a)({},"".concat(ae,"-disabled"),J)),style:he,unselectable:"unselectable",ref:this.savePaginationNode},ur),Kn,f.a.createElement("li",{title:Be?de.prev_page:null,onClick:this.prev,tabIndex:gi?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(ae,"-prev"),Object(u.a)({},"".concat(ae,"-disabled"),gi)),"aria-disabled":gi},this.renderPrev(At)),Ge,f.a.createElement("li",{title:Be?de.next_page:null,onClick:this.next,tabIndex:Mn?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(ae,"-next"),Object(u.a)({},"".concat(ae,"-disabled"),Mn)),"aria-disabled":Mn},this.renderNext(rr)),f.a.createElement(A,{disabled:J,locale:de,rootPrefixCls:ae,selectComponentClass:He,selectPrefixCls:ir,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:hr,pageSize:Jt,pageSizeOptions:ct,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ht}))}}],[{key:"getDerivedStateFromProps",value:function(ut,Fe){var ae={};if("current"in ut&&(ae.current=ut.current,ut.current!==Fe.current&&(ae.currentInputValue=ae.current)),"pageSize"in ut&&ut.pageSize!==Fe.pageSize){var at=Fe.current,he=_(ut.pageSize,Fe,ut);at=at>he?he:at,"current"in ut||(ae.current=at,ae.currentInputValue=at),ae.pageSize=ut.pageSize}return ae}}]),Je}(f.a.Component);T.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:S,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:S,locale:b.a,style:{},itemRender:C,totalBoundaryShowSizeChanger:50};var w=T,O=n("H4fg"),I=n("DFhj"),R=n.n(I),M=n("fEPi"),B=n.n(M),P=n("u9fO"),X=n.n(P),F=n("mO/d"),j=n.n(F),K=n("2fM7"),z=function(Me){return m.createElement(K.a,v()({size:"small"},Me))};z.Option=K.a.Option;var V=z,Q=n("YMnH"),G=n("H84U"),te=n("5OYt"),q=function(Ie,Me){var Je={};for(var Ve in Ie)Object.prototype.hasOwnProperty.call(Ie,Ve)&&Me.indexOf(Ve)<0&&(Je[Ve]=Ie[Ve]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Ve=Object.getOwnPropertySymbols(Ie);ut<Ve.length;ut++)Me.indexOf(Ve[ut])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Ve[ut])&&(Je[Ve[ut]]=Ie[Ve[ut]]);return Je},le=function(Me){var Je=Me.prefixCls,Ve=Me.selectPrefixCls,ut=Me.className,Fe=Me.size,ae=Me.locale,at=q(Me,["prefixCls","selectPrefixCls","className","size","locale"]),he=Object(te.a)(),J=he.xs,Y=m.useContext(G.b),$=Y.getPrefixCls,de=Y.direction,be=$("pagination",Je),Ce=function(){var Se=m.createElement("span",{className:"".concat(be,"-item-ellipsis")},"\u2022\u2022\u2022"),ke=m.createElement("button",{className:"".concat(be,"-item-link"),type:"button",tabIndex:-1},m.createElement(R.a,null)),rt=m.createElement("button",{className:"".concat(be,"-item-link"),type:"button",tabIndex:-1},m.createElement(B.a,null)),xt=m.createElement("a",{className:"".concat(be,"-item-link")},m.createElement("div",{className:"".concat(be,"-item-container")},m.createElement(X.a,{className:"".concat(be,"-item-link-icon")}),Se)),ht=m.createElement("a",{className:"".concat(be,"-item-link")},m.createElement("div",{className:"".concat(be,"-item-container")},m.createElement(j.a,{className:"".concat(be,"-item-link-icon")}),Se));if(de==="rtl"){var He=[rt,ke];ke=He[0],rt=He[1];var ir=[ht,xt];xt=ir[0],ht=ir[1]}return{prevIcon:ke,nextIcon:rt,jumpPrevIcon:xt,jumpNextIcon:ht}},Be=function(Se){var ke=v()(v()({},Se),ae),rt=Fe==="small"||!!(J&&!Fe&&at.responsive),xt=$("select",Ve),ht=r()(ut,p()({mini:rt},"".concat(be,"-rtl"),de==="rtl"));return m.createElement(w,v()({},at,{prefixCls:be,selectPrefixCls:xt},Ce(),{className:ht,selectComponentClass:rt?V:K.a,locale:ke}))};return m.createElement(Q.a,{componentName:"Pagination",defaultLocale:O.a},Be)},re=le,we=D.a=re},NohK:function(k,D,n){"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,u=new Array(d),o=0;o<d;o++)u[o]=arguments[o];clearTimeout(m),m=setTimeout(function(){x.apply(f,u)},v)}};D.default=y},Npjl:function(k,D){function n(y,p){return y==null?void 0:y[p]}k.exports=n},Nu4q:function(k,D,n){"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(k,D,n){},O3gP:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("O/iA"),v=n.n(x),m=n("OaEy")},OELB:function(k,D,n){var y=n("bYtY"),p=1e-4;function x(E){return E.replace(/^\s+|\s+$/g,"")}function v(E,C,_,T){var w=C[1]-C[0],O=_[1]-_[0];if(w===0)return O===0?_[0]:(_[0]+_[1])/2;if(T)if(w>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])/w*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 u(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 w=C.indexOf(".");return w<0?0:C.length-1-w}}function i(E,C){var _=Math.log,T=Math.LN10,w=Math.floor(_(E[1]-E[0])/T),O=Math.round(_(Math.abs(C[1]-C[0]))/T),I=Math.min(Math.max(-w+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 w=Math.pow(10,_),O=y.map(E,function(K){return(isNaN(K)?0:K)/T*w*100}),I=w*100,R=y.map(O,function(K){return Math.floor(K)}),M=y.reduce(R,function(K,z){return K+z},0),B=y.map(O,function(K,z){return K-R[z]});M<I;){for(var P=Number.NEGATIVE_INFINITY,X=null,F=0,j=B.length;F<j;++F)B[F]>P&&(P=B[F],X=F);++R[X],B[X]=0,++M}return R[C]/w}var s=9007199254740991;function e(E){var C=Math.PI*2;return(E%C+C)%C}function l(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 a(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,_),w=E/T,O;return C?w<1.5?O=1:w<2.5?O=2:w<4?O=3:w<7?O=5:O=10:w<1?O=1:w<2?O=2:w<3?O=3:w<5?O=5:O=10,E=O*T,_>=-20?+E.toFixed(_<0?-_:0):E}function A(E,C){var _=(E.length-1)*C+1,T=Math.floor(_),w=+E[T-1],O=_-T;return O?w+O*(E[T]-w):w}function b(E){E.sort(function(M,B){return R(M,B,0)?-1:1});for(var C=-Infinity,_=1,T=0;T<E.length;){for(var w=E[T].interval,O=E[T].close,I=0;I<2;I++)w[I]<=C&&(w[I]=C,O[I]=I?1:1-_),C=w[I],_=O[I];w[0]===w[1]&&O[0]*O[1]!==1?E.splice(T,1):T++}return E;function R(M,B,P){return M.interval[P]<B.interval[P]||M.interval[P]===B.interval[P]&&(M.close[P]-B.close[P]===(P?-1:1)||!P&&R(M,B,1))}}function S(E){return E-parseFloat(E)>=0}D.linearMap=v,D.parsePercent=m,D.round=f,D.asc=d,D.getPrecision=u,D.getPrecisionSafe=o,D.getPixelPrecision=i,D.getPercentWithPrecision=t,D.MAX_SAFE_INTEGER=s,D.remRadian=e,D.isRadianAroundZero=l,D.parseDate=a,D.quantity=c,D.quantityExponent=h,D.nice=g,D.quantile=A,D.reformIntervals=b,D.isNumeric=S},OKJ2:function(k,D,n){var y=n("KxfA"),p=y.retrieveRawValue,x=n("7aKB"),v=x.getTooltipMarker,m=x.formatTpl,f=n("4NO4"),d=f.getTooltipRenderMode,u=/\{@(.+?)\}/g,o={getDataParams:function(i,t){var s=this.getData(t),e=this.getRawValue(i,t),l=s.getRawIndex(i),r=s.getName(i),a=s.getRawDataItem(i),c=s.getItemVisual(i,"color"),h=s.getItemVisual(i,"borderColor"),g=this.ecModel.getComponent("tooltip"),A=g&&g.get("renderMode"),b=d(A),S=this.mainType,E=S==="series",C=s.userOutput;return{componentType:S,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:l,data:a,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(i,t,s,e,l){t=t||"normal";var r=this.getData(s),a=r.getItemModel(i),c=this.getDataParams(i,s);e!=null&&c.value instanceof Array&&(c.value=c.value[e]);var h=a.get(t==="normal"?[l||"label","formatter"]:[t,l||"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(u,function(A,b){var S=b.length;return b.charAt(0)==="["&&b.charAt(S-1)==="]"&&(b=+b.slice(1,S-1)),p(r,i,b)})}},getRawValue:function(i,t){return p(this.getData(t),i)},formatTooltip:function(){}};k.exports=o},OLod:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("K3mO"))})(this,function(y){y.lib.Cipher||function(p){var x=y,v=x.lib,m=v.Base,f=v.WordArray,d=v.BufferedBlockAlgorithm,u=x.enc,o=u.Utf8,i=u.Base64,t=x.algo,s=t.EvpKDF,e=v.Cipher=d.extend({cfg:m.extend(),createEncryptor:function(I,R){return this.create(this._ENC_XFORM_MODE,I,R)},createDecryptor:function(I,R){return this.create(this._DEC_XFORM_MODE,I,R)},init:function(I,R,M){this.cfg=this.cfg.extend(M),this._xformMode=I,this._key=R,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 R=this._doFinalize();return R},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function O(I){return typeof I=="string"?w:C}return function(I){return{encrypt:function(M,B,P){return O(B).encrypt(I,M,B,P)},decrypt:function(M,B,P){return O(B).decrypt(I,M,B,P)}}}}()}),l=v.StreamCipher=e.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1}),r=x.mode={},a=v.BlockCipherMode=m.extend({createEncryptor:function(I,R){return this.Encryptor.create(I,R)},createDecryptor:function(I,R){return this.Decryptor.create(I,R)},init:function(I,R){this._cipher=I,this._iv=R}}),c=r.CBC=function(){var O=a.extend();O.Encryptor=O.extend({processBlock:function(M,B){var P=this._cipher,X=P.blockSize;I.call(this,M,B,X),P.encryptBlock(M,B),this._prevBlock=M.slice(B,B+X)}}),O.Decryptor=O.extend({processBlock:function(M,B){var P=this._cipher,X=P.blockSize,F=M.slice(B,B+X);P.decryptBlock(M,B),I.call(this,M,B,X),this._prevBlock=F}});function I(R,M,B){var P,X=this._iv;X?(P=X,this._iv=p):P=this._prevBlock;for(var F=0;F<B;F++)R[M+F]^=P[F]}return O}(),h=x.pad={},g=h.Pkcs7={pad:function(I,R){for(var M=R*4,B=M-I.sigBytes%M,P=B<<24|B<<16|B<<8|B,X=[],F=0;F<B;F+=4)X.push(P);var j=f.create(X,B);I.concat(j)},unpad:function(I){var R=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=R}},A=v.BlockCipher=e.extend({cfg:e.cfg.extend({mode:c,padding:g}),reset:function(){var I;e.reset.call(this);var R=this.cfg,M=R.iv,B=R.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,M&&M.words):(this._mode=I.call(B,this,M&&M.words),this._mode.__creator=I)},_doProcessBlock:function(I,R){this._mode.processBlock(I,R)},_doFinalize:function(){var I,R=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(R.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),R.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)}}),S=x.format={},E=S.OpenSSL={stringify:function(I){var R,M=I.ciphertext,B=I.salt;return B?R=f.create([1398893684,1701076831]).concat(B).concat(M):R=M,R.toString(i)},parse:function(I){var R,M=i.parse(I),B=M.words;return B[0]==1398893684&&B[1]==1701076831&&(R=f.create(B.slice(2,4)),B.splice(0,4),M.sigBytes-=16),b.create({ciphertext:M,salt:R})}},C=v.SerializableCipher=m.extend({cfg:m.extend({format:E}),encrypt:function(I,R,M,B){B=this.cfg.extend(B);var P=I.createEncryptor(M,B),X=P.finalize(R),F=P.cfg;return b.create({ciphertext:X,key:M,iv:F.iv,algorithm:I,mode:F.mode,padding:F.padding,blockSize:I.blockSize,formatter:B.format})},decrypt:function(I,R,M,B){B=this.cfg.extend(B),R=this._parse(R,B.format);var P=I.createDecryptor(M,B).finalize(R.ciphertext);return P},_parse:function(I,R){return typeof I=="string"?R.parse(I,this):I}}),_=x.kdf={},T=_.OpenSSL={execute:function(I,R,M,B){B||(B=f.random(64/8));var P=s.create({keySize:R+M}).compute(I,B),X=f.create(P.words.slice(R),M*4);return P.sigBytes=R*4,b.create({key:P,iv:X,salt:B})}},w=v.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:T}),encrypt:function(I,R,M,B){B=this.cfg.extend(B);var P=B.kdf.execute(M,I.keySize,I.ivSize);B.iv=P.iv;var X=C.encrypt.call(this,I,R,P.key,B);return X.mixIn(P),X},decrypt:function(I,R,M,B){B=this.cfg.extend(B),R=this._parse(R,B.format);var P=B.kdf.execute(M,I.keySize,I.ivSize,R.salt);B.iv=P.iv;var X=C.decrypt.call(this,I,R,P.key,B);return X}})}()})},OPEp:function(k,D,n){},OQFs:function(k,D,n){var y=n("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]}};k.exports=x},OS9S:function(k,D,n){var y=n("bYtY"),p=y.inherits,x=n("Gev7"),v=n("mFDi");function m(u){x.call(this,u),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(u,o){o?this._temporaryDisplayables.push(u):this._displayables.push(u),this.dirty()},m.prototype.addDisplayables=function(u,o){o=o||!1;for(var i=0;i<u.length;i++)this.addDisplayable(u[i],o)},m.prototype.eachPendingDisplayable=function(u){for(var o=this._cursor;o<this._displayables.length;o++)u&&u(this._displayables[o]);for(var o=0;o<this._temporaryDisplayables.length;o++)u&&u(this._temporaryDisplayables[o])},m.prototype.update=function(){this.updateTransform();for(var u=this._cursor;u<this._displayables.length;u++){var o=this._displayables[u];o.parent=this,o.update(),o.parent=null}for(var u=0;u<this._temporaryDisplayables.length;u++){var o=this._temporaryDisplayables[u];o.parent=this,o.update(),o.parent=null}},m.prototype.brush=function(u,o){for(var i=this._cursor;i<this._displayables.length;i++){var t=this._displayables[i];t.beforeBrush&&t.beforeBrush(u),t.brush(u,i===this._cursor?null:this._displayables[i-1]),t.afterBrush&&t.afterBrush(u)}this._cursor=i;for(var i=0;i<this._temporaryDisplayables.length;i++){var t=this._temporaryDisplayables[i];t.beforeBrush&&t.beforeBrush(u),t.brush(u,i===0?null:this._temporaryDisplayables[i-1]),t.afterBrush&&t.afterBrush(u)}this._temporaryDisplayables=[],this.notClear=!0};var f=[];m.prototype.getBoundingRect=function(){if(!this._rect){for(var u=new v(Infinity,Infinity,-Infinity,-Infinity),o=0;o<this._displayables.length;o++){var i=this._displayables[o],t=i.getBoundingRect().clone();i.needLocalTransform()&&t.applyTransform(i.getLocalTransform(f)),u.union(t)}this._rect=u}return this._rect},m.prototype.contain=function(u,o){var i=this.transformCoordToLocal(u,o),t=this.getBoundingRect();if(t.contain(i[0],i[1]))for(var s=0;s<this._displayables.length;s++){var e=this._displayables[s];if(e.contain(u,o))return!0}return!1},p(m,x);var d=m;k.exports=d},OUJF:function(k,D,n){var y=n("ProS"),p=n("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(k,D,n){var y=n("T4UG"),p=n("MwEJ"),x=n("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}});k.exports=v},OaEy:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("bKJz"),v=n.n(x),m=n("R9oj")},"Of+w":function(k,D,n){var y=n("Cwc5"),p=n("Kz5y"),x=y(p,"WeakMap");k.exports=x},Ol7k:function(k,D,n){"use strict";var y=n("PKem"),p=n("ZX9x");y.b.Sider=p.b,D.a=y.b},OlYY:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),v=n("bYtY"),m=n("ItGF"),f=n("4NO4"),d=n("UOVi"),u=n("zDms"),o=v.each,i=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,a,c){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var h=s(r);this.settledOption=h,this.mergeDefaultAndTheme(r,c),this.doInit(h)},mergeOption:function(r){var a=s(r);v.merge(this.option,r,!0),v.merge(this.settledOption,a,!0),this.doInit(a)},doInit:function(r){var a=this.option;m.canvasSupported||(a.realtime=!1),this._setDefaultThrottle(r),e(this,r);var c=this.settledOption;o([["start","startValue"],["end","endValue"]],function(h,g){this._rangePropMode[g]==="value"&&(a[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(a,c,h,g){var A=this.dependentModels[a.axis][c],b=A.__dzAxisProxy||(A.__dzAxisProxy=new u(a.name,c,this,g));r[a.name+"_"+c]=b},this)},_resetTarget:function(){var r=this.option,a=this._judgeAutoMode();i(function(c){var h=c.axisIndex;r[h]=f.normalizeToArray(r[h])},this),a==="axisIndex"?this._autoSetAxisIndex():a==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var r=this.option,a=!1;i(function(h){r[h.axisIndex]!=null&&(a=!0)},this);var c=r.orient;if(c==null&&a)return"orient";if(!a)return c==null&&(r.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var r=!0,a=this.get("orient",!0),c=this.option,h=this.dependentModels;if(r){var g=a==="vertical"?"y":"x";h[g+"Axis"].length?(c[g+"AxisIndex"]=[0],r=!1):o(h.singleAxis,function(A){r&&A.get("orient",!0)===a&&(c.singleAxisIndex=[A.componentIndex],r=!1)})}r&&i(function(A){if(!r)return;var b=[],S=this.dependentModels[A.axis];if(S.length&&!b.length)for(var E=0,C=S.length;E<C;E++)S[E].get("type")==="category"&&b.push(E);c[A.axisIndex]=b,b.length&&(r=!1)},this),r&&this.ecModel.eachSeries(function(A){this._isSeriesHasAllAxesTypeOf(A,"value")&&i(function(b){var S=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(S,E)<0&&S.push(E)})},this)},_autoSetOrient:function(){var r;this.eachTargetAxis(function(a){!r&&(r=a.name)},this),this.option.orient=r==="y"?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(r,a){var c=!0;return i(function(h){var g=r.get(h.axisIndex),A=this.dependentModels[h.axis][g];(!A||A.get("type")!==a)&&(c=!1)},this),c},_setDefaultThrottle:function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var r;return i(function(a){if(r==null){var c=this.get(a.axisIndex);c.length&&(r=this.dependentModels[a.axis][c[0]])}},this),r},eachTargetAxis:function(r,a){var c=this.ecModel;i(function(h){o(this.get(h.axisIndex),function(g){r.call(a,h,g,this,c)},this)},this)},getAxisProxy:function(r,a){return this._axisProxies[r+"_"+a]},getAxisModel:function(r,a){var c=this.getAxisProxy(r,a);return c&&c.getAxisModel()},setRawRange:function(r){var a=this.option,c=this.settledOption;o([["start","startValue"],["end","endValue"]],function(h){(r[h[0]]!=null||r[h[1]]!=null)&&(a[h[0]]=c[h[0]]=r[h[0]],a[h[1]]=c[h[1]]=r[h[1]])},this),e(this,r)},setCalculatedRange:function(r){var a=this.option;o(["start","startValue","end","endValue"],function(c){a[c]=r[c]})},getPercentRange:function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},getValueRange:function(r,a){if(r==null&&a==null){var c=this.findRepresentativeAxisProxy();if(c)return c.getDataValueWindow()}else return this.getAxisProxy(r,a).getDataValueWindow()},findRepresentativeAxisProxy:function(r){if(r)return r.__dzAxisProxy;var a=this._axisProxies;for(var c in a)if(a.hasOwnProperty(c)&&a[c].hostedBy(this))return a[c];for(var c in a)if(a.hasOwnProperty(c)&&!a[c].hostedBy(this))return a[c]},getRangePropMode:function(){return this._rangePropMode.slice()}});function s(r){var a={};return o(["start","end","startValue","endValue","throttle"],function(c){r.hasOwnProperty(c)&&(a[c]=r[c])}),a}function e(r,a){var c=r._rangePropMode,h=r.get("rangeMode");o([["start","startValue"],["end","endValue"]],function(g,A){var b=a[g[0]]!=null,S=a[g[1]]!=null;b&&!S?c[A]="percent":!b&&S?c[A]="value":h?c[A]=h[A]:b&&(c[A]="percent")})}var l=t;k.exports=l},OnYD:function(k,D,n){},"Oy/b":function(k,D,n){(function(p,x){k.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(u){return v[u]}.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 Nt(ce,xe,Oe){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=ce,this.start=xe,this.end=Oe}return Nt.range=function(xe,Oe){return Oe?!xe||!xe.loc||!Oe.loc||xe.loc.lexer!==Oe.loc.lexer?null:new Nt(xe.loc.lexer,xe.loc.start,Oe.loc.end):xe&&xe.loc},Nt}(),f=function(){function Nt(xe,Oe){this.text=void 0,this.loc=void 0,this.text=xe,this.loc=Oe}var ce=Nt.prototype;return ce.range=function(Oe,Qe){return new Nt(Qe,m.range(this,Oe))},Nt}(),d=function Nt(ce,xe){this.position=void 0;var Oe="KaTeX parse error: "+ce,Qe,Dt=xe&&xe.loc;if(Dt&&Dt.start<=Dt.end){var lr=Dt.lexer.input;Qe=Dt.start;var Zr=Dt.end;Qe===lr.length?Oe+=" at end of input: ":Oe+=" at position "+(Qe+1)+": ";var mn=lr.slice(Qe,Zr).replace(/[^]/g,"$&\u0332"),Dn;Qe>15?Dn="\u2026"+lr.slice(Qe-15,Qe):Dn=lr.slice(0,Qe);var ui;Zr+15<lr.length?ui=lr.slice(Zr,Zr+15)+"\u2026":ui=lr.slice(Zr),Oe+=Dn+mn+ui}var Si=new Error(Oe);return Si.name="ParseError",Si.__proto__=Nt.prototype,Si.position=Qe,Si};d.prototype.__proto__=Error.prototype;var u=d,o=function(ce,xe){return ce.indexOf(xe)!==-1},i=function(ce,xe){return ce===void 0?xe:ce},t=/([A-Z])/g,s=function(ce){return ce.replace(t,"-$1").toLowerCase()},e={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},l=/[&><"']/g;function r(Nt){return String(Nt).replace(l,function(ce){return e[ce]})}var a=function Nt(ce){return ce.type==="ordgroup"||ce.type==="color"?ce.body.length===1?Nt(ce.body[0]):ce:ce.type==="font"?Nt(ce.body):ce},c=function(ce){var xe=a(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*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(ce);return xe!=null?xe[1]:"_relative"},A={contains:o,deflt:i,escape:r,hyphenate:s,getBaseElem:a,isCharacterBox:c,protocolFromUrl:g},b=function(){function Nt(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=Nt.prototype;return ce.reportNonstrict=function(Oe,Qe,Dt){var lr=this.strict;if(typeof lr=="function"&&(lr=lr(Oe,Qe,Dt)),!lr||lr==="ignore")return;if(lr===!0||lr==="error")throw new u("LaTeX-incompatible input and strict mode is set to 'error': "+(Qe+" ["+Oe+"]"),Dt);lr==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Qe+" ["+Oe+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+lr+"': "+Qe+" ["+Oe+"]"))},ce.useStrictBehavior=function(Oe,Qe,Dt){var lr=this.strict;if(typeof lr=="function")try{lr=lr(Oe,Qe,Dt)}catch(Zr){lr="error"}return!lr||lr==="ignore"?!1:lr===!0||lr==="error"?!0:lr==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Qe+" ["+Oe+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+lr+"': "+Qe+" ["+Oe+"]")),!1)},ce.isTrusted=function(Oe){Oe.url&&!Oe.protocol&&(Oe.protocol=A.protocolFromUrl(Oe.url));var Qe=typeof this.trust=="function"?this.trust(Oe):this.trust;return Boolean(Qe)},Nt}(),S=function(){function Nt(xe,Oe,Qe){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=xe,this.size=Oe,this.cramped=Qe}var ce=Nt.prototype;return ce.sup=function(){return M[B[this.id]]},ce.sub=function(){return M[P[this.id]]},ce.fracNum=function(){return M[X[this.id]]},ce.fracDen=function(){return M[F[this.id]]},ce.cramp=function(){return M[j[this.id]]},ce.text=function(){return M[K[this.id]]},ce.isTight=function(){return this.size>=2},Nt}(),E=0,C=1,_=2,T=3,w=4,O=5,I=6,R=7,M=[new S(E,0,!1),new S(C,0,!0),new S(_,1,!1),new S(T,1,!0),new S(w,2,!1),new S(O,2,!0),new S(I,3,!1),new S(R,3,!0)],B=[w,O,w,O,I,R,I,R],P=[O,O,O,O,R,R,R,R],X=[_,T,w,O,I,R,I,R],F=[T,T,O,O,R,R,R,R],j=[C,C,T,T,O,O,R,R],K=[E,C,_,T,_,T,_,T],z={DISPLAY:M[E],TEXT:M[_],SCRIPT:M[w],SCRIPTSCRIPT:M[I]},V=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Q(Nt){for(var ce=0;ce<V.length;ce++)for(var xe=V[ce],Oe=0;Oe<xe.blocks.length;Oe++){var Qe=xe.blocks[Oe];if(Nt>=Qe[0]&&Nt<=Qe[1])return xe.name}return null}var G=[];V.forEach(function(Nt){return Nt.blocks.forEach(function(ce){return G.push.apply(G,ce)})});function te(Nt){for(var ce=0;ce<G.length;ce+=2)if(Nt>=G[ce]&&Nt<=G[ce+1])return!0;return!1}var q=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"},we=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"},Ie=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"},Me=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,Oe){var Qe=Oe-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"},Ve=function(ce,xe,Oe){xe=1e3*xe;var Qe="";switch(ce){case"sqrtMain":Qe=le(xe,q);break;case"sqrtSize1":Qe=re(xe,q);break;case"sqrtSize2":Qe=we(xe,q);break;case"sqrtSize3":Qe=Ie(xe,q);break;case"sqrtSize4":Qe=Me(xe,q);break;case"sqrtTall":Qe=Je(xe,q,Oe)}return Qe},ut={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Fe=function(){function Nt(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=Nt.prototype;return ce.hasClass=function(Oe){return A.contains(this.classes,Oe)},ce.toNode=function(){for(var Oe=document.createDocumentFragment(),Qe=0;Qe<this.children.length;Qe++)Oe.appendChild(this.children[Qe].toNode());return Oe},ce.toMarkup=function(){for(var Oe="",Qe=0;Qe<this.children.length;Qe++)Oe+=this.children[Qe].toMarkup();return Oe},ce.toText=function(){var Oe=function(Dt){return Dt.toText()};return this.children.map(Oe).join("")},Nt}(),ae=function(ce){return ce.filter(function(xe){return xe}).join(" ")},at=function(ce,xe,Oe){if(this.classes=ce||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=Oe||{},xe){xe.style.isTight()&&this.classes.push("mtight");var Qe=xe.getColor();Qe&&(this.style.color=Qe)}},he=function(ce){var xe=document.createElement(ce);xe.className=ae(this.classes);for(var Oe in this.style)this.style.hasOwnProperty(Oe)&&(xe.style[Oe]=this.style[Oe]);for(var Qe in this.attributes)this.attributes.hasOwnProperty(Qe)&&xe.setAttribute(Qe,this.attributes[Qe]);for(var Dt=0;Dt<this.children.length;Dt++)xe.appendChild(this.children[Dt].toNode());return xe},J=function(ce){var xe="<"+ce;this.classes.length&&(xe+=' class="'+A.escape(ae(this.classes))+'"');var Oe="";for(var Qe in this.style)this.style.hasOwnProperty(Qe)&&(Oe+=A.hyphenate(Qe)+":"+this.style[Qe]+";");Oe&&(xe+=' style="'+A.escape(Oe)+'"');for(var Dt in this.attributes)this.attributes.hasOwnProperty(Dt)&&(xe+=" "+Dt+'="'+A.escape(this.attributes[Dt])+'"');xe+=">";for(var lr=0;lr<this.children.length;lr++)xe+=this.children[lr].toMarkup();return xe+="</"+ce+">",xe},Y=function(){function Nt(xe,Oe,Qe,Dt){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,at.call(this,xe,Qe,Dt),this.children=Oe||[]}var ce=Nt.prototype;return ce.setAttribute=function(Oe,Qe){this.attributes[Oe]=Qe},ce.hasClass=function(Oe){return A.contains(this.classes,Oe)},ce.toNode=function(){return he.call(this,"span")},ce.toMarkup=function(){return J.call(this,"span")},Nt}(),$=function(){function Nt(xe,Oe,Qe,Dt){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,at.call(this,Oe,Dt),this.children=Qe||[],this.setAttribute("href",xe)}var ce=Nt.prototype;return ce.setAttribute=function(Oe,Qe){this.attributes[Oe]=Qe},ce.hasClass=function(Oe){return A.contains(this.classes,Oe)},ce.toNode=function(){return he.call(this,"a")},ce.toMarkup=function(){return J.call(this,"a")},Nt}(),de=function(){function Nt(xe,Oe,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=Oe,this.src=xe,this.classes=["mord"],this.style=Qe}var ce=Nt.prototype;return ce.hasClass=function(Oe){return A.contains(this.classes,Oe)},ce.toNode=function(){var Oe=document.createElement("img");Oe.src=this.src,Oe.alt=this.alt,Oe.className="mord";for(var Qe in this.style)this.style.hasOwnProperty(Qe)&&(Oe.style[Qe]=this.style[Qe]);return Oe},ce.toMarkup=function(){var Oe="<img src='"+this.src+" 'alt='"+this.alt+"' ",Qe="";for(var Dt in this.style)this.style.hasOwnProperty(Dt)&&(Qe+=A.hyphenate(Dt)+":"+this.style[Dt]+";");return Qe&&(Oe+=' style="'+A.escape(Qe)+'"'),Oe+="'/>",Oe},Nt}(),be={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Ce=function(){function Nt(xe,Oe,Qe,Dt,lr,Zr,mn,Dn){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=Oe||0,this.depth=Qe||0,this.italic=Dt||0,this.skew=lr||0,this.width=Zr||0,this.classes=mn||[],this.style=Dn||{},this.maxFontSize=0;var ui=Q(this.text.charCodeAt(0));ui&&this.classes.push(ui+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=be[this.text])}var ce=Nt.prototype;return ce.hasClass=function(Oe){return A.contains(this.classes,Oe)},ce.toNode=function(){var Oe=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 Dt in this.style)this.style.hasOwnProperty(Dt)&&(Qe=Qe||document.createElement("span"),Qe.style[Dt]=this.style[Dt]);return Qe?(Qe.appendChild(Oe),Qe):Oe},ce.toMarkup=function(){var Oe=!1,Qe="<span";this.classes.length&&(Oe=!0,Qe+=' class="',Qe+=A.escape(ae(this.classes)),Qe+='"');var Dt="";this.italic>0&&(Dt+="margin-right:"+this.italic+"em;");for(var lr in this.style)this.style.hasOwnProperty(lr)&&(Dt+=A.hyphenate(lr)+":"+this.style[lr]+";");Dt&&(Oe=!0,Qe+=' style="'+A.escape(Dt)+'"');var Zr=A.escape(this.text);return Oe?(Qe+=">",Qe+=Zr,Qe+="</span>",Qe):Zr},Nt}(),Be=function(){function Nt(xe,Oe){this.children=void 0,this.attributes=void 0,this.children=xe||[],this.attributes=Oe||{}}var ce=Nt.prototype;return ce.toNode=function(){var Oe="http://www.w3.org/2000/svg",Qe=document.createElementNS(Oe,"svg");for(var Dt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Dt)&&Qe.setAttribute(Dt,this.attributes[Dt]);for(var lr=0;lr<this.children.length;lr++)Qe.appendChild(this.children[lr].toNode());return Qe},ce.toMarkup=function(){var Oe="<svg";for(var Qe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Qe)&&(Oe+=" "+Qe+"='"+this.attributes[Qe]+"'");Oe+=">";for(var Dt=0;Dt<this.children.length;Dt++)Oe+=this.children[Dt].toMarkup();return Oe+="</svg>",Oe},Nt}(),fe=function(){function Nt(xe,Oe){this.pathName=void 0,this.alternate=void 0,this.pathName=xe,this.alternate=Oe}var ce=Nt.prototype;return ce.toNode=function(){var Oe="http://www.w3.org/2000/svg",Qe=document.createElementNS(Oe,"path");return this.alternate?Qe.setAttribute("d",this.alternate):Qe.setAttribute("d",ut[this.pathName]),Qe},ce.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+ut[this.pathName]+"'/>"},Nt}(),Se=function(){function Nt(xe){this.attributes=void 0,this.attributes=xe||{}}var ce=Nt.prototype;return ce.toNode=function(){var Oe="http://www.w3.org/2000/svg",Qe=document.createElementNS(Oe,"line");for(var Dt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Dt)&&Qe.setAttribute(Dt,this.attributes[Dt]);return Qe},ce.toMarkup=function(){var Oe="<line";for(var Qe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Qe)&&(Oe+=" "+Qe+"='"+this.attributes[Qe]+"'");return Oe+="/>",Oe},Nt}();function ke(Nt){if(Nt instanceof Ce)return Nt;throw new Error("Expected symbolNode but got "+String(Nt)+".")}function rt(Nt){if(Nt instanceof Y)return Nt;throw new Error("Expected span<HtmlDomNode> but got "+String(Nt)+".")}var xt={"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]}},ht={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},He={\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function ir(Nt,ce){xt[Nt]=ce}function ct(Nt,ce,xe){if(!xt[ce])throw new Error("Font metrics not found for font: "+ce+".");var Oe=Nt.charCodeAt(0),Qe=xt[ce][Oe];if(!Qe&&Nt[0]in He&&(Oe=He[Nt[0]].charCodeAt(0),Qe=xt[ce][Oe]),!Qe&&xe==="text"&&(te(Oe)&&(Qe=xt[ce][77])),Qe)return{depth:Qe[0],height:Qe[1],italic:Qe[2],skew:Qe[3],width:Qe[4]}}var Xt={};function hr(Nt){var ce;if(Nt>=5?ce=0:Nt>=3?ce=1:ce=2,!Xt[ce]){var xe=Xt[ce]={cssEmPerMu:ht.quad[ce]/18};for(var Oe in ht)ht.hasOwnProperty(Oe)&&(xe[Oe]=ht[Oe][ce])}return Xt[ce]}var Jt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Pt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Wt={math:{},text:{}},Ge=Wt;function pe(Nt,ce,xe,Oe,Qe,Dt){Wt[Nt][Qe]={font:ce,group:xe,replace:Oe},Dt&&Oe&&(Wt[Nt][Oe]=Wt[Nt][Qe])}var se="math",lt="text",qe="main",me="ams",Ht="accent-token",yr="bin",At="close",rr="inner",ur="mathord",vn="op-token",Bt="open",sr="punct",Yt="rel",pt="spacing",it="textord";pe(se,qe,Yt,"\u2261","\\equiv",!0),pe(se,qe,Yt,"\u227A","\\prec",!0),pe(se,qe,Yt,"\u227B","\\succ",!0),pe(se,qe,Yt,"\u223C","\\sim",!0),pe(se,qe,Yt,"\u22A5","\\perp"),pe(se,qe,Yt,"\u2AAF","\\preceq",!0),pe(se,qe,Yt,"\u2AB0","\\succeq",!0),pe(se,qe,Yt,"\u2243","\\simeq",!0),pe(se,qe,Yt,"\u2223","\\mid",!0),pe(se,qe,Yt,"\u226A","\\ll",!0),pe(se,qe,Yt,"\u226B","\\gg",!0),pe(se,qe,Yt,"\u224D","\\asymp",!0),pe(se,qe,Yt,"\u2225","\\parallel"),pe(se,qe,Yt,"\u22C8","\\bowtie",!0),pe(se,qe,Yt,"\u2323","\\smile",!0),pe(se,qe,Yt,"\u2291","\\sqsubseteq",!0),pe(se,qe,Yt,"\u2292","\\sqsupseteq",!0),pe(se,qe,Yt,"\u2250","\\doteq",!0),pe(se,qe,Yt,"\u2322","\\frown",!0),pe(se,qe,Yt,"\u220B","\\ni",!0),pe(se,qe,Yt,"\u221D","\\propto",!0),pe(se,qe,Yt,"\u22A2","\\vdash",!0),pe(se,qe,Yt,"\u22A3","\\dashv",!0),pe(se,qe,Yt,"\u220B","\\owns"),pe(se,qe,sr,".","\\ldotp"),pe(se,qe,sr,"\u22C5","\\cdotp"),pe(se,qe,it,"#","\\#"),pe(lt,qe,it,"#","\\#"),pe(se,qe,it,"&","\\&"),pe(lt,qe,it,"&","\\&"),pe(se,qe,it,"\u2135","\\aleph",!0),pe(se,qe,it,"\u2200","\\forall",!0),pe(se,qe,it,"\u210F","\\hbar",!0),pe(se,qe,it,"\u2203","\\exists",!0),pe(se,qe,it,"\u2207","\\nabla",!0),pe(se,qe,it,"\u266D","\\flat",!0),pe(se,qe,it,"\u2113","\\ell",!0),pe(se,qe,it,"\u266E","\\natural",!0),pe(se,qe,it,"\u2663","\\clubsuit",!0),pe(se,qe,it,"\u2118","\\wp",!0),pe(se,qe,it,"\u266F","\\sharp",!0),pe(se,qe,it,"\u2662","\\diamondsuit",!0),pe(se,qe,it,"\u211C","\\Re",!0),pe(se,qe,it,"\u2661","\\heartsuit",!0),pe(se,qe,it,"\u2111","\\Im",!0),pe(se,qe,it,"\u2660","\\spadesuit",!0),pe(lt,qe,it,"\xA7","\\S",!0),pe(lt,qe,it,"\xB6","\\P",!0),pe(se,qe,it,"\u2020","\\dag"),pe(lt,qe,it,"\u2020","\\dag"),pe(lt,qe,it,"\u2020","\\textdagger"),pe(se,qe,it,"\u2021","\\ddag"),pe(lt,qe,it,"\u2021","\\ddag"),pe(lt,qe,it,"\u2021","\\textdaggerdbl"),pe(se,qe,At,"\u23B1","\\rmoustache",!0),pe(se,qe,Bt,"\u23B0","\\lmoustache",!0),pe(se,qe,At,"\u27EF","\\rgroup",!0),pe(se,qe,Bt,"\u27EE","\\lgroup",!0),pe(se,qe,yr,"\u2213","\\mp",!0),pe(se,qe,yr,"\u2296","\\ominus",!0),pe(se,qe,yr,"\u228E","\\uplus",!0),pe(se,qe,yr,"\u2293","\\sqcap",!0),pe(se,qe,yr,"\u2217","\\ast"),pe(se,qe,yr,"\u2294","\\sqcup",!0),pe(se,qe,yr,"\u25EF","\\bigcirc"),pe(se,qe,yr,"\u2219","\\bullet"),pe(se,qe,yr,"\u2021","\\ddagger"),pe(se,qe,yr,"\u2240","\\wr",!0),pe(se,qe,yr,"\u2A3F","\\amalg"),pe(se,qe,yr,"&","\\And"),pe(se,qe,Yt,"\u27F5","\\longleftarrow",!0),pe(se,qe,Yt,"\u21D0","\\Leftarrow",!0),pe(se,qe,Yt,"\u27F8","\\Longleftarrow",!0),pe(se,qe,Yt,"\u27F6","\\longrightarrow",!0),pe(se,qe,Yt,"\u21D2","\\Rightarrow",!0),pe(se,qe,Yt,"\u27F9","\\Longrightarrow",!0),pe(se,qe,Yt,"\u2194","\\leftrightarrow",!0),pe(se,qe,Yt,"\u27F7","\\longleftrightarrow",!0),pe(se,qe,Yt,"\u21D4","\\Leftrightarrow",!0),pe(se,qe,Yt,"\u27FA","\\Longleftrightarrow",!0),pe(se,qe,Yt,"\u21A6","\\mapsto",!0),pe(se,qe,Yt,"\u27FC","\\longmapsto",!0),pe(se,qe,Yt,"\u2197","\\nearrow",!0),pe(se,qe,Yt,"\u21A9","\\hookleftarrow",!0),pe(se,qe,Yt,"\u21AA","\\hookrightarrow",!0),pe(se,qe,Yt,"\u2198","\\searrow",!0),pe(se,qe,Yt,"\u21BC","\\leftharpoonup",!0),pe(se,qe,Yt,"\u21C0","\\rightharpoonup",!0),pe(se,qe,Yt,"\u2199","\\swarrow",!0),pe(se,qe,Yt,"\u21BD","\\leftharpoondown",!0),pe(se,qe,Yt,"\u21C1","\\rightharpoondown",!0),pe(se,qe,Yt,"\u2196","\\nwarrow",!0),pe(se,qe,Yt,"\u21CC","\\rightleftharpoons",!0),pe(se,me,Yt,"\u226E","\\nless",!0),pe(se,me,Yt,"\uE010","\\@nleqslant"),pe(se,me,Yt,"\uE011","\\@nleqq"),pe(se,me,Yt,"\u2A87","\\lneq",!0),pe(se,me,Yt,"\u2268","\\lneqq",!0),pe(se,me,Yt,"\uE00C","\\@lvertneqq"),pe(se,me,Yt,"\u22E6","\\lnsim",!0),pe(se,me,Yt,"\u2A89","\\lnapprox",!0),pe(se,me,Yt,"\u2280","\\nprec",!0),pe(se,me,Yt,"\u22E0","\\npreceq",!0),pe(se,me,Yt,"\u22E8","\\precnsim",!0),pe(se,me,Yt,"\u2AB9","\\precnapprox",!0),pe(se,me,Yt,"\u2241","\\nsim",!0),pe(se,me,Yt,"\uE006","\\@nshortmid"),pe(se,me,Yt,"\u2224","\\nmid",!0),pe(se,me,Yt,"\u22AC","\\nvdash",!0),pe(se,me,Yt,"\u22AD","\\nvDash",!0),pe(se,me,Yt,"\u22EA","\\ntriangleleft"),pe(se,me,Yt,"\u22EC","\\ntrianglelefteq",!0),pe(se,me,Yt,"\u228A","\\subsetneq",!0),pe(se,me,Yt,"\uE01A","\\@varsubsetneq"),pe(se,me,Yt,"\u2ACB","\\subsetneqq",!0),pe(se,me,Yt,"\uE017","\\@varsubsetneqq"),pe(se,me,Yt,"\u226F","\\ngtr",!0),pe(se,me,Yt,"\uE00F","\\@ngeqslant"),pe(se,me,Yt,"\uE00E","\\@ngeqq"),pe(se,me,Yt,"\u2A88","\\gneq",!0),pe(se,me,Yt,"\u2269","\\gneqq",!0),pe(se,me,Yt,"\uE00D","\\@gvertneqq"),pe(se,me,Yt,"\u22E7","\\gnsim",!0),pe(se,me,Yt,"\u2A8A","\\gnapprox",!0),pe(se,me,Yt,"\u2281","\\nsucc",!0),pe(se,me,Yt,"\u22E1","\\nsucceq",!0),pe(se,me,Yt,"\u22E9","\\succnsim",!0),pe(se,me,Yt,"\u2ABA","\\succnapprox",!0),pe(se,me,Yt,"\u2246","\\ncong",!0),pe(se,me,Yt,"\uE007","\\@nshortparallel"),pe(se,me,Yt,"\u2226","\\nparallel",!0),pe(se,me,Yt,"\u22AF","\\nVDash",!0),pe(se,me,Yt,"\u22EB","\\ntriangleright"),pe(se,me,Yt,"\u22ED","\\ntrianglerighteq",!0),pe(se,me,Yt,"\uE018","\\@nsupseteqq"),pe(se,me,Yt,"\u228B","\\supsetneq",!0),pe(se,me,Yt,"\uE01B","\\@varsupsetneq"),pe(se,me,Yt,"\u2ACC","\\supsetneqq",!0),pe(se,me,Yt,"\uE019","\\@varsupsetneqq"),pe(se,me,Yt,"\u22AE","\\nVdash",!0),pe(se,me,Yt,"\u2AB5","\\precneqq",!0),pe(se,me,Yt,"\u2AB6","\\succneqq",!0),pe(se,me,Yt,"\uE016","\\@nsubseteqq"),pe(se,me,yr,"\u22B4","\\unlhd"),pe(se,me,yr,"\u22B5","\\unrhd"),pe(se,me,Yt,"\u219A","\\nleftarrow",!0),pe(se,me,Yt,"\u219B","\\nrightarrow",!0),pe(se,me,Yt,"\u21CD","\\nLeftarrow",!0),pe(se,me,Yt,"\u21CF","\\nRightarrow",!0),pe(se,me,Yt,"\u21AE","\\nleftrightarrow",!0),pe(se,me,Yt,"\u21CE","\\nLeftrightarrow",!0),pe(se,me,Yt,"\u25B3","\\vartriangle"),pe(se,me,it,"\u210F","\\hslash"),pe(se,me,it,"\u25BD","\\triangledown"),pe(se,me,it,"\u25CA","\\lozenge"),pe(se,me,it,"\u24C8","\\circledS"),pe(se,me,it,"\xAE","\\circledR"),pe(lt,me,it,"\xAE","\\circledR"),pe(se,me,it,"\u2221","\\measuredangle",!0),pe(se,me,it,"\u2204","\\nexists"),pe(se,me,it,"\u2127","\\mho"),pe(se,me,it,"\u2132","\\Finv",!0),pe(se,me,it,"\u2141","\\Game",!0),pe(se,me,it,"\u2035","\\backprime"),pe(se,me,it,"\u25B2","\\blacktriangle"),pe(se,me,it,"\u25BC","\\blacktriangledown"),pe(se,me,it,"\u25A0","\\blacksquare"),pe(se,me,it,"\u29EB","\\blacklozenge"),pe(se,me,it,"\u2605","\\bigstar"),pe(se,me,it,"\u2222","\\sphericalangle",!0),pe(se,me,it,"\u2201","\\complement",!0),pe(se,me,it,"\xF0","\\eth",!0),pe(se,me,it,"\u2571","\\diagup"),pe(se,me,it,"\u2572","\\diagdown"),pe(se,me,it,"\u25A1","\\square"),pe(se,me,it,"\u25A1","\\Box"),pe(se,me,it,"\u25CA","\\Diamond"),pe(se,me,it,"\xA5","\\yen",!0),pe(lt,me,it,"\xA5","\\yen",!0),pe(se,me,it,"\u2713","\\checkmark",!0),pe(lt,me,it,"\u2713","\\checkmark"),pe(se,me,it,"\u2136","\\beth",!0),pe(se,me,it,"\u2138","\\daleth",!0),pe(se,me,it,"\u2137","\\gimel",!0),pe(se,me,it,"\u03DD","\\digamma",!0),pe(se,me,it,"\u03F0","\\varkappa"),pe(se,me,Bt,"\u250C","\\ulcorner",!0),pe(se,me,At,"\u2510","\\urcorner",!0),pe(se,me,Bt,"\u2514","\\llcorner",!0),pe(se,me,At,"\u2518","\\lrcorner",!0),pe(se,me,Yt,"\u2266","\\leqq",!0),pe(se,me,Yt,"\u2A7D","\\leqslant",!0),pe(se,me,Yt,"\u2A95","\\eqslantless",!0),pe(se,me,Yt,"\u2272","\\lesssim",!0),pe(se,me,Yt,"\u2A85","\\lessapprox",!0),pe(se,me,Yt,"\u224A","\\approxeq",!0),pe(se,me,yr,"\u22D6","\\lessdot"),pe(se,me,Yt,"\u22D8","\\lll",!0),pe(se,me,Yt,"\u2276","\\lessgtr",!0),pe(se,me,Yt,"\u22DA","\\lesseqgtr",!0),pe(se,me,Yt,"\u2A8B","\\lesseqqgtr",!0),pe(se,me,Yt,"\u2251","\\doteqdot"),pe(se,me,Yt,"\u2253","\\risingdotseq",!0),pe(se,me,Yt,"\u2252","\\fallingdotseq",!0),pe(se,me,Yt,"\u223D","\\backsim",!0),pe(se,me,Yt,"\u22CD","\\backsimeq",!0),pe(se,me,Yt,"\u2AC5","\\subseteqq",!0),pe(se,me,Yt,"\u22D0","\\Subset",!0),pe(se,me,Yt,"\u228F","\\sqsubset",!0),pe(se,me,Yt,"\u227C","\\preccurlyeq",!0),pe(se,me,Yt,"\u22DE","\\curlyeqprec",!0),pe(se,me,Yt,"\u227E","\\precsim",!0),pe(se,me,Yt,"\u2AB7","\\precapprox",!0),pe(se,me,Yt,"\u22B2","\\vartriangleleft"),pe(se,me,Yt,"\u22B4","\\trianglelefteq"),pe(se,me,Yt,"\u22A8","\\vDash",!0),pe(se,me,Yt,"\u22AA","\\Vvdash",!0),pe(se,me,Yt,"\u2323","\\smallsmile"),pe(se,me,Yt,"\u2322","\\smallfrown"),pe(se,me,Yt,"\u224F","\\bumpeq",!0),pe(se,me,Yt,"\u224E","\\Bumpeq",!0),pe(se,me,Yt,"\u2267","\\geqq",!0),pe(se,me,Yt,"\u2A7E","\\geqslant",!0),pe(se,me,Yt,"\u2A96","\\eqslantgtr",!0),pe(se,me,Yt,"\u2273","\\gtrsim",!0),pe(se,me,Yt,"\u2A86","\\gtrapprox",!0),pe(se,me,yr,"\u22D7","\\gtrdot"),pe(se,me,Yt,"\u22D9","\\ggg",!0),pe(se,me,Yt,"\u2277","\\gtrless",!0),pe(se,me,Yt,"\u22DB","\\gtreqless",!0),pe(se,me,Yt,"\u2A8C","\\gtreqqless",!0),pe(se,me,Yt,"\u2256","\\eqcirc",!0),pe(se,me,Yt,"\u2257","\\circeq",!0),pe(se,me,Yt,"\u225C","\\triangleq",!0),pe(se,me,Yt,"\u223C","\\thicksim"),pe(se,me,Yt,"\u2248","\\thickapprox"),pe(se,me,Yt,"\u2AC6","\\supseteqq",!0),pe(se,me,Yt,"\u22D1","\\Supset",!0),pe(se,me,Yt,"\u2290","\\sqsupset",!0),pe(se,me,Yt,"\u227D","\\succcurlyeq",!0),pe(se,me,Yt,"\u22DF","\\curlyeqsucc",!0),pe(se,me,Yt,"\u227F","\\succsim",!0),pe(se,me,Yt,"\u2AB8","\\succapprox",!0),pe(se,me,Yt,"\u22B3","\\vartriangleright"),pe(se,me,Yt,"\u22B5","\\trianglerighteq"),pe(se,me,Yt,"\u22A9","\\Vdash",!0),pe(se,me,Yt,"\u2223","\\shortmid"),pe(se,me,Yt,"\u2225","\\shortparallel"),pe(se,me,Yt,"\u226C","\\between",!0),pe(se,me,Yt,"\u22D4","\\pitchfork",!0),pe(se,me,Yt,"\u221D","\\varpropto"),pe(se,me,Yt,"\u25C0","\\blacktriangleleft"),pe(se,me,Yt,"\u2234","\\therefore",!0),pe(se,me,Yt,"\u220D","\\backepsilon"),pe(se,me,Yt,"\u25B6","\\blacktriangleright"),pe(se,me,Yt,"\u2235","\\because",!0),pe(se,me,Yt,"\u22D8","\\llless"),pe(se,me,Yt,"\u22D9","\\gggtr"),pe(se,me,yr,"\u22B2","\\lhd"),pe(se,me,yr,"\u22B3","\\rhd"),pe(se,me,Yt,"\u2242","\\eqsim",!0),pe(se,qe,Yt,"\u22C8","\\Join"),pe(se,me,Yt,"\u2251","\\Doteq",!0),pe(se,me,yr,"\u2214","\\dotplus",!0),pe(se,me,yr,"\u2216","\\smallsetminus"),pe(se,me,yr,"\u22D2","\\Cap",!0),pe(se,me,yr,"\u22D3","\\Cup",!0),pe(se,me,yr,"\u2A5E","\\doublebarwedge",!0),pe(se,me,yr,"\u229F","\\boxminus",!0),pe(se,me,yr,"\u229E","\\boxplus",!0),pe(se,me,yr,"\u22C7","\\divideontimes",!0),pe(se,me,yr,"\u22C9","\\ltimes",!0),pe(se,me,yr,"\u22CA","\\rtimes",!0),pe(se,me,yr,"\u22CB","\\leftthreetimes",!0),pe(se,me,yr,"\u22CC","\\rightthreetimes",!0),pe(se,me,yr,"\u22CF","\\curlywedge",!0),pe(se,me,yr,"\u22CE","\\curlyvee",!0),pe(se,me,yr,"\u229D","\\circleddash",!0),pe(se,me,yr,"\u229B","\\circledast",!0),pe(se,me,yr,"\u22C5","\\centerdot"),pe(se,me,yr,"\u22BA","\\intercal",!0),pe(se,me,yr,"\u22D2","\\doublecap"),pe(se,me,yr,"\u22D3","\\doublecup"),pe(se,me,yr,"\u22A0","\\boxtimes",!0),pe(se,me,Yt,"\u21E2","\\dashrightarrow",!0),pe(se,me,Yt,"\u21E0","\\dashleftarrow",!0),pe(se,me,Yt,"\u21C7","\\leftleftarrows",!0),pe(se,me,Yt,"\u21C6","\\leftrightarrows",!0),pe(se,me,Yt,"\u21DA","\\Lleftarrow",!0),pe(se,me,Yt,"\u219E","\\twoheadleftarrow",!0),pe(se,me,Yt,"\u21A2","\\leftarrowtail",!0),pe(se,me,Yt,"\u21AB","\\looparrowleft",!0),pe(se,me,Yt,"\u21CB","\\leftrightharpoons",!0),pe(se,me,Yt,"\u21B6","\\curvearrowleft",!0),pe(se,me,Yt,"\u21BA","\\circlearrowleft",!0),pe(se,me,Yt,"\u21B0","\\Lsh",!0),pe(se,me,Yt,"\u21C8","\\upuparrows",!0),pe(se,me,Yt,"\u21BF","\\upharpoonleft",!0),pe(se,me,Yt,"\u21C3","\\downharpoonleft",!0),pe(se,me,Yt,"\u22B8","\\multimap",!0),pe(se,me,Yt,"\u21AD","\\leftrightsquigarrow",!0),pe(se,me,Yt,"\u21C9","\\rightrightarrows",!0),pe(se,me,Yt,"\u21C4","\\rightleftarrows",!0),pe(se,me,Yt,"\u21A0","\\twoheadrightarrow",!0),pe(se,me,Yt,"\u21A3","\\rightarrowtail",!0),pe(se,me,Yt,"\u21AC","\\looparrowright",!0),pe(se,me,Yt,"\u21B7","\\curvearrowright",!0),pe(se,me,Yt,"\u21BB","\\circlearrowright",!0),pe(se,me,Yt,"\u21B1","\\Rsh",!0),pe(se,me,Yt,"\u21CA","\\downdownarrows",!0),pe(se,me,Yt,"\u21BE","\\upharpoonright",!0),pe(se,me,Yt,"\u21C2","\\downharpoonright",!0),pe(se,me,Yt,"\u21DD","\\rightsquigarrow",!0),pe(se,me,Yt,"\u21DD","\\leadsto"),pe(se,me,Yt,"\u21DB","\\Rrightarrow",!0),pe(se,me,Yt,"\u21BE","\\restriction"),pe(se,qe,it,"\u2018","`"),pe(se,qe,it,"$","\\$"),pe(lt,qe,it,"$","\\$"),pe(lt,qe,it,"$","\\textdollar"),pe(se,qe,it,"%","\\%"),pe(lt,qe,it,"%","\\%"),pe(se,qe,it,"_","\\_"),pe(lt,qe,it,"_","\\_"),pe(lt,qe,it,"_","\\textunderscore"),pe(se,qe,it,"\u2220","\\angle",!0),pe(se,qe,it,"\u221E","\\infty",!0),pe(se,qe,it,"\u2032","\\prime"),pe(se,qe,it,"\u25B3","\\triangle"),pe(se,qe,it,"\u0393","\\Gamma",!0),pe(se,qe,it,"\u0394","\\Delta",!0),pe(se,qe,it,"\u0398","\\Theta",!0),pe(se,qe,it,"\u039B","\\Lambda",!0),pe(se,qe,it,"\u039E","\\Xi",!0),pe(se,qe,it,"\u03A0","\\Pi",!0),pe(se,qe,it,"\u03A3","\\Sigma",!0),pe(se,qe,it,"\u03A5","\\Upsilon",!0),pe(se,qe,it,"\u03A6","\\Phi",!0),pe(se,qe,it,"\u03A8","\\Psi",!0),pe(se,qe,it,"\u03A9","\\Omega",!0),pe(se,qe,it,"A","\u0391"),pe(se,qe,it,"B","\u0392"),pe(se,qe,it,"E","\u0395"),pe(se,qe,it,"Z","\u0396"),pe(se,qe,it,"H","\u0397"),pe(se,qe,it,"I","\u0399"),pe(se,qe,it,"K","\u039A"),pe(se,qe,it,"M","\u039C"),pe(se,qe,it,"N","\u039D"),pe(se,qe,it,"O","\u039F"),pe(se,qe,it,"P","\u03A1"),pe(se,qe,it,"T","\u03A4"),pe(se,qe,it,"X","\u03A7"),pe(se,qe,it,"\xAC","\\neg",!0),pe(se,qe,it,"\xAC","\\lnot"),pe(se,qe,it,"\u22A4","\\top"),pe(se,qe,it,"\u22A5","\\bot"),pe(se,qe,it,"\u2205","\\emptyset"),pe(se,me,it,"\u2205","\\varnothing"),pe(se,qe,ur,"\u03B1","\\alpha",!0),pe(se,qe,ur,"\u03B2","\\beta",!0),pe(se,qe,ur,"\u03B3","\\gamma",!0),pe(se,qe,ur,"\u03B4","\\delta",!0),pe(se,qe,ur,"\u03F5","\\epsilon",!0),pe(se,qe,ur,"\u03B6","\\zeta",!0),pe(se,qe,ur,"\u03B7","\\eta",!0),pe(se,qe,ur,"\u03B8","\\theta",!0),pe(se,qe,ur,"\u03B9","\\iota",!0),pe(se,qe,ur,"\u03BA","\\kappa",!0),pe(se,qe,ur,"\u03BB","\\lambda",!0),pe(se,qe,ur,"\u03BC","\\mu",!0),pe(se,qe,ur,"\u03BD","\\nu",!0),pe(se,qe,ur,"\u03BE","\\xi",!0),pe(se,qe,ur,"\u03BF","\\omicron",!0),pe(se,qe,ur,"\u03C0","\\pi",!0),pe(se,qe,ur,"\u03C1","\\rho",!0),pe(se,qe,ur,"\u03C3","\\sigma",!0),pe(se,qe,ur,"\u03C4","\\tau",!0),pe(se,qe,ur,"\u03C5","\\upsilon",!0),pe(se,qe,ur,"\u03D5","\\phi",!0),pe(se,qe,ur,"\u03C7","\\chi",!0),pe(se,qe,ur,"\u03C8","\\psi",!0),pe(se,qe,ur,"\u03C9","\\omega",!0),pe(se,qe,ur,"\u03B5","\\varepsilon",!0),pe(se,qe,ur,"\u03D1","\\vartheta",!0),pe(se,qe,ur,"\u03D6","\\varpi",!0),pe(se,qe,ur,"\u03F1","\\varrho",!0),pe(se,qe,ur,"\u03C2","\\varsigma",!0),pe(se,qe,ur,"\u03C6","\\varphi",!0),pe(se,qe,yr,"\u2217","*"),pe(se,qe,yr,"+","+"),pe(se,qe,yr,"\u2212","-"),pe(se,qe,yr,"\u22C5","\\cdot",!0),pe(se,qe,yr,"\u2218","\\circ"),pe(se,qe,yr,"\xF7","\\div",!0),pe(se,qe,yr,"\xB1","\\pm",!0),pe(se,qe,yr,"\xD7","\\times",!0),pe(se,qe,yr,"\u2229","\\cap",!0),pe(se,qe,yr,"\u222A","\\cup",!0),pe(se,qe,yr,"\u2216","\\setminus"),pe(se,qe,yr,"\u2227","\\land"),pe(se,qe,yr,"\u2228","\\lor"),pe(se,qe,yr,"\u2227","\\wedge",!0),pe(se,qe,yr,"\u2228","\\vee",!0),pe(se,qe,it,"\u221A","\\surd"),pe(se,qe,Bt,"(","("),pe(se,qe,Bt,"[","["),pe(se,qe,Bt,"\u27E8","\\langle",!0),pe(se,qe,Bt,"\u2223","\\lvert"),pe(se,qe,Bt,"\u2225","\\lVert"),pe(se,qe,At,")",")"),pe(se,qe,At,"]","]"),pe(se,qe,At,"?","?"),pe(se,qe,At,"!","!"),pe(se,qe,At,"\u27E9","\\rangle",!0),pe(se,qe,At,"\u2223","\\rvert"),pe(se,qe,At,"\u2225","\\rVert"),pe(se,qe,Yt,"=","="),pe(se,qe,Yt,"<","<"),pe(se,qe,Yt,">",">"),pe(se,qe,Yt,":",":"),pe(se,qe,Yt,"\u2248","\\approx",!0),pe(se,qe,Yt,"\u2245","\\cong",!0),pe(se,qe,Yt,"\u2265","\\ge"),pe(se,qe,Yt,"\u2265","\\geq",!0),pe(se,qe,Yt,"\u2190","\\gets"),pe(se,qe,Yt,">","\\gt"),pe(se,qe,Yt,"\u2208","\\in",!0),pe(se,qe,Yt,"\uE020","\\@not"),pe(se,qe,Yt,"\u2282","\\subset",!0),pe(se,qe,Yt,"\u2283","\\supset",!0),pe(se,qe,Yt,"\u2286","\\subseteq",!0),pe(se,qe,Yt,"\u2287","\\supseteq",!0),pe(se,me,Yt,"\u2288","\\nsubseteq",!0),pe(se,me,Yt,"\u2289","\\nsupseteq",!0),pe(se,qe,Yt,"\u22A8","\\models"),pe(se,qe,Yt,"\u2190","\\leftarrow",!0),pe(se,qe,Yt,"\u2264","\\le"),pe(se,qe,Yt,"\u2264","\\leq",!0),pe(se,qe,Yt,"<","\\lt"),pe(se,qe,Yt,"\u2192","\\rightarrow",!0),pe(se,qe,Yt,"\u2192","\\to"),pe(se,me,Yt,"\u2271","\\ngeq",!0),pe(se,me,Yt,"\u2270","\\nleq",!0),pe(se,qe,pt,"\xA0","\\ "),pe(se,qe,pt,"\xA0","~"),pe(se,qe,pt,"\xA0","\\space"),pe(se,qe,pt,"\xA0","\\nobreakspace"),pe(lt,qe,pt,"\xA0","\\ "),pe(lt,qe,pt,"\xA0","~"),pe(lt,qe,pt,"\xA0","\\space"),pe(lt,qe,pt,"\xA0","\\nobreakspace"),pe(se,qe,pt,null,"\\nobreak"),pe(se,qe,pt,null,"\\allowbreak"),pe(se,qe,sr,",",","),pe(se,qe,sr,";",";"),pe(se,me,yr,"\u22BC","\\barwedge",!0),pe(se,me,yr,"\u22BB","\\veebar",!0),pe(se,qe,yr,"\u2299","\\odot",!0),pe(se,qe,yr,"\u2295","\\oplus",!0),pe(se,qe,yr,"\u2297","\\otimes",!0),pe(se,qe,it,"\u2202","\\partial",!0),pe(se,qe,yr,"\u2298","\\oslash",!0),pe(se,me,yr,"\u229A","\\circledcirc",!0),pe(se,me,yr,"\u22A1","\\boxdot",!0),pe(se,qe,yr,"\u25B3","\\bigtriangleup"),pe(se,qe,yr,"\u25BD","\\bigtriangledown"),pe(se,qe,yr,"\u2020","\\dagger"),pe(se,qe,yr,"\u22C4","\\diamond"),pe(se,qe,yr,"\u22C6","\\star"),pe(se,qe,yr,"\u25C3","\\triangleleft"),pe(se,qe,yr,"\u25B9","\\triangleright"),pe(se,qe,Bt,"{","\\{"),pe(lt,qe,it,"{","\\{"),pe(lt,qe,it,"{","\\textbraceleft"),pe(se,qe,At,"}","\\}"),pe(lt,qe,it,"}","\\}"),pe(lt,qe,it,"}","\\textbraceright"),pe(se,qe,Bt,"{","\\lbrace"),pe(se,qe,At,"}","\\rbrace"),pe(se,qe,Bt,"[","\\lbrack"),pe(lt,qe,it,"[","\\lbrack"),pe(se,qe,At,"]","\\rbrack"),pe(lt,qe,it,"]","\\rbrack"),pe(se,qe,Bt,"(","\\lparen"),pe(se,qe,At,")","\\rparen"),pe(lt,qe,it,"<","\\textless"),pe(lt,qe,it,">","\\textgreater"),pe(se,qe,Bt,"\u230A","\\lfloor",!0),pe(se,qe,At,"\u230B","\\rfloor",!0),pe(se,qe,Bt,"\u2308","\\lceil",!0),pe(se,qe,At,"\u2309","\\rceil",!0),pe(se,qe,it,"\\","\\backslash"),pe(se,qe,it,"\u2223","|"),pe(se,qe,it,"\u2223","\\vert"),pe(lt,qe,it,"|","\\textbar"),pe(se,qe,it,"\u2225","\\|"),pe(se,qe,it,"\u2225","\\Vert"),pe(lt,qe,it,"\u2225","\\textbardbl"),pe(lt,qe,it,"~","\\textasciitilde"),pe(lt,qe,it,"\\","\\textbackslash"),pe(lt,qe,it,"^","\\textasciicircum"),pe(se,qe,Yt,"\u2191","\\uparrow",!0),pe(se,qe,Yt,"\u21D1","\\Uparrow",!0),pe(se,qe,Yt,"\u2193","\\downarrow",!0),pe(se,qe,Yt,"\u21D3","\\Downarrow",!0),pe(se,qe,Yt,"\u2195","\\updownarrow",!0),pe(se,qe,Yt,"\u21D5","\\Updownarrow",!0),pe(se,qe,vn,"\u2210","\\coprod"),pe(se,qe,vn,"\u22C1","\\bigvee"),pe(se,qe,vn,"\u22C0","\\bigwedge"),pe(se,qe,vn,"\u2A04","\\biguplus"),pe(se,qe,vn,"\u22C2","\\bigcap"),pe(se,qe,vn,"\u22C3","\\bigcup"),pe(se,qe,vn,"\u222B","\\int"),pe(se,qe,vn,"\u222B","\\intop"),pe(se,qe,vn,"\u222C","\\iint"),pe(se,qe,vn,"\u222D","\\iiint"),pe(se,qe,vn,"\u220F","\\prod"),pe(se,qe,vn,"\u2211","\\sum"),pe(se,qe,vn,"\u2A02","\\bigotimes"),pe(se,qe,vn,"\u2A01","\\bigoplus"),pe(se,qe,vn,"\u2A00","\\bigodot"),pe(se,qe,vn,"\u222E","\\oint"),pe(se,qe,vn,"\u222F","\\oiint"),pe(se,qe,vn,"\u2230","\\oiiint"),pe(se,qe,vn,"\u2A06","\\bigsqcup"),pe(se,qe,vn,"\u222B","\\smallint"),pe(lt,qe,rr,"\u2026","\\textellipsis"),pe(se,qe,rr,"\u2026","\\mathellipsis"),pe(lt,qe,rr,"\u2026","\\ldots",!0),pe(se,qe,rr,"\u2026","\\ldots",!0),pe(se,qe,rr,"\u22EF","\\@cdots",!0),pe(se,qe,rr,"\u22F1","\\ddots",!0),pe(se,qe,it,"\u22EE","\\varvdots"),pe(se,qe,Ht,"\u02CA","\\acute"),pe(se,qe,Ht,"\u02CB","\\grave"),pe(se,qe,Ht,"\xA8","\\ddot"),pe(se,qe,Ht,"~","\\tilde"),pe(se,qe,Ht,"\u02C9","\\bar"),pe(se,qe,Ht,"\u02D8","\\breve"),pe(se,qe,Ht,"\u02C7","\\check"),pe(se,qe,Ht,"^","\\hat"),pe(se,qe,Ht,"\u20D7","\\vec"),pe(se,qe,Ht,"\u02D9","\\dot"),pe(se,qe,Ht,"\u02DA","\\mathring"),pe(se,qe,ur,"\u0131","\\imath",!0),pe(se,qe,ur,"\u0237","\\jmath",!0),pe(lt,qe,it,"\u0131","\\i",!0),pe(lt,qe,it,"\u0237","\\j",!0),pe(lt,qe,it,"\xDF","\\ss",!0),pe(lt,qe,it,"\xE6","\\ae",!0),pe(lt,qe,it,"\xE6","\\ae",!0),pe(lt,qe,it,"\u0153","\\oe",!0),pe(lt,qe,it,"\xF8","\\o",!0),pe(lt,qe,it,"\xC6","\\AE",!0),pe(lt,qe,it,"\u0152","\\OE",!0),pe(lt,qe,it,"\xD8","\\O",!0),pe(lt,qe,Ht,"\u02CA","\\'"),pe(lt,qe,Ht,"\u02CB","\\`"),pe(lt,qe,Ht,"\u02C6","\\^"),pe(lt,qe,Ht,"\u02DC","\\~"),pe(lt,qe,Ht,"\u02C9","\\="),pe(lt,qe,Ht,"\u02D8","\\u"),pe(lt,qe,Ht,"\u02D9","\\."),pe(lt,qe,Ht,"\u02DA","\\r"),pe(lt,qe,Ht,"\u02C7","\\v"),pe(lt,qe,Ht,"\xA8",'\\"'),pe(lt,qe,Ht,"\u02DD","\\H"),pe(lt,qe,Ht,"\u25EF","\\textcircled");var Fr={"--":!0,"---":!0,"``":!0,"''":!0};pe(lt,qe,it,"\u2013","--"),pe(lt,qe,it,"\u2013","\\textendash"),pe(lt,qe,it,"\u2014","---"),pe(lt,qe,it,"\u2014","\\textemdash"),pe(lt,qe,it,"\u2018","`"),pe(lt,qe,it,"\u2018","\\textquoteleft"),pe(lt,qe,it,"\u2019","'"),pe(lt,qe,it,"\u2019","\\textquoteright"),pe(lt,qe,it,"\u201C","``"),pe(lt,qe,it,"\u201C","\\textquotedblleft"),pe(lt,qe,it,"\u201D","''"),pe(lt,qe,it,"\u201D","\\textquotedblright"),pe(se,qe,it,"\xB0","\\degree",!0),pe(lt,qe,it,"\xB0","\\degree"),pe(lt,qe,it,"\xB0","\\textdegree",!0),pe(se,qe,ur,"\xA3","\\pounds"),pe(se,qe,ur,"\xA3","\\mathsterling",!0),pe(lt,qe,ur,"\xA3","\\pounds"),pe(lt,qe,ur,"\xA3","\\textsterling",!0),pe(se,me,it,"\u2720","\\maltese"),pe(lt,me,it,"\u2720","\\maltese"),pe(lt,qe,pt,"\xA0","\\ "),pe(lt,qe,pt,"\xA0"," "),pe(lt,qe,pt,"\xA0","~");for(var cn='0123456789/@."',_n=0;_n<cn.length;_n++){var Kn=cn.charAt(_n);pe(se,qe,it,Kn,Kn)}for(var gi='0123456789!@*()-=+[]<>|";:?/.,',Mn=0;Mn<gi.length;Mn++){var Un=gi.charAt(Mn);pe(lt,qe,it,Un,Un)}for(var $t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Ct=0;Ct<$t.length;Ct++){var Re=$t.charAt(Ct);pe(se,qe,ur,Re,Re),pe(lt,qe,it,Re,Re)}pe(se,me,it,"C","\u2102"),pe(lt,me,it,"C","\u2102"),pe(se,me,it,"H","\u210D"),pe(lt,me,it,"H","\u210D"),pe(se,me,it,"N","\u2115"),pe(lt,me,it,"N","\u2115"),pe(se,me,it,"P","\u2119"),pe(lt,me,it,"P","\u2119"),pe(se,me,it,"Q","\u211A"),pe(lt,me,it,"Q","\u211A"),pe(se,me,it,"R","\u211D"),pe(lt,me,it,"R","\u211D"),pe(se,me,it,"Z","\u2124"),pe(lt,me,it,"Z","\u2124"),pe(se,qe,ur,"h","\u210E"),pe(lt,qe,ur,"h","\u210E");for(var De="",Pe=0;Pe<$t.length;Pe++){var et=$t.charAt(Pe);De=String.fromCharCode(55349,56320+Pe),pe(se,qe,ur,et,De),pe(lt,qe,it,et,De),De=String.fromCharCode(55349,56372+Pe),pe(se,qe,ur,et,De),pe(lt,qe,it,et,De),De=String.fromCharCode(55349,56424+Pe),pe(se,qe,ur,et,De),pe(lt,qe,it,et,De),De=String.fromCharCode(55349,56580+Pe),pe(se,qe,ur,et,De),pe(lt,qe,it,et,De),De=String.fromCharCode(55349,56736+Pe),pe(se,qe,ur,et,De),pe(lt,qe,it,et,De),De=String.fromCharCode(55349,56788+Pe),pe(se,qe,ur,et,De),pe(lt,qe,it,et,De),De=String.fromCharCode(55349,56840+Pe),pe(se,qe,ur,et,De),pe(lt,qe,it,et,De),De=String.fromCharCode(55349,56944+Pe),pe(se,qe,ur,et,De),pe(lt,qe,it,et,De),Pe<26&&(De=String.fromCharCode(55349,56632+Pe),pe(se,qe,ur,et,De),pe(lt,qe,it,et,De),De=String.fromCharCode(55349,56476+Pe),pe(se,qe,ur,et,De),pe(lt,qe,it,et,De))}De=String.fromCharCode(55349,56668),pe(se,qe,ur,"k",De),pe(lt,qe,it,"k",De);for(var yt=0;yt<10;yt++){var St=yt.toString();De=String.fromCharCode(55349,57294+yt),pe(se,qe,ur,St,De),pe(lt,qe,it,St,De),De=String.fromCharCode(55349,57314+yt),pe(se,qe,ur,St,De),pe(lt,qe,it,St,De),De=String.fromCharCode(55349,57324+yt),pe(se,qe,ur,St,De),pe(lt,qe,it,St,De),De=String.fromCharCode(55349,57334+yt),pe(se,qe,ur,St,De),pe(lt,qe,it,St,De)}for(var Vt="\xC7\xD0\xDE\xE7\xFE",Rr=0;Rr<Vt.length;Rr++){var Vr=Vt.charAt(Rr);pe(se,qe,ur,Vr,Vr),pe(lt,qe,it,Vr,Vr)}pe(lt,qe,it,"\xF0","\xF0"),pe(lt,qe,it,"\u2013","\u2013"),pe(lt,qe,it,"\u2014","\u2014"),pe(lt,qe,it,"\u2018","\u2018"),pe(lt,qe,it,"\u2019","\u2019"),pe(lt,qe,it,"\u201C","\u201C"),pe(lt,qe,it,"\u201D","\u201D");var hn=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathdefault","textit","Math-Italic"],["mathdefault","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Ft=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],vt=function(ce,xe){var Oe=ce.charCodeAt(0),Qe=ce.charCodeAt(1),Dt=(Oe-55296)*1024+(Qe-56320)+65536,lr=xe==="math"?0:1;if(119808<=Dt&&Dt<120484){var Zr=Math.floor((Dt-119808)/26);return[hn[Zr][2],hn[Zr][lr]]}else if(120782<=Dt&&Dt<=120831){var mn=Math.floor((Dt-120782)/10);return[Ft[mn][2],Ft[mn][lr]]}else{if(Dt===120485||Dt===120486)return[hn[0][2],hn[0][lr]];if(120486<Dt&&Dt<120782)return["",""];throw new u("Unsupported character: "+ce)}},bt=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],fr=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Qt=function(ce,xe){return xe.size<2?ce:bt[ce-1][xe.size-1]},Mt=function(){function Nt(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||Nt.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=fr[this.size-1],this.maxSize=xe.maxSize,this.minRuleThickness=xe.minRuleThickness,this._fontMetrics=void 0}var ce=Nt.prototype;return ce.extend=function(Oe){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 Dt in Oe)Oe.hasOwnProperty(Dt)&&(Qe[Dt]=Oe[Dt]);return new Nt(Qe)},ce.havingStyle=function(Oe){return this.style===Oe?this:this.extend({style:Oe,size:Qt(this.textSize,Oe)})},ce.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},ce.havingSize=function(Oe){return this.size===Oe&&this.textSize===Oe?this:this.extend({style:this.style.text(),size:Oe,textSize:Oe,sizeMultiplier:fr[Oe-1]})},ce.havingBaseStyle=function(Oe){Oe=Oe||this.style.text();var Qe=Qt(Nt.BASESIZE,Oe);return this.size===Qe&&this.textSize===Nt.BASESIZE&&this.style===Oe?this:this.extend({style:Oe,size:Qe})},ce.havingBaseSizing=function(){var Oe;switch(this.style.id){case 4:case 5:Oe=3;break;case 6:case 7:Oe=1;break;default:Oe=6}return this.extend({style:this.style.text(),size:Oe})},ce.withColor=function(Oe){return this.extend({color:Oe})},ce.withPhantom=function(){return this.extend({phantom:!0})},ce.withFont=function(Oe){return this.extend({font:Oe})},ce.withTextFontFamily=function(Oe){return this.extend({fontFamily:Oe,font:""})},ce.withTextFontWeight=function(Oe){return this.extend({fontWeight:Oe,font:""})},ce.withTextFontShape=function(Oe){return this.extend({fontShape:Oe,font:""})},ce.sizingClasses=function(Oe){return Oe.size!==this.size?["sizing","reset-size"+Oe.size,"size"+this.size]:[]},ce.baseSizingClasses=function(){return this.size!==Nt.BASESIZE?["sizing","reset-size"+this.size,"size"+Nt.BASESIZE]:[]},ce.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=hr(this.size)),this._fontMetrics},ce.getColor=function(){return this.phantom?"transparent":this.color},Nt}();Mt.BASESIZE=6;var qt=Mt,kt={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},er={ex:!0,em:!0,mu:!0},Kr=function(ce){return typeof ce!="string"&&(ce=ce.unit),ce in kt||ce in er||ce==="ex"},Ir=function(ce,xe){var Oe;if(ce.unit in kt)Oe=kt[ce.unit]/xe.fontMetrics().ptPerEm/xe.sizeMultiplier;else if(ce.unit==="mu")Oe=xe.fontMetrics().cssEmPerMu;else{var Qe;if(xe.style.isTight()?Qe=xe.havingStyle(xe.style.text()):Qe=xe,ce.unit==="ex")Oe=Qe.fontMetrics().xHeight;else if(ce.unit==="em")Oe=Qe.fontMetrics().quad;else throw new u("Invalid unit: '"+ce.unit+"'");Qe!==xe&&(Oe*=Qe.sizeMultiplier/xe.sizeMultiplier)}return Math.min(ce.number*Oe,xe.maxSize)},Dr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],dn=function(ce,xe,Oe){return Ge[Oe][ce]&&Ge[Oe][ce].replace&&(ce=Ge[Oe][ce].replace),{value:ce,metrics:ct(ce,xe,Oe)}},yn=function(ce,xe,Oe,Qe,Dt){var lr=dn(ce,xe,Oe),Zr=lr.metrics;ce=lr.value;var mn;if(Zr){var Dn=Zr.italic;(Oe==="text"||Qe&&Qe.font==="mathit")&&(Dn=0),mn=new Ce(ce,Zr.height,Zr.depth,Dn,Zr.skew,Zr.width,Dt)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+ce+"' in style '"+xe+"' and mode '"+Oe+"'")),mn=new Ce(ce,0,0,0,0,0,Dt);if(Qe){mn.maxFontSize=Qe.sizeMultiplier,Qe.style.isTight()&&mn.classes.push("mtight");var ui=Qe.getColor();ui&&(mn.style.color=ui)}return mn},ti=function(ce,xe,Oe,Qe){return Qe===void 0&&(Qe=[]),Oe.font==="boldsymbol"&&dn(ce,"Main-Bold",xe).metrics?yn(ce,"Main-Bold",xe,Oe,Qe.concat(["mathbf"])):ce==="\\"||Ge[xe][ce].font==="main"?yn(ce,"Main-Regular",xe,Oe,Qe):yn(ce,"AMS-Regular",xe,Oe,Qe.concat(["amsrm"]))},ei=function(ce,xe,Oe,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,Oe,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"}},Ei=function(ce,xe,Oe,Qe){return dn(ce,"Math-BoldItalic",xe).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Di=function(ce,xe,Oe){var Qe=ce.mode,Dt=ce.text,lr=["mord"],Zr=Qe==="math"||Qe==="text"&&xe.font,mn=Zr?xe.font:xe.fontFamily;if(Dt.charCodeAt(0)===55349){var Dn=vt(Dt,Qe),ui=Dn[0],Si=Dn[1];return yn(Dt,ui,Qe,xe,lr.concat(Si))}else if(mn){var vi,Qi;if(mn==="boldsymbol"||mn==="mathnormal"){var sa=mn==="boldsymbol"?Ei(Dt,Qe,xe,lr):fi(Dt,Qe,xe,lr);vi=sa.fontName,Qi=[sa.fontClass]}else A.contains(Dr,Dt)?(vi="Main-Italic",Qi=["mathit"]):Zr?(vi=gn[mn].fontName,Qi=[mn]):(vi=Qr(mn,xe.fontWeight,xe.fontShape),Qi=[mn,xe.fontWeight,xe.fontShape]);if(dn(Dt,vi,Qe).metrics)return yn(Dt,vi,Qe,xe,lr.concat(Qi));if(Fr.hasOwnProperty(Dt)&&vi.substr(0,10)==="Typewriter"){for(var Ua=[],no=0;no<Dt.length;no++)Ua.push(yn(Dt[no],vi,Qe,xe,lr.concat(Qi)));return st(Ua)}}if(Oe==="mathord"){var Wo=ei(Dt,Qe,xe,lr);return yn(Dt,Wo.fontName,Qe,xe,lr.concat([Wo.fontClass]))}else if(Oe==="textord"){var Zo=Ge[Qe][Dt]&&Ge[Qe][Dt].font;if(Zo==="ams"){var Bo=Qr("amsrm",xe.fontWeight,xe.fontShape);return yn(Dt,Bo,Qe,xe,lr.concat("amsrm",xe.fontWeight,xe.fontShape))}else if(Zo==="main"||!Zo){var Es=Qr("textrm",xe.fontWeight,xe.fontShape);return yn(Dt,Es,Qe,xe,lr.concat(xe.fontWeight,xe.fontShape))}else{var As=Qr(Zo,xe.fontWeight,xe.fontShape);return yn(Dt,As,Qe,xe,lr.concat(As,xe.fontWeight,xe.fontShape))}}else throw new Error("unexpected type: "+Oe+" 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 Oe in ce.style)if(ce.style.hasOwnProperty(Oe)&&ce.style[Oe]!==xe.style[Oe])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 Oe=ce[xe],Qe=ce[xe+1];Oe instanceof Ce&&Qe instanceof Ce&&Hi(Oe,Qe)&&(Oe.text+=Qe.text,Oe.height=Math.max(Oe.height,Qe.height),Oe.depth=Math.max(Oe.depth,Qe.depth),Oe.italic=Qe.italic,ce.splice(xe+1,1),xe--)}return ce},Le=function(ce){for(var xe=0,Oe=0,Qe=0,Dt=0;Dt<ce.children.length;Dt++){var lr=ce.children[Dt];lr.height>xe&&(xe=lr.height),lr.depth>Oe&&(Oe=lr.depth),lr.maxFontSize>Qe&&(Qe=lr.maxFontSize)}ce.height=xe,ce.depth=Oe,ce.maxFontSize=Qe},je=function(ce,xe,Oe,Qe){var Dt=new Y(ce,xe,Oe,Qe);return Le(Dt),Dt},Xe=function(ce,xe,Oe,Qe){return new Y(ce,xe,Oe,Qe)},tt=function(ce,xe,Oe){var Qe=je([ce],[],xe);return Qe.height=Math.max(Oe||xe.fontMetrics().defaultRuleThickness,xe.minRuleThickness),Qe.style.borderBottomWidth=Qe.height+"em",Qe.maxFontSize=1,Qe},Ze=function(ce,xe,Oe,Qe){var Dt=new $(ce,xe,Oe,Qe);return Le(Dt),Dt},st=function(ce){var xe=new Fe(ce);return Le(xe),xe},Et=function(ce,xe){return ce instanceof Fe?je([],[ce],xe):ce},gt=function(ce){if(ce.positionType==="individualShift"){for(var xe=ce.children,Oe=[xe[0]],Qe=-xe[0].shift-xe[0].elem.depth,Dt=Qe,lr=1;lr<xe.length;lr++){var Zr=-xe[lr].shift-Dt-xe[lr].elem.depth,mn=Zr-(xe[lr-1].elem.height+xe[lr-1].elem.depth);Dt=Dt+Zr,Oe.push({type:"kern",size:mn}),Oe.push(xe[lr])}return{children:Oe,depth:Qe}}var Dn;if(ce.positionType==="top"){for(var ui=ce.positionData,Si=0;Si<ce.children.length;Si++){var vi=ce.children[Si];ui-=vi.type==="kern"?vi.size:vi.elem.height+vi.elem.depth}Dn=ui}else if(ce.positionType==="bottom")Dn=-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")Dn=-Qi.elem.depth-ce.positionData;else if(ce.positionType==="firstBaseline")Dn=-Qi.elem.depth;else throw new Error("Invalid positionType "+ce.positionType+".")}return{children:ce.children,depth:Dn}},pr=function(ce,xe){for(var Oe=gt(ce),Qe=Oe.children,Dt=Oe.depth,lr=0,Zr=0;Zr<Qe.length;Zr++){var mn=Qe[Zr];if(mn.type==="elem"){var Dn=mn.elem;lr=Math.max(lr,Dn.maxFontSize,Dn.height)}}lr+=2;var ui=je(["pstrut"],[]);ui.style.height=lr+"em";for(var Si=[],vi=Dt,Qi=Dt,sa=Dt,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=je(Zo,[ui,Wo],void 0,Bo);Es.style.top=-lr-sa-Wo.depth+"em",no.marginLeft&&(Es.style.marginLeft=no.marginLeft),no.marginRight&&(Es.style.marginRight=no.marginRight),Si.push(Es),sa+=Wo.height+Wo.depth}vi=Math.min(vi,sa),Qi=Math.max(Qi,sa)}var As=je(["vlist"],Si);As.style.height=Qi+"em";var $o;if(vi<0){var Do=je([],[]),vo=je(["vlist"],[Do]);vo.style.height=-vi+"em";var Ms=je(["vlist-s"],[new Ce("\u200B")]);$o=[je(["vlist-r"],[As,Ms]),je(["vlist-r"],[vo])]}else $o=[je(["vlist-r"],[As])];var rl=je(["vlist-t"],$o);return $o.length===2&&rl.classes.push("vlist-t2"),rl.height=Qi,rl.depth=-vi,rl},qr=function(ce,xe){var Oe=je(["mspace"],[],xe),Qe=Ir(ce,xe);return Oe.style.marginRight=Qe+"em",Oe},Qr=function(ce,xe,Oe){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 Dt;return xe==="textbf"&&Oe==="textit"?Dt="BoldItalic":xe==="textbf"?Dt="Bold":xe==="textit"?Dt="Italic":Dt="Regular",Qe+"-"+Dt},gn={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},vr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Vn=function(ce,xe){var Oe=vr[ce],Qe=Oe[0],Dt=Oe[1],lr=Oe[2],Zr=new fe(Qe),mn=new Be([Zr],{width:Dt+"em",height:lr+"em",style:"width:"+Dt+"em",viewBox:"0 0 "+1e3*Dt+" "+1e3*lr,preserveAspectRatio:"xMinYMin"}),Dn=Xe(["overlay"],[mn],xe);return Dn.height=lr,Dn.style.height=lr+"em",Dn.style.width=Dt+"em",Dn},kr={fontMap:gn,makeSymbol:yn,mathsym:ti,makeSpan:je,makeSvgSpan:Xe,makeLineSpan:tt,makeAnchor:Ze,makeFragment:st,wrapFragment:Et,makeVList:pr,makeOrd:Di,makeGlue:qr,staticSvg:Vn,svgData:vr,tryCombineChars:nt};function Bn(Nt,ce){var xe=on(Nt,ce);if(!xe)throw new Error("Expected node of type "+ce+", but got "+(Nt?"node of type "+Nt.type:String(Nt)));return xe}function on(Nt,ce){return Nt&&Nt.type===ce?Nt:null}function jr(Nt,ce){var xe=ai(Nt,ce);if(!xe)throw new Error('Expected node of type "atom" and family "'+ce+'", but got '+(Nt?Nt.type==="atom"?"atom of family "+Nt.family:"node of type "+Nt.type:String(Nt)));return xe}function ai(Nt,ce){return Nt&&Nt.type==="atom"&&Nt.family===ce?Nt:null}function Oi(Nt){var ce=Gi(Nt);if(!ce)throw new Error("Expected node of symbol group type, but got "+(Nt?"node of type "+Nt.type:String(Nt)));return ce}function Gi(Nt){return Nt&&(Nt.type==="atom"||Pt.hasOwnProperty(Nt.type))?Nt:null}var rn={number:3,unit:"mu"},Cn={number:4,unit:"mu"},Yn={number:5,unit:"mu"},Gt={mord:{mop:rn,mbin:Cn,mrel:Yn,minner:rn},mop:{mord:rn,mop:rn,mrel:Yn,minner:rn},mbin:{mord:Cn,mop:Cn,mopen:Cn,minner:Cn},mrel:{mord:Yn,mop:Yn,mopen:Yn,minner:Yn},mopen:{},mclose:{mop:rn,mbin:Cn,mrel:Yn,minner:rn},mpunct:{mord:rn,mop:rn,mrel:Yn,mopen:rn,mclose:rn,mpunct:rn,minner:rn},minner:{mord:rn,mop:rn,mbin:Cn,mrel:Yn,mopen:rn,mpunct:rn,minner:rn}},Ot={mord:{mop:rn},mop:{mord:rn,mop:rn},mbin:{},mrel:{},mopen:{},mclose:{mop:rn},mpunct:{},minner:{mop:rn}},Rt={},jt={},zt={};function Lt(Nt){for(var ce=Nt.type,xe=Nt.names,Oe=Nt.props,Qe=Nt.handler,Dt=Nt.htmlBuilder,lr=Nt.mathmlBuilder,Zr={type:ce,numArgs:Oe.numArgs,argTypes:Oe.argTypes,greediness:Oe.greediness===void 0?1:Oe.greediness,allowedInText:!!Oe.allowedInText,allowedInMath:Oe.allowedInMath===void 0?!0:Oe.allowedInMath,numOptionalArgs:Oe.numOptionalArgs||0,infix:!!Oe.infix,handler:Qe},mn=0;mn<xe.length;++mn)Rt[xe[mn]]=Zr;ce&&(Dt&&(jt[ce]=Dt),lr&&(zt[ce]=lr))}function cr(Nt){var ce=Nt.type,xe=Nt.htmlBuilder,Oe=Nt.mathmlBuilder;Lt({type:ce,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:xe,mathmlBuilder:Oe})}var Ar=function(ce){var xe=on(ce,"ordgroup");return xe?xe.body:[ce]},br=kr.makeSpan,Pr=["leftmost","mbin","mopen","mrel","mop","mpunct"],Xn=["rightmost","mrel","mclose","mpunct"],Pn={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"},An=function(ce,xe,Oe,Qe){Qe===void 0&&(Qe=[null,null]);for(var Dt=[],lr=0;lr<ce.length;lr++){var Zr=Ti(ce[lr],xe);if(Zr instanceof Fe){var mn=Zr.children;Dt.push.apply(Dt,mn)}else Dt.push(Zr)}if(!Oe)return Dt;var Dn=xe;if(ce.length===1){var ui=on(ce[0],"sizing")||on(ce[0],"styling");ui&&(ui.type==="sizing"?Dn=xe.havingSize(ui.size):ui.type==="styling"&&(Dn=xe.havingStyle(Pn[ui.style])))}var Si=br([Qe[0]||"leftmost"],[],xe),vi=br([Qe[1]||"rightmost"],[],xe);return Ur(Dt,function(Qi,sa){var Ua=sa.classes[0],no=Qi.classes[0];Ua==="mbin"&&A.contains(Xn,no)?sa.classes[0]="mord":no==="mbin"&&A.contains(Pr,Ua)&&(Qi.classes[0]="mord")},{node:Si},vi),Ur(Dt,function(Qi,sa){var Ua=$n(sa),no=$n(Qi),Wo=Ua&&no?Qi.hasClass("mtight")?Ot[Ua][no]:Gt[Ua][no]:null;if(Wo)return kr.makeGlue(Wo,Dn)},{node:Si},vi),Dt},Ur=function Nt(ce,xe,Oe,Qe){Qe&&ce.push(Qe);for(var Dt=0;Dt<ce.length;Dt++){var lr=ce[Dt],Zr=In(lr);if(Zr){Nt(Zr.children,xe,Oe);continue}if(lr.classes[0]==="mspace")continue;var mn=xe(lr,Oe.node);mn&&(Oe.insertAfter?Oe.insertAfter(mn):(ce.unshift(mn),Dt++)),Oe.node=lr,Oe.insertAfter=function(Dn){return function(ui){ce.splice(Dn+1,0,ui),Dt++}}(Dt)}Qe&&ce.pop()},In=function(ce){return ce instanceof Fe||ce instanceof $?ce:null},Qn=function Nt(ce,xe){var Oe=In(ce);if(Oe){var Qe=Oe.children;if(Qe.length){if(xe==="right")return Nt(Qe[Qe.length-1],"right");if(xe==="left")return Nt(Qe[0],"left")}}return ce},$n=function(ce,xe){return ce?(xe&&(ce=Qn(ce,xe)),di[ce.classes[0]]||null):null},oi=function(ce,xe){var Oe=["nulldelimiter"].concat(ce.baseSizingClasses());return br(xe.concat(Oe))},Ti=function(ce,xe,Oe){if(!ce)return br();if(jt[ce.type]){var Qe=jt[ce.type](ce,xe);if(Oe&&xe.size!==Oe.size){Qe=br(xe.sizingClasses(Oe),[Qe],xe);var Dt=xe.sizeMultiplier/Oe.sizeMultiplier;Qe.height*=Dt,Qe.depth*=Dt}return Qe}else throw new u("Got group of unknown type: '"+ce.type+"'")};function ki(Nt,ce){var xe=br(["base"],Nt,ce),Oe=br(["strut"]);return Oe.style.height=xe.height+xe.depth+"em",Oe.style.verticalAlign=-xe.depth+"em",xe.children.unshift(Oe),xe}function Ri(Nt,ce){var xe=null;Nt.length===1&&Nt[0].type==="tag"&&(xe=Nt[0].tag,Nt=Nt[0].body);for(var Oe=An(Nt,ce,!0),Qe=[],Dt=[],lr=0;lr<Oe.length;lr++)if(Dt.push(Oe[lr]),Oe[lr].hasClass("mbin")||Oe[lr].hasClass("mrel")||Oe[lr].hasClass("allowbreak")){for(var Zr=!1;lr<Oe.length-1&&Oe[lr+1].hasClass("mspace")&&!Oe[lr+1].hasClass("newline");)lr++,Dt.push(Oe[lr]),Oe[lr].hasClass("nobreak")&&(Zr=!0);Zr||(Qe.push(ki(Dt,ce)),Dt=[])}else Oe[lr].hasClass("newline")&&(Dt.pop(),Dt.length>0&&(Qe.push(ki(Dt,ce)),Dt=[]),Qe.push(Oe[lr]));Dt.length>0&&Qe.push(ki(Dt,ce));var mn;xe&&(mn=ki(An(xe,ce,!0)),mn.classes=["tag"],Qe.push(mn));var Dn=br(["katex-html"],Qe);if(Dn.setAttribute("aria-hidden","true"),mn){var ui=mn.children[0];ui.style.height=Dn.height+Dn.depth+"em",ui.style.verticalAlign=-Dn.depth+"em"}return Dn}function oa(Nt){return new Fe(Nt)}var ma=function(){function Nt(xe,Oe){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=xe,this.attributes={},this.children=Oe||[]}var ce=Nt.prototype;return ce.setAttribute=function(Oe,Qe){this.attributes[Oe]=Qe},ce.getAttribute=function(Oe){return this.attributes[Oe]},ce.toNode=function(){var Oe=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var Qe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Qe)&&Oe.setAttribute(Qe,this.attributes[Qe]);for(var Dt=0;Dt<this.children.length;Dt++)Oe.appendChild(this.children[Dt].toNode());return Oe},ce.toMarkup=function(){var Oe="<"+this.type;for(var Qe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Qe)&&(Oe+=" "+Qe+'="',Oe+=A.escape(this.attributes[Qe]),Oe+='"');Oe+=">";for(var Dt=0;Dt<this.children.length;Dt++)Oe+=this.children[Dt].toMarkup();return Oe+="</"+this.type+">",Oe},ce.toText=function(){return this.children.map(function(Oe){return Oe.toText()}).join("")},Nt}(),aa=function(){function Nt(xe){this.text=void 0,this.text=xe}var ce=Nt.prototype;return ce.toNode=function(){return document.createTextNode(this.text)},ce.toMarkup=function(){return A.escape(this.toText())},ce.toText=function(){return this.text},Nt}(),ba=function(){function Nt(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=Nt.prototype;return ce.toNode=function(){if(this.character)return document.createTextNode(this.character);var Oe=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return Oe.setAttribute("width",this.width+"em"),Oe},ce.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},ce.toText=function(){return this.character?this.character:" "},Nt}(),yi={MathNode:ma,TextNode:aa,SpaceNode:ba,newDocumentFragment:oa},kn=function(ce,xe,Oe){return Ge[xe][ce]&&Ge[xe][ce].replace&&ce.charCodeAt(0)!==55349&&!(Fr.hasOwnProperty(ce)&&Oe&&(Oe.fontFamily&&Oe.fontFamily.substr(4,2)==="tt"||Oe.font&&Oe.font.substr(4,2)==="tt"))&&(ce=Ge[xe][ce].replace),new yi.TextNode(ce)},Ui=function(ce){return ce.length===1?ce[0]:new yi.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 Oe=xe.font;if(!Oe||Oe==="mathnormal")return null;var Qe=ce.mode;if(Oe==="mathit")return"italic";if(Oe==="boldsymbol")return"bold-italic";if(Oe==="mathbf")return"bold";if(Oe==="mathbb")return"double-struck";if(Oe==="mathfrak")return"fraktur";if(Oe==="mathscr"||Oe==="mathcal")return"script";if(Oe==="mathsf")return"sans-serif";if(Oe==="mathtt")return"monospace";var Dt=ce.text;if(A.contains(["\\imath","\\jmath"],Dt))return null;Ge[Qe][Dt]&&Ge[Qe][Dt].replace&&(Dt=Ge[Qe][Dt].replace);var lr=kr.fontMap[Oe].fontName;return ct(Dt,lr,Qe)?kr.fontMap[Oe].variant:null},ta=function(ce,xe,Oe){if(ce.length===1){var Qe=Lr(ce[0],xe);return Oe&&Qe instanceof ma&&Qe.type==="mo"&&(Qe.setAttribute("lspace","0em"),Qe.setAttribute("rspace","0em")),[Qe]}for(var Dt=[],lr,Zr=0;Zr<ce.length;Zr++){var mn=Lr(ce[Zr],xe);if(mn instanceof ma&&lr instanceof ma){if(mn.type==="mtext"&&lr.type==="mtext"&&mn.getAttribute("mathvariant")===lr.getAttribute("mathvariant")){var Dn;(Dn=lr.children).push.apply(Dn,mn.children);continue}else if(mn.type==="mn"&&lr.type==="mn"){var ui;(ui=lr.children).push.apply(ui,mn.children);continue}else if(mn.type==="mi"&&mn.children.length===1&&lr.type==="mn"){var Si=mn.children[0];if(Si instanceof aa&&Si.text==="."){var vi;(vi=lr.children).push.apply(vi,mn.children);continue}}else if(lr.type==="mi"&&lr.children.length===1){var Qi=lr.children[0];if(Qi instanceof aa&&Qi.text==="\u0338"&&(mn.type==="mo"||mn.type==="mi"||mn.type==="mn")){var sa=mn.children[0];sa instanceof aa&&sa.text.length>0&&(sa.text=sa.text.slice(0,1)+"\u0338"+sa.text.slice(1),Dt.pop())}}}Dt.push(mn),lr=mn}return Dt},ra=function(ce,xe,Oe){return Ui(ta(ce,xe,Oe))},Lr=function(ce,xe){if(!ce)return new yi.MathNode("mrow");if(zt[ce.type]){var Oe=zt[ce.type](ce,xe);return Oe}else throw new u("Got group of unknown type: '"+ce.type+"'")};function xr(Nt,ce,xe,Oe){var Qe=ta(Nt,xe),Dt;Qe.length===1&&Qe[0]instanceof ma&&A.contains(["mrow","mtable"],Qe[0].type)?Dt=Qe[0]:Dt=new yi.MathNode("mrow",Qe);var lr=new yi.MathNode("annotation",[new yi.TextNode(ce)]);lr.setAttribute("encoding","application/x-tex");var Zr=new yi.MathNode("semantics",[Dt,lr]),mn=new yi.MathNode("math",[Zr]);mn.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Dn=Oe?"katex":"katex-mathml";return kr.makeSpan([Dn],[mn])}var Tn=function(ce){return new qt({style:ce.displayMode?z.DISPLAY:z.TEXT,maxSize:ce.maxSize,minRuleThickness:ce.minRuleThickness})},mr=function(ce,xe){if(xe.displayMode){var Oe=["katex-display"];xe.leqno&&Oe.push("leqno"),xe.fleqn&&Oe.push("fleqn"),ce=kr.makeSpan(Oe,[ce])}return ce},Mr=function(ce,xe,Oe){var Qe=Tn(Oe),Dt;if(Oe.output==="mathml")return xr(ce,xe,Qe,!0);if(Oe.output==="html"){var lr=Ri(ce,Qe);Dt=kr.makeSpan(["katex"],[lr])}else{var Zr=xr(ce,xe,Qe,!1),mn=Ri(ce,Qe);Dt=kr.makeSpan(["katex"],[Zr,mn])}return mr(Dt,Oe)},Xr=function(ce,xe,Oe){var Qe=Tn(Oe),Dt=Ri(ce,Qe),lr=kr.makeSpan(["katex"],[Dt]);return mr(lr,Oe)},un=Mr,Fn={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 yi.MathNode("mo",[new yi.TextNode(Fn[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]},Nr=function(ce){return ce.type==="ordgroup"?ce.body.length:1},tn=function(ce,xe){function Oe(){var mn=4e5,Dn=ce.label.substr(1);if(A.contains(["widehat","widecheck","widetilde","utilde"],Dn)){var ui=ce,Si=Nr(ui.base),vi,Qi,sa;if(Si>5)Dn==="widehat"||Dn==="widecheck"?(vi=420,mn=2364,sa=.42,Qi=Dn+"4"):(vi=312,mn=2340,sa=.34,Qi="tilde4");else{var Ua=[1,1,2,2,3,3][Si];Dn==="widehat"||Dn==="widecheck"?(mn=[0,1062,2364,2364,2364][Ua],vi=[0,239,300,360,420][Ua],sa=[0,.24,.3,.3,.36,.42][Ua],Qi=Dn+Ua):(mn=[0,600,1033,2339,2340][Ua],vi=[0,260,286,306,312][Ua],sa=[0,.26,.286,.3,.306,.34][Ua],Qi="tilde"+Ua)}var no=new fe(Qi),Wo=new Be([no],{width:"100%",height:sa+"em",viewBox:"0 0 "+mn+" "+vi,preserveAspectRatio:"none"});return{span:kr.makeSvgSpan([],[Wo],xe),minWidth:0,height:sa}}else{var Zo=[],Bo=Or[Dn],Es=Bo[0],As=Bo[1],$o=Bo[2],Do=$o/1e3,vo=Es.length,Ms,rl;if(vo===1){var gs=Bo[3];Ms=["hide-tail"],rl=[gs]}else if(vo===2)Ms=["halfarrow-left","halfarrow-right"],rl=["xMinYMin","xMaxYMin"];else if(vo===3)Ms=["brace-left","brace-center","brace-right"],rl=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+vo+" children.");for(var Ra=0;Ra<vo;Ra++){var dl=new fe(Es[Ra]),fl=new Be([dl],{width:"400em",height:Do+"em",viewBox:"0 0 "+mn+" "+$o,preserveAspectRatio:rl[Ra]+" slice"}),Us=kr.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:kr.makeSpan(["stretchy"],Zo,xe),minWidth:As,height:Do}}}var Qe=Oe(),Dt=Qe.span,lr=Qe.minWidth,Zr=Qe.height;return Dt.height=Zr,Dt.style.height=Zr+"em",lr>0&&(Dt.style.minWidth=lr+"em"),Dt},xn=function(ce,xe,Oe,Qe){var Dt,lr=ce.height+ce.depth+2*Oe;if(/fbox|color/.test(xe)){if(Dt=kr.makeSpan(["stretchy",xe],[],Qe),xe==="fbox"){var Zr=Qe.color&&Qe.getColor();Zr&&(Dt.style.borderColor=Zr)}}else{var mn=[];/^[bx]cancel$/.test(xe)&&mn.push(new Se({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(xe)&&mn.push(new Se({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Dn=new Be(mn,{width:"100%",height:lr+"em"});Dt=kr.makeSvgSpan([],[Dn],Qe)}return Dt.height=lr,Dt.style.height=lr+"em",Dt},Ln={encloseSpan:xn,mathMLnode:_t,svgSpan:tn},Sn=function(ce,xe){var Oe,Qe,Dt=on(ce,"supsub"),lr;Dt?(Qe=Bn(Dt.base,"accent"),Oe=Qe.base,Dt.base=Oe,lr=rt(Ti(Dt,xe)),Dt.base=Qe):(Qe=Bn(ce,"accent"),Oe=Qe.base);var Zr=Ti(Oe,xe.havingCrampedStyle()),mn=Qe.isShifty&&A.isCharacterBox(Oe),Dn=0;if(mn){var ui=A.getBaseElem(Oe),Si=Ti(ui,xe.havingCrampedStyle());Dn=ke(Si).skew}var vi=Math.min(Zr.height,xe.fontMetrics().xHeight),Qi;if(Qe.isStretchy)Qi=Ln.svgSpan(Qe,xe),Qi=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Zr},{type:"elem",elem:Qi,wrapperClasses:["svg-align"],wrapperStyle:Dn>0?{width:"calc(100% - "+2*Dn+"em)",marginLeft:2*Dn+"em"}:void 0}]},xe);else{var sa,Ua;Qe.label==="\\vec"?(sa=kr.staticSvg("vec",xe),Ua=kr.svgData.vec[1]):(sa=kr.makeOrd({mode:Qe.mode,text:Qe.label},xe,"textord"),sa=ke(sa),sa.italic=0,Ua=sa.width),Qi=kr.makeSpan(["accent-body"],[sa]);var no=Qe.label==="\\textcircled";no&&(Qi.classes.push("accent-full"),vi=Zr.height);var Wo=Dn;no||(Wo-=Ua/2),Qi.style.left=Wo+"em",Qe.label==="\\textcircled"&&(Qi.style.top=".2em"),Qi=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Zr},{type:"kern",size:-vi},{type:"elem",elem:Qi}]},xe)}var Zo=kr.makeSpan(["mord","accent"],[Qi],xe);return lr?(lr.children[0]=Zo,lr.height=Math.max(Zo.height,lr.height),lr.classes[0]="mord",lr):Zo},qn=function(ce,xe){var Oe=ce.isStretchy?Ln.mathMLnode(ce.label):new yi.MathNode("mo",[kn(ce.label,ce.mode)]),Qe=new yi.MathNode("mover",[Lr(ce.base,xe),Oe]);return Qe.setAttribute("accent","true"),Qe},Wn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(Nt){return"\\"+Nt}).join("|"));Lt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(ce,xe){var Oe=xe[0],Qe=!Wn.test(ce.funcName),Dt=!Qe||ce.funcName==="\\widehat"||ce.funcName==="\\widetilde"||ce.funcName==="\\widecheck";return{type:"accent",mode:ce.parser.mode,label:ce.funcName,isStretchy:Qe,isShifty:Dt,base:Oe}},htmlBuilder:Sn,mathmlBuilder:qn}),Lt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(ce,xe){var Oe=xe[0];return{type:"accent",mode:ce.parser.mode,label:ce.funcName,isStretchy:!1,isShifty:!0,base:Oe}},htmlBuilder:Sn,mathmlBuilder:qn}),Lt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(ce,xe){var Oe=ce.parser,Qe=ce.funcName,Dt=xe[0];return{type:"accentUnder",mode:Oe.mode,label:Qe,base:Dt}},htmlBuilder:function(ce,xe){var Oe=Ti(ce.base,xe),Qe=Ln.svgSpan(ce,xe),Dt=ce.label==="\\utilde"?.12:0,lr=kr.makeVList({positionType:"bottom",positionData:Qe.height+Dt,children:[{type:"elem",elem:Qe,wrapperClasses:["svg-align"]},{type:"kern",size:Dt},{type:"elem",elem:Oe}]},xe);return kr.makeSpan(["mord","accentunder"],[lr],xe)},mathmlBuilder:function(ce,xe){var Oe=Ln.mathMLnode(ce.label),Qe=new yi.MathNode("munder",[Lr(ce.base,xe),Oe]);return Qe.setAttribute("accentunder","true"),Qe}});var pi=function(ce){var xe=new yi.MathNode("mpadded",ce?[ce]:[]);return xe.setAttribute("width","+0.6em"),xe.setAttribute("lspace","0.3em"),xe};Lt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(ce,xe,Oe){var Qe=ce.parser,Dt=ce.funcName;return{type:"xArrow",mode:Qe.mode,label:Dt,body:xe[0],below:Oe[0]}},htmlBuilder:function(ce,xe){var Oe=xe.style,Qe=xe.havingStyle(Oe.sup()),Dt=kr.wrapFragment(Ti(ce.body,Qe,xe),xe);Dt.classes.push("x-arrow-pad");var lr;ce.below&&(Qe=xe.havingStyle(Oe.sub()),lr=kr.wrapFragment(Ti(ce.below,Qe,xe),xe),lr.classes.push("x-arrow-pad"));var Zr=Ln.svgSpan(ce,xe),mn=-xe.fontMetrics().axisHeight+.5*Zr.height,Dn=-xe.fontMetrics().axisHeight-.5*Zr.height-.111;(Dt.depth>.25||ce.label==="\\xleftequilibrium")&&(Dn-=Dt.depth);var ui;if(lr){var Si=-xe.fontMetrics().axisHeight+lr.height+.5*Zr.height+.111;ui=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Dt,shift:Dn},{type:"elem",elem:Zr,shift:mn},{type:"elem",elem:lr,shift:Si}]},xe)}else ui=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Dt,shift:Dn},{type:"elem",elem:Zr,shift:mn}]},xe);return ui.children[0].children[0].children[1].classes.push("svg-align"),kr.makeSpan(["mrel","x-arrow"],[ui],xe)},mathmlBuilder:function(ce,xe){var Oe=Ln.mathMLnode(ce.label),Qe;if(ce.body){var Dt=pi(Lr(ce.body,xe));if(ce.below){var lr=pi(Lr(ce.below,xe));Qe=new yi.MathNode("munderover",[Oe,lr,Dt])}else Qe=new yi.MathNode("mover",[Oe,Dt])}else if(ce.below){var Zr=pi(Lr(ce.below,xe));Qe=new yi.MathNode("munder",[Oe,Zr])}else Qe=pi(),Qe=new yi.MathNode("mover",[Oe,Qe]);return Qe}}),Lt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){for(var Oe=ce.parser,Qe=Bn(xe[0],"ordgroup"),Dt=Qe.body,lr="",Zr=0;Zr<Dt.length;Zr++){var mn=Bn(Dt[Zr],"textord");lr+=mn.text}var Dn=parseInt(lr);if(isNaN(Dn))throw new u("\\@char has non-numeric argument "+lr);return{type:"textord",mode:Oe.mode,text:String.fromCharCode(Dn)}}});var Pi=function(ce,xe){var Oe=An(ce.body,xe.withColor(ce.color),!1);return kr.makeFragment(Oe)},bi=function(ce,xe){var Oe=ta(ce.body,xe.withColor(ce.color)),Qe=new yi.MathNode("mstyle",Oe);return Qe.setAttribute("mathcolor",ce.color),Qe};Lt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(ce,xe){var Oe=ce.parser,Qe=Bn(xe[0],"color-token").color,Dt=xe[1];return{type:"color",mode:Oe.mode,color:Qe,body:Ar(Dt)}},htmlBuilder:Pi,mathmlBuilder:bi}),Lt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(ce,xe){var Oe=ce.parser,Qe=ce.breakOnTokenText,Dt=Bn(xe[0],"color-token").color;Oe.gullet.macros.set("\\current@color",Dt);var lr=Oe.parseExpression(!0,Qe);return{type:"color",mode:Oe.mode,color:Dt,body:lr}},htmlBuilder:Pi,mathmlBuilder:bi}),Lt({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ce,xe,Oe){var Qe=ce.parser,Dt=ce.funcName,lr=Oe[0],Zr=Dt==="\\cr",mn=!1;return Zr||(Qe.settings.displayMode&&Qe.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?mn=!1:mn=!0),{type:"cr",mode:Qe.mode,newLine:mn,newRow:Zr,size:lr&&Bn(lr,"size").value}},htmlBuilder:function(ce,xe){if(ce.newRow)throw new u("\\cr valid only within a tabular/array environment");var Oe=kr.makeSpan(["mspace"],[],xe);return ce.newLine&&(Oe.classes.push("newline"),ce.size&&(Oe.style.marginTop=Ir(ce.size,xe)+"em")),Oe},mathmlBuilder:function(ce,xe){var Oe=new yi.MathNode("mspace");return ce.newLine&&(Oe.setAttribute("linebreak","newline"),ce.size&&Oe.setAttribute("height",Ir(ce.size,xe)+"em")),Oe}});var Ii=function(ce,xe,Oe){var Qe=Ge.math[ce]&&Ge.math[ce].replace,Dt=ct(Qe||ce,xe,Oe);if(!Dt)throw new Error("Unsupported symbol "+ce+" and font size "+xe+".");return Dt},zi=function(ce,xe,Oe,Qe){var Dt=Oe.havingBaseStyle(xe),lr=kr.makeSpan(Qe.concat(Dt.sizingClasses(Oe)),[ce],Oe),Zr=Dt.sizeMultiplier/Oe.sizeMultiplier;return lr.height*=Zr,lr.depth*=Zr,lr.maxFontSize=Dt.sizeMultiplier,lr},ea=function(ce,xe,Oe){var Qe=xe.havingBaseStyle(Oe),Dt=(1-xe.sizeMultiplier/Qe.sizeMultiplier)*xe.fontMetrics().axisHeight;ce.classes.push("delimcenter"),ce.style.top=Dt+"em",ce.height-=Dt,ce.depth+=Dt},Xi=function(ce,xe,Oe,Qe,Dt,lr){var Zr=kr.makeSymbol(ce,"Main-Regular",Dt,Qe),mn=zi(Zr,xe,Qe,lr);return Oe&&ea(mn,Qe,xe),mn},Wi=function(ce,xe,Oe,Qe){return kr.makeSymbol(ce,"Size"+xe+"-Regular",Oe,Qe)},ji=function(ce,xe,Oe,Qe,Dt,lr){var Zr=Wi(ce,xe,Dt,Qe),mn=zi(kr.makeSpan(["delimsizing","size"+xe],[Zr],Qe),z.TEXT,Qe,lr);return Oe&&ea(mn,Qe,z.TEXT),mn},Ji=function(ce,xe,Oe){var Qe;xe==="Size1-Regular"?Qe="delim-size1":Qe="delim-size4";var Dt=kr.makeSpan(["delimsizinginner",Qe],[kr.makeSpan([],[kr.makeSymbol(ce,xe,Oe)])]);return{type:"elem",elem:Dt}},ca={type:"kern",size:-.005},Ca=function(ce,xe,Oe,Qe,Dt,lr){var Zr,mn,Dn,ui;Zr=Dn=ui=ce,mn=null;var Si="Size1-Regular";ce==="\\uparrow"?Dn=ui="\u23D0":ce==="\\Uparrow"?Dn=ui="\u2016":ce==="\\downarrow"?Zr=Dn="\u23D0":ce==="\\Downarrow"?Zr=Dn="\u2016":ce==="\\updownarrow"?(Zr="\\uparrow",Dn="\u23D0",ui="\\downarrow"):ce==="\\Updownarrow"?(Zr="\\Uparrow",Dn="\u2016",ui="\\Downarrow"):ce==="["||ce==="\\lbrack"?(Zr="\u23A1",Dn="\u23A2",ui="\u23A3",Si="Size4-Regular"):ce==="]"||ce==="\\rbrack"?(Zr="\u23A4",Dn="\u23A5",ui="\u23A6",Si="Size4-Regular"):ce==="\\lfloor"||ce==="\u230A"?(Dn=Zr="\u23A2",ui="\u23A3",Si="Size4-Regular"):ce==="\\lceil"||ce==="\u2308"?(Zr="\u23A1",Dn=ui="\u23A2",Si="Size4-Regular"):ce==="\\rfloor"||ce==="\u230B"?(Dn=Zr="\u23A5",ui="\u23A6",Si="Size4-Regular"):ce==="\\rceil"||ce==="\u2309"?(Zr="\u23A4",Dn=ui="\u23A5",Si="Size4-Regular"):ce==="("||ce==="\\lparen"?(Zr="\u239B",Dn="\u239C",ui="\u239D",Si="Size4-Regular"):ce===")"||ce==="\\rparen"?(Zr="\u239E",Dn="\u239F",ui="\u23A0",Si="Size4-Regular"):ce==="\\{"||ce==="\\lbrace"?(Zr="\u23A7",mn="\u23A8",ui="\u23A9",Dn="\u23AA",Si="Size4-Regular"):ce==="\\}"||ce==="\\rbrace"?(Zr="\u23AB",mn="\u23AC",ui="\u23AD",Dn="\u23AA",Si="Size4-Regular"):ce==="\\lgroup"||ce==="\u27EE"?(Zr="\u23A7",ui="\u23A9",Dn="\u23AA",Si="Size4-Regular"):ce==="\\rgroup"||ce==="\u27EF"?(Zr="\u23AB",ui="\u23AD",Dn="\u23AA",Si="Size4-Regular"):ce==="\\lmoustache"||ce==="\u23B0"?(Zr="\u23A7",ui="\u23AD",Dn="\u23AA",Si="Size4-Regular"):(ce==="\\rmoustache"||ce==="\u23B1")&&(Zr="\u23AB",ui="\u23A9",Dn="\u23AA",Si="Size4-Regular");var vi=Ii(Zr,Si,Dt),Qi=vi.height+vi.depth,sa=Ii(Dn,Si,Dt),Ua=sa.height+sa.depth,no=Ii(ui,Si,Dt),Wo=no.height+no.depth,Zo=0,Bo=1;if(mn!==null){var Es=Ii(mn,Si,Dt);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;Oe&&(vo*=Qe.sizeMultiplier);var Ms=Do/2-vo,rl=($o+1)*.005-Ua,gs=[];if(gs.push(Ji(ui,Si,Dt)),mn===null)for(var Ra=0;Ra<$o;Ra++)gs.push(ca),gs.push(Ji(Dn,Si,Dt));else{for(var dl=0;dl<$o;dl++)gs.push(ca),gs.push(Ji(Dn,Si,Dt));gs.push({type:"kern",size:rl}),gs.push(Ji(Dn,Si,Dt)),gs.push(ca),gs.push(Ji(mn,Si,Dt));for(var fl=0;fl<$o;fl++)gs.push(ca),gs.push(Ji(Dn,Si,Dt))}gs.push({type:"kern",size:rl}),gs.push(Ji(Dn,Si,Dt)),gs.push(ca),gs.push(Ji(Zr,Si,Dt));var Us=Qe.havingBaseStyle(z.TEXT),Os=kr.makeVList({positionType:"bottom",positionData:Ms,children:gs},Us);return zi(kr.makeSpan(["delimsizing","mult"],[Os],Us),z.TEXT,Qe,lr)},na=80,Pa=.08,La=function(ce,xe,Oe,Qe,Dt){var lr=Ve(ce,Qe,Oe),Zr=new fe(ce,lr),mn=new Be([Zr],{width:"400em",height:xe+"em",viewBox:"0 0 400000 "+Oe,preserveAspectRatio:"xMinYMin slice"});return kr.makeSvgSpan(["hide-tail"],[mn],Dt)},va=function(ce,xe){var Oe=xe.havingBaseSizing(),Qe=Qo("\\surd",ce*Oe.sizeMultiplier,io,Oe),Dt=Oe.sizeMultiplier,lr=Math.max(0,xe.minRuleThickness-xe.fontMetrics().sqrtRuleThickness),Zr,mn=0,Dn=0,ui=0,Si;return Qe.type==="small"?(ui=1e3+1e3*lr+na,ce<1?Dt=1:ce<1.4&&(Dt=.7),mn=(1+lr+Pa)/Dt,Dn=(1+lr)/Dt,Zr=La("sqrtMain",mn,ui,lr,xe),Zr.style.minWidth="0.853em",Si=.833/Dt):Qe.type==="large"?(ui=(1e3+na)*Xa[Qe.size],Dn=(Xa[Qe.size]+lr)/Dt,mn=(Xa[Qe.size]+lr+Pa)/Dt,Zr=La("sqrtSize"+Qe.size,mn,ui,lr,xe),Zr.style.minWidth="1.02em",Si=1/Dt):(mn=ce+lr+Pa,Dn=ce+lr,ui=Math.floor(1e3*ce+lr)+na,Zr=La("sqrtTall",mn,ui,lr,xe),Zr.style.minWidth="0.742em",Si=1.056),Zr.height=Dn,Zr.style.height=mn+"em",{span:Zr,advanceWidth:Si,ruleWidth:(xe.fontMetrics().sqrtRuleThickness+lr)*Dt}},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,Oe,Qe,Dt){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,Oe,Qe,Dt);if(A.contains(Oa,ce))return Ca(ce,Xa[xe],!1,Oe,Qe,Dt);throw new u("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}],Fi=[{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,Oe,Qe){for(var Dt=Math.min(2,3-Qe.style.size),lr=Dt;lr<Oe.length&&!(Oe[lr].type==="stack");lr++){var Zr=Ii(ce,oo(Oe[lr]),"math"),mn=Zr.height+Zr.depth;if(Oe[lr].type==="small"){var Dn=Qe.havingBaseStyle(Oe[lr].style);mn*=Dn.sizeMultiplier}if(mn>xe)return Oe[lr]}return Oe[Oe.length-1]},mo=function(ce,xe,Oe,Qe,Dt,lr){ce==="<"||ce==="\\lt"||ce==="\u27E8"?ce="\\langle":(ce===">"||ce==="\\gt"||ce==="\u27E9")&&(ce="\\rangle");var Zr;A.contains(Aa,ce)?Zr=Va:A.contains(ga,ce)?Zr=io:Zr=Fi;var mn=Qo(ce,xe,Zr,Qe);return mn.type==="small"?Xi(ce,mn.style,Oe,Qe,Dt,lr):mn.type==="large"?ji(ce,mn.size,Oe,Qe,Dt,lr):Ca(ce,xe,Oe,Qe,Dt,lr)},To=function(ce,xe,Oe,Qe,Dt,lr){var Zr=Qe.fontMetrics().axisHeight*Qe.sizeMultiplier,mn=901,Dn=5/Qe.fontMetrics().ptPerEm,ui=Math.max(xe-Zr,Oe+Zr),Si=Math.max(ui/500*mn,2*ui-Dn);return mo(ce,Si,!0,Qe,Dt,lr)},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(Nt,ce){var xe=Gi(Nt);if(xe&&A.contains(bo,xe.text))return xe;throw new u("Invalid delimiter: '"+(xe?xe.text:JSON.stringify(Nt))+"' after '"+ce.funcName+"'",Nt)}Lt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(ce,xe){var Oe=to(xe[0],ce);return{type:"delimsizing",mode:ce.parser.mode,size:So[ce.funcName].size,mclass:So[ce.funcName].mclass,delim:Oe.text}},htmlBuilder:function(ce,xe){return ce.delim==="."?kr.makeSpan([ce.mclass]):ao.sizedDelim(ce.delim,ce.size,xe,ce.mode,[ce.mclass])},mathmlBuilder:function(ce){var xe=[];ce.delim!=="."&&xe.push(kn(ce.delim,ce.mode));var Oe=new yi.MathNode("mo",xe);return ce.mclass==="mopen"||ce.mclass==="mclose"?Oe.setAttribute("fence","true"):Oe.setAttribute("fence","false"),Oe}});function Jo(Nt){if(!Nt.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Lt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(ce,xe){var Oe=ce.parser.gullet.macros.get("\\current@color");if(Oe&&typeof Oe!="string")throw new u("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:ce.parser.mode,delim:to(xe[0],ce).text,color:Oe}}}),Lt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(ce,xe){var Oe=to(xe[0],ce),Qe=ce.parser;++Qe.leftrightDepth;var Dt=Qe.parseExpression(!1);--Qe.leftrightDepth,Qe.expect("\\right",!1);var lr=Bn(Qe.parseFunction(),"leftright-right");return{type:"leftright",mode:Qe.mode,body:Dt,left:Oe.text,right:lr.delim,rightColor:lr.color}},htmlBuilder:function(ce,xe){Jo(ce);for(var Oe=An(ce.body,xe,!0,["mopen","mclose"]),Qe=0,Dt=0,lr=!1,Zr=0;Zr<Oe.length;Zr++)Oe[Zr].isMiddle?lr=!0:(Qe=Math.max(Oe[Zr].height,Qe),Dt=Math.max(Oe[Zr].depth,Dt));Qe*=xe.sizeMultiplier,Dt*=xe.sizeMultiplier;var mn;if(ce.left==="."?mn=oi(xe,["mopen"]):mn=ao.leftRightDelim(ce.left,Qe,Dt,xe,ce.mode,["mopen"]),Oe.unshift(mn),lr)for(var Dn=1;Dn<Oe.length;Dn++){var ui=Oe[Dn],Si=ui.isMiddle;Si&&(Oe[Dn]=ao.leftRightDelim(Si.delim,Qe,Dt,Si.options,ce.mode,[]))}var vi;if(ce.right===".")vi=oi(xe,["mclose"]);else{var Qi=ce.rightColor?xe.withColor(ce.rightColor):xe;vi=ao.leftRightDelim(ce.right,Qe,Dt,Qi,ce.mode,["mclose"])}return Oe.push(vi),kr.makeSpan(["minner"],Oe,xe)},mathmlBuilder:function(ce,xe){Jo(ce);var Oe=ta(ce.body,xe);if(ce.left!=="."){var Qe=new yi.MathNode("mo",[kn(ce.left,ce.mode)]);Qe.setAttribute("fence","true"),Oe.unshift(Qe)}if(ce.right!=="."){var Dt=new yi.MathNode("mo",[kn(ce.right,ce.mode)]);Dt.setAttribute("fence","true"),ce.rightColor&&Dt.setAttribute("mathcolor",ce.rightColor),Oe.push(Dt)}return Ui(Oe)}}),Lt({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(ce,xe){var Oe=to(xe[0],ce);if(!ce.parser.leftrightDepth)throw new u("\\middle without preceding \\left",Oe);return{type:"middle",mode:ce.parser.mode,delim:Oe.text}},htmlBuilder:function(ce,xe){var Oe;if(ce.delim===".")Oe=oi(xe,[]);else{Oe=ao.sizedDelim(ce.delim,1,xe,ce.mode,[]);var Qe={delim:ce.delim,options:xe};Oe.isMiddle=Qe}return Oe},mathmlBuilder:function(ce,xe){var Oe=ce.delim==="\\vert"||ce.delim==="|"?kn("|","text"):kn(ce.delim,ce.mode),Qe=new yi.MathNode("mo",[Oe]);return Qe.setAttribute("fence","true"),Qe.setAttribute("lspace","0.05em"),Qe.setAttribute("rspace","0.05em"),Qe}});var Uo=function(ce,xe){var Oe=kr.wrapFragment(Ti(ce.body,xe),xe),Qe=ce.label.substr(1),Dt=xe.sizeMultiplier,lr,Zr=0,mn=A.isCharacterBox(ce.body);if(Qe==="sout")lr=kr.makeSpan(["stretchy","sout"]),lr.height=xe.fontMetrics().defaultRuleThickness/Dt,Zr=-.5*xe.fontMetrics().xHeight;else{/cancel/.test(Qe)?mn||Oe.classes.push("cancel-pad"):Oe.classes.push("boxpad");var Dn=0,ui=0;/box/.test(Qe)?(ui=Math.max(xe.fontMetrics().fboxrule,xe.minRuleThickness),Dn=xe.fontMetrics().fboxsep+(Qe==="colorbox"?0:ui)):Dn=mn?.2:0,lr=Ln.encloseSpan(Oe,Qe,Dn,xe),/fbox|boxed|fcolorbox/.test(Qe)&&(lr.style.borderStyle="solid",lr.style.borderWidth=ui+"em"),Zr=Oe.depth+Dn,ce.backgroundColor&&(lr.style.backgroundColor=ce.backgroundColor,ce.borderColor&&(lr.style.borderColor=ce.borderColor))}var Si;return ce.backgroundColor?Si=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:lr,shift:Zr},{type:"elem",elem:Oe,shift:0}]},xe):Si=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Oe,shift:0},{type:"elem",elem:lr,shift:Zr,wrapperClasses:/cancel/.test(Qe)?["svg-align"]:[]}]},xe),/cancel/.test(Qe)&&(Si.height=Oe.height,Si.depth=Oe.depth),/cancel/.test(Qe)&&!mn?kr.makeSpan(["mord","cancel-lap"],[Si],xe):kr.makeSpan(["mord"],[Si],xe)},wo=function(ce,xe){var Oe=0,Qe=new yi.MathNode(ce.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Lr(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(Oe=xe.fontMetrics().fboxsep*xe.fontMetrics().ptPerEm,Qe.setAttribute("width","+"+2*Oe+"pt"),Qe.setAttribute("height","+"+2*Oe+"pt"),Qe.setAttribute("lspace",Oe+"pt"),Qe.setAttribute("voffset",Oe+"pt"),ce.label==="\\fcolorbox"){var Dt=Math.max(xe.fontMetrics().fboxrule,xe.minRuleThickness);Qe.setAttribute("style","border: "+Dt+"em solid "+String(ce.borderColor))}break;case"\\xcancel":Qe.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return ce.backgroundColor&&Qe.setAttribute("mathbackground",ce.backgroundColor),Qe};Lt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(ce,xe,Oe){var Qe=ce.parser,Dt=ce.funcName,lr=Bn(xe[0],"color-token").color,Zr=xe[1];return{type:"enclose",mode:Qe.mode,label:Dt,backgroundColor:lr,body:Zr}},htmlBuilder:Uo,mathmlBuilder:wo}),Lt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(ce,xe,Oe){var Qe=ce.parser,Dt=ce.funcName,lr=Bn(xe[0],"color-token").color,Zr=Bn(xe[1],"color-token").color,mn=xe[2];return{type:"enclose",mode:Qe.mode,label:Dt,backgroundColor:Zr,borderColor:lr,body:mn}},htmlBuilder:Uo,mathmlBuilder:wo}),Lt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(ce,xe){var Oe=ce.parser;return{type:"enclose",mode:Oe.mode,label:"\\fbox",body:xe[0]}}}),Lt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(ce,xe,Oe){var Qe=ce.parser,Dt=ce.funcName,lr=xe[0];return{type:"enclose",mode:Qe.mode,label:Dt,body:lr}},htmlBuilder:Uo,mathmlBuilder:wo});var ts={};function Ia(Nt){for(var ce=Nt.type,xe=Nt.names,Oe=Nt.props,Qe=Nt.handler,Dt=Nt.htmlBuilder,lr=Nt.mathmlBuilder,Zr={type:ce,numArgs:Oe.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:Qe},mn=0;mn<xe.length;++mn)ts[xe[mn]]=Zr;Dt&&(jt[ce]=Dt),lr&&(zt[ce]=lr)}function Oo(Nt){var ce=[];Nt.consumeSpaces();for(var xe=Nt.fetch().text;xe==="\\hline"||xe==="\\hdashline";)Nt.consume(),ce.push(xe==="\\hdashline"),Nt.consumeSpaces(),xe=Nt.fetch().text;return ce}function Io(Nt,ce,xe){var Oe=ce.hskipBeforeAndAfter,Qe=ce.addJot,Dt=ce.cols,lr=ce.arraystretch,Zr=ce.colSeparationType;if(Nt.gullet.beginGroup(),Nt.gullet.macros.set("\\\\","\\cr"),!lr){var mn=Nt.gullet.expandMacroAsText("\\arraystretch");if(mn==null)lr=1;else if(lr=parseFloat(mn),!lr||lr<0)throw new u("Invalid \\arraystretch: "+mn)}Nt.gullet.beginGroup();var Dn=[],ui=[Dn],Si=[],vi=[];for(vi.push(Oo(Nt));;){var Qi=Nt.parseExpression(!1,"\\cr");Nt.gullet.endGroup(),Nt.gullet.beginGroup(),Qi={type:"ordgroup",mode:Nt.mode,body:Qi},xe&&(Qi={type:"styling",mode:Nt.mode,style:xe,body:[Qi]}),Dn.push(Qi);var sa=Nt.fetch().text;if(sa==="&")Nt.consume();else if(sa==="\\end"){Dn.length===1&&Qi.type==="styling"&&Qi.body[0].body.length===0&&ui.pop(),vi.length<ui.length+1&&vi.push([]);break}else if(sa==="\\cr"){var Ua=Bn(Nt.parseFunction(),"cr");Si.push(Ua.size),vi.push(Oo(Nt)),Dn=[],ui.push(Dn)}else throw new u("Expected & or \\\\ or \\cr or \\end",Nt.nextToken)}return Nt.gullet.endGroup(),Nt.gullet.endGroup(),{type:"array",mode:Nt.mode,addJot:Qe,arraystretch:lr,body:ui,cols:Dt,rowGaps:Si,hskipBeforeAndAfter:Oe,hLinesBeforeRow:vi,colSeparationType:Zr}}function os(Nt){return Nt.substr(0,1)==="d"?"display":"text"}var xo=function(ce,xe){var Oe,Qe,Dt=ce.body.length,lr=ce.hLinesBeforeRow,Zr=0,mn=new Array(Dt),Dn=[],ui=Math.max(xe.fontMetrics().arrayRuleWidth,xe.minRuleThickness),Si=1/xe.fontMetrics().ptPerEm,vi=5*Si;if(ce.colSeparationType&&ce.colSeparationType==="small"){var Qi=xe.havingStyle(z.SCRIPT).sizeMultiplier;vi=.2778*(Qi/xe.sizeMultiplier)}var sa=12*Si,Ua=3*Si,no=ce.arraystretch*sa,Wo=.7*no,Zo=.3*no,Bo=0;function Es(Ls){for(var Ps=0;Ps<Ls.length;++Ps)Ps>0&&(Bo+=.25),Dn.push({pos:Bo,isDashed:Ls[Ps]})}for(Es(lr[0]),Oe=0;Oe<ce.body.length;++Oe){var As=ce.body[Oe],$o=Wo,Do=Zo;Zr<As.length&&(Zr=As.length);var vo=new Array(As.length);for(Qe=0;Qe<As.length;++Qe){var Ms=Ti(As[Qe],xe);Do<Ms.depth&&(Do=Ms.depth),$o<Ms.height&&($o=Ms.height),vo[Qe]=Ms}var rl=ce.rowGaps[Oe],gs=0;rl&&(gs=Ir(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,mn[Oe]=vo,Es(lr[Oe+1])}var Ra=Bo/2+xe.fontMetrics().axisHeight,dl=ce.cols||[],fl=[],Us,Os;for(Qe=0,Os=0;Qe<Zr||Os<dl.length;++Qe,++Os){for(var Xs=dl[Os]||{},Ql=!0;Xs.type==="separator";){if(Ql||(Us=kr.makeSpan(["arraycolsep"],[]),Us.style.width=xe.fontMetrics().doubleRuleSep+"em",fl.push(Us)),Xs.separator==="|"||Xs.separator===":"){var Ul=Xs.separator==="|"?"solid":"dashed",wl=kr.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 u("Invalid separator type: "+Xs.separator);Os++,Xs=dl[Os]||{},Ql=!1}if(Qe>=Zr)continue;var Ts=void 0;(Qe>0||ce.hskipBeforeAndAfter)&&(Ts=A.deflt(Xs.pregap,vi),Ts!==0&&(Us=kr.makeSpan(["arraycolsep"],[]),Us.style.width=Ts+"em",fl.push(Us)));var Ws=[];for(Oe=0;Oe<Dt;++Oe){var Tl=mn[Oe],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=kr.makeVList({positionType:"individualShift",children:Ws},xe),Ws=kr.makeSpan(["col-align-"+(Xs.align||"c")],[Ws]),fl.push(Ws),(Qe<Zr-1||ce.hskipBeforeAndAfter)&&(Ts=A.deflt(Xs.postgap,vi),Ts!==0&&(Us=kr.makeSpan(["arraycolsep"],[]),Us.style.width=Ts+"em",fl.push(Us)))}if(mn=kr.makeSpan(["mtable"],fl),Dn.length>0){for(var yo=kr.makeLineSpan("hline",xe,ui),qo=kr.makeLineSpan("hdashline",xe,ui),ps=[{type:"elem",elem:mn,shift:0}];Dn.length>0;){var Is=Dn.pop(),es=Is.pos-Ra;Is.isDashed?ps.push({type:"elem",elem:qo,shift:es}):ps.push({type:"elem",elem:yo,shift:es})}mn=kr.makeVList({positionType:"individualShift",children:ps},xe)}return kr.makeSpan(["mord"],[mn],xe)},rs={c:"center ",l:"left ",r:"right "},Ho=function(ce,xe){var Oe=new yi.MathNode("mtable",ce.body.map(function(Bo){return new yi.MathNode("mtr",Bo.map(function(Es){return new yi.MathNode("mtd",[Lr(Es,xe)])}))})),Qe=ce.arraystretch===.5?.1:.16+ce.arraystretch-1+(ce.addJot?.09:0);Oe.setAttribute("rowspacing",Qe+"em");var Dt="",lr="";if(ce.cols){var Zr=ce.cols,mn="",Dn=!1,ui=0,Si=Zr.length;Zr[0].type==="separator"&&(Dt+="top ",ui=1),Zr[Zr.length-1].type==="separator"&&(Dt+="bottom ",Si-=1);for(var vi=ui;vi<Si;vi++)Zr[vi].type==="align"?(lr+=rs[Zr[vi].align],Dn&&(mn+="none "),Dn=!0):Zr[vi].type==="separator"&&(Dn&&(mn+=Zr[vi].separator==="|"?"solid ":"dashed ",Dn=!1));Oe.setAttribute("columnalign",lr.trim()),/[sd]/.test(mn)&&Oe.setAttribute("columnlines",mn.trim())}if(ce.colSeparationType==="align"){for(var Qi=ce.cols||[],sa="",Ua=1;Ua<Qi.length;Ua++)sa+=Ua%2?"0em ":"1em ";Oe.setAttribute("columnspacing",sa.trim())}else ce.colSeparationType==="alignat"?Oe.setAttribute("columnspacing","0em"):ce.colSeparationType==="small"?Oe.setAttribute("columnspacing","0.2778em"):Oe.setAttribute("columnspacing","1em");var no="",Wo=ce.hLinesBeforeRow;Dt+=Wo[0].length>0?"left ":"",Dt+=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)&&Oe.setAttribute("rowlines",no.trim()),Dt!==""&&(Oe=new yi.MathNode("menclose",[Oe]),Oe.setAttribute("notation",Dt.trim())),ce.arraystretch&&ce.arraystretch<1&&(Oe=new yi.MathNode("mstyle",[Oe]),Oe.setAttribute("scriptlevel","1")),Oe},_o=function(ce,xe){var Oe=[],Qe=Io(ce.parser,{cols:Oe,addJot:!0},"display"),Dt,lr=0,Zr={type:"ordgroup",mode:ce.mode,body:[]},mn=on(xe[0],"ordgroup");if(mn){for(var Dn="",ui=0;ui<mn.body.length;ui++){var Si=Bn(mn.body[ui],"textord");Dn+=Si.text}Dt=Number(Dn),lr=Dt*2}var vi=!lr;Qe.body.forEach(function(no){for(var Wo=1;Wo<no.length;Wo+=2){var Zo=Bn(no[Wo],"styling"),Bo=Bn(Zo.body[0],"ordgroup");Bo.body.unshift(Zr)}if(vi)lr<no.length&&(lr=no.length);else{var Es=no.length/2;if(Dt<Es)throw new u("Too many math in a row: "+("expected "+Dt+", but got "+Es),no[0])}});for(var Qi=0;Qi<lr;++Qi){var sa="r",Ua=0;Qi%2===1?sa="l":Qi>0&&vi&&(Ua=1),Oe[Qi]={type:"align",align:sa,pregap:Ua,postgap:0}}return Qe.colSeparationType=vi?"align":"alignat",Qe};Ia({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(ce,xe){var Oe=Gi(xe[0]),Qe=Oe?[xe[0]]:Bn(xe[0],"ordgroup").body,Dt=Qe.map(function(Zr){var mn=Oi(Zr),Dn=mn.text;if("lcr".indexOf(Dn)!==-1)return{type:"align",align:Dn};if(Dn==="|")return{type:"separator",separator:"|"};if(Dn===":")return{type:"separator",separator:":"};throw new u("Unknown column alignment: "+Dn,Zr)}),lr={cols:Dt,hskipBeforeAndAfter:!0};return Io(ce.parser,lr,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],Oe={hskipBeforeAndAfter:!1},Qe=Io(ce.parser,Oe,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},Oe=Io(ce.parser,xe,"script");return Oe.colSeparationType="small",Oe},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["subarray"],props:{numArgs:1},handler:function(ce,xe){var Oe=Gi(xe[0]),Qe=Oe?[xe[0]]:Bn(xe[0],"ordgroup").body,Dt=Qe.map(function(Zr){var mn=Oi(Zr),Dn=mn.text;if("lc".indexOf(Dn)!==-1)return{type:"align",align:Dn};throw new u("Unknown column alignment: "+Dn,Zr)});if(Dt.length>1)throw new u("{subarray} can contain only one column");var lr={cols:Dt,hskipBeforeAndAfter:!1,arraystretch:.5};if(lr=Io(ce.parser,lr,"script"),lr.body[0].length>1)throw new u("{subarray} can contain only one column");return lr},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}]},Oe=Io(ce.parser,xe,os(ce.envName));return{type:"leftright",mode:ce.mode,body:[Oe],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}),Lt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(ce,xe){throw new u(ce.funcName+" valid only within array environment")}});var uo=ts,Ha=uo;Lt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(ce,xe){var Oe=ce.parser,Qe=ce.funcName,Dt=xe[0];if(Dt.type!=="ordgroup")throw new u("Invalid environment name",Dt);for(var lr="",Zr=0;Zr<Dt.body.length;++Zr)lr+=Bn(Dt.body[Zr],"textord").text;if(Qe==="\\begin"){if(!Ha.hasOwnProperty(lr))throw new u("No such environment: "+lr,Dt);var mn=Ha[lr],Dn=Oe.parseArguments("\\begin{"+lr+"}",mn),ui=Dn.args,Si=Dn.optArgs,vi={mode:Oe.mode,envName:lr,parser:Oe},Qi=mn.handler(vi,ui,Si);Oe.expect("\\end",!1);var sa=Oe.nextToken,Ua=Bn(Oe.parseFunction(),"environment");if(Ua.name!==lr)throw new u("Mismatch: \\begin{"+lr+"} matched by \\end{"+Ua.name+"}",sa);return Qi}return{type:"environment",mode:Oe.mode,name:lr,nameGroup:Dt}}});var mt=kr.makeSpan;function Tr(Nt,ce){var xe=An(Nt.body,ce,!0);return mt([Nt.mclass],xe,ce)}function en(Nt,ce){var xe,Oe=ta(Nt.body,ce);return Nt.mclass==="minner"?yi.newDocumentFragment(Oe):(Nt.mclass==="mord"?Nt.isCharacterBox?(xe=Oe[0],xe.type="mi"):xe=new yi.MathNode("mi",Oe):(Nt.isCharacterBox?(xe=Oe[0],xe.type="mo"):xe=new yi.MathNode("mo",Oe),Nt.mclass==="mbin"?(xe.attributes.lspace="0.22em",xe.attributes.rspace="0.22em"):Nt.mclass==="mpunct"?(xe.attributes.lspace="0em",xe.attributes.rspace="0.17em"):(Nt.mclass==="mopen"||Nt.mclass==="mclose")&&(xe.attributes.lspace="0em",xe.attributes.rspace="0em")),xe)}Lt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(ce,xe){var Oe=ce.parser,Qe=ce.funcName,Dt=xe[0];return{type:"mclass",mode:Oe.mode,mclass:"m"+Qe.substr(5),body:Ar(Dt),isCharacterBox:A.isCharacterBox(Dt)}},htmlBuilder:Tr,mathmlBuilder:en});var Jr=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"};Lt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(ce,xe){var Oe=ce.parser;return{type:"mclass",mode:Oe.mode,mclass:Jr(xe[0]),body:[xe[1]],isCharacterBox:A.isCharacterBox(xe[1])}}}),Lt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(ce,xe){var Oe=ce.parser,Qe=ce.funcName,Dt=xe[1],lr=xe[0],Zr;Qe!=="\\stackrel"?Zr=Jr(Dt):Zr="mrel";var mn={type:"op",mode:Dt.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:Qe!=="\\stackrel",body:Ar(Dt)},Dn={type:"supsub",mode:lr.mode,base:mn,sup:Qe==="\\underset"?null:lr,sub:Qe==="\\underset"?lr:null};return{type:"mclass",mode:Oe.mode,mclass:Zr,body:[Dn],isCharacterBox:A.isCharacterBox(Dn)}},htmlBuilder:Tr,mathmlBuilder:en});var Jn=function(ce,xe){var Oe=ce.font,Qe=xe.withFont(Oe);return Ti(ce.body,Qe)},fn=function(ce,xe){var Oe=ce.font,Qe=xe.withFont(Oe);return Lr(ce.body,Qe)},Yr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Lt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(ce,xe){var Oe=ce.parser,Qe=ce.funcName,Dt=xe[0],lr=Qe;return lr in Yr&&(lr=Yr[lr]),{type:"font",mode:Oe.mode,font:lr.slice(1),body:Dt}},htmlBuilder:Jn,mathmlBuilder:fn}),Lt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(ce,xe){var Oe=ce.parser,Qe=xe[0],Dt=A.isCharacterBox(Qe);return{type:"mclass",mode:Oe.mode,mclass:Jr(Qe),body:[{type:"font",mode:Oe.mode,font:"boldsymbol",body:Qe}],isCharacterBox:Dt}}}),Lt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(ce,xe){var Oe=ce.parser,Qe=ce.funcName,Dt=ce.breakOnTokenText,lr=Oe.mode,Zr=Oe.parseExpression(!0,Dt),mn="math"+Qe.slice(1);return{type:"font",mode:lr,font:mn,body:{type:"ordgroup",mode:Oe.mode,body:Zr}}},htmlBuilder:Jn,mathmlBuilder:fn});var ni=function(ce,xe){var Oe=xe;return ce==="display"?Oe=Oe.id>=z.SCRIPT.id?Oe.text():z.DISPLAY:ce==="text"&&Oe.size===z.DISPLAY.size?Oe=z.TEXT:ce==="script"?Oe=z.SCRIPT:ce==="scriptscript"&&(Oe=z.SCRIPTSCRIPT),Oe},nn=function(ce,xe){var Oe=ni(ce.size,xe.style),Qe=Oe.fracNum(),Dt=Oe.fracDen(),lr;lr=xe.havingStyle(Qe);var Zr=Ti(ce.numer,lr,xe);if(ce.continued){var mn=8.5/xe.fontMetrics().ptPerEm,Dn=3.5/xe.fontMetrics().ptPerEm;Zr.height=Zr.height<mn?mn:Zr.height,Zr.depth=Zr.depth<Dn?Dn:Zr.depth}lr=xe.havingStyle(Dt);var ui=Ti(ce.denom,lr,xe),Si,vi,Qi;ce.hasBarLine?(ce.barSize?(vi=Ir(ce.barSize,xe),Si=kr.makeLineSpan("frac-line",xe,vi)):Si=kr.makeLineSpan("frac-line",xe),vi=Si.height,Qi=Si.height):(Si=null,vi=0,Qi=xe.fontMetrics().defaultRuleThickness);var sa,Ua,no;Oe.size===z.DISPLAY.size||ce.size==="display"?(sa=xe.fontMetrics().num1,vi>0?Ua=3*Qi:Ua=7*Qi,no=xe.fontMetrics().denom1):(vi>0?(sa=xe.fontMetrics().num2,Ua=Qi):(sa=xe.fontMetrics().num3,Ua=3*Qi),no=xe.fontMetrics().denom2);var Wo;if(Si){var Bo=xe.fontMetrics().axisHeight;sa-Zr.depth-(Bo+.5*vi)<Ua&&(sa+=Ua-(sa-Zr.depth-(Bo+.5*vi))),Bo-.5*vi-(ui.height-no)<Ua&&(no+=Ua-(Bo-.5*vi-(ui.height-no)));var Es=-(Bo-.5*vi);Wo=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ui,shift:no},{type:"elem",elem:Si,shift:Es},{type:"elem",elem:Zr,shift:-sa}]},xe)}else{var Zo=sa-Zr.depth-(ui.height-no);Zo<Ua&&(sa+=.5*(Ua-Zo),no+=.5*(Ua-Zo)),Wo=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ui,shift:no},{type:"elem",elem:Zr,shift:-sa}]},xe)}lr=xe.havingStyle(Oe),Wo.height*=lr.sizeMultiplier/xe.sizeMultiplier,Wo.depth*=lr.sizeMultiplier/xe.sizeMultiplier;var As;Oe.size===z.DISPLAY.size?As=xe.fontMetrics().delim1:As=xe.fontMetrics().delim2;var $o,Do;return ce.leftDelim==null?$o=oi(xe,["mopen"]):$o=ao.customSizedDelim(ce.leftDelim,As,!0,xe.havingStyle(Oe),ce.mode,["mopen"]),ce.continued?Do=kr.makeSpan([]):ce.rightDelim==null?Do=oi(xe,["mclose"]):Do=ao.customSizedDelim(ce.rightDelim,As,!0,xe.havingStyle(Oe),ce.mode,["mclose"]),kr.makeSpan(["mord"].concat(lr.sizingClasses(xe)),[$o,kr.makeSpan(["mfrac"],[Wo]),Do],xe)},zn=function(ce,xe){var Oe=new yi.MathNode("mfrac",[Lr(ce.numer,xe),Lr(ce.denom,xe)]);if(!ce.hasBarLine)Oe.setAttribute("linethickness","0px");else if(ce.barSize){var Qe=Ir(ce.barSize,xe);Oe.setAttribute("linethickness",Qe+"em")}var Dt=ni(ce.size,xe.style);if(Dt.size!==xe.style.size){Oe=new yi.MathNode("mstyle",[Oe]);var lr=Dt.size===z.DISPLAY.size?"true":"false";Oe.setAttribute("displaystyle",lr),Oe.setAttribute("scriptlevel","0")}if(ce.leftDelim!=null||ce.rightDelim!=null){var Zr=[];if(ce.leftDelim!=null){var mn=new yi.MathNode("mo",[new yi.TextNode(ce.leftDelim.replace("\\",""))]);mn.setAttribute("fence","true"),Zr.push(mn)}if(Zr.push(Oe),ce.rightDelim!=null){var Dn=new yi.MathNode("mo",[new yi.TextNode(ce.rightDelim.replace("\\",""))]);Dn.setAttribute("fence","true"),Zr.push(Dn)}return Ui(Zr)}return Oe};Lt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(ce,xe){var Oe=ce.parser,Qe=ce.funcName,Dt=xe[0],lr=xe[1],Zr,mn=null,Dn=null,ui="auto";switch(Qe){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Zr=!0;break;case"\\\\atopfrac":Zr=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Zr=!1,mn="(",Dn=")";break;case"\\\\bracefrac":Zr=!1,mn="\\{",Dn="\\}";break;case"\\\\brackfrac":Zr=!1,mn="[",Dn="]";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:Oe.mode,continued:Qe==="\\cfrac",numer:Dt,denom:lr,hasBarLine:Zr,leftDelim:mn,rightDelim:Dn,size:ui,barSize:null}},htmlBuilder:nn,mathmlBuilder:zn}),Lt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(ce){var xe=ce.parser,Oe=ce.funcName,Qe=ce.token,Dt;switch(Oe){case"\\over":Dt="\\frac";break;case"\\choose":Dt="\\binom";break;case"\\atop":Dt="\\\\atopfrac";break;case"\\brace":Dt="\\\\bracefrac";break;case"\\brack":Dt="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:xe.mode,replaceWith:Dt,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};Lt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(ce,xe){var Oe=ce.parser,Qe=xe[4],Dt=xe[5],lr=on(xe[0],"atom");lr&&(lr=jr(xe[0],"open"));var Zr=lr?ci(lr.text):null,mn=on(xe[1],"atom");mn&&(mn=jr(xe[1],"close"));var Dn=mn?ci(mn.text):null,ui=Bn(xe[2],"size"),Si,vi=null;ui.isBlank?Si=!0:(vi=ui.value,Si=vi.number>0);var Qi="auto",sa=on(xe[3],"ordgroup");if(sa){if(sa.body.length>0){var Ua=Bn(sa.body[0],"textord");Qi=li[Number(Ua.text)]}}else sa=Bn(xe[3],"textord"),Qi=li[Number(sa.text)];return{type:"genfrac",mode:Oe.mode,numer:Qe,denom:Dt,continued:!1,hasBarLine:Si,barSize:vi,leftDelim:Zr,rightDelim:Dn,size:Qi}},htmlBuilder:nn,mathmlBuilder:zn}),Lt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(ce,xe){var Oe=ce.parser,Qe=ce.funcName,Dt=ce.token;return{type:"infix",mode:Oe.mode,replaceWith:"\\\\abovefrac",size:Bn(xe[0],"size").value,token:Dt}}}),Lt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(ce,xe){var Oe=ce.parser,Qe=ce.funcName,Dt=xe[0],lr=h(Bn(xe[1],"infix").size),Zr=xe[2],mn=lr.number>0;return{type:"genfrac",mode:Oe.mode,numer:Dt,denom:Zr,continued:!1,hasBarLine:mn,barSize:lr,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:nn,mathmlBuilder:zn});var si=function(ce,xe){var Oe=xe.style,Qe,Dt,lr=on(ce,"supsub");lr?(Qe=lr.sup?Ti(lr.sup,xe.havingStyle(Oe.sup()),xe):Ti(lr.sub,xe.havingStyle(Oe.sub()),xe),Dt=Bn(lr.base,"horizBrace")):Dt=Bn(ce,"horizBrace");var Zr=Ti(Dt.base,xe.havingBaseStyle(z.DISPLAY)),mn=Ln.svgSpan(Dt,xe),Dn;if(Dt.isOver?(Dn=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Zr},{type:"kern",size:.1},{type:"elem",elem:mn}]},xe),Dn.children[0].children[0].children[1].classes.push("svg-align")):(Dn=kr.makeVList({positionType:"bottom",positionData:Zr.depth+.1+mn.height,children:[{type:"elem",elem:mn},{type:"kern",size:.1},{type:"elem",elem:Zr}]},xe),Dn.children[0].children[0].children[0].classes.push("svg-align")),Qe){var ui=kr.makeSpan(["mord",Dt.isOver?"mover":"munder"],[Dn],xe);Dt.isOver?Dn=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ui},{type:"kern",size:.2},{type:"elem",elem:Qe}]},xe):Dn=kr.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 kr.makeSpan(["mord",Dt.isOver?"mover":"munder"],[Dn],xe)},Ci=function(ce,xe){var Oe=Ln.mathMLnode(ce.label);return new yi.MathNode(ce.isOver?"mover":"munder",[Lr(ce.base,xe),Oe])};Lt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(ce,xe){var Oe=ce.parser,Qe=ce.funcName;return{type:"horizBrace",mode:Oe.mode,label:Qe,isOver:/^\\over/.test(Qe),base:xe[0]}},htmlBuilder:si,mathmlBuilder:Ci}),Lt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(ce,xe){var Oe=ce.parser,Qe=xe[1],Dt=Bn(xe[0],"url").url;return Oe.settings.isTrusted({command:"\\href",url:Dt})?{type:"href",mode:Oe.mode,href:Dt,body:Ar(Qe)}:Oe.formatUnsupportedCmd("\\href")},htmlBuilder:function(ce,xe){var Oe=An(ce.body,xe,!1);return kr.makeAnchor(ce.href,[],Oe,xe)},mathmlBuilder:function(ce,xe){var Oe=ra(ce.body,xe);return Oe instanceof ma||(Oe=new ma("mrow",[Oe])),Oe.setAttribute("href",ce.href),Oe}}),Lt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(ce,xe){var Oe=ce.parser,Qe=Bn(xe[0],"url").url;if(!Oe.settings.isTrusted({command:"\\url",url:Qe}))return Oe.formatUnsupportedCmd("\\url");for(var Dt=[],lr=0;lr<Qe.length;lr++){var Zr=Qe[lr];Zr==="~"&&(Zr="\\textasciitilde"),Dt.push({type:"textord",mode:"text",text:Zr})}var mn={type:"text",mode:Oe.mode,font:"\\texttt",body:Dt};return{type:"href",mode:Oe.mode,href:Qe,body:Ar(mn)}}}),Lt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(ce,xe){var Oe=ce.parser;return{type:"htmlmathml",mode:Oe.mode,html:Ar(xe[0]),mathml:Ar(xe[1])}},htmlBuilder:function(ce,xe){var Oe=An(ce.html,xe,!1);return kr.makeFragment(Oe)},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 u("Invalid size: '"+ce+"' in \\includegraphics");var Oe={number:+(xe[1]+xe[2]),unit:xe[3]};if(!Kr(Oe))throw new u("Invalid unit: '"+Oe.unit+"' in \\includegraphics.");return Oe};Lt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(ce,xe,Oe){var Qe=ce.parser,Dt={number:0,unit:"em"},lr={number:.9,unit:"em"},Zr={number:0,unit:"em"},mn="";if(Oe[0])for(var Dn=Bn(Oe[0],"raw").string,ui=Dn.split(","),Si=0;Si<ui.length;Si++){var vi=ui[Si].split("=");if(vi.length===2){var Qi=vi[1].trim();switch(vi[0].trim()){case"alt":mn=Qi;break;case"width":Dt=mi(Qi);break;case"height":lr=mi(Qi);break;case"totalheight":Zr=mi(Qi);break;default:throw new u("Invalid key: '"+vi[0]+"' in \\includegraphics.")}}}var sa=Bn(xe[0],"url").url;return mn===""&&(mn=sa,mn=mn.replace(/^.*[\\/]/,""),mn=mn.substring(0,mn.lastIndexOf("."))),Qe.settings.isTrusted({command:"\\includegraphics",url:sa})?{type:"includegraphics",mode:Qe.mode,alt:mn,width:Dt,height:lr,totalheight:Zr,src:sa}:Qe.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(ce,xe){var Oe=Ir(ce.height,xe),Qe=0;ce.totalheight.number>0&&(Qe=Ir(ce.totalheight,xe)-Oe,Qe=Number(Qe.toFixed(2)));var Dt=0;ce.width.number>0&&(Dt=Ir(ce.width,xe));var lr={height:Oe+Qe+"em"};Dt>0&&(lr.width=Dt+"em"),Qe>0&&(lr.verticalAlign=-Qe+"em");var Zr=new de(ce.src,ce.alt,lr);return Zr.height=Oe,Zr.depth=Qe,Zr},mathmlBuilder:function(ce,xe){var Oe=new yi.MathNode("mglyph",[]);Oe.setAttribute("alt",ce.alt);var Qe=Ir(ce.height,xe),Dt=0;if(ce.totalheight.number>0&&(Dt=Ir(ce.totalheight,xe)-Qe,Dt=Dt.toFixed(2),Oe.setAttribute("valign","-"+Dt+"em")),Oe.setAttribute("height",Qe+Dt+"em"),ce.width.number>0){var lr=Ir(ce.width,xe);Oe.setAttribute("width",lr+"em")}return Oe.setAttribute("src",ce.src),Oe}}),Lt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ce,xe){var Oe=ce.parser,Qe=ce.funcName,Dt=Bn(xe[0],"size");if(Oe.settings.strict){var lr=Qe[1]==="m",Zr=Dt.value.unit==="mu";lr?(Zr||Oe.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Qe+" supports only mu units, "+("not "+Dt.value.unit+" units")),Oe.mode!=="math"&&Oe.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Qe+" works only in math mode")):Zr&&Oe.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Qe+" doesn't support mu units")}return{type:"kern",mode:Oe.mode,dimension:Dt.value}},htmlBuilder:function(ce,xe){return kr.makeGlue(ce.dimension,xe)},mathmlBuilder:function(ce,xe){var Oe=Ir(ce.dimension,xe);return new yi.SpaceNode(Oe)}}),Lt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){var Oe=ce.parser,Qe=ce.funcName,Dt=xe[0];return{type:"lap",mode:Oe.mode,alignment:Qe.slice(5),body:Dt}},htmlBuilder:function(ce,xe){var Oe;ce.alignment==="clap"?(Oe=kr.makeSpan([],[Ti(ce.body,xe)]),Oe=kr.makeSpan(["inner"],[Oe],xe)):Oe=kr.makeSpan(["inner"],[Ti(ce.body,xe)]);var Qe=kr.makeSpan(["fix"],[]),Dt=kr.makeSpan([ce.alignment],[Oe,Qe],xe),lr=kr.makeSpan(["strut"]);return lr.style.height=Dt.height+Dt.depth+"em",lr.style.verticalAlign=-Dt.depth+"em",Dt.children.unshift(lr),Dt=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Dt}]},xe),kr.makeSpan(["mord"],[Dt],xe)},mathmlBuilder:function(ce,xe){var Oe=new yi.MathNode("mpadded",[Lr(ce.body,xe)]);if(ce.alignment!=="rlap"){var Qe=ce.alignment==="llap"?"-1":"-0.5";Oe.setAttribute("lspace",Qe+"width")}return Oe.setAttribute("width","0px"),Oe}}),Lt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ce,xe){var Oe=ce.funcName,Qe=ce.parser,Dt=Qe.mode;Qe.switchMode("math");var lr=Oe==="\\("?"\\)":"$",Zr=Qe.parseExpression(!1,lr);return Qe.expect(lr),Qe.switchMode(Dt),{type:"styling",mode:Qe.mode,style:"text",body:Zr}}}),Lt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ce,xe){throw new u("Mismatched "+ce.funcName)}});var Ai=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}};Lt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(ce,xe){var Oe=ce.parser;return{type:"mathchoice",mode:Oe.mode,display:Ar(xe[0]),text:Ar(xe[1]),script:Ar(xe[2]),scriptscript:Ar(xe[3])}},htmlBuilder:function(ce,xe){var Oe=Ai(ce,xe),Qe=An(Oe,xe,!1);return kr.makeFragment(Qe)},mathmlBuilder:function(ce,xe){var Oe=Ai(ce,xe);return ra(Oe,xe)}});var Ni=function(ce,xe,Oe,Qe,Dt,lr,Zr){ce=kr.makeSpan([],[ce]);var mn,Dn;if(xe){var ui=Ti(xe,Qe.havingStyle(Dt.sup()),Qe);Dn={elem:ui,kern:Math.max(Qe.fontMetrics().bigOpSpacing1,Qe.fontMetrics().bigOpSpacing3-ui.depth)}}if(Oe){var Si=Ti(Oe,Qe.havingStyle(Dt.sub()),Qe);mn={elem:Si,kern:Math.max(Qe.fontMetrics().bigOpSpacing2,Qe.fontMetrics().bigOpSpacing4-Si.height)}}var vi;if(Dn&&mn){var Qi=Qe.fontMetrics().bigOpSpacing5+mn.elem.height+mn.elem.depth+mn.kern+ce.depth+Zr;vi=kr.makeVList({positionType:"bottom",positionData:Qi,children:[{type:"kern",size:Qe.fontMetrics().bigOpSpacing5},{type:"elem",elem:mn.elem,marginLeft:-lr+"em"},{type:"kern",size:mn.kern},{type:"elem",elem:ce},{type:"kern",size:Dn.kern},{type:"elem",elem:Dn.elem,marginLeft:lr+"em"},{type:"kern",size:Qe.fontMetrics().bigOpSpacing5}]},Qe)}else if(mn){var sa=ce.height-Zr;vi=kr.makeVList({positionType:"top",positionData:sa,children:[{type:"kern",size:Qe.fontMetrics().bigOpSpacing5},{type:"elem",elem:mn.elem,marginLeft:-lr+"em"},{type:"kern",size:mn.kern},{type:"elem",elem:ce}]},Qe)}else if(Dn){var Ua=ce.depth+Zr;vi=kr.makeVList({positionType:"bottom",positionData:Ua,children:[{type:"elem",elem:ce},{type:"kern",size:Dn.kern},{type:"elem",elem:Dn.elem,marginLeft:lr+"em"},{type:"kern",size:Qe.fontMetrics().bigOpSpacing5}]},Qe)}else return ce;return kr.makeSpan(["mop","op-limits"],[vi],Qe)},ia=["\\smallint"],Ki=function(ce,xe){var Oe,Qe,Dt=!1,lr,Zr=on(ce,"supsub");Zr?(Oe=Zr.sup,Qe=Zr.sub,lr=Bn(Zr.base,"op"),Dt=!0):lr=Bn(ce,"op");var mn=xe.style,Dn=!1;mn.size===z.DISPLAY.size&&lr.symbol&&!A.contains(ia,lr.name)&&(Dn=!0);var ui;if(lr.symbol){var Si=Dn?"Size2-Regular":"Size1-Regular",vi="";if((lr.name==="\\oiint"||lr.name==="\\oiiint")&&(vi=lr.name.substr(1),lr.name=vi==="oiint"?"\\iint":"\\iiint"),ui=kr.makeSymbol(lr.name,Si,"math",xe,["mop","op-symbol",Dn?"large-op":"small-op"]),vi.length>0){var Qi=ui.italic,sa=kr.staticSvg(vi+"Size"+(Dn?"2":"1"),xe);ui=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ui,shift:0},{type:"elem",elem:sa,shift:Dn?.08:0}]},xe),lr.name="\\"+vi,ui.classes.unshift("mop"),ui.italic=Qi}}else if(lr.body){var Ua=An(lr.body,xe,!0);Ua.length===1&&Ua[0]instanceof Ce?(ui=Ua[0],ui.classes[0]="mop"):ui=kr.makeSpan(["mop"],kr.tryCombineChars(Ua),xe)}else{for(var no=[],Wo=1;Wo<lr.name.length;Wo++)no.push(kr.mathsym(lr.name[Wo],lr.mode,xe));ui=kr.makeSpan(["mop"],no,xe)}var Zo=0,Bo=0;return(ui instanceof Ce||lr.name==="\\oiint"||lr.name==="\\oiiint")&&!lr.suppressBaseShift&&(Zo=(ui.height-ui.depth)/2-xe.fontMetrics().axisHeight,Bo=ui.italic),Dt?Ni(ui,Oe,Qe,xe,mn,Bo,Zo):(Zo&&(ui.style.position="relative",ui.style.top=Zo+"em"),ui)},fa=function(ce,xe){var Oe;if(ce.symbol)Oe=new ma("mo",[kn(ce.name,ce.mode)]),A.contains(ia,ce.name)&&Oe.setAttribute("largeop","false");else if(ce.body)Oe=new ma("mo",ta(ce.body,xe));else{Oe=new ma("mi",[new aa(ce.name.slice(1))]);var Qe=new ma("mo",[kn("\u2061","text")]);ce.parentIsSupSub?Oe=new ma("mo",[Oe,Qe]):Oe=oa([Oe,Qe])}return Oe},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"};Lt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(ce,xe){var Oe=ce.parser,Qe=ce.funcName,Dt=Qe;return Dt.length===1&&(Dt=Ya[Dt]),{type:"op",mode:Oe.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:Dt}},htmlBuilder:Ki,mathmlBuilder:fa}),Lt({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(ce,xe){var Oe=ce.parser,Qe=xe[0];return{type:"op",mode:Oe.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"};Lt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(ce){var xe=ce.parser,Oe=ce.funcName;return{type:"op",mode:xe.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:Oe}},htmlBuilder:Ki,mathmlBuilder:fa}),Lt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(ce){var xe=ce.parser,Oe=ce.funcName;return{type:"op",mode:xe.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:Oe}},htmlBuilder:Ki,mathmlBuilder:fa}),Lt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(ce){var xe=ce.parser,Oe=ce.funcName,Qe=Oe;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 Oe,Qe,Dt=!1,lr,Zr=on(ce,"supsub");Zr?(Oe=Zr.sup,Qe=Zr.sub,lr=Bn(Zr.base,"operatorname"),Dt=!0):lr=Bn(ce,"operatorname");var mn;if(lr.body.length>0){for(var Dn=lr.body.map(function(Qi){var sa=Qi.text;return typeof sa=="string"?{type:"textord",mode:Qi.mode,text:sa}:Qi}),ui=An(Dn,xe.withFont("mathrm"),!0),Si=0;Si<ui.length;Si++){var vi=ui[Si];vi instanceof Ce&&(vi.text=vi.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}mn=kr.makeSpan(["mop"],ui,xe)}else mn=kr.makeSpan(["mop"],[],xe);return Dt?Ni(mn,Oe,Qe,xe,xe.style,0,0):mn},Da=function(ce,xe){for(var Oe=ta(ce.body,xe.withFont("mathrm")),Qe=!0,Dt=0;Dt<Oe.length;Dt++){var lr=Oe[Dt];if(!(lr instanceof yi.SpaceNode))if(lr instanceof yi.MathNode)switch(lr.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Zr=lr.children[0];lr.children.length===1&&Zr instanceof yi.TextNode?Zr.text=Zr.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):Qe=!1;break}default:Qe=!1}else Qe=!1}if(Qe){var mn=Oe.map(function(Si){return Si.toText()}).join("");Oe=[new yi.TextNode(mn)]}var Dn=new yi.MathNode("mi",Oe);Dn.setAttribute("mathvariant","normal");var ui=new yi.MathNode("mo",[kn("\u2061","text")]);return ce.parentIsSupSub?new yi.MathNode("mo",[Dn,ui]):yi.newDocumentFragment([Dn,ui])};Lt({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(ce,xe){var Oe=ce.parser,Qe=ce.funcName,Dt=xe[0];return{type:"operatorname",mode:Oe.mode,body:Ar(Dt),alwaysHandleSupSub:Qe==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:wa,mathmlBuilder:Da}),cr({type:"ordgroup",htmlBuilder:function(ce,xe){return ce.semisimple?kr.makeFragment(An(ce.body,xe,!1)):kr.makeSpan(["mord"],An(ce.body,xe,!0),xe)},mathmlBuilder:function(ce,xe){return ra(ce.body,xe,!0)}}),Lt({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(ce,xe){var Oe=ce.parser,Qe=xe[0];return{type:"overline",mode:Oe.mode,body:Qe}},htmlBuilder:function(ce,xe){var Oe=Ti(ce.body,xe.havingCrampedStyle()),Qe=kr.makeLineSpan("overline-line",xe),Dt=xe.fontMetrics().defaultRuleThickness,lr=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Oe},{type:"kern",size:3*Dt},{type:"elem",elem:Qe},{type:"kern",size:Dt}]},xe);return kr.makeSpan(["mord","overline"],[lr],xe)},mathmlBuilder:function(ce,xe){var Oe=new yi.MathNode("mo",[new yi.TextNode("\u203E")]);Oe.setAttribute("stretchy","true");var Qe=new yi.MathNode("mover",[Lr(ce.body,xe),Oe]);return Qe.setAttribute("accent","true"),Qe}}),Lt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){var Oe=ce.parser,Qe=xe[0];return{type:"phantom",mode:Oe.mode,body:Ar(Qe)}},htmlBuilder:function(ce,xe){var Oe=An(ce.body,xe.withPhantom(),!1);return kr.makeFragment(Oe)},mathmlBuilder:function(ce,xe){var Oe=ta(ce.body,xe);return new yi.MathNode("mphantom",Oe)}}),Lt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){var Oe=ce.parser,Qe=xe[0];return{type:"hphantom",mode:Oe.mode,body:Qe}},htmlBuilder:function(ce,xe){var Oe=kr.makeSpan([],[Ti(ce.body,xe.withPhantom())]);if(Oe.height=0,Oe.depth=0,Oe.children)for(var Qe=0;Qe<Oe.children.length;Qe++)Oe.children[Qe].height=0,Oe.children[Qe].depth=0;return Oe=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Oe}]},xe),kr.makeSpan(["mord"],[Oe],xe)},mathmlBuilder:function(ce,xe){var Oe=ta(Ar(ce.body),xe),Qe=new yi.MathNode("mphantom",Oe),Dt=new yi.MathNode("mpadded",[Qe]);return Dt.setAttribute("height","0px"),Dt.setAttribute("depth","0px"),Dt}}),Lt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){var Oe=ce.parser,Qe=xe[0];return{type:"vphantom",mode:Oe.mode,body:Qe}},htmlBuilder:function(ce,xe){var Oe=kr.makeSpan(["inner"],[Ti(ce.body,xe.withPhantom())]),Qe=kr.makeSpan(["fix"],[]);return kr.makeSpan(["mord","rlap"],[Oe,Qe],xe)},mathmlBuilder:function(ce,xe){var Oe=ta(Ar(ce.body),xe),Qe=new yi.MathNode("mphantom",Oe),Dt=new yi.MathNode("mpadded",[Qe]);return Dt.setAttribute("width","0px"),Dt}}),Lt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(ce,xe){var Oe=ce.parser,Qe=Bn(xe[0],"size").value,Dt=xe[1];return{type:"raisebox",mode:Oe.mode,dy:Qe,body:Dt}},htmlBuilder:function(ce,xe){var Oe=Ti(ce.body,xe),Qe=Ir(ce.dy,xe);return kr.makeVList({positionType:"shift",positionData:-Qe,children:[{type:"elem",elem:Oe}]},xe)},mathmlBuilder:function(ce,xe){var Oe=new yi.MathNode("mpadded",[Lr(ce.body,xe)]),Qe=ce.dy.number+ce.dy.unit;return Oe.setAttribute("voffset",Qe),Oe}}),Lt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(ce,xe,Oe){var Qe=ce.parser,Dt=Oe[0],lr=Bn(xe[0],"size"),Zr=Bn(xe[1],"size");return{type:"rule",mode:Qe.mode,shift:Dt&&Bn(Dt,"size").value,width:lr.value,height:Zr.value}},htmlBuilder:function(ce,xe){var Oe=kr.makeSpan(["mord","rule"],[],xe),Qe=Ir(ce.width,xe),Dt=Ir(ce.height,xe),lr=ce.shift?Ir(ce.shift,xe):0;return Oe.style.borderRightWidth=Qe+"em",Oe.style.borderTopWidth=Dt+"em",Oe.style.bottom=lr+"em",Oe.width=Qe,Oe.height=Dt+lr,Oe.depth=-lr,Oe.maxFontSize=Dt*1.125*xe.sizeMultiplier,Oe},mathmlBuilder:function(ce,xe){var Oe=Ir(ce.width,xe),Qe=Ir(ce.height,xe),Dt=ce.shift?Ir(ce.shift,xe):0,lr=xe.color&&xe.getColor()||"black",Zr=new yi.MathNode("mspace");Zr.setAttribute("mathbackground",lr),Zr.setAttribute("width",Oe+"em"),Zr.setAttribute("height",Qe+"em");var mn=new yi.MathNode("mpadded",[Zr]);return Dt>=0?mn.setAttribute("height","+"+Dt+"em"):(mn.setAttribute("height",Dt+"em"),mn.setAttribute("depth","+"+-Dt+"em")),mn.setAttribute("voffset",Dt+"em"),mn}});function ja(Nt,ce,xe){for(var Oe=An(Nt,ce,!1),Qe=ce.sizeMultiplier/xe.sizeMultiplier,Dt=0;Dt<Oe.length;Dt++){var lr=Oe[Dt].classes.indexOf("sizing");lr<0?Array.prototype.push.apply(Oe[Dt].classes,ce.sizingClasses(xe)):Oe[Dt].classes[lr+1]==="reset-size"+ce.size&&(Oe[Dt].classes[lr+1]="reset-size"+xe.size),Oe[Dt].height*=Qe,Oe[Dt].depth*=Qe}return kr.makeFragment(Oe)}var ko=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],ro=function(ce,xe){var Oe=xe.havingSize(ce.size);return ja(ce.body,Oe,xe)};Lt({type:"sizing",names:ko,props:{numArgs:0,allowedInText:!0},handler:function(ce,xe){var Oe=ce.breakOnTokenText,Qe=ce.funcName,Dt=ce.parser,lr=Dt.parseExpression(!1,Oe);return{type:"sizing",mode:Dt.mode,size:ko.indexOf(Qe)+1,body:lr}},htmlBuilder:ro,mathmlBuilder:function(ce,xe){var Oe=xe.havingSize(ce.size),Qe=ta(ce.body,Oe),Dt=new yi.MathNode("mstyle",Qe);return Dt.setAttribute("mathsize",Oe.sizeMultiplier+"em"),Dt}}),Lt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(ce,xe,Oe){var Qe=ce.parser,Dt=!1,lr=!1,Zr=Oe[0]&&Bn(Oe[0],"ordgroup");if(Zr)for(var mn="",Dn=0;Dn<Zr.body.length;++Dn){var ui=Zr.body[Dn];if(mn=ui.text,mn==="t")Dt=!0;else if(mn==="b")lr=!0;else{Dt=!1,lr=!1;break}}else Dt=!0,lr=!0;var Si=xe[0];return{type:"smash",mode:Qe.mode,body:Si,smashHeight:Dt,smashDepth:lr}},htmlBuilder:function(ce,xe){var Oe=kr.makeSpan([],[Ti(ce.body,xe)]);if(!ce.smashHeight&&!ce.smashDepth)return Oe;if(ce.smashHeight&&(Oe.height=0,Oe.children))for(var Qe=0;Qe<Oe.children.length;Qe++)Oe.children[Qe].height=0;if(ce.smashDepth&&(Oe.depth=0,Oe.children))for(var Dt=0;Dt<Oe.children.length;Dt++)Oe.children[Dt].depth=0;var lr=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Oe}]},xe);return kr.makeSpan(["mord"],[lr],xe)},mathmlBuilder:function(ce,xe){var Oe=new yi.MathNode("mpadded",[Lr(ce.body,xe)]);return ce.smashHeight&&Oe.setAttribute("height","0px"),ce.smashDepth&&Oe.setAttribute("depth","0px"),Oe}}),Lt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(ce,xe,Oe){var Qe=ce.parser,Dt=Oe[0],lr=xe[0];return{type:"sqrt",mode:Qe.mode,body:lr,index:Dt}},htmlBuilder:function(ce,xe){var Oe=Ti(ce.body,xe.havingCrampedStyle());Oe.height===0&&(Oe.height=xe.fontMetrics().xHeight),Oe=kr.wrapFragment(Oe,xe);var Qe=xe.fontMetrics(),Dt=Qe.defaultRuleThickness,lr=Dt;xe.style.id<z.TEXT.id&&(lr=xe.fontMetrics().xHeight);var Zr=Dt+lr/4,mn=Oe.height+Oe.depth+Zr+Dt,Dn=ao.sqrtImage(mn,xe),ui=Dn.span,Si=Dn.ruleWidth,vi=Dn.advanceWidth,Qi=ui.height-Si;Qi>Oe.height+Oe.depth+Zr&&(Zr=(Zr+Qi-Oe.height-Oe.depth)/2);var sa=ui.height-Oe.height-Zr-Si;Oe.style.paddingLeft=vi+"em";var Ua=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Oe,wrapperClasses:["svg-align"]},{type:"kern",size:-(Oe.height+sa)},{type:"elem",elem:ui},{type:"kern",size:Si}]},xe);if(ce.index){var no=xe.havingStyle(z.SCRIPTSCRIPT),Wo=Ti(ce.index,no,xe),Zo=.6*(Ua.height-Ua.depth),Bo=kr.makeVList({positionType:"shift",positionData:-Zo,children:[{type:"elem",elem:Wo}]},xe),Es=kr.makeSpan(["root"],[Bo]);return kr.makeSpan(["mord","sqrt"],[Es,Ua],xe)}else return kr.makeSpan(["mord","sqrt"],[Ua],xe)},mathmlBuilder:function(ce,xe){var Oe=ce.body,Qe=ce.index;return Qe?new yi.MathNode("mroot",[Lr(Oe,xe),Lr(Qe,xe)]):new yi.MathNode("msqrt",[Lr(Oe,xe)])}});var pa={display:z.DISPLAY,text:z.TEXT,script:z.SCRIPT,scriptscript:z.SCRIPTSCRIPT};Lt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(ce,xe){var Oe=ce.breakOnTokenText,Qe=ce.funcName,Dt=ce.parser,lr=Dt.parseExpression(!0,Oe),Zr=Qe.slice(1,Qe.length-5);return{type:"styling",mode:Dt.mode,style:Zr,body:lr}},htmlBuilder:function(ce,xe){var Oe=pa[ce.style],Qe=xe.havingStyle(Oe).withFont("");return ja(ce.body,Qe,xe)},mathmlBuilder:function(ce,xe){var Oe=pa[ce.style],Qe=xe.havingStyle(Oe),Dt=ta(ce.body,Qe),lr=new yi.MathNode("mstyle",Dt),Zr={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},mn=Zr[ce.style];return lr.setAttribute("scriptlevel",mn[0]),lr.setAttribute("displaystyle",mn[1]),lr}});var Ea=function(ce,xe){var Oe=ce.base;if(Oe)if(Oe.type==="op"){var Qe=Oe.limits&&(xe.style.size===z.DISPLAY.size||Oe.alwaysHandleSupSub);return Qe?Ki:null}else if(Oe.type==="operatorname"){var Dt=Oe.alwaysHandleSupSub&&(xe.style.size===z.DISPLAY.size||Oe.limits);return Dt?wa:null}else{if(Oe.type==="accent")return A.isCharacterBox(Oe.base)?Sn:null;if(Oe.type==="horizBrace"){var lr=!ce.sub;return lr===Oe.isOver?si:null}else return null}else return null};cr({type:"supsub",htmlBuilder:function(ce,xe){var Oe=Ea(ce,xe);if(Oe)return Oe(ce,xe);var Qe=ce.base,Dt=ce.sup,lr=ce.sub,Zr=Ti(Qe,xe),mn,Dn,ui=xe.fontMetrics(),Si=0,vi=0,Qi=Qe&&A.isCharacterBox(Qe);if(Dt){var sa=xe.havingStyle(xe.style.sup());mn=Ti(Dt,sa,xe),Qi||(Si=Zr.height-sa.fontMetrics().supDrop*sa.sizeMultiplier/xe.sizeMultiplier)}if(lr){var Ua=xe.havingStyle(xe.style.sub());Dn=Ti(lr,Ua,xe),Qi||(vi=Zr.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(Dn){var Es=ce.base&&ce.base.type==="op"&&ce.base.name&&(ce.base.name==="\\oiint"||ce.base.name==="\\oiiint");(Zr instanceof Ce||Es)&&(Bo=-Zr.italic+"em")}var As;if(mn&&Dn){Si=Math.max(Si,no,mn.depth+.25*ui.xHeight),vi=Math.max(vi,ui.sub2);var $o=ui.defaultRuleThickness,Do=4*$o;if(Si-mn.depth-(Dn.height-vi)<Do){vi=Do-(Si-mn.depth)+Dn.height;var vo=.8*ui.xHeight-(Si-mn.depth);vo>0&&(Si+=vo,vi-=vo)}var Ms=[{type:"elem",elem:Dn,shift:vi,marginRight:Zo,marginLeft:Bo},{type:"elem",elem:mn,shift:-Si,marginRight:Zo}];As=kr.makeVList({positionType:"individualShift",children:Ms},xe)}else if(Dn){vi=Math.max(vi,ui.sub1,Dn.height-.8*ui.xHeight);var rl=[{type:"elem",elem:Dn,marginLeft:Bo,marginRight:Zo}];As=kr.makeVList({positionType:"shift",positionData:vi,children:rl},xe)}else if(mn)Si=Math.max(Si,no,mn.depth+.25*ui.xHeight),As=kr.makeVList({positionType:"shift",positionData:-Si,children:[{type:"elem",elem:mn,marginRight:Zo}]},xe);else throw new Error("supsub must have either sup or sub.");var gs=$n(Zr,"right")||"mord";return kr.makeSpan([gs],[Zr,kr.makeSpan(["msupsub"],[As])],xe)},mathmlBuilder:function(ce,xe){var Oe=!1,Qe,Dt,lr=on(ce.base,"horizBrace");lr&&(Dt=!!ce.sup,Dt===lr.isOver&&(Oe=!0,Qe=lr.isOver)),ce.base&&(ce.base.type==="op"||ce.base.type==="operatorname")&&(ce.base.parentIsSupSub=!0);var Zr=[Lr(ce.base,xe)];ce.sub&&Zr.push(Lr(ce.sub,xe)),ce.sup&&Zr.push(Lr(ce.sup,xe));var mn;if(Oe)mn=Qe?"mover":"munder";else if(ce.sub)if(ce.sup){var Si=ce.base;Si&&Si.type==="op"&&Si.limits&&xe.style===z.DISPLAY||Si&&Si.type==="operatorname"&&Si.alwaysHandleSupSub&&(xe.style===z.DISPLAY||Si.limits)?mn="munderover":mn="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)?mn="munder":mn="msub"}else{var Dn=ce.base;Dn&&Dn.type==="op"&&Dn.limits&&(xe.style===z.DISPLAY||Dn.alwaysHandleSupSub)||Dn&&Dn.type==="operatorname"&&Dn.alwaysHandleSupSub&&(Dn.limits||xe.style===z.DISPLAY)?mn="mover":mn="msup"}var vi=new yi.MathNode(mn,Zr);return vi}}),cr({type:"atom",htmlBuilder:function(ce,xe){return kr.mathsym(ce.text,ce.mode,xe,["m"+ce.family])},mathmlBuilder:function(ce,xe){var Oe=new yi.MathNode("mo",[kn(ce.text,ce.mode)]);if(ce.family==="bin"){var Qe=ha(ce,xe);Qe==="bold-italic"&&Oe.setAttribute("mathvariant",Qe)}else ce.family==="punct"?Oe.setAttribute("separator","true"):(ce.family==="open"||ce.family==="close")&&Oe.setAttribute("stretchy","false");return Oe}});var Fa={mi:"italic",mn:"normal",mtext:"normal"};cr({type:"mathord",htmlBuilder:function(ce,xe){return kr.makeOrd(ce,xe,"mathord")},mathmlBuilder:function(ce,xe){var Oe=new yi.MathNode("mi",[kn(ce.text,ce.mode,xe)]),Qe=ha(ce,xe)||"italic";return Qe!==Fa[Oe.type]&&Oe.setAttribute("mathvariant",Qe),Oe}}),cr({type:"textord",htmlBuilder:function(ce,xe){return kr.makeOrd(ce,xe,"textord")},mathmlBuilder:function(ce,xe){var Oe=kn(ce.text,ce.mode,xe),Qe=ha(ce,xe)||"normal",Dt;return ce.mode==="text"?Dt=new yi.MathNode("mtext",[Oe]):/[0-9]/.test(ce.text)?Dt=new yi.MathNode("mn",[Oe]):ce.text==="\\prime"?Dt=new yi.MathNode("mo",[Oe]):Dt=new yi.MathNode("mi",[Oe]),Qe!==Fa[Dt.type]&&Dt.setAttribute("mathvariant",Qe),Dt}});var Ka={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},lo={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};cr({type:"spacing",htmlBuilder:function(ce,xe){if(lo.hasOwnProperty(ce.text)){var Oe=lo[ce.text].className||"";if(ce.mode==="text"){var Qe=kr.makeOrd(ce,xe,"textord");return Qe.classes.push(Oe),Qe}else return kr.makeSpan(["mspace",Oe],[kr.mathsym(ce.text,ce.mode,xe)],xe)}else{if(Ka.hasOwnProperty(ce.text))return kr.makeSpan(["mspace",Ka[ce.text]],[],xe);throw new u('Unknown type of space "'+ce.text+'"')}},mathmlBuilder:function(ce,xe){var Oe;if(lo.hasOwnProperty(ce.text))Oe=new yi.MathNode("mtext",[new yi.TextNode("\xA0")]);else{if(Ka.hasOwnProperty(ce.text))return new yi.MathNode("mspace");throw new u('Unknown type of space "'+ce.text+'"')}return Oe}});var so=function(){var ce=new yi.MathNode("mtd",[]);return ce.setAttribute("width","50%"),ce};cr({type:"tag",mathmlBuilder:function(ce,xe){var Oe=new yi.MathNode("mtable",[new yi.MathNode("mtr",[so(),new yi.MathNode("mtd",[ra(ce.body,xe)]),so(),new yi.MathNode("mtd",[ra(ce.tag,xe)])])]);return Oe.setAttribute("width","100%"),Oe}});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 Oe=ce.font;return Oe?Co[Oe]?xe.withTextFontFamily(Co[Oe]):Lo[Oe]?xe.withTextFontWeight(Lo[Oe]):xe.withTextFontShape(is[Oe]):xe};Lt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(ce,xe){var Oe=ce.parser,Qe=ce.funcName,Dt=xe[0];return{type:"text",mode:Oe.mode,body:Ar(Dt),font:Qe}},htmlBuilder:function(ce,xe){var Oe=cs(ce,xe),Qe=An(ce.body,Oe,!0);return kr.makeSpan(["mord","text"],kr.tryCombineChars(Qe),Oe)},mathmlBuilder:function(ce,xe){var Oe=cs(ce,xe);return ra(ce.body,Oe)}}),Lt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){var Oe=ce.parser;return{type:"underline",mode:Oe.mode,body:xe[0]}},htmlBuilder:function(ce,xe){var Oe=Ti(ce.body,xe),Qe=kr.makeLineSpan("underline-line",xe),Dt=xe.fontMetrics().defaultRuleThickness,lr=kr.makeVList({positionType:"top",positionData:Oe.height,children:[{type:"kern",size:Dt},{type:"elem",elem:Qe},{type:"kern",size:3*Dt},{type:"elem",elem:Oe}]},xe);return kr.makeSpan(["mord","underline"],[lr],xe)},mathmlBuilder:function(ce,xe){var Oe=new yi.MathNode("mo",[new yi.TextNode("\u203E")]);Oe.setAttribute("stretchy","true");var Qe=new yi.MathNode("munder",[Lr(ce.body,xe),Oe]);return Qe.setAttribute("accentunder","true"),Qe}}),Lt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(ce,xe,Oe){throw new u("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(ce,xe){for(var Oe=Rs(ce),Qe=[],Dt=xe.havingStyle(xe.style.text()),lr=0;lr<Oe.length;lr++){var Zr=Oe[lr];Zr==="~"&&(Zr="\\textasciitilde"),Qe.push(kr.makeSymbol(Zr,"Typewriter-Regular",ce.mode,Dt,["mord","texttt"]))}return kr.makeSpan(["mord","text"].concat(Dt.sizingClasses(xe)),kr.tryCombineChars(Qe),Dt)},mathmlBuilder:function(ce,xe){var Oe=new yi.TextNode(Rs(ce)),Qe=new yi.MathNode("mtext",[Oe]);return Qe.setAttribute("mathvariant","monospace"),Qe}});var Rs=function(ce){return ce.body.replace(/ /g,ce.star?"\u2423":"\xA0")},Ko=Rt,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 Nt(xe,Oe){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=xe,this.settings=Oe,this.tokenRegex=new RegExp(Eo,"g"),this.catcodes={"%":14}}var ce=Nt.prototype;return ce.setCatcode=function(Oe,Qe){this.catcodes[Oe]=Qe},ce.lex=function(){var Oe=this.input,Qe=this.tokenRegex.lastIndex;if(Qe===Oe.length)return new f("EOF",new m(this,Qe,Qe));var Dt=this.tokenRegex.exec(Oe);if(Dt===null||Dt.index!==Qe)throw new u("Unexpected character: '"+Oe[Qe]+"'",new f(Oe[Qe],new m(this,Qe,Qe+1)));var lr=Dt[2]||" ";if(this.catcodes[lr]===14){var Zr=Oe.indexOf(`
`,this.tokenRegex.lastIndex);return Zr===-1?(this.tokenRegex.lastIndex=Oe.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=Zr+1,this.lex()}var mn=lr.match(_s);return mn&&(lr=mn[1]),new f(lr,new m(this,Qe,this.tokenRegex.lastIndex))},Nt}(),Fs=function(){function Nt(xe,Oe){xe===void 0&&(xe={}),Oe===void 0&&(Oe={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=Oe,this.builtins=xe,this.undefStack=[]}var ce=Nt.prototype;return ce.beginGroup=function(){this.undefStack.push({})},ce.endGroup=function(){if(this.undefStack.length===0)throw new u("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var Oe=this.undefStack.pop();for(var Qe in Oe)Oe.hasOwnProperty(Qe)&&(Oe[Qe]===void 0?delete this.current[Qe]:this.current[Qe]=Oe[Qe])},ce.has=function(Oe){return this.current.hasOwnProperty(Oe)||this.builtins.hasOwnProperty(Oe)},ce.get=function(Oe){return this.current.hasOwnProperty(Oe)?this.current[Oe]:this.builtins[Oe]},ce.set=function(Oe,Qe,Dt){if(Dt===void 0&&(Dt=!1),Dt){for(var lr=0;lr<this.undefStack.length;lr++)delete this.undefStack[lr][Oe];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][Oe]=Qe)}else{var Zr=this.undefStack[this.undefStack.length-1];Zr&&!Zr.hasOwnProperty(Oe)&&(Zr[Oe]=this.current[Oe])}this.current[Oe]=Qe},Nt}(),ms={},hs=ms;function wn(Nt,ce){ms[Nt]=ce}wn("\\@firstoftwo",function(Nt){var ce=Nt.consumeArgs(2);return{tokens:ce[0],numArgs:0}}),wn("\\@secondoftwo",function(Nt){var ce=Nt.consumeArgs(2);return{tokens:ce[1],numArgs:0}}),wn("\\@ifnextchar",function(Nt){var ce=Nt.consumeArgs(3),xe=Nt.future();return ce[0].length===1&&ce[0][0].text===xe.text?{tokens:ce[1],numArgs:0}:{tokens:ce[2],numArgs:0}}),wn("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),wn("\\TextOrMath",function(Nt){var ce=Nt.consumeArgs(2);return Nt.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};wn("\\char",function(Nt){var ce=Nt.popToken(),xe,Oe="";if(ce.text==="'")xe=8,ce=Nt.popToken();else if(ce.text==='"')xe=16,ce=Nt.popToken();else if(ce.text==="`")if(ce=Nt.popToken(),ce.text[0]==="\\")Oe=ce.text.charCodeAt(1);else{if(ce.text==="EOF")throw new u("\\char` missing argument");Oe=ce.text.charCodeAt(0)}else xe=10;if(xe){if(Oe=Ns[ce.text],Oe==null||Oe>=xe)throw new u("Invalid base-"+xe+" digit "+ce.text);for(var Qe;(Qe=Ns[Nt.future().text])!=null&&Qe<xe;)Oe*=xe,Oe+=Qe,Nt.popToken()}return"\\@char{"+Oe+"}"});var Ll=function(ce,xe){var Oe=ce.consumeArgs(1)[0];if(Oe.length!==1)throw new u("\\gdef's first argument must be a macro name");var Qe=Oe[0].text,Dt=0;for(Oe=ce.consumeArgs(1)[0];Oe.length===1&&Oe[0].text==="#";){if(Oe=ce.consumeArgs(1)[0],Oe.length!==1)throw new u('Invalid argument number length "'+Oe.length+'"');if(!/^[1-9]$/.test(Oe[0].text))throw new u('Invalid argument number "'+Oe[0].text+'"');if(Dt++,parseInt(Oe[0].text)!==Dt)throw new u('Argument number "'+Oe[0].text+'" out of order');Oe=ce.consumeArgs(1)[0]}return ce.macros.set(Qe,{tokens:Oe,numArgs:Dt},xe),""};wn("\\gdef",function(Nt){return Ll(Nt,!0)}),wn("\\def",function(Nt){return Ll(Nt,!1)}),wn("\\global",function(Nt){var ce=Nt.consumeArgs(1)[0];if(ce.length!==1)throw new u("Invalid command after \\global");var xe=ce[0].text;if(xe==="\\def")return Ll(Nt,!0);throw new u("Invalid command '"+xe+"' after \\global")});var el=function(ce,xe,Oe){var Qe=ce.consumeArgs(1)[0];if(Qe.length!==1)throw new u("\\newcommand's first argument must be a macro name");var Dt=Qe[0].text,lr=ce.isDefined(Dt);if(lr&&!xe)throw new u("\\newcommand{"+Dt+"} attempting to redefine "+(Dt+"; use \\renewcommand"));if(!lr&&!Oe)throw new u("\\renewcommand{"+Dt+"} when command "+Dt+" does not yet exist; use \\newcommand");var Zr=0;if(Qe=ce.consumeArgs(1)[0],Qe.length===1&&Qe[0].text==="["){for(var mn="",Dn=ce.expandNextToken();Dn.text!=="]"&&Dn.text!=="EOF";)mn+=Dn.text,Dn=ce.expandNextToken();if(!mn.match(/^\s*[0-9]+\s*$/))throw new u("Invalid number of arguments: "+mn);Zr=parseInt(mn),Qe=ce.consumeArgs(1)[0]}return ce.macros.set(Dt,{tokens:Qe,numArgs:Zr}),""};wn("\\newcommand",function(Nt){return el(Nt,!1,!0)}),wn("\\renewcommand",function(Nt){return el(Nt,!0,!1)}),wn("\\providecommand",function(Nt){return el(Nt,!0,!0)}),wn("\\bgroup","{"),wn("\\egroup","}"),wn("\\lq","`"),wn("\\rq","'"),wn("\\aa","\\r a"),wn("\\AA","\\r A"),wn("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),wn("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),wn("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),wn("\u212C","\\mathscr{B}"),wn("\u2130","\\mathscr{E}"),wn("\u2131","\\mathscr{F}"),wn("\u210B","\\mathscr{H}"),wn("\u2110","\\mathscr{I}"),wn("\u2112","\\mathscr{L}"),wn("\u2133","\\mathscr{M}"),wn("\u211B","\\mathscr{R}"),wn("\u212D","\\mathfrak{C}"),wn("\u210C","\\mathfrak{H}"),wn("\u2128","\\mathfrak{Z}"),wn("\\Bbbk","\\Bbb{k}"),wn("\xB7","\\cdotp"),wn("\\llap","\\mathllap{\\textrm{#1}}"),wn("\\rlap","\\mathrlap{\\textrm{#1}}"),wn("\\clap","\\mathclap{\\textrm{#1}}"),wn("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),wn("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),wn("\\ne","\\neq"),wn("\u2260","\\neq"),wn("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),wn("\u2209","\\notin"),wn("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),wn("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),wn("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),wn("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),wn("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),wn("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),wn("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),wn("\u27C2","\\perp"),wn("\u203C","\\mathclose{!\\mkern-0.8mu!}"),wn("\u220C","\\notni"),wn("\u231C","\\ulcorner"),wn("\u231D","\\urcorner"),wn("\u231E","\\llcorner"),wn("\u231F","\\lrcorner"),wn("\xA9","\\copyright"),wn("\xAE","\\textregistered"),wn("\uFE0F","\\textregistered"),wn("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),wn("\u22EE","\\vdots"),wn("\\varGamma","\\mathit{\\Gamma}"),wn("\\varDelta","\\mathit{\\Delta}"),wn("\\varTheta","\\mathit{\\Theta}"),wn("\\varLambda","\\mathit{\\Lambda}"),wn("\\varXi","\\mathit{\\Xi}"),wn("\\varPi","\\mathit{\\Pi}"),wn("\\varSigma","\\mathit{\\Sigma}"),wn("\\varUpsilon","\\mathit{\\Upsilon}"),wn("\\varPhi","\\mathit{\\Phi}"),wn("\\varPsi","\\mathit{\\Psi}"),wn("\\varOmega","\\mathit{\\Omega}"),wn("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),wn("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),wn("\\boxed","\\fbox{$\\displaystyle{#1}$}"),wn("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),wn("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),wn("\\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"};wn("\\dots",function(Nt){var ce="\\dotso",xe=Nt.expandAfterFuture().text;return xe in Gs?ce=Gs[xe]:xe.substr(0,4)==="\\not"?ce="\\dotsb":xe in Ge.math&&(A.contains(["bin","rel"],Ge.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};wn("\\dotso",function(Nt){var ce=Nt.future().text;return ce in ds?"\\ldots\\,":"\\ldots"}),wn("\\dotsc",function(Nt){var ce=Nt.future().text;return ce in ds&&ce!==","?"\\ldots\\,":"\\ldots"}),wn("\\cdots",function(Nt){var ce=Nt.future().text;return ce in ds?"\\@cdots\\,":"\\@cdots"}),wn("\\dotsb","\\cdots"),wn("\\dotsm","\\cdots"),wn("\\dotsi","\\!\\cdots"),wn("\\dotsx","\\ldots\\,"),wn("\\DOTSI","\\relax"),wn("\\DOTSB","\\relax"),wn("\\DOTSX","\\relax"),wn("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),wn("\\,","\\tmspace+{3mu}{.1667em}"),wn("\\thinspace","\\,"),wn("\\>","\\mskip{4mu}"),wn("\\:","\\tmspace+{4mu}{.2222em}"),wn("\\medspace","\\:"),wn("\\;","\\tmspace+{5mu}{.2777em}"),wn("\\thickspace","\\;"),wn("\\!","\\tmspace-{3mu}{.1667em}"),wn("\\negthinspace","\\!"),wn("\\negmedspace","\\tmspace-{4mu}{.2222em}"),wn("\\negthickspace","\\tmspace-{5mu}{.277em}"),wn("\\enspace","\\kern.5em "),wn("\\enskip","\\hskip.5em\\relax"),wn("\\quad","\\hskip1em\\relax"),wn("\\qquad","\\hskip2em\\relax"),wn("\\tag","\\@ifstar\\tag@literal\\tag@paren"),wn("\\tag@paren","\\tag@literal{({#1})}"),wn("\\tag@literal",function(Nt){if(Nt.macros.get("\\df@tag"))throw new u("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),wn("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),wn("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),wn("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),wn("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),wn("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),wn("\\\\","\\newline"),wn("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ks=xt["Main-Regular"]["T".charCodeAt(0)][1]-.7*xt["Main-Regular"]["A".charCodeAt(0)][1]+"em";wn("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),wn("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),wn("\\hspace","\\@ifstar\\@hspacer\\@hspace"),wn("\\@hspace","\\hskip #1\\relax"),wn("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),wn("\\ordinarycolon",":"),wn("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),wn("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),wn("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),wn("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),wn("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),wn("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),wn("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),wn("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),wn("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),wn("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),wn("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),wn("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),wn("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),wn("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),wn("\u2237","\\dblcolon"),wn("\u2239","\\eqcolon"),wn("\u2254","\\coloneqq"),wn("\u2255","\\eqqcolon"),wn("\u2A74","\\Coloneqq"),wn("\\ratio","\\vcentcolon"),wn("\\coloncolon","\\dblcolon"),wn("\\colonequals","\\coloneqq"),wn("\\coloncolonequals","\\Coloneqq"),wn("\\equalscolon","\\eqqcolon"),wn("\\equalscoloncolon","\\Eqqcolon"),wn("\\colonminus","\\coloneq"),wn("\\coloncolonminus","\\Coloneq"),wn("\\minuscolon","\\eqcolon"),wn("\\minuscoloncolon","\\Eqcolon"),wn("\\coloncolonapprox","\\Colonapprox"),wn("\\coloncolonsim","\\Colonsim"),wn("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),wn("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),wn("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),wn("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),wn("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),wn("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),wn("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),wn("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),wn("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),wn("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),wn("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),wn("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),wn("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),wn("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),wn("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),wn("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),wn("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),wn("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),wn("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),wn("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),wn("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),wn("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),wn("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),wn("\u27E6","\\llbracket"),wn("\u27E7","\\rrbracket"),wn("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),wn("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),wn("\u2983","\\lBrace"),wn("\u2984","\\rBrace"),wn("\\darr","\\downarrow"),wn("\\dArr","\\Downarrow"),wn("\\Darr","\\Downarrow"),wn("\\lang","\\langle"),wn("\\rang","\\rangle"),wn("\\uarr","\\uparrow"),wn("\\uArr","\\Uparrow"),wn("\\Uarr","\\Uparrow"),wn("\\N","\\mathbb{N}"),wn("\\R","\\mathbb{R}"),wn("\\Z","\\mathbb{Z}"),wn("\\alef","\\aleph"),wn("\\alefsym","\\aleph"),wn("\\Alpha","\\mathrm{A}"),wn("\\Beta","\\mathrm{B}"),wn("\\bull","\\bullet"),wn("\\Chi","\\mathrm{X}"),wn("\\clubs","\\clubsuit"),wn("\\cnums","\\mathbb{C}"),wn("\\Complex","\\mathbb{C}"),wn("\\Dagger","\\ddagger"),wn("\\diamonds","\\diamondsuit"),wn("\\empty","\\emptyset"),wn("\\Epsilon","\\mathrm{E}"),wn("\\Eta","\\mathrm{H}"),wn("\\exist","\\exists"),wn("\\harr","\\leftrightarrow"),wn("\\hArr","\\Leftrightarrow"),wn("\\Harr","\\Leftrightarrow"),wn("\\hearts","\\heartsuit"),wn("\\image","\\Im"),wn("\\infin","\\infty"),wn("\\Iota","\\mathrm{I}"),wn("\\isin","\\in"),wn("\\Kappa","\\mathrm{K}"),wn("\\larr","\\leftarrow"),wn("\\lArr","\\Leftarrow"),wn("\\Larr","\\Leftarrow"),wn("\\lrarr","\\leftrightarrow"),wn("\\lrArr","\\Leftrightarrow"),wn("\\Lrarr","\\Leftrightarrow"),wn("\\Mu","\\mathrm{M}"),wn("\\natnums","\\mathbb{N}"),wn("\\Nu","\\mathrm{N}"),wn("\\Omicron","\\mathrm{O}"),wn("\\plusmn","\\pm"),wn("\\rarr","\\rightarrow"),wn("\\rArr","\\Rightarrow"),wn("\\Rarr","\\Rightarrow"),wn("\\real","\\Re"),wn("\\reals","\\mathbb{R}"),wn("\\Reals","\\mathbb{R}"),wn("\\Rho","\\mathrm{P}"),wn("\\sdot","\\cdot"),wn("\\sect","\\S"),wn("\\spades","\\spadesuit"),wn("\\sub","\\subset"),wn("\\sube","\\subseteq"),wn("\\supe","\\supseteq"),wn("\\Tau","\\mathrm{T}"),wn("\\thetasym","\\vartheta"),wn("\\weierp","\\wp"),wn("\\Zeta","\\mathrm{Z}"),wn("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),wn("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),wn("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),wn("\\blue","\\textcolor{##6495ed}{#1}"),wn("\\orange","\\textcolor{##ffa500}{#1}"),wn("\\pink","\\textcolor{##ff00af}{#1}"),wn("\\red","\\textcolor{##df0030}{#1}"),wn("\\green","\\textcolor{##28ae7b}{#1}"),wn("\\gray","\\textcolor{gray}{#1}"),wn("\\purple","\\textcolor{##9d38bd}{#1}"),wn("\\blueA","\\textcolor{##ccfaff}{#1}"),wn("\\blueB","\\textcolor{##80f6ff}{#1}"),wn("\\blueC","\\textcolor{##63d9ea}{#1}"),wn("\\blueD","\\textcolor{##11accd}{#1}"),wn("\\blueE","\\textcolor{##0c7f99}{#1}"),wn("\\tealA","\\textcolor{##94fff5}{#1}"),wn("\\tealB","\\textcolor{##26edd5}{#1}"),wn("\\tealC","\\textcolor{##01d1c1}{#1}"),wn("\\tealD","\\textcolor{##01a995}{#1}"),wn("\\tealE","\\textcolor{##208170}{#1}"),wn("\\greenA","\\textcolor{##b6ffb0}{#1}"),wn("\\greenB","\\textcolor{##8af281}{#1}"),wn("\\greenC","\\textcolor{##74cf70}{#1}"),wn("\\greenD","\\textcolor{##1fab54}{#1}"),wn("\\greenE","\\textcolor{##0d923f}{#1}"),wn("\\goldA","\\textcolor{##ffd0a9}{#1}"),wn("\\goldB","\\textcolor{##ffbb71}{#1}"),wn("\\goldC","\\textcolor{##ff9c39}{#1}"),wn("\\goldD","\\textcolor{##e07d10}{#1}"),wn("\\goldE","\\textcolor{##a75a05}{#1}"),wn("\\redA","\\textcolor{##fca9a9}{#1}"),wn("\\redB","\\textcolor{##ff8482}{#1}"),wn("\\redC","\\textcolor{##f9685d}{#1}"),wn("\\redD","\\textcolor{##e84d39}{#1}"),wn("\\redE","\\textcolor{##bc2612}{#1}"),wn("\\maroonA","\\textcolor{##ffbde0}{#1}"),wn("\\maroonB","\\textcolor{##ff92c6}{#1}"),wn("\\maroonC","\\textcolor{##ed5fa6}{#1}"),wn("\\maroonD","\\textcolor{##ca337c}{#1}"),wn("\\maroonE","\\textcolor{##9e034e}{#1}"),wn("\\purpleA","\\textcolor{##ddd7ff}{#1}"),wn("\\purpleB","\\textcolor{##c6b9fc}{#1}"),wn("\\purpleC","\\textcolor{##aa87ff}{#1}"),wn("\\purpleD","\\textcolor{##7854ab}{#1}"),wn("\\purpleE","\\textcolor{##543b78}{#1}"),wn("\\mintA","\\textcolor{##f5f9e8}{#1}"),wn("\\mintB","\\textcolor{##edf2df}{#1}"),wn("\\mintC","\\textcolor{##e0e5cc}{#1}"),wn("\\grayA","\\textcolor{##f6f7f7}{#1}"),wn("\\grayB","\\textcolor{##f0f1f2}{#1}"),wn("\\grayC","\\textcolor{##e3e5e6}{#1}"),wn("\\grayD","\\textcolor{##d6d8da}{#1}"),wn("\\grayE","\\textcolor{##babec2}{#1}"),wn("\\grayF","\\textcolor{##888d93}{#1}"),wn("\\grayG","\\textcolor{##626569}{#1}"),wn("\\grayH","\\textcolor{##3b3e40}{#1}"),wn("\\grayI","\\textcolor{##21242c}{#1}"),wn("\\kaBlue","\\textcolor{##314453}{#1}"),wn("\\kaGreen","\\textcolor{##71B307}{#1}");var Qs={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},tl=function(){function Nt(xe,Oe,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=Oe,this.expansionCount=0,this.feed(xe),this.macros=new Fs(hs,Oe.macros),this.mode=Qe,this.stack=[]}var ce=Nt.prototype;return ce.feed=function(Oe){this.lexer=new zo(Oe,this.settings)},ce.switchMode=function(Oe){this.mode=Oe},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(Oe){this.stack.push(Oe)},ce.pushTokens=function(Oe){var Qe;(Qe=this.stack).push.apply(Qe,Oe)},ce.consumeSpaces=function(){for(;;){var Oe=this.future();if(Oe.text===" ")this.stack.pop();else break}},ce.consumeArgs=function(Oe){for(var Qe=[],Dt=0;Dt<Oe;++Dt){this.consumeSpaces();var lr=this.popToken();if(lr.text==="{"){for(var Zr=[],mn=1;mn!==0;){var Dn=this.popToken();if(Zr.push(Dn),Dn.text==="{")++mn;else if(Dn.text==="}")--mn;else if(Dn.text==="EOF")throw new u("End of input in macro argument",lr)}Zr.pop(),Zr.reverse(),Qe[Dt]=Zr}else{if(lr.text==="EOF")throw new u("End of input expecting macro argument");Qe[Dt]=[lr]}}return Qe},ce.expandOnce=function(){var Oe=this.popToken(),Qe=Oe.text,Dt=this._getExpansion(Qe);if(Dt==null)return this.pushToken(Oe),Oe;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new u("Too many expansions: infinite loop or need to increase maxExpand setting");var lr=Dt.tokens;if(Dt.numArgs){var Zr=this.consumeArgs(Dt.numArgs);lr=lr.slice();for(var mn=lr.length-1;mn>=0;--mn){var Dn=lr[mn];if(Dn.text==="#"){if(mn===0)throw new u("Incomplete placeholder at end of macro body",Dn);if(Dn=lr[--mn],Dn.text==="#")lr.splice(mn+1,1);else if(/^[1-9]$/.test(Dn.text)){var ui;(ui=lr).splice.apply(ui,[mn,2].concat(Zr[+Dn.text-1]))}else throw new u("Not a valid argument number",Dn)}}}return this.pushTokens(lr),lr},ce.expandAfterFuture=function(){return this.expandOnce(),this.future()},ce.expandNextToken=function(){for(;;){var Oe=this.expandOnce();if(Oe instanceof f)if(Oe.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},ce.expandMacro=function(Oe){if(!this.macros.get(Oe))return;var Qe=[],Dt=this.stack.length;for(this.pushToken(new f(Oe));this.stack.length>Dt;){var lr=this.expandOnce();lr instanceof f&&Qe.push(this.stack.pop())}return Qe},ce.expandMacroAsText=function(Oe){var Qe=this.expandMacro(Oe);return Qe&&Qe.map(function(Dt){return Dt.text}).join("")},ce._getExpansion=function(Oe){var Qe=this.macros.get(Oe);if(Qe==null)return Qe;var Dt=typeof Qe=="function"?Qe(this):Qe;if(typeof Dt=="string"){var lr=0;if(Dt.indexOf("#")!==-1)for(var Zr=Dt.replace(/##/g,"");Zr.indexOf("#"+(lr+1))!==-1;)++lr;for(var mn=new zo(Dt,this.settings),Dn=[],ui=mn.lex();ui.text!=="EOF";)Dn.push(ui),ui=mn.lex();Dn.reverse();var Si={tokens:Dn,numArgs:lr};return Si}return Dt},ce.isDefined=function(Oe){return this.macros.has(Oe)||as.hasOwnProperty(Oe)||Ge.math.hasOwnProperty(Oe)||Ge.text.hasOwnProperty(Oe)||Qs.hasOwnProperty(Oe)},Nt}(),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 Nt(xe,Oe){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,Oe,this.mode),this.settings=Oe,this.leftrightDepth=0}var ce=Nt.prototype;return ce.expect=function(Oe,Qe){if(Qe===void 0&&(Qe=!0),this.fetch().text!==Oe)throw new u("Expected '"+Oe+"', 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(Oe){this.mode=Oe,this.gullet.switchMode(Oe)},ce.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var Oe=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),Oe},ce.parseExpression=function(Oe,Qe){for(var Dt=[];;){this.mode==="math"&&this.consumeSpaces();var lr=this.fetch();if(Nt.endOfExpression.indexOf(lr.text)!==-1)break;if(Qe&&lr.text===Qe)break;if(Oe&&as[lr.text]&&as[lr.text].infix)break;var Zr=this.parseAtom(Qe);if(!Zr)break;Dt.push(Zr)}return this.mode==="text"&&this.formLigatures(Dt),this.handleInfixNodes(Dt)},ce.handleInfixNodes=function(Oe){for(var Qe=-1,Dt,lr=0;lr<Oe.length;lr++){var Zr=on(Oe[lr],"infix");if(Zr){if(Qe!==-1)throw new u("only one infix operator per group",Zr.token);Qe=lr,Dt=Zr.replaceWith}}if(Qe!==-1&&Dt){var mn,Dn,ui=Oe.slice(0,Qe),Si=Oe.slice(Qe+1);ui.length===1&&ui[0].type==="ordgroup"?mn=ui[0]:mn={type:"ordgroup",mode:this.mode,body:ui},Si.length===1&&Si[0].type==="ordgroup"?Dn=Si[0]:Dn={type:"ordgroup",mode:this.mode,body:Si};var vi;return Dt==="\\\\abovefrac"?vi=this.callFunction(Dt,[mn,Oe[Qe],Dn],[]):vi=this.callFunction(Dt,[mn,Dn],[]),[vi]}else return Oe},ce.handleSupSubscript=function(Oe){var Qe=this.fetch(),Dt=Qe.text;this.consume();var lr=this.parseGroup(Oe,!1,Nt.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!lr)throw new u("Expected group after '"+Dt+"'",Qe);return lr},ce.formatUnsupportedCmd=function(Oe){for(var Qe=[],Dt=0;Dt<Oe.length;Dt++)Qe.push({type:"textord",mode:"text",text:Oe[Dt]});var lr={type:"text",mode:this.mode,body:Qe},Zr={type:"color",mode:this.mode,color:this.settings.errorColor,body:[lr]};return Zr},ce.parseAtom=function(Oe){var Qe=this.parseGroup("atom",!1,null,Oe);if(this.mode==="text")return Qe;for(var Dt,lr;;){this.consumeSpaces();var Zr=this.fetch();if(Zr.text==="\\limits"||Zr.text==="\\nolimits"){var mn=on(Qe,"op");if(mn){var Dn=Zr.text==="\\limits";mn.limits=Dn,mn.alwaysHandleSupSub=!0}else if(mn=on(Qe,"operatorname"),mn&&mn.alwaysHandleSupSub){var ui=Zr.text==="\\limits";mn.limits=ui}else throw new u("Limit controls must follow a math operator",Zr);this.consume()}else if(Zr.text==="^"){if(Dt)throw new u("Double superscript",Zr);Dt=this.handleSupSubscript("superscript")}else if(Zr.text==="_"){if(lr)throw new u("Double subscript",Zr);lr=this.handleSupSubscript("subscript")}else if(Zr.text==="'"){if(Dt)throw new u("Double superscript",Zr);var Si={type:"textord",mode:this.mode,text:"\\prime"},vi=[Si];for(this.consume();this.fetch().text==="'";)vi.push(Si),this.consume();this.fetch().text==="^"&&vi.push(this.handleSupSubscript("superscript")),Dt={type:"ordgroup",mode:this.mode,body:vi}}else break}return Dt||lr?{type:"supsub",mode:this.mode,base:Qe,sup:Dt,sub:lr}:Qe},ce.parseFunction=function(Oe,Qe,Dt){var lr=this.fetch(),Zr=lr.text,mn=as[Zr];if(!mn)return null;if(this.consume(),Dt!=null&&mn.greediness<=Dt)throw new u("Got function '"+Zr+"' with no arguments"+(Qe?" as "+Qe:""),lr);if(this.mode==="text"&&!mn.allowedInText)throw new u("Can't use function '"+Zr+"' in text mode",lr);if(this.mode==="math"&&mn.allowedInMath===!1)throw new u("Can't use function '"+Zr+"' in math mode",lr);var Dn=this.parseArguments(Zr,mn),ui=Dn.args,Si=Dn.optArgs;return this.callFunction(Zr,ui,Si,lr,Oe)},ce.callFunction=function(Oe,Qe,Dt,lr,Zr){var mn={funcName:Oe,parser:this,token:lr,breakOnTokenText:Zr},Dn=as[Oe];if(Dn&&Dn.handler)return Dn.handler(mn,Qe,Dt);throw new u("No function handler for "+Oe)},ce.parseArguments=function(Oe,Qe){var Dt=Qe.numArgs+Qe.numOptionalArgs;if(Dt===0)return{args:[],optArgs:[]};for(var lr=Qe.greediness,Zr=[],mn=[],Dn=0;Dn<Dt;Dn++){var ui=Qe.argTypes&&Qe.argTypes[Dn],Si=Dn<Qe.numOptionalArgs,vi=Dn>0&&!Si||Dn===0&&!Si&&this.mode==="math",Qi=this.parseGroupOfType("argument to '"+Oe+"'",ui,Si,lr,vi);if(!Qi){if(Si){mn.push(null);continue}throw new u("Expected group after '"+Oe+"'",this.fetch())}(Si?mn:Zr).push(Qi)}return{args:Zr,optArgs:mn}},ce.parseGroupOfType=function(Oe,Qe,Dt,lr,Zr){switch(Qe){case"color":return Zr&&this.consumeSpaces(),this.parseColorGroup(Dt);case"size":return Zr&&this.consumeSpaces(),this.parseSizeGroup(Dt);case"url":return this.parseUrlGroup(Dt,Zr);case"math":case"text":return this.parseGroup(Oe,Dt,lr,void 0,Qe,Zr);case"hbox":{var mn=this.parseGroup(Oe,Dt,lr,void 0,"text",Zr);if(!mn)return mn;var Dn={type:"styling",mode:mn.mode,body:[mn],style:"text"};return Dn}case"raw":{if(Zr&&this.consumeSpaces(),Dt&&this.fetch().text==="{")return null;var ui=this.parseStringGroup("raw",Dt,!0);if(ui)return{type:"raw",mode:"text",string:ui.text};throw new u("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(Oe,Dt,lr,void 0,void 0,Zr);default:throw new u("Unknown group type as "+Oe,this.fetch())}},ce.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},ce.parseStringGroup=function(Oe,Qe,Dt){var lr=Qe?"[":"{",Zr=Qe?"]":"}",mn=this.fetch();if(mn.text!==lr){if(Qe)return null;if(Dt&&mn.text!=="EOF"&&/[^{}[\]]/.test(mn.text))return this.consume(),mn}var Dn=this.mode;this.mode="text",this.expect(lr);for(var ui="",Si=this.fetch(),vi=0,Qi=Si,sa;(sa=this.fetch()).text!==Zr||Dt&&vi>0;){switch(sa.text){case"EOF":throw new u("Unexpected end of input in "+Oe,Si.range(Qi,ui));case lr:vi++;break;case Zr:vi--;break}Qi=sa,ui+=Qi.text,this.consume()}return this.expect(Zr),this.mode=Dn,Si.range(Qi,ui)},ce.parseRegexGroup=function(Oe,Qe){var Dt=this.mode;this.mode="text";for(var lr=this.fetch(),Zr=lr,mn="",Dn;(Dn=this.fetch()).text!=="EOF"&&Oe.test(mn+Dn.text);)Zr=Dn,mn+=Zr.text,this.consume();if(mn==="")throw new u("Invalid "+Qe+": '"+lr.text+"'",lr);return this.mode=Dt,lr.range(Zr,mn)},ce.parseColorGroup=function(Oe){var Qe=this.parseStringGroup("color",Oe);if(!Qe)return null;var Dt=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(Qe.text);if(!Dt)throw new u("Invalid color: '"+Qe.text+"'",Qe);var lr=Dt[0];return/^[0-9a-f]{6}$/i.test(lr)&&(lr="#"+lr),{type:"color-token",mode:this.mode,color:lr}},ce.parseSizeGroup=function(Oe){var Qe,Dt=!1;if(!Oe&&this.fetch().text!=="{"?Qe=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):Qe=this.parseStringGroup("size",Oe),!Qe)return null;!Oe&&Qe.text.length===0&&(Qe.text="0pt",Dt=!0);var lr=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(Qe.text);if(!lr)throw new u("Invalid size: '"+Qe.text+"'",Qe);var Zr={number:+(lr[1]+lr[2]),unit:lr[3]};if(!Kr(Zr))throw new u("Invalid unit: '"+Zr.unit+"'",Qe);return{type:"size",mode:this.mode,value:Zr,isBlank:Dt}},ce.parseUrlGroup=function(Oe,Qe){this.gullet.lexer.setCatcode("%",13);var Dt=this.parseStringGroup("url",Oe,!0);if(this.gullet.lexer.setCatcode("%",14),!Dt)return null;var lr=Dt.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:lr}},ce.parseGroup=function(Oe,Qe,Dt,lr,Zr,mn){var Dn=this.mode;Zr&&this.switchMode(Zr),mn&&this.consumeSpaces();var ui=this.fetch(),Si=ui.text,vi;if(Qe?Si==="[":Si==="{"||Si==="\\begingroup"){this.consume();var Qi=Nt.endOfGroup[Si];this.gullet.beginGroup();var sa=this.parseExpression(!1,Qi),Ua=this.fetch();this.expect(Qi),this.gullet.endGroup(),vi={type:"ordgroup",mode:this.mode,loc:m.range(ui,Ua),body:sa,semisimple:Si==="\\begingroup"||void 0}}else if(Qe)vi=null;else if(vi=this.parseFunction(lr,Oe,Dt)||this.parseSymbol(),vi==null&&Si[0]==="\\"&&!Qs.hasOwnProperty(Si)){if(this.settings.throwOnError)throw new u("Undefined control sequence: "+Si,ui);vi=this.formatUnsupportedCmd(Si),this.consume()}return Zr&&this.switchMode(Dn),vi},ce.formLigatures=function(Oe){for(var Qe=Oe.length-1,Dt=0;Dt<Qe;++Dt){var lr=Oe[Dt],Zr=lr.text;Zr==="-"&&Oe[Dt+1].text==="-"&&(Dt+1<Qe&&Oe[Dt+2].text==="-"?(Oe.splice(Dt,3,{type:"textord",mode:"text",loc:m.range(lr,Oe[Dt+2]),text:"---"}),Qe-=2):(Oe.splice(Dt,2,{type:"textord",mode:"text",loc:m.range(lr,Oe[Dt+1]),text:"--"}),Qe-=1)),(Zr==="'"||Zr==="`")&&Oe[Dt+1].text===Zr&&(Oe.splice(Dt,2,{type:"textord",mode:"text",loc:m.range(lr,Oe[Dt+1]),text:Zr+Zr}),Qe-=1)}},ce.parseSymbol=function(){var Oe=this.fetch(),Qe=Oe.text;if(/^\\verb[^a-zA-Z]/.test(Qe)){this.consume();var Dt=Qe.slice(5),lr=Dt.charAt(0)==="*";if(lr&&(Dt=Dt.slice(1)),Dt.length<2||Dt.charAt(0)!==Dt.slice(-1))throw new u(`\\verb assertion failed --
please report what input caused this bug`);return Dt=Dt.slice(1,-1),{type:"verb",mode:"text",body:Dt,star:lr}}Bs.hasOwnProperty(Qe[0])&&!Ge[this.mode][Qe[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+Qe[0]+'" used in math mode',Oe),Qe=Bs[Qe[0]]+Qe.substr(1));var Zr=il.exec(Qe);Zr&&(Qe=Qe.substring(0,Zr.index),Qe==="i"?Qe="\u0131":Qe==="j"&&(Qe="\u0237"));var mn;if(Ge[this.mode][Qe]){this.settings.strict&&this.mode==="math"&&Vt.indexOf(Qe)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+Qe[0]+'" used in math mode',Oe);var Dn=Ge[this.mode][Qe].group,ui=m.range(Oe),Si;if(Jt.hasOwnProperty(Dn)){var vi=Dn;Si={type:"atom",mode:this.mode,family:vi,loc:ui,text:Qe}}else Si={type:Dn,mode:this.mode,loc:ui,text:Qe};mn=Si}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',Oe):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+Qe[0]+'"'+(" ("+Qe.charCodeAt(0)+")"),Oe)),mn={type:"textord",mode:"text",loc:m.range(Oe),text:Qe};else return null;if(this.consume(),Zr)for(var Qi=0;Qi<Zr[0].length;Qi++){var sa=Zr[0][Qi];if(!xs[sa])throw new u("Unknown accent ' "+sa+"'",Oe);var Ua=xs[sa][this.mode];if(!Ua)throw new u("Accent "+sa+" unsupported in "+this.mode+" mode",Oe);mn={type:"accent",mode:this.mode,loc:m.range(Oe),label:Ua,isStretchy:!1,isShifty:!0,base:mn}}return mn},Nt}();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 Oe=new al(ce,xe);delete Oe.gullet.macros.current["\\df@tag"];var Qe=Oe.parse();if(Oe.gullet.macros.get("\\df@tag")){if(!xe.displayMode)throw new u("\\tag works only in display equations");Oe.gullet.feed("\\df@tag"),Qe=[{type:"tag",mode:"text",body:Qe,tag:Oe.parse()}]}return Qe},Vo=Js,No=function(ce,xe,Oe){xe.textContent="";var Qe=Ut(ce,Oe).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 u("KaTeX doesn't work in quirks mode.")}));var fs=function(ce,xe){var Oe=Ut(ce,xe).toMarkup();return Oe},Ds=function(ce,xe){var Oe=new b(xe);return Vo(ce,Oe)},go=function(ce,xe,Oe){if(Oe.throwOnError||!(ce instanceof u))throw ce;var Qe=kr.makeSpan(["katex-error"],[new Ce(xe)]);return Qe.setAttribute("title",ce.toString()),Qe.setAttribute("style","color:"+Oe.errorColor),Qe},Ut=function(ce,xe){var Oe=new b(xe);try{var Qe=Vo(ce,Oe);return Mr(Qe,ce,Oe)}catch(Dt){return go(Dt,ce,Oe)}},or=function(ce,xe){var Oe=new b(xe);try{var Qe=Vo(ce,Oe);return Xr(Qe,ce,Oe)}catch(Dt){return go(Dt,ce,Oe)}},Nn={version:"0.11.1",render:No,renderToString:fs,ParseError:u,__parse:Ds,__renderToDomTree:Ut,__renderToHTMLTree:or,__setFontMetrics:ir,__defineSymbol:pe,__defineMacro:wn,__domTree:{Span:Y,Anchor:$,SymbolNode:Ce,SvgNode:Be,PathNode:fe,LineNode:Se}},hi=p.default=Nn}]).default})},P2fV:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("Q9mQ"),v=n("+L6B"),m=n("sE09"),f=n.n(m)},P2ho:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={Again:57349,AltLeft:56,AltRight:57400,ArrowDown:57424,ArrowLeft:57419,ArrowRight:57421,ArrowUp:57416,AudioVolumeDown:57390,AudioVolumeMute:57376,AudioVolumeUp:57392,Backquote:41,Backslash:43,Backspace:14,BracketLeft:26,BracketRight:27,BrowserBack:57450,BrowserFavorites:57446,BrowserForward:57449,BrowserHome:57394,BrowserRefresh:57447,BrowserSearch:57445,BrowserStop:57448,CapsLock:58,Comma:51,ContextMenu:57437,ControlLeft:29,ControlRight:57373,Convert:121,Copy:57464,Cut:57404,Delete:57427,Digit0:11,Digit1:2,Digit2:3,Digit3:4,Digit4:5,Digit5:6,Digit6:7,Digit7:8,Digit8:9,Digit9:10,Eject:57469,End:57423,Enter:28,Equal:13,Escape:1,F1:59,F10:68,F11:87,F12:88,F13:93,F14:94,F15:95,F16:85,F17:57347,F18:57463,F19:57348,F2:60,F20:90,F21:116,F22:57465,F23:109,F24:111,F3:61,F4:62,F5:63,F6:64,F7:65,F8:66,F9:67,Find:57409,Help:57461,Hiragana:119,Home:57415,Insert:57426,IntlBackslash:86,IntlRo:115,IntlYen:125,KanaMode:112,Katakana:120,KeyA:30,KeyB:48,KeyC:46,KeyD:32,KeyE:18,KeyF:33,KeyG:34,KeyH:35,KeyI:23,KeyJ:36,KeyK:37,KeyL:38,KeyM:50,KeyN:49,KeyO:24,KeyP:25,KeyQ:16,KeyR:19,KeyS:31,KeyT:20,KeyU:22,KeyV:47,KeyW:17,KeyX:45,KeyY:21,KeyZ:44,Lang3:120,Lang4:119,Lang5:118,LaunchApp1:57451,LaunchApp2:57377,LaunchMail:57452,MediaPlayPause:57378,MediaSelect:57453,MediaStop:57380,MediaTrackNext:57369,MediaTrackPrevious:57360,MetaLeft:57435,MetaRight:57436,Minus:12,NonConvert:123,NumLock:69,Numpad0:82,Numpad1:79,Numpad2:80,Numpad3:81,Numpad4:75,Numpad5:76,Numpad6:77,Numpad7:71,Numpad8:72,Numpad9:73,NumpadAdd:78,NumpadComma:126,NumpadDecimal:83,NumpadDivide:57397,NumpadEnter:57372,NumpadEqual:89,NumpadMultiply:55,NumpadParenLeft:57462,NumpadParenRight:57467,NumpadSubtract:74,Open:100,PageDown:57425,PageUp:57417,Paste:101,Pause:57414,Period:52,Power:57438,PrintScreen:84,Props:57350,Quote:40,ScrollLock:70,Semicolon:39,ShiftLeft:42,ShiftRight:54,Slash:53,Sleep:57439,Space:57,Suspend:57381,Tab:15,Undo:57351,WakeUp:57443};D.default=y},P47w:function(k,D,n){var y=n("hydK"),p=y.createElement,x=n("IMiH"),v=n("mFDi"),m=n("Fofx"),f=n("6GrX"),d=n("pzxd"),u=n("dqUG"),o=x.CMD,i=Array.prototype.join,t="none",s=Math.round,e=Math.sin,l=Math.cos,r=Math.PI,a=Math.PI*2,c=180/r,h=1e-4;function g(Q){return s(Q*1e4)/1e4}function A(Q){return Q<h&&Q>-h}function b(Q,G){var te=G?Q.textFill:Q.fill;return te!=null&&te!==t}function S(Q,G){var te=G?Q.textStroke:Q.stroke;return te!=null&&te!==t}function E(Q,G){G&&C(Q,"transform","matrix("+i.call(G,",")+")")}function C(Q,G,te){(!te||te.type!=="linear"&&te.type!=="radial")&&Q.setAttribute(G,te)}function _(Q,G,te){Q.setAttributeNS("http://www.w3.org/1999/xlink",G,te)}function T(Q,G,te,q){if(b(G,te)){var le=te?G.textFill:G.fill;le=le==="transparent"?t:le,C(Q,"fill",le),C(Q,"fill-opacity",G.fillOpacity!=null?G.fillOpacity*G.opacity:G.opacity)}else C(Q,"fill",t);if(S(G,te)){var re=te?G.textStroke:G.stroke;re=re==="transparent"?t:re,C(Q,"stroke",re);var we=te?G.textStrokeWidth:G.lineWidth,Ie=!te&&G.strokeNoScale?q.getLineScale():1;C(Q,"stroke-width",we/Ie),C(Q,"paint-order",te?"stroke":"fill"),C(Q,"stroke-opacity",G.strokeOpacity!=null?G.strokeOpacity:G.opacity);var Me=G.lineDash;Me?(C(Q,"stroke-dasharray",G.lineDash.join(",")),C(Q,"stroke-dashoffset",s(G.lineDashOffset||0))):C(Q,"stroke-dasharray",""),G.lineCap&&C(Q,"stroke-linecap",G.lineCap),G.lineJoin&&C(Q,"stroke-linejoin",G.lineJoin),G.miterLimit&&C(Q,"stroke-miterlimit",G.miterLimit)}else C(Q,"stroke",t)}function w(Q){for(var G=[],te=Q.data,q=Q.len(),le=0;le<q;){var re=te[le++],we="",Ie=0;switch(re){case o.M:we="M",Ie=2;break;case o.L:we="L",Ie=2;break;case o.Q:we="Q",Ie=4;break;case o.C:we="C",Ie=6;break;case o.A:var Me=te[le++],Je=te[le++],Ve=te[le++],ut=te[le++],Fe=te[le++],ae=te[le++],at=te[le++],he=te[le++],J=Math.abs(ae),Y=A(J-a)||(he?ae>=a:-ae>=a),$=ae>0?ae%a:ae%a+a,de=!1;Y?de=!0:A(J)?de=!1:de=$>=r===!!he;var be=g(Me+Ve*l(Fe)),Ce=g(Je+ut*e(Fe));Y&&(he?ae=a-1e-4:ae=-a+1e-4,de=!0,le===9&&G.push("M",be,Ce));var Be=g(Me+Ve*l(Fe+ae)),fe=g(Je+ut*e(Fe+ae));G.push("A",g(Ve),g(ut),s(at*c),+de,+he,Be,fe);break;case o.Z:we="Z";break;case o.R:var Be=g(te[le++]),fe=g(te[le++]),Se=g(te[le++]),ke=g(te[le++]);G.push("M",Be,fe,"L",Be+Se,fe,"L",Be+Se,fe+ke,"L",Be,fe+ke,"L",Be,fe);break}we&&G.push(we);for(var rt=0;rt<Ie;rt++)G.push(g(te[le++]))}return G.join(" ")}var O={};O.brush=function(Q){var G=Q.style,te=Q.__svgEl;te||(te=p("path"),Q.__svgEl=te),Q.path||Q.createPathProxy();var q=Q.path;if(Q.__dirtyPath){q.beginPath(),q.subPixelOptimize=!1,Q.buildPath(q,Q.shape),Q.__dirtyPath=!1;var le=w(q);le.indexOf("NaN")<0&&C(te,"d",le)}T(te,G,!1,Q),E(te,Q.transform),G.text!=null?F(Q,Q.getBoundingRect()):V(Q)};var I={};I.brush=function(Q){var G=Q.style,te=G.image;if(te instanceof HTMLImageElement){var q=te.src;te=q}if(!te)return;var le=G.x||0,re=G.y||0,we=G.width,Ie=G.height,Me=Q.__svgEl;Me||(Me=p("image"),Q.__svgEl=Me),te!==Q.__imageSrc&&(_(Me,"href",te),Q.__imageSrc=te),C(Me,"width",we),C(Me,"height",Ie),C(Me,"x",le),C(Me,"y",re),E(Me,Q.transform),G.text!=null?F(Q,Q.getBoundingRect()):V(Q)};var R={},M=new v,B={},P=[],X={left:"start",right:"end",center:"middle",middle:"middle"},F=function(G,te){var q=G.style,le=G.transform,re=G instanceof u||q.transformText;G.__dirty&&d.normalizeTextStyle(q,!0);var we=q.text;if(we!=null&&(we+=""),!d.needDrawText(we,q))return;we==null&&(we=""),!re&&le&&(M.copy(te),M.applyTransform(le),te=M);var Ie=G.__textSvgEl;Ie||(Ie=p("text"),G.__textSvgEl=Ie);var Me=Ie.style,Je=q.font||f.DEFAULT_FONT,Ve=Ie.__computedFont;Je!==Ie.__styleFont&&(Me.font=Ie.__styleFont=Je,Ve=Ie.__computedFont=Me.font);var ut=q.textPadding,Fe=q.textLineHeight,ae=G.__textCotentBlock;(!ae||G.__dirtyText)&&(ae=G.__textCotentBlock=f.parsePlainText(we,Ve,ut,Fe,q.truncate));var at=ae.outerHeight,he=ae.lineHeight;d.getBoxPosition(B,G,q,te);var J=B.baseX,Y=B.baseY,$=B.textAlign||"left",de=B.textVerticalAlign;j(Ie,re,le,q,te,J,Y);var be=f.adjustTextY(Y,at,de),Ce=J,Be=be;ut&&(Ce=K(J,$,ut),Be+=ut[0]),Be+=he/2,T(Ie,q,!0,G);var fe=ae.canCacheByTextString,Se=G.__tspanList||(G.__tspanList=[]),ke=Se.length;if(fe&&G.__canCacheByTextString&&G.__text===we){if(G.__dirtyText&&ke)for(var rt=0;rt<ke;++rt)z(Se[rt],$,Ce,Be+rt*he)}else{G.__text=we,G.__canCacheByTextString=fe;for(var xt=ae.lines,ht=xt.length,rt=0;rt<ht;rt++){var He=Se[rt],ir=xt[rt];He?He.__zrText!==ir&&(He.innerHTML="",He.appendChild(document.createTextNode(ir))):(He=Se[rt]=p("tspan"),Ie.appendChild(He),He.appendChild(document.createTextNode(ir))),z(He,$,Ce,Be+rt*he)}if(ke>ht){for(;rt<ke;rt++)Ie.removeChild(Se[rt]);Se.length=ht}}};function j(Q,G,te,q,le,re,we){m.identity(P),G&&te&&m.copy(P,te);var Ie=q.textRotation;if(le&&Ie){var Me=q.textOrigin;Me==="center"?(re=le.width/2+le.x,we=le.height/2+le.y):Me&&(re=Me[0]+le.x,we=Me[1]+le.y),P[4]-=re,P[5]-=we,m.rotate(P,P,Ie),P[4]+=re,P[5]+=we}E(Q,P)}function K(Q,G,te){return G==="right"?Q-te[1]:G==="center"?Q+te[3]/2-te[1]/2:Q+te[3]}function z(Q,G,te,q){C(Q,"dominant-baseline","middle"),C(Q,"text-anchor",X[G]),C(Q,"x",te),C(Q,"y",q)}function V(Q){Q&&Q.__textSvgEl&&(Q.__textSvgEl.parentNode&&Q.__textSvgEl.parentNode.removeChild(Q.__textSvgEl),Q.__textSvgEl=null,Q.__tspanList=[],Q.__text=null)}R.drawRectText=F,R.brush=function(Q){var G=Q.style;G.text!=null?F(Q,!1):V(Q)},D.path=O,D.image=I,D.text=R},P4Qj:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.removeSensor=D.getSensor=D.Sensors=void 0;var y=v(n("chpo")),p=n("FxDU"),x=n("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(i){var t=i.getAttribute(x.SizeSensorId);if(t&&m[t])return m[t];var s=(0,y.default)();i.setAttribute(x.SizeSensorId,s);var e=(0,p.createSensor)(i,function(){return f(s)});return m[s]=e,e};D.getSensor=d;var u=function(i){var t=i.element.getAttribute(x.SizeSensorId);i.destroy(),f(t)};D.removeSensor=u},P5Jw:function(k,D,n){"use strict";var y=n("rHrb"),p=y.CopyToClipboard;p.CopyToClipboard=p,k.exports=p},PArb:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),v=n.n(x),m=n("q1tI"),f=n.n(m),d=n("TSYQ"),u=n.n(d),o=n("H84U"),i=function(s,e){var l={};for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&e.indexOf(r)<0&&(l[r]=s[r]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(s);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(s,r[a])&&(l[r[a]]=s[r[a]]);return l},t=function(e){return m.createElement(o.a,null,function(l){var r,a=l.getPrefixCls,c=l.direction,h=e.prefixCls,g=e.type,A=g===void 0?"horizontal":g,b=e.orientation,S=b===void 0?"center":b,E=e.className,C=e.children,_=e.dashed,T=e.plain,w=i(e,["prefixCls","type","orientation","className","children","dashed","plain"]),O=a("divider",h),I=S.length>0?"-".concat(S):S,R=!!C,M=u()(E,O,"".concat(O,"-").concat(A),(r={},v()(r,"".concat(O,"-with-text"),R),v()(r,"".concat(O,"-with-text").concat(I),R),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:M},w,{role:"separator"}),C&&m.createElement("span",{className:"".concat(O,"-inner-text")},C))})};D.a=t},PD8m:function(k,D){k.exports={name:"memoryStorage",read:y,write:p,each:x,remove:v,clearAll:m};var n={};function y(f){return n[f]}function p(f,d){n[f]=d}function x(f){for(var d in n)n.hasOwnProperty(d)&&f(n[d],d)}function v(f){delete n[f]}function m(f){n={}}},PKem:function(k,D,n){"use strict";n.d(D,"a",function(){return b});var y=n("RIqP"),p=n.n(y),x=n("lSNA"),v=n.n(x),m=n("pVnL"),f=n.n(m),d=n("lwsE"),u=n.n(d),o=n("W8MJ"),i=n.n(o),t=n("7W2i"),s=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),a=n.n(r),c=n("TSYQ"),h=n.n(c),g=n("H84U"),A=function(I,R){var M={};for(var B in I)Object.prototype.hasOwnProperty.call(I,B)&&R.indexOf(B)<0&&(M[B]=I[B]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,B=Object.getOwnPropertySymbols(I);P<B.length;P++)R.indexOf(B[P])<0&&Object.prototype.propertyIsEnumerable.call(I,B[P])&&(M[B[P]]=I[B[P]]);return M},b=r.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function S(I){var R=I.suffixCls,M=I.tagName,B=I.displayName;return function(P){var X;return X=function(F){s()(K,F);var j=l()(K);function K(){var z;return u()(this,K),z=j.apply(this,arguments),z.renderComponent=function(V){var Q=V.getPrefixCls,G=z.props.prefixCls,te=Q(R,G);return r.createElement(P,f()({prefixCls:te,tagName:M},z.props))},z}return i()(K,[{key:"render",value:function(){return r.createElement(g.a,null,this.renderComponent)}}]),K}(r.Component),X.displayName=B,X}}var E=function(R){var M=R.prefixCls,B=R.className,P=R.children,X=R.tagName,F=A(R,["prefixCls","className","children","tagName"]),j=h()(M,B);return r.createElement(X,f()({className:j},F),P)},C=function(I){s()(M,I);var R=l()(M);function M(){var B;return u()(this,M),B=R.apply(this,arguments),B.state={siders:[]},B.renderComponent=function(P){var X,F=P.direction,j=B.props,K=j.prefixCls,z=j.className,V=j.children,Q=j.hasSider,G=j.tagName,te=A(j,["prefixCls","className","children","hasSider","tagName"]),q=h()(K,(X={},v()(X,"".concat(K,"-has-sider"),typeof Q=="boolean"?Q:B.state.siders.length>0),v()(X,"".concat(K,"-rtl"),F==="rtl"),X),z);return r.createElement(b.Provider,{value:{siderHook:B.getSiderHook()}},r.createElement(G,f()({className:q},te),V))},B}return i()(M,[{key:"getSiderHook",value:function(){var P=this;return{addSider:function(F){P.setState(function(j){return{siders:[].concat(p()(j.siders),[F])}})},removeSider:function(F){P.setState(function(j){return{siders:j.siders.filter(function(K){return K!==F})}})}}}},{key:"render",value:function(){return r.createElement(g.a,null,this.renderComponent)}}]),M}(r.Component),_=S({suffixCls:"layout",tagName:"section",displayName:"Layout"})(C),T=S({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(E),w=S({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(E),O=S({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(E);_.Header=T,_.Footer=w,_.Content=O,D.b=_},PNag:function(k,D,n){var y=n("bYtY"),p=n("SKnc"),x=n("YH21"),v=n("crZl"),m=n("IwbS"),f=n("OELB"),d=n("72pK"),u=n("y7Aq"),o=n("4NO4"),i=f.linearMap,t=y.each,s=Math.min,e=Math.max,l=12,r=6,a=v.extend({type:"visualMap.continuous",init:function(){a.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(C,_,T,w){(!w||w.type!=="selectDataRange"||w.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 w=_[1-T];w=w!=null?w+"":"";var O=this.visualMapModel,I=O.get("textGap"),R=O.itemSize,M=this._shapes.barGroup,B=this._applyTransform([R[0]/2,T===0?-I:R[1]+I],M),P=this._applyTransform(T===0?"bottom":"top",M),X=this._orient,F=this.visualMapModel.textStyleModel;this.group.add(new m.Text({style:{x:B[0],y:B[1],textVerticalAlign:X==="horizontal"?"middle":P,textAlign:X==="horizontal"?P:"center",text:w,textFont:F.getFont(),textFill:F.getTextColor()}}))},_renderBar:function(C){var _=this.visualMapModel,T=this._shapes,w=_.itemSize,O=this._orient,I=this._useHandle,R=u.getItemAlign(_,this.api,w),M=T.barGroup=this._createBarGroup(R);M.add(T.outOfRange=c()),M.add(T.inRange=c(null,I?S(this._orient):null,y.bind(this._dragHandle,this,"all",!1),y.bind(this._dragHandle,this,"all",!0)));var B=_.textStyleModel.getTextRect("\u56FD"),P=e(B.width,B.height);I&&(T.handleThumbs=[],T.handleLabels=[],T.handleLabelPoints=[],this._createHandle(M,0,w,P,O,R),this._createHandle(M,1,w,P,O,R)),this._createIndicator(M,w,P,O),C.add(M)},_createHandle:function(C,_,T,w,O){var I=y.bind(this._dragHandle,this,_,!1),R=y.bind(this._dragHandle,this,_,!0),M=c(h(_,w),S(this._orient),I,R);M.position[0]=T[0],C.add(M);var B=this.visualMapModel.textStyleModel,P=new m.Text({draggable:!0,drift:I,onmousemove:function(j){x.stop(j.event)},ondragend:R,style:{x:0,y:0,text:"",textFont:B.getFont(),textFill:B.getTextColor()}});this.group.add(P);var X=[O==="horizontal"?w/2:w*1.5,O==="horizontal"?_===0?-(w*1.5):w*1.5:_===0?-w/2:w/2],F=this._shapes;F.handleThumbs[_]=M,F.handleLabelPoints[_]=X,F.handleLabels[_]=P},_createIndicator:function(C,_,T,w){var O=c([[0,0]],"move");O.position[0]=_[0],O.attr({invisible:!0,silent:!0}),C.add(O);var I=this.visualMapModel.textStyleModel,R=new m.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:I.getFont(),textFill:I.getTextColor()}});this.group.add(R);var M=[w==="horizontal"?T/2:r+3,0],B=this._shapes;B.indicator=O,B.indicatorLabel=R,B.indicatorLabelPoint=M},_dragHandle:function(C,_,T,w){if(!this._useHandle)return;if(this._dragging=!_,!_){var O=this._applyTransform([T,w],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(),w=[0,C.itemSize[1]];this._handleEnds=[i(_[0],T,w,!0),i(_[1],T,w,!0)]},_updateInterval:function(C,_){_=_||0;var T=this.visualMapModel,w=this._handleEnds,O=[0,T.itemSize[1]];d(_,w,O,C,0);var I=T.getExtent();this._dataInterval=[i(w[0],O,I,!0),i(w[1],O,I,!0)]},_updateView:function(C){var _=this.visualMapModel,T=_.getExtent(),w=this._shapes,O=[0,_.itemSize[1]],I=C?O:this._handleEnds,R=this._createBarVisual(this._dataInterval,T,I,"inRange"),M=this._createBarVisual(T,T,O,"outOfRange");w.inRange.setStyle({fill:R.barColor,opacity:R.opacity}).setShape("points",R.barPoints),w.outOfRange.setStyle({fill:M.barColor,opacity:M.opacity}).setShape("points",M.barPoints),this._updateHandle(I,R)},_createBarVisual:function(C,_,T,w){var O={forceState:w,convertOpacityToAlpha:!0},I=this._makeColorGradient(C,O),R=[this.getControllerVisual(C[0],"symbolSize",O),this.getControllerVisual(C[1],"symbolSize",O)],M=this._createBarPoints(T,R);return{barColor:new p(0,0,0,1,I),barPoints:M,handlesColor:[I[0].color,I[I.length-1].color]}},_makeColorGradient:function(C,_){var T=100,w=[],O=(C[1]-C[0])/T;w.push({color:this.getControllerVisual(C[0],"color",_),offset:0});for(var I=1;I<T;I++){var R=C[0]+O*I;if(R>C[1])break;w.push({color:this.getControllerVisual(R,"color",_),offset:I/T})}return w.push({color:this.getControllerVisual(C[1],"color",_),offset:1}),w},_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,w=this.visualMapModel,O=T.handleThumbs,I=T.handleLabels;t([0,1],function(R){var M=O[R];M.setStyle("fill",_.handlesColor[R]),M.position[1]=C[R];var B=m.applyTransform(T.handleLabelPoints[R],m.getTransform(M,this.group));I[R].setStyle({x:B[0],y:B[1],text:w.formatValueText(this._dataInterval[R]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?R===0?"bottom":"top":"left",T.barGroup)})},this)},_showIndicator:function(C,_,T,w){var O=this.visualMapModel,I=O.getExtent(),R=O.itemSize,M=[0,R[1]],B=i(C,I,M,!0),P=this._shapes,X=P.indicator;if(!X)return;X.position[1]=B,X.attr("invisible",!1),X.setShape("points",g(!!T,w,B,R[1]));var F={convertOpacityToAlpha:!0},j=this.getControllerVisual(C,"color",F);X.setStyle("fill",j);var K=m.applyTransform(P.indicatorLabelPoint,m.getTransform(X,this.group)),z=P.indicatorLabel;z.attr("invisible",!1);var V=this._applyTransform("left",P.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,w=C._applyTransform([_.offsetX,_.offsetY],C._shapes.barGroup,!0,!0);w[1]=s(e(0,w[1]),T[1]),C._doHoverLinkToSeries(w[1],0<=w[0]&&w[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,w=T.itemSize;if(!T.option.hoverLink)return;var O=[0,w[1]],I=T.getExtent();C=s(e(O[0],C),O[1]);var R=A(T,I,O),M=[C-R,C+R],B=i(C,O,I,!0),P=[i(M[0],O,I,!0),i(M[1],O,I,!0)];M[0]<O[0]&&(P[0]=-Infinity),M[1]>O[1]&&(P[1]=Infinity),_&&(P[0]===-Infinity?this._showIndicator(B,P[1],"< ",R):P[1]===Infinity?this._showIndicator(B,P[0],"> ",R):this._showIndicator(B,B,"\u2248 ",R));var X=this._hoverLinkDataIndices,F=[];(_||b(T))&&(F=this._hoverLinkDataIndices=T.findTargetDataIndices(P));var j=o.compressBatches(X,F);this._dispatchHighDown("downplay",u.makeHighDownBatch(j[0],T)),this._dispatchHighDown("highlight",u.makeHighDownBatch(j[1],T))},_hoverLinkFromSeriesMouseOver:function(C){var _=C.target,T=this.visualMapModel;if(!_||_.dataIndex==null)return;var w=this.ecModel.getSeriesByIndex(_.seriesIndex);if(!T.isTargetSeries(w))return;var O=w.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",u.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,w){var O=m.getTransform(_,w?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,w){return new m.Polygon({shape:{points:C},draggable:!!T,cursor:_,drift:T,onmousemove:function(O){x.stop(O.event)},ondragend:w})}function h(C,_){return C===0?[[0,0],[_,0],[_,-_]]:[[0,0],[_,0],[_,_]]}function g(C,_,T,w){return C?[[0,-s(_,e(T,0))],[r,0],[0,s(_,e(w-T,0))]]:[[0,0],[5,-5],[5,5]]}function A(C,_,T){var w=l/2,O=C.get("hoverLinkDataSize");return O&&(w=i(O,_,T,!0)/2),w}function b(C){var _=C.get("hoverLinkOnHandle");return!!(_==null?C.get("realtime"):_)}function S(C){return C==="vertical"?"ns-resize":"ew-resize"}var E=a;k.exports=E},PQMj:function(k,D,n){},PSzr:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};D.default=y},PVpz:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.StreamCipher,m=p.algo,f=[],d=[],u=[],o=m.RabbitLegacy=v.extend({_doReset:function(){var s=this._key.words,e=this.cfg.iv,l=this._X=[s[0],s[3]<<16|s[2]>>>16,s[1],s[0]<<16|s[3]>>>16,s[2],s[1]<<16|s[0]>>>16,s[3],s[2]<<16|s[1]>>>16],r=this._C=[s[2]<<16|s[2]>>>16,s[0]&4294901760|s[1]&65535,s[3]<<16|s[3]>>>16,s[1]&4294901760|s[2]&65535,s[0]<<16|s[0]>>>16,s[2]&4294901760|s[3]&65535,s[1]<<16|s[1]>>>16,s[3]&4294901760|s[0]&65535];this._b=0;for(var a=0;a<4;a++)i.call(this);for(var a=0;a<8;a++)r[a]^=l[a+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,S=A>>>16|b&4294901760,E=b<<16|A&65535;r[0]^=A,r[1]^=S,r[2]^=b,r[3]^=E,r[4]^=A,r[5]^=S,r[6]^=b,r[7]^=E;for(var a=0;a<4;a++)i.call(this)}},_doProcessBlock:function(s,e){var l=this._X;i.call(this),f[0]=l[0]^l[5]>>>16^l[3]<<16,f[1]=l[2]^l[7]>>>16^l[5]<<16,f[2]=l[4]^l[1]>>>16^l[7]<<16,f[3]=l[6]^l[3]>>>16^l[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,s[e+r]^=f[r]},blockSize:128/32,ivSize:64/32});function i(){for(var t=this._X,s=this._C,e=0;e<8;e++)d[e]=s[e];s[0]=s[0]+1295307597+this._b|0,s[1]=s[1]+3545052371+(s[0]>>>0<d[0]>>>0?1:0)|0,s[2]=s[2]+886263092+(s[1]>>>0<d[1]>>>0?1:0)|0,s[3]=s[3]+1295307597+(s[2]>>>0<d[2]>>>0?1:0)|0,s[4]=s[4]+3545052371+(s[3]>>>0<d[3]>>>0?1:0)|0,s[5]=s[5]+886263092+(s[4]>>>0<d[4]>>>0?1:0)|0,s[6]=s[6]+1295307597+(s[5]>>>0<d[5]>>>0?1:0)|0,s[7]=s[7]+3545052371+(s[6]>>>0<d[6]>>>0?1:0)|0,this._b=s[7]>>>0<d[7]>>>0?1:0;for(var e=0;e<8;e++){var l=t[e]+s[e],r=l&65535,a=l>>>16,c=((r*r>>>17)+r*a>>>15)+a*a,h=((l&4294901760)*l|0)+((l&65535)*l|0);u[e]=c^h}t[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,t[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,t[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,t[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,t[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,t[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,t[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,t[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}p.RabbitLegacy=v._createHelper(o)}(),y.RabbitLegacy})},ProS:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("aX58"),v=n("bYtY"),m=n("Qe9p"),f=n("ItGF"),d=n("BPZU"),u=n("H6uX"),o=n("fmMI"),i=n("hD7B"),t=n("IDmD"),s=n("ypgQ"),e=n("+wW9"),l=n("0V0F"),r=n("bLfw"),a=n("T4UG"),c=n("sS/r"),h=n("6Ic6"),g=n("IwbS"),A=n("4NO4"),b=n("iLNv"),S=b.throttle,E=n("/WM3"),C=n("uAnK"),_=n("mYwL"),T=n("af/B"),w=n("xTNl"),O=n("8hn6");n("A1Ka");var I=n("7DRL"),R=v.assert,M=v.each,B=v.isFunction,P=v.isObject,X=r.parseClassType,F="4.8.0",j={zrender:"4.3.1"},K=1,z=1e3,V=800,Q=900,G=5e3,te=1e3,q=1100,le=2e3,re=3e3,we=3500,Ie=4e3,Me=5e3,Je={PROCESSOR:{FILTER:z,SERIES_FILTER:V,STATISTIC:G},VISUAL:{LAYOUT:te,PROGRESSIVE_LAYOUT:q,GLOBAL:le,CHART:re,POST_CHART_LAYOUT:we,COMPONENT:Ie,BRUSH:Me}},Ve="__flagInMainProcess",ut="__optionUpdated",Fe=/^[a-zA-Z0-9_]+$/;function ae(kt,er){return function(Kr,Ir,Dr){if(!er&&this._disposed){hr(this.id);return}Kr=Kr&&Kr.toLowerCase(),u.prototype[kt].call(this,Kr,Ir,Dr)}}function at(){u.call(this)}at.prototype.on=ae("on",!0),at.prototype.off=ae("off",!0),at.prototype.one=ae("one",!0),v.mixin(at,u);function he(kt,er,Kr){Kr=Kr||{},typeof er=="string"&&(er=At[er]),this.id,this.group,this._dom=kt;var Ir="canvas",Dr=this._zr=x.init(kt,{renderer:Kr.renderer||Ir,devicePixelRatio:Kr.devicePixelRatio,width:Kr.width,height:Kr.height});this._throttledZrFlush=S(v.bind(Dr.flush,Dr),17);var er=v.clone(er);er&&e(er,!0),this._theme=er,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new t;var dn=this._api=Ge(this);function yn(ti,ei){return ti.__prio-ei.__prio}d(yr,yn),d(qe,yn),this._scheduler=new T(this,dn,qe,yr),u.call(this,this._ecEventProcessor=new pe),this._messageCenter=new at,this._initEvents(),this.resize=v.bind(this.resize,this),this._pendingActions=[],Dr.animation.on("frame",this._onframe,this),ke(Dr,this),v.setAsPrimitive(this)}var J=he.prototype;J._onframe=function(){if(this._disposed)return;var kt=this._scheduler;if(this[ut]){var er=this[ut].silent;this[Ve]=!0,de(this),$.update.call(this),this[Ve]=!1,this[ut]=!1,fe.call(this,er),Se.call(this,er)}else if(kt.unfinished){var Kr=K,Ir=this._model,Dr=this._api;kt.unfinished=!1;do{var dn=+new Date;kt.performSeriesTasks(Ir),kt.performDataProcessorTasks(Ir),Ce(this,Ir),kt.performVisualTasks(Ir),ir(this,this._model,Dr,"remain"),Kr-=+new Date-dn}while(Kr>0&&kt.unfinished);kt.unfinished||this._zr.flush()}},J.getDom=function(){return this._dom},J.getZr=function(){return this._zr},J.setOption=function(kt,er,Kr){if(this._disposed){hr(this.id);return}var Ir;if(P(er)&&(Kr=er.lazyUpdate,Ir=er.silent,er=er.notMerge),this[Ve]=!0,!this._model||er){var Dr=new s(this._api),dn=this._theme,yn=this._model=new o;yn.scheduler=this._scheduler,yn.init(null,null,dn,Dr)}this._model.setOption(kt,me),Kr?(this[ut]={silent:Ir},this[Ve]=!1):(de(this),$.update.call(this),this._zr.flush(),this[ut]=!1,this[Ve]=!1,fe.call(this,Ir),Se.call(this,Ir))},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(kt){if(!f.canvasSupported)return;kt=kt||{},kt.pixelRatio=kt.pixelRatio||1,kt.backgroundColor=kt.backgroundColor||this._model.get("backgroundColor");var er=this._zr;return er.painter.getRenderedCanvas(kt)},J.getSvgDataURL=function(){if(!f.svgSupported)return;var kt=this._zr,er=kt.storage.getDisplayList();return v.each(er,function(Kr){Kr.stopAnimation(!0)}),kt.painter.toDataURL()},J.getDataURL=function(kt){if(this._disposed){hr(this.id);return}kt=kt||{};var er=kt.excludeComponents,Kr=this._model,Ir=[],Dr=this;M(er,function(yn){Kr.eachComponent({mainType:yn},function(ti){var ei=Dr._componentsMap[ti.__viewId];ei.group.ignore||(Ir.push(ei),ei.group.ignore=!0)})});var dn=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(kt).toDataURL("image/"+(kt&&kt.type||"png"));return M(Ir,function(yn){yn.group.ignore=!1}),dn},J.getConnectedDataURL=function(kt){if(this._disposed){hr(this.id);return}if(!f.canvasSupported)return;var er=kt.type==="svg",Kr=this.group,Ir=Math.min,Dr=Math.max,dn=Infinity;if(vn[Kr]){var yn=dn,ti=dn,ei=-dn,fi=-dn,Ei=[],Di=kt&&kt.pixelRatio||1;v.each(ur,function(tt,Ze){if(tt.group===Kr){var st=er?tt.getZr().painter.getSvgDom().innerHTML:tt.getRenderedCanvas(v.clone(kt)),Et=tt.getDom().getBoundingClientRect();yn=Ir(Et.left,yn),ti=Ir(Et.top,ti),ei=Dr(Et.right,ei),fi=Dr(Et.bottom,fi),Ei.push({dom:st,left:Et.left,top:Et.top})}}),yn*=Di,ti*=Di,ei*=Di,fi*=Di;var Hi=ei-yn,nt=fi-ti,Le=v.createCanvas(),je=x.init(Le,{renderer:er?"svg":"canvas"});if(je.resize({width:Hi,height:nt}),er){var Xe="";return M(Ei,function(tt){var Ze=tt.left-yn,st=tt.top-ti;Xe+='<g transform="translate('+Ze+","+st+')">'+tt.dom+"</g>"}),je.painter.getSvgRoot().innerHTML=Xe,kt.connectedBackgroundColor&&je.painter.setBackgroundColor(kt.connectedBackgroundColor),je.refreshImmediately(),je.painter.toDataURL()}else return kt.connectedBackgroundColor&&je.add(new g.Rect({shape:{x:0,y:0,width:Hi,height:nt},style:{fill:kt.connectedBackgroundColor}})),M(Ei,function(tt){var Ze=new g.Image({style:{x:tt.left*Di-yn,y:tt.top*Di-ti,image:tt.dom}});je.add(Ze)}),je.refreshImmediately(),Le.toDataURL("image/"+(kt&&kt.type||"png"))}else return this.getDataURL(kt)},J.convertToPixel=v.curry(Y,"convertToPixel"),J.convertFromPixel=v.curry(Y,"convertFromPixel");function Y(kt,er,Kr){if(this._disposed){hr(this.id);return}var Ir=this._model,Dr=this._coordSysMgr.getCoordinateSystems(),dn;er=A.parseFinder(Ir,er);for(var yn=0;yn<Dr.length;yn++){var ti=Dr[yn];if(ti[kt]&&(dn=ti[kt](Ir,er,Kr))!=null)return dn}}J.containPixel=function(kt,er){if(this._disposed){hr(this.id);return}var Kr=this._model,Ir;return kt=A.parseFinder(Kr,kt),v.each(kt,function(Dr,dn){dn.indexOf("Models")>=0&&v.each(Dr,function(yn){var ti=yn.coordinateSystem;if(ti&&ti.containPoint)Ir|=!!ti.containPoint(er);else if(dn==="seriesModels"){var ei=this._chartsMap[yn.__viewId];ei&&ei.containPoint&&(Ir|=ei.containPoint(er,yn))}},this)},this),!!Ir},J.getVisual=function(kt,er){var Kr=this._model;kt=A.parseFinder(Kr,kt,{defaultMainType:"series"});var Ir=kt.seriesModel,Dr=Ir.getData(),dn=kt.hasOwnProperty("dataIndexInside")?kt.dataIndexInside:kt.hasOwnProperty("dataIndex")?Dr.indexOfRawIndex(kt.dataIndex):null;return dn!=null?Dr.getItemVisual(dn,er):Dr.getVisual(er)},J.getViewOfComponentModel=function(kt){return this._componentsMap[kt.__viewId]},J.getViewOfSeriesModel=function(kt){return this._chartsMap[kt.__viewId]};var $={prepareAndUpdate:function(kt){de(this),$.update.call(this,kt)},update:function(kt){var er=this._model,Kr=this._api,Ir=this._zr,Dr=this._coordSysMgr,dn=this._scheduler;if(!er)return;dn.restoreData(er,kt),dn.performSeriesTasks(er),Dr.create(er,Kr),dn.performDataProcessorTasks(er,kt),Ce(this,er),Dr.update(er,Kr),xt(er),dn.performVisualTasks(er,kt),ht(this,er,Kr,kt);var yn=er.get("backgroundColor")||"transparent";if(f.canvasSupported)Ir.setBackgroundColor(yn);else{var ti=m.parse(yn);yn=m.stringify(ti,"rgb"),ti[3]===0&&(yn="transparent")}ct(er,Kr)},updateTransform:function(kt){var er=this._model,Kr=this,Ir=this._api;if(!er)return;var Dr=[];er.eachComponent(function(yn,ti){var ei=Kr.getViewOfComponentModel(ti);if(ei&&ei.__alive)if(ei.updateTransform){var fi=ei.updateTransform(ti,er,Ir,kt);fi&&fi.update&&Dr.push(ei)}else Dr.push(ei)});var dn=v.createHashMap();er.eachSeries(function(yn){var ti=Kr._chartsMap[yn.__viewId];if(ti.updateTransform){var ei=ti.updateTransform(yn,er,Ir,kt);ei&&ei.update&&dn.set(yn.uid,1)}else dn.set(yn.uid,1)}),xt(er),this._scheduler.performVisualTasks(er,kt,{setDirty:!0,dirtyMap:dn}),ir(Kr,er,Ir,kt,dn),ct(er,this._api)},updateView:function(kt){var er=this._model;if(!er)return;h.markUpdateMethod(kt,"updateView"),xt(er),this._scheduler.performVisualTasks(er,kt,{setDirty:!0}),ht(this,this._model,this._api,kt),ct(er,this._api)},updateVisual:function(kt){$.update.call(this,kt)},updateLayout:function(kt){$.update.call(this,kt)}};function de(kt){var er=kt._model,Kr=kt._scheduler;Kr.restorePipelines(er),Kr.prepareStageTasks(),rt(kt,"component",er,Kr),rt(kt,"chart",er,Kr),Kr.plan()}function be(kt,er,Kr,Ir,Dr){var dn=kt._model;if(!Ir){M(kt._componentsViews.concat(kt._chartsViews),fi);return}var yn={};yn[Ir+"Id"]=Kr[Ir+"Id"],yn[Ir+"Index"]=Kr[Ir+"Index"],yn[Ir+"Name"]=Kr[Ir+"Name"];var ti={mainType:Ir,query:yn};Dr&&(ti.subType=Dr);var ei=Kr.excludeSeriesId;ei!=null&&(ei=v.createHashMap(A.normalizeToArray(ei))),dn&&dn.eachComponent(ti,function(Ei){(!ei||ei.get(Ei.id)==null)&&fi(kt[Ir==="series"?"_chartsMap":"_componentsMap"][Ei.__viewId])},kt);function fi(Ei){Ei&&Ei.__alive&&Ei[er]&&Ei[er](Ei.__model,dn,kt._api,Kr)}}J.resize=function(kt){if(this._disposed){hr(this.id);return}this._zr.resize(kt);var er=this._model;if(this._loadingFX&&this._loadingFX.resize(),!er)return;var Kr=er.resetOption("media"),Ir=kt&&kt.silent;this[Ve]=!0,Kr&&de(this),$.update.call(this),this[Ve]=!1,fe.call(this,Ir),Se.call(this,Ir)};function Ce(kt,er){var Kr=kt._chartsMap,Ir=kt._scheduler;er.eachSeries(function(Dr){Ir.updateStreamModes(Dr,Kr[Dr.__viewId])})}J.showLoading=function(kt,er){if(this._disposed){hr(this.id);return}if(P(kt)&&(er=kt,kt=""),kt=kt||"default",this.hideLoading(),!rr[kt])return;var Kr=rr[kt](this._api,er),Ir=this._zr;this._loadingFX=Kr,Ir.add(Kr)},J.hideLoading=function(){if(this._disposed){hr(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},J.makeActionFromEvent=function(kt){var er=v.extend({},kt);return er.type=lt[kt.type],er},J.dispatchAction=function(kt,er){if(this._disposed){hr(this.id);return}if(P(er)||(er={silent:!!er}),!se[kt.type])return;if(!this._model)return;if(this[Ve]){this._pendingActions.push(kt);return}Be.call(this,kt,er.silent),er.flush?this._zr.flush(!0):er.flush!==!1&&f.browser.weChat&&this._throttledZrFlush(),fe.call(this,er.silent),Se.call(this,er.silent)};function Be(kt,er){var Kr=kt.type,Ir=kt.escapeConnect,Dr=se[Kr],dn=Dr.actionInfo,yn=(dn.update||"update").split(":"),ti=yn.pop();yn=yn[0]!=null&&X(yn[0]),this[Ve]=!0;var ei=[kt],fi=!1;kt.batch&&(fi=!0,ei=v.map(kt.batch,function(nt){return nt=v.defaults(v.extend({},nt),kt),nt.batch=null,nt}));var Ei=[],Di,Hi=Kr==="highlight"||Kr==="downplay";M(ei,function(nt){Di=Dr.action(nt,this._model,this._api),Di=Di||v.extend({},nt),Di.type=dn.event||Di.type,Ei.push(Di),Hi?be(this,ti,nt,"series"):yn&&be(this,ti,nt,yn.main,yn.sub)},this),ti!=="none"&&!Hi&&!yn&&(this[ut]?(de(this),$.update.call(this,kt),this[ut]=!1):$[ti].call(this,kt)),fi?Di={type:dn.event||Kr,escapeConnect:Ir,batch:Ei}:Di=Ei[0],this[Ve]=!1,!er&&this._messageCenter.trigger(Di.type,Di)}function fe(kt){for(var er=this._pendingActions;er.length;){var Kr=er.shift();Be.call(this,Kr,kt)}}function Se(kt){!kt&&this.trigger("updated")}function ke(kt,er){kt.on("rendered",function(){er.trigger("rendered"),kt.animation.isFinished()&&!er[ut]&&!er._scheduler.unfinished&&!er._pendingActions.length&&er.trigger("finished")})}J.appendData=function(kt){if(this._disposed){hr(this.id);return}var er=kt.seriesIndex,Kr=this.getModel(),Ir=Kr.getSeriesByIndex(er);Ir.appendData(kt),this._scheduler.unfinished=!0},J.on=ae("on",!1),J.off=ae("off",!1),J.one=ae("one",!1);function rt(kt,er,Kr,Ir){for(var Dr=er==="component",dn=Dr?kt._componentsViews:kt._chartsViews,yn=Dr?kt._componentsMap:kt._chartsMap,ti=kt._zr,ei=kt._api,fi=0;fi<dn.length;fi++)dn[fi].__alive=!1;Dr?Kr.eachComponent(function(Hi,nt){Hi!=="series"&&Ei(nt)}):Kr.eachSeries(Ei);function Ei(Hi){var nt="_ec_"+Hi.id+"_"+Hi.type,Le=yn[nt];if(!Le){var je=X(Hi.type),Xe=Dr?c.getClass(je.main,je.sub):h.getClass(je.sub);Le=new Xe,Le.init(Kr,ei),yn[nt]=Le,dn.push(Le),ti.add(Le.group)}Hi.__viewId=Le.__id=nt,Le.__alive=!0,Le.__model=Hi,Le.group.__ecComponentInfo={mainType:Hi.mainType,index:Hi.componentIndex},!Dr&&Ir.prepareView(Le,Hi,Kr,ei)}for(var fi=0;fi<dn.length;){var Di=dn[fi];Di.__alive?fi++:(!Dr&&Di.renderTask.dispose(),ti.remove(Di.group),Di.dispose(Kr,ei),dn.splice(fi,1),delete yn[Di.__id],Di.__id=Di.group.__ecComponentInfo=null)}}function xt(kt){kt.clearColorPalette(),kt.eachSeries(function(er){er.clearColorPalette()})}function ht(kt,er,Kr,Ir){He(kt,er,Kr,Ir),M(kt._chartsViews,function(Dr){Dr.__alive=!1}),ir(kt,er,Kr,Ir),M(kt._chartsViews,function(Dr){Dr.__alive||Dr.remove(er,Kr)})}function He(kt,er,Kr,Ir,Dr){M(Dr||kt._componentsViews,function(dn){var yn=dn.__model;dn.render(yn,er,Kr,Ir),Wt(yn,dn)})}function ir(kt,er,Kr,Ir,Dr){var dn=kt._scheduler,yn;er.eachSeries(function(ti){var ei=kt._chartsMap[ti.__viewId];ei.__alive=!0;var fi=ei.renderTask;dn.updatePayload(fi,Ir),Dr&&Dr.get(ti.uid)&&fi.dirty(),yn|=fi.perform(dn.getPerformArgs(fi)),ei.group.silent=!!ti.get("silent"),Wt(ti,ei),Pt(ti,ei)}),dn.unfinished|=yn,Jt(kt,er),C(kt._zr.dom,er)}function ct(kt,er){M(Ht,function(Kr){Kr(kt,er)})}var Xt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];J._initEvents=function(){M(Xt,function(kt){var er=function(Kr){var Ir=this.getModel(),Dr=Kr.target,dn,yn=kt==="globalout";if(yn)dn={};else if(Dr&&Dr.dataIndex!=null){var ti=Dr.dataModel||Ir.getSeriesByIndex(Dr.seriesIndex);dn=ti&&ti.getDataParams(Dr.dataIndex,Dr.dataType,Dr)||{}}else Dr&&Dr.eventData&&(dn=v.extend({},Dr.eventData));if(dn){var ei=dn.componentType,fi=dn.componentIndex;(ei==="markLine"||ei==="markPoint"||ei==="markArea")&&(ei="series",fi=dn.seriesIndex);var Ei=ei&&fi!=null&&Ir.getComponent(ei,fi),Di=Ei&&this[Ei.mainType==="series"?"_chartsMap":"_componentsMap"][Ei.__viewId];dn.event=Kr,dn.type=kt,this._ecEventProcessor.eventInfo={targetEl:Dr,packedEvent:dn,model:Ei,view:Di},this.trigger(kt,dn)}};er.zrEventfulCallAtLast=!0,this._zr.on(kt,er,this)},this),M(lt,function(kt,er){this._messageCenter.on(er,function(Kr){this.trigger(er,Kr)},this)},this)},J.isDisposed=function(){return this._disposed},J.clear=function(){if(this._disposed){hr(this.id);return}this.setOption({series:[]},!0)},J.dispose=function(){if(this._disposed){hr(this.id);return}this._disposed=!0,A.setAttribute(this.getDom(),Yt,"");var kt=this._api,er=this._model;M(this._componentsViews,function(Kr){Kr.dispose(er,kt)}),M(this._chartsViews,function(Kr){Kr.dispose(er,kt)}),this._zr.dispose(),delete ur[this.id]},v.mixin(he,u);function hr(kt){}function Jt(kt,er){var Kr=kt._zr,Ir=Kr.storage,Dr=0;Ir.traverse(function(dn){Dr++}),Dr>er.get("hoverLayerThreshold")&&!f.node&&er.eachSeries(function(dn){if(dn.preventUsingHoverLayer)return;var yn=kt._chartsMap[dn.__viewId];yn.__alive&&yn.group.traverse(function(ti){ti.useHoverLayer=!0})})}function Pt(kt,er){var Kr=kt.get("blendMode")||null;er.group.traverse(function(Ir){Ir.isGroup||Ir.style.blend!==Kr&&Ir.setStyle("blend",Kr),Ir.eachPendingDisplayable&&Ir.eachPendingDisplayable(function(Dr){Dr.setStyle("blend",Kr)})})}function Wt(kt,er){var Kr=kt.get("z"),Ir=kt.get("zlevel");er.group.traverse(function(Dr){Dr.type!=="group"&&(Kr!=null&&(Dr.z=Kr),Ir!=null&&(Dr.zlevel=Ir))})}function Ge(kt){var er=kt._coordSysMgr;return v.extend(new i(kt),{getCoordinateSystems:v.bind(er.getCoordinateSystems,er),getComponentByElement:function(Kr){for(;Kr;){var Ir=Kr.__ecComponentInfo;if(Ir!=null)return kt._model.getComponent(Ir.mainType,Ir.index);Kr=Kr.parent}}})}function pe(){this.eventInfo}pe.prototype={constructor:pe,normalizeQuery:function(kt){var er={},Kr={},Ir={};if(v.isString(kt)){var Dr=X(kt);er.mainType=Dr.main||null,er.subType=Dr.sub||null}else{var dn=["Index","Name","Id"],yn={name:1,dataIndex:1,dataType:1};v.each(kt,function(ti,ei){for(var fi=!1,Ei=0;Ei<dn.length;Ei++){var Di=dn[Ei],Hi=ei.lastIndexOf(Di);if(Hi>0&&Hi===ei.length-Di.length){var nt=ei.slice(0,Hi);nt!=="data"&&(er.mainType=nt,er[Di.toLowerCase()]=ti,fi=!0)}}yn.hasOwnProperty(ei)&&(Kr[ei]=ti,fi=!0),fi||(Ir[ei]=ti)})}return{cptQuery:er,dataQuery:Kr,otherQuery:Ir}},filter:function(kt,er,Kr){var Ir=this.eventInfo;if(!Ir)return!0;var Dr=Ir.targetEl,dn=Ir.packedEvent,yn=Ir.model,ti=Ir.view;if(!yn||!ti)return!0;var ei=er.cptQuery,fi=er.dataQuery;return Ei(ei,yn,"mainType")&&Ei(ei,yn,"subType")&&Ei(ei,yn,"index","componentIndex")&&Ei(ei,yn,"name")&&Ei(ei,yn,"id")&&Ei(fi,dn,"name")&&Ei(fi,dn,"dataIndex")&&Ei(fi,dn,"dataType")&&(!ti.filterForExposedEvent||ti.filterForExposedEvent(kt,er.otherQuery,Dr,dn));function Ei(Di,Hi,nt,Le){return Di[nt]==null||Hi[Le||nt]===Di[nt]}},afterTrigger:function(){this.eventInfo=null}};var se={},lt={},qe=[],me=[],Ht=[],yr=[],At={},rr={},ur={},vn={},Bt=new Date-0,sr=new Date-0,Yt="_echarts_instance_";function pt(kt){var er=0,Kr=1,Ir=2,Dr="__connectUpdateStatus";function dn(yn,ti){for(var ei=0;ei<yn.length;ei++){var fi=yn[ei];fi[Dr]=ti}}M(lt,function(yn,ti){kt._messageCenter.on(ti,function(ei){if(vn[kt.group]&&kt[Dr]!==er){if(ei&&ei.escapeConnect)return;var fi=kt.makeActionFromEvent(ei),Ei=[];M(ur,function(Di){Di!==kt&&Di.group===kt.group&&Ei.push(Di)}),dn(Ei,er),M(Ei,function(Di){Di[Dr]!==Kr&&Di.dispatchAction(fi)}),dn(Ei,Ir)}})})}function it(kt,er,Kr){var Ir=gi(kt);if(Ir)return Ir;var Dr=new he(kt,er,Kr);return Dr.id="ec_"+Bt++,ur[Dr.id]=Dr,A.setAttribute(kt,Yt,Dr.id),pt(Dr),Dr}function Fr(kt){if(v.isArray(kt)){var er=kt;kt=null,M(er,function(Kr){Kr.group!=null&&(kt=Kr.group)}),kt=kt||"g_"+sr++,M(er,function(Kr){Kr.group=kt})}return vn[kt]=!0,kt}function cn(kt){vn[kt]=!1}var _n=cn;function Kn(kt){typeof kt=="string"?kt=ur[kt]:kt instanceof he||(kt=gi(kt)),kt instanceof he&&!kt.isDisposed()&&kt.dispose()}function gi(kt){return ur[A.getAttribute(kt,Yt)]}function Mn(kt){return ur[kt]}function Un(kt,er){At[kt]=er}function $t(kt){me.push(kt)}function Ct(kt,er){Vt(qe,kt,er,z)}function Re(kt){Ht.push(kt)}function De(kt,er,Kr){typeof er=="function"&&(Kr=er,er="");var Ir=P(kt)?kt.type:[kt,kt={event:er}][0];kt.event=(kt.event||Ir).toLowerCase(),er=kt.event,R(Fe.test(Ir)&&Fe.test(er)),se[Ir]||(se[Ir]={action:Kr,actionInfo:kt}),lt[er]=Ir}function Pe(kt,er){t.register(kt,er)}function et(kt){var er=t.get(kt);if(er)return er.getDimensionsInfo?er.getDimensionsInfo():er.dimensions.slice()}function yt(kt,er){Vt(yr,kt,er,te,"layout")}function St(kt,er){Vt(yr,kt,er,re,"visual")}function Vt(kt,er,Kr,Ir,Dr){(B(er)||P(er))&&(Kr=er,er=Ir);var dn=T.wrapStageHandler(Kr,Dr);return dn.__prio=er,dn.__raw=Kr,kt.push(dn),dn}function Rr(kt,er){rr[kt]=er}function Vr(kt){return r.extend(kt)}function hn(kt){return c.extend(kt)}function Ft(kt){return a.extend(kt)}function vt(kt){return h.extend(kt)}function bt(kt){v.$override("createCanvas",kt)}function fr(kt,er,Kr){I.registerMap(kt,er,Kr)}function Qt(kt){var er=I.retrieveMap(kt);return er&&er[0]&&{geoJson:er[0].geoJSON,specialAreas:er[0].specialAreas}}St(le,E),$t(e),Ct(Q,l),Rr("default",_),De({type:"highlight",event:"highlight",update:"highlight"},v.noop),De({type:"downplay",event:"downplay",update:"downplay"},v.noop),Un("light",w),Un("dark",O);var Mt={};D.version=F,D.dependencies=j,D.PRIORITY=Je,D.init=it,D.connect=Fr,D.disConnect=cn,D.disconnect=_n,D.dispose=Kn,D.getInstanceByDom=gi,D.getInstanceById=Mn,D.registerTheme=Un,D.registerPreprocessor=$t,D.registerProcessor=Ct,D.registerPostUpdate=Re,D.registerAction=De,D.registerCoordinateSystem=Pe,D.getCoordinateSystemDimensions=et,D.registerLayout=yt,D.registerVisual=St,D.registerLoading=Rr,D.extendComponentModel=Vr,D.extendComponentView=hn,D.extendSeriesModel=Ft,D.extendChartView=vt,D.setCanvasCreator=bt,D.registerMap=fr,D.getMap=Qt,D.dataTool=Mt;var qt=n("txkQ");(function(){for(var kt in qt)qt.hasOwnProperty(kt)&&(D[kt]=qt[kt])})()},Pw59:function(k,D,n){"use strict";var y=n("q1tI"),p=n.n(y),x=Object(y.createContext)({});D.a=x},Q7if:function(k,D,n){var y=n("JEkh"),p=y.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});k.exports=p},Q9mQ:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("UADf"),v=n.n(x)},"QB+1":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("Ywus"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},QBsz:function(k,D){var n=typeof Float32Array=="undefined"?Array:Float32Array;function y(T,w){var O=new n(2);return T==null&&(T=0),w==null&&(w=0),O[0]=T,O[1]=w,O}function p(T,w){return T[0]=w[0],T[1]=w[1],T}function x(T){var w=new n(2);return w[0]=T[0],w[1]=T[1],w}function v(T,w,O){return T[0]=w,T[1]=O,T}function m(T,w,O){return T[0]=w[0]+O[0],T[1]=w[1]+O[1],T}function f(T,w,O,I){return T[0]=w[0]+O[0]*I,T[1]=w[1]+O[1]*I,T}function d(T,w,O){return T[0]=w[0]-O[0],T[1]=w[1]-O[1],T}function u(T){return Math.sqrt(i(T))}var o=u;function i(T){return T[0]*T[0]+T[1]*T[1]}var t=i;function s(T,w,O){return T[0]=w[0]*O[0],T[1]=w[1]*O[1],T}function e(T,w,O){return T[0]=w[0]/O[0],T[1]=w[1]/O[1],T}function l(T,w){return T[0]*w[0]+T[1]*w[1]}function r(T,w,O){return T[0]=w[0]*O,T[1]=w[1]*O,T}function a(T,w){var O=u(w);return O===0?(T[0]=0,T[1]=0):(T[0]=w[0]/O,T[1]=w[1]/O),T}function c(T,w){return Math.sqrt((T[0]-w[0])*(T[0]-w[0])+(T[1]-w[1])*(T[1]-w[1]))}var h=c;function g(T,w){return(T[0]-w[0])*(T[0]-w[0])+(T[1]-w[1])*(T[1]-w[1])}var A=g;function b(T,w){return T[0]=-w[0],T[1]=-w[1],T}function S(T,w,O,I){return T[0]=w[0]+I*(O[0]-w[0]),T[1]=w[1]+I*(O[1]-w[1]),T}function E(T,w,O){var I=w[0],R=w[1];return T[0]=O[0]*I+O[2]*R+O[4],T[1]=O[1]*I+O[3]*R+O[5],T}function C(T,w,O){return T[0]=Math.min(w[0],O[0]),T[1]=Math.min(w[1],O[1]),T}function _(T,w,O){return T[0]=Math.max(w[0],O[0]),T[1]=Math.max(w[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=u,D.length=o,D.lenSquare=i,D.lengthSquare=t,D.mul=s,D.div=e,D.dot=l,D.scale=r,D.normalize=a,D.distance=c,D.dist=h,D.distanceSquare=g,D.distSquare=A,D.negate=b,D.lerp=S,D.applyTransform=E,D.min=C,D.max=_},"QO+J":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=x(n("NohK")),p=n("24YM");function x(m){return m&&m.__esModule?m:{default:m}}var v=function(f,d){var u=void 0,o=[],i=function(){getComputedStyle(f).position==="static"&&(f.style.position="relative");var a=document.createElement("object");return a.onload=function(){a.contentDocument.defaultView.addEventListener("resize",t),t()},a.style.display="block",a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.height="100%",a.style.width="100%",a.style.overflow="hidden",a.style.pointerEvents="none",a.style.zIndex="-1",a.style.opacity="0",a.setAttribute("class",p.SensorClassName),a.setAttribute("tabindex",p.SensorTabIndex),a.type="text/html",f.appendChild(a),a.data="about:blank",a},t=(0,y.default)(function(){o.forEach(function(r){r(f)})}),s=function(a){u||(u=i()),o.indexOf(a)===-1&&o.push(a)},e=function(){u&&u.parentNode&&(u.contentDocument&&u.contentDocument.defaultView.removeEventListener("resize",t),u.parentNode.removeChild(u),f.removeAttribute(p.SizeSensorId),u=void 0,o=[],d&&d())},l=function(a){var c=o.indexOf(a);c!==-1&&o.splice(c,1),o.length===0&&u&&e()};return{element:f,bind:s,destroy:e,unbind:l}};D.createSensor=v},"QQZ/":function(k,D,n){var y=n("Sq3C"),p=n("Z1HP"),x=n("Sxd8"),v=n("dt0z");function m(f,d,u){f=v(f),d=x(d);var o=d?p(f):0;return d&&o<d?y(d-o,u)+f:f}k.exports=m},QUw5:function(k,D,n){var y=n("OlYY"),p=y.extend({type:"dataZoom.select"});k.exports=p},QV2g:function(k,D,n){"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 u=p,o=d+f;v^=-1;for(var i=d;i<o;i++)v=v>>>8^u[(v^m[i])&255];return v^-1}},QbM5:function(k,D,n){},Qe9p:function(k,D,n){var y=n("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(w){return w=Math.round(w),w<0?0:w>255?255:w}function v(w){return w=Math.round(w),w<0?0:w>360?360:w}function m(w){return w<0?0:w>1?1:w}function f(w){return w.length&&w.charAt(w.length-1)==="%"?x(parseFloat(w)/100*255):x(parseInt(w,10))}function d(w){return w.length&&w.charAt(w.length-1)==="%"?m(parseFloat(w)/100):m(parseFloat(w))}function u(w,O,I){return I<0?I+=1:I>1&&(I-=1),I*6<1?w+(O-w)*I*6:I*2<1?O:I*3<2?w+(O-w)*(2/3-I)*6:w}function o(w,O,I){return w+(O-w)*I}function i(w,O,I,R,M){return w[0]=O,w[1]=I,w[2]=R,w[3]=M,w}function t(w,O){return w[0]=O[0],w[1]=O[1],w[2]=O[2],w[3]=O[3],w}var s=new y(20),e=null;function l(w,O){e&&t(e,O),e=s.put(w,e||O.slice())}function r(w,O){if(!w)return;O=O||[];var I=s.get(w);if(I)return t(O,I);w=w+"";var R=w.replace(/ /g,"").toLowerCase();if(R in p)return t(O,p[R]),l(w,O),O;if(R.charAt(0)==="#"){if(R.length===4){var M=parseInt(R.substr(1),16);if(!(M>=0&&M<=4095)){i(O,0,0,0,1);return}return i(O,(M&3840)>>4|(M&3840)>>8,M&240|(M&240)>>4,M&15|(M&15)<<4,1),l(w,O),O}else if(R.length===7){var M=parseInt(R.substr(1),16);if(!(M>=0&&M<=16777215)){i(O,0,0,0,1);return}return i(O,(M&16711680)>>16,(M&65280)>>8,M&255,1),l(w,O),O}return}var B=R.indexOf("("),P=R.indexOf(")");if(B!==-1&&P+1===R.length){var X=R.substr(0,B),F=R.substr(B+1,P-(B+1)).split(","),j=1;switch(X){case"rgba":if(F.length!==4){i(O,0,0,0,1);return}j=d(F.pop());case"rgb":if(F.length!==3){i(O,0,0,0,1);return}return i(O,f(F[0]),f(F[1]),f(F[2]),j),l(w,O),O;case"hsla":if(F.length!==4){i(O,0,0,0,1);return}return F[3]=d(F[3]),a(F,O),l(w,O),O;case"hsl":if(F.length!==3){i(O,0,0,0,1);return}return a(F,O),l(w,O),O;default:return}}i(O,0,0,0,1);return}function a(w,O){var I=(parseFloat(w[0])%360+360)%360/360,R=d(w[1]),M=d(w[2]),B=M<=.5?M*(R+1):M+R-M*R,P=M*2-B;return O=O||[],i(O,x(u(P,B,I+1/3)*255),x(u(P,B,I)*255),x(u(P,B,I-1/3)*255),1),w.length===4&&(O[3]=w[3]),O}function c(w){if(!w)return;var O=w[0]/255,I=w[1]/255,R=w[2]/255,M=Math.min(O,I,R),B=Math.max(O,I,R),P=B-M,X=(B+M)/2,F,j;if(P===0)F=0,j=0;else{X<.5?j=P/(B+M):j=P/(2-B-M);var K=((B-O)/6+P/2)/P,z=((B-I)/6+P/2)/P,V=((B-R)/6+P/2)/P;O===B?F=V-z:I===B?F=1/3+K-V:R===B&&(F=2/3+z-K),F<0&&(F+=1),F>1&&(F-=1)}var Q=[F*360,j,X];return w[3]!=null&&Q.push(w[3]),Q}function h(w,O){var I=r(w);if(I){for(var R=0;R<3;R++)O<0?I[R]=I[R]*(1-O)|0:I[R]=(255-I[R])*O+I[R]|0,I[R]>255?I[R]=255:w[R]<0&&(I[R]=0);return T(I,I.length===4?"rgba":"rgb")}}function g(w){var O=r(w);if(O)return((1<<24)+(O[0]<<16)+(O[1]<<8)+ +O[2]).toString(16).slice(1)}function A(w,O,I){if(!(O&&O.length)||!(w>=0&&w<=1))return;I=I||[];var R=w*(O.length-1),M=Math.floor(R),B=Math.ceil(R),P=O[M],X=O[B],F=R-M;return I[0]=x(o(P[0],X[0],F)),I[1]=x(o(P[1],X[1],F)),I[2]=x(o(P[2],X[2],F)),I[3]=m(o(P[3],X[3],F)),I}var b=A;function S(w,O,I){if(!(O&&O.length)||!(w>=0&&w<=1))return;var R=w*(O.length-1),M=Math.floor(R),B=Math.ceil(R),P=r(O[M]),X=r(O[B]),F=R-M,j=T([x(o(P[0],X[0],F)),x(o(P[1],X[1],F)),x(o(P[2],X[2],F)),m(o(P[3],X[3],F))],"rgba");return I?{color:j,leftIndex:M,rightIndex:B,value:R}:j}var E=S;function C(w,O,I,R){if(w=r(w),w)return w=c(w),O!=null&&(w[0]=v(O)),I!=null&&(w[1]=d(I)),R!=null&&(w[2]=d(R)),T(a(w),"rgba")}function _(w,O){if(w=r(w),w&&O!=null)return w[3]=m(O),T(w,"rgba")}function T(w,O){if(!w||!w.length)return;var I=w[0]+","+w[1]+","+w[2];return(O==="rgba"||O==="hsva"||O==="hsla")&&(I+=","+w[3]),O+"("+I+")"}D.parse=r,D.lift=h,D.toHex=g,D.fastLerp=A,D.fastMapToColor=b,D.lerp=S,D.mapToColor=E,D.modifyHSL=C,D.modifyAlpha=_,D.stringify=T},Qi1f:function(k,D,n){"use strict";n.d(D,"g",function(){return T}),n.d(D,"c",function(){return w}),n.d(D,"a",function(){return I}),n.d(D,"b",function(){return R}),n.d(D,"d",function(){return M}),n.d(D,"e",function(){return B}),n.d(D,"f",function(){return X});var y=n("VTBJ"),p=n("U8pU"),x=n("AJpP"),v=n("q1tI"),m=n.n(v),f=n("Kwbf"),d=n("MNnm"),u=n("l4aY"),o="data-rc-order",i="data-rc-priority",t="rc-util-key",s=new Map;function e(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=F.mark;return j?j.startsWith("data-")?j:"data-".concat(j):t}function l(F){if(F.attachTo)return F.attachTo;var j=document.querySelector("head");return j||document.body}function r(F){return F==="queue"?"prependQueue":F?"prepend":"append"}function a(F){return Array.from((s.get(F)||F).children).filter(function(j){return j.tagName==="STYLE"})}function c(F){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(d.a)())return null;var K=j.csp,z=j.prepend,V=j.priority,Q=V===void 0?0:V,G=r(z),te=G==="prependQueue",q=document.createElement("style");q.setAttribute(o,G),te&&Q&&q.setAttribute(i,"".concat(Q)),K!=null&&K.nonce&&(q.nonce=K==null?void 0:K.nonce),q.innerHTML=F;var le=l(j),re=le.firstChild;if(z){if(te){var we=a(le).filter(function(Ie){if(!["prepend","prependQueue"].includes(Ie.getAttribute(o)))return!1;var Me=Number(Ie.getAttribute(i)||0);return Q>=Me});if(we.length)return le.insertBefore(q,we[we.length-1].nextSibling),q}le.insertBefore(q,re)}else le.appendChild(q);return q}function h(F){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=l(j);return a(K).find(function(z){return z.getAttribute(e(j))===F})}function g(F){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=h(F,j);if(K){var z=l(j);z.removeChild(K)}}function A(F,j){var K=s.get(F);if(!K||!Object(u.a)(document,K)){var z=c("",j),V=z.parentNode;s.set(F,V),F.removeChild(z)}}function b(){s.clear()}function S(F,j){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=l(K);A(z,K);var V=h(j,K);if(V){var Q,G;if((Q=K.csp)!==null&&Q!==void 0&&Q.nonce&&V.nonce!==((G=K.csp)===null||G===void 0?void 0:G.nonce)){var te;V.nonce=(te=K.csp)===null||te===void 0?void 0:te.nonce}return V.innerHTML!==F&&(V.innerHTML=F),V}var q=c(F,K);return q.setAttribute(e(K),j),q}var E=n("Pw59"),C=n("u6S6"),_=n.n(C);function T(F,j){Object(f.a)(F,"[@ant-design/icons] ".concat(j))}function w(F){return Object(p.a)(F)==="object"&&typeof F.name=="string"&&typeof F.theme=="string"&&(Object(p.a)(F.icon)==="object"||typeof F.icon=="function")}function O(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(F).reduce(function(j,K){var z=F[K];switch(K){case"class":j.className=z,delete j.class;break;default:delete j[K],j[_()(K)]=z}return j},{})}function I(F,j,K){return K?m.a.createElement(F.tag,Object(y.a)(Object(y.a)({key:j},O(F.attrs)),K),(F.children||[]).map(function(z,V){return I(z,"".concat(j,"-").concat(F.tag,"-").concat(V))})):m.a.createElement(F.tag,Object(y.a)({key:j},O(F.attrs)),(F.children||[]).map(function(z,V){return I(z,"".concat(j,"-").concat(F.tag,"-").concat(V))}))}function R(F){return Object(x.generate)(F)[0]}function M(F){return F?Array.isArray(F)?F:[F]:[]}var B={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},P=`
.anticon {
display: inline-block;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,X=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P,K=Object(v.useContext)(E.a),z=K.csp;Object(v.useEffect)(function(){S(j,"@ant-design-icons",{prepend:!0,csp:z})},[])}},QkVE:function(k,D,n){var y=n("EpBk");function p(x,v){var m=x.__data__;return y(v)?m[typeof v=="string"?"string":"hash"]:m.map}k.exports=p},QoRX:function(k,D){function n(y,p){for(var x=-1,v=y==null?0:y.length;++x<v;)if(p(y[x],x,y))return!0;return!1}k.exports=n},QqLw:function(k,D,n){var y=n("tadb"),p=n("ebwN"),x=n("HOxn"),v=n("yGk4"),m=n("Of+w"),f=n("NykK"),d=n("3Fdi"),u="[object Map]",o="[object Object]",i="[object Promise]",t="[object Set]",s="[object WeakMap]",e="[object DataView]",l=d(y),r=d(p),a=d(x),c=d(v),h=d(m),g=f;(y&&g(new y(new ArrayBuffer(1)))!=e||p&&g(new p)!=u||x&&g(x.resolve())!=i||v&&g(new v)!=t||m&&g(new m)!=s)&&(g=function(A){var b=f(A),S=b==o?A.constructor:void 0,E=S?d(S):"";if(E)switch(E){case l:return e;case r:return u;case a:return i;case c:return t;case h:return s}return b}),k.exports=g},Qs3X:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("X+im"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},Qs9O:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};D.default=y},QuXc:function(k,D){var n=function(x){this.colorStops=x||[]};n.prototype={constructor:n,addColorStop:function(x,v){this.colorStops.push({offset:x,color:v})}};var y=n;k.exports=y},Qvb6:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("ItGF"),v=n("B9fm"),m=n("gvm7"),f=n("7aKB"),d=n("OELB"),u=n("IwbS"),o=n("Ez2D"),i=n("+TT/"),t=n("Qxkt"),s=n("F9bG"),e=n("aX7z"),l=n("/y7N"),r=n("4NO4"),a=r.getTooltipRenderMode,c=p.bind,h=p.each,g=d.parsePercent,A=new u.Rect({shape:{x:-1,y:-1,width:2,height:2}}),b=y.extendComponentView({type:"tooltip",init:function(O,I){if(x.node)return;var R=O.getComponent("tooltip"),M=R.get("renderMode");this._renderMode=a(M);var B;this._renderMode==="html"?(B=new v(I.getDom(),I,{appendToBody:R.get("appendToBody",!0)}),this._newLine="<br/>"):(B=new m(I),this._newLine=`
`),this._tooltipContent=B},render:function(O,I,R){if(x.node)return;this.group.removeAll(),this._tooltipModel=O,this._ecModel=I,this._api=R,this._lastDataByCoordSys=null,this._alwaysShowContent=O.get("alwaysShowContent");var M=this._tooltipContent;M.update(),M.setEnterable(O.get("enterable")),this._initGlobalListener(),this._keepShow()},_initGlobalListener:function(){var O=this._tooltipModel,I=O.get("triggerOn");s.register("itemTooltip",this._api,c(function(R,M,B){I!=="none"&&(I.indexOf(R)>=0?this._tryShow(M,B):R==="leave"&&this._hide(B))},this))},_keepShow:function(){var O=this._tooltipModel,I=this._ecModel,R=this._api;if(this._lastX!=null&&this._lastY!=null&&O.get("triggerOn")!=="none"){var M=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!R.isDisposed()&&M.manuallyShowTip(O,I,R,{x:M._lastX,y:M._lastY})})}},manuallyShowTip:function(O,I,R,M){if(M.from===this.uid||x.node)return;var B=E(M,R);this._ticket="";var P=M.dataByCoordSys;if(M.tooltip&&M.x!=null&&M.y!=null){var X=A;X.position=[M.x,M.y],X.update(),X.tooltip=M.tooltip,this._tryShow({offsetX:M.x,offsetY:M.y,target:X},B)}else if(P)this._tryShow({offsetX:M.x,offsetY:M.y,position:M.position,dataByCoordSys:M.dataByCoordSys,tooltipOption:M.tooltipOption},B);else if(M.seriesIndex!=null){if(this._manuallyAxisShowTip(O,I,R,M))return;var F=o(M,I),j=F.point[0],K=F.point[1];j!=null&&K!=null&&this._tryShow({offsetX:j,offsetY:K,position:M.position,target:F.el},B)}else M.x!=null&&M.y!=null&&(R.dispatchAction({type:"updateAxisPointer",x:M.x,y:M.y}),this._tryShow({offsetX:M.x,offsetY:M.y,position:M.position,target:R.getZr().findHover(M.x,M.y).target},B))},manuallyHideTip:function(O,I,R,M){var B=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&B.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,M.from!==this.uid&&this._hide(E(M,R))},_manuallyAxisShowTip:function(O,I,R,M){var B=M.seriesIndex,P=M.dataIndex,X=I.getComponent("axisPointer").coordSysAxesInfo;if(B==null||P==null||X==null)return;var F=I.getSeriesByIndex(B);if(!F)return;var j=F.getData(),O=S([j.getItemModel(P),F,(F.coordinateSystem||{}).model,O]);return O.get("trigger")!=="axis"?void 0:(R.dispatchAction({type:"updateAxisPointer",seriesIndex:B,dataIndex:P,position:M.position}),!0)},_tryShow:function(O,I){var R=O.target,M=this._tooltipModel;if(!M)return;this._lastX=O.offsetX,this._lastY=O.offsetY;var B=O.dataByCoordSys;B&&B.length?this._showAxisTooltip(B,O):R&&R.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(O,R,I)):R&&R.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(O,R,I)):(this._lastDataByCoordSys=null,this._hide(I))},_showOrMove:function(O,I){var R=O.get("showDelay");I=p.bind(I,this),clearTimeout(this._showTimout),R>0?this._showTimout=setTimeout(I,R):I()},_showAxisTooltip:function(O,I){var R=this._ecModel,M=this._tooltipModel,B=[I.offsetX,I.offsetY],P=[],X=[],F=S([I.tooltipOption,M]),j=this._renderMode,K=this._newLine,z={};h(O,function(Q){h(Q.dataByAxis,function(G){var te=R.getComponent(G.axisDim+"Axis",G.axisIndex),q=G.value,le=[];if(!te||q==null)return;var re=l.getValueLabel(q,te.axis,R,G.seriesDataIndices,G.valueLabelOpt);p.each(G.seriesDataIndices,function(Ie){var Me=R.getSeriesByIndex(Ie.seriesIndex),Je=Ie.dataIndexInside,Ve=Me&&Me.getDataParams(Je);if(Ve.axisDim=G.axisDim,Ve.axisIndex=G.axisIndex,Ve.axisType=G.axisType,Ve.axisId=G.axisId,Ve.axisValue=e.getAxisRawValue(te.axis,q),Ve.axisValueLabel=re,Ve){X.push(Ve);var ut=Me.formatTooltip(Je,!0,null,j),Fe;if(p.isObject(ut)){Fe=ut.html;var ae=ut.markers;p.merge(z,ae)}else Fe=ut;le.push(Fe)}});var we=re;j!=="html"?P.push(le.join(K)):P.push((we?f.encodeHTML(we)+K:"")+le.join(K))})},this),P.reverse(),P=P.join(this._newLine+this._newLine);var V=I.position;this._showOrMove(F,function(){this._updateContentNotChangedOnAxis(O)?this._updatePosition(F,V,B[0],B[1],this._tooltipContent,X):this._showTooltipContent(F,P,X,Math.random(),B[0],B[1],V,void 0,z)})},_showSeriesItemTooltip:function(O,I,R){var M=this._ecModel,B=I.seriesIndex,P=M.getSeriesByIndex(B),X=I.dataModel||P,F=I.dataIndex,j=I.dataType,K=X.getData(j),z=S([K.getItemModel(F),X,P&&(P.coordinateSystem||{}).model,this._tooltipModel]),V=z.get("trigger");if(V!=null&&V!=="item")return;var Q=X.getDataParams(F,j),G=X.formatTooltip(F,!1,j,this._renderMode),te,q;p.isObject(G)?(te=G.html,q=G.markers):(te=G,q=null);var le="item_"+X.name+"_"+F;this._showOrMove(z,function(){this._showTooltipContent(z,te,Q,le,O.offsetX,O.offsetY,O.position,O.target,q)}),R({type:"showTip",dataIndexInside:F,dataIndex:K.getRawIndex(F),seriesIndex:B,from:this.uid})},_showComponentItemTooltip:function(O,I,R){var M=I.tooltip;if(typeof M=="string"){var B=M;M={content:B,formatter:B}}var P=new t(M,this._tooltipModel,this._ecModel),X=P.get("content"),F=Math.random();this._showOrMove(P,function(){this._showTooltipContent(P,X,P.get("formatterParams")||{},F,O.offsetX,O.offsetY,O.position,I)}),R({type:"showTip",from:this.uid})},_showTooltipContent:function(O,I,R,M,B,P,X,F,j){if(this._ticket="",!O.get("showContent")||!O.get("show"))return;var K=this._tooltipContent,z=O.get("formatter");X=X||O.get("position");var V=I;if(z&&typeof z=="string")V=f.formatTpl(z,R,!0);else if(typeof z=="function"){var Q=c(function(G,te){G===this._ticket&&(K.setContent(te,j,O),this._updatePosition(O,X,B,P,K,R,F))},this);this._ticket=M,V=z(R,M,Q)}K.setContent(V,j,O),K.show(O),this._updatePosition(O,X,B,P,K,R,F)},_updatePosition:function(O,I,R,M,B,P,X){var F=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=X&&X.getBoundingRect().clone();if(X&&Q.applyTransform(X.transform),typeof I=="function"&&(I=I([R,M],P,B.el,Q,{viewSize:[F,j],contentSize:K.slice()})),p.isArray(I))R=g(I[0],F),M=g(I[1],j);else if(p.isObject(I)){I.width=K[0],I.height=K[1];var G=i.getLayoutRect(I,{width:F,height:j});R=G.x,M=G.y,z=null,V=null}else if(typeof I=="string"&&X){var te=T(I,Q,K);R=te[0],M=te[1]}else{var te=C(R,M,B,F,j,z?null:20,V?null:20);R=te[0],M=te[1]}if(z&&(R-=w(z)?K[0]/2:z==="right"?K[0]:0),V&&(M-=w(V)?K[1]/2:V==="bottom"?K[1]:0),O.get("confine")){var te=_(R,M,B,F,j);R=te[0],M=te[1]}B.moveTo(R,M)},_updateContentNotChangedOnAxis:function(O){var I=this._lastDataByCoordSys,R=!!I&&I.length===O.length;return R&&h(I,function(M,B){var P=M.dataByAxis||{},X=O[B]||{},F=X.dataByAxis||[];R&=P.length===F.length,R&&h(P,function(j,K){var z=F[K]||{},V=j.seriesDataIndices||[],Q=z.seriesDataIndices||[];R&=j.value===z.value&&j.axisType===z.axisType&&j.axisId===z.axisId&&V.length===Q.length,R&&h(V,function(G,te){var q=Q[te];R&=G.seriesIndex===q.seriesIndex&&G.dataIndex===q.dataIndex})})}),this._lastDataByCoordSys=O,!!R},_hide:function(O){this._lastDataByCoordSys=null,O({type:"hideTip",from:this.uid})},dispose:function(O,I){if(x.node)return;this._tooltipContent.dispose(),s.unregister("itemTooltip",I)}});function S(O){for(var I=O.pop();O.length;){var R=O.pop();R&&(t.isInstance(R)&&(R=R.get("tooltip",!0)),typeof R=="string"&&(R={formatter:R}),I=new t(R,I,I.ecModel))}return I}function E(O,I){return O.dispatchAction||p.bind(I.dispatchAction,I)}function C(O,I,R,M,B,P,X){var F=R.getOuterSize(),j=F.width,K=F.height;return P!=null&&(O+j+P>M?O-=j+P:O+=P),X!=null&&(I+K+X>B?I-=K+X:I+=X),[O,I]}function _(O,I,R,M,B){var P=R.getOuterSize(),X=P.width,F=P.height;return O=Math.min(O+X,M)-X,I=Math.min(I+F,B)-F,O=Math.max(O,0),I=Math.max(I,0),[O,I]}function T(O,I,R){var M=R[0],B=R[1],P=5,X=0,F=0,j=I.width,K=I.height;switch(O){case"inside":X=I.x+j/2-M/2,F=I.y+K/2-B/2;break;case"top":X=I.x+j/2-M/2,F=I.y-B-P;break;case"bottom":X=I.x+j/2-M/2,F=I.y+K+P;break;case"left":X=I.x-M-P,F=I.y+K/2-B/2;break;case"right":X=I.x+j+P,F=I.y+K/2-B/2}return[X,F]}function w(O){return O==="center"||O==="middle"}k.exports=b},Qxkt:function(k,D,n){var y=n("bYtY"),p=n("ItGF"),x=n("4NO4"),v=x.makeInner,m=n("Yl7c"),f=m.enableClassExtend,d=m.enableClassCheck,u=n("OQFs"),o=n("m9t5"),i=n("/iHx"),t=n("VR9l"),s=y.mixin,e=v();function l(h,g,A){this.parentModel=g,this.ecModel=A,this.option=h}l.prototype={constructor:l,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&&a(this,h))},getShallow:function(h,g){var A=this.option,b=A==null?A:A[h],S=!g&&a(this,h);return b==null&&S&&(b=S.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=a(this,h))&&b.getModel(h),new l(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 a(h,g){var A=e(h).getParent;return A?A.call(h,g):h.parentModel}f(l),d(l),s(l,u),s(l,o),s(l,i),s(l,t);var c=l;k.exports=c},QyFq:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};D.default=y},QzjZ:function(k,D,n){var y=n("S/Yl"),p=n("IDmD");function x(v,m){var f=[];return v.eachComponent("singleAxis",function(d,u){var o=new y(d,v,m);o.name="single_"+u,o.resize(d,m),d.coordinateSystem=o,f.push(o)}),v.eachSeries(function(d){if(d.get("coordinateSystem")==="singleAxis"){var u=v.queryComponents({mainType:"singleAxis",index:d.get("singleAxisIndex"),id:d.get("singleAxisId")})[0];d.coordinateSystem=u&&u.coordinateSystem}}),f}p.register("single",{create:x,dimensions:y.prototype.dimensions})},R4Th:function(k,D,n){var y=n("ProS"),p=n("9wZj"),x=n("yO87"),v=n("Fofx"),m=n("h8O9"),f=y.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new p(x)},render:function(d,u,o){var i=d.getData(),t=this._symbolDraw;t.updateData(i),this.group.add(t.group)},updateTransform:function(d,u,o){var i=d.getData();this.group.dirty();var t=m().reset(d);t.progress&&t.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateGroupTransform:function(d){var u=d.coordinateSystem;u&&u.getRoamTransform&&(this.group.transform=v.clone(u.getRoamTransform()),this.group.decomposeTransform())},remove:function(d,u){this._symbolDraw&&this._symbolDraw.remove(u)},dispose:function(){}});k.exports=f},R9oj:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("pwpV"),v=n.n(x)},RBEP:function(k,D,n){for(var y=n("ProS"),p=n("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},u);function u(o,i){var t=["treemapZoomToNode","treemapRootToNode"],s=p.retrieveTargetInfo(f,t,o);if(s){var e=o.getViewRoot();e&&(f.direction=p.aboveViewRoot(e,s.node)?"rollUp":"drillDown"),o.resetViewRoot(s.node)}}})},RCxd:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="ExclamationCircleOutlined";var d=D.a=p.forwardRef(f)},RDYZ:function(k,D,n){var y=n("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 u=this.easing,o=typeof u=="string"?y[u]:u,i=typeof o=="function"?o(d):d;return this.fire("frame",i),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;k.exports=x},RELg:function(k,D,n){var y=n("MFOe"),p=y.Global;k.exports={name:"oldIE-userDataStorage",write:d,read:u,each:o,remove:i,clearAll:t};var x="storejs",v=p.document,m=l(),f=(p.navigator?p.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function d(r,a){if(f)return;var c=e(r);m(function(h){h.setAttribute(c,a),h.save(x)})}function u(r){if(f)return;var a=e(r),c=null;return m(function(h){c=h.getAttribute(a)}),c}function o(r){m(function(a){for(var c=a.XMLDocument.documentElement.attributes,h=c.length-1;h>=0;h--){var g=c[h];r(a.getAttribute(g.name),g.name)}})}function i(r){var a=e(r);m(function(c){c.removeAttribute(a),c.save(x)})}function t(){m(function(r){var a=r.XMLDocument.documentElement.attributes;r.load(x);for(var c=a.length-1;c>=0;c--)r.removeAttribute(a[c].name);r.save(x)})}var s=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function e(r){return r.replace(/^\d/,"___$&").replace(s,"___")}function l(){if(!v||!v.documentElement||!v.documentElement.addBehavior)return null;var r="script",a,c,h;try{c=new ActiveXObject("htmlfile"),c.open(),c.write("<"+r+">document.w=window</"+r+'><iframe src="/favicon.ico"></iframe>'),c.close(),a=c.w.frames[0].document,h=a.createElement("div")}catch(g){h=v.createElement("div"),a=v.body}return function(g){var A=[].slice.call(arguments,0);A.unshift(h),a.appendChild(h),h.addBehavior("#default#userData"),h.load(x),g.apply(this,A),a.removeChild(h);return}}},RPvy:function(k,D,n){var y=n("ProS"),p=n("VaxA"),x="sunburstRootToNode";y.registerAction({type:x,update:"updateView"},function(f,d){d.eachComponent({mainType:"series",subType:"sunburst",query:f},u);function u(o,i){var t=p.retrieveTargetInfo(f,[x],o);if(t){var s=o.getViewRoot();s&&(f.direction=p.aboveViewRoot(s,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},u);function u(o,i){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},u);function u(o,i){f.unhighlight=!0}})},RSch:function(k,D,n){var y=n("IwbS"),p=n("bYtY");function x(f,d,u){y.Group.call(this),this._createPolyline(f,d,u)}var v=x.prototype;v._createPolyline=function(f,d,u){var o=f.getItemLayout(d),i=new y.Polyline({shape:{points:o}});this.add(i),this._updateCommonStl(f,d,u)},v.updateData=function(f,d,u){var o=f.hostModel,i=this.childAt(0),t={shape:{points:f.getItemLayout(d)}};y.updateProps(i,t,o,d),this._updateCommonStl(f,d,u)},v._updateCommonStl=function(f,d,u){var o=this.childAt(0),i=f.getItemModel(d),t=f.getItemVisual(d,"color"),s=u&&u.lineStyle,e=u&&u.hoverLineStyle;(!u||f.hasItemOption)&&(s=i.getModel("lineStyle").getLineStyle(),e=i.getModel("emphasis.lineStyle").getLineStyle()),o.useStyle(p.defaults({strokeNoScale:!0,fill:"none",stroke:t},s)),o.hoverStyle=e,y.setHoverStyle(this)},v.updateLayout=function(f,d){var u=this.childAt(0);u.setShape("points",f.getItemLayout(d))},p.inherits(x,y.Group);var m=x;k.exports=m},RXMa:function(k,D,n){var y=n("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,u=Math.PI*2;v.moveTo(f+m.r,d),v.arc(f,d,m.r,0,u,!1),v.moveTo(f+m.r0,d),v.arc(f,d,m.r0,0,u,!0)}});k.exports=p},RZPm:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("JgUQ")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="FileOutlined";var i=v.forwardRef(o);D.default=i},RlCK:function(k,D,n){var y=n("ProS"),p=n("bYtY");function x(v,m,f){var d={},u=v==="toggleSelected",o;return f.eachComponent("legend",function(i){u&&o!=null?i[o?"select":"unSelect"](m.name):v==="allSelect"||v==="inverseSelect"?i[v]():(i[v](m.name),o=i.isSelected(m.name));var t=i.getData();p.each(t,function(s){var e=s.get("name");if(e===`
`||e==="")return;var l=i.isSelected(e);d.hasOwnProperty(e)?d[e]=d[e]&&l:d[e]=l})}),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(k,D,n){k.exports=n("LSTS")},Rx6q:function(k,D){function n(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)}}}}k.exports=n},"S/Yl":function(k,D,n){var y=n("Zvw2"),p=n("aX7z"),x=n("+TT/"),v=x.getLayoutRect,m=n("bYtY"),f=m.each;function d(o,i,t){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(o,i,t),this.model=o}d.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:d,_init:function(o,i,t){var s=this.dimension,e=new y(s,p.createScaleByModel(o),[0,0],o.get("type"),o.get("position")),l=e.type==="category";e.onBand=l&&o.get("boundaryGap"),e.inverse=o.get("inverse"),e.orient=o.get("orient"),o.axis=e,e.model=o,e.coordinateSystem=this,this._axis=e},update:function(o,i){o.eachSeries(function(t){if(t.coordinateSystem===this){var s=t.getData();f(s.mapDimension(this.dimension,!0),function(e){this._axis.scale.unionExtentFromData(s,e)},this),p.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(o,i){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:i.getWidth(),height:i.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var o=this._rect,i=this._axis,t=i.isHorizontal(),s=t?[0,o.width]:[0,o.height],e=i.reverse?1:0;i.setExtent(s[e],s[1-e]),this._updateAxisTransform(i,t?o.x:o.y)},_updateAxisTransform:function(o,i){var t=o.getExtent(),s=t[0]+t[1],e=o.isHorizontal();o.toGlobalCoord=e?function(l){return l+i}:function(l){return s-l+i},o.toLocalCoord=e?function(l){return l-i}:function(l){return s-l+i}},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 i=this.getRect(),t=this.getAxis(),s=t.orient;return s==="horizontal"?t.contain(t.toLocalCoord(o[0]))&&o[1]>=i.y&&o[1]<=i.y+i.height:t.contain(t.toLocalCoord(o[1]))&&o[0]>=i.y&&o[0]<=i.y+i.height},pointToData:function(o){var i=this.getAxis();return[i.coordToData(i.toLocalCoord(o[i.orient==="horizontal"?0:1]))]},dataToPoint:function(o){var i=this.getAxis(),t=this.getRect(),s=[],e=i.orient==="horizontal"?0:1;return o instanceof Array&&(o=o[0]),s[e]=i.toGlobalCoord(i.dataToCoord(+o)),s[1-e]=e===0?t.y+t.height/2:t.x+t.width/2,s}};var u=d;k.exports=u},S6kV:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("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,u=d.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),d.encryptBlock(i,0);for(var t=0;t<u;t++)m[f+t]^=i[t]}});return p.Decryptor=x,p}(),y.mode.OFB})},"SA+Z":function(k,D,n){var y=n("wTVA"),p=n("EbDI"),x=n("ZhPi"),v=n("wkBT");function m(f){return y(f)||p(f)||x(f)||v()}k.exports=m,k.exports.__esModule=!0,k.exports.default=k.exports},"SA4+":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),v=n("IwbS"),m=n("zYTA"),f=n("bYtY");function d(t,s,e){var l=t[1]-t[0];s=f.map(s,function(c){return{interval:[(c.interval[0]-t[0])/l,(c.interval[1]-t[0])/l]}});var r=s.length,a=0;return function(c){for(var h=a;h<r;h++){var g=s[h].interval;if(g[0]<=c&&c<=g[1]){a=h;break}}if(h===r)for(var h=a-1;h>=0;h--){var g=s[h].interval;if(g[0]<=c&&c<=g[1]){a=h;break}}return h>=0&&h<r&&e[h]}}function u(t,s){var e=t[1]-t[0];return s=[(s[0]-t[0])/e,(s[1]-t[0])/e],function(l){return l>=s[0]&&l<=s[1]}}function o(t){var s=t.dimensions;return s[0]==="lng"&&s[1]==="lat"}var i=x.extendChartView({type:"heatmap",render:function(t,s,e){var l;s.eachComponent("visualMap",function(a){a.eachTargetSeries(function(c){c===t&&(l=a)})}),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,l,e)},incrementalPrepareRender:function(t,s,e){this.group.removeAll()},incrementalRender:function(t,s,e,l){var r=s.coordinateSystem;r&&this._renderOnCartesianAndCalendar(s,l,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,s,e,l,r){var a=t.coordinateSystem,c,h;if(a.type==="cartesian2d"){var g=a.getAxis("x"),A=a.getAxis("y");c=g.getBandWidth(),h=A.getBandWidth()}for(var b=this.group,S=t.getData(),E="itemStyle",C="emphasis.itemStyle",_="label",T="emphasis.label",w=t.getModel(E).getItemStyle(["color"]),O=t.getModel(C).getItemStyle(),I=t.getModel(_),R=t.getModel(T),M=a.type,B=M==="cartesian2d"?[S.mapDimension("x"),S.mapDimension("y"),S.mapDimension("value")]:[S.mapDimension("time"),S.mapDimension("value")],P=e;P<l;P++){var X;if(M==="cartesian2d"){if(isNaN(S.get(B[2],P)))continue;var F=a.dataToPoint([S.get(B[0],P),S.get(B[1],P)]);X=new v.Rect({shape:{x:Math.floor(Math.round(F[0])-c/2),y:Math.floor(Math.round(F[1])-h/2),width:Math.ceil(c),height:Math.ceil(h)},style:{fill:S.getItemVisual(P,"color"),opacity:S.getItemVisual(P,"opacity")}})}else{if(isNaN(S.get(B[1],P)))continue;X=new v.Rect({z2:1,shape:a.dataToRect([S.get(B[0],P)]).contentShape,style:{fill:S.getItemVisual(P,"color"),opacity:S.getItemVisual(P,"opacity")}})}var j=S.getItemModel(P);S.hasItemOption&&(w=j.getModel(E).getItemStyle(["color"]),O=j.getModel(C).getItemStyle(),I=j.getModel(_),R=j.getModel(T));var K=t.getRawValue(P),z="-";K&&K[2]!=null&&(z=K[2]),v.setLabelStyle(w,O,I,R,{labelFetcher:t,labelDataIndex:P,defaultText:z,isRectText:!0}),X.setStyle(w),v.setHoverStyle(X,S.hasItemOption?O:f.extend({},O)),X.incremental=r,r&&(X.useHoverLayer=!0),b.add(X),S.setItemGraphicEl(P,X)}},_renderOnGeo:function(t,s,e,l){var r=e.targetVisuals.inRange,a=e.targetVisuals.outOfRange,c=s.getData(),h=this._hmLayer||this._hmLayer||new m;h.blurSize=s.get("blurSize"),h.pointSize=s.get("pointSize"),h.minOpacity=s.get("minOpacity"),h.maxOpacity=s.get("maxOpacity");var g=t.getViewRect().clone(),A=t.getRoamTransform();g.applyTransform(A);var b=Math.max(g.x,0),S=Math.max(g.y,0),E=Math.min(g.width+g.x,l.getWidth()),C=Math.min(g.height+g.y,l.getHeight()),_=E-b,T=C-S,w=[c.mapDimension("lng"),c.mapDimension("lat"),c.mapDimension("value")],O=c.mapArray(w,function(B,P,X){var F=t.dataToPoint([B,P]);return F[0]-=b,F[1]-=S,F.push(X),F}),I=e.getExtent(),R=e.type==="visualMap.continuous"?u(I,e.option.range):d(I,e.getPieceList(),e.option.selected);h.update(O,_,T,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:a.color.getColorMapper()},R);var M=new v.Image({style:{width:_,height:T,x:b,y:S,image:h.canvas},silent:!0});this.group.add(M)},dispose:function(){}});k.exports=i},SA8n:function(k,D,n){var y=n("Sj9i"),p=n("QBsz"),x=n("U/Mo"),v=x.getSymbolSize,m=[],f=[],d=[],u=y.quadraticAt,o=p.distSquare,i=Math.abs;function t(e,l,r){for(var a=e[0],c=e[1],h=e[2],g=Infinity,A,b=r*r,S=.1,E=.1;E<=.9;E+=.1){m[0]=u(a[0],c[0],h[0],E),m[1]=u(a[1],c[1],h[1],E);var C=i(o(m,l)-b);C<g&&(g=C,A=E)}for(var _=0;_<32;_++){var T=A+S;f[0]=u(a[0],c[0],h[0],A),f[1]=u(a[1],c[1],h[1],A),d[0]=u(a[0],c[0],h[0],T),d[1]=u(a[1],c[1],h[1],T);var C=o(f,l)-b;if(i(C)<.01)break;var w=o(d,l)-b;S/=2,C<0?w>=0?A=A+S:A=A-S:w>=0?A=A-S:A=A+S}return A}function s(e,l){var r=[],a=y.quadraticSubdivide,c=[[],[],[]],h=[[],[]],g=[];l/=2,e.eachEdge(function(A,b){var S=A.getLayout(),E=A.getVisual("fromSymbol"),C=A.getVisual("toSymbol");S.__original||(S.__original=[p.clone(S[0]),p.clone(S[1])],S[2]&&S.__original.push(p.clone(S[2])));var _=S.__original;if(S[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),w=t(c,_[0],T*l);a(c[0][0],c[1][0],c[2][0],w,r),c[0][0]=r[3],c[1][0]=r[4],a(c[0][1],c[1][1],c[2][1],w,r),c[0][1]=r[3],c[1][1]=r[4]}if(C&&C!=="none"){var T=v(A.node2),w=t(c,_[1],T*l);a(c[0][0],c[1][0],c[2][0],w,r),c[1][0]=r[1],c[2][0]=r[2],a(c[0][1],c[1][1],c[2][1],w,r),c[1][1]=r[1],c[2][1]=r[2]}p.copy(S[0],c[0]),p.copy(S[1],c[2]),p.copy(S[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*l)}if(C&&C!=="none"){var T=v(A.node2);p.scaleAndAdd(h[1],h[1],g,-T*l)}p.copy(S[0],h[0]),p.copy(S[1],h[1])}})}k.exports=s},SJMd:function(k,D){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var n,y,p,x=!1,v,m;window.PR_SHOULD_USE_CONTINUATION=!0;var f,d;(function(){var u=window,o=["break,continue,do,else,for,if,return,while"],i=[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=[i,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],s=[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"],l=[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",a=[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=[s,l,e,a,c,h,g,A],S=/^(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",w="lit",O="pun",I="pln",R="tag",M="dec",B="src",P="atn",X="atv",F="nocode",j="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function K(he){for(var J=0,Y=!1,$=!1,de=0,be=he.length;de<be;++de){var Ce=he[de];if(Ce.ignoreCase)$=!0;else if(/[a-z]/i.test(Ce.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Y=!0,$=!1;break}}var Be={b:8,t:9,n:10,v:11,f:12,r:13};function fe(ht){var He=ht.charCodeAt(0);if(He!==92)return He;var ir=ht.charAt(1);return He=Be[ir],He||("0"<=ir&&ir<="7"?parseInt(ht.substring(1),8):ir==="u"||ir==="x"?parseInt(ht.substring(2),16):ht.charCodeAt(1))}function Se(ht){if(ht<32)return(ht<16?"\\x0":"\\x")+ht.toString(16);var He=String.fromCharCode(ht);return He==="\\"||He==="-"||He==="]"||He==="^"?"\\"+He:He}function ke(ht){var He=ht.substring(1,ht.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")),ir=[],ct=He[0]==="^",Xt=["["];ct&&Xt.push("^");for(var hr=ct?1:0,Jt=He.length;hr<Jt;++hr){var Pt=He[hr];if(/\\[bdsw]/i.test(Pt))Xt.push(Pt);else{var Wt=fe(Pt),Ge;hr+2<Jt&&He[hr+1]==="-"?(Ge=fe(He[hr+2]),hr+=2):Ge=Wt,ir.push([Wt,Ge]),Ge<65||Wt>122||(Ge<65||Wt>90||ir.push([Math.max(65,Wt)|32,Math.min(Ge,90)|32]),Ge<97||Wt>122||ir.push([Math.max(97,Wt)&~32,Math.min(Ge,122)&~32]))}}ir.sort(function(qe,me){return qe[0]-me[0]||me[1]-qe[1]});for(var pe=[],se=[],hr=0;hr<ir.length;++hr){var lt=ir[hr];lt[0]<=se[1]+1?se[1]=Math.max(se[1],lt[1]):pe.push(se=lt)}for(var hr=0;hr<pe.length;++hr){var lt=pe[hr];Xt.push(Se(lt[0])),lt[1]>lt[0]&&(lt[1]+1>lt[0]&&Xt.push("-"),Xt.push(Se(lt[1])))}return Xt.push("]"),Xt.join("")}function rt(ht){for(var He=ht.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")),ir=He.length,ct=[],Xt=0,hr=0;Xt<ir;++Xt){var Jt=He[Xt];if(Jt==="(")++hr;else if(Jt.charAt(0)==="\\"){var Pt=+Jt.substring(1);Pt&&(Pt<=hr?ct[Pt]=-1:He[Xt]=Se(Pt))}}for(var Xt=1;Xt<ct.length;++Xt)ct[Xt]===-1&&(ct[Xt]=++J);for(var Xt=0,hr=0;Xt<ir;++Xt){var Jt=He[Xt];if(Jt==="(")++hr,ct[hr]||(He[Xt]="(?:");else if(Jt.charAt(0)==="\\"){var Pt=+Jt.substring(1);Pt&&Pt<=hr&&(He[Xt]="\\"+ct[Pt])}}for(var Xt=0;Xt<ir;++Xt)He[Xt]==="^"&&He[Xt+1]!=="^"&&(He[Xt]="");if(ht.ignoreCase&&Y)for(var Xt=0;Xt<ir;++Xt){var Jt=He[Xt],Wt=Jt.charAt(0);Jt.length>=2&&Wt==="["?He[Xt]=ke(Jt):Wt!=="\\"&&(He[Xt]=Jt.replace(/[a-zA-Z]/g,function(se){var lt=se.charCodeAt(0);return"["+String.fromCharCode(lt&~32,lt|32)+"]"}))}return He.join("")}for(var xt=[],de=0,be=he.length;de<be;++de){var Ce=he[de];if(Ce.global||Ce.multiline)throw new Error(""+Ce);xt.push("(?:"+rt(Ce)+")")}return new RegExp(xt.join("|"),$?"gi":"g")}function z(he,J){var Y=/(?:^|\s)nocode(?:\s|$)/,$=[],de=0,be=[],Ce=0;function Be(fe){var Se=fe.nodeType;if(Se==1){if(Y.test(fe.className))return;for(var ke=fe.firstChild;ke;ke=ke.nextSibling)Be(ke);var rt=fe.nodeName.toLowerCase();(rt==="br"||rt==="li")&&($[Ce]=`
`,be[Ce<<1]=de++,be[Ce++<<1|1]=fe)}else if(Se==3||Se==4){var xt=fe.nodeValue;xt.length&&(J?xt=xt.replace(/\r\n?/g,`
`):xt=xt.replace(/[ \t\r\n]+/g," "),$[Ce]=xt,be[Ce<<1]=de,de+=xt.length,be[Ce++<<1|1]=fe)}}return Be(he),{sourceCode:$.join("").replace(/\n$/,""),spans:be}}function V(he,J,Y,$,de){if(!Y)return;var be={sourceNode:he,pre:1,langExtension:null,numberLines:null,sourceCode:Y,spans:null,basePos:J,decorations:null};$(be),de.push.apply(de,be.decorations)}var Q=/\S/;function G(he){for(var J=void 0,Y=he.firstChild;Y;Y=Y.nextSibling){var $=Y.nodeType;J=$===1?J?he:Y:$===3&&Q.test(Y.nodeValue)?he:J}return J===he?void 0:J}function te(he,J){var Y={},$;(function(){for(var Ce=he.concat(J),Be=[],fe={},Se=0,ke=Ce.length;Se<ke;++Se){var rt=Ce[Se],xt=rt[3];if(xt)for(var ht=xt.length;--ht>=0;)Y[xt.charAt(ht)]=rt;var He=rt[1],ir=""+He;fe.hasOwnProperty(ir)||(Be.push(He),fe[ir]=null)}Be.push(/[\0-\uffff]/),$=K(Be)})();var de=J.length,be=function Ce(Be){for(var fe=Be.sourceCode,Se=Be.basePos,ke=Be.sourceNode,rt=[Se,I],xt=0,ht=fe.match($)||[],He={},ir=0,ct=ht.length;ir<ct;++ir){var Xt=ht[ir],hr=He[Xt],Jt=void 0,Pt;if(typeof hr=="string")Pt=!1;else{var Wt=Y[Xt.charAt(0)];if(Wt)Jt=Xt.match(Wt[1]),hr=Wt[0];else{for(var Ge=0;Ge<de;++Ge)if(Wt=J[Ge],Jt=Xt.match(Wt[1]),Jt){hr=Wt[0];break}Jt||(hr=I)}Pt=hr.length>=5&&hr.substring(0,5)==="lang-",Pt&&!(Jt&&typeof Jt[1]=="string")&&(Pt=!1,hr=B),Pt||(He[Xt]=hr)}var pe=xt;if(xt+=Xt.length,!Pt)rt.push(Se+pe,hr);else{var se=Jt[1],lt=Xt.indexOf(se),qe=lt+se.length;Jt[2]&&(qe=Xt.length-Jt[2].length,lt=qe-se.length);var me=hr.substring(5);V(ke,Se+pe,Xt.substring(0,lt),Ce,rt),V(ke,Se+pe+lt,se,Je(me,se),rt),V(ke,Se+pe+qe,Xt.substring(qe),Ce,rt)}}Be.decorations=rt};return be}function q(he){var J=[],Y=[];he.tripleQuotedStrings?J.push([E,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):he.multiLineStrings?J.push([E,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):J.push([E,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),he.verbatimStrings&&Y.push([E,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var $=he.hashComments;$&&(he.cStyleComments?($>1?J.push([_,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):J.push([_,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Y.push([E,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):J.push([_,/^#[^\r\n]*/,null,"#"])),he.cStyleComments&&(Y.push([_,/^\/\/[^\r\n]*/,null]),Y.push([_,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var de=he.regexLiterals;if(de){var be=de>1?"":`
\r`,Ce=be?".":"[\\S\\s]",Be="/(?=[^/*"+be+"])(?:[^/\\x5B\\x5C"+be+"]|\\x5C"+Ce+"|\\x5B(?:[^\\x5C\\x5D"+be+"]|\\x5C"+Ce+")*(?:\\x5D|$))+/";Y.push(["lang-regex",RegExp("^"+j+"("+Be+")")])}var fe=he.types;fe&&Y.push([T,fe]);var Se=(""+he.keywords).replace(/^ | $/g,"");Se.length&&Y.push([C,new RegExp("^(?:"+Se.replace(/[\s,]+/g,"|")+")\\b"),null]),J.push([I,/^\s+/,null,` \r
\xA0`]);var ke="^.[^\\s\\w.$@'\"`/\\\\]*";return he.regexLiterals&&(ke+="(?!s*/)"),Y.push([w,/^@[a-z_$][a-z_$@0-9]*/i,null],[T,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[I,/^[a-z_$][a-z_$@0-9]*/i,null],[w,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[I,/^\\[\s\S]?/,null],[O,new RegExp(ke),null]),te(J,Y)}var le=q({keywords:b,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function re(he,J,Y){for(var $=/(?:^|\s)nocode(?:\s|$)/,de=/\r\n?|\n/,be=he.ownerDocument,Ce=be.createElement("li");he.firstChild;)Ce.appendChild(he.firstChild);var Be=[Ce];function fe(He){var ir=He.nodeType;if(ir==1&&!$.test(He.className))if(He.nodeName==="br")Se(He),He.parentNode&&He.parentNode.removeChild(He);else for(var ct=He.firstChild;ct;ct=ct.nextSibling)fe(ct);else if((ir==3||ir==4)&&Y){var Xt=He.nodeValue,hr=Xt.match(de);if(hr){var Jt=Xt.substring(0,hr.index);He.nodeValue=Jt;var Pt=Xt.substring(hr.index+hr[0].length);if(Pt){var Wt=He.parentNode;Wt.insertBefore(be.createTextNode(Pt),He.nextSibling)}Se(He),Jt||He.parentNode.removeChild(He)}}}function Se(He){for(;!He.nextSibling;)if(He=He.parentNode,!He)return;function ir(hr,Jt){var Pt=Jt?hr.cloneNode(!1):hr,Wt=hr.parentNode;if(Wt){var Ge=ir(Wt,1),pe=hr.nextSibling;Ge.appendChild(Pt);for(var se=pe;se;se=pe)pe=se.nextSibling,Ge.appendChild(se)}return Pt}for(var ct=ir(He.nextSibling,0),Xt;(Xt=ct.parentNode)&&Xt.nodeType===1;)ct=Xt;Be.push(ct)}for(var ke=0;ke<Be.length;++ke)fe(Be[ke]);J===(J|0)&&Be[0].setAttribute("value",J);var rt=be.createElement("ol");rt.className="linenums";for(var xt=Math.max(0,J-1|0)||0,ke=0,ht=Be.length;ke<ht;++ke)Ce=Be[ke],Ce.className="L"+(ke+xt)%10,Ce.firstChild||Ce.appendChild(be.createTextNode("\xA0")),rt.appendChild(Ce);he.appendChild(rt)}function we(he){var J=/\bMSIE\s(\d+)/.exec(navigator.userAgent);J=J&&+J[1]<=8;var Y=/\n/g,$=he.sourceCode,de=$.length,be=0,Ce=he.spans,Be=Ce.length,fe=0,Se=he.decorations,ke=Se.length,rt=0;Se[ke]=de;var xt,ht;for(ht=xt=0;ht<ke;)Se[ht]!==Se[ht+2]?(Se[xt++]=Se[ht++],Se[xt++]=Se[ht++]):ht+=2;for(ke=xt,ht=xt=0;ht<ke;){for(var He=Se[ht],ir=Se[ht+1],ct=ht+2;ct+2<=ke&&Se[ct+1]===ir;)ct+=2;Se[xt++]=He,Se[xt++]=ir,ht=ct}ke=Se.length=xt;var Xt=he.sourceNode,hr="";Xt&&(hr=Xt.style.display,Xt.style.display="none");try{for(var Jt=null;fe<Be;){var Pt=Ce[fe],Wt=Ce[fe+2]||de,Ge=Se[rt+2]||de,ct=Math.min(Wt,Ge),pe=Ce[fe+1],se;if(pe.nodeType!==1&&(se=$.substring(be,ct))){J&&(se=se.replace(Y,"\r")),pe.nodeValue=se;var lt=pe.ownerDocument,qe=lt.createElement("span");qe.className=Se[rt+1];var me=pe.parentNode;me.replaceChild(qe,pe),qe.appendChild(pe),be<Wt&&(Ce[fe+1]=pe=lt.createTextNode($.substring(ct,Wt)),me.insertBefore(pe,qe.nextSibling))}be=ct,be>=Wt&&(fe+=2),be>=Ge&&(rt+=2)}}finally{Xt&&(Xt.style.display=hr)}}var Ie={};function Me(he,J){for(var Y=J.length;--Y>=0;){var $=J[Y];Ie.hasOwnProperty($)?u.console&&console.warn("cannot override language handler %s",$):Ie[$]=he}}function Je(he,J){return he&&Ie.hasOwnProperty(he)||(he=/^\s*</.test(J)?"default-markup":"default-code"),Ie[he]}Me(le,["default-code"]),Me(te([],[[I,/^[^<?]+/],[M,/^<!\w[^>]*(?:>|$)/],[_,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[O,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Me(te([[I,/^[\s]+/,null,` \r
`],[X,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[R,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[O,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),Me(te([],[[X,/^[\s\S]+/]]),["uq.val"]),Me(q({keywords:s,hashComments:!0,cStyleComments:!0,types:S}),["c","cc","cpp","cxx","cyc","m"]),Me(q({keywords:"null,true,false"}),["json"]),Me(q({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:S}),["cs"]),Me(q({keywords:e,cStyleComments:!0}),["java"]),Me(q({keywords:A,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Me(q({keywords:h,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Me(q({keywords:c,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Me(q({keywords:g,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Me(q({keywords:a,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Me(q({keywords:r,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Me(te([],[[E,/^[\s\S]+/]]),["regex"]);function Ve(he){var J=he.langExtension;try{var Y=z(he.sourceNode,he.pre),$=Y.sourceCode;he.sourceCode=$,he.spans=Y.spans,he.basePos=0,Je(J,$)(he),we(he)}catch(de){u.console&&console.log(de&&de.stack||de)}}function ut(he,J,Y){var $=Y||!1,de=J||null,be=document.createElement("div");be.innerHTML="<pre>"+he+"</pre>",be=be.firstChild,$&&re(be,$,!0);var Ce={langExtension:de,numberLines:$,sourceNode:be,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Ve(Ce),be.innerHTML}function Fe(he,J){var Y=J||document.body,$=Y.ownerDocument||document;function de(Pt){return Y.getElementsByTagName(Pt)}for(var be=[de("pre"),de("code"),de("xmp")],Ce=[],Be=0;Be<be.length;++Be)for(var fe=0,Se=be[Be].length;fe<Se;++fe)Ce.push(be[Be][fe]);be=null;var ke=Date;ke.now||(ke={now:function(){return+new Date}});var rt=0,xt=/\blang(?:uage)?-([\w.]+)(?!\S)/,ht=/\bprettyprint\b/,He=/\bprettyprinted\b/,ir=/pre|xmp/i,ct=/^code$/i,Xt=/^(?:pre|code|xmp)$/i,hr={};function Jt(){for(var Pt=u.PR_SHOULD_USE_CONTINUATION?ke.now()+250:Infinity;rt<Ce.length&&ke.now()<Pt;rt++){for(var Wt=Ce[rt],Ge=hr,pe=Wt;pe=pe.previousSibling;){var se=pe.nodeType,lt=(se===7||se===8)&&pe.nodeValue;if(lt?!/^\??prettify\b/.test(lt):se!==3||/\S/.test(pe.nodeValue))break;if(lt){Ge={},lt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(it,Fr,cn){Ge[Fr]=cn});break}}var qe=Wt.className;if((Ge!==hr||ht.test(qe))&&!He.test(qe)){for(var me=!1,Ht=Wt.parentNode;Ht;Ht=Ht.parentNode){var yr=Ht.tagName;if(Xt.test(yr)&&Ht.className&&ht.test(Ht.className)){me=!0;break}}if(!me){Wt.className+=" prettyprinted";var At=Ge.lang;if(!At){At=qe.match(xt);var rr;!At&&(rr=G(Wt))&&ct.test(rr.tagName)&&(At=rr.className.match(xt)),At&&(At=At[1])}var ur;if(ir.test(Wt.tagName))ur=1;else{var vn=Wt.currentStyle,Bt=$.defaultView,sr=vn?vn.whiteSpace:Bt&&Bt.getComputedStyle?Bt.getComputedStyle(Wt,null).getPropertyValue("white-space"):0;ur=sr&&sr.substring(0,3)==="pre"}var Yt=Ge.linenums;(Yt=Yt==="true"||+Yt)||(Yt=qe.match(/\blinenums\b(?::(\d+))?/),Yt=Yt?Yt[1]&&Yt[1].length?+Yt[1]:!0:!1),Yt&&re(Wt,Yt,ur);var pt={langExtension:At,sourceNode:Wt,numberLines:Yt,pre:ur,sourceCode:null,basePos:null,spans:null,decorations:null};Ve(pt)}}}rt<Ce.length?u.setTimeout(Jt,250):typeof he=="function"&&he()}Jt()}var ae=u.PR={createSimpleLexer:te,registerLangHandler:Me,sourceDecorator:q,PR_ATTRIB_NAME:P,PR_ATTRIB_VALUE:X,PR_COMMENT:_,PR_DECLARATION:M,PR_KEYWORD:C,PR_LITERAL:w,PR_NOCODE:F,PR_PLAIN:I,PR_PUNCTUATION:O,PR_SOURCE:B,PR_STRING:E,PR_TAG:R,PR_TYPE:T,prettyPrintOne:x?u.prettyPrintOne=ut:f=ut,prettyPrint:d=x?u.prettyPrint=Fe:d=Fe},at=u.define;typeof at=="function"&&at.amd&&at("google-code-prettify",[],function(){return ae})})()},SKnc:function(k,D,n){var y=n("bYtY"),p=n("QuXc"),x=function(f,d,u,o,i,t){this.x=f==null?0:f,this.y=d==null?0:d,this.x2=u==null?1:u,this.y2=o==null?0:o,this.type="linear",this.global=t||!1,p.call(this,i)};x.prototype={constructor:x},y.inherits(x,p);var v=x;k.exports=v},"SKx+":function(k,D,n){var y=n("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;k.exports=x},SMc4:function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("nkfE"),v=n("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,i){return i.type||(i.data?"category":"value")}y.merge(m.prototype,v);var d={offset:0};x("x",m,f,d),x("y",m,f,d);var u=m;k.exports=u},SRve:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};D.default=y},SUKs:function(k,D,n){var y=n("LPTA"),p=y.debugMode,x=function(){};p===1&&(x=console.error);var v=x;k.exports=v},SZEN:function(k,D,n){"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(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),v=n.n(x),m=n("q1tI"),f=n("rePB"),d=n("ODXe"),u=n("Ff2n"),o=n("TSYQ"),i=n.n(o),t=n("6cGi"),s=n("4IlW"),e=m.forwardRef(function(C,_){var T,w=C.prefixCls,O=w===void 0?"rc-switch":w,I=C.className,R=C.checked,M=C.defaultChecked,B=C.disabled,P=C.loadingIcon,X=C.checkedChildren,F=C.unCheckedChildren,j=C.onClick,K=C.onChange,z=C.onKeyDown,V=Object(u.a)(C,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),Q=Object(t.a)(!1,{value:R,defaultValue:M}),G=Object(d.a)(Q,2),te=G[0],q=G[1];function le(Me,Je){var Ve=te;return B||(Ve=Me,q(Ve),K==null||K(Ve,Je)),Ve}function re(Me){Me.which===s.a.LEFT?le(!1,Me):Me.which===s.a.RIGHT&&le(!0,Me),z==null||z(Me)}function we(Me){var Je=le(!te,Me);j==null||j(Je,Me)}var Ie=i()(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:Ie,ref:_,onKeyDown:re,onClick:we}),P,m.createElement("span",{className:"".concat(O,"-inner")},te?X:F))});e.displayName="Switch";var l=e,r=n("gZBC"),a=n.n(r),c=n("g0mS"),h=n("H84U"),g=n("3Nzz"),A=n("uaoM"),b=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T},S=m.forwardRef(function(C,_){var T,w=C.prefixCls,O=C.size,I=C.loading,R=C.className,M=R===void 0?"":R,B=C.disabled,P=b(C,["prefixCls","size","loading","className","disabled"]);Object(A.a)("checked"in P||!("value"in P),"Switch","`value` is not a valid prop, do you mean `checked`?");var X=m.useContext(h.b),F=X.getPrefixCls,j=X.direction,K=m.useContext(g.b),z=F("switch",w),V=m.createElement("div",{className:"".concat(z,"-handle")},I&&m.createElement(a.a,{className:"".concat(z,"-loading-icon")})),Q=i()(M,(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(l,p()({},P,{prefixCls:z,className:Q,disabled:B||I,ref:_,loadingIcon:V})))});S.__ANT_SWITCH=!0,S.displayName="Switch";var E=D.a=S},SehX:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("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(u){var o=u.coordinateSystem;if(o.type!=="geo")return;var i=v(o,m,u.get("scaleLimit"));u.setCenter&&u.setCenter(i.center),u.setZoom&&u.setZoom(i.zoom),d==="series"&&p.each(u.seriesGroup,function(t){t.setCenter(i.center),t.setZoom(i.zoom)})})})},SfRM:function(k,D,n){var y=n("YESw");function p(){this.__data__=y?y(null):{},this.size=0}k.exports=p},SgGq:function(k,D,n){var y=n("bYtY"),p=n("H6uX"),x=n("YH21"),v=n("pP6R");function m(r){this.pointerChecker,this._zr=r,this._opt={};var a=y.bind,c=a(f,this),h=a(d,this),g=a(u,this),A=a(o,this),b=a(i,this);p.call(this),this.setPointerChecker=function(S){this.pointerChecker=S},this.enable=function(S,E){this.disable(),this._opt=y.defaults(y.clone(E)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),S==null&&(S=!0),(S===!0||S==="move"||S==="pan")&&(r.on("mousedown",c),r.on("mousemove",h),r.on("mouseup",g)),(S===!0||S==="scale"||S==="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 a=r.offsetX,c=r.offsetY;this.pointerChecker&&this.pointerChecker(r,a,c)&&(this._x=a,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 a=r.offsetX,c=r.offsetY,h=this._x,g=this._y,A=a-h,b=c-g;this._x=a,this._y=c,this._opt.preventDefaultMouseMove&&x.stop(r.event),s(this,"pan","moveOnMouseMove",r,{dx:A,dy:b,oldX:h,oldY:g,newX:a,newY:c})}function u(r){x.isMiddleOrRightButtonOnMouseUpDown(r)||(this._dragging=!1)}function o(r){var a=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||!a&&!c)return;if(a){var S=g>3?1.4:g>1?1.2:1.1,E=h>0?S:1/S;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 i(r){if(v.isTaken(this._zr,"globalPan"))return;var a=r.pinchScale>1?1.1:1/1.1;t(this,"zoom",null,r,{scale:a,originX:r.pinchX,originY:r.pinchY})}function t(r,a,c,h,g){r.pointerChecker&&r.pointerChecker(h,g.originX,g.originY)&&(x.stop(h.event),s(r,a,c,h,g))}function s(r,a,c,h,g){g.isAvailableBehavior=y.bind(e,null,c,h),r.trigger(a,g)}function e(r,a,c){var h=c[r];return!r||h&&(!y.isString(h)||a.event[h+"Key"])}var l=m;k.exports=l},SgaC:function(k,D,n){"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 u=f[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}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,u,o,i,t,s,e){if(this._subrects===0){if(t.rQwait("RRE",4+4))return!1;this._subrects=t.rQshift32();var l=t.rQshiftBytes(4);s.fillRect(d,u,o,i,l)}for(;this._subrects>0;){if(t.rQwait("RRE",4+8))return!1;var r=t.rQshiftBytes(4),a=t.rQshift16(),c=t.rQshift16(),h=t.rQshift16(),g=t.rQshift16();s.fillRect(d+a,u+c,h,g,r),this._subrects--}return!0}}]),m}();D.default=v},Sj0X:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("XuBP")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="DownOutlined";var i=v.forwardRef(o);D.default=i},Sj9i:function(k,D,n){var y=n("QBsz"),p=y.create,x=y.distSquare,v=Math.pow,m=Math.sqrt,f=1e-8,d=1e-4,u=m(3),o=1/3,i=p(),t=p(),s=p();function e(w){return w>-f&&w<f}function l(w){return w>f||w<-f}function r(w,O,I,R,M){var B=1-M;return B*B*(B*w+3*M*O)+M*M*(M*R+3*B*I)}function a(w,O,I,R,M){var B=1-M;return 3*(((O-w)*B+2*(I-O)*M)*B+(R-I)*M*M)}function c(w,O,I,R,M,B){var P=R+3*(O-I)-w,X=3*(I-O*2+w),F=3*(O-w),j=w-M,K=X*X-3*P*F,z=X*F-9*P*j,V=F*F-3*X*j,Q=0;if(e(K)&&e(z))if(e(X))B[0]=0;else{var G=-F/X;G>=0&&G<=1&&(B[Q++]=G)}else{var te=z*z-4*K*V;if(e(te)){var q=z/K,G=-X/P+q,le=-q/2;G>=0&&G<=1&&(B[Q++]=G),le>=0&&le<=1&&(B[Q++]=le)}else if(te>0){var re=m(te),we=K*X+1.5*P*(-z+re),Ie=K*X+1.5*P*(-z-re);we<0?we=-v(-we,o):we=v(we,o),Ie<0?Ie=-v(-Ie,o):Ie=v(Ie,o);var G=(-X-(we+Ie))/(3*P);G>=0&&G<=1&&(B[Q++]=G)}else{var Me=(2*K*X-3*P*z)/(2*m(K*K*K)),Je=Math.acos(Me)/3,Ve=m(K),ut=Math.cos(Je),G=(-X-2*Ve*ut)/(3*P),le=(-X+Ve*(ut+u*Math.sin(Je)))/(3*P),Fe=(-X+Ve*(ut-u*Math.sin(Je)))/(3*P);G>=0&&G<=1&&(B[Q++]=G),le>=0&&le<=1&&(B[Q++]=le),Fe>=0&&Fe<=1&&(B[Q++]=Fe)}}return Q}function h(w,O,I,R,M){var B=6*I-12*O+6*w,P=9*O+3*R-3*w-9*I,X=3*O-3*w,F=0;if(e(P)){if(l(B)){var j=-X/B;j>=0&&j<=1&&(M[F++]=j)}}else{var K=B*B-4*P*X;if(e(K))M[0]=-B/(2*P);else if(K>0){var z=m(K),j=(-B+z)/(2*P),V=(-B-z)/(2*P);j>=0&&j<=1&&(M[F++]=j),V>=0&&V<=1&&(M[F++]=V)}}return F}function g(w,O,I,R,M,B){var P=(O-w)*M+w,X=(I-O)*M+O,F=(R-I)*M+I,j=(X-P)*M+P,K=(F-X)*M+X,z=(K-j)*M+j;B[0]=w,B[1]=P,B[2]=j,B[3]=z,B[4]=z,B[5]=K,B[6]=F,B[7]=R}function A(w,O,I,R,M,B,P,X,F,j,K){var z,V=.005,Q=Infinity,G,te,q,le;i[0]=F,i[1]=j;for(var re=0;re<1;re+=.05)t[0]=r(w,I,M,P,re),t[1]=r(O,R,B,X,re),q=x(i,t),q<Q&&(z=re,Q=q);Q=Infinity;for(var we=0;we<32&&!(V<d);we++)G=z-V,te=z+V,t[0]=r(w,I,M,P,G),t[1]=r(O,R,B,X,G),q=x(t,i),G>=0&&q<Q?(z=G,Q=q):(s[0]=r(w,I,M,P,te),s[1]=r(O,R,B,X,te),le=x(s,i),te<=1&&le<Q?(z=te,Q=le):V*=.5);return K&&(K[0]=r(w,I,M,P,z),K[1]=r(O,R,B,X,z)),m(Q)}function b(w,O,I,R){var M=1-R;return M*(M*w+2*R*O)+R*R*I}function S(w,O,I,R){return 2*((1-R)*(O-w)+R*(I-O))}function E(w,O,I,R,M){var B=w-2*O+I,P=2*(O-w),X=w-R,F=0;if(e(B)){if(l(P)){var j=-X/P;j>=0&&j<=1&&(M[F++]=j)}}else{var K=P*P-4*B*X;if(e(K)){var j=-P/(2*B);j>=0&&j<=1&&(M[F++]=j)}else if(K>0){var z=m(K),j=(-P+z)/(2*B),V=(-P-z)/(2*B);j>=0&&j<=1&&(M[F++]=j),V>=0&&V<=1&&(M[F++]=V)}}return F}function C(w,O,I){var R=w+I-2*O;return R===0?.5:(w-O)/R}function _(w,O,I,R,M){var B=(O-w)*R+w,P=(I-O)*R+O,X=(P-B)*R+B;M[0]=w,M[1]=B,M[2]=X,M[3]=X,M[4]=P,M[5]=I}function T(w,O,I,R,M,B,P,X,F){var j,K=.005,z=Infinity;i[0]=P,i[1]=X;for(var V=0;V<1;V+=.05){t[0]=b(w,I,M,V),t[1]=b(O,R,B,V);var Q=x(i,t);Q<z&&(j=V,z=Q)}z=Infinity;for(var G=0;G<32&&!(K<d);G++){var te=j-K,q=j+K;t[0]=b(w,I,M,te),t[1]=b(O,R,B,te);var Q=x(t,i);if(te>=0&&Q<z)j=te,z=Q;else{s[0]=b(w,I,M,q),s[1]=b(O,R,B,q);var le=x(s,i);q<=1&&le<z?(j=q,z=le):K*=.5}}return F&&(F[0]=b(w,I,M,j),F[1]=b(O,R,B,j)),m(z)}D.cubicAt=r,D.cubicDerivativeAt=a,D.cubicRootAt=c,D.cubicExtrema=h,D.cubicSubdivide=g,D.cubicProjectPoint=A,D.quadraticAt=b,D.quadraticDerivativeAt=S,D.quadraticRootAt=E,D.quadraticExtremum=C,D.quadraticSubdivide=_,D.quadraticProjectPoint=T},Sp2Z:function(k,D,n){var y=n("3LNs"),p=n("/y7N"),x=n("AVZG"),v=n("Znkb"),m=y.extend({makeElOption:function(i,t,s,e,l){var r=s.axis,a=r.grid,c=e.get("type"),h=f(a,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,i.graphicKey=b.type,i.pointer=b}var S=x.layout(a.model,s);p.buildCartesianSingleLabelElOption(t,i,S,s,e,l)},getHandleTransform:function(i,t,s){var e=x.layout(t.axis.grid.model,t,{labelInside:!1});return e.labelMargin=s.get("handle.margin"),{position:p.getTransformedPosition(t.axis,i,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(i,t,s,e){var l=s.axis,r=l.grid,a=l.getGlobalExtent(!0),c=f(r,l).getOtherAxis(l).getGlobalExtent(),h=l.dim==="x"?0:1,g=i.position;g[h]+=t[h],g[h]=Math.min(a[1],g[h]),g[h]=Math.max(a[0],g[h]);var A=(c[1]+c[0])/2,b=[A,A];b[h]=g[h];var S=[{verticalAlign:"middle"},{align:"center"}];return{position:g,rotation:i.rotation,cursorPoint:b,tooltipOption:S[h]}}});function f(i,t){var s={};return s[t.dim+"AxisIndex"]=t.index,i.getCartesian(s)}var d={line:function(i,t,s){var e=p.makeLineShape([t,s[0]],[t,s[1]],u(i));return{type:"Line",subPixelOptimize:!0,shape:e}},shadow:function(i,t,s){var e=Math.max(1,i.getBandWidth()),l=s[1]-s[0];return{type:"Rect",shape:p.makeRectShape([t-e/2,s[0]],[e,l],u(i))}}};function u(i){return i.dim==="x"?0:1}v.registerAxisPointerClass("CartesianAxisPointer",m);var o=m;k.exports=o},Sq3C:function(k,D,n){var y=n("sKgW"),p=n("zoYe"),x=n("wy8a"),v=n("quyA"),m=n("Z1HP"),f=n("Em2t"),d=Math.ceil;function u(o,i){i=i===void 0?" ":p(i);var t=i.length;if(t<2)return t?y(i,o):i;var s=y(i,d(o/m(i)));return v(i)?x(f(s),0,o).join(""):s.slice(0,o)}k.exports=u},SqI9:function(k,D,n){var y=n("y+Vt"),p=n("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,u=f.cy,o=Math.max(f.r0||0,0),i=Math.max(f.r,0),t=f.startAngle,s=f.endAngle,e=f.clockwise,l=Math.cos(t),r=Math.sin(t);m.moveTo(l*o+d,r*o+u),m.lineTo(l*i+d,r*i+u),m.arc(d,u,i,t,s,!e),m.lineTo(Math.cos(s)*o+d,Math.sin(s)*o+u),o!==0&&m.arc(d,u,o,s,t,e),m.closePath()}});k.exports=x},SrGk:function(k,D,n){var y=n("hydK"),p=y.createElement,x=n("bYtY"),v=n("y+Vt"),m=n("Dagg"),f=n("dqUG"),d=n("P47w"),u=d.path,o=d.image,i=d.text,t="0",s="1";function e(r,a,c,h,g){this._zrId=r,this._svgRoot=a,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 a=this._svgRoot,c=this._svgRoot.getElementsByTagName("defs");return c.length===0?r?(c=a.insertBefore(this.createElement("defs"),a.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,a){if(!r)return;var c=this.getDefs(!1);if(r[this._domName]&&c.contains(r[this._domName]))typeof a=="function"&&a(r);else{var h=this.add(r);h&&(r[this._domName]=h)}},e.prototype.addDom=function(r){var a=this.getDefs(!0);a.appendChild(r)},e.prototype.removeDom=function(r){var a=this.getDefs(!1);a&&r[this._domName]&&(a.removeChild(r[this._domName]),r[this._domName]=null)},e.prototype.getDoms=function(){var r=this.getDefs(!1);if(!r)return[];var a=[];return x.each(this._tagNames,function(c){var h=r.getElementsByTagName(c);a=a.concat([].slice.call(h))}),a},e.prototype.markAllUnused=function(){var r=this.getDoms(),a=this;x.each(r,function(c){c[a._markLabel]=t})},e.prototype.markUsed=function(r){r&&(r[this._markLabel]=s)},e.prototype.removeUnused=function(){var r=this.getDefs(!1);if(!r)return;var a=this.getDoms(),c=this;x.each(a,function(h){h[c._markLabel]!==s&&r.removeChild(h)})},e.prototype.getSvgProxy=function(r){return r instanceof v?u:r instanceof m?o:r instanceof f?i:u},e.prototype.getTextSvgElement=function(r){return r.__textSvgEl},e.prototype.getSvgElement=function(r){return r.__svgEl};var l=e;k.exports=l},Swgg:function(k,D,n){var y=n("fc+c"),p=y.extend({type:"dataZoom.select"});k.exports=p},Sxd8:function(k,D,n){var y=n("ZCgT");function p(x){var v=y(x),m=v%1;return v===v?m?v-m:v:0}k.exports=p},T1rO:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("zdCA"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},T4UG:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),v=n("ItGF"),m=n("7aKB"),f=m.formatTime,d=m.encodeHTML,u=m.addCommas,o=m.getTooltipMarker,i=n("4NO4"),t=n("bLfw"),s=n("5Hur"),e=n("OKJ2"),l=n("+TT/"),r=l.getLayoutParams,a=l.mergeLayoutParam,c=n("9H2F"),h=c.createTask,g=n("D5nY"),A=g.prepareSource,b=g.getSource,S=n("KxfA"),E=S.retrieveRawValue,C=i.makeInner(),_=t.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(F,j,K,z){this.seriesIndex=this.componentIndex,this.dataTask=h({count:O,reset:I}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(F,K),A(this);var V=this.getInitialData(F,K);M(V,this),this.dataTask.context.data=V,C(this).dataBeforeProcessed=V,T(this)},mergeDefaultAndTheme:function(F,j){var K=this.layoutMode,z=K?r(F):{},V=this.subType;t.hasClass(V)&&(V+="Series"),x.merge(F,j.getTheme().get(this.subType)),x.merge(F,this.getDefaultOption()),i.defaultEmphasis(F,"label",["show"]),this.fillDataTextStyle(F.data),K&&a(F,z,K)},mergeOption:function(F,j){F=x.merge(this.option,F,!0),this.fillDataTextStyle(F.data);var K=this.layoutMode;K&&a(this.option,F,K),A(this);var z=this.getInitialData(F,j);M(z,this),this.dataTask.dirty(),this.dataTask.context.data=z,C(this).dataBeforeProcessed=z,T(this)},fillDataTextStyle:function(F){if(F&&!x.isTypedArray(F))for(var j=["show"],K=0;K<F.length;K++)F[K]&&F[K].label&&i.defaultEmphasis(F[K],"label",j)},getInitialData:function(){},appendData:function(F){var j=this.getRawData();j.appendData(F.data)},getData:function(F){var j=P(this);if(j){var K=j.context.data;return F==null?K:K.getLinkedData(F)}else return C(this).data},setData:function(F){var j=P(this);if(j){var K=j.context;K.data!==F&&j.modifyOutputEnd&&j.setOutputEnd(F.count()),K.outputData=F,j!==this.dataTask&&(K.data=F)}C(this).data=F},getSource:function(){return b(this)},getRawData:function(){return C(this).dataBeforeProcessed},getBaseAxis:function(){var F=this.coordinateSystem;return F&&F.getBaseAxis&&F.getBaseAxis()},formatTooltip:function(F,j,K,z){var V=this;z=z||"html";var Q=z==="html"?"<br/>":`
`,G=z==="richText",te={},q=0;function le(be){var Ce=x.reduce(be,function(rt,xt,ht){var He=we.getDimensionInfo(ht);return rt|=He&&He.tooltip!==!1&&He.displayName!=null},0),Be=[];Ie.length?x.each(Ie,function(rt){fe(E(we,F,rt),rt)}):x.each(be,fe);function fe(rt,xt){var ht=we.getDimensionInfo(xt);if(!ht||ht.otherDims.tooltip===!1)return;var He=ht.type,ir="sub"+V.seriesIndex+"at"+q,ct=o({color:ut,type:"subItem",renderMode:z,markerId:ir}),Xt=typeof ct=="string"?ct:ct.content,hr=(Ce?Xt+d(ht.displayName||"-")+": ":"")+d(He==="ordinal"?rt+"":He==="time"?j?"":f("yyyy/MM/dd hh:mm:ss",rt):u(rt));hr&&Be.push(hr),G&&(te[ir]=ut,++q)}var Se=Ce?G?`
`:"<br/>":"",ke=Se+Be.join(Se||", ");return{renderMode:z,content:ke,style:te}}function re(be){return{renderMode:z,content:d(u(be)),style:te}}var we=this.getData(),Ie=we.mapDimension("defaultedTooltip",!0),Me=Ie.length,Je=this.getRawValue(F),Ve=x.isArray(Je),ut=we.getItemVisual(F,"color");x.isObject(ut)&&ut.colorStops&&(ut=(ut.colorStops[0]||{}).color),ut=ut||"transparent";var Fe=Me>1||Ve&&!Me?le(Je):re(Me?E(we,F,Ie[0]):Ve?Je[0]:Je),ae=Fe.content,at=V.seriesIndex+"at"+q,he=o({color:ut,type:"item",renderMode:z,markerId:at});te[at]=ut,++q;var J=we.getName(F),Y=this.name;i.isNameSpecified(this)||(Y=""),Y=Y?d(Y)+(j?": ":Q):"";var $=typeof he=="string"?he:he.content,de=j?$+Y+ae:Y+$+(J?d(J)+": "+ae:ae);return{html:de,markers:te}},isAnimationEnabled:function(){if(v.node)return!1;var F=this.getShallow("animation");return F&&(this.getData().count()>this.getShallow("animationThreshold")&&(F=!1)),F},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(F,j,K){var z=this.ecModel,V=s.getColorFromPalette.call(this,F,j,K);return V||(V=z.getColorFromPalette(F,j,K)),V},coordDimToDataDim:function(F){return this.getRawData().mapDimension(F,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});x.mixin(_,e),x.mixin(_,s);function T(F){var j=F.name;i.isNameSpecified(F)||(F.name=w(F)||j)}function w(F){var j=F.getRawData(),K=j.mapDimension("seriesName",!0),z=[];return x.each(K,function(V){var Q=j.getDimensionInfo(V);Q.displayName&&z.push(Q.displayName)}),z.join(" ")}function O(F){return F.model.getRawData().count()}function I(F){var j=F.model;return j.setData(j.getRawData().cloneShallow()),R}function R(F,j){j.outputData&&F.end>j.outputData.count()&&j.model.getRawData().cloneShallow(j.outputData)}function M(F,j){x.each(F.CHANGABLE_METHODS,function(K){F.wrapMethod(K,x.curry(B,j))})}function B(F){var j=P(F);j&&j.setOutputEnd(this.count())}function P(F){var j=(F.ecModel||{}).scheduler,K=j&&j.getPipeline(F.uid);if(K){var z=K.currentTask;if(z){var V=z.agentStubMap;V&&(z=V.get(F.uid))}return z}}var X=_;k.exports=X},T6xi:function(k,D,n){var y=n("YgsL"),p=n("nCxF");function x(v,m,f){var d=m.points,u=m.smooth;if(d&&d.length>=2){if(u&&u!=="spline"){var o=p(d,u,f,m.smoothConstraint);v.moveTo(d[0][0],d[0][1]);for(var i=d.length,t=0;t<(f?i:i-1);t++){var s=o[t*2],e=o[t*2+1],l=d[(t+1)%i];v.bezierCurveTo(s[0],s[1],e[0],e[1],l[0],l[1])}}else{u==="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(k,D,n){var y=n("bYtY"),p=y.each,x=n("vafp"),v=n("4NO4"),m=v.makeInner,f=n("Mgri"),d=n("F5Ls"),u=n("a9QJ"),o=n("p/La"),i=m(),t={load:function(e,l,r){var a=i(l).parsed;if(a)return a;var c=l.specialAreas||{},h=l.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),u(e,A),o(e,A);var S=c[b];S&&A.transformTo(S.left,S.top,S.width,S.height)}),i(l).parsed={regions:g,boundingRect:s(g)}}};function s(e){for(var l,r=0;r<e.length;r++){var a=e[r].getBoundingRect();l=l||a.clone(),l.union(a)}return l}k.exports=t},TJmX:function(k,D,n){var y=n("zM3Q"),p=["itemStyle","borderColor"],x=["itemStyle","borderColor0"],v=["itemStyle","color"],m=["itemStyle","color0"],f={seriesType:"candlestick",plan:y(),performRawSeries:!0,reset:function(d,u){var o=d.getData();if(o.setVisual({legendSymbol:"roundRect",colorP:s(1,d),colorN:s(-1,d),borderColorP:e(1,d),borderColorN:e(-1,d)}),u.isSeriesFiltered(d))return;var i=d.pipelineContext.large;return!i&&{progress:t};function t(l,r){for(var a;(a=l.next())!=null;){var c=r.getItemModel(a),h=r.getItemLayout(a).sign;r.setItemVisual(a,{color:s(h,c),borderColor:e(h,c)})}}function s(l,r){return r.get(l>0?v:m)}function e(l,r){return r.get(l>0?p:x)}}};k.exports=f},TWL2:function(k,D,n){var y=n("IwbS"),p=n("bYtY"),x=n("6Ic6");function v(o,i){y.Group.call(this);var t=new y.Polygon,s=new y.Polyline,e=new y.Text;this.add(t),this.add(s),this.add(e),this.highDownOnUpdate=function(l,r){r==="emphasis"?(s.ignore=s.hoverIgnore,e.ignore=e.hoverIgnore):(s.ignore=s.normalIgnore,e.ignore=e.normalIgnore)},this.updateData(o,i,!0)}var m=v.prototype,f=["itemStyle","opacity"];m.updateData=function(o,i,t){var s=this.childAt(0),e=o.hostModel,l=o.getItemModel(i),r=o.getItemLayout(i),a=o.getItemModel(i).get(f);a=a==null?1:a,s.useStyle({}),t?(s.setShape({points:r.points}),s.setStyle({opacity:0}),y.initProps(s,{style:{opacity:a}},e,i)):y.updateProps(s,{style:{opacity:a},shape:{points:r.points}},e,i);var c=l.getModel("itemStyle"),h=o.getItemVisual(i,"color");s.setStyle(p.defaults({lineJoin:"round",fill:h},c.getItemStyle(["opacity"]))),s.hoverStyle=c.getModel("emphasis").getItemStyle(),this._updateLabel(o,i),y.setHoverStyle(this)},m._updateLabel=function(o,i){var t=this.childAt(1),s=this.childAt(2),e=o.hostModel,l=o.getItemModel(i),r=o.getItemLayout(i),a=r.label,c=o.getItemVisual(i,"color");y.updateProps(t,{shape:{points:a.linePoints||a.linePoints}},e,i),y.updateProps(s,{style:{x:a.x,y:a.y}},e,i),s.attr({rotation:a.rotation,origin:[a.x,a.y],z2:10});var h=l.getModel("label"),g=l.getModel("emphasis.label"),A=l.getModel("labelLine"),b=l.getModel("emphasis.labelLine"),c=o.getItemVisual(i,"color");y.setLabelStyle(s.style,s.hoverStyle={},h,g,{labelFetcher:o.hostModel,labelDataIndex:i,defaultText:o.getName(i),autoColor:c,useInsideStyle:!!a.inside},{textAlign:a.textAlign,textVerticalAlign:a.verticalAlign}),s.ignore=s.normalIgnore=!h.get("show"),s.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,i,t){var s=o.getData(),e=this._data,l=this.group;s.diff(e).add(function(r){var a=new v(s,r);s.setItemGraphicEl(r,a),l.add(a)}).update(function(r,a){var c=e.getItemGraphicEl(a);c.updateData(s,r),l.add(c),s.setItemGraphicEl(r,c)}).remove(function(r){var a=e.getItemGraphicEl(r);l.remove(a)}).execute(),this._data=s},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),u=d;k.exports=u},TYVI:function(k,D,n){var y=n("5GtS"),p=n("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;k.exports=v},TdNH:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("m546")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="CopyOutlined";var i=v.forwardRef(o);D.default=i},Tghj:function(k,D,n){(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,n("yLpj"))},ThAp:function(k,D,n){var y=n("bYtY"),p=n("5GtS"),x=n("T4UG"),v=n("7aKB"),m=v.encodeHTML,f=v.addCommas,d=n("cCMj"),u=n("KxfA"),o=u.retrieveRawAttr,i=n("W4dC"),t=n("D5nY"),s=t.makeSeriesEncodeForNameBased,e=x.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(r){for(var a=p(this,{coordDimensions:["value"],encodeDefaulter:y.curry(s,this)}),c=a.mapDimension("value"),h=y.createHashMap(),g=[],A=[],b=0,S=a.count();b<S;b++){var E=a.getName(b);h.set(E,!0),g.push({name:E,value:a.get(c,b),selected:o(a,b,"selected")})}var C=i.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),a.appendValues([],A),a},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 a=this.getData();return a.get(a.mapDimension("value"),r)},getRegionModel:function(r){var a=this.getData();return a.getItemModel(a.indexOfName(r))},formatTooltip:function(r){for(var a=this.getData(),c=f(this.getRawValue(r)),h=a.getName(r),g=this.seriesGroup,A=[],b=0;b<g.length;b++){var S=g[b].originalData.indexOfName(h),E=a.mapDimension("value");isNaN(g[b].originalData.get(E,S))||A.push(m(g[b].name))}return A.join(", ")+"<br />"+m(h+" : "+c)},getTooltipPosition:function(r){if(r!=null){var a=this.getData().getName(r),c=this.coordinateSystem,h=c.getRegion(a);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 l=e;k.exports=l},TkdX:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},v=2,m=4;function f(e,l,r){p.Group.call(this);var a=new p.Sector({z2:v});a.seriesIndex=l.seriesIndex;var c=new p.Text({z2:m,silent:e.getModel("label").get("silent")});this.add(a),this.add(c),this.updateData(!0,e,"normal",l,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,l,r,a,c){this.node=l,l.piece=this,a=a||this._seriesModel,c=c||this._ecModel;var h=this.childAt(0);h.dataIndex=l.dataIndex;var g=l.getModel(),A=l.getLayout(),b=y.extend({},A);b.label=null;var S=o(l,a,c);s(l,a,S);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||S},C),e?(h.setShape(b),h.shape.r=A.r0,p.updateProps(h,{shape:{r:A.r}},a,l.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},a),h.useStyle(C)):p.updateProps(h,{shape:b,style:C},a),this._updateLabel(a,S,r);var T=g.getShallow("cursor");if(T&&h.attr("cursor",T),e){var w=a.getShallow("highlightPolicy");this._initEvents(h,l,a,w)}this._seriesModel=a||this._seriesModel,this._ecModel=c||this._ecModel,p.setHoverStyle(this)},d.onEmphasis=function(e){var l=this;this.node.hostTree.root.eachNode(function(r){r.piece&&(l.node===r?r.piece.updateData(!1,r,"emphasis"):t(r,l.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,l,r){var a=this.node.getModel(),c=a.getModel("label"),h=r==="normal"||r==="emphasis"?c:a.getModel(r+".label"),g=a.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(),S=h.get("minAngle");S==null&&(S=c.get("minAngle")),S=S/180*Math.PI;var E=b.endAngle-b.startAngle;S!=null&&Math.abs(E)<S&&(A="");var C=this.childAt(1);p.setLabelStyle(C.style,C.hoverStyle||{},c,g,{defaultText:h.getShallow("show")?A:null,autoColor:l,useInsideStyle:!0});var _=(b.startAngle+b.endAngle)/2,T=Math.cos(_),w=Math.sin(_),O,I=j("position"),R=j("distance")||0,M=j("align");I==="outside"?(O=b.r+R,M=_>Math.PI/2?"right":"left"):!M||M==="center"?(O=(b.r+b.r0)/2,M="center"):M==="left"?(O=b.r0+R,_>Math.PI/2&&(M="right")):M==="right"&&(O=b.r-R,_>Math.PI/2&&(M="left")),C.attr("style",{text:A,textAlign:M,textVerticalAlign:j("verticalAlign")||"middle",opacity:j("opacity")});var B=O*T+b.cx,P=O*w+b.cy;C.attr("position",[B,P]);var X=j("rotate"),F=0;X==="radial"?(F=-_,F<-Math.PI/2&&(F+=Math.PI)):X==="tangential"?(F=Math.PI/2-_,F>Math.PI/2?F-=Math.PI:F<-Math.PI/2&&(F+=Math.PI)):typeof X=="number"&&(F=X*Math.PI/180),C.attr("rotation",F);function j(K){var z=h.get(K);return z==null?c.get(K):z}},d._initEvents=function(e,l,r,a){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var c=this,h=function(){c.onEmphasis(a)},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 u=f;function o(e,l,r){var a=e.getVisual("color"),c=e.getVisual("visualMeta");(!c||c.length===0)&&(a=null);var h=e.getModel("itemStyle").get("color");if(h)return h;if(a)return a;if(e.depth===0)return r.option.color[0];var g=r.option.color.length;return h=r.option.color[i(e)%g],h}function i(e){for(var l=e;l.depth>1;)l=l.parentNode;var r=e.getAncestors()[0];return y.indexOf(r.children,l)}function t(e,l,r){return r===x.NONE?!1:r===x.SELF?e===l:r===x.ANCESTOR?e===l||e.isAncestorOf(l):e===l||e.isDescendantOf(l)}function s(e,l,r){var a=l.getData();a.setItemVisual(e.dataIndex,"color",r)}k.exports=u},Tp9H:function(k,D,n){var y=n("ItGF"),p=n("Kagy"),x=n("IUWy"),v=p.toolbox.saveAsImage;function m(u){this.model=u}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(u,o){var i=this.model,t=i.get("name")||u.get("title.0.text")||"echarts",s=o.getZr().painter.getType()==="svg",e=s?"svg":i.get("type",!0)||"png",l=o.getConnectedDataURL({type:e,backgroundColor:i.get("backgroundColor",!0)||u.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(typeof MouseEvent=="function"&&!y.browser.ie&&!y.browser.edge){var r=document.createElement("a");r.download=t+"."+e,r.target="_blank",r.href=l;var a=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(a)}else if(window.navigator.msSaveOrOpenBlob){for(var c=atob(l.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=i.get("lang"),S='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',E=window.open();E.document.write(S)}},x.register("saveAsImage",m);var d=m;k.exports=d},"U/Mo":function(k,D){function n(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(),u=(d-1)*v+1;return u/f}function y(p){var x=p.getVisual("symbolSize");return x instanceof Array&&(x=(x[0]+x[1])/2),+x}D.getNodeGlobalScale=n,D.getSymbolSize=y},UADf:function(k,D,n){},UESt:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="RightOutlined";var d=D.a=p.forwardRef(f)},"UNi/":function(k,D){function n(y,p){for(var x=-1,v=Array(y);++x<y;)v[x]=p(x);return v}k.exports=n},UOVi:function(k,D,n){var y=n("bYtY"),p=n("7aKB"),x=["x","y","z","radius","angle","single"],v=["cartesian2d","polar","singleAxis"];function m(o){return y.indexOf(v,o)>=0}function f(o,i){o=o.slice();var t=y.map(o,p.capitalFirst);i=(i||[]).slice();var s=y.map(i,p.capitalFirst);return function(e,l){y.each(o,function(r,a){for(var c={name:r,capital:t[a]},h=0;h<i.length;h++)c[i[h]]=r+s[h];e.call(l,c)})}}var d=f(x,["axisIndex","axis","index","id"]);function u(o,i,t){return function(r){var a={nodes:[],records:{}};if(i(function(g){a.records[g.name]={}}),!r)return a;l(r,a);var c;do c=!1,o(h);while(c);function h(g){!s(g,a)&&e(g,a)&&(l(g,a),c=!0)}return a};function s(r,a){return y.indexOf(a.nodes,r)>=0}function e(r,a){var c=!1;return i(function(h){y.each(t(r,h)||[],function(g){a.records[h.name][g]&&(c=!0)})}),c}function l(r,a){a.nodes.push(r),i(function(c){y.each(t(r,c)||[],function(h){a.records[c.name][h]=!0})})}}D.isCoordSupported=m,D.createNameEach=f,D.eachAxisDim=d,D.createLinkedNodesFinder=u},Uc92:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};D.default=y},UnoB:function(k,D,n){var y=n("bYtY"),p=n("OELB");function x(f,d){f.eachSeriesByType("themeRiver",function(u){var o=u.getData(),i=u.coordinateSystem,t={},s=i.getRect();t.rect=s;var e=u.get("boundaryGap"),l=i.getAxis();if(t.boundaryGap=e,l.orient==="horizontal"){e[0]=p.parsePercent(e[0],s.height),e[1]=p.parsePercent(e[1],s.height);var r=s.height-e[0]-e[1];v(o,u,r)}else{e[0]=p.parsePercent(e[0],s.width),e[1]=p.parsePercent(e[1],s.width);var a=s.width-e[0]-e[1];v(o,u,a)}o.setLayout("layoutInfo",t)})}function v(f,d,u){if(!f.count())return;for(var o=d.coordinateSystem,i=d.getLayerSeries(),t=f.mapDimension("single"),s=f.mapDimension("value"),e=y.map(i,function(S){return y.map(S.indices,function(E){var C=o.dataToPoint(f.get(t,E));return C[1]=f.get(s,E),C})}),l=m(e),r=l.y0,a=u/l.max,c=i.length,h=i[0].indices.length,g,A=0;A<h;++A){g=r[A]*a,f.setItemLayout(i[0].indices[A],{layerIndex:0,x:e[0][A][0],y0:g,y:e[0][A][1]*a});for(var b=1;b<c;++b)g+=e[b-1][A][1]*a,f.setItemLayout(i[b].indices[A],{layerIndex:b,x:e[b][A][0],y0:g,y:e[b][A][1]*a})}}function m(f){for(var d=f.length,u=f[0].length,o=[],i=[],t=0,s,e={},l=0;l<u;++l){for(var r=0,s=0;r<d;++r)s+=f[r][l][1];s>t&&(t=s),o.push(s)}for(var a=0;a<u;++a)i[a]=(t-o[a])/2;t=0;for(var c=0;c<u;++c){var h=o[c]+i[c];h>t&&(t=h)}return e.y0=i,e.max=t,e}k.exports=x},Urep:function(k,D,n){},V6Ve:function(k,D,n){var y=n("kekF"),p=y(Object.keys,Object);k.exports=p},V7ic:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("digP")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="FileTwoTone";var i=v.forwardRef(o);D.default=i},VFCP:function(k,D,n){n("dBmv"),n("KamJ")},VPsl:function(k,D){function n(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})})}k.exports=n},VR9l:function(k,D,n){var y=n("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]}};k.exports=x},VSLf:function(k,D,n){n("I+Bx"),n("F0hE"),n("bBKM")},VSMT:function(k,D,n){"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(k,D,n){var y=n("bYtY"),p=n("SgGq"),x=n("iLNv"),v="\0_ec_dataZoom_roams";function m(e,l){var r=u(e),a=l.dataZoomId,c=l.coordId;y.each(r,function(A,b){var S=A.dataZoomInfos;S[a]&&y.indexOf(l.allCoordIds,c)<0&&(delete S[a],A.count--)}),i(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[a]&&h.count++,h.dataZoomInfos[a]=l;var g=s(h.dataZoomInfos);h.controller.enable(g.controlType,g.opt),h.controller.setPointerChecker(l.containsPoint),x.createOrUpdate(h,"dispatchAction",l.dataZoomModel.get("throttle",!0),"fixRate")}function f(e,l){var r=u(e);y.each(r,function(a){a.controller.dispose();var c=a.dataZoomInfos;c[l]&&(delete c[l],a.count--)}),i(r)}function d(e){return e.type+"\0_"+e.id}function u(e){var l=e.getZr();return l[v]||(l[v]={})}function o(e,l){var r=new p(e.getZr());return y.each(["pan","zoom","scrollMove"],function(a){r.on(a,function(c){var h=[];y.each(l.dataZoomInfos,function(g){if(!c.isAvailableBehavior(g.dataZoomModel.option))return;var A=(g.getRange||{})[a],b=A&&A(l.controller,c);!g.dataZoomModel.get("disabled",!0)&&b&&h.push({dataZoomId:g.dataZoomId,start:b[0],end:b[1]})}),h.length&&l.dispatchAction(h)})}),r}function i(e){y.each(e,function(l,r){l.count||(l.controller.dispose(),delete e[r])})}function t(e,l){e.dispatchAction({type:"dataZoom",batch:l})}function s(e){var l,r="type_",a={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;a[r+A]>a[r+l]&&(l=A),c&=g.get("preventDefaultMouseMove",!0)}),{controlType:l,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!c}}}D.register=m,D.unregister=f,D.generateCoordId=d},VaNO:function(k,D){function n(y){return this.__data__.has(y)}k.exports=n},VaxA:function(k,D,n){var y=n("bYtY");function p(f,d,u){if(f&&y.indexOf(d,f.type)>=0){var o=u.getData().tree.root,i=f.targetNode;if(typeof i=="string"&&(i=o.getNodeById(i)),i&&o.contains(i))return{node:i};var t=f.targetNodeId;if(t!=null&&(i=o.getNodeById(t)))return{node:i}}}function x(f){for(var d=[];f;)f=f.parentNode,f&&d.push(f);return d.reverse()}function v(f,d){var u=x(f);return y.indexOf(u,d)>=0}function m(f,d){for(var u=[];f;){var o=f.dataIndex;u.push({name:f.name,dataIndex:o,value:d.getRawValue(o)}),f=f.parentNode}return u.reverse(),u}D.retrieveTargetInfo=p,D.getPathToRoot=x,D.aboveViewRoot=v,D.wrapTreePathInfo=m},Vi4m:function(k,D,n){var y=n("bYtY");function p(v){v!=null&&y.extend(this,v),this.otherDims={}}var x=p;k.exports=x},Vl3Y:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("J4zp"),v=n.n(x),m=n("lSNA"),f=n.n(m),d=n("q1tI"),u=n("TSYQ"),o=n.n(u),i=n("85Yc"),t=n("H84U"),s=n("BGR+"),e=d.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),l=d.createContext({updateItemErrors:function(){}}),r=function(Ht){var yr=Object(s.default)(Ht,["prefixCls"]);return d.createElement(i.FormProvider,yr)};function a(me){return typeof me=="object"&&me!=null&&me.nodeType===1}function c(me,Ht){return(!Ht||me!=="hidden")&&me!=="visible"&&me!=="clip"}function h(me,Ht){if(me.clientHeight<me.scrollHeight||me.clientWidth<me.scrollWidth){var yr=getComputedStyle(me,null);return c(yr.overflowY,Ht)||c(yr.overflowX,Ht)||function(At){var rr=function(ur){if(!ur.ownerDocument||!ur.ownerDocument.defaultView)return null;try{return ur.ownerDocument.defaultView.frameElement}catch(vn){return null}}(At);return!!rr&&(rr.clientHeight<At.scrollHeight||rr.clientWidth<At.scrollWidth)}(me)}return!1}function g(me,Ht,yr,At,rr,ur,vn,Bt){return ur<me&&vn>Ht||ur>me&&vn<Ht?0:ur<=me&&Bt<=yr||vn>=Ht&&Bt>=yr?ur-me-At:vn>Ht&&Bt<yr||ur<me&&Bt>yr?vn-Ht+rr:0}var A=function(Ht,yr){var At=window,rr=yr.scrollMode,ur=yr.block,vn=yr.inline,Bt=yr.boundary,sr=yr.skipOverflowHiddenElements,Yt=typeof Bt=="function"?Bt:function(nt){return nt!==Bt};if(!a(Ht))throw new TypeError("Invalid target");for(var pt,it,Fr=document.scrollingElement||document.documentElement,cn=[],_n=Ht;a(_n)&&Yt(_n);){if((_n=(it=(pt=_n).parentElement)==null?pt.getRootNode().host||null:it)===Fr){cn.push(_n);break}_n!=null&&_n===document.body&&h(_n)&&!h(document.documentElement)||_n!=null&&h(_n,sr)&&cn.push(_n)}for(var Kn=At.visualViewport?At.visualViewport.width:innerWidth,gi=At.visualViewport?At.visualViewport.height:innerHeight,Mn=window.scrollX||pageXOffset,Un=window.scrollY||pageYOffset,$t=Ht.getBoundingClientRect(),Ct=$t.height,Re=$t.width,De=$t.top,Pe=$t.right,et=$t.bottom,yt=$t.left,St=ur==="start"||ur==="nearest"?De:ur==="end"?et:De+Ct/2,Vt=vn==="center"?yt+Re/2:vn==="end"?Pe:yt,Rr=[],Vr=0;Vr<cn.length;Vr++){var hn=cn[Vr],Ft=hn.getBoundingClientRect(),vt=Ft.height,bt=Ft.width,fr=Ft.top,Qt=Ft.right,Mt=Ft.bottom,qt=Ft.left;if(rr==="if-needed"&&De>=0&&yt>=0&&et<=gi&&Pe<=Kn&&De>=fr&&et<=Mt&&yt>=qt&&Pe<=Qt)return Rr;var kt=getComputedStyle(hn),er=parseInt(kt.borderLeftWidth,10),Kr=parseInt(kt.borderTopWidth,10),Ir=parseInt(kt.borderRightWidth,10),Dr=parseInt(kt.borderBottomWidth,10),dn=0,yn=0,ti="offsetWidth"in hn?hn.offsetWidth-hn.clientWidth-er-Ir:0,ei="offsetHeight"in hn?hn.offsetHeight-hn.clientHeight-Kr-Dr:0,fi="offsetWidth"in hn?hn.offsetWidth===0?0:bt/hn.offsetWidth:0,Ei="offsetHeight"in hn?hn.offsetHeight===0?0:vt/hn.offsetHeight:0;if(Fr===hn)dn=ur==="start"?St:ur==="end"?St-gi:ur==="nearest"?g(Un,Un+gi,gi,Kr,Dr,Un+St,Un+St+Ct,Ct):St-gi/2,yn=vn==="start"?Vt:vn==="center"?Vt-Kn/2:vn==="end"?Vt-Kn:g(Mn,Mn+Kn,Kn,er,Ir,Mn+Vt,Mn+Vt+Re,Re),dn=Math.max(0,dn+Un),yn=Math.max(0,yn+Mn);else{dn=ur==="start"?St-fr-Kr:ur==="end"?St-Mt+Dr+ei:ur==="nearest"?g(fr,Mt,vt,Kr,Dr+ei,St,St+Ct,Ct):St-(fr+vt/2)+ei/2,yn=vn==="start"?Vt-qt-er:vn==="center"?Vt-(qt+bt/2)+ti/2:vn==="end"?Vt-Qt+Ir+ti:g(qt,Qt,bt,er,Ir+ti,Vt,Vt+Re,Re);var Di=hn.scrollLeft,Hi=hn.scrollTop;St+=Hi-(dn=Math.max(0,Math.min(Hi+dn/Ei,hn.scrollHeight-vt/Ei+ei))),Vt+=Di-(yn=Math.max(0,Math.min(Di+yn/fi,hn.scrollWidth-bt/fi+ti)))}Rr.push({el:hn,top:dn,left:yn})}return Rr};function b(me){return me===Object(me)&&Object.keys(me).length!==0}function S(me,Ht){Ht===void 0&&(Ht="auto");var yr="scrollBehavior"in document.body.style;me.forEach(function(At){var rr=At.el,ur=At.top,vn=At.left;rr.scroll&&yr?rr.scroll({top:ur,left:vn,behavior:Ht}):(rr.scrollTop=ur,rr.scrollLeft=vn)})}function E(me){return me===!1?{block:"end",inline:"nearest"}:b(me)?me:{block:"start",inline:"nearest"}}function C(me,Ht){var yr=me.isConnected||me.ownerDocument.documentElement.contains(me);if(b(Ht)&&typeof Ht.behavior=="function")return Ht.behavior(yr?A(me,Ht):[]);if(!yr)return;var At=E(Ht);return S(A(me,At),At.behavior)}var _=C;function T(me){return me===void 0||me===!1?[]:Array.isArray(me)?me:[me]}function w(me,Ht){if(!me.length)return;var yr=me.join("_");return Ht?"".concat(Ht,"_").concat(yr):yr}function O(me){var Ht=T(me);return Ht.join("_")}function I(me){var Ht=Object(i.useForm)(),yr=v()(Ht,1),At=yr[0],rr=Object(d.useRef)({}),ur=Object(d.useMemo)(function(){return me||p()(p()({},At),{__INTERNAL__:{itemRef:function(Bt){return function(sr){var Yt=O(Bt);sr?rr.current[Yt]=sr:delete rr.current[Yt]}}},scrollToField:function(Bt){var sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Yt=T(Bt),pt=w(Yt,ur.__INTERNAL__.name),it=pt?document.getElementById(pt):null;it&&_(it,p()({scrollMode:"if-needed",block:"nearest"},sr))},getFieldInstance:function(Bt){var sr=O(Bt);return rr.current[sr]}})},[me,At]);return[ur]}var R=n("3Nzz"),M=function(me,Ht){var yr={};for(var At in me)Object.prototype.hasOwnProperty.call(me,At)&&Ht.indexOf(At)<0&&(yr[At]=me[At]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rr=0,At=Object.getOwnPropertySymbols(me);rr<At.length;rr++)Ht.indexOf(At[rr])<0&&Object.prototype.propertyIsEnumerable.call(me,At[rr])&&(yr[At[rr]]=me[At[rr]]);return yr},B=function(Ht,yr){var At,rr=d.useContext(R.b),ur=d.useContext(t.b),vn=ur.getPrefixCls,Bt=ur.direction,sr=Ht.name,Yt=Ht.prefixCls,pt=Ht.className,it=pt===void 0?"":pt,Fr=Ht.size,cn=Fr===void 0?rr:Fr,_n=Ht.form,Kn=Ht.colon,gi=Ht.labelAlign,Mn=Ht.labelCol,Un=Ht.wrapperCol,$t=Ht.hideRequiredMark,Ct=Ht.layout,Re=Ct===void 0?"horizontal":Ct,De=Ht.scrollToFirstError,Pe=Ht.requiredMark,et=Ht.onFinishFailed,yt=M(Ht,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),St=Object(d.useMemo)(function(){return Pe!==void 0?Pe:!$t},[$t,Pe]),Vt=vn("form",Yt),Rr=o()(Vt,(At={},f()(At,"".concat(Vt,"-").concat(Re),!0),f()(At,"".concat(Vt,"-hide-required-mark"),St===!1),f()(At,"".concat(Vt,"-rtl"),Bt==="rtl"),f()(At,"".concat(Vt,"-").concat(cn),cn),At),it),Vr=I(_n),hn=v()(Vr,1),Ft=hn[0],vt=Ft.__INTERNAL__;vt.name=sr;var bt=Object(d.useMemo)(function(){return{name:sr,labelAlign:gi,labelCol:Mn,wrapperCol:Un,vertical:Re==="vertical",colon:Kn,requiredMark:St,itemRef:vt.itemRef}},[sr,gi,Mn,Un,Re,Kn,St]);d.useImperativeHandle(yr,function(){return Ft});var fr=function(Mt){et&&et(Mt),De&&Mt.errorFields.length&&Ft.scrollToField(Mt.errorFields[0].name)};return d.createElement(R.a,{size:cn},d.createElement(e.Provider,{value:bt},d.createElement(i.default,p()({id:sr},yt,{onFinishFailed:fr,form:Ft,className:Rr}))))},P=d.forwardRef(B),X=P,F=n("cDf5"),j=n.n(F),K=n("RIqP"),z=n.n(K),V=n("Y+p1"),Q=n.n(V),G=n("KW7l"),te=n("c+Xe"),q=n("qrJ5"),le=n("CWQg"),re=n("uaoM"),we=n("/kpp"),Ie=n("YMnH"),Me=n("ZvpZ"),Je=function(Ht){var yr=Ht.prefixCls,At=Ht.label,rr=Ht.htmlFor,ur=Ht.labelCol,vn=Ht.labelAlign,Bt=Ht.colon,sr=Ht.required,Yt=Ht.requiredMark,pt=Object(Ie.b)("Form"),it=v()(pt,1),Fr=it[0];return At?d.createElement(e.Consumer,{key:"label"},function(cn){var _n,Kn=cn.vertical,gi=cn.labelAlign,Mn=cn.labelCol,Un=cn.colon,$t,Ct=ur||Mn||{},Re=vn||gi,De="".concat(yr,"-item-label"),Pe=o()(De,Re==="left"&&"".concat(De,"-left"),Ct.className),et=At,yt=Bt===!0||Un!==!1&&Bt!==!1,St=yt&&!Kn;St&&typeof At=="string"&&At.trim()!==""&&(et=At.replace(/[:|]\s*$/,"")),Yt==="optional"&&!sr&&(et=d.createElement(d.Fragment,null,et,d.createElement("span",{className:"".concat(yr,"-item-optional")},(Fr==null?void 0:Fr.optional)||(($t=Me.a.Form)===null||$t===void 0?void 0:$t.optional))));var Vt=o()((_n={},f()(_n,"".concat(yr,"-item-required"),sr),f()(_n,"".concat(yr,"-item-required-mark-optional"),Yt==="optional"),f()(_n,"".concat(yr,"-item-no-colon"),!yt),_n));return d.createElement(we.a,p()({},Ct,{className:Pe}),d.createElement("label",{htmlFor:rr,className:Vt,title:typeof At=="string"?At:""},et))}):null},Ve=Je,ut=n("gZBC"),Fe=n.n(ut),ae=n("kbBi"),at=n.n(ae),he=n("J84W"),J=n.n(he),Y=n("sKbD"),$=n.n(Y),de=n("YrtM"),be=n("HTfv"),Ce=n("hkKa");function Be(me,Ht,yr){var At=d.useRef({errors:me,visible:!!me.length}),rr=Object(Ce.a)(),ur=function(){var Bt=At.current.visible,sr=!!me.length,Yt=At.current.errors;At.current.errors=me,At.current.visible=sr,Bt!==sr?Ht(sr):(Yt.length!==me.length||Yt.some(function(pt,it){return pt!==me[it]}))&&rr()};return d.useEffect(function(){if(!yr){var vn=setTimeout(ur,10);return function(){return clearTimeout(vn)}}},[me]),yr&&ur(),[At.current.visible,At.current.errors]}var fe={success:J.a,warning:$.a,error:at.a,validating:Fe.a},Se=function(Ht){var yr=Ht.prefixCls,At=Ht.wrapperCol,rr=Ht.children,ur=Ht.help,vn=Ht.errors,Bt=Ht.onDomErrorVisibleChange,sr=Ht.hasFeedback,Yt=Ht.validateStatus,pt=Ht.extra,it=Object(Ce.a)(),Fr="".concat(yr,"-item"),cn=d.useContext(e),_n=At||cn.wrapperCol||{},Kn=o()("".concat(Fr,"-control"),_n.className),gi=Be(vn,function(et){et&&Promise.resolve().then(function(){Bt(!0)}),it()},!!ur),Mn=v()(gi,2),Un=Mn[0],$t=Mn[1];d.useEffect(function(){return function(){Bt(!1)}},[]);var Ct=Object(de.a)(function(){return $t},Un,function(et,yt){return yt}),Re=Yt&&fe[Yt],De=sr&&Re?d.createElement("span",{className:"".concat(Fr,"-children-icon")},d.createElement(Re,null)):null,Pe=p()({},cn);return delete Pe.labelCol,delete Pe.wrapperCol,d.createElement(e.Provider,{value:Pe},d.createElement(we.a,p()({},_n,{className:Kn}),d.createElement("div",{className:"".concat(Fr,"-control-input")},d.createElement("div",{className:"".concat(Fr,"-control-input-content")},rr),De),d.createElement(be.default,{motionDeadline:500,visible:Un,motionName:"show-help",onLeaveEnd:function(){Bt(!1)},motionAppear:!0,removeOnLeave:!0},function(et){var yt=et.className;return d.createElement("div",{className:o()("".concat(Fr,"-explain"),yt),key:"help"},Ct.map(function(St,Vt){return d.createElement("div",{key:Vt,role:"alert"},St)}))}),pt&&d.createElement("div",{className:"".concat(Fr,"-extra")},pt)))},ke=Se,rt=n("0n0R"),xt=n("xEkU"),ht=n.n(xt);function He(me){var Ht=d.useState(me),yr=v()(Ht,2),At=yr[0],rr=yr[1],ur=Object(d.useRef)(null),vn=Object(d.useRef)([]),Bt=Object(d.useRef)(!1);d.useEffect(function(){return function(){Bt.current=!0,ht.a.cancel(ur.current)}},[]);function sr(Yt){if(Bt.current)return;ur.current===null&&(vn.current=[],ur.current=ht()(function(){ur.current=null,rr(function(pt){var it=pt;return vn.current.forEach(function(Fr){it=Fr(it)}),it})})),vn.current.push(Yt)}return[At,sr]}function ir(){var me=d.useContext(e),Ht=me.itemRef,yr=d.useRef({});function At(rr,ur){var vn=ur&&j()(ur)==="object"&&ur.ref,Bt=rr.join("_");return(yr.current.name!==Bt||yr.current.originRef!==vn)&&(yr.current.name=Bt,yr.current.originRef=vn,yr.current.ref=Object(te.a)(Ht(rr),vn)),yr.current.ref}return At}var ct=function(me,Ht){var yr={};for(var At in me)Object.prototype.hasOwnProperty.call(me,At)&&Ht.indexOf(At)<0&&(yr[At]=me[At]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rr=0,At=Object.getOwnPropertySymbols(me);rr<At.length;rr++)Ht.indexOf(At[rr])<0&&Object.prototype.propertyIsEnumerable.call(me,At[rr])&&(yr[At[rr]]=me[At[rr]]);return yr},Xt=Object(le.a)("success","warning","error","validating",""),hr=d.memo(function(me){var Ht=me.children;return Ht},function(me,Ht){return me.value===Ht.value&&me.update===Ht.update});function Jt(me){return me===null&&Object(re.a)(!1,"Form.Item","`null` is passed as `name` property"),!(me==null)}function Pt(me){var Ht=me.name,yr=me.fieldKey,At=me.noStyle,rr=me.dependencies,ur=me.prefixCls,vn=me.style,Bt=me.className,sr=me.shouldUpdate,Yt=me.hasFeedback,pt=me.help,it=me.rules,Fr=me.validateStatus,cn=me.children,_n=me.required,Kn=me.label,gi=me.trigger,Mn=gi===void 0?"onChange":gi,Un=me.validateTrigger,$t=me.hidden,Ct=ct(me,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),Re=d.useRef(!1),De=d.useContext(t.b),Pe=De.getPrefixCls,et=d.useContext(e),yt=et.name,St=et.requiredMark,Vt=d.useContext(l),Rr=Vt.updateItemErrors,Vr=d.useState(!!pt),hn=v()(Vr,2),Ft=hn[0],vt=hn[1],bt=d.useRef(Fr),fr=He({}),Qt=v()(fr,2),Mt=Qt[0],qt=Qt[1],kt=d.useContext(G.b),er=kt.validateTrigger,Kr=Un!==void 0?Un:er;function Ir(nt){Re.current||vt(nt)}var Dr=Jt(Ht),dn=d.useRef([]);d.useEffect(function(){return function(){Re.current=!0,Rr(dn.current.join("__SPLIT__"),[])}},[]);var yn=Pe("form",ur),ti=At?Rr:function(nt,Le){qt(function(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Q()(je[nt],Le)?je:p()(p()({},je),f()({},nt,Le))})},ei=ir();function fi(nt,Le,je,Xe){var tt,Ze;if(At&&!$t)return nt;var st=[];Object.keys(Mt).forEach(function(qr){st=[].concat(z()(st),z()(Mt[qr]||[]))});var Et;pt!=null?Et=T(pt):(Et=je?je.errors:[],Et=[].concat(z()(Et),z()(st)));var gt="";Fr!==void 0?gt=Fr:(je==null?void 0:je.validating)?gt="validating":((Ze=je==null?void 0:je.errors)===null||Ze===void 0?void 0:Ze.length)||st.length?gt="error":(je==null?void 0:je.touched)&&(gt="success"),Ft&&pt&&(bt.current=gt);var pr=(tt={},f()(tt,"".concat(yn,"-item"),!0),f()(tt,"".concat(yn,"-item-with-help"),Ft||pt),f()(tt,"".concat(Bt),!!Bt),f()(tt,"".concat(yn,"-item-has-feedback"),gt&&Yt),f()(tt,"".concat(yn,"-item-has-success"),gt==="success"),f()(tt,"".concat(yn,"-item-has-warning"),gt==="warning"),f()(tt,"".concat(yn,"-item-has-error"),gt==="error"),f()(tt,"".concat(yn,"-item-has-error-leave"),!pt&&Ft&&bt.current==="error"),f()(tt,"".concat(yn,"-item-is-validating"),gt==="validating"),f()(tt,"".concat(yn,"-item-hidden"),$t),tt);return d.createElement(q.a,p()({className:o()(pr),style:vn,key:"row"},Object(s.default)(Ct,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),d.createElement(Ve,p()({htmlFor:Le,required:Xe,requiredMark:St},me,{prefixCls:yn})),d.createElement(ke,p()({},me,je,{errors:Et,prefixCls:yn,onDomErrorVisibleChange:Ir,validateStatus:gt}),d.createElement(l.Provider,{value:{updateItemErrors:ti}},nt)))}var Ei=typeof cn=="function",Di=d.useRef(0);if(Di.current+=1,!Dr&&!Ei&&!rr)return fi(cn);var Hi={};return typeof Kn=="string"&&(Hi.label=Kn),d.createElement(i.Field,p()({},me,{messageVariables:Hi,trigger:Mn,validateTrigger:Kr,onReset:function(){Ir(!1)}}),function(nt,Le,je){var Xe=Le.errors,tt=T(Ht).length&&Le?Le.name:[],Ze=w(tt,yt);if(At){if(dn.current=z()(tt),yr){var st=Array.isArray(yr)?yr:[yr];dn.current=[].concat(z()(tt.slice(0,-1)),z()(st))}Rr(dn.current.join("__SPLIT__"),Xe)}var Et=_n!==void 0?_n:!!(it&&it.some(function(gn){if(gn&&j()(gn)==="object"&&gn.required)return!0;if(typeof gn=="function"){var vr=gn(je);return vr&&vr.required}return!1})),gt=p()({},nt),pr=null;if(Object(re.a)(!(sr&&rr),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(cn)&&Dr)Object(re.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),pr=cn;else if(Ei&&(!(sr||rr)||Dr))Object(re.a)(!!(sr||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&&!Ei&&!Dr)Object(re.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(rt.b)(cn)){Object(re.a)(cn.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var qr=p()(p()({},cn.props),gt);qr.id||(qr.id=Ze),Object(te.c)(cn)&&(qr.ref=ei(tt,cn));var Qr=new Set([].concat(z()(T(Mn)),z()(T(Kr))));Qr.forEach(function(gn){qr[gn]=function(){for(var vr,Vn,kr,Bn,on,jr=arguments.length,ai=new Array(jr),Oi=0;Oi<jr;Oi++)ai[Oi]=arguments[Oi];(kr=gt[gn])===null||kr===void 0||(vr=kr).call.apply(vr,[gt].concat(ai)),(on=(Bn=cn.props)[gn])===null||on===void 0||(Vn=on).call.apply(Vn,[Bn].concat(ai))}}),pr=d.createElement(hr,{value:gt[me.valuePropName||"value"],update:Di.current},Object(rt.a)(cn,qr))}else Ei&&(sr||rr)&&!Dr?pr=cn(je):(Object(re.a)(!tt.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),pr=cn);return fi(pr,Ze,Le,Et)})}var Wt=Pt,Ge=function(me,Ht){var yr={};for(var At in me)Object.prototype.hasOwnProperty.call(me,At)&&Ht.indexOf(At)<0&&(yr[At]=me[At]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rr=0,At=Object.getOwnPropertySymbols(me);rr<At.length;rr++)Ht.indexOf(At[rr])<0&&Object.prototype.propertyIsEnumerable.call(me,At[rr])&&(yr[At[rr]]=me[At[rr]]);return yr},pe=function(Ht){var yr=Ht.children,At=Ge(Ht,["children"]);return Object(re.a)(!!At.name,"Form.List","Miss `name` prop."),d.createElement(i.List,At,function(rr,ur){return yr(rr.map(function(vn){return p()(p()({},vn),{fieldKey:vn.key})}),ur)})},se=pe,lt=X;lt.Item=Wt,lt.List=se,lt.useForm=I,lt.Provider=r,lt.create=function(){Object(re.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var qe=D.a=lt},VpOo:function(k,D){function n(y,p){var x=p.x,v=p.y,m=p.width,f=p.height,d=p.r,u,o,i,t;m<0&&(x=x+m,m=-m),f<0&&(v=v+f,f=-f),typeof d=="number"?u=o=i=t=d:d instanceof Array?d.length===1?u=o=i=t=d[0]:d.length===2?(u=i=d[0],o=t=d[1]):d.length===3?(u=d[0],o=t=d[1],i=d[2]):(u=d[0],o=d[1],i=d[2],t=d[3]):u=o=i=t=0;var s;u+o>m&&(s=u+o,u*=m/s,o*=m/s),i+t>m&&(s=i+t,i*=m/s,t*=m/s),o+i>f&&(s=o+i,o*=f/s,i*=f/s),u+t>f&&(s=u+t,u*=f/s,t*=f/s),y.moveTo(x+u,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-i),i!==0&&y.arc(x+m-i,v+f-i,i,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+u),u!==0&&y.arc(x+u,v+u,u,Math.PI,Math.PI*1.5)}D.buildPath=n},"VrN/":function(k,D,n){(function(y,p){k.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,u=d&&(v?document.documentMode||6:+(f||m)[1]),o=!f&&/WebKit\//.test(y),i=o&&/Qt\/\d+\.\d+/.test(y),t=!f&&/Chrome\//.test(y),s=/Opera\//.test(y),e=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(y),r=/PhantomJS/.test(y),a=!f&&/AppleWebKit/.test(y)&&/Mobile\/\w+/.test(y),c=/Android/.test(y),h=a||c||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(y),g=a||/Mac/.test(p),A=/\bCrOS\b/.test(y),b=/win/i.test(p),S=s&&y.match(/Version\/(\d*\.\d*)/);S&&(S=Number(S[1])),S&&S>=15&&(s=!1,o=!0);var E=g&&(i||s&&(S==null||S<12.11)),C=x||d&&u>=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 Ke=ue.slice(ge.index+ge[0].length);U.className=ue.slice(0,ge.index)+(Ke?ge[1]+Ke:"")}};function w(N){for(var U=N.childNodes.length;U>0;--U)N.removeChild(N.firstChild);return N}function O(N,U){return w(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 Ke=0;Ke<U.length;++Ke)ge.appendChild(U[Ke]);return ge}function R(N,U,ie,ue){var ge=I(N,U,ie,ue);return ge.setAttribute("role","presentation"),ge}var M;document.createRange?M=function(U,ie,ue,ge){var Ke=document.createRange();return Ke.setEnd(ge||U,ue),Ke.setStart(U,ie),Ke}:M=function(U,ie,ue){var ge=document.body.createTextRange();try{ge.moveToElementText(U.parentNode)}catch(Ke){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 P(){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 X(N,U){var ie=N.className;_(U).test(ie)||(N.className+=(ie?" ":"")+U)}function F(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()};a?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 Ke=ue||0,It=ge||0;;){var nr=N.indexOf(" ",Ke);if(nr<0||nr>=U)return It+(U-Ke);It+=nr-Ke,It+=ie-It%ie,Ke=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 G(N,U){for(var ie=0;ie<N.length;++ie)if(N[ie]==U)return ie;return-1}var te=50,q={toString:function(){return"CodeMirror.Pass"}},le={scroll:!1},re={origin:"*mouse"},we={origin:"+move"};function Ie(N,U,ie){for(var ue=0,ge=0;;){var Ke=N.indexOf(" ",ue);Ke==-1&&(Ke=N.length);var It=Ke-ue;if(Ke==N.length||ge+It>=U)return ue+Math.min(It,U-ge);if(ge+=Ke-ue,ge+=ie-ge%ie,ue=Ke+1,ge>=U)return ue}}var Me=[""];function Je(N){for(;Me.length<=N;)Me.push(Ve(Me)+" ");return Me[N]}function Ve(N){return N[N.length-1]}function ut(N,U){for(var ie=[],ue=0;ue<N.length;ue++)ie[ue]=U(N[ue],ue);return ie}function Fe(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 at(N,U){var ie;return Object.create?ie=Object.create(N):(ae.prototype=N,ie=new ae),U&&z(U,ie),ie}var he=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function J(N){return/\w/.test(N)||N>"\x80"&&(N.toUpperCase()!=N.toLowerCase()||he.test(N))}function Y(N,U){return U?U.source.indexOf("\\w")>-1&&J(N)?!0:U.test(N):J(N)}function $(N){for(var U in N)if(N.hasOwnProperty(U)&&N[U])return!1;return!0}var de=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function be(N){return N.charCodeAt(0)>=768&&de.test(N)}function Ce(N,U,ie){for(;(ie<0?U>0:U<N.length)&&be(N.charAt(U));)U+=ie;return U}function Be(N,U,ie){for(var ue=U>ie?-1:1;;){if(U==ie)return U;var ge=(U+ie)/2,Ke=ue<0?Math.ceil(ge):Math.floor(ge);if(Ke==U)return N(Ke)?U:ie;N(Ke)?ie=Ke:U=Ke+ue}}function fe(N,U,ie,ue){if(!N)return ue(U,ie,"ltr",0);for(var ge=!1,Ke=0;Ke<N.length;++Ke){var It=N[Ke];(It.from<ie&&It.to>U||U==ie&&It.to==U)&&(ue(Math.max(It.from,U),Math.min(It.to,ie),It.level==1?"rtl":"ltr",Ke),ge=!0)}ge||ue(U,ie,"ltr")}var Se=null;function ke(N,U,ie){var ue;Se=null;for(var ge=0;ge<N.length;++ge){var Ke=N[ge];if(Ke.from<U&&Ke.to>U)return ge;Ke.to==U&&(Ke.from!=Ke.to&&ie=="before"?ue=ge:Se=ge),Ke.from==U&&(Ke.from!=Ke.to&&ie!="before"?ue=ge:Se=ge)}return ue!=null?ue:Se}var rt=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]/,Ke=/[LRr]/,It=/[Lb1n]/,nr=/[1n]/;function wr(_r,Hn,ri){this.level=_r,this.from=Hn,this.to=ri}return function(_r,Hn){var ri=Hn=="ltr"?"L":"R";if(_r.length==0||Hn=="ltr"&&!ue.test(_r))return!1;for(var xi=_r.length,_i=[],la=0;la<xi;++la)_i.push(ie(_r.charCodeAt(la)));for(var Ta=0,Wa=ri;Ta<xi;++Ta){var Ma=_i[Ta];Ma=="m"?_i[Ta]=Wa:Wa=Ma}for(var Na=0,qa=ri;Na<xi;++Na){var ho=_i[Na];ho=="1"&&qa=="r"?_i[Na]="n":Ke.test(ho)&&(qa=ho,ho=="r"&&(_i[Na]="R"))}for(var ns=1,Mo=_i[0];ns<xi-1;++ns){var Ss=_i[ns];Ss=="+"&&Mo=="1"&&_i[ns+1]=="1"?_i[ns]="1":Ss==","&&Mo==_i[ns+1]&&(Mo=="1"||Mo=="n")&&(_i[ns]=Mo),Mo=Ss}for(var Zs=0;Zs<xi;++Zs){var yl=_i[Zs];if(yl==",")_i[Zs]="N";else if(yl=="%"){var ul=void 0;for(ul=Zs+1;ul<xi&&_i[ul]=="%";++ul);for(var Pl=Zs&&_i[Zs-1]=="!"||ul<xi&&_i[ul]=="1"?"1":"N",Vl=Zs;Vl<ul;++Vl)_i[Vl]=Pl;Zs=ul-1}}for(var Il=0,Gl=ri;Il<xi;++Il){var Fl=_i[Il];Gl=="L"&&Fl=="1"?_i[Il]="L":Ke.test(Fl)&&(Gl=Fl)}for(var Ja=0;Ja<xi;++Ja)if(ge.test(_i[Ja])){var vl=void 0;for(vl=Ja+1;vl<xi&&ge.test(_i[vl]);++vl);for(var gl=(Ja?_i[Ja-1]:ri)=="L",El=(vl<xi?_i[vl]:ri)=="L",Bu=gl==El?gl?"L":"R":ri,Ks=Ja;Ks<vl;++Ks)_i[Ks]=Bu;Ja=vl-1}for(var vs=[],lu,Kl=0;Kl<xi;)if(It.test(_i[Kl])){var Uu=Kl;for(++Kl;Kl<xi&&It.test(_i[Kl]);++Kl);vs.push(new wr(0,Uu,Kl))}else{var Eu=Kl,uu=vs.length,ku=Hn=="rtl"?1:0;for(++Kl;Kl<xi&&_i[Kl]!="L";++Kl);for(var Yl=Eu;Yl<Kl;)if(nr.test(_i[Yl])){Eu<Yl&&(vs.splice(uu,0,new wr(1,Eu,Yl)),uu+=ku);var Tu=Yl;for(++Yl;Yl<Kl&&nr.test(_i[Yl]);++Yl);vs.splice(uu,0,new wr(2,Tu,Yl)),uu+=ku,Eu=Yl}else++Yl;Eu<Kl&&vs.splice(uu,0,new wr(1,Eu,Kl))}return Hn=="ltr"&&(vs[0].level==1&&(lu=_r.match(/^\s+/))&&(vs[0].from=lu[0].length,vs.unshift(new wr(0,0,lu[0].length))),Ve(vs).level==1&&(lu=_r.match(/\s+$/))&&(Ve(vs).to-=lu[0].length,vs.push(new wr(0,xi-lu[0].length,xi)))),Hn=="rtl"?vs.reverse():vs}}();function xt(N,U){var ie=N.order;return ie==null&&(ie=N.order=rt(N.text,U)),ie}var ht=[],He=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]||ht).concat(ue)}};function ir(N,U){return N._handlers&&N._handlers[U]||ht}function ct(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 Ke=G(ge,ie);Ke>-1&&(ue[U]=ge.slice(0,Ke).concat(ge.slice(Ke+1)))}}}function Xt(N,U){var ie=ir(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 hr(N,U,ie){return typeof U=="string"&&(U={type:U,preventDefault:function(){this.defaultPrevented=!0}}),Xt(N,ie||U.type,N,U),se(U)||U.codemirrorIgnore}function Jt(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)G(ie,U[ue])==-1&&ie.push(U[ue])}function Pt(N,U){return ir(N,U).length>0}function Wt(N){N.prototype.on=function(U,ie){He(this,U,ie)},N.prototype.off=function(U,ie){ct(this,U,ie)}}function Ge(N){N.preventDefault?N.preventDefault():N.returnValue=!1}function pe(N){N.stopPropagation?N.stopPropagation():N.cancelBubble=!0}function se(N){return N.defaultPrevented!=null?N.defaultPrevented:N.returnValue==!1}function lt(N){Ge(N),pe(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 Ht=function(){if(d&&u<9)return!1;var N=I("div");return"draggable"in N||"dragDrop"in N}(),yr;function At(N){if(yr==null){var U=I("span","\u200B");O(N,I("span",[U,document.createTextNode("x")])),N.firstChild.offsetHeight!=0&&(yr=U.offsetWidth<=1&&U.offsetHeight>2&&!(d&&u<8))}var ie=yr?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=M(U,0,1).getBoundingClientRect(),ue=M(U,1,2).getBoundingClientRect();return w(N),!ie||ie.left==ie.right?!1:rr=ue.right-ie.right<3}var vn=`
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 Ke=N.slice(U,N.charAt(ge-1)=="\r"?ge-1:ge),It=Ke.indexOf("\r");It!=-1?(ie.push(Ke.slice(0,It)),U+=It+1):(ie.push(Ke),U=ge+1)}return ie}:function(N){return N.split(/\r\n?|\n/)},Bt=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},sr=function(){var N=I("div");return"oncopy"in N?!0:(N.setAttribute("oncopy","return;"),typeof N.oncopy=="function")}(),Yt=null;function pt(N){if(Yt!=null)return Yt;var U=O(N,I("span","x")),ie=U.getBoundingClientRect(),ue=M(U,0,1).getBoundingClientRect();return Yt=Math.abs(ie.left-ue.left)>1}var it={},Fr={};function cn(N,U){arguments.length>2&&(U.dependencies=Array.prototype.slice.call(arguments,2)),it[N]=U}function _n(N,U){Fr[N]=U}function Kn(N){if(typeof N=="string"&&Fr.hasOwnProperty(N))N=Fr[N];else if(N&&typeof N.name=="string"&&Fr.hasOwnProperty(N.name)){var U=Fr[N.name];typeof U=="string"&&(U={name:U}),N=at(U,N),N.name=U.name}else{if(typeof N=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(N))return Kn("application/xml");if(typeof N=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(N))return Kn("application/json")}return typeof N=="string"?{name:N}:N||{name:"null"}}function gi(N,U){U=Kn(U);var ie=it[U.name];if(!ie)return gi(N,"text/plain");var ue=ie(N,U);if(Mn.hasOwnProperty(U.name)){var ge=Mn[U.name];for(var Ke in ge){if(!ge.hasOwnProperty(Ke))continue;ue.hasOwnProperty(Ke)&&(ue["_"+Ke]=ue[Ke]),ue[Ke]=ge[Ke]}}if(ue.name=U.name,U.helperType&&(ue.helperType=U.helperType),U.modeProps)for(var It in U.modeProps)ue[It]=U.modeProps[It];return ue}var Mn={};function Un(N,U){var ie=Mn.hasOwnProperty(N)?Mn[N]:Mn[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 Ct(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 Re(N,U,ie){return N.startState?N.startState(U,ie):!0}var De=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};De.prototype.eol=function(){return this.pos>=this.string.length},De.prototype.sol=function(){return this.pos==this.lineStart},De.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},De.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},De.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},De.prototype.eatWhile=function(N){for(var U=this.pos;this.eat(N););return this.pos>U},De.prototype.eatSpace=function(){for(var N=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>N},De.prototype.skipToEnd=function(){this.pos=this.string.length},De.prototype.skipTo=function(N){var U=this.string.indexOf(N,this.pos);if(U>-1)return this.pos=U,!0},De.prototype.backUp=function(N){this.pos-=N},De.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)},De.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},De.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 Ke=this.string.slice(this.pos).match(N);return Ke&&Ke.index>0?null:(Ke&&U!==!1&&(this.pos+=Ke[0].length),Ke)}},De.prototype.current=function(){return this.string.slice(this.start,this.pos)},De.prototype.hideFirstChars=function(N,U){this.lineStart+=N;try{return U()}finally{this.lineStart-=N}},De.prototype.lookAhead=function(N){var U=this.lineOracle;return U&&U.lookAhead(N)},De.prototype.baseToken=function(){var N=this.lineOracle;return N&&N.baseToken(this.pos)};function Pe(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],Ke=ge.chunkSize();if(U<Ke){ie=ge;break}U-=Ke}return ie.lines[U]}function et(N,U,ie){var ue=[],ge=U.line;return N.iter(U.line,ie.line+1,function(Ke){var It=Ke.text;ge==ie.line&&(It=It.slice(0,ie.ch)),ge==U.line&&(It=It.slice(U.ch)),ue.push(It),++ge}),ue}function yt(N,U,ie){var ue=[];return N.iter(U,ie,function(ge){ue.push(ge.text)}),ue}function St(N,U){var ie=U-N.height;if(ie)for(var ue=N;ue;ue=ue.parent)ue.height+=ie}function Vt(N){if(N.parent==null)return null;for(var U=N.parent,ie=G(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 Rr(N,U){var ie=N.first;e:do{for(var ue=0;ue<N.children.length;++ue){var ge=N.children[ue],Ke=ge.height;if(U<Ke){N=ge;continue e}U-=Ke,ie+=ge.chunkSize()}return ie}while(!N.lines);for(var It=0;It<N.lines.length;++It){var nr=N.lines[It],wr=nr.height;if(U<wr)break;U-=wr}return ie+It}function Vr(N,U){return U>=N.first&&U<N.first+N.size}function hn(N,U){return String(N.lineNumberFormatter(U+N.firstLineNumber))}function Ft(N,U,ie){if(ie===void 0&&(ie=null),!(this instanceof Ft))return new Ft(N,U,ie);this.line=N,this.ch=U,this.sticky=ie}function vt(N,U){return N.line-U.line||N.ch-U.ch}function bt(N,U){return N.sticky==U.sticky&&vt(N,U)==0}function fr(N){return Ft(N.line,N.ch)}function Qt(N,U){return vt(N,U)<0?U:N}function Mt(N,U){return vt(N,U)<0?N:U}function qt(N,U){return Math.max(N.first,Math.min(U,N.first+N.size-1))}function kt(N,U){if(U.line<N.first)return Ft(N.first,0);var ie=N.first+N.size-1;return U.line>ie?Ft(ie,Pe(N,ie).text.length):er(U,Pe(N,U.line).text.length)}function er(N,U){var ie=N.ch;return ie==null||ie>U?Ft(N.line,U):ie<0?Ft(N.line,0):N}function Kr(N,U){for(var ie=[],ue=0;ue<U.length;ue++)ie[ue]=kt(N,U[ue]);return ie}var Ir=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 Ir?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 Ir(U,this.maxLookAhead):U};function dn(N,U,ie,ue){var ge=[N.state.modeGen],Ke={};Le(N,U.text,N.doc.mode,ie,function(_r,Hn){return ge.push(_r,Hn)},Ke,ue);for(var It=ie.state,nr=function(Hn){ie.baseTokens=ge;var ri=N.state.overlays[Hn],xi=1,_i=0;ie.state=!0,Le(N,U.text,ri.mode,ie,function(la,Ta){for(var Wa=xi;_i<la;){var Ma=ge[xi];Ma>la&&ge.splice(xi,1,la,ge[xi+1],Ma),xi+=2,_i=Math.min(la,Ma)}if(!Ta)return;if(ri.opaque)ge.splice(Wa,xi-Wa,la,"overlay "+Ta),xi=Wa+2;else for(;Wa<xi;Wa+=2){var Na=ge[Wa+1];ge[Wa+1]=(Na?Na+" ":"")+"overlay "+Ta}},Ke),ie.state=It,ie.baseTokens=null,ie.baseTokenPos=1},wr=0;wr<N.state.overlays.length;++wr)nr(wr);return{styles:ge,classes:Ke.bgClass||Ke.textClass?Ke:null}}function yn(N,U,ie){if(!U.styles||U.styles[0]!=N.state.modeGen){var ue=ti(N,Vt(U)),ge=U.text.length>N.options.maxHighlightLength&&$t(N.doc.mode,ue.state),Ke=dn(N,U,ue);ge&&(ue.state=ge),U.stateAfter=ue.save(!ge),U.styles=Ke.styles,Ke.classes?U.styleClasses=Ke.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 ti(N,U,ie){var ue=N.doc,ge=N.display;if(!ue.mode.startState)return new Dr(ue,!0,U);var Ke=je(N,U,ie),It=Ke>ue.first&&Pe(ue,Ke-1).stateAfter,nr=It?Dr.fromSaved(ue,It,Ke):new Dr(ue,Re(ue.mode),Ke);return ue.iter(Ke,U,function(wr){ei(N,wr.text,nr);var _r=nr.line;wr.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 ei(N,U,ie,ue){var ge=N.doc.mode,Ke=new De(U,N.options.tabSize,ie);for(Ke.start=Ke.pos=ue||0,U==""&&fi(ge,ie.state);!Ke.eol();)Ei(ge,Ke,ie.state),Ke.start=Ke.pos}function fi(N,U){if(N.blankLine)return N.blankLine(U);if(!N.innerMode)return;var ie=Ct(N,U);if(ie.mode.blankLine)return ie.mode.blankLine(ie.state)}function Ei(N,U,ie,ue){for(var ge=0;ge<10;ge++){ue&&(ue[0]=Ct(N,ie).mode);var Ke=N.token(U,ie);if(U.pos>U.start)return Ke}throw new Error("Mode "+N.name+" failed to advance stream.")}var Di=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,Ke=ge.mode,It;U=kt(ge,U);var nr=Pe(ge,U.line),wr=ti(N,U.line,ie),_r=new De(nr.text,N.options.tabSize,wr),Hn;for(ue&&(Hn=[]);(ue||_r.pos<U.ch)&&!_r.eol();)_r.start=_r.pos,It=Ei(Ke,_r,wr.state),ue&&Hn.push(new Di(_r,It,$t(ge.mode,wr.state)));return ue?Hn:new Di(_r,It,wr.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 Le(N,U,ie,ue,ge,Ke,It){var nr=ie.flattenSpans;nr==null&&(nr=N.options.flattenSpans);var wr=0,_r=null,Hn=new De(U,N.options.tabSize,ue),ri,xi=N.options.addModeClass&&[null];for(U==""&&nt(fi(ie,ue.state),Ke);!Hn.eol();){if(Hn.pos>N.options.maxHighlightLength?(nr=!1,It&&ei(N,U,ue,Hn.pos),Hn.pos=U.length,ri=null):ri=nt(Ei(ie,Hn,ue.state,xi),Ke),xi){var _i=xi[0].name;_i&&(ri="m-"+(ri?_i+" "+ri:_i))}if(!nr||_r!=ri){for(;wr<Hn.start;)wr=Math.min(Hn.start,wr+5e3),ge(wr,_r);_r=ri}Hn.start=Hn.pos}for(;wr<Hn.pos;){var la=Math.min(Hn.pos,wr+5e3);ge(la,_r),wr=la}}function je(N,U,ie){for(var ue,ge,Ke=N.doc,It=ie?-1:U-(N.doc.mode.innerMode?1e3:100),nr=U;nr>It;--nr){if(nr<=Ke.first)return Ke.first;var wr=Pe(Ke,nr-1),_r=wr.stateAfter;if(_r&&(!ie||nr+(_r instanceof Ir?_r.lookAhead:0)<=Ke.modeFrontier))return nr;var Hn=V(wr.text,null,N.options.tabSize);(ge==null||ue>Hn)&&(ge=nr-1,ue=Hn)}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=Pe(N,ue).stateAfter;if(ge&&(!(ge instanceof Ir)||ue+ge.lookAhead<U)){ie=ue+1;break}}N.highlightFrontier=Math.min(N.highlightFrontier,ie)}var tt=!1,Ze=!1;function st(){tt=!0}function Et(){Ze=!0}function gt(N,U,ie){this.marker=N,this.from=U,this.to=ie}function pr(N,U){if(N)for(var ie=0;ie<N.length;++ie){var ue=N[ie];if(ue.marker==U)return ue}}function qr(N,U){for(var ie,ue=0;ue<N.length;++ue)N[ue]!=U&&(ie||(ie=[])).push(N[ue]);return ie}function Qr(N,U){N.markedSpans=N.markedSpans?N.markedSpans.concat([U]):[U],U.marker.attachLine(N)}function gn(N,U,ie){var ue;if(N)for(var ge=0;ge<N.length;++ge){var Ke=N[ge],It=Ke.marker,nr=Ke.from==null||(It.inclusiveLeft?Ke.from<=U:Ke.from<U);if(nr||Ke.from==U&&It.type=="bookmark"&&(!ie||!Ke.marker.insertLeft)){var wr=Ke.to==null||(It.inclusiveRight?Ke.to>=U:Ke.to>U);(ue||(ue=[])).push(new gt(It,Ke.from,wr?null:Ke.to))}}return ue}function vr(N,U,ie){var ue;if(N)for(var ge=0;ge<N.length;++ge){var Ke=N[ge],It=Ke.marker,nr=Ke.to==null||(It.inclusiveRight?Ke.to>=U:Ke.to>U);if(nr||Ke.from==U&&It.type=="bookmark"&&(!ie||Ke.marker.insertLeft)){var wr=Ke.from==null||(It.inclusiveLeft?Ke.from<=U:Ke.from<U);(ue||(ue=[])).push(new gt(It,wr?null:Ke.from-U,Ke.to==null?null:Ke.to-U))}}return ue}function Vn(N,U){if(U.full)return null;var ie=Vr(N,U.from.line)&&Pe(N,U.from.line).markedSpans,ue=Vr(N,U.to.line)&&Pe(N,U.to.line).markedSpans;if(!ie&&!ue)return null;var ge=U.from.ch,Ke=U.to.ch,It=vt(U.from,U.to)==0,nr=gn(ie,ge,It),wr=vr(ue,Ke,It),_r=U.text.length==1,Hn=Ve(U.text).length+(_r?ge:0);if(nr)for(var ri=0;ri<nr.length;++ri){var xi=nr[ri];if(xi.to==null){var _i=pr(wr,xi.marker);_i?_r&&(xi.to=_i.to==null?null:_i.to+Hn):xi.to=ge}}if(wr)for(var la=0;la<wr.length;++la){var Ta=wr[la];if(Ta.to!=null&&(Ta.to+=Hn),Ta.from==null){var Wa=pr(nr,Ta.marker);Wa||(Ta.from=Hn,_r&&(nr||(nr=[])).push(Ta))}else Ta.from+=Hn,_r&&(nr||(nr=[])).push(Ta)}nr&&(nr=kr(nr)),wr&&wr!=nr&&(wr=kr(wr));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 gt(nr[ho].marker,null,null));for(var ns=0;ns<Na;++ns)Ma.push(qa);Ma.push(wr)}return Ma}function kr(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 Bn(N,U,ie){var ue=null;if(N.iter(U.line,ie.line+1,function(_i){if(_i.markedSpans)for(var la=0;la<_i.markedSpans.length;++la){var Ta=_i.markedSpans[la].marker;Ta.readOnly&&(!ue||G(ue,Ta)==-1)&&(ue||(ue=[])).push(Ta)}}),!ue)return null;for(var ge=[{from:U,to:ie}],Ke=0;Ke<ue.length;++Ke)for(var It=ue[Ke],nr=It.find(0),wr=0;wr<ge.length;++wr){var _r=ge[wr];if(vt(_r.to,nr.from)<0||vt(_r.from,nr.to)>0)continue;var Hn=[wr,1],ri=vt(_r.from,nr.from),xi=vt(_r.to,nr.to);(ri<0||!It.inclusiveLeft&&!ri)&&Hn.push({from:_r.from,to:nr.from}),(xi>0||!It.inclusiveRight&&!xi)&&Hn.push({from:nr.to,to:_r.to}),ge.splice.apply(ge,Hn),wr+=Hn.length-3}return ge}function on(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 jr(N,U){if(!U)return;for(var ie=0;ie<U.length;++ie)U[ie].marker.attachLine(N);N.markedSpans=U}function ai(N){return N.inclusiveLeft?-1:0}function Oi(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(),Ke=vt(ue.from,ge.from)||ai(N)-ai(U);if(Ke)return-Ke;var It=vt(ue.to,ge.to)||Oi(N)-Oi(U);return It||U.id-N.id}function rn(N,U){var ie=Ze&&N.markedSpans,ue;if(ie)for(var ge=void 0,Ke=0;Ke<ie.length;++Ke)ge=ie[Ke],ge.marker.collapsed&&(U?ge.from:ge.to)==null&&(!ue||Gi(ue,ge.marker)<0)&&(ue=ge.marker);return ue}function Cn(N){return rn(N,!0)}function Yn(N){return rn(N,!1)}function Gt(N,U){var ie=Ze&&N.markedSpans,ue;if(ie)for(var ge=0;ge<ie.length;++ge){var Ke=ie[ge];Ke.marker.collapsed&&(Ke.from==null||Ke.from<U)&&(Ke.to==null||Ke.to>U)&&(!ue||Gi(ue,Ke.marker)<0)&&(ue=Ke.marker)}return ue}function Ot(N,U,ie,ue,ge){var Ke=Pe(N,U),It=Ze&&Ke.markedSpans;if(It)for(var nr=0;nr<It.length;++nr){var wr=It[nr];if(!wr.marker.collapsed)continue;var _r=wr.marker.find(0),Hn=vt(_r.from,ie)||ai(wr.marker)-ai(ge),ri=vt(_r.to,ue)||Oi(wr.marker)-Oi(ge);if(Hn>=0&&ri<=0||Hn<=0&&ri>=0)continue;if(Hn<=0&&(wr.marker.inclusiveRight&&ge.inclusiveLeft?vt(_r.to,ie)>=0:vt(_r.to,ie)>0)||Hn>=0&&(wr.marker.inclusiveRight&&ge.inclusiveLeft?vt(_r.from,ue)<=0:vt(_r.from,ue)<0))return!0}}function Rt(N){for(var U;U=Cn(N);)N=U.find(-1,!0).line;return N}function jt(N){for(var U;U=Yn(N);)N=U.find(1,!0).line;return N}function zt(N){for(var U,ie;U=Yn(N);)N=U.find(1,!0).line,(ie||(ie=[])).push(N);return ie}function Lt(N,U){var ie=Pe(N,U),ue=Rt(ie);return ie==ue?U:Vt(ue)}function cr(N,U){if(U>N.lastLine())return U;var ie=Pe(N,U),ue;if(!Ar(N,ie))return U;for(;ue=Yn(ie);)ie=ue.find(1,!0).line;return Vt(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&&br(N,U,ue))return!0}}function br(N,U,ie){if(ie.to==null){var ue=ie.marker.find(1,!0);return br(N,ue.line,pr(ue.line.markedSpans,ie.marker))}if(ie.marker.inclusiveRight&&ie.to==U.text.length)return!0;for(var ge=void 0,Ke=0;Ke<U.markedSpans.length;++Ke)if(ge=U.markedSpans[Ke],ge.marker.collapsed&&!ge.marker.widgetNode&&ge.from==ie.to&&(ge.to==null||ge.to!=ie.from)&&(ge.marker.inclusiveLeft||ie.marker.inclusiveRight)&&br(N,U,ge))return!0}function Pr(N){N=Rt(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 Ke=ie.parent;Ke;ie=Ke,Ke=ie.parent)for(var It=0;It<Ke.children.length;++It){var nr=Ke.children[It];if(nr==ie)break;U+=nr.height}return U}function Xn(N){if(N.height==0)return 0;for(var U=N.text.length,ie,ue=N;ie=Cn(ue);){var ge=ie.find(0,!0);ue=ge.from.line,U+=ge.from.ch-ge.to.ch}for(ue=N;ie=Yn(ue);){var Ke=ie.find(0,!0);U-=ue.text.length-Ke.from.ch,ue=Ke.to.line,U+=ue.text.length-Ke.to.ch}return U}function Pn(N){var U=N.display,ie=N.doc;U.maxLine=Pe(ie,ie.first),U.maxLineLength=Xn(U.maxLine),U.maxLineChanged=!0,ie.iter(function(ue){var ge=Xn(ue);ge>U.maxLineLength&&(U.maxLineLength=ge,U.maxLine=ue)})}var di=function(U,ie,ue){this.text=U,jr(this,ie),this.height=ue?ue(this):1};di.prototype.lineNo=function(){return Vt(this)},Wt(di);function An(N,U,ie,ue){N.text=U,N.stateAfter&&(N.stateAfter=null),N.styles&&(N.styles=null),N.order!=null&&(N.order=null),on(N),jr(N,ie);var ge=ue?ue(N):1;ge!=N.height&&St(N,ge)}function Ur(N){N.parent=null,on(N)}var In={},Qn={};function $n(N,U){if(!N||/^\s*$/.test(N))return null;var ie=U.addModeClass?Qn:In;return ie[N]||(ie[N]=N.replace(/\S+/g,"cm-$&"))}function oi(N,U){var ie=R("span",null,null,o?"padding-right: .1px":null),ue={pre:R("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 Ke=ge?U.rest[ge-1]:U.line,It=void 0;ue.pos=0,ue.addToken=ki,ur(N.display.measure)&&(It=xt(Ke,N.doc.direction))&&(ue.addToken=oa(ue.addToken,It)),ue.map=[];var nr=U!=N.display.externalMeasured&&Vt(Ke);aa(Ke,ue,yn(N,Ke,nr)),Ke.styleClasses&&(Ke.styleClasses.bgClass&&(ue.bgClass=F(Ke.styleClasses.bgClass,ue.bgClass||"")),Ke.styleClasses.textClass&&(ue.textClass=F(Ke.styleClasses.textClass,ue.textClass||""))),ue.map.length==0&&ue.map.push(0,0,ue.content.appendChild(At(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 wr=ue.content.lastChild;(/\bcm-tab\b/.test(wr.className)||wr.querySelector&&wr.querySelector(".cm-tab"))&&(ue.content.className="cm-tab-wrap-hack")}return Xt(N,"renderLine",N,U.line,ue.pre),ue.pre.className&&(ue.textClass=F(ue.pre.className,ue.textClass||"")),ue}function Ti(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 ki(N,U,ie,ue,ge,Ke,It){if(!U)return;var nr=N.splitSpaces?Ri(U,N.trailingSpace):U,wr=N.cm.state.specialChars,_r=!1,Hn;if(!wr.test(U))N.col+=U.length,Hn=document.createTextNode(nr),N.map.push(N.pos,N.pos+U.length,Hn),d&&u<9&&(_r=!0),N.pos+=U.length;else{Hn=document.createDocumentFragment();for(var ri=0;;){wr.lastIndex=ri;var xi=wr.exec(U),_i=xi?xi.index-ri:U.length-ri;if(_i){var la=document.createTextNode(nr.slice(ri,ri+_i));d&&u<9?Hn.appendChild(I("span",[la])):Hn.appendChild(la),N.map.push(N.pos,N.pos+_i,la),N.col+=_i,N.pos+=_i}if(!xi)break;ri+=_i+1;var Ta=void 0;if(xi[0]==" "){var Wa=N.cm.options.tabSize,Ma=Wa-N.col%Wa;Ta=Hn.appendChild(I("span",Je(Ma),"cm-tab")),Ta.setAttribute("role","presentation"),Ta.setAttribute("cm-text"," "),N.col+=Ma}else xi[0]=="\r"||xi[0]==`
`?(Ta=Hn.appendChild(I("span",xi[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ta.setAttribute("cm-text",xi[0]),N.col+=1):(Ta=N.cm.options.specialCharPlaceholder(xi[0]),Ta.setAttribute("cm-text",xi[0]),d&&u<9?Hn.appendChild(I("span",[Ta])):Hn.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||Ke||It){var Na=ie||"";ue&&(Na+=ue),ge&&(Na+=ge);var qa=I("span",[Hn],Na,Ke);if(It)for(var ho in It)It.hasOwnProperty(ho)&&ho!="style"&&ho!="class"&&qa.setAttribute(ho,It[ho]);return N.content.appendChild(qa)}N.content.appendChild(Hn)}function Ri(N,U){if(N.length>1&&!/ /.test(N))return N;for(var ie=U,ue="",ge=0;ge<N.length;ge++){var Ke=N.charAt(ge);Ke==" "&&ie&&(ge==N.length-1||N.charCodeAt(ge+1)==32)&&(Ke="\xA0"),ue+=Ke,ie=Ke==" "}return ue}function oa(N,U){return function(ie,ue,ge,Ke,It,nr,wr){ge=ge?ge+" cm-force-border":"cm-force-border";for(var _r=ie.pos,Hn=_r+ue.length;;){for(var ri=void 0,xi=0;xi<U.length&&!(ri=U[xi],ri.to>_r&&ri.from<=_r);xi++);if(ri.to>=Hn)return N(ie,ue,ge,Ke,It,nr,wr);N(ie,ue.slice(0,ri.to-_r),ge,Ke,null,nr,wr),Ke=null,ue=ue.slice(ri.to-_r),_r=ri.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,Ke=0;if(!ue){for(var It=1;It<ie.length;It+=2)U.addToken(U,ge.slice(Ke,Ke=ie[It]),$n(ie[It+1],U.cm.options));return}for(var nr=ge.length,wr=0,_r=1,Hn="",ri,xi,_i=0,la,Ta,Wa,Ma,Na;;){if(_i==wr){la=Ta=Wa=xi="",Na=null,Ma=null,_i=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==wr&&Ss.widgetNode)qa.push(Ss);else if(Mo.from<=wr&&(Mo.to==null||Mo.to>wr||Ss.collapsed&&Mo.to==wr&&Mo.from==wr)){if(Mo.to!=null&&Mo.to!=wr&&_i>Mo.to&&(_i=Mo.to,Ta=""),Ss.className&&(la+=" "+Ss.className),Ss.css&&(xi=(xi?xi+";":"")+Ss.css),Ss.startStyle&&Mo.from==wr&&(Wa+=" "+Ss.startStyle),Ss.endStyle&&Mo.to==_i&&(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>wr&&_i>Mo.from&&(_i=Mo.from)}if(ho)for(var yl=0;yl<ho.length;yl+=2)ho[yl+1]==_i&&(Ta+=" "+ho[yl]);if(!Ma||Ma.from==wr)for(var ul=0;ul<qa.length;++ul)ma(U,0,qa[ul]);if(Ma&&(Ma.from||0)==wr){if(ma(U,(Ma.to==null?nr+1:Ma.to)-wr,Ma.marker,Ma.from==null),Ma.to==null)return;Ma.to==wr&&(Ma=!1)}}if(wr>=nr)break;for(var Pl=Math.min(nr,_i);;){if(Hn){var Vl=wr+Hn.length;if(!Ma){var Il=Vl>Pl?Hn.slice(0,Pl-wr):Hn;U.addToken(U,Il,ri?ri+la:la,Wa,wr+Il.length==_i?Ta:"",xi,Na)}if(Vl>=Pl){Hn=Hn.slice(Pl-wr),wr=Pl;break}wr=Vl,Wa=""}Hn=ge.slice(Ke,Ke=ie[_r++]),ri=$n(ie[_r++],U.cm.options)}}}function ba(N,U,ie){this.line=U,this.rest=zt(U),this.size=this.rest?Vt(Ve(this.rest))-ie+1:1,this.node=this.text=null,this.hidden=Ar(N,U)}function yi(N,U,ie){for(var ue=[],ge,Ke=U;Ke<ie;Ke=ge){var It=new ba(N.doc,Pe(N.doc,Ke),Ke);ge=Ke+It.size,ue.push(It)}return ue}var kn=null;function Ui(N){kn?kn.ops.push(N):N.ownsGroup=kn={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{kn=null,U(ie)}}var ra=null;function Lr(N,U){var ie=ir(N,U);if(!ie.length)return;var ue=Array.prototype.slice.call(arguments,2),ge;kn?ge=kn.delayedCallbacks:ra?ge=ra:(ge=ra=[],setTimeout(xr,0));for(var Ke=function(wr){ge.push(function(){return ie[wr].apply(null,ue)})},It=0;It<ie.length;++It)Ke(It)}function xr(){var N=ra;ra=null;for(var U=0;U<N.length;++U)N[U]()}function Tn(N,U,ie,ue){for(var ge=0;ge<U.changes.length;ge++){var Ke=U.changes[ge];Ke=="text"?un(N,U):Ke=="gutter"?_t(N,U,ie,ue):Ke=="class"?Fn(N,U):Ke=="widget"&&Or(N,U,ue)}U.changes=null}function mr(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&&u<8&&(N.node.style.zIndex=2)),N.node}function Mr(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=mr(U);U.background=ue.insertBefore(I("div",null,ie),ue.firstChild),N.display.input.setUneditable(U.background)}}function Xr(N,U){var ie=N.display.externalMeasured;return ie&&ie.line==U.line?(N.display.externalMeasured=null,U.measure=ie.measure,ie.built):oi(N,U)}function un(N,U){var ie=U.text.className,ue=Xr(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,Fn(N,U)):ie&&(U.text.className=ie)}function Fn(N,U){Mr(N,U),U.line.wrapClass?mr(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=mr(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 Ke=U.line.gutterMarkers;if(N.options.lineNumbers||Ke){var It=mr(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),It.insertBefore(nr,U.text),U.line.gutterClass&&(nr.className+=" "+U.line.gutterClass),N.options.lineNumbers&&(!Ke||!Ke["CodeMirror-linenumbers"])&&(U.lineNumber=nr.appendChild(I("div",hn(N.options,ie),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ue.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+N.display.lineNumInnerWidth+"px"))),Ke)for(var wr=0;wr<N.display.gutterSpecs.length;++wr){var _r=N.display.gutterSpecs[wr].className,Hn=Ke.hasOwnProperty(_r)&&Ke[_r];Hn&&nr.appendChild(I("div",[Hn],"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,Ke=void 0;ge;ge=Ke)Ke=ge.nextSibling,ue.test(ge.className)&&U.node.removeChild(ge);tn(N,U,ie)}function Nr(N,U,ie,ue){var ge=Xr(N,U);return U.text=U.node=ge.pre,ge.bgClass&&(U.bgClass=ge.bgClass),ge.textClass&&(U.textClass=ge.textClass),Fn(N,U),_t(N,U,ie,ue),tn(N,U,ue),U.node}function tn(N,U,ie){if(xn(N,U.line,U,ie,!0),U.rest)for(var ue=0;ue<U.rest.length;ue++)xn(N,U.rest[ue],U,ie,!1)}function xn(N,U,ie,ue,ge){if(!U.widgets)return;for(var Ke=mr(ie),It=0,nr=U.widgets;It<nr.length;++It){var wr=nr[It],_r=I("div",[wr.node],"CodeMirror-linewidget"+(wr.className?" "+wr.className:""));wr.handleMouseEvents||_r.setAttribute("cm-ignore-events","true"),Ln(wr,_r,ie,ue),N.display.input.setUneditable(_r),ge&&wr.above?Ke.insertBefore(_r,ie.gutter||ie.text):Ke.appendChild(_r),Lr(wr,"redraw")}}function Ln(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 Sn(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 qn(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 Wn(N){return N.lineSpace.offsetTop}function pi(N){return N.mover.offsetHeight-N.lineSpace.offsetHeight}function Pi(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 bi(N){return te-N.display.nativeBarWidth}function Ii(N){return N.display.scroller.clientWidth-bi(N)-N.display.barWidth}function zi(N){return N.display.scroller.clientHeight-bi(N)-N.display.barHeight}function ea(N,U,ie){var ue=N.options.lineWrapping,ge=ue&&Ii(N);if(!U.measure.heights||ue&&U.measure.width!=ge){var Ke=U.measure.heights=[];if(ue){U.measure.width=ge;for(var It=U.text.firstChild.getClientRects(),nr=0;nr<It.length-1;nr++){var wr=It[nr],_r=It[nr+1];Math.abs(wr.bottom-_r.bottom)>2&&Ke.push((wr.bottom+_r.top)/2-ie.top)}}Ke.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(Vt(N.rest[ge])>ie)return{map:N.measure.maps[ge],cache:N.measure.caches[ge],before:!0}}function Wi(N,U){U=Rt(U);var ie=Vt(U),ue=N.display.externalMeasured=new ba(N.doc,U,ie);ue.lineN=ie;var ge=ue.built=oi(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=Vt(U),ue=Ji(N,ie);ue&&!ue.text?ue=null:ue&&ue.changes&&(Tn(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 Ke=ie+(ue||""),It;return U.cache.hasOwnProperty(Ke)?It=U.cache[Ke]:(U.rect||(U.rect=U.view.text.getBoundingClientRect()),U.hasHeights||(ea(N,U.view,U.rect),U.hasHeights=!0),It=va(N,U,ie,ue),It.bogus||(U.cache[Ke]=It)),{left:It.left,right:It.right,top:ge?It.rtop:It.top,bottom:ge?It.rbottom:It.bottom}}var na={left:0,right:0,top:0,bottom:0};function Pa(N,U,ie){for(var ue,ge,Ke,It,nr,wr,_r=0;_r<N.length;_r+=3)if(nr=N[_r],wr=N[_r+1],U<nr?(ge=0,Ke=1,It="left"):U<wr?(ge=U-nr,Ke=ge+1):(_r==N.length-3||U==wr&&N[_r+3]>U)&&(Ke=wr-nr,ge=Ke-1,U>=wr&&(It="right")),ge!=null){if(ue=N[_r+2],nr==wr&&ie==(ue.insertLeft?"left":"right")&&(It=ie),ie=="left"&&ge==0)for(;_r&&N[_r-2]==N[_r-3]&&N[_r-1].insertLeft;)ue=N[(_r-=3)+2],It="left";if(ie=="right"&&ge==wr-nr)for(;_r<N.length-3&&N[_r+3]==N[_r+4]&&!N[_r+5].insertLeft;)ue=N[(_r+=3)+2],It="right";break}return{node:ue,start:ge,end:Ke,collapse:It,coverStart:nr,coverEnd:wr}}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),Ke=ge.node,It=ge.start,nr=ge.end,wr=ge.collapse,_r;if(Ke.nodeType==3){for(var Hn=0;Hn<4;Hn++){for(;It&&be(U.line.text.charAt(ge.coverStart+It));)--It;for(;ge.coverStart+nr<ge.coverEnd&&be(U.line.text.charAt(ge.coverStart+nr));)++nr;if(d&&u<9&&It==0&&nr==ge.coverEnd-ge.coverStart?_r=Ke.parentNode.getBoundingClientRect():_r=La(M(Ke,It,nr).getClientRects(),ue),_r.left||_r.right||It==0)break;nr=It,It=It-1,wr="right"}d&&u<11&&(_r=ga(N.display.measure,_r))}else{It>0&&(wr=ue="right");var ri;N.options.lineWrapping&&(ri=Ke.getClientRects()).length>1?_r=ri[ue=="right"?ri.length-1:0]:_r=Ke.getBoundingClientRect()}if(d&&u<9&&!It&&(!_r||!_r.left&&!_r.right)){var xi=Ke.parentNode.getClientRects()[0];xi?_r={left:xi.left,right:xi.left+Io(N.display),top:xi.top,bottom:xi.bottom}:_r=na}for(var _i=_r.top-U.rect.top,la=_r.bottom-U.rect.top,Ta=(_i+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:(wr=="right"?_r.right:_r.left)-U.rect.left,right:(wr=="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=_i,ho.rbottom=la),ho}function ga(N,U){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!pt(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,w(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 Fi(N){var U=0;if(N.widgets)for(var ie=0;ie<N.widgets.length;++ie)N.widgets[ie].above&&(U+=Sn(N.widgets[ie]));return U}function io(N,U,ie,ue,ge){if(!ge){var Ke=Fi(U);ie.top+=Ke,ie.bottom+=Ke}if(ue=="line")return ie;ue||(ue="local");var It=Pr(U);if(ue=="local"?It+=Wn(N.display):It-=N.display.viewOffset,ue=="page"||ue=="window"){var nr=N.display.lineSpace.getBoundingClientRect();It+=nr.top+(ue=="window"?0:Va());var wr=nr.left+(ue=="window"?0:_a());ie.left+=wr,ie.right+=wr}return ie.top+=It,ie.bottom+=It,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 Ke=N.display.sizer.getBoundingClientRect();ue+=Ke.left,ge+=Ke.top}var It=N.display.lineSpace.getBoundingClientRect();return{left:ue-It.left,top:ge-It.top}}function Qo(N,U,ie,ue,ge){return ue||(ue=Pe(N.doc,U.line)),io(N,ue,ji(N,ue,U.ch,ge),ie)}function mo(N,U,ie,ue,ge,Ke){ue=ue||Pe(N.doc,U.line),ge||(ge=ca(N,ue));function It(la,Ta){var Wa=Ca(N,ge,la,Ta?"right":"left",Ke);return Ta?Wa.left=Wa.right:Wa.right=Wa.left,io(N,ue,Wa,ie)}var nr=xt(ue,N.doc.direction),wr=U.ch,_r=U.sticky;if(wr>=ue.text.length?(wr=ue.text.length,_r="before"):wr<=0&&(wr=0,_r="after"),!nr)return It(_r=="before"?wr-1:wr,_r=="before");function Hn(la,Ta,Wa){var Ma=nr[Ta],Na=Ma.level==1;return It(Wa?la-1:la,Na!=Wa)}var ri=ke(nr,wr,_r),xi=Se,_i=Hn(wr,ri,_r=="before");return xi!=null&&(_i.other=Hn(wr,xi,_r!="before")),_i}function To(N,U){var ie=0;U=kt(N.doc,U),N.options.lineWrapping||(ie=Io(N.display)*U.ch);var ue=Pe(N.doc,U.line),ge=Pr(ue)+Wn(N.display);return{left:ie,right:ie,top:ge,bottom:ge+ue.height}}function ao(N,U,ie,ue,ge){var Ke=Ft(N,U,ie);return Ke.xRel=ge,ue&&(Ke.outside=ue),Ke}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=Rr(ue,ie),Ke=ue.first+ue.size-1;if(ge>Ke)return ao(ue.first+ue.size-1,Pe(ue,Ke).text.length,null,1,1);U<0&&(U=0);for(var It=Pe(ue,ge);;){var nr=Uo(N,It,ge,U,ie),wr=Gt(It,nr.ch+(nr.xRel>0||nr.outside>0?1:0));if(!wr)return nr;var _r=wr.find(1);if(_r.line==ge)return _r;It=Pe(ue,ge=_r.line)}}function bo(N,U,ie,ue){ue-=Fi(U);var ge=U.text.length,Ke=Be(function(It){return Ca(N,ie,It-1).bottom<=ue},ge,0);return ge=Be(function(It){return Ca(N,ie,It).top>ue},Ke,ge),{begin:Ke,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-=Pr(U);var Ke=ca(N,U),It=Fi(U),nr=0,wr=U.text.length,_r=!0,Hn=xt(U,N.doc.direction);if(Hn){var ri=(N.options.lineWrapping?ts:wo)(N,U,ie,Ke,Hn,ue,ge);_r=ri.level!=1,nr=_r?ri.from:ri.to-1,wr=_r?ri.to:ri.from-1}var xi=null,_i=null,la=Be(function(ns){var Mo=Ca(N,Ke,ns);return Mo.top+=It,Mo.bottom+=It,Jo(Mo,ue,ge,!1)?(Mo.top<=ge&&Mo.left<=ue&&(xi=ns,_i=Mo),!0):!1},nr,wr),Ta,Wa,Ma=!1;if(_i){var Na=ue-_i.left<_i.right-ue,qa=Na==_r;la=xi+(qa?0:1),Wa=qa?"after":"before",Ta=Na?_i.left:_i.right}else{!_r&&(la==wr||la==nr)&&la++,Wa=la==0?"after":la==U.text.length?"before":Ca(N,Ke,la-(_r?1:0)).bottom+It<=ge==_r?"after":"before";var ho=mo(N,Ft(ie,la,Wa),"line",U,Ke);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,Ke,It){var nr=Be(function(ri){var xi=ge[ri],_i=xi.level!=1;return Jo(mo(N,Ft(ie,_i?xi.to:xi.from,_i?"before":"after"),"line",U,ue),Ke,It,!0)},0,ge.length-1),wr=ge[nr];if(nr>0){var _r=wr.level!=1,Hn=mo(N,Ft(ie,_r?wr.from:wr.to,_r?"after":"before"),"line",U,ue);Jo(Hn,Ke,It,!0)&&Hn.top>It&&(wr=ge[nr-1])}return wr}function ts(N,U,ie,ue,ge,Ke,It){var nr=bo(N,U,ue,It),wr=nr.begin,_r=nr.end;/\s/.test(U.text.charAt(_r-1))&&_r--;for(var Hn=null,ri=null,xi=0;xi<ge.length;xi++){var _i=ge[xi];if(_i.from>=_r||_i.to<=wr)continue;var la=_i.level!=1,Ta=Ca(N,ue,la?Math.min(_r,_i.to)-1:Math.max(wr,_i.from)).right,Wa=Ta<Ke?Ke-Ta+1e9:Ta-Ke;(!Hn||ri>Wa)&&(Hn=_i,ri=Wa)}return Hn||(Hn=ge[ge.length-1]),Hn.from<wr&&(Hn={from:wr,to:Hn.to,level:Hn.level}),Hn.to>_r&&(Hn={from:Hn.from,to:_r,level:Hn.level}),Hn}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),w(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,Ke=U.gutters.firstChild,It=0;Ke;Ke=Ke.nextSibling,++It){var nr=N.display.gutterSpecs[It].className;ie[nr]=Ke.offsetLeft+Ke.clientLeft+ge,ue[nr]=Ke.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 Ke=0;if(ge.widgets)for(var It=0;It<ge.widgets.length;It++)ge.widgets[It].height&&(Ke+=ge.widgets[It].height);return ie?Ke+(Math.ceil(ge.text.length/ue)||1)*U:Ke+U}}function Ho(N){var U=N.doc,ie=rs(N);U.iter(function(ue){var ge=ie(ue);ge!=ue.height&&St(ue,ge)})}function _o(N,U,ie,ue){var ge=N.display;if(!ie&&qe(U).getAttribute("cm-not-content")=="true")return null;var Ke,It,nr=ge.lineSpace.getBoundingClientRect();try{Ke=U.clientX-nr.left,It=U.clientY-nr.top}catch(ri){return null}var wr=So(N,Ke,It),_r;if(ue&&wr.xRel>0&&(_r=Pe(N.doc,wr.line).text).length==wr.ch){var Hn=V(_r,_r.length,N.options.tabSize)-_r.length;wr=Ft(wr.line,Math.max(0,Math.round((Ke-Pi(N.display).left)/Io(N.display))-Hn))}return wr}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&&Lt(N.doc,U)<ge.viewTo&&Tr(N);else if(ie<=ge.viewFrom)Ze&&cr(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 Ke=en(N,ie,ie+ue,1);Ke?(ge.view=ge.view.slice(Ke.index),ge.viewFrom=Ke.lineN,ge.viewTo+=ue):Tr(N)}else if(ie>=ge.viewTo){var It=en(N,U,U,-1);It?(ge.view=ge.view.slice(0,It.index),ge.viewTo=It.lineN):Tr(N)}else{var nr=en(N,U,U,-1),wr=en(N,ie,ie+ue,1);nr&&wr?(ge.view=ge.view.slice(0,nr.index).concat(yi(N,nr.lineN,wr.lineN)).concat(ge.view.slice(wr.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 mt(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 Ke=ue.view[uo(N,U)];if(Ke.node==null)return;var It=Ke.changes||(Ke.changes=[]);G(It,ie)==-1&&It.push(ie)}function Tr(N){N.display.viewFrom=N.display.viewTo=N.doc.first,N.display.view=[],N.display.viewOffset=0}function en(N,U,ie,ue){var ge=uo(N,U),Ke,It=N.display.view;if(!Ze||ie==N.doc.first+N.doc.size)return{index:ge,lineN:ie};for(var nr=N.display.viewFrom,wr=0;wr<ge;wr++)nr+=It[wr].size;if(nr!=U){if(ue>0){if(ge==It.length-1)return null;Ke=nr+It[ge].size-U,ge++}else Ke=nr-U;U+=Ke,ie+=Ke}for(;Lt(N.doc,ie)!=ie;){if(ge==(ue<0?0:It.length-1))return null;ie+=ue*It[ge-(ue<0?1:0)].size,ge+=ue}return{index:ge,lineN:ie}}function Jr(N,U,ie){var ue=N.display,ge=ue.view;ge.length==0||U>=ue.viewTo||ie<=ue.viewFrom?(ue.view=yi(N,U,ie),ue.viewFrom=U):(ue.viewFrom>U?ue.view=yi(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(yi(N,ue.viewTo,ie)):ue.viewTo>ie&&(ue.view=ue.view.slice(0,uo(N,ie)))),ue.viewTo=ie}function Jn(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 fn(N){N.display.input.showSelection(N.display.input.prepareSelection())}function Yr(N,U){U===void 0&&(U=!0);for(var ie=N.doc,ue={},ge=ue.cursors=document.createDocumentFragment(),Ke=ue.selection=document.createDocumentFragment(),It=0;It<ie.sel.ranges.length;It++){if(!U&&It==ie.sel.primIndex)continue;var nr=ie.sel.ranges[It];if(nr.from().line>=N.display.viewTo||nr.to().line<N.display.viewFrom)continue;var wr=nr.empty();(wr||N.options.showCursorWhenSelecting)&&ni(N,nr.head,ge),wr||zn(N,nr,Ke)}return ue}function ni(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 Ke=ie.appendChild(I("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ke.style.display="",Ke.style.left=ue.other.left+"px",Ke.style.top=ue.other.top+"px",Ke.style.height=(ue.other.bottom-ue.other.top)*.85+"px"}}function nn(N,U){return N.top-U.top||N.left-U.left}function zn(N,U,ie){var ue=N.display,ge=N.doc,Ke=document.createDocumentFragment(),It=Pi(N.display),nr=It.left,wr=Math.max(ue.sizerWidth,Ii(N)-ue.sizer.offsetLeft)-It.right,_r=ge.direction=="ltr";function Hn(qa,ho,ns,Mo){ho<0&&(ho=0),ho=Math.round(ho),Mo=Math.round(Mo),Ke.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+qa+`px;
top: `+ho+"px; width: "+(ns==null?wr-qa:ns)+`px;
height: `+(Mo-ho)+"px"))}function ri(qa,ho,ns){var Mo=Pe(ge,qa),Ss=Mo.text.length,Zs,yl;function ul(Il,Gl){return Qo(N,Ft(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=xt(Mo,ge.direction);return fe(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?wr:(vl?El:gl).right;Hn(Eu,gl.top,uu-Eu,gl.bottom)}else{var ku,Yl,Tu,Vu;vl?(ku=_r&&Bu&&vs?nr:gl.left,Yl=_r?wr:Pl(Il,Fl,"before"),Tu=_r?nr:Pl(Gl,Fl,"after"),Vu=_r&&Ks&&lu?wr:El.right):(ku=_r?Pl(Il,Fl,"before"):nr,Yl=!_r&&Bu&&vs?wr:gl.right,Tu=!_r&&Ks&&lu?nr:El.left,Vu=_r?Pl(Gl,Fl,"after"):wr),Hn(ku,gl.top,Yl-ku,gl.bottom),gl.bottom<El.top&&Hn(nr,gl.bottom,null,El.top),Hn(Tu,El.top,Vu-Tu,El.bottom)}(!Zs||nn(gl,Zs)<0)&&(Zs=gl),nn(El,Zs)<0&&(Zs=El),(!yl||nn(gl,yl)<0)&&(yl=gl),nn(El,yl)<0&&(yl=El)}),{start:Zs,end:yl}}var xi=U.from(),_i=U.to();if(xi.line==_i.line)ri(xi.line,xi.ch,_i.ch);else{var la=Pe(ge,xi.line),Ta=Pe(ge,_i.line),Wa=Rt(la)==Rt(Ta),Ma=ri(xi.line,xi.ch,Wa?la.text.length+1:null).end,Na=ri(_i.line,Wa?0:null,_i.ch).start;Wa&&(Ma.top<Na.top-2?(Hn(Ma.right,Ma.top,null,Ma.bottom),Hn(nr,Na.top,Na.left,Na.bottom)):Hn(Ma.right,Ma.top,Na.left-Ma.right,Ma.bottom)),Ma.bottom<Na.top&&Hn(nr,Ma.bottom,null,Na.top)}ie.appendChild(Ke)}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(),Ci(N))}function si(N){N.state.delayingBlurEvent=!0,setTimeout(function(){N.state.delayingBlurEvent&&(N.state.delayingBlurEvent=!1,mi(N))},100)}function Ci(N,U){if(N.state.delayingBlurEvent&&(N.state.delayingBlurEvent=!1),N.options.readOnly=="nocursor")return;N.state.focused||(Xt(N,"focus",N,U),N.state.focused=!0,X(N.display.wrapper,"CodeMirror-focused"),!N.curOp&&N.display.selForContextMenu!=N.doc.sel&&(N.display.input.reset(),o&&setTimeout(function(){return N.display.input.reset(!0)},20)),N.display.input.receivedFocus()),li(N)}function mi(N,U){if(N.state.delayingBlurEvent)return;N.state.focused&&(Xt(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 Ai(N){for(var U=N.display,ie=U.lineDiv.offsetTop,ue=0;ue<U.view.length;ue++){var ge=U.view[ue],Ke=N.options.lineWrapping,It=void 0,nr=0;if(ge.hidden)continue;if(d&&u<8){var wr=ge.node.offsetTop+ge.node.offsetHeight;It=wr-ie,ie=wr}else{var _r=ge.node.getBoundingClientRect();It=_r.bottom-_r.top,!Ke&&ge.text.firstChild&&(nr=ge.text.firstChild.getBoundingClientRect().right-_r.left-1)}var Hn=ge.line.height-It;if((Hn>.005||Hn<-.005)&&(St(ge.line,It),Ni(ge.line),ge.rest))for(var ri=0;ri<ge.rest.length;ri++)Ni(ge.rest[ri]);if(nr>N.display.sizerWidth){var xi=Math.ceil(nr/Io(N.display));xi>N.display.maxLineLength&&(N.display.maxLineLength=xi,N.display.maxLine=ge.line,N.display.maxLineChanged=!0)}}}function Ni(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-Wn(N));var ge=ie&&ie.bottom!=null?ie.bottom:ue+N.wrapper.clientHeight,Ke=Rr(U,ue),It=Rr(U,ge);if(ie&&ie.ensure){var nr=ie.ensure.from.line,wr=ie.ensure.to.line;nr<Ke?(Ke=nr,It=Rr(U,Pr(Pe(U,nr))+N.wrapper.clientHeight)):Math.min(wr,U.lastLine())>=It&&(Ke=Rr(U,Pr(Pe(U,wr))-N.wrapper.clientHeight),It=wr)}return{from:Ke,to:Math.max(It,Ke+1)}}function Ki(N,U){if(hr(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 Ke=I("div","\u200B",null,`position: absolute;
top: `+(U.top-ie.viewOffset-Wn(N.display))+`px;
height: `+(U.bottom-U.top+bi(N)+ie.barHeight)+`px;
left: `+U.left+"px; width: "+Math.max(2,U.right-U.left)+"px;");N.display.lineSpace.appendChild(Ke),Ke.scrollIntoView(ge),N.display.lineSpace.removeChild(Ke)}}function fa(N,U,ie,ue){ue==null&&(ue=0);var ge;!N.options.lineWrapping&&U==ie&&(U=U.ch?Ft(U.line,U.sticky=="before"?U.ch-1:U.ch,"after"):U,ie=U.sticky=="before"?Ft(U.line,U.ch+1,"before"):U);for(var Ke=0;Ke<5;Ke++){var It=!1,nr=mo(N,U),wr=!ie||ie==U?nr:mo(N,ie);ge={left:Math.min(nr.left,wr.left),top:Math.min(nr.top,wr.top)-ue,right:Math.max(nr.left,wr.left),bottom:Math.max(nr.bottom,wr.bottom)+ue};var _r=xa(N,ge),Hn=N.doc.scrollTop,ri=N.doc.scrollLeft;if(_r.scrollTop!=null&&(Ea(N,_r.scrollTop),Math.abs(N.doc.scrollTop-Hn)>1&&(It=!0)),_r.scrollLeft!=null&&(Ka(N,_r.scrollLeft),Math.abs(N.doc.scrollLeft-ri)>1&&(It=!0)),!It)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,Ke=zi(N),It={};U.bottom-U.top>Ke&&(U.bottom=U.top+Ke);var nr=N.doc.height+pi(ie),wr=U.top<ue,_r=U.bottom>nr-ue;if(U.top<ge)It.scrollTop=wr?0:U.top;else if(U.bottom>ge+Ke){var Hn=Math.min(U.top,(_r?nr:U.bottom)-Ke);Hn!=ge&&(It.scrollTop=Hn)}var ri=N.options.fixedGutter?0:ie.gutters.offsetWidth,xi=N.curOp&&N.curOp.scrollLeft!=null?N.curOp.scrollLeft:ie.scroller.scrollLeft-ri,_i=Ii(N)-ie.gutters.offsetWidth,la=U.right-U.left>_i;return la&&(U.right=U.left+_i),U.left<10?It.scrollLeft=0:U.left<xi?It.scrollLeft=Math.max(0,U.left+ri-(la?0:10)):U.right>_i+xi-3&&(It.scrollLeft=U.right+(la?0:10)-_i),It}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+bi(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"),Ke=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ge.tabIndex=Ke.tabIndex=-1,U(ge),U(Ke),He(ge,"scroll",function(){ge.clientHeight&&ie(ge.scrollTop,"vertical")}),He(Ke,"scroll",function(){Ke.clientWidth&&ie(Ke.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&u<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 Ke=N.viewWidth-N.barLeft-(ie?ue:0);this.horiz.firstChild.style.width=Math.max(0,N.scrollWidth-N.clientWidth+Ke)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&N.clientHeight>0&&(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&&!l?"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(),Ke=ie=="vert"?document.elementFromPoint(ge.right-1,(ge.top+ge.bottom)/2):document.elementFromPoint((ge.right+ge.left)/2,ge.bottom-1);Ke!=N?N.style.pointerEvents="none":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&&Ai(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),He(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&&X(N.display.wrapper,N.display.scrollbars.addClass)}var Ko=0;function as(N){N.curOp={cm:N,viewChanged:!1,startHeight:N.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ko},Ui(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 Ke=0;Ke<U.length;Ke++)Fo(U[Ke]);for(var It=0;It<U.length;It++)il(U[It])}function $a(N){var U=N.cm,ie=U.display;Ll(U),N.updateMaxLine&&Pn(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&&Ai(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+bi(U)+U.display.barWidth),N.maxScrollLeft=Math.max(0,ie.sizer.offsetLeft+N.adjustWidthTo-Ii(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==P();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,kt(ue,N.scrollToPos.from),kt(ue,N.scrollToPos.to),N.scrollToPos.margin);Ki(U,ge)}var Ke=N.maybeHiddenMarkers,It=N.maybeUnhiddenMarkers;if(Ke)for(var nr=0;nr<Ke.length;++nr)Ke[nr].lines.length||Xt(Ke[nr],"hide");if(It)for(var wr=0;wr<It.length;++wr)It[wr].lines.length&&Xt(It[wr],"unhide");ie.wrapper.offsetHeight&&(ue.scrollTop=U.display.scroller.scrollTop),N.changeObjs&&Xt(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(wn,N))}function wn(N){var U=N.doc;if(U.highlightFrontier>=N.display.viewTo)return;var ie=+new Date+N.options.workTime,ue=ti(N,U.highlightFrontier),ge=[];U.iter(ue.line,Math.min(U.first+U.size,N.display.viewTo+500),function(Ke){if(ue.line>=N.display.viewFrom){var It=Ke.styles,nr=Ke.text.length>N.options.maxHighlightLength?$t(U.mode,ue.state):null,wr=dn(N,Ke,ue,!0);nr&&(ue.state=nr),Ke.styles=wr.styles;var _r=Ke.styleClasses,Hn=wr.classes;Hn?Ke.styleClasses=Hn:_r&&(Ke.styleClasses=null);for(var ri=!It||It.length!=Ke.styles.length||_r!=Hn&&(!_r||!Hn||_r.bgClass!=Hn.bgClass||_r.textClass!=Hn.textClass),xi=0;!ri&&xi<It.length;++xi)ri=It[xi]!=Ke.styles[xi];ri&&ge.push(ue.line),Ke.stateAfter=ue.save(),ue.nextLine()}else Ke.text.length<=N.options.maxHighlightLength&&ei(N,Ke.text,ue),Ke.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 Ke=0;Ke<ge.length;Ke++)mt(N,ge[Ke],"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=Ii(U),this.force=ue,this.dims=os(U),this.events=[]};Ns.prototype.signal=function(N,U){Pt(N,U)&&this.events.push(arguments)},Ns.prototype.finish=function(){for(var N=0;N<this.events.length;N++)Xt.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=bi(N)+"px",U.sizer.style.marginBottom=-U.nativeBarWidth+"px",U.sizer.style.borderRightWidth=bi(N)+"px",U.scrollbarsClipped=!0)}function el(N){if(N.hasFocus())return null;var U=P();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==P())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&&Jn(N)==0)return!1;Js(N)&&(Tr(N),U.dims=os(N));var ge=ue.first+ue.size,Ke=Math.max(U.visible.from-N.options.viewportMargin,ue.first),It=Math.min(ge,U.visible.to+N.options.viewportMargin);ie.viewFrom<Ke&&Ke-ie.viewFrom<20&&(Ke=Math.max(ue.first,ie.viewFrom)),ie.viewTo>It&&ie.viewTo-It<20&&(It=Math.min(ge,ie.viewTo)),Ze&&(Ke=Lt(N.doc,Ke),It=cr(N.doc,It));var nr=Ke!=ie.viewFrom||It!=ie.viewTo||ie.lastWrapHeight!=U.wrapperHeight||ie.lastWrapWidth!=U.wrapperWidth;Jr(N,Ke,It),ie.viewOffset=Pr(Pe(N.doc,ie.viewFrom)),N.display.mover.style.top=ie.viewOffset+"px";var wr=Jn(N);if(!nr&&wr==0&&!U.force&&ie.renderedView==ie.view&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo))return!1;var _r=el(N);return wr>4&&(ie.lineDiv.style.display="none"),tl(N,ie.updateLineNumbers,U.dims),wr>4&&(ie.lineDiv.style.display=""),ie.renderedView=ie.view,Gs(_r),w(ie.cursorDiv),w(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==Ii(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;Ai(N);var ge=lo(N);fn(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)){Ai(N),ks(N,ie);var ue=lo(N);fn(N),Lo(N,ue),Bs(N,ue),ie.finish()}}function tl(N,U,ie){var ue=N.display,ge=N.options.lineNumbers,Ke=ue.lineDiv,It=Ke.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 wr=ue.view,_r=ue.viewFrom,Hn=0;Hn<wr.length;Hn++){var ri=wr[Hn];if(!ri.hidden)if(!ri.node||ri.node.parentNode!=Ke){var xi=Nr(N,ri,_r,ie);Ke.insertBefore(xi,It)}else{for(;It!=ri.node;)It=nr(It);var _i=ge&&U!=null&&U<=_r&&ri.lineNumber;ri.changes&&(G(ri.changes,"gutter")>-1&&(_i=!1),Tn(N,ri,_r,ie)),_i&&(w(ri.lineNumber),ri.lineNumber.appendChild(document.createTextNode(hn(N.options,_r)))),It=ri.node.nextSibling}_r+=ri.size}for(;It;)It=nr(It)}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+bi(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,Ke=ue+"px",It=0;It<ie.length;It++)if(!ie[It].hidden){N.options.fixedGutter&&(ie[It].gutter&&(ie[It].gutter.style.left=Ke),ie[It].gutterBackground&&(ie[It].gutterBackground.style.left=Ke));var nr=ie[It].alignable;if(nr)for(var wr=0;wr<nr.length;wr++)nr[wr].style.left=Ke}N.options.fixedGutter&&(U.gutters.style.left=ue+ge+"px")}function Js(N){if(!N.options.lineNumbers)return!1;var U=N.doc,ie=hn(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")),Ke=ge.firstChild.offsetWidth,It=ge.offsetWidth-Ke;return ue.lineGutter.style.width="",ue.lineNumInnerWidth=Math.max(Ke,ue.lineGutter.offsetWidth-It)+1,ue.lineNumWidth=ue.lineNumInnerWidth+It,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 Ke=N[ge],It=null;if(typeof Ke!="string"&&(It=Ke.style,Ke=Ke.className),Ke=="CodeMirror-linenumbers")if(U)ue=!0;else continue;ie.push({className:Ke,style:It})}return U&&!ue&&ie.push({className:"CodeMirror-linenumbers",style:null}),ie}function No(N){var U=N.gutters,ie=N.gutterSpecs;w(U),N.lineGutter=null;for(var ue=0;ue<ie.length;++ue){var ge=ie[ue],Ke=ge.className,It=ge.style,nr=U.appendChild(I("div",null,"CodeMirror-gutter "+Ke));It&&(nr.style.cssText=It),Ke=="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=R("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=R("div",[ge.measure,ge.lineMeasure,ge.selectionDiv,ge.cursorDiv,ge.lineDiv],null,"position: relative; outline: none");var Ke=R("div",[ge.lineSpace],"CodeMirror-lines");ge.mover=I("div",[Ke],null,"position: relative"),ge.sizer=I("div",[ge.mover],"CodeMirror-sizer"),ge.sizerWidth=null,ge.heightForcer=I("div",null,null,"position: absolute; height: "+te+"px; width: 1px;"),ge.gutters=I("div",null,"CodeMirror-gutters"),ge.lineGutter=null,ge.scroller=I("div",[ge.sizer,ge.heightForcer,ge.gutters],"CodeMirror-scroll"),ge.scroller.setAttribute("tabIndex","-1"),ge.wrapper=I("div",[ge.scrollbarFiller,ge.gutterFiller,ge.scroller],"CodeMirror"),d&&u<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,Ut=null;d?Ut=-.53:x?Ut=15:t?Ut=-.7:e&&(Ut=-1/3);function or(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 Nn(N){var U=or(N);return U.x*=Ut,U.y*=Ut,U}function hi(N,U){var ie=or(U),ue=ie.x,ge=ie.y,Ke=N.display,It=Ke.scroller,nr=It.scrollWidth>It.clientWidth,wr=It.scrollHeight>It.clientHeight;if(!(ue&&nr||ge&&wr))return;if(ge&&g&&o){e:for(var _r=U.target,Hn=Ke.view;_r!=It;_r=_r.parentNode)for(var ri=0;ri<Hn.length;ri++)if(Hn[ri].node==_r){N.display.currentWheelTarget=_r;break e}}if(ue&&!x&&!s&&Ut!=null){ge&&wr&&Ea(N,Math.max(0,It.scrollTop+ge*Ut)),Ka(N,Math.max(0,It.scrollLeft+ue*Ut)),(!ge||ge&&wr)&&Ge(U),Ke.wheelStartX=null;return}if(ge&&Ut!=null){var xi=ge*Ut,_i=N.doc.scrollTop,la=_i+Ke.wrapper.clientHeight;xi<0?_i=Math.max(0,_i+xi-50):la=Math.min(N.doc.height,la+xi+50),Qs(N,{top:_i,bottom:la})}go<20&&(Ke.wheelStartX==null?(Ke.wheelStartX=It.scrollLeft,Ke.wheelStartY=It.scrollTop,Ke.wheelDX=ue,Ke.wheelDY=ge,setTimeout(function(){if(Ke.wheelStartX==null)return;var Ta=It.scrollLeft-Ke.wheelStartX,Wa=It.scrollTop-Ke.wheelStartY,Ma=Wa&&Ke.wheelDY&&Wa/Ke.wheelDY||Ta&&Ke.wheelDX&&Ta/Ke.wheelDX;if(Ke.wheelStartX=Ke.wheelStartY=null,!Ma)return;Ut=(Ut*go+Ma)/(go+1),++go},200)):(Ke.wheelDX+=ue,Ke.wheelDY+=ge))}var Nt=function(U,ie){this.ranges=U,this.primIndex=ie};Nt.prototype.primary=function(){return this.ranges[this.primIndex]},Nt.prototype.equals=function(N){if(N==this)return!0;if(N.primIndex!=this.primIndex||N.ranges.length!=this.ranges.length)return!1;for(var U=0;U<this.ranges.length;U++){var ie=this.ranges[U],ue=N.ranges[U];if(!bt(ie.anchor,ue.anchor)||!bt(ie.head,ue.head))return!1}return!0},Nt.prototype.deepCopy=function(){for(var N=[],U=0;U<this.ranges.length;U++)N[U]=new ce(fr(this.ranges[U].anchor),fr(this.ranges[U].head));return new Nt(N,this.primIndex)},Nt.prototype.somethingSelected=function(){for(var N=0;N<this.ranges.length;N++)if(!this.ranges[N].empty())return!0;return!1},Nt.prototype.contains=function(N,U){U||(U=N);for(var ie=0;ie<this.ranges.length;ie++){var ue=this.ranges[ie];if(vt(U,ue.from())>=0&&vt(N,ue.to())<=0)return ie}return-1};var ce=function(U,ie){this.anchor=U,this.head=ie};ce.prototype.from=function(){return Mt(this.anchor,this.head)},ce.prototype.to=function(){return Qt(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(xi,_i){return vt(xi.from(),_i.from())}),ie=G(U,ge);for(var Ke=1;Ke<U.length;Ke++){var It=U[Ke],nr=U[Ke-1],wr=vt(nr.to(),It.from());if(ue&&!It.empty()?wr>0:wr>=0){var _r=Mt(nr.from(),It.from()),Hn=Qt(nr.to(),It.to()),ri=nr.empty()?It.from()==It.head:nr.from()==nr.head;Ke<=ie&&--ie,U.splice(--Ke,2,new ce(ri?Hn:_r,ri?_r:Hn))}}return new Nt(U,ie)}function Oe(N,U){return new Nt([new ce(N,U||N)],0)}function Qe(N){return N.text?Ft(N.from.line+N.text.length-1,Ve(N.text).length+(N.text.length==1?N.from.ch:0)):N.to}function Dt(N,U){if(vt(N,U.from)<0)return N;if(vt(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),Ft(ie,ue)}function lr(N,U){for(var ie=[],ue=0;ue<N.sel.ranges.length;ue++){var ge=N.sel.ranges[ue];ie.push(new ce(Dt(ge.anchor,U),Dt(ge.head,U)))}return xe(N.cm,ie,N.sel.primIndex)}function Zr(N,U,ie){return N.line==U.line?Ft(ie.line,N.ch-U.ch+ie.ch):Ft(ie.line+(N.line-U.line),N.ch)}function mn(N,U,ie){for(var ue=[],ge=Ft(N.first,0),Ke=ge,It=0;It<U.length;It++){var nr=U[It],wr=Zr(nr.from,ge,Ke),_r=Zr(Qe(nr),ge,Ke);if(ge=nr.to,Ke=_r,ie=="around"){var Hn=N.sel.ranges[It],ri=vt(Hn.head,Hn.anchor)<0;ue[It]=new ce(ri?_r:wr,ri?wr:_r)}else ue[It]=new ce(wr,wr)}return new Nt(ue,N.sel.primIndex)}function Dn(N){N.doc.mode=gi(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 Si(N,U){return U.from.ch==0&&U.to.ch==0&&Ve(U.text)==""&&(!N.cm||N.cm.options.wholeLineUpdateBefore)}function vi(N,U,ie,ue){function ge(Na){return ie?ie[Na]:null}function Ke(Na,qa,ho){An(Na,qa,ho,ue),Lr(Na,"change",Na,U)}function It(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,wr=U.to,_r=U.text,Hn=Pe(N,nr.line),ri=Pe(N,wr.line),xi=Ve(_r),_i=ge(_r.length-1),la=wr.line-nr.line;if(U.full)N.insert(0,It(0,_r.length)),N.remove(_r.length,N.size-_r.length);else if(Si(N,U)){var Ta=It(0,_r.length-1);Ke(ri,ri.text,_i),la&&N.remove(nr.line,la),Ta.length&&N.insert(nr.line,Ta)}else if(Hn==ri)if(_r.length==1)Ke(Hn,Hn.text.slice(0,nr.ch)+xi+Hn.text.slice(wr.ch),_i);else{var Wa=It(1,_r.length-1);Wa.push(new di(xi+Hn.text.slice(wr.ch),_i,ue)),Ke(Hn,Hn.text.slice(0,nr.ch)+_r[0],ge(0)),N.insert(nr.line+1,Wa)}else if(_r.length==1)Ke(Hn,Hn.text.slice(0,nr.ch)+_r[0]+ri.text.slice(wr.ch),ge(0)),N.remove(nr.line+1,la);else{Ke(Hn,Hn.text.slice(0,nr.ch)+_r[0],ge(0)),Ke(ri,xi+ri.text.slice(wr.ch),_i);var Ma=It(1,_r.length-1);la>1&&N.remove(nr.line+1,la-1),N.insert(nr.line+1,Ma)}Lr(N,"change",N,U)}function Qi(N,U,ie){function ue(ge,Ke,It){if(ge.linked)for(var nr=0;nr<ge.linked.length;++nr){var wr=ge.linked[nr];if(wr.doc==Ke)continue;var _r=It&&wr.sharedHist;if(ie&&!_r)continue;U(wr.doc,_r),ue(wr.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),Dn(N),Ua(N),N.options.lineWrapping||Pn(N),N.options.mode=U.modeOption,Ha(N)}function Ua(N){(N.doc.direction=="rtl"?X: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:fr(U.from),to:Qe(U),text:et(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=Ve(N);if(U.ranges)N.pop();else break}}function Es(N,U){if(U)return Bo(N.done),Ve(N.done);if(N.done.length&&!Ve(N.done).ranges)return Ve(N.done);if(N.done.length>1&&!N.done[N.done.length-2].ranges)return N.done.pop(),Ve(N.done)}function As(N,U,ie,ue){var ge=N.history;ge.undone.length=0;var Ke=+new Date,It,nr;if((ge.lastOp==ue||ge.lastOrigin==U.origin&&U.origin&&(U.origin.charAt(0)=="+"&&ge.lastModTime>Ke-(N.cm?N.cm.options.historyEventDelay:500)||U.origin.charAt(0)=="*"))&&(It=Es(ge,ge.lastOp==ue)))nr=Ve(It.changes),vt(U.from,U.to)==0&&vt(U.from,nr.to)==0?nr.to=Qe(U):It.changes.push(Zo(N,U));else{var wr=Ve(ge.done);for((!wr||!wr.ranges)&&vo(N.sel,ge.done),It={changes:[Zo(N,U)],generation:ge.generation},ge.done.push(It);ge.done.length>ge.undoDepth;)ge.done.shift(),ge.done[0].ranges||ge.done.shift()}ge.done.push(ie),ge.generation=++ge.maxGeneration,ge.lastModTime=ge.lastSelTime=Ke,ge.lastOp=ge.lastSelOp=ue,ge.lastOrigin=ge.lastSelOrigin=U.origin,nr||Xt(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,Ke=ue&&ue.origin;ie==ge.lastSelOp||Ke&&ge.lastSelOrigin==Ke&&(ge.lastModTime==ge.lastSelTime&&ge.lastOrigin==Ke||$o(N,Ke,Ve(ge.done),U))?ge.done[ge.done.length-1]=U:vo(U,ge.done),ge.lastSelTime=+new Date,ge.lastSelOrigin=Ke,ge.lastSelOp=ie,ue&&ue.clearRedo!==!1&&Bo(ge.undone)}function vo(N,U){var ie=Ve(U);ie&&ie.ranges&&ie.equals(N)||U.push(N)}function Ms(N,U,ie,ue){var ge=U["spans_"+N.id],Ke=0;N.iter(Math.max(N.first,ie),Math.min(N.first+N.size,ue),function(It){It.markedSpans&&((ge||(ge=U["spans_"+N.id]={}))[Ke]=It.markedSpans),++Ke})}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=Vn(N,U);if(!ie)return ue;if(!ue)return ie;for(var ge=0;ge<ie.length;++ge){var Ke=ie[ge],It=ue[ge];if(Ke&&It){e:for(var nr=0;nr<It.length;++nr){for(var wr=It[nr],_r=0;_r<Ke.length;++_r)if(Ke[_r].marker==wr.marker)continue e;Ke.push(wr)}}else It&&(ie[ge]=It)}return ie}function dl(N,U,ie){for(var ue=[],ge=0;ge<N.length;++ge){var Ke=N[ge];if(Ke.ranges){ue.push(ie?Nt.prototype.deepCopy.call(Ke):Ke);continue}var It=Ke.changes,nr=[];ue.push({changes:nr});for(var wr=0;wr<It.length;++wr){var _r=It[wr],Hn=void 0;if(nr.push({from:_r.from,to:_r.to,text:_r.text}),U)for(var ri in _r)(Hn=ri.match(/^spans_(\d+)$/))&&(G(U,Number(Hn[1]))>-1&&(Ve(nr)[ri]=_r[ri],delete _r[ri]))}}return ue}function fl(N,U,ie,ue){if(ue){var ge=N.anchor;if(ie){var Ke=vt(U,ge)<0;Ke!=vt(ie,ge)<0?(ge=U,U=ie):Ke!=vt(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 Nt([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),Ke=0;Ke<N.sel.ranges.length;Ke++)ue[Ke]=fl(N.sel.ranges[Ke],U[Ke],null,ge);var It=xe(N.cm,ue,N.sel.primIndex);Ts(N,It,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,Oe(U,ie),ue)}function Ul(N,U,ie){var ue={ranges:U.ranges,update:function(Ke){this.ranges=[];for(var It=0;It<Ke.length;It++)this.ranges[It]=new ce(kt(N,Ke[It].anchor),kt(N,Ke[It].head))},origin:ie&&ie.origin};return Xt(N,"beforeSelectionChange",N,ue),N.cm&&Xt(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=Ve(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){(Pt(N,"beforeSelectionChange")||N.cm&&Pt(N.cm,"beforeSelectionChange"))&&(U=Ul(N,U,ie));var ue=ie&&ie.bias||(vt(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,Jt(N.cm)),Lr(N,"cursorActivity",N)}function pl(N){Tl(N,jo(N,N.sel,null,!1))}function jo(N,U,ie,ue){for(var ge,Ke=0;Ke<U.ranges.length;Ke++){var It=U.ranges[Ke],nr=U.ranges.length==N.sel.ranges.length&&N.sel.ranges[Ke],wr=qo(N,It.anchor,nr&&nr.anchor,ie,ue),_r=qo(N,It.head,nr&&nr.head,ie,ue);(ge||wr!=It.anchor||_r!=It.head)&&(ge||(ge=U.ranges.slice(0,Ke)),ge[Ke]=new ce(wr,_r))}return ge?xe(N.cm,ge,U.primIndex):U}function yo(N,U,ie,ue,ge){var Ke=Pe(N,U.line);if(Ke.markedSpans)for(var It=0;It<Ke.markedSpans.length;++It){var nr=Ke.markedSpans[It],wr=nr.marker,_r="selectLeft"in wr?!wr.selectLeft:wr.inclusiveLeft,Hn="selectRight"in wr?!wr.selectRight:wr.inclusiveRight;if((nr.from==null||(_r?nr.from<=U.ch:nr.from<U.ch))&&(nr.to==null||(Hn?nr.to>=U.ch:nr.to>U.ch))){if(ge&&(Xt(wr,"beforeCursorEnter"),wr.explicitlyCleared))if(Ke.markedSpans){--It;continue}else break;if(!wr.atomic)continue;if(ie){var ri=wr.find(ue<0?1:-1),xi=void 0;if((ue<0?Hn:_r)&&(ri=ps(N,ri,-ue,ri&&ri.line==U.line?Ke:null)),ri&&ri.line==U.line&&(xi=vt(ri,ie))&&(ue<0?xi<0:xi>0))return yo(N,ri,U,ue,ge)}var _i=wr.find(ue<0?-1:1);return(ue<0?_r:Hn)&&(_i=ps(N,_i,ue,_i.line==U.line?Ke:null)),_i?yo(N,_i,U,ue,ge):null}}return U}function qo(N,U,ie,ue,ge){var Ke=ue||1,It=yo(N,U,ie,Ke,ge)||!ge&&yo(N,U,ie,Ke,!0)||yo(N,U,ie,-Ke,ge)||!ge&&yo(N,U,ie,-Ke,!0);return It||(N.cantEdit=!0,Ft(N.first,0))}function ps(N,U,ie,ue){return ie<0&&U.ch==0?U.line>N.first?kt(N,Ft(U.line-1)):null:ie>0&&U.ch==(ue||Pe(N,U.line)).text.length?U.line<N.first+N.size-1?Ft(U.line+1,0):null:new Ft(U.line,U.ch+ie)}function Is(N){N.setSelection(Ft(N.firstLine(),0),Ft(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,Ke,It,nr){ge&&(ue.from=kt(N,ge)),Ke&&(ue.to=kt(N,Ke)),It&&(ue.text=It),nr!==void 0&&(ue.origin=nr)}),Xt(N,"beforeChange",N,ue),N.cm&&Xt(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((Pt(N,"beforeChange")||N.cm&&Pt(N.cm,"beforeChange"))&&(U=es(N,U,!0),!U))return;var ue=tt&&!ie&&Bn(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]==""&&vt(U.from,U.to)==0)return;var ie=lr(N,U);As(N,U,ie,N.cm?N.cm.curOp.id:NaN),_l(N,U,ie,Vn(N,U));var ue=[];Qi(N,function(ge,Ke){!Ke&&G(ue,ge.history)==-1&&(ol(ge.history,U),ue.push(ge.history)),_l(ge,U,null,Vn(ge,U))})}function ml(N,U,ie){var ue=N.cm&&N.cm.state.suppressEdits;if(ue&&!ie)return;for(var ge=N.history,Ke,It=N.sel,nr=U=="undo"?ge.done:ge.undone,wr=U=="undo"?ge.undone:ge.done,_r=0;_r<nr.length&&!(Ke=nr[_r],ie?Ke.ranges&&!Ke.equals(N.sel):!Ke.ranges);_r++);if(_r==nr.length)return;for(ge.lastOrigin=ge.lastSelOrigin=null;;)if(Ke=nr.pop(),Ke.ranges){if(vo(Ke,wr),ie&&!Ke.equals(N.sel)){Ts(N,Ke,{clearRedo:!1});return}It=Ke}else if(ue){nr.push(Ke);return}else break;var Hn=[];vo(It,wr),wr.push({changes:Hn,generation:ge.generation}),ge.generation=Ke.generation||++ge.maxGeneration;for(var ri=Pt(N,"beforeChange")||N.cm&&Pt(N.cm,"beforeChange"),xi=function(Wa){var Ma=Ke.changes[Wa];if(Ma.origin=U,ri&&!es(N,Ma,!1))return nr.length=0,{};Hn.push(Zo(N,Ma));var Na=Wa?lr(N,Ma):Ve(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&&G(qa,ho.history)==-1&&(ol(ho.history,Ma),qa.push(ho.history)),_l(ho,Ma,null,Ra(ho,Ma))})},_i=Ke.changes.length-1;_i>=0;--_i){var la=xi(_i);if(la)return la.v}}function Rl(N,U){if(U==0)return;if(N.first+=U,N.sel=new Nt(ut(N.sel.ranges,function(ge){return new ce(Ft(ge.anchor.line+U,ge.anchor.ch),Ft(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++)mt(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:Ft(N.first,0),to:Ft(U.to.line+ge,U.to.ch),text:[Ve(U.text)],origin:U.origin}}var Ke=N.lastLine();U.to.line>Ke&&(U={from:U.from,to:Ft(Ke,Pe(N,Ke).text.length),text:[U.text[0]],origin:U.origin}),U.removed=et(N,U.from,U.to),ie||(ie=lr(N,U)),N.cm?Bl(N.cm,U,ue):vi(N,U,ue),Ws(N,ie,le),N.cantEdit&&qo(N,Ft(N.firstLine(),0))&&(N.cantEdit=!1)}function Bl(N,U,ie){var ue=N.doc,ge=N.display,Ke=U.from,It=U.to,nr=!1,wr=Ke.line;N.options.lineWrapping||(wr=Vt(Rt(Pe(ue,Ke.line))),ue.iter(wr,It.line+1,function(_i){if(_i==ge.maxLine)return nr=!0,!0})),ue.sel.contains(U.from,U.to)>-1&&Jt(N),vi(ue,U,ie,rs(N)),N.options.lineWrapping||(ue.iter(wr,Ke.line+U.text.length,function(_i){var la=Xn(_i);la>ge.maxLineLength&&(ge.maxLine=_i,ge.maxLineLength=la,ge.maxLineChanged=!0,nr=!1)}),nr&&(N.curOp.updateMaxLine=!0)),Xe(ue,Ke.line),hs(N,400);var _r=U.text.length-(It.line-Ke.line)-1;U.full?Ha(N):Ke.line==It.line&&U.text.length==1&&!Si(N.doc,U)?mt(N,Ke.line,"text"):Ha(N,Ke.line,It.line+1,_r);var Hn=Pt(N,"changes"),ri=Pt(N,"change");if(ri||Hn){var xi={from:Ke,to:It,text:U.text,removed:U.removed,origin:U.origin};ri&&Lr(N,"change",N,xi),Hn&&(N.curOp.changeObjs||(N.curOp.changeObjs=[])).push(xi)}N.display.selForContextMenu=null}function jl(N,U,ie,ue,ge){var Ke;ue||(ue=ie),vt(ue,ie)<0&&(Ke=[ue,ie],ie=Ke[0],ue=Ke[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 Ke=N[ge],It=!0;if(Ke.ranges){Ke.copied||(Ke=N[ge]=Ke.deepCopy(),Ke.copied=!0);for(var nr=0;nr<Ke.ranges.length;nr++)kl(Ke.ranges[nr].anchor,U,ie,ue),kl(Ke.ranges[nr].head,U,ie,ue);continue}for(var wr=0;wr<Ke.changes.length;++wr){var _r=Ke.changes[wr];if(ie<_r.from.line)_r.from=Ft(_r.from.line+ue,_r.from.ch),_r.to=Ft(_r.to.line+ue,_r.to.ch);else if(U<=_r.to.line){It=!1;break}}It||(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,Ke=U;return typeof U=="number"?Ke=Pe(N,qt(N,U)):ge=Vt(U),ge==null?null:(ue(Ke,ge)&&N.cm&&mt(N.cm,ge,ie),Ke)}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 Ke=this.lines[ue];this.height-=Ke.height,Ur(Ke),Lr(Ke,"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],Ke=ge.chunkSize();if(U<Ke){var It=Math.min(ie,Ke-U),nr=ge.height;if(ge.removeInner(U,It),this.height-=nr-ge.height,Ke==It&&(this.children.splice(ue--,1),ge.parent=null),(ie-=It)==0)break;U=0}else U-=Ke}if(this.size-ie<25&&(this.children.length>1||!(this.children[0]instanceof sl))){var wr=[];this.collapse(wr),this.children=[new sl(wr)],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 Ke=this.children[ge],It=Ke.chunkSize();if(U<=It){if(Ke.insertInner(U,ie,ue),Ke.lines&&Ke.lines.length>50){for(var nr=Ke.lines.length%25+25,wr=nr;wr<Ke.lines.length;){var _r=new sl(Ke.lines.slice(wr,wr+=25));Ke.height-=_r.height,this.children.splice(++ge,0,_r),_r.parent=this}Ke.lines=Ke.lines.slice(0,nr),this.maybeSpill()}break}U-=It}},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 Ke=G(U.parent.children,U);U.parent.children.splice(Ke+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 Ke=this.children[ge],It=Ke.chunkSize();if(U<It){var nr=Math.min(ie,It-U);if(Ke.iterN(U,nr,ue))return!0;if((ie-=nr)==0)break;U=0}else U-=It}}};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=Vt(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 Ke=Sn(this);St(ie,Math.max(0,ie.height-Ke)),N&&(Eo(N,function(){Ml(N,ie,-Ke),mt(N,ue,"widget")}),Lr(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=Sn(this)-U;if(!ge)return;Ar(this.doc,ue)||St(ue,ue.height+ge),ie&&Eo(ie,function(){ie.curOp.forceUpdate=!0,Ml(ie,ue,ge),Lr(ie,"lineWidgetChanged",ie,N,Vt(ue))})},Wt(xl);function Ml(N,U,ie){Pr(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),Ke=N.cm;return Ke&&ge.noHScroll&&(Ke.display.alignWidgets=!0),Ys(N,U,"widget",function(It){var nr=It.widgets||(It.widgets=[]);if(ge.insertAt==null?nr.push(ge):nr.splice(Math.min(nr.length-1,Math.max(0,ge.insertAt)),0,ge),ge.line=It,Ke&&!Ar(N,It)){var wr=Pr(It)<N.scrollTop;St(It,It.height+Sn(ge)),wr&&wa(Ke,ge.height),Ke.curOp.forceUpdate=!0}return!0}),Ke&&Lr(Ke,"lineWidgetAdded",Ke,ge,typeof U=="number"?U:Vt(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),Pt(this,"clear")){var ie=this.find();ie&&Lr(this,"clear",ie.from,ie.to)}for(var ue=null,ge=null,Ke=0;Ke<this.lines.length;++Ke){var It=this.lines[Ke],nr=pr(It.markedSpans,this);N&&!this.collapsed?mt(N,Vt(It),"text"):N&&(nr.to!=null&&(ge=Vt(It)),nr.from!=null&&(ue=Vt(It))),It.markedSpans=qr(It.markedSpans,nr),nr.from==null&&this.collapsed&&!Ar(this.doc,It)&&N&&St(It,Oo(N.display))}if(N&&this.collapsed&&!N.options.lineWrapping)for(var wr=0;wr<this.lines.length;++wr){var _r=Rt(this.lines[wr]),Hn=Xn(_r);Hn>N.display.maxLineLength&&(N.display.maxLine=_r,N.display.maxLineLength=Hn,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&&Lr(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 Ke=this.lines[ge],It=pr(Ke.markedSpans,this);if(It.from!=null&&(ie=Ft(U?Ke:Vt(Ke),It.from),N==-1))return ie;if(It.to!=null&&(ue=Ft(U?Ke:Vt(Ke),It.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,Ke=Vt(U.line),It=Ji(ue,Ke);if(It&&(Oa(It),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 wr=Sn(ie)-nr;wr&&St(ge,ge.height+wr)}Lr(ue,"markerChanged",ue,N)})},Nl.prototype.attachLine=function(N){if(!this.lines.length&&this.doc.cm){var U=this.doc.cm.curOp;(!U.maybeHiddenMarkers||G(U.maybeHiddenMarkers,this)==-1)&&(U.maybeUnhiddenMarkers||(U.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(N)},Nl.prototype.detachLine=function(N){if(this.lines.splice(G(this.lines,N),1),!this.lines.length&&this.doc.cm){var U=this.doc.cm.curOp;(U.maybeHiddenMarkers||(U.maybeHiddenMarkers=[])).push(this)}},Wt(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 Ke=new Nl(N,ge),It=vt(U,ie);if(ue&&z(ue,Ke,!1),It>0||It==0&&Ke.clearWhenEmpty!==!1)return Ke;if(Ke.replacedWith&&(Ke.collapsed=!0,Ke.widgetNode=R("span",[Ke.replacedWith],"CodeMirror-widget"),ue.handleMouseEvents||Ke.widgetNode.setAttribute("cm-ignore-events","true"),ue.insertLeft&&(Ke.widgetNode.insertLeft=!0)),Ke.collapsed){if(Ot(N,U.line,U,ie,Ke)||U.line!=ie.line&&Ot(N,ie.line,U,ie,Ke))throw new Error("Inserting collapsed marker partially overlapping an existing one");Et()}Ke.addToHistory&&As(N,{from:U,to:ie,origin:"markText"},N.sel,NaN);var nr=U.line,wr=N.cm,_r;if(N.iter(nr,ie.line+1,function(ri){wr&&Ke.collapsed&&!wr.options.lineWrapping&&Rt(ri)==wr.display.maxLine&&(_r=!0),Ke.collapsed&&nr!=U.line&&St(ri,0),Qr(ri,new gt(Ke,nr==U.line?U.ch:null,nr==ie.line?ie.ch:null)),++nr}),Ke.collapsed&&N.iter(U.line,ie.line+1,function(ri){Ar(N,ri)&&St(ri,0)}),Ke.clearOnEnter&&He(Ke,"beforeCursorEnter",function(){return Ke.clear()}),Ke.readOnly&&(st(),(N.history.done.length||N.history.undone.length)&&N.clearHistory()),Ke.collapsed&&(Ke.id=++au,Ke.atomic=!0),wr){if(_r&&(wr.curOp.updateMaxLine=!0),Ke.collapsed)Ha(wr,U.line,ie.line+1);else if(Ke.className||Ke.startStyle||Ke.endStyle||Ke.css||Ke.attributes||Ke.title)for(var Hn=U.line;Hn<=ie.line;Hn++)mt(wr,Hn,"text");Ke.atomic&&pl(wr.doc),Lr(wr,"markerAdded",wr,Ke)}return Ke}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();Lr(this,"clear")},tu.prototype.find=function(N,U){return this.primary.find(N,U)},Wt(tu);function Iu(N,U,ie,ue,ge){ue=z(ue),ue.shared=!1;var Ke=[$l(N,U,ie,ue,ge)],It=Ke[0],nr=ue.widgetNode;return Qi(N,function(wr){nr&&(ue.widgetNode=nr.cloneNode(!0)),Ke.push($l(wr,kt(wr,U),kt(wr,ie),ue,ge));for(var _r=0;_r<wr.linked.length;++_r)if(wr.linked[_r].isParent)return;It=Ve(Ke)}),new tu(Ke,It)}function pu(N){return N.findMarks(Ft(N.first,0),N.clipPos(Ft(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(),Ke=N.clipPos(ge.from),It=N.clipPos(ge.to);if(vt(Ke,It)){var nr=$l(N,Ke,It,ue.primary,ue.primary.type);ue.markers.push(nr),nr.parent=ue}}}function gu(N){for(var U=function(ge){var Ke=N[ge],It=[Ke.primary.doc];Qi(Ke.primary.doc,function(_r){return It.push(_r)});for(var nr=0;nr<Ke.markers.length;nr++){var wr=Ke.markers[nr];G(It,wr.doc)==-1&&(wr.parent=null,Ke.markers.splice(nr--,1))}},ie=0;ie<N.length;ie++)U(ie)}var ql=0,Cl=function N(U,ie,ue,ge,Ke){if(!(this instanceof N))return new N(U,ie,ue,ge,Ke);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 It=Ft(ue,0);this.sel=Oe(It),this.history=new Wo(null),this.id=++ql,this.modeOption=ie,this.lineSep=ge,this.direction=Ke=="rtl"?"rtl":"ltr",this.extend=!1,typeof U=="string"&&(U=this.splitLines(U)),vi(this,{from:It,to:It,text:U}),Ts(this,Oe(It),le)};Cl.prototype=at(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=Ft(this.first,0),ie=this.first+this.size-1;Ls(this,{from:U,to:Ft(ie,Pe(this,ie).text.length),text:this.splitLines(N),origin:"setValue",full:!0},!0),this.cm&&ja(this.cm,0,0),Ts(this,Oe(U),le)}),replaceRange:function(U,ie,ue,ge){ie=kt(this,ie),ue=ue?kt(this,ue):ie,jl(this,U,ie,ue,ge)},getRange:function(U,ie,ue){var ge=et(this,kt(this,U),kt(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(Vr(this,U))return Pe(this,U)},getLineNumber:function(U){return Vt(U)},getLineHandleVisualStart:function(U){return typeof U=="number"&&(U=Pe(this,U)),Rt(U)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(U){return kt(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,kt(this,typeof N=="number"?Ft(N,U||0):N),null,ie)}),setSelection:ms(function(N,U,ie){Ql(this,kt(this,N),kt(this,U||N),ie)}),extendSelection:ms(function(N,U,ie){Us(this,kt(this,N),U&&kt(this,U),ie)}),extendSelections:ms(function(N,U){Os(this,Kr(this,N),U)}),extendSelectionsBy:ms(function(N,U){var ie=ut(this.sel.ranges,N);Os(this,Kr(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(kt(this,N[ge].anchor),kt(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(kt(this,N),kt(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 Ke=et(this,ie[ge].from(),ie[ge].to());ue=ue?ue.concat(Ke):Ke}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 Ke=et(this,ue[ge].from(),ue[ge].to());U!==!1&&(Ke=Ke.join(U||this.lineSeparator())),ie[ge]=Ke}return ie},replaceSelection:function(U,ie,ue){for(var ge=[],Ke=0;Ke<this.sel.ranges.length;Ke++)ge[Ke]=U;this.replaceSelections(ge,ie,ue||"+input")},replaceSelections:ms(function(N,U,ie){for(var ue=[],ge=this.sel,Ke=0;Ke<ge.ranges.length;Ke++){var It=ge.ranges[Ke];ue[Ke]={from:It.from(),to:It.to(),text:this.splitLines(N[Ke]),origin:ie}}for(var nr=U&&U!="end"&&mn(this,ue,U),wr=ue.length-1;wr>=0;wr--)Ls(this,ue[wr]);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 Ke=0;Ke<U.undone.length;Ke++)U.undone[Ke].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&&$(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,$(ie.gutterMarkers)&&(ie.gutterMarkers=null),!0})})}),lineInfo:function(U){var ie;if(typeof U=="number"){if(!Vr(this,U))return null;if(ie=U,U=Pe(this,U),!U)return null}else if(ie=Vt(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",Ke=ue[ge];if(Ke)if(ie==null)ue[ge]=null;else{var It=Ke.match(_(ie));if(!It)return!1;var nr=It.index+It[0].length;ue[ge]=Ke.slice(0,It.index)+(!It.index||nr==Ke.length?"":" ")+Ke.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,kt(this,U),kt(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=kt(this,U),$l(this,U,U,ue,"bookmark")},findMarksAt:function(U){U=kt(this,U);var ie=[],ue=Pe(this,U.line).markedSpans;if(ue)for(var ge=0;ge<ue.length;++ge){var Ke=ue[ge];(Ke.from==null||Ke.from<=U.ch)&&(Ke.to==null||Ke.to>=U.ch)&&ie.push(Ke.marker.parent||Ke.marker)}return ie},findMarks:function(U,ie,ue){U=kt(this,U),ie=kt(this,ie);var ge=[],Ke=U.line;return this.iter(U.line,ie.line+1,function(It){var nr=It.markedSpans;if(nr)for(var wr=0;wr<nr.length;wr++){var _r=nr[wr];!(_r.to!=null&&Ke==U.line&&U.ch>=_r.to||_r.from==null&&Ke!=U.line||_r.from!=null&&Ke==ie.line&&_r.from>=ie.ch)&&(!ue||ue(_r.marker))&&ge.push(_r.marker.parent||_r.marker)}++Ke}),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(Ke){var It=Ke.text.length+ge;if(It>U)return ie=U,!0;U-=It,++ue}),kt(this,Ft(ue,ie))},indexFromPos:function(U){U=kt(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 Br&&(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(Ke){return ge.push(Ke.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):vn(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),hr(U,N)||qn(U.display,N))return;Ge(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,Ke=Array(ge),It=0,nr=function(){++It==ge&&zo(U,function(){ie=kt(U.doc,ie);var la={from:ie,to:ie,text:U.doc.splitLines(Ke.filter(function(Ta){return Ta!=null}).join(U.doc.lineSeparator())),origin:"paste"};Ls(U.doc,la),wl(U.doc,Oe(kt(U.doc,ie),kt(U.doc,Qe(la))))})()},wr=function(la,Ta){if(U.options.allowDropFileTypes&&G(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}Ke[Ta]=Ma,nr()},Wa.readAsText(la)},_r=0;_r<ue.length;_r++)wr(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 Hn=N.dataTransfer.getData("Text");if(Hn){var ri;if(U.state.draggingText&&!U.state.draggingText.copy&&(ri=U.listSelections()),Ws(U.doc,Oe(ie,ie)),ri)for(var xi=0;xi<ri.length;++xi)jl(U.doc,"",ri[xi].anchor,ri[xi].head,"drag");U.replaceSelection(Hn,"around","paste"),U.display.input.focus()}}catch(_i){}}}function Sl(N,U){if(d&&(!N.state.draggingText||+new Date-ll<100)){lt(U);return}if(hr(N,U)||qn(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==",s&&(ie.width=ie.height=1,N.display.wrapper.appendChild(ie),ie._top=ie.offsetTop),U.dataTransfer.setDragImage(ie,0,0),s&&ie.parentNode.removeChild(ie)}}function Su(N,U){var ie=_o(N,U);if(!ie)return;var ue=document.createDocumentFragment();ni(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 Ke=0;Ke<ie.length;Ke++)N(ie[Ke])})}var Ol=!1;function cu(){if(Ol)return;du(),Ol=!0}function du(){var N;He(window,"resize",function(){N==null&&(N=setTimeout(function(){N=null,Au(Lu)},100))}),He(window,"blur",function(){return Au(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,Ke,It=0;It<U.length-1;It++){var nr=U[It];if(/^(cmd|meta|m)$/i.test(nr))Ke=!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),Ke&&(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=ut(ie.split(" "),Du),Ke=0;Ke<ge.length;Ke++){var It=void 0,nr=void 0;Ke==ge.length-1?(nr=ge.join(" "),It=ue):(nr=ge.slice(0,Ke+1).join(" "),It="...");var wr=U[nr];if(!wr)U[nr]=It;else if(wr!=It)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 Ke=0;Ke<U.fallthrough.length;Ke++){var It=Zl(N,U.fallthrough[Ke],ie,ue);if(It)return It}}}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(s&&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 Ke=U(ie[ge]);ue.length&&vt(Ke.from,Ve(ue).to)<=0;){var It=ue.pop();if(vt(It.from,Ke.from)<0){Ke.from=It.from;break}}ue.push(Ke)}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 Ft(U.line,ue,ie<0?"after":"before")}function hu(N,U,ie,ue,ge){if(N){U.doc.direction=="rtl"&&(ge=-ge);var Ke=xt(ie,U.doc.direction);if(Ke){var It=ge<0?Ve(Ke):Ke[0],nr=ge<0==(It.level==1),wr=nr?"after":"before",_r;if(It.level>0||U.doc.direction=="rtl"){var Hn=ca(U,ie);_r=ge<0?ie.text.length-1:0;var ri=Ca(U,Hn,_r).top;_r=Be(function(xi){return Ca(U,Hn,xi).top==ri},ge<0==(It.level==1)?It.from:It.to-1,_r),wr=="before"&&(_r=nu(ie,_r,1))}else _r=ge<0?It.to:It.from;return new Ft(ue,_r,wr)}}return new Ft(ue,ge<0?ie.text.length:0,ge<0?"before":"after")}function fu(N,U,ie,ue){var ge=xt(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 Ke=ke(ge,ie.ch,ie.sticky),It=ge[Ke];if(N.doc.direction=="ltr"&&It.level%2==0&&(ue>0?It.to>ie.ch:It.from<ie.ch))return Nu(U,ie,ue);var nr=function(Na,qa){return nu(U,Na instanceof Ft?Na.ch:Na,qa)},wr,_r=function(Na){return N.options.lineWrapping?(wr=wr||ca(N,U),to(N,U,wr,Na)):{begin:0,end:U.text.length}},Hn=_r(ie.sticky=="before"?nr(ie,-1):ie.ch);if(N.doc.direction=="rtl"||It.level==1){var ri=It.level==1==ue<0,xi=nr(ie,ri?1:-1);if(xi!=null&&(ri?xi<=It.to&&xi<=Hn.end:xi>=It.from&&xi>=Hn.begin)){var _i=ri?"before":"after";return new Ft(ie.line,xi,_i)}}var la=function(Na,qa,ho){for(var ns=function(ul,Pl){return Pl?new Ft(ie.line,nr(ul,1),"before"):new Ft(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(Ke+ue,ue,Hn);if(Ta)return Ta;var Wa=ue>0?Hn.end:nr(Hn.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=Pe(U.doc,ie.head.line).text.length;return ie.head.ch==ue&&ie.head.line<U.lastLine()?{from:ie.head,to:Ft(ie.head.line+1,0)}:{from:ie.head,to:Ft(ie.head.line,ue)}}else return{from:ie.from(),to:ie.to()}})},deleteLine:function(U){return Dl(U,function(ie){return{from:Ft(ie.from().line,0),to:kt(U.doc,Ft(ie.to().line+1,0))}})},delLineLeft:function(U){return Dl(U,function(ie){return{from:Ft(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(Ft(U.firstLine(),0))},goDocEnd:function(U){return U.extendSelection(Ft(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 ee(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")},we)},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")},we)},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},we)},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,Ke=0;Ke<ue.length;Ke++){var It=ue[Ke].from(),nr=V(U.getLine(It.line),It.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 Ke=ie[ge].head,It=Pe(U.doc,Ke.line).text;if(It){if(Ke.ch==It.length&&(Ke=new Ft(Ke.line,Ke.ch-1)),Ke.ch>0)Ke=new Ft(Ke.line,Ke.ch+1),U.replaceRange(It.charAt(Ke.ch-1)+It.charAt(Ke.ch-2),Ft(Ke.line,Ke.ch-2),Ke,"+transpose");else if(Ke.line>U.doc.first){var nr=Pe(U.doc,Ke.line-1).text;nr&&(Ke=new Ft(Ke.line,1),U.replaceRange(It.charAt(0)+U.doc.lineSeparator()+nr.charAt(nr.length-1),Ft(Ke.line-1,nr.length-1),Ke,"+transpose"))}}ue.push(new ce(Ke,Ke))}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=Pe(N.doc,U),ue=Rt(ie);return ue!=ie&&(U=Vt(ue)),hu(!0,N,ue,U,1)}function ee(N,U){var ie=Pe(N.doc,U),ue=jt(ie);return ue!=ie&&(U=Vt(ue)),hu(!0,N,ie,U,-1)}function L(N,U){var ie=Ae(N,U.line),ue=Pe(N.doc,ie.line),ge=xt(ue,N.doc.direction);if(!ge||ge[0].level==0){var Ke=Math.max(ie.ch,ue.text.search(/\S/)),It=U.line==ie.line&&U.ch<=Ke&&U.ch;return Ft(ie.line,It?0:Ke,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)!=q}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"&&Lr(N,"keyHandled",N,U,ie),(ge=="handled"||ge=="multi")&&(Ge(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 ze(N,U,ie){return ne(N,"'"+ie+"'",U,function(ue){return W(N,ue,!0)})}var ot=null;function ft(N){var U=this;if(N.target&&N.target!=U.display.input.getField())return;if(U.curOp.focus=P(),hr(U,N))return;d&&u<11&&N.keyCode==27&&(N.returnValue=!1);var ie=N.keyCode;U.display.shift=ie==16||N.shiftKey;var ue=Te(U,N);s&&(ot=ue?ie:null,!ue&&ie==88&&!sr&&(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)&&Zt(U)}function Zt(N){var U=N.display.lineDiv;X(U,"CodeMirror-crosshair");function ie(ue){(ue.keyCode==18||!ue.altKey)&&(T(U,"CodeMirror-crosshair"),ct(document,"keyup",ie),ct(document,"mouseover",ie))}He(document,"keyup",ie),He(document,"mouseover",ie)}function Cr(N){N.keyCode==16&&(this.doc.sel.shift=!1),hr(this,N)}function Sr(N){var U=this;if(N.target&&N.target!=U.display.input.getField())return;if(qn(U.display,N)||hr(U,N)||N.ctrlKey&&!N.altKey||g&&N.metaKey)return;var ie=N.keyCode,ue=N.charCode;if(s&&ie==ot){ot=null,Ge(N);return}if(s&&(!N.which||N.which<10)&&Te(U,N))return;var ge=String.fromCharCode(ue==null?ie:ue);if(ge=="\b")return;if(ze(U,N,ge))return;U.display.input.onKeyPress(N)}var Wr=400,$r=function(U,ie,ue){this.time=U,this.pos=ie,this.button=ue};$r.prototype.compare=function(N,U,ie){return this.time+Wr>N&&vt(U,this.pos)==0&&ie==this.button};var On,Rn;function Zn(N,U){var ie=+new Date;return Rn&&Rn.compare(ie,N,U)?(On=Rn=null,"triple"):On&&On.compare(ie,N,U)?(Rn=new $r(ie,N,U),On=null,"double"):(On=new $r(ie,N,U),Rn=null,"single")}function wi(N){var U=this,ie=U.display;if(hr(U,N)||ie.activeTouch&&ie.input.supportsTouch())return;if(ie.input.ensurePolled(),ie.shift=N.shiftKey,qn(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),Ke=ue?Zn(ue,ge):"single";if(window.focus(),ge==1&&U.state.selectingText&&U.state.selectingText(N),ue&&ua(U,ge,ue,Ke,N))return;ge==1?ue?Zi(U,ue,Ke,N):qe(N)==ie.scroller&&Ge(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 Ke="Click";return ue=="double"?Ke="Double"+Ke:ue=="triple"&&(Ke="Triple"+Ke),Ke=(U==1?"Left":U==2?"Middle":"Right")+Ke,ne(N,xu(Ke,ge),ge,function(It){if(typeof It=="string"&&(It=iu[It]),!It)return!1;var nr=!1;try{N.isReadOnly()&&(N.state.suppressEdits=!0),nr=It(N,ie)!=q}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 Ke=A?ie.shiftKey&&ie.metaKey:ie.altKey;ge.unit=Ke?"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=P();var ge=Vi(N,ie,ue),Ke=N.doc.sel,It;N.options.dragDrop&&Ht&&!N.isReadOnly()&&ie=="single"&&(It=Ke.contains(U))>-1&&(vt((It=Ke.ranges[It]).from(),U)<0||U.xRel>0)&&(vt(It.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,Ke=!1,It=zo(N,function(_r){o&&(ge.scroller.draggable=!1),N.state.draggingText=!1,ct(ge.wrapper.ownerDocument,"mouseup",It),ct(ge.wrapper.ownerDocument,"mousemove",nr),ct(ge.scroller,"dragstart",wr),ct(ge.scroller,"drop",It),Ke||(Ge(_r),ue.addNew||Us(N.doc,ie,null,null,ue.extend),o&&!e||d&&u==9?setTimeout(function(){ge.wrapper.ownerDocument.body.focus({preventScroll:!0}),ge.input.focus()},20):ge.input.focus())}),nr=function(Hn){Ke=Ke||Math.abs(U.clientX-Hn.clientX)+Math.abs(U.clientY-Hn.clientY)>=10},wr=function(){return Ke=!0};o&&(ge.scroller.draggable=!0),N.state.draggingText=It,It.copy=!ue.moveOnDrag,ge.scroller.dragDrop&&ge.scroller.dragDrop(),He(ge.wrapper.ownerDocument,"mouseup",It),He(ge.wrapper.ownerDocument,"mousemove",nr),He(ge.scroller,"dragstart",wr),He(ge.scroller,"drop",It),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(Ft(U.line,0),kt(N.doc,Ft(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,Ke=N.doc;Ge(U);var It,nr,wr=Ke.sel,_r=wr.ranges;if(ue.addNew&&!ue.extend?(nr=Ke.sel.contains(ie),nr>-1?It=_r[nr]:It=new ce(ie,ie)):(It=Ke.sel.primary(),nr=Ke.sel.primIndex),ue.unit=="rectangle")ue.addNew||(It=new ce(ie,ie)),ie=_o(N,U,!0,!0),nr=-1;else{var Hn=Ga(N,ie,ue.unit);ue.extend?It=fl(It,Hn.anchor,Hn.head,ue.extend):It=Hn}ue.addNew?nr==-1?(nr=_r.length,Ts(Ke,xe(N,_r.concat([It]),nr),{scroll:!1,origin:"*mouse"})):_r.length>1&&_r[nr].empty()&&ue.unit=="char"&&!ue.extend?(Ts(Ke,xe(N,_r.slice(0,nr).concat(_r.slice(nr+1)),0),{scroll:!1,origin:"*mouse"}),wr=Ke.sel):Xs(Ke,nr,It,re):(nr=0,Ts(Ke,new Nt([It],0),re),wr=Ke.sel);var ri=ie;function xi(qa){if(vt(ri,qa)==0)return;if(ri=qa,ue.unit=="rectangle"){for(var ho=[],ns=N.options.tabSize,Mo=V(Pe(Ke,ie.line).text,ie.ch,ns),Ss=V(Pe(Ke,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=Pe(Ke,ul).text,Il=Ie(Vl,Zs,ns);Zs==yl?ho.push(new ce(Ft(ul,Il),Ft(ul,Il))):Vl.length>Il&&ho.push(new ce(Ft(ul,Il),Ft(ul,Ie(Vl,yl,ns))))}ho.length||ho.push(new ce(ie,ie)),Ts(Ke,xe(N,wr.ranges.slice(0,nr).concat(ho),nr),{origin:"*mouse",scroll:!1}),N.scrollIntoView(qa)}else{var Gl=It,Fl=Ga(N,qa,ue.unit),Ja=Gl.anchor,vl;vt(Fl.anchor,Ja)>0?(vl=Fl.head,Ja=Mt(Gl.from(),Fl.anchor)):(vl=Fl.anchor,Ja=Qt(Gl.to(),Fl.head));var gl=wr.ranges.slice(0);gl[nr]=Sa(N,new ce(kt(Ke,Ja),vl)),Ts(Ke,xe(N,gl,nr),re)}}var _i=ge.wrapper.getBoundingClientRect(),la=0;function Ta(qa){var ho=++la,ns=_o(N,qa,!0,ue.unit=="rectangle");if(!ns)return;if(vt(ns,ri)!=0){N.curOp.focus=P(),xi(ns);var Mo=ia(ge,Ke);(ns.line>=Mo.to||ns.line<Mo.from)&&setTimeout(zo(N,function(){la==ho&&Ta(qa)}),150)}else{var Ss=qa.clientY<_i.top?-20:qa.clientY>_i.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&&(Ge(qa),ge.input.focus()),ct(ge.wrapper.ownerDocument,"mousemove",Ma),ct(ge.wrapper.ownerDocument,"mouseup",Na),Ke.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,He(ge.wrapper.ownerDocument,"mousemove",Ma),He(ge.wrapper.ownerDocument,"mouseup",Na)}function Sa(N,U){var ie=U.anchor,ue=U.head,ge=Pe(N.doc,ie.line);if(vt(ie,ue)==0&&ie.sticky==ue.sticky)return U;var Ke=xt(ge);if(!Ke)return U;var It=ke(Ke,ie.ch,ie.sticky),nr=Ke[It];if(nr.from!=ie.ch&&nr.to!=ie.ch)return U;var wr=It+(nr.from==ie.ch==(nr.level!=1)?0:1);if(wr==0||wr==Ke.length)return U;var _r;if(ue.line!=ie.line)_r=(ue.line-ie.line)*(N.doc.direction=="ltr"?1:-1)>0;else{var Hn=ke(Ke,ue.ch,ue.sticky),ri=Hn-It||(ue.ch-ie.ch)*(nr.level==1?-1:1);Hn==wr-1||Hn==wr?_r=ri<0:_r=ri>0}var xi=Ke[wr+(_r?-1:0)],_i=_r==(xi.level==1),la=_i?xi.from:xi.to,Ta=_i?"after":"before";return ie.ch==la&&ie.sticky==Ta?U:new ce(new Ft(ie.line,la,Ta),ue)}function Go(N,U,ie,ue){var ge,Ke;if(U.touches)ge=U.touches[0].clientX,Ke=U.touches[0].clientY;else try{ge=U.clientX,Ke=U.clientY}catch(xi){return!1}if(ge>=Math.floor(N.display.gutters.getBoundingClientRect().right))return!1;ue&&Ge(U);var It=N.display,nr=It.lineDiv.getBoundingClientRect();if(Ke>nr.bottom||!Pt(N,ie))return se(U);Ke-=nr.top-It.viewOffset;for(var wr=0;wr<N.display.gutterSpecs.length;++wr){var _r=It.gutters.childNodes[wr];if(_r&&_r.getBoundingClientRect().right>=ge){var Hn=Rr(N.doc,Ke),ri=N.display.gutterSpecs[wr];return Xt(N,ie,N,Hn,ri.className,U),se(U)}}}function bs(N,U){return Go(N,U,"gutterClick",!0)}function ys(N,U){if(qn(N.display,U)||Cs(N,U))return;if(hr(N,U,"contextmenu"))return;C||N.display.input.onContextMenu(U)}function Cs(N,U){return Pt(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,Ke,It){N.defaults[ue]=ge,Ke&&(U[ue]=It?function(nr,wr,_r){_r!=ws&&Ke(nr,wr,_r)}:Ke)}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,Dn(ue)},!0),ie("indentUnit",2,Dn,!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 Ke=[],It=ue.doc.first;ue.doc.iter(function(wr){for(var _r=0;;){var Hn=wr.text.indexOf(ge,_r);if(Hn==-1)break;_r=Hn+ge.length,Ke.push(Ft(It,Hn))}It++});for(var nr=Ke.length-1;nr>=0;nr--)jl(ue.doc,ge,Ke[nr],Ft(Ke[nr].line,Ke[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,Ke){ue.state.specialChars=new RegExp(ge.source+(ge.test(" ")?"":"| "),"g"),Ke!=ws&&ue.refresh()}),ie("specialCharPlaceholder",Ti,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,Ke){var It=hl(ge),nr=Ke!=ws&&hl(Ke);nr&&nr.detach&&nr.detach(ue,It),It.attach&&It.attach(ue,nr||null)}),ie("extraKeys",null),ie("configureMouse",null),ie("lineWrapping",!1,dr,!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,fn,!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,Tt),ie("allowDropFileTypes",null),ie("cursorBlinkRate",530),ie("cursorScrollMargin",0),ie("cursorHeight",1,fn,!0),ie("singleCursorHeightPerLine",!0,fn,!0),ie("workTime",100),ie("workDelay",100),ie("flattenSpans",!0,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 Tt(N,U,ie){var ue=ie&&ie!=ws;if(!U!=!ue){var ge=N.display.dragFunctions,Ke=U?He:ct;Ke(N.display.scroller,"dragstart",ge.start),Ke(N.display.scroller,"dragenter",ge.enter),Ke(N.display.scroller,"dragover",ge.over),Ke(N.display.scroller,"dragleave",ge.leave),Ke(N.display.scroller,"drop",ge.drop)}}function dr(N){N.options.lineWrapping?(X(N.display.wrapper,"CodeMirror-wrap"),N.display.sizer.style.minWidth="",N.display.sizerWidth=null):(T(N.display.wrapper,"CodeMirror-wrap"),Pn(N)),Ho(N),Ha(N),Xa(N),setTimeout(function(){return Lo(N)},100)}function Br(N,U){var ie=this;if(!(this instanceof Br))return new Br(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 Br.inputStyles[U.inputStyle](this),Ke=this.display=new Ds(N,ue,ge,U);Ke.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&&Ke.input.focus(),d&&u<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&&Ci(ie)},20):mi(this);for(var It in Ee)Ee.hasOwnProperty(It)&&Ee[It](this,U[It],ws);Js(this),U.finishInit&&U.finishInit(this);for(var nr=0;nr<Ue.length;++nr)Ue[nr](this);co(this),o&&U.lineWrapping&&getComputedStyle(Ke.lineDiv).textRendering=="optimizelegibility"&&(Ke.lineDiv.style.textRendering="auto")}Br.defaults=Hs,Br.optionHandlers=Ee;function sn(N){var U=N.display;He(U.scroller,"mousedown",zo(N,wi)),d&&u<11?He(U.scroller,"dblclick",zo(N,function(wr){if(hr(N,wr))return;var _r=_o(N,wr);if(!_r||bs(N,wr)||qn(N.display,wr))return;Ge(wr);var Hn=N.findWordAt(_r);Us(N.doc,Hn.anchor,Hn.head)})):He(U.scroller,"dblclick",function(wr){return hr(N,wr)||Ge(wr)}),He(U.scroller,"contextmenu",function(wr){return ys(N,wr)}),He(U.input.getField(),"contextmenu",function(wr){U.scroller.contains(wr.target)||ys(N,wr)});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 Ke(wr){if(wr.touches.length!=1)return!1;var _r=wr.touches[0];return _r.radiusX<=1&&_r.radiusY<=1}function It(wr,_r){if(_r.left==null)return!0;var Hn=_r.left-wr.left,ri=_r.top-wr.top;return Hn*Hn+ri*ri>20*20}He(U.scroller,"touchstart",function(wr){if(!hr(N,wr)&&!Ke(wr)&&!bs(N,wr)){U.input.ensurePolled(),clearTimeout(ie);var _r=+new Date;U.activeTouch={start:_r,moved:!1,prev:_r-ue.end<=300?ue:null},wr.touches.length==1&&(U.activeTouch.left=wr.touches[0].pageX,U.activeTouch.top=wr.touches[0].pageY)}}),He(U.scroller,"touchmove",function(){U.activeTouch&&(U.activeTouch.moved=!0)}),He(U.scroller,"touchend",function(wr){var _r=U.activeTouch;if(_r&&!qn(U,wr)&&_r.left!=null&&!_r.moved&&new Date-_r.start<300){var Hn=N.coordsChar(U.activeTouch,"page"),ri;!_r.prev||It(_r,_r.prev)?ri=new ce(Hn,Hn):!_r.prev.prev||It(_r,_r.prev.prev)?ri=N.findWordAt(Hn):ri=new ce(Ft(Hn.line,0),kt(N.doc,Ft(Hn.line+1,0))),N.setSelection(ri.anchor,ri.head),N.focus(),Ge(wr)}ge()}),He(U.scroller,"touchcancel",ge),He(U.scroller,"scroll",function(){U.scroller.clientHeight&&(Ea(N,U.scroller.scrollTop),Ka(N,U.scroller.scrollLeft,!0),Xt(N,"scroll",N))}),He(U.scroller,"mousewheel",function(wr){return hi(N,wr)}),He(U.scroller,"DOMMouseScroll",function(wr){return hi(N,wr)}),He(U.wrapper,"scroll",function(){return U.wrapper.scrollTop=U.wrapper.scrollLeft=0}),U.dragFunctions={enter:function(_r){hr(N,_r)||lt(_r)},over:function(_r){hr(N,_r)||(Su(N,_r),lt(_r))},start:function(_r){return Sl(N,_r)},drop:zo(N,Hl),leave:function(_r){hr(N,_r)||vu(N)}};var nr=U.input.getField();He(nr,"keyup",function(wr){return Cr.call(N,wr)}),He(nr,"keydown",zo(N,ft)),He(nr,"keypress",zo(N,Sr)),He(nr,"focus",function(wr){return Ci(N,wr)}),He(nr,"blur",function(wr){return mi(N,wr)})}var Ue=[];Br.defineInitHook=function(N){return Ue.push(N)};function oe(N,U,ie,ue){var ge=N.doc,Ke;ie==null&&(ie="add"),ie=="smart"&&(ge.mode.indent?Ke=ti(N,U).state:ie="prev");var It=N.options.tabSize,nr=Pe(ge,U),wr=V(nr.text,null,It);nr.stateAfter&&(nr.stateAfter=null);var _r=nr.text.match(/^\s*/)[0],Hn;if(!ue&&!/\S/.test(nr.text))Hn=0,ie="not";else if(ie=="smart"&&(Hn=ge.mode.indent(Ke,nr.text.slice(_r.length),nr.text),Hn==q||Hn>150)){if(!ue)return;ie="prev"}ie=="prev"?U>ge.first?Hn=V(Pe(ge,U-1).text,null,It):Hn=0:ie=="add"?Hn=wr+N.options.indentUnit:ie=="subtract"?Hn=wr-N.options.indentUnit:typeof ie=="number"&&(Hn=wr+ie),Hn=Math.max(0,Hn);var ri="",xi=0;if(N.options.indentWithTabs)for(var _i=Math.floor(Hn/It);_i;--_i)xi+=It,ri+=" ";if(xi<Hn&&(ri+=Je(Hn-xi)),ri!=_r)return jl(ge,ri,Ft(U,0),Ft(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=Ft(U,_r.length);Xs(ge,la,new ce(Wa,Wa));break}}}var _e=null;function $e(N){_e=N}function wt(N,U,ie,ue,ge){var Ke=N.doc;N.display.shift=!1,ue||(ue=Ke.sel);var It=+new Date-200,nr=ge=="paste"||N.state.pasteIncoming>It,wr=vn(U),_r=null;if(nr&&ue.ranges.length>1)if(_e&&_e.text.join(`
`)==U){if(ue.ranges.length%_e.text.length==0){_r=[];for(var Hn=0;Hn<_e.text.length;Hn++)_r.push(Ke.splitLines(_e.text[Hn]))}}else wr.length==ue.ranges.length&&N.options.pasteLinesPerSelection&&(_r=ut(wr,function(Ma){return[Ma]}));for(var ri=N.curOp.updateInput,xi=ue.ranges.length-1;xi>=0;xi--){var _i=ue.ranges[xi],la=_i.from(),Ta=_i.to();_i.empty()&&(ie&&ie>0?la=Ft(la.line,la.ch-ie):N.state.overwrite&&!nr?Ta=Ft(Ta.line,Math.min(Pe(Ke,Ta.line).text.length,Ta.ch+Ve(wr).length)):nr&&_e&&_e.lineWise&&_e.text.join(`
`)==wr.join(`
`)&&(la=Ta=Ft(la.line,0)));var Wa={from:la,to:Ta,text:_r?_r[xi%_r.length]:wr,origin:ge||(nr?"paste":N.state.cutIncoming>It?"cut":"+input")};Ls(N.doc,Wa),Lr(N,"inputRead",N,Wa)}U&&!nr&&tr(N,U),Da(N),N.curOp.updateInput<2&&(N.curOp.updateInput=ri),N.curOp.typing=!0,N.state.pasteIncoming=N.state.cutIncoming=-1}function Kt(N,U){var ie=N.clipboardData&&N.clipboardData.getData("Text");if(ie)return N.preventDefault(),!U.isReadOnly()&&!U.options.disableInput&&Eo(U,function(){return wt(U,ie,0,null,"paste")}),!0}function tr(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 Ke=N.getModeAt(ge.head),It=!1;if(Ke.electricChars){for(var nr=0;nr<Ke.electricChars.length;nr++)if(U.indexOf(Ke.electricChars.charAt(nr))>-1){It=oe(N,ge.head.line,"smart");break}}else Ke.electricInput&&(Ke.electricInput.test(Pe(N.doc,ge.head.line).text.slice(0,ge.head.ch))&&(It=oe(N,ge.head.line,"smart")));It&&Lr(N,"electricInput",N,ge.head.line)}}function ar(N){for(var U=[],ie=[],ue=0;ue<N.doc.sel.ranges.length;ue++){var ge=N.doc.sel.ranges[ue].head.line,Ke={anchor:Ft(ge,0),head:Ft(ge+1,0)};ie.push(Ke),U.push(N.getRange(Ke.anchor,Ke.head))}return{text:U,ranges:ie}}function Gr(N,U,ie,ue){N.setAttribute("autocorrect",ie?"":"off"),N.setAttribute("autocapitalize",ue?"":"off"),N.setAttribute("spellcheck",!!U)}function pn(){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"),a&&(N.style.border="1px solid black"),Gr(N),U}function zr(N){var U=N.optionHandlers,ie=N.helpers={};N.prototype={constructor:N,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ge,Ke){var It=this.options,nr=It[ge];if(It[ge]==Ke&&ge!="mode")return;It[ge]=Ke,U.hasOwnProperty(ge)&&zo(this,U[ge])(this,Ke,nr),Xt(this,"optionChange",this,ge)},getOption:function(ge){return this.options[ge]},getDoc:function(){return this.doc},addKeyMap:function(ge,Ke){this.state.keyMaps[Ke?"push":"unshift"](hl(ge))},removeKeyMap:function(ge){for(var Ke=this.state.keyMaps,It=0;It<Ke.length;++It)if(Ke[It]==ge||Ke[It].name==ge)return Ke.splice(It,1),!0},addOverlay:Fs(function(ue,ge){var Ke=ue.token?ue:N.getMode(this.options,ue);if(Ke.startState)throw new Error("Overlays may not be stateful.");Fe(this.state.overlays,{mode:Ke,modeSpec:ue,opaque:ge&&ge.opaque,priority:ge&&ge.priority||0},function(It){return It.priority}),this.state.modeGen++,Ha(this)}),removeOverlay:Fs(function(ue){for(var ge=this.state.overlays,Ke=0;Ke<ge.length;++Ke){var It=ge[Ke].modeSpec;if(It==ue||typeof ue=="string"&&It.name==ue){ge.splice(Ke,1),this.state.modeGen++,Ha(this);return}}}),indentLine:Fs(function(ue,ge,Ke){typeof ge!="string"&&typeof ge!="number"&&(ge==null?ge=this.options.smartIndent?"smart":"prev":ge=ge?"add":"subtract"),Vr(this.doc,ue)&&oe(this,ue,ge,Ke)}),indentSelection:Fs(function(ue){for(var ge=this.doc.sel.ranges,Ke=-1,It=0;It<ge.length;It++){var nr=ge[It];if(nr.empty())nr.head.line>Ke&&(oe(this,nr.head.line,ue,!0),Ke=nr.head.line,It==this.doc.sel.primIndex&&Da(this));else{var wr=nr.from(),_r=nr.to(),Hn=Math.max(Ke,wr.line);Ke=Math.min(this.lastLine(),_r.line-(_r.ch?0:1))+1;for(var ri=Hn;ri<Ke;++ri)oe(this,ri,ue);var xi=this.doc.sel.ranges;wr.ch==0&&ge.length==xi.length&&xi[It].from().ch>0&&Xs(this.doc,It,new ce(wr,xi[It].to()),le)}}}),getTokenAt:function(ge,Ke){return Hi(this,ge,Ke)},getLineTokens:function(ge,Ke){return Hi(this,Ft(ge),Ke,!0)},getTokenTypeAt:function(ge){ge=kt(this.doc,ge);var Ke=yn(this,Pe(this.doc,ge.line)),It=0,nr=(Ke.length-1)/2,wr=ge.ch,_r;if(wr==0)_r=Ke[2];else for(;;){var Hn=It+nr>>1;if((Hn?Ke[Hn*2-1]:0)>=wr)nr=Hn;else if(Ke[Hn*2+1]<wr)It=Hn+1;else{_r=Ke[Hn*2+2];break}}var ri=_r?_r.indexOf("overlay "):-1;return ri<0?_r:ri==0?null:_r.slice(0,ri-1)},getModeAt:function(ge){var Ke=this.doc.mode;return Ke.innerMode?N.innerMode(Ke,this.getTokenAt(ge).state).mode:Ke},getHelper:function(ge,Ke){return this.getHelpers(ge,Ke)[0]},getHelpers:function(ge,Ke){var It=[];if(!ie.hasOwnProperty(Ke))return It;var nr=ie[Ke],wr=this.getModeAt(ge);if(typeof wr[Ke]=="string")nr[wr[Ke]]&&It.push(nr[wr[Ke]]);else if(wr[Ke])for(var _r=0;_r<wr[Ke].length;_r++){var Hn=nr[wr[Ke][_r]];Hn&&It.push(Hn)}else wr.helperType&&nr[wr.helperType]?It.push(nr[wr.helperType]):nr[wr.name]&&It.push(nr[wr.name]);for(var ri=0;ri<nr._global.length;ri++){var xi=nr._global[ri];xi.pred(wr,this)&&G(It,xi.val)==-1&&It.push(xi.val)}return It},getStateAfter:function(ge,Ke){var It=this.doc;return ge=qt(It,ge==null?It.first+It.size-1:ge),ti(this,ge+1,Ke).state},cursorCoords:function(ge,Ke){var It,nr=this.doc.sel.primary();return ge==null?It=nr.head:typeof ge=="object"?It=kt(this.doc,ge):It=ge?nr.from():nr.to(),mo(this,It,Ke||"page")},charCoords:function(ge,Ke){return Qo(this,kt(this.doc,ge),Ke||"page")},coordsChar:function(ge,Ke){return ge=oo(this,ge,Ke||"page"),So(this,ge.left,ge.top)},lineAtHeight:function(ge,Ke){return ge=oo(this,{top:ge,left:0},Ke||"page").top,Rr(this.doc,ge+this.display.viewOffset)},heightAtLine:function(ge,Ke,It){var nr=!1,wr;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),wr=Pe(this.doc,ge)}else wr=ge;return io(this,wr,{top:0,left:0},Ke||"page",It||nr).top+(nr?this.doc.height-Pr(wr):0)},defaultTextHeight:function(){return Oo(this.display)},defaultCharWidth:function(){return Io(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ge,Ke,It,nr,wr){var _r=this.display;ge=mo(this,kt(this.doc,ge));var Hn=ge.bottom,ri=ge.left;if(Ke.style.position="absolute",Ke.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Ke),_r.sizer.appendChild(Ke),nr=="over")Hn=ge.top;else if(nr=="above"||nr=="near"){var xi=Math.max(_r.wrapper.clientHeight,this.doc.height),_i=Math.max(_r.sizer.clientWidth,_r.lineSpace.clientWidth);(nr=="above"||ge.bottom+Ke.offsetHeight>xi)&&ge.top>Ke.offsetHeight?Hn=ge.top-Ke.offsetHeight:ge.bottom+Ke.offsetHeight<=xi&&(Hn=ge.bottom),ri+Ke.offsetWidth>_i&&(ri=_i-Ke.offsetWidth)}Ke.style.top=Hn+"px",Ke.style.left=Ke.style.right="",wr=="right"?(ri=_r.sizer.clientWidth-Ke.offsetWidth,Ke.style.right="0px"):(wr=="left"?ri=0:wr=="middle"&&(ri=(_r.sizer.clientWidth-Ke.offsetWidth)/2),Ke.style.left=ri+"px"),It&&Ya(this,{left:ri,top:Hn,right:ri+Ke.offsetWidth,bottom:Hn+Ke.offsetHeight})},triggerOnKeyDown:Fs(ft),triggerOnKeyPress:Fs(Sr),triggerOnKeyUp:Cr,triggerOnMouseDown:Fs(wi),execCommand:function(ge){if(iu.hasOwnProperty(ge))return iu[ge].call(null,this)},triggerElectric:Fs(function(ue){tr(this,ue)}),findPosH:function(ge,Ke,It,nr){var wr=1;Ke<0&&(wr=-1,Ke=-Ke);for(var _r=kt(this.doc,ge),Hn=0;Hn<Ke&&!(_r=Hr(this.doc,_r,wr,It,nr),_r.hitSide);++Hn);return _r},moveH:Fs(function(ue,ge){var Ke=this;this.extendSelectionsBy(function(It){return Ke.display.shift||Ke.doc.extend||It.empty()?Hr(Ke.doc,It.head,ue,ge,Ke.options.rtlMoveVisually):ue<0?It.from():It.to()},we)}),deleteH:Fs(function(ue,ge){var Ke=this.doc.sel,It=this.doc;Ke.somethingSelected()?It.replaceSelection("",null,"+delete"):Dl(this,function(nr){var wr=Hr(It,nr.head,ue,ge,!1);return ue<0?{from:wr,to:nr.head}:{from:nr.head,to:wr}})}),findPosV:function(ge,Ke,It,nr){var wr=1,_r=nr;Ke<0&&(wr=-1,Ke=-Ke);for(var Hn=kt(this.doc,ge),ri=0;ri<Ke;++ri){var xi=mo(this,Hn,"div");if(_r==null?_r=xi.left:xi.left=_r,Hn=ln(this,xi,wr,It),Hn.hitSide)break}return Hn},moveV:Fs(function(ue,ge){var Ke=this,It=this.doc,nr=[],wr=!this.display.shift&&!It.extend&&It.sel.somethingSelected();if(It.extendSelectionsBy(function(Hn){if(wr)return ue<0?Hn.from():Hn.to();var ri=mo(Ke,Hn.head,"div");Hn.goalColumn!=null&&(ri.left=Hn.goalColumn),nr.push(ri.left);var xi=ln(Ke,ri,ue,ge);return ge=="page"&&Hn==It.sel.primary()&&wa(Ke,Qo(Ke,xi,"div").top-ri.top),xi},we),nr.length)for(var _r=0;_r<It.sel.ranges.length;_r++)It.sel.ranges[_r].goalColumn=nr[_r]}),findWordAt:function(ge){var Ke=this.doc,It=Pe(Ke,ge.line).text,nr=ge.ch,wr=ge.ch;if(It){var _r=this.getHelper(ge,"wordChars");(ge.sticky=="before"||wr==It.length)&&nr?--nr:++wr;for(var Hn=It.charAt(nr),ri=Y(Hn,_r)?function(xi){return Y(xi,_r)}:/\s/.test(Hn)?function(xi){return/\s/.test(xi)}:function(xi){return!/\s/.test(xi)&&!Y(xi)};nr>0&&ri(It.charAt(nr-1));)--nr;for(;wr<It.length&&ri(It.charAt(wr));)++wr}return new ce(Ft(ge.line,nr),Ft(ge.line,wr))},toggleOverwrite:function(ge){if(ge!=null&&ge==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?X(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),Xt(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==P()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Fs(function(ue,ge){ja(this,ue,ge)}),getScrollInfo:function(){var ge=this.display.scroller;return{left:ge.scrollLeft,top:ge.scrollTop,height:ge.scrollHeight-bi(this)-this.display.barHeight,width:ge.scrollWidth-bi(this)-this.display.barWidth,clientHeight:zi(this),clientWidth:Ii(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:Ft(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 Ke=this,It=function(_r){return typeof _r=="number"||/^\d+$/.test(String(_r))?_r+"px":_r};ue!=null&&(this.display.wrapper.style.width=It(ue)),ge!=null&&(this.display.wrapper.style.height=It(ge)),this.options.lineWrapping&&Aa(this);var nr=this.display.viewFrom;this.doc.iter(nr,this.display.viewTo,function(wr){if(wr.widgets){for(var _r=0;_r<wr.widgets.length;_r++)if(wr.widgets[_r].noHScroll){mt(Ke,nr,"widget");break}}++nr}),this.curOp.forceUpdate=!0,Xt(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),Xt(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,Lr(this,"swapDoc",this,ge),ge}),phrase:function(ge){var Ke=this.options.phrases;return Ke&&Object.prototype.hasOwnProperty.call(Ke,ge)?Ke[ge]:ge},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Wt(N),N.registerHelper=function(ue,ge,Ke){ie.hasOwnProperty(ue)||(ie[ue]=N[ue]={_global:[]}),ie[ue][ge]=Ke},N.registerGlobalHelper=function(ue,ge,Ke,It){N.registerHelper(ue,ge,It),ie[ue]._global.push({pred:Ke,val:It})}}function Hr(N,U,ie,ue,ge){var Ke=U,It=ie,nr=Pe(N,U.line),wr=ge&&N.direction=="rtl"?-ie:ie;function _r(){var Na=U.line+wr;return Na<N.first||Na>=N.first+N.size?!1:(U=new Ft(Na,U.ch,U.sticky),nr=Pe(N,Na))}function Hn(Na){var qa;if(ue=="codepoint"){var ho=nr.text.charCodeAt(U.ch+(ue>0?0:-1));isNaN(ho)?qa=null:qa=new Ft(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,wr);else return!1;else U=qa;return!0}if(ue=="char"||ue=="codepoint")Hn();else if(ue=="column")Hn(!0);else if(ue=="word"||ue=="group")for(var ri=null,xi=ue=="group",_i=N.cm&&N.cm.getHelper(U,"wordChars"),la=!0;!(ie<0&&!Hn(!la));la=!1){var Ta=nr.text.charAt(U.ch)||`
`,Wa=Y(Ta,_i)?"w":xi&&Ta==`
`?"n":!xi||/\s/.test(Ta)?null:"p";if(xi&&!la&&!Wa&&(Wa="s"),ri&&ri!=Wa){ie<0&&(ie=1,Hn(),U.sticky="after");break}if(Wa&&(ri=Wa),ie>0&&!Hn(!la))break}var Ma=qo(N,U,Ke,It,!0);return bt(Ke,Ma)&&(Ma.hitSide=!0),Ma}function ln(N,U,ie,ue){var ge=N.doc,Ke=U.left,It;if(ue=="page"){var nr=Math.min(N.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),wr=Math.max(nr-.5*Oo(N.display),3);It=(ie>0?U.bottom:U.top)+ie*wr}else ue=="line"&&(It=ie>0?U.bottom+3:U.top-3);for(var _r;!(_r=So(N,Ke,It),!_r.outside);){if(ie<0?It<=0:It>=ge.height){_r.hitSide=!0;break}It+=ie*5}return _r}var bn=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};bn.prototype.init=function(N){var U=this,ie=this,ue=ie.cm,ge=ie.div=N.lineDiv;Gr(ge,ue.options.spellcheck,ue.options.autocorrect,ue.options.autocapitalize);function Ke(nr){for(var wr=nr.target;wr;wr=wr.parentNode){if(wr==ge)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(wr.className))break}return!1}He(ge,"paste",function(nr){if(!Ke(nr)||hr(ue,nr)||Kt(nr,ue))return;u<=11&&setTimeout(zo(ue,function(){return U.updateFromDOM()}),20)}),He(ge,"compositionstart",function(nr){U.composing={data:nr.data,done:!1}}),He(ge,"compositionupdate",function(nr){U.composing||(U.composing={data:nr.data,done:!1})}),He(ge,"compositionend",function(nr){U.composing&&(nr.data!=U.composing.data&&U.readFromDOMSoon(),U.composing.done=!0)}),He(ge,"touchstart",function(){return ie.forceCompositionEnd()}),He(ge,"input",function(){U.composing||U.readFromDOMSoon()});function It(nr){if(!Ke(nr)||hr(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 wr=ar(ue);$e({lineWise:!0,text:wr.text}),nr.type=="cut"&&ue.operation(function(){ue.setSelections(wr.ranges,0,le),ue.replaceSelection("",null,"cut")})}else return;if(nr.clipboardData){nr.clipboardData.clearData();var _r=_e.text.join(`
`);if(nr.clipboardData.setData("Text",_r),nr.clipboardData.getData("Text")==_r){nr.preventDefault();return}}var Hn=pn(),ri=Hn.firstChild;ue.display.lineSpace.insertBefore(Hn,ue.display.lineSpace.firstChild),ri.value=_e.text.join(`
`);var xi=document.activeElement;j(ri),setTimeout(function(){ue.display.lineSpace.removeChild(Hn),xi.focus(),xi==ge&&ie.showPrimarySelection()},50)}He(ge,"copy",It),He(ge,"cut",It)},bn.prototype.screenReaderLabelChanged=function(N){N?this.div.setAttribute("aria-label",N):this.div.removeAttribute("aria-label")},bn.prototype.prepareSelection=function(){var N=Yr(this.cm,!1);return N.focus=document.activeElement==this.div,N},bn.prototype.showSelection=function(N,U){if(!N||!this.cm.display.view.length)return;(N.focus||U)&&this.showPrimarySelection(),this.showMultipleSelections(N)},bn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},bn.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 Ke=$i(U,N.anchorNode,N.anchorOffset),It=$i(U,N.focusNode,N.focusOffset);if(Ke&&!Ke.bad&&It&&!It.bad&&vt(Mt(Ke,It),ue)==0&&vt(Qt(Ke,It),ge)==0)return;var nr=U.display.view,wr=ue.line>=U.display.viewFrom&&Gn(U,ue)||{node:nr[0].measure.map[2],offset:0},_r=ge.line<U.display.viewTo&&Gn(U,ge);if(!_r){var Hn=nr[nr.length-1].measure,ri=Hn.maps?Hn.maps[Hn.maps.length-1]:Hn.map;_r={node:ri[ri.length-1],offset:ri[ri.length-2]-ri[ri.length-3]}}if(!wr||!_r){N.removeAllRanges();return}var xi=N.rangeCount&&N.getRangeAt(0),_i;try{_i=M(wr.node,wr.offset,_r.offset,_r.node)}catch(la){}_i&&(!x&&U.state.focused?(N.collapse(wr.node,wr.offset),_i.collapsed||(N.removeAllRanges(),N.addRange(_i))):(N.removeAllRanges(),N.addRange(_i)),xi&&N.anchorNode==null?N.addRange(xi):x&&this.startGracePeriod()),this.rememberSelection()},bn.prototype.startGracePeriod=function(){var N=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){N.gracePeriod=!1,N.selectionChanged()&&N.cm.operation(function(){return N.cm.curOp.selectionChanged=!0})},20)},bn.prototype.showMultipleSelections=function(N){O(this.cm.display.cursorDiv,N.cursors),O(this.cm.display.selectionDiv,N.selection)},bn.prototype.rememberSelection=function(){var N=this.getSelection();this.lastAnchorNode=N.anchorNode,this.lastAnchorOffset=N.anchorOffset,this.lastFocusNode=N.focusNode,this.lastFocusOffset=N.focusOffset},bn.prototype.selectionInEditor=function(){var N=this.getSelection();if(!N.rangeCount)return!1;var U=N.getRangeAt(0).commonAncestorContainer;return B(this.div,U)},bn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},bn.prototype.blur=function(){this.div.blur()},bn.prototype.getField=function(){return this.div},bn.prototype.supportsTouch=function(){return!0},bn.prototype.receivedFocus=function(){var N=this;this.selectionInEditor()?this.pollSelection():Eo(this.cm,function(){return N.cm.curOp.selectionChanged=!0});function U(){N.cm.state.focused&&(N.pollSelection(),N.polling.set(N.cm.options.pollInterval,U))}this.polling.set(this.cm.options.pollInterval,U)},bn.prototype.selectionChanged=function(){var N=this.getSelection();return N.anchorNode!=this.lastAnchorNode||N.anchorOffset!=this.lastAnchorOffset||N.focusNode!=this.lastFocusNode||N.focusOffset!=this.lastFocusOffset},bn.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var N=this.getSelection(),U=this.cm;if(c&&t&&this.cm.display.gutterSpecs.length&&Li(N.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var ie=$i(U,N.anchorNode,N.anchorOffset),ue=$i(U,N.focusNode,N.focusOffset);ie&&ue&&Eo(U,function(){Ts(U.doc,Oe(ie,ue),le),(ie.bad||ue.bad)&&(U.curOp.selectionChanged=!0)})},bn.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=Ft(ue.line-1,Pe(N.doc,ue.line-1).length)),ge.ch==Pe(N.doc,ge.line).text.length&&ge.line<N.lastLine()&&(ge=Ft(ge.line+1,0)),ue.line<U.viewFrom||ge.line>U.viewTo-1)return!1;var Ke,It,nr;ue.line==U.viewFrom||(Ke=uo(N,ue.line))==0?(It=Vt(U.view[0].line),nr=U.view[0].node):(It=Vt(U.view[Ke].line),nr=U.view[Ke-1].node.nextSibling);var wr=uo(N,ge.line),_r,Hn;if(wr==U.view.length-1?(_r=U.viewTo-1,Hn=U.lineDiv.lastChild):(_r=Vt(U.view[wr+1].line)-1,Hn=U.view[wr+1].node.previousSibling),!nr)return!1;for(var ri=N.doc.splitLines(da(N,nr,Hn,It,_r)),xi=et(N.doc,Ft(It,0),Ft(_r,Pe(N.doc,_r).text.length));ri.length>1&&xi.length>1;)if(Ve(ri)==Ve(xi))ri.pop(),xi.pop(),_r--;else if(ri[0]==xi[0])ri.shift(),xi.shift(),It++;else break;for(var _i=0,la=0,Ta=ri[0],Wa=xi[0],Ma=Math.min(Ta.length,Wa.length);_i<Ma&&Ta.charCodeAt(_i)==Wa.charCodeAt(_i);)++_i;for(var Na=Ve(ri),qa=Ve(xi),ho=Math.min(Na.length-(ri.length==1?_i:0),qa.length-(xi.length==1?_i:0));la<ho&&Na.charCodeAt(Na.length-la-1)==qa.charCodeAt(qa.length-la-1);)++la;if(ri.length==1&&xi.length==1&&It==ue.line)for(;_i&&_i>ue.ch&&Na.charCodeAt(Na.length-la-1)==qa.charCodeAt(qa.length-la-1);)_i--,la++;ri[ri.length-1]=Na.slice(0,Na.length-la).replace(/^\u200b+/,""),ri[0]=ri[0].slice(_i).replace(/\u200b+$/,"");var ns=Ft(It,_i),Mo=Ft(_r,xi.length?Ve(xi).length-la:0);if(ri.length>1||ri[0]||vt(ns,Mo))return jl(N.doc,ri,ns,Mo,"+input"),!0},bn.prototype.ensurePolled=function(){this.forceCompositionEnd()},bn.prototype.reset=function(){this.forceCompositionEnd()},bn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},bn.prototype.readFromDOMSoon=function(){var N=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(N.readDOMTimeout=null,N.composing)if(N.composing.done)N.composing=null;else return;N.updateFromDOM()},80)},bn.prototype.updateFromDOM=function(){var N=this;(this.cm.isReadOnly()||!this.pollContent())&&Eo(this.cm,function(){return Ha(N.cm)})},bn.prototype.setUneditable=function(N){N.contentEditable="false"},bn.prototype.onKeyPress=function(N){if(N.charCode==0||this.composing)return;N.preventDefault(),this.cm.isReadOnly()||zo(this.cm,wt)(this.cm,String.fromCharCode(N.charCode==null?N.keyCode:N.charCode),0)},bn.prototype.readOnlyChanged=function(N){this.div.contentEditable=String(N!="nocursor")},bn.prototype.onContextMenu=function(){},bn.prototype.resetPosition=function(){},bn.prototype.needsContentAttribute=!0;function Gn(N,U){var ie=Ji(N,U.line);if(!ie||ie.hidden)return null;var ue=Pe(N.doc,U.line),ge=Xi(ie,ue,U.line),Ke=xt(ue,N.doc.direction),It="left";if(Ke){var nr=ke(Ke,U.ch);It=nr%2?"right":"left"}var wr=Pa(ge.map,U.ch,It);return wr.offset=wr.collapse=="right"?wr.end:wr.start,wr}function Li(N){for(var U=N;U;U=U.parentNode)if(/CodeMirror-gutter-wrapper/.test(U.className))return!0;return!1}function Mi(N,U){return U&&(N.bad=!0),N}function da(N,U,ie,ue,ge){var Ke="",It=!1,nr=N.doc.lineSeparator(),wr=!1;function _r(_i){return function(la){return la.id==_i}}function Hn(){It&&(Ke+=nr,wr&&(Ke+=nr),It=wr=!1)}function ri(_i){_i&&(Hn(),Ke+=_i)}function xi(_i){if(_i.nodeType==1){var la=_i.getAttribute("cm-text");if(la){ri(la);return}var Ta=_i.getAttribute("cm-marker"),Wa;if(Ta){var Ma=N.findMarks(Ft(ue,0),Ft(ge+1,0),_r(+Ta));Ma.length&&(Wa=Ma[0].find(0))&&ri(et(N.doc,Wa.from,Wa.to).join(nr));return}if(_i.getAttribute("contenteditable")=="false")return;var Na=/^(pre|div|p|li|table|br)$/i.test(_i.nodeName);if(!/^br$/i.test(_i.nodeName)&&_i.textContent.length==0)return;Na&&Hn();for(var qa=0;qa<_i.childNodes.length;qa++)xi(_i.childNodes[qa]);/^(pre|p)$/i.test(_i.nodeName)&&(wr=!0),Na&&(It=!0)}else _i.nodeType==3&&ri(_i.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(xi(U),U==ie);)U=U.nextSibling,wr=!1;return Ke}function $i(N,U,ie){var ue;if(U==N.display.lineDiv){if(ue=N.display.lineDiv.childNodes[ie],!ue)return Mi(N.clipPos(Ft(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 Ke=N.display.view[ge];if(Ke.node==ue)return Qa(Ke,U,ie)}}function Qa(N,U,ie){var ue=N.text.firstChild,ge=!1;if(!U||!B(ue,U))return Mi(Ft(Vt(N.line),0),!0);if(U==ue&&(ge=!0,U=ue.childNodes[ie],ie=0,!U)){var Ke=N.rest?Ve(N.rest):N.line;return Mi(Ft(Vt(Ke),Ke.text.length),ge)}var It=U.nodeType==3?U:null,nr=U;for(!It&&U.childNodes.length==1&&U.firstChild.nodeType==3&&(It=U.firstChild,ie&&(ie=It.nodeValue.length));nr.parentNode!=ue;)nr=nr.parentNode;var wr=N.measure,_r=wr.maps;function Hn(Wa,Ma,Na){for(var qa=-1;qa<(_r?_r.length:0);qa++)for(var ho=qa<0?wr.map:_r[qa],ns=0;ns<ho.length;ns+=3){var Mo=ho[ns+2];if(Mo==Wa||Mo==Ma){var Ss=Vt(qa<0?N.line:N.rest[qa]),Zs=ho[ns]+Na;return(Na<0||Mo!=Wa)&&(Zs=ho[ns+(Na?1:0)]),Ft(Ss,Zs)}}}var ri=Hn(It,nr,ie);if(ri)return Mi(ri,ge);for(var xi=nr.nextSibling,_i=It?It.nodeValue.length-ie:0;xi;xi=xi.nextSibling){if(ri=Hn(xi,xi.firstChild,0),ri)return Mi(Ft(ri.line,ri.ch-_i),ge);_i+=xi.textContent.length}for(var la=nr.previousSibling,Ta=ie;la;la=la.previousSibling){if(ri=Hn(la,la.firstChild,-1),ri)return Mi(Ft(ri.line,ri.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),a&&(ge.style.width="0px"),He(ge,"input",function(){d&&u>=9&&U.hasSelection&&(U.hasSelection=null),ie.poll()}),He(ge,"paste",function(It){if(hr(ue,It)||Kt(It,ue))return;ue.state.pasteIncoming=+new Date,ie.fastPoll()});function Ke(It){if(hr(ue,It))return;if(ue.somethingSelected())$e({lineWise:!1,text:ue.getSelections()});else if(ue.options.lineWiseCopyCut){var nr=ar(ue);$e({lineWise:!0,text:nr.text}),It.type=="cut"?ue.setSelections(nr.ranges,null,le):(ie.prevInput="",ge.value=nr.text.join(`
`),j(ge))}else return;It.type=="cut"&&(ue.state.cutIncoming=+new Date)}He(ge,"cut",Ke),He(ge,"copy",Ke),He(N.scroller,"paste",function(It){if(qn(N,It)||hr(ue,It))return;if(!ge.dispatchEvent){ue.state.pasteIncoming=+new Date,ie.focus();return}var nr=new Event("paste");nr.clipboardData=It.clipboardData,ge.dispatchEvent(nr)}),He(N.lineSpace,"selectstart",function(It){qn(N,It)||Ge(It)}),He(ge,"compositionstart",function(){var It=ue.getCursor("from");ie.composing&&ie.composing.range.clear(),ie.composing={start:It,range:ue.markText(It,ue.getCursor("to"),{className:"CodeMirror-composing"})}}),He(ge,"compositionend",function(){ie.composing&&(ie.poll(),ie.composing.range.clear(),ie.composing=null)})},ya.prototype.createField=function(N){this.wrapper=pn(),this.textarea=this.wrapper.firstChild},ya.prototype.screenReaderLabelChanged=function(N){N?this.textarea.setAttribute("aria-label",N):this.textarea.removeAttribute("aria-label")},ya.prototype.prepareSelection=function(){var N=this.cm,U=N.display,ie=N.doc,ue=Yr(N);if(N.options.moveInputWithCursor){var ge=mo(N,ie.sel.primary().head,"div"),Ke=U.wrapper.getBoundingClientRect(),It=U.lineDiv.getBoundingClientRect();ue.teTop=Math.max(0,Math.min(U.wrapper.clientHeight-10,ge.top+It.top-Ke.top)),ue.teLeft=Math.max(0,Math.min(U.wrapper.clientWidth-10,ge.left+It.left-Ke.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&&u>=9&&(this.hasSelection=ie)}else N||(this.prevInput=this.textarea.value="",d&&u>=9&&(this.hasSelection=null))},ya.prototype.getField=function(){return this.textarea},ya.prototype.supportsTouch=function(){return!1},ya.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!h||P()!=this.textarea))try{this.textarea.focus()}catch(N){}},ya.prototype.blur=function(){this.textarea.blur()},ya.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ya.prototype.receivedFocus=function(){this.slowPoll()},ya.prototype.slowPoll=function(){var N=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){N.poll(),N.cm.state.focused&&N.slowPoll()})},ya.prototype.fastPoll=function(){var N=!1,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||Bt(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&&u>=9&&this.hasSelection===ge||g&&/[\uf700-\uf7ff]/.test(ge))return U.display.input.reset(),!1;if(U.doc.sel==U.display.selForContextMenu){var Ke=ge.charCodeAt(0);if(Ke==8203&&!ue&&(ue="\u200B"),Ke==8666)return this.reset(),this.cm.execCommand("undo")}for(var It=0,nr=Math.min(ue.length,ge.length);It<nr&&ue.charCodeAt(It)==ge.charCodeAt(It);)++It;return Eo(U,function(){wt(U,ge.slice(It),ue.length-It,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&&u>=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 Ke=_o(ie,N),It=ue.scroller.scrollTop;if(!Ke||s)return;var nr=ie.options.resetSelectionOnContextMenu;nr&&ie.doc.sel.contains(Ke)==-1&&zo(ie,Ts)(ie.doc,Oe(Ke),le);var wr=ge.style.cssText,_r=U.wrapper.style.cssText,Hn=U.wrapper.offsetParent.getBoundingClientRect();U.wrapper.style.cssText="position: static",ge.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(N.clientY-Hn.top-5)+"px; left: "+(N.clientX-Hn.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 ri;o&&(ri=window.scrollY),ue.input.focus(),o&&window.scrollTo(null,ri),ue.input.reset(),ie.somethingSelected()||(ge.value=U.prevInput=" "),U.contextMenuPending=_i,ue.selForContextMenu=ie.doc.sel,clearTimeout(ue.detectingSelectAll);function xi(){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 _i(){if(U.contextMenuPending!=_i)return;if(U.contextMenuPending=!1,U.wrapper.style.cssText=_r,ge.style.cssText=wr,d&&u<9&&ue.scrollbars.setScrollTop(ue.scroller.scrollTop=It),ge.selectionStart!=null){(!d||d&&u<9)&&xi();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&&u>=9&&xi(),C){lt(N);var la=function Ta(){ct(window,"mouseup",Ta),setTimeout(_i,20)};He(window,"mouseup",la)}else setTimeout(_i,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=P();U.autofocus=ie==N||N.getAttribute("autofocus")!=null&&ie==document.body}function ue(){N.value=nr.getValue()}var ge;if(N.form&&(He(N.form,"submit",ue),!U.leaveSubmitMethodAlone)){var Ke=N.form;ge=Ke.submit;try{var It=Ke.submit=function(){ue(),Ke.submit=ge,Ke.submit(),Ke.submit=It}}catch(wr){}}U.finishInit=function(wr){wr.save=ue,wr.getTextArea=function(){return N},wr.toTextArea=function(){wr.toTextArea=isNaN,ue(),N.parentNode.removeChild(wr.getWrapperElement()),N.style.display="",N.form&&(ct(N.form,"submit",ue),!U.leaveSubmitMethodAlone&&typeof N.form.submit=="function"&&(N.form.submit=ge))}},N.style.display="none";var nr=Br(function(wr){return N.parentNode.insertBefore(wr,N.nextSibling)},U);return nr}function za(N){N.off=ct,N.on=He,N.wheelEventPixels=Nn,N.Doc=Cl,N.splitLines=vn,N.countColumn=V,N.findColumn=Ie,N.isWordChar=J,N.Pass=q,N.signal=Xt,N.Line=di,N.changeEnd=Qe,N.scrollbarModel=cs,N.Pos=Ft,N.cmpPos=vt,N.modes=it,N.mimeModes=Fr,N.resolveMode=Kn,N.getMode=gi,N.modeExtensions=Mn,N.extendMode=Un,N.copyState=$t,N.startState=Re,N.innerMode=Ct,N.commands=iu,N.keyMap=Jl,N.keyName=bu,N.isModifierKey=yu,N.lookupKey=Zl,N.normalizeKeyMap=Ru,N.StringStream=De,N.SharedTextMarker=tu,N.TextMarker=Nl,N.LineWidget=xl,N.e_preventDefault=Ge,N.e_stopPropagation=pe,N.e_stop=lt,N.addClass=X,N.contains=B,N.rmClass=T,N.keyNames=zl}Ye(Br),zr(Br);var Xo="iter insert remove copy getEditor constructor".split(" ");for(var ls in Cl.prototype)Cl.prototype.hasOwnProperty(ls)&&G(Xo,ls)<0&&(Br.prototype[ls]=function(N){return function(){return N.apply(this.doc,arguments)}}(Cl.prototype[ls]));return Wt(Cl),Br.inputStyles={textarea:ya,contenteditable:bn},Br.defineMode=function(N){!Br.defaults.mode&&N!="null"&&(Br.defaults.mode=N),cn.apply(this,arguments)},Br.defineMIME=_n,Br.defineMode("null",function(){return{token:function(U){return U.skipToEnd()}}}),Br.defineMIME("text/plain","null"),Br.defineExtension=function(N,U){Br.prototype[N]=U},Br.defineDocExtension=function(N,U){Cl.prototype[N]=U},Br.fromTextArea=fo,za(Br),Br.version="5.58.2",Br})},Vy0f:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("iYpf"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},W2nI:function(k,D,n){var y=n("IwbS"),p=n("ProS"),x=n("bYtY"),v=["itemStyle","opacity"],m=["emphasis","itemStyle","opacity"],f=["lineStyle","opacity"],d=["emphasis","lineStyle","opacity"];function u(l,r){return l.getVisual("opacity")||l.getModel().get(r)}function o(l,r,a){var c=l.getGraphicEl(),h=u(l,r);a!=null&&(h==null&&(h=1),h*=a),c.downplay&&c.downplay(),c.traverse(function(g){g.type!=="group"&&g.setStyle("opacity",h)})}function i(l,r){var a=u(l,r),c=l.getGraphicEl();c.traverse(function(h){h.type!=="group"&&h.setStyle("opacity",a)}),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(l,r){var a=r.extent;l.moveTo(r.x1,r.y1),l.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(l.lineTo(r.x2+a,r.y2),l.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(l.lineTo(r.x2,r.y2+a),l.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),l.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),s=p.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(l,r,a){var c=this,h=l.getGraph(),g=this.group,A=l.layoutInfo,b=A.width,S=A.height,E=l.getData(),C=l.getData("edge"),_=l.get("orient");this._model=l,g.removeAll(),g.attr("position",[A.x,A.y]),h.eachEdge(function(T){var w=new t;w.dataIndex=T.dataIndex,w.seriesIndex=l.seriesIndex,w.dataType="edge";var O=T.getModel("lineStyle"),I=O.get("curveness"),R=T.node1.getLayout(),M=T.node1.getModel(),B=M.get("localX"),P=M.get("localY"),X=T.node2.getLayout(),F=T.node2.getModel(),j=F.get("localX"),K=F.get("localY"),z=T.getLayout(),V,Q,G,te,q,le,re,we;w.shape.extent=Math.max(1,z.dy),w.shape.orient=_,_==="vertical"?(V=(B!=null?B*b:R.x)+z.sy,Q=(P!=null?P*S:R.y)+R.dy,G=(j!=null?j*b:X.x)+z.ty,te=K!=null?K*S:X.y,q=V,le=Q*(1-I)+te*I,re=G,we=Q*I+te*(1-I)):(V=(B!=null?B*b:R.x)+R.dx,Q=(P!=null?P*S:R.y)+z.sy,G=j!=null?j*b:X.x,te=(K!=null?K*S:X.y)+z.ty,q=V*(1-I)+G*I,le=Q,re=V*I+G*(1-I),we=te),w.setShape({x1:V,y1:Q,x2:G,y2:te,cpx1:q,cpy1:le,cpx2:re,cpy2:we}),w.setStyle(O.getItemStyle());switch(w.style.fill){case"source":w.style.fill=T.node1.getVisual("color");break;case"target":w.style.fill=T.node2.getVisual("color");break}y.setHoverStyle(w,T.getModel("emphasis.lineStyle").getItemStyle()),g.add(w),C.setItemGraphicEl(T.dataIndex,w)}),h.eachNode(function(T){var w=T.getLayout(),O=T.getModel(),I=O.get("localX"),R=O.get("localY"),M=O.getModel("label"),B=O.getModel("emphasis.label"),P=new y.Rect({shape:{x:I!=null?I*b:w.x,y:R!=null?R*S:w.y,width:w.dx,height:w.dy},style:O.getModel("itemStyle").getItemStyle()}),X=T.getModel("emphasis.itemStyle").getItemStyle();y.setLabelStyle(P.style,X,M,B,{labelFetcher:l,labelDataIndex:T.dataIndex,defaultText:T.id,isRectText:!0}),P.setStyle("fill",T.getVisual("color")),y.setHoverStyle(P,X),g.add(P),E.setItemGraphicEl(T.dataIndex,P),P.dataType="node"}),E.eachItemGraphicEl(function(T,w){var O=E.getItemModel(w);O.get("draggable")&&(T.drift=function(I,R){c._focusAdjacencyDisabled=!0,this.shape.x+=I,this.shape.y+=R,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:l.id,dataIndex:E.getRawIndex(w),localX:this.shape.x/b,localY:this.shape.y/S})},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(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,dataIndex:T.dataIndex}))}),T.on("mouseout",T.unfocusNodeAdjHandler=function(){c._focusAdjacencyDisabled||c._dispatchUnfocus(a)}))}),C.eachItemGraphicEl(function(T,w){var O=C.getItemModel(w);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(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,edgeDataIndex:T.dataIndex}))}),T.on("mouseout",T.unfocusNodeAdjHandler=function(){c._focusAdjacencyDisabled||c._dispatchUnfocus(a)}))}),!this._data&&l.get("animation")&&g.setClipPath(e(g.getBoundingRect(),l,function(){g.removeClipPath()})),this._data=l.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(l){var r=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){r._unfocusDelayTimer=null,l.dispatchAction({type:"unfocusNodeAdjacency",seriesId:r._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(l,r,a,c){var h=l.getData(),g=h.graph,A=c.dataIndex,b=h.getItemModel(A),S=c.edgeDataIndex;if(A==null&&S==null)return;var E=g.getNodeByIndex(A),C=g.getEdgeByIndex(S);if(g.eachNode(function(T){o(T,v,.1)}),g.eachEdge(function(T){o(T,f,.1)}),E){i(E,m);var _=b.get("focusNodeAdjacency");_==="outEdges"?x.each(E.outEdges,function(T){if(T.dataIndex<0)return;i(T,d),i(T.node2,m)}):_==="inEdges"?x.each(E.inEdges,function(T){if(T.dataIndex<0)return;i(T,d),i(T.node1,m)}):_==="allEdges"&&x.each(E.edges,function(T){if(T.dataIndex<0)return;i(T,d),T.node1!==E&&i(T.node1,m),T.node2!==E&&i(T.node2,m)})}C&&(i(C,d),i(C.node1,m),i(C.node2,m))},unfocusNodeAdjacency:function(l,r,a,c){var h=l.getGraph();h.eachNode(function(g){o(g,v)}),h.eachEdge(function(g){o(g,f)})}});function e(l,r,a){var c=new y.Rect({shape:{x:l.x-10,y:l.y-10,width:0,height:l.height+20}});return y.initProps(c,{shape:{width:l.width+20}},r,a),c}k.exports=s},W4dC:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),v=x.each,m=x.createHashMap,f=n("7DRL"),d=n("TIY9"),u=n("yS9w"),o=n("mFDi"),i={geoJSON:d,svg:u},t={load:function(r,a,c){var h=[],g=m(),A=m(),b,S=l(r);return v(S,function(E){var C=i[E.type].load(r,E,c);v(C.regions,function(T){var w=T.name;a&&a.hasOwnProperty(w)&&(T=T.cloneShallow(w=a[w])),h.push(T),g.set(w,T),A.set(w,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:s("makeGraphic"),removeGraphic:s("removeGraphic")};function s(r){return function(a,c){var h=l(a),g=[];return v(h,function(A){var b=i[A.type][r];b&&g.push(b(a,A,c))}),g}}function e(r){}function l(r){var a=f.retrieveMap(r)||[];return a}k.exports=t},WGYa:function(k,D,n){var y=n("7yuC"),p=y.forceLayout,x=n("HF/U"),v=x.simpleLayout,m=n("lOQZ"),f=m.circularLayout,d=n("OELB"),u=d.linearMap,o=n("QBsz"),i=n("bYtY");function t(s){s.eachSeriesByType("graph",function(e){var l=e.coordinateSystem;if(l&&l.type!=="view")return;if(e.get("layout")==="force"){var r=e.preservedPoints||{},a=e.getGraph(),c=a.data,h=a.edgeData,g=e.getModel("force"),A=g.get("initLayout");e.preservedPoints?c.each(function(M){var B=c.getId(M);c.setItemLayout(M,r[B]||[NaN,NaN])}):!A||A==="none"?v(e):A==="circular"&&f(e,"value");var b=c.getDataExtent("value"),S=h.getDataExtent("value"),E=g.get("repulsion"),C=g.get("edgeLength");i.isArray(E)||(E=[E,E]),i.isArray(C)||(C=[C,C]),C=[C[1],C[0]];var _=c.mapArray("value",function(M,B){var P=c.getItemLayout(B),X=u(M,b,E);return isNaN(X)&&(X=(E[0]+E[1])/2),{w:X,rep:X,fixed:c.getItemModel(B).get("fixed"),p:!P||isNaN(P[0])||isNaN(P[1])?null:P}}),T=h.mapArray("value",function(M,B){var P=a.getEdgeByIndex(B),X=u(M,S,C);isNaN(X)&&(X=(C[0]+C[1])/2);var F=P.getModel();return{n1:_[P.node1.dataIndex],n2:_[P.node2.dataIndex],d:X,curveness:F.get("lineStyle.curveness")||0,ignoreForceLayout:F.get("ignoreForceLayout")}}),l=e.coordinateSystem,w=l.getBoundingRect(),O=p(_,T,{rect:w,gravity:g.get("gravity"),friction:g.get("friction")}),I=O.step;O.step=function(M){for(var B=0,P=_.length;B<P;B++)_[B].fixed&&o.copy(_[B].p,a.getNodeByIndex(B).getLayout());I(function(X,F,j){for(var K=0,z=X.length;K<z;K++)X[K].fixed||a.getNodeByIndex(K).setLayout(X[K].p),r[c.getId(K)]=X[K].p;for(var K=0,z=F.length;K<z;K++){var V=F[K],Q=a.getEdgeByIndex(K),G=V.n1.p,te=V.n2.p,q=Q.getLayout();q=q?q.slice():[],q[0]=q[0]||[],q[1]=q[1]||[],o.copy(q[0],G),o.copy(q[1],te),+V.curveness&&(q[2]=[(G[0]+te[0])/2-(G[1]-te[1])*V.curveness,(G[1]+te[1])/2-(te[0]-G[0])*V.curveness]),Q.setLayout(q)}M&&M(j)})},e.forceLayout=O,e.preservedPoints=r,O.step()}else e.forceLayout=null})}k.exports=t},"WN+l":function(k,D,n){var y=n("bYtY"),p=n("IwbS");function x(m,f,d,u){var o=d.axis;if(o.scale.isBlank())return;var i=d.getModel("splitArea"),t=i.getModel("areaStyle"),s=t.get("color"),e=u.coordinateSystem.getRect(),l=o.getTicksCoords({tickModel:i,clamp:!0});if(!l.length)return;var r=s.length,a=m.__splitAreaColors,c=y.createHashMap(),h=0;if(a)for(var g=0;g<l.length;g++){var A=a.get(l[g].tickValue);if(A!=null){h=(A+(r-1)*g)%r;break}}var b=o.toGlobalCoord(l[0].coord),S=t.getAreaStyle();s=y.isArray(s)?s:[s];for(var g=1;g<l.length;g++){var E=o.toGlobalCoord(l[g].coord),C,_,T,w;o.isHorizontal()?(C=b,_=e.y,T=E-C,w=e.height,b=C+T):(C=e.x,_=b,T=e.width,w=E-_,b=_+w);var O=l[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:w},style:y.defaults({fill:s[h]},S),silent:!0})),h=(h+1)%r}m.__splitAreaColors=c}function v(m){m.__splitAreaColors=null}D.rectCoordAxisBuildSplitArea=x,D.rectCoordAxisHandleRemove=v},WXVj:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("Bqw1")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="MinusSquareOutlined";var i=v.forwardRef(o);D.default=i},WYAk:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){(function(){var p=y,x=p.lib,v=x.Base,m=p.enc,f=m.Utf8,d=p.algo,u=d.HMAC=v.extend({init:function(i,t){i=this._hasher=new i.init,typeof t=="string"&&(t=f.parse(t));var s=i.blockSize,e=s*4;t.sigBytes>e&&(t=i.finalize(t)),t.clamp();for(var l=this._oKey=t.clone(),r=this._iKey=t.clone(),a=l.words,c=r.words,h=0;h<s;h++)a[h]^=1549556828,c[h]^=909522486;l.sigBytes=r.sigBytes=e,this.reset()},reset:function(){var i=this._hasher;i.reset(),i.update(this._iKey)},update:function(i){return this._hasher.update(i),this},finalize:function(i){var t=this._hasher,s=t.finalize(i);t.reset();var e=t.finalize(this._oKey.clone().concat(s));return e}})})()})},Wqna:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),v=x.isObject,m=x.each,f=x.map,d=x.indexOf,u=x.retrieve,o=n("+TT/"),i=o.getLayoutRect,t=n("aX7z"),s=t.createScaleByModel,e=t.ifAxisCrossZero,l=t.niceScaleExtent,r=t.estimateLabelUnionRect,a=n("y+lR"),c=n("7AJT"),h=n("IDmD"),g=n("7hqr"),A=g.getStackedDimension;n("jtI2");function b(M,B,P){return M.getCoordSysModel()===B}function S(M,B,P){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(M,B,P),this.model=M}var E=S.prototype;E.type="grid",E.axisPointerEnabled=!0,E.getRect=function(){return this._rect},E.update=function(M,B){var P=this._axesMap;this._updateScale(M,this.model),m(P.x,function(F){l(F.scale,F.model)}),m(P.y,function(F){l(F.scale,F.model)});var X={};m(P.x,function(F){C(P,"y",F,X)}),m(P.y,function(F){C(P,"x",F,X)}),this.resize(this.model,B)};function C(M,B,P,X){P.getAxesOnZeroOf=function(){return j?[j]:[]};var F=M[B],j,K=P.model,z=K.get("axisLine.onZero"),V=K.get("axisLine.onZeroAxisIndex");if(!z)return;if(V!=null)_(F[V])&&(j=F[V]);else for(var Q in F)if(F.hasOwnProperty(Q)&&_(F[Q])&&!X[G(F[Q])]){j=F[Q];break}j&&(X[G(j)]=!0);function G(te){return te.dim+"_"+te.index}}function _(M){return M&&M.type!=="category"&&M.type!=="time"&&e(M)}E.resize=function(M,B,P){var X=i(M.getBoxLayoutParams(),{width:B.getWidth(),height:B.getHeight()});this._rect=X;var F=this._axesList;j(),!P&&M.get("containLabel")&&(m(F,function(K){if(!K.model.get("axisLabel.inside")){var z=r(K);if(z){var V=K.isHorizontal()?"height":"width",Q=K.model.get("axisLabel.margin");X[V]-=z[V]+Q,K.position==="top"?X.y+=z.height+Q:K.position==="left"&&(X.x+=z.width+Q)}}}),j());function j(){m(F,function(K){var z=K.isHorizontal(),V=z?[0,X.width]:[0,X.height],Q=K.inverse?1:0;K.setExtent(V[Q],V[1-Q]),T(K,z?X.x:X.y)})}},E.getAxis=function(M,B){var P=this._axesMap[M];if(P!=null){if(B==null){for(var X in P)if(P.hasOwnProperty(X))return P[X]}return P[B]}},E.getAxes=function(){return this._axesList.slice()},E.getCartesian=function(M,B){if(M!=null&&B!=null){var P="x"+M+"y"+B;return this._coordsMap[P]}v(M)&&(B=M.yAxisIndex,M=M.xAxisIndex);for(var X=0,F=this._coordsList;X<F.length;X++)if(F[X].getAxis("x").index===M||F[X].getAxis("y").index===B)return F[X]},E.getCartesians=function(){return this._coordsList.slice()},E.convertToPixel=function(M,B,P){var X=this._findConvertTarget(M,B);return X.cartesian?X.cartesian.dataToPoint(P):X.axis?X.axis.toGlobalCoord(X.axis.dataToCoord(P)):null},E.convertFromPixel=function(M,B,P){var X=this._findConvertTarget(M,B);return X.cartesian?X.cartesian.pointToData(P):X.axis?X.axis.coordToData(X.axis.toLocalCoord(P)):null},E._findConvertTarget=function(M,B){var P=B.seriesModel,X=B.xAxisModel||P&&P.getReferringComponents("xAxis")[0],F=B.yAxisModel||P&&P.getReferringComponents("yAxis")[0],j=B.gridModel,K=this._coordsList,z,V;if(P)z=P.coordinateSystem,d(K,z)<0&&(z=null);else if(X&&F)z=this.getCartesian(X.componentIndex,F.componentIndex);else if(X)V=this.getAxis("x",X.componentIndex);else if(F)V=this.getAxis("y",F.componentIndex);else if(j){var Q=j.coordinateSystem;Q===this&&(z=this._coordsList[0])}return{cartesian:z,axis:V}},E.containPoint=function(M){var B=this._coordsList[0];if(B)return B.containPoint(M)},E._initCartesian=function(M,B,P){var X={left:!1,right:!1,top:!1,bottom:!1},F={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=F,m(F.x,function(z,V){m(F.y,function(Q,G){var te="x"+V+"y"+G,q=new a(te);q.grid=this,q.model=M,this._coordsMap[te]=q,this._coordsList.push(q),q.addAxis(z),q.addAxis(Q)},this)},this);function K(z){return function(V,Q){if(!b(V,M,B))return;var G=V.get("position");z==="x"?G!=="top"&&G!=="bottom"&&(G=X.bottom?"top":"bottom"):G!=="left"&&G!=="right"&&(G=X.left?"right":"left"),X[G]=!0;var te=new c(z,s(V),[0,0],V.get("type"),G),q=te.type==="category";te.onBand=q&&V.get("boundaryGap"),te.inverse=V.get("inverse"),V.axis=te,te.model=V,te.grid=this,te.index=Q,this._axesList.push(te),F[z][Q]=te,j[z]++}}},E._updateScale=function(M,B){m(this._axesList,function(X){X.scale.setExtent(Infinity,-Infinity)}),M.eachSeries(function(X){if(I(X)){var F=O(X,M),j=F[0],K=F[1];if(!b(j,B,M)||!b(K,B,M))return;var z=this.getCartesian(j.componentIndex,K.componentIndex),V=X.getData(),Q=z.getAxis("x"),G=z.getAxis("y");V.type==="list"&&(P(V,Q,X),P(V,G,X))}},this);function P(X,F,j){m(X.mapDimension(F.dim,!0),function(K){F.scale.unionExtentFromData(X,A(X,K))})}},E.getTooltipAxes=function(M){var B=[],P=[];return m(this.getCartesians(),function(X){var F=M!=null&&M!=="auto"?X.getAxis(M):X.getBaseAxis(),j=X.getOtherAxis(F);d(B,F)<0&&B.push(F),d(P,j)<0&&P.push(j)}),{baseAxes:B,otherAxes:P}};function T(M,B){var P=M.getExtent(),X=P[0]+P[1];M.toGlobalCoord=M.dim==="x"?function(F){return F+B}:function(F){return X-F+B},M.toLocalCoord=M.dim==="x"?function(F){return F-B}:function(F){return X-F+B}}var w=["xAxis","yAxis"];function O(M,B){return f(w,function(P){var X=M.getReferringComponents(P)[0];return X})}function I(M){return M.get("coordinateSystem")==="cartesian2d"}S.create=function(M,B){var P=[];return M.eachComponent("grid",function(X,F){var j=new S(X,M,B);j.name="grid_"+F,j.resize(X,B,!0),X.coordinateSystem=j,P.push(j)}),M.eachSeries(function(X){if(!I(X))return;var F=O(X,M),j=F[0],K=F[1],z=j.getCoordSysModel(),V=z.coordinateSystem;X.coordinateSystem=V.getCartesian(j.componentIndex,K.componentIndex)}),P},S.dimensions=S.prototype.dimensions=a.prototype.dimensions,h.register("cartesian2d",S);var R=S;k.exports=R},"X+im":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("KQeH")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="DownloadOutlined";var i=v.forwardRef(o);D.default=i},"X2/X":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};D.default=y},XAae:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("hwYd"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},XOKv:function(k,D,n){n("OXB0"),n("SA4+")},Xi7e:function(k,D,n){var y=n("KMkd"),p=n("adU4"),x=n("tMB7"),v=n("+6XX"),m=n("Z8oC");function f(d){var u=-1,o=d==null?0:d.length;for(this.clear();++u<o;){var i=d[u];this.set(i[0],i[1])}}f.prototype.clear=y,f.prototype.delete=p,f.prototype.get=x,f.prototype.has=v,f.prototype.set=m,k.exports=f},Xmg4:function(k,D,n){var y=n("bYtY"),p=n("LPTA"),x=p.devicePixelRatio,v=n("K2GJ"),m=n("3C/r");function f(){return!1}function d(i,t,s){var e=y.createCanvas(),l=t.getWidth(),r=t.getHeight(),a=e.style;return a&&(a.position="absolute",a.left=0,a.top=0,a.width=l+"px",a.height=r+"px",e.setAttribute("data-zr-dom-id",i)),e.width=l*s,e.height=r*s,e}var u=function(t,s,e){var l;e=e||x,typeof t=="string"?l=d(t,s,e):y.isObject(t)&&(l=t,t=l.id),this.id=t,this.dom=l;var r=l.style;r&&(l.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=s,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=e};u.prototype={constructor:u,__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,s){var e=this.dpr,l=this.dom,r=l.style,a=this.domBack;r&&(r.width=t+"px",r.height=s+"px"),l.width=t*e,l.height=s*e,a&&(a.width=t*e,a.height=s*e,e!==1&&this.ctxBack.scale(e,e))},clear:function(t,s){var e=this.dom,l=this.ctx,r=e.width,a=e.height,s=s||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,a/g)),l.clearRect(0,0,r,a),s&&s!=="transparent"){var A;s.colorStops?(A=s.__canvasGradient||v.getGradient(l,s,{x:0,y:0,width:r,height:a}),s.__canvasGradient=A):s.image&&(A=m.prototype.getCanvasPattern.call(s,l)),l.save(),l.fillStyle=A||s,l.fillRect(0,0,r,a),l.restore()}if(c){var b=this.domBack;l.save(),l.globalAlpha=h,l.drawImage(b,0,0,r,a),l.restore()}}};var o=u;k.exports=o},Xnb7:function(k,D,n){var y=n("1RvN"),p=new y(50);function x(d){if(typeof d=="string"){var u=p.get(d);return u&&u.image}else return d}function v(d,u,o,i,t){if(d)if(typeof d=="string"){if(u&&u.__zrImageSrc===d||!o)return u;var s=p.get(d),e={hostEl:o,cb:i,cbPayload:t};return s?(u=s.image,!f(u)&&s.pending.push(e)):(u=new Image,u.onload=u.onerror=m,p.put(d,u.__cachedImgObj={image:u,pending:[e]}),u.src=u.__zrImageSrc=d),u}else return d;else return u}function m(){var d=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var u=0;u<d.pending.length;u++){var o=d.pending[u],i=o.cb;i&&i(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(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),v=n("bYtY"),m=n("oVpE"),f=m.createSymbol,d=n("IwbS"),u=n("eRkO"),o=u.makeBackground,i=n("+TT/"),t=v.curry,s=v.each,e=d.Group,l=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 S=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 w=g.getBoxLayoutParams(),O={width:b.getWidth(),height:b.getHeight()},I=g.get("padding"),R=i.getLayoutRect(w,O,I),M=this.layoutInner(g,E,R,S,_,T),B=i.getLayoutRect(v.defaults({width:M.width,height:M.height},w),O,I);this.group.attr("position",[B.x-M.x,B.y-M.y]),this.group.add(this._backgroundEl=o(M,g))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(g,A,b,S,E,C,_){var T=this.getContentGroup(),w=v.createHashMap(),O=A.get("selectedMode"),I=[];b.eachRawSeries(function(R){!R.get("legendHoverLink")&&I.push(R.id)}),s(A.getData(),function(R,M){var B=R.get("name");if(!this.newlineDisabled&&(B===""||B===`
`)){T.add(new e({newline:!0}));return}var P=b.getSeriesByName(B)[0];if(w.get(B))return;if(P){var X=P.getData(),F=X.getVisual("color"),j=X.getVisual("borderColor");typeof F=="function"&&(F=F(P.getDataParams(0))),typeof j=="function"&&(j=j(P.getDataParams(0)));var K=X.getVisual("legendSymbol")||"roundRect",z=X.getVisual("symbol"),V=this._createItem(B,M,R,A,K,z,g,F,j,O);V.on("click",t(a,B,null,S,I)).on("mouseover",t(c,P.name,null,S,I)).on("mouseout",t(h,P.name,null,S,I)),w.set(B,!0)}else b.eachRawSeries(function(Q){if(w.get(B))return;if(Q.legendVisualProvider){var G=Q.legendVisualProvider;if(!G.containName(B))return;var te=G.indexOfName(B),q=G.getItemVisual(te,"color"),le=G.getItemVisual(te,"borderColor"),re="roundRect",we=this._createItem(B,M,R,A,re,null,g,q,le,O);we.on("click",t(a,null,B,S,I)).on("mouseover",t(c,null,B,S,I)).on("mouseout",t(h,null,B,S,I)),w.set(B,!0)}},this)},this),E&&this._createSelector(E,A,S,C,_)},_createSelector:function(g,A,b,S,E){var C=this.getSelectorGroup();s(g,function(T){_(T)});function _(T){var w=T.type,O=new d.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){b.dispatchAction({type:w==="all"?"legendAllSelect":"legendInverseSelect"})}});C.add(O);var I=A.getModel("selectorLabel"),R=A.getModel("emphasis.selectorLabel");d.setLabelStyle(O.style,O.hoverStyle={},I,R,{defaultText:T.title,isRectText:!1}),d.setHoverStyle(O)}},_createItem:function(g,A,b,S,E,C,_,T,w,O){var I=S.get("itemWidth"),R=S.get("itemHeight"),M=S.get("inactiveColor"),B=S.get("inactiveBorderColor"),P=S.get("symbolKeepAspect"),X=S.getModel("itemStyle"),F=S.isSelected(g),j=new e,K=b.getModel("textStyle"),z=b.get("icon"),V=b.getModel("tooltip"),Q=V.parentModel;E=z||E;var G=f(E,0,0,I,R,F?T:M,P==null?!0:P);if(j.add(r(G,E,X,w,B,F)),!z&&C&&(C!==E||C==="none")){var te=R*.8;C==="none"&&(C="circle");var q=f(C,(I-te)/2,(R-te)/2,te,te,F?T:M,P==null?!0:P);j.add(r(q,C,X,w,B,F))}var le=_==="left"?I+5:-5,re=_,we=S.get("formatter"),Ie=g;typeof we=="string"&&we?Ie=we.replace("{name}",g!=null?g:""):typeof we=="function"&&(Ie=we(g)),j.add(new d.Text({style:d.setTextStyle({},K,{text:Ie,x:le,y:R/2,textFill:F?K.getTextColor():M,textAlign:re,textVerticalAlign:"middle"})}));var Me=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:S.componentIndex,name:g,$vars:["name"]}},V.option):null});return j.add(Me),j.eachChild(function(Je){Je.silent=!0}),Me.silent=!O,this.getContentGroup().add(j),d.setHoverStyle(j),j.__legendDataIndex=A,j},layoutInner:function(g,A,b,S,E,C){var _=this.getContentGroup(),T=this.getSelectorGroup();i.box(g.get("orient"),_,g.get("itemGap"),b.width,b.height);var w=_.getBoundingRect(),O=[-w.x,-w.y];if(E){i.box("horizontal",T,g.get("selectorItemGap",!0));var I=T.getBoundingRect(),R=[-I.x,-I.y],M=g.get("selectorButtonGap",!0),B=g.getOrient().index,P=B===0?"width":"height",X=B===0?"height":"width",F=B===0?"y":"x";C==="end"?R[B]+=w[P]+M:O[B]+=I[P]+M,R[1-B]+=w[X]/2-I[X]/2,T.attr("position",R),_.attr("position",O);var j={x:0,y:0};return j[P]=w[P]+M+I[P],j[X]=Math.max(w[X],I[X]),j[F]=Math.min(0,I[F]+R[1-B]),j}else return _.attr("position",O),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function r(g,A,b,S,E,C){var _;return A!=="line"&&A.indexOf("empty")<0?(_=b.getItemStyle(),g.style.stroke=S,C||(_.stroke=E)):_=b.getItemStyle(["borderWidth","borderColor"]),g.setStyle(_)}function a(g,A,b,S){h(g,A,b,S),b.dispatchAction({type:"legendToggleSelect",name:g!=null?g:A}),c(g,A,b,S)}function c(g,A,b,S){var E=b.getZr().storage.getDisplayList()[0];E&&E.useHoverLayer||b.dispatchAction({type:"highlight",seriesName:g,name:A,excludeSeriesId:S})}function h(g,A,b,S){var E=b.getZr().storage.getDisplayList()[0];E&&E.useHoverLayer||b.dispatchAction({type:"downplay",seriesName:g,name:A,excludeSeriesId:S})}k.exports=l},XuBP:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};D.default=y},XxSj:function(k,D,n){var y=n("bYtY"),p=n("Qe9p"),x=n("OELB"),v=x.linearMap,m=y.each,f=y.isObject,d=-1,u=function(C){var _=C.mappingMethod,T=C.type,w=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"?(s(w),i(w)):_==="category"?w.categories?t(w):s(w,!0):(y.assert(_!=="linear"||w.dataExtent),s(w))};u.prototype={constructor:u,mapValueToVisual:function(C){var _=this._normalizeData(C);return this._doMap(_,C)},getNormalizer:function(){return y.bind(this._normalizeData,this)}};var o=u.visualHandlers={color:{applyVisual:r("color"),getColorMapper:function(){var C=this.option;return y.bind(C.mappingMethod==="category"?function(_,T){return!T&&(_=this._normalizeData(_)),a.call(this,_)}:function(_,T,w){var O=!!w;return!T&&(_=this._normalizeData(_)),w=p.fastLerp(_,C.parsedVisual,w),O?w:p.stringify(w,"rgba")},this)},_doMap:{linear:function(C){return p.stringify(p.fastLerp(C,this.option.parsedVisual),"rgba")},category:a,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 w=this.mapValueToVisual(C);if(y.isString(w))T("symbol",w);else if(f(w))for(var O in w)w.hasOwnProperty(O)&&T(O,w[O])},_doMap:{linear:l,category:a,piecewise:function(C,_){var T=g.call(this,_);return T==null&&(T=l.call(this,C)),T},fixed:c}},symbolSize:{applyVisual:r("symbolSize"),_doMap:h([0,1])}};function i(C){var _=C.pieceList;C.hasSpecialVisual=!1,y.each(_,function(T,w){T.originIndex=w,T.visual!=null&&(C.hasSpecialVisual=!0)})}function t(C){var _=C.categories,T=C.visual,w=C.categoryMap={};if(m(_,function(R,M){w[R]=M}),!y.isArray(T)){var O=[];y.isObject(T)?m(T,function(R,M){var B=w[M];O[B!=null?B:d]=R}):O[d]=T,T=A(C,O)}for(var I=_.length-1;I>=0;I--)T[I]==null&&(delete w[_[I]],_.pop())}function s(C,_){var T=C.visual,w=[];y.isObject(T)?m(T,function(I){w.push(I)}):T!=null&&w.push(T);var O={color:1,symbol:1};!_&&w.length===1&&!O.hasOwnProperty(C.type)&&(w[1]=w[0]),A(C,w)}function e(C){return{applyVisual:function(_,T,w){_=this.mapValueToVisual(_),w("color",C(T("color"),_))},_doMap:h([0,1])}}function l(C){var _=this.option.visual;return _[Math.round(v(C,[0,1],[0,_.length-1],!0))]||{}}function r(C){return function(_,T,w){w(C,this.mapValueToVisual(_))}}function a(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:a,piecewise:function(_,T){var w=g.call(this,T);return w==null&&(w=v(_,C,this.option.visual,!0)),w},fixed:c}}function g(C){var _=this.option,T=_.pieceList;if(_.hasSpecialVisual){var w=u.findPieceIndex(C,T),O=T[w];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=u.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};u.listVisualTypes=function(){var C=[];return y.each(o,function(_,T){C.push(T)}),C},u.addVisualHandler=function(C,_){o[C]=_},u.isValidType=function(C){return o.hasOwnProperty(C)},u.eachVisual=function(C,_,T){y.isObject(C)?y.each(C,_,T):_.call(T,C)},u.mapVisual=function(C,_,T){var w,O=y.isArray(C)?[]:y.isObject(C)?{}:(w=!0,null);return u.eachVisual(C,function(I,R){var M=_.call(T,I,R);w?O=M:O[R]=M}),O},u.retrieveVisuals=function(C){var _={},T;return C&&m(o,function(w,O){C.hasOwnProperty(O)&&(_[O]=C[O],T=!0)}),T?_:null},u.prepareVisualTypes=function(C){if(f(C)){var _=[];m(C,function(T,w){_.push(w)}),C=_}else if(y.isArray(C))C=C.slice();else return[];return C.sort(function(T,w){return w==="color"&&T!=="color"&&T.indexOf("color")===0?1:-1}),C},u.dependsOn=function(C,_){return _==="color"?!!(C&&C.indexOf(_)===0):C===_},u.findPieceIndex=function(C,_,T){for(var w,O=Infinity,I=0,R=_.length;I<R;I++){var M=_[I].value;if(M!=null){if(M===C||typeof M=="string"&&M===C+"")return I;T&&F(M,I)}}for(var I=0,R=_.length;I<R;I++){var B=_[I],P=B.interval,X=B.close;if(P){if(P[0]===-Infinity){if(S(X[1],C,P[1]))return I}else if(P[1]===Infinity){if(S(X[0],P[0],C))return I}else if(S(X[0],P[0],C)&&S(X[1],C,P[1]))return I;T&&F(P[0],I),T&&F(P[1],I)}}if(T)return C===Infinity?_.length-1:C===-Infinity?0:w;function F(j,K){var z=Math.abs(j-C);z<O&&(O=z,w=K)}};function S(C,_,T){return C?_<=T:_<T}var E=u;k.exports=E},XzQk:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("KpQ+"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},"Y+p1":function(k,D,n){var y=n("wF/u");function p(x,v){return y(x,v)}k.exports=p},Y1PL:function(k,D,n){"use strict";n.r(D),n.d(D,"ResizableTextArea",function(){return E});var y=n("wx14"),p=n("1OyB"),x=n("vuIU"),v=n("Ji7U"),m=n("LK+K"),f=n("q1tI"),d=n("VTBJ"),u=n("rePB"),o=n("t23M"),i=n("bT9E"),t=n("TSYQ"),s=n.n(t),e=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,l=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],r={},a;function c(T){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=T.getAttribute("id")||T.getAttribute("data-reactid")||T.getAttribute("name");if(w&&r[O])return r[O];var I=window.getComputedStyle(T),R=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),M=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),B=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),P=l.map(function(F){return"".concat(F,":").concat(I.getPropertyValue(F))}).join(";"),X={sizingStyle:P,paddingSize:M,borderSize:B,boxSizing:R};return w&&O&&(r[O]=X),X}function h(T){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;a||(a=document.createElement("textarea"),a.setAttribute("tab-index","-1"),a.setAttribute("aria-hidden","true"),document.body.appendChild(a)),T.getAttribute("wrap")?a.setAttribute("wrap",T.getAttribute("wrap")):a.removeAttribute("wrap");var R=c(T,w),M=R.paddingSize,B=R.borderSize,P=R.boxSizing,X=R.sizingStyle;a.setAttribute("style","".concat(X,";").concat(e)),a.value=T.value||T.placeholder||"";var F=Number.MIN_SAFE_INTEGER,j=Number.MAX_SAFE_INTEGER,K=a.scrollHeight,z;if(P==="border-box"?K+=B:P==="content-box"&&(K-=M),O!==null||I!==null){a.value=" ";var V=a.scrollHeight-M;O!==null&&(F=V*O,P==="border-box"&&(F=F+M+B),K=Math.max(F,K)),I!==null&&(j=V*I,P==="border-box"&&(j=j+M+B),z=K>j?"":"hidden",K=Math.min(j,K))}return{height:K,minHeight:F,maxHeight:j,overflowY:z,resize:"none"}}var g=n("Gytx"),A=n.n(g),b;(function(T){T[T.NONE=0]="NONE",T[T.RESIZING=1]="RESIZING",T[T.RESIZED=2]="RESIZED"})(b||(b={}));var S=function(T){Object(v.a)(O,T);var w=Object(m.a)(O);function O(I){var R;return Object(p.a)(this,O),R=w.call(this,I),R.nextFrameActionId=void 0,R.resizeFrameId=void 0,R.textArea=void 0,R.saveTextArea=function(M){R.textArea=M},R.handleResize=function(M){var B=R.state.resizeStatus,P=R.props,X=P.autoSize,F=P.onResize;if(B!==b.NONE)return;typeof F=="function"&&F(M),X&&R.resizeOnNextFrame()},R.resizeOnNextFrame=function(){cancelAnimationFrame(R.nextFrameActionId),R.nextFrameActionId=requestAnimationFrame(R.resizeTextarea)},R.resizeTextarea=function(){var M=R.props.autoSize;if(!M||!R.textArea)return;var B=M.minRows,P=M.maxRows,X=h(R.textArea,!1,B,P);R.setState({textareaStyles:X,resizeStatus:b.RESIZING},function(){cancelAnimationFrame(R.resizeFrameId),R.resizeFrameId=requestAnimationFrame(function(){R.setState({resizeStatus:b.RESIZED},function(){R.resizeFrameId=requestAnimationFrame(function(){R.setState({resizeStatus:b.NONE}),R.fixFirefoxAutoScroll()})})})})},R.renderTextArea=function(){var M=R.props,B=M.prefixCls,P=B===void 0?"rc-textarea":B,X=M.autoSize,F=M.onResize,j=M.className,K=M.disabled,z=R.state,V=z.textareaStyles,Q=z.resizeStatus,G=Object(i.a)(R.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),te=s()(P,j,Object(u.a)({},"".concat(P,"-disabled"),K));"value"in G&&(G.value=G.value||"");var q=Object(d.a)(Object(d.a)(Object(d.a)({},R.props.style),V),Q===b.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return f.createElement(o.a,{onResize:R.handleResize,disabled:!(X||F)},f.createElement("textarea",Object(y.a)({},G,{className:te,style:q,ref:R.saveTextArea})))},R.state={textareaStyles:{},resizeStatus:b.NONE},R}return Object(x.a)(O,[{key:"componentDidUpdate",value:function(R){(R.value!==this.props.value||!A()(R.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 R=this.textArea.selectionStart,M=this.textArea.selectionEnd;this.textArea.setSelectionRange(R,M)}}catch(B){}}},{key:"render",value:function(){return this.renderTextArea()}}]),O}(f.Component),E=S,C=function(T){Object(v.a)(O,T);var w=Object(m.a)(O);function O(I){var R;Object(p.a)(this,O),R=w.call(this,I),R.resizableTextArea=void 0,R.focus=function(){R.resizableTextArea.textArea.focus()},R.saveTextArea=function(B){R.resizableTextArea=B},R.handleChange=function(B){var P=R.props.onChange;R.setValue(B.target.value,function(){R.resizableTextArea.resizeTextarea()}),P&&P(B)},R.handleKeyDown=function(B){var P=R.props,X=P.onPressEnter,F=P.onKeyDown;B.keyCode===13&&X&&X(B),F&&F(B)};var M=typeof I.value=="undefined"||I.value===null?I.defaultValue:I.value;return R.state={value:M},R}return Object(x.a)(O,[{key:"setValue",value:function(R,M){"value"in this.props||this.setState({value:R},M)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return f.createElement(E,Object(y.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(R){return"value"in R?{value:R.value}:null}}]),O}(f.Component),_=D.default=C},YCuv:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};D.default=y},YESw:function(k,D,n){var y=n("Cwc5"),p=y(Object,"create");k.exports=p},YH21:function(k,D,n){var y=n("H6uX");D.Dispatcher=y;var p=n("ItGF"),x=n("Ze12"),v=x.isCanvasEl,m=x.transformCoordWithViewport,f=typeof window!="undefined"&&!!window.addEventListener,d=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,u=[];function o(h,g,A,b){return A=A||{},b||!p.canvasSupported?i(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):i(h,g,A),A}function i(h,g,A){if(p.domSupported&&h.getBoundingClientRect){var b=g.clientX,S=g.clientY;if(v(h)){var E=h.getBoundingClientRect();A.zrX=b-E.left,A.zrY=S-E.top;return}else if(m(u,h,b,S)){A.zrX=u[0],A.zrY=u[1];return}}A.zrX=A.zrY=0}function t(h){return h||window.event}function s(h,g,A){if(g=t(g),g.zrX!=null)return g;var b=g.type,S=b&&b.indexOf("touch")>=0;if(!S)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 l(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 a(h){return h.which===2||h.which===3}function c(h){return h.which>1}D.clientToLocal=o,D.getNativeEvent=t,D.normalizeEvent=s,D.addEventListener=e,D.removeEventListener=l,D.stop=r,D.isMiddleOrRightButtonOnMouseUpDown=a,D.notLeftMouse=c},YJ9k:function(k,D,n){"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 u=f[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}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,u){this._listeners.has(d)||this._listeners.set(d,new Set),this._listeners.get(d).add(u)}},{key:"removeEventListener",value:function(d,u){this._listeners.has(d)&&this._listeners.get(d).delete(u)}},{key:"dispatchEvent",value:function(d){var u=this;return this._listeners.has(d.type)?(this._listeners.get(d.type).forEach(function(o){return o.call(u,d)}),!d.defaultPrevented):!0}}]),m}();D.default=v},YJCA:function(k,D,n){"use strict";n.d(D,"a",function(){return $}),n.d(D,"b",function(){return Ce});var y=n("wx14"),p=n("ODXe"),x=n("vpQ4"),v=n("1OyB"),m=n("vuIU"),f=n("md7G"),d=n("foSv"),u=n("Ji7U"),o=n("JX7q"),i=n("rePB"),t=n("q1tI"),s=n.n(t),e=n("17x9"),l=n.n(e),r=n("i8i4"),a=n.n(r),c=n("QLaP"),h=n.n(c),g=n("KQm4"),A=function(){function Be(){Object(v.a)(this,Be),Object(i.a)(this,"refs",{})}return Object(m.a)(Be,[{key:"add",value:function(Se,ke){this.refs[Se]||(this.refs[Se]=[]),this.refs[Se].push(ke)}},{key:"remove",value:function(Se,ke){var rt=this.getIndex(Se,ke);rt!==-1&&this.refs[Se].splice(rt,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var Se=this;return this.refs[this.active.collection].find(function(ke){var rt=ke.node;return rt.sortableInfo.index==Se.active.index})}},{key:"getIndex",value:function(Se,ke){return this.refs[Se].indexOf(ke)}},{key:"getOrderedRefs",value:function(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[Se].sort(b)}}]),Be}();function b(Be,fe){var Se=Be.node.sortableInfo.index,ke=fe.node.sortableInfo.index;return Se-ke}function S(Be,fe,Se){return Be=Be.slice(),Be.splice(Se<0?Be.length+Se:Se,0,Be.splice(fe,1)[0]),Be}function E(Be,fe){return Object.keys(Be).reduce(function(Se,ke){return fe.indexOf(ke)===-1&&(Se[ke]=Be[ke]),Se},{})}var C={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},_=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var Be=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],fe=(Array.prototype.slice.call(Be).join("").match(/-(moz|webkit|ms)-/)||Be.OLink===""&&["","o"])[1];switch(fe){case"ms":return"ms";default:return fe&&fe.length?fe[0].toUpperCase()+fe.substr(1):""}}();function T(Be,fe){Object.keys(fe).forEach(function(Se){Be.style[Se]=fe[Se]})}function w(Be,fe){Be.style["".concat(_,"Transform")]=fe==null?"":"translate3d(".concat(fe.x,"px,").concat(fe.y,"px,0)")}function O(Be,fe){Be.style["".concat(_,"TransitionDuration")]=fe==null?"":"".concat(fe,"ms")}function I(Be,fe){for(;Be;){if(fe(Be))return Be;Be=Be.parentNode}return null}function R(Be,fe,Se){return Math.max(Be,Math.min(Se,fe))}function M(Be){return Be.substr(-2)==="px"?parseFloat(Be):0}function B(Be){var fe=window.getComputedStyle(Be);return{bottom:M(fe.marginBottom),left:M(fe.marginLeft),right:M(fe.marginRight),top:M(fe.marginTop)}}function P(Be,fe){var Se=fe.displayName||fe.name;return Se?"".concat(Be,"(").concat(Se,")"):Be}function X(Be,fe){var Se=Be.getBoundingClientRect();return{top:Se.top+fe.top,left:Se.left+fe.left}}function F(Be){return Be.touches&&Be.touches.length?{x:Be.touches[0].pageX,y:Be.touches[0].pageY}:Be.changedTouches&&Be.changedTouches.length?{x:Be.changedTouches[0].pageX,y:Be.changedTouches[0].pageY}:{x:Be.pageX,y:Be.pageY}}function j(Be){return Be.touches&&Be.touches.length||Be.changedTouches&&Be.changedTouches.length}function K(Be,fe){var Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!Be)return;var ke={left:Se.left+Be.offsetLeft,top:Se.top+Be.offsetTop};return Be.parentNode===fe?ke:K(Be.parentNode,fe,ke)}function z(Be,fe,Se){return Be<Se&&Be>fe?Be-1:Be>Se&&Be<fe?Be+1:Be}function V(Be){var fe=Be.lockOffset,Se=Be.width,ke=Be.height,rt=fe,xt=fe,ht="px";if(typeof fe=="string"){var He=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(fe);h()(He!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',fe),rt=parseFloat(fe),xt=parseFloat(fe),ht=He[1]}return h()(isFinite(rt)&&isFinite(xt),"lockOffset value should be a finite. Given %s",fe),ht==="%"&&(rt=rt*Se/100,xt=xt*ke/100),{x:rt,y:xt}}function Q(Be){var fe=Be.height,Se=Be.width,ke=Be.lockOffset,rt=Array.isArray(ke)?ke:[ke,ke];h()(rt.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",ke);var xt=Object(p.a)(rt,2),ht=xt[0],He=xt[1];return[V({height:fe,lockOffset:ht,width:Se}),V({height:fe,lockOffset:He,width:Se})]}function G(Be){var fe=window.getComputedStyle(Be),Se=/(auto|scroll)/,ke=["overflow","overflowX","overflowY"];return ke.find(function(rt){return Se.test(fe[rt])})}function te(Be){return Be instanceof HTMLElement?G(Be)?Be:te(Be.parentNode):null}function q(Be){var fe=window.getComputedStyle(Be);return fe.display==="grid"?{x:M(fe.gridColumnGap),y:M(fe.gridRowGap)}:{x:0,y:0}}var 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 we(Be){var fe="input, textarea, select, canvas, [contenteditable]",Se=Be.querySelectorAll(fe),ke=Be.cloneNode(!0),rt=Object(g.a)(ke.querySelectorAll(fe));return rt.forEach(function(xt,ht){if(xt.type!=="file"&&(xt.value=Se[ht].value),xt.type==="radio"&&xt.name&&(xt.name="__sortableClone__".concat(xt.name)),xt.tagName===re.Canvas&&Se[ht].width>0&&Se[ht].height>0){var He=xt.getContext("2d");He.drawImage(Se[ht],0,0)}}),ke}function Ie(Be){var fe,Se,ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return Se=fe=function(rt){Object(u.a)(xt,rt);function xt(){return Object(v.a)(this,xt),Object(f.a)(this,Object(d.a)(xt).apply(this,arguments))}return Object(m.a)(xt,[{key:"componentDidMount",value:function(){var He=Object(r.findDOMNode)(this);He.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return h()(ke.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var He=ke.withRef?"wrappedInstance":null;return Object(t.createElement)(Be,Object(y.a)({ref:He},this.props))}}]),xt}(t.Component),Object(i.a)(fe,"displayName",P("sortableHandle",Be)),Se}function Me(Be){return Be.sortableHandle!=null}var Je=function(){function Be(fe,Se){Object(v.a)(this,Be),this.container=fe,this.onScrollCallback=Se}return Object(m.a)(Be,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(Se){var ke=this,rt=Se.translate,xt=Se.minTranslate,ht=Se.maxTranslate,He=Se.width,ir=Se.height,ct={x:0,y:0},Xt={x:1,y:1},hr={x:10,y:10},Jt=this.container,Pt=Jt.scrollTop,Wt=Jt.scrollLeft,Ge=Jt.scrollHeight,pe=Jt.scrollWidth,se=Jt.clientHeight,lt=Jt.clientWidth,qe=Pt===0,me=Ge-Pt-se===0,Ht=Wt===0,yr=pe-Wt-lt===0;rt.y>=ht.y-ir/2&&!me?(ct.y=1,Xt.y=hr.y*Math.abs((ht.y-ir/2-rt.y)/ir)):rt.x>=ht.x-He/2&&!yr?(ct.x=1,Xt.x=hr.x*Math.abs((ht.x-He/2-rt.x)/He)):rt.y<=xt.y+ir/2&&!qe?(ct.y=-1,Xt.y=hr.y*Math.abs((rt.y-ir/2-xt.y)/ir)):rt.x<=xt.x+He/2&&!Ht&&(ct.x=-1,Xt.x=hr.x*Math.abs((rt.x-He/2-xt.x)/He)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(ct.x!==0||ct.y!==0)&&(this.interval=setInterval(function(){ke.isAutoScrolling=!0;var At={left:Xt.x*ct.x,top:Xt.y*ct.y};ke.container.scrollTop+=At.top,ke.container.scrollLeft+=At.left,ke.onScrollCallback(At)},5))}}]),Be}();function Ve(Be){var fe=Be.node;return{height:fe.offsetHeight,width:fe.offsetWidth}}function ut(Be){var fe=[re.Input,re.Textarea,re.Select,re.Option,re.Button];return fe.indexOf(Be.target.tagName)!==-1?!0:!!I(Be.target,function(Se){return Se.contentEditable==="true"})}var Fe={axis:l.a.oneOf(["x","y","xy"]),contentWindow:l.a.any,disableAutoscroll:l.a.bool,distance:l.a.number,getContainer:l.a.func,getHelperDimensions:l.a.func,helperClass:l.a.string,helperContainer:l.a.oneOfType([l.a.func,typeof HTMLElement=="undefined"?l.a.any:l.a.instanceOf(HTMLElement)]),hideSortableGhost:l.a.bool,keyboardSortingTransitionDuration:l.a.number,lockAxis:l.a.string,lockOffset:l.a.oneOfType([l.a.number,l.a.string,l.a.arrayOf(l.a.oneOfType([l.a.number,l.a.string]))]),lockToContainerEdges:l.a.bool,onSortEnd:l.a.func,onSortMove:l.a.func,onSortOver:l.a.func,onSortStart:l.a.func,pressDelay:l.a.number,pressThreshold:l.a.number,keyCodes:l.a.shape({lift:l.a.arrayOf(l.a.number),drop:l.a.arrayOf(l.a.number),cancel:l.a.arrayOf(l.a.number),up:l.a.arrayOf(l.a.number),down:l.a.arrayOf(l.a.number)}),shouldCancelStart:l.a.func,transitionDuration:l.a.number,updateBeforeSortStart:l.a.func,useDragHandle:l.a.bool,useWindowAsScrollContainer:l.a.bool},ae={lift:[le.SPACE],drop:[le.SPACE],cancel:[le.ESC],up:[le.UP,le.LEFT],down:[le.DOWN,le.RIGHT]},at={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:Ve,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:ae,shouldCancelStart:ut,transitionDuration:300,useWindowAsScrollContainer:!1},he=Object.keys(Fe);function J(Be){h()(!(Be.distance&&Be.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function Y(Be,fe){try{var Se=Be()}catch(ke){return fe(!0,ke)}return Se&&Se.then?Se.then(fe.bind(null,!1),fe.bind(null,!0)):fe(!1,value)}function $(Be){var fe,Se,ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return Se=fe=function(rt){Object(u.a)(xt,rt);function xt(ht){var He;return Object(v.a)(this,xt),He=Object(f.a)(this,Object(d.a)(xt).call(this,ht)),Object(i.a)(Object(o.a)(Object(o.a)(He)),"state",{}),Object(i.a)(Object(o.a)(Object(o.a)(He)),"handleStart",function(ir){var ct=He.props,Xt=ct.distance,hr=ct.shouldCancelStart;if(ir.button===2||hr(ir))return;He.touched=!0,He.position=F(ir);var Jt=I(ir.target,function(lt){return lt.sortableInfo!=null});if(Jt&&Jt.sortableInfo&&He.nodeIsChild(Jt)&&!He.state.sorting){var Pt=He.props.useDragHandle,Wt=Jt.sortableInfo,Ge=Wt.index,pe=Wt.collection,se=Wt.disabled;if(se)return;if(Pt&&!I(ir.target,Me))return;He.manager.active={collection:pe,index:Ge},!j(ir)&&ir.target.tagName===re.Anchor&&ir.preventDefault(),Xt||(He.props.pressDelay===0?He.handlePress(ir):He.pressTimer=setTimeout(function(){return He.handlePress(ir)},He.props.pressDelay))}}),Object(i.a)(Object(o.a)(Object(o.a)(He)),"nodeIsChild",function(ir){return ir.sortableInfo.manager===He.manager}),Object(i.a)(Object(o.a)(Object(o.a)(He)),"handleMove",function(ir){var ct=He.props,Xt=ct.distance,hr=ct.pressThreshold;if(!He.state.sorting&&He.touched&&!He._awaitingUpdateBeforeSortStart){var Jt=F(ir),Pt={x:He.position.x-Jt.x,y:He.position.y-Jt.y},Wt=Math.abs(Pt.x)+Math.abs(Pt.y);He.delta=Pt,!Xt&&(!hr||Wt>=hr)?(clearTimeout(He.cancelTimer),He.cancelTimer=setTimeout(He.cancel,0)):Xt&&Wt>=Xt&&He.manager.isActive()&&He.handlePress(ir)}}),Object(i.a)(Object(o.a)(Object(o.a)(He)),"handleEnd",function(){He.touched=!1,He.cancel()}),Object(i.a)(Object(o.a)(Object(o.a)(He)),"cancel",function(){var ir=He.props.distance,ct=He.state.sorting;ct||(ir||clearTimeout(He.pressTimer),He.manager.active=null)}),Object(i.a)(Object(o.a)(Object(o.a)(He)),"handlePress",function(ir){try{var ct=He.manager.getActive(),Xt=function(){if(ct){var hr=function(){var ur=me.sortableInfo.index,vn=B(me),Bt=q(He.container),sr=He.scrollContainer.getBoundingClientRect(),Yt=Wt({index:ur,node:me,collection:Ht});if(He.node=me,He.margin=vn,He.gridGap=Bt,He.width=Yt.width,He.height=Yt.height,He.marginOffset={x:He.margin.left+He.margin.right+He.gridGap.x,y:Math.max(He.margin.top,He.margin.bottom,He.gridGap.y)},He.boundingClientRect=me.getBoundingClientRect(),He.containerBoundingRect=sr,He.index=ur,He.newIndex=ur,He.axis={x:Pt.indexOf("x")>=0,y:Pt.indexOf("y")>=0},He.offsetEdge=K(me,He.container),yr?He.initialOffset=F(Object(x.a)({},ir,{pageX:He.boundingClientRect.left,pageY:He.boundingClientRect.top})):He.initialOffset=F(ir),He.initialScroll={left:He.scrollContainer.scrollLeft,top:He.scrollContainer.scrollTop},He.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},He.helper=He.helperContainer.appendChild(we(me)),T(He.helper,{boxSizing:"border-box",height:"".concat(He.height,"px"),left:"".concat(He.boundingClientRect.left-vn.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(He.boundingClientRect.top-vn.top,"px"),width:"".concat(He.width,"px")}),yr&&He.helper.focus(),pe&&(He.sortableGhost=me,T(me,{opacity:0,visibility:"hidden"})),He.minTranslate={},He.maxTranslate={},yr){var pt=qe?{top:0,left:0,width:He.contentWindow.innerWidth,height:He.contentWindow.innerHeight}:He.containerBoundingRect,it=pt.top,Fr=pt.left,cn=pt.width,_n=pt.height,Kn=it+_n,gi=Fr+cn;He.axis.x&&(He.minTranslate.x=Fr-He.boundingClientRect.left,He.maxTranslate.x=gi-(He.boundingClientRect.left+He.width)),He.axis.y&&(He.minTranslate.y=it-He.boundingClientRect.top,He.maxTranslate.y=Kn-(He.boundingClientRect.top+He.height))}else He.axis.x&&(He.minTranslate.x=(qe?0:sr.left)-He.boundingClientRect.left-He.width/2,He.maxTranslate.x=(qe?He.contentWindow.innerWidth:sr.left+sr.width)-He.boundingClientRect.left-He.width/2),He.axis.y&&(He.minTranslate.y=(qe?0:sr.top)-He.boundingClientRect.top-He.height/2,He.maxTranslate.y=(qe?He.contentWindow.innerHeight:sr.top+sr.height)-He.boundingClientRect.top-He.height/2);Ge&&Ge.split(" ").forEach(function(Mn){return He.helper.classList.add(Mn)}),He.listenerNode=ir.touches?me:He.contentWindow,yr?(He.listenerNode.addEventListener("wheel",He.handleKeyEnd,!0),He.listenerNode.addEventListener("mousedown",He.handleKeyEnd,!0),He.listenerNode.addEventListener("keydown",He.handleKeyDown)):(C.move.forEach(function(Mn){return He.listenerNode.addEventListener(Mn,He.handleSortMove,!1)}),C.end.forEach(function(Mn){return He.listenerNode.addEventListener(Mn,He.handleSortEnd,!1)})),He.setState({sorting:!0,sortingIndex:ur}),lt&&lt({node:me,index:ur,collection:Ht,isKeySorting:yr,nodes:He.manager.getOrderedRefs(),helper:He.helper},ir),yr&&He.keyMove(0)},Jt=He.props,Pt=Jt.axis,Wt=Jt.getHelperDimensions,Ge=Jt.helperClass,pe=Jt.hideSortableGhost,se=Jt.updateBeforeSortStart,lt=Jt.onSortStart,qe=Jt.useWindowAsScrollContainer,me=ct.node,Ht=ct.collection,yr=He.manager.isKeySorting,At=function(){if(typeof se=="function"){He._awaitingUpdateBeforeSortStart=!0;var rr=Y(function(){var ur=me.sortableInfo.index;return Promise.resolve(se({collection:Ht,index:ur,node:me,isKeySorting:yr},ir)).then(function(){})},function(ur,vn){if(He._awaitingUpdateBeforeSortStart=!1,ur)throw vn;return vn});if(rr&&rr.then)return rr.then(function(){})}}();return At&&At.then?At.then(hr):hr(At)}}();return Promise.resolve(Xt&&Xt.then?Xt.then(function(){}):void 0)}catch(hr){return Promise.reject(hr)}}),Object(i.a)(Object(o.a)(Object(o.a)(He)),"handleSortMove",function(ir){var ct=He.props.onSortMove;typeof ir.preventDefault=="function"&&ir.preventDefault(),He.updateHelperPosition(ir),He.animateNodes(),He.autoscroll(),ct&&ct(ir)}),Object(i.a)(Object(o.a)(Object(o.a)(He)),"handleSortEnd",function(ir){var ct=He.props,Xt=ct.hideSortableGhost,hr=ct.onSortEnd,Jt=He.manager,Pt=Jt.active.collection,Wt=Jt.isKeySorting,Ge=He.manager.getOrderedRefs();He.listenerNode&&(Wt?(He.listenerNode.removeEventListener("wheel",He.handleKeyEnd,!0),He.listenerNode.removeEventListener("mousedown",He.handleKeyEnd,!0),He.listenerNode.removeEventListener("keydown",He.handleKeyDown)):(C.move.forEach(function(me){return He.listenerNode.removeEventListener(me,He.handleSortMove)}),C.end.forEach(function(me){return He.listenerNode.removeEventListener(me,He.handleSortEnd)}))),He.helper.parentNode.removeChild(He.helper),Xt&&He.sortableGhost&&T(He.sortableGhost,{opacity:"",visibility:""});for(var pe=0,se=Ge.length;pe<se;pe++){var lt=Ge[pe],qe=lt.node;lt.edgeOffset=null,lt.boundingClientRect=null,w(qe,null),O(qe,null),lt.translate=null}He.autoScroller.clear(),He.manager.active=null,He.manager.isKeySorting=!1,He.setState({sorting:!1,sortingIndex:null}),typeof hr=="function"&&hr({collection:Pt,newIndex:He.newIndex,oldIndex:He.index,isKeySorting:Wt,nodes:Ge},ir),He.touched=!1}),Object(i.a)(Object(o.a)(Object(o.a)(He)),"autoscroll",function(){var ir=He.props.disableAutoscroll,ct=He.manager.isKeySorting;if(ir){He.autoScroller.clear();return}if(ct){var Xt=Object(x.a)({},He.translate),hr=0,Jt=0;He.axis.x&&(Xt.x=Math.min(He.maxTranslate.x,Math.max(He.minTranslate.x,He.translate.x)),hr=He.translate.x-Xt.x),He.axis.y&&(Xt.y=Math.min(He.maxTranslate.y,Math.max(He.minTranslate.y,He.translate.y)),Jt=He.translate.y-Xt.y),He.translate=Xt,w(He.helper,He.translate),He.scrollContainer.scrollLeft+=hr,He.scrollContainer.scrollTop+=Jt;return}He.autoScroller.update({height:He.height,maxTranslate:He.maxTranslate,minTranslate:He.minTranslate,translate:He.translate,width:He.width})}),Object(i.a)(Object(o.a)(Object(o.a)(He)),"onAutoScroll",function(ir){He.translate.x+=ir.left,He.translate.y+=ir.top,He.animateNodes()}),Object(i.a)(Object(o.a)(Object(o.a)(He)),"handleKeyDown",function(ir){var ct=ir.keyCode,Xt=He.props,hr=Xt.shouldCancelStart,Jt=Xt.keyCodes,Pt=Jt===void 0?{}:Jt,Wt=Object(x.a)({},ae,Pt);if(He.manager.active&&!He.manager.isKeySorting||!He.manager.active&&(!Wt.lift.includes(ct)||hr(ir)||!He.isValidSortingTarget(ir)))return;ir.stopPropagation(),ir.preventDefault(),Wt.lift.includes(ct)&&!He.manager.active?He.keyLift(ir):Wt.drop.includes(ct)&&He.manager.active?He.keyDrop(ir):Wt.cancel.includes(ct)?(He.newIndex=He.manager.active.index,He.keyDrop(ir)):Wt.up.includes(ct)?He.keyMove(-1):Wt.down.includes(ct)&&He.keyMove(1)}),Object(i.a)(Object(o.a)(Object(o.a)(He)),"keyLift",function(ir){var ct=ir.target,Xt=I(ct,function(Wt){return Wt.sortableInfo!=null}),hr=Xt.sortableInfo,Jt=hr.index,Pt=hr.collection;He.initialFocusedNode=ct,He.manager.isKeySorting=!0,He.manager.active={index:Jt,collection:Pt},He.handlePress(ir)}),Object(i.a)(Object(o.a)(Object(o.a)(He)),"keyMove",function(ir){var ct=He.manager.getOrderedRefs(),Xt=ct[ct.length-1].node.sortableInfo.index,hr=He.newIndex+ir,Jt=He.newIndex;if(hr<0||hr>Xt)return;He.prevIndex=Jt,He.newIndex=hr;var Pt=z(He.newIndex,He.prevIndex,He.index),Wt=ct.find(function(yr){var At=yr.node;return At.sortableInfo.index===Pt}),Ge=Wt.node,pe=He.containerScrollDelta,se=Wt.boundingClientRect||X(Ge,pe),lt=Wt.translate||{x:0,y:0},qe={top:se.top+lt.y-pe.top,left:se.left+lt.x-pe.left},me=Jt<hr,Ht={x:me&&He.axis.x?Ge.offsetWidth-He.width:0,y:me&&He.axis.y?Ge.offsetHeight-He.height:0};He.handleSortMove({pageX:qe.left+Ht.x,pageY:qe.top+Ht.y,ignoreTransition:ir===0})}),Object(i.a)(Object(o.a)(Object(o.a)(He)),"keyDrop",function(ir){He.handleSortEnd(ir),He.initialFocusedNode&&He.initialFocusedNode.focus()}),Object(i.a)(Object(o.a)(Object(o.a)(He)),"handleKeyEnd",function(ir){He.manager.active&&He.keyDrop(ir)}),Object(i.a)(Object(o.a)(Object(o.a)(He)),"isValidSortingTarget",function(ir){var ct=He.props.useDragHandle,Xt=ir.target,hr=I(Xt,function(Jt){return Jt.sortableInfo!=null});return hr&&hr.sortableInfo&&!hr.sortableInfo.disabled&&(ct?Me(Xt):Xt.sortableInfo)}),J(ht),He.manager=new A,He.events={end:He.handleEnd,move:He.handleMove,start:He.handleStart},He}return Object(m.a)(xt,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var He=this,ir=this.props.useWindowAsScrollContainer,ct=this.getContainer();Promise.resolve(ct).then(function(Xt){He.container=Xt,He.document=He.container.ownerDocument||document;var hr=He.props.contentWindow||He.document.defaultView||window;He.contentWindow=typeof hr=="function"?hr():hr,He.scrollContainer=ir?He.document.scrollingElement||He.document.documentElement:te(He.container)||He.container,He.autoScroller=new Je(He.scrollContainer,He.onAutoScroll),Object.keys(He.events).forEach(function(Jt){return C[Jt].forEach(function(Pt){return He.container.addEventListener(Pt,He.events[Jt],!1)})}),He.container.addEventListener("keydown",He.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var He=this;if(this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!this.container)return;Object.keys(this.events).forEach(function(ir){return C[ir].forEach(function(ct){return He.container.removeEventListener(ct,He.events[ir])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(He){var ir=this.props,ct=ir.lockAxis,Xt=ir.lockOffset,hr=ir.lockToContainerEdges,Jt=ir.transitionDuration,Pt=ir.keyboardSortingTransitionDuration,Wt=Pt===void 0?Jt:Pt,Ge=this.manager.isKeySorting,pe=He.ignoreTransition,se=F(He),lt={x:se.x-this.initialOffset.x,y:se.y-this.initialOffset.y};if(lt.y-=window.pageYOffset-this.initialWindowScroll.top,lt.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=lt,hr){var qe=Q({height:this.height,lockOffset:Xt,width:this.width}),me=Object(p.a)(qe,2),Ht=me[0],yr=me[1],At={x:this.width/2-Ht.x,y:this.height/2-Ht.y},rr={x:this.width/2-yr.x,y:this.height/2-yr.y};lt.x=R(this.minTranslate.x+At.x,this.maxTranslate.x-rr.x,lt.x),lt.y=R(this.minTranslate.y+At.y,this.maxTranslate.y-rr.y,lt.y)}ct==="x"?lt.y=0:ct==="y"&&(lt.x=0),Ge&&Wt&&!pe&&O(this.helper,Wt),w(this.helper,lt)}},{key:"animateNodes",value:function(){var He=this.props,ir=He.transitionDuration,ct=He.hideSortableGhost,Xt=He.onSortOver,hr=this.containerScrollDelta,Jt=this.windowScrollDelta,Pt=this.manager.getOrderedRefs(),Wt={left:this.offsetEdge.left+this.translate.x+hr.left,top:this.offsetEdge.top+this.translate.y+hr.top},Ge=this.manager.isKeySorting,pe=this.newIndex;this.newIndex=null;for(var se=0,lt=Pt.length;se<lt;se++){var qe=Pt[se].node,me=qe.sortableInfo.index,Ht=qe.offsetWidth,yr=qe.offsetHeight,At={height:this.height>yr?yr/2:this.height/2,width:this.width>Ht?Ht/2:this.width/2},rr=Ge&&me>this.index&&me<=pe,ur=Ge&&me<this.index&&me>=pe,vn={x:0,y:0},Bt=Pt[se].edgeOffset;Bt||(Bt=K(qe,this.container),Pt[se].edgeOffset=Bt,Ge&&(Pt[se].boundingClientRect=X(qe,hr)));var sr=se<Pt.length-1&&Pt[se+1],Yt=se>0&&Pt[se-1];if(sr&&!sr.edgeOffset&&(sr.edgeOffset=K(sr.node,this.container),Ge&&(sr.boundingClientRect=X(sr.node,hr))),me===this.index){ct&&(this.sortableGhost=qe,T(qe,{opacity:0,visibility:"hidden"}));continue}ir&&O(qe,ir),this.axis.x?this.axis.y?ur||me<this.index&&(Wt.left+Jt.left-At.width<=Bt.left&&Wt.top+Jt.top<=Bt.top+At.height||Wt.top+Jt.top+At.height<=Bt.top)?(vn.x=this.width+this.marginOffset.x,Bt.left+vn.x>this.containerBoundingRect.width-At.width&&(sr&&(vn.x=sr.edgeOffset.left-Bt.left,vn.y=sr.edgeOffset.top-Bt.top)),this.newIndex===null&&(this.newIndex=me)):(rr||me>this.index&&(Wt.left+Jt.left+At.width>=Bt.left&&Wt.top+Jt.top+At.height>=Bt.top||Wt.top+Jt.top+At.height>=Bt.top+yr))&&(vn.x=-(this.width+this.marginOffset.x),Bt.left+vn.x<this.containerBoundingRect.left+At.width&&(Yt&&(vn.x=Yt.edgeOffset.left-Bt.left,vn.y=Yt.edgeOffset.top-Bt.top)),this.newIndex=me):rr||me>this.index&&Wt.left+Jt.left+At.width>=Bt.left?(vn.x=-(this.width+this.marginOffset.x),this.newIndex=me):(ur||me<this.index&&Wt.left+Jt.left<=Bt.left+At.width)&&(vn.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=me)):this.axis.y&&(rr||me>this.index&&Wt.top+Jt.top+At.height>=Bt.top?(vn.y=-(this.height+this.marginOffset.y),this.newIndex=me):(ur||me<this.index&&Wt.top+Jt.top<=Bt.top+At.height)&&(vn.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=me))),w(qe,vn),Pt[se].translate=vn}this.newIndex==null&&(this.newIndex=this.index),Ge&&(this.newIndex=pe);var pt=Ge?this.prevIndex:pe;Xt&&this.newIndex!==pt&&Xt({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:pt,isKeySorting:Ge,nodes:Pt,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return h()(ke.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"getContainer",value:function(){var He=this.props.getContainer;return typeof He!="function"?Object(r.findDOMNode)(this):He(ke.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var He=ke.withRef?"wrappedInstance":null;return Object(t.createElement)(Be,Object(y.a)({ref:He},E(this.props,he)))}},{key:"helperContainer",get:function(){var He=this.props.helperContainer;return typeof He=="function"?He():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var He=this.props.useWindowAsScrollContainer;return He?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),xt}(t.Component),Object(i.a)(fe,"displayName",P("sortableList",Be)),Object(i.a)(fe,"defaultProps",at),Object(i.a)(fe,"propTypes",Fe),Object(i.a)(fe,"childContextTypes",{manager:l.a.object.isRequired}),Se}var de={index:l.a.number.isRequired,collection:l.a.oneOfType([l.a.number,l.a.string]),disabled:l.a.bool},be=Object.keys(de);function Ce(Be){var fe,Se,ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return Se=fe=function(rt){Object(u.a)(xt,rt);function xt(){return Object(v.a)(this,xt),Object(f.a)(this,Object(d.a)(xt).apply(this,arguments))}return Object(m.a)(xt,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(He){this.node&&(He.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),He.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),He.collection!==this.props.collection&&(this.unregister(He.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var He=this.props,ir=He.collection,ct=He.disabled,Xt=He.index,hr=Object(r.findDOMNode)(this);hr.sortableInfo={collection:ir,disabled:ct,index:Xt,manager:this.context.manager},this.node=hr,this.ref={node:hr},this.context.manager.add(ir,this.ref)}},{key:"unregister",value:function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(He,this.ref)}},{key:"getWrappedInstance",value:function(){return h()(ke.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var He=ke.withRef?"wrappedInstance":null;return Object(t.createElement)(Be,Object(y.a)({ref:He},E(this.props,be)))}}]),xt}(t.Component),Object(i.a)(fe,"displayName",P("sortableElement",Be)),Object(i.a)(fe,"contextTypes",{manager:l.a.object.isRequired}),Object(i.a)(fe,"propTypes",de),Object(i.a)(fe,"defaultProps",{collection:0}),Se}},YNAk:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("QyFq")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="CaretDownFilled";var i=v.forwardRef(o);D.default=i},YNf1:function(k,D,n){var y=n("IwbS"),p=n("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(s,e,l,r){var a=this._dataGroup,c=s.getData(),h=this._data,g=s.coordinateSystem,A=g.dimensions,b=u(s);c.diff(h).add(S).update(E).remove(C).execute();function S(T){var w=d(c,a,T,A,g);o(w,c,T,b)}function E(T,w){var O=h.getItemGraphicEl(w),I=f(c,T,A,g);c.setItemGraphicEl(T,O);var R=r&&r.animation===!1?null:s;y.updateProps(O,{shape:{points:I}},R,T),o(O,c,T,b)}function C(T){var w=h.getItemGraphicEl(T);a.remove(w)}if(!this._initialized){this._initialized=!0;var _=m(g,s,function(){setTimeout(function(){a.removeClipPath()})});a.setClipPath(_)}this._data=c},incrementalPrepareRender:function(s,e,l){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(s,e,l){for(var r=e.getData(),a=e.coordinateSystem,c=a.dimensions,h=u(e),g=s.start;g<s.end;g++){var A=d(r,this._dataGroup,g,c,a);A.incremental=!0,o(A,r,g,h)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function m(s,e,l){var r=s.model,a=s.getRect(),c=new y.Rect({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),h=r.get("layout")==="horizontal"?"width":"height";return c.setShape(h,0),y.initProps(c,{shape:{width:a.width,height:a.height}},e,l),c}function f(s,e,l,r){for(var a=[],c=0;c<l.length;c++){var h=l[c],g=s.get(s.mapDimension(h),e);i(g,r.getAxis(h).type)||a.push(r.dataToPoint(g,h))}return a}function d(s,e,l,r,a){var c=f(s,l,r,a),h=new y.Polyline({shape:{points:c},silent:!0,z2:10});return e.add(h),s.setItemGraphicEl(l,h),h}function u(s){var e=s.get("smooth",!0);return e===!0&&(e=x),{lineStyle:s.getModel("lineStyle").getLineStyle(),smooth:e!=null?e:x}}function o(s,e,l,r){var a=r.lineStyle;if(e.hasItemOption){var c=e.getItemModel(l).getModel("lineStyle");a=c.getLineStyle()}s.useStyle(a);var h=s.style;h.fill=null,h.stroke=e.getItemVisual(l,"color"),h.opacity=e.getItemVisual(l,"opacity"),r.smooth&&(s.shape.smooth=r.smooth)}function i(s,e){return e==="category"?s==null:s==null||isNaN(s)}var t=v;k.exports=t},YOMW:function(k,D,n){var y=n("bYtY"),p={get:function(m,f,d){var u=y.clone((x[m]||{})[f]);return d&&y.isArray(u)?u[u.length-1]:u}},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;k.exports=v},YXkt:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),v=n("Qxkt"),m=n("gPAo"),f=n("7G+c"),d=n("KxfA"),u=d.defaultDimValueGetters,o=d.DefaultDataProvider,i=n("L0Ub"),t=i.summarizeDimensions,s=n("Vi4m"),e=x.isObject,l="undefined",r=-1,a="e\0\0",c={float:typeof Float64Array===l?Array:Float64Array,int:typeof Int32Array===l?Array:Int32Array,ordinal:Array,number:Array,time:Array},h=typeof Uint32Array===l?Array:Uint32Array,g=typeof Int32Array===l?Array:Int32Array,A=typeof Uint16Array===l?Array:Uint16Array;function b(G){return G._rawCount>65535?h:A}function S(G){var te=G.constructor;return te===Array?G.slice():new te(G)}var E=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],C=["_extent","_approximateExtent","_rawExtent"];function _(G,te){x.each(E.concat(te.__wrappedMethods||[]),function(q){te.hasOwnProperty(q)&&(G[q]=te[q])}),G.__wrappedMethods=te.__wrappedMethods,x.each(C,function(q){G[q]=x.clone(te[q])}),G._calculationInfo=x.extend(te._calculationInfo)}var T=function(G,te){G=G||["x","y"];for(var q={},le=[],re={},we=0;we<G.length;we++){var Ie=G[we];x.isString(Ie)?Ie=new s({name:Ie}):Ie instanceof s||(Ie=new s(Ie));var Me=Ie.name;Ie.type=Ie.type||"float",Ie.coordDim||(Ie.coordDim=Me,Ie.coordDimIndex=0),Ie.otherDims=Ie.otherDims||{},le.push(Me),q[Me]=Ie,Ie.index=we,Ie.createInvertedIndices&&(re[Me]=[])}this.dimensions=le,this._dimensionInfos=q,this.hostModel=te,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=t(this),this._invertedIndicesMap=re,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},w=T.prototype;w.type="list",w.hasItemOption=!0,w.getDimension=function(G){return(typeof G=="number"||!isNaN(G)&&!this._dimensionInfos.hasOwnProperty(G))&&(G=this.dimensions[G]),G},w.getDimensionInfo=function(G){return this._dimensionInfos[this.getDimension(G)]},w.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},w.mapDimension=function(G,te){var q=this._dimensionsSummary;if(te==null)return q.encodeFirstDimNotExtra[G];var le=q.encode[G];return te===!0?(le||[]).slice():le&&le[te]},w.initData=function(G,te,q){var le=f.isInstance(G)||x.isArrayLike(G);le&&(G=new o(G,this.dimensions.length)),this._rawData=G,this._storage={},this._indices=null,this._nameList=te||[],this._idList=[],this._nameRepeatCount={},q||(this.hasItemOption=!1),this.defaultDimValueGetter=u[this._rawData.getSource().sourceFormat],this._dimValueGetter=q=q||this.defaultDimValueGetter,this._dimValueGetterArrayRows=u.arrayRows,this._rawExtent={},this._initDataFromProvider(0,G.count()),G.pure&&(this.hasItemOption=!1)},w.getProvider=function(){return this._rawData},w.appendData=function(G){var te=this._rawData,q=this.count();te.appendData(G);var le=te.count();te.persistent||(le+=q),this._initDataFromProvider(q,le)},w.appendValues=function(G,te){for(var q=this._chunkSize,le=this._storage,re=this.dimensions,we=re.length,Ie=this._rawExtent,Me=this.count(),Je=Me+Math.max(G.length,te?te.length:0),Ve=this._chunkCount,ut=0;ut<we;ut++){var Fe=re[ut];Ie[Fe]||(Ie[Fe]=z()),le[Fe]||(le[Fe]=[]),O(le,this._dimensionInfos[Fe],q,Ve,Je),this._chunkCount=le[Fe].length}for(var ae=new Array(we),at=Me;at<Je;at++){for(var he=at-Me,J=Math.floor(at/q),Y=at%q,$=0;$<we;$++){var Fe=re[$],de=this._dimValueGetterArrayRows(G[he]||ae,Fe,he,$);le[Fe][J][Y]=de;var be=Ie[Fe];de<be[0]&&(be[0]=de),de>be[1]&&(be[1]=de)}te&&(this._nameList[at]=te[he])}this._rawCount=this._count=Je,this._extent={},I(this)},w._initDataFromProvider=function(G,te){if(G>=te)return;for(var q=this._chunkSize,le=this._rawData,re=this._storage,we=this.dimensions,Ie=we.length,Me=this._dimensionInfos,Je=this._nameList,Ve=this._idList,ut=this._rawExtent,Fe=this._nameRepeatCount={},ae,at=this._chunkCount,he=0;he<Ie;he++){var J=we[he];ut[J]||(ut[J]=z());var Y=Me[J];Y.otherDims.itemName===0&&(ae=this._nameDimIdx=he),Y.otherDims.itemId===0&&(this._idDimIdx=he),re[J]||(re[J]=[]),O(re,Y,q,at,te),this._chunkCount=re[J].length}for(var $=new Array(Ie),de=G;de<te;de++){$=le.getItem(de,$);for(var be=Math.floor(de/q),Ce=de%q,Be=0;Be<Ie;Be++){var J=we[Be],fe=re[J][be],Se=this._dimValueGetter($,J,de,Be);fe[Ce]=Se;var ke=ut[J];Se<ke[0]&&(ke[0]=Se),Se>ke[1]&&(ke[1]=Se)}if(!le.pure){var rt=Je[de];if($&&rt==null){if($.name!=null)Je[de]=rt=$.name;else if(ae!=null){var xt=we[ae],ht=re[xt][be];if(ht){rt=ht[Ce];var He=Me[xt].ordinalMeta;He&&He.categories.length&&(rt=He.categories[rt])}}}var ir=$==null?null:$.id;ir==null&&rt!=null&&(Fe[rt]=Fe[rt]||0,ir=rt,Fe[rt]>0&&(ir+="__ec__"+Fe[rt]),Fe[rt]++),ir!=null&&(Ve[de]=ir)}}!le.persistent&&le.clean&&le.clean(),this._rawCount=this._count=te,this._extent={},I(this)};function O(G,te,q,le,re){var we=c[te.type],Ie=le-1,Me=te.name,Je=G[Me][Ie];if(Je&&Je.length<q){for(var Ve=new we(Math.min(re-Ie*q,q)),ut=0;ut<Je.length;ut++)Ve[ut]=Je[ut];G[Me][Ie]=Ve}for(var Fe=le*q;Fe<re;Fe+=q)G[Me].push(new we(Math.min(re-Fe,q)))}function I(G){var te=G._invertedIndicesMap;x.each(te,function(q,le){var re=G._dimensionInfos[le],we=re.ordinalMeta;if(we){q=te[le]=new g(we.categories.length);for(var Ie=0;Ie<q.length;Ie++)q[Ie]=r;for(var Ie=0;Ie<G._count;Ie++)q[G.get(le,Ie)]=Ie}})}function R(G,te,q){var le;if(te!=null){var re=G._chunkSize,we=Math.floor(q/re),Ie=q%re,Me=G.dimensions[te],Je=G._storage[Me][we];if(Je){le=Je[Ie];var Ve=G._dimensionInfos[Me].ordinalMeta;Ve&&Ve.categories.length&&(le=Ve.categories[le])}}return le}w.count=function(){return this._count},w.getIndices=function(){var G,te=this._indices;if(te){var q=te.constructor,le=this._count;if(q===Array){G=new q(le);for(var re=0;re<le;re++)G[re]=te[re]}else G=new q(te.buffer,0,le)}else for(var q=b(this),G=new q(this.count()),re=0;re<G.length;re++)G[re]=re;return G},w.get=function(G,te){if(!(te>=0&&te<this._count))return NaN;var q=this._storage;if(!q[G])return NaN;te=this.getRawIndex(te);var le=Math.floor(te/this._chunkSize),re=te%this._chunkSize,we=q[G][le],Ie=we[re];return Ie},w.getByRawIndex=function(G,te){if(!(te>=0&&te<this._rawCount))return NaN;var q=this._storage[G];if(!q)return NaN;var le=Math.floor(te/this._chunkSize),re=te%this._chunkSize,we=q[le];return we[re]},w._getFast=function(G,te){var q=Math.floor(te/this._chunkSize),le=te%this._chunkSize,re=this._storage[G][q];return re[le]},w.getValues=function(G,te){var q=[];x.isArray(G)||(te=G,G=this.dimensions);for(var le=0,re=G.length;le<re;le++)q.push(this.get(G[le],te));return q},w.hasValue=function(G){for(var te=this._dimensionsSummary.dataDimsOnCoord,q=0,le=te.length;q<le;q++)if(isNaN(this.get(te[q],G)))return!1;return!0},w.getDataExtent=function(G){G=this.getDimension(G);var te=this._storage[G],q=z();if(!te)return q;var le=this.count(),re=!this._indices,we;if(re)return this._rawExtent[G].slice();if(we=this._extent[G],we)return we.slice();we=q;for(var Ie=we[0],Me=we[1],Je=0;Je<le;Je++){var Ve=this._getFast(G,this.getRawIndex(Je));Ve<Ie&&(Ie=Ve),Ve>Me&&(Me=Ve)}return we=[Ie,Me],this._extent[G]=we,we},w.getApproximateExtent=function(G){return G=this.getDimension(G),this._approximateExtent[G]||this.getDataExtent(G)},w.setApproximateExtent=function(G,te){te=this.getDimension(te),this._approximateExtent[te]=G.slice()},w.getCalculationInfo=function(G){return this._calculationInfo[G]},w.setCalculationInfo=function(G,te){e(G)?x.extend(this._calculationInfo,G):this._calculationInfo[G]=te},w.getSum=function(G){var te=this._storage[G],q=0;if(te)for(var le=0,re=this.count();le<re;le++){var we=this.get(G,le);isNaN(we)||(q+=we)}return q},w.getMedian=function(G){var te=[];this.each(G,function(re,we){isNaN(re)||te.push(re)});var q=[].concat(te).sort(function(re,we){return re-we}),le=this.count();return le===0?0:le%2===1?q[(le-1)/2]:(q[le/2]+q[le/2-1])/2},w.rawIndexOf=function(G,te){var q=G&&this._invertedIndicesMap[G],le=q[te];return le==null||isNaN(le)?r:le},w.indexOfName=function(G){for(var te=0,q=this.count();te<q;te++)if(this.getName(te)===G)return te;return-1},w.indexOfRawIndex=function(G){if(G>=this._rawCount||G<0)return-1;if(!this._indices)return G;var te=this._indices,q=te[G];if(q!=null&&q<this._count&&q===G)return G;for(var le=0,re=this._count-1;le<=re;){var we=(le+re)/2|0;if(te[we]<G)le=we+1;else if(te[we]>G)re=we-1;else return we}return-1},w.indicesOfNearest=function(G,te,q){var le=this._storage,re=le[G],we=[];if(!re)return we;q==null&&(q=Infinity);for(var Ie=Infinity,Me=-1,Je=0,Ve=0,ut=this.count();Ve<ut;Ve++){var Fe=te-this.get(G,Ve),ae=Math.abs(Fe);ae<=q&&((ae<Ie||ae===Ie&&Fe>=0&&Me<0)&&(Ie=ae,Me=Fe,Je=0),Fe===Me&&(we[Je++]=Ve))}return we.length=Je,we},w.getRawIndex=M;function M(G){return G}function B(G){return G<this._count&&G>=0?this._indices[G]:-1}w.getRawDataItem=function(G){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(G));for(var te=[],q=0;q<this.dimensions.length;q++){var le=this.dimensions[q];te.push(this.get(le,G))}return te},w.getName=function(G){var te=this.getRawIndex(G);return this._nameList[te]||R(this,this._nameDimIdx,te)||""},w.getId=function(G){return P(this,this.getRawIndex(G))};function P(G,te){var q=G._idList[te];return q==null&&(q=R(G,G._idDimIdx,te)),q==null&&(q=a+te),q}function X(G){return x.isArray(G)||(G=[G]),G}function F(G,te){for(var q=0;q<te.length;q++)G._dimensionInfos[te[q]]||console.error("Unkown dimension "+te[q])}w.each=function(G,te,q,le){"use strict";if(!this._count)return;typeof G=="function"&&(le=q,q=te,te=G,G=[]),q=q||le||this,G=x.map(X(G),this.getDimension,this);for(var re=G.length,we=0;we<this.count();we++)switch(re){case 0:te.call(q,we);break;case 1:te.call(q,this.get(G[0],we),we);break;case 2:te.call(q,this.get(G[0],we),this.get(G[1],we),we);break;default:for(var Ie=0,Me=[];Ie<re;Ie++)Me[Ie]=this.get(G[Ie],we);Me[Ie]=we,te.apply(q,Me)}},w.filterSelf=function(G,te,q,le){"use strict";if(!this._count)return;typeof G=="function"&&(le=q,q=te,te=G,G=[]),q=q||le||this,G=x.map(X(G),this.getDimension,this);for(var re=this.count(),we=b(this),Ie=new we(re),Me=[],Je=G.length,Ve=0,ut=G[0],Fe=0;Fe<re;Fe++){var ae,at=this.getRawIndex(Fe);if(Je===0)ae=te.call(q,Fe);else if(Je===1){var he=this._getFast(ut,at);ae=te.call(q,he,Fe)}else{for(var J=0;J<Je;J++)Me[J]=this._getFast(ut,at);Me[J]=Fe,ae=te.apply(q,Me)}ae&&(Ie[Ve++]=at)}return Ve<re&&(this._indices=Ie),this._count=Ve,this._extent={},this.getRawIndex=this._indices?B:M,this},w.selectRange=function(G){"use strict";if(!this._count)return;var te=[];for(var q in G)G.hasOwnProperty(q)&&te.push(q);var le=te.length;if(!le)return;var re=this.count(),we=b(this),Ie=new we(re),Me=0,Je=te[0],Ve=G[Je][0],ut=G[Je][1],Fe=!1;if(!this._indices){var ae=0;if(le===1){for(var at=this._storage[te[0]],he=0;he<this._chunkCount;he++)for(var J=at[he],Y=Math.min(this._count-he*this._chunkSize,this._chunkSize),$=0;$<Y;$++){var de=J[$];(de>=Ve&&de<=ut||isNaN(de))&&(Ie[Me++]=ae),ae++}Fe=!0}else if(le===2){for(var at=this._storage[Je],be=this._storage[te[1]],Ce=G[te[1]][0],Be=G[te[1]][1],he=0;he<this._chunkCount;he++)for(var J=at[he],fe=be[he],Y=Math.min(this._count-he*this._chunkSize,this._chunkSize),$=0;$<Y;$++){var de=J[$],Se=fe[$];(de>=Ve&&de<=ut||isNaN(de))&&(Se>=Ce&&Se<=Be||isNaN(Se))&&(Ie[Me++]=ae),ae++}Fe=!0}}if(!Fe)if(le===1)for(var $=0;$<re;$++){var ke=this.getRawIndex($),de=this._getFast(Je,ke);(de>=Ve&&de<=ut||isNaN(de))&&(Ie[Me++]=ke)}else for(var $=0;$<re;$++){for(var rt=!0,ke=this.getRawIndex($),he=0;he<le;he++){var xt=te[he],de=this._getFast(q,ke);(de<G[xt][0]||de>G[xt][1])&&(rt=!1)}rt&&(Ie[Me++]=this.getRawIndex($))}return Me<re&&(this._indices=Ie),this._count=Me,this._extent={},this.getRawIndex=this._indices?B:M,this},w.mapArray=function(G,te,q,le){"use strict";typeof G=="function"&&(le=q,q=te,te=G,G=[]),q=q||le||this;var re=[];return this.each(G,function(){re.push(te&&te.apply(this,arguments))},q),re};function j(G,te){var q=G.dimensions,le=new T(x.map(q,G.getDimensionInfo,G),G.hostModel);_(le,G);for(var re=le._storage={},we=G._storage,Ie=0;Ie<q.length;Ie++){var Me=q[Ie];we[Me]&&(x.indexOf(te,Me)>=0?(re[Me]=K(we[Me]),le._rawExtent[Me]=z(),le._extent[Me]=null):re[Me]=we[Me])}return le}function K(G){for(var te=new Array(G.length),q=0;q<G.length;q++)te[q]=S(G[q]);return te}function z(){return[Infinity,-Infinity]}w.map=function(G,te,q,le){"use strict";q=q||le||this,G=x.map(X(G),this.getDimension,this);var re=j(this,G);re._indices=this._indices,re.getRawIndex=re._indices?B:M;for(var we=re._storage,Ie=[],Me=this._chunkSize,Je=G.length,Ve=this.count(),ut=[],Fe=re._rawExtent,ae=0;ae<Ve;ae++){for(var at=0;at<Je;at++)ut[at]=this.get(G[at],ae);ut[Je]=ae;var he=te&&te.apply(q,ut);if(he!=null){typeof he!="object"&&(Ie[0]=he,he=Ie);for(var J=this.getRawIndex(ae),Y=Math.floor(J/Me),$=J%Me,de=0;de<he.length;de++){var be=G[de],Ce=he[de],Be=Fe[be],fe=we[be];fe&&(fe[Y][$]=Ce),Ce<Be[0]&&(Be[0]=Ce),Ce>Be[1]&&(Be[1]=Ce)}}}return re},w.downSample=function(G,te,q,le){for(var re=j(this,[G]),we=re._storage,Ie=[],Me=Math.floor(1/te),Je=we[G],Ve=this.count(),ut=this._chunkSize,Fe=re._rawExtent[G],ae=new(b(this))(Ve),at=0,he=0;he<Ve;he+=Me){Me>Ve-he&&(Me=Ve-he,Ie.length=Me);for(var J=0;J<Me;J++){var Y=this.getRawIndex(he+J),$=Math.floor(Y/ut),de=Y%ut;Ie[J]=Je[$][de]}var be=q(Ie),Ce=this.getRawIndex(Math.min(he+le(Ie,be)||0,Ve-1)),Be=Math.floor(Ce/ut),fe=Ce%ut;Je[Be][fe]=be,be<Fe[0]&&(Fe[0]=be),be>Fe[1]&&(Fe[1]=be),ae[at++]=Ce}return re._count=at,re._indices=ae,re.getRawIndex=B,re},w.getItemModel=function(G){var te=this.hostModel;return new v(this.getRawDataItem(G),te,te&&te.ecModel)},w.diff=function(G){var te=this;return new m(G?G.getIndices():[],this.getIndices(),function(q){return P(G,q)},function(q){return P(te,q)})},w.getVisual=function(G){var te=this._visual;return te&&te[G]},w.setVisual=function(G,te){if(e(G)){for(var q in G)G.hasOwnProperty(q)&&this.setVisual(q,G[q]);return}this._visual=this._visual||{},this._visual[G]=te},w.setLayout=function(G,te){if(e(G)){for(var q in G)G.hasOwnProperty(q)&&this.setLayout(q,G[q]);return}this._layout[G]=te},w.getLayout=function(G){return this._layout[G]},w.getItemLayout=function(G){return this._itemLayouts[G]},w.setItemLayout=function(G,te,q){this._itemLayouts[G]=q?x.extend(this._itemLayouts[G]||{},te):te},w.clearItemLayouts=function(){this._itemLayouts.length=0},w.getItemVisual=function(G,te,q){var le=this._itemVisuals[G],re=le&&le[te];return re==null&&!q?this.getVisual(te):re},w.setItemVisual=function(G,te,q){var le=this._itemVisuals[G]||{},re=this.hasItemVisual;if(this._itemVisuals[G]=le,e(te)){for(var we in te)te.hasOwnProperty(we)&&(le[we]=te[we],re[we]=!0);return}le[te]=q,re[te]=!0},w.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var V=function(G){G.seriesIndex=this.seriesIndex,G.dataIndex=this.dataIndex,G.dataType=this.dataType};w.setItemGraphicEl=function(G,te){var q=this.hostModel;te&&(te.dataIndex=G,te.dataType=this.dataType,te.seriesIndex=q&&q.seriesIndex,te.type==="group"&&te.traverse(V,te)),this._graphicEls[G]=te},w.getItemGraphicEl=function(G){return this._graphicEls[G]},w.eachItemGraphicEl=function(G,te){x.each(this._graphicEls,function(q,le){q&&(G&&G.call(te,q,le))})},w.cloneShallow=function(G){if(!G){var te=x.map(this.dimensions,this.getDimensionInfo,this);G=new T(te,this.hostModel)}if(G._storage=this._storage,_(G,this),this._indices){var q=this._indices.constructor;G._indices=new q(this._indices)}else G._indices=null;return G.getRawIndex=G._indices?B:M,G},w.wrapMethod=function(G,te){var q=this[G];if(typeof q!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(G),this[G]=function(){var le=q.apply(this,arguments);return te.apply(this,[le].concat(x.slice(arguments)))}},w.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],w.CHANGABLE_METHODS=["filterSelf","selectRange"];var Q=T;k.exports=Q},YgsL:function(k,D,n){var y=n("QBsz"),p=y.distance;function x(m,f,d,u,o,i,t){var s=(d-m)*.5,e=(u-f)*.5;return(2*(f-d)+s+e)*t+(-3*(f-d)-2*s-e)*i+s*o+f}function v(m,f){for(var d=m.length,u=[],o=0,i=1;i<d;i++)o+=p(m[i-1],m[i]);var t=o/2;t=t<d?d:t;for(var i=0;i<t;i++){var s=i/(t-1)*(f?d:d-1),e=Math.floor(s),l=s-e,r,a=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=l*l,A=l*g;u.push([x(r[0],a[0],c[0],h[0],l,g,A),x(r[1],a[1],c[1],h[1],l,g,A)])}return u}k.exports=v},Yl7c:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),v=".",m="___EC__COMPONENT__CONTAINER___";function f(r){var a={main:"",sub:""};return r&&(r=r.split(v),a.main=r[0]||"",a.sub=r[1]||""),a}function d(r){x.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function u(r,a){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=s,x.inherits(g,this),g.superClass=h,g}}var o=0;function i(r){var a=["__\0is_clz",o++,Math.random().toFixed(3)].join("_");r.prototype[a]=!0,r.isInstance=function(c){return!!(c&&c[a])}}function t(r,a){var c=x.slice(arguments,2);return this.superClass.prototype[a].apply(r,c)}function s(r,a,c){return this.superClass.prototype[a].apply(r,c)}function e(r,a){a=a||{};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 S=h(b);S[b.sub]=A}}return A},r.getClass=function(A,b,S){var E=c[A];if(E&&E[m]&&(E=b?E[b]:null),S&&!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=[],S=c[A.main];return S&&S[m]?x.each(S,function(E,C){C!==m&&b.push(E)}):b.push(S),b},r.hasClass=function(A){return A=f(A),!!c[A.main]},r.getAllClassMainTypes=function(){var A=[];return x.each(c,function(b,S){A.push(S)}),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(a.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 l(r,a){}D.parseClassType=f,D.enableClassExtend=u,D.enableClassCheck=i,D.enableClassManagement=e,D.setReadOnly=l},Ynxi:function(k,D,n){var y=n("bYtY"),p=n("ProS"),x=n("IwbS"),v=n("+TT/"),m=v.getLayoutRect,f=n("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(u,o,i){if(this.group.removeAll(),!u.get("show"))return;var t=this.group,s=u.getModel("textStyle"),e=u.getModel("subtextStyle"),l=u.get("textAlign"),r=y.retrieve2(u.get("textBaseline"),u.get("textVerticalAlign")),a=new x.Text({style:x.setTextStyle({},s,{text:u.get("text"),textFill:s.getTextColor()},{disableBox:!0}),z2:10}),c=a.getBoundingRect(),h=u.get("subtext"),g=new x.Text({style:x.setTextStyle({},e,{text:h,textFill:e.getTextColor(),y:c.height+u.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),A=u.get("link"),b=u.get("sublink"),S=u.get("triggerEvent",!0);a.silent=!A&&!S,g.silent=!b&&!S,A&&a.on("click",function(){d(A,"_"+u.get("target"))}),b&&g.on("click",function(){d(A,"_"+u.get("subtarget"))}),a.eventData=g.eventData=S?{componentType:"title",componentIndex:u.componentIndex}:null,t.add(a),h&&t.add(g);var E=t.getBoundingRect(),C=u.getBoxLayoutParams();C.width=E.width,C.height=E.height;var _=m(C,{width:i.getWidth(),height:i.getHeight()},u.get("padding"));l||(l=u.get("left")||u.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),r||(r=u.get("top")||u.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:l,textVerticalAlign:r};a.setStyle(T),g.setStyle(T),E=t.getBoundingRect();var w=_.margin,O=u.getItemStyle(["color","opacity"]);O.fill=u.get("backgroundColor");var I=new x.Rect({shape:{x:E.x-w[3],y:E.y-w[0],width:E.width+w[1]+w[3],height:E.height+w[0]+w[2],r:u.get("borderRadius")},style:O,subPixelOptimize:!0,silent:!0});t.add(I)}})},Ywus:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("DO2E")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="DeleteOutlined";var i=v.forwardRef(o);D.default=i},Z0Lh:function(k,D,n){"use strict";var y=n("TqRt");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=y(n("pVnL")),x=y(n("HjOm")),v=y(n("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(k,D,n){var y=n("ycre"),p=n("quyA"),x=n("q4HE");function v(m){return p(m)?x(m):y(m)}k.exports=v},Z1r0:function(k,D){function n(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(u){var o=f.getItemModel(u),i=o.getShallow("category");if(i!=null){typeof i=="number"&&(i=d[i]);for(var t=0;t<p.length;t++)if(!p[t].isSelected(i))return!1}return!0})},this)}k.exports=n},Z1wy:function(k,D,n){var y=n("ProS");n("ThAp"),n("pmaE"),n("SehX"),n("7uqq");var p=n("zuHt"),x=n("VPsl"),v=n("9u0u"),m=n("lELe"),f=n("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(k,D,n){var y=n("MwEJ"),p=n("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}});k.exports=x},Z6rY:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},p=y;D.default=p},Z8oC:function(k,D,n){var y=n("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}k.exports=p},Z8zF:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),v=n("bYtY"),m=n("IwbS"),f=n("56rv"),d=f.setLabel,u=n("Qxkt"),o=n("tceW"),i=n("y+Vt"),t=n("4fz+"),s=n("iLNv"),e=s.throttle,l=n("sK/D"),r=l.createClipPath,a=n("wr5s"),c=["itemStyle","barBorderWidth"],h=[0,0];v.extend(u.prototype,o);function g(V,Q){var G=V.getArea&&V.getArea();if(V.type==="cartesian2d"){var te=V.getBaseAxis();if(te.type!=="category"||!te.onBand){var q=Q.getLayout("bandWidth");te.isHorizontal()?(G.x-=q,G.width+=q*2):(G.y-=q,G.height+=q*2)}}return G}var A=x.extendChartView({type:"bar",render:function(V,Q,G){this._updateDrawMode(V);var te=V.get("coordinateSystem");return(te==="cartesian2d"||te==="polar")&&(this._isLargeDraw?this._renderLarge(V,Q,G):this._renderNormal(V,Q,G)),this.group},incrementalPrepareRender:function(V,Q,G){this._clear(),this._updateDrawMode(V)},incrementalRender:function(V,Q,G,te){this._incrementalRenderLarge(V,Q)},_updateDrawMode:function(V){var Q=V.pipelineContext.large;(this._isLargeDraw==null||Q^this._isLargeDraw)&&(this._isLargeDraw=Q,this._clear())},_renderNormal:function(V,Q,G){var te=this.group,q=V.getData(),le=this._data,re=V.coordinateSystem,we=re.getBaseAxis(),Ie;re.type==="cartesian2d"?Ie=we.isHorizontal():re.type==="polar"&&(Ie=we.dim==="angle");var Me=V.isAnimationEnabled()?V:null,Je=V.get("clip",!0),Ve=g(re,q);te.removeClipPath();var ut=V.get("roundCap",!0),Fe=V.get("showBackground",!0),ae=V.getModel("backgroundStyle"),at=ae.get("barBorderRadius")||0,he=[],J=this._backgroundEls||[];q.diff(le).add(function(de){var be=q.getItemModel(de),Ce=w[re.type](q,de,be);if(Fe){var Be=w[re.type](q,de),fe=z(re,Ie,Be);fe.useStyle(ae.getBarItemStyle()),re.type==="cartesian2d"&&fe.setShape("r",at),he[de]=fe}if(!q.hasValue(de))return;if(Je){var Se=E[re.type](Ve,Ce);if(Se){te.remove(ke);return}}var ke=C[re.type](de,Ce,Ie,Me,!1,ut);q.setItemGraphicEl(de,ke),te.add(ke),I(ke,q,de,be,Ce,V,Ie,re.type==="polar")}).update(function(de,be){var Ce=q.getItemModel(de),Be=w[re.type](q,de,Ce);if(Fe){var fe=J[be];fe.useStyle(ae.getBarItemStyle()),re.type==="cartesian2d"&&fe.setShape("r",at),he[de]=fe;var Se=w[re.type](q,de),ke=K(Ie,Se,re);m.updateProps(fe,{shape:ke},Me,de)}var rt=le.getItemGraphicEl(be);if(!q.hasValue(de)){te.remove(rt);return}if(Je){var xt=E[re.type](Ve,Be);if(xt){te.remove(rt);return}}rt?m.updateProps(rt,{shape:Be},Me,de):rt=C[re.type](de,Be,Ie,Me,!0,ut),q.setItemGraphicEl(de,rt),te.add(rt),I(rt,q,de,Ce,Be,V,Ie,re.type==="polar")}).remove(function(de){var be=le.getItemGraphicEl(de);re.type==="cartesian2d"?be&&_(de,Me,be):be&&T(de,Me,be)}).execute();var Y=this._backgroundGroup||(this._backgroundGroup=new t);Y.removeAll();for(var $=0;$<he.length;++$)Y.add(he[$]);te.add(Y),this._backgroundEls=he,this._data=q},_renderLarge:function(V,Q,G){this._clear(),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,G=this._data;V&&V.get("animation")&&G&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],G.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,S=Math.min,E={cartesian2d:function(V,Q){var G=Q.width<0?-1:1,te=Q.height<0?-1:1;G<0&&(Q.x+=Q.width,Q.width=-Q.width),te<0&&(Q.y+=Q.height,Q.height=-Q.height);var q=b(Q.x,V.x),le=S(Q.x+Q.width,V.x+V.width),re=b(Q.y,V.y),we=S(Q.y+Q.height,V.y+V.height);Q.x=q,Q.y=re,Q.width=le-q,Q.height=we-re;var Ie=Q.width<0||Q.height<0;return G<0&&(Q.x+=Q.width,Q.width=-Q.width),te<0&&(Q.y+=Q.height,Q.height=-Q.height),Ie},polar:function(V){return!1}},C={cartesian2d:function(V,Q,G,te,q){var le=new m.Rect({shape:v.extend({},Q),z2:1});if(le.name="item",te){var re=le.shape,we=G?"height":"width",Ie={};re[we]=0,Ie[we]=Q[we],m[q?"updateProps":"initProps"](le,{shape:Ie},te,V)}return le},polar:function(V,Q,G,te,q,le){var re=Q.startAngle<Q.endAngle,we=!G&&le?a:m.Sector,Ie=new we({shape:v.defaults({clockwise:re},Q),z2:1});if(Ie.name="item",te){var Me=Ie.shape,Je=G?"r":"endAngle",Ve={};Me[Je]=G?0:Q.startAngle,Ve[Je]=Q[Je],m[q?"updateProps":"initProps"](Ie,{shape:Ve},te,V)}return Ie}};function _(V,Q,G){G.style.text=null,m.updateProps(G,{shape:{width:0}},Q,V,function(){G.parent&&G.parent.remove(G)})}function T(V,Q,G){G.style.text=null,m.updateProps(G,{shape:{r:G.shape.r0}},Q,V,function(){G.parent&&G.parent.remove(G)})}var w={cartesian2d:function(V,Q,G){var te=V.getItemLayout(Q),q=G?R(G,te):0,le=te.width>0?1:-1,re=te.height>0?1:-1;return{x:te.x+le*q/2,y:te.y+re*q/2,width:te.width-le*q,height:te.height-re*q}},polar:function(V,Q,G){var te=V.getItemLayout(Q);return{cx:te.cx,cy:te.cy,r0:te.r0,r:te.r,startAngle:te.startAngle,endAngle:te.endAngle}}};function O(V){return V.startAngle!=null&&V.endAngle!=null&&V.startAngle===V.endAngle}function I(V,Q,G,te,q,le,re,we){var Ie=Q.getItemVisual(G,"color"),Me=Q.getItemVisual(G,"opacity"),Je=Q.getVisual("borderColor"),Ve=te.getModel("itemStyle"),ut=te.getModel("emphasis.itemStyle").getBarItemStyle();we||V.setShape("r",Ve.get("barBorderRadius")||0),V.useStyle(v.defaults({stroke:O(q)?"none":Je,fill:O(q)?"none":Ie,opacity:Me},Ve.getBarItemStyle()));var Fe=te.getShallow("cursor");Fe&&V.attr("cursor",Fe);var ae=re?q.height>0?"bottom":"top":q.width>0?"left":"right";we||d(V.style,ut,te,Ie,le,G,ae),O(q)&&(ut.fill=ut.stroke="none"),m.setHoverStyle(V,ut)}function R(V,Q){var G=V.get(c)||0,te=isNaN(Q.width)?Number.MAX_VALUE:Math.abs(Q.width),q=isNaN(Q.height)?Number.MAX_VALUE:Math.abs(Q.height);return Math.min(G,te,q)}var M=i.extend({type:"largeBar",shape:{points:[]},buildPath:function(V,Q){for(var G=Q.points,te=this.__startPoint,q=this.__baseDimIdx,le=0;le<G.length;le+=2)te[q]=G[le+q],V.moveTo(te[0],te[1]),V.lineTo(G[le],G[le+1])}});function B(V,Q,G){var te=V.getData(),q=[],le=te.getLayout("valueAxisHorizontal")?1:0;q[1-le]=te.getLayout("valueAxisStart");var re=te.getLayout("largeDataIndices"),we=te.getLayout("barWidth"),Ie=V.getModel("backgroundStyle"),Me=V.get("showBackground",!0);if(Me){var Je=te.getLayout("largeBackgroundPoints"),Ve=[];Ve[1-le]=te.getLayout("backgroundStart");var ut=new M({shape:{points:Je},incremental:!!G,__startPoint:Ve,__baseDimIdx:le,__largeDataIndices:re,__barWidth:we,silent:!0,z2:0});j(ut,Ie,te),Q.add(ut)}var Fe=new M({shape:{points:te.getLayout("largePoints")},incremental:!!G,__startPoint:q,__baseDimIdx:le,__largeDataIndices:re,__barWidth:we});Q.add(Fe),F(Fe,V,te),Fe.seriesIndex=V.seriesIndex,V.get("silent")||(Fe.on("mousedown",P),Fe.on("mousemove",P))}var P=e(function(V){var Q=this,G=X(Q,V.offsetX,V.offsetY);Q.dataIndex=G>=0?G:null},30,!1);function X(V,Q,G){var te=V.__baseDimIdx,q=1-te,le=V.shape.points,re=V.__largeDataIndices,we=Math.abs(V.__barWidth/2),Ie=V.__startPoint[q];h[0]=Q,h[1]=G;for(var Me=h[te],Je=h[1-te],Ve=Me-we,ut=Me+we,Fe=0,ae=le.length/2;Fe<ae;Fe++){var at=Fe*2,he=le[at+te],J=le[at+q];if(he>=Ve&&he<=ut&&(Ie<=J?Je>=Ie&&Je<=J:Je>=J&&Je<=Ie))return re[Fe]}return-1}function F(V,Q,G){var te=G.getVisual("borderColor")||G.getVisual("color"),q=Q.getModel("itemStyle").getItemStyle(["color","borderColor"]);V.useStyle(q),V.style.fill=null,V.style.stroke=te,V.style.lineWidth=G.getLayout("barWidth")}function j(V,Q,G){var te=Q.get("borderColor")||Q.get("color"),q=Q.getItemStyle(["color","borderColor"]);V.useStyle(q),V.style.fill=null,V.style.stroke=te,V.style.lineWidth=G.getLayout("barWidth")}function K(V,Q,G){var te,q=G.type==="polar";return q?te=G.getArea():te=G.grid.getRect(),q?{cx:te.cx,cy:te.cy,r0:V?te.r0:Q.r0,r:V?te.r:Q.r,startAngle:V?Q.startAngle:0,endAngle:V?Q.endAngle:Math.PI*2}:{x:V?Q.x:te.x,y:V?te.y:Q.y,width:V?Q.width:te.width,height:V?te.height:Q.height}}function z(V,Q,G){var te=V.type==="polar"?m.Sector:m.Rect;return new te({shape:K(Q,G,V),silent:!0,z2:0})}k.exports=A},ZCgT:function(k,D,n){var y=n("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}k.exports=v},ZLWo:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};D.default=y},ZMnZ:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("2oIt")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="UpOutlined";var i=v.forwardRef(o);D.default=i},ZTPi:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),v=n.n(x),m=n("q1tI"),f=n("rePB"),d=n("ODXe"),u=n("Ff2n"),o=n("VTBJ"),i=n("TSYQ"),t=n.n(i),s=n("Zm9Q"),e=n("6cGi"),l=n("KQm4"),r=n("xEkU"),a=n.n(r),c=n("1OyB"),h=n("vuIU"),g=n("Ji7U"),A=n("LK+K"),b=n("m+aA"),S=n("Kwbf"),E=n("c+Xe"),C=n("bdgK"),_="rc-observer-key",T=function(rn){Object(g.a)(Yn,rn);var Cn=Object(A.a)(Yn);function Yn(){var Gt;return Object(c.a)(this,Yn),Gt=Cn.apply(this,arguments),Gt.resizeObserver=null,Gt.childNode=null,Gt.currentElement=null,Gt.state={width:0,height:0,offsetHeight:0,offsetWidth:0},Gt.onResize=function(Ot){var Rt=Gt.props.onResize,jt=Ot[0].target,zt=jt.getBoundingClientRect(),Lt=zt.width,cr=zt.height,Ar=jt.offsetWidth,br=jt.offsetHeight,Pr=Math.floor(Lt),Xn=Math.floor(cr);if(Gt.state.width!==Pr||Gt.state.height!==Xn||Gt.state.offsetWidth!==Ar||Gt.state.offsetHeight!==br){var Pn={width:Pr,height:Xn,offsetWidth:Ar,offsetHeight:br};Gt.setState(Pn),Rt&&Promise.resolve().then(function(){Rt(Object(o.a)(Object(o.a)({},Pn),{},{offsetWidth:Ar,offsetHeight:br}))})}},Gt.setChildNode=function(Ot){Gt.childNode=Ot},Gt}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var Ot=this.props.disabled;if(Ot){this.destroyObserver();return}var Rt=Object(b.a)(this.childNode||this),jt=Rt!==this.currentElement;jt&&(this.destroyObserver(),this.currentElement=Rt),!this.resizeObserver&&Rt&&(this.resizeObserver=new C.default(this.onResize),this.resizeObserver.observe(Rt))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var Ot=this.props.children,Rt=Object(s.a)(Ot);if(Rt.length>1)Object(S.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Rt.length===0)return Object(S.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var jt=Rt[0];if(m.isValidElement(jt)&&Object(E.c)(jt)){var zt=jt.ref;Rt[0]=m.cloneElement(jt,{ref:Object(E.a)(zt,this.setChildNode)})}return Rt.length===1?Rt[0]:Rt.map(function(Lt,cr){return!m.isValidElement(Lt)||"key"in Lt&&Lt.key!==null?Lt:m.cloneElement(Lt,{key:"".concat(_,"-").concat(cr)})})}}]),Yn}(m.Component);T.displayName="ResizeObserver";var w=T;function O(rn){var Cn=Object(m.useRef)(),Yn=Object(m.useRef)(!1);function Gt(){for(var Ot=arguments.length,Rt=new Array(Ot),jt=0;jt<Ot;jt++)Rt[jt]=arguments[jt];Yn.current||(a.a.cancel(Cn.current),Cn.current=a()(function(){rn.apply(void 0,Rt)}))}return Object(m.useEffect)(function(){return function(){Yn.current=!0,a.a.cancel(Cn.current)}},[]),Gt}function I(rn){var Cn=Object(m.useRef)([]),Yn=Object(m.useState)({}),Gt=Object(d.a)(Yn,2),Ot=Gt[1],Rt=Object(m.useRef)(typeof rn=="function"?rn():rn),jt=O(function(){var Lt=Rt.current;Cn.current.forEach(function(cr){Lt=cr(Lt)}),Cn.current=[],Rt.current=Lt,Ot({})});function zt(Lt){Cn.current.push(Lt),jt()}return[Rt.current,zt]}var R=n("4IlW");function M(rn,Cn){var Yn,Gt=rn.prefixCls,Ot=rn.id,Rt=rn.active,jt=rn.rtl,zt=rn.tab,Lt=zt.key,cr=zt.tab,Ar=zt.disabled,br=zt.closeIcon,Pr=rn.tabBarGutter,Xn=rn.tabPosition,Pn=rn.closable,di=rn.renderWrapper,An=rn.removeAriaLabel,Ur=rn.editable,In=rn.onClick,Qn=rn.onRemove,$n=rn.onFocus,oi="".concat(Gt,"-tab");m.useEffect(function(){return Qn},[]);var Ti={};Xn==="top"||Xn==="bottom"?Ti[jt?"marginLeft":"marginRight"]=Pr:Ti.marginBottom=Pr;var ki=Ur&&Pn!==!1&&!Ar;function Ri(aa){if(Ar)return;In(aa)}function oa(aa){aa.preventDefault(),aa.stopPropagation(),Ur.onEdit("remove",{key:Lt,event:aa})}var ma=m.createElement("div",{key:Lt,ref:Cn,className:t()(oi,(Yn={},Object(f.a)(Yn,"".concat(oi,"-with-remove"),ki),Object(f.a)(Yn,"".concat(oi,"-active"),Rt),Object(f.a)(Yn,"".concat(oi,"-disabled"),Ar),Yn)),style:Ti,onClick:Ri},m.createElement("div",{role:"tab","aria-selected":Rt,id:Ot&&"".concat(Ot,"-tab-").concat(Lt),className:"".concat(oi,"-btn"),"aria-controls":Ot&&"".concat(Ot,"-panel-").concat(Lt),"aria-disabled":Ar,tabIndex:Ar?null:0,onClick:function(ba){ba.stopPropagation(),Ri(ba)},onKeyDown:function(ba){[R.a.SPACE,R.a.ENTER].includes(ba.which)&&(ba.preventDefault(),Ri(ba))},onFocus:$n},cr),ki&&m.createElement("button",{type:"button","aria-label":An||"remove",tabIndex:0,className:"".concat(oi,"-remove"),onClick:function(ba){ba.stopPropagation(),oa(ba)}},br||Ur.removeIcon||"\xD7"));return di&&(ma=di(ma)),ma}var B=m.forwardRef(M),P={width:0,height:0,left:0,top:0};function X(rn,Cn,Yn){return Object(m.useMemo)(function(){for(var Gt,Ot=new Map,Rt=Cn.get((Gt=rn[0])===null||Gt===void 0?void 0:Gt.key)||P,jt=Rt.left+Rt.width,zt=0;zt<rn.length;zt+=1){var Lt=rn[zt].key,cr=Cn.get(Lt);if(!cr){var Ar;cr=Cn.get((Ar=rn[zt-1])===null||Ar===void 0?void 0:Ar.key)||P}var br=Ot.get(Lt)||Object(o.a)({},cr);br.right=jt-br.left-br.width,Ot.set(Lt,br)}return Ot},[rn.map(function(Gt){return Gt.key}).join("_"),Cn,Yn])}var F={width:0,height:0,left:0,top:0,right:0};function j(rn,Cn,Yn,Gt,Ot){var Rt=Ot.tabs,jt=Ot.tabPosition,zt=Ot.rtl,Lt,cr,Ar;["top","bottom"].includes(jt)?(Lt="width",cr=zt?"right":"left",Ar=Math.abs(Cn.left)):(Lt="height",cr="top",Ar=-Cn.top);var br=Cn[Lt],Pr=Yn[Lt],Xn=Gt[Lt],Pn=br;return Pr+Xn>br&&(Pn=br-Xn),Object(m.useMemo)(function(){if(!Rt.length)return[0,0];for(var di=Rt.length,An=di,Ur=0;Ur<di;Ur+=1){var In=rn.get(Rt[Ur].key)||F;if(In[cr]+In[Lt]>Ar+Pn){An=Ur-1;break}}for(var Qn=0,$n=di-1;$n>=0;$n-=1){var oi=rn.get(Rt[$n].key)||F;if(oi[cr]<Ar){Qn=$n+1;break}}return[Qn,An]},[rn,Ar,Pn,jt,Rt.map(function(di){return di.key}).join("_"),zt])}var K=n("wx14"),z=n("JX7q"),V=n("I8Z2"),Q=n("bT9E"),G=n("2GS6"),te=n("Gytx"),q=n.n(te),le=n("U8pU"),re=/iPhone/i,we=/iPod/i,Ie=/iPad/i,Me=/\bAndroid(?:.+)Mobile\b/i,Je=/Android/i,Ve=/\bAndroid(?:.+)SD4930UR\b/i,ut=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Fe=/Windows Phone/i,ae=/\bWindows(?:.+)ARM\b/i,at=/BlackBerry/i,he=/BB10/i,J=/Opera Mini/i,Y=/\b(CriOS|Chrome)(?:.+)Mobile/i,$=/Mobile(?:.+)Firefox\b/i;function de(rn,Cn){return rn.test(Cn)}function be(rn){var Cn=rn||(typeof navigator!="undefined"?navigator.userAgent:""),Yn=(Cn||"").split("[FBAN");if(typeof Yn[1]!="undefined"){var Gt=Yn,Ot=Object(d.a)(Gt,1);Cn=Ot[0]}if(Yn=Cn.split("Twitter"),typeof Yn[1]!="undefined"){var Rt=Yn,jt=Object(d.a)(Rt,1);Cn=jt[0]}var zt={apple:{phone:de(re,Cn)&&!de(Fe,Cn),ipod:de(we,Cn),tablet:!de(re,Cn)&&de(Ie,Cn)&&!de(Fe,Cn),device:(de(re,Cn)||de(we,Cn)||de(Ie,Cn))&&!de(Fe,Cn)},amazon:{phone:de(Ve,Cn),tablet:!de(Ve,Cn)&&de(ut,Cn),device:de(Ve,Cn)||de(ut,Cn)},android:{phone:!de(Fe,Cn)&&de(Ve,Cn)||!de(Fe,Cn)&&de(Me,Cn),tablet:!de(Fe,Cn)&&!de(Ve,Cn)&&!de(Me,Cn)&&(de(ut,Cn)||de(Je,Cn)),device:!de(Fe,Cn)&&(de(Ve,Cn)||de(ut,Cn)||de(Me,Cn)||de(Je,Cn))||de(/\bokhttp\b/i,Cn)},windows:{phone:de(Fe,Cn),tablet:de(ae,Cn),device:de(Fe,Cn)||de(ae,Cn)},other:{blackberry:de(at,Cn),blackberry10:de(he,Cn),opera:de(J,Cn),firefox:de($,Cn),chrome:de(Y,Cn),device:de(at,Cn)||de(he,Cn)||de(J,Cn)||de($,Cn)||de(Y,Cn)},any:null,phone:null,tablet:null};return zt.any=zt.apple.device||zt.android.device||zt.windows.device||zt.other.device,zt.phone=zt.apple.phone||zt.android.phone||zt.windows.phone,zt.tablet=zt.apple.tablet||zt.android.tablet||zt.windows.tablet,zt}var Ce=Object(o.a)(Object(o.a)({},be()),{},{isMobile:be}),Be=Ce;function fe(){}function Se(rn,Cn,Yn){var Gt=Cn||"";return rn.key||"".concat(Gt,"item_").concat(Yn)}function ke(rn){return"".concat(rn,"-menu-")}function rt(rn,Cn){var Yn=-1;m.Children.forEach(rn,function(Gt){Yn+=1,Gt&&Gt.type&&Gt.type.isMenuItemGroup?m.Children.forEach(Gt.props.children,function(Ot){Yn+=1,Cn(Ot,Yn)}):Cn(Gt,Yn)})}function xt(rn,Cn,Yn){if(!rn||Yn.find)return;m.Children.forEach(rn,function(Gt){if(Gt){var Ot=Gt.type;if(!Ot||!(Ot.isSubMenu||Ot.isMenuItem||Ot.isMenuItemGroup))return;Cn.indexOf(Gt.key)!==-1?Yn.find=!0:Gt.props.children&&xt(Gt.props.children,Cn,Yn)}})}var ht=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],He=function(Cn){var Yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Gt=Cn&&typeof Cn.getBoundingClientRect=="function"&&Cn.getBoundingClientRect().width;if(Gt){if(Yn){var Ot=getComputedStyle(Cn),Rt=Ot.marginLeft,jt=Ot.marginRight;Gt+=+Rt.replace("px","")+ +jt.replace("px","")}Gt=+Gt.toFixed(6)}return Gt||0},ir=function(Cn,Yn,Gt){Cn&&Object(le.a)(Cn.style)==="object"&&(Cn.style[Yn]=Gt)},ct=function(){return Be.any},Xt=n("i8i4"),hr=n("uciX"),Jt=n("wgJM"),Pt=n("8XRh"),Wt={adjustX:1,adjustY:1},Ge={topLeft:{points:["bl","tl"],overflow:Wt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Wt,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Wt,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Wt,offset:[4,0]}},pe={topLeft:{points:["bl","tl"],overflow:Wt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Wt,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Wt,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Wt,offset:[4,0]}},se=Ge,lt=0,qe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},me=function(Cn,Yn,Gt){var Ot=ke(Yn),Rt=Cn.getState();Cn.setState({defaultActiveFirst:Object(o.a)(Object(o.a)({},Rt.defaultActiveFirst),{},Object(f.a)({},Ot,Gt))})},Ht=function(rn){Object(g.a)(Yn,rn);var Cn=Object(A.a)(Yn);function Yn(Gt){var Ot;Object(c.a)(this,Yn),Ot=Cn.call(this,Gt),Ot.onDestroy=function(Ar){Ot.props.onDestroy(Ar)},Ot.onKeyDown=function(Ar){var br=Ar.keyCode,Pr=Ot.menuInstance,Xn=Ot.props.store,Pn=Ot.getVisible();if(br===R.a.ENTER)return Ot.onTitleClick(Ar),me(Xn,Ot.props.eventKey,!0),!0;if(br===R.a.RIGHT)return Pn?Pr.onKeyDown(Ar):(Ot.triggerOpenChange(!0),me(Xn,Ot.props.eventKey,!0)),!0;if(br===R.a.LEFT){var di;if(Pn)di=Pr.onKeyDown(Ar);else return;return di||(Ot.triggerOpenChange(!1),di=!0),di}return Pn&&(br===R.a.UP||br===R.a.DOWN)?Pr.onKeyDown(Ar):void 0},Ot.onOpenChange=function(Ar){Ot.props.onOpenChange(Ar)},Ot.onPopupVisibleChange=function(Ar){Ot.triggerOpenChange(Ar,Ar?"mouseenter":"mouseleave")},Ot.onMouseEnter=function(Ar){var br=Ot.props,Pr=br.eventKey,Xn=br.onMouseEnter,Pn=br.store;me(Pn,Ot.props.eventKey,!1),Xn({key:Pr,domEvent:Ar})},Ot.onMouseLeave=function(Ar){var br=Ot.props,Pr=br.parentMenu,Xn=br.eventKey,Pn=br.onMouseLeave;Pr.subMenuInstance=Object(z.a)(Ot),Pn({key:Xn,domEvent:Ar})},Ot.onTitleMouseEnter=function(Ar){var br=Ot.props,Pr=br.eventKey,Xn=br.onItemHover,Pn=br.onTitleMouseEnter;Xn({key:Pr,hover:!0}),Pn({key:Pr,domEvent:Ar})},Ot.onTitleMouseLeave=function(Ar){var br=Ot.props,Pr=br.parentMenu,Xn=br.eventKey,Pn=br.onItemHover,di=br.onTitleMouseLeave;Pr.subMenuInstance=Object(z.a)(Ot),Pn({key:Xn,hover:!1}),di({key:Xn,domEvent:Ar})},Ot.onTitleClick=function(Ar){var br=Object(z.a)(Ot),Pr=br.props;if(Pr.onTitleClick({key:Pr.eventKey,domEvent:Ar}),Pr.triggerSubMenuAction==="hover")return;Ot.triggerOpenChange(!Ot.getVisible(),"click"),me(Pr.store,Ot.props.eventKey,!1)},Ot.onSubMenuClick=function(Ar){typeof Ot.props.onClick=="function"&&Ot.props.onClick(Ot.addKeyPath(Ar))},Ot.onSelect=function(Ar){Ot.props.onSelect(Ar)},Ot.onDeselect=function(Ar){Ot.props.onDeselect(Ar)},Ot.getPrefixCls=function(){return"".concat(Ot.props.rootPrefixCls,"-submenu")},Ot.getActiveClassName=function(){return"".concat(Ot.getPrefixCls(),"-active")},Ot.getDisabledClassName=function(){return"".concat(Ot.getPrefixCls(),"-disabled")},Ot.getSelectedClassName=function(){return"".concat(Ot.getPrefixCls(),"-selected")},Ot.getOpenClassName=function(){return"".concat(Ot.props.rootPrefixCls,"-submenu-open")},Ot.getVisible=function(){return Ot.state.isOpen},Ot.getMode=function(){return Ot.state.mode},Ot.saveMenuInstance=function(Ar){Ot.menuInstance=Ar},Ot.addKeyPath=function(Ar){return Object(o.a)(Object(o.a)({},Ar),{},{keyPath:(Ar.keyPath||[]).concat(Ot.props.eventKey)})},Ot.triggerOpenChange=function(Ar,br){var Pr=Ot.props.eventKey,Xn=function(){Ot.onOpenChange({key:Pr,item:Object(z.a)(Ot),trigger:br,open:Ar})};br==="mouseenter"?Ot.mouseenterTimeout=setTimeout(function(){Xn()},0):Xn()},Ot.isChildrenSelected=function(){var Ar={find:!1};return xt(Ot.props.children,Ot.props.selectedKeys,Ar),Ar.find},Ot.isInlineMode=function(){return Ot.getMode()==="inline"},Ot.adjustWidth=function(){if(!Ot.subMenuTitle||!Ot.menuInstance)return;var Ar=Xt.findDOMNode(Ot.menuInstance);if(Ar.offsetWidth>=Ot.subMenuTitle.offsetWidth)return;Ar.style.minWidth="".concat(Ot.subMenuTitle.offsetWidth,"px")},Ot.saveSubMenuTitle=function(Ar){Ot.subMenuTitle=Ar},Ot.getBaseProps=function(){var Ar=Object(z.a)(Ot),br=Ar.props,Pr=Ot.getMode();return{mode:Pr==="horizontal"?"vertical":Pr,visible:Ot.getVisible(),level:br.level+1,inlineIndent:br.inlineIndent,focusable:!1,onClick:Ot.onSubMenuClick,onSelect:Ot.onSelect,onDeselect:Ot.onDeselect,onDestroy:Ot.onDestroy,selectedKeys:br.selectedKeys,eventKey:"".concat(br.eventKey,"-menu-"),openKeys:br.openKeys,motion:br.motion,onOpenChange:Ot.onOpenChange,subMenuOpenDelay:br.subMenuOpenDelay,parentMenu:Object(z.a)(Ot),subMenuCloseDelay:br.subMenuCloseDelay,forceSubMenuRender:br.forceSubMenuRender,triggerSubMenuAction:br.triggerSubMenuAction,builtinPlacements:br.builtinPlacements,defaultActiveFirst:br.store.getState().defaultActiveFirst[ke(br.eventKey)],multiple:br.multiple,prefixCls:br.rootPrefixCls,id:Ot.internalMenuId,manualRef:Ot.saveMenuInstance,itemIcon:br.itemIcon,expandIcon:br.expandIcon,direction:br.direction}},Ot.getMotion=function(Ar,br){var Pr=Object(z.a)(Ot),Xn=Pr.haveRendered,Pn=Ot.props,di=Pn.motion,An=Pn.rootPrefixCls,Ur=Object(o.a)(Object(o.a)({},di),{},{leavedClassName:"".concat(An,"-hidden"),removeOnLeave:!1,motionAppear:Xn||!br||Ar!=="inline"});return Ur};var Rt=Gt.store,jt=Gt.eventKey,zt=Rt.getState(),Lt=zt.defaultActiveFirst;Ot.isRootMenu=!1;var cr=!1;return Lt&&(cr=Lt[jt]),me(Rt,jt,cr),Ot.state={mode:Gt.mode,isOpen:Gt.isOpen},Ot}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ot=this,Rt=this.props,jt=Rt.mode,zt=Rt.parentMenu,Lt=Rt.manualRef,cr=Rt.isOpen,Ar=function(){Ot.setState({mode:jt,isOpen:cr})},br=cr!==this.state.isOpen,Pr=jt!==this.state.mode;if((Pr||br)&&(Jt.a.cancel(this.updateStateRaf),Pr?this.updateStateRaf=Object(Jt.a)(Ar):Ar()),Lt&&Lt(this),jt!=="horizontal"||!(zt==null?void 0:zt.isRootMenu)||!cr)return;this.minWidthTimeout=setTimeout(function(){return Ot.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Ot=this.props,Rt=Ot.onDestroy,jt=Ot.eventKey;Rt&&Rt(jt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Jt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Ot,Rt){var jt=this.getBaseProps();return m.createElement(Kn,Object(K.a)({},jt,{id:this.internalMenuId,className:Ot,style:Rt}),this.props.children)}},{key:"renderChildren",value:function(){var Ot=this,Rt=this.getBaseProps(),jt=Rt.mode,zt=Rt.visible,Lt=Rt.forceSubMenuRender,cr=Rt.direction,Ar=this.getMotion(jt,zt);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||zt||Lt,!this.haveOpened)return m.createElement("div",null);var br=t()("".concat(Rt.prefixCls,"-sub"),Object(f.a)({},"".concat(Rt.prefixCls,"-rtl"),cr==="rtl"));return this.isInlineMode()?m.createElement(Pt.b,Object(K.a)({visible:Rt.visible,forceRender:Lt},Ar),function(Pr){var Xn=Pr.className,Pn=Pr.style,di=t()(br,Xn);return Ot.renderPopupMenu(di,Pn)}):this.renderPopupMenu(br)}},{key:"render",value:function(){var Ot,Rt,jt,zt=Object(o.a)({},this.props),Lt=this.getVisible(),cr=this.getPrefixCls(),Ar=this.isInlineMode(),br=this.getMode(),Pr=t()(cr,"".concat(cr,"-").concat(br),(Ot={},Object(f.a)(Ot,zt.className,!!zt.className),Object(f.a)(Ot,this.getOpenClassName(),Lt),Object(f.a)(Ot,this.getActiveClassName(),zt.active||Lt&&!Ar),Object(f.a)(Ot,this.getDisabledClassName(),zt.disabled),Object(f.a)(Ot,this.getSelectedClassName(),this.isChildrenSelected()),Ot));this.internalMenuId||(zt.eventKey?this.internalMenuId="".concat(zt.eventKey,"$Menu"):(lt+=1,this.internalMenuId="$__$".concat(lt,"$Menu")));var Xn={},Pn={},di={};zt.disabled||(Xn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Pn={onClick:this.onTitleClick},di={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var An={},Ur=zt.direction,In=Ur==="rtl";Ar&&(In?An.paddingRight=zt.inlineIndent*zt.level:An.paddingLeft=zt.inlineIndent*zt.level);var Qn={};this.getVisible()&&(Qn={"aria-owns":this.internalMenuId});var $n=null;br!=="horizontal"&&($n=this.props.expandIcon,typeof this.props.expandIcon=="function"&&($n=m.createElement(this.props.expandIcon,Object(o.a)({},this.props))));var oi=m.createElement("div",Object(K.a)({ref:this.saveSubMenuTitle,style:An,className:"".concat(cr,"-title"),role:"button"},di,Pn,{"aria-expanded":Lt},Qn,{"aria-haspopup":"true",title:typeof zt.title=="string"?zt.title:void 0}),zt.title,$n||m.createElement("i",{className:"".concat(cr,"-arrow")})),Ti=this.renderChildren(),ki=((Rt=zt.parentMenu)===null||Rt===void 0?void 0:Rt.isRootMenu)?zt.parentMenu.props.getPopupContainer:function(xr){return xr.parentNode},Ri=qe[br],oa=zt.popupOffset?{offset:zt.popupOffset}:{},ma=t()((jt={},Object(f.a)(jt,zt.popupClassName,zt.popupClassName&&!Ar),Object(f.a)(jt,"".concat(cr,"-rtl"),In),jt)),aa=zt.disabled,ba=zt.triggerSubMenuAction,yi=zt.subMenuOpenDelay,kn=zt.forceSubMenuRender,Ui=zt.subMenuCloseDelay,ha=zt.builtinPlacements;ht.forEach(function(xr){return delete zt[xr]}),delete zt.onClick;var ta=In?Object(o.a)(Object(o.a)({},pe),ha):Object(o.a)(Object(o.a)({},Ge),ha);delete zt.direction;var ra=this.getBaseProps(),Lr=Ar?null:this.getMotion(ra.mode,ra.visible);return m.createElement("li",Object(K.a)({},zt,Xn,{className:Pr,role:"menuitem"}),m.createElement(hr.a,{prefixCls:cr,popupClassName:t()("".concat(cr,"-popup"),ma),getPopupContainer:ki,builtinPlacements:ta,popupPlacement:Ri,popupVisible:Ar?!1:Lt,popupAlign:oa,popup:Ar?null:Ti,action:aa||Ar?[]:[ba],mouseEnterDelay:yi,mouseLeaveDelay:Ui,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:kn,popupMotion:Lr},oi),Ar?Ti:null)}}]),Yn}(m.Component);Ht.defaultProps={onMouseEnter:fe,onMouseLeave:fe,onTitleMouseEnter:fe,onTitleMouseLeave:fe,onTitleClick:fe,manualRef:fe,mode:"vertical",title:""};var yr=Object(V.b)(function(rn,Cn){var Yn=rn.openKeys,Gt=rn.activeKey,Ot=rn.selectedKeys,Rt=Cn.eventKey,jt=Cn.subMenuKey;return{isOpen:Yn.indexOf(Rt)>-1,active:Gt[jt]===Rt,selectedKeys:Ot}})(Ht);yr.isSubMenu=!0;var At=yr,rr="menuitem-overflowed",ur=.5,vn=function(rn){Object(g.a)(Yn,rn);var Cn=Object(A.a)(Yn);function Yn(){var Gt;return Object(c.a)(this,Yn),Gt=Cn.apply(this,arguments),Gt.resizeObserver=null,Gt.mutationObserver=null,Gt.originalTotalWidth=0,Gt.overflowedItems=[],Gt.menuItemSizes=[],Gt.cancelFrameId=null,Gt.state={lastVisibleIndex:void 0},Gt.childRef=m.createRef(),Gt.getMenuItemNodes=function(){var Ot=Gt.props.prefixCls,Rt=Gt.childRef.current;return Rt?[].slice.call(Rt.children).filter(function(jt){return jt.className.split(" ").indexOf("".concat(Ot,"-overflowed-submenu"))<0}):[]},Gt.getOverflowedSubMenuItem=function(Ot,Rt,jt){var zt=Gt.props,Lt=zt.overflowedIndicator,cr=zt.level,Ar=zt.mode,br=zt.prefixCls,Pr=zt.theme;if(cr!==1||Ar!=="horizontal")return null;var Xn=Gt.props.children[0],Pn=Xn.props,di=Pn.children,An=Pn.title,Ur=Pn.style,In=Object(u.a)(Pn,["children","title","style"]),Qn=Object(o.a)({},Ur),$n="".concat(Ot,"-overflowed-indicator"),oi="".concat(Ot,"-overflowed-indicator");Rt.length===0&&jt!==!0?Qn=Object(o.a)(Object(o.a)({},Qn),{},{display:"none"}):jt&&(Qn=Object(o.a)(Object(o.a)({},Qn),{},{visibility:"hidden",position:"absolute"}),$n="".concat($n,"-placeholder"),oi="".concat(oi,"-placeholder"));var Ti=Pr?"".concat(br,"-").concat(Pr):"",ki={};return ht.forEach(function(Ri){In[Ri]!==void 0&&(ki[Ri]=In[Ri])}),m.createElement(At,Object(K.a)({title:Lt,className:"".concat(br,"-overflowed-submenu"),popupClassName:Ti},ki,{key:$n,eventKey:oi,disabled:!1,style:Qn}),Rt)},Gt.setChildrenWidthAndResize=function(){if(Gt.props.mode!=="horizontal")return;var Ot=Gt.childRef.current;if(!Ot)return;var Rt=Ot.children;if(!Rt||Rt.length===0)return;var jt=Ot.children[Rt.length-1];ir(jt,"display","inline-block");var zt=Gt.getMenuItemNodes(),Lt=zt.filter(function(cr){return cr.className.split(" ").indexOf(rr)>=0});Lt.forEach(function(cr){ir(cr,"display","inline-block")}),Gt.menuItemSizes=zt.map(function(cr){return He(cr,!0)}),Lt.forEach(function(cr){ir(cr,"display","none")}),Gt.overflowedIndicatorWidth=He(Ot.children[Ot.children.length-1],!0),Gt.originalTotalWidth=Gt.menuItemSizes.reduce(function(cr,Ar){return cr+Ar},0),Gt.handleResize(),ir(jt,"display","none")},Gt.handleResize=function(){if(Gt.props.mode!=="horizontal")return;var Ot=Gt.childRef.current;if(!Ot)return;var Rt=He(Ot);Gt.overflowedItems=[];var jt=0,zt;Gt.originalTotalWidth>Rt+ur&&(zt=-1,Gt.menuItemSizes.forEach(function(Lt){jt+=Lt,jt+Gt.overflowedIndicatorWidth<=Rt&&(zt+=1)})),Gt.setState({lastVisibleIndex:zt})},Gt}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){var Ot=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Rt=this.childRef.current;if(!Rt)return;this.resizeObserver=new C.default(function(jt){jt.forEach(function(){var zt=Ot.cancelFrameId;cancelAnimationFrame(zt),Ot.cancelFrameId=requestAnimationFrame(Ot.setChildrenWidthAndResize)})}),[].slice.call(Rt.children).concat(Rt).forEach(function(jt){Ot.resizeObserver.observe(jt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Ot.resizeObserver.disconnect(),[].slice.call(Rt.children).concat(Rt).forEach(function(jt){Ot.resizeObserver.observe(jt)}),Ot.setChildrenWidthAndResize()}),this.mutationObserver.observe(Rt,{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(Ot){var Rt=this,jt=this.state.lastVisibleIndex;return(Ot||[]).reduce(function(zt,Lt,cr){var Ar=Lt;if(Rt.props.mode==="horizontal"){var br=Rt.getOverflowedSubMenuItem(Lt.props.eventKey,[]);jt!==void 0&&Rt.props.className.indexOf("".concat(Rt.props.prefixCls,"-root"))!==-1&&(cr>jt&&(Ar=m.cloneElement(Lt,{style:{display:"none"},eventKey:"".concat(Lt.props.eventKey,"-hidden"),className:"".concat(rr)})),cr===jt+1&&(Rt.overflowedItems=Ot.slice(jt+1).map(function(Xn){return m.cloneElement(Xn,{key:Xn.props.eventKey,mode:"vertical-left"})}),br=Rt.getOverflowedSubMenuItem(Lt.props.eventKey,Rt.overflowedItems)));var Pr=[].concat(Object(l.a)(zt),[br,Ar]);return cr===Ot.length-1&&Pr.push(Rt.getOverflowedSubMenuItem(Lt.props.eventKey,[],!0)),Pr}return[].concat(Object(l.a)(zt),[Ar])},[])}},{key:"render",value:function(){var Ot=this.props,Rt=Ot.visible,jt=Ot.prefixCls,zt=Ot.overflowedIndicator,Lt=Ot.mode,cr=Ot.level,Ar=Ot.tag,br=Ot.children,Pr=Ot.theme,Xn=Object(u.a)(Ot,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Pn=Ar;return m.createElement(Pn,Object(K.a)({ref:this.childRef},Xn),this.renderChildren(br))}}]),Yn}(m.Component);vn.defaultProps={tag:"div",className:""};var Bt=vn;function sr(rn){return rn.length?rn.every(function(Cn){return!!Cn.props.disabled}):!0}function Yt(rn,Cn,Yn){var Gt=rn.getState();rn.setState({activeKey:Object(o.a)(Object(o.a)({},Gt.activeKey),{},Object(f.a)({},Cn,Yn))})}function pt(rn){return rn.eventKey||"0-menu-"}function it(rn,Cn){var Yn=Cn,Gt=rn.children,Ot=rn.eventKey;if(Yn){var Rt;if(rt(Gt,function(jt,zt){jt&&jt.props&&!jt.props.disabled&&Yn===Se(jt,Ot,zt)&&(Rt=!0)}),Rt)return Yn}return Yn=null,rn.defaultActiveFirst&&rt(Gt,function(jt,zt){!Yn&&jt&&!jt.props.disabled&&(Yn=Se(jt,Ot,zt))}),Yn}function Fr(rn){if(!rn)return;var Cn=this.instanceArray.indexOf(rn);Cn!==-1?this.instanceArray[Cn]=rn:this.instanceArray.push(rn)}var cn=function(rn){Object(g.a)(Yn,rn);var Cn=Object(A.a)(Yn);function Yn(Gt){var Ot;return Object(c.a)(this,Yn),Ot=Cn.call(this,Gt),Ot.onKeyDown=function(Rt,jt){var zt=Rt.keyCode,Lt;if(Ot.getFlatInstanceArray().forEach(function(Ar){Ar&&Ar.props.active&&Ar.onKeyDown&&(Lt=Ar.onKeyDown(Rt))}),Lt)return 1;var cr=null;return(zt===R.a.UP||zt===R.a.DOWN)&&(cr=Ot.step(zt===R.a.UP?-1:1)),cr?(Rt.preventDefault(),Yt(Ot.props.store,pt(Ot.props),cr.props.eventKey),typeof jt=="function"&&jt(cr),1):void 0},Ot.onItemHover=function(Rt){var jt=Rt.key,zt=Rt.hover;Yt(Ot.props.store,pt(Ot.props),zt?jt:null)},Ot.onDeselect=function(Rt){Ot.props.onDeselect(Rt)},Ot.onSelect=function(Rt){Ot.props.onSelect(Rt)},Ot.onClick=function(Rt){Ot.props.onClick(Rt)},Ot.onOpenChange=function(Rt){Ot.props.onOpenChange(Rt)},Ot.onDestroy=function(Rt){Ot.props.onDestroy(Rt)},Ot.getFlatInstanceArray=function(){return Ot.instanceArray},Ot.step=function(Rt){var jt=Ot.getFlatInstanceArray(),zt=Ot.props.store.getState().activeKey[pt(Ot.props)],Lt=jt.length;if(!Lt)return null;Rt<0&&(jt=jt.concat().reverse());var cr=-1;if(jt.every(function(Xn,Pn){return Xn&&Xn.props.eventKey===zt?(cr=Pn,!1):!0}),!Ot.props.defaultActiveFirst&&cr!==-1&&sr(jt.slice(cr,Lt-1)))return;var Ar=(cr+1)%Lt,br=Ar;do{var Pr=jt[br];if(!Pr||Pr.props.disabled)br=(br+1)%Lt;else return Pr}while(br!==Ar);return null},Ot.renderCommonMenuItem=function(Rt,jt,zt){var Lt=Ot.props.store.getState(),cr=Object(z.a)(Ot),Ar=cr.props,br=Se(Rt,Ar.eventKey,jt),Pr=Rt.props;if(!Pr||typeof Rt.type=="string")return Rt;var Xn=br===Lt.activeKey,Pn=Object(o.a)(Object(o.a)({mode:Pr.mode||Ar.mode,level:Ar.level,inlineIndent:Ar.inlineIndent,renderMenuItem:Ot.renderMenuItem,rootPrefixCls:Ar.prefixCls,index:jt,parentMenu:Ar.parentMenu,manualRef:Pr.disabled?void 0:Object(G.a)(Rt.ref,Fr.bind(Object(z.a)(Ot))),eventKey:br,active:!Pr.disabled&&Xn,multiple:Ar.multiple,onClick:function(An){(Pr.onClick||fe)(An),Ot.onClick(An)},onItemHover:Ot.onItemHover,motion:Ar.motion,subMenuOpenDelay:Ar.subMenuOpenDelay,subMenuCloseDelay:Ar.subMenuCloseDelay,forceSubMenuRender:Ar.forceSubMenuRender,onOpenChange:Ot.onOpenChange,onDeselect:Ot.onDeselect,onSelect:Ot.onSelect,builtinPlacements:Ar.builtinPlacements,itemIcon:Pr.itemIcon||Ot.props.itemIcon,expandIcon:Pr.expandIcon||Ot.props.expandIcon},zt),{},{direction:Ar.direction});return(Ar.mode==="inline"||ct())&&(Pn.triggerSubMenuAction="click"),m.cloneElement(Rt,Object(o.a)(Object(o.a)({},Pn),{},{key:br||jt}))},Ot.renderMenuItem=function(Rt,jt,zt){if(!Rt)return null;var Lt=Ot.props.store.getState(),cr={openKeys:Lt.openKeys,selectedKeys:Lt.selectedKeys,triggerSubMenuAction:Ot.props.triggerSubMenuAction,subMenuKey:zt};return Ot.renderCommonMenuItem(Rt,jt,cr)},Gt.store.setState({activeKey:Object(o.a)(Object(o.a)({},Gt.store.getState().activeKey),{},Object(f.a)({},Gt.eventKey,it(Gt,Gt.activeKey)))}),Ot.instanceArray=[],Ot}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Ot){return this.props.visible||Ot.visible||this.props.className!==Ot.className||!q()(this.props.style,Ot.style)}},{key:"componentDidUpdate",value:function(Ot){var Rt=this.props,jt="activeKey"in Rt?Rt.activeKey:Rt.store.getState().activeKey[pt(Rt)],zt=it(Rt,jt);if(zt!==jt)Yt(Rt.store,pt(Rt),zt);else if("activeKey"in Ot){var Lt=it(Ot,Ot.activeKey);zt!==Lt&&Yt(Rt.store,pt(Rt),zt)}}},{key:"render",value:function(){var Ot=this,Rt=Object(K.a)({},this.props);this.instanceArray=[];var jt=t()(Rt.prefixCls,Rt.className,"".concat(Rt.prefixCls,"-").concat(Rt.mode)),zt={className:jt,role:Rt.role||"menu"};Rt.id&&(zt.id=Rt.id),Rt.focusable&&(zt.tabIndex=0,zt.onKeyDown=this.onKeyDown);var Lt=Rt.prefixCls,cr=Rt.eventKey,Ar=Rt.visible,br=Rt.level,Pr=Rt.mode,Xn=Rt.overflowedIndicator,Pn=Rt.theme;return ht.forEach(function(di){return delete Rt[di]}),delete Rt.onClick,m.createElement(Bt,Object(K.a)({},Rt,{prefixCls:Lt,mode:Pr,tag:"ul",level:br,theme:Pn,visible:Ar,overflowedIndicator:Xn},zt),Object(s.a)(Rt.children).map(function(di,An){return Ot.renderMenuItem(di,An,cr||"0-menu-")}))}}]),Yn}(m.Component);cn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:fe};var _n=Object(V.b)()(cn),Kn=_n;function gi(rn,Cn,Yn){var Gt=rn.prefixCls,Ot=rn.motion,Rt=rn.defaultMotions,jt=Rt===void 0?{}:Rt,zt=rn.openAnimation,Lt=rn.openTransitionName,cr=Cn.switchingModeFromInline;if(Ot)return Ot;if(Object(le.a)(zt)==="object"&&zt)Object(S.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof zt=="string")return{motionName:"".concat(Gt,"-open-").concat(zt)};if(Lt)return{motionName:Lt};var Ar=jt[Yn];return Ar||(cr?null:jt.other)}var Mn=function(rn){Object(g.a)(Yn,rn);var Cn=Object(A.a)(Yn);function Yn(Gt){var Ot;Object(c.a)(this,Yn),Ot=Cn.call(this,Gt),Ot.onSelect=function(zt){var Lt=Object(z.a)(Ot),cr=Lt.props;if(cr.selectable){var Ar=Ot.store.getState(),br=Ar.selectedKeys,Pr=zt.key;cr.multiple?br=br.concat([Pr]):br=[Pr],"selectedKeys"in cr||Ot.store.setState({selectedKeys:br}),cr.onSelect(Object(o.a)(Object(o.a)({},zt),{},{selectedKeys:br}))}},Ot.onClick=function(zt){var Lt=Ot.getRealMenuMode(),cr=Object(z.a)(Ot),Ar=cr.store,br=cr.props.onOpenChange;Lt!=="inline"&&!("openKeys"in Ot.props)&&(Ar.setState({openKeys:[]}),br([])),Ot.props.onClick(zt)},Ot.onKeyDown=function(zt,Lt){Ot.innerMenu.getWrappedInstance().onKeyDown(zt,Lt)},Ot.onOpenChange=function(zt){var Lt=Object(z.a)(Ot),cr=Lt.props,Ar=Ot.store.getState().openKeys.concat(),br=!1,Pr=function(Pn){var di=!1;if(Pn.open)di=Ar.indexOf(Pn.key)===-1,di&&Ar.push(Pn.key);else{var An=Ar.indexOf(Pn.key);di=An!==-1,di&&Ar.splice(An,1)}br=br||di};Array.isArray(zt)?zt.forEach(Pr):Pr(zt),br&&("openKeys"in Ot.props||Ot.store.setState({openKeys:Ar}),cr.onOpenChange(Ar))},Ot.onDeselect=function(zt){var Lt=Object(z.a)(Ot),cr=Lt.props;if(cr.selectable){var Ar=Ot.store.getState().selectedKeys.concat(),br=zt.key,Pr=Ar.indexOf(br);Pr!==-1&&Ar.splice(Pr,1),"selectedKeys"in cr||Ot.store.setState({selectedKeys:Ar}),cr.onDeselect(Object(o.a)(Object(o.a)({},zt),{},{selectedKeys:Ar}))}},Ot.onMouseEnter=function(zt){Ot.restoreModeVerticalFromInline();var Lt=Ot.props.onMouseEnter;Lt&&Lt(zt)},Ot.onTransitionEnd=function(zt){var Lt=zt.propertyName==="width"&&zt.target===zt.currentTarget,cr=zt.target.className,Ar=Object.prototype.toString.call(cr)==="[object SVGAnimatedString]"?cr.animVal:cr,br=zt.propertyName==="font-size"&&Ar.indexOf("anticon")>=0;(Lt||br)&&Ot.restoreModeVerticalFromInline()},Ot.setInnerMenu=function(zt){Ot.innerMenu=zt},Ot.isRootMenu=!0;var Rt=Gt.defaultSelectedKeys,jt=Gt.defaultOpenKeys;return"selectedKeys"in Gt&&(Rt=Gt.selectedKeys||[]),"openKeys"in Gt&&(jt=Gt.openKeys||[]),Ot.store=Object(V.c)({selectedKeys:Rt,openKeys:jt,activeKey:{"0-menu-":it(Gt,Gt.activeKey)}}),Ot.state={switchingModeFromInline:!1,prevProps:Gt,inlineOpenKeys:[],store:Ot.store},Ot}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Ot){var Rt=this.props,jt=Rt.siderCollapsed,zt=Rt.inlineCollapsed,Lt=Rt.onOpenChange;(!Ot.inlineCollapsed&&zt||!Ot.siderCollapsed&&jt)&&Lt([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Ot=this.props.collapsedWidth,Rt=this.store,jt=this.prevOpenKeys,zt=this.getInlineCollapsed()&&(Ot===0||Ot==="0"||Ot==="0px");zt?(this.prevOpenKeys=Rt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):jt&&(this.store.setState({openKeys:jt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Ot=this.props.mode,Rt=this.state.switchingModeFromInline,jt=this.getInlineCollapsed();return Rt&&jt?"inline":jt?"vertical":Ot}},{key:"getInlineCollapsed",value:function(){var Ot=this.props,Rt=Ot.inlineCollapsed,jt=Ot.siderCollapsed;return jt!==void 0?jt:Rt}},{key:"restoreModeVerticalFromInline",value:function(){var Ot=this.state.switchingModeFromInline;Ot&&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 Ot=Object(o.a)({},Object(Q.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Rt=this.getRealMenuMode();return Ot.className+=" ".concat(Ot.prefixCls,"-root"),Ot.direction==="rtl"&&(Ot.className+=" ".concat(Ot.prefixCls,"-rtl")),Ot=Object(o.a)(Object(o.a)({},Ot),{},{mode:Rt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:gi(this.props,this.state,Rt)}),delete Ot.openAnimation,delete Ot.openTransitionName,m.createElement(V.a,{store:this.store},m.createElement(Kn,Object(K.a)({},Ot,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Ot,Rt){var jt=Rt.prevProps,zt=Rt.store,Lt=zt.getState(),cr={},Ar={prevProps:Ot};return jt.mode==="inline"&&Ot.mode!=="inline"&&(Ar.switchingModeFromInline=!0),"openKeys"in Ot?cr.openKeys=Ot.openKeys||[]:((Ot.inlineCollapsed&&!jt.inlineCollapsed||Ot.siderCollapsed&&!jt.siderCollapsed)&&(Ar.switchingModeFromInline=!0,Ar.inlineOpenKeys=Lt.openKeys,cr.openKeys=[]),(!Ot.inlineCollapsed&&jt.inlineCollapsed||!Ot.siderCollapsed&&jt.siderCollapsed)&&(cr.openKeys=Rt.inlineOpenKeys,Ar.inlineOpenKeys=[])),Object.keys(cr).length&&zt.setState(cr),Ar}}]),Yn}(m.Component);Mn.defaultProps={selectable:!0,onClick:fe,onSelect:fe,onOpenChange:fe,onDeselect:fe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:m.createElement("span",null,"\xB7\xB7\xB7")};var Un=Mn,$t=function(rn){Object(g.a)(Yn,rn);var Cn=Object(A.a)(Yn);function Yn(){var Gt;return Object(c.a)(this,Yn),Gt=Cn.apply(this,arguments),Gt.onKeyDown=function(Ot){var Rt=Ot.keyCode;return Rt===R.a.ENTER?(Gt.onClick(Ot),!0):void 0},Gt.onMouseLeave=function(Ot){var Rt=Gt.props,jt=Rt.eventKey,zt=Rt.onItemHover,Lt=Rt.onMouseLeave;zt({key:jt,hover:!1}),Lt({key:jt,domEvent:Ot})},Gt.onMouseEnter=function(Ot){var Rt=Gt.props,jt=Rt.eventKey,zt=Rt.onItemHover,Lt=Rt.onMouseEnter;zt({key:jt,hover:!0}),Lt({key:jt,domEvent:Ot})},Gt.onClick=function(Ot){var Rt=Gt.props,jt=Rt.eventKey,zt=Rt.multiple,Lt=Rt.onClick,cr=Rt.onSelect,Ar=Rt.onDeselect,br=Rt.isSelected,Pr={key:jt,keyPath:[jt],item:Object(z.a)(Gt),domEvent:Ot};Lt(Pr),zt?br?Ar(Pr):cr(Pr):br||cr(Pr)},Gt.saveNode=function(Ot){Gt.node=Ot},Gt}return Object(h.a)(Yn,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Ot=this.props;Ot.onDestroy&&Ot.onDestroy(Ot.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 Ot,Rt=Object(o.a)({},this.props),jt=t()(this.getPrefixCls(),Rt.className,(Ot={},Object(f.a)(Ot,this.getActiveClassName(),!Rt.disabled&&Rt.active),Object(f.a)(Ot,this.getSelectedClassName(),Rt.isSelected),Object(f.a)(Ot,this.getDisabledClassName(),Rt.disabled),Ot)),zt=Object(o.a)(Object(o.a)({},Rt.attribute),{},{title:typeof Rt.title=="string"?Rt.title:void 0,className:jt,role:Rt.role||"menuitem","aria-disabled":Rt.disabled});Rt.role==="option"?zt=Object(o.a)(Object(o.a)({},zt),{},{role:"option","aria-selected":Rt.isSelected}):(Rt.role===null||Rt.role==="none")&&(zt.role="none");var Lt={onClick:Rt.disabled?null:this.onClick,onMouseLeave:Rt.disabled?null:this.onMouseLeave,onMouseEnter:Rt.disabled?null:this.onMouseEnter},cr=Object(o.a)({},Rt.style);Rt.mode==="inline"&&(Rt.direction==="rtl"?cr.paddingRight=Rt.inlineIndent*Rt.level:cr.paddingLeft=Rt.inlineIndent*Rt.level),ht.forEach(function(br){return delete Rt[br]}),delete Rt.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)(Rt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),zt,Lt,{style:cr,ref:this.saveNode}),Rt.children,Ar)}}]),Yn}(m.Component);$t.isMenuItem=!0,$t.defaultProps={onSelect:fe,onMouseEnter:fe,onMouseLeave:fe,manualRef:fe};var Ct=Object(V.b)(function(rn,Cn){var Yn=rn.activeKey,Gt=rn.selectedKeys,Ot=Cn.eventKey,Rt=Cn.subMenuKey;return{active:Yn[Rt]===Ot,isSelected:Array.isArray(Gt)?Gt.indexOf(Ot)!==-1:Gt===Ot}})($t),Re=Ct,De=function(rn){Object(g.a)(Yn,rn);var Cn=Object(A.a)(Yn);function Yn(){var Gt;return Object(c.a)(this,Yn),Gt=Cn.apply(this,arguments),Gt.renderInnerMenuItem=function(Ot){var Rt=Gt.props,jt=Rt.renderMenuItem,zt=Rt.index;return jt(Ot,zt,Gt.props.subMenuKey)},Gt}return Object(h.a)(Yn,[{key:"render",value:function(){var Ot=Object(K.a)({},this.props),Rt=Ot.className,jt=Rt===void 0?"":Rt,zt=Ot.rootPrefixCls,Lt="".concat(zt,"-item-group-title"),cr="".concat(zt,"-item-group-list"),Ar=Ot.title,br=Ot.children;return ht.forEach(function(Pr){return delete Ot[Pr]}),delete Ot.direction,m.createElement("li",Object(K.a)({},Ot,{onClick:function(Xn){return Xn.stopPropagation()},className:"".concat(jt," ").concat(zt,"-item-group")}),m.createElement("div",{className:Lt,title:typeof Ar=="string"?Ar:void 0},Ar),m.createElement("ul",{className:cr},m.Children.map(br,this.renderInnerMenuItem)))}}]),Yn}(m.Component);De.isMenuItemGroup=!0,De.defaultProps={disabled:!0};var Pe=De,et=function(Cn){var Yn=Cn.className,Gt=Cn.rootPrefixCls,Ot=Cn.style;return m.createElement("li",{className:"".concat(Yn," ").concat(Gt,"-item-divider"),style:Ot})};et.defaultProps={disabled:!0,className:"",style:{}};var yt=et,St=Un,Vt={adjustX:1,adjustY:1},Rr=[0,0],Vr={topLeft:{points:["bl","tl"],overflow:Vt,offset:[0,-4],targetOffset:Rr},topCenter:{points:["bc","tc"],overflow:Vt,offset:[0,-4],targetOffset:Rr},topRight:{points:["br","tr"],overflow:Vt,offset:[0,-4],targetOffset:Rr},bottomLeft:{points:["tl","bl"],overflow:Vt,offset:[0,4],targetOffset:Rr},bottomCenter:{points:["tc","bc"],overflow:Vt,offset:[0,4],targetOffset:Rr},bottomRight:{points:["tr","br"],overflow:Vt,offset:[0,4],targetOffset:Rr}},hn=Vr,Ft=R.a.ESC,vt=R.a.TAB;function bt(rn){var Cn=rn.visible,Yn=rn.setTriggerVisible,Gt=rn.triggerRef,Ot=rn.menuRef,Rt=rn.onVisibleChange,jt=rn.autoFocus,zt=m.useRef(!1),Lt=function(){if(Cn&&Gt.current){var Pr,Xn,Pn,di;(Pr=Gt.current)===null||Pr===void 0||((Xn=Pr.triggerRef)===null||Xn===void 0||((Pn=Xn.current)===null||Pn===void 0||((di=Pn.focus)===null||di===void 0)))||di.call(Pn),Yn(!1),typeof Rt=="function"&&Rt(!1)}},cr=function(){var Pr,Xn;(Pr=Ot.current)===null||Pr===void 0||((Xn=Pr.focus)===null||Xn===void 0)||Xn.call(Pr),zt.current=!0},Ar=function(Pr){var Xn;switch(Pr.keyCode){case Ft:Lt();break;case vt:!zt.current&&((Xn=Ot.current)===null||Xn===void 0?void 0:Xn.focus)?(Pr.preventDefault(),cr()):Lt();break}};m.useEffect(function(){return Cn?(window.addEventListener("keydown",Ar),jt&&Object(Jt.a)(cr,3),function(){window.removeEventListener("keydown",Ar),zt.current=!1}):function(){zt.current=!1}},[Cn])}var fr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function Qt(rn,Cn){var Yn=rn.arrow,Gt=Yn===void 0?!1:Yn,Ot=rn.prefixCls,Rt=Ot===void 0?"rc-dropdown":Ot,jt=rn.transitionName,zt=rn.animation,Lt=rn.align,cr=rn.placement,Ar=cr===void 0?"bottomLeft":cr,br=rn.placements,Pr=br===void 0?hn:br,Xn=rn.getPopupContainer,Pn=rn.showAction,di=rn.hideAction,An=rn.overlayClassName,Ur=rn.overlayStyle,In=rn.visible,Qn=rn.trigger,$n=Qn===void 0?["hover"]:Qn,oi=rn.autoFocus,Ti=Object(u.a)(rn,fr),ki=m.useState(),Ri=Object(d.a)(ki,2),oa=Ri[0],ma=Ri[1],aa="visible"in rn?In:oa,ba=m.useRef(null);m.useImperativeHandle(Cn,function(){return ba.current});var yi=m.useRef(null),kn="".concat(Rt,"-menu");bt({visible:aa,setTriggerVisible:ma,triggerRef:ba,menuRef:yi,onVisibleChange:rn.onVisibleChange,autoFocus:oi});var Ui=function(){var un=rn.overlay,Fn;return typeof un=="function"?Fn=un():Fn=un,Fn},ha=function(un){var Fn=rn.onOverlayClick,_t=Ui().props;ma(!1),Fn&&Fn(un),_t.onClick&&_t.onClick(un)},ta=function(un){var Fn=rn.onVisibleChange;ma(un),typeof Fn=="function"&&Fn(un)},ra=function(){var un,Fn=Ui(),_t=Object(E.a)(yi,Fn.ref),Or=(un={prefixCls:kn},Object(f.a)(un,"data-dropdown-inject",!0),Object(f.a)(un,"onClick",ha),Object(f.a)(un,"ref",Object(E.c)(Fn)?_t:void 0),un);return typeof Fn.type=="string"&&(delete Or.prefixCls,delete Or["data-dropdown-inject"]),m.createElement(m.Fragment,null,Gt&&m.createElement("div",{className:"".concat(Rt,"-arrow")}),m.cloneElement(Fn,Or))},Lr=function(){var un=rn.overlay;return typeof un=="function"?ra:ra()},xr=function(){var un=rn.minOverlayWidthMatchTrigger,Fn=rn.alignPoint;return"minOverlayWidthMatchTrigger"in rn?un:!Fn},Tn=function(){var un=rn.openClassName;return un!==void 0?un:"".concat(Rt,"-open")},mr=function(){var un=rn.children,Fn=un.props?un.props:{},_t=t()(Fn.className,Tn());return aa&&un?m.cloneElement(un,{className:_t}):un},Mr=di;return!Mr&&$n.indexOf("contextMenu")!==-1&&(Mr=["click"]),m.createElement(hr.a,Object(o.a)(Object(o.a)({builtinPlacements:Pr},Ti),{},{prefixCls:Rt,ref:ba,popupClassName:t()(An,Object(f.a)({},"".concat(Rt,"-show-arrow"),Gt)),popupStyle:Ur,action:$n,showAction:Pn,hideAction:Mr||[],popupPlacement:Ar,popupAlign:Lt,popupTransitionName:jt,popupAnimation:zt,popupVisible:aa,stretch:xr()?"minWidth":"",popup:Lr(),onPopupVisibleChange:ta,getPopupContainer:Xn}),mr())}var Mt=m.forwardRef(Qt),qt=Mt;function kt(rn,Cn){var Yn=rn.prefixCls,Gt=rn.editable,Ot=rn.locale,Rt=rn.style;return!Gt||Gt.showAdd===!1?null:m.createElement("button",{ref:Cn,type:"button",className:"".concat(Yn,"-nav-add"),style:Rt,"aria-label":(Ot==null?void 0:Ot.addAriaLabel)||"Add tab",onClick:function(zt){Gt.onEdit("add",{event:zt})}},Gt.addIcon||"+")}var er=m.forwardRef(kt);function Kr(rn,Cn){var Yn=rn.prefixCls,Gt=rn.id,Ot=rn.tabs,Rt=rn.locale,jt=rn.mobile,zt=rn.moreIcon,Lt=zt===void 0?"More":zt,cr=rn.moreTransitionName,Ar=rn.style,br=rn.className,Pr=rn.editable,Xn=rn.tabBarGutter,Pn=rn.rtl,di=rn.onTabClick,An=Object(m.useState)(!1),Ur=Object(d.a)(An,2),In=Ur[0],Qn=Ur[1],$n=Object(m.useState)(null),oi=Object(d.a)($n,2),Ti=oi[0],ki=oi[1],Ri="".concat(Gt,"-more-popup"),oa="".concat(Yn,"-dropdown"),ma=Ti!==null?"".concat(Ri,"-").concat(Ti):null,aa=Rt==null?void 0:Rt.dropdownAriaLabel,ba=m.createElement(St,{onClick:function(Lr){var xr=Lr.key,Tn=Lr.domEvent;di(xr,Tn),Qn(!1)},id:Ri,tabIndex:-1,role:"listbox","aria-activedescendant":ma,selectedKeys:[Ti],"aria-label":aa!==void 0?aa:"expanded dropdown"},Ot.map(function(ra){return m.createElement(Re,{key:ra.key,id:"".concat(Ri,"-").concat(ra.key),role:"option","aria-controls":Gt&&"".concat(Gt,"-panel-").concat(ra.key),disabled:ra.disabled},ra.tab)}));function yi(ra){for(var Lr=Ot.filter(function(Xr){return!Xr.disabled}),xr=Lr.findIndex(function(Xr){return Xr.key===Ti})||0,Tn=Lr.length,mr=0;mr<Tn;mr+=1){xr=(xr+ra+Tn)%Tn;var Mr=Lr[xr];if(!Mr.disabled){ki(Mr.key);return}}}function kn(ra){var Lr=ra.which;if(!In){[R.a.DOWN,R.a.SPACE,R.a.ENTER].includes(Lr)&&(Qn(!0),ra.preventDefault());return}switch(Lr){case R.a.UP:yi(-1),ra.preventDefault();break;case R.a.DOWN:yi(1),ra.preventDefault();break;case R.a.ESC:Qn(!1);break;case R.a.SPACE:case R.a.ENTER:Ti!==null&&di(Ti,ra);break}}Object(m.useEffect)(function(){var ra=document.getElementById(ma);ra&&ra.scrollIntoView&&ra.scrollIntoView(!1)},[Ti]),Object(m.useEffect)(function(){In||ki(null)},[In]);var Ui=Object(f.a)({},Pn?"marginLeft":"marginRight",Xn);Ot.length||(Ui.visibility="hidden",Ui.order=1);var ha=t()(Object(f.a)({},"".concat(oa,"-rtl"),Pn)),ta=jt?null:m.createElement(qt,{prefixCls:oa,overlay:ba,trigger:["hover"],visible:In,transitionName:cr,onVisibleChange:Qn,overlayClassName:ha,mouseEnterDelay:.1,mouseLeaveDelay:.1},m.createElement("button",{type:"button",className:"".concat(Yn,"-nav-more"),style:Ui,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Ri,id:"".concat(Gt,"-more"),"aria-expanded":In,onKeyDown:kn},Lt));return m.createElement("div",{className:t()("".concat(Yn,"-nav-operations"),br),style:Ar,ref:Cn},ta,m.createElement(er,{prefixCls:Yn,locale:Rt,editable:Pr}))}var Ir=m.forwardRef(Kr),Dr=Object(m.createContext)(null),dn=.1,yn=.01,ti=20,ei=Math.pow(.995,ti);function fi(){var rn=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(rn)||/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(rn.substr(0,4)))}function Ei(rn,Cn){var Yn=Object(m.useState)(),Gt=Object(d.a)(Yn,2),Ot=Gt[0],Rt=Gt[1],jt=Object(m.useState)(0),zt=Object(d.a)(jt,2),Lt=zt[0],cr=zt[1],Ar=Object(m.useState)(0),br=Object(d.a)(Ar,2),Pr=br[0],Xn=br[1],Pn=Object(m.useState)(),di=Object(d.a)(Pn,2),An=di[0],Ur=di[1],In=Object(m.useRef)();function Qn(aa){var ba=aa.touches[0],yi=ba.screenX,kn=ba.screenY;Rt({x:yi,y:kn}),window.clearInterval(In.current)}function $n(aa){if(!Ot)return;aa.preventDefault();var ba=aa.touches[0],yi=ba.screenX,kn=ba.screenY;Rt({x:yi,y:kn});var Ui=yi-Ot.x,ha=kn-Ot.y;Cn(Ui,ha);var ta=Date.now();cr(ta),Xn(ta-Lt),Ur({x:Ui,y:ha})}function oi(){if(!Ot)return;if(Rt(null),Ur(null),An){var aa=An.x/Pr,ba=An.y/Pr,yi=Math.abs(aa),kn=Math.abs(ba);if(Math.max(yi,kn)<dn)return;var Ui=aa,ha=ba;In.current=window.setInterval(function(){if(Math.abs(Ui)<yn&&Math.abs(ha)<yn){window.clearInterval(In.current);return}Ui*=ei,ha*=ei,Cn(Ui*ti,ha*ti)},ti)}}var Ti=Object(m.useRef)(0),ki=Object(m.useRef)(!1),Ri=Object(m.useRef)();function oa(aa){var ba=aa.deltaX,yi=aa.deltaY,kn=0,Ui=Math.abs(ba),ha=Math.abs(yi);Ui===ha?kn=Ri.current==="x"?ba:yi:Ui>ha?(kn=ba,Ri.current="x"):(kn=yi,Ri.current="y");var ta=Date.now();ta-Ti.current>100&&(ki.current=!1),(Cn(-kn,-kn)||ki.current)&&(aa.preventDefault(),ki.current=!0),Ti.current=ta}var ma=Object(m.useRef)(null);ma.current={onTouchStart:Qn,onTouchMove:$n,onTouchEnd:oi,onWheel:oa},m.useEffect(function(){function aa(Ui){ma.current.onTouchStart(Ui)}function ba(Ui){ma.current.onTouchMove(Ui)}function yi(Ui){ma.current.onTouchEnd(Ui)}function kn(Ui){ma.current.onWheel(Ui)}return document.addEventListener("touchmove",ba,{passive:!1}),document.addEventListener("touchend",yi,{passive:!1}),rn.current.addEventListener("touchstart",aa,{passive:!1}),rn.current.addEventListener("wheel",kn),function(){document.removeEventListener("touchmove",ba),document.removeEventListener("touchend",yi)}},[])}function Di(){var rn=Object(m.useRef)(new Map);function Cn(Gt){return rn.current.has(Gt)||rn.current.set(Gt,m.createRef()),rn.current.get(Gt)}function Yn(Gt){rn.current.delete(Gt)}return[Cn,Yn]}function Hi(rn,Cn){var Yn=m.useRef(rn),Gt=m.useState({}),Ot=Object(d.a)(Gt,2),Rt=Ot[1];function jt(zt){var Lt=typeof zt=="function"?zt(Yn.current):zt;Lt!==Yn.current&&Cn(Lt,Yn.current),Yn.current=Lt,Rt({})}return[Yn.current,jt]}var nt=function(Cn){var Yn=Cn.position,Gt=Cn.prefixCls,Ot=Cn.extra;if(!Ot)return null;var Rt,jt=Ot;return Yn==="right"&&(Rt=jt.right||!jt.left&&jt||null),Yn==="left"&&(Rt=jt.left||null),Rt?m.createElement("div",{className:"".concat(Gt,"-extra-content")},Rt):null};function Le(rn,Cn){var Yn,Gt=m.useContext(Dr),Ot=Gt.prefixCls,Rt=Gt.tabs,jt=rn.className,zt=rn.style,Lt=rn.id,cr=rn.animated,Ar=rn.activeKey,br=rn.rtl,Pr=rn.extra,Xn=rn.editable,Pn=rn.locale,di=rn.tabPosition,An=rn.tabBarGutter,Ur=rn.children,In=rn.onTabClick,Qn=rn.onTabScroll,$n=Object(m.useRef)(),oi=Object(m.useRef)(),Ti=Object(m.useRef)(),ki=Object(m.useRef)(),Ri=Di(),oa=Object(d.a)(Ri,2),ma=oa[0],aa=oa[1],ba=di==="top"||di==="bottom",yi=Hi(0,function(li,ci){ba&&Qn&&Qn({direction:li>ci?"left":"right"})}),kn=Object(d.a)(yi,2),Ui=kn[0],ha=kn[1],ta=Hi(0,function(li,ci){!ba&&Qn&&Qn({direction:li>ci?"top":"bottom"})}),ra=Object(d.a)(ta,2),Lr=ra[0],xr=ra[1],Tn=Object(m.useState)(0),mr=Object(d.a)(Tn,2),Mr=mr[0],Xr=mr[1],un=Object(m.useState)(0),Fn=Object(d.a)(un,2),_t=Fn[0],Or=Fn[1],Nr=Object(m.useState)(0),tn=Object(d.a)(Nr,2),xn=tn[0],Ln=tn[1],Sn=Object(m.useState)(0),qn=Object(d.a)(Sn,2),Wn=qn[0],pi=qn[1],Pi=Object(m.useState)(null),bi=Object(d.a)(Pi,2),Ii=bi[0],zi=bi[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=X(Rt,Xa,Mr),Fi="".concat(Ot,"-nav-operations-hidden"),io=0,oo=0;ba?br?(io=0,oo=Math.max(0,Mr-Ii)):(io=Math.min(0,Ii-Mr),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)}Ei($n,function(li,ci){var si=!1;function Ci(mi,Ai){mi(function(Ni){var ia=Qo(Ni+Ai),Ki=Object(d.a)(ia,2),fa=Ki[0],Ya=Ki[1];return si=Ya,fa})}if(ba){if(Ii>=Mr)return si;Ci(ha,li)}else{if(Wi>=_t)return si;Ci(xr,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=Ui;br?ci.right<Ui?si=ci.right:ci.right+ci.width>Ui+Ii&&(si=ci.right+ci.width-Ii):ci.left<-Ui?si=-ci.left:ci.left+ci.width>-Ui+Ii&&(si=-(ci.left+ci.width-Ii)),xr(0),ha(Qo(si)[0])}else{var Ci=Lr;ci.top<-Lr?Ci=-ci.top:ci.top+ci.height>-Lr+Wi&&(Ci=-(ci.top+ci.height-Wi)),ha(0),xr(Qo(Ci)[0])}}var wo=j(Va,{width:Ii,height:Wi,left:Ui,top:Lr},{width:xn,height:Wn},{width:Ca,height:va},Object(o.a)(Object(o.a)({},rn),{},{tabs:Rt})),ts=Object(d.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=Rt.map(function(li){var ci=li.key;return m.createElement(B,{id:Lt,prefixCls:Ot,key:ci,rtl:br,tab:li,closable:li.closable,editable:Xn,active:ci===Ar,tabPosition:di,tabBarGutter:An,renderWrapper:Ur,removeAriaLabel:Pn==null?void 0:Pn.removeAriaLabel,ref:ma(ci),onClick:function(Ci){In(ci,Ci)},onRemove:function(){aa(ci)},onFocus:function(){Uo(ci),to(),br||($n.current.scrollLeft=0),$n.current.scrollTop=0}})}),os=O(function(){var li,ci,si,Ci,mi,Ai,Ni,ia,Ki,fa=((li=$n.current)===null||li===void 0?void 0:li.offsetWidth)||0,Ya=((ci=$n.current)===null||ci===void 0?void 0:ci.offsetHeight)||0,xa=((si=ki.current)===null||si===void 0?void 0:si.offsetWidth)||0,wa=((Ci=ki.current)===null||Ci===void 0?void 0:Ci.offsetHeight)||0,Da=((mi=Ti.current)===null||mi===void 0?void 0:mi.offsetWidth)||0,ja=((Ai=Ti.current)===null||Ai===void 0?void 0:Ai.offsetHeight)||0;zi(fa),ji(Ya),na(xa),ga(wa);var ko=(((Ni=oi.current)===null||Ni===void 0?void 0:Ni.offsetWidth)||0)-xa,ro=(((ia=oi.current)===null||ia===void 0?void 0:ia.offsetHeight)||0)-wa;Xr(ko),Or(ro);var pa=(Ki=Ti.current)===null||Ki===void 0?void 0:Ki.className.includes(Fi);Ln(ko-(pa?0:Da)),pi(ro-(pa?0:ja)),_a(function(){var Ea=new Map;return Rt.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=Rt.slice(0,Ia),rs=Rt.slice(Oo+1),Ho=[].concat(Object(l.a)(xo),Object(l.a)(rs)),_o=Object(m.useState)(),uo=Object(d.a)(_o,2),Ha=uo[0],mt=uo[1],Tr=Va.get(Ar),en=Object(m.useRef)();function Jr(){a.a.cancel(en.current)}Object(m.useEffect)(function(){var li={};return Tr&&(ba?(br?li.right=Tr.right:li.left=Tr.left,li.width=Tr.width):(li.top=Tr.top,li.height=Tr.height)),Jr(),en.current=a()(function(){mt(li)}),Jr},[Tr,ba,br]),Object(m.useEffect)(function(){Uo()},[Ar,Tr,Va,ba]),Object(m.useEffect)(function(){os()},[br,An,Ar,Rt.map(function(li){return li.key}).join("_")]);var Jn=!!Ho.length,fn="".concat(Ot,"-nav-wrap"),Yr,ni,nn,zn;return ba?br?(ni=Ui>0,Yr=Ui+Ii<Mr):(Yr=Ui<0,ni=-Ui+Ii<Mr):(nn=Lr<0,zn=-Lr+Wi<_t),m.createElement("div",{ref:Cn,role:"tablist",className:t()("".concat(Ot,"-nav"),jt),style:zt,onKeyDown:function(){to()}},m.createElement(nt,{position:"left",extra:Pr,prefixCls:Ot}),m.createElement(w,{onResize:os},m.createElement("div",{className:t()(fn,(Yn={},Object(f.a)(Yn,"".concat(fn,"-ping-left"),Yr),Object(f.a)(Yn,"".concat(fn,"-ping-right"),ni),Object(f.a)(Yn,"".concat(fn,"-ping-top"),nn),Object(f.a)(Yn,"".concat(fn,"-ping-bottom"),zn),Yn)),ref:$n},m.createElement(w,{onResize:os},m.createElement("div",{ref:oi,className:"".concat(Ot,"-nav-list"),style:{transform:"translate(".concat(Ui,"px, ").concat(Lr,"px)"),transition:So?"none":void 0}},Io,m.createElement(er,{ref:ki,prefixCls:Ot,locale:Pn,editable:Xn,style:{visibility:Jn?"hidden":null}}),m.createElement("div",{className:t()("".concat(Ot,"-ink-bar"),Object(f.a)({},"".concat(Ot,"-ink-bar-animated"),cr.inkBar)),style:Ha}))))),m.createElement(Ir,Object.assign({},rn,{ref:Ti,prefixCls:Ot,tabs:Ho,className:!Jn&&Fi})),m.createElement(nt,{position:"right",extra:Pr,prefixCls:Ot}))}var je=m.forwardRef(Le);function Xe(rn){var Cn=rn.id,Yn=rn.activeKey,Gt=rn.animated,Ot=rn.tabPosition,Rt=rn.rtl,jt=rn.destroyInactiveTabPane,zt=m.useContext(Dr),Lt=zt.prefixCls,cr=zt.tabs,Ar=Gt.tabPane,br=cr.findIndex(function(Pr){return Pr.key===Yn});return m.createElement("div",{className:t()("".concat(Lt,"-content-holder"))},m.createElement("div",{className:t()("".concat(Lt,"-content"),"".concat(Lt,"-content-").concat(Ot),Object(f.a)({},"".concat(Lt,"-content-animated"),Ar)),style:br&&Ar?Object(f.a)({},Rt?"marginRight":"marginLeft","-".concat(br,"00%")):null},cr.map(function(Pr){return m.cloneElement(Pr.node,{key:Pr.key,prefixCls:Lt,tabKey:Pr.key,id:Cn,animated:Ar,active:Pr.key===Yn,destroyInactiveTabPane:jt})})))}function tt(rn){var Cn=rn.prefixCls,Yn=rn.forceRender,Gt=rn.className,Ot=rn.style,Rt=rn.id,jt=rn.active,zt=rn.animated,Lt=rn.destroyInactiveTabPane,cr=rn.tabKey,Ar=rn.children,br=m.useState(Yn),Pr=Object(d.a)(br,2),Xn=Pr[0],Pn=Pr[1];m.useEffect(function(){jt?Pn(!0):Lt&&Pn(!1)},[jt,Lt]);var di={};return jt||(zt?(di.visibility="hidden",di.height=0,di.overflowY="hidden"):di.display="none"),m.createElement("div",{id:Rt&&"".concat(Rt,"-panel-").concat(cr),role:"tabpanel",tabIndex:jt?0:-1,"aria-labelledby":Rt&&"".concat(Rt,"-tab-").concat(cr),"aria-hidden":!jt,style:Object(o.a)(Object(o.a)({},di),Ot),className:t()("".concat(Cn,"-tabpane"),jt&&"".concat(Cn,"-tabpane-active"),Gt)},(jt||Xn||Yn)&&Ar)}var Ze=0;function st(rn){return Object(s.a)(rn).map(function(Cn){if(m.isValidElement(Cn)){var Yn=Cn.key!==void 0?String(Cn.key):void 0;return Object(o.a)(Object(o.a)({key:Yn},Cn.props),{},{node:Cn})}return null}).filter(function(Cn){return Cn})}function Et(rn,Cn){var Yn,Gt=rn.id,Ot=rn.prefixCls,Rt=Ot===void 0?"rc-tabs":Ot,jt=rn.className,zt=rn.children,Lt=rn.direction,cr=rn.activeKey,Ar=rn.defaultActiveKey,br=rn.editable,Pr=rn.animated,Xn=rn.tabPosition,Pn=Xn===void 0?"top":Xn,di=rn.tabBarGutter,An=rn.tabBarStyle,Ur=rn.tabBarExtraContent,In=rn.locale,Qn=rn.moreIcon,$n=rn.moreTransitionName,oi=rn.destroyInactiveTabPane,Ti=rn.renderTabBar,ki=rn.onChange,Ri=rn.onTabClick,oa=rn.onTabScroll,ma=Object(u.a)(rn,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),aa=st(zt),ba=Lt==="rtl",yi;Pr===!1?yi={inkBar:!1,tabPane:!1}:yi=Object(o.a)({inkBar:!0,tabPane:!1},Pr!==!0?Pr:null);var kn=Object(m.useState)(!1),Ui=Object(d.a)(kn,2),ha=Ui[0],ta=Ui[1];Object(m.useEffect)(function(){ta(fi())},[]);var ra=Object(e.a)(function(){var Wn;return(Wn=aa[0])===null||Wn===void 0?void 0:Wn.key},{value:cr,defaultValue:Ar}),Lr=Object(d.a)(ra,2),xr=Lr[0],Tn=Lr[1],mr=Object(m.useState)(function(){return aa.findIndex(function(Wn){return Wn.key===xr})}),Mr=Object(d.a)(mr,2),Xr=Mr[0],un=Mr[1];Object(m.useEffect)(function(){var Wn=aa.findIndex(function(Pi){return Pi.key===xr});if(Wn===-1){var pi;Wn=Math.max(0,Math.min(Xr,aa.length-1)),Tn((pi=aa[Wn])===null||pi===void 0?void 0:pi.key)}un(Wn)},[aa.map(function(Wn){return Wn.key}).join("_"),xr,Xr]);var Fn=Object(e.a)(null,{value:Gt}),_t=Object(d.a)(Fn,2),Or=_t[0],Nr=_t[1],tn=Pn;ha&&!["left","right"].includes(Pn)&&(tn="top"),Object(m.useEffect)(function(){Gt||(Nr("rc-tabs-".concat(Ze)),Ze+=1)},[]);function xn(Wn,pi){Ri==null||Ri(Wn,pi),Tn(Wn),ki==null||ki(Wn)}var Ln={id:Or,activeKey:xr,animated:yi,tabPosition:tn,rtl:ba,mobile:ha},Sn,qn=Object(o.a)(Object(o.a)({},Ln),{},{editable:br,locale:In,moreIcon:Qn,moreTransitionName:$n,tabBarGutter:di,onTabClick:xn,onTabScroll:oa,extra:Ur,style:An,panes:zt});return Ti?Sn=Ti(qn,je):Sn=m.createElement(je,Object.assign({},qn)),m.createElement(Dr.Provider,{value:{tabs:aa,prefixCls:Rt}},m.createElement("div",Object.assign({ref:Cn,id:Gt,className:t()(Rt,"".concat(Rt,"-").concat(tn),(Yn={},Object(f.a)(Yn,"".concat(Rt,"-mobile"),ha),Object(f.a)(Yn,"".concat(Rt,"-editable"),br),Object(f.a)(Yn,"".concat(Rt,"-rtl"),ba),Yn),jt)},ma),Sn,m.createElement(Xe,Object.assign({destroyInactiveTabPane:oi},Ln,{animated:yi}))))}var gt=m.forwardRef(Et);gt.TabPane=tt;var pr=gt,qr=pr,Qr=n("cCPh"),gn=n.n(Qr),vr=n("fNCr"),Vn=n.n(vr),kr=n("V/uB"),Bn=n.n(kr),on=n("uaoM"),jr=n("H84U"),ai=function(rn,Cn){var Yn={};for(var Gt in rn)Object.prototype.hasOwnProperty.call(rn,Gt)&&Cn.indexOf(Gt)<0&&(Yn[Gt]=rn[Gt]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,Gt=Object.getOwnPropertySymbols(rn);Ot<Gt.length;Ot++)Cn.indexOf(Gt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(rn,Gt[Ot])&&(Yn[Gt[Ot]]=rn[Gt[Ot]]);return Yn};function Oi(rn){var Cn,Yn=rn.type,Gt=rn.className,Ot=rn.size,Rt=rn.onEdit,jt=rn.hideAdd,zt=rn.centered,Lt=rn.addIcon,cr=ai(rn,["type","className","size","onEdit","hideAdd","centered","addIcon"]),Ar=cr.prefixCls,br=m.useContext(jr.b),Pr=br.getPrefixCls,Xn=br.direction,Pn=Pr("tabs",Ar),di;return Yn==="editable-card"&&(di={onEdit:function(Ur,In){var Qn=In.key,$n=In.event;Rt==null||Rt(Ur==="add"?$n:Qn,Ur)},removeIcon:m.createElement(Bn.a,null),addIcon:Lt||m.createElement(Vn.a,null),showAdd:jt!==!0}),Object(on.a)(!("onPrevClick"in cr)&&!("onNextClick"in cr),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),m.createElement(qr,p()({direction:Xn},cr,{moreTransitionName:"slide-up",className:t()(Gt,(Cn={},v()(Cn,"".concat(Pn,"-").concat(Ot),Ot),v()(Cn,"".concat(Pn,"-card"),["card","editable-card"].includes(Yn)),v()(Cn,"".concat(Pn,"-editable-card"),Yn==="editable-card"),v()(Cn,"".concat(Pn,"-centered"),zt),Cn)),editable:di,moreIcon:m.createElement(gn.a,null),prefixCls:Pn}))}Oi.TabPane=tt;var Gi=D.a=Oi},ZTW2:function(k,D,n){},ZWlE:function(k,D,n){var y=n("bYtY"),p=n("4NO4");function x(f){v(f),m(f)}function v(f){if(f.parallel)return;var d=!1;y.each(f.series,function(u){u&&u.type==="parallel"&&(d=!0)}),d&&(f.parallel=[{}])}function m(f){var d=p.normalizeToArray(f.parallelAxis);y.each(d,function(u){if(!y.isObject(u))return;var o=u.parallelIndex||0,i=p.normalizeToArray(f.parallel)[o];i&&i.parallelAxisDefault&&y.merge(u,i.parallelAxisDefault,!1)})}k.exports=x},ZX9x:function(k,D,n){"use strict";n.d(D,"a",function(){return I}),n.d(D,"b",function(){return B});var y=n("lSNA"),p=n.n(y),x=n("pVnL"),v=n.n(x),m=n("lwsE"),f=n.n(m),d=n("W8MJ"),u=n.n(d),o=n("7W2i"),i=n.n(o),t=n("LQ03"),s=n.n(t),e=n("q1tI"),l=n("TSYQ"),r=n.n(l),a=n("BGR+"),c=n("T1rO"),h=n.n(c),g=n("fEPi"),A=n.n(g),b=n("DFhj"),S=n.n(b),E=n("PKem"),C=n("H84U"),_=function(X){return!isNaN(parseFloat(X))&&isFinite(X)},T=_,w=function(P,X){var F={};for(var j in P)Object.prototype.hasOwnProperty.call(P,j)&&X.indexOf(j)<0&&(F[j]=P[j]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,j=Object.getOwnPropertySymbols(P);K<j.length;K++)X.indexOf(j[K])<0&&Object.prototype.propertyIsEnumerable.call(P,j[K])&&(F[j[K]]=P[j[K]]);return F},O={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},I=e.createContext({}),R=function(){var P=0;return function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return P+=1,"".concat(X).concat(P)}}(),M=function(P){i()(F,P);var X=s()(F);function F(j){var K;f()(this,F),K=X.call(this,j),K.responsiveHandler=function(Q){K.setState({below:Q.matches});var G=K.props.onBreakpoint,te=K.state.collapsed;G&&G(Q.matches),te!==Q.matches&&K.setCollapsed(Q.matches,"responsive")},K.setCollapsed=function(Q,G){"collapsed"in K.props||K.setState({collapsed:Q});var te=K.props.onCollapse;te&&te(Q,G)},K.toggle=function(){var Q=!K.state.collapsed;K.setCollapsed(Q,"clickTrigger")},K.renderSider=function(Q){var G,te=Q.getPrefixCls,q=K.props,le=q.prefixCls,re=q.className,we=q.theme,Ie=q.collapsible,Me=q.reverseArrow,Je=q.trigger,Ve=q.style,ut=q.width,Fe=q.collapsedWidth,ae=q.zeroWidthTriggerStyle,at=q.children,he=w(q,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),J=K.state,Y=J.collapsed,$=J.below,de=te("layout-sider",le),be=Object(a.default)(he,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),Ce=Y?Fe:ut,Be=T(Ce)?"".concat(Ce,"px"):String(Ce),fe=parseFloat(String(Fe||0))===0?e.createElement("span",{onClick:K.toggle,className:r()("".concat(de,"-zero-width-trigger"),"".concat(de,"-zero-width-trigger-").concat(Me?"right":"left")),style:ae},Je||e.createElement(h.a,null)):null,Se={expanded:Me?e.createElement(A.a,null):e.createElement(S.a,null),collapsed:Me?e.createElement(S.a,null):e.createElement(A.a,null)},ke=Y?"collapsed":"expanded",rt=Se[ke],xt=Je!==null?fe||e.createElement("div",{className:"".concat(de,"-trigger"),onClick:K.toggle,style:{width:Be}},Je||rt):null,ht=v()(v()({},Ve),{flex:"0 0 ".concat(Be),maxWidth:Be,minWidth:Be,width:Be}),He=r()(re,de,"".concat(de,"-").concat(we),(G={},p()(G,"".concat(de,"-collapsed"),!!Y),p()(G,"".concat(de,"-has-trigger"),Ie&&Je!==null&&!fe),p()(G,"".concat(de,"-below"),!!$),p()(G,"".concat(de,"-zero-width"),parseFloat(Be)===0),G));return e.createElement("aside",v()({className:He},be,{style:ht}),e.createElement("div",{className:"".concat(de,"-children")},at),Ie||$&&fe?xt:null)},K.uniqueId=R("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 u()(F,[{key:"componentDidMount",value:function(){var K;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(K=this.props)===null||K===void 0||K.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var K,z;(K=this===null||this===void 0?void 0:this.mql)===null||K===void 0||K.removeListener(this.responsiveHandler),(z=this.props)===null||z===void 0||z.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var K=this.state.collapsed,z=this.props.collapsedWidth;return e.createElement(I.Provider,{value:{siderCollapsed:K,collapsedWidth:z}},e.createElement(C.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(K){return"collapsed"in K?{collapsed:K.collapsed}:null}}]),F}(e.Component);M.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var B=function(P){i()(F,P);var X=s()(F);function F(){return f()(this,F),X.apply(this,arguments)}return u()(F,[{key:"render",value:function(){var K=this;return e.createElement(E.a.Consumer,null,function(z){return e.createElement(M,v()({},z,K.props))})}}]),F}(e.Component)},ZYIC:function(k,D,n){var y=n("zM3Q"),p={seriesType:"lines",plan:y(),reset:function(x){var v=x.coordinateSystem,m=x.get("polyline"),f=x.pipelineContext.large;function d(u,o){var i=[];if(f){var t,s=u.end-u.start;if(m){for(var e=0,l=u.start;l<u.end;l++)e+=x.getLineCoordsCount(l);t=new Float32Array(s+e*2)}else t=new Float32Array(s*4);for(var r=0,a=[],l=u.start;l<u.end;l++){var c=x.getLineCoords(l,i);m&&(t[r++]=c);for(var h=0;h<c;h++)a=v.dataToPoint(i[h],!1,a),t[r++]=a[0],t[r++]=a[1]}o.setLayout("linesPoints",t)}else for(var l=u.start;l<u.end;l++){var g=o.getItemModel(l),c=x.getLineCoords(l,i),A=[];if(m)for(var b=0;b<c;b++)A.push(v.dataToPoint(i[b]));else{A[0]=v.dataToPoint(i[0]),A[1]=v.dataToPoint(i[1]);var S=g.get("lineStyle.curveness");+S&&(A[2]=[(A[0][0]+A[1][0])/2-(A[0][1]-A[1][1])*S,(A[0][1]+A[1][1])/2-(A[1][0]-A[0][0])*S])}o.setItemLayout(l,A)}}return{progress:d}}};k.exports=p},Ze12:function(k,D,n){var y=n("ItGF"),p=n("hOwI"),x=p.buildTransformer,v="___zrEVENTSAVED",m=[];function f(t,s,e,l,r){return d(m,s,l,r,!0)&&d(t,e,m[0],m[1])}function d(t,s,e,l,r){if(s.getBoundingClientRect&&y.domSupported&&!i(s)){var a=s[v]||(s[v]={}),c=u(s,a),h=o(c,a,r);if(h)return h(t,e,l),!0}return!1}function u(t,s){var e=s.markers;if(e)return e;e=s.markers=[];for(var l=["left","right"],r=["top","bottom"],a=0;a<4;a++){var c=document.createElement("div"),h=c.style,g=a%2,A=(a>>1)%2;h.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",l[g]+":0",r[A]+":0",l[1-g]+":auto",r[1-A]+":auto",""].join("!important;"),t.appendChild(c),e.push(c)}return e}function o(t,s,e){for(var l=e?"invTrans":"trans",r=s[l],a=s.srcCoords,c=!0,h=[],g=[],A=0;A<4;A++){var b=t[A].getBoundingClientRect(),S=2*A,E=b.left,C=b.top;h.push(E,C),c=c&&a&&E===a[S]&&C===a[S+1],g.push(t[A].offsetLeft,t[A].offsetTop)}return c&&r?r:(s.srcCoords=h,s[l]=e?x(g,h):x(h,g))}function i(t){return t.nodeName.toUpperCase()==="CANVAS"}D.transformLocalCoord=f,D.transformCoordWithViewport=d,D.isCanvasEl=i},Znkb:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),v=n("zTMp"),m=x.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(i,t,s,e){this.axisPointerClass&&v.fixValue(i),m.superApply(this,"render",arguments),f(this,i,t,s,e,!0)},updateAxisPointer:function(i,t,s,e,l){f(this,i,t,s,e,!1)},remove:function(i,t){var s=this._axisPointer;s&&s.remove(t),m.superApply(this,"remove",arguments)},dispose:function(i,t){d(this,t),m.superApply(this,"dispose",arguments)}});function f(i,t,s,e,l,r){var a=m.getAxisPointerClass(i.axisPointerClass);if(!a)return;var c=v.getAxisPointerModel(t);c?(i._axisPointer||(i._axisPointer=new a)).render(t,c,e,r):d(i,e)}function d(i,t,s){var e=i._axisPointer;e&&e.dispose(t,s),i._axisPointer=null}var u=[];m.registerAxisPointerClass=function(i,t){u[i]=t},m.getAxisPointerClass=function(i){return i&&u[i]};var o=m;k.exports=o},"Znn+":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("9ama"),v=n.n(x)},ZqQs:function(k,D,n){var y=n("bYtY");function p(f){var d=f&&f.timeline;y.isArray(d)||(d=d?[d]:[]),y.each(d,function(u){if(!u)return;x(u)})}function x(f){var d=f.type,u={number:"value",time:"time"};if(u[d]&&(f.axisType=u[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(i){y.isObject(i)&&!y.isArray(i)&&(!m(i,"value")&&m(i,"name")&&(i.value=i.name),v(i))})}function v(f){var d=f.itemStyle||(f.itemStyle={}),u=d.emphasis||(d.emphasis={}),o=f.label||f.label||{},i=o.normal||(o.normal={}),t={normal:1,emphasis:1};y.each(o,function(s,e){!t[e]&&!m(i,e)&&(i[e]=s)}),u.label&&!m(o,"emphasis")&&(o.emphasis=u.label,delete u.label)}function m(f,d){return f.hasOwnProperty(d)}k.exports=p},Zvw2:function(k,D,n){var y=n("bYtY"),p=n("hM6l"),x=function(m,f,d,u,o){p.call(this,m,f,d),this.type=u||"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;k.exports=v},ZxNd:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};D.default=y},a7Wl:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};D.default=y},a9QJ:function(k,D){var n={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function y(p,x){if(p==="world"){var v=n[x.name];if(v){var m=x.center;m[0]=v[0],m[1]=v[1]}}}k.exports=y},aHsQ:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("6D9b"),v=n.n(x)},aKvl:function(k,D,n){var y=n("Sj9i"),p=y.quadraticProjectPoint;function x(v,m,f,d,u,o,i,t,s){if(i===0)return!1;var e=i;if(s>m+e&&s>d+e&&s>o+e||s<m-e&&s<d-e&&s<o-e||t>v+e&&t>f+e&&t>u+e||t<v-e&&t<f-e&&t<u-e)return!1;var l=p(v,m,f,d,u,o,t,s,null);return l<=e/2}D.containStroke=x},aTJb:function(k,D,n){var y=n("bLfw");y.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(k,D,n){var y=n("3gBT"),p=n("ItGF"),x=n("bYtY"),v=n("0s+r"),m=n("r6Bn"),f=n("7SHv"),d=n("MKOG"),u=n("zarK");/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var o=!p.canvasSupported,i={canvas:f},t={},s="4.3.1";function e(g,A){var b=new h(y(),g,A);return t[b.id]=b,b}function l(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 a(g,A){i[g]=A}function c(g){delete t[g]}var h=function(A,b,S){S=S||{},this.dom=b,this.id=A;var E=this,C=new m,_=S.renderer;if(o){if(!i.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");_="vml"}else(!_||!i[_])&&(_="canvas");var T=new i[_](b,C,S,A);this.storage=C,this.painter=T;var w=!p.node&&!p.worker?new u(T.getViewportRoot(),T.root):null;this.handler=new v(C,T,w,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(R){O.call(C,R),R&&R.removeSelfFromZr(E)},C.addToStorage=function(R){I.call(C,R),R.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 S=this.painter.addHover(A,b);return this.refreshHover(),S}},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,S){this.handler.on(A,b,S)},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=s,D.init=e,D.dispose=l,D.getInstance=r,D.registerPainter=a},aX7z:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),v=n("GMDS"),m=n("ieMj"),f=n("4NgU"),d=n("OELB"),u=n("nVfU"),o=u.prepareLayoutBarSeries,i=u.makeColumnLayout,t=u.retrieveColumnLayout,s=n("mFDi");n("IWp7"),n("jCoz");function e(C,_){var T=C.type,w=_.getMin(),O=_.getMax(),I=C.getExtent(),R,M,B;T==="ordinal"?R=_.getCategories().length:(M=_.get("boundaryGap"),x.isArray(M)||(M=[M||0,M||0]),typeof M[0]=="boolean"&&(M=[0,0]),M[0]=d.parsePercent(M[0],1),M[1]=d.parsePercent(M[1],1),B=I[1]-I[0]||Math.abs(I[0])),w==="dataMin"?w=I[0]:typeof w=="function"&&(w=w({min:I[0],max:I[1]})),O==="dataMax"?O=I[1]:typeof O=="function"&&(O=O({min:I[0],max:I[1]}));var P=w!=null,X=O!=null;w==null&&(w=T==="ordinal"?R?0:NaN:I[0]-M[0]*B),O==null&&(O=T==="ordinal"?R?R-1:NaN:I[1]+M[1]*B),(w==null||!isFinite(w))&&(w=NaN),(O==null||!isFinite(O))&&(O=NaN),C.setBlank(x.eqNaN(w)||x.eqNaN(O)||T==="ordinal"&&!C.getOrdinalMeta().categories.length),_.getNeedCrossZero()&&(w>0&&O>0&&!P&&(w=0),w<0&&O<0&&!X&&(O=0));var F=_.ecModel;if(F&&T==="time"){var j=o("bar",F),K;if(x.each(j,function(Q){K|=Q.getBaseAxis()===_.axis}),K){var z=i(j),V=l(w,O,_,z);w=V.min,O=V.max}}return{extent:[w,O],fixMin:P,fixMax:X}}function l(C,_,T,w){var O=T.axis.getExtent(),I=O[1]-O[0],R=t(w,T.axis);if(R===void 0)return{min:C,max:_};var M=Infinity;x.each(R,function(K){M=Math.min(K.offset,M)});var B=-Infinity;x.each(R,function(K){B=Math.max(K.offset+K.width,B)}),M=Math.abs(M),B=Math.abs(B);var P=M+B,X=_-C,F=1-(M+B)/I,j=X/F-X;return _+=j*(B/P),C-=j*(M/P),{min:C,max:_}}function r(C,_){var T=e(C,_),w=T.extent,O=_.get("splitNumber");C.type==="log"&&(C.base=_.get("logBase"));var I=C.type;C.setExtent(w[0],w[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 R=_.get("interval");R!=null&&(C.setInterval&&C.setInterval(R))}function a(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],w=_[1];return!(T>0&&w>0||T<0&&w<0)}function h(C){var _=C.getLabelModel().get("formatter"),T=C.type==="category"?C.scale.getExtent()[0]:null;return typeof _=="string"?(_=function(w){return function(O){return O=C.scale.getLabel(O),w.replace("{value}",O!=null?O:"")}}(_),_):typeof _=="function"?function(w,O){return T!=null&&(O=w-T),_(g(C,w),O)}:function(w){return C.scale.getLabel(w)}}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 w=C.type==="category",O,I,R=T.getExtent();w?I=T.count():(O=T.getTicks(),I=O.length);var M=C.getLabelModel(),B=h(C),P,X=1;I>40&&(X=Math.ceil(I/40));for(var F=0;F<I;F+=X){var j=O?O[F]:R[0]+F,K=B(j),z=M.getTextRect(K),V=b(z,M.get("rotate")||0);P?P.union(V):P=V}return P}function b(C,_){var T=_*Math.PI/180,w=C.plain(),O=w.width,I=w.height,R=O*Math.cos(T)+I*Math.sin(T),M=O*Math.sin(T)+I*Math.cos(T),B=new s(w.x,w.y,R,M);return B}function S(C){var _=C.get("interval");return _==null?"auto":_}function E(C){return C.type==="category"&&S(C.getLabelModel())===0}D.getScaleExtent=e,D.niceScaleExtent=r,D.createScaleByModel=a,D.ifAxisCrossZero=c,D.makeLabelFormatter=h,D.getAxisRawValue=g,D.estimateLabelUnionRect=A,D.getOptionCategoryInterval=S,D.shouldShowAllLabels=E},adU4:function(k,D,n){var y=n("y1pI"),p=Array.prototype,x=p.splice;function v(m){var f=this.__data__,d=y(f,m);if(d<0)return!1;var u=f.length-1;return d==u?f.pop():x.call(f,d,1),--this.size,!0}k.exports=v},"af/B":function(k,D,n){var y=n("bYtY"),p=y.each,x=y.map,v=y.isFunction,m=y.createHashMap,f=y.noop,d=n("9H2F"),u=d.createTask,o=n("iRjW"),i=o.getUID,t=n("fmMI"),s=n("hD7B"),e=n("4NO4"),l=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 a=r.prototype;a.restoreData=function(K,z){K.restoreData(z),this._stageTaskMap.each(function(V){var Q=V.overallTask;Q&&Q.dirty()})},a.getPerformArgs=function(K,z){if(!K.__pipeline)return;var V=this._pipelineMap.get(K.__pipeline.id),Q=V.context,G=!z&&V.progressiveEnabled&&(!Q||Q.progressiveRender)&&K.__idxInPipeline>V.blockIndex,te=G?V.step:null,q=Q&&Q.modDataCount,le=q!=null?Math.ceil(q/te):null;return{step:te,modBy:le,modDataCount:q}},a.getPipeline=function(K){return this._pipelineMap.get(K)},a.updateStreamModes=function(K,z){var V=this._pipelineMap.get(K.uid),Q=K.getData(),G=Q.count(),te=V.progressiveEnabled&&z.incrementalPrepareRender&&G>=V.threshold,q=K.get("large")&&G>=K.get("largeThreshold"),le=K.get("progressiveChunkMode")==="mod"?G:null;K.pipelineContext=V.context={progressiveRender:te,modDataCount:le,large:q}},a.restorePipelines=function(K){var z=this,V=z._pipelineMap=m();K.eachSeries(function(Q){var G=Q.getProgressive(),te=Q.uid;V.set(te,{id:te,head:null,tail:null,threshold:Q.getProgressiveThreshold(),progressiveEnabled:G&&!(Q.preventIncremental&&Q.preventIncremental()),blockIndex:-1,step:Math.round(G||700),count:0}),R(z,Q,Q.dataTask)})},a.prepareStageTasks=function(){var K=this._stageTaskMap,z=this.ecInstance.getModel(),V=this.api;p(this._allHandlers,function(Q){var G=K.get(Q.uid)||K.set(Q.uid,[]);Q.reset&&g(this,Q,G,z,V),Q.overallReset&&A(this,Q,G,z,V)},this)},a.prepareView=function(K,z,V,Q){var G=K.renderTask,te=G.context;te.model=z,te.ecModel=V,te.api=Q,G.__block=!K.incrementalPrepareRender,R(this,z,G)},a.performDataProcessorTasks=function(K,z){c(this,this._dataProcessorHandlers,K,z,{block:!0})},a.performVisualTasks=function(K,z,V){c(this,this._visualHandlers,K,z,V)};function c(K,z,V,Q,G){G=G||{};var te;p(z,function(le,re){if(G.visualType&&G.visualType!==le.visualType)return;var we=K._stageTaskMap.get(le.uid),Ie=we.seriesTaskMap,Me=we.overallTask;if(Me){var Je,Ve=Me.agentStubMap;Ve.each(function(Fe){q(G,Fe)&&(Fe.dirty(),Je=!0)}),Je&&Me.dirty(),h(Me,Q);var ut=K.getPerformArgs(Me,G.block);Ve.each(function(Fe){Fe.perform(ut)}),te|=Me.perform(ut)}else Ie&&Ie.each(function(Fe,ae){q(G,Fe)&&Fe.dirty();var at=K.getPerformArgs(Fe,G.block);at.skip=!le.performRawSeries&&V.isSeriesFiltered(Fe.context.model),h(Fe,Q),te|=Fe.perform(at)})});function q(le,re){return le.setDirty&&(!le.dirtyMap||le.dirtyMap.get(re.__pipeline.id))}K.unfinished|=te}a.performSeriesTasks=function(K){var z;K.eachSeries(function(V){z|=V.dataTask.perform()}),this.unfinished|=z},a.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=a.updatePayload=function(K,z){z!=="remain"&&(K.context.payload=z)};function g(K,z,V,Q,G){var te=V.seriesTaskMap||(V.seriesTaskMap=m()),q=z.seriesType,le=z.getTargetSeries;z.createOnAllSeries?Q.eachRawSeries(re):q?Q.eachRawSeriesByType(q,re):le&&le(Q,G).each(re);function re(Ie){var Me=Ie.uid,Je=te.get(Me)||te.set(Me,u({plan:_,reset:T,count:I}));Je.context={model:Ie,ecModel:Q,api:G,useClearVisual:z.isVisual&&!z.isLayout,plan:z.plan,reset:z.reset,scheduler:K},R(K,Ie,Je)}var we=K._pipelineMap;te.each(function(Ie,Me){we.get(Me)||(Ie.dispose(),te.removeKey(Me))})}function A(K,z,V,Q,G){var te=V.overallTask=V.overallTask||u({reset:b});te.context={ecModel:Q,api:G,overallReset:z.overallReset,scheduler:K};var q=te.agentStubMap=te.agentStubMap||m(),le=z.seriesType,re=z.getTargetSeries,we=!0,Ie=z.modifyOutputEnd;le?Q.eachRawSeriesByType(le,Me):re?re(Q,G).each(Me):(we=!1,p(Q.getSeries(),Me));function Me(Ve){var ut=Ve.uid,Fe=q.get(ut);Fe||(Fe=q.set(ut,u({reset:S,onDirty:C})),te.dirty()),Fe.context={model:Ve,overallProgress:we,modifyOutputEnd:Ie},Fe.agent=te,Fe.__block=we,R(K,Ve,Fe)}var Je=K._pipelineMap;q.each(function(Ve,ut){Je.get(ut)||(Ve.dispose(),te.dirty(),q.removeKey(ut))})}function b(K){K.overallReset(K.ecModel,K.api,K.payload)}function S(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=l(K.reset(K.model,K.ecModel,K.api,K.payload));return z.length>1?x(z,function(V,Q){return O(Q)}):w}var w=O(0);function O(K){return function(z,V){var Q=V.data,G=V.resetDefines[K];if(G&&G.dataEach)for(var te=z.start;te<z.end;te++)G.dataEach(Q,te);else G&&G.progress&&G.progress(z,Q)}}function I(K){return K.data.count()}function R(K,z,V){var Q=z.uid,G=K._pipelineMap.get(Q);!G.head&&(G.head=V),G.tail&&G.tail.pipe(V),G.tail=V,V.__idxInPipeline=G.count++,V.__pipeline=G}r.wrapStageHandler=function(K,z){return v(K)&&(K={overallReset:K,seriesType:M(K)}),K.uid=i("stageHandler"),z&&(K.visualType=z),K};function M(K){X=null;try{K(B,P)}catch(z){}return X}var B={},P={},X;F(B,t),F(P,s),B.eachSeriesByType=B.eachRawSeriesByType=function(K){X=K},B.eachComponent=function(K){K.mainType==="series"&&K.subType&&(X=K.subType)};function F(K,z){for(var V in z.prototype)K[V]=f}var j=r;k.exports=j},akwb:function(k,D,n){var y=n("RSch"),p=n("bYtY"),x=n("D9ME"),v=n("QBsz");function m(u,o,i){x.call(this,u,o,i),this._lastFrame=0,this._lastFramePercent=0}var f=m.prototype;f.createLine=function(u,o,i){return new y(u,o,i)},f.updateAnimationPoints=function(u,o){this._points=o;for(var i=[0],t=0,s=1;s<o.length;s++){var e=o[s-1],l=o[s];t+=v.dist(e,l),i.push(t)}if(t===0)return;for(var s=0;s<i.length;s++)i[s]/=t;this._offsets=i,this._length=t},f.getLineLength=function(u){return this._length},f.updateSymbolPosition=function(u){var o=u.__t,i=this._points,t=this._offsets,s=i.length;if(!t)return;var e=this._lastFrame,l;if(o<this._lastFramePercent){var r=Math.min(e+1,s-1);for(l=r;l>=0&&!(t[l]<=o);l--);l=Math.min(l,s-2)}else{for(var l=e;l<s&&!(t[l]>o);l++);l=Math.min(l-1,s-2)}v.lerp(u.position,i[l],i[l+1],(o-t[l])/(t[l+1]-t[l]));var a=i[l+1][0]-i[l][0],c=i[l+1][1]-i[l][1];u.rotation=-Math.atan2(c,a)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=o,u.ignore=!1},p.inherits(m,x);var d=m;k.exports=d},apAg:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("bsht")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="SearchOutlined";var i=v.forwardRef(o);D.default=i},as94:function(k,D,n){var y=n("7aKB"),p=n("3LNs"),x=n("IwbS"),v=n("/y7N"),m=n("Fofx"),f=n("+rIm"),d=n("Znkb"),u=p.extend({makeElOption:function(s,e,l,r,a){var c=l.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 S=r.get("type");if(S&&S!=="none"){var E=v.buildElStyle(r),C=i[S](c,h,b,A,E);C.style=E,s.graphicKey=C.type,s.pointer=C}var _=r.get("label.margin"),T=o(e,l,r,h,_);v.buildLabelElOption(s,l,r,a,T)}});function o(s,e,l,r,a){var c=e.axis,h=c.dataToCoord(s),g=r.getAngleAxis().getExtent()[0];g=g/180*Math.PI;var A=r.getRadiusAxis().getExtent(),b,S,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,-a],C);var _=e.getModel("axisLabel").get("rotate")||0,T=f.innerTextLayout(g,_*Math.PI/180,-1);S=T.textAlign,E=T.textVerticalAlign}else{var w=A[1];b=r.coordToPoint([w+a,h]);var O=r.cx,I=r.cy;S=Math.abs(b[0]-O)/w<.3?"center":b[0]>O?"left":"right",E=Math.abs(b[1]-I)/w<.3?"middle":b[1]>I?"top":"bottom"}return{position:b,align:S,verticalAlign:E}}var i={line:function(s,e,l,r,a){return s.dim==="angle"?{type:"Line",shape:v.makeLineShape(e.coordToPoint([r[0],l]),e.coordToPoint([r[1],l]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:l}}},shadow:function(s,e,l,r,a){var c=Math.max(1,s.getBandWidth()),h=Math.PI/180;return s.dim==="angle"?{type:"Sector",shape:v.makeSectorShape(e.cx,e.cy,r[0],r[1],(-l-c/2)*h,(-l+c/2)*h)}:{type:"Sector",shape:v.makeSectorShape(e.cx,e.cy,l-c/2,l+c/2,0,Math.PI*2)}}};d.registerAxisPointerClass("PolarAxisPointer",u);var t=u;k.exports=t},b56q:function(k,D,n){},b80T:function(k,D,n){var y=n("UNi/"),p=n("03A+"),x=n("Z0cm"),v=n("DSRE"),m=n("wJg7"),f=n("c6wG"),d=Object.prototype,u=d.hasOwnProperty;function o(i,t){var s=x(i),e=!s&&p(i),l=!s&&!e&&v(i),r=!s&&!e&&!l&&f(i),a=s||e||l||r,c=a?y(i.length,String):[],h=c.length;for(var g in i)(t||u.call(i,g))&&!(a&&(g=="length"||l&&(g=="offset"||g=="parent")||r&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||m(g,h)))&&c.push(g);return c}k.exports=o},b80e:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("gKaM")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="DoubleLeftOutlined";var i=v.forwardRef(o);D.default=i},b9oc:function(k,D,n){var y=n("bYtY"),p=y.each,x="\0_ec_hist_store";function v(o,i){var t=u(o);p(i,function(s,e){for(var l=t.length-1;l>=0;l--){var r=t[l];if(r[e])break}if(l<0){var a=o.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(a){var c=a.getPercentRange();t[0][e]={dataZoomId:e,start:c[0],end:c[1]}}}}),t.push(i)}function m(o){var i=u(o),t=i[i.length-1];i.length>1&&i.pop();var s={};return p(t,function(e,l){for(var r=i.length-1;r>=0;r--){var e=i[r][l];if(e){s[l]=e;break}}}),s}function f(o){o[x]=null}function d(o){return u(o).length}function u(o){var i=o[x];return i||(i=o[x]=[{}]),i}D.push=v,D.pop=m,D.clear=f,D.count=d},bBKM:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),v=n("bYtY"),m=n("+rIm"),f=n("IwbS"),d=["axisLine","axisTickLabel","axisName"],u=x.extendComponentView({type:"radar",render:function(o,i,t){var s=this.group;s.removeAll(),this._buildAxes(o),this._buildSplitLineAndArea(o)},_buildAxes:function(o){var i=o.coordinateSystem,t=i.getIndicatorAxes(),s=v.map(t,function(e){var l=new m(e.model,{position:[i.cx,i.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});v.each(s,function(e){v.each(d,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(o){var i=o.coordinateSystem,t=i.getIndicatorAxes();if(!t.length)return;var s=o.get("shape"),e=o.getModel("splitLine"),l=o.getModel("splitArea"),r=e.getModel("lineStyle"),a=l.getModel("areaStyle"),c=e.get("show"),h=l.get("show"),g=r.get("color"),A=a.get("color");g=v.isArray(g)?g:[g],A=v.isArray(A)?A:[A];var b=[],S=[];function E(j,K,z){var V=z%K.length;return j[V]=j[V]||[],V}if(s==="circle")for(var C=t[0].getTicksCoords(),_=i.cx,T=i.cy,w=0;w<C.length;w++){if(c){var O=E(b,g,w);b[O].push(new f.Circle({shape:{cx:_,cy:T,r:C[w].coord}}))}if(h&&w<C.length-1){var O=E(S,A,w);S[O].push(new f.Ring({shape:{cx:_,cy:T,r0:C[w].coord,r:C[w+1].coord}}))}}else for(var I,R=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 i.coordToPoint(V.coord,K)})}),M=[],w=0;w<=I;w++){for(var B=[],P=0;P<t.length;P++)B.push(R[P][w]);if(B[0]&&B.push(B[0].slice()),c){var O=E(b,g,w);b[O].push(new f.Polyline({shape:{points:B}}))}if(h&&M){var O=E(S,A,w-1);S[O].push(new f.Polygon({shape:{points:B.concat(M)}}))}M=B.slice().reverse()}var X=r.getLineStyle(),F=a.getAreaStyle();v.each(S,function(j,K){this.group.add(f.mergePath(j,{style:v.defaults({stroke:"none",fill:A[K%A.length]},F),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]},X),silent:!0}))},this)}});k.exports=u},bBL8:function(k,D,n){var y=n("ProS");n("LPzL"),n("rfSb"),n("JVwQ");var p=n("UnoB"),x=n("cbJ4"),v=n("0/Rx");y.registerLayout(p),y.registerVisual(x),y.registerProcessor(v("themeRiver"))},bE4E:function(k,D,n){},bE4q:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),v=n.n(x),m=n("RIqP"),f=n.n(m),d=n("q1tI"),u=n("TSYQ"),o=n.n(u),i=n("Zm9Q"),t=n("HQEm"),s=n.n(t),e=n("XBQK"),l=n("H84U"),r=function(M,B){var P={};for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&B.indexOf(X)<0&&(P[X]=M[X]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,X=Object.getOwnPropertySymbols(M);F<X.length;F++)B.indexOf(X[F])<0&&Object.prototype.propertyIsEnumerable.call(M,X[F])&&(P[X[F]]=M[X[F]]);return P},a=function(B){var P=B.prefixCls,X=B.separator,F=X===void 0?"/":X,j=B.children,K=B.overlay,z=B.dropdownProps,V=r(B,["prefixCls","separator","children","overlay","dropdownProps"]),Q=d.useContext(l.b),G=Q.getPrefixCls,te=G("breadcrumb",P),q=function(we){return K?d.createElement(e.a,p()({overlay:K,placement:"bottomCenter"},z),d.createElement("span",{className:"".concat(te,"-overlay-link")},we,d.createElement(s.a,null))):we},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=q(le),j?d.createElement("span",null,le,F&&F!==""&&d.createElement("span",{className:"".concat(te,"-separator")},F)):null};a.__ANT_BREADCRUMB_ITEM=!0;var c=a,h=function(B){var P=B.children,X=d.useContext(l.b),F=X.getPrefixCls,j=F("breadcrumb");return d.createElement("span",{className:"".concat(j,"-separator")},P||"/")};h.__ANT_BREADCRUMB_SEPARATOR=!0;var g=h,A=n("BvKs"),b=n("uaoM"),S=n("0n0R"),E=function(M,B){var P={};for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&B.indexOf(X)<0&&(P[X]=M[X]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,X=Object.getOwnPropertySymbols(M);F<X.length;F++)B.indexOf(X[F])<0&&Object.prototype.propertyIsEnumerable.call(M,X[F])&&(P[X[F]]=M[X[F]]);return P};function C(M,B){if(!M.breadcrumbName)return null;var P=Object.keys(B).join("|"),X=M.breadcrumbName.replace(new RegExp(":(".concat(P,")"),"g"),function(F,j){return B[j]||F});return X}function _(M,B,P,X){var F=P.indexOf(M)===P.length-1,j=C(M,B);return F?d.createElement("span",null,j):d.createElement("a",{href:"#/".concat(X.join("/"))},j)}var T=function(B,P){return B=(B||"").replace(/^\//,""),Object.keys(P).forEach(function(X){B=B.replace(":".concat(X),P[X])}),B},w=function(B){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",X=arguments.length>2?arguments[2]:void 0,F=f()(B),j=T(P,X);return j&&F.push(j),F},O=function(B){var P=B.prefixCls,X=B.separator,F=X===void 0?"/":X,j=B.style,K=B.className,z=B.routes,V=B.children,Q=B.itemRender,G=Q===void 0?_:Q,te=B.params,q=te===void 0?{}:te,le=E(B,["prefixCls","separator","style","className","routes","children","itemRender","params"]),re=d.useContext(l.b),we=re.getPrefixCls,Ie=re.direction,Me,Je=we("breadcrumb",P);if(z&&z.length>0){var Ve=[];Me=z.map(function(Fe){var ae=T(Fe.path,q);ae&&Ve.push(ae);var at;return Fe.children&&Fe.children.length&&(at=d.createElement(A.a,null,Fe.children.map(function(he){return d.createElement(A.a.Item,{key:he.path||he.breadcrumbName},G(he,q,z,w(Ve,he.path,q)))}))),d.createElement(c,{overlay:at,separator:F,key:ae||Fe.breadcrumbName},G(Fe,q,z,Ve))})}else V&&(Me=Object(i.a)(V).map(function(Fe,ae){return Fe&&(Object(b.a)(Fe.type&&(Fe.type.__ANT_BREADCRUMB_ITEM===!0||Fe.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(S.a)(Fe,{separator:F,key:ae}))}));var ut=o()(K,Je,v()({},"".concat(Je,"-rtl"),Ie==="rtl"));return d.createElement("div",p()({className:ut,style:j},le),Me)};O.Item=c,O.Separator=g;var I=O,R=D.a=I},bKJz:function(k,D,n){},bLfw:function(k,D,n){var y=n("bYtY"),p=n("Qxkt"),x=n("iRjW"),v=n("Yl7c"),m=v.enableClassManagement,f=v.parseClassType,d=n("4NO4"),u=d.makeInner,o=n("+TT/"),i=n("3hzK"),t=u(),s=p.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(r,a,c,h){p.call(this,r,a,c,h),this.uid=x.getUID("ec_cpt_model")},init:function(r,a,c,h){this.mergeDefaultAndTheme(r,c)},mergeDefaultAndTheme:function(r,a){var c=this.layoutMode,h=c?o.getLayoutParams(r):{},g=a.getTheme();y.merge(r,g.get(this.mainType)),y.merge(r,this.getDefaultOption()),c&&o.mergeLayoutParam(r,h,c)},mergeOption:function(r,a){y.merge(this.option,r,!0);var c=this.layoutMode;c&&o.mergeLayoutParam(this.option,r,c)},optionUpdated:function(r,a){},getDefaultOption:function(){var r=t(this);if(!r.defaultOption){for(var a=[],c=this.constructor;c;){var h=c.prototype.defaultOption;h&&a.push(h),c=c.superClass}for(var g={},A=a.length-1;A>=0;A--)g=y.merge(g,a[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(s,{registerWhenExtend:!0}),x.enableSubTypeDefaulter(s),x.enableTopologicalTravel(s,e);function e(r){var a=[];return y.each(s.getClassesByMainType(r),function(c){a=a.concat(c.prototype.dependencies||[])}),a=y.map(a,function(c){return f(c).main}),r!=="dataset"&&y.indexOf(a,"dataset")<=0&&a.unshift("dataset"),a}y.mixin(s,i);var l=s;k.exports=l},bMXI:function(k,D,n){var y=n("bYtY"),p=n("QBsz"),x=n("Fofx"),v=n("mFDi"),m=n("DN4a"),f=p.applyTransform;function d(){m.call(this)}y.mixin(d,m);function u(t){this.name=t,this.zoomLimit,m.call(this),this._roamTransformable=new d,this._rawTransformable=new d,this._center,this._zoom}u.prototype={constructor:u,type:"view",dimensions:["x","y"],setBoundingRect:function(t,s,e,l){return this._rect=new v(t,s,e,l),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,s,e,l){this.transformTo(t,s,e,l),this._viewRect=new v(t,s,e,l)},transformTo:function(t,s,e,l){var r=this.getBoundingRect(),a=this._rawTransformable;a.transform=r.calculateTransform(new v(t,s,e,l)),a.decomposeTransform(),this._updateTransform()},setCenter:function(t){if(!t)return;this._center=t,this._updateCenterAndZoom()},setZoom:function(t){t=t||1;var s=this.zoomLimit;s&&(s.max!=null&&(t=Math.min(s.max,t)),s.min!=null&&(t=Math.max(s.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),s=t.x+t.width/2,e=t.y+t.height/2;return[s,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(),s=this._roamTransformable,e=this.getDefaultCenter(),l=this.getCenter(),r=this.getZoom();l=p.applyTransform([],l,t),e=p.applyTransform([],e,t),s.origin=l,s.position=[e[0]-l[0],e[1]-l[1]],s.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,s=this._rawTransformable;s.parent=t,t.updateTransform(),s.updateTransform(),x.copy(this.transform||(this.transform=[]),s.transform||x.create()),this._rawTransform=s.getLocalTransform(),this.invTransform=this.invTransform||[],x.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,s=this._rawTransformable;return{roamTransform:t?y.slice(t):x.create(),rawScale:y.slice(s.scale),rawPosition:y.slice(s.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,s,e){var l=s?this._rawTransform:this.transform;return e=e||[],l?f(e,t,l):p.copy(e,t)},pointToData:function(t){var s=this.invTransform;return s?f([],t,s):[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(u,m);function o(t,s,e,l){var r=e.seriesModel,a=r?r.coordinateSystem:null;return a===this?a[t](l):null}var i=u;k.exports=i},bNin:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("FBjb"),v=n("Itpr"),m=v.radialCoordinate,f=n("ProS"),d=n("4mN7"),u=n("bMXI"),o=n("Ae+d"),i=n("SgGq"),t=n("xSat"),s=t.onIrrelevantElement,e=n("Tghj"),l=e.__DEV__,r=n("OELB"),a=r.parsePercent,c=p.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(_,T){var w=T.childPoints,O=w.length,I=T.parentPoint,R=w[0],M=w[O-1];if(O===1){_.moveTo(I[0],I[1]),_.lineTo(R[0],R[1]);return}var B=T.orient,P=B==="TB"||B==="BT"?0:1,X=1-P,F=a(T.forkPosition,1),j=[];j[P]=I[P],j[X]=I[X]+(M[X]-I[X])*F,_.moveTo(I[0],I[1]),_.lineTo(j[0],j[1]),_.moveTo(R[0],R[1]),j[P]=R[P],_.lineTo(j[0],j[1]),j[P]=M[P],_.lineTo(j[0],j[1]),_.lineTo(M[0],M[1]);for(var K=1;K<O-1;K++){var z=w[K];_.moveTo(z[0],z[1]),j[P]=z[P],_.lineTo(j[0],j[1])}}}),h=f.extendChartView({type:"tree",init:function(_,T){this._oldTree,this._mainGroup=new p.Group,this._controller=new i(T.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(_,T,w,O){var I=_.getData(),R=_.layoutInfo,M=this._mainGroup,B=_.get("layout");B==="radial"?M.attr("position",[R.x+R.width/2,R.y+R.height/2]):M.attr("position",[R.x,R.y]),this._updateViewCoordSys(_,R,B),this._updateController(_,T,w);var P=this._data,X={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(P).add(function(F){g(I,F)&&b(I,F,null,M,_,X)}).update(function(F,j){var K=P.getItemGraphicEl(j);if(!g(I,F)){K&&E(P,j,K,M,_,X);return}b(I,F,K,M,_,X)}).remove(function(F){var j=P.getItemGraphicEl(F);j&&E(P,F,j,M,_,X)}).execute(),this._nodeScaleRatio=_.get("nodeScaleRatio"),this._updateNodeAndLinkScale(_),X.expandAndCollapse===!0&&I.eachItemGraphicEl(function(F,j){F.off("click").on("click",function(){w.dispatchAction({type:"treeExpandAndCollapse",seriesId:_.id,dataIndex:j})})}),this._data=I},_updateViewCoordSys:function(_){var T=_.getData(),w=[];T.each(function(P){var X=T.getItemLayout(P);X&&!isNaN(X.x)&&!isNaN(X.y)&&w.push([+X.x,+X.y])});var O=[],I=[];d.fromPoints(w,O,I);var R=this._min,M=this._max;I[0]-O[0]===0&&(O[0]=R?R[0]:O[0]-1,I[0]=M?M[0]:I[0]+1),I[1]-O[1]===0&&(O[1]=R?R[1]:O[1]-1,I[1]=M?M[1]:I[1]+1);var B=_.coordinateSystem=new u;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,w){var O=this._controller,I=this._controllerHost,R=this.group;O.setPointerChecker(function(M,B,P){var X=R.getBoundingRect();return X.applyTransform(R.transform),X.contain(B,P)&&!s(M,w,_)}),O.enable(_.get("roam")),I.zoomLimit=_.get("scaleLimit"),I.zoom=_.coordinateSystem.getZoom(),O.off("pan").off("zoom").on("pan",function(M){o.updateViewOnPan(I,M.dx,M.dy),w.dispatchAction({seriesId:_.id,type:"treeRoam",dx:M.dx,dy:M.dy})},this).on("zoom",function(M){o.updateViewOnZoom(I,M.scale,M.originX,M.originY),w.dispatchAction({seriesId:_.id,type:"treeRoam",zoom:M.scale,originX:M.originX,originY:M.originY}),this._updateNodeAndLinkScale(_)},this)},_updateNodeAndLinkScale:function(_){var T=_.getData(),w=this._getNodeGlobalScale(_),O=[w,w];T.eachItemGraphicEl(function(I,R){I.attr("scale",O)})},_getNodeGlobalScale:function(_){var T=_.coordinateSystem;if(T.type!=="view")return 1;var w=this._nodeScaleRatio,O=T.scale,I=O&&O[0]||1,R=T.getZoom(),M=(R-1)*w+1;return M/I},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function g(_,T){var w=_.getItemLayout(T);return w&&!isNaN(w.x)&&!isNaN(w.y)&&_.getItemVisual(T,"symbol")!=="none"}function A(_,T,w){return w.itemModel=T,w.itemStyle=T.getModel("itemStyle").getItemStyle(),w.hoverItemStyle=T.getModel("emphasis.itemStyle").getItemStyle(),w.lineStyle=T.getModel("lineStyle").getLineStyle(),w.labelModel=T.getModel("label"),w.hoverLabelModel=T.getModel("emphasis.label"),_.isExpand===!1&&_.children.length!==0?w.symbolInnerColor=w.itemStyle.fill:w.symbolInnerColor="#fff",w}function b(_,T,w,O,I,R){var M=!w,B=_.tree.getNodeByDataIndex(T),P=B.getModel(),R=A(B,P,R),X=_.tree.root,F=B.parentNode===X?B:B.parentNode||B,j=_.getItemGraphicEl(F.dataIndex),K=F.getLayout(),z=j?{x:j.position[0],y:j.position[1],rawX:j.__radialOldRawX,rawY:j.__radialOldRawY}:K,V=B.getLayout();M?(w=new x(_,T,R),w.attr("position",[z.x,z.y])):w.updateData(_,T,R),w.__radialOldRawX=w.__radialRawX,w.__radialOldRawY=w.__radialRawY,w.__radialRawX=V.rawX,w.__radialRawY=V.rawY,O.add(w),_.setItemGraphicEl(T,w),p.updateProps(w,{position:[V.x,V.y]},I);var Q=w.getSymbolPath();if(R.layout==="radial"){var G=X.children[0],te=G.getLayout(),q=G.children.length,le,re;if(V.x===te.x&&B.isExpand===!0){var we={};we.x=(G.children[0].getLayout().x+G.children[q-1].getLayout().x)/2,we.y=(G.children[0].getLayout().y+G.children[q-1].getLayout().y)/2,le=Math.atan2(we.y-te.y,we.x-te.x),le<0&&(le=Math.PI*2+le),re=we.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 Ie=re?"left":"right",Me=R.labelModel.get("rotate"),Je=Me*(Math.PI/180);Q.setStyle({textPosition:R.labelModel.get("position")||Ie,textRotation:Me==null?-le:Je,textOrigin:"center",verticalAlign:"middle"})}S(I,B,X,w,z,K,V,O,R)}function S(_,T,w,O,I,R,M,B,P){var X=P.edgeShape,F=O.__edge;if(X==="curve")T.parentNode&&T.parentNode!==w&&(F||(F=O.__edge=new p.BezierCurve({shape:C(P,I,I),style:y.defaults({opacity:0,strokeNoScale:!0},P.lineStyle)})),p.updateProps(F,{shape:C(P,R,M),style:{opacity:1}},_));else if(X==="polyline"&&(P.layout==="orthogonal"&&(T!==w&&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])}F||(F=O.__edge=new c({shape:{parentPoint:[M.x,M.y],childPoints:[[M.x,M.y]],orient:P.orient,forkPosition:P.edgeForkPosition},style:y.defaults({opacity:0,strokeNoScale:!0},P.lineStyle)})),p.updateProps(F,{shape:{parentPoint:[M.x,M.y],childPoints:K},style:{opacity:1}},_)}B.add(F)}function E(_,T,w,O,I,R){for(var M=_.tree.getNodeByDataIndex(T),B=_.tree.root,P=M.getModel(),R=A(M,P,R),X=M.parentNode===B?M:M.parentNode||M,F=R.edgeShape,j;j=X.getLayout(),j==null;)X=X.parentNode===B?X:X.parentNode||X;p.updateProps(w,{position:[j.x+1,j.y+1]},I,function(){O.remove(w),_.setItemGraphicEl(T,null)}),w.fadeOut(null,{keepLabel:!0});var K=_.getItemGraphicEl(X.dataIndex),z=K.__edge,V=w.__edge||(X.isExpand===!1||X.children.length===1?z:void 0),F=R.edgeShape;V&&(F==="curve"?p.updateProps(V,{shape:C(R,j,j),style:{opacity:0}},I,function(){O.remove(V)}):F==="polyline"&&R.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,w){var O,I,R,M,B=_.orient,P,X,F,j;if(_.layout==="radial"){P=T.rawX,F=T.rawY,X=w.rawX,j=w.rawY;var K=m(P,F),z=m(P,F+(j-F)*_.curvature),V=m(X,j+(F-j)*_.curvature),Q=m(X,j);return{x1:K.x,y1:K.y,x2:Q.x,y2:Q.y,cpx1:z.x,cpy1:z.y,cpx2:V.x,cpy2:V.y}}else P=T.x,F=T.y,X=w.x,j=w.y,(B==="LR"||B==="RL")&&(O=P+(X-P)*_.curvature,I=F,R=X+(P-X)*_.curvature,M=j),(B==="TB"||B==="BT")&&(O=P,I=F+(j-F)*_.curvature,R=X,M=j+(F-j)*_.curvature);return{x1:P,y1:F,x2:X,y2:j,cpx1:O,cpy1:I,cpx2:R,cpy2:M}}k.exports=h},bQjk:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return function(p){var x=y,v=x.lib,m=v.CipherParams,f=x.enc,d=f.Hex,u=x.format,o=u.Hex={stringify:function(t){return t.ciphertext.toString(d)},parse:function(t){var s=d.parse(t);return m.create({ciphertext:s})}}}(),y.format.Hex})},bT9E:function(k,D,n){"use strict";n.d(D,"a",function(){return p});var y=n("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(k,D,n){"use strict";n.d(D,"a",function(){return u});var y=n("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,i){return o.indexOf(i)===0}function u(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t;i===!1?t={aria:!0,data:!0,attr:!0}:i===!0?t={aria:!0}:t=Object(y.a)({},i);var s={};return Object.keys(o).forEach(function(e){(t.aria&&(e==="role"||d(e,m))||t.data&&d(e,f)||t.attr&&v.includes(e))&&(s[e]=o[e])}),s}},bYtY:function(k,D){var n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},y={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},p=Object.prototype.toString,x=Array.prototype,v=x.forEach,m=x.filter,f=x.slice,d=x.map,u=x.reduce,o={};function i(Fe,ae){Fe==="createCanvas"&&(c=null),o[Fe]=ae}function t(Fe){if(Fe==null||typeof Fe!="object")return Fe;var ae=Fe,at=p.call(Fe);if(at==="[object Array]"){if(!Ie(Fe)){ae=[];for(var he=0,J=Fe.length;he<J;he++)ae[he]=t(Fe[he])}}else if(y[at]){if(!Ie(Fe)){var Y=Fe.constructor;if(Fe.constructor.from)ae=Y.from(Fe);else{ae=new Y(Fe.length);for(var he=0,J=Fe.length;he<J;he++)ae[he]=t(Fe[he])}}}else if(!n[at]&&!Ie(Fe)&&!j(Fe)){ae={};for(var $ in Fe)Fe.hasOwnProperty($)&&(ae[$]=t(Fe[$]))}return ae}function s(Fe,ae,at){if(!P(ae)||!P(Fe))return at?t(ae):Fe;for(var he in ae)if(ae.hasOwnProperty(he)){var J=Fe[he],Y=ae[he];P(Y)&&P(J)&&!R(Y)&&!R(J)&&!j(Y)&&!j(J)&&!X(Y)&&!X(J)&&!Ie(Y)&&!Ie(J)?s(J,Y,at):(at||!(he in Fe))&&(Fe[he]=t(ae[he],!0))}return Fe}function e(Fe,ae){for(var at=Fe[0],he=1,J=Fe.length;he<J;he++)at=s(at,Fe[he],ae);return at}function l(Fe,ae){for(var at in ae)ae.hasOwnProperty(at)&&(Fe[at]=ae[at]);return Fe}function r(Fe,ae,at){for(var he in ae)ae.hasOwnProperty(he)&&(at?ae[he]!=null:Fe[he]==null)&&(Fe[he]=ae[he]);return Fe}var a=function(){return o.createCanvas()};o.createCanvas=function(){return document.createElement("canvas")};var c;function h(){return c||(c=a().getContext("2d")),c}function g(Fe,ae){if(Fe){if(Fe.indexOf)return Fe.indexOf(ae);for(var at=0,he=Fe.length;at<he;at++)if(Fe[at]===ae)return at}return-1}function A(Fe,ae){var at=Fe.prototype;function he(){}he.prototype=ae.prototype,Fe.prototype=new he;for(var J in at)at.hasOwnProperty(J)&&(Fe.prototype[J]=at[J]);Fe.prototype.constructor=Fe,Fe.superClass=ae}function b(Fe,ae,at){Fe="prototype"in Fe?Fe.prototype:Fe,ae="prototype"in ae?ae.prototype:ae,r(Fe,ae,at)}function S(Fe){return Fe?typeof Fe=="string"?!1:typeof Fe.length=="number":void 0}function E(Fe,ae,at){if(!(Fe&&ae))return;if(Fe.forEach&&Fe.forEach===v)Fe.forEach(ae,at);else if(Fe.length===+Fe.length)for(var he=0,J=Fe.length;he<J;he++)ae.call(at,Fe[he],he,Fe);else for(var Y in Fe)Fe.hasOwnProperty(Y)&&ae.call(at,Fe[Y],Y,Fe)}function C(Fe,ae,at){if(!(Fe&&ae))return;if(Fe.map&&Fe.map===d)return Fe.map(ae,at);for(var he=[],J=0,Y=Fe.length;J<Y;J++)he.push(ae.call(at,Fe[J],J,Fe));return he}function _(Fe,ae,at,he){if(!(Fe&&ae))return;if(Fe.reduce&&Fe.reduce===u)return Fe.reduce(ae,at,he);for(var J=0,Y=Fe.length;J<Y;J++)at=ae.call(he,at,Fe[J],J,Fe);return at}function T(Fe,ae,at){if(!(Fe&&ae))return;if(Fe.filter&&Fe.filter===m)return Fe.filter(ae,at);for(var he=[],J=0,Y=Fe.length;J<Y;J++)ae.call(at,Fe[J],J,Fe)&&he.push(Fe[J]);return he}function w(Fe,ae,at){if(!(Fe&&ae))return;for(var he=0,J=Fe.length;he<J;he++)if(ae.call(at,Fe[he],he,Fe))return Fe[he]}function O(Fe,ae){var at=f.call(arguments,2);return function(){return Fe.apply(ae,at.concat(f.call(arguments)))}}function I(Fe){var ae=f.call(arguments,1);return function(){return Fe.apply(this,ae.concat(f.call(arguments)))}}function R(Fe){return p.call(Fe)==="[object Array]"}function M(Fe){return typeof Fe=="function"}function B(Fe){return p.call(Fe)==="[object String]"}function P(Fe){var ae=typeof Fe;return ae==="function"||!!Fe&&ae==="object"}function X(Fe){return!!n[p.call(Fe)]}function F(Fe){return!!y[p.call(Fe)]}function j(Fe){return typeof Fe=="object"&&typeof Fe.nodeType=="number"&&typeof Fe.ownerDocument=="object"}function K(Fe){return Fe!==Fe}function z(Fe){for(var ae=0,at=arguments.length;ae<at;ae++)if(arguments[ae]!=null)return arguments[ae]}function V(Fe,ae){return Fe!=null?Fe:ae}function Q(Fe,ae,at){return Fe!=null?Fe:ae!=null?ae:at}function G(){return Function.call.apply(f,arguments)}function te(Fe){if(typeof Fe=="number")return[Fe,Fe,Fe,Fe];var ae=Fe.length;return ae===2?[Fe[0],Fe[1],Fe[0],Fe[1]]:ae===3?[Fe[0],Fe[1],Fe[2],Fe[1]]:Fe}function q(Fe,ae){if(!Fe)throw new Error(ae)}function le(Fe){return Fe==null?null:typeof Fe.trim=="function"?Fe.trim():Fe.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var re="__ec_primitive__";function we(Fe){Fe[re]=!0}function Ie(Fe){return Fe[re]}function Me(Fe){var ae=R(Fe);this.data={};var at=this;Fe instanceof Me?Fe.each(he):Fe&&E(Fe,he);function he(J,Y){ae?at.set(J,Y):at.set(Y,J)}}Me.prototype={constructor:Me,get:function(ae){return this.data.hasOwnProperty(ae)?this.data[ae]:null},set:function(ae,at){return this.data[ae]=at},each:function(ae,at){at!==void 0&&(ae=O(ae,at));for(var he in this.data)this.data.hasOwnProperty(he)&&ae(this.data[he],he)},removeKey:function(ae){delete this.data[ae]}};function Je(Fe){return new Me(Fe)}function Ve(Fe,ae){for(var at=new Fe.constructor(Fe.length+ae.length),he=0;he<Fe.length;he++)at[he]=Fe[he];var J=Fe.length;for(he=0;he<ae.length;he++)at[he+J]=ae[he];return at}function ut(){}D.$override=i,D.clone=t,D.merge=s,D.mergeAll=e,D.extend=l,D.defaults=r,D.createCanvas=a,D.getContext=h,D.indexOf=g,D.inherits=A,D.mixin=b,D.isArrayLike=S,D.each=E,D.map=C,D.reduce=_,D.filter=T,D.find=w,D.bind=O,D.curry=I,D.isArray=R,D.isFunction=M,D.isString=B,D.isObject=P,D.isBuiltInObject=X,D.isTypedArray=F,D.isDom=j,D.eqNaN=K,D.retrieve=z,D.retrieve2=V,D.retrieve3=Q,D.slice=G,D.normalizeCssArray=te,D.assert=q,D.trim=le,D.setAsPrimitive=we,D.isPrimitive=Ie,D.createHashMap=Je,D.concatArray=Ve,D.noop=ut},bZqE:function(k,D){function n(p,x,v){for(var m=[p],f=[],d;d=m.pop();)if(f.push(d),d.isExpand){var u=d.children;if(u.length)for(var o=0;o<u.length;o++)m.push(u[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=n,D.eachBefore=y},bbsP:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("CWI+"),v=n.n(x)},bogI:function(k,D,n){"use strict";n.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(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};D.default=y},bx4M:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),v=n.n(x),m=n("q1tI"),f=n("TSYQ"),d=n.n(f),u=n("BGR+"),o=n("H84U"),i=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T},t=function(_){return m.createElement(o.a,null,function(T){var w=T.getPrefixCls,O=_.prefixCls,I=_.className,R=_.hoverable,M=R===void 0?!0:R,B=i(_,["prefixCls","className","hoverable"]),P=w("card",O),X=d()("".concat(P,"-grid"),I,p()({},"".concat(P,"-grid-hoverable"),M));return m.createElement("div",v()({},B,{className:X}))})},s=t,e=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T},l=function(_){return m.createElement(o.a,null,function(T){var w=T.getPrefixCls,O=_.prefixCls,I=_.className,R=_.avatar,M=_.title,B=_.description,P=e(_,["prefixCls","className","avatar","title","description"]),X=w("card",O),F=d()("".concat(X,"-meta"),I),j=R?m.createElement("div",{className:"".concat(X,"-meta-avatar")},R):null,K=M?m.createElement("div",{className:"".concat(X,"-meta-title")},M):null,z=B?m.createElement("div",{className:"".concat(X,"-meta-description")},B):null,V=K||z?m.createElement("div",{className:"".concat(X,"-meta-detail")},K,z):null;return m.createElement("div",v()({},P,{className:F}),j,V)})},r=l,a=n("ZTPi"),c=n("BMrR"),h=n("kPKH"),g=n("3Nzz"),A=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T};function b(C){var _=C.map(function(T,w){return m.createElement("li",{style:{width:"".concat(100/C.length,"%")},key:"action-".concat(w)},m.createElement("span",null,T))});return _}var S=function(_){var T,w,O=m.useContext(o.b),I=O.getPrefixCls,R=O.direction,M=m.useContext(g.b),B=function(hr){_.onTabChange&&_.onTabChange(hr)},P=function(){var hr;return m.Children.forEach(_.children,function(Jt){Jt&&Jt.type&&Jt.type===s&&(hr=!0)}),hr},X=_.prefixCls,F=_.className,j=_.extra,K=_.headStyle,z=K===void 0?{}:K,V=_.bodyStyle,Q=V===void 0?{}:V,G=_.title,te=_.loading,q=_.bordered,le=q===void 0?!0:q,re=_.size,we=_.type,Ie=_.cover,Me=_.actions,Je=_.tabList,Ve=_.children,ut=_.activeTabKey,Fe=_.defaultActiveTabKey,ae=_.tabBarExtraContent,at=_.hoverable,he=_.tabProps,J=he===void 0?{}:he,Y=A(_,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),$=I("card",X),de=Q.padding===0||Q.padding==="0px"?{padding:24}:void 0,be=m.createElement("div",{className:"".concat($,"-loading-block")}),Ce=m.createElement("div",{className:"".concat($,"-loading-content"),style:de},m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:22},be)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:8},be),m.createElement(h.a,{span:15},be)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:6},be),m.createElement(h.a,{span:18},be)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:13},be),m.createElement(h.a,{span:9},be)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:4},be),m.createElement(h.a,{span:3},be),m.createElement(h.a,{span:16},be))),Be=ut!==void 0,fe=v()(v()({},J),(T={},p()(T,Be?"activeKey":"defaultActiveKey",Be?ut:Fe),p()(T,"tabBarExtraContent",ae),T)),Se,ke=Je&&Je.length?m.createElement(a.a,v()({size:"large"},fe,{className:"".concat($,"-head-tabs"),onChange:B}),Je.map(function(Xt){return m.createElement(a.a.TabPane,{tab:Xt.tab,disabled:Xt.disabled,key:Xt.key})})):null;(G||j||ke)&&(Se=m.createElement("div",{className:"".concat($,"-head"),style:z},m.createElement("div",{className:"".concat($,"-head-wrapper")},G&&m.createElement("div",{className:"".concat($,"-head-title")},G),j&&m.createElement("div",{className:"".concat($,"-extra")},j)),ke));var rt=Ie?m.createElement("div",{className:"".concat($,"-cover")},Ie):null,xt=m.createElement("div",{className:"".concat($,"-body"),style:Q},te?Ce:Ve),ht=Me&&Me.length?m.createElement("ul",{className:"".concat($,"-actions")},b(Me)):null,He=Object(u.default)(Y,["onTabChange"]),ir=re||M,ct=d()($,F,(w={},p()(w,"".concat($,"-loading"),te),p()(w,"".concat($,"-bordered"),le),p()(w,"".concat($,"-hoverable"),at),p()(w,"".concat($,"-contain-grid"),P()),p()(w,"".concat($,"-contain-tabs"),Je&&Je.length),p()(w,"".concat($,"-").concat(ir),ir),p()(w,"".concat($,"-type-").concat(we),!!we),p()(w,"".concat($,"-rtl"),R==="rtl"),w));return m.createElement("div",v()({},He,{className:ct}),Se,rt,xt,ht)};S.Grid=s,S.Meta=r;var E=D.a=S},c2i1:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),v=n("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},u=d.prototype;u.type="graph",u.isDirected=function(){return this._directed},u.addNode=function(e,l){e=e==null?""+l:""+e;var r=this._nodesMap;if(r[f(e)])return;var a=new o(e,l);return a.hostGraph=this,this.nodes.push(a),r[f(e)]=a,a},u.getNodeByIndex=function(e){var l=this.data.getRawIndex(e);return this.nodes[l]},u.getNodeById=function(e){return this._nodesMap[f(e)]},u.addEdge=function(e,l,r){var a=this._nodesMap,c=this._edgesMap;if(typeof e=="number"&&(e=this.nodes[e]),typeof l=="number"&&(l=this.nodes[l]),o.isInstance(e)||(e=a[f(e)]),o.isInstance(l)||(l=a[f(l)]),!e||!l)return;var h=e.id+"-"+l.id;if(c[h])return;var g=new i(e,l,r);return g.hostGraph=this,this._directed&&(e.outEdges.push(g),l.inEdges.push(g)),e.edges.push(g),e!==l&&l.edges.push(g),this.edges.push(g),c[h]=g,g},u.getEdgeByIndex=function(e){var l=this.edgeData.getRawIndex(e);return this.edges[l]},u.getEdge=function(e,l){o.isInstance(e)&&(e=e.id),o.isInstance(l)&&(l=l.id);var r=this._edgesMap;return this._directed?r[e+"-"+l]:r[e+"-"+l]||r[l+"-"+e]},u.eachNode=function(e,l){for(var r=this.nodes,a=r.length,c=0;c<a;c++)r[c].dataIndex>=0&&e.call(l,r[c],c)},u.eachEdge=function(e,l){for(var r=this.edges,a=r.length,c=0;c<a;c++)r[c].dataIndex>=0&&r[c].node1.dataIndex>=0&&r[c].node2.dataIndex>=0&&e.call(l,r[c],c)},u.breadthFirstTraverse=function(e,l,r,a){if(o.isInstance(l)||(l=this._nodesMap[f(l)]),!l)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(a,l,null))return;for(var g=[l];g.length;)for(var A=g.shift(),b=A[c],h=0;h<b.length;h++){var S=b[h],E=S.node1===A?S.node2:S.node1;if(!E.__visited){if(e.call(a,E,A))return;g.push(E),E.__visited=!0}}},u.update=function(){for(var e=this.data,l=this.edgeData,r=this.nodes,a=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;l.filterSelf(function(g){var A=a[l.getRawIndex(g)];return A.node1.dataIndex>=0&&A.node2.dataIndex>=0});for(var c=0,h=a.length;c<h;c++)a[c].dataIndex=-1;for(var c=0,h=l.count();c<h;c++)a[l.getRawIndex(c)].dataIndex=c},u.clone=function(){for(var e=new d(this._directed),l=this.nodes,r=this.edges,a=0;a<l.length;a++)e.addNode(l[a].id,l[a].dataIndex);for(var a=0;a<r.length;a++){var c=r[a];e.addEdge(c.node1.id,c.node2.id,c.dataIndex)}return e};function o(e,l){this.id=e==null?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=l==null?-1:l}o.prototype={constructor:o,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(this.dataIndex<0)return;var l=this.hostGraph,r=l.data.getItemModel(this.dataIndex);return r.getModel(e)}};function i(e,l,r){this.node1=e,this.node2=l,this.dataIndex=r==null?-1:r}i.prototype.getModel=function(e){if(this.dataIndex<0)return;var l=this.hostGraph,r=l.edgeData.getItemModel(this.dataIndex);return r.getModel(e)};var t=function(e,l){return{getValue:function(r){var a=this[e][l];return a.get(a.getDimension(r||"value"),this.dataIndex)},setVisual:function(r,a){this.dataIndex>=0&&this[e][l].setItemVisual(this.dataIndex,r,a)},getVisual:function(r,a){return this[e][l].getItemVisual(this.dataIndex,r,a)},setLayout:function(r,a){this.dataIndex>=0&&this[e][l].setItemLayout(this.dataIndex,r,a)},getLayout:function(){return this[e][l].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][l].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][l].getRawIndex(this.dataIndex)}}};x.mixin(o,t("hostGraph","data")),x.mixin(i,t("hostGraph","edgeData")),d.Node=o,d.Edge=i,m(o),m(i);var s=d;k.exports=s},c3jg:function(k,D,n){"use strict";n.d(D,"e",function(){return d}),n.d(D,"c",function(){return o}),n.d(D,"d",function(){return i}),n.d(D,"a",function(){return s}),n.d(D,"f",function(){return e}),n.d(D,"b",function(){return l});var y=n("KQm4"),p=n("VTBJ"),x=n("Ff2n"),v=n("Zm9Q"),m=n("Kwbf"),f=n("wPhX");function d(r,a){return r!=null?r:a}function u(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=new Map;function c(h){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(h||[]).forEach(function(A){var b=A.key,S=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)(!a.has(E)||b===null||b===void 0,"Same 'key' exist in the Tree: ".concat(E)),a.set(E,!0),c(S,"".concat(g).concat(E," > "))})}c(r)}function o(r){function a(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,S=b.children,E=Object(x.a)(b,["children"]),C=Object(p.a)({key:A},E),_=a(S);return _.length&&(C.children=_),C}).filter(function(g){return g})}return a(r)}function i(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],c=new Set(a===!0?[]:a),h=[];function g(A){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return A.map(function(S,E){var C=Object(f.h)(b?b.pos:"0",E),_=d(S.key,C),T=Object(p.a)(Object(p.a)({},S),{},{parent:b,pos:C,children:null,data:S,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),a===!0||c.has(_)?T.children=g(S.children||[],T):T.children=[],T})}return g(r),h}function t(r,a,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,S){return d(b.key,S)};function g(A,b,S){var E=A?A.children:r,C=A?Object(f.h)(S.pos,b):"0";if(A){var _=h(A,C),T={node:A,index:b,pos:C,key:_,parentPos:S.node?S.pos:null,level:S.level+1};a(T)}E&&E.forEach(function(w,O){g(w,O,{node:A,pos:C,level:S?S.level+1:-1})})}g(null)}function s(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=a.initWrapper,h=a.processEntity,g=a.onProcessFinished,A=arguments.length>2?arguments[2]:void 0,b={},S={},E={posEntities:b,keyEntities:S};return c&&(E=c(E)||E),t(r,function(C){var _=C.node,T=C.index,w=C.pos,O=C.key,I=C.parentPos,R=C.level,M={node:_,index:T,key:O,pos:w,level:R},B=d(O,w);b[w]=M,S[B]=M,M.parent=b[I],M.parent&&(M.parent.children=M.parent.children||[],M.parent.children.push(M)),h&&h(M,E)},A),g&&g(E),E}function e(r,a){var c=a.expandedKeys,h=a.selectedKeys,g=a.loadedKeys,A=a.loadingKeys,b=a.checkedKeys,S=a.halfCheckedKeys,E=a.dragOverNodeKey,C=a.dropPosition,_=a.keyEntities,T=_[r],w={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:S.indexOf(r)!==-1,pos:String(T?T.pos:""),dragOver:E===r&&C===0,dragOverGapTop:E===r&&C===-1,dragOverGapBottom:E===r&&C===1};return w}function l(r){var a=r.data,c=r.expanded,h=r.selected,g=r.checked,A=r.loaded,b=r.loading,S=r.halfChecked,E=r.dragOver,C=r.dragOverGapTop,_=r.dragOverGapBottom,T=r.pos,w=r.active,O=Object(p.a)(Object(p.a)({},a),{},{expanded:c,selected:h,checked:g,loaded:A,loading:b,halfChecked:S,dragOver:E,dragOverGapTop:C,dragOverGapBottom:_,pos:T,active:w});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(k,D,n){},c5fP:function(k,D,n){"use strict";function y(ct){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(hr){return typeof hr}:y=function(hr){return hr&&typeof Symbol=="function"&&hr.constructor===Symbol&&hr!==Symbol.prototype?"symbol":typeof hr},y(ct)}Object.defineProperty(D,"__esModule",{value:!0}),D._tr_init=rt,D._tr_stored_block=xt,D._tr_flush_block=He,D._tr_tally=ir,D._tr_align=ht;var p=v(n("6BzB"));function x(){if(typeof WeakMap!="function")return null;var ct=new WeakMap;return x=function(){return ct},ct}function v(ct){if(ct&&ct.__esModule)return ct;if(ct===null||y(ct)!=="object"&&typeof ct!="function")return{default:ct};var Xt=x();if(Xt&&Xt.has(ct))return Xt.get(ct);var hr={},Jt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Pt in ct)if(Object.prototype.hasOwnProperty.call(ct,Pt)){var Wt=Jt?Object.getOwnPropertyDescriptor(ct,Pt):null;Wt&&(Wt.get||Wt.set)?Object.defineProperty(hr,Pt,Wt):hr[Pt]=ct[Pt]}return hr.default=ct,Xt&&Xt.set(ct,hr),hr}var m=4,f=0,d=1,u=2;function o(ct){for(var Xt=ct.length;--Xt>=0;)ct[Xt]=0}var i=0,t=1,s=2,e=3,l=258,r=29,a=256,c=a+1+r,h=30,g=19,A=2*c+1,b=15,S=16,E=7,C=256,_=16,T=17,w=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],I=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=512,P=new Array((c+2)*2);o(P);var X=new Array(h*2);o(X);var F=new Array(B);o(F);var j=new Array(l-e+1);o(j);var K=new Array(r);o(K);var z=new Array(h);o(z);function V(ct,Xt,hr,Jt,Pt){this.static_tree=ct,this.extra_bits=Xt,this.extra_base=hr,this.elems=Jt,this.max_length=Pt,this.has_stree=ct&&ct.length}var Q,G,te;function q(ct,Xt){this.dyn_tree=ct,this.max_code=0,this.stat_desc=Xt}function le(ct){return ct<256?F[ct]:F[256+(ct>>>7)]}function re(ct,Xt){ct.pending_buf[ct.pending++]=Xt&255,ct.pending_buf[ct.pending++]=Xt>>>8&255}function we(ct,Xt,hr){ct.bi_valid>S-hr?(ct.bi_buf|=Xt<<ct.bi_valid&65535,re(ct,ct.bi_buf),ct.bi_buf=Xt>>S-ct.bi_valid,ct.bi_valid+=hr-S):(ct.bi_buf|=Xt<<ct.bi_valid&65535,ct.bi_valid+=hr)}function Ie(ct,Xt,hr){we(ct,hr[Xt*2],hr[Xt*2+1])}function Me(ct,Xt){var hr=0;do hr|=ct&1,ct>>>=1,hr<<=1;while(--Xt>0);return hr>>>1}function Je(ct){ct.bi_valid===16?(re(ct,ct.bi_buf),ct.bi_buf=0,ct.bi_valid=0):ct.bi_valid>=8&&(ct.pending_buf[ct.pending++]=ct.bi_buf&255,ct.bi_buf>>=8,ct.bi_valid-=8)}function Ve(ct,Xt){var hr=Xt.dyn_tree,Jt=Xt.max_code,Pt=Xt.stat_desc.static_tree,Wt=Xt.stat_desc.has_stree,Ge=Xt.stat_desc.extra_bits,pe=Xt.stat_desc.extra_base,se=Xt.stat_desc.max_length,lt,qe,me,Ht,yr,At,rr=0;for(Ht=0;Ht<=b;Ht++)ct.bl_count[Ht]=0;for(hr[ct.heap[ct.heap_max]*2+1]=0,lt=ct.heap_max+1;lt<A;lt++){if(qe=ct.heap[lt],Ht=hr[hr[qe*2+1]*2+1]+1,Ht>se&&(Ht=se,rr++),hr[qe*2+1]=Ht,qe>Jt)continue;ct.bl_count[Ht]++,yr=0,qe>=pe&&(yr=Ge[qe-pe]),At=hr[qe*2],ct.opt_len+=At*(Ht+yr),Wt&&(ct.static_len+=At*(Pt[qe*2+1]+yr))}if(rr===0)return;do{for(Ht=se-1;ct.bl_count[Ht]===0;)Ht--;ct.bl_count[Ht]--,ct.bl_count[Ht+1]+=2,ct.bl_count[se]--,rr-=2}while(rr>0);for(Ht=se;Ht!==0;Ht--)for(qe=ct.bl_count[Ht];qe!==0;){if(me=ct.heap[--lt],me>Jt)continue;hr[me*2+1]!==Ht&&(ct.opt_len+=(Ht-hr[me*2+1])*hr[me*2],hr[me*2+1]=Ht),qe--}}function ut(ct,Xt,hr){var Jt=new Array(b+1),Pt=0,Wt,Ge;for(Wt=1;Wt<=b;Wt++)Jt[Wt]=Pt=Pt+hr[Wt-1]<<1;for(Ge=0;Ge<=Xt;Ge++){var pe=ct[Ge*2+1];if(pe===0)continue;ct[Ge*2]=Me(Jt[pe]++,pe)}}function Fe(){var ct,Xt,hr,Jt,Pt,Wt=new Array(b+1);for(hr=0,Jt=0;Jt<r-1;Jt++)for(K[Jt]=hr,ct=0;ct<1<<O[Jt];ct++)j[hr++]=Jt;for(j[hr-1]=Jt,Pt=0,Jt=0;Jt<16;Jt++)for(z[Jt]=Pt,ct=0;ct<1<<I[Jt];ct++)F[Pt++]=Jt;for(Pt>>=7;Jt<h;Jt++)for(z[Jt]=Pt<<7,ct=0;ct<1<<I[Jt]-7;ct++)F[256+Pt++]=Jt;for(Xt=0;Xt<=b;Xt++)Wt[Xt]=0;for(ct=0;ct<=143;)P[ct*2+1]=8,ct++,Wt[8]++;for(;ct<=255;)P[ct*2+1]=9,ct++,Wt[9]++;for(;ct<=279;)P[ct*2+1]=7,ct++,Wt[7]++;for(;ct<=287;)P[ct*2+1]=8,ct++,Wt[8]++;for(ut(P,c+1,Wt),ct=0;ct<h;ct++)X[ct*2+1]=5,X[ct*2]=Me(ct,5);Q=new V(P,O,a+1,c,b),G=new V(X,I,0,h,b),te=new V(new Array(0),R,0,g,E)}function ae(ct){var Xt;for(Xt=0;Xt<c;Xt++)ct.dyn_ltree[Xt*2]=0;for(Xt=0;Xt<h;Xt++)ct.dyn_dtree[Xt*2]=0;for(Xt=0;Xt<g;Xt++)ct.bl_tree[Xt*2]=0;ct.dyn_ltree[C*2]=1,ct.opt_len=ct.static_len=0,ct.last_lit=ct.matches=0}function at(ct){ct.bi_valid>8?re(ct,ct.bi_buf):ct.bi_valid>0&&(ct.pending_buf[ct.pending++]=ct.bi_buf),ct.bi_buf=0,ct.bi_valid=0}function he(ct,Xt,hr,Jt){at(ct),Jt&&(re(ct,hr),re(ct,~hr)),p.arraySet(ct.pending_buf,ct.window,Xt,hr,ct.pending),ct.pending+=hr}function J(ct,Xt,hr,Jt){var Pt=Xt*2,Wt=hr*2;return ct[Pt]<ct[Wt]||ct[Pt]===ct[Wt]&&Jt[Xt]<=Jt[hr]}function Y(ct,Xt,hr){for(var Jt=ct.heap[hr],Pt=hr<<1;Pt<=ct.heap_len&&!(Pt<ct.heap_len&&J(Xt,ct.heap[Pt+1],ct.heap[Pt],ct.depth)&&Pt++,J(Xt,Jt,ct.heap[Pt],ct.depth));)ct.heap[hr]=ct.heap[Pt],hr=Pt,Pt<<=1;ct.heap[hr]=Jt}function $(ct,Xt,hr){var Jt,Pt,Wt=0,Ge,pe;if(ct.last_lit!==0)do Jt=ct.pending_buf[ct.d_buf+Wt*2]<<8|ct.pending_buf[ct.d_buf+Wt*2+1],Pt=ct.pending_buf[ct.l_buf+Wt],Wt++,Jt===0?Ie(ct,Pt,Xt):(Ge=j[Pt],Ie(ct,Ge+a+1,Xt),pe=O[Ge],pe!==0&&(Pt-=K[Ge],we(ct,Pt,pe)),Jt--,Ge=le(Jt),Ie(ct,Ge,hr),pe=I[Ge],pe!==0&&(Jt-=z[Ge],we(ct,Jt,pe)));while(Wt<ct.last_lit);Ie(ct,C,Xt)}function de(ct,Xt){var hr=Xt.dyn_tree,Jt=Xt.stat_desc.static_tree,Pt=Xt.stat_desc.has_stree,Wt=Xt.stat_desc.elems,Ge,pe,se=-1,lt;for(ct.heap_len=0,ct.heap_max=A,Ge=0;Ge<Wt;Ge++)hr[Ge*2]!==0?(ct.heap[++ct.heap_len]=se=Ge,ct.depth[Ge]=0):hr[Ge*2+1]=0;for(;ct.heap_len<2;)lt=ct.heap[++ct.heap_len]=se<2?++se:0,hr[lt*2]=1,ct.depth[lt]=0,ct.opt_len--,Pt&&(ct.static_len-=Jt[lt*2+1]);for(Xt.max_code=se,Ge=ct.heap_len>>1;Ge>=1;Ge--)Y(ct,hr,Ge);lt=Wt;do Ge=ct.heap[1],ct.heap[1]=ct.heap[ct.heap_len--],Y(ct,hr,1),pe=ct.heap[1],ct.heap[--ct.heap_max]=Ge,ct.heap[--ct.heap_max]=pe,hr[lt*2]=hr[Ge*2]+hr[pe*2],ct.depth[lt]=(ct.depth[Ge]>=ct.depth[pe]?ct.depth[Ge]:ct.depth[pe])+1,hr[Ge*2+1]=hr[pe*2+1]=lt,ct.heap[1]=lt++,Y(ct,hr,1);while(ct.heap_len>=2);ct.heap[--ct.heap_max]=ct.heap[1],Ve(ct,Xt),ut(hr,se,ct.bl_count)}function be(ct,Xt,hr){var Jt,Pt=-1,Wt,Ge=Xt[0*2+1],pe=0,se=7,lt=4;for(Ge===0&&(se=138,lt=3),Xt[(hr+1)*2+1]=65535,Jt=0;Jt<=hr;Jt++){if(Wt=Ge,Ge=Xt[(Jt+1)*2+1],++pe<se&&Wt===Ge)continue;pe<lt?ct.bl_tree[Wt*2]+=pe:Wt!==0?(Wt!==Pt&&ct.bl_tree[Wt*2]++,ct.bl_tree[_*2]++):pe<=10?ct.bl_tree[T*2]++:ct.bl_tree[w*2]++,pe=0,Pt=Wt,Ge===0?(se=138,lt=3):Wt===Ge?(se=6,lt=3):(se=7,lt=4)}}function Ce(ct,Xt,hr){var Jt,Pt=-1,Wt,Ge=Xt[0*2+1],pe=0,se=7,lt=4;for(Ge===0&&(se=138,lt=3),Jt=0;Jt<=hr;Jt++){if(Wt=Ge,Ge=Xt[(Jt+1)*2+1],++pe<se&&Wt===Ge)continue;if(pe<lt)do Ie(ct,Wt,ct.bl_tree);while(--pe!==0);else Wt!==0?(Wt!==Pt&&(Ie(ct,Wt,ct.bl_tree),pe--),Ie(ct,_,ct.bl_tree),we(ct,pe-3,2)):pe<=10?(Ie(ct,T,ct.bl_tree),we(ct,pe-3,3)):(Ie(ct,w,ct.bl_tree),we(ct,pe-11,7));pe=0,Pt=Wt,Ge===0?(se=138,lt=3):Wt===Ge?(se=6,lt=3):(se=7,lt=4)}}function Be(ct){var Xt;for(be(ct,ct.dyn_ltree,ct.l_desc.max_code),be(ct,ct.dyn_dtree,ct.d_desc.max_code),de(ct,ct.bl_desc),Xt=g-1;Xt>=3&&!(ct.bl_tree[M[Xt]*2+1]!==0);Xt--);return ct.opt_len+=3*(Xt+1)+5+5+4,Xt}function fe(ct,Xt,hr,Jt){var Pt;for(we(ct,Xt-257,5),we(ct,hr-1,5),we(ct,Jt-4,4),Pt=0;Pt<Jt;Pt++)we(ct,ct.bl_tree[M[Pt]*2+1],3);Ce(ct,ct.dyn_ltree,Xt-1),Ce(ct,ct.dyn_dtree,hr-1)}function Se(ct){var Xt=4093624447,hr;for(hr=0;hr<=31;hr++,Xt>>>=1)if(Xt&1&&ct.dyn_ltree[hr*2]!==0)return f;if(ct.dyn_ltree[9*2]!==0||ct.dyn_ltree[10*2]!==0||ct.dyn_ltree[13*2]!==0)return d;for(hr=32;hr<a;hr++)if(ct.dyn_ltree[hr*2]!==0)return d;return f}var ke=!1;function rt(ct){ke||(Fe(),ke=!0),ct.l_desc=new q(ct.dyn_ltree,Q),ct.d_desc=new q(ct.dyn_dtree,G),ct.bl_desc=new q(ct.bl_tree,te),ct.bi_buf=0,ct.bi_valid=0,ae(ct)}function xt(ct,Xt,hr,Jt){we(ct,(i<<1)+(Jt?1:0),3),he(ct,Xt,hr,!0)}function ht(ct){we(ct,t<<1,3),Ie(ct,C,P),Je(ct)}function He(ct,Xt,hr,Jt){var Pt,Wt,Ge=0;ct.level>0?(ct.strm.data_type===u&&(ct.strm.data_type=Se(ct)),de(ct,ct.l_desc),de(ct,ct.d_desc),Ge=Be(ct),Pt=ct.opt_len+3+7>>>3,Wt=ct.static_len+3+7>>>3,Wt<=Pt&&(Pt=Wt)):Pt=Wt=hr+5,hr+4<=Pt&&Xt!==-1?xt(ct,Xt,hr,Jt):ct.strategy===m||Wt===Pt?(we(ct,(t<<1)+(Jt?1:0),3),$(ct,P,X)):(we(ct,(s<<1)+(Jt?1:0),3),fe(ct,ct.l_desc.max_code+1,ct.d_desc.max_code+1,Ge+1),$(ct,ct.dyn_ltree,ct.dyn_dtree)),ae(ct),Jt&&at(ct)}function ir(ct,Xt,hr){return ct.pending_buf[ct.d_buf+ct.last_lit*2]=Xt>>>8&255,ct.pending_buf[ct.d_buf+ct.last_lit*2+1]=Xt&255,ct.pending_buf[ct.l_buf+ct.last_lit]=hr&255,ct.last_lit++,Xt===0?ct.dyn_ltree[hr*2]++:(ct.matches++,Xt--,ct.dyn_ltree[(j[hr]+a+1)*2]++,ct.dyn_dtree[le(Xt)*2]++),ct.last_lit===ct.lit_bufsize-1}},c6wG:function(k,D,n){var y=n("dD9F"),p=n("sEf8"),x=n("mdPL"),v=x&&x.isTypedArray,m=v?p(v):y;k.exports=m},c8qY:function(k,D,n){var y=n("IwbS"),p=n("fls0");function x(s){this._ctor=s||p,this.group=new y.Group}var v=x.prototype;v.isPersistent=function(){return!0},v.updateData=function(s){var e=this,l=e.group,r=e._lineData;e._lineData=s,r||l.removeAll();var a=u(s);s.diff(r).add(function(c){m(e,s,c,a)}).update(function(c,h){f(e,r,s,h,c,a)}).remove(function(c){l.remove(r.getItemGraphicEl(c))}).execute()};function m(s,e,l,r){var a=e.getItemLayout(l);if(!i(a))return;var c=new s._ctor(e,l,r);e.setItemGraphicEl(l,c),s.group.add(c)}function f(s,e,l,r,a,c){var h=e.getItemGraphicEl(r);if(!i(l.getItemLayout(a))){s.group.remove(h);return}h?h.updateData(l,a,c):h=new s._ctor(l,a,c),l.setItemGraphicEl(a,h),s.group.add(h)}v.updateLayout=function(){var s=this._lineData;if(!s)return;s.eachItemGraphicEl(function(e,l){e.updateLayout(s,l)},this)},v.incrementalPrepareUpdate=function(s){this._seriesScope=u(s),this._lineData=null,this.group.removeAll()};function d(s){return s.animators&&s.animators.length>0}v.incrementalUpdate=function(s,e){function l(h){!h.isGroup&&!d(h)&&(h.incremental=h.useHoverLayer=!0)}for(var r=s.start;r<s.end;r++){var a=e.getItemLayout(r);if(i(a)){var c=new this._ctor(e,r,this._seriesScope);c.traverse(l),this.group.add(c),e.setItemGraphicEl(r,c)}}};function u(s){var e=s.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 s=this._incremental;s&&s.clearDisplaybles()};function o(s){return isNaN(s[0])||isNaN(s[1])}function i(s){return!o(s[0])&&!o(s[1])}var t=x;k.exports=t},cCMj:function(k,D,n){var y=n("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}};k.exports=p},cVA7:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("MT78"),p=m(y),x=n("t3Fx"),v=m(x);function m(i){return i&&i.__esModule?i:{default:i}}function f(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function d(i,t){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:i}function u(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t)}var o=function(i){u(t,i);function t(s){f(this,t);var e=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,s));return e.echartsLib=p.default,e}return t}(v.default);D.default=o},cWXX:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("oIFs"),v=n.n(x)},ca2m:function(k,D,n){var y=n("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;k.exports=v},cbJ4:function(k,D,n){var y=n("bYtY"),p=y.createHashMap;function x(v){v.eachSeriesByType("themeRiver",function(m){var f=m.getData(),d=m.getRawData(),u=m.get("color"),o=p();f.each(function(i){o.set(f.getRawIndex(i),i)}),d.each(function(i){var t=d.getName(i),s=u[(m.nameMap.get(t)-1)%u.length];d.setItemVisual(i,"color",s);var e=o.get(i);e!=null&&f.setItemVisual(e,"color",s)})})}k.exports=x},chpo:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=1,p=function(){return"".concat(y++)};D.default=p},cpOr:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("T4UG"),v=n("YXkt"),m=n("bYtY"),f=m.concatArray,d=m.mergeAll,u=m.map,o=n("7aKB"),i=o.encodeHTML,t=n("IDmD"),s=typeof Uint32Array=="undefined"?Array:Uint32Array,e=typeof Float64Array=="undefined"?Array:Float64Array;function l(c){var h=c.data;h&&h[0]&&h[0][0]&&h[0][0].coord&&(c.data=u(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||[],l(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||[],l(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 S=this._getCoordsFromItemModel(c),b=0;b<S.length;b++)h[b]=h[b]||[],h[b][0]=S[b][0],h[b][1]=S[b][1];return S.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 s(g),b=new e(g),S=0,E=0,C=0,_=0;_<g;){C++;var T=c[_++];A[E++]=S+h,A[E++]=T;for(var w=0;w<T;w++){var O=c[_++],I=c[_++];b[S++]=O,b[S++]=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,S,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"),S=g.get("toName"),E=[];return b!=null&&E.push(b),S!=null&&E.push(S),i(E.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var c=this.option.progressive;return c==null?this.option.large?1e4:this.get("progressive"):c},getProgressiveThreshold:function(){var c=this.option.progressiveThreshold;return c==null?this.option.large?2e4:this.get("progressiveThreshold"):c},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),a=r;k.exports=a},crZl:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS"),v=n("7aKB"),m=n("+TT/"),f=n("XxSj"),d=y.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(u,o){this.ecModel=u,this.api=o,this.visualMapModel},render:function(u,o,i,t){if(this.visualMapModel=u,u.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(u){var o=this.visualMapModel,i=v.normalizeCssArray(o.get("padding")||0),t=u.getBoundingRect();u.add(new x.Rect({z2:-1,silent:!0,shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[3]+i[1],height:t.height+i[0]+i[2]},style:{fill:o.get("backgroundColor"),stroke:o.get("borderColor"),lineWidth:o.get("borderWidth")}}))},getControllerVisual:function(u,o,i){i=i||{};var t=i.forceState,s=this.visualMapModel,e={};if(o==="symbol"&&(e.symbol=s.get("itemSymbol")),o==="color"){var l=s.get("contentColor");e.color=l}function r(g){return e[g]}function a(g,A){e[g]=A}var c=s.controllerVisuals[t||s.getValueState(u)],h=f.prepareVisualTypes(c);return p.each(h,function(g){var A=c[g];i.convertOpacityToAlpha&&g==="opacity"&&(g="colorAlpha",A=c.__alphaForOpacity),f.dependsOn(g,o)&&(A&&A.applyVisual(u,r,a))}),e[o]},positionGroup:function(u){var o=this.visualMapModel,i=this.api;m.positionElement(u,o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:p.noop});k.exports=d},crp1:function(k,D,n){"use strict";n.d(D,"b",function(){return pt}),n.d(D,"a",function(){return _n});var y={},p=function(vt,bt,fr,Qt,Mt){var qt=y[bt]||(y[bt]=URL.createObjectURL(new Blob([vt],{type:"text/javascript"}))),kt=new Worker(qt);return kt.onerror=function(er){return Mt(er.error,null)},kt.onmessage=function(er){return Mt(null,er.data)},kt.postMessage(fr,Qt),kt},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]),u=new x([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=function(vt,bt){for(var fr=new v(31),Qt=0;Qt<31;++Qt)fr[Qt]=bt+=1<<vt[Qt-1];for(var Mt=new m(fr[30]),Qt=1;Qt<30;++Qt)for(var qt=fr[Qt];qt<fr[Qt+1];++qt)Mt[qt]=qt-fr[Qt]<<5|Qt;return[fr,Mt]},i=o(f,2),t=i[0],s=i[1];t[28]=258,s[258]=28;for(var e=o(d,0),l=e[0],r=e[1],a=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,a[c]=((h&65280)>>>8|(h&255)<<8)>>>1}for(var g=function(vt,bt,fr){for(var Qt=vt.length,Mt=0,qt=new v(bt);Mt<Qt;++Mt)++qt[vt[Mt]-1];var kt=new v(bt);for(Mt=0;Mt<bt;++Mt)kt[Mt]=kt[Mt-1]+qt[Mt-1]<<1;var er;if(fr){er=new v(1<<bt);var Kr=15-bt;for(Mt=0;Mt<Qt;++Mt)if(vt[Mt])for(var Ir=Mt<<4|vt[Mt],Dr=bt-vt[Mt],dn=kt[vt[Mt]-1]++<<Dr,yn=dn|(1<<Dr)-1;dn<=yn;++dn)er[a[dn]>>>Kr]=Ir}else for(er=new v(Qt),Mt=0;Mt<Qt;++Mt)er[Mt]=a[kt[vt[Mt]-1]++]>>>15-vt[Mt];return er},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 S=g(A,9,0),E=g(A,9,1),C=g(b,5,0),_=g(b,5,1),T=function(vt){for(var bt=vt[0],fr=1;fr<vt.length;++fr)vt[fr]>bt&&(bt=vt[fr]);return bt},w=function(vt,bt,fr){var Qt=bt/8>>0;return(vt[Qt]|vt[Qt+1]<<8)>>>(bt&7)&fr},O=function(vt,bt){var fr=bt/8>>0;return(vt[fr]|vt[fr+1]<<8|vt[fr+2]<<16)>>>(bt&7)},I=function(vt){return(vt/8>>0)+(vt&7&&1)},R=function(vt,bt,fr){(bt==null||bt<0)&&(bt=0),(fr==null||fr>vt.length)&&(fr=vt.length);var Qt=new(vt instanceof v?v:vt instanceof m?m:x)(fr-bt);return Qt.set(vt.subarray(bt,fr)),Qt},M=function(vt,bt,fr){var Qt=vt.length,Mt=!bt||fr,qt=!fr||fr.i;fr||(fr={}),bt||(bt=new x(Qt*3));var kt=function(Yn){var Gt=bt.length;if(Yn>Gt){var Ot=new x(Math.max(Gt*2,Yn));Ot.set(bt),bt=Ot}},er=fr.f||0,Kr=fr.p||0,Ir=fr.b||0,Dr=fr.l,dn=fr.d,yn=fr.m,ti=fr.n,ei=Qt*8;do{if(!Dr){fr.f=er=w(vt,Kr,1);var fi=w(vt,Kr+1,3);if(Kr+=3,fi)if(fi==1)Dr=E,dn=_,yn=9,ti=5;else if(fi==2){var nt=w(vt,Kr,31)+257,Le=w(vt,Kr+10,15)+4,je=nt+w(vt,Kr+5,31)+1;Kr+=14;for(var Xe=new x(je),tt=new x(19),Ze=0;Ze<Le;++Ze)tt[u[Ze]]=w(vt,Kr+Ze*3,7);Kr+=Le*3;var st=T(tt),Et=(1<<st)-1;if(!qt&&Kr+je*(st+7)>ei)break;for(var gt=g(tt,st,1),Ze=0;Ze<je;){var pr=gt[w(vt,Kr,Et)];Kr+=pr&15;var Ei=pr>>>4;if(Ei<16)Xe[Ze++]=Ei;else{var qr=0,Qr=0;for(Ei==16?(Qr=3+w(vt,Kr,3),Kr+=2,qr=Xe[Ze-1]):Ei==17?(Qr=3+w(vt,Kr,7),Kr+=3):Ei==18&&(Qr=11+w(vt,Kr,127),Kr+=7);Qr--;)Xe[Ze++]=qr}}var gn=Xe.subarray(0,nt),vr=Xe.subarray(nt);yn=T(gn),ti=T(vr),Dr=g(gn,yn,1),dn=g(vr,ti,1)}else throw"invalid block type";else{var Ei=I(Kr)+4,Di=vt[Ei-4]|vt[Ei-3]<<8,Hi=Ei+Di;if(Hi>Qt){if(qt)throw"unexpected EOF";break}Mt&&kt(Ir+Di),bt.set(vt.subarray(Ei,Hi),Ir),fr.b=Ir+=Di,fr.p=Kr=Hi*8;continue}if(Kr>ei)throw"unexpected EOF"}Mt&&kt(Ir+131072);for(var Vn=(1<<yn)-1,kr=(1<<ti)-1,Bn=yn+ti+18;qt||Kr+Bn<ei;){var qr=Dr[O(vt,Kr)&Vn],on=qr>>>4;if(Kr+=qr&15,Kr>ei)throw"unexpected EOF";if(!qr)throw"invalid length/literal";if(on<256)bt[Ir++]=on;else if(on==256){Dr=null;break}else{var jr=on-254;if(on>264){var Ze=on-257,ai=f[Ze];jr=w(vt,Kr,(1<<ai)-1)+t[Ze],Kr+=ai}var Oi=dn[O(vt,Kr)&kr],Gi=Oi>>>4;if(!Oi)throw"invalid distance";Kr+=Oi&15;var vr=l[Gi];if(Gi>3){var ai=d[Gi];vr+=O(vt,Kr)&(1<<ai)-1,Kr+=ai}if(Kr>ei)throw"unexpected EOF";Mt&&kt(Ir+131072);for(var rn=Ir+jr;Ir<rn;Ir+=4)bt[Ir]=bt[Ir-vr],bt[Ir+1]=bt[Ir+1-vr],bt[Ir+2]=bt[Ir+2-vr],bt[Ir+3]=bt[Ir+3-vr];Ir=rn}}fr.l=Dr,fr.p=Kr,fr.b=Ir,Dr&&(er=1,fr.m=yn,fr.d=dn,fr.n=ti)}while(!er);return Ir==bt.length?bt:R(bt,0,Ir)},B=function(vt,bt,fr){fr<<=bt&7;var Qt=bt/8>>0;vt[Qt]|=fr,vt[Qt+1]|=fr>>>8},P=function(vt,bt,fr){fr<<=bt&7;var Qt=bt/8>>0;vt[Qt]|=fr,vt[Qt+1]|=fr>>>8,vt[Qt+2]|=fr>>>16},X=function(vt,bt){for(var fr=[],Qt=0;Qt<vt.length;++Qt)vt[Qt]&&fr.push({s:Qt,f:vt[Qt]});var Mt=fr.length,qt=fr.slice();if(!Mt)return[new x(0),0];if(Mt==1){var kt=new x(fr[0].s+1);return kt[fr[0].s]=1,[kt,1]}fr.sort(function(je,Xe){return je.f-Xe.f}),fr.push({s:-1,f:25001});var er=fr[0],Kr=fr[1],Ir=0,Dr=1,dn=2;for(fr[0]={s:-1,f:er.f+Kr.f,l:er,r:Kr};Dr!=Mt-1;)er=fr[fr[Ir].f<fr[dn].f?Ir++:dn++],Kr=fr[Ir!=Dr&&fr[Ir].f<fr[dn].f?Ir++:dn++],fr[Dr++]={s:-1,f:er.f+Kr.f,l:er,r:Kr};for(var yn=qt[0].s,Qt=1;Qt<Mt;++Qt)qt[Qt].s>yn&&(yn=qt[Qt].s);var ti=new v(yn+1),ei=F(fr[Dr-1],ti,0);if(ei>bt){var Qt=0,fi=0,Ei=ei-bt,Di=1<<Ei;for(qt.sort(function(Xe,tt){return ti[tt.s]-ti[Xe.s]||Xe.f-tt.f});Qt<Mt;++Qt){var Hi=qt[Qt].s;if(ti[Hi]>bt)fi+=Di-(1<<ei-ti[Hi]),ti[Hi]=bt;else break}for(fi>>>=Ei;fi>0;){var nt=qt[Qt].s;ti[nt]<bt?fi-=1<<bt-ti[nt]++-1:++Qt}for(;Qt>=0&&fi;--Qt){var Le=qt[Qt].s;ti[Le]==bt&&(--ti[Le],++fi)}ei=bt}return[new x(ti),ei]},F=function Ft(vt,bt,fr){return vt.s==-1?Math.max(Ft(vt.l,bt,fr+1),Ft(vt.r,bt,fr+1)):bt[vt.s]=fr},j=function(vt){for(var bt=vt.length;bt&&!vt[--bt];);for(var fr=new v(++bt),Qt=0,Mt=vt[0],qt=1,kt=function(Ir){fr[Qt++]=Ir},er=1;er<=bt;++er)if(vt[er]==Mt&&er!=bt)++qt;else{if(!Mt&&qt>2){for(;qt>138;qt-=138)kt(32754);qt>2&&(kt(qt>10?qt-11<<5|28690:qt-3<<5|12305),qt=0)}else if(qt>3){for(kt(Mt),--qt;qt>6;qt-=6)kt(8304);qt>2&&(kt(qt-3<<5|8208),qt=0)}for(;qt--;)kt(Mt);qt=1,Mt=vt[er]}return[fr.subarray(0,Qt),bt]},K=function(vt,bt){for(var fr=0,Qt=0;Qt<bt.length;++Qt)fr+=vt[Qt]*bt[Qt];return fr},z=function(vt,bt,fr){var Qt=fr.length,Mt=I(bt+2);vt[Mt]=Qt&255,vt[Mt+1]=Qt>>>8,vt[Mt+2]=vt[Mt]^255,vt[Mt+3]=vt[Mt+1]^255;for(var qt=0;qt<Qt;++qt)vt[Mt+qt+4]=fr[qt];return(Mt+4+Qt)*8},V=function(vt,bt,fr,Qt,Mt,qt,kt,er,Kr,Ir,Dr){B(bt,Dr++,fr),++Mt[256];for(var dn=X(Mt,15),yn=dn[0],ti=dn[1],ei=X(qt,15),fi=ei[0],Ei=ei[1],Di=j(yn),Hi=Di[0],nt=Di[1],Le=j(fi),je=Le[0],Xe=Le[1],tt=new v(19),Ze=0;Ze<Hi.length;++Ze)tt[Hi[Ze]&31]++;for(var Ze=0;Ze<je.length;++Ze)tt[je[Ze]&31]++;for(var st=X(tt,7),Et=st[0],gt=st[1],pr=19;pr>4&&!Et[u[pr-1]];--pr);var qr=Ir+5<<3,Qr=K(Mt,A)+K(qt,b)+kt,gn=K(Mt,yn)+K(qt,fi)+kt+14+3*pr+K(tt,Et)+(2*tt[16]+3*tt[17]+7*tt[18]);if(qr<=Qr&&qr<=gn)return z(bt,Dr,vt.subarray(Kr,Kr+Ir));var vr,Vn,kr,Bn;if(B(bt,Dr,1+(gn<Qr)),Dr+=2,gn<Qr){vr=g(yn,ti,0),Vn=yn,kr=g(fi,Ei,0),Bn=fi;var on=g(Et,gt,0);B(bt,Dr,nt-257),B(bt,Dr+5,Xe-1),B(bt,Dr+10,pr-4),Dr+=14;for(var Ze=0;Ze<pr;++Ze)B(bt,Dr+3*Ze,Et[u[Ze]]);Dr+=3*pr;for(var jr=[Hi,je],ai=0;ai<2;++ai)for(var Oi=jr[ai],Ze=0;Ze<Oi.length;++Ze){var Gi=Oi[Ze]&31;B(bt,Dr,on[Gi]),Dr+=Et[Gi],Gi>15&&(B(bt,Dr,Oi[Ze]>>>5&127),Dr+=Oi[Ze]>>>12)}}else vr=S,Vn=A,kr=C,Bn=b;for(var Ze=0;Ze<er;++Ze)if(Qt[Ze]>255){var Gi=Qt[Ze]>>>18&31;P(bt,Dr,vr[Gi+257]),Dr+=Vn[Gi+257],Gi>7&&(B(bt,Dr,Qt[Ze]>>>23&31),Dr+=f[Gi]);var rn=Qt[Ze]&31;P(bt,Dr,kr[rn]),Dr+=Bn[rn],rn>3&&(P(bt,Dr,Qt[Ze]>>>5&8191),Dr+=d[rn])}else P(bt,Dr,vr[Qt[Ze]]),Dr+=Vn[Qt[Ze]];return P(bt,Dr,vr[256]),Dr+Vn[256]},Q=new m([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),G=new x(0),te=function(vt,bt,fr,Qt,Mt,qt){var kt=vt.length,er=new x(Qt+kt+5*(1+Math.floor(kt/7e3))+Mt),Kr=er.subarray(Qt,er.length-Mt),Ir=0;if(!bt||kt<8)for(var Dr=0;Dr<=kt;Dr+=65535){var dn=Dr+65535;dn<kt?Ir=z(Kr,Ir,vt.subarray(Dr,dn)):(Kr[Dr]=qt,Ir=z(Kr,Ir,vt.subarray(Dr,kt)))}else{for(var yn=Q[bt-1],ti=yn>>>13,ei=yn&8191,fi=(1<<fr)-1,Ei=new v(32768),Di=new v(fi+1),Hi=Math.ceil(fr/3),nt=2*Hi,Le=function(Ar){return(vt[Ar]^vt[Ar+1]<<Hi^vt[Ar+2]<<nt)&fi},je=new m(25e3),Xe=new v(288),tt=new v(32),Ze=0,st=0,Dr=0,Et=0,gt=0,pr=0;Dr<kt;++Dr){var qr=Le(Dr),Qr=Dr&32767,gn=Di[qr];if(Ei[Qr]=gn,Di[qr]=Qr,gt<=Dr){var vr=kt-Dr;if((Ze>7e3||Et>24576)&&vr>423){Ir=V(vt,Kr,0,je,Xe,tt,st,Et,pr,Dr-pr,Ir),Et=Ze=st=0,pr=Dr;for(var Vn=0;Vn<286;++Vn)Xe[Vn]=0;for(var Vn=0;Vn<30;++Vn)tt[Vn]=0}var kr=2,Bn=0,on=ei,jr=Qr-gn&32767;if(vr>2&&qr==Le(Dr-jr))for(var ai=Math.min(ti,vr)-1,Oi=Math.min(32767,Dr),Gi=Math.min(258,vr);jr<=Oi&&--on&&Qr!=gn;){if(vt[Dr+kr]==vt[Dr+kr-jr]){for(var rn=0;rn<Gi&&vt[Dr+rn]==vt[Dr+rn-jr];++rn);if(rn>kr){if(kr=rn,Bn=jr,rn>ai)break;for(var Cn=Math.min(jr,rn-2),Yn=0,Vn=0;Vn<Cn;++Vn){var Gt=Dr-jr+Vn+32768&32767,Ot=Ei[Gt],Rt=Gt-Ot+32768&32767;Rt>Yn&&(Yn=Rt,gn=Gt)}}}Qr=gn,gn=Ei[Qr],jr+=Qr-gn+32768&32767}if(Bn){je[Et++]=268435456|s[kr]<<18|r[Bn];var jt=s[kr]&31,zt=r[Bn]&31;st+=f[jt]+d[zt],++Xe[257+jt],++tt[zt],gt=Dr+kr,++Ze}else je[Et++]=vt[Dr],++Xe[vt[Dr]]}}Ir=V(vt,Kr,qt,je,Xe,tt,st,Et,pr,Dr-pr,Ir),qt||(Ir=z(Kr,Ir,G))}return R(er,0,Qt+I(Ir)+Mt)},q=function(){for(var Ft=new m(256),vt=0;vt<256;++vt){for(var bt=vt,fr=9;--fr;)bt=(bt&1&&3988292384)^bt>>>1;Ft[vt]=bt}return Ft}(),le=function(){var vt=4294967295;return{p:function(fr){for(var Qt=vt,Mt=0;Mt<fr.length;++Mt)Qt=q[Qt&255^fr[Mt]]^Qt>>>8;vt=Qt},d:function(){return vt^4294967295}}},re=function(){var vt=1,bt=0;return{p:function(Qt){for(var Mt=vt,qt=bt,kt=Qt.length,er=0;er!=kt;){for(var Kr=Math.min(er+5552,kt);er<Kr;++er)Mt+=Qt[er],qt+=Mt;Mt%=65521,qt%=65521}vt=Mt,bt=qt},d:function(){return(vt>>>8<<16|(bt&255)<<8|bt>>>8)+((vt&255)<<23)*2}}},we=function(vt,bt,fr,Qt,Mt){return te(vt,bt.level==null?6:bt.level,bt.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(vt.length)))*1.5):12+bt.mem,fr,Qt,!Mt)},Ie=function(vt,bt){var fr={};for(var Qt in vt)fr[Qt]=vt[Qt];for(var Qt in bt)fr[Qt]=bt[Qt];return fr},Me=function(vt,bt,fr){for(var Qt=vt(),Mt=vt.toString(),qt=Mt.slice(Mt.indexOf("[")+1,Mt.lastIndexOf("]")).replace(/ /g,"").split(","),kt=0;kt<Qt.length;++kt){var er=Qt[kt],Kr=qt[kt];if(typeof er=="function"){bt+=";"+Kr+"=";var Ir=er.toString();if(er.prototype)if(Ir.indexOf("[native code]")!=-1){var Dr=Ir.indexOf(" ",8)+1;bt+=Ir.slice(Dr,Ir.indexOf("(",Dr))}else{bt+=Ir;for(var dn in er.prototype)bt+=";"+Kr+".prototype."+dn+"="+er.prototype[dn].toString()}else bt+=Ir}else fr[Kr]=er}return[bt,fr]},Je=[],Ve=function(vt){var bt=[];for(var fr in vt)(vt[fr]instanceof x||vt[fr]instanceof v||vt[fr]instanceof m)&&bt.push((vt[fr]=new vt[fr].constructor(vt[fr])).buffer);return bt},ut=function(vt,bt,fr,Qt){var Mt;if(!Je[fr]){for(var qt="",kt={},er=vt.length-1,Kr=0;Kr<er;++Kr)Mt=Me(vt[Kr],qt,kt),qt=Mt[0],kt=Mt[1];Je[fr]=Me(vt[er],qt,kt)}var Ir=Ie({},Je[fr][1]);return p(Je[fr][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+bt.toString()+"}",fr,Ir,Ve(Ir),Qt)},Fe=function(){return[x,v,m,f,d,u,t,l,E,_,a,g,T,w,O,I,R,M,lt,$,de]},ae=function(){return[x,v,m,f,d,u,s,r,S,A,C,b,a,Q,G,g,B,P,X,F,j,K,z,V,I,R,te,we,Wt,$]},at=function(){return[rt,He,ke,le,q]},he=function(){return[xt,ht]},J=function(){return[ir,ke,re]},Y=function(){return[ct]},$=function(vt){return postMessage(vt,[vt.buffer])},de=function(vt){return vt&&vt.size&&new x(vt.size)},be=function(vt,bt,fr,Qt,Mt,qt){var kt=ut(fr,Qt,Mt,function(er,Kr){kt.terminate(),qt(er,Kr)});return bt.consume||(vt=new x(vt)),kt.postMessage([vt,bt],[vt.buffer]),function(){kt.terminate()}},Ce=function(vt){return vt.ondata=function(bt,fr){return postMessage([bt,fr],[bt.buffer])},function(bt){return vt.push(bt.data[0],bt.data[1])}},Be=function(vt,bt,fr,Qt,Mt){var qt,kt=ut(vt,Qt,Mt,function(er,Kr){er?(kt.terminate(),bt.ondata.call(bt,er)):(Kr[1]&&kt.terminate(),bt.ondata.call(bt,er,Kr[0],Kr[1]))});kt.postMessage(fr),bt.push=function(er,Kr){if(qt)throw"stream finished";if(!bt.ondata)throw"no stream handler";kt.postMessage([er,qt=Kr],[er.buffer])},bt.terminate=function(){kt.terminate()}},fe=function(vt,bt){return vt[bt]|vt[bt+1]<<8},Se=function(vt,bt){return(vt[bt]|vt[bt+1]<<8|vt[bt+2]<<16)+(vt[bt+3]<<23)*2},ke=function(vt,bt,fr){for(;fr;++bt)vt[bt]=fr,fr>>>=8},rt=function(vt,bt){var fr=bt.filename;if(vt[0]=31,vt[1]=139,vt[2]=8,vt[8]=bt.level<2?4:bt.level==9?2:0,vt[9]=3,bt.mtime!=0&&ke(vt,4,Math.floor(new Date(bt.mtime||Date.now())/1e3)),fr){vt[3]=8;for(var Qt=0;Qt<=fr.length;++Qt)vt[Qt+10]=fr.charCodeAt(Qt)}},xt=function(vt){if(vt[0]!=31||vt[1]!=139||vt[2]!=8)throw"invalid gzip data";var bt=vt[3],fr=10;bt&4&&(fr+=vt[10]|(vt[11]<<8)+2);for(var Qt=(bt>>3&1)+(bt>>4&1);Qt>0;Qt-=!vt[fr++]);return fr+(bt&2)},ht=function(vt){var bt=vt.length;return(vt[bt-4]|vt[bt-3]<<8|vt[bt-2]<<16)+2*(vt[bt-1]<<23)},He=function(vt){return 10+(vt.filename&&vt.filename.length+1||0)},ir=function(vt,bt){var fr=bt.level,Qt=fr==0?0:fr<6?1:fr==9?3:2;vt[0]=120,vt[1]=Qt<<6|(Qt?32-2*Qt:1)},ct=function(vt){if((vt[0]&15)!=8||vt[0]>>>4>7||(vt[0]<<8|vt[1])%31)throw"invalid zlib data";if(vt[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Xt(Ft,vt){return!vt&&typeof Ft=="function"&&(vt=Ft,Ft={}),this.ondata=vt,Ft}var hr=function(){function Ft(vt,bt){!bt&&typeof vt=="function"&&(bt=vt,vt={}),this.ondata=bt,this.o=vt||{}}return Ft.prototype.p=function(vt,bt){this.ondata(we(vt,this.o,0,0,!bt),bt)},Ft.prototype.push=function(vt,bt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=bt,this.p(vt,bt||!1)},Ft}(),Jt=function(){function Ft(vt,bt){Be([ae,function(){return[Ce,hr]}],this,Xt.call(this,vt,bt),function(fr){var Qt=new hr(fr.data);onmessage=Ce(Qt)},6)}return Ft}();function Pt(Ft,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(Ft,vt,[ae],function(fr){return $(Wt(fr.data[0],fr.data[1]))},0,bt)}function Wt(Ft,vt){return vt===void 0&&(vt={}),we(Ft,vt,0,0)}var Ge=function(){function Ft(vt){this.s={},this.p=new x(0),this.ondata=vt}return Ft.prototype.e=function(vt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var bt=this.p.length,fr=new x(bt+vt.length);fr.set(this.p),fr.set(vt,bt),this.p=fr},Ft.prototype.c=function(vt){this.d=this.s.i=vt||!1;var bt=this.s.b,fr=M(this.p,this.o,this.s);this.ondata(R(fr,bt,this.s.b),this.d),this.o=R(fr,this.s.b-32768),this.s.b=this.o.length,this.p=R(this.p,this.s.p/8>>0),this.s.p&=7},Ft.prototype.push=function(vt,bt){this.e(vt),this.c(bt)},Ft}(),pe=function(){function Ft(vt){this.ondata=vt,Be([Fe,function(){return[Ce,Ge]}],this,0,function(){var bt=new Ge;onmessage=Ce(bt)},7)}return Ft}();function se(Ft,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(Ft,vt,[Fe],function(fr){return $(lt(fr.data[0],de(fr.data[1])))},1,bt)}function lt(Ft,vt){return M(Ft,vt)}var qe=function(){function Ft(vt,bt){this.c=le(),this.l=0,this.v=1,hr.call(this,vt,bt)}return Ft.prototype.push=function(vt,bt){hr.prototype.push.call(this,vt,bt)},Ft.prototype.p=function(vt,bt){this.c.p(vt),this.l+=vt.length;var fr=we(vt,this.o,this.v&&He(this.o),bt&&8,!bt);this.v&&(rt(fr,this.o),this.v=0),bt&&(ke(fr,fr.length-8,this.c.d()),ke(fr,fr.length-4,this.l)),this.ondata(fr,bt)},Ft}(),me=function(){function Ft(vt,bt){Be([ae,at,function(){return[Ce,hr,qe]}],this,Xt.call(this,vt,bt),function(fr){var Qt=new qe(fr.data);onmessage=Ce(Qt)},8)}return Ft}();function Ht(Ft,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(Ft,vt,[ae,at,function(){return[yr]}],function(fr){return $(yr(fr.data[0],fr.data[1]))},2,bt)}function yr(Ft,vt){vt===void 0&&(vt={});var bt=le(),fr=Ft.length;bt.p(Ft);var Qt=we(Ft,vt,He(vt),8),Mt=Qt.length;return rt(Qt,vt),ke(Qt,Mt-8,bt.d()),ke(Qt,Mt-4,fr),Qt}var At=function(){function Ft(vt){this.v=1,Ge.call(this,vt)}return Ft.prototype.push=function(vt,bt){if(Ge.prototype.e.call(this,vt),this.v){var fr=xt(this.p);if(fr>=this.p.length&&!bt)return;this.p=this.p.subarray(fr),this.v=0}if(bt){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Ge.prototype.c.call(this,bt)},Ft}(),rr=function(){function Ft(vt){this.ondata=vt,Be([Fe,he,function(){return[Ce,Ge,At]}],this,0,function(){var bt=new At;onmessage=Ce(bt)},9)}return Ft}();function ur(Ft,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(Ft,vt,[Fe,he,function(){return[vn]}],function(fr){return $(vn(fr.data[0]))},3,bt)}function vn(Ft,vt){return M(Ft.subarray(xt(Ft),-8),vt||new x(ht(Ft)))}var Bt=function(){function Ft(vt,bt){this.c=re(),this.v=1,hr.call(this,vt,bt)}return Ft.prototype.push=function(vt,bt){hr.prototype.push.call(this,vt,bt)},Ft.prototype.p=function(vt,bt){this.c.p(vt);var fr=we(vt,this.o,this.v&&2,bt&&4,!bt);this.v&&(ir(fr,this.o),this.v=0),bt&&ke(fr,fr.length-4,this.c.d()),this.ondata(fr,bt)},Ft}(),sr=function(){function Ft(vt,bt){Be([ae,J,function(){return[Ce,hr,Bt]}],this,Xt.call(this,vt,bt),function(fr){var Qt=new Bt(fr.data);onmessage=Ce(Qt)},10)}return Ft}();function Yt(Ft,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(Ft,vt,[ae,J,function(){return[pt]}],function(fr){return $(pt(fr.data[0],fr.data[1]))},4,bt)}function pt(Ft,vt){vt===void 0&&(vt={});var bt=re();bt.p(Ft);var fr=we(Ft,vt,2,4);return ir(fr,vt),ke(fr,fr.length-4,bt.d()),fr}var it=function(){function Ft(vt){this.v=1,Ge.call(this,vt)}return Ft.prototype.push=function(vt,bt){if(Ge.prototype.e.call(this,vt),this.v){if(this.p.length<2&&!bt)return;this.p=this.p.subarray(2),this.v=0}if(bt){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Ge.prototype.c.call(this,bt)},Ft}(),Fr=function(){function Ft(vt){this.ondata=vt,Be([Fe,Y,function(){return[Ce,Ge,it]}],this,0,function(){var bt=new it;onmessage=Ce(bt)},11)}return Ft}();function cn(Ft,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(Ft,vt,[Fe,Y,function(){return[_n]}],function(fr){return $(_n(fr.data[0],de(fr.data[1])))},5,bt)}function _n(Ft,vt){return M((ct(Ft),Ft.subarray(2,-4)),vt)}var Kn=function(){function Ft(vt){this.G=At,this.I=Ge,this.Z=it,this.ondata=vt}return Ft.prototype.push=function(vt,bt){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(vt,bt);else{if(this.p&&this.p.length){var fr=new x(this.p.length+vt.length);fr.set(this.p),fr.set(vt,this.p.length)}else this.p=vt;if(this.p.length>2){var Qt=this,Mt=function(){Qt.ondata.apply(Qt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(Mt):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(Mt):new this.Z(Mt),this.s.push(this.p,bt),this.p=null}}},Ft}(),gi=function(){function Ft(vt){this.G=rr,this.I=pe,this.Z=Fr,this.ondata=vt}return Ft.prototype.push=function(vt,bt){Kn.prototype.push.call(this,vt,bt)},Ft}();function Mn(Ft,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return Ft[0]==31&&Ft[1]==139&&Ft[2]==8?ur(Ft,vt,bt):(Ft[0]&15)!=8||Ft[0]>>4>7||(Ft[0]<<8|Ft[1])%31?se(Ft,vt,bt):cn(Ft,vt,bt)}function Un(Ft,vt){return Ft[0]==31&&Ft[1]==139&&Ft[2]==8?vn(Ft,vt):(Ft[0]&15)!=8||Ft[0]>>4>7||(Ft[0]<<8|Ft[1])%31?lt(Ft,vt):_n(Ft,vt)}var $t=function Ft(vt,bt,fr,Qt){for(var Mt in vt){var qt=vt[Mt],kt=bt+Mt;qt instanceof x?fr[kt]=[qt,Qt]:Array.isArray(qt)?fr[kt]=[qt[0],Ie(Qt,qt[1])]:Ft(qt,kt+"/",fr,Qt)}};function Ct(Ft,vt){var bt=Ft.length;if(!vt&&typeof TextEncoder!="undefined")return new TextEncoder().encode(Ft);for(var fr=new x(Ft.length+(Ft.length>>>1)),Qt=0,Mt=function(Ir){fr[Qt++]=Ir},qt=0;qt<bt;++qt){if(Qt+5>fr.length){var kt=new x(Qt+8+(bt-qt<<1));kt.set(fr),fr=kt}var er=Ft.charCodeAt(qt);er<128||vt?Mt(er):er<2048?(Mt(192|er>>>6),Mt(128|er&63)):er>55295&&er<57344?(er=65536+(er&1023<<10)|Ft.charCodeAt(++qt)&1023,Mt(240|er>>>18),Mt(128|er>>>12&63),Mt(128|er>>>6&63),Mt(128|er&63)):(Mt(224|er>>>12),Mt(128|er>>>6&63),Mt(128|er&63))}return R(fr,0,Qt)}function Re(Ft,vt){var bt="";if(!vt&&typeof TextDecoder!="undefined")return new TextDecoder().decode(Ft);for(var fr=0;fr<Ft.length;){var Qt=Ft[fr++];Qt<128||vt?bt+=String.fromCharCode(Qt):Qt<224?bt+=String.fromCharCode((Qt&31)<<6|Ft[fr++]&63):Qt<240?bt+=String.fromCharCode((Qt&15)<<12|(Ft[fr++]&63)<<6|Ft[fr++]&63):(Qt=((Qt&15)<<18|(Ft[fr++]&63)<<12|(Ft[fr++]&63)<<6|Ft[fr++]&63)-65536,bt+=String.fromCharCode(55296|Qt>>10,56320|Qt&1023))}return bt}var De=function(vt,bt){return bt+30+fe(vt,bt+26)+fe(vt,bt+28)},Pe=function(vt,bt,fr){var Qt=fe(vt,bt+28),Mt=Re(vt.subarray(bt+46,bt+46+Qt),!(fe(vt,bt+8)&2048)),qt=bt+46+Qt,kt=fr?et(vt,qt):[Se(vt,bt+20),Se(vt,bt+24),Se(vt,bt+42)],er=kt[0],Kr=kt[1],Ir=kt[2];return[fe(vt,bt+10),er,Kr,Mt,qt+fe(vt,bt+30)+fe(vt,bt+32),Ir]},et=function(vt,bt){for(;fe(vt,bt)!=1;bt+=4+fe(vt,bt+2));return[Se(vt,bt+12),Se(vt,bt+4),Se(vt,bt+20)]},yt=function(vt,bt,fr,Qt,Mt,qt,kt,er,Kr,Ir){var Dr=qt.length,dn=Qt.length;ke(vt,bt,Kr!=null?33639248:67324752),bt+=4,Kr!=null&&(vt[bt]=20,bt+=2),vt[bt]=20,bt+=2,vt[bt++]=Ir==8&&(er.level==1?6:er.level<6?4:er.level==9?2:0),vt[bt++]=kt&&8,vt[bt]=Ir,bt+=2;var yn=new Date(er.mtime||Date.now()),ti=yn.getFullYear()-1980;if(ti<0||ti>119)throw"date not in range 1980-2099";ke(vt,bt,(ti<<24)*2|yn.getMonth()+1<<21|yn.getDate()<<16|yn.getHours()<<11|yn.getMinutes()<<5|yn.getSeconds()>>>1),bt+=4,ke(vt,bt,fr),ke(vt,bt+4,dn),ke(vt,bt+8,Mt),ke(vt,bt+12,Dr),bt+=16,Kr!=null&&(ke(vt,bt+=10,Kr),bt+=4),vt.set(qt,bt),bt+=Dr,Kr==null&&vt.set(Qt,bt)},St=function(vt,bt,fr,Qt,Mt){ke(vt,bt,101010256),ke(vt,bt+8,fr),ke(vt,bt+10,fr),ke(vt,bt+12,Qt),ke(vt,bt+16,Mt)};function Vt(Ft,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";var fr={};$t(Ft,"",fr,vt);var Qt=Object.keys(fr),Mt=Qt.length,qt=0,kt=0,er=Mt,Kr=new Array(Mt),Ir=[],Dr=function(){for(var fi=0;fi<Ir.length;++fi)Ir[fi]()},dn=function(){var fi=new x(kt+22),Ei=qt,Di=kt-qt;kt=0;for(var Hi=0;Hi<er;++Hi){var nt=Kr[Hi];try{yt(fi,kt,nt.c,nt.d,nt.m,nt.n,nt.u,nt.p,null,nt.t),yt(fi,qt,nt.c,nt.d,nt.m,nt.n,nt.u,nt.p,kt,nt.t),qt+=46+nt.n.length,kt+=30+nt.n.length+nt.d.length}catch(Le){return bt(Le,null)}}St(fi,qt,Kr.length,Di,Ei),bt(null,fi)};Mt||dn();for(var yn=function(fi){var Ei=Qt[fi],Di=fr[Ei],Hi=Di[0],nt=Di[1],Le=le(),je=Hi.length;Le.p(Hi);var Xe=Ct(Ei),tt=Xe.length,Ze=nt.level==0?0:8,st=function(gt,pr){if(gt)Dr(),bt(gt,null);else{var qr=pr.length;Kr[fi]={t:Ze,d:pr,m:je,c:Le.d(),u:Ei.length!=qr,n:Xe,p:nt},qt+=30+tt+qr,kt+=76+2*tt+qr,--Mt||dn()}};if(Xe.length>65535&&st("filename too long",null),!Ze)st(null,Hi);else if(je<16e4)try{st(null,Wt(Hi,nt))}catch(Et){st(Et,null)}else Ir.push(Pt(Hi,nt,st))},ti=0;ti<er;++ti)yn(ti);return Dr}function Rr(Ft,vt){vt===void 0&&(vt={});var bt={},fr=[];$t(Ft,"",bt,vt);var Qt=0,Mt=0;for(var qt in bt){var kt=bt[qt],er=kt[0],Kr=kt[1],Ir=Kr.level==0?0:8,Dr=Ct(qt),dn=Dr.length;if(Dr.length>65535)throw"filename too long";var yn=Ir?Wt(er,Kr):er,ti=yn.length,ei=le();ei.p(er),fr.push({t:Ir,d:yn,m:er.length,c:ei.d(),u:qt.length!=dn,n:Dr,o:Qt,p:Kr}),Qt+=30+dn+ti,Mt+=76+2*dn+ti}for(var fi=new x(Mt+22),Ei=Qt,Di=Mt-Qt,Hi=0;Hi<fr.length;++Hi){var nt=fr[Hi];yt(fi,nt.o,nt.c,nt.d,nt.m,nt.n,nt.u,nt.p,null,nt.t),yt(fi,Qt,nt.c,nt.d,nt.m,nt.n,nt.u,nt.p,nt.o,nt.t),Qt+=46+nt.n.length}return St(fi,Qt,fr.length,Di,Ei),fi}function Vr(Ft,vt){if(typeof vt!="function")throw"no callback";for(var bt=[],fr=function(){for(var yn=0;yn<bt.length;++yn)bt[yn]()},Qt={},Mt=Ft.length-22;Se(Ft,Mt)!=101010256;--Mt)if(!Mt||Ft.length-Mt>65558){vt("invalid zip file",null);return}var qt=fe(Ft,Mt+8);qt||vt(null,{});var kt=qt,er=Se(Ft,Mt+16),Kr=er==4294967295;if(Kr){if(Mt=Se(Ft,Mt-12),Se(Ft,Mt)!=101075792)throw"invalid zip file";kt=qt=Se(Ft,Mt+32),er=Se(Ft,Mt+48)}for(var Ir=function(yn){var ti=Pe(Ft,er,Kr),ei=ti[0],fi=ti[1],Ei=ti[2],Di=ti[3],Hi=ti[4],nt=ti[5],Le=De(Ft,nt);er=Hi;var je=function(Ze,st){Ze?(fr(),vt(Ze,null)):(Qt[Di]=st,--qt||vt(null,Qt))};if(!ei)je(null,R(Ft,Le,Le+fi));else if(ei==8){var Xe=Ft.subarray(Le,Le+fi);if(fi<32e4)try{je(null,lt(Xe,new x(Ei)))}catch(tt){je(tt,null)}else bt.push(se(Xe,{size:Ei},je))}else je("unknown compression type "+ei,null)},Dr=0;Dr<kt;++Dr)Ir(Dr);return fr}function hn(Ft){for(var vt={},bt=Ft.length-22;Se(Ft,bt)!=101010256;--bt)if(!bt||Ft.length-bt>65558)throw"invalid zip file";var fr=fe(Ft,bt+8);if(!fr)return{};var Qt=Se(Ft,bt+16),Mt=Qt==4294967295;if(Mt){if(bt=Se(Ft,bt-12),Se(Ft,bt)!=101075792)throw"invalid zip file";fr=Se(Ft,bt+32),Qt=Se(Ft,bt+48)}for(var qt=0;qt<fr;++qt){var kt=Pe(Ft,Qt,Mt),er=kt[0],Kr=kt[1],Ir=kt[2],Dr=kt[3],dn=kt[4],yn=kt[5],ti=De(Ft,yn);if(Qt=dn,!er)vt[Dr]=R(Ft,ti,ti+Kr);else if(er==8)vt[Dr]=lt(Ft.subarray(ti,ti+Kr),new x(Ir));else throw"unknown compression type "+er}return vt}},cv67:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(p){var x=y,v=x.lib,m=v.WordArray,f=v.Hasher,d=x.algo,u=[];(function(){for(var l=0;l<64;l++)u[l]=p.abs(p.sin(l+1))*4294967296|0})();var o=d.MD5=f.extend({_doReset:function(){this._hash=new m.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(r,a){for(var c=0;c<16;c++){var h=a+c,g=r[h];r[h]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var A=this._hash.words,b=r[a+0],S=r[a+1],E=r[a+2],C=r[a+3],_=r[a+4],T=r[a+5],w=r[a+6],O=r[a+7],I=r[a+8],R=r[a+9],M=r[a+10],B=r[a+11],P=r[a+12],X=r[a+13],F=r[a+14],j=r[a+15],K=A[0],z=A[1],V=A[2],Q=A[3];K=i(K,z,V,Q,b,7,u[0]),Q=i(Q,K,z,V,S,12,u[1]),V=i(V,Q,K,z,E,17,u[2]),z=i(z,V,Q,K,C,22,u[3]),K=i(K,z,V,Q,_,7,u[4]),Q=i(Q,K,z,V,T,12,u[5]),V=i(V,Q,K,z,w,17,u[6]),z=i(z,V,Q,K,O,22,u[7]),K=i(K,z,V,Q,I,7,u[8]),Q=i(Q,K,z,V,R,12,u[9]),V=i(V,Q,K,z,M,17,u[10]),z=i(z,V,Q,K,B,22,u[11]),K=i(K,z,V,Q,P,7,u[12]),Q=i(Q,K,z,V,X,12,u[13]),V=i(V,Q,K,z,F,17,u[14]),z=i(z,V,Q,K,j,22,u[15]),K=t(K,z,V,Q,S,5,u[16]),Q=t(Q,K,z,V,w,9,u[17]),V=t(V,Q,K,z,B,14,u[18]),z=t(z,V,Q,K,b,20,u[19]),K=t(K,z,V,Q,T,5,u[20]),Q=t(Q,K,z,V,M,9,u[21]),V=t(V,Q,K,z,j,14,u[22]),z=t(z,V,Q,K,_,20,u[23]),K=t(K,z,V,Q,R,5,u[24]),Q=t(Q,K,z,V,F,9,u[25]),V=t(V,Q,K,z,C,14,u[26]),z=t(z,V,Q,K,I,20,u[27]),K=t(K,z,V,Q,X,5,u[28]),Q=t(Q,K,z,V,E,9,u[29]),V=t(V,Q,K,z,O,14,u[30]),z=t(z,V,Q,K,P,20,u[31]),K=s(K,z,V,Q,T,4,u[32]),Q=s(Q,K,z,V,I,11,u[33]),V=s(V,Q,K,z,B,16,u[34]),z=s(z,V,Q,K,F,23,u[35]),K=s(K,z,V,Q,S,4,u[36]),Q=s(Q,K,z,V,_,11,u[37]),V=s(V,Q,K,z,O,16,u[38]),z=s(z,V,Q,K,M,23,u[39]),K=s(K,z,V,Q,X,4,u[40]),Q=s(Q,K,z,V,b,11,u[41]),V=s(V,Q,K,z,C,16,u[42]),z=s(z,V,Q,K,w,23,u[43]),K=s(K,z,V,Q,R,4,u[44]),Q=s(Q,K,z,V,P,11,u[45]),V=s(V,Q,K,z,j,16,u[46]),z=s(z,V,Q,K,E,23,u[47]),K=e(K,z,V,Q,b,6,u[48]),Q=e(Q,K,z,V,O,10,u[49]),V=e(V,Q,K,z,F,15,u[50]),z=e(z,V,Q,K,T,21,u[51]),K=e(K,z,V,Q,P,6,u[52]),Q=e(Q,K,z,V,C,10,u[53]),V=e(V,Q,K,z,M,15,u[54]),z=e(z,V,Q,K,S,21,u[55]),K=e(K,z,V,Q,I,6,u[56]),Q=e(Q,K,z,V,j,10,u[57]),V=e(V,Q,K,z,w,15,u[58]),z=e(z,V,Q,K,X,21,u[59]),K=e(K,z,V,Q,_,6,u[60]),Q=e(Q,K,z,V,B,10,u[61]),V=e(V,Q,K,z,E,15,u[62]),z=e(z,V,Q,K,R,21,u[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,a=r.words,c=this._nDataBytes*8,h=r.sigBytes*8;a[h>>>5]|=128<<24-h%32;var g=p.floor(c/4294967296),A=c;a[(h+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,a[(h+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,r.sigBytes=(a.length+1)*4,this._process();for(var b=this._hash,S=b.words,E=0;E<4;E++){var C=S[E];S[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 i(l,r,a,c,h,g,A){var b=l+(r&a|~r&c)+h+A;return(b<<g|b>>>32-g)+r}function t(l,r,a,c,h,g,A){var b=l+(r&c|a&~c)+h+A;return(b<<g|b>>>32-g)+r}function s(l,r,a,c,h,g,A){var b=l+(r^a^c)+h+A;return(b<<g|b>>>32-g)+r}function e(l,r,a,c,h,g,A){var b=l+(a^(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(k,D,n){},d4KN:function(k,D,n){var y=n("ProS"),p=n("bYtY");function x(v,m){p.each(m,function(f){f.update="updateView",y.registerAction(f,function(d,u){var o={};return u.eachComponent({mainType:"series",subType:v,query:d},function(i){i[f.method]&&i[f.method](d.name,d.dataIndex);var t=i.getData();t.each(function(s){var e=t.getName(s);o[e]=i.isSelected(e)||!1})}),{name:d.name,selected:o,seriesId:d.seriesId}})})}k.exports=x},dBmv:function(k,D,n){var y=n("ProS"),p=n("szbU");n("vF/C"),n("qwVE"),n("MHoB"),n("PNag"),n("1u/T"),y.registerPreprocessor(p)},dD9F:function(k,D,n){var y=n("NykK"),p=n("shjB"),x=n("ExA7"),v="[object Arguments]",m="[object Array]",f="[object Boolean]",d="[object Date]",u="[object Error]",o="[object Function]",i="[object Map]",t="[object Number]",s="[object Object]",e="[object RegExp]",l="[object Set]",r="[object String]",a="[object WeakMap]",c="[object ArrayBuffer]",h="[object DataView]",g="[object Float32Array]",A="[object Float64Array]",b="[object Int8Array]",S="[object Int16Array]",E="[object Int32Array]",C="[object Uint8Array]",_="[object Uint8ClampedArray]",T="[object Uint16Array]",w="[object Uint32Array]",O={};O[g]=O[A]=O[b]=O[S]=O[E]=O[C]=O[_]=O[T]=O[w]=!0,O[v]=O[m]=O[c]=O[f]=O[h]=O[d]=O[u]=O[o]=O[i]=O[t]=O[s]=O[e]=O[l]=O[r]=O[a]=!1;function I(R){return x(R)&&p(R.length)&&!!O[y(R)]}k.exports=I},"dF/Y":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="DownloadOutlined";var d=D.a=p.forwardRef(f)},dMvE:function(k,D){var n={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-n.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?n.bounceIn(x*2)*.5:n.bounceOut(x*2-1)*.5+.5}},y=n;k.exports=y},diRs:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("q1tI"),v=n.n(x),m=n("3S7+"),f=n("H84U"),d=n("bogI"),u=function(i,t){var s={};for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&t.indexOf(e)<0&&(s[e]=i[e]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,e=Object.getOwnPropertySymbols(i);l<e.length;l++)t.indexOf(e[l])<0&&Object.prototype.propertyIsEnumerable.call(i,e[l])&&(s[e[l]]=i[e[l]]);return s},o=x.forwardRef(function(i,t){var s=i.prefixCls,e=i.title,l=i.content,r=u(i,["prefixCls","title","content"]),a=x.useContext(f.b),c=a.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)(l)))},g=c("popover",s);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(k,D,n){"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(k,D,n){"use strict";n.d(D,"a",function(){return v});var y=n("ODXe"),p=n("q1tI"),x=n.n(p);function v(m){var f=p.useRef(!1),d=p.useState(m),u=Object(y.a)(d,2),o=u[0],i=u[1];p.useEffect(function(){return f.current=!1,function(){f.current=!0}},[]);function t(s,e){if(e&&f.current)return;i(s)}return[o,t]}},dmGj:function(k,D,n){var y=n("DEFe"),p=n("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 u=this._mapDraw;v.get("show")?u.draw(v,m,f,this,d):this._mapDraw.group.removeAll(),this.group.silent=v.get("silent")},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});k.exports=x},dnwI:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("YH21"),v=n("Kagy"),m=n("IUWy"),f=v.toolbox.dataView,d=new Array(60).join("-"),u=" ";function o(S){var E={},C=[],_=[];return S.eachRawSeries(function(T){var w=T.coordinateSystem;if(w&&(w.type==="cartesian2d"||w.type==="polar")){var O=w.getBaseAxis();if(O.type==="category"){var I=O.dim+"_"+O.index;E[I]||(E[I]={categoryAxis:O,valueAxis:w.getOtherAxis(O),series:[]},_.push({axisDim:O.dim,axisIndex:O.index})),E[I].series.push(T)}else C.push(T)}else C.push(T)}),{seriesGroupByCategoryAxis:E,other:C,meta:_}}function i(S){var E=[];return p.each(S,function(C,_){var T=C.categoryAxis,w=C.valueAxis,O=w.dim,I=[" "].concat(p.map(C.series,function(F){return F.name})),R=[T.model.getCategories()];p.each(C.series,function(F){R.push(F.getRawData().mapArray(O,function(j){return j}))});for(var M=[I.join(u)],B=0;B<R[0].length;B++){for(var P=[],X=0;X<R.length;X++)P.push(R[X][B]);M.push(P.join(u))}E.push(M.join(`
`))}),E.join(`
`+d+`
`)}function t(S){return p.map(S,function(E){var C=E.getRawData(),_=[E.name],T=[];return C.each(C.dimensions,function(){for(var w=arguments.length,O=arguments[w-1],I=C.getName(O),R=0;R<w-1;R++)T[R]=arguments[R];_.push((I?I+u:"")+T.join(u))}),_.join(`
`)}).join(`
`+d+`
`)}function s(S){var E=o(S);return{value:p.filter([i(E.seriesGroupByCategoryAxis),t(E.other)],function(C){return C.replace(/[\n\t\s]/g,"")}).join(`
`+d+`
`),meta:E.meta}}function e(S){return S.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function l(S){var E=S.slice(0,S.indexOf(`
`));if(E.indexOf(u)>=0)return!0}var r=new RegExp("["+u+"]+","g");function a(S){for(var E=S.split(/\n+/g),C=e(E.shift()).split(r),_=[],T=p.map(C,function(R){return{name:R,data:[]}}),w=0;w<E.length;w++){var O=e(E[w]).split(r);_.push(O.shift());for(var I=0;I<O.length;I++)T[I]&&(T[I].data[w]=O[I])}return{series:T,categories:_}}function c(S){for(var E=S.split(/\n+/g),C=e(E.shift()),_=[],T=0;T<E.length;T++){var w=e(E[T]).split(r),O="",I,R=!1;isNaN(w[0])?(R=!0,O=w[0],w=w.slice(1),_[T]={name:O,value:[]},I=_[T].value):I=_[T]=[];for(var M=0;M<w.length;M++)I.push(+w[M]);I.length===1&&(R?_[T].value=I[0]:_[T]=I[0])}return{name:C,data:_}}function h(S,E){var C=S.split(new RegExp(`
*`+d+`
*`,"g")),_={series:[]};return p.each(C,function(T,w){if(l(T)){var O=a(T),I=E[w],R=I.axisDim+"Axis";I&&(_[R]=_[R]||[],_[R][I.axisIndex]={data:O.categories},_.series=_.series.concat(O.series))}else{var O=c(T);_.series.push(O)}}),_}function g(S){this._dom=null,this.model=S}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(S,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 w=document.createElement("h4"),O=_.get("lang")||[];w.innerHTML=O[0]||_.get("title"),w.style.cssText="margin: 10px 20px;",w.style.color=_.get("textColor");var I=document.createElement("div"),R=document.createElement("textarea");I.style.cssText="display:block;width:100%;overflow:auto;";var M=_.get("optionToContent"),B=_.get("contentToOption"),P=s(S);if(typeof M=="function"){var X=M(E.getOption());typeof X=="string"?I.innerHTML=X:p.isDom(X)&&I.appendChild(X)}else I.appendChild(R),R.readOnly=_.get("readOnly"),R.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",R.style.color=_.get("textColor"),R.style.borderColor=_.get("textareaBorderColor"),R.style.backgroundColor=_.get("textareaColor"),R.value=P.value;var F=P.meta,j=document.createElement("div");j.style.cssText="position:absolute;bottom:0;left:0;right:0;";var K="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",z=document.createElement("div"),V=document.createElement("div");K+=";background-color:"+_.get("buttonColor"),K+=";color:"+_.get("buttonTextColor");var Q=this;function G(){C.removeChild(T),Q._dom=null}x.addEventListener(z,"click",G),x.addEventListener(V,"click",function(){var te;try{typeof B=="function"?te=B(I,E.getOption()):te=h(R.value,F)}catch(q){throw G(),new Error("Data view format error "+q)}te&&E.dispatchAction({type:"changeDataView",newOption:te}),G()}),z.innerHTML=O[1],V.innerHTML=O[2],V.style.cssText=K,z.style.cssText=K,!_.get("readOnly")&&j.appendChild(V),j.appendChild(z),T.appendChild(w),T.appendChild(I),T.appendChild(j),I.style.height=C.clientHeight-80+"px",C.appendChild(T),this._dom=T},g.prototype.remove=function(S,E){this._dom&&E.getDom().removeChild(this._dom)},g.prototype.dispose=function(S,E){this.remove(S,E)};function A(S,E){return p.map(S,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(S,E){var C=[];p.each(S.newOption.series,function(_){var T=E.getSeriesByName(_.name)[0];if(!T)C.push(p.extend({type:"scatter"},_));else{var w=T.get("data");C.push({name:_.name,data:A(_.data,w)})}}),E.mergeOption(p.defaults({series:C},S.newOption))});var b=g;k.exports=b},dqUG:function(k,D,n){var y=n("Gev7"),p=n("bYtY"),x=n("6GrX"),v=n("pzxd"),m=n("gut8"),f=m.ContextCachedBy,d=function(i){y.call(this,i)};d.prototype={constructor:d,type:"text",brush:function(i,t){var s=this.style;this.__dirty&&v.normalizeTextStyle(s,!0),s.fill=s.stroke=s.shadowBlur=s.shadowColor=s.shadowOffsetX=s.shadowOffsetY=null;var e=s.text;if(e!=null&&(e+=""),!v.needDrawText(e,s)){i.__attrCachedBy=f.NONE;return}this.setTransform(i),v.renderText(this,i,e,s,null,t),this.restoreTransform(i)},getBoundingRect:function(){var i=this.style;if(this.__dirty&&v.normalizeTextStyle(i,!0),!this._rect){var t=i.text;t!=null?t+="":t="";var s=x.getBoundingRect(i.text+"",i.font,i.textAlign,i.textVerticalAlign,i.textPadding,i.textLineHeight,i.rich);if(s.x+=i.x||0,s.y+=i.y||0,v.getStroke(i.textStroke,i.textStrokeWidth)){var e=i.textStrokeWidth;s.x-=e/2,s.y-=e/2,s.width+=e,s.height+=e}this._rect=s}return this._rect}},p.inherits(d,y);var u=d;k.exports=u},dtIV:function(k,D,n){"use strict";n.r(D),function(y){n.d(D,"AcroForm",function(){return qe}),n.d(D,"AcroFormAppearance",function(){return se}),n.d(D,"AcroFormButton",function(){return Xt}),n.d(D,"AcroFormCheckBox",function(){return Wt}),n.d(D,"AcroFormChoiceField",function(){return ht}),n.d(D,"AcroFormComboBox",function(){return ir}),n.d(D,"AcroFormEditBox",function(){return ct}),n.d(D,"AcroFormListBox",function(){return He}),n.d(D,"AcroFormPasswordField",function(){return pe}),n.d(D,"AcroFormPushButton",function(){return hr}),n.d(D,"AcroFormRadioButton",function(){return Jt}),n.d(D,"AcroFormTextField",function(){return Ge}),n.d(D,"GState",function(){return X}),n.d(D,"ShadingPattern",function(){return j}),n.d(D,"TilingPattern",function(){return K}),n.d(D,"jsPDF",function(){return z});var p=n("cDf5"),x=n.n(p),v=n("crp1");/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
* CommitID 00000000
*
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
* 2015-2021 yWorks GmbH, http://www.yworks.com
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
* 2010 Aaron Spike, https://github.com/acspike
* 2012 Willow Systems Corporation, https://github.com/willowsystems
* 2012 Pablo Hess, https://github.com/pablohess
* 2012 Florian Jenett, https://github.com/fjenett
* 2013 Warren Weckesser, https://github.com/warrenweckesser
* 2013 Youssef Beddad, https://github.com/lifof
* 2013 Lee Driscoll, https://github.com/lsdriscoll
* 2013 Stefan Slonevskiy, https://github.com/stefslon
* 2013 Jeremy Morel, https://github.com/jmorel
* 2013 Christoph Hartmann, https://github.com/chris-rock
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
* 2014 James Makes, https://github.com/dollaruw
* 2014 Diego Casorran, https://github.com/diegocr
* 2014 Steven Spungin, https://github.com/Flamenco
* 2014 Kenneth Glassey, https://github.com/Gavvers
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Contributor(s):
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
* kim3er, mfo, alnorth, Flamenco
*/var 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(Le){m.console&&(typeof m.console.warn=="function"?m.console.warn.apply(m.console,arguments):f.call(null,arguments))},error:function(Le){m.console&&(typeof m.console.error=="function"?m.console.error.apply(m.console,arguments):f(Le))}};function u(nt,Le,je){var Xe=new XMLHttpRequest;Xe.open("GET",nt),Xe.responseType="blob",Xe.onload=function(){e(Xe.response,Le,je)},Xe.onerror=function(){d.error("could not download file")},Xe.send()}function o(nt){var Le=new XMLHttpRequest;Le.open("HEAD",nt,!1);try{Le.send()}catch(je){}return Le.status>=200&&Le.status<=299}function i(nt){try{nt.dispatchEvent(new MouseEvent("click"))}catch(je){var Le=document.createEvent("MouseEvents");Le.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),nt.dispatchEvent(Le)}}var t,s,e=m.saveAs||((typeof window=="undefined"?"undefined":x()(window))!=="object"||window!==m?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(nt,Le,je){var Xe=m.URL||m.webkitURL,tt=document.createElement("a");Le=Le||nt.name||"download",tt.download=Le,tt.rel="noopener",typeof nt=="string"?(tt.href=nt,tt.origin!==location.origin?o(tt.href)?u(nt,Le,je):i(tt,tt.target="_blank"):i(tt)):(tt.href=Xe.createObjectURL(nt),setTimeout(function(){Xe.revokeObjectURL(tt.href)},4e4),setTimeout(function(){i(tt)},0))}:"msSaveOrOpenBlob"in navigator?function(nt,Le,je){if(Le=Le||nt.name||"download",typeof nt=="string")if(o(nt))u(nt,Le,je);else{var Xe=document.createElement("a");Xe.href=nt,Xe.target="_blank",setTimeout(function(){i(Xe)})}else navigator.msSaveOrOpenBlob(function(tt,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(tt.type)?new Blob([String.fromCharCode(65279),tt],{type:tt.type}):tt}(nt,je),Le)}:function(nt,Le,je,Xe){if((Xe=Xe||open("","_blank"))&&(Xe.document.title=Xe.document.body.innerText="downloading..."),typeof nt=="string")return u(nt,Le,je);var tt=nt.type==="application/octet-stream",Ze=/constructor/i.test(m.HTMLElement)||m.safari,st=/CriOS\/[\d]+/.test(navigator.userAgent);if((st||tt&&Ze)&&(typeof FileReader=="undefined"?"undefined":x()(FileReader))==="object"){var Et=new FileReader;Et.onloadend=function(){var qr=Et.result;qr=st?qr:qr.replace(/^data:[^;]*;/,"data:attachment/file;"),Xe?Xe.location.href=qr:location=qr,Xe=null},Et.readAsDataURL(nt)}else{var gt=m.URL||m.webkitURL,pr=gt.createObjectURL(nt);Xe?Xe.location=pr:location.href=pr,Xe=null,setTimeout(function(){gt.revokeObjectURL(pr)},4e4)}});/**
* A class to parse color values
* @author Stoyan Stefanov <sstoo@gmail.com>
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
* @license Use it if you like it
*/function l(nt){var Le;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 je=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(gt){return[parseInt(gt[1]),parseInt(gt[2]),parseInt(gt[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(gt){return[parseInt(gt[1],16),parseInt(gt[2],16),parseInt(gt[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(gt){return[parseInt(gt[1]+gt[1],16),parseInt(gt[2]+gt[2],16),parseInt(gt[3]+gt[3],16)]}}],Xe=0;Xe<je.length;Xe++){var tt=je[Xe].re,Ze=je[Xe].process,st=tt.exec(nt);st&&(Le=Ze(st),this.r=Le[0],this.g=Le[1],this.b=Le[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var Et=this.r.toString(16),gt=this.g.toString(16),pr=this.b.toString(16);return Et.length==1&&(Et="0"+Et),gt.length==1&&(gt="0"+gt),pr.length==1&&(pr="0"+pr),"#"+Et+gt+pr}}/**
* @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,Le){var je=nt[0],Xe=nt[1],tt=nt[2],Ze=nt[3];je=c(je,Xe,tt,Ze,Le[0],7,-680876936),Ze=c(Ze,je,Xe,tt,Le[1],12,-389564586),tt=c(tt,Ze,je,Xe,Le[2],17,606105819),Xe=c(Xe,tt,Ze,je,Le[3],22,-1044525330),je=c(je,Xe,tt,Ze,Le[4],7,-176418897),Ze=c(Ze,je,Xe,tt,Le[5],12,1200080426),tt=c(tt,Ze,je,Xe,Le[6],17,-1473231341),Xe=c(Xe,tt,Ze,je,Le[7],22,-45705983),je=c(je,Xe,tt,Ze,Le[8],7,1770035416),Ze=c(Ze,je,Xe,tt,Le[9],12,-1958414417),tt=c(tt,Ze,je,Xe,Le[10],17,-42063),Xe=c(Xe,tt,Ze,je,Le[11],22,-1990404162),je=c(je,Xe,tt,Ze,Le[12],7,1804603682),Ze=c(Ze,je,Xe,tt,Le[13],12,-40341101),tt=c(tt,Ze,je,Xe,Le[14],17,-1502002290),je=h(je,Xe=c(Xe,tt,Ze,je,Le[15],22,1236535329),tt,Ze,Le[1],5,-165796510),Ze=h(Ze,je,Xe,tt,Le[6],9,-1069501632),tt=h(tt,Ze,je,Xe,Le[11],14,643717713),Xe=h(Xe,tt,Ze,je,Le[0],20,-373897302),je=h(je,Xe,tt,Ze,Le[5],5,-701558691),Ze=h(Ze,je,Xe,tt,Le[10],9,38016083),tt=h(tt,Ze,je,Xe,Le[15],14,-660478335),Xe=h(Xe,tt,Ze,je,Le[4],20,-405537848),je=h(je,Xe,tt,Ze,Le[9],5,568446438),Ze=h(Ze,je,Xe,tt,Le[14],9,-1019803690),tt=h(tt,Ze,je,Xe,Le[3],14,-187363961),Xe=h(Xe,tt,Ze,je,Le[8],20,1163531501),je=h(je,Xe,tt,Ze,Le[13],5,-1444681467),Ze=h(Ze,je,Xe,tt,Le[2],9,-51403784),tt=h(tt,Ze,je,Xe,Le[7],14,1735328473),je=g(je,Xe=h(Xe,tt,Ze,je,Le[12],20,-1926607734),tt,Ze,Le[5],4,-378558),Ze=g(Ze,je,Xe,tt,Le[8],11,-2022574463),tt=g(tt,Ze,je,Xe,Le[11],16,1839030562),Xe=g(Xe,tt,Ze,je,Le[14],23,-35309556),je=g(je,Xe,tt,Ze,Le[1],4,-1530992060),Ze=g(Ze,je,Xe,tt,Le[4],11,1272893353),tt=g(tt,Ze,je,Xe,Le[7],16,-155497632),Xe=g(Xe,tt,Ze,je,Le[10],23,-1094730640),je=g(je,Xe,tt,Ze,Le[13],4,681279174),Ze=g(Ze,je,Xe,tt,Le[0],11,-358537222),tt=g(tt,Ze,je,Xe,Le[3],16,-722521979),Xe=g(Xe,tt,Ze,je,Le[6],23,76029189),je=g(je,Xe,tt,Ze,Le[9],4,-640364487),Ze=g(Ze,je,Xe,tt,Le[12],11,-421815835),tt=g(tt,Ze,je,Xe,Le[15],16,530742520),je=A(je,Xe=g(Xe,tt,Ze,je,Le[2],23,-995338651),tt,Ze,Le[0],6,-198630844),Ze=A(Ze,je,Xe,tt,Le[7],10,1126891415),tt=A(tt,Ze,je,Xe,Le[14],15,-1416354905),Xe=A(Xe,tt,Ze,je,Le[5],21,-57434055),je=A(je,Xe,tt,Ze,Le[12],6,1700485571),Ze=A(Ze,je,Xe,tt,Le[3],10,-1894986606),tt=A(tt,Ze,je,Xe,Le[10],15,-1051523),Xe=A(Xe,tt,Ze,je,Le[1],21,-2054922799),je=A(je,Xe,tt,Ze,Le[8],6,1873313359),Ze=A(Ze,je,Xe,tt,Le[15],10,-30611744),tt=A(tt,Ze,je,Xe,Le[6],15,-1560198380),Xe=A(Xe,tt,Ze,je,Le[13],21,1309151649),je=A(je,Xe,tt,Ze,Le[4],6,-145523070),Ze=A(Ze,je,Xe,tt,Le[11],10,-1120210379),tt=A(tt,Ze,je,Xe,Le[2],15,718787259),Xe=A(Xe,tt,Ze,je,Le[9],21,-343485551),nt[0]=O(je,nt[0]),nt[1]=O(Xe,nt[1]),nt[2]=O(tt,nt[2]),nt[3]=O(Ze,nt[3])}function a(nt,Le,je,Xe,tt,Ze){return Le=O(O(Le,nt),O(Xe,Ze)),O(Le<<tt|Le>>>32-tt,je)}function c(nt,Le,je,Xe,tt,Ze,st){return a(Le&je|~Le&Xe,nt,Le,tt,Ze,st)}function h(nt,Le,je,Xe,tt,Ze,st){return a(Le&Xe|je&~Xe,nt,Le,tt,Ze,st)}function g(nt,Le,je,Xe,tt,Ze,st){return a(Le^je^Xe,nt,Le,tt,Ze,st)}function A(nt,Le,je,Xe,tt,Ze,st){return a(je^(Le|~Xe),nt,Le,tt,Ze,st)}function b(nt){var Le,je=nt.length,Xe=[1732584193,-271733879,-1732584194,271733878];for(Le=64;Le<=nt.length;Le+=64)r(Xe,S(nt.substring(Le-64,Le)));nt=nt.substring(Le-64);var tt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(Le=0;Le<nt.length;Le++)tt[Le>>2]|=nt.charCodeAt(Le)<<(Le%4<<3);if(tt[Le>>2]|=128<<(Le%4<<3),Le>55)for(r(Xe,tt),Le=0;Le<16;Le++)tt[Le]=0;return tt[14]=8*je,r(Xe,tt),Xe}function S(nt){var Le,je=[];for(Le=0;Le<64;Le+=4)je[Le>>2]=nt.charCodeAt(Le)+(nt.charCodeAt(Le+1)<<8)+(nt.charCodeAt(Le+2)<<16)+(nt.charCodeAt(Le+3)<<24);return je}t=m.atob.bind(m),s=m.btoa.bind(m);var E="0123456789abcdef".split("");function C(nt){for(var Le="",je=0;je<4;je++)Le+=E[nt>>8*je+4&15]+E[nt>>8*je&15];return Le}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 w=function(nt){for(var Le=0;Le<nt.length;Le++)nt[Le]=C(nt[Le]);return nt.join("")}(b("hello"))!="5d41402abc4b2a76b9719d911017c592";function O(nt,Le){if(w){var je=(65535&nt)+(65535&Le);return(nt>>16)+(Le>>16)+(je>>16)<<16|65535&je}return nt+Le&4294967295}/**
* @license
* FPDF is released under a permissive license: there is no usage restriction.
* You may embed it freely in your application (commercial or not), with or
* without modifications.
*
* Reference: http://www.fpdf.org/en/script/script37.php
*/function I(nt,Le){var je,Xe,tt,Ze;if(nt!==je){for(var st=(tt=nt,Ze=1+(256/nt.length>>0),new Array(Ze+1).join(tt)),Et=[],gt=0;gt<256;gt++)Et[gt]=gt;var pr=0;for(gt=0;gt<256;gt++){var qr=Et[gt];pr=(pr+qr+st.charCodeAt(gt))%256,Et[gt]=Et[pr],Et[pr]=qr}je=nt,Xe=Et}else Et=Xe;var Qr=Le.length,gn=0,vr=0,Vn="";for(gt=0;gt<Qr;gt++)vr=(vr+(qr=Et[gn=(gn+1)%256]))%256,Et[gn]=Et[vr],Et[vr]=qr,st=Et[(Et[gn]+Et[vr])%256],Vn+=String.fromCharCode(Le.charCodeAt(gt)^st);return Vn}/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
* Author: Owen Leong (@owenl131)
* Date: 15 Oct 2020
* References:
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
* http://www.fpdf.org/en/script/script37.php
*/var R={print:4,modify:8,copy:16,"annot-forms":32};function M(nt,Le,je,Xe){this.v=1,this.r=2;var tt=192;nt.forEach(function(Et){if(R.perm!==void 0)throw new Error("Invalid permission: "+Et);tt+=R[Et]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var Ze=(Le+this.padding).substr(0,32),st=(je+this.padding).substr(0,32);this.O=this.processOwnerPassword(Ze,st),this.P=-(1+(255^tt)),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 Le="",je=nt.length,Xe=0;Xe<je;Xe++){var tt=nt.charCodeAt(Xe);tt<33||tt===35||tt===37||tt===40||tt===41||tt===47||tt===60||tt===62||tt===91||tt===93||tt===123||tt===125||tt>126?Le+="#"+("0"+tt.toString(16)).slice(-2):Le+=nt[Xe]}return Le}function P(nt){if(x()(nt)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var Le={};this.subscribe=function(je,Xe,tt){if(tt=tt||!1,typeof je!="string"||typeof Xe!="function"||typeof tt!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");Le.hasOwnProperty(je)||(Le[je]={});var Ze=Math.random().toString(35);return Le[je][Ze]=[Xe,!!tt],Ze},this.unsubscribe=function(je){for(var Xe in Le)if(Le[Xe][je])return delete Le[Xe][je],Object.keys(Le[Xe]).length===0&&delete Le[Xe],!0;return!1},this.publish=function(je){if(Le.hasOwnProperty(je)){var Xe=Array.prototype.slice.call(arguments,1),tt=[];for(var Ze in Le[je]){var st=Le[je][Ze];try{st[0].apply(nt,Xe)}catch(Et){m.console&&d.error("jsPDF PubSub Error",Et.message,Et)}st[1]&&tt.push(Ze)}tt.length&&tt.forEach(this.unsubscribe)}},this.getTopics=function(){return Le}}function X(nt){if(!(this instanceof X))return new X(nt);var Le="opacity,stroke-opacity".split(",");for(var je in nt)nt.hasOwnProperty(je)&&Le.indexOf(je)>=0&&(this[je]=nt[je]);this.id="",this.objectNumber=-1}function F(nt,Le){this.gState=nt,this.matrix=Le,this.id="",this.objectNumber=-1}function j(nt,Le,je,Xe,tt){if(!(this instanceof j))return new j(nt,Le,je,Xe,tt);this.type=nt==="axial"?2:3,this.coords=Le,this.colors=je,F.call(this,Xe,tt)}function K(nt,Le,je,Xe,tt){if(!(this instanceof K))return new K(nt,Le,je,Xe,tt);this.boundingBox=nt,this.xStep=Le,this.yStep=je,this.stream="",this.cloneIndex=0,F.call(this,Xe,tt)}function z(nt){var Le,je=typeof arguments[0]=="string"?arguments[0]:"p",Xe=arguments[1],tt=arguments[2],Ze=arguments[3],st=[],Et=1,gt=16,pr="S",qr=null;x()(nt=nt||{})==="object"&&(je=nt.orientation,Xe=nt.unit||Xe,tt=nt.format||tt,Ze=nt.compress||nt.compressPdf||Ze,(qr=nt.encryption||null)!==null&&(qr.userPassword=qr.userPassword||"",qr.ownerPassword=qr.ownerPassword||"",qr.userPermissions=qr.userPermissions||[]),Et=typeof nt.userUnit=="number"?Math.abs(nt.userUnit):1,nt.precision!==void 0&&(Le=nt.precision),nt.floatPrecision!==void 0&&(gt=nt.floatPrecision),pr=nt.defaultPathOperation||"S"),st=nt.filters||(Ze===!0?["FlateEncode"]:st),Xe=Xe||"mm",je=(""+(je||"P")).toLowerCase();var Qr=nt.putOnlyUsedFonts||!1,gn={},vr={internal:{},__private__:{}};vr.__private__.PubSub=P;var Vn="1.3",kr=vr.__private__.getPdfVersion=function(){return Vn};vr.__private__.setPdfVersion=function(Ut){Vn=Ut};var Bn={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]};vr.__private__.getPageFormats=function(){return Bn};var on=vr.__private__.getPageFormat=function(Ut){return Bn[Ut]};tt=tt||"a4";var jr={COMPAT:"compat",ADVANCED:"advanced"},ai=jr.COMPAT;function Oi(){this.saveGraphicsState(),kn(new na(Nr,0,0,-Nr,0,Ds()*Nr).toString()+" cm"),this.setFontSize(this.getFontSize()/Nr),pr="n",ai=jr.ADVANCED}function Gi(){this.restoreGraphicsState(),pr="S",ai=jr.COMPAT}var rn=vr.__private__.combineFontStyleAndFontWeight=function(Ut,or){if(Ut=="bold"&&or=="normal"||Ut=="bold"&&or==400||Ut=="normal"&&or=="italic"||Ut=="bold"&&or=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return or&&(Ut=or==400||or==="normal"?Ut==="italic"?"italic":"normal":or!=700&&or!=="bold"||Ut!=="normal"?(or==700?"bold":or)+""+Ut:"bold"),Ut};vr.advancedAPI=function(Ut){var or=ai===jr.COMPAT;return or&&Oi.call(this),typeof Ut!="function"||(Ut(this),or&&Gi.call(this)),this},vr.compatAPI=function(Ut){var or=ai===jr.ADVANCED;return or&&Gi.call(this),typeof Ut!="function"||(Ut(this),or&&Oi.call(this)),this},vr.isAdvancedAPI=function(){return ai===jr.ADVANCED};var Cn,Yn=function(or){if(ai!==jr.ADVANCED)throw new Error(or+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Gt=vr.roundToPrecision=vr.__private__.roundToPrecision=function(Ut,or){var Nn=Le||or;if(isNaN(Ut)||isNaN(Nn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Ut.toFixed(Nn).replace(/0+$/,"")};Cn=vr.hpf=vr.__private__.hpf=typeof gt=="number"?function(Ut){if(isNaN(Ut))throw new Error("Invalid argument passed to jsPDF.hpf");return Gt(Ut,gt)}:gt==="smart"?function(Ut){if(isNaN(Ut))throw new Error("Invalid argument passed to jsPDF.hpf");return Gt(Ut,Ut>-1&&Ut<1?16:5)}:function(Ut){if(isNaN(Ut))throw new Error("Invalid argument passed to jsPDF.hpf");return Gt(Ut,16)};var Ot=vr.f2=vr.__private__.f2=function(Ut){if(isNaN(Ut))throw new Error("Invalid argument passed to jsPDF.f2");return Gt(Ut,2)},Rt=vr.__private__.f3=function(Ut){if(isNaN(Ut))throw new Error("Invalid argument passed to jsPDF.f3");return Gt(Ut,3)},jt=vr.scale=vr.__private__.scale=function(Ut){if(isNaN(Ut))throw new Error("Invalid argument passed to jsPDF.scale");return ai===jr.COMPAT?Ut*Nr:ai===jr.ADVANCED?Ut:void 0},zt=function(or){return ai===jr.COMPAT?Ds()-or:ai===jr.ADVANCED?or:void 0},Lt=function(or){return jt(zt(or))};vr.__private__.setPrecision=vr.setPrecision=function(Ut){typeof parseInt(Ut,10)=="number"&&(Le=parseInt(Ut,10))};var cr,Ar="00000000000000000000000000000000",br=vr.__private__.getFileId=function(){return Ar},Pr=vr.__private__.setFileId=function(Ut){return Ar=Ut!==void 0&&/^[a-fA-F0-9]{32}$/.test(Ut)?Ut.toUpperCase():Ar.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),qr!==null&&(wa=new M(qr.userPermissions,qr.userPassword,qr.ownerPassword,Ar)),Ar};vr.setFileId=function(Ut){return Pr(Ut),this},vr.getFileId=function(){return br()};var Xn=vr.__private__.convertDateToPDFDate=function(Ut){var or=Ut.getTimezoneOffset(),Nn=or<0?"+":"-",hi=Math.floor(Math.abs(or/60)),Nt=Math.abs(or%60),ce=[Nn,In(hi),"'",In(Nt),"'"].join("");return["D:",Ut.getFullYear(),In(Ut.getMonth()+1),In(Ut.getDate()),In(Ut.getHours()),In(Ut.getMinutes()),In(Ut.getSeconds()),ce].join("")},Pn=vr.__private__.convertPDFDateToDate=function(Ut){var or=parseInt(Ut.substr(2,4),10),Nn=parseInt(Ut.substr(6,2),10)-1,hi=parseInt(Ut.substr(8,2),10),Nt=parseInt(Ut.substr(10,2),10),ce=parseInt(Ut.substr(12,2),10),xe=parseInt(Ut.substr(14,2),10);return new Date(or,Nn,hi,Nt,ce,xe,0)},di=vr.__private__.setCreationDate=function(Ut){var or;if(Ut===void 0&&(Ut=new Date),Ut instanceof Date)or=Xn(Ut);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(Ut))throw new Error("Invalid argument passed to jsPDF.setCreationDate");or=Ut}return cr=or},An=vr.__private__.getCreationDate=function(Ut){var or=cr;return Ut==="jsDate"&&(or=Pn(cr)),or};vr.setCreationDate=function(Ut){return di(Ut),this},vr.getCreationDate=function(Ut){return An(Ut)};var Ur,In=vr.__private__.padd2=function(Ut){return("0"+parseInt(Ut)).slice(-2)},Qn=vr.__private__.padd2Hex=function(Ut){return("00"+(Ut=Ut.toString())).substr(Ut.length)},$n=0,oi=[],Ti=[],ki=0,Ri=[],oa=[],ma=!1,aa=Ti,ba=function(){$n=0,ki=0,Ti=[],oi=[],Ri=[],_a=Oa(),Va=Oa()};vr.__private__.setCustomOutputDestination=function(Ut){ma=!0,aa=Ut};var yi=function(or){ma||(aa=or)};vr.__private__.resetCustomOutputDestination=function(){ma=!1,aa=Ti};var kn=vr.__private__.out=function(Ut){return Ut=Ut.toString(),ki+=Ut.length+1,aa.push(Ut),aa},Ui=vr.__private__.write=function(Ut){return kn(arguments.length===1?Ut.toString():Array.prototype.join.call(arguments," "))},ha=vr.__private__.getArrayBuffer=function(Ut){for(var or=Ut.length,Nn=new ArrayBuffer(or),hi=new Uint8Array(Nn);or--;)hi[or]=Ut.charCodeAt(or);return Nn},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]];vr.__private__.getStandardFonts=function(){return ta};var ra=nt.fontSize||16;vr.__private__.setFontSize=vr.setFontSize=function(Ut){return ra=ai===jr.ADVANCED?Ut/Nr:Ut,this};var Lr,xr=vr.__private__.getFontSize=vr.getFontSize=function(){return ai===jr.COMPAT?ra:ra*Nr},Tn=nt.R2L||!1;vr.__private__.setR2L=vr.setR2L=function(Ut){return Tn=Ut,this},vr.__private__.getR2L=vr.getR2L=function(){return Tn};var mr,Mr=vr.__private__.setZoomMode=function(Ut){var or=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Ut))Lr=Ut;else if(isNaN(Ut)){if(or.indexOf(Ut)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Ut+'" is not recognized.');Lr=Ut}else Lr=parseInt(Ut,10)};vr.__private__.getZoomMode=function(){return Lr};var Xr,un=vr.__private__.setPageMode=function(Ut){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Ut)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Ut+'" is not recognized.');mr=Ut};vr.__private__.getPageMode=function(){return mr};var Fn=vr.__private__.setLayoutMode=function(Ut){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Ut)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Ut+'" is not recognized.');Xr=Ut};vr.__private__.getLayoutMode=function(){return Xr},vr.__private__.setDisplayMode=vr.setDisplayMode=function(Ut,or,Nn){return Mr(Ut),Fn(or),un(Nn),this};var _t={title:"",subject:"",author:"",keywords:"",creator:""};vr.__private__.getDocumentProperty=function(Ut){if(Object.keys(_t).indexOf(Ut)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return _t[Ut]},vr.__private__.getDocumentProperties=function(){return _t},vr.__private__.setDocumentProperties=vr.setProperties=vr.setDocumentProperties=function(Ut){for(var or in _t)_t.hasOwnProperty(or)&&Ut[or]&&(_t[or]=Ut[or]);return this},vr.__private__.setDocumentProperty=function(Ut,or){if(Object.keys(_t).indexOf(Ut)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return _t[Ut]=or};var Or,Nr,tn,xn,Ln,Sn={},qn={},Wn=[],pi={},Pi={},bi={},Ii={},zi=null,ea=0,Xi=[],Wi=new P(vr),ji=nt.hotfixes||[],Ji={},ca={},Ca=[],na=function Ut(or,Nn,hi,Nt,ce,xe){if(!(this instanceof Ut))return new Ut(or,Nn,hi,Nt,ce,xe);isNaN(or)&&(or=1),isNaN(Nn)&&(Nn=0),isNaN(hi)&&(hi=0),isNaN(Nt)&&(Nt=1),isNaN(ce)&&(ce=0),isNaN(xe)&&(xe=0),this._matrix=[or,Nn,hi,Nt,ce,xe]};Object.defineProperty(na.prototype,"sx",{get:function(){return this._matrix[0]},set:function(or){this._matrix[0]=or}}),Object.defineProperty(na.prototype,"shy",{get:function(){return this._matrix[1]},set:function(or){this._matrix[1]=or}}),Object.defineProperty(na.prototype,"shx",{get:function(){return this._matrix[2]},set:function(or){this._matrix[2]=or}}),Object.defineProperty(na.prototype,"sy",{get:function(){return this._matrix[3]},set:function(or){this._matrix[3]=or}}),Object.defineProperty(na.prototype,"tx",{get:function(){return this._matrix[4]},set:function(or){this._matrix[4]=or}}),Object.defineProperty(na.prototype,"ty",{get:function(){return this._matrix[5]},set:function(or){this._matrix[5]=or}}),Object.defineProperty(na.prototype,"a",{get:function(){return this._matrix[0]},set:function(or){this._matrix[0]=or}}),Object.defineProperty(na.prototype,"b",{get:function(){return this._matrix[1]},set:function(or){this._matrix[1]=or}}),Object.defineProperty(na.prototype,"c",{get:function(){return this._matrix[2]},set:function(or){this._matrix[2]=or}}),Object.defineProperty(na.prototype,"d",{get:function(){return this._matrix[3]},set:function(or){this._matrix[3]=or}}),Object.defineProperty(na.prototype,"e",{get:function(){return this._matrix[4]},set:function(or){this._matrix[4]=or}}),Object.defineProperty(na.prototype,"f",{get:function(){return this._matrix[5]},set:function(or){this._matrix[5]=or}}),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(Ut){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Cn).join(Ut)},na.prototype.multiply=function(Ut){var or=Ut.sx*this.sx+Ut.shy*this.shx,Nn=Ut.sx*this.shy+Ut.shy*this.sy,hi=Ut.shx*this.sx+Ut.sy*this.shx,Nt=Ut.shx*this.shy+Ut.sy*this.sy,ce=Ut.tx*this.sx+Ut.ty*this.shx+this.tx,xe=Ut.tx*this.shy+Ut.ty*this.sy+this.ty;return new na(or,Nn,hi,Nt,ce,xe)},na.prototype.decompose=function(){var Ut=this.sx,or=this.shy,Nn=this.shx,hi=this.sy,Nt=this.tx,ce=this.ty,xe=Math.sqrt(Ut*Ut+or*or),Oe=(Ut/=xe)*Nn+(or/=xe)*hi;Nn-=Ut*Oe,hi-=or*Oe;var Qe=Math.sqrt(Nn*Nn+hi*hi);return Oe/=Qe,Ut*(hi/=Qe)<or*(Nn/=Qe)&&(Ut=-Ut,or=-or,Oe=-Oe,xe=-xe),{scale:new na(xe,0,0,Qe,0,0),translate:new na(1,0,0,1,Nt,ce),rotate:new na(Ut,or,-or,Ut,0,0),skew:new na(1,0,Oe,1,0,0)}},na.prototype.toString=function(Ut){return this.join(" ")},na.prototype.inversed=function(){var Ut=this.sx,or=this.shy,Nn=this.shx,hi=this.sy,Nt=this.tx,ce=this.ty,xe=1/(Ut*hi-or*Nn),Oe=hi*xe,Qe=-or*xe,Dt=-Nn*xe,lr=Ut*xe;return new na(Oe,Qe,Dt,lr,-Oe*Nt-Dt*ce,-Qe*Nt-lr*ce)},na.prototype.applyToPoint=function(Ut){var or=Ut.x*this.sx+Ut.y*this.shx+this.tx,Nn=Ut.x*this.shy+Ut.y*this.sy+this.ty;return new tl(or,Nn)},na.prototype.applyToRectangle=function(Ut){var or=this.applyToPoint(Ut),Nn=this.applyToPoint(new tl(Ut.x+Ut.w,Ut.y+Ut.h));return new xs(or.x,or.y,Nn.x-or.x,Nn.y-or.y)},na.prototype.clone=function(){var Ut=this.sx,or=this.shy,Nn=this.shx,hi=this.sy,Nt=this.tx,ce=this.ty;return new na(Ut,or,Nn,hi,Nt,ce)},vr.Matrix=na;var Pa=vr.matrixMult=function(Ut,or){return or.multiply(Ut)},La=new na(1,0,0,1,0,0);vr.unitMatrix=vr.identityMatrix=La;var va=function(or,Nn){if(!Pi[or]){var hi=(Nn instanceof j?"Sh":"P")+(Object.keys(pi).length+1).toString(10);Nn.id=hi,Pi[or]=hi,pi[hi]=Nn,Wi.publish("addPattern",Nn)}};vr.ShadingPattern=j,vr.TilingPattern=K,vr.addShadingPattern=function(Ut,or){return Yn("addShadingPattern()"),va(Ut,or),this},vr.beginTilingPattern=function(Ut){Yn("beginTilingPattern()"),al(Ut.boundingBox[0],Ut.boundingBox[1],Ut.boundingBox[2]-Ut.boundingBox[0],Ut.boundingBox[3]-Ut.boundingBox[1],Ut.matrix)},vr.endTilingPattern=function(Ut,or){Yn("endTilingPattern()"),or.stream=oa[Ur].join(`
`),va(Ut,or),Wi.publish("endTilingPattern",or),Ca.pop().restore()};var ga=vr.__private__.newObject=function(){var Ut=Oa();return Aa(Ut,!0),Ut},Oa=vr.__private__.newObjectDeferred=function(){return $n++,oi[$n]=function(){return ki},$n},Aa=function(or,Nn){return Nn=typeof Nn=="boolean"&&Nn,oi[or]=ki,Nn&&kn(or+" 0 obj"),or},Xa=vr.__private__.newAdditionalObject=function(){var Ut={objId:Oa(),content:""};return Ri.push(Ut),Ut},_a=Oa(),Va=Oa(),Fi=vr.__private__.decodeColorString=function(Ut){var or=Ut.split(" ");if(or.length!==2||or[1]!=="g"&&or[1]!=="G")or.length===5&&(or[4]==="k"||or[4]==="K")&&(or=[(1-or[0])*(1-or[3]),(1-or[1])*(1-or[3]),(1-or[2])*(1-or[3]),"r"]);else{var Nn=parseFloat(or[0]);or=[Nn,Nn,Nn,"r"]}for(var hi="#",Nt=0;Nt<3;Nt++)hi+=("0"+Math.floor(255*parseFloat(or[Nt])).toString(16)).slice(-2);return hi},io=vr.__private__.encodeColorString=function(Ut){var or;typeof Ut=="string"&&(Ut={ch1:Ut});var Nn=Ut.ch1,hi=Ut.ch2,Nt=Ut.ch3,ce=Ut.ch4,xe=Ut.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Nn=="string"&&Nn.charAt(0)!=="#"){var Oe=new l(Nn);if(Oe.ok)Nn=Oe.toHex();else if(!/^\d*\.?\d*$/.test(Nn))throw new Error('Invalid color "'+Nn+'" passed to jsPDF.encodeColorString.')}if(typeof Nn=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Nn)&&(Nn="#"+Nn[1]+Nn[1]+Nn[2]+Nn[2]+Nn[3]+Nn[3]),typeof Nn=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Nn)){var Qe=parseInt(Nn.substr(1),16);Nn=Qe>>16&255,hi=Qe>>8&255,Nt=255&Qe}if(hi===void 0||ce===void 0&&Nn===hi&&hi===Nt)if(typeof Nn=="string")or=Nn+" "+xe[0];else switch(Ut.precision){case 2:or=Ot(Nn/255)+" "+xe[0];break;case 3:default:or=Rt(Nn/255)+" "+xe[0]}else if(ce===void 0||x()(ce)==="object"){if(ce&&!isNaN(ce.a)&&ce.a===0)return or=["1.","1.","1.",xe[1]].join(" ");if(typeof Nn=="string")or=[Nn,hi,Nt,xe[1]].join(" ");else switch(Ut.precision){case 2:or=[Ot(Nn/255),Ot(hi/255),Ot(Nt/255),xe[1]].join(" ");break;default:case 3:or=[Rt(Nn/255),Rt(hi/255),Rt(Nt/255),xe[1]].join(" ")}}else if(typeof Nn=="string")or=[Nn,hi,Nt,ce,xe[2]].join(" ");else switch(Ut.precision){case 2:or=[Ot(Nn),Ot(hi),Ot(Nt),Ot(ce),xe[2]].join(" ");break;case 3:default:or=[Rt(Nn),Rt(hi),Rt(Nt),Rt(ce),xe[2]].join(" ")}return or},oo=vr.__private__.getFilters=function(){return st},Qo=vr.__private__.putStream=function(Ut){var or=(Ut=Ut||{}).data||"",Nn=Ut.filters||oo(),hi=Ut.alreadyAppliedFilters||[],Nt=Ut.addLength1||!1,ce=or.length,xe=Ut.objectId,Oe=function(vi){return vi};if(qr!==null&&xe===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");qr!==null&&(Oe=wa.encryptor(xe,0));var Qe={};Nn===!0&&(Nn=["FlateEncode"]);var Dt=Ut.additionalKeyValues||[],lr=(Qe=z.API.processDataByFilters!==void 0?z.API.processDataByFilters(or,Nn):{data:or,reverseChain:[]}).reverseChain+(Array.isArray(hi)?hi.join(" "):hi.toString());if(Qe.data.length!==0&&(Dt.push({key:"Length",value:Qe.data.length}),Nt===!0&&Dt.push({key:"Length1",value:ce})),lr.length!=0)if(lr.split("/").length-1==1)Dt.push({key:"Filter",value:lr});else{Dt.push({key:"Filter",value:"["+lr+"]"});for(var Zr=0;Zr<Dt.length;Zr+=1)if(Dt[Zr].key==="DecodeParms"){for(var mn=[],Dn=0;Dn<Qe.reverseChain.split("/").length-1;Dn+=1)mn.push("null");mn.push(Dt[Zr].value),Dt[Zr].value="["+mn.join(" ")+"]"}}kn("<<");for(var ui=0;ui<Dt.length;ui++)kn("/"+Dt[ui].key+" "+Dt[ui].value);kn(">>"),Qe.data.length!==0&&(kn("stream"),kn(Oe(Qe.data)),kn("endstream"))},mo=vr.__private__.putPage=function(Ut){var or=Ut.number,Nn=Ut.data,hi=Ut.objId,Nt=Ut.contentsObjId;Aa(hi,!0),kn("<</Type /Page"),kn("/Parent "+Ut.rootDictionaryObjId+" 0 R"),kn("/Resources "+Ut.resourceDictionaryObjId+" 0 R"),kn("/MediaBox ["+parseFloat(Cn(Ut.mediaBox.bottomLeftX))+" "+parseFloat(Cn(Ut.mediaBox.bottomLeftY))+" "+Cn(Ut.mediaBox.topRightX)+" "+Cn(Ut.mediaBox.topRightY)+"]"),Ut.cropBox!==null&&kn("/CropBox ["+Cn(Ut.cropBox.bottomLeftX)+" "+Cn(Ut.cropBox.bottomLeftY)+" "+Cn(Ut.cropBox.topRightX)+" "+Cn(Ut.cropBox.topRightY)+"]"),Ut.bleedBox!==null&&kn("/BleedBox ["+Cn(Ut.bleedBox.bottomLeftX)+" "+Cn(Ut.bleedBox.bottomLeftY)+" "+Cn(Ut.bleedBox.topRightX)+" "+Cn(Ut.bleedBox.topRightY)+"]"),Ut.trimBox!==null&&kn("/TrimBox ["+Cn(Ut.trimBox.bottomLeftX)+" "+Cn(Ut.trimBox.bottomLeftY)+" "+Cn(Ut.trimBox.topRightX)+" "+Cn(Ut.trimBox.topRightY)+"]"),Ut.artBox!==null&&kn("/ArtBox ["+Cn(Ut.artBox.bottomLeftX)+" "+Cn(Ut.artBox.bottomLeftY)+" "+Cn(Ut.artBox.topRightX)+" "+Cn(Ut.artBox.topRightY)+"]"),typeof Ut.userUnit=="number"&&Ut.userUnit!==1&&kn("/UserUnit "+Ut.userUnit),Wi.publish("putPage",{objId:hi,pageContext:Xi[or],pageNumber:or,page:Nn}),kn("/Contents "+Nt+" 0 R"),kn(">>"),kn("endobj");var ce=Nn.join(`
`);return ai===jr.ADVANCED&&(ce+=`
Q`),Aa(Nt,!0),Qo({data:ce,filters:oo(),objectId:Nt}),kn("endobj"),hi},To=vr.__private__.putPages=function(){var Ut,or,Nn=[];for(Ut=1;Ut<=ea;Ut++)Xi[Ut].objId=Oa(),Xi[Ut].contentsObjId=Oa();for(Ut=1;Ut<=ea;Ut++)Nn.push(mo({number:Ut,data:oa[Ut],objId:Xi[Ut].objId,contentsObjId:Xi[Ut].contentsObjId,mediaBox:Xi[Ut].mediaBox,cropBox:Xi[Ut].cropBox,bleedBox:Xi[Ut].bleedBox,trimBox:Xi[Ut].trimBox,artBox:Xi[Ut].artBox,userUnit:Xi[Ut].userUnit,rootDictionaryObjId:_a,resourceDictionaryObjId:Va}));Aa(_a,!0),kn("<</Type /Pages");var hi="/Kids [";for(or=0;or<ea;or++)hi+=Nn[or]+" 0 R ";kn(hi+"]"),kn("/Count "+ea),kn(">>"),kn("endobj"),Wi.publish("postPutPages")},ao=function(or){Wi.publish("putFont",{font:or,out:kn,newObject:ga,putStream:Qo}),or.isAlreadyPutted!==!0&&(or.objectNumber=ga(),kn("<<"),kn("/Type /Font"),kn("/BaseFont /"+B(or.postScriptName)),kn("/Subtype /Type1"),typeof or.encoding=="string"&&kn("/Encoding /"+or.encoding),kn("/FirstChar 32"),kn("/LastChar 255"),kn(">>"),kn("endobj"))},So=function(){for(var or in Sn)Sn.hasOwnProperty(or)&&(Qr===!1||Qr===!0&&gn.hasOwnProperty(or))&&ao(Sn[or])},bo=function(or){or.objectNumber=ga();var Nn=[];Nn.push({key:"Type",value:"/XObject"}),Nn.push({key:"Subtype",value:"/Form"}),Nn.push({key:"BBox",value:"["+[Cn(or.x),Cn(or.y),Cn(or.x+or.width),Cn(or.y+or.height)].join(" ")+"]"}),Nn.push({key:"Matrix",value:"["+or.matrix.toString()+"]"});var hi=or.pages[1].join(`
`);Qo({data:hi,additionalKeyValues:Nn,objectId:or.objectNumber}),kn("endobj")},to=function(){for(var or in Ji)Ji.hasOwnProperty(or)&&bo(Ji[or])},Jo=function(or,Nn){var hi,Nt=[],ce=1/(Nn-1);for(hi=0;hi<1;hi+=ce)Nt.push(hi);if(Nt.push(1),or[0].offset!=0){var xe={offset:0,color:or[0].color};or.unshift(xe)}if(or[or.length-1].offset!=1){var Oe={offset:1,color:or[or.length-1].color};or.push(Oe)}for(var Qe="",Dt=0,lr=0;lr<Nt.length;lr++){for(hi=Nt[lr];hi>or[Dt+1].offset;)Dt++;var Zr=or[Dt].offset,mn=(hi-Zr)/(or[Dt+1].offset-Zr),Dn=or[Dt].color,ui=or[Dt+1].color;Qe+=Qn(Math.round((1-mn)*Dn[0]+mn*ui[0]).toString(16))+Qn(Math.round((1-mn)*Dn[1]+mn*ui[1]).toString(16))+Qn(Math.round((1-mn)*Dn[2]+mn*ui[2]).toString(16))}return Qe.trim()},Uo=function(or,Nn){Nn||(Nn=21);var hi=ga(),Nt=Jo(or.colors,Nn),ce=[];ce.push({key:"FunctionType",value:"0"}),ce.push({key:"Domain",value:"[0.0 1.0]"}),ce.push({key:"Size",value:"["+Nn+"]"}),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:Nt,additionalKeyValues:ce,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:hi}),kn("endobj"),or.objectNumber=ga(),kn("<< /ShadingType "+or.type),kn("/ColorSpace /DeviceRGB");var xe="/Coords ["+Cn(parseFloat(or.coords[0]))+" "+Cn(parseFloat(or.coords[1]))+" ";or.type===2?xe+=Cn(parseFloat(or.coords[2]))+" "+Cn(parseFloat(or.coords[3])):xe+=Cn(parseFloat(or.coords[2]))+" "+Cn(parseFloat(or.coords[3]))+" "+Cn(parseFloat(or.coords[4]))+" "+Cn(parseFloat(or.coords[5])),kn(xe+="]"),or.matrix&&kn("/Matrix ["+or.matrix.toString()+"]"),kn("/Function "+hi+" 0 R"),kn("/Extend [true true]"),kn(">>"),kn("endobj")},wo=function(or,Nn){var hi=Oa(),Nt=ga();Nn.push({resourcesOid:hi,objectOid:Nt}),or.objectNumber=Nt;var ce=[];ce.push({key:"Type",value:"/Pattern"}),ce.push({key:"PatternType",value:"1"}),ce.push({key:"PaintType",value:"1"}),ce.push({key:"TilingType",value:"1"}),ce.push({key:"BBox",value:"["+or.boundingBox.map(Cn).join(" ")+"]"}),ce.push({key:"XStep",value:Cn(or.xStep)}),ce.push({key:"YStep",value:Cn(or.yStep)}),ce.push({key:"Resources",value:hi+" 0 R"}),or.matrix&&ce.push({key:"Matrix",value:"["+or.matrix.toString()+"]"}),Qo({data:or.stream,additionalKeyValues:ce,objectId:or.objectNumber}),kn("endobj")},ts=function(or){var Nn;for(Nn in pi)pi.hasOwnProperty(Nn)&&(pi[Nn]instanceof j?Uo(pi[Nn]):pi[Nn]instanceof K&&wo(pi[Nn],or))},Ia=function(or){for(var Nn in or.objectNumber=ga(),kn("<<"),or)switch(Nn){case"opacity":kn("/ca "+Ot(or[Nn]));break;case"stroke-opacity":kn("/CA "+Ot(or[Nn]))}kn(">>"),kn("endobj")},Oo=function(){var or;for(or in bi)bi.hasOwnProperty(or)&&Ia(bi[or])},Io=function(){for(var or in kn("/XObject <<"),Ji)Ji.hasOwnProperty(or)&&Ji[or].objectNumber>=0&&kn("/"+or+" "+Ji[or].objectNumber+" 0 R");Wi.publish("putXobjectDict"),kn(">>")},os=function(){wa.oid=ga(),kn("<<"),kn("/Filter /Standard"),kn("/V "+wa.v),kn("/R "+wa.r),kn("/U <"+wa.toHexString(wa.U)+">"),kn("/O <"+wa.toHexString(wa.O)+">"),kn("/P "+wa.P),kn(">>"),kn("endobj")},xo=function(){for(var or in kn("/Font <<"),Sn)Sn.hasOwnProperty(or)&&(Qr===!1||Qr===!0&&gn.hasOwnProperty(or))&&kn("/"+or+" "+Sn[or].objectNumber+" 0 R");kn(">>")},rs=function(){if(Object.keys(pi).length>0){for(var or in kn("/Shading <<"),pi)pi.hasOwnProperty(or)&&pi[or]instanceof j&&pi[or].objectNumber>=0&&kn("/"+or+" "+pi[or].objectNumber+" 0 R");Wi.publish("putShadingPatternDict"),kn(">>")}},Ho=function(or){if(Object.keys(pi).length>0){for(var Nn in kn("/Pattern <<"),pi)pi.hasOwnProperty(Nn)&&pi[Nn]instanceof vr.TilingPattern&&pi[Nn].objectNumber>=0&&pi[Nn].objectNumber<or&&kn("/"+Nn+" "+pi[Nn].objectNumber+" 0 R");Wi.publish("putTilingPatternDict"),kn(">>")}},_o=function(){if(Object.keys(bi).length>0){var or;for(or in kn("/ExtGState <<"),bi)bi.hasOwnProperty(or)&&bi[or].objectNumber>=0&&kn("/"+or+" "+bi[or].objectNumber+" 0 R");Wi.publish("putGStateDict"),kn(">>")}},uo=function(or){Aa(or.resourcesOid,!0),kn("<<"),kn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),xo(),rs(),Ho(or.objectOid),_o(),Io(),kn(">>"),kn("endobj")},Ha=function(){var or=[];So(),Oo(),to(),ts(or),Wi.publish("putResources"),or.forEach(uo),uo({resourcesOid:Va,objectOid:Number.MAX_SAFE_INTEGER}),Wi.publish("postPutResources")},mt=function(){Wi.publish("putAdditionalObjects");for(var or=0;or<Ri.length;or++){var Nn=Ri[or];Aa(Nn.objId,!0),kn(Nn.content),kn("endobj")}Wi.publish("postPutAdditionalObjects")},Tr=function(or){qn[or.fontName]=qn[or.fontName]||{},qn[or.fontName][or.fontStyle]=or.id},en=function(or,Nn,hi,Nt,ce){var xe={id:"F"+(Object.keys(Sn).length+1).toString(10),postScriptName:or,fontName:Nn,fontStyle:hi,encoding:Nt,isStandardFont:ce||!1,metadata:{}};return Wi.publish("addFont",{font:xe,instance:this}),Sn[xe.id]=xe,Tr(xe),xe.id},Jr=function(or){for(var Nn=0,hi=ta.length;Nn<hi;Nn++){var Nt=en.call(this,or[Nn][0],or[Nn][1],or[Nn][2],ta[Nn][3],!0);Qr===!1&&(gn[Nt]=!0);var ce=or[Nn][0].split("-");Tr({id:Nt,fontName:ce[0],fontStyle:ce[1]||""})}Wi.publish("addFonts",{fonts:Sn,dictionary:qn})},Jn=function(or){return or.foo=function(){try{return or.apply(this,arguments)}catch(Nt){var Nn=Nt.stack||"";~Nn.indexOf(" at ")&&(Nn=Nn.split(" at ")[1]);var hi="Error in function "+Nn.split(`
`)[0].split("<")[0]+": "+Nt.message;if(!m.console)throw new Error(hi);m.console.error(hi,Nt),m.alert&&alert(hi)}},or.foo.bar=or,or.foo},fn=function(or,Nn){var hi,Nt,ce,xe,Oe,Qe,Dt,lr,Zr;if(ce=(Nn=Nn||{}).sourceEncoding||"Unicode",Oe=Nn.outputEncoding,(Nn.autoencode||Oe)&&Sn[Or].metadata&&Sn[Or].metadata[ce]&&Sn[Or].metadata[ce].encoding&&(xe=Sn[Or].metadata[ce].encoding,!Oe&&Sn[Or].encoding&&(Oe=Sn[Or].encoding),!Oe&&xe.codePages&&(Oe=xe.codePages[0]),typeof Oe=="string"&&(Oe=xe[Oe]),Oe)){for(Dt=!1,Qe=[],hi=0,Nt=or.length;hi<Nt;hi++)(lr=Oe[or.charCodeAt(hi)])?Qe.push(String.fromCharCode(lr)):Qe.push(or[hi]),Qe[hi].charCodeAt(0)>>8&&(Dt=!0);or=Qe.join("")}for(hi=or.length;Dt===void 0&&hi!==0;)or.charCodeAt(hi-1)>>8&&(Dt=!0),hi--;if(!Dt)return or;for(Qe=Nn.noBOM?[]:[254,255],hi=0,Nt=or.length;hi<Nt;hi++){if((Zr=(lr=or.charCodeAt(hi))>>8)>>8)throw new Error("Character at position "+hi+" of string '"+or+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Qe.push(Zr),Qe.push(lr-(Zr<<8))}return String.fromCharCode.apply(void 0,Qe)},Yr=vr.__private__.pdfEscape=vr.pdfEscape=function(Ut,or){return fn(Ut,or).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ni=vr.__private__.beginPage=function(Ut){oa[++ea]=[],Xi[ea]={objId:0,contentsObjId:0,userUnit:Number(Et),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Ut[0]),topRightY:Number(Ut[1])}},li(ea),yi(oa[Ur])},nn=function(or,Nn){var hi,Nt,ce;switch(je=Nn||je,typeof or=="string"&&(hi=on(or.toLowerCase()),Array.isArray(hi)&&(Nt=hi[0],ce=hi[1])),Array.isArray(or)&&(Nt=or[0]*Nr,ce=or[1]*Nr),isNaN(Nt)&&(Nt=tt[0],ce=tt[1]),(Nt>14400||ce>14400)&&(d.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Nt=Math.min(14400,Nt),ce=Math.min(14400,ce)),tt=[Nt,ce],je.substr(0,1)){case"l":ce>Nt&&(tt=[ce,Nt]);break;case"p":Nt>ce&&(tt=[ce,Nt])}ni(tt),ss(Ao),kn(hs),ds!==0&&kn(ds+" J"),ks!==0&&kn(ks+" j"),Wi.publish("addPage",{pageNumber:ea})},zn=function(or){or>0&&or<=ea&&(oa.splice(or,1),Xi.splice(or,1),ea--,Ur>ea&&(Ur=ea),this.setPage(Ur))},li=function(or){or>0&&or<=ea&&(Ur=or)},ci=vr.__private__.getNumberOfPages=vr.getNumberOfPages=function(){return oa.length-1},si=function(or,Nn,hi){var Nt,ce=void 0;return hi=hi||{},or=or!==void 0?or:Sn[Or].fontName,Nn=Nn!==void 0?Nn:Sn[Or].fontStyle,Nt=or.toLowerCase(),qn[Nt]!==void 0&&qn[Nt][Nn]!==void 0?ce=qn[Nt][Nn]:qn[or]!==void 0&&qn[or][Nn]!==void 0?ce=qn[or][Nn]:hi.disableWarning===!1&&d.warn("Unable to look up font label for font '"+or+"', '"+Nn+"'. Refer to getFontList() for available fonts."),ce||hi.noFallback||(ce=qn.times[Nn])==null&&(ce=qn.times.normal),ce},Ci=vr.__private__.putInfo=function(){var Ut=ga(),or=function(Nt){return Nt};for(var Nn in qr!==null&&(or=wa.encryptor(Ut,0)),kn("<<"),kn("/Producer ("+Yr(or("jsPDF "+z.version))+")"),_t)_t.hasOwnProperty(Nn)&&_t[Nn]&&kn("/"+Nn.substr(0,1).toUpperCase()+Nn.substr(1)+" ("+Yr(or(_t[Nn]))+")");kn("/CreationDate ("+Yr(or(cr))+")"),kn(">>"),kn("endobj")},mi=vr.__private__.putCatalog=function(Ut){var or=(Ut=Ut||{}).rootDictionaryObjId||_a;switch(ga(),kn("<<"),kn("/Type /Catalog"),kn("/Pages "+or+" 0 R"),Lr||(Lr="fullwidth"),Lr){case"fullwidth":kn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":kn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":kn("/OpenAction [3 0 R /Fit]");break;case"original":kn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Nn=""+Lr;Nn.substr(Nn.length-1)==="%"&&(Lr=parseInt(Lr)/100),typeof Lr=="number"&&kn("/OpenAction [3 0 R /XYZ null null "+Ot(Lr)+"]")}switch(Xr||(Xr="continuous"),Xr){case"continuous":kn("/PageLayout /OneColumn");break;case"single":kn("/PageLayout /SinglePage");break;case"two":case"twoleft":kn("/PageLayout /TwoColumnLeft");break;case"tworight":kn("/PageLayout /TwoColumnRight")}mr&&kn("/PageMode /"+mr),Wi.publish("putCatalog"),kn(">>"),kn("endobj")},Ai=vr.__private__.putTrailer=function(){kn("trailer"),kn("<<"),kn("/Size "+($n+1)),kn("/Root "+$n+" 0 R"),kn("/Info "+($n-1)+" 0 R"),qr!==null&&kn("/Encrypt "+wa.oid+" 0 R"),kn("/ID [ <"+Ar+"> <"+Ar+"> ]"),kn(">>")},Ni=vr.__private__.putHeader=function(){kn("%PDF-"+Vn),kn("%\xBA\xDF\xAC\xE0")},ia=vr.__private__.putXRef=function(){var Ut="0000000000";kn("xref"),kn("0 "+($n+1)),kn("0000000000 65535 f ");for(var or=1;or<=$n;or++)typeof oi[or]=="function"?kn((Ut+oi[or]()).slice(-10)+" 00000 n "):oi[or]!==void 0?kn((Ut+oi[or]).slice(-10)+" 00000 n "):kn("0000000000 00000 n ")},Ki=vr.__private__.buildDocument=function(){ba(),yi(Ti),Wi.publish("buildDocument"),Ni(),To(),mt(),Ha(),qr!==null&&os(),Ci(),mi();var Ut=ki;return ia(),Ai(),kn("startxref"),kn(""+Ut),kn("%%EOF"),yi(oa[Ur]),Ti.join(`
`)},fa=vr.__private__.getBlob=function(Ut){return new Blob([ha(Ut)],{type:"application/pdf"})},Ya=vr.output=vr.__private__.output=Jn(function(Ut,or){switch(typeof(or=or||{})=="string"?or={filename:or}:or.filename=or.filename||"generated.pdf",Ut){case void 0:return Ki();case"save":vr.save(or.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 Nn="",hi=Ki();try{Nn=s(hi)}catch(Dn){Nn=s(unescape(encodeURIComponent(hi)))}return"data:application/pdf;filename="+or.filename+";base64,"+Nn;case"pdfobjectnewwindow":if(Object.prototype.toString.call(m)==="[object Window]"){var Nt="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ce=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';or.pdfObjectUrl&&(Nt=or.pdfObjectUrl,ce="");var xe='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Nt+'"'+ce+'></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(or)+");</script></body></html>",Oe=m.open();return Oe!==null&&Oe.document.write(xe),Oe}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="'+(or.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+or.filename+'" width="500px" height="400px" /></body></html>',Dt=m.open();if(Dt!==null){Dt.document.write(Qe);var lr=this;Dt.document.documentElement.querySelector("#pdfViewer").onload=function(){Dt.document.title=or.filename,Dt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(lr.output("bloburl"))}}return Dt}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 Zr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",or)+'"></iframe></body></html>',mn=m.open();if(mn!==null&&(mn.document.write(Zr),mn.document.title=or.filename),mn||typeof safari=="undefined")return mn;break;case"datauri":case"dataurl":return m.document.location.href=this.output("datauristring",or);default:return null}}),xa=function(or){return Array.isArray(ji)===!0&&ji.indexOf(or)>-1};switch(Xe){case"pt":Nr=1;break;case"mm":Nr=72/25.4;break;case"cm":Nr=72/2.54;break;case"in":Nr=72;break;case"px":Nr=xa("px_scaling")==1?.75:96/72;break;case"pc":case"em":Nr=12;break;case"ex":Nr=6;break;default:if(typeof Xe!="number")throw new Error("Invalid unit: "+Xe);Nr=Xe}var wa=null;di(),Pr();var Da=function(or){return qr!==null?wa.encryptor(or,0):function(Nn){return Nn}},ja=vr.__private__.getPageInfo=vr.getPageInfo=function(Ut){if(isNaN(Ut)||Ut%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Xi[Ut].objId,pageNumber:Ut,pageContext:Xi[Ut]}},ko=vr.__private__.getPageInfoByObjId=function(Ut){if(isNaN(Ut)||Ut%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var or in Xi)if(Xi[or].objId===Ut)break;return ja(or)},ro=vr.__private__.getCurrentPageInfo=vr.getCurrentPageInfo=function(){return{objId:Xi[Ur].objId,pageNumber:Ur,pageContext:Xi[Ur]}};vr.addPage=function(){return nn.apply(this,arguments),this},vr.setPage=function(){return li.apply(this,arguments),yi.call(this,oa[Ur]),this},vr.insertPage=function(Ut){return this.addPage(),this.movePage(Ur,Ut),this},vr.movePage=function(Ut,or){var Nn,hi;if(Ut>or){Nn=oa[Ut],hi=Xi[Ut];for(var Nt=Ut;Nt>or;Nt--)oa[Nt]=oa[Nt-1],Xi[Nt]=Xi[Nt-1];oa[or]=Nn,Xi[or]=hi,this.setPage(or)}else if(Ut<or){Nn=oa[Ut],hi=Xi[Ut];for(var ce=Ut;ce<or;ce++)oa[ce]=oa[ce+1],Xi[ce]=Xi[ce+1];oa[or]=Nn,Xi[or]=hi,this.setPage(or)}return this},vr.deletePage=function(){return zn.apply(this,arguments),this},vr.__private__.text=vr.text=function(Ut,or,Nn,hi,Nt){var ce,xe,Oe,Qe,Dt,lr,Zr,mn,Dn,ui=(hi=hi||{}).scope||this;if(typeof Ut=="number"&&typeof or=="number"&&(typeof Nn=="string"||Array.isArray(Nn))){var Si=Nn;Nn=or,or=Ut,Ut=Si}if(arguments[3]instanceof na==!1?(Oe=arguments[4],Qe=arguments[5],x()(Zr=arguments[3])==="object"&&Zr!==null||(typeof Oe=="string"&&(Qe=Oe,Oe=null),typeof Zr=="string"&&(Qe=Zr,Zr=null),typeof Zr=="number"&&(Oe=Zr,Zr=null),hi={flags:Zr,angle:Oe,align:Qe})):(Yn("The transform parameter of text() with a Matrix value"),Dn=Nt),isNaN(or)||isNaN(Nn)||Ut==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Ut.length===0)return ui;var vi="",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(" ")),Yr(ol,Zr)}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 Ut=="string")Bo=!0;else if(Array.isArray(Ut)){var As=Ut.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. "'+Ut+'" is not recognized.');typeof Ut=="string"&&(Ut=Ut.match(/[\r?\n]/)?Ut.split(/\r\n|\r|\n/g):[Ut]);var vo=ra/ui.internal.scaleFactor,Ms=vo*(sa-1);switch(hi.baseline){case"bottom":Nn-=Ms;break;case"top":Nn+=vo-Ms;break;case"hanging":Nn+=vo-2*Ms;break;case"middle":Nn+=vo/2-Ms}if((lr=hi.maxWidth||0)>0&&(typeof Ut=="string"?Ut=ui.splitTextToSize(Ut,lr):Object.prototype.toString.call(Ut)==="[object Array]"&&(Ut=Ut.reduce(function(ol,Ys){return ol.concat(ui.splitTextToSize(Ys,lr))},[]))),ce={text:Ut,x:or,y:Nn,options:hi,mutex:{pdfEscape:Yr,activeFontKey:Or,fonts:Sn,activeFontSize:ra}},Wi.publish("preProcessText",ce),Ut=ce.text,Oe=(hi=ce.options).angle,Dn instanceof na==!1&&Oe&&typeof Oe=="number"){Oe*=Math.PI/180,hi.rotationDirection===0&&(Oe=-Oe),ai===jr.ADVANCED&&(Oe=-Oe);var rl=Math.cos(Oe),gs=Math.sin(Oe);Dn=new na(rl,gs,-gs,rl,0,0)}else Oe&&Oe instanceof na&&(Dn=Oe);ai!==jr.ADVANCED||Dn||(Dn=La),(Dt=hi.charSpace||el)!==void 0&&(vi+=Cn(jt(Dt))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(mn=hi.horizontalScale)!==void 0&&(vi+=Cn(100*mn)+` 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?vi+=Ra+` Tr
`:Us!==-1&&(vi+=`0 Tr
`),Ra!==-1&&(fl.usedRenderingMode=Ra),Qe=hi.align||"left";var Os,Xs=ra*sa,Ql=ui.internal.pageSize.getWidth(),Ul=Sn[Or];Dt=hi.charSpace||el,lr=hi.maxWidth||0,Zr=Object.assign({autoencode:!0,noBOM:!0},hi.flags);var wl=[];if(Object.prototype.toString.call(Ut)==="[object Array]"){var Ts;xe=Wo(Ut),Qe!=="left"&&(Os=xe.map(function(ol){return ui.getStringUnitWidth(ol,{font:Ul,charSpace:Dt,fontSize:ra,doKerning:!1})*ra/Ua}));var Ws,Tl=0;if(Qe==="right"){or-=Os[0],Ut=[],Do=xe.length;for(var pl=0;pl<Do;pl++)pl===0?(Ws=Eo(or),Ts=zo(Nn)):(Ws=jt(Tl-Os[pl]),Ts=-Xs),Ut.push([xe[pl],Ws,Ts]),Tl=Os[pl]}else if(Qe==="center"){or-=Os[0]/2,Ut=[],Do=xe.length;for(var jo=0;jo<Do;jo++)jo===0?(Ws=Eo(or),Ts=zo(Nn)):(Ws=jt((Tl-Os[jo])/2),Ts=-Xs),Ut.push([xe[jo],Ws,Ts]),Tl=Os[jo]}else if(Qe==="left"){Ut=[],Do=xe.length;for(var yo=0;yo<Do;yo++)Ut.push(xe[yo])}else{if(Qe!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');Ut=[],Do=xe.length,lr=lr!==0?lr:Ql;for(var qo=0;qo<Do;qo++)Ts=qo===0?zo(Nn):-Xs,Ws=qo===0?Eo(or):0,qo<Do-1?wl.push(Cn(jt((lr-Os[qo])/(xe[qo].split(" ").length-1)))):wl.push(0),Ut.push([xe[qo],Ws,Ts])}}var ps=typeof hi.R2L=="boolean"?hi.R2L:Tn;ps===!0&&(Ut=Zo(Ut,function(ol,Ys,sl){return[ol.split("").reverse().join(""),Ys,sl]})),ce={text:Ut,x:or,y:Nn,options:hi,mutex:{pdfEscape:Yr,activeFontKey:Or,fonts:Sn,activeFontSize:ra}},Wi.publish("postProcessText",ce),Ut=ce.text,Qi=ce.mutex.isHex||!1;var Is=Sn[Or].encoding;Is!=="WinAnsiEncoding"&&Is!=="StandardEncoding"||(Ut=Zo(Ut,function(ol,Ys,sl){return[no(ol),Ys,sl]})),xe=Wo(Ut),Ut=[];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),ai===jr.ADVANCED&&(nl=Pa(new na(1,0,0,-1,0,0),nl)),xl=nl.join(" ")+` Tm
`):xl=Cn(Ys)+" "+Cn(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(or),Ls=zo(Nn)}wl!==void 0&&wl[kl]!==void 0&&(Bl=wl[kl]+` Tw
`),kl===0?Ut.push(Bl+jl(es,Ls,Dn)+Ps):_l===ml?Ut.push(Bl+Ps):_l===Rl&&Ut.push(Bl+jl(es,Ls,Dn)+Ps)}Ut=_l===ml?Ut.join(` Tj
T* `):Ut.join(` Tj
`),Ut+=` Tj
`;var Xl=`BT
/`;return Xl+=Or+" "+ra+` Tf
`,Xl+=Cn(ra*sa)+` TL
`,Xl+=Ns+`
`,Xl+=vi,Xl+=Ut,kn(Xl+="ET"),gn[Or]=!0,ui};var pa=vr.__private__.clip=vr.clip=function(Ut){return kn(Ut==="evenodd"?"W*":"W"),this};vr.clipEvenOdd=function(){return pa("evenodd")},vr.__private__.discardPath=vr.discardPath=function(){return kn("n"),this};var Ea=vr.__private__.isValidStyle=function(Ut){var or=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Ut)!==-1&&(or=!0),or};vr.__private__.setDefaultPathOperation=vr.setDefaultPathOperation=function(Ut){return Ea(Ut)&&(pr=Ut),this};var Fa=vr.__private__.getStyle=vr.getStyle=function(Ut){var or=pr;switch(Ut){case"D":case"S":or="S";break;case"F":or="f";break;case"FD":case"DF":or="B";break;case"f":case"f*":case"B":case"B*":or=Ut}return or},Ka=vr.close=function(){return kn("h"),this};vr.stroke=function(){return kn("S"),this},vr.fill=function(Ut){return lo("f",Ut),this},vr.fillEvenOdd=function(Ut){return lo("f*",Ut),this},vr.fillStroke=function(Ut){return lo("B",Ut),this},vr.fillStrokeEvenOdd=function(Ut){return lo("B*",Ut),this};var lo=function(or,Nn){x()(Nn)==="object"?Lo(Nn,or):kn(or)},so=function(or){or===null||ai===jr.ADVANCED&&or===void 0||(or=Fa(or),kn(or))};function Co(Ut,or,Nn,hi,Nt){var ce=new K(or||this.boundingBox,Nn||this.xStep,hi||this.yStep,this.gState,Nt||this.matrix);ce.stream=this.stream;var xe=Ut+"$$"+this.cloneIndex+++"$$";return va(xe,ce),ce}var Lo=function(or,Nn){var hi=Pi[or.key],Nt=pi[hi];if(Nt instanceof j)kn("q"),kn(is(Nn)),Nt.gState&&vr.setGState(Nt.gState),kn(or.matrix.toString()+" cm"),kn("/"+hi+" sh"),kn("Q");else if(Nt instanceof K){var ce=new na(1,0,0,-1,0,Ds());or.matrix&&(ce=ce.multiply(or.matrix||La),hi=Co.call(Nt,or.key,or.boundingBox,or.xStep,or.yStep,ce).id),kn("q"),kn("/Pattern cs"),kn("/"+hi+" scn"),Nt.gState&&vr.setGState(Nt.gState),kn(Nn),kn("Q")}},is=function(or){switch(or){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=vr.moveTo=function(Ut,or){return kn(Cn(jt(Ut))+" "+Cn(Lt(or))+" m"),this},Rs=vr.lineTo=function(Ut,or){return kn(Cn(jt(Ut))+" "+Cn(Lt(or))+" l"),this},Ko=vr.curveTo=function(Ut,or,Nn,hi,Nt,ce){return kn([Cn(jt(Ut)),Cn(Lt(or)),Cn(jt(Nn)),Cn(Lt(hi)),Cn(jt(Nt)),Cn(Lt(ce)),"c"].join(" ")),this};vr.__private__.line=vr.line=function(Ut,or,Nn,hi,Nt){if(isNaN(Ut)||isNaN(or)||isNaN(Nn)||isNaN(hi)||!Ea(Nt))throw new Error("Invalid arguments passed to jsPDF.line");return ai===jr.COMPAT?this.lines([[Nn-Ut,hi-or]],Ut,or,[1,1],Nt||"S"):this.lines([[Nn-Ut,hi-or]],Ut,or,[1,1]).stroke()},vr.__private__.lines=vr.lines=function(Ut,or,Nn,hi,Nt,ce){var xe,Oe,Qe,Dt,lr,Zr,mn,Dn,ui,Si,vi,Qi;if(typeof Ut=="number"&&(Qi=Nn,Nn=or,or=Ut,Ut=Qi),hi=hi||[1,1],ce=ce||!1,isNaN(or)||isNaN(Nn)||!Array.isArray(Ut)||!Array.isArray(hi)||!Ea(Nt)||typeof ce!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(cs(or,Nn),xe=hi[0],Oe=hi[1],Dt=Ut.length,Si=or,vi=Nn,Qe=0;Qe<Dt;Qe++)(lr=Ut[Qe]).length===2?(Si=lr[0]*xe+Si,vi=lr[1]*Oe+vi,Rs(Si,vi)):(Zr=lr[0]*xe+Si,mn=lr[1]*Oe+vi,Dn=lr[2]*xe+Si,ui=lr[3]*Oe+vi,Si=lr[4]*xe+Si,vi=lr[5]*Oe+vi,Ko(Zr,mn,Dn,ui,Si,vi));return ce&&Ka(),so(Nt),this},vr.path=function(Ut){for(var or=0;or<Ut.length;or++){var Nn=Ut[or],hi=Nn.c;switch(Nn.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},vr.__private__.rect=vr.rect=function(Ut,or,Nn,hi,Nt){if(isNaN(Ut)||isNaN(or)||isNaN(Nn)||isNaN(hi)||!Ea(Nt))throw new Error("Invalid arguments passed to jsPDF.rect");return ai===jr.COMPAT&&(hi=-hi),kn([Cn(jt(Ut)),Cn(Lt(or)),Cn(jt(Nn)),Cn(jt(hi)),"re"].join(" ")),so(Nt),this},vr.__private__.triangle=vr.triangle=function(Ut,or,Nn,hi,Nt,ce,xe){if(isNaN(Ut)||isNaN(or)||isNaN(Nn)||isNaN(hi)||isNaN(Nt)||isNaN(ce)||!Ea(xe))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Nn-Ut,hi-or],[Nt-Nn,ce-hi],[Ut-Nt,or-ce]],Ut,or,[1,1],xe,!0),this},vr.__private__.roundedRect=vr.roundedRect=function(Ut,or,Nn,hi,Nt,ce,xe){if(isNaN(Ut)||isNaN(or)||isNaN(Nn)||isNaN(hi)||isNaN(Nt)||isNaN(ce)||!Ea(xe))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Oe=4/3*(Math.SQRT2-1);return Nt=Math.min(Nt,.5*Nn),ce=Math.min(ce,.5*hi),this.lines([[Nn-2*Nt,0],[Nt*Oe,0,Nt,ce-ce*Oe,Nt,ce],[0,hi-2*ce],[0,ce*Oe,-Nt*Oe,ce,-Nt,ce],[2*Nt-Nn,0],[-Nt*Oe,0,-Nt,-ce*Oe,-Nt,-ce],[0,2*ce-hi],[0,-ce*Oe,Nt*Oe,-ce,Nt,-ce]],Ut+Nt,or,[1,1],xe,!0),this},vr.__private__.ellipse=vr.ellipse=function(Ut,or,Nn,hi,Nt){if(isNaN(Ut)||isNaN(or)||isNaN(Nn)||isNaN(hi)||!Ea(Nt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ce=4/3*(Math.SQRT2-1)*Nn,xe=4/3*(Math.SQRT2-1)*hi;return cs(Ut+Nn,or),Ko(Ut+Nn,or-xe,Ut+ce,or-hi,Ut,or-hi),Ko(Ut-ce,or-hi,Ut-Nn,or-xe,Ut-Nn,or),Ko(Ut-Nn,or+xe,Ut-ce,or+hi,Ut,or+hi),Ko(Ut+ce,or+hi,Ut+Nn,or+xe,Ut+Nn,or),so(Nt),this},vr.__private__.circle=vr.circle=function(Ut,or,Nn,hi){if(isNaN(Ut)||isNaN(or)||isNaN(Nn)||!Ea(hi))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Ut,or,Nn,Nn,hi)},vr.setFont=function(Ut,or,Nn){return Nn&&(or=rn(or,Nn)),Or=si(Ut,or,{disableWarning:!1}),this};var as=vr.__private__.getFont=vr.getFont=function(){return Sn[si.apply(vr,arguments)]};vr.__private__.getFontList=vr.getFontList=function(){var Ut,or,Nn={};for(Ut in qn)if(qn.hasOwnProperty(Ut))for(or in Nn[Ut]=[],qn[Ut])qn[Ut].hasOwnProperty(or)&&Nn[Ut].push(or);return Nn},vr.addFont=function(Ut,or,Nn,hi,Nt){var ce=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ce.indexOf(arguments[3])!==-1?Nt=arguments[3]:arguments[3]&&ce.indexOf(arguments[3])==-1&&(Nn=rn(Nn,hi)),Nt=Nt||"Identity-H",en.call(this,Ut,or,Nn,Nt)};var co,Ao=nt.lineWidth||.200025,$a=vr.__private__.getLineWidth=vr.getLineWidth=function(){return Ao},ss=vr.__private__.setLineWidth=vr.setLineWidth=function(Ut){return Ao=Ut,kn(Cn(jt(Ut))+" w"),this};vr.__private__.setLineDash=z.API.setLineDash=z.API.setLineDashPattern=function(Ut,or){if(Ut=Ut||[],or=or||0,isNaN(or)||!Array.isArray(Ut))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Ut=Ut.map(function(Nn){return Cn(jt(Nn))}).join(" "),or=Cn(jt(or)),kn("["+Ut+"] "+or+" d"),this};var _s=vr.__private__.getLineHeight=vr.getLineHeight=function(){return ra*co};vr.__private__.getLineHeight=vr.getLineHeight=function(){return ra*co};var Fo=vr.__private__.setLineHeightFactor=vr.setLineHeightFactor=function(Ut){return typeof(Ut=Ut||1.15)=="number"&&(co=Ut),this},il=vr.__private__.getLineHeightFactor=vr.getLineHeightFactor=function(){return co};Fo(nt.lineHeight);var Eo=vr.__private__.getHorizontalCoordinate=function(Ut){return jt(Ut)},zo=vr.__private__.getVerticalCoordinate=function(Ut){return ai===jr.ADVANCED?Ut:Xi[Ur].mediaBox.topRightY-Xi[Ur].mediaBox.bottomLeftY-jt(Ut)},Fs=vr.__private__.getHorizontalCoordinateString=vr.getHorizontalCoordinateString=function(Ut){return Cn(Eo(Ut))},ms=vr.__private__.getVerticalCoordinateString=vr.getVerticalCoordinateString=function(Ut){return Cn(zo(Ut))},hs=nt.strokeColor||"0 G";vr.__private__.getStrokeColor=vr.getDrawColor=function(){return Fi(hs)},vr.__private__.setStrokeColor=vr.setDrawColor=function(Ut,or,Nn,hi){return hs=io({ch1:Ut,ch2:or,ch3:Nn,ch4:hi,pdfColorType:"draw",precision:2}),kn(hs),this};var wn=nt.fillColor||"0 g";vr.__private__.getFillColor=vr.getFillColor=function(){return Fi(wn)},vr.__private__.setFillColor=vr.setFillColor=function(Ut,or,Nn,hi){return wn=io({ch1:Ut,ch2:or,ch3:Nn,ch4:hi,pdfColorType:"fill",precision:2}),kn(wn),this};var Ns=nt.textColor||"0 g",Ll=vr.__private__.getTextColor=vr.getTextColor=function(){return Fi(Ns)};vr.__private__.setTextColor=vr.setTextColor=function(Ut,or,Nn,hi){return Ns=io({ch1:Ut,ch2:or,ch3:Nn,ch4:hi,pdfColorType:"text",precision:3}),this};var el=nt.charSpace,Gs=vr.__private__.getCharSpace=vr.getCharSpace=function(){return parseFloat(el||0)};vr.__private__.setCharSpace=vr.setCharSpace=function(Ut){if(isNaN(Ut))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return el=Ut,this};var ds=0;vr.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},vr.__private__.setLineCap=vr.setLineCap=function(Ut){var or=vr.CapJoinStyles[Ut];if(or===void 0)throw new Error("Line cap style of '"+Ut+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ds=or,kn(or+" J"),this};var ks=0;vr.__private__.setLineJoin=vr.setLineJoin=function(Ut){var or=vr.CapJoinStyles[Ut];if(or===void 0)throw new Error("Line join style of '"+Ut+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ks=or,kn(or+" j"),this},vr.__private__.setLineMiterLimit=vr.__private__.setMiterLimit=vr.setLineMiterLimit=vr.setMiterLimit=function(Ut){if(Ut=Ut||0,isNaN(Ut))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return kn(Cn(jt(Ut))+" M"),this},vr.GState=X,vr.setGState=function(Ut){(Ut=typeof Ut=="string"?bi[Ii[Ut]]:Qs(null,Ut)).equals(zi)||(kn("/"+Ut.id+" gs"),zi=Ut)};var Qs=function(or,Nn){if(!or||!Ii[or]){var hi=!1;for(var Nt in bi)if(bi.hasOwnProperty(Nt)&&bi[Nt].equals(Nn)){hi=!0;break}if(hi)Nn=bi[Nt];else{var ce="GS"+(Object.keys(bi).length+1).toString(10);bi[ce]=Nn,Nn.id=ce}return or&&(Ii[or]=Nn.id),Wi.publish("addGState",Nn),Nn}};vr.addGState=function(Ut,or){return Qs(Ut,or),this},vr.saveGraphicsState=function(){return kn("q"),Wn.push({key:Or,size:ra,color:Ns}),this},vr.restoreGraphicsState=function(){kn("Q");var Ut=Wn.pop();return Or=Ut.key,ra=Ut.size,Ns=Ut.color,zi=null,this},vr.setCurrentTransformationMatrix=function(Ut){return kn(Ut.toString()+" cm"),this},vr.comment=function(Ut){return kn("#"+Ut),this};var tl=function(or,Nn){var hi=or||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return hi},set:function(Oe){isNaN(Oe)||(hi=parseFloat(Oe))}});var Nt=Nn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Nt},set:function(Oe){isNaN(Oe)||(Nt=parseFloat(Oe))}});var ce="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ce},set:function(Oe){ce=Oe.toString()}}),this},xs=function(or,Nn,hi,Nt){tl.call(this,or,Nn),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=Nt||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=Ur,this.pages=oa.slice(0),this.pagesContext=Xi.slice(0),this.x=tn,this.y=xn,this.matrix=Ln,this.width=No(Ur),this.height=Ds(Ur),this.outputDestination=aa,this.id="",this.objectNumber=-1};Bs.prototype.restore=function(){ea=this.page,Ur=this.currentPage,Xi=this.pagesContext,oa=this.pages,tn=this.x,xn=this.y,Ln=this.matrix,fs(Ur,this.width),go(Ur,this.height),aa=this.outputDestination};var al=function(or,Nn,hi,Nt,ce){Ca.push(new Bs),ea=Ur=0,oa=[],tn=or,xn=Nn,Ln=ce,ni([hi,Nt])},Js=function(or){if(ca[or])Ca.pop().restore();else{var Nn=new Bs,hi="Xo"+(Object.keys(Ji).length+1).toString(10);Nn.id=hi,ca[or]=hi,Ji[hi]=Nn,Wi.publish("addFormObject",Nn),Ca.pop().restore()}};for(var Vo in vr.beginFormObject=function(Ut,or,Nn,hi,Nt){return al(Ut,or,Nn,hi,Nt),this},vr.endFormObject=function(Ut){return Js(Ut),this},vr.doFormObject=function(Ut,or){var Nn=Ji[ca[Ut]];return kn("q"),kn(or.toString()+" cm"),kn("/"+Nn.id+" Do"),kn("Q"),this},vr.getFormObject=function(Ut){var or=Ji[ca[Ut]];return{x:or.x,y:or.y,width:or.width,height:or.height,matrix:or.matrix}},vr.save=function(Ut,or){return Ut=Ut||"generated.pdf",(or=or||{}).returnPromise=or.returnPromise||!1,or.returnPromise===!1?(e(fa(Ki()),Ut),typeof e.unload=="function"&&m.setTimeout&&setTimeout(e.unload,911),this):new Promise(function(Nn,hi){try{var Nt=e(fa(Ki()),Ut);typeof e.unload=="function"&&m.setTimeout&&setTimeout(e.unload,911),Nn(Nt)}catch(ce){hi(ce.message)}})},z.API)z.API.hasOwnProperty(Vo)&&(Vo==="events"&&z.API.events.length?function(Ut,or){var Nn,hi,Nt;for(Nt=or.length-1;Nt!==-1;Nt--)Nn=or[Nt][0],hi=or[Nt][1],Ut.subscribe.apply(Ut,[Nn].concat(typeof hi=="function"?[hi]:hi))}(Wi,z.API.events):vr[Vo]=z.API[Vo]);var No=vr.getPageWidth=function(Ut){return(Xi[Ut=Ut||Ur].mediaBox.topRightX-Xi[Ut].mediaBox.bottomLeftX)/Nr},fs=vr.setPageWidth=function(Ut,or){Xi[Ut].mediaBox.topRightX=or*Nr+Xi[Ut].mediaBox.bottomLeftX},Ds=vr.getPageHeight=function(Ut){return(Xi[Ut=Ut||Ur].mediaBox.topRightY-Xi[Ut].mediaBox.bottomLeftY)/Nr},go=vr.setPageHeight=function(Ut,or){Xi[Ut].mediaBox.topRightY=or*Nr+Xi[Ut].mediaBox.bottomLeftY};return vr.internal={pdfEscape:Yr,getStyle:Fa,getFont:as,getFontSize:xr,getCharSpace:Gs,getTextColor:Ll,getLineHeight:_s,getLineHeightFactor:il,getLineWidth:$a,write:Ui,getHorizontalCoordinate:Eo,getVerticalCoordinate:zo,getCoordinateString:Fs,getVerticalCoordinateString:ms,collections:{},newObject:ga,newAdditionalObject:Xa,newObjectDeferred:Oa,newObjectDeferredBegin:Aa,getFilters:oo,putStream:Qo,events:Wi,scaleFactor:Nr,pageSize:{getWidth:function(){return No(Ur)},setWidth:function(or){fs(Ur,or)},getHeight:function(){return Ds(Ur)},setHeight:function(or){go(Ur,or)}},encryptionOptions:qr,encryption:wa,getEncryptor:Da,output:Ya,getNumberOfPages:ci,pages:oa,out:kn,f2:Ot,f3:Rt,getPageInfo:ja,getPageInfoByObjId:ko,getCurrentPageInfo:ro,getPDFVersion:kr,Point:tl,Rectangle:xs,Matrix:na,hasHotfix:xa},Object.defineProperty(vr.internal.pageSize,"width",{get:function(){return No(Ur)},set:function(or){fs(Ur,or)},enumerable:!0,configurable:!0}),Object.defineProperty(vr.internal.pageSize,"height",{get:function(){return Ds(Ur)},set:function(or){go(Ur,or)},enumerable:!0,configurable:!0}),Jr.call(vr,ta),Or="F1",nn(tt,je),Wi.publish("initialized"),vr}M.prototype.lsbFirstWord=function(nt){return String.fromCharCode(nt>>0&255,nt>>8&255,nt>>16&255,nt>>24&255)},M.prototype.toHexString=function(nt){return nt.split("").map(function(Le){return("0"+(255&Le.charCodeAt(0)).toString(16)).slice(-2)}).join("")},M.prototype.hexToBytes=function(nt){for(var Le=[],je=0;je<nt.length;je+=2)Le.push(String.fromCharCode(parseInt(nt.substr(je,2),16)));return Le.join("")},M.prototype.processOwnerPassword=function(nt,Le){return I(T(Le).substr(0,5),nt)},M.prototype.encryptor=function(nt,Le){var je=T(this.encryptionKey+String.fromCharCode(255&nt,nt>>8&255,nt>>16&255,255&Le,Le>>8&255)).substr(0,10);return function(Xe){return I(je,Xe)}},X.prototype.equals=function(nt){var Le,je="id,objectNumber,equals";if(!nt||x()(nt)!==x()(this))return!1;var Xe=0;for(Le in this)if(!(je.indexOf(Le)>=0)){if(this.hasOwnProperty(Le)&&!nt.hasOwnProperty(Le))return!1;if(this[Le]!==nt[Le])return!1;Xe++}for(Le in nt)nt.hasOwnProperty(Le)&&je.indexOf(Le)<0&&Xe--;return Xe===0},z.API={events:[]},z.version="2.5.1";var V=z.API,Q=1,G=function(Le){return Le.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},te=function(Le){return Le.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},q=function(Le){return Le.toFixed(2)},le=function(Le){return Le.toFixed(5)};V.__acroform__={};var re=function(Le,je){Le.prototype=Object.create(je.prototype),Le.prototype.constructor=Le},we=function(Le){return Le*Q},Ie=function(Le){var je=new ke,Xe=se.internal.getHeight(Le)||0,tt=se.internal.getWidth(Le)||0;return je.BBox=[0,0,Number(q(tt)),Number(q(Xe))],je},Me=V.__acroform__.setBit=function(nt,Le){if(nt=nt||0,Le=Le||0,isNaN(nt)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return nt|=1<<Le},Je=V.__acroform__.clearBit=function(nt,Le){if(nt=nt||0,Le=Le||0,isNaN(nt)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return nt&=~(1<<Le)},Ve=V.__acroform__.getBit=function(nt,Le){if(isNaN(nt)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(nt&1<<Le)==0?0:1},ut=V.__acroform__.getBitForPdf=function(nt,Le){if(isNaN(nt)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Ve(nt,Le-1)},Fe=V.__acroform__.setBitForPdf=function(nt,Le){if(isNaN(nt)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Me(nt,Le-1)},ae=V.__acroform__.clearBitForPdf=function(nt,Le){if(isNaN(nt)||isNaN(Le))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Je(nt,Le-1)},at=V.__acroform__.calculateCoordinates=function(nt,Le){var je=Le.internal.getHorizontalCoordinate,Xe=Le.internal.getVerticalCoordinate,tt=nt[0],Ze=nt[1],st=nt[2],Et=nt[3],gt={};return gt.lowerLeft_X=je(tt)||0,gt.lowerLeft_Y=Xe(Ze+Et)||0,gt.upperRight_X=je(tt+st)||0,gt.upperRight_Y=Xe(Ze)||0,[Number(q(gt.lowerLeft_X)),Number(q(gt.lowerLeft_Y)),Number(q(gt.upperRight_X)),Number(q(gt.upperRight_Y))]},he=function(Le){if(Le.appearanceStreamContent)return Le.appearanceStreamContent;if(Le.V||Le.DV){var je=[],Xe=Le._V||Le.DV,tt=J(Le,Xe),Ze=Le.scope.internal.getFont(Le.fontName,Le.fontStyle).id;je.push("/Tx BMC"),je.push("q"),je.push("BT"),je.push(Le.scope.__private__.encodeColorString(Le.color)),je.push("/"+Ze+" "+q(tt.fontSize)+" Tf"),je.push("1 0 0 1 0 0 Tm"),je.push(tt.text),je.push("ET"),je.push("Q"),je.push("EMC");var st=Ie(Le);return st.scope=Le.scope,st.stream=je.join(`
`),st}},J=function(Le,je){var Xe=Le.fontSize===0?Le.maxFontSize:Le.fontSize,tt={text:"",fontSize:""},Ze=(je=(je=je.substr(0,1)=="("?je.substr(1):je).substr(je.length-1)==")"?je.substr(0,je.length-1):je).split(" ");Ze=Le.multiline?Ze.map(function(jt){return jt.split(`
`)}):Ze.map(function(jt){return[jt]});var st=Xe,Et=se.internal.getHeight(Le)||0;Et=Et<0?-Et:Et;var gt=se.internal.getWidth(Le)||0;gt=gt<0?-gt:gt;var pr=function(zt,Lt,cr){if(zt+1<Ze.length){var Ar=Lt+" "+Ze[zt+1][0];return Y(Ar,Le,cr).width<=gt-4}return!1};st++;e:for(;st>0;){je="",st--;var qr,Qr,gn=Y("3",Le,st).height,vr=Le.multiline?Et-st:(Et-gn)/2,Vn=vr+=2,kr=0,Bn=0,on=0;if(st<=0){je=`(...) Tj
`,je+="% Width of Text: "+Y(je,Le,st=12).width+", FieldWidth:"+gt+`
`;break}for(var jr="",ai=0,Oi=0;Oi<Ze.length;Oi++)if(Ze.hasOwnProperty(Oi)){var Gi=!1;if(Ze[Oi].length!==1&&on!==Ze[Oi].length-1){if((gn+2)*(ai+2)+2>Et)continue e;jr+=Ze[Oi][on],Gi=!0,Bn=Oi,Oi--}else{jr=(jr+=Ze[Oi][on]+" ").substr(jr.length-1)==" "?jr.substr(0,jr.length-1):jr;var rn=parseInt(Oi),Cn=pr(rn,jr,st),Yn=Oi>=Ze.length-1;if(Cn&&!Yn){jr+=" ",on=0;continue}if(Cn||Yn){if(Yn)Bn=rn;else if(Le.multiline&&(gn+2)*(ai+2)+2>Et)continue e}else{if(!Le.multiline)continue e;if((gn+2)*(ai+2)+2>Et)continue e;Bn=rn}}for(var Gt="",Ot=kr;Ot<=Bn;Ot++){var Rt=Ze[Ot];if(Le.multiline){if(Ot===Bn){Gt+=Rt[on]+" ",on=(on+1)%Rt.length;continue}if(Ot===kr){Gt+=Rt[Rt.length-1]+" ";continue}}Gt+=Rt[0]+" "}switch(Gt=Gt.substr(Gt.length-1)==" "?Gt.substr(0,Gt.length-1):Gt,Qr=Y(Gt,Le,st).width,Le.textAlign){case"right":qr=gt-Qr-2;break;case"center":qr=(gt-Qr)/2;break;case"left":default:qr=2}je+=q(qr)+" "+q(Vn)+` Td
`,je+="("+G(Gt)+`) Tj
`,je+=-q(qr)+` 0 Td
`,Vn=-(st+2),Qr=0,kr=Gi?Bn:Bn+1,ai++,jr=""}break}return tt.text=je,tt.fontSize=st,tt},Y=function(Le,je,Xe){var tt=je.scope.internal.getFont(je.fontName,je.fontStyle),Ze=je.scope.getStringUnitWidth(Le,{font:tt,fontSize:parseFloat(Xe),charSpace:0})*parseFloat(Xe);return{height:je.scope.getStringUnitWidth("3",{font:tt,fontSize:parseFloat(Xe),charSpace:0})*parseFloat(Xe)*1.5,width:Ze}},$={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},de=function(Le,je){var Xe={type:"reference",object:Le};je.internal.getPageInfo(Le.page).pageContext.annotations.find(function(tt){return tt.type===Xe.type&&tt.object===Xe.object})===void 0&&je.internal.getPageInfo(Le.page).pageContext.annotations.push(Xe)},be=function(Le,je){for(var Xe in Le)if(Le.hasOwnProperty(Xe)){var tt=Xe,Ze=Le[Xe];je.internal.newObjectDeferredBegin(Ze.objId,!0),x()(Ze)==="object"&&typeof Ze.putStream=="function"&&Ze.putStream(),delete Le[tt]}},Ce=function(Le,je){if(je.scope=Le,Le.internal!==void 0&&(Le.internal.acroformPlugin===void 0||Le.internal.acroformPlugin.isInitialized===!1)){if(xt.FieldNum=0,Le.internal.acroformPlugin=JSON.parse(JSON.stringify($)),Le.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Q=Le.internal.scaleFactor,Le.internal.acroformPlugin.acroFormDictionaryRoot=new rt,Le.internal.acroformPlugin.acroFormDictionaryRoot.scope=Le,Le.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Le.internal.events.subscribe("postPutResources",function(){!function(Xe){Xe.internal.events.unsubscribe(Xe.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Xe.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Xe.internal.acroformPlugin.printedOut=!0}(Le)}),Le.internal.events.subscribe("buildDocument",function(){!function(Xe){Xe.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var tt=Xe.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var Ze in tt)if(tt.hasOwnProperty(Ze)){var st=tt[Ze];st.objId=void 0,st.hasAnnotation&&de(st,Xe)}}(Le)}),Le.internal.events.subscribe("putCatalog",function(){!function(Xe){if(Xe.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Xe.internal.write("/AcroForm "+Xe.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(Le)}),Le.internal.events.subscribe("postPutPages",function(Xe){!function(tt,Ze){var st=!tt;for(var Et in tt||(Ze.internal.newObjectDeferredBegin(Ze.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),Ze.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),tt=tt||Ze.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(tt.hasOwnProperty(Et)){var gt=tt[Et],pr=[],qr=gt.Rect;if(gt.Rect&&(gt.Rect=at(gt.Rect,Ze)),Ze.internal.newObjectDeferredBegin(gt.objId,!0),gt.DA=se.createDefaultAppearanceStream(gt),x()(gt)==="object"&&typeof gt.getKeyValueListForStream=="function"&&(pr=gt.getKeyValueListForStream()),gt.Rect=qr,gt.hasAppearanceStream&&!gt.appearanceStreamContent){var Qr=he(gt);pr.push({key:"AP",value:"<</N "+Qr+">>"}),Ze.internal.acroformPlugin.xForms.push(Qr)}if(gt.appearanceStreamContent){var gn="";for(var vr in gt.appearanceStreamContent)if(gt.appearanceStreamContent.hasOwnProperty(vr)){var Vn=gt.appearanceStreamContent[vr];if(gn+="/"+vr+" ",gn+="<<",Object.keys(Vn).length>=1||Array.isArray(Vn)){for(var Et in Vn)if(Vn.hasOwnProperty(Et)){var kr=Vn[Et];typeof kr=="function"&&(kr=kr.call(Ze,gt)),gn+="/"+Et+" "+kr+" ",Ze.internal.acroformPlugin.xForms.indexOf(kr)>=0||Ze.internal.acroformPlugin.xForms.push(kr)}}else typeof(kr=Vn)=="function"&&(kr=kr.call(Ze,gt)),gn+="/"+Et+" "+kr,Ze.internal.acroformPlugin.xForms.indexOf(kr)>=0||Ze.internal.acroformPlugin.xForms.push(kr);gn+=">>"}pr.push({key:"AP",value:`<<
`+gn+">>"})}Ze.internal.putStream({additionalKeyValues:pr,objectId:gt.objId}),Ze.internal.out("endobj")}st&&be(Ze.internal.acroformPlugin.xForms,Ze)}(Xe,Le)}),Le.internal.acroformPlugin.isInitialized=!0}},Be=V.__acroform__.arrayToPdfArray=function(nt,Le,je){var Xe=function(Et){return Et};if(Array.isArray(nt)){for(var tt="[",Ze=0;Ze<nt.length;Ze++)switch(Ze!==0&&(tt+=" "),x()(nt[Ze])){case"boolean":case"number":case"object":tt+=nt[Ze].toString();break;case"string":nt[Ze].substr(0,1)!=="/"?(Le!==void 0&&je&&(Xe=je.internal.getEncryptor(Le)),tt+="("+G(Xe(nt[Ze].toString()))+")"):tt+=nt[Ze].toString()}return tt+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},fe=function(Le,je,Xe){var tt=function(st){return st};return je!==void 0&&Xe&&(tt=Xe.internal.getEncryptor(je)),(Le=Le||"").toString(),Le="("+G(tt(Le))+")"},Se=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(je){this._objId=je}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Se.prototype.toString=function(){return this.objId+" 0 R"},Se.prototype.putStream=function(){var nt=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:nt,objectId:this.objId}),this.scope.internal.out("endobj")},Se.prototype.getKeyValueListForStream=function(){var nt=[],Le=Object.getOwnPropertyNames(this).filter(function(Ze){return Ze!="content"&&Ze!="appearanceStreamContent"&&Ze!="scope"&&Ze!="objId"&&Ze.substring(0,1)!="_"});for(var je in Le)if(Object.getOwnPropertyDescriptor(this,Le[je]).configurable===!1){var Xe=Le[je],tt=this[Xe];tt&&(Array.isArray(tt)?nt.push({key:Xe,value:Be(tt,this.objId,this.scope)}):tt instanceof Se?(tt.scope=this.scope,nt.push({key:Xe,value:tt.objId+" 0 R"})):typeof tt!="function"&&nt.push({key:Xe,value:tt}))}return nt};var ke=function(){Se.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var Le,je=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return je},set:function(tt){je=tt}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(tt){Le=tt.trim()},get:function(){return Le||null}})};re(ke,Se);var rt=function(){Se.call(this);var Le,je=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return je.length>0?je:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return je}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Le){var tt=function(st){return st};return this.scope&&(tt=this.scope.internal.getEncryptor(this.objId)),"("+G(tt(Le))+")"}},set:function(tt){Le=tt}})};re(rt,Se);var xt=function nt(){Se.call(this);var Le=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return Le},set:function(jr){if(isNaN(jr))throw new Error('Invalid value "'+jr+'" for attribute F supplied.');Le=jr}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(Le,3))},set:function(jr){Boolean(jr)===!0?this.F=Fe(Le,3):this.F=ae(Le,3)}});var je=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return je},set:function(jr){if(isNaN(jr))throw new Error('Invalid value "'+jr+'" for attribute Ff supplied.');je=jr}});var Xe=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Xe.length!==0)return Xe},set:function(jr){Xe=jr!==void 0?jr:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Xe||isNaN(Xe[0])?0:Xe[0]},set:function(jr){Xe[0]=jr}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Xe||isNaN(Xe[1])?0:Xe[1]},set:function(jr){Xe[1]=jr}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Xe||isNaN(Xe[2])?0:Xe[2]},set:function(jr){Xe[2]=jr}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Xe||isNaN(Xe[3])?0:Xe[3]},set:function(jr){Xe[3]=jr}});var tt="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return tt},set:function(jr){switch(jr){case"/Btn":case"/Tx":case"/Ch":case"/Sig":tt=jr;break;default:throw new Error('Invalid value "'+jr+'" 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 Pt)return;Ze="FieldObject"+nt.FieldNum++}var jr=function(Oi){return Oi};return this.scope&&(jr=this.scope.internal.getEncryptor(this.objId)),"("+G(jr(Ze))+")"},set:function(jr){Ze=jr.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return Ze},set:function(jr){Ze=jr}});var st="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return st},set:function(jr){st=jr}});var Et="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Et},set:function(jr){Et=jr}});var gt=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return gt},set:function(jr){gt=jr}});var pr=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return pr===void 0?50/Q:pr},set:function(jr){pr=jr}});var qr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return qr},set:function(jr){qr=jr}});var Qr="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Qr||this instanceof Pt||this instanceof Ge))return fe(Qr,this.objId,this.scope)},set:function(jr){jr=jr.toString(),Qr=jr}});var gn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(gn)return this instanceof Xt==!1?fe(gn,this.objId,this.scope):gn},set:function(jr){jr=jr.toString(),gn=this instanceof Xt==!1?jr.substr(0,1)==="("?te(jr.substr(1,jr.length-2)):te(jr):jr}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Xt==!0?te(gn.substr(1,gn.length-1)):gn},set:function(jr){jr=jr.toString(),gn=this instanceof Xt==!0?"/"+jr:jr}});var vr=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(vr)return vr},set:function(jr){this.V=jr}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(vr)return this instanceof Xt==!1?fe(vr,this.objId,this.scope):vr},set:function(jr){jr=jr.toString(),vr=this instanceof Xt==!1?jr.substr(0,1)==="("?te(jr.substr(1,jr.length-2)):te(jr):jr}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Xt==!0?te(vr.substr(1,vr.length-1)):vr},set:function(jr){jr=jr.toString(),vr=this instanceof Xt==!0?"/"+jr:jr}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var Vn,kr=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return kr},set:function(jr){jr=Boolean(jr),kr=jr}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(Vn)return Vn},set:function(jr){Vn=jr}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,1))},set:function(jr){Boolean(jr)===!0?this.Ff=Fe(this.Ff,1):this.Ff=ae(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,2))},set:function(jr){Boolean(jr)===!0?this.Ff=Fe(this.Ff,2):this.Ff=ae(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,3))},set:function(jr){Boolean(jr)===!0?this.Ff=Fe(this.Ff,3):this.Ff=ae(this.Ff,3)}});var Bn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(Bn!==null)return Bn},set:function(jr){if([0,1,2].indexOf(jr)===-1)throw new Error('Invalid value "'+jr+'" for attribute Q supplied.');Bn=jr}}),Object.defineProperty(this,"textAlign",{get:function(){var jr;switch(Bn){case 0:default:jr="left";break;case 1:jr="center";break;case 2:jr="right"}return jr},configurable:!0,enumerable:!0,set:function(jr){switch(jr){case"right":case 2:Bn=2;break;case"center":case 1:Bn=1;break;case"left":case 0:default:Bn=0}}})};re(xt,Se);var ht=function(){xt.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Le=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Le},set:function(tt){Le=tt}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Le},set:function(tt){Le=tt}});var je=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Be(je,this.objId,this.scope)},set:function(tt){var Ze,st;st=[],typeof(Ze=tt)=="string"&&(st=function(Et,gt,pr){pr||(pr=1);for(var qr,Qr=[];qr=gt.exec(Et);)Qr.push(qr[pr]);return Qr}(Ze,/\((.*?)\)/g)),je=st}}),this.getOptions=function(){return je},this.setOptions=function(Xe){je=Xe,this.sort&&je.sort()},this.addOption=function(Xe){Xe=(Xe=Xe||"").toString(),je.push(Xe),this.sort&&je.sort()},this.removeOption=function(Xe,tt){for(tt=tt||!1,Xe=(Xe=Xe||"").toString();je.indexOf(Xe)!==-1&&(je.splice(je.indexOf(Xe),1),tt!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,18))},set:function(tt){Boolean(tt)===!0?this.Ff=Fe(this.Ff,18):this.Ff=ae(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,19))},set:function(tt){this.combo===!0&&(Boolean(tt)===!0?this.Ff=Fe(this.Ff,19):this.Ff=ae(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,20))},set:function(tt){Boolean(tt)===!0?(this.Ff=Fe(this.Ff,20),je.sort()):this.Ff=ae(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,22))},set:function(tt){Boolean(tt)===!0?this.Ff=Fe(this.Ff,22):this.Ff=ae(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,23))},set:function(tt){Boolean(tt)===!0?this.Ff=Fe(this.Ff,23):this.Ff=ae(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,27))},set:function(tt){Boolean(tt)===!0?this.Ff=Fe(this.Ff,27):this.Ff=ae(this.Ff,27)}}),this.hasAppearanceStream=!1};re(ht,xt);var He=function(){ht.call(this),this.fontName="helvetica",this.combo=!1};re(He,ht);var ir=function(){He.call(this),this.combo=!0};re(ir,He);var ct=function(){ir.call(this),this.edit=!0};re(ct,ir);var Xt=function(){xt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,15))},set:function(tt){Boolean(tt)===!0?this.Ff=Fe(this.Ff,15):this.Ff=ae(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,16))},set:function(tt){Boolean(tt)===!0?this.Ff=Fe(this.Ff,16):this.Ff=ae(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,17))},set:function(tt){Boolean(tt)===!0?this.Ff=Fe(this.Ff,17):this.Ff=ae(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,26))},set:function(tt){Boolean(tt)===!0?this.Ff=Fe(this.Ff,26):this.Ff=ae(this.Ff,26)}});var Le,je={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var tt=function(gt){return gt};if(this.scope&&(tt=this.scope.internal.getEncryptor(this.objId)),Object.keys(je).length!==0){var Ze,st=[];for(Ze in st.push("<<"),je)st.push("/"+Ze+" ("+G(tt(je[Ze]))+")");return st.push(">>"),st.join(`
`)}},set:function(tt){x()(tt)==="object"&&(je=tt)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return je.CA||""},set:function(tt){typeof tt=="string"&&(je.CA=tt)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Le},set:function(tt){Le=tt}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Le.substr(1,Le.length-1)},set:function(tt){Le="/"+tt}})};re(Xt,xt);var hr=function(){Xt.call(this),this.pushButton=!0};re(hr,Xt);var Jt=function(){Xt.call(this),this.radio=!0,this.pushButton=!1;var Le=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Le},set:function(Xe){Le=Xe!==void 0?Xe:[]}})};re(Jt,Xt);var Pt=function(){var Le,je;xt.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Le},set:function(st){Le=st}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return je},set:function(st){je=st}});var Xe,tt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var st=function(qr){return qr};this.scope&&(st=this.scope.internal.getEncryptor(this.objId));var Et,gt=[];for(Et in gt.push("<<"),tt)gt.push("/"+Et+" ("+G(st(tt[Et]))+")");return gt.push(">>"),gt.join(`
`)},set:function(st){x()(st)==="object"&&(tt=st)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return tt.CA||""},set:function(st){typeof st=="string"&&(tt.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(Pt,xt),Jt.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 Le in this.Kids)if(this.Kids.hasOwnProperty(Le)){var je=this.Kids[Le];je.appearanceStreamContent=nt.createAppearanceStream(je.optionName),je.caption=nt.getCA()}},Jt.prototype.createOption=function(nt){var Le=new Pt;return Le.Parent=this,Le.optionName=nt,this.Kids.push(Le),lt.call(this.scope,Le),Le};var Wt=function(){Xt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=se.CheckBox.createAppearanceStream()};re(Wt,Xt);var Ge=function(){xt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,13))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,13):this.Ff=ae(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,21))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,21):this.Ff=ae(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,23))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,23):this.Ff=ae(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,24))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,24):this.Ff=ae(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,25))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,25):this.Ff=ae(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,26))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Fe(this.Ff,26):this.Ff=ae(this.Ff,26)}});var Le=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Le},set:function(Xe){Le=Xe}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Le},set:function(Xe){Number.isInteger(Xe)&&(Le=Xe)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};re(Ge,xt);var pe=function(){Ge.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(ut(this.Ff,14))},set:function(je){Boolean(je)===!0?this.Ff=Fe(this.Ff,14):this.Ff=ae(this.Ff,14)}}),this.password=!0};re(pe,Ge);var se={CheckBox:{createAppearanceStream:function(){return{N:{On:se.CheckBox.YesNormal},D:{On:se.CheckBox.YesPushDown,Off:se.CheckBox.OffPushDown}}},YesPushDown:function(Le){var je=Ie(Le);je.scope=Le.scope;var Xe=[],tt=Le.scope.internal.getFont(Le.fontName,Le.fontStyle).id,Ze=Le.scope.__private__.encodeColorString(Le.color),st=J(Le,Le.caption);return Xe.push("0.749023 g"),Xe.push("0 0 "+q(se.internal.getWidth(Le))+" "+q(se.internal.getHeight(Le))+" re"),Xe.push("f"),Xe.push("BMC"),Xe.push("q"),Xe.push("0 0 1 rg"),Xe.push("/"+tt+" "+q(st.fontSize)+" Tf "+Ze),Xe.push("BT"),Xe.push(st.text),Xe.push("ET"),Xe.push("Q"),Xe.push("EMC"),je.stream=Xe.join(`
`),je},YesNormal:function(Le){var je=Ie(Le);je.scope=Le.scope;var Xe=Le.scope.internal.getFont(Le.fontName,Le.fontStyle).id,tt=Le.scope.__private__.encodeColorString(Le.color),Ze=[],st=se.internal.getHeight(Le),Et=se.internal.getWidth(Le),gt=J(Le,Le.caption);return Ze.push("1 g"),Ze.push("0 0 "+q(Et)+" "+q(st)+" re"),Ze.push("f"),Ze.push("q"),Ze.push("0 0 1 rg"),Ze.push("0 0 "+q(Et-1)+" "+q(st-1)+" re"),Ze.push("W"),Ze.push("n"),Ze.push("0 g"),Ze.push("BT"),Ze.push("/"+Xe+" "+q(gt.fontSize)+" Tf "+tt),Ze.push(gt.text),Ze.push("ET"),Ze.push("Q"),je.stream=Ze.join(`
`),je},OffPushDown:function(Le){var je=Ie(Le);je.scope=Le.scope;var Xe=[];return Xe.push("0.749023 g"),Xe.push("0 0 "+q(se.internal.getWidth(Le))+" "+q(se.internal.getHeight(Le))+" re"),Xe.push("f"),je.stream=Xe.join(`
`),je}},RadioButton:{Circle:{createAppearanceStream:function(Le){var je={D:{Off:se.RadioButton.Circle.OffPushDown},N:{}};return je.N[Le]=se.RadioButton.Circle.YesNormal,je.D[Le]=se.RadioButton.Circle.YesPushDown,je},getCA:function(){return"l"},YesNormal:function(Le){var je=Ie(Le);je.scope=Le.scope;var Xe=[],tt=se.internal.getWidth(Le)<=se.internal.getHeight(Le)?se.internal.getWidth(Le)/4:se.internal.getHeight(Le)/4;tt=Number((.9*tt).toFixed(5));var Ze=se.internal.Bezier_C,st=Number((tt*Ze).toFixed(5));return Xe.push("q"),Xe.push("1 0 0 1 "+le(se.internal.getWidth(Le)/2)+" "+le(se.internal.getHeight(Le)/2)+" cm"),Xe.push(tt+" 0 m"),Xe.push(tt+" "+st+" "+st+" "+tt+" 0 "+tt+" c"),Xe.push("-"+st+" "+tt+" -"+tt+" "+st+" -"+tt+" 0 c"),Xe.push("-"+tt+" -"+st+" -"+st+" -"+tt+" 0 -"+tt+" c"),Xe.push(st+" -"+tt+" "+tt+" -"+st+" "+tt+" 0 c"),Xe.push("f"),Xe.push("Q"),je.stream=Xe.join(`
`),je},YesPushDown:function(Le){var je=Ie(Le);je.scope=Le.scope;var Xe=[],tt=se.internal.getWidth(Le)<=se.internal.getHeight(Le)?se.internal.getWidth(Le)/4:se.internal.getHeight(Le)/4;tt=Number((.9*tt).toFixed(5));var Ze=Number((2*tt).toFixed(5)),st=Number((Ze*se.internal.Bezier_C).toFixed(5)),Et=Number((tt*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(Le)/2)+" "+le(se.internal.getHeight(Le)/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(Le)/2)+" "+le(se.internal.getHeight(Le)/2)+" cm"),Xe.push(tt+" 0 m"),Xe.push(tt+" "+Et+" "+Et+" "+tt+" 0 "+tt+" c"),Xe.push("-"+Et+" "+tt+" -"+tt+" "+Et+" -"+tt+" 0 c"),Xe.push("-"+tt+" -"+Et+" -"+Et+" -"+tt+" 0 -"+tt+" c"),Xe.push(Et+" -"+tt+" "+tt+" -"+Et+" "+tt+" 0 c"),Xe.push("f"),Xe.push("Q"),je.stream=Xe.join(`
`),je},OffPushDown:function(Le){var je=Ie(Le);je.scope=Le.scope;var Xe=[],tt=se.internal.getWidth(Le)<=se.internal.getHeight(Le)?se.internal.getWidth(Le)/4:se.internal.getHeight(Le)/4;tt=Number((.9*tt).toFixed(5));var Ze=Number((2*tt).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(Le)/2)+" "+le(se.internal.getHeight(Le)/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"),je.stream=Xe.join(`
`),je}},Cross:{createAppearanceStream:function(Le){var je={D:{Off:se.RadioButton.Cross.OffPushDown},N:{}};return je.N[Le]=se.RadioButton.Cross.YesNormal,je.D[Le]=se.RadioButton.Cross.YesPushDown,je},getCA:function(){return"8"},YesNormal:function(Le){var je=Ie(Le);je.scope=Le.scope;var Xe=[],tt=se.internal.calculateCross(Le);return Xe.push("q"),Xe.push("1 1 "+q(se.internal.getWidth(Le)-2)+" "+q(se.internal.getHeight(Le)-2)+" re"),Xe.push("W"),Xe.push("n"),Xe.push(q(tt.x1.x)+" "+q(tt.x1.y)+" m"),Xe.push(q(tt.x2.x)+" "+q(tt.x2.y)+" l"),Xe.push(q(tt.x4.x)+" "+q(tt.x4.y)+" m"),Xe.push(q(tt.x3.x)+" "+q(tt.x3.y)+" l"),Xe.push("s"),Xe.push("Q"),je.stream=Xe.join(`
`),je},YesPushDown:function(Le){var je=Ie(Le);je.scope=Le.scope;var Xe=se.internal.calculateCross(Le),tt=[];return tt.push("0.749023 g"),tt.push("0 0 "+q(se.internal.getWidth(Le))+" "+q(se.internal.getHeight(Le))+" re"),tt.push("f"),tt.push("q"),tt.push("1 1 "+q(se.internal.getWidth(Le)-2)+" "+q(se.internal.getHeight(Le)-2)+" re"),tt.push("W"),tt.push("n"),tt.push(q(Xe.x1.x)+" "+q(Xe.x1.y)+" m"),tt.push(q(Xe.x2.x)+" "+q(Xe.x2.y)+" l"),tt.push(q(Xe.x4.x)+" "+q(Xe.x4.y)+" m"),tt.push(q(Xe.x3.x)+" "+q(Xe.x3.y)+" l"),tt.push("s"),tt.push("Q"),je.stream=tt.join(`
`),je},OffPushDown:function(Le){var je=Ie(Le);je.scope=Le.scope;var Xe=[];return Xe.push("0.749023 g"),Xe.push("0 0 "+q(se.internal.getWidth(Le))+" "+q(se.internal.getHeight(Le))+" re"),Xe.push("f"),je.stream=Xe.join(`
`),je}}},createDefaultAppearanceStream:function(Le){var je=Le.scope.internal.getFont(Le.fontName,Le.fontStyle).id,Xe=Le.scope.__private__.encodeColorString(Le.color);return"/"+je+" "+Le.fontSize+" Tf "+Xe}};se.internal={Bezier_C:.551915024494,calculateCross:function(Le){var je=se.internal.getWidth(Le),Xe=se.internal.getHeight(Le),tt=Math.min(je,Xe);return{x1:{x:(je-tt)/2,y:(Xe-tt)/2+tt},x2:{x:(je-tt)/2+tt,y:(Xe-tt)/2},x3:{x:(je-tt)/2,y:(Xe-tt)/2},x4:{x:(je-tt)/2+tt,y:(Xe-tt)/2+tt}}}},se.internal.getWidth=function(nt){var Le=0;return x()(nt)==="object"&&(Le=we(nt.Rect[2])),Le},se.internal.getHeight=function(nt){var Le=0;return x()(nt)==="object"&&(Le=we(nt.Rect[3])),Le};var lt=V.addField=function(nt){if(Ce(this,nt),!(nt instanceof xt))throw new Error("Invalid argument passed to jsPDF.addField.");var Le;return(Le=nt).scope.internal.acroformPlugin.printedOut&&(Le.scope.internal.acroformPlugin.printedOut=!1,Le.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),Le.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(Le),nt.page=nt.scope.internal.getCurrentPageInfo().pageNumber,this};V.AcroFormChoiceField=ht,V.AcroFormListBox=He,V.AcroFormComboBox=ir,V.AcroFormEditBox=ct,V.AcroFormButton=Xt,V.AcroFormPushButton=hr,V.AcroFormRadioButton=Jt,V.AcroFormCheckBox=Wt,V.AcroFormTextField=Ge,V.AcroFormPasswordField=pe,V.AcroFormAppearance=se,V.AcroForm={ChoiceField:ht,ListBox:He,ComboBox:ir,EditBox:ct,Button:Xt,PushButton:hr,RadioButton:Jt,CheckBox:Wt,TextField:Ge,PasswordField:pe,Appearance:se},z.AcroForm={ChoiceField:ht,ListBox:He,ComboBox:ir,EditBox:ct,Button:Xt,PushButton:hr,RadioButton:Jt,CheckBox:Wt,TextField:Ge,PasswordField:pe,Appearance:se};var qe=z.AcroForm;function me(nt){return nt.reduce(function(Le,je,Xe){return Le[je]=Xe,Le},{})}!function(nt){nt.__addimage__={};var Le="UNKNOWN",je={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},Xe=nt.__addimage__.getImageFileTypeByImageData=function(Rt,jt){var zt,Lt,cr,Ar,br,Pr=Le;if((jt=jt||Le)==="RGBA"||Rt.data!==void 0&&Rt.data instanceof Uint8ClampedArray&&"height"in Rt&&"width"in Rt)return"RGBA";if(rn(Rt))for(br in je)for(cr=je[br],zt=0;zt<cr.length;zt+=1){for(Ar=!0,Lt=0;Lt<cr[zt].length;Lt+=1)if(cr[zt][Lt]!==void 0&&cr[zt][Lt]!==Rt[Lt]){Ar=!1;break}if(Ar===!0){Pr=br;break}}else for(br in je)for(cr=je[br],zt=0;zt<cr.length;zt+=1){for(Ar=!0,Lt=0;Lt<cr[zt].length;Lt+=1)if(cr[zt][Lt]!==void 0&&cr[zt][Lt]!==Rt.charCodeAt(Lt)){Ar=!1;break}if(Ar===!0){Pr=br;break}}return Pr===Le&&jt!==Le&&(Pr=jt),Pr},tt=function Rt(jt){for(var zt=this.internal.write,Lt=this.internal.putStream,cr=(0,this.internal.getFilters)();cr.indexOf("FlateEncode")!==-1;)cr.splice(cr.indexOf("FlateEncode"),1);jt.objectId=this.internal.newObject();var Ar=[];if(Ar.push({key:"Type",value:"/XObject"}),Ar.push({key:"Subtype",value:"/Image"}),Ar.push({key:"Width",value:jt.width}),Ar.push({key:"Height",value:jt.height}),jt.colorSpace===Bn.INDEXED?Ar.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(jt.palette.length/3-1)+" "+("sMask"in jt&&jt.sMask!==void 0?jt.objectId+2:jt.objectId+1)+" 0 R]"}):(Ar.push({key:"ColorSpace",value:"/"+jt.colorSpace}),jt.colorSpace===Bn.DEVICE_CMYK&&Ar.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Ar.push({key:"BitsPerComponent",value:jt.bitsPerComponent}),"decodeParameters"in jt&&jt.decodeParameters!==void 0&&Ar.push({key:"DecodeParms",value:"<<"+jt.decodeParameters+">>"}),"transparency"in jt&&Array.isArray(jt.transparency)){for(var br="",Pr=0,Xn=jt.transparency.length;Pr<Xn;Pr++)br+=jt.transparency[Pr]+" "+jt.transparency[Pr]+" ";Ar.push({key:"Mask",value:"["+br+"]"})}jt.sMask!==void 0&&Ar.push({key:"SMask",value:jt.objectId+1+" 0 R"});var Pn=jt.filter!==void 0?["/"+jt.filter]:void 0;if(Lt({data:jt.data,additionalKeyValues:Ar,alreadyAppliedFilters:Pn,objectId:jt.objectId}),zt("endobj"),"sMask"in jt&&jt.sMask!==void 0){var di="/Predictor "+jt.predictor+" /Colors 1 /BitsPerComponent "+jt.bitsPerComponent+" /Columns "+jt.width,An={width:jt.width,height:jt.height,colorSpace:"DeviceGray",bitsPerComponent:jt.bitsPerComponent,decodeParameters:di,data:jt.sMask};"filter"in jt&&(An.filter=jt.filter),Rt.call(this,An)}if(jt.colorSpace===Bn.INDEXED){var Ur=this.internal.newObject();Lt({data:Yn(new Uint8Array(jt.palette)),objectId:Ur}),zt("endobj")}},Ze=function(){var jt=this.internal.collections.addImage_images;for(var zt in jt)tt.call(this,jt[zt])},st=function(){var jt,zt=this.internal.collections.addImage_images,Lt=this.internal.write;for(var cr in zt)Lt("/I"+(jt=zt[cr]).index,jt.objectId,"0","R")},Et=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Ze),this.internal.events.subscribe("putXobjectDict",st))},gt=function(){var jt=this.internal.collections.addImage_images;return Et.call(this),jt},pr=function(){return Object.keys(this.internal.collections.addImage_images).length},qr=function(jt){return typeof nt["process"+jt.toUpperCase()]=="function"},Qr=function(jt){return x()(jt)==="object"&&jt.nodeType===1},gn=function(jt,zt){if(jt.nodeName==="IMG"&&jt.hasAttribute("src")){var Lt=""+jt.getAttribute("src");if(Lt.indexOf("data:image/")===0)return t(unescape(Lt).split("base64,").pop());var cr=nt.loadFile(Lt,!0);if(cr!==void 0)return cr}if(jt.nodeName==="CANVAS"){if(jt.width===0||jt.height===0)throw new Error("Given canvas must have data. Canvas width: "+jt.width+", height: "+jt.height);var Ar;switch(zt){case"PNG":Ar="image/png";break;case"WEBP":Ar="image/webp";break;case"JPEG":case"JPG":default:Ar="image/jpeg"}return t(jt.toDataURL(Ar,1).split("base64,").pop())}},vr=function(jt){var zt=this.internal.collections.addImage_images;if(zt){for(var Lt in zt)if(jt===zt[Lt].alias)return zt[Lt]}},Vn=function(jt,zt,Lt){return jt||zt||(jt=-96,zt=-96),jt<0&&(jt=-1*Lt.width*72/jt/this.internal.scaleFactor),zt<0&&(zt=-1*Lt.height*72/zt/this.internal.scaleFactor),jt===0&&(jt=zt*Lt.width/Lt.height),zt===0&&(zt=jt*Lt.height/Lt.width),[jt,zt]},kr=function(jt,zt,Lt,cr,Ar,br){var Pr=Vn.call(this,Lt,cr,Ar),Xn=this.internal.getCoordinateString,Pn=this.internal.getVerticalCoordinateString,di=gt.call(this);if(Lt=Pr[0],cr=Pr[1],di[Ar.index]=Ar,br){br*=Math.PI/180;var An=Math.cos(br),Ur=Math.sin(br),In=function(oi){return oi.toFixed(4)},Qn=[In(An),In(Ur),In(-1*Ur),In(An),0,0,"cm"]}this.internal.write("q"),br?(this.internal.write([1,"0","0",1,Xn(jt),Pn(zt+cr),"cm"].join(" ")),this.internal.write(Qn.join(" ")),this.internal.write([Xn(Lt),"0","0",Xn(cr),"0","0","cm"].join(" "))):this.internal.write([Xn(Lt),"0","0",Xn(cr),Xn(jt),Pn(zt+cr),"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")},Bn=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 on=nt.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},jr=nt.__addimage__.sHashCode=function(Rt){var jt,zt,Lt=0;if(typeof Rt=="string")for(zt=Rt.length,jt=0;jt<zt;jt++)Lt=(Lt<<5)-Lt+Rt.charCodeAt(jt),Lt|=0;else if(rn(Rt))for(zt=Rt.byteLength/2,jt=0;jt<zt;jt++)Lt=(Lt<<5)-Lt+Rt[jt],Lt|=0;return Lt},ai=nt.__addimage__.validateStringAsBase64=function(Rt){(Rt=Rt||"").toString().trim();var jt=!0;return Rt.length===0&&(jt=!1),Rt.length%4!=0&&(jt=!1),/^[A-Za-z0-9+/]+$/.test(Rt.substr(0,Rt.length-2))===!1&&(jt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(Rt.substr(-2))===!1&&(jt=!1),jt},Oi=nt.__addimage__.extractImageFromDataUrl=function(Rt){var jt=(Rt=Rt||"").split("base64,"),zt=null;if(jt.length===2){var Lt=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(jt[0]);Array.isArray(Lt)&&(zt={mimeType:Lt[1],charset:Lt[2],data:jt[1]})}return zt},Gi=nt.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};nt.__addimage__.isArrayBuffer=function(Rt){return Gi()&&Rt instanceof ArrayBuffer};var rn=nt.__addimage__.isArrayBufferView=function(Rt){return Gi()&&typeof Uint32Array!="undefined"&&(Rt instanceof Int8Array||Rt instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&Rt instanceof Uint8ClampedArray||Rt instanceof Int16Array||Rt instanceof Uint16Array||Rt instanceof Int32Array||Rt instanceof Uint32Array||Rt instanceof Float32Array||Rt instanceof Float64Array)},Cn=nt.__addimage__.binaryStringToUint8Array=function(Rt){for(var jt=Rt.length,zt=new Uint8Array(jt),Lt=0;Lt<jt;Lt++)zt[Lt]=Rt.charCodeAt(Lt);return zt},Yn=nt.__addimage__.arrayBufferToBinaryString=function(Rt){for(var jt="",zt=rn(Rt)?Rt:new Uint8Array(Rt),Lt=0;Lt<zt.length;Lt+=8192)jt+=String.fromCharCode.apply(null,zt.subarray(Lt,Lt+8192));return jt};nt.addImage=function(){var Rt,jt,zt,Lt,cr,Ar,br,Pr,Xn;if(typeof arguments[1]=="number"?(jt=Le,zt=arguments[1],Lt=arguments[2],cr=arguments[3],Ar=arguments[4],br=arguments[5],Pr=arguments[6],Xn=arguments[7]):(jt=arguments[1],zt=arguments[2],Lt=arguments[3],cr=arguments[4],Ar=arguments[5],br=arguments[6],Pr=arguments[7],Xn=arguments[8]),x()(Rt=arguments[0])==="object"&&!Qr(Rt)&&"imageData"in Rt){var Pn=Rt;Rt=Pn.imageData,jt=Pn.format||jt||Le,zt=Pn.x||zt||0,Lt=Pn.y||Lt||0,cr=Pn.w||Pn.width||cr,Ar=Pn.h||Pn.height||Ar,br=Pn.alias||br,Pr=Pn.compression||Pr,Xn=Pn.rotation||Pn.angle||Xn}var di=this.internal.getFilters();if(Pr===void 0&&di.indexOf("FlateEncode")!==-1&&(Pr="SLOW"),isNaN(zt)||isNaN(Lt))throw new Error("Invalid coordinates passed to jsPDF.addImage");Et.call(this);var An=Gt.call(this,Rt,jt,br,Pr);return kr.call(this,zt,Lt,cr,Ar,An,Xn),this};var Gt=function(jt,zt,Lt,cr){var Ar,br,Pr;if(typeof jt=="string"&&Xe(jt)===Le){jt=unescape(jt);var Xn=Ot(jt,!1);(Xn!==""||(Xn=nt.loadFile(jt,!0))!==void 0)&&(jt=Xn)}if(Qr(jt)&&(jt=gn(jt,zt)),zt=Xe(jt,zt),!qr(zt))throw new Error("addImage does not support files of type '"+zt+"', please ensure that a plugin for '"+zt+"' support is added.");if(((Pr=Lt)==null||Pr.length===0)&&(Lt=function(Pn){return typeof Pn=="string"||rn(Pn)?jr(Pn):rn(Pn.data)?jr(Pn.data):null}(jt)),(Ar=vr.call(this,Lt))||(Gi()&&(jt instanceof Uint8Array||zt==="RGBA"||(br=jt,jt=Cn(jt))),Ar=this["process"+zt.toUpperCase()](jt,pr.call(this),Lt,function(Pn){return Pn&&typeof Pn=="string"&&(Pn=Pn.toUpperCase()),Pn in nt.image_compression?Pn:on.NONE}(cr),br)),!Ar)throw new Error("An unknown error occurred whilst processing the image.");return Ar},Ot=nt.__addimage__.convertBase64ToBinaryString=function(Rt,jt){var zt;jt=typeof jt!="boolean"||jt;var Lt,cr="";if(typeof Rt=="string"){Lt=(zt=Oi(Rt))!==null?zt.data:Rt;try{cr=t(Lt)}catch(Ar){if(jt)throw ai(Lt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Ar.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return cr};nt.getImageProperties=function(Rt){var jt,zt,Lt="";if(Qr(Rt)&&(Rt=gn(Rt)),typeof Rt=="string"&&Xe(Rt)===Le&&((Lt=Ot(Rt,!1))===""&&(Lt=nt.loadFile(Rt)||""),Rt=Lt),zt=Xe(Rt),!qr(zt))throw new Error("addImage does not support files of type '"+zt+"', please ensure that a plugin for '"+zt+"' support is added.");if(!Gi()||Rt instanceof Uint8Array||(Rt=Cn(Rt)),!(jt=this["process"+zt.toUpperCase()](Rt)))throw new Error("An unknown error occurred whilst processing the image");return jt.fileType=zt,jt}}(z.API),function(nt){var Le=function(Xe){if(Xe!==void 0&&Xe!="")return!0};z.API.events.push(["addPage",function(je){this.internal.getPageInfo(je.pageNumber).pageContext.annotations=[]}]),nt.events.push(["putPage",function(je){for(var Xe,tt,Ze,st=this.internal.getCoordinateString,Et=this.internal.getVerticalCoordinateString,gt=this.internal.getPageInfoByObjId(je.objId),pr=je.pageContext.annotations,qr=!1,Qr=0;Qr<pr.length&&!qr;Qr++)switch((Xe=pr[Qr]).type){case"link":(Le(Xe.options.url)||Le(Xe.options.pageNumber))&&(qr=!0);break;case"reference":case"text":case"freetext":qr=!0}if(qr!=0){this.internal.write("/Annots [");for(var gn=0;gn<pr.length;gn++){Xe=pr[gn];var vr=this.internal.pdfEscape,Vn=this.internal.getEncryptor(je.objId);switch(Xe.type){case"reference":this.internal.write(" "+Xe.object.objId+" 0 R ");break;case"text":var kr=this.internal.newAdditionalObject(),Bn=this.internal.newAdditionalObject(),on=this.internal.getEncryptor(kr.objId),jr=Xe.title||"Note";Ze="<</Type /Annot /Subtype /Text "+(tt="/Rect ["+st(Xe.bounds.x)+" "+Et(Xe.bounds.y+Xe.bounds.h)+" "+st(Xe.bounds.x+Xe.bounds.w)+" "+Et(Xe.bounds.y)+"] ")+"/Contents ("+vr(on(Xe.contents))+")",Ze+=" /Popup "+Bn.objId+" 0 R",Ze+=" /P "+gt.objId+" 0 R",Ze+=" /T ("+vr(on(jr))+") >>",kr.content=Ze;var ai=kr.objId+" 0 R";Ze="<</Type /Annot /Subtype /Popup "+(tt="/Rect ["+st(Xe.bounds.x+30)+" "+Et(Xe.bounds.y+Xe.bounds.h)+" "+st(Xe.bounds.x+Xe.bounds.w+30)+" "+Et(Xe.bounds.y)+"] ")+" /Parent "+ai,Xe.open&&(Ze+=" /Open true"),Ze+=" >>",Bn.content=Ze,this.internal.write(kr.objId,"0 R",Bn.objId,"0 R");break;case"freetext":tt="/Rect ["+st(Xe.bounds.x)+" "+Et(Xe.bounds.y)+" "+st(Xe.bounds.x+Xe.bounds.w)+" "+Et(Xe.bounds.y+Xe.bounds.h)+"] ";var Oi=Xe.color||"#000000";Ze="<</Type /Annot /Subtype /FreeText "+tt+"/Contents ("+vr(Vn(Xe.contents))+")",Ze+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Oi+")",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(tt="/Rect ["+Xe.finalBounds.x+" "+Xe.finalBounds.y+" "+Xe.finalBounds.w+" "+Xe.finalBounds.h+"] ",Ze="",Xe.options.url)Ze="<</Type /Annot /Subtype /Link "+tt+"/Border [0 0 0] /A <</S /URI /URI ("+vr(Vn(Xe.options.url))+") >>";else if(Xe.options.pageNumber)switch(Ze="<</Type /Annot /Subtype /Link "+tt+"/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 rn=Et(Xe.options.top);Xe.options.left=Xe.options.left||0,Xe.options.zoom===void 0&&(Xe.options.zoom=0),Ze+=" /XYZ "+Xe.options.left+" "+rn+" "+Xe.options.zoom+"]"}Ze!=""&&(Ze+=" >>",this.internal.write(Ze))}}this.internal.write("]")}}]),nt.createAnnotation=function(je){var Xe=this.internal.getCurrentPageInfo();switch(je.type){case"link":this.link(je.bounds.x,je.bounds.y,je.bounds.w,je.bounds.h,je);break;case"text":case"freetext":Xe.pageContext.annotations.push(je)}},nt.link=function(je,Xe,tt,Ze,st){var Et=this.internal.getCurrentPageInfo(),gt=this.internal.getCoordinateString,pr=this.internal.getVerticalCoordinateString;Et.pageContext.annotations.push({finalBounds:{x:gt(je),y:pr(Xe),w:gt(je+tt),h:pr(Xe+Ze)},options:st,type:"link"})},nt.textWithLink=function(je,Xe,tt,Ze){var st,Et,gt=this.getTextWidth(je),pr=this.internal.getLineHeight()/this.internal.scaleFactor;if(Ze.maxWidth!==void 0){Et=Ze.maxWidth;var qr=this.splitTextToSize(je,Et).length;st=Math.ceil(pr*qr)}else Et=gt,st=pr;return this.text(je,Xe,tt,Ze),tt+=.2*pr,Ze.align==="center"&&(Xe-=gt/2),Ze.align==="right"&&(Xe-=gt),this.link(Xe,tt-pr,Et,st,Ze),gt},nt.getTextWidth=function(je){var Xe=this.internal.getFontSize();return this.getStringUnitWidth(je)*Xe/this.internal.scaleFactor}}(z.API),function(nt){var Le={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},je={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},Xe={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},tt=[1570,1571,1573,1575];nt.__arabicParser__={};var Ze=nt.__arabicParser__.isInArabicSubstitutionA=function(kr){return Le[kr.charCodeAt(0)]!==void 0},st=nt.__arabicParser__.isArabicLetter=function(kr){return typeof kr=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(kr)},Et=nt.__arabicParser__.isArabicEndLetter=function(kr){return st(kr)&&Ze(kr)&&Le[kr.charCodeAt(0)].length<=2},gt=nt.__arabicParser__.isArabicAlfLetter=function(kr){return st(kr)&&tt.indexOf(kr.charCodeAt(0))>=0};nt.__arabicParser__.arabicLetterHasIsolatedForm=function(kr){return st(kr)&&Ze(kr)&&Le[kr.charCodeAt(0)].length>=1};var pr=nt.__arabicParser__.arabicLetterHasFinalForm=function(kr){return st(kr)&&Ze(kr)&&Le[kr.charCodeAt(0)].length>=2};nt.__arabicParser__.arabicLetterHasInitialForm=function(kr){return st(kr)&&Ze(kr)&&Le[kr.charCodeAt(0)].length>=3};var qr=nt.__arabicParser__.arabicLetterHasMedialForm=function(kr){return st(kr)&&Ze(kr)&&Le[kr.charCodeAt(0)].length==4},Qr=nt.__arabicParser__.resolveLigatures=function(kr){var Bn=0,on=je,jr="",ai=0;for(Bn=0;Bn<kr.length;Bn+=1)on[kr.charCodeAt(Bn)]!==void 0?(ai++,typeof(on=on[kr.charCodeAt(Bn)])=="number"&&(jr+=String.fromCharCode(on),on=je,ai=0),Bn===kr.length-1&&(on=je,jr+=kr.charAt(Bn-(ai-1)),Bn-=ai-1,ai=0)):(on=je,jr+=kr.charAt(Bn-ai),Bn-=ai,ai=0);return jr};nt.__arabicParser__.isArabicDiacritic=function(kr){return kr!==void 0&&Xe[kr.charCodeAt(0)]!==void 0};var gn=nt.__arabicParser__.getCorrectForm=function(kr,Bn,on){return st(kr)?Ze(kr)===!1?-1:!pr(kr)||!st(Bn)&&!st(on)||!st(on)&&Et(Bn)||Et(kr)&&!st(Bn)||Et(kr)&&gt(Bn)||Et(kr)&&Et(Bn)?0:qr(kr)&&st(Bn)&&!Et(Bn)&&st(on)&&pr(on)?3:Et(kr)||!st(on)?1:2:-1},vr=function(Bn){var on=0,jr=0,ai=0,Oi="",Gi="",rn="",Cn=(Bn=Bn||"").split("\\s+"),Yn=[];for(on=0;on<Cn.length;on+=1){for(Yn.push(""),jr=0;jr<Cn[on].length;jr+=1)Oi=Cn[on][jr],Gi=Cn[on][jr-1],rn=Cn[on][jr+1],st(Oi)?(ai=gn(Oi,Gi,rn),Yn[on]+=ai!==-1?String.fromCharCode(Le[Oi.charCodeAt(0)][ai]):Oi):Yn[on]+=Oi;Yn[on]=Qr(Yn[on])}return Yn.join(" ")},Vn=nt.__arabicParser__.processArabic=nt.processArabic=function(){var kr,Bn=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,on=[];if(Array.isArray(Bn)){var jr=0;for(on=[],jr=0;jr<Bn.length;jr+=1)Array.isArray(Bn[jr])?on.push([vr(Bn[jr][0]),Bn[jr][1],Bn[jr][2]]):on.push([vr(Bn[jr])]);kr=on}else kr=vr(Bn);return typeof arguments[0]=="string"?kr:(arguments[0].text=kr,arguments[0])};nt.events.push(["preProcessText",Vn])}(z.API),z.API.autoPrint=function(nt){var Le;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(){Le=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+Le+" 0 R")})}return this},function(nt){var Le=function(){var Xe=void 0;Object.defineProperty(this,"pdf",{get:function(){return Xe},set:function(pr){Xe=pr}});var tt=150;Object.defineProperty(this,"width",{get:function(){return tt},set:function(pr){tt=isNaN(pr)||Number.isInteger(pr)===!1||pr<0?150:pr,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=tt+1)}});var Ze=300;Object.defineProperty(this,"height",{get:function(){return Ze},set:function(pr){Ze=isNaN(pr)||Number.isInteger(pr)===!1||pr<0?300:pr,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=Ze+1)}});var st=[];Object.defineProperty(this,"childNodes",{get:function(){return st},set:function(pr){st=pr}});var Et={};Object.defineProperty(this,"style",{get:function(){return Et},set:function(pr){Et=pr}}),Object.defineProperty(this,"parentNode",{})};Le.prototype.getContext=function(je,Xe){var tt;if((je=je||"2d")!=="2d")return null;for(tt in Xe)this.pdf.context2d.hasOwnProperty(tt)&&(this.pdf.context2d[tt]=Xe[tt]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Le.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},nt.events.push(["initialized",function(){this.canvas=new Le,this.canvas.pdf=this}])}(z.API),function(nt){var Le={left:0,top:0,bottom:0,right:0},je=!1,Xe=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},Le),this.internal.__cell__.margins.width=this.getPageWidth(),tt.call(this))},tt=function(){this.internal.__cell__.lastCell=new Ze,this.internal.__cell__.pages=1},Ze=function(){var pr=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return pr},set:function(on){pr=on}});var qr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return qr},set:function(on){qr=on}});var Qr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Qr},set:function(on){Qr=on}});var gn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return gn},set:function(on){gn=on}});var vr=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return vr},set:function(on){vr=on}});var Vn=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Vn},set:function(on){Vn=on}});var kr=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return kr},set:function(on){kr=on}}),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(gt){return Xe.call(this),this.internal.__cell__.headerFunction=typeof gt=="function"?gt:void 0,this},nt.getTextDimensions=function(gt,pr){Xe.call(this);var qr=(pr=pr||{}).fontSize||this.getFontSize(),Qr=pr.font||this.getFont(),gn=pr.scaleFactor||this.internal.scaleFactor,vr=0,Vn=0,kr=0,Bn=this;if(!Array.isArray(gt)&&typeof gt!="string"){if(typeof gt!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");gt=String(gt)}var on=pr.maxWidth;on>0?typeof gt=="string"?gt=this.splitTextToSize(gt,on):Object.prototype.toString.call(gt)==="[object Array]"&&(gt=gt.reduce(function(ai,Oi){return ai.concat(Bn.splitTextToSize(Oi,on))},[])):gt=Array.isArray(gt)?gt:[gt];for(var jr=0;jr<gt.length;jr++)vr<(kr=this.getStringUnitWidth(gt[jr],{font:Qr})*qr)&&(vr=kr);return vr!==0&&(Vn=gt.length),{w:vr/=gn,h:Math.max((Vn*qr*this.getLineHeightFactor()-qr*(this.getLineHeightFactor()-1))/gn,0)}},nt.cellAddPage=function(){Xe.call(this),this.addPage();var gt=this.internal.__cell__.margins||Le;return this.internal.__cell__.lastCell=new Ze(gt.left,gt.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var st=nt.cell=function(){var gt;gt=arguments[0]instanceof Ze?arguments[0]:new Ze(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Xe.call(this);var pr=this.internal.__cell__.lastCell,qr=this.internal.__cell__.padding,Qr=this.internal.__cell__.margins||Le,gn=this.internal.__cell__.tableHeaderRow,vr=this.internal.__cell__.printHeaders;return pr.lineNumber!==void 0&&(pr.lineNumber===gt.lineNumber?(gt.x=(pr.x||0)+(pr.width||0),gt.y=pr.y||0):pr.y+pr.height+gt.height+Qr.bottom>this.getPageHeight()?(this.cellAddPage(),gt.y=Qr.top,vr&&gn&&(this.printHeaderRow(gt.lineNumber,!0),gt.y+=gn[0].height)):gt.y=pr.y+pr.height||gt.y),gt.text[0]!==void 0&&(this.rect(gt.x,gt.y,gt.width,gt.height,je===!0?"FD":void 0),gt.align==="right"?this.text(gt.text,gt.x+gt.width-qr,gt.y+qr,{align:"right",baseline:"top"}):gt.align==="center"?this.text(gt.text,gt.x+gt.width/2,gt.y+qr,{align:"center",baseline:"top",maxWidth:gt.width-qr-qr}):this.text(gt.text,gt.x+qr,gt.y+qr,{align:"left",baseline:"top",maxWidth:gt.width-qr-qr})),this.internal.__cell__.lastCell=gt,this};nt.table=function(gt,pr,qr,Qr,gn){if(Xe.call(this),!qr)throw new Error("No data for PDF table.");var vr,Vn,kr,Bn,on=[],jr=[],ai=[],Oi={},Gi={},rn=[],Cn=[],Yn=(gn=gn||{}).autoSize||!1,Gt=gn.printHeaders!==!1,Ot=gn.css&&gn.css["font-size"]!==void 0?16*gn.css["font-size"]:gn.fontSize||12,Rt=gn.margins||Object.assign({width:this.getPageWidth()},Le),jt=typeof gn.padding=="number"?gn.padding:3,zt=gn.headerBackgroundColor||"#c8c8c8",Lt=gn.headerTextColor||"#000";if(tt.call(this),this.internal.__cell__.printHeaders=Gt,this.internal.__cell__.margins=Rt,this.internal.__cell__.table_font_size=Ot,this.internal.__cell__.padding=jt,this.internal.__cell__.headerBackgroundColor=zt,this.internal.__cell__.headerTextColor=Lt,this.setFontSize(Ot),Qr==null)jr=on=Object.keys(qr[0]),ai=on.map(function(){return"left"});else if(Array.isArray(Qr)&&x()(Qr[0])==="object")for(on=Qr.map(function(Pn){return Pn.name}),jr=Qr.map(function(Pn){return Pn.prompt||Pn.name||""}),ai=Qr.map(function(Pn){return Pn.align||"left"}),vr=0;vr<Qr.length;vr+=1)Gi[Qr[vr].name]=Qr[vr].width*(19.049976/25.4);else Array.isArray(Qr)&&typeof Qr[0]=="string"&&(jr=on=Qr,ai=on.map(function(){return"left"}));if(Yn||Array.isArray(Qr)&&typeof Qr[0]=="string")for(vr=0;vr<on.length;vr+=1){for(Oi[Bn=on[vr]]=qr.map(function(Pn){return Pn[Bn]}),this.setFont(void 0,"bold"),rn.push(this.getTextDimensions(jr[vr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),Vn=Oi[Bn],this.setFont(void 0,"normal"),kr=0;kr<Vn.length;kr+=1)rn.push(this.getTextDimensions(Vn[kr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Gi[Bn]=Math.max.apply(null,rn)+jt+jt,rn=[]}if(Gt){var cr={};for(vr=0;vr<on.length;vr+=1)cr[on[vr]]={},cr[on[vr]].text=jr[vr],cr[on[vr]].align=ai[vr];var Ar=Et.call(this,cr,Gi);Cn=on.map(function(Pn){return new Ze(gt,pr,Gi[Pn],Ar,cr[Pn].text,void 0,cr[Pn].align)}),this.setTableHeaderRow(Cn),this.printHeaderRow(1,!1)}var br=Qr.reduce(function(Pn,di){return Pn[di.name]=di.align,Pn},{});for(vr=0;vr<qr.length;vr+=1){"rowStart"in gn&&gn.rowStart instanceof Function&&gn.rowStart({row:vr,data:qr[vr]},this);var Pr=Et.call(this,qr[vr],Gi);for(kr=0;kr<on.length;kr+=1){var Xn=qr[vr][on[kr]];"cellStart"in gn&&gn.cellStart instanceof Function&&gn.cellStart({row:vr,col:kr,data:Xn},this),st.call(this,new Ze(gt,pr,Gi[on[kr]],Pr,Xn,vr+2,br[on[kr]]))}}return this.internal.__cell__.table_x=gt,this.internal.__cell__.table_y=pr,this};var Et=function(pr,qr){var Qr=this.internal.__cell__.padding,gn=this.internal.__cell__.table_font_size,vr=this.internal.scaleFactor;return Object.keys(pr).map(function(Vn){var kr=pr[Vn];return this.splitTextToSize(kr.hasOwnProperty("text")?kr.text:kr,qr[Vn]-Qr-Qr)},this).map(function(Vn){return this.getLineHeightFactor()*Vn.length*gn/vr+Qr+Qr},this).reduce(function(Vn,kr){return Math.max(Vn,kr)},0)};nt.setTableHeaderRow=function(gt){Xe.call(this),this.internal.__cell__.tableHeaderRow=gt},nt.printHeaderRow=function(gt,pr){if(Xe.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var qr;if(je=!0,typeof this.internal.__cell__.headerFunction=="function"){var Qr=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Ze(Qr[0],Qr[1],Qr[2],Qr[3],void 0,-1)}this.setFont(void 0,"bold");for(var gn=[],vr=0;vr<this.internal.__cell__.tableHeaderRow.length;vr+=1){qr=this.internal.__cell__.tableHeaderRow[vr].clone(),pr&&(qr.y=this.internal.__cell__.margins.top||0,gn.push(qr)),qr.lineNumber=gt;var Vn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),st.call(this,qr),this.setTextColor(Vn)}gn.length>0&&this.setTableHeaderRow(gn),this.setFont(void 0,"normal"),je=!1}}(z.API);var Ht={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},yr=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],At=me(yr),rr=[100,200,300,400,500,600,700,800,900],ur=me(rr);function vn(nt){var Le=nt.family.replace(/"|'/g,"").toLowerCase(),je=function(Ze){return Ht[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),tt=function(Ze){return typeof At[Ze=Ze||"normal"]=="number"?Ze:"normal"}(nt.stretch);return{family:Le,style:je,weight:Xe,stretch:tt,src:nt.src||[],ref:nt.ref||{name:Le,style:[tt,je,Xe].join(" ")}}}function Bt(nt,Le,je,Xe){var tt;for(tt=je;tt>=0&&tt<Le.length;tt+=Xe)if(nt[Le[tt]])return nt[Le[tt]];for(tt=je;tt>=0&&tt<Le.length;tt-=Xe)if(nt[Le[tt]])return nt[Le[tt]]}var sr={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Yt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function pt(nt){return[nt.stretch,nt.style,nt.weight,nt.family].join(" ")}function it(nt,Le,je){for(var Xe=(je=je||{}).defaultFontFamily||"times",tt=Object.assign({},sr,je.genericFontFamilies||{}),Ze=null,st=null,Et=0;Et<Le.length;++Et)if(tt[(Ze=vn(Le[Et])).family]&&(Ze.family=tt[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 '"+pt(Ze)+"' and default family '"+Xe+"'.");if(st=function(gt,pr){if(pr[gt])return pr[gt];var qr=At[gt],Qr=qr<=At.normal?-1:1,gn=Bt(pr,yr,qr,Qr);if(!gn)throw new Error("Could not find a matching font-stretch value for "+gt);return gn}(Ze.stretch,st),st=function(gt,pr){if(pr[gt])return pr[gt];for(var qr=Ht[gt],Qr=0;Qr<qr.length;++Qr)if(pr[qr[Qr]])return pr[qr[Qr]];throw new Error("Could not find a matching font-style for "+gt)}(Ze.style,st),!(st=function(gt,pr){if(pr[gt])return pr[gt];if(gt===400&&pr[500])return pr[500];if(gt===500&&pr[400])return pr[400];var qr=ur[gt],Qr=Bt(pr,rr,qr,gt<400?-1:1);if(!Qr)throw new Error("Could not find a matching font-weight for value "+gt);return Qr}(Ze.weight,st)))throw new Error("Failed to resolve a font for the rule '"+pt(Ze)+"'.");return st}function Fr(nt){return nt.trimLeft()}function cn(nt,Le){for(var je=0;je<nt.length;){if(nt.charAt(je)===Le)return[nt.substring(0,je),nt.substring(je+1)];je+=1}return null}function _n(nt){var Le=nt.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return Le===null?null:[Le[0],nt.substring(Le[0].length)]}var Kn,gi,Mn,Un=["times"];!function(nt){var Le,je,Xe,tt,Ze,st,Et,gt,pr,qr=function(Ur){return Ur=Ur||{},this.isStrokeTransparent=Ur.isStrokeTransparent||!1,this.strokeOpacity=Ur.strokeOpacity||1,this.strokeStyle=Ur.strokeStyle||"#000000",this.fillStyle=Ur.fillStyle||"#000000",this.isFillTransparent=Ur.isFillTransparent||!1,this.fillOpacity=Ur.fillOpacity||1,this.font=Ur.font||"10px sans-serif",this.textBaseline=Ur.textBaseline||"alphabetic",this.textAlign=Ur.textAlign||"left",this.lineWidth=Ur.lineWidth||1,this.lineJoin=Ur.lineJoin||"miter",this.lineCap=Ur.lineCap||"butt",this.path=Ur.path||[],this.transform=Ur.transform!==void 0?Ur.transform.clone():new gt,this.globalCompositeOperation=Ur.globalCompositeOperation||"normal",this.globalAlpha=Ur.globalAlpha||1,this.clip_path=Ur.clip_path||[],this.currentPoint=Ur.currentPoint||new st,this.miterLimit=Ur.miterLimit||10,this.lastPoint=Ur.lastPoint||new st,this.lineDashOffset=Ur.lineDashOffset||0,this.lineDash=Ur.lineDash||[],this.margin=Ur.margin||[0,0,0,0],this.prevPageLastElemOffset=Ur.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Ur.ignoreClearRect!="boolean"||Ur.ignoreClearRect,this};nt.events.push(["initialized",function(){this.context2d=new Qr(this),Le=this.internal.f2,je=this.internal.getCoordinateString,Xe=this.internal.getVerticalCoordinateString,tt=this.internal.getHorizontalCoordinate,Ze=this.internal.getVerticalCoordinate,st=this.internal.Point,Et=this.internal.Rectangle,gt=this.internal.Matrix,pr=new qr}]);var Qr=function(Ur){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var In=Ur;Object.defineProperty(this,"pdf",{get:function(){return In}});var Qn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Qn},set:function(Ui){Qn=Boolean(Ui)}});var $n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return $n},set:function(Ui){$n=Boolean(Ui)}});var oi=0;Object.defineProperty(this,"posX",{get:function(){return oi},set:function(Ui){isNaN(Ui)||(oi=Ui)}});var Ti=0;Object.defineProperty(this,"posY",{get:function(){return Ti},set:function(Ui){isNaN(Ui)||(Ti=Ui)}}),Object.defineProperty(this,"margin",{get:function(){return pr.margin},set:function(Ui){var ha;typeof Ui=="number"?ha=[Ui,Ui,Ui,Ui]:((ha=new Array(4))[0]=Ui[0],ha[1]=Ui.length>=2?Ui[1]:ha[0],ha[2]=Ui.length>=3?Ui[2]:ha[0],ha[3]=Ui.length>=4?Ui[3]:ha[1]),pr.margin=ha}});var ki=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ki},set:function(Ui){ki=Ui}});var Ri=0;Object.defineProperty(this,"lastBreak",{get:function(){return Ri},set:function(Ui){Ri=Ui}});var oa=[];Object.defineProperty(this,"pageBreaks",{get:function(){return oa},set:function(Ui){oa=Ui}}),Object.defineProperty(this,"ctx",{get:function(){return pr},set:function(Ui){Ui instanceof qr&&(pr=Ui)}}),Object.defineProperty(this,"path",{get:function(){return pr.path},set:function(Ui){pr.path=Ui}});var ma=[];Object.defineProperty(this,"ctxStack",{get:function(){return ma},set:function(Ui){ma=Ui}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Ui){var ha;ha=gn(Ui),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(Ui){var ha=gn(Ui);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(Ui){["butt","round","square"].indexOf(Ui)!==-1&&(this.ctx.lineCap=Ui,this.pdf.setLineCap(Ui))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Ui){isNaN(Ui)||(this.ctx.lineWidth=Ui,this.pdf.setLineWidth(Ui))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Ui){["bevel","round","miter"].indexOf(Ui)!==-1&&(this.ctx.lineJoin=Ui,this.pdf.setLineJoin(Ui))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Ui){isNaN(Ui)||(this.ctx.miterLimit=Ui,this.pdf.setMiterLimit(Ui))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Ui){this.ctx.textBaseline=Ui}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Ui){["right","end","center","left","start"].indexOf(Ui)!==-1&&(this.ctx.textAlign=Ui)}});var aa=null;function ba(kn,Ui){if(aa===null){var ha=function(ta){var ra=[];return Object.keys(ta).forEach(function(Lr){ta[Lr].forEach(function(xr){var Tn=null;switch(xr){case"bold":Tn={family:Lr,weight:"bold"};break;case"italic":Tn={family:Lr,style:"italic"};break;case"bolditalic":Tn={family:Lr,weight:"bold",style:"italic"};break;case"":case"normal":Tn={family:Lr}}Tn!==null&&(Tn.ref={name:Lr,style:xr},ra.push(Tn))})}),ra}(kn.getFontList());aa=function(ta){for(var ra={},Lr=0;Lr<ta.length;++Lr){var xr=vn(ta[Lr]),Tn=xr.family,mr=xr.stretch,Mr=xr.style,Xr=xr.weight;ra[Tn]=ra[Tn]||{},ra[Tn][mr]=ra[Tn][mr]||{},ra[Tn][mr][Mr]=ra[Tn][mr][Mr]||{},ra[Tn][mr][Mr][Xr]=xr}return ra}(ha.concat(Ui))}return aa}var yi=null;Object.defineProperty(this,"fontFaces",{get:function(){return yi},set:function(Ui){aa=null,yi=Ui}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ui){var ha;if(this.ctx.font=Ui,(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(Ui))!==null){var ta=ha[1],ra=(ha[2],ha[3]),Lr=ha[4],xr=(ha[5],ha[6]),Tn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Lr)[2];Lr=Tn==="px"?Math.floor(parseFloat(Lr)*this.pdf.internal.scaleFactor):Tn==="em"?Math.floor(parseFloat(Lr)*this.pdf.getFontSize()):Math.floor(parseFloat(Lr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Lr);var mr=function(Nr){var tn,xn,Ln=[],Sn=Nr.trim();if(Sn==="")return Un;if(Sn in Yt)return[Yt[Sn]];for(;Sn!=="";){switch(xn=null,tn=(Sn=Fr(Sn)).charAt(0)){case'"':case"'":xn=cn(Sn.substring(1),tn);break;default:xn=_n(Sn)}if(xn===null)return Un;if(Ln.push(xn[0]),(Sn=Fr(xn[1]))!==""&&Sn.charAt(0)!==",")return Un;Sn=Sn.replace(/^,/,"")}return Ln}(xr);if(this.fontFaces){var Mr=it(ba(this.pdf,this.fontFaces),mr.map(function(Nr){return{family:Nr,stretch:"normal",weight:ra,style:ta}}));this.pdf.setFont(Mr.ref.name,Mr.ref.style)}else{var Xr="";(ra==="bold"||parseInt(ra,10)>=700||ta==="bold")&&(Xr="bold"),ta==="italic"&&(Xr+="italic"),Xr.length===0&&(Xr="normal");for(var un="",Fn={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<mr.length;_t++){if(this.pdf.internal.getFont(mr[_t],Xr,{noFallback:!0,disableWarning:!0})!==void 0){un=mr[_t];break}if(Xr==="bolditalic"&&this.pdf.internal.getFont(mr[_t],"bold",{noFallback:!0,disableWarning:!0})!==void 0)un=mr[_t],Xr="bold";else if(this.pdf.internal.getFont(mr[_t],"normal",{noFallback:!0,disableWarning:!0})!==void 0){un=mr[_t],Xr="normal";break}}if(un===""){for(var Or=0;Or<mr.length;Or++)if(Fn[mr[Or]]){un=Fn[mr[Or]];break}}un=un===""?"Times":un,this.pdf.setFont(un,Xr)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Ui){this.ctx.globalCompositeOperation=Ui}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Ui){this.ctx.globalAlpha=Ui}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Ui){this.ctx.lineDashOffset=Ui,di.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ui){this.ctx.lineDash=Ui,di.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ui){this.ctx.ignoreClearRect=Boolean(Ui)}})};Qr.prototype.setLineDash=function(An){this.lineDash=An},Qr.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Qr.prototype.fill=function(){Oi.call(this,"fill",!1)},Qr.prototype.stroke=function(){Oi.call(this,"stroke",!1)},Qr.prototype.beginPath=function(){this.path=[{type:"begin"}]},Qr.prototype.moveTo=function(An,Ur){if(isNaN(An)||isNaN(Ur))throw d.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var In=this.ctx.transform.applyToPoint(new st(An,Ur));this.path.push({type:"mt",x:In.x,y:In.y}),this.ctx.lastPoint=new st(An,Ur)},Qr.prototype.closePath=function(){var An=new st(0,0),Ur=0;for(Ur=this.path.length-1;Ur!==-1;Ur--)if(this.path[Ur].type==="begin"&&x()(this.path[Ur+1])==="object"&&typeof this.path[Ur+1].x=="number"){An=new st(this.path[Ur+1].x,this.path[Ur+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new st(An.x,An.y)},Qr.prototype.lineTo=function(An,Ur){if(isNaN(An)||isNaN(Ur))throw d.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var In=this.ctx.transform.applyToPoint(new st(An,Ur));this.path.push({type:"lt",x:In.x,y:In.y}),this.ctx.lastPoint=new st(In.x,In.y)},Qr.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Oi.call(this,null,!0)},Qr.prototype.quadraticCurveTo=function(An,Ur,In,Qn){if(isNaN(In)||isNaN(Qn)||isNaN(An)||isNaN(Ur))throw d.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var $n=this.ctx.transform.applyToPoint(new st(In,Qn)),oi=this.ctx.transform.applyToPoint(new st(An,Ur));this.path.push({type:"qct",x1:oi.x,y1:oi.y,x:$n.x,y:$n.y}),this.ctx.lastPoint=new st($n.x,$n.y)},Qr.prototype.bezierCurveTo=function(An,Ur,In,Qn,$n,oi){if(isNaN($n)||isNaN(oi)||isNaN(An)||isNaN(Ur)||isNaN(In)||isNaN(Qn))throw d.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Ti=this.ctx.transform.applyToPoint(new st($n,oi)),ki=this.ctx.transform.applyToPoint(new st(An,Ur)),Ri=this.ctx.transform.applyToPoint(new st(In,Qn));this.path.push({type:"bct",x1:ki.x,y1:ki.y,x2:Ri.x,y2:Ri.y,x:Ti.x,y:Ti.y}),this.ctx.lastPoint=new st(Ti.x,Ti.y)},Qr.prototype.arc=function(An,Ur,In,Qn,$n,oi){if(isNaN(An)||isNaN(Ur)||isNaN(In)||isNaN(Qn)||isNaN($n))throw d.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(oi=Boolean(oi),!this.ctx.transform.isIdentity){var Ti=this.ctx.transform.applyToPoint(new st(An,Ur));An=Ti.x,Ur=Ti.y;var ki=this.ctx.transform.applyToPoint(new st(0,In)),Ri=this.ctx.transform.applyToPoint(new st(0,0));In=Math.sqrt(Math.pow(ki.x-Ri.x,2)+Math.pow(ki.y-Ri.y,2))}Math.abs($n-Qn)>=2*Math.PI&&(Qn=0,$n=2*Math.PI),this.path.push({type:"arc",x:An,y:Ur,radius:In,startAngle:Qn,endAngle:$n,counterclockwise:oi})},Qr.prototype.arcTo=function(An,Ur,In,Qn,$n){throw new Error("arcTo not implemented.")},Qr.prototype.rect=function(An,Ur,In,Qn){if(isNaN(An)||isNaN(Ur)||isNaN(In)||isNaN(Qn))throw d.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(An,Ur),this.lineTo(An+In,Ur),this.lineTo(An+In,Ur+Qn),this.lineTo(An,Ur+Qn),this.lineTo(An,Ur),this.lineTo(An+In,Ur),this.lineTo(An,Ur)},Qr.prototype.fillRect=function(An,Ur,In,Qn){if(isNaN(An)||isNaN(Ur)||isNaN(In)||isNaN(Qn))throw d.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!vr.call(this)){var $n={};this.lineCap!=="butt"&&($n.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&($n.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(An,Ur,In,Qn),this.fill(),$n.hasOwnProperty("lineCap")&&(this.lineCap=$n.lineCap),$n.hasOwnProperty("lineJoin")&&(this.lineJoin=$n.lineJoin)}},Qr.prototype.strokeRect=function(An,Ur,In,Qn){if(isNaN(An)||isNaN(Ur)||isNaN(In)||isNaN(Qn))throw d.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Vn.call(this)||(this.beginPath(),this.rect(An,Ur,In,Qn),this.stroke())},Qr.prototype.clearRect=function(An,Ur,In,Qn){if(isNaN(An)||isNaN(Ur)||isNaN(In)||isNaN(Qn))throw d.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(An,Ur,In,Qn))},Qr.prototype.save=function(An){An=typeof An!="boolean"||An;for(var Ur=this.pdf.internal.getCurrentPageInfo().pageNumber,In=0;In<this.pdf.internal.getNumberOfPages();In++)this.pdf.setPage(In+1),this.pdf.internal.out("q");if(this.pdf.setPage(Ur),An){this.ctx.fontSize=this.pdf.internal.getFontSize();var Qn=new qr(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Qn}},Qr.prototype.restore=function(An){An=typeof An!="boolean"||An;for(var Ur=this.pdf.internal.getCurrentPageInfo().pageNumber,In=0;In<this.pdf.internal.getNumberOfPages();In++)this.pdf.setPage(In+1),this.pdf.internal.out("Q");this.pdf.setPage(Ur),An&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},Qr.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var gn=function(Ur){var In,Qn,$n,oi;if(Ur.isCanvasGradient===!0&&(Ur=Ur.getColor()),!Ur)return{r:0,g:0,b:0,a:0,style:Ur};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Ur))In=0,Qn=0,$n=0,oi=0;else{var Ti=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Ur);if(Ti!==null)In=parseInt(Ti[1]),Qn=parseInt(Ti[2]),$n=parseInt(Ti[3]),oi=1;else if((Ti=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Ur))!==null)In=parseInt(Ti[1]),Qn=parseInt(Ti[2]),$n=parseInt(Ti[3]),oi=parseFloat(Ti[4]);else{if(oi=1,typeof Ur=="string"&&Ur.charAt(0)!=="#"){var ki=new l(Ur);Ur=ki.ok?ki.toHex():"#000000"}Ur.length===4?(In=Ur.substring(1,2),In+=In,Qn=Ur.substring(2,3),Qn+=Qn,$n=Ur.substring(3,4),$n+=$n):(In=Ur.substring(1,3),Qn=Ur.substring(3,5),$n=Ur.substring(5,7)),In=parseInt(In,16),Qn=parseInt(Qn,16),$n=parseInt($n,16)}}return{r:In,g:Qn,b:$n,a:oi,style:Ur}},vr=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},Vn=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Qr.prototype.fillText=function(An,Ur,In,Qn){if(isNaN(Ur)||isNaN(In)||typeof An!="string")throw d.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Qn=isNaN(Qn)?void 0:Qn,!vr.call(this)){var $n=Pr(this.ctx.transform.rotation),oi=this.ctx.transform.scaleX;jt.call(this,{text:An,x:Ur,y:In,scale:oi,angle:$n,align:this.textAlign,maxWidth:Qn})}},Qr.prototype.strokeText=function(An,Ur,In,Qn){if(isNaN(Ur)||isNaN(In)||typeof An!="string")throw d.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Vn.call(this)){Qn=isNaN(Qn)?void 0:Qn;var $n=Pr(this.ctx.transform.rotation),oi=this.ctx.transform.scaleX;jt.call(this,{text:An,x:Ur,y:In,scale:oi,renderingMode:"stroke",angle:$n,align:this.textAlign,maxWidth:Qn})}},Qr.prototype.measureText=function(An){if(typeof An!="string")throw d.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Ur=this.pdf,In=this.pdf.internal.scaleFactor,Qn=Ur.internal.getFontSize(),$n=Ur.getStringUnitWidth(An)*Qn/Ur.internal.scaleFactor,oi=function(ki){var Ri=(ki=ki||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Ri}}),this};return new oi({width:$n*=Math.round(96*In/72*1e4)/1e4})},Qr.prototype.scale=function(An,Ur){if(isNaN(An)||isNaN(Ur))throw d.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var In=new gt(An,0,0,Ur,0,0);this.ctx.transform=this.ctx.transform.multiply(In)},Qr.prototype.rotate=function(An){if(isNaN(An))throw d.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Ur=new gt(Math.cos(An),Math.sin(An),-Math.sin(An),Math.cos(An),0,0);this.ctx.transform=this.ctx.transform.multiply(Ur)},Qr.prototype.translate=function(An,Ur){if(isNaN(An)||isNaN(Ur))throw d.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var In=new gt(1,0,0,1,An,Ur);this.ctx.transform=this.ctx.transform.multiply(In)},Qr.prototype.transform=function(An,Ur,In,Qn,$n,oi){if(isNaN(An)||isNaN(Ur)||isNaN(In)||isNaN(Qn)||isNaN($n)||isNaN(oi))throw d.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Ti=new gt(An,Ur,In,Qn,$n,oi);this.ctx.transform=this.ctx.transform.multiply(Ti)},Qr.prototype.setTransform=function(An,Ur,In,Qn,$n,oi){An=isNaN(An)?1:An,Ur=isNaN(Ur)?0:Ur,In=isNaN(In)?0:In,Qn=isNaN(Qn)?1:Qn,$n=isNaN($n)?0:$n,oi=isNaN(oi)?0:oi,this.ctx.transform=new gt(An,Ur,In,Qn,$n,oi)};var kr=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Qr.prototype.drawImage=function(An,Ur,In,Qn,$n,oi,Ti,ki,Ri){var oa=this.pdf.getImageProperties(An),ma=1,aa=1,ba=1,yi=1;Qn!==void 0&&ki!==void 0&&(ba=ki/Qn,yi=Ri/$n,ma=oa.width/Qn*ki/Qn,aa=oa.height/$n*Ri/$n),oi===void 0&&(oi=Ur,Ti=In,Ur=0,In=0),Qn!==void 0&&ki===void 0&&(ki=Qn,Ri=$n),Qn===void 0&&ki===void 0&&(ki=oa.width,Ri=oa.height);for(var kn,Ui=this.ctx.transform.decompose(),ha=Pr(Ui.rotate.shx),ta=new gt,ra=(ta=(ta=(ta=ta.multiply(Ui.translate)).multiply(Ui.skew)).multiply(Ui.scale)).applyToRectangle(new Et(oi-Ur*ba,Ti-In*yi,Qn*ma,$n*aa)),Lr=Bn.call(this,ra),xr=[],Tn=0;Tn<Lr.length;Tn+=1)xr.indexOf(Lr[Tn])===-1&&xr.push(Lr[Tn]);if(ai(xr),this.autoPaging)for(var mr=xr[0],Mr=xr[xr.length-1],Xr=mr;Xr<Mr+1;Xr++){this.pdf.setPage(Xr);var un=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Fn=Xr===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],Nr=Xr===1?0:_t+(Xr-2)*Or;if(this.ctx.clip_path.length!==0){var tn=this.path;kn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=jr(kn,this.posX+this.margin[3],-Nr+Fn+this.ctx.prevPageLastElemOffset),Gi.call(this,"fill",!0),this.path=tn}var xn=JSON.parse(JSON.stringify(ra));xn=jr([xn],this.posX+this.margin[3],-Nr+Fn+this.ctx.prevPageLastElemOffset)[0];var Ln=(Xr>mr||Xr<Mr)&&kr.call(this);Ln&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],un,Or,null).clip().discardPath()),this.pdf.addImage(An,"JPEG",xn.x,xn.y,xn.w,xn.h,null,null,ha),Ln&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(An,"JPEG",ra.x,ra.y,ra.w,ra.h,null,null,ha)};var Bn=function(Ur,In,Qn){var $n=[];In=In||this.pdf.internal.pageSize.width,Qn=Qn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var oi=this.posY+this.ctx.prevPageLastElemOffset;switch(Ur.type){default:case"mt":case"lt":$n.push(Math.floor((Ur.y+oi)/Qn)+1);break;case"arc":$n.push(Math.floor((Ur.y+oi-Ur.radius)/Qn)+1),$n.push(Math.floor((Ur.y+oi+Ur.radius)/Qn)+1);break;case"qct":var Ti=Xn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Ur.x1,Ur.y1,Ur.x,Ur.y);$n.push(Math.floor((Ti.y+oi)/Qn)+1),$n.push(Math.floor((Ti.y+Ti.h+oi)/Qn)+1);break;case"bct":var ki=Pn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Ur.x1,Ur.y1,Ur.x2,Ur.y2,Ur.x,Ur.y);$n.push(Math.floor((ki.y+oi)/Qn)+1),$n.push(Math.floor((ki.y+ki.h+oi)/Qn)+1);break;case"rect":$n.push(Math.floor((Ur.y+oi)/Qn)+1),$n.push(Math.floor((Ur.y+Ur.h+oi)/Qn)+1)}for(var Ri=0;Ri<$n.length;Ri+=1)for(;this.pdf.internal.getNumberOfPages()<$n[Ri];)on.call(this);return $n},on=function(){var Ur=this.fillStyle,In=this.strokeStyle,Qn=this.font,$n=this.lineCap,oi=this.lineWidth,Ti=this.lineJoin;this.pdf.addPage(),this.fillStyle=Ur,this.strokeStyle=In,this.font=Qn,this.lineCap=$n,this.lineWidth=oi,this.lineJoin=Ti},jr=function(Ur,In,Qn){for(var $n=0;$n<Ur.length;$n++)switch(Ur[$n].type){case"bct":Ur[$n].x2+=In,Ur[$n].y2+=Qn;case"qct":Ur[$n].x1+=In,Ur[$n].y1+=Qn;case"mt":case"lt":case"arc":default:Ur[$n].x+=In,Ur[$n].y+=Qn}return Ur},ai=function(Ur){return Ur.sort(function(In,Qn){return In-Qn})},Oi=function(Ur,In){for(var Qn,$n,oi=this.fillStyle,Ti=this.strokeStyle,ki=this.lineCap,Ri=this.lineWidth,oa=Math.abs(Ri*this.ctx.transform.scaleX),ma=this.lineJoin,aa=JSON.parse(JSON.stringify(this.path)),ba=JSON.parse(JSON.stringify(this.path)),yi=[],kn=0;kn<ba.length;kn++)if(ba[kn].x!==void 0)for(var Ui=Bn.call(this,ba[kn]),ha=0;ha<Ui.length;ha+=1)yi.indexOf(Ui[ha])===-1&&yi.push(Ui[ha]);for(var ta=0;ta<yi.length;ta++)for(;this.pdf.internal.getNumberOfPages()<yi[ta];)on.call(this);if(ai(yi),this.autoPaging)for(var ra=yi[0],Lr=yi[yi.length-1],xr=ra;xr<Lr+1;xr++){this.pdf.setPage(xr),this.fillStyle=oi,this.strokeStyle=Ti,this.lineCap=ki,this.lineWidth=oa,this.lineJoin=ma;var Tn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],mr=xr===1?this.posY+this.margin[0]:this.margin[0],Mr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Xr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],un=xr===1?0:Mr+(xr-2)*Xr;if(this.ctx.clip_path.length!==0){var Fn=this.path;Qn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=jr(Qn,this.posX+this.margin[3],-un+mr+this.ctx.prevPageLastElemOffset),Gi.call(this,Ur,!0),this.path=Fn}if($n=JSON.parse(JSON.stringify(aa)),this.path=jr($n,this.posX+this.margin[3],-un+mr+this.ctx.prevPageLastElemOffset),In===!1||xr===0){var _t=(xr>ra||xr<Lr)&&kr.call(this);_t&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Tn,Xr,null).clip().discardPath()),Gi.call(this,Ur,In),_t&&this.pdf.restoreGraphicsState()}this.lineWidth=Ri}else this.lineWidth=oa,Gi.call(this,Ur,In),this.lineWidth=Ri;this.path=aa},Gi=function(Ur,In){if((Ur!=="stroke"||In||!Vn.call(this))&&(Ur==="stroke"||In||!vr.call(this))){for(var Qn,$n,oi=[],Ti=this.path,ki=0;ki<Ti.length;ki++){var Ri=Ti[ki];switch(Ri.type){case"begin":oi.push({begin:!0});break;case"close":oi.push({close:!0});break;case"mt":oi.push({start:Ri,deltas:[],abs:[]});break;case"lt":var oa=oi.length;if(Ti[ki-1]&&!isNaN(Ti[ki-1].x)&&(Qn=[Ri.x-Ti[ki-1].x,Ri.y-Ti[ki-1].y],oa>0)){for(;oa>=0;oa--)if(oi[oa-1].close!==!0&&oi[oa-1].begin!==!0){oi[oa-1].deltas.push(Qn),oi[oa-1].abs.push(Ri);break}}break;case"bct":Qn=[Ri.x1-Ti[ki-1].x,Ri.y1-Ti[ki-1].y,Ri.x2-Ti[ki-1].x,Ri.y2-Ti[ki-1].y,Ri.x-Ti[ki-1].x,Ri.y-Ti[ki-1].y],oi[oi.length-1].deltas.push(Qn);break;case"qct":var ma=Ti[ki-1].x+2/3*(Ri.x1-Ti[ki-1].x),aa=Ti[ki-1].y+2/3*(Ri.y1-Ti[ki-1].y),ba=Ri.x+2/3*(Ri.x1-Ri.x),yi=Ri.y+2/3*(Ri.y1-Ri.y),kn=Ri.x,Ui=Ri.y;Qn=[ma-Ti[ki-1].x,aa-Ti[ki-1].y,ba-Ti[ki-1].x,yi-Ti[ki-1].y,kn-Ti[ki-1].x,Ui-Ti[ki-1].y],oi[oi.length-1].deltas.push(Qn);break;case"arc":oi.push({deltas:[],abs:[],arc:!0}),Array.isArray(oi[oi.length-1].abs)&&oi[oi.length-1].abs.push(Ri)}}$n=In?null:Ur==="stroke"?"stroke":"fill";for(var ha=!1,ta=0;ta<oi.length;ta++)if(oi[ta].arc)for(var ra=oi[ta].abs,Lr=0;Lr<ra.length;Lr++){var xr=ra[Lr];xr.type==="arc"?Yn.call(this,xr.x,xr.y,xr.radius,xr.startAngle,xr.endAngle,xr.counterclockwise,void 0,In,!ha):zt.call(this,xr.x,xr.y),ha=!0}else if(oi[ta].close===!0)this.pdf.internal.out("h"),ha=!1;else if(oi[ta].begin!==!0){var Tn=oi[ta].start.x,mr=oi[ta].start.y;Lt.call(this,oi[ta].deltas,Tn,mr),ha=!0}$n&&Gt.call(this,$n),In&&Ot.call(this)}},rn=function(Ur){var In=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Qn=In*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Ur-Qn;case"top":return Ur+In-Qn;case"hanging":return Ur+In-2*Qn;case"middle":return Ur+In/2-Qn;case"ideographic":return Ur;case"alphabetic":default:return Ur}},Cn=function(Ur){return Ur+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Qr.prototype.createLinearGradient=function(){var An=function(){};return An.colorStops=[],An.addColorStop=function(Ur,In){this.colorStops.push([Ur,In])},An.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},An.isCanvasGradient=!0,An},Qr.prototype.createPattern=function(){return this.createLinearGradient()},Qr.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Yn=function(Ur,In,Qn,$n,oi,Ti,ki,Ri,oa){for(var ma=Ar.call(this,Qn,$n,oi,Ti),aa=0;aa<ma.length;aa++){var ba=ma[aa];aa===0&&(oa?Rt.call(this,ba.x1+Ur,ba.y1+In):zt.call(this,ba.x1+Ur,ba.y1+In)),cr.call(this,Ur,In,ba.x2,ba.y2,ba.x3,ba.y3,ba.x4,ba.y4)}Ri?Ot.call(this):Gt.call(this,ki)},Gt=function(Ur){switch(Ur){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Ot=function(){this.pdf.clip(),this.pdf.discardPath()},Rt=function(Ur,In){this.pdf.internal.out(je(Ur)+" "+Xe(In)+" m")},jt=function(Ur){var In;switch(Ur.align){case"right":case"end":In="right";break;case"center":In="center";break;case"left":case"start":default:In="left"}var Qn=this.pdf.getTextDimensions(Ur.text),$n=rn.call(this,Ur.y),oi=Cn.call(this,$n)-Qn.h,Ti=this.ctx.transform.applyToPoint(new st(Ur.x,$n)),ki=this.ctx.transform.decompose(),Ri=new gt;Ri=(Ri=(Ri=Ri.multiply(ki.translate)).multiply(ki.skew)).multiply(ki.scale);for(var oa,ma,aa,ba=this.ctx.transform.applyToRectangle(new Et(Ur.x,$n,Qn.w,Qn.h)),yi=Ri.applyToRectangle(new Et(Ur.x,oi,Qn.w,Qn.h)),kn=Bn.call(this,yi),Ui=[],ha=0;ha<kn.length;ha+=1)Ui.indexOf(kn[ha])===-1&&Ui.push(kn[ha]);if(ai(Ui),this.autoPaging)for(var ta=Ui[0],ra=Ui[Ui.length-1],Lr=ta;Lr<ra+1;Lr++){this.pdf.setPage(Lr);var xr=Lr===1?this.posY+this.margin[0]:this.margin[0],Tn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],mr=this.pdf.internal.pageSize.height-this.margin[2],Mr=mr-this.margin[0],Xr=this.pdf.internal.pageSize.width-this.margin[1],un=Xr-this.margin[3],Fn=Lr===1?0:Tn+(Lr-2)*Mr;if(this.ctx.clip_path.length!==0){var _t=this.path;oa=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=jr(oa,this.posX+this.margin[3],-1*Fn+xr),Gi.call(this,"fill",!0),this.path=_t}var Or=jr([JSON.parse(JSON.stringify(yi))],this.posX+this.margin[3],-Fn+xr+this.ctx.prevPageLastElemOffset)[0];Ur.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*Ur.scale),aa=this.lineWidth,this.lineWidth=aa*Ur.scale);var Nr=this.autoPaging!=="text";if(Nr||Or.y+Or.h<=mr){if(Nr||Or.y>=xr&&Or.x<=Xr){var tn=Nr?Ur.text:this.pdf.splitTextToSize(Ur.text,Ur.maxWidth||Xr-Or.x)[0],xn=jr([JSON.parse(JSON.stringify(ba))],this.posX+this.margin[3],-Fn+xr+this.ctx.prevPageLastElemOffset)[0],Ln=Nr&&(Lr>ta||Lr<ra)&&kr.call(this);Ln&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],un,Mr,null).clip().discardPath()),this.pdf.text(tn,xn.x,xn.y,{angle:Ur.angle,align:In,renderingMode:Ur.renderingMode}),Ln&&this.pdf.restoreGraphicsState()}}else Or.y<mr&&(this.ctx.prevPageLastElemOffset+=mr-Or.y);Ur.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=aa)}else Ur.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*Ur.scale),aa=this.lineWidth,this.lineWidth=aa*Ur.scale),this.pdf.text(Ur.text,Ti.x+this.posX,Ti.y+this.posY,{angle:Ur.angle,align:In,renderingMode:Ur.renderingMode,maxWidth:Ur.maxWidth}),Ur.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=aa)},zt=function(Ur,In,Qn,$n){Qn=Qn||0,$n=$n||0,this.pdf.internal.out(je(Ur+Qn)+" "+Xe(In+$n)+" l")},Lt=function(Ur,In,Qn){return this.pdf.lines(Ur,In,Qn,null,null)},cr=function(Ur,In,Qn,$n,oi,Ti,ki,Ri){this.pdf.internal.out([Le(tt(Qn+Ur)),Le(Ze($n+In)),Le(tt(oi+Ur)),Le(Ze(Ti+In)),Le(tt(ki+Ur)),Le(Ze(Ri+In)),"c"].join(" "))},Ar=function(Ur,In,Qn,$n){for(var oi=2*Math.PI,Ti=Math.PI/2;In>Qn;)In-=oi;var ki=Math.abs(Qn-In);ki<oi&&$n&&(ki=oi-ki);for(var Ri=[],oa=$n?-1:1,ma=In;ki>1e-5;){var aa=ma+oa*Math.min(ki,Ti);Ri.push(br.call(this,Ur,ma,aa)),ki-=Math.abs(aa-ma),ma=aa}return Ri},br=function(Ur,In,Qn){var $n=(Qn-In)/2,oi=Ur*Math.cos($n),Ti=Ur*Math.sin($n),ki=oi,Ri=-Ti,oa=ki*ki+Ri*Ri,ma=oa+ki*oi+Ri*Ti,aa=4/3*(Math.sqrt(2*oa*ma)-ma)/(ki*Ti-Ri*oi),ba=ki-aa*Ri,yi=Ri+aa*ki,kn=ba,Ui=-yi,ha=$n+In,ta=Math.cos(ha),ra=Math.sin(ha);return{x1:Ur*Math.cos(In),y1:Ur*Math.sin(In),x2:ba*ta-yi*ra,y2:ba*ra+yi*ta,x3:kn*ta-Ui*ra,y3:kn*ra+Ui*ta,x4:Ur*Math.cos(Qn),y4:Ur*Math.sin(Qn)}},Pr=function(Ur){return 180*Ur/Math.PI},Xn=function(Ur,In,Qn,$n,oi,Ti){var ki=Ur+.5*(Qn-Ur),Ri=In+.5*($n-In),oa=oi+.5*(Qn-oi),ma=Ti+.5*($n-Ti),aa=Math.min(Ur,oi,ki,oa),ba=Math.max(Ur,oi,ki,oa),yi=Math.min(In,Ti,Ri,ma),kn=Math.max(In,Ti,Ri,ma);return new Et(aa,yi,ba-aa,kn-yi)},Pn=function(Ur,In,Qn,$n,oi,Ti,ki,Ri){var oa,ma,aa,ba,yi,kn,Ui,ha,ta,ra,Lr,xr,Tn,mr,Mr=Qn-Ur,Xr=$n-In,un=oi-Qn,Fn=Ti-$n,_t=ki-oi,Or=Ri-Ti;for(ma=0;ma<41;ma++)ta=(Ui=(aa=Ur+(oa=ma/40)*Mr)+oa*((yi=Qn+oa*un)-aa))+oa*(yi+oa*(oi+oa*_t-yi)-Ui),ra=(ha=(ba=In+oa*Xr)+oa*((kn=$n+oa*Fn)-ba))+oa*(kn+oa*(Ti+oa*Or-kn)-ha),ma==0?(Lr=ta,xr=ra,Tn=ta,mr=ra):(Lr=Math.min(Lr,ta),xr=Math.min(xr,ra),Tn=Math.max(Tn,ta),mr=Math.max(mr,ra));return new Et(Math.round(Lr),Math.round(xr),Math.round(Tn-Lr),Math.round(mr-xr))},di=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Ur,In,Qn=(Ur=this.ctx.lineDash,In=this.ctx.lineDashOffset,JSON.stringify({lineDash:Ur,lineDashOffset:In}));this.prevLineDash!==Qn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Qn)}}}(z.API),function(nt){var Le=function(st){var Et,gt,pr,qr,Qr,gn,vr,Vn,kr,Bn;for(/[^\x00-\xFF]/.test(st),gt=[],pr=0,qr=(st+=Et="\0\0\0\0".slice(st.length%4||4)).length;qr>pr;pr+=4)(Qr=(st.charCodeAt(pr)<<24)+(st.charCodeAt(pr+1)<<16)+(st.charCodeAt(pr+2)<<8)+st.charCodeAt(pr+3))!==0?(gn=(Qr=((Qr=((Qr=((Qr=(Qr-(Bn=Qr%85))/85)-(kr=Qr%85))/85)-(Vn=Qr%85))/85)-(vr=Qr%85))/85)%85,gt.push(gn+33,vr+33,Vn+33,kr+33,Bn+33)):gt.push(122);return function(on,jr){for(var ai=jr;ai>0;ai--)on.pop()}(gt,Et.length),String.fromCharCode.apply(String,gt)+"~>"},je=function(st){var Et,gt,pr,qr,Qr,gn=String,vr="length",Vn=255,kr="charCodeAt",Bn="slice",on="replace";for(st[Bn](-2),st=st[Bn](0,-2)[on](/\s/g,"")[on]("z","!!!!!"),pr=[],qr=0,Qr=(st+=Et="uuuuu"[Bn](st[vr]%5||5))[vr];Qr>qr;qr+=5)gt=52200625*(st[kr](qr)-33)+614125*(st[kr](qr+1)-33)+7225*(st[kr](qr+2)-33)+85*(st[kr](qr+3)-33)+(st[kr](qr+4)-33),pr.push(Vn&gt>>24,Vn&gt>>16,Vn&gt>>8,Vn&gt);return function(jr,ai){for(var Oi=ai;Oi>0;Oi--)jr.pop()}(pr,Et[vr]),gn.fromCharCode.apply(gn,pr)},Xe=function(st){var Et=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"),Et.test(st)===!1)return"";for(var gt="",pr=0;pr<st.length;pr+=2)gt+=String.fromCharCode("0x"+(st[pr]+st[pr+1]));return gt},tt=function(st){for(var Et=new Uint8Array(st.length),gt=st.length;gt--;)Et[gt]=st.charCodeAt(gt);return st=(Et=Object(v.b)(Et)).reduce(function(pr,qr){return pr+String.fromCharCode(qr)},"")};nt.processDataByFilters=function(Ze,st){var Et=0,gt=Ze||"",pr=[];for(typeof(st=st||[])=="string"&&(st=[st]),Et=0;Et<st.length;Et+=1)switch(st[Et]){case"ASCII85Decode":case"/ASCII85Decode":gt=je(gt),pr.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":gt=Le(gt),pr.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":gt=Xe(gt),pr.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":gt=gt.split("").map(function(qr){return("0"+qr.charCodeAt().toString(16)).slice(-2)}).join("")+">",pr.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":gt=tt(gt),pr.push("/FlateDecode");break;default:throw new Error('The filter: "'+st[Et]+'" is not implemented')}return{data:gt,reverseChain:pr.reverse().join(" ")}}}(z.API),function(nt){nt.loadFile=function(Le,je,Xe){return function(tt,Ze,st){Ze=Ze!==!1,st=typeof st=="function"?st:function(){};var Et=void 0;try{Et=function(gt,pr,qr){var Qr=new XMLHttpRequest,gn=0,vr=function(kr){var Bn=kr.length,on=[],jr=String.fromCharCode;for(gn=0;gn<Bn;gn+=1)on.push(jr(255&kr.charCodeAt(gn)));return on.join("")};if(Qr.open("GET",gt,!pr),Qr.overrideMimeType("text/plain; charset=x-user-defined"),pr===!1&&(Qr.onload=function(){Qr.status===200?qr(vr(this.responseText)):qr(void 0)}),Qr.send(null),pr&&Qr.status===200)return vr(Qr.responseText)}(tt,Ze,st)}catch(gt){}return Et}(Le,je,Xe)},nt.loadImageFile=nt.loadFile}(z.API),function(nt){function Le(){return(m.html2canvas?Promise.resolve(m.html2canvas):Promise.resolve().then(n.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 je(){return(m.DOMPurify?Promise.resolve(m.DOMPurify):n.e(246).then(n.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(Et){var gt=x()(Et);return gt==="undefined"?"undefined":gt==="string"||Et instanceof String?"string":gt==="number"||Et instanceof Number?"number":gt==="function"||Et instanceof Function?"function":Et&&Et.constructor===Array?"array":Et&&Et.nodeType===1?"element":gt==="object"?"object":"unknown"},tt=function(Et,gt){var pr=document.createElement(Et);for(var qr in gt.className&&(pr.className=gt.className),gt.innerHTML&&gt.dompurify&&(pr.innerHTML=gt.dompurify.sanitize(gt.innerHTML)),gt.style)pr.style[qr]=gt.style[qr];return pr},Ze=function st(Et){var gt=Object.assign(st.convert(Promise.resolve()),JSON.parse(JSON.stringify(st.template))),pr=st.convert(Promise.resolve(),gt);return pr=(pr=pr.setProgress(1,st,1,[st])).set(Et)};(Ze.prototype=Object.create(Promise.prototype)).constructor=Ze,Ze.convert=function(st,Et){return st.__proto__=Et||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,Et){return this.then(function(){switch(Et=Et||function(gt){switch(Xe(gt)){case"string":return"string";case"element":return gt.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(st)){case"string":return this.then(je).then(function(gt){return this.set({src:tt("div",{innerHTML:st,dompurify:gt})})});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},Et=function gt(pr,qr){for(var Qr=pr.nodeType===3?document.createTextNode(pr.nodeValue):pr.cloneNode(!1),gn=pr.firstChild;gn;gn=gn.nextSibling)qr!==!0&&gn.nodeType===1&&gn.nodeName==="SCRIPT"||Qr.appendChild(gt(gn,qr));return pr.nodeType===1&&(pr.nodeName==="CANVAS"?(Qr.width=pr.width,Qr.height=pr.height,Qr.getContext("2d").drawImage(pr,0,0)):pr.nodeName!=="TEXTAREA"&&pr.nodeName!=="SELECT"||(Qr.value=pr.value),Qr.addEventListener("load",function(){Qr.scrollTop=pr.scrollTop,Qr.scrollLeft=pr.scrollLeft},!0)),Qr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);Et.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=tt("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=tt("div",{className:"html2pdf__container",style:st}),this.prop.container.appendChild(Et),this.prop.container.firstChild.appendChild(tt("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(Le).then(function(Et){var gt=Object.assign({},this.opt.html2canvas);return delete gt.onrendered,Et(this.prop.container,gt)}).then(function(Et){(this.opt.html2canvas.onrendered||function(){})(Et),this.prop.canvas=Et,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(Le).then(function(Et){var gt=this.opt.jsPDF,pr=this.opt.fontFaces,qr=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,Qr=Object.assign({async:!0,allowTaint:!0,scale:qr,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete Qr.onrendered,gt.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,gt.context2d.posX=this.opt.x,gt.context2d.posY=this.opt.y,gt.context2d.margin=this.opt.margin,gt.context2d.fontFaces=pr,pr)for(var gn=0;gn<pr.length;++gn){var vr=pr[gn],Vn=vr.src.find(function(kr){return kr.format==="truetype"});Vn&&gt.addFont(Vn.url,vr.ref.name,vr.ref.style)}return Qr.windowHeight=Qr.windowHeight||0,Qr.windowHeight=Qr.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Qr.windowHeight,gt.context2d.save(!0),Et(this.prop.container,Qr)}).then(function(Et){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Et),this.prop.canvas=Et,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,Et,gt){return(gt=gt||"pdf").toLowerCase()==="img"||gt.toLowerCase()==="image"?this.outputImg(st,Et):this.outputPdf(st,Et)},Ze.prototype.outputPdf=function(st,Et){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(st,Et)})},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 Et=Object.keys(st||{}).map(function(gt){if(gt in Ze.template.prop)return function(){this.prop[gt]=st[gt]};switch(gt){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[gt]=st[gt]}}},this);return this.then(function(){return this.thenList(Et)})},Ze.prototype.get=function(st,Et){return this.then(function(){var gt=st in Ze.template.prop?this.prop[st]:this.opt[st];return Et?Et(gt):gt})},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 Et(gt,pr){return Math.floor(gt*pr/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:Et(st.inner.width,st.k),height:Et(st.inner.height,st.k)},st.inner.ratio=st.inner.height/st.inner.width),this.prop.pageSize=st})},Ze.prototype.setProgress=function(st,Et,gt,pr){return st!=null&&(this.progress.val=st),Et!=null&&(this.progress.state=Et),gt!=null&&(this.progress.n=gt),pr!=null&&(this.progress.stack=pr),this.progress.ratio=this.progress.val/this.progress.state,this},Ze.prototype.updateProgress=function(st,Et,gt,pr){return this.setProgress(st?this.progress.val+st:null,Et||null,gt?this.progress.n+gt:null,pr?this.progress.stack.concat(pr):null)},Ze.prototype.then=function(st,Et){var gt=this;return this.thenCore(st,Et,function(pr,qr){return gt.updateProgress(null,null,1,[pr]),Promise.prototype.then.call(this,function(Qr){return gt.updateProgress(null,pr),Qr}).then(pr,qr).then(function(Qr){return gt.updateProgress(1),Qr})})},Ze.prototype.thenCore=function(st,Et,gt){gt=gt||Promise.prototype.then,st&&(st=st.bind(this)),Et&&(Et=Et.bind(this));var pr=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:Ze.convert(Object.assign({},this),Promise.prototype),qr=gt.call(pr,st,Et);return Ze.convert(qr,this.__proto__)},Ze.prototype.thenExternal=function(st,Et){return Promise.prototype.then.call(this,st,Et)},Ze.prototype.thenList=function(st){var Et=this;return st.forEach(function(gt){Et=Et.thenCore(gt)}),Et},Ze.prototype.catch=function(st){st&&(st=st.bind(this));var Et=Promise.prototype.catch.call(this,st);return Ze.convert(Et,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,Et,gt){if(x()(st)==="object"){var pr=st;st=pr.orientation,Et=pr.unit||Et,gt=pr.format||gt}Et=Et||"mm",gt=gt||"a4",st=(""+(st||"P")).toLowerCase();var qr,Qr=(""+gt).toLowerCase(),gn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(Et){case"pt":qr=1;break;case"mm":qr=72/25.4;break;case"cm":qr=72/2.54;break;case"in":qr=72;break;case"px":qr=.75;break;case"pc":case"em":qr=12;break;case"ex":qr=6;break;default:throw"Invalid unit: "+Et}var vr,Vn=0,kr=0;if(gn.hasOwnProperty(Qr))Vn=gn[Qr][1]/qr,kr=gn[Qr][0]/qr;else try{Vn=gt[1],kr=gt[0]}catch(Bn){throw new Error("Invalid format: "+gt)}if(st==="p"||st==="portrait")st="p",kr>Vn&&(vr=kr,kr=Vn,Vn=vr);else{if(st!=="l"&&st!=="landscape")throw"Invalid orientation: "+st;st="l",Vn>kr&&(vr=kr,kr=Vn,Vn=vr)}return{width:kr,height:Vn,unit:Et,k:qr,orientation:st}},nt.html=function(st,Et){(Et=Et||{}).callback=Et.callback||function(){},Et.html2canvas=Et.html2canvas||{},Et.html2canvas.canvas=Et.html2canvas.canvas||this.canvas,Et.jsPDF=Et.jsPDF||this,Et.fontFaces=Et.fontFaces?Et.fontFaces.map(vn):null;var gt=new Ze(Et);return Et.worker?gt:gt.from(st).doCallback()}}(z.API),z.API.addJS=function(nt){return Mn=nt,this.internal.events.subscribe("postPutResources",function(){Kn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Kn+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),gi=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Mn+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Kn!==void 0&&gi!==void 0&&this.internal.out("/Names <</JavaScript "+Kn+" 0 R>>")}),this},function(nt){var Le;nt.events.push(["postPutResources",function(){var je=this,Xe=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var tt=je.outline.render().split(/\r\n/),Ze=0;Ze<tt.length;Ze++){var st=tt[Ze],Et=Xe.exec(st);if(Et!=null){var gt=Et[1];je.internal.newObjectDeferredBegin(gt,!1)}je.internal.write(st)}if(this.outline.createNamedDestinations){var pr=this.internal.pages.length,qr=[];for(Ze=0;Ze<pr;Ze++){var Qr=je.internal.newObject();qr.push(Qr);var gn=je.internal.getPageInfo(Ze+1);je.internal.write("<< /D["+gn.objId+" 0 R /XYZ null null null]>> endobj")}var vr=je.internal.newObject();for(je.internal.write("<< /Names [ "),Ze=0;Ze<qr.length;Ze++)je.internal.write("(page_"+(Ze+1)+")"+qr[Ze]+" 0 R");je.internal.write(" ] >>","endobj"),Le=je.internal.newObject(),je.internal.write("<< /Dests "+vr+" 0 R"),je.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 "+Le+" 0 R"))}]),nt.events.push(["initialized",function(){var je=this;je.outline={createNamedDestinations:!1,root:{children:[]}},je.outline.add=function(Xe,tt,Ze){var st={title:tt,options:Ze,children:[]};return Xe==null&&(Xe=this.root),Xe.children.push(st),st},je.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=je,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},je.outline.genIds_r=function(Xe){Xe.id=je.internal.newObjectDeferred();for(var tt=0;tt<Xe.children.length;tt++)this.genIds_r(Xe.children[tt])},je.outline.renderRoot=function(Xe){this.objStart(Xe),this.line("/Type /Outlines"),Xe.children.length>0&&(this.line("/First "+this.makeRef(Xe.children[0])),this.line("/Last "+this.makeRef(Xe.children[Xe.children.length-1]))),this.line("/Count "+this.count_r({count:0},Xe)),this.objEnd()},je.outline.renderItems=function(Xe){for(var tt=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 Et=this.count=this.count_r({count:0},st);if(Et>0&&this.line("/Count "+Et),st.options&&st.options.pageNumber){var gt=je.internal.getPageInfo(st.options.pageNumber);this.line("/Dest ["+gt.objId+" 0 R /XYZ 0 "+tt(0)+" 0]")}this.objEnd()}for(var pr=0;pr<Xe.children.length;pr++)this.renderItems(Xe.children[pr])},je.outline.line=function(Xe){this.ctx.val+=Xe+`\r
`},je.outline.makeRef=function(Xe){return Xe.id+" 0 R"},je.outline.makeString=function(Xe){return"("+je.internal.pdfEscape(Xe)+")"},je.outline.objStart=function(Xe){this.ctx.val+=`\r
`+Xe.id+` 0 obj\r
<<\r
`},je.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},je.outline.count_r=function(Xe,tt){for(var Ze=0;Ze<tt.children.length;Ze++)Xe.count++,this.count_r(Xe,tt.children[Ze]);return Xe.count}}])}(z.API),function(nt){var Le=[192,193,194,195,196,197,198,199];nt.processJPEG=function(je,Xe,tt,Ze,st,Et){var gt,pr=this.decode.DCT_DECODE,qr=null;if(typeof je=="string"||this.__addimage__.isArrayBuffer(je)||this.__addimage__.isArrayBufferView(je)){switch(je=st||je,je=this.__addimage__.isArrayBuffer(je)?new Uint8Array(je):je,(gt=function(Qr){for(var gn,vr=256*Qr.charCodeAt(4)+Qr.charCodeAt(5),Vn=Qr.length,kr={width:0,height:0,numcomponents:1},Bn=4;Bn<Vn;Bn+=2){if(Bn+=vr,Le.indexOf(Qr.charCodeAt(Bn+1))!==-1){gn=256*Qr.charCodeAt(Bn+5)+Qr.charCodeAt(Bn+6),kr={width:256*Qr.charCodeAt(Bn+7)+Qr.charCodeAt(Bn+8),height:gn,numcomponents:Qr.charCodeAt(Bn+9)};break}vr=256*Qr.charCodeAt(Bn+2)+Qr.charCodeAt(Bn+3)}return kr}(je=this.__addimage__.isArrayBufferView(je)?this.__addimage__.arrayBufferToBinaryString(je):je)).numcomponents){case 1:Et=this.color_spaces.DEVICE_GRAY;break;case 4:Et=this.color_spaces.DEVICE_CMYK;break;case 3:Et=this.color_spaces.DEVICE_RGB}qr={data:je,width:gt.width,height:gt.height,colorSpace:Et,bitsPerComponent:8,filter:pr,index:Xe,alias:tt}}return qr}}(z.API);var $t,Ct,Re,De,Pe,et=function(){var nt,Le,je;function Xe(Ze){var st,Et,gt,pr,qr,Qr,gn,vr,Vn,kr,Bn,on,jr,ai;for(this.data=Ze,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Qr=null;;){switch(st=this.readUInt32(),Vn=function(){var Oi,Gi;for(Gi=[],Oi=0;Oi<4;++Oi)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":Qr&&this.animation.frames.push(Qr),this.pos+=4,Qr={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},qr=this.readUInt16(),pr=this.readUInt16()||100,Qr.delay=1e3*qr/pr,Qr.disposeOp=this.data[this.pos++],Qr.blendOp=this.data[this.pos++],Qr.data=[];break;case"IDAT":case"fdAT":for(Vn==="fdAT"&&(this.pos+=4,st-=4),Ze=(Qr!=null?Qr.data:void 0)||this.imgData,on=0;0<=st?on<st:on>st;0<=st?++on:--on)Ze.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(gt=this.palette.length/3,this.transparency.indexed=this.read(st),this.transparency.indexed.length>gt)throw new Error("More transparent colors than palette size");if((kr=gt-this.transparency.indexed.length)>0)for(jr=0;0<=kr?jr<kr:jr>kr;0<=kr?++jr:--jr)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":gn=(Bn=this.read(st)).indexOf(0),vr=String.fromCharCode.apply(String,Bn.slice(0,gn)),this.text[vr]=String.fromCharCode.apply(String,Bn.slice(gn+1));break;case"IEND":return Qr&&this.animation.frames.push(Qr),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(ai=this.colorType)===4||ai===6,Et=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*Et,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,Et;for(Et=[],st=0;0<=Ze?st<Ze:st>Ze;0<=Ze?++st:--st)Et.push(this.data[this.pos++]);return Et},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,Et=new Uint8Array(this.width*this.height*st),gt=0,pr=this;if(Ze==null&&(Ze=this.imgData),Ze.length===0)return new Uint8Array(0);function qr(Qr,gn,vr,Vn){var kr,Bn,on,jr,ai,Oi,Gi,rn,Cn,Yn,Gt,Ot,Rt,jt,zt,Lt,cr,Ar,br,Pr,Xn,Pn=Math.ceil((pr.width-Qr)/vr),di=Math.ceil((pr.height-gn)/Vn),An=pr.width==Pn&&pr.height==di;for(jt=st*Pn,Ot=An?Et:new Uint8Array(jt*di),Oi=Ze.length,Rt=0,Bn=0;Rt<di&&gt<Oi;){switch(Ze[gt++]){case 0:for(jr=cr=0;cr<jt;jr=cr+=1)Ot[Bn++]=Ze[gt++];break;case 1:for(jr=Ar=0;Ar<jt;jr=Ar+=1)kr=Ze[gt++],ai=jr<st?0:Ot[Bn-st],Ot[Bn++]=(kr+ai)%256;break;case 2:for(jr=br=0;br<jt;jr=br+=1)kr=Ze[gt++],on=(jr-jr%st)/st,zt=Rt&&Ot[(Rt-1)*jt+on*st+jr%st],Ot[Bn++]=(zt+kr)%256;break;case 3:for(jr=Pr=0;Pr<jt;jr=Pr+=1)kr=Ze[gt++],on=(jr-jr%st)/st,ai=jr<st?0:Ot[Bn-st],zt=Rt&&Ot[(Rt-1)*jt+on*st+jr%st],Ot[Bn++]=(kr+Math.floor((ai+zt)/2))%256;break;case 4:for(jr=Xn=0;Xn<jt;jr=Xn+=1)kr=Ze[gt++],on=(jr-jr%st)/st,ai=jr<st?0:Ot[Bn-st],Rt===0?zt=Lt=0:(zt=Ot[(Rt-1)*jt+on*st+jr%st],Lt=on&&Ot[(Rt-1)*jt+(on-1)*st+jr%st]),Gi=ai+zt-Lt,rn=Math.abs(Gi-ai),Yn=Math.abs(Gi-zt),Gt=Math.abs(Gi-Lt),Cn=rn<=Yn&&rn<=Gt?ai:Yn<=Gt?zt:Lt,Ot[Bn++]=(kr+Cn)%256;break;default:throw new Error("Invalid filter algorithm: "+Ze[gt-1])}if(!An){var Ur=((gn+Rt*Vn)*pr.width+Qr)*st,In=Rt*jt;for(jr=0;jr<Pn;jr+=1){for(var Qn=0;Qn<st;Qn+=1)Et[Ur++]=Ot[In++];Ur+=(vr-1)*st}}Rt++}}return Ze=Object(v.a)(Ze),pr.interlaceMethod==1?(qr(0,0,8,8),qr(4,0,8,8),qr(0,4,4,8),qr(2,0,4,4),qr(0,2,2,4),qr(1,0,2,2),qr(0,1,1,2)):qr(0,0,1,1),Et},Xe.prototype.decodePalette=function(){var Ze,st,Et,gt,pr,qr,Qr,gn,vr;for(Et=this.palette,qr=this.transparency.indexed||[],pr=new Uint8Array((qr.length||0)+Et.length),gt=0,Ze=0,st=Qr=0,gn=Et.length;Qr<gn;st=Qr+=3)pr[gt++]=Et[st],pr[gt++]=Et[st+1],pr[gt++]=Et[st+2],pr[gt++]=(vr=qr[Ze++])!=null?vr:255;return pr},Xe.prototype.copyToImageData=function(Ze,st){var Et,gt,pr,qr,Qr,gn,vr,Vn,kr,Bn,on;if(gt=this.colors,kr=null,Et=this.hasAlphaChannel,this.palette.length&&(kr=(on=this._decodedPalette)!=null?on:this._decodedPalette=this.decodePalette(),gt=4,Et=!0),Vn=(pr=Ze.data||Ze).length,Qr=kr||st,qr=gn=0,gt===1)for(;qr<Vn;)vr=kr?4*st[qr/4]:gn,Bn=Qr[vr++],pr[qr++]=Bn,pr[qr++]=Bn,pr[qr++]=Bn,pr[qr++]=Et?Qr[vr++]:255,gn=vr;else for(;qr<Vn;)vr=kr?4*st[qr/4]:gn,pr[qr++]=Qr[vr++],pr[qr++]=Qr[vr++],pr[qr++]=Qr[vr++],pr[qr++]=Et?Qr[vr++]:255,gn=vr},Xe.prototype.decode=function(){var Ze;return Ze=new Uint8Array(this.width*this.height*4),this.copyToImageData(Ze,this.decodePixels()),Ze};var tt=function(){if(Object.prototype.toString.call(m)==="[object Window]"){try{Le=m.document.createElement("canvas"),je=Le.getContext("2d")}catch(st){return!1}return!0}return!1};return tt(),nt=function(st){var Et;if(tt()===!0)return je.width=st.width,je.height=st.height,je.clearRect(0,0,st.width,st.height),je.putImageData(st,0,0),(Et=new Image).src=Le.toDataURL(),Et;throw new Error("This method requires a Browser with Canvas-capability.")},Xe.prototype.decodeFrames=function(Ze){var st,Et,gt,pr,qr,Qr,gn,vr;if(this.animation){for(vr=[],Et=qr=0,Qr=(gn=this.animation.frames).length;qr<Qr;Et=++qr)st=gn[Et],gt=Ze.createImageData(st.width,st.height),pr=this.decodePixels(new Uint8Array(st.data)),this.copyToImageData(gt,pr),st.imageData=gt,vr.push(st.image=nt(gt));return vr}},Xe.prototype.renderFrame=function(Ze,st){var Et,gt,pr;return Et=(gt=this.animation.frames)[st],pr=gt[st-1],st===0&&Ze.clearRect(0,0,this.width,this.height),(pr!=null?pr.disposeOp:void 0)===1?Ze.clearRect(pr.xOffset,pr.yOffset,pr.width,pr.height):(pr!=null?pr.disposeOp:void 0)===2&&Ze.putImageData(pr.imageData,pr.xOffset,pr.yOffset),Et.blendOp===0&&Ze.clearRect(Et.xOffset,Et.yOffset,Et.width,Et.height),Ze.drawImage(Et.image,Et.xOffset,Et.yOffset)},Xe.prototype.animate=function(Ze){var st,Et,gt,pr,qr,Qr,gn=this;return Et=0,Qr=this.animation,pr=Qr.numFrames,gt=Qr.frames,qr=Qr.numPlays,(st=function(){var Vn,kr;if(Vn=Et++%pr,kr=gt[Vn],gn.renderFrame(Ze,Vn),pr>1&&Et/pr<qr)return gn.animation._timeout=setTimeout(st,kr.delay)})()},Xe.prototype.stopAnimation=function(){var Ze;return clearTimeout((Ze=this.animation)!=null?Ze._timeout:void 0)},Xe.prototype.render=function(Ze){var st,Et;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)):(Et=st.createImageData(this.width,this.height),this.copyToImageData(Et,this.decodePixels()),st.putImageData(Et,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 Le=0;if(nt[Le++]!==71||nt[Le++]!==73||nt[Le++]!==70||nt[Le++]!==56||(nt[Le++]+1&253)!=56||nt[Le++]!==97)throw new Error("Invalid GIF 87a/89a header.");var je=nt[Le++]|nt[Le++]<<8,Xe=nt[Le++]|nt[Le++]<<8,tt=nt[Le++],Ze=tt>>7,st=1<<(7&tt)+1;nt[Le++],nt[Le++];var Et=null,gt=null;Ze&&(Et=Le,gt=st,Le+=3*st);var pr=!0,qr=[],Qr=0,gn=null,vr=0,Vn=null;for(this.width=je,this.height=Xe;pr&&Le<nt.length;)switch(nt[Le++]){case 33:switch(nt[Le++]){case 255:if(nt[Le]!==11||nt[Le+1]==78&&nt[Le+2]==69&&nt[Le+3]==84&&nt[Le+4]==83&&nt[Le+5]==67&&nt[Le+6]==65&&nt[Le+7]==80&&nt[Le+8]==69&&nt[Le+9]==50&&nt[Le+10]==46&&nt[Le+11]==48&&nt[Le+12]==3&&nt[Le+13]==1&&nt[Le+16]==0)Le+=14,Vn=nt[Le++]|nt[Le++]<<8,Le++;else for(Le+=12;;){if(!((Rt=nt[Le++])>=0))throw Error("Invalid block size");if(Rt===0)break;Le+=Rt}break;case 249:if(nt[Le++]!==4||nt[Le+4]!==0)throw new Error("Invalid graphics extension block.");var kr=nt[Le++];Qr=nt[Le++]|nt[Le++]<<8,gn=nt[Le++],(1&kr)==0&&(gn=null),vr=kr>>2&7,Le++;break;case 254:for(;;){if(!((Rt=nt[Le++])>=0))throw Error("Invalid block size");if(Rt===0)break;Le+=Rt}break;default:throw new Error("Unknown graphic control label: 0x"+nt[Le-1].toString(16))}break;case 44:var Bn=nt[Le++]|nt[Le++]<<8,on=nt[Le++]|nt[Le++]<<8,jr=nt[Le++]|nt[Le++]<<8,ai=nt[Le++]|nt[Le++]<<8,Oi=nt[Le++],Gi=Oi>>6&1,rn=1<<(7&Oi)+1,Cn=Et,Yn=gt,Gt=!1;Oi>>7&&(Gt=!0,Cn=Le,Yn=rn,Le+=3*rn);var Ot=Le;for(Le++;;){var Rt;if(!((Rt=nt[Le++])>=0))throw Error("Invalid block size");if(Rt===0)break;Le+=Rt}qr.push({x:Bn,y:on,width:jr,height:ai,has_local_palette:Gt,palette_offset:Cn,palette_size:Yn,data_offset:Ot,data_length:Le-Ot,transparent_index:gn,interlaced:!!Gi,delay:Qr,disposal:vr});break;case 59:pr=!1;break;default:throw new Error("Unknown gif block: 0x"+nt[Le-1].toString(16))}this.numFrames=function(){return qr.length},this.loopCount=function(){return Vn},this.frameInfo=function(jt){if(jt<0||jt>=qr.length)throw new Error("Frame index out of range.");return qr[jt]},this.decodeAndBlitFrameBGRA=function(jt,zt){var Lt=this.frameInfo(jt),cr=Lt.width*Lt.height,Ar=new Uint8Array(cr);St(nt,Lt.data_offset,Ar,cr);var br=Lt.palette_offset,Pr=Lt.transparent_index;Pr===null&&(Pr=256);var Xn=Lt.width,Pn=je-Xn,di=Xn,An=4*(Lt.y*je+Lt.x),Ur=4*((Lt.y+Lt.height)*je+Lt.x),In=An,Qn=4*Pn;Lt.interlaced===!0&&(Qn+=4*je*7);for(var $n=8,oi=0,Ti=Ar.length;oi<Ti;++oi){var ki=Ar[oi];if(di===0&&(di=Xn,(In+=Qn)>=Ur&&(Qn=4*Pn+4*je*($n-1),In=An+(Xn+Pn)*($n<<1),$n>>=1)),ki===Pr)In+=4;else{var Ri=nt[br+3*ki],oa=nt[br+3*ki+1],ma=nt[br+3*ki+2];zt[In++]=ma,zt[In++]=oa,zt[In++]=Ri,zt[In++]=255}--di}},this.decodeAndBlitFrameRGBA=function(jt,zt){var Lt=this.frameInfo(jt),cr=Lt.width*Lt.height,Ar=new Uint8Array(cr);St(nt,Lt.data_offset,Ar,cr);var br=Lt.palette_offset,Pr=Lt.transparent_index;Pr===null&&(Pr=256);var Xn=Lt.width,Pn=je-Xn,di=Xn,An=4*(Lt.y*je+Lt.x),Ur=4*((Lt.y+Lt.height)*je+Lt.x),In=An,Qn=4*Pn;Lt.interlaced===!0&&(Qn+=4*je*7);for(var $n=8,oi=0,Ti=Ar.length;oi<Ti;++oi){var ki=Ar[oi];if(di===0&&(di=Xn,(In+=Qn)>=Ur&&(Qn=4*Pn+4*je*($n-1),In=An+(Xn+Pn)*($n<<1),$n>>=1)),ki===Pr)In+=4;else{var Ri=nt[br+3*ki],oa=nt[br+3*ki+1],ma=nt[br+3*ki+2];zt[In++]=Ri,zt[In++]=oa,zt[In++]=ma,zt[In++]=255}--di}}}function St(nt,Le,je,Xe){for(var tt=nt[Le++],Ze=1<<tt,st=Ze+1,Et=st+1,gt=tt+1,pr=(1<<gt)-1,qr=0,Qr=0,gn=0,vr=nt[Le++],Vn=new Int32Array(4096),kr=null;;){for(;qr<16&&vr!==0;)Qr|=nt[Le++]<<qr,qr+=8,vr===1?vr=nt[Le++]:--vr;if(qr<gt)break;var Bn=Qr&pr;if(Qr>>=gt,qr-=gt,Bn!==Ze){if(Bn===st)break;for(var on=Bn<Et?Bn:kr,jr=0,ai=on;ai>Ze;)ai=Vn[ai]>>8,++jr;var Oi=ai;if(gn+jr+(on!==Bn?1:0)>Xe)return void d.log("Warning, gif stream longer than expected.");je[gn++]=Oi;var Gi=gn+=jr;for(on!==Bn&&(je[gn++]=Oi),ai=on;jr--;)ai=Vn[ai],je[--Gi]=255&ai,ai>>=8;kr!==null&&Et<4096&&(Vn[Et++]=kr<<8|Oi,Et>=pr+1&&gt<12&&(++gt,pr=pr<<1|1)),kr=Bn}else Et=st+1,pr=(1<<(gt=tt+1))-1,kr=null}return gn!==Xe&&d.log("Warning, gif stream shorter than expected."),je}/**
* @license
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function Vt(nt){var Le,je,Xe,tt,Ze,st=Math.floor,Et=new Array(64),gt=new Array(64),pr=new Array(64),qr=new Array(64),Qr=new Array(65535),gn=new Array(65535),vr=new Array(64),Vn=new Array(64),kr=[],Bn=0,on=7,jr=new Array(64),ai=new Array(64),Oi=new Array(64),Gi=new Array(256),rn=new Array(2048),Cn=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Yn=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Gt=[0,1,2,3,4,5,6,7,8,9,10,11],Ot=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Rt=[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],jt=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],zt=[0,1,2,3,4,5,6,7,8,9,10,11],Lt=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],cr=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Ar(An,Ur){for(var In=0,Qn=0,$n=new Array,oi=1;oi<=16;oi++){for(var Ti=1;Ti<=An[oi];Ti++)$n[Ur[Qn]]=[],$n[Ur[Qn]][0]=In,$n[Ur[Qn]][1]=oi,Qn++,In++;In*=2}return $n}function br(An){for(var Ur=An[0],In=An[1]-1;In>=0;)Ur&1<<In&&(Bn|=1<<on),In--,--on<0&&(Bn==255?(Pr(255),Pr(0)):Pr(Bn),on=7,Bn=0)}function Pr(An){kr.push(An)}function Xn(An){Pr(An>>8&255),Pr(255&An)}function Pn(An,Ur,In,Qn,$n){for(var oi,Ti=$n[0],ki=$n[240],Ri=function(ta,ra){var Lr,xr,Tn,mr,Mr,Xr,un,Fn,_t,Or,Nr=0;for(_t=0;_t<8;++_t){Lr=ta[Nr],xr=ta[Nr+1],Tn=ta[Nr+2],mr=ta[Nr+3],Mr=ta[Nr+4],Xr=ta[Nr+5],un=ta[Nr+6];var tn=Lr+(Fn=ta[Nr+7]),xn=Lr-Fn,Ln=xr+un,Sn=xr-un,qn=Tn+Xr,Wn=Tn-Xr,pi=mr+Mr,Pi=mr-Mr,bi=tn+pi,Ii=tn-pi,zi=Ln+qn,ea=Ln-qn;ta[Nr]=bi+zi,ta[Nr+4]=bi-zi;var Xi=.707106781*(ea+Ii);ta[Nr+2]=Ii+Xi,ta[Nr+6]=Ii-Xi;var Wi=.382683433*((bi=Pi+Wn)-(ea=Sn+xn)),ji=.5411961*bi+Wi,Ji=1.306562965*ea+Wi,ca=.707106781*(zi=Wn+Sn),Ca=xn+ca,na=xn-ca;ta[Nr+5]=na+ji,ta[Nr+3]=na-ji,ta[Nr+1]=Ca+Ji,ta[Nr+7]=Ca-Ji,Nr+=8}for(Nr=0,_t=0;_t<8;++_t){Lr=ta[Nr],xr=ta[Nr+8],Tn=ta[Nr+16],mr=ta[Nr+24],Mr=ta[Nr+32],Xr=ta[Nr+40],un=ta[Nr+48];var Pa=Lr+(Fn=ta[Nr+56]),La=Lr-Fn,va=xr+un,ga=xr-un,Oa=Tn+Xr,Aa=Tn-Xr,Xa=mr+Mr,_a=mr-Mr,Va=Pa+Xa,Fi=Pa-Xa,io=va+Oa,oo=va-Oa;ta[Nr]=Va+io,ta[Nr+32]=Va-io;var Qo=.707106781*(oo+Fi);ta[Nr+16]=Fi+Qo,ta[Nr+48]=Fi-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[Nr+40]=to+To,ta[Nr+24]=to-To,ta[Nr+8]=bo+ao,ta[Nr+56]=bo-ao,Nr++}for(_t=0;_t<64;++_t)Or=ta[_t]*ra[_t],vr[_t]=Or>0?Or+.5|0:Or-.5|0;return vr}(An,Ur),oa=0;oa<64;++oa)Vn[Cn[oa]]=Ri[oa];var ma=Vn[0]-In;In=Vn[0],ma==0?br(Qn[0]):(br(Qn[gn[oi=32767+ma]]),br(Qr[oi]));for(var aa=63;aa>0&&Vn[aa]==0;)aa--;if(aa==0)return br(Ti),In;for(var ba,yi=1;yi<=aa;){for(var kn=yi;Vn[yi]==0&&yi<=aa;)++yi;var Ui=yi-kn;if(Ui>=16){ba=Ui>>4;for(var ha=1;ha<=ba;++ha)br(ki);Ui&=15}oi=32767+Vn[yi],br($n[(Ui<<4)+gn[oi]]),br(Qr[oi]),yi++}return aa!=63&&br(Ti),In}function di(An){(An=Math.min(Math.max(An,1),100),Ze!=An)&&(!function(Ur){for(var In=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Qn=0;Qn<64;Qn++){var $n=st((In[Qn]*Ur+50)/100);$n=Math.min(Math.max($n,1),255),Et[Cn[Qn]]=$n}for(var oi=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Ti=0;Ti<64;Ti++){var ki=st((oi[Ti]*Ur+50)/100);ki=Math.min(Math.max(ki,1),255),gt[Cn[Ti]]=ki}for(var Ri=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],oa=0,ma=0;ma<8;ma++)for(var aa=0;aa<8;aa++)pr[oa]=1/(Et[Cn[oa]]*Ri[ma]*Ri[aa]*8),qr[oa]=1/(gt[Cn[oa]]*Ri[ma]*Ri[aa]*8),oa++}(An<50?Math.floor(5e3/An):Math.floor(200-2*An)),Ze=An)}this.encode=function(An,Ur){Ur&&di(Ur),kr=new Array,Bn=0,on=7,Xn(65496),Xn(65504),Xn(16),Pr(74),Pr(70),Pr(73),Pr(70),Pr(0),Pr(1),Pr(1),Pr(0),Xn(1),Xn(1),Pr(0),Pr(0),function(){Xn(65499),Xn(132),Pr(0);for(var xr=0;xr<64;xr++)Pr(Et[xr]);Pr(1);for(var Tn=0;Tn<64;Tn++)Pr(gt[Tn])}(),function(xr,Tn){Xn(65472),Xn(17),Pr(8),Xn(Tn),Xn(xr),Pr(3),Pr(1),Pr(17),Pr(0),Pr(2),Pr(17),Pr(1),Pr(3),Pr(17),Pr(1)}(An.width,An.height),function(){Xn(65476),Xn(418),Pr(0);for(var xr=0;xr<16;xr++)Pr(Yn[xr+1]);for(var Tn=0;Tn<=11;Tn++)Pr(Gt[Tn]);Pr(16);for(var mr=0;mr<16;mr++)Pr(Ot[mr+1]);for(var Mr=0;Mr<=161;Mr++)Pr(Rt[Mr]);Pr(1);for(var Xr=0;Xr<16;Xr++)Pr(jt[Xr+1]);for(var un=0;un<=11;un++)Pr(zt[un]);Pr(17);for(var Fn=0;Fn<16;Fn++)Pr(Lt[Fn+1]);for(var _t=0;_t<=161;_t++)Pr(cr[_t])}(),Xn(65498),Xn(12),Pr(3),Pr(1),Pr(0),Pr(2),Pr(17),Pr(3),Pr(17),Pr(0),Pr(63),Pr(0);var In=0,Qn=0,$n=0;Bn=0,on=7,this.encode.displayName="_encode_";for(var oi,Ti,ki,Ri,oa,ma,aa,ba,yi,kn=An.data,Ui=An.width,ha=An.height,ta=4*Ui,ra=0;ra<ha;){for(oi=0;oi<ta;){for(oa=ta*ra+oi,aa=-1,ba=0,yi=0;yi<64;yi++)ma=oa+(ba=yi>>3)*ta+(aa=4*(7&yi)),ra+ba>=ha&&(ma-=ta*(ra+1+ba-ha)),oi+aa>=ta&&(ma-=oi+aa-ta+4),Ti=kn[ma++],ki=kn[ma++],Ri=kn[ma++],jr[yi]=(rn[Ti]+rn[ki+256>>0]+rn[Ri+512>>0]>>16)-128,ai[yi]=(rn[Ti+768>>0]+rn[ki+1024>>0]+rn[Ri+1280>>0]>>16)-128,Oi[yi]=(rn[Ti+1280>>0]+rn[ki+1536>>0]+rn[Ri+1792>>0]>>16)-128;In=Pn(jr,pr,In,Le,Xe),Qn=Pn(ai,qr,Qn,je,tt),$n=Pn(Oi,qr,$n,je,tt),oi+=32}ra+=8}if(on>=0){var Lr=[];Lr[1]=on+1,Lr[0]=(1<<on+1)-1,br(Lr)}return Xn(65497),new Uint8Array(kr)},nt=nt||50,function(){for(var An=String.fromCharCode,Ur=0;Ur<256;Ur++)Gi[Ur]=An(Ur)}(),Le=Ar(Yn,Gt),je=Ar(jt,zt),Xe=Ar(Ot,Rt),tt=Ar(Lt,cr),function(){for(var An=1,Ur=2,In=1;In<=15;In++){for(var Qn=An;Qn<Ur;Qn++)gn[32767+Qn]=In,Qr[32767+Qn]=[],Qr[32767+Qn][1]=In,Qr[32767+Qn][0]=Qn;for(var $n=-(Ur-1);$n<=-An;$n++)gn[32767+$n]=In,Qr[32767+$n]=[],Qr[32767+$n][1]=In,Qr[32767+$n][0]=Ur-1+$n;An<<=1,Ur<<=1}}(),function(){for(var An=0;An<256;An++)rn[An]=19595*An,rn[An+256>>0]=38470*An,rn[An+512>>0]=7471*An+32768,rn[An+768>>0]=-11059*An,rn[An+1024>>0]=-21709*An,rn[An+1280>>0]=32768*An+8421375,rn[An+1536>>0]=-27439*An,rn[An+1792>>0]=-5329*An}(),di(nt)}/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function Rr(nt,Le){if(this.pos=0,this.buffer=nt,this.datav=new DataView(nt.buffer),this.is_with_alpha=!!Le,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Vr(nt){function Le(Yn){if(!Yn)throw Error("assert :P")}function je(Yn,Gt,Ot){for(var Rt=0;4>Rt;Rt++)if(Yn[Gt+Rt]!=Ot.charCodeAt(Rt))return!0;return!1}function Xe(Yn,Gt,Ot,Rt,jt){for(var zt=0;zt<jt;zt++)Yn[Gt+zt]=Ot[Rt+zt]}function tt(Yn,Gt,Ot,Rt){for(var jt=0;jt<Rt;jt++)Yn[Gt+jt]=Ot}function Ze(Yn){return new Int32Array(Yn)}function st(Yn,Gt){for(var Ot=[],Rt=0;Rt<Yn;Rt++)Ot.push(new Gt);return Ot}function Et(Yn,Gt){var Ot=[];return function Rt(jt,zt,Lt){for(var cr=Lt[zt],Ar=0;Ar<cr&&(jt.push(Lt.length>zt+1?[]:new Gt),!(Lt.length<zt+1));Ar++)Rt(jt[Ar],zt+1,Lt)}(Ot,0,Yn),Ot}var gt=function(){var Gt=this;function Ot(Ee,Ye){for(var Tt=1<<Ye-1>>>0;Ee&Tt;)Tt>>>=1;return Tt?(Ee&Tt-1)+Tt:Ee}function Rt(Ee,Ye,Tt,dr,Br){Le(!(dr%Tt));do Ee[Ye+(dr-=Tt)]=Br;while(0<dr)}function jt(Ee,Ye,Tt,dr,Br){if(Le(2328>=Br),512>=Br)var sn=Ze(512);else if((sn=Ze(Br))==null)return 0;return function(Ue,oe,_e,$e,wt,Kt){var tr,ar,Gr=oe,pn=1<<_e,zr=Ze(16),Hr=Ze(16);for(Le(wt!=0),Le($e!=null),Le(Ue!=null),Le(0<_e),ar=0;ar<wt;++ar){if(15<$e[ar])return 0;++zr[$e[ar]]}if(zr[0]==wt)return 0;for(Hr[1]=0,tr=1;15>tr;++tr){if(zr[tr]>1<<tr)return 0;Hr[tr+1]=Hr[tr]+zr[tr]}for(ar=0;ar<wt;++ar)tr=$e[ar],0<$e[ar]&&(Kt[Hr[tr]++]=ar);if(Hr[15]==1)return($e=new zt).g=0,$e.value=Kt[0],Rt(Ue,Gr,1,pn,$e),pn;var ln,bn=-1,Gn=pn-1,Li=0,Mi=1,da=1,$i=1<<_e;for(ar=0,tr=1,wt=2;tr<=_e;++tr,wt<<=1){if(Mi+=da<<=1,0>(da-=zr[tr]))return 0;for(;0<zr[tr];--zr[tr])($e=new zt).g=tr,$e.value=Kt[ar++],Rt(Ue,Gr+Li,wt,$i,$e),Li=Ot(Li,tr)}for(tr=_e+1,wt=2;15>=tr;++tr,wt<<=1){if(Mi+=da<<=1,0>(da-=zr[tr]))return 0;for(;0<zr[tr];--zr[tr]){if($e=new zt,(Li&Gn)!=bn){for(Gr+=$i,ln=1<<(bn=tr)-_e;15>bn&&!(0>=(ln-=zr[bn]));)++bn,ln<<=1;pn+=$i=1<<(ln=bn-_e),Ue[oe+(bn=Li&Gn)].g=ln+_e,Ue[oe+bn].value=Gr-oe-bn}$e.g=tr-_e,$e.value=Kt[ar++],Rt(Ue,Gr+(Li>>_e),wt,$i,$e),Li=Ot(Li,tr)}}return Mi!=2*Hr[15]-1?0:pn}(Ee,Ye,Tt,dr,Br,sn)}function zt(){this.value=this.g=0}function Lt(){this.value=this.g=0}function cr(){this.G=st(5,zt),this.H=Ze(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=st(vo,Lt)}function Ar(Ee,Ye,Tt,dr){Le(Ee!=null),Le(Ye!=null),Le(2147483648>dr),Ee.Ca=254,Ee.I=0,Ee.b=-8,Ee.Ka=0,Ee.oa=Ye,Ee.pa=Tt,Ee.Jd=Ye,Ee.Yc=Tt+dr,Ee.Zc=4<=dr?Tt+dr-4+1:Tt,Ti(Ee)}function br(Ee,Ye){for(var Tt=0;0<Ye--;)Tt|=Ri(Ee,128)<<Ye;return Tt}function Pr(Ee,Ye){var Tt=br(Ee,Ye);return ki(Ee)?-Tt:Tt}function Xn(Ee,Ye,Tt,dr){var Br,sn=0;for(Le(Ee!=null),Le(Ye!=null),Le(4294967288>dr),Ee.Sb=dr,Ee.Ra=0,Ee.u=0,Ee.h=0,4<dr&&(dr=4),Br=0;Br<dr;++Br)sn+=Ye[Tt+Br]<<8*Br;Ee.Ra=sn,Ee.bb=dr,Ee.oa=Ye,Ee.pa=Tt}function Pn(Ee){for(;8<=Ee.u&&Ee.bb<Ee.Sb;)Ee.Ra>>>=8,Ee.Ra+=Ee.oa[Ee.pa+Ee.bb]<<gs-8>>>0,++Ee.bb,Ee.u-=8;Qn(Ee)&&(Ee.h=1,Ee.u=0)}function di(Ee,Ye){if(Le(0<=Ye),!Ee.h&&Ye<=rl){var Tt=In(Ee)&Ms[Ye];return Ee.u+=Ye,Pn(Ee),Tt}return Ee.h=1,Ee.u=0}function An(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Ur(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function In(Ee){return Ee.Ra>>>(Ee.u&gs-1)>>>0}function Qn(Ee){return Le(Ee.bb<=Ee.Sb),Ee.h||Ee.bb==Ee.Sb&&Ee.u>gs}function $n(Ee,Ye){Ee.u=Ye,Ee.h=Qn(Ee)}function oi(Ee){Ee.u>=Ra&&(Le(Ee.u>=Ra),Pn(Ee))}function Ti(Ee){Le(Ee!=null&&Ee.oa!=null),Ee.pa<Ee.Zc?(Ee.I=(Ee.oa[Ee.pa++]|Ee.I<<8)>>>0,Ee.b+=8):(Le(Ee!=null&&Ee.oa!=null),Ee.pa<Ee.Yc?(Ee.b+=8,Ee.I=Ee.oa[Ee.pa++]|Ee.I<<8):Ee.Ka?Ee.b=0:(Ee.I<<=8,Ee.b+=8,Ee.Ka=1))}function ki(Ee){return br(Ee,1)}function Ri(Ee,Ye){var Tt=Ee.Ca;0>Ee.b&&Ti(Ee);var dr=Ee.b,Br=Tt*Ye>>>8,sn=(Ee.I>>>dr>Br)+0;for(sn?(Tt-=Br,Ee.I-=Br+1<<dr>>>0):Tt=Br+1,dr=Tt,Br=0;256<=dr;)Br+=8,dr>>=8;return dr=7^Br+dl[dr],Ee.b-=dr,Ee.Ca=(Tt<<dr)-1,sn}function oa(Ee,Ye,Tt){Ee[Ye+0]=Tt>>24&255,Ee[Ye+1]=Tt>>16&255,Ee[Ye+2]=Tt>>8&255,Ee[Ye+3]=Tt>>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 yi(Ee,Ye){var Tt=1<<Ye;return Le(Ee!=null),Le(0<Ye),Ee.X=Ze(Tt),Ee.X==null?0:(Ee.Mb=32-Ye,Ee.Xa=Ye,1)}function kn(Ee,Ye){Le(Ee!=null),Le(Ye!=null),Le(Ee.Xa==Ye.Xa),Xe(Ye.X,0,Ee.X,0,1<<Ye.Xa)}function Ui(){this.X=[],this.Xa=this.Mb=0}function ha(Ee,Ye,Tt,dr){Le(Tt!=null),Le(dr!=null);var Br=Tt[0],sn=dr[0];return Br==0&&(Br=(Ee*sn+Ye/2)/Ye),sn==0&&(sn=(Ye*Br+Ee/2)/Ee),0>=Br||0>=sn?0:(Tt[0]=Br,dr[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 Lr(Ee,Ye){Gt[Ye]=function(Tt,dr,Br,sn,Ue,oe,_e){var $e;for($e=0;$e<Ue;++$e){var wt=Gt[Ee](oe[_e+$e-1],Br,sn+$e);oe[_e+$e]=ra(Tt[dr+$e],wt)}}}function xr(){this.ud=this.hd=this.jd=0}function Tn(Ee,Ye){return((4278124286&(Ee^Ye))>>>1)+(Ee&Ye)>>>0}function mr(Ee){return 0<=Ee&&256>Ee?Ee:0>Ee?0:255<Ee?255:void 0}function Mr(Ee,Ye){return mr(Ee+(Ee-Ye+.5>>1))}function Xr(Ee,Ye,Tt){return Math.abs(Ye-Tt)-Math.abs(Ee-Tt)}function un(Ee,Ye,Tt,dr,Br,sn,Ue){for(dr=sn[Ue-1],Tt=0;Tt<Br;++Tt)sn[Ue+Tt]=dr=ra(Ee[Ye+Tt],dr)}function Fn(Ee,Ye,Tt,dr,Br){var sn;for(sn=0;sn<Tt;++sn){var Ue=Ee[Ye+sn],oe=Ue>>8&255,_e=16711935&(_e=(_e=16711935&Ue)+((oe<<16)+oe));dr[Br+sn]=(4278255360&Ue)+_e>>>0}}function _t(Ee,Ye){Ye.jd=Ee>>0&255,Ye.hd=Ee>>8&255,Ye.ud=Ee>>16&255}function Or(Ee,Ye,Tt,dr,Br,sn){var Ue;for(Ue=0;Ue<dr;++Ue){var oe=Ye[Tt+Ue],_e=oe>>>8,$e=oe,wt=255&(wt=(wt=oe>>>16)+((Ee.jd<<24>>24)*(_e<<24>>24)>>>5));$e=255&($e=($e=$e+((Ee.hd<<24>>24)*(_e<<24>>24)>>>5))+((Ee.ud<<24>>24)*(wt<<24>>24)>>>5)),Br[sn+Ue]=(4278255360&oe)+(wt<<16)+$e}}function Nr(Ee,Ye,Tt,dr,Br){Gt[Ye]=function(sn,Ue,oe,_e,$e,wt,Kt,tr,ar){for(_e=Kt;_e<tr;++_e)for(Kt=0;Kt<ar;++Kt)$e[wt++]=Br(oe[dr(sn[Ue++])])},Gt[Ee]=function(sn,Ue,oe,_e,$e,wt,Kt){var tr=8>>sn.b,ar=sn.Ea,Gr=sn.K[0],pn=sn.w;if(8>tr)for(sn=(1<<sn.b)-1,pn=(1<<tr)-1;Ue<oe;++Ue){var zr,Hr=0;for(zr=0;zr<ar;++zr)zr&sn||(Hr=dr(_e[$e++])),wt[Kt++]=Br(Gr[Hr&pn]),Hr>>=tr}else Gt["VP8LMapColor"+Tt](_e,$e,Gr,pn,wt,Kt,Ue,oe,ar)}}function tn(Ee,Ye,Tt,dr,Br){for(Tt=Ye+Tt;Ye<Tt;){var sn=Ee[Ye++];dr[Br++]=sn>>16&255,dr[Br++]=sn>>8&255,dr[Br++]=sn>>0&255}}function xn(Ee,Ye,Tt,dr,Br){for(Tt=Ye+Tt;Ye<Tt;){var sn=Ee[Ye++];dr[Br++]=sn>>16&255,dr[Br++]=sn>>8&255,dr[Br++]=sn>>0&255,dr[Br++]=sn>>24&255}}function Ln(Ee,Ye,Tt,dr,Br){for(Tt=Ye+Tt;Ye<Tt;){var sn=(Ue=Ee[Ye++])>>16&240|Ue>>12&15,Ue=Ue>>0&240|Ue>>28&15;dr[Br++]=sn,dr[Br++]=Ue}}function Sn(Ee,Ye,Tt,dr,Br){for(Tt=Ye+Tt;Ye<Tt;){var sn=(Ue=Ee[Ye++])>>16&248|Ue>>13&7,Ue=Ue>>5&224|Ue>>3&31;dr[Br++]=sn,dr[Br++]=Ue}}function qn(Ee,Ye,Tt,dr,Br){for(Tt=Ye+Tt;Ye<Tt;){var sn=Ee[Ye++];dr[Br++]=sn>>0&255,dr[Br++]=sn>>8&255,dr[Br++]=sn>>16&255}}function Wn(Ee,Ye,Tt,dr,Br,sn){if(sn==0)for(Tt=Ye+Tt;Ye<Tt;)oa(dr,((sn=Ee[Ye++])[0]>>24|sn[1]>>8&65280|sn[2]<<8&16711680|sn[3]<<24)>>>0),Br+=32;else Xe(dr,Br,Ee,Ye,Tt)}function pi(Ee,Ye){Gt[Ye][0]=Gt[Ee+"0"],Gt[Ye][1]=Gt[Ee+"1"],Gt[Ye][2]=Gt[Ee+"2"],Gt[Ye][3]=Gt[Ee+"3"],Gt[Ye][4]=Gt[Ee+"4"],Gt[Ye][5]=Gt[Ee+"5"],Gt[Ye][6]=Gt[Ee+"6"],Gt[Ye][7]=Gt[Ee+"7"],Gt[Ye][8]=Gt[Ee+"8"],Gt[Ye][9]=Gt[Ee+"9"],Gt[Ye][10]=Gt[Ee+"10"],Gt[Ye][11]=Gt[Ee+"11"],Gt[Ye][12]=Gt[Ee+"12"],Gt[Ye][13]=Gt[Ee+"13"],Gt[Ye][14]=Gt[Ee+"0"],Gt[Ye][15]=Gt[Ee+"0"]}function Pi(Ee){return Ee==Lu||Ee==zl||Ee==ru||Ee==ou}function bi(){this.eb=[],this.size=this.A=this.fb=0}function Ii(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function zi(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new bi,this.f.kb=new Ii,this.sd=null}function ea(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Xi(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Wi(Ee){return alert("todo:WebPSamplerProcessPlane"),Ee.T}function ji(Ee,Ye){var Tt=Ee.T,dr=Ye.ba.f.RGBA,Br=dr.eb,sn=dr.fb+Ee.ka*dr.A,Ue=ze[Ye.ba.S],oe=Ee.y,_e=Ee.O,$e=Ee.f,wt=Ee.N,Kt=Ee.ea,tr=Ee.W,ar=Ye.cc,Gr=Ye.dc,pn=Ye.Mc,zr=Ye.Nc,Hr=Ee.ka,ln=Ee.ka+Ee.T,bn=Ee.U,Gn=bn+1>>1;for(Hr==0?Ue(oe,_e,null,null,$e,wt,Kt,tr,$e,wt,Kt,tr,Br,sn,null,null,bn):(Ue(Ye.ec,Ye.fc,oe,_e,ar,Gr,pn,zr,$e,wt,Kt,tr,Br,sn-dr.A,Br,sn,bn),++Tt);Hr+2<ln;Hr+=2)ar=$e,Gr=wt,pn=Kt,zr=tr,wt+=Ee.Rc,tr+=Ee.Rc,sn+=2*dr.A,Ue(oe,(_e+=2*Ee.fa)-Ee.fa,oe,_e,ar,Gr,pn,zr,$e,wt,Kt,tr,Br,sn-dr.A,Br,sn,bn);return _e+=Ee.fa,Ee.j+ln<Ee.o?(Xe(Ye.ec,Ye.fc,oe,_e,bn),Xe(Ye.cc,Ye.dc,$e,wt,Gn),Xe(Ye.Mc,Ye.Nc,Kt,tr,Gn),Tt--):1&ln||Ue(oe,_e,null,null,$e,wt,Kt,tr,$e,wt,Kt,tr,Br,sn+dr.A,null,null,bn),Tt}function Ji(Ee,Ye,Tt){var dr=Ee.F,Br=[Ee.J];if(dr!=null){var sn=Ee.U,Ue=Ye.ba.S,oe=Ue==Ol||Ue==ru;Ye=Ye.ba.f.RGBA;var _e=[0],$e=Ee.ka;_e[0]=Ee.T,Ee.Kb&&($e==0?--_e[0]:(--$e,Br[0]-=Ee.width),Ee.j+Ee.ka+Ee.T==Ee.o&&(_e[0]=Ee.o-Ee.j-$e));var wt=Ye.eb;$e=Ye.fb+$e*Ye.A,Ee=Nl(dr,Br[0],Ee.width,sn,_e,wt,$e+(oe?0:3),Ye.A),Le(Tt==_e),Ee&&Pi(Ue)&&Wl(wt,$e,oe,sn,_e,Ye.A)}return 0}function ca(Ee){var Ye=Ee.ma,Tt=Ye.ba.S,dr=11>Tt,Br=Tt==Su||Tt==Au||Tt==Ol||Tt==cu||Tt==12||Pi(Tt);if(Ye.memory=null,Ye.Ib=null,Ye.Jb=null,Ye.Nd=null,!As(Ye.Oa,Ee,Br?11:12))return 0;if(Br&&Pi(Tt)&&Qe(),Ee.da)alert("todo:use_scaling");else{if(dr){if(Ye.Ib=Wi,Ee.Kb){if(Tt=Ee.U+1>>1,Ye.memory=Ze(Ee.U+2*Tt),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+Tt,Ye.Ib=ji,Qe()}}else alert("todo:EmitYUV");Br&&(Ye.Jb=Ji,dr&&xe())}if(dr&&!Zi){for(Ee=0;256>Ee;++Ee)ka[Ee]=89858*(Ee-128)+Rn>>On,Sa[Ee]=-22014*(Ee-128)+Rn,Ba[Ee]=-45773*(Ee-128),Ga[Ee]=113618*(Ee-128)+Rn>>On;for(Ee=Zn;Ee<wi;++Ee)Ye=76283*(Ee-16)+Rn>>On,Go[Ee-Zn]=_o(Ye,255),bs[Ee-Zn]=_o(Ye+8>>4,15);Zi=1}return 1}function Ca(Ee){var Ye=Ee.ma,Tt=Ee.U,dr=Ee.T;return Le(!(1&Ee.ka)),0>=Tt||0>=dr?0:(Tt=Ye.Ib(Ee,Ye),Ye.Jb!=null&&Ye.Jb(Ee,Ye,Tt),Ye.Dc+=Tt,1)}function na(Ee){Ee.ma.memory=null}function Pa(Ee,Ye,Tt,dr){return di(Ee,8)!=47?0:(Ye[0]=di(Ee,14)+1,Tt[0]=di(Ee,14)+1,dr[0]=di(Ee,1),di(Ee,3)!=0?0:!Ee.h)}function La(Ee,Ye){if(4>Ee)return Ee+1;var Tt=Ee-2>>1;return(2+(1&Ee)<<Tt)+di(Ye,Tt)+1}function va(Ee,Ye){return 120<Ye?Ye-120:1<=(Tt=((Tt=yu[Ye-1])>>4)*Ee+(8-(15&Tt)))?Tt:1;var Tt}function ga(Ee,Ye,Tt){var dr=In(Tt),Br=Ee[Ye+=255&dr].g-8;return 0<Br&&($n(Tt,Tt.u+8),dr=In(Tt),Ye+=Ee[Ye].value,Ye+=dr&(1<<Br)-1),$n(Tt,Tt.u+Ee[Ye].g),Ee[Ye].value}function Oa(Ee,Ye,Tt){return Tt.g+=Ee.g,Tt.value+=Ee.value<<Ye>>>0,Le(8>=Tt.g),Ee.g}function Aa(Ee,Ye,Tt){var dr=Ee.xc;return Le((Ye=dr==0?0:Ee.vc[Ee.md*(Tt>>dr)+(Ye>>dr)])<Ee.Wb),Ee.Ya[Ye]}function Xa(Ee,Ye,Tt,dr){var Br=Ee.ab,sn=Ee.c*Ye,Ue=Ee.C;Ye=Ue+Ye;var oe=Tt,_e=dr;for(dr=Ee.Ta,Tt=Ee.Ua;0<Br--;){var $e=Ee.gc[Br],wt=Ue,Kt=Ye,tr=oe,ar=_e,Gr=(_e=dr,oe=Tt,$e.Ea);switch(Le(wt<Kt),Le(Kt<=$e.nc),$e.hc){case 2:Os(tr,ar,(Kt-wt)*Gr,_e,oe);break;case 0:var pn=wt,zr=Kt,Hr=_e,ln=oe,bn=($i=$e).Ea;pn==0&&(fl(tr,ar,null,null,1,Hr,ln),un(tr,ar+1,0,0,bn-1,Hr,ln+1),ar+=bn,ln+=bn,++pn);for(var Gn=1<<$i.b,Li=Gn-1,Mi=ta(bn,$i.b),da=$i.K,$i=$i.w+(pn>>$i.b)*Mi;pn<zr;){var Qa=da,ya=$i,fo=1;for(Us(tr,ar,Hr,ln-bn,1,Hr,ln);fo<bn;){var za=(fo&~Li)+Gn;za>bn&&(za=bn),(0,Ts[Qa[ya++]>>8&15])(tr,ar+ +fo,Hr,ln+fo-bn,za-fo,Hr,ln+fo),fo=za}ar+=bn,ln+=bn,++pn&Li||($i+=Mi)}Kt!=$e.nc&&Xe(_e,oe-Gr,_e,oe+(Kt-wt-1)*Gr,Gr);break;case 1:for(Gr=tr,zr=ar,bn=(tr=$e.Ea)-(ln=tr&~(Hr=(ar=1<<$e.b)-1)),pn=ta(tr,$e.b),Gn=$e.K,$e=$e.w+(wt>>$e.b)*pn;wt<Kt;){for(Li=Gn,Mi=$e,da=new xr,$i=zr+ln,Qa=zr+tr;zr<$i;)_t(Li[Mi++],da),Ws(da,Gr,zr,ar,_e,oe),zr+=ar,oe+=ar;zr<Qa&&(_t(Li[Mi++],da),Ws(da,Gr,zr,bn,_e,oe),zr+=bn,oe+=bn),++wt&Hr||($e+=pn)}break;case 3:if(tr==_e&&ar==oe&&0<$e.b){for(zr=_e,tr=Gr=oe+(Kt-wt)*Gr-(ln=(Kt-wt)*ta($e.Ea,$e.b)),ar=_e,Hr=oe,pn=[],ln=(bn=ln)-1;0<=ln;--ln)pn[ln]=ar[Hr+ln];for(ln=bn-1;0<=ln;--ln)zr[tr+ln]=pn[ln];Xs($e,wt,Kt,_e,Gr,_e,oe)}else Xs($e,wt,Kt,tr,ar,_e,oe)}oe=dr,_e=Tt}_e!=Tt&&Xe(dr,Tt,oe,_e,sn)}function _a(Ee,Ye){var Tt=Ee.V,dr=Ee.Ba+Ee.c*Ee.C,Br=Ye-Ee.C;if(Le(Ye<=Ee.l.o),Le(16>=Br),0<Br){var sn=Ee.l,Ue=Ee.Ta,oe=Ee.Ua,_e=sn.width;if(Xa(Ee,Br,Tt,dr),Br=oe=[oe],Le((Tt=Ee.C)<(dr=Ye)),Le(sn.v<sn.va),dr>sn.o&&(dr=sn.o),Tt<sn.j){var $e=sn.j-Tt;Tt=sn.j,Br[0]+=$e*_e}if(Tt>=dr?Tt=0:(Br[0]+=4*sn.v,sn.ka=Tt-sn.j,sn.U=sn.va-sn.v,sn.T=dr-Tt,Tt=1),Tt){if(oe=oe[0],11>(Tt=Ee.ca).S){var wt=Tt.f.RGBA,Kt=(dr=Tt.S,Br=sn.U,sn=sn.T,$e=wt.eb,wt.A),tr=sn;for(wt=wt.fb+Ee.Ma*wt.A;0<tr--;){var ar=Ue,Gr=oe,pn=Br,zr=$e,Hr=wt;switch(dr){case Sl:Tl(ar,Gr,pn,zr,Hr);break;case Su:pl(ar,Gr,pn,zr,Hr);break;case Lu:pl(ar,Gr,pn,zr,Hr),Wl(zr,Hr,0,pn,1,0);break;case vu:qo(ar,Gr,pn,zr,Hr);break;case Au:Wn(ar,Gr,pn,zr,Hr,1);break;case zl:Wn(ar,Gr,pn,zr,Hr,1),Wl(zr,Hr,0,pn,1,0);break;case Ol:Wn(ar,Gr,pn,zr,Hr,0);break;case ru:Wn(ar,Gr,pn,zr,Hr,0),Wl(zr,Hr,1,pn,1,0);break;case cu:jo(ar,Gr,pn,zr,Hr);break;case ou:jo(ar,Gr,pn,zr,Hr),au(zr,Hr,pn,1,0);break;case du:yo(ar,Gr,pn,zr,Hr);break;default:Le(0)}oe+=_e,wt+=Kt}Ee.Ma+=sn}else alert("todo:EmitRescaledRowsYUVA");Le(Ee.Ma<=Tt.height)}}Ee.C=Ye,Le(Ee.C<=Ee.i)}function Va(Ee){var Ye;if(0<Ee.ua)return 0;for(Ye=0;Ye<Ee.Wb;++Ye){var Tt=Ee.Ya[Ye].G,dr=Ee.Ya[Ye].H;if(0<Tt[1][dr[1]+0].g||0<Tt[2][dr[2]+0].g||0<Tt[3][dr[3]+0].g)return 0}return 1}function Fi(Ee,Ye,Tt,dr,Br,sn){if(Ee.Z!=0){var Ue=Ee.qd,oe=Ee.rd;for(Le(Te[Ee.Z]!=null);Ye<Tt;++Ye)Te[Ee.Z](Ue,oe,dr,Br,dr,Br,sn),Ue=dr,oe=Br,Br+=sn;Ee.qd=Ue,Ee.rd=oe}}function io(Ee,Ye){var Tt=Ee.l.ma,dr=Tt.Z==0||Tt.Z==1?Ee.l.j:Ee.C;if(dr=Ee.C<dr?dr:Ee.C,Le(Ye<=Ee.l.o),Ye>dr){var Br=Ee.l.width,sn=Tt.ca,Ue=Tt.tb+Br*dr,oe=Ee.V,_e=Ee.Ba+Ee.c*dr,$e=Ee.gc;Le(Ee.ab==1),Le($e[0].hc==3),Ul($e[0],dr,Ye,oe,_e,sn,Ue),Fi(Tt,dr,Ye,sn,Ue,Br)}Ee.C=Ee.Ma=Ye}function oo(Ee,Ye,Tt,dr,Br,sn,Ue){var oe=Ee.$/dr,_e=Ee.$%dr,$e=Ee.m,wt=Ee.s,Kt=Tt+Ee.$,tr=Kt;Br=Tt+dr*Br;var ar=Tt+dr*sn,Gr=280+wt.ua,pn=Ee.Pb?oe:16777216,zr=0<wt.ua?wt.Wa:null,Hr=wt.wc,ln=Kt<ar?Aa(wt,_e,oe):null;Le(Ee.C<sn),Le(ar<=Br);var bn=!1;e:for(;;){for(;bn||Kt<ar;){var Gn=0;if(oe>=pn){var Li=Kt-Tt;Le((pn=Ee).Pb),pn.wd=pn.m,pn.xd=Li,0<pn.s.ua&&kn(pn.s.Wa,pn.s.vb),pn=oe+bu}if(_e&Hr||(ln=Aa(wt,_e,oe)),Le(ln!=null),ln.Qb&&(Ye[Kt]=ln.qb,bn=!0),!bn)if(oi($e),ln.jc){Gn=$e,Li=Ye;var Mi=Kt,da=ln.pd[In(Gn)&vo-1];Le(ln.jc),256>da.g?($n(Gn,Gn.u+da.g),Li[Mi]=da.value,Gn=0):($n(Gn,Gn.u+da.g-256),Le(256<=da.value),Gn=da.value),Gn==0&&(bn=!0)}else Gn=ga(ln.G[0],ln.H[0],$e);if($e.h)break;if(bn||256>Gn){if(!bn)if(ln.nd)Ye[Kt]=(ln.qb|Gn<<8)>>>0;else{if(oi($e),bn=ga(ln.G[1],ln.H[1],$e),oi($e),Li=ga(ln.G[2],ln.H[2],$e),Mi=ga(ln.G[3],ln.H[3],$e),$e.h)break;Ye[Kt]=(Mi<<24|bn<<16|Gn<<8|Li)>>>0}if(bn=!1,++Kt,++_e>=dr&&(_e=0,++oe,Ue!=null&&oe<=sn&&!(oe%16)&&Ue(Ee,oe),zr!=null))for(;tr<Kt;)Gn=Ye[tr++],zr.X[(506832829*Gn&4294967295)>>>zr.Mb]=Gn}else if(280>Gn){if(Gn=La(Gn-256,$e),Li=ga(ln.G[4],ln.H[4],$e),oi($e),Li=va(dr,Li=La(Li,$e)),$e.h)break;if(Kt-Tt<Li||Br-Kt<Gn)break e;for(Mi=0;Mi<Gn;++Mi)Ye[Kt+Mi]=Ye[Kt+Mi-Li];for(Kt+=Gn,_e+=Gn;_e>=dr;)_e-=dr,++oe,Ue!=null&&oe<=sn&&!(oe%16)&&Ue(Ee,oe);if(Le(Kt<=Br),_e&Hr&&(ln=Aa(wt,_e,oe)),zr!=null)for(;tr<Kt;)Gn=Ye[tr++],zr.X[(506832829*Gn&4294967295)>>>zr.Mb]=Gn}else{if(!(Gn<Gr))break e;for(bn=Gn-280,Le(zr!=null);tr<Kt;)Gn=Ye[tr++],zr.X[(506832829*Gn&4294967295)>>>zr.Mb]=Gn;Gn=Kt,Le(!(bn>>>(Li=zr).Xa)),Ye[Gn]=Li.X[bn],bn=!0}bn||Le($e.h==Qn($e))}if(Ee.Pb&&$e.h&&Kt<Br)Le(Ee.m.h),Ee.a=5,Ee.m=Ee.wd,Ee.$=Ee.xd,0<Ee.s.ua&&kn(Ee.s.vb,Ee.s.Wa);else{if($e.h)break e;Ue!=null&&Ue(Ee,oe>sn?sn:oe),Ee.a=0,Ee.$=Kt-Tt}return 1}return Ee.a=3,0}function Qo(Ee){Le(Ee!=null),Ee.vc=null,Ee.yc=null,Ee.Ya=null;var Ye=Ee.Wa;Ye!=null&&(Ye.X=null),Ee.vb=null,Le(Ee!=null)}function mo(){var Ee=new No;return Ee==null?null:(Ee.a=0,Ee.xb=ve,pi("Predictor","VP8LPredictors"),pi("Predictor","VP8LPredictors_C"),pi("PredictorAdd","VP8LPredictorsAdd"),pi("PredictorAdd","VP8LPredictorsAdd_C"),Os=Fn,Ws=Or,Tl=tn,pl=xn,jo=Ln,yo=Sn,qo=qn,Gt.VP8LMapColor32b=Ql,Gt.VP8LMapColor8b=wl,Ee)}function To(Ee,Ye,Tt,dr,Br){var sn=1,Ue=[Ee],oe=[Ye],_e=dr.m,$e=dr.s,wt=null,Kt=0;e:for(;;){if(Tt)for(;sn&&di(_e,1);){var tr=Ue,ar=oe,Gr=dr,pn=1,zr=Gr.m,Hr=Gr.gc[Gr.ab],ln=di(zr,2);if(Gr.Oc&1<<ln)sn=0;else{switch(Gr.Oc|=1<<ln,Hr.hc=ln,Hr.Ea=tr[0],Hr.nc=ar[0],Hr.K=[null],++Gr.ab,Le(4>=Gr.ab),ln){case 0:case 1:Hr.b=di(zr,3)+2,pn=To(ta(Hr.Ea,Hr.b),ta(Hr.nc,Hr.b),0,Gr,Hr.K),Hr.K=Hr.K[0];break;case 3:var bn,Gn=di(zr,8)+1,Li=16<Gn?0:4<Gn?1:2<Gn?2:3;if(tr[0]=ta(Hr.Ea,Li),Hr.b=Li,bn=pn=To(Gn,1,0,Gr,Hr.K)){var Mi,da=Gn,$i=Hr,Qa=1<<(8>>$i.b),ya=Ze(Qa);if(ya==null)bn=0;else{var fo=$i.K[0],za=$i.w;for(ya[0]=$i.K[0][0],Mi=1;Mi<1*da;++Mi)ya[Mi]=ra(fo[za+Mi],ya[Mi-1]);for(;Mi<4*Qa;++Mi)ya[Mi]=0;$i.K[0]=null,$i.K[0]=ya,bn=1}}pn=bn;break;case 2:break;default:Le(0)}sn=pn}}if(Ue=Ue[0],oe=oe[0],sn&&di(_e,1)&&!(sn=1<=(Kt=di(_e,4))&&11>=Kt)){dr.a=3;break e}var Xo;if(Xo=sn)t:{var ls,N,U,ie=dr,ue=Ue,ge=oe,Ke=Kt,It=Tt,nr=ie.m,wr=ie.s,_r=[null],Hn=1,ri=0,xi=xu[Ke];r:for(;;){if(It&&di(nr,1)){var _i=di(nr,3)+2,la=ta(ue,_i),Ta=ta(ge,_i),Wa=la*Ta;if(!To(la,Ta,0,ie,_r))break r;for(_r=_r[0],wr.xc=_i,ls=0;ls<Wa;++ls){var Ma=_r[ls]>>8&65535;_r[ls]=Ma,Ma>=Hn&&(Hn=Ma+1)}}if(nr.h)break r;for(N=0;5>N;++N){var Na=Du[N];!N&&0<Ke&&(Na+=1<<Ke),ri<Na&&(ri=Na)}var qa=st(Hn*xi,zt),ho=Hn,ns=st(ho,cr);if(ns==null)var Mo=null;else Le(65536>=ho),Mo=ns;var Ss=Ze(ri);if(Mo==null||Ss==null||qa==null){ie.a=1;break r}var Zs=qa;for(ls=U=0;ls<Hn;++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<Ke&&(Na+=1<<Ke);i:{var Fl,Ja=Na,vl=ie,gl=Ss,El=Zs,Bu=U,Ks=0,vs=vl.m,lu=di(vs,1);if(tt(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,zt);n:for(;jt(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--;){oi(ju);var wc=bc[0+(127&In(ju))];$n(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=jt(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))}}}wr.vc=_r,wr.Wb=Hn,wr.Ya=Mo,wr.yc=qa,Xo=1;break t}Xo=0}if(!(sn=Xo)){dr.a=3;break e}if(0<Kt){if($e.ua=1<<Kt,!yi($e.Wa,Kt)){dr.a=1,sn=0;break e}}else $e.ua=0;var cc=dr,xc=Ue,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,Tt){dr.xb=ne;break e}if((wt=Ze(Ue*oe))==null){dr.a=1,sn=0;break e}sn=(sn=oo(dr,wt,0,Ue,oe,oe,null))&&!_e.h;break e}return sn?(Br!=null?Br[0]=wt:(Le(wt==null),Le(Tt)),dr.$=0,Tt||Qo($e)):Qo($e),sn}function ao(Ee,Ye){var Tt=Ee.c*Ee.i,dr=Tt+Ye+16*Ye;return Le(Ee.c<=Ye),Ee.V=Ze(dr),Ee.V==null?(Ee.Ta=null,Ee.Ua=0,Ee.a=1,0):(Ee.Ta=Ee.V,Ee.Ua=Ee.Ba+Tt+Ye,1)}function So(Ee,Ye){var Tt=Ee.C,dr=Ye-Tt,Br=Ee.V,sn=Ee.Ba+Ee.c*Tt;for(Le(Ye<=Ee.l.o);0<dr;){var Ue=16<dr?16:dr,oe=Ee.l.ma,_e=Ee.l.width,$e=_e*Ue,wt=oe.ca,Kt=oe.tb+_e*Tt,tr=Ee.Ta,ar=Ee.Ua;Xa(Ee,Ue,Br,sn),$l(tr,ar,wt,Kt,$e),Fi(oe,Tt,Tt+Ue,wt,Kt,_e),dr-=Ue,Br+=Ue*Ee.c,Tt+=Ue}Le(Tt==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(Tt,dr,Br){for(var sn=Br[dr],Ue=0;Ue<sn&&(Tt.push(Br.length>dr+1?[]:0),!(Br.length<dr+1));Ue++)Ye(Tt[Ue],dr+1,Br)}(Ee,0,[3,11]),Ee}()}function wo(){this.jb=Ze(3),this.Wc=Et([4,8],Uo),this.Xc=Et([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 An,this.Od=new bo,this.Kc=new to,this.ed=new ts,this.Qa=new Jo,this.Ic=this.$c=this.Aa=0,this.D=new xo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=st(8,An),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=Et([4,2],Ia),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function _o(Ee,Ye){return 0>Ee?0:Ee>Ye?Ye:Ee}function uo(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ha(){var Ee=new Ho;return Ee!=null&&(Ee.a=0,Ee.sc="OK",Ee.cb=0,Ee.Xb=0,nu||(nu=Jr)),Ee}function mt(Ee,Ye,Tt){return Ee.a==0&&(Ee.a=Ye,Ee.sc=Tt,Ee.cb=0),0}function Tr(Ee,Ye,Tt){return 3<=Tt&&Ee[Ye+0]==157&&Ee[Ye+1]==1&&Ee[Ye+2]==42}function en(Ee,Ye){if(Ee==null)return 0;if(Ee.a=0,Ee.sc="OK",Ye==null)return mt(Ee,2,"null VP8Io passed to VP8GetHeaders()");var Tt=Ye.data,dr=Ye.w,Br=Ye.ha;if(4>Br)return mt(Ee,7,"Truncated header.");var sn=Tt[dr+0]|Tt[dr+1]<<8|Tt[dr+2]<<16,Ue=Ee.Od;if(Ue.Rb=!(1&sn),Ue.td=sn>>1&7,Ue.yd=sn>>4&1,Ue.ub=sn>>5,3<Ue.td)return mt(Ee,3,"Incorrect keyframe parameters.");if(!Ue.yd)return mt(Ee,4,"Frame not displayable.");dr+=3,Br-=3;var oe=Ee.Kc;if(Ue.Rb){if(7>Br)return mt(Ee,7,"cannot parse picture header");if(!Tr(Tt,dr,Br))return mt(Ee,3,"Bad code word");oe.c=16383&(Tt[dr+4]<<8|Tt[dr+3]),oe.Td=Tt[dr+4]>>6,oe.i=16383&(Tt[dr+6]<<8|Tt[dr+5]),oe.Ud=Tt[dr+6]>>6,dr+=7,Br-=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,tt((sn=Ee.Pa).jb,0,255,sn.jb.length),Le((sn=Ee.Qa)!=null),sn.Cb=0,sn.Bb=0,sn.Fb=1,tt(sn.Zb,0,0,sn.Zb.length),tt(sn.Lb,0,0,sn.Lb)}if(Ue.ub>Br)return mt(Ee,7,"bad partition length");Ar(sn=Ee.m,Tt,dr,Ue.ub),dr+=Ue.ub,Br-=Ue.ub,Ue.Rb&&(oe.Ld=ki(sn),oe.Kd=ki(sn)),oe=Ee.Qa;var _e,$e=Ee.Pa;if(Le(sn!=null),Le(oe!=null),oe.Cb=ki(sn),oe.Cb){if(oe.Bb=ki(sn),ki(sn)){for(oe.Fb=ki(sn),_e=0;4>_e;++_e)oe.Zb[_e]=ki(sn)?Pr(sn,7):0;for(_e=0;4>_e;++_e)oe.Lb[_e]=ki(sn)?Pr(sn,6):0}if(oe.Bb)for(_e=0;3>_e;++_e)$e.jb[_e]=ki(sn)?br(sn,8):255}else oe.Bb=0;if(sn.Ka)return mt(Ee,3,"cannot parse segment header");if((oe=Ee.ed).zd=ki(sn),oe.Tb=br(sn,6),oe.wb=br(sn,3),oe.Pc=ki(sn),oe.Pc&&ki(sn)){for($e=0;4>$e;++$e)ki(sn)&&(oe.vd[$e]=Pr(sn,6));for($e=0;4>$e;++$e)ki(sn)&&(oe.od[$e]=Pr(sn,6))}if(Ee.L=oe.Tb==0?0:oe.zd?1:2,sn.Ka)return mt(Ee,3,"cannot parse filter header");var wt=Br;if(Br=_e=dr,dr=_e+wt,oe=wt,Ee.Xb=(1<<br(Ee.m,2))-1,wt<3*($e=Ee.Xb))Tt=7;else{for(_e+=3*$e,oe-=3*$e,wt=0;wt<$e;++wt){var Kt=Tt[Br+0]|Tt[Br+1]<<8|Tt[Br+2]<<16;Kt>oe&&(Kt=oe),Ar(Ee.Jc[+wt],Tt,_e,Kt),_e+=Kt,oe-=Kt,Br+=3}Ar(Ee.Jc[+$e],Tt,_e,oe),Tt=_e<dr?0:5}if(Tt!=0)return mt(Ee,Tt,"cannot parse partitions");for(Tt=br(_e=Ee.m,7),Br=ki(_e)?Pr(_e,4):0,dr=ki(_e)?Pr(_e,4):0,oe=ki(_e)?Pr(_e,4):0,$e=ki(_e)?Pr(_e,4):0,_e=ki(_e)?Pr(_e,4):0,wt=Ee.Qa,Kt=0;4>Kt;++Kt){if(wt.Cb){var tr=wt.Zb[Kt];wt.Fb||(tr+=Tt)}else{if(0<Kt){Ee.pb[Kt]=Ee.pb[0];continue}tr=Tt}var ar=Ee.pb[Kt];ar.Sc[0]=hl[_o(tr+Br,127)],ar.Sc[1]=Dl[_o(tr+0,127)],ar.Eb[0]=2*hl[_o(tr+dr,127)],ar.Eb[1]=101581*Dl[_o(tr+oe,127)]>>16,8>ar.Eb[1]&&(ar.Eb[1]=8),ar.Qc[0]=hl[_o(tr+$e,117)],ar.Qc[1]=Dl[_o(tr+_e,127)],ar.lc=tr+_e}if(!Ue.Rb)return mt(Ee,4,"Not a key frame.");for(ki(sn),Ue=Ee.Pa,Tt=0;4>Tt;++Tt){for(Br=0;8>Br;++Br)for(dr=0;3>dr;++dr)for(oe=0;11>oe;++oe)$e=Ri(sn,ee[Tt][Br][dr][oe])?br(sn,8):iu[Tt][Br][dr][oe],Ue.Wc[Tt][Br].Yb[dr][oe]=$e;for(Br=0;17>Br;++Br)Ue.Xc[Tt][Br]=Ue.Wc[Tt][L[Br]]}return Ee.kc=ki(sn),Ee.kc&&(Ee.Bd=br(sn,8)),Ee.cb=1}function Jr(Ee,Ye,Tt,dr,Br,sn,Ue){var oe=Ye[Br].Yb[Tt];for(Tt=0;16>Br;++Br){if(!Ri(Ee,oe[Tt+0]))return Br;for(;!Ri(Ee,oe[Tt+1]);)if(oe=Ye[++Br].Yb[0],Tt=0,Br==16)return 16;var _e=Ye[Br+1].Yb;if(Ri(Ee,oe[Tt+2])){var $e=Ee,wt=0;if(Ri($e,(tr=oe)[(Kt=Tt)+3]))if(Ri($e,tr[Kt+6])){for(oe=0,Kt=2*(wt=Ri($e,tr[Kt+8]))+(tr=Ri($e,tr[Kt+9+wt])),wt=0,tr=Nu[Kt];tr[oe];++oe)wt+=wt+Ri($e,tr[oe]);wt+=3+(8<<Kt)}else Ri($e,tr[Kt+7])?(wt=7+2*Ri($e,165),wt+=Ri($e,145)):wt=5+Ri($e,159);else wt=Ri($e,tr[Kt+4])?3+Ri($e,tr[Kt+5]):2;oe=_e[2]}else wt=1,oe=_e[1];_e=Ue+hu[Br],0>($e=Ee).b&&Ti($e);var Kt,tr=$e.b,ar=(Kt=$e.Ca>>1)-($e.I>>tr)>>31;--$e.b,$e.Ca+=ar,$e.Ca|=1,$e.I-=(Kt+1&ar)<<tr,sn[_e]=((wt^ar)-ar)*dr[(0<Br)+0]}return 16}function Jn(Ee){var Ye=Ee.rb[Ee.sb-1];Ye.la=0,Ye.Na=0,tt(Ee.zc,0,0,Ee.zc.length),Ee.ja=0}function fn(Ee,Ye){if(Ee==null)return 0;if(Ye==null)return mt(Ee,2,"NULL VP8Io parameter in VP8Decode().");if(!Ee.cb&&!en(Ee,Ye))return 0;if(Le(Ee.cb),Ye.ac==null||Ye.ac(Ye)){Ye.ob&&(Ee.L=0);var Tt=Cs[Ee.L];if(Ee.L==2?(Ee.yb=0,Ee.zb=0):(Ee.yb=Ye.v-Tt>>4,Ee.zb=Ye.j-Tt>>4,0>Ee.yb&&(Ee.yb=0),0>Ee.zb&&(Ee.zb=0)),Ee.Va=Ye.o+15+Tt>>4,Ee.Hb=Ye.va+15+Tt>>4,Ee.Hb>Ee.za&&(Ee.Hb=Ee.za),Ee.Va>Ee.Ub&&(Ee.Va=Ee.Ub),0<Ee.L){var dr=Ee.ed;for(Tt=0;4>Tt;++Tt){var Br;if(Ee.Qa.Cb){var sn=Ee.Qa.Lb[Tt];Ee.Qa.Fb||(sn+=dr.Tb)}else sn=dr.Tb;for(Br=0;1>=Br;++Br){var Ue=Ee.gd[Tt][Br],oe=sn;if(dr.Pc&&(oe+=dr.vd[0],Br&&(oe+=dr.od[0])),0<(oe=0>oe?0:63<oe?63:oe)){var _e=oe;0<dr.wb&&(_e=4<dr.wb?_e>>2:_e>>1)>9-dr.wb&&(_e=9-dr.wb),1>_e&&(_e=1),Ue.dd=_e,Ue.tc=2*oe+_e,Ue.ld=40<=oe?2:15<=oe?1:0}else Ue.tc=0;Ue.La=Br}}}Tt=0}else mt(Ee,6,"Frame setup failed"),Tt=Ee.a;if(Tt=Tt==0){if(Tt){Ee.$c=0,0<Ee.Aa||(Ee.Ic=ws);e:{Tt=Ee.Ic,dr=4*(_e=Ee.za);var $e=32*_e,wt=_e+1,Kt=0<Ee.L?_e*(0<Ee.Aa?2:1):0,tr=(Ee.Aa==2?2:1)*_e;if((Ue=dr+832+(Br=3*(16*Tt+Cs[Ee.L])/2*$e)+(sn=Ee.Fa!=null&&0<Ee.Fa.length?Ee.Kc.c*Ee.Kc.i:0))!=Ue)Tt=0;else{if(Ue>Ee.Vb){if(Ee.Vb=0,Ee.Ec=Ze(Ue),Ee.Fc=0,Ee.Ec==null){Tt=mt(Ee,1,"no memory during frame initialization.");break e}Ee.Vb=Ue}Ue=Ee.Ec,oe=Ee.Fc,Ee.Ac=Ue,Ee.Bc=oe,oe+=dr,Ee.Gd=st($e,rs),Ee.Hd=0,Ee.rb=st(wt+1,Oo),Ee.sb=1,Ee.wa=Kt?st(Kt,Ia):null,Ee.Y=0,Ee.D.Nb=0,Ee.D.wa=Ee.wa,Ee.D.Y=Ee.Y,0<Ee.Aa&&(Ee.D.Y+=_e),Le(!0),Ee.oc=Ue,Ee.pc=oe,oe+=832,Ee.ya=st(tr,os),Ee.aa=0,Ee.D.ya=Ee.ya,Ee.D.aa=Ee.aa,Ee.Aa==2&&(Ee.D.aa+=_e),Ee.R=16*_e,Ee.B=8*_e,_e=($e=Cs[Ee.L])*Ee.R,$e=$e/2*Ee.B,Ee.sa=Ue,Ee.ta=oe+_e,Ee.qa=Ee.sa,Ee.ra=Ee.ta+16*Tt*Ee.R+$e,Ee.Ha=Ee.qa,Ee.Ia=Ee.ra+8*Tt*Ee.B+$e,Ee.$c=0,oe+=Br,Ee.mb=sn?Ue:null,Ee.nb=sn?oe:null,Le(oe+sn<=Ee.Fc+Ee.Vb),Jn(Ee),tt(Ee.Ac,Ee.Bc,0,dr),Tt=1}}if(Tt){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(Tt=-255;255>=Tt;++Tt)tu[255+Tt]=0>Tt?-Tt:Tt;for(Tt=-1020;1020>=Tt;++Tt)Iu[1020+Tt]=-128>Tt?-128:127<Tt?127:Tt;for(Tt=-112;112>=Tt;++Tt)pu[112+Tt]=-16>Tt?-16:15<Tt?15:Tt;for(Tt=-255;510>=Tt;++Tt)mu[255+Tt]=0>Tt?0:255<Tt?255:Tt;gu=1}ps=Ai,Is=ci,Ls=si,Ps=Ci,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,Tt=1}else Tt=0}Tt&&(Tt=function(ar,Gr){for(ar.M=0;ar.M<ar.Va;++ar.M){var pn,zr=ar.Jc[ar.M&ar.Xb],Hr=ar.m,ln=ar;for(pn=0;pn<ln.za;++pn){var bn=Hr,Gn=ln,Li=Gn.Ac,Mi=Gn.Bc+4*pn,da=Gn.zc,$i=Gn.ya[Gn.aa+pn];if(Gn.Qa.Bb?$i.$b=Ri(bn,Gn.Pa.jb[0])?2+Ri(bn,Gn.Pa.jb[2]):Ri(bn,Gn.Pa.jb[1]):$i.$b=0,Gn.kc&&($i.Ad=Ri(bn,Gn.Bd)),$i.Za=!Ri(bn,145)+0,$i.Za){var Qa=$i.Ob,ya=0;for(Gn=0;4>Gn;++Gn){var fo,za=da[0+Gn];for(fo=0;4>fo;++fo){za=Ae[Li[Mi+fo]][za];for(var Xo=fu[Ri(bn,za[0])];0<Xo;)Xo=fu[2*Xo+Ri(bn,za[Xo])];za=-Xo,Li[Mi+fo]=za}Xe(Qa,ya,Li,Mi,4),ya+=4,da[0+Gn]=za}}else za=Ri(bn,156)?Ri(bn,128)?1:3:Ri(bn,163)?2:0,$i.Ob[0]=za,tt(Li,Mi,za,4),tt(da,0,za,4);$i.Dd=Ri(bn,142)?Ri(bn,114)?Ri(bn,183)?1:3:2:0}if(ln.m.Ka)return mt(ar,7,"Premature end-of-partition0 encountered.");for(;ar.ja<ar.za;++ar.ja){if(ln=zr,bn=(Hr=ar).rb[Hr.sb-1],Li=Hr.rb[Hr.sb+Hr.ja],pn=Hr.ya[Hr.aa+Hr.ja],Mi=Hr.kc?pn.Ad:0)bn.la=Li.la=0,pn.Za||(bn.Na=Li.Na=0),pn.Hc=0,pn.Gc=0,pn.ia=0;else{var ls,N;if(bn=Li,Li=ln,Mi=Hr.Pa.Xc,da=Hr.ya[Hr.aa+Hr.ja],$i=Hr.pb[da.$b],Gn=da.ad,Qa=0,ya=Hr.rb[Hr.sb-1],za=fo=0,tt(Gn,Qa,0,384),da.Za)var U=0,ie=Mi[3];else{Xo=Ze(16);var ue=bn.Na+ya.Na;if(ue=nu(Li,Mi[1],ue,$i.Eb,0,Xo,0),bn.Na=ya.Na=(0<ue)+0,1<ue)ps(Xo,0,Gn,Qa);else{var ge=Xo[0]+3>>3;for(Xo=0;256>Xo;Xo+=16)Gn[Qa+Xo]=ge}U=1,ie=Mi[0]}var Ke=15&bn.la,It=15&ya.la;for(Xo=0;4>Xo;++Xo){var nr=1&It;for(ge=N=0;4>ge;++ge)Ke=Ke>>1|(nr=(ue=nu(Li,ie,ue=nr+(1&Ke),$i.Sc,U,Gn,Qa))>U)<<7,N=N<<2|(3<ue?3:1<ue?2:Gn[Qa+0]!=0),Qa+=16;Ke>>=4,It=It>>1|nr<<7,fo=(fo<<8|N)>>>0}for(ie=Ke,U=It>>4,ls=0;4>ls;ls+=2){for(N=0,Ke=bn.la>>4+ls,It=ya.la>>4+ls,Xo=0;2>Xo;++Xo){for(nr=1&It,ge=0;2>ge;++ge)ue=nr+(1&Ke),Ke=Ke>>1|(nr=0<(ue=nu(Li,Mi[2],ue,$i.Qc,0,Gn,Qa)))<<3,N=N<<2|(3<ue?3:1<ue?2:Gn[Qa+0]!=0),Qa+=16;Ke>>=2,It=It>>1|nr<<5}za|=N<<4*ls,ie|=Ke<<4<<ls,U|=(240&It)<<ls}bn.la=ie,ya.la=U,da.Hc=fo,da.Gc=za,da.ia=43690&za?0:$i.ia,Mi=!(fo|za)}if(0<Hr.L&&(Hr.wa[Hr.Y+Hr.ja]=Hr.gd[pn.$b][pn.Za],Hr.wa[Hr.Y+Hr.ja].La|=!Mi),ln.Ka)return mt(ar,7,"Premature end-of-file encountered.")}if(Jn(ar),Hr=Gr,ln=1,pn=(zr=ar).D,bn=0<zr.L&&zr.M>=zr.zb&&zr.M<=zr.Va,zr.Aa==0)e:{if(pn.M=zr.M,pn.uc=bn,Bo(zr,pn),ln=1,pn=(N=zr.D).Nb,bn=(za=Cs[zr.L])*zr.R,Li=za/2*zr.B,Xo=16*pn*zr.R,ge=8*pn*zr.B,Mi=zr.sa,da=zr.ta-bn+Xo,$i=zr.qa,Gn=zr.ra-Li+ge,Qa=zr.Ha,ya=zr.Ia-Li+ge,It=(Ke=N.M)==0,fo=Ke>=zr.Va-1,zr.Aa==2&&Bo(zr,N),N.uc)for(nr=(ue=zr).D.M,Le(ue.D.uc),N=ue.yb;N<ue.Hb;++N){U=N,ie=nr;var wr=(_r=(Na=ue).D).Nb;ls=Na.R;var _r=_r.wa[_r.Y+U],Hn=Na.sa,ri=Na.ta+16*wr*ls+16*U,xi=_r.dd,_i=_r.tc;if(_i!=0)if(Le(3<=_i),Na.L==1)0<U&&nl(Hn,ri,ls,_i+4),_r.La&&Ml(Hn,ri,ls,_i),0<ie&&sl(Hn,ri,ls,_i+4),_r.La&&xl(Hn,ri,ls,_i);else{var la=Na.B,Ta=Na.qa,Wa=Na.ra+8*wr*la+8*U,Ma=Na.Ha,Na=Na.Ia+8*wr*la+8*U;wr=_r.ld,0<U&&(_l(Hn,ri,ls,_i+4,xi,wr),jl(Ta,Wa,Ma,Na,la,_i+4,xi,wr)),_r.La&&(Xl(Hn,ri,ls,_i,xi,wr),Ys(Ta,Wa,Ma,Na,la,_i,xi,wr)),0<ie&&(Rl(Hn,ri,ls,_i+4,xi,wr),Bl(Ta,Wa,Ma,Na,la,_i+4,xi,wr)),_r.La&&(kl(Hn,ri,ls,_i,xi,wr),ol(Ta,Wa,Ma,Na,la,_i,xi,wr))}}if(zr.ia&&alert("todo:DitherRow"),Hr.put!=null){if(N=16*Ke,Ke=16*(Ke+1),It?(Hr.y=zr.sa,Hr.O=zr.ta+Xo,Hr.f=zr.qa,Hr.N=zr.ra+ge,Hr.ea=zr.Ha,Hr.W=zr.Ia+ge):(N-=za,Hr.y=Mi,Hr.O=da,Hr.f=$i,Hr.N=Gn,Hr.ea=Qa,Hr.W=ya),fo||(Ke-=za),Ke>Hr.o&&(Ke=Hr.o),Hr.F=null,Hr.J=null,zr.Fa!=null&&0<zr.Fa.length&&N<Ke&&(Hr.J=or(zr,Hr,N,Ke-N),Hr.F=zr.mb,Hr.F==null&&Hr.F.length==0)){ln=mt(zr,3,"Could not decode alpha data.");break e}N<Hr.j&&(za=Hr.j-N,N=Hr.j,Le(!(1&za)),Hr.O+=zr.R*za,Hr.N+=zr.B*(za>>1),Hr.W+=zr.B*(za>>1),Hr.F!=null&&(Hr.J+=Hr.width*za)),N<Ke&&(Hr.O+=Hr.v,Hr.N+=Hr.v>>1,Hr.W+=Hr.v>>1,Hr.F!=null&&(Hr.J+=Hr.v),Hr.ka=N-Hr.j,Hr.U=Hr.va-Hr.v,Hr.T=Ke-N,ln=Hr.put(Hr))}pn+1!=zr.Ic||fo||(Xe(zr.sa,zr.ta-bn,Mi,da+16*zr.R,bn),Xe(zr.qa,zr.ra-Li,$i,Gn+8*zr.B,Li),Xe(zr.Ha,zr.Ia-Li,Qa,ya+8*zr.B,Li))}if(!ln)return mt(ar,6,"Output aborted.")}return 1}(Ee,Ye)),Ye.bc!=null&&Ye.bc(Ye),Tt&=1}return Tt?(Ee.cb=0,Tt):0}function Yr(Ee,Ye,Tt,dr,Br){Br=Ee[Ye+Tt+32*dr]+(Br>>3),Ee[Ye+Tt+32*dr]=-256&Br?0>Br?0:255:Br}function ni(Ee,Ye,Tt,dr,Br,sn){Yr(Ee,Ye,0,Tt,dr+Br),Yr(Ee,Ye,1,Tt,dr+sn),Yr(Ee,Ye,2,Tt,dr-sn),Yr(Ee,Ye,3,Tt,dr-Br)}function nn(Ee){return(20091*Ee>>16)+Ee}function zn(Ee,Ye,Tt,dr){var Br,sn=0,Ue=Ze(16);for(Br=0;4>Br;++Br){var oe=Ee[Ye+0]+Ee[Ye+8],_e=Ee[Ye+0]-Ee[Ye+8],$e=(35468*Ee[Ye+4]>>16)-nn(Ee[Ye+12]),wt=nn(Ee[Ye+4])+(35468*Ee[Ye+12]>>16);Ue[sn+0]=oe+wt,Ue[sn+1]=_e+$e,Ue[sn+2]=_e-$e,Ue[sn+3]=oe-wt,sn+=4,Ye++}for(Br=sn=0;4>Br;++Br)oe=(Ee=Ue[sn+0]+4)+Ue[sn+8],_e=Ee-Ue[sn+8],$e=(35468*Ue[sn+4]>>16)-nn(Ue[sn+12]),Yr(Tt,dr,0,0,oe+(wt=nn(Ue[sn+4])+(35468*Ue[sn+12]>>16))),Yr(Tt,dr,1,0,_e+$e),Yr(Tt,dr,2,0,_e-$e),Yr(Tt,dr,3,0,oe-wt),sn++,dr+=32}function li(Ee,Ye,Tt,dr){var Br=Ee[Ye+0]+4,sn=35468*Ee[Ye+4]>>16,Ue=nn(Ee[Ye+4]),oe=35468*Ee[Ye+1]>>16;ni(Tt,dr,0,Br+Ue,Ee=nn(Ee[Ye+1]),oe),ni(Tt,dr,1,Br+sn,Ee,oe),ni(Tt,dr,2,Br-sn,Ee,oe),ni(Tt,dr,3,Br-Ue,Ee,oe)}function ci(Ee,Ye,Tt,dr,Br){zn(Ee,Ye,Tt,dr),Br&&zn(Ee,Ye+16,Tt,dr+4)}function si(Ee,Ye,Tt,dr){Is(Ee,Ye+0,Tt,dr,1),Is(Ee,Ye+32,Tt,dr+128,1)}function Ci(Ee,Ye,Tt,dr){var Br;for(Ee=Ee[Ye+0]+4,Br=0;4>Br;++Br)for(Ye=0;4>Ye;++Ye)Yr(Tt,dr,Ye,Br,Ee)}function mi(Ee,Ye,Tt,dr){Ee[Ye+0]&&Ps(Ee,Ye+0,Tt,dr),Ee[Ye+16]&&Ps(Ee,Ye+16,Tt,dr+4),Ee[Ye+32]&&Ps(Ee,Ye+32,Tt,dr+128),Ee[Ye+48]&&Ps(Ee,Ye+48,Tt,dr+128+4)}function Ai(Ee,Ye,Tt,dr){var Br,sn=Ze(16);for(Br=0;4>Br;++Br){var Ue=Ee[Ye+0+Br]+Ee[Ye+12+Br],oe=Ee[Ye+4+Br]+Ee[Ye+8+Br],_e=Ee[Ye+4+Br]-Ee[Ye+8+Br],$e=Ee[Ye+0+Br]-Ee[Ye+12+Br];sn[0+Br]=Ue+oe,sn[8+Br]=Ue-oe,sn[4+Br]=$e+_e,sn[12+Br]=$e-_e}for(Br=0;4>Br;++Br)Ue=(Ee=sn[0+4*Br]+3)+sn[3+4*Br],oe=sn[1+4*Br]+sn[2+4*Br],_e=sn[1+4*Br]-sn[2+4*Br],$e=Ee-sn[3+4*Br],Tt[dr+0]=Ue+oe>>3,Tt[dr+16]=$e+_e>>3,Tt[dr+32]=Ue-oe>>3,Tt[dr+48]=$e-_e>>3,dr+=64}function Ni(Ee,Ye,Tt){var dr,Br=Ye-32,sn=ll,Ue=255-Ee[Br-1];for(dr=0;dr<Tt;++dr){var oe,_e=sn,$e=Ue+Ee[Ye-1];for(oe=0;oe<Tt;++oe)Ee[Ye+oe]=_e[$e+Ee[Br+oe]];Ye+=32}}function ia(Ee,Ye){Ni(Ee,Ye,4)}function Ki(Ee,Ye){Ni(Ee,Ye,8)}function fa(Ee,Ye){Ni(Ee,Ye,16)}function Ya(Ee,Ye){var Tt;for(Tt=0;16>Tt;++Tt)Xe(Ee,Ye+32*Tt,Ee,Ye-32,16)}function xa(Ee,Ye){var Tt;for(Tt=16;0<Tt;--Tt)tt(Ee,Ye,Ee[Ye-1],16),Ye+=32}function wa(Ee,Ye,Tt){var dr;for(dr=0;16>dr;++dr)tt(Ye,Tt+32*dr,Ee,16)}function Da(Ee,Ye){var Tt,dr=16;for(Tt=0;16>Tt;++Tt)dr+=Ee[Ye-1+32*Tt]+Ee[Ye+Tt-32];wa(dr>>5,Ee,Ye)}function ja(Ee,Ye){var Tt,dr=8;for(Tt=0;16>Tt;++Tt)dr+=Ee[Ye-1+32*Tt];wa(dr>>4,Ee,Ye)}function ko(Ee,Ye){var Tt,dr=8;for(Tt=0;16>Tt;++Tt)dr+=Ee[Ye+Tt-32];wa(dr>>4,Ee,Ye)}function ro(Ee,Ye){wa(128,Ee,Ye)}function pa(Ee,Ye,Tt){return Ee+2*Ye+Tt+2>>2}function Ea(Ee,Ye){var Tt,dr=Ye-32;for(dr=new Uint8Array([pa(Ee[dr-1],Ee[dr+0],Ee[dr+1]),pa(Ee[dr+0],Ee[dr+1],Ee[dr+2]),pa(Ee[dr+1],Ee[dr+2],Ee[dr+3]),pa(Ee[dr+2],Ee[dr+3],Ee[dr+4])]),Tt=0;4>Tt;++Tt)Xe(Ee,Ye+32*Tt,dr,0,dr.length)}function Fa(Ee,Ye){var Tt=Ee[Ye-1],dr=Ee[Ye-1+32],Br=Ee[Ye-1+64],sn=Ee[Ye-1+96];oa(Ee,Ye+0,16843009*pa(Ee[Ye-1-32],Tt,dr)),oa(Ee,Ye+32,16843009*pa(Tt,dr,Br)),oa(Ee,Ye+64,16843009*pa(dr,Br,sn)),oa(Ee,Ye+96,16843009*pa(Br,sn,sn))}function Ka(Ee,Ye){var Tt,dr=4;for(Tt=0;4>Tt;++Tt)dr+=Ee[Ye+Tt-32]+Ee[Ye-1+32*Tt];for(dr>>=3,Tt=0;4>Tt;++Tt)tt(Ee,Ye+32*Tt,dr,4)}function lo(Ee,Ye){var Tt=Ee[Ye-1+0],dr=Ee[Ye-1+32],Br=Ee[Ye-1+64],sn=Ee[Ye-1-32],Ue=Ee[Ye+0-32],oe=Ee[Ye+1-32],_e=Ee[Ye+2-32],$e=Ee[Ye+3-32];Ee[Ye+0+96]=pa(dr,Br,Ee[Ye-1+96]),Ee[Ye+1+96]=Ee[Ye+0+64]=pa(Tt,dr,Br),Ee[Ye+2+96]=Ee[Ye+1+64]=Ee[Ye+0+32]=pa(sn,Tt,dr),Ee[Ye+3+96]=Ee[Ye+2+64]=Ee[Ye+1+32]=Ee[Ye+0+0]=pa(Ue,sn,Tt),Ee[Ye+3+64]=Ee[Ye+2+32]=Ee[Ye+1+0]=pa(oe,Ue,sn),Ee[Ye+3+32]=Ee[Ye+2+0]=pa(_e,oe,Ue),Ee[Ye+3+0]=pa($e,_e,oe)}function so(Ee,Ye){var Tt=Ee[Ye+1-32],dr=Ee[Ye+2-32],Br=Ee[Ye+3-32],sn=Ee[Ye+4-32],Ue=Ee[Ye+5-32],oe=Ee[Ye+6-32],_e=Ee[Ye+7-32];Ee[Ye+0+0]=pa(Ee[Ye+0-32],Tt,dr),Ee[Ye+1+0]=Ee[Ye+0+32]=pa(Tt,dr,Br),Ee[Ye+2+0]=Ee[Ye+1+32]=Ee[Ye+0+64]=pa(dr,Br,sn),Ee[Ye+3+0]=Ee[Ye+2+32]=Ee[Ye+1+64]=Ee[Ye+0+96]=pa(Br,sn,Ue),Ee[Ye+3+32]=Ee[Ye+2+64]=Ee[Ye+1+96]=pa(sn,Ue,oe),Ee[Ye+3+64]=Ee[Ye+2+96]=pa(Ue,oe,_e),Ee[Ye+3+96]=pa(oe,_e,_e)}function Co(Ee,Ye){var Tt=Ee[Ye-1+0],dr=Ee[Ye-1+32],Br=Ee[Ye-1+64],sn=Ee[Ye-1-32],Ue=Ee[Ye+0-32],oe=Ee[Ye+1-32],_e=Ee[Ye+2-32],$e=Ee[Ye+3-32];Ee[Ye+0+0]=Ee[Ye+1+64]=sn+Ue+1>>1,Ee[Ye+1+0]=Ee[Ye+2+64]=Ue+oe+1>>1,Ee[Ye+2+0]=Ee[Ye+3+64]=oe+_e+1>>1,Ee[Ye+3+0]=_e+$e+1>>1,Ee[Ye+0+96]=pa(Br,dr,Tt),Ee[Ye+0+64]=pa(dr,Tt,sn),Ee[Ye+0+32]=Ee[Ye+1+96]=pa(Tt,sn,Ue),Ee[Ye+1+32]=Ee[Ye+2+96]=pa(sn,Ue,oe),Ee[Ye+2+32]=Ee[Ye+3+96]=pa(Ue,oe,_e),Ee[Ye+3+32]=pa(oe,_e,$e)}function Lo(Ee,Ye){var Tt=Ee[Ye+0-32],dr=Ee[Ye+1-32],Br=Ee[Ye+2-32],sn=Ee[Ye+3-32],Ue=Ee[Ye+4-32],oe=Ee[Ye+5-32],_e=Ee[Ye+6-32],$e=Ee[Ye+7-32];Ee[Ye+0+0]=Tt+dr+1>>1,Ee[Ye+1+0]=Ee[Ye+0+64]=dr+Br+1>>1,Ee[Ye+2+0]=Ee[Ye+1+64]=Br+sn+1>>1,Ee[Ye+3+0]=Ee[Ye+2+64]=sn+Ue+1>>1,Ee[Ye+0+32]=pa(Tt,dr,Br),Ee[Ye+1+32]=Ee[Ye+0+96]=pa(dr,Br,sn),Ee[Ye+2+32]=Ee[Ye+1+96]=pa(Br,sn,Ue),Ee[Ye+3+32]=Ee[Ye+2+96]=pa(sn,Ue,oe),Ee[Ye+3+64]=pa(Ue,oe,_e),Ee[Ye+3+96]=pa(oe,_e,$e)}function is(Ee,Ye){var Tt=Ee[Ye-1+0],dr=Ee[Ye-1+32],Br=Ee[Ye-1+64],sn=Ee[Ye-1+96];Ee[Ye+0+0]=Tt+dr+1>>1,Ee[Ye+2+0]=Ee[Ye+0+32]=dr+Br+1>>1,Ee[Ye+2+32]=Ee[Ye+0+64]=Br+sn+1>>1,Ee[Ye+1+0]=pa(Tt,dr,Br),Ee[Ye+3+0]=Ee[Ye+1+32]=pa(dr,Br,sn),Ee[Ye+3+32]=Ee[Ye+1+64]=pa(Br,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 Tt=Ee[Ye-1+0],dr=Ee[Ye-1+32],Br=Ee[Ye-1+64],sn=Ee[Ye-1+96],Ue=Ee[Ye-1-32],oe=Ee[Ye+0-32],_e=Ee[Ye+1-32],$e=Ee[Ye+2-32];Ee[Ye+0+0]=Ee[Ye+2+32]=Tt+Ue+1>>1,Ee[Ye+0+32]=Ee[Ye+2+64]=dr+Tt+1>>1,Ee[Ye+0+64]=Ee[Ye+2+96]=Br+dr+1>>1,Ee[Ye+0+96]=sn+Br+1>>1,Ee[Ye+3+0]=pa(oe,_e,$e),Ee[Ye+2+0]=pa(Ue,oe,_e),Ee[Ye+1+0]=Ee[Ye+3+32]=pa(Tt,Ue,oe),Ee[Ye+1+32]=Ee[Ye+3+64]=pa(dr,Tt,Ue),Ee[Ye+1+64]=Ee[Ye+3+96]=pa(Br,dr,Tt),Ee[Ye+1+96]=pa(sn,Br,dr)}function Rs(Ee,Ye){var Tt;for(Tt=0;8>Tt;++Tt)Xe(Ee,Ye+32*Tt,Ee,Ye-32,8)}function Ko(Ee,Ye){var Tt;for(Tt=0;8>Tt;++Tt)tt(Ee,Ye,Ee[Ye-1],8),Ye+=32}function as(Ee,Ye,Tt){var dr;for(dr=0;8>dr;++dr)tt(Ye,Tt+32*dr,Ee,8)}function co(Ee,Ye){var Tt,dr=8;for(Tt=0;8>Tt;++Tt)dr+=Ee[Ye+Tt-32]+Ee[Ye-1+32*Tt];as(dr>>4,Ee,Ye)}function Ao(Ee,Ye){var Tt,dr=4;for(Tt=0;8>Tt;++Tt)dr+=Ee[Ye+Tt-32];as(dr>>3,Ee,Ye)}function $a(Ee,Ye){var Tt,dr=4;for(Tt=0;8>Tt;++Tt)dr+=Ee[Ye-1+32*Tt];as(dr>>3,Ee,Ye)}function ss(Ee,Ye){as(128,Ee,Ye)}function _s(Ee,Ye,Tt){var dr=Ee[Ye-Tt],Br=Ee[Ye+0],sn=3*(Br-dr)+ql[1020+Ee[Ye-2*Tt]-Ee[Ye+Tt]],Ue=Cl[112+(sn+4>>3)];Ee[Ye-Tt]=ll[255+dr+Cl[112+(sn+3>>3)]],Ee[Ye+0]=ll[255+Br-Ue]}function Fo(Ee,Ye,Tt,dr){var Br=Ee[Ye+0],sn=Ee[Ye+Tt];return Hl[255+Ee[Ye-2*Tt]-Ee[Ye-Tt]]>dr||Hl[255+sn-Br]>dr}function il(Ee,Ye,Tt,dr){return 4*Hl[255+Ee[Ye-Tt]-Ee[Ye+0]]+Hl[255+Ee[Ye-2*Tt]-Ee[Ye+Tt]]<=dr}function Eo(Ee,Ye,Tt,dr,Br){var sn=Ee[Ye-3*Tt],Ue=Ee[Ye-2*Tt],oe=Ee[Ye-Tt],_e=Ee[Ye+0],$e=Ee[Ye+Tt],wt=Ee[Ye+2*Tt],Kt=Ee[Ye+3*Tt];return 4*Hl[255+oe-_e]+Hl[255+Ue-$e]>dr?0:Hl[255+Ee[Ye-4*Tt]-sn]<=Br&&Hl[255+sn-Ue]<=Br&&Hl[255+Ue-oe]<=Br&&Hl[255+Kt-wt]<=Br&&Hl[255+wt-$e]<=Br&&Hl[255+$e-_e]<=Br}function zo(Ee,Ye,Tt,dr){var Br=2*dr+1;for(dr=0;16>dr;++dr)il(Ee,Ye+dr,Tt,Br)&&_s(Ee,Ye+dr,Tt)}function Fs(Ee,Ye,Tt,dr){var Br=2*dr+1;for(dr=0;16>dr;++dr)il(Ee,Ye+dr*Tt,1,Br)&&_s(Ee,Ye+dr*Tt,1)}function ms(Ee,Ye,Tt,dr){var Br;for(Br=3;0<Br;--Br)zo(Ee,Ye+=4*Tt,Tt,dr)}function hs(Ee,Ye,Tt,dr){var Br;for(Br=3;0<Br;--Br)Fs(Ee,Ye+=4,Tt,dr)}function wn(Ee,Ye,Tt,dr,Br,sn,Ue,oe){for(sn=2*sn+1;0<Br--;){if(Eo(Ee,Ye,Tt,sn,Ue))if(Fo(Ee,Ye,Tt,oe))_s(Ee,Ye,Tt);else{var _e=Ee,$e=Ye,wt=Tt,Kt=_e[$e-2*wt],tr=_e[$e-wt],ar=_e[$e+0],Gr=_e[$e+wt],pn=_e[$e+2*wt],zr=27*(ln=ql[1020+3*(ar-tr)+ql[1020+Kt-Gr]])+63>>7,Hr=18*ln+63>>7,ln=9*ln+63>>7;_e[$e-3*wt]=ll[255+_e[$e-3*wt]+ln],_e[$e-2*wt]=ll[255+Kt+Hr],_e[$e-wt]=ll[255+tr+zr],_e[$e+0]=ll[255+ar-zr],_e[$e+wt]=ll[255+Gr-Hr],_e[$e+2*wt]=ll[255+pn-ln]}Ye+=dr}}function Ns(Ee,Ye,Tt,dr,Br,sn,Ue,oe){for(sn=2*sn+1;0<Br--;){if(Eo(Ee,Ye,Tt,sn,Ue))if(Fo(Ee,Ye,Tt,oe))_s(Ee,Ye,Tt);else{var _e=Ee,$e=Ye,wt=Tt,Kt=_e[$e-wt],tr=_e[$e+0],ar=_e[$e+wt],Gr=Cl[112+((pn=3*(tr-Kt))+4>>3)],pn=Cl[112+(pn+3>>3)],zr=Gr+1>>1;_e[$e-2*wt]=ll[255+_e[$e-2*wt]+zr],_e[$e-wt]=ll[255+Kt+pn],_e[$e+0]=ll[255+tr-Gr],_e[$e+wt]=ll[255+ar-zr]}Ye+=dr}}function Ll(Ee,Ye,Tt,dr,Br,sn){wn(Ee,Ye,Tt,1,16,dr,Br,sn)}function el(Ee,Ye,Tt,dr,Br,sn){wn(Ee,Ye,1,Tt,16,dr,Br,sn)}function Gs(Ee,Ye,Tt,dr,Br,sn){var Ue;for(Ue=3;0<Ue;--Ue)Ns(Ee,Ye+=4*Tt,Tt,1,16,dr,Br,sn)}function ds(Ee,Ye,Tt,dr,Br,sn){var Ue;for(Ue=3;0<Ue;--Ue)Ns(Ee,Ye+=4,1,Tt,16,dr,Br,sn)}function ks(Ee,Ye,Tt,dr,Br,sn,Ue,oe){wn(Ee,Ye,Br,1,8,sn,Ue,oe),wn(Tt,dr,Br,1,8,sn,Ue,oe)}function Qs(Ee,Ye,Tt,dr,Br,sn,Ue,oe){wn(Ee,Ye,1,Br,8,sn,Ue,oe),wn(Tt,dr,1,Br,8,sn,Ue,oe)}function tl(Ee,Ye,Tt,dr,Br,sn,Ue,oe){Ns(Ee,Ye+4*Br,Br,1,8,sn,Ue,oe),Ns(Tt,dr+4*Br,Br,1,8,sn,Ue,oe)}function xs(Ee,Ye,Tt,dr,Br,sn,Ue,oe){Ns(Ee,Ye+4,1,Br,8,sn,Ue,oe),Ns(Tt,dr+4,1,Br,8,sn,Ue,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 Ui,this.vb=new Ui,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new cr,this.yc=new zt}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 Ur,this.Pb=0,this.wd=new Ur,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,Tt,dr,Br,sn,Ue){for(Ee=Ee==null?0:Ee[Ye+0],Ye=0;Ye<Ue;++Ye)Br[sn+Ye]=Ee+Tt[dr+Ye]&255,Ee=Br[sn+Ye]}function go(Ee,Ye,Tt,dr,Br,sn,Ue){var oe;if(Ee==null)Ds(null,null,Tt,dr,Br,sn,Ue);else for(oe=0;oe<Ue;++oe)Br[sn+oe]=Ee[Ye+oe]+Tt[dr+oe]&255}function Ut(Ee,Ye,Tt,dr,Br,sn,Ue){if(Ee==null)Ds(null,null,Tt,dr,Br,sn,Ue);else{var oe,_e=Ee[Ye+0],$e=_e,wt=_e;for(oe=0;oe<Ue;++oe)$e=wt+(_e=Ee[Ye+oe])-$e,wt=Tt[dr+oe]+(-256&$e?0>$e?0:255:$e)&255,$e=_e,Br[sn+oe]=wt}}function or(Ee,Ye,Tt,dr){var Br=Ye.width,sn=Ye.o;if(Le(Ee!=null&&Ye!=null),0>Tt||0>=dr||Tt+dr>sn)return null;if(!Ee.Cc){if(Ee.ga==null){var Ue;if(Ee.ga=new fs,(Ue=Ee.ga==null)||(Ue=Ye.width*Ye.o,Le(Ee.Gb.length==0),Ee.Gb=Ze(Ue),Ee.Uc=0,Ee.Gb==null?Ue=0:(Ee.mb=Ee.Gb,Ee.nb=Ee.Uc,Ee.rc=null,Ue=1),Ue=!Ue),!Ue){Ue=Ee.ga;var oe=Ee.Fa,_e=Ee.P,$e=Ee.qc,wt=Ee.mb,Kt=Ee.nb,tr=_e+1,ar=$e-1,Gr=Ue.l;if(Le(oe!=null&&wt!=null&&Ye!=null),Te[0]=null,Te[1]=Ds,Te[2]=go,Te[3]=Ut,Ue.ca=wt,Ue.tb=Kt,Ue.c=Ye.width,Ue.i=Ye.height,Le(0<Ue.c&&0<Ue.i),1>=$e)Ye=0;else if(Ue.$a=oe[_e+0]>>0&3,Ue.Z=oe[_e+0]>>2&3,Ue.Lc=oe[_e+0]>>4&3,_e=oe[_e+0]>>6&3,0>Ue.$a||1<Ue.$a||4<=Ue.Z||1<Ue.Lc||_e)Ye=0;else if(Gr.put=Ca,Gr.ac=ca,Gr.bc=na,Gr.ma=Ue,Gr.width=Ye.width,Gr.height=Ye.height,Gr.Da=Ye.Da,Gr.v=Ye.v,Gr.va=Ye.va,Gr.j=Ye.j,Gr.o=Ye.o,Ue.$a)e:{Le(Ue.$a==1),Ye=mo();t:for(;;){if(Ye==null){Ye=0;break e}if(Le(Ue!=null),Ue.mc=Ye,Ye.c=Ue.c,Ye.i=Ue.i,Ye.l=Ue.l,Ye.l.ma=Ue,Ye.l.width=Ue.c,Ye.l.height=Ue.i,Ye.a=0,Xn(Ye.m,oe,tr,ar),!To(Ue.c,Ue.i,1,Ye,null))break t;if(Ye.ab==1&&Ye.gc[0].hc==3&&Va(Ye.s)?(Ue.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):(Ue.ic=0,Ye=ao(Ye,Ue.c)),!Ye)break t;Ye=1;break e}Ue.mc=null,Ye=0}else Ye=ar>=Ue.c*Ue.i;Ue=!Ye}if(Ue)return null;Ee.ga.Lc!=1?Ee.Ga=0:dr=sn-Tt}Le(Ee.ga!=null),Le(Tt+dr<=sn);e:{if(Ye=(oe=Ee.ga).c,sn=oe.l.o,oe.$a==0){if(tr=Ee.rc,ar=Ee.Vc,Gr=Ee.Fa,_e=Ee.P+1+Tt*Ye,$e=Ee.mb,wt=Ee.nb+Tt*Ye,Le(_e<=Ee.P+Ee.qc),oe.Z!=0)for(Le(Te[oe.Z]!=null),Ue=0;Ue<dr;++Ue)Te[oe.Z](tr,ar,Gr,_e,$e,wt,Ye),tr=$e,ar=wt,wt+=Ye,_e+=Ye;else for(Ue=0;Ue<dr;++Ue)Xe($e,wt,Gr,_e,Ye),tr=$e,ar=wt,wt+=Ye,_e+=Ye;Ee.rc=tr,Ee.Vc=ar}else{if(Le(oe.mc!=null),Ye=Tt+dr,Le((Ue=oe.mc)!=null),Le(Ye<=Ue.i),Ue.C>=Ye)Ye=1;else if(oe.ic||xe(),oe.ic){oe=Ue.V,tr=Ue.Ba,ar=Ue.c;var pn=Ue.i,zr=(Gr=1,_e=Ue.$/ar,$e=Ue.$%ar,wt=Ue.m,Kt=Ue.s,Ue.$),Hr=ar*pn,ln=ar*Ye,bn=Kt.wc,Gn=zr<ln?Aa(Kt,$e,_e):null;Le(zr<=Hr),Le(Ye<=pn),Le(Va(Kt));t:for(;;){for(;!wt.h&&zr<ln;){if($e&bn||(Gn=Aa(Kt,$e,_e)),Le(Gn!=null),oi(wt),256>(pn=ga(Gn.G[0],Gn.H[0],wt)))oe[tr+zr]=pn,++zr,++$e>=ar&&($e=0,++_e<=Ye&&!(_e%16)&&io(Ue,_e));else{if(!(280>pn)){Gr=0;break t}pn=La(pn-256,wt);var Li,Mi=ga(Gn.G[4],Gn.H[4],wt);if(oi(wt),!(zr>=(Mi=va(ar,Mi=La(Mi,wt)))&&Hr-zr>=pn)){Gr=0;break t}for(Li=0;Li<pn;++Li)oe[tr+zr+Li]=oe[tr+zr+Li-Mi];for(zr+=pn,$e+=pn;$e>=ar;)$e-=ar,++_e<=Ye&&!(_e%16)&&io(Ue,_e);zr<ln&&$e&bn&&(Gn=Aa(Kt,$e,_e))}Le(wt.h==Qn(wt))}io(Ue,_e>Ye?Ye:_e);break t}!Gr||wt.h&&zr<Hr?(Gr=0,Ue.a=wt.h?5:3):Ue.$=zr,Ye=Gr}else Ye=oo(Ue,Ue.V,Ue.Ba,Ue.c,Ue.i,Ye,So);if(!Ye){dr=0;break e}}Tt+dr>=sn&&(Ee.Cc=1),dr=1}if(!dr)return null;if(Ee.Cc&&((dr=Ee.ga)!=null&&(dr.mc=null),Ee.ga=null,0<Ee.Ga))return alert("todo:WebPDequantizeLevels"),null}return Ee.nb+Tt*Br}function Nn(Ee,Ye,Tt,dr,Br,sn){for(;0<Br--;){var Ue,oe=Ee,_e=Ye+(Tt?1:0),$e=Ee,wt=Ye+(Tt?0:3);for(Ue=0;Ue<dr;++Ue){var Kt=$e[wt+4*Ue];Kt!=255&&(Kt*=32897,oe[_e+4*Ue+0]=oe[_e+4*Ue+0]*Kt>>23,oe[_e+4*Ue+1]=oe[_e+4*Ue+1]*Kt>>23,oe[_e+4*Ue+2]=oe[_e+4*Ue+2]*Kt>>23)}Ye+=sn}}function hi(Ee,Ye,Tt,dr,Br){for(;0<dr--;){var sn;for(sn=0;sn<Tt;++sn){var Ue=Ee[Ye+2*sn+0],oe=15&($e=Ee[Ye+2*sn+1]),_e=4369*oe,$e=(240&$e|$e>>4)*_e>>16;Ee[Ye+2*sn+0]=(240&Ue|Ue>>4)*_e>>16&240|(15&Ue|Ue<<4)*_e>>16>>4&15,Ee[Ye+2*sn+1]=240&$e|oe}Ye+=Br}}function Nt(Ee,Ye,Tt,dr,Br,sn,Ue,oe){var _e,$e,wt=255;for($e=0;$e<Br;++$e){for(_e=0;_e<dr;++_e){var Kt=Ee[Ye+_e];sn[Ue+4*_e]=Kt,wt&=Kt}Ye+=Tt,Ue+=oe}return wt!=255}function ce(Ee,Ye,Tt,dr,Br){var sn;for(sn=0;sn<Br;++sn)Tt[dr+sn]=Ee[Ye+sn]>>8}function xe(){Wl=Nn,au=hi,Nl=Nt,$l=ce}function Oe(Ee,Ye,Tt){Gt[Ee]=function(dr,Br,sn,Ue,oe,_e,$e,wt,Kt,tr,ar,Gr,pn,zr,Hr,ln,bn){var Gn,Li=bn-1>>1,Mi=oe[_e+0]|$e[wt+0]<<16,da=Kt[tr+0]|ar[Gr+0]<<16;Le(dr!=null);var $i=3*Mi+da+131074>>2;for(Ye(dr[Br+0],255&$i,$i>>16,pn,zr),sn!=null&&($i=3*da+Mi+131074>>2,Ye(sn[Ue+0],255&$i,$i>>16,Hr,ln)),Gn=1;Gn<=Li;++Gn){var Qa=oe[_e+Gn]|$e[wt+Gn]<<16,ya=Kt[tr+Gn]|ar[Gr+Gn]<<16,fo=Mi+Qa+da+ya+524296,za=fo+2*(Qa+da)>>3;$i=za+Mi>>1,Mi=(fo=fo+2*(Mi+ya)>>3)+Qa>>1,Ye(dr[Br+2*Gn-1],255&$i,$i>>16,pn,zr+(2*Gn-1)*Tt),Ye(dr[Br+2*Gn-0],255&Mi,Mi>>16,pn,zr+(2*Gn-0)*Tt),sn!=null&&($i=fo+da>>1,Mi=za+ya>>1,Ye(sn[Ue+2*Gn-1],255&$i,$i>>16,Hr,ln+(2*Gn-1)*Tt),Ye(sn[Ue+2*Gn+0],255&Mi,Mi>>16,Hr,ln+(2*Gn+0)*Tt)),Mi=Qa,da=ya}1&bn||($i=3*Mi+da+131074>>2,Ye(dr[Br+bn-1],255&$i,$i>>16,pn,zr+(bn-1)*Tt),sn!=null&&($i=3*da+Mi+131074>>2,Ye(sn[Ue+bn-1],255&$i,$i>>16,Hr,ln+(bn-1)*Tt)))}}function Qe(){ze[Sl]=ot,ze[Su]=Zt,ze[vu]=ft,ze[Au]=Cr,ze[Ol]=Sr,ze[cu]=Wr,ze[du]=$r,ze[Lu]=Zt,ze[zl]=Cr,ze[ru]=Sr,ze[ou]=Wr}function Dt(Ee){return Ee&~Vi?0>Ee?0:255:Ee>>ua}function lr(Ee,Ye){return Dt((19077*Ee>>8)+(26149*Ye>>8)-14234)}function Zr(Ee,Ye,Tt){return Dt((19077*Ee>>8)-(6419*Ye>>8)-(13320*Tt>>8)+8708)}function mn(Ee,Ye){return Dt((19077*Ee>>8)+(33050*Ye>>8)-17685)}function Dn(Ee,Ye,Tt,dr,Br){dr[Br+0]=lr(Ee,Tt),dr[Br+1]=Zr(Ee,Ye,Tt),dr[Br+2]=mn(Ee,Ye)}function ui(Ee,Ye,Tt,dr,Br){dr[Br+0]=mn(Ee,Ye),dr[Br+1]=Zr(Ee,Ye,Tt),dr[Br+2]=lr(Ee,Tt)}function Si(Ee,Ye,Tt,dr,Br){var sn=Zr(Ee,Ye,Tt);Ye=sn<<3&224|mn(Ee,Ye)>>3,dr[Br+0]=248&lr(Ee,Tt)|sn>>5,dr[Br+1]=Ye}function vi(Ee,Ye,Tt,dr,Br){var sn=240&mn(Ee,Ye)|15;dr[Br+0]=240&lr(Ee,Tt)|Zr(Ee,Ye,Tt)>>4,dr[Br+1]=sn}function Qi(Ee,Ye,Tt,dr,Br){dr[Br+0]=255,Dn(Ee,Ye,Tt,dr,Br+1)}function sa(Ee,Ye,Tt,dr,Br){ui(Ee,Ye,Tt,dr,Br),dr[Br+3]=255}function Ua(Ee,Ye,Tt,dr,Br){Dn(Ee,Ye,Tt,dr,Br),dr[Br+3]=255}function _o(Ee,Ye){return 0>Ee?0:Ee>Ye?Ye:Ee}function no(Ee,Ye,Tt){Gt[Ee]=function(dr,Br,sn,Ue,oe,_e,$e,wt,Kt){for(var tr=wt+(-2&Kt)*Tt;wt!=tr;)Ye(dr[Br+0],sn[Ue+0],oe[_e+0],$e,wt),Ye(dr[Br+1],sn[Ue+0],oe[_e+0],$e,wt+Tt),Br+=2,++Ue,++_e,wt+=2*Tt;1&Kt&&Ye(dr[Br+0],sn[Ue+0],oe[_e+0],$e,wt)}}function Wo(Ee,Ye,Tt){return Tt==0?Ee==0?Ye==0?6:5:Ye==0?4:0:Tt}function Zo(Ee,Ye,Tt,dr,Br){switch(Ee>>>30){case 3:Is(Ye,Tt,dr,Br,0);break;case 2:es(Ye,Tt,dr,Br);break;case 1:Ps(Ye,Tt,dr,Br)}}function Bo(Ee,Ye){var Tt,dr,Br=Ye.M,sn=Ye.Nb,Ue=Ee.oc,oe=Ee.pc+40,_e=Ee.oc,$e=Ee.pc+584,wt=Ee.oc,Kt=Ee.pc+600;for(Tt=0;16>Tt;++Tt)Ue[oe+32*Tt-1]=129;for(Tt=0;8>Tt;++Tt)_e[$e+32*Tt-1]=129,wt[Kt+32*Tt-1]=129;for(0<Br?Ue[oe-1-32]=_e[$e-1-32]=wt[Kt-1-32]=129:(tt(Ue,oe-32-1,127,21),tt(_e,$e-32-1,127,9),tt(wt,Kt-32-1,127,9)),dr=0;dr<Ee.za;++dr){var tr=Ye.ya[Ye.aa+dr];if(0<dr){for(Tt=-1;16>Tt;++Tt)Xe(Ue,oe+32*Tt-4,Ue,oe+32*Tt+12,4);for(Tt=-1;8>Tt;++Tt)Xe(_e,$e+32*Tt-4,_e,$e+32*Tt+4,4),Xe(wt,Kt+32*Tt-4,wt,Kt+32*Tt+4,4)}var ar=Ee.Gd,Gr=Ee.Hd+dr,pn=tr.ad,zr=tr.Hc;if(0<Br&&(Xe(Ue,oe-32,ar[Gr].y,0,16),Xe(_e,$e-32,ar[Gr].f,0,8),Xe(wt,Kt-32,ar[Gr].ea,0,8)),tr.Za){var Hr=Ue,ln=oe-32+16;for(0<Br&&(dr>=Ee.za-1?tt(Hr,ln,ar[Gr].y[15],4):Xe(Hr,ln,ar[Gr+1].y,0,4)),Tt=0;4>Tt;Tt++)Hr[ln+128+Tt]=Hr[ln+256+Tt]=Hr[ln+384+Tt]=Hr[ln+0+Tt];for(Tt=0;16>Tt;++Tt,zr<<=2)Hr=Ue,ln=oe+ys[Tt],H[tr.Ob[Tt]](Hr,ln),Zo(zr,pn,16*+Tt,Hr,ln)}else if(Hr=Wo(dr,Br,tr.Ob[0]),W[Hr](Ue,oe),zr!=0)for(Tt=0;16>Tt;++Tt,zr<<=2)Zo(zr,pn,16*+Tt,Ue,oe+ys[Tt]);for(Tt=tr.Gc,Hr=Wo(dr,Br,tr.Dd),Z[Hr](_e,$e),Z[Hr](wt,Kt),zr=pn,Hr=_e,ln=$e,255&(tr=Tt>>0)&&(170&tr?Ls(zr,256,Hr,ln):ml(zr,256,Hr,ln)),tr=wt,zr=Kt,255&(Tt>>=8)&&(170&Tt?Ls(pn,320,tr,zr):ml(pn,320,tr,zr)),Br<Ee.Ub-1&&(Xe(ar[Gr].y,0,Ue,oe+480,16),Xe(ar[Gr].f,0,_e,$e+224,8),Xe(ar[Gr].ea,0,wt,Kt+224,8)),Tt=8*sn*Ee.B,ar=Ee.sa,Gr=Ee.ta+16*dr+16*sn*Ee.R,pn=Ee.qa,tr=Ee.ra+8*dr+Tt,zr=Ee.Ha,Hr=Ee.Ia+8*dr+Tt,Tt=0;16>Tt;++Tt)Xe(ar,Gr+Tt*Ee.R,Ue,oe+32*Tt,16);for(Tt=0;8>Tt;++Tt)Xe(pn,tr+Tt*Ee.B,_e,$e+32*Tt,8),Xe(zr,Hr+Tt*Ee.B,wt,Kt+32*Tt,8)}}function Es(Ee,Ye,Tt,dr,Br,sn,Ue,oe,_e){var $e=[0],wt=[0],Kt=0,tr=_e!=null?_e.kd:0,ar=_e!=null?_e:new al;if(Ee==null||12>Tt)return 7;ar.data=Ee,ar.w=Ye,ar.ha=Tt,Ye=[Ye],Tt=[Tt],ar.gb=[ar.gb];e:{var Gr=Ye,pn=Tt,zr=ar.gb;if(Le(Ee!=null),Le(pn!=null),Le(zr!=null),zr[0]=0,12<=pn[0]&&!je(Ee,Gr[0],"RIFF")){if(je(Ee,Gr[0]+8,"WEBP")){zr=3;break e}var Hr=ba(Ee,Gr[0]+4);if(12>Hr||4294967286<Hr){zr=3;break e}if(tr&&Hr>pn[0]-8){zr=7;break e}zr[0]=Hr,Gr[0]+=12,pn[0]-=12}zr=0}if(zr!=0)return zr;for(Hr=0<ar.gb[0],Tt=Tt[0];;){e:{var ln=Ee;pn=Ye,zr=Tt;var bn=$e,Gn=wt,Li=Gr=[0];if(($i=Kt=[Kt])[0]=0,8>zr[0])zr=7;else{if(!je(ln,pn[0],"VP8X")){if(ba(ln,pn[0]+4)!=10){zr=3;break e}if(18>zr[0]){zr=7;break e}var Mi=ba(ln,pn[0]+8),da=1+aa(ln,pn[0]+12);if(2147483648<=da*(ln=1+aa(ln,pn[0]+15))){zr=3;break e}Li!=null&&(Li[0]=Mi),bn!=null&&(bn[0]=da),Gn!=null&&(Gn[0]=ln),pn[0]+=18,zr[0]-=18,$i[0]=1}zr=0}}if(Kt=Kt[0],Gr=Gr[0],zr!=0)return zr;if(pn=!!(2&Gr),!Hr&&Kt)return 3;if(sn!=null&&(sn[0]=!!(16&Gr)),Ue!=null&&(Ue[0]=pn),oe!=null&&(oe[0]=0),Ue=$e[0],Gr=wt[0],Kt&&pn&&_e==null){zr=0;break}if(4>Tt){zr=7;break}if(Hr&&Kt||!Hr&&!Kt&&!je(Ee,Ye[0],"ALPH")){Tt=[Tt],ar.na=[ar.na],ar.P=[ar.P],ar.Sa=[ar.Sa];e:{Mi=Ee,zr=Ye,Hr=Tt;var $i=ar.gb;bn=ar.na,Gn=ar.P,Li=ar.Sa,da=22,Le(Mi!=null),Le(Hr!=null),ln=zr[0];var Qa=Hr[0];for(Le(bn!=null),Le(Li!=null),bn[0]=null,Gn[0]=null,Li[0]=0;;){if(zr[0]=ln,Hr[0]=Qa,8>Qa){zr=7;break e}var ya=ba(Mi,ln+4);if(4294967286<ya){zr=3;break e}var fo=8+ya+1&-2;if(da+=fo,0<$i&&da>$i){zr=3;break e}if(!je(Mi,ln,"VP8 ")||!je(Mi,ln,"VP8L")){zr=0;break e}if(Qa[0]<fo){zr=7;break e}je(Mi,ln,"ALPH")||(bn[0]=Mi,Gn[0]=ln+8,Li[0]=ya),ln+=fo,Qa-=fo}}if(Tt=Tt[0],ar.na=ar.na[0],ar.P=ar.P[0],ar.Sa=ar.Sa[0],zr!=0)break}Tt=[Tt],ar.Ja=[ar.Ja],ar.xa=[ar.xa];e:if($i=Ee,zr=Ye,Hr=Tt,bn=ar.gb[0],Gn=ar.Ja,Li=ar.xa,Mi=zr[0],ln=!je($i,Mi,"VP8 "),da=!je($i,Mi,"VP8L"),Le($i!=null),Le(Hr!=null),Le(Gn!=null),Le(Li!=null),8>Hr[0])zr=7;else{if(ln||da){if($i=ba($i,Mi+4),12<=bn&&$i>bn-12){zr=3;break e}if(tr&&$i>Hr[0]-8){zr=7;break e}Gn[0]=$i,zr[0]+=8,Hr[0]-=8,Li[0]=da}else Li[0]=5<=Hr[0]&&$i[Mi+0]==47&&!($i[Mi+4]>>5),Gn[0]=Hr[0];zr=0}if(Tt=Tt[0],ar.Ja=ar.Ja[0],ar.xa=ar.xa[0],Ye=Ye[0],zr!=0)break;if(4294967286<ar.Ja)return 3;if(oe==null||pn||(oe[0]=ar.xa?2:1),Ue=[Ue],Gr=[Gr],ar.xa){if(5>Tt){zr=7;break}oe=Ue,tr=Gr,pn=sn,Ee==null||5>Tt?Ee=0:5<=Tt&&Ee[Ye+0]==47&&!(Ee[Ye+4]>>5)?(Hr=[0],$i=[0],bn=[0],Xn(Gn=new Ur,Ee,Ye,Tt),Pa(Gn,Hr,$i,bn)?(oe!=null&&(oe[0]=Hr[0]),tr!=null&&(tr[0]=$i[0]),pn!=null&&(pn[0]=bn[0]),Ee=1):Ee=0):Ee=0}else{if(10>Tt){zr=7;break}oe=Gr,Ee==null||10>Tt||!Tr(Ee,Ye+3,Tt-3)?Ee=0:(tr=Ee[Ye+0]|Ee[Ye+1]<<8|Ee[Ye+2]<<16,pn=16383&(Ee[Ye+7]<<8|Ee[Ye+6]),Ee=16383&(Ee[Ye+9]<<8|Ee[Ye+8]),1&tr||3<(tr>>1&7)||!(tr>>4&1)||tr>>5>=ar.Ja||!pn||!Ee?Ee=0:(Ue&&(Ue[0]=pn),oe&&(oe[0]=Ee),Ee=1))}if(!Ee)return 3;if(Ue=Ue[0],Gr=Gr[0],Kt&&($e[0]!=Ue||wt[0]!=Gr))return 3;_e!=null&&(_e[0]=ar,_e.offset=Ye-_e.w,Le(4294967286>Ye-_e.w),Le(_e.offset==_e.ha-Tt));break}return zr==0||zr==7&&Kt&&_e==null?(sn!=null&&(sn[0]|=ar.na!=null&&0<ar.na.length),dr!=null&&(dr[0]=Ue),Br!=null&&(Br[0]=Gr),0):zr}function As(Ee,Ye,Tt){var dr=Ye.width,Br=Ye.height,sn=0,Ue=0,oe=dr,_e=Br;if(Ye.Da=Ee!=null&&0<Ee.Da,Ye.Da&&(oe=Ee.cd,_e=Ee.bd,sn=Ee.v,Ue=Ee.j,11>Tt||(sn&=-2,Ue&=-2),0>sn||0>Ue||0>=oe||0>=_e||sn+oe>dr||Ue+_e>Br))return 0;if(Ye.v=sn,Ye.j=Ue,Ye.va=sn+oe,Ye.o=Ue+_e,Ye.U=oe,Ye.T=_e,Ye.da=Ee!=null&&0<Ee.da,Ye.da){if(!ha(oe,_e,Tt=[Ee.ib],sn=[Ee.hb]))return 0;Ye.ib=Tt[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*dr/4&&Ye.hb<3*Br/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,Tt,dr){if(dr==null||0>=Ee||0>=Ye)return 2;if(Tt!=null){if(Tt.Da){var Br=Tt.cd,sn=Tt.bd,Ue=-2&Tt.v,oe=-2&Tt.j;if(0>Ue||0>oe||0>=Br||0>=sn||Ue+Br>Ee||oe+sn>Ye)return 2;Ee=Br,Ye=sn}if(Tt.da){if(!ha(Ee,Ye,Br=[Tt.ib],sn=[Tt.hb]))return 2;Ee=Br[0],Ye=sn[0]}}dr.width=Ee,dr.height=Ye;e:{var _e=dr.width,$e=dr.height;if(Ee=dr.S,0>=_e||0>=$e||!(Ee>=Sl&&13>Ee))Ee=2;else{if(0>=dr.Rd&&dr.sd==null){Ue=sn=Br=Ye=0;var wt=(oe=_e*Hs[Ee])*$e;if(11>Ee||(sn=($e+1)/2*(Ye=(_e+1)/2),Ee==12&&(Ue=(Br=_e)*$e)),($e=Ze(wt+2*sn+Ue))==null){Ee=1;break e}dr.sd=$e,11>Ee?((_e=dr.f.RGBA).eb=$e,_e.fb=0,_e.A=oe,_e.size=wt):((_e=dr.f.kb).y=$e,_e.O=0,_e.fa=oe,_e.Fd=wt,_e.f=$e,_e.N=0+wt,_e.Ab=Ye,_e.Cd=sn,_e.ea=$e,_e.W=0+wt+sn,_e.Db=Ye,_e.Ed=sn,Ee==12&&(_e.F=$e,_e.J=0+wt+2*sn),_e.Tc=Ue,_e.lb=Br)}if(Ye=1,Br=dr.S,sn=dr.width,Ue=dr.height,Br>=Sl&&13>Br)if(11>Br)Ee=dr.f.RGBA,Ye&=(oe=Math.abs(Ee.A))*(Ue-1)+sn<=Ee.size,Ye&=oe>=sn*Hs[Br],Ye&=Ee.eb!=null;else{Ee=dr.f.kb,oe=(sn+1)/2,wt=(Ue+1)/2,_e=Math.abs(Ee.fa),$e=Math.abs(Ee.Ab);var Kt=Math.abs(Ee.Db),tr=Math.abs(Ee.lb),ar=tr*(Ue-1)+sn;Ye&=_e*(Ue-1)+sn<=Ee.Fd,Ye&=$e*(wt-1)+oe<=Ee.Cd,Ye=(Ye&=Kt*(wt-1)+oe<=Ee.Ed)&_e>=sn&$e>=oe&Kt>=oe,Ye&=Ee.y!=null,Ye&=Ee.f!=null,Ye&=Ee.ea!=null,Br==12&&(Ye&=tr>=sn,Ye&=ar<=Ee.Tc,Ye&=Ee.F!=null)}else Ye=0;Ee=Ye?0:2}}return Ee!=0||Tt!=null&&Tt.fd&&(Ee=$o(dr)),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];Lr("Predictor0","PredictorAdd0"),Gt.Predictor0=function(){return 4278190080},Gt.Predictor1=function(Ee){return Ee},Gt.Predictor2=function(Ee,Ye,Tt){return Ye[Tt+0]},Gt.Predictor3=function(Ee,Ye,Tt){return Ye[Tt+1]},Gt.Predictor4=function(Ee,Ye,Tt){return Ye[Tt-1]},Gt.Predictor5=function(Ee,Ye,Tt){return Tn(Tn(Ee,Ye[Tt+1]),Ye[Tt+0])},Gt.Predictor6=function(Ee,Ye,Tt){return Tn(Ee,Ye[Tt-1])},Gt.Predictor7=function(Ee,Ye,Tt){return Tn(Ee,Ye[Tt+0])},Gt.Predictor8=function(Ee,Ye,Tt){return Tn(Ye[Tt-1],Ye[Tt+0])},Gt.Predictor9=function(Ee,Ye,Tt){return Tn(Ye[Tt+0],Ye[Tt+1])},Gt.Predictor10=function(Ee,Ye,Tt){return Tn(Tn(Ee,Ye[Tt-1]),Tn(Ye[Tt+0],Ye[Tt+1]))},Gt.Predictor11=function(Ee,Ye,Tt){var dr=Ye[Tt+0];return 0>=Xr(dr>>24&255,Ee>>24&255,(Ye=Ye[Tt-1])>>24&255)+Xr(dr>>16&255,Ee>>16&255,Ye>>16&255)+Xr(dr>>8&255,Ee>>8&255,Ye>>8&255)+Xr(255&dr,255&Ee,255&Ye)?dr:Ee},Gt.Predictor12=function(Ee,Ye,Tt){var dr=Ye[Tt+0];return(mr((Ee>>24&255)+(dr>>24&255)-((Ye=Ye[Tt-1])>>24&255))<<24|mr((Ee>>16&255)+(dr>>16&255)-(Ye>>16&255))<<16|mr((Ee>>8&255)+(dr>>8&255)-(Ye>>8&255))<<8|mr((255&Ee)+(255&dr)-(255&Ye)))>>>0},Gt.Predictor13=function(Ee,Ye,Tt){var dr=Ye[Tt-1];return(Mr((Ee=Tn(Ee,Ye[Tt+0]))>>24&255,dr>>24&255)<<24|Mr(Ee>>16&255,dr>>16&255)<<16|Mr(Ee>>8&255,dr>>8&255)<<8|Mr(Ee>>0&255,dr>>0&255))>>>0};var fl=Gt.PredictorAdd0;Gt.PredictorAdd1=un,Lr("Predictor2","PredictorAdd2"),Lr("Predictor3","PredictorAdd3"),Lr("Predictor4","PredictorAdd4"),Lr("Predictor5","PredictorAdd5"),Lr("Predictor6","PredictorAdd6"),Lr("Predictor7","PredictorAdd7"),Lr("Predictor8","PredictorAdd8"),Lr("Predictor9","PredictorAdd9"),Lr("Predictor10","PredictorAdd10"),Lr("Predictor11","PredictorAdd11"),Lr("Predictor12","PredictorAdd12"),Lr("Predictor13","PredictorAdd13");var Us=Gt.PredictorAdd2;Nr("ColorIndexInverseTransform","MapARGB","32b",function(Ee){return Ee>>8&255},function(Ee){return Ee}),Nr("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(Ee){return Ee},function(Ee){return Ee>>8&255});var Os,Xs=Gt.ColorIndexInverseTransform,Ql=Gt.MapARGB,Ul=Gt.VP8LColorIndexInverseTransformAlpha,wl=Gt.MapAlpha,Ts=Gt.VP8LPredictorsAdd=[];Ts.length=16,(Gt.VP8LPredictors=[]).length=16,(Gt.VP8LPredictorsAdd_C=[]).length=16,(Gt.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]]],ee=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],L=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],W=[],H=[],Z=[],ne=1,ve=2,Te=[],ze=[];Oe("UpsampleRgbLinePair",Dn,3),Oe("UpsampleBgrLinePair",ui,3),Oe("UpsampleRgbaLinePair",Ua,4),Oe("UpsampleBgraLinePair",sa,4),Oe("UpsampleArgbLinePair",Qi,4),Oe("UpsampleRgba4444LinePair",vi,2),Oe("UpsampleRgb565LinePair",Si,2);var ot=Gt.UpsampleRgbLinePair,ft=Gt.UpsampleBgrLinePair,Zt=Gt.UpsampleRgbaLinePair,Cr=Gt.UpsampleBgraLinePair,Sr=Gt.UpsampleArgbLinePair,Wr=Gt.UpsampleRgba4444LinePair,$r=Gt.UpsampleRgb565LinePair,On=16,Rn=1<<On-1,Zn=-227,wi=482,ua=6,Vi=(256<<ua)-1,Zi=0,ka=Ze(256),Ga=Ze(256),Ba=Ze(256),Sa=Ze(256),Go=Ze(wi-Zn),bs=Ze(wi-Zn);no("YuvToRgbRow",Dn,3),no("YuvToBgrRow",ui,3),no("YuvToRgbaRow",Ua,4),no("YuvToBgraRow",sa,4),no("YuvToArgbRow",Qi,4),no("YuvToRgba4444Row",vi,2),no("YuvToRgb565Row",Si,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,Tt,dr,Br){var sn=Su,Ue=new Bs,oe=new zi;Ue.ba=oe,oe.S=sn,oe.width=[oe.width],oe.height=[oe.height];var _e=oe.width,$e=oe.height,wt=new ea;if(wt==null||Ee==null)var Kt=2;else Le(wt!=null),Kt=Es(Ee,Ye,Tt,wt.width,wt.height,wt.Pd,wt.Qd,wt.format,null);if(Kt!=0?_e=0:(_e!=null&&(_e[0]=wt.width[0]),$e!=null&&($e[0]=wt.height[0]),_e=1),_e){oe.width=oe.width[0],oe.height=oe.height[0],dr!=null&&(dr[0]=oe.width),Br!=null&&(Br[0]=oe.height);e:{if(dr=new uo,(Br=new al).data=Ee,Br.w=Ye,Br.ha=Tt,Br.kd=1,Ye=[0],Le(Br!=null),((Ee=Es(Br.data,Br.w,Br.ha,null,null,null,Ye,null,Br))==0||Ee==7)&&Ye[0]&&(Ee=4),(Ye=Ee)==0){if(Le(Ue!=null),dr.data=Br.data,dr.w=Br.w+Br.offset,dr.ha=Br.ha-Br.offset,dr.put=Ca,dr.ac=ca,dr.bc=na,dr.ma=Ue,Br.xa){if((Ee=mo())==null){Ue=1;break e}if(function(tr,ar){var Gr=[0],pn=[0],zr=[0];t:for(;;){if(tr==null)return 0;if(ar==null)return tr.a=2,0;if(tr.l=ar,tr.a=0,Xn(tr.m,ar.data,ar.w,ar.ha),!Pa(tr.m,Gr,pn,zr)){tr.a=3;break t}if(tr.xb=ve,ar.width=Gr[0],ar.height=pn[0],!To(Gr[0],pn[0],1,tr,null))break t;return 1}return Le(tr.a!=0),0}(Ee,dr)){if(dr=(Ye=Do(dr.width,dr.height,Ue.Oa,Ue.ba))==0){t:{dr=Ee;r:for(;;){if(dr==null){dr=0;break t}if(Le(dr.s.yc!=null),Le(dr.s.Ya!=null),Le(0<dr.s.Wb),Le((Tt=dr.l)!=null),Le((Br=Tt.ma)!=null),dr.xb!=0){if(dr.ca=Br.ba,dr.tb=Br.tb,Le(dr.ca!=null),!As(Br.Oa,Tt,Au)){dr.a=2;break r}if(!ao(dr,Tt.width))break r;if(Tt.da)break r;if((Tt.da||Pi(dr.ca.S))&&xe(),11>dr.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),dr.ca.f.kb.F!=null&&xe()),dr.Pb&&0<dr.s.ua&&dr.s.vb.X==null&&!yi(dr.s.vb,dr.s.Wa.Xa)){dr.a=1;break r}dr.xb=0}if(!oo(dr,dr.V,dr.Ba,dr.c,dr.i,Tt.o,_a))break r;Br.Dc=dr.Ma,dr=1;break t}Le(dr.a!=0),dr=0}dr=!dr}dr&&(Ye=Ee.a)}else Ye=Ee.a}else{if((Ee=new Ha)==null){Ue=1;break e}if(Ee.Fa=Br.na,Ee.P=Br.P,Ee.qc=Br.Sa,en(Ee,dr)){if((Ye=Do(dr.width,dr.height,Ue.Oa,Ue.ba))==0){if(Ee.Aa=0,Tt=Ue.Oa,Le((Br=Ee)!=null),Tt!=null){if(0<(_e=0>(_e=Tt.Md)?0:100<_e?255:255*_e/100)){for($e=wt=0;4>$e;++$e)12>(Kt=Br.pb[$e]).lc&&(Kt.ia=_e*js[0>Kt.lc?0:Kt.lc]>>3),wt|=Kt.ia;wt&&(alert("todo:VP8InitRandom"),Br.ia=1)}Br.Ga=Tt.Id,100<Br.Ga?Br.Ga=100:0>Br.Ga&&(Br.Ga=0)}fn(Ee,dr)||(Ye=Ee.a)}}else Ye=Ee.a}Ye==0&&Ue.Oa!=null&&Ue.Oa.fd&&(Ye=$o(Ue.ba))}Ue=Ye}sn=Ue!=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 pr(Yn,Gt){for(var Ot="",Rt=0;Rt<4;Rt++)Ot+=String.fromCharCode(Yn[Gt++]);return Ot}function qr(Yn,Gt){return(Yn[Gt+0]<<0|Yn[Gt+1]<<8|Yn[Gt+2]<<16)>>>0}function Qr(Yn,Gt){return(Yn[Gt+0]<<0|Yn[Gt+1]<<8|Yn[Gt+2]<<16|Yn[Gt+3]<<24)>>>0}new gt;var gn=[0],vr=[0],Vn=[],kr=new gt,Bn=nt,on=function(Yn,Gt){var Ot={},Rt=0,jt=!1,zt=0,Lt=0;if(Ot.frames=[],!function(Ur,In,Qn,$n){for(var oi=0;oi<$n;oi++)if(Ur[In+oi]!=Qn.charCodeAt(oi))return!0;return!1}(Yn,Gt,"RIFF",4)){var cr,Ar;for(Qr(Yn,Gt+=4),Gt+=8;Gt<Yn.length;){var br=pr(Yn,Gt),Pr=Qr(Yn,Gt+=4);Gt+=4;var Xn=Pr+(1&Pr);switch(br){case"VP8 ":case"VP8L":Ot.frames[Rt]===void 0&&(Ot.frames[Rt]={}),(An=Ot.frames[Rt]).src_off=jt?Lt:Gt-8,An.src_size=zt+Pr+8,Rt++,jt&&(jt=!1,zt=0,Lt=0);break;case"VP8X":(An=Ot.header={}).feature_flags=Yn[Gt];var Pn=Gt+4;An.canvas_width=1+qr(Yn,Pn),Pn+=3,An.canvas_height=1+qr(Yn,Pn),Pn+=3;break;case"ALPH":jt=!0,zt=Xn+8,Lt=Gt-8;break;case"ANIM":(An=Ot.header).bgcolor=Qr(Yn,Gt),Pn=Gt+4,An.loop_count=(cr=Yn)[(Ar=Pn)+0]<<0|cr[Ar+1]<<8,Pn+=2;break;case"ANMF":var di,An;(An=Ot.frames[Rt]={}).offset_x=2*qr(Yn,Gt),Gt+=3,An.offset_y=2*qr(Yn,Gt),Gt+=3,An.width=1+qr(Yn,Gt),Gt+=3,An.height=1+qr(Yn,Gt),Gt+=3,An.duration=qr(Yn,Gt),Gt+=3,di=Yn[Gt++],An.dispose=1&di,An.blend=di>>1&1}br!="ANMF"&&(Gt+=Xn)}return Ot}}(Bn,0);on.response=Bn,on.rgbaoutput=!0,on.dataurl=!1;var jr=on.header?on.header:null,ai=on.frames?on.frames:null;if(jr){jr.loop_counter=jr.loop_count,gn=[jr.canvas_height],vr=[jr.canvas_width];for(var Oi=0;Oi<ai.length&&ai[Oi].blend!=0;Oi++);}var Gi=ai[0],rn=kr.WebPDecodeRGBA(Bn,Gi.src_off,Gi.src_size,vr,gn);Gi.rgba=rn,Gi.imgwidth=vr[0],Gi.imgheight=gn[0];for(var Cn=0;Cn<vr[0]*gn[0]*4;Cn++)Vn[Cn]=rn[Cn];return this.width=vr,this.height=gn,this.data=Vn,this}!function(nt){var Le=function(){return typeof v.b=="function"},je=function(vr,Vn,kr,Bn){var on=4,jr=st;switch(Bn){case nt.image_compression.FAST:on=1,jr=Ze;break;case nt.image_compression.MEDIUM:on=6,jr=Et;break;case nt.image_compression.SLOW:on=9,jr=gt}vr=Xe(vr,Vn,kr,jr);var ai=Object(v.b)(vr,{level:on});return nt.__addimage__.arrayBufferToBinaryString(ai)},Xe=function(vr,Vn,kr,Bn){for(var on,jr,ai,Oi=vr.length/Vn,Gi=new Uint8Array(vr.length+Oi),rn=qr(),Cn=0;Cn<Oi;Cn+=1){if(ai=Cn*Vn,on=vr.subarray(ai,ai+Vn),Bn)Gi.set(Bn(on,kr,jr),ai+Cn);else{for(var Yn,Gt=rn.length,Ot=[];Yn<Gt;Yn+=1)Ot[Yn]=rn[Yn](on,kr,jr);var Rt=Qr(Ot.concat());Gi.set(Ot[Rt],ai+Cn)}jr=on}return Gi},tt=function(vr){var Vn=Array.apply([],vr);return Vn.unshift(0),Vn},Ze=function(vr,Vn){var kr,Bn=[],on=vr.length;Bn[0]=1;for(var jr=0;jr<on;jr+=1)kr=vr[jr-Vn]||0,Bn[jr+1]=vr[jr]-kr+256&255;return Bn},st=function(vr,Vn,kr){var Bn,on=[],jr=vr.length;on[0]=2;for(var ai=0;ai<jr;ai+=1)Bn=kr&&kr[ai]||0,on[ai+1]=vr[ai]-Bn+256&255;return on},Et=function(vr,Vn,kr){var Bn,on,jr=[],ai=vr.length;jr[0]=3;for(var Oi=0;Oi<ai;Oi+=1)Bn=vr[Oi-Vn]||0,on=kr&&kr[Oi]||0,jr[Oi+1]=vr[Oi]+256-(Bn+on>>>1)&255;return jr},gt=function(vr,Vn,kr){var Bn,on,jr,ai,Oi=[],Gi=vr.length;Oi[0]=4;for(var rn=0;rn<Gi;rn+=1)Bn=vr[rn-Vn]||0,on=kr&&kr[rn]||0,jr=kr&&kr[rn-Vn]||0,ai=pr(Bn,on,jr),Oi[rn+1]=vr[rn]-ai+256&255;return Oi},pr=function(vr,Vn,kr){if(vr===Vn&&Vn===kr)return vr;var Bn=Math.abs(Vn-kr),on=Math.abs(vr-kr),jr=Math.abs(vr+Vn-kr-kr);return Bn<=on&&Bn<=jr?vr:on<=jr?Vn:kr},qr=function(){return[tt,Ze,st,Et,gt]},Qr=function(vr){var Vn=vr.map(function(kr){return kr.reduce(function(Bn,on){return Bn+Math.abs(on)},0)});return Vn.indexOf(Math.min.apply(null,Vn))};nt.processPNG=function(gn,vr,Vn,kr){var Bn,on,jr,ai,Oi,Gi,rn,Cn,Yn,Gt,Ot,Rt,jt,zt,Lt,cr=this.decode.FLATE_DECODE,Ar="";if(this.__addimage__.isArrayBuffer(gn)&&(gn=new Uint8Array(gn)),this.__addimage__.isArrayBufferView(gn)){if(gn=(jr=new et(gn)).imgData,on=jr.bits,Bn=jr.colorSpace,Oi=jr.colors,[4,6].indexOf(jr.colorType)!==-1){if(jr.bits===8){Yn=(Cn=jr.pixelBitlength==32?new Uint32Array(jr.decodePixels().buffer):jr.pixelBitlength==16?new Uint16Array(jr.decodePixels().buffer):new Uint8Array(jr.decodePixels().buffer)).length,Ot=new Uint8Array(Yn*jr.colors),Gt=new Uint8Array(Yn);var br,Pr=jr.pixelBitlength-jr.bits;for(zt=0,Lt=0;zt<Yn;zt++){for(jt=Cn[zt],br=0;br<Pr;)Ot[Lt++]=jt>>>br&255,br+=jr.bits;Gt[zt]=jt>>>br&255}}if(jr.bits===16){Yn=(Cn=new Uint32Array(jr.decodePixels().buffer)).length,Ot=new Uint8Array(Yn*(32/jr.pixelBitlength)*jr.colors),Gt=new Uint8Array(Yn*(32/jr.pixelBitlength)),Rt=jr.colors>1,zt=0,Lt=0;for(var Xn=0;zt<Yn;)jt=Cn[zt++],Ot[Lt++]=jt>>>0&255,Rt&&(Ot[Lt++]=jt>>>16&255,jt=Cn[zt++],Ot[Lt++]=jt>>>0&255),Gt[Xn++]=jt>>>16&255;on=8}kr!==nt.image_compression.NONE&&Le()?(gn=je(Ot,jr.width*jr.colors,jr.colors,kr),rn=je(Gt,jr.width,1,kr)):(gn=Ot,rn=Gt,cr=void 0)}if(jr.colorType===3&&(Bn=this.color_spaces.INDEXED,Gi=jr.palette,jr.transparency.indexed)){var Pn=jr.transparency.indexed,di=0;for(zt=0,Yn=Pn.length;zt<Yn;++zt)di+=Pn[zt];if((di/=255)===Yn-1&&Pn.indexOf(0)!==-1)ai=[Pn.indexOf(0)];else if(di!==Yn){for(Cn=jr.decodePixels(),Gt=new Uint8Array(Cn.length),zt=0,Yn=Cn.length;zt<Yn;zt++)Gt[zt]=Pn[Cn[zt]];rn=je(Gt,jr.width,1)}}var An=function(Ur){var In;switch(Ur){case nt.image_compression.FAST:In=11;break;case nt.image_compression.MEDIUM:In=13;break;case nt.image_compression.SLOW:In=14;break;default:In=12}return In}(kr);return cr===this.decode.FLATE_DECODE&&(Ar="/Predictor "+An+" "),Ar+="/Colors "+Oi+" /BitsPerComponent "+on+" /Columns "+jr.width,(this.__addimage__.isArrayBuffer(gn)||this.__addimage__.isArrayBufferView(gn))&&(gn=this.__addimage__.arrayBufferToBinaryString(gn)),(rn&&this.__addimage__.isArrayBuffer(rn)||this.__addimage__.isArrayBufferView(rn))&&(rn=this.__addimage__.arrayBufferToBinaryString(rn)),{alias:Vn,data:gn,index:vr,filter:cr,decodeParameters:Ar,transparency:ai,palette:Gi,sMask:rn,predictor:An,width:jr.width,height:jr.height,bitsPerComponent:on,colorSpace:Bn}}}}(z.API),function(nt){nt.processGIF89A=function(Le,je,Xe,tt){var Ze=new yt(Le),st=Ze.width,Et=Ze.height,gt=[];Ze.decodeAndBlitFrameRGBA(0,gt);var pr={data:gt,width:st,height:Et},qr=new Vt(100).encode(pr,100);return nt.processJPEG.call(this,qr,je,Xe,tt)},nt.processGIF87A=nt.processGIF89A}(z.API),Rr.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 Le=0;Le<nt;Le++){var je=this.datav.getUint8(this.pos++,!0),Xe=this.datav.getUint8(this.pos++,!0),tt=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0);this.palette[Le]={red:tt,green:Xe,blue:je,quad:Ze}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Rr.prototype.parseBGR=function(){this.pos=this.offset;try{var nt="bit"+this.bitPP,Le=this.width*this.height*4;this.data=new Uint8Array(Le),this[nt]()}catch(je){d.log("bit decode error:"+je)}},Rr.prototype.bit1=function(){var nt,Le=Math.ceil(this.width/8),je=Le%4;for(nt=this.height-1;nt>=0;nt--){for(var Xe=this.bottom_up?nt:this.height-1-nt,tt=0;tt<Le;tt++)for(var Ze=this.datav.getUint8(this.pos++,!0),st=Xe*this.width*4+8*tt*4,Et=0;Et<8&&8*tt+Et<this.width;Et++){var gt=this.palette[Ze>>7-Et&1];this.data[st+4*Et]=gt.blue,this.data[st+4*Et+1]=gt.green,this.data[st+4*Et+2]=gt.red,this.data[st+4*Et+3]=255}je!==0&&(this.pos+=4-je)}},Rr.prototype.bit4=function(){for(var nt=Math.ceil(this.width/2),Le=nt%4,je=this.height-1;je>=0;je--){for(var Xe=this.bottom_up?je:this.height-1-je,tt=0;tt<nt;tt++){var Ze=this.datav.getUint8(this.pos++,!0),st=Xe*this.width*4+2*tt*4,Et=Ze>>4,gt=15&Ze,pr=this.palette[Et];if(this.data[st]=pr.blue,this.data[st+1]=pr.green,this.data[st+2]=pr.red,this.data[st+3]=255,2*tt+1>=this.width)break;pr=this.palette[gt],this.data[st+4]=pr.blue,this.data[st+4+1]=pr.green,this.data[st+4+2]=pr.red,this.data[st+4+3]=255}Le!==0&&(this.pos+=4-Le)}},Rr.prototype.bit8=function(){for(var nt=this.width%4,Le=this.height-1;Le>=0;Le--){for(var je=this.bottom_up?Le:this.height-1-Le,Xe=0;Xe<this.width;Xe++){var tt=this.datav.getUint8(this.pos++,!0),Ze=je*this.width*4+4*Xe;if(tt<this.palette.length){var st=this.palette[tt];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)}},Rr.prototype.bit15=function(){for(var nt=this.width%3,Le=parseInt("11111",2),je=this.height-1;je>=0;je--){for(var Xe=this.bottom_up?je:this.height-1-je,tt=0;tt<this.width;tt++){var Ze=this.datav.getUint16(this.pos,!0);this.pos+=2;var st=(Ze&Le)/Le*255|0,Et=(Ze>>5&Le)/Le*255|0,gt=(Ze>>10&Le)/Le*255|0,pr=Ze>>15?255:0,qr=Xe*this.width*4+4*tt;this.data[qr]=gt,this.data[qr+1]=Et,this.data[qr+2]=st,this.data[qr+3]=pr}this.pos+=nt}},Rr.prototype.bit16=function(){for(var nt=this.width%3,Le=parseInt("11111",2),je=parseInt("111111",2),Xe=this.height-1;Xe>=0;Xe--){for(var tt=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 Et=(st&Le)/Le*255|0,gt=(st>>5&je)/je*255|0,pr=(st>>11)/Le*255|0,qr=tt*this.width*4+4*Ze;this.data[qr]=pr,this.data[qr+1]=gt,this.data[qr+2]=Et,this.data[qr+3]=255}this.pos+=nt}},Rr.prototype.bit24=function(){for(var nt=this.height-1;nt>=0;nt--){for(var Le=this.bottom_up?nt:this.height-1-nt,je=0;je<this.width;je++){var Xe=this.datav.getUint8(this.pos++,!0),tt=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0),st=Le*this.width*4+4*je;this.data[st]=Ze,this.data[st+1]=tt,this.data[st+2]=Xe,this.data[st+3]=255}this.pos+=this.width%4}},Rr.prototype.bit32=function(){for(var nt=this.height-1;nt>=0;nt--)for(var Le=this.bottom_up?nt:this.height-1-nt,je=0;je<this.width;je++){var Xe=this.datav.getUint8(this.pos++,!0),tt=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0),st=this.datav.getUint8(this.pos++,!0),Et=Le*this.width*4+4*je;this.data[Et]=Ze,this.data[Et+1]=tt,this.data[Et+2]=Xe,this.data[Et+3]=st}},Rr.prototype.getData=function(){return this.data},function(nt){nt.processBMP=function(Le,je,Xe,tt){var Ze=new Rr(Le,!1),st=Ze.width,Et=Ze.height,gt={data:Ze.getData(),width:st,height:Et},pr=new Vt(100).encode(gt,100);return nt.processJPEG.call(this,pr,je,Xe,tt)}}(z.API),Vr.prototype.getData=function(){return this.data},function(nt){nt.processWEBP=function(Le,je,Xe,tt){var Ze=new Vr(Le,!1),st=Ze.width,Et=Ze.height,gt={data:Ze.getData(),width:st,height:Et},pr=new Vt(100).encode(gt,100);return nt.processJPEG.call(this,pr,je,Xe,tt)}}(z.API),z.API.processRGBA=function(nt,Le,je){for(var Xe=nt.data,tt=Xe.length,Ze=new Uint8Array(tt/4*3),st=new Uint8Array(tt/4),Et=0,gt=0,pr=0;pr<tt;pr+=4){var qr=Xe[pr],Qr=Xe[pr+1],gn=Xe[pr+2],vr=Xe[pr+3];Ze[Et++]=qr,Ze[Et++]=Qr,Ze[Et++]=gn,st[gt++]=vr}var Vn=this.__addimage__.arrayBufferToBinaryString(Ze);return{alpha:this.__addimage__.arrayBufferToBinaryString(st),data:Vn,index:Le,alias:je,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,Ct=$t.getCharWidthsArray=function(nt,Le){var je,Xe,tt=(Le=Le||{}).font||this.internal.getFont(),Ze=Le.fontSize||this.internal.getFontSize(),st=Le.charSpace||this.internal.getCharSpace(),Et=Le.widths?Le.widths:tt.metadata.Unicode.widths,gt=Et.fof?Et.fof:1,pr=Le.kerning?Le.kerning:tt.metadata.Unicode.kerning,qr=pr.fof?pr.fof:1,Qr=Le.doKerning!==!1,gn=0,vr=nt.length,Vn=0,kr=Et[0]||gt,Bn=[];for(je=0;je<vr;je++)Xe=nt.charCodeAt(je),typeof tt.metadata.widthOfString=="function"?Bn.push((tt.metadata.widthOfGlyph(tt.metadata.characterToGlyph(Xe))+st*(1e3/Ze)||0)/1e3):(gn=Qr&&x()(pr[Xe])==="object"&&!isNaN(parseInt(pr[Xe][Vn],10))?pr[Xe][Vn]/qr:0,Bn.push((Et[Xe]||kr)/gt+gn)),Vn=Xe;return Bn},Re=$t.getStringUnitWidth=function(nt,Le){var je=(Le=Le||{}).fontSize||this.internal.getFontSize(),Xe=Le.font||this.internal.getFont(),tt=Le.charSpace||this.internal.getCharSpace();return $t.processArabic&&(nt=$t.processArabic(nt)),typeof Xe.metadata.widthOfString=="function"?Xe.metadata.widthOfString(nt,je,tt)/je:Ct.apply(this,arguments).reduce(function(Ze,st){return Ze+st},0)},De=function(Le,je,Xe,tt){for(var Ze=[],st=0,Et=Le.length,gt=0;st!==Et&&gt+je[st]<Xe;)gt+=je[st],st++;Ze.push(Le.slice(0,st));var pr=st;for(gt=0;st!==Et;)gt+je[st]>tt&&(Ze.push(Le.slice(pr,st)),gt=0,pr=st),gt+=je[st],st++;return pr!==st&&Ze.push(Le.slice(pr,st)),Ze},Pe=function(Le,je,Xe){Xe||(Xe={});var tt,Ze,st,Et,gt,pr,qr,Qr=[],gn=[Qr],vr=Xe.textIndent||0,Vn=0,kr=0,Bn=Le.split(" "),on=Ct.apply(this,[" ",Xe])[0];if(pr=Xe.lineIndent===-1?Bn[0].length+2:Xe.lineIndent||0){var jr=Array(pr).join(" "),ai=[];Bn.map(function(Gi){(Gi=Gi.split(/\s*\n/)).length>1?ai=ai.concat(Gi.map(function(rn,Cn){return(Cn&&rn.length?`
`:"")+rn})):ai.push(Gi[0])}),Bn=ai,pr=Re.apply(this,[jr,Xe])}for(st=0,Et=Bn.length;st<Et;st++){var Oi=0;if(tt=Bn[st],pr&&tt[0]==`
`&&(tt=tt.substr(1),Oi=1),vr+Vn+(kr=(Ze=Ct.apply(this,[tt,Xe])).reduce(function(Gi,rn){return Gi+rn},0))>je||Oi){if(kr>je){for(gt=De.apply(this,[tt,Ze,je-(vr+Vn),je]),Qr.push(gt.shift()),Qr=[gt.pop()];gt.length;)gn.push([gt.shift()]);kr=Ze.slice(tt.length-(Qr[0]?Qr[0].length:0)).reduce(function(Gi,rn){return Gi+rn},0)}else Qr=[tt];gn.push(Qr),vr=kr+pr,Vn=on}else Qr.push(tt),vr+=Vn+kr,Vn=on}return qr=pr?function(Gi,rn){return(rn?jr:"")+Gi.join(" ")}:function(Gi){return Gi.join(" ")},gn.map(qr)},$t.splitTextToSize=function(nt,Le,je){var Xe,tt=(je=je||{}).fontSize||this.internal.getFontSize(),Ze=function(qr){if(qr.widths&&qr.kerning)return{widths:qr.widths,kerning:qr.kerning};var Qr=this.internal.getFont(qr.fontName,qr.fontStyle);return Qr.metadata.Unicode?{widths:Qr.metadata.Unicode.widths||{0:1},kerning:Qr.metadata.Unicode.kerning||{}}:{font:Qr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,je);Xe=Array.isArray(nt)?nt:String(nt).split(/\r?\n/);var st=1*this.internal.scaleFactor*Le/tt;Ze.textIndent=je.textIndent?1*je.textIndent*this.internal.scaleFactor/tt:0,Ze.lineIndent=je.lineIndent;var Et,gt,pr=[];for(Et=0,gt=Xe.length;Et<gt;Et++)pr=pr.concat(Pe.apply(this,[Xe[Et],st,Ze]));return pr},function(nt){nt.__fontmetrics__=nt.__fontmetrics__||{};for(var Le="klmnopqrstuvwxyz",je={},Xe={},tt=0;tt<Le.length;tt++)je[Le[tt]]="0123456789abcdef"[tt],Xe["0123456789abcdef"[tt]]=Le[tt];var Ze=function(gn){return"0x"+parseInt(gn,10).toString(16)},st=nt.__fontmetrics__.compress=function(Qr){var gn,vr,Vn,kr,Bn=["{"];for(var on in Qr){if(gn=Qr[on],isNaN(parseInt(on,10))?vr="'"+on+"'":(on=parseInt(on,10),vr=(vr=Ze(on).slice(2)).slice(0,-1)+Xe[vr.slice(-1)]),typeof gn=="number")gn<0?(Vn=Ze(gn).slice(3),kr="-"):(Vn=Ze(gn).slice(2),kr=""),Vn=kr+Vn.slice(0,-1)+Xe[Vn.slice(-1)];else{if(x()(gn)!=="object")throw new Error("Don't know what to do with value type "+x()(gn)+".");Vn=st(gn)}Bn.push(vr+Vn)}return Bn.push("}"),Bn.join("")},Et=nt.__fontmetrics__.uncompress=function(Qr){if(typeof Qr!="string")throw new Error("Invalid argument passed to uncompress.");for(var gn,vr,Vn,kr,Bn={},on=1,jr=Bn,ai=[],Oi="",Gi="",rn=Qr.length-1,Cn=1;Cn<rn;Cn+=1)(kr=Qr[Cn])=="'"?gn?(Vn=gn.join(""),gn=void 0):gn=[]:gn?gn.push(kr):kr=="{"?(ai.push([jr,Vn]),jr={},Vn=void 0):kr=="}"?((vr=ai.pop())[0][vr[1]]=jr,Vn=void 0,jr=vr[0]):kr=="-"?on=-1:Vn===void 0?je.hasOwnProperty(kr)?(Oi+=je[kr],Vn=parseInt(Oi,16)*on,on=1,Oi=""):Oi+=kr:je.hasOwnProperty(kr)?(Gi+=je[kr],jr[Vn]=parseInt(Gi,16)*on,on=1,Vn=void 0,Gi=""):Gi+=kr;return Bn},gt={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Et("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},pr={Unicode:{Courier:gt,"Courier-Bold":gt,"Courier-BoldOblique":gt,"Courier-Oblique":gt,Helvetica:gt,"Helvetica-Bold":gt,"Helvetica-BoldOblique":gt,"Helvetica-Oblique":gt,"Times-Roman":gt,"Times-Bold":gt,"Times-BoldItalic":gt,"Times-Italic":gt}},qr={Unicode:{"Courier-Oblique":Et("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Et("{'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":Et("{'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:Et("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Et("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Et("{'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:Et("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Et("{'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":Et("{'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:Et("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Et("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Et("{'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":Et("{'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":Et("{'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(Qr){var gn=Qr.font,vr=qr.Unicode[gn.postScriptName];vr&&(gn.metadata.Unicode={},gn.metadata.Unicode.widths=vr.widths,gn.metadata.Unicode.kerning=vr.kerning);var Vn=pr.Unicode[gn.postScriptName];Vn&&(gn.metadata.Unicode.encoding=Vn,gn.encoding=Vn.codePages[0])}])}(z.API),function(nt){var Le=function(Xe){for(var tt=Xe.length,Ze=new Uint8Array(tt),st=0;st<tt;st++)Ze[st]=Xe.charCodeAt(st);return Ze};nt.API.events.push(["addFont",function(je){var Xe=void 0,tt=je.font,Ze=je.instance;if(!tt.isStandardFont){if(Ze===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+tt.postScriptName+"').");if(typeof(Xe=Ze.existsFileInVFS(tt.postScriptName)===!1?Ze.loadFile(tt.postScriptName):Ze.getFileFromVFS(tt.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+tt.postScriptName+"').");!function(st,Et){Et=/^\x00\x01\x00\x00/.test(Et)?Le(Et):Le(t(Et)),st.metadata=nt.API.TTFFont.open(Et),st.metadata.Unicode=st.metadata.Unicode||{encoding:{},kerning:{},widths:[]},st.metadata.glyIdsUsed=[0]}(tt,Xe)}}])}(z),function(nt){function Le(){return(m.canvg?Promise.resolve(m.canvg):Promise.all([n.e(0),n.e(241)]).then(n.bind(null,"DXPr"))).catch(function(je){return Promise.reject(new Error("Could not load canvg: "+je))}).then(function(je){return je.default?je.default:je})}z.API.addSvgAsImage=function(je,Xe,tt,Ze,st,Et,gt,pr){if(isNaN(Xe)||isNaN(tt))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 qr=document.createElement("canvas");qr.width=Ze,qr.height=st;var Qr=qr.getContext("2d");Qr.fillStyle="#fff",Qr.fillRect(0,0,qr.width,qr.height);var gn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},vr=this;return Le().then(function(Vn){return Vn.fromString(Qr,je,gn)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Vn){return Vn.render(gn)}).then(function(){vr.addImage(qr.toDataURL("image/jpeg",1),Xe,tt,Ze,st,gt,pr)})}}(),z.API.putTotalPages=function(nt){var Le,je=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Le=new RegExp(nt,"g"),je=this.internal.getNumberOfPages()):(Le=new RegExp(this.pdfEscape16(nt,this.internal.getFont()),"g"),je=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Xe=1;Xe<=this.internal.getNumberOfPages();Xe++)for(var tt=0;tt<this.internal.pages[Xe].length;tt++)this.internal.pages[Xe][tt]=this.internal.pages[Xe][tt].replace(Le,je);return this},z.API.viewerPreferences=function(nt,Le){var je;nt=nt||{},Le=Le||!1;var Xe,tt,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}},Et=Object.keys(st),gt=[],pr=0,qr=0,Qr=0;function gn(Vn,kr){var Bn,on=!1;for(Bn=0;Bn<Vn.length;Bn+=1)Vn[Bn]===kr&&(on=!0);return on}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(st)),this.internal.viewerpreferences.isSubscribed=!1),je=this.internal.viewerpreferences.configuration,nt==="reset"||Le===!0){var vr=Et.length;for(Qr=0;Qr<vr;Qr+=1)je[Et[Qr]].value=je[Et[Qr]].defaultValue,je[Et[Qr]].explicitSet=!1}if(x()(nt)==="object"){for(tt in nt)if(Ze=nt[tt],gn(Et,tt)&&Ze!==void 0){if(je[tt].type==="boolean"&&typeof Ze=="boolean")je[tt].value=Ze;else if(je[tt].type==="name"&&gn(je[tt].valueSet,Ze))je[tt].value=Ze;else if(je[tt].type==="integer"&&Number.isInteger(Ze))je[tt].value=Ze;else if(je[tt].type==="array"){for(pr=0;pr<Ze.length;pr+=1)if(Xe=!0,Ze[pr].length===1&&typeof Ze[pr][0]=="number")gt.push(String(Ze[pr]-1));else if(Ze[pr].length>1){for(qr=0;qr<Ze[pr].length;qr+=1)typeof Ze[pr][qr]!="number"&&(Xe=!1);Xe===!0&&gt.push([Ze[pr][0]-1,Ze[pr][1]-1].join(" "))}je[tt].value="["+gt.join(" ")+"]"}else je[tt].value=je[tt].defaultValue;je[tt].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var Vn,kr=[];for(Vn in je)je[Vn].explicitSet===!0&&(je[Vn].type==="name"?kr.push("/"+Vn+" /"+je[Vn].value):kr.push("/"+Vn+" "+je[Vn].value));kr.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+kr.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=je,this},function(nt){var Le=function(){var tt='<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(tt)),Et=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),gt=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),pr=unescape(encodeURIComponent("</x:xmpmeta>")),qr=st.length+Et.length+gt.length+Ze.length+pr.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+qr+" >>"),this.internal.write("stream"),this.internal.write(Ze+st+Et+gt+pr),this.internal.write("endstream"),this.internal.write("endobj")},je=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};nt.addMetadata=function(Xe,tt){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Xe,namespaceuri:tt||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",je),this.internal.events.subscribe("postPutResources",Le)),this}}(z.API),function(nt){var Le=nt.API,je=Le.pdfEscape16=function(Ze,st){for(var Et,gt=st.metadata.Unicode.widths,pr=["","0","00","000","0000"],qr=[""],Qr=0,gn=Ze.length;Qr<gn;++Qr){if(Et=st.metadata.characterToGlyph(Ze.charCodeAt(Qr)),st.metadata.glyIdsUsed.push(Et),st.metadata.toUnicode[Et]=Ze.charCodeAt(Qr),gt.indexOf(Et)==-1&&(gt.push(Et),gt.push([parseInt(st.metadata.widthOfGlyph(Et),10)])),Et=="0")return qr.join("");Et=Et.toString(16),qr.push(pr[4-Et.length],Et)}return qr.join("")},Xe=function(st){var Et,gt,pr,qr,Qr,gn,vr;for(Qr=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,pr=[],gn=0,vr=(gt=Object.keys(st).sort(function(Vn,kr){return Vn-kr})).length;gn<vr;gn++)Et=gt[gn],pr.length>=100&&(Qr+=`
`+pr.length+` beginbfchar
`+pr.join(`
`)+`
endbfchar`,pr=[]),st[Et]!==void 0&&st[Et]!==null&&typeof st[Et].toString=="function"&&(qr=("0000"+st[Et].toString(16)).slice(-4),Et=("0000"+(+Et).toString(16)).slice(-4),pr.push("<"+Et+"><"+qr+">"));return pr.length&&(Qr+=`
`+pr.length+` beginbfchar
`+pr.join(`
`)+`
endbfchar
`),Qr+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};Le.events.push(["putFont",function(Ze){!function(st){var Et=st.font,gt=st.out,pr=st.newObject,qr=st.putStream;if(Et.metadata instanceof nt.API.TTFFont&&Et.encoding==="Identity-H"){for(var Qr=Et.metadata.Unicode.widths,gn=Et.metadata.subset.encode(Et.metadata.glyIdsUsed,1),vr="",Vn=0;Vn<gn.length;Vn++)vr+=String.fromCharCode(gn[Vn]);var kr=pr();qr({data:vr,addLength1:!0,objectId:kr}),gt("endobj");var Bn=pr();qr({data:Xe(Et.metadata.toUnicode),addLength1:!0,objectId:Bn}),gt("endobj");var on=pr();gt("<<"),gt("/Type /FontDescriptor"),gt("/FontName /"+B(Et.fontName)),gt("/FontFile2 "+kr+" 0 R"),gt("/FontBBox "+nt.API.PDFObject.convert(Et.metadata.bbox)),gt("/Flags "+Et.metadata.flags),gt("/StemV "+Et.metadata.stemV),gt("/ItalicAngle "+Et.metadata.italicAngle),gt("/Ascent "+Et.metadata.ascender),gt("/Descent "+Et.metadata.decender),gt("/CapHeight "+Et.metadata.capHeight),gt(">>"),gt("endobj");var jr=pr();gt("<<"),gt("/Type /Font"),gt("/BaseFont /"+B(Et.fontName)),gt("/FontDescriptor "+on+" 0 R"),gt("/W "+nt.API.PDFObject.convert(Qr)),gt("/CIDToGIDMap /Identity"),gt("/DW 1000"),gt("/Subtype /CIDFontType2"),gt("/CIDSystemInfo"),gt("<<"),gt("/Supplement 0"),gt("/Registry (Adobe)"),gt("/Ordering ("+Et.encoding+")"),gt(">>"),gt(">>"),gt("endobj"),Et.objectNumber=pr(),gt("<<"),gt("/Type /Font"),gt("/Subtype /Type0"),gt("/ToUnicode "+Bn+" 0 R"),gt("/BaseFont /"+B(Et.fontName)),gt("/Encoding /"+Et.encoding),gt("/DescendantFonts ["+jr+" 0 R]"),gt(">>"),gt("endobj"),Et.isAlreadyPutted=!0}}(Ze)}]),Le.events.push(["putFont",function(Ze){!function(st){var Et=st.font,gt=st.out,pr=st.newObject,qr=st.putStream;if(Et.metadata instanceof nt.API.TTFFont&&Et.encoding==="WinAnsiEncoding"){for(var Qr=Et.metadata.rawData,gn="",vr=0;vr<Qr.length;vr++)gn+=String.fromCharCode(Qr[vr]);var Vn=pr();qr({data:gn,addLength1:!0,objectId:Vn}),gt("endobj");var kr=pr();qr({data:Xe(Et.metadata.toUnicode),addLength1:!0,objectId:kr}),gt("endobj");var Bn=pr();gt("<<"),gt("/Descent "+Et.metadata.decender),gt("/CapHeight "+Et.metadata.capHeight),gt("/StemV "+Et.metadata.stemV),gt("/Type /FontDescriptor"),gt("/FontFile2 "+Vn+" 0 R"),gt("/Flags 96"),gt("/FontBBox "+nt.API.PDFObject.convert(Et.metadata.bbox)),gt("/FontName /"+B(Et.fontName)),gt("/ItalicAngle "+Et.metadata.italicAngle),gt("/Ascent "+Et.metadata.ascender),gt(">>"),gt("endobj"),Et.objectNumber=pr();for(var on=0;on<Et.metadata.hmtx.widths.length;on++)Et.metadata.hmtx.widths[on]=parseInt(Et.metadata.hmtx.widths[on]*(1e3/Et.metadata.head.unitsPerEm));gt("<</Subtype/TrueType/Type/Font/ToUnicode "+kr+" 0 R/BaseFont/"+B(Et.fontName)+"/FontDescriptor "+Bn+" 0 R/Encoding/"+Et.encoding+" /FirstChar 29 /LastChar 255 /Widths "+nt.API.PDFObject.convert(Et.metadata.hmtx.widths)+">>"),gt("endobj"),Et.isAlreadyPutted=!0}}(Ze)}]);var tt=function(st){var Et,gt=st.text||"",pr=st.x,qr=st.y,Qr=st.options||{},gn=st.mutex||{},vr=gn.pdfEscape,Vn=gn.activeFontKey,kr=gn.fonts,Bn=Vn,on="",jr=0,ai="",Oi=kr[Bn].encoding;if(kr[Bn].encoding!=="Identity-H")return{text:gt,x:pr,y:qr,options:Qr,mutex:gn};for(ai=gt,Bn=Vn,Array.isArray(gt)&&(ai=gt[0]),jr=0;jr<ai.length;jr+=1)kr[Bn].metadata.hasOwnProperty("cmap")&&(Et=kr[Bn].metadata.cmap.unicode.codeMap[ai[jr].charCodeAt(0)]),Et||ai[jr].charCodeAt(0)<256&&kr[Bn].metadata.hasOwnProperty("Unicode")?on+=ai[jr]:on+="";var Gi="";return parseInt(Bn.slice(1))<14||Oi==="WinAnsiEncoding"?Gi=vr(on,Bn).split("").map(function(rn){return rn.charCodeAt(0).toString(16)}).join(""):Oi==="Identity-H"&&(Gi=je(on,kr[Bn])),gn.isHex=!0,{text:Gi,x:pr,y:qr,options:Qr,mutex:gn}};Le.events.push(["postProcessText",function(Ze){var st=Ze.text||"",Et=[],gt={text:st,x:Ze.x,y:Ze.y,options:Ze.options,mutex:Ze.mutex};if(Array.isArray(st)){var pr=0;for(pr=0;pr<st.length;pr+=1)Array.isArray(st[pr])&&st[pr].length===3?Et.push([tt(Object.assign({},gt,{text:st[pr][0]})).text,st[pr][1],st[pr][2]]):Et.push(tt(Object.assign({},gt,{text:st[pr]})).text);Ze.text=Et}else Ze.text=tt(Object.assign({},gt,{text:st})).text}])}(z),function(nt){var Le=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};nt.existsFileInVFS=function(je){return Le.call(this),this.internal.vFS[je]!==void 0},nt.addFileToVFS=function(je,Xe){return Le.call(this),this.internal.vFS[je]=Xe,this},nt.getFileFromVFS=function(je){return Le.call(this),this.internal.vFS[je]!==void 0?this.internal.vFS[je]:null}}(z.API),function(nt){nt.__bidiEngine__=nt.prototype.__bidiEngine__=function(Xe){var tt,Ze,st,Et,gt,pr,qr,Qr=Le,gn=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],vr=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],Vn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},kr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Bn=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],on=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)$/),jr=!1,ai=0;this.__bidiEngine__={};var Oi=function(jt){var zt=jt.charCodeAt(),Lt=zt>>8,cr=kr[Lt];return cr!==void 0?Qr[256*cr+(255&zt)]:Lt===252||Lt===253?"AL":on.test(Lt)?"L":Lt===8?"R":"N"},Gi=function(jt){for(var zt,Lt=0;Lt<jt.length;Lt++){if((zt=Oi(jt.charAt(Lt)))==="L")return!1;if(zt==="R")return!0}return!1},rn=function(jt,zt,Lt,cr){var Ar,br,Pr,Xn,Pn=zt[cr];switch(Pn){case"L":case"R":jr=!1;break;case"N":case"AN":break;case"EN":jr&&(Pn="AN");break;case"AL":jr=!0,Pn="R";break;case"WS":Pn="N";break;case"CS":cr<1||cr+1>=zt.length||(Ar=Lt[cr-1])!=="EN"&&Ar!=="AN"||(br=zt[cr+1])!=="EN"&&br!=="AN"?Pn="N":jr&&(br="AN"),Pn=br===Ar?br:"N";break;case"ES":Pn=(Ar=cr>0?Lt[cr-1]:"B")==="EN"&&cr+1<zt.length&&zt[cr+1]==="EN"?"EN":"N";break;case"ET":if(cr>0&&Lt[cr-1]==="EN"){Pn="EN";break}if(jr){Pn="N";break}for(Pr=cr+1,Xn=zt.length;Pr<Xn&&zt[Pr]==="ET";)Pr++;Pn=Pr<Xn&&zt[Pr]==="EN"?"EN":"N";break;case"NSM":if(st&&!Et){for(Xn=zt.length,Pr=cr+1;Pr<Xn&&zt[Pr]==="NSM";)Pr++;if(Pr<Xn){var di=jt[cr],An=di>=1425&&di<=2303||di===64286;if(Ar=zt[Pr],An&&(Ar==="R"||Ar==="AL")){Pn="R";break}}}Pn=cr<1||(Ar=zt[cr-1])==="B"?"N":Lt[cr-1];break;case"B":jr=!1,tt=!0,Pn=ai;break;case"S":Ze=!0,Pn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":jr=!1;break;case"BN":Pn="N"}return Pn},Cn=function(jt,zt,Lt){var cr=jt.split("");return Lt&&Yn(cr,Lt,{hiLevel:ai}),cr.reverse(),zt&&zt.reverse(),cr.join("")},Yn=function(jt,zt,Lt){var cr,Ar,br,Pr,Xn,Pn=-1,di=jt.length,An=0,Ur=[],In=ai?vr:gn,Qn=[];for(jr=!1,tt=!1,Ze=!1,Ar=0;Ar<di;Ar++)Qn[Ar]=Oi(jt[Ar]);for(br=0;br<di;br++){if(Xn=An,Ur[br]=rn(jt,Qn,Ur,br),cr=240&(An=In[Xn][Vn[Ur[br]]]),An&=15,zt[br]=Pr=In[An][5],cr>0)if(cr===16){for(Ar=Pn;Ar<br;Ar++)zt[Ar]=1;Pn=-1}else Pn=-1;if(In[An][6])Pn===-1&&(Pn=br);else if(Pn>-1){for(Ar=Pn;Ar<br;Ar++)zt[Ar]=Pr;Pn=-1}Qn[br]==="B"&&(zt[br]=0),Lt.hiLevel|=Pr}Ze&&function($n,oi,Ti){for(var ki=0;ki<Ti;ki++)if($n[ki]==="S"){oi[ki]=ai;for(var Ri=ki-1;Ri>=0&&$n[Ri]==="WS";Ri--)oi[Ri]=ai}}(Qn,zt,di)},Gt=function(jt,zt,Lt,cr,Ar){if(!(Ar.hiLevel<jt)){if(jt===1&&ai===1&&!tt)return zt.reverse(),void(Lt&&Lt.reverse());for(var br,Pr,Xn,Pn,di=zt.length,An=0;An<di;){if(cr[An]>=jt){for(Xn=An+1;Xn<di&&cr[Xn]>=jt;)Xn++;for(Pn=An,Pr=Xn-1;Pn<Pr;Pn++,Pr--)br=zt[Pn],zt[Pn]=zt[Pr],zt[Pr]=br,Lt&&(br=Lt[Pn],Lt[Pn]=Lt[Pr],Lt[Pr]=br);An=Xn}An++}}},Ot=function(jt,zt,Lt){var cr=jt.split(""),Ar={hiLevel:ai};return Lt||(Lt=[]),Yn(cr,Lt,Ar),function(br,Pr,Xn){if(Xn.hiLevel!==0&&qr)for(var Pn,di=0;di<br.length;di++)Pr[di]===1&&(Pn=Bn.indexOf(br[di]))>=0&&(br[di]=Bn[Pn+1])}(cr,Lt,Ar),Gt(2,cr,zt,Lt,Ar),Gt(1,cr,zt,Lt,Ar),cr.join("")};return this.__bidiEngine__.doBidiReorder=function(Rt,jt,zt){if(function(cr,Ar){if(Ar)for(var br=0;br<cr.length;br++)Ar[br]=br;Et===void 0&&(Et=Gi(cr)),pr===void 0&&(pr=Gi(cr))}(Rt,jt),st||!gt||pr)if(st&&gt&&Et^pr)ai=Et?1:0,Rt=Cn(Rt,jt,zt);else if(!st&&gt&&pr)ai=Et?1:0,Rt=Ot(Rt,jt,zt),Rt=Cn(Rt,jt);else if(!st||Et||gt||pr){if(st&&!gt&&Et^pr)Rt=Cn(Rt,jt),Et?(ai=0,Rt=Ot(Rt,jt,zt)):(ai=1,Rt=Ot(Rt,jt,zt),Rt=Cn(Rt,jt));else if(st&&Et&&!gt&&pr)ai=1,Rt=Ot(Rt,jt,zt),Rt=Cn(Rt,jt);else if(!st&&!gt&&Et^pr){var Lt=qr;Et?(ai=1,Rt=Ot(Rt,jt,zt),ai=0,qr=!1,Rt=Ot(Rt,jt,zt),qr=Lt):(ai=0,Rt=Ot(Rt,jt,zt),Rt=Cn(Rt,jt),ai=1,qr=!1,Rt=Ot(Rt,jt,zt),qr=Lt,Rt=Cn(Rt,jt))}}else ai=0,Rt=Ot(Rt,jt,zt);else ai=Et?1:0,Rt=Ot(Rt,jt,zt);return Rt},this.__bidiEngine__.setOptions=function(Rt){Rt&&(st=Rt.isInputVisual,gt=Rt.isOutputVisual,Et=Rt.isInputRtl,pr=Rt.isOutputRtl,qr=Rt.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Xe),this.__bidiEngine__};var Le=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],je=new nt.__bidiEngine__({isInputVisual:!0});nt.API.events.push(["postProcessText",function(Xe){var tt=Xe.text,Ze=(Xe.x,Xe.y,Xe.options||{}),st=(Xe.mutex,Ze.lang,[]);if(Ze.isInputVisual=typeof Ze.isInputVisual!="boolean"||Ze.isInputVisual,je.setOptions(Ze),Object.prototype.toString.call(tt)==="[object Array]"){var Et=0;for(st=[],Et=0;Et<tt.length;Et+=1)Object.prototype.toString.call(tt[Et])==="[object Array]"?st.push([je.doBidiReorder(tt[Et][0]),tt[Et][1],tt[Et][2]]):st.push([je.doBidiReorder(tt[Et])]);Xe.text=st}else Xe.text=je.doBidiReorder(tt);je.setOptions({isInputVisual:!0})}])}(z),z.API.TTFFont=function(){function nt(Le){var je;if(this.rawData=Le,je=this.contents=new Ft(Le),this.contents.pos=4,je.readString(4)==="ttcf")throw new Error("TTCF not supported.");je.pos=0,this.parse(),this.subset=new Hi(this),this.registerTTF()}return nt.open=function(Le){return new nt(Le)},nt.prototype.parse=function(){return this.directory=new vt(this.contents),this.head=new Qt(this),this.name=new Dr(this),this.cmap=new qt(this),this.toUnicode={},this.hhea=new kt(this),this.maxp=new dn(this),this.hmtx=new yn(this),this.post=new Kr(this),this.os2=new er(this),this.loca=new Di(this),this.glyf=new ei(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 Le,je,Xe,tt,Ze;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var st,Et,gt,pr;for(pr=[],st=0,Et=(gt=this.bbox).length;st<Et;st++)Le=gt[st],pr.push(Math.round(Le*this.scaleFactor));return pr}.call(this),this.stemV=0,this.post.exists?(Xe=255&(tt=this.post.italic_angle),(32768&(je=tt>>16))!=0&&(je=-(1+(65535^je))),this.italicAngle=+(je+"."+Xe)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(Ze=this.familyClass)===1||Ze===2||Ze===3||Ze===4||Ze===5||Ze===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},nt.prototype.characterToGlyph=function(Le){var je;return((je=this.cmap.unicode)!=null?je.codeMap[Le]:void 0)||0},nt.prototype.widthOfGlyph=function(Le){var je;return je=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(Le).advance*je},nt.prototype.widthOfString=function(Le,je,Xe){var tt,Ze,st,Et;for(st=0,Ze=0,Et=(Le=""+Le).length;0<=Et?Ze<Et:Ze>Et;Ze=0<=Et?++Ze:--Ze)tt=Le.charCodeAt(Ze),st+=this.widthOfGlyph(this.characterToGlyph(tt))+Xe*(1e3/je)||0;return st*(je/1e3)},nt.prototype.lineHeight=function(Le,je){var Xe;return je==null&&(je=!1),Xe=je?this.lineGap:0,(this.ascender+Xe-this.decender)/1e3*Le},nt}();var hn,Ft=function(){function nt(Le){this.data=Le!=null?Le:[],this.pos=0,this.length=this.data.length}return nt.prototype.readByte=function(){return this.data[this.pos++]},nt.prototype.writeByte=function(Le){return this.data[this.pos++]=Le},nt.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},nt.prototype.writeUInt32=function(Le){return this.writeByte(Le>>>24&255),this.writeByte(Le>>16&255),this.writeByte(Le>>8&255),this.writeByte(255&Le)},nt.prototype.readInt32=function(){var Le;return(Le=this.readUInt32())>=2147483648?Le-4294967296:Le},nt.prototype.writeInt32=function(Le){return Le<0&&(Le+=4294967296),this.writeUInt32(Le)},nt.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},nt.prototype.writeUInt16=function(Le){return this.writeByte(Le>>8&255),this.writeByte(255&Le)},nt.prototype.readInt16=function(){var Le;return(Le=this.readUInt16())>=32768?Le-65536:Le},nt.prototype.writeInt16=function(Le){return Le<0&&(Le+=65536),this.writeUInt16(Le)},nt.prototype.readString=function(Le){var je,Xe;for(Xe=[],je=0;0<=Le?je<Le:je>Le;je=0<=Le?++je:--je)Xe[je]=String.fromCharCode(this.readByte());return Xe.join("")},nt.prototype.writeString=function(Le){var je,Xe,tt;for(tt=[],je=0,Xe=Le.length;0<=Xe?je<Xe:je>Xe;je=0<=Xe?++je:--je)tt.push(this.writeByte(Le.charCodeAt(je)));return tt},nt.prototype.readShort=function(){return this.readInt16()},nt.prototype.writeShort=function(Le){return this.writeInt16(Le)},nt.prototype.readLongLong=function(){var Le,je,Xe,tt,Ze,st,Et,gt;return Le=this.readByte(),je=this.readByte(),Xe=this.readByte(),tt=this.readByte(),Ze=this.readByte(),st=this.readByte(),Et=this.readByte(),gt=this.readByte(),128&Le?-1*(72057594037927940*(255^Le)+281474976710656*(255^je)+1099511627776*(255^Xe)+4294967296*(255^tt)+16777216*(255^Ze)+65536*(255^st)+256*(255^Et)+(255^gt)+1):72057594037927940*Le+281474976710656*je+1099511627776*Xe+4294967296*tt+16777216*Ze+65536*st+256*Et+gt},nt.prototype.writeLongLong=function(Le){var je,Xe;return je=Math.floor(Le/4294967296),Xe=4294967295&Le,this.writeByte(je>>24&255),this.writeByte(je>>16&255),this.writeByte(je>>8&255),this.writeByte(255&je),this.writeByte(Xe>>24&255),this.writeByte(Xe>>16&255),this.writeByte(Xe>>8&255),this.writeByte(255&Xe)},nt.prototype.readInt=function(){return this.readInt32()},nt.prototype.writeInt=function(Le){return this.writeInt32(Le)},nt.prototype.read=function(Le){var je,Xe;for(je=[],Xe=0;0<=Le?Xe<Le:Xe>Le;Xe=0<=Le?++Xe:--Xe)je.push(this.readByte());return je},nt.prototype.write=function(Le){var je,Xe,tt,Ze;for(Ze=[],Xe=0,tt=Le.length;Xe<tt;Xe++)je=Le[Xe],Ze.push(this.writeByte(je));return Ze},nt}(),vt=function(){var nt;function Le(je){var Xe,tt,Ze;for(this.scalarType=je.readInt(),this.tableCount=je.readShort(),this.searchRange=je.readShort(),this.entrySelector=je.readShort(),this.rangeShift=je.readShort(),this.tables={},tt=0,Ze=this.tableCount;0<=Ze?tt<Ze:tt>Ze;tt=0<=Ze?++tt:--tt)Xe={tag:je.readString(4),checksum:je.readInt(),offset:je.readInt(),length:je.readInt()},this.tables[Xe.tag]=Xe}return Le.prototype.encode=function(je){var Xe,tt,Ze,st,Et,gt,pr,qr,Qr,gn,vr,Vn,kr;for(kr in vr=Object.keys(je).length,gt=Math.log(2),Qr=16*Math.floor(Math.log(vr)/gt),st=Math.floor(Qr/gt),qr=16*vr-Qr,(tt=new Ft).writeInt(this.scalarType),tt.writeShort(vr),tt.writeShort(Qr),tt.writeShort(st),tt.writeShort(qr),Ze=16*vr,pr=tt.pos+Ze,Et=null,Vn=[],je)for(gn=je[kr],tt.writeString(kr),tt.writeInt(nt(gn)),tt.writeInt(pr),tt.writeInt(gn.length),Vn=Vn.concat(gn),kr==="head"&&(Et=pr),pr+=gn.length;pr%4;)Vn.push(0),pr++;return tt.write(Vn),Xe=2981146554-nt(tt.data),tt.pos=Et+8,tt.writeUInt32(Xe),tt.data},nt=function(Xe){var tt,Ze,st,Et;for(Xe=ti.call(Xe);Xe.length%4;)Xe.push(0);for(st=new Ft(Xe),Ze=0,tt=0,Et=Xe.length;tt<Et;tt=tt+=4)Ze+=st.readUInt32();return 4294967295&Ze},Le}(),bt={}.hasOwnProperty,fr=function(Le,je){for(var Xe in je)bt.call(je,Xe)&&(Le[Xe]=je[Xe]);function tt(){this.constructor=Le}return tt.prototype=je.prototype,Le.prototype=new tt,Le.__super__=je.prototype,Le};hn=function(){function nt(Le){var je;this.file=Le,je=this.file.directory.tables[this.tag],this.exists=!!je,je&&(this.offset=je.offset,this.length=je.length,this.parse(this.file.contents))}return 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 Qt=function(nt){function Le(){return Le.__super__.constructor.apply(this,arguments)}return fr(Le,hn),Le.prototype.tag="head",Le.prototype.parse=function(je){return je.pos=this.offset,this.version=je.readInt(),this.revision=je.readInt(),this.checkSumAdjustment=je.readInt(),this.magicNumber=je.readInt(),this.flags=je.readShort(),this.unitsPerEm=je.readShort(),this.created=je.readLongLong(),this.modified=je.readLongLong(),this.xMin=je.readShort(),this.yMin=je.readShort(),this.xMax=je.readShort(),this.yMax=je.readShort(),this.macStyle=je.readShort(),this.lowestRecPPEM=je.readShort(),this.fontDirectionHint=je.readShort(),this.indexToLocFormat=je.readShort(),this.glyphDataFormat=je.readShort()},Le.prototype.encode=function(je){var Xe;return(Xe=new Ft).writeInt(this.version),Xe.writeInt(this.revision),Xe.writeInt(this.checkSumAdjustment),Xe.writeInt(this.magicNumber),Xe.writeShort(this.flags),Xe.writeShort(this.unitsPerEm),Xe.writeLongLong(this.created),Xe.writeLongLong(this.modified),Xe.writeShort(this.xMin),Xe.writeShort(this.yMin),Xe.writeShort(this.xMax),Xe.writeShort(this.yMax),Xe.writeShort(this.macStyle),Xe.writeShort(this.lowestRecPPEM),Xe.writeShort(this.fontDirectionHint),Xe.writeShort(je),Xe.writeShort(this.glyphDataFormat),Xe.data},Le}(),Mt=function(){function nt(Le,je){var Xe,tt,Ze,st,Et,gt,pr,qr,Qr,gn,vr,Vn,kr,Bn,on,jr,ai;switch(this.platformID=Le.readUInt16(),this.encodingID=Le.readShort(),this.offset=je+Le.readInt(),Qr=Le.pos,Le.pos=this.offset,this.format=Le.readUInt16(),this.length=Le.readUInt16(),this.language=Le.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(gt=0;gt<256;++gt)this.codeMap[gt]=Le.readByte();break;case 4:for(vr=Le.readUInt16(),gn=vr/2,Le.pos+=6,Ze=function(){var Oi,Gi;for(Gi=[],gt=Oi=0;0<=gn?Oi<gn:Oi>gn;gt=0<=gn?++Oi:--Oi)Gi.push(Le.readUInt16());return Gi}(),Le.pos+=2,kr=function(){var Oi,Gi;for(Gi=[],gt=Oi=0;0<=gn?Oi<gn:Oi>gn;gt=0<=gn?++Oi:--Oi)Gi.push(Le.readUInt16());return Gi}(),pr=function(){var Oi,Gi;for(Gi=[],gt=Oi=0;0<=gn?Oi<gn:Oi>gn;gt=0<=gn?++Oi:--Oi)Gi.push(Le.readUInt16());return Gi}(),qr=function(){var Oi,Gi;for(Gi=[],gt=Oi=0;0<=gn?Oi<gn:Oi>gn;gt=0<=gn?++Oi:--Oi)Gi.push(Le.readUInt16());return Gi}(),tt=(this.length-Le.pos+this.offset)/2,Et=function(){var Oi,Gi;for(Gi=[],gt=Oi=0;0<=tt?Oi<tt:Oi>tt;gt=0<=tt?++Oi:--Oi)Gi.push(Le.readUInt16());return Gi}(),gt=on=0,ai=Ze.length;on<ai;gt=++on)for(Bn=Ze[gt],Xe=jr=Vn=kr[gt];Vn<=Bn?jr<=Bn:jr>=Bn;Xe=Vn<=Bn?++jr:--jr)qr[gt]===0?st=Xe+pr[gt]:(st=Et[qr[gt]/2+(Xe-Vn)-(gn-gt)]||0)!==0&&(st+=pr[gt]),this.codeMap[Xe]=65535&st}Le.pos=Qr}return nt.encode=function(Le,je){var Xe,tt,Ze,st,Et,gt,pr,qr,Qr,gn,vr,Vn,kr,Bn,on,jr,ai,Oi,Gi,rn,Cn,Yn,Gt,Ot,Rt,jt,zt,Lt,cr,Ar,br,Pr,Xn,Pn,di,An,Ur,In,Qn,$n,oi,Ti,ki,Ri,oa,ma;switch(Lt=new Ft,st=Object.keys(Le).sort(function(aa,ba){return aa-ba}),je){case"macroman":for(kr=0,Bn=function(){var aa=[];for(Vn=0;Vn<256;++Vn)aa.push(0);return aa}(),jr={0:0},Ze={},cr=0,Xn=st.length;cr<Xn;cr++)jr[ki=Le[tt=st[cr]]]==null&&(jr[ki]=++kr),Ze[tt]={old:Le[tt],new:jr[Le[tt]]},Bn[tt]=jr[Le[tt]];return Lt.writeUInt16(1),Lt.writeUInt16(0),Lt.writeUInt32(12),Lt.writeUInt16(0),Lt.writeUInt16(262),Lt.writeUInt16(0),Lt.write(Bn),{charMap:Ze,subtable:Lt.data,maxGlyphID:kr+1};case"unicode":for(jt=[],Qr=[],ai=0,jr={},Xe={},on=pr=null,Ar=0,Pn=st.length;Ar<Pn;Ar++)jr[Gi=Le[tt=st[Ar]]]==null&&(jr[Gi]=++ai),Xe[tt]={old:Gi,new:jr[Gi]},Et=jr[Gi]-tt,on!=null&&Et===pr||(on&&Qr.push(on),jt.push(tt),pr=Et),on=tt;for(on&&Qr.push(on),Qr.push(65535),jt.push(65535),Ot=2*(Gt=jt.length),Yn=2*Math.pow(Math.log(Gt)/Math.LN2,2),gn=Math.log(Yn/2)/Math.LN2,Cn=2*Gt-Yn,gt=[],rn=[],vr=[],Vn=br=0,di=jt.length;br<di;Vn=++br){if(Rt=jt[Vn],qr=Qr[Vn],Rt===65535){gt.push(0),rn.push(0);break}if(Rt-(zt=Xe[Rt].new)>=32768)for(gt.push(0),rn.push(2*(vr.length+Gt-Vn)),tt=Pr=Rt;Rt<=qr?Pr<=qr:Pr>=qr;tt=Rt<=qr?++Pr:--Pr)vr.push(Xe[tt].new);else gt.push(zt-Rt),rn.push(0)}for(Lt.writeUInt16(3),Lt.writeUInt16(1),Lt.writeUInt32(12),Lt.writeUInt16(4),Lt.writeUInt16(16+8*Gt+2*vr.length),Lt.writeUInt16(0),Lt.writeUInt16(Ot),Lt.writeUInt16(Yn),Lt.writeUInt16(gn),Lt.writeUInt16(Cn),oi=0,An=Qr.length;oi<An;oi++)tt=Qr[oi],Lt.writeUInt16(tt);for(Lt.writeUInt16(0),Ti=0,Ur=jt.length;Ti<Ur;Ti++)tt=jt[Ti],Lt.writeUInt16(tt);for(Ri=0,In=gt.length;Ri<In;Ri++)Et=gt[Ri],Lt.writeUInt16(Et);for(oa=0,Qn=rn.length;oa<Qn;oa++)Oi=rn[oa],Lt.writeUInt16(Oi);for(ma=0,$n=vr.length;ma<$n;ma++)kr=vr[ma],Lt.writeUInt16(kr);return{charMap:Xe,subtable:Lt.data,maxGlyphID:ai+1}}},nt}(),qt=function(nt){function Le(){return Le.__super__.constructor.apply(this,arguments)}return fr(Le,hn),Le.prototype.tag="cmap",Le.prototype.parse=function(je){var Xe,tt,Ze;for(je.pos=this.offset,this.version=je.readUInt16(),Ze=je.readUInt16(),this.tables=[],this.unicode=null,tt=0;0<=Ze?tt<Ze:tt>Ze;tt=0<=Ze?++tt:--tt)Xe=new Mt(je,this.offset),this.tables.push(Xe),Xe.isUnicode&&this.unicode==null&&(this.unicode=Xe);return!0},Le.encode=function(je,Xe){var tt,Ze;return Xe==null&&(Xe="macroman"),tt=Mt.encode(je,Xe),(Ze=new Ft).writeUInt16(0),Ze.writeUInt16(1),tt.table=Ze.data.concat(tt.subtable),tt},Le}(),kt=function(nt){function Le(){return Le.__super__.constructor.apply(this,arguments)}return fr(Le,hn),Le.prototype.tag="hhea",Le.prototype.parse=function(je){return je.pos=this.offset,this.version=je.readInt(),this.ascender=je.readShort(),this.decender=je.readShort(),this.lineGap=je.readShort(),this.advanceWidthMax=je.readShort(),this.minLeftSideBearing=je.readShort(),this.minRightSideBearing=je.readShort(),this.xMaxExtent=je.readShort(),this.caretSlopeRise=je.readShort(),this.caretSlopeRun=je.readShort(),this.caretOffset=je.readShort(),je.pos+=8,this.metricDataFormat=je.readShort(),this.numberOfMetrics=je.readUInt16()},Le}(),er=function(nt){function Le(){return Le.__super__.constructor.apply(this,arguments)}return fr(Le,hn),Le.prototype.tag="OS/2",Le.prototype.parse=function(je){if(je.pos=this.offset,this.version=je.readUInt16(),this.averageCharWidth=je.readShort(),this.weightClass=je.readUInt16(),this.widthClass=je.readUInt16(),this.type=je.readShort(),this.ySubscriptXSize=je.readShort(),this.ySubscriptYSize=je.readShort(),this.ySubscriptXOffset=je.readShort(),this.ySubscriptYOffset=je.readShort(),this.ySuperscriptXSize=je.readShort(),this.ySuperscriptYSize=je.readShort(),this.ySuperscriptXOffset=je.readShort(),this.ySuperscriptYOffset=je.readShort(),this.yStrikeoutSize=je.readShort(),this.yStrikeoutPosition=je.readShort(),this.familyClass=je.readShort(),this.panose=function(){var Xe,tt;for(tt=[],Xe=0;Xe<10;++Xe)tt.push(je.readByte());return tt}(),this.charRange=function(){var Xe,tt;for(tt=[],Xe=0;Xe<4;++Xe)tt.push(je.readInt());return tt}(),this.vendorID=je.readString(4),this.selection=je.readShort(),this.firstCharIndex=je.readShort(),this.lastCharIndex=je.readShort(),this.version>0&&(this.ascent=je.readShort(),this.descent=je.readShort(),this.lineGap=je.readShort(),this.winAscent=je.readShort(),this.winDescent=je.readShort(),this.codePageRange=function(){var Xe,tt;for(tt=[],Xe=0;Xe<2;Xe=++Xe)tt.push(je.readInt());return tt}(),this.version>1))return this.xHeight=je.readShort(),this.capHeight=je.readShort(),this.defaultChar=je.readShort(),this.breakChar=je.readShort(),this.maxContext=je.readShort()},Le}(),Kr=function(nt){function Le(){return Le.__super__.constructor.apply(this,arguments)}return fr(Le,hn),Le.prototype.tag="post",Le.prototype.parse=function(je){var Xe,tt,Ze;switch(je.pos=this.offset,this.format=je.readInt(),this.italicAngle=je.readInt(),this.underlinePosition=je.readShort(),this.underlineThickness=je.readShort(),this.isFixedPitch=je.readInt(),this.minMemType42=je.readInt(),this.maxMemType42=je.readInt(),this.minMemType1=je.readInt(),this.maxMemType1=je.readInt(),this.format){case 65536:break;case 131072:var st;for(tt=je.readUInt16(),this.glyphNameIndex=[],st=0;0<=tt?st<tt:st>tt;st=0<=tt?++st:--st)this.glyphNameIndex.push(je.readUInt16());for(this.names=[],Ze=[];je.pos<this.offset+this.length;)Xe=je.readByte(),Ze.push(this.names.push(je.readString(Xe)));return Ze;case 151552:return tt=je.readUInt16(),this.offsets=je.read(tt);case 196608:break;case 262144:return this.map=function(){var Et,gt,pr;for(pr=[],st=Et=0,gt=this.file.maxp.numGlyphs;0<=gt?Et<gt:Et>gt;st=0<=gt?++Et:--Et)pr.push(je.readUInt32());return pr}.call(this)}},Le}(),Ir=function(Le,je){this.raw=Le,this.length=Le.length,this.platformID=je.platformID,this.encodingID=je.encodingID,this.languageID=je.languageID},Dr=function(nt){function Le(){return Le.__super__.constructor.apply(this,arguments)}return fr(Le,hn),Le.prototype.tag="name",Le.prototype.parse=function(je){var Xe,tt,Ze,st,Et,gt,pr,qr,Qr,gn,vr;for(je.pos=this.offset,je.readShort(),Xe=je.readShort(),gt=je.readShort(),tt=[],st=0;0<=Xe?st<Xe:st>Xe;st=0<=Xe?++st:--st)tt.push({platformID:je.readShort(),encodingID:je.readShort(),languageID:je.readShort(),nameID:je.readShort(),length:je.readShort(),offset:this.offset+gt+je.readShort()});for(pr={},st=Qr=0,gn=tt.length;Qr<gn;st=++Qr)Ze=tt[st],je.pos=Ze.offset,qr=je.readString(Ze.length),Et=new Ir(qr,Ze),pr[vr=Ze.nameID]==null&&(pr[vr]=[]),pr[Ze.nameID].push(Et);this.strings=pr,this.copyright=pr[0],this.fontFamily=pr[1],this.fontSubfamily=pr[2],this.uniqueSubfamily=pr[3],this.fontName=pr[4],this.version=pr[5];try{this.postscriptName=pr[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(Vn){this.postscriptName=pr[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=pr[7],this.manufacturer=pr[8],this.designer=pr[9],this.description=pr[10],this.vendorUrl=pr[11],this.designerUrl=pr[12],this.license=pr[13],this.licenseUrl=pr[14],this.preferredFamily=pr[15],this.preferredSubfamily=pr[17],this.compatibleFull=pr[18],this.sampleText=pr[19]},Le}(),dn=function(nt){function Le(){return Le.__super__.constructor.apply(this,arguments)}return fr(Le,hn),Le.prototype.tag="maxp",Le.prototype.parse=function(je){return je.pos=this.offset,this.version=je.readInt(),this.numGlyphs=je.readUInt16(),this.maxPoints=je.readUInt16(),this.maxContours=je.readUInt16(),this.maxCompositePoints=je.readUInt16(),this.maxComponentContours=je.readUInt16(),this.maxZones=je.readUInt16(),this.maxTwilightPoints=je.readUInt16(),this.maxStorage=je.readUInt16(),this.maxFunctionDefs=je.readUInt16(),this.maxInstructionDefs=je.readUInt16(),this.maxStackElements=je.readUInt16(),this.maxSizeOfInstructions=je.readUInt16(),this.maxComponentElements=je.readUInt16(),this.maxComponentDepth=je.readUInt16()},Le}(),yn=function(nt){function Le(){return Le.__super__.constructor.apply(this,arguments)}return fr(Le,hn),Le.prototype.tag="hmtx",Le.prototype.parse=function(je){var Xe,tt,Ze,st,Et,gt,pr;for(je.pos=this.offset,this.metrics=[],Xe=0,gt=this.file.hhea.numberOfMetrics;0<=gt?Xe<gt:Xe>gt;Xe=0<=gt?++Xe:--Xe)this.metrics.push({advance:je.readUInt16(),lsb:je.readInt16()});for(Ze=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var qr,Qr;for(Qr=[],Xe=qr=0;0<=Ze?qr<Ze:qr>Ze;Xe=0<=Ze?++qr:--qr)Qr.push(je.readInt16());return Qr}(),this.widths=function(){var qr,Qr,gn,vr;for(vr=[],qr=0,Qr=(gn=this.metrics).length;qr<Qr;qr++)st=gn[qr],vr.push(st.advance);return vr}.call(this),tt=this.widths[this.widths.length-1],pr=[],Xe=Et=0;0<=Ze?Et<Ze:Et>Ze;Xe=0<=Ze?++Et:--Et)pr.push(this.widths.push(tt));return pr},Le.prototype.forGlyph=function(je){return je in this.metrics?this.metrics[je]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[je-this.metrics.length]}},Le}(),ti=[].slice,ei=function(nt){function Le(){return Le.__super__.constructor.apply(this,arguments)}return fr(Le,hn),Le.prototype.tag="glyf",Le.prototype.parse=function(){return this.cache={}},Le.prototype.glyphFor=function(je){var Xe,tt,Ze,st,Et,gt,pr,qr,Qr,gn;return je in this.cache?this.cache[je]:(st=this.file.loca,Xe=this.file.contents,tt=st.indexOf(je),(Ze=st.lengthOf(je))===0?this.cache[je]=null:(Xe.pos=this.offset+tt,Et=(gt=new Ft(Xe.read(Ze))).readShort(),qr=gt.readShort(),gn=gt.readShort(),pr=gt.readShort(),Qr=gt.readShort(),this.cache[je]=Et===-1?new Ei(gt,qr,gn,pr,Qr):new fi(gt,Et,qr,gn,pr,Qr),this.cache[je]))},Le.prototype.encode=function(je,Xe,tt){var Ze,st,Et,gt,pr;for(Et=[],st=[],gt=0,pr=Xe.length;gt<pr;gt++)Ze=je[Xe[gt]],st.push(Et.length),Ze&&(Et=Et.concat(Ze.encode(tt)));return st.push(Et.length),{table:Et,offsets:st}},Le}(),fi=function(){function nt(Le,je,Xe,tt,Ze,st){this.raw=Le,this.numberOfContours=je,this.xMin=Xe,this.yMin=tt,this.xMax=Ze,this.yMax=st,this.compound=!1}return nt.prototype.encode=function(){return this.raw.data},nt}(),Ei=function(){function nt(Le,je,Xe,tt,Ze){var st,Et;for(this.raw=Le,this.xMin=je,this.yMin=Xe,this.xMax=tt,this.yMax=Ze,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],st=this.raw;Et=st.readShort(),this.glyphOffsets.push(st.pos),this.glyphIDs.push(st.readUInt16()),32&Et;)st.pos+=1&Et?4:2,128&Et?st.pos+=8:64&Et?st.pos+=4:8&Et&&(st.pos+=2)}return nt.prototype.encode=function(){var Le,je,Xe;for(je=new Ft(ti.call(this.raw.data)),Le=0,Xe=this.glyphIDs.length;Le<Xe;++Le)je.pos=this.glyphOffsets[Le];return je.data},nt}(),Di=function(nt){function Le(){return Le.__super__.constructor.apply(this,arguments)}return fr(Le,hn),Le.prototype.tag="loca",Le.prototype.parse=function(je){var Xe,tt;return je.pos=this.offset,Xe=this.file.head.indexToLocFormat,this.offsets=Xe===0?function(){var Ze,st;for(st=[],tt=0,Ze=this.length;tt<Ze;tt+=2)st.push(2*je.readUInt16());return st}.call(this):function(){var Ze,st;for(st=[],tt=0,Ze=this.length;tt<Ze;tt+=4)st.push(je.readUInt32());return st}.call(this)},Le.prototype.indexOf=function(je){return this.offsets[je]},Le.prototype.lengthOf=function(je){return this.offsets[je+1]-this.offsets[je]},Le.prototype.encode=function(je,Xe){for(var tt=new Uint32Array(this.offsets.length),Ze=0,st=0,Et=0;Et<tt.length;++Et)if(tt[Et]=Ze,st<Xe.length&&Xe[st]==Et){++st,tt[Et]=Ze;var gt=this.offsets[Et],pr=this.offsets[Et+1]-gt;pr>0&&(Ze+=pr)}for(var qr=new Array(4*tt.length),Qr=0;Qr<tt.length;++Qr)qr[4*Qr+3]=255&tt[Qr],qr[4*Qr+2]=(65280&tt[Qr])>>8,qr[4*Qr+1]=(16711680&tt[Qr])>>16,qr[4*Qr]=(4278190080&tt[Qr])>>24;return qr},Le}(),Hi=function(){function nt(Le){this.font=Le,this.subset={},this.unicodes={},this.next=33}return nt.prototype.generateCmap=function(){var Le,je,Xe,tt,Ze;for(je in tt=this.font.cmap.tables[0].codeMap,Le={},Ze=this.subset)Xe=Ze[je],Le[je]=tt[Xe];return Le},nt.prototype.glyphsFor=function(Le){var je,Xe,tt,Ze,st,Et,gt;for(tt={},st=0,Et=Le.length;st<Et;st++)tt[Ze=Le[st]]=this.font.glyf.glyphFor(Ze);for(Ze in je=[],tt)((Xe=tt[Ze])!=null?Xe.compound:void 0)&&je.push.apply(je,Xe.glyphIDs);if(je.length>0)for(Ze in gt=this.glyphsFor(je))Xe=gt[Ze],tt[Ze]=Xe;return tt},nt.prototype.encode=function(Le,je){var Xe,tt,Ze,st,Et,gt,pr,qr,Qr,gn,vr,Vn,kr,Bn,on;for(tt in Xe=qt.encode(this.generateCmap(),"unicode"),st=this.glyphsFor(Le),vr={0:0},on=Xe.charMap)vr[(gt=on[tt]).old]=gt.new;for(Vn in gn=Xe.maxGlyphID,st)Vn in vr||(vr[Vn]=gn++);return qr=function(jr){var ai,Oi;for(ai in Oi={},jr)Oi[jr[ai]]=ai;return Oi}(vr),Qr=Object.keys(qr).sort(function(jr,ai){return jr-ai}),kr=function(){var jr,ai,Oi;for(Oi=[],jr=0,ai=Qr.length;jr<ai;jr++)Et=Qr[jr],Oi.push(qr[Et]);return Oi}(),Ze=this.font.glyf.encode(st,kr,vr),pr=this.font.loca.encode(Ze.offsets,kr),Bn={cmap:this.font.cmap.raw(),glyf:Ze.table,loca:pr,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(je)},this.font.os2.exists&&(Bn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(Bn)},nt}();z.API.PDFObject=function(){var nt;function Le(){}return nt=function(Xe,tt){return(Array(tt+1).join("0")+Xe).slice(-tt)},Le.convert=function(je){var Xe,tt,Ze,st;if(Array.isArray(je))return"["+function(){var Et,gt,pr;for(pr=[],Et=0,gt=je.length;Et<gt;Et++)Xe=je[Et],pr.push(Le.convert(Xe));return pr}().join(" ")+"]";if(typeof je=="string")return"/"+je;if(je!=null?je.isString:void 0)return"("+je+")";if(je instanceof Date)return"(D:"+nt(je.getUTCFullYear(),4)+nt(je.getUTCMonth(),2)+nt(je.getUTCDate(),2)+nt(je.getUTCHours(),2)+nt(je.getUTCMinutes(),2)+nt(je.getUTCSeconds(),2)+"Z)";if({}.toString.call(je)==="[object Object]"){for(tt in Ze=["<<"],je)st=je[tt],Ze.push("/"+tt+" "+Le.convert(st));return Ze.push(">>"),Ze.join(`
`)}return""+je},Le}(),D.default=z}.call(this,n("yLpj"))},e4Nc:function(k,D,n){var y=n("fGT3"),p=n("k+1r"),x=n("JHgL"),v=n("pSRY"),m=n("H8j4");function f(d){var u=-1,o=d==null?0:d.length;for(this.clear();++u<o;){var i=d[u];this.set(i[0],i[1])}}f.prototype.clear=y,f.prototype.delete=p,f.prototype.get=x,f.prototype.has=v,f.prototype.set=m,k.exports=f},e5VY:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("YNAk"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},e5cp:function(k,D,n){var y=n("fmRc"),p=n("or5M"),x=n("HDyB"),v=n("seXi"),m=n("QqLw"),f=n("Z0cm"),d=n("DSRE"),u=n("c6wG"),o=1,i="[object Arguments]",t="[object Array]",s="[object Object]",e=Object.prototype,l=e.hasOwnProperty;function r(a,c,h,g,A,b){var S=f(a),E=f(c),C=S?t:m(a),_=E?t:m(c);C=C==i?s:C,_=_==i?s:_;var T=C==s,w=_==s,O=C==_;if(O&&d(a)){if(!d(c))return!1;S=!0,T=!1}if(O&&!T)return b||(b=new y),S||u(a)?p(a,c,h,g,A,b):x(a,c,C,h,g,A,b);if(!(h&o)){var I=T&&l.call(a,"__wrapped__"),R=w&&l.call(c,"__wrapped__");if(I||R){var M=I?a.value():a,B=R?c.value():c;return b||(b=new y),A(M,B,h,g,b)}}return O?(b||(b=new y),v(a,c,h,g,A,b)):!1}k.exports=r},e7zE:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("3y9D"),n("WYAk"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.Base,m=x.WordArray,f=p.algo,d=f.SHA1,u=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,s){for(var e=this.cfg,l=u.create(e.hasher,t),r=m.create(),a=m.create([1]),c=r.words,h=a.words,g=e.keySize,A=e.iterations;c.length<g;){var b=l.update(s).finalize(a);l.reset();for(var S=b.words,E=S.length,C=b,_=1;_<A;_++){C=l.finalize(C),l.reset();for(var T=C.words,w=0;w<E;w++)S[w]^=T[w]}r.concat(b),h[0]++}return r.sigBytes=g*4,r}});p.PBKDF2=function(i,t,s){return o.create(s).compute(i,t)}}(),y.PBKDF2})},eIcI:function(k,D,n){var y=n("bYtY"),p=n("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;k.exports=v},eJH7:function(k,D,n){var y=n("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)})}k.exports=p},eP3c:function(k,D,n){"use strict";function y(Ge){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(Ge)}Object.defineProperty(D,"__esModule",{value:!0}),D.inflateReset=fe,D.inflateReset2=Se,D.inflateResetKeep=Be,D.inflateInit=rt,D.inflateInit2=ke,D.inflate=Xt,D.inflateEnd=hr,D.inflateGetHeader=Jt,D.inflateSetDictionary=Pt,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(n("6BzB")),x=d(n("xlC8")),v=d(n("QV2g")),m=d(n("sjKO")),f=d(n("JSwD"));function d(Ge){return Ge&&Ge.__esModule?Ge:{default:Ge}}function u(){if(typeof WeakMap!="function")return null;var Ge=new WeakMap;return u=function(){return Ge},Ge}function o(Ge){if(Ge&&Ge.__esModule)return Ge;if(Ge===null||y(Ge)!=="object"&&typeof Ge!="function")return{default:Ge};var pe=u();if(pe&&pe.has(Ge))return pe.get(Ge);var se={},lt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var qe in Ge)if(Object.prototype.hasOwnProperty.call(Ge,qe)){var me=lt?Object.getOwnPropertyDescriptor(Ge,qe):null;me&&(me.get||me.set)?Object.defineProperty(se,qe,me):se[qe]=Ge[qe]}return se.default=Ge,pe&&pe.set(Ge,se),se}var i=0,t=1,s=2,e=4;D.Z_FINISH=e;var l=5;D.Z_BLOCK=l;var r=6;D.Z_TREES=r;var a=0;D.Z_OK=a;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 S=-5;D.Z_BUF_ERROR=S;var E=8;D.Z_DEFLATED=E;var C=1,_=2,T=3,w=4,O=5,I=6,R=7,M=8,B=9,P=10,X=11,F=12,j=13,K=14,z=15,V=16,Q=17,G=18,te=19,q=20,le=21,re=22,we=23,Ie=24,Me=25,Je=26,Ve=27,ut=28,Fe=29,ae=30,at=31,he=32,J=852,Y=592,$=15,de=$;function be(Ge){return(Ge>>>24&255)+(Ge>>>8&65280)+((Ge&65280)<<8)+((Ge&255)<<24)}function 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 Be(Ge){var pe;return!Ge||!Ge.state?g:(pe=Ge.state,Ge.total_in=Ge.total_out=pe.total=0,Ge.msg="",pe.wrap&&(Ge.adler=pe.wrap&1),pe.mode=C,pe.last=0,pe.havedict=0,pe.dmax=32768,pe.head=null,pe.hold=0,pe.bits=0,pe.lencode=pe.lendyn=new p.Buf32(J),pe.distcode=pe.distdyn=new p.Buf32(Y),pe.sane=1,pe.back=-1,a)}function fe(Ge){var pe;return!Ge||!Ge.state?g:(pe=Ge.state,pe.wsize=0,pe.whave=0,pe.wnext=0,Be(Ge))}function Se(Ge,pe){var se,lt;return!Ge||!Ge.state?g:(lt=Ge.state,pe<0?(se=0,pe=-pe):(se=(pe>>4)+1,pe<48&&(pe&=15)),pe&&(pe<8||pe>15)?g:(lt.window!==null&&lt.wbits!==pe&&(lt.window=null),lt.wrap=se,lt.wbits=pe,fe(Ge)))}function ke(Ge,pe){var se,lt;return Ge?(lt=new Ce,Ge.state=lt,lt.window=null,se=Se(Ge,pe),se!==a&&(Ge.state=null),se):g}function rt(Ge){return ke(Ge,de)}var xt=!0,ht,He;function ir(Ge){if(xt){var pe;for(ht=new p.Buf32(512),He=new p.Buf32(32),pe=0;pe<144;)Ge.lens[pe++]=8;for(;pe<256;)Ge.lens[pe++]=9;for(;pe<280;)Ge.lens[pe++]=7;for(;pe<288;)Ge.lens[pe++]=8;for((0,f.default)(t,Ge.lens,0,288,ht,0,Ge.work,{bits:9}),pe=0;pe<32;)Ge.lens[pe++]=5;(0,f.default)(s,Ge.lens,0,32,He,0,Ge.work,{bits:5}),xt=!1}Ge.lencode=ht,Ge.lenbits=9,Ge.distcode=He,Ge.distbits=5}function ct(Ge,pe,se,lt){var qe,me=Ge.state;return me.window===null&&(me.wsize=1<<me.wbits,me.wnext=0,me.whave=0,me.window=new p.Buf8(me.wsize)),lt>=me.wsize?(p.arraySet(me.window,pe,se-me.wsize,me.wsize,0),me.wnext=0,me.whave=me.wsize):(qe=me.wsize-me.wnext,qe>lt&&(qe=lt),p.arraySet(me.window,pe,se-lt,qe,me.wnext),lt-=qe,lt?(p.arraySet(me.window,pe,se-lt,lt,0),me.wnext=lt,me.whave=me.wsize):(me.wnext+=qe,me.wnext===me.wsize&&(me.wnext=0),me.whave<me.wsize&&(me.whave+=qe))),0}function Xt(Ge,pe){var se,lt,qe,me,Ht,yr,At,rr,ur,vn,Bt,sr,Yt,pt,it=0,Fr,cn,_n,Kn,gi,Mn,Un,$t,Ct=new p.Buf8(4),Re,De,Pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Ge||!Ge.state||!Ge.output||!Ge.input&&Ge.avail_in!==0)return g;se=Ge.state,se.mode===F&&(se.mode=j),Ht=Ge.next_out,qe=Ge.output,At=Ge.avail_out,me=Ge.next_in,lt=Ge.input,yr=Ge.avail_in,rr=se.hold,ur=se.bits,vn=yr,Bt=At,$t=a;e:for(;;)switch(se.mode){case C:if(se.wrap===0){se.mode=j;break}for(;ur<16;){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}if(se.wrap&2&&rr===35615){se.check=0,Ct[0]=rr&255,Ct[1]=rr>>>8&255,se.check=(0,v.default)(se.check,Ct,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){Ge.msg="incorrect header check",se.mode=ae;break}if((rr&15)!==E){Ge.msg="unknown compression method",se.mode=ae;break}if(rr>>>=4,ur-=4,Un=(rr&15)+8,se.wbits===0)se.wbits=Un;else if(Un>se.wbits){Ge.msg="invalid window size",se.mode=ae;break}se.dmax=1<<Un,Ge.adler=se.check=1,se.mode=rr&512?P:F,rr=0,ur=0;break;case _:for(;ur<16;){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}if(se.flags=rr,(se.flags&255)!==E){Ge.msg="unknown compression method",se.mode=ae;break}if(se.flags&57344){Ge.msg="unknown header flags set",se.mode=ae;break}se.head&&(se.head.text=rr>>8&1),se.flags&512&&(Ct[0]=rr&255,Ct[1]=rr>>>8&255,se.check=(0,v.default)(se.check,Ct,2,0)),rr=0,ur=0,se.mode=T;case T:for(;ur<32;){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}se.head&&(se.head.time=rr),se.flags&512&&(Ct[0]=rr&255,Ct[1]=rr>>>8&255,Ct[2]=rr>>>16&255,Ct[3]=rr>>>24&255,se.check=(0,v.default)(se.check,Ct,4,0)),rr=0,ur=0,se.mode=w;case w:for(;ur<16;){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}se.head&&(se.head.xflags=rr&255,se.head.os=rr>>8),se.flags&512&&(Ct[0]=rr&255,Ct[1]=rr>>>8&255,se.check=(0,v.default)(se.check,Ct,2,0)),rr=0,ur=0,se.mode=O;case O:if(se.flags&1024){for(;ur<16;){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}se.length=rr,se.head&&(se.head.extra_len=rr),se.flags&512&&(Ct[0]=rr&255,Ct[1]=rr>>>8&255,se.check=(0,v.default)(se.check,Ct,2,0)),rr=0,ur=0}else se.head&&(se.head.extra=null);se.mode=I;case I:if(se.flags&1024&&(sr=se.length,sr>yr&&(sr=yr),sr&&(se.head&&(Un=se.head.extra_len-se.length,se.head.extra||(se.head.extra=new Array(se.head.extra_len)),p.arraySet(se.head.extra,lt,me,sr,Un)),se.flags&512&&(se.check=(0,v.default)(se.check,lt,sr,me)),yr-=sr,me+=sr,se.length-=sr),se.length))break e;se.length=0,se.mode=R;case R:if(se.flags&2048){if(yr===0)break e;sr=0;do Un=lt[me+sr++],se.head&&Un&&se.length<65536&&(se.head.name+=String.fromCharCode(Un));while(Un&&sr<yr);if(se.flags&512&&(se.check=(0,v.default)(se.check,lt,sr,me)),yr-=sr,me+=sr,Un)break e}else se.head&&(se.head.name=null);se.length=0,se.mode=M;case M:if(se.flags&4096){if(yr===0)break e;sr=0;do Un=lt[me+sr++],se.head&&Un&&se.length<65536&&(se.head.comment+=String.fromCharCode(Un));while(Un&&sr<yr);if(se.flags&512&&(se.check=(0,v.default)(se.check,lt,sr,me)),yr-=sr,me+=sr,Un)break e}else se.head&&(se.head.comment=null);se.mode=B;case B:if(se.flags&512){for(;ur<16;){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}if(rr!==(se.check&65535)){Ge.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),Ge.adler=se.check=0,se.mode=F;break;case P:for(;ur<32;){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}Ge.adler=se.check=be(rr),rr=0,ur=0,se.mode=X;case X:if(se.havedict===0)return Ge.next_out=Ht,Ge.avail_out=At,Ge.next_in=me,Ge.avail_in=yr,se.hold=rr,se.bits=ur,h;Ge.adler=se.check=1,se.mode=F;case F:if(pe===l||pe===r)break e;case j:if(se.last){rr>>>=ur&7,ur-=ur&7,se.mode=Ve;break}for(;ur<3;){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}se.last=rr&1,rr>>>=1,ur-=1;switch(rr&3){case 0:se.mode=K;break;case 1:if(ir(se),se.mode=q,pe===r){rr>>>=2,ur-=2;break e}break;case 2:se.mode=Q;break;case 3:Ge.msg="invalid block type",se.mode=ae}rr>>>=2,ur-=2;break;case K:for(rr>>>=ur&7,ur-=ur&7;ur<32;){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}if((rr&65535)!==(rr>>>16^65535)){Ge.msg="invalid stored block lengths",se.mode=ae;break}if(se.length=rr&65535,rr=0,ur=0,se.mode=z,pe===r)break e;case z:se.mode=V;case V:if(sr=se.length,sr){if(sr>yr&&(sr=yr),sr>At&&(sr=At),sr===0)break e;p.arraySet(qe,lt,me,sr,Ht),yr-=sr,me+=sr,At-=sr,Ht+=sr,se.length-=sr;break}se.mode=F;break;case Q:for(;ur<14;){if(yr===0)break e;yr--,rr+=lt[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){Ge.msg="too many length or distance symbols",se.mode=ae;break}se.have=0,se.mode=G;case G:for(;se.have<se.ncode;){for(;ur<3;){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}se.lens[Pe[se.have++]]=rr&7,rr>>>=3,ur-=3}for(;se.have<19;)se.lens[Pe[se.have++]]=0;if(se.lencode=se.lendyn,se.lenbits=7,Re={bits:se.lenbits},$t=(0,f.default)(i,se.lens,0,19,se.lencode,0,se.work,Re),se.lenbits=Re.bits,$t){Ge.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(;!(it=se.lencode[rr&(1<<se.lenbits)-1],Fr=it>>>24,cn=it>>>16&255,_n=it&65535,Fr<=ur);){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}if(_n<16)rr>>>=Fr,ur-=Fr,se.lens[se.have++]=_n;else{if(_n===16){for(De=Fr+2;ur<De;){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}if(rr>>>=Fr,ur-=Fr,se.have===0){Ge.msg="invalid bit length repeat",se.mode=ae;break}Un=se.lens[se.have-1],sr=3+(rr&3),rr>>>=2,ur-=2}else if(_n===17){for(De=Fr+3;ur<De;){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}rr>>>=Fr,ur-=Fr,Un=0,sr=3+(rr&7),rr>>>=3,ur-=3}else{for(De=Fr+7;ur<De;){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}rr>>>=Fr,ur-=Fr,Un=0,sr=11+(rr&127),rr>>>=7,ur-=7}if(se.have+sr>se.nlen+se.ndist){Ge.msg="invalid bit length repeat",se.mode=ae;break}for(;sr--;)se.lens[se.have++]=Un}}if(se.mode===ae)break;if(se.lens[256]===0){Ge.msg="invalid code -- missing end-of-block",se.mode=ae;break}if(se.lenbits=9,Re={bits:se.lenbits},$t=(0,f.default)(t,se.lens,0,se.nlen,se.lencode,0,se.work,Re),se.lenbits=Re.bits,$t){Ge.msg="invalid literal/lengths set",se.mode=ae;break}if(se.distbits=6,se.distcode=se.distdyn,Re={bits:se.distbits},$t=(0,f.default)(s,se.lens,se.nlen,se.ndist,se.distcode,0,se.work,Re),se.distbits=Re.bits,$t){Ge.msg="invalid distances set",se.mode=ae;break}if(se.mode=q,pe===r)break e;case q:se.mode=le;case le:if(yr>=6&&At>=258){Ge.next_out=Ht,Ge.avail_out=At,Ge.next_in=me,Ge.avail_in=yr,se.hold=rr,se.bits=ur,(0,m.default)(Ge,Bt),Ht=Ge.next_out,qe=Ge.output,At=Ge.avail_out,me=Ge.next_in,lt=Ge.input,yr=Ge.avail_in,rr=se.hold,ur=se.bits,se.mode===F&&(se.back=-1);break}for(se.back=0;!(it=se.lencode[rr&(1<<se.lenbits)-1],Fr=it>>>24,cn=it>>>16&255,_n=it&65535,Fr<=ur);){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}if(cn&&(cn&240)===0){for(Kn=Fr,gi=cn,Mn=_n;!(it=se.lencode[Mn+((rr&(1<<Kn+gi)-1)>>Kn)],Fr=it>>>24,cn=it>>>16&255,_n=it&65535,Kn+Fr<=ur);){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}rr>>>=Kn,ur-=Kn,se.back+=Kn}if(rr>>>=Fr,ur-=Fr,se.back+=Fr,se.length=_n,cn===0){se.mode=Je;break}if(cn&32){se.back=-1,se.mode=F;break}if(cn&64){Ge.msg="invalid literal/length code",se.mode=ae;break}se.extra=cn&15,se.mode=re;case re:if(se.extra){for(De=se.extra;ur<De;){if(yr===0)break e;yr--,rr+=lt[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=we;case we:for(;!(it=se.distcode[rr&(1<<se.distbits)-1],Fr=it>>>24,cn=it>>>16&255,_n=it&65535,Fr<=ur);){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}if((cn&240)===0){for(Kn=Fr,gi=cn,Mn=_n;!(it=se.distcode[Mn+((rr&(1<<Kn+gi)-1)>>Kn)],Fr=it>>>24,cn=it>>>16&255,_n=it&65535,Kn+Fr<=ur);){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}rr>>>=Kn,ur-=Kn,se.back+=Kn}if(rr>>>=Fr,ur-=Fr,se.back+=Fr,cn&64){Ge.msg="invalid distance code",se.mode=ae;break}se.offset=_n,se.extra=cn&15,se.mode=Ie;case Ie:if(se.extra){for(De=se.extra;ur<De;){if(yr===0)break e;yr--,rr+=lt[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){Ge.msg="invalid distance too far back",se.mode=ae;break}se.mode=Me;case Me:if(At===0)break e;if(sr=Bt-At,se.offset>sr){if(sr=se.offset-sr,sr>se.whave&&se.sane){Ge.msg="invalid distance too far back",se.mode=ae;break}sr>se.wnext?(sr-=se.wnext,Yt=se.wsize-sr):Yt=se.wnext-sr,sr>se.length&&(sr=se.length),pt=se.window}else pt=qe,Yt=Ht-se.offset,sr=se.length;sr>At&&(sr=At),At-=sr,se.length-=sr;do qe[Ht++]=pt[Yt++];while(--sr);se.length===0&&(se.mode=le);break;case Je:if(At===0)break e;qe[Ht++]=se.length,At--,se.mode=le;break;case Ve:if(se.wrap){for(;ur<32;){if(yr===0)break e;yr--,rr|=lt[me++]<<ur,ur+=8}if(Bt-=At,Ge.total_out+=Bt,se.total+=Bt,Bt&&(Ge.adler=se.check=se.flags?(0,v.default)(se.check,qe,Bt,Ht-Bt):(0,x.default)(se.check,qe,Bt,Ht-Bt)),Bt=At,(se.flags?rr:be(rr))!==se.check){Ge.msg="incorrect data check",se.mode=ae;break}rr=0,ur=0}se.mode=ut;case ut:if(se.wrap&&se.flags){for(;ur<32;){if(yr===0)break e;yr--,rr+=lt[me++]<<ur,ur+=8}if(rr!==(se.total&4294967295)){Ge.msg="incorrect length check",se.mode=ae;break}rr=0,ur=0}se.mode=Fe;case Fe:$t=c;break e;case ae:$t=A;break e;case at:return b;case he:default:return g}return Ge.next_out=Ht,Ge.avail_out=At,Ge.next_in=me,Ge.avail_in=yr,se.hold=rr,se.bits=ur,(se.wsize||Bt!==Ge.avail_out&&se.mode<ae&&(se.mode<Ve||pe!==e))&&ct(Ge,Ge.output,Ge.next_out,Bt-Ge.avail_out)?(se.mode=at,b):(vn-=Ge.avail_in,Bt-=Ge.avail_out,Ge.total_in+=vn,Ge.total_out+=Bt,se.total+=Bt,se.wrap&&Bt&&(Ge.adler=se.check=se.flags?(0,v.default)(se.check,qe,Bt,Ge.next_out-Bt):(0,x.default)(se.check,qe,Bt,Ge.next_out-Bt)),Ge.data_type=se.bits+(se.last?64:0)+(se.mode===F?128:0)+(se.mode===q||se.mode===z?256:0),(vn===0&&Bt===0||pe===e)&&$t===a&&($t=S),$t)}function hr(Ge){if(!Ge||!Ge.state)return g;var pe=Ge.state;return pe.window&&(pe.window=null),Ge.state=null,a}function Jt(Ge,pe){var se;return!Ge||!Ge.state?g:(se=Ge.state,(se.wrap&2)===0?g:(se.head=pe,pe.done=!1,a))}function Pt(Ge,pe){var se=pe.length,lt,qe,me;return!Ge||!Ge.state?g:(lt=Ge.state,lt.wrap!==0&&lt.mode!==X?g:lt.mode===X&&(qe=1,qe=(0,x.default)(qe,pe,se,0),qe!==lt.check)?A:(me=ct(Ge,pe,se,se),me?(lt.mode=at,b):(lt.havedict=1,a)))}var Wt="pako inflate (from Nodeca project)";D.inflateInfo=Wt},ePAk:function(k,D,n){var y=n("ProS");n("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%"}});k.exports=p},eRkO:function(k,D,n){var y=n("+TT/"),p=y.getLayoutRect,x=y.box,v=y.positionElement,m=n("7aKB"),f=n("IwbS");function d(o,i,t){var s=i.getBoxLayoutParams(),e=i.get("padding"),l={width:t.getWidth(),height:t.getHeight()},r=p(s,l,e);x(i.get("orient"),o,i.get("itemGap"),r.width,r.height),v(o,s,l,e)}function u(o,i){var t=m.normalizeCssArray(i.get("padding")),s=i.getItemStyle(["color","opacity"]);s.fill=i.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:i.get("borderRadius")},style:s,silent:!0,z2:-1});return o}D.layout=d,D.makeBackground=u},eS4l:function(k,D,n){n("HM/N"),n("FNN5")},ebwN:function(k,D,n){var y=n("Cwc5"),p=n("Kz5y"),x=y(p,"Map");k.exports=x},ekgI:function(k,D,n){var y=n("YESw"),p=Object.prototype,x=p.hasOwnProperty;function v(m){var f=this.__data__;return y?f[m]!==void 0:x.call(f,m)}k.exports=v},ewwo:function(k,D,n){var y=n("bMXI"),p=n("+TT/"),x=p.getLayoutRect,v=n("4mN7");function m(d,u,o){var i=d.getBoxLayoutParams();return i.aspect=o,x(i,{width:u.getWidth(),height:u.getHeight()})}function f(d,u){var o=[];return d.eachSeriesByType("graph",function(i){var t=i.get("coordinateSystem");if(!t||t==="view"){var s=i.getData(),e=s.mapArray(function(E){var C=s.getItemModel(E);return[+C.get("x"),+C.get("y")]}),l=[],r=[];v.fromPoints(e,l,r),r[0]-l[0]===0&&(r[0]+=1,l[0]-=1),r[1]-l[1]===0&&(r[1]+=1,l[1]-=1);var a=(r[0]-l[0])/(r[1]-l[1]),c=m(i,u,a);isNaN(a)&&(l=[c.x,c.y],r=[c.x+c.width,c.y+c.height]);var h=r[0]-l[0],g=r[1]-l[1],A=c.width,b=c.height,S=i.coordinateSystem=new y;S.zoomLimit=i.get("scaleLimit"),S.setBoundingRect(l[0],l[1],h,g),S.setViewRect(c.x,c.y,A,b),S.setCenter(i.get("center")),S.setZoom(i.get("zoom")),o.push(S)}}),o}k.exports=f},f1nB:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),v=n("bYtY"),m=n("4NO4"),f=n("IwbS"),d=n("+TT/"),u=n("OELB"),o=u.parsePercent,i={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 S=this.option,E=(b?S:A).elements,C=S.elements=b?[]:S.elements,_=[];this._flatten(E,_);var T=m.mappingToExists(C,_);m.makeIdAndName(T);var w=this._elOptionsToUpdate=[];v.each(T,function(I,R){var M=I.option;if(!M)return;w.push(M),a(I,M),c(C,R,M),h(C[R],M)},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,S){v.each(A,function(E){if(!E)return;S&&(E.parentOption=S),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,S){A!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=A,this._updateElements(A),this._relocate(A,S)},_updateElements:function(A){var b=A.useElOptionsToUpdate();if(!b)return;var S=this._elMap,E=this.group;v.each(b,function(C){var _=C.$action,T=C.id,w=S.get(T),O=C.parentId,I=O!=null?S.get(O):E,R=C.style;C.type==="text"&&R&&(C.hv&&C.hv[1]&&(R.textVerticalAlign=R.textBaseline=null),!R.hasOwnProperty("textFill")&&R.fill&&(R.textFill=R.fill),!R.hasOwnProperty("textStroke")&&R.stroke&&(R.textStroke=R.stroke));var M=l(C);!_||_==="merge"?w?w.attr(M):s(T,I,M,S):_==="replace"?(e(w,S),s(T,I,M,S)):_==="remove"&&e(w,S);var B=S.get(T);B&&(B.__ecGraphicWidthOption=C.width,B.__ecGraphicHeightOption=C.height,g(B,A,C))})},_relocate:function(A,b){for(var S=A.option.elements,E=this.group,C=this._elMap,_=b.getWidth(),T=b.getHeight(),w=0;w<S.length;w++){var O=S[w],I=C.get(O.id);if(!I||!I.isGroup)continue;var R=I.parent,M=R===E;I.__ecGraphicWidth=o(I.__ecGraphicWidthOption,M?_:R.__ecGraphicWidth)||0,I.__ecGraphicHeight=o(I.__ecGraphicHeightOption,M?T:R.__ecGraphicHeight)||0}for(var w=S.length-1;w>=0;w--){var O=S[w],I=C.get(O.id);if(!I)continue;var R=I.parent,B=R===E?{width:_,height:T}:{width:R.__ecGraphicWidth,height:R.__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 s(A,b,S,E){var C=S.type,_=i.hasOwnProperty(C)?i[C]:f.getShapeClass(C),T=new _(S);b.add(T),E.set(A,T),T.__ecGraphicId=A}function e(A,b){var S=A&&A.parent;S&&(A.type==="group"&&A.traverse(function(E){e(E,b)}),b.removeKey(A.__ecGraphicId),S.remove(A))}function l(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 S;return v.each(b,function(E){A[E]!=null&&A[E]!=="auto"&&(S=!0)}),S}function a(A,b){var S=A.exist;if(b.id=A.keyInfo.id,!b.type&&S&&(b.type=S.type),b.parentId==null){var E=b.parentOption;E?b.parentId=E.id:S&&(b.parentId=S.parentId)}b.parentOption=null}function c(A,b,S){var E=v.extend({},S),C=A[b],_=S.$action||"merge";_==="merge"?C?(v.merge(C,E,!0),d.mergeLayoutParam(C,E,{ignoreSize:!0}),d.copyLayoutParams(S,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,S){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(k,D,n){n("aTJb"),n("OlYY"),n("fc+c"),n("oY9F"),n("MqEG"),n("LBfv"),n("noeP")},f5HG:function(k,D,n){var y=n("IwbS"),p=n("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,u){this[m(u)?"_buildPathLine":"_buildPathCurve"](d,u)},_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 u=this.shape,o=m(u)?[u.x2-u.x1,u.y2-u.y1]:this._tangentAtCurve(d);return p.normalize(o,o)},_tangentAtCurve:v.tangentAt});k.exports=f},f5Yq:function(k,D,n){var y=n("bYtY"),p=y.isFunction;function x(v,m,f){return{seriesType:v,performRawSeries:!0,reset:function(d,u,o){var i=d.getData(),t=d.get("symbol"),s=d.get("symbolSize"),e=d.get("symbolKeepAspect"),l=d.get("symbolRotate"),r=p(t),a=p(s),c=p(l),h=r||a||c,g=!r&&t?t:m,A=a?null:s,b=c?null:b;if(i.setVisual({legendSymbol:f||g,symbol:g,symbolSize:A,symbolKeepAspect:e,symbolRotate:l}),u.isSeriesFiltered(d))return;function S(E,C){if(h){var _=d.getRawValue(C),T=d.getDataParams(C);r&&E.setItemVisual(C,"symbol",t(_,T)),a&&E.setItemVisual(C,"symbolSize",s(_,T)),c&&E.setItemVisual(C,"symbolRotate",l(_,T))}if(E.hasItemOption){var w=E.getItemModel(C),O=w.getShallow("symbol",!0),I=w.getShallow("symbolSize",!0),R=w.getShallow("symbolRotate",!0),M=w.getShallow("symbolKeepAspect",!0);O!=null&&E.setItemVisual(C,"symbol",O),I!=null&&E.setItemVisual(C,"symbolSize",I),R!=null&&E.setItemVisual(C,"symbolRotate",R),M!=null&&E.setItemVisual(C,"symbolKeepAspect",M)}}return{dataEach:i.hasItemOption||h?S:null}}}}k.exports=x},fE02:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("/IIm"),v=n("vZ6x"),m=n("b9oc"),f=n("72pK"),d=n("Kagy"),u=n("IUWy");n("3TkU");var o=d.toolbox.dataZoom,i=p.each,t="\0_ec_\0toolbox-dataZoom_";function s(g,A,b){(this._brushController=new x(b.getZr())).on("brush",p.bind(this._onBrush,this)).mount(),this._isZoomActive}s.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=s.prototype;e.render=function(g,A,b,S){this.model=g,this.ecModel=A,this.api=b,c(g,A,this,S,b),a(g,A)},e.onclick=function(g,A,b){l[b].call(this)},e.remove=function(g,A){this._brushController.unmount()},e.dispose=function(g,A){this._brushController.dispose()};var l={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={},S=this.ecModel;this._brushController.updateCovers([]);var E=new v(r(this.model.option),S,{include:["grid"]});E.matchOutputRanges(g,S,function(T,w,O){if(O.type!=="cartesian2d")return;var I=T.brushType;I==="rect"?(C("x",O,w[0]),C("y",O,w[1])):C({lineX:"x",lineY:"y"}[I],O,w)}),m.push(S,b),this._dispatchZoomAction(b);function C(T,w,O){var I=w.getAxis(T),R=I.model,M=_(T,R,S),B=M.findRepresentativeAxisProxy(R).getMinMaxSpan();(B.minValueSpan!=null||B.maxValueSpan!=null)&&(O=f(0,O.slice(),I.scale.getExtent(),0,B.minValueSpan,B.maxValueSpan)),M&&(b[M.id]={dataZoomId:M.id,startValue:O[0],endValue:O[1]})}function _(T,w,O){var I;return O.eachComponent({mainType:"dataZoom",subType:"select"},function(R){var M=R.getAxisModel(T,w.componentIndex);M&&(I=R)}),I}},e._dispatchZoomAction=function(g){var A=[];i(g,function(b,S){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 a(g,A){g.setIconStatus("back",m.count(A)>1?"emphasis":"normal")}function c(g,A,b,S,E){var C=b._isZoomActive;S&&S.type==="takeGlobalCursor"&&(C=S.key==="dataZoomSelect"?S.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)}u.register("dataZoom",s),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 S=b.feature.dataZoom;E("xAxis",S),E("yAxis",S)}function E(_,T){if(!T)return;var w=_+"Index",O=T[w];O!=null&&O!=="all"&&!p.isArray(O)&&(O=O===!1||O==="none"?[]:[O]),C(_,function(I,R){if(O!=null&&O!=="all"&&p.indexOf(O,R)===-1)return;var M={type:"select",$fromToolbox:!0,filterMode:T.filterMode||"filter",id:t+_+R};M[w]=R,A.push(M)})}function C(_,T){var w=g[_];p.isArray(w)||(w=w?[w]:[]),i(w,T)}});var h=s;k.exports=h},fGT3:function(k,D,n){var y=n("4kuk"),p=n("Xi7e"),x=n("ebwN");function v(){this.size=0,this.__data__={hash:new y,map:new(x||p),string:new y}}k.exports=v},fNCr:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("tSko"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},"fR/l":function(k,D,n){var y=n("CH3K"),p=n("Z0cm");function x(v,m,f){var d=m(v);return p(v)?d:y(d,f(v))}k.exports=x},fUL4:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("r+aA"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},fW2E:function(k,D){var n={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function y(p,x,v){return n.hasOwnProperty(x)?v*=p.dpr:v}k.exports=y},"fc+c":function(k,D,n){var y=n("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,u){var o=v.getComponent(d.axis,u);if(o){var i=o.getCoordSysModel();i&&f(i,o,m[i.mainType]||(m[i.mainType]=[]),i.componentIndex)}},this);function f(d,u,o,i){for(var t,s=0;s<o.length;s++)if(o[s].model===d){t=o[s];break}t||o.push(t={model:d,axisModels:[],coordIndex:i}),t.axisModels.push(u)}return m}});k.exports=p},fjKi:function(k,D,n){var y=n("ProS");n("Q7if"),n("jndi"),y.registerPreprocessor(function(p){p.markArea=p.markArea||{}})},fls0:function(k,D,n){var y=n("bYtY"),p=n("QBsz"),x=n("oVpE"),v=n("f5HG"),m=n("IwbS"),f=n("OELB"),d=f.round,u=["fromSymbol","toSymbol"];function o(c){return"_"+c+"Type"}function i(c,h,g){var A=h.getItemVisual(g,"color"),b=h.getItemVisual(g,c),S=h.getItemVisual(g,c+"Size");if(!b||b==="none")return;y.isArray(S)||(S=[S,S]);var E=x.createSymbol(b,-S[0]/2,-S[1]/2,S[0],S[1],A);return E.name=c,E}function t(c){var h=new v({name:"line",subPixelOptimize:!0});return s(h.shape,c),h}function s(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,S=this.parent;S;)S.scale&&(b/=S.scale[0]),S=S.parent;var E=c.childOfName("line");if(!this.__dirty&&!E.__dirty)return;var C=E.shape.percent,_=E.pointAt(0),T=E.pointAt(C),w=p.sub([],T,_);if(p.normalize(w,w),h){h.attr("position",_);var O=E.tangentAt(0);h.attr("rotation",Math.PI/2-Math.atan2(O[1],O[0])),h.attr("scale",[b*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,R,M,B,P=A.__labelDistance,X=P[0]*b,F=P[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 G;switch(A.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":G=-F,M="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":G=F,M="top";break;default:G=0,M="middle"}switch(A.__position){case"end":I=[w[0]*X+T[0],w[1]*F+T[1]],R=w[0]>.8?"left":w[0]<-.8?"right":"center",M=w[1]>.8?"top":w[1]<-.8?"bottom":"middle";break;case"start":I=[-w[0]*X+_[0],-w[1]*F+_[1]],R=w[0]>.8?"right":w[0]<-.8?"left":"center",M=w[1]>.8?"bottom":w[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":I=[X*V+_[0],_[1]+G],R=O[0]<0?"right":"left",B=[-X*V,-G];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":I=[z[0],z[1]+G],R="center",B=[0,-G];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":I=[-X*V+T[0],T[1]+G],R=O[0]>=0?"right":"left",B=[X*V,-G];break}A.attr({style:{textVerticalAlign:A.__verticalAlign||M,textAlign:A.__textAlign||R},position:I,scale:[b,b],origin:B})}}function l(c,h,g){m.Group.call(this),this._createLine(c,h,g)}var r=l.prototype;r.beforeUpdate=e,r._createLine=function(c,h,g){var A=c.hostModel,b=c.getItemLayout(h),S=t(b);S.shape.percent=0,m.initProps(S,{shape:{percent:1}},A,h),this.add(S);var E=new m.Text({name:"label",lineLabelOriginalOpacity:1});this.add(E),y.each(u,function(C){var _=i(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"),S=c.getItemLayout(h),E={shape:{}};s(E.shape,S),m.updateProps(b,E,A,h),y.each(u,function(C){var _=c.getItemVisual(h,C),T=o(C);if(this[T]!==_){this.remove(this.childOfName(C));var w=i(C,c,h);this.add(w)}this[T]=_},this),this._updateCommonStl(c,h,g)},r._updateCommonStl=function(c,h,g){var A=c.hostModel,b=this.childOfName("line"),S=g&&g.lineStyle,E=g&&g.hoverLineStyle,C=g&&g.labelModel,_=g&&g.hoverLabelModel;if(!g||c.hasItemOption){var T=c.getItemModel(h);S=T.getModel("lineStyle").getLineStyle(),E=T.getModel("emphasis.lineStyle").getLineStyle(),C=T.getModel("label"),_=T.getModel("emphasis.label")}var w=c.getItemVisual(h,"color"),O=y.retrieve3(c.getItemVisual(h,"opacity"),S.opacity,1);b.useStyle(y.defaults({strokeNoScale:!0,fill:"none",stroke:w,opacity:O},S)),b.hoverStyle=E,y.each(u,function(V){var Q=this.childOfName(V);Q&&(Q.setColor(w),Q.setStyle({opacity:O}))},this);var I=C.getShallow("show"),R=_.getShallow("show"),M=this.childOfName("label"),B,P;if((I||R)&&(B=w||"#000",P=A.getFormattedLabel(h,"normal",c.dataType),P==null)){var X=A.getRawValue(h);P=X==null?c.getName(h):isFinite(X)?d(X):X}var F=I?P:null,j=R?y.retrieve2(A.getFormattedLabel(h,"emphasis",c.dataType),P):null,K=M.style;if(F!=null||j!=null){m.setTextStyle(M.style,C,{text:F},{autoColor:B}),M.__textAlign=K.textAlign,M.__verticalAlign=K.textVerticalAlign,M.__position=C.get("position")||"middle";var z=C.get("distance");y.isArray(z)||(z=[z,z]),M.__labelDistance=z}j!=null?M.hoverStyle={text:j,textFill:_.getTextColor(!0),fontStyle:_.getShallow("fontStyle"),fontWeight:_.getShallow("fontWeight"),fontSize:_.getShallow("fontSize"),fontFamily:_.getShallow("fontFamily")}:M.hoverStyle={text:null},M.ignore=!I&&!R,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");s(h.shape,c),h.dirty()},y.inherits(l,m.Group);var a=l;k.exports=a},fmMI:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),v=x.each,m=x.filter,f=x.map,d=x.isArray,u=x.indexOf,o=x.isObject,i=x.isString,t=x.createHashMap,s=x.assert,e=x.clone,l=x.merge,r=x.extend,a=x.mixin,c=n("4NO4"),h=n("Qxkt"),g=n("bLfw"),A=n("iXHM"),b=n("5Hur"),S=n("D5nY"),E=S.resetSourceDefaulter,C="\0_ec_inner",_=h.extend({init:function(F,j,K,z){K=K||{},this.option=null,this._theme=new h(K),this._optionManager=z},setOption:function(F,j){s(!(C in F),"please use chart.getOption()"),this._optionManager.setOption(F,j),this.resetOption(null)},resetOption:function(F){var j=!1,K=this._optionManager;if(!F||F==="recreate"){var z=K.mountOption(F==="recreate");!this.option||F==="recreate"?O.call(this,z):(this.restoreData(),this.mergeOption(z)),j=!0}if((F==="timeline"||F==="media")&&this.restoreData(),!F||F==="recreate"||F==="timeline"){var V=K.getTimelineOption(this);V&&(this.mergeOption(V),j=!0)}if(!F||F==="recreate"||F==="media"){var Q=K.getMediaOption(this,this._api);Q.length&&v(Q,function(G){this.mergeOption(G,j=!0)},this)}return j},mergeOption:function(F){var j=this.option,K=this._componentsMap,z=[];E(this),v(F,function(Q,G){if(Q==null)return;g.hasClass(G)?G&&z.push(G):j[G]=j[G]==null?e(Q):l(j[G],Q,!0)}),g.topologicalTravel(z,g.getAllClassMainTypes(),V,this);function V(Q,G){var te=c.normalizeToArray(F[Q]),q=c.mappingToExists(K.get(Q),te);c.makeIdAndName(q),v(q,function(re,we){var Ie=re.option;o(Ie)&&(re.keyInfo.mainType=Q,re.keyInfo.subType=R(Q,Ie,re.exist))});var le=I(K,G);j[Q]=[],K.set(Q,[]),v(q,function(re,we){var Ie=re.exist,Me=re.option;if(s(o(Me)||Ie,"Empty component definition"),!Me)Ie.mergeOption({},this),Ie.optionUpdated({},!1);else{var Je=g.getClass(Q,re.keyInfo.subType,!0);if(Ie&&Ie.constructor===Je)Ie.name=re.keyInfo.name,Ie.mergeOption(Me,this),Ie.optionUpdated(Me,!1);else{var Ve=r({dependentModels:le,componentIndex:we},re.keyInfo);Ie=new Je(Me,this,this,Ve),r(Ie,Ve),Ie.init(Me,this,this,Ve),Ie.optionUpdated(null,!0)}}K.get(Q)[we]=Ie,j[Q][we]=Ie.option},this),Q==="series"&&M(this,K.get("series"))}this._seriesIndicesMap=t(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var F=e(this.option);return v(F,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);F[K]=j}}),delete F[C],F},getTheme:function(){return this._theme},getComponent:function(F,j){var K=this._componentsMap.get(F);if(K)return K[j||0]},queryComponents:function(F){var j=F.mainType;if(!j)return[];var K=F.index,z=F.id,V=F.name,Q=this._componentsMap.get(j);if(!Q||!Q.length)return[];var G;if(K!=null)d(K)||(K=[K]),G=m(f(K,function(le){return Q[le]}),function(le){return!!le});else if(z!=null){var te=d(z);G=m(Q,function(le){return te&&u(z,le.id)>=0||!te&&le.id===z})}else if(V!=null){var q=d(V);G=m(Q,function(le){return q&&u(V,le.name)>=0||!q&&le.name===V})}else G=Q.slice();return B(G,F)},findComponents:function(F){var j=F.query,K=F.mainType,z=Q(j),V=z?this.queryComponents(z):this._componentsMap.get(K);return G(B(V,F));function Q(te){var q=K+"Index",le=K+"Id",re=K+"Name";return te&&(te[q]!=null||te[le]!=null||te[re]!=null)?{mainType:K,index:te[q],id:te[le],name:te[re]}:null}function G(te){return F.filter?m(te,F.filter):te}},eachComponent:function(F,j,K){var z=this._componentsMap;if(typeof F=="function")K=j,j=F,z.each(function(Q,G){v(Q,function(te,q){j.call(K,G,te,q)})});else if(i(F))v(z.get(F),j,K);else if(o(F)){var V=this.findComponents(F);v(V,j,K)}},getSeriesByName:function(F){var j=this._componentsMap.get("series");return m(j,function(K){return K.name===F})},getSeriesByIndex:function(F){return this._componentsMap.get("series")[F]},getSeriesByType:function(F){var j=this._componentsMap.get("series");return m(j,function(K){return K.subType===F})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(F,j){P(this),v(this._seriesIndices,function(K){var z=this._componentsMap.get("series")[K];F.call(j,z,K)},this)},eachRawSeries:function(F,j){v(this._componentsMap.get("series"),F,j)},eachSeriesByType:function(F,j,K){P(this),v(this._seriesIndices,function(z){var V=this._componentsMap.get("series")[z];V.subType===F&&j.call(K,V,z)},this)},eachRawSeriesByType:function(F,j,K){return v(this.getSeriesByType(F),j,K)},isSeriesFiltered:function(F){return P(this),this._seriesIndicesMap.get(F.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(F,j){P(this);var K=m(this._componentsMap.get("series"),F,j);M(this,K)},restoreData:function(F){var j=this._componentsMap;M(this,j.get("series"));var K=[];j.each(function(z,V){K.push(V)}),g.topologicalTravel(K,g.getAllClassMainTypes(),function(z,V){v(j.get(z),function(Q){(z!=="series"||!T(Q,F))&&Q.restoreData()})})}});function T(F,j){if(j){var K=j.seiresIndex,z=j.seriesId,V=j.seriesName;return K!=null&&F.componentIndex!==K||z!=null&&F.id!==z||V!=null&&F.name!==V}}function w(F,j){var K=F.color&&!F.colorLayer;v(j,function(z,V){if(V==="colorLayer"&&K)return;g.hasClass(V)||(typeof z=="object"?F[V]=F[V]?l(F[V],z,!1):e(z):F[V]==null&&(F[V]=z))})}function O(F){F=F,this.option={},this.option[C]=1,this._componentsMap=t({series:[]}),this._seriesIndices,this._seriesIndicesMap,w(F,this._theme.option),l(F,A,!1),this.mergeOption(F)}function I(F,j){d(j)||(j=j?[j]:[]);var K={};return v(j,function(z){K[z]=(F.get(z)||[]).slice()}),K}function R(F,j,K){var z=j.type?j.type:K?K.subType:g.determineSubType(F,j);return z}function M(F,j){F._seriesIndicesMap=t(F._seriesIndices=f(j,function(K){return K.componentIndex})||[])}function B(F,j){return j.hasOwnProperty("subType")?m(F,function(K){return K.subType===j.subType}):F}function P(F){}a(_,b);var X=_;k.exports=X},fmRc:function(k,D,n){var y=n("Xi7e"),p=n("77Zs"),x=n("L8xA"),v=n("gCq4"),m=n("VaNO"),f=n("0Cz8");function d(u){var o=this.__data__=new y(u);this.size=o.size}d.prototype.clear=p,d.prototype.delete=x,d.prototype.get=v,d.prototype.has=m,d.prototype.set=f,k.exports=d},ftKO:function(k,D){var n="__lodash_hash_undefined__";function y(p){return this.__data__.set(p,n),this}k.exports=y},fyUT:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),v=n.n(x),m=n("q1tI"),f=n.n(m),d=n("TSYQ"),u=n.n(d),o=n("Ff2n"),i=n("rePB"),t=n("1OyB"),s=n("vuIU"),e=n("Ji7U"),l=n("md7G"),r=n("foSv"),a=n("4IlW");function c(G,te){var q=Object.keys(G);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(G);te&&(le=le.filter(function(re){return Object.getOwnPropertyDescriptor(G,re).enumerable})),q.push.apply(q,le)}return q}function h(G){for(var te=1;te<arguments.length;te++){var q=arguments[te]!=null?arguments[te]:{};te%2?c(Object(q),!0).forEach(function(le){Object(i.a)(G,le,q[le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(q)):c(Object(q)).forEach(function(le){Object.defineProperty(G,le,Object.getOwnPropertyDescriptor(q,le))})}return G}function g(G){var te=A();return function(){var le=Object(r.a)(G),re;if(te){var we=Object(r.a)(this).constructor;re=Reflect.construct(le,arguments,we)}else re=le.apply(this,arguments);return Object(l.a)(this,re)}}function A(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(G){return!1}}function b(){}function S(G){G.preventDefault()}var E=function(te){return te.replace(/[^\w.-]+/g,"")},C=200,_=600,T=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,w=function(te){return te!=null},O=function(te,q){return q===te||typeof q=="number"&&typeof te=="number"&&isNaN(q)&&isNaN(te)},I=function(G){Object(e.a)(q,G);var te=g(q);function q(le){var re;Object(t.a)(this,q),re=te.call(this,le),re.onKeyDown=function(Me){var Je=re.props,Ve=Je.onKeyDown,ut=Je.onPressEnter;if(Me.keyCode===a.a.UP){var Fe=re.getRatio(Me);re.up(Me,Fe,null),re.stop()}else if(Me.keyCode===a.a.DOWN){var ae=re.getRatio(Me);re.down(Me,ae,null),re.stop()}else Me.keyCode===a.a.ENTER&&ut&&ut(Me);if(re.recordCursorPosition(),re.lastKeyCode=Me.keyCode,Ve){for(var at=arguments.length,he=new Array(at>1?at-1:0),J=1;J<at;J++)he[J-1]=arguments[J];Ve.apply(void 0,[Me].concat(he))}},re.onKeyUp=function(Me){var Je=re.props.onKeyUp;if(re.stop(),re.recordCursorPosition(),Je){for(var Ve=arguments.length,ut=new Array(Ve>1?Ve-1:0),Fe=1;Fe<Ve;Fe++)ut[Fe-1]=arguments[Fe];Je.apply(void 0,[Me].concat(ut))}},re.onChange=function(Me){var Je=re.props.onChange;re.state.focused&&(re.inputting=!0),re.rawInput=re.props.parser(re.getValueFromEvent(Me)),re.setState({inputValue:re.rawInput}),Je(re.toNumber(re.rawInput))},re.onMouseUp=function(){var Me=re.props.onMouseUp;re.recordCursorPosition(),Me&&Me.apply(void 0,arguments)},re.onFocus=function(){var Me;re.setState({focused:!0}),(Me=re.props).onFocus.apply(Me,arguments)},re.onBlur=function(){var Me=re.props.onBlur;re.inputting=!1,re.setState({focused:!1});var Je=re.getCurrentValidValue(re.state.inputValue),Ve=re.setValue(Je,b);if(Me){var ut=re.input.value,Fe=re.getInputDisplayValue({focus:!1,value:Ve});re.input.value=Fe&&Number(Fe),Me.apply(void 0,arguments),re.input.value=ut}},re.getRatio=function(Me){var Je=1;return Me.metaKey||Me.ctrlKey?Je=.1:Me.shiftKey&&(Je=10),Je},re.getFullNum=function(Me){return isNaN(Me)?Me:/e/i.test(String(Me))?Number(Me).toFixed(18).replace(/\.?0+$/,""):Me},re.getPrecision=function(Me){if(w(re.props.precision))return re.props.precision;var Je=String(Me);if(Je.indexOf("e-")>=0)return parseInt(Je.slice(Je.indexOf("e-")+2),10);var Ve=0;return Je.indexOf(".")>=0&&(Ve=Je.length-Je.indexOf(".")-1),Ve},re.getInputDisplayValue=function(Me){var Je=Me||re.state,Ve=Je.focused,ut=Je.inputValue,Fe=Je.value,ae;Ve?ae=ut:ae=re.toPrecisionAsStep(Fe),ae==null&&(ae="");var at=re.formatWrapper(ae);return w(re.props.decimalSeparator)&&(at=at.toString().replace(".",re.props.decimalSeparator)),at},re.recordCursorPosition=function(){try{re.cursorStart=re.input.selectionStart,re.cursorEnd=re.input.selectionEnd,re.currentValue=re.input.value,re.cursorBefore=re.input.value.substring(0,re.cursorStart),re.cursorAfter=re.input.value.substring(re.cursorEnd)}catch(Me){}},re.restoreByAfter=function(Me){if(Me===void 0)return!1;var Je=re.input.value,Ve=Je.lastIndexOf(Me);if(Ve===-1)return!1;var ut=re.cursorBefore.length;return re.lastKeyCode===a.a.DELETE&&re.cursorBefore.charAt(ut-1)===Me[0]?(re.fixCaret(ut,ut),!0):Ve+Me.length===Je.length?(re.fixCaret(Ve,Ve),!0):!1},re.partRestoreByAfter=function(Me){return Me===void 0?!1:Array.prototype.some.call(Me,function(Je,Ve){var ut=Me.substring(Ve);return re.restoreByAfter(ut)})},re.isNotCompleteNumber=function(Me){return isNaN(Me)||Me===""||Me===null||Me&&Me.toString().indexOf(".")===Me.toString().length-1},re.stop=function(){re.autoStepTimer&&clearTimeout(re.autoStepTimer)},re.down=function(Me,Je,Ve){re.pressingUpOrDown=!0,re.step("down",Me,Je,Ve)},re.up=function(Me,Je,Ve){re.pressingUpOrDown=!0,re.step("up",Me,Je,Ve)},re.saveInput=function(Me){re.input=Me};var we=le.value;we===void 0&&(we=le.defaultValue),re.state={focused:le.autoFocus};var Ie=re.getValidValue(re.toNumber(we));return re.state=h(h({},re.state),{},{inputValue:re.toPrecisionAsStep(Ie),value:Ie}),re}return Object(s.a)(q,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(re){var we=this.props,Ie=we.value,Me=we.onChange,Je=we.max,Ve=we.min,ut=this.state.focused;if(re){if(!O(re.value,Ie)||!O(re.max,Je)||!O(re.min,Ve)){var Fe=ut?Ie:this.getValidValue(Ie),ae;this.pressingUpOrDown?ae=Fe:this.inputting?ae=this.rawInput:ae=this.toPrecisionAsStep(Fe),this.setState({value:Fe,inputValue:ae})}var at="value"in this.props?Ie:this.state.value;"max"in this.props&&re.max!==Je&&typeof at=="number"&&at>Je&&Me&&Me(Je),"min"in this.props&&re.min!==Ve&&typeof at=="number"&&at<Ve&&Me&&Me(Ve)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var he=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===a.a.BACKSPACE?he=this.cursorStart-1:this.lastKeyCode===a.a.DELETE&&(he=this.cursorStart):he=this.input.value.length,this.fixCaret(he,he)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case a.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case a.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(J){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(re){var we=re;return we===""?we="":this.isNotCompleteNumber(parseFloat(we))?we=this.state.value:we=this.getValidValue(we),this.toNumber(we)}},{key:"getValueFromEvent",value:function(re){var we=re.target.value.trim().replace(/。/g,".");return w(this.props.decimalSeparator)&&(we=we.replace(this.props.decimalSeparator,".")),we}},{key:"getValidValue",value:function(re){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,Me=parseFloat(re);return isNaN(Me)?re:(Me<we&&(Me=we),Me>Ie&&(Me=Ie),Me)}},{key:"setValue",value:function(re,we){var Ie=this.props.precision,Me=this.isNotCompleteNumber(parseFloat(re))?null:parseFloat(re),Je=this.state.value,Ve=Je===void 0?null:Je,ut=this.state.inputValue,Fe=ut===void 0?null:ut,ae=typeof Me=="number"?Me.toFixed(Ie):"".concat(Me),at=Me!==Ve||ae!=="".concat(Fe);return"value"in this.props?(Fe=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Fe},we)):this.setState({value:Me,inputValue:this.toPrecisionAsStep(re)},we),at&&this.props.onChange(Me),Me}},{key:"getMaxPrecision",value:function(re){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ie=this.props,Me=Ie.precision,Je=Ie.step;if(w(Me))return Me;var Ve=this.getPrecision(we),ut=this.getPrecision(Je),Fe=this.getPrecision(re);return re?Math.max(Fe,Ve+ut):Ve+ut}},{key:"getPrecisionFactor",value:function(re){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ie=this.getMaxPrecision(re,we);return Math.pow(10,Ie)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(re){return this.props.formatter?this.props.formatter(re):re}},{key:"toPrecisionAsStep",value:function(re){if(this.isNotCompleteNumber(re)||re==="")return re;var we=Math.abs(this.getMaxPrecision(re));return isNaN(we)?re.toString():Number(re).toFixed(we)}},{key:"toNumber",value:function(re){var we=this.props.precision,Ie=this.state.focused,Me=re&&re.length>16&&Ie;return this.isNotCompleteNumber(re)||Me?re:w(we)?Math.round(re*Math.pow(10,we))/Math.pow(10,we):Number(re)}},{key:"upStep",value:function(re,we){var Ie=this.props.step,Me=this.getPrecisionFactor(re,we),Je=Math.abs(this.getMaxPrecision(re,we)),Ve=((Me*re+Me*Ie*we)/Me).toFixed(Je);return this.toNumber(Ve)}},{key:"downStep",value:function(re,we){var Ie=this.props.step,Me=this.getPrecisionFactor(re,we),Je=Math.abs(this.getMaxPrecision(re,we)),Ve=((Me*re-Me*Ie*we)/Me).toFixed(Je);return this.toNumber(Ve)}},{key:"step",value:function(re,we){var Ie=this,Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Je=arguments.length>3?arguments[3]:void 0;this.stop(),we&&(we.persist(),we.preventDefault());var Ve=this.props;if(Ve.disabled)return;var ut=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(ut))return;var Fe=this["".concat(re,"Step")](ut,Me),ae=Fe>Ve.max||Fe<Ve.min;if(Fe>Ve.max?Fe=Ve.max:Fe<Ve.min&&(Fe=Ve.min),this.setValue(Fe,null),this.setState({focused:!0},function(){Ie.pressingUpOrDown=!1}),ae)return;this.autoStepTimer=setTimeout(function(){Ie[re](we,Me,!0)},Je?C:_)}},{key:"fixCaret",value:function(re,we){if(re===void 0||we===void 0||!this.input||!this.input.value)return;try{var Ie=this.input.selectionStart,Me=this.input.selectionEnd;(re!==Ie||we!==Me)&&this.input.setSelectionRange(re,we)}catch(Je){}}},{key:"render",value:function(){var re,we=this.props,Ie=we.prefixCls,Me=we.disabled,Je=we.readOnly,Ve=we.useTouch,ut=we.autoComplete,Fe=we.upHandler,ae=we.downHandler,at=we.className,he=we.max,J=we.min,Y=we.style,$=we.title,de=we.onMouseEnter,be=we.onMouseLeave,Ce=we.onMouseOver,Be=we.onMouseOut,fe=we.required,Se=we.onClick,ke=we.tabIndex,rt=we.type,xt=we.placeholder,ht=we.id,He=we.inputMode,ir=we.pattern,ct=we.step,Xt=we.maxLength,hr=we.autoFocus,Jt=we.name,Pt=we.onPaste,Wt=we.onInput,Ge=Object(o.a)(we,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),pe=this.state,se=pe.value,lt=pe.focused,qe=u()(Ie,(re={},Object(i.a)(re,at,!!at),Object(i.a)(re,"".concat(Ie,"-disabled"),Me),Object(i.a)(re,"".concat(Ie,"-focused"),lt),re)),me={};Object.keys(Ge).forEach(function(it){(it.substr(0,5)==="data-"||it.substr(0,5)==="aria-"||it==="role")&&(me[it]=Ge[it])});var Ht=!Je&&!Me,yr=this.getInputDisplayValue(null),At=(se||se===0)&&(isNaN(se)||Number(se)>=he),rr=(se||se===0)&&(isNaN(se)||Number(se)<=J),ur=At||Me||Je,vn=rr||Me||Je,Bt=u()("".concat(Ie,"-handler"),"".concat(Ie,"-handler-up"),Object(i.a)({},"".concat(Ie,"-handler-up-disabled"),ur)),sr=u()("".concat(Ie,"-handler"),"".concat(Ie,"-handler-down"),Object(i.a)({},"".concat(Ie,"-handler-down-disabled"),vn)),Yt=Ve?{onTouchStart:ur?b:this.up,onTouchEnd:this.stop}:{onMouseDown:ur?b:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},pt=Ve?{onTouchStart:vn?b:this.down,onTouchEnd:this.stop}:{onMouseDown:vn?b:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return f.a.createElement("div",{className:qe,style:Y,title:$,onMouseEnter:de,onMouseLeave:be,onMouseOver:Ce,onMouseOut:Be,onFocus:function(){return null},onBlur:function(){return null}},f.a.createElement("div",{className:"".concat(Ie,"-handler-wrap")},f.a.createElement("span",Object.assign({unselectable:"on"},Yt,{role:"button","aria-label":"Increase Value","aria-disabled":ur,className:Bt}),Fe||f.a.createElement("span",{unselectable:"on",className:"".concat(Ie,"-handler-up-inner"),onClick:S})),f.a.createElement("span",Object.assign({unselectable:"on"},pt,{role:"button","aria-label":"Decrease Value","aria-disabled":vn,className:sr}),ae||f.a.createElement("span",{unselectable:"on",className:"".concat(Ie,"-handler-down-inner"),onClick:S}))),f.a.createElement("div",{className:"".concat(Ie,"-input-wrap")},f.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":J,"aria-valuemax":he,"aria-valuenow":se,required:fe,type:rt,placeholder:xt,onPaste:Pt,onClick:Se,onMouseUp:this.onMouseUp,className:"".concat(Ie,"-input"),tabIndex:ke,autoComplete:ut,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Ht?this.onKeyDown:b,onKeyUp:Ht?this.onKeyUp:b,autoFocus:hr,maxLength:Xt,readOnly:Je,disabled:Me,max:he,min:J,step:ct,name:Jt,title:$,id:ht,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(yr),pattern:ir,inputMode:He,onInput:Wt},me))))}}]),q}(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 R=I,M=R,B=n("FH2Y"),P=n.n(B),X=n("HQEm"),F=n.n(X),j=n("H84U"),K=n("3Nzz"),z=function(G,te){var q={};for(var le in G)Object.prototype.hasOwnProperty.call(G,le)&&te.indexOf(le)<0&&(q[le]=G[le]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,le=Object.getOwnPropertySymbols(G);re<le.length;re++)te.indexOf(le[re])<0&&Object.prototype.propertyIsEnumerable.call(G,le[re])&&(q[le[re]]=G[le[re]]);return q},V=m.forwardRef(function(G,te){var q=function(re){var we=re.getPrefixCls,Ie=re.direction,Me=G.className,Je=G.size,Ve=G.prefixCls,ut=G.readOnly,Fe=z(G,["className","size","prefixCls","readOnly"]),ae=we("input-number",Ve),at=m.createElement(P.a,{className:"".concat(ae,"-handler-up-inner")}),he=m.createElement(F.a,{className:"".concat(ae,"-handler-down-inner")});return m.createElement(K.b.Consumer,null,function(J){var Y,$=Je||J,de=u()((Y={},v()(Y,"".concat(ae,"-lg"),$==="large"),v()(Y,"".concat(ae,"-sm"),$==="small"),v()(Y,"".concat(ae,"-rtl"),Ie==="rtl"),v()(Y,"".concat(ae,"-readonly"),ut),Y),Me);return m.createElement(M,p()({ref:te,className:de,upHandler:at,downHandler:he,prefixCls:ae,readOnly:ut},Fe))})};return m.createElement(j.a,null,q)});V.defaultProps={step:1};var Q=D.a=V},g0SD:function(k,D,n){var y=n("bYtY"),p=n("9wZj"),x=n("OELB"),v=n("YXkt"),m=n("kj2x"),f=n("iPDy");function d(i,t,s){var e=t.coordinateSystem;i.each(function(l){var r=i.getItemModel(l),a,c=x.parsePercent(r.get("x"),s.getWidth()),h=x.parsePercent(r.get("y"),s.getHeight());if(!isNaN(c)&&!isNaN(h))a=[c,h];else if(t.getMarkerPosition)a=t.getMarkerPosition(i.getValues(i.dimensions,l));else if(e){var g=i.get(e.dimensions[0],l),A=i.get(e.dimensions[1],l);a=e.dataToPoint([g,A])}isNaN(c)||(a[0]=c),isNaN(h)||(a[1]=h),i.setItemLayout(l,a)})}var u=f.extend({type:"markPoint",updateTransform:function(i,t,s){t.eachSeries(function(e){var l=e.markPointModel;l&&(d(l.getData(),e,s),this.markerGroupMap.get(e.id).updateLayout(l))},this)},renderSeries:function(i,t,s,e){var l=i.coordinateSystem,r=i.id,a=i.getData(),c=this.markerGroupMap,h=c.get(r)||c.set(r,new p),g=o(l,i,t);t.setData(g),d(t.getData(),i,e),g.each(function(A){var b=g.getItemModel(A),S=b.getShallow("symbol"),E=b.getShallow("symbolSize"),C=y.isFunction(S),_=y.isFunction(E);if(C||_){var T=t.getRawValue(A),w=t.getDataParams(A);C&&(S=S(T,w)),_&&(E=E(T,w))}g.setItemVisual(A,{symbol:S,symbolSize:E,color:b.get("itemStyle.color")||a.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")||i.get("silent")}});function o(i,t,s){var e;i?e=y.map(i&&i.dimensions,function(a){var c=t.getData().getDimensionInfo(t.getData().mapDimension(a))||{};return y.defaults({name:a},c)}):e=[{name:"value",type:"float"}];var l=new v(e,s),r=y.map(s.get("data"),y.curry(m.dataTransform,t));return i&&(r=y.filter(r,y.curry(m.dataFilter,i))),l.initData(r,null,i?m.dimValueGetter:function(a){return a.value}),l}k.exports=u},g7p0:function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("+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(i,t,s,e){var l=v(i);d.superApply(this,"init",arguments),u(i,l)},mergeOption:function(i,t){d.superApply(this,"mergeOption",arguments),u(this.option,i)}});function u(i,t){var s=i.cellSize;y.isArray(s)?s.length===1&&(s[1]=s[0]):s=i.cellSize=[s,s];var e=y.map([0,1],function(l){return m(t,l)&&(s[l]="auto"),s[l]!=null&&s[l]!=="auto"});f(i,t,{type:"box",ignoreSize:e})}var o=d;k.exports=o},g9YV:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("pED+"),v=n.n(x),m=n("+L6B"),f=n("R9oj"),d=n("7Kak"),u=n("sRBo"),o=n("qVdP"),i=n("T2oS"),t=n("DjyN"),s=n("5Dmo")},gCq4:function(k,D){function n(y){return this.__data__.get(y)}k.exports=n},gIYZ:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={Backspace:"Backspace",AltLeft:"Alt",AltRight:"Alt",CapsLock:"CapsLock",ContextMenu:"ContextMenu",ControlLeft:"Control",ControlRight:"Control",Enter:"Enter",MetaLeft:"Meta",MetaRight:"Meta",ShiftLeft:"Shift",ShiftRight:"Shift",Tab:"Tab",Delete:"Delete",End:"End",Help:"Help",Home:"Home",Insert:"Insert",PageDown:"PageDown",PageUp:"PageUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",NumLock:"NumLock",NumpadBackspace:"Backspace",NumpadClear:"Clear",Escape:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",F13:"F13",F14:"F14",F15:"F15",F16:"F16",F17:"F17",F18:"F18",F19:"F19",F20:"F20",F21:"F21",F22:"F22",F23:"F23",F24:"F24",F25:"F25",F26:"F26",F27:"F27",F28:"F28",F29:"F29",F30:"F30",F31:"F31",F32:"F32",F33:"F33",F34:"F34",F35:"F35",PrintScreen:"PrintScreen",ScrollLock:"ScrollLock",Pause:"Pause",BrowserBack:"BrowserBack",BrowserFavorites:"BrowserFavorites",BrowserForward:"BrowserForward",BrowserHome:"BrowserHome",BrowserRefresh:"BrowserRefresh",BrowserSearch:"BrowserSearch",BrowserStop:"BrowserStop",Eject:"Eject",LaunchApp1:"LaunchMyComputer",LaunchApp2:"LaunchCalendar",LaunchMail:"LaunchMail",MediaPlayPause:"MediaPlay",MediaStop:"MediaStop",MediaTrackNext:"MediaTrackNext",MediaTrackPrevious:"MediaTrackPrevious",Power:"Power",Sleep:"Sleep",AudioVolumeDown:"AudioVolumeDown",AudioVolumeMute:"AudioVolumeMute",AudioVolumeUp:"AudioVolumeUp",WakeUp:"WakeUp"};D.default=y},gKaM:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};D.default=y},gPAo:function(k,D){function n(v){return v}function y(v,m,f,d,u){this._old=v,this._new=m,this._oldKeyGetter=f||n,this._newKeyGetter=d||n,this.context=u}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={},u=[],o=[],i;for(p(v,f,u,"_oldKeyGetter",this),p(m,d,o,"_newKeyGetter",this),i=0;i<v.length;i++){var t=u[i],s=d[t];if(s!=null){var e=s.length;e?(e===1&&(d[t]=null),s=s.shift()):d[t]=null,this._update&&this._update(s,i)}else this._remove&&this._remove(i)}for(var i=0;i<o.length;i++){var t=o[i];if(d.hasOwnProperty(t)){var s=d[t];if(s==null)continue;if(!s.length)this._add&&this._add(s);else for(var l=0,e=s.length;l<e;l++)this._add&&this._add(s[l])}}}};function p(v,m,f,d,u){for(var o=0;o<v.length;o++){var i="_ec_"+u[d](v[o],o),t=m[i];t==null?(f.push(i),m[i]=o):(t.length||(m[i]=t=[t]),t.push(o))}}var x=y;k.exports=x},gRFJ:function(k,D,n){k.exports=[n("rdUC"),n("ynwM"),n("RELg"),n("DlR+"),n("CrYA"),n("PD8m")]},gaXo:function(module,exports){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(k){return k<10?"0"+k:k}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(k){return rx_escapable.lastIndex=0,rx_escapable.test(k)?'"'+k.replace(rx_escapable,function(D){var n=meta[D];return typeof n=="string"?n:"\\u"+("0000"+D.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+k+'"'}function str(k,D){var n,y,p,x,v=gap,m,f=D[k];f&&typeof f=="object"&&typeof f.toJSON=="function"&&(f=f.toJSON(k)),typeof rep=="function"&&(f=rep.call(D,k,f));switch(typeof f){case"string":return quote(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(gap+=indent,m=[],Object.prototype.toString.apply(f)==="[object Array]"){for(x=f.length,n=0;n<x;n+=1)m[n]=str(n,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,n=0;n<x;n+=1)typeof rep[n]=="string"&&(y=rep[n],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(k,D,n){var y;if(gap="",indent="",typeof n=="number")for(y=0;y<n;y+=1)indent+=" ";else typeof n=="string"&&(indent=n);if(rep=D,D&&typeof D!="function"&&(typeof D!="object"||typeof D.length!="number"))throw new Error("JSON.stringify");return str("",{"":k})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(k,D){var n,y,p=k[D];if(p&&typeof p=="object")for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(y=walk(p,n),y!==void 0?p[n]=y:delete p[n]);return reviver.call(k,D,p)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(k){return"\\u"+("0000"+k.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},gawk:function(k,D,n){var y=n("+TT/"),p=n("bYtY"),x=n("4NO4"),v=x.groupData;function m(O,I,R){O.eachSeriesByType("sankey",function(M){var B=M.get("nodeWidth"),P=M.get("nodeGap"),X=f(M,I);M.layoutInfo=X;var F=X.width,j=X.height,K=M.getGraph(),z=K.nodes,V=K.edges;u(z);var Q=p.filter(z,function(le){return le.getLayout().value===0}),G=Q.length!==0?0:M.get("layoutIterations"),te=M.get("orient"),q=M.get("nodeAlign");d(z,V,B,P,F,j,G,te,q)})}function f(O,I){return y.getLayoutRect(O.getBoxLayoutParams(),{width:I.getWidth(),height:I.getHeight()})}function d(O,I,R,M,B,P,X,F,j){o(O,I,R,B,P,F,j),l(O,I,P,B,M,X,F),w(O,F)}function u(O){p.each(O,function(I){var R=_(I.outEdges,C),M=_(I.inEdges,C),B=I.getValue()||0,P=Math.max(R,M,B);I.setLayout({value:P},!0)})}function o(O,I,R,M,B,P,X){for(var F=[],j=[],K=[],z=[],V=0,Q=0,G=0;G<I.length;G++)F[G]=1;for(G=0;G<O.length;G++)j[G]=O[G].inEdges.length,j[G]===0&&K.push(O[G]);for(var te=-1;K.length;){for(var q=0;q<K.length;q++){var le=K[q],re=le.hostGraph.data.getRawDataItem(le.dataIndex),we=re.depth!=null&&re.depth>=0;we&&re.depth>te&&(te=re.depth),le.setLayout({depth:we?re.depth:V},!0),P==="vertical"?le.setLayout({dy:R},!0):le.setLayout({dx:R},!0);for(var Ie=0;Ie<le.outEdges.length;Ie++){var Me=le.outEdges[Ie],Je=I.indexOf(Me);F[Je]=0;var Ve=Me.node2,ut=O.indexOf(Ve);--j[ut]===0&&z.indexOf(Ve)<0&&z.push(Ve)}}++V,K=z,z=[]}for(G=0;G<F.length;G++)if(F[G]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var Fe=te>V-1?te:V-1;X&&X!=="left"&&t(O,X,P,Fe);var Q=P==="vertical"?(B-R)/Fe:(M-R)/Fe;e(O,Q,P)}function i(O){var I=O.hostGraph.data.getRawDataItem(O.dataIndex);return I.depth!=null&&I.depth>=0}function t(O,I,R,M){if(I==="right"){for(var B=[],P=O,X=0;P.length;){for(var F=0;F<P.length;F++){var j=P[F];j.setLayout({skNodeHeight:X},!0);for(var K=0;K<j.inEdges.length;K++){var z=j.inEdges[K];B.indexOf(z.node1)<0&&B.push(z.node1)}}P=B,B=[],++X}p.each(O,function(V){i(V)||V.setLayout({depth:Math.max(0,M-V.getLayout().skNodeHeight)},!0)})}else I==="justify"&&s(O,M)}function s(O,I){p.each(O,function(R){!i(R)&&!R.outEdges.length&&R.setLayout({depth:I},!0)})}function e(O,I,R){p.each(O,function(M){var B=M.getLayout().depth*I;R==="vertical"?M.setLayout({y:B},!0):M.setLayout({x:B},!0)})}function l(O,I,R,M,B,P,X){var F=r(O,X);a(F,I,R,M,B,X),c(F,B,R,M,X);for(var j=1;P>0;P--)j*=.99,h(F,j,X),c(F,B,R,M,X),T(F,j,X),c(F,B,R,M,X)}function r(O,I){var R=[],M=I==="vertical"?"y":"x",B=v(O,function(P){return P.getLayout()[M]});return B.keys.sort(function(P,X){return P-X}),p.each(B.keys,function(P){R.push(B.buckets.get(P))}),R}function a(O,I,R,M,B,P){var X=Infinity;p.each(O,function(F){var j=F.length,K=0;p.each(F,function(V){K+=V.getLayout().value});var z=P==="vertical"?(M-(j-1)*B)/K:(R-(j-1)*B)/K;z<X&&(X=z)}),p.each(O,function(F){p.each(F,function(j,K){var z=j.getLayout().value*X;P==="vertical"?(j.setLayout({x:K},!0),j.setLayout({dx:z},!0)):(j.setLayout({y:K},!0),j.setLayout({dy:z},!0))})}),p.each(I,function(F){var j=+F.getValue()*X;F.setLayout({dy:j},!0)})}function c(O,I,R,M,B){var P=B==="vertical"?"x":"y";p.each(O,function(X){X.sort(function(q,le){return q.getLayout()[P]-le.getLayout()[P]});for(var F,j,K,z=0,V=X.length,Q=B==="vertical"?"dx":"dy",G=0;G<V;G++)j=X[G],K=z-j.getLayout()[P],K>0&&(F=j.getLayout()[P]+K,B==="vertical"?j.setLayout({x:F},!0):j.setLayout({y:F},!0)),z=j.getLayout()[P]+j.getLayout()[Q]+I;var te=B==="vertical"?M:R;if(K=z-I-te,K>0)for(F=j.getLayout()[P]-K,B==="vertical"?j.setLayout({x:F},!0):j.setLayout({y:F},!0),z=F,G=V-2;G>=0;--G)j=X[G],K=j.getLayout()[P]+j.getLayout()[Q]+I-z,K>0&&(F=j.getLayout()[P]-K,B==="vertical"?j.setLayout({x:F},!0):j.setLayout({y:F},!0)),z=j.getLayout()[P]})}function h(O,I,R){p.each(O.slice().reverse(),function(M){p.each(M,function(B){if(B.outEdges.length){var P=_(B.outEdges,g,R)/_(B.outEdges,C,R);if(isNaN(P)){var X=B.outEdges.length;P=X?_(B.outEdges,A,R)/X:0}if(R==="vertical"){var F=B.getLayout().x+(P-E(B,R))*I;B.setLayout({x:F},!0)}else{var j=B.getLayout().y+(P-E(B,R))*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 S(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,R){for(var M=0,B=O.length,P=-1;++P<B;){var X=+I.call(O,O[P],R);isNaN(X)||(M+=X)}return M}function T(O,I,R){p.each(O,function(M){p.each(M,function(B){if(B.inEdges.length){var P=_(B.inEdges,b,R)/_(B.inEdges,C,R);if(isNaN(P)){var X=B.inEdges.length;P=X?_(B.inEdges,S,R)/X:0}if(R==="vertical"){var F=B.getLayout().x+(P-E(B,R))*I;B.setLayout({x:F},!0)}else{var j=B.getLayout().y+(P-E(B,R))*I;B.setLayout({y:j},!0)}}})})}function w(O,I){var R=I==="vertical"?"x":"y";p.each(O,function(M){M.outEdges.sort(function(B,P){return B.node2.getLayout()[R]-P.node2.getLayout()[R]}),M.inEdges.sort(function(B,P){return B.node1.getLayout()[R]-P.node1.getLayout()[R]})}),p.each(O,function(M){var B=0,P=0;p.each(M.outEdges,function(X){X.setLayout({sy:B},!0),B+=X.getLayout().dy}),p.each(M.inEdges,function(X){X.setLayout({ty:P},!0),P+=X.getLayout().dy})})}k.exports=m},"gb/T":function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("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(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("QbM5"),v=n.n(x)},gut8:function(k,D){var n={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},y=9;D.ContextCachedBy=n,D.WILL_BE_RESTORED=y},gvm7:function(k,D,n){var y=n("bYtY"),p=n("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 u={},o=m,i="{marker",t="|}",s=o.indexOf(i);s>=0;){var e=o.indexOf(t),l=o.substr(s+i.length,e-s-i.length);l.indexOf("sub")>-1?u["marker"+l]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:f[l],textOffset:[3,0]}:u["marker"+l]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:f[l]},o=o.substr(e+1),s=o.indexOf("{marker")}this.el=new p({style:{rich:u,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;k.exports=v},gwTy:function(k,D,n){},h54F:function(k,D,n){var y=n("ProS"),p=n("YXkt"),x=n("bYtY"),v=n("4NO4"),m=v.defaultEmphasis,f=n("Qxkt"),d=n("7aKB"),u=d.encodeHTML,o=n("I3/A"),i=n("xKMd"),t=y.extendSeriesModel({type:"series.graph",init:function(e){t.superApply(this,"init",arguments);var l=this;function r(){return l._categoriesData}this.legendVisualProvider=new i(r,r),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){t.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){t.superApply(this,"mergeDefaultAndTheme",arguments),m(e,["edgeLabel"],["show"])},getInitialData:function(e,l){var r=e.edges||e.links||[],a=e.data||e.nodes||[],c=this;if(a&&r)return o(a,r,this,!0,h).data;function h(g,A){g.wrapMethod("getItemModel",function(T){var w=c._categoriesModels,O=T.getShallow("category"),I=w[O];return I&&(I.parentModel=T.parentModel,T.parentModel=I),T});var b=c.getModel("edgeLabel"),S=new f({label:b.option},b.parentModel,l),E=c.getModel("emphasis.edgeLabel"),C=new f({emphasis:{label:E.option}},E.parentModel,l);A.wrapMethod("getItemModel",function(T){return T.customizeGetParent(_),T});function _(T){return T=this.parsePath(T),T&&T[0]==="label"?S: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,l,r){if(r==="edge"){var a=this.getData(),c=this.getDataParams(e,r),h=a.graph.getEdgeByIndex(e),g=a.getName(h.node1.dataIndex),A=a.getName(h.node2.dataIndex),b=[];return g!=null&&b.push(g),A!=null&&b.push(A),b=u(b.join(" > ")),c.value&&(b+=" : "+u(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)}),l=new p(["value"],this);l.initData(e),this._categoriesData=l,this._categoriesModels=l.mapArray(function(r){return l.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}}}}),s=t;k.exports=s},h7HQ:function(k,D,n){var y=n("y+Vt"),p=n("T6xi"),x=y.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(m,f){p.buildPath(m,f,!0)}});k.exports=x},h8O9:function(k,D,n){var y=n("bYtY"),p=y.map,x=n("zM3Q"),v=n("7hqr"),m=v.isDimensionStacked;function f(d){return{seriesType:d,plan:x(),reset:function(u){var o=u.getData(),i=u.coordinateSystem,t=u.pipelineContext,s=t.large;if(!i)return;var e=p(i.dimensions,function(c){return o.mapDimension(c)}).slice(0,2),l=e.length,r=o.getCalculationInfo("stackResultDimension");m(o,e[0])&&(e[0]=r),m(o,e[1])&&(e[1]=r);function a(c,h){for(var g=c.end-c.start,A=s&&new Float32Array(g*l),b=c.start,S=0,E=[],C=[];b<c.end;b++){var _;if(l===1){var T=h.get(e[0],b);_=!isNaN(T)&&i.dataToPoint(T,null,C)}else{var T=E[0]=h.get(e[0],b),w=E[1]=h.get(e[1],b);_=!isNaN(T)&&!isNaN(w)&&i.dataToPoint(E,null,C)}s?(A[S++]=_?_[0]:NaN,A[S++]=_?_[1]:NaN):h.setItemLayout(b,_&&_.slice()||[NaN,NaN])}s&&h.setLayout("symbolPoints",A)}return l&&{progress:a}}}}k.exports=f},hD7B:function(k,D,n){var y=n("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;k.exports=v},hFmY:function(k,D,n){var y=n("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(k,D,n){var y=n("2dDv"),p=n("IDmD");function x(v,m){var f=[];return v.eachComponent("parallel",function(d,u){var o=new y(d,v,m);o.name="parallel_"+u,o.resize(d,m),d.coordinateSystem=o,o.model=d,f.push(o)}),v.eachSeries(function(d){if(d.get("coordinateSystem")==="parallel"){var u=v.queryComponents({mainType:"parallel",index:d.get("parallelIndex"),id:d.get("parallelId")})[0];d.coordinateSystem=u.coordinateSystem}}),f}p.register("parallel",{create:x})},hM6l:function(k,D,n){var y=n("bYtY"),p=y.each,x=y.map,v=n("OELB"),m=v.linearMap,f=v.getPixelPrecision,d=v.round,u=n("4HMb"),o=u.createAxisTicks,i=u.createAxisLabels,t=u.calculateCategoryInterval,s=[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(),l(g,A.count())),m(c,s,g,h)},coordToData:function(c,h){var g=this._extent,A=this.scale;this.onBand&&A.type==="ordinal"&&(g=g.slice(),l(g,A.count()));var b=m(c,g,s,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),S=h.get("alignWithLabel");return r(this,b,S,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(S){return{coord:this.dataToCoord(S),tickValue:S}},this)},this);return A},getViewLabels:function(){return i(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var c=this._extent,h=this.scale.getExtent(),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 l(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 S=c.getExtent(),E,C;if(b===1)h[0].coord=S[0],E=h[1]={coord:S[0]};else{var _=h[b-1].tickValue-h[0].tickValue,T=(h[b-1].coord-h[0].coord)/_;p(h,function(R){R.coord-=T/2});var w=c.scale.getExtent();C=1+w[1]-h[b-1].tickValue,E={coord:h[b-1].coord+T*C},h.push(E)}var O=S[0]>S[1];I(h[0].coord,S[0])&&(A?h[0].coord=S[0]:h.shift()),A&&I(S[0],h[0].coord)&&h.unshift({coord:S[0]}),I(S[1],E.coord)&&(A?E.coord=S[1]:h.pop()),A&&I(E.coord,S[1])&&h.push({coord:S[1]});function I(R,M){return R=d(R),M=d(M),O?R>M:R<M}}var a=e;k.exports=a},hNWo:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("Qxkt"),v=n("4NO4"),m=v.isNameSpecified,f=n("Kagy"),d=f.legend.selector,u={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,s,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 s=t.selector;s===!0&&(s=t.selector=["all","inverse"]),p.isArray(s)&&p.each(s,function(e,l){p.isString(e)&&(e={type:e}),s[l]=p.merge(e,u[e.type])})},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var s=!1,e=0;e<t.length;e++){var l=t[e].get("name");if(this.isSelected(l)){this.select(l),s=!0;break}}!s&&this.select(t[0].get("name"))}},_updateData:function(t){var s=[],e=[];t.eachRawSeries(function(a){var c=a.name;e.push(c);var h;if(a.legendVisualProvider){var g=a.legendVisualProvider,A=g.getAllNames();t.isSeriesFiltered(a)||(e=e.concat(A)),A.length?s=s.concat(A):h=!0}else h=!0;h&&m(a)&&s.push(a.name)}),this._availableNames=e;var l=this.get("data")||s,r=p.map(l,function(a){return(typeof a=="string"||typeof a=="number")&&(a={name:a}),new x(a,this,this.ecModel)},this);this._data=r},getData:function(){return this._data},select:function(t){var s=this.option.selected,e=this.get("selectedMode");if(e==="single"){var l=this._data;p.each(l,function(r){s[r.get("name")]=!1})}s[t]=!0},unSelect:function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},toggleSelected:function(t){var s=this.option.selected;s.hasOwnProperty(t)||(s[t]=!0),this[s[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,s=this.option.selected;p.each(t,function(e){s[e.get("name",!0)]=!0})},inverseSelect:function(){var t=this._data,s=this.option.selected;p.each(t,function(e){var l=e.get("name",!0);s.hasOwnProperty(l)||(s[l]=!0),s[l]=!s[l]})},isSelected:function(t){var s=this.option.selected;return!(s.hasOwnProperty(t)&&!s[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}}}),i=o;k.exports=i},hOwI:function(k,D){var n=Math.log(2);function y(x,v,m,f,d,u){var o=f+"-"+d,i=x.length;if(u.hasOwnProperty(o))return u[o];if(v===1){var t=Math.round(Math.log((1<<i)-1&~d)/n);return x[m][t]}for(var s=f|1<<m,e=m+1;f&1<<e;)e++;for(var l=0,r=0,a=0;r<i;r++){var c=1<<r;c&d||(l+=(a%2?-1:1)*x[m][r]*y(x,v-1,e,s,d|c,u),a++)}return u[o]=l,l}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 u=[],o=0;o<8;o++)for(var i=0;i<8;i++)u[i]==null&&(u[i]=0),u[i]+=((o+i)%2?-1:1)*y(m,7,o===0?1:0,1<<o,1<<i,f)/d*v[o];return function(t,s,e){var l=s*u[6]+e*u[7]+1;t[0]=(s*u[0]+e*u[1]+u[2])/l,t[1]=(s*u[3]+e*u[4]+u[5])/l}}D.buildTransformer=p},hX1E:function(k,D){var n=Math.PI*2;function y(p){return p%=n,p<0&&(p+=n),p}D.normalizeRadian=y},hXwI:function(k,D,n){"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 u=f[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}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,u,o,i,t,s,e){if(t.rQwait("COPYRECT",4))return!1;var l=t.rQshift16(),r=t.rQshift16();return s.copyImage(l,r,d,u,o,i),!0}}]),m}();D.default=v},hi0g:function(k,D,n){var y=n("bYtY"),p=y.createHashMap,x=y.each,v=y.isString,m=y.defaults,f=y.extend,d=y.isObject,u=y.clone,o=n("4NO4"),i=o.normalizeToArray,t=n("D5nY"),s=t.guessOrdinal,e=t.BE_ORDINAL,l=n("7G+c"),r=n("L0Ub"),a=r.OTHER_DIMENSIONS,c=n("Vi4m");function h(S,E,C){l.isInstance(E)||(E=l.seriesDataToSource(E)),C=C||{},S=(S||[]).slice();for(var _=(C.dimsDef||[]).slice(),T=p(),w=p(),O=[],I=g(E,S,_,C.dimCount),R=0;R<I;R++){var M=_[R]=f({},d(_[R])?_[R]:{name:_[R]}),B=M.name,P=O[R]=new c;B!=null&&T.get(B)==null&&(P.name=P.displayName=B,T.set(B,R)),M.type!=null&&(P.type=M.type),M.displayName!=null&&(P.displayName=M.displayName)}var X=C.encodeDef;!X&&C.encodeDefaulter&&(X=C.encodeDefaulter(E,I)),X=p(X),X.each(function(q,le){if(q=i(q).slice(),q.length===1&&!v(q[0])&&q[0]<0){X.set(le,!1);return}var re=X.set(le,[]);x(q,function(we,Ie){v(we)&&(we=T.get(we)),we!=null&&we<I&&(re[Ie]=we,j(O[we],le,Ie))})});var F=0;x(S,function(q,le){var re,q,we,Ie;if(v(q))re=q,q={};else{re=q.name;var Me=q.ordinalMeta;q.ordinalMeta=null,q=u(q),q.ordinalMeta=Me,we=q.dimsDef,Ie=q.otherDims,q.name=q.coordDim=q.coordDimIndex=q.dimsDef=q.otherDims=null}var Je=X.get(re);if(Je===!1)return;var Je=i(Je);if(!Je.length)for(var Ve=0;Ve<(we&&we.length||1);Ve++){for(;F<O.length&&O[F].coordDim!=null;)F++;F<O.length&&Je.push(F++)}x(Je,function(ut,Fe){var ae=O[ut];if(j(m(ae,q),re,Fe),ae.name==null&&we){var at=we[Fe];!d(at)&&(at={name:at}),ae.name=ae.displayName=at.name,ae.defaultTooltip=at.defaultTooltip}Ie&&m(ae.otherDims,Ie)})});function j(q,le,re){a.get(le)!=null?q.otherDims[le]=re:(q.coordDim=le,q.coordDimIndex=re,w.set(le,!0))}var K=C.generateCoord,z=C.generateCoordCount,V=z!=null;z=K?z||1:0;for(var Q=K||"value",G=0;G<I;G++){var P=O[G]=O[G]||new c,te=P.coordDim;te==null&&(P.coordDim=A(Q,w,V),P.coordDimIndex=0,(!K||z<=0)&&(P.isExtraCoord=!0),z--),P.name==null&&(P.name=A(P.coordDim,T)),P.type==null&&(s(E,G,P.name)===e.Must||P.isExtraCoord&&(P.otherDims.itemName!=null||P.otherDims.seriesName!=null))&&(P.type="ordinal")}return O}function g(S,E,C,_){var T=Math.max(S.dimensionsDetectCount||1,E.length,C.length,_||0);return x(E,function(w){var O=w.dimsDef;O&&(T=Math.max(T,O.length))}),T}function A(S,E,C){if(C||E.get(S)!=null){for(var _=0;E.get(S+_)!=null;)_++;S+=_}return E.set(S,!0),S}var b=h;k.exports=b},hkKa:function(k,D,n){"use strict";n.d(D,"a",function(){return m});var y=n("J4zp"),p=n.n(y),x=n("q1tI"),v=n.n(x);function m(){var f=x.useReducer(function(o){return o+1},0),d=p()(f,2),u=d[1];return u}},hw6D:function(k,D,n){var y=n("bYtY");function p(m){m.eachSeriesByType("radar",function(f){var d=f.getData(),u=[],o=f.coordinateSystem;if(!o)return;var i=o.getIndicatorAxes();y.each(i,function(t,s){d.each(d.mapDimension(i[s].dim),function(e,l){u[l]=u[l]||[];var r=o.dataToPoint(e,s);u[l][s]=x(r)?r:v(o)})}),d.each(function(t){var s=y.find(u[t],function(e){return x(e)})||v(o);u[t].push(s.slice()),d.setItemLayout(t,u[t])})})}function x(m){return!isNaN(m[0])&&!isNaN(m[1])}function v(m){return[m.cx,m.cy]}k.exports=p},hwYd:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("Nu4q")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="PictureTwoTone";var i=v.forwardRef(o);D.default=i},hydK:function(k,D){var n="http://www.w3.org/2000/svg";function y(p){return document.createElementNS(n,p)}D.createElement=y},hyiK:function(k,D){function n(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,u=(f-p)/(v-p);(u===1||u===0)&&(d=v<p?.5:-.5);var o=u*(x-y)+y;return o===m?Infinity:o>m?d:0}k.exports=n},i38C:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("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 u(t){var s=t.get("coordinateSystem"),e=new d(s),l=o[s];if(l)return l(t,e,e.axisMap,e.categoryAxisMap),e}var o={cartesian2d:function(t,s,e,l){var r=t.getReferringComponents("xAxis")[0],a=t.getReferringComponents("yAxis")[0];s.coordSysDims=["x","y"],e.set("x",r),e.set("y",a),i(r)&&(l.set("x",r),s.firstCategoryDimIndex=0),i(a)&&(l.set("y",a),s.firstCategoryDimIndex==null&(s.firstCategoryDimIndex=1))},singleAxis:function(t,s,e,l){var r=t.getReferringComponents("singleAxis")[0];s.coordSysDims=["single"],e.set("single",r),i(r)&&(l.set("single",r),s.firstCategoryDimIndex=0)},polar:function(t,s,e,l){var r=t.getReferringComponents("polar")[0],a=r.findAxisModel("radiusAxis"),c=r.findAxisModel("angleAxis");s.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",c),i(a)&&(l.set("radius",a),s.firstCategoryDimIndex=0),i(c)&&(l.set("angle",c),s.firstCategoryDimIndex==null&&(s.firstCategoryDimIndex=1))},geo:function(t,s,e,l){s.coordSysDims=["lng","lat"]},parallel:function(t,s,e,l){var r=t.ecModel,a=r.getComponent("parallel",t.get("parallelIndex")),c=s.coordSysDims=a.dimensions.slice();f(a.parallelAxisIndex,function(h,g){var A=r.getComponent("parallelAxis",h),b=c[g];e.set(b,A),i(A)&&s.firstCategoryDimIndex==null&&(l.set(b,A),s.firstCategoryDimIndex=g)})}};function i(t){return t.get("type")==="category"}D.getCoordSysInfoBySeries=u},i6bk:function(k,D,n){"use strict";n.d(D,"b",function(){return y}),n.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(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("Fm1+"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},iLNv:function(k,D){var n="\0__throttleOriginMethod",y="\0__throttleRate",p="\0__throttleType";function x(f,d,u){var o,i=0,t=0,s=null,e,l,r,a;d=d||0;function c(){t=new Date().getTime(),s=null,f.apply(l,r||[])}var h=function(){o=new Date().getTime(),l=this,r=arguments;var g=a||d,A=a||u;a=null,e=o-(A?i:t)-g,clearTimeout(s),A?s=setTimeout(c,g):e>=0?c():s=setTimeout(c,-e),i=o};return h.clear=function(){s&&(clearTimeout(s),s=null)},h.debounceNextCall=function(g){a=g},h}function v(f,d,u,o){var i=f[d];if(!i)return;var t=i[n]||i,s=i[p],e=i[y];if(e!==u||s!==o){if(u==null||!o)return f[d]=t;i=f[d]=x(t,u,o==="debounce"),i[n]=t,i[p]=o,i[y]=u}return i}function m(f,d){var u=f[d];u&&u[n]&&(f[d]=u[n])}D.throttle=x,D.createOrUpdate=v,D.clear=m},iPDy:function(k,D,n){var y=n("ProS"),p=n("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 u=this.type+"Model";m.eachSeries(function(o){var i=o[u];i&&this.renderSeries(o,i,m,f)},this),d.each(function(o){!o.__keep&&this.group.remove(o.group)},this)},renderSeries:function(){}});k.exports=x},iQDF:function(k,D,n){"use strict";var y=n("ZTW2"),p=n.n(y),x=n("+BJd"),v=n("+L6B")},iRjW:function(k,D,n){var y=n("bYtY"),p=n("Yl7c"),x=p.parseClassType,v=0;function m(u){return[u||"",v++,Math.random().toFixed(5)].join("_")}function f(u){var o={};return u.registerSubTypeDefaulter=function(i,t){i=x(i),o[i.main]=t},u.determineSubType=function(i,t){var s=t.type;if(!s){var e=x(i).main;u.hasSubTypes(i)&&o[e]&&(s=o[e](t))}return s},u}function d(u,o){u.topologicalTravel=function(e,l,r,a){if(!e.length)return;var c=i(l),h=c.graph,g=c.noEntryList,A={};for(y.each(e,function(T){A[T]=!0});g.length;){var b=g.pop(),S=h[b],E=!!A[b];E&&(r.call(a,b,S.originalDeps.slice()),delete A[b]),y.each(S.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 i(e){var l={},r=[];return y.each(e,function(a){var c=t(l,a),h=c.originalDeps=o(a),g=s(h,e);c.entryCount=g.length,c.entryCount===0&&r.push(a),y.each(g,function(A){y.indexOf(c.predecessor,A)<0&&c.predecessor.push(A);var b=t(l,A);y.indexOf(b.successor,A)<0&&b.successor.push(a)})}),{graph:l,noEntryList:r}}function t(e,l){return e[l]||(e[l]={predecessor:[],successor:[]}),e[l]}function s(e,l){var r=[];return y.each(e,function(a){y.indexOf(l,a)>=0&&r.push(a)}),r}}D.getUID=m,D.enableSubTypeDefaulter=f,D.enableTopologicalTravel=d},iUHT:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}function p(S,E){for(var C=0;C<E.length;C++){var _=E[C];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(S,_.key,_)}}function x(S,E,C){return E&&p(S.prototype,E),C&&p(S,C),S}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,u,o,i,t,s;d=1<<16,u=1<<24,o=d|u,i=1<<2,t=1<<10,s=i|t;var e=[o|t,f|f,d|f,o|s,o|i,d|s,f|i,d|f,f|t,o|t,o|s,f|t,u|s,o|i,u|f,f|i,f|s,u|t,u|t,d|t,d|t,o|f,o|f,u|s,d|i,u|i,u|i,d|i,f|f,f|s,d|s,u|f,d|f,o|s,f|i,o|f,o|t,u|f,u|f,f|t,o|i,d|f,d|t,u|i,f|t,f|i,u|s,d|s,o|s,d|i,o|f,u|s,u|i,f|s,d|s,o|t,f|s,u|t,u|t,f|f,d|i,d|t,f|f,o|i];d=1<<20,u=1<<31,o=d|u,i=1<<5,t=1<<15,s=i|t;var l=[o|s,u|t,f|t,d|s,d|f,f|i,o|i,u|s,u|i,o|s,o|t,u|f,u|t,d|f,f|i,o|i,d|t,d|i,u|s,f|f,u|f,f|t,d|s,o|f,d|i,u|i,f|f,d|t,f|s,o|t,o|f,f|s,f|f,d|s,o|i,d|f,u|s,o|f,o|t,f|t,o|f,u|t,f|i,o|s,d|s,f|i,f|t,u|f,f|s,o|t,d|f,u|i,d|i,u|s,u|i,d|i,d|t,f|f,u|t,f|s,u|f,o|i,o|s,d|t];d=1<<17,u=1<<27,o=d|u,i=1<<3,t=1<<9,s=i|t;var r=[f|s,o|t,f|f,o|i,u|t,f|f,d|s,u|t,d|i,u|i,u|i,d|f,o|s,d|i,o|f,f|s,u|f,f|i,o|t,f|t,d|t,o|f,o|i,d|s,u|s,d|t,d|f,u|s,f|i,o|s,f|t,u|f,o|t,u|f,d|i,f|s,d|f,o|t,u|t,f|f,f|t,d|i,o|s,u|t,u|i,f|t,f|f,o|i,u|s,d|f,u|f,o|s,f|i,d|s,d|t,u|i,o|f,u|s,f|s,o|f,d|s,f|i,o|i,d|t];d=1<<13,u=1<<23,o=d|u,i=1<<0,t=1<<7,s=i|t;var a=[o|i,d|s,d|s,f|t,o|t,u|s,u|i,d|i,f|f,o|f,o|f,o|s,f|s,f|f,u|t,u|i,f|i,d|f,u|f,o|i,f|t,u|f,d|i,d|t,u|s,f|i,d|t,u|t,d|f,o|t,o|s,f|s,u|t,u|i,o|f,o|s,f|s,f|f,f|f,o|f,d|t,u|t,u|s,f|i,o|i,d|s,d|s,f|t,o|s,f|s,f|i,d|f,u|i,d|i,o|t,u|s,d|i,d|t,u|f,o|i,f|t,u|f,d|f,o|t];d=1<<25,u=1<<30,o=d|u,i=1<<8,t=1<<19,s=i|t;var c=[f|i,d|s,d|t,o|i,f|t,f|i,u|f,d|t,u|s,f|t,d|i,u|s,o|i,o|t,f|s,u|f,d|f,u|t,u|t,f|f,u|i,o|s,o|s,d|i,o|t,u|i,f|f,o|f,d|s,d|f,o|f,f|s,f|t,o|i,f|i,d|f,u|f,d|t,o|i,u|s,d|i,u|f,o|t,d|s,u|s,f|i,d|f,o|t,o|s,f|s,o|f,o|s,d|t,f|f,u|t,o|f,f|s,d|i,u|i,f|t,f|f,u|t,d|s,u|i];d=1<<22,u=1<<29,o=d|u,i=1<<4,t=1<<14,s=i|t;var h=[u|i,o|f,f|t,o|s,o|f,f|i,o|s,d|f,u|t,d|s,d|f,u|i,d|i,u|t,u|f,f|s,f|f,d|i,u|s,f|t,d|t,u|s,f|i,o|i,o|i,f|f,d|s,o|t,f|s,d|t,o|t,u|f,u|t,f|i,o|i,d|t,o|s,d|f,f|s,u|i,d|f,u|t,u|f,f|s,u|i,o|s,d|t,o|f,d|s,o|t,f|f,o|i,f|i,f|t,o|f,d|s,f|t,d|i,u|s,f|f,o|t,u|f,d|i,u|s];d=1<<21,u=1<<26,o=d|u,i=1<<1,t=1<<11,s=i|t;var g=[d|f,o|i,u|s,f|f,f|t,u|s,d|s,o|t,o|s,d|f,f|f,u|i,f|i,u|f,o|i,f|s,u|t,d|s,d|i,u|t,u|i,o|f,o|t,d|i,o|f,f|t,f|s,o|s,d|t,f|i,u|f,d|t,u|f,d|t,d|f,u|s,u|s,o|i,o|i,f|i,d|i,u|f,u|t,d|f,o|t,f|s,d|s,o|t,f|s,u|i,o|s,o|f,d|t,f|f,f|i,o|s,f|f,d|s,o|f,f|t,u|i,u|t,f|t,d|i];d=1<<18,u=1<<28,o=d|u,i=1<<6,t=1<<12,s=i|t;var A=[u|s,f|t,d|f,o|s,u|f,u|s,f|i,u|f,d|i,o|f,o|s,d|t,o|t,d|s,f|t,f|i,o|f,u|i,u|t,f|s,d|t,d|i,o|i,o|t,f|s,f|f,f|f,o|i,u|i,u|t,d|s,d|f,d|s,d|f,o|t,f|t,f|i,o|i,f|t,d|s,u|t,f|i,u|i,o|f,o|i,u|f,d|f,u|s,f|f,o|s,d|i,u|i,o|f,u|t,u|s,f|f,o|s,d|t,d|t,f|s,f|s,d|i,u|f,o|t],b=function(){function S(E){y(this,S),this.keys=[];for(var C=[],_=[],T=[],w=0,O=56;w<56;++w,O-=8){O+=O<-5?65:O<-3?31:O<-1?63:O===27?35:0;var I=O&7;C[w]=(E[O>>>3]&1<<I)!==0?1:0}for(var R=0;R<16;++R){var M=R<<1,B=M+1;T[M]=T[B]=0;for(var P=28;P<59;P+=28)for(var X=P-28;X<P;++X){var F=X+m[R];_[X]=F<P?C[F]:C[F-28]}for(var j=0;j<24;++j)_[v[j]]!==0&&(T[M]|=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++],G=T[z++];this.keys[V]=(Q&16515072)<<6,this.keys[V]|=(Q&4032)<<10,this.keys[V]|=(G&16515072)>>>10,this.keys[V]|=(G&4032)>>>6,++V,this.keys[V]=(Q&258048)<<12,this.keys[V]|=(Q&63)<<16,this.keys[V]|=(G&258048)>>>4,this.keys[V]|=G&63,++V}}return x(S,[{key:"enc8",value:function(C){var _=C.slice(),T=0,w,O,I;w=_[T++]<<24|_[T++]<<16|_[T++]<<8|_[T++],O=_[T++]<<24|_[T++]<<16|_[T++]<<8|_[T++],I=(w>>>4^O)&252645135,O^=I,w^=I<<4,I=(w>>>16^O)&65535,O^=I,w^=I<<16,I=(O>>>2^w)&858993459,w^=I,O^=I<<2,I=(O>>>8^w)&16711935,w^=I,O^=I<<8,O=O<<1|O>>>31&1,I=(w^O)&2863311530,w^=I,O^=I,w=w<<1|w>>>31&1;for(var R=0,M=0;R<8;++R){I=O<<28|O>>>4,I^=this.keys[M++];var B=g[I&63];B|=c[I>>>8&63],B|=r[I>>>16&63],B|=e[I>>>24&63],I=O^this.keys[M++],B|=A[I&63],B|=h[I>>>8&63],B|=a[I>>>16&63],B|=l[I>>>24&63],w^=B,I=w<<28|w>>>4,I^=this.keys[M++],B=g[I&63],B|=c[I>>>8&63],B|=r[I>>>16&63],B|=e[I>>>24&63],I=w^this.keys[M++],B|=A[I&63],B|=h[I>>>8&63],B|=a[I>>>16&63],B|=l[I>>>24&63],O^=B}for(O=O<<31|O>>>1,I=(w^O)&2863311530,w^=I,O^=I,w=w<<31|w>>>1,I=(w>>>8^O)&16711935,O^=I,w^=I<<8,I=(w>>>2^O)&858993459,O^=I,w^=I<<2,I=(O>>>16^w)&65535,w^=I,O^=I<<16,I=(O>>>4^w)&252645135,w^=I,O^=I<<4,I=[O,w],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)))}}]),S}();D.default=b},iXHM:function(k,D){var n="";typeof navigator!="undefined"&&(n=navigator.platform||"");var y={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:n.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};k.exports=y},iXp4:function(k,D,n){var y=n("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 u=0;u<m.length;u++){var o=m[u],i=o&&o.shape,t=o&&o.type;if(i&&(t==="sector"&&i.startAngle===i.endAngle||t==="rect"&&(!i.width||!i.height))){for(var s=0;s<p.length;s++)p[s][2]=f[p[s][0]],f[p[s][0]]=p[s][1];d=!0;break}}if(v.apply(this,arguments),d)for(var s=0;s<p.length;s++)f[p[s][0]]=p[s][2]}:v}k.exports=x},iYpf:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("ZLWo")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="FolderOpenOutlined";var i=v.forwardRef(o);D.default=i},ieMj:function(k,D,n){var y=n("OELB"),p=n("7aKB"),x=n("4NgU"),v=n("lE7J"),m=y.round,f=x.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(u,o){var i=this._extent;isNaN(u)||(i[0]=parseFloat(u)),isNaN(o)||(i[1]=parseFloat(o))},unionExtent:function(u){var o=this._extent;u[0]<o[0]&&(o[0]=u[0]),u[1]>o[1]&&(o[1]=u[1]),f.prototype.setExtent.call(this,o[0],o[1])},getInterval:function(){return this._interval},setInterval:function(u){this._interval=u,this._niceExtent=this._extent.slice(),this._intervalPrecision=v.getIntervalPrecision(u)},getTicks:function(u){var o=this._interval,i=this._extent,t=this._niceExtent,s=this._intervalPrecision,e=[];if(!o)return e;var l=1e4;i[0]<t[0]&&(u?e.push(m(t[0]-o,s)):e.push(i[0]));for(var r=t[0];r<=t[1]&&!(e.push(r),r=m(r+o,s),r===e[e.length-1]);)if(e.length>l)return[];var a=e.length?e[e.length-1]:t[1];return i[1]>a&&(u?e.push(m(a+o,s)):e.push(i[1])),e},getMinorTicks:function(u){for(var o=this.getTicks(!0),i=[],t=this.getExtent(),s=1;s<o.length;s++){for(var e=o[s],l=o[s-1],r=0,a=[],c=e-l,h=c/u;r<u-1;){var g=y.round(l+(r+1)*h);g>t[0]&&g<t[1]&&a.push(g),r++}i.push(a)}return i},getLabel:function(u,o){if(u==null)return"";var i=o&&o.precision;return i==null?i=y.getPrecisionSafe(u)||0:i==="auto"&&(i=this._intervalPrecision),u=m(u,i,!0),p.addCommas(u)},niceTicks:function(u,o,i){u=u||5;var t=this._extent,s=t[1]-t[0];if(!isFinite(s))return;s<0&&(s=-s,t.reverse());var e=v.intervalScaleNiceTicks(t,u,o,i);this._intervalPrecision=e.intervalPrecision,this._interval=e.interval,this._niceExtent=e.niceTickExtent},niceExtent:function(u){var o=this._extent;if(o[0]===o[1])if(o[0]!==0){var i=o[0];u.fixMax||(o[1]+=i/2),o[0]-=i/2}else o[1]=1;var t=o[1]-o[0];isFinite(t)||(o[0]=0,o[1]=1),this.niceTicks(u.splitNumber,u.minInterval,u.maxInterval);var s=this._interval;u.fixMin||(o[0]=m(Math.floor(o[0]/s)*s)),u.fixMax||(o[1]=m(Math.ceil(o[1]/s)*s))}});f.create=function(){return new f};var d=f;k.exports=d},j5sG:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=n("24YM"),p=x(n("NohK"));function x(m){return m&&m.__esModule?m:{default:m}}var v=function(f,d){var u=void 0,o=[],i=(0,p.default)(function(){o.forEach(function(r){r(f)})}),t=function(){var a=new ResizeObserver(i);return a.observe(f),i(),a},s=function(a){u||(u=t()),o.indexOf(a)===-1&&o.push(a)},e=function(){u.disconnect(),o=[],u=void 0,f.removeAttribute(y.SizeSensorId),d&&d()},l=function(a){var c=o.indexOf(a);c!==-1&&o.splice(c,1),o.length===0&&u&&e()};return{element:f,bind:s,destroy:e,unbind:l}};D.createSensor=v},jCoz:function(k,D,n){var y=n("bYtY"),p=n("4NgU"),x=n("OELB"),v=n("ieMj"),m=p.prototype,f=v.prototype,d=x.getPrecisionSafe,u=x.round,o=Math.floor,i=Math.ceil,t=Math.pow,s=Math.log,e=p.extend({type:"log",base:10,$constructor:function(){p.apply(this,arguments),this._originalScale=new v},getTicks:function(a){var c=this._originalScale,h=this._extent,g=c.getExtent();return y.map(f.getTicks.call(this,a),function(A){var b=x.round(t(this.base,A));return b=A===h[0]&&c.__fixMin?l(b,g[0]):b,b=A===h[1]&&c.__fixMax?l(b,g[1]):b,b},this)},getMinorTicks:f.getMinorTicks,getLabel:f.getLabel,scale:function(a){return a=m.scale.call(this,a),t(this.base,a)},setExtent:function(a,c){var h=this.base;a=s(a)/s(h),c=s(c)/s(h),f.setExtent.call(this,a,c)},getExtent:function(){var a=this.base,c=m.getExtent.call(this);c[0]=t(a,c[0]),c[1]=t(a,c[1]);var h=this._originalScale,g=h.getExtent();return h.__fixMin&&(c[0]=l(c[0],g[0])),h.__fixMax&&(c[1]=l(c[1],g[1])),c},unionExtent:function(a){this._originalScale.unionExtent(a);var c=this.base;a[0]=s(a[0])/s(c),a[1]=s(a[1])/s(c),m.unionExtent.call(this,a)},unionExtentFromData:function(a,c){this.unionExtent(a.getApproximateExtent(c))},niceTicks:function(a){a=a||10;var c=this._extent,h=c[1]-c[0];if(h===Infinity||h<=0)return;var g=x.quantity(h),A=a/h*g;for(A<=.5&&(g*=10);!isNaN(g)&&Math.abs(g)<1&&Math.abs(g)>0;)g*=10;var b=[x.round(i(c[0]/g)*g),x.round(o(c[1]/g)*g)];this._interval=g,this._niceExtent=b},niceExtent:function(a){f.niceExtent.call(this,a);var c=this._originalScale;c.__fixMin=a.fixMin,c.__fixMax=a.fixMax}});y.each(["contain","normalize"],function(a){e.prototype[a]=function(c){return c=s(c)/s(this.base),m[a].call(this,c)}}),e.create=function(){return new e};function l(a,c){return u(a,d(c))}var r=e;k.exports=r},jN4g:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="CloseCircleFilled";var d=D.a=p.forwardRef(f)},jO45:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="CheckCircleFilled";var d=D.a=p.forwardRef(f)},jO9C:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("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(k,D,n){var y=n("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,u=Math.max(m.r,0),o=m.startAngle,i=m.endAngle,t=m.clockwise,s=Math.cos(o),e=Math.sin(o);v.moveTo(s*u+f,e*u+d),v.arc(f,d,u,o,i,!t)}});k.exports=p},je13:function(k,D,n){var y=n("5nXd"),p=n("gRFJ"),x=[n("uQRt")];k.exports=y.createStore(p,x)},jett:function(k,D,n){var y=n("ProS");n("VSLf"),n("oBaM"),n("FGaS");var p=n("mOdp"),x=n("f5Yq"),v=n("hw6D"),m=n("0/Rx"),f=n("eJH7");y.registerVisual(p("radar")),y.registerVisual(x("radar","circle")),y.registerLayout(v),y.registerProcessor(m("radar")),y.registerPreprocessor(f)},jhfD:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="ArrowLeftOutlined";var d=D.a=p.forwardRef(f)},jkPA:function(k,D,n){var y=n("bYtY"),p=y.createHashMap,x=y.isObject,v=y.map;function m(i){this.categories=i.categories||[],this._needCollect=i.needCollect,this._deduplication=i.deduplication,this._map}m.createByAxisModel=function(i){var t=i.option,s=t.data,e=s&&v(s,u);return new m({categories:e,needCollect:!e,deduplication:t.dedplication!==!1})};var f=m.prototype;f.getOrdinal=function(i){return d(this).get(i)},f.parseAndCollect=function(i){var t,s=this._needCollect;if(typeof i!="string"&&!s)return i;if(s&&!this._deduplication)return t=this.categories.length,this.categories[t]=i,t;var e=d(this);return t=e.get(i),t==null&&(s?(t=this.categories.length,this.categories[t]=i,e.set(i,t)):t=NaN),t};function d(i){return i._map||(i._map=p(i.categories))}function u(i){return x(i)&&i.value!=null?i.value:i+""}var o=m;k.exports=o},jndi:function(k,D,n){var y=n("bYtY"),p=n("Qe9p"),x=n("YXkt"),v=n("OELB"),m=n("IwbS"),f=n("kj2x"),d=n("iPDy"),u=function(r,a,c,h){var g=f.dataTransform(r,h[0]),A=f.dataTransform(r,h[1]),b=y.retrieve,S=g.coord,E=A.coord;S[0]=b(S[0],-Infinity),S[1]=b(S[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 i(r,a,c,h){var g=1-r;return o(a[g])&&o(c[g])}function t(r,a){var c=a.coord[0],h=a.coord[1];return r.type==="cartesian2d"&&(c&&h&&(i(1,c,h,r)||i(0,c,h,r)))?!0:f.dataFilter(r,{coord:c,x:a.x0,y:a.y0})||f.dataFilter(r,{coord:h,x:a.x1,y:a.y1})}function s(r,a,c,h,g){var A=h.coordinateSystem,b=r.getItemModel(a),S,E=v.parsePercent(b.get(c[0]),g.getWidth()),C=v.parsePercent(b.get(c[1]),g.getHeight());if(!isNaN(E)&&!isNaN(C))S=[E,C];else{if(h.getMarkerPosition)S=h.getMarkerPosition(r.getValues(c,a));else{var _=r.get(c[0],a),T=r.get(c[1],a),w=[_,T];A.clampData&&A.clampData(w,w),S=A.dataToPoint(w,!0)}if(A.type==="cartesian2d"){var O=A.getAxis("x"),I=A.getAxis("y"),_=r.get(c[0],a),T=r.get(c[1],a);o(_)?S[0]=O.toGlobalCoord(O.getExtent()[c[0]==="x0"?0:1]):o(T)&&(S[1]=I.toGlobalCoord(I.getExtent()[c[1]==="y0"?0:1]))}isNaN(E)||(S[0]=E),isNaN(C)||(S[1]=C)}return S}var e=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];d.extend({type:"markArea",updateTransform:function(r,a,c){a.eachSeries(function(h){var g=h.markAreaModel;if(g){var A=g.getData();A.each(function(b){var S=y.map(e,function(C){return s(A,b,C,h,c)});A.setItemLayout(b,S);var E=A.getItemGraphicEl(b);E.setShape("points",S)})}},this)},renderSeries:function(r,a,c,h){var g=r.coordinateSystem,A=r.id,b=r.getData(),S=this.markerGroupMap,E=S.get(A)||S.set(A,{group:new m.Group});this.group.add(E.group),E.__keep=!0;var C=l(g,r,a);a.setData(C),C.each(function(_){C.setItemLayout(_,y.map(e,function(T){return s(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 w=E.__data.getItemGraphicEl(T);m.updateProps(w,{shape:{points:C.getItemLayout(_)}},a,_),E.group.add(w),C.setItemGraphicEl(_,w)}).remove(function(_){var T=E.__data.getItemGraphicEl(_);E.group.remove(T)}).execute(),C.eachItemGraphicEl(function(_,T){var w=C.getItemModel(T),O=w.getModel("label"),I=w.getModel("emphasis.label"),R=C.getItemVisual(T,"color");_.useStyle(y.defaults(w.getModel("itemStyle").getItemStyle(),{fill:p.modifyAlpha(R,.4),stroke:R})),_.hoverStyle=w.getModel("emphasis.itemStyle").getItemStyle(),m.setLabelStyle(_.style,_.hoverStyle,O,I,{labelFetcher:a,labelDataIndex:T,defaultText:C.getName(T)||"",isRectText:!0,autoColor:R}),m.setHoverStyle(_,{}),_.dataModel=a}),E.__data=C,E.group.silent=a.get("silent")||r.get("silent")}});function l(r,a,c){var h,g,A=["x0","y0","x1","y1"];r?(h=y.map(r&&r.dimensions,function(E){var C=a.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(u,a,r,c));r&&(b=y.filter(b,y.curry(t,r)));var S=r?function(E,C,_,T){return E.coord[Math.floor(T/2)][T%2]}:function(E){return E.value};return g.initData(b,null,S),g.hasItemOption=!0,g}},"jsU+":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("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 u=x.get(d);u&&p.merge(f,u.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;k.exports=m},jtI2:function(k,D,n){n("SMc4");var y=n("bLfw"),p=y.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});k.exports=p},juDX:function(k,D,n){n("P47w");var y=n("aX58"),p=y.registerPainter,x=n("3CBa");p("svg",x)},"k+1r":function(k,D,n){var y=n("QkVE");function p(x){var v=y(this,x).delete(x);return this.size-=v?1:0,v}k.exports=p},k5C7:function(k,D,n){n("0JAE"),n("g7p0"),n("7mYs")},k9D9:function(k,D){var n="original",y="arrayRows",p="objectRows",x="keyedColumns",v="unknown",m="typedArray",f="column",d="row";D.SOURCE_FORMAT_ORIGINAL=n,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(k,D){function n(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})}k.exports=n},kGiB:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("ABKa"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},kMLO:function(k,D,n){var y=n("XxSj"),p=n("Qe9p"),x=n("bYtY"),v=x.isArray,m="itemStyle",f={seriesType:"treemap",reset:function(r,a,c,h){var g=r.getData().tree,A=g.root,b=r.getModel(m);if(A.isRemoved())return;var S=x.map(g.levelModels,function(E){return E?E.get(m):null});d(A,{},S,b,r.getViewRoot().getAncestors(),r)}};function d(r,a,c,h,g,A){var b=r.getModel(),S=r.getLayout();if(!S||S.invisible||!S.isInView)return;var E=r.getModel(m),C=c[r.depth],_=u(E,a,C,h),T=E.get("borderColor"),w=E.get("borderColorSaturation"),O;w!=null&&(O=o(_,r),T=i(w,O)),r.setVisual("borderColor",T);var I=r.viewChildren;if(!I||!I.length)O=o(_,r),r.setVisual("color",O);else{var R=s(r,b,S,E,_,I);x.each(I,function(M,B){if(M.depth>=g.length||M===g[M.depth]){var P=l(b,_,M,B,R,A);d(M,P,c,h,g,A)}})}}function u(r,a,c,h){var g=x.extend({},a);return x.each(["color","colorAlpha","colorSaturation"],function(A){var b=r.get(A,!0);b==null&&c&&(b=c[A]),b==null&&(b=a[A]),b==null&&(b=h.get(A)),b!=null&&(g[A]=b)}),g}function o(r){var a=t(r,"color");if(a){var c=t(r,"colorAlpha"),h=t(r,"colorSaturation");return h&&(a=p.modifyHSL(a,null,null,h)),c&&(a=p.modifyAlpha(a,c)),a}}function i(r,a){return a!=null?p.modifyHSL(a,null,null,r):null}function t(r,a){var c=r[a];if(c!=null&&c!=="none")return c}function s(r,a,c,h,g,A){if(!A||!A.length)return;var b=e(a,"color")||g.color!=null&&g.color!=="none"&&(e(a,"colorAlpha")||e(a,"colorSaturation"));if(!b)return;var S=a.get("visualMin"),E=a.get("visualMax"),C=c.dataExtent.slice();S!=null&&S<C[0]&&(C[0]=S),E!=null&&E>C[1]&&(C[1]=E);var _=a.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 w=new y(T);return w.__drColorMappingBy=_,w}function e(r,a){var c=r.get(a);return v(c)&&c.length?{name:a,range:c}:null}function l(r,a,c,h,g,A){var b=x.extend({},a);if(g){var S=g.type,E=S==="color"&&g.__drColorMappingBy,C=E==="index"?h:E==="id"?A.mapIdToIndex(c.getId()):c.getValue(r.get("visualDimension"));b[S]=g.mapValueToVisual(C)}return b}k.exports=f},"kVK+":function(k,D){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */D.read=function(n,y,p,x,v){var m,f,d=v*8-x-1,u=(1<<d)-1,o=u>>1,i=-7,t=p?v-1:0,s=p?-1:1,e=n[y+t];for(t+=s,m=e&(1<<-i)-1,e>>=-i,i+=d;i>0;m=m*256+n[y+t],t+=s,i-=8);for(f=m&(1<<-i)-1,m>>=-i,i+=x;i>0;f=f*256+n[y+t],t+=s,i-=8);if(m===0)m=1-o;else{if(m===u)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(n,y,p,x,v,m){var f,d,u,o=m*8-v-1,i=(1<<o)-1,t=i>>1,s=v===23?Math.pow(2,-24)-Math.pow(2,-77):0,e=x?0:m-1,l=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=i):(f=Math.floor(Math.log(y)/Math.LN2),y*(u=Math.pow(2,-f))<1&&(f--,u*=2),f+t>=1?y+=s/u:y+=s*Math.pow(2,1-t),y*u>=2&&(f++,u/=2),f+t>=i?(d=0,f=i):f+t>=1?(d=(y*u-1)*Math.pow(2,v),f=f+t):(d=y*Math.pow(2,t-1)*Math.pow(2,v),f=0));v>=8;n[p+e]=d&255,e+=l,d/=256,v-=8);for(f=f<<v|d,o+=v;o>0;n[p+e]=f&255,e+=l,f/=256,o-=8);n[p+e-l]|=r*128}},kekF:function(k,D){function n(y,p){return function(x){return y(p(x))}}k.exports=n},kj2x:function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=n("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 u(c,h,g,A,b,S){var E=[],C=v(h,A),_=C?h.getCalculationInfo("stackResultDimension"):A,T=a(h,_,c),w=h.indicesOfNearest(_,T)[0];E[b]=h.get(g,w),E[S]=h.get(_,w);var O=h.get(A,w),I=p.getPrecision(h.get(A,w));return I=Math.min(I,20),I>=0&&(E[S]=+E[S].toFixed(I)),[E,O]}var o=y.curry,i={min:o(u,"min"),max:o(u,"max"),average:o(u,"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,S=s(h,g,A,c);if(h=y.clone(h),h.type&&i[h.type]&&S.baseAxis&&S.valueAxis){var E=m(b,S.baseAxis.dim),C=m(b,S.valueAxis.dim),_=i[h.type](g,S.baseDataDim,S.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],w=0;w<2;w++)i[T[w]]&&(T[w]=a(g,g.mapDimension(b[w]),T[w]));h.coord=T}}return h}function s(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 S=g.getDimensionInfo(A[b]);if(S.name===h)return S.coordDim}}function l(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 a(c,h,g){if(g==="average"){var A=0,b=0;return c.each(h,function(S,E){isNaN(S)||(A+=S,b++)}),A/b}else return g==="median"?c.getMedian(h):c.getDataExtent(h,!0)[g==="max"?1:0]}D.dataTransform=t,D.getAxisInfo=s,D.dataFilter=l,D.dimValueGetter=r,D.numCalculate=a},knOB:function(k,D,n){var y=n("bYtY"),p=n("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;k.exports=v},ko1b:function(k,D,n){var y=n("bYtY"),p=n("T4UG"),x=n("Bsck"),v=n("Qxkt"),m=n("7aKB"),f=m.encodeHTML,d=m.addCommas,u=n("VaxA"),o=u.wrapTreePathInfo,i=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,l){var r={name:e.name,children:e.data};t(r);var a=e.levels||[];a=e.levels=s(a,l);var c=y.map(a||[],function(A){return new v(A,this,l)},this),h=x.createTree(r,this,null,g);function g(A){A.wrapMethod("getItemModel",function(b,S){var E=h.getNodeByDataIndex(S),C=c[E.depth];return C&&(b.parentModel=C),b})}return h.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var l=this.getData(),r=this.getRawValue(e),a=y.isArray(r)?d(r[0]):d(r),c=l.getName(e);return f(c+": "+a)},getDataParams:function(e){var l=p.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return l.treePathInfo=o(r,this),l},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},y.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var l=this._idIndexMap;l||(l=this._idIndexMap=y.createHashMap(),this._idIndexMapCount=0);var r=l.get(e);return r==null&&l.set(e,r=this._idIndexMapCount++),r},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var l=this.getRawData().tree.root;(!e||e!==l&&!l.contains(e))&&(this._viewRoot=l)}});function t(e){var l=0;y.each(e.children,function(a){t(a);var c=a.value;y.isArray(c)&&(c=c[0]),l+=c});var r=e.value;y.isArray(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=l),r<0&&(r=0),y.isArray(e.value)?e.value[0]=r:e.value=r}function s(e,l){var r=l.get("color");if(!r)return;e=e||[];var a;if(y.each(e,function(h){var g=new v(h),A=g.get("color");(g.get("itemStyle.color")||A&&A!=="none")&&(a=!0)}),!a){var c=e[0]||(e[0]={});c.color=r.slice()}return e}k.exports=i},kzFp:function(k,D,n){"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(k,D,n){var y=n("sS/r"),p=y.extend({type:"timeline"});k.exports=p},"l+S1":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="SearchOutlined";var d=D.a=p.forwardRef(f)},lE7J:function(k,D,n){var y=n("OELB"),p=y.round;function x(d,u,o,i){var t={},s=d[1]-d[0],e=t.interval=y.nice(s/u,!0);o!=null&&e<o&&(e=t.interval=o),i!=null&&e>i&&(e=t.interval=i);var l=t.intervalPrecision=v(e),r=t.niceTickExtent=[p(Math.ceil(d[0]/e)*e,l),p(Math.floor(d[1]/e)*e,l)];return f(r,d),t}function v(d){return y.getPrecisionSafe(d)+2}function m(d,u,o){d[u]=Math.max(Math.min(d[u],o[1]),o[0])}function f(d,u){!isFinite(d[0])&&(d[0]=u[0]),!isFinite(d[1])&&(d[1]=u[1]),m(d,0,u),m(d,1,u),d[0]>d[1]&&(d[0]=d[1])}D.intervalScaleNiceTicks=x,D.getIntervalPrecision=v,D.fixExtent=f},lELe:function(k,D,n){var y=n("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))})}k.exports=p},lLGD:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("nVfU"),v=x.layout,m=x.largeLayout;n("Wqna"),n("F7hV"),n("Z8zF"),n("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(k,D,n){(function(y,p){k.exports=p()})(this,function(){"use strict";function y(q){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(q)}var p=/^\s+/,x=/\s+$/;function v(q,le){if(q=q||"",le=le||{},q instanceof v)return q;if(!(this instanceof v))return new v(q,le);var re=m(q);this._originalInput=q,this._r=re.r,this._g=re.g,this._b=re.b,this._a=re.a,this._roundA=Math.round(100*this._a)/100,this._format=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,we,Ie,Me,Je,Ve;return re=le.r/255,we=le.g/255,Ie=le.b/255,re<=.03928?Me=re/12.92:Me=Math.pow((re+.055)/1.055,2.4),we<=.03928?Je=we/12.92:Je=Math.pow((we+.055)/1.055,2.4),Ie<=.03928?Ve=Ie/12.92:Ve=Math.pow((Ie+.055)/1.055,2.4),.2126*Me+.7152*Je+.0722*Ve},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),we=Math.round(le.s*100),Ie=Math.round(le.v*100);return this._a==1?"hsv("+re+", "+we+"%, "+Ie+"%)":"hsva("+re+", "+we+"%, "+Ie+"%, "+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),we=Math.round(le.s*100),Ie=Math.round(le.l*100);return this._a==1?"hsl("+re+", "+we+"%, "+Ie+"%)":"hsla("+re+", "+we+"%, "+Ie+"%, "+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 s(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(R(this._r,255)*100)+"%",g:Math.round(R(this._g,255)*100)+"%",b:Math.round(R(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%)":"rgba("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:w[t(this._r,this._g,this._b,!0)]||!1},toFilter:function(le){var re="#"+e(this._r,this._g,this._b,this._a),we=re,Ie=this._gradientType?"GradientType = 1, ":"";if(le){var Me=v(le);we="#"+e(Me._r,Me._g,Me._b,Me._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ie+"startColorstr="+re+",endColorstr="+we+")"},toString:function(le){var re=!!le;le=le||this._format;var we=!1,Ie=this._a<1&&this._a>=0,Me=!re&&Ie&&(le==="hex"||le==="hex6"||le==="hex3"||le==="hex4"||le==="hex8"||le==="name");return Me?le==="name"&&this._a===0?this.toName():this.toRgbString():(le==="rgb"&&(we=this.toRgbString()),le==="prgb"&&(we=this.toPercentageRgbString()),(le==="hex"||le==="hex6")&&(we=this.toHexString()),le==="hex3"&&(we=this.toHexString(!0)),le==="hex4"&&(we=this.toHex8String(!0)),le==="hex8"&&(we=this.toHex8String()),le==="name"&&(we=this.toName()),le==="hsl"&&(we=this.toHslString()),le==="hsv"&&(we=this.toHsvString()),we||this.toHexString())},clone:function(){return v(this.toString())},_applyModification:function(le,re){var we=le.apply(null,[this].concat([].slice.call(re)));return this._r=we._r,this._g=we._g,this._b=we._b,this.setAlpha(we._a),this},lighten:function(){return this._applyModification(c,arguments)},brighten:function(){return this._applyModification(h,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(r,arguments)},greyscale:function(){return this._applyModification(a,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(S,[3])},tetrad:function(){return this._applyCombination(S,[4])}},v.fromRatio=function(q,le){if(y(q)=="object"){var re={};for(var we in q)q.hasOwnProperty(we)&&(we==="a"?re[we]=q[we]:re[we]=j(q[we]));q=re}return v(q,le)};function m(q){var le={r:0,g:0,b:0},re=1,we=null,Ie=null,Me=null,Je=!1,Ve=!1;return typeof q=="string"&&(q=G(q)),y(q)=="object"&&(Q(q.r)&&Q(q.g)&&Q(q.b)?(le=f(q.r,q.g,q.b),Je=!0,Ve=String(q.r).substr(-1)==="%"?"prgb":"rgb"):Q(q.h)&&Q(q.s)&&Q(q.v)?(we=j(q.s),Ie=j(q.v),le=i(q.h,we,Ie),Je=!0,Ve="hsv"):Q(q.h)&&Q(q.s)&&Q(q.l)&&(we=j(q.s),Me=j(q.l),le=u(q.h,we,Me),Je=!0,Ve="hsl"),q.hasOwnProperty("a")&&(re=q.a)),re=I(re),{ok:Je,format:q.format||Ve,r:Math.min(255,Math.max(le.r,0)),g:Math.min(255,Math.max(le.g,0)),b:Math.min(255,Math.max(le.b,0)),a:re}}function f(q,le,re){return{r:R(q,255)*255,g:R(le,255)*255,b:R(re,255)*255}}function d(q,le,re){q=R(q,255),le=R(le,255),re=R(re,255);var we=Math.max(q,le,re),Ie=Math.min(q,le,re),Me,Je,Ve=(we+Ie)/2;if(we==Ie)Me=Je=0;else{var ut=we-Ie;Je=Ve>.5?ut/(2-we-Ie):ut/(we+Ie);switch(we){case q:Me=(le-re)/ut+(le<re?6:0);break;case le:Me=(re-q)/ut+2;break;case re:Me=(q-le)/ut+4;break}Me/=6}return{h:Me,s:Je,l:Ve}}function u(q,le,re){var we,Ie,Me;q=R(q,360),le=R(le,100),re=R(re,100);function Je(Fe,ae,at){return at<0&&(at+=1),at>1&&(at-=1),at<1/6?Fe+(ae-Fe)*6*at:at<1/2?ae:at<2/3?Fe+(ae-Fe)*(2/3-at)*6:Fe}if(le===0)we=Ie=Me=re;else{var Ve=re<.5?re*(1+le):re+le-re*le,ut=2*re-Ve;we=Je(ut,Ve,q+1/3),Ie=Je(ut,Ve,q),Me=Je(ut,Ve,q-1/3)}return{r:we*255,g:Ie*255,b:Me*255}}function o(q,le,re){q=R(q,255),le=R(le,255),re=R(re,255);var we=Math.max(q,le,re),Ie=Math.min(q,le,re),Me,Je,Ve=we,ut=we-Ie;if(Je=we===0?0:ut/we,we==Ie)Me=0;else{switch(we){case q:Me=(le-re)/ut+(le<re?6:0);break;case le:Me=(re-q)/ut+2;break;case re:Me=(q-le)/ut+4;break}Me/=6}return{h:Me,s:Je,v:Ve}}function i(q,le,re){q=R(q,360)*6,le=R(le,100),re=R(re,100);var we=Math.floor(q),Ie=q-we,Me=re*(1-le),Je=re*(1-Ie*le),Ve=re*(1-(1-Ie)*le),ut=we%6,Fe=[re,Je,Me,Me,Ve,re][ut],ae=[Ve,re,re,Je,Me,Me][ut],at=[Me,Me,Ve,re,re,Je][ut];return{r:Fe*255,g:ae*255,b:at*255}}function t(q,le,re,we){var Ie=[F(Math.round(q).toString(16)),F(Math.round(le).toString(16)),F(Math.round(re).toString(16))];return we&&Ie[0].charAt(0)==Ie[0].charAt(1)&&Ie[1].charAt(0)==Ie[1].charAt(1)&&Ie[2].charAt(0)==Ie[2].charAt(1)?Ie[0].charAt(0)+Ie[1].charAt(0)+Ie[2].charAt(0):Ie.join("")}function s(q,le,re,we,Ie){var Me=[F(Math.round(q).toString(16)),F(Math.round(le).toString(16)),F(Math.round(re).toString(16)),F(K(we))];return Ie&&Me[0].charAt(0)==Me[0].charAt(1)&&Me[1].charAt(0)==Me[1].charAt(1)&&Me[2].charAt(0)==Me[2].charAt(1)&&Me[3].charAt(0)==Me[3].charAt(1)?Me[0].charAt(0)+Me[1].charAt(0)+Me[2].charAt(0)+Me[3].charAt(0):Me.join("")}function e(q,le,re,we){var Ie=[F(K(we)),F(Math.round(q).toString(16)),F(Math.round(le).toString(16)),F(Math.round(re).toString(16))];return Ie.join("")}v.equals=function(q,le){return!q||!le?!1:v(q).toRgbString()==v(le).toRgbString()},v.random=function(){return v.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function l(q,le){le=le===0?0:le||10;var re=v(q).toHsl();return re.s-=le/100,re.s=M(re.s),v(re)}function r(q,le){le=le===0?0:le||10;var re=v(q).toHsl();return re.s+=le/100,re.s=M(re.s),v(re)}function a(q){return v(q).desaturate(100)}function c(q,le){le=le===0?0:le||10;var re=v(q).toHsl();return re.l+=le/100,re.l=M(re.l),v(re)}function h(q,le){le=le===0?0:le||10;var re=v(q).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(q,le){le=le===0?0:le||10;var re=v(q).toHsl();return re.l-=le/100,re.l=M(re.l),v(re)}function A(q,le){var re=v(q).toHsl(),we=(re.h+le)%360;return re.h=we<0?360+we:we,v(re)}function b(q){var le=v(q).toHsl();return le.h=(le.h+180)%360,v(le)}function S(q,le){if(isNaN(le)||le<=0)throw new Error("Argument to polyad must be a positive number");for(var re=v(q).toHsl(),we=[v(q)],Ie=360/le,Me=1;Me<le;Me++)we.push(v({h:(re.h+Me*Ie)%360,s:re.s,l:re.l}));return we}function E(q){var le=v(q).toHsl(),re=le.h;return[v(q),v({h:(re+72)%360,s:le.s,l:le.l}),v({h:(re+216)%360,s:le.s,l:le.l})]}function C(q,le,re){le=le||6,re=re||30;var we=v(q).toHsl(),Ie=360/re,Me=[v(q)];for(we.h=(we.h-(Ie*le>>1)+720)%360;--le;)we.h=(we.h+Ie)%360,Me.push(v(we));return Me}function _(q,le){le=le||6;for(var re=v(q).toHsv(),we=re.h,Ie=re.s,Me=re.v,Je=[],Ve=1/le;le--;)Je.push(v({h:we,s:Ie,v:Me})),Me=(Me+Ve)%1;return Je}v.mix=function(q,le,re){re=re===0?0:re||50;var we=v(q).toRgb(),Ie=v(le).toRgb(),Me=re/100,Je={r:(Ie.r-we.r)*Me+we.r,g:(Ie.g-we.g)*Me+we.g,b:(Ie.b-we.b)*Me+we.b,a:(Ie.a-we.a)*Me+we.a};return v(Je)},v.readability=function(q,le){var re=v(q),we=v(le);return(Math.max(re.getLuminance(),we.getLuminance())+.05)/(Math.min(re.getLuminance(),we.getLuminance())+.05)},v.isReadable=function(q,le,re){var we=v.readability(q,le),Ie,Me;Me=!1,Ie=te(re);switch(Ie.level+Ie.size){case"AAsmall":case"AAAlarge":Me=we>=4.5;break;case"AAlarge":Me=we>=3;break;case"AAAsmall":Me=we>=7;break}return Me},v.mostReadable=function(q,le,re){var we=null,Ie=0,Me,Je,Ve,ut;re=re||{},Je=re.includeFallbackColors,Ve=re.level,ut=re.size;for(var Fe=0;Fe<le.length;Fe++)Me=v.readability(q,le[Fe]),Me>Ie&&(Ie=Me,we=v(le[Fe]));return v.isReadable(q,we,{level:Ve,size:ut})||!Je?we:(re.includeFallbackColors=!1,v.mostReadable(q,["#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"},w=v.hexNames=O(T);function O(q){var le={};for(var re in q)q.hasOwnProperty(re)&&(le[q[re]]=re);return le}function I(q){return q=parseFloat(q),(isNaN(q)||q<0||q>1)&&(q=1),q}function R(q,le){P(q)&&(q="100%");var re=X(q);return q=Math.min(le,Math.max(0,parseFloat(q))),re&&(q=parseInt(q*le,10)/100),Math.abs(q-le)<1e-6?1:q%le/parseFloat(le)}function M(q){return Math.min(1,Math.max(0,q))}function B(q){return parseInt(q,16)}function P(q){return typeof q=="string"&&q.indexOf(".")!=-1&&parseFloat(q)===1}function X(q){return typeof q=="string"&&q.indexOf("%")!=-1}function F(q){return q.length==1?"0"+q:""+q}function j(q){return q<=1&&(q=q*100+"%"),q}function K(q){return Math.round(parseFloat(q)*255).toString(16)}function z(q){return B(q)/255}var V=function(){var q="[-\\+]?\\d+%?",le="[-\\+]?\\d*\\.\\d+%?",re="(?:"+le+")|(?:"+q+")",we="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",Ie="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+we),rgba:new RegExp("rgba"+Ie),hsl:new RegExp("hsl"+we),hsla:new RegExp("hsla"+Ie),hsv:new RegExp("hsv"+we),hsva:new RegExp("hsva"+Ie),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Q(q){return!!V.CSS_UNIT.exec(q)}function G(q){q=q.replace(p,"").replace(x,"").toLowerCase();var le=!1;if(T[q])q=T[q],le=!0;else if(q=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=V.rgb.exec(q))?{r:re[1],g:re[2],b:re[3]}:(re=V.rgba.exec(q))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=V.hsl.exec(q))?{h:re[1],s:re[2],l:re[3]}:(re=V.hsla.exec(q))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=V.hsv.exec(q))?{h:re[1],s:re[2],v:re[3]}:(re=V.hsva.exec(q))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=V.hex8.exec(q))?{r:B(re[1]),g:B(re[2]),b:B(re[3]),a:z(re[4]),format:le?"name":"hex8"}:(re=V.hex6.exec(q))?{r:B(re[1]),g:B(re[2]),b:B(re[3]),format:le?"name":"hex"}:(re=V.hex4.exec(q))?{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(q))?{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(q){var le,re;return q=q||{level:"AA",size:"small"},le=(q.level||"AA").toUpperCase(),re=(q.size||"small").toLowerCase(),le!=="AA"&&le!=="AAA"&&(le="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:le,size:re}}return v})},lNSK:function(k,D,n){"use strict";function y(me){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(yr){return typeof yr}:y=function(yr){return yr&&typeof Symbol=="function"&&yr.constructor===Symbol&&yr!==Symbol.prototype?"symbol":typeof yr},y(me)}Object.defineProperty(D,"__esModule",{value:!0}),D.deflateInit=Ge,D.deflateInit2=Wt,D.deflateReset=Jt,D.deflateResetKeep=hr,D.deflateSetHeader=Pt,D.deflate=pe,D.deflateEnd=se,D.deflateSetDictionary=lt,D.deflateInfo=D.Z_DEFLATED=D.Z_UNKNOWN=D.Z_DEFAULT_STRATEGY=D.Z_FIXED=D.Z_RLE=D.Z_HUFFMAN_ONLY=D.Z_FILTERED=D.Z_DEFAULT_COMPRESSION=D.Z_BUF_ERROR=D.Z_DATA_ERROR=D.Z_STREAM_ERROR=D.Z_STREAM_END=D.Z_OK=D.Z_BLOCK=D.Z_FINISH=D.Z_FULL_FLUSH=D.Z_PARTIAL_FLUSH=D.Z_NO_FLUSH=void 0;var p=o(n("6BzB")),x=o(n("c5fP")),v=d(n("xlC8")),m=d(n("QV2g")),f=d(n("xSIq"));function d(me){return me&&me.__esModule?me:{default:me}}function u(){if(typeof WeakMap!="function")return null;var me=new WeakMap;return u=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 Ht=u();if(Ht&&Ht.has(me))return Ht.get(me);var yr={},At=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var rr in me)if(Object.prototype.hasOwnProperty.call(me,rr)){var ur=At?Object.getOwnPropertyDescriptor(me,rr):null;ur&&(ur.get||ur.set)?Object.defineProperty(yr,rr,ur):yr[rr]=me[rr]}return yr.default=me,Ht&&Ht.set(me,yr),yr}var i=0;D.Z_NO_FLUSH=i;var t=1;D.Z_PARTIAL_FLUSH=t;var s=3;D.Z_FULL_FLUSH=s;var e=4;D.Z_FINISH=e;var l=5;D.Z_BLOCK=l;var r=0;D.Z_OK=r;var a=1;D.Z_STREAM_END=a;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 S=2;D.Z_HUFFMAN_ONLY=S;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 w=8;D.Z_DEFLATED=w;var O=9,I=15,R=8,M=29,B=256,P=B+1+M,X=30,F=19,j=2*P+1,K=15,z=3,V=258,Q=V+z+1,G=32,te=42,q=69,le=73,re=91,we=103,Ie=113,Me=666,Je=1,Ve=2,ut=3,Fe=4,ae=3;function at(me,Ht){return me.msg=f.default[Ht],Ht}function he(me){return(me<<1)-(me>4?9:0)}function J(me){for(var Ht=me.length;--Ht>=0;)me[Ht]=0}function Y(me){var Ht=me.state,yr=Ht.pending;if(yr>me.avail_out&&(yr=me.avail_out),yr===0)return;p.arraySet(me.output,Ht.pending_buf,Ht.pending_out,yr,me.next_out),me.next_out+=yr,Ht.pending_out+=yr,me.total_out+=yr,me.avail_out-=yr,Ht.pending-=yr,Ht.pending===0&&(Ht.pending_out=0)}function $(me,Ht){x._tr_flush_block(me,me.block_start>=0?me.block_start:-1,me.strstart-me.block_start,Ht),me.block_start=me.strstart,Y(me.strm)}function de(me,Ht){me.pending_buf[me.pending++]=Ht}function be(me,Ht){me.pending_buf[me.pending++]=Ht>>>8&255,me.pending_buf[me.pending++]=Ht&255}function Ce(me,Ht,yr,At){var rr=me.avail_in;return rr>At&&(rr=At),rr===0?0:(me.avail_in-=rr,p.arraySet(Ht,me.input,me.next_in,rr,yr),me.state.wrap===1?me.adler=(0,v.default)(me.adler,Ht,rr,yr):me.state.wrap===2&&(me.adler=(0,m.default)(me.adler,Ht,rr,yr)),me.next_in+=rr,me.total_in+=rr,rr)}function Be(me,Ht){var yr=me.max_chain_length,At=me.strstart,rr,ur,vn=me.prev_length,Bt=me.nice_match,sr=me.strstart>me.w_size-Q?me.strstart-(me.w_size-Q):0,Yt=me.window,pt=me.w_mask,it=me.prev,Fr=me.strstart+V,cn=Yt[At+vn-1],_n=Yt[At+vn];me.prev_length>=me.good_match&&(yr>>=2),Bt>me.lookahead&&(Bt=me.lookahead);do{if(rr=Ht,Yt[rr+vn]!==_n||Yt[rr+vn-1]!==cn||Yt[rr]!==Yt[At]||Yt[++rr]!==Yt[At+1])continue;At+=2,rr++;do;while(Yt[++At]===Yt[++rr]&&Yt[++At]===Yt[++rr]&&Yt[++At]===Yt[++rr]&&Yt[++At]===Yt[++rr]&&Yt[++At]===Yt[++rr]&&Yt[++At]===Yt[++rr]&&Yt[++At]===Yt[++rr]&&Yt[++At]===Yt[++rr]&&At<Fr);if(ur=V-(Fr-At),At=Fr-V,ur>vn){if(me.match_start=Ht,vn=ur,ur>=Bt)break;cn=Yt[At+vn-1],_n=Yt[At+vn]}}while((Ht=it[Ht&pt])>sr&&--yr!==0);return vn<=me.lookahead?vn:me.lookahead}function fe(me){var Ht=me.w_size,yr,At,rr,ur,vn;do{if(ur=me.window_size-me.lookahead-me.strstart,me.strstart>=Ht+(Ht-Q)){p.arraySet(me.window,me.window,Ht,Ht,0),me.match_start-=Ht,me.strstart-=Ht,me.block_start-=Ht,At=me.hash_size,yr=At;do rr=me.head[--yr],me.head[yr]=rr>=Ht?rr-Ht:0;while(--At);At=Ht,yr=At;do rr=me.prev[--yr],me.prev[yr]=rr>=Ht?rr-Ht:0;while(--At);ur+=Ht}if(me.strm.avail_in===0)break;if(At=Ce(me.strm,me.window,me.strstart+me.lookahead,ur),me.lookahead+=At,me.lookahead+me.insert>=z)for(vn=me.strstart-me.insert,me.ins_h=me.window[vn],me.ins_h=(me.ins_h<<me.hash_shift^me.window[vn+1])&me.hash_mask;me.insert&&!(me.ins_h=(me.ins_h<<me.hash_shift^me.window[vn+z-1])&me.hash_mask,me.prev[vn&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=vn,vn++,me.insert--,me.lookahead+me.insert<z););}while(me.lookahead<Q&&me.strm.avail_in!==0)}function Se(me,Ht){var yr=65535;for(yr>me.pending_buf_size-5&&(yr=me.pending_buf_size-5);;){if(me.lookahead<=1){if(fe(me),me.lookahead===0&&Ht===i)return Je;if(me.lookahead===0)break}me.strstart+=me.lookahead,me.lookahead=0;var At=me.block_start+yr;if((me.strstart===0||me.strstart>=At)&&(me.lookahead=me.strstart-At,me.strstart=At,$(me,!1),me.strm.avail_out===0))return Je;if(me.strstart-me.block_start>=me.w_size-Q&&($(me,!1),me.strm.avail_out===0))return Je}return me.insert=0,Ht===e?($(me,!0),me.strm.avail_out===0?ut:Fe):(me.strstart>me.block_start&&($(me,!1),me.strm.avail_out===0),Je)}function ke(me,Ht){for(var yr,At;;){if(me.lookahead<Q){if(fe(me),me.lookahead<Q&&Ht===i)return Je;if(me.lookahead===0)break}if(yr=0,me.lookahead>=z&&(me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+z-1])&me.hash_mask,yr=me.prev[me.strstart&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=me.strstart),yr!==0&&me.strstart-yr<=me.w_size-Q&&(me.match_length=Be(me,yr)),me.match_length>=z)if(At=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,yr=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 At=x._tr_tally(me,0,me.window[me.strstart]),me.lookahead--,me.strstart++;if(At&&($(me,!1),me.strm.avail_out===0))return Je}return me.insert=me.strstart<z-1?me.strstart:z-1,Ht===e?($(me,!0),me.strm.avail_out===0?ut:Fe):me.last_lit&&($(me,!1),me.strm.avail_out===0)?Je:Ve}function rt(me,Ht){for(var yr,At,rr;;){if(me.lookahead<Q){if(fe(me),me.lookahead<Q&&Ht===i)return Je;if(me.lookahead===0)break}if(yr=0,me.lookahead>=z&&(me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+z-1])&me.hash_mask,yr=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,yr!==0&&me.prev_length<me.max_lazy_match&&me.strstart-yr<=me.w_size-Q&&(me.match_length=Be(me,yr),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,At=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,yr=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++,At&&($(me,!1),me.strm.avail_out===0))return Je}else if(me.match_available){if(At=x._tr_tally(me,0,me.window[me.strstart-1]),At&&$(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&&(At=x._tr_tally(me,0,me.window[me.strstart-1]),me.match_available=0),me.insert=me.strstart<z-1?me.strstart:z-1,Ht===e?($(me,!0),me.strm.avail_out===0?ut:Fe):me.last_lit&&($(me,!1),me.strm.avail_out===0)?Je:Ve}function xt(me,Ht){for(var yr,At,rr,ur,vn=me.window;;){if(me.lookahead<=V){if(fe(me),me.lookahead<=V&&Ht===i)return Je;if(me.lookahead===0)break}if(me.match_length=0,me.lookahead>=z&&me.strstart>0&&(rr=me.strstart-1,At=vn[rr],At===vn[++rr]&&At===vn[++rr]&&At===vn[++rr])){ur=me.strstart+V;do;while(At===vn[++rr]&&At===vn[++rr]&&At===vn[++rr]&&At===vn[++rr]&&At===vn[++rr]&&At===vn[++rr]&&At===vn[++rr]&&At===vn[++rr]&&rr<ur);me.match_length=V-(ur-rr),me.match_length>me.lookahead&&(me.match_length=me.lookahead)}if(me.match_length>=z?(yr=x._tr_tally(me,1,me.match_length-z),me.lookahead-=me.match_length,me.strstart+=me.match_length,me.match_length=0):(yr=x._tr_tally(me,0,me.window[me.strstart]),me.lookahead--,me.strstart++),yr&&($(me,!1),me.strm.avail_out===0))return Je}return me.insert=0,Ht===e?($(me,!0),me.strm.avail_out===0?ut:Fe):me.last_lit&&($(me,!1),me.strm.avail_out===0)?Je:Ve}function ht(me,Ht){for(var yr;;){if(me.lookahead===0&&(fe(me),me.lookahead===0)){if(Ht===i)return Je;break}if(me.match_length=0,yr=x._tr_tally(me,0,me.window[me.strstart]),me.lookahead--,me.strstart++,yr&&($(me,!1),me.strm.avail_out===0))return Je}return me.insert=0,Ht===e?($(me,!0),me.strm.avail_out===0?ut:Fe):me.last_lit&&($(me,!1),me.strm.avail_out===0)?Je:Ve}function He(me,Ht,yr,At,rr){this.good_length=me,this.max_lazy=Ht,this.nice_length=yr,this.max_chain=At,this.func=rr}var ir;ir=[new He(0,0,0,0,Se),new He(4,4,8,4,ke),new He(4,5,16,8,ke),new He(4,6,32,32,ke),new He(4,4,16,16,rt),new He(8,16,32,32,rt),new He(8,16,128,128,rt),new He(8,32,128,256,rt),new He(32,128,258,1024,rt),new He(32,258,258,4096,rt)];function ct(me){me.window_size=2*me.w_size,J(me.head),me.max_lazy_match=ir[me.level].max_lazy,me.good_match=ir[me.level].good_length,me.nice_match=ir[me.level].nice_length,me.max_chain_length=ir[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 Xt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=w,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new p.Buf16(j*2),this.dyn_dtree=new p.Buf16((2*X+1)*2),this.bl_tree=new p.Buf16((2*F+1)*2),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new p.Buf16(K+1),this.heap=new p.Buf16(2*P+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new p.Buf16(2*P+1),J(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function hr(me){var Ht;return!me||!me.state?at(me,c):(me.total_in=me.total_out=0,me.data_type=T,Ht=me.state,Ht.pending=0,Ht.pending_out=0,Ht.wrap<0&&(Ht.wrap=-Ht.wrap),Ht.status=Ht.wrap?te:Ie,me.adler=Ht.wrap===2?0:1,Ht.last_flush=i,x._tr_init(Ht),r)}function Jt(me){var Ht=hr(me);return Ht===r&&ct(me.state),Ht}function Pt(me,Ht){return!me||!me.state||me.state.wrap!==2?c:(me.state.gzhead=Ht,r)}function Wt(me,Ht,yr,At,rr,ur){if(!me)return c;var vn=1;if(Ht===A&&(Ht=6),At<0?(vn=0,At=-At):At>15&&(vn=2,At-=16),rr<1||rr>O||yr!==w||At<8||At>15||Ht<0||Ht>9||ur<0||ur>C)return at(me,c);At===8&&(At=9);var Bt=new Xt;return me.state=Bt,Bt.strm=me,Bt.wrap=vn,Bt.gzhead=null,Bt.w_bits=At,Bt.w_size=1<<Bt.w_bits,Bt.w_mask=Bt.w_size-1,Bt.hash_bits=rr+7,Bt.hash_size=1<<Bt.hash_bits,Bt.hash_mask=Bt.hash_size-1,Bt.hash_shift=~~((Bt.hash_bits+z-1)/z),Bt.window=new p.Buf8(Bt.w_size*2),Bt.head=new p.Buf16(Bt.hash_size),Bt.prev=new p.Buf16(Bt.w_size),Bt.lit_bufsize=1<<rr+6,Bt.pending_buf_size=Bt.lit_bufsize*4,Bt.pending_buf=new p.Buf8(Bt.pending_buf_size),Bt.d_buf=1*Bt.lit_bufsize,Bt.l_buf=(1+2)*Bt.lit_bufsize,Bt.level=Ht,Bt.strategy=ur,Bt.method=yr,Jt(me)}function Ge(me,Ht){return Wt(me,Ht,w,I,R,_)}function pe(me,Ht){var yr,At,rr,ur;if(!me||!me.state||Ht>l||Ht<0)return me?at(me,c):c;if(At=me.state,!me.output||!me.input&&me.avail_in!==0||At.status===Me&&Ht!==e)return at(me,me.avail_out===0?g:c);if(At.strm=me,yr=At.last_flush,At.last_flush=Ht,At.status===te)if(At.wrap===2)me.adler=0,de(At,31),de(At,139),de(At,8),At.gzhead?(de(At,(At.gzhead.text?1:0)+(At.gzhead.hcrc?2:0)+(At.gzhead.extra?4:0)+(At.gzhead.name?8:0)+(At.gzhead.comment?16:0)),de(At,At.gzhead.time&255),de(At,At.gzhead.time>>8&255),de(At,At.gzhead.time>>16&255),de(At,At.gzhead.time>>24&255),de(At,At.level===9?2:At.strategy>=S||At.level<2?4:0),de(At,At.gzhead.os&255),At.gzhead.extra&&At.gzhead.extra.length&&(de(At,At.gzhead.extra.length&255),de(At,At.gzhead.extra.length>>8&255)),At.gzhead.hcrc&&(me.adler=(0,m.default)(me.adler,At.pending_buf,At.pending,0)),At.gzindex=0,At.status=q):(de(At,0),de(At,0),de(At,0),de(At,0),de(At,0),de(At,At.level===9?2:At.strategy>=S||At.level<2?4:0),de(At,ae),At.status=Ie);else{var vn=w+(At.w_bits-8<<4)<<8,Bt=-1;At.strategy>=S||At.level<2?Bt=0:At.level<6?Bt=1:At.level===6?Bt=2:Bt=3,vn|=Bt<<6,At.strstart!==0&&(vn|=G),vn+=31-vn%31,At.status=Ie,be(At,vn),At.strstart!==0&&(be(At,me.adler>>>16),be(At,me.adler&65535)),me.adler=1}if(At.status===q)if(At.gzhead.extra){for(rr=At.pending;At.gzindex<(At.gzhead.extra.length&65535)&&!(At.pending===At.pending_buf_size&&(At.gzhead.hcrc&&At.pending>rr&&(me.adler=(0,m.default)(me.adler,At.pending_buf,At.pending-rr,rr)),Y(me),rr=At.pending,At.pending===At.pending_buf_size));)de(At,At.gzhead.extra[At.gzindex]&255),At.gzindex++;At.gzhead.hcrc&&At.pending>rr&&(me.adler=(0,m.default)(me.adler,At.pending_buf,At.pending-rr,rr)),At.gzindex===At.gzhead.extra.length&&(At.gzindex=0,At.status=le)}else At.status=le;if(At.status===le)if(At.gzhead.name){rr=At.pending;do{if(At.pending===At.pending_buf_size&&(At.gzhead.hcrc&&At.pending>rr&&(me.adler=(0,m.default)(me.adler,At.pending_buf,At.pending-rr,rr)),Y(me),rr=At.pending,At.pending===At.pending_buf_size)){ur=1;break}At.gzindex<At.gzhead.name.length?ur=At.gzhead.name.charCodeAt(At.gzindex++)&255:ur=0,de(At,ur)}while(ur!==0);At.gzhead.hcrc&&At.pending>rr&&(me.adler=(0,m.default)(me.adler,At.pending_buf,At.pending-rr,rr)),ur===0&&(At.gzindex=0,At.status=re)}else At.status=re;if(At.status===re)if(At.gzhead.comment){rr=At.pending;do{if(At.pending===At.pending_buf_size&&(At.gzhead.hcrc&&At.pending>rr&&(me.adler=(0,m.default)(me.adler,At.pending_buf,At.pending-rr,rr)),Y(me),rr=At.pending,At.pending===At.pending_buf_size)){ur=1;break}At.gzindex<At.gzhead.comment.length?ur=At.gzhead.comment.charCodeAt(At.gzindex++)&255:ur=0,de(At,ur)}while(ur!==0);At.gzhead.hcrc&&At.pending>rr&&(me.adler=(0,m.default)(me.adler,At.pending_buf,At.pending-rr,rr)),ur===0&&(At.status=we)}else At.status=we;if(At.status===we&&(At.gzhead.hcrc?(At.pending+2>At.pending_buf_size&&Y(me),At.pending+2<=At.pending_buf_size&&(de(At,me.adler&255),de(At,me.adler>>8&255),me.adler=0,At.status=Ie)):At.status=Ie),At.pending!==0){if(Y(me),me.avail_out===0)return At.last_flush=-1,r}else if(me.avail_in===0&&he(Ht)<=he(yr)&&Ht!==e)return at(me,g);if(At.status===Me&&me.avail_in!==0)return at(me,g);if(me.avail_in!==0||At.lookahead!==0||Ht!==i&&At.status!==Me){var sr=At.strategy===S?ht(At,Ht):At.strategy===E?xt(At,Ht):ir[At.level].func(At,Ht);if((sr===ut||sr===Fe)&&(At.status=Me),sr===Je||sr===ut)return me.avail_out===0&&(At.last_flush=-1),r;if(sr===Ve&&(Ht===t?x._tr_align(At):Ht!==l&&(x._tr_stored_block(At,0,0,!1),Ht===s&&(J(At.head),At.lookahead===0&&(At.strstart=0,At.block_start=0,At.insert=0))),Y(me),me.avail_out===0))return At.last_flush=-1,r}return Ht!==e?r:At.wrap<=0?a:(At.wrap===2?(de(At,me.adler&255),de(At,me.adler>>8&255),de(At,me.adler>>16&255),de(At,me.adler>>24&255),de(At,me.total_in&255),de(At,me.total_in>>8&255),de(At,me.total_in>>16&255),de(At,me.total_in>>24&255)):(be(At,me.adler>>>16),be(At,me.adler&65535)),Y(me),At.wrap>0&&(At.wrap=-At.wrap),At.pending!==0?r:a)}function se(me){var Ht;return!me||!me.state?c:(Ht=me.state.status,Ht!==te&&Ht!==q&&Ht!==le&&Ht!==re&&Ht!==we&&Ht!==Ie&&Ht!==Me?at(me,c):(me.state=null,Ht===Ie?at(me,h):r))}function lt(me,Ht){var yr=Ht.length,At,rr,ur,vn,Bt,sr,Yt,pt;if(!me||!me.state)return c;if(At=me.state,vn=At.wrap,vn===2||vn===1&&At.status!==te||At.lookahead)return c;for(vn===1&&(me.adler=(0,v.default)(me.adler,Ht,yr,0)),At.wrap=0,yr>=At.w_size&&(vn===0&&(J(At.head),At.strstart=0,At.block_start=0,At.insert=0),pt=new p.Buf8(At.w_size),p.arraySet(pt,Ht,yr-At.w_size,At.w_size,0),Ht=pt,yr=At.w_size),Bt=me.avail_in,sr=me.next_in,Yt=me.input,me.avail_in=yr,me.next_in=0,me.input=Ht,fe(At);At.lookahead>=z;){rr=At.strstart,ur=At.lookahead-(z-1);do At.ins_h=(At.ins_h<<At.hash_shift^At.window[rr+z-1])&At.hash_mask,At.prev[rr&At.w_mask]=At.head[At.ins_h],At.head[At.ins_h]=rr,rr++;while(--ur);At.strstart=rr,At.lookahead=z-1,fe(At)}return At.strstart+=At.lookahead,At.block_start=At.strstart,At.insert=At.lookahead,At.lookahead=0,At.match_length=At.prev_length=z-1,At.match_available=0,me.next_in=sr,me.input=Yt,me.avail_in=Bt,At.wrap=vn,r}var qe="pako deflate (from Nodeca project)";D.deflateInfo=qe},lOQZ:function(k,D,n){var y=n("QBsz"),p=n("U/Mo"),x=p.getSymbolSize,v=p.getNodeGlobalScale,m=Math.PI,f=[];function d(o,i){var t=o.coordinateSystem;if(t&&t.type!=="view")return;var s=t.getBoundingRect(),e=o.getData(),l=e.graph,r=s.width/2+s.x,a=s.height/2+s.y,c=Math.min(s.width,s.height)/2,h=e.count();if(e.setLayout({cx:r,cy:a}),!h)return;u[i](o,t,l,e,c,r,a,h),l.eachEdge(function(g){var A=g.getModel().get("lineStyle.curveness")||0,b=y.clone(g.node1.getLayout()),S=y.clone(g.node2.getLayout()),E,C=(b[0]+S[0])/2,_=(b[1]+S[1])/2;+A&&(A*=3,E=[r*A+C*(1-A),a*A+_*(1-A)]),g.setLayout([b,S,E])})}var u={value:function(o,i,t,s,e,l,r,a){var c=0,h=s.getSum("value"),g=Math.PI*2/(h||a);t.eachNode(function(A){var b=A.getValue("value"),S=g*(h?b:1)/2;c+=S,A.setLayout([e*Math.cos(c)+l,e*Math.sin(c)+r]),c+=S})},symbolSize:function(o,i,t,s,e,l,r,a){var c=0;f.length=a;var h=v(o);t.eachNode(function(b){var S=x(b);isNaN(S)&&(S=2),S<0&&(S=0),S*=h;var E=Math.asin(S/2/e);isNaN(E)&&(E=m/2),f[b.dataIndex]=E,c+=E*2});var g=(2*m-c)/a/2,A=0;t.eachNode(function(b){var S=g+f[b.dataIndex];A+=S,b.setLayout([e*Math.cos(A)+l,e*Math.sin(A)+r]),A+=S})}};D.circularLayout=d},lPiR:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(p){var x=y,v=x.lib,m=v.WordArray,f=v.Hasher,d=x.algo,u=[],o=[];(function(){function s(a){for(var c=p.sqrt(a),h=2;h<=c;h++)if(!(a%h))return!1;return!0}function e(a){return(a-(a|0))*4294967296|0}for(var l=2,r=0;r<64;)s(l)&&(r<8&&(u[r]=e(p.pow(l,1/2))),o[r]=e(p.pow(l,1/3)),r++),l++})();var i=[],t=d.SHA256=f.extend({_doReset:function(){this._hash=new m.init(u.slice(0))},_doProcessBlock:function(e,l){for(var r=this._hash.words,a=r[0],c=r[1],h=r[2],g=r[3],A=r[4],b=r[5],S=r[6],E=r[7],C=0;C<64;C++){if(C<16)i[C]=e[l+C]|0;else{var _=i[C-15],T=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,w=i[C-2],O=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;i[C]=T+i[C-7]+O+i[C-16]}var I=A&b^~A&S,R=a&c^a&h^c&h,M=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),B=(A<<26|A>>>6)^(A<<21|A>>>11)^(A<<7|A>>>25),P=E+B+I+o[C]+i[C],X=M+R;E=S,S=b,b=A,A=g+P|0,g=h,h=c,c=a,a=P+X|0}r[0]=r[0]+a|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]+S|0,r[7]=r[7]+E|0},_doFinalize:function(){var e=this._data,l=e.words,r=this._nDataBytes*8,a=e.sigBytes*8;return l[a>>>5]|=128<<24-a%32,l[(a+64>>>9<<4)+14]=p.floor(r/4294967296),l[(a+64>>>9<<4)+15]=r,e.sigBytes=l.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(k,D,n){var y=n("NykK"),p=n("GoyQ"),x="[object AsyncFunction]",v="[object Function]",m="[object GeneratorFunction]",f="[object Proxy]";function d(u){if(!p(u))return!1;var o=y(u);return o==v||o==m||o==x||o==f}k.exports=d},lUTK:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("x54q"),v=n.n(x),m=n("5Dmo")},lZu9:function(k,D,n){(function(y){y(n("VrN/"),n("1eCo"),n("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 u in d)d.hasOwnProperty(u)&&x.tokenTypeOverrides[u]&&(d[u]=x.tokenTypeOverrides[u]);var o=/^([*\-_])(?:\s*\1){2,}\s*$/,i=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,t=/^\[(x| )\](?=\s)/i,s=x.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,e=/^ {0,3}(?:\={1,}|-{2,})\s*$/,l=/^[^#!\[\]*_\\<>` "'(~:]+/,r=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,a=/^\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 S(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),G=z.indentedCode,te=z.prevLine.hr,q=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,q)){for(z.list=null;re<z.listStack[z.listStack.length-1];)z.listStack.pop(),z.listStack.length?z.indentation=z.listStack[z.listStack.length-1]:z.list=!1;z.list!==!1&&(z.indentationDiff=re-z.listStack[z.listStack.length-1])}var we=!Q&&!te&&!z.prevLine.header&&(!q||!G)&&!z.prevLine.fencedCodeEnd,Ie=(z.list===!1||te||Q)&&z.indentation<=le&&K.match(o),Me=null;if(z.indentationDiff>=4&&(G||z.prevLine.fencedCodeEnd||z.prevLine.header||Q))return K.skipToEnd(),z.indentedCode=!0,d.code;if(K.eatSpace())return null;if(V&&z.indentation<=le&&(Me=K.match(s))&&Me[1].length<=6)return z.quote=0,z.header=Me[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(!Ie&&!z.setext&&V&&z.indentation<=le&&(Me=K.match(i))){var Je=Me[1]?"ol":"ul";return z.indentation=re+K.current().length,z.list=!0,z.quote=0,z.listStack.push(z.indentation),z.em=!1,z.strong=!1,z.code=!1,z.strikethrough=!1,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&&(Me=K.match(r,!0)))return z.quote=0,z.fencedEndRE=new RegExp(Me[1]+"+ *$"),z.localMode=x.fencedCodeBlockHighlighting&&f(Me[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||(!we||!q)&&!z.quote&&z.list===!1&&!z.code&&!Ie&&!a.test(K.string)&&(Me=K.lookAhead(1))&&(Me=Me.match(e)))return z.setext?(z.header=z.setext,z.setext=0,K.skipToEnd(),x.highlightFormatting&&(z.formatting="header")):(z.header=Me[0].charAt(0)=="="?1:2,z.setext=z.header),z.thisLine.header=!0,z.f=z.inline,T(z);if(Ie)return K.skipToEnd(),z.hr=!0,z.thisLine.hr=!0,d.hr;if(K.peek()==="[")return g(K,z,P)}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,G=V+3;if(z.fencedEndRE&&z.indentation<=G&&(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 w(K,z){return K.match(l,!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 G=K.next();if(z.linkTitle){z.linkTitle=!1;var te=G;G==="("&&(te=")"),te=(te+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var q="^\\s*(?:[^"+te+"\\\\]+|\\\\\\\\|\\\\.)"+te;if(K.match(new RegExp(q),!0))return d.linkHref}if(G==="`"){var 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 we=T(z);return z.code=0,we}else return z.formatting=le,T(z)}else if(z.code)return T(z);if(G==="\\"&&(K.next(),x.highlightFormatting)){var Ie=T(z),Me=d.formatting+"-escape";return Ie?Ie+" "+Me:Me}if(G==="!"&&K.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return z.imageMarker=!0,z.image=!0,x.highlightFormatting&&(z.formatting="image"),T(z);if(G==="["&&z.imageMarker&&K.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return z.imageMarker=!1,z.imageAltText=!0,x.highlightFormatting&&(z.formatting="image"),T(z);if(G==="]"&&z.imageAltText){x.highlightFormatting&&(z.formatting="image");var Ie=T(z);return z.imageAltText=!1,z.image=!1,z.inline=z.f=R,Ie}if(G==="["&&!z.image)return z.linkText&&K.match(/^.*?\]/)||(z.linkText=!0,x.highlightFormatting&&(z.formatting="link")),T(z);if(G==="]"&&z.linkText){x.highlightFormatting&&(z.formatting="link");var Ie=T(z);return z.linkText=!1,z.inline=z.f=K.match(/\(.*?\)| ?\[.*?\]/,!1)?R:O,Ie}if(G==="<"&&K.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=I,x.highlightFormatting&&(z.formatting="link");var Ie=T(z);return Ie?Ie+=" ":Ie="",Ie+d.linkInline}if(G==="<"&&K.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=I,x.highlightFormatting&&(z.formatting="link");var Ie=T(z);return Ie?Ie+=" ":Ie="",Ie+d.linkEmail}if(x.xml&&G==="<"&&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 Ve=K.string.substring(K.start,Je);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ve)&&(z.md_inside=!0)}return K.backUp(1),z.htmlState=y.startState(v),A(K,z,C)}if(x.xml&&G==="<"&&K.match(/^\/\w*?>/))return z.md_inside=!1,"tag";if(G==="*"||G==="_"){for(var ut=1,Fe=K.pos==1?" ":K.string.charAt(K.pos-2);ut<3&&K.eat(G);)ut++;var ae=K.peek()||" ",at=!/\s/.test(ae)&&(!c.test(ae)||/\s/.test(Fe)||c.test(Fe)),he=!/\s/.test(Fe)&&(!c.test(Fe)||/\s/.test(ae)||c.test(ae)),J=null,Y=null;if(ut%2&&(!z.em&&at&&(G==="*"||!he||c.test(Fe))?J=!0:z.em==G&&he&&(G==="*"||!at||c.test(ae))&&(J=!1)),ut>1&&(!z.strong&&at&&(G==="*"||!he||c.test(Fe))?Y=!0:z.strong==G&&he&&(G==="*"||!at||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=G),Y===!0&&(z.strong=G);var we=T(z);return J===!1&&(z.em=!1),Y===!1&&(z.strong=!1),we}}else if(G===" "&&(K.eat("*")||K.eat("_"))){if(K.peek()===" ")return T(z);K.backUp(1)}if(x.strikethrough){if(G==="~"&&K.eatWhile(G)){if(z.strikethrough){x.highlightFormatting&&(z.formatting="strikethrough");var we=T(z);return z.strikethrough=!1,we}else if(K.match(/^[^\s]/,!1))return z.strikethrough=!0,x.highlightFormatting&&(z.formatting="strikethrough"),T(z)}else if(G===" "&&K.match(/^~~/,!0)){if(K.peek()===" ")return T(z);K.backUp(2)}}if(x.emoji&&G===":"&&K.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){z.emoji=!0,x.highlightFormatting&&(z.formatting="emoji");var $=T(z);return z.emoji=!1,$}return G===" "&&(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 R(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 M={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};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 G=T(V);return V.linkHref=!1,G}return z.match(M[K]),V.linkHref=!0,T(V)}}function P(K,z){return K.match(/^([^\]\\]|\\.)*\]:/,!1)?(z.f=X,K.next(),x.highlightFormatting&&(z.formatting="link"),z.linkText=!0,T(z)):g(K,z,O)}function X(K,z){if(K.match(/^\]:/,!0)){z.f=z.inline=F,x.highlightFormatting&&(z.formatting="link");var V=T(z);return z.linkText=!1,V}return K.match(/^([^\]\\]|\\.)+/,!0),d.linkText}function F(K,z){return K.eatSpace()?null:(K.match(/^[^\s]+/,!0),K.peek()===void 0?z.linkTitle=!0:K.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),z.f=z.inline=O,d.linkHref+" url")}var j={startState:function(){return{f:E,prevLine:{stream:null},thisLine:{stream:null},block:E,htmlState:null,indentation:0,inline:O,text:w,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(z){return{f:z.f,prevLine:z.prevLine,thisLine:z.thisLine,block:z.block,htmlState:z.htmlState&&y.copyState(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 S(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:S,getType:T,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return j},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},laiN:function(k,D,n){var y=n("ProS");n("GVMX"),n("MH26"),y.registerPreprocessor(function(p){p.markLine=p.markLine||{}})},ljhN:function(k,D){function n(y,p){return y===p||y!==y&&p!==p}k.exports=n},lnY3:function(k,D,n){},loD1:function(k,D){function n(y,p,x,v,m,f,d){if(m===0)return!1;var u=m,o=0,i=y;if(d>p+u&&d>v+u||d<p-u&&d<v-u||f>y+u&&f>x+u||f<y-u&&f<x-u)return!1;if(y!==x)o=(p-v)/(y-x),i=(y*v-x*p)/(y-x);else return Math.abs(f-y)<=u/2;var t=o*f-d+i,s=t*t/(o*o+1);return s<=u/2*u/2}D.containStroke=n},lr6o:function(k,D,n){"use strict";var y=n("rePB"),p=n("Ff2n"),x=n("VTBJ"),v=n("1OyB"),m=n("vuIU"),f=n("JX7q"),d=n("Ji7U"),u=n("LK+K"),o=n("q1tI"),i=n("TSYQ"),t=n.n(i),s=n("FTAc"),e=n("wPhX"),l=function(C){var _=C.prefixCls,T=C.level,w=C.isStart,O=C.isEnd;if(!T)return null;for(var I="".concat(_,"-indent-unit"),R=[],M=0;M<T;M+=1){var B;R.push(o.createElement("span",{key:M,className:t()(I,(B={},Object(y.a)(B,"".concat(I,"-start"),w[M+1]),Object(y.a)(B,"".concat(I,"-end"),O[M+1]),Object(y.a)(B,"".concat(I,"-end-first-level"),!M&&O[0]),B))}))}return o.createElement("span",{"aria-hidden":"true",className:"".concat(_,"-indent")},R)},r=l,a=n("c3jg"),c="open",h="close",g="---",A=function(E){Object(d.a)(_,E);var C=Object(u.a)(_);function _(){var T;return Object(v.a)(this,_),T=C.apply(this,arguments),T.state={dragNodeHighlight:!1},T.onSelectorClick=function(w){var O=T.props.context.onNodeClick;O(w,Object(a.b)(T.props)),T.isSelectable()?T.onSelect(w):T.onCheck(w)},T.onSelectorDoubleClick=function(w){var O=T.props.context.onNodeDoubleClick;O(w,Object(a.b)(T.props))},T.onSelect=function(w){if(T.isDisabled())return;var O=T.props.context.onNodeSelect;w.preventDefault(),O(w,Object(a.b)(T.props))},T.onCheck=function(w){if(T.isDisabled())return;var O=T.props,I=O.disableCheckbox,R=O.checked,M=T.props.context.onNodeCheck;if(!T.isCheckable()||I)return;w.preventDefault();var B=!R;M(w,Object(a.b)(T.props),B)},T.onMouseEnter=function(w){var O=T.props.context.onNodeMouseEnter;O(w,Object(a.b)(T.props))},T.onMouseLeave=function(w){var O=T.props.context.onNodeMouseLeave;O(w,Object(a.b)(T.props))},T.onContextMenu=function(w){var O=T.props.context.onNodeContextMenu;O(w,Object(a.b)(T.props))},T.onDragStart=function(w){var O=T.props.context.onNodeDragStart;w.stopPropagation(),T.setState({dragNodeHighlight:!0}),O(w,Object(f.a)(T));try{w.dataTransfer.setData("text/plain","")}catch(I){}},T.onDragEnter=function(w){var O=T.props.context.onNodeDragEnter;w.preventDefault(),w.stopPropagation(),O(w,Object(f.a)(T))},T.onDragOver=function(w){var O=T.props.context.onNodeDragOver;w.preventDefault(),w.stopPropagation(),O(w,Object(f.a)(T))},T.onDragLeave=function(w){var O=T.props.context.onNodeDragLeave;w.stopPropagation(),O(w,Object(f.a)(T))},T.onDragEnd=function(w){var O=T.props.context.onNodeDragEnd;w.stopPropagation(),T.setState({dragNodeHighlight:!1}),O(w,Object(f.a)(T))},T.onDrop=function(w){var O=T.props.context.onNodeDrop;w.preventDefault(),w.stopPropagation(),T.setState({dragNodeHighlight:!1}),O(w,Object(f.a)(T))},T.onExpand=function(w){var O=T.props.context.onNodeExpand;O(w,Object(a.b)(T.props))},T.setSelectHandle=function(w){T.selectHandle=w},T.getNodeState=function(){var w=T.props.expanded;return T.isLeaf()?null:w?c:h},T.hasChildren=function(){var w=T.props.eventKey,O=T.props.context.keyEntities,I=O[w]||{},R=I.children;return!!(R||[]).length},T.isLeaf=function(){var w=T.props,O=w.isLeaf,I=w.loaded,R=T.props.context.loadData,M=T.hasChildren();return O===!1?!1:O||!R&&!M||R&&I&&!M},T.isDisabled=function(){var w=T.props.disabled,O=T.props.context.disabled;return!!(O||w)},T.isCheckable=function(){var w=T.props.checkable,O=T.props.context.checkable;return!O||w===!1?!1:O},T.syncLoadData=function(w){var O=w.expanded,I=w.loading,R=w.loaded,M=T.props.context,B=M.loadData,P=M.onNodeLoad;if(I)return;B&&O&&!T.isLeaf()&&(!T.hasChildren()&&!R&&P(Object(a.b)(T.props)))},T.renderSwitcher=function(){var w=T.props,O=w.expanded,I=w.switcherIcon,R=T.props.context,M=R.prefixCls,B=R.switcherIcon,P=I||B;if(T.isLeaf())return o.createElement("span",{className:t()("".concat(M,"-switcher"),"".concat(M,"-switcher-noop"))},typeof P=="function"?P(Object(x.a)(Object(x.a)({},T.props),{},{isLeaf:!0})):P);var X=t()("".concat(M,"-switcher"),"".concat(M,"-switcher_").concat(O?c:h));return o.createElement("span",{onClick:T.onExpand,className:X},typeof P=="function"?P(Object(x.a)(Object(x.a)({},T.props),{},{isLeaf:!1})):P)},T.renderCheckbox=function(){var w=T.props,O=w.checked,I=w.halfChecked,R=w.disableCheckbox,M=T.props.context.prefixCls,B=T.isDisabled(),P=T.isCheckable();if(!P)return null;var X=typeof P!="boolean"?P:null;return o.createElement("span",{className:t()("".concat(M,"-checkbox"),O&&"".concat(M,"-checkbox-checked"),!O&&I&&"".concat(M,"-checkbox-indeterminate"),(B||R)&&"".concat(M,"-checkbox-disabled")),onClick:T.onCheck},X)},T.renderIcon=function(){var w=T.props.loading,O=T.props.context.prefixCls;return o.createElement("span",{className:t()("".concat(O,"-iconEle"),"".concat(O,"-icon__").concat(T.getNodeState()||"docu"),w&&"".concat(O,"-icon_loading"))})},T.renderSelector=function(){var w=T.state.dragNodeHighlight,O=T.props,I=O.title,R=O.selected,M=O.icon,B=O.loading,P=O.data,X=T.props.context,F=X.prefixCls,j=X.showIcon,K=X.icon,z=X.draggable,V=X.loadData,Q=X.titleRender,G=T.isDisabled(),te="".concat(F,"-node-content-wrapper"),q;if(j){var le=M||K;q=le?o.createElement("span",{className:t()("".concat(F,"-iconEle"),"".concat(F,"-icon__customize"))},typeof le=="function"?le(T.props):le):T.renderIcon()}else V&&B&&(q=T.renderIcon());var re;typeof I=="function"?re=I(P):Q?re=Q(P):re=I;var we=o.createElement("span",{className:"".concat(F,"-title")},re);return o.createElement("span",{ref:T.setSelectHandle,title:typeof I=="string"?I:"",className:t()("".concat(te),"".concat(te,"-").concat(T.getNodeState()||"normal"),!G&&(R||w)&&"".concat(F,"-node-selected"),!G&&z&&"draggable"),draggable:!G&&z||void 0,"aria-grabbed":!G&&z||void 0,onMouseEnter:T.onMouseEnter,onMouseLeave:T.onMouseLeave,onContextMenu:T.onContextMenu,onClick:T.onSelectorClick,onDoubleClick:T.onSelectorDoubleClick,onDragStart:z?T.onDragStart:void 0},q,we)},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 w=this.props.selectable,O=this.props.context.selectable;return typeof w=="boolean"?w:O}},{key:"render",value:function(){var w,O=this.props,I=O.eventKey,R=O.className,M=O.style,B=O.dragOver,P=O.dragOverGapTop,X=O.dragOverGapBottom,F=O.isLeaf,j=O.isStart,K=O.isEnd,z=O.expanded,V=O.selected,Q=O.checked,G=O.halfChecked,te=O.loading,q=O.domRef,le=O.active,re=O.onMouseMove,we=Object(p.a)(O,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Ie=this.props.context,Me=Ie.prefixCls,Je=Ie.filterTreeNode,Ve=Ie.draggable,ut=Ie.keyEntities,Fe=this.isDisabled(),ae=Object(e.f)(we),at=ut[I]||{},he=at.level,J=K[K.length-1];return o.createElement("div",Object.assign({ref:q,className:t()(R,"".concat(Me,"-treenode"),(w={},Object(y.a)(w,"".concat(Me,"-treenode-disabled"),Fe),Object(y.a)(w,"".concat(Me,"-treenode-switcher-").concat(z?"open":"close"),!F),Object(y.a)(w,"".concat(Me,"-treenode-checkbox-checked"),Q),Object(y.a)(w,"".concat(Me,"-treenode-checkbox-indeterminate"),G),Object(y.a)(w,"".concat(Me,"-treenode-selected"),V),Object(y.a)(w,"".concat(Me,"-treenode-loading"),te),Object(y.a)(w,"".concat(Me,"-treenode-active"),le),Object(y.a)(w,"".concat(Me,"-treenode-leaf-last"),J),Object(y.a)(w,"drag-over",!Fe&&B),Object(y.a)(w,"drag-over-gap-top",!Fe&&P),Object(y.a)(w,"drag-over-gap-bottom",!Fe&&X),Object(y.a)(w,"filter-node",Je&&Je(Object(a.b)(this.props))),w)),style:M,onDragEnter:Ve?this.onDragEnter:void 0,onDragOver:Ve?this.onDragOver:void 0,onDragLeave:Ve?this.onDragLeave:void 0,onDrop:Ve?this.onDrop:void 0,onDragEnd:Ve?this.onDragEnd:void 0,onMouseMove:re},ae),o.createElement(r,{prefixCls:Me,level:he,isStart:j,isEnd:K}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),_}(o.Component),b=function(C){return o.createElement(s.a.Consumer,null,function(_){return o.createElement(A,Object.assign({},C,{context:_}))})};b.displayName="TreeNode",b.defaultProps={title:g},b.isTreeNode=1;var S=D.a=b},lrIw:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("cDf5"),v=n.n(x),m=n("J4zp"),f=n.n(m),d=n("q1tI"),u=n.n(d),o=n("Zm9Q"),i=n("TSYQ"),t=n.n(i),s=n("BGR+"),e=n("2fM7"),l=n("H84U"),r=n("uaoM"),a=n("0n0R"),c=e.a.Option,h=e.a;function g(S){return S&&S.type&&(S.type.isSelectOption||S.type.isSelectOptGroup)}var A=function(E,C){var _=E.prefixCls,T=E.className,w=E.children,O=E.dataSource,I=Object(o.a)(w),R=d.useRef();d.useImperativeHandle(C,function(){return R.current});var M;if(I.length===1&&Object(a.b)(I[0])&&!g(I[0])){var B=f()(I,1);M=B[0]}var P=function(){return M},X;return I.length&&g(I[0])?X=w:X=O?O.map(function(F){if(Object(a.b)(F))return F;switch(v()(F)){case"string":return d.createElement(c,{key:F,value:F},F);case"object":{var j=F.value;return d.createElement(c,{key:j,value:j},F.text)}default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[],d.useEffect(function(){Object(r.a)(!("dataSource"in E),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),Object(r.a)(!M||!("size"in E),"AutoComplete","You need to control style self instead of setting `size` when using customize input.")},[]),d.createElement(l.a,null,function(F){var j=F.getPrefixCls,K=j("select",_);return d.createElement(h,p()({ref:R},Object(s.default)(E,["dataSource"]),{prefixCls:K,className:t()(T,"".concat(K,"-auto-complete")),mode:e.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:P}),X)})},b=d.forwardRef(A);b.Option=c,D.a=b},lwQL:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("9wZj"),v=n("c8qY"),m=n("SgGq"),f=n("Ae+d"),d=n("xSat"),u=d.onIrrelevantElement,o=n("IwbS"),i=n("SA8n"),t=n("U/Mo"),s=t.getNodeGlobalScale,e="__focusNodeAdjacency",l="__unfocusNodeAdjacency",r=["itemStyle","opacity"],a=["lineStyle","opacity"];function c(b,S){var E=b.getVisual("opacity");return E!=null?E:b.getModel().get(S)}function h(b,S,E){var C=b.getGraphicEl(),_=c(b,S);E!=null&&(_==null&&(_=1),_*=E),C.downplay&&C.downplay(),C.traverse(function(T){if(!T.isGroup){var w=T.lineLabelOriginalOpacity;(w==null||E!=null)&&(w=_),T.setStyle("opacity",w)}})}function g(b,S){var E=c(b,S),C=b.getGraphicEl();C.traverse(function(_){!_.isGroup&&_.setStyle("opacity",E)}),C.highlight&&C.highlight()}var A=y.extendChartView({type:"graph",init:function(b,S){var E=new x,C=new v,_=this.group;this._controller=new m(S.getZr()),this._controllerHost={target:_},_.add(E.group),_.add(C.group),this._symbolDraw=E,this._lineDraw=C,this._firstRender=!0},render:function(b,S,E){var C=this,_=b.coordinateSystem;this._model=b;var T=this._symbolDraw,w=this._lineDraw,O=this.group;if(_.type==="view"){var I={position:_.position,scale:_.scale};this._firstRender?O.attr(I):o.updateProps(O,I,b)}i(b.getGraph(),s(b));var R=b.getData();T.updateData(R);var M=b.getEdgeData();w.updateData(M),this._updateNodeAndLinkScale(),this._updateController(b,S,E),clearTimeout(this._layoutTimeout);var B=b.forceLayout,P=b.get("force.layoutAnimation");B&&this._startForceLayoutIteration(B,P),R.eachItemGraphicEl(function(K,z){var V=R.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,P),B.setFixed(z),R.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[l]&&K.off("mouseout",K[l]),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[l]=function(){C._dispatchUnfocus(E)}))},this),R.graph.eachEdge(function(K){var z=K.getGraphicEl();z[e]&&z.off("mouseover",z[e]),z[l]&&z.off("mouseout",z[l]),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[l]=function(){C._dispatchUnfocus(E)}))});var X=b.get("layout")==="circular"&&b.get("circular.rotateLabel"),F=R.getLayout("cx"),j=R.getLayout("cy");R.eachItemGraphicEl(function(K,z){var V=R.getItemModel(z),Q=V.get("label.rotate")||0,G=K.getSymbolPath();if(X){var te=R.getItemLayout(z),q=Math.atan2(te[1]-j,te[0]-F);q<0&&(q=Math.PI*2+q);var le=te[0]<F;le&&(q=q-Math.PI);var re=le?"left":"right";o.modifyLabelStyle(G,{textRotation:-q,textPosition:re,textOrigin:"center"},{textPosition:re})}else o.modifyLabelStyle(G,{textRotation:Q*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(b,S){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,S,E,C){var _=b.getData(),T=_.graph,w=C.dataIndex,O=C.edgeDataIndex,I=T.getNodeByIndex(w),R=T.getEdgeByIndex(O);if(!I&&!R)return;T.eachNode(function(M){h(M,r,.1)}),T.eachEdge(function(M){h(M,a,.1)}),I&&(g(I,r),p.each(I.edges,function(M){if(M.dataIndex<0)return;g(M,a),g(M.node1,r),g(M.node2,r)})),R&&(g(R,a),g(R.node1,r),g(R.node2,r))},unfocusNodeAdjacency:function(b,S,E,C){var _=b.getData().graph;_.eachNode(function(T){h(T,r)}),_.eachEdge(function(T){h(T,a)})},_startForceLayoutIteration:function(b,S){var E=this;(function C(){b.step(function(_){E.updateLayout(E._model),(E._layouting=!_)&&(S?E._layoutTimeout=setTimeout(C,16):C())})})()},_updateController:function(b,S,E){var C=this._controller,_=this._controllerHost,T=this.group;if(C.setPointerChecker(function(w,O,I){var R=T.getBoundingRect();return R.applyTransform(T.transform),R.contain(O,I)&&!u(w,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(w){f.updateViewOnPan(_,w.dx,w.dy),E.dispatchAction({seriesId:b.id,type:"graphRoam",dx:w.dx,dy:w.dy})}).on("zoom",function(w){f.updateViewOnZoom(_,w.scale,w.originX,w.originY),E.dispatchAction({seriesId:b.id,type:"graphRoam",zoom:w.scale,originX:w.originX,originY:w.originY}),this._updateNodeAndLinkScale(),i(b.getGraph(),s(b)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var b=this._model,S=b.getData(),E=s(b),C=[E,E];S.eachItemGraphicEl(function(_,T){_.attr("scale",C)})},updateLayout:function(b){i(b.getGraph(),s(b)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(b,S){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});k.exports=A},m546:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};D.default=y},m9t5:function(k,D,n){var y=n("KCsZ"),p=y([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),x={getAreaStyle:function(v,m){return p(this,v,m)}};k.exports=x},mBDr:function(k,D,n){"use strict";n.d(D,"a",function(){return x});var y=n("q1tI"),p=n.n(y);function x(v){var m=y.useRef();m.current=v;var f=y.useCallback(function(){for(var d,u=arguments.length,o=new Array(u),i=0;i<u;i++)o[i]=arguments[i];return(d=m.current)===null||d===void 0?void 0:d.call.apply(d,[m].concat(o))},[]);return f}},mFDi:function(k,D,n){var y=n("QBsz"),p=n("Fofx"),x=y.applyTransform,v=Math.min,m=Math.max;function f(u,o,i,t){i<0&&(u=u+i,i=-i),t<0&&(o=o+t,t=-t),this.x=u,this.y=o,this.width=i,this.height=t}f.prototype={constructor:f,union:function(o){var i=v(o.x,this.x),t=v(o.y,this.y);this.width=m(o.x+o.width,this.x+this.width)-i,this.height=m(o.y+o.height,this.y+this.height)-t,this.x=i,this.y=t},applyTransform:function(){var u=[],o=[],i=[],t=[];return function(s){if(!s)return;u[0]=i[0]=this.x,u[1]=t[1]=this.y,o[0]=t[0]=this.x+this.width,o[1]=i[1]=this.y+this.height,x(u,u,s),x(o,o,s),x(i,i,s),x(t,t,s),this.x=v(u[0],o[0],i[0],t[0]),this.y=v(u[1],o[1],i[1],t[1]);var e=m(u[0],o[0],i[0],t[0]),l=m(u[1],o[1],i[1],t[1]);this.width=e-this.x,this.height=l-this.y}}(),calculateTransform:function(o){var i=this,t=o.width/i.width,s=o.height/i.height,e=p.create();return p.translate(e,e,[-i.x,-i.y]),p.scale(e,e,[t,s]),p.translate(e,e,[o.x,o.y]),e},intersect:function(o){if(!o)return!1;o instanceof f||(o=f.create(o));var i=this,t=i.x,s=i.x+i.width,e=i.y,l=i.y+i.height,r=o.x,a=o.x+o.width,c=o.y,h=o.y+o.height;return!(s<r||a<t||l<c||h<e)},contain:function(o,i){var t=this;return o>=t.x&&o<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},clone:function(){return new f(this.x,this.y,this.width,this.height)},copy:function(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(u){return new f(u.x,u.y,u.width,u.height)};var d=f;k.exports=d},mHUz:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={XK_VoidSymbol:16777215,XK_BackSpace:65288,XK_Tab:65289,XK_Linefeed:65290,XK_Clear:65291,XK_Return:65293,XK_Pause:65299,XK_Scroll_Lock:65300,XK_Sys_Req:65301,XK_Escape:65307,XK_Delete:65535,XK_Multi_key:65312,XK_Codeinput:65335,XK_SingleCandidate:65340,XK_MultipleCandidate:65341,XK_PreviousCandidate:65342,XK_Kanji:65313,XK_Muhenkan:65314,XK_Henkan_Mode:65315,XK_Henkan:65315,XK_Romaji:65316,XK_Hiragana:65317,XK_Katakana:65318,XK_Hiragana_Katakana:65319,XK_Zenkaku:65320,XK_Hankaku:65321,XK_Zenkaku_Hankaku:65322,XK_Touroku:65323,XK_Massyo:65324,XK_Kana_Lock:65325,XK_Kana_Shift:65326,XK_Eisu_Shift:65327,XK_Eisu_toggle:65328,XK_Kanji_Bangou:65335,XK_Zen_Koho:65341,XK_Mae_Koho:65342,XK_Home:65360,XK_Left:65361,XK_Up:65362,XK_Right:65363,XK_Down:65364,XK_Prior:65365,XK_Page_Up:65365,XK_Next:65366,XK_Page_Down:65366,XK_End:65367,XK_Begin:65368,XK_Select:65376,XK_Print:65377,XK_Execute:65378,XK_Insert:65379,XK_Undo:65381,XK_Redo:65382,XK_Menu:65383,XK_Find:65384,XK_Cancel:65385,XK_Help:65386,XK_Break:65387,XK_Mode_switch:65406,XK_script_switch:65406,XK_Num_Lock:65407,XK_KP_Space:65408,XK_KP_Tab:65417,XK_KP_Enter:65421,XK_KP_F1:65425,XK_KP_F2:65426,XK_KP_F3:65427,XK_KP_F4:65428,XK_KP_Home:65429,XK_KP_Left:65430,XK_KP_Up:65431,XK_KP_Right:65432,XK_KP_Down:65433,XK_KP_Prior:65434,XK_KP_Page_Up:65434,XK_KP_Next:65435,XK_KP_Page_Down:65435,XK_KP_End:65436,XK_KP_Begin:65437,XK_KP_Insert:65438,XK_KP_Delete:65439,XK_KP_Equal:65469,XK_KP_Multiply:65450,XK_KP_Add:65451,XK_KP_Separator:65452,XK_KP_Subtract:65453,XK_KP_Decimal:65454,XK_KP_Divide:65455,XK_KP_0:65456,XK_KP_1:65457,XK_KP_2:65458,XK_KP_3:65459,XK_KP_4:65460,XK_KP_5:65461,XK_KP_6:65462,XK_KP_7:65463,XK_KP_8:65464,XK_KP_9:65465,XK_F1:65470,XK_F2:65471,XK_F3:65472,XK_F4:65473,XK_F5:65474,XK_F6:65475,XK_F7:65476,XK_F8:65477,XK_F9:65478,XK_F10:65479,XK_F11:65480,XK_L1:65480,XK_F12:65481,XK_L2:65481,XK_F13:65482,XK_L3:65482,XK_F14:65483,XK_L4:65483,XK_F15:65484,XK_L5:65484,XK_F16:65485,XK_L6:65485,XK_F17:65486,XK_L7:65486,XK_F18:65487,XK_L8:65487,XK_F19:65488,XK_L9:65488,XK_F20:65489,XK_L10:65489,XK_F21:65490,XK_R1:65490,XK_F22:65491,XK_R2:65491,XK_F23:65492,XK_R3:65492,XK_F24:65493,XK_R4:65493,XK_F25:65494,XK_R5:65494,XK_F26:65495,XK_R6:65495,XK_F27:65496,XK_R7:65496,XK_F28:65497,XK_R8:65497,XK_F29:65498,XK_R9:65498,XK_F30:65499,XK_R10:65499,XK_F31:65500,XK_R11:65500,XK_F32:65501,XK_R12:65501,XK_F33:65502,XK_R13:65502,XK_F34:65503,XK_R14:65503,XK_F35:65504,XK_R15:65504,XK_Shift_L:65505,XK_Shift_R:65506,XK_Control_L:65507,XK_Control_R:65508,XK_Caps_Lock:65509,XK_Shift_Lock:65510,XK_Meta_L:65511,XK_Meta_R:65512,XK_Alt_L:65513,XK_Alt_R:65514,XK_Super_L:65515,XK_Super_R:65516,XK_Hyper_L:65517,XK_Hyper_R:65518,XK_ISO_Level3_Shift:65027,XK_ISO_Next_Group:65032,XK_ISO_Prev_Group:65034,XK_ISO_First_Group:65036,XK_ISO_Last_Group:65038,XK_space:32,XK_exclam:33,XK_quotedbl:34,XK_numbersign:35,XK_dollar:36,XK_percent:37,XK_ampersand:38,XK_apostrophe:39,XK_quoteright:39,XK_parenleft:40,XK_parenright:41,XK_asterisk:42,XK_plus:43,XK_comma:44,XK_minus:45,XK_period:46,XK_slash:47,XK_0:48,XK_1:49,XK_2:50,XK_3:51,XK_4:52,XK_5:53,XK_6:54,XK_7:55,XK_8:56,XK_9:57,XK_colon:58,XK_semicolon:59,XK_less:60,XK_equal:61,XK_greater:62,XK_question:63,XK_at:64,XK_A:65,XK_B:66,XK_C:67,XK_D:68,XK_E:69,XK_F:70,XK_G:71,XK_H:72,XK_I:73,XK_J:74,XK_K:75,XK_L:76,XK_M:77,XK_N:78,XK_O:79,XK_P:80,XK_Q:81,XK_R:82,XK_S:83,XK_T:84,XK_U:85,XK_V:86,XK_W:87,XK_X:88,XK_Y:89,XK_Z:90,XK_bracketleft:91,XK_backslash:92,XK_bracketright:93,XK_asciicircum:94,XK_underscore:95,XK_grave:96,XK_quoteleft:96,XK_a:97,XK_b:98,XK_c:99,XK_d:100,XK_e:101,XK_f:102,XK_g:103,XK_h:104,XK_i:105,XK_j:106,XK_k:107,XK_l:108,XK_m:109,XK_n:110,XK_o:111,XK_p:112,XK_q:113,XK_r:114,XK_s:115,XK_t:116,XK_u:117,XK_v:118,XK_w:119,XK_x:120,XK_y:121,XK_z:122,XK_braceleft:123,XK_bar:124,XK_braceright:125,XK_asciitilde:126,XK_nobreakspace:160,XK_exclamdown:161,XK_cent:162,XK_sterling:163,XK_currency:164,XK_yen:165,XK_brokenbar:166,XK_section:167,XK_diaeresis:168,XK_copyright:169,XK_ordfeminine:170,XK_guillemotleft:171,XK_notsign:172,XK_hyphen:173,XK_registered:174,XK_macron:175,XK_degree:176,XK_plusminus:177,XK_twosuperior:178,XK_threesuperior:179,XK_acute:180,XK_mu:181,XK_paragraph:182,XK_periodcentered:183,XK_cedilla:184,XK_onesuperior:185,XK_masculine:186,XK_guillemotright:187,XK_onequarter:188,XK_onehalf:189,XK_threequarters:190,XK_questiondown:191,XK_Agrave:192,XK_Aacute:193,XK_Acircumflex:194,XK_Atilde:195,XK_Adiaeresis:196,XK_Aring:197,XK_AE:198,XK_Ccedilla:199,XK_Egrave:200,XK_Eacute:201,XK_Ecircumflex:202,XK_Ediaeresis:203,XK_Igrave:204,XK_Iacute:205,XK_Icircumflex:206,XK_Idiaeresis:207,XK_ETH:208,XK_Eth:208,XK_Ntilde:209,XK_Ograve:210,XK_Oacute:211,XK_Ocircumflex:212,XK_Otilde:213,XK_Odiaeresis:214,XK_multiply:215,XK_Oslash:216,XK_Ooblique:216,XK_Ugrave:217,XK_Uacute:218,XK_Ucircumflex:219,XK_Udiaeresis:220,XK_Yacute:221,XK_THORN:222,XK_Thorn:222,XK_ssharp:223,XK_agrave:224,XK_aacute:225,XK_acircumflex:226,XK_atilde:227,XK_adiaeresis:228,XK_aring:229,XK_ae:230,XK_ccedilla:231,XK_egrave:232,XK_eacute:233,XK_ecircumflex:234,XK_ediaeresis:235,XK_igrave:236,XK_iacute:237,XK_icircumflex:238,XK_idiaeresis:239,XK_eth:240,XK_ntilde:241,XK_ograve:242,XK_oacute:243,XK_ocircumflex:244,XK_otilde:245,XK_odiaeresis:246,XK_division:247,XK_oslash:248,XK_ooblique:248,XK_ugrave:249,XK_uacute:250,XK_ucircumflex:251,XK_udiaeresis:252,XK_yacute:253,XK_thorn:254,XK_ydiaeresis:255,XK_Hangul:65329,XK_Hangul_Hanja:65332,XK_Hangul_Jeonja:65336,XF86XK_ModeLock:269025025,XF86XK_MonBrightnessUp:269025026,XF86XK_MonBrightnessDown:269025027,XF86XK_KbdLightOnOff:269025028,XF86XK_KbdBrightnessUp:269025029,XF86XK_KbdBrightnessDown:269025030,XF86XK_Standby:269025040,XF86XK_AudioLowerVolume:269025041,XF86XK_AudioMute:269025042,XF86XK_AudioRaiseVolume:269025043,XF86XK_AudioPlay:269025044,XF86XK_AudioStop:269025045,XF86XK_AudioPrev:269025046,XF86XK_AudioNext:269025047,XF86XK_HomePage:269025048,XF86XK_Mail:269025049,XF86XK_Start:269025050,XF86XK_Search:269025051,XF86XK_AudioRecord:269025052,XF86XK_Calculator:269025053,XF86XK_Memo:269025054,XF86XK_ToDoList:269025055,XF86XK_Calendar:269025056,XF86XK_PowerDown:269025057,XF86XK_ContrastAdjust:269025058,XF86XK_RockerUp:269025059,XF86XK_RockerDown:269025060,XF86XK_RockerEnter:269025061,XF86XK_Back:269025062,XF86XK_Forward:269025063,XF86XK_Stop:269025064,XF86XK_Refresh:269025065,XF86XK_PowerOff:269025066,XF86XK_WakeUp:269025067,XF86XK_Eject:269025068,XF86XK_ScreenSaver:269025069,XF86XK_WWW:269025070,XF86XK_Sleep:269025071,XF86XK_Favorites:269025072,XF86XK_AudioPause:269025073,XF86XK_AudioMedia:269025074,XF86XK_MyComputer:269025075,XF86XK_VendorHome:269025076,XF86XK_LightBulb:269025077,XF86XK_Shop:269025078,XF86XK_History:269025079,XF86XK_OpenURL:269025080,XF86XK_AddFavorite:269025081,XF86XK_HotLinks:269025082,XF86XK_BrightnessAdjust:269025083,XF86XK_Finance:269025084,XF86XK_Community:269025085,XF86XK_AudioRewind:269025086,XF86XK_BackForward:269025087,XF86XK_Launch0:269025088,XF86XK_Launch1:269025089,XF86XK_Launch2:269025090,XF86XK_Launch3:269025091,XF86XK_Launch4:269025092,XF86XK_Launch5:269025093,XF86XK_Launch6:269025094,XF86XK_Launch7:269025095,XF86XK_Launch8:269025096,XF86XK_Launch9:269025097,XF86XK_LaunchA:269025098,XF86XK_LaunchB:269025099,XF86XK_LaunchC:269025100,XF86XK_LaunchD:269025101,XF86XK_LaunchE:269025102,XF86XK_LaunchF:269025103,XF86XK_ApplicationLeft:269025104,XF86XK_ApplicationRight:269025105,XF86XK_Book:269025106,XF86XK_CD:269025107,XF86XK_Calculater:269025108,XF86XK_Clear:269025109,XF86XK_Close:269025110,XF86XK_Copy:269025111,XF86XK_Cut:269025112,XF86XK_Display:269025113,XF86XK_DOS:269025114,XF86XK_Documents:269025115,XF86XK_Excel:269025116,XF86XK_Explorer:269025117,XF86XK_Game:269025118,XF86XK_Go:269025119,XF86XK_iTouch:269025120,XF86XK_LogOff:269025121,XF86XK_Market:269025122,XF86XK_Meeting:269025123,XF86XK_MenuKB:269025125,XF86XK_MenuPB:269025126,XF86XK_MySites:269025127,XF86XK_New:269025128,XF86XK_News:269025129,XF86XK_OfficeHome:269025130,XF86XK_Open:269025131,XF86XK_Option:269025132,XF86XK_Paste:269025133,XF86XK_Phone:269025134,XF86XK_Q:269025136,XF86XK_Reply:269025138,XF86XK_Reload:269025139,XF86XK_RotateWindows:269025140,XF86XK_RotationPB:269025141,XF86XK_RotationKB:269025142,XF86XK_Save:269025143,XF86XK_ScrollUp:269025144,XF86XK_ScrollDown:269025145,XF86XK_ScrollClick:269025146,XF86XK_Send:269025147,XF86XK_Spell:269025148,XF86XK_SplitScreen:269025149,XF86XK_Support:269025150,XF86XK_TaskPane:269025151,XF86XK_Terminal:269025152,XF86XK_Tools:269025153,XF86XK_Travel:269025154,XF86XK_UserPB:269025156,XF86XK_User1KB:269025157,XF86XK_User2KB:269025158,XF86XK_Video:269025159,XF86XK_WheelButton:269025160,XF86XK_Word:269025161,XF86XK_Xfer:269025162,XF86XK_ZoomIn:269025163,XF86XK_ZoomOut:269025164,XF86XK_Away:269025165,XF86XK_Messenger:269025166,XF86XK_WebCam:269025167,XF86XK_MailForward:269025168,XF86XK_Pictures:269025169,XF86XK_Music:269025170,XF86XK_Battery:269025171,XF86XK_Bluetooth:269025172,XF86XK_WLAN:269025173,XF86XK_UWB:269025174,XF86XK_AudioForward:269025175,XF86XK_AudioRepeat:269025176,XF86XK_AudioRandomPlay:269025177,XF86XK_Subtitle:269025178,XF86XK_AudioCycleTrack:269025179,XF86XK_CycleAngle:269025180,XF86XK_FrameBack:269025181,XF86XK_FrameForward:269025182,XF86XK_Time:269025183,XF86XK_Select:269025184,XF86XK_View:269025185,XF86XK_TopMenu:269025186,XF86XK_Red:269025187,XF86XK_Green:269025188,XF86XK_Yellow:269025189,XF86XK_Blue:269025190,XF86XK_Suspend:269025191,XF86XK_Hibernate:269025192,XF86XK_TouchpadToggle:269025193,XF86XK_TouchpadOn:269025200,XF86XK_TouchpadOff:269025201,XF86XK_AudioMicMute:269025202,XF86XK_Switch_VT_1:269024769,XF86XK_Switch_VT_2:269024770,XF86XK_Switch_VT_3:269024771,XF86XK_Switch_VT_4:269024772,XF86XK_Switch_VT_5:269024773,XF86XK_Switch_VT_6:269024774,XF86XK_Switch_VT_7:269024775,XF86XK_Switch_VT_8:269024776,XF86XK_Switch_VT_9:269024777,XF86XK_Switch_VT_10:269024778,XF86XK_Switch_VT_11:269024779,XF86XK_Switch_VT_12:269024780,XF86XK_Ungrab:269024800,XF86XK_ClearGrab:269024801,XF86XK_Next_VMode:269024802,XF86XK_Prev_VMode:269024803,XF86XK_LogWindowTree:269024804,XF86XK_LogGrabInfo:269024805};D.default=y},mLcG:function(k,D){var n=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(y){setTimeout(y,16)};k.exports=n},"mO/d":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("I9Y+"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},mOdp:function(k,D,n){var y=n("bYtY"),p=y.createHashMap;function x(v){return{getTargetSeries:function(m){var f={},d=p();return m.eachSeriesByType(v,function(u){u.__paletteScope=f,d.set(u.uid,u)}),d},reset:function(m,f){var d=m.getRawData(),u={},o=m.getData();o.each(function(i){var t=o.getRawIndex(i);u[t]=i}),d.each(function(i){var t=u[i],s=t!=null&&o.getItemVisual(t,"color",!0),e=t!=null&&o.getItemVisual(t,"borderColor",!0),l;if((!s||!e)&&(l=d.getItemModel(i)),!s){var r=l.get("itemStyle.color")||m.getColorFromPalette(d.getName(i)||i+"",m.__paletteScope,d.count());t!=null&&o.setItemVisual(t,"color",r)}if(!e){var a=l.get("itemStyle.borderColor");t!=null&&o.setItemVisual(t,"borderColor",a)}})}}}k.exports=x},mTgk:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("mHUz"));function p(u){return u&&u.__esModule?u:{default:u}}var x={};function v(u,o){if(o===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in x)throw new Error('Duplicate entry for key "'+u+'"');x[u]=[o,o,o,o]}function m(u,o,i){if(o===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(i===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in x)throw new Error('Duplicate entry for key "'+u+'"');x[u]=[o,o,i,o]}function f(u,o,i){if(o===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(i===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in x)throw new Error('Duplicate entry for key "'+u+'"');x[u]=[o,o,o,i]}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(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("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 u=new p.Group,o=new p.Rect({style:{fill:d.maskColor},zlevel:d.zlevel,z:1e4});u.add(o);var i=d.fontSize+" sans-serif",t=new p.Rect({style:{fill:"none",text:d.text,font:i,textPosition:"right",textDistance:10,textFill:d.textColor},zlevel:d.zlevel,z:10001});if(u.add(t),d.showSpinner){var s=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});s.animateShape(!0).when(1e3,{endAngle:v*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:v*3/2}).delay(300).start("circularInOut"),u.add(s)}return u.resize=function(){var e=x.getWidth(d.text,i),l=d.showSpinner?d.spinnerRadius:0,r=(f.getWidth()-l*2-(d.showSpinner&&e?10:0)-e)/2-(d.showSpinner?0:e/2),a=f.getHeight()/2;d.showSpinner&&s.setShape({cx:r,cy:a}),t.setShape({x:r-l,y:a-l,width:l*2,height:l*2}),o.setShape({x:0,y:0,width:f.getWidth(),height:f.getHeight()})},u.resize(),u}k.exports=m},mdPL:function(k,D,n){(function(y){var p=n("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 u=v&&v.require&&v.require("util").types;return u||f&&f.binding&&f.binding("util")}catch(o){}}();y.exports=d}).call(this,n("YuTi")(k))},mdZa:function(k,D,n){"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}},"mh/l":function(k,D,n){"use strict";n.d(D,"b",function(){return S}),n.d(D,"d",function(){return E}),n.d(D,"c",function(){return C});var y=n("pVnL"),p=n.n(y),x=n("lwsE"),v=n.n(x),m=n("W8MJ"),f=n.n(m),d=n("7W2i"),u=n.n(d),o=n("LQ03"),i=n.n(o),t=n("lSNA"),s=n.n(t),e=n("q1tI"),l=n.n(e),r=n("TSYQ"),a=n.n(r),c=n("BGR+"),h=n("LlR5"),g=n("H84U"),A=n("3Nzz"),b=n("uaoM");function S(T){return typeof T=="undefined"||T===null?"":T}function E(T,w,O){if(O){var I=w;if(w.type==="click"){I=Object.create(w),I.target=T,I.currentTarget=T;var R=T.value;T.value="",O(I),T.value=R;return}O(I)}}function C(T,w,O,I,R){var M;return a()(T,(M={},s()(M,"".concat(T,"-sm"),O==="small"),s()(M,"".concat(T,"-lg"),O==="large"),s()(M,"".concat(T,"-disabled"),I),s()(M,"".concat(T,"-rtl"),R==="rtl"),s()(M,"".concat(T,"-borderless"),!w),M))}var _=function(T){u()(O,T);var w=i()(O);function O(I){var R;v()(this,O),R=w.call(this,I),R.direction="ltr",R.focus=function(){R.input.focus()},R.saveClearableInput=function(B){R.clearableInput=B},R.saveInput=function(B){R.input=B},R.onFocus=function(B){var P=R.props.onFocus;R.setState({focused:!0},R.clearPasswordValueAttribute),P&&P(B)},R.onBlur=function(B){var P=R.props.onBlur;R.setState({focused:!1},R.clearPasswordValueAttribute),P&&P(B)},R.handleReset=function(B){R.setValue("",function(){R.focus()}),E(R.input,B,R.props.onChange)},R.renderInput=function(B,P,X){var F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},j=R.props,K=j.className,z=j.addonBefore,V=j.addonAfter,Q=j.size,G=j.disabled,te=Object(c.default)(R.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return e.createElement("input",p()({autoComplete:F.autoComplete},te,{onChange:R.handleChange,onFocus:R.onFocus,onBlur:R.onBlur,onKeyDown:R.handleKeyDown,className:a()(C(B,X,Q||P,G,R.direction),s()({},K,K&&!z&&!V)),ref:R.saveInput}))},R.clearPasswordValueAttribute=function(){R.removePasswordTimeout=setTimeout(function(){R.input&&R.input.getAttribute("type")==="password"&&R.input.hasAttribute("value")&&R.input.removeAttribute("value")})},R.handleChange=function(B){R.setValue(B.target.value,R.clearPasswordValueAttribute),E(R.input,B,R.props.onChange)},R.handleKeyDown=function(B){var P=R.props,X=P.onPressEnter,F=P.onKeyDown;B.keyCode===13&&X&&X(B),F&&F(B)},R.renderComponent=function(B){var P=B.getPrefixCls,X=B.direction,F=B.input,j=R.state,K=j.value,z=j.focused,V=R.props,Q=V.prefixCls,G=V.bordered,te=G===void 0?!0:G,q=P("input",Q);return R.direction=X,e.createElement(A.b.Consumer,null,function(le){return e.createElement(h.a,p()({size:le},R.props,{prefixCls:q,inputType:"input",value:S(K),element:R.renderInput(q,le,te,F),handleReset:R.handleReset,ref:R.saveClearableInput,direction:X,focused:z,triggerFocus:R.focus,bordered:te}))})};var M=typeof I.value=="undefined"?I.defaultValue:I.value;return R.state={value:M,focused:!1,prevValue:I.value},R}return f()(O,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(R){return Object(h.b)(R)!==Object(h.b)(this.props)&&Object(b.a)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(R,M){this.props.value===void 0&&this.setState({value:R},M)}},{key:"render",value:function(){return e.createElement(g.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(R,M){var B=M.prevValue,P={prevValue:R.value};return(R.value!==void 0||B!==R.value)&&(P.value=R.value),P}}]),O}(e.Component);_.defaultProps={type:"text"},D.a=_},mr32:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),v=n.n(x),m=n("J4zp"),f=n.n(m),d=n("q1tI"),u=n("TSYQ"),o=n.n(u),i=n("BGR+"),t=n("V/uB"),s=n.n(t),e=n("H84U"),l=function(_,T){var w={};for(var O in _)Object.prototype.hasOwnProperty.call(_,O)&&T.indexOf(O)<0&&(w[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])&&(w[O[I]]=_[O[I]]);return w},r=function(T){var w,O=d.useContext(e.b),I=O.getPrefixCls,R=function(z){var V=T.checked,Q=T.onChange,G=T.onClick;Q&&Q(!V),G&&G(z)},M=T.prefixCls,B=T.className,P=T.checked,X=l(T,["prefixCls","className","checked"]),F=I("tag",M),j=o()(F,(w={},p()(w,"".concat(F,"-checkable"),!0),p()(w,"".concat(F,"-checkable-checked"),P),w),B);return delete X.onChange,d.createElement("span",v()({},X,{className:j,onClick:R}))},a=r,c=n("09Wf"),h=n("g0mS"),g=function(_,T){var w={};for(var O in _)Object.prototype.hasOwnProperty.call(_,O)&&T.indexOf(O)<0&&(w[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])&&(w[O[I]]=_[O[I]]);return w},A=new RegExp("^(".concat(c.a.join("|"),")(-inverse)?$")),b=new RegExp("^(".concat(c.b.join("|"),")$")),S=function(T,w){var O,I=T.prefixCls,R=T.className,M=T.style,B=T.children,P=T.icon,X=T.color,F=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),G=Q.getPrefixCls,te=Q.direction,q=d.useState(!0),le=f()(q,2),re=le[0],we=le[1];d.useEffect(function(){"visible"in V&&we(V.visible)},[V.visible]);var Ie=function(){return X?A.test(X)||b.test(X):!1},Me=v()({backgroundColor:X&&!Ie()?X:void 0},M),Je=Ie(),Ve=G("tag",I),ut=o()(Ve,(O={},p()(O,"".concat(Ve,"-").concat(X),Je),p()(O,"".concat(Ve,"-has-color"),X&&!Je),p()(O,"".concat(Ve,"-hidden"),!re),p()(O,"".concat(Ve,"-rtl"),te==="rtl"),O),R),Fe=function(be){if(be.stopPropagation(),F&&F(be),be.defaultPrevented)return;"visible"in V||we(!1)},ae=function(){return z?j?d.createElement("div",{className:"".concat(Ve,"-close-icon"),onClick:Fe},j):d.createElement(s.a,{className:"".concat(Ve,"-close-icon"),onClick:Fe}):null},at="onClick"in V||B&&B.type==="a",he=Object(i.default)(V,["visible"]),J=P||null,Y=J?d.createElement(d.Fragment,null,J,d.createElement("span",null,B)):B,$=d.createElement("span",v()({},he,{ref:w,className:ut,style:Me}),Y,ae());return at?d.createElement(h.a,null,$):$},E=d.forwardRef(S);E.displayName="Tag",E.CheckableTag=a;var C=D.a=E},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(k){if(!0)module.exports=k();else var D})(function(){var define,module,exports;return function(){function k(D,n,y){function p(m,f){if(!n[m]){if(!D[m]){var d=typeof require=="function"&&require;if(!f&&d)return require(m,!0);if(x)return x(m,!0);var u=new Error("Cannot find module '"+m+"'");throw u.code="MODULE_NOT_FOUND",u}var o=n[m]={exports:{}};D[m][0].call(o.exports,function(i){var t=D[m][1][i];return p(t||i)},o,o.exports,k,D,n,y)}return n[m].exports}for(var x=typeof require=="function"&&require,v=0;v<y.length;v++)p(y[v]);return p}return k}()({1:[function(k,D,n){"use strict";var y=k("./browser/client");y.Buffer=k("buffer").Buffer,y.urllib=k("../shims/xhr"),y.version=k("./browser/version").version,D.exports=y},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(k,D,n){(function(y,p){"use strict";var x=k("babel-runtime/core-js/promise"),v=o(x),m=k("babel-runtime/regenerator"),f=o(m),d=k("babel-runtime/core-js/object/assign"),u=o(d);function o(P){return P&&P.__esModule?P:{default:P}}var i=k("debug")("ali-oss"),t=k("copy-to"),s=k("xml2js"),e=k("agentkeepalive"),l=k("merge-descriptors"),r=k("url"),a=k("is-type-of"),c=k("platform"),h=k("utility"),g=k("urllib"),A=k("./version"),b=k("bowser"),S=k("../common/signUtils"),E=k("../common/utils/isIP"),C=E.isIP,_=k("../common/client/initOptions"),T=k("../common/utils/createRequest"),w=T.createRequest,O=new e;function I(){var P=c.name,X=c.version;P&&P.toLowerCase&&P.toLowerCase()==="ie"&&X.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function R(){return location&&location.protocol==="https:"}function M(P,X){if(I(),!(this instanceof M))return new M(P,X);P&&P.inited?this.options=P:this.options=M.initOptions(P),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=g,this.agent=this.options.agent||O),this.ctx=X,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}D.exports=M,M.initOptions=function(X){X.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var F=(0,u.default)({secure:R(),useFetch:!1},X);return _(F)};var B=M.prototype;B.debug=i,l(B,k("./object")),l(B,k("../common/bucket/getBucketWebsite")),l(B,k("../common/bucket/putBucketWebsite")),l(B,k("../common/bucket/deleteBucketWebsite")),l(B,k("../common/bucket/getBucketLifecycle")),l(B,k("../common/bucket/putBucketLifecycle")),l(B,k("../common/bucket/deleteBucketLifecycle")),l(B,k("../common/bucket/putBucketVersioning")),l(B,k("../common/bucket/getBucketVersioning")),l(B,k("./managed-upload")),l(B,k("../common/multipart")),l(B,k("../common/parallel")),B.signature=function(X){return this.debug("authorization stringToSign: %s",X,"info"),S.computeSignature(this.options.accessKeySecret,X)},B.authorization=function(X,F,j,K){var z=S.buildCanonicalString(X.toUpperCase(),F,{headers:K,parameters:j});return S.authorization(this.options.accessKeyId,this.options.accessKeySecret,z)},B.request=function(X){var F,j,K,z,V,Q;return f.default.async(function(te){for(;;)switch(te.prev=te.next){case 0:return F=w.call(this,X),this.options.useFetch||(F.params.mode="disable-fetch"),j=void 0,K=void 0,z=!!X.stream,te.prev=5,te.next=8,f.default.awrap(this.urllib.request(F.url,F.params));case 8:j=te.sent,this.debug("response %s %s, got %s, headers: %j",X.method,F.url,j.status,j.headers,"info"),te.next=15;break;case 12:te.prev=12,te.t0=te.catch(5),K=te.t0;case 15:if(V=void 0,!(j&&X.successStatuses&&X.successStatuses.indexOf(j.status)===-1)){te.next=28;break}return te.next=19,f.default.awrap(this.requestError(j));case 19:if(V=te.sent,!(V.code==="RequestTimeTooSkewed"&&!z)){te.next=25;break}return this.options.amendTimeSkewed=+new Date(V.serverTime)-new Date,te.next=24,f.default.awrap(this.request(X));case 24:return te.abrupt("return",te.sent);case 25:V.params=X,te.next=32;break;case 28:if(!K){te.next=32;break}return te.next=31,f.default.awrap(this.requestError(K));case 31:V=te.sent;case 32:if(!V){te.next=34;break}throw V;case 34:if(!X.xmlResponse){te.next=39;break}return te.next=37,f.default.awrap(this.parseXML(j.data));case 37:Q=te.sent,j.data=Q;case 39:return te.abrupt("return",j);case 40:case"end":return te.stop()}},null,this,[[5,12]])},B._getResource=function(X){var F="/";return X.bucket&&(F+=X.bucket+"/"),X.object&&(F+=X.object),F},B._isIP=C,B._escape=function(X){return h.encodeURIComponent(X).replace(/%2F/g,"/")},B._getReqUrl=function(X){var F={};t(this.options.endpoint).to(F);var j=this._isIP(F.hostname),K=this.options.cname;X.bucket&&!K&&!j&&(F.host=X.bucket+"."+F.host);var z="/";X.bucket&&j&&(z+=X.bucket+"/"),X.object&&(z+=this._escape(X.object).replace(/\+/g,"%2B")),F.pathname=z;var V={};if(X.query&&l(V,X.query),X.subres){var Q={};a.string(X.subres)?Q[X.subres]="":a.array(X.subres)?X.subres.forEach(function(G){Q[G]=""}):Q=X.subres,l(V,Q)}return F.query=V,r.format(F)},B._getUserAgent=function(){var X=p&&p.browser?"js":"nodejs",F="aliyun-sdk-"+X+"/"+A.version,j=c.description;return!j&&p&&(j="Node.js "+p.version.slice(1)+" on "+p.platform+" "+p.arch),this._checkUserAgent(F+" "+j)},B._checkUserAgent=function(X){var F=X.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return F},B.checkBrowserAndVersion=function(X,F){return b.name===X&&b.version.split(".")[0]===F},B.parseXML=function(X){return new v.default(function(F,j){y.isBuffer(X)&&(X=X.toString()),s.parseString(X,{explicitRoot:!1,explicitArray:!1},function(K,z){K?j(K):F(z)})})},B.requestError=function(X){var F,j,K,z;return f.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(F=null,!(!X.data||!X.data.length)){Q.next=5;break}X.status===-1||X.status===-2?(F=new Error(X.message),F.name=X.name,F.status=X.status,F.code=X.name):(X.status===404?(F=new Error("Object not exists"),F.name="NoSuchKeyError",F.status=404,F.code="NoSuchKey"):X.status===412?(F=new Error("Pre condition failed"),F.name="PreconditionFailedError",F.status=412,F.code="PreconditionFailed"):(F=new Error("Unknow error, status: "+X.status),F.name="UnknowError",F.status=X.status),F.requestId=X.headers["x-oss-request-id"],F.host=""),Q.next=33;break;case 5:return j=String(X.data),this.debug("request response error data: %s",j,"error"),K=void 0,Q.prev=8,Q.next=11,f.default.awrap(this.parseXML(j));case 11:if(Q.t0=Q.sent,Q.t0){Q.next=14;break}Q.t0={};case 14:K=Q.t0,Q.next=24;break;case 17:return Q.prev=17,Q.t1=Q.catch(8),this.debug(j,"error"),Q.t1.message+=`
raw xml: `+j,Q.t1.status=X.status,Q.t1.requestId=X.headers["x-oss-request-id"],Q.abrupt("return",Q.t1);case 24:z=K.Message||"unknow request error, status: "+X.status,K.Condition&&(z+=" (condition: "+K.Condition+")"),F=new Error(z),F.name=K.Code?K.Code+"Error":"UnknowError",F.status=X.status,F.code=K.Code,F.requestId=K.RequestId,F.hostId=K.HostId,F.serverTime=K.ServerTime;case 33:return this.debug("generate error %j",F,"error"),Q.abrupt("return",F);case 35:case"end":return Q.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:k("../../node_modules/is-buffer/index.js")},k("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(k,D,n){(function(y){"use strict";var p=k("babel-runtime/core-js/array/from"),x=u(p),v=k("babel-runtime/core-js/promise"),m=u(v),f=k("babel-runtime/regenerator"),d=u(f);function u(S){return S&&S.__esModule?S:{default:S}}var o=k("is-type-of"),i=k("util"),t=k("path"),s=k("mime"),e=k("copy-to"),l=k("../common/utils/isBlob"),r=l.isBlob,a=k("../common/utils/isFile"),c=a.isFile,h=n;h.multipartUpload=function(E,C,_){var T,w,O,I,R,M,B,P,X;return d.default.async(function(j){for(;;)switch(j.prev=j.next){case 0:if(this.resetCancelFlag(),_=_||{},!(_.checkpoint&&_.checkpoint.uploadId)){j.next=6;break}return j.next=5,d.default.awrap(this._resumeMultipart(_.checkpoint,_));case 5:return j.abrupt("return",j.sent);case 6:return T=100*1024,_.mime||(c(C)?_.mime=s.getType(t.extname(C.name)):r(C)?_.mime=C.type:_.mime=s.getType(t.extname(C))),_.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),j.next=12,d.default.awrap(this._getFileSize(C));case 12:if(w=j.sent,!(w<T)){j.next=25;break}return O=this._createStream(C,0,w),_.contentLength=w,j.next=18,d.default.awrap(this.putStream(E,O,_));case 18:if(I=j.sent,!(_&&_.progress)){j.next=22;break}return j.next=22,d.default.awrap(_.progress(1));case 22:return R={res:I.res,bucket:this.options.bucket,name:E,etag:I.res.headers.etag},(_.headers&&_.headers["x-oss-callback"]||_.callback)&&(R.data=I.data),j.abrupt("return",R);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(M=j.sent,B=M.uploadId,P=this._getPartSize(w,_.partSize),X={file:C,name:E,fileSize:w,partSize:P,uploadId:B,doneParts:[]},!(_&&_.progress)){j.next=38;break}return j.next=38,d.default.awrap(_.progress(0,X,M.res));case 38:return j.next=40,d.default.awrap(this._resumeMultipart(X,_));case 40:return j.abrupt("return",j.sent);case 41:case"end":return j.stop()}},null,this)},h._resumeMultipart=function(E,C){var _,T,w,O,I,R,M,B,P,X,F,j,K,z,V,Q,G,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,w=E.fileSize,O=E.partSize,I=E.uploadId,R=E.doneParts,M=E.name,B=[],R.length>0&&e(R).to(B),P=this._divideParts(w,O),X=P.length,F=!1,j=function(we,Ie){var Me=this;return new m.default(function(Ve,ut){var Fe,ae,at,he;return d.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(Y.prev=0,we.isCancel()){Y.next=18;break}return Fe=P[Ie-1],ae={stream:we._createStream(T,Fe.start,Fe.end),size:Fe.end-Fe.start},Y.next=6,d.default.awrap(we._uploadPart(M,I,Ie,ae));case 6:if(at=Y.sent,!(!we.isCancel()&&!F)){Y.next=15;break}if(E.doneParts.push({number:Ie,etag:at.res.headers.etag}),!C.progress){Y.next=12;break}return Y.next=12,d.default.awrap(C.progress(R.length/X,E,at.res));case 12:Ve({number:Ie,etag:at.res.headers.etag}),Y.next=16;break;case 15:Ve();case 16:Y.next=19;break;case 18:Ve();case 19:Y.next=30;break;case 21:Y.prev=21,Y.t0=Y.catch(0),he=new Error,he.name=Y.t0.name,he.message=Y.t0.message,he.stack=Y.t0.stack,he.partNum=Ie,e(Y.t0).to(he),ut(he);case 30:case"end":return Y.stop()}},null,Me,[[0,21]])})},K=(0,x.default)(new Array(X),function(re,we){return we+1}),z=B.map(function(re){return re.number}),V=K.filter(function(re){return z.indexOf(re)<0}),Q=5,G=C.parallel||Q,le.next=17,d.default.awrap(this._parallel(V,G,function(re){return new m.default(function(we,Ie){j(_,re).then(function(Me){Me&&B.push(Me),we()}).catch(function(Me){Ie(Me)})})}));case 17:if(te=le.sent,F=!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(M,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=k("stream"),A=g.Readable;function b(S,E){if(!(this instanceof b))return new b(S,E);A.call(this,E),this.file=S,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}i.inherits(b,A),b.prototype.readFileAndPush=function(E){if(this.fileBuffer)for(var 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(w){_.fileBuffer=y.from(new Uint8Array(w.target.result)),_.file=null,_.readFileAndPush(E)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(E)},h._createStream=function(E,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=[],w=0;w<_;w++){var O=C*w,I=Math.min(O+C,E);T.push({start:O,end:I})}return T}}).call(this,k("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/promise"),p=o(y),x=k("babel-runtime/core-js/object/keys"),v=o(x),m=k("babel-runtime/core-js/object/assign"),f=o(m),d=k("babel-runtime/regenerator"),u=o(d);function o(_){return _&&_.__esModule?_:{default:_}}var i=k("utility"),t=k("fs"),s=k("is-type-of"),e=k("url"),l=k("copy-to"),r=k("path"),a=k("mime"),c=k("../common/callback"),h=k("../common/signUtils"),g=k("merge-descriptors"),A=k("../common/utils/isBlob"),b=A.isBlob,S=k("../common/utils/isFile"),E=S.isFile,C=n;C.append=function(T,w,O){var I;return u.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return O=O||{},O.position===void 0&&(O.position="0"),O.subres={append:"",position:O.position},O.method="POST",M.next=6,u.default.awrap(this.put(T,w,O));case 6:return I=M.sent,I.nextAppendPosition=I.res.headers["x-oss-next-append-position"],M.abrupt("return",I);case 9:case"end":return M.stop()}},null,this)},C.put=function(T,w,O){var I,R,M,B,P,X,F;return u.default.async(function(K){for(;;)switch(K.prev=K.next){case 0:if(I=void 0,O=O||{},T=this._objectName(T),!s.buffer(w)){K.next=7;break}I=w,K.next=33;break;case 7:if(!(b(w)||E(w))){K.next=32;break}return O.mime||(E(w)?O.mime=a.getType(r.extname(w.name)):O.mime=w.type),R=this._createStream(w,0,w.size),K.next=12,u.default.awrap(this._getFileSize(w));case 12:return O.contentLength=K.sent,K.prev=13,K.next=16,u.default.awrap(this.putStream(T,R,O));case 16:return M=K.sent,K.abrupt("return",M);case 20:if(K.prev=20,K.t0=K.catch(13),!(K.t0.code==="RequestTimeTooSkewed")){K.next=29;break}return this.options.amendTimeSkewed=+new Date(K.t0.serverTime)-new Date,K.next=26,u.default.awrap(this.put(T,w,O));case 26:return K.abrupt("return",K.sent);case 29:throw K.t0;case 30:K.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return O.headers=O.headers||{},this._convertMetaToHeaders(O.meta,O.headers),B=O.method||"PUT",P=this._objectRequestParams(B,T,O),c.encodeCallback(P,O),P.mime=O.mime,P.content=I,P.successStatuses=[200],K.next=43,u.default.awrap(this.request(P));case 43:return X=K.sent,F={name:T,url:this._objectUrl(T),res:X.res},P.headers&&P.headers["x-oss-callback"]&&(F.data=JSON.parse(X.data.toString())),K.abrupt("return",F);case 47:case"end":return K.stop()}},null,this,[[13,20]])},C.putStream=function(T,w,O){var I,R,M,B;return u.default.async(function(X){for(;;)switch(X.prev=X.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",R=this._objectRequestParams(I,T,O),c.encodeCallback(R,O),R.mime=O.mime,R.stream=w,R.successStatuses=[200],X.next=13,u.default.awrap(this.request(R));case 13:return M=X.sent,B={name:T,url:this._objectUrl(T),res:M.res},R.headers&&R.headers["x-oss-callback"]&&(B.data=JSON.parse(M.data.toString())),X.abrupt("return",B);case 17:case"end":return X.stop()}},null,this)},g(C,k("../common/object/copyObject")),g(C,k("../common/object/getObjectTagging")),g(C,k("../common/object/putObjectTagging")),g(C,k("../common/object/deleteObjectTagging")),g(C,k("../common/image")),g(C,k("../common/object/getBucketVersions")),g(C,k("../common/object/getACL")),g(C,k("../common/object/putACL")),g(C,k("../common/object/head")),g(C,k("../common/object/delete")),g(C,k("../common/object/get")),g(C,k("../common/object/putSymlink")),g(C,k("../common/object/getSymlink")),g(C,k("../common/object/deleteMulti")),g(C,k("../common/object/getObjectMeta")),C.putMeta=function(T,w,O){var I;return u.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,u.default.awrap(this.copy(T,T,{meta:w||{},timeout:O&&O.timeout,ctx:O&&O.ctx}));case 2:return I=M.sent,M.abrupt("return",I);case 4:case"end":return M.stop()}},null,this)},C.list=function(T,w){var O,I,R,M,B;return u.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return O=this._objectRequestParams("GET","",w),O.query=T,O.xmlResponse=!0,O.successStatuses=[200],X.next=6,u.default.awrap(this.request(O));case 6:return I=X.sent,R=I.data.Contents,M=this,R&&(Array.isArray(R)||(R=[R]),R=R.map(function(F){return{name:F.Key,url:M._objectUrl(F.Key),lastModified:F.LastModified,etag:F.ETag,type:F.Type,size:Number(F.Size),storageClass:F.StorageClass,owner:{id:F.Owner.ID,displayName:F.Owner.DisplayName}}})),B=I.data.CommonPrefixes||null,B&&(Array.isArray(B)||(B=[B]),B=B.map(function(F){return F.Prefix})),X.abrupt("return",{res:I.res,objects:R,prefixes:B,nextMarker:I.data.NextMarker||null,isTruncated:I.data.IsTruncated==="true"});case 13:case"end":return X.stop()}},null,this)},C.restore=function(T,w){var O,I;return u.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return w=w||{},w.subres=(0,f.default)({restore:""},w.subres),w.versionId&&(w.subres.versionId=w.versionId),O=this._objectRequestParams("POST",T,w),O.successStatuses=[202],M.next=7,u.default.awrap(this.request(O));case 7:return I=M.sent,M.abrupt("return",{res:I.res});case 9:case"end":return M.stop()}},null,this)},C.signatureUrl=function(T,w){w=w||{},T=this._objectName(T),w.method=w.method||"GET";var O=i.timestamp()+(w.expires||1800),I={bucket:this.options.bucket,object:T},R=this._getResource(I);this.options.stsToken&&(w["security-token"]=this.options.stsToken);var M=h._signatureForURL(this.options.accessKeySecret,w,R,O),B=e.parse(this._getReqUrl(I));return B.query={OSSAccessKeyId:this.options.accessKeyId,Expires:O,Signature:M.Signature},l(M.subResource).to(B.query),B.format()},C.getObjectUrl=function(T,w){return w?w[w.length-1]!=="/"&&(w+="/"):w=this.options.endpoint.format(),w+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 w=e.parse(T),O=this.options.bucket;w.hostname=O+"."+w.hostname,w.host=O+"."+w.host,T=w.format()}return T+this._escape(this._objectName(_))},C._objectRequestParams=function(T,w,O){if(!this.options.bucket)throw new Error("Please create a bucket first");O=O||{},w=this._objectName(w);var I={object:w,bucket:this.options.bucket,method:T,subres:O&&O.subres,timeout:O&&O.timeout,ctx:O&&O.ctx};return O.headers&&(I.headers={},l(O.headers).to(I.headers)),I},C._objectName=function(T){return T.replace(/^\/+/,"")},C._convertMetaToHeaders=function(T,w){if(!T)return;(0,v.default)(T).forEach(function(O){w["x-oss-meta-"+O]=T[O]})},C._deleteFileSafe=function(T){var w=this;return new p.default(function(O){t.exists(T,function(I){I?t.unlink(T,function(R){R&&w.debug("unlink %j error: %s",T,R,"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(k,D,n){"use strict";n.version="6.10.0"},{}],6:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(d){return d&&d.__esModule?d:{default:d}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=n;f.deleteBucketLifecycle=function(u,o){var i,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return m(u),i=this._bucketRequestParams("DELETE",u,"lifecycle",o),i.successStatuses=[204],e.next=5,p.default.awrap(this.request(i));case 5:return t=e.sent,e.abrupt("return",{res:t.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(d){return d&&d.__esModule?d:{default:d}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=n;f.deleteBucketWebsite=function(u,o){var i,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return m(u),i=this._bucketRequestParams("DELETE",u,"website",o),i.successStatuses=[204],e.next=5,p.default.awrap(this.request(i));case 5:return t=e.sent,e.abrupt("return",{res:t.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=k("../utils/isArray"),d=f.isArray,u=k("../utils/formatObjKey"),o=u.formatObjKey,i=n;i.getBucketLifecycle=function(s,e){var l,r,a;return p.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return m(s),l=this._bucketRequestParams("GET",s,"lifecycle",e),l.successStatuses=[200],l.xmlResponse=!0,h.next=6,p.default.awrap(this.request(l));case 6:return r=h.sent,a=r.data.Rule||null,a&&(d(a)||(a=[a]),a=a.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:a,res:r.res});case 10:case"end":return h.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(d){return d&&d.__esModule?d:{default:d}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=n;f.getBucketVersioning=function(u,o){var i,t,s;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return m(u),i=this._bucketRequestParams("GET",u,"versioning",o),i.xmlResponse=!0,i.successStatuses=[200],l.next=6,p.default.awrap(this.request(i));case 6:return t=l.sent,s=t.data.Status,l.abrupt("return",{status:t.status,versionStatus:s,res:t.res});case 9:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(o){return o&&o.__esModule?o:{default:o}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=k("../utils/isObject"),d=f.isObject,u=n;u.getBucketWebsite=function(i,t){var s,e,l;return p.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return m(i),s=this._bucketRequestParams("GET",i,"website",t),s.successStatuses=[200],s.xmlResponse=!0,a.next=6,p.default.awrap(this.request(s));case 6:return e=a.sent,l=[],e.data.RoutingRules&&e.data.RoutingRules.RoutingRule&&(d(e.data.RoutingRules.RoutingRule)?l=[e.data.RoutingRules.RoutingRule]:l=e.data.RoutingRules.RoutingRule),a.abrupt("return",{index:e.data.IndexDocument&&e.data.IndexDocument.Suffix||"",supportSubDir:e.data.IndexDocument&&e.data.IndexDocument.SupportSubDir||"false",type:e.data.IndexDocument&&e.data.IndexDocument.Type,routingRules:l,error:e.data.ErrorDocument&&e.data.ErrorDocument.Key||null,res:e.res});case 10:case"end":return a.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(E){return E&&E.__esModule?E:{default:E}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=k("../utils/isArray"),d=f.isArray,u=k("../utils/deepCopy"),o=u.deepCopy,i=k("../utils/isObject"),t=i.isObject,s=k("../utils/obj2xml"),e=s.obj2xml,l=k("../utils/checkObjectTag"),r=l.checkObjectTag,a=k("../utils/getStrBytesCount"),c=a.getStrBytesCount,h=n;h.putBucketLifecycle=function(C,_,T){var w,O,I,R,M;return p.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:if(m(C),d(_)){P.next=3;break}throw new Error("rules must be Array");case 3:return w=this._bucketRequestParams("PUT",C,"lifecycle",T),O=[],I={LifecycleConfiguration:{Rule:O}},_.forEach(function(X){g(X),S(X),X.id&&(X.ID=X.id,delete X.id),O.push(X)}),R=e(I,{headers:!0,firstUpperCase:!0}),w.content=R,w.mime="xml",w.successStatuses=[200],P.next=13,p.default.awrap(this.request(w));case 13:return M=P.sent,P.abrupt("return",{res:M.res});case 15:case"end":return P.stop()}},null,this)};function 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 S(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(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(o){return o&&o.__esModule?o:{default:o}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=k("../utils/obj2xml"),d=f.obj2xml,u=n;u.putBucketVersioning=function(i,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,l,r;return p.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:if(m(i),["Enabled","Suspended"].includes(t)){c.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return e=this._bucketRequestParams("PUT",i,"versioning",s),l={VersioningConfiguration:{Status:t}},e.mime="xml",e.content=d(l,{headers:!0}),c.next=9,p.default.awrap(this.request(e));case 9:return r=c.sent,c.abrupt("return",{res:r.res,status:r.status});case 11:case"end":return c.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=k("../utils/obj2xml"),d=f.obj2xml,u=k("../utils/isArray"),o=u.isArray,i=n;i.putBucketWebsite=function(s){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments[2],r,a,c,h,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:if(m(s),r=this._bucketRequestParams("PUT",s,"website",l),a={Suffix:e.index||"index.html"},c={IndexDocument:a},h={WebsiteConfiguration:c},e.supportSubDir&&(a.SupportSubDir=e.supportSubDir),e.type&&(a.Type=e.type),e.error&&(c.ErrorDocument={Key:e.error}),!(e.routingRules!==void 0)){b.next=12;break}if(o(e.routingRules)){b.next=11;break}throw new Error("RoutingRules must be Array");case 11:c.RoutingRules={RoutingRule:e.routingRules};case 12:return h=d(h),r.content=h,r.mime="xml",r.successStatuses=[200],b.next=18,p.default.awrap(this.request(r));case 18:return g=b.sent,b.abrupt("return",{res:g.res});case 20:case"end":return b.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(k,D,n){(function(y){"use strict";var p=k("babel-runtime/core-js/object/keys"),x=f(p),v=k("babel-runtime/core-js/json/stringify"),m=f(v);function f(d){return d&&d.__esModule?d:{default:d}}n.encodeCallback=function(u,o){if(u.headers=u.headers||{},!Object.prototype.hasOwnProperty.call(u.headers,"x-oss-callback")&&o.callback){var i={callbackUrl:encodeURI(o.callback.url),callbackBody:o.callback.body};o.callback.host&&(i.callbackHost=o.callback.host),o.callback.contentType&&(i.callbackBodyType=o.callback.contentType);var t=y.from((0,m.default)(i)).toString("base64");if(u.headers["x-oss-callback"]=t,o.callback.customValue){var s={};(0,x.default)(o.callback.customValue).forEach(function(e){s["x:"+e]=o.callback.customValue[e]}),u.headers["x-oss-callback-var"]=y.from((0,m.default)(s)).toString("base64")}}}}).call(this,k("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/assign"),p=x(y);function x(i){return i&&i.__esModule?i:{default:i}}var v=k("humanize-ms"),m=k("url"),f=k("../utils/checkBucketName"),d=f.checkBucketName;function u(i,t){var s=m.parse(i);if(s.protocol||(s=m.parse("http"+(t?"s":"")+"://"+i)),s.protocol!=="http:"&&s.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return s}function o(i,t,s){var e=s?"https://":"http://",l=t?"-internal.aliyuncs.com":".aliyuncs.com",r="vpc100-oss-cn-";return i.substr(0,r.length)===r&&(l=".aliyuncs.com"),m.parse(e+i+l)}D.exports=function(i){if(!i||!i.accessKeyId||!i.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");i.bucket&&d(i.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},i);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=v(t.timeout)),t.endpoint)t.endpoint=u(t.endpoint,t.secure);else if(t.region)t.endpoint=o(t.region,t.internal,t.secure);else throw new Error("require options.endpoint or options.region");return t.inited=!0,t}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(k,D,n){"use strict";var y=k("merge-descriptors"),p=n;y(p,k("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=k("querystring"),d=k("js-base64"),u=d.Base64.encode,o=n;o.processObjectSave=function(s,e,l,r){var a,c,h,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return i(s,"sourceObject"),i(e,"targetObject"),i(l,"process"),e=this._objectName(e),r&&m(r),a=this._objectRequestParams("POST",s,{subres:"x-oss-process"}),c=r?",b_"+u(r):"",e=u(e),h={"x-oss-process":l+"|sys/saveas,o_"+e+c},a.content=f.stringify(h),b.next=12,p.default.awrap(this.request(a));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 i(t,s){if(!t)throw new Error(s+" is required");if(typeof t!="string")throw new Error(s+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(o){return o&&o.__esModule?o:{default:o}}var v=k("copy-to"),m=k("./callback"),f=k("./utils/deepCopy"),d=f.deepCopy,u=n;u.listUploads=function(i,t){var s,e,l,r;return p.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return t=t||{},s={},v(t).to(s),s.subres="uploads",e=this._objectRequestParams("GET","",s),e.query=i,e.xmlResponse=!0,e.successStatuses=[200],c.next=10,p.default.awrap(this.request(e));case 10:return l=c.sent,r=l.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:l.res,uploads:r,bucket:l.data.Bucket,nextKeyMarker:l.data.NextKeyMarker,nextUploadIdMarker:l.data.NextUploadIdMarker,isTruncated:l.data.IsTruncated==="true"});case 15:case"end":return c.stop()}},null,this)},u.listParts=function(i,t,s,e){var l,r,a;return p.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return e=e||{},l={},v(e).to(l),l.subres={uploadId:t},r=this._objectRequestParams("GET",i,l),r.query=s,r.xmlResponse=!0,r.successStatuses=[200],h.next=10,p.default.awrap(this.request(r));case 10:return a=h.sent,h.abrupt("return",{res:a.res,uploadId:a.data.UploadId,bucket:a.data.Bucket,name:a.data.Key,partNumberMarker:a.data.PartNumberMarker,nextPartNumberMarker:a.data.NextPartNumberMarker,maxParts:a.data.MaxParts,isTruncated:a.data.IsTruncated,parts:a.data.Part||[]});case 12:case"end":return h.stop()}},null,this)},u.abortMultipartUpload=function(i,t,s){var e,l,r;return p.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return this._stop(),s=s||{},e={},v(s).to(e),e.subres={uploadId:t},l=this._objectRequestParams("DELETE",i,e),l.successStatuses=[204],c.next=9,p.default.awrap(this.request(l));case 9:return r=c.sent,c.abrupt("return",{res:r.res});case 11:case"end":return c.stop()}},null,this)},u.initMultipartUpload=function(i,t){var s,e,l;return p.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return t=t||{},s={},v(t).to(s),s.headers=s.headers||{},this._convertMetaToHeaders(t.meta,s.headers),s.subres="uploads",e=this._objectRequestParams("POST",i,s),e.mime=t.mime,e.xmlResponse=!0,e.successStatuses=[200],a.next=12,p.default.awrap(this.request(e));case 12:return l=a.sent,a.abrupt("return",{res:l.res,bucket:l.data.Bucket,name:l.data.Key,uploadId:l.data.UploadId});case 14:case"end":return a.stop()}},null,this)},u.uploadPart=function(i,t,s,e,l,r,a){var c;return p.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return c={stream:this._createStream(e,l,r),size:r-l},g.next=3,p.default.awrap(this._uploadPart(i,t,s,c,a));case 3:return g.abrupt("return",g.sent);case 4:case"end":return g.stop()}},null,this)},u.completeMultipartUpload=function(i,t,s,e){var l,r,a,c,h,g,A,b;return p.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:for(l=s.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>
`,a=0;a<l.length;a++)c=l[a],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",i,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:i,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)},u._uploadPart=function(i,t,s,e,l){var r,a,c;return p.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return l=l||{},r={},v(l).to(r),r.headers={"Content-Length":e.size},r.subres={partNumber:s,uploadId:t},a=this._objectRequestParams("PUT",i,r),a.mime=r.mime,a.stream=e.stream,a.successStatuses=[200],g.next=11,p.default.awrap(this.request(a));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,a.stream=null,g.abrupt("return",{name:i,etag:c.res.headers.etag,res:c.res});case 17:case"end":return g.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=d(y),x=k("babel-runtime/core-js/object/keys"),v=d(x),m=k("babel-runtime/helpers/typeof"),f=d(m);function d(t){return t&&t.__esModule?t:{default:t}}var u=k("../utils/checkBucketName"),o=u.checkBucketName,i=n;i.copy=function(s,e,l,r){var a,c,h;return p.default.async(function(A){for(;;)switch(A.prev=A.next){case 0:return(typeof l=="undefined"?"undefined":(0,f.default)(l))==="object"&&(r=l),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,l),r.versionId&&(e=e+"?versionId="+r.versionId),r.headers["x-oss-copy-source"]=e,a=this._objectRequestParams("PUT",s,r),a.xmlResponse=!0,a.successStatuses=[200,304],A.next=14,p.default.awrap(this.request(a));case 14:return c=A.sent,h=c.data,h&&(h={etag:h.ETag,lastModified:h.LastModified}),A.abrupt("return",{data:h,res:c.res});case 18:case"end":return A.stop()}},null,this)},i._getSourceName=function(s,e){return typeof e=="string"?s=this._objectName(s):s[0]!=="/"?e=this.options.bucket:(e=s.replace(/\/(.+?)(\/.*)/,"$1"),s=s.replace(/(\/.+?\/)(.*)/,"$2")),o(e),s=encodeURI(s),s="/"+e+"/"+s,s}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),v=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var f=n;f.delete=function(u){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,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),i=this._objectRequestParams("DELETE",u,o),i.successStatuses=[204],e.next=6,p.default.awrap(this.request(i));case 6:return t=e.sent,e.abrupt("return",{res:t.res});case 8:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),v=m(x);function m(i){return i&&i.__esModule?i:{default:i}}var f=k("utility"),d=k("../utils/obj2xml"),u=d.obj2xml,o=n;o.deleteMulti=function(t){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e,l,r,a,c,h,g,A,b,S,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(l=0;l<t.length;l++)r={},typeof t[l]=="string"?r.Key=f.escape(this._objectName(t[l])):(a=t[l],c=a.key,h=a.versionId,r.Key=f.escape(this._objectName(c)),r.VersionId=h),e.push(r);return g={Delete:{Quiet:!!s.quiet,Object:e}},A=u(g,{headers:!0}),s.subres=(0,v.default)({delete:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),b=this._objectRequestParams("POST","",s),b.mime="xml",b.content=A,b.xmlResponse=!0,b.successStatuses=[200],T.next=15,p.default.awrap(this.request(b));case 15:return S=T.sent,E=S.data,C=E&&E.Deleted||null,C&&(Array.isArray(C)||(C=[C])),T.abrupt("return",{res:S.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(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),v=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var f=n;f.deleteObjectTagging=function(u){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,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),u=this._objectName(u),i=this._objectRequestParams("DELETE",u,o),i.successStatuses=[204],e.next=7,p.default.awrap(this.request(i));case 7:return t=e.sent,e.abrupt("return",{status:t.status,res:t.res});case 9:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),v=m(x);function m(o){return o&&o.__esModule?o:{default:o}}var f=k("fs"),d=k("is-type-of"),u=n;u.get=function(i,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,l,r,a;return p.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return e=null,l=!1,d.writableStream(t)?e=t:d.string(t)?(e=f.createWriteStream(t),l=!0):s=t,s=s||{},s.subres=(0,v.default)({},s.subres),s.versionId&&(s.subres.versionId=s.versionId),s.process&&(s.subres["x-oss-process"]=s.process),r=void 0,h.prev=8,a=this._objectRequestParams("GET",i,s),a.writeStream=e,a.successStatuses=[200,206,304],h.next=14,p.default.awrap(this.request(a));case 14:r=h.sent,l&&e.destroy(),h.next=25;break;case 18:if(h.prev=18,h.t0=h.catch(8),!l){h.next=24;break}return e.destroy(),h.next=24,p.default.awrap(this._deleteFileSafe(t));case 24:throw h.t0;case 25:return h.abrupt("return",{res:r.res,content:r.data});case 26:case"end":return h.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),v=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var f=n;f.getACL=function(u){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,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),u=this._objectName(u),i=this._objectRequestParams("GET",u,o),i.successStatuses=[200],i.xmlResponse=!0,e.next=8,p.default.awrap(this.request(i));case 8:return t=e.sent,e.abrupt("return",{acl:t.data.AccessControlList.Grant,owner:{id:t.data.Owner.ID,displayName:t.data.Owner.DisplayName},res:t.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=d(y),x=k("babel-runtime/regenerator"),v=d(x),m=k("babel-runtime/core-js/object/assign"),f=d(m);function d(a){return a&&a.__esModule?a:{default:a}}var u=n,o=k("../utils/isObject"),i=o.isObject,t=k("../utils/isArray"),s=t.isArray;u.getBucketVersions=e,u.listObjectVersions=e;function e(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h,g,A,b,S,E;return v.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(!(a.versionIdMarker&&a.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(a),_.next=10,v.default.awrap(this.request(h));case 10:return g=_.sent,A=g.data.Version||[],b=g.data.DeleteMarker||[],S=this,A&&(Array.isArray(A)||(A=[A]),A=A.map(function(T){return{name:T.Key,url:S._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&&(s(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&&(s(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 l(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()}function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c={};return i(a)&&(0,p.default)(a).forEach(function(h){c[l(h)]=a[h]}),c}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),v=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var f=n;f.getObjectMeta=function(u,o){var i,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o=o||{},u=this._objectName(u),o.subres=(0,v.default)({objectMeta:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),i=this._objectRequestParams("HEAD",u,o),i.successStatuses=[200],e.next=8,p.default.awrap(this.request(i));case 8:return t=e.sent,e.abrupt("return",{status:t.status,res:t.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),v=m(x);function m(o){return o&&o.__esModule?o:{default:o}}var f=n,d=k("../utils/isObject"),u=d.isObject;f.getObjectTagging=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,e,l,r,a;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),i=this._objectName(i),s=this._objectRequestParams("GET",i,t),s.successStatuses=[200],h.next=7,p.default.awrap(this.request(s));case 7:return e=h.sent,h.next=10,p.default.awrap(this.parseXML(e.data));case 10:return l=h.sent,r=l.TagSet.Tag,r=r&&u(r)?[r]:r||[],a={},r.forEach(function(g){a[g.Key]=g.Value}),h.abrupt("return",{status:e.status,res:e.res,tag:a});case 16:case"end":return h.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),v=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var f=n;f.getSymlink=function(u){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t,s;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return o.subres=(0,v.default)({symlink:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),u=this._objectName(u),i=this._objectRequestParams("GET",u,o),i.successStatuses=[200],l.next=7,p.default.awrap(this.request(i));case 7:return t=l.sent,s=t.res.headers["x-oss-symlink-target"],l.abrupt("return",{targetName:decodeURIComponent(s),res:t.res});case 10:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=d(y),x=k("babel-runtime/core-js/object/keys"),v=d(x),m=k("babel-runtime/core-js/object/assign"),f=d(m);function d(o){return o&&o.__esModule?o:{default:o}}var u=n;u.head=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,e,l;return p.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return t.subres=(0,f.default)({},t.subres),t.versionId&&(t.subres.versionId=t.versionId),s=this._objectRequestParams("HEAD",i,t),s.successStatuses=[200,304],a.next=6,p.default.awrap(this.request(s));case 6:return e=a.sent,l={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&&(l.meta||(l.meta={}),l.meta[c.substring(11)]=e.headers[c])}),a.abrupt("return",l);case 10:case"end":return a.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),v=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var f=n;f.putACL=function(u,o,i){var t,s;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return i=i||{},i.subres=(0,v.default)({acl:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),i.headers=i.headers||{},i.headers["x-oss-object-acl"]=o,u=this._objectName(u),t=this._objectRequestParams("PUT",u,i),t.successStatuses=[200],l.next=10,p.default.awrap(this.request(t));case 10:return s=l.sent,l.abrupt("return",{res:s.res});case 12:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=d(y),x=k("babel-runtime/core-js/object/keys"),v=d(x),m=k("babel-runtime/core-js/object/assign"),f=d(m);function d(e){return e&&e.__esModule?e:{default:e}}var u=k("../utils/obj2xml"),o=u.obj2xml,i=k("../utils/checkObjectTag"),t=i.checkObjectTag,s=n;s.putObjectTagging=function(l,r){var a=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),a.subres=(0,f.default)({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),l=this._objectName(l),c=this._objectRequestParams("PUT",l,a),c.successStatuses=[200],r=(0,v.default)(r).map(function(S){return{Key:S,Value:r[S]}}),h={Tagging:{TagSet:{Tag:r}}},c.mime="xml",c.content=o(h),b.next=12,p.default.awrap(this.request(c));case 12:return g=b.sent,b.abrupt("return",{res:g.res,status:g.status});case 14:case"end":return b.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),v=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var f=n;f.putSymlink=function(u,o,i){var t,s;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return i=i||{},i.headers=i.headers||{},o=this._escape(this._objectName(o)),this._convertMetaToHeaders(i.meta,i.headers),i.headers["x-oss-symlink-target"]=o,i.subres=(0,v.default)({symlink:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),i.storageClass&&(i.headers["x-oss-storage-class"]=i.storageClass),u=this._objectName(u),t=this._objectRequestParams("PUT",u,i),t.successStatuses=[200],l.next=13,p.default.awrap(this.request(t));case 13:return s=l.sent,l.abrupt("return",{res:s.res});case 15:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/promise"),v=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var f=n;f._parallelNode=function(u,o,i,t){var s,e,l,r,a,c,h,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:s=this,e=[],l=[],r=u.length/o,a=u.length%o,c=a===0?r:(u.length-a)/o+1,h=1,g=0;case 8:if(!(g<u.length)){b.next=26;break}if(!s.isCancel()){b.next=11;break}return b.abrupt("break",26);case 11:if(t?l.push(i(s,u[g],t)):l.push(i(s,u[g])),!(l.length===o||h===c&&g===u.length-1)){b.next=23;break}return b.prev=13,h+=1,b.next=17,p.default.awrap(v.default.all(l));case 17:b.next=22;break;case 19:b.prev=19,b.t0=b.catch(13),e.push(b.t0);case 22:l=[];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(u,o,i){var t=this;return new v.default(function(s){var e=[];if(o<=0||!u){s(e);return}function l(E){return function(){if(E===null)throw new Error("Callback was already called.");var C=E;E=null;for(var _=arguments.length,T=Array(_),w=0;w<_;w++)T[w]=arguments[w];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 a=r(u),c=!1,h=0,g=!1;function A(E,C){h-=1,E?(c=!0,e.push(E),s(e)):C==={}||c&&h<=0?(c=!0,s(e)):g||(t.isCancel()?s(e):S())}function b(E,C){i(E).then(function(_){C(null,_)}).catch(function(_){C(_)})}function S(){for(g=!0;h<o&&!c&&!t.isCancel();){var E=a();if(E===null||e.length>0){c=!0,h<=0&&s(e);return}h+=1,b(E.value,l(A))}g=!1}S()})},f.cancel=function(u){this.options.cancelFlag=!0,u&&this.abortMultipartUpload(u.name,u.uploadId,u.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 u={status:0,name:"cancel"};return u}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(k,D,n){(function(y){"use strict";var p=k("babel-runtime/core-js/json/stringify"),x=f(p),v=k("babel-runtime/core-js/object/keys"),m=f(v);function f(o){return o&&o.__esModule?o:{default:o}}var d=k("./../../shims/crypto/crypto.js"),u=k("is-type-of");n.buildCanonicalizedResource=function(i,t){var s=""+i,e="?";if(u.string(t)&&t.trim()!=="")s+=e+t;else if(u.array(t))t.sort(),s+=e+t.join("&");else if(t){var l=function(c,h){return c[0]>h[0]?1:c[0]<h[0]?-1:0},r=function(c){s+=e+c,t[c]&&(s+="="+t[c]),e="&"};(0,m.default)(t).sort(l).forEach(r)}return s},n.buildCanonicalString=function(i,t,s,e){s=s||{};var l=s.headers||{},r="x-oss-",a=[],c={},h=[i.toUpperCase(),l["Content-Md5"]||"",l["Content-Type"]||l["Content-Type".toLowerCase()],e||l["x-oss-date"]];return(0,m.default)(l).forEach(function(g){var A=g.toLowerCase();A.indexOf(r)===0&&(c[A]=String(l[g]).trim())}),(0,m.default)(c).sort().forEach(function(g){a.push(g+":"+c[g])}),h=h.concat(a),h.push(this.buildCanonicalizedResource(t,s.parameters)),h.join(`
`)},n.computeSignature=function(i,t){var s=d.createHmac("sha1",i);return s.update(y.from(t,"utf8")).digest("base64")},n.authorization=function(i,t,s){return"OSS "+i+":"+this.computeSignature(t,s)},n._signatureForURL=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments[2],e=arguments[3],l={},r=t.subResource,a=r===void 0?{}:r;if(t.process){var c="x-oss-process";a[c]=t.process}if(t.trafficLimit){var h="x-oss-traffic-limit";a[h]=t.trafficLimit}if(t.response&&(0,m.default)(t.response).forEach(function(S){var E="response-"+S.toLowerCase();a[E]=t.response[S]}),(0,m.default)(t).forEach(function(S){var E=S.toLowerCase(),C=t[S];E.indexOf("x-oss-")===0?l[E]=C:(E.indexOf("content-md5")===0||E.indexOf("content-type")===0)&&(l[S]=C)}),Object.prototype.hasOwnProperty.call(t,"security-token")&&(a["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),a.callback=y.from((0,x.default)(g)).toString("base64"),t.callback.customValue){var A={};(0,m.default)(t.callback.customValue).forEach(function(S){A["x:"+S]=t.callback.customValue[S]}),a["callback-var"]=y.from((0,x.default)(A)).toString("base64")}}var b=this.buildCanonicalString(t.method,s,{headers:l,parameters:a},e.toString());return{Signature:this.computeSignature(i,b),subResource:a}}}).call(this,k("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkBucketName=void 0,n.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(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/entries"),p=x(y);function x(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.checkObjectTag=void 0;var v=k("./checkValid"),m=v.checkValid,f=k("./isObject"),d=f.isObject,u=[{validator:function(s){if(typeof s!="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(u,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(u,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function i(t){if(!d(t))throw new Error("tag must be Object");var s=(0,p.default)(t);if(s.length>10)throw new Error("maximum of 10 tags for a object");var e=["key","value"];s.forEach(function(l){l.forEach(function(r,a){m(r,o[e[a]])})})}n.checkObjectTag=i},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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)})}n.checkValid=y},{}],38:[function(k,D,n){(function(y){"use strict";var p=k("babel-runtime/core-js/object/assign"),x=v(p);function v(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(n,"__esModule",{value:!0}),n.createRequest=void 0;var m=k("./../../../shims/crypto/crypto.js"),f=k("debug")("ali-oss"),d=k("mime"),u=k("dateformat"),o=k("copy-to"),i=k("path");function t(l,r){return l[r]||l[r.toLowerCase()]}function s(l,r){delete l[r],delete l[r.toLowerCase()]}function e(l){var r=new Date;this.options.amendTimeSkewed&&(r=+new Date+this.options.amendTimeSkewed);var a={"x-oss-date":u(r,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(a["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,x.default)(a,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(a["x-oss-security-token"]=this.options.stsToken),o(l.headers).to(a),t(a,"Content-Type")||(l.mime&&l.mime.indexOf("/")>0?a["Content-Type"]=l.mime:a["Content-Type"]=d.getType(l.mime||i.extname(l.object||""))),t(a,"Content-Type")||s(a,"Content-Type"),l.content&&(a["Content-Md5"]=m.createHash("md5").update(y.from(l.content,"utf8")).digest("base64"),a["Content-Length"]||(a["Content-Length"]=l.content.length));var c=this._getResource(l);a.authorization=this.authorization(l.method,c,l.subres,a);var h=this._getReqUrl(l);f("request %s %s, with headers %j, !!stream: %s",l.method,h,a,!!l.stream);var g=l.timeout||this.options.timeout,A={method:l.method,content:l.content,stream:l.stream,headers:a,timeout:g,writeStream:l.writeStream,customResponse:l.customResponse,ctx:l.ctx||this.ctx};return this.agent&&(A.agent=this.agent),this.httpsAgent&&(A.httpsAgent=this.httpsAgent),{url:h,params:A}}n.createRequest=e}).call(this,k("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=m(y),x=k("babel-runtime/helpers/typeof"),v=m(x);function m(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(n,"__esModule",{value:!0}),n.deepCopy=void 0,n.deepCopy=function(f){if(f===null||(typeof f=="undefined"?"undefined":(0,v.default)(f))!=="object")return f;var d=Array.isArray(f)?[]:{};return(0,p.default)(f).forEach(function(u){d[u]=n.deepCopy(f[u])}),d}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=m(y),x=k("babel-runtime/helpers/typeof"),v=m(x);function m(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(n,"__esModule",{value:!0}),n.formatObjKey=void 0;function f(u,o){if(u===null||(typeof u=="undefined"?"undefined":(0,v.default)(u))!=="object")return u;var i=void 0;if(Array.isArray(u)){i=[];for(var t=0;t<u.length;t++)i.push(f(u[t],o))}else i={},(0,p.default)(u).forEach(function(s){i[d(s,o)]=f(u[s],o)});return i}n.formatObjKey=f;function d(u,o){return o==="firstUpperCase"?u=u.replace(/^./,function(i){return i.toUpperCase()}):o==="firstLowerCase"&&(u=u.replace(/^./,function(i){return i.toLowerCase()})),u}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.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}n.getStrBytesCount=y},{}],42:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isArray=void 0,n.isArray=function(y){return Object.prototype.toString.call(y)==="[object Array]"}},{}],43:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isBlob=void 0;function y(p){return typeof Blob!="undefined"&&p instanceof Blob}n.isBlob=y},{}],44:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isFile=void 0,n.isFile=function(y){return typeof File!="undefined"&&y instanceof File}},{}],45:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isIP=void 0,n.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(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isObject=void 0,n.isObject=function(y){return Object.prototype.toString.call(y)==="[object Object]"}},{}],47:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=x(y);function x(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(n,"__esModule",{value:!0}),n.obj2xml=void 0;var v=k("./formatObjKey");function m(d){return Object.prototype.toString.call(d).replace(/(.*? |])/g,"").toLowerCase()}function f(d,u){var o="";return u&&u.headers&&(o=`<?xml version="1.0" encoding="UTF-8"?>
`),u&&u.firstUpperCase&&(d=v.formatObjKey(d,"firstUpperCase")),m(d)==="object"?(0,p.default)(d).forEach(function(i){m(d[i])==="string"||m(d[i])==="number"?o+="<"+i+">"+d[i]+"</"+i+">":m(d[i])==="object"?o+="<"+i+">"+f(d[i])+"</"+i+">":m(d[i])==="array"?o+=d[i].map(function(t){return"<"+i+">"+f(t)+"</"+i+">"}).join(""):o+="<"+i+">"+d[i].toString()+"</"+i+">"}):o+=d.toString(),o}n.obj2xml=f},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(k,D,n){D.exports=y,D.exports.HttpsAgent=y;function y(){}},{}],49:[function(k,D,n){D.exports=k("./register")().Promise},{"./register":51}],50:[function(k,D,n){"use strict";var y="@@any-promise/REGISTRATION",p=null;D.exports=function(x,v){return function(f,d){f=f||null,d=d||{};var u=d.global!==!1;if(p===null&&u&&(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),u&&(x[y]=p)),p}}},{}],51:[function(k,D,n){"use strict";D.exports=k("./loader")(window,y);function y(){if(typeof window.Promise=="undefined")throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}},{"./loader":50}],52:[function(k,D,n){D.exports={default:k("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(k,D,n){D.exports={default:k("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(k,D,n){D.exports={default:k("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(k,D,n){D.exports={default:k("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(k,D,n){D.exports={default:k("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(k,D,n){D.exports={default:k("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(k,D,n){D.exports={default:k("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(k,D,n){D.exports={default:k("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(k,D,n){D.exports={default:k("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(k,D,n){D.exports={default:k("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(k,D,n){D.exports={default:k("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(k,D,n){D.exports={default:k("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(k,D,n){D.exports={default:k("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(k,D,n){D.exports={default:k("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(k,D,n){D.exports={default:k("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(k,D,n){"use strict";n.__esModule=!0;var y=k("../core-js/symbol/iterator"),p=f(y),x=k("../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}}n.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(k,D,n){D.exports=k("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(k,D,n){"use strict";n.byteLength=u,n.toByteArray=i,n.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(l){var r=l.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=l.indexOf("=");a===-1&&(a=r);var c=a===r?0:4-a%4;return[a,c]}function u(l){var r=d(l),a=r[0],c=r[1];return(a+c)*3/4-c}function o(l,r,a){return(r+a)*3/4-a}function i(l){var r,a=d(l),c=a[0],h=a[1],g=new x(o(l,c,h)),A=0,b=h>0?c-4:c,S;for(S=0;S<b;S+=4)r=p[l.charCodeAt(S)]<<18|p[l.charCodeAt(S+1)]<<12|p[l.charCodeAt(S+2)]<<6|p[l.charCodeAt(S+3)],g[A++]=r>>16&255,g[A++]=r>>8&255,g[A++]=r&255;return h===2&&(r=p[l.charCodeAt(S)]<<2|p[l.charCodeAt(S+1)]>>4,g[A++]=r&255),h===1&&(r=p[l.charCodeAt(S)]<<10|p[l.charCodeAt(S+1)]<<4|p[l.charCodeAt(S+2)]>>2,g[A++]=r>>8&255,g[A++]=r&255),g}function t(l){return y[l>>18&63]+y[l>>12&63]+y[l>>6&63]+y[l&63]}function s(l,r,a){for(var c,h=[],g=r;g<a;g+=3)c=(l[g]<<16&16711680)+(l[g+1]<<8&65280)+(l[g+2]&255),h.push(t(c));return h.join("")}function e(l){for(var r,a=l.length,c=a%3,h=[],g=16383,A=0,b=a-c;A<b;A+=g)h.push(s(l,A,A+g>b?b:A+g));return c===1?(r=l[a-1],h.push(y[r>>2]+y[r<<4&63]+"==")):c===2&&(r=(l[a-2]<<8)+l[a-1],h.push(y[r>>10]+y[r>>4&63]+y[r<<2&63]+"=")),h.join("")}},{}],70:[function(k,D,n){/*!
* 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 i(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 s=i(/(ipod|iphone|ipad)/i).toLowerCase(),e=/like android/i.test(o),l=!e&&/android/i.test(o),r=/nexus\s*[0-6]\s*/i.test(o),a=!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),S=/windows phone/i.test(o),E=/SamsungBrowser/i.test(o),C=!S&&/windows/i.test(o),_=!s&&!h&&/macintosh/i.test(o),T=!l&&!g&&!A&&!b&&/linux/i.test(o),w=t(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),O=i(/version\/(\d+(\.\d+)?)/i),I=/tablet/i.test(o)&&!/tablet pc/i.test(o),R=!I&&/[^-]mobi/i.test(o),M=/xbox/i.test(o),B;/opera/i.test(o)?B={name:"Opera",opera:y,version:O||i(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(o)?B={name:"Opera",opera:y,version:i(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||O}:/SamsungBrowser/i.test(o)?B={name:"Samsung Internet for Android",samsungBrowser:y,version:O||i(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(o)?B={name:"NAVER Whale browser",whale:y,version:i(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(o)?B={name:"MZ Browser",mzbrowser:y,version:i(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(o)?B={name:"Opera Coast",coast:y,version:O||i(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(o)?B={name:"Focus",focus:y,version:i(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(o)?B={name:"Yandex Browser",yandexbrowser:y,version:O||i(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(o)?B={name:"UC Browser",ucbrowser:y,version:i(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(o)?B={name:"Maxthon",maxthon:y,version:i(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(o)?B={name:"Epiphany",epiphany:y,version:i(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(o)?B={name:"Puffin",puffin:y,version:i(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(o)?B={name:"Sleipnir",sleipnir:y,version:i(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(o)?B={name:"K-Meleon",kMeleon:y,version:i(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:S?(B={name:"Windows Phone",osname:"Windows Phone",windowsphone:y},w?(B.msedge=y,B.version=w):(B.msie=y,B.version=i(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(o)?B={name:"Internet Explorer",msie:y,version:i(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?B={name:"Chrome",osname:"Chrome OS",chromeos:y,chromeBook:y,chrome:y,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(o)?B={name:"Microsoft Edge",msedge:y,version:w}:/vivaldi/i.test(o)?B={name:"Vivaldi",vivaldi:y,version:i(/vivaldi\/(\d+(\.\d+)?)/i)||O}:g?B={name:"Sailfish",osname:"Sailfish OS",sailfish:y,version:i(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(o)?B={name:"SeaMonkey",seamonkey:y,version:i(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(o)?(B={name:"Firefox",firefox:y,version:i(/(?: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:i(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(o)?B={name:"PhantomJS",phantom:y,version:i(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(o)?B={name:"SlimerJS",slimer:y,version:i(/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||i(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:b?(B={name:"WebOS",osname:"WebOS",webos:y,version:O||i(/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:i(/dolfin\/(\d+(\.\d+)?)/i)}:A?B={name:"Tizen",osname:"Tizen",tizen:y,version:i(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||O}:/qupzilla/i.test(o)?B={name:"QupZilla",qupzilla:y,version:i(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||O}:/chromium/i.test(o)?B={name:"Chromium",chromium:y,version:i(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||O}:/chrome|crios|crmo/i.test(o)?B={name:"Chrome",chrome:y,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:l?B={name:"Android",version:O}:/safari|applewebkit/i.test(o)?(B={name:"Safari",safari:y},O&&(B.version=O)):s?(B={name:s=="iphone"?"iPhone":s=="ipad"?"iPad":"iPod"},O&&(B.version=O)):/googlebot/i.test(o)?B={name:"Googlebot",googlebot:y,version:i(/googlebot\/(\d+(\.\d+))/i)||O}:B={name:i(/^(.*)\/(.*) /),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||i(/gecko\/(\d+(\.\d+)?)/i)),!B.windowsphone&&(l||B.silk)?(B.android=y,B.osname="Android"):!B.windowsphone&&s?(B[s]=y,B.ios=y,B.osname="iOS"):_?(B.mac=y,B.osname="macOS"):M?(B.xbox=y,B.osname="Xbox"):C?(B.windows=y,B.osname="Windows"):T&&(B.linux=y,B.osname="Linux");function P(j){switch(j){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var X="";B.windows?X=P(i(/Windows ((NT|XP)( \d\d?.\d)?)/i)):B.windowsphone?X=i(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):B.mac?(X=i(/Mac OS X (\d+([_\.\s]\d+)*)/i),X=X.replace(/[_\s]/g,".")):s?(X=i(/os (\d+([_\s]\d+)*) like mac os x/i),X=X.replace(/[_\s]/g,".")):l?X=i(/android[ \/-](\d+(\.\d+)*)/i):B.webos?X=i(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):B.blackberry?X=i(/rim\stablet\sos\s(\d+(\.\d+)*)/i):B.bada?X=i(/bada\/(\d+(\.\d+)*)/i):B.tizen&&(X=i(/tizen[\/\s](\d+(\.\d+)*)/i)),X&&(B.osversion=X);var F=!B.windows&&X.split(".")[0];return I||a||s=="ipad"||l&&(F==3||F>=4&&!R)||B.silk?B.tablet=y:(R||s=="iphone"||s=="ipod"||l||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 i=0;i<o.length;++i){var t=o[i];if(typeof t=="string"&&t in x)return!0}return!1};function v(o){return o.split(".").length}function m(o,i){var t=[],s;if(Array.prototype.map)return Array.prototype.map.call(o,i);for(s=0;s<o.length;s++)t.push(i(o[s]));return t}function f(o){for(var i=Math.max(v(o[0]),v(o[1])),t=m(o,function(s){var e=i-v(s);return s=s+new Array(e+1).join(".0"),m(s.split("."),function(l){return new Array(20-l.length).join("0")+l}).reverse()});--i>=0;){if(t[0][i]>t[1][i])return 1;if(t[0][i]===t[1][i]){if(i===0)return 0}else return-1}}function d(o,i,t){var s=x;typeof i=="string"&&(t=i,i=void 0),i===void 0&&(i=!1),t&&(s=p(t));var e=""+s.version;for(var l in o)if(o.hasOwnProperty(l)&&s[l]){if(typeof o[l]!="string")throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(o));return f([e,o[l]])<0}return i}function u(o,i,t){return!d(o,i,t)}return x.isUnsupportedBrowser=d,x.compareVersions=f,x.check=u,x._detect=p,x.detect=p,x})},{}],71:[function(k,D,n){},{}],72:[function(k,D,n){var y=k("buffer").Buffer,p=y.isEncoding||function(u){switch(u&&u.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function x(u){if(u&&!p(u))throw new Error("Unknown encoding: "+u)}var v=n.StringDecoder=function(u){this.encoding=(u||"utf8").toLowerCase().replace(/[-_]/,""),x(u);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(u){for(var o="";this.charLength;){var i=u.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:u.length;if(u.copy(this.charBuffer,this.charReceived,0,i),this.charReceived+=i,this.charReceived<this.charLength)return"";u=u.slice(i,u.length),o=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var s=o.charCodeAt(o.length-1);if(s>=55296&&s<=56319){this.charLength+=this.surrogateSize,o="";continue}if(this.charReceived=this.charLength=0,u.length===0)return o;break}this.detectIncompleteChar(u);var t=u.length;this.charLength&&(u.copy(this.charBuffer,0,u.length-this.charReceived,t),t-=this.charReceived),o+=u.toString(this.encoding,0,t);var t=o.length-1,s=o.charCodeAt(t);if(s>=55296&&s<=56319){var e=this.surrogateSize;return this.charLength+=e,this.charReceived+=e,this.charBuffer.copy(this.charBuffer,e,0,e),u.copy(this.charBuffer,0,0,e),o.substring(0,t)}return o},v.prototype.detectIncompleteChar=function(u){for(var o=u.length>=3?3:u.length;o>0;o--){var i=u[u.length-o];if(o==1&&i>>5==6){this.charLength=2;break}if(o<=2&&i>>4==14){this.charLength=3;break}if(o<=3&&i>>3==30){this.charLength=4;break}}this.charReceived=o},v.prototype.end=function(u){var o="";if(u&&u.length&&(o=this.write(u)),this.charReceived){var i=this.charReceived,t=this.charBuffer,s=this.encoding;o+=t.slice(0,i).toString(s)}return o};function m(u){return u.toString(this.encoding)}function f(u){this.charReceived=u.length%2,this.charLength=this.charReceived?2:0}function d(u){this.charReceived=u.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(k,D,n){(function(y,p){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var x=k("base64-js"),v=k("ieee754"),m=k("isarray");n.Buffer=p,n.SlowBuffer=h,n.INSPECT_MAX_BYTES=50,p.TYPED_ARRAY_SUPPORT=y.TYPED_ARRAY_SUPPORT!==void 0?y.TYPED_ARRAY_SUPPORT:f(),n.kMaxLength=d();function f(){try{var he=new Uint8Array(1);return he.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},he.foo()===42&&typeof he.subarray=="function"&&he.subarray(1,1).byteLength===0}catch(J){return!1}}function d(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(he,J){if(d()<J)throw new RangeError("Invalid typed array length");return p.TYPED_ARRAY_SUPPORT?(he=new Uint8Array(J),he.__proto__=p.prototype):(he===null&&(he=new p(J)),he.length=J),he}function p(he,J,Y){if(!p.TYPED_ARRAY_SUPPORT&&!(this instanceof p))return new p(he,J,Y);if(typeof he=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return s(this,he)}return o(this,he,J,Y)}p.poolSize=8192,p._augment=function(he){return he.__proto__=p.prototype,he};function o(he,J,Y,$){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?r(he,J,Y,$):typeof J=="string"?e(he,J,Y):a(he,J)}p.from=function(he,J,Y){return o(null,he,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 i(he){if(typeof he!="number")throw new TypeError('"size" argument must be a number');if(he<0)throw new RangeError('"size" argument must not be negative')}function t(he,J,Y,$){return i(J),J<=0?u(he,J):Y!==void 0?typeof $=="string"?u(he,J).fill(Y,$):u(he,J).fill(Y):u(he,J)}p.alloc=function(he,J,Y){return t(null,he,J,Y)};function s(he,J){if(i(J),he=u(he,J<0?0:c(J)|0),!p.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<J;++Y)he[Y]=0;return he}p.allocUnsafe=function(he){return s(null,he)},p.allocUnsafeSlow=function(he){return s(null,he)};function e(he,J,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!p.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var $=g(J,Y)|0;he=u(he,$);var de=he.write(J,Y);return de!==$&&(he=he.slice(0,de)),he}function l(he,J){var Y=J.length<0?0:c(J.length)|0;he=u(he,Y);for(var $=0;$<Y;$+=1)he[$]=J[$]&255;return he}function r(he,J,Y,$){if(J.byteLength,Y<0||J.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(J.byteLength<Y+($||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&$===void 0?J=new Uint8Array(J):$===void 0?J=new Uint8Array(J,Y):J=new Uint8Array(J,Y,$),p.TYPED_ARRAY_SUPPORT?(he=J,he.__proto__=p.prototype):he=l(he,J),he}function a(he,J){if(p.isBuffer(J)){var Y=c(J.length)|0;return he=u(he,Y),he.length===0||J.copy(he,0,0,Y),he}if(J){if(typeof ArrayBuffer!="undefined"&&J.buffer instanceof ArrayBuffer||"length"in J)return typeof J.length!="number"||at(J.length)?u(he,0):l(he,J);if(J.type==="Buffer"&&m(J.data))return l(he,J.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(he){if(he>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return he|0}function h(he){return+he!=he&&(he=0),p.alloc(+he)}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 $=J.length,de=Y.length,be=0,Ce=Math.min($,de);be<Ce;++be)if(J[be]!==Y[be]){$=J[be],de=Y[be];break}return $<de?-1:de<$?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 $;if(Y===void 0)for(Y=0,$=0;$<J.length;++$)Y+=J[$].length;var de=p.allocUnsafe(Y),be=0;for($=0;$<J.length;++$){var Ce=J[$];if(!p.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(de,be),be+=Ce.length}return de};function g(he,J){if(p.isBuffer(he))return he.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(he)||he instanceof ArrayBuffer))return he.byteLength;typeof he!="string"&&(he=""+he);var Y=he.length;if(Y===0)return 0;for(var $=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return Je(he).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Fe(he).length;default:if($)return Je(he).length;J=(""+J).toLowerCase(),$=!0}}p.byteLength=g;function A(he,J,Y){var $=!1;if((J===void 0||J<0)&&(J=0),J>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,J>>>=0,Y<=J)return"";for(he||(he="utf8");;)switch(he){case"hex":return j(this,J,Y);case"utf8":case"utf-8":return M(this,J,Y);case"ascii":return X(this,J,Y);case"latin1":case"binary":return F(this,J,Y);case"base64":return R(this,J,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,J,Y);default:if($)throw new TypeError("Unknown encoding: "+he);he=(he+"").toLowerCase(),$=!0}}p.prototype._isBuffer=!0;function b(he,J,Y){var $=he[J];he[J]=he[Y],he[Y]=$}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?M(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=n.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,$,de,be){if(!p.isBuffer(J))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),$===void 0&&($=J?J.length:0),de===void 0&&(de=0),be===void 0&&(be=this.length),Y<0||$>J.length||de<0||be>this.length)throw new RangeError("out of range index");if(de>=be&&Y>=$)return 0;if(de>=be)return-1;if(Y>=$)return 1;if(Y>>>=0,$>>>=0,de>>>=0,be>>>=0,this===J)return 0;for(var Ce=be-de,Be=$-Y,fe=Math.min(Ce,Be),Se=this.slice(de,be),ke=J.slice(Y,$),rt=0;rt<fe;++rt)if(Se[rt]!==ke[rt]){Ce=Se[rt],Be=ke[rt];break}return Ce<Be?-1:Be<Ce?1:0};function S(he,J,Y,$,de){if(he.length===0)return-1;if(typeof Y=="string"?($=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=de?0:he.length-1),Y<0&&(Y=he.length+Y),Y>=he.length){if(de)return-1;Y=he.length-1}else if(Y<0)if(de)Y=0;else return-1;if(typeof J=="string"&&(J=p.from(J,$)),p.isBuffer(J))return J.length===0?-1:E(he,J,Y,$,de);if(typeof J=="number")return J=J&255,p.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?de?Uint8Array.prototype.indexOf.call(he,J,Y):Uint8Array.prototype.lastIndexOf.call(he,J,Y):E(he,[J],Y,$,de);throw new TypeError("val must be string, number or Buffer")}function E(he,J,Y,$,de){var be=1,Ce=he.length,Be=J.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(he.length<2||J.length<2)return-1;be=2,Ce/=2,Be/=2,Y/=2}function fe(ht,He){return be===1?ht[He]:ht.readUInt16BE(He*be)}var Se;if(de){var ke=-1;for(Se=Y;Se<Ce;Se++)if(fe(he,Se)===fe(J,ke===-1?0:Se-ke)){if(ke===-1&&(ke=Se),Se-ke+1===Be)return ke*be}else ke!==-1&&(Se-=Se-ke),ke=-1}else for(Y+Be>Ce&&(Y=Ce-Be),Se=Y;Se>=0;Se--){for(var rt=!0,xt=0;xt<Be;xt++)if(fe(he,Se+xt)!==fe(J,xt)){rt=!1;break}if(rt)return Se}return-1}p.prototype.includes=function(J,Y,$){return this.indexOf(J,Y,$)!==-1},p.prototype.indexOf=function(J,Y,$){return S(this,J,Y,$,!0)},p.prototype.lastIndexOf=function(J,Y,$){return S(this,J,Y,$,!1)};function C(he,J,Y,$){Y=Number(Y)||0;var de=he.length-Y;$?($=Number($),$>de&&($=de)):$=de;var be=J.length;if(be%2!==0)throw new TypeError("Invalid hex string");$>be/2&&($=be/2);for(var Ce=0;Ce<$;++Ce){var Be=parseInt(J.substr(Ce*2,2),16);if(isNaN(Be))return Ce;he[Y+Ce]=Be}return Ce}function _(he,J,Y,$){return ae(Je(J,he.length-Y),he,Y,$)}function T(he,J,Y,$){return ae(Ve(J),he,Y,$)}function w(he,J,Y,$){return T(he,J,Y,$)}function O(he,J,Y,$){return ae(Fe(J),he,Y,$)}function I(he,J,Y,$){return ae(ut(J,he.length-Y),he,Y,$)}p.prototype.write=function(J,Y,$,de){if(Y===void 0)de="utf8",$=this.length,Y=0;else if($===void 0&&typeof Y=="string")de=Y,$=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite($)?($=$|0,de===void 0&&(de="utf8")):(de=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var be=this.length-Y;if(($===void 0||$>be)&&($=be),J.length>0&&($<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");for(var Ce=!1;;)switch(de){case"hex":return C(this,J,Y,$);case"utf8":case"utf-8":return _(this,J,Y,$);case"ascii":return T(this,J,Y,$);case"latin1":case"binary":return w(this,J,Y,$);case"base64":return O(this,J,Y,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,J,Y,$);default:if(Ce)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),Ce=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(he,J,Y){return J===0&&Y===he.length?x.fromByteArray(he):x.fromByteArray(he.slice(J,Y))}function M(he,J,Y){Y=Math.min(he.length,Y);for(var $=[],de=J;de<Y;){var be=he[de],Ce=null,Be=be>239?4:be>223?3:be>191?2:1;if(de+Be<=Y){var fe,Se,ke,rt;switch(Be){case 1:be<128&&(Ce=be);break;case 2:fe=he[de+1],(fe&192)===128&&(rt=(be&31)<<6|fe&63,rt>127&&(Ce=rt));break;case 3:fe=he[de+1],Se=he[de+2],(fe&192)===128&&(Se&192)===128&&(rt=(be&15)<<12|(fe&63)<<6|Se&63,rt>2047&&(rt<55296||rt>57343)&&(Ce=rt));break;case 4:fe=he[de+1],Se=he[de+2],ke=he[de+3],(fe&192)===128&&(Se&192)===128&&(ke&192)===128&&(rt=(be&15)<<18|(fe&63)<<12|(Se&63)<<6|ke&63,rt>65535&&rt<1114112&&(Ce=rt))}}Ce===null?(Ce=65533,Be=1):Ce>65535&&(Ce-=65536,$.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),$.push(Ce),de+=Be}return P($)}var B=4096;function P(he){var J=he.length;if(J<=B)return String.fromCharCode.apply(String,he);for(var Y="",$=0;$<J;)Y+=String.fromCharCode.apply(String,he.slice($,$+=B));return Y}function X(he,J,Y){var $="";Y=Math.min(he.length,Y);for(var de=J;de<Y;++de)$+=String.fromCharCode(he[de]&127);return $}function F(he,J,Y){var $="";Y=Math.min(he.length,Y);for(var de=J;de<Y;++de)$+=String.fromCharCode(he[de]);return $}function j(he,J,Y){var $=he.length;(!J||J<0)&&(J=0),(!Y||Y<0||Y>$)&&(Y=$);for(var de="",be=J;be<Y;++be)de+=Me(he[be]);return de}function K(he,J,Y){for(var $=he.slice(J,Y),de="",be=0;be<$.length;be+=2)de+=String.fromCharCode($[be]+$[be+1]*256);return de}p.prototype.slice=function(J,Y){var $=this.length;J=~~J,Y=Y===void 0?$:~~Y,J<0?(J+=$,J<0&&(J=0)):J>$&&(J=$),Y<0?(Y+=$,Y<0&&(Y=0)):Y>$&&(Y=$),Y<J&&(Y=J);var de;if(p.TYPED_ARRAY_SUPPORT)de=this.subarray(J,Y),de.__proto__=p.prototype;else{var be=Y-J;de=new p(be,void 0);for(var Ce=0;Ce<be;++Ce)de[Ce]=this[Ce+J]}return de};function z(he,J,Y){if(he%1!==0||he<0)throw new RangeError("offset is not uint");if(he+J>Y)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J],be=1,Ce=0;++Ce<Y&&(be*=256);)de+=this[J+Ce]*be;return de},p.prototype.readUIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J+--Y],be=1;Y>0&&(be*=256);)de+=this[J+--Y]*be;return de},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,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J],be=1,Ce=0;++Ce<Y&&(be*=256);)de+=this[J+Ce]*be;return be*=128,de>=be&&(de-=Math.pow(2,8*Y)),de},p.prototype.readIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=Y,be=1,Ce=this[J+--de];de>0&&(be*=256);)Ce+=this[J+--de]*be;return be*=128,Ce>=be&&(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 $=this[J]|this[J+1]<<8;return $&32768?$|4294901760:$},p.prototype.readInt16BE=function(J,Y){Y||z(J,2,this.length);var $=this[J+1]|this[J]<<8;return $&32768?$|4294901760:$},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(he,J,Y,$,de,be){if(!p.isBuffer(he))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>de||J<be)throw new RangeError('"value" argument is out of bounds');if(Y+$>he.length)throw new RangeError("Index out of range")}p.prototype.writeUIntLE=function(J,Y,$,de){if(J=+J,Y=Y|0,$=$|0,!de){var be=Math.pow(2,8*$)-1;V(this,J,Y,$,be,0)}var Ce=1,Be=0;for(this[Y]=J&255;++Be<$&&(Ce*=256);)this[Y+Be]=J/Ce&255;return Y+$},p.prototype.writeUIntBE=function(J,Y,$,de){if(J=+J,Y=Y|0,$=$|0,!de){var be=Math.pow(2,8*$)-1;V(this,J,Y,$,be,0)}var Ce=$-1,Be=1;for(this[Y+Ce]=J&255;--Ce>=0&&(Be*=256);)this[Y+Ce]=J/Be&255;return Y+$},p.prototype.writeUInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,255,0),p.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),this[Y]=J&255,Y+1};function Q(he,J,Y,$){J<0&&(J=65535+J+1);for(var de=0,be=Math.min(he.length-Y,2);de<be;++de)he[Y+de]=(J&255<<8*($?de:1-de))>>>($?de:1-de)*8}p.prototype.writeUInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||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,$){return J=+J,Y=Y|0,$||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 G(he,J,Y,$){J<0&&(J=4294967295+J+1);for(var de=0,be=Math.min(he.length-Y,4);de<be;++de)he[Y+de]=J>>>($?de:3-de)*8&255}p.prototype.writeUInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||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):G(this,J,Y,!0),Y+4},p.prototype.writeUInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||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):G(this,J,Y,!1),Y+4},p.prototype.writeIntLE=function(J,Y,$,de){if(J=+J,Y=Y|0,!de){var be=Math.pow(2,8*$-1);V(this,J,Y,$,be-1,-be)}var Ce=0,Be=1,fe=0;for(this[Y]=J&255;++Ce<$&&(Be*=256);)J<0&&fe===0&&this[Y+Ce-1]!==0&&(fe=1),this[Y+Ce]=(J/Be>>0)-fe&255;return Y+$},p.prototype.writeIntBE=function(J,Y,$,de){if(J=+J,Y=Y|0,!de){var be=Math.pow(2,8*$-1);V(this,J,Y,$,be-1,-be)}var Ce=$-1,Be=1,fe=0;for(this[Y+Ce]=J&255;--Ce>=0&&(Be*=256);)J<0&&fe===0&&this[Y+Ce+1]!==0&&(fe=1),this[Y+Ce]=(J/Be>>0)-fe&255;return Y+$},p.prototype.writeInt8=function(J,Y,$){return J=+J,Y=Y|0,$||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,$){return J=+J,Y=Y|0,$||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,$){return J=+J,Y=Y|0,$||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,$){return J=+J,Y=Y|0,$||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):G(this,J,Y,!0),Y+4},p.prototype.writeInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||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):G(this,J,Y,!1),Y+4};function te(he,J,Y,$,de,be){if(Y+$>he.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function q(he,J,Y,$,de){return de||te(he,J,Y,4,34028234663852886e22,-34028234663852886e22),v.write(he,J,Y,$,23,4),Y+4}p.prototype.writeFloatLE=function(J,Y,$){return q(this,J,Y,!0,$)},p.prototype.writeFloatBE=function(J,Y,$){return q(this,J,Y,!1,$)};function le(he,J,Y,$,de){return de||te(he,J,Y,8,17976931348623157e292,-17976931348623157e292),v.write(he,J,Y,$,52,8),Y+8}p.prototype.writeDoubleLE=function(J,Y,$){return le(this,J,Y,!0,$)},p.prototype.writeDoubleBE=function(J,Y,$){return le(this,J,Y,!1,$)},p.prototype.copy=function(J,Y,$,de){if($||($=0),!de&&de!==0&&(de=this.length),Y>=J.length&&(Y=J.length),Y||(Y=0),de>0&&de<$&&(de=$),de===$)return 0;if(J.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("sourceStart out of bounds");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),J.length-Y<de-$&&(de=J.length-Y+$);var be=de-$,Ce;if(this===J&&$<Y&&Y<de)for(Ce=be-1;Ce>=0;--Ce)J[Ce+Y]=this[Ce+$];else if(be<1e3||!p.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<be;++Ce)J[Ce+Y]=this[Ce+$];else Uint8Array.prototype.set.call(J,this.subarray($,$+be),Y);return be},p.prototype.fill=function(J,Y,$,de){if(typeof J=="string"){if(typeof Y=="string"?(de=Y,Y=0,$=this.length):typeof $=="string"&&(de=$,$=this.length),J.length===1){var be=J.charCodeAt(0);be<256&&(J=be)}if(de!==void 0&&typeof de!="string")throw new TypeError("encoding must be a string");if(typeof de=="string"&&!p.isEncoding(de))throw new TypeError("Unknown encoding: "+de)}else typeof J=="number"&&(J=J&255);if(Y<0||this.length<Y||this.length<$)throw new RangeError("Out of range index");if($<=Y)return this;Y=Y>>>0,$=$===void 0?this.length:$>>>0,J||(J=0);var Ce;if(typeof J=="number")for(Ce=Y;Ce<$;++Ce)this[Ce]=J;else{var Be=p.isBuffer(J)?J:Je(new p(J,de).toString()),fe=Be.length;for(Ce=0;Ce<$-Y;++Ce)this[Ce+Y]=Be[Ce%fe]}return this};var re=/[^+\/0-9A-Za-z-_]/g;function we(he){if(he=Ie(he).replace(re,""),he.length<2)return"";for(;he.length%4!==0;)he=he+"=";return he}function Ie(he){return he.trim?he.trim():he.replace(/^\s+|\s+$/g,"")}function Me(he){return he<16?"0"+he.toString(16):he.toString(16)}function Je(he,J){J=J||Infinity;for(var Y,$=he.length,de=null,be=[],Ce=0;Ce<$;++Ce){if(Y=he.charCodeAt(Ce),Y>55295&&Y<57344){if(!de){if(Y>56319){(J-=3)>-1&&be.push(239,191,189);continue}else if(Ce+1===$){(J-=3)>-1&&be.push(239,191,189);continue}de=Y;continue}if(Y<56320){(J-=3)>-1&&be.push(239,191,189),de=Y;continue}Y=(de-55296<<10|Y-56320)+65536}else de&&((J-=3)>-1&&be.push(239,191,189));if(de=null,Y<128){if((J-=1)<0)break;be.push(Y)}else if(Y<2048){if((J-=2)<0)break;be.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((J-=3)<0)break;be.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((J-=4)<0)break;be.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return be}function Ve(he){for(var J=[],Y=0;Y<he.length;++Y)J.push(he.charCodeAt(Y)&255);return J}function ut(he,J){for(var Y,$,de,be=[],Ce=0;Ce<he.length&&!((J-=2)<0);++Ce)Y=he.charCodeAt(Ce),$=Y>>8,de=Y%256,be.push(de),be.push($);return be}function Fe(he){return x.toByteArray(we(he))}function ae(he,J,Y,$){for(var de=0;de<$&&!(de+Y>=J.length||de>=he.length);++de)J[de+Y]=he[de];return de}function at(he){return he!==he}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(k,D,n){D.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(k,D,n){D.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(k,D,n){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var y=Array.prototype.slice;D.exports=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 u=this.src.__lookupGetter__(d),o=this.src.__lookupSetter__(d);u&&v.__defineGetter__(d,u),o&&v.__defineSetter__(d,o),!u&&!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 u=this.src.__lookupGetter__(d),o=this.src.__lookupSetter__(d);u&&v.__defineGetter__(d,u),o&&v.__defineSetter__(d,o),!u&&!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(k,D,n){k("../../modules/es6.string.iterator"),k("../../modules/es6.array.from"),D.exports=k("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(k,D,n){var y=k("../../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(k,D,n){k("../../modules/es6.object.assign"),D.exports=k("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(k,D,n){k("../../modules/es6.object.create");var y=k("../../modules/_core").Object;D.exports=function(x,v){return y.create(x,v)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(k,D,n){k("../../modules/es6.object.define-property");var y=k("../../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(k,D,n){k("../../modules/es7.object.entries"),D.exports=k("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(k,D,n){k("../../modules/es6.object.get-own-property-names");var y=k("../../modules/_core").Object;D.exports=function(x){return y.getOwnPropertyNames(x)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(k,D,n){k("../../modules/es6.object.get-prototype-of"),D.exports=k("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(k,D,n){k("../../modules/es6.object.keys"),D.exports=k("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(k,D,n){k("../modules/es6.object.to-string"),k("../modules/es6.string.iterator"),k("../modules/web.dom.iterable"),k("../modules/es6.promise"),k("../modules/es7.promise.finally"),k("../modules/es7.promise.try"),D.exports=k("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(k,D,n){k("../modules/web.immediate"),D.exports=k("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(k,D,n){k("../../modules/es6.string.from-code-point"),D.exports=k("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(k,D,n){k("../../modules/es6.function.has-instance"),D.exports=k("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(k,D,n){k("../../modules/es6.symbol"),k("../../modules/es6.object.to-string"),k("../../modules/es7.symbol.async-iterator"),k("../../modules/es7.symbol.observable"),D.exports=k("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(k,D,n){k("../../modules/es6.string.iterator"),k("../../modules/web.dom.iterable"),D.exports=k("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(k,D,n){D.exports=function(y){if(typeof y!="function")throw TypeError(y+" is not a function!");return y}},{}],93:[function(k,D,n){D.exports=function(){}},{}],94:[function(k,D,n){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(k,D,n){var y=k("./_is-object");D.exports=function(p){if(!y(p))throw TypeError(p+" is not an object!");return p}},{"./_is-object":119}],96:[function(k,D,n){var y=k("./_to-iobject"),p=k("./_to-length"),x=k("./_to-absolute-index");D.exports=function(v){return function(m,f,d){var u=y(m),o=p(u.length),i=x(d,o),t;if(v&&f!=f){for(;o>i;)if(t=u[i++],t!=t)return!0}else for(;o>i;i++)if((v||i in u)&&u[i]===f)return v||i||0;return!v&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(k,D,n){var y=k("./_cof"),p=k("./_wks")("toStringTag"),x=y(function(){return arguments}())=="Arguments",v=function(f,d){try{return f[d]}catch(u){}};D.exports=function(m){var f,d,u;return m===void 0?"Undefined":m===null?"Null":typeof(d=v(f=Object(m),p))=="string"?d:x?y(f):(u=y(f))=="Object"&&typeof f.callee=="function"?"Arguments":u}},{"./_cof":98,"./_wks":166}],98:[function(k,D,n){var y={}.toString;D.exports=function(p){return y.call(p).slice(8,-1)}},{}],99:[function(k,D,n){var y=D.exports={version:"2.6.11"};typeof __e=="number"&&(__e=y)},{}],100:[function(k,D,n){"use strict";var y=k("./_object-dp"),p=k("./_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(k,D,n){var y=k("./_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(k,D,n){D.exports=function(y){if(y==null)throw TypeError("Can't call method on "+y);return y}},{}],103:[function(k,D,n){D.exports=!k("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(k,D,n){var y=k("./_is-object"),p=k("./_global").document,x=y(p)&&y(p.createElement);D.exports=function(v){return x?p.createElement(v):{}}},{"./_global":110,"./_is-object":119}],105:[function(k,D,n){D.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(k,D,n){var y=k("./_object-keys"),p=k("./_object-gops"),x=k("./_object-pie");D.exports=function(v){var m=y(v),f=p.f;if(f)for(var d=f(v),u=x.f,o=0,i;d.length>o;)u.call(v,i=d[o++])&&m.push(i);return m}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(k,D,n){var y=k("./_global"),p=k("./_core"),x=k("./_ctx"),v=k("./_hide"),m=k("./_has"),f="prototype",d=function u(o,i,t){var s=o&u.F,e=o&u.G,l=o&u.S,r=o&u.P,a=o&u.B,c=o&u.W,h=e?p:p[i]||(p[i]={}),g=h[f],A=e?y:l?y[i]:(y[i]||{})[f],b,S,E;e&&(t=i);for(b in t){if(S=!s&&A&&A[b]!==void 0,S&&m(h,b))continue;E=S?A[b]:t[b],h[b]=e&&typeof A[b]!="function"?t[b]:a&&S?x(E,y):c&&A[b]==E?function(C){var _=function(w,O,I){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(w);case 2:return new C(w,O)}return new C(w,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&u.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(k,D,n){D.exports=function(y){try{return!!y()}catch(p){return!0}}},{}],109:[function(k,D,n){var y=k("./_ctx"),p=k("./_iter-call"),x=k("./_is-array-iter"),v=k("./_an-object"),m=k("./_to-length"),f=k("./core.get-iterator-method"),d={},u={},n=D.exports=function(o,i,t,s,e){var l=e?function(){return o}:f(o),r=y(t,s,i?2:1),a=0,c,h,g,A;if(typeof l!="function")throw TypeError(o+" is not iterable!");if(x(l)){for(c=m(o.length);c>a;a++)if(A=i?r(v(h=o[a])[0],h[1]):r(o[a]),A===d||A===u)return A}else for(g=l.call(o);!(h=g.next()).done;)if(A=p(g,r,h.value,i),A===d||A===u)return A};n.BREAK=d,n.RETURN=u},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(k,D,n){var y=D.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=y)},{}],111:[function(k,D,n){var y={}.hasOwnProperty;D.exports=function(p,x){return y.call(p,x)}},{}],112:[function(k,D,n){var y=k("./_object-dp"),p=k("./_property-desc");D.exports=k("./_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(k,D,n){var y=k("./_global").document;D.exports=y&&y.documentElement},{"./_global":110}],114:[function(k,D,n){D.exports=!k("./_descriptors")&&!k("./_fails")(function(){return Object.defineProperty(k("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(k,D,n){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(k,D,n){var y=k("./_cof");D.exports=Object("z").propertyIsEnumerable(0)?Object:function(p){return y(p)=="String"?p.split(""):Object(p)}},{"./_cof":98}],117:[function(k,D,n){var y=k("./_iterators"),p=k("./_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(k,D,n){var y=k("./_cof");D.exports=Array.isArray||function(x){return y(x)=="Array"}},{"./_cof":98}],119:[function(k,D,n){D.exports=function(y){return typeof y=="object"?y!==null:typeof y=="function"}},{}],120:[function(k,D,n){var y=k("./_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(k,D,n){"use strict";var y=k("./_object-create"),p=k("./_property-desc"),x=k("./_set-to-string-tag"),v={};k("./_hide")(v,k("./_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(k,D,n){"use strict";var y=k("./_library"),p=k("./_export"),x=k("./_redefine"),v=k("./_hide"),m=k("./_iterators"),f=k("./_iter-create"),d=k("./_set-to-string-tag"),u=k("./_object-gpo"),o=k("./_wks")("iterator"),i=!([].keys&&"next"in[].keys()),t="@@iterator",s="keys",e="values",l=function(){return this};D.exports=function(r,a,c,h,g,A,b){f(c,a,h);var S=function(F){if(!i&&F in T)return T[F];switch(F){case s:return function(){return new c(this,F)};case e:return function(){return new c(this,F)}}return function(){return new c(this,F)}},E=a+" Iterator",C=g==e,_=!1,T=r.prototype,w=T[o]||T[t]||g&&T[g],O=w||S(g),I=g?C?S("entries"):O:void 0,R=a=="Array"&&T.entries||w,M,B,P;if(R&&(P=u(R.call(new r)),P!==Object.prototype&&P.next&&(d(P,E,!0),!y&&typeof P[o]!="function"&&v(P,o,l))),C&&w&&w.name!==e&&(_=!0,O=function(){return w.call(this)}),(!y||b)&&(i||_||!T[o])&&v(T,o,O),m[a]=O,m[E]=l,g)if(M={values:C?O:S(e),keys:A?O:S(s),entries:I},b)for(B in M)B in T||x(T,B,M[B]);else p(p.P+p.F*(i||_),a,M);return M}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(k,D,n){var y=k("./_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],u=d[y]();u.next=function(){return{done:f=!0}},d[y]=function(){return u},v(d)}catch(o){}return f}},{"./_wks":166}],124:[function(k,D,n){D.exports=function(y,p){return{value:p,done:!!y}}},{}],125:[function(k,D,n){D.exports={}},{}],126:[function(k,D,n){D.exports=!0},{}],127:[function(k,D,n){var y=k("./_uid")("meta"),p=k("./_is-object"),x=k("./_has"),v=k("./_object-dp").f,m=0,f=Object.isExtensible||function(){return!0},d=!k("./_fails")(function(){return f(Object.preventExtensions({}))}),u=function(l){v(l,y,{value:{i:"O"+ ++m,w:{}}})},o=function(l,r){if(!p(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!x(l,y)){if(!f(l))return"F";if(!r)return"E";u(l)}return l[y].i},i=function(l,r){if(!x(l,y)){if(!f(l))return!0;if(!r)return!1;u(l)}return l[y].w},t=function(l){return d&&s.NEED&&f(l)&&!x(l,y)&&u(l),l},s=D.exports={KEY:y,NEED:!1,fastKey:o,getWeak:i,onFreeze:t}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(k,D,n){var y=k("./_global"),p=k("./_task").set,x=y.MutationObserver||y.WebKitMutationObserver,v=y.process,m=y.Promise,f=k("./_cof")(v)=="process";D.exports=function(){var d,u,o,i=function(){var r,a;for(f&&(r=v.domain)&&r.exit();d;){a=d.fn,d=d.next;try{a()}catch(c){throw d?o():u=void 0,c}}u=void 0,r&&r.enter()};if(f)o=function(){v.nextTick(i)};else if(x&&!(y.navigator&&y.navigator.standalone)){var t=!0,s=document.createTextNode("");new x(i).observe(s,{characterData:!0}),o=function(){s.data=t=!t}}else if(m&&m.resolve){var e=m.resolve(void 0);o=function(){e.then(i)}}else o=function(){p.call(y,i)};return function(l){var r={fn:l,next:void 0};u&&(u.next=r),d||(d=r,o()),u=r}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(k,D,n){"use strict";var y=k("./_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(k,D,n){"use strict";var y=k("./_descriptors"),p=k("./_object-keys"),x=k("./_object-gops"),v=k("./_object-pie"),m=k("./_to-object"),f=k("./_iobject"),d=Object.assign;D.exports=!d||k("./_fails")(function(){var u={},o={},i=Symbol(),t="abcdefghijklmnopqrst";return u[i]=7,t.split("").forEach(function(s){o[s]=s}),d({},u)[i]!=7||Object.keys(d({},o)).join("")!=t})?function(o,i){for(var t=m(o),s=arguments.length,e=1,l=x.f,r=v.f;s>e;)for(var a=f(arguments[e++]),c=l?p(a).concat(l(a)):p(a),h=c.length,g=0,A;h>g;)A=c[g++],(!y||r.call(a,A))&&(t[A]=a[A]);return t}:d},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(k,D,n){var y=k("./_an-object"),p=k("./_object-dps"),x=k("./_enum-bug-keys"),v=k("./_shared-key")("IE_PROTO"),m=function(){},f="prototype",d=function(){var o=k("./_dom-create")("iframe"),i=x.length,t="<",s=">",e;for(o.style.display="none",k("./_html").appendChild(o),o.src="javascript:",e=o.contentWindow.document,e.open(),e.write(t+"script"+s+"document.F=Object"+t+"/script"+s),e.close(),d=e.F;i--;)delete d[f][x[i]];return d()};D.exports=Object.create||function(o,i){var t;return o!==null?(m[f]=y(o),t=new m,m[f]=null,t[v]=o):t=d(),i===void 0?t:p(t,i)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(k,D,n){var y=k("./_an-object"),p=k("./_ie8-dom-define"),x=k("./_to-primitive"),v=Object.defineProperty;n.f=k("./_descriptors")?Object.defineProperty:function(f,d,u){if(y(f),d=x(d,!0),y(u),p)try{return v(f,d,u)}catch(o){}if("get"in u||"set"in u)throw TypeError("Accessors not supported!");return"value"in u&&(f[d]=u.value),f}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(k,D,n){var y=k("./_object-dp"),p=k("./_an-object"),x=k("./_object-keys");D.exports=k("./_descriptors")?Object.defineProperties:function(m,f){p(m);for(var d=x(f),u=d.length,o=0,i;u>o;)y.f(m,i=d[o++],f[i]);return m}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(k,D,n){var y=k("./_object-pie"),p=k("./_property-desc"),x=k("./_to-iobject"),v=k("./_to-primitive"),m=k("./_has"),f=k("./_ie8-dom-define"),d=Object.getOwnPropertyDescriptor;n.f=k("./_descriptors")?d:function(o,i){if(o=x(o),i=v(i,!0),f)try{return d(o,i)}catch(t){}if(m(o,i))return p(!y.f.call(o,i),o[i])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(k,D,n){var y=k("./_to-iobject"),p=k("./_object-gopn").f,x={}.toString,v=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(d){try{return p(d)}catch(u){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(k,D,n){var y=k("./_object-keys-internal"),p=k("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(v){return y(v,p)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(k,D,n){n.f=Object.getOwnPropertySymbols},{}],138:[function(k,D,n){var y=k("./_has"),p=k("./_to-object"),x=k("./_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(k,D,n){var y=k("./_has"),p=k("./_to-iobject"),x=k("./_array-includes")(!1),v=k("./_shared-key")("IE_PROTO");D.exports=function(m,f){var d=p(m),u=0,o=[],i;for(i in d)i!=v&&(y(d,i)&&o.push(i));for(;f.length>u;)y(d,i=f[u++])&&(~x(o,i)||o.push(i));return o}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(k,D,n){var y=k("./_object-keys-internal"),p=k("./_enum-bug-keys");D.exports=Object.keys||function(v){return y(v,p)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(k,D,n){n.f={}.propertyIsEnumerable},{}],142:[function(k,D,n){var y=k("./_export"),p=k("./_core"),x=k("./_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(k,D,n){var y=k("./_descriptors"),p=k("./_object-keys"),x=k("./_to-iobject"),v=k("./_object-pie").f;D.exports=function(m){return function(f){for(var d=x(f),u=p(d),o=u.length,i=0,t=[],s;o>i;)s=u[i++],(!y||v.call(d,s))&&t.push(m?[s,d[s]]:d[s]);return t}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(k,D,n){D.exports=function(y){try{return{e:!1,v:y()}}catch(p){return{e:!0,v:p}}}},{}],145:[function(k,D,n){var y=k("./_an-object"),p=k("./_is-object"),x=k("./_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(k,D,n){D.exports=function(y,p){return{enumerable:!(y&1),configurable:!(y&2),writable:!(y&4),value:p}}},{}],147:[function(k,D,n){var y=k("./_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(k,D,n){D.exports=k("./_hide")},{"./_hide":112}],149:[function(k,D,n){"use strict";var y=k("./_global"),p=k("./_core"),x=k("./_object-dp"),v=k("./_descriptors"),m=k("./_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(k,D,n){var y=k("./_object-dp").f,p=k("./_has"),x=k("./_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(k,D,n){var y=k("./_shared")("keys"),p=k("./_uid");D.exports=function(x){return y[x]||(y[x]=p(x))}},{"./_shared":152,"./_uid":162}],152:[function(k,D,n){var y=k("./_core"),p=k("./_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:k("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(k,D,n){var y=k("./_an-object"),p=k("./_a-function"),x=k("./_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(k,D,n){var y=k("./_to-integer"),p=k("./_defined");D.exports=function(x){return function(v,m){var f=String(p(v)),d=y(m),u=f.length,o,i;return d<0||d>=u?x?"":void 0:(o=f.charCodeAt(d),o<55296||o>56319||d+1===u||(i=f.charCodeAt(d+1))<56320||i>57343?x?f.charAt(d):o:x?f.slice(d,d+2):(o-55296<<10)+(i-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(k,D,n){var y=k("./_ctx"),p=k("./_invoke"),x=k("./_html"),v=k("./_dom-create"),m=k("./_global"),f=m.process,d=m.setImmediate,u=m.clearImmediate,o=m.MessageChannel,i=m.Dispatch,t=0,s={},e="onreadystatechange",l,r,a,c=function(){var A=+this;if(s.hasOwnProperty(A)){var b=s[A];delete s[A],b()}},h=function(A){c.call(A.data)};(!d||!u)&&(d=function(A){for(var b=[],S=1;arguments.length>S;)b.push(arguments[S++]);return s[++t]=function(){p(typeof A=="function"?A:Function(A),b)},l(t),t},u=function(A){delete s[A]},k("./_cof")(f)=="process"?l=function(A){f.nextTick(y(c,A,1))}:i&&i.now?l=function(A){i.now(y(c,A,1))}:o?(r=new o,a=r.port2,r.port1.onmessage=h,l=y(a.postMessage,a,1)):m.addEventListener&&typeof postMessage=="function"&&!m.importScripts?(l=function(A){m.postMessage(A+"","*")},m.addEventListener("message",h,!1)):e in v("script")?l=function(A){x.appendChild(v("script"))[e]=function(){x.removeChild(this),c.call(A)}}:l=function(A){setTimeout(y(c,A,1),0)}),D.exports={set:d,clear:u}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(k,D,n){var y=k("./_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(k,D,n){var y=Math.ceil,p=Math.floor;D.exports=function(x){return isNaN(x=+x)?0:(x>0?p:y)(x)}},{}],158:[function(k,D,n){var y=k("./_iobject"),p=k("./_defined");D.exports=function(x){return y(p(x))}},{"./_defined":102,"./_iobject":116}],159:[function(k,D,n){var y=k("./_to-integer"),p=Math.min;D.exports=function(x){return x>0?p(y(x),9007199254740991):0}},{"./_to-integer":157}],160:[function(k,D,n){var y=k("./_defined");D.exports=function(p){return Object(y(p))}},{"./_defined":102}],161:[function(k,D,n){var y=k("./_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(k,D,n){var y=0,p=Math.random();D.exports=function(x){return"Symbol(".concat(x===void 0?"":x,")_",(++y+p).toString(36))}},{}],163:[function(k,D,n){var y=k("./_global"),p=y.navigator;D.exports=p&&p.userAgent||""},{"./_global":110}],164:[function(k,D,n){var y=k("./_global"),p=k("./_core"),x=k("./_library"),v=k("./_wks-ext"),m=k("./_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(k,D,n){n.f=k("./_wks")},{"./_wks":166}],166:[function(k,D,n){var y=k("./_shared")("wks"),p=k("./_uid"),x=k("./_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(k,D,n){var y=k("./_classof"),p=k("./_wks")("iterator"),x=k("./_iterators");D.exports=k("./_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(k,D,n){"use strict";var y=k("./_ctx"),p=k("./_export"),x=k("./_to-object"),v=k("./_iter-call"),m=k("./_is-array-iter"),f=k("./_to-length"),d=k("./_create-property"),u=k("./core.get-iterator-method");p(p.S+p.F*!k("./_iter-detect")(function(o){Array.from(o)}),"Array",{from:function(i){var t=x(i),s=typeof this=="function"?this:Array,e=arguments.length,l=e>1?arguments[1]:void 0,r=l!==void 0,a=0,c=u(t),h,g,A,b;if(r&&(l=y(l,e>2?arguments[2]:void 0,2)),c!=null&&!(s==Array&&m(c)))for(b=c.call(t),g=new s;!(A=b.next()).done;a++)d(g,a,r?v(b,l,[A.value,a],!0):A.value);else for(h=f(t.length),g=new s(h);h>a;a++)d(g,a,r?l(t[a],a):t[a]);return g.length=a,g}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(k,D,n){"use strict";var y=k("./_add-to-unscopables"),p=k("./_iter-step"),x=k("./_iterators"),v=k("./_to-iobject");D.exports=k("./_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(k,D,n){"use strict";var y=k("./_is-object"),p=k("./_object-gpo"),x=k("./_wks")("hasInstance"),v=Function.prototype;x in v||k("./_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(k,D,n){var y=k("./_export");y(y.S+y.F,"Object",{assign:k("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(k,D,n){var y=k("./_export");y(y.S,"Object",{create:k("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(k,D,n){var y=k("./_export");y(y.S+y.F*!k("./_descriptors"),"Object",{defineProperty:k("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(k,D,n){k("./_object-sap")("getOwnPropertyNames",function(){return k("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(k,D,n){var y=k("./_to-object"),p=k("./_object-gpo");k("./_object-sap")("getPrototypeOf",function(){return function(v){return p(y(v))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(k,D,n){var y=k("./_to-object"),p=k("./_object-keys");k("./_object-sap")("keys",function(){return function(v){return p(y(v))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(k,D,n){arguments[4][71][0].apply(n,arguments)},{dup:71}],178:[function(k,D,n){"use strict";var y=k("./_library"),p=k("./_global"),x=k("./_ctx"),v=k("./_classof"),m=k("./_export"),f=k("./_is-object"),d=k("./_a-function"),u=k("./_an-instance"),o=k("./_for-of"),i=k("./_species-constructor"),t=k("./_task").set,s=k("./_microtask")(),e=k("./_new-promise-capability"),l=k("./_perform"),r=k("./_user-agent"),a=k("./_promise-resolve"),c="Promise",h=p.TypeError,g=p.process,A=g&&g.versions,b=A&&A.v8||"",S=p[c],E=v(g)=="process",C=function(){},_,T,w,O,I=T=e.f,R=!!function(){try{var z=S.resolve(1),V=(z.constructor={})[k("./_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){}}(),M=function(V){var Q;return f(V)&&typeof(Q=V.then)=="function"?Q:!1},B=function(V,Q){if(V._n)return;V._n=!0;var G=V._c;s(function(){for(var te=V._v,q=V._s==1,le=0,re=function(Ie){var Me=q?Ie.ok:Ie.fail,Je=Ie.resolve,Ve=Ie.reject,ut=Ie.domain,Fe,ae,at;try{Me?(q||(V._h==2&&F(V),V._h=1),Me===!0?Fe=te:(ut&&ut.enter(),Fe=Me(te),ut&&(ut.exit(),at=!0)),Fe===Ie.promise?Ve(h("Promise-chain cycle")):(ae=M(Fe))?ae.call(Fe,Je,Ve):Je(Fe)):Ve(te)}catch(he){ut&&!at&&ut.exit(),Ve(he)}};G.length>le;)re(G[le++]);V._c=[],V._n=!1,Q&&!V._h&&P(V)})},P=function(V){t.call(p,function(){var Q=V._v,G=X(V),te,q,le;if(G&&(te=l(function(){E?g.emit("unhandledRejection",Q,V):(q=p.onunhandledrejection)?q({promise:V,reason:Q}):(le=p.console)&&le.error&&le.error("Unhandled promise rejection",Q)}),V._h=E||X(V)?2:1),V._a=void 0,G&&te.e)throw te.v})},X=function(V){return V._h!==1&&(V._a||V._c).length===0},F=function(V){t.call(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,G;if(Q._d)return;Q._d=!0,Q=Q._w||Q;try{if(Q===V)throw h("Promise can't be resolved itself");(G=M(V))?s(function(){var te={_w:Q,_d:!1};try{G.call(V,x(z,te,1),x(j,te,1))}catch(q){j.call(te,q)}}):(Q._v=V,Q._s=1,B(Q,!1))}catch(te){j.call({_w:Q,_d:!1},te)}};R||(S=function(V){u(this,S,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=k("./_redefine-all")(S.prototype,{then:function(V,Q){var G=I(i(this,S));return G.ok=typeof V=="function"?V:!0,G.fail=typeof Q=="function"&&Q,G.domain=E?g.domain:void 0,this._c.push(G),this._a&&this._a.push(G),this._s&&B(this,!1),G.promise},catch:function(V){return this.then(void 0,V)}}),w=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===S||V===O?new w(V):T(V)}),m(m.G+m.W+m.F*!R,{Promise:S}),k("./_set-to-string-tag")(S,c),k("./_set-species")(c),O=k("./_core")[c],m(m.S+m.F*!R,c,{reject:function(V){var Q=I(this),G=Q.reject;return G(V),Q.promise}}),m(m.S+m.F*(y||!R),c,{resolve:function(V){return a(y&&this===O?S:this,V)}}),m(m.S+m.F*!(R&&k("./_iter-detect")(function(z){S.all(z).catch(C)})),c,{all:function(V){var Q=this,G=I(Q),te=G.resolve,q=G.reject,le=l(function(){var re=[],we=0,Ie=1;o(V,!1,function(Me){var Je=we++,Ve=!1;re.push(void 0),Ie++,Q.resolve(Me).then(function(ut){if(Ve)return;Ve=!0,re[Je]=ut,--Ie||te(re)},q)}),--Ie||te(re)});return le.e&&q(le.v),G.promise},race:function(V){var Q=this,G=I(Q),te=G.reject,q=l(function(){o(V,!1,function(le){Q.resolve(le).then(G.resolve,te)})});return q.e&&te(q.v),G.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(k,D,n){var y=k("./_export"),p=k("./_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=[],u=arguments.length,o=0,i;u>o;){if(i=+arguments[o++],p(i,1114111)!==i)throw RangeError(i+" is not a valid code point");d.push(i<65536?x(i):x(((i-=65536)>>10)+55296,i%1024+56320))}return d.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(k,D,n){"use strict";var y=k("./_string-at")(!0);k("./_iter-define")(String,"String",function(p){this._t=String(p),this._i=0},function(){var p=this._t,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(k,D,n){"use strict";var y=k("./_global"),p=k("./_has"),x=k("./_descriptors"),v=k("./_export"),m=k("./_redefine"),f=k("./_meta").KEY,d=k("./_fails"),u=k("./_shared"),o=k("./_set-to-string-tag"),i=k("./_uid"),t=k("./_wks"),s=k("./_wks-ext"),e=k("./_wks-define"),l=k("./_enum-keys"),r=k("./_is-array"),a=k("./_an-object"),c=k("./_is-object"),h=k("./_to-object"),g=k("./_to-iobject"),A=k("./_to-primitive"),b=k("./_property-desc"),S=k("./_object-create"),E=k("./_object-gopn-ext"),C=k("./_object-gopd"),_=k("./_object-gops"),T=k("./_object-dp"),w=k("./_object-keys"),O=C.f,I=T.f,R=E.f,M=y.Symbol,B=y.JSON,P=B&&B.stringify,X="prototype",F=t("_hidden"),j=t("toPrimitive"),K={}.propertyIsEnumerable,z=u("symbol-registry"),V=u("symbols"),Q=u("op-symbols"),G=Object[X],te=typeof M=="function"&&!!_.f,q=y.QObject,le=!q||!q[X]||!q[X].findChild,re=x&&d(function(){return S(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a!=7})?function(be,Ce,Be){var fe=O(G,Ce);fe&&delete G[Ce],I(be,Ce,Be),fe&&be!==G&&I(G,Ce,fe)}:I,we=function(Ce){var Be=V[Ce]=S(M[X]);return Be._k=Ce,Be},Ie=te&&typeof M.iterator=="symbol"?function(be){return typeof be=="symbol"}:function(be){return be instanceof M},Me=function(Ce,Be,fe){return Ce===G&&Me(Q,Be,fe),a(Ce),Be=A(Be,!0),a(fe),p(V,Be)?(fe.enumerable?(p(Ce,F)&&Ce[F][Be]&&(Ce[F][Be]=!1),fe=S(fe,{enumerable:b(0,!1)})):(p(Ce,F)||I(Ce,F,b(1,{})),Ce[F][Be]=!0),re(Ce,Be,fe)):I(Ce,Be,fe)},Je=function(Ce,Be){a(Ce);for(var fe=l(Be=g(Be)),Se=0,ke=fe.length,rt;ke>Se;)Me(Ce,rt=fe[Se++],Be[rt]);return Ce},Ve=function(Ce,Be){return Be===void 0?S(Ce):Je(S(Ce),Be)},ut=function(Ce){var Be=K.call(this,Ce=A(Ce,!0));return this===G&&p(V,Ce)&&!p(Q,Ce)?!1:Be||!p(this,Ce)||!p(V,Ce)||p(this,F)&&this[F][Ce]?Be:!0},Fe=function(Ce,Be){if(Ce=g(Ce),Be=A(Be,!0),Ce===G&&p(V,Be)&&!p(Q,Be))return;var fe=O(Ce,Be);return fe&&p(V,Be)&&!(p(Ce,F)&&Ce[F][Be])&&(fe.enumerable=!0),fe},ae=function(Ce){for(var Be=R(g(Ce)),fe=[],Se=0,ke;Be.length>Se;)!p(V,ke=Be[Se++])&&ke!=F&&ke!=f&&fe.push(ke);return fe},at=function(Ce){for(var Be=Ce===G,fe=R(Be?Q:g(Ce)),Se=[],ke=0,rt;fe.length>ke;)p(V,rt=fe[ke++])&&(Be?p(G,rt):!0)&&Se.push(V[rt]);return Se};te||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var Ce=i(arguments.length>0?arguments[0]:void 0),Be=function fe(Se){this===G&&fe.call(Q,Se),p(this,F)&&p(this[F],Ce)&&(this[F][Ce]=!1),re(this,Ce,b(1,Se))};return x&&le&&re(G,Ce,{configurable:!0,set:Be}),we(Ce)},m(M[X],"toString",function(){return this._k}),C.f=Fe,T.f=Me,k("./_object-gopn").f=E.f=ae,k("./_object-pie").f=ut,_.f=at,x&&!k("./_library")&&m(G,"propertyIsEnumerable",ut,!0),s.f=function(be){return we(t(be))}),v(v.G+v.W+v.F*!te,{Symbol:M});for(var he="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),J=0;he.length>J;)t(he[J++]);for(var Y=w(t.store),$=0;Y.length>$;)e(Y[$++]);v(v.S+v.F*!te,"Symbol",{for:function(Ce){return p(z,Ce+="")?z[Ce]:z[Ce]=M(Ce)},keyFor:function(Ce){if(!Ie(Ce))throw TypeError(Ce+" is not a symbol!");for(var Be in z)if(z[Be]===Ce)return Be},useSetter:function(){le=!0},useSimple:function(){le=!1}}),v(v.S+v.F*!te,"Object",{create:Ve,defineProperty:Me,defineProperties:Je,getOwnPropertyDescriptor:Fe,getOwnPropertyNames:ae,getOwnPropertySymbols:at});var de=d(function(){_.f(1)});v(v.S+v.F*de,"Object",{getOwnPropertySymbols:function(Ce){return _.f(h(Ce))}}),B&&v(v.S+v.F*(!te||d(function(){var be=M();return P([be])!="[null]"||P({a:be})!="{}"||P(Object(be))!="{}"})),"JSON",{stringify:function(Ce){for(var Be=[Ce],fe=1,Se,ke;arguments.length>fe;)Be.push(arguments[fe++]);return ke=Se=Be[1],!c(Se)&&Ce===void 0||Ie(Ce)?void 0:(r(Se)||(Se=function(xt,ht){if(typeof ke=="function"&&(ht=ke.call(this,xt,ht)),!Ie(ht))return ht}),Be[1]=Se,P.apply(B,Be))}}),M[X][j]||k("./_hide")(M[X],j,M[X].valueOf),o(M,"Symbol"),o(Math,"Math",!0),o(y.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(k,D,n){var y=k("./_export"),p=k("./_object-to-array")(!0);y(y.S,"Object",{entries:function(v){return p(v)}})},{"./_export":107,"./_object-to-array":143}],183:[function(k,D,n){"use strict";var y=k("./_export"),p=k("./_core"),x=k("./_global"),v=k("./_species-constructor"),m=k("./_promise-resolve");y(y.P+y.R,"Promise",{finally:function(d){var u=v(this,p.Promise||x.Promise),o=typeof d=="function";return this.then(o?function(i){return m(u,d()).then(function(){return i})}:d,o?function(i){return m(u,d()).then(function(){throw i})}:d)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(k,D,n){"use strict";var y=k("./_export"),p=k("./_new-promise-capability"),x=k("./_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(k,D,n){k("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(k,D,n){k("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(k,D,n){k("./es6.array.iterator");for(var y=k("./_global"),p=k("./_hide"),x=k("./_iterators"),v=k("./_wks")("toStringTag"),m="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<m.length;f++){var d=m[f],u=y[d],o=u&&u.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(k,D,n){var y=k("./_export"),p=k("./_task");y(y.G+y.B,{setImmediate:p.set,clearImmediate:p.clear})},{"./_export":107,"./_task":155}],189:[function(k,D,n){(function(y){"use strict";var p=k("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]"}n.isArray=m;function f(A){return typeof A=="boolean"}n.isBoolean=f;function d(A){return A===null}n.isNull=d;function u(A){return A==null}n.isNullOrUndefined=u;function o(A){return typeof A=="number"}n.isNumber=o;function i(A){return typeof A=="string"}n.isString=i;function t(A){return(typeof A=="undefined"?"undefined":(0,x.default)(A))==="symbol"}n.isSymbol=t;function s(A){return A===void 0}n.isUndefined=s;function e(A){return g(A)==="[object RegExp]"}n.isRegExp=e;function l(A){return(typeof A=="undefined"?"undefined":(0,x.default)(A))==="object"&&A!==null}n.isObject=l;function r(A){return g(A)==="[object Date]"}n.isDate=r;function a(A){return g(A)==="[object Error]"||A instanceof Error}n.isError=a;function c(A){return typeof A=="function"}n.isFunction=c;function h(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||(typeof A=="undefined"?"undefined":(0,x.default)(A))==="symbol"||typeof A=="undefined"}n.isPrimitive=h,n.isBuffer=y.isBuffer;function g(A){return Object.prototype.toString.call(A)}}).call(this,{isBuffer:k("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(k,D,n){"use strict";var y=k("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 i=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,s=/[^-+\dA-Z]/g;return function(e,l,r,a){if(arguments.length===1&&o(e)==="string"&&!/\d/.test(e)&&(l=e,e=void 0),e=e||new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");l=String(m.masks[l]||l||m.masks.default);var c=l.slice(0,4);(c==="UTC:"||c==="GMT:")&&(l=l.slice(4),r=!0,c==="GMT:"&&(a=!0));var h=r?"getUTC":"get",g=e[h+"Date"](),A=e[h+"Day"](),b=e[h+"Month"](),S=e[h+"FullYear"](),E=e[h+"Hours"](),C=e[h+"Minutes"](),_=e[h+"Seconds"](),T=e[h+"Milliseconds"](),w=r?0:e.getTimezoneOffset(),O=d(e),I=u(e),R={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(S).slice(2),yyyy:S,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:a?"GMT":r?"UTC":(String(e).match(t)||[""]).pop().replace(s,""),o:(w>0?"-":"+")+f(Math.floor(Math.abs(w)/60)*100+Math.abs(w)%60,4),S:["th","st","nd","rd"][g%10>3?0:(g%100-g%10!=10)*g%10],W:O,N:I};return l.replace(i,function(M){return M in R?R[M]:M.slice(1,M.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(i,t){for(i=String(i),t=t||2;i.length<t;)i="0"+i;return i}function d(i){var t=new Date(i.getFullYear(),i.getMonth(),i.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var s=new Date(t.getFullYear(),0,4);s.setDate(s.getDate()-(s.getDay()+6)%7+3);var e=t.getTimezoneOffset()-s.getTimezoneOffset();t.setHours(t.getHours()-e);var l=(t-s)/(864e5*7);return 1+Math.floor(l)}function u(i){var t=i.getDay();return t===0&&(t=7),t}function o(i){return i===null?"null":i===void 0?"undefined":(typeof i=="undefined"?"undefined":(0,p.default)(i))!=="object"?typeof i=="undefined"?"undefined":(0,p.default)(i):Array.isArray(i)?"array":{}.toString.call(i).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return m}):(typeof n=="undefined"?"undefined":(0,p.default)(n))==="object"?D.exports=m:v.dateFormat=m})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(k,D,n){/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/"use strict";var y=/["'&<>]/;D.exports=p;function p(x){var v=""+x,m=y.exec(v);if(!m)return v;var f,d="",u=0,o=0;for(u=m.index;u<v.length;u++){switch(v.charCodeAt(u)){case 34:f="&quot;";break;case 38:f="&amp;";break;case 39:f="&#39;";break;case 60:f="&lt;";break;case 62:f="&gt;";break;default:continue}o!==u&&(d+=v.substring(o,u)),o=u+1,d+=f}return o!==u?d+v.substring(o,u):d}},{}],192:[function(k,D,n){function y(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}D.exports=y,y.EventEmitter=y,y.prototype._events=void 0,y.prototype._maxListeners=void 0,y.defaultMaxListeners=10,y.prototype.setMaxListeners=function(f){if(!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,u,o,i,t,s;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(u=this._events[f],m(u))return!1;if(p(u))switch(arguments.length){case 1:u.call(this);break;case 2:u.call(this,arguments[1]);break;case 3:u.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),u.apply(this,i)}else if(v(u))for(i=Array.prototype.slice.call(arguments,1),s=u.slice(),o=s.length,t=0;t<o;t++)s[t].apply(this,i);return!0},y.prototype.addListener=function(f,d){var u;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)?u=y.defaultMaxListeners:u=this._maxListeners,u&&u>0&&this._events[f].length>u&&(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 u=!1;function o(){this.removeListener(f,o),u||(u=!0,d.apply(this,arguments))}return o.listener=d,this.on(f,o),this},y.prototype.removeListener=function(f,d){var u,o,i,t;if(!p(d))throw TypeError("listener must be a function");if(!this._events||!this._events[f])return this;if(u=this._events[f],i=u.length,o=-1,u===d||p(u.listener)&&u.listener===d)delete this._events[f],this._events.removeListener&&this.emit("removeListener",f,d);else if(v(u)){for(t=i;t-- >0;)if(u[t]===d||u[t].listener&&u[t].listener===d){o=t;break}if(o<0)return this;u.length===1?(u.length=0,delete this._events[f]):u.splice(o,1),this._events.removeListener&&this.emit("removeListener",f,d)}return this},y.prototype.removeAllListeners=function(f){var d,u;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(u=this._events[f],p(u))this.removeListener(f,u);else if(u)for(;u.length;)this.removeListener(f,u[u.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(k,D,n){var y=k("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(k,D,n){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var y=k("util"),p=k("ms");D.exports=function(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(k,D,n){n.read=function(y,p,x,v,m){var f,d,u=m*8-v-1,o=(1<<u)-1,i=o>>1,t=-7,s=x?m-1:0,e=x?-1:1,l=y[p+s];for(s+=e,f=l&(1<<-t)-1,l>>=-t,t+=u;t>0;f=f*256+y[p+s],s+=e,t-=8);for(d=f&(1<<-t)-1,f>>=-t,t+=v;t>0;d=d*256+y[p+s],s+=e,t-=8);if(f===0)f=1-i;else{if(f===o)return d?NaN:(l?-1:1)*Infinity;d=d+Math.pow(2,v),f=f-i}return(l?-1:1)*d*Math.pow(2,f-v)},n.write=function(y,p,x,v,m,f){var d,u,o,i=f*8-m-1,t=(1<<i)-1,s=t>>1,e=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=v?0:f-1,r=v?1:-1,a=p<0||p===0&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===Infinity?(u=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+s>=1?p+=e/o:p+=e*Math.pow(2,1-s),p*o>=2&&(d++,o/=2),d+s>=t?(u=0,d=t):d+s>=1?(u=(p*o-1)*Math.pow(2,m),d=d+s):(u=p*Math.pow(2,s-1)*Math.pow(2,m),d=0));m>=8;y[x+l]=u&255,l+=r,u/=256,m-=8);for(d=d<<m|u,i+=m;i>0;y[x+l]=d&255,l+=r,d/=256,i-=8);y[x+l-r]|=a*128}},{}],196:[function(k,D,n){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(k,D,n){/*!
* 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(k,D,n){var y={}.toString;D.exports=Array.isArray||function(p){return y.call(p)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(k,D){typeof exports=="object"&&typeof module!="undefined"?module.exports=D(k):typeof define=="function"&&define.amd?define(D):D(k)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(k){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(k){for(var D={},n=0,y=k.length;n<y;n++)D[k.charAt(n)]=n;return D}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(D){if(D.length<2){var n=D.charCodeAt(0);return n<128?D:n<2048?fromCharCode(192|n>>>6)+fromCharCode(128|n&63):fromCharCode(224|n>>>12&15)+fromCharCode(128|n>>>6&63)+fromCharCode(128|n&63)}else{var n=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return fromCharCode(240|n>>>18&7)+fromCharCode(128|n>>>12&63)+fromCharCode(128|n>>>6&63)+fromCharCode(128|n&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(D){return D.replace(re_utob,cb_utob)},cb_encode=function(D){var n=[0,2,1][D.length%3],y=D.charCodeAt(0)<<16|(D.length>1?D.charCodeAt(1):0)<<8|(D.length>2?D.charCodeAt(2):0),p=[b64chars.charAt(y>>>18),b64chars.charAt(y>>>12&63),n>=2?"=":b64chars.charAt(y>>>6&63),n>=1?"=":b64chars.charAt(y&63)];return p.join("")},btoa=global.btoa?function(k){return global.btoa(k)}:function(k){return k.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(D){var n=Object.prototype.toString.call(D)==="[object Uint8Array]";return n?D.toString("base64"):btoa(utob(String(D)))},encode=function(D,n){return n?_encode(String(D)).replace(/[+\/]/g,function(y){return y=="+"?"-":"_"}).replace(/=/g,""):_encode(D)},encodeURI=function(D){return encode(D,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(D){switch(D.length){case 4:var n=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),y=n-65536;return fromCharCode((y>>>10)+55296)+fromCharCode((y&1023)+56320);case 3:return fromCharCode((15&D.charCodeAt(0))<<12|(63&D.charCodeAt(1))<<6|63&D.charCodeAt(2));default:return fromCharCode((31&D.charCodeAt(0))<<6|63&D.charCodeAt(1))}},btou=function(D){return D.replace(re_btou,cb_btou)},cb_decode=function(D){var n=D.length,y=n%4,p=(n>0?b64tab[D.charAt(0)]<<18:0)|(n>1?b64tab[D.charAt(1)]<<12:0)|(n>2?b64tab[D.charAt(2)]<<6:0)|(n>3?b64tab[D.charAt(3)]:0),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(k){return global.atob(k)}:function(k){return k.replace(/\S{1,4}/g,cb_decode)},atob=function(D){return _atob(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(k){return(k.constructor===buffer.constructor?k:buffer.from(k,"base64")).toString()}:function(k){return(k.constructor===buffer.constructor?k:new buffer(k,"base64")).toString()}:function(k){return btou(_atob(k))},decode=function(D){return _decode(String(D).replace(/[-_]/g,function(n){return n=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var D=global.Base64;return global.Base64=_Base64,D};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(D){return{value:D,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(k){return encode(this,k)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(k,D,n){/*!
* 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 u=Object.getOwnPropertyDescriptor(v,d);Object.defineProperty(x,d,u)}),x}},{}],201:[function(k,D,n){"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(u){return u.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(k,D,n){"use strict";var y=k("./Mime");D.exports=new y(k("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(k,D,n){D.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],204:[function(k,D,n){var y=1e3,p=y*60,x=p*60,v=x*24,m=v*7,f=v*365.25;D.exports=function(t,s){s=s||{};var e=typeof t;if(e==="string"&&t.length>0)return d(t);if(e==="number"&&isFinite(t))return s.long?o(t):u(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 s=/^(-?(?:\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(!s)return;var e=parseFloat(s[1]),l=(s[2]||"ms").toLowerCase();switch(l){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 u(t){var s=Math.abs(t);return s>=v?Math.round(t/v)+"d":s>=x?Math.round(t/x)+"h":s>=p?Math.round(t/p)+"m":s>=y?Math.round(t/y)+"s":t+"ms"}function o(t){var s=Math.abs(t);return s>=v?i(t,s,v,"day"):s>=x?i(t,s,x,"hour"):s>=p?i(t,s,p,"minute"):s>=y?i(t,s,y,"second"):t+" ms"}function i(t,s,e,l){var r=s>=e*1.5;return Math.round(t/e)+" "+l+(r?"s":"")}},{}],205:[function(k,D,n){(function(y){function p(f,d){for(var u=0,o=f.length-1;o>=0;o--){var i=f[o];i==="."?f.splice(o,1):i===".."?(f.splice(o,1),u++):u&&(f.splice(o,1),u--)}if(d)for(;u--;u)f.unshift("..");return f}n.resolve=function(){for(var f="",d=!1,u=arguments.length-1;u>=-1&&!d;u--){var o=u>=0?arguments[u]: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(i){return!!i}),!d).join("/"),(d?"/":"")+f||"."},n.normalize=function(f){var d=n.isAbsolute(f),u=m(f,-1)==="/";return f=p(v(f.split("/"),function(o){return!!o}),!d).join("/"),!f&&!d&&(f="."),f&&u&&(f+="/"),(d?"/":"")+f},n.isAbsolute=function(f){return f.charAt(0)==="/"},n.join=function(){var f=Array.prototype.slice.call(arguments,0);return n.normalize(v(f,function(d,u){if(typeof d!="string")throw new TypeError("Arguments to path.join must be strings");return d}).join("/"))},n.relative=function(f,d){f=n.resolve(f).substr(1),d=n.resolve(d).substr(1);function u(r){for(var a=0;a<r.length&&!(r[a]!=="");a++);for(var c=r.length-1;c>=0&&!(r[c]!=="");c--);return a>c?[]:r.slice(a,c-a+1)}for(var o=u(f.split("/")),i=u(d.split("/")),t=Math.min(o.length,i.length),s=t,e=0;e<t;e++)if(o[e]!==i[e]){s=e;break}for(var l=[],e=s;e<o.length;e++)l.push("..");return l=l.concat(i.slice(s)),l.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(f){if(typeof f!="string"&&(f=f+""),f.length===0)return".";for(var d=f.charCodeAt(0),u=d===47,o=-1,i=!0,t=f.length-1;t>=1;--t)if(d=f.charCodeAt(t),d===47){if(!i){o=t;break}}else i=!1;return o===-1?u?"/":".":u&&o===1?"/":f.slice(0,o)};function x(f){typeof f!="string"&&(f=f+"");var d=0,u=-1,o=!0,i;for(i=f.length-1;i>=0;--i)if(f.charCodeAt(i)===47){if(!o){d=i+1;break}}else u===-1&&(o=!1,u=i+1);return u===-1?"":f.slice(d,u)}n.basename=function(f,d){var u=x(f);return d&&u.substr(-1*d.length)===d&&(u=u.substr(0,u.length-d.length)),u},n.extname=function(f){typeof f!="string"&&(f=f+"");for(var d=-1,u=0,o=-1,i=!0,t=0,s=f.length-1;s>=0;--s){var e=f.charCodeAt(s);if(e===47){if(!i){u=s+1;break}continue}o===-1&&(i=!1,o=s+1),e===46?d===-1?d=s:t!==1&&(t=1):d!==-1&&(t=-1)}return d===-1||o===-1||t===0||t===1&&d===o-1&&d===u+1?"":f.slice(d,o)};function v(f,d){if(f.filter)return f.filter(d);for(var u=[],o=0;o<f.length;o++)d(f[o],o,f)&&u.push(f[o]);return u}var m="ab".substr(-1)==="b"?function(f,d,u){return f.substr(d,u)}:function(f,d,u){return d<0&&(d=f.length+d),f.substr(d,u)}}).call(this,k("_process"))},{_process:208}],206:[function(k,D,n){(function(y){/*!
* Platform.js <https://mths.be/platform>
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
* Available under MIT license <https://mths.be/mit>
*/(function(){"use strict";var p={function:!0,object:!0},x=p[typeof window]&&window||this,v=x,m=p[typeof n]&&n,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 u=Math.pow(2,53)-1,o=/\bOpera/,i=this,t=Object.prototype,s=t.hasOwnProperty,e=t.toString;function l(T){return T=String(T),T.charAt(0).toUpperCase()+T.slice(1)}function r(T,w,O){var I={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return w&&O&&/^Win/i.test(T)&&!/^Windows Phone /i.test(T)&&(I=I[/[\d.]+$/.exec(T)])&&(T="Windows "+I),T=String(T),w&&O&&(T=T.replace(RegExp(w,"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 a(T,w){var O=-1,I=T?T.length:0;if(typeof I=="number"&&I>-1&&I<=u)for(;++O<I;)w(T[O],O,T);else h(T,w)}function c(T){return T=E(T),/^(?:webOS|i(?:OS|P))/.test(T)?T:l(T)}function h(T,w){for(var O in T)s.call(T,O)&&w(T[O],O,T)}function g(T){return T==null?l(T):e.call(T).slice(8,-1)}function A(T,w){var O=T!=null?typeof T[w]:"number";return!/^(?:boolean|number|string|undefined)$/.test(O)&&(O=="object"?!!T[w]:!0)}function b(T){return String(T).replace(/([ -])(?!$)/g,"$1?")}function S(T,w){var O=null;return a(T,function(I,R){O=w(O,I,R,T)}),O}function E(T){return String(T).replace(/^ +| +$/g,"")}function C(T){var w=x,O=T&&typeof T=="object"&&g(T)!="String";O&&(w=T,T=null);var I=w.navigator||{},R=I.userAgent||"";T||(T=R);var M=O||i==v,B=O?!!I.likeChrome:/\bChrome\b/.test(T)&&!/internal|\n/i.test(e.toString()),P="Object",X=O?P:"ScriptBridgingProxyObject",F=O?P:"Environment",j=O&&w.java?"JavaPackage":g(w.java),K=O?P:"RuntimeObject",z=/\bJava/.test(j)&&w.java,V=z&&g(w.environment)==F,Q=z?"a":"\u03B1",G=z?"b":"\u03B2",te=w.document||{},q=w.operamini||w.opera,le=o.test(le=O&&q?q["[[Class]]"]:g(q))?le:q=null,re,we=T,Ie=[],Me=null,Je=T==R,Ve=Je&&q&&typeof q.version=="function"&&q.version(),ut,Fe=Y([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ae=de(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),at=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"]),he=$({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),J=be(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function Y(ke){return S(ke,function(rt,xt){return rt||RegExp("\\b"+(xt.pattern||b(xt))+"\\b","i").exec(T)&&(xt.label||xt)})}function $(ke){return S(ke,function(rt,xt,ht){return rt||(xt[at]||xt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(at)]||RegExp("\\b"+b(ht)+"(?:\\b|\\w*\\d)","i").exec(T))&&ht})}function de(ke){return S(ke,function(rt,xt){return rt||RegExp("\\b"+(xt.pattern||b(xt))+"\\b","i").exec(T)&&(xt.label||xt)})}function be(ke){return S(ke,function(rt,xt){var ht=xt.pattern||b(xt);return!rt&&(rt=RegExp("\\b"+ht+"(?:/[\\d.]+|[ \\w.]*)","i").exec(T))&&(rt=r(rt,ht,xt.label||xt)),rt})}function Ce(ke){return S(ke,function(rt,xt){var ht=xt.pattern||b(xt);return!rt&&(rt=RegExp("\\b"+ht+" *\\d+[.\\w_]*","i").exec(T)||RegExp("\\b"+ht+" *\\w+-[\\w]*","i").exec(T)||RegExp("\\b"+ht+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(T))&&((rt=String(xt.label&&!RegExp(ht,"i").test(xt.label)?xt.label:rt).split("/"))[1]&&!/[\d.]+/.test(rt[0])&&(rt[0]+=" "+rt[1]),xt=xt.label||xt,rt=c(rt[0].replace(RegExp(ht,"i"),xt).replace(RegExp("; *(?:"+xt+"[_-])?","i")," ").replace(RegExp("("+xt+")[-_.]?(\\w)","i"),"$1 $2"))),rt})}function Be(ke){return S(ke,function(rt,xt){return rt||(RegExp(xt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(T)||0)[1]||null})}function fe(){return this.description||""}if(Fe&&(Fe=[Fe]),he&&!at&&(at=Ce([he])),(re=/\bGoogle TV\b/.exec(at))&&(at=re[0]),/\bSimulator\b/i.test(T)&&(at=(at?at+" ":"")+"Simulator"),ae=="Opera Mini"&&/\bOPiOS\b/.test(T)&&Ie.push("running in Turbo/Uncompressed mode"),ae=="IE"&&/\blike iPhone OS\b/.test(T)?(re=C(T.replace(/like iPhone OS/,"")),he=re.manufacturer,at=re.product):/^iP/.test(at)?(ae||(ae="Safari"),J="iOS"+((re=/ OS ([\d_]+)/i.exec(T))?" "+re[1].replace(/_/g,"."):"")):ae=="Konqueror"&&!/buntu/i.test(J)?J="Kubuntu":he&&he!="Google"&&(/Chrome/.test(ae)&&!/\bMobile Safari\b/i.test(T)||/\bVita\b/.test(at))||/\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",Ie.unshift("desktop mode")),/Accelerated *= *true/i.test(T)&&Ie.unshift("accelerated")):ae=="PaleMoon"&&(re=/\bFirefox\/([\d.]+)\b/.exec(T))?Ie.push("identifying as Firefox "+re[1]):ae=="Firefox"&&(re=/\b(Mobile|Tablet|TV)\b/i.exec(T))?(J||(J="Firefox OS"),at||(at=re[1])):!ae||(re=!/\bMinefield\b/i.test(T)&&/\b(?:Firefox|Safari)\b/.exec(ae))?(ae&&!at&&/[\/,]|^[^(]+?\)/.test(T.slice(T.indexOf(re+"/")+8))&&(ae=null),(re=at||he||J)&&(at||he||/\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])&&Ie.push("Chromium "+re),Ve||(Ve=Be(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",b(ae),"(?:Firefox|Minefield|NetFront)"])),(re=Fe=="iCab"&&parseFloat(Ve)>3&&"WebKit"||/\bOpera\b/.test(ae)&&(/\bOPR\b/.test(T)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(T)&&!/^(?:Trident|EdgeHTML)$/.test(Fe)&&"WebKit"||!Fe&&/\bMSIE\b/i.test(T)&&(J=="Mac OS"?"Tasman":"Trident")||Fe=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ae)&&"NetFront")&&(Fe=[re]),ae=="IE"&&(re=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(T)||0)[1])?(ae+=" Mobile",J="Windows Phone "+(/\+$/.test(re)?re:re+".x"),Ie.unshift("desktop mode")):/\bWPDesktop\b/i.test(T)?(ae="IE Mobile",J="Windows Phone 8.x",Ie.unshift("desktop mode"),Ve||(Ve=(/\brv:([\d.]+)/.exec(T)||0)[1])):ae!="IE"&&Fe=="Trident"&&(re=/\brv:([\d.]+)/.exec(T))&&(ae&&Ie.push("identifying as "+ae+(Ve?" "+Ve:"")),ae="IE",Ve=re[1]),Je){if(A(w,"global"))if(z&&(re=z.lang.System,we=re.getProperty("os.arch"),J=J||re.getProperty("os.name")+" "+re.getProperty("os.version")),V){try{Ve=w.require("ringo/engine").version.join("."),ae="RingoJS"}catch(ke){(re=w.system)&&re.global.system==w.system&&(ae="Narwhal",J||(J=re[0].os||null))}ae||(ae="Rhino")}else typeof w.process=="object"&&!w.process.browser&&(re=w.process)&&(typeof re.versions=="object"&&(typeof re.versions.electron=="string"?(Ie.push("Node "+re.versions.node),ae="Electron",Ve=re.versions.electron):typeof re.versions.nw=="string"&&(Ie.push("Chromium "+Ve,"Node "+re.versions.node),ae="NW.js",Ve=re.versions.nw)),ae||(ae="Node.js",we=re.arch,J=re.platform,Ve=/[\d.]+/.exec(re.version),Ve=Ve?Ve[0]:null));else g(re=w.runtime)==X?(ae="Adobe AIR",J=re.flash.system.Capabilities.os):g(re=w.phantom)==K?(ae="PhantomJS",Ve=(re=re.version||null)&&re.major+"."+re.minor+"."+re.patch):typeof te.documentMode=="number"&&(re=/\bTrident\/(\d+)/i.exec(T))?(Ve=[Ve,te.documentMode],(re=+re[1]+4)!=Ve[1]&&(Ie.push("IE "+Ve[1]+" mode"),Fe&&(Fe[1]=""),Ve[1]=re),Ve=ae=="IE"?String(Ve[1].toFixed(1)):Ve[0]):typeof te.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ae)&&(Ie.push("masking as "+ae+" "+Ve),ae="IE",Ve="11.0",Fe=["Trident"],J="Windows");J=J&&c(J)}if(Ve&&(re=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ve)||/(?:alpha|beta)(?: ?\d)?/i.exec(T+";"+(Je&&I.appMinorVersion))||/\bMinefield\b/i.test(T)&&"a")&&(Me=/b/i.test(re)?"beta":"alpha",Ve=Ve.replace(RegExp(re+"\\+?$"),"")+(Me=="beta"?G:Q)+(/\d+\+?/.exec(re)||"")),ae=="Fennec"||ae=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(J))ae="Firefox Mobile";else if(ae=="Maxthon"&&Ve)Ve=Ve.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(at))at=="Xbox 360"&&(J=null),at=="Xbox 360"&&/\bIEMobile\b/.test(T)&&Ie.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ae)||ae&&!at&&!/Browser|Mobi/.test(ae))&&(J=="Windows CE"||/Mobi/i.test(T)))ae+=" Mobile";else if(ae=="IE"&&Je)try{w.external===null&&Ie.unshift("platform preview")}catch(ke){Ie.unshift("embedded")}else(/\bBlackBerry\b/.test(at)||/\bBB10\b/.test(T))&&(re=(RegExp(at.replace(/ +/g," *")+"/([.\\d]+)","i").exec(T)||0)[1]||Ve)?(re=[re,/BB10/.test(T)],J=(re[1]?(at=null,he="BlackBerry"):"Device Software")+" "+re[0],Ve=null):this!=h&&at!="Wii"&&(Je&&q||/Opera/.test(ae)&&/\b(?:MSIE|Firefox)\b/i.test(T)||ae=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(J)||ae=="IE"&&(J&&!/^Win/.test(J)&&Ve>5.5||/\bWindows XP\b/.test(J)&&Ve>8||Ve==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||(Ve=null)),Fe=["Presto"],Ie.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",Me="alpha",Ve=re[1].slice(0,-1)):(Ve==re[1]||Ve==(re[2]=(/\bSafari\/([\d.]+\+?)/i.exec(T)||0)[1]))&&(Ve=null),re[1]=(/\bChrome\/([\d.]+)/i.exec(T)||0)[1],re[0]==537.36&&re[2]==537.36&&parseFloat(re[1])>=28&&Fe=="WebKit"&&(Fe=["Blink"]),!Je||!B&&!re[1]?(Fe&&(Fe[1]="like Safari"),re=(re=re[0],re<400?1:re<500?2:re<526?3:re<533?4:re<534?"4+":re<535?5:re<537?6:re<538?7:re<601?8:"8")):(Fe&&(Fe[1]="like Chrome"),re=re[1]||(re=re[0],re<530?1:re<532?2:re<532.05?3:re<533?4:re<534.03?5:re<534.07?6:re<534.1?7:re<534.13?8:re<534.16?9:re<534.24?10:re<534.3?11:re<535.01?12:re<535.02?"13+":re<535.07?15:re<535.11?16:re<535.19?17:re<536.05?18:re<536.1?19:re<537.01?20:re<537.11?"21+":re<537.13?23:re<537.18?24:re<537.24?25:re<537.36?26:Fe!="Blink"?"27":"28")),Fe&&(Fe[1]+=" "+(re+=typeof re=="number"?".x":/[.+]/.test(re)?"":"+")),ae=="Safari"&&(!Ve||parseInt(Ve)>45)&&(Ve=re)),ae=="Opera"&&(re=/\bzbov|zvav$/.exec(J))?(ae+=" ",Ie.unshift("desktop mode"),re=="zvav"?(ae+="Mini",Ve=null):ae+="Mobile",J=J.replace(RegExp(" *"+re+"$"),"")):ae=="Safari"&&/\bChrome\b/.exec(Fe&&Fe[1])&&(Ie.unshift("desktop mode"),ae="Chrome Mobile",Ve=null,/\bOS X\b/.test(J)?(he="Apple",J="iOS 4.3+"):J=null),Ve&&Ve.indexOf(re=/[\d.]+$/.exec(J))==0&&T.indexOf("/"+re+"-")>-1&&(J=E(J.replace(re,""))),Fe&&!/\b(?:Avant|Nook)\b/.test(ae)&&(/Browser|Lunascape|Maxthon/.test(ae)||ae!="Safari"&&/^iOS/.test(J)&&/\bSafari\b/.test(Fe[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ae)&&Fe[1])&&((re=Fe[Fe.length-1])&&Ie.push(re)),Ie.length&&(Ie=["("+Ie.join("; ")+")"]),he&&at&&at.indexOf(he)<0&&Ie.push("on "+he),at&&Ie.push((/^on /.test(Ie[Ie.length-1])?"":"on ")+at),J&&(re=/ ([\d.+]+)$/.exec(J),ut=re&&J.charAt(J.length-re[0].length-1)=="/",J={architecture:32,family:re&&!ut?J.replace(re[0],""):J,version:re?re[1]:null,toString:function(){var rt=this.version;return this.family+(rt&&!ut?" "+rt:"")+(this.architecture==64?" 64-bit":"")}}),(re=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(we))&&!/\bi686\b/i.test(we)?(J&&(J.architecture=64,J.family=J.family.replace(RegExp(" *"+re),"")),ae&&(/\bWOW64\b/i.test(T)||Je&&/\w(?:86|32)$/.test(I.cpuClass||I.platform)&&!/\bWin64; x64\b/i.test(T))&&Ie.unshift("32-bit")):J&&/^OS X/.test(J.family)&&ae=="Chrome"&&parseFloat(Ve)>=39&&(J.architecture=64),T||(T=null);var Se={};return Se.description=T,Se.layout=Fe&&Fe[0],Se.manufacturer=he,Se.name=ae,Se.prerelease=Me,Se.product=at,Se.ua=T,Se.version=ae&&Ve,Se.os=J||{architecture:null,family:null,version:null,toString:function(){return"null"}},Se.parse=C,Se.toString=fe,Se.version&&Ie.unshift(Ve),Se.name&&Ie.unshift(ae),J&&ae&&!(J==String(J).split(" ")[0]&&(J==ae.split(" ")[0]||at))&&Ie.push(at?"("+J+")":"on "+J),Ie.length&&(Se.description=Ie.join(" ")),Se}var _=C();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(x.platform=_,define(function(){return _})):m&&f?h(_,function(T,w){m[w]=T}):x.platform=_}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(k,D,n){(function(y){"use strict";typeof y=="undefined"||!y.version||y.version.indexOf("v0.")===0||y.version.indexOf("v1.")===0&&y.version.indexOf("v1.8.")!==0?D.exports={nextTick: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,u,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(u=new Array(d-1),o=0;o<u.length;)u[o++]=arguments[o];return y.nextTick(function(){x.apply(null,u)})}}}).call(this,k("_process"))},{_process:208}],208:[function(k,D,n){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(a){p=v}try{typeof clearTimeout=="function"?x=clearTimeout:x=m}catch(a){x=m}})();function f(a){if(p===setTimeout)return setTimeout(a,0);if((p===v||!p)&&setTimeout)return p=setTimeout,setTimeout(a,0);try{return p(a,0)}catch(c){try{return p.call(null,a,0)}catch(h){return p.call(this,a,0)}}}function d(a){if(x===clearTimeout)return clearTimeout(a);if((x===m||!x)&&clearTimeout)return x=clearTimeout,clearTimeout(a);try{return x(a)}catch(c){try{return x.call(null,a)}catch(h){return x.call(this,a)}}}var u=[],o=!1,i,t=-1;function s(){if(!o||!i)return;o=!1,i.length?u=i.concat(u):t=-1,u.length&&e()}function e(){if(o)return;var a=f(s);o=!0;for(var c=u.length;c;){for(i=u,u=[];++t<c;)i&&i[t].run();t=-1,c=u.length}i=null,o=!1,d(a)}y.nextTick=function(a){var c=new Array(arguments.length-1);if(arguments.length>1)for(var h=1;h<arguments.length;h++)c[h-1]=arguments[h];u.push(new l(a,c)),u.length===1&&!o&&f(e)};function l(a,c){this.fun=a,this.array=c}l.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(a){return[]},y.binding=function(a){throw new Error("process.binding is not supported")},y.cwd=function(){return"/"},y.chdir=function(a){throw new Error("process.chdir is not supported")},y.umask=function(){return 0}},{}],209:[function(k,D,n){(function(y){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(p){var x=typeof n=="object"&&n&&!n.nodeType&&n,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,u=36,o=1,i=26,t=38,s=700,e=72,l=128,r="-",a=/^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=u-o,b=Math.floor,S=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("."),G=_(Q,K).join(".");return V+G}function w(j){for(var K=[],z=0,V=j.length,Q,G;z<V;)Q=j.charCodeAt(z++),Q>=55296&&Q<=56319&&z<V?(G=j.charCodeAt(z++),(G&64512)==56320?K.push(((Q&1023)<<10)+(G&1023)+65536):(K.push(Q),z--)):K.push(Q);return K}function O(j){return _(j,function(K){var z="";return K>65535&&(K-=65536,z+=S(K>>>10&1023|55296),K=56320|K&1023),z+=S(K),z}).join("")}function I(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:u}function R(j,K){return j+22+75*(j<26)-((K!=0)<<5)}function M(j,K,z){var V=0;for(j=z?b(j/s):j>>1,j+=b(j/K);j>A*i>>1;V+=u)j=b(j/A);return b(V+(A+1)*j/(j+t))}function B(j){var K=[],z=j.length,V,Q=0,G=l,te=e,q,le,re,we,Ie,Me,Je,Ve,ut;for(q=j.lastIndexOf(r),q<0&&(q=0),le=0;le<q;++le)j.charCodeAt(le)>=128&&C("not-basic"),K.push(j.charCodeAt(le));for(re=q>0?q+1:0;re<z;){for(we=Q,Ie=1,Me=u;!(re>=z&&C("invalid-input"),Je=I(j.charCodeAt(re++)),(Je>=u||Je>b((d-Q)/Ie))&&C("overflow"),Q+=Je*Ie,Ve=Me<=te?o:Me>=te+i?i:Me-te,Je<Ve);Me+=u)ut=u-Ve,Ie>b(d/ut)&&C("overflow"),Ie*=ut;V=K.length+1,te=M(Q-we,V,we==0),b(Q/V)>d-G&&C("overflow"),G+=b(Q/V),Q%=V,K.splice(Q++,0,G)}return O(K)}function P(j){var K,z,V,Q,G,te,q,le,re,we,Ie,Me=[],Je,Ve,ut,Fe;for(j=w(j),Je=j.length,K=l,z=0,G=e,te=0;te<Je;++te)Ie=j[te],Ie<128&&Me.push(S(Ie));for(V=Q=Me.length,Q&&Me.push(r);V<Je;){for(q=d,te=0;te<Je;++te)Ie=j[te],Ie>=K&&Ie<q&&(q=Ie);for(Ve=V+1,q-K>b((d-z)/Ve)&&C("overflow"),z+=(q-K)*Ve,K=q,te=0;te<Je;++te)if(Ie=j[te],Ie<K&&++z>d&&C("overflow"),Ie==K){for(le=z,re=u;!(we=re<=G?o:re>=G+i?i:re-G,le<we);re+=u)Fe=le-we,ut=u-we,Me.push(S(R(we+Fe%ut,0))),le=b(Fe/ut);Me.push(S(R(le,0))),G=M(z,Ve,V==Q),z=0,++V}++z,++K}return Me.join("")}function X(j){return T(j,function(K){return a.test(K)?B(K.slice(4).toLowerCase()):K})}function F(j){return T(j,function(K){return c.test(K)?"xn--"+P(K):K})}if(f={version:"1.4.1",ucs2:{decode:w,encode:O},decode:B,encode:P,toASCII:F,toUnicode:X},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(k,D,n){"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 u=/\+/g;x=x.split(v);var o=1e3;f&&typeof f.maxKeys=="number"&&(o=f.maxKeys);var i=x.length;o>0&&i>o&&(i=o);for(var t=0;t<i;++t){var s=x[t].replace(u,"%20"),e=s.indexOf(m),l,r,a,c;e>=0?(l=s.substr(0,e),r=s.substr(e+1)):(l=s,r=""),a=decodeURIComponent(l),c=decodeURIComponent(r),y(d,a)?p(d[a])?d[a].push(c):d[a]=[d[a],c]:d[a]=c}return d};var p=Array.isArray||function(x){return Object.prototype.toString.call(x)==="[object Array]"}},{}],211:[function(k,D,n){"use strict";var y=function(f){switch(typeof f){case"string":return f;case"boolean":return f?"true":"false";case"number":return isFinite(f)?f:"";default:return""}};D.exports=function(m,f,d,u){return f=f||"&",d=d||"=",m===null&&(m=void 0),typeof m=="object"?x(v(m),function(o){var i=encodeURIComponent(y(o))+d;return p(m[o])?x(m[o],function(t){return i+encodeURIComponent(y(t))}).join(f):i+encodeURIComponent(y(m[o]))}).join(f):u?encodeURIComponent(y(u))+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=[],u=0;u<m.length;u++)d.push(f(m[u],u));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(k,D,n){"use strict";n.decode=n.parse=k("./decode"),n.encode=n.stringify=k("./encode")},{"./decode":210,"./encode":211}],213:[function(k,D,n){D.exports=k("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=m(y),x=k("babel-runtime/core-js/object/keys"),v=m(x);function m(c){return c&&c.__esModule?c:{default:c}}var f=k("process-nextick-args"),d=v.default||function(c){var h=[];for(var g in c)h.push(g);return h};D.exports=l;var u=(0,p.default)(k("core-util-is"));u.inherits=k("inherits");var o=k("./_stream_readable"),i=k("./_stream_writable");u.inherits(l,o);for(var t=d(i.prototype),s=0;s<t.length;s++){var e=t[s];l.prototype[e]||(l.prototype[e]=i.prototype[e])}function l(c){if(!(this instanceof l))return new l(c);o.call(this,c),i.call(this,c),c&&c.readable===!1&&(this.readable=!1),c&&c.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,c&&c.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",r)}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function r(){if(this.allowHalfOpen||this._writableState.ended)return;f.nextTick(a,this)}function a(c){c.end()}Object.defineProperty(l.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(h){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=h,this._writableState.destroyed=h}}),l.prototype._destroy=function(c,h){this.push(null),this.end(),f.nextTick(h,c)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(d){return d&&d.__esModule?d:{default:d}}D.exports=f;var v=k("./_stream_transform"),m=(0,p.default)(k("core-util-is"));m.inherits=k("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,u,o){o(null,d)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(k,D,n){(function(y,p){"use strict";var x=k("babel-runtime/core-js/object/get-prototype-of"),v=d(x),m=k("babel-runtime/core-js/object/create"),f=d(m);function d(Fe){return Fe&&Fe.__esModule?Fe:{default:Fe}}var u=k("process-nextick-args");D.exports=w;var o=k("isarray"),i;w.ReadableState=T;var t=k("events").EventEmitter,s=function(ae,at){return ae.listeners(at).length},e=k("./internal/streams/stream"),l=k("safe-buffer").Buffer,r=p.Uint8Array||function(){};function a(Fe){return l.from(Fe)}function c(Fe){return l.isBuffer(Fe)||Fe instanceof r}var h=(0,f.default)(k("core-util-is"));h.inherits=k("inherits");var g=k("util"),A=void 0;g&&g.debuglog?A=g.debuglog("stream"):A=function(){};var b=k("./internal/streams/BufferList"),S=k("./internal/streams/destroy"),E;h.inherits(w,e);var C=["error","close","destroy","pause","resume"];function _(Fe,ae,at){if(typeof Fe.prependListener=="function")return Fe.prependListener(ae,at);!Fe._events||!Fe._events[ae]?Fe.on(ae,at):o(Fe._events[ae])?Fe._events[ae].unshift(at):Fe._events[ae]=[at,Fe._events[ae]]}function T(Fe,ae){i=i||k("./_stream_duplex"),Fe=Fe||{};var at=ae instanceof i;this.objectMode=!!Fe.objectMode,at&&(this.objectMode=this.objectMode||!!Fe.readableObjectMode);var he=Fe.highWaterMark,J=Fe.readableHighWaterMark,Y=this.objectMode?16:16*1024;he||he===0?this.highWaterMark=he:at&&(J||J===0)?this.highWaterMark=J:this.highWaterMark=Y,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Fe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Fe.encoding&&(E||(E=k("string_decoder/").StringDecoder),this.decoder=new E(Fe.encoding),this.encoding=Fe.encoding)}function w(Fe){if(i=i||k("./_stream_duplex"),!(this instanceof w))return new w(Fe);this._readableState=new T(Fe,this),this.readable=!0,Fe&&(typeof Fe.read=="function"&&(this._read=Fe.read),typeof Fe.destroy=="function"&&(this._destroy=Fe.destroy)),e.call(this)}Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ae){if(!this._readableState)return;this._readableState.destroyed=ae}}),w.prototype.destroy=S.destroy,w.prototype._undestroy=S.undestroy,w.prototype._destroy=function(Fe,ae){this.push(null),ae(Fe)},w.prototype.push=function(Fe,ae){var at=this._readableState,he;return at.objectMode?he=!0:typeof Fe=="string"&&(ae=ae||at.defaultEncoding,ae!==at.encoding&&(Fe=l.from(Fe,ae),ae=""),he=!0),O(this,Fe,ae,!1,he)},w.prototype.unshift=function(Fe){return O(this,Fe,null,!0,!1)};function O(Fe,ae,at,he,J){var Y=Fe._readableState;if(ae===null)Y.reading=!1,F(Fe,Y);else{var $;J||($=R(Y,ae)),$?Fe.emit("error",$):Y.objectMode||ae&&ae.length>0?(typeof ae!="string"&&!Y.objectMode&&(0,v.default)(ae)!==l.prototype&&(ae=a(ae)),he?Y.endEmitted?Fe.emit("error",new Error("stream.unshift() after end event")):I(Fe,Y,ae,!0):Y.ended?Fe.emit("error",new Error("stream.push() after EOF")):(Y.reading=!1,Y.decoder&&!at?(ae=Y.decoder.write(ae),Y.objectMode||ae.length!==0?I(Fe,Y,ae,!1):z(Fe,Y)):I(Fe,Y,ae,!1))):he||(Y.reading=!1)}return M(Y)}function I(Fe,ae,at,he){ae.flowing&&ae.length===0&&!ae.sync?(Fe.emit("data",at),Fe.read(0)):(ae.length+=ae.objectMode?1:at.length,he?ae.buffer.unshift(at):ae.buffer.push(at),ae.needReadable&&j(Fe)),z(Fe,ae)}function R(Fe,ae){var at;return!c(ae)&&typeof ae!="string"&&ae!==void 0&&!Fe.objectMode&&(at=new TypeError("Invalid non-string/buffer chunk")),at}function M(Fe){return!Fe.ended&&(Fe.needReadable||Fe.length<Fe.highWaterMark||Fe.length===0)}w.prototype.isPaused=function(){return this._readableState.flowing===!1},w.prototype.setEncoding=function(Fe){return E||(E=k("string_decoder/").StringDecoder),this._readableState.decoder=new E(Fe),this._readableState.encoding=Fe,this};var B=8388608;function P(Fe){return Fe>=B?Fe=B:(Fe--,Fe|=Fe>>>1,Fe|=Fe>>>2,Fe|=Fe>>>4,Fe|=Fe>>>8,Fe|=Fe>>>16,Fe++),Fe}function X(Fe,ae){return Fe<=0||ae.length===0&&ae.ended?0:ae.objectMode?1:Fe!==Fe?ae.flowing&&ae.length?ae.buffer.head.data.length:ae.length:(Fe>ae.highWaterMark&&(ae.highWaterMark=P(Fe)),Fe<=ae.length?Fe:ae.ended?ae.length:(ae.needReadable=!0,0))}w.prototype.read=function(Fe){A("read",Fe),Fe=parseInt(Fe,10);var ae=this._readableState,at=Fe;if(Fe!==0&&(ae.emittedReadable=!1),Fe===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(Fe=X(Fe,ae),Fe===0&&ae.ended)return ae.length===0&&Je(this),null;var he=ae.needReadable;A("need readable",he),(ae.length===0||ae.length-Fe<ae.highWaterMark)&&(he=!0,A("length less than watermark",he)),ae.ended||ae.reading?(he=!1,A("reading or ended",he)):he&&(A("do read"),ae.reading=!0,ae.sync=!0,ae.length===0&&(ae.needReadable=!0),this._read(ae.highWaterMark),ae.sync=!1,ae.reading||(Fe=X(at,ae)));var J;return Fe>0?J=re(Fe,ae):J=null,J===null?(ae.needReadable=!0,Fe=0):ae.length-=Fe,ae.length===0&&(ae.ended||(ae.needReadable=!0),at!==Fe&&ae.ended&&Je(this)),J!==null&&this.emit("data",J),J};function F(Fe,ae){if(ae.ended)return;if(ae.decoder){var at=ae.decoder.end();at&&at.length&&(ae.buffer.push(at),ae.length+=ae.objectMode?1:at.length)}ae.ended=!0,j(Fe)}function j(Fe){var ae=Fe._readableState;ae.needReadable=!1,ae.emittedReadable||(A("emitReadable",ae.flowing),ae.emittedReadable=!0,ae.sync?u.nextTick(K,Fe):K(Fe))}function K(Fe){A("emit readable"),Fe.emit("readable"),le(Fe)}function z(Fe,ae){ae.readingMore||(ae.readingMore=!0,u.nextTick(V,Fe,ae))}function V(Fe,ae){for(var at=ae.length;!ae.reading&&!ae.flowing&&!ae.ended&&ae.length<ae.highWaterMark&&!(A("maybeReadMore read 0"),Fe.read(0),at===ae.length);)at=ae.length;ae.readingMore=!1}w.prototype._read=function(Fe){this.emit("error",new Error("_read() is not implemented"))},w.prototype.pipe=function(Fe,ae){var at=this,he=this._readableState;switch(he.pipesCount){case 0:he.pipes=Fe;break;case 1:he.pipes=[he.pipes,Fe];break;default:he.pipes.push(Fe);break}he.pipesCount+=1,A("pipe count=%d opts=%j",he.pipesCount,ae);var J=(!ae||ae.end!==!1)&&Fe!==y.stdout&&Fe!==y.stderr,Y=J?de:ht;he.endEmitted?u.nextTick(Y):at.once("end",Y),Fe.on("unpipe",$);function $(He,ir){A("onunpipe"),He===at&&(ir&&ir.hasUnpiped===!1&&(ir.hasUnpiped=!0,Be()))}function de(){A("onend"),Fe.end()}var be=Q(at);Fe.on("drain",be);var Ce=!1;function Be(){A("cleanup"),Fe.removeListener("close",rt),Fe.removeListener("finish",xt),Fe.removeListener("drain",be),Fe.removeListener("error",ke),Fe.removeListener("unpipe",$),at.removeListener("end",de),at.removeListener("end",ht),at.removeListener("data",Se),Ce=!0,he.awaitDrain&&(!Fe._writableState||Fe._writableState.needDrain)&&be()}var fe=!1;at.on("data",Se);function Se(He){A("ondata"),fe=!1;var ir=Fe.write(He);ir===!1&&!fe&&((he.pipesCount===1&&he.pipes===Fe||he.pipesCount>1&&ut(he.pipes,Fe)!==-1)&&!Ce&&(A("false write response, pause",at._readableState.awaitDrain),at._readableState.awaitDrain++,fe=!0),at.pause())}function ke(He){A("onerror",He),ht(),Fe.removeListener("error",ke),s(Fe,"error")===0&&Fe.emit("error",He)}_(Fe,"error",ke);function rt(){Fe.removeListener("finish",xt),ht()}Fe.once("close",rt);function xt(){A("onfinish"),Fe.removeListener("close",rt),ht()}Fe.once("finish",xt);function ht(){A("unpipe"),at.unpipe(Fe)}return Fe.emit("pipe",at),he.flowing||(A("pipe resume"),at.resume()),Fe};function Q(Fe){return function(){var ae=Fe._readableState;A("pipeOnDrain",ae.awaitDrain),ae.awaitDrain&&ae.awaitDrain--,ae.awaitDrain===0&&s(Fe,"data")&&(ae.flowing=!0,le(Fe))}}w.prototype.unpipe=function(Fe){var ae=this._readableState,at={hasUnpiped:!1};if(ae.pipesCount===0)return this;if(ae.pipesCount===1)return Fe&&Fe!==ae.pipes?this:(Fe||(Fe=ae.pipes),ae.pipes=null,ae.pipesCount=0,ae.flowing=!1,Fe&&Fe.emit("unpipe",this,at),this);if(!Fe){var he=ae.pipes,J=ae.pipesCount;ae.pipes=null,ae.pipesCount=0,ae.flowing=!1;for(var Y=0;Y<J;Y++)he[Y].emit("unpipe",this,at);return this}var $=ut(ae.pipes,Fe);return $===-1?this:(ae.pipes.splice($,1),ae.pipesCount-=1,ae.pipesCount===1&&(ae.pipes=ae.pipes[0]),Fe.emit("unpipe",this,at),this)},w.prototype.on=function(Fe,ae){var at=e.prototype.on.call(this,Fe,ae);if(Fe==="data")this._readableState.flowing!==!1&&this.resume();else if(Fe==="readable"){var he=this._readableState;!he.endEmitted&&!he.readableListening&&(he.readableListening=he.needReadable=!0,he.emittedReadable=!1,he.reading?he.length&&j(this):u.nextTick(G,this))}return at},w.prototype.addListener=w.prototype.on;function G(Fe){A("readable nexttick read 0"),Fe.read(0)}w.prototype.resume=function(){var Fe=this._readableState;return Fe.flowing||(A("resume"),Fe.flowing=!0,te(this,Fe)),this};function te(Fe,ae){ae.resumeScheduled||(ae.resumeScheduled=!0,u.nextTick(q,Fe,ae))}function q(Fe,ae){ae.reading||(A("resume read 0"),Fe.read(0)),ae.resumeScheduled=!1,ae.awaitDrain=0,Fe.emit("resume"),le(Fe),ae.flowing&&!ae.reading&&Fe.read(0)}w.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function le(Fe){var ae=Fe._readableState;for(A("flow",ae.flowing);ae.flowing&&Fe.read()!==null;);}w.prototype.wrap=function(Fe){var ae=this,at=this._readableState,he=!1;Fe.on("end",function(){if(A("wrapped end"),at.decoder&&!at.ended){var $=at.decoder.end();$&&$.length&&ae.push($)}ae.push(null)}),Fe.on("data",function($){if(A("wrapped data"),at.decoder&&($=at.decoder.write($)),at.objectMode&&$==null)return;if(!at.objectMode&&(!$||!$.length))return;var de=ae.push($);de||(he=!0,Fe.pause())});for(var J in Fe)this[J]===void 0&&typeof Fe[J]=="function"&&(this[J]=function($){return function(){return Fe[$].apply(Fe,arguments)}}(J));for(var Y=0;Y<C.length;Y++)Fe.on(C[Y],this.emit.bind(this,C[Y]));return this._read=function($){A("wrapped _read",$),he&&(he=!1,Fe.resume())},this},Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),w._fromList=re;function re(Fe,ae){if(ae.length===0)return null;var at;return ae.objectMode?at=ae.buffer.shift():!Fe||Fe>=ae.length?(ae.decoder?at=ae.buffer.join(""):ae.buffer.length===1?at=ae.buffer.head.data:at=ae.buffer.concat(ae.length),ae.buffer.clear()):at=we(Fe,ae.buffer,ae.decoder),at}function we(Fe,ae,at){var he;return Fe<ae.head.data.length?(he=ae.head.data.slice(0,Fe),ae.head.data=ae.head.data.slice(Fe)):Fe===ae.head.data.length?he=ae.shift():he=at?Ie(Fe,ae):Me(Fe,ae),he}function Ie(Fe,ae){var at=ae.head,he=1,J=at.data;for(Fe-=J.length;at=at.next;){var Y=at.data,$=Fe>Y.length?Y.length:Fe;if($===Y.length?J+=Y:J+=Y.slice(0,Fe),Fe-=$,Fe===0){$===Y.length?(++he,at.next?ae.head=at.next:ae.head=ae.tail=null):(ae.head=at,at.data=Y.slice($));break}++he}return ae.length-=he,J}function Me(Fe,ae){var at=l.allocUnsafe(Fe),he=ae.head,J=1;for(he.data.copy(at),Fe-=he.data.length;he=he.next;){var Y=he.data,$=Fe>Y.length?Y.length:Fe;if(Y.copy(at,at.length-Fe,0,$),Fe-=$,Fe===0){$===Y.length?(++J,he.next?ae.head=he.next:ae.head=ae.tail=null):(ae.head=he,he.data=Y.slice($));break}++J}return ae.length-=J,at}function Je(Fe){var ae=Fe._readableState;if(ae.length>0)throw new Error('"endReadable()" called on non-empty stream');ae.endEmitted||(ae.ended=!0,u.nextTick(Ve,ae,Fe))}function Ve(Fe,ae){!Fe.endEmitted&&Fe.length===0&&(Fe.endEmitted=!0,ae.readable=!1,ae.emit("end"))}function ut(Fe,ae){for(var at=0,he=Fe.length;at<he;at++)if(Fe[at]===ae)return at;return-1}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(i){return i&&i.__esModule?i:{default:i}}D.exports=d;var v=k("./_stream_duplex"),m=(0,p.default)(k("core-util-is"));m.inherits=k("inherits"),m.inherits(d,v);function f(i,t){var s=this._transformState;s.transforming=!1;var e=s.writecb;if(!e)return this.emit("error",new Error("write callback called multiple times"));s.writechunk=null,s.writecb=null,t!=null&&this.push(t),e(i);var l=this._readableState;l.reading=!1,(l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}function d(i){if(!(this instanceof d))return new d(i);v.call(this,i),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,i&&(typeof i.transform=="function"&&(this._transform=i.transform),typeof i.flush=="function"&&(this._flush=i.flush)),this.on("prefinish",u)}function u(){var i=this;typeof this._flush=="function"?this._flush(function(t,s){o(i,t,s)}):o(this,null,null)}d.prototype.push=function(i,t){return this._transformState.needTransform=!1,v.prototype.push.call(this,i,t)},d.prototype._transform=function(i,t,s){throw new Error("_transform() is not implemented")},d.prototype._write=function(i,t,s){var e=this._transformState;if(e.writecb=s,e.writechunk=i,e.writeencoding=t,!e.transforming){var l=this._readableState;(e.needTransform||l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}},d.prototype._read=function(i){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},d.prototype._destroy=function(i,t){var s=this;v.prototype._destroy.call(this,i,function(e){t(e),s.emit("close")})};function o(i,t,s){if(t)return i.emit("error",t);if(s!=null&&i.push(s),i._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(i._transformState.transforming)throw new Error("Calling transform done when still transforming");return i.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(k,D,n){(function(y,p){"use strict";var x=k("babel-runtime/core-js/object/define-property"),v=e(x),m=k("babel-runtime/core-js/symbol/has-instance"),f=e(m),d=k("babel-runtime/core-js/symbol"),u=e(d),o=k("babel-runtime/core-js/object/create"),i=e(o),t=k("babel-runtime/core-js/set-immediate"),s=e(t);function e(Me){return Me&&Me.__esModule?Me:{default:Me}}var l=k("process-nextick-args");D.exports=R;function r(Me,Je,Ve){this.chunk=Me,this.encoding=Je,this.callback=Ve,this.next=null}function a(Me){var Je=this;this.next=null,this.entry=null,this.finish=function(){Ie(Je,Me)}}var c=!y.browser&&["v0.10","v0.9."].indexOf(y.version.slice(0,5))>-1?s.default:l.nextTick,h;R.WritableState=O;var g=(0,i.default)(k("core-util-is"));g.inherits=k("inherits");var A={deprecate:k("util-deprecate")},b=k("./internal/streams/stream"),S=k("safe-buffer").Buffer,E=p.Uint8Array||function(){};function C(Me){return S.from(Me)}function _(Me){return S.isBuffer(Me)||Me instanceof E}var T=k("./internal/streams/destroy");g.inherits(R,b);function w(){}function O(Me,Je){h=h||k("./_stream_duplex"),Me=Me||{};var Ve=Je instanceof h;this.objectMode=!!Me.objectMode,Ve&&(this.objectMode=this.objectMode||!!Me.writableObjectMode);var ut=Me.highWaterMark,Fe=Me.writableHighWaterMark,ae=this.objectMode?16:16*1024;ut||ut===0?this.highWaterMark=ut:Ve&&(Fe||Fe===0)?this.highWaterMark=Fe: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 at=Me.decodeStrings===!1;this.decodeStrings=!at,this.defaultEncoding=Me.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(he){z(Je,he)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}O.prototype.getBuffer=function(){for(var Je=this.bufferedRequest,Ve=[];Je;)Ve.push(Je),Je=Je.next;return Ve},function(){try{Object.defineProperty(O.prototype,"buffer",{get:A.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Me){}}();var I;typeof u.default=="function"&&f.default&&typeof Function.prototype[f.default]=="function"?(I=Function.prototype[f.default],(0,v.default)(R,f.default,{value:function(Je){return I.call(this,Je)?!0:this!==R?!1:Je&&Je._writableState instanceof O}})):I=function(Je){return Je instanceof this};function R(Me){if(h=h||k("./_stream_duplex"),!I.call(R,this)&&!(this instanceof h))return new R(Me);this._writableState=new O(Me,this),this.writable=!0,Me&&(typeof Me.write=="function"&&(this._write=Me.write),typeof Me.writev=="function"&&(this._writev=Me.writev),typeof Me.destroy=="function"&&(this._destroy=Me.destroy),typeof Me.final=="function"&&(this._final=Me.final)),b.call(this)}R.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function M(Me,Je){var Ve=new Error("write after end");Me.emit("error",Ve),l.nextTick(Je,Ve)}function B(Me,Je,Ve,ut){var Fe=!0,ae=!1;return Ve===null?ae=new TypeError("May not write null values to stream"):typeof Ve!="string"&&Ve!==void 0&&!Je.objectMode&&(ae=new TypeError("Invalid non-string/buffer chunk")),ae&&(Me.emit("error",ae),l.nextTick(ut,ae),Fe=!1),Fe}R.prototype.write=function(Me,Je,Ve){var ut=this._writableState,Fe=!1,ae=!ut.objectMode&&_(Me);return ae&&!S.isBuffer(Me)&&(Me=C(Me)),typeof Je=="function"&&(Ve=Je,Je=null),ae?Je="buffer":Je||(Je=ut.defaultEncoding),typeof Ve!="function"&&(Ve=w),ut.ended?M(this,Ve):(ae||B(this,ut,Me,Ve))&&(ut.pendingcb++,Fe=X(this,ut,ae,Me,Je,Ve)),Fe},R.prototype.cork=function(){var Me=this._writableState;Me.corked++},R.prototype.uncork=function(){var Me=this._writableState;Me.corked&&(Me.corked--,!Me.writing&&!Me.corked&&!Me.finished&&!Me.bufferProcessing&&Me.bufferedRequest&&G(this,Me))},R.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 P(Me,Je,Ve){return!Me.objectMode&&Me.decodeStrings!==!1&&typeof Je=="string"&&(Je=S.from(Je,Ve)),Je}Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function X(Me,Je,Ve,ut,Fe,ae){if(!Ve){var at=P(Je,ut,Fe);ut!==at&&(Ve=!0,Fe="buffer",ut=at)}var he=Je.objectMode?1:ut.length;Je.length+=he;var J=Je.length<Je.highWaterMark;if(J||(Je.needDrain=!0),Je.writing||Je.corked){var Y=Je.lastBufferedRequest;Je.lastBufferedRequest={chunk:ut,encoding:Fe,isBuf:Ve,callback:ae,next:null},Y?Y.next=Je.lastBufferedRequest:Je.bufferedRequest=Je.lastBufferedRequest,Je.bufferedRequestCount+=1}else F(Me,Je,!1,he,ut,Fe,ae);return J}function F(Me,Je,Ve,ut,Fe,ae,at){Je.writelen=ut,Je.writecb=at,Je.writing=!0,Je.sync=!0,Ve?Me._writev(Fe,Je.onwrite):Me._write(Fe,ae,Je.onwrite),Je.sync=!1}function j(Me,Je,Ve,ut,Fe){--Je.pendingcb,Ve?(l.nextTick(Fe,ut),l.nextTick(re,Me,Je),Me._writableState.errorEmitted=!0,Me.emit("error",ut)):(Fe(ut),Me._writableState.errorEmitted=!0,Me.emit("error",ut),re(Me,Je))}function K(Me){Me.writing=!1,Me.writecb=null,Me.length-=Me.writelen,Me.writelen=0}function z(Me,Je){var Ve=Me._writableState,ut=Ve.sync,Fe=Ve.writecb;if(K(Ve),Je)j(Me,Ve,ut,Je,Fe);else{var ae=te(Ve);!ae&&!Ve.corked&&!Ve.bufferProcessing&&Ve.bufferedRequest&&G(Me,Ve),ut?c(V,Me,Ve,ae,Fe):V(Me,Ve,ae,Fe)}}function V(Me,Je,Ve,ut){Ve||Q(Me,Je),Je.pendingcb--,ut(),re(Me,Je)}function Q(Me,Je){Je.length===0&&Je.needDrain&&(Je.needDrain=!1,Me.emit("drain"))}function G(Me,Je){Je.bufferProcessing=!0;var Ve=Je.bufferedRequest;if(Me._writev&&Ve&&Ve.next){var ut=Je.bufferedRequestCount,Fe=new Array(ut),ae=Je.corkedRequestsFree;ae.entry=Ve;for(var at=0,he=!0;Ve;)Fe[at]=Ve,Ve.isBuf||(he=!1),Ve=Ve.next,at+=1;Fe.allBuffers=he,F(Me,Je,!0,Je.length,Fe,"",ae.finish),Je.pendingcb++,Je.lastBufferedRequest=null,ae.next?(Je.corkedRequestsFree=ae.next,ae.next=null):Je.corkedRequestsFree=new a(Je),Je.bufferedRequestCount=0}else{for(;Ve;){var J=Ve.chunk,Y=Ve.encoding,$=Ve.callback,de=Je.objectMode?1:J.length;if(F(Me,Je,!1,de,J,Y,$),Ve=Ve.next,Je.bufferedRequestCount--,Je.writing)break}Ve===null&&(Je.lastBufferedRequest=null)}Je.bufferedRequest=Ve,Je.bufferProcessing=!1}R.prototype._write=function(Me,Je,Ve){Ve(new Error("_write() is not implemented"))},R.prototype._writev=null,R.prototype.end=function(Me,Je,Ve){var ut=this._writableState;typeof Me=="function"?(Ve=Me,Me=null,Je=null):typeof Je=="function"&&(Ve=Je,Je=null),Me!=null&&this.write(Me,Je),ut.corked&&(ut.corked=1,this.uncork()),!ut.ending&&!ut.finished&&we(this,ut,Ve)};function te(Me){return Me.ending&&Me.length===0&&Me.bufferedRequest===null&&!Me.finished&&!Me.writing}function q(Me,Je){Me._final(function(Ve){Je.pendingcb--,Ve&&Me.emit("error",Ve),Je.prefinished=!0,Me.emit("prefinish"),re(Me,Je)})}function le(Me,Je){!Je.prefinished&&!Je.finalCalled&&(typeof Me._final=="function"?(Je.pendingcb++,Je.finalCalled=!0,l.nextTick(q,Me,Je)):(Je.prefinished=!0,Me.emit("prefinish")))}function re(Me,Je){var Ve=te(Je);return Ve&&(le(Me,Je),Je.pendingcb===0&&(Je.finished=!0,Me.emit("finish"))),Ve}function we(Me,Je,Ve){Je.ending=!0,re(Me,Je),Ve&&(Je.finished?l.nextTick(Ve):Me.once("finish",Ve)),Je.ended=!0,Me.writable=!1}function Ie(Me,Je,Ve){var ut=Me.entry;for(Me.entry=null;ut;){var Fe=ut.callback;Je.pendingcb--,Fe(Ve),ut=ut.next}Je.corkedRequestsFree?Je.corkedRequestsFree.next=Me:Je.corkedRequestsFree=Me}Object.defineProperty(R.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Je){if(!this._writableState)return;this._writableState.destroyed=Je}}),R.prototype.destroy=T.destroy,R.prototype._undestroy=T.undestroy,R.prototype._destroy=function(Me,Je){this.end(),Je(Me)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(k,D,n){"use strict";function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}var p=k("safe-buffer").Buffer,x=k("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 u={data:d,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length},m.prototype.unshift=function(d){var u={data:d,next:this.head};this.length===0&&(this.tail=u),this.head=u,++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 u=this.head,o=""+u.data;u=u.next;)o+=d+u.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 u=p.allocUnsafe(d>>>0),o=this.head,i=0;o;)v(o.data,u,i),i+=o.data.length,o=o.next;return u},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(k,D,n){"use strict";var y=k("process-nextick-args");function p(m,f){var d=this,u=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return u||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(i){!f&&i?(y.nextTick(v,d,i),d._writableState&&(d._writableState.errorEmitted=!0)):f&&f(i)}),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(k,D,n){"use strict";D.exports=k("events").EventEmitter},{events:192}],222:[function(k,D,n){D.exports=k("./readable").PassThrough},{"./readable":223}],223:[function(k,D,n){n=D.exports=k("./lib/_stream_readable.js"),n.Stream=n,n.Readable=n,n.Writable=k("./lib/_stream_writable.js"),n.Duplex=k("./lib/_stream_duplex.js"),n.Transform=k("./lib/_stream_transform.js"),n.PassThrough=k("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(k,D,n){D.exports=k("./readable").Transform},{"./readable":223}],225:[function(k,D,n){D.exports=k("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(k,D,n){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=k("./runtime"),p)y.regeneratorRuntime=x;else try{delete y.regeneratorRuntime}catch(v){y.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(k,D,n){!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",u=m.toStringTag||"@@toStringTag",o=typeof D=="object",i=y.regeneratorRuntime;if(i){o&&(D.exports=i);return}i=y.regeneratorRuntime=o?D.exports:{};function t(X,F,j,K){var z=F&&F.prototype instanceof h?F:h,V=Object.create(z.prototype),Q=new M(K||[]);return V._invoke=w(X,j,Q),V}i.wrap=t;function s(X,F,j){try{return{type:"normal",arg:X.call(F,j)}}catch(K){return{type:"throw",arg:K}}}var e="suspendedStart",l="suspendedYield",r="executing",a="completed",c={};function h(){}function g(){}function A(){}var b={};b[f]=function(){return this};var S=Object.getPrototypeOf,E=S&&S(S(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[u]=g.displayName="GeneratorFunction";function _(X){["next","throw","return"].forEach(function(F){X[F]=function(j){return this._invoke(F,j)}})}i.isGeneratorFunction=function(X){var F=typeof X=="function"&&X.constructor;return F?F===g||(F.displayName||F.name)==="GeneratorFunction":!1},i.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,A):(X.__proto__=A,u in X||(X[u]="GeneratorFunction")),X.prototype=Object.create(C),X},i.awrap=function(X){return{__await:X}};function T(X){function F(z,V,Q,G){var te=s(X[z],X,V);if(te.type==="throw")G(te.arg);else{var q=te.arg,le=q.value;return le&&typeof le=="object"&&x.call(le,"__await")?Promise.resolve(le.__await).then(function(re){F("next",re,Q,G)},function(re){F("throw",re,Q,G)}):Promise.resolve(le).then(function(re){q.value=re,Q(q)},G)}}var j;function K(z,V){function Q(){return new Promise(function(G,te){F(z,V,G,te)})}return j=j?j.then(Q,Q):Q()}this._invoke=K}_(T.prototype),T.prototype[d]=function(){return this},i.AsyncIterator=T,i.async=function(X,F,j,K){var z=new T(t(X,F,j,K));return i.isGeneratorFunction(F)?z:z.next().then(function(V){return V.done?V.value:z.next()})};function w(X,F,j){var K=e;return function(V,Q){if(K===r)throw new Error("Generator is already running");if(K===a){if(V==="throw")throw Q;return P()}for(j.method=V,j.arg=Q;;){var G=j.delegate;if(G){var te=O(G,j);if(te){if(te===c)continue;return te}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(K===e)throw K=a,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);K=r;var q=s(X,F,j);if(q.type==="normal"){if(K=j.done?a:l,q.arg===c)continue;return{value:q.arg,done:j.done}}else q.type==="throw"&&(K=a,j.method="throw",j.arg=q.arg)}}}function O(X,F){var j=X.iterator[F.method];if(j===v){if(F.delegate=null,F.method==="throw"){if(X.iterator.return&&(F.method="return",F.arg=v,O(X,F),F.method==="throw"))return c;F.method="throw",F.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var K=s(j,X.iterator,F.arg);if(K.type==="throw")return F.method="throw",F.arg=K.arg,F.delegate=null,c;var z=K.arg;if(!z)return F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,c;if(z.done)F[X.resultName]=z.value,F.next=X.nextLoc,F.method!=="return"&&(F.method="next",F.arg=v);else return z;return F.delegate=null,c}_(C),C[u]="Generator",C[f]=function(){return this},C.toString=function(){return"[object Generator]"};function I(X){var F={tryLoc:X[0]};1 in X&&(F.catchLoc=X[1]),2 in X&&(F.finallyLoc=X[2],F.afterLoc=X[3]),this.tryEntries.push(F)}function R(X){var F=X.completion||{};F.type="normal",delete F.arg,X.completion=F}function M(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(I,this),this.reset(!0)}i.keys=function(X){var F=[];for(var j in X)F.push(j);return F.reverse(),function K(){for(;F.length;){var z=F.pop();if(z in X)return K.value=z,K.done=!1,K}return K.done=!0,K}};function B(X){if(X){var F=X[f];if(F)return F.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var j=-1,K=function z(){for(;++j<X.length;)if(x.call(X,j))return z.value=X[j],z.done=!1,z;return z.value=v,z.done=!0,z};return K.next=K}}return{next:P}}i.values=B;function P(){return{value:v,done:!0}}M.prototype={constructor:M,reset:function(F){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(R),!F)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 F=this.tryEntries[0],j=F.completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var j=this;function K(q,le){return Q.type="throw",Q.arg=F,j.next=q,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 G=x.call(V,"catchLoc"),te=x.call(V,"finallyLoc");if(G&&te){if(this.prev<V.catchLoc)return K(V.catchLoc,!0);if(this.prev<V.finallyLoc)return K(V.finallyLoc)}else if(G){if(this.prev<V.catchLoc)return K(V.catchLoc,!0)}else if(te){if(this.prev<V.finallyLoc)return K(V.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(F,j){for(var K=this.tryEntries.length-1;K>=0;--K){var z=this.tryEntries[K];if(z.tryLoc<=this.prev&&x.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var V=z;break}}V&&(F==="break"||F==="continue")&&V.tryLoc<=j&&j<=V.finallyLoc&&(V=null);var Q=V?V.completion:{};return Q.type=F,Q.arg=j,V?(this.method="next",this.next=V.finallyLoc,c):this.complete(Q)},complete:function(F,j){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&j&&(this.next=j),c},finish:function(F){for(var j=this.tryEntries.length-1;j>=0;--j){var K=this.tryEntries[j];if(K.finallyLoc===F)return this.complete(K.completion,K.afterLoc),R(K),c}},catch:function(F){for(var j=this.tryEntries.length-1;j>=0;--j){var K=this.tryEntries[j];if(K.tryLoc===F){var z=K.completion;if(z.type==="throw"){var V=z.arg;R(K)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(F,j,K){return this.delegate={iterator:B(F),resultName:j,nextLoc:K},this.method==="next"&&(this.arg=v),c}}}(function(){return this}()||Function("return this")())},{}],228:[function(k,D,n){var y=k("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,n),n.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 u=p(m);return f!==void 0?typeof d=="string"?u.fill(f,d):u.fill(f):u.fill(0),u},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(k,D,n){(function(y){"use strict";var p=k("babel-runtime/core-js/string/from-code-point"),x=l(p),v=k("babel-runtime/core-js/json/stringify"),m=l(v),f=k("babel-runtime/helpers/typeof"),d=l(f),u=k("babel-runtime/core-js/object/define-property"),o=l(u),i=k("babel-runtime/core-js/object/keys"),t=l(i),s=k("babel-runtime/core-js/object/create"),e=l(s);function l(r){return r&&r.__esModule?r:{default:r}}(function(r){r.parser=function(Y,$){return new c(Y,$)},r.SAXParser=c,r.SAXStream=C,r.createStream=E,r.MAX_BUFFER_LENGTH=64*1024;var a=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function c(Y,$){if(!(this instanceof c))return new c(Y,$);var de=this;g(de),de.q=de.c="",de.bufferCheckPosition=r.MAX_BUFFER_LENGTH,de.opt=$||{},de.opt.lowercase=de.opt.lowercase||de.opt.lowercasetags,de.looseCase=de.opt.lowercase?"toLowerCase":"toUpperCase",de.tags=[],de.closed=de.closedRoot=de.sawRoot=!1,de.tag=de.error=null,de.strict=!!Y,de.noscript=!!(Y||de.opt.noscript),de.state=V.BEGIN,de.strictEntities=de.opt.strictEntities,de.ENTITIES=de.strictEntities?(0,e.default)(r.XML_ENTITIES):(0,e.default)(r.ENTITIES),de.attribList=[],de.opt.xmlns&&(de.ns=(0,e.default)(I)),de.trackPosition=de.opt.position!==!1,de.trackPosition&&(de.position=de.line=de.column=0),G(de,"onready")}e.default||(Object.create=function(Y){function $(){}$.prototype=Y;var de=new $;return de}),t.default||(Object.keys=function(Y){var $=[];for(var de in Y)Y.hasOwnProperty(de)&&$.push(de);return $});function h(Y){for(var $=Math.max(r.MAX_BUFFER_LENGTH,10),de=0,be=0,Ce=a.length;be<Ce;be++){var Be=Y[a[be]].length;if(Be>$)switch(a[be]){case"textNode":q(Y);break;case"cdata":te(Y,"oncdata",Y.cdata),Y.cdata="";break;case"script":te(Y,"onscript",Y.script),Y.script="";break;default:re(Y,"Max buffer length exceeded: "+a[be])}de=Math.max(de,Be)}var fe=r.MAX_BUFFER_LENGTH-de;Y.bufferCheckPosition=fe+Y.position}function g(Y){for(var $=0,de=a.length;$<de;$++)Y[a[$]]=""}function A(Y){q(Y),Y.cdata!==""&&(te(Y,"oncdata",Y.cdata),Y.cdata=""),Y.script!==""&&(te(Y,"onscript",Y.script),Y.script="")}c.prototype={end:function(){we(this)},write:J,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){A(this)}};var b;try{b=k("stream").Stream}catch(Y){b=function(){}}var S=r.EVENTS.filter(function(Y){return Y!=="error"&&Y!=="end"});function E(Y,$){return new C(Y,$)}function C(Y,$){if(!(this instanceof C))return new C(Y,$);b.apply(this),this._parser=new c(Y,$),this.writable=!0,this.readable=!0;var de=this;this._parser.onend=function(){de.emit("end")},this._parser.onerror=function(be){de.emit("error",be),de._parser.error=null},this._decoder=null,S.forEach(function(be){(0,o.default)(de,"on"+be,{get:function(){return de._parser["on"+be]},set:function(Be){if(!Be)return de.removeAllListeners(be),de._parser["on"+be]=Be,Be;de.on(be,Be)},enumerable:!0,configurable:!1})})}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 $=k("string_decoder").StringDecoder;this._decoder=new $("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,$){var de=this;return!de._parser["on"+Y]&&S.indexOf(Y)!==-1&&(de._parser["on"+Y]=function(){var be=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);be.splice(0,0,Y),de.emit.apply(de,be)}),b.prototype.on.call(de,Y,$)};var _="[CDATA[",T="DOCTYPE",w="http://www.w3.org/XML/1998/namespace",O="http://www.w3.org/2000/xmlns/",I={xml:w,xmlns:O},R=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,M=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,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]/,P=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function X(Y){return Y===" "||Y===`
`||Y==="\r"||Y===" "}function F(Y){return Y==='"'||Y==="'"}function j(Y){return Y===">"||X(Y)}function K(Y,$){return Y.test($)}function z(Y,$){return!K(Y,$)}var V=0;r.STATE={BEGIN:V++,BEGIN_WHITESPACE:V++,TEXT:V++,TEXT_ENTITY:V++,OPEN_WAKA:V++,SGML_DECL:V++,SGML_DECL_QUOTED:V++,DOCTYPE:V++,DOCTYPE_QUOTED:V++,DOCTYPE_DTD:V++,DOCTYPE_DTD_QUOTED:V++,COMMENT_STARTING:V++,COMMENT:V++,COMMENT_ENDING:V++,COMMENT_ENDED:V++,CDATA:V++,CDATA_ENDING:V++,CDATA_ENDING_2:V++,PROC_INST:V++,PROC_INST_BODY:V++,PROC_INST_ENDING:V++,OPEN_TAG:V++,OPEN_TAG_SLASH:V++,ATTRIB:V++,ATTRIB_NAME:V++,ATTRIB_NAME_SAW_WHITE:V++,ATTRIB_VALUE:V++,ATTRIB_VALUE_QUOTED:V++,ATTRIB_VALUE_CLOSED:V++,ATTRIB_VALUE_UNQUOTED:V++,ATTRIB_VALUE_ENTITY_Q:V++,ATTRIB_VALUE_ENTITY_U:V++,CLOSE_TAG:V++,CLOSE_TAG_SAW_WHITE:V++,SCRIPT:V++,SCRIPT_ENDING:V++},r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,t.default)(r.ENTITIES).forEach(function(Y){var $=r.ENTITIES[Y],de=typeof $=="number"?String.fromCharCode($):$;r.ENTITIES[Y]=de});for(var Q in r.STATE)r.STATE[r.STATE[Q]]=Q;V=r.STATE;function G(Y,$,de){Y[$]&&Y[$](de)}function te(Y,$,de){Y.textNode&&q(Y),G(Y,$,de)}function q(Y){Y.textNode=le(Y.opt,Y.textNode),Y.textNode&&G(Y,"ontext",Y.textNode),Y.textNode=""}function le(Y,$){return Y.trim&&($=$.trim()),Y.normalize&&($=$.replace(/\s+/g," ")),$}function re(Y,$){return q(Y),Y.trackPosition&&($+=`
Line: `+Y.line+`
Column: `+Y.column+`
Char: `+Y.c),$=new Error($),Y.error=$,G(Y,"onerror",$),Y}function we(Y){return Y.sawRoot&&!Y.closedRoot&&Ie(Y,"Unclosed root tag"),Y.state!==V.BEGIN&&Y.state!==V.BEGIN_WHITESPACE&&Y.state!==V.TEXT&&re(Y,"Unexpected end"),q(Y),Y.c="",Y.closed=!0,G(Y,"onend"),c.call(Y,Y.strict,Y.opt),Y}function Ie(Y,$){if((typeof Y=="undefined"?"undefined":(0,d.default)(Y))!=="object"||!(Y instanceof c))throw new Error("bad call to strictFail");Y.strict&&re(Y,$)}function Me(Y){Y.strict||(Y.tagName=Y.tagName[Y.looseCase]());var $=Y.tags[Y.tags.length-1]||Y,de=Y.tag={name:Y.tagName,attributes:{}};Y.opt.xmlns&&(de.ns=$.ns),Y.attribList.length=0,te(Y,"onopentagstart",de)}function Je(Y,$){var de=Y.indexOf(":"),be=de<0?["",Y]:Y.split(":"),Ce=be[0],Be=be[1];return $&&Y==="xmlns"&&(Ce="xmlns",Be=""),{prefix:Ce,local:Be}}function Ve(Y){if(Y.strict||(Y.attribName=Y.attribName[Y.looseCase]()),Y.attribList.indexOf(Y.attribName)!==-1||Y.tag.attributes.hasOwnProperty(Y.attribName)){Y.attribName=Y.attribValue="";return}if(Y.opt.xmlns){var $=Je(Y.attribName,!0),de=$.prefix,be=$.local;if(de==="xmlns")if(be==="xml"&&Y.attribValue!==w)Ie(Y,"xml: prefix must be bound to "+w+`
Actual: `+Y.attribValue);else if(be==="xmlns"&&Y.attribValue!==O)Ie(Y,"xmlns: prefix must be bound to "+O+`
Actual: `+Y.attribValue);else{var Ce=Y.tag,Be=Y.tags[Y.tags.length-1]||Y;Ce.ns===Be.ns&&(Ce.ns=(0,e.default)(Be.ns)),Ce.ns[be]=Y.attribValue}Y.attribList.push([Y.attribName,Y.attribValue])}else Y.tag.attributes[Y.attribName]=Y.attribValue,te(Y,"onattribute",{name:Y.attribName,value:Y.attribValue});Y.attribName=Y.attribValue=""}function ut(Y,$){if(Y.opt.xmlns){var de=Y.tag,be=Je(Y.tagName);de.prefix=be.prefix,de.local=be.local,de.uri=de.ns[be.prefix]||"",de.prefix&&!de.uri&&(Ie(Y,"Unbound namespace prefix: "+(0,m.default)(Y.tagName)),de.uri=be.prefix);var Ce=Y.tags[Y.tags.length-1]||Y;de.ns&&Ce.ns!==de.ns&&(0,t.default)(de.ns).forEach(function(Xt){te(Y,"onopennamespace",{prefix:Xt,uri:de.ns[Xt]})});for(var Be=0,fe=Y.attribList.length;Be<fe;Be++){var Se=Y.attribList[Be],ke=Se[0],rt=Se[1],xt=Je(ke,!0),ht=xt.prefix,He=xt.local,ir=ht===""?"":de.ns[ht]||"",ct={name:ke,value:rt,prefix:ht,local:He,uri:ir};ht&&ht!=="xmlns"&&!ir&&(Ie(Y,"Unbound namespace prefix: "+(0,m.default)(ht)),ct.uri=ht),Y.tag.attributes[ke]=ct,te(Y,"onattribute",ct)}Y.attribList.length=0}Y.tag.isSelfClosing=!!$,Y.sawRoot=!0,Y.tags.push(Y.tag),te(Y,"onopentag",Y.tag),$||(!Y.noscript&&Y.tagName.toLowerCase()==="script"?Y.state=V.SCRIPT:Y.state=V.TEXT,Y.tag=null,Y.tagName=""),Y.attribName=Y.attribValue="",Y.attribList.length=0}function Fe(Y){if(!Y.tagName){Ie(Y,"Weird empty close tag."),Y.textNode+="</>",Y.state=V.TEXT;return}if(Y.script){if(Y.tagName!=="script"){Y.script+="</"+Y.tagName+">",Y.tagName="",Y.state=V.SCRIPT;return}te(Y,"onscript",Y.script),Y.script=""}var $=Y.tags.length,de=Y.tagName;Y.strict||(de=de[Y.looseCase]());for(var be=de;$--;){var Ce=Y.tags[$];if(Ce.name!==be)Ie(Y,"Unexpected close tag");else break}if($<0){Ie(Y,"Unmatched closing tag: "+Y.tagName),Y.textNode+="</"+Y.tagName+">",Y.state=V.TEXT;return}Y.tagName=de;for(var Be=Y.tags.length;Be-- >$;){var fe=Y.tag=Y.tags.pop();Y.tagName=Y.tag.name,te(Y,"onclosetag",Y.tagName);var Se={};for(var ke in fe.ns)Se[ke]=fe.ns[ke];var rt=Y.tags[Y.tags.length-1]||Y;Y.opt.xmlns&&fe.ns!==rt.ns&&(0,t.default)(fe.ns).forEach(function(xt){var ht=fe.ns[xt];te(Y,"onclosenamespace",{prefix:xt,uri:ht})})}$===0&&(Y.closedRoot=!0),Y.tagName=Y.attribValue=Y.attribName="",Y.attribList.length=0,Y.state=V.TEXT}function ae(Y){var $=Y.entity,de=$.toLowerCase(),be,Ce="";return Y.ENTITIES[$]?Y.ENTITIES[$]:Y.ENTITIES[de]?Y.ENTITIES[de]:($=de,$.charAt(0)==="#"&&($.charAt(1)==="x"?($=$.slice(2),be=parseInt($,16),Ce=be.toString(16)):($=$.slice(1),be=parseInt($,10),Ce=be.toString(10))),$=$.replace(/^0+/,""),isNaN(be)||Ce.toLowerCase()!==$?(Ie(Y,"Invalid character entity"),"&"+Y.entity+";"):(0,x.default)(be))}function at(Y,$){$==="<"?(Y.state=V.OPEN_WAKA,Y.startTagPosition=Y.position):X($)||(Ie(Y,"Non-whitespace before first tag."),Y.textNode=$,Y.state=V.TEXT)}function he(Y,$){var de="";return $<Y.length&&(de=Y.charAt($)),de}function J(Y){var $=this;if(this.error)throw this.error;if($.closed)return re($,"Cannot write after close. Assign an onready handler.");if(Y===null)return we($);(typeof Y=="undefined"?"undefined":(0,d.default)(Y))==="object"&&(Y=Y.toString());for(var de=0,be="";!(be=he(Y,de++),$.c=be,!be);){$.trackPosition&&($.position++,be===`
`?($.line++,$.column=0):$.column++);switch($.state){case V.BEGIN:if($.state=V.BEGIN_WHITESPACE,be==="\uFEFF")continue;at($,be);continue;case V.BEGIN_WHITESPACE:at($,be);continue;case V.TEXT:if($.sawRoot&&!$.closedRoot){for(var Ce=de-1;be&&be!=="<"&&be!=="&";)be=he(Y,de++),be&&$.trackPosition&&($.position++,be===`
`?($.line++,$.column=0):$.column++);$.textNode+=Y.substring(Ce,de-1)}be==="<"&&!($.sawRoot&&$.closedRoot&&!$.strict)?($.state=V.OPEN_WAKA,$.startTagPosition=$.position):(!X(be)&&(!$.sawRoot||$.closedRoot)&&Ie($,"Text data outside of root node."),be==="&"?$.state=V.TEXT_ENTITY:$.textNode+=be);continue;case V.SCRIPT:be==="<"?$.state=V.SCRIPT_ENDING:$.script+=be;continue;case V.SCRIPT_ENDING:be==="/"?$.state=V.CLOSE_TAG:($.script+="<"+be,$.state=V.SCRIPT);continue;case V.OPEN_WAKA:if(be==="!")$.state=V.SGML_DECL,$.sgmlDecl="";else if(!X(be))if(K(R,be))$.state=V.OPEN_TAG,$.tagName=be;else if(be==="/")$.state=V.CLOSE_TAG,$.tagName="";else if(be==="?")$.state=V.PROC_INST,$.procInstName=$.procInstBody="";else{if(Ie($,"Unencoded <"),$.startTagPosition+1<$.position){var Be=$.position-$.startTagPosition;be=new Array(Be).join(" ")+be}$.textNode+="<"+be,$.state=V.TEXT}continue;case V.SGML_DECL:($.sgmlDecl+be).toUpperCase()===_?(te($,"onopencdata"),$.state=V.CDATA,$.sgmlDecl="",$.cdata=""):$.sgmlDecl+be==="--"?($.state=V.COMMENT,$.comment="",$.sgmlDecl=""):($.sgmlDecl+be).toUpperCase()===T?($.state=V.DOCTYPE,($.doctype||$.sawRoot)&&Ie($,"Inappropriately located doctype declaration"),$.doctype="",$.sgmlDecl=""):be===">"?(te($,"onsgmldeclaration",$.sgmlDecl),$.sgmlDecl="",$.state=V.TEXT):(F(be)&&($.state=V.SGML_DECL_QUOTED),$.sgmlDecl+=be);continue;case V.SGML_DECL_QUOTED:be===$.q&&($.state=V.SGML_DECL,$.q=""),$.sgmlDecl+=be;continue;case V.DOCTYPE:be===">"?($.state=V.TEXT,te($,"ondoctype",$.doctype),$.doctype=!0):($.doctype+=be,be==="["?$.state=V.DOCTYPE_DTD:F(be)&&($.state=V.DOCTYPE_QUOTED,$.q=be));continue;case V.DOCTYPE_QUOTED:$.doctype+=be,be===$.q&&($.q="",$.state=V.DOCTYPE);continue;case V.DOCTYPE_DTD:$.doctype+=be,be==="]"?$.state=V.DOCTYPE:F(be)&&($.state=V.DOCTYPE_DTD_QUOTED,$.q=be);continue;case V.DOCTYPE_DTD_QUOTED:$.doctype+=be,be===$.q&&($.state=V.DOCTYPE_DTD,$.q="");continue;case V.COMMENT:be==="-"?$.state=V.COMMENT_ENDING:$.comment+=be;continue;case V.COMMENT_ENDING:be==="-"?($.state=V.COMMENT_ENDED,$.comment=le($.opt,$.comment),$.comment&&te($,"oncomment",$.comment),$.comment=""):($.comment+="-"+be,$.state=V.COMMENT);continue;case V.COMMENT_ENDED:be!==">"?(Ie($,"Malformed comment"),$.comment+="--"+be,$.state=V.COMMENT):$.state=V.TEXT;continue;case V.CDATA:be==="]"?$.state=V.CDATA_ENDING:$.cdata+=be;continue;case V.CDATA_ENDING:be==="]"?$.state=V.CDATA_ENDING_2:($.cdata+="]"+be,$.state=V.CDATA);continue;case V.CDATA_ENDING_2:be===">"?($.cdata&&te($,"oncdata",$.cdata),te($,"onclosecdata"),$.cdata="",$.state=V.TEXT):be==="]"?$.cdata+="]":($.cdata+="]]"+be,$.state=V.CDATA);continue;case V.PROC_INST:be==="?"?$.state=V.PROC_INST_ENDING:X(be)?$.state=V.PROC_INST_BODY:$.procInstName+=be;continue;case V.PROC_INST_BODY:if(!$.procInstBody&&X(be))continue;be==="?"?$.state=V.PROC_INST_ENDING:$.procInstBody+=be;continue;case V.PROC_INST_ENDING:be===">"?(te($,"onprocessinginstruction",{name:$.procInstName,body:$.procInstBody}),$.procInstName=$.procInstBody="",$.state=V.TEXT):($.procInstBody+="?"+be,$.state=V.PROC_INST_BODY);continue;case V.OPEN_TAG:K(M,be)?$.tagName+=be:(Me($),be===">"?ut($):be==="/"?$.state=V.OPEN_TAG_SLASH:(X(be)||Ie($,"Invalid character in tag name"),$.state=V.ATTRIB));continue;case V.OPEN_TAG_SLASH:be===">"?(ut($,!0),Fe($)):(Ie($,"Forward-slash in opening tag not followed by >"),$.state=V.ATTRIB);continue;case V.ATTRIB:if(X(be))continue;be===">"?ut($):be==="/"?$.state=V.OPEN_TAG_SLASH:K(R,be)?($.attribName=be,$.attribValue="",$.state=V.ATTRIB_NAME):Ie($,"Invalid attribute name");continue;case V.ATTRIB_NAME:be==="="?$.state=V.ATTRIB_VALUE:be===">"?(Ie($,"Attribute without value"),$.attribValue=$.attribName,Ve($),ut($)):X(be)?$.state=V.ATTRIB_NAME_SAW_WHITE:K(M,be)?$.attribName+=be:Ie($,"Invalid attribute name");continue;case V.ATTRIB_NAME_SAW_WHITE:if(be==="=")$.state=V.ATTRIB_VALUE;else{if(X(be))continue;Ie($,"Attribute without value"),$.tag.attributes[$.attribName]="",$.attribValue="",te($,"onattribute",{name:$.attribName,value:""}),$.attribName="",be===">"?ut($):K(R,be)?($.attribName=be,$.state=V.ATTRIB_NAME):(Ie($,"Invalid attribute name"),$.state=V.ATTRIB)}continue;case V.ATTRIB_VALUE:if(X(be))continue;F(be)?($.q=be,$.state=V.ATTRIB_VALUE_QUOTED):(Ie($,"Unquoted attribute value"),$.state=V.ATTRIB_VALUE_UNQUOTED,$.attribValue=be);continue;case V.ATTRIB_VALUE_QUOTED:if(be!==$.q){be==="&"?$.state=V.ATTRIB_VALUE_ENTITY_Q:$.attribValue+=be;continue}Ve($),$.q="",$.state=V.ATTRIB_VALUE_CLOSED;continue;case V.ATTRIB_VALUE_CLOSED:X(be)?$.state=V.ATTRIB:be===">"?ut($):be==="/"?$.state=V.OPEN_TAG_SLASH:K(R,be)?(Ie($,"No whitespace between attributes"),$.attribName=be,$.attribValue="",$.state=V.ATTRIB_NAME):Ie($,"Invalid attribute name");continue;case V.ATTRIB_VALUE_UNQUOTED:if(!j(be)){be==="&"?$.state=V.ATTRIB_VALUE_ENTITY_U:$.attribValue+=be;continue}Ve($),be===">"?ut($):$.state=V.ATTRIB;continue;case V.CLOSE_TAG:if($.tagName)be===">"?Fe($):K(M,be)?$.tagName+=be:$.script?($.script+="</"+$.tagName,$.tagName="",$.state=V.SCRIPT):(X(be)||Ie($,"Invalid tagname in closing tag"),$.state=V.CLOSE_TAG_SAW_WHITE);else{if(X(be))continue;z(R,be)?$.script?($.script+="</"+be,$.state=V.SCRIPT):Ie($,"Invalid tagname in closing tag."):$.tagName=be}continue;case V.CLOSE_TAG_SAW_WHITE:if(X(be))continue;be===">"?Fe($):Ie($,"Invalid characters in closing tag");continue;case V.TEXT_ENTITY:case V.ATTRIB_VALUE_ENTITY_Q:case V.ATTRIB_VALUE_ENTITY_U:var fe,Se;switch($.state){case V.TEXT_ENTITY:fe=V.TEXT,Se="textNode";break;case V.ATTRIB_VALUE_ENTITY_Q:fe=V.ATTRIB_VALUE_QUOTED,Se="attribValue";break;case V.ATTRIB_VALUE_ENTITY_U:fe=V.ATTRIB_VALUE_UNQUOTED,Se="attribValue";break}be===";"?($[Se]+=ae($),$.entity="",$.state=fe):K($.entity.length?P:B,be)?$.entity+=be:(Ie($,"Invalid character in entity name"),$[Se]+="&"+$.entity+be,$.entity="",$.state=fe);continue;default:throw new Error($,"Unknown state: "+$.state)}}return $.position>=$.bufferCheckPosition&&h($),$}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */x.default||function(){var Y=String.fromCharCode,$=Math.floor,de=function(){var Ce=16384,Be=[],fe,Se,ke=-1,rt=arguments.length;if(!rt)return"";for(var xt="";++ke<rt;){var ht=Number(arguments[ke]);if(!isFinite(ht)||ht<0||ht>1114111||$(ht)!==ht)throw RangeError("Invalid code point: "+ht);ht<=65535?Be.push(ht):(ht-=65536,fe=(ht>>10)+55296,Se=ht%1024+56320,Be.push(fe,Se)),(ke+1===rt||Be.length>Ce)&&(xt+=Y.apply(null,Be),Be.length=0)}return xt};o.default?Object.defineProperty(String,"fromCodePoint",{value:de,configurable:!0,writable:!0}):String.fromCodePoint=de}()})(typeof n=="undefined"?(void 0).sax={}:n)}).call(this,k("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(k,D,n){D.exports=x;var y=k("events").EventEmitter,p=k("inherits");p(x,y),x.Readable=k("readable-stream/readable.js"),x.Writable=k("readable-stream/writable.js"),x.Duplex=k("readable-stream/duplex.js"),x.Transform=k("readable-stream/transform.js"),x.PassThrough=k("readable-stream/passthrough.js"),x.Stream=x;function x(){y.call(this)}x.prototype.pipe=function(v,m){var f=this;function d(l){v.writable&&(v.write(l)===!1&&f.pause&&f.pause())}f.on("data",d);function u(){f.readable&&f.resume&&f.resume()}v.on("drain",u),!v._isStdio&&(!m||m.end!==!1)&&(f.on("end",i),f.on("close",t));var o=!1;function i(){if(o)return;o=!0,v.end()}function t(){if(o)return;o=!0,typeof v.destroy=="function"&&v.destroy()}function s(l){if(e(),y.listenerCount(this,"error")===0)throw l}f.on("error",s),v.on("error",s);function e(){f.removeListener("data",d),v.removeListener("drain",u),f.removeListener("end",i),f.removeListener("close",t),f.removeListener("error",s),v.removeListener("error",s),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(k,D,n){(function(y){var p=k("./lib/request"),x=k("./lib/response"),v=k("xtend"),m=k("builtin-status-codes"),f=k("url"),d=n;d.request=function(u,o){typeof u=="string"?u=f.parse(u):u=v(u);var i=y.location.protocol.search(/^https?:$/)===-1?"http:":"",t=u.protocol||i,s=u.hostname||u.host,e=u.port,l=u.path||"/";s&&s.indexOf(":")!==-1&&(s="["+s+"]"),u.url=(s?t+"//"+s:"")+(e?":"+e:"")+l,u.method=(u.method||"GET").toUpperCase(),u.headers=u.headers||{};var r=new p(u);return o&&r.on("response",o),r},d.get=function(o,i){var t=d.request(o,i);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(k,D,n){(function(y){"use strict";n.fetch=d(y.fetch)&&d(y.ReadableStream),n.writableStream=d(y.WritableStream),n.abortController=d(y.AbortController),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(u){}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(u){p=null}}else p=null;return p}function v(u){var o=x();if(!o)return!1;try{return o.responseType=u,o.responseType===u}catch(i){}return!1}var m=typeof y.ArrayBuffer!="undefined",f=m&&d(y.ArrayBuffer.prototype.slice);n.arraybuffer=n.fetch||m&&v("arraybuffer"),n.msstream=!n.fetch&&f&&v("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&m&&v("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||(x()?d(x().overrideMimeType):!1),n.vbArray=d(y.VBArray);function d(u){return typeof u=="function"}p=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(k,D,n){(function(y,p,x){"use strict";var v=k("babel-runtime/core-js/object/keys"),m=f(v);function f(h){return h&&h.__esModule?h:{default:h}}var d=k("./capability"),u=k("inherits"),o=k("./response"),i=k("readable-stream"),t=k("to-arraybuffer"),s=o.IncomingMessage,e=o.readyStates;function l(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;i.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(S){g.setHeader(S,h.headers[S])});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=l(A,b),g._fetchTimer=null,g.on("finish",function(){g._onFinish()})};u(r,i.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(w){return t(w)}),{type:(A["content-type"]||{}).value||""}):b=x.concat(h._body).toString());var S=[];if((0,m.default)(A).forEach(function(w){var O=A[w].name,I=A[w].value;Array.isArray(I)?I.forEach(function(R){S.push([O,R])}):S.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:S,body:b||void 0,mode:"cors",credentials:g.withCredentials?"include":"same-origin",signal:E}).then(function(w){h._fetchResponse=w,h._connect()},function(w){p.clearTimeout(h._fetchTimer),h._destroyed||h.emit("error",w)})}else{var T=h._xhr=new p.XMLHttpRequest;try{T.open(h._opts.method,h._opts.url,!0)}catch(w){y.nextTick(function(){h.emit("error",w)});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")}),S.forEach(function(w){T.setRequestHeader(w[0],w[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(w){y.nextTick(function(){h.emit("error",w)});return}}};function a(h){try{var g=h.status;return g!==null&&g!==0}catch(A){return!1}}r.prototype._onXHRProgress=function(){var h=this;if(!a(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 s(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),i.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,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(k,D,n){(function(y,p,x){"use strict";var v=k("babel-runtime/core-js/promise"),m=f(v);function f(s){return s&&s.__esModule?s:{default:s}}var d=k("./capability"),u=k("inherits"),o=k("readable-stream"),i=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=n.IncomingMessage=function(s,e,l,r){var a=this;if(o.Readable.call(a),a._mode=l,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",function(){y.nextTick(function(){a.emit("close")})}),l==="fetch"){var c=function E(){g.read().then(function(C){if(a._destroyed)return;if(C.done){p.clearTimeout(r),a.push(null);return}a.push(new x(C.value)),E()}).catch(function(C){p.clearTimeout(r),a._destroyed||a.emit("error",C)})};if(a._fetchResponse=e,a.url=e.url,a.statusCode=e.status,a.statusMessage=e.statusText,e.headers.forEach(function(E,C){a.headers[C.toLowerCase()]=E,a.rawHeaders.push(C,E)}),d.writableStream){var h=new WritableStream({write:function(C){return new m.default(function(_,T){a._destroyed?T():a.push(new x(C))?_():a._resumeFetch=_})},close:function(){p.clearTimeout(r),a._destroyed||a.push(null)},abort:function(C){a._destroyed||a.emit("error",C)}});try{e.body.pipeTo(h).catch(function(E){p.clearTimeout(r),a._destroyed||a.emit("error",E)});return}catch(E){}}var g=e.body.getReader();c()}else{a._xhr=s,a._pos=0,a.url=s.responseURL,a.statusCode=s.status,a.statusMessage=s.statusText;var A=s.getAllResponseHeaders().split(/\r?\n/);if(A.forEach(function(E){var C=E.match(/^([^:]+):\s*(.*)/);if(C){var _=C[1].toLowerCase();_==="set-cookie"?(a.headers[_]===void 0&&(a.headers[_]=[]),a.headers[_].push(C[2])):a.headers[_]!==void 0?a.headers[_]+=", "+C[2]:a.headers[_]=C[2],a.rawHeaders.push(C[1],C[2])}}),a._charset="x-user-defined",!d.overrideMimeType){var b=a.rawHeaders["mime-type"];if(b){var S=b.match(/;\s*charset=([^;])(;|$)/);S&&(a._charset=S[1].toLowerCase())}a._charset||(a._charset="utf-8")}}};u(t,o.Readable),t.prototype._read=function(){var s=this,e=s._resumeFetch;e&&(s._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var s=this,e=s._xhr,l=null;switch(s._mode){case"text:vbarray":if(e.readyState!==i.DONE)break;try{l=new p.VBArray(e.responseBody).toArray()}catch(g){}if(l!==null){s.push(new x(l));break}case"text":try{l=e.responseText}catch(g){s._mode="text:vbarray";break}if(l.length>s._pos){var r=l.substr(s._pos);if(s._charset==="x-user-defined"){for(var a=new x(r.length),c=0;c<r.length;c++)a[c]=r.charCodeAt(c)&255;s.push(a)}else s.push(r,s._charset);s._pos=l.length}break;case"arraybuffer":if(e.readyState!==i.DONE||!e.response)break;l=e.response,s.push(new x(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=e.response,e.readyState!==i.LOADING||!l)break;s.push(new x(new Uint8Array(l)));break;case"ms-stream":if(l=e.response,e.readyState!==i.LOADING)break;var h=new p.MSStreamReader;h.onprogress=function(){h.result.byteLength>s._pos&&(s.push(new x(new Uint8Array(h.result.slice(s._pos)))),s._pos=h.result.byteLength)},h.onload=function(){s.push(null)},h.readAsArrayBuffer(l);break}s._xhr.readyState===i.DONE&&s._mode!=="ms-stream"&&s.push(null)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(k,D,n){"use strict";var y=k("safe-buffer").Buffer,p=y.isEncoding||function(h){h=""+h;switch(h&&h.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function 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}n.StringDecoder=m;function m(h){this.encoding=v(h);var g;switch(this.encoding){case"utf16le":this.text=s,this.end=e,g=4;break;case"utf8":this.fillLast=o,g=4;break;case"base64":this.text=l,this.end=r,g=3;break;default:this.write=a,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=i,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 S=f(g[b]);return S>=0?(S>0&&(h.lastNeed=S-1),S):--b<A||S===-2?0:(S=f(g[b]),S>=0?(S>0&&(h.lastNeed=S-2),S):--b<A||S===-2?0:(S=f(g[b]),S>=0?(S>0&&(S===2?S=0:h.lastNeed=S-3),S):0))}function u(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=u(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 i(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 s(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 l(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 a(h){return h.toString(this.encoding)}function c(h){return h&&h.length?this.write(h):""}},{"safe-buffer":228}],236:[function(k,D,n){(function(y,p){var x=k("process/browser.js").nextTick,v=Function.prototype.apply,m=Array.prototype.slice,f={},d=0;n.setTimeout=function(){return new u(v.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new u(v.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(o){o.close()};function u(o,i){this._id=o,this._clearFn=i}u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(o,i){clearTimeout(o._idleTimeoutId),o._idleTimeout=i},n.unenroll=function(o){clearTimeout(o._idleTimeoutId),o._idleTimeout=-1},n._unrefActive=n.active=function(o){clearTimeout(o._idleTimeoutId);var i=o._idleTimeout;i>=0&&(o._idleTimeoutId=setTimeout(function(){o._onTimeout&&o._onTimeout()},i))},n.setImmediate=typeof y=="function"?y:function(o){var i=d++,t=arguments.length<2?!1:m.call(arguments,1);return f[i]=!0,x(function(){f[i]&&(t?o.apply(null,t):o.call(null),n.clearImmediate(i))}),i},n.clearImmediate=typeof p=="function"?p:function(o){delete f[o]}}).call(this,k("timers").setImmediate,k("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(k,D,n){var y=k("buffer").Buffer;D.exports=function(p){if(p instanceof Uint8Array){if(p.byteOffset===0&&p.byteLength===p.buffer.byteLength)return p.buffer;if(typeof p.buffer.slice=="function")return p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength)}if(y.isBuffer(p)){for(var 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(k,D,n){"use strict";var y=k("punycode"),p=k("./util");n.parse=g,n.resolve=b,n.resolveObject=S,n.format=A,n.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",`
`," "],u=["{","}","|","\\","^","`"].concat(d),o=["'"].concat(u),i=["%","/","?",";","#"].concat(o),t=["/","?","#"],s=255,e=/^[+a-z0-9A-Z_-]{0,63}$/,l=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,r={javascript:!0,"javascript:":!0},a={javascript:!0,"javascript:":!0},c={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},h=k("querystring");function g(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("?"),w=T!==-1&&T<E.indexOf("#")?"?":"#",O=E.split(w),I=/\\/g;O[0]=O[0].replace(I,"/"),E=O.join(w);var R=E;if(R=R.trim(),!_&&E.split("#").length===1){var M=f.exec(R);if(M)return this.path=R,this.href=R,this.pathname=M[1],M[2]?(this.search=M[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(R);if(B){B=B[0];var P=B.toLowerCase();this.protocol=P,R=R.substr(B.length)}if(_||B||R.match(/^\/\/[^@\/]+@[^@\/]+/)){var X=R.substr(0,2)==="//";X&&!(B&&a[B])&&(R=R.substr(2),this.slashes=!0)}if(!a[B]&&(X||B&&!c[B])){for(var F=-1,j=0;j<t.length;j++){var K=R.indexOf(t[j]);K!==-1&&(F===-1||K<F)&&(F=K)}var z,V;F===-1?V=R.lastIndexOf("@"):V=R.lastIndexOf("@",F),V!==-1&&(z=R.slice(0,V),R=R.slice(V+1),this.auth=decodeURIComponent(z)),F=-1;for(var j=0;j<i.length;j++){var K=R.indexOf(i[j]);K!==-1&&(F===-1||K<F)&&(F=K)}F===-1&&(F=R.length),this.host=R.slice(0,F),R=R.slice(F),this.parseHost(),this.hostname=this.hostname||"";var Q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Q)for(var G=this.hostname.split(/\./),j=0,te=G.length;j<te;j++){var q=G[j];if(!q)continue;if(!q.match(e)){for(var le="",re=0,we=q.length;re<we;re++)q.charCodeAt(re)>127?le+="x":le+=q[re];if(!le.match(e)){var Ie=G.slice(0,j),Me=G.slice(j+1),Je=q.match(l);Je&&(Ie.push(Je[1]),Me.unshift(Je[2])),Me.length&&(R="/"+Me.join(".")+R),this.hostname=Ie.join(".");break}}}this.hostname.length>s?this.hostname="":this.hostname=this.hostname.toLowerCase(),Q||(this.hostname=y.toASCII(this.hostname));var Ve=this.port?":"+this.port:"",ut=this.hostname||"";this.host=ut+Ve,this.href+=this.host,Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),R[0]!=="/"&&(R="/"+R))}if(!r[P])for(var j=0,te=o.length;j<te;j++){var Fe=o[j];if(R.indexOf(Fe)===-1)continue;var ae=encodeURIComponent(Fe);ae===Fe&&(ae=escape(Fe)),R=R.split(Fe).join(ae)}var at=R.indexOf("#");at!==-1&&(this.hash=R.substr(at),R=R.slice(0,at));var he=R.indexOf("?");if(he!==-1?(this.search=R.substr(he),this.query=R.substr(he+1),C&&(this.query=h.parse(this.query)),R=R.slice(0,he)):C&&(this.search="",this.query={}),R&&(this.pathname=R),c[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ve=this.pathname||"",J=this.search||"";this.path=Ve+J}return this.href=this.format(),this};function A(E){return 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||"",w=!1,O="";this.host?w=E+this.host:this.hostname&&(w=E+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(w+=":"+this.port)),this.query&&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])&&w!==!1?(w="//"+(w||""),_&&_.charAt(0)!=="/"&&(_="/"+_)):w||(w=""),T&&T.charAt(0)!=="#"&&(T="#"+T),I&&I.charAt(0)!=="?"&&(I="?"+I),_=_.replace(/[?#]/g,function(R){return encodeURIComponent(R)}),I=I.replace("#","%23"),C+w+_+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 S(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),w=0;w<T.length;w++){var O=T[w];_[O]=this[O]}if(_.hash=E.hash,E.href==="")return _.href=_.format(),_;if(E.slashes&&!E.protocol){for(var I=Object.keys(E),R=0;R<I.length;R++){var M=I[R];M!=="protocol"&&(_[M]=E[M])}return c[_.protocol]&&_.hostname&&!_.pathname&&(_.path=_.pathname="/"),_.href=_.format(),_}if(E.protocol&&E.protocol!==_.protocol){if(!c[E.protocol]){for(var B=Object.keys(E),P=0;P<B.length;P++){var X=B[P];_[X]=E[X]}return _.href=_.format(),_}if(_.protocol=E.protocol,!E.host&&!a[E.protocol]){for(var te=(E.pathname||"").split("/");te.length&&!(E.host=te.shift()););E.host||(E.host=""),E.hostname||(E.hostname=""),te[0]!==""&&te.unshift(""),te.length<2&&te.unshift(""),_.pathname=te.join("/")}else _.pathname=E.pathname;if(_.search=E.search,_.query=E.query,_.host=E.host||"",_.auth=E.auth,_.hostname=E.hostname||E.host,_.port=E.port,_.pathname||_.search){var F=_.pathname||"",j=_.search||"";_.path=F+j}return _.slashes=_.slashes||E.slashes,_.href=_.format(),_}var K=_.pathname&&_.pathname.charAt(0)==="/",z=E.host||E.pathname&&E.pathname.charAt(0)==="/",V=z||K||_.host&&E.pathname,Q=V,G=_.pathname&&_.pathname.split("/")||[],te=E.pathname&&E.pathname.split("/")||[],q=_.protocol&&!c[_.protocol];if(q&&(_.hostname="",_.port=null,_.host&&(G[0]===""?G[0]=_.host:G.unshift(_.host)),_.host="",E.protocol&&(E.hostname=null,E.port=null,E.host&&(te[0]===""?te[0]=E.host:te.unshift(E.host)),E.host=null),V=V&&(te[0]===""||G[0]==="")),z)_.host=E.host||E.host===""?E.host:_.host,_.hostname=E.hostname||E.hostname===""?E.hostname:_.hostname,_.search=E.search,_.query=E.query,G=te;else if(te.length)G||(G=[]),G.pop(),G=G.concat(te),_.search=E.search,_.query=E.query;else if(!p.isNullOrUndefined(E.search)){if(q){_.hostname=_.host=G.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(!G.length)return _.pathname=null,_.search?_.path="/"+_.search:_.path=null,_.href=_.format(),_;for(var re=G.slice(-1)[0],we=(_.host||E.host||G.length>1)&&(re==="."||re==="..")||re==="",Ie=0,Me=G.length;Me>=0;Me--)re=G[Me],re==="."?G.splice(Me,1):re===".."?(G.splice(Me,1),Ie++):Ie&&(G.splice(Me,1),Ie--);if(!V&&!Q)for(;Ie--;Ie)G.unshift("..");V&&G[0]!==""&&(!G[0]||G[0].charAt(0)!=="/")&&G.unshift(""),we&&G.join("/").substr(-1)!=="/"&&G.push("");var Je=G[0]===""||G[0]&&G[0].charAt(0)==="/";if(q){_.hostname=_.host=Je?"":G.length?G.shift():"";var le=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;le&&(_.auth=le.shift(),_.host=_.hostname=le.shift())}return V=V||_.host&&G.length,V&&!Je&&G.unshift(""),G.length?_.pathname=G.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(k,D,n){"use strict";D.exports={isString:function(p){return typeof p=="string"},isObject:function(p){return typeof p=="object"&&p!==null},isNull:function(p){return p===null},isNullOrUndefined:function(p){return p==null}}},{}],240:[function(k,D,n){(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(k,D,n){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(k,D,n){D.exports=function(p){return p&&typeof p=="object"&&typeof p.copy=="function"&&typeof p.fill=="function"&&typeof p.readUInt8=="function"}},{}],243:[function(k,D,n){(function(y,p){var x=/%[sdj%]/g;n.format=function(F){if(!b(F)){for(var j=[],K=0;K<arguments.length;K++)j.push(f(arguments[K]));return j.join(" ")}for(var K=1,z=arguments,V=z.length,Q=String(F).replace(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(q){return"[Circular]"}default:return te}}),G=z[K];K<V;G=z[++K])h(G)||!_(G)?Q+=" "+G:Q+=" "+f(G);return Q},n.deprecate=function(F,j){if(E(p.process))return function(){return n.deprecate(F,j).apply(this,arguments)};if(y.noDeprecation===!0)return F;var K=!1;function z(){if(!K){if(y.throwDeprecation)throw new Error(j);y.traceDeprecation?console.trace(j):console.error(j),K=!0}return F.apply(this,arguments)}return z};var v={},m;n.debuglog=function(F){if(E(m)&&(m=y.env.NODE_DEBUG||""),F=F.toUpperCase(),!v[F])if(new RegExp("\\b"+F+"\\b","i").test(m)){var j=y.pid;v[F]=function(){var K=n.format.apply(n,arguments);console.error("%s %d: %s",F,j,K)}}else v[F]=function(){};return v[F]};function f(F,j){var K={seen:[],stylize:u};return arguments.length>=3&&(K.depth=arguments[2]),arguments.length>=4&&(K.colors=arguments[3]),c(j)?K.showHidden=j:j&&n._extend(K,j),E(K.showHidden)&&(K.showHidden=!1),E(K.depth)&&(K.depth=2),E(K.colors)&&(K.colors=!1),E(K.customInspect)&&(K.customInspect=!0),K.colors&&(K.stylize=d),i(K,F,K.depth)}n.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function d(F,j){var K=f.styles[j];return K?"["+f.colors[K][0]+"m"+F+"["+f.colors[K][1]+"m":F}function u(F,j){return F}function o(F){var j={};return F.forEach(function(K,z){j[K]=!0}),j}function i(F,j,K){if(F.customInspect&&j&&O(j.inspect)&&j.inspect!==n.inspect&&!(j.constructor&&j.constructor.prototype===j)){var z=j.inspect(K,F);return b(z)||(z=i(F,z,K)),z}var V=t(F,j);if(V)return V;var Q=Object.keys(j),G=o(Q);if(F.showHidden&&(Q=Object.getOwnPropertyNames(j)),w(j)&&(Q.indexOf("message")>=0||Q.indexOf("description")>=0))return s(j);if(Q.length===0){if(O(j)){var te=j.name?": "+j.name:"";return F.stylize("[Function"+te+"]","special")}if(C(j))return F.stylize(RegExp.prototype.toString.call(j),"regexp");if(T(j))return F.stylize(Date.prototype.toString.call(j),"date");if(w(j))return s(j)}var q="",le=!1,re=["{","}"];if(a(j)&&(le=!0,re=["[","]"]),O(j)){var we=j.name?": "+j.name:"";q=" [Function"+we+"]"}if(C(j)&&(q=" "+RegExp.prototype.toString.call(j)),T(j)&&(q=" "+Date.prototype.toUTCString.call(j)),w(j)&&(q=" "+s(j)),Q.length===0&&(!le||j.length==0))return re[0]+q+re[1];if(K<0)return C(j)?F.stylize(RegExp.prototype.toString.call(j),"regexp"):F.stylize("[Object]","special");F.seen.push(j);var Ie;return le?Ie=e(F,j,K,G,Q):Ie=Q.map(function(Me){return l(F,j,K,G,Me,le)}),F.seen.pop(),r(Ie,q,re)}function t(F,j){if(E(j))return F.stylize("undefined","undefined");if(b(j)){var K="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return F.stylize(K,"string")}if(A(j))return F.stylize(""+j,"number");if(c(j))return F.stylize(""+j,"boolean");if(h(j))return F.stylize("null","null")}function s(F){return"["+Error.prototype.toString.call(F)+"]"}function e(F,j,K,z,V){for(var Q=[],G=0,te=j.length;G<te;++G)X(j,String(G))?Q.push(l(F,j,K,z,String(G),!0)):Q.push("");return V.forEach(function(q){q.match(/^\d+$/)||Q.push(l(F,j,K,z,q,!0))}),Q}function l(F,j,K,z,V,Q){var G,te,q;if(q=Object.getOwnPropertyDescriptor(j,V)||{value:j[V]},q.get?q.set?te=F.stylize("[Getter/Setter]","special"):te=F.stylize("[Getter]","special"):q.set&&(te=F.stylize("[Setter]","special")),X(z,V)||(G="["+V+"]"),te||(F.seen.indexOf(q.value)<0?(h(K)?te=i(F,q.value,null):te=i(F,q.value,K-1),te.indexOf(`
`)>-1&&(Q?te=te.split(`
`).map(function(le){return" "+le}).join(`
`).substr(2):te=`
`+te.split(`
`).map(function(le){return" "+le}).join(`
`))):te=F.stylize("[Circular]","special")),E(G)){if(Q&&V.match(/^\d+$/))return te;G=JSON.stringify(""+V),G.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(G=G.substr(1,G.length-2),G=F.stylize(G,"name")):(G=G.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),G=F.stylize(G,"string"))}return G+": "+te}function r(F,j,K){var z=0,V=F.reduce(function(Q,G){return z++,G.indexOf(`
`)>=0&&z++,Q+G.replace(/\u001b\[\d\d?m/g,"").length+1},0);return V>60?K[0]+(j===""?"":j+`
`)+" "+F.join(`,
`)+" "+K[1]:K[0]+j+" "+F.join(", ")+" "+K[1]}function a(F){return Array.isArray(F)}n.isArray=a;function c(F){return typeof F=="boolean"}n.isBoolean=c;function h(F){return F===null}n.isNull=h;function g(F){return F==null}n.isNullOrUndefined=g;function A(F){return typeof F=="number"}n.isNumber=A;function b(F){return typeof F=="string"}n.isString=b;function S(F){return typeof F=="symbol"}n.isSymbol=S;function E(F){return F===void 0}n.isUndefined=E;function C(F){return _(F)&&R(F)==="[object RegExp]"}n.isRegExp=C;function _(F){return typeof F=="object"&&F!==null}n.isObject=_;function T(F){return _(F)&&R(F)==="[object Date]"}n.isDate=T;function w(F){return _(F)&&(R(F)==="[object Error]"||F instanceof Error)}n.isError=w;function O(F){return typeof F=="function"}n.isFunction=O;function I(F){return F===null||typeof F=="boolean"||typeof F=="number"||typeof F=="string"||typeof F=="symbol"||typeof F=="undefined"}n.isPrimitive=I,n.isBuffer=k("./support/isBuffer");function R(F){return Object.prototype.toString.call(F)}function M(F){return F<10?"0"+F.toString(10):F.toString(10)}var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var F=new Date,j=[M(F.getHours()),M(F.getMinutes()),M(F.getSeconds())].join(":");return[F.getDate(),B[F.getMonth()],j].join(" ")}n.log=function(){console.log("%s - %s",P(),n.format.apply(n,arguments))},n.inherits=k("inherits"),n._extend=function(F,j){if(!j||!_(j))return F;for(var K=Object.keys(j),z=K.length;z--;)F[K[z]]=j[K[z]];return F};function X(F,j){return Object.prototype.hasOwnProperty.call(F,j)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(k,D,n){"use strict";(function(){"use strict";n.stripBOM=function(y){return y[0]==="\uFEFF"?y.substring(1):y}}).call(void 0)},{}],245:[function(k,D,n){"use strict";var y=k("babel-runtime/helpers/typeof"),p=m(y),x=k("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,u,o,i,t={}.hasOwnProperty;f=k("xmlbuilder"),d=k("./defaults").defaults,o=function(e){return typeof e=="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},i=function(e){return"<![CDATA["+u(e)+"]]>"},u=function(e){return e.replace("]]>","]]]]><![CDATA[>")},n.Builder=function(){function s(e){var l,r,a;this.options={},r=d["0.2"];for(l in r){if(!t.call(r,l))continue;a=r[l],this.options[l]=a}for(l in e){if(!t.call(e,l))continue;a=e[l],this.options[l]=a}}return s.prototype.buildObject=function(e){var l,r,a,c,h;return l=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,a=function(g){return function(A,b){var S,E,C,_,T,w;if((typeof b=="undefined"?"undefined":(0,p.default)(b))!=="object")g.options.cdata&&o(b)?A.raw(i(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=a(A.ele(T),C).up()}else for(T in b){if(!t.call(b,T))continue;if(E=b[T],T===l){if((typeof E=="undefined"?"undefined":(0,p.default)(E))==="object")for(S in E)w=E[S],A=A.att(S,w)}else if(T===r)g.options.cdata&&o(E)?A=A.raw(i(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(i(C)).up():A=A.ele(T,C).up():A=a(A.ele(T),C).up()}else(typeof E=="undefined"?"undefined":(0,p.default)(E))==="object"?A=a(A.ele(T),E).up():typeof E=="string"&&g.options.cdata&&o(E)?A=A.ele(T).raw(i(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}),a(c,e).end(this.options.renderOpts)},s}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(k,D,n){"use strict";(function(){n.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/promise"),p=o(y),x=k("babel-runtime/core-js/object/get-own-property-names"),v=o(x),m=k("babel-runtime/core-js/object/keys"),f=o(m),d=k("babel-runtime/helpers/typeof"),u=o(d);function o(i){return i&&i.__esModule?i:{default:i}}(function(){"use strict";var i,t,s,e,l,r,a,c,h=function(S,E){return function(){return S.apply(E,arguments)}},g=function(S,E){for(var C in E)A.call(E,C)&&(S[C]=E[C]);function _(){this.constructor=S}return _.prototype=E.prototype,S.prototype=new _,S.__super__=E.prototype,S},A={}.hasOwnProperty;a=k("sax"),s=k("events"),i=k("./bom"),r=k("./processors"),c=k("timers").setImmediate,t=k("./defaults").defaults,e=function(S){return(typeof S=="undefined"?"undefined":(0,u.default)(S))==="object"&&S!=null&&(0,f.default)(S).length===0},l=function(S,E,C){var _,T,w;for(_=0,T=S.length;_<T;_++)w=S[_],E=w(E,C);return E},n.Parser=function(b){g(S,b);function S(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 n.Parser))return new n.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 S.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)}},S.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]=_},S.prototype.reset=function(){var E,C,_,T;return this.removeAllListeners(),this.saxParser=a.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(w){return function(O){if(w.saxParser.resume(),!w.saxParser.errThrown)return w.saxParser.errThrown=!0,w.emit("error",O)}}(this),this.saxParser.onend=function(w){return function(){if(!w.saxParser.ended)return w.saxParser.ended=!0,w.emit("end",w.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,T=[],E=this.options.attrkey,C=this.options.charkey,this.saxParser.onopentag=function(w){return function(O){var I,R,M,B,P;if(M={},M[C]="",!w.options.ignoreAttrs){P=O.attributes;for(I in P){if(!A.call(P,I))continue;!(E in M)&&!w.options.mergeAttrs&&(M[E]={}),R=w.options.attrValueProcessors?l(w.options.attrValueProcessors,O.attributes[I],I):O.attributes[I],B=w.options.attrNameProcessors?l(w.options.attrNameProcessors,I):I,w.options.mergeAttrs?w.assignOrPush(M,B,R):M[E][B]=R}}return M["#name"]=w.options.tagNameProcessors?l(w.options.tagNameProcessors,O.name):O.name,w.options.xmlns&&(M[w.options.xmlnskey]={uri:O.uri,local:O.local}),T.push(M)}}(this),this.saxParser.onclosetag=function(w){return function(){var O,I,R,M,B,P,X,F,j,K;if(P=T.pop(),B=P["#name"],(!w.options.explicitChildren||!w.options.preserveChildrenOrder)&&delete P["#name"],P.cdata===!0&&(O=P.cdata,delete P.cdata),j=T[T.length-1],P[C].match(/^\s*$/)&&!O?(I=P[C],delete P[C]):(w.options.trim&&(P[C]=P[C].trim()),w.options.normalize&&(P[C]=P[C].replace(/\s{2,}/g," ").trim()),P[C]=w.options.valueProcessors?l(w.options.valueProcessors,P[C],B):P[C],(0,f.default)(P).length===1&&C in P&&!w.EXPLICIT_CHARKEY&&(P=P[C])),e(P)&&(P=w.options.emptyTag!==""?w.options.emptyTag:I),w.options.validator!=null&&(K="/"+function(){var z,V,Q;for(Q=[],z=0,V=T.length;z<V;z++)M=T[z],Q.push(M["#name"]);return Q}().concat(B).join("/"),function(){var z;try{return P=w.options.validator(K,j&&j[B],P)}catch(V){return z=V,w.emit("error",z)}}()),w.options.explicitChildren&&!w.options.mergeAttrs&&(typeof P=="undefined"?"undefined":(0,u.default)(P))==="object"){if(!w.options.preserveChildrenOrder)M={},w.options.attrkey in P&&(M[w.options.attrkey]=P[w.options.attrkey],delete P[w.options.attrkey]),!w.options.charsAsChildren&&w.options.charkey in P&&(M[w.options.charkey]=P[w.options.charkey],delete P[w.options.charkey]),(0,v.default)(P).length>0&&(M[w.options.childkey]=P),P=M;else if(j){j[w.options.childkey]=j[w.options.childkey]||[],X={};for(R in P){if(!A.call(P,R))continue;X[R]=P[R]}j[w.options.childkey].push(X),delete P["#name"],(0,f.default)(P).length===1&&C in P&&!w.EXPLICIT_CHARKEY&&(P=P[C])}}return T.length>0?w.assignOrPush(j,B,P):(w.options.explicitRoot&&(F=P,P={},P[B]=F),w.resultObject=P,w.saxParser.ended=!0,w.emit("end",w.resultObject))}}(this),_=function(w){return function(O){var I,R;if(R=T[T.length-1],R)return R[C]+=O,w.options.explicitChildren&&w.options.preserveChildrenOrder&&w.options.charsAsChildren&&(w.options.includeWhiteChars||O.replace(/\\n/g,"").trim()!=="")&&(R[w.options.childkey]=R[w.options.childkey]||[],I={"#name":"__text__"},I[C]=O,w.options.normalize&&(I[C]=I[C].replace(/\s{2,}/g," ").trim()),R[w.options.childkey].push(I)),R}}(this),this.saxParser.ontext=_,this.saxParser.oncdata=function(w){return function(O){var I;if(I=_(O),I)return I.cdata=!0}}(this)},S.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=i.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}},S.prototype.parseStringPromise=function(E){return new p.default(function(C){return function(_,T){return C.parseString(E,function(w,O){return w?T(w):_(O)})}}(this))},S}(s),n.parseString=function(b,S,E){var C,_,T;return E!=null?(typeof E=="function"&&(C=E),(typeof S=="undefined"?"undefined":(0,u.default)(S))==="object"&&(_=S)):(typeof S=="function"&&(C=S),_={}),T=new n.Parser(_),T.parseString(b,C)},n.parseStringPromise=function(b,S){var E,C;return(typeof S=="undefined"?"undefined":(0,u.default)(S))==="object"&&(E=S),C=new n.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(k,D,n){"use strict";(function(){"use strict";var y;y=new RegExp(/(?!xmlns)^.*:/),n.normalize=function(p){return p.toLowerCase()},n.firstCharLowerCase=function(p){return p.charAt(0).toLowerCase()+p.slice(1)},n.stripPrefix=function(p){return p.replace(y,"")},n.parseNumbers=function(p){return isNaN(p)||(p=p%1===0?parseInt(p,10):parseFloat(p)),p},n.parseBooleans=function(p){return/^(?:true|false)$/i.test(p)&&(p=p.toLowerCase()==="true"),p}}).call(void 0)},{}],249:[function(k,D,n){"use strict";(function(){"use strict";var y,p,x,v,m=function(u,o){for(var i in o)f.call(o,i)&&(u[i]=o[i]);function t(){this.constructor=u}return t.prototype=o.prototype,u.prototype=new t,u.__super__=o.prototype,u},f={}.hasOwnProperty;p=k("./defaults"),y=k("./builder"),x=k("./parser"),v=k("./processors"),n.defaults=p.defaults,n.processors=v,n.ValidationError=function(d){m(u,d);function u(o){this.message=o}return u}(Error),n.Builder=y.Builder,n.Parser=x.Parser,n.parseString=x.parseString,n.parseStringPromise=x.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(k,D,n){"use strict";(function(){D.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(k,D,n){"use strict";(function(){D.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/get-prototype-of"),p=d(y),x=k("babel-runtime/helpers/typeof"),v=d(x),m=k("babel-runtime/core-js/object/assign"),f=d(m);function d(u){return u&&u.__esModule?u:{default:u}}(function(){var u,o,i,t,s,e,l,r=[].slice,a={}.hasOwnProperty;u=function(){var h,g,A,b,S,E;if(E=arguments[0],S=2<=arguments.length?r.call(arguments,1):[],s(f.default))f.default.apply(null,arguments);else for(h=0,A=S.length;h<A;h++)if(b=S[h],b!=null)for(g in b){if(!a.call(b,g))continue;E[g]=b[g]}return E},s=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")},i=function(h){return s(Array.isArray)?Array.isArray(h):Object.prototype.toString.call(h)==="[object Array]"},t=function(h){var g;if(i(h))return!h.length;for(g in h){if(!a.call(h,g))continue;return!1}return!0},l=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 s(h.valueOf)?h.valueOf():h},D.exports.assign=u,D.exports.isFunction=s,D.exports.isObject=e,D.exports.isArray=i,D.exports.isEmpty=t,D.exports.isPlainObject=l,D.exports.getValue=o}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(k,D,n){"use strict";(function(){D.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(k,D,n){"use strict";var y=k("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=k("./NodeType"),f=k("./XMLNode"),D.exports=m=function(){function d(u,o,i){if(this.parent=u,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(i),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(u){return this.options.writer.attribute(this,this.options.writer.filterOptions(u))},d.prototype.debugInfo=function(u){return u=u||this.name,u==null?"parent: <"+this.parent.name+">":"attribute: {"+u+"}, parent: <"+this.parent.name+">"},d.prototype.isEqualNode=function(u){return u.namespaceURI!==this.namespaceURI||(u.prefix!==this.prefix||u.localName!==this.localName)?!1:!(u.value!==this.value)},d}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(k,D,n){"use strict";var y=k("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(i,t){for(var s in t)u.call(t,s)&&(i[s]=t[s]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;v=k("./NodeType"),f=k("./XMLCharacterData"),D.exports=m=function(o){d(i,o);function i(t,s){if(i.__super__.constructor.call(this,t),s==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=v.CData,this.value=this.stringify.cdata(s)}return i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return this.options.writer.cdata(this,this.options.writer.filterOptions(t))},i}(f)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(k,D,n){"use strict";var y=k("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,i){for(var t in i)d.call(i,t)&&(o[t]=i[t]);function s(){this.constructor=o}return s.prototype=i.prototype,o.prototype=new s,o.__super__=i.prototype,o},d={}.hasOwnProperty;m=k("./XMLNode"),D.exports=v=function(u){f(o,u);function o(i){o.__super__.constructor.call(this,i),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(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.appendData=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.insertData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.deleteData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.replaceData=function(i,t,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.isEqualNode=function(i){return o.__super__.isEqualNode.apply(this,arguments).isEqualNode(i)?!(i.data!==this.data):!1},o}(m)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(k,D,n){"use strict";var y=k("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(i,t){for(var s in t)u.call(t,s)&&(i[s]=t[s]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;v=k("./NodeType"),m=k("./XMLCharacterData"),D.exports=f=function(o){d(i,o);function i(t,s){if(i.__super__.constructor.call(this,t),s==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=v.Comment,this.value=this.stringify.comment(s)}return i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return this.options.writer.comment(this,this.options.writer.filterOptions(t))},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=m(y),x=k("babel-runtime/core-js/object/create"),v=m(x);function m(f){return f&&f.__esModule?f:{default:f}}(function(){var f,d,u;d=k("./XMLDOMErrorHandler"),u=k("./XMLDOMStringList"),D.exports=f=function(){function o(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new d,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=i=(0,v.default)(this.defaultParams)}return Object.defineProperty(o.prototype,"parameterNames",{get:function(){return new u((0,p.default)(this.defaultParams))}}),o.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},o.prototype.canSetParameter=function(i,t){return!0},o.prototype.setParameter=function(i,t){return t!=null?this.params[i]=t:delete this.params[i]},o}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(k,D,n){"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(k,D,n){"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(k,D,n){"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(k,D,n){"use strict";(function(){var y,p,x,v=function(d,u){for(var o in u)m.call(u,o)&&(d[o]=u[o]);function i(){this.constructor=d}return i.prototype=u.prototype,d.prototype=new i,d.__super__=u.prototype,d},m={}.hasOwnProperty;x=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(f){v(d,f);function d(u,o,i,t,s,e){if(d.__super__.constructor.call(this,u),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(i==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(o));if(!t)throw new Error("Missing DTD attribute type. "+this.debugInfo(o));if(!s)throw new Error("Missing DTD attribute default. "+this.debugInfo(o));if(s.indexOf("#")!==0&&(s="#"+s),!s.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(o));if(e&&!s.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(i),this.attributeType=this.stringify.dtdAttType(t),e&&(this.defaultValue=this.stringify.dtdAttDefault(e)),this.defaultValueType=s}return d.prototype.toString=function(u){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(u))},d}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(k,D,n){"use strict";(function(){var y,p,x,v=function(d,u){for(var o in u)m.call(u,o)&&(d[o]=u[o]);function i(){this.constructor=d}return i.prototype=u.prototype,d.prototype=new i,d.__super__=u.prototype,d},m={}.hasOwnProperty;x=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(f){v(d,f);function d(u,o,i){if(d.__super__.constructor.call(this,u),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.name(o),this.type=y.ElementDeclaration,this.value=this.stringify.dtdElementValue(i)}return d.prototype.toString=function(u){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(u))},d}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(k,D,n){"use strict";(function(){var y,p,x,v,m=function(u,o){for(var i in o)f.call(o,i)&&(u[i]=o[i]);function t(){this.constructor=u}return t.prototype=o.prototype,u.prototype=new t,u.__super__=o.prototype,u},f={}.hasOwnProperty;v=k("./Utility").isObject,x=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(d){m(u,d);function u(o,i,t,s){if(u.__super__.constructor.call(this,o),t==null)throw new Error("Missing DTD entity name. "+this.debugInfo(t));if(s==null)throw new Error("Missing DTD entity value. "+this.debugInfo(t));if(this.pe=!!i,this.name=this.stringify.name(t),this.type=y.EntityDeclaration,!v(s))this.value=this.stringify.dtdEntityValue(s),this.internal=!0;else{if(!s.pubID&&!s.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(t));if(s.pubID&&!s.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(t));if(this.internal=!1,s.pubID!=null&&(this.pubID=this.stringify.dtdPubID(s.pubID)),s.sysID!=null&&(this.sysID=this.stringify.dtdSysID(s.sysID)),s.nData!=null&&(this.nData=this.stringify.dtdNData(s.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(t))}}return Object.defineProperty(u.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(u.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(u.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(u.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(u.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(u.prototype,"xmlVersion",{get:function(){return null}}),u.prototype.toString=function(o){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(o))},u}(x)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(k,D,n){"use strict";(function(){var y,p,x,v=function(d,u){for(var o in u)m.call(u,o)&&(d[o]=u[o]);function i(){this.constructor=d}return i.prototype=u.prototype,d.prototype=new i,d.__super__=u.prototype,d},m={}.hasOwnProperty;x=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(f){v(d,f);function d(u,o,i){if(d.__super__.constructor.call(this,u),o==null)throw new Error("Missing DTD notation name. "+this.debugInfo(o));if(!i.pubID&&!i.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,i.pubID!=null&&(this.pubID=this.stringify.dtdPubID(i.pubID)),i.sysID!=null&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return Object.defineProperty(d.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(d.prototype,"systemId",{get:function(){return this.sysID}}),d.prototype.toString=function(u){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(u))},d}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(k,D,n){"use strict";(function(){var y,p,x,v,m=function(u,o){for(var i in o)f.call(o,i)&&(u[i]=o[i]);function t(){this.constructor=u}return t.prototype=o.prototype,u.prototype=new t,u.__super__=o.prototype,u},f={}.hasOwnProperty;v=k("./Utility").isObject,x=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(d){m(u,d);function u(o,i,t,s){var e;u.__super__.constructor.call(this,o),v(i)&&(e=i,i=e.version,t=e.encoding,s=e.standalone),i||(i="1.0"),this.type=y.Declaration,this.version=this.stringify.xmlVersion(i),t!=null&&(this.encoding=this.stringify.xmlEncoding(t)),s!=null&&(this.standalone=this.stringify.xmlStandalone(s))}return u.prototype.toString=function(o){return this.options.writer.declaration(this,this.options.writer.filterOptions(o))},u}(x)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(k,D,n){"use strict";(function(){var y,p,x,v,m,f,d,u,o,i=function(e,l){for(var r in l)t.call(l,r)&&(e[r]=l[r]);function a(){this.constructor=e}return a.prototype=l.prototype,e.prototype=new a,e.__super__=l.prototype,e},t={}.hasOwnProperty;o=k("./Utility").isObject,u=k("./XMLNode"),y=k("./NodeType"),p=k("./XMLDTDAttList"),v=k("./XMLDTDEntity"),x=k("./XMLDTDElement"),m=k("./XMLDTDNotation"),d=k("./XMLNamedNodeMap"),D.exports=f=function(s){i(e,s);function e(l,r,a){var c,h,g,A,b,S;if(e.__super__.constructor.call(this,l),this.type=y.DocType,l.children){for(A=l.children,h=0,g=A.length;h<g;h++)if(c=A[h],c.type===y.Element){this.name=c.name;break}}this.documentObject=l,o(r)&&(b=r,r=b.pubID,a=b.sysID),a==null&&(S=[r,a],a=S[0],r=S[1]),r!=null&&(this.pubID=this.stringify.dtdPubID(r)),a!=null&&(this.sysID=this.stringify.dtdSysID(a))}return Object.defineProperty(e.prototype,"entities",{get:function(){var r,a,c,h,g;for(h={},g=this.children,a=0,c=g.length;a<c;a++)r=g[a],r.type===y.EntityDeclaration&&!r.pe&&(h[r.name]=r);return new d(h)}}),Object.defineProperty(e.prototype,"notations",{get:function(){var r,a,c,h,g;for(h={},g=this.children,a=0,c=g.length;a<c;a++)r=g[a],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(l,r){var a;return a=new x(this,l,r),this.children.push(a),this},e.prototype.attList=function(l,r,a,c,h){var g;return g=new p(this,l,r,a,c,h),this.children.push(g),this},e.prototype.entity=function(l,r){var a;return a=new v(this,!1,l,r),this.children.push(a),this},e.prototype.pEntity=function(l,r){var a;return a=new v(this,!0,l,r),this.children.push(a),this},e.prototype.notation=function(l,r){var a;return a=new m(this,l,r),this.children.push(a),this},e.prototype.toString=function(l){return this.options.writer.docType(this,this.options.writer.filterOptions(l))},e.prototype.ele=function(l,r){return this.element(l,r)},e.prototype.att=function(l,r,a,c,h){return this.attList(l,r,a,c,h)},e.prototype.ent=function(l,r){return this.entity(l,r)},e.prototype.pent=function(l,r){return this.pEntity(l,r)},e.prototype.not=function(l,r){return this.notation(l,r)},e.prototype.up=function(){return this.root()||this.documentObject},e.prototype.isEqualNode=function(l){return e.__super__.isEqualNode.apply(this,arguments).isEqualNode(l)?l.name!==this.name||l.publicId!==this.publicId?!1:!(l.systemId!==this.systemId):!1},e}(u)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(k,D,n){"use strict";(function(){var y,p,x,v,m,f,d,u,o=function(s,e){for(var l in e)i.call(e,l)&&(s[l]=e[l]);function r(){this.constructor=s}return r.prototype=e.prototype,s.prototype=new r,s.__super__=e.prototype,s},i={}.hasOwnProperty;u=k("./Utility").isPlainObject,x=k("./XMLDOMImplementation"),p=k("./XMLDOMConfiguration"),m=k("./XMLNode"),y=k("./NodeType"),d=k("./XMLStringifier"),f=k("./XMLStringWriter"),D.exports=v=function(t){o(s,t);function s(e){s.__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(s.prototype,"implementation",{value:new x}),Object.defineProperty(s.prototype,"doctype",{get:function(){var l,r,a,c;for(c=this.children,r=0,a=c.length;r<a;r++)if(l=c[r],l.type===y.DocType)return l;return null}}),Object.defineProperty(s.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(s.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(s.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(s.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].encoding:null}}),Object.defineProperty(s.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(s.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(s.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(s.prototype,"origin",{get:function(){return null}}),Object.defineProperty(s.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(s.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(s.prototype,"contentType",{get:function(){return null}}),s.prototype.end=function(e){var l;return l={},e?u(e)&&(l=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(l))},s.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},s.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createProcessingInstruction=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.importNode=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createElementNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createAttributeNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagNameNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.renameNode=function(e,l,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createNodeIterator=function(e,l,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createTreeWalker=function(e,l,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},s}(m)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(k,D,n){"use strict";(function(){var y,p,x,v,m,f,d,u,o,i,t,s,e,l,r,a,c,h,g,A,b,S,E,C,_={}.hasOwnProperty;C=k("./Utility"),S=C.isObject,b=C.isFunction,E=C.isPlainObject,A=C.getValue,y=k("./NodeType"),s=k("./XMLDocument"),l=k("./XMLElement"),v=k("./XMLCData"),m=k("./XMLComment"),a=k("./XMLRaw"),g=k("./XMLText"),r=k("./XMLProcessingInstruction"),i=k("./XMLDeclaration"),t=k("./XMLDocType"),f=k("./XMLDTDAttList"),u=k("./XMLDTDEntity"),d=k("./XMLDTDElement"),o=k("./XMLDTDNotation"),x=k("./XMLAttribute"),h=k("./XMLStringifier"),c=k("./XMLStringWriter"),p=k("./WriterState"),D.exports=e=function(){function T(w,O,I){var R;this.name="?xml",this.type=y.Document,w||(w={}),R={},w.writer?E(w.writer)&&(R=w.writer,w.writer=new c):w.writer=new c,this.options=w,this.writer=w.writer,this.writerOptions=this.writer.filterOptions(R),this.stringify=new h(w),this.onDataCallback=O||function(){},this.onEndCallback=I||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return T.prototype.createChildNode=function(w){var O,I,R,M,B,P,X,F;switch(w.type){case y.CData:this.cdata(w.value);break;case y.Comment:this.comment(w.value);break;case y.Element:R={},X=w.attribs;for(I in X){if(!_.call(X,I))continue;O=X[I],R[I]=O.value}this.node(w.name,R);break;case y.Dummy:this.dummy();break;case y.Raw:this.raw(w.value);break;case y.Text:this.text(w.value);break;case y.ProcessingInstruction:this.instruction(w.target,w.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+w.constructor.name)}for(F=w.children,B=0,P=F.length;B<P;B++)M=F[B],this.createChildNode(M),M.type===y.Element&&this.up();return this},T.prototype.dummy=function(){return this},T.prototype.node=function(w,O,I){var R;if(w==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(w));return this.openCurrent(),w=A(w),O==null&&(O={}),O=A(O),S(O)||(R=[O,I],I=R[0],O=R[1]),this.currentNode=new l(this,w,O),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,I!=null&&this.text(I),this},T.prototype.element=function(w,O,I){var R,M,B,P,X,F;if(this.currentNode&&this.currentNode.type===y.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(w)||S(w)||b(w))for(P=this.options.noValidation,this.options.noValidation=!0,F=new s(this.options).element("TEMP_ROOT"),F.element(w),this.options.noValidation=P,X=F.children,M=0,B=X.length;M<B;M++)R=X[M],this.createChildNode(R),R.type===y.Element&&this.up();else this.node(w,O,I);return this},T.prototype.attribute=function(w,O){var I,R;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(w));if(w!=null&&(w=A(w)),S(w))for(I in w){if(!_.call(w,I))continue;R=w[I],this.attribute(I,R)}else b(O)&&(O=O.apply()),this.options.keepNullAttributes&&O==null?this.currentNode.attribs[w]=new x(this,w,""):O!=null&&(this.currentNode.attribs[w]=new x(this,w,O));return this},T.prototype.text=function(w){var O;return this.openCurrent(),O=new g(this,w),this.onData(this.writer.text(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.cdata=function(w){var O;return this.openCurrent(),O=new v(this,w),this.onData(this.writer.cdata(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.comment=function(w){var O;return this.openCurrent(),O=new m(this,w),this.onData(this.writer.comment(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.raw=function(w){var O;return this.openCurrent(),O=new a(this,w),this.onData(this.writer.raw(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.instruction=function(w,O){var I,R,M,B,P;if(this.openCurrent(),w!=null&&(w=A(w)),O!=null&&(O=A(O)),Array.isArray(w))for(I=0,B=w.length;I<B;I++)R=w[I],this.instruction(R);else if(S(w))for(R in w){if(!_.call(w,R))continue;M=w[R],this.instruction(R,M)}else b(O)&&(O=O.apply()),P=new r(this,w,O),this.onData(this.writer.processingInstruction(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},T.prototype.declaration=function(w,O,I){var R;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return R=new i(this,w,O,I),this.onData(this.writer.declaration(R,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.doctype=function(w,O,I){if(this.openCurrent(),w==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new t(this,O,I),this.currentNode.rootNodeName=w,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},T.prototype.dtdElement=function(w,O){var I;return this.openCurrent(),I=new d(this,w,O),this.onData(this.writer.dtdElement(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.attList=function(w,O,I,R,M){var B;return this.openCurrent(),B=new f(this,w,O,I,R,M),this.onData(this.writer.dtdAttList(B,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.entity=function(w,O){var I;return this.openCurrent(),I=new u(this,!1,w,O),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.pEntity=function(w,O){var I;return this.openCurrent(),I=new u(this,!0,w,O),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.notation=function(w,O){var I;return this.openCurrent(),I=new o(this,w,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(w){var O,I,R,M;if(!w.isOpen){if(!this.root&&this.currentLevel===0&&w.type===y.Element&&(this.root=w),I="",w.type===y.Element){this.writerOptions.state=p.OpenTag,I=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<"+w.name,M=w.attribs;for(R in M){if(!_.call(M,R))continue;O=M[R],I+=this.writer.attribute(O,this.writerOptions,this.currentLevel)}I+=(w.children?">":"/>")+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=p.InsideTag}else this.writerOptions.state=p.OpenTag,I=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+w.rootNodeName,w.pubID&&w.sysID?I+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(I+=' SYSTEM "'+w.sysID+'"'),w.children?(I+=" [",this.writerOptions.state=p.InsideTag):(this.writerOptions.state=p.CloseTag,I+=">"),I+=this.writer.endline(w,this.writerOptions,this.currentLevel);return this.onData(I,this.currentLevel),w.isOpen=!0}},T.prototype.closeNode=function(w){var O;if(!w.isClosed)return O="",this.writerOptions.state=p.CloseTag,w.type===y.Element?O=this.writer.indent(w,this.writerOptions,this.currentLevel)+"</"+w.name+">"+this.writer.endline(w,this.writerOptions,this.currentLevel):O=this.writer.indent(w,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=p.None,this.onData(O,this.currentLevel),w.isClosed=!0},T.prototype.onData=function(w,O){return this.documentStarted=!0,this.onDataCallback(w,O+1)},T.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},T.prototype.debugInfo=function(w){return w==null?"":"node: <"+w+">"},T.prototype.ele=function(){return this.element.apply(this,arguments)},T.prototype.nod=function(w,O,I){return this.node(w,O,I)},T.prototype.txt=function(w){return this.text(w)},T.prototype.dat=function(w){return this.cdata(w)},T.prototype.com=function(w){return this.comment(w)},T.prototype.ins=function(w,O){return this.instruction(w,O)},T.prototype.dec=function(w,O,I){return this.declaration(w,O,I)},T.prototype.dtd=function(w,O,I){return this.doctype(w,O,I)},T.prototype.e=function(w,O,I){return this.element(w,O,I)},T.prototype.n=function(w,O,I){return this.node(w,O,I)},T.prototype.t=function(w){return this.text(w)},T.prototype.d=function(w){return this.cdata(w)},T.prototype.c=function(w){return this.comment(w)},T.prototype.r=function(w){return this.raw(w)},T.prototype.i=function(w,O){return this.instruction(w,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(w,O){return this.entity(w,O)},T.prototype.pent=function(w,O){return this.pEntity(w,O)},T.prototype.not=function(w,O){return this.notation(w,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(k,D,n){"use strict";var y=k("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(i,t){for(var s in t)u.call(t,s)&&(i[s]=t[s]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;f=k("./XMLNode"),v=k("./NodeType"),D.exports=m=function(o){d(i,o);function i(t){i.__super__.constructor.call(this,t),this.type=v.Dummy}return i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return""},i}(f)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(k,D,n){"use strict";var y=k("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,u,o,i,t,s,e=function(a,c){for(var h in c)l.call(c,h)&&(a[h]=c[h]);function g(){this.constructor=a}return g.prototype=c.prototype,a.prototype=new g,a.__super__=c.prototype,a},l={}.hasOwnProperty;s=k("./Utility"),t=s.isObject,i=s.isFunction,o=s.getValue,u=k("./XMLNode"),v=k("./NodeType"),m=k("./XMLAttribute"),d=k("./XMLNamedNodeMap"),D.exports=f=function(r){e(a,r);function a(c,h,g){var A,b,S,E;if(a.__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,S=E.length;b<S;b++)if(A=E[b],A.type===v.DocType){A.name=this.name;break}}}return Object.defineProperty(a.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new d(this.attribs)),this.attributeMap}}),a.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(!l.call(A,h))continue;c=A[h],g.attribs[h]=c.clone()}return g.children=[],this.children.forEach(function(b){var S;return S=b.clone(),S.parent=g,g.children.push(S)}),g},a.prototype.attribute=function(c,h){var g,A;if(c!=null&&(c=o(c)),t(c))for(g in c){if(!l.call(c,g))continue;A=c[g],this.attribute(g,A)}else i(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},a.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},a.prototype.toString=function(c){return this.options.writer.element(this,this.options.writer.filterOptions(c))},a.prototype.att=function(c,h){return this.attribute(c,h)},a.prototype.a=function(c,h){return this.attribute(c,h)},a.prototype.getAttribute=function(c){return this.attribs.hasOwnProperty(c)?this.attribs[c].value:null},a.prototype.setAttribute=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNode=function(c){return this.attribs.hasOwnProperty(c)?this.attribs[c]:null},a.prototype.setAttributeNode=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNode=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNS=function(c,h,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNodeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNodeNS=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.hasAttribute=function(c){return this.attribs.hasOwnProperty(c)},a.prototype.hasAttributeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttribute=function(c,h){return this.attribs.hasOwnProperty(c)?this.attribs[c].isId:h},a.prototype.setIdAttributeNS=function(c,h,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttributeNode=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByClassName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(c){var h,g,A;if(!a.__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},a}(u)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(k,D,n){"use strict";var y=k("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(k,D,n){"use strict";(function(){var y,p,x,v,m,f,d,u,o,i,t,s,e,l,r,a,c,h,g,A={}.hasOwnProperty;g=k("./Utility"),h=g.isObject,c=g.isFunction,a=g.isEmpty,r=g.getValue,u=null,x=null,v=null,m=null,f=null,e=null,l=null,s=null,d=null,p=null,t=null,o=null,y=null,D.exports=i=function(){function b(S){this.parent=S,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,u||(u=k("./XMLElement"),x=k("./XMLCData"),v=k("./XMLComment"),m=k("./XMLDeclaration"),f=k("./XMLDocType"),e=k("./XMLRaw"),l=k("./XMLText"),s=k("./XMLProcessingInstruction"),d=k("./XMLDummy"),p=k("./NodeType"),t=k("./XMLNodeList"),o=k("./XMLNamedNodeMap"),y=k("./DocumentPosition"))}return Object.defineProperty(b.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(b.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(b.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(b.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(b.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new t(this.children)),this.childNodeList}}),Object.defineProperty(b.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(b.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(b.prototype,"previousSibling",{get:function(){var 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,w;if(this.nodeType===p.Element||this.nodeType===p.DocumentFragment){for(w="",T=this.children,C=0,_=T.length;C<_;C++)E=T[C],E.textContent&&(w+=E.textContent);return w}else return null},set:function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),b.prototype.setParent=function(S){var E,C,_,T,w;for(this.parent=S,S&&(this.options=S.options,this.stringify=S.stringify),T=this.children,w=[],C=0,_=T.length;C<_;C++)E=T[C],w.push(E.setParent(this));return w},b.prototype.element=function(S,E,C){var _,T,w,O,I,R,M,B,P,X,F;if(R=null,E===null&&C==null&&(P=[{},null],E=P[0],C=P[1]),E==null&&(E={}),E=r(E),h(E)||(X=[E,C],C=X[0],E=X[1]),S!=null&&(S=r(S)),Array.isArray(S))for(w=0,M=S.length;w<M;w++)T=S[w],R=this.element(T);else if(c(S))R=this.element(S.apply());else if(h(S))for(I in S){if(!A.call(S,I))continue;if(F=S[I],c(F)&&(F=F.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&I.indexOf(this.stringify.convertAttKey)===0)R=this.attribute(I.substr(this.stringify.convertAttKey.length),F);else if(!this.options.separateArrayItems&&Array.isArray(F)&&a(F))R=this.dummy();else if(h(F)&&a(F))R=this.element(I);else if(!this.options.keepNullNodes&&F==null)R=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(F))for(O=0,B=F.length;O<B;O++)T=F[O],_={},_[I]=T,R=this.element(_);else h(F)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&I.indexOf(this.stringify.convertTextKey)===0?R=this.element(F):(R=this.element(I),R.element(F)):R=this.element(I,F)}else!this.options.keepNullNodes&&C===null?R=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&S.indexOf(this.stringify.convertTextKey)===0?R=this.text(C):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&S.indexOf(this.stringify.convertCDataKey)===0?R=this.cdata(C):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&S.indexOf(this.stringify.convertCommentKey)===0?R=this.comment(C):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&S.indexOf(this.stringify.convertRawKey)===0?R=this.raw(C):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&S.indexOf(this.stringify.convertPIKey)===0?R=this.instruction(S.substr(this.stringify.convertPIKey.length),C):R=this.node(S,E,C);if(R==null)throw new Error("Could not create any elements with: "+S+". "+this.debugInfo());return R},b.prototype.insertBefore=function(S,E,C){var _,T,w,O,I;if(S!=null?S.type:void 0)return w=S,O=E,w.setParent(this),O?(T=children.indexOf(O),I=children.splice(T),children.push(w),Array.prototype.push.apply(children,I)):children.push(w),w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(S));return T=this.parent.children.indexOf(this),I=this.parent.children.splice(T),_=this.parent.element(S,E,C),Array.prototype.push.apply(this.parent.children,I),_},b.prototype.insertAfter=function(S,E,C){var _,T,w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(S));return T=this.parent.children.indexOf(this),w=this.parent.children.splice(T+1),_=this.parent.element(S,E,C),Array.prototype.push.apply(this.parent.children,w),_},b.prototype.remove=function(){var S,E;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return S=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[S,S-S+1].concat(E=[])),this.parent},b.prototype.node=function(S,E,C){var _,T;return S!=null&&(S=r(S)),E||(E={}),E=r(E),h(E)||(T=[E,C],C=T[0],E=T[1]),_=new u(this,S,E),C!=null&&_.text(C),this.children.push(_),_},b.prototype.text=function(S){var E;return h(S)&&this.element(S),E=new l(this,S),this.children.push(E),this},b.prototype.cdata=function(S){var E;return E=new x(this,S),this.children.push(E),this},b.prototype.comment=function(S){var E;return E=new v(this,S),this.children.push(E),this},b.prototype.commentBefore=function(S){var E,C,_;return C=this.parent.children.indexOf(this),_=this.parent.children.splice(C),E=this.parent.comment(S),Array.prototype.push.apply(this.parent.children,_),this},b.prototype.commentAfter=function(S){var E,C,_;return C=this.parent.children.indexOf(this),_=this.parent.children.splice(C+1),E=this.parent.comment(S),Array.prototype.push.apply(this.parent.children,_),this},b.prototype.raw=function(S){var E;return E=new e(this,S),this.children.push(E),this},b.prototype.dummy=function(){var S;return S=new d(this),S},b.prototype.instruction=function(S,E){var C,_,T,w,O;if(S!=null&&(S=r(S)),E!=null&&(E=r(E)),Array.isArray(S))for(w=0,O=S.length;w<O;w++)C=S[w],this.instruction(C);else if(h(S))for(C in S){if(!A.call(S,C))continue;_=S[C],this.instruction(C,_)}else c(E)&&(E=E.apply()),T=new s(this,S,E),this.children.push(T);return this},b.prototype.instructionBefore=function(S,E){var C,_,T;return _=this.parent.children.indexOf(this),T=this.parent.children.splice(_),C=this.parent.instruction(S,E),Array.prototype.push.apply(this.parent.children,T),this},b.prototype.instructionAfter=function(S,E){var C,_,T;return _=this.parent.children.indexOf(this),T=this.parent.children.splice(_+1),C=this.parent.instruction(S,E),Array.prototype.push.apply(this.parent.children,T),this},b.prototype.declaration=function(S,E,C){var _,T;return _=this.document(),T=new m(_,S,E,C),_.children.length===0?_.children.unshift(T):_.children[0].type===p.Declaration?_.children[0]=T:_.children.unshift(T),_.root()||_},b.prototype.dtd=function(S,E){var C,_,T,w,O,I,R,M,B,P;for(_=this.document(),T=new f(_,S,E),B=_.children,w=O=0,R=B.length;O<R;w=++O)if(C=B[w],C.type===p.DocType)return _.children[w]=T,T;for(P=_.children,w=I=0,M=P.length;I<M;w=++I)if(C=P[w],C.isRoot)return _.children.splice(w,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 S;for(S=this;S;){if(S.type===p.Document)return S.rootObject;if(S.isRoot)return S;S=S.parent}},b.prototype.document=function(){var S;for(S=this;S;){if(S.type===p.Document)return S;S=S.parent}},b.prototype.end=function(S){return this.document().end(S)},b.prototype.prev=function(){var S;if(S=this.parent.children.indexOf(this),S<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[S-1]},b.prototype.next=function(){var S;if(S=this.parent.children.indexOf(this),S===-1||S===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[S+1]},b.prototype.importDocument=function(S){var E;return E=S.root().clone(),E.parent=this,E.isRoot=!1,this.children.push(E),this},b.prototype.debugInfo=function(S){var E,C;return S=S||this.name,S==null&&!((E=this.parent)!=null?E.name:void 0)?"":S==null?"parent: <"+this.parent.name+">":((C=this.parent)!=null?C.name:void 0)?"node: <"+S+">, parent: <"+this.parent.name+">":"node: <"+S+">"},b.prototype.ele=function(S,E,C){return this.element(S,E,C)},b.prototype.nod=function(S,E,C){return this.node(S,E,C)},b.prototype.txt=function(S){return this.text(S)},b.prototype.dat=function(S){return this.cdata(S)},b.prototype.com=function(S){return this.comment(S)},b.prototype.ins=function(S,E){return this.instruction(S,E)},b.prototype.doc=function(){return this.document()},b.prototype.dec=function(S,E,C){return this.declaration(S,E,C)},b.prototype.e=function(S,E,C){return this.element(S,E,C)},b.prototype.n=function(S,E,C){return this.node(S,E,C)},b.prototype.t=function(S){return this.text(S)},b.prototype.d=function(S){return this.cdata(S)},b.prototype.c=function(S){return this.comment(S)},b.prototype.r=function(S){return this.raw(S)},b.prototype.i=function(S,E){return this.instruction(S,E)},b.prototype.u=function(){return this.up()},b.prototype.importXMLBuilder=function(S){return this.importDocument(S)},b.prototype.replaceChild=function(S,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.removeChild=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.appendChild=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.hasChildNodes=function(){return this.children.length!==0},b.prototype.cloneNode=function(S){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(S,E){return!0},b.prototype.hasAttributes=function(){return this.attribs.length!==0},b.prototype.compareDocumentPosition=function(S){var E,C;return E=this,E===S?0:this.document()!==S.document()?(C=y.Disconnected|y.ImplementationSpecific,Math.random()<.5?C|=y.Preceding:C|=y.Following,C):E.isAncestor(S)?y.Contains|y.Preceding:E.isDescendant(S)?y.Contains|y.Following:E.isPreceding(S)?y.Preceding:y.Following},b.prototype.isSameNode=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupPrefix=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isDefaultNamespace=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupNamespaceURI=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isEqualNode=function(S){var E,C,_;if(S.nodeType!==this.nodeType)return!1;if(S.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(S.children[E]))return!1;return!0},b.prototype.getFeature=function(S,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setUserData=function(S,E,C){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getUserData=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.contains=function(S){return S?S===this||this.isDescendant(S):!1},b.prototype.isDescendant=function(S){var E,C,_,T,w;for(w=this.children,_=0,T=w.length;_<T;_++){if(E=w[_],S===E)return!0;if(C=E.isDescendant(S),C)return!0}return!1},b.prototype.isAncestor=function(S){return S.isDescendant(this)},b.prototype.isPreceding=function(S){var E,C;return E=this.treePosition(S),C=this.treePosition(this),E===-1||C===-1?!1:E<C},b.prototype.isFollowing=function(S){var E,C;return E=this.treePosition(S),C=this.treePosition(this),E===-1||C===-1?!1:E>C},b.prototype.treePosition=function(S){var E,C;return C=0,E=!1,this.foreachTreeNode(this.document(),function(_){if(C++,!E&&_===S)return E=!0}),E?C:-1},b.prototype.foreachTreeNode=function(S,E){var C,_,T,w,O;for(S||(S=this.document()),w=S.children,_=0,T=w.length;_<T;_++){if(C=w[_],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(k,D,n){"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(k,D,n){"use strict";var y=k("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(i,t){for(var s in t)u.call(t,s)&&(i[s]=t[s]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;v=k("./NodeType"),m=k("./XMLCharacterData"),D.exports=f=function(o){d(i,o);function i(t,s,e){if(i.__super__.constructor.call(this,t),s==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=v.ProcessingInstruction,this.target=this.stringify.insTarget(s),this.name=this.target,e&&(this.value=this.stringify.insValue(e))}return i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(t))},i.prototype.isEqualNode=function(t){return i.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)?!(t.target!==this.target):!1},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(k,D,n){"use strict";var y=k("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(i,t){for(var s in t)u.call(t,s)&&(i[s]=t[s]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;v=k("./NodeType"),m=k("./XMLNode"),D.exports=f=function(o){d(i,o);function i(t,s){if(i.__super__.constructor.call(this,t),s==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=v.Raw,this.value=this.stringify.raw(s)}return i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return this.options.writer.raw(this,this.options.writer.filterOptions(t))},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(k,D,n){"use strict";(function(){var y,p,x,v,m=function(u,o){for(var i in o)f.call(o,i)&&(u[i]=o[i]);function t(){this.constructor=u}return t.prototype=o.prototype,u.prototype=new t,u.__super__=o.prototype,u},f={}.hasOwnProperty;y=k("./NodeType"),v=k("./XMLWriterBase"),p=k("./WriterState"),D.exports=x=function(d){m(u,d);function u(o,i){this.stream=o,u.__super__.constructor.call(this,i)}return u.prototype.endline=function(o,i,t){return o.isLastRootNode&&i.state===p.CloseTag?"":u.__super__.endline.call(this,o,i,t)},u.prototype.document=function(o,i){var t,s,e,l,r,a,c,h,g;for(c=o.children,s=e=0,r=c.length;e<r;s=++e)t=c[s],t.isLastRootNode=s===o.children.length-1;for(i=this.filterOptions(i),h=o.children,g=[],l=0,a=h.length;l<a;l++)t=h[l],g.push(this.writeChildNode(t,i,0));return g},u.prototype.attribute=function(o,i,t){return this.stream.write(u.__super__.attribute.call(this,o,i,t))},u.prototype.cdata=function(o,i,t){return this.stream.write(u.__super__.cdata.call(this,o,i,t))},u.prototype.comment=function(o,i,t){return this.stream.write(u.__super__.comment.call(this,o,i,t))},u.prototype.declaration=function(o,i,t){return this.stream.write(u.__super__.declaration.call(this,o,i,t))},u.prototype.docType=function(o,i,t){var s,e,l,r;if(t||(t=0),this.openNode(o,i,t),i.state=p.OpenTag,this.stream.write(this.indent(o,i,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,i,t)),i.state=p.InsideTag,r=o.children,e=0,l=r.length;e<l;e++)s=r[e],this.writeChildNode(s,i,t+1);i.state=p.CloseTag,this.stream.write("]")}return i.state=p.CloseTag,this.stream.write(i.spaceBeforeSlash+">"),this.stream.write(this.endline(o,i,t)),i.state=p.None,this.closeNode(o,i,t)},u.prototype.element=function(o,i,t){var s,e,l,r,a,c,h,g,A,b;t||(t=0),this.openNode(o,i,t),i.state=p.OpenTag,this.stream.write(this.indent(o,i,t)+"<"+o.name),A=o.attribs;for(h in A){if(!f.call(A,h))continue;s=A[h],this.attribute(s,i,t)}if(l=o.children.length,r=l===0?null:o.children[0],l===0||o.children.every(function(S){return(S.type===y.Text||S.type===y.Raw)&&S.value===""}))i.allowEmpty?(this.stream.write(">"),i.state=p.CloseTag,this.stream.write("</"+o.name+">")):(i.state=p.CloseTag,this.stream.write(i.spaceBeforeSlash+"/>"));else if(i.pretty&&l===1&&(r.type===y.Text||r.type===y.Raw)&&r.value!=null)this.stream.write(">"),i.state=p.InsideTag,i.suppressPrettyCount++,g=!0,this.writeChildNode(r,i,t+1),i.suppressPrettyCount--,g=!1,i.state=p.CloseTag,this.stream.write("</"+o.name+">");else{for(this.stream.write(">"+this.endline(o,i,t)),i.state=p.InsideTag,b=o.children,a=0,c=b.length;a<c;a++)e=b[a],this.writeChildNode(e,i,t+1);i.state=p.CloseTag,this.stream.write(this.indent(o,i,t)+"</"+o.name+">")}return this.stream.write(this.endline(o,i,t)),i.state=p.None,this.closeNode(o,i,t)},u.prototype.processingInstruction=function(o,i,t){return this.stream.write(u.__super__.processingInstruction.call(this,o,i,t))},u.prototype.raw=function(o,i,t){return this.stream.write(u.__super__.raw.call(this,o,i,t))},u.prototype.text=function(o,i,t){return this.stream.write(u.__super__.text.call(this,o,i,t))},u.prototype.dtdAttList=function(o,i,t){return this.stream.write(u.__super__.dtdAttList.call(this,o,i,t))},u.prototype.dtdElement=function(o,i,t){return this.stream.write(u.__super__.dtdElement.call(this,o,i,t))},u.prototype.dtdEntity=function(o,i,t){return this.stream.write(u.__super__.dtdEntity.call(this,o,i,t))},u.prototype.dtdNotation=function(o,i,t){return this.stream.write(u.__super__.dtdNotation.call(this,o,i,t))},u}(v)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(k,D,n){"use strict";(function(){var y,p,x=function(f,d){for(var u in d)v.call(d,u)&&(f[u]=d[u]);function o(){this.constructor=f}return o.prototype=d.prototype,f.prototype=new o,f.__super__=d.prototype,f},v={}.hasOwnProperty;p=k("./XMLWriterBase"),D.exports=y=function(m){x(f,m);function f(d){f.__super__.constructor.call(this,d)}return f.prototype.document=function(d,u){var o,i,t,s,e;for(u=this.filterOptions(u),s="",e=d.children,i=0,t=e.length;i<t;i++)o=e[i],s+=this.writeChildNode(o,u,0);return u.pretty&&s.slice(-u.newline.length)===u.newline&&(s=s.slice(0,-u.newline.length)),s},f}(p)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(k,D,n){"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,u;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;u=d[f],this[f]=u}}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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},v.prototype.attEscape=function(m){var f;return this.options.noValidation?m:(f=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,m.replace(f,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},v}()}).call(void 0)},{}],280:[function(k,D,n){"use strict";var y=k("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(i,t){for(var s in t)u.call(t,s)&&(i[s]=t[s]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;v=k("./NodeType"),m=k("./XMLCharacterData"),D.exports=f=function(o){d(i,o);function i(t,s){if(i.__super__.constructor.call(this,t),s==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=v.Text,this.value=this.stringify.text(s)}return Object.defineProperty(i.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"wholeText",{get:function(){var s,e,l;for(l="",e=this.previousSibling;e;)l=e.data+l,e=e.previousSibling;for(l+=this.data,s=this.nextSibling;s;)l=l+s.data,s=s.nextSibling;return l}}),i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return this.options.writer.text(this,this.options.writer.filterOptions(t))},i.prototype.splitText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.replaceWholeText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(k,D,n){"use strict";(function(){var y,p,x,v,m,f,d,u,o,i,t,s,e,l,r,a,c,h={}.hasOwnProperty;c=k("./Utility").assign,y=k("./NodeType"),o=k("./XMLDeclaration"),i=k("./XMLDocType"),x=k("./XMLCData"),v=k("./XMLComment"),s=k("./XMLElement"),l=k("./XMLRaw"),r=k("./XMLText"),e=k("./XMLProcessingInstruction"),t=k("./XMLDummy"),m=k("./XMLDTDAttList"),f=k("./XMLDTDElement"),d=k("./XMLDTDEntity"),u=k("./XMLDTDNotation"),p=k("./WriterState"),D.exports=a=function(){function g(A){var b,S,E;A||(A={}),this.options=A,S=A.writer||{};for(b in S){if(!h.call(S,b))continue;E=S[b],this["_"+b]=this[b],this[b]=E}}return g.prototype.filterOptions=function(A){var b,S,E,C,_,T,w,O;return A||(A={}),A=c({},this.options,A),b={writer:this},b.pretty=A.pretty||!1,b.allowEmpty=A.allowEmpty||!1,b.indent=(S=A.indent)!=null?S:" ",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=(w=(O=A.spaceBeforeSlash)!=null?O:A.spacebeforeslash)!=null?w:"",b.spaceBeforeSlash===!0&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=p.None,b},g.prototype.indent=function(A,b,S){var E;return!b.pretty||b.suppressPrettyCount?"":b.pretty&&(E=(S||0)+b.offset+1,E>0)?new Array(E).join(b.indent):""},g.prototype.endline=function(A,b,S){return!b.pretty||b.suppressPrettyCount?"":b.newline},g.prototype.attribute=function(A,b,S){var E;return this.openAttribute(A,b,S),E=" "+A.name+'="'+A.value+'"',this.closeAttribute(A,b,S),E},g.prototype.cdata=function(A,b,S){var E;return this.openNode(A,b,S),b.state=p.OpenTag,E=this.indent(A,b,S)+"<![CDATA[",b.state=p.InsideTag,E+=A.value,b.state=p.CloseTag,E+="]]>"+this.endline(A,b,S),b.state=p.None,this.closeNode(A,b,S),E},g.prototype.comment=function(A,b,S){var E;return this.openNode(A,b,S),b.state=p.OpenTag,E=this.indent(A,b,S)+"<!-- ",b.state=p.InsideTag,E+=A.value,b.state=p.CloseTag,E+=" -->"+this.endline(A,b,S),b.state=p.None,this.closeNode(A,b,S),E},g.prototype.declaration=function(A,b,S){var E;return this.openNode(A,b,S),b.state=p.OpenTag,E=this.indent(A,b,S)+"<?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,S),b.state=p.None,this.closeNode(A,b,S),E},g.prototype.docType=function(A,b,S){var E,C,_,T,w;if(S||(S=0),this.openNode(A,b,S),b.state=p.OpenTag,T=this.indent(A,b,S),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,S),b.state=p.InsideTag,w=A.children,C=0,_=w.length;C<_;C++)E=w[C],T+=this.writeChildNode(E,b,S+1);b.state=p.CloseTag,T+="]"}return b.state=p.CloseTag,T+=b.spaceBeforeSlash+">",T+=this.endline(A,b,S),b.state=p.None,this.closeNode(A,b,S),T},g.prototype.element=function(A,b,S){var E,C,_,T,w,O,I,R,M,B,P,X,F,j;S||(S=0),B=!1,P="",this.openNode(A,b,S),b.state=p.OpenTag,P+=this.indent(A,b,S)+"<"+A.name,X=A.attribs;for(M in X){if(!h.call(X,M))continue;E=X[M],P+=this.attribute(E,b,S)}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?(P+=">",b.state=p.CloseTag,P+="</"+A.name+">"+this.endline(A,b,S)):(b.state=p.CloseTag,P+=b.spaceBeforeSlash+"/>"+this.endline(A,b,S));else if(b.pretty&&_===1&&(T.type===y.Text||T.type===y.Raw)&&T.value!=null)P+=">",b.state=p.InsideTag,b.suppressPrettyCount++,B=!0,P+=this.writeChildNode(T,b,S+1),b.suppressPrettyCount--,B=!1,b.state=p.CloseTag,P+="</"+A.name+">"+this.endline(A,b,S);else{if(b.dontPrettyTextNodes){for(F=A.children,w=0,I=F.length;w<I;w++)if(C=F[w],(C.type===y.Text||C.type===y.Raw)&&C.value!=null){b.suppressPrettyCount++,B=!0;break}}for(P+=">"+this.endline(A,b,S),b.state=p.InsideTag,j=A.children,O=0,R=j.length;O<R;O++)C=j[O],P+=this.writeChildNode(C,b,S+1);b.state=p.CloseTag,P+=this.indent(A,b,S)+"</"+A.name+">",B&&b.suppressPrettyCount--,P+=this.endline(A,b,S),b.state=p.None}return this.closeNode(A,b,S),P},g.prototype.writeChildNode=function(A,b,S){switch(A.type){case y.CData:return this.cdata(A,b,S);case y.Comment:return this.comment(A,b,S);case y.Element:return this.element(A,b,S);case y.Raw:return this.raw(A,b,S);case y.Text:return this.text(A,b,S);case y.ProcessingInstruction:return this.processingInstruction(A,b,S);case y.Dummy:return"";case y.Declaration:return this.declaration(A,b,S);case y.DocType:return this.docType(A,b,S);case y.AttributeDeclaration:return this.dtdAttList(A,b,S);case y.ElementDeclaration:return this.dtdElement(A,b,S);case y.EntityDeclaration:return this.dtdEntity(A,b,S);case y.NotationDeclaration:return this.dtdNotation(A,b,S);default:throw new Error("Unknown XML node type: "+A.constructor.name)}},g.prototype.processingInstruction=function(A,b,S){var E;return this.openNode(A,b,S),b.state=p.OpenTag,E=this.indent(A,b,S)+"<?",b.state=p.InsideTag,E+=A.target,A.value&&(E+=" "+A.value),b.state=p.CloseTag,E+=b.spaceBeforeSlash+"?>",E+=this.endline(A,b,S),b.state=p.None,this.closeNode(A,b,S),E},g.prototype.raw=function(A,b,S){var E;return this.openNode(A,b,S),b.state=p.OpenTag,E=this.indent(A,b,S),b.state=p.InsideTag,E+=A.value,b.state=p.CloseTag,E+=this.endline(A,b,S),b.state=p.None,this.closeNode(A,b,S),E},g.prototype.text=function(A,b,S){var E;return this.openNode(A,b,S),b.state=p.OpenTag,E=this.indent(A,b,S),b.state=p.InsideTag,E+=A.value,b.state=p.CloseTag,E+=this.endline(A,b,S),b.state=p.None,this.closeNode(A,b,S),E},g.prototype.dtdAttList=function(A,b,S){var E;return this.openNode(A,b,S),b.state=p.OpenTag,E=this.indent(A,b,S)+"<!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,S),b.state=p.None,this.closeNode(A,b,S),E},g.prototype.dtdElement=function(A,b,S){var E;return this.openNode(A,b,S),b.state=p.OpenTag,E=this.indent(A,b,S)+"<!ELEMENT",b.state=p.InsideTag,E+=" "+A.name+" "+A.value,b.state=p.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(A,b,S),b.state=p.None,this.closeNode(A,b,S),E},g.prototype.dtdEntity=function(A,b,S){var E;return this.openNode(A,b,S),b.state=p.OpenTag,E=this.indent(A,b,S)+"<!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,S),b.state=p.None,this.closeNode(A,b,S),E},g.prototype.dtdNotation=function(A,b,S){var E;return this.openNode(A,b,S),b.state=p.OpenTag,E=this.indent(A,b,S)+"<!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,S),b.state=p.None,this.closeNode(A,b,S),E},g.prototype.openNode=function(A,b,S){},g.prototype.closeNode=function(A,b,S){},g.prototype.openAttribute=function(A,b,S){},g.prototype.closeAttribute=function(A,b,S){},g}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(k,D,n){"use strict";(function(){var y,p,x,v,m,f,d,u,o,i;i=k("./Utility"),u=i.assign,o=i.isFunction,x=k("./XMLDOMImplementation"),v=k("./XMLDocument"),m=k("./XMLDocumentCB"),d=k("./XMLStringWriter"),f=k("./XMLStreamWriter"),y=k("./NodeType"),p=k("./WriterState"),D.exports.create=function(t,s,e,l){var r,a;if(t==null)throw new Error("Root element needs a name.");return l=u({},s,e,l),r=new v(l),a=r.element(t),l.headless||(r.declaration(l),(l.pubID!=null||l.sysID!=null)&&r.dtd(l)),a},D.exports.begin=function(t,s,e){var l;return o(t)&&(l=[t,s],s=l[0],e=l[1],t={}),s?new m(t,s,e):new v(t)},D.exports.stringWriter=function(t){return new d(t)},D.exports.streamWriter=function(t,s){return new f(t,s)},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(k,D,n){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(k,D,n){"use strict";var y=k("buffer").Buffer,p=k("./sha"),x=k("./md5"),v={sha1:p,md5:x},m=64,f=y.alloc(m);f.fill(0);function d(i,t,s){y.isBuffer(t)||(t=y.from(t)),y.isBuffer(s)||(s=y.from(s)),t.length>m?t=i(t):t.length<m&&(t=y.concat([t,f],m));for(var e=y.alloc(m),l=y.alloc(m),r=0;r<m;r++)e[r]=t[r]^54,l[r]=t[r]^92;var a=i(y.concat([e,s]));return i(y.concat([l,a]))}function u(i,t){i=i||"sha1";var s=v[i],e=[],l=0;return s||o("algorithm:",i,"is not yet supported"),{update:function(a){return y.isBuffer(a)||(a=y.from(a)),e.push(a),l+=a.length,this},digest:function(a){var c=y.concat(e),h=t?d(s,t,c):s(c);return e=null,a?h.toString(a):h}}}function o(){var i=[].slice.call(arguments).join(" ");throw new Error([i,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}n.createHash=function(i){return u(i)},n.createHmac=function(i,t){return u(i,t)},n.createCredentials=function(){o("sorry,createCredentials is not implemented yet")},n.createCipher=function(){o("sorry,createCipher is not implemented yet")},n.createCipheriv=function(){o("sorry,createCipheriv is not implemented yet")},n.createDecipher=function(){o("sorry,createDecipher is not implemented yet")},n.createDecipheriv=function(){o("sorry,createDecipheriv is not implemented yet")},n.createSign=function(){o("sorry,createSign is not implemented yet")},n.createVerify=function(){o("sorry,createVerify is not implemented yet")},n.createDiffieHellman=function(){o("sorry,createDiffieHellman is not implemented yet")},n.pbkdf2=function(){o("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(k,D,n){"use strict";var y=k("buffer").Buffer,p=4,x=y.alloc(p);x.fill(0);var v=8;function m(u,o){if(u.length%p!==0){var i=u.length+(p-u.length%p);u=y.concat([u,x],i)}for(var t=[],s=o?u.readInt32BE:u.readInt32LE,e=0;e<u.length;e+=p)t.push(s.call(u,e));return t}function f(u,o,i){for(var t=y.alloc(o),s=i?t.writeInt32BE:t.writeInt32LE,e=0;e<u.length;e++)s.call(t,u[e],e*4,!0);return t}function d(u,o,i,t){y.isBuffer(u)||(u=y.from(u));var s=o(m(u,t),u.length*v);return f(s,i,t)}D.exports={hash:d}},{buffer:73}],286:[function(k,D,n){"use strict";var y=k("./helpers");function p(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function x(t,s){t[s>>5]|=128<<s%32,t[(s+64>>>9<<4)+14]=s;for(var e=1732584193,l=-271733879,r=-1732584194,a=271733878,c=0;c<t.length;c+=16){var h=e,g=l,A=r,b=a;e=m(e,l,r,a,t[c+0],7,-680876936),a=m(a,e,l,r,t[c+1],12,-389564586),r=m(r,a,e,l,t[c+2],17,606105819),l=m(l,r,a,e,t[c+3],22,-1044525330),e=m(e,l,r,a,t[c+4],7,-176418897),a=m(a,e,l,r,t[c+5],12,1200080426),r=m(r,a,e,l,t[c+6],17,-1473231341),l=m(l,r,a,e,t[c+7],22,-45705983),e=m(e,l,r,a,t[c+8],7,1770035416),a=m(a,e,l,r,t[c+9],12,-1958414417),r=m(r,a,e,l,t[c+10],17,-42063),l=m(l,r,a,e,t[c+11],22,-1990404162),e=m(e,l,r,a,t[c+12],7,1804603682),a=m(a,e,l,r,t[c+13],12,-40341101),r=m(r,a,e,l,t[c+14],17,-1502002290),l=m(l,r,a,e,t[c+15],22,1236535329),e=f(e,l,r,a,t[c+1],5,-165796510),a=f(a,e,l,r,t[c+6],9,-1069501632),r=f(r,a,e,l,t[c+11],14,643717713),l=f(l,r,a,e,t[c+0],20,-373897302),e=f(e,l,r,a,t[c+5],5,-701558691),a=f(a,e,l,r,t[c+10],9,38016083),r=f(r,a,e,l,t[c+15],14,-660478335),l=f(l,r,a,e,t[c+4],20,-405537848),e=f(e,l,r,a,t[c+9],5,568446438),a=f(a,e,l,r,t[c+14],9,-1019803690),r=f(r,a,e,l,t[c+3],14,-187363961),l=f(l,r,a,e,t[c+8],20,1163531501),e=f(e,l,r,a,t[c+13],5,-1444681467),a=f(a,e,l,r,t[c+2],9,-51403784),r=f(r,a,e,l,t[c+7],14,1735328473),l=f(l,r,a,e,t[c+12],20,-1926607734),e=d(e,l,r,a,t[c+5],4,-378558),a=d(a,e,l,r,t[c+8],11,-2022574463),r=d(r,a,e,l,t[c+11],16,1839030562),l=d(l,r,a,e,t[c+14],23,-35309556),e=d(e,l,r,a,t[c+1],4,-1530992060),a=d(a,e,l,r,t[c+4],11,1272893353),r=d(r,a,e,l,t[c+7],16,-155497632),l=d(l,r,a,e,t[c+10],23,-1094730640),e=d(e,l,r,a,t[c+13],4,681279174),a=d(a,e,l,r,t[c+0],11,-358537222),r=d(r,a,e,l,t[c+3],16,-722521979),l=d(l,r,a,e,t[c+6],23,76029189),e=d(e,l,r,a,t[c+9],4,-640364487),a=d(a,e,l,r,t[c+12],11,-421815835),r=d(r,a,e,l,t[c+15],16,530742520),l=d(l,r,a,e,t[c+2],23,-995338651),e=u(e,l,r,a,t[c+0],6,-198630844),a=u(a,e,l,r,t[c+7],10,1126891415),r=u(r,a,e,l,t[c+14],15,-1416354905),l=u(l,r,a,e,t[c+5],21,-57434055),e=u(e,l,r,a,t[c+12],6,1700485571),a=u(a,e,l,r,t[c+3],10,-1894986606),r=u(r,a,e,l,t[c+10],15,-1051523),l=u(l,r,a,e,t[c+1],21,-2054922799),e=u(e,l,r,a,t[c+8],6,1873313359),a=u(a,e,l,r,t[c+15],10,-30611744),r=u(r,a,e,l,t[c+6],15,-1560198380),l=u(l,r,a,e,t[c+13],21,1309151649),e=u(e,l,r,a,t[c+4],6,-145523070),a=u(a,e,l,r,t[c+11],10,-1120210379),r=u(r,a,e,l,t[c+2],15,718787259),l=u(l,r,a,e,t[c+9],21,-343485551),e=o(e,h),l=o(l,g),r=o(r,A),a=o(a,b)}return Array(e,l,r,a)}function v(t,s,e,l,r,a){return o(i(o(o(s,t),o(l,a)),r),e)}function m(t,s,e,l,r,a,c){return v(s&e|~s&l,t,s,r,a,c)}function f(t,s,e,l,r,a,c){return v(s&l|e&~l,t,s,r,a,c)}function d(t,s,e,l,r,a,c){return v(s^e^l,t,s,r,a,c)}function u(t,s,e,l,r,a,c){return v(e^(s|~l),t,s,r,a,c)}function o(t,s){var e=(t&65535)+(s&65535),l=(t>>16)+(s>>16)+(e>>16);return l<<16|e&65535}function i(t,s){return t<<s|t>>>32-s}D.exports=function(s){return y.hash(s,x,16)}},{"./helpers":285}],287:[function(k,D,n){"use strict";var y=k("./helpers");function p(d,u){d[u>>5]|=128<<24-u%32,d[(u+64>>9<<4)+15]=u;for(var o=Array(80),i=1732584193,t=-271733879,s=-1732584194,e=271733878,l=-1009589776,r=0;r<d.length;r+=16){for(var a=i,c=t,h=s,g=e,A=l,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 S=m(m(f(i,5),x(b,t,s,e)),m(m(l,o[b]),v(b)));l=e,e=s,s=f(t,30),t=i,i=S}i=m(i,a),t=m(t,c),s=m(s,h),e=m(e,g),l=m(l,A)}return Array(i,t,s,e,l)}function x(d,u,o,i){return d<20?u&o|~u&i:d<40?u^o^i:d<60?u&o|u&i|o&i:u^o^i}function v(d){return d<20?1518500249:d<40?1859775393:d<60?-1894007588:-899497514}function m(d,u){var o=(d&65535)+(u&65535),i=(d>>16)+(u>>16)+(o>>16);return i<<16|o&65535}function f(d,u){return d<<u|d>>>32-u}D.exports=function(u){return y.hash(u,p,20,!0)}},{"./helpers":285}],288:[function(k,D,n){"use strict";D.exports=function(){return function(){}}},{}],289:[function(k,D,n){(function(y){"use strict";var p=k("babel-runtime/helpers/typeof"),x=v(p);function v(i){return i&&i.__esModule?i:{default:i}}var m=k("stream"),f=m.Stream,d=k("../lib/common/utils/isArray"),u=d.isArray;D.exports.string=function(t){return typeof t=="string"},D.exports.array=u,D.exports.buffer=y.isBuffer;function o(i){return i instanceof f}D.exports.writableStream=function(t){return o(t)&&typeof t._write=="function"&&(0,x.default)(t._writableState)==="object"}}).call(this,{isBuffer:k("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(k,D,n){"use strict";n.encodeURIComponent=function(y){try{return encodeURIComponent(y)}catch(p){return y}},n.escape=k("escape-html"),n.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(k,D,n){(function(y,p){"use strict";var x=k("babel-runtime/core-js/json/stringify"),v=d(x),m=k("babel-runtime/helpers/typeof"),f=d(m);function d(b){return b&&b.__esModule?b:{default:b}}var u=k("util"),o=k("url"),i=k("http"),t=k("https"),s=k("debug")("urllib"),e=k("humanize-ms"),l,r=0,a=Math.pow(2,31)-10,c=/^https?:\/\//i;function h(b,S){return b===void 0?S:b}function g(b,S){return function(E,C,_){if(E)return S(E);b({data:C,status:_.statusCode,headers:_.headers,res:_})}}n.TIMEOUTS=[e("300s"),e("300s")];var A=["json","text"];n.request=function(S,E,C){return arguments.length===2&&typeof E=="function"&&(C=E,E=null),typeof C=="function"?n.requestWithCallback(S,E,C):(l||(l=k("any-promise")),new l(function(_,T){n.requestWithCallback(S,E,g(_,T))}))},n.requestWithCallback=function(S,E,C){if(!S||typeof S!="string"&&(typeof S=="undefined"?"undefined":(0,f.default)(S))!=="object"){var _=u.format("expect request url to be a string or a http request options, but got %j",S);throw new Error(_)}arguments.length===2&&typeof E=="function"&&(C=E,E=null),E=E||{},r>=a&&(r=0);var T=++r;E.requestUrls=E.requestUrls||[];var w={requestId:T,url:S,args:E,ctx:E.ctx};E.emitter&&E.emitter.emit("request",w),E.timeout=E.timeout||n.TIMEOUTS,E.maxRedirects=E.maxRedirects||10,E.streaming=E.streaming||E.customResponse;var O=Date.now(),I;typeof S=="string"?(c.test(S)||(S="http://"+S),I=o.parse(S)):I=S;var R=(E.type||E.method||I.method||"GET").toUpperCase(),M=I.port||80,B=i,P=h(E.agent,n.agent),X=E.fixJSONCtlChars;I.protocol==="https:"&&(B=t,P=h(E.httpsAgent,n.httpsAgent),I.port||(M=443));var F={host:I.hostname||I.host||"localhost",path:I.path||"/",method:R,port:M,agent:P,headers:E.headers||{},lookup:E.lookup};Array.isArray(E.timeout)?F.requestTimeout=E.timeout[E.timeout.length-1]:typeof E.timeout!="undefined"&&(F.requestTimeout=E.timeout);for(var j=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],K=0;K<j.length;K++){var z=j[K];E.hasOwnProperty(z)&&(F[z]=E[z])}F.rejectUnauthorized===!1&&!F.hasOwnProperty("secureOptions")&&(F.secureOptions=k("constants").SSL_OP_NO_TLSv1_2);var V=E.auth||I.auth;V&&(F.auth=V);var Q=E.content||E.data,G=R==="GET"||R==="HEAD"||E.dataAsQueryString;if(!E.content&&(Q&&!(typeof Q=="string"||p.isBuffer(Q))))if(G)Q=E.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q);else{var te=F.headers["Content-Type"]||F.headers["content-type"];te||(E.contentType==="json"?te="application/json":te="application/x-www-form-urlencoded",F.headers["Content-Type"]=te),parseContentType(te).type==="application/json"?Q=(0,v.default)(Q):Q=E.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q)}G&&Q&&(F.path+=(I.query?"&":"?")+Q,Q=null);var q=0;if(Q){var le=Q.length;p.isBuffer(Q)||(le=p.byteLength(Q)),q=F.headers["Content-Length"]=le}E.dataType==="json"&&(F.headers.Accept="application/json"),typeof E.beforeRequest=="function"&&E.beforeRequest(F);var re=null,we=null,Ie=null,Me=!1,Je=!1,Ve=0,ut=-1,Fe=!1,ae="",at="",he=null;E.timing&&(he={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function J(){re&&(clearTimeout(re),re=null)}function Y(){we&&(clearTimeout(we),we=null)}function $(He,ir,ct){if(Y(),!C){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),T,y.pid,F.method,S),He&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),T,y.pid,He.name,He.message,He.stack);return}var Xt=C;C=null;var hr={};if(ct&&(ut=ct.statusCode,hr=ct.headers),ut===401&&hr["www-authenticate"]&&(!E.headers||!E.headers.Authorization)&&E.digestAuth){var Jt=hr["www-authenticate"];if(Jt.indexOf("Digest ")>=0)return s("Request#%d %s: got digest auth header WWW-Authenticate: %s",T,S,Jt),E.headers=E.headers||{},E.headers.Authorization=digestAuthHeader(F.method,F.path,Jt,E.digestAuth),s("Request#%d %s: auth with digest header: %s",T,S,E.headers.Authorization),ct.headers["set-cookie"]&&(E.headers.Cookie=ct.headers["set-cookie"].join(";")),n.requestWithCallback(S,E,Xt)}var Pt=Date.now()-O;he&&(he.contentDownload=Pt),s("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Pt,Ve,ut,F.method,F.host,F.path,Je,he);var Wt={status:ut,statusCode:ut,headers:hr,size:Ve,aborted:Fe,rt:Pt,keepAliveSocket:Je,data:ir,requestUrls:E.requestUrls,timing:he,remoteAddress:ae,remotePort:at};if(He){var Ge="";P&&typeof P.getCurrentStatus=="function"&&(Ge=", agent status: "+(0,v.default)(P.getCurrentStatus())),He.message+=", "+F.method+" "+S+" "+ut+" (connected: "+Me+", keepalive socket: "+Je+Ge+`)
headers: `+(0,v.default)(hr),He.data=ir,He.path=F.path,He.status=ut,He.headers=hr,He.res=Wt}Xt(He,ir,E.streaming?ct:Wt),E.emitter&&(w.url=S,w.socket=xt&&xt.connection,w.options=F,w.size=q,E.emitter.emit("response",{requestId:T,error:He,ctx:E.ctx,req:w,res:Wt}))}function de(He){var ir=null;if(E.followRedirect&&statuses.redirect[He.statusCode]){E._followRedirectCount=(E._followRedirectCount||0)+1;var ct=He.headers.location;if(!ct)ir=new Error("Got statusCode "+He.statusCode+" but cannot resolve next location from headers"),ir.name="FollowRedirectError";else if(E._followRedirectCount>E.maxRedirects)ir=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+S),ir.name="MaxRedirectError";else{var Xt=E.formatRedirectUrl?E.formatRedirectUrl(S,ct):o.resolve(S,ct);s("Request#%d %s: `redirected` from %s to %s",T,F.path,S,Xt),Y(),E.headers&&E.headers.Host&&c.test(ct)&&(E.headers.Host=null);var hr=C;return C=null,n.requestWithCallback(Xt,E,hr),{redirect:!0,error:null}}}return{redirect:!1,error:ir}}!F.headers["User-Agent"]&&!F.headers["user-agent"]&&(F.headers["User-Agent"]=navigator.userAgent),E.gzip&&(!F.headers["Accept-Encoding"]&&!F.headers["accept-encoding"]&&(F.headers["Accept-Encoding"]="gzip"));function be(He,ir,ct){var Xt=He.headers["content-encoding"];return ct(null,ir,Xt)}var Ce=E.writeStream;s("Request#%d %s %s with headers %j, options.path: %s",T,R,S,F.headers,F.path),E.requestUrls.push(S);function Be(He){if(he&&(he.waiting=Date.now()-O),s("Request#%d %s `req response` event emit: status %d, headers: %j",T,S,He.statusCode,He.headers),E.streaming){var ir=de(He);if(ir.redirect){He.resume();return}return ir.error?(He.resume(),$(ir.error,null,He)):$(null,null,He)}if(He.on("close",function(){s("Request#%d %s: `res close` event emit, total size %d",T,S,Ve)}),He.on("error",function(){s("Request#%d %s: `res error` event emit, total size %d",T,S,Ve)}),He.on("aborted",function(){Fe=!0,s("Request#%d %s: `res aborted` event emit, total size %d",T,S,Ve)}),Ce){var ir=de(He);if(ir.redirect){He.resume();return}return ir.error?(He.resume(),Ce.end(),$(ir.error,null,He)):(E.consumeWriteStream===!1?He.on("end",$.bind(null,null,null,He)):isNode010||isNode012?first([[Ce,"close"],[He,"aborted"]],function(hr,Jt,Pt){s("Request#%d %s: writeStream or res %s event emitted",T,S,Pt),$(Ie||null,null,He)}):Ce.on("close",function(){s("Request#%d %s: writeStream close event emitted",T,S),$(Ie||null,null,He)}),He.pipe(Ce))}var ct=[];He.on("data",function(Xt){s("Request#%d %s: `res data` event emit, size %d",T,S,Xt.length),Ve+=Xt.length,ct.push(Xt)}),He.on("end",function(){var Xt=p.concat(ct,Ve);if(s("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",T,S,Ve,He._dumped),Ie)return $(Ie,Xt,He);var hr=de(He);if(hr.error)return $(hr.error,Xt,He);if(hr.redirect)return;be(He,Xt,function(Jt,Pt,Wt){if(Jt)return $(Jt,Xt,He);if(!Wt&&A.indexOf(E.dataType)>=0){try{Pt=decodeBodyByCharset(Pt,He)}catch(pe){return s("decodeBodyByCharset error: %s",pe),$(null,Pt,He)}if(E.dataType==="json")if(Ve===0)Pt=null;else{var Ge=parseJSON(Pt,X);Ge.error?Jt=Ge.error:Pt=Ge.data}}Fe&&s("Request#%d %s: Remote socket was terminated before `response.end()` was called",T,S),$(Jt,Pt,He)})})}var fe,Se;Array.isArray(E.timeout)?(fe=e(E.timeout[0]),Se=e(E.timeout[1])):fe=Se=e(E.timeout),s("ConnectTimeout: %d, ResponseTimeout: %d",fe,Se);function ke(){s("Connect timer ticking, timeout: %d",fe),re=setTimeout(function(){re=null,ut===-1&&(ut=-2);var He="Connect timeout for "+fe+"ms",ir="ConnectionTimeoutError";xt.socket||(ir="SocketAssignTimeoutError",He+=", working sockets is full"),Ie=new Error(He),Ie.name=ir,Ie.requestId=T,s("ConnectTimeout: Request#%d %s %s: %s, connected: %s",T,S,Ie.name,He,Me),ht()},fe)}function rt(){s("Response timer ticking, timeout: %d",Se),we=setTimeout(function(){we=null;var He="Response timeout for "+Se+"ms",ir="ResponseTimeoutError";Ie=new Error(He),Ie.name=ir,Ie.requestId=T,s("ResponseTimeout: Request#%d %s %s: %s, connected: %s",T,S,Ie.name,He,Me),ht()},Se)}var xt;F.mode=E.mode?E.mode:"";try{xt=B.request(F,Be)}catch(He){return $(He)}typeof window=="undefined"?ke():xt.on("requestTimeout",function(){ut===-1&&(ut=-2);var He="Connect timeout for "+fe+"ms",ir="ConnectionTimeoutError";Ie=new Error(He),Ie.name=ir,Ie.requestId=T,ht()});function ht(){s("Request#%d %s abort, connected: %s",T,S,Me),xt.socket||(Ie.noSocket=!0,$(Ie)),xt.abort()}return he&&xt.on("finish",function(){he.requestSent=Date.now()-O}),xt.once("socket",function(He){he&&(he.queuing=Date.now()-O),isNode010&&He.socket&&(He=He.socket);var ir=He.readyState;if(ir==="opening"){He.once("lookup",function(ct,Xt,hr){s("Request#%d %s lookup: %s, %s, %s",T,S,ct,Xt,hr),he&&(he.dnslookup=Date.now()-O),Xt&&(ae=Xt)}),He.once("connect",function(){he&&(he.connected=Date.now()-O),J(),rt(),s("Request#%d %s new socket connected",T,S),Me=!0,ae||(ae=He.remoteAddress),at=He.remotePort});return}s("Request#%d %s reuse socket connected, readyState: %s",T,S,ir),Me=!0,Je=!0,ae||(ae=He.remoteAddress),at=He.remotePort,J(),rt()}),xt.on("error",function(He){(He.name==="Error"||He.name==="TypeError")&&(He.name=Me?"ResponseError":"RequestError"),He.message+=' (req "error")',s("Request#%d %s `req error` event emit, %s: %s",T,S,He.name,He.message),$(Ie||He)}),Ce&&Ce.once("error",function(He){He.message+=' (writeStream "error")',Ie=He,s("Request#%d %s `writeStream error` event emit, %s: %s",T,S,He.name,He.message),ht()}),E.stream?(E.stream.pipe(xt),E.stream.once("error",function(He){He.message+=' (stream "error")',Ie=He,s("Request#%d %s `readStream error` event emit, %s: %s",T,S,He.name,He.message),ht()})):xt.end(Q),xt.requestId=T,xt}}).call(this,k("_process"),k("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("yLpj"))},n1HI:function(k,D,n){var y=n("hX1E"),p=y.normalizeRadian,x=Math.PI*2;function v(m,f,d,u,o,i,t,s,e){if(t===0)return!1;var l=t;s-=m,e-=f;var r=Math.sqrt(s*s+e*e);if(r-l>d||r+l<d)return!1;if(Math.abs(u-o)%x<1e-4)return!0;if(i){var a=u;u=p(o),o=p(a)}else u=p(u),o=p(o);u>o&&(o+=x);var c=Math.atan2(e,s);return c<0&&(c+=x),c>=u&&c<=o||c+x>=u&&c+x<=o}D.containStroke=v},n4Lv:function(k,D,n){var y=n("7hqr"),p=y.isDimensionStacked,x=n("bYtY"),v=x.map;function m(u,o,i){var t=u.getBaseAxis(),s=u.getOtherAxis(t),e=f(s,i),l=t.dim,r=s.dim,a=o.mapDimension(r),c=o.mapDimension(l),h=r==="x"||r==="radius"?1:0,g=v(u.dimensions,function(S){return o.mapDimension(S)}),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:l,stacked:!!A,valueDim:a,baseDim:c,baseDataOffset:h,stackedOverDimension:o.getCalculationInfo("stackedOverDimension")}}function f(u,o){var i=0,t=u.scale.getExtent();return o==="start"?i=t[0]:o==="end"?i=t[1]:t[0]>0?i=t[0]:t[1]<0&&(i=t[1]),i}function d(u,o,i,t){var s=NaN;u.stacked&&(s=i.get(i.getCalculationInfo("stackedOverDimension"),t)),isNaN(s)&&(s=u.valueStart);var e=u.baseDataOffset,l=[];return l[e]=i.get(u.baseDim,t),l[1-e]=s,o.dataToPoint(l)}D.prepareDataCoordInfo=m,D.getStackedOnPoint=d},n6Mw:function(k,D,n){var y=n("SrGk"),p=n("bYtY"),x=n("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 u=this.getTextSvgElement(f);u&&this.updateDom(u,f.__clipPaths,!0),this.markUsed(f)},v.prototype.updateDom=function(f,d,u){if(d&&d.length>0){var o=this.getDefs(!0),i=d[0],t,s,e=u?"_textDom":"_dom";i[e]?(s=i[e].getAttribute("id"),t=i[e],o.contains(t)||o.appendChild(t)):(s="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,t=this.createElement("clipPath"),t.setAttribute("id",s),o.appendChild(t),i[e]=t);var l=this.getSvgProxy(i);if(i.transform&&i.parent.invTransform&&!u){var r=Array.prototype.slice.call(i.transform);x.mul(i.transform,i.parent.invTransform,i.transform),l.brush(i),i.transform=r}else l.brush(i);var a=this.getSvgElement(i);t.innerHTML="",t.appendChild(a.cloneNode()),f.setAttribute("clip-path","url(#"+s+")"),d.length>1&&this.updateDom(t,d.slice(1),u)}else f&&f.setAttribute("clip-path","none")},v.prototype.markUsed=function(f){var d=this;f.__clipPaths&&p.each(f.__clipPaths,function(u){u._dom&&y.prototype.markUsed.call(d,u._dom),u._textDom&&y.prototype.markUsed.call(d,u._textDom)})};var m=v;k.exports=m},nCxF:function(k,D,n){var y=n("QBsz"),p=y.min,x=y.max,v=y.scale,m=y.distance,f=y.add,d=y.clone,u=y.sub;function o(i,t,s,e){var l=[],r=[],a=[],c=[],h,g,A,b;if(e){A=[Infinity,Infinity],b=[-Infinity,-Infinity];for(var S=0,E=i.length;S<E;S++)p(A,A,i[S]),x(b,b,i[S]);p(A,A,e[0]),x(b,b,e[1])}for(var S=0,E=i.length;S<E;S++){var C=i[S];if(s)h=i[S?S-1:E-1],g=i[(S+1)%E];else if(S===0||S===E-1){l.push(d(i[S]));continue}else h=i[S-1],g=i[S+1];u(r,g,h),v(r,r,t);var _=m(C,h),T=m(C,g),w=_+T;w!==0&&(_/=w,T/=w),v(a,r,-_),v(c,r,T);var O=f([],C,a),I=f([],C,c);e&&(x(O,O,A),p(O,O,b),x(I,I,A),p(I,I,b)),l.push(O),l.push(I)}return s&&l.push(l.shift()),l}k.exports=o},nKiI:function(k,D,n){var y=n("bYtY"),p=n("mFDi"),x=n("OELB"),v=x.parsePercent,m=x.MAX_SAFE_INTEGER,f=n("+TT/"),d=n("VaxA"),u=Math.max,o=Math.min,i=y.retrieve,t=y.each,s=["itemStyle","borderWidth"],e=["itemStyle","gapWidth"],l=["upperLabel","show"],r=["upperLabel","height"],a={seriesType:"treemap",reset:function(O,I,R,M){var B=R.getWidth(),P=R.getHeight(),X=O.option,F=f.getLayoutRect(O.getBoxLayoutParams(),{width:R.getWidth(),height:R.getHeight()}),j=X.size||[],K=v(i(F.width,j[0]),B),z=v(i(F.height,j[1]),P),V=M&&M.type,Q=["treemapZoomToNode","treemapRootToNode"],G=d.retrieveTargetInfo(M,Q,O),te=V==="treemapRender"||V==="treemapMove"?M.rootRect:null,q=O.getViewRoot(),le=d.getPathToRoot(q);if(V!=="treemapMove"){var re=V==="treemapZoomToNode"?C(O,G,q,K,z):te?[te.width,te.height]:[K,z],we=X.sort;we&&we!=="asc"&&we!=="desc"&&(we="desc");var Ie={squareRatio:X.squareRatio,sort:we,leafDepth:X.leafDepth};q.hostTree.clearLayouts();var Me={x:0,y:0,width:re[0],height:re[1],area:re[0]*re[1]};q.setLayout(Me),c(q,Ie,!1,0);var Me=q.getLayout();t(le,function(Ve,ut){var Fe=(le[ut+1]||q).getValue();Ve.setLayout(y.extend({dataExtent:[Fe,Fe],borderWidth:0,upperHeight:0},Me))})}var Je=O.getData().tree.root;Je.setLayout(_(F,te,G),!0),O.setLayoutInfo(F),T(Je,new p(-F.x,-F.y,B,P),le,q,0)}};function c(O,I,R,M){var B,P;if(O.isRemoved())return;var X=O.getLayout();B=X.width,P=X.height;var F=O.getModel(),j=F.get(s),K=F.get(e)/2,z=w(F),V=Math.max(j,z),Q=j-K,G=V-K,F=O.getModel();O.setLayout({borderWidth:j,upperHeight:V,upperLabelHeight:z},!0),B=u(B-2*Q,0),P=u(P-Q-G,0);var te=B*P,q=h(O,F,te,I,R,M);if(!q.length)return;var le={x:Q,y:G,width:B,height:P},re=o(B,P),we=Infinity,Ie=[];Ie.area=0;for(var Me=0,Je=q.length;Me<Je;){var Ve=q[Me];Ie.push(Ve),Ie.area+=Ve.getLayout().area;var ut=S(Ie,re,I.squareRatio);ut<=we?(Me++,we=ut):(Ie.area-=Ie.pop().getLayout().area,E(Ie,re,le,K,!1),re=o(le.width,le.height),Ie.length=Ie.area=0,we=Infinity)}if(Ie.length&&E(Ie,re,le,K,!0),!R){var Fe=F.get("childrenVisibleMin");Fe!=null&&te<Fe&&(R=!0)}for(var Me=0,Je=q.length;Me<Je;Me++)c(q[Me],I,R,M+1)}function h(O,I,R,M,B,P){var X=O.children||[],F=M.sort;F!=="asc"&&F!=="desc"&&(F=null);var j=M.leafDepth!=null&&M.leafDepth<=P;if(B&&!j)return O.viewChildren=[];X=y.filter(X,function(G){return!G.isRemoved()}),A(X,F);var K=b(I,X,F);if(K.sum===0)return O.viewChildren=[];if(K.sum=g(I,R,K.sum,F,X),K.sum===0)return O.viewChildren=[];for(var z=0,V=X.length;z<V;z++){var Q=X[z].getValue()/K.sum*R;X[z].setLayout({area:Q})}return j&&(X.length&&O.setLayout({isLeafRoot:!0},!0),X.length=0),O.viewChildren=X,O.setLayout({dataExtent:K.dataExtent},!0),X}function g(O,I,R,M,B){if(!M)return R;for(var P=O.get("visibleMin"),X=B.length,F=X,j=X-1;j>=0;j--){var K=B[M==="asc"?X-j-1:j].getValue();K/R*I<P&&(F=j,R-=K)}return M==="asc"?B.splice(0,X-F):B.splice(F,X-F),R}function A(O,I){return I&&O.sort(function(R,M){var B=I==="asc"?R.getValue()-M.getValue():M.getValue()-R.getValue();return B===0?I==="asc"?R.dataIndex-M.dataIndex:M.dataIndex-R.dataIndex:B}),O}function b(O,I,R){for(var M=0,B=0,P=I.length;B<P;B++)M+=I[B].getValue();var X=O.get("visualDimension"),F;if(!I||!I.length)F=[NaN,NaN];else if(X==="value"&&R)F=[I[I.length-1].getValue(),I[0].getValue()],R==="asc"&&F.reverse();else{var F=[Infinity,-Infinity];t(I,function(K){var z=K.getValue(X);z<F[0]&&(F[0]=z),z>F[1]&&(F[1]=z)})}return{sum:M,dataExtent:F}}function S(O,I,R){for(var M=0,B=Infinity,P=0,X,F=O.length;P<F;P++)X=O[P].getLayout().area,X&&(X<B&&(B=X),X>M&&(M=X));var j=O.area*O.area,K=I*I*R;return j?u(K*M/j,j/(K*B)):Infinity}function E(O,I,R,M,B){var P=I===R.width?0:1,X=1-P,F=["x","y"],j=["width","height"],K=R[F[P]],z=I?O.area/I:0;(B||z>R[j[X]])&&(z=R[j[X]]);for(var V=0,Q=O.length;V<Q;V++){var G=O[V],te={},q=z?G.getLayout().area/z:0,le=te[j[X]]=u(z-2*M,0),re=R[F[P]]+R[j[P]]-K,we=V===Q-1||re<q?re:q,Ie=te[j[P]]=u(we-2*M,0);te[F[X]]=R[F[X]]+o(M,le/2),te[F[P]]=K+o(M,Ie/2),K+=we,G.setLayout(te,!0)}R[F[X]]+=z,R[j[X]]-=z}function C(O,I,R,M,B){var P=(I||{}).node,X=[M,B];if(!P||P===R)return X;for(var F,j=M*B,K=j*O.option.zoomToNodeRatio;F=P.parentNode;){for(var z=0,V=F.children,Q=0,G=V.length;Q<G;Q++)z+=V[Q].getValue();var te=P.getValue();if(te===0)return X;K*=z/te;var q=F.getModel(),le=q.get(s),re=Math.max(le,w(q,le));K+=4*le*le+(3*le+re)*Math.pow(K,.5),K>m&&(K=m),P=F}K<j&&(K=j);var we=Math.pow(K/j,.5);return[M*we,B*we]}function _(O,I,R){if(I)return{x:I.x,y:I.y};var M={x:0,y:0};if(!R)return M;var B=R.node,P=B.getLayout();if(!P)return M;for(var X=[P.width/2,P.height/2],F=B;F;){var j=F.getLayout();X[0]+=j.x,X[1]+=j.y,F=F.parentNode}return{x:O.width/2-X[0],y:O.height/2-X[1]}}function T(O,I,R,M,B){var P=O.getLayout(),X=R[B],F=X&&X===O;if(X&&!F||B===R.length&&O!==M)return;O.setLayout({isInView:!0,invisible:!F&&!I.intersect(P),isAboveViewRoot:F},!0);var j=new p(I.x-P.x,I.y-P.y,I.width,I.height);t(O.viewChildren||[],function(K){T(K,j,R,M,B+1)})}function w(O){return O.get(l)?O.get(r):0}k.exports=a},nPnh:function(k,D){var n=Math.round;function y(v,m,f){if(!m)return;var d=m.x1,u=m.x2,o=m.y1,i=m.y2;v.x1=d,v.x2=u,v.y1=o,v.y2=i;var t=f&&f.lineWidth;if(!t)return;n(d*2)===n(u*2)&&(v.x1=v.x2=x(d,t,!0)),n(o*2)===n(i*2)&&(v.y1=v.y2=x(o,t,!0))}function p(v,m,f){if(!m)return;var d=m.x,u=m.y,o=m.width,i=m.height;v.x=d,v.y=u,v.width=o,v.height=i;var t=f&&f.lineWidth;if(!t)return;v.x=x(d,t,!0),v.y=x(u,t,!0),v.width=Math.max(x(d+o,t,!1)-v.x,o===0?0:1),v.height=Math.max(x(u+i,t,!1)-v.y,i===0?0:1)}function x(v,m,f){if(!m)return v;var d=n(v*2);return(d+n(m))%2===0?d/2:(d+(f?1:-1))/2}D.subPixelOptimizeLine=y,D.subPixelOptimizeRect=p,D.subPixelOptimize=x},nRaC:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("0fbx"),v=n.n(x),m=n("OaEy"),f=n("R9oj")},nVfU:function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=p.parsePercent,v=n("7hqr"),m=v.isDimensionStacked,f=n("zM3Q"),d="__ec_stack_",u=.5,o=typeof Float32Array!="undefined"?Float32Array:Array;function i(E){return E.get("stack")||d+E.seriesIndex}function t(E){return E.dim+E.index}function s(E){var C=[],_=E.axis,T="axis0";if(_.type!=="category")return;for(var w=_.getBandWidth(),O=0;O<E.count||0;O++)C.push(y.defaults({bandWidth:w,axisKey:T,stackId:d+O},E));for(var I=a(C),R=[],O=0;O<E.count;O++){var M=I[T][d+O];M.offsetCenter=M.offset+M.width/2,R.push(M)}return R}function e(E,C){var _=[];return C.eachSeriesByType(E,function(T){A(T)&&!b(T)&&_.push(T)}),_}function l(E){var C={};y.each(E,function(M){var B=M.coordinateSystem,P=B.getBaseAxis();if(P.type!=="time"&&P.type!=="value")return;for(var X=M.getData(),F=P.dim+"_"+P.index,j=X.mapDimension(P.dim),K=0,z=X.count();K<z;++K){var V=X.get(j,K);C[F]?C[F].push(V):C[F]=[V]}});var _=[];for(var T in C)if(C.hasOwnProperty(T)){var w=C[T];if(w){w.sort(function(M,B){return M-B});for(var O=null,I=1;I<w.length;++I){var R=w[I]-w[I-1];R>0&&(O=O===null?R:Math.min(O,R))}_[T]=O}}return _}function r(E){var C=l(E),_=[];return y.each(E,function(T){var w=T.coordinateSystem,O=w.getBaseAxis(),I=O.getExtent(),R;if(O.type==="category")R=O.getBandWidth();else if(O.type==="value"||O.type==="time"){var M=O.dim+"_"+O.index,B=C[M],P=Math.abs(I[1]-I[0]),X=O.scale.getExtent(),F=Math.abs(X[1]-X[0]);R=B?P/F*B:P}else{var j=T.getData();R=Math.abs(I[1]-I[0])/j.count()}var K=x(T.get("barWidth"),R),z=x(T.get("barMaxWidth"),R),V=x(T.get("barMinWidth")||1,R),Q=T.get("barGap"),G=T.get("barCategoryGap");_.push({bandWidth:R,barWidth:K,barMaxWidth:z,barMinWidth:V,barGap:Q,barCategoryGap:G,axisKey:t(O),stackId:i(T)})}),a(_)}function a(E){var C={};y.each(E,function(T,w){var O=T.axisKey,I=T.bandWidth,R=C[O]||{bandWidth:I,remainedWidth:I,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},M=R.stacks;C[O]=R;var B=T.stackId;M[B]||R.autoWidthCount++,M[B]=M[B]||{width:0,maxWidth:0};var P=T.barWidth;P&&!M[B].width&&(M[B].width=P,P=Math.min(R.remainedWidth,P),R.remainedWidth-=P);var X=T.barMaxWidth;X&&(M[B].maxWidth=X);var F=T.barMinWidth;F&&(M[B].minWidth=F);var j=T.barGap;j!=null&&(R.gap=j);var K=T.barCategoryGap;K!=null&&(R.categoryGap=K)});var _={};return y.each(C,function(T,w){_[w]={};var O=T.stacks,I=T.bandWidth,R=x(T.categoryGap,I),M=x(T.gap,1),B=T.remainedWidth,P=T.autoWidthCount,X=(B-R)/(P+(P-1)*M);X=Math.max(X,0),y.each(O,function(z){var V=z.maxWidth,Q=z.minWidth;if(z.width){var G=z.width;V&&(G=Math.min(G,V)),Q&&(G=Math.max(G,Q)),z.width=G,B-=G+M*G,P--}else{var G=X;V&&V<G&&(G=Math.min(V,B)),Q&&Q>G&&(G=Q),G!==X&&(z.width=G,B-=G+M*G,P--)}}),X=(B-R)/(P+(P-1)*M),X=Math.max(X,0);var F=0,j;y.each(O,function(z,V){z.width||(z.width=X),j=z,F+=z.width*(1+M)}),j&&(F-=j.width*M);var K=-F/2;y.each(O,function(z,V){_[w][V]=_[w][V]||{bandWidth:I,offset:K,width:z.width},K+=z.width*(1+M)})}),_}function c(E,C,_){if(E&&C){var T=E[t(C)];return T!=null&&_!=null&&(T=T[i(_)]),T}}function h(E,C){var _=e(E,C),T=r(_),w={},O={};y.each(_,function(I){var R=I.getData(),M=I.coordinateSystem,B=M.getBaseAxis(),P=i(I),X=T[t(B)][P],F=X.offset,j=X.width,K=M.getOtherAxis(B),z=I.get("barMinHeight")||0;w[P]=w[P]||[],O[P]=O[P]||[],R.setLayout({bandWidth:X.bandWidth,offset:F,size:j});for(var V=R.mapDimension(K.dim),Q=R.mapDimension(B.dim),G=m(R,V),te=K.isHorizontal(),q=S(B,K,G),le=0,re=R.count();le<re;le++){var we=R.get(V,le),Ie=R.get(Q,le),Me=we>=0?"p":"n",Je=q;G&&(w[P][Ie]||(w[P][Ie]={p:q,n:q}),Je=w[P][Ie][Me]);var Ve,ut,Fe,ae;if(te){var at=M.dataToPoint([we,Ie]);Ve=Je,ut=at[1]+F,Fe=at[0]-q,ae=j,Math.abs(Fe)<z&&(Fe=(Fe<0?-1:1)*z),isNaN(Fe)||G&&(w[P][Ie][Me]+=Fe)}else{var at=M.dataToPoint([Ie,we]);Ve=at[0]+F,ut=Je,Fe=j,ae=at[1]-q,Math.abs(ae)<z&&(ae=(ae<=0?-1:1)*z),isNaN(ae)||G&&(w[P][Ie][Me]+=ae)}R.setItemLayout(le,{x:Ve,y:ut,width:Fe,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(),w=_.getBaseAxis(),O=_.getOtherAxis(w),I=C.mapDimension(O.dim),R=C.mapDimension(w.dim),M=O.isHorizontal(),B=M?0:1,P=c(r([E]),w,E).width;return P>u||(P=u),{progress:X};function X(F,j){for(var K=F.count,z=new o(K*2),V=new o(K*2),Q=new o(K),G,te=[],q=[],le=0,re=0;(G=F.next())!=null;)q[B]=j.get(I,G),q[1-B]=j.get(R,G),te=_.dataToPoint(q,null,te),V[le]=M?T.x+T.width:te[0],z[le++]=te[0],V[le]=M?te[1]:T.y+T.height,z[le++]=te[1],Q[re++]=G;j.setLayout({largePoints:z,largeDataIndices:Q,largeBackgroundPoints:V,barWidth:P,valueAxisStart:S(w,O,!1),backgroundStart:M?T.x:T.y,valueAxisHorizontal:M})}}};function A(E){return E.coordinateSystem&&E.coordinateSystem.type==="cartesian2d"}function b(E){return E.pipelineContext&&E.pipelineContext.large}function S(E,C,_){return C.toGlobalCoord(C.dataToCoord(C.type==="log"?1:0))}D.getLayoutOnAxis=s,D.prepareLayoutBarSeries=e,D.makeColumnLayout=r,D.retrieveColumnLayout=c,D.layout=h,D.largeLayout=g},ngQI:function(k,D,n){"use strict";n.d(D,"a",function(){return gu}),n.d(D,"b",function(){return js}),n.d(D,"c",function(){return sn});var y=n("q1tI"),p=n.n(y),x=n("dI71"),v=n("wx14"),m=n("ANjH"),f=n("/MKj");function d(Ue,oe){if(Ue.length!==oe.length)return!1;for(var _e=0;_e<Ue.length;_e++)if(Ue[_e]!==oe[_e])return!1;return!0}function u(Ue,oe){var _e=Object(y.useState)(function(){return{inputs:oe,result:Ue()}})[0],$e=Object(y.useRef)(!0),wt=Object(y.useRef)(_e),Kt=$e.current||Boolean(oe&&wt.current.inputs&&d(oe,wt.current.inputs)),tr=Kt?wt.current:{inputs:oe,result:Ue()};return Object(y.useEffect)(function(){$e.current=!1,wt.current=tr},[tr]),tr.result}function o(Ue,oe){return u(function(){return Ue},oe)}var i=u,t=o,s=n("9R94"),e=function(oe){var _e=oe.top,$e=oe.right,wt=oe.bottom,Kt=oe.left,tr=$e-Kt,ar=wt-_e,Gr={top:_e,right:$e,bottom:wt,left:Kt,width:tr,height:ar,x:Kt,y:_e,center:{x:($e+Kt)/2,y:(wt+_e)/2}};return Gr},l=function(oe,_e){return{top:oe.top-_e.top,left:oe.left-_e.left,bottom:oe.bottom+_e.bottom,right:oe.right+_e.right}},r=function(oe,_e){return{top:oe.top+_e.top,left:oe.left+_e.left,bottom:oe.bottom-_e.bottom,right:oe.right-_e.right}},a=function(oe,_e){return{top:oe.top+_e.y,left:oe.left+_e.x,bottom:oe.bottom+_e.y,right:oe.right+_e.x}},c={top:0,right:0,bottom:0,left:0},h=function(oe){var _e=oe.borderBox,$e=oe.margin,wt=$e===void 0?c:$e,Kt=oe.border,tr=Kt===void 0?c:Kt,ar=oe.padding,Gr=ar===void 0?c:ar,pn=e(l(_e,wt)),zr=e(r(_e,tr)),Hr=e(r(zr,Gr));return{marginBox:pn,borderBox:e(_e),paddingBox:zr,contentBox:Hr,margin:wt,border:tr,padding:Gr}},g=function(oe){var _e=oe.slice(0,-2),$e=oe.slice(-2);if($e!=="px")return 0;var wt=Number(_e);return isNaN(wt)&&Object(s.a)(!1),wt},A=function(){return{x:window.pageXOffset,y:window.pageYOffset}},b=function(oe,_e){var $e=oe.borderBox,wt=oe.border,Kt=oe.margin,tr=oe.padding,ar=a($e,_e);return h({borderBox:ar,border:wt,margin:Kt,padding:tr})},S=function(oe,_e){return _e===void 0&&(_e=A()),b(oe,_e)},E=function(oe,_e){var $e={top:g(_e.marginTop),right:g(_e.marginRight),bottom:g(_e.marginBottom),left:g(_e.marginLeft)},wt={top:g(_e.paddingTop),right:g(_e.paddingRight),bottom:g(_e.paddingBottom),left:g(_e.paddingLeft)},Kt={top:g(_e.borderTopWidth),right:g(_e.borderRightWidth),bottom:g(_e.borderBottomWidth),left:g(_e.borderLeftWidth)};return h({borderBox:oe,margin:$e,padding:wt,border:Kt})},C=function(oe){var _e=oe.getBoundingClientRect(),$e=window.getComputedStyle(oe);return E(_e,$e)},_=Number.isNaN||function(oe){return typeof oe=="number"&&oe!==oe};function T(Ue,oe){return Ue===oe?!0:!!(_(Ue)&&_(oe))}function w(Ue,oe){if(Ue.length!==oe.length)return!1;for(var _e=0;_e<Ue.length;_e++)if(!T(Ue[_e],oe[_e]))return!1;return!0}function O(Ue,oe){oe===void 0&&(oe=w);var _e,$e=[],wt,Kt=!1;function tr(){for(var ar=[],Gr=0;Gr<arguments.length;Gr++)ar[Gr]=arguments[Gr];return Kt&&_e===this&&oe(ar,$e)||(wt=Ue.apply(this,ar),Kt=!0,_e=this,$e=ar),wt}return tr}var I=O,R=function(oe){var _e=[],$e=null,wt=function(){for(var tr=arguments.length,ar=new Array(tr),Gr=0;Gr<tr;Gr++)ar[Gr]=arguments[Gr];if(_e=ar,$e)return;$e=requestAnimationFrame(function(){$e=null,oe.apply(void 0,_e)})};return wt.cancel=function(){if(!$e)return;cancelAnimationFrame($e),$e=null},wt},M=R,B=n("i8i4"),P=n.n(B),X=!0,F=/[ \t]{2,}/g,j=/^[ \t]*/gm,K=function(oe){return oe.replace(F," ").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 G(Ue,oe){var _e;if(X)return;if(typeof window!="undefined"&&window[Q])return;(_e=console)[Ue].apply(_e,V(oe))}var te=G.bind(null,"warn"),q=G.bind(null,"error");function le(){}function re(Ue,oe){return Object(v.a)({},Ue,{},oe)}function we(Ue,oe,_e){var $e=oe.map(function(wt){var Kt=re(_e,wt.options);return Ue.addEventListener(wt.eventName,wt.fn,Kt),function(){Ue.removeEventListener(wt.eventName,wt.fn,Kt)}});return function(){$e.forEach(function(Kt){Kt()})}}var Ie=!0,Me="Invariant failed";function Je(Ue){this.message=Ue}Je.prototype.toString=function(){return this.message};function Ve(Ue,oe){if(Ue)return;throw Ie?new Je(Me):new Je(Me+": "+(oe||""))}var ut=function(Ue){Object(x.a)(oe,Ue);function oe(){for(var $e,wt=arguments.length,Kt=new Array(wt),tr=0;tr<wt;tr++)Kt[tr]=arguments[tr];return $e=Ue.call.apply(Ue,[this].concat(Kt))||this,$e.callbacks=null,$e.unbind=le,$e.onWindowError=function(ar){var Gr=$e.getCallbacks();Gr.isDragging()&&Gr.tryAbort();var pn=ar.error;pn instanceof Je&&ar.preventDefault()},$e.getCallbacks=function(){if(!$e.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return $e.callbacks},$e.setCallbacks=function(ar){$e.callbacks=ar},$e}var _e=oe.prototype;return _e.componentDidMount=function(){this.unbind=we(window,[{eventName:"error",fn:this.onWindowError}])},_e.componentWillUnmount=function(){this.unbind()},_e.componentDidCatch=function(wt){if(wt instanceof Je){this.setState({});return}throw wt},_e.render=function(){return this.props.children(this.setCallbacks)},oe}(p.a.Component),Fe=`
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
`,ae=function(oe){return oe+1},at=function(oe){return`
You have lifted an item in position `+ae(oe.source.index)+`
`},he=function(oe,_e){var $e=oe.droppableId===_e.droppableId,wt=ae(oe.index),Kt=ae(_e.index);return $e?`
You have moved the item from position `+wt+`
to position `+Kt+`
`:`
You have moved the item from position `+wt+`
in list `+oe.droppableId+`
to list `+_e.droppableId+`
in position `+Kt+`
`},J=function(oe,_e,$e){var wt=_e.droppableId===$e.droppableId;return wt?`
The item `+oe+`
has been combined with `+$e.draggableId:`
The item `+oe+`
in list `+_e.droppableId+`
has been combined with `+$e.draggableId+`
in list `+$e.droppableId+`
`},Y=function(oe){var _e=oe.destination;if(_e)return he(oe.source,_e);var $e=oe.combine;return $e?J(oe.draggableId,oe.source,$e):"You are over an area that cannot be dropped on"},$=function(oe){return`
The item has returned to its starting position
of `+ae(oe.index)+`
`},de=function(oe){if(oe.reason==="CANCEL")return`
Movement cancelled.
`+$(oe.source)+`
`;var _e=oe.destination,$e=oe.combine;return _e?`
You have dropped the item.
`+he(oe.source,_e)+`
`:$e?`
You have dropped the item.
`+J(oe.draggableId,oe.source,$e)+`
`:`
The item has been dropped while not over a drop area.
`+$(oe.source)+`
`},be={dragHandleUsageInstructions:Fe,onDragStart:at,onDragUpdate:Y,onDragEnd:de},Ce={x:0,y:0},Be=function(oe,_e){return{x:oe.x+_e.x,y:oe.y+_e.y}},fe=function(oe,_e){return{x:oe.x-_e.x,y:oe.y-_e.y}},Se=function(oe,_e){return oe.x===_e.x&&oe.y===_e.y},ke=function(oe){return{x:oe.x!==0?-oe.x:0,y:oe.y!==0?-oe.y:0}},rt=function(oe,_e,$e){var wt;return $e===void 0&&($e=0),wt={},wt[oe]=_e,wt[oe==="x"?"y":"x"]=$e,wt},xt=function(oe,_e){return Math.sqrt(Math.pow(_e.x-oe.x,2)+Math.pow(_e.y-oe.y,2))},ht=function(oe,_e){return Math.min.apply(Math,_e.map(function($e){return xt(oe,$e)}))},He=function(oe){return function(_e){return{x:oe(_e.x),y:oe(_e.y)}}},ir=function(oe,_e){var $e=e({top:Math.max(_e.top,oe.top),right:Math.min(_e.right,oe.right),bottom:Math.min(_e.bottom,oe.bottom),left:Math.max(_e.left,oe.left)});return $e.width<=0||$e.height<=0?null:$e},ct=function(oe,_e){return{top:oe.top+_e.y,left:oe.left+_e.x,bottom:oe.bottom+_e.y,right:oe.right+_e.x}},Xt=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}]},hr={top:0,right:0,bottom:0,left:0},Jt=function(oe,_e){return _e?ct(oe,_e.scroll.diff.displacement):oe},Pt=function(oe,_e,$e){if($e&&$e.increasedBy){var wt;return Object(v.a)({},oe,(wt={},wt[_e.end]=oe[_e.end]+$e.increasedBy[_e.line],wt))}return oe},Wt=function(oe,_e){return _e&&_e.shouldClipSubject?ir(_e.pageMarginBox,oe):e(oe)},Ge=function(oe){var _e=oe.page,$e=oe.withPlaceholder,wt=oe.axis,Kt=oe.frame,tr=Jt(_e.marginBox,Kt),ar=Pt(tr,wt,$e),Gr=Wt(ar,Kt);return{page:_e,withPlaceholder:$e,active:Gr}},pe=function(oe,_e){oe.frame||Ve(!1);var $e=oe.frame,wt=fe(_e,$e.scroll.initial),Kt=ke(wt),tr=Object(v.a)({},$e,{scroll:{initial:$e.scroll.initial,current:_e,diff:{value:wt,displacement:Kt},max:$e.scroll.max}}),ar=Ge({page:oe.subject.page,withPlaceholder:oe.subject.withPlaceholder,axis:oe.axis,frame:tr}),Gr=Object(v.a)({},oe,{frame:tr,subject:ar});return Gr};function se(Ue){return Number.isInteger?Number.isInteger(Ue):typeof Ue=="number"&&isFinite(Ue)&&Math.floor(Ue)===Ue}function lt(Ue){return Object.values?Object.values(Ue):Object.keys(Ue).map(function(oe){return Ue[oe]})}function qe(Ue,oe){if(Ue.findIndex)return Ue.findIndex(oe);for(var _e=0;_e<Ue.length;_e++)if(oe(Ue[_e]))return _e;return-1}function me(Ue,oe){if(Ue.find)return Ue.find(oe);var _e=qe(Ue,oe);return _e!==-1?Ue[_e]:void 0}function Ht(Ue){return Array.prototype.slice.call(Ue)}var yr=I(function(Ue){return Ue.reduce(function(oe,_e){return oe[_e.descriptor.id]=_e,oe},{})}),At=I(function(Ue){return Ue.reduce(function(oe,_e){return oe[_e.descriptor.id]=_e,oe},{})}),rr=I(function(Ue){return lt(Ue)}),ur=I(function(Ue){return lt(Ue)}),vn=I(function(Ue,oe){var _e=ur(oe).filter(function($e){return Ue===$e.descriptor.droppableId}).sort(function($e,wt){return $e.descriptor.index-wt.descriptor.index});return _e});function Bt(Ue){return Ue.at&&Ue.at.type==="REORDER"?Ue.at.destination:null}function sr(Ue){return Ue.at&&Ue.at.type==="COMBINE"?Ue.at.combine:null}var Yt=I(function(Ue,oe){return oe.filter(function(_e){return _e.descriptor.id!==Ue.descriptor.id})}),pt=function(oe){var _e=oe.isMovingForward,$e=oe.draggable,wt=oe.destination,Kt=oe.insideDestination,tr=oe.previousImpact;if(!wt.isCombineEnabled)return null;var ar=Bt(tr);if(!ar)return null;function Gr(Mi){var da={type:"COMBINE",combine:{draggableId:Mi,droppableId:wt.descriptor.id}};return Object(v.a)({},tr,{at:da})}var pn=tr.displaced.all,zr=pn.length?pn[0]:null;if(_e)return zr?Gr(zr):null;var Hr=Yt($e,Kt);if(!zr){if(!Hr.length)return null;var ln=Hr[Hr.length-1];return Gr(ln.descriptor.id)}var bn=qe(Hr,function(Mi){return Mi.descriptor.id===zr});bn!==-1||Ve(!1);var Gn=bn-1;if(Gn<0)return null;var Li=Hr[Gn];return Gr(Li.descriptor.id)},it=function(oe,_e){return oe.descriptor.droppableId===_e.descriptor.id},Fr={point:Ce,value:0},cn={invisible:{},visible:{},all:[]},_n={displaced:cn,displacedBy:Fr,at:null},Kn=function(oe,_e){return function($e){return oe<=$e&&$e<=_e}},gi=function(oe){var _e=Kn(oe.top,oe.bottom),$e=Kn(oe.left,oe.right);return function(wt){var Kt=_e(wt.top)&&_e(wt.bottom)&&$e(wt.left)&&$e(wt.right);if(Kt)return!0;var tr=_e(wt.top)||_e(wt.bottom),ar=$e(wt.left)||$e(wt.right),Gr=tr&&ar;if(Gr)return!0;var pn=wt.top<oe.top&&wt.bottom>oe.bottom,zr=wt.left<oe.left&&wt.right>oe.right,Hr=pn&&zr;if(Hr)return!0;var ln=pn&&ar||zr&&tr;return ln}},Mn=function(oe){var _e=Kn(oe.top,oe.bottom),$e=Kn(oe.left,oe.right);return function(wt){var Kt=_e(wt.top)&&_e(wt.bottom)&&$e(wt.left)&&$e(wt.right);return Kt}},Un={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"},Ct=function(oe){return function(_e){var $e=Kn(_e.top,_e.bottom),wt=Kn(_e.left,_e.right);return function(Kt){return oe===Un?$e(Kt.top)&&$e(Kt.bottom):wt(Kt.left)&&wt(Kt.right)}}},Re=function(oe,_e){var $e=_e.frame?_e.frame.scroll.diff.displacement:Ce;return ct(oe,$e)},De=function(oe,_e,$e){return _e.subject.active?$e(_e.subject.active)(oe):!1},Pe=function(oe,_e,$e){return $e(_e)(oe)},et=function(oe){var _e=oe.target,$e=oe.destination,wt=oe.viewport,Kt=oe.withDroppableDisplacement,tr=oe.isVisibleThroughFrameFn,ar=Kt?Re(_e,$e):_e;return De(ar,$e,tr)&&Pe(ar,wt,tr)},yt=function(oe){return et(Object(v.a)({},oe,{isVisibleThroughFrameFn:gi}))},St=function(oe){return et(Object(v.a)({},oe,{isVisibleThroughFrameFn:Mn}))},Vt=function(oe){return et(Object(v.a)({},oe,{isVisibleThroughFrameFn:Ct(oe.destination.axis)}))},Rr=function(oe,_e,$e){if(typeof $e=="boolean")return $e;if(!_e)return!0;var wt=_e.invisible,Kt=_e.visible;if(wt[oe])return!1;var tr=Kt[oe];return tr?tr.shouldAnimate:!0};function Vr(Ue,oe){var _e=Ue.page.marginBox,$e={top:oe.point.y,right:0,bottom:0,left:oe.point.x};return e(l(_e,$e))}function hn(Ue){var oe=Ue.afterDragging,_e=Ue.destination,$e=Ue.displacedBy,wt=Ue.viewport,Kt=Ue.forceShouldAnimate,tr=Ue.last;return oe.reduce(function(Gr,pn){var zr=Vr(pn,$e),Hr=pn.descriptor.id;Gr.all.push(Hr);var ln=yt({target:zr,destination:_e,viewport:wt,withDroppableDisplacement:!0});if(!ln)return Gr.invisible[pn.descriptor.id]=!0,Gr;var bn=Rr(Hr,tr,Kt),Gn={draggableId:Hr,shouldAnimate:bn};return Gr.visible[Hr]=Gn,Gr},{all:[],visible:{},invisible:{}})}function Ft(Ue,oe){if(!Ue.length)return 0;var _e=Ue[Ue.length-1].descriptor.index;return oe.inHomeList?_e:_e+1}function vt(Ue){var oe=Ue.insideDestination,_e=Ue.inHomeList,$e=Ue.displacedBy,wt=Ue.destination,Kt=Ft(oe,{inHomeList:_e});return{displaced:cn,displacedBy:$e,at:{type:"REORDER",destination:{droppableId:wt.descriptor.id,index:Kt}}}}function bt(Ue){var oe=Ue.draggable,_e=Ue.insideDestination,$e=Ue.destination,wt=Ue.viewport,Kt=Ue.displacedBy,tr=Ue.last,ar=Ue.index,Gr=Ue.forceShouldAnimate,pn=it(oe,$e);if(ar==null)return vt({insideDestination:_e,inHomeList:pn,displacedBy:Kt,destination:$e});var zr=me(_e,function(Li){return Li.descriptor.index===ar});if(!zr)return vt({insideDestination:_e,inHomeList:pn,displacedBy:Kt,destination:$e});var Hr=Yt(oe,_e),ln=_e.indexOf(zr),bn=Hr.slice(ln),Gn=hn({afterDragging:bn,destination:$e,displacedBy:Kt,last:tr,viewport:wt.frame,forceShouldAnimate:Gr});return{displaced:Gn,displacedBy:Kt,at:{type:"REORDER",destination:{droppableId:$e.descriptor.id,index:ar}}}}function fr(Ue,oe){return Boolean(oe.effected[Ue])}var Qt=function(oe){var _e=oe.isMovingForward,$e=oe.destination,wt=oe.draggables,Kt=oe.combine,tr=oe.afterCritical;if(!$e.isCombineEnabled)return null;var ar=Kt.draggableId,Gr=wt[ar],pn=Gr.descriptor.index,zr=fr(ar,tr);return zr?_e?pn:pn-1:_e?pn+1:pn},Mt=function(oe){var _e=oe.isMovingForward,$e=oe.isInHomeList,wt=oe.insideDestination,Kt=oe.location;if(!wt.length)return null;var tr=Kt.index,ar=_e?tr+1:tr-1,Gr=wt[0].descriptor.index,pn=wt[wt.length-1].descriptor.index,zr=$e?pn:pn+1;return ar<Gr||ar>zr?null:ar},qt=function(oe){var _e=oe.isMovingForward,$e=oe.isInHomeList,wt=oe.draggable,Kt=oe.draggables,tr=oe.destination,ar=oe.insideDestination,Gr=oe.previousImpact,pn=oe.viewport,zr=oe.afterCritical,Hr=Gr.at;if(Hr||Ve(!1),Hr.type==="REORDER"){var ln=Mt({isMovingForward:_e,isInHomeList:$e,location:Hr.destination,insideDestination:ar});return ln==null?null:bt({draggable:wt,insideDestination:ar,destination:tr,viewport:pn,last:Gr.displaced,displacedBy:Gr.displacedBy,index:ln})}var bn=Qt({isMovingForward:_e,destination:tr,displaced:Gr.displaced,draggables:Kt,combine:Hr.combine,afterCritical:zr});return bn==null?null:bt({draggable:wt,insideDestination:ar,destination:tr,viewport:pn,last:Gr.displaced,displacedBy:Gr.displacedBy,index:bn})},kt=function(oe){var _e=oe.displaced,$e=oe.afterCritical,wt=oe.combineWith,Kt=oe.displacedBy,tr=Boolean(_e.visible[wt]||_e.invisible[wt]);return fr(wt,$e)?tr?Ce:ke(Kt.point):tr?Kt.point:Ce},er=function(oe){var _e=oe.afterCritical,$e=oe.impact,wt=oe.draggables,Kt=sr($e);Kt||Ve(!1);var tr=Kt.draggableId,ar=wt[tr].page.borderBox.center,Gr=kt({displaced:$e.displaced,afterCritical:_e,combineWith:tr,displacedBy:$e.displacedBy});return Be(ar,Gr)},Kr=function(oe,_e){return _e.margin[oe.start]+_e.borderBox[oe.size]/2},Ir=function(oe,_e){return _e.margin[oe.end]+_e.borderBox[oe.size]/2},Dr=function(oe,_e,$e){return _e[oe.crossAxisStart]+$e.margin[oe.crossAxisStart]+$e.borderBox[oe.crossAxisSize]/2},dn=function(oe){var _e=oe.axis,$e=oe.moveRelativeTo,wt=oe.isMoving;return rt(_e.line,$e.marginBox[_e.end]+Kr(_e,wt),Dr(_e,$e.marginBox,wt))},yn=function(oe){var _e=oe.axis,$e=oe.moveRelativeTo,wt=oe.isMoving;return rt(_e.line,$e.marginBox[_e.start]-Ir(_e,wt),Dr(_e,$e.marginBox,wt))},ti=function(oe){var _e=oe.axis,$e=oe.moveInto,wt=oe.isMoving;return rt(_e.line,$e.contentBox[_e.start]+Kr(_e,wt),Dr(_e,$e.contentBox,wt))},ei=function(oe){var _e=oe.impact,$e=oe.draggable,wt=oe.draggables,Kt=oe.droppable,tr=oe.afterCritical,ar=vn(Kt.descriptor.id,wt),Gr=$e.page,pn=Kt.axis;if(!ar.length)return ti({axis:pn,moveInto:Kt.page,isMoving:Gr});var zr=_e.displaced,Hr=_e.displacedBy,ln=zr.all[0];if(ln){var bn=wt[ln];if(fr(ln,tr))return yn({axis:pn,moveRelativeTo:bn.page,isMoving:Gr});var Gn=b(bn.page,Hr.point);return yn({axis:pn,moveRelativeTo:Gn,isMoving:Gr})}var Li=ar[ar.length-1];if(Li.descriptor.id===$e.descriptor.id)return Gr.borderBox.center;if(fr(Li.descriptor.id,tr)){var Mi=b(Li.page,ke(tr.displacedBy.point));return dn({axis:pn,moveRelativeTo:Mi,isMoving:Gr})}return dn({axis:pn,moveRelativeTo:Li.page,isMoving:Gr})},fi=function(oe,_e){var $e=oe.frame;return $e?Be(_e,$e.scroll.diff.displacement):_e},Ei=function(oe){var _e=oe.impact,$e=oe.draggable,wt=oe.droppable,Kt=oe.draggables,tr=oe.afterCritical,ar=$e.page.borderBox.center,Gr=_e.at;return wt&&Gr?Gr.type==="REORDER"?ei({impact:_e,draggable:$e,draggables:Kt,droppable:wt,afterCritical:tr}):er({impact:_e,draggables:Kt,afterCritical:tr}):ar},Di=function(oe){var _e=Ei(oe),$e=oe.droppable,wt=$e?fi($e,_e):_e;return wt},Hi=function(oe,_e){var $e=fe(_e,oe.scroll.initial),wt=ke($e),Kt=e({top:_e.y,bottom:_e.y+oe.frame.height,left:_e.x,right:_e.x+oe.frame.width}),tr={frame:Kt,scroll:{initial:oe.scroll.initial,max:oe.scroll.max,current:_e,diff:{value:$e,displacement:wt}}};return tr};function nt(Ue,oe){return Ue.map(function(_e){return oe[_e]})}function Le(Ue,oe){for(var _e=0;_e<oe.length;_e++){var $e=oe[_e].visible[Ue];if($e)return $e}return null}var je=function(oe){var _e=oe.impact,$e=oe.viewport,wt=oe.destination,Kt=oe.draggables,tr=oe.maxScrollChange,ar=Hi($e,Be($e.scroll.current,tr)),Gr=wt.frame?pe(wt,Be(wt.frame.scroll.current,tr)):wt,pn=_e.displaced,zr=hn({afterDragging:nt(pn.all,Kt),destination:wt,displacedBy:_e.displacedBy,viewport:ar.frame,last:pn,forceShouldAnimate:!1}),Hr=hn({afterDragging:nt(pn.all,Kt),destination:Gr,displacedBy:_e.displacedBy,viewport:$e.frame,last:pn,forceShouldAnimate:!1}),ln={},bn={},Gn=[pn,zr,Hr];pn.all.forEach(function(Mi){var da=Le(Mi,Gn);if(da){bn[Mi]=da;return}ln[Mi]=!0});var Li=Object(v.a)({},_e,{displaced:{all:pn.all,invisible:ln,visible:bn}});return Li},Xe=function(oe,_e){return Be(oe.scroll.diff.displacement,_e)},tt=function(oe){var _e=oe.pageBorderBoxCenter,$e=oe.draggable,wt=oe.viewport,Kt=Xe(wt,_e),tr=fe(Kt,$e.page.borderBox.center);return Be($e.client.borderBox.center,tr)},Ze=function(oe){var _e=oe.draggable,$e=oe.destination,wt=oe.newPageBorderBoxCenter,Kt=oe.viewport,tr=oe.withDroppableDisplacement,ar=oe.onlyOnMainAxis,Gr=ar===void 0?!1:ar,pn=fe(wt,_e.page.borderBox.center),zr=ct(_e.page.borderBox,pn),Hr={target:zr,destination:$e,withDroppableDisplacement:tr,viewport:Kt};return Gr?Vt(Hr):St(Hr)},st=function(oe){var _e=oe.isMovingForward,$e=oe.draggable,wt=oe.destination,Kt=oe.draggables,tr=oe.previousImpact,ar=oe.viewport,Gr=oe.previousPageBorderBoxCenter,pn=oe.previousClientSelection,zr=oe.afterCritical;if(!wt.isEnabled)return null;var Hr=vn(wt.descriptor.id,Kt),ln=it($e,wt),bn=pt({isMovingForward:_e,draggable:$e,destination:wt,insideDestination:Hr,previousImpact:tr})||qt({isMovingForward:_e,isInHomeList:ln,draggable:$e,draggables:Kt,destination:wt,insideDestination:Hr,previousImpact:tr,viewport:ar,afterCritical:zr});if(!bn)return null;var Gn=Di({impact:bn,draggable:$e,droppable:wt,draggables:Kt,afterCritical:zr}),Li=Ze({draggable:$e,destination:wt,newPageBorderBoxCenter:Gn,viewport:ar.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(Li){var Mi=tt({pageBorderBoxCenter:Gn,draggable:$e,viewport:ar});return{clientSelection:Mi,impact:bn,scrollJumpRequest:null}}var da=fe(Gn,Gr),$i=je({impact:bn,viewport:ar,destination:wt,draggables:Kt,maxScrollChange:da});return{clientSelection:pn,impact:$i,scrollJumpRequest:da}},Et=function(oe){var _e=oe.subject.active;return _e||Ve(!1),_e},gt=function(oe){var _e=oe.isMovingForward,$e=oe.pageBorderBoxCenter,wt=oe.source,Kt=oe.droppables,tr=oe.viewport,ar=wt.subject.active;if(!ar)return null;var Gr=wt.axis,pn=Kn(ar[Gr.start],ar[Gr.end]),zr=rr(Kt).filter(function(ln){return ln!==wt}).filter(function(ln){return ln.isEnabled}).filter(function(ln){return Boolean(ln.subject.active)}).filter(function(ln){return gi(tr.frame)(Et(ln))}).filter(function(ln){var bn=Et(ln);return _e?ar[Gr.crossAxisEnd]<bn[Gr.crossAxisEnd]:bn[Gr.crossAxisStart]<ar[Gr.crossAxisStart]}).filter(function(ln){var bn=Et(ln),Gn=Kn(bn[Gr.start],bn[Gr.end]);return pn(bn[Gr.start])||pn(bn[Gr.end])||Gn(ar[Gr.start])||Gn(ar[Gr.end])}).sort(function(ln,bn){var Gn=Et(ln)[Gr.crossAxisStart],Li=Et(bn)[Gr.crossAxisStart];return _e?Gn-Li:Li-Gn}).filter(function(ln,bn,Gn){return Et(ln)[Gr.crossAxisStart]===Et(Gn[0])[Gr.crossAxisStart]});if(!zr.length)return null;if(zr.length===1)return zr[0];var Hr=zr.filter(function(ln){var bn=Kn(Et(ln)[Gr.start],Et(ln)[Gr.end]);return bn($e[Gr.line])});return Hr.length===1?Hr[0]:Hr.length>1?Hr.sort(function(ln,bn){return Et(ln)[Gr.start]-Et(bn)[Gr.start]})[0]:zr.sort(function(ln,bn){var Gn=ht($e,Xt(Et(ln))),Li=ht($e,Xt(Et(bn)));return Gn!==Li?Gn-Li:Et(ln)[Gr.start]-Et(bn)[Gr.start]})[0]},pr=function(oe,_e){var $e=oe.page.borderBox.center;return fr(oe.descriptor.id,_e)?fe($e,_e.displacedBy.point):$e},qr=function(oe,_e){var $e=oe.page.borderBox;return fr(oe.descriptor.id,_e)?ct($e,ke(_e.displacedBy.point)):$e},Qr=function(oe){var _e=oe.pageBorderBoxCenter,$e=oe.viewport,wt=oe.destination,Kt=oe.insideDestination,tr=oe.afterCritical,ar=Kt.filter(function(Gr){return St({target:qr(Gr,tr),destination:wt,viewport:$e.frame,withDroppableDisplacement:!0})}).sort(function(Gr,pn){var zr=xt(_e,fi(wt,pr(Gr,tr))),Hr=xt(_e,fi(wt,pr(pn,tr)));return zr<Hr?-1:Hr<zr?1:Gr.descriptor.index-pn.descriptor.index});return ar[0]||null},gn=I(function(oe,_e){var $e=_e[oe.line];return{value:$e,point:rt(oe.line,$e)}}),vr=function(oe,_e,$e){var wt=oe.axis;if(oe.descriptor.mode==="virtual")return rt(wt.line,_e[wt.line]);var Kt=oe.subject.page.contentBox[wt.size],tr=vn(oe.descriptor.id,$e),ar=tr.reduce(function(zr,Hr){return zr+Hr.client.marginBox[wt.size]},0),Gr=ar+_e[wt.line],pn=Gr-Kt;return pn<=0?null:rt(wt.line,pn)},Vn=function(oe,_e){return Object(v.a)({},oe,{scroll:Object(v.a)({},oe.scroll,{max:_e})})},kr=function(oe,_e,$e){var wt=oe.frame;it(_e,oe)&&Ve(!1),oe.subject.withPlaceholder&&Ve(!1);var Kt=gn(oe.axis,_e.displaceBy).point,tr=vr(oe,Kt,$e),ar={placeholderSize:Kt,increasedBy:tr,oldFrameMaxScroll:oe.frame?oe.frame.scroll.max:null};if(!wt){var Gr=Ge({page:oe.subject.page,withPlaceholder:ar,axis:oe.axis,frame:oe.frame});return Object(v.a)({},oe,{subject:Gr})}var pn=tr?Be(wt.scroll.max,tr):wt.scroll.max,zr=Vn(wt,pn),Hr=Ge({page:oe.subject.page,withPlaceholder:ar,axis:oe.axis,frame:zr});return Object(v.a)({},oe,{subject:Hr,frame:zr})},Bn=function(oe){var _e=oe.subject.withPlaceholder;_e||Ve(!1);var $e=oe.frame;if(!$e){var wt=Ge({page:oe.subject.page,axis:oe.axis,frame:null,withPlaceholder:null});return Object(v.a)({},oe,{subject:wt})}var Kt=_e.oldFrameMaxScroll;Kt||Ve(!1);var tr=Vn($e,Kt),ar=Ge({page:oe.subject.page,axis:oe.axis,frame:tr,withPlaceholder:null});return Object(v.a)({},oe,{subject:ar,frame:tr})},on=function(oe){var _e=oe.previousPageBorderBoxCenter,$e=oe.moveRelativeTo,wt=oe.insideDestination,Kt=oe.draggable,tr=oe.draggables,ar=oe.destination,Gr=oe.viewport,pn=oe.afterCritical;if(!$e){if(wt.length)return null;var zr={displaced:cn,displacedBy:Fr,at:{type:"REORDER",destination:{droppableId:ar.descriptor.id,index:0}}},Hr=Di({impact:zr,draggable:Kt,droppable:ar,draggables:tr,afterCritical:pn}),ln=it(Kt,ar)?ar:kr(ar,Kt,tr),bn=Ze({draggable:Kt,destination:ln,newPageBorderBoxCenter:Hr,viewport:Gr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return bn?zr:null}var Gn=Boolean(_e[ar.axis.line]<=$e.page.borderBox.center[ar.axis.line]),Li=function(){var da=$e.descriptor.index;return $e.descriptor.id===Kt.descriptor.id||Gn?da:da+1}(),Mi=gn(ar.axis,Kt.displaceBy);return bt({draggable:Kt,insideDestination:wt,destination:ar,viewport:Gr,displacedBy:Mi,last:cn,index:Li})},jr=function(oe){var _e=oe.isMovingForward,$e=oe.previousPageBorderBoxCenter,wt=oe.draggable,Kt=oe.isOver,tr=oe.draggables,ar=oe.droppables,Gr=oe.viewport,pn=oe.afterCritical,zr=gt({isMovingForward:_e,pageBorderBoxCenter:$e,source:Kt,droppables:ar,viewport:Gr});if(!zr)return null;var Hr=vn(zr.descriptor.id,tr),ln=Qr({pageBorderBoxCenter:$e,viewport:Gr,destination:zr,insideDestination:Hr,afterCritical:pn}),bn=on({previousPageBorderBoxCenter:$e,destination:zr,draggable:wt,draggables:tr,moveRelativeTo:ln,insideDestination:Hr,viewport:Gr,afterCritical:pn});if(!bn)return null;var Gn=Di({impact:bn,draggable:wt,droppable:zr,draggables:tr,afterCritical:pn}),Li=tt({pageBorderBoxCenter:Gn,draggable:wt,viewport:Gr});return{clientSelection:Li,impact:bn,scrollJumpRequest:null}},ai=function(oe){var _e=oe.at;return _e?_e.type==="REORDER"?_e.destination.droppableId:_e.combine.droppableId:null},Oi=function(oe,_e){var $e=ai(oe);return $e?_e[$e]:null},Gi=function(oe){var _e=oe.state,$e=oe.type,wt=Oi(_e.impact,_e.dimensions.droppables),Kt=Boolean(wt),tr=_e.dimensions.droppables[_e.critical.droppable.id],ar=wt||tr,Gr=ar.axis.direction,pn=Gr==="vertical"&&($e==="MOVE_UP"||$e==="MOVE_DOWN")||Gr==="horizontal"&&($e==="MOVE_LEFT"||$e==="MOVE_RIGHT");if(pn&&!Kt)return null;var zr=$e==="MOVE_DOWN"||$e==="MOVE_RIGHT",Hr=_e.dimensions.draggables[_e.critical.draggable.id],ln=_e.current.page.borderBoxCenter,bn=_e.dimensions,Gn=bn.draggables,Li=bn.droppables;return pn?st({isMovingForward:zr,previousPageBorderBoxCenter:ln,draggable:Hr,destination:ar,draggables:Gn,viewport:_e.viewport,previousClientSelection:_e.current.client.selection,previousImpact:_e.impact,afterCritical:_e.afterCritical}):jr({isMovingForward:zr,previousPageBorderBoxCenter:ln,draggable:Hr,isOver:ar,draggables:Gn,droppables:Li,viewport:_e.viewport,afterCritical:_e.afterCritical})};function rn(Ue){return Ue.phase==="DRAGGING"||Ue.phase==="COLLECTING"}function Cn(Ue){var oe=Kn(Ue.top,Ue.bottom),_e=Kn(Ue.left,Ue.right);return function(wt){return oe(wt.y)&&_e(wt.x)}}function Yn(Ue,oe){return Ue.left<oe.right&&Ue.right>oe.left&&Ue.top<oe.bottom&&Ue.bottom>oe.top}function Gt(Ue){var oe=Ue.pageBorderBox,_e=Ue.draggable,$e=Ue.candidates,wt=_e.page.borderBox.center,Kt=$e.map(function(tr){var ar=tr.axis,Gr=rt(tr.axis.line,oe.center[ar.line],tr.page.borderBox.center[ar.crossAxisLine]);return{id:tr.descriptor.id,distance:xt(wt,Gr)}}).sort(function(tr,ar){return ar.distance-tr.distance});return Kt[0]?Kt[0].id:null}function Ot(Ue){var oe=Ue.pageBorderBox,_e=Ue.draggable,$e=Ue.droppables,wt=rr($e).filter(function(Kt){if(!Kt.isEnabled)return!1;var tr=Kt.subject.active;if(!tr)return!1;if(!Yn(oe,tr))return!1;if(Cn(tr)(oe.center))return!0;var ar=Kt.axis,Gr=tr.center[ar.crossAxisLine],pn=oe[ar.crossAxisStart],zr=oe[ar.crossAxisEnd],Hr=Kn(tr[ar.crossAxisStart],tr[ar.crossAxisEnd]),ln=Hr(pn),bn=Hr(zr);return!ln&&!bn?!0:ln?pn<Gr:zr>Gr});return wt.length?wt.length===1?wt[0].descriptor.id:Gt({pageBorderBox:oe,draggable:_e,candidates:wt}):null}var Rt=function(oe,_e){return e(ct(oe,_e))},jt=function(oe,_e){var $e=oe.frame;return $e?Rt(_e,$e.scroll.diff.value):_e};function zt(Ue){var oe=Ue.displaced,_e=Ue.id;return Boolean(oe.visible[_e]||oe.invisible[_e])}function Lt(Ue){var oe=Ue.draggable,_e=Ue.closest,$e=Ue.inHomeList;return _e?$e&&_e.descriptor.index>oe.descriptor.index?_e.descriptor.index-1:_e.descriptor.index:null}var cr=function(oe){var _e=oe.pageBorderBoxWithDroppableScroll,$e=oe.draggable,wt=oe.destination,Kt=oe.insideDestination,tr=oe.last,ar=oe.viewport,Gr=oe.afterCritical,pn=wt.axis,zr=gn(wt.axis,$e.displaceBy),Hr=zr.value,ln=_e[pn.start],bn=_e[pn.end],Gn=Yt($e,Kt),Li=me(Gn,function(da){var $i=da.descriptor.id,Qa=da.page.borderBox.center[pn.line],ya=fr($i,Gr),fo=zt({displaced:tr,id:$i});return ya?fo?bn<=Qa:ln<Qa-Hr:fo?bn<=Qa+Hr:ln<Qa}),Mi=Lt({draggable:$e,closest:Li,inHomeList:it($e,wt)});return bt({draggable:$e,insideDestination:Kt,destination:wt,viewport:ar,last:tr,displacedBy:zr,index:Mi})},Ar=4,br=function(oe){var _e=oe.draggable,$e=oe.pageBorderBoxWithDroppableScroll,wt=oe.previousImpact,Kt=oe.destination,tr=oe.insideDestination,ar=oe.afterCritical;if(!Kt.isCombineEnabled)return null;var Gr=Kt.axis,pn=gn(Kt.axis,_e.displaceBy),zr=pn.value,Hr=$e[Gr.start],ln=$e[Gr.end],bn=Yt(_e,tr),Gn=me(bn,function(Mi){var da=Mi.descriptor.id,$i=Mi.page.borderBox,Qa=$i[Gr.size],ya=Qa/Ar,fo=fr(da,ar),za=zt({displaced:wt.displaced,id:da});return fo?za?ln>$i[Gr.start]+ya&&ln<$i[Gr.end]-ya:Hr>$i[Gr.start]-zr+ya&&Hr<$i[Gr.end]-zr-ya:za?ln>$i[Gr.start]+zr+ya&&ln<$i[Gr.end]+zr-ya:Hr>$i[Gr.start]+ya&&Hr<$i[Gr.end]-ya});if(!Gn)return null;var Li={displacedBy:pn,displaced:wt.displaced,at:{type:"COMBINE",combine:{draggableId:Gn.descriptor.id,droppableId:Kt.descriptor.id}}};return Li},Pr=function(oe){var _e=oe.pageOffset,$e=oe.draggable,wt=oe.draggables,Kt=oe.droppables,tr=oe.previousImpact,ar=oe.viewport,Gr=oe.afterCritical,pn=Rt($e.page.borderBox,_e),zr=Ot({pageBorderBox:pn,draggable:$e,droppables:Kt});if(!zr)return _n;var Hr=Kt[zr],ln=vn(Hr.descriptor.id,wt),bn=jt(Hr,pn);return br({pageBorderBoxWithDroppableScroll:bn,draggable:$e,previousImpact:tr,destination:Hr,insideDestination:ln,afterCritical:Gr})||cr({pageBorderBoxWithDroppableScroll:bn,draggable:$e,destination:Hr,insideDestination:ln,last:tr.displaced,viewport:ar,afterCritical:Gr})},Xn=function(oe,_e){var $e;return Object(v.a)({},oe,($e={},$e[_e.descriptor.id]=_e,$e))},Pn=function(oe){var _e=oe.previousImpact,$e=oe.impact,wt=oe.droppables,Kt=ai(_e),tr=ai($e);if(!Kt)return wt;if(Kt===tr)return wt;var ar=wt[Kt];if(!ar.subject.withPlaceholder)return wt;var Gr=Bn(ar);return Xn(wt,Gr)},di=function(oe){var _e=oe.draggable,$e=oe.draggables,wt=oe.droppables,Kt=oe.previousImpact,tr=oe.impact,ar=Pn({previousImpact:Kt,impact:tr,droppables:wt}),Gr=ai(tr);if(!Gr)return ar;var pn=wt[Gr];if(it(_e,pn))return ar;if(pn.subject.withPlaceholder)return ar;var zr=kr(pn,_e,$e);return Xn(ar,zr)},An=function(oe){var _e=oe.state,$e=oe.clientSelection,wt=oe.dimensions,Kt=oe.viewport,tr=oe.impact,ar=oe.scrollJumpRequest,Gr=Kt||_e.viewport,pn=wt||_e.dimensions,zr=$e||_e.current.client.selection,Hr=fe(zr,_e.initial.client.selection),ln={offset:Hr,selection:zr,borderBoxCenter:Be(_e.initial.client.borderBoxCenter,Hr)},bn={selection:Be(ln.selection,Gr.scroll.current),borderBoxCenter:Be(ln.borderBoxCenter,Gr.scroll.current),offset:Be(ln.offset,Gr.scroll.diff.value)},Gn={client:ln,page:bn};if(_e.phase==="COLLECTING")return Object(v.a)({phase:"COLLECTING"},_e,{dimensions:pn,viewport:Gr,current:Gn});var Li=pn.draggables[_e.critical.draggable.id],Mi=tr||Pr({pageOffset:bn.offset,draggable:Li,draggables:pn.draggables,droppables:pn.droppables,previousImpact:_e.impact,viewport:Gr,afterCritical:_e.afterCritical}),da=di({draggable:Li,impact:Mi,previousImpact:_e.impact,draggables:pn.draggables,droppables:pn.droppables}),$i=Object(v.a)({},_e,{current:Gn,dimensions:{draggables:pn.draggables,droppables:da},impact:Mi,viewport:Gr,scrollJumpRequest:ar||null,forceShouldAnimate:ar?!1:null});return $i};function Ur(Ue,oe){return Ue.map(function(_e){return oe[_e]})}var In=function(oe){var _e=oe.impact,$e=oe.viewport,wt=oe.draggables,Kt=oe.destination,tr=oe.forceShouldAnimate,ar=_e.displaced,Gr=Ur(ar.all,wt),pn=hn({afterDragging:Gr,destination:Kt,displacedBy:_e.displacedBy,viewport:$e.frame,forceShouldAnimate:tr,last:ar});return Object(v.a)({},_e,{displaced:pn})},Qn=function(oe){var _e=oe.impact,$e=oe.draggable,wt=oe.droppable,Kt=oe.draggables,tr=oe.viewport,ar=oe.afterCritical,Gr=Di({impact:_e,draggable:$e,draggables:Kt,droppable:wt,afterCritical:ar});return tt({pageBorderBoxCenter:Gr,draggable:$e,viewport:tr})},$n=function(oe){var _e=oe.state,$e=oe.dimensions,wt=oe.viewport;_e.movementMode==="SNAP"||Ve(!1);var Kt=_e.impact,tr=wt||_e.viewport,ar=$e||_e.dimensions,Gr=ar.draggables,pn=ar.droppables,zr=Gr[_e.critical.draggable.id],Hr=ai(Kt);Hr||Ve(!1);var ln=pn[Hr],bn=In({impact:Kt,viewport:tr,destination:ln,draggables:Gr}),Gn=Qn({impact:bn,draggable:zr,droppable:ln,draggables:Gr,viewport:tr,afterCritical:_e.afterCritical});return An({impact:bn,clientSelection:Gn,state:_e,dimensions:ar,viewport:tr})},oi=function(oe){return{index:oe.index,droppableId:oe.droppableId}},Ti=function(oe){var _e=oe.draggable,$e=oe.home,wt=oe.draggables,Kt=oe.viewport,tr=gn($e.axis,_e.displaceBy),ar=vn($e.descriptor.id,wt),Gr=ar.indexOf(_e);Gr!==-1||Ve(!1);var pn=ar.slice(Gr+1),zr=pn.reduce(function(Gn,Li){return Gn[Li.descriptor.id]=!0,Gn},{}),Hr={inVirtualList:$e.descriptor.mode==="virtual",displacedBy:tr,effected:zr},ln=hn({afterDragging:pn,destination:$e,displacedBy:tr,last:null,viewport:Kt.frame,forceShouldAnimate:!1}),bn={displaced:ln,displacedBy:tr,at:{type:"REORDER",destination:oi(_e.descriptor)}};return{impact:bn,afterCritical:Hr}},ki=function(oe,_e){return{draggables:oe.draggables,droppables:Xn(oe.droppables,_e)}},Ri=function(oe){},oa=function(oe){},ma=function(oe){var _e=oe.draggable,$e=oe.offset,wt=oe.initialWindowScroll,Kt=b(_e.client,$e),tr=S(Kt,wt),ar=Object(v.a)({},_e,{placeholder:Object(v.a)({},_e.placeholder,{client:Kt}),client:Kt,page:tr});return ar},aa=function(oe){var _e=oe.frame;return _e||Ve(!1),_e},ba=function(oe){var _e=oe.additions,$e=oe.updatedDroppables,wt=oe.viewport,Kt=wt.scroll.diff.value;return _e.map(function(tr){var ar=tr.descriptor.droppableId,Gr=$e[ar],pn=aa(Gr),zr=pn.scroll.diff.value,Hr=Be(Kt,zr),ln=ma({draggable:tr,offset:Hr,initialWindowScroll:wt.scroll.initial});return ln})},yi=function(oe){var _e=oe.state,$e=oe.published;Ri();var wt=$e.modified.map(function(ya){var fo=_e.dimensions.droppables[ya.droppableId],za=pe(fo,ya.scroll);return za}),Kt=Object(v.a)({},_e.dimensions.droppables,{},yr(wt)),tr=At(ba({additions:$e.additions,updatedDroppables:Kt,viewport:_e.viewport})),ar=Object(v.a)({},_e.dimensions.draggables,{},tr);$e.removals.forEach(function(ya){delete ar[ya]});var Gr={droppables:Kt,draggables:ar},pn=ai(_e.impact),zr=pn?Gr.droppables[pn]:null,Hr=Gr.draggables[_e.critical.draggable.id],ln=Gr.droppables[_e.critical.droppable.id],bn=Ti({draggable:Hr,home:ln,draggables:ar,viewport:_e.viewport}),Gn=bn.impact,Li=bn.afterCritical,Mi=zr&&zr.isCombineEnabled?_e.impact:Gn,da=Pr({pageOffset:_e.current.page.offset,draggable:Gr.draggables[_e.critical.draggable.id],draggables:Gr.draggables,droppables:Gr.droppables,previousImpact:Mi,viewport:_e.viewport,afterCritical:Li});oa();var $i=Object(v.a)({phase:"DRAGGING"},_e,{phase:"DRAGGING",impact:da,onLiftImpact:Gn,dimensions:Gr,afterCritical:Li,forceShouldAnimate:!1});if(_e.phase==="COLLECTING")return $i;var Qa=Object(v.a)({phase:"DROP_PENDING"},$i,{phase:"DROP_PENDING",reason:_e.reason,isWaiting:!1});return Qa},kn=function(oe){return oe.movementMode==="SNAP"},Ui=function(oe,_e,$e){var wt=ki(oe.dimensions,_e);return!kn(oe)||$e?An({state:oe,dimensions:wt}):$n({state:oe,dimensions:wt})};function ha(Ue){return Ue.isDragging&&Ue.movementMode==="SNAP"?Object(v.a)({phase:"DRAGGING"},Ue,{scrollJumpRequest:null}):Ue}var ta={phase:"IDLE",completed:null,shouldFlush:!1},ra=function(oe,_e){if(oe===void 0&&(oe=ta),_e.type==="FLUSH")return Object(v.a)({},ta,{shouldFlush:!0});if(_e.type==="INITIAL_PUBLISH"){oe.phase==="IDLE"||Ve(!1);var $e=_e.payload,wt=$e.critical,Kt=$e.clientSelection,tr=$e.viewport,ar=$e.dimensions,Gr=$e.movementMode,pn=ar.draggables[wt.draggable.id],zr=ar.droppables[wt.droppable.id],Hr={selection:Kt,borderBoxCenter:pn.client.borderBox.center,offset:Ce},ln={client:Hr,page:{selection:Be(Hr.selection,tr.scroll.initial),borderBoxCenter:Be(Hr.selection,tr.scroll.initial),offset:Be(Hr.selection,tr.scroll.diff.value)}},bn=rr(ar.droppables).every(function(Ss){return!Ss.isFixedOnPage}),Gn=Ti({draggable:pn,home:zr,draggables:ar.draggables,viewport:tr}),Li=Gn.impact,Mi=Gn.afterCritical,da={phase:"DRAGGING",isDragging:!0,critical:wt,movementMode:Gr,dimensions:ar,initial:ln,current:ln,isWindowScrollAllowed:bn,impact:Li,afterCritical:Mi,onLiftImpact:Li,viewport:tr,scrollJumpRequest:null,forceShouldAnimate:null};return da}if(_e.type==="COLLECTION_STARTING"){if(oe.phase==="COLLECTING"||oe.phase==="DROP_PENDING")return oe;oe.phase==="DRAGGING"||Ve(!1);var $i=Object(v.a)({phase:"COLLECTING"},oe,{phase:"COLLECTING"});return $i}if(_e.type==="PUBLISH_WHILE_DRAGGING")return oe.phase==="COLLECTING"||oe.phase==="DROP_PENDING"||Ve(!1),yi({state:oe,published:_e.payload});if(_e.type==="MOVE"){if(oe.phase==="DROP_PENDING")return oe;rn(oe)||Ve(!1);var Qa=_e.payload.client;return Se(Qa,oe.current.client.selection)?oe:An({state:oe,clientSelection:Qa,impact:kn(oe)?oe.impact:null})}if(_e.type==="UPDATE_DROPPABLE_SCROLL"){if(oe.phase==="DROP_PENDING")return ha(oe);if(oe.phase==="COLLECTING")return ha(oe);rn(oe)||Ve(!1);var ya=_e.payload,fo=ya.id,za=ya.newScroll,Xo=oe.dimensions.droppables[fo];if(!Xo)return oe;var ls=pe(Xo,za);return Ui(oe,ls,!1)}if(_e.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(oe.phase==="DROP_PENDING")return oe;rn(oe)||Ve(!1);var N=_e.payload,U=N.id,ie=N.isEnabled,ue=oe.dimensions.droppables[U];ue||Ve(!1),ue.isEnabled!==ie||Ve(!1);var ge=Object(v.a)({},ue,{isEnabled:ie});return Ui(oe,ge,!0)}if(_e.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(oe.phase==="DROP_PENDING")return oe;rn(oe)||Ve(!1);var Ke=_e.payload,It=Ke.id,nr=Ke.isCombineEnabled,wr=oe.dimensions.droppables[It];wr||Ve(!1),wr.isCombineEnabled!==nr||Ve(!1);var _r=Object(v.a)({},wr,{isCombineEnabled:nr});return Ui(oe,_r,!0)}if(_e.type==="MOVE_BY_WINDOW_SCROLL"){if(oe.phase==="DROP_PENDING"||oe.phase==="DROP_ANIMATING")return oe;rn(oe)||Ve(!1),oe.isWindowScrollAllowed||Ve(!1);var Hn=_e.payload.newScroll;if(Se(oe.viewport.scroll.current,Hn))return ha(oe);var ri=Hi(oe.viewport,Hn);return kn(oe)?$n({state:oe,viewport:ri}):An({state:oe,viewport:ri})}if(_e.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!rn(oe))return oe;var xi=_e.payload.maxScroll;if(Se(xi,oe.viewport.scroll.max))return oe;var _i=Object(v.a)({},oe.viewport,{scroll:Object(v.a)({},oe.viewport.scroll,{max:xi})});return Object(v.a)({phase:"DRAGGING"},oe,{viewport:_i})}if(_e.type==="MOVE_UP"||_e.type==="MOVE_DOWN"||_e.type==="MOVE_LEFT"||_e.type==="MOVE_RIGHT"){if(oe.phase==="COLLECTING"||oe.phase==="DROP_PENDING")return oe;oe.phase==="DRAGGING"||Ve(!1);var la=Gi({state:oe,type:_e.type});return la?An({state:oe,impact:la.impact,clientSelection:la.clientSelection,scrollJumpRequest:la.scrollJumpRequest}):oe}if(_e.type==="DROP_PENDING"){var Ta=_e.payload.reason;oe.phase==="COLLECTING"||Ve(!1);var Wa=Object(v.a)({phase:"DROP_PENDING"},oe,{phase:"DROP_PENDING",isWaiting:!0,reason:Ta});return Wa}if(_e.type==="DROP_ANIMATE"){var Ma=_e.payload,Na=Ma.completed,qa=Ma.dropDuration,ho=Ma.newHomeClientOffset;oe.phase==="DRAGGING"||oe.phase==="DROP_PENDING"||Ve(!1);var ns={phase:"DROP_ANIMATING",completed:Na,dropDuration:qa,newHomeClientOffset:ho,dimensions:oe.dimensions};return ns}if(_e.type==="DROP_COMPLETE"){var Mo=_e.payload.completed;return{phase:"IDLE",completed:Mo,shouldFlush:!1}}return oe},Lr=function(oe){return{type:"BEFORE_INITIAL_CAPTURE",payload:oe}},xr=function(oe){return{type:"LIFT",payload:oe}},Tn=function(oe){return{type:"INITIAL_PUBLISH",payload:oe}},mr=function(oe){return{type:"PUBLISH_WHILE_DRAGGING",payload:oe}},Mr=function(){return{type:"COLLECTION_STARTING",payload:null}},Xr=function(oe){return{type:"UPDATE_DROPPABLE_SCROLL",payload:oe}},un=function(oe){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:oe}},Fn=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}},Nr=function(oe){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:oe}},tn=function(){return{type:"MOVE_UP",payload:null}},xn=function(){return{type:"MOVE_DOWN",payload:null}},Ln=function(){return{type:"MOVE_RIGHT",payload:null}},Sn=function(){return{type:"MOVE_LEFT",payload:null}},qn=function(){return{type:"FLUSH",payload:null}},Wn=function(oe){return{type:"DROP_ANIMATE",payload:oe}},pi=function(oe){return{type:"DROP_COMPLETE",payload:oe}},Pi=function(oe){return{type:"DROP",payload:oe}},bi=function(oe){return{type:"DROP_PENDING",payload:oe}},Ii=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function zi(Ue){if(Ue.length<=1)return;for(var oe=Ue.map(function(ar){return ar.descriptor.index}),_e={},$e=1;$e<oe.length;$e++){var wt=oe[$e],Kt=oe[$e-1];wt!==Kt+1&&(_e[wt]=!0)}if(!Object.keys(_e).length)return;var tr=oe.map(function(ar){var Gr=Boolean(_e[ar]);return Gr?"[\u{1F525}"+ar+"]":""+ar}).join(", ")}function ea(Ue,oe){if(!1)var _e}var Xi=function(oe){return function(_e){var $e=_e.getState,wt=_e.dispatch;return function(Kt){return function(tr){if(tr.type!=="LIFT"){Kt(tr);return}var ar=tr.payload,Gr=ar.id,pn=ar.clientSelection,zr=ar.movementMode,Hr=$e();Hr.phase==="DROP_ANIMATING"&&wt(pi({completed:Hr.completed})),$e().phase==="IDLE"||Ve(!1),wt(qn()),wt(Lr({draggableId:Gr,movementMode:zr}));var ln={shouldPublishImmediately:zr==="SNAP"},bn={draggableId:Gr,scrollOptions:ln},Gn=oe.startPublishing(bn),Li=Gn.critical,Mi=Gn.dimensions,da=Gn.viewport;ea(Li,Mi),wt(Tn({critical:Li,dimensions:Mi,clientSelection:pn,movementMode:zr,viewport:da}))}}}},Wi=function(oe){return function(){return function(_e){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(),_e($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 _e=oe+"s "+ji.drop;return"transform "+_e+", opacity "+_e},outOfTheWay:"transform "+Ca,placeholder:"height "+Ca+", width "+Ca+", margin "+Ca},Pa=function(oe){return Se(oe,Ce)?null:"translate("+oe.x+"px, "+oe.y+"px)"},La={moveTo:Pa,drop:function(oe,_e){var $e=Pa(oe);return $e?_e?$e+" scale("+Ji.scale.drop+")":$e:null}},va=ca.minDropTime,ga=ca.maxDropTime,Oa=ga-va,Aa=1500,Xa=.6,_a=function(oe){var _e=oe.current,$e=oe.destination,wt=oe.reason,Kt=xt(_e,$e);if(Kt<=0)return va;if(Kt>=Aa)return ga;var tr=Kt/Aa,ar=va+Oa*tr,Gr=wt==="CANCEL"?ar*Xa:ar;return Number(Gr.toFixed(2))},Va=function(oe){var _e=oe.impact,$e=oe.draggable,wt=oe.dimensions,Kt=oe.viewport,tr=oe.afterCritical,ar=wt.draggables,Gr=wt.droppables,pn=ai(_e),zr=pn?Gr[pn]:null,Hr=Gr[$e.descriptor.droppableId],ln=Qn({impact:_e,draggable:$e,draggables:ar,afterCritical:tr,droppable:zr||Hr,viewport:Kt}),bn=fe(ln,$e.client.borderBox.center);return bn},Fi=function(oe){var _e=oe.draggables,$e=oe.reason,wt=oe.lastImpact,Kt=oe.home,tr=oe.viewport,ar=oe.onLiftImpact;if(!wt.at||$e!=="DROP"){var Gr=In({draggables:_e,impact:ar,destination:Kt,viewport:tr,forceShouldAnimate:!0});return{impact:Gr,didDropInsideDroppable:!1}}if(wt.at.type==="REORDER")return{impact:wt,didDropInsideDroppable:!0};var pn=Object(v.a)({},wt,{displaced:cn});return{impact:pn,didDropInsideDroppable:!0}},io=function(oe){var _e=oe.getState,$e=oe.dispatch;return function(wt){return function(Kt){if(Kt.type!=="DROP"){wt(Kt);return}var tr=_e(),ar=Kt.payload.reason;if(tr.phase==="COLLECTING"){$e(bi({reason:ar}));return}if(tr.phase==="IDLE")return;var Gr=tr.phase==="DROP_PENDING"&&tr.isWaiting;Gr&&Ve(!1),tr.phase==="DRAGGING"||tr.phase==="DROP_PENDING"||Ve(!1);var pn=tr.critical,zr=tr.dimensions,Hr=zr.draggables[tr.critical.draggable.id],ln=Fi({reason:ar,lastImpact:tr.impact,afterCritical:tr.afterCritical,onLiftImpact:tr.onLiftImpact,home:tr.dimensions.droppables[tr.critical.droppable.id],viewport:tr.viewport,draggables:tr.dimensions.draggables}),bn=ln.impact,Gn=ln.didDropInsideDroppable,Li=Gn?Bt(bn):null,Mi=Gn?sr(bn):null,da={index:pn.draggable.index,droppableId:pn.droppable.id},$i={draggableId:Hr.descriptor.id,type:Hr.descriptor.type,source:da,reason:ar,mode:tr.movementMode,destination:Li,combine:Mi},Qa=Va({impact:bn,draggable:Hr,dimensions:zr,viewport:tr.viewport,afterCritical:tr.afterCritical}),ya={critical:tr.critical,afterCritical:tr.afterCritical,result:$i,impact:bn},fo=!Se(tr.current.client.offset,Qa)||Boolean($i.combine);if(!fo){$e(pi({completed:ya}));return}var za=_a({current:tr.current.client.offset,destination:Qa,reason:ar}),Xo={newHomeClientOffset:Qa,dropDuration:za,completed:ya};$e(Wn(Xo))}}},oo=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Qo(Ue){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(_e){if(_e.target!==window&&_e.target!==window.document)return;Ue()}}}function mo(Ue){var oe=Ue.onWindowScroll;function _e(){oe(oo())}var $e=M(_e),wt=Qo($e),Kt=le;function tr(){return Kt!==le}function ar(){tr()&&Ve(!1),Kt=we(window,[wt])}function Gr(){tr()||Ve(!1),$e.cancel(),Kt(),Kt=le}return{start:ar,stop:Gr,isActive:tr}}var To=function(oe){return oe.type==="DROP_COMPLETE"||oe.type==="DROP_ANIMATE"||oe.type==="FLUSH"},ao=function(oe){var _e=mo({onWindowScroll:function(wt){oe.dispatch(Or({newScroll:wt}))}});return function($e){return function(wt){!_e.isActive()&&wt.type==="INITIAL_PUBLISH"&&_e.start(),_e.isActive()&&To(wt)&&_e.stop(),$e(wt)}}},So=function(oe){var _e=!1,$e=!1,wt=setTimeout(function(){$e=!0}),Kt=function(ar){if(_e)return;if($e)return;_e=!0,oe(ar),clearTimeout(wt)};return Kt.wasCalled=function(){return _e},Kt},bo=function(){var oe=[],_e=function(tr){var ar=qe(oe,function(zr){return zr.timerId===tr});ar!==-1||Ve(!1);var Gr=oe.splice(ar,1),pn=Gr[0];pn.callback()},$e=function(tr){var ar=setTimeout(function(){return _e(ar)}),Gr={timerId:ar,callback:tr};oe.push(Gr)},wt=function(){if(!oe.length)return;var tr=[].concat(oe);oe.length=0,tr.forEach(function(ar){clearTimeout(ar.timerId),ar.callback()})};return{add:$e,flush:wt}},to=function(oe,_e){return oe==null&&_e==null?!0:oe==null||_e==null?!1:oe.droppableId===_e.droppableId&&oe.index===_e.index},Jo=function(oe,_e){return oe==null&&_e==null?!0:oe==null||_e==null?!1:oe.draggableId===_e.draggableId&&oe.droppableId===_e.droppableId},Uo=function(oe,_e){if(oe===_e)return!0;var $e=oe.draggable.id===_e.draggable.id&&oe.draggable.droppableId===_e.draggable.droppableId&&oe.draggable.type===_e.draggable.type&&oe.draggable.index===_e.draggable.index,wt=oe.droppable.id===_e.droppable.id&&oe.droppable.type===_e.droppable.type;return $e&&wt},wo=function(oe,_e){Ri(),_e(),oa()},ts=function(oe,_e){return{draggableId:oe.draggable.id,type:oe.droppable.type,source:{droppableId:oe.droppable.id,index:oe.draggable.index},mode:_e}},Ia=function(oe,_e,$e,wt){if(!oe){$e(wt(_e));return}var Kt=So($e),tr={announce:Kt};oe(_e,tr),Kt.wasCalled()||$e(wt(_e))},Oo=function(oe,_e){var $e=bo(),wt=null,Kt=function(bn,Gn){wt&&Ve(!1),wo("onBeforeCapture",function(){var Li=oe().onBeforeCapture;if(Li){var Mi={draggableId:bn,mode:Gn};Li(Mi)}})},tr=function(bn,Gn){wt&&Ve(!1),wo("onBeforeDragStart",function(){var Li=oe().onBeforeDragStart;Li&&Li(ts(bn,Gn))})},ar=function(bn,Gn){wt&&Ve(!1);var Li=ts(bn,Gn);wt={mode:Gn,lastCritical:bn,lastLocation:Li.source,lastCombine:null},$e.add(function(){wo("onDragStart",function(){return Ia(oe().onDragStart,Li,_e,be.onDragStart)})})},Gr=function(bn,Gn){var Li=Bt(Gn),Mi=sr(Gn);wt||Ve(!1);var da=!Uo(bn,wt.lastCritical);da&&(wt.lastCritical=bn);var $i=!to(wt.lastLocation,Li);$i&&(wt.lastLocation=Li);var Qa=!Jo(wt.lastCombine,Mi);if(Qa&&(wt.lastCombine=Mi),!da&&!$i&&!Qa)return;var ya=Object(v.a)({},ts(bn,wt.mode),{combine:Mi,destination:Li});$e.add(function(){wo("onDragUpdate",function(){return Ia(oe().onDragUpdate,ya,_e,be.onDragUpdate)})})},pn=function(){wt||Ve(!1),$e.flush()},zr=function(bn){wt||Ve(!1),wt=null,wo("onDragEnd",function(){return Ia(oe().onDragEnd,bn,_e,be.onDragEnd)})},Hr=function(){if(!wt)return;var bn=Object(v.a)({},ts(wt.lastCritical,wt.mode),{combine:null,destination:null,reason:"CANCEL"});zr(bn)};return{beforeCapture:Kt,beforeStart:tr,start:ar,update:Gr,flush:pn,drop:zr,abort:Hr}},Io=function(oe,_e){var $e=Oo(oe,_e);return function(wt){return function(Kt){return function(tr){if(tr.type==="BEFORE_INITIAL_CAPTURE"){$e.beforeCapture(tr.payload.draggableId,tr.payload.movementMode);return}if(tr.type==="INITIAL_PUBLISH"){var ar=tr.payload.critical;$e.beforeStart(ar,tr.payload.movementMode),Kt(tr),$e.start(ar,tr.payload.movementMode);return}if(tr.type==="DROP_COMPLETE"){var Gr=tr.payload.completed.result;$e.flush(),Kt(tr),$e.drop(Gr);return}if(Kt(tr),tr.type==="FLUSH"){$e.abort();return}var pn=wt.getState();pn.phase==="DRAGGING"&&$e.update(pn.critical,pn.impact)}}}},os=function(oe){return function(_e){return function($e){if($e.type!=="DROP_ANIMATION_FINISHED"){_e($e);return}var wt=oe.getState();wt.phase==="DROP_ANIMATING"||Ve(!1),oe.dispatch(pi({completed:wt.completed}))}}},xo=function(oe){var _e=null,$e=null;function wt(){$e&&(cancelAnimationFrame($e),$e=null),_e&&(_e(),_e=null)}return function(Kt){return function(tr){if((tr.type==="FLUSH"||tr.type==="DROP_COMPLETE"||tr.type==="DROP_ANIMATION_FINISHED")&&wt(),Kt(tr),tr.type!=="DROP_ANIMATE")return;var ar={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var pn=oe.getState();pn.phase==="DROP_ANIMATING"&&oe.dispatch(Ii())}};$e=requestAnimationFrame(function(){$e=null,_e=we(window,[ar])})}}},rs=function(oe){return function(){return function(_e){return function($e){($e.type==="DROP_COMPLETE"||$e.type==="FLUSH"||$e.type==="DROP_ANIMATE")&&oe.stopPublishing(),_e($e)}}}},Ho=function(oe){var _e=!1;return function(){return function($e){return function(wt){if(wt.type==="INITIAL_PUBLISH"){_e=!0,oe.tryRecordFocus(wt.payload.critical.draggable.id),$e(wt),oe.tryRestoreFocusRecorded();return}if($e(wt),!_e)return;if(wt.type==="FLUSH"){_e=!1,oe.tryRestoreFocusRecorded();return}if(wt.type==="DROP_COMPLETE"){_e=!1;var Kt=wt.payload.completed.result;Kt.combine&&oe.tryShiftRecord(Kt.draggableId,Kt.combine.draggableId),oe.tryRestoreFocusRecorded()}}}}},_o=function(oe){return oe.type==="DROP_COMPLETE"||oe.type==="DROP_ANIMATE"||oe.type==="FLUSH"},uo=function(oe){return function(_e){return function($e){return function(wt){if(_o(wt)){oe.stop(),$e(wt);return}if(wt.type==="INITIAL_PUBLISH"){$e(wt);var Kt=_e.getState();Kt.phase==="DRAGGING"||Ve(!1),oe.start(Kt);return}$e(wt),oe.scroll(_e.getState())}}}},Ha=function(oe){return function(_e){return function($e){if(_e($e),$e.type!=="PUBLISH_WHILE_DRAGGING")return;var wt=oe.getState();if(wt.phase!=="DROP_PENDING")return;if(wt.isWaiting)return;oe.dispatch(Pi({reason:wt.reason}))}}},mt=m.d,Tr=function(oe){var _e=oe.dimensionMarshal,$e=oe.focusMarshal,wt=oe.styleMarshal,Kt=oe.getResponders,tr=oe.announce,ar=oe.autoScroller;return Object(m.e)(ra,mt(Object(m.a)(Wi(wt),rs(_e),Xi(_e),io,os,xo,Ha,uo(ar),ao,Ho($e),Io(Kt,tr))))},en=function(){return{additions:{},removals:{},modified:{}}};function Jr(Ue){var oe=Ue.registry,_e=Ue.callbacks,$e=en(),wt=null,Kt=function(){if(wt)return;_e.collectionStarting(),wt=requestAnimationFrame(function(){wt=null,Ri();var zr=$e,Hr=zr.additions,ln=zr.removals,bn=zr.modified,Gn=Object.keys(Hr).map(function(da){return oe.draggable.getById(da).getDimension(Ce)}).sort(function(da,$i){return da.descriptor.index-$i.descriptor.index}),Li=Object.keys(bn).map(function(da){var $i=oe.droppable.getById(da),Qa=$i.callbacks.getScrollWhileDragging();return{droppableId:da,scroll:Qa}}),Mi={additions:Gn,removals:Object.keys(ln),modified:Li};$e=en(),oa(),_e.publish(Mi)})},tr=function(zr){var Hr=zr.descriptor.id;$e.additions[Hr]=zr,$e.modified[zr.descriptor.droppableId]=!0,$e.removals[Hr]&&delete $e.removals[Hr],Kt()},ar=function(zr){var Hr=zr.descriptor;$e.removals[Hr.id]=!0,$e.modified[Hr.droppableId]=!0,$e.additions[Hr.id]&&delete $e.additions[Hr.id],Kt()},Gr=function(){if(!wt)return;cancelAnimationFrame(wt),wt=null,$e=en()};return{add:tr,remove:ar,stop:Gr}}var Jn=function(oe){var _e=oe.scrollHeight,$e=oe.scrollWidth,wt=oe.height,Kt=oe.width,tr=fe({x:$e,y:_e},{x:Kt,y:wt}),ar={x:Math.max(0,tr.x),y:Math.max(0,tr.y)};return ar},fn=function(){var oe=document.documentElement;return oe||Ve(!1),oe},Yr=function(){var oe=fn(),_e=Jn({scrollHeight:oe.scrollHeight,scrollWidth:oe.scrollWidth,width:oe.clientWidth,height:oe.clientHeight});return _e},ni=function(){var oe=oo(),_e=Yr(),$e=oe.y,wt=oe.x,Kt=fn(),tr=Kt.clientWidth,ar=Kt.clientHeight,Gr=wt+tr,pn=$e+ar,zr=e({top:$e,left:wt,right:Gr,bottom:pn}),Hr={frame:zr,scroll:{initial:oe,current:oe,max:_e,diff:{value:Ce,displacement:Ce}}};return Hr},nn=function(oe){var _e=oe.critical,$e=oe.scrollOptions,wt=oe.registry;Ri();var Kt=ni(),tr=Kt.scroll.current,ar=_e.droppable,Gr=wt.droppable.getAllByType(ar.type).map(function(ln){return ln.callbacks.getDimensionAndWatchScroll(tr,$e)}),pn=wt.draggable.getAllByType(_e.draggable.type).map(function(ln){return ln.getDimension(tr)}),zr={draggables:At(pn),droppables:yr(Gr)};oa();var Hr={dimensions:zr,critical:_e,viewport:Kt};return Hr};function zn(Ue,oe,_e){if(_e.descriptor.id===oe.id)return!1;if(_e.descriptor.type!==oe.type)return!1;var $e=Ue.droppable.getById(_e.descriptor.droppableId);return!($e.descriptor.mode!=="virtual")}var li=function(oe,_e){var $e=null,wt=Jr({callbacks:{publish:_e.publishWhileDragging,collectionStarting:_e.collectionStarting},registry:oe}),Kt=function(Gn,Li){if(oe.droppable.exists(Gn)||Ve(!1),!$e)return;_e.updateDroppableIsEnabled({id:Gn,isEnabled:Li})},tr=function(Gn,Li){if(!$e)return;oe.droppable.exists(Gn)||Ve(!1),_e.updateDroppableIsCombineEnabled({id:Gn,isCombineEnabled:Li})},ar=function(Gn,Li){if(!$e)return;oe.droppable.exists(Gn)||Ve(!1),_e.updateDroppableScroll({id:Gn,newScroll:Li})},Gr=function(Gn,Li){if(!$e)return;oe.droppable.getById(Gn).callbacks.scroll(Li)},pn=function(){if(!$e)return;wt.stop();var Gn=$e.critical.droppable;oe.droppable.getAllByType(Gn.type).forEach(function(Li){return Li.callbacks.dragStopped()}),$e.unsubscribe(),$e=null},zr=function(Gn){$e||Ve(!1);var Li=$e.critical.draggable;Gn.type==="ADDITION"&&(zn(oe,Li,Gn.value)&&wt.add(Gn.value)),Gn.type==="REMOVAL"&&(zn(oe,Li,Gn.value)&&wt.remove(Gn.value))},Hr=function(Gn){$e&&Ve(!1);var Li=oe.draggable.getById(Gn.draggableId),Mi=oe.droppable.getById(Li.descriptor.droppableId),da={draggable:Li.descriptor,droppable:Mi.descriptor},$i=oe.subscribe(zr);return $e={critical:da,unsubscribe:$i},nn({critical:da,registry:oe,scrollOptions:Gn.scrollOptions})},ln={updateDroppableIsEnabled:Kt,updateDroppableIsCombineEnabled:tr,scrollDroppable:Gr,updateDroppableScroll:ar,startPublishing:Hr,stopPublishing:pn};return ln},ci=function(oe,_e){return oe.phase==="IDLE"?!0:oe.phase!=="DROP_ANIMATING"||oe.completed.result.draggableId===_e?!1:oe.completed.result.reason==="DROP"},si=function(oe){window.scrollBy(oe.x,oe.y)},Ci=I(function(Ue){return rr(Ue).filter(function(oe){return oe.isEnabled?!!oe.frame:!1})}),mi=function(oe,_e){var $e=me(Ci(_e),function(wt){return wt.frame||Ve(!1),Cn(wt.frame.pageMarginBox)(oe)});return $e},Ai=function(oe){var _e=oe.center,$e=oe.destination,wt=oe.droppables;if($e){var Kt=wt[$e];return Kt.frame?Kt:null}var tr=mi(_e,wt);return tr},Ni={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(oe){return Math.pow(oe,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},ia=function(oe,_e){var $e=oe[_e.size]*Ni.startFromPercentage,wt=oe[_e.size]*Ni.maxScrollAtPercentage,Kt={startScrollingFrom:$e,maxScrollValueAt:wt};return Kt},Ki=function(oe){var _e=oe.startOfRange,$e=oe.endOfRange,wt=oe.current,Kt=$e-_e;if(Kt===0)return 0;var tr=wt-_e,ar=tr/Kt;return ar},fa=1,Ya=function(oe,_e){if(oe>_e.startScrollingFrom)return 0;if(oe<=_e.maxScrollValueAt)return Ni.maxPixelScroll;if(oe===_e.startScrollingFrom)return fa;var $e=Ki({startOfRange:_e.maxScrollValueAt,endOfRange:_e.startScrollingFrom,current:oe}),wt=1-$e,Kt=Ni.maxPixelScroll*Ni.ease(wt);return Math.ceil(Kt)},xa=Ni.durationDampening.accelerateAt,wa=Ni.durationDampening.stopDampeningAt,Da=function(oe,_e){var $e=_e,wt=wa,Kt=Date.now(),tr=Kt-$e;if(tr>=wa)return oe;if(tr<xa)return fa;var ar=Ki({startOfRange:xa,endOfRange:wt,current:tr}),Gr=oe*Ni.ease(ar);return Math.ceil(Gr)},ja=function(oe){var _e=oe.distanceToEdge,$e=oe.thresholds,wt=oe.dragStartTime,Kt=oe.shouldUseTimeDampening,tr=Ya(_e,$e);return tr===0?0:Kt?Math.max(Da(tr,wt),fa):tr},ko=function(oe){var _e=oe.container,$e=oe.distanceToEdges,wt=oe.dragStartTime,Kt=oe.axis,tr=oe.shouldUseTimeDampening,ar=ia(_e,Kt),Gr=$e[Kt.end]<$e[Kt.start];return Gr?ja({distanceToEdge:$e[Kt.end],thresholds:ar,dragStartTime:wt,shouldUseTimeDampening:tr}):-1*ja({distanceToEdge:$e[Kt.start],thresholds:ar,dragStartTime:wt,shouldUseTimeDampening:tr})},ro=function(oe){var _e=oe.container,$e=oe.subject,wt=oe.proposedScroll,Kt=$e.height>_e.height,tr=$e.width>_e.width;return!tr&&!Kt?wt:tr&&Kt?null:{x:tr?0:wt.x,y:Kt?0:wt.y}},pa=He(function(Ue){return Ue===0?0:Ue}),Ea=function(oe){var _e=oe.dragStartTime,$e=oe.container,wt=oe.subject,Kt=oe.center,tr=oe.shouldUseTimeDampening,ar={top:Kt.y-$e.top,right:$e.right-Kt.x,bottom:$e.bottom-Kt.y,left:Kt.x-$e.left},Gr=ko({container:$e,distanceToEdges:ar,dragStartTime:_e,axis:Un,shouldUseTimeDampening:tr}),pn=ko({container:$e,distanceToEdges:ar,dragStartTime:_e,axis:$t,shouldUseTimeDampening:tr}),zr=pa({x:pn,y:Gr});if(Se(zr,Ce))return null;var Hr=ro({container:$e,subject:wt,proposedScroll:zr});return Hr?Se(Hr,Ce)?null:Hr:null},Fa=He(function(Ue){return Ue===0?0:Ue>0?1:-1}),Ka=function(){var Ue=function(_e,$e){return _e<0?_e:_e>$e?_e-$e:0};return function(oe){var _e=oe.current,$e=oe.max,wt=oe.change,Kt=Be(_e,wt),tr={x:Ue(Kt.x,$e.x),y:Ue(Kt.y,$e.y)};return Se(tr,Ce)?null:tr}}(),lo=function(oe){var _e=oe.max,$e=oe.current,wt=oe.change,Kt={x:Math.max($e.x,_e.x),y:Math.max($e.y,_e.y)},tr=Fa(wt),ar=Ka({max:Kt,current:$e,change:tr});return ar?tr.x!==0&&ar.x===0?!0:tr.y!==0&&ar.y===0:!0},so=function(oe,_e){return lo({current:oe.scroll.current,max:oe.scroll.max,change:_e})},Co=function(oe,_e){if(!so(oe,_e))return null;var $e=oe.scroll.max,wt=oe.scroll.current;return Ka({current:wt,max:$e,change:_e})},Lo=function(oe,_e){var $e=oe.frame;return $e?lo({current:$e.scroll.current,max:$e.scroll.max,change:_e}):!1},is=function(oe,_e){var $e=oe.frame;return $e&&Lo(oe,_e)?Ka({current:$e.scroll.current,max:$e.scroll.max,change:_e}):null},cs=function(oe){var _e=oe.viewport,$e=oe.subject,wt=oe.center,Kt=oe.dragStartTime,tr=oe.shouldUseTimeDampening,ar=Ea({dragStartTime:Kt,container:_e.frame,subject:$e,center:wt,shouldUseTimeDampening:tr});return ar&&so(_e,ar)?ar:null},Rs=function(oe){var _e=oe.droppable,$e=oe.subject,wt=oe.center,Kt=oe.dragStartTime,tr=oe.shouldUseTimeDampening,ar=_e.frame;if(!ar)return null;var Gr=Ea({dragStartTime:Kt,container:ar.pageMarginBox,subject:$e,center:wt,shouldUseTimeDampening:tr});return Gr&&Lo(_e,Gr)?Gr:null},Ko=function(oe){var _e=oe.state,$e=oe.dragStartTime,wt=oe.shouldUseTimeDampening,Kt=oe.scrollWindow,tr=oe.scrollDroppable,ar=_e.current.page.borderBoxCenter,Gr=_e.dimensions.draggables[_e.critical.draggable.id],pn=Gr.page.marginBox;if(_e.isWindowScrollAllowed){var zr=_e.viewport,Hr=cs({dragStartTime:$e,viewport:zr,subject:pn,center:ar,shouldUseTimeDampening:wt});if(Hr){Kt(Hr);return}}var ln=Ai({center:ar,destination:ai(_e.impact),droppables:_e.dimensions.droppables});if(!ln)return;var bn=Rs({dragStartTime:$e,droppable:ln,subject:pn,center:ar,shouldUseTimeDampening:wt});bn&&tr(ln.descriptor.id,bn)},as=function(oe){var _e=oe.scrollWindow,$e=oe.scrollDroppable,wt=M(_e),Kt=M($e),tr=null,ar=function(Hr){tr||Ve(!1);var ln=tr,bn=ln.shouldUseTimeDampening,Gn=ln.dragStartTime;Ko({state:Hr,scrollWindow:wt,scrollDroppable:Kt,dragStartTime:Gn,shouldUseTimeDampening:bn})},Gr=function(Hr){Ri(),tr&&Ve(!1);var ln=Date.now(),bn=!1,Gn=function(){bn=!0};Ko({state:Hr,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Gn,scrollDroppable:Gn}),tr={dragStartTime:ln,shouldUseTimeDampening:bn},oa(),bn&&ar(Hr)},pn=function(){if(!tr)return;wt.cancel(),Kt.cancel(),tr=null};return{start:Gr,stop:pn,scroll:ar}},co=function(oe){var _e=oe.move,$e=oe.scrollDroppable,wt=oe.scrollWindow,Kt=function(zr,Hr){var ln=Be(zr.current.client.selection,Hr);_e({client:ln})},tr=function(zr,Hr){if(!Lo(zr,Hr))return Hr;var ln=is(zr,Hr);if(!ln)return $e(zr.descriptor.id,Hr),null;var bn=fe(Hr,ln);$e(zr.descriptor.id,bn);var Gn=fe(Hr,bn);return Gn},ar=function(zr,Hr,ln){if(!zr)return ln;if(!so(Hr,ln))return ln;var bn=Co(Hr,ln);if(!bn)return wt(ln),null;var Gn=fe(ln,bn);wt(Gn);var Li=fe(ln,Gn);return Li},Gr=function(zr){var Hr=zr.scrollJumpRequest;if(!Hr)return;var ln=ai(zr.impact);ln||Ve(!1);var bn=tr(zr.dimensions.droppables[ln],Hr);if(!bn)return;var Gn=zr.viewport,Li=ar(zr.isWindowScrollAllowed,Gn,bn);if(!Li)return;Kt(zr,Li)};return Gr},Ao=function(oe){var _e=oe.scrollDroppable,$e=oe.scrollWindow,wt=oe.move,Kt=as({scrollWindow:$e,scrollDroppable:_e}),tr=co({move:wt,scrollWindow:$e,scrollDroppable:_e}),ar=function(zr){if(zr.phase!=="DRAGGING")return;if(zr.movementMode==="FLUID"){Kt.scroll(zr);return}if(!zr.scrollJumpRequest)return;tr(zr)},Gr={scroll:ar,start:Kt.start,stop:Kt.stop};return Gr},$a="data-rbd",ss=function(){var Ue=$a+"-drag-handle";return{base:Ue,draggableId:Ue+"-draggable-id",contextId:Ue+"-context-id"}}(),_s=function(){var Ue=$a+"-draggable";return{base:Ue,contextId:Ue+"-context-id",id:Ue+"-id"}}(),Fo=function(){var Ue=$a+"-droppable";return{base:Ue,contextId:Ue+"-context-id",id:Ue+"-id"}}(),il={contextId:$a+"-scroll-container-context-id"},Eo=function(oe){return function(_e){return"["+_e+'="'+oe+'"]'}},zo=function(oe,_e){return oe.map(function($e){var wt=$e.styles[_e];return wt?$e.selector+" { "+wt+" }":""}).join(" ")},Fs="pointer-events: none;",ms=function(oe){var _e=Eo(oe),$e=function(){var Gr=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:_e(ss.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:Gr,dragging:Fs,dropAnimating:Gr}}}(),wt=function(){var Gr=`
transition: `+na.outOfTheWay+`;
`;return{selector:_e(_s.contextId),styles:{dragging:Gr,dropAnimating:Gr,userCancel:Gr}}}(),Kt={selector:_e(Fo.contextId),styles:{always:"overflow-anchor: none;"}},tr={selector:"body",styles:{dragging:`
cursor: grabbing;
cursor: -webkit-grabbing;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
overflow-anchor: none;
`}},ar=[wt,$e,Kt,tr];return{always:zo(ar,"always"),resting:zo(ar,"resting"),dragging:zo(ar,"dragging"),dropAnimating:zo(ar,"dropAnimating"),userCancel:zo(ar,"userCancel")}},hs=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect,wn=function(){var oe=document.querySelector("head");return oe||Ve(!1),oe},Ns=function(oe){var _e=document.createElement("style");return oe&&_e.setAttribute("nonce",oe),_e.type="text/css",_e};function Ll(Ue,oe){var _e=i(function(){return ms(Ue)},[Ue]),$e=Object(y.useRef)(null),wt=Object(y.useRef)(null),Kt=t(I(function(Hr){var ln=wt.current;ln||Ve(!1),ln.textContent=Hr}),[]),tr=t(function(Hr){var ln=$e.current;ln||Ve(!1),ln.textContent=Hr},[]);hs(function(){!$e.current&&!wt.current||Ve(!1);var Hr=Ns(oe),ln=Ns(oe);return $e.current=Hr,wt.current=ln,Hr.setAttribute($a+"-always",Ue),ln.setAttribute($a+"-dynamic",Ue),wn().appendChild(Hr),wn().appendChild(ln),tr(_e.always),Kt(_e.resting),function(){var bn=function(Li){var Mi=Li.current;Mi||Ve(!1),wn().removeChild(Mi),Li.current=null};bn($e),bn(wt)}},[oe,tr,Kt,_e.always,_e.resting,Ue]);var ar=t(function(){return Kt(_e.dragging)},[Kt,_e.dragging]),Gr=t(function(Hr){if(Hr==="DROP"){Kt(_e.dropAnimating);return}Kt(_e.userCancel)},[Kt,_e.dropAnimating,_e.userCancel]),pn=t(function(){if(!wt.current)return;Kt(_e.resting)},[Kt,_e.resting]),zr=i(function(){return{dragging:ar,dropping:Gr,resting:pn}},[ar,Gr,pn]);return zr}var el=function(oe){return oe&&oe.ownerDocument?oe.ownerDocument.defaultView:window};function Gs(Ue){return Ue instanceof el(Ue).HTMLElement}function ds(Ue,oe){var _e="["+ss.contextId+'="'+Ue+'"]',$e=Ht(document.querySelectorAll(_e));if(!$e.length)return null;var wt=me($e,function(Kt){return Kt.getAttribute(ss.draggableId)===oe});return wt&&Gs(wt)?wt:null}function ks(Ue){var oe=Object(y.useRef)({}),_e=Object(y.useRef)(null),$e=Object(y.useRef)(null),wt=Object(y.useRef)(!1),Kt=t(function(ln,bn){var Gn={id:ln,focus:bn};return oe.current[ln]=Gn,function(){var Mi=oe.current,da=Mi[ln];da!==Gn&&delete Mi[ln]}},[]),tr=t(function(ln){var bn=ds(Ue,ln);bn&&bn!==document.activeElement&&bn.focus()},[Ue]),ar=t(function(ln,bn){_e.current===ln&&(_e.current=bn)},[]),Gr=t(function(){if($e.current)return;if(!wt.current)return;$e.current=requestAnimationFrame(function(){$e.current=null;var ln=_e.current;ln&&tr(ln)})},[tr]),pn=t(function(ln){_e.current=null;var bn=document.activeElement;if(!bn)return;if(bn.getAttribute(ss.draggableId)!==ln)return;_e.current=ln},[]);hs(function(){return wt.current=!0,function(){wt.current=!1;var ln=$e.current;ln&&cancelAnimationFrame(ln)}},[]);var zr=i(function(){return{register:Kt,tryRecordFocus:pn,tryRestoreFocusRecorded:Gr,tryShiftRecord:ar}},[Kt,pn,Gr,ar]);return zr}function Qs(){var Ue={draggables:{},droppables:{}},oe=[];function _e(Hr){return oe.push(Hr),function(){var bn=oe.indexOf(Hr);if(bn===-1)return;oe.splice(bn,1)}}function $e(Hr){oe.length&&oe.forEach(function(ln){return ln(Hr)})}function wt(Hr){return Ue.draggables[Hr]||null}function Kt(Hr){var ln=wt(Hr);return ln||Ve(!1),ln}var tr={register:function(ln){Ue.draggables[ln.descriptor.id]=ln,$e({type:"ADDITION",value:ln})},update:function(ln,bn){var Gn=Ue.draggables[bn.descriptor.id];if(!Gn)return;if(Gn.uniqueId!==ln.uniqueId)return;delete Ue.draggables[bn.descriptor.id],Ue.draggables[ln.descriptor.id]=ln},unregister:function(ln){var bn=ln.descriptor.id,Gn=wt(bn);if(!Gn)return;if(ln.uniqueId!==Gn.uniqueId)return;delete Ue.draggables[bn],$e({type:"REMOVAL",value:ln})},getById:Kt,findById:wt,exists:function(ln){return Boolean(wt(ln))},getAllByType:function(ln){return lt(Ue.draggables).filter(function(bn){return bn.descriptor.type===ln})}};function ar(Hr){return Ue.droppables[Hr]||null}function Gr(Hr){var ln=ar(Hr);return ln||Ve(!1),ln}var pn={register:function(ln){Ue.droppables[ln.descriptor.id]=ln},unregister:function(ln){var bn=ar(ln.descriptor.id);if(!bn)return;if(ln.uniqueId!==bn.uniqueId)return;delete Ue.droppables[ln.descriptor.id]},getById:Gr,findById:ar,exists:function(ln){return Boolean(ar(ln))},getAllByType:function(ln){return lt(Ue.droppables).filter(function(bn){return bn.descriptor.type===ln})}};function zr(){Ue.draggables={},Ue.droppables={},oe.length=0}return{draggable:tr,droppable:pn,subscribe:_e,clean:zr}}function tl(){var Ue=i(Qs,[]);return Object(y.useEffect)(function(){return function(){requestAnimationFrame(Ue.clean)}},[Ue]),Ue}var xs=p.a.createContext(null),Bs=function(){var oe=document.body;return oe||Ve(!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(Ue){var oe=i(function(){return Js(Ue)},[Ue]),_e=Object(y.useRef)(null);Object(y.useEffect)(function(){var Kt=document.createElement("div");return _e.current=Kt,Kt.id=oe,Kt.setAttribute("aria-live","assertive"),Kt.setAttribute("aria-atomic","true"),Object(v.a)(Kt.style,al),Bs().appendChild(Kt),function(){setTimeout(function(){var Gr=Bs();Gr.contains(Kt)&&Gr.removeChild(Kt),Kt===_e.current&&(_e.current=null)})}},[oe]);var $e=t(function(wt){var Kt=_e.current;if(Kt){Kt.textContent=wt;return}},[]);return $e}var No=0,fs={separator:"::"};function Ds(){No=0}function go(Ue,oe){return oe===void 0&&(oe=fs),i(function(){return""+Ue+oe.separator+No++},[oe.separator,Ue])}function Ut(Ue){var oe=Ue.contextId,_e=Ue.uniqueId;return"rbd-hidden-text-"+oe+"-"+_e}function or(Ue){var oe=Ue.contextId,_e=Ue.text,$e=go("hidden-text",{separator:"-"}),wt=i(function(){return Ut({contextId:oe,uniqueId:$e})},[$e,oe]);return Object(y.useEffect)(function(){var tr=document.createElement("div");return tr.id=wt,tr.textContent=_e,tr.style.display="none",Bs().appendChild(tr),function(){var Gr=Bs();Gr.contains(tr)&&Gr.removeChild(tr)}},[wt,_e]),wt}var Nn=p.a.createContext(null),hi={react:"^16.8.5","react-dom":"^16.8.5"},Nt=/(\d+)\.(\d+)\.(\d+)/,ce=function(oe){var _e=Nt.exec(oe);_e!=null||Ve(!1);var $e=Number(_e[1]),wt=Number(_e[2]),Kt=Number(_e[3]);return{major:$e,minor:wt,patch:Kt,raw:oe}},xe=function(oe,_e){return _e.major>oe.major?!0:_e.major<oe.major?!1:_e.minor>oe.minor?!0:_e.minor<oe.minor?!1:_e.patch>=oe.patch},Oe=function(oe,_e){var $e=ce(oe),wt=ce(_e);if(xe($e,wt))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
`,Dt=function(oe){var _e=oe.doctype;if(!_e)return;_e.name.toLowerCase()!=="html",_e.publicId!==""};function lr(Ue){}function Zr(Ue,oe){lr(function(){Object(y.useEffect)(function(){try{Ue()}catch(_e){q(`
A setup problem was encountered.
> `+_e.message+`
`)}},oe)})}function mn(){Zr(function(){Oe(hi.react,p.a.version),Dt(document)},[])}function Dn(Ue){var oe=Object(y.useRef)(Ue);return Object(y.useEffect)(function(){oe.current=Ue}),oe}function ui(){var Ue=null;function oe(){return Boolean(Ue)}function _e(tr){return tr===Ue}function $e(tr){Ue&&Ve(!1);var ar={abandon:tr};return Ue=ar,ar}function wt(){Ue||Ve(!1),Ue=null}function Kt(){Ue&&(Ue.abandon(),wt())}return{isClaimed:oe,isActive:_e,claim:$e,release:wt,tryAbandon:Kt}}var Si=9,vi=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[vi]=!0,Do[Si]=!0,Do),Ms=function(oe){vo[oe.keyCode]&&oe.preventDefault()},rl=function(){var Ue="visibilitychange";if(typeof document=="undefined")return Ue;var oe=[Ue,"ms"+Ue,"webkit"+Ue,"moz"+Ue,"o"+Ue],_e=me(oe,function($e){return"on"+$e in document});return _e||Ue}(),gs=0,Ra=5;function dl(Ue,oe){return Math.abs(oe.x-Ue.x)>=Ra||Math.abs(oe.y-Ue.y)>=Ra}var fl={type:"IDLE"};function Us(Ue){var oe=Ue.cancel,_e=Ue.completed,$e=Ue.getPhase,wt=Ue.setPhase;return[{eventName:"mousemove",fn:function(tr){var ar=tr.button,Gr=tr.clientX,pn=tr.clientY;if(ar!==gs)return;var zr={x:Gr,y:pn},Hr=$e();if(Hr.type==="DRAGGING"){tr.preventDefault(),Hr.actions.move(zr);return}Hr.type==="PENDING"||Ve(!1);var ln=Hr.point;if(!dl(ln,zr))return;tr.preventDefault();var bn=Hr.actions.fluidLift(zr);wt({type:"DRAGGING",actions:bn})}},{eventName:"mouseup",fn:function(tr){var ar=$e();if(ar.type!=="DRAGGING"){oe();return}tr.preventDefault(),ar.actions.drop({shouldBlockNextClick:!0}),_e()}},{eventName:"mousedown",fn:function(tr){$e().type==="DRAGGING"&&tr.preventDefault(),oe()}},{eventName:"keydown",fn:function(tr){var ar=$e();if(ar.type==="PENDING"){oe();return}if(tr.keyCode===Qi){tr.preventDefault(),oe();return}Ms(tr)}},{eventName:"resize",fn:oe},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){$e().type==="PENDING"&&oe()}},{eventName:"webkitmouseforcedown",fn:function(tr){var ar=$e();if(ar.type!=="IDLE"||Ve(!1),ar.actions.shouldRespectForcePress()){oe();return}tr.preventDefault()}},{eventName:rl,fn:oe}]}function Os(Ue){var oe=Object(y.useRef)(fl),_e=Object(y.useRef)(le),$e=i(function(){return{eventName:"mousedown",fn:function(Hr){if(Hr.defaultPrevented)return;if(Hr.button!==gs)return;if(Hr.ctrlKey||Hr.metaKey||Hr.shiftKey||Hr.altKey)return;var ln=Ue.findClosestDraggableId(Hr);if(!ln)return;var bn=Ue.tryGetLock(ln,tr,{sourceEvent:Hr});if(!bn)return;Hr.preventDefault();var Gn={x:Hr.clientX,y:Hr.clientY};_e.current(),pn(bn,Gn)}}},[Ue]),wt=i(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Hr){if(Hr.defaultPrevented)return;var ln=Ue.findClosestDraggableId(Hr);if(!ln)return;var bn=Ue.findOptionsForDraggable(ln);if(!bn)return;if(bn.shouldRespectForcePress)return;if(!Ue.canGetLock(ln))return;Hr.preventDefault()}}},[Ue]),Kt=t(function(){var Hr={passive:!1,capture:!0};_e.current=we(window,[wt,$e],Hr)},[wt,$e]),tr=t(function(){var zr=oe.current;if(zr.type==="IDLE")return;oe.current=fl,_e.current(),Kt()},[Kt]),ar=t(function(){var zr=oe.current;tr(),zr.type==="DRAGGING"&&zr.actions.cancel({shouldBlockNextClick:!0}),zr.type==="PENDING"&&zr.actions.abort()},[tr]),Gr=t(function(){var Hr={capture:!0,passive:!1},ln=Us({cancel:ar,completed:tr,getPhase:function(){return oe.current},setPhase:function(Gn){oe.current=Gn}});_e.current=we(window,ln,Hr)},[ar,tr]),pn=t(function(Hr,ln){oe.current.type==="IDLE"||Ve(!1),oe.current={type:"PENDING",point:ln,actions:Hr},Gr()},[Gr]);hs(function(){return Kt(),function(){_e.current()}},[Kt])}var Xs;function Ql(){}var Ul=(Xs={},Xs[no]=!0,Xs[Ua]=!0,Xs[Zo]=!0,Xs[Wo]=!0,Xs);function wl(Ue,oe){function _e(){oe(),Ue.cancel()}function $e(){oe(),Ue.drop()}return[{eventName:"keydown",fn:function(Kt){if(Kt.keyCode===Qi){Kt.preventDefault(),_e();return}if(Kt.keyCode===sa){Kt.preventDefault(),$e();return}if(Kt.keyCode===$o){Kt.preventDefault(),Ue.moveDown();return}if(Kt.keyCode===Es){Kt.preventDefault(),Ue.moveUp();return}if(Kt.keyCode===As){Kt.preventDefault(),Ue.moveRight();return}if(Kt.keyCode===Bo){Kt.preventDefault(),Ue.moveLeft();return}if(Ul[Kt.keyCode]){Kt.preventDefault();return}Ms(Kt)}},{eventName:"mousedown",fn:_e},{eventName:"mouseup",fn:_e},{eventName:"click",fn:_e},{eventName:"touchstart",fn:_e},{eventName:"resize",fn:_e},{eventName:"wheel",fn:_e,options:{passive:!0}},{eventName:rl,fn:_e}]}function Ts(Ue){var oe=Object(y.useRef)(Ql),_e=i(function(){return{eventName:"keydown",fn:function(Kt){if(Kt.defaultPrevented)return;if(Kt.keyCode!==sa)return;var tr=Ue.findClosestDraggableId(Kt);if(!tr)return;var ar=Ue.tryGetLock(tr,zr,{sourceEvent:Kt});if(!ar)return;Kt.preventDefault();var Gr=!0,pn=ar.snapLift();oe.current();function zr(){Gr||Ve(!1),Gr=!1,oe.current(),$e()}oe.current=we(window,wl(pn,zr),{capture:!0,passive:!1})}}},[Ue]),$e=t(function(){var Kt={passive:!1,capture:!0};oe.current=we(window,[_e],Kt)},[_e]);hs(function(){return $e(),function(){oe.current()}},[$e])}var Ws={type:"IDLE"},Tl=120,pl=.15;function jo(Ue){var oe=Ue.cancel,_e=Ue.getPhase;return[{eventName:"orientationchange",fn:oe},{eventName:"resize",fn:oe},{eventName:"contextmenu",fn:function(wt){wt.preventDefault()}},{eventName:"keydown",fn:function(wt){if(_e().type!=="DRAGGING"){oe();return}wt.keyCode===Qi&&wt.preventDefault(),oe()}},{eventName:rl,fn:oe}]}function yo(Ue){var oe=Ue.cancel,_e=Ue.completed,$e=Ue.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Kt){var tr=$e();if(tr.type!=="DRAGGING"){oe();return}tr.hasMoved=!0;var ar=Kt.touches[0],Gr=ar.clientX,pn=ar.clientY,zr={x:Gr,y:pn};Kt.preventDefault(),tr.actions.move(zr)}},{eventName:"touchend",fn:function(Kt){var tr=$e();if(tr.type!=="DRAGGING"){oe();return}Kt.preventDefault(),tr.actions.drop({shouldBlockNextClick:!0}),_e()}},{eventName:"touchcancel",fn:function(Kt){if($e().type!=="DRAGGING"){oe();return}Kt.preventDefault(),oe()}},{eventName:"touchforcechange",fn:function(Kt){var tr=$e();tr.type!=="IDLE"||Ve(!1);var ar=Kt.touches[0];if(!ar)return;var Gr=ar.force>=pl;if(!Gr)return;var pn=tr.actions.shouldRespectForcePress();if(tr.type==="PENDING"){pn&&oe();return}if(pn){if(tr.hasMoved){Kt.preventDefault();return}oe();return}Kt.preventDefault()}},{eventName:rl,fn:oe}]}function qo(Ue){var oe=Object(y.useRef)(Ws),_e=Object(y.useRef)(le),$e=t(function(){return oe.current},[]),wt=t(function(bn){oe.current=bn},[]),Kt=i(function(){return{eventName:"touchstart",fn:function(bn){if(bn.defaultPrevented)return;var Gn=Ue.findClosestDraggableId(bn);if(!Gn)return;var Li=Ue.tryGetLock(Gn,ar,{sourceEvent:bn});if(!Li)return;var Mi=bn.touches[0],da=Mi.clientX,$i=Mi.clientY,Qa={x:da,y:$i};_e.current(),Hr(Li,Qa)}}},[Ue]),tr=t(function(){var bn={capture:!0,passive:!1};_e.current=we(window,[Kt],bn)},[Kt]),ar=t(function(){var ln=oe.current;if(ln.type==="IDLE")return;ln.type==="PENDING"&&clearTimeout(ln.longPressTimerId),wt(Ws),_e.current(),tr()},[tr,wt]),Gr=t(function(){var ln=oe.current;ar(),ln.type==="DRAGGING"&&ln.actions.cancel({shouldBlockNextClick:!0}),ln.type==="PENDING"&&ln.actions.abort()},[ar]),pn=t(function(){var bn={capture:!0,passive:!1},Gn={cancel:Gr,completed:ar,getPhase:$e},Li=we(window,yo(Gn),bn),Mi=we(window,jo(Gn),bn);_e.current=function(){Li(),Mi()}},[Gr,$e,ar]),zr=t(function(){var bn=$e();bn.type==="PENDING"||Ve(!1);var Gn=bn.actions.fluidLift(bn.point);wt({type:"DRAGGING",actions:Gn,hasMoved:!1})},[$e,wt]),Hr=t(function(bn,Gn){$e().type==="IDLE"||Ve(!1);var Li=setTimeout(zr,Tl);wt({type:"PENDING",point:Gn,actions:bn,longPressTimerId:Li}),pn()},[pn,$e,wt,zr]);hs(function(){return tr(),function(){_e.current();var Gn=$e();Gn.type==="PENDING"&&(clearTimeout(Gn.longPressTimerId),wt(Ws))}},[$e,tr,wt]),hs(function(){var bn=we(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return bn},[])}function ps(Ue){lr(function(){var oe=Dn(Ue);Zr(function(){oe.current.length===Ue.length||Ve(!1)})})}var Is={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function es(Ue,oe){if(oe==null)return!1;var _e=Boolean(Is[oe.tagName.toLowerCase()]);if(_e)return!0;var $e=oe.getAttribute("contenteditable");return $e==="true"||$e===""?!0:oe===Ue?!1:es(Ue,oe.parentElement)}function Ls(Ue,oe){var _e=oe.target;return Gs(_e)?es(Ue,_e):!1}var Ps=function(oe){return e(oe.getBoundingClientRect()).center};function ml(Ue){return Ue instanceof el(Ue).Element}var Rl=function(){var Ue="matches";if(typeof document=="undefined")return Ue;var oe=[Ue,"msMatchesSelector","webkitMatchesSelector"],_e=me(oe,function($e){return $e in Element.prototype});return _e||Ue}();function _l(Ue,oe){return Ue==null?null:Ue[Rl](oe)?Ue:_l(Ue.parentElement,oe)}function Bl(Ue,oe){return Ue.closest?Ue.closest(oe):_l(Ue,oe)}function jl(Ue){return"["+ss.contextId+'="'+Ue+'"]'}function kl(Ue,oe){var _e=oe.target;if(!ml(_e))return null;var $e=jl(Ue),wt=Bl(_e,$e);return wt&&Gs(wt)?wt:null}function Xl(Ue,oe){var _e=kl(Ue,oe);return _e?_e.getAttribute(ss.draggableId):null}function ol(Ue,oe){var _e="["+_s.contextId+'="'+Ue+'"]',$e=Ht(document.querySelectorAll(_e)),wt=me($e,function(Kt){return Kt.getAttribute(_s.id)===oe});return wt&&Gs(wt)?wt:null}function Ys(Ue){Ue.preventDefault()}function sl(Ue){var oe=Ue.expected,_e=Ue.phase,$e=Ue.isLockActive,wt=Ue.shouldWarn;return $e()?!(oe!==_e):!1}function nl(Ue){var oe=Ue.lockAPI,_e=Ue.store,$e=Ue.registry,wt=Ue.draggableId;if(oe.isClaimed())return!1;var Kt=$e.draggable.findById(wt);return Kt&&Kt.options.isEnabled?!!ci(_e.getState(),wt):!1}function xl(Ue){var oe=Ue.lockAPI,_e=Ue.contextId,$e=Ue.store,wt=Ue.registry,Kt=Ue.draggableId,tr=Ue.forceSensorStop,ar=Ue.sourceEvent,Gr=nl({lockAPI:oe,store:$e,registry:wt,draggableId:Kt});if(!Gr)return null;var pn=wt.draggable.getById(Kt),zr=ol(_e,pn.descriptor.id);if(!zr)return null;if(ar&&!pn.options.canDragInteractiveElements&&Ls(zr,ar))return null;var Hr=oe.claim(tr||le),ln="PRE_DRAG";function bn(){return pn.options.shouldRespectForcePress}function Gn(){return oe.isActive(Hr)}function Li(za,Xo){sl({expected:za,phase:ln,isLockActive:Gn,shouldWarn:!0})&&$e.dispatch(Xo())}var Mi=Li.bind(null,"DRAGGING");function da(za){function Xo(){oe.release(),ln="COMPLETED"}ln!=="PRE_DRAG"&&(Xo(),ln==="PRE_DRAG"||Ve(!1)),$e.dispatch(xr(za.liftActionArgs)),ln="DRAGGING";function ls(N,U){if(U===void 0&&(U={shouldBlockNextClick:!1}),za.cleanup(),U.shouldBlockNextClick){var ie=we(window,[{eventName:"click",fn:Ys,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ie)}Xo(),$e.dispatch(Pi({reason:N}))}return Object(v.a)({isActive:function(){return sl({expected:"DRAGGING",phase:ln,isLockActive:Gn,shouldWarn:!1})},shouldRespectForcePress:bn,drop:function(U){return ls("DROP",U)},cancel:function(U){return ls("CANCEL",U)}},za.actions)}function $i(za){var Xo=M(function(N){Mi(function(){return _t({client:N})})}),ls=da({liftActionArgs:{id:Kt,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 Mi(tn)},moveRight:function(){return Mi(Ln)},moveDown:function(){return Mi(xn)},moveLeft:function(){return Mi(Sn)}};return da({liftActionArgs:{id:Kt,clientSelection:Ps(zr),movementMode:"SNAP"},cleanup:le,actions:za})}function ya(){var za=sl({expected:"PRE_DRAG",phase:ln,isLockActive:Gn,shouldWarn:!0});za&&oe.release()}var fo={isActive:function(){return sl({expected:"PRE_DRAG",phase:ln,isLockActive:Gn,shouldWarn:!1})},shouldRespectForcePress:bn,fluidLift:$i,snapLift:Qa,abort:ya};return fo}var Ml=[Os,Ts,qo];function Wl(Ue){var oe=Ue.contextId,_e=Ue.store,$e=Ue.registry,wt=Ue.customSensors,Kt=Ue.enableDefaultSensors,tr=[].concat(Kt?Ml:[],wt||[]),ar=Object(y.useState)(function(){return ui()})[0],Gr=t(function($i,Qa){$i.isDragging&&!Qa.isDragging&&ar.tryAbandon()},[ar]);hs(function(){var $i=_e.getState(),Qa=_e.subscribe(function(){var ya=_e.getState();Gr($i,ya),$i=ya});return Qa},[ar,_e,Gr]),hs(function(){return ar.tryAbandon},[ar.tryAbandon]);var pn=t(function(da){return nl({lockAPI:ar,registry:$e,store:_e,draggableId:da})},[ar,$e,_e]),zr=t(function(da,$i,Qa){return xl({lockAPI:ar,registry:$e,contextId:oe,store:_e,draggableId:da,forceSensorStop:$i,sourceEvent:Qa&&Qa.sourceEvent?Qa.sourceEvent:null})},[oe,ar,$e,_e]),Hr=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]),bn=t(function(){if(!ar.isClaimed())return;ar.tryAbandon(),_e.getState().phase!=="IDLE"&&_e.dispatch(qn())},[ar,_e]),Gn=t(ar.isClaimed,[ar]),Li=i(function(){return{canGetLock:pn,tryGetLock:zr,findClosestDraggableId:Hr,findOptionsForDraggable:ln,tryReleaseLock:bn,isLockClaimed:Gn}},[pn,zr,Hr,ln,bn,Gn]);ps(tr);for(var Mi=0;Mi<tr.length;Mi++)tr[Mi](Li)}var au=function(oe){return{onBeforeCapture:oe.onBeforeCapture,onBeforeDragStart:oe.onBeforeDragStart,onDragStart:oe.onDragStart,onDragEnd:oe.onDragEnd,onDragUpdate:oe.onDragUpdate}};function Nl(Ue){return Ue.current||Ve(!1),Ue.current}function $l(Ue){var oe=Ue.contextId,_e=Ue.setCallbacks,$e=Ue.sensors,wt=Ue.nonce,Kt=Ue.dragHandleUsageInstructions,tr=Object(y.useRef)(null);mn();var ar=Dn(Ue),Gr=t(function(){return au(ar.current)},[ar]),pn=Vo(oe),zr=or({contextId:oe,text:Kt}),Hr=Ll(oe,wt),ln=t(function(N){Nl(tr).dispatch(N)},[]),bn=i(function(){return Object(m.b)({publishWhileDragging:mr,updateDroppableScroll:Xr,updateDroppableIsEnabled:un,updateDroppableIsCombineEnabled:Fn,collectionStarting:Mr},ln)},[ln]),Gn=tl(),Li=i(function(){return li(Gn,bn)},[Gn,bn]),Mi=i(function(){return Ao(Object(v.a)({scrollWindow:si,scrollDroppable:Li.scrollDroppable},Object(m.b)({move:_t},ln)))},[Li.scrollDroppable,ln]),da=ks(oe),$i=i(function(){return Tr({announce:pn,autoScroller:Mi,dimensionMarshal:Li,focusMarshal:da,getResponders:Gr,styleMarshal:Hr})},[pn,Mi,Li,da,Gr,Hr]);tr.current=$i;var Qa=t(function(){var N=Nl(tr),U=N.getState();U.phase!=="IDLE"&&N.dispatch(qn())},[]),ya=t(function(){var N=Nl(tr).getState();return N.isDragging||N.phase==="DROP_ANIMATING"},[]),fo=i(function(){return{isDragging:ya,tryAbort:Qa}},[ya,Qa]);_e(fo);var za=t(function(N){return ci(Nl(tr).getState(),N)},[]),Xo=t(function(){return rn(Nl(tr).getState())},[]),ls=i(function(){return{marshal:Li,focus:da,contextId:oe,canLift:za,isMovementAllowed:Xo,dragHandleUsageInstructionsId:zr,registry:Gn}},[oe,Li,zr,da,za,Xo,Gn]);return Wl({contextId:oe,store:$i,registry:Gn,customSensors:$e,enableDefaultSensors:Ue.enableDefaultSensors!==!1}),Object(y.useEffect)(function(){return Qa},[Qa]),p.a.createElement(Nn.Provider,{value:ls},p.a.createElement(f.a,{context:xs,store:$i},Ue.children))}var tu=0;function Iu(){tu=0}function pu(){return i(function(){return""+tu++},[])}function mu(){Iu(),Ds()}function gu(Ue){var oe=pu(),_e=Ue.dragHandleUsageInstructions||be.dragHandleUsageInstructions;return p.a.createElement(ut,null,function($e){return p.a.createElement($l,{nonce:Ue.nonce,contextId:oe,setCallbacks:$e,dragHandleUsageInstructions:_e,enableDefaultSensors:Ue.enableDefaultSensors,sensors:Ue.sensors,onBeforeCapture:Ue.onBeforeCapture,onBeforeDragStart:Ue.onBeforeDragStart,onDragStart:Ue.onDragStart,onDragUpdate:Ue.onDragUpdate,onDragEnd:Ue.onDragEnd},Ue.children)})}var ql=function(oe){return function(_e){return oe===_e}},Cl=ql("scroll"),ll=ql("auto"),Hl=ql("visible"),Sl=function(oe,_e){return _e(oe.overflowX)||_e(oe.overflowY)},Su=function(oe,_e){return _e(oe.overflowX)&&_e(oe.overflowY)},vu=function(oe){var _e=window.getComputedStyle(oe),$e={overflowX:_e.overflowX,overflowY:_e.overflowY};return Sl($e,Cl)||Sl($e,ll)},Au=function(){return!1;var oe,_e;if(!vu(oe))return!1;var $e,wt;if(Su(wt,Hl))return!1},Ol=function Ue(oe){return oe==null?null:oe===document.body?Au()?oe:null:oe===document.documentElement?null:vu(oe)?oe:Ue(oe.parentElement)},cu=function(oe){if(!oe)return;var _e=Ol(oe.parentElement);if(!_e)return},du=function(oe){return{x:oe.scrollLeft,y:oe.scrollTop}},Lu=function Ue(oe){if(!oe)return!1;var _e=window.getComputedStyle(oe);return _e.position==="fixed"?!0:Ue(oe.parentElement)},zl=function(oe){var _e=Ol(oe),$e=Lu(oe);return{closestScrollable:_e,isFixedOnPage:$e}},ru=function(oe){var _e=oe.descriptor,$e=oe.isEnabled,wt=oe.isCombineEnabled,Kt=oe.isFixedOnPage,tr=oe.direction,ar=oe.client,Gr=oe.page,pn=oe.closest,zr=function(){if(!pn)return null;var Gn=pn.scrollSize,Li=pn.client,Mi=Jn({scrollHeight:Gn.scrollHeight,scrollWidth:Gn.scrollWidth,height:Li.paddingBox.height,width:Li.paddingBox.width});return{pageMarginBox:pn.page.marginBox,frameClient:Li,scrollSize:Gn,shouldClipSubject:pn.shouldClipSubject,scroll:{initial:pn.scroll,current:pn.scroll,max:Mi,diff:{value:Ce,displacement:Ce}}}}(),Hr=tr==="vertical"?Un:$t,ln=Ge({page:Gr,withPlaceholder:null,axis:Hr,frame:zr}),bn={descriptor:_e,isCombineEnabled:wt,isFixedOnPage:Kt,axis:Hr,isEnabled:$e,client:ar,page:Gr,frame:zr,subject:ln};return bn},ou=function(oe,_e){var $e=C(oe);if(!_e)return $e;if(oe!==_e)return $e;var wt=$e.paddingBox.top-_e.scrollTop,Kt=$e.paddingBox.left-_e.scrollLeft,tr=wt+_e.scrollHeight,ar=Kt+_e.scrollWidth,Gr={top:wt,right:ar,bottom:tr,left:Kt},pn=l(Gr,$e.border),zr=h({borderBox:pn,margin:$e.margin,border:$e.border,padding:$e.padding});return zr},su=function(oe){var _e=oe.ref,$e=oe.descriptor,wt=oe.env,Kt=oe.windowScroll,tr=oe.direction,ar=oe.isDropDisabled,Gr=oe.isCombineEnabled,pn=oe.shouldClipSubject,zr=wt.closestScrollable,Hr=ou(_e,zr),ln=S(Hr,Kt),bn=function(){if(!zr)return null;var Li=C(zr),Mi={scrollHeight:zr.scrollHeight,scrollWidth:zr.scrollWidth};return{client:Li,page:S(Li,Kt),scroll:du(zr),scrollSize:Mi,shouldClipSubject:pn}}(),Gn=ru({descriptor:$e,isEnabled:!ar,isCombineEnabled:Gr,isFixedOnPage:wt.isFixedOnPage,direction:tr,client:Hr,page:ln,closest:bn});return Gn},Jl={passive:!1},Du={passive:!0},Ru=function(oe){return oe.shouldPublishImmediately?Jl:Du};function Zl(Ue){var oe=Object(y.useContext)(Ue);return oe||Ve(!1),oe}var yu=function(oe){return oe&&oe.env.closestScrollable||null};function xu(Ue){var oe=Object(y.useRef)(null),_e=Zl(Nn),$e=go("droppable"),wt=_e.registry,Kt=_e.marshal,tr=Dn(Ue),ar=i(function(){return{id:Ue.droppableId,type:Ue.type,mode:Ue.mode}},[Ue.droppableId,Ue.mode,Ue.type]),Gr=Object(y.useRef)(ar),pn=i(function(){return I(function(ya,fo){oe.current||Ve(!1);var za={x:ya,y:fo};Kt.updateDroppableScroll(ar.id,za)})},[ar.id,Kt]),zr=t(function(){var ya=oe.current;return!ya||!ya.env.closestScrollable?Ce:du(ya.env.closestScrollable)},[]),Hr=t(function(){var ya=zr();pn(ya.x,ya.y)},[zr,pn]),ln=i(function(){return M(Hr)},[Hr]),bn=t(function(){var ya=oe.current,fo=yu(ya);ya&&fo||Ve(!1);var za=ya.scrollOptions;if(za.shouldPublishImmediately){Hr();return}ln()},[ln,Hr]),Gn=t(function(ya,fo){oe.current&&Ve(!1);var za=tr.current,Xo=za.getDroppableRef();Xo||Ve(!1);var ls=zl(Xo),N={ref:Xo,descriptor:ar,env:ls,scrollOptions:fo};oe.current=N;var U=su({ref:Xo,descriptor:ar,env:ls,windowScroll:ya,direction:za.direction,isDropDisabled:za.isDropDisabled,isCombineEnabled:za.isCombineEnabled,shouldClipSubject:!za.ignoreContainerClipping}),ie=ls.closestScrollable;return ie&&(ie.setAttribute(il.contextId,_e.contextId),ie.addEventListener("scroll",bn,Ru(N.scrollOptions))),U},[_e.contextId,ar,bn,tr]),Li=t(function(){var ya=oe.current,fo=yu(ya);return ya&&fo||Ve(!1),du(fo)},[]),Mi=t(function(){var ya=oe.current;ya||Ve(!1);var fo=yu(ya);if(oe.current=null,!fo)return;ln.cancel(),fo.removeAttribute(il.contextId),fo.removeEventListener("scroll",bn,Ru(ya.scrollOptions))},[bn,ln]),da=t(function(ya){var fo=oe.current;fo||Ve(!1);var za=yu(fo);za||Ve(!1),za.scrollTop+=ya.y,za.scrollLeft+=ya.x},[]),$i=i(function(){return{getDimensionAndWatchScroll:Gn,getScrollWhileDragging:Li,dragStopped:Mi,scroll:da}},[Mi,Gn,Li,da]),Qa=i(function(){return{uniqueId:$e,descriptor:ar,callbacks:$i}},[$i,ar,$e]);hs(function(){return Gr.current=Qa.descriptor,wt.droppable.register(Qa),function(){oe.current&&Mi(),wt.droppable.unregister(Qa)}},[$i,ar,Mi,Qa,Kt,wt.droppable]),hs(function(){if(!oe.current)return;Kt.updateDroppableIsEnabled(Gr.current.id,!Ue.isDropDisabled)},[Ue.isDropDisabled,Kt]),hs(function(){if(!oe.current)return;Kt.updateDroppableIsCombineEnabled(Gr.current.id,Ue.isCombineEnabled)},[Ue.isCombineEnabled,Kt])}function bu(){}var hl={width:0,height:0,margin:hr},Dl=function(oe){var _e=oe.isAnimatingOpenOnMount,$e=oe.placeholder,wt=oe.animate;return _e||wt==="close"?hl:{height:$e.client.borderBox.height,width:$e.client.borderBox.width,margin:$e.client.margin}},nu=function(oe){var _e=oe.isAnimatingOpenOnMount,$e=oe.placeholder,wt=oe.animate,Kt=Dl({isAnimatingOpenOnMount:_e,placeholder:$e,animate:wt});return{display:$e.display,boxSizing:"border-box",width:Kt.width,height:Kt.height,marginTop:Kt.margin.top,marginRight:Kt.margin.right,marginBottom:Kt.margin.bottom,marginLeft:Kt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:wt!=="none"?na.placeholder:null}};function Nu(Ue){var oe=Object(y.useRef)(null),_e=t(function(){if(!oe.current)return;clearTimeout(oe.current),oe.current=null},[]),$e=Ue.animate,wt=Ue.onTransitionEnd,Kt=Ue.onClose,tr=Ue.contextId,ar=Object(y.useState)(Ue.animate==="open"),Gr=ar[0],pn=ar[1];Object(y.useEffect)(function(){return Gr?$e!=="open"?(_e(),pn(!1),bu):oe.current?bu:(oe.current=setTimeout(function(){oe.current=null,pn(!1)}),_e):bu},[$e,Gr,_e]);var zr=t(function(ln){if(ln.propertyName!=="height")return;wt(),$e==="close"&&Kt()},[$e,Kt,wt]),Hr=nu({isAnimatingOpenOnMount:Gr,animate:Ue.animate,placeholder:Ue.placeholder});return p.a.createElement(Ue.placeholder.tagName,{style:Hr,"data-rbd-placeholder-context-id":tr,onTransitionEnd:zr,ref:Ue.innerRef})}var hu=p.a.memo(Nu),fu=p.a.createContext(null);function iu(Ue){Ue&&Gs(Ue)||Ve(!1)}function Ae(Ue){return typeof Ue=="boolean"}function ee(Ue,oe){oe.forEach(function(_e){return _e(Ue)})}var L=[function(oe){var _e=oe.props;_e.droppableId||Ve(!1),typeof _e.droppableId=="string"||Ve(!1)},function(oe){var _e=oe.props;Ae(_e.isDropDisabled)||Ve(!1),Ae(_e.isCombineEnabled)||Ve(!1),Ae(_e.ignoreContainerClipping)||Ve(!1)},function(oe){var _e=oe.getDroppableRef;iu(_e())}],W=[function(oe){var _e=oe.props,$e=oe.getPlaceholderRef;if(!_e.placeholder)return;var wt=$e();if(wt)return}],H=[function(oe){var _e=oe.props;_e.renderClone||Ve(!1)},function(oe){var _e=oe.getPlaceholderRef;_e()&&Ve(!1)}];function Z(Ue){Zr(function(){ee(Ue,L),Ue.props.mode==="standard"&&ee(Ue,W),Ue.props.mode==="virtual"&&ee(Ue,H)})}var ne=function(Ue){Object(x.a)(oe,Ue);function oe(){for(var $e,wt=arguments.length,Kt=new Array(wt),tr=0;tr<wt;tr++)Kt[tr]=arguments[tr];return $e=Ue.call.apply(Ue,[this].concat(Kt))||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(wt,Kt){return wt.shouldAnimate?wt.on?{isVisible:!0,data:wt.on,animate:"open"}:Kt.isVisible?{isVisible:!0,data:Kt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(wt.on),data:wt.on,animate:"none"}};var _e=oe.prototype;return _e.render=function(){if(!this.state.isVisible)return null;var wt={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(wt)},oe}(p.a.PureComponent),ve={dragging:5e3,dropAnimating:4500},Te=function(oe,_e){return _e?na.drop(_e.duration):oe?na.snap:na.fluid},ze=function(oe,_e){return oe?_e?Ji.opacity.drop:Ji.opacity.combining:null},ot=function(oe){return oe.forceShouldAnimate!=null?oe.forceShouldAnimate:oe.mode==="SNAP"};function ft(Ue){var oe=Ue.dimension,_e=oe.client,$e=Ue.offset,wt=Ue.combineWith,Kt=Ue.dropping,tr=Boolean(wt),ar=ot(Ue),Gr=Boolean(Kt),pn=Gr?La.drop($e,tr):La.moveTo($e),zr={position:"fixed",top:_e.marginBox.top,left:_e.marginBox.left,boxSizing:"border-box",width:_e.borderBox.width,height:_e.borderBox.height,transition:Te(ar,Kt),transform:pn,opacity:ze(tr,Gr),zIndex:Gr?ve.dropAnimating:ve.dragging,pointerEvents:"none"};return zr}function Zt(Ue){return{transform:La.moveTo(Ue.offset),transition:Ue.shouldAnimateDisplacement?null:"none"}}function Cr(Ue){return Ue.type==="DRAGGING"?ft(Ue):Zt(Ue)}function Sr(Ue,oe,_e){_e===void 0&&(_e=Ce);var $e=window.getComputedStyle(oe),wt=oe.getBoundingClientRect(),Kt=E(wt,$e),tr=S(Kt,_e),ar={client:Kt,tagName:oe.tagName.toLowerCase(),display:$e.display},Gr={x:Kt.marginBox.width,y:Kt.marginBox.height},pn={descriptor:Ue,placeholder:ar,displaceBy:Gr,client:Kt,page:tr};return pn}function Wr(Ue){var oe=go("draggable"),_e=Ue.descriptor,$e=Ue.registry,wt=Ue.getDraggableRef,Kt=Ue.canDragInteractiveElements,tr=Ue.shouldRespectForcePress,ar=Ue.isEnabled,Gr=i(function(){return{canDragInteractiveElements:Kt,shouldRespectForcePress:tr,isEnabled:ar}},[Kt,ar,tr]),pn=t(function(bn){var Gn=wt();return Gn||Ve(!1),Sr(_e,Gn,bn)},[_e,wt]),zr=i(function(){return{uniqueId:oe,descriptor:_e,options:Gr,getDimension:pn}},[_e,pn,Gr,oe]),Hr=Object(y.useRef)(zr),ln=Object(y.useRef)(!0);hs(function(){return $e.draggable.register(Hr.current),function(){return $e.draggable.unregister(Hr.current)}},[$e.draggable]),hs(function(){if(ln.current){ln.current=!1;return}var bn=Hr.current;Hr.current=zr,$e.draggable.update(zr,bn)},[zr,$e.draggable])}function $r(Ue,oe,_e){Zr(function(){function $e(Kt){return"Draggable[id: "+Kt+"]: "}var wt=Ue.draggableId;if(wt||Ve(!1),typeof wt=="string"||Ve(!1),se(Ue.index)||Ve(!1),Ue.mapped.type==="DRAGGING")return;iu(_e()),Ue.isEnabled&&(ds(oe,wt)||Ve(!1))})}function On(Ue){lr(function(){var oe=Object(y.useRef)(Ue);Zr(function(){Ue===oe.current||Ve(!1)},[Ue])})}function Rn(Ue){Ue.preventDefault()}function Zn(Ue){var oe=Object(y.useRef)(null),_e=t(function(N){oe.current=N},[]),$e=t(function(){return oe.current},[]),wt=Zl(Nn),Kt=wt.contextId,tr=wt.dragHandleUsageInstructionsId,ar=wt.registry,Gr=Zl(fu),pn=Gr.type,zr=Gr.droppableId,Hr=i(function(){return{id:Ue.draggableId,index:Ue.index,type:pn,droppableId:zr}},[Ue.draggableId,Ue.index,pn,zr]),ln=Ue.children,bn=Ue.draggableId,Gn=Ue.isEnabled,Li=Ue.shouldRespectForcePress,Mi=Ue.canDragInteractiveElements,da=Ue.isClone,$i=Ue.mapped,Qa=Ue.dropAnimationFinished;if($r(Ue,Kt,$e),On(da),!da){var ya=i(function(){return{descriptor:Hr,registry:ar,getDraggableRef:$e,canDragInteractiveElements:Mi,shouldRespectForcePress:Li,isEnabled:Gn}},[Hr,ar,$e,Mi,Li,Gn]);Wr(ya)}var fo=i(function(){return Gn?{tabIndex:0,role:"button","aria-describedby":tr,"data-rbd-drag-handle-draggable-id":bn,"data-rbd-drag-handle-context-id":Kt,draggable:!1,onDragStart:Rn}:null},[Kt,tr,bn,Gn]),za=t(function(N){if($i.type!=="DRAGGING")return;if(!$i.dropping)return;if(N.propertyName!=="transform")return;Qa()},[Qa,$i]),Xo=i(function(){var N=Cr($i),U=$i.type==="DRAGGING"&&$i.dropping?za:null,ie={innerRef:_e,draggableProps:{"data-rbd-draggable-context-id":Kt,"data-rbd-draggable-id":bn,style:N,onTransitionEnd:U},dragHandleProps:fo};return ie},[Kt,fo,bn,$i,za,_e]),ls=i(function(){return{draggableId:Hr.id,type:Hr.type,source:{index:Hr.index,droppableId:Hr.droppableId}}},[Hr.droppableId,Hr.id,Hr.index,Hr.type]);return ln(Xo,$i.snapshot,ls)}var wi=function(oe,_e){return oe===_e},ua=function(oe){var _e=oe.combine,$e=oe.destination;return $e?$e.droppableId:_e?_e.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 Ue=I(function(wt,Kt){return{x:wt,y:Kt}}),oe=I(function(wt,Kt,tr,ar,Gr){return{isDragging:!0,isClone:Kt,isDropAnimating:Boolean(Gr),dropAnimation:Gr,mode:wt,draggingOver:tr,combineWith:ar,combineTargetFor:null}}),_e=I(function(wt,Kt,tr,ar,Gr,pn,zr){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Gr,combineWith:pn,mode:Kt,offset:wt,dimension:tr,forceShouldAnimate:zr,snapshot:oe(Kt,ar,Gr,pn,null)}}}),$e=function(Kt,tr){if(Kt.isDragging){if(Kt.critical.draggable.id!==tr.draggableId)return null;var ar=Kt.current.client.offset,Gr=Kt.dimensions.draggables[tr.draggableId],pn=ai(Kt.impact),zr=Zi(Kt.impact),Hr=Kt.forceShouldAnimate;return _e(Ue(ar.x,ar.y),Kt.movementMode,Gr,tr.isClone,pn,zr,Hr)}if(Kt.phase==="DROP_ANIMATING"){var ln=Kt.completed;if(ln.result.draggableId!==tr.draggableId)return null;var bn=tr.isClone,Gn=Kt.dimensions.draggables[tr.draggableId],Li=ln.result,Mi=Li.mode,da=ua(Li),$i=Vi(Li),Qa=Kt.dropDuration,ya={duration:Qa,curve:ji.drop,moveTo:Kt.newHomeClientOffset,opacity:$i?Ji.opacity.drop:null,scale:$i?Ji.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Kt.newHomeClientOffset,dimension:Gn,dropping:ya,draggingOver:da,combineWith:$i,mode:Mi,forceShouldAnimate:null,snapshot:oe(Mi,bn,da,$i,ya)}}}return null};return $e}function Ga(Ue){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Ue,combineWith:null}}var Ba={mapped:{type:"SECONDARY",offset:Ce,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Ga(null)}};function Sa(){var Ue=I(function(tr,ar){return{x:tr,y:ar}}),oe=I(Ga),_e=I(function(tr,ar,Gr){return ar===void 0&&(ar=null),{mapped:{type:"SECONDARY",offset:tr,combineTargetFor:ar,shouldAnimateDisplacement:Gr,snapshot:oe(ar)}}}),$e=function(ar){return ar?_e(Ce,ar,!0):null},wt=function(ar,Gr,pn,zr){var Hr=pn.displaced.visible[ar],ln=Boolean(zr.inVirtualList&&zr.effected[ar]),bn=sr(pn),Gn=bn&&bn.draggableId===ar?Gr:null;if(!Hr){if(!ln)return $e(Gn);if(pn.displaced.invisible[ar])return null;var Li=ke(zr.displacedBy.point),Mi=Ue(Li.x,Li.y);return _e(Mi,Gn,!0)}if(ln)return $e(Gn);var da=pn.displacedBy.point,$i=Ue(da.x,da.y);return _e($i,Gn,Hr.shouldAnimate)},Kt=function(ar,Gr){if(ar.isDragging)return ar.critical.draggable.id===Gr.draggableId?null:wt(Gr.draggableId,ar.critical.draggable.id,ar.impact,ar.afterCritical);if(ar.phase==="DROP_ANIMATING"){var pn=ar.completed;return pn.result.draggableId===Gr.draggableId?null:wt(Gr.draggableId,pn.result.draggableId,pn.impact,pn.afterCritical)}return null};return Kt}var Go=function(){var oe=ka(),_e=Sa(),$e=function(Kt,tr){return oe(Kt,tr)||_e(Kt,tr)||Ba};return $e},bs={dropAnimationFinished:Ii},ys=Object(f.c)(Go,bs,null,{context:xs,pure:!0,areStatePropsEqual:wi})(Zn);function Cs(Ue){var oe=Zl(fu),_e=oe.isUsingCloneFor;return _e===Ue.draggableId&&!Ue.isClone?null:p.a.createElement(ys,Ue)}function js(Ue){var oe=typeof Ue.isDragDisabled=="boolean"?!Ue.isDragDisabled:!0,_e=Boolean(Ue.disableInteractiveElementBlocking),$e=Boolean(Ue.shouldRespectForcePress);return p.a.createElement(Cs,Object(v.a)({},Ue,{isClone:!1,isEnabled:oe,canDragInteractiveElements:_e,shouldRespectForcePress:$e}))}function ws(Ue){var oe=Object(y.useContext)(Nn);oe||Ve(!1);var _e=oe.contextId,$e=oe.isMovementAllowed,wt=Object(y.useRef)(null),Kt=Object(y.useRef)(null),tr=Ue.children,ar=Ue.droppableId,Gr=Ue.type,pn=Ue.mode,zr=Ue.direction,Hr=Ue.ignoreContainerClipping,ln=Ue.isDropDisabled,bn=Ue.isCombineEnabled,Gn=Ue.snapshot,Li=Ue.useClone,Mi=Ue.updateViewportMaxScroll,da=Ue.getContainerForClone,$i=t(function(){return wt.current},[]),Qa=t(function(ue){wt.current=ue},[]),ya=t(function(){return Kt.current},[]),fo=t(function(ue){Kt.current=ue},[]);Z({props:Ue,getDroppableRef:$i,getPlaceholderRef:ya});var za=t(function(){$e()&&Mi({maxScroll:Yr()})},[$e,Mi]);xu({droppableId:ar,type:Gr,mode:pn,direction:zr,isDropDisabled:ln,isCombineEnabled:bn,ignoreContainerClipping:Hr,getDroppableRef:$i});var Xo=p.a.createElement(ne,{on:Ue.placeholder,shouldAnimate:Ue.shouldAnimatePlaceholder},function(ue){var ge=ue.onClose,Ke=ue.data,It=ue.animate;return p.a.createElement(hu,{placeholder:Ke,onClose:ge,innerRef:fo,animate:It,contextId:_e,onTransitionEnd:za})}),ls=i(function(){return{innerRef:Qa,placeholder:Xo,droppableProps:{"data-rbd-droppable-id":ar,"data-rbd-droppable-context-id":_e}}},[_e,ar,Xo,Qa]),N=Li?Li.dragging.draggableId:null,U=i(function(){return{droppableId:ar,type:Gr,isUsingCloneFor:N}},[ar,N,Gr]);function ie(){if(!Li)return null;var ue=Li.dragging,ge=Li.render,Ke=p.a.createElement(Cs,{draggableId:ue.draggableId,index:ue.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(It,nr){return ge(It,nr,ue)});return P.a.createPortal(Ke,da())}return p.a.createElement(fu.Provider,{value:U},tr(ls,Gn),ie())}var Hs=function(oe,_e){return oe===_e.droppable.type},Ee=function(oe,_e){return _e.draggables[oe.draggable.id]},Ye=function(){var oe={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},_e=Object(v.a)({},oe,{shouldAnimatePlaceholder:!1}),$e=I(function(tr){return{draggableId:tr.id,type:tr.type,source:{index:tr.index,droppableId:tr.droppableId}}}),wt=I(function(tr,ar,Gr,pn,zr,Hr){var ln=zr.descriptor.id,bn=zr.descriptor.droppableId===tr;if(bn){var Gn=Hr?{render:Hr,dragging:$e(zr.descriptor)}:null,Li={isDraggingOver:Gr,draggingOverWith:Gr?ln:null,draggingFromThisWith:ln,isUsingPlaceholder:!0};return{placeholder:zr.placeholder,shouldAnimatePlaceholder:!1,snapshot:Li,useClone:Gn}}if(!ar)return _e;if(!pn)return oe;var Mi={isDraggingOver:Gr,draggingOverWith:ln,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:zr.placeholder,shouldAnimatePlaceholder:!0,snapshot:Mi,useClone:null}}),Kt=function(ar,Gr){var pn=Gr.droppableId,zr=Gr.type,Hr=!Gr.isDropDisabled,ln=Gr.renderClone;if(ar.isDragging){var bn=ar.critical;if(!Hs(zr,bn))return _e;var Gn=Ee(bn,ar.dimensions),Li=ai(ar.impact)===pn;return wt(pn,Hr,Li,Li,Gn,ln)}if(ar.phase==="DROP_ANIMATING"){var Mi=ar.completed;if(!Hs(zr,Mi.critical))return _e;var da=Ee(Mi.critical,ar.dimensions);return wt(pn,Hr,ua(Mi.result)===pn,ai(Mi.impact)===pn,da,ln)}if(ar.phase==="IDLE"&&ar.completed&&!ar.shouldFlush){var $i=ar.completed;if(!Hs(zr,$i.critical))return _e;var Qa=ai($i.impact)===pn,ya=Boolean($i.impact.at&&$i.impact.at.type==="COMBINE"),fo=$i.critical.droppable.id===pn;return Qa?ya?oe:_e:fo?oe:_e}return _e};return Kt},Tt={updateViewportMaxScroll:Nr};function dr(){return document.body||Ve(!1),document.body}var Br={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:dr},sn=Object(f.c)(Ye,Tt,null,{context:xs,pure:!0,areStatePropsEqual:wi})(ws);sn.defaultProps=Br},ni6a:function(k,D,n){var y=n("pzxd"),p=n("mFDi"),x=n("gut8"),v=x.WILL_BE_RESTORED,m=new p,f=function(){};f.prototype={constructor:f,drawRectText:function(o,i){var t=this.style;i=t.textRect||i,this.__dirty&&y.normalizeTextStyle(t,!0);var s=t.text;if(s!=null&&(s+=""),!y.needDrawText(s,t))return;o.save();var e=this.transform;t.transformText?this.setTransform(o):e&&(m.copy(i),m.applyTransform(e),i=m),y.renderText(this,o,s,t,i,v),o.restore()}};var d=f;k.exports=d},nkfE:function(k,D,n){var y=n("bYtY"),p=n("ca2m"),x=n("bLfw"),v=n("+TT/"),m=v.getLayoutParams,f=v.mergeLayoutParam,d=n("jkPA"),u=["value","category","time","log"];function o(i,t,s,e){y.each(u,function(l){t.extend({type:i+"Axis."+l,mergeDefaultAndTheme:function(r,a){var c=this.layoutMode,h=c?m(r):{},g=a.getTheme();y.merge(r,g.get(l+"Axis")),y.merge(r,this.getDefaultOption()),r.type=s(i,r),c&&f(r,h,c)},optionUpdated:function(){var r=this.option;r.type==="category"&&(this.__ordinalMeta=d.createByAxisModel(this))},getCategories:function(r){var a=this.option;if(a.type==="category")return r?a.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:y.mergeAll([{},p[l+"Axis"],e],!0)})}),x.registerSubTypeDefaulter(i+"Axis",y.curry(s,i))}k.exports=o},noeP:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("UOVi");y.registerAction("dataZoom",function(v,m){var f=x.createLinkedNodesFinder(p.bind(m.eachComponent,m,"dataZoom"),x.eachAxisDim,function(u,o){return u.get(o.axisIndex)}),d=[];m.eachComponent({mainType:"dataZoom",query:v},function(u,o){d.push.apply(d,f(u).nodes)}),p.each(d,function(u,o){u.setRawRange({start:v.start,end:v.end,startValue:v.startValue,endValue:v.endValue})})})},o40c:function(k,D,n){var y=n("IwbS"),p=n("OS9S"),x=n("loD1"),v=n("aKvl"),m=y.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(o,i){var t=i.segs,s=i.curveness;if(i.polyline)for(var e=0;e<t.length;){var l=t[e++];if(l>0){o.moveTo(t[e++],t[e++]);for(var r=1;r<l;r++)o.lineTo(t[e++],t[e++])}}else for(var e=0;e<t.length;){var a=t[e++],c=t[e++],h=t[e++],g=t[e++];if(o.moveTo(a,c),s>0){var A=(a+h)/2-(c-g)*s,b=(c+g)/2-(h-a)*s;o.quadraticCurveTo(A,b,h,g)}else o.lineTo(h,g)}},findDataIndex:function(o,i){var t=this.shape,s=t.segs,e=t.curveness;if(t.polyline)for(var l=0,r=0;r<s.length;){var a=s[r++];if(a>0)for(var c=s[r++],h=s[r++],g=1;g<a;g++){var A=s[r++],b=s[r++];if(x.containStroke(c,h,A,b))return l}l++}else for(var l=0,r=0;r<s.length;){var c=s[r++],h=s[r++],A=s[r++],b=s[r++];if(e>0){var S=(c+A)/2-(h-b)*e,E=(h+b)/2-(A-c)*e;if(v.containStroke(c,h,S,E,A,b))return l}else if(x.containStroke(c,h,A,b))return l;l++}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 i=new m({rectHover:!0,cursor:"default"});i.setShape({segs:o.getLayout("linesPoints")}),this._setCommon(i,o),this.group.add(i),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,i){var t=new m;t.setShape({segs:i.getLayout("linesPoints")}),this._setCommon(t,i,!!this._incremental),this._incremental?this._incremental.addDisplayable(t,!0):(t.rectHover=!0,t.cursor="default",t.__startIndex=o.start,this.group.add(t))},d.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},d._setCommon=function(o,i,t){var s=i.hostModel;o.setShape({polyline:s.get("polyline"),curveness:s.get("lineStyle.curveness")}),o.useStyle(s.getModel("lineStyle").getLineStyle()),o.style.strokeNoScale=!0;var e=i.getVisual("color");e&&o.setStyle("stroke",e),o.setStyle("fill"),t||(o.seriesIndex=s.seriesIndex,o.on("mousemove",function(l){o.dataIndex=null;var r=o.findDataIndex(l.offsetX,l.offsetY);r>0&&(o.dataIndex=r+o.__startIndex)}))},d._clearIncremental=function(){var o=this._incremental;o&&o.clearDisplaybles()};var u=f;k.exports=u},oBaM:function(k,D,n){var y=n("T4UG"),p=n("5GtS"),x=n("bYtY"),v=n("7aKB"),m=v.encodeHTML,f=n("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,i){return p(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},formatTooltip:function(o){var i=this.getData(),t=this.coordinateSystem,s=t.getIndicatorAxes(),e=this.getData().getName(o);return m(e===""?this.name:e)+"<br/>"+x.map(s,function(l,r){var a=i.get(i.mapDimension(l.dim),o);return m(l.name+" : "+a)}).join("<br />")},getTooltipPosition:function(o){if(o!=null){for(var i=this.getData(),t=this.coordinateSystem,s=i.getValues(x.map(t.dimensions,function(a){return i.mapDimension(a)}),o,!0),e=0,l=s.length;e<l;e++)if(!isNaN(s[e])){var r=t.getIndicatorAxes();return t.coordToPoint(r[e].dataToCoord(s[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}}),u=d;k.exports=u},oE7X:function(k,D,n){var y=n("bLfw");y.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(k,D,n){},oRuE:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("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(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("mFDi"),v=n("6GrX"),m=v.calculateTextPosition,f=p.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(a,c){var h=c.cx,g=c.cy,A=c.width/2,b=c.height/2;a.moveTo(h,g-b),a.lineTo(h+A,g+b),a.lineTo(h-A,g+b),a.closePath()}}),d=p.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(a,c){var h=c.cx,g=c.cy,A=c.width/2,b=c.height/2;a.moveTo(h,g-b),a.lineTo(h+A,g),a.lineTo(h,g+b),a.lineTo(h-A,g),a.closePath()}}),u=p.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(a,c){var h=c.x,g=c.y,A=c.width/5*3,b=Math.max(A,c.height),S=A/2,E=S*S/(b-S),C=g-b+S+E,_=Math.asin(E/S),T=Math.cos(_)*S,w=Math.sin(_),O=Math.cos(_),I=S*.6,R=S*.7;a.moveTo(h-T,C+E),a.arc(h,C,S,Math.PI-_,Math.PI*2+_),a.bezierCurveTo(h+T-w*I,C+E+O*I,h,g-R,h,g),a.bezierCurveTo(h,g-R,h-T+w*I,C+E+O*I,h-T,C+E),a.closePath()}}),o=p.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(a,c){var h=c.height,g=c.width,A=c.x,b=c.y,S=g/3*2;a.moveTo(A,b),a.lineTo(A+S,b+h),a.lineTo(A,b+h/4*3),a.lineTo(A-S,b+h),a.lineTo(A,b),a.closePath()}}),i={line:p.Line,rect:p.Rect,roundRect:p.Rect,square:p.Rect,circle:p.Circle,diamond:d,pin:u,arrow:o,triangle:f},t={line:function(a,c,h,g,A){A.x1=a,A.y1=c+g/2,A.x2=a+h,A.y2=c+g/2},rect:function(a,c,h,g,A){A.x=a,A.y=c,A.width=h,A.height=g},roundRect:function(a,c,h,g,A){A.x=a,A.y=c,A.width=h,A.height=g,A.r=Math.min(h,g)/4},square:function(a,c,h,g,A){var b=Math.min(h,g);A.x=a,A.y=c,A.width=b,A.height=b},circle:function(a,c,h,g,A){A.cx=a+h/2,A.cy=c+g/2,A.r=Math.min(h,g)/2},diamond:function(a,c,h,g,A){A.cx=a+h/2,A.cy=c+g/2,A.width=h,A.height=g},pin:function(a,c,h,g,A){A.x=a+h/2,A.y=c+g/2,A.width=h,A.height=g},arrow:function(a,c,h,g,A){A.x=a+h/2,A.y=c+g/2,A.width=h,A.height=g},triangle:function(a,c,h,g,A){A.cx=a+h/2,A.cy=c+g/2,A.width=h,A.height=g}},s={};y.each(i,function(a,c){s[c]=new a});var e=p.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(a,c,h){var g=m(a,c,h),A=this.shape;return A&&A.symbolType==="pin"&&c.textPosition==="inside"&&(g.y=h.y+h.height*.4),g},buildPath:function(a,c,h){var g=c.symbolType;if(g!=="none"){var A=s[g];A||(g="rect",A=s[g]),t[g](c.x,c.y,c.width,c.height,A.shape),A.buildPath(a,A.shape,h)}}});function l(a,c){if(this.type!=="image"){var h=this.style,g=this.shape;g&&g.symbolType==="line"?h.stroke=a:this.__isEmptyBrush?(h.stroke=a,h.fill=c||"#fff"):(h.fill&&(h.fill=a),h.stroke&&(h.stroke=a)),this.dirty(!1)}}function r(a,c,h,g,A,b,S){var E=a.indexOf("empty")===0;E&&(a=a.substr(5,1).toLowerCase()+a.substr(6));var C;return a.indexOf("image://")===0?C=p.makeImage(a.slice(8),new x(c,h,g,A),S?"center":"cover"):a.indexOf("path://")===0?C=p.makePath(a.slice(7),{},new x(c,h,g,A),S?"center":"cover"):C=new e({shape:{symbolType:a,x:c,y:h,width:g,height:A}}),C.__isEmptyBrush=E,C.setColor=l,C.setColor(b),C}D.createSymbol=r},oY9F:function(k,D,n){var y=n("OlYY"),p=y.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});k.exports=p},or5M:function(k,D,n){var y=n("1hJj"),p=n("QoRX"),x=n("xYSL"),v=1,m=2;function f(d,u,o,i,t,s){var e=o&v,l=d.length,r=u.length;if(l!=r&&!(e&&r>l))return!1;var a=s.get(d),c=s.get(u);if(a&&c)return a==u&&c==d;var h=-1,g=!0,A=o&m?new y:void 0;for(s.set(d,u),s.set(u,d);++h<l;){var b=d[h],S=u[h];if(i)var E=e?i(S,b,h,u,d,s):i(b,S,h,d,u,s);if(E!==void 0){if(E)continue;g=!1;break}if(A){if(!p(u,function(C,_){if(!x(A,_)&&(b===C||t(b,C,o,i,s)))return A.push(_)})){g=!1;break}}else if(!(b===S||t(b,S,o,i,s))){g=!1;break}}return s.delete(d),s.delete(u),g}k.exports=f},osHv:function(k,D,n){(function(y){y(n("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 u(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 i(c){return c.line<=c.min?void 0:(c.text=c.cm.getLine(--c.line),c.ch=c.text.length,!0)}function t(c){for(;;){var h=c.text.indexOf(">",c.ch);if(h==-1){if(o(c))continue;return}if(!u(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 s(c){for(;;){var h=c.ch?c.text.lastIndexOf("<",c.ch-1):-1;if(h==-1){if(i(c))continue;return}if(!u(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(!u(c,h.index+1)){c.ch=h.index+1;continue}return c.ch=h.index+h[0].length,h}}function l(c){for(;;){var h=c.ch?c.text.lastIndexOf(">",c.ch-1):-1;if(h==-1){if(i(c))continue;return}if(!u(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,S=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(S,E),to:p(c.line,c.ch)}}else g.push(A[2])}}function a(c,h){for(var g=[];;){var A=l(c);if(!A)return;if(A=="selfClose"){s(c);continue}var b=c.line,S=c.ch,E=s(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,S)}}}}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 S=p(g.line,g.ch),E=r(g,A[2]);return E&&x(E.from,S)>0?{from:S,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),S=b&&p(A.line,A.ch),E=b&&s(A);if(!b||!E||x(A,h)>0)return;var C={from:p(A.line,A.ch),to:S,tag:E[2]};return b=="selfClose"?{open:C,close:null,at:"open"}:E[1]?{open:a(A,E[2]),close:C,at:"close"}:(A=new d(c,S.line,S.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 S=a(b,A);if(!S)break;var E=new d(c,h.line,h.ch,g),C=r(E,S.tag);if(C)return{open:S,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(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("KxFI"),v=n.n(x)},"p+If":function(k,D,n){var y=n("ProS");n("cpOr"),n("rkZ5");var p=n("ZYIC"),x=n("7ph2");y.registerLayout(p),y.registerVisual(x)},"p/La":function(k,D){var n=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function y(p,x){p==="china"&&x.name==="\u53F0\u6E7E"&&x.geometries.push({type:"polygon",exterior:n[0]})}k.exports=y},p1MT:function(k,D,n){var y=n("Hw7h"),p=n("IwbS"),x=n("6Ic6"),v=n("OELB"),m=v.parsePercent,f=v.round,d=v.linearMap;function u(e,l){var r=e.get("center"),a=l.getWidth(),c=l.getHeight(),h=Math.min(a,c),g=m(r[0],l.getWidth()),A=m(r[1],l.getHeight()),b=m(e.get("radius"),h/2);return{cx:g,cy:A,r:b}}function o(e,l){return l&&(typeof l=="string"?e=l.replace("{value}",e!=null?e:""):typeof l=="function"&&(e=l(e))),e}var i=Math.PI*2,t=x.extend({type:"gauge",render:function(e,l,r){this.group.removeAll();var a=e.get("axisLine.lineStyle.color"),c=u(e,r);this._renderMain(e,l,r,a,c)},dispose:function(){},_renderMain:function(e,l,r,a,c){for(var h=this.group,g=e.getModel("axisLine"),A=g.getModel("lineStyle"),b=e.get("clockwise"),S=-e.get("startAngle")/180*Math.PI,E=-e.get("endAngle")/180*Math.PI,C=(E-S)%i,_=S,T=A.get("width"),w=g.get("show"),O=0;w&&O<a.length;O++){var I=Math.min(Math.max(a[O][0],0),1),E=S+C*I,R=new p.Sector({shape:{startAngle:_,endAngle:E,cx:c.cx,cy:c.cy,clockwise:b,r0:c.r-T,r:c.r},silent:!0});R.setStyle({fill:a[O][1]}),R.setStyle(A.getLineStyle(["color","borderWidth","borderColor"])),h.add(R),_=E}var M=function(P){if(P<=0)return a[0][1];for(var X=0;X<a.length;X++)if(a[X][0]>=P&&(X===0?0:a[X-1][0])<P)return a[X][1];return a[X-1][1]};if(!b){var B=S;S=E,E=B}this._renderTicks(e,l,r,M,c,S,E,b),this._renderPointer(e,l,r,M,c,S,E,b),this._renderTitle(e,l,r,M,c),this._renderDetail(e,l,r,M,c)},_renderTicks:function(e,l,r,a,c,h,g,A){for(var b=this.group,S=c.cx,E=c.cy,C=c.r,_=+e.get("min"),T=+e.get("max"),w=e.getModel("splitLine"),O=e.getModel("axisTick"),I=e.getModel("axisLabel"),R=e.get("splitNumber"),M=O.get("splitNumber"),B=m(w.get("length"),C),P=m(O.get("length"),C),X=h,F=(g-h)/R,j=F/M,K=w.getModel("lineStyle").getLineStyle(),z=O.getModel("lineStyle").getLineStyle(),V=0;V<=R;V++){var Q=Math.cos(X),G=Math.sin(X);if(w.get("show")){var te=new p.Line({shape:{x1:Q*C+S,y1:G*C+E,x2:Q*(C-B)+S,y2:G*(C-B)+E},style:K,silent:!0});K.stroke==="auto"&&te.setStyle({stroke:a(V/R)}),b.add(te)}if(I.get("show")){var q=o(f(V/R*(T-_)+_),I.get("formatter")),le=I.get("distance"),re=a(V/R);b.add(new p.Text({style:p.setTextStyle({},I,{text:q,x:Q*(C-B-le)+S,y:G*(C-B-le)+E,textVerticalAlign:G<-.4?"top":G>.4?"bottom":"middle",textAlign:Q<-.4?"left":Q>.4?"right":"center"},{autoColor:re}),silent:!0}))}if(O.get("show")&&V!==R){for(var we=0;we<=M;we++){var Q=Math.cos(X),G=Math.sin(X),Ie=new p.Line({shape:{x1:Q*C+S,y1:G*C+E,x2:Q*(C-P)+S,y2:G*(C-P)+E},silent:!0,style:z});z.stroke==="auto"&&Ie.setStyle({stroke:a((V+we/M)/R)}),b.add(Ie),X+=j}X-=j}else X+=F}},_renderPointer:function(e,l,r,a,c,h,g,A){var b=this.group,S=this._data;if(!e.get("pointer.show")){S&&S.eachItemGraphicEl(function(w){b.remove(w)});return}var E=[+e.get("min"),+e.get("max")],C=[h,g],_=e.getData(),T=_.mapDimension("value");_.diff(S).add(function(w){var O=new y({shape:{angle:h}});p.initProps(O,{shape:{angle:d(_.get(T,w),E,C,!0)}},e),b.add(O),_.setItemGraphicEl(w,O)}).update(function(w,O){var I=S.getItemGraphicEl(O);p.updateProps(I,{shape:{angle:d(_.get(T,w),E,C,!0)}},e),b.add(I),_.setItemGraphicEl(w,I)}).remove(function(w){var O=S.getItemGraphicEl(w);b.remove(O)}).execute(),_.eachItemGraphicEl(function(w,O){var I=_.getItemModel(O),R=I.getModel("pointer");w.setShape({x:c.cx,y:c.cy,width:m(R.get("width"),c.r),r:m(R.get("length"),c.r)}),w.useStyle(I.getModel("itemStyle").getItemStyle()),w.style.fill==="auto"&&w.setStyle("fill",a(d(_.get(T,O),E,[0,1],!0))),p.setHoverStyle(w,I.getModel("emphasis.itemStyle").getItemStyle())}),this._data=_},_renderTitle:function(e,l,r,a,c){var h=e.getData(),g=h.mapDimension("value"),A=e.getModel("title");if(A.get("show")){var b=A.get("offsetCenter"),S=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),w=a(d(T,[C,_],[0,1],!0));this.group.add(new p.Text({silent:!0,style:p.setTextStyle({},A,{x:S,y:E,text:h.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:w,forceRich:!0})}))}},_renderDetail:function(e,l,r,a,c){var h=e.getModel("detail"),g=+e.get("min"),A=+e.get("max");if(h.get("show")){var b=h.get("offsetCenter"),S=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(),w=T.get(T.mapDimension("value"),0),O=a(d(w,[g,A],[0,1],!0));this.group.add(new p.Text({silent:!0,style:p.setTextStyle({},h,{x:S,y:E,text:o(w,h.get("formatter")),textWidth:isNaN(C)?null:C,textHeight:isNaN(_)?null:_,textAlign:"center",textVerticalAlign:"middle"},{autoColor:O,forceRich:!0})}))}}}),s=t;k.exports=s},"p77/":function(k,D,n){},pA7S:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("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],u=[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],i=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],t=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],s=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 S=this._subKeys=[],E=0;E<16;E++){for(var C=S[E]=[],_=o[E],A=0;A<24;A++)C[A/6|0]|=g[(u[A]-1+_)%28]<<31-A%6,C[4+(A/6|0)]|=g[28+(u[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]=S[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),l.call(this,2,858993459),l.call(this,8,16711935),e.call(this,1,1431655765);for(var A=0;A<16;A++){for(var b=g[A],S=this._lBlock,E=this._rBlock,C=0,_=0;_<8;_++)C|=i[_][((E^b[_])&t[_])>>>0];this._lBlock=E,this._rBlock=S^C}var T=this._lBlock;this._lBlock=this._rBlock,this._rBlock=T,e.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),c[h]=this._lBlock,c[h+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function e(a,c){var h=(this._lBlock>>>a^this._rBlock)&c;this._rBlock^=h,this._lBlock^=h<<a}function l(a,c){var h=(this._rBlock>>>a^this._lBlock)&c;this._lBlock^=h,this._rBlock^=h<<a}p.DES=m._createHelper(s);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=s.createEncryptor(v.create(g)),this._des2=s.createEncryptor(v.create(A)),this._des3=s.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(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("xzDV"),v=n.n(x),m=n("5Dmo")},"pED+":function(k,D,n){},pG52:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("WXVj"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},pLH3:function(k,D,n){var y=n("ProS");n("ALo7"),n("TWL2");var p=n("mOdp"),x=n("JLnu"),v=n("0/Rx");y.registerVisual(p("funnel")),y.registerLayout(x),y.registerProcessor(v("funnel"))},pP6R:function(k,D,n){var y=n("ProS"),p="\0_ec_interaction_mutex";function x(d,u,o){var i=f(d);i[u]=o}function v(d,u,o){var i=f(d),t=i[u];t===o&&(i[u]=null)}function m(d,u){return!!f(d)[u]}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(k,D,n){var y=n("QkVE");function p(x){return y(this,x).has(x)}k.exports=p},pWdF:function(k,D,n){"use strict";n.d(D,"a",function(){return iu});var y=n("oBTY"),p=n("rAM+"),x=n("tJVT"),v=n("tS8v"),m=n("oZsa"),f=n("iZzK");function d(Ae){return Function.toString.call(Ae).indexOf("[native code]")!==-1}var u=n("cHpt");function o(Ae,ee,L){return Object(u.a)()?o=Reflect.construct:o=function(H,Z,ne){var ve=[null];ve.push.apply(ve,Z);var Te=Function.bind.apply(H,ve),ze=new Te;return ne&&Object(f.a)(ze,ne.prototype),ze},o.apply(null,arguments)}function i(Ae){var ee=typeof Map=="function"?new Map:void 0;return i=function(W){if(W===null||!d(W))return W;if(typeof W!="function")throw new TypeError("Super expression must either be null or a function");if(typeof ee!="undefined"){if(ee.has(W))return ee.get(W);ee.set(W,H)}function H(){return 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)},i(Ae)}var t=n("w4Tj"),s=n("yKVA"),e=n("879j"),l=n("jrin"),r=n("fWQN"),a=n("mtLc");function c(Ae){return Ae&&Ae.__esModule&&Object.prototype.hasOwnProperty.call(Ae,"default")?Ae.default:Ae}var h={exports:{}};(function(Ae,ee){(function(L){var W=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,H=/^(?=([^\/?#]*))\1([^]*)$/,Z=/(?:\/|^)\.(?=\/)/g,ne=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,ve={buildAbsoluteURL:function(ze,ot,ft){if(ft=ft||{},ze=ze.trim(),ot=ot.trim(),!ot){if(!ft.alwaysNormalize)return ze;var Zt=ve.parseURL(ze);if(!Zt)throw new Error("Error trying to parse base URL.");return Zt.path=ve.normalizePath(Zt.path),ve.buildURLFromParts(Zt)}var Cr=ve.parseURL(ot);if(!Cr)throw new Error("Error trying to parse relative URL.");if(Cr.scheme)return ft.alwaysNormalize?(Cr.path=ve.normalizePath(Cr.path),ve.buildURLFromParts(Cr)):ot;var Sr=ve.parseURL(ze);if(!Sr)throw new Error("Error trying to parse base URL.");if(!Sr.netLoc&&Sr.path&&Sr.path[0]!=="/"){var Wr=H.exec(Sr.path);Sr.netLoc=Wr[1],Sr.path=Wr[2]}Sr.netLoc&&!Sr.path&&(Sr.path="/");var $r={scheme:Sr.scheme,netLoc:Cr.netLoc,path:null,params:Cr.params,query:Cr.query,fragment:Cr.fragment};if(!Cr.netLoc&&($r.netLoc=Sr.netLoc,Cr.path[0]!=="/"))if(!Cr.path)$r.path=Sr.path,Cr.params||($r.params=Sr.params,Cr.query||($r.query=Sr.query));else{var On=Sr.path,Rn=On.substring(0,On.lastIndexOf("/")+1)+Cr.path;$r.path=ve.normalizePath(Rn)}return $r.path===null&&($r.path=ft.alwaysNormalize?ve.normalizePath(Cr.path):Cr.path),ve.buildURLFromParts($r)},parseURL:function(ze){var ot=W.exec(ze);return ot?{scheme:ot[1]||"",netLoc:ot[2]||"",path:ot[3]||"",params:ot[4]||"",query:ot[5]||"",fragment:ot[6]||""}:null},normalizePath:function(ze){for(ze=ze.split("").reverse().join("").replace(Z,"");ze.length!==(ze=ze.replace(ne,"")).length;);return ze.split("").reverse().join("")},buildURLFromParts:function(ze){return ze.scheme+ze.netLoc+ze.path+ze.params+ze.query+ze.fragment}};Ae.exports=ve})()})(h);var g=h.exports;function A(Ae,ee){var L=Object.keys(Ae);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(Ae);ee&&(W=W.filter(function(H){return Object.getOwnPropertyDescriptor(Ae,H).enumerable})),L.push.apply(L,W)}return L}function b(Ae){for(var ee=1;ee<arguments.length;ee++){var L=arguments[ee]!=null?arguments[ee]:{};ee%2?A(Object(L),!0).forEach(function(W){S(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 S(Ae,ee,L){return ee=_(ee),ee in Ae?Object.defineProperty(Ae,ee,{value:L,enumerable:!0,configurable:!0,writable:!0}):Ae[ee]=L,Ae}function E(){return E=Object.assign?Object.assign.bind():function(Ae){for(var ee=1;ee<arguments.length;ee++){var L=arguments[ee];for(var W in L)Object.prototype.hasOwnProperty.call(L,W)&&(Ae[W]=L[W])}return Ae},E.apply(this,arguments)}function C(Ae,ee){if(typeof Ae!="object"||Ae===null)return Ae;var L=Ae[Symbol.toPrimitive];if(L!==void 0){var W=L.call(Ae,ee||"default");if(typeof W!="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ee==="string"?String:Number)(Ae)}function _(Ae){var ee=C(Ae,"string");return typeof ee=="symbol"?ee:String(ee)}var T=Number.isFinite||function(Ae){return typeof Ae=="number"&&isFinite(Ae)},w=function(Ae){return Ae.MEDIA_ATTACHING="hlsMediaAttaching",Ae.MEDIA_ATTACHED="hlsMediaAttached",Ae.MEDIA_DETACHING="hlsMediaDetaching",Ae.MEDIA_DETACHED="hlsMediaDetached",Ae.BUFFER_RESET="hlsBufferReset",Ae.BUFFER_CODECS="hlsBufferCodecs",Ae.BUFFER_CREATED="hlsBufferCreated",Ae.BUFFER_APPENDING="hlsBufferAppending",Ae.BUFFER_APPENDED="hlsBufferAppended",Ae.BUFFER_EOS="hlsBufferEos",Ae.BUFFER_FLUSHING="hlsBufferFlushing",Ae.BUFFER_FLUSHED="hlsBufferFlushed",Ae.MANIFEST_LOADING="hlsManifestLoading",Ae.MANIFEST_LOADED="hlsManifestLoaded",Ae.MANIFEST_PARSED="hlsManifestParsed",Ae.LEVEL_SWITCHING="hlsLevelSwitching",Ae.LEVEL_SWITCHED="hlsLevelSwitched",Ae.LEVEL_LOADING="hlsLevelLoading",Ae.LEVEL_LOADED="hlsLevelLoaded",Ae.LEVEL_UPDATED="hlsLevelUpdated",Ae.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",Ae.LEVELS_UPDATED="hlsLevelsUpdated",Ae.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",Ae.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",Ae.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",Ae.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",Ae.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",Ae.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",Ae.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",Ae.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",Ae.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",Ae.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",Ae.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",Ae.CUES_PARSED="hlsCuesParsed",Ae.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",Ae.INIT_PTS_FOUND="hlsInitPtsFound",Ae.FRAG_LOADING="hlsFragLoading",Ae.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",Ae.FRAG_LOADED="hlsFragLoaded",Ae.FRAG_DECRYPTED="hlsFragDecrypted",Ae.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",Ae.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",Ae.FRAG_PARSING_METADATA="hlsFragParsingMetadata",Ae.FRAG_PARSED="hlsFragParsed",Ae.FRAG_BUFFERED="hlsFragBuffered",Ae.FRAG_CHANGED="hlsFragChanged",Ae.FPS_DROP="hlsFpsDrop",Ae.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",Ae.ERROR="hlsError",Ae.DESTROYING="hlsDestroying",Ae.KEY_LOADING="hlsKeyLoading",Ae.KEY_LOADED="hlsKeyLoaded",Ae.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",Ae.BACK_BUFFER_REACHED="hlsBackBufferReached",Ae}({}),O=function(Ae){return Ae.NETWORK_ERROR="networkError",Ae.MEDIA_ERROR="mediaError",Ae.KEY_SYSTEM_ERROR="keySystemError",Ae.MUX_ERROR="muxError",Ae.OTHER_ERROR="otherError",Ae}({}),I=function(Ae){return Ae.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",Ae.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",Ae.KEY_SYSTEM_NO_SESSION="keySystemNoSession",Ae.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",Ae.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",Ae.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",Ae.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",Ae.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",Ae.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",Ae.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",Ae.MANIFEST_LOAD_ERROR="manifestLoadError",Ae.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",Ae.MANIFEST_PARSING_ERROR="manifestParsingError",Ae.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",Ae.LEVEL_EMPTY_ERROR="levelEmptyError",Ae.LEVEL_LOAD_ERROR="levelLoadError",Ae.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",Ae.LEVEL_PARSING_ERROR="levelParsingError",Ae.LEVEL_SWITCH_ERROR="levelSwitchError",Ae.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",Ae.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",Ae.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",Ae.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",Ae.FRAG_LOAD_ERROR="fragLoadError",Ae.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",Ae.FRAG_DECRYPT_ERROR="fragDecryptError",Ae.FRAG_PARSING_ERROR="fragParsingError",Ae.FRAG_GAP="fragGap",Ae.REMUX_ALLOC_ERROR="remuxAllocError",Ae.KEY_LOAD_ERROR="keyLoadError",Ae.KEY_LOAD_TIMEOUT="keyLoadTimeOut",Ae.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",Ae.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",Ae.BUFFER_APPEND_ERROR="bufferAppendError",Ae.BUFFER_APPENDING_ERROR="bufferAppendingError",Ae.BUFFER_STALLED_ERROR="bufferStalledError",Ae.BUFFER_FULL_ERROR="bufferFullError",Ae.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",Ae.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",Ae.INTERNAL_EXCEPTION="internalException",Ae.INTERNAL_ABORTED="aborted",Ae.UNKNOWN="unknown",Ae}({}),R=function(){},M={trace:R,debug:R,log:R,warn:R,info:R,error:R},B=M;function P(Ae){var ee=self.console[Ae];return ee?ee.bind(self.console,"[".concat(Ae,"] >")):R}function X(Ae){for(var ee=arguments.length,L=new Array(ee>1?ee-1:0),W=1;W<ee;W++)L[W-1]=arguments[W];L.forEach(function(H){B[H]=Ae[H]?Ae[H].bind(Ae):P(H)})}function F(Ae,ee){if(self.console&&Ae===!0||typeof Ae=="object"){X(Ae,"debug","log","info","warn","error");try{B.log('Debug logs enabled for "'.concat(ee,'" in hls.js version ',"1.4.12"))}catch(L){B=M}}else B=M}var j=B,K=/^(\d+)x(\d+)$/,z=/(.+?)=(".*?"|.*?)(?:,|$)/g,V=function(){function Ae(ee){Object(r.a)(this,Ae),typeof ee=="string"&&(ee=Ae.parseAttrList(ee));for(var L in ee)ee.hasOwnProperty(L)&&(L.substring(0,2)==="X-"&&(this.clientAttrs=this.clientAttrs||[],this.clientAttrs.push(L)),this[L]=ee[L])}return Object(a.a)(Ae,[{key:"decimalInteger",value:function(L){var W=parseInt(this[L],10);return W>Number.MAX_SAFE_INTEGER?Infinity:W}},{key:"hexadecimalInteger",value:function(L){if(this[L]){var W=(this[L]||"0x").slice(2);W=(W.length&1?"0":"")+W;for(var H=new Uint8Array(W.length/2),Z=0;Z<W.length/2;Z++)H[Z]=parseInt(W.slice(Z*2,Z*2+2),16);return H}else return null}},{key:"hexadecimalIntegerAsNumber",value:function(L){var W=parseInt(this[L],16);return W>Number.MAX_SAFE_INTEGER?Infinity:W}},{key:"decimalFloatingPoint",value:function(L){return parseFloat(this[L])}},{key:"optionalFloat",value:function(L,W){var H=this[L];return H?parseFloat(H):W}},{key:"enumeratedString",value:function(L){return this[L]}},{key:"bool",value:function(L){return this[L]==="YES"}},{key:"decimalResolution",value:function(L){var W=K.exec(this[L]);return W===null?void 0:{width:parseInt(W[1],10),height:parseInt(W[2],10)}}}],[{key:"parseAttrList",value:function(L){var W,H={},Z='"';for(z.lastIndex=0;(W=z.exec(L))!==null;){var ne=W[2];ne.indexOf(Z)===0&&ne.lastIndexOf(Z)===ne.length-1&&(ne=ne.slice(1,-1));var ve=W[1].trim();H[ve]=ne}return H}}]),Ae}();function Q(Ae){return Ae!=="ID"&&Ae!=="CLASS"&&Ae!=="START-DATE"&&Ae!=="DURATION"&&Ae!=="END-DATE"&&Ae!=="END-ON-NEXT"}function G(Ae){return Ae==="SCTE35-OUT"||Ae==="SCTE35-IN"}var te=function(){function Ae(ee,L){if(Object(r.a)(this,Ae),this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,L){var W=L.attr;for(var H in W)if(Object.prototype.hasOwnProperty.call(ee,H)&&ee[H]!==W[H]){j.warn('DATERANGE tag attribute: "'.concat(H,'" does not match for tags with ID: "').concat(ee.ID,'"')),this._badValueForSameId=H;break}ee=E(new V({}),W,ee)}if(this.attr=ee,this._startDate=new Date(ee["START-DATE"]),"END-DATE"in this.attr){var Z=new Date(this.attr["END-DATE"]);T(Z.getTime())&&(this._endDate=Z)}}return Object(a.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}(),q=Object(a.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(ee){var L;Object(r.a)(this,Ae),this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(L={},Object(l.a)(L,le.AUDIO,null),Object(l.a)(L,le.VIDEO,null),Object(l.a)(L,le.AUDIOVIDEO,null),L),this.baseurl=ee}return Object(a.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}(),we=function(Ae){Object(s.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H){var Z;return Object(r.a)(this,L),Z=ee.call(this,H),Z._decryptdata=null,Z.rawProgramDateTime=null,Z.programDateTime=null,Z.tagList=[],Z.duration=0,Z.sn=0,Z.levelkeys=void 0,Z.type=void 0,Z.loader=null,Z.keyLoader=null,Z.level=-1,Z.cc=0,Z.startPTS=void 0,Z.endPTS=void 0,Z.startDTS=void 0,Z.endDTS=void 0,Z.start=0,Z.deltaPTS=void 0,Z.maxStartPTS=void 0,Z.minEndPTS=void 0,Z.stats=new q,Z.urlId=0,Z.data=void 0,Z.bitrateTest=!1,Z.title=null,Z.initSegment=null,Z.endList=void 0,Z.gap=void 0,Z.type=W,Z}return Object(a.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 ze=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ot=this.elementaryStreams,ft=ot[H];if(!ft){ot[H]={startPTS:Z,endPTS:ne,startDTS:ve,endDTS:Te,partial:ze};return}ft.startPTS=Math.min(ft.startPTS,Z),ft.endPTS=Math.max(ft.endPTS,ne),ft.startDTS=Math.min(ft.startDTS,ve),ft.endDTS=Math.max(ft.endDTS,Te)}},{key:"clearElementaryStreamInfo",value:function(){var H=this.elementaryStreams;H[le.AUDIO]=null,H[le.VIDEO]=null,H[le.AUDIOVIDEO]=null}}]),L}(re),Ie=function(Ae){Object(s.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z,ne,ve){var Te;Object(r.a)(this,L),Te=ee.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 q,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 ze=W.enumeratedString("BYTERANGE");return ze&&Te.setByteRange(ze,ve),ve&&(Te.fragOffset=ve.fragOffset+ve.duration),Te}return Object(a.a)(L,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var H=this.elementaryStreams;return!!(H.audio||H.video||H.audiovideo)}}]),L}(re),Me=10,Je=function(){function Ae(ee){Object(r.a)(this,Ae),this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=ee}return Object(a.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||Me}},{key:"drift",get:function(){var L=this.driftEndTime-this.driftStartTime;if(L>0){var W=this.driftEnd-this.driftStart;return W*1e3/L}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var L;return(L=this.fragments)!=null&&L.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),Ae}();function Ve(Ae){return Uint8Array.from(atob(Ae),function(ee){return ee.charCodeAt(0)})}function ut(Ae){var ee=at(Ae).subarray(0,16),L=new Uint8Array(16);return L.set(ee,16-ee.length),L}function Fe(Ae){var ee=function(W,H,Z){var ne=W[H];W[H]=W[Z],W[Z]=ne};ee(Ae,0,3),ee(Ae,1,2),ee(Ae,4,5),ee(Ae,6,7)}function ae(Ae){var ee=Ae.split(":"),L=null;if(ee[0]==="data"&&ee.length===2){var W=ee[1].split(";"),H=W[W.length-1].split(",");if(H.length===2){var Z=H[0]==="base64",ne=H[1];Z?(W.splice(-1,1),L=Ve(ne)):L=ut(ne)}}return L}function at(Ae){return Uint8Array.from(unescape(encodeURIComponent(Ae)),function(ee){return ee.charCodeAt(0)})}var he={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},J={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Y(Ae){switch(Ae){case J.FAIRPLAY:return he.FAIRPLAY;case J.PLAYREADY:return he.PLAYREADY;case J.WIDEVINE:return he.WIDEVINE;case J.CLEARKEY:return he.CLEARKEY}}var $={WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function de(Ae){if(Ae===$.WIDEVINE)return he.WIDEVINE}function be(Ae){switch(Ae){case he.FAIRPLAY:return J.FAIRPLAY;case he.PLAYREADY:return J.PLAYREADY;case he.WIDEVINE:return J.WIDEVINE;case he.CLEARKEY:return J.CLEARKEY}}function Ce(Ae){var ee=Ae.drmSystems,L=Ae.widevineLicenseUrl,W=ee?[he.FAIRPLAY,he.WIDEVINE,he.PLAYREADY,he.CLEARKEY].filter(function(H){return!!ee[H]}):[];return!W[he.WIDEVINE]&&L&&W.push(he.WIDEVINE),W}var Be=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function fe(Ae,ee,L,W){var H;switch(Ae){case he.FAIRPLAY:H=["cenc","sinf"];break;case he.WIDEVINE:case he.PLAYREADY:H=["cenc"];break;case he.CLEARKEY:H=["cenc","keyids"];break;default:throw new Error("Unknown key-system: ".concat(Ae))}return Se(H,ee,L,W)}function Se(Ae,ee,L,W){var H={initDataTypes:Ae,persistentState:W.persistentState||"not-allowed",distinctiveIdentifier:W.distinctiveIdentifier||"not-allowed",sessionTypes:W.sessionTypes||[W.sessionType||"temporary"],audioCapabilities:ee.map(function(Z){return{contentType:'audio/mp4; codecs="'.concat(Z,'"'),robustness:W.audioRobustness||"",encryptionScheme:W.audioEncryptionScheme||null}}),videoCapabilities:L.map(function(Z){return{contentType:'video/mp4; codecs="'.concat(Z,'"'),robustness:W.videoRobustness||"",encryptionScheme:W.videoEncryptionScheme||null}})};return[H]}function ke(Ae,ee,L){return Uint8Array.prototype.slice?Ae.slice(ee,L):new Uint8Array(Array.prototype.slice.call(Ae,ee,L))}var rt=function(ee,L){return L+10<=ee.length&&(ee[L]===73&&ee[L+1]===68&&ee[L+2]===51&&(ee[L+3]<255&&ee[L+4]<255&&(ee[L+6]<128&&ee[L+7]<128&&ee[L+8]<128&&ee[L+9]<128)))},xt=function(ee,L){return L+10<=ee.length&&(ee[L]===51&&ee[L+1]===68&&ee[L+2]===73&&(ee[L+3]<255&&ee[L+4]<255&&(ee[L+6]<128&&ee[L+7]<128&&ee[L+8]<128&&ee[L+9]<128)))},ht=function(ee,L){for(var W=L,H=0;rt(ee,L);){H+=10;var Z=He(ee,L+6);H+=Z,xt(ee,L+10)&&(H+=10),L+=H}return H>0?ee.subarray(W,W+H):void 0},He=function(ee,L){var W=0;return W=(ee[L]&127)<<21,W|=(ee[L+1]&127)<<14,W|=(ee[L+2]&127)<<7,W|=ee[L+3]&127,W},ir=function(ee,L){return rt(ee,L)&&He(ee,L+6)+10<=ee.length-L},ct=function(ee){for(var L=Jt(ee),W=0;W<L.length;W++){var H=L[W];if(Xt(H))return se(H)}return},Xt=function(ee){return ee&&ee.key==="PRIV"&&ee.info==="com.apple.streaming.transportStreamTimestamp"},hr=function(ee){var L=String.fromCharCode(ee[0],ee[1],ee[2],ee[3]),W=He(ee,4),H=10;return{type:L,size:W,data:ee.subarray(H,H+W)}},Jt=function(ee){for(var L=0,W=[];rt(ee,L);){var H=He(ee,L+6);L+=10;for(var Z=L+H;L+8<Z;){var ne=hr(ee.subarray(L)),ve=Pt(ne);ve&&W.push(ve),L+=ne.size+10}xt(ee,L)&&(L+=10)}return W},Pt=function(ee){return ee.type==="PRIV"?Wt(ee):ee.type[0]==="W"?pe(ee):Ge(ee)},Wt=function(ee){if(ee.size<2)return;var L=lt(ee.data,!0),W=new Uint8Array(ee.data.subarray(L.length+1));return{key:ee.type,info:L,data:W.buffer}},Ge=function(ee){if(ee.size<2)return;if(ee.type==="TXXX"){var L=1,W=lt(ee.data.subarray(L),!0);L+=W.length+1;var H=lt(ee.data.subarray(L));return{key:ee.type,info:W,data:H}}var Z=lt(ee.data.subarray(1));return{key:ee.type,data:Z}},pe=function(ee){if(ee.type==="WXXX"){if(ee.size<2)return;var L=1,W=lt(ee.data.subarray(L),!0);L+=W.length+1;var H=lt(ee.data.subarray(L));return{key:ee.type,info:W,data:H}}var Z=lt(ee.data);return{key:ee.type,data:Z}},se=function(ee){if(ee.data.byteLength===8){var L=new Uint8Array(ee.data),W=L[3]&1,H=(L[4]<<23)+(L[5]<<15)+(L[6]<<7)+L[7];return H/=45,W&&(H+=4772185884e-2),Math.round(H)}return},lt=function(ee){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,W=me();if(W){var H=W.decode(ee);if(L){var Z=H.indexOf("\0");return Z!==-1?H.substring(0,Z):H}return H.replace(/\0/g,"")}for(var ne=ee.length,ve,Te,ze,ot="",ft=0;ft<ne;){if(ve=ee[ft++],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=ee[ft++],ot+=String.fromCharCode((ve&31)<<6|Te&63);break;case 14:Te=ee[ft++],ze=ee[ft++],ot+=String.fromCharCode((ve&15)<<12|(Te&63)<<6|(ze&63)<<0);break}}return ot},qe;function me(){return!qe&&typeof self.TextDecoder!="undefined"&&(qe=new self.TextDecoder("utf-8")),qe}var Ht={hexDump:function(ee){for(var L="",W=0;W<ee.length;W++){var H=ee[W].toString(16);H.length<2&&(H="0"+H),L+=H}return L}},yr=Math.pow(2,32)-1,At=[].push,rr={video:1,audio:2,id3:3,text:4};function ur(Ae){return String.fromCharCode.apply(null,Ae)}function vn(Ae,ee){var L=Ae[ee]<<8|Ae[ee+1];return L<0?65536+L:L}function Bt(Ae,ee){var L=sr(Ae,ee);return L<0?4294967296+L:L}function sr(Ae,ee){return Ae[ee]<<24|Ae[ee+1]<<16|Ae[ee+2]<<8|Ae[ee+3]}function Yt(Ae,ee,L){Ae[ee]=L>>24,Ae[ee+1]=L>>16&255,Ae[ee+2]=L>>8&255,Ae[ee+3]=L&255}function pt(Ae,ee){var L=[];if(!ee.length)return L;for(var W=Ae.byteLength,H=0;H<W;){var Z=Bt(Ae,H),ne=ur(Ae.subarray(H+4,H+8)),ve=Z>1?H+Z:W;if(ne===ee[0])if(ee.length===1)L.push(Ae.subarray(H+8,ve));else{var Te=pt(Ae.subarray(H+8,ve),ee.slice(1));Te.length&&At.apply(L,Te)}H=ve}return L}function it(Ae){var ee=[],L=Ae[0],W=8,H=Bt(Ae,W);W+=4;var Z=0,ne=0;L===0?W+=8:W+=16,W+=2;var ve=Ae.length+ne,Te=vn(Ae,W);W+=2;for(var ze=0;ze<Te;ze++){var ot=W,ft=Bt(Ae,ot);ot+=4;var Zt=ft&2147483647,Cr=(ft&2147483648)>>>31;if(Cr===1)return j.warn("SIDX has hierarchical references (not supported)"),null;var Sr=Bt(Ae,ot);ot+=4,ee.push({referenceSize:Zt,subsegmentDuration:Sr,info:{duration:Sr/H,start:ve,end:ve+Zt-1}}),ve+=Zt,ot+=4,W=ot}return{earliestPresentationTime:Z,timescale:H,version:L,referencesCount:Te,references:ee}}function Fr(Ae){for(var ee=[],L=pt(Ae,["moov","trak"]),W=0;W<L.length;W++){var H=L[W],Z=pt(H,["tkhd"])[0];if(Z){var ne=Z[0],ve=ne===0?12:20,Te=Bt(Z,ve),ze=pt(H,["mdia","mdhd"])[0];if(ze){ne=ze[0],ve=ne===0?12:20;var ot=Bt(ze,ve),ft=pt(H,["mdia","hdlr"])[0];if(ft){var Zt=ur(ft.subarray(8,12)),Cr={soun:le.AUDIO,vide:le.VIDEO}[Zt];if(Cr){var Sr=pt(H,["mdia","minf","stbl","stsd"])[0],Wr=void 0;Sr&&(Wr=ur(Sr.subarray(12,16))),ee[Te]={timescale:ot,type:Cr},ee[Cr]={timescale:ot,id:Te,codec:Wr}}}}}}var $r=pt(Ae,["moov","mvex","trex"]);return $r.forEach(function(On){var Rn=Bt(On,4),Zn=ee[Rn];Zn&&(Zn.default={duration:Bt(On,12),flags:Bt(On,20)})}),ee}function cn(Ae,ee){if(!Ae||!ee)return Ae;var L=ee.keyId;if(L&&ee.isCommonEncryption){var W=pt(Ae,["moov","trak"]);W.forEach(function(H){var Z=pt(H,["mdia","minf","stbl","stsd"])[0],ne=Z.subarray(8),ve=pt(ne,["enca"]),Te=ve.length>0;Te||(ve=pt(ne,["encv"])),ve.forEach(function(ze){var ot=Te?ze.subarray(28):ze.subarray(78),ft=pt(ot,["sinf"]);ft.forEach(function(Zt){var Cr=_n(Zt);if(Cr){var Sr=Cr.subarray(8,24);Sr.some(function(Wr){return Wr!==0})||(j.log("[eme] Patching keyId in 'enc".concat(Te?"a":"v",">sinf>>tenc' box: ").concat(Ht.hexDump(Sr)," -> ").concat(Ht.hexDump(L))),Cr.set(L,8))}})})})}return Ae}function _n(Ae){var ee=pt(Ae,["schm"])[0];if(ee){var L=ur(ee.subarray(4,8));if(L==="cbcs"||L==="cenc")return pt(Ae,["schi","tenc"])[0]}return j.error("[eme] missing 'schm' box"),null}function Kn(Ae,ee){return pt(ee,["moof","traf"]).reduce(function(L,W){var H=pt(W,["tfdt"])[0],Z=H[0],ne=pt(W,["tfhd"]).reduce(function(ve,Te){var ze=Bt(Te,4),ot=Ae[ze];if(ot){var ft=Bt(H,4);if(Z===1){if(ft===yr)return j.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),ve;ft*=yr+1,ft+=Bt(H,8)}var Zt=ot.timescale||9e4,Cr=ft/Zt;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 gi(Ae,ee){for(var L=0,W=0,H=0,Z=pt(Ae,["moof","traf"]),ne=0;ne<Z.length;ne++){var ve=Z[ne],Te=pt(ve,["tfhd"])[0],ze=Bt(Te,4),ot=ee[ze];if(!ot)continue;var ft=ot.default,Zt=Bt(Te,0)|(ft==null?void 0:ft.flags),Cr=ft==null?void 0:ft.duration;Zt&8&&(Zt&2?Cr=Bt(Te,12):Cr=Bt(Te,8));for(var Sr=ot.timescale||9e4,Wr=pt(ve,["trun"]),$r=0;$r<Wr.length;$r++){if(L=Mn(Wr[$r]),!L&&Cr){var On=Bt(Wr[$r],4);L=Cr*On}ot.type===le.VIDEO?W+=L/Sr:ot.type===le.AUDIO&&(H+=L/Sr)}}if(W===0&&H===0){for(var Rn=0,Zn=pt(Ae,["sidx"]),wi=0;wi<Zn.length;wi++){var ua=it(Zn[wi]);ua!=null&&ua.references&&(Rn+=ua.references.reduce(function(Vi,Zi){return Vi+Zi.info.duration||0},0))}return Rn}return W||H}function Mn(Ae){var ee=Bt(Ae,0),L=8;ee&1&&(L+=4),ee&4&&(L+=4);for(var W=0,H=Bt(Ae,4),Z=0;Z<H;Z++){if(ee&256){var ne=Bt(Ae,L);W+=ne,L+=4}ee&512&&(L+=4),ee&1024&&(L+=4),ee&2048&&(L+=4)}return W}function Un(Ae,ee,L){pt(ee,["moof","traf"]).forEach(function(W){pt(W,["tfhd"]).forEach(function(H){var Z=Bt(H,4),ne=Ae[Z];if(!ne)return;var ve=ne.timescale||9e4;pt(W,["tfdt"]).forEach(function(Te){var ze=Te[0],ot=Bt(Te,4);if(ze===0)ot-=L*ve,ot=Math.max(ot,0),Yt(Te,4,ot);else{ot*=Math.pow(2,32),ot+=Bt(Te,8),ot-=L*ve,ot=Math.max(ot,0);var ft=Math.floor(ot/(yr+1)),Zt=Math.floor(ot%(yr+1));Yt(Te,4,ft),Yt(Te,8,Zt)}})})})}function $t(Ae){var ee={valid:null,remainder:null},L=pt(Ae,["moof"]);if(L){if(L.length<2)return ee.remainder=Ae,ee}else return ee;var W=L[L.length-1];return ee.valid=ke(Ae,0,W.byteOffset-8),ee.remainder=ke(Ae,W.byteOffset-8),ee}function Ct(Ae,ee){var L=new Uint8Array(Ae.length+ee.length);return L.set(Ae),L.set(ee,Ae.length),L}function Re(Ae,ee){var L=[],W=ee.samples,H=ee.timescale,Z=ee.id,ne=!1,ve=pt(W,["moof"]);return ve.map(function(Te){var ze=Te.byteOffset-8,ot=pt(Te,["traf"]);ot.map(function(ft){var Zt=pt(ft,["tfdt"]).map(function(Cr){var Sr=Cr[0],Wr=Bt(Cr,4);return Sr===1&&(Wr*=Math.pow(2,32),Wr+=Bt(Cr,8)),Wr/H})[0];return Zt!==void 0&&(Ae=Zt),pt(ft,["tfhd"]).map(function(Cr){var Sr=Bt(Cr,4),Wr=Bt(Cr,0)&16777215,$r=(Wr&1)!==0,On=(Wr&2)!==0,Rn=(Wr&8)!==0,Zn=0,wi=(Wr&16)!==0,ua=0,Vi=(Wr&32)!==0,Zi=8;Sr===Z&&($r&&(Zi+=8),On&&(Zi+=4),Rn&&(Zn=Bt(Cr,Zi),Zi+=4),wi&&(ua=Bt(Cr,Zi),Zi+=4),Vi&&(Zi+=4),ee.type==="video"&&(ne=De(ee.codec)),pt(ft,["trun"]).map(function(ka){var Ga=ka[0],Ba=Bt(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,Tt=Bt(ka,4),dr=8;Sa&&(Go=Bt(ka,dr),dr+=4),bs&&(dr+=4);for(var Br=Go+ze,sn=0;sn<Tt;sn++){if(ys?(Cs=Bt(ka,dr),dr+=4):Cs=Zn,js?(ws=Bt(ka,dr),dr+=4):ws=ua,Hs&&(dr+=4),Ee&&(Ga===0?Ye=Bt(ka,dr):Ye=sr(ka,dr),dr+=4),ee.type===le.VIDEO)for(var Ue=0;Ue<ws;){var oe=Bt(W,Br);if(Br+=4,Pe(ne,W[Br])){var _e=W.subarray(Br,Br+oe);et(_e,ne?2:1,Ae+Ye/H,L)}Br+=oe,Ue+=oe+4}Ae+=Cs/H}}))})})}),L}function De(Ae){if(!Ae)return!1;var ee=Ae.indexOf("."),L=ee<0?Ae:Ae.substring(0,ee);return L==="hvc1"||L==="hev1"||L==="dvh1"||L==="dvhe"}function Pe(Ae,ee){if(Ae){var L=ee>>1&63;return L===39||L===40}else{var W=ee&31;return W===6}}function et(Ae,ee,L,W){var H=yt(Ae),Z=0;Z+=ee;for(var ne=0,ve=0,Te=!1,ze=0;Z<H.length;){ne=0;do{if(Z>=H.length)break;ze=H[Z++],ne+=ze}while(ze===255);ve=0;do{if(Z>=H.length)break;ze=H[Z++],ve+=ze}while(ze===255);var ot=H.length-Z;if(!Te&&ne===4&&Z<H.length){Te=!0;var ft=H[Z++];if(ft===181){var Zt=vn(H,Z);if(Z+=2,Zt===49){var Cr=Bt(H,Z);if(Z+=4,Cr===1195456820){var Sr=H[Z++];if(Sr===3){var Wr=H[Z++],$r=31&Wr,On=64&Wr,Rn=On?2+$r*3:0,Zn=new Uint8Array(Rn);if(On){Zn[0]=Wr;for(var wi=1;wi<Rn;wi++)Zn[wi]=H[Z++]}W.push({type:Sr,payloadType:ne,pts:L,bytes:Zn})}}}}}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:lt(Ga),userDataBytes:Ga})}}else if(ve<ot)Z+=ve;else if(ve>ot)break}}function yt(Ae){for(var ee=Ae.byteLength,L=[],W=1;W<ee-2;)Ae[W]===0&&Ae[W+1]===0&&Ae[W+2]===3?(L.push(W+2),W+=2):W++;if(L.length===0)return Ae;var H=ee-L.length,Z=new Uint8Array(H),ne=0;for(W=0;W<H;ne++,W++)ne===L[0]&&(ne++,L.shift()),Z[W]=Ae[ne];return Z}function St(Ae){var ee=Ae[0],L="",W="",H=0,Z=0,ne=0,ve=0,Te=0,ze=0;if(ee===0){for(;ur(Ae.subarray(ze,ze+1))!=="\0";)L+=ur(Ae.subarray(ze,ze+1)),ze+=1;for(L+=ur(Ae.subarray(ze,ze+1)),ze+=1;ur(Ae.subarray(ze,ze+1))!=="\0";)W+=ur(Ae.subarray(ze,ze+1)),ze+=1;W+=ur(Ae.subarray(ze,ze+1)),ze+=1,H=Bt(Ae,12),Z=Bt(Ae,16),ve=Bt(Ae,20),Te=Bt(Ae,24),ze=28}else if(ee===1){ze+=4,H=Bt(Ae,ze),ze+=4;var ot=Bt(Ae,ze);ze+=4;var ft=Bt(Ae,ze);for(ze+=4,ne=Math.pow(2,32)*ot+ft,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=Bt(Ae,ze),ze+=4,Te=Bt(Ae,ze),ze+=4;ur(Ae.subarray(ze,ze+1))!=="\0";)L+=ur(Ae.subarray(ze,ze+1)),ze+=1;for(L+=ur(Ae.subarray(ze,ze+1)),ze+=1;ur(Ae.subarray(ze,ze+1))!=="\0";)W+=ur(Ae.subarray(ze,ze+1)),ze+=1;W+=ur(Ae.subarray(ze,ze+1)),ze+=1}var Zt=Ae.subarray(ze,Ae.byteLength);return{schemeIdUri:L,value:W,timeScale:H,presentationTime:ne,presentationTimeDelta:Z,eventDuration:ve,id:Te,payload:Zt}}function Vt(Ae){for(var ee=arguments.length,L=new Array(ee>1?ee-1:0),W=1;W<ee;W++)L[W-1]=arguments[W];for(var H=L.length,Z=8,ne=H;ne--;)Z+=L[ne].byteLength;var ve=new Uint8Array(Z);for(ve[0]=Z>>24&255,ve[1]=Z>>16&255,ve[2]=Z>>8&255,ve[3]=Z&255,ve.set(Ae,4),ne=0,Z=8;ne<H;ne++)ve.set(L[ne],Z),Z+=L[ne].byteLength;return ve}function Rr(Ae,ee,L){if(Ae.byteLength!==16)throw new RangeError("Invalid system id");var W,H;if(ee){W=1,H=new Uint8Array(ee.length*16);for(var Z=0;Z<ee.length;Z++){var ne=ee[Z];if(ne.byteLength!==16)throw new RangeError("Invalid key");H.set(ne,Z*16)}}else W=0,H=new Uint8Array;var ve;W>0?(ve=new Uint8Array(4),ee.length>0&&new DataView(ve.buffer).setUint32(0,ee.length,!1)):ve=new Uint8Array;var Te=new Uint8Array(4);return L&&L.byteLength>0&&new DataView(Te.buffer).setUint32(0,L.byteLength,!1),Vt([112,115,115,104],new Uint8Array([W,0,0,0]),Ae,ve,H,Te,L||new Uint8Array)}function Vr(Ae){if(!(Ae instanceof ArrayBuffer)||Ae.byteLength<32)return null;var ee={version:0,systemId:"",kids:null,data:null},L=new DataView(Ae),W=L.getUint32(0);if(Ae.byteLength!==W&&W>44)return null;var H=L.getUint32(4);if(H!==1886614376)return null;if(ee.version=L.getUint32(8)>>>24,ee.version>1)return null;ee.systemId=Ht.hexDump(new Uint8Array(Ae,12,16));var Z=L.getUint32(28);if(ee.version===0){if(W-32<Z)return null;ee.data=new Uint8Array(Ae,32,Z)}else if(ee.version===1){ee.kids=[];for(var ne=0;ne<Z;ne++)ee.kids.push(new Uint8Array(Ae,32+ne*16,16))}return ee}var hn={},Ft=function(){function Ae(ee,L,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;Object(r.a)(this,Ae),this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=ee,this.uri=L,this.keyFormat=W,this.keyFormatVersions=H,this.iv=Z,this.encrypted=ee?ee!=="NONE":!1,this.isCommonEncryption=this.encrypted&&ee!=="AES-128"}return Object(a.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=vt(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=Rr(ne,null,Z);var ve=new Uint16Array(Z.buffer,Z.byteOffset,Z.byteLength/2),Te=String.fromCharCode.apply(null,Array.from(ve)),ze=Te.substring(Te.indexOf("<"),Te.length),ot=new DOMParser,ft=ot.parseFromString(ze,"text/xml"),Zt=ft.getElementsByTagName("KID")[0];if(Zt){var Cr=Zt.childNodes[0]?Zt.childNodes[0].nodeValue:Zt.getAttribute("VALUE");if(Cr){var Sr=Ve(Cr).subarray(0,16);Fe(Sr),this.keyId=Sr}}break}default:{var Wr=Z.subarray(0,16);if(Wr.length!==16){var $r=new Uint8Array(16);$r.set(Wr,16-Wr.length),Wr=$r}this.keyId=Wr;break}}if(!this.keyId||this.keyId.byteLength!==16){var On=hn[this.uri];if(!On){var Rn=Object.keys(hn).length%Number.MAX_SAFE_INTEGER;On=new Uint8Array(16);var Zn=new DataView(On.buffer,12,4);Zn.setUint32(0,Rn),hn[this.uri]=On}this.keyId=On}return this}}],[{key:"clearKeyUriToKeyIdMap",value:function(){hn={}}}]),Ae}();function vt(Ae){for(var ee=new Uint8Array(16),L=12;L<16;L++)ee[L]=Ae>>8*(15-L)&255;return ee}var bt=/\{\$([a-zA-Z0-9-_]+)\}/g;function fr(Ae){return bt.test(Ae)}function Qt(Ae,ee,L){if(Ae.variableList!==null||Ae.hasVariableRefs)for(var W=L.length;W--;){var H=L[W],Z=ee[H];Z&&(ee[H]=Mt(Ae,Z))}}function Mt(Ae,ee){if(Ae.variableList!==null||Ae.hasVariableRefs){var L=Ae.variableList;return ee.replace(bt,function(W){var H=W.substring(2,W.length-1),Z=L==null?void 0:L[H];return Z===void 0?(Ae.playlistParsingError||(Ae.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'.concat(H,'"'))),W):Z})}return ee}function qt(Ae,ee,L){var W=Ae.variableList;W||(Ae.variableList=W={});var H,Z;if("QUERYPARAM"in ee){H=ee.QUERYPARAM;try{var ne=new self.URL(L).searchParams;if(ne.has(H))Z=ne.get(H);else throw new Error('"'.concat(H,'" does not match any query parameter in URI: "').concat(L,'"'))}catch(ve){Ae.playlistParsingError||(Ae.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: ".concat(ve.message)))}}else H=ee.NAME,Z=ee.VALUE;H in W?Ae.playlistParsingError||(Ae.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'.concat(H,'"'))):W[H]=Z||""}function kt(Ae,ee,L){var W=ee.IMPORT;if(L&&W in L){var H=Ae.variableList;H||(Ae.variableList=H={}),H[W]=L[W]}else Ae.playlistParsingError||(Ae.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'.concat(W,'"')))}function er(){return typeof self=="undefined"?void 0:self.MediaSource||self.WebKitMediaSource}var Kr={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dva1:!0,dvav:!0,dvh1:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}},Ir=er();function Dr(Ae,ee){var L=Kr[ee];return!!L&&L[Ae.slice(0,4)]===!0}function dn(Ae,ee){var L;return(L=Ir==null?void 0:Ir.isTypeSupported("".concat(ee||"video",'/mp4;codecs="').concat(Ae,'"')))!=null?L:!1}var yn=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,ti=/#EXT-X-MEDIA:(.*)/g,ei=/^#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"),Ei=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),Di=function(){function Ae(){Object(r.a)(this,Ae)}return Object(a.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 ei.test(L)}},{key:"parseMasterPlaylist",value:function(L,W){var H=fr(L),Z={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:H},ne=[];yn.lastIndex=0;for(var ve;(ve=yn.exec(L))!=null;)if(ve[1]){var Te,ze=new V(ve[1]);Qt(Z,ze,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);var ot=Mt(Z,ve[2]),ft={attrs:ze,bitrate:ze.decimalInteger("AVERAGE-BANDWIDTH")||ze.decimalInteger("BANDWIDTH"),name:ze.NAME,url:Ae.resolve(ot,W)},Zt=ze.decimalResolution("RESOLUTION");Zt&&(ft.width=Zt.width,ft.height=Zt.height),Le((ze.CODECS||"").split(/[ ,]+/).filter(function(ua){return ua}),ft),ft.videoCodec&&ft.videoCodec.indexOf("avc1")!==-1&&(ft.videoCodec=Ae.convertAVC1ToAVCOTI(ft.videoCodec)),(Te=ft.unknownCodecs)!=null&&Te.length||ne.push(ft),Z.levels.push(ft)}else if(ve[3]){var Cr=ve[3],Sr=ve[4];switch(Cr){case"SESSION-DATA":{var Wr=new V(Sr);Qt(Z,Wr,["DATA-ID","LANGUAGE","VALUE","URI"]);var $r=Wr["DATA-ID"];$r&&(Z.sessionData===null&&(Z.sessionData={}),Z.sessionData[$r]=Wr);break}case"SESSION-KEY":{var On=Hi(Sr,W,Z);On.encrypted&&On.isSupported()?(Z.sessionKeys===null&&(Z.sessionKeys=[]),Z.sessionKeys.push(On)):j.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'.concat(Sr,'"'));break}case"DEFINE":{{var Rn=new V(Sr);Qt(Z,Rn,["NAME","VALUE","QUERYPARAM"]),qt(Z,Rn,W)}break}case"CONTENT-STEERING":{var Zn=new V(Sr);Qt(Z,Zn,["SERVER-URI","PATHWAY-ID"]),Z.contentSteering={uri:Ae.resolve(Zn["SERVER-URI"],W),pathwayId:Zn["PATHWAY-ID"]||"."};break}case"START":{Z.startTimeOffset=nt(Sr);break}}}var wi=ne.length>0&&ne.length<Z.levels.length;return Z.levels=wi?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($r){return{id:$r.attrs.AUDIO,audioCodec:$r.audioCodec}}),SUBTITLES:ve.map(function($r){return{id:$r.attrs.SUBTITLES,textCodec:$r.textCodec}}),"CLOSED-CAPTIONS":[]},ze=0;for(ti.lastIndex=0;(Z=ti.exec(L))!==null;){var ot=new V(Z[1]),ft=ot.TYPE;if(ft){var Zt=Te[ft],Cr=ne[ft]||[];ne[ft]=Cr,Qt(H,ot,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);var Sr={attrs:ot,bitrate:0,id:ze++,groupId:ot["GROUP-ID"]||"",instreamId:ot["INSTREAM-ID"],name:ot.NAME||ot.LANGUAGE||"",type:ft,default:ot.bool("DEFAULT"),autoselect:ot.bool("AUTOSELECT"),forced:ot.bool("FORCED"),lang:ot.LANGUAGE,url:ot.URI?Ae.resolve(ot.URI,W):""};if(Zt!=null&&Zt.length){var Wr=Ae.findGroup(Zt,Sr.groupId)||Zt[0];je(Sr,Wr,"audioCodec"),je(Sr,Wr,"textCodec")}Cr.push(Sr)}}return ne}},{key:"parseLevelPlaylist",value:function(L,W,H,Z,ne,ve){var Te=new Je(W),ze=Te.fragments,ot=null,ft=0,Zt=0,Cr=0,Sr=0,Wr=null,$r=new we(Z,W),On,Rn,Zn,wi=-1,ua=!1;for(fi.lastIndex=0,Te.m3u8=L,Te.hasVariableRefs=fr(L);(On=fi.exec(L))!==null;){ua&&(ua=!1,$r=new we(Z,W),$r.start=Cr,$r.sn=ft,$r.cc=Sr,$r.level=H,ot&&($r.initSegment=ot,$r.rawProgramDateTime=ot.rawProgramDateTime,ot.rawProgramDateTime=null));var Vi=On[1];if(Vi){$r.duration=parseFloat(Vi);var Zi=(" "+On[2]).slice(1);$r.title=Zi||null,$r.tagList.push(Zi?["INF",Vi,Zi]:["INF",Vi])}else if(On[3]){if(T($r.duration)){$r.start=Cr,Zn&&st($r,Zn,Te),$r.sn=ft,$r.level=H,$r.cc=Sr,$r.urlId=ne,ze.push($r);var ka=(" "+On[3]).slice(1);$r.relurl=Mt(Te,ka),tt($r,Wr),Wr=$r,Cr+=$r.duration,ft++,Zt=0,ua=!0}}else if(On[4]){var Ga=(" "+On[4]).slice(1);Wr?$r.setByteRange(Ga,Wr):$r.setByteRange(Ga)}else if(On[5])$r.rawProgramDateTime=(" "+On[5]).slice(1),$r.tagList.push(["PROGRAM-DATE-TIME",$r.rawProgramDateTime]),wi===-1&&(wi=ze.length);else{if(On=On[0].match(Ei),!On){j.warn("No matches on slow regex match for level playlist!");continue}for(Rn=1;Rn<On.length&&!(typeof On[Rn]!="undefined");Rn++);var Ba=(" "+On[Rn]).slice(1),Sa=(" "+On[Rn+1]).slice(1),Go=On[Rn+2]?(" "+On[Rn+2]).slice(1):"";switch(Ba){case"PLAYLIST-TYPE":Te.type=Sa.toUpperCase();break;case"MEDIA-SEQUENCE":ft=Te.startSN=parseInt(Sa);break;case"SKIP":{var bs=new V(Sa);Qt(Te,bs,["RECENTLY-REMOVED-DATERANGES"]);var ys=bs.decimalInteger("SKIPPED-SEGMENTS");if(T(ys)){Te.skippedSegments=ys;for(var Cs=ys;Cs--;)ze.unshift(null);ft+=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)&&$r.tagList.push(Go?[Sa,Go]:[Sa]);break;case"DISCONTINUITY":Sr++,$r.tagList.push(["DIS"]);break;case"GAP":$r.gap=!0,$r.tagList.push([Ba]);break;case"BITRATE":$r.tagList.push([Ba,Sa]);break;case"DATERANGE":{var ws=new V(Sa);Qt(Te,ws,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Qt(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,'"')),$r.tagList.push(["EXT-X-DATERANGE",Sa]);break}case"DEFINE":{{var Ee=new V(Sa);Qt(Te,Ee,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in Ee?kt(Te,Ee,ve):qt(Te,Ee,W)}break}case"DISCONTINUITY-SEQUENCE":Sr=parseInt(Sa);break;case"KEY":{var Ye=Hi(Sa,W,Te);if(Ye.isSupported()){if(Ye.method==="NONE"){Zn=void 0;break}Zn||(Zn={}),Zn[Ye.keyFormat]&&(Zn=E({},Zn)),Zn[Ye.keyFormat]=Ye}else j.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'.concat(Sa,'"'));break}case"START":Te.startTimeOffset=nt(Sa);break;case"MAP":{var Tt=new V(Sa);if(Qt(Te,Tt,["BYTERANGE","URI"]),$r.duration){var dr=new we(Z,W);Ze(dr,Tt,H,Zn),ot=dr,$r.initSegment=ot,ot.rawProgramDateTime&&!$r.rawProgramDateTime&&($r.rawProgramDateTime=ot.rawProgramDateTime)}else Ze($r,Tt,H,Zn),ot=$r,ua=!0;break}case"SERVER-CONTROL":{var Br=new V(Sa);Te.canBlockReload=Br.bool("CAN-BLOCK-RELOAD"),Te.canSkipUntil=Br.optionalFloat("CAN-SKIP-UNTIL",0),Te.canSkipDateRanges=Te.canSkipUntil>0&&Br.bool("CAN-SKIP-DATERANGES"),Te.partHoldBack=Br.optionalFloat("PART-HOLD-BACK",0),Te.holdBack=Br.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var sn=new V(Sa);Te.partTarget=sn.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=Te.partList;Ue||(Ue=Te.partList=[]);var oe=Zt>0?Ue[Ue.length-1]:void 0,_e=Zt++,$e=new V(Sa);Qt(Te,$e,["BYTERANGE","URI"]);var wt=new Ie($e,$r,W,_e,oe);Ue.push(wt),$r.duration+=wt.duration;break}case"PRELOAD-HINT":{var Kt=new V(Sa);Qt(Te,Kt,["URI"]),Te.preloadHint=Kt;break}case"RENDITION-REPORT":{var tr=new V(Sa);Qt(Te,tr,["URI"]),Te.renditionReports=Te.renditionReports||[],Te.renditionReports.push(tr);break}default:j.warn("line parsed but not handled: ".concat(On));break}}}Wr&&!Wr.relurl?(ze.pop(),Cr-=Wr.duration,Te.partList&&(Te.fragmentHint=Wr)):Te.partList&&(tt($r,Wr),$r.cc=Sr,Te.fragmentHint=$r,Zn&&st($r,Zn,Te));var ar=ze.length,Gr=ze[0],pn=ze[ar-1];if(Cr+=Te.skippedSegments*Te.targetduration,Cr>0&&ar&&pn){Te.averagetargetduration=Cr/ar;var zr=pn.sn;Te.endSN=zr!=="initSegment"?zr:0,Te.live||(pn.endList=!0),Gr&&(Te.startCC=Gr.cc)}else Te.endSN=0,Te.startCC=0;return Te.fragmentHint&&(Cr+=Te.fragmentHint.duration),Te.totalduration=Cr,Te.endCC=Sr,wi>0&&Xe(ze,wi),Te}}]),Ae}();function Hi(Ae,ee,L){var W,H,Z=new V(Ae);Qt(L,Z,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var ne=(W=Z.METHOD)!=null?W:"",ve=Z.URI,Te=Z.hexadecimalInteger("IV"),ze=Z.KEYFORMATVERSIONS,ot=(H=Z.KEYFORMAT)!=null?H:"identity";ve&&Z.IV&&!Te&&j.error("Invalid IV: ".concat(Z.IV));var ft=ve?Di.resolve(ve,ee):"",Zt=(ze||"1").split("/").map(Number).filter(Number.isFinite);return new Ft(ne,ft,ot,Zt,Te)}function nt(Ae){var ee=new V(Ae),L=ee.decimalFloatingPoint("TIME-OFFSET");return T(L)?L:null}function Le(Ae,ee){["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});ee["".concat(L,"Codec")]=H.length>0?H[0]:W[0],Ae=Ae.filter(function(Z){return W.indexOf(Z)===-1})}}),ee.unknownCodecs=Ae}function je(Ae,ee,L){var W=ee[L];W&&(Ae[L]=W)}function Xe(Ae,ee){for(var L=Ae[ee],W=ee;W--;){var H=Ae[W];if(!H)return;H.programDateTime=L.programDateTime-H.duration*1e3,L=H}}function tt(Ae,ee){Ae.rawProgramDateTime?Ae.programDateTime=Date.parse(Ae.rawProgramDateTime):ee!=null&&ee.programDateTime&&(Ae.programDateTime=ee.endProgramDateTime),T(Ae.programDateTime)||(Ae.programDateTime=null,Ae.rawProgramDateTime=null)}function Ze(Ae,ee,L,W){Ae.relurl=ee.URI,ee.BYTERANGE&&Ae.setByteRange(ee.BYTERANGE),Ae.level=L,Ae.sn="initSegment",W&&(Ae.levelkeys=W),Ae.initSegment=null}function st(Ae,ee,L){Ae.levelkeys=ee;var W=L.encryptedFragments;(!W.length||W[W.length-1].levelkeys!==ee)&&Object.keys(ee).some(function(H){return ee[H].isCommonEncryption})&&W.push(Ae)}var Et={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},gt={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function pr(Ae){var ee=Ae.type;switch(ee){case Et.AUDIO_TRACK:return gt.AUDIO;case Et.SUBTITLE_TRACK:return gt.SUBTITLE;default:return gt.MAIN}}function qr(Ae,ee){var L=Ae.url;return(L===void 0||L.indexOf("data:")===0)&&(L=ee.url),L}var Qr=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=ee,this.registerListeners()}return Object(a.a)(Ae,[{key:"startLoad",value:function(L){}},{key:"stopLoad",value:function(){this.destroyInternalLoaders()}},{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.LEVEL_LOADING,this.onLevelLoading,this),L.on(w.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),L.on(w.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.LEVEL_LOADING,this.onLevelLoading,this),L.off(w.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),L.off(w.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"createInternalLoader",value:function(L){var W=this.hls.config,H=W.pLoader,Z=W.loader,ne=H||Z,ve=new ne(W);return this.loaders[L.type]=ve,ve}},{key:"getInternalLoader",value:function(L){return this.loaders[L.type]}},{key:"resetInternalLoader",value:function(L){this.loaders[L]&&delete this.loaders[L]}},{key:"destroyInternalLoaders",value:function(){for(var L in this.loaders){var W=this.loaders[L];W&&W.destroy(),this.resetInternalLoader(L)}}},{key:"destroy",value:function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}},{key:"onManifestLoading",value:function(L,W){var H=W.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:Et.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:Et.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:Et.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:Et.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===Et.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 ze;if(L.type===Et.LEVEL&&L.level!==null?ze=this.hls.levels[L.level].details:L.type===Et.AUDIO_TRACK&&L.id!==null?ze=this.hls.audioTracks[L.id].details:L.type===Et.SUBTITLE_TRACK&&L.id!==null&&(ze=this.hls.subtitleTracks[L.id].details),ze){var ot=ze.partTarget,ft=ze.targetduration;if(ot&&ft){var Zt=Math.max(ot*3,ft*.8)*1e3;Te=E({},Te,{maxTimeToFirstByteMs:Math.min(Zt,Te.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(Zt,Te.maxTimeToFirstByteMs)})}}}var Cr=Te.errorRetry||Te.timeoutRetry||{},Sr={loadPolicy:Te,timeout:Te.maxLoadTimeMs,maxRetry:Cr.maxNumRetry||0,retryDelay:Cr.retryDelayMs||0,maxRetryDelay:Cr.maxRetryDelayMs||0},Wr={onSuccess:function(On,Rn,Zn,wi){var ua=W.getInternalLoader(Zn);W.resetInternalLoader(Zn.type);var Vi=On.data;if(Vi.indexOf("#EXTM3U")!==0){W.handleManifestParsingError(On,Zn,new Error("no EXTM3U delimiter"),wi||null,Rn);return}Rn.parsing.start=performance.now(),Di.isMediaPlaylist(Vi)?W.handleTrackOrLevelPlaylist(On,Rn,Zn,wi||null,ua):W.handleMasterPlaylist(On,Rn,Zn,wi)},onError:function(On,Rn,Zn,wi){W.handleNetworkError(Rn,Zn,!1,On,wi)},onTimeout:function(On,Rn,Zn){W.handleNetworkError(Rn,Zn,!0,void 0,On)}};ne.load(L,Sr,Wr)}},{key:"handleMasterPlaylist",value:function(L,W,H,Z){var ne=this.hls,ve=L.data,Te=qr(L,H),ze=Di.parseMasterPlaylist(ve,Te);if(ze.playlistParsingError){this.handleManifestParsingError(L,H,ze.playlistParsingError,Z,W);return}var ot=ze.contentSteering,ft=ze.levels,Zt=ze.sessionData,Cr=ze.sessionKeys,Sr=ze.startTimeOffset,Wr=ze.variableList;this.variableList=Wr;var $r=Di.parseMasterPlaylistMedia(ve,Te,ze),On=$r.AUDIO,Rn=On===void 0?[]:On,Zn=$r.SUBTITLES,wi=$r["CLOSED-CAPTIONS"];if(Rn.length){var ua=Rn.some(function(Vi){return!Vi.url});!ua&&ft[0].audioCodec&&!ft[0].attrs.AUDIO&&(j.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),Rn.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new V({}),bitrate:0,url:""}))}ne.trigger(w.MANIFEST_LOADED,{levels:ft,audioTracks:Rn,subtitles:Zn,captions:wi,contentSteering:ot,url:Te,stats:W,networkDetails:Z,sessionData:Zt,sessionKeys:Cr,startTimeOffset:Sr,variableList:Wr})}},{key:"handleTrackOrLevelPlaylist",value:function(L,W,H,Z,ne){var ve=this.hls,Te=H.id,ze=H.level,ot=H.type,ft=qr(L,H),Zt=T(Te)?Te:0,Cr=T(ze)?ze:Zt,Sr=pr(H),Wr=Di.parseLevelPlaylist(L.data,ft,Cr,Sr,Zt,this.variableList);if(ot===Et.MANIFEST){var $r={attrs:new V({}),bitrate:0,details:Wr,name:"",url:ft};ve.trigger(w.MANIFEST_LOADED,{levels:[$r],audioTracks:[],url:ft,stats:W,networkDetails:Z,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}W.parsing.end=performance.now(),H.levelDetails=Wr,this.handlePlaylistLoaded(Wr,L,W,H,Z,ne)}},{key:"handleManifestParsingError",value:function(L,W,H,Z,ne){this.hls.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.MANIFEST_PARSING_ERROR,fatal:W.type===Et.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===Et.LEVEL?ve+=": ".concat(L.level," id: ").concat(L.id):(L.type===Et.AUDIO_TRACK||L.type===Et.SUBTITLE_TRACK)&&(ve+=" id: ".concat(L.id,' group-id: "').concat(L.groupId,'"'));var Te=new Error(ve);j.warn("[playlist-loader]: ".concat(ve));var ze=I.UNKNOWN,ot=!1,ft=this.getInternalLoader(L);switch(L.type){case Et.MANIFEST:ze=H?I.MANIFEST_LOAD_TIMEOUT:I.MANIFEST_LOAD_ERROR,ot=!0;break;case Et.LEVEL:ze=H?I.LEVEL_LOAD_TIMEOUT:I.LEVEL_LOAD_ERROR,ot=!1;break;case Et.AUDIO_TRACK:ze=H?I.AUDIO_TRACK_LOAD_TIMEOUT:I.AUDIO_TRACK_LOAD_ERROR,ot=!1;break;case Et.SUBTITLE_TRACK:ze=H?I.SUBTITLE_TRACK_LOAD_TIMEOUT:I.SUBTITLE_LOAD_ERROR,ot=!1;break}ft&&this.resetInternalLoader(L.type);var Zt={type:O.NETWORK_ERROR,details:ze,fatal:ot,url:L.url,loader:ft,context:L,error:Te,networkDetails:W,stats:ne};if(Z){var Cr=(W==null?void 0:W.url)||L.url;Zt.response=b({url:Cr,data:void 0},Z)}this.hls.trigger(w.ERROR,Zt)}},{key:"handlePlaylistLoaded",value:function(L,W,H,Z,ne,ve){var Te=this.hls,ze=Z.type,ot=Z.level,ft=Z.id,Zt=Z.groupId,Cr=Z.deliveryDirectives,Sr=qr(W,Z),Wr=pr(Z),$r=typeof Z.level=="number"&&Wr===gt.MAIN?ot:void 0;if(!L.fragments.length){var On=new Error("No Segments found in Playlist");Te.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.LEVEL_EMPTY_ERROR,fatal:!1,url:Sr,error:On,reason:On.message,response:W,context:Z,level:$r,parent:Wr,networkDetails:ne,stats:H});return}L.targetduration||(L.playlistParsingError=new Error("Missing Target Duration"));var Rn=L.playlistParsingError;if(Rn){Te.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.LEVEL_PARSING_ERROR,fatal:!1,url:Sr,error:Rn,reason:Rn.message,response:W,context:Z,level:$r,parent:Wr,networkDetails:ne,stats:H});return}L.live&&ve&&(ve.getCacheAge&&(L.ageHeader=ve.getCacheAge()||0),(!ve.getCacheAge||isNaN(L.ageHeader))&&(L.ageHeader=0));switch(ze){case Et.MANIFEST:case Et.LEVEL:Te.trigger(w.LEVEL_LOADED,{details:L,level:$r||0,id:ft||0,stats:H,networkDetails:ne,deliveryDirectives:Cr});break;case Et.AUDIO_TRACK:Te.trigger(w.AUDIO_TRACK_LOADED,{details:L,id:ft||0,groupId:Zt||"",stats:H,networkDetails:ne,deliveryDirectives:Cr});break;case Et.SUBTITLE_TRACK:Te.trigger(w.SUBTITLE_TRACK_LOADED,{details:L,id:ft||0,groupId:Zt||"",stats:H,networkDetails:ne,deliveryDirectives:Cr});break}}}]),Ae}();function gn(Ae,ee){var L;try{L=new Event("addtrack")}catch(W){L=document.createEvent("Event"),L.initEvent("addtrack",!1,!1)}L.track=Ae,ee.dispatchEvent(L)}function vr(Ae,ee){var L=Ae.mode;if(L==="disabled"&&(Ae.mode="hidden"),Ae.cues&&!Ae.cues.getCueById(ee.id))try{if(Ae.addCue(ee),!Ae.cues.getCueById(ee.id))throw new Error("addCue is failed for: ".concat(ee))}catch(H){j.debug("[texttrack-utils]: ".concat(H));try{var W=new self.TextTrackCue(ee.startTime,ee.endTime,ee.text);W.id=ee.id,Ae.addCue(W)}catch(Z){j.debug("[texttrack-utils]: Legacy TextTrackCue fallback failed: ".concat(Z))}}L==="disabled"&&(Ae.mode=L)}function Vn(Ae){var ee=Ae.mode;if(ee==="disabled"&&(Ae.mode="hidden"),Ae.cues)for(var L=Ae.cues.length;L--;)Ae.removeCue(Ae.cues[L]);ee==="disabled"&&(Ae.mode=ee)}function kr(Ae,ee,L,W){var H=Ae.mode;if(H==="disabled"&&(Ae.mode="hidden"),Ae.cues&&Ae.cues.length>0)for(var Z=on(Ae.cues,ee,L),ne=0;ne<Z.length;ne++)(!W||W(Z[ne]))&&Ae.removeCue(Z[ne]);H==="disabled"&&(Ae.mode=H)}function Bn(Ae,ee){if(ee<Ae[0].startTime)return 0;var L=Ae.length-1;if(ee>Ae[L].endTime)return-1;for(var W=0,H=L;W<=H;){var Z=Math.floor((H+W)/2);if(ee<Ae[Z].startTime)H=Z-1;else if(ee>Ae[Z].startTime&&W<L)W=Z+1;else return Z}return Ae[W].startTime-ee<ee-Ae[H].startTime?W:H}function on(Ae,ee,L){var W=[],H=Bn(Ae,ee);if(H>-1)for(var Z=H,ne=Ae.length;Z<ne;Z++){var ve=Ae[Z];if(ve.startTime>=ee&&ve.endTime<=L)W.push(ve);else if(ve.startTime>L)return W}return W}var jr={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"},ai=.25;function Oi(){return typeof self=="undefined"?void 0:self.WebKitDataCue||self.VTTCue||self.TextTrackCue}var Gi=function(){var Ae=Oi();try{new Ae(0,Number.POSITIVE_INFINITY,"")}catch(ee){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function rn(Ae,ee){return Ae.getTime()/1e3-ee}function Cn(Ae){return Uint8Array.from(Ae.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}var Yn=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=ee,this._registerListeners()}return Object(a.a)(Ae,[{key:"destroy",value:function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}},{key:"_registerListeners",value:function(){var L=this.hls;L.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),L.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.on(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"_unregisterListeners",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),L.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.off(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"onMediaAttached",value:function(L,W){this.media=W.media}},{key:"onMediaDetaching",value:function(){if(!this.id3Track)return;Vn(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={}}},{key:"onManifestLoading",value:function(){this.dateRangeCuesAppended={}}},{key:"createTrack",value:function(L){var W=this.getID3Track(L.textTracks);return W.mode="hidden",W}},{key:"getID3Track",value:function(L){if(!this.media)return;for(var W=0;W<L.length;W++){var H=L[W];if(H.kind==="metadata"&&H.label==="id3")return gn(H,this.media),H}return this.media.addTextTrack("metadata","id3")}},{key:"onFragParsingMetadata",value:function(L,W){if(!this.media)return;var H=this.hls.config,Z=H.enableEmsgMetadataCues,ne=H.enableID3MetadataCues;if(!Z&&!ne)return;var ve=W.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var Te=Oi(),ze=0;ze<ve.length;ze++){var ot=ve[ze].type;if(ot===jr.emsg&&!Z||!ne)continue;var ft=Jt(ve[ze].data);if(ft){var Zt=ve[ze].pts,Cr=Zt+ve[ze].duration;Cr>Gi&&(Cr=Gi);var Sr=Cr-Zt;Sr<=0&&(Cr=Zt+ai);for(var Wr=0;Wr<ft.length;Wr++){var $r=ft[Wr];if(!Xt($r)){this.updateId3CueEnds(Zt,ot);var On=new Te(Zt,Cr,"");On.value=$r,ot&&(On.type=ot),this.id3Track.addCue(On)}}}}}},{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 ze=Te.config,ot=ze.enableEmsgMetadataCues,ft=ze.enableID3MetadataCues;if(ve&&(ot||ft)){var Zt;ne==="audio"?Zt=function(Sr){return Sr.type===jr.audioId3&&ft}:ne==="video"?Zt=function(Sr){return Sr.type===jr.emsg&&ot}:Zt=function(Sr){return Sr.type===jr.audioId3&&ft||Sr.type===jr.emsg&&ot},kr(ve,H,Z,Zt)}}},{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,ze=Object.keys(Te);if(ve)for(var ot=Object.keys(ne).filter(function(Rn){return!ze.includes(Rn)}),ft=function(){var Zn=ot[Zt];Object.keys(ne[Zn].cues).forEach(function(wi){ve.removeCue(ne[Zn].cues[wi])}),delete ne[Zn]},Zt=ot.length;Zt--;)ft();var Cr=Z.fragments[Z.fragments.length-1];if(ze.length===0||!T(Cr==null?void 0:Cr.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var Sr=Cr.programDateTime/1e3-Cr.start,Wr=Oi(),$r=function(){var Zn=ze[On],wi=Te[Zn],ua=ne[Zn],Vi=(ua==null?void 0:ua.cues)||{},Zi=(ua==null?void 0:ua.durationKnown)||!1,ka=rn(wi.startDate,Sr),Ga=Gi,Ba=wi.endDate;if(Ba)Ga=rn(Ba,Sr),Zi=!0;else if(wi.endOnNext&&!Zi){var Sa=ze.reduce(function(ws,Hs){var Ee=Te[Hs];return Ee.class===wi.class&&Ee.id!==Hs&&Ee.startDate>wi.startDate&&ws.push(Ee),ws},[]).sort(function(ws,Hs){return ws.startDate.getTime()-Hs.startDate.getTime()})[0];Sa&&(Ga=rn(Sa.startDate,Sr),Zi=!0)}for(var Go=Object.keys(wi.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=wi.attr[ys];Cs=new Wr(ka,Ga,""),G(ys)&&(js=Cn(js)),Cs.value={key:ys,data:js},Cs.type=jr.dateRange,Cs.id=Zn,H.id3Track.addCue(Cs),Vi[ys]=Cs}}ne[Zn]={cues:Vi,dateRange:wi,durationKnown:Zi}},On=0;On<ze.length;On++)$r()}}]),Ae}(),Gt=function(){function Ae(ee){var L=this;Object(r.a)(this,Ae),this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return L.timeupdate()},this.hls=ee,this.config=ee.config,this.registerListeners()}return Object(a.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,ze=ne.lowLatencyMode,ot=this.hls.userConfig,ft=ze&&H||W;(ot.liveSyncDuration||ot.liveSyncDurationCount||ft===0)&&(ft=ve!==void 0?ve:Te*Z);var Zt=Z,Cr=1;return ft+Math.min(this.stallCount*Cr,Zt)}},{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(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(w.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(w.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(w.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(L,W){this.media=W.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}},{key:"onMediaDetaching",value:function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}},{key:"onManifestLoading",value:function(){this.levelDetails=null,this._latency=null,this.stallCount=0}},{key:"onLevelUpdated",value:function(L,W){var H=W.details;this.levelDetails=H,H.advanced&&this.timeupdate(),!H.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}},{key:"onError",value:function(L,W){var H;if(W.details!==I.BUFFER_STALLED_ERROR)return;this.stallCount++,(H=this.levelDetails)!=null&&H.live&&j.warn("[playback-rate-controller]: Stall detected, adjusting target latency")}},{key:"timeupdate",value:function(){var L=this.media,W=this.levelDetails;if(!L||!W)return;this.currentTime=L.currentTime;var H=this.computeLatency();if(H===null)return;this._latency=H;var Z=this.config,ne=Z.lowLatencyMode,ve=Z.maxLiveSyncPlaybackRate;if(!ne||ve===1)return;var Te=this.targetLatency;if(Te===null)return;var ze=H-Te,ot=Math.min(this.maxLatency,Te+W.targetduration),ft=ze<ot;if(W.live&&ft&&ze>.05&&this.forwardBufferLength>1){var Zt=Math.min(2,Math.max(1,ve)),Cr=Math.round(2/(1+Math.exp(-.75*ze-this.edgeStalled))*20)/20;L.playbackRate=Math.min(Zt,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}(),Ot=["NONE","TYPE-0","TYPE-1",null],Rt={No:"",Yes:"YES",v2:"v2"};function jt(Ae,ee){var L=Ae.canSkipUntil,W=Ae.canSkipDateRanges,H=Ae.endSN,Z=ee!==void 0?ee-H:0;return L&&Z<L?W?Rt.v2:Rt.Yes:Rt.No}var zt=function(){function Ae(ee,L,W){Object(r.a)(this,Ae),this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=ee,this.part=L,this.skip=W}return Object(a.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}(),Lt=function(){function Ae(ee){Object(r.a)(this,Ae),this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[ee.url],this._attrs=[ee.attrs],this.bitrate=ee.bitrate,ee.details&&(this.details=ee.details),this.id=ee.id||0,this.name=ee.name,this.width=ee.width||0,this.height=ee.height||0,this.audioCodec=ee.audioCodec,this.videoCodec=ee.videoCodec,this.unknownCodecs=ee.unknownCodecs,this.codecSet=[ee.videoCodec,ee.audioCodec].filter(function(L){return L}).join(",").replace(/\.[^.,]+/g,"")}return Object(a.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 cr(Ae,ee){var L=ee.startPTS;if(T(L)){var W=0,H;ee.sn>Ae.sn?(W=L-Ae.start,H=Ae):(W=Ae.start-L,H=ee),H.duration!==W&&(H.duration=W)}else if(ee.sn>Ae.sn){var Z=Ae.cc===ee.cc;Z&&Ae.minEndPTS?ee.start=Ae.start+(Ae.minEndPTS-Ae.start):ee.start=Ae.start+Ae.duration}else ee.start=Math.max(Ae.start-ee.duration,0)}function Ar(Ae,ee,L,W,H,Z){var ne=W-L;ne<=0&&(j.warn("Fragment should have a positive duration",ee),W=L+ee.duration,Z=H+ee.duration);var ve=L,Te=W,ze=ee.startPTS,ot=ee.endPTS;if(T(ze)){var ft=Math.abs(ze-L);T(ee.deltaPTS)?ee.deltaPTS=Math.max(ft,ee.deltaPTS):ee.deltaPTS=ft,ve=Math.max(L,ze),L=Math.min(L,ze),H=Math.min(H,ee.startDTS),Te=Math.min(W,ot),W=Math.max(W,ot),Z=Math.max(Z,ee.endDTS)}var Zt=L-ee.start;ee.start!==0&&(ee.start=L),ee.duration=W-ee.start,ee.startPTS=L,ee.maxStartPTS=ve,ee.startDTS=H,ee.endPTS=W,ee.minEndPTS=Te,ee.endDTS=Z;var Cr=ee.sn;if(!Ae||Cr<Ae.startSN||Cr>Ae.endSN)return 0;var Sr,Wr=Cr-Ae.startSN,$r=Ae.fragments;for($r[Wr]=ee,Sr=Wr;Sr>0;Sr--)cr($r[Sr],$r[Sr-1]);for(Sr=Wr;Sr<$r.length-1;Sr++)cr($r[Sr],$r[Sr+1]);return Ae.fragmentHint&&cr($r[$r.length-1],Ae.fragmentHint),Ae.PTSKnown=Ae.alignedSliding=!0,Zt}function br(Ae,ee){for(var L=null,W=Ae.fragments,H=W.length-1;H>=0;H--){var Z=W[H].initSegment;if(Z){L=Z;break}}Ae.fragmentHint&&delete Ae.fragmentHint.endPTS;var ne=0,ve;if(Pn(Ae,ee,function(Sr,Wr){Sr.relurl&&(ne=Sr.cc-Wr.cc),T(Sr.startPTS)&&T(Sr.endPTS)&&(Wr.start=Wr.startPTS=Sr.startPTS,Wr.startDTS=Sr.startDTS,Wr.maxStartPTS=Sr.maxStartPTS,Wr.endPTS=Sr.endPTS,Wr.endDTS=Sr.endDTS,Wr.minEndPTS=Sr.minEndPTS,Wr.duration=Sr.endPTS-Sr.startPTS,Wr.duration&&(ve=Wr),ee.PTSKnown=ee.alignedSliding=!0),Wr.elementaryStreams=Sr.elementaryStreams,Wr.loader=Sr.loader,Wr.stats=Sr.stats,Wr.urlId=Sr.urlId,Sr.initSegment&&(Wr.initSegment=Sr.initSegment,L=Sr.initSegment)}),L){var Te=ee.fragmentHint?ee.fragments.concat(ee.fragmentHint):ee.fragments;Te.forEach(function(Sr){var Wr;(!Sr.initSegment||Sr.initSegment.relurl===((Wr=L)==null?void 0:Wr.relurl))&&(Sr.initSegment=L)})}if(ee.skippedSegments)if(ee.deltaUpdateFailed=ee.fragments.some(function(Sr){return!Sr}),ee.deltaUpdateFailed){j.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var ze=ee.skippedSegments;ze--;)ee.fragments.shift();ee.startSN=ee.fragments[0].sn,ee.startCC=ee.fragments[0].cc}else ee.canSkipDateRanges&&(ee.dateRanges=Pr(Ae.dateRanges,ee.dateRanges,ee.recentlyRemovedDateranges));var ot=ee.fragments;if(ne){j.warn("discontinuity sliding from playlist, take drift into account");for(var ft=0;ft<ot.length;ft++)ot[ft].cc+=ne}ee.skippedSegments&&(ee.startCC=ee.fragments[0].cc),Xn(Ae.partList,ee.partList,function(Sr,Wr){Wr.elementaryStreams=Sr.elementaryStreams,Wr.stats=Sr.stats}),ve?Ar(ee,ve,ve.startPTS,ve.endPTS,ve.startDTS,ve.endDTS):di(Ae,ee),ot.length&&(ee.totalduration=ee.edge-ot[0].start),ee.driftStartTime=Ae.driftStartTime,ee.driftStart=Ae.driftStart;var Zt=ee.advancedDateTime;if(ee.advanced&&Zt){var Cr=ee.edge;ee.driftStart||(ee.driftStartTime=Zt,ee.driftStart=Cr),ee.driftEndTime=Zt,ee.driftEnd=Cr}else ee.driftEndTime=Ae.driftEndTime,ee.driftEnd=Ae.driftEnd,ee.advancedDateTime=Ae.advancedDateTime}function Pr(Ae,ee,L){var W=E({},Ae);return L&&L.forEach(function(H){delete W[H]}),Object.keys(ee).forEach(function(H){var Z=new te(ee[H].attr,W[H]);Z.isValid?W[H]=Z:j.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'.concat(JSON.stringify(ee[H].attr),'"'))}),W}function Xn(Ae,ee,L){if(Ae&&ee)for(var W=0,H=0,Z=Ae.length;H<=Z;H++){var ne=Ae[H],ve=ee[H+W];ne&&ve&&ne.index===ve.index&&ne.fragment.sn===ve.fragment.sn?L(ne,ve):W--}}function Pn(Ae,ee,L){for(var W=ee.skippedSegments,H=Math.max(Ae.startSN,ee.startSN)-ee.startSN,Z=(Ae.fragmentHint?1:0)+(W?ee.endSN:Math.min(Ae.endSN,ee.endSN))-ee.startSN,ne=ee.startSN-Ae.startSN,ve=ee.fragmentHint?ee.fragments.concat(ee.fragmentHint):ee.fragments,Te=Ae.fragmentHint?Ae.fragments.concat(Ae.fragmentHint):Ae.fragments,ze=H;ze<=Z;ze++){var ot=Te[ne+ze],ft=ve[ze];W&&!ft&&ze<W&&(ft=ee.fragments[ze]=ot),ot&&ft&&L(ot,ft)}}function di(Ae,ee){var L=ee.startSN+ee.skippedSegments-Ae.startSN,W=Ae.fragments;if(L<0||L>=W.length)return;An(ee,W[L].start)}function An(Ae,ee){if(ee){for(var L=Ae.fragments,W=Ae.skippedSegments;W<L.length;W++)L[W].start+=ee;Ae.fragmentHint&&(Ae.fragmentHint.start+=ee)}}function Ur(Ae){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Infinity,L=1e3*Ae.targetduration;if(Ae.updated){var W=Ae.fragments,H=4;if(W.length&&L*H>ee){var Z=W[W.length-1].duration*1e3;Z<L&&(L=Z)}}else L/=2;return Math.round(L)}function In(Ae,ee,L){if(!(Ae!=null&&Ae.details))return null;var W=Ae.details,H=W.fragments[ee-W.startSN];return H||(H=W.fragmentHint,H&&H.sn===ee?H:ee<W.startSN&&L&&L.sn===ee?L:null)}function Qn(Ae,ee,L){var W;return Ae!=null&&Ae.details?$n((W=Ae.details)==null?void 0:W.partList,ee,L):null}function $n(Ae,ee,L){if(Ae)for(var W=Ae.length;W--;){var H=Ae[W];if(H.index===L&&H.fragment.sn===ee)return H}return null}function oi(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 Ti(Ae,ee){var L=oi(ee);return Ae.default["".concat(L?"timeout":"error","Retry")]}function ki(Ae,ee){var L=Ae.backoff==="linear"?1:Math.pow(2,ee);return Math.min(L*Ae.retryDelayMs,Ae.maxRetryDelayMs)}function Ri(Ae){return b(b({},Ae),{errorRetry:null,timeoutRetry:null})}function oa(Ae,ee,L,W){return!!Ae&&ee<Ae.maxNumRetry&&(ma(W)||!!L)}function ma(Ae){return Ae===0&&navigator.onLine===!1||!!Ae&&(Ae<400||Ae>499)}var aa={search:function(ee,L){for(var W=0,H=ee.length-1,Z=null,ne=null;W<=H;){Z=(W+H)/2|0,ne=ee[Z];var ve=L(ne);if(ve>0)W=Z+1;else if(ve<0)H=Z-1;else return ne}return null}};function ba(Ae,ee,L){if(ee===null||!Array.isArray(Ae)||!Ae.length||!T(ee))return null;var W=Ae[0].programDateTime;if(ee<(W||0))return null;var H=Ae[Ae.length-1].endProgramDateTime;if(ee>=(H||0))return null;L=L||0;for(var Z=0;Z<Ae.length;++Z){var ne=Ae[Z];if(Ui(ee,L,ne))return ne}return null}function yi(Ae,ee){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,H=null;if(Ae?H=ee[Ae.sn-ee[0].sn+1]||null:L===0&&ee[0].start===0&&(H=ee[0]),H&&kn(L,W,H)===0)return H;var Z=aa.search(ee,kn.bind(null,L,W));return Z&&(Z!==Ae||!H)?Z:H}function kn(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=arguments.length>2?arguments[2]:void 0;if(L.start<=Ae&&L.start+L.duration>Ae)return 0;var W=Math.min(ee,L.duration+(L.deltaPTS?L.deltaPTS:0));return L.start+L.duration-W<=Ae?1:L.start-W>Ae&&L.start?-1:0}function Ui(Ae,ee,L){var W=Math.min(ee,L.duration+(L.deltaPTS?L.deltaPTS:0))*1e3,H=L.endProgramDateTime||0;return H-W>Ae}function ha(Ae,ee){return aa.search(Ae,function(L){return L.cc<ee?1:L.cc>ee?-1:0})}var ta=3e5,ra={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Lr={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4},xr=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=ee,this.log=j.log.bind(j,"[info]:"),this.warn=j.warn.bind(j,"[warning]:"),this.error=j.error.bind(j,"[error]:"),this.registerListeners()}return Object(a.a)(Ae,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.ERROR,this.onError,this),L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;if(!L)return;L.off(w.ERROR,this.onError,this),L.off(w.ERROR,this.onErrorOut,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}},{key:"startLoad",value:function(L){this.playlistError=0}},{key:"stopLoad",value:function(){}},{key:"getVariantLevelIndex",value:function(L){return(L==null?void 0:L.type)===gt.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:Lr.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,ze,ot=W.parent===gt.MAIN?W.level:ne.loadLevel;W.details===I.LEVEL_EMPTY_ERROR&&!!((Te=W.context)!=null&&(ze=Te.levelDetails)!=null&&ze.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 ft=ne.levels[ne.loadLevel];if(ft&&(ve.type===Et.AUDIO_TRACK&&ve.groupId===ft.audioGroupId||ve.type===Et.SUBTITLE_TRACK&&ve.groupId===ft.textGroupId)){W.errorAction=this.getPlaylistRetryOrSwitchAction(W,ne.loadLevel),W.errorAction.action=ra.SendAlternateToPenaltyBox,W.errorAction.flags=Lr.MoveAllAlternatesMatchingHost;return}}return;case I.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{var Zt=ne.levels[ne.loadLevel],Cr=Zt==null?void 0:Zt.attrs["HDCP-LEVEL"];Cr&&(W.errorAction={action:ra.SendAlternateToPenaltyBox,flags:Lr.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:Lr.None};return}if(W.type===O.KEY_SYSTEM_ERROR){var Sr=this.getVariantLevelIndex(W.frag);W.levelRetry=!1,W.errorAction=this.getLevelSwitchAction(W,Sr);return}}},{key:"getPlaylistRetryOrSwitchAction",value:function(L,W){var H,Z=this.hls,ne=Ti(Z.config.playlistLoadPolicy,L),ve=this.playlistError++,Te=(H=L.response)==null?void 0:H.code,ze=oa(ne,ve,oi(L),Te);if(ze)return{action:ra.RetryRequest,flags:Lr.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,ze=Ti(L.details.startsWith("key")?Te:ve,L),ot=W.levels.reduce(function(Wr,$r){return Wr+$r.fragmentError},0);if(Z){var ft;L.details!==I.FRAG_GAP&&Z.fragmentError++;var Zt=(ft=L.response)==null?void 0:ft.code,Cr=oa(ze,ot,oi(L),Zt);if(Cr)return{action:ra.RetryRequest,flags:Lr.None,retryConfig:ze,retryCount:ot}}var Sr=this.getLevelSwitchAction(L,H);return ze&&(Sr.retryConfig=ze,Sr.retryCount=ot),Sr}},{key:"getLevelSwitchAction",value:function(L,W){var H=this.hls;W==null&&(W=H.loadLevel);var Z=this.hls.levels[W];if(Z&&(Z.loadError++,H.autoLevelEnabled)){for(var ne,ve,Te=-1,ze=H.levels,ot=H.loadLevel,ft=H.minAutoLevel,Zt=H.maxAutoLevel,Cr=(ne=L.frag)==null?void 0:ne.type,Sr=(ve=L.context)!=null?ve:{},Wr=Sr.type,$r=Sr.groupId,On=ze.length;On--;){var Rn=(On+ot)%ze.length;if(Rn!==ot&&Rn>=ft&&Rn<=Zt&&ze[Rn].loadError===0){var Zn=ze[Rn];if(L.details===I.FRAG_GAP&&L.frag){var wi=ze[Rn].details;if(wi){var ua=yi(L.frag,wi.fragments,L.frag.start);if(ua!=null&&ua.gap)continue}}else{if(Wr===Et.AUDIO_TRACK&&$r===Zn.audioGroupId||Wr===Et.SUBTITLE_TRACK&&$r===Zn.textGroupId)continue;if(Cr===gt.AUDIO&&Z.audioGroupId===Zn.audioGroupId||Cr===gt.SUBTITLE&&Z.textGroupId===Zn.textGroupId)continue}Te=Rn;break}}if(Te>-1&&H.loadLevel!==Te)return L.levelRetry=!0,this.playlistError=0,{action:ra.SendAlternateToPenaltyBox,flags:Lr.None,nextAutoLevel:Te}}return{action:ra.SendAlternateToPenaltyBox,flags:Lr.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 Lr.None:this.switchLevel(L,ve);break;case Lr.MoveAllAlternatesMatchingHost:H.resolved||(H.resolved=this.redundantFailover(L));break;case Lr.MoveAllAlternatesMatchingHDCP:ne&&(W.maxHdcpLevel=Ot[Ot.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===gt.MAIN?L.level:H.loadLevel,ve=H.levels[ne],Te=ve.url.length,ze=L.frag?L.frag.urlId:ve.urlId;ve.urlId===ze&&(!L.frag||ve.details)&&this.penalizeRendition(ve,L);for(var ot=function(){var Sr=(ze+Zt)%Te,Wr=Z[Sr];if(!Wr||Tn(Wr,L,Z[ze]))return W.warn("Switching to Redundant Stream ".concat(Sr+1,"/").concat(Te,': "').concat(ve.url[Sr],'" after ').concat(L.details)),W.playlistError=0,H.levels.forEach(function($r){$r.urlId=Sr}),H.nextLoadLevel=ne,{v:!0}},ft,Zt=1;Zt<Te;Zt++)if(ft=ot(),ft)return ft.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 Tn(Ae,ee,L){if(performance.now()-Ae.lastErrorPerfMs>ta)return!0;var W=Ae.details;if(ee.details===I.FRAG_GAP&&W&&ee.frag){var H=ee.frag.start,Z=yi(null,W.fragments,H);if(Z&&!Z.gap)return!0}if(L&&Ae.errors.length<L.errors.length){var ne=Ae.errors[Ae.errors.length-1];if(W&&ne.frag&&ee.frag&&Math.abs(ne.frag.start-ee.frag.start)>W.targetduration*3)return!0}return!1}var mr=function(){function Ae(ee,L){Object(r.a)(this,Ae),this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=j.log.bind(j,"".concat(L,":")),this.warn=j.warn.bind(j,"".concat(L,":")),this.hls=ee}return Object(a.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 ze=H[Z],ot=parseInt(ze["LAST-MSN"])||(W==null?void 0:W.lastPartSn),ft=parseInt(ze["LAST-PART"])||(W==null?void 0:W.lastPartIndex);if(this.hls.config.lowLatencyMode){var Zt=Math.min(W.age-W.partTarget,W.targetduration);ft>=0&&Zt>W.partTarget&&(ft+=1)}return new zt(ot,ft>=0?ft:void 0,Rt.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(),ze=ve.loading.first?Math.max(0,Te-ve.loading.first):0;if(ne.advancedDateTime=Date.now()-ze,ne.live||H!=null&&H.live){if(ne.reloaded(H),H&&this.log("live playlist ".concat(L," ").concat(ne.advanced?"REFRESHED "+ne.lastPartSn+"-"+ne.lastPartIndex:ne.updated?"UPDATED":"MISSED")),H&&ne.fragments.length>0&&br(H,ne),!this.canLoad||!ne.live)return;var ot,ft=void 0,Zt=void 0;if(ne.canBlockReload&&ne.endSN&&ne.advanced){var Cr=this.hls.config.lowLatencyMode,Sr=ne.lastPartSn,Wr=ne.endSN,$r=ne.lastPartIndex,On=$r!==-1,Rn=Sr===Wr,Zn=Cr?0:$r;On?(ft=Rn?Wr+1:Sr,Zt=Rn?Zn:$r+1):ft=Wr+1;var wi=ne.age,ua=wi+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(ft+=Zi,Zt!==void 0){var ka=Math.round(Vi%ne.targetduration/ne.partTarget);Zt+=ka}this.log("CDN Tune-in age: ".concat(ne.ageHeader,"s last advanced ").concat(wi.toFixed(2),"s goal: ").concat(Vi," skip sn ").concat(Zi," to part ").concat(Zt))}ne.tuneInGoal=Vi}if(ot=this.getDeliveryDirectives(ne,W.deliveryDirectives,ft,Zt),Cr||!Rn){this.loadPlaylist(ot);return}}else(ne.canBlockReload||ne.canSkipUntil)&&(ot=this.getDeliveryDirectives(ne,W.deliveryDirectives,ft,Zt));var Ga=this.hls.mainForwardBufferInfo,Ba=Ga?Ga.end-Ga.len:0,Sa=(ne.edge-Ba)*1e3,Go=Ur(ne,Sa);ne.updated&&Te>this.requestScheduled+Go&&(this.requestScheduled=ve.loading.start),ft!==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=jt(L,H);return W!=null&&W.skip&&L.deltaUpdateFailed&&(H=W.msn,Z=W.part,ne=Rt.No),new zt(H,Z,ne)}},{key:"checkRetry",value:function(L){var W=this,H=L.details,Z=oi(L),ne=L.errorAction,ve=ne||{},Te=ve.action,ze=ve.retryCount,ot=ze===void 0?0:ze,ft=ve.retryConfig,Zt=!!ne&&!!ft&&(Te===ra.RetryRequest||!ne.resolved&&Te===ra.SendAlternateToPenaltyBox);if(Zt){var Cr;if(this.requestScheduled=-1,ot>=ft.maxNumRetry)return!1;if(Z&&(Cr=L.context)!=null&&Cr.deliveryDirectives)this.warn("Retrying playlist loading ".concat(ot+1,"/").concat(ft.maxNumRetry,' after "').concat(H,'" without delivery-directives')),this.loadPlaylist();else{var Sr=ki(ft,ot);this.timer=self.setTimeout(function(){return W.loadPlaylist()},Sr),this.warn("Retrying playlist loading ".concat(ot+1,"/").concat(ft.maxNumRetry,' after "').concat(H,'" in ').concat(Sr,"ms"))}L.levelRetry=!0,ne.resolved=!0}return Zt}}]),Ae}(),Mr,Xr=function(Ae){Object(s.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H){var Z;return Object(r.a)(this,L),Z=ee.call(this,W,"[level-controller]"),Z._levels=[],Z._firstLevel=-1,Z._startLevel=void 0,Z.currentLevel=null,Z.currentLevelIndex=-1,Z.manualLevelIndex=-1,Z.steering=void 0,Z.onParsedComplete=void 0,Z.steering=H,Z._registerListeners(),Z}return Object(a.a)(L,[{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.on(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.on(w.FRAG_LOADED,this.onFragLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.off(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.off(w.FRAG_LOADED,this.onFragLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),Object(t.a)(Object(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(ze){var ot,ft=ze.attrs;((ot=ze.audioCodec)==null?void 0:ot.indexOf("mp4a.40.34"))!==-1&&(Mr||(Mr=/chrome|firefox/i.test(navigator.userAgent)),Mr&&(ze.audioCodec=void 0));var Zt=ft.AUDIO,Cr=ft.CODECS,Sr=ft["FRAME-RATE"],Wr=ft["PATHWAY-ID"],$r=ft.RESOLUTION,On=ft.SUBTITLES,Rn="".concat(Wr||".","-"),Zn="".concat(Rn).concat(ze.bitrate,"-").concat($r,"-").concat(Sr,"-").concat(Cr);Te=ve[Zn],Te?Te.addFallback(ze):(Te=new Lt(ze),ve[Zn]=Te,ne.push(Te)),un(Te,"audio",Zt),un(Te,"text",On)}),this.filterAndSortMediaOptions(ne,Z)}},{key:"filterAndSortMediaOptions",value:function(H,Z){var ne=this,ve=[],Te=[],ze=!1,ot=!1,ft=!1,Zt=H.filter(function(Zn){var wi=Zn.audioCodec,ua=Zn.videoCodec,Vi=Zn.width,Zi=Zn.height,ka=Zn.unknownCodecs;return ze||(ze=!!(Vi&&Zi)),ot||(ot=!!ua),ft||(ft=!!wi),!(ka!=null&&ka.length)&&(!wi||dn(wi,"audio"))&&(!ua||dn(ua,"video"))});if((ze||ot)&&ft&&(Zt=Zt.filter(function(Zn){var wi=Zn.videoCodec,ua=Zn.width,Vi=Zn.height;return!!wi||!!(ua&&Vi)})),Zt.length===0){Promise.resolve().then(function(){if(ne.hls){var Zn=new Error("no level with compatible codecs found in manifest");ne.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:Z.url,error:Zn,reason:Zn.message})}});return}Z.audioTracks&&(ve=Z.audioTracks.filter(function(Zn){return!Zn.audioCodec||dn(Zn.audioCodec,"audio")}),Fn(ve)),Z.subtitles&&(Te=Z.subtitles,Fn(Te));var Cr=Zt.slice(0);Zt.sort(function(Zn,wi){return Zn.attrs["HDCP-LEVEL"]!==wi.attrs["HDCP-LEVEL"]?(Zn.attrs["HDCP-LEVEL"]||"")>(wi.attrs["HDCP-LEVEL"]||"")?1:-1:Zn.bitrate!==wi.bitrate?Zn.bitrate-wi.bitrate:Zn.attrs["FRAME-RATE"]!==wi.attrs["FRAME-RATE"]?Zn.attrs.decimalFloatingPoint("FRAME-RATE")-wi.attrs.decimalFloatingPoint("FRAME-RATE"):Zn.attrs.SCORE!==wi.attrs.SCORE?Zn.attrs.decimalFloatingPoint("SCORE")-wi.attrs.decimalFloatingPoint("SCORE"):ze&&Zn.height!==wi.height?Zn.height-wi.height:0});var Sr=Cr[0];if(this.steering&&(Zt=this.steering.filterParsedLevels(Zt),Zt.length!==Cr.length)){for(var Wr=0;Wr<Cr.length;Wr++)if(Cr[Wr].pathwayId===Zt[0].pathwayId){Sr=Cr[Wr];break}}this._levels=Zt;for(var $r=0;$r<Zt.length;$r++)if(Zt[$r]===Sr){this._firstLevel=$r,this.log("manifest loaded, ".concat(Zt.length," level(s) found, first bitrate: ").concat(Sr.bitrate));break}var On=ft&&!ot,Rn={levels:Zt,audioTracks:ve,subtitleTracks:Te,sessionData:Z.sessionData,sessionKeys:Z.sessionKeys,firstLevel:this._firstLevel,stats:Z.stats,audio:ft,video:ot,altAudio:!On&&ve.some(function(Zn){return!!Zn.url})};this.hls.trigger(w.MANIFEST_PARSED,Rn),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}},{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(H){var Z=this._levels;if(Z.length===0)return;if(H<0||H>=Z.length){var ne=new Error("invalid level idx"),ve=H<0;if(this.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.LEVEL_SWITCH_ERROR,level:H,fatal:ve,error:ne,reason:ne.message}),ve)return;H=Math.min(H,Z.length-1)}var Te=this.currentLevelIndex,ze=this.currentLevel,ot=ze?ze.attrs["PATHWAY-ID"]:void 0,ft=Z[H],Zt=ft.attrs["PATHWAY-ID"];if(this.currentLevelIndex=H,this.currentLevel=ft,Te===H&&ft.details&&ze&&ot===Zt)return;this.log("Switching to level ".concat(H).concat(Zt?" with Pathway "+Zt:""," from level ").concat(Te).concat(ot?" with Pathway "+ot:""));var Cr=E({},ft,{level:H,maxBitrate:ft.maxBitrate,attrs:ft.attrs,uri:ft.uri,urlId:ft.urlId});delete Cr._attrs,delete Cr._urlId,this.hls.trigger(w.LEVEL_SWITCHING,Cr);var Sr=ft.details;if(!Sr||Sr.live){var Wr=this.switchParams(ft.uri,ze==null?void 0:ze.details);this.loadPlaylist(Wr)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(H){this.manualLevelIndex=H,this._startLevel===void 0&&(this._startLevel=H),H!==-1&&(this.level=H)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(H){this._firstLevel=H}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var H=this.hls.config.startLevel;return H!==void 0?H:this._firstLevel}else return this._startLevel},set:function(H){this._startLevel=H}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===Et.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===gt.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,ze=this._levels[ve];if(!ze){var ot;this.warn("Invalid level index ".concat(ve)),(ot=Z.deliveryDirectives)!=null&&ot.skip&&(Te.deltaUpdateFailed=!0);return}ve===this.currentLevelIndex?(ze.fragmentError===0&&(ze.loadError=0),this.playlistLoaded(ve,Z,ze.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,ze=0;ze<ne.audioGroupIds.length;ze++)if(ne.audioGroupIds[ze]===ve){Te=ze;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 ze=ne.attrs["PATHWAY-ID"];this.log("Loading level index ".concat(Z).concat((H==null?void 0:H.msn)!==void 0?" at sn "+H.msn+" part "+H.part:""," with").concat(ze?" Pathway "+ze:""," URI ").concat(ve+1,"/").concat(ne.url.length," ").concat(Te)),this.clearTimer(),this.hls.trigger(w.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,ft){return ft!==Z},Te=this._levels.filter(function(ze,ot){return ot!==H?!0:ze.url.length>1&&Z!==void 0?(ze.url=ze.url.filter(ve),ze.audioGroupIds&&(ze.audioGroupIds=ze.audioGroupIds.filter(ve)),ze.textGroupIds&&(ze.textGroupIds=ze.textGroupIds.filter(ve)),ze.urlId=0,!0):(ne.steering&&ne.steering.removeLevel(ze),!1)});this.hls.trigger(w.LEVELS_UPDATED,{levels:Te})}},{key:"onLevelsUpdated",value:function(H,Z){var ne=Z.levels;ne.forEach(function(ve,Te){var ze=ve.details;ze!=null&&ze.fragments&&ze.fragments.forEach(function(ot){ot.level=Te})}),this._levels=ne}}]),L}(mr);function un(Ae,ee,L){if(!L)return;ee==="audio"?(Ae.audioGroupIds||(Ae.audioGroupIds=[]),Ae.audioGroupIds[Ae.url.length-1]=L):ee==="text"&&(Ae.textGroupIds||(Ae.textGroupIds=[]),Ae.textGroupIds[Ae.url.length-1]=L)}function Fn(Ae){var ee={};Ae.forEach(function(L){var W=L.groupId||"";L.id=ee[W]=ee[W]||0,ee[W]++})}var _t={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"},Or=function(){function Ae(ee){Object(r.a)(this,Ae),this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=ee,this._registerListeners()}return Object(a.a)(Ae,[{key:"_registerListeners",value:function(){var L=this.hls;L.on(w.BUFFER_APPENDED,this.onBufferAppended,this),L.on(w.FRAG_BUFFERED,this.onFragBuffered,this),L.on(w.FRAG_LOADED,this.onFragLoaded,this)}},{key:"_unregisterListeners",value:function(){var L=this.hls;L.off(w.BUFFER_APPENDED,this.onBufferAppended,this),L.off(w.FRAG_BUFFERED,this.onFragBuffered,this),L.off(w.FRAG_LOADED,this.onFragLoaded,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}},{key:"getAppendedFrag",value:function(L,W){var H=this.activePartLists[W];if(H)for(var Z=H.length;Z--;){var ne=H[Z];if(!ne)break;var ve=ne.end;if(ne.start<=L&&ve!==null&&L<=ve)return ne}return this.getBufferedFrag(L,W)}},{key:"getBufferedFrag",value:function(L,W){for(var H=this.fragments,Z=Object.keys(H),ne=Z.length;ne--;){var ve=H[Z[ne]];if((ve==null?void 0:ve.body.type)===W&&ve.buffered){var 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 ze=ne.fragments[Te];if(!ze)return;if(ve>=ze.body.sn)return;if(!ze.buffered&&!ze.loaded){ze.body.type===H&&ne.removeFragment(ze.body);return}var ot=ze.range[L];if(!ot)return;ot.time.some(function(ft){var Zt=!ne.isTimeBuffered(ft.startPTS,ft.endPTS,W);return Zt&&ne.removeFragment(ze.body),Zt})})}},{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=tn(Z),Te=this.fragments[ve];if(!Te||Te.buffered&&Z.gap)return;var ze=!Z.relurl;if(Object.keys(H).forEach(function(ft){var Zt=Z.elementaryStreams[ft];if(!Zt)return;var Cr=H[ft],Sr=ze||Zt.partial===!0;Te.range[ft]=W.getBufferedTimes(Z,ne,Sr,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),Nr(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=tn(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,ze=L.minEndPTS||Te,ot=L.maxStartPTS||ve,ft=0;ft<Z.length;ft++){var Zt=Z.start(ft)-this.bufferPadding,Cr=Z.end(ft)+this.bufferPadding;if(ot>=Zt&&ze<=Cr){ne.time.push({startPTS:Math.max(ve,Z.start(ft)),endPTS:Math.min(Te,Z.end(ft))});break}else if(ve<Cr&&Te>Zt)ne.partial=!0,ne.time.push({startPTS:Math.max(ve,Z.start(ft)),endPTS:Math.min(Te,Z.end(ft))});else if(Te<=Zt)break}return ne}},{key:"getPartialFragment",value:function(L){var W=null,H,Z,ne,ve=0,Te=this.bufferPadding,ze=this.fragments;return Object.keys(ze).forEach(function(ot){var ft=ze[ot];if(!ft)return;Nr(ft)&&(Z=ft.body.start-Te,ne=ft.body.end+Te,L>=Z&&L<=ne&&(H=Math.min(L-Z,ne-L),ve<=H&&(W=ft.body,ve=H)))}),W}},{key:"isEndListAppended",value:function(L){var W=this.endListFragments[L];return W!==void 0&&(W.buffered||Nr(W))}},{key:"getState",value:function(L){var W=tn(L),H=this.fragments[W];return H?H.buffered?Nr(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=tn(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 ze=this.activePartLists[Te];ze||(this.activePartLists[Te]=ze=[]),ze.push(ne)}this.timeRanges=ve,Object.keys(ve).forEach(function(ot){var ft=ve[ot];H.detectEvictedFragments(ot,ft,Te,ne)})}},{key:"onFragBuffered",value:function(L,W){this.detectPartialFragments(W)}},{key:"hasFragment",value:function(L){var W=tn(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 ze=ve.fragments[Te];if(!ze)return;var ot=ze.body;if(ot.type!==H||Z&&!ot.gap)return;ot.start<W&&ot.end>L&&(ze.buffered||ne)&&ve.removeFragment(ot)})}},{key:"removeFragment",value:function(L){var W=tn(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 Nr(Ae){var ee,L,W;return Ae.buffered&&(Ae.body.gap||((ee=Ae.range.video)==null?void 0:ee.partial)||((L=Ae.range.audio)==null?void 0:L.partial)||((W=Ae.range.audiovideo)==null?void 0:W.partial))}function tn(Ae){return"".concat(Ae.type,"_").concat(Ae.level,"_").concat(Ae.urlId,"_").concat(Ae.sn)}var xn=Math.pow(2,17),Ln=function(){function Ae(ee){Object(r.a)(this,Ae),this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=ee}return Object(a.a)(Ae,[{key:"destroy",value:function(){this.loader&&(this.loader.destroy(),this.loader=null)}},{key:"abort",value:function(){this.loader&&this.loader.abort()}},{key:"load",value:function(L,W){var H=this,Z=L.url;if(!Z)return Promise.reject(new Wn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,error:new Error("Fragment does not have a ".concat(Z?"part list":"url")),networkDetails:null}));this.abort();var ne=this.config,ve=ne.fLoader,Te=ne.loader;return new Promise(function(ze,ot){if(H.loader&&H.loader.destroy(),L.gap)if(L.tagList.some(function(Wr){return Wr[0]==="GAP"})){ot(qn(L));return}else L.gap=!1;var ft=H.loader=L.loader=ve?new ve(ne):new Te(ne),Zt=Sn(L),Cr=Ri(ne.fragLoadPolicy.default),Sr={loadPolicy:Cr,timeout:Cr.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:L.sn==="initSegment"?Infinity:xn};L.stats=ft.stats,ft.load(Zt,Sr,{onSuccess:function($r,On,Rn,Zn){H.resetLoader(L,ft);var wi=$r.data;Rn.resetIV&&L.decryptdata&&(L.decryptdata.iv=new Uint8Array(wi.slice(0,16)),wi=wi.slice(16)),ze({frag:L,part:null,payload:wi,networkDetails:Zn})},onError:function($r,On,Rn,Zn){H.resetLoader(L,ft),ot(new Wn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,response:b({url:Z,data:void 0},$r),error:new Error("HTTP Error ".concat($r.code," ").concat($r.text)),networkDetails:Rn,stats:Zn}))},onAbort:function($r,On,Rn){H.resetLoader(L,ft),ot(new Wn({type:O.NETWORK_ERROR,details:I.INTERNAL_ABORTED,fatal:!1,frag:L,error:new Error("Aborted"),networkDetails:Rn,stats:$r}))},onTimeout:function($r,On,Rn){H.resetLoader(L,ft),ot(new Wn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_TIMEOUT,fatal:!1,frag:L,error:new Error("Timeout after ".concat(Sr.timeout,"ms")),networkDetails:Rn,stats:$r}))},onProgress:function($r,On,Rn,Zn){W&&W({frag:L,part:null,payload:Rn,networkDetails:Zn})}})})}},{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(ze,ot){if(Z.loader&&Z.loader.destroy(),L.gap||W.gap){ot(qn(L,W));return}var ft=Z.loader=L.loader=ve?new ve(ne):new Te(ne),Zt=Sn(L,W),Cr=Ri(ne.fragLoadPolicy.default),Sr={loadPolicy:Cr,timeout:Cr.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:xn};W.stats=ft.stats,ft.load(Zt,Sr,{onSuccess:function($r,On,Rn,Zn){Z.resetLoader(L,ft),Z.updateStatsFromPart(L,W);var wi={frag:L,part:W,payload:$r.data,networkDetails:Zn};H(wi),ze(wi)},onError:function($r,On,Rn,Zn){Z.resetLoader(L,ft),ot(new Wn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,part:W,response:b({url:Zt.url,data:void 0},$r),error:new Error("HTTP Error ".concat($r.code," ").concat($r.text)),networkDetails:Rn,stats:Zn}))},onAbort:function($r,On,Rn){L.stats.aborted=W.stats.aborted,Z.resetLoader(L,ft),ot(new Wn({type:O.NETWORK_ERROR,details:I.INTERNAL_ABORTED,fatal:!1,frag:L,part:W,error:new Error("Aborted"),networkDetails:Rn,stats:$r}))},onTimeout:function($r,On,Rn){Z.resetLoader(L,ft),ot(new Wn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_TIMEOUT,fatal:!1,frag:L,part:W,error:new Error("Timeout after ".concat(Sr.timeout,"ms")),networkDetails:Rn,stats:$r}))}})})}},{key:"updateStatsFromPart",value:function(L,W){var H=L.stats,Z=W.stats,ne=Z.total;if(H.loaded+=Z.loaded,ne){var ve=Math.round(L.duration/W.duration),Te=Math.min(Math.round(H.loaded/ne),ve),ze=ve-Te,ot=ze*Math.round(H.loaded/Te);H.total=H.loaded+ot}else H.total=Math.max(H.loaded,H.total);var ft=H.loading,Zt=Z.loading;ft.start?ft.first+=Zt.first-Zt.start:(ft.start=Zt.start,ft.first=Zt.first),ft.end=Zt.end}},{key:"resetLoader",value:function(L,W){L.loader=null,this.loader===W&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),W.destroy()}}]),Ae}();function Sn(Ae){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,L=ee||Ae,W={frag:Ae,part:ee,responseType:"arraybuffer",url:L.url,headers:{},rangeStart:0,rangeEnd:0},H=L.byteRangeStartOffset,Z=L.byteRangeEndOffset;if(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 ze=Z-H;ze%16&&(Te=Z+(16-ze%16)),H!==0&&(W.resetIV=!0,ve=H-16)}W.rangeStart=ve,W.rangeEnd=Te}return W}function qn(Ae,ee){var L=new Error("GAP ".concat(Ae.gap?"tag":"attribute"," found")),W={type:O.MEDIA_ERROR,details:I.FRAG_GAP,fatal:!1,frag:Ae,error:L,networkDetails:null};return ee&&(W.part=ee),(ee||Ae).stats.aborted=!0,new Wn(W)}var Wn=function(Ae){Object(s.a)(L,Ae);var ee=Object(e.a)(L);function L(W){var H;return Object(r.a)(this,L),H=ee.call(this,W.error.message),H.data=void 0,H.data=W,H}return Object(a.a)(L)}(i(Error)),pi=function(){function Ae(ee){Object(r.a)(this,Ae),this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=ee}return Object(a.a)(Ae,[{key:"abort",value:function(L){for(var W in this.keyUriToKeyInfo){var H=this.keyUriToKeyInfo[W].loader;if(H){if(L&&L!==H.context.frag.type)return;H.abort()}}}},{key:"detach",value:function(){for(var L in this.keyUriToKeyInfo){var W=this.keyUriToKeyInfo[L];(W.mediaKeySessionContext||W.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[L]}}},{key:"destroy",value:function(){this.detach();for(var L in this.keyUriToKeyInfo){var W=this.keyUriToKeyInfo[L].loader;W&&W.destroy()}this.keyUriToKeyInfo={}}},{key:"createKeyLoadError",value:function(L){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I.KEY_LOAD_ERROR,H=arguments.length>2?arguments[2]:void 0,Z=arguments.length>3?arguments[3]:void 0,ne=arguments.length>4?arguments[4]:void 0;return new Wn({type:O.NETWORK_ERROR,details:W,fatal:!1,frag:L,response:ne,error:H,networkDetails:Z})}},{key:"loadClear",value:function(L,W){var H=this;if(this.emeController&&this.config.emeEnabled)for(var Z=L.sn,ne=L.cc,ve=function(){var ot=W[Te];if(ne<=ot.cc&&(Z==="initSegment"||ot.sn==="initSegment"||Z<ot.sn))return H.emeController.selectKeySystemFormat(ot).then(function(ft){ot.setKeyFormat(ft)}),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 ze=this.keyUriToKeyInfo[Te];if((H=ze)!=null&&H.decryptdata.key)return ne.key=ze.decryptdata.key,Promise.resolve({frag:L,keyInfo:ze});if((Z=ze)!=null&&Z.keyLoadPromise){var ot;switch((ot=ze.mediaKeySessionContext)==null?void 0:ot.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return ze.keyLoadPromise.then(function(ft){return ne.key=ft.keyInfo.decryptdata.key,{frag:L,keyInfo:ze}})}}ze=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(ze,L):this.loadKeyEME(ze,L);case"AES-128":return this.loadKeyHTTP(ze,L);default:return Promise.reject(this.createKeyLoadError(L,I.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'.concat(ne.method,'"'))))}}},{key:"loadKeyEME",value:function(L,W){var H={frag:W,keyInfo:L};if(this.emeController&&this.config.emeEnabled){var Z=this.emeController.loadKey(H);if(Z)return(L.keyLoadPromise=Z.then(function(ne){return L.mediaKeySessionContext=ne,H})).catch(function(ne){throw L.keyLoadPromise=null,ne})}return Promise.resolve(H)}},{key:"loadKeyHTTP",value:function(L,W){var H=this,Z=this.config,ne=Z.loader,ve=new ne(Z);return W.keyLoader=L.loader=ve,L.keyLoadPromise=new Promise(function(Te,ze){var ot={keyInfo:L,frag:W,responseType:"arraybuffer",url:L.decryptdata.uri},ft=Z.keyLoadPolicy.default,Zt={loadPolicy:ft,timeout:ft.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Cr={onSuccess:function(Wr,$r,On,Rn){var Zn=On.frag,wi=On.keyInfo,ua=On.url;if(!Zn.decryptdata||wi!==H.keyUriToKeyInfo[ua])return ze(H.createKeyLoadError(Zn,I.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Rn));wi.decryptdata.key=Zn.decryptdata.key=new Uint8Array(Wr.data),Zn.keyLoader=null,wi.loader=null,Te({frag:Zn,keyInfo:wi})},onError:function(Wr,$r,On,Rn){H.resetLoader($r),ze(H.createKeyLoadError(W,I.KEY_LOAD_ERROR,new Error("HTTP Error ".concat(Wr.code," loading key ").concat(Wr.text)),On,b({url:ot.url,data:void 0},Wr)))},onTimeout:function(Wr,$r,On){H.resetLoader($r),ze(H.createKeyLoadError(W,I.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),On))},onAbort:function(Wr,$r,On){H.resetLoader($r),ze(H.createKeyLoadError(W,I.INTERNAL_ABORTED,new Error("key loading aborted"),On))}};ve.load(ot,Zt,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}(),Pi=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(a.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}(),bi={length:0,start:function(){return 0},end:function(){return 0}},Ii=function(){function Ae(){Object(r.a)(this,Ae)}return Object(a.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($r,On){var Rn=$r.start-On.start;return Rn||On.end-$r.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 ze=0,ot,ft=W,Zt=W,Cr=0;Cr<Z.length;Cr++){var Sr=Z[Cr].start,Wr=Z[Cr].end;if(W+H>=Sr&&W<Wr)ft=Sr,Zt=Wr,ze=Zt-W;else if(W+H<Sr){ot=Sr;break}}return{len:ze,start:ft||0,end:Zt||0,nextStart:ot}}},{key:"getBuffered",value:function(L){try{return L.buffered}catch(W){return j.log("failed to get media.buffered",W),bi}}}]),Ae}(),zi=Object(a.a)(function Ae(ee,L,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,ne=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;Object(r.a)(this,Ae),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=ea(),this.buffering={audio:ea(),video:ea(),audiovideo:ea()},this.level=ee,this.sn=L,this.id=W,this.size=H,this.part=Z,this.partial=ne});function ea(){return{start:0,executeStart:0,executeEnd:0,end:0}}function Xi(Ae,ee){for(var L=null,W=0,H=Ae.length;W<H;W++){var Z=Ae[W];if(Z&&Z.cc===ee){L=Z;break}}return L}function Wi(Ae,ee,L){return!!(ee.details&&(L.endCC>L.startCC||Ae&&Ae.cc<L.startCC))}function ji(Ae,ee){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,W=Ae.fragments,H=ee.fragments;if(!H.length||!W.length){j.log("No fragments to align");return}var Z=Xi(W,H[0].cc);if(!Z||Z&&!Z.startPTS){j.log("No frag in previous level to align on");return}return Z}function Ji(Ae,ee){if(Ae){var L=Ae.start+ee;Ae.start=Ae.startPTS=L,Ae.endPTS=L+Ae.duration}}function ca(Ae,ee){for(var L=ee.fragments,W=0,H=L.length;W<H;W++)Ji(L[W],Ae);ee.fragmentHint&&Ji(ee.fragmentHint,Ae),ee.alignedSliding=!0}function Ca(Ae,ee,L){if(!ee)return;na(Ae,L,ee),!L.alignedSliding&&ee.details&&Pa(L,ee.details),!L.alignedSliding&&ee.details&&!L.skippedSegments&&di(ee.details,L)}function na(Ae,ee,L){if(Wi(Ae,L,ee)){var W=ji(L.details,ee);W&&T(W.start)&&(j.log("Adjusting PTS using last level due to CC increase within current level ".concat(ee.url)),ca(W.start,ee))}}function Pa(Ae,ee){if(!ee.fragments.length||!Ae.hasProgramDateTime||!ee.hasProgramDateTime)return;var L=ee.fragments[0].programDateTime,W=Ae.fragments[0].programDateTime,H=(W-L)/1e3+ee.fragments[0].start;H&&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,ee){if(!Ae.hasProgramDateTime||!ee.hasProgramDateTime)return;var L=Ae.fragments,W=ee.fragments;if(!L.length||!W.length)return;var H=Math.round(W.length/2)-1,Z=W[H],ne=Xi(L,Z.cc)||L[Math.round(L.length/2)-1],ve=Z.programDateTime,Te=ne.programDateTime;if(ve===null||Te===null)return;var ze=(Te-ve)/1e3-(ne.start-Z.start);ca(ze,Ae)}var va=function(){function Ae(ee,L){Object(r.a)(this,Ae),this.subtle=void 0,this.aesIV=void 0,this.subtle=ee,this.aesIV=L}return Object(a.a)(Ae,[{key:"decrypt",value:function(L,W){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},W,L)}}]),Ae}(),ga=function(){function Ae(ee,L){Object(r.a)(this,Ae),this.subtle=void 0,this.key=void 0,this.subtle=ee,this.key=L}return Object(a.a)(Ae,[{key:"expandKey",value:function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}]),Ae}();function Oa(Ae){var ee=Ae.byteLength,L=ee&&new DataView(Ae.buffer).getUint8(ee-1);return L?ke(Ae,0,ee-L):Ae}var Aa=function(){function Ae(){Object(r.a)(this,Ae),this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}return Object(a.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],ze=this.invSubMix,ot=ze[0],ft=ze[1],Zt=ze[2],Cr=ze[3],Sr=new Uint32Array(256),Wr=0,$r=0,On=0;for(On=0;On<256;On++)On<128?Sr[On]=On<<1:Sr[On]=On<<1^283;for(On=0;On<256;On++){var Rn=$r^$r<<1^$r<<2^$r<<3^$r<<4;Rn=Rn>>>8^Rn&255^99,L[Wr]=Rn,W[Rn]=Wr;var Zn=Sr[Wr],wi=Sr[Zn],ua=Sr[wi],Vi=Sr[Rn]*257^Rn*16843008;Z[Wr]=Vi<<24|Vi>>>8,ne[Wr]=Vi<<16|Vi>>>16,ve[Wr]=Vi<<8|Vi>>>24,Te[Wr]=Vi,Vi=ua*16843009^wi*65537^Zn*257^Wr*16843008,ot[Rn]=Vi<<24|Vi>>>8,ft[Rn]=Vi<<16|Vi>>>16,Zt[Rn]=Vi<<8|Vi>>>24,Cr[Rn]=Vi,Wr?(Wr=Zn^Sr[Sr[Sr[ua^Zn]]],$r^=Sr[Sr[$r]]):Wr=$r=1}}},{key:"expandKey",value:function(L){for(var W=this.uint8ArrayToUint32Array_(L),H=!0,Z=0;Z<W.length&&H;)H=W[Z]===this.key[Z],Z++;if(H)return;this.key=W;var ne=this.keySize=W.length;if(ne!==4&&ne!==6&&ne!==8)throw new Error("Invalid aes key size="+ne);var ve=this.ksRows=(ne+6+1)*4,Te,ze,ot=this.keySchedule=new Uint32Array(ve),ft=this.invKeySchedule=new Uint32Array(ve),Zt=this.sBox,Cr=this.rcon,Sr=this.invSubMix,Wr=Sr[0],$r=Sr[1],On=Sr[2],Rn=Sr[3],Zn,wi;for(Te=0;Te<ve;Te++){if(Te<ne){Zn=ot[Te]=W[Te];continue}wi=Zn,Te%ne===0?(wi=wi<<8|wi>>>24,wi=Zt[wi>>>24]<<24|Zt[wi>>>16&255]<<16|Zt[wi>>>8&255]<<8|Zt[wi&255],wi^=Cr[Te/ne|0]<<24):ne>6&&Te%ne===4&&(wi=Zt[wi>>>24]<<24|Zt[wi>>>16&255]<<16|Zt[wi>>>8&255]<<8|Zt[wi&255]),ot[Te]=Zn=(ot[Te-ne]^wi)>>>0}for(ze=0;ze<ve;ze++)Te=ve-ze,ze&3?wi=ot[Te]:wi=ot[Te-4],ze<4||Te<=4?ft[ze]=wi:ft[ze]=Wr[Zt[wi>>>24]]^$r[Zt[wi>>>16&255]]^On[Zt[wi>>>8&255]]^Rn[Zt[wi&255]],ft[ze]=ft[ze]>>>0}},{key:"networkToHostOrderSwap",value:function(L){return L<<24|(L&65280)<<8|(L&16711680)>>8|L>>>24}},{key:"decrypt",value:function(L,W,H){for(var Z=this.keySize+6,ne=this.invKeySchedule,ve=this.invSBox,Te=this.invSubMix,ze=Te[0],ot=Te[1],ft=Te[2],Zt=Te[3],Cr=this.uint8ArrayToUint32Array_(H),Sr=Cr[0],Wr=Cr[1],$r=Cr[2],On=Cr[3],Rn=new Int32Array(L),Zn=new Int32Array(Rn.length),wi,ua,Vi,Zi,ka,Ga,Ba,Sa,Go,bs,ys,Cs,js,ws,Hs=this.networkToHostOrderSwap;W<Rn.length;){for(Go=Hs(Rn[W]),bs=Hs(Rn[W+1]),ys=Hs(Rn[W+2]),Cs=Hs(Rn[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++)wi=ze[ka>>>24]^ot[Ga>>16&255]^ft[Ba>>8&255]^Zt[Sa&255]^ne[js],ua=ze[Ga>>>24]^ot[Ba>>16&255]^ft[Sa>>8&255]^Zt[ka&255]^ne[js+1],Vi=ze[Ba>>>24]^ot[Sa>>16&255]^ft[ka>>8&255]^Zt[Ga&255]^ne[js+2],Zi=ze[Sa>>>24]^ot[ka>>16&255]^ft[Ga>>8&255]^Zt[Ba&255]^ne[js+3],ka=wi,Ga=ua,Ba=Vi,Sa=Zi,js=js+4;wi=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],Zn[W]=Hs(wi^Sr),Zn[W+1]=Hs(Zi^Wr),Zn[W+2]=Hs(Vi^$r),Zn[W+3]=Hs(ua^On),Sr=Go,Wr=bs,$r=ys,On=Cs,W=W+4}return Zn.buffer}}]),Ae}(),Xa=16,_a=function(){function Ae(ee){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=L.removePKCS7Padding,H=W===void 0?!0:W;if(Object(r.a)(this,Ae),this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=ee.enableSoftwareAES,this.removePKCS7Padding=H,H)try{var Z=self.crypto;Z&&(this.subtle=Z.subtle||Z.webkitSubtle)}catch(ne){}this.subtle===null&&(this.useSoftware=!0)}return Object(a.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=Ct(ve,L),this.remainderData=null);var Te=this.getValidChunk(L);if(!Te.length)return null;Z&&(H=Z);var ze=this.softwareDecrypter;ze||(ze=this.softwareDecrypter=new Aa),ze.expandKey(W);var ot=ne;return this.currentResult=ze.decrypt(Te.buffer,0,H),this.currentIV=ke(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=ke(L,0,H),this.remainderData=ke(L,H)),W}},{key:"logOnce",value:function(L){if(!this.logEnabled)return;j.log("[decrypter]: ".concat(L)),this.logEnabled=!1}}]),Ae}(),Va={toString:function(ee){for(var L="",W=ee.length,H=0;H<W;H++)L+="[".concat(ee.start(H).toFixed(3),"-").concat(ee.end(H).toFixed(3),"]");return L}},Fi={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(s.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z,ne,ve){var Te;return Object(r.a)(this,L),Te=ee.call(this),Te.hls=void 0,Te.fragPrevious=null,Te.fragCurrent=null,Te.fragmentTracker=void 0,Te.transmuxer=null,Te._state=Fi.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 Ln(W.config),Te.keyLoader=Z,Te.fragmentTracker=H,Te.config=W.config,Te.decrypter=new _a(W.config),W.on(w.MANIFEST_LOADED,Te.onManifestLoaded,Object(v.a)(Te)),Te}return Object(a.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=Fi.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=Ii.isBuffered(this.media,ve.start+ve.duration/2);return Te}var ze=Z.fragments[Z.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(ze)}},{key:"getLevelDetails",value:function(){if(this.levels&&this.levelLastLoaded!==null){var H;return(H=this.levels[this.levelLastLoaded])==null?void 0:H.details}}},{key:"onMediaAttached",value:function(H,Z){var ne=this.media=this.mediaBuffer=Z.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),ne.addEventListener("seeking",this.onvseeking),ne.addEventListener("ended",this.onvended);var ve=this.config;this.levels&&ve.autoStartLoad&&this.state===Fi.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,ze=ne?ne.currentTime:0,ot=Ii.bufferInfo(ve||ne,ze,H.maxBufferHole);if(this.log("media seeking to ".concat(T(ze)?ze.toFixed(3):ze,", state: ").concat(Te)),this.state===Fi.ENDED)this.resetLoadingState();else if(Z){var ft=H.maxFragLookUpTolerance,Zt=Z.start-ft,Cr=Z.start+Z.duration+ft;if(!ot.len||Cr<ot.start||Zt>ot.end){var Sr=ze>Cr;(ze<Zt||Sr)&&(Sr&&Z.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),Z.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}ne&&(this.fragmentTracker.removeFragmentsInRange(ze,Infinity,this.playlistType,!0),this.lastCurrentTime=ze),!this.loadedmetadata&&!ot.len&&(this.nextLoadPosition=this.startPosition=ze),this.tickImmediate()}},{key:"onMediaEnded",value:function(){this.startPosition=this.lastCurrentTime=0}},{key:"onManifestLoaded",value:function(H,Z){this.startTimeOffset=Z.startTimeOffset,this.initPTS=[]}},{key:"onHandlerDestroying",value:function(){this.stopLoad(),Object(t.a)(Object(m.a)(L.prototype),"onHandlerDestroying",this).call(this)}},{key:"onHandlerDestroyed",value:function(){this.state=Fi.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(ze){if(!ze)return;var ot=ve.state;if(ve.fragContextChanged(H)){(ot===Fi.FRAG_LOADING||!ve.fragCurrent&&ot===Fi.PARSING)&&(ve.fragmentTracker.removeFragment(H),ve.state=Fi.IDLE);return}"payload"in ze&&(ve.log("Loaded fragment ".concat(H.sn," of level ").concat(H.level)),ve.hls.trigger(w.FRAG_LOADED,ze)),ve._handleFragmentLoadComplete(ze)}).catch(function(ze){if(ve.state===Fi.STOPPED||ve.state===Fi.ERROR)return;ve.warn(ze),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,ze=this.getFwdBufferInfo(this.mediaBuffer,Te),ot=Math.max(H.duration,ze?ze.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(w.BUFFER_FLUSHING,ve)}},{key:"_loadInitSegment",value:function(H,Z){var ne=this;this._doFragLoad(H,Z).then(function(ve){if(!ve||ne.fragContextChanged(H)||!ne.levels)throw new Error("init load aborted");return ve}).then(function(ve){var Te=ne.hls,ze=ve.payload,ot=H.decryptdata;if(ze&&ze.byteLength>0&&ot&&ot.key&&ot.iv&&ot.method==="AES-128"){var ft=self.performance.now();return ne.decrypter.decrypt(new Uint8Array(ze),ot.key.buffer,ot.iv.buffer).catch(function(Zt){throw Te.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_DECRYPT_ERROR,fatal:!1,error:Zt,reason:Zt.message,frag:H}),Zt}).then(function(Zt){var Cr=self.performance.now();return Te.trigger(w.FRAG_DECRYPTED,{frag:H,payload:Zt,stats:{tstart:ft,tdecrypt:Cr}}),ve.payload=Zt,ve})}return ve}).then(function(ve){var Te=ne.fragCurrent,ze=ne.hls,ot=ne.levels;if(!ot)throw new Error("init load aborted, missing levels");var ft=H.stats;ne.state=Fi.IDLE,Z.fragmentError=0,H.data=new Uint8Array(ve.payload),ft.parsing.start=ft.buffering.start=self.performance.now(),ft.parsing.end=ft.buffering.end=self.performance.now(),ve.frag===Te&&ze.trigger(w.FRAG_BUFFERED,{stats:ft,frag:Te,part:null,id:H.type}),ne.tick()}).catch(function(ve){if(ne.state===Fi.STOPPED||ne.state===Fi.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,ze,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===gt.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(Ii.getBuffered(ot)):"(detached)",")")),this.state=Fi.IDLE,!ot)return;!this.loadedmetadata&&H.type==gt.MAIN&&ot.buffered.length&&((Te=this.fragCurrent)==null?void 0:Te.sn)===((ze=this.fragPrevious)==null?void 0:ze.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick()}},{key:"seekToStartPos",value:function(){}},{key:"_handleFragmentLoadComplete",value:function(H){var Z=this.transmuxer;if(!Z)return;var ne=H.frag,ve=H.part,Te=H.partsLoaded,ze=!Te||Te.length===0||Te.some(function(ft){return!ft}),ot=new zi(ne.level,ne.sn,ne.stats.chunkCount+1,0,ve?ve.index:-1,!ze);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,ze,ot=Z==null?void 0:Z.details;if(!this.levels||!ot)throw new Error("frag load aborted, missing level".concat(ot?"":" detail","s"));var ft=null;if(H.encrypted&&!((ze=H.decryptdata)!=null&&ze.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=Fi.KEY_LOADING,this.fragCurrent=H,ft=this.keyLoader.load(H).then(function(Rn){if(!ne.fragContextChanged(Rn.frag))return ne.hls.trigger(w.KEY_LOADED,Rn),ne.state===Fi.KEY_LOADING&&(ne.state=Fi.IDLE),Rn}),this.hls.trigger(w.KEY_LOADING,{frag:H}),this.fragCurrent===null&&(ft=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 Zt=ot.partList;if(Zt&&Te){ve>H.end&&ot.fragmentHint&&(H=ot.fragmentHint);var Cr=this.getNextPart(Zt,H,ve);if(Cr>-1){var Sr=Zt[Cr];this.log("Loading part sn: ".concat(H.sn," p: ").concat(Sr.index," cc: ").concat(H.cc," of playlist [").concat(ot.startSN,"-").concat(ot.endSN,"] parts [0-").concat(Cr,"-").concat(Zt.length-1,"] ").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(H.level,", target: ").concat(parseFloat(ve.toFixed(3)))),this.nextLoadPosition=Sr.start+Sr.duration,this.state=Fi.FRAG_LOADING;var Wr;return ft?Wr=ft.then(function(Rn){return!Rn||ne.fragContextChanged(Rn.frag)?null:ne.doFragPartsLoad(H,Sr,Z,Te)}).catch(function(Rn){return ne.handleFragLoadError(Rn)}):Wr=this.doFragPartsLoad(H,Sr,Z,Te).catch(function(Rn){return ne.handleFragLoadError(Rn)}),this.hls.trigger(w.FRAG_LOADING,{frag:H,part:Sr,targetBufferTime:ve}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Wr}else if(!H.url||this.loadedEndOfParts(Zt,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=Fi.FRAG_LOADING;var $r=this.config.progressive,On;return $r&&ft?On=ft.then(function(Rn){return!Rn||ne.fragContextChanged(Rn==null?void 0:Rn.frag)?null:ne.fragmentLoader.load(H,Te)}).catch(function(Rn){return ne.handleFragLoadError(Rn)}):On=Promise.all([this.fragmentLoader.load(H,$r?Te:void 0),ft]).then(function(Rn){var Zn=Object(x.a)(Rn,1),wi=Zn[0];return!$r&&wi&&Te&&Te(wi),wi}).catch(function(Rn){return ne.handleFragLoadError(Rn)}),this.hls.trigger(w.FRAG_LOADING,{frag:H,targetBufferTime:ve}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):On}},{key:"doFragPartsLoad",value:function(H,Z,ne,ve){var Te=this;return new Promise(function(ze,ot){var ft,Zt=[],Cr=(ft=ne.details)==null?void 0:ft.partList,Sr=function Wr($r){Te.fragmentLoader.loadPart(H,$r,ve).then(function(On){Zt[$r.index]=On;var Rn=On.part;Te.hls.trigger(w.FRAG_LOADED,On);var Zn=Qn(ne,H.sn,$r.index+1)||$n(Cr,H.sn,$r.index+1);if(Zn)Wr(Zn);else return ze({frag:H,part:Rn,partsLoaded:Zt})}).catch(ot)};Sr(Z)})}},{key:"handleFragLoadError",value:function(H){if("data"in H){var Z=H.data;H.data&&Z.details===I.INTERNAL_ABORTED?this.handleFragLoadAborted(Z.frag,Z.part):this.hls.trigger(w.ERROR,Z)}else this.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,err:H,error:H,fatal:!0});return null}},{key:"_handleTransmuxerFlush",value:function(H){var Z=this.getCurrentContext(H);if(!Z||this.state!==Fi.PARSING){!this.fragCurrent&&this.state!==Fi.STOPPED&&this.state!==Fi.ERROR&&(this.state=Fi.IDLE);return}var ne=Z.frag,ve=Z.part,Te=Z.level,ze=self.performance.now();ne.stats.parsing.end=ze,ve&&(ve.stats.parsing.end=ze),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,ze=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],ft=ze>-1?Qn(ot,Te,ze):null,Zt=ft?ft.fragment:In(ot,Te,ne);return Zt?(ne&&ne!==Zt&&(Zt.stats=ne.stats),{frag:Zt,part:ft,level:ot}):null}},{key:"bufferFragmentData",value:function(H,Z,ne,ve,Te){var ze;if(!H||this.state!==Fi.PARSING)return;var ot=H.data1,ft=H.data2,Zt=ot;if(ot&&ft&&(Zt=Ct(ot,ft)),!((ze=Zt)!=null&&ze.length))return;var Cr={type:H.type,frag:Z,part:ne,chunkMeta:ve,parent:Z.type,data:Zt};if(this.hls.trigger(w.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(!Ii.isBuffered(Z,Z.currentTime)){this.flushMainBuffer(0,H.start);return}var ne=Z.currentTime,ve=Ii.bufferInfo(Z,ne,0),Te=H.duration,ze=Math.min(this.config.maxFragLookUpTolerance*2,Te*.25),ot=Math.max(Math.min(H.start-ze,ve.end-ze),ne+ze);H.start-ot>ze&&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=Ii.bufferInfo(H,Z,ve);if(Te.len===0&&Te.nextStart!==void 0){var ze=this.fragmentTracker.getBufferedFrag(Z,ne);if(ze&&Te.nextStart<ze.end)return Ii.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]:gt.MAIN,ne=this.fragmentTracker.getAppendedFrag(H,gt.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,ze=ne[0].start,ot;if(Z.live){var ft=Te.initialLiveManifestSize;if(ve<ft)return this.warn("Not enough fragments to start playback (have: ".concat(ve,", need: ").concat(ft,")")),null;!Z.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(ot=this.getInitialLiveFragment(Z,ne),this.startPosition=ot?this.hls.liveSyncPosition||ot.start:H)}else H<=ze&&(ot=ne[0]);if(!ot){var Zt=Te.lowLatencyMode?Z.partEnd:Z.fragmentEnd;ot=this.getFragmentAtPosition(H,Zt,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 ze=H.gap,ot=this.getNextFragment(this.nextLoadPosition,Z);if(ot===null)return ot;if(H=ot,ze&&H&&!H.gap&&ne.nextStart){var ft=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,ne.nextStart,ve);if(ft!==null&&ne.len+ft.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,ze=!0,ot=0,ft=H.length;ot<ft;ot++){var Zt=H[ot];if(ze=ze&&!Zt.independent,ve>-1&&ne<Zt.start)break;var Cr=Zt.loaded;Cr?ve=-1:(Te||Zt.independent||ze)&&Zt.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 ze=Z[Te-H.startSN];ne.cc===ze.cc&&(ve=ze,this.log("Live playlist, switching playlist, load frag with next SN: ".concat(ve.sn)))}ve||(ve=ha(Z,ne.cc),ve&&this.log("Live playlist, switching playlist, load frag with same CC: ".concat(ve.sn)))}}else{var 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,ze=ne.fragments,ot=ne.endSN,ft=ne.fragmentHint,Zt=ve.maxFragLookUpTolerance,Cr=ne.partList,Sr=!!(ve.lowLatencyMode&&Cr!=null&&Cr.length&&ft);Sr&&ft&&!this.bitrateTest&&(ze=ze.concat(ft),ot=ft.sn);var Wr;if(H<Z){var $r=H>Z-Zt?0:Zt;Wr=yi(Te,ze,H,$r)}else Wr=ze[ze.length-1];if(Wr){var On=Wr.sn-ne.startSN,Rn=this.fragmentTracker.getState(Wr);if((Rn===_t.OK||Rn===_t.PARTIAL&&Wr.gap)&&(Te=Wr),Te&&Wr.sn===Te.sn&&(!Sr||Cr[0].fragment.sn>Wr.sn)){var Zn=Te&&Wr.level===Te.level;if(Zn){var wi=ze[On+1];Wr.sn<ot&&this.fragmentTracker.getState(wi)!==_t.OK?Wr=wi:Wr=null}}}return Wr}},{key:"synchronizeToLiveEdge",value:function(H){var Z=this.config,ne=this.media;if(!ne)return;var ve=this.hls.liveSyncPosition,Te=ne.currentTime,ze=H.fragments[0].start,ot=H.edge,ft=Te>=ze-Z.maxFragLookUpTolerance&&Te<=ot;if(ve!==null&&ne.duration>ve&&(Te<ve||!ft)){var Zt=Z.liveMaxLatencyDuration!==void 0?Z.liveMaxLatencyDuration:Z.liveMaxLatencyDurationCount*H.targetduration;(!ft&&ne.readyState<4||Te<ot-Zt)&&(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,ze=ve!==null?ne[ve]:null,ot=H.fragments.length;if(!ot)return this.warn("No fragments in live playlist"),0;var ft=H.fragments[0].start,Zt=!Z,Cr=H.alignedSliding&&T(ft);if(Zt||!Cr&&!ft){Ca(Te,ze,H);var Sr=H.fragments[0].start;return this.log("Live playlist sliding: ".concat(Sr.toFixed(2)," start-sn: ").concat(Z?Z.startSN:"na","->").concat(H.startSN," prev-sn: ").concat(Te?Te.sn:"na"," fragments: ").concat(ot)),Sr}return ft}},{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!==Fi.FRAG_LOADING_WAITING_RETRY)&&(this.state=Fi.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 ze=Z.details===I.FRAG_GAP;ze&&this.fragmentTracker.fragBuffered(ve,!0);var ot=Z.errorAction,ft=ot||{},Zt=ft.action,Cr=ft.retryCount,Sr=Cr===void 0?0:Cr,Wr=ft.retryConfig;if(ot&&Zt===ra.RetryRequest&&Wr){var $r;this.resetStartWhenNotLoaded(($r=this.levelLastLoaded)!=null?$r:ve.level);var On=ki(Wr,Sr);this.warn("Fragment ".concat(ve.sn," of ").concat(H," ").concat(ve.level," errored with ").concat(Z.details,", retrying loading ").concat(Sr+1,"/").concat(Wr.maxNumRetry," in ").concat(On,"ms")),ot.resolved=!0,this.retryDate=self.performance.now()+On,this.state=Fi.FRAG_LOADING_WAITING_RETRY}else Wr&&ot?(this.resetFragmentErrors(H),Sr<Wr.maxNumRetry?ze||(ot.resolved=!0):j.warn("".concat(Z.details," reached or exceeded max retry (").concat(Sr,")"))):(ot==null?void 0:ot.action)===ra.SendAlternateToPenaltyBox?this.state=Fi.WAITING_LEVEL:this.state=Fi.ERROR;this.tickImmediate()}},{key:"reduceLengthAndFlushBuffer",value:function(H){if(this.state===Fi.PARSING||this.state===Fi.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===gt.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Fi.STOPPED&&(this.state=Fi.IDLE)}},{key:"afterBufferFlushed",value:function(H,Z,ne){if(!H)return;var ve=Ii.getBuffered(H);this.fragmentTracker.detectEvictedFragments(Z,ve,ne),this.state===Fi.ENDED&&this.resetLoadingState()}},{key:"resetLoadingState",value:function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Fi.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,ze,ot=ne.details;if(!ot){this.warn("level.details undefined");return}var ft=Object.keys(H.elementaryStreams).reduce(function(Cr,Sr){var Wr=H.elementaryStreams[Sr];if(Wr){var $r=Wr.endPTS-Wr.startPTS;if($r<=0)return Te.warn("Could not parse fragment ".concat(H.sn," ").concat(Sr," duration reliably (").concat($r,")")),Cr||!1;var On=ve?0:Ar(ot,H,Wr.startPTS,Wr.endPTS,Wr.startDTS,Wr.endDTS);return Te.hls.trigger(w.LEVEL_PTS_UPDATED,{details:ot,level:ne,drift:On,type:Sr,frag:H,start:Wr.startPTS,end:Wr.endPTS}),!0}return Cr},!1);if(ft)ne.fragmentError=0;else if(((ze=this.transmuxer)==null?void 0:ze.error)===null){var Zt=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(Zt.message),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:Zt,frag:H,reason:"Found no media in msn ".concat(H.sn,' of level "').concat(ne.url,'"')}),!this.hls)return;this.resetTransmuxer()}this.state=Fi.PARSED,this.hls.trigger(w.FRAG_PARSED,{frag:H,part:Z})}},{key:"resetTransmuxer",value:function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}},{key:"recoverWorkerError",value:function(H){if(H.event==="demuxerWorker"){var Z,ne,ve;this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded((Z=(ne=this.levelLastLoaded)!=null?ne:(ve=this.fragCurrent)==null?void 0:ve.level)!=null?Z:0),this.resetLoadingState()}}},{key:"state",get:function(){return this._state},set:function(H){var Z=this._state;Z!==H&&(this._state=H,this.log("".concat(Z,"->").concat(H)))}}]),L}(Pi);function oo(){return self.SourceBuffer||self.WebKitSourceBuffer}function Qo(){var Ae=er();if(!Ae)return!1;var ee=oo(),L=Ae&&typeof Ae.isTypeSupported=="function"&&Ae.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),W=!ee||ee.prototype&&typeof ee.prototype.appendBuffer=="function"&&typeof ee.prototype.remove=="function";return!!L&&!!W}function mo(){var Ae,ee=oo();return typeof(ee==null||(Ae=ee.prototype)==null?void 0:Ae.changeType)=="function"}function 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"}),ee=self.URL.createObjectURL(Ae),L=new self.Worker(ee);return{worker:L,objectURL:ee}}function So(Ae){var ee=new self.URL(Ae,self.location.href).href,L=new self.Worker(ee);return{worker:L,scriptURL:ee}}function bo(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:9e4;return{type:Ae,id:-1,pid:-1,inputTimeScale:ee,sequenceNumber:-1,samples:[],dropped:0}}var to=function(){function Ae(){Object(r.a)(this,Ae),this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}return Object(a.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=Ct(this.cachedData,L),this.cachedData=null);var H=ht(L,0),Z=H?H.length:0,ne,ve=this._audioTrack,Te=this._id3Track,ze=H?ct(H):void 0,ot=L.length;for((this.basePTS===null||this.frameIndex===0&&T(ze))&&(this.basePTS=Jo(ze,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:jr.audioId3,duration:Number.POSITIVE_INFINITY});Z<ot;){if(this.canParse(L,Z)){var ft=this.appendFrame(ve,L,Z);ft?(this.frameIndex++,this.lastPTS=ft.sample.pts,Z+=ft.length,ne=Z):Z=ot}else ir(L,Z)?(H=ht(L,Z),Te.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:H,type:jr.audioId3,duration:Number.POSITIVE_INFINITY}),Z+=H.length,ne=Z):Z++;if(Z===ot&&ne!==ot){var Zt=ke(L,ne);this.cachedData?this.cachedData=Ct(this.cachedData,Zt):this.cachedData=Zt}}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(ee,L,W){if(T(ee))return ee*90;var H=W?W.baseTime*9e4/W.timescale:0;return L*9e4+H};function Uo(Ae,ee,L,W){var H,Z,ne,ve,Te=navigator.userAgent.toLowerCase(),ze=W,ot=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];H=((ee[L+2]&192)>>>6)+1;var ft=(ee[L+2]&60)>>>2;if(ft>ot.length-1){Ae.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:".concat(ft)});return}return ne=(ee[L+2]&1)<<2,ne|=(ee[L+3]&192)>>>6,j.log("manifest codec:".concat(W,", ADTS type:").concat(H,", samplingIndex:").concat(ft)),/firefox/i.test(Te)?ft>=6?(H=5,ve=new Array(4),Z=ft-3):(H=2,ve=new Array(2),Z=ft):Te.indexOf("android")!==-1?(H=2,ve=new Array(2),Z=ft):(H=5,ve=new Array(4),W&&(W.indexOf("mp4a.40.29")!==-1||W.indexOf("mp4a.40.5")!==-1)||!W&&ft>=6?Z=ft-3:((W&&W.indexOf("mp4a.40.2")!==-1&&(ft>=6&&ne===1||/vivaldi/i.test(Te))||!W&&ne===1)&&(H=2,ve=new Array(2)),Z=ft)),ve[0]=H<<3,ve[0]|=(ft&14)>>1,ve[1]|=(ft&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[ft],channelCount:ne,codec:"mp4a.40."+H,manifestCodec:ze}}function wo(Ae,ee){return Ae[ee]===255&&(Ae[ee+1]&246)===240}function ts(Ae,ee){return Ae[ee+1]&1?7:9}function Ia(Ae,ee){return(Ae[ee+3]&3)<<11|Ae[ee+4]<<3|(Ae[ee+5]&224)>>>5}function Oo(Ae,ee){return ee+5<Ae.length}function Io(Ae,ee){return ee+1<Ae.length&&wo(Ae,ee)}function os(Ae,ee){return Oo(Ae,ee)&&wo(Ae,ee)&&Ia(Ae,ee)<=Ae.length-ee}function xo(Ae,ee){if(Io(Ae,ee)){var L=ts(Ae,ee);if(ee+L>=Ae.length)return!1;var W=Ia(Ae,ee);if(W<=L)return!1;var H=ee+W;return H===Ae.length||Io(Ae,H)}return!1}function rs(Ae,ee,L,W,H){if(!Ae.samplerate){var Z=Uo(ee,L,W,H);if(!Z)return;Ae.config=Z.config,Ae.samplerate=Z.samplerate,Ae.channelCount=Z.channelCount,Ae.codec=Z.codec,Ae.manifestCodec=Z.manifestCodec,j.log("parsed codec:".concat(Ae.codec,", rate:").concat(Z.samplerate,", channels:").concat(Z.channelCount))}}function Ho(Ae){return 1024*9e4/Ae}function _o(Ae,ee){var L=ts(Ae,ee);if(ee+L<=Ae.length){var W=Ia(Ae,ee)-L;if(W>0)return{headerLength:L,frameLength:W}}}function uo(Ae,ee,L,W,H){var Z=Ho(Ae.samplerate),ne=W+H*Z,ve=_o(ee,L),Te;if(ve){var ze=ve.frameLength,ot=ve.headerLength,ft=ot+ze,Zt=Math.max(0,L+ft-ee.length);Zt?(Te=new Uint8Array(ft-ot),Te.set(ee.subarray(L+ot,ee.length),0)):Te=ee.subarray(L+ot,L+ft);var Cr={unit:Te,pts:ne};return Zt||Ae.samples.push(Cr),{sample:Cr,length:ft,missing:Zt}}var Sr=ee.length-L;Te=new Uint8Array(Sr),Te.set(ee.subarray(L,ee.length),0);var Wr={unit:Te,pts:ne};return{sample:Wr,length:Sr,missing:-1}}var Ha=function(Ae){Object(s.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H){var Z;return Object(r.a)(this,L),Z=ee.call(this),Z.observer=void 0,Z.config=void 0,Z.observer=W,Z.config=H,Z}return Object(a.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=ht(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),mt=/\/emsg[-/]ID3/i,Tr=function(){function Ae(ee,L){Object(r.a)(this,Ae),this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=L}return Object(a.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 ze=Fr(L);if(ze.video){var ot=ze.video,ft=ot.id,Zt=ot.timescale,Cr=ot.codec;ne.id=ft,ne.timescale=Te.timescale=Zt,ne.codec=Cr}if(ze.audio){var Sr=ze.audio,Wr=Sr.id,$r=Sr.timescale,On=Sr.codec;ve.id=Wr,ve.timescale=$r,ve.codec=On}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=Ct(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=Re(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=Re(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=pt(L.samples,["emsg"]);Z&&Z.forEach(function(ne){var ve=St(ne);if(mt.test(ve.schemeIdUri)){var Te=T(ve.presentationTime)?ve.presentationTime/ve.timeScale:W+ve.presentationTimeDelta/ve.timeScale,ze=ve.eventDuration===4294967295?Number.POSITIVE_INFINITY:ve.eventDuration/ve.timeScale;ze<=.001&&(ze=Number.POSITIVE_INFINITY);var ot=ve.payload;H.samples.push({data:ot,len:ot.byteLength,dts:Te,pts:Te,type:jr.emsg,duration:ze})}})}return H}},{key:"demuxSampleAes",value:function(L,W,H){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}},{key:"destroy",value:function(){}}],[{key:"probe",value:function(L){return L=L.length>16384?L.subarray(0,16384):L,pt(L,["moof"]).length>0}}]),Ae}(),en=null,Jr=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],Jn=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],fn=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Yr=[0,1,1,4];function ni(Ae,ee,L,W,H){if(L+24>ee.length)return;var Z=nn(ee,L);if(Z&&L+Z.frameLength<=ee.length){var ne=Z.samplesPerFrame*9e4/Z.sampleRate,ve=W+H*ne,Te={unit:ee.subarray(L,L+Z.frameLength),pts:ve,dts:ve};return Ae.config=[],Ae.channelCount=Z.channelCount,Ae.samplerate=Z.sampleRate,Ae.samples.push(Te),{sample:Te,length:Z.frameLength,missing:0}}}function nn(Ae,ee){var L=Ae[ee+1]>>3&3,W=Ae[ee+1]>>1&3,H=Ae[ee+2]>>4&15,Z=Ae[ee+2]>>2&3;if(L!==1&&H!==0&&H!==15&&Z!==3){var ne=Ae[ee+2]>>1&1,ve=Ae[ee+3]>>6,Te=L===3?3-W:W===3?3:4,ze=Jr[Te*14+H-1]*1e3,ot=L===3?0:L===2?1:2,ft=Jn[ot*3+Z],Zt=ve===3?1:2,Cr=fn[L][W],Sr=Yr[W],Wr=Cr*8*Sr,$r=Math.floor(Cr*ze/ft+ne)*Sr;if(en===null){var On=navigator.userAgent||"",Rn=On.match(/Chrome\/(\d+)/i);en=Rn?parseInt(Rn[1]):0}var Zn=!!en&&en<=87;return Zn&&W===2&&ze>=224e3&&ve===0&&(Ae[ee+3]=Ae[ee+3]|128),{sampleRate:ft,channelCount:Zt,frameLength:$r,samplesPerFrame:Wr}}}function zn(Ae,ee){return Ae[ee]===255&&(Ae[ee+1]&224)===224&&(Ae[ee+1]&6)!==0}function li(Ae,ee){return ee+1<Ae.length&&zn(Ae,ee)}function ci(Ae,ee){var L=4;return zn(Ae,ee)&&L<=Ae.length-ee}function si(Ae,ee){if(ee+1<Ae.length&&zn(Ae,ee)){var L=4,W=nn(Ae,ee),H=L;W!=null&&W.frameLength&&(H=W.frameLength);var Z=ee+H;return Z===Ae.length||li(Ae,Z)}return!1}var Ci=function(){function Ae(ee){Object(r.a)(this,Ae),this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=ee,this.bytesAvailable=ee.byteLength,this.word=0,this.bitsAvailable=0}return Object(a.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,ze=this.readUByte.bind(this),ot=this.readBits.bind(this),ft=this.readUEG.bind(this),Zt=this.readBoolean.bind(this),Cr=this.skipBits.bind(this),Sr=this.skipEG.bind(this),Wr=this.skipUEG.bind(this),$r=this.skipScalingList.bind(this);ze();var On=ze();if(ot(5),Cr(3),ze(),Wr(),On===100||On===110||On===122||On===244||On===44||On===83||On===86||On===118||On===128){var Rn=ft();if(Rn===3&&Cr(1),Wr(),Wr(),Cr(1),Zt())for(ve=Rn!==3?8:12,Te=0;Te<ve;Te++)Zt()&&(Te<6?$r(16):$r(64))}Wr();var Zn=ft();if(Zn===0)ft();else if(Zn===1)for(Cr(1),Sr(),Sr(),ne=ft(),Te=0;Te<ne;Te++)Sr();Wr(),Cr(1);var wi=ft(),ua=ft(),Vi=ot(1);Vi===0&&Cr(1),Cr(1),Zt()&&(L=ft(),W=ft(),H=ft(),Z=ft());var Zi=[1,1];if(Zt()&&Zt()){var ka=ze();switch(ka){case 1:Zi=[1,1];break;case 2:Zi=[12,11];break;case 3:Zi=[10,11];break;case 4:Zi=[16,11];break;case 5:Zi=[40,33];break;case 6:Zi=[24,11];break;case 7:Zi=[20,11];break;case 8:Zi=[32,11];break;case 9:Zi=[80,33];break;case 10:Zi=[18,11];break;case 11:Zi=[15,11];break;case 12:Zi=[64,33];break;case 13:Zi=[160,99];break;case 14:Zi=[4,3];break;case 15:Zi=[3,2];break;case 16:Zi=[2,1];break;case 255:{Zi=[ze()<<8|ze(),ze()<<8|ze()];break}}}return{width:Math.ceil((wi+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(ee,L,W){Object(r.a)(this,Ae),this.keyData=void 0,this.decrypter=void 0,this.keyData=W,this.decrypter=new _a(L,{removePKCS7Padding:!1})}return Object(a.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(ze){var ot=new Uint8Array(ze);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),ze=this.getAvcEncryptedData(Te);this.decryptBuffer(ze.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}(),Ai=188,Ni=function(){function Ae(ee,L,W){Object(r.a)(this,Ae),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=ee,this.config=L,this.typeSupported=W}return Object(a.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,ze=this._id3Track,ot=this._txtTrack,ft=ve.pid,Zt=ve.pesData,Cr=Te.pid,Sr=ze.pid,Wr=Te.pesData,$r=ze.pesData,On=null,Rn=this.pmtParsed,Zn=this._pmtId,wi=L.length;if(this.remainderData&&(L=Ct(this.remainderData,L),wi=L.length,this.remainderData=null),wi<Ai&&!Z)return this.remainderData=L,{audioTrack:Te,videoTrack:ve,id3Track:ze,textTrack:ot};var ua=Math.max(0,Ae.syncOffset(L));wi-=(wi-ua)%Ai,wi<L.byteLength&&!Z&&(this.remainderData=new Uint8Array(L.buffer,wi,L.buffer.byteLength-wi));for(var Vi=0,Zi=ua;Zi<wi;Zi+=Ai)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+Ai)continue}else Sa=Zi+4;switch(Ga){case ft:ka&&(Zt&&(ne=xa(Zt))&&this.parseAVCPES(ve,ot,ne,!1),Zt={data:[],size:0}),Zt&&(Zt.data.push(L.subarray(Sa,Zi+Ai)),Zt.size+=Zi+Ai-Sa);break;case Cr:if(ka){if(Wr&&(ne=xa(Wr)))switch(Te.segmentCodec){case"aac":this.parseAACPES(Te,ne);break;case"mp3":this.parseMPEGPES(Te,ne);break}Wr={data:[],size:0}}Wr&&(Wr.data.push(L.subarray(Sa,Zi+Ai)),Wr.size+=Zi+Ai-Sa);break;case Sr:ka&&($r&&(ne=xa($r))&&this.parseID3PES(ze,ne),$r={data:[],size:0}),$r&&($r.data.push(L.subarray(Sa,Zi+Ai)),$r.size+=Zi+Ai-Sa);break;case 0:ka&&(Sa+=L[Sa]+1),Zn=this._pmtId=fa(L,Sa);break;case Zn:{ka&&(Sa+=L[Sa]+1);var Go=Ya(L,Sa,this.typeSupported,H);ft=Go.avc,ft>0&&(ve.pid=ft),Cr=Go.audio,Cr>0&&(Te.pid=Cr,Te.segmentCodec=Go.segmentCodec),Sr=Go.id3,Sr>0&&(ze.pid=Sr),On!==null&&!Rn&&(j.warn("MPEG-TS PMT found at ".concat(Zi," after unknown PID '").concat(On,"'. Backtracking to sync byte @").concat(ua," to parse all TS packets.")),On=null,Zi=ua-188),Rn=this.pmtParsed=!0;break}case 17:case 8191:break;default:On=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(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:bs,reason:bs.message})}ve.pesData=Zt,Te.pesData=Wr,ze.pesData=$r;var ys={audioTrack:Te,videoTrack:ve,id3Track:ze,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,ze=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;ze&&(ot=xa(ze))?(this.parseID3PES(Z,ot),Z.pesData=null):Z.pesData=ze}},{key:"demuxSampleAes",value:function(L,W,H){var Z=this.demux(L,H,!0,!this.config.progressive),ne=this.sampleAes=new 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,ze,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(ft){var Zt;switch(ft.type){case 1:{var Cr=!1;ze=!0;var Sr=ft.data;if(ot&&Sr.length>4){var Wr=new Ci(Sr).readSliceType();(Wr===2||Wr===4||Wr===7||Wr===9)&&(Cr=!0)}if(Cr){var $r;($r=Te)!=null&&$r.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:ze=!0,(Zt=Te)!=null&&Zt.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:{ze=!0,et(ft.data,1,H.pts,W.samples);break}case 7:if(ze=!0,ot=!0,!L.sps){var On=ft.data,Rn=new Ci(On),Zn=Rn.readSPS();L.width=Zn.width,L.height=Zn.height,L.pixelRatio=Zn.pixelRatio,L.sps=[On],L.duration=ne._duration;for(var wi=On.subarray(1,4),ua="avc1.",Vi=0;Vi<3;Vi++){var Zi=wi[Vi].toString(16);Zi.length<2&&(Zi="0"+Zi),ua+=Zi}L.codec=ua}break;case 8:ze=!0,L.pps||(L.pps=[ft.data]);break;case 9:ze=!1,L.audFound=!0,Te&&wa(Te,L),Te=ne.avcSample=ia(!1,H.pts,H.dts,"");break;case 12:ze=!0;break;default:ze=!1,Te&&(Te.debug+="unknown NAL "+ft.type+" ");break}if(Te&&ze){var ka=Te.units;ka.push(ft)}}),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,ze,ot,ft,Zt=-1,Cr=0;for(Z===-1&&(Zt=0,Cr=W[0]&31,Z=0,Te=1);Te<H;){if(ze=W[Te++],!Z){Z=ze?0:1;continue}if(Z===1){Z=ze?0:2;continue}if(!ze)Z=3;else if(ze===1){if(Zt>=0){var Sr={data:W.subarray(Zt,Te-Z-1),type:Cr};ve.push(Sr)}else{var Wr=this.getLastNalUnit(L.samples);if(Wr&&(ne&&Te<=4-ne&&(Wr.state&&(Wr.data=Wr.data.subarray(0,Wr.data.byteLength-ne))),ot=Te-Z-1,ot>0)){var $r=new Uint8Array(Wr.data.byteLength+ot);$r.set(Wr.data,0),$r.set(W.subarray(0,ot),Wr.data.byteLength),Wr.data=$r,Wr.state=0}}Te<H?(ft=W[Te]&31,Zt=Te,Cr=ft,Z=0):Z=-1}else Z=0}if(Zt>=0&&Z>=0){var On={data:W.subarray(Zt,H),type:Cr,state:Z};ve.push(On)}if(ve.length===0){var Rn=this.getLastNalUnit(L.samples);if(Rn){var Zn=new Uint8Array(Rn.data.byteLength+W.byteLength);Zn.set(Rn.data,0),Zn.set(W,Rn.data.byteLength),Rn.data=Zn}}return L.naluState=Z,ve}},{key:"parseAACPES",value:function(L,W){var H=0,Z=this.aacOverFlow,ne=W.data;if(Z){this.aacOverFlow=null;var ve=Z.missing,Te=Z.sample.unit.byteLength;if(ve===-1){var ze=new Uint8Array(Te+ne.byteLength);ze.set(Z.sample.unit,0),ze.set(ne,Te),ne=ze}else{var ot=Te-ve;Z.sample.unit.set(ne.subarray(0,ve),ot),L.samples.push(Z.sample),H=Z.missing}}var ft,Zt;for(ft=H,Zt=ne.length;ft<Zt-1&&!Io(ne,ft);ft++);if(ft!==H){var Cr,Sr=ft<Zt-1;Sr?Cr="AAC PES did not start with ADTS header,offset:".concat(ft):Cr="No ADTS header found in AAC PES";var Wr=new Error(Cr);if(j.warn("parsing error: ".concat(Cr)),this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,levelRetry:Sr,error:Wr,reason:Cr}),!Sr)return}rs(L,this.observer,ne,ft,this.audioCodec);var $r;if(W.pts!==void 0)$r=W.pts;else if(Z){var On=Ho(L.samplerate);$r=Z.sample.pts+On}else{j.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var Rn=0,Zn;ft<Zt;)if(Zn=uo(L,ne,ft,$r,Rn),ft+=Zn.length,Zn.missing){this.aacOverFlow=Zn;break}else for(Rn++;ft<Zt-1&&!Io(ne,ft);ft++);}},{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 ze=ni(L,H,ve,Te,ne);if(ze)ve+=ze.length,ne++;else break}else ve++}},{key:"parseID3PES",value:function(L,W){if(W.pts===void 0){j.warn("[tsdemuxer]: ID3 PES unknown PTS");return}var H=E({},W,{type:this._avcTrack?jr.emsg:jr.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(Ai*5,L.length-Ai)+1,Z=0;Z<H;){for(var ne=!1,ve=-1,Te=0,ze=Z;ze<W;ze+=Ai)if(L[ze]===71){if(Te++,ve===-1&&(ve=ze,ve!==0&&(H=Math.min(ve+Ai*99,L.length-Ai)+1)),ne||(ne=Ki(L,ze)===0),ne&&Te>1&&(ve===0&&Te>2||ze+Ai>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,ee,L,W){return{key:Ae,frame:!1,pts:ee,dts:L,units:[],debug:W,length:0}}function Ki(Ae,ee){return((Ae[ee+1]&31)<<8)+Ae[ee+2]}function fa(Ae,ee){return(Ae[ee+10]&31)<<8|Ae[ee+11]}function Ya(Ae,ee,L,W){var H={audio:-1,avc:-1,id3:-1,segmentCodec:"aac"},Z=(Ae[ee+1]&15)<<8|Ae[ee+2],ne=ee+3+Z-4,ve=(Ae[ee+10]&15)<<8|Ae[ee+11];for(ee+=12+ve;ee<ne;){var Te=Ki(Ae,ee);switch(Ae[ee]){case 207:if(!W){j.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:H.audio===-1&&(H.audio=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}ee+=((Ae[ee+3]&15)<<8|Ae[ee+4])+5}return H}function xa(Ae){var ee=0,L,W,H,Z,ne,ve=Ae.data;if(!Ae||Ae.size===0)return null;for(;ve[0].length<19&&ve.length>1;){var 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 ze=(L[0]<<16)+(L[1]<<8)+L[2];if(ze===1){if(W=(L[4]<<8)+L[5],W&&W>Ae.size-6)return null;var 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 ft=H+9;if(Ae.size<=ft)return null;Ae.size-=ft;for(var Zt=new Uint8Array(Ae.size),Cr=0,Sr=ve.length;Cr<Sr;Cr++){L=ve[Cr];var Wr=L.byteLength;if(ft)if(ft>Wr){ft-=Wr;continue}else L=L.subarray(ft),Wr-=ft,ft=0;Zt.set(L,ee),ee+=Wr}return W&&(W-=H+3),{data:Zt,pts:Z,dts:ne,len:W}}return null}function wa(Ae,ee){if(Ae.units.length&&Ae.frame){if(Ae.pts===void 0){var L=ee.samples,W=L.length;if(W){var H=L[W-1];Ae.pts=H.pts,Ae.dts=H.dts}else{ee.dropped++;return}}ee.samples.push(Ae)}Ae.debug.length&&j.log(Ae.pts+"/"+Ae.dts+":"+Ae.debug)}var Da=function(Ae){Object(s.a)(L,Ae);var ee=Object(e.a)(L);function L(){return Object(r.a)(this,L),ee.apply(this,arguments)}return Object(a.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:ni(H,Z,ne,this.basePTS,this.frameIndex)}}],[{key:"probe",value:function(H){if(!H)return!1;for(var Z=ht(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(a.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(a.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]),ze=new Uint8Array([0,0,0,1]);Ae.FTYP=Ae.box(Ae.types.ftyp,ve,ze,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 ze=new Uint8Array(W);for(ze[0]=W>>24&255,ze[1]=W>>16&255,ze[2]=W>>8&255,ze[3]=W&255,ze.set(L,4),ve=0,W=8;ve<Te;ve++)ze.set(Z[ve],W),W+=Z[ve].byteLength;return ze}},{key:"hdlr",value:function(L){return Ae.box(Ae.types.hdlr,Ae.HDLR_TYPES[L])}},{key:"mdat",value:function(L){return Ae.box(Ae.types.mdat,L)}},{key:"mdhd",value:function(L,W){W*=L;var H=Math.floor(W/(ko+1)),Z=Math.floor(W%(ko+1));return Ae.box(Ae.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,L>>24&255,L>>16&255,L>>8&255,L&255,H>>24,H>>16&255,H>>8&255,H&255,Z>>24,Z>>16&255,Z>>8&255,Z&255,85,196,0,0]))}},{key:"mdia",value:function(L){return Ae.box(Ae.types.mdia,Ae.mdhd(L.timescale,L.duration),Ae.hdlr(L.type),Ae.minf(L))}},{key:"mfhd",value:function(L){return Ae.box(Ae.types.mfhd,new Uint8Array([0,0,0,0,L>>24,L>>16&255,L>>8&255,L&255]))}},{key:"minf",value:function(L){return L.type==="audio"?Ae.box(Ae.types.minf,Ae.box(Ae.types.smhd,Ae.SMHD),Ae.DINF,Ae.stbl(L)):Ae.box(Ae.types.minf,Ae.box(Ae.types.vmhd,Ae.VMHD),Ae.DINF,Ae.stbl(L))}},{key:"moof",value:function(L,W,H){return Ae.box(Ae.types.moof,Ae.mfhd(L),Ae.traf(H,W))}},{key:"moov",value:function(L){for(var W=L.length,H=[];W--;)H[W]=Ae.trak(L[W]);return Ae.box.apply(null,[Ae.types.moov,Ae.mvhd(L[0].timescale,L[0].duration)].concat(H).concat(Ae.mvex(L)))}},{key:"mvex",value:function(L){for(var W=L.length,H=[];W--;)H[W]=Ae.trex(L[W]);return Ae.box.apply(null,[Ae.types.mvex].concat(H))}},{key:"mvhd",value:function(L,W){W*=L;var H=Math.floor(W/(ko+1)),Z=Math.floor(W%(ko+1)),ne=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,L>>24&255,L>>16&255,L>>8&255,L&255,H>>24,H>>16&255,H>>8&255,H&255,Z>>24,Z>>16&255,Z>>8&255,Z&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return Ae.box(Ae.types.mvhd,ne)}},{key:"sdtp",value:function(L){var W=L.samples||[],H=new Uint8Array(4+W.length),Z,ne;for(Z=0;Z<W.length;Z++)ne=W[Z].flags,H[Z+4]=ne.dependsOn<<4|ne.isDependedOn<<2|ne.hasRedundancy;return Ae.box(Ae.types.sdtp,H)}},{key:"stbl",value:function(L){return Ae.box(Ae.types.stbl,Ae.stsd(L),Ae.box(Ae.types.stts,Ae.STTS),Ae.box(Ae.types.stsc,Ae.STSC),Ae.box(Ae.types.stsz,Ae.STSZ),Ae.box(Ae.types.stco,Ae.STCO))}},{key:"avc1",value:function(L){var W=[],H=[],Z,ne,ve;for(Z=0;Z<L.sps.length;Z++)ne=L.sps[Z],ve=ne.byteLength,W.push(ve>>>8&255),W.push(ve&255),W=W.concat(Array.prototype.slice.call(ne));for(Z=0;Z<L.pps.length;Z++)ne=L.pps[Z],ve=ne.byteLength,H.push(ve>>>8&255),H.push(ve&255),H=H.concat(Array.prototype.slice.call(ne));var 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))),ze=L.width,ot=L.height,ft=L.pixelRatio[0],Zt=L.pixelRatio[1];return Ae.box(Ae.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,ze>>8&255,ze&255,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([ft>>24,ft>>16&255,ft>>8&255,ft&255,Zt>>24,Zt>>16&255,Zt>>8&255,Zt&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,ze,ot,ft,Zt,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++)ze=H[Te],ot=ze.duration,ft=ze.size,Zt=ze.flags,Cr=ze.cts,ve.set([ot>>>24&255,ot>>>16&255,ot>>>8&255,ot&255,ft>>>24&255,ft>>>16&255,ft>>>8&255,ft&255,Zt.isLeading<<2|Zt.dependsOn,Zt.isDependedOn<<6|Zt.hasRedundancy<<4|Zt.paddingValue<<1|Zt.isNonSync,Zt.degradPrio&240<<8,Zt.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,ee){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,H=Ae*ee*L;return W?Math.round(H):H}function Fa(Ae,ee){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ea(Ae,ee,1/L,W)}function Ka(Ae){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ea(Ae,1e3,1/pa,ee)}function lo(Ae){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Ea(Ae,pa,1/ee)}var so=10*1e3,Co=1024,Lo=1152,is=null,cs=null,Rs=function(){function Ae(ee,L,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";if(Object(r.a)(this,Ae),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=ee,this.config=L,this.typeSupported=W,this.ISGenerated=!1,is===null){var Z=navigator.userAgent||"",ne=Z.match(/Chrome\/(\d+)/i);is=ne?parseInt(ne[1]):0}if(cs===null){var ve=navigator.userAgent.match(/Safari\/(\d+)/i);cs=ve?parseInt(ve[1]):0}}return Object(a.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,ze){var ot,ft,Zt,Cr,Sr,Wr,$r=ne,On=ne,Rn=L.pid>-1,Zn=W.pid>-1,wi=W.samples.length,ua=L.samples.length>0,Vi=Te&&wi>0||wi>1,Zi=(!Rn||ua)&&(!Zn||Vi)||this.ISGenerated||Te;if(Zi){this.ISGenerated||(Zt=this.generateIS(L,W,ne,ve));var ka=this.isVideoContiguous,Ga=-1,Ba;if(Vi&&(Ga=as(W.samples),!ka&&this.config.forceKeyFrameOnDiscontinuity))if(Wr=!0,Ga>0){j.warn("[mp4-remuxer]: Dropped ".concat(Ga," out of ").concat(wi," video samples due to a missing keyframe"));var Sa=this.getVideoStartPts(W.samples);W.samples=W.samples.slice(Ga),W.dropped+=Ga,On+=(W.samples[0].pts-Sa)/W.inputTimeScale,Ba=On}else Ga===-1&&(j.warn("[mp4-remuxer]: No keyframe found out of ".concat(wi," video samples")),Wr=!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;$r+=Math.max(0,ys),On+=Math.max(0,-ys)}if(ua){if(L.samplerate||(j.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),Zt=this.generateIS(L,W,ne,ve)),ft=this.remuxAudio(L,$r,this.isAudioContiguous,ve,Zn||Vi||ze===gt.AUDIO?On:void 0),Vi){var Cs=ft?ft.endPTS-ft.startPTS:0;W.inputTimeScale||(j.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),Zt=this.generateIS(L,W,ne,ve)),ot=this.remuxVideo(W,On,ka,Cs)}}else Vi&&(ot=this.remuxVideo(W,On,ka,0));ot&&(ot.firstKeyFrame=Ga,ot.independent=Ga!==-1,ot.firstKeyFramePTS=Ba)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(H.samples.length&&(Sr=co(H,ne,this._initPTS,this._initDTS)),Z.samples.length&&(Cr=Ao(Z,ne,this._initPTS))),{audio:ft,video:ot,initSegment:Zt,independent:Wr,text:Cr,id3:Sr}}},{key:"generateIS",value:function(L,W,H,Z){var ne=L.samples,ve=W.samples,Te=this.typeSupported,ze={},ot=this._initPTS,ft=!ot||Z,Zt="audio/mp4",Cr,Sr,Wr;if(ft&&(Cr=Sr=Infinity),L.config&&ne.length){L.timescale=L.samplerate;switch(L.segmentCodec){case"mp3":Te.mpeg?(Zt="audio/mpeg",L.codec=""):Te.mp3&&(L.codec="mp3");break}ze.audio={id:"audio",container:Zt,codec:L.codec,initSegment:L.segmentCodec==="mp3"&&Te.mpeg?new Uint8Array(0):ro.initSegment([L]),metadata:{channelCount:L.channelCount}},ft&&(Wr=L.inputTimeScale,!ot||Wr!==ot.timescale?Cr=Sr=ne[0].pts-Math.round(Wr*H):ft=!1)}if(W.sps&&W.pps&&ve.length&&(W.timescale=W.inputTimeScale,ze.video={id:"main",container:"video/mp4",codec:W.codec,initSegment:ro.initSegment([W]),metadata:{width:W.width,height:W.height}},ft))if(Wr=W.inputTimeScale,!ot||Wr!==ot.timescale){var $r=this.getVideoStartPts(ve),On=Math.round(Wr*H);Sr=Math.min(Sr,Ko(ve[0].dts,$r)-On),Cr=Math.min(Cr,$r-On)}else ft=!1;if(Object.keys(ze).length)return this.ISGenerated=!0,ft?(this._initPTS={baseTime:Cr,timescale:Wr},this._initDTS={baseTime:Sr,timescale:Wr}):Cr=Wr=void 0,{tracks:ze,initPTS:Cr,timescale:Wr}}},{key:"remuxVideo",value:function(L,W,H,Z){var ne=L.inputTimeScale,ve=L.samples,Te=[],ze=ve.length,ot=this._initPTS,ft=this.nextAvcDts,Zt=8,Cr=this.videoSampleDuration,Sr,Wr,$r=Number.POSITIVE_INFINITY,On=Number.NEGATIVE_INFINITY,Rn=!1;if(!H||ft===null){var Zn=W*ne,wi=ve[0].pts-Ko(ve[0].dts,ve[0].pts);ft=Zn-wi}for(var ua=ot.baseTime*ne/ot.timescale,Vi=0;Vi<ze;Vi++){var Zi=ve[Vi];Zi.pts=Ko(Zi.pts-ua,ft),Zi.dts=Ko(Zi.dts-ua,ft),Zi.dts<ve[Vi>0?Vi-1:Vi].dts&&(Rn=!0)}Rn&&ve.sort(function(Ke,It){var nr=Ke.dts-It.dts,wr=Ke.pts-It.pts;return nr||wr}),Sr=ve[0].dts,Wr=ve[ve.length-1].dts;var ka=Wr-Sr,Ga=ka?Math.round(ka/(ze-1)):Cr||L.inputTimeScale/30;if(H){var Ba=Sr-ft,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||ft>=ve[0].pts)){Sr=ft;var bs=ve[0].pts-Ba;ve[0].dts=Sr,ve[0].pts=bs,j.log("Video: First PTS/DTS adjusted: ".concat(Ka(bs,!0),"/").concat(Ka(Sr,!0),", delta: ").concat(Ka(Ba,!0)," ms"))}}Sr=Math.max(0,Sr);for(var ys=0,Cs=0,js=0;js<ze;js++){for(var ws=ve[js],Hs=ws.units,Ee=Hs.length,Ye=0,Tt=0;Tt<Ee;Tt++)Ye+=Hs[Tt].data.length;Cs+=Ye,ys+=Ee,ws.length=Ye,ws.dts=Math.max(ws.dts,Sr),$r=Math.min(ws.pts,$r),On=Math.max(ws.pts,On)}Wr=ve[ze-1].dts;var dr=Cs+4*ys+8,Br;try{Br=new Uint8Array(dr)}catch(Ke){this.observer.emit(w.ERROR,w.ERROR,{type:O.MUX_ERROR,details:I.REMUX_ALLOC_ERROR,fatal:!1,error:Ke,bytes:dr,reason:"fail allocating video mdat ".concat(dr)});return}var sn=new DataView(Br.buffer);sn.setUint32(0,dr),Br.set(ro.types.mdat,4);for(var Ue=!1,oe=Number.POSITIVE_INFINITY,_e=Number.POSITIVE_INFINITY,$e=Number.NEGATIVE_INFINITY,wt=Number.NEGATIVE_INFINITY,Kt=0;Kt<ze;Kt++){for(var tr=ve[Kt],ar=tr.units,Gr=0,pn=0,zr=ar.length;pn<zr;pn++){var Hr=ar[pn],ln=Hr.data,bn=Hr.data.byteLength;sn.setUint32(Zt,bn),Zt+=4,Br.set(ln,Zt),Zt+=bn,Gr+=4+bn}var Gn=void 0;if(Kt<ze-1)Cr=ve[Kt+1].dts-tr.dts,Gn=ve[Kt+1].pts-tr.pts;else{var Li=this.config,Mi=Kt>0?tr.dts-ve[Kt-1].dts:Ga;if(Gn=Kt>0?tr.pts-ve[Kt-1].pts:Ga,Li.stretchShortVideoTrack&&this.nextAudioPts!==null){var da=Math.floor(Li.maxBufferHole*ne),$i=(Z?$r+Z*ne:this.nextAudioPts)-tr.pts;$i>da?(Cr=$i-Mi,Cr<0?Cr=Mi:Ue=!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=Mi}else Cr=Mi}var Qa=Math.round(tr.pts-tr.dts);oe=Math.min(oe,Cr),$e=Math.max($e,Cr),_e=Math.min(_e,Gn),wt=Math.max(wt,Gn),Te.push(new $a(tr.key,Cr,Gr,Qa))}if(Te.length){if(is){if(is<70){var ya=Te[0].flags;ya.dependsOn=2,ya.isNonSync=0}}else if(cs&&(wt-_e<$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=Sr,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=Ue||!Cr?Ga:Cr,this.nextAvcDts=ft=Wr+Cr,this.videoSampleDuration=Cr,this.isVideoContiguous=!0;var ie=ro.moof(L.sequenceNumber++,Sr,E({},L,{samples:Te})),ue="video",ge={data1:ie,data2:Br,startPTS:$r/ne,endPTS:(On+Cr)/ne,startDTS:Sr/ne,endDTS:ft/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,ze=ve/Te,ot=L.segmentCodec==="aac"?Co:Lo,ft=ot*ze,Zt=this._initPTS,Cr=L.segmentCodec==="mp3"&&this.typeSupported.mpeg,Sr=[],Wr=ne!==void 0,$r=L.samples,On=Cr?0:8,Rn=this.nextAudioPts||-1,Zn=W*ve,wi=Zt.baseTime*ve/Zt.timescale;if(this.isAudioContiguous=H=H||$r.length&&Rn>0&&(Z&&Math.abs(Zn-Rn)<9e3||Math.abs(Ko($r[0].pts-wi,Zn)-Rn)<20*ft),$r.forEach(function(Hr){Hr.pts=Ko(Hr.pts-wi,Zn)}),!H||Rn<0){if($r=$r.filter(function(Hr){return Hr.pts>=0}),!$r.length)return;ne===0?Rn=0:Z&&!Wr?Rn=Math.max(0,Zn):Rn=$r[0].pts}if(L.segmentCodec==="aac")for(var ua=this.config.maxAudioFramesDrift,Vi=0,Zi=Rn;Vi<$r.length;Vi++){var ka=$r[Vi],Ga=ka.pts,Ba=Ga-Zi,Sa=Math.abs(1e3*Ba/ve);if(Ba<=-ua*ft&&Wr)Vi===0&&(j.warn("Audio frame @ ".concat((Ga/ve).toFixed(3),"s overlaps nextAudioPts by ").concat(Math.round(1e3*Ba/ve)," ms.")),this.nextAudioPts=Rn=Zi=Ga);else if(Ba>=ua*ft&&Sa<so&&Wr){var Go=Math.round(Ba/ft);Zi=Ga-Go*ft,Zi<0&&(Go--,Zi+=ft),Vi===0&&(this.nextAudioPts=Rn=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()),$r.splice(Vi,0,{unit:Cs,pts:ys}),Zi+=ft,Vi++}}ka.pts=Zi,Zi+=ft}for(var js=null,ws=null,Hs,Ee=0,Ye=$r.length;Ye--;)Ee+=$r[Ye].unit.byteLength;for(var Tt=0,dr=$r.length;Tt<dr;Tt++){var Br=$r[Tt],sn=Br.unit,Ue=Br.pts;if(ws!==null){var oe=Sr[Tt-1];oe.duration=Math.round((Ue-ws)/ze)}else if(H&&L.segmentCodec==="aac"&&(Ue=Rn),js=Ue,Ee>0){Ee+=On;try{Hs=new Uint8Array(Ee)}catch(Hr){this.observer.emit(w.ERROR,w.ERROR,{type:O.MUX_ERROR,details:I.REMUX_ALLOC_ERROR,fatal:!1,error:Hr,bytes:Ee,reason:"fail allocating audio mdat ".concat(Ee)});return}if(!Cr){var _e=new DataView(Hs.buffer);_e.setUint32(0,Ee),Hs.set(ro.types.mdat,4)}}else return;Hs.set(sn,On);var $e=sn.byteLength;On+=$e,Sr.push(new $a(!0,ot,$e,0)),ws=Ue}var wt=Sr.length;if(!wt)return;var Kt=Sr[Sr.length-1];this.nextAudioPts=Rn=ws+ze*Kt.duration;var tr=Cr?new Uint8Array(0):ro.moof(L.sequenceNumber++,js/ze,E({},L,{samples:Sr}));L.samples=[];var ar=js/ve,Gr=Rn/ve,pn="audio",zr={data1:tr,data2:Hs,startPTS:ar,endPTS:Gr,startDTS:ar,endDTS:Gr,type:pn,hasAudio:!0,hasVideo:!1,nb:wt};return this.isAudioContiguous=!0,zr}},{key:"remuxEmptyAudio",value:function(L,W,H,Z){var ne=L.inputTimeScale,ve=L.samplerate?L.samplerate:ne,Te=ne/ve,ze=this.nextAudioPts,ot=this._initDTS,ft=ot.baseTime*9e4/ot.timescale,Zt=(ze!==null?ze:Z.startDTS*ne)+ft,Cr=Z.endDTS*ne+ft,Sr=Te*Co,Wr=Math.ceil((Cr-Zt)/Sr),$r=ja.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);if(j.warn("[mp4-remuxer]: remux empty Audio"),!$r){j.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var On=[],Rn=0;Rn<Wr;Rn++){var Zn=Zt+Rn*Sr;On.push({unit:$r,pts:Zn,dts:Zn})}return L.samples=On,this.remuxAudio(L,W,H,!1)}}]),Ae}();function Ko(Ae,ee){var L;if(ee===null)return Ae;for(ee<Ae?L=-8589934592:L=8589934592;Math.abs(Ae-ee)>4294967296;)Ae+=L;return Ae}function as(Ae){for(var ee=0;ee<Ae.length;ee++)if(Ae[ee].key)return ee;return-1}function co(Ae,ee,L,W){var H=Ae.samples.length;if(!H)return;for(var Z=Ae.inputTimeScale,ne=0;ne<H;ne++){var ve=Ae.samples[ne];ve.pts=Ko(ve.pts-L.baseTime*Z/L.timescale,ee*Z)/Z,ve.dts=Ko(ve.dts-W.baseTime*Z/W.timescale,ee*Z)/Z}var Te=Ae.samples;return Ae.samples=[],{samples:Te}}function Ao(Ae,ee,L){var W=Ae.samples.length;if(!W)return;for(var H=Ae.inputTimeScale,Z=0;Z<W;Z++){var ne=Ae.samples[Z];ne.pts=Ko(ne.pts-L.baseTime*H/L.timescale,ee*H)/H}Ae.samples.sort(function(Te,ze){return Te.pts-ze.pts});var ve=Ae.samples;return Ae.samples=[],{samples:ve}}var $a=Object(a.a)(function Ae(ee,L,W,H){Object(r.a)(this,Ae),this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=L,this.size=W,this.cts=H,this.flags=new ss(ee)}),ss=Object(a.a)(function Ae(ee){Object(r.a)(this,Ae),this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=ee?2:1,this.isNonSync=ee?0:1}),_s=function(){function Ae(){Object(r.a)(this,Ae),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}return Object(a.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(cn(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=Fr(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,ze,ot=this.initPTS,ft=this.lastEndTime,Zt={audio:void 0,video:void 0,text:Z,id3:H,initSegment:void 0};T(ft)||(ft=this.lastEndTime=ne||0);var Cr=W.samples;if(!(Cr!=null&&Cr.length))return Zt;var Sr={initPTS:void 0,timescale:1},Wr=this.initData;if((Te=Wr)!=null&&Te.length||(this.generateInitSegment(Cr),Wr=this.initData),!((ze=Wr)!=null&&ze.length))return j.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),Zt;this.emitInitSegment&&(Sr.tracks=this.initTracks,this.emitInitSegment=!1);var $r=gi(Cr,Wr),On=Kn(Wr,Cr),Rn=On===null?ne:On;(Fo(ot,Rn,ne,$r)||Sr.timescale!==ot.timescale&&ve)&&(Sr.initPTS=Rn-ne,ot&&ot.timescale===1&&j.warn("Adjusting initPTS by ".concat(Sr.initPTS-ot.baseTime)),this.initPTS=ot={baseTime:Sr.initPTS,timescale:1});var Zn=L?Rn-ot.baseTime/ot.timescale:ft,wi=Zn+$r;Un(Wr,Cr,ot.baseTime/ot.timescale),$r>0?this.lastEndTime=wi:(j.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var ua=!!Wr.audio,Vi=!!Wr.video,Zi="";ua&&(Zi+="audio"),Vi&&(Zi+="video");var ka={data1:Cr,startPTS:Zn,startDTS:Zn,endPTS:wi,endDTS:wi,type:Zi,hasAudio:ua,hasVideo:Vi,nb:1,dropped:0};return Zt.audio=ka.type==="audio"?ka:void 0,Zt.video=ka.type!=="audio"?ka:void 0,Zt.initSegment=Sr,Zt.id3=co(H,ne,ot,ot),Z.samples.length&&(Zt.text=Ao(Z,ne,ot)),Zt}}]),Ae}();function Fo(Ae,ee,L,W){if(Ae===null)return!0;var H=Math.max(W,1),Z=ee-Ae.baseTime/Ae.timescale;return Math.abs(Z-L)>H}function il(Ae,ee){var L=Ae==null?void 0:Ae.codec;return L&&L.length>4?L:L==="hvc1"||L==="hev1"?"hvc1.1.6.L120.90":L==="av01"?"av01.0.04M.08":L==="avc1"||ee===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:Ni,remux:Rs},{demux:Ha,remux:Rs},{demux:Da,remux:Rs}],Fs=function(){function Ae(ee,L,W,H,Z){Object(r.a)(this,Ae),this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=ee,this.typeSupported=L,this.config=W,this.vendor=H,this.id=Z}return Object(a.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),ze=this.currentTransmuxState,ot=this.transmuxConfig;Z&&(this.currentTransmuxState=Z);var ft=Z||ze,Zt=ft.contiguous,Cr=ft.discontinuity,Sr=ft.trackSwitch,Wr=ft.accurateTimeOffset,$r=ft.timeOffset,On=ft.initSegmentChange,Rn=ot.audioCodec,Zn=ot.videoCodec,wi=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,Sr);if(Sa){var Go=this.configureTransmuxer(Te);if(Go)return j.warn("[transmuxer] ".concat(Go.message)),this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:Go,reason:Go.message}),ve.executeEnd=Eo(),hs(H)}(Cr||Sr||On||Sa)&&this.resetInitSegment(Vi,Rn,Zn,ua,W),(Cr||On||Sa)&&this.resetInitialTimestamp(wi),Zt||this.resetContiguity();var bs=this.transmux(Te,Zi,$r,Wr,H),ys=this.currentTransmuxState;return ys.contiguous=!0,ys.discontinuity=!1,ys.trackSwitch=!1,ve.executeEnd=Eo(),bs}},{key:"flush",value:function(L){var W=this,H=L.transmuxing;H.executeStart=Eo();var Z=this.decrypter,ne=this.currentTransmuxState,ve=this.decryptionPromise;if(ve)return ve.then(function(){return W.flush(L)});var Te=[],ze=ne.timeOffset;if(Z){var ot=Z.flush();ot&&Te.push(this.push(ot,null,L))}var ft=this.demuxer,Zt=this.remuxer;if(!ft||!Zt)return H.executeEnd=Eo(),[hs(L)];var Cr=ft.flush(ze);return wn(Cr)?Cr.then(function(Sr){return W.flushRemux(Te,Sr,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,ze=this.currentTransmuxState,ot=ze.accurateTimeOffset,ft=ze.timeOffset;j.log("[transmuxer.ts]: Flushed fragment ".concat(H.sn).concat(H.part>-1?" p: "+H.part:""," of level ").concat(H.level));var Zt=this.remuxer.remux(Z,ne,ve,Te,ft,ot,!0,this.id);L.push({remuxResult:Zt,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,ze=ne.id3Track,ot=ne.textTrack,ft=this.remuxer.remux(ve,Te,ze,ot,W,H,!1,this.id);return{remuxResult:ft,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 ze=ve.remuxer.remux(Te.audioTrack,Te.videoTrack,Te.id3Track,Te.textTrack,H,Z,!1,ve.id);return{remuxResult:ze,chunkMeta:ne}})}},{key:"configureTransmuxer",value:function(L){for(var W=this.config,H=this.observer,Z=this.typeSupported,ne=this.vendor,ve,Te=0,ze=zo.length;Te<ze;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,ft=this.remuxer,Zt=ve.remux,Cr=ve.demux;(!ft||!(ft instanceof Zt))&&(this.remuxer=new Zt(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,ee){var L=null;return Ae.byteLength>0&&ee!=null&&ee.key!=null&&ee.iv!==null&&ee.method!=null&&(L=ee),L}var hs=function(ee){return{remuxResult:{},chunkMeta:ee}};function wn(Ae){return"then"in Ae&&Ae.then instanceof Function}var Ns=Object(a.a)(function Ae(ee,L,W,H,Z){Object(r.a)(this,Ae),this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=ee,this.videoCodec=L,this.initSegmentData=W,this.duration=H,this.defaultInitPts=Z||null}),Ll=Object(a.a)(function Ae(ee,L,W,H,Z,ne){Object(r.a)(this,Ae),this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=ee,this.contiguous=L,this.accurateTimeOffset=W,this.trackSwitch=H,this.timeOffset=Z,this.initSegmentChange=ne}),el={exports:{}};(function(Ae){var ee=Object.prototype.hasOwnProperty,L="~";function W(){}Object.create&&(W.prototype=Object.create(null),new W().__proto__||(L=!1));function H(Te,ze,ot){this.fn=Te,this.context=ze,this.once=ot||!1}function Z(Te,ze,ot,ft,Zt){if(typeof ot!="function")throw new TypeError("The listener must be a function");var Cr=new H(ot,ft||Te,Zt),Sr=L?L+ze:ze;return Te._events[Sr]?Te._events[Sr].fn?Te._events[Sr]=[Te._events[Sr],Cr]:Te._events[Sr].push(Cr):(Te._events[Sr]=Cr,Te._eventsCount++),Te}function ne(Te,ze){--Te._eventsCount===0?Te._events=new W:delete Te._events[ze]}function ve(){this._events=new W,this._eventsCount=0}ve.prototype.eventNames=function(){var ze=[],ot,ft;if(this._eventsCount===0)return ze;for(ft in ot=this._events)ee.call(ot,ft)&&ze.push(L?ft.slice(1):ft);return Object.getOwnPropertySymbols?ze.concat(Object.getOwnPropertySymbols(ot)):ze},ve.prototype.listeners=function(ze){var ot=L?L+ze:ze,ft=this._events[ot];if(!ft)return[];if(ft.fn)return[ft.fn];for(var Zt=0,Cr=ft.length,Sr=new Array(Cr);Zt<Cr;Zt++)Sr[Zt]=ft[Zt].fn;return Sr},ve.prototype.listenerCount=function(ze){var ot=L?L+ze:ze,ft=this._events[ot];return ft?ft.fn?1:ft.length:0},ve.prototype.emit=function(ze,ot,ft,Zt,Cr,Sr){var Wr=L?L+ze:ze;if(!this._events[Wr])return!1;var $r=this._events[Wr],On=arguments.length,Rn,Zn;if($r.fn){$r.once&&this.removeListener(ze,$r.fn,void 0,!0);switch(On){case 1:return $r.fn.call($r.context),!0;case 2:return $r.fn.call($r.context,ot),!0;case 3:return $r.fn.call($r.context,ot,ft),!0;case 4:return $r.fn.call($r.context,ot,ft,Zt),!0;case 5:return $r.fn.call($r.context,ot,ft,Zt,Cr),!0;case 6:return $r.fn.call($r.context,ot,ft,Zt,Cr,Sr),!0}for(Zn=1,Rn=new Array(On-1);Zn<On;Zn++)Rn[Zn-1]=arguments[Zn];$r.fn.apply($r.context,Rn)}else{var wi=$r.length,ua;for(Zn=0;Zn<wi;Zn++){$r[Zn].once&&this.removeListener(ze,$r[Zn].fn,void 0,!0);switch(On){case 1:$r[Zn].fn.call($r[Zn].context);break;case 2:$r[Zn].fn.call($r[Zn].context,ot);break;case 3:$r[Zn].fn.call($r[Zn].context,ot,ft);break;case 4:$r[Zn].fn.call($r[Zn].context,ot,ft,Zt);break;default:if(!Rn)for(ua=1,Rn=new Array(On-1);ua<On;ua++)Rn[ua-1]=arguments[ua];$r[Zn].fn.apply($r[Zn].context,Rn)}}}return!0},ve.prototype.on=function(ze,ot,ft){return Z(this,ze,ot,ft,!1)},ve.prototype.once=function(ze,ot,ft){return Z(this,ze,ot,ft,!0)},ve.prototype.removeListener=function(ze,ot,ft,Zt){var Cr=L?L+ze:ze;if(!this._events[Cr])return this;if(!ot)return ne(this,Cr),this;var Sr=this._events[Cr];if(Sr.fn)Sr.fn===ot&&(!Zt||Sr.once)&&(!ft||Sr.context===ft)&&ne(this,Cr);else{for(var Wr=0,$r=[],On=Sr.length;Wr<On;Wr++)(Sr[Wr].fn!==ot||Zt&&!Sr[Wr].once||ft&&Sr[Wr].context!==ft)&&$r.push(Sr[Wr]);$r.length?this._events[Cr]=$r.length===1?$r[0]:$r:ne(this,Cr)}return this},ve.prototype.removeAllListeners=function(ze){var ot;return ze?(ot=L?L+ze:ze,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=er()||{isTypeSupported:function(){return!1}},Qs=function(){function Ae(ee,L,W,H){var Z=this;Object(r.a)(this,Ae),this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;var ne=ee.config;this.hls=ee,this.id=L,this.useWorker=!!ne.enableWorker,this.onTransmuxComplete=W,this.onFlush=H;var ve=function(Cr,Sr){Sr=Sr||{},Sr.frag=Z.frag,Sr.id=Z.id,Cr===w.ERROR&&(Z.error=Sr.error),Z.hls.trigger(Cr,Sr)};this.observer=new ds,this.observer.on(w.FRAG_DECRYPTED,ve),this.observer.on(w.ERROR,ve);var Te={mp4:ks.isTypeSupported("video/mp4"),mpeg:ks.isTypeSupported("audio/mpeg"),mp3:ks.isTypeSupported('audio/mp4; codecs="mp3"')},ze=navigator.vendor;if(this.useWorker&&typeof Worker!="undefined"){var 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(Zt){return Z.onWorkerMessage(Zt)};var ft=this.workerContext.worker;ft.addEventListener("message",this.onwmsg),ft.onerror=function(Zt){var Cr=new Error("".concat(Zt.message," (").concat(Zt.filename,":").concat(Zt.lineno,")"));ne.enableWorker=!1,j.warn('Error in "'.concat(L,'" Web Worker, fallback to inline')),Z.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:Cr})},ft.postMessage({cmd:"init",typeSupported:Te,vendor:ze,id:L,config:JSON.stringify(ne)})}catch(Zt){j.warn('Error setting up "'.concat(L,'" Web Worker, fallback to inline'),Zt),this.resetWorker(),this.error=null,this.transmuxer=new Fs(this.observer,Te,ne,ze,L)}return}}this.transmuxer=new Fs(this.observer,Te,ne,ze,L)}return Object(a.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,ze,ot,ft){var Zt=this,Cr,Sr;ot.transmuxing.start=self.performance.now();var Wr=this.transmuxer,$r=ve?ve.start:ne.start,On=ne.decryptdata,Rn=this.frag,Zn=!(Rn&&ne.cc===Rn.cc),wi=!(Rn&&ot.level===Rn.level),ua=Rn?ot.sn-Rn.sn:-1,Vi=this.part?ot.part-this.part.index:-1,Zi=ua===0&&ot.id>1&&ot.id===(Rn==null?void 0:Rn.stats.chunkCount),ka=!wi&&(ua===1||ua===0&&(Vi===1||Zi&&Vi<=0)),Ga=self.performance.now();(wi||ua||ne.stats.parsing.start===0)&&(ne.stats.parsing.start=Ga),ve&&(Vi||!ka)&&(ve.stats.parsing.start=Ga);var Ba=!(Rn&&((Cr=ne.initSegment)==null?void 0:Cr.url)===((Sr=Rn.initSegment)==null?void 0:Sr.url)),Sa=new Ll(Zn,ka,ze,wi,$r,Ba);if(!ka||Zn||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(Zn,`
trackSwitch: `).concat(wi,`
contiguous: `).concat(ka,`
accurateTimeOffset: `).concat(ze,`
timeOffset: `).concat($r,`
initSegmentChange: `).concat(Ba));var Go=new Ns(H,Z,W,Te,ft);this.configureTransmuxer(Go)}if(this.frag=ne,this.part=ve,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:L,decryptdata:On,chunkMeta:ot,state:Sa},L instanceof ArrayBuffer?[L]:[]);else if(Wr){var bs=Wr.push(L,On,ot,Sa);wn(bs)?(Wr.async=!0,bs.then(function(ys){Zt.handleTransmuxComplete(ys)}).catch(function(ys){Zt.transmuxerError(ys,ot,"transmuxer-interface push error")})):(Wr.async=!1,this.handleTransmuxComplete(bs))}}},{key:"flush",value:function(L){var W=this;L.transmuxing.start=self.performance.now();var H=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:L});else if(H){var Z=H.flush(L),ne=wn(Z);ne||H.async?(wn(Z)||(Z=Promise.resolve(Z)),Z.then(function(ve){W.handleFlushResult(ve,L)}).catch(function(ve){W.transmuxerError(ve,L,"transmuxer-interface flush error")})):this.handleFlushResult(Z,L)}}},{key:"transmuxerError",value:function(L,W,H){if(!this.hls)return;this.error=L,this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,chunkMeta:W,fatal:!1,error:L,err:L,reason:H})}},{key:"handleFlushResult",value:function(L,W){var H=this;L.forEach(function(Z){H.handleTransmuxComplete(Z)}),this.onFlush(W)}},{key:"onWorkerMessage",value:function(L){var W=L.data,H=this.hls;switch(W.event){case"init":{var Z,ne=(Z=this.workerContext)==null?void 0:Z.objectURL;ne&&self.URL.revokeObjectURL(ne);break}case"transmuxComplete":{this.handleTransmuxComplete(W.data);break}case"flush":{this.onFlush(W.data);break}case"workerLog":j[W.data.logType]&&j[W.data.logType](W.data.message);break;default:{W.data=W.data||{},W.data.frag=this.frag,W.data.id=this.id,H.trigger(W.event,W.data);break}}}},{key:"configureTransmuxer",value:function(L){var W=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:L}):W&&W.configure(L)}},{key:"handleTransmuxComplete",value:function(L){L.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(L)}}]),Ae}(),tl=250,xs=2,Bs=.1,al=.05,Js=function(){function Ae(ee,L,W,H){Object(r.a)(this,Ae),this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=ee,this.media=L,this.fragmentTracker=W,this.hls=H}return Object(a.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,ze=this.seeking&&!Te,ot=!this.seeking&&Te;if(this.seeking=Te,ve!==L){if(this.moved=!0,ne!==null){if(this.stallReported){var ft=self.performance.now()-ne;j.warn("playback not stuck anymore @".concat(ve,", after ").concat(Math.round(ft),"ms")),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if(ot||ze){this.stalled=null;return}if(Z.paused&&!Te||Z.ended||Z.playbackRate===0||!Ii.getBuffered(Z).length)return;var Zt=Ii.bufferInfo(Z,ve,0),Cr=Zt.len>0,Sr=Zt.nextStart||0;if(!Cr&&!Sr)return;if(Te){var Wr=Zt.len>xs,$r=!Sr||W&&W.start<=ve||Sr-ve>xs&&!this.fragmentTracker.getPartialFragment(ve);if(Wr||$r)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var On,Rn=Math.max(Sr,Zt.start||0)-ve,Zn=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,wi=Zn==null||(On=Zn.details)==null?void 0:On.live,ua=wi?Zn.details.targetduration*2:xs,Vi=this.fragmentTracker.getPartialFragment(ve);if(Rn>0&&(Rn<=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(Zt),!this.media))return;var Ga=Ii.bufferInfo(Z,ve,H.maxBufferHole);this._tryFixBufferStall(Ga,ka)}},{key:"_tryFixBufferStall",value:function(L,W){var H=this.config,Z=this.fragmentTracker,ne=this.media;if(ne===null)return;var ve=ne.currentTime,Te=Z.getPartialFragment(ve);if(Te){var ze=this._trySkipBufferHole(Te);if(ze||!this.media)return}(L.len>H.maxBufferHole||L.nextStart&&L.nextStart-ve<H.maxBufferHole)&&W>H.highBufferWatchdogPeriod*1e3&&(j.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},{key:"_reportStall",value:function(L){var W=this.hls,H=this.media,Z=this.stallReported;if(!Z&&H){this.stallReported=!0;var ne=new Error("Playback stalling at @".concat(H.currentTime," due to low buffer (").concat(JSON.stringify(L),")"));j.warn(ne.message),W.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_STALLED_ERROR,fatal:!1,error:ne,buffer:L.len})}}},{key:"_trySkipBufferHole",value:function(L){var W=this.config,H=this.hls,Z=this.media;if(Z===null)return 0;var ne=Z.currentTime,ve=Ii.bufferInfo(Z,ne,0),Te=ne<ve.start?ve.start:ve.nextStart;if(Te){var ze=ve.len<=W.maxBufferHole,ot=ve.len>0&&ve.len<1&&Z.readyState<3,ft=Te-ne;if(ft>0&&(ze||ot)){if(ft>W.maxBufferHole){var Zt=this.fragmentTracker,Cr=!1;if(ne===0){var Sr=Zt.getAppendedFrag(0,gt.MAIN);Sr&&Te<Sr.end&&(Cr=!0)}if(!Cr){var Wr=L||Zt.getAppendedFrag(ne,gt.MAIN);if(Wr){for(var $r=!1,On=Wr.end;On<Te;){var Rn=Zt.getPartialFragment(On);if(Rn)On+=Rn.duration;else{$r=!0;break}}if($r)return 0}}}var Zn=Math.max(Te+al,ne+Bs);if(j.warn("skipping hole, adjusting currentTime from ".concat(ne," to ").concat(Zn)),this.moved=!0,this.stalled=null,Z.currentTime=Zn,L&&!L.gap){var wi=new Error("fragment loaded with buffer holes, seeking from ".concat(ne," to ").concat(Zn));H.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:wi,reason:wi.message,frag:L})}return Zn}}return 0}},{key:"_tryNudgeBuffer",value:function(){var L=this.config,W=this.hls,H=this.media,Z=this.nudgeRetry;if(H===null)return;var ne=H.currentTime;if(this.nudgeRetry++,Z<L.nudgeMaxRetry){var ve=ne+(Z+1)*L.nudgeOffset,Te=new Error("Nudging 'currentTime' from ".concat(ne," to ").concat(ve));j.warn(Te.message),H.currentTime=ve,W.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_NUDGE_ON_STALL,error:Te,fatal:!1})}else{var ze=new Error("Playhead still not moving while enough data buffered @".concat(ne," after ").concat(L.nudgeMaxRetry," nudges"));j.error(ze.message),W.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_STALLED_ERROR,error:ze,fatal:!0})}}}]),Ae}(),Vo=100,No=function(Ae){Object(s.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z){var ne;return Object(r.a)(this,L),ne=ee.call(this,W,H,Z,"[stream-controller]",gt.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(a.a)(L,[{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),H.on(w.ERROR,this.onError,this),H.on(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.on(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.on(w.BUFFER_CREATED,this.onBufferCreated,this),H.on(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.on(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),H.off(w.ERROR,this.onError,this),H.off(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.off(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.off(w.BUFFER_CREATED,this.onBufferCreated,this),H.off(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.off(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.onMediaDetaching()}},{key:"startLoad",value:function(H){if(this.levels){var Z=this.lastCurrentTime,ne=this.hls;if(this.stopLoad(),this.setInterval(Vo),this.level=-1,!this.startFragRequested){var ve=ne.startLevel;ve===-1&&(ne.config.testBandwidth&&this.levels.length>1?(ve=0,this.bitrateTest=!0):ve=ne.nextAutoLevel),this.level=ne.nextLoadLevel=ve,this.loadedmetadata=!1}Z>0&&H===-1&&(this.log("Override startPosition with lastCurrentTime @".concat(Z.toFixed(3))),H=Z),this.state=Fi.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}else this._forceStartLoad=!0,this.state=Fi.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 Fi.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=Fi.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Fi.IDLE;break}break}case Fi.FRAG_LOADING_WAITING_RETRY:{var Te,ze=self.performance.now(),ot=this.retryDate;(!ot||ze>=ot||(Te=this.media)!=null&&Te.seeking)&&(this.resetStartWhenNotLoaded(this.level),this.state=Fi.IDLE)}break}this.state===Fi.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,ze=H.nextLoadLevel;if(Z===null||!ve&&(this.startFragRequested||!Te.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!(ne!=null&&ne[ze]))return;var ot=ne[ze],ft=this.getMainFwdBufferInfo();if(ft===null)return;var Zt=this.getLevelDetails();if(Zt&&this._streamEnded(ft,Zt)){var Cr={};this.altAudio&&(Cr.type="video"),this.hls.trigger(w.BUFFER_EOS,Cr),this.state=Fi.ENDED;return}H.loadLevel!==ze&&H.manualLevel===-1&&this.log("Adapting to level ".concat(ze," from level ").concat(this.level)),this.level=H.nextLoadLevel=ze;var Sr=ot.details;if(!Sr||this.state===Fi.WAITING_LEVEL||Sr.live&&this.levelLastLoaded!==ze){this.level=ze,this.state=Fi.WAITING_LEVEL;return}var Wr=ft.len,$r=this.getMaxBufferLength(ot.maxBitrate);if(Wr>=$r)return;this.backtrackFragment&&this.backtrackFragment.start>ft.end&&(this.backtrackFragment=null);var On=this.backtrackFragment?this.backtrackFragment.start:ft.end,Rn=this.getNextFragment(On,Sr);if(this.couldBacktrack&&!this.fragPrevious&&Rn&&Rn.sn!=="initSegment"&&this.fragmentTracker.getState(Rn)!==_t.OK){var Zn,wi=((Zn=this.backtrackFragment)!=null?Zn:Rn).sn,ua=wi-Sr.startSN,Vi=Sr.fragments[ua-1];Vi&&Rn.cc===Vi.cc&&(Rn=Vi,this.fragmentTracker.removeFragment(Vi))}else this.backtrackFragment&&ft.len&&(this.backtrackFragment=null);if(Rn&&this.isLoopLoading(Rn,On)){var Zi=Rn.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,gt.MAIN)}Rn=this.getNextFragmentLoopLoading(Rn,Sr,ft,gt.MAIN,$r)}if(!Rn)return;Rn.initSegment&&!Rn.initSegment.data&&!this.bitrateTest&&(Rn=Rn.initSegment),this.loadFragment(Rn,ot,On)}},{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,gt.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 ze=this.getMainFwdBufferInfo();if(!ze||ze.len<Te.targetduration*2)return}if(!Z.paused&&H){var ot=this.hls.nextLoadLevel,ft=H[ot],Zt=this.fragLastKbps;Zt&&this.fragCurrent?ne=this.fragCurrent.duration*ft.maxBitrate/(1e3*Zt)+1:ne=0}else ne=0;var Cr=this.getBufferedFrag(Z.currentTime+ne);if(Cr){var Sr=this.followingBufferedFrag(Cr);if(Sr){this.abortCurrentFrag();var Wr=Sr.maxStartPTS?Sr.maxStartPTS:Sr.start,$r=Sr.duration,On=Math.max(Cr.end,Wr+Math.min(Math.max($r-this.config.maxFragLookUpTolerance,$r*.5),$r*.75));this.flushMainBuffer(On,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 Fi.KEY_LOADING:case Fi.FRAG_LOADING:case Fi.FRAG_LOADING_WAITING_RETRY:case Fi.PARSING:case Fi.PARSED:this.state=Fi.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(w.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=0,this.levels=this.fragPlaying=this.backtrackFragment=null,this.altAudio=this.audioOnly=!1}},{key:"onManifestParsed",value:function(H,Z){var ne=!1,ve=!1,Te;Z.levels.forEach(function(ze){Te=ze.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!==Fi.IDLE)return;var ve=ne[Z.level];(!ve.details||ve.details.live&&this.levelLastLoaded!==Z.level||this.waitForCdnTuneIn(ve.details))&&(this.state=Fi.WAITING_LEVEL)}},{key:"onLevelLoaded",value:function(H,Z){var ne,ve=this.levels,Te=Z.level,ze=Z.details,ot=ze.totalduration;if(!ve){this.warn("Levels were reset while loading level ".concat(Te));return}this.log("Level ".concat(Te," loaded [").concat(ze.startSN,",").concat(ze.endSN,"]").concat(ze.lastPartSn?"[part-".concat(ze.lastPartSn,"-").concat(ze.lastPartIndex,"]"):"",", cc [").concat(ze.startCC,", ").concat(ze.endCC,"] duration:").concat(ot));var ft=ve[Te],Zt=this.fragCurrent;Zt&&(this.state===Fi.FRAG_LOADING||this.state===Fi.FRAG_LOADING_WAITING_RETRY)&&((Zt.level!==Z.level||Zt.urlId!==ft.urlId)&&Zt.loader&&this.abortCurrentFrag());var Cr=0;if(ze.live||(ne=ft.details)!=null&&ne.live){if(this.checkLiveUpdate(ze),ze.deltaUpdateFailed)return;Cr=this.alignPlaylists(ze,ft.details)}if(ft.details=ze,this.levelLastLoaded=Te,this.hls.trigger(w.LEVEL_UPDATED,{details:ze,level:Te}),this.state===Fi.WAITING_LEVEL){if(this.waitForCdnTuneIn(ze))return;this.state=Fi.IDLE}this.startFragRequested?ze.live&&this.synchronizeToLiveEdge(ze):this.setStartPosition(ze,Cr),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(H){var Z,ne=H.frag,ve=H.part,Te=H.payload,ze=this.levels;if(!ze){this.warn("Levels were reset while fragment load was in progress. Fragment ".concat(ne.sn," of level ").concat(ne.level," will not be buffered"));return}var ot=ze[ne.level],ft=ot.details;if(!ft){this.warn("Dropping fragment ".concat(ne.sn," of level ").concat(ne.level," after level details were reset")),this.fragmentTracker.removeFragment(ne);return}var Zt=ot.videoCodec,Cr=ft.PTSKnown||!ft.live,Sr=(Z=ne.initSegment)==null?void 0:Z.data,Wr=this._getAudioCodec(ot),$r=this.transmuxer=this.transmuxer||new Qs(this.hls,gt.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),On=ve?ve.index:-1,Rn=On!==-1,Zn=new zi(ne.level,ne.sn,ne.stats.chunkCount,Te.byteLength,On,Rn),wi=this.initPTS[ne.cc];$r.push(Te,Sr,Wr,Zt,ne,ve,ft.totalduration,Cr,Zn,wi)}},{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 ze=this.hls;ne&&(ze.trigger(w.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),ze.trigger(w.AUDIO_TRACK_SWITCHED,Z)}}},{key:"onAudioTrackSwitched",value:function(H,Z){var ne=Z.id,ve=!!this.hls.audioTracks[ne].url;if(ve){var 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,ze=!1;for(var ot in ne){var ft=ne[ot];if(ft.id==="main"){if(Te=ot,ve=ft,ot==="video"){var Zt=ne[ot];Zt&&(this.videoBuffer=Zt.buffer)}}else ze=!0}ze&&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!==gt.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===Fi.PARSED&&(this.state=Fi.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=Fi.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(gt.MAIN,Z);break;case I.LEVEL_LOAD_ERROR:case I.LEVEL_LOAD_TIMEOUT:case I.LEVEL_PARSING_ERROR:!Z.levelRetry&&this.state===Fi.WAITING_LEVEL&&((ne=Z.context)==null?void 0:ne.type)===Et.LEVEL&&(this.state=Fi.IDLE);break;case I.BUFFER_FULL_ERROR:if(!Z.parent||Z.parent!=="main")return;this.reduceLengthAndFlushBuffer(Z)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case I.INTERNAL_EXCEPTION:this.recoverWorkerError(Z);break}}},{key:"checkBuffer",value:function(){var H=this.media,Z=this.gapController;if(!H||!Z||!H.readyState)return;if(this.loadedmetadata||!Ii.getBuffered(H).length){var ne=this.state!==Fi.IDLE?this.fragCurrent:null;Z.poll(this.lastCurrentTime,ne)}this.lastCurrentTime=H.currentTime}},{key:"onFragLoadEmergencyAborted",value:function(){this.state=Fi.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,gt.MAIN)}}},{key:"onLevelsUpdated",value:function(H,Z){this.levels=Z.levels}},{key:"swapAudioCodec",value:function(){this.audioCodecSwap=!this.audioCodecSwap}},{key:"seekToStartPos",value:function(){var H=this.media;if(!H)return;var Z=H.currentTime,ne=this.startPosition;if(ne>=0&&Z<ne){if(H.seeking){this.log("could not seek to ".concat(ne,", already seeking at ").concat(Z));return}var ve=Ii.getBuffered(H),Te=ve.length?ve.start(0):0,ze=Te-ne;ze>0&&(ze<this.config.maxBufferHole||ze<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by ".concat(ze," to match buffer start")),ne+=ze,this.startPosition=ne),this.log("seek to target start position ".concat(ne," from current time ").concat(Z)),H.currentTime=ne}}},{key:"_getAudioCodec",value:function(H){var Z=this.config.defaultAudioCodec||H.audioCodec;return this.audioCodecSwap&&Z&&(this.log("Swapping audio codec"),Z.indexOf("mp4a.40.5")!==-1?Z="mp4a.40.2":Z="mp4a.40.5"),Z}},{key:"_loadBitrateTestFrag",value:function(H,Z){var ne=this;H.bitrateTest=!0,this._doFragLoad(H,Z).then(function(ve){var Te=ne.hls;if(!ve||ne.fragContextChanged(H))return;Z.fragmentError=0,ne.state=Fi.IDLE,ne.startFragRequested=!1,ne.bitrateTest=!1;var ze=H.stats;ze.parsing.start=ze.parsing.end=ze.buffering.start=ze.buffering.end=self.performance.now(),Te.trigger(w.FRAG_LOADED,ve),H.bitrateTest=!1})}},{key:"_handleTransmuxComplete",value:function(H){var Z,ne="main",ve=this.hls,Te=H.remuxResult,ze=H.chunkMeta,ot=this.getCurrentContext(ze);if(!ot){this.resetWhenMissingContext(ze);return}var ft=ot.frag,Zt=ot.part,Cr=ot.level,Sr=Te.video,Wr=Te.text,$r=Te.id3,On=Te.initSegment,Rn=Cr.details,Zn=this.altAudio?void 0:Te.audio;if(this.fragContextChanged(ft)){this.fragmentTracker.removeFragment(ft);return}if(this.state=Fi.PARSING,On){if(On!=null&&On.tracks){var wi=ft.initSegment||ft;this._bufferInitSegment(Cr,On.tracks,wi,ze),ve.trigger(w.FRAG_PARSING_INIT_SEGMENT,{frag:wi,id:ne,tracks:On.tracks})}var ua=On.initPTS,Vi=On.timescale;T(ua)&&(this.initPTS[ft.cc]={baseTime:ua,timescale:Vi},ve.trigger(w.INIT_PTS_FOUND,{frag:ft,id:ne,initPTS:ua,timescale:Vi}))}if(Sr&&Rn&&ft.sn!=="initSegment"){var Zi=Rn.fragments[ft.sn-1-Rn.startSN],ka=ft.sn===Rn.startSN,Ga=!Zi||ft.cc>Zi.cc;if(Te.independent!==!1){var Ba=Sr.startPTS,Sa=Sr.endPTS,Go=Sr.startDTS,bs=Sr.endDTS;if(Zt)Zt.elementaryStreams[Sr.type]={startPTS:Ba,endPTS:Sa,startDTS:Go,endDTS:bs};else if(Sr.firstKeyFrame&&Sr.independent&&ze.id===1&&!Ga&&(this.couldBacktrack=!0),Sr.dropped&&Sr.independent){var ys=this.getMainFwdBufferInfo(),Cs=(ys?ys.end:this.getLoadPosition())+this.config.maxBufferHole,js=Sr.firstKeyFramePTS?Sr.firstKeyFramePTS:Ba;if(!ka&&Cs<js-this.config.maxBufferHole&&!Ga){this.backtrack(ft);return}else Ga&&(ft.gap=!0);ft.setElementaryStreamInfo(Sr.type,ft.start,Sa,ft.start,bs,!0)}ft.setElementaryStreamInfo(Sr.type,Ba,Sa,Go,bs),this.backtrackFragment&&(this.backtrackFragment=ft),this.bufferFragmentData(Sr,ft,Zt,ze,ka||Ga)}else if(ka||Ga)ft.gap=!0;else{this.backtrack(ft);return}}if(Zn){var ws=Zn.startPTS,Hs=Zn.endPTS,Ee=Zn.startDTS,Ye=Zn.endDTS;Zt&&(Zt.elementaryStreams[le.AUDIO]={startPTS:ws,endPTS:Hs,startDTS:Ee,endDTS:Ye}),ft.setElementaryStreamInfo(le.AUDIO,ws,Hs,Ee,Ye),this.bufferFragmentData(Zn,ft,Zt,ze)}if(Rn&&$r!=null&&(Z=$r.samples)!=null&&Z.length){var Tt={id:ne,frag:ft,details:Rn,samples:$r.samples};ve.trigger(w.FRAG_PARSING_METADATA,Tt)}if(Rn&&Wr){var dr={id:ne,frag:ft,details:Rn,samples:Wr.samples};ve.trigger(w.FRAG_PARSING_USERDATA,dr)}}},{key:"_bufferInitSegment",value:function(H,Z,ne,ve){var Te=this;if(this.state!==Fi.PARSING)return;this.audioOnly=!!Z.audio&&!Z.video,this.altAudio&&!this.audioOnly&&delete Z.audio;var ze=Z.audio,ot=Z.video,ft=Z.audiovideo;if(ze){var Zt=H.audioCodec,Cr=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(Zt&&(Zt.indexOf("mp4a.40.5")!==-1?Zt="mp4a.40.2":Zt="mp4a.40.5"),ze.metadata.channelCount!==1&&Cr.indexOf("firefox")===-1&&(Zt="mp4a.40.5")),Cr.indexOf("android")!==-1&&ze.container!=="audio/mpeg"&&(Zt="mp4a.40.2",this.log("Android: force audio codec to ".concat(Zt))),H.audioCodec&&H.audioCodec!==Zt&&this.log('Swapping manifest audio codec "'.concat(H.audioCodec,'" for "').concat(Zt,'"')),ze.levelCodec=Zt,ze.id="main",this.log("Init audio buffer, container:".concat(ze.container,", codecs[selected/level/parsed]=[").concat(Zt||"","/").concat(H.audioCodec||"","/").concat(ze.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,"]"))),ft&&this.log("Init audiovideo buffer, container:".concat(ft.container,", codecs[level/parsed]=[").concat(H.attrs.CODECS||"","/").concat(ft.codec,"]")),this.hls.trigger(w.BUFFER_CODECS,Z),Object.keys(Z).forEach(function(Sr){var Wr=Z[Sr],$r=Wr.initSegment;$r!=null&&$r.byteLength&&Te.hls.trigger(w.BUFFER_APPENDING,{type:Sr,data:$r,frag:ne,part:null,chunkMeta:ve,parent:ne.type})}),this.tick()}},{key:"getMainFwdBufferInfo",value:function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,gt.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=Fi.IDLE}},{key:"checkFragmentChanged",value:function(){var H=this.media,Z=null;if(H&&H.readyState>1&&H.seeking===!1){var ne=H.currentTime;if(Ii.isBuffered(H,ne)?Z=this.getAppendedFrag(ne):Ii.isBuffered(H,ne+.1)&&(Z=this.getAppendedFrag(ne+.1)),Z){this.backtrackFragment=null;var ve=this.fragPlaying,Te=Z.level;(!ve||Z.sn!==ve.sn||ve.level!==Te||Z.urlId!==ve.urlId)&&(this.fragPlaying=Z,this.hls.trigger(w.FRAG_CHANGED,{frag:Z}),(!ve||ve.level!==Te)&&this.hls.trigger(w.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(ee){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Object(r.a)(this,Ae),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=ee,this.alpha_=ee?Math.exp(Math.log(.5)/ee):0,this.estimate_=L,this.totalWeight_=W}return Object(a.a)(Ae,[{key:"sample",value:function(L,W){var H=Math.pow(this.alpha_,L);this.estimate_=W*(1-H)+H*this.estimate_,this.totalWeight_+=L}},{key:"getTotalWeight",value:function(){return this.totalWeight_}},{key:"getEstimate",value:function(){if(this.alpha_){var L=1-Math.pow(this.alpha_,this.totalWeight_);if(L)return this.estimate_/L}return this.estimate_}}]),Ae}(),Ds=function(){function Ae(ee,L,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:100;Object(r.a)(this,Ae),this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=W,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new fs(ee),this.fast_=new fs(L),this.defaultTTFB_=H,this.ttfb_=new fs(ee)}return Object(a.a)(Ae,[{key:"update",value:function(L,W){var H=this.slow_,Z=this.fast_,ne=this.ttfb_;H.halfLife!==L&&(this.slow_=new fs(L,H.getEstimate(),H.getTotalWeight())),Z.halfLife!==W&&(this.fast_=new fs(W,Z.getEstimate(),Z.getTotalWeight())),ne.halfLife!==L&&(this.ttfb_=new fs(L,ne.getEstimate(),ne.getTotalWeight()))}},{key:"sample",value:function(L,W){L=Math.max(L,this.minDelayMs_);var H=8*W,Z=L/1e3,ne=H/Z;this.fast_.sample(Z,ne),this.slow_.sample(Z,ne)}},{key:"sampleTTFB",value:function(L){var W=L/1e3,H=Math.sqrt(2)*Math.exp(-Math.pow(W,2)/2);this.ttfb_.sample(H,Math.max(L,5))}},{key:"canEstimate",value:function(){return this.fast_.getTotalWeight()>=this.minWeight_}},{key:"getEstimate",value:function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}},{key:"getEstimateTTFB",value:function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}},{key:"destroy",value:function(){}}]),Ae}(),go=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=-1,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=ee;var L=ee.config;this.bwEstimator=new Ds(L.abrEwmaSlowVoD,L.abrEwmaFastVoD,L.abrEwmaDefaultEstimate),this.registerListeners()}return Object(a.a)(Ae,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.FRAG_LOADING,this.onFragLoading,this),L.on(w.FRAG_LOADED,this.onFragLoaded,this),L.on(w.FRAG_BUFFERED,this.onFragBuffered,this),L.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),L.on(w.LEVEL_LOADED,this.onLevelLoaded,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.FRAG_LOADING,this.onFragLoading,this),L.off(w.FRAG_LOADED,this.onFragLoaded,this),L.off(w.FRAG_BUFFERED,this.onFragBuffered,this),L.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),L.off(w.LEVEL_LOADED,this.onLevelLoaded,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null}},{key:"onFragLoading",value:function(L,W){var H,Z=W.frag;if(this.ignoreFragment(Z))return;this.fragCurrent=Z,this.partCurrent=(H=W.part)!=null?H:null,this.clearTimer(),this.timer=self.setInterval(this.onCheck,100)}},{key:"onLevelSwitching",value:function(L,W){this.clearTimer()}},{key:"getTimeToLoadFrag",value:function(L,W,H,Z){var ne=L+H/W,ve=Z?this.lastLevelLoadSec:0;return ne+ve}},{key:"onLevelLoaded",value:function(L,W){var H=this.hls.config,Z=W.stats,ne=Z.total,ve=Z.bwEstimate;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,ze=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 ft=H.mainForwardBufferInfo;if(ft===null)return;var Zt=this.bwEstimator.getEstimateTTFB(),Cr=Math.abs(ne.playbackRate);if(ot<=Math.max(Zt,1e3*(ze/(Cr*2))))return;var Sr=ft.len/Cr;if(Sr>=2*ze/Cr)return;var Wr=Te.loading.first?Te.loading.first-Te.loading.start:-1,$r=Te.loaded&&Wr>-1,On=this.bwEstimator.getEstimate(),Rn=H.levels,Zn=H.minAutoLevel,wi=Rn[L.level],ua=Te.total||Math.max(Te.loaded,Math.round(ze*wi.maxBitrate/8)),Vi=ot-Wr;Vi<1&&$r&&(Vi=Math.min(ot,Te.loaded*8/On));var Zi=$r?Te.loaded*1e3/Vi:0,ka=Zi?(ua-Te.loaded)/Zi:ua*8/On+Zt/1e3;if(ka<=Sr)return;var Ga=Zi?Zi*8:On,Ba=Number.POSITIVE_INFINITY,Sa;for(Sa=L.level-1;Sa>Zn;Sa--){var Go=Rn[Sa].maxBitrate;if(Ba=this.getTimeToLoadFrag(Zt/1e3,Ga,ze*Go,!Rn[Sa].details),Ba<Sr)break}if(Ba>=ka)return;if(Ba>ze*10)return;H.nextLoadLevel=Sa,$r?this.bwEstimator.sample(ot-Math.min(Zt,Wr),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(Sr.toFixed(3),` s
Estimated load time for current fragment: `).concat(ka.toFixed(3),` s
Estimated load time for down switch fragment: `).concat(Ba.toFixed(3),` s
TTFB estimate: `).concat(Wr,`
Current BW estimate: `).concat(T(On)?(On/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(w.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===gt.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],ze=(Te.loaded?Te.loaded.bytes:0)+ne.loaded,ot=(Te.loaded?Te.loaded.duration:0)+ve;Te.loaded={bytes:ze,duration:ot},Te.realBitrate=Math.round(8*ze/ot)}if(H.bitrateTest){var ft={stats:ne,frag:H,part:Z,id:H.type};this.onFragBuffered(w.FRAG_BUFFERED,ft),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!==gt.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,ze=W?W.duration:L?L.duration:0,ot=Te&&Te.playbackRate!==0?Math.abs(Te.playbackRate):1,ft=this.bwEstimator?this.bwEstimator.getEstimate():ne.abrEwmaDefaultEstimate,Zt=H.mainForwardBufferInfo,Cr=(Zt?Zt.len:0)/ot,Sr=this.findBestLevel(ft,ve,Z,Cr,ne.abrBandWidthFactor,ne.abrBandWidthUpFactor);if(Sr>=0)return Sr;j.trace("[abr] ".concat(Cr?"rebuffering expected":"buffer is empty",", finding optimal quality level"));var Wr=ze?Math.min(ze,ne.maxStarvationDelay):ne.maxStarvationDelay,$r=ne.abrBandWidthFactor,On=ne.abrBandWidthUpFactor;if(!Cr){var Rn=this.bitrateTestDelay;if(Rn){var Zn=ze?Math.min(ze,ne.maxLoadingDelay):ne.maxLoadingDelay;Wr=Zn-Rn,j.trace("[abr] bitrate test took ".concat(Math.round(1e3*Rn),"ms, set first fragment max fetchDuration to ").concat(Math.round(1e3*Wr)," ms")),$r=On=1}}return Sr=this.findBestLevel(ft,ve,Z,Cr+Wr,$r,On),Math.max(Sr,0)}},{key:"findBestLevel",value:function(L,W,H,Z,ne,ve){for(var Te,ze=this.fragCurrent,ot=this.partCurrent,ft=this.lastLoadedFragLevel,Zt=this.hls.levels,Cr=Zt[ft],Sr=!!(Cr!=null&&(Te=Cr.details)!=null&&Te.live),Wr=Cr==null?void 0:Cr.codecSet,$r=ot?ot.duration:ze?ze.duration:0,On=this.bwEstimator.getEstimateTTFB()/1e3,Rn=W,Zn=-1,wi=H;wi>=W;wi--){var ua=Zt[wi];if(!ua||Wr&&ua.codecSet!==Wr){ua&&(Rn=Math.min(wi,Rn),Zn=Math.max(wi,Zn));continue}Zn!==-1&&j.trace("[abr] Skipped level(s) ".concat(Rn,"-").concat(Zn,' with CODECS:"').concat(Zt[Zn].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)||$r,ka=void 0;wi<=ft?ka=ne*L:ka=ve*L;var Ga=Zt[wi].maxBitrate,Ba=this.getTimeToLoadFrag(On,ka,Ga*Zi,Vi===void 0);if(j.trace("[abr] level:".concat(wi," 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)||Sr&&!this.bitrateTestDelay||Ba<Z))return wi}return-1}}]),Ae}(),Ut=function(){function Ae(){Object(r.a)(this,Ae),this.chunks=[],this.dataLength=0}return Object(a.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=or(L,W);else return new Uint8Array(0);return this.reset(),H}},{key:"reset",value:function(){this.chunks.length=0,this.dataLength=0}}]),Ae}();function or(Ae,ee){for(var L=new Uint8Array(ee),W=0,H=0;H<Ae.length;H++){var Z=Ae[H];L.set(Z,W),W+=Z.length}return L}var Nn=100,hi=function(Ae){Object(s.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z){var ne;return Object(r.a)(this,L),ne=ee.call(this,W,H,Z,"[audio-stream-controller]",gt.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(a.a)(L,[{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}},{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),H.on(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.on(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.on(w.ERROR,this.onError,this),H.on(w.BUFFER_RESET,this.onBufferReset,this),H.on(w.BUFFER_CREATED,this.onBufferCreated,this),H.on(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.on(w.INIT_PTS_FOUND,this.onInitPtsFound,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),H.off(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.off(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.off(w.ERROR,this.onError,this),H.off(w.BUFFER_RESET,this.onBufferReset,this),H.off(w.BUFFER_CREATED,this.onBufferCreated,this),H.off(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.off(w.INIT_PTS_FOUND,this.onInitPtsFound,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onInitPtsFound",value:function(H,Z){var ne=Z.frag,ve=Z.id,Te=Z.initPTS,ze=Z.timescale;if(ve==="main"){var ot=ne.cc;this.initPTS[ne.cc]={baseTime:Te,timescale:ze},this.log("InitPTS for cc: ".concat(ot," found from main: ").concat(Te)),this.videoTrackCC=ot,this.state===Fi.WAITING_INIT_PTS&&this.tick()}}},{key:"startLoad",value:function(H){if(!this.levels){this.startPosition=H,this.state=Fi.STOPPED;return}var Z=this.lastCurrentTime;this.stopLoad(),this.setInterval(Nn),Z>0&&H===-1?(this.log("Override startPosition with lastCurrentTime @".concat(Z.toFixed(3))),H=Z,this.state=Fi.IDLE):(this.loadedmetadata=!1,this.state=Fi.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}},{key:"doTick",value:function(){switch(this.state){case Fi.IDLE:this.doTickIdle();break;case Fi.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=Fi.WAITING_INIT_PTS}break}case Fi.FRAG_LOADING_WAITING_RETRY:{var Te,ze=performance.now(),ot=this.retryDate;(!ot||ze>=ot||(Te=this.media)!=null&&Te.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(this.trackId),this.state=Fi.IDLE);break}case Fi.WAITING_INIT_PTS:{var ft=this.waitingData;if(ft){var Zt=ft.frag,Cr=ft.part,Sr=ft.cache,Wr=ft.complete;if(this.initPTS[Zt.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=Fi.FRAG_LOADING;var $r=Sr.flush(),On={frag:Zt,part:Cr,payload:$r,networkDetails:null};this._handleFragmentLoadProgress(On),Wr&&Object(t.a)(Object(m.a)(L.prototype),"_handleFragmentLoadComplete",this).call(this,On)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc (".concat(Zt.cc,") cancelled because video is at cc ").concat(this.videoTrackCC)),this.clearWaitingFragment();else{var Rn=this.getLoadPosition(),Zn=Ii.bufferInfo(this.mediaBuffer,Rn,this.config.maxBufferHole),wi=kn(Zn.end,this.config.maxFragLookUpTolerance,Zt);wi<0&&(this.log("Waiting fragment cc (".concat(Zt.cc,") @ ").concat(Zt.start," cancelled because another fragment at ").concat(Zn.end," is needed")),this.clearWaitingFragment())}}else this.state=Fi.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=Fi.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 ze=Z[ve],ot=ze.details;if(!ot||ot.live&&this.levelLastLoaded!==ve||this.waitForCdnTuneIn(ot)){this.state=Fi.WAITING_TRACK;return}var ft=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&ft&&(this.bufferFlushed=!1,this.afterBufferFlushed(ft,le.AUDIO,gt.AUDIO));var Zt=this.getFwdBufferInfo(ft,gt.AUDIO);if(Zt===null)return;var Cr=this.bufferedTrack,Sr=this.switchingTrack;if(!Sr&&this._streamEnded(Zt,ot)){H.trigger(w.BUFFER_EOS,{type:"audio"}),this.state=Fi.ENDED;return}var Wr=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,gt.MAIN),$r=Zt.len,On=this.getMaxBufferLength(Wr==null?void 0:Wr.len);if($r>=On&&!Sr)return;var Rn=ot.fragments,Zn=Rn[0].start,wi=Zt.end;if(Sr&&ne){var ua=this.getLoadPosition();Cr&&Sr.attrs!==Cr.attrs&&(wi=ua),ot.PTSKnown&&ua<Zn&&((Zt.end>Zn||Zt.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),ne.currentTime=Zn+.05))}var Vi=this.getNextFragment(wi,ot),Zi=!1;if(Vi&&this.isLoopLoading(Vi,wi)&&(Zi=!!Vi.gap,Vi=this.getNextFragmentLoopLoading(Vi,ot,Zt,gt.MAIN,On)),!Vi){this.bufferFlushed=!0;return}var ka=Wr&&Vi.start>Wr.end+ot.targetduration;if(ka||!(Wr!=null&&Wr.len)&&Zt.len){var Ga=this.getAppendedFrag(Vi.start,gt.MAIN);if(Ga===null)return;if(Zi||(Zi=!!Ga.gap||!!ka&&Wr.len===0),ka&&!Zi||Zi&&Zt.nextStart&&Zt.nextStart<Ga.end)return}this.loadFragment(Vi,ze,wi)}},{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 Lt(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(Nn):this.resetTransmuxer(),ne?(this.switchingTrack=Z,this.state=Fi.IDLE):(this.switchingTrack=null,this.bufferedTrack=Z,this.state=Fi.STOPPED),this.tick()}},{key:"onManifestLoading",value:function(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}},{key:"onLevelLoaded",value:function(H,Z){this.mainDetails=Z.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(w.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}},{key:"onAudioTrackLoaded",value:function(H,Z){var ne;if(this.mainDetails==null){this.cachedTrackLoadedData=Z;return}var ve=this.levels,Te=Z.details,ze=Z.id;if(!ve){this.warn("Audio tracks were reset while loading level ".concat(ze));return}this.log("Track ".concat(ze," loaded [").concat(Te.startSN,",").concat(Te.endSN,"]").concat(Te.lastPartSn?"[part-".concat(Te.lastPartSn,"-").concat(Te.lastPartIndex,"]"):"",",duration:").concat(Te.totalduration));var ot=ve[ze],ft=0;if(Te.live||(ne=ot.details)!=null&&ne.live){this.checkLiveUpdate(Te);var Zt=this.mainDetails;if(Te.deltaUpdateFailed||!Zt)return;!ot.details&&Te.hasProgramDateTime&&Zt.hasProgramDateTime?(La(Te,Zt),ft=Te.fragments[0].start):ft=this.alignPlaylists(Te,ot.details)}ot.details=Te,this.levelLastLoaded=ze,!this.startFragRequested&&(this.mainDetails||!Te.live)&&this.setStartPosition(ot.details,ft),this.state===Fi.WAITING_TRACK&&!this.waitForCdnTuneIn(Te)&&(this.state=Fi.IDLE),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(H){var Z,ne=H.frag,ve=H.part,Te=H.payload,ze=this.config,ot=this.trackId,ft=this.levels;if(!ft){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 Zt=ft[ot];if(!Zt){this.warn("Audio track is undefined on fragment load progress");return}var Cr=Zt.details;if(!Cr){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(ne.start);return}var Sr=ze.defaultAudioCodec||Zt.audioCodec||"mp4a.40.2",Wr=this.transmuxer;Wr||(Wr=this.transmuxer=new Qs(this.hls,gt.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var $r=this.initPTS[ne.cc],On=(Z=ne.initSegment)==null?void 0:Z.data;if($r!==void 0){var Rn=!1,Zn=ve?ve.index:-1,wi=Zn!==-1,ua=new zi(ne.level,ne.sn,ne.stats.chunkCount,Te.byteLength,Zn,wi);Wr.push(Te,On,Sr,"",ne,ve,Cr.totalduration,Rn,ua,$r)}else{this.log("Unknown video PTS for cc ".concat(ne.cc,", waiting for video PTS before demuxing audio frag ").concat(ne.sn," of [").concat(Cr.startSN," ,").concat(Cr.endSN,"],track ").concat(ot));var Vi=this.waitingData=this.waitingData||{frag:ne,part:ve,cache:new Ut,complete:!1},Zi=Vi.cache;Zi.push(new Uint8Array(Te)),this.waitingVideoCC=this.videoTrackCC,this.state=Fi.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!==gt.AUDIO){if(!this.loadedmetadata&&ne.type===gt.MAIN){var Te=this.videoBuffer||this.media;if(Te){var ze=Ii.getBuffered(Te);ze.length&&(this.loadedmetadata=!0)}}return}if(this.fragContextChanged(ne)){this.warn("Fragment ".concat(ne.sn).concat(ve?" p: "+ve.index:""," of level ").concat(ne.level," finished buffering, but was aborted. state: ").concat(this.state,", audioSwitch: ").concat(this.switchingTrack?this.switchingTrack.name:"false"));return}if(ne.sn!=="initSegment"){this.fragPrevious=ne;var ot=this.switchingTrack;ot&&(this.bufferedTrack=ot,this.switchingTrack=null,this.hls.trigger(w.AUDIO_TRACK_SWITCHED,b({},ot)))}this.fragBufferedComplete(ne,ve)}},{key:"onError",value:function(H,Z){var ne;if(Z.fatal){this.state=Fi.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(gt.AUDIO,Z);break;case I.AUDIO_TRACK_LOAD_ERROR:case I.AUDIO_TRACK_LOAD_TIMEOUT:case I.LEVEL_PARSING_ERROR:!Z.levelRetry&&this.state===Fi.WAITING_TRACK&&((ne=Z.context)==null?void 0:ne.type)===Et.AUDIO_TRACK&&(this.state=Fi.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===Fi.ENDED&&(this.state=Fi.IDLE))}},{key:"_handleTransmuxComplete",value:function(H){var Z,ne="audio",ve=this.hls,Te=H.remuxResult,ze=H.chunkMeta,ot=this.getCurrentContext(ze);if(!ot){this.resetWhenMissingContext(ze);return}var ft=ot.frag,Zt=ot.part,Cr=ot.level,Sr=Cr.details,Wr=Te.audio,$r=Te.text,On=Te.id3,Rn=Te.initSegment;if(this.fragContextChanged(ft)||!Sr){this.fragmentTracker.removeFragment(ft);return}if(this.state=Fi.PARSING,this.switchingTrack&&Wr&&this.completeAudioSwitch(this.switchingTrack),Rn!=null&&Rn.tracks){var Zn=ft.initSegment||ft;this._bufferInitSegment(Rn.tracks,Zn,ze),ve.trigger(w.FRAG_PARSING_INIT_SEGMENT,{frag:Zn,id:ne,tracks:Rn.tracks})}if(Wr){var wi=Wr.startPTS,ua=Wr.endPTS,Vi=Wr.startDTS,Zi=Wr.endDTS;Zt&&(Zt.elementaryStreams[le.AUDIO]={startPTS:wi,endPTS:ua,startDTS:Vi,endDTS:Zi}),ft.setElementaryStreamInfo(le.AUDIO,wi,ua,Vi,Zi),this.bufferFragmentData(Wr,ft,Zt,ze)}if(On!=null&&(Z=On.samples)!=null&&Z.length){var ka=E({id:ne,frag:ft,details:Sr},On);ve.trigger(w.FRAG_PARSING_METADATA,ka)}if($r){var Ga=E({id:ne,frag:ft,details:Sr},$r);ve.trigger(w.FRAG_PARSING_USERDATA,Ga)}}},{key:"_bufferInitSegment",value:function(H,Z,ne){if(this.state!==Fi.PARSING)return;H.video&&delete H.video;var ve=H.audio;if(!ve)return;ve.levelCodec=ve.codec,ve.id="audio",this.log("Init audio buffer, container:".concat(ve.container,", codecs[parsed]=[").concat(ve.codec,"]")),this.hls.trigger(w.BUFFER_CODECS,H);var Te=ve.initSegment;if(Te!=null&&Te.byteLength){var ze={type:"audio",frag:Z,part:null,chunkMeta:ne,parent:Z.type,data:Te};this.hls.trigger(w.BUFFER_APPENDING,ze)}this.tick()}},{key:"loadFragment",value:function(H,Z,ne){var ve=this.fragmentTracker.getState(H);if(this.fragCurrent=H,this.switchingTrack||ve===_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=Fi.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,ze=H.attrs;ne&&Te&&(Te.CHANNELS!==ze.CHANNELS||Te.NAME!==ze.NAME||Te.LANGUAGE!==ze.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(w.AUDIO_TRACK_SWITCHED,b({},H))}}]),L}(io),Nt=function(Ae){Object(s.a)(L,Ae);var ee=Object(e.a)(L);function L(W){var H;return Object(r.a)(this,L),H=ee.call(this,W,"[audio-track-controller]"),H.tracks=[],H.groupId=null,H.tracksInGroup=[],H.trackId=-1,H.currentTrack=null,H.selectDefaultTrack=!0,H.registerListeners(),H}return Object(a.a)(L,[{key:"registerListeners",value:function(){var H=this.hls;H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.on(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var H=this.hls;H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADING,this.onLevelLoading,this),H.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.off(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,Object(t.a)(Object(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,ze=this.tracksInGroup[ne];if(!ze||ze.groupId!==ve){this.warn("Track with id:".concat(ne," and group:").concat(ve," not found in active group ").concat(ze.groupId));return}var ot=ze.details;ze.details=Z.details,this.log("audio-track ".concat(ne,' "').concat(ze.name,'" lang:').concat(ze.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(ze){return!ne||ze.groupId===ne});this.selectDefaultTrack&&!ve.some(function(ze){return ze.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(w.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===Et.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,ze=ve.name;if(this.log("Switching to audio-track ".concat(H,' "').concat(ze,'" lang:').concat(ve.lang," group:").concat(Te)),this.trackId=H,this.currentTrack=ve,this.selectDefaultTrack=!1,this.hls.trigger(w.AUDIO_TRACK_SWITCHING,b({},ve)),ve.details&&!ve.details.live)return;var 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(w.ERROR,{type:O.MEDIA_ERROR,details:I.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:ne})}}},{key:"findTrackId",value:function(H){for(var Z=this.tracksInGroup,ne=0;ne<Z.length;ne++){var ve=Z[ne];if(!this.selectDefaultTrack||ve.default){if(!H||H.attrs["STABLE-RENDITION-ID"]!==void 0&&H.attrs["STABLE-RENDITION-ID"]===ve.attrs["STABLE-RENDITION-ID"])return ve.id;if(H.name===ve.name&&H.lang===ve.lang)return ve.id}}return-1}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(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(ze){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(ze))}this.log("loading audio-track playlist ".concat(ne,' "').concat(Z.name,'" lang:').concat(Z.lang," group:").concat(ve)),this.clearTimer(),this.hls.trigger(w.AUDIO_TRACK_LOADING,{url:Te,id:ne,groupId:ve,deliveryDirectives:H||null})}}}]),L}(mr);function ce(Ae,ee){if(Ae.length!==ee.length)return!1;for(var L=0;L<Ae.length;L++)if(!xe(Ae[L].attrs,ee[L].attrs))return!1;return!0}function xe(Ae,ee){var L=Ae["STABLE-RENDITION-ID"];return L?L===ee["STABLE-RENDITION-ID"]:!["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED"].some(function(W){return Ae[W]!==ee[W]})}var Oe=500,Qe=function(Ae){Object(s.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z){var ne;return Object(r.a)(this,L),ne=ee.call(this,W,H,Z,"[subtitle-stream-controller]",gt.SUBTITLE),ne.levels=[],ne.currentTrackId=-1,ne.tracksBuffered=[],ne.mainDetails=null,ne._registerListeners(),ne}return Object(a.a)(L,[{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.mainDetails=null}},{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.ERROR,this.onError,this),H.on(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),H.on(w.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),H.on(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.on(w.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),H.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.ERROR,this.onError,this),H.off(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),H.off(w.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),H.off(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.off(w.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),H.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"startLoad",value:function(H){this.stopLoad(),this.state=Fi.IDLE,this.setInterval(Oe),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=Fi.IDLE,!ve)return;var Te=this.tracksBuffered[this.currentTrackId];if(!Te)return;for(var ze,ot=ne.start,ft=0;ft<Te.length;ft++)if(ot>=Te[ft].start&&ot<=Te[ft].end){ze=Te[ft];break}var Zt=ne.start+ne.duration;ze?ze.end=Zt:(ze={start:ot,end:Zt},Te.push(ze)),this.fragmentTracker.fragBuffered(ne)}},{key:"onBufferFlushing",value:function(H,Z){var ne=Z.startOffset,ve=Z.endOffset;if(ne===0&&ve!==Number.POSITIVE_INFINITY){var Te=ve-1;if(Te<=0)return;Z.endOffsetSubtitles=Math.max(0,Te),this.tracksBuffered.forEach(function(ze){for(var ot=0;ot<ze.length;){if(ze[ot].end<=Te){ze.shift();continue}else if(ze[ot].start<Te)ze[ot].start=Te;else break;ot++}}),this.fragmentTracker.removeFragmentsInRange(ne,Te,gt.SUBTITLE)}}},{key:"onFragBuffered",value:function(H,Z){if(!this.loadedmetadata&&Z.frag.type===gt.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)===gt.SUBTITLE&&(this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Fi.STOPPED&&(this.state=Fi.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 Lt(Te)});return}this.tracksBuffered=[],this.levels=ve.map(function(Te){var ze=new Lt(Te);return ne.tracksBuffered[ze.id]=[],ze}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,gt.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(Oe)}},{key:"onSubtitleTrackLoaded",value:function(H,Z){var ne,ve=Z.details,Te=Z.id,ze=this.currentTrackId,ot=this.levels;if(!ot.length)return;var ft=ot[ze];if(Te>=ot.length||Te!==ze||!ft)return;this.mediaBuffer=this.mediaBufferTimeRanges;var Zt=0;if(ve.live||(ne=ft.details)!=null&&ne.live){var Cr=this.mainDetails;if(ve.deltaUpdateFailed||!Cr)return;var Sr=Cr.fragments[0];ft.details?(Zt=this.alignPlaylists(ve,ft.details),Zt===0&&Sr&&(Zt=Sr.start,An(ve,Zt))):ve.hasProgramDateTime&&Cr.hasProgramDateTime?(La(ve,Cr),Zt=ve.fragments[0].start):Sr&&(Zt=Sr.start,An(ve,Zt))}if(ft.details=ve,this.levelLastLoaded=Te,!this.startFragRequested&&(this.mainDetails||!ve.live)&&this.setStartPosition(ft.details,Zt),this.tick(),ve.live&&!this.fragCurrent&&this.media&&this.state===Fi.IDLE){var Wr=yi(null,ve.fragments,this.media.currentTime,0);Wr||(this.warn("Subtitle playlist not aligned with playback"),ft.details=void 0)}}},{key:"_handleFragmentLoadComplete",value:function(H){var Z=this,ne=H.frag,ve=H.payload,Te=ne.decryptdata,ze=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(ft){throw ze.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_DECRYPT_ERROR,fatal:!1,error:ft,reason:ft.message,frag:ne}),ft}).then(function(ft){var Zt=performance.now();ze.trigger(w.FRAG_DECRYPTED,{frag:ne,payload:ft,stats:{tstart:ot,tdecrypt:Zt}})}).catch(function(ft){Z.warn("".concat(ft.name,": ").concat(ft.message)),Z.state=Fi.IDLE})}}},{key:"doTick",value:function(){if(!this.media){this.state=Fi.IDLE;return}if(this.state===Fi.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(),ze=Ii.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],Te,ve.maxBufferHole),ot=ze.end,ft=ze.len,Zt=this.getFwdBufferInfo(this.media,gt.MAIN),Cr=ne.details,Sr=this.getMaxBufferLength(Zt==null?void 0:Zt.len)+Cr.levelTargetDuration;if(ft>Sr)return;var Wr=Cr.fragments,$r=Wr.length,On=Cr.edge,Rn=null,Zn=this.fragPrevious;if(ot<On){var wi=ve.maxFragLookUpTolerance,ua=ot>On-wi?0:wi;Rn=yi(Zn,Wr,Math.max(Wr[0].start,ot),ua),!Rn&&Zn&&Zn.start<Wr[0].start&&(Rn=Wr[0])}else Rn=Wr[$r-1];if(!Rn)return;if(Rn=this.mapToInitFragWhenRequired(Rn),Rn.sn!=="initSegment"){var Vi=Rn.sn-Cr.startSN,Zi=Wr[Vi-1];Zi&&Zi.cc===Rn.cc&&this.fragmentTracker.getState(Zi)===_t.NOT_LOADED&&(Rn=Zi)}this.fragmentTracker.getState(Rn)===_t.NOT_LOADED&&this.loadFragment(Rn,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 Dt(this.tracksBuffered[this.currentTrackId]||[])}}]),L}(io),Dt=Object(a.a)(function Ae(ee){Object(r.a)(this,Ae),this.buffered=void 0;var L=function(H,Z,ne){if(Z=Z>>>0,Z>ne-1)throw new DOMException("Failed to execute '".concat(H,"' on 'TimeRanges': The index provided (").concat(Z,") is greater than the maximum bound (").concat(ne,")"));return ee[Z][H]};this.buffered={get length(){return ee.length},end:function(H){return L("end",H,ee.length)},start:function(H){return L("start",H,ee.length)}}}),lr=function(Ae){Object(s.a)(L,Ae);var ee=Object(e.a)(L);function L(W){var H;return Object(r.a)(this,L),H=ee.call(this,W,"[subtitle-track-controller]"),H.media=null,H.tracks=[],H.groupId=null,H.tracksInGroup=[],H.trackId=-1,H.selectDefaultTrack=!0,H.queuedDefaultTrack=-1,H.trackChangeListener=function(){return H.onTextTracksChanged()},H.asyncPollTrackChange=function(){return H.pollTrackChange(0)},H.useTextTrackPolling=!1,H.subtitlePollingInterval=-1,H._subtitleDisplay=!0,H.registerListeners(),H}return Object(a.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(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.on(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADING,this.onLevelLoading,this),H.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.off(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(H,Z){if(this.media=Z.media,!this.media)return;this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)}},{key:"pollTrackChange",value:function(H){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,H)}},{key:"onMediaDetaching",value:function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var H=Zr(this.media.textTracks);H.forEach(function(Z){Vn(Z)}),this.subtitleTrack=-1,this.media=null}},{key:"onManifestLoading",value:function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0}},{key:"onManifestParsed",value:function(H,Z){this.tracks=Z.subtitleTracks}},{key:"onSubtitleTrackLoaded",value:function(H,Z){var ne=Z.id,ve=Z.details,Te=this.trackId,ze=this.tracksInGroup[Te];if(!ze){this.warn("Invalid subtitle track id ".concat(ne));return}var ot=ze.details;ze.details=Z.details,this.log("subtitle track ".concat(ne," loaded [").concat(ve.startSN,"-").concat(ve.endSN,"]")),ne===this.trackId&&this.playlistLoaded(ne,Z,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(ft){return!ne||ft.groupId===ne});this.tracksInGroup=Te;var ze=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(w.SUBTITLE_TRACKS_UPDATED,ot),ze!==-1&&this.setSubtitleTrack(ze,ve)}else this.shouldReloadPlaylist(ve)&&this.setSubtitleTrack(this.trackId,ve)}},{key:"findTrackId",value:function(H){for(var Z=this.tracksInGroup,ne=0;ne<Z.length;ne++){var ve=Z[ne];if((!this.selectDefaultTrack||ve.default)&&(!H||H===ve.name))return ve.id}return-1}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===Et.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(ze){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(ze))}this.log("Loading subtitle playlist for id ".concat(ne)),this.hls.trigger(w.SUBTITLE_TRACK_LOADING,{url: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=Zr(ne.textTracks),ze=Te.filter(function(Zt){return Zt.groupId===Z.groupId});if(H===-1)[].slice.call(Te).forEach(function(Zt){Zt.mode="disabled"});else{var ot=ze[ve];ot&&(ot.mode="disabled")}var ft=ze[H];ft&&(ft.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 ze=Te.id,ot=Te.groupId,ft=ot===void 0?"":ot,Zt=Te.name,Cr=Te.type,Sr=Te.url;this.hls.trigger(w.SUBTITLE_TRACK_SWITCH,{id:ze,groupId:ft,name:Zt,type:Cr,url:Sr});var Wr=this.switchParams(Te.url,Z==null?void 0:Z.details);this.loadPlaylist(Wr)}else this.hls.trigger(w.SUBTITLE_TRACK_SWITCH,{id:H})}},{key:"onTextTracksChanged",value:function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var H=-1,Z=Zr(this.media.textTracks),ne=0;ne<Z.length;ne++)if(Z[ne].mode==="hidden")H=ne;else if(Z[ne].mode==="showing"){H=ne;break}this.subtitleTrack!==H&&(this.subtitleTrack=H)}}]),L}(mr);function Zr(Ae){for(var ee=[],L=0;L<Ae.length;L++){var W=Ae[L];(W.kind==="subtitles"||W.kind==="captions")&&W.label&&ee.push(Ae[L])}return ee}var mn=function(){function Ae(ee){Object(r.a)(this,Ae),this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=ee}return Object(a.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}(),Dn=er(),ui=/([ha]vc.)(?:\.[^.,]+)+/,Si=function(){function Ae(ee){var L=this;Object(r.a)(this,Ae),this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var W=L.media,H=L.mediaSource;j.log("[buffer-controller]: Media source opened"),W&&(W.removeEventListener("emptied",L._onMediaEmptied),L.updateMediaElementDuration(),L.hls.trigger(w.MEDIA_ATTACHED,{media:W})),H&&H.removeEventListener("sourceopen",L._onMediaSourceOpen),L.checkPendingTracks()},this._onMediaSourceClose=function(){j.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){j.log("[buffer-controller]: Media source ended")},this._onMediaEmptied=function(){var W=L.media,H=L._objectUrl;W&&W.src!==H&&j.error("Media element src was set while attaching MediaSource (".concat(H," > ").concat(W.src,")"))},this.hls=ee,this._initSourceBuffer(),this.registerListeners()}return Object(a.a)(Ae,[{key:"hasSourceTypes",value:function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}},{key:"destroy",value:function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null}},{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.MANIFEST_PARSED,this.onManifestParsed,this),L.on(w.BUFFER_RESET,this.onBufferReset,this),L.on(w.BUFFER_APPENDING,this.onBufferAppending,this),L.on(w.BUFFER_CODECS,this.onBufferCodecs,this),L.on(w.BUFFER_EOS,this.onBufferEos,this),L.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.on(w.LEVEL_UPDATED,this.onLevelUpdated,this),L.on(w.FRAG_PARSED,this.onFragParsed,this),L.on(w.FRAG_CHANGED,this.onFragChanged,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.MANIFEST_PARSED,this.onManifestParsed,this),L.off(w.BUFFER_RESET,this.onBufferReset,this),L.off(w.BUFFER_APPENDING,this.onBufferAppending,this),L.off(w.BUFFER_CODECS,this.onBufferCodecs,this),L.off(w.BUFFER_EOS,this.onBufferEos,this),L.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.off(w.LEVEL_UPDATED,this.onLevelUpdated,this),L.off(w.FRAG_PARSED,this.onFragParsed,this),L.off(w.FRAG_CHANGED,this.onFragChanged,this)}},{key:"_initSourceBuffer",value:function(){this.sourceBuffer={},this.operationQueue=new mn(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&&Dn){var Z=this.mediaSource=new Dn;Z.addEventListener("sourceopen",this._onMediaSourceOpen),Z.addEventListener("sourceended",this._onMediaSourceEnded),Z.addEventListener("sourceclose",this._onMediaSourceClose),H.src=self.URL.createObjectURL(Z),this._objectUrl=H.src,H.addEventListener("emptied",this._onMediaEmptied)}}},{key:"onMediaDetaching",value:function(){var L=this.media,W=this.mediaSource,H=this._objectUrl;if(W){if(j.log("[buffer-controller]: media source detaching"),W.readyState==="open")try{W.endOfStream()}catch(Z){j.warn("[buffer-controller]: onMediaDetaching: ".concat(Z.message," while calling endOfStream"))}this.onBufferReset(),W.removeEventListener("sourceopen",this._onMediaSourceOpen),W.removeEventListener("sourceended",this._onMediaSourceEnded),W.removeEventListener("sourceclose",this._onMediaSourceClose),L&&(L.removeEventListener("emptied",this._onMediaEmptied),H&&self.URL.revokeObjectURL(H),L.src===H?(L.removeAttribute("src"),L.load()):j.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(w.MEDIA_DETACHED,void 0)}},{key:"onBufferReset",value:function(){var L=this;this.getSourceBufferTypes().forEach(function(W){var H=L.sourceBuffer[W];try{H&&(L.removeBufferListeners(W),L.mediaSource&&L.mediaSource.removeSourceBuffer(H),L.sourceBuffer[W]=void 0)}catch(Z){j.warn("[buffer-controller]: Failed to reset the ".concat(W," buffer"),Z)}}),this._initSourceBuffer()}},{key:"onBufferCodecs",value:function(L,W){var H=this,Z=this.getSourceBufferTypes().length;if(Object.keys(W).forEach(function(ne){if(Z){var ve=H.tracks[ne];if(ve&&typeof ve.buffer.changeType=="function"){var Te=W[ne],ze=Te.id,ot=Te.codec,ft=Te.levelCodec,Zt=Te.container,Cr=Te.metadata,Sr=(ve.levelCodec||ve.codec).replace(ui,"$1"),Wr=(ft||ot).replace(ui,"$1");if(Sr!==Wr){var $r="".concat(Zt,";codecs=").concat(ft||ot);H.appendChangeType(ne,$r),j.log("[buffer-controller]: switching codec ".concat(Sr," to ").concat(Wr)),H.tracks[ne]={buffer:ve.buffer,codec:ot,container:Zt,levelCodec:ft,metadata:Cr,id:ze}}}}else H.pendingTracks[ne]=W[ne]}),Z)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}},{key:"appendChangeType",value:function(L,W){var H=this,Z=this.operationQueue,ne={execute:function(){var 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,ze=W.type,ot=W.frag,ft=W.part,Zt=W.chunkMeta,Cr=Zt.buffering[ze],Sr=self.performance.now();Cr.start=Sr;var Wr=ot.stats.buffering,$r=ft?ft.stats.buffering:null;Wr.start===0&&(Wr.start=Sr),$r&&$r.start===0&&($r.start=Sr);var On=ve.audio,Rn=!1;ze==="audio"&&(On==null?void 0:On.container)==="audio/mpeg"&&(Rn=!this.lastMpegAudioChunk||Zt.id===1||this.lastMpegAudioChunk.sn!==Zt.sn,this.lastMpegAudioChunk=Zt);var Zn=ot.start,wi={execute:function(){if(Cr.executeStart=self.performance.now(),Rn){var Vi=H.sourceBuffer[ze];if(Vi){var Zi=Zn-Vi.timestampOffset;Math.abs(Zi)>=.1&&(j.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to ".concat(Zn," (delta: ").concat(Zi,") sn: ").concat(ot.sn,")")),Vi.timestampOffset=Zn)}}H.appendExecutor(Te,ze)},onStart:function(){},onComplete:function(){var Vi=self.performance.now();Cr.executeEnd=Cr.end=Vi,Wr.first===0&&(Wr.first=Vi),$r&&$r.first===0&&($r.first=Vi);var Zi=H.sourceBuffer,ka={};for(var Ga in Zi)ka[Ga]=Ii.getBuffered(Zi[Ga]);H.appendError=0,H.hls.trigger(w.BUFFER_APPENDED,{type:ze,frag:ot,part:ft,chunkMeta:Zt,parent:ot.type,timeRanges:ka})},onError:function(Vi){j.error("[buffer-controller]: Error encountered while trying to append to the ".concat(ze," SourceBuffer"),Vi);var Zi={type:O.MEDIA_ERROR,parent:ot.type,details:I.BUFFER_APPEND_ERROR,frag:ot,part:ft,chunkMeta:Zt,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(w.ERROR,Zi)}};ne.append(wi,ze)}},{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(w.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 ze=function(){var ft=self.performance.now();Z.stats.buffering.end=ft,ne&&(ne.stats.buffering.end=ft);var Zt=ne?ne.stats:Z.stats;H.hls.trigger(w.FRAG_BUFFERED,{frag:Z,part:ne,stats:Zt,id:Z.type})};ve.length===0&&j.warn("Fragments must have at least one ElementaryStreamType set. type: ".concat(Z.type," level: ").concat(Z.level," sn: ").concat(Z.sn)),this.blockBuffers(ze,ve)}},{key:"onFragChanged",value:function(L,W){this.flushBackBuffer()}},{key:"onBufferEos",value:function(L,W){var H=this,Z=this.getSourceBufferTypes().reduce(function(ne,ve){var 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,ze=W.levelTargetDuration,ot=Math.max(ve,ze),ft=Math.floor(Te/ze)*ze-ot;ne.forEach(function(Zt){var Cr=Z[Zt];if(Cr){var Sr=Ii.getBuffered(Cr);if(Sr.length>0&&ft>Sr.start(0)){if(L.trigger(w.BACK_BUFFER_REACHED,{bufferEnd:ft}),W.live)L.trigger(w.LIVE_BACK_BUFFER_REACHED,{bufferEnd:ft});else if(Cr.ended&&Sr.end(Sr.length-1)-Te<ze*2){j.info("[buffer-controller]: Cannot flush ".concat(Zt," back buffer while SourceBuffer is in ended state"));return}L.trigger(w.BUFFER_FLUSHING,{startOffset:0,endOffset:ft,type:Zt})}}})}},{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(w.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(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:ve,reason:ve.message})}}}},{key:"createSourceBuffers",value:function(L){var W=this.sourceBuffer,H=this.mediaSource;if(!H)throw Error("createSourceBuffers called when mediaSource was null");for(var Z in L)if(!W[Z]){var ne=L[Z];if(!ne)throw Error("source buffer exists for track ".concat(Z,", however track does not"));var ve=ne.levelCodec||ne.codec,Te="".concat(ne.container,";codecs=").concat(ve);j.log("[buffer-controller]: creating sourceBuffer(".concat(Te,")"));try{var ze=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:ze,codec:ve,container:ne.container,levelCodec:ne.levelCodec,metadata:ne.metadata,id:ne.id}}catch(ft){j.error("[buffer-controller]: error while trying to add sourceBuffer: ".concat(ft.message)),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:ft,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(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_APPENDING_ERROR,error:H,fatal:!1});var Z=this.operationQueue.current(L);Z&&Z.onError(W)}},{key:"removeExecutor",value:function(L,W,H){var Z=this.media,ne=this.mediaSource,ve=this.operationQueue,Te=this.sourceBuffer,ze=Te[L];if(!Z||!ne||!ze){j.warn("[buffer-controller]: Attempting to remove from the ".concat(L," SourceBuffer, but it does not exist")),ve.shiftAndExecuteNext(L);return}var ot=T(Z.duration)?Z.duration:Infinity,ft=T(ne.duration)?ne.duration:Infinity,Zt=Math.max(0,W),Cr=Math.min(H,ot,ft);Cr>Zt&&!ze.ending?(ze.ended=!1,j.log("[buffer-controller]: Removing [".concat(Zt,",").concat(Cr,"] from the ").concat(L," SourceBuffer")),ze.remove(Zt,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}(),vi={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Qi=function(ee){var L=ee;return vi.hasOwnProperty(ee)&&(L=vi[ee]),String.fromCharCode(L)},sa=15,Ua=100,no={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Wo={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Zo={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Bo={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Es=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],As=function(){function Ae(){Object(r.a)(this,Ae),this.time=null,this.verboseLevel=0}return Object(a.a)(Ae,[{key:"log",value:function(L,W){if(this.verboseLevel>=L){var H=typeof W=="function"?W():W;j.log("".concat(this.time," [").concat(L,"] ").concat(H))}}}]),Ae}(),$o=function(ee){for(var L=[],W=0;W<ee.length;W++)L.push(ee[W].toString(16));return L},Do=function(){function Ae(ee,L,W,H,Z){Object(r.a)(this,Ae),this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=ee||"white",this.underline=L||!1,this.italics=W||!1,this.background=H||"black",this.flash=Z||!1}return Object(a.a)(Ae,[{key:"reset",value:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}},{key:"setStyles",value:function(L){for(var W=["foreground","underline","italics","background","flash"],H=0;H<W.length;H++){var Z=W[H];L.hasOwnProperty(Z)&&(this[Z]=L[Z])}}},{key:"isDefault",value:function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}},{key:"equals",value:function(L){return this.foreground===L.foreground&&this.underline===L.underline&&this.italics===L.italics&&this.background===L.background&&this.flash===L.flash}},{key:"copy",value:function(L){this.foreground=L.foreground,this.underline=L.underline,this.italics=L.italics,this.background=L.background,this.flash=L.flash}},{key:"toString",value:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}]),Ae}(),vo=function(){function Ae(ee,L,W,H,Z,ne){Object(r.a)(this,Ae),this.uchar=void 0,this.penState=void 0,this.uchar=ee||" ",this.penState=new Do(L,W,H,Z,ne)}return Object(a.a)(Ae,[{key:"reset",value:function(){this.uchar=" ",this.penState.reset()}},{key:"setChar",value:function(L,W){this.uchar=L,this.penState.copy(W)}},{key:"setPenState",value:function(L){this.penState.copy(L)}},{key:"equals",value:function(L){return this.uchar===L.uchar&&this.penState.equals(L.penState)}},{key:"copy",value:function(L){this.uchar=L.uchar,this.penState.copy(L.penState)}},{key:"isEmpty",value:function(){return this.uchar===" "&&this.penState.isDefault()}}]),Ae}(),Ms=function(){function Ae(ee){Object(r.a)(this,Ae),this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var L=0;L<Ua;L++)this.chars.push(new vo);this.logger=ee,this.pos=0,this.currPenState=new Do}return Object(a.a)(Ae,[{key:"equals",value:function(L){for(var W=!0,H=0;H<Ua;H++)if(!this.chars[H].equals(L.chars[H])){W=!1;break}return W}},{key:"copy",value:function(L){for(var W=0;W<Ua;W++)this.chars[W].copy(L.chars[W])}},{key:"isEmpty",value:function(){for(var L=!0,W=0;W<Ua;W++)if(!this.chars[W].isEmpty()){L=!1;break}return L}},{key:"setCursor",value:function(L){this.pos!==L&&(this.pos=L),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>Ua&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Ua)}},{key:"moveCursor",value:function(L){var W=this.pos+L;if(L>1)for(var H=this.pos+1;H<W+1;H++)this.chars[H].setPenState(this.currPenState);this.setCursor(W)}},{key:"backSpace",value:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}},{key:"insertChar",value:function(L){var W=this;L>=144&&this.backSpace();var H=Qi(L);if(this.pos>=Ua){this.logger.log(0,function(){return"Cannot insert "+L.toString(16)+" ("+H+") at position "+W.pos+". Skipping it!"});return}this.chars[this.pos].setChar(H,this.currPenState),this.moveCursor(1)}},{key:"clearFromPos",value:function(L){var W;for(W=L;W<Ua;W++)this.chars[W].reset()}},{key:"clear",value:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}},{key:"clearToEndOfRow",value:function(){this.clearFromPos(this.pos)}},{key:"getTextString",value:function(){for(var L=[],W=!0,H=0;H<Ua;H++){var Z=this.chars[H].uchar;Z!==" "&&(W=!1),L.push(Z)}return W?"":L.join("")}},{key:"setPenStyles",value:function(L){this.currPenState.setStyles(L);var W=this.chars[this.pos];W.setPenState(this.currPenState)}}]),Ae}(),rl=function(){function Ae(ee){Object(r.a)(this,Ae),this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var L=0;L<sa;L++)this.rows.push(new Ms(ee));this.logger=ee,this.currRow=sa-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}return Object(a.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 ze=0;ze<this.nrRollUpRows;ze++)this.rows[W-this.nrRollUpRows+ze+1].copy(ne.rows[Z+ze])}}this.currRow=W;var ot=this.rows[this.currRow];if(L.indent!==null){var ft=L.indent,Zt=Math.max(ft-1,0);ot.setCursor(L.indent),L.color=ot.chars[Zt].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(ee,L,W){Object(r.a)(this,Ae),this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=ee,this.outputFilter=L,this.mode=null,this.verbose=0,this.displayedMemory=new rl(W),this.nonDisplayedMemory=new rl(W),this.lastOutputScreen=new rl(W),this.currRollUpRow=this.displayedMemory.rows[sa-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=W}return Object(a.a)(Ae,[{key:"reset",value:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[sa-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}},{key:"getHandler",value:function(){return this.outputFilter}},{key:"setHandler",value:function(L){this.outputFilter=L}},{key:"setPAC",value:function(L){this.writeScreen.setPAC(L)}},{key:"setBkgData",value:function(L){this.writeScreen.setBkgData(L)}},{key:"setMode",value:function(L){if(L===this.mode)return;this.mode=L,this.logger.log(2,function(){return"MODE="+L}),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=L}},{key:"insertChars",value:function(L){for(var W=this,H=0;H<L.length;H++)this.writeScreen.insertChar(L[H]);var Z=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,function(){return Z+": "+W.writeScreen.getDisplayText(!0)}),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,function(){return"DISPLAYED: "+W.displayedMemory.getDisplayText(!0)}),this.outputDataUpdate())}},{key:"ccRCL",value:function(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}},{key:"ccBS",value:function(){if(this.logger.log(2,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()}},{key:"ccAOF",value:function(){}},{key:"ccAON",value:function(){}},{key:"ccDER",value:function(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}},{key:"ccRU",value:function(L){this.logger.log(2,"RU("+L+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(L)}},{key:"ccFON",value:function(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}},{key:"ccRDC",value:function(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}},{key:"ccTR",value:function(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}},{key:"ccRTD",value:function(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}},{key:"ccEDM",value:function(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}},{key:"ccCR",value:function(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}},{key:"ccENM",value:function(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}},{key:"ccEOC",value:function(){var L=this;if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var W=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=W,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,function(){return"DISP: "+L.displayedMemory.getDisplayText()})}this.outputDataUpdate(!0)}},{key:"ccTO",value:function(L){this.logger.log(2,"TO("+L+") - Tab Offset"),this.writeScreen.moveCursor(L)}},{key:"ccMIDROW",value:function(L){var W={flash:!1};if(W.underline=L%2===1,W.italics=L>=46,W.italics)W.foreground="white";else{var H=Math.floor(L/2)-16,Z=["white","green","blue","cyan","red","yellow","magenta"];W.foreground=Z[H]}this.logger.log(2,"MIDROW: "+JSON.stringify(W)),this.writeScreen.setPen(W)}},{key:"outputDataUpdate",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,W=this.logger.time;if(W===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=W:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,W,this.lastOutputScreen),L&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:W),this.lastOutputScreen.copy(this.displayedMemory))}},{key:"cueSplitAtTime",value:function(L){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,L,this.displayedMemory),this.cueStartTime=L))}}]),Ae}(),Ra=function(){function Ae(ee,L,W){Object(r.a)(this,Ae),this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var H=new As;this.channels=[null,new gs(ee,L,H),new gs(ee+1,W,H)],this.cmdHistory=Us(),this.logger=H}return Object(a.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 ze=this.currentChannel;if(ze&&ze>0){var ot=this.channels[ze];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 ze=this.channels[Te];return ze?(ze.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,ze=this.channels[Te];return ze.setBkgData(ve),dl(L,W,this.cmdHistory),!0}},{key:"reset",value:function(){for(var L=0;L<Object.keys(this.channels).length;L++){var W=this.channels[L];W&&W.reset()}this.cmdHistory=Us()}},{key:"cueSplitAtTime",value:function(L){for(var W=0;W<this.channels.length;W++){var H=this.channels[W];H&&H.cueSplitAtTime(L)}}}]),Ae}();function dl(Ae,ee,L){L.a=Ae,L.b=ee}function fl(Ae,ee,L){return L.a===Ae&&L.b===ee}function Us(){return{a:null,b:null}}var Os=function(){function Ae(ee,L){Object(r.a)(this,Ae),this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=ee,this.trackName=L}return Object(a.a)(Ae,[{key:"dispatchCue",value:function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null}},{key:"newCue",value:function(L,W,H){(this.startTime===null||this.startTime>L)&&(this.startTime=L),this.endTime=W,this.screen=H,this.timelineController.createCaptionsTrack(this.trackName)}},{key:"reset",value:function(){this.cueRanges=[],this.startTime=null}}]),Ae}(),Xs=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var Ae=["","lr","rl"],ee=["start","middle","end","left","right"];function L(ve,Te){if(typeof Te!="string")return!1;if(!Array.isArray(ve))return!1;var ze=Te.toLowerCase();return~ve.indexOf(ze)?ze:!1}function W(ve){return L(Ae,ve)}function H(ve){return L(ee,ve)}function Z(ve){for(var Te=arguments.length,ze=new Array(Te>1?Te-1:0),ot=1;ot<Te;ot++)ze[ot-1]=arguments[ot];for(var ft=1;ft<arguments.length;ft++){var Zt=arguments[ft];for(var Cr in Zt)ve[Cr]=Zt[Cr]}return ve}function ne(ve,Te,ze){var ot=this,ft={enumerable:!0};ot.hasBeenReset=!1;var Zt="",Cr=!1,Sr=ve,Wr=Te,$r=ze,On=null,Rn="",Zn=!0,wi="auto",ua="start",Vi=50,Zi="middle",ka=50,Ga="middle";Object.defineProperty(ot,"id",Z({},ft,{get:function(){return Zt},set:function(Sa){Zt=""+Sa}})),Object.defineProperty(ot,"pauseOnExit",Z({},ft,{get:function(){return Cr},set:function(Sa){Cr=!!Sa}})),Object.defineProperty(ot,"startTime",Z({},ft,{get:function(){return Sr},set:function(Sa){if(typeof Sa!="number")throw new TypeError("Start time must be set to a number.");Sr=Sa,this.hasBeenReset=!0}})),Object.defineProperty(ot,"endTime",Z({},ft,{get:function(){return Wr},set:function(Sa){if(typeof Sa!="number")throw new TypeError("End time must be set to a number.");Wr=Sa,this.hasBeenReset=!0}})),Object.defineProperty(ot,"text",Z({},ft,{get:function(){return $r},set:function(Sa){$r=""+Sa,this.hasBeenReset=!0}})),Object.defineProperty(ot,"region",Z({},ft,{get:function(){return On},set:function(Sa){On=Sa,this.hasBeenReset=!0}})),Object.defineProperty(ot,"vertical",Z({},ft,{get:function(){return Rn},set:function(Sa){var Go=W(Sa);if(Go===!1)throw new SyntaxError("An invalid or illegal string was specified.");Rn=Go,this.hasBeenReset=!0}})),Object.defineProperty(ot,"snapToLines",Z({},ft,{get:function(){return Zn},set:function(Sa){Zn=!!Sa,this.hasBeenReset=!0}})),Object.defineProperty(ot,"line",Z({},ft,{get:function(){return wi},set:function(Sa){if(typeof Sa!="number"&&Sa!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");wi=Sa,this.hasBeenReset=!0}})),Object.defineProperty(ot,"lineAlign",Z({},ft,{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({},ft,{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({},ft,{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({},ft,{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({},ft,{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(a.a)(Ae,[{key:"decode",value:function(L,W){if(!L)return"";if(typeof L!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(L))}}]),Ae}();function Ul(Ae){function ee(W,H,Z,ne){return(W|0)*3600+(H|0)*60+(Z|0)+parseFloat(ne||0)}var L=Ae.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return L?parseFloat(L[2])>59?ee(L[2],L[3],0,L[4]):ee(L[1],L[2],L[3],L[4]):null}var wl=function(){function Ae(){Object(r.a)(this,Ae),this.values=Object.create(null)}return Object(a.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,ee,L,W){var H=W?Ae.split(W):[Ae];for(var Z in H){if(typeof H[Z]!="string")continue;var ne=H[Z].split(L);if(ne.length!==2)continue;var ve=ne[0],Te=ne[1];ee(ve,Te)}}var Ws=new Xs(0,0,""),Tl=Ws.align==="middle"?"middle":"center";function pl(Ae,ee,L){var W=Ae;function H(){var ve=Ul(Ae);if(ve===null)throw new Error("Malformed timestamp: "+W);return Ae=Ae.replace(/^[^\sa-zA-Z-]+/,""),ve}function Z(ve,Te){var ze=new wl;Ts(ve,function(Zt,Cr){var Sr;switch(Zt){case"region":for(var Wr=L.length-1;Wr>=0;Wr--)if(L[Wr].id===Cr){ze.set(Zt,L[Wr].region);break}break;case"vertical":ze.alt(Zt,Cr,["rl","lr"]);break;case"line":Sr=Cr.split(","),ze.integer(Zt,Sr[0]),ze.percent(Zt,Sr[0])&&ze.set("snapToLines",!1),ze.alt(Zt,Sr[0],["auto"]),Sr.length===2&&ze.alt("lineAlign",Sr[1],["start",Tl,"end"]);break;case"position":Sr=Cr.split(","),ze.percent(Zt,Sr[0]),Sr.length===2&&ze.alt("positionAlign",Sr[1],["start",Tl,"end","line-left","line-right","auto"]);break;case"size":ze.percent(Zt,Cr);break;case"align":ze.alt(Zt,Cr,["start",Tl,"end","left","right"]);break}},/:/,/\s/),Te.region=ze.get("region",null),Te.vertical=ze.get("vertical","");var ot=ze.get("line","auto");ot==="auto"&&Ws.line===-1&&(ot=-1),Te.line=ot,Te.lineAlign=ze.get("lineAlign","start"),Te.snapToLines=ze.get("snapToLines",!0),Te.size=ze.get("size",100),Te.align=ze.get("align",Tl);var ft=ze.get("position","auto");ft==="auto"&&Ws.position===50&&(ft=Te.align==="start"||Te.align==="left"?0:Te.align==="end"||Te.align==="right"?100:50),Te.position=ft}function ne(){Ae=Ae.replace(/^\s+/,"")}if(ne(),ee.startTime=H(),ne(),Ae.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+W);Ae=Ae.slice(3),ne(),ee.endTime=H(),ne(),Z(Ae,ee)}function jo(Ae){return Ae.replace(/<br(?: \/)?>/gi,`
`)}var yo=function(){function Ae(){Object(r.a)(this,Ae),this.state="INITIAL",this.buffer="",this.decoder=new Ql,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}return Object(a.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,ft=0;for(ot=jo(ot);ft<ot.length&&ot[ft]!=="\r"&&ot[ft]!==`
`;)++ft;var Zt=ot.slice(0,ft);return ot[ft]==="\r"&&++ft,ot[ft]===`
`&&++ft,W.buffer=ot.slice(ft),Zt}function Z(ot){Ts(ot,function(ft,Zt){},/:/)}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 ze=ne.indexOf("-->")!==-1;if(!ne||ze&&(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(ee,L){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return ee.slice(W,W+L.length)===L},Is=function(ee){var L=parseInt(ee.slice(-3)),W=parseInt(ee.slice(-6,-4)),H=parseInt(ee.slice(-9,-7)),Z=ee.length>9?parseInt(ee.substring(0,ee.indexOf(":"))):0;if(!T(L)||!T(W)||!T(H)||!T(Z))throw Error("Malformed X-TIMESTAMP-MAP: Local:".concat(ee));return L+=1e3*W,L+=60*1e3*H,L+=60*60*1e3*Z,L},es=function(ee){for(var L=5381,W=ee.length;W;)L=L*33^ee.charCodeAt(--W);return(L>>>0).toString()};function Ls(Ae,ee,L){return es(Ae.toString())+es(ee.toString())+es(L)}var Ps=function(ee,L,W){var H=ee[L],Z=ee[H.prevCC];if(!Z||!Z.new&&H.new){ee.ccOffset=ee.presentationOffset=H.start,H.new=!1;return}for(;(ne=Z)!=null&&ne.new;){var ne;ee.ccOffset+=H.start-Z.start,H.new=!1,H=Z,Z=ee[H.prevCC]}ee.presentationOffset=W};function ml(Ae,ee,L,W,H,Z,ne){var ve=new yo,Te=lt(new Uint8Array(Ae)).trim().replace(qo,`
`).split(`
`),ze=[],ot=ee?lo(ee.baseTime,ee.timescale):0,ft="00:00.000",Zt=0,Cr=0,Sr,Wr=!0;ve.oncue=function($r){var On=L[W],Rn=L.ccOffset,Zn=(Zt-ot)/9e4;if(On!=null&&On.new&&(Cr!==void 0?Rn=L.ccOffset=On.start:Ps(L,W,Zn)),Zn){if(!ee){Sr=new Error("Missing initPTS for VTT MPEGTS");return}Rn=Zn-L.presentationOffset}var wi=$r.endTime-$r.startTime,ua=Ko(($r.startTime+Rn-Cr)*9e4,H*9e4)/9e4;$r.startTime=Math.max(ua,0),$r.endTime=Math.max(ua+wi,0);var Vi=$r.text.trim();$r.text=decodeURIComponent(encodeURIComponent(Vi)),$r.id||($r.id=Ls($r.startTime,$r.endTime,Vi)),$r.endTime>0&&ze.push($r)},ve.onparsingerror=function($r){Sr=$r},ve.onflush=function(){if(Sr){ne(Sr);return}Z(ze)},Te.forEach(function($r){if(Wr)if(ps($r,"X-TIMESTAMP-MAP=")){Wr=!1,$r.slice(16).split(",").forEach(function(On){ps(On,"LOCAL:")?ft=On.slice(6):ps(On,"MPEGTS:")&&(Zt=parseInt(On.slice(7)))});try{Cr=Is(ft)/1e3}catch(On){Sr=On}return}else $r===""&&(Wr=!1);ve.parse($r+`
`)}),ve.flush()}var Rl="stpp.ttml.im1t",_l=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Bl=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,jl={left:"start",center:"center",right:"end",start:"start",end:"end"};function kl(Ae,ee,L,W){var H=pt(new Uint8Array(Ae),["mdat"]);if(H.length===0){W(new Error("Could not parse IMSC1 mdat"));return}var Z=H.map(function(ve){return lt(ve)}),ne=Fa(ee.baseTime,1,ee.timescale);try{Z.forEach(function(ve){return L(Xl(ve,ne))})}catch(ve){W(ve)}}function Xl(Ae,ee){var L=new DOMParser,W=L.parseFromString(Ae,"text/xml"),H=W.getElementsByTagName("tt")[0];if(!H)throw new Error("Invalid ttml");var Z={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},ne=Object.keys(Z).reduce(function(ft,Zt){return ft[Zt]=H.getAttribute("ttp:".concat(Zt))||Z[Zt],ft},{}),ve=H.getAttribute("xml:space")!=="preserve",Te=Ys(ol(H,"styling","style")),ze=Ys(ol(H,"layout","region")),ot=ol(H,"body","[begin]");return[].map.call(ot,function(ft){var Zt=sl(ft,ve);if(!Zt||!ft.hasAttribute("begin"))return null;var Cr=Wl(ft.getAttribute("begin"),ne),Sr=Wl(ft.getAttribute("dur"),ne),Wr=Wl(ft.getAttribute("end"),ne);if(Cr===null)throw Ml(ft);if(Wr===null){if(Sr===null)throw Ml(ft);Wr=Cr+Sr}var $r=new Xs(Cr-ee,Wr-ee,Zt);$r.id=Ls($r.startTime,$r.endTime,$r.text);var On=ze[ft.getAttribute("region")],Rn=Te[ft.getAttribute("style")],Zn=nl(On,Rn,Te),wi=Zn.textAlign;if(wi){var ua=jl[wi];ua&&($r.lineAlign=ua),$r.align=wi}return E($r,Zn),$r}).filter(function(ft){return ft!==null})}function ol(Ae,ee,L){var W=Ae.getElementsByTagName(ee)[0];return W?[].slice.call(W.querySelectorAll(L)):[]}function Ys(Ae){return Ae.reduce(function(ee,L){var W=L.getAttribute("xml:id");return W&&(ee[W]=L),ee},{})}function sl(Ae,ee){return[].slice.call(Ae.childNodes).reduce(function(L,W,H){var Z;return W.nodeName==="br"&&H?L+`
`:(Z=W.childNodes)!=null&&Z.length?sl(W,ee):ee?L+W.textContent.trim().replace(/\s+/g," "):L+W.textContent},"")}function nl(Ae,ee,L){var W="http://www.w3.org/ns/ttml#styling",H=null,Z=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],ne=Ae!=null&&Ae.hasAttribute("style")?Ae.getAttribute("style"):null;return ne&&L.hasOwnProperty(ne)&&(H=L[ne]),Z.reduce(function(ve,Te){var ze=xl(ee,W,Te)||xl(Ae,W,Te)||xl(H,W,Te);return ze&&(ve[Te]=ze),ve},{})}function xl(Ae,ee,L){return Ae&&Ae.hasAttributeNS(ee,L)?Ae.getAttributeNS(ee,L):null}function Ml(Ae){return new Error("Could not parse ttml timestamp ".concat(Ae))}function Wl(Ae,ee){if(!Ae)return null;var L=Ul(Ae);return L===null&&(_l.test(Ae)?L=au(Ae,ee):Bl.test(Ae)&&(L=Nl(Ae,ee))),L}function au(Ae,ee){var L=_l.exec(Ae),W=(L[4]|0)+(L[5]|0)/ee.subFrameRate;return(L[1]|0)*3600+(L[2]|0)*60+(L[3]|0)+W/ee.frameRate}function Nl(Ae,ee){var L=Bl.exec(Ae),W=Number(L[1]),H=L[2];switch(H){case"h":return W*3600;case"m":return W*60;case"ms":return W*1e3;case"f":return W/ee.frameRate;case"t":return W/ee.tickRate}return W}var $l=function(){function Ae(ee){if(Object(r.a)(this,Ae),this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=pu(),this.captionsProperties=void 0,this.hls=ee,this.config=ee.config,this.Cues=ee.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var L=new Os(this,"textTrack1"),W=new Os(this,"textTrack2"),H=new Os(this,"textTrack3"),Z=new Os(this,"textTrack4");this.cea608Parser1=new Ra(1,L,W),this.cea608Parser2=new Ra(3,H,Z)}ee.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),ee.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),ee.on(w.MANIFEST_LOADING,this.onManifestLoading,this),ee.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),ee.on(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),ee.on(w.FRAG_LOADING,this.onFragLoading,this),ee.on(w.FRAG_LOADED,this.onFragLoaded,this),ee.on(w.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),ee.on(w.FRAG_DECRYPTED,this.onFragDecrypted,this),ee.on(w.INIT_PTS_FOUND,this.onInitPtsFound,this),ee.on(w.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),ee.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this)}return Object(a.a)(Ae,[{key:"destroy",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),L.off(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),L.off(w.FRAG_LOADING,this.onFragLoading,this),L.off(w.FRAG_LOADED,this.onFragLoaded,this),L.off(w.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),L.off(w.FRAG_DECRYPTED,this.onFragDecrypted,this),L.off(w.INIT_PTS_FOUND,this.onInitPtsFound,this),L.off(w.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),L.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null}},{key:"addCues",value:function(L,W,H,Z,ne){for(var ve=!1,Te=ne.length;Te--;){var ze=ne[Te],ot=Iu(ze[0],ze[1],W,H);if(ot>=0&&(ze[0]=Math.min(ze[0],W),ze[1]=Math.max(ze[1],H),ve=!0,ot/(H-W)>.5))return}if(ve||ne.push([W,H]),this.config.renderTextTracksNatively){var ft=this.captionsTracks[L];this.Cues.newCue(ft,W,H,Z)}else{var Zt=this.Cues.newCue(null,W,H,Z);this.hls.trigger(w.CUES_PARSED,{type:"captions",cues:Zt,track:L})}}},{key:"onInitPtsFound",value:function(L,W){var H=this,Z=W.frag,ne=W.id,ve=W.initPTS,Te=W.timescale,ze=this.unparsedVttFrags;ne==="main"&&(this.initPTS[Z.cc]={baseTime:ve,timescale:Te}),ze.length&&(this.unparsedVttFrags=[],ze.forEach(function(ot){H.onFragLoaded(w.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,ze=this.getExistingTrack(L);if(ze)H[L]=ze,Vn(H[L]),gn(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(w.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[Z]})}},{key:"createTextTrack",value:function(L,W,H){var Z=this.media;return Z?Z.addTextTrack(L,W,H):void 0}},{key:"onMediaAttaching",value:function(L,W){this.media=W.media,this._cleanTracks()}},{key:"onMediaDetaching",value:function(){var L=this.captionsTracks;Object.keys(L).forEach(function(W){Vn(L[W]),delete L[W]}),this.nonNativeCaptionsTracks={}}},{key:"onManifestLoading",value:function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=pu(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}},{key:"_cleanTracks",value:function(){var L=this.media;if(!L)return;var W=L.textTracks;if(W)for(var H=0;H<W.length;H++)Vn(W[H])}},{key:"onSubtitleTracksUpdated",value:function(L,W){var H=this,Z=W.subtitleTracks||[],ne=Z.some(function(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,ft){var Zt;if(Te&&ft<Te.length){for(var Cr=null,Sr=0;Sr<Te.length;Sr++)if(tu(Te[Sr],ot)){Cr=Te[Sr];break}Cr&&(Zt=Cr)}if(Zt)Vn(Zt);else{var Wr=H._captionsOrSubtitlesFromCharacteristics(ot);Zt=H.createTextTrack(Wr,ot.name,ot.lang),Zt&&(Zt.mode="disabled")}Zt&&(Zt.groupId=ot.groupId,H.textTracks.push(Zt))})}else if(this.tracks.length){var ze=this.tracks.map(function(ot){return{label:ot.name,kind:ot.type.toLowerCase(),default:ot.default,subtitleTrack:ot}});this.hls.trigger(w.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:ze})}}}},{key:"_captionsOrSubtitlesFromCharacteristics",value:function(L){if(L.attrs.CHARACTERISTICS){var W=/transcribes-spoken-dialog/gi.test(L.attrs.CHARACTERISTICS),H=/describes-music-and-sound/gi.test(L.attrs.CHARACTERISTICS);if(W&&H)return"captions"}return"subtitles"}},{key:"onManifestLoaded",value:function(L,W){var H=this;this.config.enableCEA708Captions&&W.captions&&W.captions.forEach(function(Z){var ne=/(?:CC|SERVICE)([1-4])/.exec(Z.instreamId);if(!ne)return;var ve="textTrack".concat(ne[1]),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===gt.MAIN){var Te,ze,ot=W.frag.sn,ft=(Te=W==null||(ze=W.part)==null?void 0:ze.index)!=null?Te:-1;ot===ne+1||ot===ne&&ft===ve+1||(H.reset(),Z.reset()),this.lastSn=ot,this.lastPartIndex=ft}}},{key:"onFragLoaded",value:function(L,W){var H=W.frag,Z=W.payload;if(H.type===gt.SUBTITLE)if(Z.byteLength){var ne=H.decryptdata,ve="stats"in W;if(ne==null||!ne.encrypted||ve){var Te=this.tracks[H.level],ze=this.vttCCs;ze[H.cc]||(ze[H.cc]={start:H.start,prevCC:this.prevCC,new:!0},this.prevCC=H.cc),Te&&Te.textCodec===Rl?this._parseIMSC1(H,Z):this._parseVTTs(W)}}else this.hls.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:H,error:new Error("Empty subtitle payload")})}},{key:"_parseIMSC1",value:function(L,W){var H=this,Z=this.hls;kl(W,this.initPTS[L.cc],function(ne){H._appendCues(ne,L.level),Z.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:L})},function(ne){j.log("Failed to parse IMSC1: ".concat(ne)),Z.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:L,error:ne})})}},{key:"_parseVTTs",value:function(L){var W=this,H,Z=L.frag,ne=L.payload,ve=this.initPTS,Te=this.unparsedVttFrags,ze=ve.length-1;if(!ve[Z.cc]&&ze===-1){Te.push(L);return}var ot=this.hls,ft=(H=Z.initSegment)!=null&&H.data?Ct(Z.initSegment.data,new Uint8Array(ne)):ne;ml(ft,this.initPTS[Z.cc],this.vttCCs,Z.cc,Z.start,function(Zt){W._appendCues(Zt,Z.level),ot.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:Z})},function(Zt){var Cr=Zt.message==="Missing initPTS for VTT MPEGTS";if(Cr?Te.push(L):W._fallbackToIMSC1(Z,ne),j.log("Failed to parse VTT cue: ".concat(Zt)),Cr&&ze>Z.cc)return;ot.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:Z,error:Zt})})}},{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 vr(Z,Te)})}else{var ne=this.tracks[W];if(!ne)return;var ve=ne.default?"default":"subtitles"+W;H.trigger(w.CUES_PARSED,{type:"subtitles",cues:L,track:ve})}}},{key:"onFragDecrypted",value:function(L,W){var H=W.frag;H.type===gt.SUBTITLE&&this.onFragLoaded(w.FRAG_LOADED,W)}},{key:"onSubtitleTracksCleared",value:function(){this.tracks=[],this.captionsTracks={}}},{key:"onFragParsingUserdata",value:function(L,W){var H=this.cea608Parser1,Z=this.cea608Parser2;if(!this.enabled||!(H&&Z))return;var ne=W.frag,ve=W.samples;if(ne.type===gt.MAIN&&this.closedCaptionsForLevel(ne)==="NONE")return;for(var Te=0;Te<ve.length;Te++){var ze=ve[Te].bytes;if(ze){var ot=this.extractCea608Data(ze);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 ze=this.captionsTracks;Object.keys(ze).forEach(function(ft){return kr(ze[ft],H,Z)})}if(this.config.renderTextTracksNatively&&(H===0&&ne!==void 0)){var ot=this.textTracks;Object.keys(ot).forEach(function(ft){return kr(ot[ft],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++],ze=127&L[Z++];if(Te===0&&ze===0)continue;var ot=(4&ve)!==0;if(ot){var ft=3&ve;(ft===0||ft===1)&&(W[ft].push(Te),W[ft].push(ze))}}return W}}]),Ae}();function tu(Ae,ee){return!!Ae&&Ae.label===ee.name&&!(Ae.textTrack1||Ae.textTrack2)}function Iu(Ae,ee,L,W){return Math.min(ee,W)-Math.max(Ae,L)}function pu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}var mu=function(){function Ae(ee){Object(r.a)(this,Ae),this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=ee,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}return Object(a.a)(Ae,[{key:"setStreamController",value:function(L){this.streamController=L}},{key:"destroy",value:function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}},{key:"registerListeners",value:function(){var L=this.hls;L.on(w.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),L.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.on(w.MANIFEST_PARSED,this.onManifestParsed,this),L.on(w.BUFFER_CODECS,this.onBufferCodecs,this),L.on(w.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"unregisterListener",value:function(){var L=this.hls;L.off(w.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),L.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(w.MANIFEST_PARSED,this.onManifestParsed,this),L.off(w.BUFFER_CODECS,this.onBufferCodecs,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"onFpsDropLevelCapping",value:function(L,W){var H=this.hls.levels[W.droppedLevel];this.isLevelAllowed(H)&&this.restrictedLevels.push({bitrate:H.bitrate,height:H.height,width:H.width})}},{key:"onMediaAttaching",value:function(L,W){this.media=W.media instanceof HTMLVideoElement?W.media:null,this.clientRect=null}},{key:"onManifestParsed",value:function(L,W){var H=this.hls;this.restrictedLevels=[],this.firstLevel=W.firstLevel,H.config.capLevelToPlayerSize&&W.video&&this.startCapping()}},{key:"onBufferCodecs",value:function(L,W){var H=this.hls;H.config.capLevelToPlayerSize&&W.video&&this.startCapping()}},{key:"onMediaDetaching",value:function(){this.stopCapping()}},{key:"detectPlayerSize",value:function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var L=this.hls.levels;if(L.length){var W=this.hls;W.autoLevelCapping=this.getMaxLevel(L.length-1),W.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=W.autoLevelCapping}}}},{key:"getMaxLevel",value:function(L){var W=this,H=this.hls.levels;if(!H.length)return-1;var Z=H.filter(function(ne,ve){return W.isLevelAllowed(ne)&&ve<=L});return this.clientRect=null,Ae.getMaxLevelByMediaSize(Z,this.mediaWidth,this.mediaHeight)}},{key:"startCapping",value:function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()}},{key:"stopCapping",value:function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}},{key:"getDimensions",value:function(){if(this.clientRect)return this.clientRect;var L=this.media,W={width:0,height:0};if(L){var H=L.getBoundingClientRect();W.width=H.width,W.height=H.height,!W.width&&!W.height&&(W.width=H.right-H.left||L.width||0,W.height=H.bottom-H.top||L.height||0)}return this.clientRect=W,W}},{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var L=1;if(!this.hls.config.ignoreDevicePixelRatio)try{L=self.devicePixelRatio}catch(W){}return L}},{key:"isLevelAllowed",value:function(L){var W=this.restrictedLevels;return!W.some(function(H){return L.bitrate===H.bitrate&&L.width===H.width&&L.height===H.height})}}],[{key:"getMaxLevelByMediaSize",value:function(L,W,H){if(!(L!=null&&L.length))return-1;for(var Z=function(ot,ft){return ft?ot.width!==ft.width||ot.height!==ft.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(ee){Object(r.a)(this,Ae),this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=ee,this.registerListeners()}return Object(a.a)(Ae,[{key:"setStreamController",value:function(L){this.streamController=L}},{key:"registerListeners",value:function(){this.hls.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"destroy",value:function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}},{key:"onMediaAttaching",value:function(L,W){var H=this.hls.config;if(H.capLevelOnFPSDrop){var Z=W.media instanceof self.HTMLVideoElement?W.media:null;this.media=Z,Z&&typeof Z.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),H.fpsDroppedMonitoringPeriod)}}},{key:"checkFPS",value:function(L,W,H){var Z=performance.now();if(W){if(this.lastTime){var ne=Z-this.lastTime,ve=H-this.lastDroppedFrames,Te=W-this.lastDecodedFrames,ze=1e3*ve/ne,ot=this.hls;if(ot.trigger(w.FPS_DROP,{currentDropped:ve,currentDecoded:Te,totalDroppedFrames:H}),ze>0&&ve>ot.config.fpsDroppedMonitoringThreshold*Te){var ft=ot.currentLevel;j.warn("drop FPS ratio greater than max allowed value for currentLevel: "+ft),ft>0&&(ot.autoLevelCapping===-1||ot.autoLevelCapping>=ft)&&(ft=ft-1,ot.trigger(w.FPS_DROP_LEVEL_CAPPING,{level:ft,droppedLevel:ot.currentLevel}),ot.autoLevelCapping=ft,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(ee){Object(r.a)(this,Ae),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Ae.CDMCleanupPromise?[Ae.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=j.debug.bind(j,ql),this.log=j.log.bind(j,ql),this.warn=j.warn.bind(j,ql),this.error=j.error.bind(j,ql),this.hls=ee,this.config=ee.config,this.registerListeners()}return Object(a.a)(Ae,[{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetached();var L=this.config;L.requestMediaKeySystemAccessFunc=null,L.licenseXhrSetup=L.licenseResponseCallback=void 0,L.drmSystems=L.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null}},{key:"registerListeners",value:function(){this.hls.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(w.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(w.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(w.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(w.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"getLicenseServerUrl",value:function(L){var W=this.config,H=W.drmSystems,Z=W.widevineLicenseUrl,ne=H[L];if(ne)return ne.licenseUrl;if(L===he.WIDEVINE&&Z)return Z;throw new Error('no license server URL configured for key-system "'.concat(L,'"'))}},{key:"getServerCertificateUrl",value:function(L){var W=this.config.drmSystems,H=W[L];if(H)return H.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'.concat(L,'"]'))}},{key:"attemptKeySystemAccess",value:function(L){var W=this,H=this.hls.levels,Z=function(ze,ot,ft){return!!ze&&ft.indexOf(ze)===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,ze){var ot=function ft(Zt){var Cr=Zt.shift();W.getMediaKeysPromise(Cr,ne,ve).then(function(Sr){return Te({keySystem:Cr,mediaKeys:Sr})}).catch(function(Sr){Zt.length?ft(Zt):Sr instanceof ll?ze(Sr):ze(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_ACCESS,error:Sr,fatal:!0},Sr.message))})};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 Be===null&&self.location.protocol==="http:"&&(Z="navigator.requestMediaKeySystemAccess is not available over insecure protocol ".concat(location.protocol)),Promise.reject(new Error(Z))}return H(L,W)}},{key:"getMediaKeysPromise",value:function(L,W,H){var Z=this,ne=fe(L,W,H,this.config.drmSystemOptions),ve=this.keySystemAccessPromises[L],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 ze=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 ft=Z.fetchServerCertificate(L);return Z.log('Create media-keys for "'.concat(L,'"')),ze.mediaKeys=ot.createMediaKeys().then(function(Zt){return Z.log('Media-keys created for "'.concat(L,'"')),ft.then(function(Cr){return Cr?Z.setMediaKeysServerCertificate(Zt,L,Cr):Zt})}),ze.mediaKeys.catch(function(Zt){Z.error('Failed to create media-keys for "'.concat(L,'"}: ').concat(Zt))}),ze.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(Ht.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 Ht.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(Ht.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 ze=Te.keySystem,ot=be(ze);ot?H(ot):Z(new Error('Unable to find format for key-system "'.concat(ze,'"')))}).catch(Z)})}},{key:"loadKey",value:function(L){var W=this,H=L.keyInfo.decryptdata,Z=this.getKeyIdString(H),ne="(keyId: ".concat(Z,' format: "').concat(H.keyFormat,'" method: ').concat(H.method," uri: ").concat(H.uri,")");this.log("Starting session for key ".concat(ne));var ve=this.keyIdToKeySessionPromise[Z];return ve||(ve=this.keyIdToKeySessionPromise[Z]=this.getKeySystemForKeyPromise(H).then(function(Te){var ze=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(ze,ot).then(function(){W.throwIfDestroyed();var ft=W.createMediaKeySessionContext({keySystem:ze,mediaKeys:ot,decryptdata:H}),Zt="cenc";return W.generateRequestWithPreferredKeySession(ft,Zt,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(w.ERROR,L.data):this.hls.trigger(w.ERROR,{type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_KEYS,error:L,fatal:!0})}},{key:"getKeySystemForKeyPromise",value:function(L){var W=this.getKeyIdString(L),H=this.keyIdToKeySessionPromise[W];if(!H){var Z=Y(L.keyFormat),ne=Z?[Z]: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[he.FAIRPLAY]){var Te=ur(new Uint8Array(Z));try{var ze=Ve(JSON.parse(Te).sinf),ot=_n(new Uint8Array(ze));if(!ot)return;ne=ot.subarray(8,24),ve=he.FAIRPLAY}catch(Zn){this.warn('Failed to parse sinf "encrypted" event message initData');return}}else{var ft=Vr(Z);if(ft===null)return;ft.version===0&&ft.systemId===$.WIDEVINE&&ft.data&&(ne=ft.data.subarray(8,24)),ve=de(ft.systemId)}if(!ve||!ne)return;for(var Zt=Ht.hexDump(ne),Cr=this.keyIdToKeySessionPromise,Sr=this.mediaKeySessions,Wr=Cr[Zt],$r=function(){var wi=Sr[Rn],ua=wi.decryptdata;if(ua.pssh||!ua.keyId)return 0;var Vi=Ht.hexDump(ua.keyId);if(Zt===Vi||ua.uri.replace(/-/g,"").indexOf(Zt)!==-1)return Wr=Cr[Vi],delete Cr[Vi],ua.pssh=new Uint8Array(Z),ua.keyId=ne,Wr=Cr[Zt]=Wr.then(function(){return W.generateRequestWithPreferredKeySession(wi,H,Z,"encrypted-event-key-match")}),1},On,Rn=0;Rn<Sr.length;Rn++){if(On=$r(),On===0)continue;if(On===1)break}Wr||(Wr=Cr[Zt]=this.getKeySystemSelectionPromise([ve]).then(function(Zn){var wi=Zn.keySystem,ua=Zn.mediaKeys,Vi;W.throwIfDestroyed();var Zi=new Ft("ISO-23001-7",Zt,(Vi=be(wi))!=null?Vi:"");return Zi.pssh=new Uint8Array(Z),Zi.keyId=ne,W.attemptSetMediaKeys(wi,ua).then(function(){W.throwIfDestroyed();var ka=W.createMediaKeySessionContext({decryptdata:Zi,keySystem:wi,mediaKeys:ua});return W.generateRequestWithPreferredKeySession(ka,H,Z,"encrypted-event-no-match")})})),Wr.catch(function(Zn){return W.handleError(Zn)})}},{key:"_onWaitingForKey",value:function(L){this.log('"'.concat(L.type,'" event'))}},{key:"attemptSetMediaKeys",value:function(L,W){var H=this,Z=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'.concat(L,'"'));var ne=Promise.all(Z).then(function(){if(!H.media)throw new Error("Attempted to set mediaKeys without media element attached");return H.media.setMediaKeys(W)});return this.setMediaKeysQueue.push(ne),ne.then(function(){H.log('Media-keys set for "'.concat(L,'"')),Z.push(ne),H.setMediaKeysQueue=H.setMediaKeysQueue.filter(function(ve){return Z.indexOf(ve)===-1})})}},{key:"generateRequestWithPreferredKeySession",value:function(L,W,H,Z){var ne=this,ve,Te,ze=(ve=this.config.drmSystems)==null||(Te=ve[L.keySystem])==null?void 0:Te.generateRequest;if(ze)try{var ot=ze.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(Wr){var ft;if(this.warn(Wr.message),(ft=this.hls)!=null&&ft.config.debug)throw Wr}if(H===null)return this.log('Skipping key-session request for "'.concat(Z,'" (no initData)')),Promise.resolve(L);var Zt=this.getKeyIdString(L.decryptdata);this.log('Generating key-session request for "'.concat(Z,'": ').concat(Zt," (init data type: ").concat(W," length: ").concat(H?H.byteLength:null,")"));var Cr=new ds;L.mediaKeysSession.onmessage=function(Wr){var $r=L.mediaKeysSession;if(!$r){Cr.emit("error",new Error("invalid state"));return}var On=Wr.messageType,Rn=Wr.message;ne.log('"'.concat(On,'" message event for session "').concat($r.sessionId,'" message size: ').concat(Rn.byteLength)),On==="license-request"||On==="license-renewal"?ne.renewLicense(L,Rn).catch(function(Zn){ne.handleError(Zn),Cr.emit("error",Zn)}):On==="license-release"?L.keySystem===he.FAIRPLAY&&(ne.updateKeySession(L,at("acknowledged")),ne.removeSession(L)):ne.warn('unhandled media key message type "'.concat(On,'"'))},L.mediaKeysSession.onkeystatuseschange=function(Wr){var $r=L.mediaKeysSession;if(!$r){Cr.emit("error",new Error("invalid state"));return}ne.onKeyStatusChange(L);var On=L.keyStatus;Cr.emit("keyStatus",On),On==="expired"&&(ne.warn("".concat(L.keySystem," expired for key ").concat(Zt)),ne.renewKeySession(L))};var Sr=new Promise(function(Wr,$r){Cr.on("error",$r),Cr.on("keyStatus",function(On){On.startsWith("usable")?Wr():On==="output-restricted"?$r(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):On==="internal-error"?$r(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'.concat(On,'"'))):On==="expired"?$r(new Error("key expired while generating request")):ne.warn('unhandled key status change "'.concat(On,'"'))})});return L.mediaKeysSession.generateRequest(W,H).then(function(){var Wr;ne.log('Request generated for key-session "'.concat((Wr=L.mediaKeysSession)==null?void 0:Wr.sessionId,'" keyId: ').concat(Zt))}).catch(function(Wr){throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_SESSION,error:Wr,fatal:!1},"Error generating key-session request: ".concat(Wr))}).then(function(){return Sr}).catch(function(Wr){throw Cr.removeAllListeners(),ne.removeSession(L),Wr}).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(Ht.hexDump("buffer"in Z?new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength):new Uint8Array(Z))," session keyId: ").concat(Ht.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 ze={responseType:"arraybuffer",url:ne},ot=W.certLoadPolicy.default,ft={loadPolicy:ot,timeout:ot.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Zt={onSuccess:function(Sr,Wr,$r,On){ve(Sr.data)},onError:function(Sr,Wr,$r,On){Te(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:$r,response:b({url:ze.url,data:void 0},Sr)},'"'.concat(L,'" certificate request failed (').concat(ne,"). Status: ").concat(Sr.code," (").concat(Sr.text,")")))},onTimeout:function(Sr,Wr,$r){Te(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:$r,response:{url:ze.url,data:void 0}},'"'.concat(L,'" certificate request timed out (').concat(ne,")")))},onAbort:function(Sr,Wr,$r){Te(new Error("aborted"))}};Z.load(ze,ft,Zt)})):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 ze=Te||Z;return{xhr:L,licenseChallenge:ze}}):(L.open("POST",W,!0),Promise.resolve({xhr:L,licenseChallenge:Z}))}},{key:"requestLicense",value:function(L,W){var H=this,Z=this.config.keyLoadPolicy.default;return new Promise(function(ne,ve){var Te=H.getLicenseServerUrl(L.keySystem);H.log("Sending license request to URL: ".concat(Te));var ze=new XMLHttpRequest;ze.responseType="arraybuffer",ze.onreadystatechange=function(){if(!H.hls||!L.mediaKeysSession)return ve(new Error("invalid state"));if(ze.readyState===4)if(ze.status===200){H._requestLicenseFailureCount=0;var ot=ze.response;H.log("License received ".concat(ot instanceof ArrayBuffer?ot.byteLength:ot));var ft=H.config.licenseResponseCallback;if(ft)try{ot=ft.call(H.hls,ze,Te,L)}catch(Wr){H.error(Wr)}ne(ot)}else{var Zt=Z.errorRetry,Cr=Zt?Zt.maxNumRetry:0;if(H._requestLicenseFailureCount++,H._requestLicenseFailureCount>Cr||ze.status>=400&&ze.status<500)ve(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:ze,response:{url:Te,data:void 0,code:ze.status,text:ze.statusText}},"License Request XHR failed (".concat(Te,"). Status: ").concat(ze.status," (").concat(ze.statusText,")")));else{var Sr=Cr-H._requestLicenseFailureCount+1;H.warn("Retrying license request, ".concat(Sr," attempts left")),H.requestLicense(L,W).then(ne,ve)}}},L.licenseXhr&&L.licenseXhr.readyState!==XMLHttpRequest.DONE&&L.licenseXhr.abort(),L.licenseXhr=ze,H.setupLicenseXHR(ze,Te,L,W).then(function(ot){var ft=ot.xhr,Zt=ot.licenseChallenge;ft.send(Zt)})})}},{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={},Ft.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(s.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H){var Z;return Object(r.a)(this,L),Z=ee.call(this,H),Z.data=void 0,W.error||(W.error=new Error(H)),Z.data=W,W.err=W.error,Z}return Object(a.a)(L)}(i(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(ee){var L=this;Object(r.a)(this,Ae),this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){L.initialized&&(L.starved=!0),L.buffering=!0},this.onPlaying=function(){L.initialized||(L.initialized=!0),L.buffering=!1},this.applyPlaylistData=function(Z){try{L.apply(Z,{ot: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),ze={d:ne.duration*1e3,ot:Te};(Te===Sl.VIDEO||Te===Sl.AUDIO||Te==Sl.MUXED)&&(ze.br=ve.bitrate/1e3,ze.tb=L.getTopBandwidth(Te)/1e3,ze.bl=L.getBufferLength(Te)),L.apply(Z,ze)}catch(ot){j.warn("Could not generate segment CMCD data.",ot)}},this.hls=ee;var W=this.config=ee.config,H=W.cmcd;H!=null&&(W.pLoader=this.createPlaylistLoader(),W.fLoader=this.createFragmentLoader(),this.sid=H.sessionId||Ae.uuid(),this.cid=H.contentId,this.useHeaders=H.useHeaders===!0,this.registerListeners())}return Object(a.a)(Ae,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.on(w.MEDIA_DETACHED,this.onMediaDetached,this),L.on(w.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.off(w.MEDIA_DETACHED,this.onMediaDetached,this),L.off(w.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null}},{key:"onMediaAttached",value:function(L,W){this.media=W.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}},{key:"onMediaDetached",value:function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null}},{key:"onBufferCreated",value:function(L,W){var H,Z;this.audioBuffer=(H=W.tracks.audio)==null?void 0:H.buffer,this.videoBuffer=(Z=W.tracks.video)==null?void 0:Z.buffer}},{key:"createData",value:function(){var L;return{v:Hl,sf: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),ze;try{for(Te.s();!(ze=Te.n()).done;){var ot=ze.value;ot.bitrate>W&&(W=ot.bitrate)}}catch(ft){Te.e(ft)}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=Ii.bufferInfo(H,W.currentTime,this.config.maxBufferHole);return Z.len*1e3}},{key:"createPlaylistLoader",value:function(){var L=this.config.pLoader,W=this.applyPlaylistData,H=L||this.config.loader;return function(){function Z(ne){Object(r.a)(this,Z),this.loader=void 0,this.loader=new H(ne)}return Object(a.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,ze){W(ve),this.loader.load(ve,Te,ze)}}]),Z}()}},{key:"createFragmentLoader",value:function(){var L=this.config.fLoader,W=this.applyFragmentData,H=L||this.config.loader;return function(){function Z(ne){Object(r.a)(this,Z),this.loader=void 0,this.loader=new H(ne)}return Object(a.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,ze){W(ve),this.loader.load(ve,Te,ze)}}]),Z}()}}],[{key:"uuid",value:function(){var L=URL.createObjectURL(new Blob),W=L.toString();return URL.revokeObjectURL(L),W.slice(W.lastIndexOf("/")+1)}},{key:"serialize",value:function(L){var W=[],H=function(Rn){return!Number.isNaN(Rn)&&Rn!=null&&Rn!==""&&Rn!==!1},Z=function(Rn){return Math.round(Rn)},ne=function(Rn){return Z(Rn/100)*100},ve=function(Rn){return encodeURIComponent(Rn)},Te={br:Z,d:Z,bl:ne,dl:ne,mtp:ne,nor:ve,rtp:ne,tb:Z},ze=Object.keys(L||{}).sort(),ot=Object(p.a)(ze),ft;try{for(ot.s();!(ft=ot.n()).done;){var Zt=ft.value,Cr=L[Zt];if(!H(Cr))continue;if(Zt==="v"&&Cr===1)continue;if(Zt=="pr"&&Cr===1)continue;var Sr=Te[Zt];Sr&&(Cr=Sr(Cr));var Wr=typeof Cr,$r=void 0;Zt==="ot"||Zt==="sf"||Zt==="st"?$r="".concat(Zt,"=").concat(Cr):Wr==="boolean"?$r=Zt:Wr==="number"?$r="".concat(Zt,"=").concat(Cr):$r="".concat(Zt,"=").concat(JSON.stringify(Cr)),W.push($r)}}catch(On){ot.e(On)}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,ze=W;Te<ze.length;Te++){var ot=ze[Te],ft=ve[ot]!=null?ve[ot]:1;ne[ft][ot]=L[ot]}for(var Zt=0;Zt<ne.length;Zt++){var Cr=Ae.serialize(ne[Zt]);Cr&&(H["CMCD-".concat(Z[Zt])]=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(ee){Object(r.a)(this,Ae),this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=ee,this.log=j.log.bind(j,"[content-steering]:"),this.registerListeners()}return Object(a.a)(Ae,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),L.on(w.MANIFEST_PARSED,this.onManifestParsed,this),L.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;if(!L)return;L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),L.off(w.MANIFEST_PARSED,this.onManifestParsed,this),L.off(w.ERROR,this.onError,this)}},{key:"startLoad",value:function(){if(this.started=!0,self.clearTimeout(this.reloadTimer),this.enabled&&this.uri)if(this.updated){var L=Math.max(this.timeToLoad*1e3-(performance.now()-this.updated),0);this.scheduleRefresh(this.uri,L)}else this.loadSteeringManifest(this.uri)}},{key:"stopLoad",value:function(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),self.clearTimeout(this.reloadTimer)}},{key:"destroy",value:function(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}},{key:"removeLevel",value:function(L){var W=this.levels;W&&(this.levels=W.filter(function(H){return H!==L}))}},{key:"onManifestLoading",value:function(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}},{key:"onManifestLoaded",value:function(L,W){var H=W.contentSteering;if(H===null)return;this.pathwayId=H.pathwayId,this.uri=H.uri,this.started&&this.startLoad()}},{key:"onManifestParsed",value:function(L,W){this.audioTracks=W.audioTracks,this.subtitleTracks=W.subtitleTracks}},{key:"onError",value:function(L,W){var H=W.errorAction;if((H==null?void 0:H.action)===ra.SendAlternateToPenaltyBox&&H.flags===Lr.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(ft){Z-H[ft]>Au&&delete H[ft]});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,ze=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(w.LEVELS_UPDATED,{levels:W});var ot=this.hls.levels[Te];ze&&ot&&this.levels&&(ot.attrs["STABLE-VARIANT-ID"]!==ze.attrs["STABLE-VARIANT-ID"]&&ot.bitrate!==ze.bitrate&&this.log("Unstable Pathways change from bitrate ".concat(ze.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,ze=ve["BASE-ID"],ot=ve["URI-REPLACEMENT"];if(H.some(function(Zt){return Zt.pathwayId===Te}))return;var ft=W.getLevelsForPathway(ze).map(function(Zt){var Cr=E({},Zt);Cr.details=void 0,Cr.url=du(Zt.uri,Zt.attrs["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",ot);var Sr=new V(Zt.attrs);Sr["PATHWAY-ID"]=Te;var Wr=Sr.AUDIO&&"".concat(Sr.AUDIO,"_clone_").concat(Te),$r=Sr.SUBTITLES&&"".concat(Sr.SUBTITLES,"_clone_").concat(Te);Wr&&(Z[Sr.AUDIO]=Wr,Sr.AUDIO=Wr),$r&&(ne[Sr.SUBTITLES]=$r,Sr.SUBTITLES=$r),Cr.attrs=Sr;var On=new Lt(Cr);return un(On,"audio",Wr),un(On,"text",$r),On});H.push.apply(H,Object(y.a)(ft)),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},ze=H.steeringManifestLoadPolicy.default,ot=ze.errorRetry||ze.timeoutRetry||{},ft={loadPolicy:ze,timeout:ze.maxLoadTimeMs,maxRetry:ot.maxNumRetry||0,retryDelay:ot.retryDelayMs||0,maxRetryDelay:ot.maxRetryDelayMs||0},Zt={onSuccess:function(Sr,Wr,$r,On){W.log('Loaded steering manifest: "'.concat(ne,'"'));var Rn=Sr.data;if(Rn.VERSION!==1){W.log("Steering VERSION ".concat(Rn.VERSION," not supported!"));return}W.updated=performance.now(),W.timeToLoad=Rn.TTL;var Zn=Rn["RELOAD-URI"],wi=Rn["PATHWAY-CLONES"],ua=Rn["PATHWAY-PRIORITY"];if(Zn)try{W.uri=new self.URL(Zn,ne).href}catch(Vi){W.enabled=!1,W.log("Failed to parse Steering Manifest RELOAD-URI: ".concat(Zn));return}W.scheduleRefresh(W.uri||$r.url),wi&&W.clonePathways(wi),ua&&W.updatePathwayPriority(ua)},onError:function(Sr,Wr,$r,On){if(W.log("Error loading steering manifest: ".concat(Sr.code," ").concat(Sr.text," (").concat(Wr.url,")")),W.stopLoad(),Sr.code===410){W.enabled=!1,W.log("Steering manifest ".concat(Wr.url," no longer available"));return}var Rn=W.timeToLoad*1e3;if(Sr.code===429){var Zn=W.loader;if(typeof(Zn==null?void 0:Zn.getResponseHeader)=="function"){var wi=Zn.getResponseHeader("Retry-After");wi&&(Rn=parseFloat(wi)*1e3)}W.log("Steering manifest ".concat(Wr.url," rate limited"));return}W.scheduleRefresh(W.uri||Wr.url,Rn)},onTimeout:function(Sr,Wr,$r){W.log("Timeout loading steering manifest (".concat(Wr.url,")")),W.scheduleRefresh(W.uri||Wr.url)}};this.log("Requesting steering manifest: ".concat(ne)),this.loader.load(Te,ft,Zt)}},{key:"scheduleRefresh",value:function(L){var W=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.timeToLoad*1e3;self.clearTimeout(this.reloadTimer),this.reloadTimer=self.setTimeout(function(){W.loadSteeringManifest(L)},H)}}]),Ae}();function cu(Ae,ee,L,W){if(!Ae)return;Object.keys(ee).forEach(function(H){var Z=Ae.filter(function(ne){return ne.groupId===H}).map(function(ne){var ve=E({},ne);return ve.details=void 0,ve.attrs=new V(ve.attrs),ve.url=ve.attrs.URI=du(ne.url,ne.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",L),ve.groupId=ve.attrs["GROUP-ID"]=ee[H],ve.attrs["PATHWAY-ID"]=W,ve});Ae.push.apply(Ae,Object(y.a)(Z))})}function du(Ae,ee,L,W){var H=W.HOST,Z=W.PARAMS,ne=W[L],ve;ee&&(ve=ne==null?void 0:ne[ee],ve&&(Ae=ve));var Te=new self.URL(Ae);return H&&!ve&&(Te.host=H),Z&&Object.keys(Z).sort().forEach(function(ze){ze&&Te.searchParams.set(ze,Z[ze])}),Te.href}var Lu=/^age:\s*[\d.]+\s*$/im,zl=function(){function Ae(ee){Object(r.a)(this,Ae),this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=ee&&ee.xhrSetup||null,this.stats=new q,this.retryDelay=0}return Object(a.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 ze in Z)L.setRequestHeader(ze,Z[ze]);W.rangeEnd&&L.setRequestHeader("Range","bytes="+W.rangeStart+"-"+(W.rangeEnd-1)),L.onreadystatechange=this.readystatechange.bind(this),L.onprogress=this.loadprogress.bind(this),L.responseType=W.responseType,self.clearTimeout(this.requestTimeout),H.timeout=ve&&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 ze=Te?W.response:W.responseText,ot=W.responseType==="arraybuffer"?ze.byteLength:ze.length;if(H.loaded=H.total=ot,H.bwEstimate=H.total*8e3/(H.loading.end-H.loading.first),!this.callbacks)return;var ft=this.callbacks.onProgress;if(ft&&ft(H,L,ze,W),!this.callbacks)return;var Zt={url:W.responseURL,data:ze,code:ve};this.callbacks.onSuccess(Zt,H,L,W)}else{var Cr=ne.loadPolicy.errorRetry,Sr=H.retry;oa(Cr,Sr,!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=ki(L,H.retry),H.retry++,j.warn("".concat(status?"HTTP Status "+status:"Timeout"," while loading ").concat(W.url,", retrying ").concat(H.retry,"/").concat(L.maxNumRetry," in ").concat(this.retryDelay,"ms")),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}},{key:"loadprogress",value:function(L){var W=this.stats;W.loaded=L.loaded,L.lengthComputable&&(W.total=L.total)}},{key:"getCacheAge",value:function(){var L=null;if(this.loader&&Lu.test(this.loader.getAllResponseHeaders())){var W=this.loader.getResponseHeader("age");L=W?parseFloat(W):null}return L}},{key:"getResponseHeader",value:function(L){return this.loader&&new RegExp("^".concat(L,":\\s*[\\d.]+\\s*$"),"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(L):null}}]),Ae}();function ru(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(Ae){}return!1}var ou=/(\d+)-(\d+)\/(\d+)/,su=function(){function Ae(ee){Object(r.a)(this,Ae),this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=ee.fetchSetup||Zl,this.controller=new self.AbortController,this.stats=new q}return Object(a.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,ze=L.responseType==="arraybuffer",ot=ze?"byteLength":"length",ft=W.loadPolicy,Zt=ft.maxTimeToFirstByteMs,Cr=ft.maxLoadTimeMs;this.context=L,this.config=W,this.callbacks=H,this.request=this.fetchSetup(L,ve),self.clearTimeout(this.requestTimeout),W.timeout=Zt&&T(Zt)?Zt:Cr,this.requestTimeout=self.setTimeout(function(){Z.abortInternal(),H.onTimeout(ne,L,Z.response)},W.timeout),self.fetch(this.request).then(function(Sr){Z.response=Z.loader=Sr;var Wr=Math.max(self.performance.now(),ne.loading.start);if(self.clearTimeout(Z.requestTimeout),W.timeout=Cr,Z.requestTimeout=self.setTimeout(function(){Z.abortInternal(),H.onTimeout(ne,L,Z.response)},Cr-(Wr-ne.loading.start)),!Sr.ok){var $r=Sr.status,On=Sr.statusText;throw new yu(On||"fetch, bad network response",$r,Sr)}return ne.loading.first=Wr,ne.total=Ru(Sr.headers)||ne.total,Te&&T(W.highWaterMark)?Z.loadProgressively(Sr,ne,L,W.highWaterMark,Te):ze?Sr.arrayBuffer():L.responseType==="json"?Sr.json():Sr.text()}).then(function(Sr){var Wr=Z.response;self.clearTimeout(Z.requestTimeout),ne.loading.end=Math.max(self.performance.now(),ne.loading.first);var $r=Sr[ot];$r&&(ne.loaded=ne.total=$r);var On={url:Wr.url,data:Sr,code:Wr.status};Te&&!T(W.highWaterMark)&&Te(ne,L,Sr,Wr),H.onSuccess(On,ne,L,Wr)}).catch(function(Sr){if(self.clearTimeout(Z.requestTimeout),ne.aborted)return;var Wr=Sr&&Sr.code||0,$r=Sr?Sr.message:null;H.onError({code:Wr,text:$r},L,Sr?Sr.details:null,ne)})}},{key:"getCacheAge",value:function(){var L=null;if(this.response){var W=this.response.headers.get("age");L=W?parseFloat(W):null}return L}},{key:"getResponseHeader",value:function(L){return this.response?this.response.headers.get(L):null}},{key:"loadProgressively",value:function(L,W,H){var Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,ne=arguments.length>4?arguments[4]:void 0,ve=new Ut,Te=L.body.getReader(),ze=function ot(){return Te.read().then(function(ft){if(ft.done)return ve.dataLength&&ne(W,H,ve.flush(),L),Promise.resolve(new ArrayBuffer(0));var Zt=ft.value,Cr=Zt.length;return W.loaded+=Cr,Cr<Z||ve.dataLength?(ve.push(Zt),ve.dataLength>=Z&&ne(W,H,ve.flush(),L)):ne(W,H,Zt,L),ot()}).catch(function(){return Promise.reject()})};return ze()}}]),Ae}();function Jl(Ae,ee){var L={method:"GET",mode:"cors",credentials:"same-origin",signal:ee,headers:new self.Headers(E({},Ae.headers))};return Ae.rangeEnd&&L.headers.set("Range","bytes="+Ae.rangeStart+"-"+String(Ae.rangeEnd-1)),L}function Du(Ae){var ee=ou.exec(Ae);if(ee)return parseInt(ee[2])-parseInt(ee[1])+1}function Ru(Ae){var ee=Ae.get("Content-Range");if(ee){var L=Du(ee);if(T(L))return L}var W=Ae.get("Content-Length");if(W)return parseInt(W)}function Zl(Ae,ee){return new self.Request(Ae.url,ee)}var yu=function(Ae){Object(s.a)(L,Ae);var ee=Object(e.a)(L);function L(W,H,Z){var ne;return Object(r.a)(this,L),ne=ee.call(this,W),ne.code=void 0,ne.details=void 0,ne.code=H,ne.details=Z,ne}return Object(a.a)(L)}(i(Error)),xu=/\s/,bu={newCue:function(ee,L,W,H){for(var Z=[],ne,ve,Te,ze,ot,ft=self.VTTCue||self.TextTrackCue,Zt=0;Zt<H.rows.length;Zt++)if(ne=H.rows[Zt],Te=!0,ze=0,ot="",!ne.isEmpty()){for(var Cr,Sr=0;Sr<ne.chars.length;Sr++)xu.test(ne.chars[Sr].uchar)&&Te?ze++:(ot+=ne.chars[Sr].uchar,Te=!1);ne.cueStartTime=L,L===W&&(W+=1e-4),ze>=16?ze--:ze++;var Wr=jo(ot.trim()),$r=Ls(L,W,Wr);ee!=null&&(Cr=ee.cues)!=null&&Cr.getCueById($r)||(ve=new ft(L,W,Wr),ve.id=$r,ve.line=Zt+1,ve.align="left",ve.position=10+Math.min(80,Math.floor(ze*8/32)*10),Z.push(ve))}return ee&&Z.length&&(Z.sort(function(On,Rn){return On.line==="auto"||Rn.line==="auto"?0:On.line>8&&Rn.line>8?Rn.line-On.line:On.line-Rn.line}),Z.forEach(function(On){return vr(ee,On)})),Z}},hl={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Dl=b(b({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:zl,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:go,bufferController:Si,capLevelController:mu,errorController:xr,fpsController:gu,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Be,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,certLoadPolicy:{default:hl},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:Infinity,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},nu()),{},{subtitleStreamController:Qe,subtitleTrackController:lr,timelineController:$l,audioStreamController:hi,audioTrackController:Nt,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,ee){if((ee.liveSyncDurationCount||ee.liveMaxLatencyDurationCount)&&(ee.liveSyncDuration||ee.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(ee.liveMaxLatencyDurationCount!==void 0&&(ee.liveSyncDurationCount===void 0||ee.liveMaxLatencyDurationCount<=ee.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(ee.liveMaxLatencyDuration!==void 0&&(ee.liveSyncDuration===void 0||ee.liveMaxLatencyDuration<=ee.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var L=hu(Ae),W=["manifest","level","frag"],H=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return W.forEach(function(Z){var ne="".concat(Z==="level"?"playlist":Z,"LoadPolicy"),ve=ee[ne]===void 0,Te=[];H.forEach(function(ze){var ot="".concat(Z,"Loading").concat(ze),ft=ee[ot];if(ft!==void 0&&ve){Te.push(ot);var Zt=L[ne].default;ee[ne]={default:Zt};switch(ze){case"TimeOut":Zt.maxLoadTimeMs=ft,Zt.maxTimeToFirstByteMs=ft;break;case"MaxRetry":Zt.errorRetry.maxNumRetry=ft,Zt.timeoutRetry.maxNumRetry=ft;break;case"RetryDelay":Zt.errorRetry.retryDelayMs=ft,Zt.timeoutRetry.retryDelayMs=ft;break;case"MaxRetryTimeout":Zt.errorRetry.maxRetryDelayMs=ft,Zt.timeoutRetry.maxRetryDelayMs=ft;break}}}),Te.length&&j.warn('hls.js config: "'.concat(Te.join('", "'),'" setting(s) are deprecated, use "').concat(ne,'": ').concat(JSON.stringify(ee[ne])))}),b(b({},L),ee)}function hu(Ae){return Ae&&typeof Ae=="object"?Array.isArray(Ae)?Ae.map(hu):Object.keys(Ae).reduce(function(ee,L){return ee[L]=hu(Ae[L]),ee},{}):Ae}function fu(Ae){var ee=Ae.loader;if(ee!==su&&ee!==zl)j.log("[config]: Custom loader detected, cannot enable progressive streaming"),Ae.progressive=!1;else{var L=ru();L&&(Ae.loader=su,Ae.progressive=!0,Ae.enableSoftwareAES=!0,j.log("[config]: Progressive streaming enabled, using FetchLoader"))}}var iu=function(){function Ae(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object(r.a)(this,Ae),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new ds,this._autoLevelCapping=void 0,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,F(ee.debug||!1,"Hls instance");var L=this.config=Nu(Ae.DefaultConfig,ee);this.userConfig=ee,this._autoLevelCapping=-1,L.progressive&&fu(L);var W=L.abrController,H=L.bufferController,Z=L.capLevelController,ne=L.errorController,ve=L.fpsController,Te=new ne(this),ze=this.abrController=new W(this),ot=this.bufferController=new H(this),ft=this.capLevelController=new Z(this),Zt=new ve(this),Cr=new Qr(this),Sr=new Yn(this),Wr=L.contentSteeringController,$r=Wr?new Wr(this):null,On=this.levelController=new Xr(this,$r),Rn=new Or(this),Zn=new pi(this.config),wi=this.streamController=new No(this,Rn,Zn);ft.setStreamController(wi),Zt.setStreamController(wi);var ua=[Cr,On,wi];$r&&ua.splice(1,0,$r),this.networkControllers=ua;var Vi=[ze,ot,ft,Zt,Sr,Rn];this.audioTrackController=this.createController(L.audioTrackController,ua);var Zi=L.audioStreamController;Zi&&ua.push(new Zi(this,Rn,Zn)),this.subtitleTrackController=this.createController(L.subtitleTrackController,ua);var ka=L.subtitleStreamController;ka&&ua.push(new ka(this,Rn,Zn)),this.createController(L.timelineController,Vi),Zn.emeController=this.emeController=this.createController(L.emeController,Vi),this.cmcdController=this.createController(L.cmcdController,Vi),this.latencyController=this.createController(Gt,Vi),this.coreComponents=Vi,ua.push(Te);var Ga=Te.onErrorOut;typeof Ga=="function"&&this.on(w.ERROR,Ga,Te)}return Object(a.a)(Ae,[{key:"createController",value:function(L,W){if(L){var H=new L(this);return W&&W.push(H),H}return null}},{key:"on",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.on(L,W,H)}},{key:"once",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.once(L,W,H)}},{key:"removeAllListeners",value:function(L){this._emitter.removeAllListeners(L)}},{key:"off",value:function(L,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this,Z=arguments.length>3?arguments[3]:void 0;this._emitter.off(L,W,H,Z)}},{key:"listeners",value:function(L){return this._emitter.listeners(L)}},{key:"emit",value:function(L,W,H){return this._emitter.emit(L,W,H)}},{key:"trigger",value:function(L,W){if(this.config.debug)return this.emit(L,L,W);try{return this.emit(L,L,W)}catch(H){j.error("An internal error happened while handling event "+L+'. Error message: "'+H.message+'". Here is a stacktrace:',H),this.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,fatal:!1,event:L,error:H})}return!1}},{key:"listenerCount",value:function(L){return this._emitter.listenerCount(L)}},{key:"destroy",value:function(){j.log("destroy"),this.trigger(w.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(W){return W.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(W){return W.destroy()}),this.coreComponents.length=0;var L=this.config;L.xhrSetup=L.fetchSetup=void 0,this.userConfig=null}},{key:"attachMedia",value:function(L){j.log("attachMedia"),this._media=L,this.trigger(w.MEDIA_ATTACHING,{media:L})}},{key:"detachMedia",value:function(){j.log("detachMedia"),this.trigger(w.MEDIA_DETACHING,void 0),this._media=null}},{key:"loadSource",value:function(L){this.stopLoad();var W=this.media,H=this.url,Z=this.url=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(w.MANIFEST_LOADING,{url:L})}},{key:"startLoad",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;j.log("startLoad(".concat(L,")")),this.networkControllers.forEach(function(W){W.startLoad(L)})}},{key:"stopLoad",value:function(){j.log("stopLoad"),this.networkControllers.forEach(function(L){L.stopLoad()})}},{key:"swapAudioCodec",value:function(){j.log("swapAudioCodec"),this.streamController.swapAudioCodec()}},{key:"recoverMediaError",value:function(){j.log("recoverMediaError");var L=this._media;this.detachMedia(),L&&this.attachMedia(L)}},{key:"removeLevel",value:function(L){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.levelController.removeLevel(L,W)}},{key:"levels",get:function(){var L=this.levelController.levels;return L||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(L){j.log("set currentLevel:".concat(L)),this.loadLevel=L,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(L){j.log("set nextLevel:".concat(L)),this.levelController.manualLevel=L,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(L){j.log("set loadLevel:".concat(L)),this.levelController.manualLevel=L}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(L){this.levelController.nextLoadLevel=L}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(L){j.log("set firstLevel:".concat(L)),this.levelController.firstLevel=L}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(L){j.log("set startLevel:".concat(L)),L!==-1&&(L=Math.max(L,this.minAutoLevel)),this.levelController.startLevel=L}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(L){var W=!!L;W!==this.config.capLevelToPlayerSize&&(W?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=W)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(L){this._autoLevelCapping!==L&&(j.log("set autoLevelCapping:".concat(L)),this._autoLevelCapping=L)}},{key:"bandwidthEstimate",get:function(){var L=this.abrController.bwEstimator;return L?L.getEstimate():NaN}},{key:"ttfbEstimate",get:function(){var L=this.abrController.bwEstimator;return L?L.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(L){Ot.indexOf(L)>-1&&(this._maxHdcpLevel=L)}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var L=this.levels,W=this.config.minAutoBitrate;if(!L)return 0;for(var H=L.length,Z=0;Z<H;Z++)if(L[Z].maxBitrate>=W)return Z;return 0}},{key:"maxAutoLevel",get:function(){var L=this.levels,W=this.autoLevelCapping,H=this.maxHdcpLevel,Z;if(W===-1&&L&&L.length?Z=L.length-1:Z=W,H)for(var ne=Z;ne--;){var ve=L[ne].attrs["HDCP-LEVEL"];if(ve&&ve<=H)return ne}return Z}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(L){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,L)}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"audioTracks",get:function(){var L=this.audioTrackController;return L?L.audioTracks:[]}},{key:"audioTrack",get:function(){var L=this.audioTrackController;return L?L.audioTrack:-1},set:function(L){var W=this.audioTrackController;W&&(W.audioTrack=L)}},{key:"subtitleTracks",get:function(){var L=this.subtitleTrackController;return L?L.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var L=this.subtitleTrackController;return L?L.subtitleTrack:-1},set:function(L){var W=this.subtitleTrackController;W&&(W.subtitleTrack=L)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var L=this.subtitleTrackController;return L?L.subtitleDisplay:!1},set:function(L){var W=this.subtitleTrackController;W&&(W.subtitleDisplay=L)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(L){this.config.lowLatencyMode=L}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.4.12"}},{key:"isSupported",value:function(){return Qo()}},{key:"Events",get:function(){return w}},{key:"ErrorTypes",get:function(){return O}},{key:"ErrorDetails",get:function(){return I}},{key:"DefaultConfig",get:function(){return Ae.defaultConfig?Ae.defaultConfig:Dl},set:function(L){Ae.defaultConfig=L}}]),Ae}();iu.defaultConfig=void 0},pmaE:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS"),v=n("DEFe"),m="__seriesMapHighDown",f="__seriesMapCallKey",d=y.extendChartView({type:"map",render:function(i,t,s,e){if(e&&e.type==="mapToggleSelect"&&e.from===this.uid)return;var l=this.group;if(l.removeAll(),i.getHostGeoModel())return;if(e&&e.type==="geoRoam"&&e.componentType==="series"&&e.seriesId===i.id){var r=this._mapDraw;r&&l.add(r.group)}else if(i.needsDrawMap){var r=this._mapDraw||new v(s,!0);l.add(r.group),r.draw(i,t,s,this,e),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;i.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(i,t,s)},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(i,t,s){var e=i.originalData,l=this.group;e.each(e.mapDimension("value"),function(r,a){if(isNaN(r))return;var c=e.getItemLayout(a);if(!c||!c.point)return;var h=c.point,g=c.offset,A=new x.Circle({style:{fill:i.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=i.mainSeries.getData(),S=e.getName(a),E=b.indexOfName(S),C=e.getItemModel(a),_=C.getModel("label"),T=C.getModel("emphasis.label"),w=b.getItemGraphicEl(E),O=p.retrieve2(i.getFormattedLabel(E,"normal"),S),I=p.retrieve2(i.getFormattedLabel(E,"emphasis"),O),R=w[m],M=Math.random();if(!R){R=w[m]={};var B=p.curry(u,!0),P=p.curry(u,!1);w.on("mouseover",B).on("mouseout",P).on("emphasis",B).on("normal",P)}w[f]=M,p.extend(R,{recordVersion:M,circle:A,labelModel:_,hoverLabelModel:T,emphasisText:I,normalText:O}),o(R,!1)}l.add(A)})}});function u(i){var t=this[m];t&&t.recordVersion===this[f]&&o(t,i)}function o(i,t){var s=i.circle,e=i.labelModel,l=i.hoverLabelModel,r=i.emphasisText,a=i.normalText;t?(s.style.extendFrom(x.setTextStyle({},l,{text:l.get("show")?r:null},{isRectText:!0,useInsideStyle:!1},!0)),s.__mapOriginalZ2=s.z2,s.z2+=x.Z2_EMPHASIS_LIFT):(x.setTextStyle(s.style,e,{text:e.get("show")?a:null,textPosition:e.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),s.dirty(!1),s.__mapOriginalZ2!=null&&(s.z2=s.__mapOriginalZ2,s.__mapOriginalZ2=null))}k.exports=d},pwpV:function(k,D,n){},pzxd:function(k,D,n){var y=n("bYtY"),p=y.retrieve2,x=y.retrieve3,v=y.each,m=y.normalizeCssArray,f=y.isString,d=y.isObject,u=n("6GrX"),o=n("VpOo"),i=n("Xnb7"),t=n("fW2E"),s=n("gut8"),e=s.ContextCachedBy,l=s.WILL_BE_RESTORED,r=u.DEFAULT_FONT,a={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 S(V),v(V.rich,S),V}function S(V){if(V){V.font=u.makeFont(V);var Q=V.textAlign;Q==="middle"&&(Q="center"),V.textAlign=Q==null||a[Q]?Q:"left";var G=V.textVerticalAlign||V.textBaseline;G==="center"&&(G="middle"),V.textVerticalAlign=G==null||c[G]?G:"top";var te=V.textPadding;te&&(V.textPadding=m(V.textPadding))}}function E(V,Q,G,te,q,le){te.rich?_(V,Q,G,te,q,le):C(V,Q,G,te,q,le)}function C(V,Q,G,te,q,le){"use strict";var re=I(te),we,Ie=!1,Me=Q.__attrCachedBy===e.PLAIN_TEXT;le!==l?(le&&(we=le.style,Ie=!re&&Me&&we),Q.__attrCachedBy=re?e.NONE:e.PLAIN_TEXT):Me&&(Q.__attrCachedBy=e.NONE);var Je=te.font||r;(!Ie||Je!==(we.font||r))&&(Q.font=Je);var Ve=V.__computedFont;V.__styleFont!==Je&&(V.__styleFont=Je,Ve=V.__computedFont=Q.font);var ut=te.textPadding,Fe=te.textLineHeight,ae=V.__textCotentBlock;(!ae||V.__dirtyText)&&(ae=V.__textCotentBlock=u.parsePlainText(G,Ve,ut,Fe,te.truncate));var at=ae.outerHeight,he=ae.lines,J=ae.lineHeight,Y=B(A,V,te,q),$=Y.baseX,de=Y.baseY,be=Y.textAlign||"left",Ce=Y.textVerticalAlign;w(Q,te,q,$,de);var Be=u.adjustTextY(de,at,Ce),fe=$,Se=Be;if(re||ut){var ke=u.getWidth(G,Ve),rt=ke;ut&&(rt+=ut[1]+ut[3]);var xt=u.adjustTextX($,rt,be);re&&R(V,Q,te,xt,Be,rt,at),ut&&(fe=K($,be,ut),Se+=ut[0])}Q.textAlign=be,Q.textBaseline="middle",Q.globalAlpha=te.opacity||1;for(var ht=0;ht<h.length;ht++){var He=h[ht],ir=He[0],ct=He[1],Xt=te[ir];(!Ie||Xt!==we[ir])&&(Q[ct]=t(Q,ct,Xt||He[2]))}Se+=J/2;var hr=te.textStrokeWidth,Jt=Ie?we.textStrokeWidth:null,Pt=!Ie||hr!==Jt,Wt=!Ie||Pt||te.textStroke!==we.textStroke,Ge=X(te.textStroke,hr),pe=F(te.textFill);if(Ge&&(Pt&&(Q.lineWidth=hr),Wt&&(Q.strokeStyle=Ge)),pe&&((!Ie||te.textFill!==we.textFill)&&(Q.fillStyle=pe)),he.length===1)Ge&&Q.strokeText(he[0],fe,Se),pe&&Q.fillText(he[0],fe,Se);else for(var ht=0;ht<he.length;ht++)Ge&&Q.strokeText(he[ht],fe,Se),pe&&Q.fillText(he[ht],fe,Se),Se+=J}function _(V,Q,G,te,q,le){le!==l&&(Q.__attrCachedBy=e.NONE);var re=V.__textCotentBlock;(!re||V.__dirtyText)&&(re=V.__textCotentBlock=u.parseRichText(G,te)),T(V,Q,re,te,q)}function T(V,Q,G,te,q){var le=G.width,re=G.outerWidth,we=G.outerHeight,Ie=te.textPadding,Me=B(A,V,te,q),Je=Me.baseX,Ve=Me.baseY,ut=Me.textAlign,Fe=Me.textVerticalAlign;w(Q,te,q,Je,Ve);var ae=u.adjustTextX(Je,re,ut),at=u.adjustTextY(Ve,we,Fe),he=ae,J=at;Ie&&(he+=Ie[3],J+=Ie[0]);var Y=he+le;I(te)&&R(V,Q,te,ae,at,re,we);for(var $=0;$<G.lines.length;$++){for(var de=G.lines[$],be=de.tokens,Ce=be.length,Be=de.lineHeight,fe=de.width,Se=0,ke=he,rt=Y,xt=Ce-1,ht;Se<Ce&&(ht=be[Se],!ht.textAlign||ht.textAlign==="left");)O(V,Q,ht,te,Be,J,ke,"left"),fe-=ht.width,ke+=ht.width,Se++;for(;xt>=0&&(ht=be[xt],ht.textAlign==="right");)O(V,Q,ht,te,Be,J,rt,"right"),fe-=ht.width,rt-=ht.width,xt--;for(ke+=(le-(ke-he)-(Y-rt)-fe)/2;Se<=xt;)ht=be[Se],O(V,Q,ht,te,Be,J,ke+ht.width/2,"center"),ke+=ht.width,Se++;J+=Be}}function w(V,Q,G,te,q){if(G&&Q.textRotation){var le=Q.textOrigin;le==="center"?(te=G.width/2+G.x,q=G.height/2+G.y):le&&(te=le[0]+G.x,q=le[1]+G.y),V.translate(te,q),V.rotate(-Q.textRotation),V.translate(-te,-q)}}function O(V,Q,G,te,q,le,re,we){var Ie=te.rich[G.styleName]||{};Ie.text=G.text;var Me=G.textVerticalAlign,Je=le+q/2;Me==="top"?Je=le+G.height/2:Me==="bottom"&&(Je=le+q-G.height/2),!G.isLineHolder&&I(Ie)&&R(V,Q,Ie,we==="right"?re-G.width:we==="center"?re-G.width/2:re,Je-G.height/2,G.width,G.height);var Ve=G.textPadding;Ve&&(re=K(re,we,Ve),Je-=G.height/2-Ve[2]-G.textHeight/2),P(Q,"shadowBlur",x(Ie.textShadowBlur,te.textShadowBlur,0)),P(Q,"shadowColor",Ie.textShadowColor||te.textShadowColor||"transparent"),P(Q,"shadowOffsetX",x(Ie.textShadowOffsetX,te.textShadowOffsetX,0)),P(Q,"shadowOffsetY",x(Ie.textShadowOffsetY,te.textShadowOffsetY,0)),P(Q,"textAlign",we),P(Q,"textBaseline","middle"),P(Q,"font",G.font||r);var ut=X(Ie.textStroke||te.textStroke,ae),Fe=F(Ie.textFill||te.textFill),ae=p(Ie.textStrokeWidth,te.textStrokeWidth);ut&&(P(Q,"lineWidth",ae),P(Q,"strokeStyle",ut),Q.strokeText(G.text,re,Je)),Fe&&(P(Q,"fillStyle",Fe),Q.fillText(G.text,re,Je))}function I(V){return!!(V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor)}function R(V,Q,G,te,q,le,re){var we=G.textBackgroundColor,Ie=G.textBorderWidth,Me=G.textBorderColor,Je=f(we);if(P(Q,"shadowBlur",G.textBoxShadowBlur||0),P(Q,"shadowColor",G.textBoxShadowColor||"transparent"),P(Q,"shadowOffsetX",G.textBoxShadowOffsetX||0),P(Q,"shadowOffsetY",G.textBoxShadowOffsetY||0),Je||Ie&&Me){Q.beginPath();var Ve=G.textBorderRadius;Ve?o.buildPath(Q,{x:te,y:q,width:le,height:re,r:Ve}):Q.rect(te,q,le,re),Q.closePath()}if(Je)if(P(Q,"fillStyle",we),G.fillOpacity!=null){var ut=Q.globalAlpha;Q.globalAlpha=G.fillOpacity*G.opacity,Q.fill(),Q.globalAlpha=ut}else Q.fill();else if(d(we)){var Fe=we.image;Fe=i.createOrUpdateImage(Fe,null,V,M,we),Fe&&i.isImageReady(Fe)&&Q.drawImage(Fe,te,q,le,re)}if(Ie&&Me)if(P(Q,"lineWidth",Ie),P(Q,"strokeStyle",Me),G.strokeOpacity!=null){var ut=Q.globalAlpha;Q.globalAlpha=G.strokeOpacity*G.opacity,Q.stroke(),Q.globalAlpha=ut}else Q.stroke()}function M(V,Q){Q.image=V}function B(V,Q,G,te){var q=G.x||0,le=G.y||0,re=G.textAlign,we=G.textVerticalAlign;if(te){var Ie=G.textPosition;if(Ie instanceof Array)q=te.x+j(Ie[0],te.width),le=te.y+j(Ie[1],te.height);else{var Me=Q&&Q.calculateTextPosition?Q.calculateTextPosition(g,G,te):u.calculateTextPosition(g,G,te);q=Me.x,le=Me.y,re=re||Me.textAlign,we=we||Me.textVerticalAlign}var Je=G.textOffset;Je&&(q+=Je[0],le+=Je[1])}return V=V||{},V.baseX=q,V.baseY=le,V.textAlign=re,V.textVerticalAlign=we,V}function P(V,Q,G){return V[Q]=t(V,Q,G),V[Q]}function X(V,Q){return V==null||Q<=0||V==="transparent"||V==="none"?null:V.image||V.colorStops?"#000":V}function F(V){return V==null||V==="none"?null:V.image||V.colorStops?"#000":V}function j(V,Q){return typeof V=="string"?V.lastIndexOf("%")>=0?parseFloat(V)/100*Q:parseFloat(V):V}function K(V,Q,G){return Q==="right"?V-G[1]:Q==="center"?V+G[3]/2-G[1]/2:V+G[3]}function z(V,Q){return V!=null&&(V||Q.textBackgroundColor||Q.textBorderWidth&&Q.textBorderColor||Q.textPadding)}D.normalizeTextStyle=b,D.renderText=E,D.getBoxPosition=B,D.getStroke=X,D.getFill=F,D.parsePercent=j,D.needDrawText=z},"q/+u":function(k,D,n){var y=n("ProS"),p=n("9wZj"),x=n("yWXo"),v=n("h8O9");y.extendChartView({type:"scatter",render:function(m,f,d){var u=m.getData(),o=this._updateSymbolDraw(u,m);o.updateData(u,{clipShape:this._getClipShape(m)}),this._finished=!0},incrementalPrepareRender:function(m,f,d){var u=m.getData(),o=this._updateSymbolDraw(u,m);o.incrementalPrepareUpdate(u),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 u=m.getData();if(this.group.dirty(),!this._finished||u.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=v().reset(m);o.progress&&o.progress({start:0,end:u.count()},u),this._symbolDraw.updateLayout(u)},_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,u=f.pipelineContext,o=u.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(k,D){var n=["lineStyle","normal","opacity"],y={seriesType:"parallel",reset:function(p,x,v){var m=p.getModel("itemStyle"),f=p.getModel("lineStyle"),d=x.get("color"),u=f.get("color")||m.get("color")||d[p.seriesIndex%d.length],o=p.get("inactiveOpacity"),i=p.get("activeOpacity"),t=p.getModel("lineStyle").getLineStyle(),s=p.coordinateSystem,e=p.getData(),l={normal:t.opacity,active:i,inactive:o};e.setVisual("color",u);function r(a,c){s.eachActiveState(c,function(h,g){var A=l[h];if(h==="normal"&&c.hasItemOption){var b=c.getItemModel(g).get(n,!0);b!=null&&(A=b)}c.setItemVisual(g,"opacity",A)},a.start,a.end)}return{progress:r}}};k.exports=y},q4HE:function(k,D){var n="\\ud800-\\udfff",y="\\u0300-\\u036f",p="\\ufe20-\\ufe2f",x="\\u20d0-\\u20ff",v=y+p+x,m="\\ufe0e\\ufe0f",f="["+n+"]",d="["+v+"]",u="\\ud83c[\\udffb-\\udfff]",o="(?:"+d+"|"+u+")",i="[^"+n+"]",t="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",l=o+"?",r="["+m+"]?",a="(?:"+e+"(?:"+[i,t,s].join("|")+")"+r+l+")*",c=r+l+a,h="(?:"+[i+d+"?",d,t,s,f].join("|")+")",g=RegExp(u+"(?="+u+")|"+h+c,"g");function A(b){for(var S=g.lastIndex=0;g.test(b);)++S;return S}k.exports=A},q7KB:function(k,D,n){},qBft:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.AnsiX923={pad:function(x,v){var m=x.sigBytes,f=v*4,d=f-m%f,u=m+d-1;x.clamp(),x.words[u>>>2]|=d<<24-u%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(k,D,n){var y=n("ItGF"),p=n("QBsz"),x=p.applyTransform,v=n("mFDi"),m=n("Qe9p"),f=n("6GrX"),d=n("pzxd"),u=n("ni6a"),o=n("Gev7"),i=n("Dagg"),t=n("dqUG"),s=n("y+Vt"),e=n("IMiH"),l=n("QuXc"),r=n("06Qe"),a=e.CMD,c=Math.round,h=Math.sqrt,g=Math.abs,A=Math.cos,b=Math.sin,S=Math.max;if(!y.canvasSupported){var E=",",C="progid:DXImageTransform.Microsoft",_=21600,T=_/2,w=1e5,O=1e3,I=function(de){de.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",de.coordsize=_+","+_,de.coordorigin="0,0"},R=function(de){return String(de).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},M=function(de,be,Ce){return"rgb("+[de,be,Ce].join(",")+")"},B=function(de,be){be&&de&&be.parentNode!==de&&de.appendChild(be)},P=function(de,be){be&&de&&be.parentNode===de&&de.removeChild(be)},X=function(de,be,Ce){return(parseFloat(de)||0)*w+(parseFloat(be)||0)*O+Ce},F=d.parsePercent,j=function(de,be,Ce){var Be=m.parse(be);Ce=+Ce,isNaN(Ce)&&(Ce=1),Be&&(de.color=M(Be[0],Be[1],Be[2]),de.opacity=Ce*Be[3])},K=function(de){var be=m.parse(de);return[M(be[0],be[1],be[2]),be[3]]},z=function(de,be,Ce){var Be=be.fill;if(Be!=null)if(Be instanceof l){var fe,Se=0,ke=[0,0],rt=0,xt=1,ht=Ce.getBoundingRect(),He=ht.width,ir=ht.height;if(Be.type==="linear"){fe="gradient";var ct=Ce.transform,Xt=[Be.x*He,Be.y*ir],hr=[Be.x2*He,Be.y2*ir];ct&&(x(Xt,Xt,ct),x(hr,hr,ct));var Jt=hr[0]-Xt[0],Pt=hr[1]-Xt[1];Se=Math.atan2(Jt,Pt)*180/Math.PI,Se<0&&(Se+=360),Se<1e-6&&(Se=0)}else{fe="gradientradial";var Xt=[Be.x*He,Be.y*ir],ct=Ce.transform,Wt=Ce.scale,Ge=He,pe=ir;ke=[(Xt[0]-ht.x)/Ge,(Xt[1]-ht.y)/pe],ct&&x(Xt,Xt,ct),Ge/=Wt[0]*_,pe/=Wt[1]*_;var se=S(Ge,pe);rt=2*0/se,xt=2*Be.r/se-rt}var lt=Be.colorStops.slice();lt.sort(function(Yt,pt){return Yt.offset-pt.offset});for(var qe=lt.length,me=[],Ht=[],yr=0;yr<qe;yr++){var At=lt[yr],rr=K(At.color);Ht.push(At.offset*xt+rt+" "+rr[0]),(yr===0||yr===qe-1)&&me.push(rr)}if(qe>=2){var ur=me[0][0],vn=me[1][0],Bt=me[0][1]*be.opacity,sr=me[1][1]*be.opacity;de.type=fe,de.method="none",de.focus="100%",de.angle=Se,de.color=ur,de.color2=vn,de.colors=Ht.join(","),de.opacity=sr,de.opacity2=Bt}fe==="radial"&&(de.focusposition=ke.join(","))}else j(de,Be,be.opacity)},V=function(de,be){be.lineDash&&(de.dashstyle=be.lineDash.join(" ")),be.stroke!=null&&!(be.stroke instanceof l)&&j(de,be.stroke,be.opacity)},Q=function(de,be,Ce,Be){var fe=be==="fill",Se=de.getElementsByTagName(be)[0];Ce[be]!=null&&Ce[be]!=="none"&&(fe||!fe&&Ce.lineWidth)?(de[fe?"filled":"stroked"]="true",Ce[be]instanceof l&&P(de,Se),Se||(Se=r.createNode(be)),fe?z(Se,Ce,Be):V(Se,Ce),B(de,Se)):(de[fe?"filled":"stroked"]="false",P(de,Se))},G=[[],[],[]],te=function(de,be){var Ce=a.M,Be=a.C,fe=a.L,Se=a.A,ke=a.Q,rt=[],xt,ht,He,ir,ct,Xt,hr=de.data,Jt=de.len();for(ir=0;ir<Jt;){He=hr[ir++],ht="",xt=0;switch(He){case Ce:ht=" m ",xt=1,ct=hr[ir++],Xt=hr[ir++],G[0][0]=ct,G[0][1]=Xt;break;case fe:ht=" l ",xt=1,ct=hr[ir++],Xt=hr[ir++],G[0][0]=ct,G[0][1]=Xt;break;case ke:case Be:ht=" c ",xt=3;var Pt=hr[ir++],Wt=hr[ir++],Ge=hr[ir++],pe=hr[ir++],se,lt;He===ke?(se=Ge,lt=pe,Ge=(Ge+2*Pt)/3,pe=(pe+2*Wt)/3,Pt=(ct+2*Pt)/3,Wt=(Xt+2*Wt)/3):(se=hr[ir++],lt=hr[ir++]),G[0][0]=Pt,G[0][1]=Wt,G[1][0]=Ge,G[1][1]=pe,G[2][0]=se,G[2][1]=lt,ct=se,Xt=lt;break;case Se:var qe=0,me=0,Ht=1,yr=1,At=0;be&&(qe=be[4],me=be[5],Ht=h(be[0]*be[0]+be[1]*be[1]),yr=h(be[2]*be[2]+be[3]*be[3]),At=Math.atan2(-be[1]/yr,be[0]/Ht));var rr=hr[ir++],ur=hr[ir++],vn=hr[ir++],Bt=hr[ir++],sr=hr[ir++]+At,Yt=hr[ir++]+sr+At;ir++;var pt=hr[ir++],it=rr+A(sr)*vn,Fr=ur+b(sr)*Bt,Pt=rr+A(Yt)*vn,Wt=ur+b(Yt)*Bt,cn=pt?" wa ":" at ";Math.abs(it-Pt)<1e-4&&(Math.abs(Yt-sr)>.01?pt&&(it+=270/_):Math.abs(Fr-ur)<1e-4?pt&&it<rr||!pt&&it>rr?Wt-=270/_:Wt+=270/_:pt&&Fr<ur||!pt&&Fr>ur?Pt+=270/_:Pt-=270/_),rt.push(cn,c(((rr-vn)*Ht+qe)*_-T),E,c(((ur-Bt)*yr+me)*_-T),E,c(((rr+vn)*Ht+qe)*_-T),E,c(((ur+Bt)*yr+me)*_-T),E,c((it*Ht+qe)*_-T),E,c((Fr*yr+me)*_-T),E,c((Pt*Ht+qe)*_-T),E,c((Wt*yr+me)*_-T)),ct=Pt,Xt=Wt;break;case a.R:var _n=G[0],Kn=G[1];_n[0]=hr[ir++],_n[1]=hr[ir++],Kn[0]=_n[0]+hr[ir++],Kn[1]=_n[1]+hr[ir++],be&&(x(_n,_n,be),x(Kn,Kn,be)),_n[0]=c(_n[0]*_-T),Kn[0]=c(Kn[0]*_-T),_n[1]=c(_n[1]*_-T),Kn[1]=c(Kn[1]*_-T),rt.push(" m ",_n[0],E,_n[1]," l ",Kn[0],E,_n[1]," l ",Kn[0],E,Kn[1]," l ",_n[0],E,Kn[1]);break;case a.Z:rt.push(" x ")}if(xt>0){rt.push(ht);for(var gi=0;gi<xt;gi++){var Mn=G[gi];be&&x(Mn,Mn,be),rt.push(c(Mn[0]*_-T),E,c(Mn[1]*_-T),gi<xt-1?E:"")}}}return rt.join("")};s.prototype.brushVML=function($){var de=this.style,be=this._vmlEl;be||(be=r.createNode("shape"),I(be),this._vmlEl=be),Q(be,"fill",de,this),Q(be,"stroke",de,this);var Ce=this.transform,Be=Ce!=null,fe=be.getElementsByTagName("stroke")[0];if(fe){var Se=de.lineWidth;if(Be&&!de.strokeNoScale){var ke=Ce[0]*Ce[3]-Ce[1]*Ce[2];Se*=h(g(ke))}fe.weight=Se+"px"}var rt=this.path||(this.path=new e);this.__dirtyPath&&(rt.beginPath(),rt.subPixelOptimize=!1,this.buildPath(rt,this.shape),rt.toStatic(),this.__dirtyPath=!1),be.path=te(rt,this.transform),be.style.zIndex=X(this.zlevel,this.z,this.z2),B($,be),de.text!=null?this.drawRectText($,this.getBoundingRect()):this.removeRectText($)},s.prototype.onRemove=function($){P($,this._vmlEl),this.removeRectText($)},s.prototype.onAdd=function($){B($,this._vmlEl),this.appendRectText($)};var q=function(de){return typeof de=="object"&&de.tagName&&de.tagName.toUpperCase()==="IMG"};i.prototype.brushVML=function($){var de=this.style,be=de.image,Ce,Be;if(q(be)){var fe=be.src;if(fe===this._imageSrc)Ce=this._imageWidth,Be=this._imageHeight;else{var Se=be.runtimeStyle,ke=Se.width,rt=Se.height;Se.width="auto",Se.height="auto",Ce=be.width,Be=be.height,Se.width=ke,Se.height=rt,this._imageSrc=fe,this._imageWidth=Ce,this._imageHeight=Be}be=fe}else be===this._imageSrc&&(Ce=this._imageWidth,Be=this._imageHeight);if(!be)return;var xt=de.x||0,ht=de.y||0,He=de.width,ir=de.height,ct=de.sWidth,Xt=de.sHeight,hr=de.sx||0,Jt=de.sy||0,Pt=ct&&Xt,Wt=this._vmlEl;Wt||(Wt=r.doc.createElement("div"),I(Wt),this._vmlEl=Wt);var Ge=Wt.style,pe=!1,se,lt=1,qe=1;if(this.transform&&(se=this.transform,lt=h(se[0]*se[0]+se[1]*se[1]),qe=h(se[2]*se[2]+se[3]*se[3]),pe=se[1]||se[2]),pe){var me=[xt,ht],Ht=[xt+He,ht],yr=[xt,ht+ir],At=[xt+He,ht+ir];x(me,me,se),x(Ht,Ht,se),x(yr,yr,se),x(At,At,se);var rr=S(me[0],Ht[0],yr[0],At[0]),ur=S(me[1],Ht[1],yr[1],At[1]),vn=[];vn.push("M11=",se[0]/lt,E,"M12=",se[2]/qe,E,"M21=",se[1]/lt,E,"M22=",se[3]/qe,E,"Dx=",c(xt*lt+se[4]),E,"Dy=",c(ht*qe+se[5])),Ge.padding="0 "+c(rr)+"px "+c(ur)+"px 0",Ge.filter=C+".Matrix("+vn.join("")+", SizingMethod=clip)"}else se&&(xt=xt*lt+se[4],ht=ht*qe+se[5]),Ge.filter="",Ge.left=c(xt)+"px",Ge.top=c(ht)+"px";var Bt=this._imageEl,sr=this._cropEl;Bt||(Bt=r.doc.createElement("div"),this._imageEl=Bt);var Yt=Bt.style;if(Pt){if(Ce&&Be)Yt.width=c(lt*Ce*He/ct)+"px",Yt.height=c(qe*Be*ir/Xt)+"px";else{var pt=new Image,it=this;pt.onload=function(){pt.onload=null,Ce=pt.width,Be=pt.height,Yt.width=c(lt*Ce*He/ct)+"px",Yt.height=c(qe*Be*ir/Xt)+"px",it._imageWidth=Ce,it._imageHeight=Be,it._imageSrc=be},pt.src=be}sr||(sr=r.doc.createElement("div"),sr.style.overflow="hidden",this._cropEl=sr);var Fr=sr.style;Fr.width=c((He+hr*He/ct)*lt),Fr.height=c((ir+Jt*ir/Xt)*qe),Fr.filter=C+".Matrix(Dx="+-hr*He/ct*lt+",Dy="+-Jt*ir/Xt*qe+")",sr.parentNode||Wt.appendChild(sr),Bt.parentNode!==sr&&sr.appendChild(Bt)}else Yt.width=c(lt*He)+"px",Yt.height=c(qe*ir)+"px",Wt.appendChild(Bt),sr&&sr.parentNode&&(Wt.removeChild(sr),this._cropEl=null);var cn="",_n=de.opacity;_n<1&&(cn+=".Alpha(opacity="+c(_n*100)+") "),cn+=C+".AlphaImageLoader(src="+be+", SizingMethod=scale)",Yt.filter=cn,Wt.style.zIndex=X(this.zlevel,this.z,this.z2),B($,Wt),de.text!=null&&this.drawRectText($,this.getBoundingRect())},i.prototype.onRemove=function($){P($,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText($)},i.prototype.onAdd=function($){B($,this._vmlEl),this.appendRectText($)};var le="normal",re={},we=0,Ie=100,Me=document.createElement("div"),Je=function(de){var be=re[de];if(!be){we>Ie&&(we=0,re={});var Ce=Me.style,Be;try{Ce.font=de,Be=Ce.fontFamily.split(",")[0]}catch(fe){}be={style:Ce.fontStyle||le,variant:Ce.fontVariant||le,weight:Ce.fontWeight||le,size:parseFloat(Ce.fontSize||12)|0,family:Be||"Microsoft YaHei"},re[de]=be,we++}return be},Ve;f.$override("measureText",function($,de){var be=r.doc;Ve||(Ve=be.createElement("div"),Ve.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",r.doc.body.appendChild(Ve));try{Ve.style.font=de}catch(Ce){}return Ve.innerHTML="",Ve.appendChild(be.createTextNode($)),{width:Ve.offsetWidth}});for(var ut=new v,Fe=function(de,be,Ce,Be){var fe=this.style;this.__dirty&&d.normalizeTextStyle(fe,!0);var Se=fe.text;if(Se!=null&&(Se+=""),!Se)return;if(fe.rich){var ke=f.parseRichText(Se,fe);Se=[];for(var rt=0;rt<ke.lines.length;rt++){for(var xt=ke.lines[rt].tokens,ht=[],He=0;He<xt.length;He++)ht.push(xt[He].text);Se.push(ht.join(""))}Se=Se.join(`
`)}var ir,ct,Xt=fe.textAlign,hr=fe.textVerticalAlign,Jt=Je(fe.font),Pt=Jt.style+" "+Jt.variant+" "+Jt.weight+" "+Jt.size+'px "'+Jt.family+'"';Ce=Ce||f.getBoundingRect(Se,Pt,Xt,hr,fe.textPadding,fe.textLineHeight);var Wt=this.transform;if(Wt&&!Be&&(ut.copy(be),ut.applyTransform(Wt),be=ut),Be)ir=be.x,ct=be.y;else{var Ge=fe.textPosition;if(Ge instanceof Array)ir=be.x+F(Ge[0],be.width),ct=be.y+F(Ge[1],be.height),Xt=Xt||"left";else{var pe=this.calculateTextPosition?this.calculateTextPosition({},fe,be):f.calculateTextPosition({},fe,be);ir=pe.x,ct=pe.y,Xt=Xt||pe.textAlign,hr=hr||pe.textVerticalAlign}}ir=f.adjustTextX(ir,Ce.width,Xt),ct=f.adjustTextY(ct,Ce.height,hr),ct+=Ce.height/2;var se=r.createNode,lt=this._textVmlEl,qe,me,Ht;lt?(Ht=lt.firstChild,qe=Ht.nextSibling,me=qe.nextSibling):(lt=se("line"),qe=se("path"),me=se("textpath"),Ht=se("skew"),me.style["v-text-align"]="left",I(lt),qe.textpathok=!0,me.on=!0,lt.from="0 0",lt.to="1000 0.05",B(lt,Ht),B(lt,qe),B(lt,me),this._textVmlEl=lt);var yr=[ir,ct],At=lt.style;Wt&&Be?(x(yr,yr,Wt),Ht.on=!0,Ht.matrix=Wt[0].toFixed(3)+E+Wt[2].toFixed(3)+E+Wt[1].toFixed(3)+E+Wt[3].toFixed(3)+",0,0",Ht.offset=(c(yr[0])||0)+","+(c(yr[1])||0),Ht.origin="0 0",At.left="0px",At.top="0px"):(Ht.on=!1,At.left=c(ir)+"px",At.top=c(ct)+"px"),me.string=R(Se);try{me.style.font=Pt}catch(rr){}Q(lt,"fill",{fill:fe.textFill,opacity:fe.opacity},this),Q(lt,"stroke",{stroke:fe.textStroke,opacity:fe.opacity,lineDash:fe.lineDash||null},this),lt.style.zIndex=X(this.zlevel,this.z,this.z2),B(de,lt)},ae=function(de){P(de,this._textVmlEl),this._textVmlEl=null},at=function(de){B(de,this._textVmlEl)},he=[u,o,i,s,t],J=0;J<he.length;J++){var Y=he[J].prototype;Y.drawRectText=Fe,Y.removeRectText=ae,Y.appendRectText=at}t.prototype.brushVML=function($){var de=this.style;de.text!=null?this.drawRectText($,{x:de.x||0,y:de.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText($)},t.prototype.onRemove=function($){this.removeRectText($)},t.prototype.onAdd=function($){this.appendRectText($)}}},qJCg:function(k,D,n){var y=n("BlVb"),p=n("mFDi"),x=n("IwbS"),v=x.linePolygonIntersect,m={lineX:f(0),lineY:f(1),rect:{point:function(o,i,t){return o&&t.boundingRect.contain(o[0],o[1])},rect:function(o,i,t){return o&&t.boundingRect.intersect(o)}},polygon:{point:function(o,i,t){return o&&t.boundingRect.contain(o[0],o[1])&&y.contain(t.range,o[0],o[1])},rect:function(o,i,t){var s=t.range;if(!o||s.length<=1)return!1;var e=o.x,l=o.y,r=o.width,a=o.height,c=s[0];if(y.contain(s,e,l)||y.contain(s,e+r,l)||y.contain(s,e,l+a)||y.contain(s,e+r,l+a)||p.create(o).contain(c[0],c[1])||v(e,l,e+r,l,s)||v(e,l,e,l+a,s)||v(e+r,l,e+r,l+a,s)||v(e,l+a,e+r,l+a,s))return!0}}};function f(o){var i=["x","y"],t=["width","height"];return{point:function(s,e,l){if(s){var r=l.range,a=s[o];return d(a,r)}},rect:function(s,e,l){if(s){var r=l.range,a=[s[i[o]],s[i[o]]+s[t[o]]];return a[1]<a[0]&&a.reverse(),d(a[0],r)||d(a[1],r)||d(r[0],a)||d(r[1],a)}}}}function d(o,i){return i[0]<=o&&o<=i[1]}var u=m;k.exports=u},qM6L:function(k,D,n){(function(y,p){k.exports=D=p(n("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 i=o.words,t=o.sigBytes,s=[],e=0;e<t;e+=2){var l=i[e>>>2]>>>16-e%4*8&65535;s.push(String.fromCharCode(l))}return s.join("")},parse:function(o){for(var i=o.length,t=[],s=0;s<i;s++)t[s>>>1]|=o.charCodeAt(s)<<16-s%2*16;return v.create(t,i*2)}};m.Utf16LE={stringify:function(o){for(var i=o.words,t=o.sigBytes,s=[],e=0;e<t;e+=2){var l=d(i[e>>>2]>>>16-e%4*8&65535);s.push(String.fromCharCode(l))}return s.join("")},parse:function(o){for(var i=o.length,t=[],s=0;s<i;s++)t[s>>>1]|=d(o.charCodeAt(s)<<16-s%2*16);return v.create(t,i*2)}};function d(u){return u<<8&4278255360|u>>>8&16711935}}(),y.enc.Utf16})},qMZE:function(k,D,n){var y=n("JEkh"),p=y.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});k.exports=p},qOx5:function(k,D,n){"use strict";n.d(D,"a",function(){return f});var y=n("Kwbf");function p(d,u){var o=new Set;return d.forEach(function(i){u.has(i)||o.add(i)}),o}function x(d){var u=d||{},o=u.disabled,i=u.disableCheckbox,t=u.checkable;return!!(o||i)||t===!1}function v(d,u,o,i){for(var t=new Set(d),s=new Set,e=0;e<=o;e+=1){var l=u.get(e)||new Set;l.forEach(function(h){var g=h.key,A=h.node,b=h.children,S=b===void 0?[]:b;t.has(g)&&!i(A)&&S.filter(function(E){return!i(E.node)}).forEach(function(E){t.add(E.key)})})}for(var r=new Set,a=o;a>=0;a-=1){var c=u.get(a)||new Set;c.forEach(function(h){var g=h.parent,A=h.node;if(i(A)||!h.parent||r.has(h.parent.key))return;if(i(h.parent.node)){r.add(g.key);return}var b=!0,S=!1;(g.children||[]).filter(function(E){return!i(E.node)}).forEach(function(E){var C=E.key,_=t.has(C);b&&!_&&(b=!1),!S&&(_||s.has(C))&&(S=!0)}),b&&t.add(g.key),S&&s.add(g.key),r.add(g.key)})}return{checkedKeys:Array.from(t),halfCheckedKeys:Array.from(p(s,t))}}function m(d,u,o,i,t){for(var s=new Set(d),e=new Set(u),l=0;l<=i;l+=1){var r=o.get(l)||new Set;r.forEach(function(g){var A=g.key,b=g.node,S=g.children,E=S===void 0?[]:S;!s.has(A)&&!e.has(A)&&!t(b)&&E.filter(function(C){return!t(C.node)}).forEach(function(C){s.delete(C.key)})})}e=new Set;for(var a=new Set,c=i;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||a.has(g.parent.key))return;if(t(g.parent.node)){a.add(A.key);return}var S=!0,E=!1;(A.children||[]).filter(function(C){return!t(C.node)}).forEach(function(C){var _=C.key,T=s.has(_);S&&!T&&(S=!1),!E&&(T||e.has(_))&&(E=!0)}),S||s.delete(A.key),E&&e.add(A.key),a.add(A.key)})}return{checkedKeys:Array.from(s),halfCheckedKeys:Array.from(p(e,s))}}function f(d,u,o,i){var t=[],s;i?s=i:s=x;var e=new Set(d.filter(function(c){var h=!!o[c];return h||t.push(c),h})),l=new Map,r=0;Object.keys(o).forEach(function(c){var h=o[c],g=h.level,A=l.get(g);A||(A=new Set,l.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 a;return u===!0?a=v(e,l,r,s):a=m(e,u.halfCheckedKeys,l,r,s),a}},qPY4:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("u4NN"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},qWUW:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("DL4k")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="CaretDownOutlined";var i=v.forwardRef(o);D.default=i},qWt2:function(k,D,n){var y=n("ProS"),p=y.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});k.exports=p},qZFw:function(k,D,n){var y=n("bYtY"),p=n("6GrX"),x=n("hM6l"),v=n("4NO4"),m=v.makeInner,f=m();function d(o,i){i=i||[0,360],x.call(this,"angle",o,i),this.type="category"}d.prototype={constructor:d,pointToData:function(o,i){return this.polar.pointToData(o,i)[this.dim==="radius"?0:1]},dataToAngle:x.prototype.dataToCoord,angleToData:x.prototype.coordToData,calculateCategoryInterval:function(){var o=this,i=o.getLabelModel(),t=o.scale,s=t.getExtent(),e=t.count();if(s[1]-s[0]<1)return 0;var l=s[0],r=o.dataToCoord(l+1)-o.dataToCoord(l),a=Math.abs(r),c=p.getBoundingRect(l,i.getFont(),"center","top"),h=Math.max(c.height,7),g=h/a;isNaN(g)&&(g=Infinity);var A=Math.max(0,Math.floor(g)),b=f(o.model),S=b.lastAutoInterval,E=b.lastTickCount;return S!=null&&E!=null&&Math.abs(S-A)<=1&&Math.abs(E-e)<=1&&S>A?A=S:(b.lastTickCount=e,b.lastAutoInterval=A),A}},y.inherits(d,x);var u=d;k.exports=u},qZTm:function(k,D,n){var y=n("fR/l"),p=n("MvSz"),x=n("7GkX");function v(m){return y(m,x,p)}k.exports=v},qgGe:function(k,D,n){var y=n("bYtY"),p=n("T4UG"),x=n("Bsck"),v=n("VaxA"),m=v.wrapTreePathInfo,f=p.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(u,o){var i={name:u.name,children:u.data};d(i);var t=u.levels||[],s={};return s.levels=t,x.createTree(i,this,s).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(u){var o=p.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(u);return o.treePathInfo=m(i,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(u){u?this._viewRoot=u:u=this._viewRoot;var o=this.getRawData().tree.root;(!u||u!==o&&!o.contains(u))&&(this._viewRoot=o)}});function d(u){var o=0;y.each(u.children,function(t){d(t);var s=t.value;y.isArray(s)&&(s=s[0]),o+=s});var i=u.value;y.isArray(i)&&(i=i[0]),(i==null||isNaN(i))&&(i=o),i<0&&(i=0),y.isArray(u.value)?u.value[0]=i:u.value=i}k.exports=f},qj72:function(k,D,n){var y=n("bYtY");function p(v,m){return m=m||[0,0],y.map(["x","y"],function(f,d){var u=this.getAxis(f),o=m[d],i=v[d]/2;return u.type==="category"?u.getBandWidth():Math.abs(u.dataToCoord(o-i)-u.dataToCoord(o+i))},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)}}}k.exports=x},"qt/9":function(k,D,n){var y=n("ProS"),p=n("bYtY");n("Wqna"),n("1tlw"),n("Mylv");var x=n("nVfU"),v=x.layout,m=n("f5Yq");n("Ae16"),y.registerLayout(p.curry(v,"pictorialBar")),y.registerVisual(m("pictorialBar","roundRect"))},qu8F:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return y.mode.CTRGladman=function(){var p=y.lib.BlockCipherMode.extend();function x(f){if((f>>24&255)===255){var d=f>>16&255,u=f>>8&255,o=f&255;d===255?(d=0,u===255?(u=0,o===255?o=0:++o):++u):++d,f=0,f+=d<<16,f+=u<<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,u){var o=this._cipher,i=o.blockSize,t=this._iv,s=this._counter;t&&(s=this._counter=t.slice(0),this._iv=void 0),v(s);var e=s.slice(0);o.encryptBlock(e,0);for(var l=0;l<i;l++)d[u+l]^=e[l]}});return p.Decryptor=m,p}(),y.mode.CTRGladman})},qwVE:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("K4ya"),v=n("XxSj"),m=y.PRIORITY.VISUAL.COMPONENT;y.registerVisual(m,{createOnAllSeries:!0,reset:function(d,u){var o=[];return u.eachComponent("visualMap",function(i){var t=d.pipelineContext;if(!i.isTargetSeries(d)||t&&t.large)return;o.push(x.incrementalApplyVisual(i.stateList,i.targetVisuals,p.bind(i.getValueState,i),i.getDataDimension(d.getData())))}),o}}),y.registerVisual(m,{createOnAllSeries:!0,reset:function(d,u){var o=d.getData(),i=[];u.eachComponent("visualMap",function(t){if(t.isTargetSeries(d)){var s=t.getVisualMeta(p.bind(f,null,d,t))||{stops:[],outerColors:[]},e=t.getDataDimension(o),l=o.getDimensionInfo(e);l!=null&&(s.dimension=l.index,i.push(s))}}),d.getData().setVisual("visualMeta",i)}});function f(d,u,o,i){for(var t=u.targetVisuals[i],s=v.prepareVisualTypes(t),e={color:d.getData().getVisual("color")},l=0,r=s.length;l<r;l++){var a=s[l],c=t[a==="opacity"?"__alphaForOpacity":a];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(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("s2MQ")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="EyeInvisibleOutlined";var i=v.forwardRef(o);D.default=i},"r/2G":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("+Zaj"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},r6Bn:function(k,D,n){var y=n("bYtY"),p=n("ItGF"),x=n("4fz+"),v=n("BPZU");function m(u,o){return u.zlevel===o.zlevel?u.z===o.z?u.z2-o.z2:u.z-o.z:u.zlevel-o.zlevel}var f=function(){this._roots=[],this._displayList=[],this._displayListLen=0};f.prototype={constructor:f,traverse:function(o,i){for(var t=0;t<this._roots.length;t++)this._roots[t].traverse(o,i)},getDisplayList:function(o,i){return i=i||!1,o&&this.updateDisplayList(i),this._displayList},updateDisplayList:function(o){this._displayListLen=0;for(var i=this._roots,t=this._displayList,s=0,e=i.length;s<e;s++)this._updateAndAddDisplayable(i[s],null,o);t.length=this._displayListLen,p.canvasSupported&&v(t,m)},_updateAndAddDisplayable:function(o,i,t){if(o.ignore&&!t)return;o.beforeUpdate(),o.__dirty&&o.update(),o.afterUpdate();var s=o.clipPath;if(s){i?i=i.slice():i=[];for(var e=s,l=o;e;)e.parent=l,e.updateTransform(),i.push(e),l=e,e=e.clipPath}if(o.isGroup){for(var r=o._children,a=0;a<r.length;a++){var c=r[a];o.__dirty&&(c.__dirty=!0),this._updateAndAddDisplayable(c,i,t)}o.__dirty=!1}else o.__clipPaths=i,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 i=0;i<this._roots.length;i++){var t=this._roots[i];t instanceof x&&t.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(o instanceof Array){for(var i=0,s=o.length;i<s;i++)this.delRoot(o[i]);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;k.exports=d},rA99:function(k,D,n){var y=n("y+Vt"),p=n("QBsz"),x=n("Sj9i"),v=x.quadraticSubdivide,m=x.cubicSubdivide,f=x.quadraticAt,d=x.cubicAt,u=x.quadraticDerivativeAt,o=x.cubicDerivativeAt,i=[];function t(e,l,r){var a=e.cpx2,c=e.cpy2;return a===null||c===null?[(r?o:d)(e.x1,e.cpx1,e.cpx2,e.x2,l),(r?o:d)(e.y1,e.cpy1,e.cpy2,e.y2,l)]:[(r?u:f)(e.x1,e.cpx1,e.x2,l),(r?u:f)(e.y1,e.cpy1,e.y2,l)]}var s=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(l,r){var a=r.x1,c=r.y1,h=r.x2,g=r.y2,A=r.cpx1,b=r.cpy1,S=r.cpx2,E=r.cpy2,C=r.percent;if(C===0)return;l.moveTo(a,c),S==null||E==null?(C<1&&(v(a,A,h,C,i),A=i[1],h=i[2],v(c,b,g,C,i),b=i[1],g=i[2]),l.quadraticCurveTo(A,b,h,g)):(C<1&&(m(a,A,S,h,C,i),A=i[1],S=i[2],h=i[3],m(c,b,E,g,C,i),b=i[1],E=i[2],g=i[3]),l.bezierCurveTo(A,b,S,E,h,g))},pointAt:function(l){return t(this.shape,l,!1)},tangentAt:function(l){var r=t(this.shape,l,!0);return p.normalize(r,r)}});k.exports=s},"rAM+":function(k,D,n){"use strict";n.d(D,"a",function(){return p});var y=n("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(s){throw s},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 u=!0,o=!1,i;return{s:function(){m=x[Symbol.iterator]()},n:function(){var s=m.next();return u=s.done,s},e:function(s){o=!0,i=s},f:function(){try{!u&&m.return!=null&&m.return()}finally{if(o)throw i}}}}},rEGp:function(k,D){function n(y){var p=-1,x=Array(y.size);return y.forEach(function(v){x[++p]=v}),x}k.exports=n},rHrb:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CopyToClipboard=void 0;var y=x(n("q1tI")),p=x(n("+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 S=Object.getOwnPropertySymbols(g);A&&(S=S.filter(function(E){return Object.getOwnPropertyDescriptor(g,E).enumerable})),b.push.apply(b,S)}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(S){c(g,S,b[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(b)):m(b).forEach(function(S){Object.defineProperty(g,S,Object.getOwnPropertyDescriptor(b,S))})}return g}function d(g,A){if(g==null)return{};var b=u(g,A),S,E;if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(g);for(E=0;E<C.length;E++){if(S=C[E],A.indexOf(S)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(g,S))continue;b[S]=g[S]}}return b}function u(g,A){if(g==null)return{};var b={},S=Object.keys(g),E,C;for(C=0;C<S.length;C++){if(E=S[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 i(g,A){for(var b=0;b<A.length;b++){var S=A[b];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(g,S.key,S)}}function t(g,A,b){return A&&i(g.prototype,A),b&&i(g,b),g}function s(g,A){return A&&(v(A)==="object"||typeof A=="function")?A:l(g)}function e(g){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},e(g)}function l(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&&a(g,A)}function a(g,A){return a=Object.setPrototypeOf||function(S,E){return S.__proto__=E,S},a(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,S;o(this,A);for(var E=arguments.length,C=new Array(E),_=0;_<E;_++)C[_]=arguments[_];return S=s(this,(b=e(A)).call.apply(b,[this].concat(C))),c(l(S),"onClick",function(T){var w=S.props,O=w.text,I=w.onCopy,R=w.children,M=w.options,B=y.default.Children.only(R),P=(0,p.default)(O,M);I&&I(O,P),B&&B.props&&typeof B.props.onClick=="function"&&B.props.onClick(T)}),S}return t(A,[{key:"render",value:function(){var S=this.props,E=S.text,C=S.onCopy,_=S.options,T=S.children,w=d(S,["text","onCopy","options","children"]),O=y.default.Children.only(T);return y.default.cloneElement(O,f({},w,{onClick:this.onClick}))}}]),A}(y.default.PureComponent);D.CopyToClipboard=h,c(h,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="ReloadOutlined";var d=D.a=p.forwardRef(f)},rUJ1:function(k,D){var n=/[&<>"']/,y=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,x=/[<>"']|&(?!#?\w+;)/g,v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},m=function(T){return v[T]};function f(_,T){if(T){if(n.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 u(_){return _.replace(d,function(T,w){return w=w.toLowerCase(),w==="colon"?":":w.charAt(0)==="#"?w.charAt(1)==="x"?String.fromCharCode(parseInt(w.substring(2),16)):String.fromCharCode(+w.substring(1)):""})}var o=/(^|[^\[])\^/g;function i(_,T){_=_.source||_,T=T||"";var w={replace:function(I,R){return R=R.source||R,R=R.replace(o,"$1"),_=_.replace(I,R),w},getRegex:function(){return new RegExp(_,T)}};return w}var t=/[^\w:]/g,s=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function e(_,T,w){if(_){var O;try{O=decodeURIComponent(u(w)).replace(t,"").toLowerCase()}catch(I){return null}if(O.indexOf("javascript:")===0||O.indexOf("vbscript:")===0||O.indexOf("data:")===0)return null}T&&!s.test(w)&&(w=h(T,w));try{w=encodeURI(w).replace(/%25/g,"%")}catch(I){return null}return w}var l={},r=/^[^:]+:\/*[^/]*$/,a=/^([^:]+:)[\s\S]*$/,c=/^([^:]+:\/*[^/]*)[\s\S]*$/;function h(_,T){l[" "+_]||(r.test(_)?l[" "+_]=_+"/":l[" "+_]=S(_,"/",!0)),_=l[" "+_];var w=_.indexOf(":")===-1;return T.substring(0,2)==="//"?w?T:_.replace(a,"$1")+T:T.charAt(0)==="/"?w?T:_.replace(c,"$1")+T:_+T}var g={exec:function(){}};function A(_){for(var T=1,w,O;T<arguments.length;T++){w=arguments[T];for(O in w)Object.prototype.hasOwnProperty.call(w,O)&&(_[O]=w[O])}return _}function b(_,T){var w=_.replace(/\|/g,function(R,M,B){for(var P=!1,X=M;--X>=0&&B[X]==="\\";)P=!P;return P?"|":" |"}),O=w.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 S(_,T,w){var O=_.length;if(O===0)return"";for(var I=0;I<O;){var R=_.charAt(O-I-1);if(R===T&&!w)I++;else if(R!==T&&w)I++;else break}return _.substr(0,O-I)}function E(_,T){if(_.indexOf(T[1])===-1)return-1;for(var w=_.length,O=0,I=0;I<w;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")}k.exports={escape:f,unescape:u,edit:i,cleanUrl:e,resolveUrl:h,noopTest:g,merge:A,splitCells:b,rtrim:S,findClosingBracket:E,checkSanitizeDeprecation:C}},rdUC:function(k,D,n){var y=n("MFOe"),p=y.Global;k.exports={name:"localStorage",read:v,write:m,each:f,remove:d,clearAll:u};function x(){return p.localStorage}function v(o){return x().getItem(o)}function m(o,i){return x().setItem(o,i)}function f(o){for(var i=x().length-1;i>=0;i--){var t=x().key(i);o(v(t),t)}}function d(o){return x().removeItem(o)}function u(){return x().clear()}},rdor:function(k,D,n){var y=n("lOQZ"),p=y.circularLayout;function x(v){v.eachSeriesByType("graph",function(m){m.get("layout")==="circular"&&p(m,"symbolSize")})}k.exports=x},rfSb:function(k,D,n){var y=n("T4UG"),p=n("sdST"),x=n("L0Ub"),v=x.getDimensionTypeByAxis,m=n("YXkt"),f=n("bYtY"),d=n("4NO4"),u=d.groupData,o=n("7aKB"),i=o.encodeHTML,t=n("xKMd"),s=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 a=r.length,c=u(r,function(B){return B[2]}),h=[];c.buckets.each(function(B,P){h.push({name:P,dataList:B})});for(var g=h.length,A=-1,b=-1,S=0;S<g;++S){var E=h[S].dataList.length;E>A&&(A=E,b=S)}for(var C=0;C<g;++C){if(C===b)continue;for(var _=h[C].name,T=0;T<A;++T){for(var w=h[b].dataList[T][0],O=h[C].dataList.length,I=-1,R=0;R<O;++R){var M=h[C].dataList[R][0];if(M===w){I=R;break}}I===-1&&(r[a]=[],r[a][0]=w,r[a][1]=0,r[a][2]=_,a++)}}return r},getInitialData:function(r,a){for(var c=a.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],h=c.get("type"),g=f.filter(r.data,function(w){return w[2]!==void 0}),A=this.fixData(g||[]),b=[],S=this.nameMap=f.createHashMap(),E=0,C=0;C<A.length;++C)b.push(A[C][s]),S.get(A[C][s])||(S.set(A[C][s],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(),a=r.count(),c=[],h=0;h<a;++h)c[h]=h;var g=r.mapDimension("single"),A=u(c,function(S){return r.get("name",S)}),b=[];return A.buckets.each(function(S,E){S.sort(function(C,_){return r.get(g,C)-r.get(g,_)}),b.push({name:E,indices:S})}),b},getAxisTooltipData:function(r,a,c){f.isArray(r)||(r=r?[r]:[]);for(var h=this.getData(),g=this.getLayerSeries(),A=[],b=g.length,S,E=0;E<b;++E){for(var C=Number.MAX_VALUE,_=-1,T=g[E].indices.length,w=0;w<T;++w){var O=h.get(r[0],g[E].indices[w]),I=Math.abs(O-a);I<=C&&(S=O,C=I,_=g[E].indices[w])}A.push(_)}return{dataIndices:A,nestestValue:S}},formatTooltip:function(r){var a=this.getData(),c=a.getName(r),h=a.get(a.mapDimension("value"),r);return(isNaN(h)||h==null)&&(h="-"),i(c+" : "+h)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),l=e;k.exports=l},rkZ5:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),v=n("c8qY"),m=n("D9ME"),f=n("fls0"),d=n("RSch"),u=n("akwb"),o=n("o40c"),i=n("ZYIC"),t=n("sK/D"),s=t.createClipPath,e=x.extendChartView({type:"lines",init:function(){},render:function(l,r,a){var c=l.getData(),h=this._updateLineDraw(c,l),g=l.get("zlevel"),A=l.get("effect.trailLength"),b=a.getZr(),S=b.painter.getType()==="svg";S||b.painter.getLayer(g).clear(!0),this._lastZlevel!=null&&!S&&b.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(l)&&A&&(S||b.configLayer(g,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(A/10+.9,1),0)})),h.updateData(c);var E=l.get("clip",!0)&&s(l.coordinateSystem,!1,l);E?this.group.setClipPath(E):this.group.removeClipPath(),this._lastZlevel=g,this._finished=!0},incrementalPrepareRender:function(l,r,a){var c=l.getData(),h=this._updateLineDraw(c,l);h.incrementalPrepareUpdate(c),this._clearLayer(a),this._finished=!1},incrementalRender:function(l,r,a){this._lineDraw.incrementalUpdate(l,r.getData()),this._finished=l.end===r.getData().count()},updateTransform:function(l,r,a){var c=l.getData(),h=l.pipelineContext;if(!this._finished||h.large||h.progressiveRender)return{update:!0};var g=i.reset(l);g.progress&&g.progress({start:0,end:c.count()},c),this._lineDraw.updateLayout(),this._clearLayer(a)},_updateLineDraw:function(l,r){var a=this._lineDraw,c=this._showEffect(r),h=!!r.get("polyline"),g=r.pipelineContext,A=g.large;return(!a||c!==this._hasEffet||h!==this._isPolyline||A!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=A?new o:new v(h?c?u:d:c?m:f),this._hasEffet=c,this._isPolyline=h,this._isLargeDraw=A,this.group.removeAll()),this.group.add(a.group),a},_showEffect:function(l){return!!l.get("effect.show")},_clearLayer:function(l){var r=l.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(l,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},dispose:function(){}});k.exports=e},rmlV:function(k,D,n){var y=n("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,u=m.cy,o=m.rx,i=m.ry,t=o*f,s=i*f;v.moveTo(d-o,u),v.bezierCurveTo(d-o,u-s,d-t,u-i,d,u-i),v.bezierCurveTo(d+t,u-i,d+o,u-s,d+o,u),v.bezierCurveTo(d+o,u+s,d+t,u+i,d,u+i),v.bezierCurveTo(d-t,u+i,d-o,u+s,d-o,u),v.closePath()}});k.exports=p},rnVJ:function(k,D,n){var y=n("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 u=[];y.each(d,function(e){var l=e.hasOwnProperty("toolbox")?e.toolbox:[];l instanceof Array&&(u=u.concat(l))});var o=m&&m.toolbox;y.isArray(o)&&(o=o[0]),o||(o={feature:{}},m.toolbox=[o]);var i=o.feature||(o.feature={}),t=i.brush||(i.brush={}),s=t.type||(t.type=[]);s.push.apply(s,u),v(s),f&&!s.length&&s.push.apply(s,p)}function v(m){var f={};y.each(m,function(d){f[d]=1}),m.length=0,y.each(f,function(d,u){m.push(u)})}k.exports=x},rwxt:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("GdRQ");function p(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function x(d,u){for(var o=0;o<u.length;o++){var i=u[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(d,i.key,i)}}function v(d,u,o){return u&&x(d.prototype,u),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 i={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,i),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,i),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,i),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,i)}this.clear()}},{key:"detach",value:function(){if(!this._target)return;if(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,i,t,s,e){if(s===0||e===0){this.clear();return}this._position.x=this._position.x+this._hotSpot.x-i,this._position.y=this._position.y+this._hotSpot.y-t,this._hotSpot.x=i,this._hotSpot.y=t;var l=this._canvas.getContext("2d");this._canvas.width=s,this._canvas.height=e;var r;try{r=new ImageData(new Uint8ClampedArray(o),s,e)}catch(c){r=l.createImageData(s,e),r.data.set(new Uint8ClampedArray(o))}if(l.clearRect(0,0,s,e),l.putImageData(r,0,0),m)this._updatePosition();else{var a=this._canvas.toDataURL();this._target.style.cursor="url("+a+")"+i+" "+t+", default"}}},{key:"clear",value:function(){this._target.style.cursor="none",this._canvas.width=0,this._canvas.height=0,this._position.x=this._position.x+this._hotSpot.x,this._position.y=this._position.y+this._hotSpot.y,this._hotSpot.x=0,this._hotSpot.y=0}},{key:"move",value:function(o,i){if(!m)return;window.visualViewport?(this._position.x=o+window.visualViewport.offsetLeft,this._position.y=i+window.visualViewport.offsetTop):(this._position.x=o,this._position.y=i),this._updatePosition();var t=document.elementFromPoint(o,i);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 i=this,t=document.elementFromPoint(o.clientX,o.clientY);this._updateVisibility(t),this._captureIsActive()&&window.setTimeout(function(){if(!i._target)return;t=document.elementFromPoint(o.clientX,o.clientY),i._updateVisibility(t)},0)}},{key:"_showCursor",value:function(){this._canvas.style.visibility==="hidden"&&(this._canvas.style.visibility="")}},{key:"_hideCursor",value:function(){this._canvas.style.visibility!=="hidden"&&(this._canvas.style.visibility="hidden")}},{key:"_shouldShowCursor",value:function(o){return o?o===this._target?!0:this._target.contains(o)?!(window.getComputedStyle(o).cursor!=="none"):!1:!1}},{key:"_updateVisibility",value:function(o){this._captureIsActive()&&(o=document.captureElement),this._shouldShowCursor(o)?this._showCursor():this._hideCursor()}},{key:"_updatePosition",value:function(){this._canvas.style.left=this._position.x+"px",this._canvas.style.top=this._position.y+"px"}},{key:"_captureIsActive",value:function(){return document.captureElement&&document.documentElement.contains(document.captureElement)}}]),d}();D.default=f},rySg:function(k,D,n){n("SMc4"),n("8nMs")},"s/wZ":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("MUZu"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},s2MQ:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};D.default=y},s2lz:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS"),v=n("gPAo"),m=n("VaxA"),f=n("9hCq"),d=n("SgGq"),u=n("mFDi"),o=n("Fofx"),i=n("5s0K"),t=n("KCsZ"),s=n("7aKB"),e=s.windowOpen,l=p.bind,r=x.Group,a=x.Rect,c=p.each,h=3,g=["label"],A=["emphasis","label"],b=["upperLabel"],S=["emphasis","upperLabel"],E=10,C=1,_=2,T=t([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),w=function(B){var P=T(B);return P.stroke=P.fill=P.lineWidth=null,P},O=y.extendChartView({type:"treemap",init:function(B,P){this._containerGroup,this._storage=I(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(B,P,X,F){var j=P.findComponents({mainType:"series",subType:"treemap",query:F});if(p.indexOf(j,B)<0)return;this.seriesModel=B,this.api=X,this.ecModel=P;var K=["treemapZoomToNode","treemapRootToNode"],z=m.retrieveTargetInfo(F,K,B),V=F&&F.type,Q=B.layoutInfo,G=!this._oldTree,te=this._storage,q=V==="treemapRootToNode"&&z&&te?{rootNodeGroup:te.nodeGroup[z.node.getRawIndex()],direction:F.direction}:null,le=this._giveContainerGroup(Q),re=this._doRender(le,B,q);!G&&(!V||V==="treemapZoomToNode"||V==="treemapRootToNode")?this._doAnimation(le,re,B,q):re.renderFinally(),this._resetController(X),this._renderBreadcrumb(B,X,z)},_giveContainerGroup:function(B){var P=this._containerGroup;return P||(P=this._containerGroup=new r,this._initEvents(P),this.group.add(P)),P.attr("position",[B.x,B.y]),P},_doRender:function(B,P,X){var F=P.getData().tree,j=this._oldTree,K=I(),z=I(),V=this._storage,Q=[],G=p.curry(R,P,z,V,X,K,Q);q(F.root?[F.root]:[],j&&j.root?[j.root]:[],B,F===j||!j,0);var te=le(V);return this._oldTree=F,this._storage=z,{lastsForAnimation:K,willDeleteEls:te,renderFinally:re};function q(we,Ie,Me,Je,Ve){Je?(Ie=we,c(we,function(ae,at){!ae.isRemoved()&&Fe(at,at)})):new v(Ie,we,ut,ut).add(Fe).update(Fe).remove(p.curry(Fe,null)).execute();function ut(ae){return ae.getId()}function Fe(ae,at){var he=ae!=null?we[ae]:null,J=at!=null?Ie[at]:null,Y=G(he,J,Me,Ve);Y&&q(he&&he.viewChildren||[],J&&J.viewChildren||[],Y,Je,Ve+1)}}function le(we){var Ie=I();return we&&c(we,function(Me,Je){var Ve=Ie[Je];c(Me,function(ut){ut&&(Ve.push(ut),ut.__tmWillDelete=1)})}),Ie}function re(){c(te,function(we){c(we,function(Ie){Ie.parent&&Ie.parent.remove(Ie)})}),c(Q,function(we){we.invisible=!0,we.dirty()})}},_doAnimation:function(B,P,X,F){if(!X.get("animation"))return;var j=X.get("animationDurationUpdate"),K=X.get("animationEasing"),z=i.createWrap();c(P.willDeleteEls,function(V,Q){c(V,function(G,te){if(G.invisible)return;var q=G.parent,le;if(F&&F.direction==="drillDown")le=q===F.rootNodeGroup?{shape:{x:0,y:0,width:q.__tmNodeWidth,height:q.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var re=0,we=0;q.__tmWillDelete||(re=q.__tmNodeWidth/2,we=q.__tmNodeHeight/2),le=Q==="nodeGroup"?{position:[re,we],style:{opacity:0}}:{shape:{x:re,y:we,width:0,height:0},style:{opacity:0}}}le&&z.add(G,le,j,K)})}),c(this._storage,function(V,Q){c(V,function(G,te){var q=P.lastsForAnimation[Q][te],le={};if(!q)return;Q==="nodeGroup"?q.old&&(le.position=G.position.slice(),G.attr("position",q.old)):(q.old&&(le.shape=p.extend({},G.shape),G.setShape(q.old)),q.fadein?(G.setStyle("opacity",0),le.style={opacity:1}):G.style.opacity!==1&&(le.style={opacity:1})),z.add(G,le,j,K)})},this),this._state="animating",z.done(l(function(){this._state="ready",P.renderFinally()},this)).start()},_resetController:function(B){var P=this._controller;P||(P=this._controller=new d(B.getZr()),P.enable(this.seriesModel.get("roam")),P.on("pan",l(this._onPan,this)),P.on("zoom",l(this._onZoom,this)));var X=new u(0,0,B.getWidth(),B.getHeight());P.setPointerChecker(function(F,j,K){return X.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 P=this.seriesModel.getData().tree.root;if(!P)return;var X=P.getLayout();if(!X)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:X.x+B.dx,y:X.y+B.dy,width:X.width,height:X.height}})}},_onZoom:function(B){var P=B.originX,X=B.originY;if(this._state!=="animating"){var F=this.seriesModel.getData().tree.root;if(!F)return;var j=F.getLayout();if(!j)return;var K=new u(j.x,j.y,j.width,j.height),z=this.seriesModel.layoutInfo;P-=z.x,X-=z.y;var V=o.create();o.translate(V,V,[-P,-X]),o.scale(V,V,[B.scale,B.scale]),o.translate(V,V,[P,X]),K.applyTransform(V),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:K.x,y:K.y,width:K.width,height:K.height}})}},_initEvents:function(B){B.on("click",function(P){if(this._state!=="ready")return;var X=this.seriesModel.get("nodeClick",!0);if(!X)return;var F=this.findTarget(P.offsetX,P.offsetY);if(!F)return;var j=F.node;if(j.getLayout().isLeafRoot)this._rootToNode(F);else if(X==="zoomToNode")this._zoomToNode(F);else if(X==="link"){var K=j.hostTree.data.getItemModel(j.dataIndex),z=K.get("link",!0),V=K.get("target",!0)||"blank";z&&e(z,V)}},this)},_renderBreadcrumb:function(B,P,X){X||(X=B.get("leafDepth",!0)!=null?{node:B.getViewRoot()}:this.findTarget(P.getWidth()/2,P.getHeight()/2),X||(X={node:B.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new f(this.group))).render(B,P,X.node,l(F,this));function F(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,P){var X,F=this.seriesModel.getViewRoot();return F.eachNode({attr:"viewChildren",order:"preorder"},function(j){var K=this._storage.background[j.getRawIndex()];if(K){var z=K.transformCoordToLocal(B,P),V=K.shape;if(V.x<=z[0]&&z[0]<=V.x+V.width&&V.y<=z[1]&&z[1]<=V.y+V.height)X={node:j,offsetX:z[0],offsetY:z[1]};else return!1}},this),X}});function I(){return{nodeGroup:[],background:[],content:[]}}function R(B,P,X,F,j,K,z,V,Q,G){if(!z)return;var te=z.getLayout(),q=B.getData();if(q.setItemGraphicEl(z.dataIndex,null),!te||!te.isInView)return;var le=te.width,re=te.height,we=te.borderWidth,Ie=te.invisible,Me=z.getRawIndex(),Je=V&&V.getRawIndex(),Ve=z.viewChildren,ut=te.upperHeight,Fe=Ve&&Ve.length,ae=z.getModel("itemStyle"),at=z.getModel("emphasis.itemStyle"),he=Se("nodeGroup",r);if(!he)return;if(Q.add(he),he.attr("position",[te.x||0,te.y||0]),he.__tmNodeWidth=le,he.__tmNodeHeight=re,te.isAboveViewRoot)return he;var J=z.getModel(),Y=Se("background",a,G,C);if(Y&&de(he,Y,Fe&&te.upperLabelHeight),Fe)x.isHighDownDispatcher(he)&&x.setAsHighDownDispatcher(he,!1),Y&&(x.setAsHighDownDispatcher(Y,!0),q.setItemGraphicEl(z.dataIndex,Y));else{var $=Se("content",a,G,_);$&&be(he,$),Y&&x.isHighDownDispatcher(Y)&&x.setAsHighDownDispatcher(Y,!1),x.setAsHighDownDispatcher(he,!0),q.setItemGraphicEl(z.dataIndex,he)}return he;function de(xt,ht,He){if(ht.dataIndex=z.dataIndex,ht.seriesIndex=B.seriesIndex,ht.setShape({x:0,y:0,width:le,height:re}),Ie)Ce(ht);else{ht.invisible=!1;var ir=z.getVisual("borderColor",!0),ct=at.get("borderColor"),Xt=w(ae);Xt.fill=ir;var hr=T(at);if(hr.fill=ct,He){var Jt=le-2*we;Be(Xt,hr,ir,Jt,ut,{x:we,y:0,width:Jt,height:ut})}else Xt.text=hr.text=null;ht.setStyle(Xt),x.setElementHoverStyle(ht,hr)}xt.add(ht)}function be(xt,ht){ht.dataIndex=z.dataIndex,ht.seriesIndex=B.seriesIndex;var He=Math.max(le-2*we,0),ir=Math.max(re-2*we,0);if(ht.culling=!0,ht.setShape({x:we,y:we,width:He,height:ir}),Ie)Ce(ht);else{ht.invisible=!1;var ct=z.getVisual("color",!0),Xt=w(ae);Xt.fill=ct;var hr=T(at);Be(Xt,hr,ct,He,ir),ht.setStyle(Xt),x.setElementHoverStyle(ht,hr)}xt.add(ht)}function Ce(xt){!xt.invisible&&K.push(xt)}function Be(xt,ht,He,ir,ct,Xt){var hr=J.get("name"),Jt=J.getModel(Xt?b:g),Pt=J.getModel(Xt?S:A),Wt=Jt.getShallow("show");x.setLabelStyle(xt,ht,Jt,Pt,{defaultText:Wt?hr:null,autoColor:He,isRectText:!0,labelFetcher:B,labelDataIndex:z.dataIndex,labelProp:Xt?"upperLabel":"label"}),fe(xt,Xt,te),fe(ht,Xt,te),Xt&&(xt.textRect=p.clone(Xt)),xt.truncate=Wt&&Jt.get("ellipsis")?{outerWidth:ir,outerHeight:ct,minChar:2}:null}function fe(xt,ht,He){var ir=xt.text;if(!ht&&He.isLeafRoot&&ir!=null){var ct=B.get("drillDownIcon",!0);xt.text=ct?ct+" "+ir:ir}}function Se(xt,ht,He,ir){var ct=Je!=null&&X[xt][Je],Xt=j[xt];return ct?(X[xt][Je]=null,ke(Xt,ct,xt)):Ie||(ct=new ht({z:M(He,ir)}),ct.__tmDepth=He,ct.__tmStorageName=xt,rt(Xt,ct,xt)),P[xt][Me]=ct}function ke(xt,ht,He){var ir=xt[Me]={};ir.old=He==="nodeGroup"?ht.position.slice():p.extend({},ht.shape)}function rt(xt,ht,He){var ir=xt[Me]={},ct=z.parentNode;if(ct&&(!F||F.direction==="drillDown")){var Xt=0,hr=0,Jt=j.background[ct.getRawIndex()];!F&&Jt&&Jt.old&&(Xt=Jt.old.width,hr=Jt.old.height),ir.old=He==="nodeGroup"?[0,hr]:{x:Xt,y:hr,width:0,height:0}}ir.fadein=He!=="nodeGroup"}}function M(B,P){var X=B*E+P;return(X-1)/X}k.exports=O},sAZ8:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("+rIm"),v=n("/IIm"),m=n("9KIM"),f=n("IwbS"),d=["axisLine","axisTickLabel","axisName"],u=y.extendComponentView({type:"parallelAxis",init:function(e,l){u.superApply(this,"init",arguments),(this._brushController=new v(l.getZr())).on("brush",p.bind(this._onBrush,this))},render:function(e,l,r,a){if(o(e,l,a))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,l),g=h.coordinateSystem,A=e.getAreaSelectStyle(),b=A.width,S=e.axis.dim,E=g.getAxisLayout(S),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=a&&a.animation===!1?null:e;f.groupTransition(c,this._axisGroup,T)},_refreshBrushController:function(e,l,r,a,c,h){var g=r.axis.getExtent(),A=g[1]-g[0],b=Math.min(30,Math.abs(A)*.1),S=f.BoundingRect.create({x:g[0],y:-c/2,width:A,height:c});S.x-=b,S.width+=2*b,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:m.makeRectPanelClipPath(S),isTargetByCursor:m.makeRectIsTargetByCursor(S,h,a),getLinearBrushOtherExtent:m.makeLinearBrushOtherExtent(S,0)}]).enableBrush({brushType:"lineX",brushStyle:l,removeOnClick:!0}).updateCovers(i(r))},_onBrush:function(e,l){var r=this.axisModel,a=r.axis,c=p.map(e,function(h){return[a.coordToData(h.range[0],!0),a.coordToData(h.range[1],!0)]});(!r.option.realtime===l.isEnd||l.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:r.id,intervals:c})},dispose:function(){this._brushController.dispose()}});function o(e,l,r){return r&&r.type==="axisAreaSelect"&&l.findComponents({mainType:"parallelAxis",query:r})[0]===e}function i(e){var l=e.axis;return p.map(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[l.dataToCoord(r[0],!0),l.dataToCoord(r[1],!0)]}})}function t(e,l){return l.getComponent("parallel",e.get("parallelIndex"))}var s=u;k.exports=s},sE09:function(k,D,n){},sEf8:function(k,D){function n(y){return function(p){return y(p)}}k.exports=n},sGsY:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),v=n.n(x),m=n("q1tI"),f=n("TSYQ"),d=n.n(f),u=n("H84U"),o=n("B6l+"),i=n.n(o),t=function(z){var V=z.value,Q=z.formatter,G=z.precision,te=z.decimalSeparator,q=z.groupSeparator,le=q===void 0?"":q,re=z.prefixCls,we;if(typeof Q=="function")we=Q(V);else{var Ie=String(V),Me=Ie.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Me||Ie==="-")we=Ie;else{var Je=Me[1],Ve=Me[2]||"0",ut=Me[4]||"";Ve=Ve.replace(/\B(?=(\d{3})+(?!\d))/g,le),typeof G=="number"&&(ut=i()(ut,G,"0").slice(0,G)),ut&&(ut="".concat(te).concat(ut)),we=[m.createElement("span",{key:"int",className:"".concat(re,"-content-value-int")},Je,Ve),ut&&m.createElement("span",{key:"decimal",className:"".concat(re,"-content-value-decimal")},ut)]}}return m.createElement("span",{className:"".concat(re,"-content-value")},we)},s=t,e=function(z){var V=z.prefixCls,Q=z.className,G=z.style,te=z.valueStyle,q=z.value,le=q===void 0?0:q,re=z.title,we=z.valueRender,Ie=z.prefix,Me=z.suffix,Je=z.direction,Ve=z.onMouseEnter,ut=z.onMouseLeave,Fe=m.createElement(s,v()({},z,{value:le})),ae=d()(V,Q,p()({},"".concat(V,"-rtl"),Je==="rtl"));return m.createElement("div",{className:ae,style:G,onMouseEnter:Ve,onMouseLeave:ut},re&&m.createElement("div",{className:"".concat(V,"-title")},re),m.createElement("div",{style:te,className:"".concat(V,"-content")},Ie&&m.createElement("span",{className:"".concat(V,"-content-prefix")},Ie),we?we(Fe):Fe,Me&&m.createElement("span",{className:"".concat(V,"-content-suffix")},Me)))};e.defaultProps={decimalSeparator:".",groupSeparator:","};var l=Object(u.c)({prefixCls:"statistic"})(e),r=l,a=n("lwsE"),c=n.n(a),h=n("W8MJ"),g=n.n(h),A=n("7W2i"),b=n.n(A),S=n("LQ03"),E=n.n(S),C=n("J4zp"),_=n.n(C),T=n("QQZ/"),w=n.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,G=(z.match(Q)||[]).map(function(re){return re.slice(1,-1)}),te=z.replace(Q,"[]"),q=O.reduce(function(re,we){var Ie=_()(we,2),Me=Ie[0],Je=Ie[1];if(re.indexOf(Me)!==-1){var Ve=Math.floor(V/Je);return V-=Ve*Je,re.replace(new RegExp("".concat(Me,"+"),"g"),function(ut){var Fe=ut.length;return w()(Ve.toString(),Fe,"0")})}return re},te),le=0;return q.replace(Q,function(){var re=G[le];return le+=1,re})}function R(K,z){var V=z.format,Q=V===void 0?"":V,G=new Date(K).getTime(),te=Date.now(),q=Math.max(G-te,0);return I(q,Q)}var M=n("0n0R"),B=1e3/30;function P(K){return new Date(K).getTime()}var X=function(K){b()(V,K);var z=E()(V);function V(){var Q;return c()(this,V),Q=z.apply(this,arguments),Q.syncTimer=function(){var G=Q.props.value,te=P(G);te>=Date.now()?Q.startTimer():Q.stopTimer()},Q.startTimer=function(){if(Q.countdownId)return;Q.countdownId=window.setInterval(function(){Q.forceUpdate()},B)},Q.stopTimer=function(){var G=Q.props,te=G.onFinish,q=G.value;if(Q.countdownId){clearInterval(Q.countdownId),Q.countdownId=void 0;var le=P(q);te&&le<Date.now()&&te()}},Q.formatCountdown=function(G,te){var q=Q.props.format;return R(G,v()(v()({},te),{format:q}))},Q.valueRender=function(G){return Object(M.a)(G,{title:void 0})},Q}return g()(V,[{key:"componentDidMount",value:function(){this.syncTimer()}},{key:"componentDidUpdate",value:function(){this.syncTimer()}},{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return m.createElement(r,v()({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),V}(m.Component);X.defaultProps={format:"HH:mm:ss"};var F=X;r.Countdown=F;var j=D.a=r},"sK/D":function(k,D,n){var y=n("IwbS"),p=n("OELB"),x=p.round;function v(d,u,o){var i=d.getArea(),t=d.getBaseAxis().isHorizontal(),s=i.x,e=i.y,l=i.width,r=i.height,a=o.get("lineStyle.width")||2;s-=a/2,e-=a/2,l+=a,r+=a,s=Math.floor(s),l=Math.round(l);var c=new y.Rect({shape:{x:s,y:e,width:l,height:r}});return u&&(c.shape[t?"width":"height"]=0,y.initProps(c,{shape:{width:l,height:r}},o)),c}function m(d,u,o){var i=d.getArea(),t=new y.Sector({shape:{cx:x(d.cx,1),cy:x(d.cy,1),r0:x(i.r0,1),r:x(i.r,1),startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return u&&(t.shape.endAngle=i.startAngle,y.initProps(t,{shape:{endAngle:i.endAngle}},o)),t}function f(d,u,o){if(d){if(d.type==="polar")return m(d,u,o);if(d.type==="cartesian2d")return v(d,u,o)}else return null;return null}D.createGridClipPath=v,D.createPolarClipPath=m,D.createClipPath=f},sKgW:function(k,D){var n=9007199254740991,y=Math.floor;function p(x,v){var m="";if(!x||v<1||v>n)return m;do v%2&&(m+=x),v=y(v/2),v&&(x+=x);while(v);return m}k.exports=p},sPJy:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("AOa7"),v=n.n(x),m=n("lUTK"),f=n("qVdP")},sPtV:function(k,D,n){"use strict";n.d(D,"a",function(){return v});var y=n("q1tI"),p=n.n(y),x=n("hkKa");function v(m){var f=y.useRef(m),d=Object(x.a)();return[function(){return f.current},function(u){f.current=u,d()}]}},sRwP:function(k,D,n){n("jsU+"),n("2548"),n("Tp9H"),n("06DH"),n("dnwI"),n("fE02"),n("33Ds")},"sS/r":function(k,D,n){var y=n("4fz+"),p=n("iRjW"),x=n("Yl7c"),v=function(){this.group=new y,this.uid=p.getUID("viewComponent")};v.prototype={constructor:v,init:function(d,u){},render:function(d,u,o,i){},dispose:function(){},filterForExposedEvent:null};var m=v.prototype;m.updateView=m.updateLayout=m.updateVisual=function(d,u,o,i){},x.enableClassExtend(v),x.enableClassManagement(v,{registerWhenExtend:!0});var f=v;k.exports=f},"sW+o":function(k,D,n){var y=n("SrGk"),p=n("bYtY"),x=n("SUKs"),v=n("Qe9p");function m(d,u){y.call(this,d,u,["linearGradient","radialGradient"],"__gradient_in_use__")}p.inherits(m,y),m.prototype.addWithoutUpdate=function(d,u){if(u&&u.style){var o=this;p.each(["fill","stroke"],function(i){if(u.style[i]&&(u.style[i].type==="linear"||u.style[i].type==="radial")){var t=u.style[i],s=o.getDefs(!0),e;t._dom?(e=t._dom,s.contains(t._dom)||o.addDom(e)):e=o.add(t),o.markUsed(u);var l=e.getAttribute("id");d.setAttribute(i,"url(#"+l+")")}})}},m.prototype.add=function(d){var u;if(d.type==="linear")u=this.createElement("linearGradient");else if(d.type==="radial")u=this.createElement("radialGradient");else return x("Illegal gradient type."),null;return d.id=d.id||this.nextId++,u.setAttribute("id","zr"+this._zrId+"-gradient-"+d.id),this.updateDom(d,u),this.addDom(u),u},m.prototype.update=function(d){var u=this;y.prototype.update.call(this,d,function(){var o=d.type,i=d._dom.tagName;o==="linear"&&i==="linearGradient"||o==="radial"&&i==="radialGradient"?u.updateDom(d,d._dom):(u.removeDom(d),u.add(d))})},m.prototype.updateDom=function(d,u){if(d.type==="linear")u.setAttribute("x1",d.x),u.setAttribute("y1",d.y),u.setAttribute("x2",d.x2),u.setAttribute("y2",d.y2);else if(d.type==="radial")u.setAttribute("cx",d.x),u.setAttribute("cy",d.y),u.setAttribute("r",d.r);else{x("Illegal gradient type.");return}d.global?u.setAttribute("gradientUnits","userSpaceOnUse"):u.setAttribute("gradientUnits","objectBoundingBox"),u.innerHTML="";for(var o=d.colorStops,i=0,t=o.length;i<t;++i){var s=this.createElement("stop");s.setAttribute("offset",o[i].offset*100+"%");var e=o[i].color;if(e.indexOf("rgba">-1)){var l=v.parse(e)[3],r=v.toHex(e);s.setAttribute("stop-color","#"+r),s.setAttribute("stop-opacity",l)}else s.setAttribute("stop-color",o[i].color);u.appendChild(s)}d._dom=u},m.prototype.markUsed=function(d){if(d.style){var u=d.style.fill;u&&u._dom&&y.prototype.markUsed.call(this,u._dom),u=d.style.stroke,u&&u._dom&&y.prototype.markUsed.call(this,u._dom)}};var f=m;k.exports=f},sdST:function(k,D,n){var y=n("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})}k.exports=p},seXi:function(k,D,n){var y=n("qZTm"),p=1,x=Object.prototype,v=x.hasOwnProperty;function m(f,d,u,o,i,t){var s=u&p,e=y(f),l=e.length,r=y(d),a=r.length;if(l!=a&&!s)return!1;for(var c=l;c--;){var h=e[c];if(!(s?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 S=s;++c<l;){h=e[c];var E=f[h],C=d[h];if(o)var _=s?o(C,E,h,d,f,t):o(E,C,h,f,d,t);if(!(_===void 0?E===C||i(E,C,u,o,t):_)){b=!1;break}S||(S=h=="constructor")}if(b&&!S){var T=f.constructor,w=d.constructor;T!=w&&"constructor"in f&&"constructor"in d&&!(typeof T=="function"&&T instanceof T&&typeof w=="function"&&w instanceof w)&&(b=!1)}return t.delete(f),t.delete(d),b}k.exports=m},shjB:function(k,D){var n=9007199254740991;function y(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=n}k.exports=y},sjKO:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=x;var y=30,p=12;function x(v,m){var f,d,u,o,i,t,s,e,l,r,a,c,h,g,A,b,S,E,C,_,T,w,O,I,R;f=v.state,d=v.next_in,I=v.input,u=d+(v.avail_in-5),o=v.next_out,R=v.output,i=o-(m-v.avail_out),t=o+(v.avail_out-257),s=f.dmax,e=f.wsize,l=f.whave,r=f.wnext,a=f.window,c=f.hold,h=f.bits,g=f.lencode,A=f.distcode,b=(1<<f.lenbits)-1,S=(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)R[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&S];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>s){v.msg="invalid distance too far back",f.mode=y;break e}if(c>>>=C,h-=C,C=o-i,T>C){if(C=T-C,C>l&&f.sane){v.msg="invalid distance too far back",f.mode=y;break e}if(w=0,O=a,r===0){if(w+=e-C,C<_){_-=C;do R[o++]=a[w++];while(--C);w=o-T,O=R}}else if(r<C){if(w+=e+r-C,C-=r,C<_){_-=C;do R[o++]=a[w++];while(--C);if(w=0,r<_){C=r,_-=C;do R[o++]=a[w++];while(--C);w=o-T,O=R}}}else if(w+=r-C,C<_){_-=C;do R[o++]=a[w++];while(--C);w=o-T,O=R}for(;_>2;)R[o++]=O[w++],R[o++]=O[w++],R[o++]=O[w++],_-=3;_&&(R[o++]=O[w++],_>1&&(R[o++]=O[w++]))}else{w=o-T;do R[o++]=R[w++],R[o++]=R[w++],R[o++]=R[w++],_-=3;while(_>2);_&&(R[o++]=R[w++],_>1&&(R[o++]=R[w++]))}}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<u&&o<t);_=h>>3,d-=_,h-=_<<3,c&=(1<<h)-1,v.next_in=d,v.next_out=o,v.avail_in=d<u?5+(u-d):5-(d-u),v.avail_out=o<t?257+(t-o):257-(o-t),f.hold=c,f.bits=h;return}},szbU:function(k,D,n){var y=n("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 u=d.pieces;u&&y.isArray(u)&&p(u,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)}k.exports=x},t23M:function(k,D,n){"use strict";var y=n("wx14"),p=n("q1tI"),x=n("Zm9Q"),v=n("Kwbf"),m=n("VTBJ"),f=n("c+Xe"),d=n("m+aA"),u=n("bdgK"),o=new Map;function i(R){R.forEach(function(M){var B,P=M.target;(B=o.get(P))===null||B===void 0||B.forEach(function(X){return X(P)})})}var t=new u.default(i),s=null,e=null;function l(R,M){o.has(R)||(o.set(R,new Set),t.observe(R)),o.get(R).add(M)}function r(R,M){o.has(R)&&(o.get(R).delete(M),o.get(R).size||(t.unobserve(R),o.delete(R)))}var a=n("1OyB"),c=n("vuIU"),h=n("Ji7U"),g=n("LK+K"),A=function(R){Object(h.a)(B,R);var M=Object(g.a)(B);function B(){return Object(a.a)(this,B),M.apply(this,arguments)}return Object(c.a)(B,[{key:"render",value:function(){return this.props.children}}]),B}(p.Component),b=p.createContext(null);function S(R){var M=R.children,B=R.onBatchResize,P=p.useRef(0),X=p.useRef([]),F=p.useContext(b),j=p.useCallback(function(K,z,V){P.current+=1;var Q=P.current;X.current.push({size:K,element:z,data:V}),Promise.resolve().then(function(){Q===P.current&&(B==null||B(X.current),X.current=[])}),F==null||F(K,z,V)},[B,F]);return p.createElement(b.Provider,{value:j},M)}function E(R,M){var B=R.children,P=R.disabled,X=p.useRef(null),F=p.useRef(null),j=p.useContext(b),K=typeof B=="function",z=K?B(X):B,V=p.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Q=!K&&p.isValidElement(z)&&Object(f.c)(z),G=Q?z.ref:null,te=p.useMemo(function(){return Object(f.a)(G,X)},[G,X]),q=function(){return Object(d.a)(X.current)||Object(d.a)(F.current)};p.useImperativeHandle(M,function(){return q()});var le=p.useRef(R);le.current=R;var re=p.useCallback(function(we){var Ie=le.current,Me=Ie.onResize,Je=Ie.data,Ve=we.getBoundingClientRect(),ut=Ve.width,Fe=Ve.height,ae=we.offsetWidth,at=we.offsetHeight,he=Math.floor(ut),J=Math.floor(Fe);if(V.current.width!==he||V.current.height!==J||V.current.offsetWidth!==ae||V.current.offsetHeight!==at){var Y={width:he,height:J,offsetWidth:ae,offsetHeight:at};V.current=Y;var $=ae===Math.round(ut)?ut:ae,de=at===Math.round(Fe)?Fe:at,be=Object(m.a)(Object(m.a)({},Y),{},{offsetWidth:$,offsetHeight:de});j==null||j(be,we,Je),Me&&Promise.resolve().then(function(){Me(be,we)})}},[]);return p.useEffect(function(){var we=q();return we&&!P&&l(we,re),function(){return r(we,re)}},[X.current,P]),p.createElement(A,{ref:F},Q?p.cloneElement(z,{ref:te}):z)}var C=p.forwardRef(E),_=C,T="rc-observer-key";function w(R,M){var B=R.children,P=typeof B=="function"?[B]:Object(x.a)(B);return P.map(function(X,F){var j=(X==null?void 0:X.key)||"".concat(T,"-").concat(F);return p.createElement(_,Object(y.a)({},R,{key:j,ref:F===0?M:void 0}),X)})}var O=p.forwardRef(w);O.Collection=S;var I=D.a=O},t3Fx:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=Object.assign||function(a){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(a[g]=h[g])}return a},p=function(){function a(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&&a(c.prototype,h),g&&a(c,g),c}}(),x=n("q1tI"),v=t(x),m=n("17x9"),f=t(m),d=n("tkwv"),u=t(d),o=n("u3os"),i=n("kzFp");function t(a){return a&&a.__esModule?a:{default:a}}function s(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function")}function e(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:a}function l(a,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}var r=function(a){l(c,a);function c(h){s(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,S=A.onChartReady,E=g.renderEchartDom();g.bindEvents(E,b||{}),typeof S=="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 S=function(_,T){typeof _=="string"&&typeof T=="function"&&A.on(_,function(w){T(w,A)})};for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&S(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,u.default)(g.theme,this.props.theme)||!(0,u.default)(g.opts,this.props.opts)||!(0,u.default)(g.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var A=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if((0,u.default)((0,i.pick)(this.props,A),(0,i.pick)(g,A)))return;var b=this.renderEchartDom();if(!(0,u.default)(g.style,this.props.style)||!(0,u.default)(g.className,this.props.className))try{b.resize()}catch(S){console.warn(S)}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var g=this,A=this.props,b=A.style,S=A.className,E=y({height:300},b);return v.default.createElement("div",{ref:function(_){g.echartsElement=_},style:E,className:"echarts-for-react "+S})}}]),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(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("Qxkt"),v=n("Znkb"),m=n("+rIm"),f=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function d(t,s,e){s[1]>s[0]&&(s=s.slice().reverse());var l=t.coordToPoint([s[0],e]),r=t.coordToPoint([s[1],e]);return{x1:l[0],y1:l[1],x2:r[0],y2:r[1]}}function u(t){var s=t.getRadiusAxis();return s.inverse?0:1}function o(t){var s=t[0],e=t[t.length-1];s&&e&&Math.abs(Math.abs(s.coord-e.coord)-360)<1e-4&&t.pop()}var i=v.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,s){if(this.group.removeAll(),!t.get("show"))return;var e=t.axis,l=e.polar,r=l.getRadiusAxis().getExtent(),a=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(a),y.each(f,function(g){t.get(g+".show")&&(!e.scale.isBlank()||g==="axisLine")&&this["_"+g](t,l,a,c,r,h)},this)},_axisLine:function(t,s,e,l,r){var a=t.getModel("axisLine.lineStyle"),c=u(s),h=c?0:1,g;r[h]===0?g=new p.Circle({shape:{cx:s.cx,cy:s.cy,r:r[c]},style:a.getLineStyle(),z2:1,silent:!0}):g=new p.Ring({shape:{cx:s.cx,cy:s.cy,r:r[c],r0:r[h]},style:a.getLineStyle(),z2:1,silent:!0}),g.style.fill=null,this.group.add(g)},_axisTick:function(t,s,e,l,r){var a=t.getModel("axisTick"),c=(a.get("inside")?-1:1)*a.get("length"),h=r[u(s)],g=y.map(e,function(A){return new p.Line({shape:d(s,[h,h+c],A.coord)})});this.group.add(p.mergePath(g,{style:y.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_minorTick:function(t,s,e,l,r){if(!l.length)return;for(var a=t.getModel("axisTick"),c=t.getModel("minorTick"),h=(a.get("inside")?-1:1)*c.get("length"),g=r[u(s)],A=[],b=0;b<l.length;b++)for(var S=0;S<l[b].length;S++)A.push(new p.Line({shape:d(s,[g,g+h],l[b][S].coord)}));this.group.add(p.mergePath(A,{style:y.defaults(c.getModel("lineStyle").getLineStyle(),y.defaults(a.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}))}))},_axisLabel:function(t,s,e,l,r,a){var c=t.getCategories(!0),h=t.getModel("axisLabel"),g=h.get("margin"),A=t.get("triggerEvent");y.each(a,function(b,S){var E=h,C=b.tickValue,_=r[u(s)],T=s.coordToPoint([_+g,b.coord]),w=s.cx,O=s.cy,I=Math.abs(T[0]-w)/_<.3?"center":T[0]>w?"left":"right",R=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 M=new p.Text({silent:m.isLabelSilent(t)});this.group.add(M),p.setTextStyle(M.style,E,{x:T[0],y:T[1],textFill:E.getTextColor()||t.get("axisLine.lineStyle.color"),text:b.formattedLabel,textAlign:I,textVerticalAlign:R}),A&&(M.eventData=m.makeAxisEventDataBase(t),M.eventData.targetType="axisLabel",M.eventData.value=b.rawLabel)},this)},_splitLine:function(t,s,e,l,r){var a=t.getModel("splitLine"),c=a.getModel("lineStyle"),h=c.get("color"),g=0;h=h instanceof Array?h:[h];for(var A=[],b=0;b<e.length;b++){var S=g++%h.length;A[S]=A[S]||[],A[S].push(new p.Line({shape:d(s,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,s,e,l,r){if(!l.length)return;for(var a=t.getModel("minorSplitLine"),c=a.getModel("lineStyle"),h=[],g=0;g<l.length;g++)for(var A=0;A<l[g].length;A++)h.push(new p.Line({shape:d(s,r,l[g][A].coord)}));this.group.add(p.mergePath(h,{style:c.getLineStyle(),silent:!0,z:t.get("z")}))},_splitArea:function(t,s,e,l,r){if(!e.length)return;var a=t.getModel("splitArea"),c=a.getModel("areaStyle"),h=c.get("color"),g=0;h=h instanceof Array?h:[h];for(var A=[],b=Math.PI/180,S=-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 w=g++%h.length;A[w]=A[w]||[],A[w].push(new p.Sector({shape:{cx:s.cx,cy:s.cy,r0:E,r:C,startAngle:S,endAngle:-e[T].coord*b,clockwise:_},silent:!0})),S=-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}))}});k.exports=i},tMB7:function(k,D,n){var y=n("y1pI");function p(x){var v=this.__data__,m=y(v,x);return m<0?void 0:v[m][1]}k.exports=p},tSko:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("SRve")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="PlusOutlined";var i=v.forwardRef(o);D.default=i},tU7J:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("/qDX"),v=n.n(x),m=n("5Dmo"),f=n("5NDa")},tadb:function(k,D,n){var y=n("Cwc5"),p=n("Kz5y"),x=y(p,"DataView");k.exports=x},tceW:function(k,D,n){var y=n("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}};k.exports=x},tkwv:function(k,D,n){"use strict";var y=Array.isArray,p=Object.keys,x=Object.prototype.hasOwnProperty;k.exports=function v(m,f){if(m===f)return!0;if(m&&f&&typeof m=="object"&&typeof f=="object"){var d=y(m),u=y(f),o,i,t;if(d&&u){if(i=m.length,i!=f.length)return!1;for(o=i;o--!==0;)if(!v(m[o],f[o]))return!1;return!0}if(d!=u)return!1;var s=m instanceof Date,e=f instanceof Date;if(s!=e)return!1;if(s&&e)return m.getTime()==f.getTime();var l=m instanceof RegExp,r=f instanceof RegExp;if(l!=r)return!1;if(l&&r)return m.toString()==f.toString();var a=p(m);if(i=a.length,i!==p(f).length)return!1;for(o=i;o--!==0;)if(!x.call(f,a[o]))return!1;for(o=i;o--!==0;)if(t=a[o],!v(m[t],f[t]))return!1;return!0}return m!==m&&f!==f}},txkQ:function(k,D,n){var y=n("aX58");D.zrender=y;var p=n("Fofx");D.matrix=p;var x=n("QBsz");D.vector=x;var v=n("bYtY"),m=n("Qe9p");D.color=m;var f=n("IwbS"),d=n("OELB");D.number=d;var u=n("7aKB");D.format=u;var o=n("iLNv"),i=o.throttle;D.throttle=o.throttle;var t=n("FUi9");D.helper=t;var s=n("vafp");D.parseGeoJSON=s;var e=n("YXkt");D.List=e;var l=n("Qxkt");D.Model=l;var r=n("hM6l");D.Axis=r;var a=n("ItGF");D.env=a;var c=s,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(k,D,n){var y=n("6GrX"),p=n("OELB"),x=p.parsePercent,v=Math.PI/180;function m(o,i,t,s,e,l,r,a,c,h){o.sort(function(I,R){return I.y-R.y});function g(I,R,M,B){for(var P=I;P<R&&!(o[P].y+M>c+r);P++)if(o[P].y+=M,P>I&&P+1<R&&o[P+1].y>o[P].y+o[P].height){A(P,M/2);return}A(R-1,M/2)}function A(I,R){for(var M=I;M>=0&&!(o[M].y-R<c);M--)if(o[M].y-=R,M>0&&o[M].y>o[M-1].y+o[M-1].height)break}function b(I,R,M,B,P,X){for(var F=(X>0,R?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,G=z<P+V?Math.sqrt((P+V+Q)*(P+V+Q)-z*z):Math.abs(I[j].x-M);R&&G>=F&&(G=F-10),!R&&G<=F&&(G=F+10),I[j].x=M+G*X,F=G}}for(var S=0,E,C=o.length,_=[],T=[],w=0;w<C;w++){if(o[w].position==="outer"&&o[w].labelAlignTo==="labelLine"){var O=o[w].x-h;o[w].linePoints[1][0]+=O,o[w].x=h}E=o[w].y-S,E<0&&g(w,C,-E,e),S=o[w].y+o[w].height}r-S<0&&A(C-1,S-r);for(var w=0;w<C;w++)o[w].y>=t?T.push(o[w]):_.push(o[w]);b(_,!1,i,t,s,e),b(T,!0,i,t,s,e)}function f(o,i,t,s,e,l,r,a){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<i?(g=Math.min(g,o[b].x),c.push(o[b])):(A=Math.max(A,o[b].x),h.push(o[b]))}m(h,i,t,s,1,e,l,r,a,A),m(c,i,t,s,-1,e,l,r,a,g);for(var b=0;b<o.length;b++){var S=o[b];if(d(S))continue;var E=S.linePoints;if(E){var C=S.labelAlignTo==="edge",_=S.textRect.width,T;C?S.x<i?T=E[2][0]-S.labelDistance-r-S.labelMargin:T=r+e-S.labelMargin-E[2][0]-S.labelDistance:S.x<i?T=S.x-r-S.bleedMargin:T=r+e-S.x-S.bleedMargin,T<S.textRect.width&&(S.text=y.truncateText(S.text,T,S.font),S.labelAlignTo==="edge"&&(_=y.getWidth(S.text,S.font)));var w=E[1][0]-E[2][0];C?S.x<i?E[2][0]=r+S.labelMargin+_+S.labelDistance:E[2][0]=r+e-S.labelMargin-_-S.labelDistance:(S.x<i?E[2][0]=S.x+S.labelDistance:E[2][0]=S.x-S.labelDistance,E[1][0]=E[2][0]+w),E[1][1]=E[2][1]=S.y}}}function d(o){return o.position==="center"}function u(o,i,t,s,e,l){var r=o.getData(),a=[],c,h,g=!1,A=(o.get("minShowLabelAngle")||0)*v;r.each(function(b){var S=r.getItemLayout(b),E=r.getItemModel(b),C=E.getModel("label"),_=C.get("position")||E.get("emphasis.label.position"),T=C.get("distanceToLabelLine"),w=C.get("alignTo"),O=x(C.get("margin"),t),I=C.get("bleedMargin"),R=C.getFont(),M=E.getModel("labelLine"),B=M.get("length");B=x(B,t);var P=M.get("length2");if(P=x(P,t),S.angle<A)return;var X=(S.startAngle+S.endAngle)/2,F=Math.cos(X),j=Math.sin(X),K,z,V,Q;c=S.cx,h=S.cy;var G=o.getFormattedLabel(b,"normal")||r.getName(b),te=y.getBoundingRect(G,R,Q,"top"),q=_==="inside"||_==="inner";if(_==="center")K=S.cx,z=S.cy,Q="center";else{var le=(q?(S.r+S.r0)/2*F:S.r*F)+c,re=(q?(S.r+S.r0)/2*j:S.r*j)+h;if(K=le+F*3,z=re+j*3,!q){var we=le+F*(B+i-S.r),Ie=re+j*(B+i-S.r),Me=we+(F<0?-1:1)*P,Je=Ie;w==="edge"?K=F<0?e+O:e+t-O:K=Me+(F<0?-T:T),z=Je,V=[[le,re],[we,Ie],[Me,Je]]}Q=q?"center":w==="edge"?F>0?"right":"left":F>0?"left":"right"}var Ve,ut=C.get("rotate");typeof ut=="number"?Ve=ut*(Math.PI/180):Ve=ut?F<0?-X+Math.PI:-X:0,g=!!Ve,S.label={x:K,y:z,position:_,height:te.height,len:B,len2:P,linePoints:V,textAlign:Q,verticalAlign:"middle",rotation:Ve,inside:q,labelDistance:T,labelAlignTo:w,labelMargin:O,bleedMargin:I,textRect:te,text:G,font:R},q||a.push(S.label)}),!g&&o.get("avoidLabelOverlap")&&f(a,c,h,i,t,s,e,l)}k.exports=u},u3os:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ver=D.clear=D.bind=void 0;var y=n("P4Qj"),p=function(f,d){var u=(0,y.getSensor)(f);return u.bind(d),function(){u.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(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("Uc92")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="EyeOutlined";var i=v.forwardRef(o);D.default=i},u8Dt:function(k,D,n){var y=n("YESw"),p="__lodash_hash_undefined__",x=Object.prototype,v=x.hasOwnProperty;function m(f){var d=this.__data__;if(y){var u=d[f];return u===p?void 0:u}return v.call(d,f)?d[f]:void 0}k.exports=m},u9fO:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("b80e"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},uAnK:function(k,D,n){var y=n("bYtY"),p=n("Kagy"),x=n("KxfA"),v=x.retrieveRawValue;function m(f,d){var u=d.getModel("aria");if(u.get("show")){if(u.get("description")){f.setAttribute("aria-label",u.get("description"));return}}else return;var o=0;d.eachSeries(function(b,S){++o},this);var i=u.get("data.maxCount")||10,t=u.get("series.maxCount")||10,s=Math.min(o,t),e;if(o<1)return;var l=g();l?e=c(h("general.withTitle"),{title:l}):e=h("general.withoutTitle");var r=[],a=o>1?"series.multiple.prefix":"series.single.prefix";e+=c(h(a),{seriesCount:o}),d.eachSeries(function(b,S){if(S<s){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()>i?E+=c(h("data.partialData"),{displayCnt:i}):E+=h("data.allData");for(var w=[],O=0;O<T.count();O++)if(O<i){var I=T.getName(O),R=v(T,O);w.push(c(h(I?"data.withName":"data.withoutName"),{name:I,value:R}))}E+=w.join(h("data.separator.middle"))+h("data.separator.end"),r.push(E)}}),e+=r.join(h("series.multiple.separator.middle"))+h("series.multiple.separator.end"),f.setAttribute("aria-label",e);function c(b,S){if(typeof b!="string")return b;var E=b;return y.each(S,function(C,_){E=E.replace(new RegExp("\\{\\s*"+_+"\\s*\\}","g"),C)}),E}function h(b){var S=u.get(b);if(S==null){for(var E=b.split("."),C=p.aria,_=0;_<E.length;++_)C=C[E[_]];return C}else return S}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"}}k.exports=m},uGsb:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("MlIO"),n("1uat"))})(this,function(y){return function(){var p=y,x=p.x64,v=x.Word,m=x.WordArray,f=p.algo,d=f.SHA512,u=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 i=d._doFinalize.call(this);return i.sigBytes-=16,i}});p.SHA384=d._createHelper(u),p.HmacSHA384=d._createHmacHelper(u)}(),y.SHA384})},uGxW:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.NoPadding={pad:function(){},unpad:function(){}},y.pad.NoPadding})},uK0f:function(k,D,n){(function(y,p){k.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 u=m.filter(function(o){return x(o,d)})[0];if(!u)break;f.push(u),m=u[v.childrenKeyName]||[],d+=1}while(m.length>0);return f}return y})},uOyE:function(k,D,n){var y=n("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(k,D,n){k.exports=y;function y(){return n("gaXo"),{}}},uciX:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("wx14"),x=n("1OyB"),v=n("vuIU"),m=n("JX7q"),f=n("Ji7U"),d=n("LK+K"),u=n("rePB"),o=n("q1tI"),i=n("i8i4"),t=n.n(i),s=n("wgJM"),e=n("l4aY"),l=n("m+aA"),r=n("c+Xe"),a=n("zT1h"),c=n("QC+M"),h=n("TSYQ"),g=n.n(h);function A(ae,at,he){return he?ae[0]===at[0]:ae[0]===at[0]&&ae[1]===at[1]}function b(ae,at,he){var J=ae[at]||{};return Object(y.a)(Object(y.a)({},J),he)}function S(ae,at,he,J){for(var Y=he.points,$=Object.keys(ae),de=0;de<$.length;de+=1){var be=$[de];if(A(ae[be].points,Y,J))return"".concat(at,"-placement-").concat(be)}return""}var E=n("ODXe"),C=n("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=n("8XRh");function w(ae){var at=ae.prefixCls,he=ae.motion,J=ae.animation,Y=ae.transitionName;return he||(J?{motionName:"".concat(at,"-").concat(J)}:Y?{motionName:Y}:null)}function O(ae){var at=ae.prefixCls,he=ae.visible,J=ae.zIndex,Y=ae.mask,$=ae.maskMotion,de=ae.maskAnimation,be=ae.maskTransitionName;if(!Y)return null;var Ce={};return($||be||de)&&(Ce=Object(y.a)({motionAppear:!0},w({motion:$,prefixCls:at,transitionName:be,animation:de}))),o.createElement(T.b,Object(p.a)({},Ce,{visible:he,removeOnLeave:!0}),function(Be){var fe=Be.className;return o.createElement("div",{style:{zIndex:J},className:g()("".concat(at,"-mask"),fe)})})}var I=n("9mu1"),R=n("TNol"),M=n("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 at};var ae,at={},he=Object.prototype,J=he.hasOwnProperty,Y=Object.defineProperty||function(At,rr,ur){At[rr]=ur.value},$=typeof Symbol=="function"?Symbol:{},de=$.iterator||"@@iterator",be=$.asyncIterator||"@@asyncIterator",Ce=$.toStringTag||"@@toStringTag";function Be(At,rr,ur){return Object.defineProperty(At,rr,{value:ur,enumerable:!0,configurable:!0,writable:!0}),At[rr]}try{Be({},"")}catch(At){Be=function(ur,vn,Bt){return ur[vn]=Bt}}function fe(At,rr,ur,vn){var Bt=rr&&rr.prototype instanceof ir?rr:ir,sr=Object.create(Bt.prototype),Yt=new Ht(vn||[]);return Y(sr,"_invoke",{value:se(At,ur,Yt)}),sr}function Se(At,rr,ur){try{return{type:"normal",arg:At.call(rr,ur)}}catch(vn){return{type:"throw",arg:vn}}}at.wrap=fe;var ke="suspendedStart",rt="suspendedYield",xt="executing",ht="completed",He={};function ir(){}function ct(){}function Xt(){}var hr={};Be(hr,de,function(){return this});var Jt=Object.getPrototypeOf,Pt=Jt&&Jt(Jt(yr([])));Pt&&Pt!==he&&J.call(Pt,de)&&(hr=Pt);var Wt=Xt.prototype=ir.prototype=Object.create(hr);function Ge(At){["next","throw","return"].forEach(function(rr){Be(At,rr,function(ur){return this._invoke(rr,ur)})})}function pe(At,rr){function ur(Bt,sr,Yt,pt){var it=Se(At[Bt],At,sr);if(it.type!=="throw"){var Fr=it.arg,cn=Fr.value;return cn&&Object(M.a)(cn)=="object"&&J.call(cn,"__await")?rr.resolve(cn.__await).then(function(_n){ur("next",_n,Yt,pt)},function(_n){ur("throw",_n,Yt,pt)}):rr.resolve(cn).then(function(_n){Fr.value=_n,Yt(Fr)},function(_n){return ur("throw",_n,Yt,pt)})}pt(it.arg)}var vn;Y(this,"_invoke",{value:function(sr,Yt){function pt(){return new rr(function(it,Fr){ur(sr,Yt,it,Fr)})}return vn=vn?vn.then(pt,pt):pt()}})}function se(At,rr,ur){var vn=ke;return function(Bt,sr){if(vn===xt)throw new Error("Generator is already running");if(vn===ht){if(Bt==="throw")throw sr;return{value:ae,done:!0}}for(ur.method=Bt,ur.arg=sr;;){var Yt=ur.delegate;if(Yt){var pt=lt(Yt,ur);if(pt){if(pt===He)continue;return pt}}if(ur.method==="next")ur.sent=ur._sent=ur.arg;else if(ur.method==="throw"){if(vn===ke)throw vn=ht,ur.arg;ur.dispatchException(ur.arg)}else ur.method==="return"&&ur.abrupt("return",ur.arg);vn=xt;var it=Se(At,rr,ur);if(it.type==="normal"){if(vn=ur.done?ht:rt,it.arg===He)continue;return{value:it.arg,done:ur.done}}it.type==="throw"&&(vn=ht,ur.method="throw",ur.arg=it.arg)}}}function lt(At,rr){var ur=rr.method,vn=At.iterator[ur];if(vn===ae)return rr.delegate=null,ur==="throw"&&At.iterator.return&&(rr.method="return",rr.arg=ae,lt(At,rr),rr.method==="throw")||ur!=="return"&&(rr.method="throw",rr.arg=new TypeError("The iterator does not provide a '"+ur+"' method")),He;var Bt=Se(vn,At.iterator,rr.arg);if(Bt.type==="throw")return rr.method="throw",rr.arg=Bt.arg,rr.delegate=null,He;var sr=Bt.arg;return sr?sr.done?(rr[At.resultName]=sr.value,rr.next=At.nextLoc,rr.method!=="return"&&(rr.method="next",rr.arg=ae),rr.delegate=null,He):sr:(rr.method="throw",rr.arg=new TypeError("iterator result is not an object"),rr.delegate=null,He)}function qe(At){var rr={tryLoc:At[0]};1 in At&&(rr.catchLoc=At[1]),2 in At&&(rr.finallyLoc=At[2],rr.afterLoc=At[3]),this.tryEntries.push(rr)}function me(At){var rr=At.completion||{};rr.type="normal",delete rr.arg,At.completion=rr}function Ht(At){this.tryEntries=[{tryLoc:"root"}],At.forEach(qe,this),this.reset(!0)}function yr(At){if(At||At===""){var rr=At[de];if(rr)return rr.call(At);if(typeof At.next=="function")return At;if(!isNaN(At.length)){var ur=-1,vn=function Bt(){for(;++ur<At.length;)if(J.call(At,ur))return Bt.value=At[ur],Bt.done=!1,Bt;return Bt.value=ae,Bt.done=!0,Bt};return vn.next=vn}}throw new TypeError(Object(M.a)(At)+" is not iterable")}return ct.prototype=Xt,Y(Wt,"constructor",{value:Xt,configurable:!0}),Y(Xt,"constructor",{value:ct,configurable:!0}),ct.displayName=Be(Xt,Ce,"GeneratorFunction"),at.isGeneratorFunction=function(At){var rr=typeof At=="function"&&At.constructor;return!!rr&&(rr===ct||(rr.displayName||rr.name)==="GeneratorFunction")},at.mark=function(At){return Object.setPrototypeOf?Object.setPrototypeOf(At,Xt):(At.__proto__=Xt,Be(At,Ce,"GeneratorFunction")),At.prototype=Object.create(Wt),At},at.awrap=function(At){return{__await:At}},Ge(pe.prototype),Be(pe.prototype,be,function(){return this}),at.AsyncIterator=pe,at.async=function(At,rr,ur,vn,Bt){Bt===void 0&&(Bt=Promise);var sr=new pe(fe(At,rr,ur,vn),Bt);return at.isGeneratorFunction(rr)?sr:sr.next().then(function(Yt){return Yt.done?Yt.value:sr.next()})},Ge(Wt),Be(Wt,Ce,"Generator"),Be(Wt,de,function(){return this}),Be(Wt,"toString",function(){return"[object Generator]"}),at.keys=function(At){var rr=Object(At),ur=[];for(var vn in rr)ur.push(vn);return ur.reverse(),function Bt(){for(;ur.length;){var sr=ur.pop();if(sr in rr)return Bt.value=sr,Bt.done=!1,Bt}return Bt.done=!0,Bt}},at.values=yr,Ht.prototype={constructor:Ht,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 vn(Fr,cn){return Yt.type="throw",Yt.arg=rr,ur.next=Fr,cn&&(ur.method="next",ur.arg=ae),!!cn}for(var Bt=this.tryEntries.length-1;Bt>=0;--Bt){var sr=this.tryEntries[Bt],Yt=sr.completion;if(sr.tryLoc==="root")return vn("end");if(sr.tryLoc<=this.prev){var pt=J.call(sr,"catchLoc"),it=J.call(sr,"finallyLoc");if(pt&&it){if(this.prev<sr.catchLoc)return vn(sr.catchLoc,!0);if(this.prev<sr.finallyLoc)return vn(sr.finallyLoc)}else if(pt){if(this.prev<sr.catchLoc)return vn(sr.catchLoc,!0)}else{if(!it)throw new Error("try statement without catch or finally");if(this.prev<sr.finallyLoc)return vn(sr.finallyLoc)}}}},abrupt:function(rr,ur){for(var vn=this.tryEntries.length-1;vn>=0;--vn){var Bt=this.tryEntries[vn];if(Bt.tryLoc<=this.prev&&J.call(Bt,"finallyLoc")&&this.prev<Bt.finallyLoc){var sr=Bt;break}}sr&&(rr==="break"||rr==="continue")&&sr.tryLoc<=ur&&ur<=sr.finallyLoc&&(sr=null);var Yt=sr?sr.completion:{};return Yt.type=rr,Yt.arg=ur,sr?(this.method="next",this.next=sr.finallyLoc,He):this.complete(Yt)},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),He},finish:function(rr){for(var ur=this.tryEntries.length-1;ur>=0;--ur){var vn=this.tryEntries[ur];if(vn.finallyLoc===rr)return this.complete(vn.completion,vn.afterLoc),me(vn),He}},catch:function(rr){for(var ur=this.tryEntries.length-1;ur>=0;--ur){var vn=this.tryEntries[ur];if(vn.tryLoc===rr){var Bt=vn.completion;if(Bt.type==="throw"){var sr=Bt.arg;me(vn)}return sr}}throw new Error("illegal catch attempt")},delegateYield:function(rr,ur,vn){return this.delegate={iterator:yr(rr),resultName:ur,nextLoc:vn},this.method==="next"&&(this.arg=ae),He}},at}var P=n("HaE+"),X=n("dm2S"),F=["measure","alignPre","align",null,"motion"],j=function(ae,at){var he=Object(X.a)(null),J=Object(E.a)(he,2),Y=J[0],$=J[1],de=Object(o.useRef)();function be(fe){$(fe,!0)}function Ce(){s.a.cancel(de.current)}function Be(fe){Ce(),de.current=Object(s.a)(function(){be(function(Se){switch(Y){case"align":return"motion";case"motion":return"stable";default:}return Se}),fe==null||fe()})}return Object(o.useEffect)(function(){be("measure")},[ae]),Object(o.useEffect)(function(){switch(Y){case"measure":at();break;default:}Y&&(de.current=Object(s.a)(Object(P.a)(B().mark(function fe(){var Se,ke;return B().wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:Se=F.indexOf(Y),ke=F[Se+1],ke&&Se!==-1&&be(ke);case 3:case"end":return xt.stop()}},fe)}))))},[Y]),Object(o.useEffect)(function(){return function(){Ce()}},[]),[Y,Be]},K=function(ae){var at=o.useState({width:0,height:0}),he=Object(E.a)(at,2),J=he[0],Y=he[1];function $(be){var Ce=be.offsetWidth,Be=be.offsetHeight,fe=be.getBoundingClientRect(),Se=fe.width,ke=fe.height;Math.abs(Ce-Se)<1&&Math.abs(Be-ke)<1&&(Ce=Se,Be=ke),Y({width:Ce,height:Be})}var de=o.useMemo(function(){var be={};if(ae){var Ce=J.width,Be=J.height;ae.indexOf("height")!==-1&&Be?be.height=Be:ae.indexOf("minHeight")!==-1&&Be&&(be.minHeight=Be),ae.indexOf("width")!==-1&&Ce?be.width=Ce:ae.indexOf("minWidth")!==-1&&Ce&&(be.minWidth=Ce)}return be},[ae,J]);return[de,$]},z=o.forwardRef(function(ae,at){var he=ae.visible,J=ae.prefixCls,Y=ae.className,$=ae.style,de=ae.children,be=ae.zIndex,Ce=ae.stretch,Be=ae.destroyPopupOnHide,fe=ae.forceRender,Se=ae.align,ke=ae.point,rt=ae.getRootDomNode,xt=ae.getClassNameFromAlign,ht=ae.onAlign,He=ae.onMouseEnter,ir=ae.onMouseLeave,ct=ae.onMouseDown,Xt=ae.onTouchStart,hr=ae.onClick,Jt=Object(o.useRef)(),Pt=Object(o.useRef)(),Wt=Object(o.useState)(),Ge=Object(E.a)(Wt,2),pe=Ge[0],se=Ge[1],lt=K(Ce),qe=Object(E.a)(lt,2),me=qe[0],Ht=qe[1];function yr(){Ce&&Ht(rt())}var At=j(he,yr),rr=Object(E.a)(At,2),ur=rr[0],vn=rr[1],Bt=Object(o.useState)(0),sr=Object(E.a)(Bt,2),Yt=sr[0],pt=sr[1],it=Object(o.useRef)();Object(R.a)(function(){ur==="alignPre"&&pt(0)},[ur]);function Fr(){return ke||rt}function cn(){var Ct;(Ct=Jt.current)===null||Ct===void 0||Ct.forceAlign()}function _n(Ct,Re){var De=xt(Re);pe!==De&&se(De),pt(function(Pe){return Pe+1}),ur==="align"&&(ht==null||ht(Ct,Re))}Object(R.a)(function(){ur==="align"&&(Yt<3?cn():vn(function(){var Ct;(Ct=it.current)===null||Ct===void 0||Ct.call(it)}))},[Yt]);var Kn=Object(y.a)({},w(ae));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Ct){var Re=Kn[Ct];Kn[Ct]=function(De,Pe){return vn(),Re==null?void 0:Re(De,Pe)}});function gi(){return new Promise(function(Ct){it.current=Ct})}o.useEffect(function(){!Kn.motionName&&ur==="motion"&&vn()},[Kn.motionName,ur]),o.useImperativeHandle(at,function(){return{forceAlign:cn,getElement:function(){return Pt.current}}});var Mn=Object(y.a)(Object(y.a)({},me),{},{zIndex:be,opacity:ur==="motion"||ur==="stable"||!he?void 0:0,pointerEvents:!he&&ur!=="stable"?"none":void 0},$),Un=!0;Se!=null&&Se.points&&(ur==="align"||ur==="stable")&&(Un=!1);var $t=de;return o.Children.count(de)>1&&($t=o.createElement("div",{className:"".concat(J,"-content")},de)),o.createElement(T.b,Object(p.a)({visible:he,ref:Pt,leavedClassName:"".concat(J,"-hidden")},Kn,{onAppearPrepare:gi,onEnterPrepare:gi,removeOnLeave:Be,forceRender:fe}),function(Ct,Re){var De=Ct.className,Pe=Ct.style,et=g()(J,Y,pe,De);return o.createElement(I.a,{target:Fr(),key:"popup",ref:Jt,monitorWindowResize:!0,disabled:Un,align:Se,onAlign:_n},o.createElement("div",{ref:Re,className:et,onMouseEnter:He,onMouseLeave:ir,onMouseDownCapture:ct,onTouchStartCapture:Xt,onClick:hr,style:Object(y.a)(Object(y.a)({},Pe),Mn)},$t))})});z.displayName="PopupInner";var V=z,Q=o.forwardRef(function(ae,at){var he=ae.prefixCls,J=ae.visible,Y=ae.zIndex,$=ae.children,de=ae.mobile;de=de===void 0?{}:de;var be=de.popupClassName,Ce=de.popupStyle,Be=de.popupMotion,fe=Be===void 0?{}:Be,Se=de.popupRender,ke=ae.onClick,rt=o.useRef();o.useImperativeHandle(at,function(){return{forceAlign:function(){},getElement:function(){return rt.current}}});var xt=Object(y.a)({zIndex:Y},Ce),ht=$;return o.Children.count($)>1&&(ht=o.createElement("div",{className:"".concat(he,"-content")},$)),Se&&(ht=Se(ht)),o.createElement(T.b,Object(p.a)({visible:J,ref:rt,removeOnLeave:!0},fe),function(He,ir){var ct=He.className,Xt=He.style,hr=g()(he,be,ct);return o.createElement("div",{ref:ir,className:hr,onClick:ke,style:Object(y.a)(Object(y.a)({},Xt),xt)},ht)})});Q.displayName="MobilePopupInner";var G=Q,te=["visible","mobile"],q=o.forwardRef(function(ae,at){var he=ae.visible,J=ae.mobile,Y=Object(C.a)(ae,te),$=Object(o.useState)(he),de=Object(E.a)($,2),be=de[0],Ce=de[1],Be=Object(o.useState)(!1),fe=Object(E.a)(Be,2),Se=fe[0],ke=fe[1],rt=Object(y.a)(Object(y.a)({},Y),{},{visible:be});Object(o.useEffect)(function(){Ce(he),he&&J&&ke(_())},[he,J]);var xt=Se?o.createElement(G,Object(p.a)({},rt,{mobile:J,ref:at})):o.createElement(V,Object(p.a)({},rt,{ref:at}));return o.createElement("div",null,o.createElement(O,rt),xt)});q.displayName="Popup";var le=q,re=o.createContext(null),we=re;function Ie(){}function Me(){return""}function Je(ae){return ae?ae.ownerDocument:window.document}var Ve=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ut(ae){var at=function(he){Object(f.a)(Y,he);var J=Object(d.a)(Y);function Y($){var de;Object(x.a)(this,Y),de=J.call(this,$),Object(u.a)(Object(m.a)(de),"popupRef",o.createRef()),Object(u.a)(Object(m.a)(de),"triggerRef",o.createRef()),Object(u.a)(Object(m.a)(de),"portalContainer",void 0),Object(u.a)(Object(m.a)(de),"attachId",void 0),Object(u.a)(Object(m.a)(de),"clickOutsideHandler",void 0),Object(u.a)(Object(m.a)(de),"touchOutsideHandler",void 0),Object(u.a)(Object(m.a)(de),"contextMenuOutsideHandler1",void 0),Object(u.a)(Object(m.a)(de),"contextMenuOutsideHandler2",void 0),Object(u.a)(Object(m.a)(de),"mouseDownTimeout",void 0),Object(u.a)(Object(m.a)(de),"focusTime",void 0),Object(u.a)(Object(m.a)(de),"preClickTime",void 0),Object(u.a)(Object(m.a)(de),"preTouchTime",void 0),Object(u.a)(Object(m.a)(de),"delayTimer",void 0),Object(u.a)(Object(m.a)(de),"hasPopupMouseDown",void 0),Object(u.a)(Object(m.a)(de),"onMouseEnter",function(Ce){var Be=de.props.mouseEnterDelay;de.fireEvents("onMouseEnter",Ce),de.delaySetPopupVisible(!0,Be,Be?null:Ce)}),Object(u.a)(Object(m.a)(de),"onMouseMove",function(Ce){de.fireEvents("onMouseMove",Ce),de.setPoint(Ce)}),Object(u.a)(Object(m.a)(de),"onMouseLeave",function(Ce){de.fireEvents("onMouseLeave",Ce),de.delaySetPopupVisible(!1,de.props.mouseLeaveDelay)}),Object(u.a)(Object(m.a)(de),"onPopupMouseEnter",function(){de.clearDelayTimer()}),Object(u.a)(Object(m.a)(de),"onPopupMouseLeave",function(Ce){var Be;if(Ce.relatedTarget&&!Ce.relatedTarget.setTimeout&&Object(e.a)((Be=de.popupRef.current)===null||Be===void 0?void 0:Be.getElement(),Ce.relatedTarget))return;de.delaySetPopupVisible(!1,de.props.mouseLeaveDelay)}),Object(u.a)(Object(m.a)(de),"onFocus",function(Ce){de.fireEvents("onFocus",Ce),de.clearDelayTimer(),de.isFocusToShow()&&(de.focusTime=Date.now(),de.delaySetPopupVisible(!0,de.props.focusDelay))}),Object(u.a)(Object(m.a)(de),"onMouseDown",function(Ce){de.fireEvents("onMouseDown",Ce),de.preClickTime=Date.now()}),Object(u.a)(Object(m.a)(de),"onTouchStart",function(Ce){de.fireEvents("onTouchStart",Ce),de.preTouchTime=Date.now()}),Object(u.a)(Object(m.a)(de),"onBlur",function(Ce){de.fireEvents("onBlur",Ce),de.clearDelayTimer(),de.isBlurToHide()&&de.delaySetPopupVisible(!1,de.props.blurDelay)}),Object(u.a)(Object(m.a)(de),"onContextMenu",function(Ce){Ce.preventDefault(),de.fireEvents("onContextMenu",Ce),de.setPopupVisible(!0,Ce)}),Object(u.a)(Object(m.a)(de),"onContextMenuClose",function(){de.isContextMenuToShow()&&de.close()}),Object(u.a)(Object(m.a)(de),"onClick",function(Ce){if(de.fireEvents("onClick",Ce),de.focusTime){var Be;if(de.preClickTime&&de.preTouchTime?Be=Math.min(de.preClickTime,de.preTouchTime):de.preClickTime?Be=de.preClickTime:de.preTouchTime&&(Be=de.preTouchTime),Math.abs(Be-de.focusTime)<20)return;de.focusTime=0}de.preClickTime=0,de.preTouchTime=0,de.isClickToShow()&&(de.isClickToHide()||de.isBlurToHide())&&Ce&&Ce.preventDefault&&Ce.preventDefault();var fe=!de.state.popupVisible;(de.isClickToHide()&&!fe||fe&&de.isClickToShow())&&de.setPopupVisible(!de.state.popupVisible,Ce)}),Object(u.a)(Object(m.a)(de),"onPopupMouseDown",function(){if(de.hasPopupMouseDown=!0,clearTimeout(de.mouseDownTimeout),de.mouseDownTimeout=window.setTimeout(function(){de.hasPopupMouseDown=!1},0),de.context){var Ce;(Ce=de.context).onPopupMouseDown.apply(Ce,arguments)}}),Object(u.a)(Object(m.a)(de),"onDocumentClick",function(Ce){if(de.props.mask&&!de.props.maskClosable)return;var Be=Ce.target,fe=de.getRootDomNode(),Se=de.getPopupDomNode();(!Object(e.a)(fe,Be)||de.isContextMenuOnly())&&!Object(e.a)(Se,Be)&&!de.hasPopupMouseDown&&de.close()}),Object(u.a)(Object(m.a)(de),"getRootDomNode",function(){var Ce=de.props.getTriggerDOMNode;if(Ce)return Ce(de.triggerRef.current);try{var Be=Object(l.a)(de.triggerRef.current);if(Be)return Be}catch(fe){}return t.a.findDOMNode(Object(m.a)(de))}),Object(u.a)(Object(m.a)(de),"getPopupClassNameFromAlign",function(Ce){var Be=[],fe=de.props,Se=fe.popupPlacement,ke=fe.builtinPlacements,rt=fe.prefixCls,xt=fe.alignPoint,ht=fe.getPopupClassNameFromAlign;return Se&&ke&&Be.push(S(ke,rt,Ce,xt)),ht&&Be.push(ht(Ce)),Be.join(" ")}),Object(u.a)(Object(m.a)(de),"getComponent",function(){var Ce=de.props,Be=Ce.prefixCls,fe=Ce.destroyPopupOnHide,Se=Ce.popupClassName,ke=Ce.onPopupAlign,rt=Ce.popupMotion,xt=Ce.popupAnimation,ht=Ce.popupTransitionName,He=Ce.popupStyle,ir=Ce.mask,ct=Ce.maskAnimation,Xt=Ce.maskTransitionName,hr=Ce.maskMotion,Jt=Ce.zIndex,Pt=Ce.popup,Wt=Ce.stretch,Ge=Ce.alignPoint,pe=Ce.mobile,se=Ce.forceRender,lt=Ce.onPopupClick,qe=de.state,me=qe.popupVisible,Ht=qe.point,yr=de.getPopupAlign(),At={};return de.isMouseEnterToShow()&&(At.onMouseEnter=de.onPopupMouseEnter),de.isMouseLeaveToHide()&&(At.onMouseLeave=de.onPopupMouseLeave),At.onMouseDown=de.onPopupMouseDown,At.onTouchStart=de.onPopupMouseDown,o.createElement(le,Object(p.a)({prefixCls:Be,destroyPopupOnHide:fe,visible:me,point:Ge&&Ht,className:Se,align:yr,onAlign:ke,animation:xt,getClassNameFromAlign:de.getPopupClassNameFromAlign},At,{stretch:Wt,getRootDomNode:de.getRootDomNode,style:He,mask:ir,zIndex:Jt,transitionName:ht,maskAnimation:ct,maskTransitionName:Xt,maskMotion:hr,ref:de.popupRef,motion:rt,mobile:pe,forceRender:se,onClick:lt}),typeof Pt=="function"?Pt():Pt)}),Object(u.a)(Object(m.a)(de),"attachParent",function(Ce){s.a.cancel(de.attachId);var Be=de.props,fe=Be.getPopupContainer,Se=Be.getDocument,ke=de.getRootDomNode(),rt;fe?(ke||fe.length===0)&&(rt=fe(ke)):rt=Se(de.getRootDomNode()).body,rt?rt.appendChild(Ce):de.attachId=Object(s.a)(function(){de.attachParent(Ce)})}),Object(u.a)(Object(m.a)(de),"getContainer",function(){if(!de.portalContainer){var Ce=de.props.getDocument,Be=Ce(de.getRootDomNode()).createElement("div");Be.style.position="absolute",Be.style.top="0",Be.style.left="0",Be.style.width="100%",de.portalContainer=Be}return de.attachParent(de.portalContainer),de.portalContainer}),Object(u.a)(Object(m.a)(de),"setPoint",function(Ce){var Be=de.props.alignPoint;if(!Be||!Ce)return;de.setState({point:{pageX:Ce.pageX,pageY:Ce.pageY}})}),Object(u.a)(Object(m.a)(de),"handlePortalUpdate",function(){de.state.prevPopupVisible!==de.state.popupVisible&&de.props.afterPopupVisibleChange(de.state.popupVisible)}),Object(u.a)(Object(m.a)(de),"triggerContextValue",{onPopupMouseDown:de.onPopupMouseDown});var be;return"popupVisible"in $?be=!!$.popupVisible:be=!!$.defaultPopupVisible,de.state={prevPopupVisible:be,popupVisible:be},Ve.forEach(function(Ce){de["fire".concat(Ce)]=function(Be){de.fireEvents(Ce,Be)}}),de}return Object(v.a)(Y,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var de=this.props,be=this.state;if(be.popupVisible){var Ce;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ce=de.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(a.a)(Ce,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ce=Ce||de.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(a.a)(Ce,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ce=Ce||de.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(a.a)(Ce,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(a.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),s.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var de;return((de=this.popupRef.current)===null||de===void 0?void 0:de.getElement())||null}},{key:"getPopupAlign",value:function(){var de=this.props,be=de.popupPlacement,Ce=de.popupAlign,Be=de.builtinPlacements;return be&&Be?b(Be,be,Ce):Ce}},{key:"setPopupVisible",value:function(de,be){var Ce=this.props.alignPoint,Be=this.state.popupVisible;this.clearDelayTimer(),Be!==de&&("popupVisible"in this.props||this.setState({popupVisible:de,prevPopupVisible:Be}),this.props.onPopupVisibleChange(de)),Ce&&be&&de&&this.setPoint(be)}},{key:"delaySetPopupVisible",value:function(de,be,Ce){var Be=this,fe=be*1e3;if(this.clearDelayTimer(),fe){var Se=Ce?{pageX:Ce.pageX,pageY:Ce.pageY}:null;this.delayTimer=window.setTimeout(function(){Be.setPopupVisible(de,Se),Be.clearDelayTimer()},fe)}else this.setPopupVisible(de,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(de){var be=this.props.children.props,Ce=this.props;return be[de]&&Ce[de]?this["fire".concat(de)]:be[de]||Ce[de]}},{key:"isClickToShow",value:function(){var de=this.props,be=de.action,Ce=de.showAction;return be.indexOf("click")!==-1||Ce.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var de=this.props.action;return de==="contextMenu"||de.length===1&&de[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var de=this.props,be=de.action,Ce=de.showAction;return be.indexOf("contextMenu")!==-1||Ce.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var de=this.props,be=de.action,Ce=de.hideAction;return be.indexOf("click")!==-1||Ce.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var de=this.props,be=de.action,Ce=de.showAction;return be.indexOf("hover")!==-1||Ce.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var de=this.props,be=de.action,Ce=de.hideAction;return be.indexOf("hover")!==-1||Ce.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var de=this.props,be=de.action,Ce=de.showAction;return be.indexOf("focus")!==-1||Ce.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var de=this.props,be=de.action,Ce=de.hideAction;return be.indexOf("focus")!==-1||Ce.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var de;(de=this.popupRef.current)===null||de===void 0||de.forceAlign()}}},{key:"fireEvents",value:function(de,be){var Ce=this.props.children.props[de];Ce&&Ce(be);var Be=this.props[de];Be&&Be(be)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var de=this.state.popupVisible,be=this.props,Ce=be.children,Be=be.forceRender,fe=be.alignPoint,Se=be.className,ke=be.autoDestroy,rt=o.Children.only(Ce),xt={key:"trigger"};this.isContextMenuToShow()?xt.onContextMenu=this.onContextMenu:xt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(xt.onClick=this.onClick,xt.onMouseDown=this.onMouseDown,xt.onTouchStart=this.onTouchStart):(xt.onClick=this.createTwoChains("onClick"),xt.onMouseDown=this.createTwoChains("onMouseDown"),xt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(xt.onMouseEnter=this.onMouseEnter,fe&&(xt.onMouseMove=this.onMouseMove)):xt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?xt.onMouseLeave=this.onMouseLeave:xt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(xt.onFocus=this.onFocus,xt.onBlur=this.onBlur):(xt.onFocus=this.createTwoChains("onFocus"),xt.onBlur=this.createTwoChains("onBlur"));var ht=g()(rt&&rt.props&&rt.props.className,Se);ht&&(xt.className=ht);var He=Object(y.a)({},xt);Object(r.c)(rt)&&(He.ref=Object(r.a)(this.triggerRef,rt.ref));var ir=o.cloneElement(rt,He),ct;return(de||this.popupRef.current||Be)&&(ct=o.createElement(ae,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!de&&ke&&(ct=null),o.createElement(we.Provider,{value:this.triggerContextValue},ir,ct)}}],[{key:"getDerivedStateFromProps",value:function(de,be){var Ce=de.popupVisible,Be={};return Ce!==void 0&&be.popupVisible!==Ce&&(Be.popupVisible=Ce,Be.prevPopupVisible=be.popupVisible),Be}}]),Y}(o.Component);return Object(u.a)(at,"contextType",we),Object(u.a)(at,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Me,getDocument:Je,onPopupVisibleChange:Ie,afterPopupVisibleChange:Ie,onPopupAlign:Ie,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),at}var Fe=D.a=ut(c.a)},ugBc:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};D.default=y},v56E:function(k,D,n){},v5uJ:function(k,D,n){var y=n("ProS"),p=n("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,u=f.getData().tree,o=u.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,u=x(d,v);f.setCenter&&f.setCenter(u.center),f.setZoom&&f.setZoom(u.zoom)})})},"vF/C":function(k,D,n){var y=n("bLfw");y.registerSubTypeDefaulter("visualMap",function(p){return!p.categories&&(!(p.pieces?p.pieces.length>0:p.splitNumber>0)||p.calculable)?"continuous":"piecewise"})},vKoX:function(k,D,n){var y=n("SrGk"),p=n("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 u;if(d._shadowDom){u=d._shadowDom;var o=this.getDefs(!0);o.contains(d._shadowDom)||this.addDom(u)}else u=this.add(d);this.markUsed(d);var i=u.getAttribute("id");f.style.filter="url(#"+i+")"}},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 u=d.style;if(v(u)){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 u=d.getElementsByTagName("feDropShadow");u.length===0?u=this.createElement("feDropShadow"):u=u[0];var o=f.style,i=f.scale&&f.scale[0]||1,t=f.scale&&f.scale[1]||1,s,e,l,r;if(o.shadowBlur||o.shadowOffsetX||o.shadowOffsetY)s=o.shadowOffsetX||0,e=o.shadowOffsetY||0,l=o.shadowBlur,r=o.shadowColor;else if(o.textShadowBlur)s=o.textShadowOffsetX||0,e=o.textShadowOffsetY||0,l=o.textShadowBlur,r=o.textShadowColor;else{this.removeDom(d,o);return}u.setAttribute("dx",s/i),u.setAttribute("dy",e/t),u.setAttribute("flood-color",r);var a=l/2/i,c=l/2/t,h=a+" "+c;u.setAttribute("stdDeviation",h),d.setAttribute("x","-100%"),d.setAttribute("y","-100%"),d.setAttribute("width",Math.ceil(l/2*200)+"%"),d.setAttribute("height",Math.ceil(l/2*200)+"%"),d.appendChild(u),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;k.exports=m},vL6D:function(k,D,n){var y=n("bYtY"),p=n("+rIm"),x=n("IwbS"),v=n("7bkD"),m=n("Znkb"),f=n("WN+l"),d=f.rectCoordAxisBuildSplitArea,u=f.rectCoordAxisHandleRemove,o=["axisLine","axisTickLabel","axisName"],i=["splitArea","splitLine"],t=m.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,l,r,a){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(i,function(b){e.get(b+".show")&&this["_"+b](e)},this),x.groupTransition(h,this._axisGroup,e),t.superCall(this,"render",e,l,r,a)},remove:function(){u(this)},_splitLine:function(e){var l=e.axis;if(l.scale.isBlank())return;var r=e.getModel("splitLine"),a=r.getModel("lineStyle"),c=a.get("width"),h=a.get("color");h=h instanceof Array?h:[h];for(var g=e.coordinateSystem.getRect(),A=l.isHorizontal(),b=[],S=0,E=l.getTicksCoords({tickModel:r}),C=[],_=[],T=0;T<E.length;++T){var w=l.toGlobalCoord(E[T].coord);A?(C[0]=w,C[1]=g.y,_[0]=w,_[1]=g.y+g.height):(C[0]=g.x,C[1]=w,_[0]=g.x+g.width,_[1]=w);var O=S++%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:a.getLineDash(c),lineWidth:c},silent:!0}))},_splitArea:function(e){d(this,this._axisGroup,e,e)}}),s=t;k.exports=s},vWvF:function(k,D,n){var y=n("Bq2U"),p=n("SUKs"),x=n("bYtY"),v=x.isString,m=x.isFunction,f=x.isObject,d=x.isArrayLike,u=x.indexOf,o=function(){this.animators=[]};o.prototype={constructor:o,animate:function(r,a){var c,h=!1,g=this,A=this.__zr;if(r){var b=r.split("."),S=g;h=b[0]==="shape";for(var E=0,C=b.length;E<C;E++){if(!S)continue;S=S[b[E]]}S&&(c=S)}else c=g;if(!c){p('Property "'+r+'" is not existed in element '+g.id);return}var _=g.animators,T=new y(c,a);return T.during(function(w){g.dirty(h)}).done(function(){_.splice(u(_,T),1)}),_.push(T),A&&A.animation.addAnimator(T),T},stopAnimation:function(r){for(var a=this.animators,c=a.length,h=0;h<c;h++)a[h].stop(r);return a.length=0,this},animateTo:function(r,a,c,h,g,A){i(this,r,a,c,h,g,A)},animateFrom:function(r,a,c,h,g,A){i(this,r,a,c,h,g,A,!0)}};function i(l,r,a,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(a)?(g=a,a=500):a||(a=500),l.stopAnimation(),t(l,"",l,r,a,c,b);var S=l.animators.slice(),E=S.length;function C(){E--,E||g&&g()}E||g&&g();for(var _=0;_<S.length;_++)S[_].done(C).start(h,A)}function t(l,r,a,c,h,g,A){var b={},S=0;for(var E in c){if(!c.hasOwnProperty(E))continue;a[E]!=null?f(c[E])&&!d(c[E])?t(l,r?r+"."+E:E,a[E],c[E],h,g,A):(A?(b[E]=a[E],s(l,r,E,c[E])):b[E]=c[E],S++):c[E]!=null&&!A&&s(l,r,E,c[E])}S>0&&l.animate(r,!1).when(h==null?500:h,b).delay(g||0)}function s(l,r,a,c){if(!r)l.attr(a,c);else{var h={};h[r]={},h[r][a]=c,l.attr(h)}}var e=o;k.exports=e},vZ6x:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),v=n("IwbS"),m=n("4NO4"),f=n("9KIM"),d=x.each,u=x.indexOf,o=x.curry,i=["dataToPoint","pointToData"],t=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function s(T,w,O){var I=this._targetInfoList=[],R={},M=r(w,T);d(a,function(B,P){(!O||!O.include||u(O.include,P)>=0)&&B(M,I,R)})}var e=s.prototype;e.setOutputRanges=function(T,w){this.matchOutputRanges(T,w,function(O,I,R){if((O.coordRanges||(O.coordRanges=[])).push(I),!O.coordRange){O.coordRange=I;var M=g[O.brushType](0,R,I);O.__rangeOffset={offset:b[O.brushType](M.values,O.range,[1,1]),xyMinMax:M.xyMinMax}}})},e.matchOutputRanges=function(T,w,O){d(T,function(I){var R=this.findTargetInfo(I,w);R&&R!==!0&&x.each(R.coordSyses,function(M){var B=g[I.brushType](1,M,I.range);O(I,B.values,M,w)})},this)},e.setInputRanges=function(T,w){d(T,function(O){var I=this.findTargetInfo(O,w);if(O.range=O.range||[],I&&I!==!0){O.panelId=I.panelId;var R=g[O.brushType](0,I.coordSys,O.coordRange),M=O.__rangeOffset;O.range=M?b[O.brushType](R.values,M.offset,E(R.xyMinMax,M.xyMinMax)):R.values}},this)},e.makePanelOpts=function(T,w){return x.map(this._targetInfoList,function(O){var I=O.getPanelRect();return{panelId:O.panelId,defaultBrushType:w&&w(O),clipPath:f.makeRectPanelClipPath(I),isTargetByCursor:f.makeRectIsTargetByCursor(I,T,O.coordSysModel),getLinearBrushOtherExtent:f.makeLinearBrushOtherExtent(I)}})},e.controlSeries=function(T,w,O){var I=this.findTargetInfo(T,O);return I===!0||I&&u(I.coordSyses,w.coordinateSystem)>=0},e.findTargetInfo=function(T,w){for(var O=this._targetInfoList,I=r(w,T),R=0;R<O.length;R++){var M=O[R],B=T.panelId;if(B){if(M.panelId===B)return M}else for(var R=0;R<c.length;R++)if(c[R](I,M))return M}return!0};function l(T){return T[0]>T[1]&&T.reverse(),T}function r(T,w){return m.parseFinder(T,w,{includeMainTypes:t})}var a={grid:function(T,w){var O=T.xAxisModels,I=T.yAxisModels,R=T.gridModels,M=x.createHashMap(),B={},P={};if(!O&&!I&&!R)return;d(O,function(X){var F=X.axis.grid.model;M.set(F.id,F),B[F.id]=!0}),d(I,function(X){var F=X.axis.grid.model;M.set(F.id,F),P[F.id]=!0}),d(R,function(X){M.set(X.id,X),B[X.id]=!0,P[X.id]=!0}),M.each(function(X){var F=X.coordinateSystem,j=[];d(F.getCartesians(),function(K,z){(u(O,K.getAxis("x").model)>=0||u(I,K.getAxis("y").model)>=0)&&j.push(K)}),w.push({panelId:"grid--"+X.id,gridModel:X,coordSysModel:X,coordSys:j[0],coordSyses:j,getPanelRect:h.grid,xAxisDeclared:B[X.id],yAxisDeclared:P[X.id]})})},geo:function(T,w){d(T.geoModels,function(O){var I=O.coordinateSystem;w.push({panelId:"geo--"+O.id,geoModel:O,coordSysModel:O,coordSys:I,coordSyses:[I],getPanelRect:h.geo})})}},c=[function(T,w){var O=T.xAxisModel,I=T.yAxisModel,R=T.gridModel;return!R&&O&&(R=O.axis.grid.model),!R&&I&&(R=I.axis.grid.model),R&&R===w.gridModel},function(T,w){var O=T.geoModel;return O&&O===w.geoModel}],h={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var T=this.coordSys,w=T.getBoundingRect().clone();return w.applyTransform(v.getTransform(T)),w}},g={lineX:o(A,0),lineY:o(A,1),rect:function(T,w,O){var I=w[i[T]]([O[0][0],O[1][0]]),R=w[i[T]]([O[0][1],O[1][1]]),M=[l([I[0],R[0]]),l([I[1],R[1]])];return{values:M,xyMinMax:M}},polygon:function(T,w,O){var I=[[Infinity,-Infinity],[Infinity,-Infinity]],R=x.map(O,function(M){var B=w[i[T]](M);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:R,xyMinMax:I}}};function A(T,w,O,I){var R=O.getAxis(["x","y"][T]),M=l(x.map([0,1],function(P){return w?R.coordToData(R.toLocalCoord(I[P])):R.toGlobalCoord(R.dataToCoord(I[P]))})),B=[];return B[T]=M,B[1-T]=[NaN,NaN],{values:M,xyMinMax:B}}var b={lineX:o(S,0),lineY:o(S,1),rect:function(T,w,O){return[[T[0][0]-O[0]*w[0][0],T[0][1]-O[0]*w[0][1]],[T[1][0]-O[1]*w[1][0],T[1][1]-O[1]*w[1][1]]]},polygon:function(T,w,O){return x.map(T,function(I,R){return[I[0]-O[0]*w[R][0],I[1]-O[1]*w[R][1]]})}};function S(T,w,O,I){return[w[0]-I[T]*O[0],w[1]-I[T]*O[1]]}function E(T,w){var O=C(T),I=C(w),R=[O[0]/I[0],O[1]/I[1]];return isNaN(R[0])&&(R[0]=1),isNaN(R[1])&&(R[1]=1),R}function C(T){return T?[T[0][1]-T[0][0],T[1][1]-T[1][0]]:[NaN,NaN]}var _=s;k.exports=_},vZI5:function(k,D,n){var y=n("bYtY"),p=n("T4UG"),x=n("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,u,o){var i=u.getItemLayout(d);return i&&o.rect(i.brushRect)}});y.mixin(m,v,!0);var f=m;k.exports=f},vafp:function(k,D,n){var y=n("bYtY"),p=n("8nly");function x(f){if(!f.UTF8Encoding)return f;var d=f.UTF8Scale;d==null&&(d=1024);for(var u=f.features,o=0;o<u.length;o++)for(var i=u[o],t=i.geometry,s=t.coordinates,e=t.encodeOffsets,l=0;l<s.length;l++){var r=s[l];if(t.type==="Polygon")s[l]=v(r,e[l],d);else if(t.type==="MultiPolygon")for(var a=0;a<r.length;a++){var c=r[a];r[a]=v(c,e[l][a],d)}}return f.UTF8Encoding=!1,f}function v(f,d,u){for(var o=[],i=d[0],t=d[1],s=0;s<f.length;s+=2){var e=f.charCodeAt(s)-64,l=f.charCodeAt(s+1)-64;e=e>>1^-(e&1),l=l>>1^-(l&1),e+=i,l+=t,i=e,t=l,o.push([e/u,l/u])}return o}function m(f,d){return x(f),y.map(y.filter(f.features,function(u){return u.geometry&&u.properties&&u.geometry.coordinates.length>0}),function(u){var o=u.properties,i=u.geometry,t=i.coordinates,s=[];i.type==="Polygon"&&s.push({type:"polygon",exterior:t[0],interiors:t.slice(1)}),i.type==="MultiPolygon"&&y.each(t,function(l){l[0]&&s.push({type:"polygon",exterior:l[0],interiors:l.slice(1)})});var e=new p(o[d||"name"],s,o.cp);return e.properties=o,e})}k.exports=m},vcCh:function(k,D,n){var y=n("ProS");n("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(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.getPointerEvent=y,D.stopEvent=p,D.setCapture=u,D.releaseCapture=o;function y(i){return i.changedTouches?i.changedTouches[0]:i.touches?i.touches[0]:i}function p(i){i.stopPropagation(),i.preventDefault()}var x=!1,v=null;document.captureElement=null;function m(i){if(x)return;var t=new i.constructor(i.type,i);x=!0,document.captureElement?document.captureElement.dispatchEvent(t):v.dispatchEvent(t),x=!1,i.stopPropagation(),t.defaultPrevented&&i.preventDefault(),i.type==="mouseup"&&o()}function f(){var i=document.getElementById("noVNC_mouse_capture_elem");i.style.cursor=window.getComputedStyle(document.captureElement).cursor}var d=new MutationObserver(f);function u(i){if(i.setCapture)i.setCapture(),document.captureElement=i,i.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=i,d.observe(i,{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 i=document.getElementById("noVNC_mouse_capture_elem");i.style.display="none",window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",m)}}},vg9a:function(k,D,n){},"vk+C":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("RZPm"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},w4Tj:function(k,D,n){"use strict";n.d(D,"a",function(){return x});var y=n("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(u,o,i){var t=p(u,o);if(!t)return;var s=Object.getOwnPropertyDescriptor(t,o);return s.get?s.get.call(i):s.value},x(v,m,f||v)}},w5pM:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="PlusCircleOutlined";var d=D.a=p.forwardRef(f)},w6Tc:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("apAg"));function p(v){return v&&v.__esModule?v:{default:v}}var x=y;D.default=x,k.exports=x},w7YG:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("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 i=this._key,t=i.words,s=i.sigBytes,e=this._S=[],l=0;l<256;l++)e[l]=l;for(var l=0,r=0;l<256;l++){var a=l%s,c=t[a>>>2]>>>24-a%4*8&255;r=(r+e[l]+c)%256;var h=e[l];e[l]=e[r],e[r]=h}this._i=this._j=0},_doProcessBlock:function(i,t){i[t]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var o=this._S,i=this._i,t=this._j,s=0,e=0;e<4;e++){i=(i+1)%256,t=(t+o[i])%256;var l=o[i];o[i]=o[t],o[t]=l,s|=o[(o[i]+o[t])%256]<<24-e*8}return this._i=i,this._j=t,s}p.RC4=v._createHelper(f);var u=m.RC4Drop=f.extend({cfg:f.cfg.extend({drop:192}),_doReset:function(){f._doReset.call(this);for(var i=this.cfg.drop;i>0;i--)d.call(this)}});p.RC4Drop=v._createHelper(u)}(),y.RC4})},wCAj:function(k,D,n){"use strict";var y=n("cDf5"),p=n.n(y),x=n("lSNA"),v=n.n(x),m=n("J4zp"),f=n.n(m),d=n("pVnL"),u=n.n(d),o=n("q1tI"),i=n("TSYQ"),t=n.n(i),s=n("BGR+"),e=n("rePB"),l=n("VTBJ"),r=n("KQm4"),a=n("U8pU"),c=n("ODXe"),h=n("Gytx"),g=n.n(h),A=n("Kwbf"),b=n("1OyB"),S=n("vuIU"),E=n("Ji7U"),C=n("LK+K"),_=n("m+aA"),T=n("Zm9Q"),w=n("c+Xe"),O=n("bdgK"),I="rc-observer-key",R=function(_t){Object(E.a)(Nr,_t);var Or=Object(C.a)(Nr);function Nr(){var tn;return Object(b.a)(this,Nr),tn=Or.apply(this,arguments),tn.resizeObserver=null,tn.childNode=null,tn.currentElement=null,tn.state={width:0,height:0,offsetHeight:0,offsetWidth:0},tn.onResize=function(xn){var Ln=tn.props.onResize,Sn=xn[0].target,qn=Sn.getBoundingClientRect(),Wn=qn.width,pi=qn.height,Pi=Sn.offsetWidth,bi=Sn.offsetHeight,Ii=Math.floor(Wn),zi=Math.floor(pi);if(tn.state.width!==Ii||tn.state.height!==zi||tn.state.offsetWidth!==Pi||tn.state.offsetHeight!==bi){var ea={width:Ii,height:zi,offsetWidth:Pi,offsetHeight:bi};tn.setState(ea),Ln&&Promise.resolve().then(function(){Ln(Object(l.a)(Object(l.a)({},ea),{},{offsetWidth:Pi,offsetHeight:bi}))})}},tn.setChildNode=function(xn){tn.childNode=xn},tn}return Object(S.a)(Nr,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var xn=this.props.disabled;if(xn){this.destroyObserver();return}var Ln=Object(_.a)(this.childNode||this),Sn=Ln!==this.currentElement;Sn&&(this.destroyObserver(),this.currentElement=Ln),!this.resizeObserver&&Ln&&(this.resizeObserver=new O.default(this.onResize),this.resizeObserver.observe(Ln))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var xn=this.props.children,Ln=Object(T.a)(xn);if(Ln.length>1)Object(A.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Ln.length===0)return Object(A.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Sn=Ln[0];if(o.isValidElement(Sn)&&Object(w.c)(Sn)){var qn=Sn.ref;Ln[0]=o.cloneElement(Sn,{ref:Object(w.a)(qn,this.setChildNode)})}return Ln.length===1?Ln[0]:Ln.map(function(Wn,pi){return!o.isValidElement(Wn)||"key"in Wn&&Wn.key!==null?Wn:o.cloneElement(Wn,{key:"".concat(I,"-").concat(pi)})})}}]),Nr}(o.Component);R.displayName="ResizeObserver";var M=R,B=n("qx4F");function P(_t){return null}var X=P;function F(_t){return null}var j=F,K=n("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 Nr=V(Or),tn=_t,xn=0;xn<Nr.length;xn+=1){if(!tn)return null;var Ln=Nr[xn];tn=tn[Ln]}return tn}function G(_t){var Or=[],Nr={};return _t.forEach(function(tn){for(var xn=tn||{},Ln=xn.key,Sn=xn.dataIndex,qn=Ln||V(Sn).join("-")||z;Nr[qn];)qn="".concat(qn,"_next");Nr[qn]=!0,Or.push(qn)}),Or}function te(){var _t={};function Or(Ln,Sn){Sn&&Object.keys(Sn).forEach(function(qn){var Wn=Sn[qn];Wn&&Object(a.a)(Wn)==="object"?(Ln[qn]=Ln[qn]||{},Or(Ln[qn],Wn)):Ln[qn]=Wn})}for(var Nr=arguments.length,tn=new Array(Nr),xn=0;xn<Nr;xn++)tn[xn]=arguments[xn];return tn.forEach(function(Ln){Or(_t,Ln)}),_t}function q(_t){return _t!=null}function le(_t){return _t&&Object(a.a)(_t)==="object"&&!Array.isArray(_t)&&!o.isValidElement(_t)}function re(_t){return typeof _t=="string"?!0:Object(w.c)(_t)}function we(_t,Or){var Nr,tn=_t.prefixCls,xn=_t.className,Ln=_t.record,Sn=_t.index,qn=_t.dataIndex,Wn=_t.render,pi=_t.children,Pi=_t.component,bi=Pi===void 0?"td":Pi,Ii=_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(tn,"-cell"),Xa,_a;if(pi)_a=pi;else{var Va=Q(Ln,qn);if(_a=Va,Wn){var Fi=Wn(Va,Ln,Sn);le(Fi)?(_a=Fi.children,Xa=Fi.props):_a=Fi}}Object(a.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:Ii,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(l.a)(Object(l.a)(Object(l.a)({title:ts},ao),Pa),{},{colSpan:So&&So!==1?So:null,rowSpan:bo&&bo!==1?bo:null,className:t()(Aa,xn,(Nr={},Object(e.a)(Nr,"".concat(Aa,"-fix-left"),Jo),Object(e.a)(Nr,"".concat(Aa,"-fix-left-first"),Wi),Object(e.a)(Nr,"".concat(Aa,"-fix-left-last"),ji),Object(e.a)(Nr,"".concat(Aa,"-fix-right"),Uo),Object(e.a)(Nr,"".concat(Aa,"-fix-right-first"),Ji),Object(e.a)(Nr,"".concat(Aa,"-fix-right-last"),ca),Object(e.a)(Nr,"".concat(Aa,"-ellipsis"),La),Object(e.a)(Nr,"".concat(Aa,"-with-append"),Ca),Object(e.a)(Nr,"".concat(Aa,"-fix-sticky"),(Jo||Uo)&&Oa),Nr),Pa.className,To),style:Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},Pa.style),wo),to),mo),ref:re(bi)?Or:null});return o.createElement(bi,Object.assign({},Oo),Ca,_a)}var Ie=o.forwardRef(we);Ie.displayName="Cell";var Me=o.memo(Ie,function(_t,Or){return Or.shouldCellUpdate?!Or.shouldCellUpdate(Or.record,_t.record):!1}),Je=Me,Ve=o.createContext(null),ut=Ve;function Fe(_t,Or,Nr,tn,xn){var Ln=Nr[_t]||{},Sn=Nr[Or]||{},qn,Wn;Ln.fixed==="left"?qn=tn.left[_t]:Sn.fixed==="right"&&(Wn=tn.right[Or]);var pi=!1,Pi=!1,bi=!1,Ii=!1,zi=Nr[Or+1],ea=Nr[_t-1];if(xn==="rtl"){if(qn!==void 0){var Xi=ea&&ea.fixed==="left";Ii=!Xi}else if(Wn!==void 0){var Wi=zi&&zi.fixed==="right";bi=!Wi}}else if(qn!==void 0){var ji=zi&&zi.fixed==="left";pi=!ji}else if(Wn!==void 0){var Ji=ea&&ea.fixed==="right";Pi=!Ji}return{fixLeft:qn,fixRight:Wn,lastFixLeft:pi,firstFixRight:Pi,lastFixRight:bi,firstFixLeft:Ii,isSticky:tn.isSticky}}function ae(_t){var Or=_t.cells,Nr=_t.stickyOffsets,tn=_t.flattenColumns,xn=_t.rowComponent,Ln=_t.cellComponent,Sn=_t.onHeaderRow,qn=_t.index,Wn=o.useContext(ut),pi=Wn.prefixCls,Pi=Wn.direction,bi;Sn&&(bi=Sn(Or.map(function(zi){return zi.column}),qn));var Ii=G(Or.map(function(zi){return zi.column}));return o.createElement(xn,Object.assign({},bi),Or.map(function(zi,ea){var Xi=zi.column,Wi=Fe(zi.colStart,zi.colEnd,tn,Nr,Pi),ji;return Xi&&Xi.onHeaderCell&&(ji=zi.column.onHeaderCell(Xi)),o.createElement(Je,Object.assign({},zi,{ellipsis:Xi.ellipsis,align:Xi.align,component:Ln,prefixCls:pi,key:Ii[ea]},Wi,{additionalProps:ji,rowType:"header"}))}))}ae.displayName="HeaderRow";var at=ae;function he(_t){var Or=[];function Nr(Sn,qn){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Or[Wn]=Or[Wn]||[];var pi=qn,Pi=Sn.filter(Boolean).map(function(bi){var Ii={key:bi.key,className:bi.className||"",children:bi.title,column:bi,colStart:pi},zi=1,ea=bi.children;return ea&&ea.length>0&&(zi=Nr(ea,pi,Wn+1).reduce(function(Xi,Wi){return Xi+Wi},0),Ii.hasSubColumns=!0),"colSpan"in bi&&(zi=bi.colSpan),"rowSpan"in bi&&(Ii.rowSpan=bi.rowSpan),Ii.colSpan=zi,Ii.colEnd=Ii.colStart+zi-1,Or[Wn].push(Ii),pi+=zi,zi});return Pi}Nr(_t,0);for(var tn=Or.length,xn=function(qn){Or[qn].forEach(function(Wn){!("rowSpan"in Wn)&&!Wn.hasSubColumns&&(Wn.rowSpan=tn-qn)})},Ln=0;Ln<tn;Ln+=1)xn(Ln);return Or}function J(_t){var Or=_t.stickyOffsets,Nr=_t.columns,tn=_t.flattenColumns,xn=_t.onHeaderRow,Ln=o.useContext(ut),Sn=Ln.prefixCls,qn=Ln.getComponent,Wn=o.useMemo(function(){return he(Nr)},[Nr]),pi=qn(["header","wrapper"],"thead"),Pi=qn(["header","row"],"tr"),bi=qn(["header","cell"],"th");return o.createElement(pi,{className:"".concat(Sn,"-thead")},Wn.map(function(Ii,zi){var ea=o.createElement(at,{key:zi,flattenColumns:tn,cells:Ii,stickyOffsets:Or,rowComponent:Pi,cellComponent:bi,onHeaderRow:xn,index:zi});return ea}))}var Y=J,$="RC_TABLE_INTERNAL_COL_DEFINE";function de(_t){var Or=_t.expandable,Nr=Object(K.a)(_t,["expandable"]);return"expandable"in _t?Object(l.a)(Object(l.a)({},Nr),Or):Nr}function be(_t){return Object.keys(_t).reduce(function(Or,Nr){return(Nr.substr(0,5)==="data-"||Nr.substr(0,5)==="aria-")&&(Or[Nr]=_t[Nr]),Or},{})}function Ce(_t){for(var Or=_t.colWidths,Nr=_t.columns,tn=_t.columCount,xn=[],Ln=tn||Nr.length,Sn=!1,qn=Ln-1;qn>=0;qn-=1){var Wn=Or[qn],pi=Nr&&Nr[qn],Pi=pi&&pi[$];(Wn||Pi||Sn)&&(xn.unshift(o.createElement("col",Object.assign({key:qn,style:{width:Wn,minWidth:Wn}},Pi))),Sn=!0)}return o.createElement("colgroup",null,xn)}var Be=Ce;function fe(_t,Or){return Object(o.useMemo)(function(){for(var Nr=[],tn=0;tn<Or;tn+=1){var xn=_t[tn];if(xn!==void 0)Nr[tn]=xn;else return null}return Nr},[_t.join("_"),Or])}var Se=o.forwardRef(function(_t,Or){var Nr=_t.noData,tn=_t.columns,xn=_t.flattenColumns,Ln=_t.colWidths,Sn=_t.columCount,qn=_t.stickyOffsets,Wn=_t.direction,pi=_t.fixHeader,Pi=_t.offsetHeader,bi=_t.stickyClassName,Ii=_t.onScroll,zi=Object(K.a)(_t,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),ea=o.useContext(ut),Xi=ea.prefixCls,Wi=ea.scrollbarSize,ji=ea.isSticky,Ji=ji&&!pi?0:Wi,ca=o.useRef(null),Ca=o.useCallback(function(Aa){Object(w.b)(Or,Aa),Object(w.b)(ca,Aa)},[]);o.useEffect(function(){var Aa;function Xa(_a){var Va=_a.currentTarget,Fi=_a.deltaX;Fi&&(Ii({currentTarget:Va,scrollLeft:Va.scrollLeft+Fi}),_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=xn[xn.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)(tn),[Pa]):tn},[Ji,tn]),va=Object(o.useMemo)(function(){return Ji?[].concat(Object(r.a)(xn),[Pa]):xn},[Ji,xn]),ga=Object(o.useMemo)(function(){var Aa=qn.right,Xa=qn.left;return Object(l.a)(Object(l.a)({},qn),{},{left:Wn==="rtl"?[].concat(Object(r.a)(Xa.map(function(_a){return _a+Ji})),[0]):Xa,right:Wn==="rtl"?Aa:[].concat(Object(r.a)(Aa.map(function(_a){return _a+Ji})),[0]),isSticky:ji})},[Ji,qn,ji]),Oa=fe(Ln,Sn);return o.createElement("div",{style:Object(l.a)({overflow:"hidden"},ji?{top:Pi}:{}),ref:Ca,className:t()("".concat(Xi,"-header"),Object(e.a)({},bi,!!bi))},o.createElement("table",{style:{tableLayout:"fixed",visibility:Nr||Oa?null:"hidden"}},o.createElement(Be,{colWidths:Oa?[].concat(Object(r.a)(Oa),[Ji]):[],columCount:Sn+1,columns:va}),o.createElement(Y,Object.assign({},zi,{stickyOffsets:ga,columns:La,flattenColumns:va}))))});Se.displayName="FixedHeader";var ke=Se,rt=o.createContext(null),xt=rt;function ht(_t){var Or=_t.prefixCls,Nr=_t.children,tn=_t.component,xn=_t.cellComponent,Ln=_t.fixHeader,Sn=_t.fixColumn,qn=_t.horizonScroll,Wn=_t.className,pi=_t.expanded,Pi=_t.componentWidth,bi=_t.colSpan,Ii=o.useContext(ut),zi=Ii.scrollbarSize;return o.useMemo(function(){var ea=Nr;return Sn&&(ea=o.createElement("div",{style:{width:Pi-(Ln?zi:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Or,"-expanded-row-fixed")},ea)),o.createElement(tn,{className:Wn,style:{display:pi?null:"none"}},o.createElement(Je,{component:xn,prefixCls:Or,colSpan:bi},ea))},[Nr,tn,Ln,qn,Wn,pi,Pi,bi,zi])}var He=ht;function ir(_t){var Or=_t.className,Nr=_t.style,tn=_t.record,xn=_t.index,Ln=_t.rowKey,Sn=_t.getRowKey,qn=_t.rowExpandable,Wn=_t.expandedKeys,pi=_t.onRow,Pi=_t.indent,bi=Pi===void 0?0:Pi,Ii=_t.rowComponent,zi=_t.cellComponent,ea=_t.childrenColumnName,Xi=o.useContext(ut),Wi=Xi.prefixCls,ji=Xi.fixedInfoList,Ji=o.useContext(xt),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,Fi=Ji.expandedRowRender,io=Ji.expandIconColumnIndex,oo=o.useState(!1),Qo=Object(c.a)(oo,2),mo=Qo[0],To=Qo[1],ao=Wn&&Wn.has(_t.recordKey);o.useEffect(function(){ao&&To(!0)},[ao]);var So=va==="row"&&(!qn||qn(tn)),bo=va==="nest",to=ea&&tn&&tn[ea],Jo=So||bo,Uo;pi&&(Uo=pi(tn,xn));var wo=function(_o){if(ga&&Jo&&Oa(tn,_o),Uo&&Uo.onClick){for(var uo,Ha=arguments.length,mt=new Array(Ha>1?Ha-1:0),Tr=1;Tr<Ha;Tr++)mt[Tr-1]=arguments[Tr];(uo=Uo).onClick.apply(uo,[_o].concat(mt))}},ts;typeof Aa=="string"?ts=Aa:typeof Aa=="function"&&(ts=Aa(tn,xn,bi));var Ia=G(La),Oo=o.createElement(Ii,Object.assign({},Uo,{"data-row-key":Ln,className:t()(Or,"".concat(Wi,"-row"),"".concat(Wi,"-row-level-").concat(bi),ts,Uo&&Uo.className),style:Object(l.a)(Object(l.a)({},Nr),Uo?Uo.style:null),onClick:wo}),La.map(function(Ho,_o){var uo=Ho.render,Ha=Ho.dataIndex,mt=Ho.className,Tr=Ia[_o],en=ji[_o],Jr;_o===(io||0)&&bo&&(Jr=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(_a*bi,"px")},className:"".concat(Wi,"-row-indent indent-level-").concat(bi)}),Va({prefixCls:Wi,expanded:ao,expandable:to,record:tn,onExpand:Oa})));var Jn;return Ho.onCell&&(Jn=Ho.onCell(tn,xn)),o.createElement(Je,Object.assign({className:mt,ellipsis:Ho.ellipsis,align:Ho.align,component:zi,prefixCls:Wi,key:Tr,record:tn,index:xn,dataIndex:Ha,render:uo,shouldCellUpdate:Ho.shouldCellUpdate},en,{appendNode:Jr,additionalProps:Jn}))})),Io;if(So&&(mo||ao)){var os=Fi(tn,xn,bi+1,ao),xo=Xa&&Xa(tn,xn,bi);Io=o.createElement(He,{expanded:ao,className:t()("".concat(Wi,"-expanded-row"),"".concat(Wi,"-expanded-row-level-").concat(bi+1),xo),prefixCls:Wi,fixHeader:ca,fixColumn:Ca,horizonScroll:na,component:Ii,componentWidth:Pa,cellComponent:zi,colSpan:La.length},os)}var rs;return to&&ao&&(rs=(tn[ea]||[]).map(function(Ho,_o){var uo=Sn(Ho,_o);return o.createElement(ir,Object.assign({},_t,{key:uo,rowKey:uo,record:Ho,recordKey:uo,index:_o,indent:bi+1}))})),o.createElement(o.Fragment,null,Oo,Io,rs)}ir.displayName="BodyRow";var ct=ir,Xt=o.createContext(null),hr=Xt;function Jt(_t){var Or=_t.columnKey,Nr=_t.onColumnResize,tn=o.useRef();return o.useEffect(function(){tn.current&&Nr(Or,tn.current.offsetWidth)},[]),o.createElement(M,{onResize:function(Ln){var Sn=Ln.offsetWidth;Nr(Or,Sn)}},o.createElement("td",{ref:tn,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Pt(_t){var Or=_t.data,Nr=_t.getRowKey,tn=_t.measureColumnWidth,xn=_t.expandedKeys,Ln=_t.onRow,Sn=_t.rowExpandable,qn=_t.emptyNode,Wn=_t.childrenColumnName,pi=o.useContext(hr),Pi=pi.onColumnResize,bi=o.useContext(ut),Ii=bi.prefixCls,zi=bi.getComponent,ea=o.useContext(xt),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=Nr(va,ga);return o.createElement(ct,{key:Oa,rowKey:Oa,record:va,recordKey:Oa,index:ga,rowComponent:Ca,cellComponent:na,expandedKeys:xn,onRow:Ln,getRowKey:Nr,rowExpandable:Sn,childrenColumnName:Wn})}):Pa=o.createElement(He,{expanded:!0,className:"".concat(Ii,"-placeholder"),prefixCls:Ii,fixHeader:Xi,fixColumn:Wi,horizonScroll:Wi,component:Ca,componentWidth:Ji,cellComponent:na,colSpan:ji.length},qn);var La=G(ji);return o.createElement(ca,{className:"".concat(Ii,"-tbody")},tn&&o.createElement("tr",{"aria-hidden":"true",className:"".concat(Ii,"-measure-row"),style:{height:0}},La.map(function(va){return o.createElement(Jt,{key:va,columnKey:va,onColumnResize:Pi})})),Pa)},[Or,Ii,Ln,tn,xn,Nr,zi,Ji,qn,ji])}var Wt=o.memo(Pt);Wt.displayName="Body";var Ge=Wt;function pe(_t){return Object(T.a)(_t).filter(function(Or){return o.isValidElement(Or)}).map(function(Or){var Nr=Or.key,tn=Or.props,xn=tn.children,Ln=Object(K.a)(tn,["children"]),Sn=Object(l.a)({key:Nr},Ln);return xn&&(Sn.children=pe(xn)),Sn})}function se(_t){return _t.reduce(function(Or,Nr){var tn=Nr.fixed,xn=tn===!0?"left":tn,Ln=Nr.children;return Ln&&Ln.length>0?[].concat(Object(r.a)(Or),Object(r.a)(se(Ln).map(function(Sn){return Object(l.a)({fixed:xn},Sn)}))):[].concat(Object(r.a)(Or),[Object(l.a)(Object(l.a)({},Nr),{},{fixed:xn})])},[])}function lt(_t){for(var Or=!0,Nr=0;Nr<_t.length;Nr+=1){var tn=_t[Nr];if(Or&&tn.fixed!=="left")Or=!1;else if(!Or&&tn.fixed==="left"){Object(A.a)(!1,"Index ".concat(Nr-1," of `columns` missing `fixed='left'` prop."));break}}for(var xn=!0,Ln=_t.length-1;Ln>=0;Ln-=1){var Sn=_t[Ln];if(xn&&Sn.fixed!=="right")xn=!1;else if(!xn&&Sn.fixed==="right"){Object(A.a)(!1,"Index ".concat(Ln+1," of `columns` missing `fixed='right'` prop."));break}}}function qe(_t){return _t.map(function(Or){var Nr=Or.fixed,tn=Object(K.a)(Or,["fixed"]),xn=Nr;return Nr==="left"?xn="right":Nr==="right"&&(xn="left"),Object(l.a)({fixed:xn},tn)})}function me(_t,Or){var Nr=_t.prefixCls,tn=_t.columns,xn=_t.children,Ln=_t.expandable,Sn=_t.expandedKeys,qn=_t.getRowKey,Wn=_t.onTriggerExpand,pi=_t.expandIcon,Pi=_t.rowExpandable,bi=_t.expandIconColumnIndex,Ii=_t.direction,zi=_t.expandRowByClick,ea=o.useMemo(function(){return tn||pe(xn)},[tn,xn]),Xi=o.useMemo(function(){if(Ln){var Ji,ca=bi||0,Ca=ea[ca],na=(Ji={},Object(e.a)(Ji,$,{className:"".concat(Nr,"-expand-icon-col")}),Object(e.a)(Ji,"title",""),Object(e.a)(Ji,"fixed",Ca?Ca.fixed:null),Object(e.a)(Ji,"className","".concat(Nr,"-row-expand-icon-cell")),Object(e.a)(Ji,"render",function(va,ga,Oa){var Aa=qn(ga,Oa),Xa=Sn.has(Aa),_a=Pi?Pi(ga):!0,Va=pi({prefixCls:Nr,expanded:Xa,expandable:_a,record:ga,onExpand:Wn});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},[Ln,ea,qn,Sn,pi,Ii]),Wi=o.useMemo(function(){var Ji=Xi;return Or&&(Ji=Or(Ji)),Ji.length||(Ji=[{render:function(){return null}}]),Ji},[Or,Xi,Ii]),ji=o.useMemo(function(){return Ii==="rtl"?qe(se(Wi)):se(Wi)},[Wi,Ii]);return[Wi,ji]}var Ht=me,yr=n("xEkU"),At=n.n(yr);function rr(_t){var Or=Object(o.useRef)(_t),Nr=Object(o.useState)({}),tn=Object(c.a)(Nr,2),xn=tn[1],Ln=Object(o.useRef)(null),Sn=Object(o.useRef)([]);function qn(Wn){Ln.current===null&&(Sn.current=[],Ln.current=At()(function(){Sn.current.forEach(function(pi){Or.current=pi(Or.current)}),Ln.current=null,xn({})})),Sn.current.push(Wn)}return Object(o.useEffect)(function(){return function(){At.a.cancel(Ln.current)}},[]),[Or.current,qn]}function ur(_t){var Or=Object(o.useRef)(_t),Nr=Object(o.useRef)(null);function tn(){window.clearTimeout(Nr.current)}function xn(Sn){Or.current=Sn,tn(),Nr.current=window.setTimeout(function(){Or.current=null,Nr.current=null},100)}function Ln(){return Or.current}return Object(o.useEffect)(function(){return tn},[]),[xn,Ln]}function vn(_t,Or,Nr){var tn=Object(o.useMemo)(function(){for(var xn=[],Ln=[],Sn=0,qn=0,Wn=0;Wn<Or;Wn+=1)if(Nr==="rtl"){Ln[Wn]=qn,qn+=_t[Wn]||0;var pi=Or-Wn-1;xn[pi]=Sn,Sn+=_t[pi]||0}else{xn[Wn]=Sn,Sn+=_t[Wn]||0;var Pi=Or-Wn-1;Ln[Pi]=qn,qn+=_t[Pi]||0}return{left:xn,right:Ln}},[_t,Or,Nr]);return tn}var Bt=vn;function sr(_t){var Or=_t.className,Nr=_t.children;return o.createElement("div",{className:Or},Nr)}var Yt=sr;function pt(_t){var Or=_t.className,Nr=_t.index,tn=_t.children,xn=_t.colSpan,Ln=_t.rowSpan,Sn=o.useContext(ut),qn=Sn.prefixCls,Wn=Sn.fixedInfoList,pi=Wn[Nr];return o.createElement(Je,Object.assign({className:Or,index:Nr,component:"td",prefixCls:qn,record:null,dataIndex:null,render:function(){return{children:tn,props:{colSpan:xn,rowSpan:Ln}}}},pi))}function it(_t){return o.createElement("tr",Object.assign({},_t))}function Fr(_t){var Or=_t.children,Nr=o.useContext(ut),tn=Nr.prefixCls;return o.createElement("tfoot",{className:"".concat(tn,"-summary")},Or)}var cn=Fr,_n={Cell:pt,Row:it};function Kn(_t){var Or,Nr=_t.prefixCls,tn=_t.record,xn=_t.onExpand,Ln=_t.expanded,Sn=_t.expandable,qn="".concat(Nr,"-row-expand-icon");if(!Sn)return o.createElement("span",{className:t()(qn,"".concat(Nr,"-row-spaced"))});var Wn=function(Pi){xn(tn,Pi),Pi.stopPropagation()};return o.createElement("span",{className:t()(qn,(Or={},Object(e.a)(Or,"".concat(Nr,"-row-expanded"),Ln),Object(e.a)(Or,"".concat(Nr,"-row-collapsed"),!Ln),Or)),onClick:Wn})}function gi(_t,Or,Nr){var tn=[];function xn(Ln){(Ln||[]).forEach(function(Sn,qn){tn.push(Or(Sn,qn)),xn(Sn[Nr])})}return xn(_t),tn}var Mn=n("zT1h"),Un=n("y0+3"),$t=function(Or,Nr){var tn,xn,Ln=Or.scrollBodyRef,Sn=Or.onScroll,qn=Or.offsetScroll,Wn=o.useContext(ut),pi=Wn.prefixCls,Pi=((tn=Ln.current)===null||tn===void 0?void 0:tn.scrollWidth)||0,bi=((xn=Ln.current)===null||xn===void 0?void 0:xn.clientWidth)||0,Ii=Pi&&bi*(bi/Pi),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,Fi=_a||((Va=window)===null||Va===void 0?void 0:Va.event),io=Fi.buttons;if(!na||io===0){na&&Pa(!1);return}var oo=Ji.current.x+_a.pageX-Ji.current.x-Ji.current.delta;oo<=0&&(oo=0),oo+Ii>=bi&&(oo=bi-Ii),Sn({scrollLeft:oo/bi*(Pi+2)}),Ji.current.x=_a.pageX},Oa=function(){var _a=Object(Un.b)(Ln.current).top,Va=_a+Ln.current.offsetHeight,Fi=document.documentElement.scrollTop+window.innerHeight;Va-Object(B.a)()<=Fi||_a>=Fi-qn?ji(function(io){return Object(l.a)(Object(l.a)({},io),{},{isHiddenScrollBar:!0})}):ji(function(io){return Object(l.a)(Object(l.a)({},io),{},{isHiddenScrollBar:!1})})},Aa=function(_a){ji(function(Va){return Object(l.a)(Object(l.a)({},Va),{},{scrollLeft:_a/Pi*bi||0})})};return o.useImperativeHandle(Nr,function(){return{setScrollLeft:Aa}}),o.useEffect(function(){var Xa=Object(Mn.a)(document.body,"mouseup",La,!1),_a=Object(Mn.a)(document.body,"mousemove",ga,!1);return Oa(),function(){Xa.remove(),_a.remove()}},[Ii,na]),o.useEffect(function(){var Xa=Object(Mn.a)(window,"scroll",Oa,!1),_a=Object(Mn.a)(window,"resize",Oa,!1);return function(){Xa.remove(),_a.remove()}},[]),o.useEffect(function(){Wi.isHiddenScrollBar||ji(function(Xa){var _a,Va;return Object(l.a)(Object(l.a)({},Xa),{},{scrollLeft:Ln.current.scrollLeft/((_a=Ln.current)===null||_a===void 0?void 0:_a.scrollWidth)*((Va=Ln.current)===null||Va===void 0?void 0:Va.clientWidth)})})},[Wi.isHiddenScrollBar]),Pi<=bi||!Ii||Wi.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(B.a)(),width:bi,bottom:qn},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(Ii,"px"),transform:"translate3d(".concat(Wi.scrollLeft,"px, 0, 0)")}}))},Ct=o.forwardRef($t);function Re(_t,Or){return o.useMemo(function(){var Nr=!!_t;return{isSticky:Nr,stickyClassName:Nr?"".concat(Or,"-sticky-header"):"",offsetHeader:Object(a.a)(_t)==="object"&&_t.offsetHeader||0,offsetScroll:Object(a.a)(_t)==="object"&&_t.offsetScroll||0}},[_t,Or])}var De=[],Pe={},et="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 St(_t){var Or,Nr=_t.prefixCls,tn=_t.className,xn=_t.rowClassName,Ln=_t.style,Sn=_t.data,qn=_t.rowKey,Wn=_t.scroll,pi=_t.tableLayout,Pi=_t.direction,bi=_t.title,Ii=_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=Sn||De,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]),Fi=o.useCallback(function(Vo,No){return Q(Va,Vo)||No},[Va]),io=o.useMemo(function(){return typeof qn=="function"?qn:function(Vo){var No=Vo&&Vo[qn];return No}},[qn]),oo=de(_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||Kn,os=Ia||"children",xo=o.useMemo(function(){return So?"row":_t.expandable&&Ca===et&&_t.expandable.__PARENT_RENDER_ICON__||va.some(function(Vo){return Vo&&Object(a.a)(Vo)==="object"&&Vo[os]})?"nest":!1},[!!So,va]),rs=o.useState(function(){return To||(ao?gi(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]),mt=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),en=Object(c.a)(Tr,2),Jr=en[0],Jn=en[1],fn=Ht(Object(l.a)(Object(l.a)(Object(l.a)({},_t),oo),{},{expandable:!!So,expandedKeys:Ha,getRowKey:io,onTriggerExpand:mt,expandIcon:Io,expandIconColumnIndex:wo,direction:Pi}),Ca===et?na:null),Yr=Object(c.a)(fn,2),ni=Yr[0],nn=Yr[1],zn=o.useMemo(function(){return{columns:ni,flattenColumns:nn}},[ni,nn]),li=o.useRef(),ci=o.useRef(),si=o.useRef(),Ci=o.useState(!1),mi=Object(c.a)(Ci,2),Ai=mi[0],Ni=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=G(nn),ro=ko.map(function(Vo){return Da.get(Vo)}),pa=o.useMemo(function(){return ro},[ro.join("_")]),Ea=Bt(pa,nn.length,Pi),Fa=Wn&&q(Wn.y),Ka=Wn&&q(Wn.x),lo=Ka&&nn.some(function(Vo){var No=Vo.fixed;return No}),so=o.useRef(),Co=Re(La,Nr),Lo=Co.isSticky,is=Co.offsetHeader,cs=Co.offsetScroll,Rs=Co.stickyClassName,Ko,as,co;Fa&&(as={overflowY:"scroll",maxHeight:Wn.y}),Ka&&(Ko={overflowX:"auto"},Fa||(as={overflowY:"hidden"}),co={width:Wn.x===!0?"auto":Wn.x,minWidth:"100%"});var Ao=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,Ut=fs||Pe;if(!Fo()||Fo()===Ut){var or;_s(Ut),il(go,ci.current),il(go,si.current),il(go,(or=so.current)===null||or===void 0?void 0:or.setScrollLeft)}if(fs){var Nn=fs.scrollWidth,hi=fs.clientWidth;Ni(go>0),Ya(go<Nn-hi)}},zo=function(){si.current&&Eo({currentTarget:si.current})},Fs=function(No){var fs=No.width;zo(),Jn(li.current?li.current.offsetWidth:fs)};o.useEffect(function(){return zo},[]),o.useEffect(function(){Ka&&zo()},[Ka]),o.useEffect(function(){Ca===et&&Pa&&(Pa.body.current=si.current)});var ms=Fi(["table"],"table"),hs=o.useMemo(function(){return pi||(lo?Wn.x==="max-content"?"auto":"fixed":Fa||nn.some(function(Vo){var No=Vo.ellipsis;return No})?"fixed":"auto")},[Fa,lo,nn,pi]),wn,Ns={colWidths:pa,columCount:nn.length,stickyOffsets:Ea,onHeaderRow:ca,fixHeader:Fa},Ll=o.useMemo(function(){return ga?null:typeof ji=="function"?ji():ji},[ga,ji]),el=o.createElement(Ge,{data:va,measureColumnWidth:Fa||Ka||Lo,expandedKeys:Ha,rowExpandable:Uo,getRowKey:io,onRow:Ji,emptyNode:Ll,childrenColumnName:os}),Gs=o.createElement(Be,{colWidths:nn.map(function(Vo){var No=Vo.width;return No}),columns:nn}),ds=zi&&o.createElement(cn,null,zi(va)),ks=Fi(["body"]);if(Fa||Lo){var Qs;typeof ks=="function"?(Qs=ks(va,{scrollbarSize:Xa,ref:si,onScroll:Eo}),Ns.colWidths=nn.map(function(Vo,No){var fs=Vo.width,Ds=No===ni.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(l.a)(Object(l.a)({},Ko),as),onScroll:Eo,ref:si,className:t()("".concat(Nr,"-body"))},o.createElement(ms,{style:Object(l.a)(Object(l.a)({},co),{},{tableLayout:hs})},Gs,el,ds),Lo&&o.createElement(Ct,{ref:so,offsetScroll:cs,scrollBodyRef:si,onScroll:Eo})),wn=o.createElement(o.Fragment,null,Xi!==!1&&o.createElement(ke,Object.assign({noData:!va.length},Ns,zn,{direction:Pi,offsetHeader:is,stickyClassName:Rs,ref:ci,onScroll:Eo})),Qs)}else wn=o.createElement("div",{style:Object(l.a)(Object(l.a)({},Ko),as),className:t()("".concat(Nr,"-content")),onScroll:Eo,ref:si},o.createElement(ms,{style:Object(l.a)(Object(l.a)({},co),{},{tableLayout:hs})},Gs,Xi!==!1&&o.createElement(Y,Object.assign({},Ns,zn)),el,ds));var tl=be(_t),xs=o.createElement("div",Object.assign({className:t()(Nr,tn,(Or={},Object(e.a)(Or,"".concat(Nr,"-rtl"),Pi==="rtl"),Object(e.a)(Or,"".concat(Nr,"-ping-left"),Ai),Object(e.a)(Or,"".concat(Nr,"-ping-right"),fa),Object(e.a)(Or,"".concat(Nr,"-layout-fixed"),pi==="fixed"),Object(e.a)(Or,"".concat(Nr,"-fixed-header"),Fa),Object(e.a)(Or,"".concat(Nr,"-fixed-column"),lo),Object(e.a)(Or,"".concat(Nr,"-scroll-horizontal"),Ka),Object(e.a)(Or,"".concat(Nr,"-has-fix-left"),nn[0]&&nn[0].fixed),Object(e.a)(Or,"".concat(Nr,"-has-fix-right"),nn[nn.length-1]&&nn[nn.length-1].fixed==="right"),Or)),style:Ln,id:ea,ref:li},tl),o.createElement(yt,{pingLeft:Ai,pingRight:fa,props:Object(l.a)(Object(l.a)({},_t),{},{stickyOffsets:Ea,mergedExpandedKeys:Ha})},bi&&o.createElement(Yt,{className:"".concat(Nr,"-title")},bi(va)),o.createElement("div",{className:"".concat(Nr,"-container")},wn),Ii&&o.createElement(Yt,{className:"".concat(Nr,"-footer")},Ii(va))));Ka&&(xs=o.createElement(M,{onResize:Fs},xs));var Bs=o.useMemo(function(){return{prefixCls:Nr,getComponent:Fi,scrollbarSize:Xa,direction:Pi,fixedInfoList:nn.map(function(Vo,No){return Fe(No,No,nn,Ea,Pi)}),isSticky:Lo}},[Nr,Fi,Xa,Pi,nn,Ea,Pi,Lo]),al=o.useMemo(function(){return Object(l.a)(Object(l.a)({},zn),{},{tableLayout:hs,rowClassName:xn,expandedRowClassName:ts,componentWidth:Jr,fixHeader:Fa,fixColumn:lo,horizonScroll:Ka,expandIcon:Io,expandableType:xo,expandRowByClick:Jo,expandedRowRender:So,onTriggerExpand:mt,expandIconColumnIndex:wo,indentSize:Oo})},[zn,hs,xn,ts,Jr,Fa,lo,Ka,Io,xo,Jo,So,mt,wo,Oo]),Js=o.useMemo(function(){return{onColumnResize:Ao}},[Ao]);return o.createElement(ut.Provider,{value:Bs},o.createElement(xt.Provider,{value:al},o.createElement(hr.Provider,{value:Js},xs)))}St.Column=j,St.ColumnGroup=X,St.Summary=_n,St.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var Vt=St,Rr=Vt,Vr=n("W9HT"),hn=n("NUBc"),Ft=n("H84U"),vt=function(_t,Or){var Nr={};for(var tn in _t)Object.prototype.hasOwnProperty.call(_t,tn)&&Or.indexOf(tn)<0&&(Nr[tn]=_t[tn]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xn=0,tn=Object.getOwnPropertySymbols(_t);xn<tn.length;xn++)Or.indexOf(tn[xn])<0&&Object.prototype.propertyIsEnumerable.call(_t,tn[xn])&&(Nr[tn[xn]]=_t[tn[xn]]);return Nr},bt=10;function fr(_t,Or){var Nr={current:Or.current,pageSize:Or.pageSize},tn=_t&&p()(_t)==="object"?_t:{};return Object.keys(tn).forEach(function(xn){var Ln=Or[xn];typeof Ln!="function"&&(Nr[xn]=Ln)}),Nr}function Qt(){for(var _t={},Or=arguments.length,Nr=new Array(Or),tn=0;tn<Or;tn++)Nr[tn]=arguments[tn];return Nr.forEach(function(xn){xn&&Object.keys(xn).forEach(function(Ln){var Sn=xn[Ln];Sn!==void 0&&(_t[Ln]=Sn)})}),_t}function Mt(_t,Or,Nr){var tn=Or&&p()(Or)==="object"?Or:{},xn=tn.total,Ln=xn===void 0?0:xn,Sn=vt(tn,["total"]),qn=Object(o.useState)(function(){return{current:"defaultCurrent"in Sn?Sn.defaultCurrent:1,pageSize:"defaultPageSize"in Sn?Sn.defaultPageSize:bt}}),Wn=f()(qn,2),pi=Wn[0],Pi=Wn[1],bi=Qt(pi,Sn,{total:Ln>0?Ln:_t});if(!Ln){var Ii=Math.ceil(_t/bi.pageSize);Ii<bi.current&&(bi.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;Pi(u()(u()({},bi),{current:Wi,pageSize:ji||bi.pageSize}))},ea=function(Wi,ji){var Ji=bi==null?void 0:bi.pageSize;ji&&ji!==Ji&&(Wi=1,Or&&Or.onShowSizeChange&&Or.onShowSizeChange(Wi,ji)),Or&&Or.onChange&&Or.onChange(Wi,ji),zi(Wi,ji),Nr(Wi,ji||Ji)};return Or===!1?[{},function(){}]:[u()(u()({},bi),{onChange:ea}),zi]}function qt(_t,Or,Nr){var tn=o.useRef({});function xn(Ln){if(!tn.current||tn.current.data!==_t||tn.current.childrenColumnName!==Or||tn.current.getRowKey!==Nr){var Sn=function Wn(pi){pi.forEach(function(Pi,bi){var Ii=Nr(Pi,bi);qn.set(Ii,Pi),Pi&&p()(Pi)==="object"&&Or in Pi&&Wn(Pi[Or]||[])})},qn=new Map;Sn(_t),tn.current={data:_t,childrenColumnName:Or,kvMap:qn,getRowKey:Nr}}return tn.current.kvMap.get(Ln)}return[xn]}var kt=n("SA+Z"),er=n.n(kt),Kr=n("RIqP"),Ir=n.n(Kr),Dr=n("HQEm"),dn=n.n(Dr),yn=n("c3jg"),ti=n("qOx5"),ei=n("wPhX"),fi=n("6cGi"),Ei=n("kaz8"),Di=n("jsC+"),Hi=n("BvKs"),nt=n("9yH6"),Le=n("uaoM"),je="SELECT_ALL",Xe="SELECT_INVERT";function tt(_t){return _t&&_t.fixed}function Ze(_t,Or){var Nr=[];return(_t||[]).forEach(function(tn){Nr.push(tn),tn&&p()(tn)==="object"&&Or in tn&&(Nr=[].concat(Ir()(Nr),Ir()(Ze(tn[Or],Or))))}),Nr}function st(_t,Or){var Nr=_t||{},tn=Nr.preserveSelectedRowKeys,xn=Nr.selectedRowKeys,Ln=Nr.getCheckboxProps,Sn=Nr.onChange,qn=Nr.onSelect,Wn=Nr.onSelectAll,pi=Nr.onSelectInvert,Pi=Nr.onSelectMultiple,bi=Nr.columnWidth,Ii=Nr.type,zi=Nr.selections,ea=Nr.fixed,Xi=Nr.renderCell,Wi=Nr.hideSelectAll,ji=Nr.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)(xn||[],{value:xn}),Fi=f()(Va,2),io=Fi[0],oo=Fi[1],Qo=Object(o.useMemo)(function(){return Ji?{keyEntities:null}:Object(yn.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,mt){var Tr=La(Ha,mt),en=(Ln?Ln(Ha):null)||{};uo.set(Tr,en)}),uo},[To,La,Ln]),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(ti.a)(io,!0,mo,So),Ha=uo.checkedKeys,mt=uo.halfCheckedKeys;return[Ha,mt]},[io,Ji,mo,So]),to=f()(bo,2),Jo=to[0],Uo=to[1],wo=Object(o.useMemo)(function(){var uo=Ii==="radio"?Jo.slice(0,1):Jo;return new Set(uo)},[Jo,Ii]),ts=Object(o.useMemo)(function(){return Ii==="radio"?new Set:new Set(Uo)},[Uo,Ii]),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,mt;if(tn){var Tr=new Map;Ha=uo,mt=uo.map(function(en){var Jr=Pa(en);return!Jr&&_a.current.has(en)&&(Jr=_a.current.get(en)),Tr.set(en,Jr),Jr}),_a.current=Tr}else Ha=[],mt=[],uo.forEach(function(en){var Jr=Pa(en);Jr!==void 0&&(Ha.push(en),mt.push(Jr))});oo(Ha),Sn&&Sn(Ha,mt)},[oo,Pa,Sn,tn]),rs=Object(o.useCallback)(function(uo,Ha,mt,Tr){if(qn){var en=mt.map(function(Jr){return Pa(Jr)});qn(Pa(uo),Ha,en,Tr)}xo(mt)},[qn,Pa,xo]),Ho=Object(o.useMemo)(function(){if(!zi||Wi)return null;var uo=zi===!0?[je,Xe]:zi;return uo.map(function(Ha){return Ha===je?{key:"all",text:Oa.selectionAll,onSelect:function(){xo(Ca.map(function(Tr,en){return La(Tr,en)}))}}:Ha===Xe?{key:"invert",text:Oa.selectInvert,onSelect:function(){var Tr=new Set(wo);na.forEach(function(Jr,Jn){var fn=La(Jr,Jn);Tr.has(fn)?Tr.delete(fn):Tr.add(fn)});var en=Array.from(Tr);xo(en),pi&&(Object(Le.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),pi(en))}}:Ha})},[zi,wo,na,La,pi,xo]),_o=Object(o.useCallback)(function(uo){if(!_t)return uo;var Ha=new Set(wo),mt=To.map(La).filter(function(Ai){return!ao.get(Ai).disabled}),Tr=mt.every(function(Ai){return Ha.has(Ai)}),en=mt.some(function(Ai){return Ha.has(Ai)}),Jr=function(){var Ni=[];Tr?mt.forEach(function(Ki){Ha.delete(Ki),Ni.push(Ki)}):mt.forEach(function(Ki){Ha.has(Ki)||(Ha.add(Ki),Ni.push(Ki))});var ia=Array.from(Ha);xo(ia),Wn&&Wn(!Tr,ia.map(function(Ki){return Pa(Ki)}),Ni.map(function(Ki){return Pa(Ki)}))},Jn;if(Ii!=="radio"){var fn;if(Ho){var Yr=o.createElement(Hi.a,{getPopupContainer:Xa},Ho.map(function(Ai,Ni){var ia=Ai.key,Ki=Ai.text,fa=Ai.onSelect;return o.createElement(Hi.a.Item,{key:ia||Ni,onClick:function(){fa&&fa(mt)}},Ki)}));fn=o.createElement("div",{className:"".concat(ca,"-selection-extra")},o.createElement(Di.a,{overlay:Yr,getPopupContainer:Xa},o.createElement("span",null,o.createElement(dn.a,null))))}var ni=To.every(function(Ai,Ni){var ia=La(Ai,Ni),Ki=ao.get(ia)||{};return Ki.disabled});Jn=!Wi&&o.createElement("div",{className:"".concat(ca,"-selection")},o.createElement(Ei.a,{checked:!ni&&!!To.length&&Tr,indeterminate:!Tr&&en,onChange:Jr,disabled:To.length===0||ni}),fn)}var nn;Ii==="radio"?nn=function(Ni,ia,Ki){var fa=La(ia,Ki),Ya=Ha.has(fa);return{node:o.createElement(nt.a,u()({},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}}:nn=function(Ni,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(Le.a)(!(typeof(Da==null?void 0:Da.indeterminate)=="boolean"),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ja=(fa=Da==null?void 0:Da.indeterminate)!==null&&fa!==void 0?fa:wa,{node:o.createElement(Ei.a,u()({},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]);mt.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=mt.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),Pi&&Pi(!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(ei.b)(is,Ya):Object(ei.a)(is,Ya);rs(Ya,!xa,cs,pa)}else{var Rs=Object(ti.a)([].concat(Ir()(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(ti.a)(Array.from(Ao),{checked:!1,halfCheckedKeys:as},mo,So).checkedKeys}rs(Ya,!xa,co,pa)}}os(Ya)}})),checked:xa}};var zn=function(Ni,ia,Ki){var fa=nn(Ni,ia,Ki),Ya=fa.node,xa=fa.checked;return Xi?Xi(xa,ia,Ki,Ya):Ya},li=v()({width:bi,className:"".concat(ca,"-selection-column"),title:_t.columnTitle||Jn,render:zn},$,{className:"".concat(ca,"-selection-col")});if(va==="row"&&uo.length&&!Aa){var ci=er()(uo),si=ci[0],Ci=ci.slice(1),mi=ea||tt(Ci[0]);return mi&&(si.fixed=mi),[si,u()(u()({},li),{fixed:mi})].concat(Ir()(Ci))}return[u()(u()({},li),{fixed:ea||tt(uo[0])})].concat(Ir()(uo))},[La,To,_t,Jo,wo,ts,bi,Ho,va,Io,ao,Pi,rs,So]);return[_o,wo]}var Et=n("6SEX"),gt=n.n(Et),pr=n("i8CU"),qr=n.n(pr),Qr=n("3S7+");function gn(_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 vr(_t,Or){return Or?"".concat(Or,"-").concat(_t):"".concat(_t)}function Vn(_t,Or){return typeof _t=="function"?_t(Or):_t}var kr="ascend",Bn="descend";function on(_t){return p()(_t.sorter)==="object"&&typeof _t.sorter.multiple=="number"?_t.sorter.multiple:!1}function jr(_t){return typeof _t=="function"?_t:_t&&p()(_t)==="object"&&_t.compare?_t.compare:!1}function ai(_t,Or){return Or?_t[_t.indexOf(Or)+1]:_t[0]}function Oi(_t,Or,Nr){var tn=[];function xn(Ln,Sn){tn.push({column:Ln,key:gn(Ln,Sn),multiplePriority:on(Ln),sortOrder:Ln.sortOrder})}return(_t||[]).forEach(function(Ln,Sn){var qn=vr(Sn,Nr);Ln.children?("sortOrder"in Ln&&xn(Ln,qn),tn=[].concat(Ir()(tn),Ir()(Oi(Ln.children,Or,qn)))):Ln.sorter&&("sortOrder"in Ln?xn(Ln,qn):Or&&Ln.defaultSortOrder&&tn.push({column:Ln,key:gn(Ln,qn),multiplePriority:on(Ln),sortOrder:Ln.defaultSortOrder}))}),tn}function Gi(_t,Or,Nr,tn,xn,Ln,Sn,qn){return(Or||[]).map(function(Wn,pi){var Pi=vr(pi,qn),bi=Wn;if(bi.sorter){var Ii=bi.sortDirections||xn,zi=bi.showSorterTooltip===void 0?Sn:bi.showSorterTooltip,ea=gn(bi,Pi),Xi=Nr.find(function(ga){var Oa=ga.key;return Oa===ea}),Wi=Xi?Xi.sortOrder:null,ji=ai(Ii,Wi),Ji=Ii.includes(kr)&&o.createElement(qr.a,{className:t()("".concat(_t,"-column-sorter-up"),{active:Wi===kr})}),ca=Ii.includes(Bn)&&o.createElement(gt.a,{className:t()("".concat(_t,"-column-sorter-down"),{active:Wi===Bn})}),Ca=Ln||{},na=Ca.cancelSort,Pa=Ca.triggerAsc,La=Ca.triggerDesc,va=na;ji===Bn?va=La:ji===kr&&(va=Pa),bi=u()(u()({},bi),{className:t()(bi.className,v()({},"".concat(_t,"-column-sort"),Wi)),title:function(Oa){var Aa=o.createElement("div",{className:"".concat(_t,"-column-sorters")},o.createElement("span",null,Vn(Wn.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(Qr.a,{title:va},o.createElement("div",{className:"".concat(_t,"-column-sorters-with-tooltip")},Aa)):Aa},onHeaderCell:function(Oa){var Aa=Wn.onHeaderCell&&Wn.onHeaderCell(Oa)||{},Xa=Aa.onClick;return Aa.onClick=function(_a){tn({column:Wn,key:ea,sortOrder:ji,multiplePriority:on(Wn)}),Xa&&Xa(_a)},Aa.className=t()(Aa.className,"".concat(_t,"-column-has-sorters")),Aa}})}return"children"in bi&&(bi=u()(u()({},bi),{children:Gi(_t,bi.children,Nr,tn,xn,Ln,Sn,Pi)})),bi})}function rn(_t){var Or=_t.column,Nr=_t.sortOrder;return{column:Or,order:Nr,field:Or.dataIndex,columnKey:Or.key}}function Cn(_t){var Or=_t.filter(function(Nr){var tn=Nr.sortOrder;return tn}).map(rn);return Or.length===0&&_t.length?u()(u()({},rn(_t[_t.length-1])),{column:void 0}):Or.length<=1?Or[0]||{}:Or}function Yn(_t,Or,Nr){var tn=Or.slice().sort(function(Sn,qn){return qn.multiplePriority-Sn.multiplePriority}),xn=_t.slice(),Ln=tn.filter(function(Sn){var qn=Sn.column.sorter,Wn=Sn.sortOrder;return jr(qn)&&Wn});return Ln.length?xn.sort(function(Sn,qn){for(var Wn=0;Wn<Ln.length;Wn+=1){var pi=Ln[Wn],Pi=pi.column.sorter,bi=pi.sortOrder,Ii=jr(Pi);if(Ii&&bi){var zi=Ii(Sn,qn,bi);if(zi!==0)return bi===kr?zi:-zi}}return 0}).map(function(Sn){var qn=Sn[Nr];return qn?u()(u()({},Sn),v()({},Nr,Yn(qn,Or,Nr))):Sn}):xn}function Gt(_t){var Or=_t.prefixCls,Nr=_t.mergedColumns,tn=_t.onSorterChange,xn=_t.sortDirections,Ln=_t.tableLocale,Sn=_t.showSorterTooltip,qn=o.useState(Oi(Nr,!0)),Wn=f()(qn,2),pi=Wn[0],Pi=Wn[1],bi=o.useMemo(function(){var Wi=!0,ji=Oi(Nr,!1);if(!ji.length)return pi;var Ji=[];function ca(na){Wi?Ji.push(na):Ji.push(u()(u()({},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},[Nr,pi]),Ii=o.useMemo(function(){var Wi=bi.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}},[bi]);function zi(Wi){var ji;Wi.multiplePriority===!1||!bi.length||bi[0].multiplePriority===!1?ji=[Wi]:ji=[].concat(Ir()(bi.filter(function(Ji){var ca=Ji.key;return ca!==Wi.key})),[Wi]),Pi(ji),tn(Cn(ji),ji)}var ea=function(ji){return Gi(Or,ji,bi,zi,xn,Ln,Sn)},Xi=function(){return Cn(bi)};return[ea,bi,Ii,Xi]}var Ot=n("Y+p1"),Rt=n.n(Ot),jt=n("5Uyt"),zt=n.n(jt),Lt=n("2/Rp"),cr=n("ECub"),Ar=function(Or){return o.createElement("div",{className:Or.className,onClick:function(tn){return tn.stopPropagation()}},Or.children)},br=Ar,Pr=n("sPtV"),Xn=Hi.a.SubMenu,Pn=Hi.a.Item;function di(_t){return _t.some(function(Or){var Nr=Or.children;return Nr})}function An(_t){var Or=_t.filters,Nr=_t.prefixCls,tn=_t.filteredKeys,xn=_t.filterMultiple,Ln=_t.locale;return Or.length===0?o.createElement(o.Fragment,null,o.createElement(cr.a,{image:cr.a.PRESENTED_IMAGE_SIMPLE,description:Ln.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}})):Or.map(function(Sn,qn){var Wn=String(Sn.value);if(Sn.children)return o.createElement(Xn,{key:Wn||qn,title:Sn.text,popupClassName:"".concat(Nr,"-dropdown-submenu")},An({filters:Sn.children,prefixCls:Nr,filteredKeys:tn,filterMultiple:xn,locale:Ln}));var pi=xn?Ei.a:nt.a;return o.createElement(Pn,{key:Sn.value!==void 0?Wn:qn},o.createElement(pi,{checked:tn.includes(Wn)}),o.createElement("span",null,Sn.text))})}function Ur(_t){var Or,Nr=_t.prefixCls,tn=_t.column,xn=_t.dropdownPrefixCls,Ln=_t.columnKey,Sn=_t.filterMultiple,qn=_t.filterState,Wn=_t.triggerFilter,pi=_t.locale,Pi=_t.children,bi=_t.getPopupContainer,Ii=tn.filterDropdownVisible,zi=tn.onFilterDropdownVisibleChange,ea=o.useState(!1),Xi=f()(ea,2),Wi=Xi[0],ji=Xi[1],Ji=!!(qn&&(((Or=qn.filteredKeys)===null||Or===void 0?void 0:Or.length)||qn.forceFiltered)),ca=function(Oo){ji(Oo),zi&&zi(Oo)},Ca=typeof Ii=="boolean"?Ii:Wi,na=qn&&qn.filteredKeys,Pa=Object(Pr.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],Fi=o.useRef(),io=function(Oo){Fi.current=window.setTimeout(function(){Va(Oo)})},oo=function(){window.clearTimeout(Fi.current)};o.useEffect(function(){return function(){window.clearTimeout(Fi.current)}},[]);var Qo=function(Oo){ca(!1);var Io=Oo&&Oo.length?Oo:null;if(Io===null&&(!qn||!qn.filteredKeys))return null;if(Rt()(Io,qn==null?void 0:qn.filteredKeys))return null;Wn({column:tn,key:Ln,filteredKeys:Io})},mo=function(){Qo(va())},To=function(){ga([]),Qo([])},ao=function(Oo){Oo&&na!==void 0&&ga(na||[]),ca(Oo),!Oo&&!tn.filterDropdown&&mo()},So=t()(v()({},"".concat(xn,"-menu-without-submenu"),!di(tn.filters||[]))),bo;if(typeof tn.filterDropdown=="function")bo=tn.filterDropdown({prefixCls:"".concat(xn,"-custom"),setSelectedKeys:function(Oo){return Oa({selectedKeys:Oo})},selectedKeys:va(),confirm:mo,clearFilters:To,filters:tn.filters,visible:Ca});else if(tn.filterDropdown)bo=tn.filterDropdown;else{var to=va()||[];bo=o.createElement(o.Fragment,null,o.createElement(Hi.a,{multiple:Sn,prefixCls:"".concat(xn,"-menu"),className:So,onClick:oo,onSelect:Oa,onDeselect:Oa,selectedKeys:to,getPopupContainer:bi,openKeys:_a,onOpenChange:io},An({filters:tn.filters||[],prefixCls:Nr,filteredKeys:va(),filterMultiple:Sn,locale:pi})),o.createElement("div",{className:"".concat(Nr,"-dropdown-btns")},o.createElement(Lt.a,{type:"link",size:"small",disabled:to.length===0,onClick:To},pi.filterReset),o.createElement(Lt.a,{type:"primary",size:"small",onClick:mo},pi.filterConfirm)))}var Jo=o.createElement(br,{className:"".concat(Nr,"-dropdown")},bo),Uo;typeof tn.filterIcon=="function"?Uo=tn.filterIcon(Ji):tn.filterIcon?Uo=tn.filterIcon:Uo=o.createElement(zt.a,null);var wo=o.useContext(Ft.b),ts=wo.direction;return o.createElement("div",{className:t()("".concat(Nr,"-column"))},o.createElement("span",{className:"".concat(Nr,"-column-title")},Pi),o.createElement("span",{className:t()("".concat(Nr,"-trigger-container"),v()({},"".concat(Nr,"-trigger-container-open"),Ca)),onClick:function(Oo){Oo.stopPropagation()}},o.createElement(Di.a,{overlay:Jo,trigger:["click"],visible:Ca,onVisibleChange:ao,getPopupContainer:bi,placement:ts==="rtl"?"bottomLeft":"bottomRight"},o.createElement("span",{role:"button",tabIndex:-1,className:t()("".concat(Nr,"-trigger"),{active:Ji})},Uo))))}var In=Ur;function Qn(_t,Or,Nr){var tn=[];return(_t||[]).forEach(function(xn,Ln){var Sn=vr(Ln,Nr);"children"in xn?tn=[].concat(Ir()(tn),Ir()(Qn(xn.children,Or,Sn))):(xn.filters||"filterDropdown"in xn||"onFilter"in xn)&&("filteredValue"in xn?tn.push({column:xn,key:gn(xn,Sn),filteredKeys:xn.filteredValue,forceFiltered:xn.filtered}):tn.push({column:xn,key:gn(xn,Sn),filteredKeys:Or&&xn.defaultFilteredValue?xn.defaultFilteredValue:void 0,forceFiltered:xn.filtered}))}),tn}function $n(_t,Or,Nr,tn,xn,Ln,Sn,qn){return Nr.map(function(Wn,pi){var Pi=vr(pi,qn),bi=Wn.filterMultiple,Ii=bi===void 0?!0:bi;if(Wn.filters||"filterDropdown"in Wn){var zi=gn(Wn,Pi),ea=tn.find(function(Xi){var Wi=Xi.key;return zi===Wi});return u()(u()({},Wn),{title:function(Wi){return o.createElement(In,{prefixCls:"".concat(_t,"-filter"),dropdownPrefixCls:Or,column:Wn,columnKey:zi,filterState:ea,filterMultiple:Ii,triggerFilter:xn,locale:Sn,getPopupContainer:Ln},Vn(Wn.title,Wi))}})}return"children"in Wn?u()(u()({},Wn),{children:$n(_t,Or,Wn.children,tn,xn,Ln,Sn,Pi)}):Wn})}function oi(_t){var Or={};return _t.forEach(function(Nr){var tn=Nr.key,xn=Nr.filteredKeys;Or[tn]=xn||null}),Or}function Ti(_t){var Or=[];return(_t||[]).forEach(function(Nr){var tn=Nr.value,xn=Nr.children;Or.push(tn),xn&&(Or=[].concat(Ir()(Or),Ir()(Ti(xn))))}),Or}function ki(_t,Or){return Or.reduce(function(Nr,tn){var xn=tn.column,Ln=xn.onFilter,Sn=xn.filters,qn=tn.filteredKeys;return Ln&&qn&&qn.length?Nr.filter(function(Wn){return qn.some(function(pi){var Pi=Ti(Sn),bi=Pi.findIndex(function(zi){return String(zi)===String(pi)}),Ii=bi!==-1?Pi[bi]:pi;return Ln(Ii,Wn)})}):Nr},_t)}function Ri(_t){var Or=_t.prefixCls,Nr=_t.dropdownPrefixCls,tn=_t.mergedColumns,xn=_t.onFilterChange,Ln=_t.getPopupContainer,Sn=_t.locale,qn=o.useState(Qn(tn,!0)),Wn=f()(qn,2),pi=Wn[0],Pi=Wn[1],bi=o.useMemo(function(){var Xi=Qn(tn,!1);return Xi.every(function(Wi){var ji=Wi.filteredKeys;return ji===void 0})?pi:Xi},[tn,pi]),Ii=o.useCallback(function(){return oi(bi)},[bi]),zi=function(Wi){var ji=bi.filter(function(Ji){var ca=Ji.key;return ca!==Wi.key});ji.push(Wi),Pi(ji),xn(oi(ji),ji)},ea=function(Wi){return $n(Or,Nr,Wi,bi,zi,Ln,Sn)};return[ea,bi,Ii]}var oa=Ri;function ma(_t,Or){return _t.map(function(Nr){var tn=u()({},Nr);return tn.title=Vn(Nr.title,Or),"children"in tn&&(tn.children=ma(tn.children,Or)),tn})}function aa(_t){var Or=o.useCallback(function(Nr){return ma(Nr,_t)},[_t]);return[Or]}function ba(_t){return function(Nr){var tn,xn=Nr.prefixCls,Ln=Nr.onExpand,Sn=Nr.record,qn=Nr.expanded,Wn=Nr.expandable,pi="".concat(xn,"-row-expand-icon");return o.createElement("button",{type:"button",onClick:function(bi){Ln(Sn,bi),bi.stopPropagation()},className:t()(pi,(tn={},v()(tn,"".concat(pi,"-spaced"),!Wn),v()(tn,"".concat(pi,"-expanded"),Wn&&qn),v()(tn,"".concat(pi,"-collapsed"),Wn&&!qn),tn)),"aria-label":qn?_t.collapse:_t.expand})}}var yi=ba,kn=n("zAh6"),Ui=n("ZvpZ"),ha=Ui.a,ta=n("3Nzz");function ra(_t){return null}var Lr=ra;function xr(_t){return null}var Tn=xr,mr=n("5OYt"),Mr=[];function Xr(_t){var Or,Nr=_t.prefixCls,tn=_t.className,xn=_t.style,Ln=_t.size,Sn=_t.bordered,qn=_t.dropdownPrefixCls,Wn=_t.dataSource,pi=_t.pagination,Pi=_t.rowSelection,bi=_t.rowKey,Ii=_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(Le.a)(!(typeof bi=="function"&&bi.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var _a=Object(mr.a)(),Va=o.useMemo(function(){var Ao=new Set(Object.keys(_a).filter(function($a){return _a[$a]}));return(zi||pe(ea)).filter(function($a){return!$a.responsive||$a.responsive.some(function(ss){return Ao.has(ss)})})},[ea,zi,_a]),Fi=Object(s.default)(_t,["className","style","columns"]),io=o.useContext(ta.b),oo=o.useContext(Ft.b),Qo=oo.locale,mo=Qo===void 0?ha:Qo,To=oo.renderEmpty,ao=oo.direction,So=Ln||io,bo=u()(u()({},mo.Table),Oa),to=Wn||Mr,Jo=o.useContext(Ft.b),Uo=Jo.getPrefixCls,wo=Uo("table",Nr),ts=Uo("dropdown",qn),Ia=u()({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 bi=="function"?bi:function(Ao){var $a;return($a=Ao)===null||$a===void 0?void 0:$a[bi]}},[bi]),Ho=qt(to,Io,rs),_o=f()(Ho,1),uo=_o[0],Ha={},mt=function($a,ss){var _s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Fo=u()(u()({},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(kn.a)(0,{getContainer:function(){return xo.body.current}}),Wi&&Wi(Fo.pagination,Fo.filters,Fo.sorter,{currentDataSource:ki(Yn(to,Fo.sorterStates,Io),Fo.filterStates),action:ss})},Tr=function($a,ss){mt({sorter:$a,sorterStates:ss},"sort",!1)},en=Gt({prefixCls:wo,mergedColumns:Va,onSorterChange:Tr,sortDirections:ga||["ascend","descend"],tableLocale:bo,showSorterTooltip:Xa}),Jr=f()(en,4),Jn=Jr[0],fn=Jr[1],Yr=Jr[2],ni=Jr[3],nn=o.useMemo(function(){return Yn(to,fn,Io)},[to,fn]);Ha.sorter=ni(),Ha.sorterStates=fn;var zn=function($a,ss){mt({filters:$a,filterStates:ss},"filter",!0)},li=oa({prefixCls:wo,locale:bo,dropdownPrefixCls:ts,mergedColumns:Va,onFilterChange:zn,getPopupContainer:ji}),ci=f()(li,3),si=ci[0],Ci=ci[1],mi=ci[2],Ai=ki(nn,Ci);Ha.filters=mi(),Ha.filterStates=Ci;var Ni=o.useMemo(function(){return u()({},Yr)},[Yr]),ia=aa(Ni),Ki=f()(ia,1),fa=Ki[0],Ya=function($a,ss){mt({pagination:u()(u()({},Ha.pagination),{current:$a,pageSize:ss})},"paginate")},xa=Mt(Ai.length,pi,Ya),wa=f()(xa,2),Da=wa[0],ja=wa[1];Ha.pagination=pi===!1?{}:fr(pi,Da),Ha.resetPagination=ja;var ko=o.useMemo(function(){if(pi===!1||!Da.pageSize)return Ai;var Ao=Da.current,$a=Ao===void 0?1:Ao,ss=Da.total,_s=Da.pageSize,Fo=_s===void 0?bt:_s;return Ai.length<ss?Ai.length>Fo?(Object(Le.a)(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),Ai.slice(($a-1)*Fo,$a*Fo)):Ai:Ai.slice(($a-1)*Fo,$a*Fo)},[!!pi,Ai,Da&&Da.current,Da&&Da.pageSize,Da&&Da.total]),ro=st(Pi,{prefixCls:wo,data:Ai,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 Ii=="function"?Fo=t()(Ii($a,ss,_s)):Fo=t()(Ii),t()(v()({},"".concat(wo,"-row-selected"),Fa.has(rs($a,ss))),Fo)};Ia.__PARENT_RENDER_ICON__=Ia.expandIcon,Ia.expandIcon=Ia.expandIcon||ca||yi(bo),os==="nest"&&Ia.expandIconColumnIndex===void 0?Ia.expandIconColumnIndex=Pi?1:0:Ia.expandIconColumnIndex>0&&Pi&&(Ia.expandIconColumnIndex-=1),typeof Ia.indentSize!="number"&&(Ia.indentSize=typeof La=="number"?La:15);var lo=o.useCallback(function(Ao){return fa(Ea(si(Jn(Ao))))},[Jn,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(hn.a,u()({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=u()({spinning:!0},Ji));var co=t()("".concat(wo,"-wrapper"),tn,v()({},"".concat(wo,"-wrapper-rtl"),ao==="rtl"));return o.createElement("div",{className:co,style:xn},o.createElement(Vr.a,u()({spinning:!1},as),so,o.createElement(Rr,u()({},Fi,{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"),Sn),v()(Or,"".concat(wo,"-empty"),to.length===0),Or)),data:ko,rowKey:rs,rowClassName:Ka,emptyText:Oa&&Oa.emptyText||To("Table"),internalHooks:et,internalRefs:xo,transformColumns:lo})),Ai&&Ai.length>0&&Co))}Xr.defaultProps={rowKey:"key"},Xr.SELECTION_ALL=je,Xr.SELECTION_INVERT=Xe,Xr.Column=Lr,Xr.ColumnGroup=Tn,Xr.Summary=_n;var un=Xr,Fn=D.a=un},wDdD:function(k,D,n){var y=n("ProS"),p=n("bYtY");n("98bh"),n("GrNh");var x=n("d4KN"),v=n("mOdp"),m=n("KS52"),f=n("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(k,D,n){var y=n("e5cp"),p=n("ExA7");function x(v,m,f,d,u){return v===m?!0:v==null||m==null||!p(v)&&!p(m)?v!==v&&m!==m:y(v,m,f,d,x,u)}k.exports=x},wFql:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),v=n.n(x),m=n("q1tI"),f=n("TSYQ"),d=n.n(f),u=n("H84U"),o=n("uaoM"),i=n("ID/q"),t=function(Bt,sr){var Yt={};for(var pt in Bt)Object.prototype.hasOwnProperty.call(Bt,pt)&&sr.indexOf(pt)<0&&(Yt[pt]=Bt[pt]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,pt=Object.getOwnPropertySymbols(Bt);it<pt.length;it++)sr.indexOf(pt[it])<0&&Object.prototype.propertyIsEnumerable.call(Bt,pt[it])&&(Yt[pt[it]]=Bt[pt[it]]);return Yt},s=function(sr,Yt){var pt=sr.prefixCls,it=sr.component,Fr=it===void 0?"article":it,cn=sr.className,_n=sr["aria-label"],Kn=sr.setContentRef,gi=sr.children,Mn=t(sr,["prefixCls","component","className","aria-label","setContentRef","children"]),Un=Yt;return Kn&&(Object(o.a)(!1,"Typography","`setContentRef` is deprecated. Please use `ref` instead."),Un=Object(i.a)(Yt,Kn)),m.createElement(u.a,null,function($t){var Ct=$t.getPrefixCls,Re=$t.direction,De=Fr,Pe=Ct("typography",pt),et=d()(Pe,cn,v()({},"".concat(Pe,"-rtl"),Re==="rtl"));return m.createElement(De,p()({className:et,"aria-label":_n,ref:Un},Mn),gi)})},e=m.forwardRef(s);e.displayName="Typography";var l=e,r=l,a=n("cDf5"),c=n.n(a),h=n("RIqP"),g=n.n(h),A=n("lwsE"),b=n.n(A),S=n("W8MJ"),E=n.n(S),C=n("7W2i"),_=n.n(C),T=n("LQ03"),w=n.n(T),O=n("Zm9Q"),I=n("m+aA"),R=n("+QRC"),M=n.n(R),B=n("BGR+"),P=n("s/wZ"),X=n.n(P),F=n("NAnI"),j=n.n(F),K=n("0OKo"),z=n.n(K),V=n("6ner"),Q=n("wEI+"),G=n("YMnH"),te=n("4IlW"),q=function(Bt,sr){var Yt={};for(var pt in Bt)Object.prototype.hasOwnProperty.call(Bt,pt)&&sr.indexOf(pt)<0&&(Yt[pt]=Bt[pt]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,pt=Object.getOwnPropertySymbols(Bt);it<pt.length;it++)sr.indexOf(pt[it])<0&&Object.prototype.propertyIsEnumerable.call(Bt,pt[it])&&(Yt[pt[it]]=Bt[pt[it]]);return Yt},le={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},re=function(Bt){_()(Yt,Bt);var sr=w()(Yt);function Yt(){var pt;return b()(this,Yt),pt=sr.apply(this,arguments),pt.onKeyDown=function(it){var Fr=it.keyCode;Fr===te.a.ENTER&&it.preventDefault()},pt.onKeyUp=function(it){var Fr=it.keyCode,cn=pt.props.onClick;Fr===te.a.ENTER&&cn&&cn()},pt.setRef=function(it){pt.div=it},pt}return E()(Yt,[{key:"componentDidMount",value:function(){var it=this.props.autoFocus;it&&this.focus()}},{key:"focus",value:function(){this.div&&this.div.focus()}},{key:"blur",value:function(){this.div&&this.div.blur()}},{key:"render",value:function(){var it=this.props,Fr=it.style,cn=it.noStyle,_n=it.disabled,Kn=q(it,["style","noStyle","disabled"]),gi={};return cn||(gi=p()({},le)),_n&&(gi.pointerEvents="none"),gi=p()(p()({},gi),Fr),m.createElement("div",p()({role:"button",tabIndex:0,ref:this.setRef},Kn,{onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,style:gi}))}}]),Yt}(m.Component),we=re,Ie=n("oHiP"),Me=function(sr){if(typeof window!="undefined"&&window.document&&window.document.documentElement){var Yt=Array.isArray(sr)?sr:[sr],pt=window.document.documentElement;return Yt.some(function(it){return it in pt.style})}return!1},Je=Me(["flex","webkitFlex","Flex","msFlex"]),Ve=Me,ut=n("3S7+"),Fe=n("FMes"),ae=n.n(Fe),at=n("whJP"),he=function(Bt){_()(Yt,Bt);var sr=w()(Yt);function Yt(){var pt;return b()(this,Yt),pt=sr.apply(this,arguments),pt.inComposition=!1,pt.state={current:""},pt.onChange=function(it){var Fr=it.target.value;pt.setState({current:Fr.replace(/[\n\r]/g,"")})},pt.onCompositionStart=function(){pt.inComposition=!0},pt.onCompositionEnd=function(){pt.inComposition=!1},pt.onKeyDown=function(it){var Fr=it.keyCode;if(pt.inComposition)return;pt.lastKeyCode=Fr},pt.onKeyUp=function(it){var Fr=it.keyCode,cn=it.ctrlKey,_n=it.altKey,Kn=it.metaKey,gi=it.shiftKey,Mn=pt.props.onCancel;pt.lastKeyCode===Fr&&!pt.inComposition&&!cn&&!_n&&!Kn&&!gi&&(Fr===te.a.ENTER?pt.confirmChange():Fr===te.a.ESC&&Mn())},pt.onBlur=function(){pt.confirmChange()},pt.confirmChange=function(){var it=pt.state.current,Fr=pt.props.onSave;Fr(it.trim())},pt.setTextarea=function(it){pt.textarea=it},pt}return E()(Yt,[{key:"componentDidMount",value:function(){if(this.textarea&&this.textarea.resizableTextArea){var it=this.textarea.resizableTextArea.textArea;it.focus();var Fr=it.value.length;it.setSelectionRange(Fr,Fr)}}},{key:"render",value:function(){var it=this.state.current,Fr=this.props,cn=Fr.prefixCls,_n=Fr["aria-label"],Kn=Fr.className,gi=Fr.style,Mn=Fr.direction,Un=Fr.maxLength,$t=Fr.autoSize,Ct=d()(cn,Kn,"".concat(cn,"-edit-content"),v()({},"".concat(cn,"-rtl"),Mn==="rtl"));return m.createElement("div",{className:Ct,style:gi},m.createElement(at.a,{ref:this.setTextarea,maxLength:Un,value:it,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onCompositionStart:this.onCompositionStart,onCompositionEnd:this.onCompositionEnd,onBlur:this.onBlur,"aria-label":_n,autoSize:$t===void 0||$t}),m.createElement(ae.a,{className:"".concat(cn,"-edit-content-confirm")}))}}],[{key:"getDerivedStateFromProps",value:function(it,Fr){var cn=Fr.prevValue,_n=it.value,Kn={prevValue:_n};return cn!==_n&&(Kn.current=_n),Kn}}]),Yt}(m.Component),J=he,Y=n("i8i4"),$=1,de=3,be=8,Ce,Be={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function fe(Bt){if(!Bt)return 0;var sr=Bt.match(/^\d*(\.\d*)?/);return sr?Number(sr[0]):0}function Se(Bt){var sr=Array.prototype.slice.apply(Bt);return sr.map(function(Yt){return"".concat(Yt,": ").concat(Bt.getPropertyValue(Yt),";")}).join("")}function ke(Bt){var sr=[];return Bt.forEach(function(Yt){var pt=sr[sr.length-1];typeof Yt=="string"&&typeof pt=="string"?sr[sr.length-1]+=Yt:sr.push(Yt)}),sr}var rt=function(Bt,sr,Yt,pt,it){Ce||(Ce=document.createElement("div"),Ce.setAttribute("aria-hidden","true"),document.body.appendChild(Ce));var Fr=sr.rows,cn=sr.suffix,_n=cn===void 0?"":cn,Kn=window.getComputedStyle(Bt),gi=Se(Kn),Mn=fe(Kn.lineHeight),Un=Math.round(Mn*(Fr+1)+fe(Kn.paddingTop)+fe(Kn.paddingBottom));Ce.setAttribute("style",gi),Ce.style.position="fixed",Ce.style.left="0",Ce.style.height="auto",Ce.style.minHeight="auto",Ce.style.maxHeight="auto",Ce.style.top="-999999px",Ce.style.zIndex="-1000",Ce.style.textOverflow="clip",Ce.style.whiteSpace="normal",Ce.style.webkitLineClamp="none";var $t=ke(Object(O.a)(Yt));Object(Y.render)(m.createElement("div",{style:Be},m.createElement("span",{style:Be},$t,_n),m.createElement("span",{style:Be},pt)),Ce);function Ct(){return Ce.offsetHeight<Un}if(Ct())return Object(Y.unmountComponentAtNode)(Ce),{content:Yt,text:Ce.innerHTML,ellipsis:!1};var Re=Array.prototype.slice.apply(Ce.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(function(Vr){var hn=Vr.nodeType;return hn!==be}),De=Array.prototype.slice.apply(Ce.childNodes[0].childNodes[1].cloneNode(!0).childNodes);Object(Y.unmountComponentAtNode)(Ce);var Pe=[];Ce.innerHTML="";var et=document.createElement("span");Ce.appendChild(et);var yt=document.createTextNode(it+_n);et.appendChild(yt),De.forEach(function(Vr){Ce.appendChild(Vr)});function St(Vr){et.insertBefore(Vr,yt)}function Vt(Vr,hn){var Ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:hn.length,bt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,fr=Math.floor((Ft+vt)/2),Qt=hn.slice(0,fr);if(Vr.textContent=Qt,Ft>=vt-1)for(var Mt=vt;Mt>=Ft;Mt-=1){var qt=hn.slice(0,Mt);if(Vr.textContent=qt,Ct()||!qt)return Mt===hn.length?{finished:!1,reactNode:hn}:{finished:!0,reactNode:qt}}return Ct()?Vt(Vr,hn,fr,vt,fr):Vt(Vr,hn,Ft,fr,bt)}function Rr(Vr,hn){var Ft=Vr.nodeType;if(Ft===$)return St(Vr),Ct()?{finished:!1,reactNode:$t[hn]}:(et.removeChild(Vr),{finished:!0,reactNode:null});if(Ft===de){var vt=Vr.textContent||"",bt=document.createTextNode(vt);return St(bt),Vt(bt,vt)}return{finished:!1,reactNode:null}}return Re.some(function(Vr,hn){var Ft=Rr(Vr,hn),vt=Ft.finished,bt=Ft.reactNode;return bt&&Pe.push(bt),vt}),{content:Pe,text:Ce.innerHTML,ellipsis:!0}},xt=function(Bt,sr){var Yt={};for(var pt in Bt)Object.prototype.hasOwnProperty.call(Bt,pt)&&sr.indexOf(pt)<0&&(Yt[pt]=Bt[pt]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,pt=Object.getOwnPropertySymbols(Bt);it<pt.length;it++)sr.indexOf(pt[it])<0&&Object.prototype.propertyIsEnumerable.call(Bt,pt[it])&&(Yt[pt[it]]=Bt[pt[it]]);return Yt},ht=Ve("webkitLineClamp"),He=Ve("textOverflow");function ir(Bt,sr){var Yt=Bt.mark,pt=Bt.code,it=Bt.underline,Fr=Bt.delete,cn=Bt.strong,_n=Bt.keyboard,Kn=sr;function gi(Mn,Un){if(!Mn)return;Kn=m.createElement(Un,{},Kn)}return gi(cn,"strong"),gi(it,"u"),gi(Fr,"del"),gi(pt,"code"),gi(Yt,"mark"),gi(_n,"kbd"),Kn}var ct="...",Xt=function(Bt){_()(Yt,Bt);var sr=w()(Yt);function Yt(){var pt;return b()(this,Yt),pt=sr.apply(this,arguments),pt.contentRef=m.createRef(),pt.state={edit:!1,copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1},pt.getPrefixCls=function(){var it=pt.props.prefixCls,Fr=pt.context.getPrefixCls;return Fr("typography",it)},pt.onExpandClick=function(it){var Fr=pt.getEllipsis(),cn=Fr.onExpand;pt.setState({expanded:!0}),cn&&cn(it)},pt.onEditClick=function(){pt.triggerEdit(!0)},pt.onEditChange=function(it){var Fr=pt.getEditable(),cn=Fr.onChange;cn&&cn(it),pt.triggerEdit(!1)},pt.onEditCancel=function(){pt.triggerEdit(!1)},pt.onCopyClick=function(){var it=pt.props,Fr=it.children,cn=it.copyable,_n=p()({},c()(cn)==="object"?cn:null);_n.text===void 0&&(_n.text=String(Fr)),M()(_n.text||""),pt.setState({copied:!0},function(){_n.onCopy&&_n.onCopy(),pt.copyId=window.setTimeout(function(){pt.setState({copied:!1})},3e3)})},pt.setEditRef=function(it){pt.editIcon=it},pt.triggerEdit=function(it){var Fr=pt.getEditable(),cn=Fr.onStart;it&&cn&&cn(),pt.setState({edit:it},function(){!it&&pt.editIcon&&pt.editIcon.focus()})},pt.resizeOnNextFrame=function(){Ie.a.cancel(pt.rafId),pt.rafId=Object(Ie.a)(function(){pt.syncEllipsis()})},pt}return E()(Yt,[{key:"componentDidMount",value:function(){this.setState({clientRendered:!0}),this.resizeOnNextFrame()}},{key:"componentDidUpdate",value:function(it){var Fr=this.props.children,cn=this.getEllipsis(),_n=this.getEllipsis(it);(Fr!==it.children||cn.rows!==_n.rows)&&this.resizeOnNextFrame()}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.copyId),Ie.a.cancel(this.rafId)}},{key:"getEditable",value:function(it){var Fr=this.state.edit,cn=it||this.props,_n=cn.editable;return _n?p()({editing:Fr},c()(_n)==="object"?_n:null):{editing:Fr}}},{key:"getEllipsis",value:function(it){var Fr=it||this.props,cn=Fr.ellipsis;return cn?p()({rows:1,expandable:!1},c()(cn)==="object"?cn:null):{}}},{key:"canUseCSSEllipsis",value:function(){var it=this.state.clientRendered,Fr=this.props,cn=Fr.editable,_n=Fr.copyable,Kn=this.getEllipsis(),gi=Kn.rows,Mn=Kn.expandable,Un=Kn.suffix,$t=Kn.onEllipsis;return Un||(cn||_n||Mn||!it||$t)?!1:gi===1?He:ht}},{key:"syncEllipsis",value:function(){var it=this.state,Fr=it.ellipsisText,cn=it.isEllipsis,_n=it.expanded,Kn=this.getEllipsis(),gi=Kn.rows,Mn=Kn.suffix,Un=Kn.onEllipsis,$t=this.props.children;if(!gi||gi<0||!this.contentRef.current||_n)return;if(this.canUseCSSEllipsis())return;Object(o.a)(Object(O.a)($t).every(function(et){return typeof et=="string"}),"Typography","`ellipsis` should use string as children only.");var Ct=rt(Object(I.a)(this.contentRef.current),{rows:gi,suffix:Mn},$t,this.renderOperations(!0),ct),Re=Ct.content,De=Ct.text,Pe=Ct.ellipsis;(Fr!==De||cn!==Pe)&&(this.setState({ellipsisText:De,ellipsisContent:Re,isEllipsis:Pe}),cn!==Pe&&Un&&Un(Pe))}},{key:"renderExpand",value:function(it){var Fr=this.getEllipsis(),cn=Fr.expandable,_n=Fr.symbol,Kn=this.state,gi=Kn.expanded,Mn=Kn.isEllipsis;if(!cn)return null;if(!it&&(gi||!Mn))return null;var Un;return _n?Un=_n:Un=this.expandStr,m.createElement("a",{key:"expand",className:"".concat(this.getPrefixCls(),"-expand"),onClick:this.onExpandClick,"aria-label":this.expandStr},Un)}},{key:"renderEdit",value:function(){var it=this.props.editable;if(!it)return;var Fr=it.icon,cn=it.tooltip,_n=Object(O.a)(cn)[0]||this.editStr,Kn=typeof _n=="string"?_n:"";return m.createElement(ut.a,{key:"edit",title:cn===!1?"":_n},m.createElement(we,{ref:this.setEditRef,className:"".concat(this.getPrefixCls(),"-edit"),onClick:this.onEditClick,"aria-label":Kn},Fr||m.createElement(X.a,{role:"button"})))}},{key:"renderCopy",value:function(){var it=this.state.copied,Fr=this.props.copyable;if(!Fr)return;var cn=this.getPrefixCls(),_n=Fr.tooltips,Kn=Object(O.a)(_n);Kn.length===0&&(Kn=[this.copyStr,this.copiedStr]);var gi=it?Kn[1]:Kn[0],Mn=typeof gi=="string"?gi:"",Un=Object(O.a)(Fr.icon);return m.createElement(ut.a,{key:"copy",title:_n===!1?"":gi},m.createElement(we,{className:d()("".concat(cn,"-copy"),it&&"".concat(cn,"-copy-success")),onClick:this.onCopyClick,"aria-label":Mn},it?Un[1]||m.createElement(j.a,null):Un[0]||m.createElement(z.a,null)))}},{key:"renderEditInput",value:function(){var it=this.props,Fr=it.children,cn=it.className,_n=it.style,Kn=this.context.direction,gi=this.getEditable(),Mn=gi.maxLength,Un=gi.autoSize;return m.createElement(J,{value:typeof Fr=="string"?Fr:"",onSave:this.onEditChange,onCancel:this.onEditCancel,prefixCls:this.getPrefixCls(),className:cn,style:_n,direction:Kn,maxLength:Mn,autoSize:Un})}},{key:"renderOperations",value:function(it){return[this.renderExpand(it),this.renderEdit(),this.renderCopy()].filter(function(Fr){return Fr})}},{key:"renderContent",value:function(){var it=this,Fr=this.state,cn=Fr.ellipsisContent,_n=Fr.isEllipsis,Kn=Fr.expanded,gi=this.props,Mn=gi.component,Un=gi.children,$t=gi.className,Ct=gi.type,Re=gi.disabled,De=gi.style,Pe=xt(gi,["component","children","className","type","disabled","style"]),et=this.context.direction,yt=this.getEllipsis(),St=yt.rows,Vt=yt.suffix,Rr=this.getPrefixCls(),Vr=Object(B.default)(Pe,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard"].concat(g()(Q.a))),hn=this.canUseCSSEllipsis(),Ft=St===1&&hn,vt=St&&St>1&&hn,bt=Un,fr;if(St&&_n&&!Kn&&!hn){var Qt=Pe.title;fr=Qt,!Qt&&(typeof Un=="string"||typeof Un=="number")&&(fr=String(Un)),bt=m.createElement("span",{title:fr,"aria-hidden":"true"},cn,ct,Vt)}else bt=m.createElement(m.Fragment,null,Un,Vt);return bt=ir(this.props,bt),m.createElement(G.a,{componentName:"Text"},function(Mt){var qt,kt=Mt.edit,er=Mt.copy,Kr=Mt.copied,Ir=Mt.expand;return it.editStr=kt,it.copyStr=er,it.copiedStr=Kr,it.expandStr=Ir,m.createElement(V.a,{onResize:it.resizeOnNextFrame,disabled:!St},m.createElement(r,p()({className:d()($t,(qt={},v()(qt,"".concat(Rr,"-").concat(Ct),Ct),v()(qt,"".concat(Rr,"-disabled"),Re),v()(qt,"".concat(Rr,"-ellipsis"),St),v()(qt,"".concat(Rr,"-ellipsis-single-line"),Ft),v()(qt,"".concat(Rr,"-ellipsis-multiple-line"),vt),qt)),style:p()(p()({},De),{WebkitLineClamp:vt?St:null}),component:Mn,ref:it.contentRef,"aria-label":fr,direction:et},Vr),bt,it.renderOperations()))})}},{key:"render",value:function(){var it=this.getEditable(),Fr=it.editing;return Fr?this.renderEditInput():this.renderContent()}}],[{key:"getDerivedStateFromProps",value:function(it){var Fr=it.children,cn=it.editable;return Object(o.a)(!cn||typeof Fr=="string","Typography","When `editable` is enabled, the `children` should use string."),{}}}]),Yt}(m.Component);Xt.contextType=u.b,Xt.defaultProps={children:""};var hr=Xt,Jt=function(Bt,sr){var Yt={};for(var pt in Bt)Object.prototype.hasOwnProperty.call(Bt,pt)&&sr.indexOf(pt)<0&&(Yt[pt]=Bt[pt]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,pt=Object.getOwnPropertySymbols(Bt);it<pt.length;it++)sr.indexOf(pt[it])<0&&Object.prototype.propertyIsEnumerable.call(Bt,pt[it])&&(Yt[pt[it]]=Bt[pt[it]]);return Yt},Pt=function(sr){var Yt=sr.ellipsis,pt=Jt(sr,["ellipsis"]);return Object(o.a)(c()(Yt)!=="object","Typography.Text","`ellipsis` only supports boolean value."),m.createElement(hr,p()({},pt,{ellipsis:!!Yt,component:"span"}))},Wt=Pt,Ge=function(Bt,sr){var Yt={};for(var pt in Bt)Object.prototype.hasOwnProperty.call(Bt,pt)&&sr.indexOf(pt)<0&&(Yt[pt]=Bt[pt]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,pt=Object.getOwnPropertySymbols(Bt);it<pt.length;it++)sr.indexOf(pt[it])<0&&Object.prototype.propertyIsEnumerable.call(Bt,pt[it])&&(Yt[pt[it]]=Bt[pt[it]]);return Yt},pe=function(sr,Yt){var pt=sr.ellipsis,it=sr.rel,Fr=Ge(sr,["ellipsis","rel"]);Object(o.a)(c()(pt)!=="object","Typography.Link","`ellipsis` only supports boolean value.");var cn=m.useRef(null);m.useImperativeHandle(Yt,function(){var Kn;return(Kn=cn.current)===null||Kn===void 0?void 0:Kn.contentRef.current});var _n=p()(p()({},Fr),{rel:it===void 0&&Fr.target==="_blank"?"noopener noreferrer":it});return m.createElement(hr,p()({},_n,{ref:cn,ellipsis:!!pt,component:"a"}))},se=m.forwardRef(pe),lt=n("CWQg"),qe=function(Bt,sr){var Yt={};for(var pt in Bt)Object.prototype.hasOwnProperty.call(Bt,pt)&&sr.indexOf(pt)<0&&(Yt[pt]=Bt[pt]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,pt=Object.getOwnPropertySymbols(Bt);it<pt.length;it++)sr.indexOf(pt[it])<0&&Object.prototype.propertyIsEnumerable.call(Bt,pt[it])&&(Yt[pt[it]]=Bt[pt[it]]);return Yt},me=Object(lt.b)(1,2,3,4,5),Ht=function(sr){var Yt=sr.level,pt=Yt===void 0?1:Yt,it=qe(sr,["level"]),Fr;return me.indexOf(pt)!==-1?Fr="h".concat(pt):(Object(o.a)(!1,"Typography.Title","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version."),Fr="h1"),m.createElement(hr,p()({},it,{component:Fr}))},yr=Ht,At=function(sr){return m.createElement(hr,p()({},sr,{component:"div"}))},rr=At,ur=r;ur.Text=Wt,ur.Link=se,ur.Title=yr,ur.Paragraph=rr;var vn=D.a=ur},wJg7:function(k,D){var n=9007199254740991,y=/^(?:0|[1-9]\d*)$/;function p(x,v){var m=typeof x;return v=v==null?n:v,!!v&&(m=="number"||m!="symbol"&&y.test(x))&&(x>-1&&x%1==0)&&x<v}k.exports=p},wOnQ:function(k,D,n){/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/(function(y,p){k.exports=p()})(this,function(){"use strict";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var y=function(ye,Ne){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(We,dt){We.__proto__=dt}||function(We,dt){for(var gr in dt)Object.prototype.hasOwnProperty.call(dt,gr)&&(We[gr]=dt[gr])},y(ye,Ne)};function p(Er,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Class extends value "+String(ye)+" is not a constructor or null");y(Er,ye);function Ne(){this.constructor=Er}Er.prototype=ye===null?Object.create(ye):(Ne.prototype=ye.prototype,new Ne)}var x=function(){return x=Object.assign||function(Ne){for(var We,dt=1,gr=arguments.length;dt<gr;dt++){We=arguments[dt];for(var an in We)Object.prototype.hasOwnProperty.call(We,an)&&(Ne[an]=We[an])}return Ne},x.apply(this,arguments)};function v(Er,ye,Ne,We){function dt(gr){return gr instanceof Ne?gr:new Ne(function(an){an(gr)})}return new(Ne||(Ne=Promise))(function(gr,an){function En(Yi){try{ii(We.next(Yi))}catch(Bi){an(Bi)}}function jn(Yi){try{ii(We.throw(Yi))}catch(Bi){an(Bi)}}function ii(Yi){Yi.done?gr(Yi.value):dt(Yi.value).then(En,jn)}ii((We=We.apply(Er,ye||[])).next())})}function m(Er,ye){var Ne={label:0,sent:function(){if(gr[0]&1)throw gr[1];return gr[1]},trys:[],ops:[]},We,dt,gr,an;return an={next:En(0),throw:En(1),return:En(2)},typeof Symbol=="function"&&(an[Symbol.iterator]=function(){return this}),an;function En(ii){return function(Yi){return jn([ii,Yi])}}function jn(ii){if(We)throw new TypeError("Generator is already executing.");for(;Ne;)try{if(We=1,dt&&(gr=ii[0]&2?dt.return:ii[0]?dt.throw||((gr=dt.return)&&gr.call(dt),0):dt.next)&&!(gr=gr.call(dt,ii[1])).done)return gr;(dt=0,gr)&&(ii=[ii[0]&2,gr.value]);switch(ii[0]){case 0:case 1:gr=ii;break;case 4:return Ne.label++,{value:ii[1],done:!1};case 5:Ne.label++,dt=ii[1],ii=[0];continue;case 7:ii=Ne.ops.pop(),Ne.trys.pop();continue;default:if(!(gr=Ne.trys,gr=gr.length>0&&gr[gr.length-1])&&(ii[0]===6||ii[0]===2)){Ne=0;continue}if(ii[0]===3&&(!gr||ii[1]>gr[0]&&ii[1]<gr[3])){Ne.label=ii[1];break}if(ii[0]===6&&Ne.label<gr[1]){Ne.label=gr[1],gr=ii;break}if(gr&&Ne.label<gr[2]){Ne.label=gr[2],Ne.ops.push(ii);break}gr[2]&&Ne.ops.pop(),Ne.trys.pop();continue}ii=ye.call(Er,Ne)}catch(Yi){ii=[6,Yi],dt=0}finally{We=gr=0}if(ii[0]&5)throw ii[1];return{value:ii[0]?ii[1]:void 0,done:!0}}}function f(Er,ye,Ne){if(Ne||arguments.length===2)for(var We=0,dt=ye.length,gr;We<dt;We++)(gr||!(We in ye))&&(gr||(gr=Array.prototype.slice.call(ye,0,We)),gr[We]=ye[We]);return Er.concat(gr||ye)}for(var d=function(){function Er(ye,Ne,We,dt){this.left=ye,this.top=Ne,this.width=We,this.height=dt}return Er.prototype.add=function(ye,Ne,We,dt){return new Er(this.left+ye,this.top+Ne,this.width+We,this.height+dt)},Er.fromClientRect=function(ye,Ne){return new Er(Ne.left+ye.windowBounds.left,Ne.top+ye.windowBounds.top,Ne.width,Ne.height)},Er.fromDOMRectList=function(ye,Ne){var We=Array.from(Ne).find(function(dt){return dt.width!==0});return We?new Er(We.left+ye.windowBounds.left,We.top+ye.windowBounds.top,We.width,We.height):Er.EMPTY},Er.EMPTY=new Er(0,0,0,0),Er}(),u=function(ye,Ne){return d.fromClientRect(ye,Ne.getBoundingClientRect())},o=function(ye){var Ne=ye.body,We=ye.documentElement;if(!Ne||!We)throw new Error("Unable to get document size");var dt=Math.max(Math.max(Ne.scrollWidth,We.scrollWidth),Math.max(Ne.offsetWidth,We.offsetWidth),Math.max(Ne.clientWidth,We.clientWidth)),gr=Math.max(Math.max(Ne.scrollHeight,We.scrollHeight),Math.max(Ne.offsetHeight,We.offsetHeight),Math.max(Ne.clientHeight,We.clientHeight));return new d(0,0,dt,gr)},i=function(ye){for(var Ne=[],We=0,dt=ye.length;We<dt;){var gr=ye.charCodeAt(We++);if(gr>=55296&&gr<=56319&&We<dt){var an=ye.charCodeAt(We++);(an&64512)===56320?Ne.push(((gr&1023)<<10)+(an&1023)+65536):(Ne.push(gr),We--)}else Ne.push(gr)}return Ne},t=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ye);var We=ye.length;if(!We)return"";for(var dt=[],gr=-1,an="";++gr<We;){var En=ye[gr];En<=65535?dt.push(En):(En-=65536,dt.push((En>>10)+55296,En%1024+56320)),(gr+1===We||dt.length>16384)&&(an+=String.fromCharCode.apply(String,dt),dt.length=0)}return an},s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),l=0;l<s.length;l++)e[s.charCodeAt(l)]=l;for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),c=0;c<r.length;c++)a[r.charCodeAt(c)]=c;for(var h=function(ye){var Ne=ye.length*.75,We=ye.length,dt,gr=0,an,En,jn,ii;ye[ye.length-1]==="="&&(Ne--,ye[ye.length-2]==="="&&Ne--);var Yi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Ne):new Array(Ne),Bi=Array.isArray(Yi)?Yi:new Uint8Array(Yi);for(dt=0;dt<We;dt+=4)an=a[ye.charCodeAt(dt)],En=a[ye.charCodeAt(dt+1)],jn=a[ye.charCodeAt(dt+2)],ii=a[ye.charCodeAt(dt+3)],Bi[gr++]=an<<2|En>>4,Bi[gr++]=(En&15)<<4|jn>>2,Bi[gr++]=(jn&3)<<6|ii&63;return Yi},g=function(ye){for(var Ne=ye.length,We=[],dt=0;dt<Ne;dt+=2)We.push(ye[dt+1]<<8|ye[dt]);return We},A=function(ye){for(var Ne=ye.length,We=[],dt=0;dt<Ne;dt+=4)We.push(ye[dt+3]<<24|ye[dt+2]<<16|ye[dt+1]<<8|ye[dt]);return We},b=5,S=6+5,E=2,C=S-b,_=65536>>b,T=1<<b,w=T-1,O=1024>>b,I=_+O,R=I,M=2048>>6,B=R+M,P=65536>>S,X=1<<C,F=X-1,j=function(ye,Ne,We){return ye.slice?ye.slice(Ne,We):new Uint16Array(Array.prototype.slice.call(ye,Ne,We))},K=function(ye,Ne,We){return ye.slice?ye.slice(Ne,We):new Uint32Array(Array.prototype.slice.call(ye,Ne,We))},z=function(ye,Ne){var We=h(ye),dt=Array.isArray(We)?A(We):new Uint32Array(We),gr=Array.isArray(We)?g(We):new Uint16Array(We),an=24,En=j(gr,an/2,dt[4]/2),jn=dt[5]===2?j(gr,(an+dt[4])/2):K(dt,Math.ceil((an+dt[4])/4));return new V(dt[0],dt[1],dt[2],dt[3],En,jn)},V=function(){function Er(ye,Ne,We,dt,gr,an){this.initialValue=ye,this.errorValue=Ne,this.highStart=We,this.highValueIndex=dt,this.index=gr,this.data=an}return Er.prototype.get=function(ye){var Ne;if(ye>=0){if(ye<55296||ye>56319&&ye<=65535)return Ne=this.index[ye>>b],Ne=(Ne<<E)+(ye&w),this.data[Ne];if(ye<=65535)return Ne=this.index[_+(ye-55296>>b)],Ne=(Ne<<E)+(ye&w),this.data[Ne];if(ye<this.highStart)return Ne=B-P+(ye>>S),Ne=this.index[Ne],Ne+=ye>>b&F,Ne=this.index[Ne],Ne=(Ne<<E)+(ye&w),this.data[Ne];if(ye<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Er}(),Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",G=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),te=0;te<Q.length;te++)G[Q.charCodeAt(te)]=te;var q="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",le=50,re=1,we=2,Ie=3,Me=4,Je=5,Ve=7,ut=8,Fe=9,ae=10,at=11,he=12,J=13,Y=14,$=15,de=16,be=17,Ce=18,Be=19,fe=20,Se=21,ke=22,rt=23,xt=24,ht=25,He=26,ir=27,ct=28,Xt=29,hr=30,Jt=31,Pt=32,Wt=33,Ge=34,pe=35,se=36,lt=37,qe=38,me=39,Ht=40,yr=41,At=42,rr=43,ur=[9001,65288],vn="!",Bt="\xD7",sr="\xF7",Yt=z(q),pt=[hr,se],it=[re,we,Ie,Je],Fr=[ae,ut],cn=[ir,He],_n=it.concat(Fr),Kn=[qe,me,Ht,Ge,pe],gi=[$,J],Mn=function(ye,Ne){Ne===void 0&&(Ne="strict");var We=[],dt=[],gr=[];return ye.forEach(function(an,En){var jn=Yt.get(an);if(jn>le?(gr.push(!0),jn-=le):gr.push(!1),["normal","auto","loose"].indexOf(Ne)!==-1&&[8208,8211,12316,12448].indexOf(an)!==-1)return dt.push(En),We.push(de);if(jn===Me||jn===at){if(En===0)return dt.push(En),We.push(hr);var ii=We[En-1];return _n.indexOf(ii)===-1?(dt.push(dt[En-1]),We.push(ii)):(dt.push(En),We.push(hr))}if(dt.push(En),jn===Jt)return We.push(Ne==="strict"?Se:lt);if(jn===At)return We.push(hr);if(jn===Xt)return We.push(hr);if(jn===rr)return an>=131072&&an<=196605||an>=196608&&an<=262141?We.push(lt):We.push(hr);We.push(jn)}),[dt,We,gr]},Un=function(ye,Ne,We,dt){var gr=dt[We];if(Array.isArray(ye)?ye.indexOf(gr)!==-1:ye===gr)for(var an=We;an<=dt.length;){an++;var En=dt[an];if(En===Ne)return!0;if(En!==ae)break}if(gr===ae)for(var an=We;an>0;){an--;var jn=dt[an];if(Array.isArray(ye)?ye.indexOf(jn)!==-1:ye===jn)for(var ii=We;ii<=dt.length;){ii++;var En=dt[ii];if(En===Ne)return!0;if(En!==ae)break}if(jn!==ae)break}return!1},$t=function(ye,Ne){for(var We=ye;We>=0;){var dt=Ne[We];if(dt===ae)We--;else return dt}return 0},Ct=function(ye,Ne,We,dt,gr){if(We[dt]===0)return Bt;var an=dt-1;if(Array.isArray(gr)&&gr[an]===!0)return Bt;var En=an-1,jn=an+1,ii=Ne[an],Yi=En>=0?Ne[En]:0,Bi=Ne[jn];if(ii===we&&Bi===Ie)return Bt;if(it.indexOf(ii)!==-1)return vn;if(it.indexOf(Bi)!==-1)return Bt;if(Fr.indexOf(Bi)!==-1)return Bt;if($t(an,Ne)===ut)return sr;if(Yt.get(ye[an])===at)return Bt;if((ii===Pt||ii===Wt)&&Yt.get(ye[jn])===at)return Bt;if(ii===Ve||Bi===Ve)return Bt;if(ii===Fe)return Bt;if([ae,J,$].indexOf(ii)===-1&&Bi===Fe)return Bt;if([be,Ce,Be,xt,ct].indexOf(Bi)!==-1)return Bt;if($t(an,Ne)===ke)return Bt;if(Un(rt,ke,an,Ne))return Bt;if(Un([be,Ce],Se,an,Ne))return Bt;if(Un(he,he,an,Ne))return Bt;if(ii===ae)return sr;if(ii===rt||Bi===rt)return Bt;if(Bi===de||ii===de)return sr;if([J,$,Se].indexOf(Bi)!==-1||ii===Y)return Bt;if(Yi===se&&gi.indexOf(ii)!==-1)return Bt;if(ii===ct&&Bi===se)return Bt;if(Bi===fe)return Bt;if(pt.indexOf(Bi)!==-1&&ii===ht||pt.indexOf(ii)!==-1&&Bi===ht)return Bt;if(ii===ir&&[lt,Pt,Wt].indexOf(Bi)!==-1||[lt,Pt,Wt].indexOf(ii)!==-1&&Bi===He)return Bt;if(pt.indexOf(ii)!==-1&&cn.indexOf(Bi)!==-1||cn.indexOf(ii)!==-1&&pt.indexOf(Bi)!==-1)return Bt;if([ir,He].indexOf(ii)!==-1&&(Bi===ht||[ke,$].indexOf(Bi)!==-1&&Ne[jn+1]===ht)||[ke,$].indexOf(ii)!==-1&&Bi===ht||ii===ht&&[ht,ct,xt].indexOf(Bi)!==-1)return Bt;if([ht,ct,xt,be,Ce].indexOf(Bi)!==-1)for(var qi=an;qi>=0;){var Za=Ne[qi];if(Za===ht)return Bt;if([ct,xt].indexOf(Za)!==-1)qi--;else break}if([ir,He].indexOf(Bi)!==-1)for(var qi=[be,Ce].indexOf(ii)!==-1?En:an;qi>=0;){var Za=Ne[qi];if(Za===ht)return Bt;if([ct,xt].indexOf(Za)!==-1)qi--;else break}if(qe===ii&&[qe,me,Ge,pe].indexOf(Bi)!==-1||[me,Ge].indexOf(ii)!==-1&&[me,Ht].indexOf(Bi)!==-1||[Ht,pe].indexOf(ii)!==-1&&Bi===Ht)return Bt;if(Kn.indexOf(ii)!==-1&&[fe,He].indexOf(Bi)!==-1||Kn.indexOf(Bi)!==-1&&ii===ir)return Bt;if(pt.indexOf(ii)!==-1&&pt.indexOf(Bi)!==-1)return Bt;if(ii===xt&&pt.indexOf(Bi)!==-1)return Bt;if(pt.concat(ht).indexOf(ii)!==-1&&Bi===ke&&ur.indexOf(ye[jn])===-1||pt.concat(ht).indexOf(Bi)!==-1&&ii===Ce)return Bt;if(ii===yr&&Bi===yr){for(var eo=We[an],po=1;eo>0&&(eo--,Ne[eo]===yr);)po++;if(po%2!==0)return Bt}return ii===Pt&&Bi===Wt?Bt:sr},Re=function(ye,Ne){Ne||(Ne={lineBreak:"normal",wordBreak:"normal"});var We=Mn(ye,Ne.lineBreak),dt=We[0],gr=We[1],an=We[2];(Ne.wordBreak==="break-all"||Ne.wordBreak==="break-word")&&(gr=gr.map(function(jn){return[ht,hr,At].indexOf(jn)!==-1?lt:jn}));var En=Ne.wordBreak==="keep-all"?an.map(function(jn,ii){return jn&&ye[ii]>=19968&&ye[ii]<=40959}):void 0;return[dt,gr,En]},De=function(){function Er(ye,Ne,We,dt){this.codePoints=ye,this.required=Ne===vn,this.start=We,this.end=dt}return Er.prototype.slice=function(){return t.apply(void 0,this.codePoints.slice(this.start,this.end))},Er}(),Pe=function(ye,Ne){var We=i(ye),dt=Re(We,Ne),gr=dt[0],an=dt[1],En=dt[2],jn=We.length,ii=0,Yi=0;return{next:function(){if(Yi>=jn)return{done:!0,value:null};for(var qi=Bt;Yi<jn&&(qi=Ct(We,an,gr,++Yi,En))===Bt;);if(qi!==Bt||Yi===jn){var Za=new De(We,qi,ii,Yi);return ii=Yi,{value:Za,done:!1}}return{done:!0,value:null}}}},et=1<<0,yt=1<<1,St=1<<2,Vt=1<<3,Rr=10,Vr=47,hn=92,Ft=9,vt=32,bt=34,fr=61,Qt=35,Mt=36,qt=37,kt=39,er=40,Kr=41,Ir=95,Dr=45,dn=33,yn=60,ti=62,ei=64,fi=91,Ei=93,Di=61,Hi=123,nt=63,Le=125,je=124,Xe=126,tt=128,Ze=65533,st=42,Et=43,gt=44,pr=58,qr=59,Qr=46,gn=0,vr=8,Vn=11,kr=14,Bn=31,on=127,jr=-1,ai=48,Oi=97,Gi=101,rn=102,Cn=117,Yn=122,Gt=65,Ot=69,Rt=70,jt=85,zt=90,Lt=function(ye){return ye>=ai&&ye<=57},cr=function(ye){return ye>=55296&&ye<=57343},Ar=function(ye){return Lt(ye)||ye>=Gt&&ye<=Rt||ye>=Oi&&ye<=rn},br=function(ye){return ye>=Oi&&ye<=Yn},Pr=function(ye){return ye>=Gt&&ye<=zt},Xn=function(ye){return br(ye)||Pr(ye)},Pn=function(ye){return ye>=tt},di=function(ye){return ye===Rr||ye===Ft||ye===vt},An=function(ye){return Xn(ye)||Pn(ye)||ye===Ir},Ur=function(ye){return An(ye)||Lt(ye)||ye===Dr},In=function(ye){return ye>=gn&&ye<=vr||ye===Vn||ye>=kr&&ye<=Bn||ye===on},Qn=function(ye,Ne){return ye!==hn?!1:Ne!==Rr},$n=function(ye,Ne,We){return ye===Dr?An(Ne)||Qn(Ne,We):An(ye)?!0:!!(ye===hn&&Qn(ye,Ne))},oi=function(ye,Ne,We){return ye===Et||ye===Dr?Lt(Ne)?!0:Ne===Qr&&Lt(We):ye===Qr?Lt(Ne):Lt(ye)},Ti=function(ye){var Ne=0,We=1;(ye[Ne]===Et||ye[Ne]===Dr)&&(ye[Ne]===Dr&&(We=-1),Ne++);for(var dt=[];Lt(ye[Ne]);)dt.push(ye[Ne++]);var gr=dt.length?parseInt(t.apply(void 0,dt),10):0;ye[Ne]===Qr&&Ne++;for(var an=[];Lt(ye[Ne]);)an.push(ye[Ne++]);var En=an.length,jn=En?parseInt(t.apply(void 0,an),10):0;(ye[Ne]===Ot||ye[Ne]===Gi)&&Ne++;var ii=1;(ye[Ne]===Et||ye[Ne]===Dr)&&(ye[Ne]===Dr&&(ii=-1),Ne++);for(var Yi=[];Lt(ye[Ne]);)Yi.push(ye[Ne++]);var Bi=Yi.length?parseInt(t.apply(void 0,Yi),10):0;return We*(gr+jn*Math.pow(10,-En))*Math.pow(10,ii*Bi)},ki={type:2},Ri={type:3},oa={type:4},ma={type:13},aa={type:8},ba={type:21},yi={type:9},kn={type:10},Ui={type:11},ha={type:12},ta={type:14},ra={type:23},Lr={type:1},xr={type:25},Tn={type:24},mr={type:26},Mr={type:27},Xr={type:28},un={type:29},Fn={type:31},_t={type:32},Or=function(){function Er(){this._value=[]}return Er.prototype.write=function(ye){this._value=this._value.concat(i(ye))},Er.prototype.read=function(){for(var ye=[],Ne=this.consumeToken();Ne!==_t;)ye.push(Ne),Ne=this.consumeToken();return ye},Er.prototype.consumeToken=function(){var ye=this.consumeCodePoint();switch(ye){case bt:return this.consumeStringToken(bt);case Qt:var Ne=this.peekCodePoint(0),We=this.peekCodePoint(1),dt=this.peekCodePoint(2);if(Ur(Ne)||Qn(We,dt)){var gr=$n(Ne,We,dt)?yt:et,an=this.consumeName();return{type:5,value:an,flags:gr}}break;case Mt:if(this.peekCodePoint(0)===fr)return this.consumeCodePoint(),ma;break;case kt:return this.consumeStringToken(kt);case er:return ki;case Kr:return Ri;case st:if(this.peekCodePoint(0)===fr)return this.consumeCodePoint(),ta;break;case Et:if(oi(ye,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ye),this.consumeNumericToken();break;case gt:return oa;case Dr:var En=ye,jn=this.peekCodePoint(0),ii=this.peekCodePoint(1);if(oi(En,jn,ii))return this.reconsumeCodePoint(ye),this.consumeNumericToken();if($n(En,jn,ii))return this.reconsumeCodePoint(ye),this.consumeIdentLikeToken();if(jn===Dr&&ii===ti)return this.consumeCodePoint(),this.consumeCodePoint(),Tn;break;case Qr:if(oi(ye,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ye),this.consumeNumericToken();break;case Vr:if(this.peekCodePoint(0)===st)for(this.consumeCodePoint();;){var Yi=this.consumeCodePoint();if(Yi===st&&(Yi=this.consumeCodePoint(),Yi===Vr))return this.consumeToken();if(Yi===jr)return this.consumeToken()}break;case pr:return mr;case qr:return Mr;case yn:if(this.peekCodePoint(0)===dn&&this.peekCodePoint(1)===Dr&&this.peekCodePoint(2)===Dr)return this.consumeCodePoint(),this.consumeCodePoint(),xr;break;case ei:var Bi=this.peekCodePoint(0),qi=this.peekCodePoint(1),Za=this.peekCodePoint(2);if($n(Bi,qi,Za)){var an=this.consumeName();return{type:7,value:an}}break;case fi:return Xr;case hn:if(Qn(ye,this.peekCodePoint(0)))return this.reconsumeCodePoint(ye),this.consumeIdentLikeToken();break;case Ei:return un;case Di:if(this.peekCodePoint(0)===fr)return this.consumeCodePoint(),aa;break;case Hi:return Ui;case Le:return ha;case Cn:case jt:var eo=this.peekCodePoint(0),po=this.peekCodePoint(1);return eo===Et&&(Ar(po)||po===nt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(ye),this.consumeIdentLikeToken();case je:if(this.peekCodePoint(0)===fr)return this.consumeCodePoint(),yi;if(this.peekCodePoint(0)===je)return this.consumeCodePoint(),ba;break;case Xe:if(this.peekCodePoint(0)===fr)return this.consumeCodePoint(),kn;break;case jr:return _t}return di(ye)?(this.consumeWhiteSpace(),Fn):Lt(ye)?(this.reconsumeCodePoint(ye),this.consumeNumericToken()):An(ye)?(this.reconsumeCodePoint(ye),this.consumeIdentLikeToken()):{type:6,value:t(ye)}},Er.prototype.consumeCodePoint=function(){var ye=this._value.shift();return typeof ye=="undefined"?-1:ye},Er.prototype.reconsumeCodePoint=function(ye){this._value.unshift(ye)},Er.prototype.peekCodePoint=function(ye){return ye>=this._value.length?-1:this._value[ye]},Er.prototype.consumeUnicodeRangeToken=function(){for(var ye=[],Ne=this.consumeCodePoint();Ar(Ne)&&ye.length<6;)ye.push(Ne),Ne=this.consumeCodePoint();for(var We=!1;Ne===nt&&ye.length<6;)ye.push(Ne),Ne=this.consumeCodePoint(),We=!0;if(We){var dt=parseInt(t.apply(void 0,ye.map(function(jn){return jn===nt?ai:jn})),16),gr=parseInt(t.apply(void 0,ye.map(function(jn){return jn===nt?Rt:jn})),16);return{type:30,start:dt,end:gr}}var an=parseInt(t.apply(void 0,ye),16);if(this.peekCodePoint(0)===Dr&&Ar(this.peekCodePoint(1))){this.consumeCodePoint(),Ne=this.consumeCodePoint();for(var En=[];Ar(Ne)&&En.length<6;)En.push(Ne),Ne=this.consumeCodePoint();var gr=parseInt(t.apply(void 0,En),16);return{type:30,start:an,end:gr}}else return{type:30,start:an,end:an}},Er.prototype.consumeIdentLikeToken=function(){var ye=this.consumeName();return ye.toLowerCase()==="url"&&this.peekCodePoint(0)===er?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===er?(this.consumeCodePoint(),{type:19,value:ye}):{type:20,value:ye}},Er.prototype.consumeUrlToken=function(){var ye=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===jr)return{type:22,value:""};var Ne=this.peekCodePoint(0);if(Ne===kt||Ne===bt){var We=this.consumeStringToken(this.consumeCodePoint());return We.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===jr||this.peekCodePoint(0)===Kr)?(this.consumeCodePoint(),{type:22,value:We.value}):(this.consumeBadUrlRemnants(),ra)}for(;;){var dt=this.consumeCodePoint();if(dt===jr||dt===Kr)return{type:22,value:t.apply(void 0,ye)};if(di(dt))return this.consumeWhiteSpace(),this.peekCodePoint(0)===jr||this.peekCodePoint(0)===Kr?(this.consumeCodePoint(),{type:22,value:t.apply(void 0,ye)}):(this.consumeBadUrlRemnants(),ra);if(dt===bt||dt===kt||dt===er||In(dt))return this.consumeBadUrlRemnants(),ra;if(dt===hn)if(Qn(dt,this.peekCodePoint(0)))ye.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ra;else ye.push(dt)}},Er.prototype.consumeWhiteSpace=function(){for(;di(this.peekCodePoint(0));)this.consumeCodePoint()},Er.prototype.consumeBadUrlRemnants=function(){for(;;){var ye=this.consumeCodePoint();if(ye===Kr||ye===jr)return;Qn(ye,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Er.prototype.consumeStringSlice=function(ye){for(var Ne=5e4,We="";ye>0;){var dt=Math.min(Ne,ye);We+=t.apply(void 0,this._value.splice(0,dt)),ye-=dt}return this._value.shift(),We},Er.prototype.consumeStringToken=function(ye){var Ne="",We=0;do{var dt=this._value[We];if(dt===jr||dt===void 0||dt===ye)return Ne+=this.consumeStringSlice(We),{type:0,value:Ne};if(dt===Rr)return this._value.splice(0,We),Lr;if(dt===hn){var gr=this._value[We+1];gr!==jr&&gr!==void 0&&(gr===Rr?(Ne+=this.consumeStringSlice(We),We=-1,this._value.shift()):Qn(dt,gr)&&(Ne+=this.consumeStringSlice(We),Ne+=t(this.consumeEscapedCodePoint()),We=-1))}We++}while(!0)},Er.prototype.consumeNumber=function(){var ye=[],Ne=St,We=this.peekCodePoint(0);for((We===Et||We===Dr)&&ye.push(this.consumeCodePoint());Lt(this.peekCodePoint(0));)ye.push(this.consumeCodePoint());We=this.peekCodePoint(0);var dt=this.peekCodePoint(1);if(We===Qr&&Lt(dt))for(ye.push(this.consumeCodePoint(),this.consumeCodePoint()),Ne=Vt;Lt(this.peekCodePoint(0));)ye.push(this.consumeCodePoint());We=this.peekCodePoint(0),dt=this.peekCodePoint(1);var gr=this.peekCodePoint(2);if((We===Ot||We===Gi)&&((dt===Et||dt===Dr)&&Lt(gr)||Lt(dt)))for(ye.push(this.consumeCodePoint(),this.consumeCodePoint()),Ne=Vt;Lt(this.peekCodePoint(0));)ye.push(this.consumeCodePoint());return[Ti(ye),Ne]},Er.prototype.consumeNumericToken=function(){var ye=this.consumeNumber(),Ne=ye[0],We=ye[1],dt=this.peekCodePoint(0),gr=this.peekCodePoint(1),an=this.peekCodePoint(2);if($n(dt,gr,an)){var En=this.consumeName();return{type:15,number:Ne,flags:We,unit:En}}return dt===qt?(this.consumeCodePoint(),{type:16,number:Ne,flags:We}):{type:17,number:Ne,flags:We}},Er.prototype.consumeEscapedCodePoint=function(){var ye=this.consumeCodePoint();if(Ar(ye)){for(var Ne=t(ye);Ar(this.peekCodePoint(0))&&Ne.length<6;)Ne+=t(this.consumeCodePoint());di(this.peekCodePoint(0))&&this.consumeCodePoint();var We=parseInt(Ne,16);return We===0||cr(We)||We>1114111?Ze:We}return ye===jr?Ze:ye},Er.prototype.consumeName=function(){for(var ye="";;){var Ne=this.consumeCodePoint();if(Ur(Ne))ye+=t(Ne);else if(Qn(Ne,this.peekCodePoint(0)))ye+=t(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Ne),ye}},Er}(),Nr=function(){function Er(ye){this._tokens=ye}return Er.create=function(ye){var Ne=new Or;return Ne.write(ye),new Er(Ne.read())},Er.parseValue=function(ye){return Er.create(ye).parseComponentValue()},Er.parseValues=function(ye){return Er.create(ye).parseComponentValues()},Er.prototype.parseComponentValue=function(){for(var ye=this.consumeToken();ye.type===31;)ye=this.consumeToken();if(ye.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(ye);var Ne=this.consumeComponentValue();do ye=this.consumeToken();while(ye.type===31);if(ye.type===32)return Ne;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Er.prototype.parseComponentValues=function(){for(var ye=[];;){var Ne=this.consumeComponentValue();if(Ne.type===32)return ye;ye.push(Ne),ye.push()}},Er.prototype.consumeComponentValue=function(){var ye=this.consumeToken();switch(ye.type){case 11:case 28:case 2:return this.consumeSimpleBlock(ye.type);case 19:return this.consumeFunction(ye)}return ye},Er.prototype.consumeSimpleBlock=function(ye){for(var Ne={type:ye,values:[]},We=this.consumeToken();;){if(We.type===32||bi(We,ye))return Ne;this.reconsumeToken(We),Ne.values.push(this.consumeComponentValue()),We=this.consumeToken()}},Er.prototype.consumeFunction=function(ye){for(var Ne={name:ye.value,values:[],type:18};;){var We=this.consumeToken();if(We.type===32||We.type===3)return Ne;this.reconsumeToken(We),Ne.values.push(this.consumeComponentValue())}},Er.prototype.consumeToken=function(){var ye=this._tokens.shift();return typeof ye=="undefined"?_t:ye},Er.prototype.reconsumeToken=function(ye){this._tokens.unshift(ye)},Er}(),tn=function(ye){return ye.type===15},xn=function(ye){return ye.type===17},Ln=function(ye){return ye.type===20},Sn=function(ye){return ye.type===0},qn=function(ye,Ne){return Ln(ye)&&ye.value===Ne},Wn=function(ye){return ye.type!==31},pi=function(ye){return ye.type!==31&&ye.type!==4},Pi=function(ye){var Ne=[],We=[];return ye.forEach(function(dt){if(dt.type===4){if(We.length===0)throw new Error("Error parsing function args, zero tokens for arg");Ne.push(We),We=[];return}dt.type!==31&&We.push(dt)}),We.length&&Ne.push(We),Ne},bi=function(ye,Ne){return Ne===11&&ye.type===12||Ne===28&&ye.type===29?!0:Ne===2&&ye.type===3},Ii=function(ye){return ye.type===17||ye.type===15},zi=function(ye){return ye.type===16||Ii(ye)},ea=function(ye){return ye.length>1?[ye[0],ye[1]]:[ye[0]]},Xi={type:17,number:0,flags:St},Wi={type:16,number:50,flags:St},ji={type:16,number:100,flags:St},Ji=function(ye,Ne,We){var dt=ye[0],gr=ye[1];return[ca(dt,Ne),ca(typeof gr!="undefined"?gr:dt,We)]},ca=function(ye,Ne){if(ye.type===16)return ye.number/100*Ne;if(tn(ye))switch(ye.unit){case"rem":case"em":return 16*ye.number;case"px":default:return ye.number}return ye.number},Ca="deg",na="grad",Pa="rad",La="turn",va={name:"angle",parse:function(ye,Ne){if(Ne.type===15)switch(Ne.unit){case Ca:return Math.PI*Ne.number/180;case na:return Math.PI/200*Ne.number;case Pa:return Ne.number;case La:return Math.PI*2*Ne.number}throw new Error("Unsupported angle type")}},ga=function(ye){return ye.type===15&&(ye.unit===Ca||ye.unit===na||ye.unit===Pa||ye.unit===La)},Oa=function(ye){var Ne=ye.filter(Ln).map(function(We){return We.value}).join(" ");switch(Ne){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Xi,Xi];case"to top":case"bottom":return Aa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Xi,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(ye){return Math.PI*ye/180},Xa={name:"color",parse:function(ye,Ne){if(Ne.type===18){var We=To[Ne.name];if(typeof We=="undefined")throw new Error('Attempting to parse an unsupported color function "'+Ne.name+'"');return We(ye,Ne.values)}if(Ne.type===5){if(Ne.value.length===3){var dt=Ne.value.substring(0,1),gr=Ne.value.substring(1,2),an=Ne.value.substring(2,3);return Fi(parseInt(dt+dt,16),parseInt(gr+gr,16),parseInt(an+an,16),1)}if(Ne.value.length===4){var dt=Ne.value.substring(0,1),gr=Ne.value.substring(1,2),an=Ne.value.substring(2,3),En=Ne.value.substring(3,4);return Fi(parseInt(dt+dt,16),parseInt(gr+gr,16),parseInt(an+an,16),parseInt(En+En,16)/255)}if(Ne.value.length===6){var dt=Ne.value.substring(0,2),gr=Ne.value.substring(2,4),an=Ne.value.substring(4,6);return Fi(parseInt(dt,16),parseInt(gr,16),parseInt(an,16),1)}if(Ne.value.length===8){var dt=Ne.value.substring(0,2),gr=Ne.value.substring(2,4),an=Ne.value.substring(4,6),En=Ne.value.substring(6,8);return Fi(parseInt(dt,16),parseInt(gr,16),parseInt(an,16),parseInt(En,16)/255)}}if(Ne.type===20){var jn=So[Ne.value.toUpperCase()];if(typeof jn!="undefined")return jn}return So.TRANSPARENT}},_a=function(ye){return(255&ye)===0},Va=function(ye){var Ne=255&ye,We=255&ye>>8,dt=255&ye>>16,gr=255&ye>>24;return Ne<255?"rgba("+gr+","+dt+","+We+","+Ne/255+")":"rgb("+gr+","+dt+","+We+")"},Fi=function(ye,Ne,We,dt){return(ye<<24|Ne<<16|We<<8|Math.round(dt*255)<<0)>>>0},io=function(ye,Ne){if(ye.type===17)return ye.number;if(ye.type===16){var We=Ne===3?1:255;return Ne===3?ye.number/100*We:Math.round(ye.number/100*We)}return 0},oo=function(ye,Ne){var We=Ne.filter(pi);if(We.length===3){var dt=We.map(io),gr=dt[0],an=dt[1],En=dt[2];return Fi(gr,an,En,1)}if(We.length===4){var jn=We.map(io),gr=jn[0],an=jn[1],En=jn[2],ii=jn[3];return Fi(gr,an,En,ii)}return 0};function Qo(Er,ye,Ne){return Ne<0&&(Ne+=1),Ne>=1&&(Ne-=1),Ne<1/6?(ye-Er)*Ne*6+Er:Ne<1/2?ye:Ne<2/3?(ye-Er)*6*(2/3-Ne)+Er:Er}var mo=function(ye,Ne){var We=Ne.filter(pi),dt=We[0],gr=We[1],an=We[2],En=We[3],jn=(dt.type===17?Aa(dt.number):va.parse(ye,dt))/(Math.PI*2),ii=zi(gr)?gr.number/100:0,Yi=zi(an)?an.number/100:0,Bi=typeof En!="undefined"&&zi(En)?ca(En,1):1;if(ii===0)return Fi(Yi*255,Yi*255,Yi*255,1);var qi=Yi<=.5?Yi*(ii+1):Yi+ii-Yi*ii,Za=Yi*2-qi,eo=Qo(Za,qi,jn+1/3),po=Qo(Za,qi,jn),us=Qo(Za,qi,jn-1/3);return Fi(eo*255,po*255,us*255,Bi)},To={hsl:mo,hsla:mo,rgb:oo,rgba:oo},ao=function(ye,Ne){return Xa.parse(ye,Nr.create(Ne).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(ye,Ne){return Ne.map(function(We){if(Ln(We))switch(We.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},to={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Jo=function(ye,Ne){var We=Xa.parse(ye,Ne[0]),dt=Ne[1];return dt&&zi(dt)?{color:We,stop:dt}:{color:We,stop:null}},Uo=function(ye,Ne){var We=ye[0],dt=ye[ye.length-1];We.stop===null&&(We.stop=Xi),dt.stop===null&&(dt.stop=ji);for(var gr=[],an=0,En=0;En<ye.length;En++){var jn=ye[En].stop;if(jn!==null){var ii=ca(jn,Ne);ii>an?gr.push(ii):gr.push(an),an=ii}else gr.push(null)}for(var Yi=null,En=0;En<gr.length;En++){var Bi=gr[En];if(Bi===null)Yi===null&&(Yi=En);else if(Yi!==null){for(var qi=En-Yi,Za=gr[Yi-1],eo=(Bi-Za)/(qi+1),po=1;po<=qi;po++)gr[Yi+po-1]=eo*po;Yi=null}}return ye.map(function(us,Yo){var Po=us.color;return{color:Po,stop:Math.max(Math.min(1,gr[Yo]/Ne),0)}})},wo=function(ye,Ne,We){var dt=Ne/2,gr=We/2,an=ca(ye[0],Ne)-dt,En=gr-ca(ye[1],We);return(Math.atan2(En,an)+Math.PI*2)%(Math.PI*2)},ts=function(ye,Ne,We){var dt=typeof ye=="number"?ye:wo(ye,Ne,We),gr=Math.abs(Ne*Math.sin(dt))+Math.abs(We*Math.cos(dt)),an=Ne/2,En=We/2,jn=gr/2,ii=Math.sin(dt-Math.PI/2)*jn,Yi=Math.cos(dt-Math.PI/2)*jn;return[gr,an-Yi,an+Yi,En-ii,En+ii]},Ia=function(ye,Ne){return Math.sqrt(ye*ye+Ne*Ne)},Oo=function(ye,Ne,We,dt,gr){var an=[[0,0],[0,Ne],[ye,0],[ye,Ne]];return an.reduce(function(En,jn){var ii=jn[0],Yi=jn[1],Bi=Ia(We-ii,dt-Yi);return(gr?Bi<En.optimumDistance:Bi>En.optimumDistance)?{optimumCorner:jn,optimumDistance:Bi}:En},{optimumDistance:gr?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Io=function(ye,Ne,We,dt,gr){var an=0,En=0;switch(ye.size){case 0:ye.shape===0?an=En=Math.min(Math.abs(Ne),Math.abs(Ne-dt),Math.abs(We),Math.abs(We-gr)):ye.shape===1&&(an=Math.min(Math.abs(Ne),Math.abs(Ne-dt)),En=Math.min(Math.abs(We),Math.abs(We-gr)));break;case 2:if(ye.shape===0)an=En=Math.min(Ia(Ne,We),Ia(Ne,We-gr),Ia(Ne-dt,We),Ia(Ne-dt,We-gr));else if(ye.shape===1){var jn=Math.min(Math.abs(We),Math.abs(We-gr))/Math.min(Math.abs(Ne),Math.abs(Ne-dt)),ii=Oo(dt,gr,Ne,We,!0),Yi=ii[0],Bi=ii[1];an=Ia(Yi-Ne,(Bi-We)/jn),En=jn*an}break;case 1:ye.shape===0?an=En=Math.max(Math.abs(Ne),Math.abs(Ne-dt),Math.abs(We),Math.abs(We-gr)):ye.shape===1&&(an=Math.max(Math.abs(Ne),Math.abs(Ne-dt)),En=Math.max(Math.abs(We),Math.abs(We-gr)));break;case 3:if(ye.shape===0)an=En=Math.max(Ia(Ne,We),Ia(Ne,We-gr),Ia(Ne-dt,We),Ia(Ne-dt,We-gr));else if(ye.shape===1){var jn=Math.max(Math.abs(We),Math.abs(We-gr))/Math.max(Math.abs(Ne),Math.abs(Ne-dt)),qi=Oo(dt,gr,Ne,We,!1),Yi=qi[0],Bi=qi[1];an=Ia(Yi-Ne,(Bi-We)/jn),En=jn*an}break}return Array.isArray(ye.size)&&(an=ca(ye.size[0],dt),En=ye.size.length===2?ca(ye.size[1],gr):an),[an,En]},os=function(ye,Ne){var We=Aa(180),dt=[];return Pi(Ne).forEach(function(gr,an){if(an===0){var En=gr[0];if(En.type===20&&En.value==="to"){We=Oa(gr);return}else if(ga(En)){We=va.parse(ye,En);return}}var jn=Jo(ye,gr);dt.push(jn)}),{angle:We,stops:dt,type:1}},xo=function(ye,Ne){var We=Aa(180),dt=[];return Pi(Ne).forEach(function(gr,an){if(an===0){var En=gr[0];if(En.type===20&&["top","left","right","bottom"].indexOf(En.value)!==-1){We=Oa(gr);return}else if(ga(En)){We=(va.parse(ye,En)+Aa(270))%Aa(360);return}}var jn=Jo(ye,gr);dt.push(jn)}),{angle:We,stops:dt,type:1}},rs=function(ye,Ne){var We=Aa(180),dt=[],gr=1,an=0,En=3,jn=[];return Pi(Ne).forEach(function(ii,Yi){var Bi=ii[0];if(Yi===0){if(Ln(Bi)&&Bi.value==="linear"){gr=1;return}else if(Ln(Bi)&&Bi.value==="radial"){gr=2;return}}if(Bi.type===18){if(Bi.name==="from"){var qi=Xa.parse(ye,Bi.values[0]);dt.push({stop:Xi,color:qi})}else if(Bi.name==="to"){var qi=Xa.parse(ye,Bi.values[0]);dt.push({stop:ji,color:qi})}else if(Bi.name==="color-stop"){var Za=Bi.values.filter(pi);if(Za.length===2){var qi=Xa.parse(ye,Za[1]),eo=Za[0];xn(eo)&&dt.push({stop:{type:16,number:eo.number*100,flags:eo.flags},color:qi})}}}}),gr===1?{angle:(We+Aa(180))%Aa(360),stops:dt,type:gr}:{size:En,shape:an,stops:dt,position:jn,type:gr}},Ho="closest-side",_o="farthest-side",uo="closest-corner",Ha="farthest-corner",mt="circle",Tr="ellipse",en="cover",Jr="contain",Jn=function(ye,Ne){var We=0,dt=3,gr=[],an=[];return Pi(Ne).forEach(function(En,jn){var ii=!0;if(jn===0){var Yi=!1;ii=En.reduce(function(qi,Za){if(Yi)if(Ln(Za))switch(Za.value){case"center":return an.push(Wi),qi;case"top":case"left":return an.push(Xi),qi;case"right":case"bottom":return an.push(ji),qi}else(zi(Za)||Ii(Za))&&an.push(Za);else if(Ln(Za))switch(Za.value){case mt:return We=0,!1;case Tr:return We=1,!1;case"at":return Yi=!0,!1;case Ho:return dt=0,!1;case en:case _o:return dt=1,!1;case Jr:case uo:return dt=2,!1;case Ha:return dt=3,!1}else if(Ii(Za)||zi(Za))return Array.isArray(dt)||(dt=[]),dt.push(Za),!1;return qi},ii)}if(ii){var Bi=Jo(ye,En);gr.push(Bi)}}),{size:dt,shape:We,stops:gr,position:an,type:2}},fn=function(ye,Ne){var We=0,dt=3,gr=[],an=[];return Pi(Ne).forEach(function(En,jn){var ii=!0;if(jn===0?ii=En.reduce(function(Bi,qi){if(Ln(qi))switch(qi.value){case"center":return an.push(Wi),!1;case"top":case"left":return an.push(Xi),!1;case"right":case"bottom":return an.push(ji),!1}else if(zi(qi)||Ii(qi))return an.push(qi),!1;return Bi},ii):jn===1&&(ii=En.reduce(function(Bi,qi){if(Ln(qi))switch(qi.value){case mt:return We=0,!1;case Tr:return We=1,!1;case Jr:case Ho:return dt=0,!1;case _o:return dt=1,!1;case uo:return dt=2,!1;case en:case Ha:return dt=3,!1}else if(Ii(qi)||zi(qi))return Array.isArray(dt)||(dt=[]),dt.push(qi),!1;return Bi},ii)),ii){var Yi=Jo(ye,En);gr.push(Yi)}}),{size:dt,shape:We,stops:gr,position:an,type:2}},Yr=function(ye){return ye.type===1},ni=function(ye){return ye.type===2},nn={name:"image",parse:function(ye,Ne){if(Ne.type===22){var We={url:Ne.value,type:0};return ye.cache.addImage(Ne.value),We}if(Ne.type===18){var dt=li[Ne.name];if(typeof dt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+Ne.name+'"');return dt(ye,Ne.values)}throw new Error("Unsupported image type "+Ne.type)}};function zn(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":Jn,"-moz-radial-gradient":fn,"-ms-radial-gradient":fn,"-o-radial-gradient":fn,"-webkit-radial-gradient":fn,"-webkit-gradient":rs},ci={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(ye,Ne){if(Ne.length===0)return[];var We=Ne[0];return We.type===20&&We.value==="none"?[]:Ne.filter(function(dt){return pi(dt)&&zn(dt)}).map(function(dt){return nn.parse(ye,dt)})}},si={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(ye,Ne){return Ne.map(function(We){if(Ln(We))switch(We.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ci={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(ye,Ne){return Pi(Ne).map(function(We){return We.filter(zi)}).map(ea)}},mi={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(ye,Ne){return Pi(Ne).map(function(We){return We.filter(Ln).map(function(dt){return dt.value}).join(" ")}).map(Ai)}},Ai=function(ye){switch(ye){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Ni;(function(Er){Er.AUTO="auto",Er.CONTAIN="contain",Er.COVER="cover"})(Ni||(Ni={}));var ia={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(ye,Ne){return Pi(Ne).map(function(We){return We.filter(Ki)})}},Ki=function(ye){return Ln(ye)||zi(ye)},fa=function(ye){return{name:"border-"+ye+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ya=fa("top"),xa=fa("right"),wa=fa("bottom"),Da=fa("left"),ja=function(ye){return{name:"border-radius-"+ye,initialValue:"0 0",prefix:!1,type:1,parse:function(We,dt){return ea(dt.filter(zi))}}},ko=ja("top-left"),ro=ja("top-right"),pa=ja("bottom-right"),Ea=ja("bottom-left"),Fa=function(ye){return{name:"border-"+ye+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(We,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(ye){return{name:"border-"+ye+"-width",initialValue:"0",type:0,prefix:!1,parse:function(We,dt){return tn(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(ye,Ne){switch(Ne){case"rtl":return 1;case"ltr":default:return 0}}},Ao={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(ye,Ne){return Ne.filter(Ln).reduce(function(We,dt){return We|$a(dt.value)},0)}},$a=function(ye){switch(ye){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},ss={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},_s={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(ye,Ne){return Ne.type===20&&Ne.value==="normal"?0:Ne.type===17||Ne.type===15?Ne.number:0}},Fo;(function(Er){Er.NORMAL="normal",Er.STRICT="strict"})(Fo||(Fo={}));var il={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"strict":return Fo.STRICT;case"normal":default:return Fo.NORMAL}}},Eo={name:"line-height",initialValue:"normal",prefix:!1,type:4},zo=function(ye,Ne){return Ln(ye)&&ye.value==="normal"?1.2*Ne:ye.type===17?Ne*ye.number:zi(ye)?ca(ye,Ne):Ne},Fs={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(ye,Ne){return Ne.type===20&&Ne.value==="none"?null:nn.parse(ye,Ne)}},ms={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"inside":return 0;case"outside":default:return 1}}},hs={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},wn=function(ye){return{name:"margin-"+ye,initialValue:"0",prefix:!1,type:4}},Ns=wn("top"),Ll=wn("right"),el=wn("bottom"),Gs=wn("left"),ds={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(ye,Ne){return Ne.filter(Ln).map(function(We){switch(We.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ks={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"break-word":return"break-word";case"normal":default:return"normal"}}},Qs=function(ye){return{name:"padding-"+ye,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},tl=Qs("top"),xs=Qs("right"),Bs=Qs("bottom"),al=Qs("left"),Js={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Vo={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},No={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ye,Ne){return Ne.length===1&&qn(Ne[0],"none")?[]:Pi(Ne).map(function(We){for(var dt={color:So.TRANSPARENT,offsetX:Xi,offsetY:Xi,blur:Xi},gr=0,an=0;an<We.length;an++){var En=We[an];Ii(En)?(gr===0?dt.offsetX=En:gr===1?dt.offsetY=En:dt.blur=En,gr++):dt.color=Xa.parse(ye,En)}return dt})}},fs={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Ds={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(ye,Ne){if(Ne.type===20&&Ne.value==="none")return null;if(Ne.type===18){var We=or[Ne.name];if(typeof We=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+Ne.name+'"');return We(Ne.values)}return null}},go=function(ye){var Ne=ye.filter(function(We){return We.type===17}).map(function(We){return We.number});return Ne.length===6?Ne:null},Ut=function(ye){var Ne=ye.filter(function(ii){return ii.type===17}).map(function(ii){return ii.number}),We=Ne[0],dt=Ne[1];Ne[2],Ne[3];var gr=Ne[4],an=Ne[5];Ne[6],Ne[7],Ne[8],Ne[9],Ne[10],Ne[11];var En=Ne[12],jn=Ne[13];return Ne[14],Ne[15],Ne.length===16?[We,dt,gr,an,En,jn]:null},or={matrix:go,matrix3d:Ut},Nn={type:16,number:50,flags:St},hi=[Nn,Nn],Nt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(ye,Ne){var We=Ne.filter(zi);return We.length!==2?hi:[We[0],We[1]]}},ce={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},xe;(function(Er){Er.NORMAL="normal",Er.BREAK_ALL="break-all",Er.KEEP_ALL="keep-all"})(xe||(xe={}));for(var Oe={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){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(ye,Ne){if(Ne.type===20)return{auto:!0,order:0};if(xn(Ne))return{auto:!1,order:Ne.number};throw new Error("Invalid z-index number parsed")}},Dt={name:"time",parse:function(ye,Ne){if(Ne.type===15)switch(Ne.unit.toLowerCase()){case"s":return 1e3*Ne.number;case"ms":return Ne.number}throw new Error("Unsupported time type")}},lr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(ye,Ne){return xn(Ne)?Ne.number:1}},Zr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},mn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(ye,Ne){return Ne.filter(Ln).map(function(We){switch(We.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(We){return We!==0})}},Dn={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(ye,Ne){var We=[],dt=[];return Ne.forEach(function(gr){switch(gr.type){case 20:case 0:We.push(gr.value);break;case 17:We.push(gr.number.toString());break;case 4:dt.push(We.join(" ")),We.length=0;break}}),We.length&&dt.push(We.join(" ")),dt.map(function(gr){return gr.indexOf(" ")===-1?gr:"'"+gr+"'"})}},ui={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Si={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(ye,Ne){if(xn(Ne))return Ne.number;if(Ln(Ne))switch(Ne.value){case"bold":return 700;case"normal":default:return 400}return 400}},vi={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(ye,Ne){return Ne.filter(Ln).map(function(We){return We.value})}},Qi={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(ye,Ne){switch(Ne){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},sa=function(ye,Ne){return(ye&Ne)!==0},Ua={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(ye,Ne){if(Ne.length===0)return[];var We=Ne[0];return We.type===20&&We.value==="none"?[]:Ne}},no={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(ye,Ne){if(Ne.length===0)return null;var We=Ne[0];if(We.type===20&&We.value==="none")return null;for(var dt=[],gr=Ne.filter(Wn),an=0;an<gr.length;an++){var En=gr[an],jn=gr[an+1];if(En.type===20){var ii=jn&&xn(jn)?jn.number:1;dt.push({counter:En.value,increment:ii})}}return dt}},Wo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(ye,Ne){if(Ne.length===0)return[];for(var We=[],dt=Ne.filter(Wn),gr=0;gr<dt.length;gr++){var an=dt[gr],En=dt[gr+1];if(Ln(an)&&an.value!=="none"){var jn=En&&xn(En)?En.number:0;We.push({counter:an.value,reset:jn})}}return We}},Zo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(ye,Ne){return Ne.filter(tn).map(function(We){return Dt.parse(ye,We)})}},Bo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(ye,Ne){if(Ne.length===0)return null;var We=Ne[0];if(We.type===20&&We.value==="none")return null;var dt=[],gr=Ne.filter(Sn);if(gr.length%2!==0)return null;for(var an=0;an<gr.length;an+=2){var En=gr[an].value,jn=gr[an+1].value;dt.push({open:En,close:jn})}return dt}},Es=function(ye,Ne,We){if(!ye)return"";var dt=ye[Math.min(Ne,ye.length-1)];return dt?We?dt.open:dt.close:""},As={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ye,Ne){return Ne.length===1&&qn(Ne[0],"none")?[]:Pi(Ne).map(function(We){for(var dt={color:255,offsetX:Xi,offsetY:Xi,blur:Xi,spread:Xi,inset:!1},gr=0,an=0;an<We.length;an++){var En=We[an];qn(En,"inset")?dt.inset=!0:Ii(En)?(gr===0?dt.offsetX=En:gr===1?dt.offsetY=En:gr===2?dt.blur=En:dt.spread=En,gr++):dt.color=Xa.parse(ye,En)}return dt})}},$o={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(ye,Ne){var We=[0,1,2],dt=[];return Ne.filter(Ln).forEach(function(gr){switch(gr.value){case"stroke":dt.push(1);break;case"fill":dt.push(0);break;case"markers":dt.push(2);break}}),We.forEach(function(gr){dt.indexOf(gr)===-1&&dt.push(gr)}),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(ye,Ne){return tn(Ne)?Ne.number:0}},Ms=function(){function Er(ye,Ne){var We,dt;this.animationDuration=Ra(ye,Zo,Ne.animationDuration),this.backgroundClip=Ra(ye,bo,Ne.backgroundClip),this.backgroundColor=Ra(ye,to,Ne.backgroundColor),this.backgroundImage=Ra(ye,ci,Ne.backgroundImage),this.backgroundOrigin=Ra(ye,si,Ne.backgroundOrigin),this.backgroundPosition=Ra(ye,Ci,Ne.backgroundPosition),this.backgroundRepeat=Ra(ye,mi,Ne.backgroundRepeat),this.backgroundSize=Ra(ye,ia,Ne.backgroundSize),this.borderTopColor=Ra(ye,Ya,Ne.borderTopColor),this.borderRightColor=Ra(ye,xa,Ne.borderRightColor),this.borderBottomColor=Ra(ye,wa,Ne.borderBottomColor),this.borderLeftColor=Ra(ye,Da,Ne.borderLeftColor),this.borderTopLeftRadius=Ra(ye,ko,Ne.borderTopLeftRadius),this.borderTopRightRadius=Ra(ye,ro,Ne.borderTopRightRadius),this.borderBottomRightRadius=Ra(ye,pa,Ne.borderBottomRightRadius),this.borderBottomLeftRadius=Ra(ye,Ea,Ne.borderBottomLeftRadius),this.borderTopStyle=Ra(ye,Ka,Ne.borderTopStyle),this.borderRightStyle=Ra(ye,lo,Ne.borderRightStyle),this.borderBottomStyle=Ra(ye,so,Ne.borderBottomStyle),this.borderLeftStyle=Ra(ye,Co,Ne.borderLeftStyle),this.borderTopWidth=Ra(ye,is,Ne.borderTopWidth),this.borderRightWidth=Ra(ye,cs,Ne.borderRightWidth),this.borderBottomWidth=Ra(ye,Rs,Ne.borderBottomWidth),this.borderLeftWidth=Ra(ye,Ko,Ne.borderLeftWidth),this.boxShadow=Ra(ye,As,Ne.boxShadow),this.color=Ra(ye,as,Ne.color),this.direction=Ra(ye,co,Ne.direction),this.display=Ra(ye,Ao,Ne.display),this.float=Ra(ye,ss,Ne.cssFloat),this.fontFamily=Ra(ye,Dn,Ne.fontFamily),this.fontSize=Ra(ye,ui,Ne.fontSize),this.fontStyle=Ra(ye,Qi,Ne.fontStyle),this.fontVariant=Ra(ye,vi,Ne.fontVariant),this.fontWeight=Ra(ye,Si,Ne.fontWeight),this.letterSpacing=Ra(ye,_s,Ne.letterSpacing),this.lineBreak=Ra(ye,il,Ne.lineBreak),this.lineHeight=Ra(ye,Eo,Ne.lineHeight),this.listStyleImage=Ra(ye,Fs,Ne.listStyleImage),this.listStylePosition=Ra(ye,ms,Ne.listStylePosition),this.listStyleType=Ra(ye,hs,Ne.listStyleType),this.marginTop=Ra(ye,Ns,Ne.marginTop),this.marginRight=Ra(ye,Ll,Ne.marginRight),this.marginBottom=Ra(ye,el,Ne.marginBottom),this.marginLeft=Ra(ye,Gs,Ne.marginLeft),this.opacity=Ra(ye,lr,Ne.opacity);var gr=Ra(ye,ds,Ne.overflow);this.overflowX=gr[0],this.overflowY=gr[gr.length>1?1:0],this.overflowWrap=Ra(ye,ks,Ne.overflowWrap),this.paddingTop=Ra(ye,tl,Ne.paddingTop),this.paddingRight=Ra(ye,xs,Ne.paddingRight),this.paddingBottom=Ra(ye,Bs,Ne.paddingBottom),this.paddingLeft=Ra(ye,al,Ne.paddingLeft),this.paintOrder=Ra(ye,$o,Ne.paintOrder),this.position=Ra(ye,Vo,Ne.position),this.textAlign=Ra(ye,Js,Ne.textAlign),this.textDecorationColor=Ra(ye,Zr,(We=Ne.textDecorationColor)!==null&&We!==void 0?We:Ne.color),this.textDecorationLine=Ra(ye,mn,(dt=Ne.textDecorationLine)!==null&&dt!==void 0?dt:Ne.textDecoration),this.textShadow=Ra(ye,No,Ne.textShadow),this.textTransform=Ra(ye,fs,Ne.textTransform),this.transform=Ra(ye,Ds,Ne.transform),this.transformOrigin=Ra(ye,Nt,Ne.transformOrigin),this.visibility=Ra(ye,ce,Ne.visibility),this.webkitTextStrokeColor=Ra(ye,Do,Ne.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ra(ye,vo,Ne.webkitTextStrokeWidth),this.wordBreak=Ra(ye,Oe,Ne.wordBreak),this.zIndex=Ra(ye,Qe,Ne.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(ye,Ne){this.content=Ra(ye,Ua,Ne.content),this.quotes=Ra(ye,Bo,Ne.quotes)}return Er}(),gs=function(){function Er(ye,Ne){this.counterIncrement=Ra(ye,no,Ne.counterIncrement),this.counterReset=Ra(ye,Wo,Ne.counterReset)}return Er}(),Ra=function(ye,Ne,We){var dt=new Or,gr=We!==null&&typeof We!="undefined"?We.toString():Ne.initialValue;dt.write(gr);var an=new Nr(dt.read());switch(Ne.type){case 2:var En=an.parseComponentValue();return Ne.parse(ye,Ln(En)?En.value:Ne.initialValue);case 0:return Ne.parse(ye,an.parseComponentValue());case 1:return Ne.parse(ye,an.parseComponentValues());case 4:return an.parseComponentValue();case 3:switch(Ne.format){case"angle":return va.parse(ye,an.parseComponentValue());case"color":return Xa.parse(ye,an.parseComponentValue());case"image":return nn.parse(ye,an.parseComponentValue());case"length":var jn=an.parseComponentValue();return Ii(jn)?jn:Xi;case"length-percentage":var ii=an.parseComponentValue();return zi(ii)?ii:Xi;case"time":return Dt.parse(ye,an.parseComponentValue())}break}},dl="data-html2canvas-debug",fl=function(ye){var Ne=ye.getAttribute(dl);switch(Ne){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Us=function(ye,Ne){var We=fl(ye);return We===1||Ne===We},Os=function(){function Er(ye,Ne){if(this.context=ye,this.textNodes=[],this.elements=[],this.flags=0,Us(Ne,3))debugger;this.styles=new Ms(ye,window.getComputedStyle(Ne,null)),js(Ne)&&(this.styles.animationDuration.some(function(We){return We>0})&&(Ne.style.animationDuration="0s"),this.styles.transform!==null&&(Ne.style.transform="none")),this.bounds=u(this.context,Ne),Us(Ne,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(ye){var Ne=ye.length*.75,We=ye.length,dt,gr=0,an,En,jn,ii;ye[ye.length-1]==="="&&(Ne--,ye[ye.length-2]==="="&&Ne--);var Yi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Ne):new Array(Ne),Bi=Array.isArray(Yi)?Yi:new Uint8Array(Yi);for(dt=0;dt<We;dt+=4)an=Ul[ye.charCodeAt(dt)],En=Ul[ye.charCodeAt(dt+1)],jn=Ul[ye.charCodeAt(dt+2)],ii=Ul[ye.charCodeAt(dt+3)],Bi[gr++]=an<<2|En>>4,Bi[gr++]=(En&15)<<4|jn>>2,Bi[gr++]=(jn&3)<<6|ii&63;return Yi},Ws=function(ye){for(var Ne=ye.length,We=[],dt=0;dt<Ne;dt+=2)We.push(ye[dt+1]<<8|ye[dt]);return We},Tl=function(ye){for(var Ne=ye.length,We=[],dt=0;dt<Ne;dt+=4)We.push(ye[dt+3]<<24|ye[dt+2]<<16|ye[dt+1]<<8|ye[dt]);return We},pl=5,jo=6+5,yo=2,qo=jo-pl,ps=65536>>pl,Is=1<<pl,es=Is-1,Ls=1024>>pl,Ps=ps+Ls,ml=Ps,Rl=2048>>6,_l=ml+Rl,Bl=65536>>jo,jl=1<<qo,kl=jl-1,Xl=function(ye,Ne,We){return ye.slice?ye.slice(Ne,We):new Uint16Array(Array.prototype.slice.call(ye,Ne,We))},ol=function(ye,Ne,We){return ye.slice?ye.slice(Ne,We):new Uint32Array(Array.prototype.slice.call(ye,Ne,We))},Ys=function(ye,Ne){var We=Ts(ye),dt=Array.isArray(We)?Tl(We):new Uint32Array(We),gr=Array.isArray(We)?Ws(We):new Uint16Array(We),an=24,En=Xl(gr,an/2,dt[4]/2),jn=dt[5]===2?Xl(gr,(an+dt[4])/2):ol(dt,Math.ceil((an+dt[4])/4));return new sl(dt[0],dt[1],dt[2],dt[3],En,jn)},sl=function(){function Er(ye,Ne,We,dt,gr,an){this.initialValue=ye,this.errorValue=Ne,this.highStart=We,this.highValueIndex=dt,this.index=gr,this.data=an}return Er.prototype.get=function(ye){var Ne;if(ye>=0){if(ye<55296||ye>56319&&ye<=65535)return Ne=this.index[ye>>pl],Ne=(Ne<<yo)+(ye&es),this.data[Ne];if(ye<=65535)return Ne=this.index[ps+(ye-55296>>pl)],Ne=(Ne<<yo)+(ye&es),this.data[Ne];if(ye<this.highStart)return Ne=_l-Bl+(ye>>jo),Ne=this.index[Ne],Ne+=ye>>pl&kl,Ne=this.index[Ne],Ne=(Ne<<yo)+(ye&es),this.data[Ne];if(ye<=1114111)return this.data[this.highValueIndex]}return this.errorValue},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(ye){for(var Ne=[],We=0,dt=ye.length;We<dt;){var gr=ye.charCodeAt(We++);if(gr>=55296&&gr<=56319&&We<dt){var an=ye.charCodeAt(We++);(an&64512)===56320?Ne.push(((gr&1023)<<10)+(an&1023)+65536):(Ne.push(gr),We--)}else Ne.push(gr)}return Ne},vu=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ye);var We=ye.length;if(!We)return"";for(var dt=[],gr=-1,an="";++gr<We;){var En=ye[gr];En<=65535?dt.push(En):(En-=65536,dt.push((En>>10)+55296,En%1024+56320)),(gr+1===We||dt.length>16384)&&(an+=String.fromCharCode.apply(String,dt),dt.length=0)}return an},Au=Ys(Xs),Ol="\xD7",cu="\xF7",du=function(ye){return Au.get(ye)},Lu=function(ye,Ne,We){var dt=We-2,gr=Ne[dt],an=Ne[We-1],En=Ne[We];if(an===au&&En===Nl)return Ol;if(an===au||an===Nl||an===$l)return cu;if(En===au||En===Nl||En===$l)return cu;if(an===pu&&[pu,mu,ql,Cl].indexOf(En)!==-1)return Ol;if((an===ql||an===mu)&&(En===mu||En===gu))return Ol;if((an===Cl||an===gu)&&En===gu)return Ol;if(En===ll||En===tu)return Ol;if(En===Iu)return Ol;if(an===Wl)return Ol;if(an===ll&&En===Hl){for(;gr===tu;)gr=Ne[--dt];if(gr===Hl)return Ol}if(an===Sl&&En===Sl){for(var jn=0;gr===Sl;)jn++,gr=Ne[--dt];if(jn%2===0)return Ol}return cu},zl=function(ye){var Ne=Su(ye),We=Ne.length,dt=0,gr=0,an=Ne.map(du);return{next:function(){if(dt>=We)return{done:!0,value:null};for(var jn=Ol;dt<We&&(jn=Lu(Ne,an,++dt))===Ol;);if(jn!==Ol||dt===We){var ii=vu.apply(null,Ne.slice(gr,dt));return gr=dt,{value:ii,done:!1}}return{done:!0,value:null}}}},ru=function(ye){for(var Ne=zl(ye),We=[],dt;!(dt=Ne.next()).done;)dt.value&&We.push(dt.value.slice());return We},ou=function(ye){var Ne=123;if(ye.createRange){var We=ye.createRange();if(We.getBoundingClientRect){var dt=ye.createElement("boundtest");dt.style.height=Ne+"px",dt.style.display="block",ye.body.appendChild(dt),We.selectNode(dt);var gr=We.getBoundingClientRect(),an=Math.round(gr.height);if(ye.body.removeChild(dt),an===Ne)return!0}}return!1},su=function(ye){var Ne=ye.createElement("boundtest");Ne.style.width="50px",Ne.style.display="block",Ne.style.fontSize="12px",Ne.style.letterSpacing="0px",Ne.style.wordSpacing="0px",ye.body.appendChild(Ne);var We=ye.createRange();Ne.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var dt=Ne.firstChild,gr=i(dt.data).map(function(ii){return t(ii)}),an=0,En={},jn=gr.every(function(ii,Yi){We.setStart(dt,an),We.setEnd(dt,an+ii.length);var Bi=We.getBoundingClientRect();an+=ii.length;var qi=Bi.x>En.x||Bi.y>En.y;return En=Bi,Yi===0?!0:qi});return ye.body.removeChild(Ne),jn},Jl=function(){return typeof new Image().crossOrigin!="undefined"},Du=function(){return typeof new XMLHttpRequest().responseType=="string"},Ru=function(ye){var Ne=new Image,We=ye.createElement("canvas"),dt=We.getContext("2d");if(!dt)return!1;Ne.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{dt.drawImage(Ne,0,0),We.toDataURL()}catch(gr){return!1}return!0},Zl=function(ye){return ye[0]===0&&ye[1]===255&&ye[2]===0&&ye[3]===255},yu=function(ye){var Ne=ye.createElement("canvas"),We=100;Ne.width=We,Ne.height=We;var dt=Ne.getContext("2d");if(!dt)return Promise.reject(!1);dt.fillStyle="rgb(0, 255, 0)",dt.fillRect(0,0,We,We);var gr=new Image,an=Ne.toDataURL();gr.src=an;var En=xu(We,We,0,0,gr);return dt.fillStyle="red",dt.fillRect(0,0,We,We),bu(En).then(function(jn){dt.drawImage(jn,0,0);var ii=dt.getImageData(0,0,We,We).data;dt.fillStyle="red",dt.fillRect(0,0,We,We);var Yi=ye.createElement("div");return Yi.style.backgroundImage="url("+an+")",Yi.style.height=We+"px",Zl(ii)?bu(xu(We,We,0,0,Yi)):Promise.reject(!1)}).then(function(jn){return dt.drawImage(jn,0,0),Zl(dt.getImageData(0,0,We,We).data)}).catch(function(){return!1})},xu=function(ye,Ne,We,dt,gr){var an="http://www.w3.org/2000/svg",En=document.createElementNS(an,"svg"),jn=document.createElementNS(an,"foreignObject");return En.setAttributeNS(null,"width",ye.toString()),En.setAttributeNS(null,"height",Ne.toString()),jn.setAttributeNS(null,"width","100%"),jn.setAttributeNS(null,"height","100%"),jn.setAttributeNS(null,"x",We.toString()),jn.setAttributeNS(null,"y",dt.toString()),jn.setAttributeNS(null,"externalResourcesRequired","true"),En.appendChild(jn),jn.appendChild(gr),En},bu=function(ye){return new Promise(function(Ne,We){var dt=new Image;dt.onload=function(){return Ne(dt)},dt.onerror=We,dt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ye))})},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(ye,Ne){this.text=ye,this.bounds=Ne}return Er}(),nu=function(ye,Ne,We,dt){var gr=Ae(Ne,We),an=[],En=0;return gr.forEach(function(jn){if(We.textDecorationLine.length||jn.trim().length>0)if(hl.SUPPORT_RANGE_BOUNDS){var ii=hu(dt,En,jn.length).getClientRects();if(ii.length>1){var Yi=fu(jn),Bi=0;Yi.forEach(function(Za){an.push(new Dl(Za,d.fromDOMRectList(ye,hu(dt,Bi+En,Za.length).getClientRects()))),Bi+=Za.length})}else an.push(new Dl(jn,d.fromDOMRectList(ye,ii)))}else{var qi=dt.splitText(jn.length);an.push(new Dl(jn,Nu(ye,dt))),dt=qi}else hl.SUPPORT_RANGE_BOUNDS||(dt=dt.splitText(jn.length));En+=jn.length}),an},Nu=function(ye,Ne){var We=Ne.ownerDocument;if(We){var dt=We.createElement("html2canvaswrapper");dt.appendChild(Ne.cloneNode(!0));var gr=Ne.parentNode;if(gr){gr.replaceChild(dt,Ne);var an=u(ye,dt);return dt.firstChild&&gr.replaceChild(dt.firstChild,dt),an}}return d.EMPTY},hu=function(ye,Ne,We){var dt=ye.ownerDocument;if(!dt)throw new Error("Node has no owner document");var gr=dt.createRange();return gr.setStart(ye,Ne),gr.setEnd(ye,Ne+We),gr},fu=function(ye){if(hl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Ne=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(Ne.segment(ye)).map(function(We){return We.segment})}return ru(ye)},iu=function(ye,Ne){if(hl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var We=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(We.segment(ye)).map(function(dt){return dt.segment})}return L(ye,Ne)},Ae=function(ye,Ne){return Ne.letterSpacing!==0?fu(ye):iu(ye,Ne)},ee=[32,160,4961,65792,65793,4153,4241],L=function(ye,Ne){for(var We=Pe(ye,{lineBreak:Ne.lineBreak,wordBreak:Ne.overflowWrap==="break-word"?"break-word":Ne.wordBreak}),dt=[],gr,an=function(){if(gr.value){var jn=gr.value.slice(),ii=i(jn),Yi="";ii.forEach(function(Bi){ee.indexOf(Bi)===-1?Yi+=t(Bi):(Yi.length&&dt.push(Yi),dt.push(t(Bi)),Yi="")}),Yi.length&&dt.push(Yi)}};!(gr=We.next()).done;)an();return dt},W=function(){function Er(ye,Ne,We){this.text=H(Ne.data,We.textTransform),this.textBounds=nu(ye,this.text,We,Ne)}return Er}(),H=function(ye,Ne){switch(Ne){case 1:return ye.toLowerCase();case 3:return ye.replace(Z,ne);case 2:return ye.toUpperCase();default:return ye}},Z=/(^|\s|:|-|\(|\))([a-z])/g,ne=function(ye,Ne,We){return ye.length>0?Ne+We.toUpperCase():ye},ve=function(Er){p(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;return dt.src=We.currentSrc||We.src,dt.intrinsicWidth=We.naturalWidth,dt.intrinsicHeight=We.naturalHeight,dt.context.cache.addImage(dt.src),dt}return ye}(Os),Te=function(Er){p(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;return dt.canvas=We,dt.intrinsicWidth=We.width,dt.intrinsicHeight=We.height,dt}return ye}(Os),ze=function(Er){p(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this,gr=new XMLSerializer,an=u(Ne,We);return We.setAttribute("width",an.width+"px"),We.setAttribute("height",an.height+"px"),dt.svg="data:image/svg+xml,"+encodeURIComponent(gr.serializeToString(We)),dt.intrinsicWidth=We.width.baseVal.value,dt.intrinsicHeight=We.height.baseVal.value,dt.context.cache.addImage(dt.svg),dt}return ye}(Os),ot=function(Er){p(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;return dt.value=We.value,dt}return ye}(Os),ft=function(Er){p(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;return dt.start=We.start,dt.reversed=typeof We.reversed=="boolean"&&We.reversed===!0,dt}return ye}(Os),Zt=[{type:15,flags:0,unit:"px",number:3}],Cr=[{type:16,flags:0,number:50}],Sr=function(ye){return ye.width>ye.height?new d(ye.left+(ye.width-ye.height)/2,ye.top,ye.height,ye.height):ye.width<ye.height?new d(ye.left,ye.top+(ye.height-ye.width)/2,ye.width,ye.width):ye},Wr=function(ye){var Ne=ye.type===Rn?new Array(ye.value.length+1).join("\u2022"):ye.value;return Ne.length===0?ye.placeholder||"":Ne},$r="checkbox",On="radio",Rn="password",Zn=707406591,wi=function(Er){p(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;dt.type=We.type.toLowerCase(),dt.checked=We.checked,dt.value=Wr(We),(dt.type===$r||dt.type===On)&&(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=Sr(dt.bounds));switch(dt.type){case $r:dt.styles.borderTopRightRadius=dt.styles.borderTopLeftRadius=dt.styles.borderBottomRightRadius=dt.styles.borderBottomLeftRadius=Zt;break;case On:dt.styles.borderTopRightRadius=dt.styles.borderTopLeftRadius=dt.styles.borderBottomRightRadius=dt.styles.borderBottomLeftRadius=Cr;break}return dt}return ye}(Os),ua=function(Er){p(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this,gr=We.options[We.selectedIndex||0];return dt.value=gr&&gr.text||"",dt}return ye}(Os),Vi=function(Er){p(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;return dt.value=We.value,dt}return ye}(Os),Zi=function(Er){p(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;dt.src=We.src,dt.width=parseInt(We.width,10)||0,dt.height=parseInt(We.height,10)||0,dt.backgroundColor=dt.styles.backgroundColor;try{if(We.contentWindow&&We.contentWindow.document&&We.contentWindow.document.documentElement){dt.tree=Sa(Ne,We.contentWindow.document.documentElement);var gr=We.contentWindow.document.documentElement?ao(Ne,getComputedStyle(We.contentWindow.document.documentElement).backgroundColor):So.TRANSPARENT,an=We.contentWindow.document.body?ao(Ne,getComputedStyle(We.contentWindow.document.body).backgroundColor):So.TRANSPARENT;dt.backgroundColor=_a(gr)?_a(an)?dt.styles.backgroundColor:an:gr}}catch(En){}return dt}return ye}(Os),ka=["OL","UL","MENU"],Ga=function Er(ye,Ne,We,dt){for(var gr=Ne.firstChild,an=void 0;gr;gr=an)if(an=gr.nextSibling,ys(gr)&&gr.data.trim().length>0)We.textNodes.push(new W(ye,gr,We.styles));else if(Cs(gr))if(ar(gr)&&gr.assignedNodes)gr.assignedNodes().forEach(function(jn){return Er(ye,jn,We,dt)});else{var En=Ba(ye,gr);En.styles.isVisible()&&(Go(gr,En,dt)?En.flags|=4:bs(En.styles)&&(En.flags|=2),ka.indexOf(gr.tagName)!==-1&&(En.flags|=8),We.elements.push(En),gr.slot,gr.shadowRoot?Er(ye,gr.shadowRoot,En,dt):!Kt(gr)&&!dr(gr)&&!tr(gr)&&Er(ye,gr,En,dt))}},Ba=function(ye,Ne){return oe(Ne)?new ve(ye,Ne):sn(Ne)?new Te(ye,Ne):dr(Ne)?new ze(ye,Ne):Hs(Ne)?new ot(ye,Ne):Ee(Ne)?new ft(ye,Ne):Ye(Ne)?new wi(ye,Ne):tr(Ne)?new ua(ye,Ne):Kt(Ne)?new Vi(ye,Ne):_e(Ne)?new Zi(ye,Ne):new Os(ye,Ne)},Sa=function(ye,Ne){var We=Ba(ye,Ne);return We.flags|=4,Ga(ye,Ne,We,We),We},Go=function(ye,Ne,We){return Ne.styles.isPositionedWithZIndex()||Ne.styles.opacity<1||Ne.styles.isTransformed()||Br(ye)&&We.styles.isTransparent()},bs=function(ye){return ye.isPositioned()||ye.isFloating()},ys=function(ye){return ye.nodeType===Node.TEXT_NODE},Cs=function(ye){return ye.nodeType===Node.ELEMENT_NODE},js=function(ye){return Cs(ye)&&typeof ye.style!="undefined"&&!ws(ye)},ws=function(ye){return typeof ye.className=="object"},Hs=function(ye){return ye.tagName==="LI"},Ee=function(ye){return ye.tagName==="OL"},Ye=function(ye){return ye.tagName==="INPUT"},Tt=function(ye){return ye.tagName==="HTML"},dr=function(ye){return ye.tagName==="svg"},Br=function(ye){return ye.tagName==="BODY"},sn=function(ye){return ye.tagName==="CANVAS"},Ue=function(ye){return ye.tagName==="VIDEO"},oe=function(ye){return ye.tagName==="IMG"},_e=function(ye){return ye.tagName==="IFRAME"},$e=function(ye){return ye.tagName==="STYLE"},wt=function(ye){return ye.tagName==="SCRIPT"},Kt=function(ye){return ye.tagName==="TEXTAREA"},tr=function(ye){return ye.tagName==="SELECT"},ar=function(ye){return ye.tagName==="SLOT"},Gr=function(ye){return ye.tagName.indexOf("-")>0},pn=function(){function Er(){this.counters={}}return Er.prototype.getCounterValue=function(ye){var Ne=this.counters[ye];return Ne&&Ne.length?Ne[Ne.length-1]:1},Er.prototype.getCounterValues=function(ye){var Ne=this.counters[ye];return Ne||[]},Er.prototype.pop=function(ye){var Ne=this;ye.forEach(function(We){return Ne.counters[We].pop()})},Er.prototype.parse=function(ye){var Ne=this,We=ye.counterIncrement,dt=ye.counterReset,gr=!0;We!==null&&We.forEach(function(En){var jn=Ne.counters[En.counter];jn&&En.increment!==0&&(gr=!1,jn.length||jn.push(1),jn[Math.max(0,jn.length-1)]+=En.increment)});var an=[];return gr&&dt.forEach(function(En){var jn=Ne.counters[En.counter];an.push(En.counter),jn||(jn=Ne.counters[En.counter]=[]),jn.push(En.reset)}),an},Er}(),zr={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Hr={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},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"]},bn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Gn=function(ye,Ne,We,dt,gr,an){return ye<Ne||ye>We?ie(ye,gr,an.length>0):dt.integers.reduce(function(En,jn,ii){for(;ye>=jn;)ye-=jn,En+=dt.values[ii];return En},"")+an},Li=function(ye,Ne,We,dt){var gr="";do We||ye--,gr=dt(ye)+gr,ye/=Ne;while(ye*Ne>=Ne);return gr},Mi=function(ye,Ne,We,dt,gr){var an=We-Ne+1;return(ye<0?"-":"")+(Li(Math.abs(ye),an,dt,function(En){return t(Math.floor(En%an)+Ne)})+gr)},da=function(ye,Ne,We){We===void 0&&(We=". ");var dt=Ne.length;return Li(Math.abs(ye),dt,!1,function(gr){return Ne[Math.floor(gr%dt)]})+We},$i=1<<0,Qa=1<<1,ya=1<<2,fo=1<<3,za=function(ye,Ne,We,dt,gr,an){if(ye<-9999||ye>9999)return ie(ye,4,gr.length>0);var En=Math.abs(ye),jn=gr;if(En===0)return Ne[0]+jn;for(var ii=0;En>0&&ii<=4;ii++){var Yi=En%10;Yi===0&&sa(an,$i)&&jn!==""?jn=Ne[Yi]+jn:Yi>1||Yi===1&&ii===0||Yi===1&&ii===1&&sa(an,Qa)||Yi===1&&ii===1&&sa(an,ya)&&ye>100||Yi===1&&ii>1&&sa(an,fo)?jn=Ne[Yi]+(ii>0?We[ii-1]:"")+jn:Yi===1&&ii>0&&(jn=We[ii-1]+jn),En=Math.floor(En/10)}return(ye<0?dt:"")+jn},Xo="\u5341\u767E\u5343\u842C",ls="\u62FE\u4F70\u4EDF\u842C",N="\u30DE\u30A4\u30CA\u30B9",U="\uB9C8\uC774\uB108\uC2A4",ie=function(ye,Ne,We){var dt=We?". ":"",gr=We?"\u3001":"",an=We?", ":"",En=We?" ":"";switch(Ne){case 0:return"\u2022"+En;case 1:return"\u25E6"+En;case 2:return"\u25FE"+En;case 5:var jn=Mi(ye,48,57,!0,dt);return jn.length<4?"0"+jn:jn;case 4:return da(ye,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",gr);case 6:return Gn(ye,1,3999,zr,3,dt).toLowerCase();case 7:return Gn(ye,1,3999,zr,3,dt);case 8:return Mi(ye,945,969,!1,dt);case 9:return Mi(ye,97,122,!1,dt);case 10:return Mi(ye,65,90,!1,dt);case 11:return Mi(ye,1632,1641,!0,dt);case 12:case 49:return Gn(ye,1,9999,Hr,3,dt);case 35:return Gn(ye,1,9999,Hr,3,dt).toLowerCase();case 13:return Mi(ye,2534,2543,!0,dt);case 14:case 30:return Mi(ye,6112,6121,!0,dt);case 15:return da(ye,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",gr);case 16:return da(ye,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",gr);case 17:case 48:return za(ye,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Xo,"\u8CA0",gr,Qa|ya|fo);case 47:return za(ye,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ls,"\u8CA0",gr,$i|Qa|ya|fo);case 42:return za(ye,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Xo,"\u8D1F",gr,Qa|ya|fo);case 41:return za(ye,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ls,"\u8D1F",gr,$i|Qa|ya|fo);case 26:return za(ye,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",N,gr,0);case 25:return za(ye,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",N,gr,$i|Qa|ya);case 31:return za(ye,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",U,an,$i|Qa|ya);case 33:return za(ye,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",U,an,0);case 32:return za(ye,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",U,an,$i|Qa|ya);case 18:return Mi(ye,2406,2415,!0,dt);case 20:return Gn(ye,1,19999,bn,3,dt);case 21:return Mi(ye,2790,2799,!0,dt);case 22:return Mi(ye,2662,2671,!0,dt);case 22:return Gn(ye,1,10999,ln,3,dt);case 23:return da(ye,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return da(ye,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Mi(ye,3302,3311,!0,dt);case 28:return da(ye,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",gr);case 29:return da(ye,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",gr);case 34:return Mi(ye,3792,3801,!0,dt);case 37:return Mi(ye,6160,6169,!0,dt);case 38:return Mi(ye,4160,4169,!0,dt);case 39:return Mi(ye,2918,2927,!0,dt);case 40:return Mi(ye,1776,1785,!0,dt);case 43:return Mi(ye,3046,3055,!0,dt);case 44:return Mi(ye,3174,3183,!0,dt);case 45:return Mi(ye,3664,3673,!0,dt);case 46:return Mi(ye,3872,3881,!0,dt);case 3:default:return Mi(ye,48,57,!0,dt)}},ue="data-html2canvas-ignore",ge=function(){function Er(ye,Ne,We){if(this.context=ye,this.options=We,this.scrolledElements=[],this.referenceElement=Ne,this.counters=new pn,this.quoteDepth=0,!Ne.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Ne.ownerDocument.documentElement,!1)}return Er.prototype.toIFrame=function(ye,Ne){var We=this,dt=It(ye,Ne);if(!dt.contentWindow)return Promise.reject("Unable to find iframe window");var gr=ye.defaultView.pageXOffset,an=ye.defaultView.pageYOffset,En=dt.contentWindow,jn=En.document,ii=_r(dt).then(function(){return v(We,void 0,void 0,function(){var Yi,Bi;return m(this,function(qi){switch(qi.label){case 0:return this.scrolledElements.forEach(la),En&&(En.scrollTo(Ne.left,Ne.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(En.scrollY!==Ne.top||En.scrollX!==Ne.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(En.scrollX-Ne.left,En.scrollY-Ne.top,0,0))),Yi=this.options.onclone,Bi=this.clonedReferenceElement,typeof Bi=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:jn.fonts&&jn.fonts.ready?[4,jn.fonts.ready]:[3,2];case 1:qi.sent(),qi.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,wr(jn)]:[3,4];case 3:qi.sent(),qi.label=4;case 4:return typeof Yi=="function"?[2,Promise.resolve().then(function(){return Yi(jn,Bi)}).then(function(){return dt})]:[2,dt]}})})});return jn.open(),jn.write(xi(document.doctype)+"<html></html>"),_i(this.referenceElement.ownerDocument,gr,an),jn.replaceChild(jn.adoptNode(this.documentElement),jn.documentElement),jn.close(),ii},Er.prototype.createElementClone=function(ye){if(Us(ye,2))debugger;if(sn(ye))return this.createCanvasClone(ye);if(Ue(ye))return this.createVideoClone(ye);if($e(ye))return this.createStyleClone(ye);var Ne=ye.cloneNode(!1);return oe(Ne)&&(oe(ye)&&ye.currentSrc&&ye.currentSrc!==ye.src&&(Ne.src=ye.currentSrc,Ne.srcset=""),Ne.loading==="lazy"&&(Ne.loading="eager")),Gr(Ne)?this.createCustomElementClone(Ne):Ne},Er.prototype.createCustomElementClone=function(ye){var Ne=document.createElement("html2canvascustomelement");return ri(ye.style,Ne),Ne},Er.prototype.createStyleClone=function(ye){try{var Ne=ye.sheet;if(Ne&&Ne.cssRules){var We=[].slice.call(Ne.cssRules,0).reduce(function(gr,an){return an&&typeof an.cssText=="string"?gr+an.cssText:gr},""),dt=ye.cloneNode(!1);return dt.textContent=We,dt}}catch(gr){if(this.context.logger.error("Unable to access cssRules property",gr),gr.name!=="SecurityError")throw gr}return ye.cloneNode(!1)},Er.prototype.createCanvasClone=function(ye){var Ne;if(this.options.inlineImages&&ye.ownerDocument){var We=ye.ownerDocument.createElement("img");try{return We.src=ye.toDataURL(),We}catch(ii){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",ye)}}var dt=ye.cloneNode(!1);try{dt.width=ye.width,dt.height=ye.height;var gr=ye.getContext("2d"),an=dt.getContext("2d");if(an)if(!this.options.allowTaint&&gr)an.putImageData(gr.getImageData(0,0,ye.width,ye.height),0,0);else{var En=(Ne=ye.getContext("webgl2"))!==null&&Ne!==void 0?Ne:ye.getContext("webgl");if(En){var jn=En.getContextAttributes();(jn==null?void 0:jn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",ye)}an.drawImage(ye,0,0)}return dt}catch(ii){this.context.logger.info("Unable to clone canvas as it is tainted",ye)}return dt},Er.prototype.createVideoClone=function(ye){var Ne=ye.ownerDocument.createElement("canvas");Ne.width=ye.offsetWidth,Ne.height=ye.offsetHeight;var We=Ne.getContext("2d");try{return We&&(We.drawImage(ye,0,0,Ne.width,Ne.height),this.options.allowTaint||We.getImageData(0,0,Ne.width,Ne.height)),Ne}catch(gr){this.context.logger.info("Unable to clone video as it is tainted",ye)}var dt=ye.ownerDocument.createElement("canvas");return dt.width=ye.offsetWidth,dt.height=ye.offsetHeight,dt},Er.prototype.appendChildNode=function(ye,Ne,We){(!Cs(Ne)||!wt(Ne)&&!Ne.hasAttribute(ue)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(Ne)))&&((!this.options.copyStyles||!Cs(Ne)||!$e(Ne))&&ye.appendChild(this.cloneNode(Ne,We)))},Er.prototype.cloneChildNodes=function(ye,Ne,We){for(var dt=this,gr=ye.shadowRoot?ye.shadowRoot.firstChild:ye.firstChild;gr;gr=gr.nextSibling)if(Cs(gr)&&ar(gr)&&typeof gr.assignedNodes=="function"){var an=gr.assignedNodes();an.length&&an.forEach(function(En){return dt.appendChildNode(Ne,En,We)})}else this.appendChildNode(Ne,gr,We)},Er.prototype.cloneNode=function(ye,Ne){if(ys(ye))return document.createTextNode(ye.data);if(!ye.ownerDocument)return ye.cloneNode(!1);var We=ye.ownerDocument.defaultView;if(We&&Cs(ye)&&(js(ye)||ws(ye))){var dt=this.createElementClone(ye);dt.style.transitionProperty="none";var gr=We.getComputedStyle(ye),an=We.getComputedStyle(ye,":before"),En=We.getComputedStyle(ye,":after");this.referenceElement===ye&&js(dt)&&(this.clonedReferenceElement=dt),Br(dt)&&ho(dt);var jn=this.counters.parse(new gs(this.context,gr)),ii=this.resolvePseudoContent(ye,dt,an,Ke.BEFORE);Gr(ye)&&(Ne=!0),Ue(ye)||this.cloneChildNodes(ye,dt,Ne),ii&&dt.insertBefore(ii,dt.firstChild);var Yi=this.resolvePseudoContent(ye,dt,En,Ke.AFTER);return Yi&&dt.appendChild(Yi),this.counters.pop(jn),(gr&&(this.options.copyStyles||ws(ye))&&!_e(ye)||Ne)&&ri(gr,dt),(ye.scrollTop!==0||ye.scrollLeft!==0)&&this.scrolledElements.push([dt,ye.scrollLeft,ye.scrollTop]),(Kt(ye)||tr(ye))&&(Kt(dt)||tr(dt))&&(dt.value=ye.value),dt}return ye.cloneNode(!1)},Er.prototype.resolvePseudoContent=function(ye,Ne,We,dt){var gr=this;if(!We)return;var an=We.content,En=Ne.ownerDocument;if(!En||!an||an==="none"||an==="-moz-alt-content"||We.display==="none")return;this.counters.parse(new gs(this.context,We));var jn=new rl(this.context,We),ii=En.createElement("html2canvaspseudoelement");ri(We,ii),jn.content.forEach(function(Bi){if(Bi.type===0)ii.appendChild(En.createTextNode(Bi.value));else if(Bi.type===22){var qi=En.createElement("img");qi.src=Bi.value,qi.style.opacity="1",ii.appendChild(qi)}else if(Bi.type===18){if(Bi.name==="attr"){var Za=Bi.values.filter(Ln);Za.length&&ii.appendChild(En.createTextNode(ye.getAttribute(Za[0].value)||""))}else if(Bi.name==="counter"){var eo=Bi.values.filter(pi),po=eo[0],us=eo[1];if(po&&Ln(po)){var Yo=gr.counters.getCounterValue(po.value),Po=us&&Ln(us)?hs.parse(gr.context,us.value):3;ii.appendChild(En.createTextNode(ie(Yo,Po,!1)))}}else if(Bi.name==="counters"){var $s=Bi.values.filter(pi),po=$s[0],cl=$s[1],us=$s[2];if(po&&Ln(po)){var zs=gr.counters.getCounterValues(po.value),Ro=us&&Ln(us)?hs.parse(gr.context,us.value):3,Al=cl&&cl.type===0?cl.value:"",bl=zs.map(function(Mu){return ie(Mu,Ro,!1)}).join(Al);ii.appendChild(En.createTextNode(bl))}}}else if(Bi.type===20)switch(Bi.value){case"open-quote":ii.appendChild(En.createTextNode(Es(jn.quotes,gr.quoteDepth++,!0)));break;case"close-quote":ii.appendChild(En.createTextNode(Es(jn.quotes,--gr.quoteDepth,!1)));break;default:ii.appendChild(En.createTextNode(Bi.value))}}),ii.className=Ma+" "+Na;var Yi=dt===Ke.BEFORE?" "+Ma:" "+Na;return ws(Ne)?Ne.className.baseValue+=Yi:Ne.className+=Yi,ii},Er.destroy=function(ye){return ye.parentNode?(ye.parentNode.removeChild(ye),!0):!1},Er}(),Ke;(function(Er){Er[Er.BEFORE=0]="BEFORE",Er[Er.AFTER=1]="AFTER"})(Ke||(Ke={}));var It=function(ye,Ne){var We=ye.createElement("iframe");return We.className="html2canvas-container",We.style.visibility="hidden",We.style.position="fixed",We.style.left="-10000px",We.style.top="0px",We.style.border="0",We.width=Ne.width.toString(),We.height=Ne.height.toString(),We.scrolling="no",We.setAttribute(ue,"true"),ye.body.appendChild(We),We},nr=function(ye){return new Promise(function(Ne){if(ye.complete){Ne();return}if(!ye.src){Ne();return}ye.onload=Ne,ye.onerror=Ne})},wr=function(ye){return Promise.all([].slice.call(ye.images,0).map(nr))},_r=function(ye){return new Promise(function(Ne,We){var dt=ye.contentWindow;if(!dt)return We("No window assigned for iframe");var gr=dt.document;dt.onload=ye.onload=function(){dt.onload=ye.onload=null;var an=setInterval(function(){gr.body.childNodes.length>0&&gr.readyState==="complete"&&(clearInterval(an),Ne(ye))},50)}})},Hn=["all","d","content"],ri=function(ye,Ne){for(var We=ye.length-1;We>=0;We--){var dt=ye.item(We);Hn.indexOf(dt)===-1&&Ne.style.setProperty(dt,ye.getPropertyValue(dt))}return Ne},xi=function(ye){var Ne="";return ye&&(Ne+="<!DOCTYPE ",ye.name&&(Ne+=ye.name),ye.internalSubset&&(Ne+=ye.internalSubset),ye.publicId&&(Ne+='"'+ye.publicId+'"'),ye.systemId&&(Ne+='"'+ye.systemId+'"'),Ne+=">"),Ne},_i=function(ye,Ne,We){ye&&ye.defaultView&&(Ne!==ye.defaultView.pageXOffset||We!==ye.defaultView.pageYOffset)&&ye.defaultView.scrollTo(Ne,We)},la=function(ye){var Ne=ye[0],We=ye[1],dt=ye[2];Ne.scrollLeft=We,Ne.scrollTop=dt},Ta=":before",Wa=":after",Ma="___html2canvas___pseudoelement_before",Na="___html2canvas___pseudoelement_after",qa=`{
content: "" !important;
display: none !important;
}`,ho=function(ye){ns(ye,"."+Ma+Ta+qa+`
.`+Na+Wa+qa)},ns=function(ye,Ne){var We=ye.ownerDocument;if(We){var dt=We.createElement("style");dt.textContent=Ne,ye.appendChild(dt)}},Mo=function(){function Er(){}return Er.getOrigin=function(ye){var Ne=Er._link;return Ne?(Ne.href=ye,Ne.href=Ne.href,Ne.protocol+Ne.hostname+Ne.port):"about:blank"},Er.isSameOrigin=function(ye){return Er.getOrigin(ye)===Er._origin},Er.setContext=function(ye){Er._link=ye.document.createElement("a"),Er._origin=Er.getOrigin(ye.location.href)},Er._origin="about:blank",Er}(),Ss=function(){function Er(ye,Ne){this.context=ye,this._options=Ne,this._cache={}}return Er.prototype.addImage=function(ye){var Ne=Promise.resolve();return this.has(ye)||(Gl(ye)||Pl(ye))&&(this._cache[ye]=this.loadImage(ye)).catch(function(){}),Ne},Er.prototype.match=function(ye){return this._cache[ye]},Er.prototype.loadImage=function(ye){return v(this,void 0,void 0,function(){var Ne,We,dt,gr,an=this;return m(this,function(En){switch(En.label){case 0:return Ne=Mo.isSameOrigin(ye),We=!Vl(ye)&&this._options.useCORS===!0&&hl.SUPPORT_CORS_IMAGES&&!Ne,dt=!Vl(ye)&&!Ne&&!Gl(ye)&&typeof this._options.proxy=="string"&&hl.SUPPORT_CORS_XHR&&!We,!Ne&&this._options.allowTaint===!1&&!Vl(ye)&&!Gl(ye)&&!dt&&!We?[2]:(gr=ye,dt?[4,this.proxy(gr)]:[3,2]);case 1:gr=En.sent(),En.label=2;case 2:return this.context.logger.debug("Added image "+ye.substring(0,256)),[4,new Promise(function(jn,ii){var Yi=new Image;Yi.onload=function(){return jn(Yi)},Yi.onerror=ii,(Il(gr)||We)&&(Yi.crossOrigin="anonymous"),Yi.src=gr,Yi.complete===!0&&setTimeout(function(){return jn(Yi)},500),an._options.imageTimeout>0&&setTimeout(function(){return ii("Timed out ("+an._options.imageTimeout+"ms) loading image")},an._options.imageTimeout)})];case 3:return[2,En.sent()]}})})},Er.prototype.has=function(ye){return typeof this._cache[ye]!="undefined"},Er.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Er.prototype.proxy=function(ye){var Ne=this,We=this._options.proxy;if(!We)throw new Error("No proxy defined");var dt=ye.substring(0,256);return new Promise(function(gr,an){var En=hl.SUPPORT_RESPONSE_TYPE?"blob":"text",jn=new XMLHttpRequest;jn.onload=function(){if(jn.status===200)if(En==="text")gr(jn.response);else{var Bi=new FileReader;Bi.addEventListener("load",function(){return gr(Bi.result)},!1),Bi.addEventListener("error",function(qi){return an(qi)},!1),Bi.readAsDataURL(jn.response)}else an("Failed to proxy resource "+dt+" with status code "+jn.status)},jn.onerror=an;var ii=We.indexOf("?")>-1?"&":"?";if(jn.open("GET",""+We+ii+"url="+encodeURIComponent(ye)+"&responseType="+En),En!=="text"&&jn instanceof XMLHttpRequest&&(jn.responseType=En),Ne._options.imageTimeout){var Yi=Ne._options.imageTimeout;jn.timeout=Yi,jn.ontimeout=function(){return an("Timed out ("+Yi+"ms) proxying "+dt)}}jn.send()})},Er}(),Zs=/^data:image\/svg\+xml/i,yl=/^data:image\/.*;base64,/i,ul=/^data:image\/.*/i,Pl=function(ye){return hl.SUPPORT_SVG_DRAWING||!Fl(ye)},Vl=function(ye){return ul.test(ye)},Il=function(ye){return yl.test(ye)},Gl=function(ye){return ye.substr(0,4)==="blob"},Fl=function(ye){return ye.substr(-3).toLowerCase()==="svg"||Zs.test(ye)},Ja=function(){function Er(ye,Ne){this.type=0,this.x=ye,this.y=Ne}return Er.prototype.add=function(ye,Ne){return new Er(this.x+ye,this.y+Ne)},Er}(),vl=function(ye,Ne,We){return new Ja(ye.x+(Ne.x-ye.x)*We,ye.y+(Ne.y-ye.y)*We)},gl=function(){function Er(ye,Ne,We,dt){this.type=1,this.start=ye,this.startControl=Ne,this.endControl=We,this.end=dt}return Er.prototype.subdivide=function(ye,Ne){var We=vl(this.start,this.startControl,ye),dt=vl(this.startControl,this.endControl,ye),gr=vl(this.endControl,this.end,ye),an=vl(We,dt,ye),En=vl(dt,gr,ye),jn=vl(an,En,ye);return Ne?new Er(this.start,We,an,jn):new Er(jn,En,gr,this.end)},Er.prototype.add=function(ye,Ne){return new Er(this.start.add(ye,Ne),this.startControl.add(ye,Ne),this.endControl.add(ye,Ne),this.end.add(ye,Ne))},Er.prototype.reverse=function(){return new Er(this.end,this.endControl,this.startControl,this.start)},Er}(),El=function(ye){return ye.type===1},Bu=function(){function Er(ye){var Ne=ye.styles,We=ye.bounds,dt=Ji(Ne.borderTopLeftRadius,We.width,We.height),gr=dt[0],an=dt[1],En=Ji(Ne.borderTopRightRadius,We.width,We.height),jn=En[0],ii=En[1],Yi=Ji(Ne.borderBottomRightRadius,We.width,We.height),Bi=Yi[0],qi=Yi[1],Za=Ji(Ne.borderBottomLeftRadius,We.width,We.height),eo=Za[0],po=Za[1],us=[];us.push((gr+jn)/We.width),us.push((eo+Bi)/We.width),us.push((an+po)/We.height),us.push((ii+qi)/We.height);var Yo=Math.max.apply(Math,us);Yo>1&&(gr/=Yo,an/=Yo,jn/=Yo,ii/=Yo,Bi/=Yo,qi/=Yo,eo/=Yo,po/=Yo);var Po=We.width-jn,$s=We.height-qi,cl=We.width-Bi,zs=We.height-po,Ro=Ne.borderTopWidth,Al=Ne.borderRightWidth,bl=Ne.borderBottomWidth,Vs=Ne.borderLeftWidth,_u=ca(Ne.paddingTop,ye.bounds.width),Mu=ca(Ne.paddingRight,ye.bounds.width),Ou=ca(Ne.paddingBottom,ye.bounds.width),eu=ca(Ne.paddingLeft,ye.bounds.width);this.topLeftBorderDoubleOuterBox=gr>0||an>0?vs(We.left+Vs/3,We.top+Ro/3,gr-Vs/3,an-Ro/3,Ks.TOP_LEFT):new Ja(We.left+Vs/3,We.top+Ro/3),this.topRightBorderDoubleOuterBox=gr>0||an>0?vs(We.left+Po,We.top+Ro/3,jn-Al/3,ii-Ro/3,Ks.TOP_RIGHT):new Ja(We.left+We.width-Al/3,We.top+Ro/3),this.bottomRightBorderDoubleOuterBox=Bi>0||qi>0?vs(We.left+cl,We.top+$s,Bi-Al/3,qi-bl/3,Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-Al/3,We.top+We.height-bl/3),this.bottomLeftBorderDoubleOuterBox=eo>0||po>0?vs(We.left+Vs/3,We.top+zs,eo-Vs/3,po-bl/3,Ks.BOTTOM_LEFT):new Ja(We.left+Vs/3,We.top+We.height-bl/3),this.topLeftBorderDoubleInnerBox=gr>0||an>0?vs(We.left+Vs*2/3,We.top+Ro*2/3,gr-Vs*2/3,an-Ro*2/3,Ks.TOP_LEFT):new Ja(We.left+Vs*2/3,We.top+Ro*2/3),this.topRightBorderDoubleInnerBox=gr>0||an>0?vs(We.left+Po,We.top+Ro*2/3,jn-Al*2/3,ii-Ro*2/3,Ks.TOP_RIGHT):new Ja(We.left+We.width-Al*2/3,We.top+Ro*2/3),this.bottomRightBorderDoubleInnerBox=Bi>0||qi>0?vs(We.left+cl,We.top+$s,Bi-Al*2/3,qi-bl*2/3,Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-Al*2/3,We.top+We.height-bl*2/3),this.bottomLeftBorderDoubleInnerBox=eo>0||po>0?vs(We.left+Vs*2/3,We.top+zs,eo-Vs*2/3,po-bl*2/3,Ks.BOTTOM_LEFT):new Ja(We.left+Vs*2/3,We.top+We.height-bl*2/3),this.topLeftBorderStroke=gr>0||an>0?vs(We.left+Vs/2,We.top+Ro/2,gr-Vs/2,an-Ro/2,Ks.TOP_LEFT):new Ja(We.left+Vs/2,We.top+Ro/2),this.topRightBorderStroke=gr>0||an>0?vs(We.left+Po,We.top+Ro/2,jn-Al/2,ii-Ro/2,Ks.TOP_RIGHT):new Ja(We.left+We.width-Al/2,We.top+Ro/2),this.bottomRightBorderStroke=Bi>0||qi>0?vs(We.left+cl,We.top+$s,Bi-Al/2,qi-bl/2,Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-Al/2,We.top+We.height-bl/2),this.bottomLeftBorderStroke=eo>0||po>0?vs(We.left+Vs/2,We.top+zs,eo-Vs/2,po-bl/2,Ks.BOTTOM_LEFT):new Ja(We.left+Vs/2,We.top+We.height-bl/2),this.topLeftBorderBox=gr>0||an>0?vs(We.left,We.top,gr,an,Ks.TOP_LEFT):new Ja(We.left,We.top),this.topRightBorderBox=jn>0||ii>0?vs(We.left+Po,We.top,jn,ii,Ks.TOP_RIGHT):new Ja(We.left+We.width,We.top),this.bottomRightBorderBox=Bi>0||qi>0?vs(We.left+cl,We.top+$s,Bi,qi,Ks.BOTTOM_RIGHT):new Ja(We.left+We.width,We.top+We.height),this.bottomLeftBorderBox=eo>0||po>0?vs(We.left,We.top+zs,eo,po,Ks.BOTTOM_LEFT):new Ja(We.left,We.top+We.height),this.topLeftPaddingBox=gr>0||an>0?vs(We.left+Vs,We.top+Ro,Math.max(0,gr-Vs),Math.max(0,an-Ro),Ks.TOP_LEFT):new Ja(We.left+Vs,We.top+Ro),this.topRightPaddingBox=jn>0||ii>0?vs(We.left+Math.min(Po,We.width-Al),We.top+Ro,Po>We.width+Al?0:Math.max(0,jn-Al),Math.max(0,ii-Ro),Ks.TOP_RIGHT):new Ja(We.left+We.width-Al,We.top+Ro),this.bottomRightPaddingBox=Bi>0||qi>0?vs(We.left+Math.min(cl,We.width-Vs),We.top+Math.min($s,We.height-bl),Math.max(0,Bi-Al),Math.max(0,qi-bl),Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-Al,We.top+We.height-bl),this.bottomLeftPaddingBox=eo>0||po>0?vs(We.left+Vs,We.top+Math.min(zs,We.height-bl),Math.max(0,eo-Vs),Math.max(0,po-bl),Ks.BOTTOM_LEFT):new Ja(We.left+Vs,We.top+We.height-bl),this.topLeftContentBox=gr>0||an>0?vs(We.left+Vs+eu,We.top+Ro+_u,Math.max(0,gr-(Vs+eu)),Math.max(0,an-(Ro+_u)),Ks.TOP_LEFT):new Ja(We.left+Vs+eu,We.top+Ro+_u),this.topRightContentBox=jn>0||ii>0?vs(We.left+Math.min(Po,We.width+Vs+eu),We.top+Ro+_u,Po>We.width+Vs+eu?0:jn-Vs+eu,ii-(Ro+_u),Ks.TOP_RIGHT):new Ja(We.left+We.width-(Al+Mu),We.top+Ro+_u),this.bottomRightContentBox=Bi>0||qi>0?vs(We.left+Math.min(cl,We.width-(Vs+eu)),We.top+Math.min($s,We.height+Ro+_u),Math.max(0,Bi-(Al+Mu)),qi-(bl+Ou),Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-(Al+Mu),We.top+We.height-(bl+Ou)),this.bottomLeftContentBox=eo>0||po>0?vs(We.left+Vs+eu,We.top+zs,Math.max(0,eo-(Vs+eu)),po-(bl+Ou),Ks.BOTTOM_LEFT):new Ja(We.left+Vs+eu,We.top+We.height-(bl+Ou))}return 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(ye,Ne,We,dt,gr){var an=4*((Math.sqrt(2)-1)/3),En=We*an,jn=dt*an,ii=ye+We,Yi=Ne+dt;switch(gr){case Ks.TOP_LEFT:return new gl(new Ja(ye,Yi),new Ja(ye,Yi-jn),new Ja(ii-En,Ne),new Ja(ii,Ne));case Ks.TOP_RIGHT:return new gl(new Ja(ye,Ne),new Ja(ye+En,Ne),new Ja(ii,Yi-jn),new Ja(ii,Yi));case Ks.BOTTOM_RIGHT:return new gl(new Ja(ii,Ne),new Ja(ii,Ne+jn),new Ja(ye+En,Yi),new Ja(ye,Yi));case Ks.BOTTOM_LEFT:default:return new gl(new Ja(ii,Yi),new Ja(ii-En,Yi),new Ja(ye,Ne+jn),new Ja(ye,Ne))}},lu=function(ye){return[ye.topLeftBorderBox,ye.topRightBorderBox,ye.bottomRightBorderBox,ye.bottomLeftBorderBox]},Kl=function(ye){return[ye.topLeftContentBox,ye.topRightContentBox,ye.bottomRightContentBox,ye.bottomLeftContentBox]},Uu=function(ye){return[ye.topLeftPaddingBox,ye.topRightPaddingBox,ye.bottomRightPaddingBox,ye.bottomLeftPaddingBox]},Eu=function(){function Er(ye,Ne,We){this.offsetX=ye,this.offsetY=Ne,this.matrix=We,this.type=0,this.target=2|4}return Er}(),uu=function(){function Er(ye,Ne){this.path=ye,this.target=Ne,this.type=1}return Er}(),ku=function(){function Er(ye){this.opacity=ye,this.type=2,this.target=2|4}return Er}(),Yl=function(ye){return ye.type===0},Tu=function(ye){return ye.type===1},Vu=function(ye){return ye.type===2},Ju=function(ye,Ne){return ye.length===Ne.length?ye.some(function(We,dt){return We===Ne[dt]}):!1},vc=function(ye,Ne,We,dt,gr){return ye.map(function(an,En){switch(En){case 0:return an.add(Ne,We);case 1:return an.add(Ne+dt,We);case 2:return an.add(Ne+dt,We+gr);case 3:return an.add(Ne,We+gr)}return an})},Ac=function(){function Er(ye){this.element=ye,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Er}(),tc=function(){function Er(ye,Ne){if(this.container=ye,this.parent=Ne,this.effects=[],this.curves=new Bu(this.container),this.container.styles.opacity<1&&this.effects.push(new ku(this.container.styles.opacity)),this.container.styles.transform!==null){var We=this.container.bounds.left+this.container.styles.transformOrigin[0].number,dt=this.container.bounds.top+this.container.styles.transformOrigin[1].number,gr=this.container.styles.transform;this.effects.push(new Eu(We,dt,gr))}if(this.container.styles.overflowX!==0){var an=lu(this.curves),En=Uu(this.curves);Ju(an,En)?this.effects.push(new uu(an,2|4)):(this.effects.push(new uu(an,2)),this.effects.push(new uu(En,4)))}}return Er.prototype.getEffects=function(ye){for(var Ne=[2,3].indexOf(this.container.styles.position)===-1,We=this.parent,dt=this.effects.slice(0);We;){var gr=We.effects.filter(function(jn){return!Tu(jn)});if(Ne||We.container.styles.position!==0||!We.parent){if(dt.unshift.apply(dt,gr),Ne=[2,3].indexOf(We.container.styles.position)===-1,We.container.styles.overflowX!==0){var an=lu(We.curves),En=Uu(We.curves);Ju(an,En)||dt.unshift(new uu(En,2|4))}}else dt.unshift.apply(dt,gr);We=We.parent}return dt.filter(function(jn){return sa(jn.target,ye)})},Er}(),yc=function Er(ye,Ne,We,dt){ye.container.elements.forEach(function(gr){var an=sa(gr.flags,4),En=sa(gr.flags,2),jn=new tc(gr,ye);sa(gr.styles.display,2048)&&dt.push(jn);var ii=sa(gr.flags,8)?[]:dt;if(an||En){var Yi=an||gr.styles.isPositioned()?We:Ne,Bi=new Ac(jn);if(gr.styles.isPositioned()||gr.styles.opacity<1||gr.styles.isTransformed()){var qi=gr.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,Bi)}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,Bi)}else Yi.zeroOrAutoZIndexOrTransformedOrOpacity.push(Bi)}else gr.styles.isFloating()?Yi.nonPositionedFloats.push(Bi):Yi.nonPositionedInlineLevel.push(Bi);Er(jn,Bi,an?Bi:We,ii)}else gr.styles.isInlineLevel()?Ne.inlineLevel.push(jn):Ne.nonInlineLevel.push(jn),Er(jn,Ne,We,ii);sa(gr.flags,8)&&sc(gr,ii)})},sc=function(ye,Ne){for(var We=ye instanceof ft?ye.start:1,dt=ye instanceof ft?ye.reversed:!1,gr=0;gr<Ne.length;gr++){var an=Ne[gr];an.container instanceof ot&&typeof an.container.value=="number"&&an.container.value!==0&&(We=an.container.value),an.listValue=ie(We,an.container.styles.listStyleType,!0),We+=dt?-1:1}},ju=function(ye){var Ne=new tc(ye,null),We=new Ac(Ne),dt=[];return yc(Ne,We,We,dt),sc(Ne.container,dt),We},hc=function(ye,Ne){switch(Ne){case 0:return Cu(ye.topLeftBorderBox,ye.topLeftPaddingBox,ye.topRightBorderBox,ye.topRightPaddingBox);case 1:return Cu(ye.topRightBorderBox,ye.topRightPaddingBox,ye.bottomRightBorderBox,ye.bottomRightPaddingBox);case 2:return Cu(ye.bottomRightBorderBox,ye.bottomRightPaddingBox,ye.bottomLeftBorderBox,ye.bottomLeftPaddingBox);case 3:default:return Cu(ye.bottomLeftBorderBox,ye.bottomLeftPaddingBox,ye.topLeftBorderBox,ye.topLeftPaddingBox)}},bc=function(ye,Ne){switch(Ne){case 0:return Cu(ye.topLeftBorderBox,ye.topLeftBorderDoubleOuterBox,ye.topRightBorderBox,ye.topRightBorderDoubleOuterBox);case 1:return Cu(ye.topRightBorderBox,ye.topRightBorderDoubleOuterBox,ye.bottomRightBorderBox,ye.bottomRightBorderDoubleOuterBox);case 2:return Cu(ye.bottomRightBorderBox,ye.bottomRightBorderDoubleOuterBox,ye.bottomLeftBorderBox,ye.bottomLeftBorderDoubleOuterBox);case 3:default:return Cu(ye.bottomLeftBorderBox,ye.bottomLeftBorderDoubleOuterBox,ye.topLeftBorderBox,ye.topLeftBorderDoubleOuterBox)}},Tc=function(ye,Ne){switch(Ne){case 0:return Cu(ye.topLeftBorderDoubleInnerBox,ye.topLeftPaddingBox,ye.topRightBorderDoubleInnerBox,ye.topRightPaddingBox);case 1:return Cu(ye.topRightBorderDoubleInnerBox,ye.topRightPaddingBox,ye.bottomRightBorderDoubleInnerBox,ye.bottomRightPaddingBox);case 2:return Cu(ye.bottomRightBorderDoubleInnerBox,ye.bottomRightPaddingBox,ye.bottomLeftBorderDoubleInnerBox,ye.bottomLeftPaddingBox);case 3:default:return Cu(ye.bottomLeftBorderDoubleInnerBox,ye.bottomLeftPaddingBox,ye.topLeftBorderDoubleInnerBox,ye.topLeftPaddingBox)}},wc=function(ye,Ne){switch(Ne){case 0:return Pu(ye.topLeftBorderStroke,ye.topRightBorderStroke);case 1:return Pu(ye.topRightBorderStroke,ye.bottomRightBorderStroke);case 2:return Pu(ye.bottomRightBorderStroke,ye.bottomLeftBorderStroke);case 3:default:return Pu(ye.bottomLeftBorderStroke,ye.topLeftBorderStroke)}},Pu=function(ye,Ne){var We=[];return El(ye)?We.push(ye.subdivide(.5,!1)):We.push(ye),El(Ne)?We.push(Ne.subdivide(.5,!0)):We.push(Ne),We},Cu=function(ye,Ne,We,dt){var gr=[];return El(ye)?gr.push(ye.subdivide(.5,!1)):gr.push(ye),El(We)?gr.push(We.subdivide(.5,!0)):gr.push(We),El(dt)?gr.push(dt.subdivide(.5,!0).reverse()):gr.push(dt),El(Ne)?gr.push(Ne.subdivide(.5,!1).reverse()):gr.push(Ne),gr},fc=function(ye){var Ne=ye.bounds,We=ye.styles;return Ne.add(We.borderLeftWidth,We.borderTopWidth,-(We.borderRightWidth+We.borderLeftWidth),-(We.borderTopWidth+We.borderBottomWidth))},lc=function(ye){var Ne=ye.styles,We=ye.bounds,dt=ca(Ne.paddingLeft,We.width),gr=ca(Ne.paddingRight,We.width),an=ca(Ne.paddingTop,We.width),En=ca(Ne.paddingBottom,We.width);return We.add(dt+Ne.borderLeftWidth,an+Ne.borderTopWidth,-(Ne.borderRightWidth+Ne.borderLeftWidth+dt+gr),-(Ne.borderTopWidth+Ne.borderBottomWidth+an+En))},Sc=function(ye,Ne){return ye===0?Ne.bounds:ye===2?lc(Ne):fc(Ne)},Cc=function(ye,Ne){return ye===0?Ne.bounds:ye===2?lc(Ne):fc(Ne)},Gu=function(ye,Ne,We){var dt=Sc(wu(ye.styles.backgroundOrigin,Ne),ye),gr=Cc(wu(ye.styles.backgroundClip,Ne),ye),an=Fu(wu(ye.styles.backgroundSize,Ne),We,dt),En=an[0],jn=an[1],ii=Ji(wu(ye.styles.backgroundPosition,Ne),dt.width-En,dt.height-jn),Yi=Ku(wu(ye.styles.backgroundRepeat,Ne),ii,an,dt,gr),Bi=Math.round(dt.left+ii[0]),qi=Math.round(dt.top+ii[1]);return[Yi,Bi,qi,En,jn]},Hu=function(ye){return Ln(ye)&&ye.value===Ni.AUTO},Xu=function(ye){return typeof ye=="number"},Fu=function(ye,Ne,We){var dt=Ne[0],gr=Ne[1],an=Ne[2],En=ye[0],jn=ye[1];if(!En)return[0,0];if(zi(En)&&jn&&zi(jn))return[ca(En,We.width),ca(jn,We.height)];var ii=Xu(an);if(Ln(En)&&(En.value===Ni.CONTAIN||En.value===Ni.COVER)){if(Xu(an)){var Yi=We.width/We.height;return Yi<an!==(En.value===Ni.COVER)?[We.width,We.width/an]:[We.height*an,We.height]}return[We.width,We.height]}var Bi=Xu(dt),qi=Xu(gr),Za=Bi||qi;if(Hu(En)&&(!jn||Hu(jn))){if(Bi&&qi)return[dt,gr];if(!ii&&!Za)return[We.width,We.height];if(Za&&ii){var eo=Bi?dt:gr*an,po=qi?gr:dt/an;return[eo,po]}var us=Bi?dt:We.width,Yo=qi?gr:We.height;return[us,Yo]}if(ii){var Po=0,$s=0;return zi(En)?Po=ca(En,We.width):zi(jn)&&($s=ca(jn,We.height)),Hu(En)?Po=$s*an:(!jn||Hu(jn))&&($s=Po/an),[Po,$s]}var cl=null,zs=null;if(zi(En)?cl=ca(En,We.width):jn&&zi(jn)&&(zs=ca(jn,We.height)),cl!==null&&(!jn||Hu(jn))&&(zs=Bi&&qi?cl/dt*gr:We.height),zs!==null&&Hu(En)&&(cl=Bi&&qi?zs/gr*dt:We.width),cl!==null&&zs!==null)return[cl,zs];throw new Error("Unable to calculate background-size for element")},wu=function(ye,Ne){var We=ye[Ne];return typeof We=="undefined"?ye[0]:We},Ku=function(ye,Ne,We,dt,gr){var an=Ne[0],En=Ne[1],jn=We[0],ii=We[1];switch(ye){case 2:return[new Ja(Math.round(dt.left),Math.round(dt.top+En)),new Ja(Math.round(dt.left+dt.width),Math.round(dt.top+En)),new Ja(Math.round(dt.left+dt.width),Math.round(ii+dt.top+En)),new Ja(Math.round(dt.left),Math.round(ii+dt.top+En))];case 3:return[new Ja(Math.round(dt.left+an),Math.round(dt.top)),new Ja(Math.round(dt.left+an+jn),Math.round(dt.top)),new Ja(Math.round(dt.left+an+jn),Math.round(dt.height+dt.top)),new Ja(Math.round(dt.left+an),Math.round(dt.height+dt.top))];case 1:return[new Ja(Math.round(dt.left+an),Math.round(dt.top+En)),new Ja(Math.round(dt.left+an+jn),Math.round(dt.top+En)),new Ja(Math.round(dt.left+an+jn),Math.round(dt.top+En+ii)),new Ja(Math.round(dt.left+an),Math.round(dt.top+En+ii))];default:return[new Ja(Math.round(gr.left),Math.round(gr.top)),new Ja(Math.round(gr.left+gr.width),Math.round(gr.top)),new Ja(Math.round(gr.left+gr.width),Math.round(gr.height+gr.top)),new Ja(Math.round(gr.left),Math.round(gr.height+gr.top))]}},uc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",cc="Hidden Text",xc=function(){function Er(ye){this._data={},this._document=ye}return Er.prototype.parseMetrics=function(ye,Ne){var We=this._document.createElement("div"),dt=this._document.createElement("img"),gr=this._document.createElement("span"),an=this._document.body;We.style.visibility="hidden",We.style.fontFamily=ye,We.style.fontSize=Ne,We.style.margin="0",We.style.padding="0",We.style.whiteSpace="nowrap",an.appendChild(We),dt.src=uc,dt.width=1,dt.height=1,dt.style.margin="0",dt.style.padding="0",dt.style.verticalAlign="baseline",gr.style.fontFamily=ye,gr.style.fontSize=Ne,gr.style.margin="0",gr.style.padding="0",gr.appendChild(this._document.createTextNode(cc)),We.appendChild(gr),We.appendChild(dt);var En=dt.offsetTop-gr.offsetTop+2;We.removeChild(gr),We.appendChild(this._document.createTextNode(cc)),We.style.lineHeight="normal",dt.style.verticalAlign="super";var jn=dt.offsetTop-We.offsetTop+2;return an.removeChild(We),{baseline:En,middle:jn}},Er.prototype.getMetrics=function(ye,Ne){var We=ye+" "+Ne;return typeof this._data[We]=="undefined"&&(this._data[We]=this.parseMetrics(ye,Ne)),this._data[We]},Er}(),Ec=function(){function Er(ye,Ne){this.context=ye,this.options=Ne}return Er}(),pc=1e4,mc=function(Er){p(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;return dt._activeEffects=[],dt.canvas=We.canvas?We.canvas:document.createElement("canvas"),dt.ctx=dt.canvas.getContext("2d"),We.canvas||(dt.canvas.width=Math.floor(We.width*We.scale),dt.canvas.height=Math.floor(We.height*We.scale),dt.canvas.style.width=We.width+"px",dt.canvas.style.height=We.height+"px"),dt.fontMetrics=new xc(document),dt.ctx.scale(dt.options.scale,dt.options.scale),dt.ctx.translate(-We.x,-We.y),dt.ctx.textBaseline="bottom",dt._activeEffects=[],dt.context.logger.debug("Canvas renderer initialized ("+We.width+"x"+We.height+") with scale "+We.scale),dt}return ye.prototype.applyEffects=function(Ne){for(var We=this;this._activeEffects.length;)this.popEffect();Ne.forEach(function(dt){return We.applyEffect(dt)})},ye.prototype.applyEffect=function(Ne){this.ctx.save(),Vu(Ne)&&(this.ctx.globalAlpha=Ne.opacity),Yl(Ne)&&(this.ctx.translate(Ne.offsetX,Ne.offsetY),this.ctx.transform(Ne.matrix[0],Ne.matrix[1],Ne.matrix[2],Ne.matrix[3],Ne.matrix[4],Ne.matrix[5]),this.ctx.translate(-Ne.offsetX,-Ne.offsetY)),Tu(Ne)&&(this.path(Ne.path),this.ctx.clip()),this._activeEffects.push(Ne)},ye.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},ye.prototype.renderStack=function(Ne){return v(this,void 0,void 0,function(){var We;return m(this,function(dt){switch(dt.label){case 0:return We=Ne.element.container.styles,We.isVisible()?[4,this.renderStackContent(Ne)]:[3,2];case 1:dt.sent(),dt.label=2;case 2:return[2]}})})},ye.prototype.renderNode=function(Ne){return v(this,void 0,void 0,function(){return m(this,function(We){switch(We.label){case 0:if(sa(Ne.container.flags,16))debugger;return Ne.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Ne)]:[3,3];case 1:return We.sent(),[4,this.renderNodeContent(Ne)];case 2:We.sent(),We.label=3;case 3:return[2]}})})},ye.prototype.renderTextWithLetterSpacing=function(Ne,We,dt){var gr=this;if(We===0)this.ctx.fillText(Ne.text,Ne.bounds.left,Ne.bounds.top+dt);else{var an=fu(Ne.text);an.reduce(function(En,jn){return gr.ctx.fillText(jn,En,Ne.bounds.top+dt),En+gr.ctx.measureText(jn).width},Ne.bounds.left)}},ye.prototype.createFontStyle=function(Ne){var We=Ne.fontVariant.filter(function(an){return an==="normal"||an==="small-caps"}).join(""),dt=Nc(Ne.fontFamily).join(", "),gr=tn(Ne.fontSize)?""+Ne.fontSize.number+Ne.fontSize.unit:Ne.fontSize.number+"px";return[[Ne.fontStyle,We,Ne.fontWeight,gr,dt].join(" "),dt,gr]},ye.prototype.renderTextNode=function(Ne,We){return v(this,void 0,void 0,function(){var dt,gr,an,En,jn,ii,Yi,Bi,qi=this;return m(this,function(Za){return dt=this.createFontStyle(We),gr=dt[0],an=dt[1],En=dt[2],this.ctx.font=gr,this.ctx.direction=We.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",jn=this.fontMetrics.getMetrics(an,En),ii=jn.baseline,Yi=jn.middle,Bi=We.paintOrder,Ne.textBounds.forEach(function(eo){Bi.forEach(function(po){switch(po){case 0:qi.ctx.fillStyle=Va(We.color),qi.renderTextWithLetterSpacing(eo,We.letterSpacing,ii);var us=We.textShadow;us.length&&eo.text.trim().length&&(us.slice(0).reverse().forEach(function(Yo){qi.ctx.shadowColor=Va(Yo.color),qi.ctx.shadowOffsetX=Yo.offsetX.number*qi.options.scale,qi.ctx.shadowOffsetY=Yo.offsetY.number*qi.options.scale,qi.ctx.shadowBlur=Yo.blur.number,qi.renderTextWithLetterSpacing(eo,We.letterSpacing,ii)}),qi.ctx.shadowColor="",qi.ctx.shadowOffsetX=0,qi.ctx.shadowOffsetY=0,qi.ctx.shadowBlur=0),We.textDecorationLine.length&&(qi.ctx.fillStyle=Va(We.textDecorationColor||We.color),We.textDecorationLine.forEach(function(Yo){switch(Yo){case 1:qi.ctx.fillRect(eo.bounds.left,Math.round(eo.bounds.top+ii),eo.bounds.width,1);break;case 2:qi.ctx.fillRect(eo.bounds.left,Math.round(eo.bounds.top),eo.bounds.width,1);break;case 3:qi.ctx.fillRect(eo.bounds.left,Math.ceil(eo.bounds.top+Yi),eo.bounds.width,1);break}}));break;case 1:We.webkitTextStrokeWidth&&eo.text.trim().length&&(qi.ctx.strokeStyle=Va(We.webkitTextStrokeColor),qi.ctx.lineWidth=We.webkitTextStrokeWidth,qi.ctx.lineJoin=window.chrome?"miter":"round",qi.ctx.strokeText(eo.text,eo.bounds.left,eo.bounds.top+ii)),qi.ctx.strokeStyle="",qi.ctx.lineWidth=0,qi.ctx.lineJoin="miter";break}})}),[2]})})},ye.prototype.renderReplacedElement=function(Ne,We,dt){if(dt&&Ne.intrinsicWidth>0&&Ne.intrinsicHeight>0){var gr=lc(Ne),an=Uu(We);this.path(an),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(dt,0,0,Ne.intrinsicWidth,Ne.intrinsicHeight,gr.left,gr.top,gr.width,gr.height),this.ctx.restore()}},ye.prototype.renderNodeContent=function(Ne){return v(this,void 0,void 0,function(){var We,dt,gr,an,En,jn,ii,ii,Yi,Bi,qi,Za,eo,po,us,Yo,Po,$s,cl,ii,zs,eo,Yo;return m(this,function(Ro){switch(Ro.label){case 0:this.applyEffects(Ne.getEffects(4)),We=Ne.container,dt=Ne.curves,gr=We.styles,an=0,En=We.textNodes,Ro.label=1;case 1:return an<En.length?(jn=En[an],[4,this.renderTextNode(jn,gr)]):[3,4];case 2:Ro.sent(),Ro.label=3;case 3:return an++,[3,1];case 4:if(!(We instanceof ve))return[3,8];Ro.label=5;case 5:return Ro.trys.push([5,7,,8]),[4,this.context.cache.match(We.src)];case 6:return ii=Ro.sent(),this.renderReplacedElement(We,dt,ii),[3,8];case 7:return Ro.sent(),this.context.logger.error("Error loading image "+We.src),[3,8];case 8:if(We instanceof Te&&this.renderReplacedElement(We,dt,We.canvas),!(We instanceof ze))return[3,12];Ro.label=9;case 9:return Ro.trys.push([9,11,,12]),[4,this.context.cache.match(We.svg)];case 10:return ii=Ro.sent(),this.renderReplacedElement(We,dt,ii),[3,12];case 11:return Ro.sent(),this.context.logger.error("Error loading svg "+We.svg.substring(0,255)),[3,12];case 12:return We instanceof Zi&&We.tree?(Yi=new ye(this.context,{scale:this.options.scale,backgroundColor:We.backgroundColor,x:0,y:0,width:We.width,height:We.height}),[4,Yi.render(We.tree)]):[3,14];case 13:Bi=Ro.sent(),We.width&&We.height&&this.ctx.drawImage(Bi,0,0,We.width,We.height,We.bounds.left,We.bounds.top,We.bounds.width,We.bounds.height),Ro.label=14;case 14:if(We instanceof wi&&(qi=Math.min(We.bounds.width,We.bounds.height),We.type===$r?We.checked&&(this.ctx.save(),this.path([new Ja(We.bounds.left+qi*.39363,We.bounds.top+qi*.79),new Ja(We.bounds.left+qi*.16,We.bounds.top+qi*.5549),new Ja(We.bounds.left+qi*.27347,We.bounds.top+qi*.44071),new Ja(We.bounds.left+qi*.39694,We.bounds.top+qi*.5649),new Ja(We.bounds.left+qi*.72983,We.bounds.top+qi*.23),new Ja(We.bounds.left+qi*.84,We.bounds.top+qi*.34085),new Ja(We.bounds.left+qi*.39363,We.bounds.top+qi*.79)]),this.ctx.fillStyle=Va(Zn),this.ctx.fill(),this.ctx.restore()):We.type===On&&(We.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(We.bounds.left+qi/2,We.bounds.top+qi/2,qi/4,0,Math.PI*2,!0),this.ctx.fillStyle=Va(Zn),this.ctx.fill(),this.ctx.restore()))),_c(We)&&We.value.length){Za=this.createFontStyle(gr),eo=Za[0],po=Za[1],us=this.fontMetrics.getMetrics(eo,po).baseline,this.ctx.font=eo,this.ctx.fillStyle=Va(gr.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ic(We.styles.textAlign),Yo=lc(We),Po=0;switch(We.styles.textAlign){case 1:Po+=Yo.width/2;break;case 2:Po+=Yo.width;break}$s=Yo.add(Po,0,0,-Yo.height/2+1),this.ctx.save(),this.path([new Ja(Yo.left,Yo.top),new Ja(Yo.left+Yo.width,Yo.top),new Ja(Yo.left+Yo.width,Yo.top+Yo.height),new Ja(Yo.left,Yo.top+Yo.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Dl(We.value,$s),gr.letterSpacing,us),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!sa(We.styles.display,2048))return[3,20];if(!(We.styles.listStyleImage!==null))return[3,19];if(cl=We.styles.listStyleImage,!(cl.type===0))return[3,18];ii=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 ii=Ro.sent(),this.ctx.drawImage(ii,We.bounds.left-(ii.width+10),We.bounds.top),[3,18];case 17:return Ro.sent(),this.context.logger.error("Error loading list-style-image "+zs),[3,18];case 18:return[3,20];case 19:Ne.listValue&&We.styles.listStyleType!==-1&&(eo=this.createFontStyle(gr)[0],this.ctx.font=eo,this.ctx.fillStyle=Va(gr.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Yo=new d(We.bounds.left,We.bounds.top+ca(We.styles.paddingTop,We.bounds.width),We.bounds.width,zo(gr.lineHeight,gr.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Dl(Ne.listValue,Yo),gr.letterSpacing,zo(gr.lineHeight,gr.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Ro.label=20;case 20:return[2]}})})},ye.prototype.renderStackContent=function(Ne){return v(this,void 0,void 0,function(){var We,dt,gr,an,En,gr,jn,ii,gr,Yi,Bi,gr,qi,Za,gr,eo,po,gr,us,Yo,gr;return m(this,function(Po){switch(Po.label){case 0:if(sa(Ne.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Ne.element)];case 1:Po.sent(),We=0,dt=Ne.negativeZIndex,Po.label=2;case 2:return We<dt.length?(gr=dt[We],[4,this.renderStack(gr)]):[3,5];case 3:Po.sent(),Po.label=4;case 4:return We++,[3,2];case 5:return[4,this.renderNodeContent(Ne.element)];case 6:Po.sent(),an=0,En=Ne.nonInlineLevel,Po.label=7;case 7:return an<En.length?(gr=En[an],[4,this.renderNode(gr)]):[3,10];case 8:Po.sent(),Po.label=9;case 9:return an++,[3,7];case 10:jn=0,ii=Ne.nonPositionedFloats,Po.label=11;case 11:return jn<ii.length?(gr=ii[jn],[4,this.renderStack(gr)]):[3,14];case 12:Po.sent(),Po.label=13;case 13:return jn++,[3,11];case 14:Yi=0,Bi=Ne.nonPositionedInlineLevel,Po.label=15;case 15:return Yi<Bi.length?(gr=Bi[Yi],[4,this.renderStack(gr)]):[3,18];case 16:Po.sent(),Po.label=17;case 17:return Yi++,[3,15];case 18:qi=0,Za=Ne.inlineLevel,Po.label=19;case 19:return qi<Za.length?(gr=Za[qi],[4,this.renderNode(gr)]):[3,22];case 20:Po.sent(),Po.label=21;case 21:return qi++,[3,19];case 22:eo=0,po=Ne.zeroOrAutoZIndexOrTransformedOrOpacity,Po.label=23;case 23:return eo<po.length?(gr=po[eo],[4,this.renderStack(gr)]):[3,26];case 24:Po.sent(),Po.label=25;case 25:return eo++,[3,23];case 26:us=0,Yo=Ne.positiveZIndex,Po.label=27;case 27:return us<Yo.length?(gr=Yo[us],[4,this.renderStack(gr)]):[3,30];case 28:Po.sent(),Po.label=29;case 29:return us++,[3,27];case 30:return[2]}})})},ye.prototype.mask=function(Ne){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(Ne.slice(0).reverse()),this.ctx.closePath()},ye.prototype.path=function(Ne){this.ctx.beginPath(),this.formatPath(Ne),this.ctx.closePath()},ye.prototype.formatPath=function(Ne){var We=this;Ne.forEach(function(dt,gr){var an=El(dt)?dt.start:dt;gr===0?We.ctx.moveTo(an.x,an.y):We.ctx.lineTo(an.x,an.y),El(dt)&&We.ctx.bezierCurveTo(dt.startControl.x,dt.startControl.y,dt.endControl.x,dt.endControl.y,dt.end.x,dt.end.y)})},ye.prototype.renderRepeat=function(Ne,We,dt,gr){this.path(Ne),this.ctx.fillStyle=We,this.ctx.translate(dt,gr),this.ctx.fill(),this.ctx.translate(-dt,-gr)},ye.prototype.resizeImage=function(Ne,We,dt){var gr;if(Ne.width===We&&Ne.height===dt)return Ne;var an=(gr=this.canvas.ownerDocument)!==null&&gr!==void 0?gr:document,En=an.createElement("canvas");En.width=Math.max(1,We),En.height=Math.max(1,dt);var jn=En.getContext("2d");return jn.drawImage(Ne,0,0,Ne.width,Ne.height,0,0,We,dt),En},ye.prototype.renderBackgroundImage=function(Ne){return v(this,void 0,void 0,function(){var We,dt,gr,an,En,jn;return m(this,function(ii){switch(ii.label){case 0:We=Ne.styles.backgroundImage.length-1,dt=function(Bi){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(!(Bi.type===0))return[3,5];qi=void 0,Za=Bi.url,dc.label=1;case 1:return dc.trys.push([1,3,,4]),[4,gr.context.cache.match(Za)];case 2:return qi=dc.sent(),[3,4];case 3:return dc.sent(),gr.context.logger.error("Error loading background-image "+Za),[3,4];case 4:return qi&&(eo=Gu(Ne,We,[qi.width,qi.height,qi.width/qi.height]),po=eo[0],us=eo[1],Yo=eo[2],Po=eo[3],$s=eo[4],cl=gr.ctx.createPattern(gr.resizeImage(qi,Po,$s),"repeat"),gr.renderRepeat(po,cl,us,Yo)),[3,6];case 5:Yr(Bi)?(zs=Gu(Ne,We,[null,null,null]),po=zs[0],us=zs[1],Yo=zs[2],Po=zs[3],$s=zs[4],Ro=ts(Bi.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(Bi.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=gr.ctx.createPattern(Ou,"repeat"),gr.renderRepeat(po,cl,us,Yo))):ni(Bi)&&(Wu=Gu(Ne,We,[null,null,null]),po=Wu[0],Zu=Wu[1],$u=Wu[2],Po=Wu[3],$s=Wu[4],qu=Bi.position.length===0?[Wi]:Bi.position,us=ca(qu[0],Po),Yo=ca(qu[qu.length-1],$s),nc=Io(Bi,us,Yo,Po,$s),zu=nc[0],ec=nc[1],zu>0&&ec>0&&(ic=gr.ctx.createRadialGradient(Zu+us,$u+Yo,0,Zu+us,$u+Yo,zu),Uo(Bi.stops,zu*2).forEach(function(gc){return ic.addColorStop(gc.stop,Va(gc.color))}),gr.path(po),gr.ctx.fillStyle=ic,zu!==ec?(ac=Ne.bounds.left+.5*Ne.bounds.width,Yu=Ne.bounds.top+.5*Ne.bounds.height,oc=ec/zu,Qu=1/oc,gr.ctx.save(),gr.ctx.translate(ac,Yu),gr.ctx.transform(1,0,0,oc,0,0),gr.ctx.translate(-ac,-Yu),gr.ctx.fillRect(Zu,Qu*($u-Yu)+Yu,Po,$s*Qu),gr.ctx.restore()):gr.ctx.fill())),dc.label=6;case 6:return We--,[2]}})},gr=this,an=0,En=Ne.styles.backgroundImage.slice(0).reverse(),ii.label=1;case 1:return an<En.length?(jn=En[an],[5,dt(jn)]):[3,4];case 2:ii.sent(),ii.label=3;case 3:return an++,[3,1];case 4:return[2]}})})},ye.prototype.renderSolidBorder=function(Ne,We,dt){return v(this,void 0,void 0,function(){return m(this,function(gr){return this.path(hc(dt,We)),this.ctx.fillStyle=Va(Ne),this.ctx.fill(),[2]})})},ye.prototype.renderDoubleBorder=function(Ne,We,dt,gr){return v(this,void 0,void 0,function(){var an,En;return m(this,function(jn){switch(jn.label){case 0:return We<3?[4,this.renderSolidBorder(Ne,dt,gr)]:[3,2];case 1:return jn.sent(),[2];case 2:return an=bc(gr,dt),this.path(an),this.ctx.fillStyle=Va(Ne),this.ctx.fill(),En=Tc(gr,dt),this.path(En),this.ctx.fill(),[2]}})})},ye.prototype.renderNodeBackgroundAndBorders=function(Ne){return v(this,void 0,void 0,function(){var We,dt,gr,an,En,jn,ii,Yi,Bi=this;return m(this,function(qi){switch(qi.label){case 0:return this.applyEffects(Ne.getEffects(2)),We=Ne.container.styles,dt=!_a(We.backgroundColor)||We.backgroundImage.length,gr=[{style:We.borderTopStyle,color:We.borderTopColor,width:We.borderTopWidth},{style:We.borderRightStyle,color:We.borderRightColor,width:We.borderRightWidth},{style:We.borderBottomStyle,color:We.borderBottomColor,width:We.borderBottomWidth},{style:We.borderLeftStyle,color:We.borderLeftColor,width:We.borderLeftWidth}],an=Oc(wu(We.backgroundClip,0),Ne.curves),dt||We.boxShadow.length?(this.ctx.save(),this.path(an),this.ctx.clip(),_a(We.backgroundColor)||(this.ctx.fillStyle=Va(We.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Ne.container)]):[3,2];case 1:qi.sent(),this.ctx.restore(),We.boxShadow.slice(0).reverse().forEach(function(Za){Bi.ctx.save();var eo=lu(Ne.curves),po=Za.inset?0:pc,us=vc(eo,-po+(Za.inset?1:-1)*Za.spread.number,(Za.inset?1:-1)*Za.spread.number,Za.spread.number*(Za.inset?-2:2),Za.spread.number*(Za.inset?-2:2));Za.inset?(Bi.path(eo),Bi.ctx.clip(),Bi.mask(us)):(Bi.mask(eo),Bi.ctx.clip(),Bi.path(us)),Bi.ctx.shadowOffsetX=Za.offsetX.number+po,Bi.ctx.shadowOffsetY=Za.offsetY.number,Bi.ctx.shadowColor=Va(Za.color),Bi.ctx.shadowBlur=Za.blur.number,Bi.ctx.fillStyle=Za.inset?Va(Za.color):"rgba(0,0,0,1)",Bi.ctx.fill(),Bi.ctx.restore()}),qi.label=2;case 2:En=0,jn=0,ii=gr,qi.label=3;case 3:return jn<ii.length?(Yi=ii[jn],Yi.style!==0&&!_a(Yi.color)&&Yi.width>0?Yi.style===2?[4,this.renderDashedDottedBorder(Yi.color,Yi.width,En,Ne.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return qi.sent(),[3,11];case 5:return Yi.style===3?[4,this.renderDashedDottedBorder(Yi.color,Yi.width,En,Ne.curves,3)]:[3,7];case 6:return qi.sent(),[3,11];case 7:return Yi.style===4?[4,this.renderDoubleBorder(Yi.color,Yi.width,En,Ne.curves)]:[3,9];case 8:return qi.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Yi.color,En,Ne.curves)];case 10:qi.sent(),qi.label=11;case 11:En++,qi.label=12;case 12:return jn++,[3,3];case 13:return[2]}})})},ye.prototype.renderDashedDottedBorder=function(Ne,We,dt,gr,an){return v(this,void 0,void 0,function(){var En,jn,ii,Yi,Bi,qi,Za,eo,po,us,Yo,Po,$s,cl,zs,Ro,zs,Ro;return m(this,function(Al){return this.ctx.save(),En=wc(gr,dt),jn=hc(gr,dt),an===2&&(this.path(jn),this.ctx.clip()),El(jn[0])?(ii=jn[0].start.x,Yi=jn[0].start.y):(ii=jn[0].x,Yi=jn[0].y),El(jn[1])?(Bi=jn[1].end.x,qi=jn[1].end.y):(Bi=jn[1].x,qi=jn[1].y),dt===0||dt===2?Za=Math.abs(ii-Bi):Za=Math.abs(Yi-qi),this.ctx.beginPath(),an===3?this.formatPath(En):this.formatPath(jn.slice(0,2)),eo=We<3?We*3:We*2,po=We<3?We*2:We,an===3&&(eo=We,po=We),us=!0,Za<=eo*2?us=!1:Za<=eo*2+po?(Yo=Za/(2*eo+po),eo*=Yo,po*=Yo):(Po=Math.floor((Za+po)/(eo+po)),$s=(Za-Po*eo)/(Po-1),cl=(Za-(Po+1)*eo)/Po,po=cl<=0||Math.abs(po-$s)<Math.abs(po-cl)?$s:cl),us&&(an===3?this.ctx.setLineDash([0,eo+po]):this.ctx.setLineDash([eo,po])),an===3?(this.ctx.lineCap="round",this.ctx.lineWidth=We):this.ctx.lineWidth=We*2+1.1,this.ctx.strokeStyle=Va(Ne),this.ctx.stroke(),this.ctx.setLineDash([]),an===2&&(El(jn[0])&&(zs=jn[3],Ro=jn[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(jn[1])&&(zs=jn[1],Ro=jn[2],this.ctx.beginPath(),this.formatPath([new Ja(zs.end.x,zs.end.y),new Ja(Ro.start.x,Ro.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},ye.prototype.render=function(Ne){return v(this,void 0,void 0,function(){var We;return m(this,function(dt){switch(dt.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Va(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),We=ju(Ne),[4,this.renderStack(We)];case 1:return dt.sent(),this.applyEffects([]),[2,this.canvas]}})})},ye}(Ec),_c=function(ye){return ye instanceof Vi||ye instanceof ua?!0:ye instanceof wi&&ye.type!==On&&ye.type!==$r},Oc=function(ye,Ne){switch(ye){case 0:return lu(Ne);case 2:return Kl(Ne);case 1:default:return Uu(Ne)}},Ic=function(ye){switch(ye){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Lc=["-apple-system","system-ui"],Nc=function(ye){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?ye.filter(function(Ne){return Lc.indexOf(Ne)===-1}):ye},Dc=function(Er){p(ye,Er);function ye(Ne,We){var dt=Er.call(this,Ne,We)||this;return dt.canvas=We.canvas?We.canvas:document.createElement("canvas"),dt.ctx=dt.canvas.getContext("2d"),dt.options=We,dt.canvas.width=Math.floor(We.width*We.scale),dt.canvas.height=Math.floor(We.height*We.scale),dt.canvas.style.width=We.width+"px",dt.canvas.style.height=We.height+"px",dt.ctx.scale(dt.options.scale,dt.options.scale),dt.ctx.translate(-We.x,-We.y),dt.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+We.width+"x"+We.height+" at "+We.x+","+We.y+") with scale "+We.scale),dt}return ye.prototype.render=function(Ne){return v(this,void 0,void 0,function(){var We,dt;return m(this,function(gr){switch(gr.label){case 0:return We=xu(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,Ne),[4,Rc(We)];case 1:return dt=gr.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]}})})},ye}(Ec),Rc=function(ye){return new Promise(function(Ne,We){var dt=new Image;dt.onload=function(){Ne(dt)},dt.onerror=We,dt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ye))})},kc=function(){function Er(ye){var Ne=ye.id,We=ye.enabled;this.id=Ne,this.enabled=We,this.start=Date.now()}return Er.prototype.debug=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,f([this.id,this.getTime()+"ms"],ye)):this.info.apply(this,ye))},Er.prototype.getTime=function(){return Date.now()-this.start},Er.prototype.info=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,f([this.id,this.getTime()+"ms"],ye)))},Er.prototype.warn=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,f([this.id,this.getTime()+"ms"],ye)):this.info.apply(this,ye))},Er.prototype.error=function(){for(var ye=[],Ne=0;Ne<arguments.length;Ne++)ye[Ne]=arguments[Ne];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,f([this.id,this.getTime()+"ms"],ye)):this.info.apply(this,ye))},Er.instances={},Er}(),Mc=function(){function Er(ye,Ne){var We;this.windowBounds=Ne,this.instanceName="#"+Er.instanceCount++,this.logger=new kc({id:this.instanceName,enabled:ye.logging}),this.cache=(We=ye.cache)!==null&&We!==void 0?We:new Ss(this,ye)}return Er.instanceCount=1,Er}(),Pc=function(ye,Ne){return Ne===void 0&&(Ne={}),Fc(ye,Ne)};typeof window!="undefined"&&Mo.setContext(window);var Fc=function(ye,Ne){return v(void 0,void 0,void 0,function(){var We,dt,gr,an,En,jn,ii,Yi,Bi,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(!ye||typeof ye!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(We=ye.ownerDocument,!We)throw new Error("Element is not attached to a Document");if(dt=We.defaultView,!dt)throw new Error("Document is not attached to a Window");return gr={allowTaint:(Vs=Ne.allowTaint)!==null&&Vs!==void 0?Vs:!1,imageTimeout:(_u=Ne.imageTimeout)!==null&&_u!==void 0?_u:15e3,proxy:Ne.proxy,useCORS:(Mu=Ne.useCORS)!==null&&Mu!==void 0?Mu:!1},an=x({logging:(Ou=Ne.logging)!==null&&Ou!==void 0?Ou:!0,cache:Ne.cache},gr),En={windowWidth:(eu=Ne.windowWidth)!==null&&eu!==void 0?eu:dt.innerWidth,windowHeight:(rc=Ne.windowHeight)!==null&&rc!==void 0?rc:dt.innerHeight,scrollX:(Wu=Ne.scrollX)!==null&&Wu!==void 0?Wu:dt.pageXOffset,scrollY:(Zu=Ne.scrollY)!==null&&Zu!==void 0?Zu:dt.pageYOffset},jn=new d(En.scrollX,En.scrollY,En.windowWidth,En.windowHeight),ii=new Mc(an,jn),Yi=($u=Ne.foreignObjectRendering)!==null&&$u!==void 0?$u:!1,Bi={allowTaint:(qu=Ne.allowTaint)!==null&&qu!==void 0?qu:!1,onclone:Ne.onclone,ignoreElements:Ne.ignoreElements,inlineImages:Yi,copyStyles:Yi},ii.logger.debug("Starting document clone with size "+jn.width+"x"+jn.height+" scrolled to "+-jn.left+","+-jn.top),qi=new ge(ii,ye,Bi),Za=qi.clonedReferenceElement,Za?[4,qi.toIFrame(We,jn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return eo=Qu.sent(),po=Br(Za)||Tt(Za)?o(Za.ownerDocument):u(ii,Za),us=po.width,Yo=po.height,Po=po.left,$s=po.top,cl=Bc(ii,Za,Ne.backgroundColor),zs={canvas:Ne.canvas,backgroundColor:cl,scale:(zu=(nc=Ne.scale)!==null&&nc!==void 0?nc:dt.devicePixelRatio)!==null&&zu!==void 0?zu:1,x:((ec=Ne.x)!==null&&ec!==void 0?ec:0)+Po,y:((ic=Ne.y)!==null&&ic!==void 0?ic:0)+$s,width:(ac=Ne.width)!==null&&ac!==void 0?ac:Math.ceil(us),height:(Yu=Ne.height)!==null&&Yu!==void 0?Yu:Math.ceil(Yo)},Yi?(ii.logger.debug("Document cloned, using foreign object rendering"),Al=new Dc(ii,zs),[4,Al.render(Za)]):[3,3];case 2:return Ro=Qu.sent(),[3,5];case 3:return ii.logger.debug("Document cloned, element located at "+Po+","+$s+" with size "+us+"x"+Yo+" using computed rendering"),ii.logger.debug("Starting DOM parsing"),bl=Sa(ii,Za),cl===bl.styles.backgroundColor&&(bl.styles.backgroundColor=So.TRANSPARENT),ii.logger.debug("Starting renderer for element at "+zs.x+","+zs.y+" with size "+zs.width+"x"+zs.height),Al=new mc(ii,zs),[4,Al.render(bl)];case 4:Ro=Qu.sent(),Qu.label=5;case 5:return((oc=Ne.removeContainer)!==null&&oc!==void 0?oc:!0)&&(ge.destroy(eo)||ii.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),ii.logger.debug("Finished rendering"),[2,Ro]}})})},Bc=function(ye,Ne,We){var dt=Ne.ownerDocument,gr=dt.documentElement?ao(ye,getComputedStyle(dt.documentElement).backgroundColor):So.TRANSPARENT,an=dt.body?ao(ye,getComputedStyle(dt.body).backgroundColor):So.TRANSPARENT,En=typeof We=="string"?ao(ye,We):We===null?So.TRANSPARENT:4294967295;return Ne===dt.documentElement?_a(gr)?_a(an)?En:an:gr:En};return Pc})},wPhX:function(k,D,n){"use strict";n.d(D,"b",function(){return i}),n.d(D,"a",function(){return t}),n.d(D,"k",function(){return s}),n.d(D,"h",function(){return e}),n.d(D,"i",function(){return l}),n.d(D,"g",function(){return r}),n.d(D,"c",function(){return a}),n.d(D,"d",function(){return c}),n.d(D,"j",function(){return A}),n.d(D,"e",function(){return b}),n.d(D,"f",function(){return S});var y=n("KQm4"),p=n("U8pU"),x=n("Ff2n"),v=n("q1tI"),m=n.n(v),f=n("Kwbf"),d=n("lr6o"),u=.25,o=2;function i(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 s(E){return E.split("-")}function e(E,C){return"".concat(E,"-").concat(C)}function l(E){return E&&E.type&&E.type.isTreeNode}function r(E,C){var _=[E],T=C[E];function w(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];O.forEach(function(I){var R=I.key,M=I.children;_.push(R),w(M)})}return w(T.children),_}function a(E,C){var _=E.clientY,T=C.selectHandle.getBoundingClientRect(),w=T.top,O=T.bottom,I=T.height,R=Math.max(I*u,o);return _<=w+R?-1:_>=O-R?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,w=T===void 0?h:T,O=Array.isArray(E)?E:[E];return O.map(function(I){var R=I.children,M=Object(x.a)(I,["children"]),B=g(R,C);return m.a.createElement(d.a,Object.assign({},w(M)),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(w){if(_.has(w))return;var O=C[w];if(!O)return;_.add(w);var I=O.parent,R=O.node;if(R.disabled)return;I&&T(I.key)}return(E||[]).forEach(function(w){T(w)}),Object(y.a)(_)}function S(E){var C={};return Object.keys(E).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(C[_]=E[_])}),C}},wXyp:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("ygfH")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="CheckOutlined";var i=v.forwardRef(o);D.default=i},wYyv:function(k,D,n){"use strict";var y=n("R5yR"),p=n("5wUe"),x=function(f,d,u){var o=d<0?f.length+d:d;if(o>=0&&o<f.length){var i=u<0?f.length+u:u,t=f.splice(d,1),s=p(t,1),e=s[0];f.splice(i,0,e)}},v=function(f,d,u){return f=y(f),x(f,d,u),f};k.exports=v,k.exports.mutate=x},wZgz:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,v=x.BlockCipher,m=p.algo,f=[],d=[],u=[],o=[],i=[],t=[],s=[],e=[],l=[],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 S=b^b<<1^b<<2^b<<3^b<<4;S=S>>>8^S&255^99,f[A]=S,d[S]=A;var E=h[A],C=h[E],_=h[C],T=h[S]*257^S*16843008;u[A]=T<<24|T>>>8,o[A]=T<<16|T>>>16,i[A]=T<<8|T>>>24,t[A]=T;var T=_*16843009^C*65537^E*257^A*16843008;s[S]=T<<24|T>>>8,e[S]=T<<16|T>>>16,l[S]=T<<8|T>>>24,r[S]=T,A?(A=E^h[h[h[_^E]]],b^=h[h[b]]):A=b=1}})();var a=[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,S=A.sigBytes/4,E=this._nRounds=S+6,C=(E+1)*4,_=this._keySchedule=[],T=0;T<C;T++)T<S?_[T]=b[T]:(g=_[T-1],T%S?S>6&&T%S==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^=a[T/S|0]<<24),_[T]=_[T-S]^g);for(var w=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?w[O]=g:w[O]=s[f[g>>>24]]^e[f[g>>>16&255]]^l[f[g>>>8&255]]^r[f[g&255]]}},encryptBlock:function(g,A){this._doCryptBlock(g,A,this._keySchedule,u,o,i,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,s,e,l,r,d);var b=g[A+1];g[A+1]=g[A+3],g[A+3]=b},_doCryptBlock:function(g,A,b,S,E,C,_,T){for(var w=this._nRounds,O=g[A]^b[0],I=g[A+1]^b[1],R=g[A+2]^b[2],M=g[A+3]^b[3],B=4,P=1;P<w;P++){var X=S[O>>>24]^E[I>>>16&255]^C[R>>>8&255]^_[M&255]^b[B++],F=S[I>>>24]^E[R>>>16&255]^C[M>>>8&255]^_[O&255]^b[B++],j=S[R>>>24]^E[M>>>16&255]^C[O>>>8&255]^_[I&255]^b[B++],K=S[M>>>24]^E[O>>>16&255]^C[I>>>8&255]^_[R&255]^b[B++];O=X,I=F,R=j,M=K}var X=(T[O>>>24]<<24|T[I>>>16&255]<<16|T[R>>>8&255]<<8|T[M&255])^b[B++],F=(T[I>>>24]<<24|T[R>>>16&255]<<16|T[M>>>8&255]<<8|T[O&255])^b[B++],j=(T[R>>>24]<<24|T[M>>>16&255]<<16|T[O>>>8&255]<<8|T[I&255])^b[B++],K=(T[M>>>24]<<24|T[O>>>16&255]<<16|T[I>>>8&255]<<8|T[R&255])^b[B++];g[A]=X,g[A+1]=F,g[A+2]=j,g[A+3]=K},keySize:256/32});p.AES=v._createHelper(c)}(),y.AES})},wbyO:function(k,D,n){(function(y,p){k.exports=D=p(n("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 i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=o.words,s=o.sigBytes,e=i?this._safe_map:this._map;o.clamp();for(var l=[],r=0;r<s;r+=3)for(var a=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=a<<16|c<<8|h,A=0;A<4&&r+A*.75<s;A++)l.push(e.charAt(g>>>6*(3-A)&63));var b=e.charAt(64);if(b)for(;l.length%4;)l.push(b);return l.join("")},parse:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=o.length,s=i?this._safe_map:this._map,e=this._reverseMap;if(!e){e=this._reverseMap=[];for(var l=0;l<s.length;l++)e[s.charCodeAt(l)]=l}var r=s.charAt(64);if(r){var a=o.indexOf(r);a!==-1&&(t=a)}return d(o,t,e)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function d(u,o,i){for(var t=[],s=0,e=0;e<o;e++)if(e%4){var l=i[u.charCodeAt(e-1)]<<e%4*2,r=i[u.charCodeAt(e)]>>>6-e%4*2,a=l|r;t[s>>>2]|=a<<24-s%4*8,s++}return v.create(t,s)}}(),y.enc.Base64url})},wgjA:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};D.default=y},whJP:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),v=n.n(x),m=n("lwsE"),f=n.n(m),d=n("W8MJ"),u=n.n(d),o=n("7W2i"),i=n.n(o),t=n("LQ03"),s=n.n(t),e=n("q1tI"),l=n.n(e),r=n("Y1PL"),a=n("BGR+"),c=n("TSYQ"),h=n.n(c),g=n("LlR5"),A=n("H84U"),b=n("mh/l"),S=function(E){i()(_,E);var C=s()(_);function _(T){var w;f()(this,_),w=C.call(this,T),w.focus=function(){w.resizableTextArea.textArea.focus()},w.saveTextArea=function(I){w.resizableTextArea=I==null?void 0:I.resizableTextArea},w.saveClearableInput=function(I){w.clearableInput=I},w.handleChange=function(I){w.setValue(I.target.value),Object(b.d)(w.resizableTextArea.textArea,I,w.props.onChange)},w.handleReset=function(I){w.setValue("",function(){w.focus()}),Object(b.d)(w.resizableTextArea.textArea,I,w.props.onChange)},w.renderTextArea=function(I,R){return e.createElement(r.default,p()({},Object(a.default)(w.props,["allowClear","bordered"]),{className:h()(w.props.className,v()({},"".concat(I,"-borderless"),!R)),prefixCls:I,onChange:w.handleChange,ref:w.saveTextArea}))},w.renderComponent=function(I){var R=I.getPrefixCls,M=I.direction,B=w.state.value,P=w.props,X=P.prefixCls,F=P.bordered,j=F===void 0?!0:F,K=R("input",X);return e.createElement(g.a,p()({},w.props,{prefixCls:K,direction:M,inputType:"text",value:Object(b.b)(B),element:w.renderTextArea(K,j),handleReset:w.handleReset,ref:w.saveClearableInput,triggerFocus:w.focus,bordered:j}))};var O=typeof T.value=="undefined"?T.defaultValue:T.value;return w.state={value:O},w}return u()(_,[{key:"setValue",value:function(w,O){this.props.value===void 0&&this.setState({value:w},O)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return e.createElement(A.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(w){return w.value!==void 0?{value:w.value}:null}}]),_}(e.Component);D.a=S},whVF:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("lNSK"),p=x(n("1q3G"));function x(u){return u&&u.__esModule?u:{default:u}}function v(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}function m(u,o){for(var i=0;i<o.length;i++){var t=o[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}function f(u,o,i){return o&&m(u.prototype,o),i&&m(u,i),u}var d=function(){function u(){v(this,u),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(u,[{key:"deflate",value:function(i){this.strm.input=i,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0,this.strm.output=this.outputBuffer,this.strm.avail_out=this.chunkSize,this.strm.next_out=0;var t=(0,y.deflate)(this.strm,y.Z_FULL_FLUSH),s=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=[s],l=s.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);l+=r.length,e.push(r)}while(this.strm.avail_in>0);for(var a=new Uint8Array(l),c=0,h=0;h<e.length;h++)a.set(e[h],c),c+=e[h].length;s=a}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,s}}]),u}();D.default=d},wr5s:function(k,D,n){var y=n("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,u=Math.max(m.r0||0,0),o=Math.max(m.r,0),i=(o-u)*.5,t=u+i,s=m.startAngle,e=m.endAngle,l=m.clockwise,r=Math.cos(s),a=Math.sin(s),c=Math.cos(e),h=Math.sin(e),g=l?e-s<Math.PI*2:s-e<Math.PI*2;g&&(v.moveTo(r*u+f,a*u+d),v.arc(r*t+f,a*t+d,i,-Math.PI+s,s,!l)),v.arc(f,d,o,s,e,!l),v.moveTo(c*o+f,h*o+d),v.arc(c*t+f,h*t+d,i,e-Math.PI*2,e-Math.PI,!l),u!==0&&(v.arc(f,d,u,e,s,l),v.moveTo(r*u+f,h*u+d)),v.closePath()}});k.exports=x},wt3j:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("/IIm"),v=n("EMyp"),m=v.layoutCovers,f=y.extendComponentView({type:"brush",init:function(u,o){this.ecModel=u,this.api=o,this.model,(this._brushController=new x(o.getZr())).on("brush",p.bind(this._onBrush,this)).mount()},render:function(u){return this.model=u,d.apply(this,arguments)},updateTransform:function(u,o){return m(o),d.apply(this,arguments)},updateView:d,dispose:function(){this._brushController.dispose()},_onBrush:function(u,o){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(u,this.ecModel),(!o.isEnd||o.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:p.clone(u),$from:i}),o.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:p.clone(u),$from:i})}});function d(u,o,i,t){(!t||t.$from!==u.id)&&this._brushController.setPanels(u.brushTargetManager.makePanelOpts(i)).enableBrush(u.brushOption).updateCovers(u.areas.slice())}k.exports=f},x3X8:function(k,D,n){var y=n("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 u=[],o=0;o<f.length;o++){var i=p(v,m,f[o]);u.push(i)}return u.join(" ")}}D.getDefaultLabel=x},x54q:function(k,D,n){},x6Kt:function(k,D,n){var y=n("y+Vt"),p=n("VpOo"),x=n("nPnh"),v=x.subPixelOptimizeRect,m={},f=y.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(u,o){var i,t,s,e;this.subPixelOptimize?(v(m,o,this.style),i=m.x,t=m.y,s=m.width,e=m.height,m.r=o.r,o=m):(i=o.x,t=o.y,s=o.width,e=o.height),o.r?p.buildPath(u,o):u.rect(i,t,s,e),u.closePath();return}});k.exports=f},xGfz:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="PlusSquareOutlined";var d=D.a=p.forwardRef(f)},xKMd:function(k,D){function n(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=n;k.exports=y},xO64:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("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,a){if(!(r instanceof a))throw new TypeError("Cannot call a class as a function")}function m(r,a){for(var c=0;c<a.length;c++){var h=a[c];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(r,h.key,h)}}function f(r,a,c){return a&&m(r.prototype,a),c&&m(r,c),r}function d(r,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(a&&a.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),a&&u(r,a)}function u(r,a){return u=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},u(r,a)}function o(r){var a=s();return function(){var h=e(r),g;if(a){var A=e(this).constructor;g=Reflect.construct(h,arguments,A)}else g=h.apply(this,arguments);return i(this,g)}}function i(r,a){return a&&(x(a)==="object"||typeof a=="function")?a: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 s(){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 l=function(r){d(c,r);var a=o(c);function c(){return v(this,c),a.apply(this,arguments)}return f(c,[{key:"_pngRect",value:function(g,A,b,S,E,C,_){var T=this._readData(E);return T===null?!1:(C.imageRect(g,A,b,S,"image/png",T),!0)}},{key:"_basicRect",value:function(g,A,b,S,E,C,_,T){throw new Error("BasicCompression received in TightPNG rect")}}]),c}(y.default);D.default=l},xOOu:function(k,D,n){(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){k.exports=m()}(function(){return function m(f,d,u){function o(s,e){if(!d[s]){if(!f[s]){var l=typeof v=="function"&&v;if(!e&&l)return v(s,!0);if(i)return i(s,!0);var r=new Error("Cannot find module '"+s+"'");throw r.code="MODULE_NOT_FOUND",r}var a=d[s]={exports:{}};f[s][0].call(a.exports,function(c){var h=f[s][1][c];return o(h||c)},a,a.exports,m,f,d,u)}return d[s].exports}for(var i=typeof v=="function"&&v,t=0;t<u.length;t++)o(u[t]);return o}({1:[function(m,f,d){"use strict";var u=m("./utils"),o=m("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.encode=function(t){for(var s,e,l,r,a,c,h,g=[],A=0,b=t.length,S=b,E=u.getTypeOf(t)!=="string";A<t.length;)S=b-A,l=E?(s=t[A++],e=A<b?t[A++]:0,A<b?t[A++]:0):(s=t.charCodeAt(A++),e=A<b?t.charCodeAt(A++):0,A<b?t.charCodeAt(A++):0),r=s>>2,a=(3&s)<<4|e>>4,c=1<S?(15&e)<<2|l>>6:64,h=2<S?63&l:64,g.push(i.charAt(r)+i.charAt(a)+i.charAt(c)+i.charAt(h));return g.join("")},d.decode=function(t){var s,e,l,r,a,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,S=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===i.charAt(64)&&S--,t.charAt(t.length-2)===i.charAt(64)&&S--,S%1!=0)throw new Error("Invalid base64 input, bad content length.");for(b=o.uint8array?new Uint8Array(0|S):new Array(0|S);h<t.length;)s=i.indexOf(t.charAt(h++))<<2|(r=i.indexOf(t.charAt(h++)))>>4,e=(15&r)<<4|(a=i.indexOf(t.charAt(h++)))>>2,l=(3&a)<<6|(c=i.indexOf(t.charAt(h++))),b[g++]=s,a!==64&&(b[g++]=e),c!==64&&(b[g++]=l);return b}},{"./support":30,"./utils":32}],2:[function(m,f,d){"use strict";var u=m("./external"),o=m("./stream/DataWorker"),i=m("./stream/Crc32Probe"),t=m("./stream/DataLengthProbe");function s(e,l,r,a,c){this.compressedSize=e,this.uncompressedSize=l,this.crc32=r,this.compression=a,this.compressedContent=c}s.prototype={getContentWorker:function(){var l=new o(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new t("data_length")),r=this;return l.on("end",function(){if(this.streamInfo.data_length!==r.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new o(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,l,r){return e.pipe(new i).pipe(new t("uncompressedSize")).pipe(l.compressWorker(r)).pipe(new t("compressedSize")).withStreamInfo("compression",l)},f.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(m,f,d){"use strict";var u=m("./stream/GenericWorker");d.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},d.DEFLATE=m("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(m,f,d){"use strict";var u=m("./utils"),o=function(){for(var i,t=[],s=0;s<256;s++){i=s;for(var e=0;e<8;e++)i=1&i?3988292384^i>>>1:i>>>1;t[s]=i}return t}();f.exports=function(i,t){return i!==void 0&&i.length?u.getTypeOf(i)!=="string"?function(s,e,l,r){var a=o,c=r+l;s^=-1;for(var h=r;h<c;h++)s=s>>>8^a[255&(s^e[h])];return-1^s}(0|t,i,i.length,0):function(s,e,l,r){var a=o,c=r+l;s^=-1;for(var h=r;h<c;h++)s=s>>>8^a[255&(s^e.charCodeAt(h))];return-1^s}(0|t,i,i.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 u=null;u=typeof Promise!="undefined"?Promise:m("lie"),f.exports={Promise:u}},{lie:37}],7:[function(m,f,d){"use strict";var u=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",o=m("pako"),i=m("./utils"),t=m("./stream/GenericWorker"),s=u?"uint8array":"array";function e(l,r){t.call(this,"FlateWorker/"+l),this._pako=null,this._pakoAction=l,this._pakoOptions=r,this.meta={}}d.magic="\b\0",i.inherits(e,t),e.prototype.processChunk=function(l){this.meta=l.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(s,l.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 l=this;this._pako.onData=function(r){l.push({data:r,meta:l.meta})}},d.compressWorker=function(l){return new e("Deflate",l)},d.uncompressWorker=function(){return new e("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(m,f,d){"use strict";function u(a,c){var h,g="";for(h=0;h<c;h++)g+=String.fromCharCode(255&a),a>>>=8;return g}function o(a,c,h,g,A,b){var S,E,C=a.file,_=a.compression,T=b!==s.utf8encode,w=i.transformTo("string",b(C.name)),O=i.transformTo("string",s.utf8encode(C.name)),I=C.comment,R=i.transformTo("string",b(I)),M=i.transformTo("string",s.utf8encode(I)),B=O.length!==C.name.length,P=M.length!==I.length,X="",F="",j="",K=C.dir,z=C.date,V={crc32:0,compressedSize:0,uncompressedSize:0};c&&!h||(V.crc32=a.crc32,V.compressedSize=a.compressedSize,V.uncompressedSize=a.uncompressedSize);var Q=0;c&&(Q|=8),T||!B&&!P||(Q|=2048);var G=0,te=0;K&&(G|=16),A==="UNIX"?(te=798,G|=function(le,re){var we=le;return le||(we=re?16893:33204),(65535&we)<<16}(C.unixPermissions,K)):(te=20,G|=function(le){return 63&(le||0)}(C.dosPermissions)),S=z.getUTCHours(),S<<=6,S|=z.getUTCMinutes(),S<<=5,S|=z.getUTCSeconds()/2,E=z.getUTCFullYear()-1980,E<<=4,E|=z.getUTCMonth()+1,E<<=5,E|=z.getUTCDate(),B&&(F=u(1,1)+u(e(w),4)+O,X+="up"+u(F.length,2)+F),P&&(j=u(1,1)+u(e(R),4)+M,X+="uc"+u(j.length,2)+j);var q="";return q+=`
\0`,q+=u(Q,2),q+=_.magic,q+=u(S,2),q+=u(E,2),q+=u(V.crc32,4),q+=u(V.compressedSize,4),q+=u(V.uncompressedSize,4),q+=u(w.length,2),q+=u(X.length,2),{fileRecord:l.LOCAL_FILE_HEADER+q+w+X,dirRecord:l.CENTRAL_FILE_HEADER+u(te,2)+q+u(R.length,2)+"\0\0\0\0"+u(G,4)+u(g,4)+w+X+R}}var i=m("../utils"),t=m("../stream/GenericWorker"),s=m("../utf8"),e=m("../crc32"),l=m("../signature");function r(a,c,h,g){t.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=c,this.zipPlatform=h,this.encodeFileName=g,this.streamFiles=a,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(r,t),r.prototype.push=function(a){var c=a.meta.percent||0,h=this.entriesCount,g=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,t.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile,percent:h?(c+100*(h-g-1))/h:100}}))},r.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var c=this.streamFiles&&!a.file.dir;if(c){var h=o(a,c,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:h.fileRecord,meta:{percent:0}})}else this.accumulate=!0},r.prototype.closedSource=function(a){this.accumulate=!1;var c=this.streamFiles&&!a.file.dir,h=o(a,c,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(h.dirRecord),c)this.push({data:function(g){return l.DATA_DESCRIPTOR+u(g.crc32,4)+u(g.compressedSize,4)+u(g.uncompressedSize,4)}(a),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 a=this.bytesWritten,c=0;c<this.dirRecords.length;c++)this.push({data:this.dirRecords[c],meta:{percent:100}});var h=this.bytesWritten-a,g=function(A,b,S,E,C){var _=i.transformTo("string",C(E));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(A,2)+u(A,2)+u(b,4)+u(S,4)+u(_.length,2)+_}(this.dirRecords.length,h,a,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(a){this._sources.push(a);var c=this;return a.on("data",function(h){c.processChunk(h)}),a.on("end",function(){c.closedSource(c.previous.streamInfo),c._sources.length?c.prepareNextSource():c.end()}),a.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(a){var c=this._sources;if(!t.prototype.error.call(this,a))return!1;for(var h=0;h<c.length;h++)try{c[h].error(a)}catch(g){}return!0},r.prototype.lock=function(){t.prototype.lock.call(this);for(var a=this._sources,c=0;c<a.length;c++)a[c].lock()},f.exports=r},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(m,f,d){"use strict";var u=m("../compressions"),o=m("./ZipFileWorker");d.generateWorker=function(i,t,s){var e=new o(t.streamFiles,s,t.platform,t.encodeFileName),l=0;try{i.forEach(function(r,a){l++;var c=function(b,S){var E=b||S,C=u[E];if(!C)throw new Error(E+" is not a valid compression method !");return C}(a.options.compression,t.compression),h=a.options.compressionOptions||t.compressionOptions||{},g=a.dir,A=a.date;a._compressWorker(c,h).withStreamInfo("file",{name:r,dir:g,date:A,comment:a.comment||"",unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions}).pipe(e)}),e.entriesCount=l}catch(r){e.error(r)}return e}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(m,f,d){"use strict";function u(){if(!(this instanceof u))return new u;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 u;for(var i in this)typeof this[i]!="function"&&(o[i]=this[i]);return o}}(u.prototype=m("./object")).loadAsync=m("./load"),u.support=m("./support"),u.defaults=m("./defaults"),u.version="3.10.1",u.loadAsync=function(o,i){return new u().loadAsync(o,i)},u.external=m("./external"),f.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(m,f,d){"use strict";var u=m("./utils"),o=m("./external"),i=m("./utf8"),t=m("./zipEntries"),s=m("./stream/Crc32Probe"),e=m("./nodejsUtils");function l(r){return new o.Promise(function(a,c){var h=r.decompressed.getContentWorker().pipe(new s);h.on("error",function(g){c(g)}).on("end",function(){h.streamInfo.crc32!==r.decompressed.crc32?c(new Error("Corrupted zip : CRC32 mismatch")):a()}).resume()})}f.exports=function(r,a){var c=this;return a=u.extend(a||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),e.isNode&&e.isStream(r)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",r,!0,a.optimizedBinaryString,a.base64).then(function(h){var g=new t(a);return g.load(h),g}).then(function(h){var g=[o.Promise.resolve(h)],A=h.files;if(a.checkCRC32)for(var b=0;b<A.length;b++)g.push(l(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 S=A[b],E=S.fileNameStr,C=u.resolve(S.fileNameStr);c.file(C,S.decompressed,{binary:!0,optimizedBinaryString:!0,date:S.date,dir:S.dir,comment:S.fileCommentStr.length?S.fileCommentStr:null,unixPermissions:S.unixPermissions,dosPermissions:S.dosPermissions,createFolders:a.createFolders}),S.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 u=m("../utils"),o=m("../stream/GenericWorker");function i(t,s){o.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(s)}u.inherits(i,o),i.prototype._bindStream=function(t){var s=this;(this._stream=t).pause(),t.on("data",function(e){s.push({data:e,meta:{percent:0}})}).on("error",function(e){s.isPaused?this.generatedError=e:s.error(e)}).on("end",function(){s.isPaused?s._upstreamEnded=!0:s.end()})},i.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},f.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(m,f,d){"use strict";var u=m("readable-stream").Readable;function o(i,t,s){u.call(this,t),this._helper=i;var e=this;i.on("data",function(l,r){e.push(l)||e._helper.pause(),s&&s(r)}).on("error",function(l){e.emit("error",l)}).on("end",function(){e.push(null)})}m("../utils").inherits(o,u),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,i){if(y.from&&y.from!==Uint8Array.from)return y.from(o,i);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new y(o,i)},allocBuffer:function(o){if(y.alloc)return y.alloc(o);var i=new y(o);return i.fill(0),i},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 u(C,_,T){var w,O=i.getTypeOf(_),I=i.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&&(w=g(C))&&b.call(this,w,!0);var R=O==="string"&&I.binary===!1&&I.base64===!1;T&&T.binary!==void 0||(I.binary=!R),(_ instanceof l&&_.uncompressedSize===0||I.dir||!_||_.length===0)&&(I.base64=!1,I.binary=!0,_="",I.compression="STORE",O="string");var M=null;M=_ instanceof l||_ instanceof t?_:c.isNode&&c.isStream(_)?new h(C,_):i.prepareContent(C,_,I.binary,I.optimizedBinaryString,I.base64);var B=new r(C,M,I);this.files[C]=B}var o=m("./utf8"),i=m("./utils"),t=m("./stream/GenericWorker"),s=m("./stream/StreamHelper"),e=m("./defaults"),l=m("./compressedObject"),r=m("./zipObject"),a=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[_]||u.call(this,_,null,{dir:!0,createFolders:T}),this.files[_]};function S(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,w,O;for(T in this.files)O=this.files[T],(w=T.slice(this.root.length,T.length))&&T.slice(0,this.root.length)===this.root&&_(w,O)},filter:function(_){var T=[];return this.forEach(function(w,O){_(w,O)&&T.push(O)}),T},file:function(_,T,w){if(arguments.length!==1)return _=this.root+_,u.call(this,_,T,w),this;if(S(_)){var O=_;return this.filter(function(R,M){return!M.dir&&O.test(R)})}var I=this.files[this.root+_];return I&&!I.dir?I:null},folder:function(_){if(!_)return this;if(S(_))return this.filter(function(I,R){return R.dir&&_.test(I)});var T=this.root+_,w=b.call(this,T),O=this.clone();return O.root=w.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 w=this.filter(function(I,R){return R.name.slice(0,_.length)===_}),O=0;O<w.length;O++)delete this.files[w[O].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(_){var T,w={};try{if((w=i.extend(_||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=w.type.toLowerCase(),w.compression=w.compression.toUpperCase(),w.type==="binarystring"&&(w.type="string"),!w.type)throw new Error("No output type specified.");i.checkSupport(w.type),w.platform!=="darwin"&&w.platform!=="freebsd"&&w.platform!=="linux"&&w.platform!=="sunos"||(w.platform="UNIX"),w.platform==="win32"&&(w.platform="DOS");var O=w.comment||this.comment||"";T=a.generateWorker(this,w,O)}catch(I){(T=new t("error")).error(I)}return new s(T,w.type||"string",w.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 u=m("./DataReader");function o(i){u.call(this,i);for(var t=0;t<this.data.length;t++)i[t]=255&i[t]}m("../utils").inherits(o,u),o.prototype.byteAt=function(i){return this.data[this.zero+i]},o.prototype.lastIndexOfSignature=function(i){for(var t=i.charCodeAt(0),s=i.charCodeAt(1),e=i.charCodeAt(2),l=i.charCodeAt(3),r=this.length-4;0<=r;--r)if(this.data[r]===t&&this.data[r+1]===s&&this.data[r+2]===e&&this.data[r+3]===l)return r-this.zero;return-1},o.prototype.readAndCheckSignature=function(i){var t=i.charCodeAt(0),s=i.charCodeAt(1),e=i.charCodeAt(2),l=i.charCodeAt(3),r=this.readData(4);return t===r[0]&&s===r[1]&&e===r[2]&&l===r[3]},o.prototype.readData=function(i){if(this.checkOffset(i),i===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},f.exports=o},{"../utils":32,"./DataReader":18}],18:[function(m,f,d){"use strict";var u=m("../utils");function o(i){this.data=i,this.length=i.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 s,e=0;for(this.checkOffset(t),s=this.index+t-1;s>=this.index;s--)e=(e<<8)+this.byteAt(s);return this.index+=t,e},readString:function(t){return u.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 u=m("./Uint8ArrayReader");function o(i){u.call(this,i)}m("../utils").inherits(o,u),o.prototype.readData=function(i){this.checkOffset(i);var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},f.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(m,f,d){"use strict";var u=m("./DataReader");function o(i){u.call(this,i)}m("../utils").inherits(o,u),o.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},o.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},o.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},o.prototype.readData=function(i){this.checkOffset(i);var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},f.exports=o},{"../utils":32,"./DataReader":18}],21:[function(m,f,d){"use strict";var u=m("./ArrayReader");function o(i){u.call(this,i)}m("../utils").inherits(o,u),o.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},f.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(m,f,d){"use strict";var u=m("../utils"),o=m("../support"),i=m("./ArrayReader"),t=m("./StringReader"),s=m("./NodeBufferReader"),e=m("./Uint8ArrayReader");f.exports=function(l){var r=u.getTypeOf(l);return u.checkSupport(r),r!=="string"||o.uint8array?r==="nodebuffer"?new s(l):o.uint8array?new e(u.transformTo("uint8array",l)):new i(u.transformTo("array",l)):new t(l)}},{"../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 u=m("./GenericWorker"),o=m("../utils");function i(t){u.call(this,"ConvertWorker to "+t),this.destType=t}o.inherits(i,u),i.prototype.processChunk=function(t){this.push({data:o.transformTo(this.destType,t.data),meta:t.meta})},f.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(m,f,d){"use strict";var u=m("./GenericWorker"),o=m("../crc32");function i(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}m("../utils").inherits(i,u),i.prototype.processChunk=function(t){this.streamInfo.crc32=o(t.data,this.streamInfo.crc32||0),this.push(t)},f.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(m,f,d){"use strict";var u=m("../utils"),o=m("./GenericWorker");function i(t){o.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}u.inherits(i,o),i.prototype.processChunk=function(t){if(t){var s=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=s+t.data.length}o.prototype.processChunk.call(this,t)},f.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(m,f,d){"use strict";var u=m("../utils"),o=m("./GenericWorker");function i(t){o.call(this,"DataWorker");var s=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(e){s.dataIsReady=!0,s.data=e,s.max=e&&e.length||0,s.type=u.getTypeOf(e),s.isPaused||s._tickAndRepeat()},function(e){s.error(e)})}u.inherits(i,o),i.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,s=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,s);break;case"uint8array":t=this.data.subarray(this.index,s);break;case"array":case"nodebuffer":t=this.data.slice(this.index,s)}return this.index=s,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},f.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(m,f,d){"use strict";function u(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}u.prototype={push:function(i){this.emit("data",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,t){return this._listeners[i].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,t){if(this._listeners[i])for(var s=0;s<this._listeners[i].length;s++)this._listeners[i][s].call(this,t)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var t=this;return i.on("data",function(s){t.processChunk(s)}),i.on("end",function(){t.end()}),i.on("error",function(s){t.error(s)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var i=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,t){return this.extraStreamInfo[i]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var i="Worker "+this.name;return this.previous?this.previous+" -> "+i:i}},f.exports=u},{}],29:[function(m,f,d){"use strict";var u=m("../utils"),o=m("./ConvertWorker"),i=m("./GenericWorker"),t=m("../base64"),s=m("../support"),e=m("../external"),l=null;if(s.nodestream)try{l=m("../nodejs/NodejsStreamOutputAdapter")}catch(c){}function r(c,h){return new e.Promise(function(g,A){var b=[],S=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,w,O){switch(T){case"blob":return u.newBlob(u.transformTo("arraybuffer",w),O);case"base64":return t.encode(w);default:return u.transformTo(T,w)}}(E,function(T,w){var O,I=0,R=null,M=0;for(O=0;O<w.length;O++)M+=w[O].length;switch(T){case"string":return w.join("");case"array":return Array.prototype.concat.apply([],w);case"uint8array":for(R=new Uint8Array(M),O=0;O<w.length;O++)R.set(w[O],I),I+=w[O].length;return R;case"nodebuffer":return y.concat(w);default:throw new Error("concat : unsupported type '"+T+"'")}}(S,b),C);g(_)}catch(T){A(T)}b=[]}).resume()})}function a(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,u.checkSupport(A),this._worker=c.pipe(new o(A)),c.lock()}catch(b){this._worker=new i("error"),this._worker.error(b)}}a.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(){u.delay(g,arguments,A)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(h){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:this._outputType!=="nodebuffer"},h)}},f.exports=a},{"../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 u=new ArrayBuffer(0);try{d.blob=new Blob([u],{type:"application/zip"}).size===0}catch(i){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(u),d.blob=o.getBlob("application/zip").size===0}catch(t){d.blob=!1}}}try{d.nodestream=!!m("readable-stream").Readable}catch(i){d.nodestream=!1}},{"readable-stream":16}],31:[function(m,f,d){"use strict";for(var u=m("./utils"),o=m("./support"),i=m("./nodejsUtils"),t=m("./stream/GenericWorker"),s=new Array(256),e=0;e<256;e++)s[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;s[254]=s[254]=1;function l(){t.call(this,"utf-8 decode"),this.leftOver=null}function r(){t.call(this,"utf-8 encode")}d.utf8encode=function(a){return o.nodebuffer?i.newBufferFrom(a,"utf-8"):function(c){var h,g,A,b,S,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=S=0;S<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[S++]=g:(g<2048?h[S++]=192|g>>>6:(g<65536?h[S++]=224|g>>>12:(h[S++]=240|g>>>18,h[S++]=128|g>>>12&63),h[S++]=128|g>>>6&63),h[S++]=128|63&g);return h}(a)},d.utf8decode=function(a){return o.nodebuffer?u.transformTo("nodebuffer",a).toString("utf-8"):function(c){var h,g,A,b,S=c.length,E=new Array(2*S);for(h=g=0;h<S;)if((A=c[h++])<128)E[g++]=A;else if(4<(b=s[A]))E[g++]=65533,h+=b-1;else{for(A&=b===2?31:b===3?15:7;1<b&&h<S;)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),u.applyFromCharCode(E)}(a=u.transformTo(o.uint8array?"uint8array":"array",a))},u.inherits(l,t),l.prototype.processChunk=function(a){var c=u.transformTo(o.uint8array?"uint8array":"array",a.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,S){var E;for((S=S||b.length)>b.length&&(S=b.length),E=S-1;0<=E&&(192&b[E])==128;)E--;return E<0||E===0?S:E+s[b[E]]>S?E:S}(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:a.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:d.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},d.Utf8DecodeWorker=l,u.inherits(r,t),r.prototype.processChunk=function(a){this.push({data:d.utf8encode(a.data),meta:a.meta})},d.Utf8EncodeWorker=r},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(m,f,d){"use strict";var u=m("./support"),o=m("./base64"),i=m("./nodejsUtils"),t=m("./external");function s(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(S){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(g,A,b){var S=[],E=0,C=g.length;if(C<=b)return String.fromCharCode.apply(null,g);for(;E<C;)A==="array"||A==="nodebuffer"?S.push(String.fromCharCode.apply(null,g.slice(E,Math.min(E+b,C)))):S.push(String.fromCharCode.apply(null,g.subarray(E,Math.min(E+b,C)))),E+=b;return S.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 u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(h){return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,i.allocBuffer(1)).length===1}catch(h){return!1}}()}};function r(h){var g=65536,A=d.getTypeOf(h),b=!0;if(A==="uint8array"?b=l.applyCanBeUsed.uint8array:A==="nodebuffer"&&(b=l.applyCanBeUsed.nodebuffer),b)for(;1<g;)try{return l.stringifyByChunk(h,A,g)}catch(S){g=Math.floor(g/2)}return l.stringifyByChar(h)}function a(h,g){for(var A=0;A<h.length;A++)g[A]=h[A];return g}d.applyFromCharCode=r;var c={};c.string={string:s,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,i.allocBuffer(g.length))}},c.array={string:r,array:s,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return i.newBufferFrom(g)}},c.arraybuffer={string:function(g){return r(new Uint8Array(g))},array:function(g){return a(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:s,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return i.newBufferFrom(new Uint8Array(g))}},c.uint8array={string:r,array:function(g){return a(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:s,nodebuffer:function(g){return i.newBufferFrom(g)}},c.nodebuffer={string:r,array:function(g){return a(g,new Array(g.length))},arraybuffer:function(g){return c.nodebuffer.uint8array(g).buffer},uint8array:function(g){return a(g,new Uint8Array(g.length))},nodebuffer:s},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 S=g[b];S==="."||S===""&&b!==0&&b!==g.length-1||(S===".."?A.pop():A.push(S))}return A.join("/")},d.getTypeOf=function(h){return typeof h=="string"?"string":Object.prototype.toString.call(h)==="[object Array]"?"array":u.nodebuffer&&i.isBuffer(h)?"nodebuffer":u.uint8array&&h instanceof Uint8Array?"uint8array":u.arraybuffer&&h instanceof ArrayBuffer?"arraybuffer":void 0},d.checkSupport=function(h){if(!u[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,S){return t.Promise.resolve(g).then(function(E){return u.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(w){C(w.target.result)},T.onerror=function(w){_(w.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"&&(S?E=o.decode(E):A&&b!==!0&&(E=function(_){return e(_,u.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 u=m("./reader/readerFor"),o=m("./utils"),i=m("./signature"),t=m("./zipEntry"),s=m("./support");function e(l){this.files=[],this.loadOptions=l}e.prototype={checkSignature:function(r){if(!this.reader.readAndCheckSignature(r)){this.reader.index-=4;var a=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(a)+", expected "+o.pretty(r)+")")}},isSignature:function(r,a){var c=this.reader.index;this.reader.setIndex(r);var h=this.reader.readString(4)===a;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),a=s.uint8array?"uint8array":"array",c=o.transformTo(a,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,a,c,h=this.zip64EndOfCentralSize-44;0<h;)r=this.reader.readInt(2),a=this.reader.readInt(4),c=this.reader.readData(a),this.zip64ExtensibleData[r]={id:r,length:a,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,a;for(r=0;r<this.files.length;r++)a=this.files[r],this.reader.setIndex(a.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),a.readLocalPart(this.reader),a.handleUTF8(),a.processAttributes()},readCentralDir:function(){var r;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(r=new t({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(r);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var r=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(r<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(r);var a=r;if(this.checkSignature(i.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(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(r),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var h=a-c;if(0<h)this.isSignature(a,i.CENTRAL_FILE_HEADER)||(this.reader.zero=h);else if(h<0)throw new Error("Corrupted zip: missing "+Math.abs(h)+" bytes.")},prepareReader:function(r){this.reader=u(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 u=m("./reader/readerFor"),o=m("./utils"),i=m("./compressedObject"),t=m("./crc32"),s=m("./utf8"),e=m("./compressions"),l=m("./support");function r(a,c){this.options=a,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 i(this.compressedSize,this.uncompressedSize,this.crc32,h,c.readData(this.compressedSize))},readCentralPart:function(c){this.versionMadeBy=c.readInt(2),c.skip(2),this.bitFlag=c.readInt(2),this.compressionMethod=c.readString(2),this.date=c.readDate(),this.crc32=c.readInt(4),this.compressedSize=c.readInt(4),this.uncompressedSize=c.readInt(4);var h=c.readInt(2);if(this.extraFieldsLength=c.readInt(2),this.fileCommentLength=c.readInt(2),this.diskNumberStart=c.readInt(2),this.internalFileAttributes=c.readInt(2),this.externalFileAttributes=c.readInt(4),this.localHeaderOffset=c.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");c.skip(h),this.readExtraFields(c),this.parseZIP64ExtraField(c),this.fileComment=c.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var c=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),c==0&&(this.dosPermissions=63&this.externalFileAttributes),c==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var c=u(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=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.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=u(c.value);return h.readInt(1)!==1||t(this.fileName)!==h.readInt(4)?null:s.utf8decode(h.readData(c.length-5))}return null},findExtraFieldUnicodeComment:function(){var c=this.extraFields[25461];if(c){var h=u(c.value);return h.readInt(1)!==1||t(this.fileComment)!==h.readInt(4)?null:s.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 u(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"),i=m("./stream/DataWorker"),t=m("./utf8"),s=m("./compressedObject"),e=m("./stream/GenericWorker");u.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 S=!this._dataBinary;S&&!b&&(g=g.pipe(new t.Utf8EncodeWorker)),!S&&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 s&&this._data.compression.magic===h.magic)return this._data.getCompressedWorker();var A=this._decompressWorker();return this._dataBinary||(A=A.pipe(new t.Utf8EncodeWorker)),s.createWorkerFrom(A,h,g)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof e?this._data:new i(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],r=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},a=0;a<l.length;a++)u.prototype[l[a]]=r;f.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(m,f,d){(function(u){"use strict";var o,i,t=u.MutationObserver||u.WebKitMutationObserver;if(t){var s=0,e=new t(c),l=u.document.createTextNode("");e.observe(l,{characterData:!0}),o=function(){l.data=s=++s%2}}else if(u.setImmediate||u.MessageChannel===void 0)o="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var h=u.document.createElement("script");h.onreadystatechange=function(){c(),h.onreadystatechange=null,h.parentNode.removeChild(h),h=null},u.document.documentElement.appendChild(h)}:function(){setTimeout(c,0)};else{var r=new u.MessageChannel;r.port1.onmessage=c,o=function(){r.port2.postMessage(0)}}var a=[];function c(){var h,g;i=!0;for(var A=a.length;A;){for(g=a,a=[],h=-1;++h<A;)g[h]();A=a.length}i=!1}f.exports=function(h){a.push(h)!==1||i||o()}}).call(this,typeof p!="undefined"?p:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(m,f,d){"use strict";var u=m("immediate");function o(){}var i={},t=["REJECTED"],s=["FULFILLED"],e=["PENDING"];function l(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,S){this.promise=A,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof S=="function"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}function a(A,b,S){u(function(){var E;try{E=b(S)}catch(C){return i.reject(A,C)}E===A?i.reject(A,new TypeError("Cannot resolve promise with itself")):i.resolve(A,E)})}function c(A){var b=A&&A.then;if(A&&(typeof A=="object"||typeof A=="function")&&typeof b=="function")return function(){b.apply(A,arguments)}}function h(A,b){var S=!1;function E(T){S||(S=!0,i.reject(A,T))}function C(T){S||(S=!0,i.resolve(A,T))}var _=g(function(){b(C,E)});_.status==="error"&&E(_.value)}function g(A,b){var S={};try{S.value=A(b),S.status="success"}catch(E){S.status="error",S.value=E}return S}(f.exports=l).prototype.finally=function(A){if(typeof A!="function")return this;var b=this.constructor;return this.then(function(S){return b.resolve(A()).then(function(){return S})},function(S){return b.resolve(A()).then(function(){throw S})})},l.prototype.catch=function(A){return this.then(null,A)},l.prototype.then=function(A,b){if(typeof A!="function"&&this.state===s||typeof b!="function"&&this.state===t)return this;var S=new this.constructor(o);return this.state!==e?a(S,this.state===s?A:b,this.outcome):this.queue.push(new r(S,A,b)),S},r.prototype.callFulfilled=function(A){i.resolve(this.promise,A)},r.prototype.otherCallFulfilled=function(A){a(this.promise,this.onFulfilled,A)},r.prototype.callRejected=function(A){i.reject(this.promise,A)},r.prototype.otherCallRejected=function(A){a(this.promise,this.onRejected,A)},i.resolve=function(A,b){var S=g(c,b);if(S.status==="error")return i.reject(A,S.value);var E=S.value;if(E)h(A,E);else{A.state=s,A.outcome=b;for(var C=-1,_=A.queue.length;++C<_;)A.queue[C].callFulfilled(b)}return A},i.reject=function(A,b){A.state=t,A.outcome=b;for(var S=-1,E=A.queue.length;++S<E;)A.queue[S].callRejected(b);return A},l.resolve=function(A){return A instanceof this?A:i.resolve(new this(o),A)},l.reject=function(A){var b=new this(o);return i.reject(b,A)},l.all=function(A){var b=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=A.length,E=!1;if(!S)return this.resolve([]);for(var C=new Array(S),_=0,T=-1,w=new this(o);++T<S;)O(A[T],T);return w;function O(I,R){b.resolve(I).then(function(M){C[R]=M,++_!==S||E||(E=!0,i.resolve(w,C))},function(M){E||(E=!0,i.reject(w,M))})}},l.race=function(A){var b=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=A.length,E=!1;if(!S)return this.resolve([]);for(var C=-1,_=new this(o);++C<S;)T=A[C],b.resolve(T).then(function(w){E||(E=!0,i.resolve(_,w))},function(w){E||(E=!0,i.reject(_,w))});var T;return _}},{immediate:36}],38:[function(m,f,d){"use strict";var u={};(0,m("./lib/utils/common").assign)(u,m("./lib/deflate"),m("./lib/inflate"),m("./lib/zlib/constants")),f.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(m,f,d){"use strict";var u=m("./zlib/deflate"),o=m("./utils/common"),i=m("./utils/strings"),t=m("./zlib/messages"),s=m("./zlib/zstream"),e=Object.prototype.toString,l=0,r=-1,a=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:a,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 s,this.strm.avail_out=0;var S=u.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(S!==l)throw new Error(t[S]);if(b.header&&u.deflateSetHeader(this.strm,b.header),b.dictionary){var E;if(E=typeof b.dictionary=="string"?i.string2buf(b.dictionary):e.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(S=u.deflateSetDictionary(this.strm,E))!==l)throw new Error(t[S]);this._dict_set=!0}}function g(A,b){var S=new h(b);if(S.push(A,!0),S.err)throw S.msg||t[S.err];return S.result}h.prototype.push=function(A,b){var S,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=i.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=_),(S=u.deflate(C,E))!==1&&S!==l)return this.onEnd(S),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||E!==4&&E!==2)||(this.options.to==="string"?this.onData(i.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)&&S!==1);return E===4?(S=u.deflateEnd(this.strm),this.onEnd(S),this.ended=!0,S===l):E!==2||(this.onEnd(l),!(C.avail_out=0))},h.prototype.onData=function(A){this.chunks.push(A)},h.prototype.onEnd=function(A){A===l&&(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 u=m("./zlib/inflate"),o=m("./utils/common"),i=m("./utils/strings"),t=m("./zlib/constants"),s=m("./zlib/messages"),e=m("./zlib/zstream"),l=m("./zlib/gzheader"),r=Object.prototype.toString;function a(h){if(!(this instanceof a))return new a(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=u.inflateInit2(this.strm,g.windowBits);if(A!==t.Z_OK)throw new Error(s[A]);this.header=new l,u.inflateGetHeader(this.strm,this.header)}function c(h,g){var A=new a(g);if(A.push(h,!0),A.err)throw A.msg||s[A.err];return A.result}a.prototype.push=function(h,g){var A,b,S,E,C,_,T=this.strm,w=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=i.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(w),T.next_out=0,T.avail_out=w),(A=u.inflate(T,t.Z_NO_FLUSH))===t.Z_NEED_DICT&&O&&(_=typeof O=="string"?i.string2buf(O):r.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,A=u.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"?(S=i.utf8border(T.output,T.next_out),E=T.next_out-S,C=i.buf2string(T.output,S),T.next_out=E,T.avail_out=w-E,E&&o.arraySet(T.output,T.output,S,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=u.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))},a.prototype.onData=function(h){this.chunks.push(h)},a.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=a,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 u=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";d.assign=function(t){for(var s=Array.prototype.slice.call(arguments,1);s.length;){var e=s.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(var l in e)e.hasOwnProperty(l)&&(t[l]=e[l])}}return t},d.shrinkBuf=function(t,s){return t.length===s?t:t.subarray?t.subarray(0,s):(t.length=s,t)};var o={arraySet:function(s,e,l,r,a){if(e.subarray&&s.subarray)s.set(e.subarray(l,l+r),a);else for(var c=0;c<r;c++)s[a+c]=e[l+c]},flattenChunks:function(s){var e,l,r,a,c,h;for(e=r=0,l=s.length;e<l;e++)r+=s[e].length;for(h=new Uint8Array(r),e=a=0,l=s.length;e<l;e++)c=s[e],h.set(c,a),a+=c.length;return h}},i={arraySet:function(s,e,l,r,a){for(var c=0;c<r;c++)s[a+c]=e[l+c]},flattenChunks:function(s){return[].concat.apply([],s)}};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,i))},d.setTyped(u)},{}],42:[function(m,f,d){"use strict";var u=m("./common"),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(l){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(l){i=!1}for(var t=new u.Buf8(256),s=0;s<256;s++)t[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function e(l,r){if(r<65537&&(l.subarray&&i||!l.subarray&&o))return String.fromCharCode.apply(null,u.shrinkBuf(l,r));for(var a="",c=0;c<r;c++)a+=String.fromCharCode(l[c]);return a}t[254]=t[254]=1,d.string2buf=function(l){var r,a,c,h,g,A=l.length,b=0;for(h=0;h<A;h++)(64512&(a=l.charCodeAt(h)))==55296&&h+1<A&&(64512&(c=l.charCodeAt(h+1)))==56320&&(a=65536+(a-55296<<10)+(c-56320),h++),b+=a<128?1:a<2048?2:a<65536?3:4;for(r=new u.Buf8(b),h=g=0;g<b;h++)(64512&(a=l.charCodeAt(h)))==55296&&h+1<A&&(64512&(c=l.charCodeAt(h+1)))==56320&&(a=65536+(a-55296<<10)+(c-56320),h++),a<128?r[g++]=a:(a<2048?r[g++]=192|a>>>6:(a<65536?r[g++]=224|a>>>12:(r[g++]=240|a>>>18,r[g++]=128|a>>>12&63),r[g++]=128|a>>>6&63),r[g++]=128|63&a);return r},d.buf2binstring=function(l){return e(l,l.length)},d.binstring2buf=function(l){for(var r=new u.Buf8(l.length),a=0,c=r.length;a<c;a++)r[a]=l.charCodeAt(a);return r},d.buf2string=function(l,r){var a,c,h,g,A=r||l.length,b=new Array(2*A);for(a=c=0;a<A;)if((h=l[a++])<128)b[c++]=h;else if(4<(g=t[h]))b[c++]=65533,a+=g-1;else{for(h&=g===2?31:g===3?15:7;1<g&&a<A;)h=h<<6|63&l[a++],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(l,r){var a;for((r=r||l.length)>l.length&&(r=l.length),a=r-1;0<=a&&(192&l[a])==128;)a--;return a<0||a===0?r:a+t[l[a]]>r?a:r}},{"./common":41}],43:[function(m,f,d){"use strict";f.exports=function(u,o,i,t){for(var s=65535&u|0,e=u>>>16&65535|0,l=0;i!==0;){for(i-=l=2e3<i?2e3:i;e=e+(s=s+o[t++]|0)|0,--l;);s%=65521,e%=65521}return s|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 u=function(){for(var o,i=[],t=0;t<256;t++){o=t;for(var s=0;s<8;s++)o=1&o?3988292384^o>>>1:o>>>1;i[t]=o}return i}();f.exports=function(o,i,t,s){var e=u,l=s+t;o^=-1;for(var r=s;r<l;r++)o=o>>>8^e[255&(o^i[r])];return-1^o}},{}],46:[function(m,f,d){"use strict";var u,o=m("../utils/common"),i=m("./trees"),t=m("./adler32"),s=m("./crc32"),e=m("./messages"),l=0,r=4,a=0,c=-2,h=-1,g=4,A=2,b=8,S=9,E=286,C=30,_=19,T=2*E+1,w=15,O=3,I=258,R=I+O+1,M=42,B=113,P=1,X=2,F=3,j=4;function K(ae,at){return ae.msg=e[at],at}function z(ae){return(ae<<1)-(4<ae?9:0)}function V(ae){for(var at=ae.length;0<=--at;)ae[at]=0}function Q(ae){var at=ae.state,he=at.pending;he>ae.avail_out&&(he=ae.avail_out),he!==0&&(o.arraySet(ae.output,at.pending_buf,at.pending_out,he,ae.next_out),ae.next_out+=he,at.pending_out+=he,ae.total_out+=he,ae.avail_out-=he,at.pending-=he,at.pending===0&&(at.pending_out=0))}function G(ae,at){i._tr_flush_block(ae,0<=ae.block_start?ae.block_start:-1,ae.strstart-ae.block_start,at),ae.block_start=ae.strstart,Q(ae.strm)}function te(ae,at){ae.pending_buf[ae.pending++]=at}function q(ae,at){ae.pending_buf[ae.pending++]=at>>>8&255,ae.pending_buf[ae.pending++]=255&at}function le(ae,at){var he,J,Y=ae.max_chain_length,$=ae.strstart,de=ae.prev_length,be=ae.nice_match,Ce=ae.strstart>ae.w_size-R?ae.strstart-(ae.w_size-R):0,Be=ae.window,fe=ae.w_mask,Se=ae.prev,ke=ae.strstart+I,rt=Be[$+de-1],xt=Be[$+de];ae.prev_length>=ae.good_match&&(Y>>=2),be>ae.lookahead&&(be=ae.lookahead);do if(Be[(he=at)+de]===xt&&Be[he+de-1]===rt&&Be[he]===Be[$]&&Be[++he]===Be[$+1]){$+=2,he++;do;while(Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&Be[++$]===Be[++he]&&$<ke);if(J=I-(ke-$),$=ke-I,de<J){if(ae.match_start=at,be<=(de=J))break;rt=Be[$+de-1],xt=Be[$+de]}}while((at=Se[at&fe])>Ce&&--Y!=0);return de<=ae.lookahead?de:ae.lookahead}function re(ae){var at,he,J,Y,$,de,be,Ce,Be,fe,Se=ae.w_size;do{if(Y=ae.window_size-ae.lookahead-ae.strstart,ae.strstart>=Se+(Se-R)){for(o.arraySet(ae.window,ae.window,Se,Se,0),ae.match_start-=Se,ae.strstart-=Se,ae.block_start-=Se,at=he=ae.hash_size;J=ae.head[--at],ae.head[at]=Se<=J?J-Se:0,--he;);for(at=he=Se;J=ae.prev[--at],ae.prev[at]=Se<=J?J-Se:0,--he;);Y+=Se}if(ae.strm.avail_in===0)break;if(de=ae.strm,be=ae.window,Ce=ae.strstart+ae.lookahead,Be=Y,fe=void 0,fe=de.avail_in,Be<fe&&(fe=Be),he=fe===0?0:(de.avail_in-=fe,o.arraySet(be,de.input,de.next_in,fe,Ce),de.state.wrap===1?de.adler=t(de.adler,be,fe,Ce):de.state.wrap===2&&(de.adler=s(de.adler,be,fe,Ce)),de.next_in+=fe,de.total_in+=fe,fe),ae.lookahead+=he,ae.lookahead+ae.insert>=O)for($=ae.strstart-ae.insert,ae.ins_h=ae.window[$],ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[$+1])&ae.hash_mask;ae.insert&&(ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[$+O-1])&ae.hash_mask,ae.prev[$&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=$,$++,ae.insert--,!(ae.lookahead+ae.insert<O)););}while(ae.lookahead<R&&ae.strm.avail_in!==0)}function we(ae,at){for(var he,J;;){if(ae.lookahead<R){if(re(ae),ae.lookahead<R&&at===l)return P;if(ae.lookahead===0)break}if(he=0,ae.lookahead>=O&&(ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+O-1])&ae.hash_mask,he=ae.prev[ae.strstart&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=ae.strstart),he!==0&&ae.strstart-he<=ae.w_size-R&&(ae.match_length=le(ae,he)),ae.match_length>=O)if(J=i._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,he=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=i._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++;if(J&&(G(ae,!1),ae.strm.avail_out===0))return P}return ae.insert=ae.strstart<O-1?ae.strstart:O-1,at===r?(G(ae,!0),ae.strm.avail_out===0?F:j):ae.last_lit&&(G(ae,!1),ae.strm.avail_out===0)?P:X}function Ie(ae,at){for(var he,J,Y;;){if(ae.lookahead<R){if(re(ae),ae.lookahead<R&&at===l)return P;if(ae.lookahead===0)break}if(he=0,ae.lookahead>=O&&(ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+O-1])&ae.hash_mask,he=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,he!==0&&ae.prev_length<ae.max_lazy_match&&ae.strstart-he<=ae.w_size-R&&(ae.match_length=le(ae,he),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=i._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,he=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&&(G(ae,!1),ae.strm.avail_out===0))return P}else if(ae.match_available){if((J=i._tr_tally(ae,0,ae.window[ae.strstart-1]))&&G(ae,!1),ae.strstart++,ae.lookahead--,ae.strm.avail_out===0)return P}else ae.match_available=1,ae.strstart++,ae.lookahead--}return ae.match_available&&(J=i._tr_tally(ae,0,ae.window[ae.strstart-1]),ae.match_available=0),ae.insert=ae.strstart<O-1?ae.strstart:O-1,at===r?(G(ae,!0),ae.strm.avail_out===0?F:j):ae.last_lit&&(G(ae,!1),ae.strm.avail_out===0)?P:X}function Me(ae,at,he,J,Y){this.good_length=ae,this.max_lazy=at,this.nice_length=he,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(w+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 Ve(ae){var at;return ae&&ae.state?(ae.total_in=ae.total_out=0,ae.data_type=A,(at=ae.state).pending=0,at.pending_out=0,at.wrap<0&&(at.wrap=-at.wrap),at.status=at.wrap?M:B,ae.adler=at.wrap===2?0:1,at.last_flush=l,i._tr_init(at),a):K(ae,c)}function ut(ae){var at=Ve(ae);return at===a&&function(he){he.window_size=2*he.w_size,V(he.head),he.max_lazy_match=u[he.level].max_lazy,he.good_match=u[he.level].good_length,he.nice_match=u[he.level].nice_length,he.max_chain_length=u[he.level].max_chain,he.strstart=0,he.block_start=0,he.lookahead=0,he.insert=0,he.match_length=he.prev_length=O-1,he.match_available=0,he.ins_h=0}(ae.state),at}function Fe(ae,at,he,J,Y,$){if(!ae)return c;var de=1;if(at===h&&(at=6),J<0?(de=0,J=-J):15<J&&(de=2,J-=16),Y<1||S<Y||he!==b||J<8||15<J||at<0||9<at||$<0||g<$)return K(ae,c);J===8&&(J=9);var be=new Je;return(ae.state=be).strm=ae,be.wrap=de,be.gzhead=null,be.w_bits=J,be.w_size=1<<be.w_bits,be.w_mask=be.w_size-1,be.hash_bits=Y+7,be.hash_size=1<<be.hash_bits,be.hash_mask=be.hash_size-1,be.hash_shift=~~((be.hash_bits+O-1)/O),be.window=new o.Buf8(2*be.w_size),be.head=new o.Buf16(be.hash_size),be.prev=new o.Buf16(be.w_size),be.lit_bufsize=1<<Y+6,be.pending_buf_size=4*be.lit_bufsize,be.pending_buf=new o.Buf8(be.pending_buf_size),be.d_buf=1*be.lit_bufsize,be.l_buf=3*be.lit_bufsize,be.level=at,be.strategy=$,be.method=he,ut(ae)}u=[new Me(0,0,0,0,function(ae,at){var he=65535;for(he>ae.pending_buf_size-5&&(he=ae.pending_buf_size-5);;){if(ae.lookahead<=1){if(re(ae),ae.lookahead===0&&at===l)return P;if(ae.lookahead===0)break}ae.strstart+=ae.lookahead,ae.lookahead=0;var J=ae.block_start+he;if((ae.strstart===0||ae.strstart>=J)&&(ae.lookahead=ae.strstart-J,ae.strstart=J,G(ae,!1),ae.strm.avail_out===0))return P;if(ae.strstart-ae.block_start>=ae.w_size-R&&(G(ae,!1),ae.strm.avail_out===0))return P}return ae.insert=0,at===r?(G(ae,!0),ae.strm.avail_out===0?F:j):(ae.strstart>ae.block_start&&(G(ae,!1),ae.strm.avail_out),P)}),new Me(4,4,8,4,we),new Me(4,5,16,8,we),new Me(4,6,32,32,we),new Me(4,4,16,16,Ie),new Me(8,16,32,32,Ie),new Me(8,16,128,128,Ie),new Me(8,32,128,256,Ie),new Me(32,128,258,1024,Ie),new Me(32,258,258,4096,Ie)],d.deflateInit=function(ae,at){return Fe(ae,at,b,15,8,0)},d.deflateInit2=Fe,d.deflateReset=ut,d.deflateResetKeep=Ve,d.deflateSetHeader=function(ae,at){return ae&&ae.state?ae.state.wrap!==2?c:(ae.state.gzhead=at,a):c},d.deflate=function(ae,at){var he,J,Y,$;if(!ae||!ae.state||5<at||at<0)return ae?K(ae,c):c;if(J=ae.state,!ae.output||!ae.input&&ae.avail_in!==0||J.status===666&&at!==r)return K(ae,ae.avail_out===0?-5:c);if(J.strm=ae,he=J.last_flush,J.last_flush=at,J.status===M)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=s(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 de=b+(J.w_bits-8<<4)<<8;de|=(2<=J.strategy||J.level<2?0:J.level<6?1:J.level===6?2:3)<<6,J.strstart!==0&&(de|=32),de+=31-de%31,J.status=B,q(J,de),J.strstart!==0&&(q(J,ae.adler>>>16),q(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=s(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=s(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=s(ae.adler,J.pending_buf,J.pending-Y,Y)),Q(ae),Y=J.pending,J.pending===J.pending_buf_size)){$=1;break}$=J.gzindex<J.gzhead.name.length?255&J.gzhead.name.charCodeAt(J.gzindex++):0,te(J,$)}while($!==0);J.gzhead.hcrc&&J.pending>Y&&(ae.adler=s(ae.adler,J.pending_buf,J.pending-Y,Y)),$===0&&(J.gzindex=0,J.status=91)}else J.status=91;if(J.status===91)if(J.gzhead.comment){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(ae.adler=s(ae.adler,J.pending_buf,J.pending-Y,Y)),Q(ae),Y=J.pending,J.pending===J.pending_buf_size)){$=1;break}$=J.gzindex<J.gzhead.comment.length?255&J.gzhead.comment.charCodeAt(J.gzindex++):0,te(J,$)}while($!==0);J.gzhead.hcrc&&J.pending>Y&&(ae.adler=s(ae.adler,J.pending_buf,J.pending-Y,Y)),$===0&&(J.status=103)}else J.status=103;if(J.status===103&&(J.gzhead.hcrc?(J.pending+2>J.pending_buf_size&&Q(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,a}else if(ae.avail_in===0&&z(at)<=z(he)&&at!==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||at!==l&&J.status!==666){var be=J.strategy===2?function(Ce,Be){for(var fe;;){if(Ce.lookahead===0&&(re(Ce),Ce.lookahead===0)){if(Be===l)return P;break}if(Ce.match_length=0,fe=i._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++,fe&&(G(Ce,!1),Ce.strm.avail_out===0))return P}return Ce.insert=0,Be===r?(G(Ce,!0),Ce.strm.avail_out===0?F:j):Ce.last_lit&&(G(Ce,!1),Ce.strm.avail_out===0)?P:X}(J,at):J.strategy===3?function(Ce,Be){for(var fe,Se,ke,rt,xt=Ce.window;;){if(Ce.lookahead<=I){if(re(Ce),Ce.lookahead<=I&&Be===l)return P;if(Ce.lookahead===0)break}if(Ce.match_length=0,Ce.lookahead>=O&&0<Ce.strstart&&(Se=xt[ke=Ce.strstart-1])===xt[++ke]&&Se===xt[++ke]&&Se===xt[++ke]){rt=Ce.strstart+I;do;while(Se===xt[++ke]&&Se===xt[++ke]&&Se===xt[++ke]&&Se===xt[++ke]&&Se===xt[++ke]&&Se===xt[++ke]&&Se===xt[++ke]&&Se===xt[++ke]&&ke<rt);Ce.match_length=I-(rt-ke),Ce.match_length>Ce.lookahead&&(Ce.match_length=Ce.lookahead)}if(Ce.match_length>=O?(fe=i._tr_tally(Ce,1,Ce.match_length-O),Ce.lookahead-=Ce.match_length,Ce.strstart+=Ce.match_length,Ce.match_length=0):(fe=i._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++),fe&&(G(Ce,!1),Ce.strm.avail_out===0))return P}return Ce.insert=0,Be===r?(G(Ce,!0),Ce.strm.avail_out===0?F:j):Ce.last_lit&&(G(Ce,!1),Ce.strm.avail_out===0)?P:X}(J,at):u[J.level].func(J,at);if(be!==F&&be!==j||(J.status=666),be===P||be===F)return ae.avail_out===0&&(J.last_flush=-1),a;if(be===X&&(at===1?i._tr_align(J):at!==5&&(i._tr_stored_block(J,0,0,!1),at===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,a}return at!==r?a: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)):(q(J,ae.adler>>>16),q(J,65535&ae.adler)),Q(ae),0<J.wrap&&(J.wrap=-J.wrap),J.pending!==0?a:1)},d.deflateEnd=function(ae){var at;return ae&&ae.state?(at=ae.state.status)!==M&&at!==69&&at!==73&&at!==91&&at!==103&&at!==B&&at!==666?K(ae,c):(ae.state=null,at===B?K(ae,-3):a):c},d.deflateSetDictionary=function(ae,at){var he,J,Y,$,de,be,Ce,Be,fe=at.length;if(!ae||!ae.state)return c;if(($=(he=ae.state).wrap)===2||$===1&&he.status!==M||he.lookahead)return c;for($===1&&(ae.adler=t(ae.adler,at,fe,0)),he.wrap=0,fe>=he.w_size&&($===0&&(V(he.head),he.strstart=0,he.block_start=0,he.insert=0),Be=new o.Buf8(he.w_size),o.arraySet(Be,at,fe-he.w_size,he.w_size,0),at=Be,fe=he.w_size),de=ae.avail_in,be=ae.next_in,Ce=ae.input,ae.avail_in=fe,ae.next_in=0,ae.input=at,re(he);he.lookahead>=O;){for(J=he.strstart,Y=he.lookahead-(O-1);he.ins_h=(he.ins_h<<he.hash_shift^he.window[J+O-1])&he.hash_mask,he.prev[J&he.w_mask]=he.head[he.ins_h],he.head[he.ins_h]=J,J++,--Y;);he.strstart=J,he.lookahead=O-1,re(he)}return he.strstart+=he.lookahead,he.block_start=he.strstart,he.insert=he.lookahead,he.lookahead=0,he.match_length=he.prev_length=O-1,he.match_available=0,ae.next_in=be,ae.input=Ce,ae.avail_in=de,he.wrap=$,a},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(u,o){var i,t,s,e,l,r,a,c,h,g,A,b,S,E,C,_,T,w,O,I,R,M,B,P,X;i=u.state,t=u.next_in,P=u.input,s=t+(u.avail_in-5),e=u.next_out,X=u.output,l=e-(o-u.avail_out),r=e+(u.avail_out-257),a=i.dmax,c=i.wsize,h=i.whave,g=i.wnext,A=i.window,b=i.hold,S=i.bits,E=i.lencode,C=i.distcode,_=(1<<i.lenbits)-1,T=(1<<i.distbits)-1;e:do{S<15&&(b+=P[t++]<<S,S+=8,b+=P[t++]<<S,S+=8),w=E[b&_];t:for(;;){if(b>>>=O=w>>>24,S-=O,(O=w>>>16&255)===0)X[e++]=65535&w;else{if(!(16&O)){if((64&O)==0){w=E[(65535&w)+(b&(1<<O)-1)];continue t}if(32&O){i.mode=12;break e}u.msg="invalid literal/length code",i.mode=30;break e}I=65535&w,(O&=15)&&(S<O&&(b+=P[t++]<<S,S+=8),I+=b&(1<<O)-1,b>>>=O,S-=O),S<15&&(b+=P[t++]<<S,S+=8,b+=P[t++]<<S,S+=8),w=C[b&T];r:for(;;){if(b>>>=O=w>>>24,S-=O,!(16&(O=w>>>16&255))){if((64&O)==0){w=C[(65535&w)+(b&(1<<O)-1)];continue r}u.msg="invalid distance code",i.mode=30;break e}if(R=65535&w,S<(O&=15)&&(b+=P[t++]<<S,(S+=8)<O&&(b+=P[t++]<<S,S+=8)),a<(R+=b&(1<<O)-1)){u.msg="invalid distance too far back",i.mode=30;break e}if(b>>>=O,S-=O,(O=e-l)<R){if(h<(O=R-O)&&i.sane){u.msg="invalid distance too far back",i.mode=30;break e}if(B=A,(M=0)===g){if(M+=c-O,O<I){for(I-=O;X[e++]=A[M++],--O;);M=e-R,B=X}}else if(g<O){if(M+=c+g-O,(O-=g)<I){for(I-=O;X[e++]=A[M++],--O;);if(M=0,g<I){for(I-=O=g;X[e++]=A[M++],--O;);M=e-R,B=X}}}else if(M+=g-O,O<I){for(I-=O;X[e++]=A[M++],--O;);M=e-R,B=X}for(;2<I;)X[e++]=B[M++],X[e++]=B[M++],X[e++]=B[M++],I-=3;I&&(X[e++]=B[M++],1<I&&(X[e++]=B[M++]))}else{for(M=e-R;X[e++]=X[M++],X[e++]=X[M++],X[e++]=X[M++],2<(I-=3););I&&(X[e++]=X[M++],1<I&&(X[e++]=X[M++]))}break}}break}}while(t<s&&e<r);t-=I=S>>3,b&=(1<<(S-=I<<3))-1,u.next_in=t,u.next_out=e,u.avail_in=t<s?s-t+5:5-(t-s),u.avail_out=e<r?r-e+257:257-(e-r),i.hold=b,i.bits=S}},{}],49:[function(m,f,d){"use strict";var u=m("../utils/common"),o=m("./adler32"),i=m("./crc32"),t=m("./inffast"),s=m("./inftrees"),e=1,l=2,r=0,a=-2,c=1,h=852,g=592;function A(M){return(M>>>24&255)+(M>>>8&65280)+((65280&M)<<8)+((255&M)<<24)}function b(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function S(M){var B;return M&&M.state?(B=M.state,M.total_in=M.total_out=B.total=0,M.msg="",B.wrap&&(M.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 u.Buf32(h),B.distcode=B.distdyn=new u.Buf32(g),B.sane=1,B.back=-1,r):a}function E(M){var B;return M&&M.state?((B=M.state).wsize=0,B.whave=0,B.wnext=0,S(M)):a}function C(M,B){var P,X;return M&&M.state?(X=M.state,B<0?(P=0,B=-B):(P=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?a:(X.window!==null&&X.wbits!==B&&(X.window=null),X.wrap=P,X.wbits=B,E(M))):a}function _(M,B){var P,X;return M?(X=new b,(M.state=X).window=null,(P=C(M,B))!==r&&(M.state=null),P):a}var T,w,O=!0;function I(M){if(O){var B;for(T=new u.Buf32(512),w=new u.Buf32(32),B=0;B<144;)M.lens[B++]=8;for(;B<256;)M.lens[B++]=9;for(;B<280;)M.lens[B++]=7;for(;B<288;)M.lens[B++]=8;for(s(e,M.lens,0,288,T,0,M.work,{bits:9}),B=0;B<32;)M.lens[B++]=5;s(l,M.lens,0,32,w,0,M.work,{bits:5}),O=!1}M.lencode=T,M.lenbits=9,M.distcode=w,M.distbits=5}function R(M,B,P,X){var F,j=M.state;return j.window===null&&(j.wsize=1<<j.wbits,j.wnext=0,j.whave=0,j.window=new u.Buf8(j.wsize)),X>=j.wsize?(u.arraySet(j.window,B,P-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):(X<(F=j.wsize-j.wnext)&&(F=X),u.arraySet(j.window,B,P-X,F,j.wnext),(X-=F)?(u.arraySet(j.window,B,P-X,X,0),j.wnext=X,j.whave=j.wsize):(j.wnext+=F,j.wnext===j.wsize&&(j.wnext=0),j.whave<j.wsize&&(j.whave+=F))),0}d.inflateReset=E,d.inflateReset2=C,d.inflateResetKeep=S,d.inflateInit=function(M){return _(M,15)},d.inflateInit2=_,d.inflate=function(M,B){var P,X,F,j,K,z,V,Q,G,te,q,le,re,we,Ie,Me,Je,Ve,ut,Fe,ae,at,he,J,Y=0,$=new u.Buf8(4),de=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!M||!M.state||!M.output||!M.input&&M.avail_in!==0)return a;(P=M.state).mode===12&&(P.mode=13),K=M.next_out,F=M.output,V=M.avail_out,j=M.next_in,X=M.input,z=M.avail_in,Q=P.hold,G=P.bits,te=z,q=V,at=r;e:for(;;)switch(P.mode){case c:if(P.wrap===0){P.mode=13;break}for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(2&P.wrap&&Q===35615){$[P.check=0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0),G=Q=0,P.mode=2;break}if(P.flags=0,P.head&&(P.head.done=!1),!(1&P.wrap)||(((255&Q)<<8)+(Q>>8))%31){M.msg="incorrect header check",P.mode=30;break}if((15&Q)!=8){M.msg="unknown compression method",P.mode=30;break}if(G-=4,ae=8+(15&(Q>>>=4)),P.wbits===0)P.wbits=ae;else if(ae>P.wbits){M.msg="invalid window size",P.mode=30;break}P.dmax=1<<ae,M.adler=P.check=1,P.mode=512&Q?10:12,G=Q=0;break;case 2:for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(P.flags=Q,(255&P.flags)!=8){M.msg="unknown compression method",P.mode=30;break}if(57344&P.flags){M.msg="unknown header flags set",P.mode=30;break}P.head&&(P.head.text=Q>>8&1),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0)),G=Q=0,P.mode=3;case 3:for(;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.head&&(P.head.time=Q),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,$[2]=Q>>>16&255,$[3]=Q>>>24&255,P.check=i(P.check,$,4,0)),G=Q=0,P.mode=4;case 4:for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.head&&(P.head.xflags=255&Q,P.head.os=Q>>8),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0)),G=Q=0,P.mode=5;case 5:if(1024&P.flags){for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.length=Q,P.head&&(P.head.extra_len=Q),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0)),G=Q=0}else P.head&&(P.head.extra=null);P.mode=6;case 6:if(1024&P.flags&&(z<(le=P.length)&&(le=z),le&&(P.head&&(ae=P.head.extra_len-P.length,P.head.extra||(P.head.extra=new Array(P.head.extra_len)),u.arraySet(P.head.extra,X,j,le,ae)),512&P.flags&&(P.check=i(P.check,X,le,j)),z-=le,j+=le,P.length-=le),P.length))break e;P.length=0,P.mode=7;case 7:if(2048&P.flags){if(z===0)break e;for(le=0;ae=X[j+le++],P.head&&ae&&P.length<65536&&(P.head.name+=String.fromCharCode(ae)),ae&&le<z;);if(512&P.flags&&(P.check=i(P.check,X,le,j)),z-=le,j+=le,ae)break e}else P.head&&(P.head.name=null);P.length=0,P.mode=8;case 8:if(4096&P.flags){if(z===0)break e;for(le=0;ae=X[j+le++],P.head&&ae&&P.length<65536&&(P.head.comment+=String.fromCharCode(ae)),ae&&le<z;);if(512&P.flags&&(P.check=i(P.check,X,le,j)),z-=le,j+=le,ae)break e}else P.head&&(P.head.comment=null);P.mode=9;case 9:if(512&P.flags){for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Q!==(65535&P.check)){M.msg="header crc mismatch",P.mode=30;break}G=Q=0}P.head&&(P.head.hcrc=P.flags>>9&1,P.head.done=!0),M.adler=P.check=0,P.mode=12;break;case 10:for(;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}M.adler=P.check=A(Q),G=Q=0,P.mode=11;case 11:if(P.havedict===0)return M.next_out=K,M.avail_out=V,M.next_in=j,M.avail_in=z,P.hold=Q,P.bits=G,2;M.adler=P.check=1,P.mode=12;case 12:if(B===5||B===6)break e;case 13:if(P.last){Q>>>=7&G,G-=7&G,P.mode=27;break}for(;G<3;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}switch(P.last=1&Q,G-=1,3&(Q>>>=1)){case 0:P.mode=14;break;case 1:if(I(P),P.mode=20,B!==6)break;Q>>>=2,G-=2;break e;case 2:P.mode=17;break;case 3:M.msg="invalid block type",P.mode=30}Q>>>=2,G-=2;break;case 14:for(Q>>>=7&G,G-=7&G;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if((65535&Q)!=(Q>>>16^65535)){M.msg="invalid stored block lengths",P.mode=30;break}if(P.length=65535&Q,G=Q=0,P.mode=15,B===6)break e;case 15:P.mode=16;case 16:if(le=P.length){if(z<le&&(le=z),V<le&&(le=V),le===0)break e;u.arraySet(F,X,j,le,K),z-=le,j+=le,V-=le,K+=le,P.length-=le;break}P.mode=12;break;case 17:for(;G<14;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(P.nlen=257+(31&Q),Q>>>=5,G-=5,P.ndist=1+(31&Q),Q>>>=5,G-=5,P.ncode=4+(15&Q),Q>>>=4,G-=4,286<P.nlen||30<P.ndist){M.msg="too many length or distance symbols",P.mode=30;break}P.have=0,P.mode=18;case 18:for(;P.have<P.ncode;){for(;G<3;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.lens[de[P.have++]]=7&Q,Q>>>=3,G-=3}for(;P.have<19;)P.lens[de[P.have++]]=0;if(P.lencode=P.lendyn,P.lenbits=7,he={bits:P.lenbits},at=s(0,P.lens,0,19,P.lencode,0,P.work,he),P.lenbits=he.bits,at){M.msg="invalid code lengths set",P.mode=30;break}P.have=0,P.mode=19;case 19:for(;P.have<P.nlen+P.ndist;){for(;Me=(Y=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,Je=65535&Y,!((Ie=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Je<16)Q>>>=Ie,G-=Ie,P.lens[P.have++]=Je;else{if(Je===16){for(J=Ie+2;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Q>>>=Ie,G-=Ie,P.have===0){M.msg="invalid bit length repeat",P.mode=30;break}ae=P.lens[P.have-1],le=3+(3&Q),Q>>>=2,G-=2}else if(Je===17){for(J=Ie+3;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}G-=Ie,ae=0,le=3+(7&(Q>>>=Ie)),Q>>>=3,G-=3}else{for(J=Ie+7;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}G-=Ie,ae=0,le=11+(127&(Q>>>=Ie)),Q>>>=7,G-=7}if(P.have+le>P.nlen+P.ndist){M.msg="invalid bit length repeat",P.mode=30;break}for(;le--;)P.lens[P.have++]=ae}}if(P.mode===30)break;if(P.lens[256]===0){M.msg="invalid code -- missing end-of-block",P.mode=30;break}if(P.lenbits=9,he={bits:P.lenbits},at=s(e,P.lens,0,P.nlen,P.lencode,0,P.work,he),P.lenbits=he.bits,at){M.msg="invalid literal/lengths set",P.mode=30;break}if(P.distbits=6,P.distcode=P.distdyn,he={bits:P.distbits},at=s(l,P.lens,P.nlen,P.ndist,P.distcode,0,P.work,he),P.distbits=he.bits,at){M.msg="invalid distances set",P.mode=30;break}if(P.mode=20,B===6)break e;case 20:P.mode=21;case 21:if(6<=z&&258<=V){M.next_out=K,M.avail_out=V,M.next_in=j,M.avail_in=z,P.hold=Q,P.bits=G,t(M,q),K=M.next_out,F=M.output,V=M.avail_out,j=M.next_in,X=M.input,z=M.avail_in,Q=P.hold,G=P.bits,P.mode===12&&(P.back=-1);break}for(P.back=0;Me=(Y=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,Je=65535&Y,!((Ie=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Me&&(240&Me)==0){for(Ve=Ie,ut=Me,Fe=Je;Me=(Y=P.lencode[Fe+((Q&(1<<Ve+ut)-1)>>Ve)])>>>16&255,Je=65535&Y,!(Ve+(Ie=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}Q>>>=Ve,G-=Ve,P.back+=Ve}if(Q>>>=Ie,G-=Ie,P.back+=Ie,P.length=Je,Me===0){P.mode=26;break}if(32&Me){P.back=-1,P.mode=12;break}if(64&Me){M.msg="invalid literal/length code",P.mode=30;break}P.extra=15&Me,P.mode=22;case 22:if(P.extra){for(J=P.extra;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.length+=Q&(1<<P.extra)-1,Q>>>=P.extra,G-=P.extra,P.back+=P.extra}P.was=P.length,P.mode=23;case 23:for(;Me=(Y=P.distcode[Q&(1<<P.distbits)-1])>>>16&255,Je=65535&Y,!((Ie=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if((240&Me)==0){for(Ve=Ie,ut=Me,Fe=Je;Me=(Y=P.distcode[Fe+((Q&(1<<Ve+ut)-1)>>Ve)])>>>16&255,Je=65535&Y,!(Ve+(Ie=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}Q>>>=Ve,G-=Ve,P.back+=Ve}if(Q>>>=Ie,G-=Ie,P.back+=Ie,64&Me){M.msg="invalid distance code",P.mode=30;break}P.offset=Je,P.extra=15&Me,P.mode=24;case 24:if(P.extra){for(J=P.extra;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.offset+=Q&(1<<P.extra)-1,Q>>>=P.extra,G-=P.extra,P.back+=P.extra}if(P.offset>P.dmax){M.msg="invalid distance too far back",P.mode=30;break}P.mode=25;case 25:if(V===0)break e;if(le=q-V,P.offset>le){if((le=P.offset-le)>P.whave&&P.sane){M.msg="invalid distance too far back",P.mode=30;break}re=le>P.wnext?(le-=P.wnext,P.wsize-le):P.wnext-le,le>P.length&&(le=P.length),we=P.window}else we=F,re=K-P.offset,le=P.length;for(V<le&&(le=V),V-=le,P.length-=le;F[K++]=we[re++],--le;);P.length===0&&(P.mode=21);break;case 26:if(V===0)break e;F[K++]=P.length,V--,P.mode=21;break;case 27:if(P.wrap){for(;G<32;){if(z===0)break e;z--,Q|=X[j++]<<G,G+=8}if(q-=V,M.total_out+=q,P.total+=q,q&&(M.adler=P.check=P.flags?i(P.check,F,q,K-q):o(P.check,F,q,K-q)),q=V,(P.flags?Q:A(Q))!==P.check){M.msg="incorrect data check",P.mode=30;break}G=Q=0}P.mode=28;case 28:if(P.wrap&&P.flags){for(;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Q!==(4294967295&P.total)){M.msg="incorrect length check",P.mode=30;break}G=Q=0}P.mode=29;case 29:at=1;break e;case 30:at=-3;break e;case 31:return-4;case 32:default:return a}return M.next_out=K,M.avail_out=V,M.next_in=j,M.avail_in=z,P.hold=Q,P.bits=G,(P.wsize||q!==M.avail_out&&P.mode<30&&(P.mode<27||B!==4))&&R(M,M.output,M.next_out,q-M.avail_out)?(P.mode=31,-4):(te-=M.avail_in,q-=M.avail_out,M.total_in+=te,M.total_out+=q,P.total+=q,P.wrap&&q&&(M.adler=P.check=P.flags?i(P.check,F,q,M.next_out-q):o(P.check,F,q,M.next_out-q)),M.data_type=P.bits+(P.last?64:0)+(P.mode===12?128:0)+(P.mode===20||P.mode===15?256:0),(te==0&&q===0||B===4)&&at===r&&(at=-5),at)},d.inflateEnd=function(M){if(!M||!M.state)return a;var B=M.state;return B.window&&(B.window=null),M.state=null,r},d.inflateGetHeader=function(M,B){var P;return M&&M.state?(2&(P=M.state).wrap)==0?a:((P.head=B).done=!1,r):a},d.inflateSetDictionary=function(M,B){var P,X=B.length;return M&&M.state?(P=M.state).wrap!==0&&P.mode!==11?a:P.mode===11&&o(1,B,X,0)!==P.check?-3:R(M,B,X,X)?(P.mode=31,-4):(P.havedict=1,r):a},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 u=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],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],t=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];f.exports=function(e,l,r,a,c,h,g,A){var b,S,E,C,_,T,w,O,I,R=A.bits,M=0,B=0,P=0,X=0,F=0,j=0,K=0,z=0,V=0,Q=0,G=null,te=0,q=new u.Buf16(16),le=new u.Buf16(16),re=null,we=0;for(M=0;M<=15;M++)q[M]=0;for(B=0;B<a;B++)q[l[r+B]]++;for(F=R,X=15;1<=X&&q[X]===0;X--);if(X<F&&(F=X),X===0)return c[h++]=20971520,c[h++]=20971520,A.bits=1,0;for(P=1;P<X&&q[P]===0;P++);for(F<P&&(F=P),M=z=1;M<=15;M++)if(z<<=1,(z-=q[M])<0)return-1;if(0<z&&(e===0||X!==1))return-1;for(le[1]=0,M=1;M<15;M++)le[M+1]=le[M]+q[M];for(B=0;B<a;B++)l[r+B]!==0&&(g[le[l[r+B]]++]=B);if(T=e===0?(G=re=g,19):e===1?(G=o,te-=257,re=i,we-=257,256):(G=t,re=s,-1),M=P,_=h,K=B=Q=0,E=-1,C=(V=1<<(j=F))-1,e===1&&852<V||e===2&&592<V)return 1;for(;;){for(w=M-K,I=g[B]<T?(O=0,g[B]):g[B]>T?(O=re[we+g[B]],G[te+g[B]]):(O=96,0),b=1<<M-K,P=S=1<<j;c[_+(Q>>K)+(S-=b)]=w<<24|O<<16|I|0,S!==0;);for(b=1<<M-1;Q&b;)b>>=1;if(b!==0?(Q&=b-1,Q+=b):Q=0,B++,--q[M]==0){if(M===X)break;M=l[r+g[B]]}if(F<M&&(Q&C)!==E){for(K===0&&(K=F),_+=P,z=1<<(j=M-K);j+K<X&&!((z-=q[j+K])<=0);)j++,z<<=1;if(V+=1<<j,e===1&&852<V||e===2&&592<V)return 1;c[E=Q&C]=F<<24|j<<16|_-h|0}}return Q!==0&&(c[_+Q]=M-K<<24|64<<16|0),A.bits=F,0}},{"../utils/common":41}],51:[function(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 u=m("../utils/common"),o=0,i=1;function t(Y){for(var $=Y.length;0<=--$;)Y[$]=0}var s=0,e=29,l=256,r=l+1+e,a=30,c=19,h=2*r+1,g=15,A=16,b=7,S=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],w=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],R=new Array(2*(r+2));t(R);var M=new Array(2*a);t(M);var B=new Array(512);t(B);var P=new Array(256);t(P);var X=new Array(e);t(X);var F,j,K,z=new Array(a);function V(Y,$,de,be,Ce){this.static_tree=Y,this.extra_bits=$,this.extra_base=de,this.elems=be,this.max_length=Ce,this.has_stree=Y&&Y.length}function Q(Y,$){this.dyn_tree=Y,this.max_code=0,this.stat_desc=$}function G(Y){return Y<256?B[Y]:B[256+(Y>>>7)]}function te(Y,$){Y.pending_buf[Y.pending++]=255&$,Y.pending_buf[Y.pending++]=$>>>8&255}function q(Y,$,de){Y.bi_valid>A-de?(Y.bi_buf|=$<<Y.bi_valid&65535,te(Y,Y.bi_buf),Y.bi_buf=$>>A-Y.bi_valid,Y.bi_valid+=de-A):(Y.bi_buf|=$<<Y.bi_valid&65535,Y.bi_valid+=de)}function le(Y,$,de){q(Y,de[2*$],de[2*$+1])}function re(Y,$){for(var de=0;de|=1&Y,Y>>>=1,de<<=1,0<--$;);return de>>>1}function we(Y,$,de){var be,Ce,Be=new Array(g+1),fe=0;for(be=1;be<=g;be++)Be[be]=fe=fe+de[be-1]<<1;for(Ce=0;Ce<=$;Ce++){var Se=Y[2*Ce+1];Se!==0&&(Y[2*Ce]=re(Be[Se]++,Se))}}function Ie(Y){var $;for($=0;$<r;$++)Y.dyn_ltree[2*$]=0;for($=0;$<a;$++)Y.dyn_dtree[2*$]=0;for($=0;$<c;$++)Y.bl_tree[2*$]=0;Y.dyn_ltree[2*S]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function Me(Y){8<Y.bi_valid?te(Y,Y.bi_buf):0<Y.bi_valid&&(Y.pending_buf[Y.pending++]=Y.bi_buf),Y.bi_buf=0,Y.bi_valid=0}function Je(Y,$,de,be){var Ce=2*$,Be=2*de;return Y[Ce]<Y[Be]||Y[Ce]===Y[Be]&&be[$]<=be[de]}function Ve(Y,$,de){for(var be=Y.heap[de],Ce=de<<1;Ce<=Y.heap_len&&(Ce<Y.heap_len&&Je($,Y.heap[Ce+1],Y.heap[Ce],Y.depth)&&Ce++,!Je($,be,Y.heap[Ce],Y.depth));)Y.heap[de]=Y.heap[Ce],de=Ce,Ce<<=1;Y.heap[de]=be}function ut(Y,$,de){var be,Ce,Be,fe,Se=0;if(Y.last_lit!==0)for(;be=Y.pending_buf[Y.d_buf+2*Se]<<8|Y.pending_buf[Y.d_buf+2*Se+1],Ce=Y.pending_buf[Y.l_buf+Se],Se++,be===0?le(Y,Ce,$):(le(Y,(Be=P[Ce])+l+1,$),(fe=T[Be])!==0&&q(Y,Ce-=X[Be],fe),le(Y,Be=G(--be),de),(fe=w[Be])!==0&&q(Y,be-=z[Be],fe)),Se<Y.last_lit;);le(Y,S,$)}function Fe(Y,$){var de,be,Ce,Be=$.dyn_tree,fe=$.stat_desc.static_tree,Se=$.stat_desc.has_stree,ke=$.stat_desc.elems,rt=-1;for(Y.heap_len=0,Y.heap_max=h,de=0;de<ke;de++)Be[2*de]!==0?(Y.heap[++Y.heap_len]=rt=de,Y.depth[de]=0):Be[2*de+1]=0;for(;Y.heap_len<2;)Be[2*(Ce=Y.heap[++Y.heap_len]=rt<2?++rt:0)]=1,Y.depth[Ce]=0,Y.opt_len--,Se&&(Y.static_len-=fe[2*Ce+1]);for($.max_code=rt,de=Y.heap_len>>1;1<=de;de--)Ve(Y,Be,de);for(Ce=ke;de=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],Ve(Y,Be,1),be=Y.heap[1],Y.heap[--Y.heap_max]=de,Y.heap[--Y.heap_max]=be,Be[2*Ce]=Be[2*de]+Be[2*be],Y.depth[Ce]=(Y.depth[de]>=Y.depth[be]?Y.depth[de]:Y.depth[be])+1,Be[2*de+1]=Be[2*be+1]=Ce,Y.heap[1]=Ce++,Ve(Y,Be,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(xt,ht){var He,ir,ct,Xt,hr,Jt,Pt=ht.dyn_tree,Wt=ht.max_code,Ge=ht.stat_desc.static_tree,pe=ht.stat_desc.has_stree,se=ht.stat_desc.extra_bits,lt=ht.stat_desc.extra_base,qe=ht.stat_desc.max_length,me=0;for(Xt=0;Xt<=g;Xt++)xt.bl_count[Xt]=0;for(Pt[2*xt.heap[xt.heap_max]+1]=0,He=xt.heap_max+1;He<h;He++)qe<(Xt=Pt[2*Pt[2*(ir=xt.heap[He])+1]+1]+1)&&(Xt=qe,me++),Pt[2*ir+1]=Xt,Wt<ir||(xt.bl_count[Xt]++,hr=0,lt<=ir&&(hr=se[ir-lt]),Jt=Pt[2*ir],xt.opt_len+=Jt*(Xt+hr),pe&&(xt.static_len+=Jt*(Ge[2*ir+1]+hr)));if(me!==0){do{for(Xt=qe-1;xt.bl_count[Xt]===0;)Xt--;xt.bl_count[Xt]--,xt.bl_count[Xt+1]+=2,xt.bl_count[qe]--,me-=2}while(0<me);for(Xt=qe;Xt!==0;Xt--)for(ir=xt.bl_count[Xt];ir!==0;)Wt<(ct=xt.heap[--He])||(Pt[2*ct+1]!==Xt&&(xt.opt_len+=(Xt-Pt[2*ct+1])*Pt[2*ct],Pt[2*ct+1]=Xt),ir--)}}(Y,$),we(Be,rt,Y.bl_count)}function ae(Y,$,de){var be,Ce,Be=-1,fe=$[1],Se=0,ke=7,rt=4;for(fe===0&&(ke=138,rt=3),$[2*(de+1)+1]=65535,be=0;be<=de;be++)Ce=fe,fe=$[2*(be+1)+1],++Se<ke&&Ce===fe||(Se<rt?Y.bl_tree[2*Ce]+=Se:Ce!==0?(Ce!==Be&&Y.bl_tree[2*Ce]++,Y.bl_tree[2*E]++):Se<=10?Y.bl_tree[2*C]++:Y.bl_tree[2*_]++,Be=Ce,rt=(Se=0)===fe?(ke=138,3):Ce===fe?(ke=6,3):(ke=7,4))}function at(Y,$,de){var be,Ce,Be=-1,fe=$[1],Se=0,ke=7,rt=4;for(fe===0&&(ke=138,rt=3),be=0;be<=de;be++)if(Ce=fe,fe=$[2*(be+1)+1],!(++Se<ke&&Ce===fe)){if(Se<rt)for(;le(Y,Ce,Y.bl_tree),--Se!=0;);else Ce!==0?(Ce!==Be&&(le(Y,Ce,Y.bl_tree),Se--),le(Y,E,Y.bl_tree),q(Y,Se-3,2)):Se<=10?(le(Y,C,Y.bl_tree),q(Y,Se-3,3)):(le(Y,_,Y.bl_tree),q(Y,Se-11,7));Be=Ce,rt=(Se=0)===fe?(ke=138,3):Ce===fe?(ke=6,3):(ke=7,4)}}t(z);var he=!1;function J(Y,$,de,be){q(Y,(s<<1)+(be?1:0),3),function(Ce,Be,fe,Se){Me(Ce),Se&&(te(Ce,fe),te(Ce,~fe)),u.arraySet(Ce.pending_buf,Ce.window,Be,fe,Ce.pending),Ce.pending+=fe}(Y,$,de,!0)}d._tr_init=function(Y){he||(function(){var $,de,be,Ce,Be,fe=new Array(g+1);for(Ce=be=0;Ce<e-1;Ce++)for(X[Ce]=be,$=0;$<1<<T[Ce];$++)P[be++]=Ce;for(P[be-1]=Ce,Ce=Be=0;Ce<16;Ce++)for(z[Ce]=Be,$=0;$<1<<w[Ce];$++)B[Be++]=Ce;for(Be>>=7;Ce<a;Ce++)for(z[Ce]=Be<<7,$=0;$<1<<w[Ce]-7;$++)B[256+Be++]=Ce;for(de=0;de<=g;de++)fe[de]=0;for($=0;$<=143;)R[2*$+1]=8,$++,fe[8]++;for(;$<=255;)R[2*$+1]=9,$++,fe[9]++;for(;$<=279;)R[2*$+1]=7,$++,fe[7]++;for(;$<=287;)R[2*$+1]=8,$++,fe[8]++;for(we(R,r+1,fe),$=0;$<a;$++)M[2*$+1]=5,M[2*$]=re($,5);F=new V(R,T,l+1,r,g),j=new V(M,w,0,a,g),K=new V(new Array(0),O,0,c,b)}(),he=!0),Y.l_desc=new Q(Y.dyn_ltree,F),Y.d_desc=new Q(Y.dyn_dtree,j),Y.bl_desc=new Q(Y.bl_tree,K),Y.bi_buf=0,Y.bi_valid=0,Ie(Y)},d._tr_stored_block=J,d._tr_flush_block=function(Y,$,de,be){var Ce,Be,fe=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(Se){var ke,rt=4093624447;for(ke=0;ke<=31;ke++,rt>>>=1)if(1&rt&&Se.dyn_ltree[2*ke]!==0)return o;if(Se.dyn_ltree[18]!==0||Se.dyn_ltree[20]!==0||Se.dyn_ltree[26]!==0)return i;for(ke=32;ke<l;ke++)if(Se.dyn_ltree[2*ke]!==0)return i;return o}(Y)),Fe(Y,Y.l_desc),Fe(Y,Y.d_desc),fe=function(Se){var ke;for(ae(Se,Se.dyn_ltree,Se.l_desc.max_code),ae(Se,Se.dyn_dtree,Se.d_desc.max_code),Fe(Se,Se.bl_desc),ke=c-1;3<=ke&&Se.bl_tree[2*I[ke]+1]===0;ke--);return Se.opt_len+=3*(ke+1)+5+5+4,ke}(Y),Ce=Y.opt_len+3+7>>>3,(Be=Y.static_len+3+7>>>3)<=Ce&&(Ce=Be)):Ce=Be=de+5,de+4<=Ce&&$!==-1?J(Y,$,de,be):Y.strategy===4||Be===Ce?(q(Y,2+(be?1:0),3),ut(Y,R,M)):(q(Y,4+(be?1:0),3),function(Se,ke,rt,xt){var ht;for(q(Se,ke-257,5),q(Se,rt-1,5),q(Se,xt-4,4),ht=0;ht<xt;ht++)q(Se,Se.bl_tree[2*I[ht]+1],3);at(Se,Se.dyn_ltree,ke-1),at(Se,Se.dyn_dtree,rt-1)}(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,fe+1),ut(Y,Y.dyn_ltree,Y.dyn_dtree)),Ie(Y),be&&Me(Y)},d._tr_tally=function(Y,$,de){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=$>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&$,Y.pending_buf[Y.l_buf+Y.last_lit]=255&de,Y.last_lit++,$===0?Y.dyn_ltree[2*de]++:(Y.matches++,$--,Y.dyn_ltree[2*(P[de]+l+1)]++,Y.dyn_dtree[2*G($)]++),Y.last_lit===Y.lit_bufsize-1},d._tr_align=function(Y){q(Y,2,3),le(Y,S,R),function($){$.bi_valid===16?(te($,$.bi_buf),$.bi_buf=0,$.bi_valid=0):8<=$.bi_valid&&($.pending_buf[$.pending++]=255&$.bi_buf,$.bi_buf>>=8,$.bi_valid-=8)}(Y)}},{"../utils/common":41}],53:[function(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(u){!function(o,i){"use strict";if(!o.setImmediate){var t,s,e,l,r=1,a={},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}}()?(l="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",S,!1):o.attachEvent("onmessage",S),function(E){o.postMessage(l+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")?(s=h.documentElement,function(E){var C=h.createElement("script");C.onreadystatechange=function(){b(E),C.onreadystatechange=null,s.removeChild(C),C=null},s.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 a[r]=T,t(r),r++},g.clearImmediate=A}function A(E){delete a[E]}function b(E){if(c)setTimeout(b,0,E);else{var C=a[E];if(C){c=!0;try{!function(_){var T=_.callback,w=_.args;switch(w.length){case 0:T();break;case 1:T(w[0]);break;case 2:T(w[0],w[1]);break;case 3:T(w[0],w[1],w[2]);break;default:T.apply(i,w)}}(C)}finally{A(E),c=!1}}}}function S(E){E.source===o&&typeof E.data=="string"&&E.data.indexOf(l)===0&&b(+E.data.slice(l.length))}}(typeof self=="undefined"?u===void 0?this:u:self)}).call(this,typeof p!="undefined"?p:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}).call(this,n("HDXh").Buffer,n("yLpj"),n("Q2Ig"))},xRUu:function(k,D,n){n("hJvP"),n("hFmY"),n("sAZ8")},xSIq:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};D.default=y},xSat:function(k,D){var n={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&&!n[m.mainType]&&f&&f.model!==v}D.onIrrelevantElement=y},xTNl:function(k,D){var n=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],y={color:n,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],n]};k.exports=y},xYSL:function(k,D){function n(y,p){return y.has(p)}k.exports=n},xb2K:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("5yev")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="RedoOutlined";var i=v.forwardRef(o);D.default=i},xiyX:function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("nkfE"),v=n("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,i){return i.type||(i.data?"category":"value")}y.merge(m.prototype,v),x("single",m,d,f);var u=m;k.exports=u},xlC8:function(k,D,n){"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,u=0;v!==0;){u=v>2e3?2e3:v,v-=u;do f=f+x[m++]|0,d=d+f|0;while(--u);f%=65521,d%=65521}return f|d<<16|0}},xvlK:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="PlusOutlined";var d=D.a=p.forwardRef(f)},xzDV:function(k,D,n){},"y+Vt":function(k,D,n){var y=n("Gev7"),p=n("bYtY"),x=n("IMiH"),v=n("2DNl"),m=n("3C/r"),f=m.prototype.getCanvasPattern,d=Math.abs,u=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(s,e){var l=this.style,r=this.path||u,a=l.hasStroke(),c=l.hasFill(),h=l.fill,g=l.stroke,A=c&&!!h.colorStops,b=a&&!!g.colorStops,S=c&&!!h.image,E=a&&!!g.image;if(l.bind(s,this,e),this.setTransform(s),this.__dirty){var C;A&&(C=C||this.getBoundingRect(),this._fillGradient=l.getGradient(s,h,C)),b&&(C=C||this.getBoundingRect(),this._strokeGradient=l.getGradient(s,g,C))}A?s.fillStyle=this._fillGradient:S&&(s.fillStyle=f.call(h,s)),b?s.strokeStyle=this._strokeGradient:E&&(s.strokeStyle=f.call(g,s));var _=l.lineDash,T=l.lineDashOffset,w=!!s.setLineDash,O=this.getGlobalScale();if(r.setScale(O[0],O[1],this.segmentIgnoreThreshold),this.__dirtyPath||_&&!w&&a?(r.beginPath(s),_&&!w&&(r.setLineDash(_),r.setLineDashOffset(T)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(s.beginPath(),this.path.rebuildPath(s)),c)if(l.fillOpacity!=null){var I=s.globalAlpha;s.globalAlpha=l.fillOpacity*l.opacity,r.fill(s),s.globalAlpha=I}else r.fill(s);if(_&&w&&(s.setLineDash(_),s.lineDashOffset=T),a)if(l.strokeOpacity!=null){var I=s.globalAlpha;s.globalAlpha=l.strokeOpacity*l.opacity,r.stroke(s),s.globalAlpha=I}else r.stroke(s);_&&w&&s.setLineDash([]),l.text!=null&&(this.restoreTransform(s),this.drawRectText(s,this.getBoundingRect()))},buildPath:function(s,e,l){},createPathProxy:function(){this.path=new x},getBoundingRect:function(){var s=this._rect,e=this.style,l=!s;if(l){var r=this.path;r||(r=this.path=new x),this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),s=r.getBoundingRect()}if(this._rect=s,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=s.clone());if(this.__dirty||l){a.copy(s);var c=e.lineWidth,h=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(c=Math.max(c,this.strokeContainThreshold||4)),h>1e-10&&(a.width+=c/h,a.height+=c/h,a.x-=c/h/2,a.y-=c/h/2)}return a}return s},contain:function(s,e){var l=this.transformCoordToLocal(s,e),r=this.getBoundingRect(),a=this.style;if(s=l[0],e=l[1],r.contain(s,e)){var c=this.path.data;if(a.hasStroke()){var h=a.lineWidth,g=a.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(a.hasFill()||(h=Math.max(h,this.strokeContainThreshold)),v.containStroke(c,h/g,s,e)))return!0}if(a.hasFill())return v.contain(c,s,e)}return!1},dirty:function(s){s==null&&(s=!0),s&&(this.__dirtyPath=s,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(s){return this.animate("shape",s)},attrKV:function(s,e){s==="shape"?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):y.prototype.attrKV.call(this,s,e)},setShape:function(s,e){var l=this.shape;if(l){if(p.isObject(s))for(var r in s)s.hasOwnProperty(r)&&(l[r]=s[r]);else l[s]=e;this.dirty(!0)}return this},getLineScale:function(){var s=this.transform;return s&&d(s[0]-1)>1e-10&&d(s[3]-1)>1e-10?Math.sqrt(d(s[0]*s[3]-s[2]*s[1])):1}},o.extend=function(t){var s=function(r){o.call(this,r),t.style&&this.style.extendFrom(t.style,!1);var a=t.shape;if(a){this.shape=this.shape||{};var c=this.shape;for(var h in a)!c.hasOwnProperty(h)&&a.hasOwnProperty(h)&&(c[h]=a[h])}t.init&&t.init.call(this,r)};p.inherits(s,o);for(var e in t)e!=="style"&&e!=="shape"&&(s.prototype[e]=t[e]);return s},p.inherits(o,y);var i=o;k.exports=i},"y+lR":function(k,D,n){var y=n("bYtY"),p=n("mFDi"),x=n("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"),u=this.getAxis("y");return d.contain(d.toLocalCoord(f[0]))&&u.contain(u.toLocalCoord(f[1]))},containData:function(f){return this.getAxis("x").containData(f[0])&&this.getAxis("y").containData(f[1])},dataToPoint:function(f,d,u){var o=this.getAxis("x"),i=this.getAxis("y");return u=u||[],u[0]=o.toGlobalCoord(o.dataToCoord(f[0])),u[1]=i.toGlobalCoord(i.dataToCoord(f[1])),u},clampData:function(f,d){var u=this.getAxis("x").scale,o=this.getAxis("y").scale,i=u.getExtent(),t=o.getExtent(),s=u.parse(f[0]),e=o.parse(f[1]);return d=d||[],d[0]=Math.min(Math.max(Math.min(i[0],i[1]),s),Math.max(i[0],i[1])),d[1]=Math.min(Math.max(Math.min(t[0],t[1]),e),Math.max(t[0],t[1])),d},pointToData:function(f,d){var u=this.getAxis("x"),o=this.getAxis("y");return d=d||[],d[0]=u.coordToData(u.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(),u=Math.min(f[0],f[1]),o=Math.min(d[0],d[1]),i=Math.max(f[0],f[1])-u,t=Math.max(d[0],d[1])-o,s=new p(u,o,i,t);return s}},y.inherits(v,x);var m=v;k.exports=m},"y0+3":function(k,D,n){"use strict";n.d(D,"a",function(){return t}),n.d(D,"b",function(){return e});var y=/margin|padding|width|height|max|min|offset/,p={left:!0,top:!0},x={cssFloat:1,styleFloat:1,float:1};function v(l){return l.nodeType===1?l.ownerDocument.defaultView.getComputedStyle(l,null):{}}function m(l,r,a){if(r=r.toLowerCase(),a==="auto"){if(r==="height")return l.offsetHeight;if(r==="width")return l.offsetWidth}return r in p||(p[r]=y.test(r)),p[r]?parseFloat(a)||0:a}function f(l,r){var a=arguments.length,c=v(l);return r=x[r]?"cssFloat"in l.style?"cssFloat":"styleFloat":r,a===1?c:m(l,r,c[r]||l.style[r])}function d(l,r,a){var c=arguments.length;if(r=x[r]?"cssFloat"in l.style?"cssFloat":"styleFloat":r,c===3)return typeof a=="number"&&y.test(r)&&(a="".concat(a,"px")),l.style[r]=a,a;for(var h in r)r.hasOwnProperty(h)&&d(l,h,r[h]);return v(l)}function u(l){return l===document.body?document.documentElement.clientWidth:l.offsetWidth}function o(l){return l===document.body?window.innerHeight||document.documentElement.clientHeight:l.offsetHeight}function i(){var l=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:l,height:r}}function t(){var l=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:l,height:r}}function s(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function e(l){var r=l.getBoundingClientRect(),a=document.documentElement;return{left:r.left+(window.pageXOffset||a.scrollLeft)-(a.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||a.scrollTop)-(a.clientTop||document.body.clientTop||0)}}},y1pI:function(k,D,n){var y=n("ljhN");function p(x,v){for(var m=x.length;m--;)if(y(x[m][0],v))return m;return-1}k.exports=p},y23F:function(k,D){function n(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}n.prototype={constructor:n,_dragStart:function(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,u=f-this._x,o=d-this._y;this._x=f,this._y=d,m.drift(u,o,v),this.dispatchToElement(y(m,v),"drag",v.event);var i=this.findHover(f,d,m).target,t=this._dropTarget;this._dropTarget=i,m!==i&&(t&&i!==t&&this.dispatchToElement(y(t,v),"dragleave",v.event),i&&i!==t&&this.dispatchToElement(y(i,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=n;k.exports=p},y2l5:function(k,D,n){var y=n("MwEJ"),p=n("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}});k.exports=x},y3Kf:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="UpOutlined";var d=D.a=p.forwardRef(f)},y3NT:function(k,D,n){var y=n("OELB"),p=y.parsePercent,x=n("bYtY"),v=Math.PI/180;function m(u,o,i,t){o.eachSeriesByType(u,function(s){var e=s.get("center"),l=s.get("radius");x.isArray(l)||(l=[0,l]),x.isArray(e)||(e=[e,e]);var r=i.getWidth(),a=i.getHeight(),c=Math.min(r,a),h=p(e[0],r),g=p(e[1],a),A=p(l[0],c/2),b=p(l[1],c/2),S=-s.get("startAngle")*v,E=s.get("minAngle")*v,C=s.getData().tree.root,_=s.getViewRoot(),T=_.depth,w=s.get("sort");w!=null&&f(_,w);var O=0;x.each(_.children,function(G){!isNaN(G.getValue())&&O++});var I=_.getValue(),R=Math.PI/(I||O)*2,M=_.depth>0,B=_.height-(M?-1:1),P=(b-A)/(B||1),X=s.get("clockwise"),F=s.get("stillShowZeroSum"),j=X?1:-1,K=function(G,te){if(!G)return;var q=te;if(G!==C){var le=G.getValue(),re=I===0&&F?R:le*R;re<E&&(re=E),q=te+j*re;var we=G.depth-T-(M?-1:1),Ie=A+P*we,Me=A+P*(we+1),Je=G.getModel();Je.get("r0")!=null&&(Ie=p(Je.get("r0"),c/2)),Je.get("r")!=null&&(Me=p(Je.get("r"),c/2)),G.setLayout({angle:re,startAngle:te,endAngle:q,clockwise:X,cx:h,cy:g,r0:Ie,r:Me})}if(G.children&&G.children.length){var Ve=0;x.each(G.children,function(ut){Ve+=K(ut,te+Ve)})}return q-te};if(M){var z=A,V=A+P,Q=Math.PI*2;C.setLayout({angle:Q,startAngle:S,endAngle:S+Q,clockwise:X,cx:h,cy:g,r0:z,r:V})}K(_,S)})}function f(u,o){var i=u.children||[];u.children=d(i,o),i.length&&x.each(u.children,function(t){f(t,o)})}function d(u,o){if(typeof o=="function")return u.sort(o);var i=o==="asc";return u.sort(function(t,s){var e=(t.getValue()-s.getValue())*(i?1:-1);return e===0?(t.dataIndex-s.dataIndex)*(i?-1:1):e})}k.exports=m},y3Yb:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("HBhm")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="PaperClipOutlined";var i=v.forwardRef(o);D.default=i},"y4/Y":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("zTMp"),v=n("62sa");n("SKx+"),n("1LEl"),n("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(k,D,n){var y=n("bYtY"),p=n("+TT/"),x=p.getLayoutRect;function v(f,d,u){var o=f.option,i=o.align;if(i!=null&&i!=="auto")return i;for(var t={width:d.getWidth(),height:d.getHeight()},s=o.orient==="horizontal"?1:0,e=[["left","right","width"],["top","bottom","height"]],l=e[s],r=[0,null,10],a={},c=0;c<3;c++)a[e[1-s][c]]=r[c],a[l[c]]=c===2?u[0]:o[l[c]];var h=[["x","width",3],["y","height",0]][s],g=x(a,t,o.padding);return l[(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(u){u.dataIndex!=null&&(u.dataIndexInside=u.dataIndex,u.dataIndex=null),u.highlightKey="visualMap"+(d?d.componentIndex:"")}),f}D.getItemAlign=v,D.makeHighDownBatch=m},y8nQ:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("gwTy"),v=n.n(x),m=n("1GLa")},yEEn:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="ArrowDownOutlined";var d=D.a=p.forwardRef(f)},yGk4:function(k,D,n){var y=n("Cwc5"),p=n("Kz5y"),x=y(p,"Set");k.exports=x},yO87:function(k,D,n){var y=n("bYtY"),p=n("oVpE"),x=p.createSymbol,v=n("IwbS"),m=v.Group,f=n("OELB"),d=f.parsePercent,u=n("FBjb"),o=3;function i(r){return y.isArray(r)||(r=[+r,+r]),r}function t(r,a){var c=a.rippleEffectColor||a.color;r.eachChild(function(h){h.attr({z:a.z,zlevel:a.zlevel,style:{stroke:a.brushType==="stroke"?c:null,fill:a.brushType==="fill"?c:null}})})}function s(r,a){m.call(this);var c=new u(r,a),h=new m;this.add(c),this.add(h),h.beforeUpdate=function(){this.attr(c.getScale())},this.updateData(r,a)}var e=s.prototype;e.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.startEffectAnimation=function(r){for(var a=r.symbolType,c=r.color,h=this.childAt(1),g=0;g<o;g++){var A=x(a,-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 a=this._effectCfg,c=this.childAt(1),h=["symbolType","period","rippleScale"],g=0;g<h.length;g++){var A=h[g];if(a[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,a){var c=r.hostModel;this.childAt(0).updateData(r,a);var h=this.childAt(1),g=r.getItemModel(a),A=r.getItemVisual(a,"symbol"),b=i(r.getItemVisual(a,"symbolSize")),S=r.getItemVisual(a,"color");h.attr("scale",b),h.traverse(function(R){R.attr({fill:S})});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(a,"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=a/r.count(),T.z=g.getShallow("z")||0,T.zlevel=g.getShallow("zlevel")||0,T.symbolType=A,T.color=S,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 w=this.childAt(0),O=function(){w.highlight(),T.showEffectOn!=="render"&&this.startEffectAnimation(T)},I=function(){w.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(s,m);var l=s;k.exports=l},yS9w:function(k,D,n){var y=n("MEGo"),p=y.parseSVG,x=y.makeViewBoxTransform,v=n("4fz+"),m=n("x6Kt"),f=n("bYtY"),d=f.assert,u=f.createHashMap,o=n("mFDi"),i=n("4NO4"),t=i.makeInner,s=t(),e={load:function(r,a){var c=s(a).originRoot;if(c)return{root:c,boundingRect:s(a).boundingRect};var h=l(a);return s(a).originRoot=h.root,s(a).boundingRect=h.boundingRect,h},makeGraphic:function(r,a,c){var h=s(a),g=h.rootMap||(h.rootMap=u()),A=g.get(c);if(A)return A;var b=h.originRoot,S=h.boundingRect;return h.originRootHostKey?A=l(a,S).root:(h.originRootHostKey=c,A=b),g.set(c,A)},removeGraphic:function(r,a,c){var h=s(a),g=h.rootMap;g&&g.removeKey(c),c===h.originRootHostKey&&(h.originRootHostKey=null)}};function l(r,a){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,S=h.viewBoxRect;if(a||(a=A==null||b==null?g.getBoundingRect():new o(0,0,0,0),A!=null&&(a.width=A),b!=null&&(a.height=b)),S){var E=x(S,a.width,a.height),C=g;g=new v,g.add(C),C.scale=E.scale,C.position=E.position}return g.setClipPath(new m({shape:a.plain()})),{root:g,boundingRect:a}}k.exports=e},yWXo:function(k,D,n){var y=n("IwbS"),p=n("oVpE"),x=p.createSymbol,v=n("OS9S"),m=4,f=y.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(i,t){var s=t.points,e=t.size,l=this.symbolProxy,r=l.shape,a=i.getContext?i.getContext():i,c=a&&e[0]<m;if(c)return;for(var h=0;h<s.length;){var g=s[h++],A=s[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],l.buildPath(i,r,!0)}},afterBrush:function(i){var t=this.shape,s=t.points,e=t.size,l=e[0]<m;if(!l)return;this.setTransform(i);for(var r=0;r<s.length;){var a=s[r++],c=s[r++];if(isNaN(a)||isNaN(c))continue;if(this.softClipShape&&!this.softClipShape.contain(a,c))continue;i.fillRect(a-e[0]/2,c-e[1]/2,e[0],e[1])}this.restoreTransform(i)},findDataIndex:function(i,t){for(var s=this.shape,e=s.points,l=s.size,r=Math.max(l[0],4),a=Math.max(l[1],4),c=e.length/2-1;c>=0;c--){var h=c*2,g=e[h]-r/2,A=e[h+1]-a/2;if(i>=g&&t>=A&&i<=g+r&&t<=A+a)return c}return-1}});function d(){this.group=new y.Group}var u=d.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(i,t){this.group.removeAll();var s=new f({rectHover:!0,cursor:"default"});s.setShape({points:i.getLayout("symbolPoints")}),this._setCommon(s,i,!1,t),this.group.add(s),this._incremental=null},u.updateLayout=function(i){if(this._incremental)return;var t=i.getLayout("symbolPoints");this.group.eachChild(function(s){if(s.startIndex!=null){var e=(s.endIndex-s.startIndex)*2,l=s.startIndex*4*2;t=new Float32Array(t.buffer,l,e)}s.setShape("points",t)})},u.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>2e6?(this._incremental||(this._incremental=new v({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(i,t,s){var e;this._incremental?(e=new f,this._incremental.addDisplayable(e,!0)):(e=new f({rectHover:!0,cursor:"default",startIndex:i.start,endIndex:i.end}),e.incremental=!0,this.group.add(e)),e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t,!!this._incremental,s)},u._setCommon=function(i,t,s,e){var l=t.hostModel;e=e||{};var r=t.getVisual("symbolSize");i.setShape("size",r instanceof Array?r:[r,r]),i.softClipShape=e.clipShape||null,i.symbolProxy=x(t.getVisual("symbol"),0,0,0,0),i.setColor=i.symbolProxy.setColor;var a=i.shape.size[0]<m;i.useStyle(l.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var c=t.getVisual("color");c&&i.setColor(c),s||(i.seriesIndex=l.seriesIndex,i.on("mousemove",function(h){i.dataIndex=null;var g=i.findDataIndex(h.offsetX,h.offsetY);g>=0&&(i.dataIndex=g+(i.startIndex||0))}))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()};var o=d;k.exports=o},ycre:function(k,D,n){var y=n("711d"),p=y("length");k.exports=p},ye1Q:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="LoadingOutlined";var d=D.a=p.forwardRef(f)},ygfH:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};D.default=y},yik8:function(k,D,n){var y=n("bZqE"),p=y.eachAfter,x=y.eachBefore,v=n("Itpr"),m=v.init,f=v.firstWalk,d=v.secondWalk,u=v.separation,o=v.radialCoordinate,i=v.getViewRect;function t(e,l){e.eachSeriesByType("tree",function(r){s(r,l)})}function s(e,l){var r=i(e,l);e.layoutInfo=r;var a=e.get("layout"),c=0,h=0,g=null;a==="radial"?(c=2*Math.PI,h=Math.min(r.height,r.width)/2,g=u(function(B,P){return(B.parentNode===P.parentNode?1:2)/B.depth})):(c=r.width,h=r.height,g=u());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 S=b,E=b,C=b;x(b,function(B){var P=B.getLayout().x;P<S.getLayout().x&&(S=B),P>E.getLayout().x&&(E=B),B.depth>C.depth&&(C=B)});var _=S===E?1:g(S,E)/2,T=_-S.getLayout().x,w=0,O=0,I=0,R=0;if(a==="radial")w=c/(E.getLayout().x+_+T),O=h/(C.depth-1||1),x(b,function(B){I=(B.getLayout().x+T)*w,R=(B.depth-1)*O;var P=o(I,R);B.setLayout({x:P.x,y:P.y,rawX:I,rawY:R},!0)});else{var M=e.getOrient();M==="RL"||M==="LR"?(O=h/(E.getLayout().x+_+T),w=c/(C.depth-1||1),x(b,function(B){R=(B.getLayout().x+T)*O,I=M==="LR"?(B.depth-1)*w:c-(B.depth-1)*w,B.setLayout({x:I,y:R},!0)})):(M==="TB"||M==="BT")&&(w=c/(E.getLayout().x+_+T),O=h/(C.depth-1||1),x(b,function(B){I=(B.getLayout().x+T)*w,R=M==="TB"?(B.depth-1)*O:h-(B.depth-1)*O,B.setLayout({x:I,y:R},!0)}))}}}k.exports=t},ynwM:function(k,D,n){var y=n("MFOe"),p=y.Global;k.exports={name:"oldFF-globalStorage",read:v,write:m,each:f,remove:d,clearAll:u};var x=p.globalStorage;function v(o){return x[o]}function m(o,i){x[o]=i}function f(o){for(var i=x.length-1;i>=0;i--){var t=x.key(i);o(x[t],t)}}function d(o){return x.removeItem(o)}function u(){f(function(o,i){delete x[o]})}},ypgQ:function(k,D,n){var y=n("bYtY"),p=n("4NO4"),x=n("bLfw"),v=y.each,m=y.clone,f=y.map,d=y.merge,u=/^(min|max)?(.+)$/;function o(a){this._api=a,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}o.prototype={constructor:o,setOption:function(a,c){a&&y.each(p.normalizeToArray(a.series),function(A){A&&A.data&&y.isTypedArray(A.data)&&y.setAsPrimitive(A.data)}),a=m(a);var h=this._optionBackup,g=i.call(this,a,c,!h);this._newBaseOption=g.baseOption,h?(l(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(a){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(a?c.baseOption:this._newBaseOption)},getTimelineOption:function(a){var c,h=this._timelineOptions;if(h.length){var g=a.getComponent("timeline");g&&(c=m(h[g.getCurrentIndex()],!0))}return c},getMediaOption:function(a){var c=this._api.getWidth(),h=this._api.getHeight(),g=this._mediaList,A=this._mediaDefault,b=[],S=[];if(!g.length&&!A)return S;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)&&(S=f(b,function(_){return m(_===-1?A.option:g[_].option)})),this._currentMediaIndices=b,S}};function i(a,c,h){var g=[],A=[],b,S,E=a.timeline;if(a.baseOption&&(S=a.baseOption),(E||a.options)&&(S=S||{},g=(a.options||[]).slice()),a.media){S=S||{};var C=a.media;v(C,function(_){_&&_.option&&(_.query?A.push(_):b||(b=_))})}return S||(S=a),S.timeline||(S.timeline=E),v([S].concat(g).concat(y.map(A,function(_){return _.option})),function(_){v(c,function(T){T(_,h)})}),{baseOption:S,timelineOptions:g,mediaDefault:b,mediaList:A}}function t(a,c,h){var g={width:c,height:h,aspectratio:c/h},A=!0;return y.each(a,function(b,S){var E=S.match(u);if(!E||!E[1]||!E[2])return;var C=E[1],_=E[2].toLowerCase();s(g[_],b,C)||(A=!1)}),A}function s(a,c,h){return h==="min"?a>=c:h==="max"?a<=c:a===c}function e(a,c){return a.join(",")===c.join(",")}function l(a,c){c=c||{},v(c,function(h,g){if(h==null)return;var A=a[g];if(!x.hasClass(g))a[g]=d(A,h,!0);else{h=p.normalizeToArray(h),A=p.normalizeToArray(A);var b=p.mappingToExists(A,h);a[g]=f(b,function(S){return S.option&&S.exist?d(S.exist,S.option,!0):S.exist||S.option})}})}var r=o;k.exports=r},yxFR:function(k,D,n){var y=n("y+Vt"),p=n("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,u){var o,i,t,s;this.subPixelOptimize?(x(v,u,this.style),o=v.x1,i=v.y1,t=v.x2,s=v.y2):(o=u.x1,i=u.y1,t=u.x2,s=u.y2);var e=u.percent;if(e===0)return;d.moveTo(o,i),e<1&&(t=o*(1-e)+t*e,s=i*(1-e)+s*e),d.lineTo(t,s)},pointAt:function(d){var u=this.shape;return[u.x1*(1-d)+u.x2*d,u.y1*(1-d)+u.y2*d]}});k.exports=m},z35g:function(k,D,n){var y=n("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,u=m instanceof Array?[]:{},o=0;o<d.length;o++){var i=d[o],t=this._axes[i];u[i]=t[f](m[i])}return u}};var v=x;k.exports=v},z7Xi:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("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=n("6VBw"),f=function(o,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:i,icon:v}))};f.displayName="UploadOutlined";var d=D.a=p.forwardRef(f)},zAh6:function(k,D,n){"use strict";n.d(D,"a",function(){return m});var y=n("xEkU"),p=n.n(y),x=n("i6bk");function v(f,d,u,o){var i=u-d;return f/=o/2,f<1?i/2*f*f*f+d:i/2*((f-=2)*f*f+2)+d}function m(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=d.getContainer,o=u===void 0?function(){return window}:u,i=d.callback,t=d.duration,s=t===void 0?450:t,e=o(),l=Object(x.a)(e,!0),r=Date.now(),a=function c(){var h=Date.now(),g=h-r,A=v(g>s?s:g,l,f,s);Object(x.b)(e)?e.scrollTo(window.pageXOffset,A):e instanceof HTMLDocument||e.constructor.name==="HTMLDocument"?e.documentElement.scrollTop=A:e.scrollTop=A,g<s?p()(c):typeof i=="function"&&i()};p()(a)}},zDms:function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=n("UOVi"),v=n("72pK"),m=y.each,f=p.asc,d=function(e,l,r,a){this._dimName=e,this._axisIndex=l,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=a,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=[],l=this.ecModel;return l.eachSeries(function(r){if(x.isCoordSupported(r.get("coordinateSystem"))){var a=this._dimName,c=l.queryComponents({mainType:a+"Axis",index:r.get(a+"AxisIndex"),id:r.get(a+"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,l=this.ecModel,r=this.getAxisModel(),a=e==="x"||e==="y",c,h;a?(h="gridIndex",c=e==="x"?"y":"x"):(h="polarIndex",c=e==="angle"?"radius":"angle");var g;return l.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 l=this._dataExtent,r=this.getAxisModel(),a=r.axis.scale,c=this._dataZoomModel.getRangePropMode(),h=[0,100],g=[],A=[],b;m(["start","end"],function(C,_){var T=e[C],w=e[C+"Value"];c[_]==="percent"?(T==null&&(T=h[_]),w=a.parse(p.linearMap(T,h,l))):(b=!0,w=w==null?l[_]:a.parse(w),T=p.linearMap(w,l,h)),A[_]=w,g[_]=T}),f(A),f(g);var S=this._minMaxSpan;b?E(A,g,l,h,!1):E(g,A,h,l,!0);function E(C,_,T,w,O){var I=O?"Span":"ValueSpan";v(0,C,T,"all",S["min"+I],S["max"+I]);for(var R=0;R<2;R++)_[R]=p.linearMap(C[R],T,w,!0),O&&(_[R]=a.parse(_[R]))}return{valueWindow:A,percentWindow:g}},reset:function(e){if(e!==this._dataZoomModel)return;var l=this.getTargetSeriesModels();this._dataExtent=u(this,this._dimName,l),t(this);var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,i(this)},restore:function(e){if(e!==this._dataZoomModel)return;this._valueWindow=this._percentWindow=null,i(this,!0)},filterData:function(e,l){if(e!==this._dataZoomModel)return;var r=this._dimName,a=this.getTargetSeriesModels(),c=e.get("filterMode"),h=this._valueWindow;if(c==="none")return;m(a,function(A){var b=A.getData(),S=b.mapDimension(r,!0);if(!S.length)return;c==="weakFilter"?b.filterSelf(function(E){for(var C,_,T,w=0;w<S.length;w++){var O=b.get(S[w],E),I=!isNaN(O),R=O<h[0],M=O>h[1];if(I&&!R&&!M)return!0;I&&(T=!0),R&&(C=!0),M&&(_=!0)}return T&&C&&_}):m(S,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(S,function(E){b.setApproximateExtent(h,E)})});function g(A){return A>=h[0]&&A<=h[1]}}};function u(e,l,r){var a=[Infinity,-Infinity];return m(r,function(c){var h=c.getData();h&&m(h.mapDimension(l,!0),function(g){var A=h.getApproximateExtent(g);A[0]<a[0]&&(a[0]=A[0]),A[1]>a[1]&&(a[1]=A[1])})}),a[1]<a[0]&&(a=[NaN,NaN]),o(e,a),a}function o(e,l){var r=e.getAxisModel(),a=r.getMin(!0),c=r.get("type")==="category",h=c&&r.getCategories().length;a!=null&&a!=="dataMin"&&typeof a!="function"?l[0]=a:c&&(l[0]=h>0?0:NaN);var g=r.getMax(!0);return g!=null&&g!=="dataMax"&&typeof g!="function"?l[1]=g:c&&(l[1]=h>0?h-1:NaN),r.get("scale",!0)||(l[0]>0&&(l[0]=0),l[1]<0&&(l[1]=0)),l}function i(e,l){var r=e.getAxisModel(),a=e._percentWindow,c=e._valueWindow;if(!a)return;var h=p.getPixelPrecision(c,[0,500]);h=Math.min(h,20);var g=l||a[0]===0&&a[1]===100;r.setRange(g?null:+c[0].toFixed(h),g?null:+c[1].toFixed(h))}function t(e){var l=e._minMaxSpan={},r=e._dataZoomModel,a=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(a[0]+g,a,[0,100],!0):h!=null&&(g=p.linearMap(h,[0,100],a,!0)-a[0]),l[c+"Span"]=h,l[c+"ValueSpan"]=g})}var s=d;k.exports=s},zM3Q:function(k,D,n){var y=n("4NO4"),p=y.makeInner;function x(){var v=p();return function(m){var f=v(m),d=m.pipelineContext,u=f.large,o=f.progressiveRender,i=f.large=d&&d.large,t=f.progressiveRender=d&&d.progressiveRender;return!!(u^i||o^t)&&"reset"}}k.exports=x},zRKj:function(k,D,n){n("Ae16"),n("Sp2Z"),n("y4/Y")},zTMp:function(k,D,n){var y=n("bYtY"),p=n("Qxkt"),x=y.each,v=y.curry;function m(a,c){var h={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return f(h,a,c),h.seriesInvolved&&u(h,a),h}function f(a,c,h){var g=c.getComponent("tooltip"),A=c.getComponent("axisPointer"),b=A.get("link",!0)||[],S=[];x(h.getCoordinateSystems(),function(E){if(!E.axisPointerEnabled)return;var C=r(E.model),_=a.coordSysAxesInfo[C]={};a.coordSysMap[C]=E;var T=E.model,w=T.getModel("tooltip",g);if(x(E.getAxes(),v(M,!1,null)),E.getTooltipAxes&&g&&w.get("show")){var O=w.get("trigger")==="axis",I=w.get("axisPointer.type")==="cross",R=E.getTooltipAxes(w.get("axisPointer.axis"));(O||I)&&x(R.baseAxes,v(M,I?"cross":!0,O)),I&&x(R.otherAxes,v(M,"cross",!1))}function M(B,P,X){var F=X.model.getModel("axisPointer",A),j=F.get("show");if(!j||j==="auto"&&!B&&!l(F))return;P==null&&(P=F.get("triggerTooltip")),F=B?d(X,w,A,c,B,P):F;var K=F.get("snap"),z=r(X.model),V=P||K||X.type==="category",Q=a.axesInfo[z]={key:z,axis:X,coordSys:E,axisPointerModel:F,triggerTooltip:P,involveSeries:V,snap:K,useHandle:l(F),seriesModels:[]};_[z]=Q,a.seriesInvolved|=V;var G=o(b,X);if(G!=null){var te=S[G]||(S[G]={axesInfo:{}});te.axesInfo[z]=Q,te.mapper=b[G].mapper,Q.linkGroup=te}}})}function d(a,c,h,g,A,b){var S=c.getModel("axisPointer"),E={};x(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(w){E[w]=y.clone(S.get(w))}),E.snap=a.type!=="category"&&!!b,S.get("type")==="cross"&&(E.type="line");var C=E.label||(E.label={});if(C.show==null&&(C.show=!1),A==="cross"){var _=S.get("label.show");if(C.show=_!=null?_:!0,!b){var T=E.lineStyle=S.get("crossStyle");T&&y.defaults(C,T.textStyle)}}return a.model.getModel("axisPointer",new p(E,h,g))}function u(a,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(a.coordSysAxesInfo[r(g.model)],function(S){var E=S.axis;g.getAxis(E.dim)===E&&(S.seriesModels.push(h),S.seriesDataCount==null&&(S.seriesDataCount=0),S.seriesDataCount+=h.getData().count())})},this)}function o(a,c){for(var h=c.model,g=c.dim,A=0;A<a.length;A++){var b=a[A]||{};if(i(b[g+"AxisId"],h.id)||i(b[g+"AxisIndex"],h.componentIndex)||i(b[g+"AxisName"],h.name))return A}}function i(a,c){return a==="all"||y.isArray(a)&&y.indexOf(a,c)>=0||a===c}function t(a){var c=s(a);if(!c)return;var h=c.axisPointerModel,g=c.axis.scale,A=h.option,b=h.get("status"),S=h.get("value");S!=null&&(S=g.parse(S));var E=l(h);b==null&&(A.status=E?"show":"hide");var C=g.getExtent().slice();C[0]>C[1]&&C.reverse(),(S==null||S>C[1])&&(S=C[1]),S<C[0]&&(S=C[0]),A.value=S,E&&(A.status=c.axis.scale.isBlank()?"hide":"show")}function s(a){var c=(a.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return c&&c.axesInfo[r(a)]}function e(a){var c=s(a);return c&&c.axisPointerModel}function l(a){return!!a.get("handle.show")}function r(a){return a.type+"||"+a.id}D.collect=m,D.fixValue=t,D.getAxisInfo=s,D.getAxisPointerModel=e,D.makeKey=r},zYTA:function(k,D,n){var y=n("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,u,o,i){var t=this._getBrush(),s=this._getGradient(m,o,"inRange"),e=this._getGradient(m,o,"outOfRange"),l=this.pointSize+this.blurSize,r=this.canvas,a=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],S=g[2],E=u(S);a.globalAlpha=E,a.drawImage(t,A-l,b-l)}if(!r.width||!r.height)return r;for(var C=a.getImageData(0,0,r.width,r.height),_=C.data,T=0,w=_.length,O=this.minOpacity,I=this.maxOpacity,R=I-O;T<w;){var E=_[T+3]/256,M=Math.floor(E*(p-1))*4;if(E>0){var B=i(E)?s:e;E>0&&(E=E*R+O),_[T++]=B[M],_[T++]=B[M+1],_[T++]=B[M+2],_[T++]=B[M+3]*E*256}else T+=4}return a.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 u=m.getContext("2d");return u.clearRect(0,0,d,d),u.shadowOffsetX=d,u.shadowBlur=this.blurSize,u.shadowColor="#000",u.beginPath(),u.arc(-f,f,this.pointSize,0,Math.PI*2,!0),u.closePath(),u.fill(),m},_getGradient:function(m,f,d){for(var u=this._gradientPixels,o=u[d]||(u[d]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],t=0,s=0;s<256;s++)f[d](s/255,!0,i),o[t++]=i[0],o[t++]=i[1],o[t++]=i[2],o[t++]=i[3];return o}};var v=x;k.exports=v},zarK:function(k,D,n){var y=n("YH21"),p=y.addEventListener,x=y.removeEventListener,v=y.normalizeEvent,m=y.getNativeEvent,f=n("bYtY"),d=n("H6uX"),u=n("ItGF"),o=300,i=u.domSupported,t=function(){var B=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],P=["touchstart","touchend","touchmove"],X={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},F=f.map(B,function(j){var K=j.replace("mouse","pointer");return X.hasOwnProperty(K)?K:j});return{mouse:B,touch:P,pointer:F}}(),s={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function e(B){return B==="mousewheel"&&u.browser.firefox?"DOMMouseScroll":B}function l(B){var P=B.pointerType;return P==="pen"||P==="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 a(B){B&&(B.zrByTouch=!0)}function c(B,P){return v(B.dom,new g(B,P),!0)}function h(B,P){for(var X=P,F=!1;X&&X.nodeType!==9&&!(F=X.domBelongToZr||X!==P&&X===B.painterRoot);)X=X.parentNode;return F}function g(B,P){this.type=P.type,this.target=this.currentTarget=B.dom,this.pointerType=P.pointerType,this.clientX=P.clientX,this.clientY=P.clientY}var A=g.prototype;A.stopPropagation=A.stopImmediatePropagation=A.preventDefault=f.noop;var b={mousedown:function(P){P=v(this.dom,P),this._mayPointerCapture=[P.zrX,P.zrY],this.trigger("mousedown",P)},mousemove:function(P){P=v(this.dom,P);var X=this._mayPointerCapture;X&&(P.zrX!==X[0]||P.zrY!==X[1])&&w(this,!0),this.trigger("mousemove",P)},mouseup:function(P){P=v(this.dom,P),w(this,!1),this.trigger("mouseup",P)},mouseout:function(P){P=v(this.dom,P),this._pointerCapturing&&(P.zrEventControl="no_globalout");var X=P.toElement||P.relatedTarget;P.zrIsToLocalDOM=h(this,X),this.trigger("mouseout",P)},touchstart:function(P){P=v(this.dom,P),a(P),this._lastTouchMoment=new Date,this.handler.processGesture(P,"start"),b.mousemove.call(this,P),b.mousedown.call(this,P)},touchmove:function(P){P=v(this.dom,P),a(P),this.handler.processGesture(P,"change"),b.mousemove.call(this,P)},touchend:function(P){P=v(this.dom,P),a(P),this.handler.processGesture(P,"end"),b.mouseup.call(this,P),+new Date-this._lastTouchMoment<o&&b.click.call(this,P)},pointerdown:function(P){b.mousedown.call(this,P)},pointermove:function(P){l(P)||b.mousemove.call(this,P)},pointerup:function(P){b.mouseup.call(this,P)},pointerout:function(P){l(P)||b.mouseout.call(this,P)}};f.each(["click","mousewheel","dblclick","contextmenu"],function(B){b[B]=function(P){P=v(this.dom,P),this.trigger(B,P)}});var S={pointermove:function(P){l(P)||S.mousemove.call(this,P)},pointerup:function(P){S.mouseup.call(this,P)},mousemove:function(P){this.trigger("mousemove",P)},mouseup:function(P){var X=this._pointerCapturing;w(this,!1),this.trigger("mouseup",P),X&&(P.zrEventControl="only_globalout",this.trigger("mouseout",P))}};function E(B,P){var X=P.domHandlers;u.pointerEventsSupported?f.each(t.pointer,function(F){_(P,F,function(j){X[F].call(B,j)})}):(u.touchEventsSupported&&f.each(t.touch,function(F){_(P,F,function(j){X[F].call(B,j),r(P)})}),f.each(t.mouse,function(F){_(P,F,function(j){j=m(j),P.touching||X[F].call(B,j)})}))}function C(B,P){u.pointerEventsSupported?f.each(s.pointer,X):u.touchEventsSupported||f.each(s.mouse,X);function X(F){function j(K){K=m(K),h(B,K.target)||(K=c(B,K),P.domHandlers[F].call(B,K))}_(P,F,j,{capture:!0})}}function _(B,P,X,F){B.mounted[P]=X,B.listenerOpts[P]=F,p(B.domTarget,e(P),X,F)}function T(B){var P=B.mounted;for(var X in P)P.hasOwnProperty(X)&&x(B.domTarget,e(X),P[X],B.listenerOpts[X]);B.mounted={}}function w(B,P){if(B._mayPointerCapture=null,i&&B._pointerCapturing^P){B._pointerCapturing=P;var X=B._globalHandlerScope;P?C(B,X):T(X)}}function O(B,P){this.domTarget=B,this.domHandlers=P,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function I(B,P){d.call(this),this.dom=B,this.painterRoot=P,this._localHandlerScope=new O(B,b),i&&(this._globalHandlerScope=new O(document,S)),this._pointerCapturing=!1,this._mayPointerCapture=null,E(this,this._localHandlerScope)}var R=I.prototype;R.dispose=function(){T(this._localHandlerScope),i&&T(this._globalHandlerScope)},R.setCursor=function(B){this.dom.style&&(this.dom.style.cursor=B||"default")},f.mixin(I,d);var M=I;k.exports=M},zdCA:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),v=u(n("q1tI")),m=y(n("PSzr")),f=y(n("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var c=r?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(l,a,c):l[a]=t[a]}return l.default=t,e&&e.set(t,l),l}var o=function(s,e){return v.createElement(f.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};o.displayName="BarsOutlined";var i=v.forwardRef(o);D.default=i},zeV3:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),v=n.n(x),m=n("q1tI"),f=n.n(m),d=n("TSYQ"),u=n.n(d),o=n("H84U"),i=function(e,l){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&l.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(e);c<a.length;c++)l.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(e,a[c])&&(r[a[c]]=e[a[c]]);return r},t={small:8,middle:16,large:24},s=function(l){var r,a=m.useContext(o.b),c=a.getPrefixCls,h=a.space,g=a.direction,A=l.size,b=A===void 0?(h==null?void 0:h.size)||"small":A,S=l.align,E=l.className,C=l.children,_=l.direction,T=_===void 0?"horizontal":_,w=l.prefixCls,O=i(l,["size","align","className","children","direction","prefixCls"]),I=m.Children.count(C);if(I===0)return null;var R=S===void 0&&T==="horizontal"?"center":S,M=c("space",w),B=u()(M,"".concat(M,"-").concat(T),(r={},v()(r,"".concat(M,"-rtl"),g==="rtl"),v()(r,"".concat(M,"-align-").concat(R),R),r),E),P="".concat(M,"-item"),X=g==="rtl"?"marginLeft":"marginRight";return m.createElement("div",p()({className:B},O),m.Children.map(C,function(F,j){return m.createElement("div",{className:P,key:"".concat(P,"-").concat(j),style:j===I-1||F===null||F===void 0?{}:v()({},T==="vertical"?"marginBottom":X,typeof b=="string"?t[b]:b)},F)}))};D.a=s},zuHt:function(k,D,n){var y=n("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 i=o.coordinateSystem,t=o.originalData;o.get("showLegendSymbol")&&x.getComponent("legend")&&t.each(t.mapDimension("value"),function(s,e){var l=t.getName(e),r=i.getRegion(l);if(!r||isNaN(s))return;var a=d[l]||0,c=i.dataToPoint(r.center);d[l]=a+1,t.setItemLayout(e,{point:c,offset:a})})});var u=m.getData();u.each(function(o){var i=u.getName(o),t=u.getItemLayout(o)||{};t.showLabel=!d[i],u.setItemLayout(o,t)}),v[f]=!0})}k.exports=p}}]);