12345678910111213141516171819 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1866fc4a"],{"0c9b":function(t,e,n){"use strict";var r=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"el-fade-in"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.toTopShow,expression:"toTopShow"}],staticClass:"page-up",on:{click:t.scrollToTop}},[e("van-icon",{staticStyle:{margin:"10%"},attrs:{name:"back-top",color:"#f9fafb",size:"2rem"}})],1)])},i=[],o={name:"pageup",data:function(){return{toTopShow:!0}},created:function(){},mounted:function(){this.$nextTick((function(){window.addEventListener("scroll",this.handleScroll,!0)}))},destroyed:function(){window.removeEventListener("scroll",this.handleScroll,!0)},methods:{handleScroll:function(){this.scrollTop=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,this.scrollTop>0?this.toTopShow=!0:this.toTopShow=!1},scrollToTop:function(){var t=null,e=this;cancelAnimationFrame(t),t=requestAnimationFrame((function n(){e.scrollTop>1e3||e.scrollTop>1e3&&e.scrollTop<=5e3||e.scrollTop>200&&e.scrollTop<=1e3||e.scrollTop>50&&e.scrollTop<=200||e.scrollTop>0&&e.scrollTop<=50?(e.scrollTop-=0,document.documentElement.scrollTop=0,window.pageYOffset=0,document.body.scrollTop=0,t=requestAnimationFrame(n)):(cancelAnimationFrame(t),e.toTopShow=!1)}))}}},a=o,s=(n("9d9b"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"03d30358",null);e["a"]=l.exports},"1fb5":function(t,e,n){"use strict";e.byteLength=c,e.toByteArray=f,e.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function c(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function h(t,e,n){return 3*(e+n)/4-n}function f(t){var e,n,r=u(t),a=r[0],s=r[1],l=new o(h(t,a,s)),c=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[c++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function p(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function d(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(p(r));return i.join("")}function g(t){for(var e,n=t.length,i=n%3,o=[],a=16383,s=0,l=n-i;s<l;s+=a)o.push(d(t,s,s+a>l?l:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"22d1":function(t,e,n){"use strict";var r=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),i=function(){function t(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return t}(),o=new i;function a(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),e["a"]=o},"329f":function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"create",(function(){return M})),n.d(r,"copy",(function(){return T})),n.d(r,"clone",(function(){return C})),n.d(r,"set",(function(){return I})),n.d(r,"add",(function(){return k})),n.d(r,"scaleAndAdd",(function(){return D})),n.d(r,"sub",(function(){return A})),n.d(r,"len",(function(){return j})),n.d(r,"length",(function(){return P})),n.d(r,"lenSquare",(function(){return L})),n.d(r,"lengthSquare",(function(){return R})),n.d(r,"mul",(function(){return E})),n.d(r,"div",(function(){return N})),n.d(r,"dot",(function(){return B})),n.d(r,"scale",(function(){return F})),n.d(r,"normalize",(function(){return z})),n.d(r,"distance",(function(){return V})),n.d(r,"dist",(function(){return H})),n.d(r,"distanceSquare",(function(){return W})),n.d(r,"distSquare",(function(){return G})),n.d(r,"negate",(function(){return U})),n.d(r,"lerp",(function(){return Y})),n.d(r,"applyTransform",(function(){return q})),n.d(r,"min",(function(){return X})),n.d(r,"max",(function(){return Z}));var i={};n.r(i),n.d(i,"create",(function(){return kt})),n.d(i,"identity",(function(){return Dt})),n.d(i,"copy",(function(){return At})),n.d(i,"mul",(function(){return jt})),n.d(i,"translate",(function(){return Pt})),n.d(i,"rotate",(function(){return Lt})),n.d(i,"scale",(function(){return Rt})),n.d(i,"invert",(function(){return Et})),n.d(i,"clone",(function(){return Nt}));var o={};n.r(o),n.d(o,"init",(function(){return $r})),n.d(o,"dispose",(function(){return Qr})),n.d(o,"disposeAll",(function(){return Jr})),n.d(o,"getInstance",(function(){return ti})),n.d(o,"registerPainter",(function(){return ei})),n.d(o,"getElementSSRData",(function(){return ni})),n.d(o,"registerSSRDataGetter",(function(){return ri})),n.d(o,"version",(function(){return ii}));var a={};n.r(a),n.d(a,"updateProps",(function(){return uu})),n.d(a,"initProps",(function(){return cu})),n.d(a,"removeElement",(function(){return fu})),n.d(a,"removeElementWithFadeOut",(function(){return du})),n.d(a,"isElementRemoved",(function(){return hu})),n.d(a,"extendShape",(function(){return dv})),n.d(a,"extendPath",(function(){return vv})),n.d(a,"registerShape",(function(){return yv})),n.d(a,"getShapeClass",(function(){return mv})),n.d(a,"makePath",(function(){return _v})),n.d(a,"makeImage",(function(){return bv})),n.d(a,"mergePath",(function(){return wv})),n.d(a,"resizePath",(function(){return Sv})),n.d(a,"subPixelOptimizeLine",(function(){return Ov})),n.d(a,"subPixelOptimizeRect",(function(){return Mv})),n.d(a,"subPixelOptimize",(function(){return Tv})),n.d(a,"getTransform",(function(){return Cv})),n.d(a,"applyTransform",(function(){return Iv})),n.d(a,"transformDirection",(function(){return kv})),n.d(a,"groupTransition",(function(){return jv})),n.d(a,"clipPointsByRect",(function(){return Pv})),n.d(a,"clipRectByRect",(function(){return Lv})),n.d(a,"createIcon",(function(){return Rv})),n.d(a,"linePolygonIntersect",(function(){return Ev})),n.d(a,"lineLineIntersect",(function(){return Nv})),n.d(a,"setTooltipConfig",(function(){return zv})),n.d(a,"traverseElements",(function(){return Hv})),n.d(a,"Group",(function(){return Gr})),n.d(a,"Image",(function(){return bs})),n.d(a,"Text",(function(){return qs})),n.d(a,"Circle",(function(){return rg})),n.d(a,"Ellipse",(function(){return ag})),n.d(a,"Sector",(function(){return Og})),n.d(a,"Ring",(function(){return Cg})),n.d(a,"Polygon",(function(){return jg})),n.d(a,"Polyline",(function(){return Rg})),n.d(a,"Rect",(function(){return ks})),n.d(a,"Line",(function(){return Fg})),n.d(a,"BezierCurve",(function(){return Gg})),n.d(a,"Arc",(function(){return qg})),n.d(a,"IncrementalDisplayable",(function(){return cv})),n.d(a,"CompoundPath",(function(){return Zg})),n.d(a,"LinearGradient",(function(){return Jg})),n.d(a,"RadialGradient",(function(){return ev})),n.d(a,"BoundingRect",(function(){return Zt})),n.d(a,"OrientedBoundingRect",(function(){return sv})),n.d(a,"Point",(function(){return Ft})),n.d(a,"Path",(function(){return fs}));var s={};n.r(s),n.d(s,"createList",(function(){return sS})),n.d(s,"getLayoutRect",(function(){return nh})),n.d(s,"createDimensions",(function(){return Dx})),n.d(s,"dataStack",(function(){return lS})),n.d(s,"createSymbol",(function(){return um})),n.d(s,"createScale",(function(){return uS})),n.d(s,"mixinAxisModelCommonMethods",(function(){return cS})),n.d(s,"getECData",(function(){return Xs})),n.d(s,"enableHoverEmphasis",(function(){return ql})),n.d(s,"createTextStyle",(function(){return hS}));var l={};n.r(l),n.d(l,"linearMap",(function(){return li})),n.d(l,"round",(function(){return ci})),n.d(l,"asc",(function(){return hi})),n.d(l,"getPrecision",(function(){return fi})),n.d(l,"getPrecisionSafe",(function(){return pi})),n.d(l,"getPixelPrecision",(function(){return di})),n.d(l,"getPercentWithPrecision",(function(){return gi})),n.d(l,"MAX_SAFE_INTEGER",(function(){return mi})),n.d(l,"remRadian",(function(){return _i})),n.d(l,"isRadianAroundZero",(function(){return bi})),n.d(l,"parseDate",(function(){return wi})),n.d(l,"quantity",(function(){return Si})),n.d(l,"quantityExponent",(function(){return Oi})),n.d(l,"nice",(function(){return Mi})),n.d(l,"quantile",(function(){return Ti})),n.d(l,"reformIntervals",(function(){return Ci})),n.d(l,"isNumeric",(function(){return ki})),n.d(l,"numericToNumber",(function(){return Ii}));var u={};n.r(u),n.d(u,"parse",(function(){return wi})),n.d(u,"format",(function(){return wc}));var c={};n.r(c),n.d(c,"extendShape",(function(){return dv})),n.d(c,"extendPath",(function(){return vv})),n.d(c,"makePath",(function(){return _v})),n.d(c,"makeImage",(function(){return bv})),n.d(c,"mergePath",(function(){return wv})),n.d(c,"resizePath",(function(){return Sv})),n.d(c,"createIcon",(function(){return Rv})),n.d(c,"updateProps",(function(){return uu})),n.d(c,"initProps",(function(){return cu})),n.d(c,"getTransform",(function(){return Cv})),n.d(c,"clipPointsByRect",(function(){return Pv})),n.d(c,"clipRectByRect",(function(){return Lv})),n.d(c,"registerShape",(function(){return yv})),n.d(c,"getShapeClass",(function(){return mv})),n.d(c,"Group",(function(){return Gr})),n.d(c,"Image",(function(){return bs})),n.d(c,"Text",(function(){return qs})),n.d(c,"Circle",(function(){return rg})),n.d(c,"Ellipse",(function(){return ag})),n.d(c,"Sector",(function(){return Og})),n.d(c,"Ring",(function(){return Cg})),n.d(c,"Polygon",(function(){return jg})),n.d(c,"Polyline",(function(){return Rg})),n.d(c,"Rect",(function(){return ks})),n.d(c,"Line",(function(){return Fg})),n.d(c,"BezierCurve",(function(){return Gg})),n.d(c,"Arc",(function(){return qg})),n.d(c,"IncrementalDisplayable",(function(){return cv})),n.d(c,"CompoundPath",(function(){return Zg})),n.d(c,"LinearGradient",(function(){return Jg})),n.d(c,"RadialGradient",(function(){return ev})),n.d(c,"BoundingRect",(function(){return Zt}));var h={};n.r(h),n.d(h,"addCommas",(function(){return zc})),n.d(h,"toCamelCase",(function(){return Vc})),n.d(h,"normalizeCssArray",(function(){return Hc})),n.d(h,"encodeHTML",(function(){return pt})),n.d(h,"formatTpl",(function(){return Yc})),n.d(h,"getTooltipMarker",(function(){return qc})),n.d(h,"formatTime",(function(){return Xc})),n.d(h,"capitalFirst",(function(){return Zc})),n.d(h,"truncateText",(function(){return No})),n.d(h,"getTextRect",(function(){return CS}));var f={};n.r(f),n.d(f,"map",(function(){return O["map"]})),n.d(f,"each",(function(){return O["each"]})),n.d(f,"indexOf",(function(){return O["indexOf"]})),n.d(f,"inherits",(function(){return O["inherits"]})),n.d(f,"reduce",(function(){return O["reduce"]})),n.d(f,"filter",(function(){return O["filter"]})),n.d(f,"bind",(function(){return O["bind"]})),n.d(f,"curry",(function(){return O["curry"]})),n.d(f,"isArray",(function(){return O["isArray"]})),n.d(f,"isString",(function(){return O["isString"]})),n.d(f,"isObject",(function(){return O["isObject"]})),n.d(f,"isFunction",(function(){return O["isFunction"]})),n.d(f,"extend",(function(){return O["extend"]})),n.d(f,"defaults",(function(){return O["defaults"]})),n.d(f,"clone",(function(){return O["clone"]})),n.d(f,"merge",(function(){return O["merge"]}));var p={};n.r(p),n.d(p,"version",(function(){return u_})),n.d(p,"dependencies",(function(){return c_})),n.d(p,"PRIORITY",(function(){return C_})),n.d(p,"init",(function(){return xb})),n.d(p,"connect",(function(){return wb})),n.d(p,"disconnect",(function(){return Sb})),n.d(p,"disConnect",(function(){return Ob})),n.d(p,"dispose",(function(){return Mb})),n.d(p,"getInstanceByDom",(function(){return Tb})),n.d(p,"getInstanceById",(function(){return Cb})),n.d(p,"registerTheme",(function(){return Ib})),n.d(p,"registerPreprocessor",(function(){return kb})),n.d(p,"registerProcessor",(function(){return Db})),n.d(p,"registerPostInit",(function(){return Ab})),n.d(p,"registerPostUpdate",(function(){return jb})),n.d(p,"registerUpdateLifecycle",(function(){return Pb})),n.d(p,"registerAction",(function(){return Lb})),n.d(p,"registerCoordinateSystem",(function(){return Rb})),n.d(p,"getCoordinateSystemDimensions",(function(){return Eb})),n.d(p,"registerLocale",(function(){return ic})),n.d(p,"registerLayout",(function(){return Nb})),n.d(p,"registerVisual",(function(){return Bb})),n.d(p,"registerLoading",(function(){return Vb})),n.d(p,"setCanvasCreator",(function(){return Hb})),n.d(p,"registerMap",(function(){return Wb})),n.d(p,"getMap",(function(){return Gb})),n.d(p,"registerTransform",(function(){return Ub})),n.d(p,"dataTool",(function(){return Yb})),n.d(p,"zrender",(function(){return o})),n.d(p,"matrix",(function(){return i})),n.d(p,"vector",(function(){return r})),n.d(p,"zrUtil",(function(){return O})),n.d(p,"color",(function(){return an})),n.d(p,"throttle",(function(){return ey})),n.d(p,"helper",(function(){return s})),n.d(p,"use",(function(){return Zb})),n.d(p,"setPlatformAPI",(function(){return _r["d"]})),n.d(p,"parseGeoJSON",(function(){return TS})),n.d(p,"parseGeoJson",(function(){return TS})),n.d(p,"number",(function(){return l})),n.d(p,"time",(function(){return u})),n.d(p,"graphic",(function(){return c})),n.d(p,"format",(function(){return h})),n.d(p,"util",(function(){return f})),n.d(p,"env",(function(){return S["a"]})),n.d(p,"List",(function(){return kx})),n.d(p,"Model",(function(){return Gu})),n.d(p,"Axis",(function(){return qS})),n.d(p,"ComponentModel",(function(){return ch})),n.d(p,"ComponentView",(function(){return Ad})),n.d(p,"SeriesModel",(function(){return kd})),n.d(p,"ChartView",(function(){return $v})),n.d(p,"innerDrawElementOnCanvas",(function(){return Um})),n.d(p,"extendComponentModel",(function(){return XS})),n.d(p,"extendComponentView",(function(){return ZS})),n.d(p,"extendSeriesModel",(function(){return KS})),n.d(p,"extendChartView",(function(){return $S}));var d=function(){var t=this,e=t._self._c;return e("div",[t._m(0),e("div",{staticClass:"bg-white w-11/12 px-4 py-6 mx-auto shadow rounded relative -top-20"},[e("div",{staticClass:"border-b pb-4 flex justify-between items-center"},[e("div",{staticClass:"flex items-center"},[e("van-icon",{attrs:{size:"20",name:"bar-chart-o"}}),e("span",{staticClass:"pl-1"},[t._v("工单数统计")])],1),e("div",[t._v("今日工单:"+t._s(t.statisOrder.day_num))])]),e("div",{staticStyle:{width:"100%",height:"17rem"},attrs:{id:"main"}}),e("div",{staticClass:"flex justify-between items-center"},[e("router-link",{staticClass:"flex flex-col text-center",attrs:{to:{path:"/orders",query:{tabIndex:0}}}},[e("span",{staticClass:"font-bold text-4xl text-yellow-600",staticStyle:{color:"rgb(84 112 198)"}},[e("countTo",{attrs:{startVal:t.startVal,endVal:t.statisOrder.confirm,duration:t.duration}})],1),e("span",{staticClass:"text-sm pt-1 max-w-xs",staticStyle:{color:"rgb(84 112 198)"}},[t._v("待确认")])]),e("router-link",{staticClass:"flex flex-col text-center",attrs:{to:{path:"/orders",query:{tabIndex:1}}}},[e("span",{staticClass:"font-bold text-4xl text-yellow-600",staticStyle:{color:"rgb(159 224 128)"}},[e("countTo",{attrs:{startVal:t.startVal,endVal:t.statisOrder.repairing,duration:t.duration}})],1),e("span",{staticClass:"text-sm pt-1 max-w-xs",staticStyle:{color:"rgb(159 224 128)"}},[t._v("处理中")])]),e("router-link",{staticClass:"flex flex-col text-center",attrs:{to:{path:"/orders",query:{tabIndex:2}}}},[e("span",{staticClass:"font-bold text-4xl text-yellow-600",staticStyle:{color:"rgb(250 200 88)"}},[e("countTo",{attrs:{startVal:t.startVal,endVal:t.statisOrder.repaired,duration:t.duration}})],1),e("span",{staticClass:"text-sm pt-1 max-w-xs",staticStyle:{color:"rgb(250 200 88)"}},[t._v("已完成")])])],1)]),e("van-empty",{directives:[{name:"show",rawName:"v-show",value:t.showEmpty,expression:"showEmpty"}],attrs:{description:"暂无订单"}}),e("van-list",{staticClass:"mt-4",attrs:{finished:t.finished,error:t.error,"error-text":"请求失败,点击重新加载","finished-text":""},on:{"update:error":function(e){t.error=e},load:t.loadOrderList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.orderList,(function(n,r){return e("div",{key:r,staticClass:"bg-white mb-4 w-11/12 p-4 mx-auto text-sm shadow rounded relative -top-16"},[e("div",{staticClass:"pb-2 flex items-center justify-between border-b mb-2"},[e("span",[e("span",{staticClass:"font-bold"},[t._v("工单编号:")]),t._v(t._s(n.order_no))]),e("span",{class:"text-"+n.state_color+" px-2 py-1 rounded-sm",staticStyle:{width:"3.8rem",height:"100%","text-align":"center",border:"1px solid","border-radius":"5%"}},[t._v(t._s(n.state_name))])]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("报修时间:")]),t._v(t._s(n.created_at))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("报修姓名:")]),t._v(t._s(n.link_name))]),e("div",{staticClass:"pb-1 flex items-center"},[e("span",{staticClass:"font-bold"},[t._v("联系电话:")]),e("span",{staticClass:"flex items-center"},[e("span",{staticClass:"pr-2"},[t._v(t._s(n.link_phone))]),e("a",{staticClass:"flex",attrs:{href:"tel:"+n.link_phone}},[e("van-icon",{attrs:{name:"phone",size:"22",color:"#009688"}})],1)])]),e("div",{staticClass:"pb-1 text-red-600"},[e("span",{staticClass:"font-bold"},[t._v("是否保修:")]),e("span",[t._v(t._s(n.warranty_period))])]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("报修地址:")]),t._v(t._s(n.address))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("故障类型:")]),t._v(t._s(n.type))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("故障描述:")]),t._v(t._s(n.content))]),n.leader?e("div",{staticClass:"pb-1 flex items-cente text-yellow-600"},[e("span",{staticClass:"font-bold"},[t._v("工程队长:")]),e("span",{staticClass:"flex items-center"},[e("span",[t._v(t._s(n.leader_info.username))]),n.leader_info.phone?e("span",{staticClass:"flex items-center"},[t._v("("+t._s(n.leader_info.phone)+")"),e("a",{staticClass:"flex items-center",attrs:{href:"tel:"+n.leader_info.phone}},[e("van-icon",{attrs:{name:"phone",size:"22",color:"#009688"}})],1)]):t._e()])]):t._e(),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("故障图片:")])]),e("div",{staticClass:"pb-1"},t._l(n.pics,(function(r,i){return e("van-image",{key:i,staticClass:"mr-1 border border-gray-100",attrs:{src:r,width:"5rem",height:"5rem"},on:{click:function(e){return t.preview(n.pics,i)}}})})),1),e("div",{staticClass:"text-right"},[e("van-button",{staticClass:"ml-2",attrs:{plain:"",type:"info",to:"/orders/"+n.id+"/info",size:"small"}},[t._v("报修进度")])],1)])})),0),e("ScrollTop")],1)},g=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"h-48 bg-indigo-500",staticStyle:{background:"url(https://img1.baidu.com/it/u=1034864554,2007885328&fm=26&fmt=auto) 100% no-repeat"}},[e("div",{staticClass:"text-white pt-12 w-11/12 mx-auto font-bold text-center"},[e("p",{staticClass:"text-xl"},[t._v("志远售后平台")]),e("p",[t._v("{ 工程主管端 }")])])])}],v=(n("4662"),n("28a2")),y=(n("c975"),n("14d9"),n("3c72")),m=n("b5ff"),_=n("ec1b"),b=n.n(_),x=function(t,e){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},x(t,e)};function w(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}x(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var S=n("22d1"),O=n("6d8b");function M(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function T(t,e){return t[0]=e[0],t[1]=e[1],t}function C(t){return[t[0],t[1]]}function I(t,e,n){return t[0]=e,t[1]=n,t}function k(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function D(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function A(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function j(t){return Math.sqrt(L(t))}var P=j;function L(t){return t[0]*t[0]+t[1]*t[1]}var R=L;function E(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function N(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function B(t,e){return t[0]*e[0]+t[1]*e[1]}function F(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function z(t,e){var n=j(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function V(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var H=V;function W(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var G=W;function U(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Y(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function q(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function X(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Z(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var K=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),$=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new K(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new K(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new K(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new K(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new K(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new K(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Q=$,J=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),tt=J,et=Math.log(2);function nt(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~i)/et);return t[n][l]}var u=r|1<<n,c=n+1;while(r&1<<c)c++;for(var h=0,f=0,p=0;f<s;f++){var d=1<<f;d&i||(h+=(p%2?-1:1)*t[n][f]*nt(t,e-1,c,u,i|d,o),p++)}return o[a]=h,h}function rt(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=nt(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*nt(n,7,0===a?1:0,1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}var it="___zrEVENTSAVED",ot=[];function at(t,e,n,r,i){return st(ot,e,r,i,!0)&&st(t,n,ot[0],ot[1])}function st(t,e,n,r,i){if(e.getBoundingClientRect&&S["a"].domSupported&&!ct(e)){var o=e[it]||(e[it]={}),a=lt(e,o),s=ut(a,o,i);if(s)return s(t,n,r),!0}return!1}function lt(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function ut(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,f=c.left,p=c.top;a.push(f,p),l=l&&o&&f===o[h]&&p===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?rt(s,a):rt(a,s))}function ct(t){return"CANVAS"===t.nodeName.toUpperCase()}var ht=/([&<>"'])/g,ft={"&":"&","<":"<",">":">",'"':""","'":"'"};function pt(t){return null==t?"":(t+"").replace(ht,(function(t,e){return ft[e]}))}var dt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,gt=[],vt=S["a"].browser.firefox&&+S["a"].browser.version.split(".")[0]<39;function yt(t,e,n,r){return n=n||{},r?mt(t,e,n):vt&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):mt(t,e,n),n}function mt(t,e,n){if(S["a"].domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(ct(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(st(gt,t,r,i))return n.zrX=gt[0],void(n.zrY=gt[1])}n.zrX=n.zrY=0}function _t(t){return t||window.event}function bt(t,e,n){if(e=_t(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&yt(t,o,e,n)}else{yt(t,e,e,n);var a=xt(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&dt.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function xt(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function wt(t,e,n,r){t.addEventListener(e,n,r)}function St(t,e,n,r){t.removeEventListener(e,n,r)}var Ot=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var Mt=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o<a;o++){var s=r[o],l=yt(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in It)if(It.hasOwnProperty(e)){var n=It[e](this._track,t);if(n)return n}},t}();function Tt(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Ct(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var It={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=Tt(r)/Tt(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Ct(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function kt(){return[1,0,0,1,0,0]}function Dt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function At(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function jt(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Pt(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Lt(t,e,n,r){void 0===r&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=i*h+s*c,t[1]=-i*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-r[0])+c*(u-r[1])+r[0],t[5]=h*(u-r[1])-c*(a-r[0])+r[1],t}function Rt(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function Et(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}function Nt(t){var e=kt();return At(e,t),e}var Bt=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),Ft=Bt,zt=Math.min,Vt=Math.max,Ht=new Ft,Wt=new Ft,Gt=new Ft,Ut=new Ft,Yt=new Ft,qt=new Ft,Xt=function(){function t(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=zt(t.x,this.x),n=zt(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Vt(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Vt(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,i=kt();return Pt(i,i,[-e.x,-e.y]),Rt(i,i,[n,r]),Pt(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,f=!(o<l||u<i||s<c||h<a);if(n){var p=1/0,d=0,g=Math.abs(o-l),v=Math.abs(u-i),y=Math.abs(s-c),m=Math.abs(h-a),_=Math.min(g,v),b=Math.min(y,m);o<l||u<i?_>d&&(d=_,g<v?Ft.set(qt,-g,0):Ft.set(qt,v,0)):_<p&&(p=_,g<v?Ft.set(Yt,g,0):Ft.set(Yt,-v,0)),s<c||h<a?b>d&&(d=b,y<m?Ft.set(qt,0,-y):Ft.set(qt,0,m)):_<p&&(p=_,y<m?Ft.set(Yt,0,y):Ft.set(Yt,0,-m))}return n&&Ft.copy(n,f?Yt:qt),f},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Ht.x=Gt.x=n.x,Ht.y=Ut.y=n.y,Wt.x=Ut.x=n.x+n.width,Wt.y=Gt.y=n.y+n.height,Ht.transform(r),Ut.transform(r),Wt.transform(r),Gt.transform(r),e.x=zt(Ht.x,Wt.x,Gt.x,Ut.x),e.y=zt(Ht.y,Wt.y,Gt.y,Ut.y);var l=Vt(Ht.x,Wt.x,Gt.x,Ut.x),u=Vt(Ht.y,Wt.y,Gt.y,Ut.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Zt=Xt,Kt="silent";function $t(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Qt}}function Qt(){Ot(this.event)}var Jt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return w(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(tt),te=function(){function t(t,e){this.x=t,this.y=e}return t}(),ee=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ne=new Zt(0,0,0,0),re=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new te(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new Jt,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new Q(a),a}return w(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(O["each"](ee,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=ae(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new te(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new te(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var r=t.target;if(!r||!r.silent){var i="on"+e,o=$t(e,t,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new te(t,e);if(oe(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Zt(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(ne.copy(c.getBoundingRect()),c.transform&&ne.applyTransform(c.transform),ne.intersect(l)&&o.push(c))}if(o.length)for(var h=4,f=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=h)for(var g=0;g<p;g+=f){var v=t+d*Math.cos(g),y=e+d*Math.sin(g);if(oe(o,i,v,y,n),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Mt);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new te;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(tt);function ie(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var r=t,i=void 0,o=!1;while(r){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return!i||Kt}return!1}function oe(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=ie(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==Kt)){e.target=a;break}}}function ae(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}O["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){re.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=ae(this,i,o);if("mouseup"===t&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||H(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var se=re,le=32,ue=7;function ce(t){var e=0;while(t>=le)e|=1&t,t>>=1;return t+e}function he(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){while(i<n&&r(t[i],t[i-1])<0)i++;fe(t,e,i)}else while(i<n&&r(t[i],t[i-1])>=0)i++;return i-e}function fe(t,e,n){n--;while(e<n){var r=t[e];t[e++]=t[n],t[n--]=r}}function pe(t,e,n,r,i){for(r===e&&r++;r<n;r++){var o,a=t[r],s=e,l=r;while(s<l)o=s+l>>>1,i(a,t[o])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function de(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){s=r-i;while(l<s&&o(t,e[n+i+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(l<s&&o(t,e[n+i-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function ge(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){s=i+1;while(l<s&&o(t,e[n+i-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{s=r-i;while(l<s&&o(t,e[n+i+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function ve(t,e){var n,r,i=ue,o=0,a=[];function s(t,e){n[o]=t,r[o]=e,o+=1}function l(){while(o>1){var t=o-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;c(t)}}function u(){while(o>1){var t=o-2;t>0&&r[t-1]<r[t+1]&&t--,c(t)}}function c(i){var a=n[i],s=r[i],l=n[i+1],u=r[i+1];r[i]=s+u,i===o-3&&(n[i+1]=n[i+2],r[i+1]=r[i+2]),o--;var c=ge(t[l],t,a,s,0,e);a+=c,s-=c,0!==s&&(u=de(t[a+s-1],t,l,u,u-1,e),0!==u&&(s<=u?h(a,s,l,u):f(a,s,l,u)))}function h(n,r,o,s){var l=0;for(l=0;l<r;l++)a[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0!==--s)if(1!==r){var f,p,d,g=i;while(1){f=0,p=0,d=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],p++,f=0,0===--s){d=!0;break}}else if(t[h++]=a[u++],f++,p=0,1===--r){d=!0;break}}while((f|p)<g);if(d)break;do{if(f=ge(t[c],a,u,r,0,e),0!==f){for(l=0;l<f;l++)t[h+l]=a[u+l];if(h+=f,u+=f,r-=f,r<=1){d=!0;break}}if(t[h++]=t[c++],0===--s){d=!0;break}if(p=de(a[u],t,c,s,0,e),0!==p){for(l=0;l<p;l++)t[h+l]=t[c+l];if(h+=p,c+=p,s-=p,0===s){d=!0;break}}if(t[h++]=a[u++],1===--r){d=!0;break}g--}while(f>=ue||p>=ue);if(d)break;g<0&&(g=0),g+=2}if(i=g,i<1&&(i=1),1===r){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)t[h+l]=a[u+l]}}else{for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else for(l=0;l<r;l++)t[h+l]=a[u+l]}function f(n,r,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+r-1,c=s-1,h=o+s-1,f=0,p=0;if(t[h--]=t[u--],0!==--r)if(1!==s){var d=i;while(1){var g=0,v=0,y=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0===--r){y=!0;break}}else if(t[h--]=a[c--],v++,g=0,1===--s){y=!0;break}}while((g|v)<d);if(y)break;do{if(g=r-ge(a[c],t,n,r,r-1,e),0!==g){for(h-=g,u-=g,r-=g,p=h+1,f=u+1,l=g-1;l>=0;l--)t[p+l]=t[f+l];if(0===r){y=!0;break}}if(t[h--]=a[c--],1===--s){y=!0;break}if(v=s-de(t[u],a,0,s,s-1,e),0!==v){for(h-=v,c-=v,s-=v,p=h+1,f=c+1,l=0;l<v;l++)t[p+l]=a[f+l];if(s<=1){y=!0;break}}if(t[h--]=t[u--],0===--r){y=!0;break}d--}while(g>=ue||v>=ue);if(y)break;d<0&&(d=0),d+=2}if(i=d,i<1&&(i=1),1===s){for(h-=r,u-=r,p=h+1,f=u+1,l=r-1;l>=0;l--)t[p+l]=t[f+l];t[h]=a[c]}else{if(0===s)throw new Error;for(f=h-(s-1),l=0;l<s;l++)t[f+l]=a[l]}}else{for(h-=r,u-=r,p=h+1,f=u+1,l=r-1;l>=0;l--)t[p+l]=t[f+l];t[h]=a[c]}else for(f=h-(s-1),l=0;l<s;l++)t[f+l]=a[l]}return n=[],r=[],{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function ye(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<le)return o=he(t,n,r,e),void pe(t,n,r,n+o,e);var a=ve(t,e),s=ce(i);do{if(o=he(t,n,r,e),o<s){var l=i;l>s&&(l=s),pe(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}var me=1,_e=2,be=4,xe=!1;function we(){xe||(xe=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Se(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Oe,Me=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Se}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;r<i;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,ye(n,Se)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];var i=r,o=t;while(i)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=me),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(we(),u.z=0),isNaN(u.z2)&&(we(),u.z2=0),isNaN(u.zlevel)&&(we(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var r=O["indexOf"](this._roots,t);r>=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Te=Me;Oe=S["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Ce=Oe,Ie={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ie.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Ie.bounceIn(2*t):.5*Ie.bounceOut(2*t-1)+.5}},ke=Ie,De=Math.pow,Ae=Math.sqrt,je=1e-8,Pe=1e-4,Le=Ae(3),Re=1/3,Ee=M(),Ne=M(),Be=M();function Fe(t){return t>-je&&t<je}function ze(t){return t>je||t<-je}function Ve(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function He(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function We(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,h=s*l-9*a*u,f=l*l-3*s*u,p=0;if(Fe(c)&&Fe(h))if(Fe(s))o[0]=0;else{var d=-l/s;d>=0&&d<=1&&(o[p++]=d)}else{var g=h*h-4*c*f;if(Fe(g)){var v=h/c,y=(d=-s/a+v,-v/2);d>=0&&d<=1&&(o[p++]=d),y>=0&&y<=1&&(o[p++]=y)}else if(g>0){var m=Ae(g),_=c*s+1.5*a*(-h+m),b=c*s+1.5*a*(-h-m);_=_<0?-De(-_,Re):De(_,Re),b=b<0?-De(-b,Re):De(b,Re);d=(-s-(_+b))/(3*a);d>=0&&d<=1&&(o[p++]=d)}else{var x=(2*c*s-3*a*h)/(2*Ae(c*c*c)),w=Math.acos(x)/3,S=Ae(c),O=Math.cos(w),M=(d=(-s-2*S*O)/(3*a),y=(-s+S*(O+Le*Math.sin(w)))/(3*a),(-s+S*(O-Le*Math.sin(w)))/(3*a));d>=0&&d<=1&&(o[p++]=d),y>=0&&y<=1&&(o[p++]=y),M>=0&&M<=1&&(o[p++]=M)}}return p}function Ge(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(Fe(a)){if(ze(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Fe(c))i[0]=-o/(2*a);else if(c>0){var h=Ae(c),f=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function Ue(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function Ye(t,e,n,r,i,o,a,s,l,u,c){var h,f,p,d,g,v=.005,y=1/0;Ee[0]=l,Ee[1]=u;for(var m=0;m<1;m+=.05)Ne[0]=Ve(t,n,i,a,m),Ne[1]=Ve(e,r,o,s,m),d=G(Ee,Ne),d<y&&(h=m,y=d);y=1/0;for(var _=0;_<32;_++){if(v<Pe)break;f=h-v,p=h+v,Ne[0]=Ve(t,n,i,a,f),Ne[1]=Ve(e,r,o,s,f),d=G(Ne,Ee),f>=0&&d<y?(h=f,y=d):(Be[0]=Ve(t,n,i,a,p),Be[1]=Ve(e,r,o,s,p),g=G(Be,Ee),p<=1&&g<y?(h=p,y=g):v*=.5)}return c&&(c[0]=Ve(t,n,i,a,h),c[1]=Ve(e,r,o,s,h)),Ae(y)}function qe(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,h=0,f=1/l,p=1;p<=l;p++){var d=p*f,g=Ve(t,n,i,a,d),v=Ve(e,r,o,s,d),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function Xe(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function Ze(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function Ke(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(Fe(o)){if(ze(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Fe(c)){u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var h=Ae(c),f=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function $e(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function Qe(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function Je(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;Ee[0]=a,Ee[1]=s;for(var f=0;f<1;f+=.05){Ne[0]=Xe(t,n,i,f),Ne[1]=Xe(e,r,o,f);var p=G(Ee,Ne);p<h&&(u=f,h=p)}h=1/0;for(var d=0;d<32;d++){if(c<Pe)break;var g=u-c,v=u+c;Ne[0]=Xe(t,n,i,g),Ne[1]=Xe(e,r,o,g);p=G(Ne,Ee);if(g>=0&&p<h)u=g,h=p;else{Be[0]=Xe(t,n,i,v),Be[1]=Xe(e,r,o,v);var y=G(Be,Ee);v<=1&&y<h?(u=v,h=y):c*=.5}}return l&&(l[0]=Xe(t,n,i,u),l[1]=Xe(e,r,o,u)),Ae(h)}function tn(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var f=h*c,p=Xe(t,n,i,f),d=Xe(e,r,o,f),g=p-s,v=d-l;u+=Math.sqrt(g*g+v*v),s=p,l=d}return u}var en=/cubic-bezier\(([0-9,\.e ]+)\)/;function nn(t){var e=t&&en.exec(t);if(e){var n=e[1].split(","),r=+Object(O["trim"])(n[0]),i=+Object(O["trim"])(n[1]),o=+Object(O["trim"])(n[2]),a=+Object(O["trim"])(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:We(0,r,o,1,t,s)&&Ve(0,i,a,1,s[0])}}}var rn=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||O["noop"],this.ondestroy=t.ondestroy||O["noop"],this.onrestart=t.onrestart||O["noop"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(O["isFunction"])(t)?t:ke[t]||nn(t)},t}(),on=rn,an=n("41ef"),sn=n("7a29"),ln=Array.prototype.slice;function un(t,e,n){return(e-t)*n+t}function cn(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=un(e[o],n[o],r);return t}function hn(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=un(e[a][s],n[a][s],r)}return t}function fn(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function pn(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function dn(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function gn(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(1===n?i[l]:ln.call(i[l]))}var u=r[0]&&r[0].length;for(l=0;l<r.length;l++)if(1===n)isNaN(r[l])&&(r[l]=i[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function vn(t){if(Object(O["isArrayLike"])(t)){var e=t.length;if(Object(O["isArrayLike"])(t[0])){for(var n=[],r=0;r<e;r++)n.push(ln.call(t[r]));return n}return ln.call(t)}return t}function yn(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function mn(t){return Object(O["isArrayLike"])(t&&t[0])?2:1}var _n=0,bn=1,xn=2,wn=3,Sn=4,On=5,Mn=6;function Tn(t){return t===Sn||t===On}function Cn(t){return t===bn||t===xn}var In=[0,0,0,0],kn=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=Mn,s=e;if(Object(O["isArrayLike"])(e)){var l=mn(e);a=l,(1===l&&!Object(O["isNumber"])(e[0])||2===l&&!Object(O["isNumber"])(e[0][0]))&&(o=!0)}else if(Object(O["isNumber"])(e)&&!Object(O["eqNaN"])(e))a=_n;else if(Object(O["isString"])(e))if(isNaN(+e)){var u=an["parse"](e);u&&(s=u,a=wn)}else a=_n;else if(Object(O["isGradientObject"])(e)){var c=Object(O["extend"])({},s);c.colorStops=Object(O["map"])(e.colorStops,(function(t){return{offset:t.offset,color:an["parse"](t.color)}})),Object(sn["a"])(e)?a=Sn:Object(sn["b"])(e)&&(a=On),s=c}0===i?this.valType=a:a===this.valType&&a!==Mn||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Object(O["isFunction"])(n)?n:ke[n]||nn(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=Cn(r),l=Tn(r),u=0;u<i;u++){var c=n[u],h=c.value,f=o.value;c.percent=c.time/t,a||(s&&u!==i-1?gn(h,f,r):l&&dn(h.colorStops,f.colorStops))}if(!a&&r!==On&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var p=n[0].value;for(u=0;u<i;u++)r===_n?n[u].additiveValue=n[u].value-p:r===wn?n[u].additiveValue=fn([],n[u].value,p,-1):Cn(r)&&(n[u].additiveValue=r===bn?fn([],n[u].value,p,-1):pn([],n[u].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=s===wn,f=this._lastFr,p=Math.min;if(1===u)r=i=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){var d=p(f+1,u-1);for(n=d;n>=0;n--)if(l[n].percent<=e)break;n=p(n,u-2)}else{for(n=f;n<u;n++)if(l[n].percent>e)break;n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var g=i.percent-r.percent,v=0===g?1:p((e-r.percent)/g,1);i.easingFunc&&(v=i.easingFunc(v));var y=o?this._additiveValue:h?In:t[c];if(!Cn(s)&&!h||y||(y=this._additiveValue=[]),this.discrete)t[c]=v<1?r.rawValue:i.rawValue;else if(Cn(s))s===bn?cn(y,r[a],i[a],v):hn(y,r[a],i[a],v);else if(Tn(s)){var m=r[a],_=i[a],b=s===Sn;t[c]={type:b?"linear":"radial",x:un(m.x,_.x,v),y:un(m.y,_.y,v),colorStops:Object(O["map"])(m.colorStops,(function(t,e){var n=_.colorStops[e];return{offset:un(t.offset,n.offset,v),color:yn(cn([],t.color,n.color,v))}})),global:_.global},b?(t[c].x2=un(m.x2,_.x2,v),t[c].y2=un(m.y2,_.y2,v)):t[c].r=un(m.r,_.r,v)}else if(h)cn(y,r[a],i[a],v),o||(t[c]=yn(y));else{var x=un(r[a],i[a],v);o?this._additiveValue=x:t[c]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===_n?t[n]=t[n]+r:e===wn?(an["parse"](t[n],In),fn(In,In,r,1),t[n]=yn(In)):e===bn?fn(t[n],t[n],r,1):e===xn&&pn(t[n],t[n],r,1)},t}(),Dn=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(O["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(O["keys"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new kn(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,u.valType===wn&&l&&(l=yn(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,vn(l),r),this._trackKeys.push(a)}s.addKeyframe(t,vn(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new on({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var r=e._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Object(O["map"])(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=vn(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Object(O["keys"])(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),An=Dn;function jn(){return(new Date).getTime()}var Pn=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return w(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=jn()-this._pausedTime,n=e-this._time,r=this._head;while(r){var i=r.next,o=r.step(e,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(Ce(e),!t._paused&&t.update())}this._running=!0,Ce(e)},e.prototype.start=function(){this._running||(this._time=jn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=jn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=jn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new An(t,e.loop);return this.addAnimator(n),n},e}(tt),Ln=Pn,Rn=300,En=S["a"].domSupported,Nn=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=O["map"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:r}}(),Bn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Fn=!1;function zn(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Vn(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function Hn(t){t&&(t.zrByTouch=!0)}function Wn(t,e){return bt(t.dom,new Un(t,e),!0)}function Gn(t,e){var n=e,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return r}var Un=function(){function t(t,e){this.stopPropagation=O["noop"],this.stopImmediatePropagation=O["noop"],this.preventDefault=O["noop"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),Yn={mousedown:function(t){t=bt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=bt(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=bt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=bt(this.dom,t);var e=t.toElement||t.relatedTarget;Gn(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Fn=!0,t=bt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Fn||(t=bt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=bt(this.dom,t),Hn(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Yn.mousemove.call(this,t),Yn.mousedown.call(this,t)},touchmove:function(t){t=bt(this.dom,t),Hn(t),this.handler.processGesture(t,"change"),Yn.mousemove.call(this,t)},touchend:function(t){t=bt(this.dom,t),Hn(t),this.handler.processGesture(t,"end"),Yn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<Rn&&Yn.click.call(this,t)},pointerdown:function(t){Yn.mousedown.call(this,t)},pointermove:function(t){zn(t)||Yn.mousemove.call(this,t)},pointerup:function(t){Yn.mouseup.call(this,t)},pointerout:function(t){zn(t)||Yn.mouseout.call(this,t)}};O["each"](["click","dblclick","contextmenu"],(function(t){Yn[t]=function(e){e=bt(this.dom,e),this.trigger(t,e)}}));var qn={pointermove:function(t){zn(t)||qn.mousemove.call(this,t)},pointerup:function(t){qn.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Xn(t,e){var n=e.domHandlers;S["a"].pointerEventsSupported?O["each"](Nn.pointer,(function(r){Kn(e,r,(function(e){n[r].call(t,e)}))})):(S["a"].touchEventsSupported&&O["each"](Nn.touch,(function(r){Kn(e,r,(function(i){n[r].call(t,i),Vn(e)}))})),O["each"](Nn.mouse,(function(r){Kn(e,r,(function(i){i=_t(i),e.touching||n[r].call(t,i)}))})))}function Zn(t,e){function n(n){function r(r){r=_t(r),Gn(t,r.target)||(r=Wn(t,r),e.domHandlers[n].call(t,r))}Kn(e,n,r,{capture:!0})}S["a"].pointerEventsSupported?O["each"](Bn.pointer,n):S["a"].touchEventsSupported||O["each"](Bn.mouse,n)}function Kn(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,wt(t.domTarget,e,n,r)}function $n(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&St(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var Qn=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),Jn=function(t){function e(e,n){var r=t.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=n,r._localHandlerScope=new Qn(e,Yn),En&&(r._globalHandlerScope=new Qn(document,qn)),Xn(r,r._localHandlerScope),r}return w(e,t),e.prototype.dispose=function(){$n(this._localHandlerScope),En&&$n(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,En&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Zn(this,e):$n(e)}},e}(tt),tr=Jn,er=1;S["a"].hasGlobalWindow&&(er=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var nr=er,rr=.4,ir="#333",or="#ccc",ar="#eee",sr=Dt,lr=5e-5;function ur(t){return t>lr||t<-lr}var cr=[],hr=[],fr=kt(),pr=Math.abs,dr=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return ur(this.rotation)||ur(this.x)||ur(this.y)||ur(this.scaleX-1)||ur(this.scaleY-1)||ur(this.skewX)||ur(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||kt(),e?this.getLocalTransform(n):sr(n),t&&(e?jt(n,t,n):At(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(sr(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(cr);var n=cr[0]<0?-1:1,r=cr[1]<0?-1:1,i=((cr[0]-n)*e+n)/cr[0]||0,o=((cr[1]-r)*e+r)/cr[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||kt(),Et(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||kt(),jt(hr,t.invTransform,e),e=hr);var n=this.originX,r=this.originY;(n||r)&&(fr[4]=n,fr[5]=r,jt(hr,e,fr),hr[4]-=n,hr[5]-=r,e=hr),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&q(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&q(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&pr(t[0]-1)>1e-10&&pr(t[3]-1)>1e-10?Math.sqrt(pr(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){vr(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var p=n+a,d=r+s;e[4]=-p*i-h*d*o,e[5]=-d*o-f*p*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=f*i,e[2]=h*o,l&&Lt(e,e,l),e[4]+=n+u,e[5]+=r+c,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),gr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function vr(t,e){for(var n=0;n<gr.length;n++){var r=gr[n];t[r]=e[r]}}var yr=dr,mr=n("d51b"),_r=n("726e"),br={};function xr(t,e){e=e||_r["a"];var n=br[e];n||(n=br[e]=new mr["a"](500));var r=n.get(t);return null==r&&(r=_r["c"].measureText(t,e).width,n.put(t,r)),r}function wr(t,e,n,r){var i=xr(t,e),o=Tr(e),a=Or(0,i,n),s=Mr(0,o,r),l=new Zt(a,s,i,o);return l}function Sr(t,e,n,r){var i=((t||"")+"").split("\n"),o=i.length;if(1===o)return wr(i[0],e,n,r);for(var a=new Zt(0,0,0,0),s=0;s<i.length;s++){var l=wr(i[s],e,n,r);0===s?a.copy(l):a.union(l)}return a}function Or(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Mr(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Tr(t){return xr("国",t)}function Cr(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Ir(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=Cr(r[0],n.width),u+=Cr(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var kr="__zr_normal__",Dr=gr.concat(["ignore"]),Ar=Object(O["reduce"])(gr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),jr={},Pr=new Zt(0,0,0,0),Lr=function(){function t(t){this.id=Object(O["guid"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var u=Pr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(jr,n,u):Ir(jr,n,u),i.x=jr.x,i.y=jr.y,o=jr.align,a=jr.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,f=void 0;"center"===c?(h=.5*u.width,f=.5*u.height):(h=Cr(c[0],u.width),f=Cr(c[1],u.height)),l=!0,i.originX=-i.x+h+(r?0:u.x),i.originY=-i.y+f+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],l||(i.originX=-p[0],i.originY=-p[1]));var d=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",v===g.fill&&y===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=me,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?or:ir},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(an["parse"])(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(an["stringify"])(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(O["extend"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(O["isObject"])(t))for(var n=t,r=Object(O["keys"])(n),i=0;i<r.length;i++){var o=r[i];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==kr)){var o=r.targetName,a=o?e[o]:e;r.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Dr)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(kr,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===kr,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(O["indexOf"])(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||i){i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,u),h&&h.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~me),l}Object(O["logError"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~me)}else this.clearStates()},t.prototype.isSilent=function(){var t=this.silent,e=this.parent;while(!t&&e){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=Object(O["indexOf"])(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Object(O["indexOf"])(r,t),o=Object(O["indexOf"])(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];Object(O["extend"])(n,i),i.textConfig&&(e=e||{},Object(O["extend"])(e,i.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=Object(O["extend"])({},r?this.textConfig:n.textConfig),Object(O["extend"])(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Dr.length;u++){var c=Dr[u],h=i&&Ar[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var f=this.animators[u],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(e||n)[p]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new yr,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Object(O["extend"])(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=me;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var r=t?this[t]:this;var i=new An(r,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during((function(){r.updateDuringAnimation(e)})).done((function(){var e=r.animators,n=Object(O["indexOf"])(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){Rr(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Rr(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=Rr(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=me;function n(t,n,r,i){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(e,t,{get:function(){if(!this[n]){var t=this[n]=[];o(this,t)}return this[n]},set:function(t){this[r]=t[0],this[i]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function Rr(t,e,n,r,i){n=n||{};var o=[];Vr(t,"",t,e,n,r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},h=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var f=0;f<o.length;f++){var p=o[f];c&&p.done(c),h&&p.aborted(h),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function Er(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function Nr(t){return Object(O["isArrayLike"])(t[0])}function Br(t,e,n){if(Object(O["isArrayLike"])(e[n]))if(Object(O["isArrayLike"])(t[n])||(t[n]=[]),Object(O["isTypedArray"])(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),Er(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(Nr(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?Er(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else Er(o,i,a);o.length=i.length}else t[n]=e[n]}function Fr(t,e){return t===e||Object(O["isArrayLike"])(t)&&Object(O["isArrayLike"])(e)&&zr(t,e)}function zr(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Vr(t,e,n,r,i,o,a,s){for(var l=Object(O["keys"])(r),u=i.duration,c=i.delay,h=i.additive,f=i.setToFinal,p=!Object(O["isObject"])(o),d=t.animators,g=[],v=0;v<l.length;v++){var y=l[v],m=r[y];if(null!=m&&null!=n[y]&&(p||o[y]))if(!Object(O["isObject"])(m)||Object(O["isArrayLike"])(m)||Object(O["isGradientObject"])(m))g.push(y);else{if(e){s||(n[y]=m,t.updateDuringAnimation(e));continue}Vr(t,y,n[y],m,i,o&&o[y],a,s)}else s||(n[y]=m,t.updateDuringAnimation(e),g.push(y))}var _=g.length;if(!h&&_)for(var b=0;b<d.length;b++){var x=d[b];if(x.targetName===e){var w=x.stopTracks(g);if(w){var S=Object(O["indexOf"])(d,x);d.splice(S,1)}}}if(i.force||(g=Object(O["filter"])(g,(function(t){return!Fr(r[t],n[t])})),_=g.length),_>0||i.force&&!a.length){var M=void 0,T=void 0,C=void 0;if(s){T={},f&&(M={});for(b=0;b<_;b++){y=g[b];T[y]=n[y],f?M[y]=r[y]:n[y]=r[y]}}else if(f){C={};for(b=0;b<_;b++){y=g[b];C[y]=vn(n[y]),Br(n,r,y)}}x=new An(n,!1,!1,h?Object(O["filter"])(d,(function(t){return t.targetName===e})):null);x.targetName=e,i.scope&&(x.scope=i.scope),f&&M&&x.whenWithKeys(0,M,g),C&&x.whenWithKeys(0,C,g),x.whenWithKeys(null==u?500:u,s?T:r,g).delay(c||0),t.addAnimator(x,e),a.push(x)}}Object(O["mixin"])(Lr,tt),Object(O["mixin"])(Lr,yr);var Hr=Lr,Wr=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return w(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=O["indexOf"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=O["indexOf"](n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new Zt(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(Zt.applyTransform(e,s,l),i=i||e.clone(),i.union(e)):(i=i||s.clone(),i.union(s))}}return i||e},e}(Hr);Wr.prototype.type="group";var Gr=Wr,Ur={},Yr={};
- /*!
- * 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
- */function qr(t){delete Yr[t]}function Xr(t){if(!t)return!1;if("string"===typeof t)return Object(an["lum"])(t,1)<rr;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=Object(an["lum"])(e[i].color,1);return n/=r,n<rr}return!1}var Zr,Kr=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new Te,o=n.renderer||"canvas";Ur[o]||(o=O["keys"](Ur)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Ur[o](e,i,n,t),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=S["a"].node||S["a"].worker||s?null:new tr(a.getViewportRoot(),a.root),c=n.useCoarsePointer,h=null==c||"auto"===c?S["a"].touchEventsSupported:!!c,f=44;h&&(l=O["retrieve2"](n.pointerSize,f)),this.handler=new se(i,a,u,a.root,l),this.animation=new Ln({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Xr(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=jn();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=jn();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Gr&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,qr(this.id))},t}();function $r(t,e){var n=new Kr(O["guid"](),t,e);return Yr[n.id]=n,n}function Qr(t){t.dispose()}function Jr(){for(var t in Yr)Yr.hasOwnProperty(t)&&Yr[t].dispose();Yr={}}function ti(t){return Yr[t]}function ei(t,e){Ur[t]=e}function ni(t){if("function"===typeof Zr)return Zr(t)}function ri(t){Zr=t}var ii="5.5.0",oi=1e-4,ai=20;function si(t){return t.replace(/^\s+|\s+$/g,"")}function li(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function ui(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return O["isString"](t)?si(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function ci(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),ai),t=(+t).toFixed(e),n?t:+t}function hi(t){return t.sort((function(t,e){return t-e})),t}function fi(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return pi(t)}function pi(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function di(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function gi(t,e,n){if(!t[e])return 0;var r=vi(t,n);return r[e]||0}function vi(t,e){var n=O["reduce"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];var r=Math.pow(10,e),i=O["map"](t,(function(t){return(isNaN(t)?0:t)/n*r*100})),o=100*r,a=O["map"](i,(function(t){return Math.floor(t)})),s=O["reduce"](a,(function(t,e){return t+e}),0),l=O["map"](i,(function(t,e){return t-a[e]}));while(s<o){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,f=l.length;h<f;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return O["map"](a,(function(t){return t/r}))}function yi(t,e){var n=Math.max(fi(t),fi(e)),r=t+e;return n>ai?r:ci(r,n)}var mi=9007199254740991;function _i(t){var e=2*Math.PI;return(t%e+e)%e}function bi(t){return t>-oi&&t<oi}var xi=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function wi(t){if(t instanceof Date)return t;if(O["isString"](t)){var e=xi.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Si(t){return Math.pow(10,Oi(t))}function Oi(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Mi(t,e){var n,r=Oi(t),i=Math.pow(10,r),o=t/i;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*i,r>=-20?+t.toFixed(r<0?-r:0):t}function Ti(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function Ci(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,o=t[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-n),e=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!==1?t.splice(r,1):r++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]===(n?-1:1)||!n&&s(t,e,1))}}function Ii(t){var e=parseFloat(t);return e==t&&(0!==e||!O["isString"](t)||t.indexOf("x")<=0)?e:NaN}function ki(t){return!isNaN(Ii(t))}function Di(){return Math.round(9*Math.random())}function Ai(t,e){return 0===e?t:Ai(e,t%e)}function ji(t,e){return null==t?e:null==e?t:t*e/Ai(t,e)}function Pi(t,e,n){return(e-t)*n+t}var Li="series\0",Ri="\0_ec_\0";function Ei(t){return t instanceof Array?t:null==t?[]:[t]}function Ni(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var Bi=["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 Fi(t){return!Object(O["isObject"])(t)||Object(O["isArray"])(t)||t instanceof Date?t:t.value}function zi(t){return Object(O["isObject"])(t)&&!(t instanceof Array)}function Vi(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Object(O["createHashMap"])();Object(O["each"])(e,(function(t,n){Object(O["isObject"])(t)||(e[n]=null)}));var s=Hi(t,a,n);return(r||i)&&Wi(s,t,a,e),r&&Gi(s,e),r||i?Ui(s,e,i):o&&Yi(s,e),qi(s),s}function Hi(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||Qi(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function Wi(t,e,n,r){Object(O["each"])(r,(function(i,o){if(i&&null!=i.id){var a=Zi(i.id),s=n.get(a);if(null!=s){var l=t[s];Object(O["assert"])(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}}))}function Gi(t,e){Object(O["each"])(e,(function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(null==o.id||null==n.id)&&!Qi(n)&&!Qi(o)&&Xi("name",o,n))return t[i].newOption=n,void(e[r]=null)}}))}function Ui(t,e,n){Object(O["each"])(e,(function(e){if(e){var r,i=0;while((r=t[i])&&(r.newOption||Qi(r.existing)||r.existing&&null!=e.id&&!Xi("id",e,r.existing)))i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}}))}function Yi(t,e){Object(O["each"])(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}function qi(t){var e=Object(O["createHashMap"])();Object(O["each"])(t,(function(t){var n=t.existing;n&&e.set(n.id,t)})),Object(O["each"])(t,(function(t){var n=t.newOption;Object(O["assert"])(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),Object(O["each"])(t,(function(t,n){var r=t.existing,i=t.newOption,o=t.keyInfo;if(Object(O["isObject"])(i)){if(o.name=null!=i.name?Zi(i.name):r?r.name:Li+n,r)o.id=Zi(r.id);else if(null!=i.id)o.id=Zi(i.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}}))}function Xi(t,e,n){var r=Ki(e[t],null),i=Ki(n[t],null);return null!=r&&null!=i&&r===i}function Zi(t){return Ki(t,"")}function Ki(t,e){return null==t?e:Object(O["isString"])(t)?t:Object(O["isNumber"])(t)||Object(O["isStringSafe"])(t)?t+"":e}function $i(t){var e=t.name;return!(!e||!e.indexOf(Li))}function Qi(t){return t&&null!=t.id&&0===Zi(t.id).indexOf(Ri)}function Ji(t,e,n){Object(O["each"])(t,(function(t){var r=t.newOption;Object(O["isObject"])(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=to(e,r,t.existing,n))}))}function to(t,e,n,r){var i=e.type?e.type:n?n.subType:r.determineSubType(t,e);return i}function eo(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Object(O["isArray"])(e.dataIndex)?Object(O["map"])(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Object(O["isArray"])(e.name)?Object(O["map"])(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function no(){var t="__ec_inner_"+ro++;return function(e){return e[t]||(e[t]={})}}var ro=Di();function io(t,e,n){var r=oo(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each((function(e,r){var i=so(t,r,e,{useDefault:l===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[r+"Models"]=i.models,s[r+"Model"]=i.models[0]})),s}function oo(t,e){var n;if(Object(O["isString"])(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=Object(O["createHashMap"])(),o={},a=!1;return Object(O["each"])(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&Object(O["indexOf"])(e.includeMainTypes,s)<0)){a=a||!!s;var u=i.get(s)||i.set(s,{});u[l]=t}}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var ao={useDefault:!0,enableAll:!1,enableNone:!1};function so(t,e,n,r){r=r||ao;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===i||!1===i?(Object(O["assert"])(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(Object(O["assert"])(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s)}function lo(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function uo(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function co(t){return"auto"===t?S["a"].domSupported?"html":"richText":t||"html"}function ho(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(Object(O["isNumber"])(r)){var a=Pi(n||0,r,i);return ci(a,o?Math.max(fi(n||0),fi(r)):e)}if(Object(O["isString"])(r))return i<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var f=t.getDimensionInfo(h);if(f&&"ordinal"===f.type)s[h]=(i<1&&l?l:u)[h];else{var p=l&&l[h]?l[h]:0,d=u[h];a=Pi(p,d,i);s[h]=ci(a,o?Math.max(fi(p),fi(d)):e)}}return s}var fo=".",po="___EC__COMPONENT__CONTAINER___",go="___EC__EXTENDED_CLASS___";function vo(t){var e={main:"",sub:""};if(t){var n=t.split(fo);e.main=n[0]||"",e.sub=n[1]||""}return e}function yo(t){O["assert"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function mo(t){return!(!t||!t[go])}function _o(t,e){t.$constructor=t,t.extend=function(t){var e,n=this;return bo(n)?e=function(t){function e(){return t.apply(this,arguments)||this}return w(e,t),e}(n):(e=function(){(t.$constructor||n).apply(this,arguments)},O["inherits"](e,this)),O["extend"](e.prototype,t),e[go]=!0,e.extend=this.extend,e.superCall=Oo,e.superApply=Mo,e.superClass=n,e}}function bo(t){return O["isFunction"](t)&&/^class\s/.test(Function.prototype.toString.call(t))}function xo(t,e){t.extend=e.extend}var wo=Math.round(10*Math.random());function So(t){var e=["__\0is_clz",wo++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function Oo(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function Mo(t,e,n){return this.superClass.prototype[e].apply(t,n)}function To(t){var e={};function n(t){var n=e[t.main];return n&&n[po]||(n=e[t.main]={},n[po]=!0),n}t.registerClass=function(t){var r=t.type||t.prototype.type;if(r){yo(r),t.prototype.type=r;var i=vo(r);if(i.sub){if(i.sub!==po){var o=n(i);o[i.sub]=t}}else e[i.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[po]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var n=vo(t),r=[],i=e[n.main];return i&&i[po]?O["each"](i,(function(t,e){e!==po&&r.push(t)})):r.push(i),r},t.hasClass=function(t){var n=vo(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return O["each"](e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=vo(t),r=e[n.main];return r&&r[po]}}function Co(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(r&&O["indexOf"](r,s)>=0||i&&O["indexOf"](i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Io=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],ko=Co(Io),Do=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return ko(this,t,e)},t}(),Ao=new mr["a"](50);function jo(t){if("string"===typeof t){var e=Ao.get(t);return e&&e.image}return t}function Po(t,e,n,r,i){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Ao.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?(e=o.image,!Ro(e)&&o.pending.push(a)):(e=_r["c"].loadImage(t,Lo,Lo),e.__zrImageSrc=t,Ao.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Lo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Ro(t){return t&&t.width&&t.height}var Eo=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function No(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=Bo(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=Fo(o[a],i);return o.join("\n")}function Bo(t,e,n,r){r=r||{};var i=Object(O["extend"])({},r);i.font=e,n=Object(O["retrieve2"])(n,"..."),i.maxIterations=Object(O["retrieve2"])(r.maxIterations,2);var o=i.minChar=Object(O["retrieve2"])(r.minChar,0);i.cnCharWidth=xr("国",e);var a=i.ascCharWidth=xr("a",e);i.placeholder=Object(O["retrieve2"])(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=xr(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function Fo(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=xr(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?zo(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=xr(t,r)}return""===t&&(t=e.placeholder),t}function zo(t,e,n,r){for(var i=0,o=0,a=t.length;o<a&&i<e;o++){var s=t.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function Vo(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=Tr(o),l=Object(O["retrieve2"])(e.lineHeight,s),u=!!e.backgroundColor,c="truncate"===e.lineOverflow,h=e.width;n=null==h||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?Ko(t,e.font,h,"breakAll"===r,0).lines:[];var f=n.length*l,p=Object(O["retrieve2"])(e.height,f);if(f>p&&c){var d=Math.floor(p/l);n=n.slice(0,d)}if(t&&a&&null!=h)for(var g=Bo(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<n.length;v++)n[v]=Fo(n[v],g);var y=p,m=0;for(v=0;v<n.length;v++)m=Math.max(xr(n[v],o),m);null==h&&(h=m);var _=m;return i&&(y+=i[0]+i[2],_+=i[1]+i[3],h+=i[1]+i[3]),u&&(_=h),{lines:n,height:p,outerWidth:_,outerHeight:y,lineHeight:l,calculatedLineHeight:s,contentWidth:m,contentHeight:f,width:h}}var Ho=function(){function t(){}return t}(),Wo=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),Go=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function Uo(t,e){var n=new Go;if(null!=t&&(t+=""),!t)return n;var r,i=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},l=Eo.lastIndex=0;while(null!=(r=Eo.exec(t))){var u=r.index;u>l&&Yo(n,t.substring(l,u),e,s),Yo(n,r[2],e,s,r[1]),l=Eo.lastIndex}l<t.length&&Yo(n,t.substring(l,t.length),e,s);var c=[],h=0,f=0,p=e.padding,d="truncate"===a,g="truncate"===e.lineOverflow;function v(t,e,n){t.width=e,t.lineHeight=n,h+=n,f=Math.max(f,e)}t:for(var y=0;y<n.lines.length;y++){for(var m=n.lines[y],_=0,b=0,x=0;x<m.tokens.length;x++){var w=m.tokens[x],S=w.styleName&&e.rich[w.styleName]||{},M=w.textPadding=S.padding,T=M?M[1]+M[3]:0,C=w.font=S.font||e.font;w.contentHeight=Tr(C);var I=Object(O["retrieve2"])(S.height,w.contentHeight);if(w.innerHeight=I,M&&(I+=M[0]+M[2]),w.height=I,w.lineHeight=Object(O["retrieve3"])(S.lineHeight,e.lineHeight,I),w.align=S&&S.align||e.align,w.verticalAlign=S&&S.verticalAlign||"middle",g&&null!=o&&h+w.lineHeight>o){x>0?(m.tokens=m.tokens.slice(0,x),v(m,b,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var k=S.width,D=null==k||"auto"===k;if("string"===typeof k&&"%"===k.charAt(k.length-1))w.percentWidth=k,c.push(w),w.contentWidth=xr(w.text,C);else{if(D){var A=S.backgroundColor,j=A&&A.image;j&&(j=jo(j),Ro(j)&&(w.width=Math.max(w.width,j.width*I/j.height)))}var P=d&&null!=i?i-b:null;null!=P&&P<w.width?!D||P<T?(w.text="",w.width=w.contentWidth=0):(w.text=No(w.text,P-T,C,e.ellipsis,{minChar:e.truncateMinChar}),w.width=w.contentWidth=xr(w.text,C)):w.contentWidth=xr(w.text,C)}w.width+=T,b+=w.width,S&&(_=Math.max(_,w.lineHeight))}v(m,b,_)}n.outerWidth=n.width=Object(O["retrieve2"])(i,f),n.outerHeight=n.height=Object(O["retrieve2"])(o,h),n.contentHeight=h,n.contentWidth=f,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(y=0;y<c.length;y++){w=c[y];var L=w.percentWidth;w.width=parseInt(L,10)/100*n.width}return n}function Yo(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,c=l.font||n.font,h=!1;if(r){var f=l.padding,p=f?f[1]+f[3]:0;if(null!=l.width&&"auto"!==l.width){var d=Cr(l.width,r.width)+p;u.length>0&&d+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=d}else{var g=Ko(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var y=o[v],m=new Ho;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!s,"number"===typeof l.width?m.width=l.width:m.width=a?a[v]:xr(y,c),v||h)u.push(new Wo([m]));else{var _=(u[u.length-1]||(u[0]=new Wo)).tokens,b=_.length;1===b&&_[0].isLineHolder?_[0]=m:(y||!b||s)&&_.push(m)}}}function qo(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var Xo=Object(O["reduce"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Zo(t){return!qo(t)||!!Xo[t]}function Ko(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var f=t.charAt(h);if("\n"!==f){var p=xr(f,e),d=!r&&!Zo(f);(o.length?c+p>n:i+c+p>n)?c?(s||l)&&(d?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=f,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=f,c=p)):d?(o.push(l),a.push(u),l=f,u=p):(o.push(f),a.push(p)):(c+=p,d?(l+=f,u+=p):(l&&(s+=l,l="",u=0),s+=f))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var $o="__zr_style_"+Math.round(10*Math.random()),Qo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Jo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Qo[$o]=!0;var ta=["z","z2","invisible"],ea=["invisible"],na=function(t){function e(e){return t.call(this,e)||this}return w(e,t),e.prototype._init=function(e){for(var n=Object(O["keys"])(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&oa(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent){var a=this.parent;while(a){if(a.ignore)return!1;a=a.parent}}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return r.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Zt(0,0,0,0)),e?Zt.applyTransform(t,n,e):t.copy(n),(i||o||a)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(a),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+a-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Zt(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"===typeof t?this.style[t]=e:Object(O["extend"])(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=_e,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&_e)},e.prototype.styleUpdated=function(){this.__dirty&=~_e},e.prototype.createStyle=function(t){return Object(O["createObject"])(Qo,t)},e.prototype.useStyle=function(t){t[$o]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[$o]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,ta)},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=Object(O["keys"])(u),h=0;h<c.length;h++){var f=c[h];f in s&&(s[f]=s[f],this.style[f]=u[f])}var p=Object(O["keys"])(s);for(h=0;h<p.length;h++){f=p[h];this.style[f]=this.style[f]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var d=this.__inHover?ea:ta;for(h=0;h<d.length;h++){f=d[h];n&&null!=n[f]?this[f]=n[f]:l&&null!=r[f]&&(this[f]=r[f])}},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},e.prototype._mergeStyle=function(t,e){return Object(O["extend"])(t,e),t},e.prototype.getAnimationStyleProps=function(){return Jo},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=me|_e}(),e}(Hr),ra=new Zt(0,0,0,0),ia=new Zt(0,0,0,0);function oa(t,e,n){return ra.copy(t.getBoundingRect()),t.transform&&ra.applyTransform(t.transform),ia.width=e,ia.height=n,!ra.intersect(ia)}var aa=na,sa=Math.min,la=Math.max,ua=Math.sin,ca=Math.cos,ha=2*Math.PI,fa=M(),pa=M(),da=M();function ga(t,e,n,r,i,o){i[0]=sa(t,n),i[1]=sa(e,r),o[0]=la(t,n),o[1]=la(e,r)}var va=[],ya=[];function ma(t,e,n,r,i,o,a,s,l,u){var c=Ge,h=Ve,f=c(t,n,i,a,va);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<f;p++){var d=h(t,n,i,a,va[p]);l[0]=sa(d,l[0]),u[0]=la(d,u[0])}f=c(e,r,o,s,ya);for(p=0;p<f;p++){var g=h(e,r,o,s,ya[p]);l[1]=sa(g,l[1]),u[1]=la(g,u[1])}l[0]=sa(t,l[0]),u[0]=la(t,u[0]),l[0]=sa(a,l[0]),u[0]=la(a,u[0]),l[1]=sa(e,l[1]),u[1]=la(e,u[1]),l[1]=sa(s,l[1]),u[1]=la(s,u[1])}function _a(t,e,n,r,i,o,a,s){var l=$e,u=Xe,c=la(sa(l(t,n,i),1),0),h=la(sa(l(e,r,o),1),0),f=u(t,n,i,c),p=u(e,r,o,h);a[0]=sa(t,i,f),a[1]=sa(e,o,p),s[0]=la(t,i,f),s[1]=la(e,o,p)}function ba(t,e,n,r,i,o,a,s,l){var u=X,c=Z,h=Math.abs(i-o);if(h%ha<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(fa[0]=ca(i)*n+t,fa[1]=ua(i)*r+e,pa[0]=ca(o)*n+t,pa[1]=ua(o)*r+e,u(s,fa,pa),c(l,fa,pa),i%=ha,i<0&&(i+=ha),o%=ha,o<0&&(o+=ha),i>o&&!a?o+=ha:i<o&&a&&(i+=ha),a){var f=o;o=i,i=f}for(var p=0;p<o;p+=Math.PI/2)p>i&&(da[0]=ca(p)*n+t,da[1]=ua(p)*r+e,u(s,da,s),c(l,da,l))}var xa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},wa=[],Sa=[],Oa=[],Ma=[],Ta=[],Ca=[],Ia=Math.min,ka=Math.max,Da=Math.cos,Aa=Math.sin,ja=Math.abs,Pa=Math.PI,La=2*Pa,Ra="undefined"!==typeof Float32Array,Ea=[];function Na(t){var e=Math.round(t/Pa*1e8)/1e8;return e%2*Pa}function Ba(t,e){var n=Na(t[0]);n<0&&(n+=La);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=La?i=n+La:e&&n-i>=La?i=n-La:!e&&n>i?i=n+(La-Na(n-i)):e&&n<i&&(i=n-(La-Na(i-n))),t[0]=n,t[1]=i}var Fa=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=ja(n/nr/t)||0,this._uy=ja(n/nr/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(xa.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=ja(t-this._xi),r=ja(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(xa.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(xa.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(xa.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),Ea[0]=r,Ea[1]=i,Ba(Ea,o),r=Ea[0],i=Ea[1];var a=i-r;return this.addData(xa.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=Da(i)*n+t,this._yi=Aa(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(xa.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(xa.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Ra||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();Ra&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<e;i++)for(var o=t[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},t.prototype.addData=function(t,e,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Ra&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Oa[0]=Oa[1]=Ta[0]=Ta[1]=Number.MAX_VALUE,Ma[0]=Ma[1]=Ca[0]=Ca[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],r=e[t+1],i=n,o=r),a){case xa.M:n=i=e[t++],r=o=e[t++],Ta[0]=i,Ta[1]=o,Ca[0]=i,Ca[1]=o;break;case xa.L:ga(n,r,e[t],e[t+1],Ta,Ca),n=e[t++],r=e[t++];break;case xa.C:ma(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Ta,Ca),n=e[t++],r=e[t++];break;case xa.Q:_a(n,r,e[t++],e[t++],e[t],e[t+1],Ta,Ca),n=e[t++],r=e[t++];break;case xa.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],f=e[t++],p=e[t++]+f;t+=1;var d=!e[t++];s&&(i=Da(f)*c+l,o=Aa(f)*h+u),ba(l,u,c,h,f,p,d,Ta,Ca),n=Da(p)*c+l,r=Aa(p)*h+u;break;case xa.R:i=n=e[t++],o=r=e[t++];var g=e[t++],v=e[t++];ga(i,o,i+g,o+v,Ta,Ca);break;case xa.Z:n=i,r=o;break}X(Oa,Oa,Ta),Z(Ma,Ma,Ca)}return 0===t&&(Oa[0]=Oa[1]=Ma[0]=Ma[1]=0),new Zt(Oa[0],Oa[1],Ma[0]-Oa[0],Ma[1]-Oa[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var f=t[h++],p=1===h;p&&(i=t[h],o=t[h+1],a=i,s=o);var d=-1;switch(f){case xa.M:i=a=t[h++],o=s=t[h++];break;case xa.L:var g=t[h++],v=t[h++],y=g-i,m=v-o;(ja(y)>n||ja(m)>r||h===e-1)&&(d=Math.sqrt(y*y+m*m),i=g,o=v);break;case xa.C:var _=t[h++],b=t[h++],x=(g=t[h++],v=t[h++],t[h++]),w=t[h++];d=qe(i,o,_,b,g,v,x,w,10),i=x,o=w;break;case xa.Q:_=t[h++],b=t[h++],g=t[h++],v=t[h++];d=tn(i,o,_,b,g,v,10),i=g,o=v;break;case xa.A:var S=t[h++],O=t[h++],M=t[h++],T=t[h++],C=t[h++],I=t[h++],k=I+C;h+=1,p&&(a=Da(C)*M+S,s=Aa(C)*T+O),d=ka(M,T)*Ia(La,Math.abs(I)),i=Da(k)*M+S,o=Aa(k)*T+O;break;case xa.R:a=i=t[h++],s=o=t[h++];var D=t[h++],A=t[h++];d=2*D+2*A;break;case xa.Z:y=a-i,m=s-o;d=Math.sqrt(y*y+m*m),i=a,o=s;break}d>=0&&(l[c++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,h,f,p=this.data,d=this._ux,g=this._uy,v=this._len,y=e<1,m=0,_=0,b=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u,c))t:for(var x=0;x<v;){var w=p[x++],S=1===x;switch(S&&(i=p[x],o=p[x+1],n=i,r=o),w!==xa.L&&b>0&&(t.lineTo(h,f),b=0),w){case xa.M:n=i=p[x++],r=o=p[x++],t.moveTo(i,o);break;case xa.L:a=p[x++],s=p[x++];var O=ja(a-i),M=ja(s-o);if(O>d||M>g){if(y){var T=l[_++];if(m+T>c){var C=(c-m)/T;t.lineTo(i*(1-C)+a*C,o*(1-C)+s*C);break t}m+=T}t.lineTo(a,s),i=a,o=s,b=0}else{var I=O*O+M*M;I>b&&(h=a,f=s,b=I)}break;case xa.C:var k=p[x++],D=p[x++],A=p[x++],j=p[x++],P=p[x++],L=p[x++];if(y){T=l[_++];if(m+T>c){C=(c-m)/T;Ue(i,k,A,P,C,wa),Ue(o,D,j,L,C,Sa),t.bezierCurveTo(wa[1],Sa[1],wa[2],Sa[2],wa[3],Sa[3]);break t}m+=T}t.bezierCurveTo(k,D,A,j,P,L),i=P,o=L;break;case xa.Q:k=p[x++],D=p[x++],A=p[x++],j=p[x++];if(y){T=l[_++];if(m+T>c){C=(c-m)/T;Qe(i,k,A,C,wa),Qe(o,D,j,C,Sa),t.quadraticCurveTo(wa[1],Sa[1],wa[2],Sa[2]);break t}m+=T}t.quadraticCurveTo(k,D,A,j),i=A,o=j;break;case xa.A:var R=p[x++],E=p[x++],N=p[x++],B=p[x++],F=p[x++],z=p[x++],V=p[x++],H=!p[x++],W=N>B?N:B,G=ja(N-B)>.001,U=F+z,Y=!1;if(y){T=l[_++];m+T>c&&(U=F+z*(c-m)/T,Y=!0),m+=T}if(G&&t.ellipse?t.ellipse(R,E,N,B,V,F,U,H):t.arc(R,E,W,F,U,H),Y)break t;S&&(n=Da(F)*N+R,r=Aa(F)*B+E),i=Da(U)*N+R,o=Aa(U)*B+E;break;case xa.R:n=i=p[x],r=o=p[x+1],a=p[x++],s=p[x++];var q=p[x++],X=p[x++];if(y){T=l[_++];if(m+T>c){var Z=c-m;t.moveTo(a,s),t.lineTo(a+Ia(Z,q),s),Z-=q,Z>0&&t.lineTo(a+q,s+Ia(Z,X)),Z-=X,Z>0&&t.lineTo(a+ka(q-Z,0),s+X),Z-=q,Z>0&&t.lineTo(a,s+ka(X-Z,0));break t}m+=T}t.rect(a,s,q,X);break;case xa.Z:if(y){T=l[_++];if(m+T>c){C=(c-m)/T;t.lineTo(i*(1-C)+n*C,o*(1-C)+r*C);break t}m+=T}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=xa,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),za=Fa;function Va(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=t;if(a>e+s&&a>r+s||a<e-s&&a<r-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-r)/(t-n),u=(t*r-n*e)/(t-n);var c=l*o-a+u,h=c*c/(l*l+1);return h<=s/2*s/2}function Ha(t,e,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>r+h&&c>o+h&&c>s+h||c<e-h&&c<r-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>i+h&&u>a+h||u<t-h&&u<n-h&&u<i-h&&u<a-h)return!1;var f=Ye(t,e,n,r,i,o,a,s,u,c,null);return f<=h/2}function Wa(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>r+u&&l>o+u||l<e-u&&l<r-u&&l<o-u||s>t+u&&s>n+u&&s>i+u||s<t-u&&s<n-u&&s<i-u)return!1;var c=Je(t,e,n,r,i,o,s,l,null);return c<=u/2}var Ga=2*Math.PI;function Ua(t){return t%=Ga,t<0&&(t+=Ga),t}var Ya=2*Math.PI;function qa(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%Ya<1e-4)return!0;if(o){var h=r;r=Ua(i),i=Ua(h)}else r=Ua(r),i=Ua(i);r>i&&(i+=Ya);var f=Math.atan2(l,s);return f<0&&(f+=Ya),f>=r&&f<=i||f+Ya>=r&&f+Ya<=i}function Xa(t,e,n,r,i,o){if(o>e&&o>r||o<e&&o<r)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;1!==a&&0!==a||(s=r<e?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}var Za=za.CMD,Ka=2*Math.PI,$a=1e-4;function Qa(t,e){return Math.abs(t-e)<$a}var Ja=[-1,-1,-1],ts=[-1,-1];function es(){var t=ts[0];ts[0]=ts[1],ts[1]=t}function ns(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u<e&&u<r&&u<o&&u<s)return 0;var c=We(e,r,o,s,u,Ja);if(0===c)return 0;for(var h=0,f=-1,p=void 0,d=void 0,g=0;g<c;g++){var v=Ja[g],y=0===v||1===v?.5:1,m=Ve(t,n,i,a,v);m<l||(f<0&&(f=Ge(e,r,o,s,ts),ts[1]<ts[0]&&f>1&&es(),p=Ve(e,r,o,s,ts[0]),f>1&&(d=Ve(e,r,o,s,ts[1]))),2===f?v<ts[0]?h+=p<e?y:-y:v<ts[1]?h+=d<p?y:-y:h+=s<d?y:-y:v<ts[0]?h+=p<e?y:-y:h+=s<p?y:-y)}return h}function rs(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=Ke(e,r,o,s,Ja);if(0===l)return 0;var u=$e(e,r,o);if(u>=0&&u<=1){for(var c=0,h=Xe(e,r,o,u),f=0;f<l;f++){var p=0===Ja[f]||1===Ja[f]?.5:1,d=Xe(t,n,i,Ja[f]);d<a||(Ja[f]<u?c+=h<e?p:-p:c+=o<h?p:-p)}return c}p=0===Ja[0]||1===Ja[0]?.5:1,d=Xe(t,n,i,Ja[0]);return d<a?0:o<e?p:-p}function is(t,e,n,r,i,o,a,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ja[0]=-l,Ja[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Ka-1e-4){r=0,i=Ka;var c=o?1:-1;return a>=Ja[0]+t&&a<=Ja[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Ka,i+=Ka);for(var f=0,p=0;p<2;p++){var d=Ja[p];if(d+t>a){var g=Math.atan2(s,d);c=o?1:-1;g<0&&(g=Ka+g),(g>=r&&g<=i||g+Ka>=r&&g+Ka<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),f+=c)}}return f}function os(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,f=0,p=0,d=0;d<l;){var g=s[d++],v=1===d;switch(g===Za.M&&d>1&&(n||(u+=Xa(c,h,f,p,r,i))),v&&(c=s[d],h=s[d+1],f=c,p=h),g){case Za.M:f=s[d++],p=s[d++],c=f,h=p;break;case Za.L:if(n){if(Va(c,h,s[d],s[d+1],e,r,i))return!0}else u+=Xa(c,h,s[d],s[d+1],r,i)||0;c=s[d++],h=s[d++];break;case Za.C:if(n){if(Ha(c,h,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=ns(c,h,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],r,i)||0;c=s[d++],h=s[d++];break;case Za.Q:if(n){if(Wa(c,h,s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=rs(c,h,s[d++],s[d++],s[d],s[d+1],r,i)||0;c=s[d++],h=s[d++];break;case Za.A:var y=s[d++],m=s[d++],_=s[d++],b=s[d++],x=s[d++],w=s[d++];d+=1;var S=!!(1-s[d++]);o=Math.cos(x)*_+y,a=Math.sin(x)*b+m,v?(f=o,p=a):u+=Xa(c,h,o,a,r,i);var O=(r-y)*b/_+y;if(n){if(qa(y,m,b,x,x+w,S,e,O,i))return!0}else u+=is(y,m,b,x,x+w,S,O,i);c=Math.cos(x+w)*_+y,h=Math.sin(x+w)*b+m;break;case Za.R:f=c=s[d++],p=h=s[d++];var M=s[d++],T=s[d++];if(o=f+M,a=p+T,n){if(Va(f,p,o,p,e,r,i)||Va(o,p,o,a,e,r,i)||Va(o,a,f,a,e,r,i)||Va(f,a,f,p,e,r,i))return!0}else u+=Xa(o,p,o,a,r,i),u+=Xa(f,a,f,p,r,i);break;case Za.Z:if(n){if(Va(c,h,f,p,e,r,i))return!0}else u+=Xa(c,h,f,p,r,i);c=f,h=p;break}}return n||Qa(h,p)||(u+=Xa(c,h,f,p,r,i)||0),0!==u}function as(t,e,n){return os(t,0,!1,e,n)}function ss(t,e,n,r){return os(t,e,!0,n,r)}var ls=Object(O["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Qo),us={style:Object(O["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Jo.style)},cs=gr.concat(["invisible","culling","z","z2","zlevel","parent"]),hs=function(t){function e(e){return t.call(this,e)||this}return w(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<cs.length;++s)i[cs[s]]=this[cs[s]];i.__dirty|=me}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Object(O["keys"])(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?Object(O["extend"])(this.style,a):this.useStyle(a):"shape"===o?Object(O["extend"])(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Object(O["isString"])(t)){var e=Object(an["lum"])(t,0);return e>.5?ir:e>.2?ar:or}if(t)return or}return ir},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(O["isString"])(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(an["lum"])(t,0)<rr;if(r===i)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~be},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new za(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&be)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),ss(o,a/s,t,e)))return!0}if(this.hasFill())return as(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=be,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(O["extend"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&be)},e.prototype.createStyle=function(t){return Object(O["createObject"])(ls,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(O["extend"])({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(O["extend"])({},r.shape),Object(O["extend"])(s,n.shape)):(s=Object(O["extend"])({},i?this.shape:r.shape),Object(O["extend"])(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Object(O["extend"])({},this.shape);for(var u={},c=Object(O["keys"])(s),h=0;h<c.length;h++){var f=c[h];"object"===typeof s[f]?this.shape[f]=s[f]:u[f]=s[f]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},e.prototype.getAnimationStyleProps=function(){return us},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return w(n,e),n.prototype.getDefaultStyle=function(){return Object(O["clone"])(t.style)},n.prototype.getDefaultShape=function(){return Object(O["clone"])(t.shape)},n}(e);for(var r in t)"function"===typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=me|_e|be}(),e}(aa),fs=hs,ps=Object(O["defaults"])({strokeFirst:!0,font:_r["a"],x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},ls),ds=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(O["createObject"])(ps,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Sr(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(aa);ds.prototype.type="tspan";var gs=ds,vs=Object(O["defaults"])({x:0,y:0},Qo),ys={style:Object(O["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Jo.style)};function ms(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var _s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.createStyle=function(t){return Object(O["createObject"])(vs,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=ms(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return ys},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Zt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(aa);_s.prototype.type="image";var bs=_s;function xs(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>u&&(a=n+r,n*=u/a,r*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),r+i>c&&(a=r+i,r*=c/a,i*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var ws=Math.round;function Ss(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(ws(2*r)===ws(2*i)&&(t.x1=t.x2=Ms(r,s,!0)),ws(2*o)===ws(2*a)&&(t.y1=t.y2=Ms(o,s,!0)),t):t}}function Os(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Ms(r,s,!0),t.y=Ms(i,s,!0),t.width=Math.max(Ms(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Ms(i+a,s,!1)-t.y,0===a?0:1),t):t}}function Ms(t,e,n){if(!e)return t;var r=ws(2*t);return(r+ws(e))%2===0?r/2:(r+(n?1:-1))/2}var Ts=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),Cs={},Is=function(t){function e(e){return t.call(this,e)||this}return w(e,t),e.prototype.getDefaultShape=function(){return new Ts},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=Os(Cs,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?xs(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(fs);Is.prototype.type="rect";var ks=Is,Ds={fill:"#000"},As=2,js={style:Object(O["defaults"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Jo.style)},Ps=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Ds,n.attr(e),n}return w(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,zs(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Zt(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),r=r||t.clone(),r.union(t)):(r=r||a.clone(),r.union(a))}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Ds},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return Object(O["extend"])(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=Object(O["keys"])(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},Object(O["extend"])(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return js},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||_r["a"],n=t.padding,r=Us(t),i=Vo(r,t),o=Ys(t),a=!!t.backgroundColor,s=i.outerHeight,l=i.outerWidth,u=i.contentWidth,c=i.lines,h=i.lineHeight,f=this._defaultStyle,p=t.x||0,d=t.y||0,g=t.align||f.align||"left",v=t.verticalAlign||f.verticalAlign||"top",y=p,m=Mr(d,i.contentHeight,v);if(o||n){var _=Or(p,l,g),b=Mr(d,s,v);o&&this._renderBackground(t,t,_,b,l,s)}m+=h/2,n&&(y=Gs(p,g,n),"top"===v?m+=n[0]:"bottom"===v&&(m-=n[2]));for(var x=0,w=!1,S=(Ws("fill"in t?t.fill:(w=!0,f.fill))),O=(Hs("stroke"in t?t.stroke:a||f.autoStroke&&!w?null:(x=As,f.stroke))),M=t.textShadowBlur>0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,I=0;I<c.length;I++){var k=this._getOrCreateChild(gs),D=k.createStyle();k.useStyle(D),D.text=c[I],D.x=y,D.y=m,g&&(D.textAlign=g),D.textBaseline="middle",D.opacity=t.opacity,D.strokeFirst=!0,M&&(D.shadowBlur=t.textShadowBlur||0,D.shadowColor=t.textShadowColor||"transparent",D.shadowOffsetX=t.textShadowOffsetX||0,D.shadowOffsetY=t.textShadowOffsetY||0),D.stroke=O,D.fill=S,O&&(D.lineWidth=t.lineWidth||x,D.lineDash=t.lineDash,D.lineDashOffset=t.lineDashOffset||0),D.font=e,Bs(D,t),m+=h,T&&k.setBoundingRect(new Zt(Or(D.x,t.width,D.textAlign),Mr(D.y,C,D.textBaseline),u,C))}},e.prototype._updateRichTexts=function(){var t=this.style,e=Us(t),n=Uo(e,t),r=n.width,i=n.outerWidth,o=n.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,c=t.align||u.align,h=t.verticalAlign||u.verticalAlign,f=Or(s,i,c),p=Mr(l,o,h),d=f,g=p;a&&(d+=a[3],g+=a[0]);var v=d+r;Ys(t)&&this._renderBackground(t,t,f,p,i,o);for(var y=!!t.backgroundColor,m=0;m<n.lines.length;m++){var _=n.lines[m],b=_.tokens,x=b.length,w=_.lineHeight,S=_.width,O=0,M=d,T=v,C=x-1,I=void 0;while(O<x&&(I=b[O],!I.align||"left"===I.align))this._placeToken(I,t,w,g,M,"left",y),S-=I.width,M+=I.width,O++;while(C>=0&&(I=b[C],"right"===I.align))this._placeToken(I,t,w,g,T,"right",y),S-=I.width,T-=I.width,C--;M+=(r-(M-d)-(v-T)-S)/2;while(O<=C)I=b[O],this._placeToken(I,t,w,g,M+I.width/2,"center",y),M+=I.width,O++;g+=w}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2);var c=!t.isLineHolder&&Ys(s);c&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,f=t.textPadding;f&&(i=Gs(i,o,f),u-=t.height/2-f[0]-t.innerHeight/2);var p=this._getOrCreateChild(gs),d=p.createStyle();p.useStyle(d);var g=this._defaultStyle,v=!1,y=0,m=Ws("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),_=Hs("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!v?null:(y=As,g.stroke)),b=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=i,d.y=u,b&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||_r["a"],d.opacity=Object(O["retrieve3"])(s.opacity,e.opacity,1),Bs(d,s),_&&(d.lineWidth=Object(O["retrieve3"])(s.lineWidth,e.lineWidth,y),d.lineDash=Object(O["retrieve2"])(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=_),m&&(d.fill=m);var x=t.contentWidth,w=t.contentHeight;p.setBoundingRect(new Zt(Or(d.x,x,d.textAlign),Mr(d.y,w,d.textBaseline),x,w))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,f=l&&!h,p=t.borderRadius,d=this;if(f||t.lineHeight||u&&c){a=this._getOrCreateChild(ks),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=p,a.dirtyShape()}if(f){var v=a.style;v.fill=l||null,v.fillOpacity=Object(O["retrieve2"])(t.fillOpacity,1)}else if(h){s=this._getOrCreateChild(bs),s.onload=function(){d.dirtyStyle()};var y=s.style;y.image=l.image,y.x=n,y.y=r,y.width=i,y.height=o}if(u&&c){v=a.style;v.lineWidth=u,v.stroke=c,v.strokeOpacity=Object(O["retrieve2"])(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=Object(O["retrieve3"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return Fs(t)&&(e=[t.fontStyle,t.fontWeight,Ns(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(O["trim"])(e)||t.textFont||t.font},e}(aa),Ls={left:!0,right:1,center:1},Rs={top:1,bottom:1,middle:1},Es=["fontStyle","fontWeight","fontSize","fontFamily"];function Ns(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?_r["b"]+"px":t+"px":t}function Bs(t,e){for(var n=0;n<Es.length;n++){var r=Es[n],i=e[r];null!=i&&(t[r]=i)}}function Fs(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function zs(t){return Vs(t),Object(O["each"])(t.rich,Vs),t}function Vs(t){if(t){t.font=Ps.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Ls[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Rs[n]?n:"top";var r=t.padding;r&&(t.padding=Object(O["normalizeCssArray"])(t.padding))}}function Hs(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ws(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Gs(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Us(t){var e=t.text;return null!=e&&(e+=""),e}function Ys(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var qs=Ps,Xs=no(),Zs=function(t,e,n,r){if(r){var i=Xs(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,i.ssrType="chart","group"===r.type&&r.traverse((function(r){var i=Xs(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e,i.ssrType="chart"}))}},Ks=1,$s={},Qs=no(),Js=no(),tl=0,el=1,nl=2,rl=["emphasis","blur","select"],il=["normal","emphasis","blur","select"],ol=10,al=9,sl="highlight",ll="downplay",ul="select",cl="unselect",hl="toggleSelect";function fl(t){return null!=t&&"none"!==t}function pl(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function dl(t){pl(t,"emphasis",nl)}function gl(t){t.hoverState===nl&&pl(t,"normal",tl)}function vl(t){pl(t,"blur",el)}function yl(t){t.hoverState===el&&pl(t,"normal",tl)}function ml(t){t.selected=!0}function _l(t){t.selected=!1}function bl(t,e,n){e(t,n)}function xl(t,e,n){bl(t,e,n),t.isGroup&&t.traverse((function(t){bl(t,e,n)}))}function wl(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}function Sl(t,e,n,r){var i=n&&Object(O["indexOf"])(n,"select")>=0,o=!1;if(t instanceof fs){var a=Qs(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(fl(s)||fl(l)){r=r||{};var u=r.style||{};"inherit"===u.fill?(o=!0,r=Object(O["extend"])({},r),u=Object(O["extend"])({},u),u.fill=s):!fl(u.fill)&&fl(s)?(o=!0,r=Object(O["extend"])({},r),u=Object(O["extend"])({},u),u.fill=Object(an["liftColor"])(s)):!fl(u.stroke)&&fl(l)&&(o||(r=Object(O["extend"])({},r),u=Object(O["extend"])({},u)),u.stroke=Object(an["liftColor"])(l)),r.style=u}}if(r&&null==r.z2){o||(r=Object(O["extend"])({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:ol)}return r}function Ol(t,e,n){if(n&&null==n.z2){n=Object(O["extend"])({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:al)}return n}function Ml(t,e,n){var r=Object(O["indexOf"])(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:wl(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(O["extend"])({},n),a=Object(O["extend"])({opacity:r?i:.1*o.opacity},a),n.style=a),n}function Tl(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return Sl(this,t,e,n);if("blur"===t)return Ml(this,t,n);if("select"===t)return Ol(this,t,n)}return n}function Cl(t){t.stateProxy=Tl;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Tl),n&&(n.stateProxy=Tl)}function Il(t,e){!El(t,e)&&!t.__highByOuter&&xl(t,dl)}function kl(t,e){!El(t,e)&&!t.__highByOuter&&xl(t,gl)}function Dl(t,e){t.__highByOuter|=1<<(e||0),xl(t,dl)}function Al(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&xl(t,gl)}function jl(t){xl(t,vl)}function Pl(t){xl(t,yl)}function Ll(t){xl(t,ml)}function Rl(t){xl(t,_l)}function El(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Nl(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=Js(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){yl(t)})),a&&n.push(i)),o.isBlured=!1})),Object(O["each"])(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Bl(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&Pl(r)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=i.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries((function(t){var i=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:i;if(!("series"===n&&!i||"coordinateSystem"===n&&!c||"series"===e&&i)){var h=r.getViewOfSeriesModel(t);if(h.group.traverse((function(t){t.__highByOuter&&i&&"self"===e||vl(t)})),Object(O["isArrayLike"])(e))o(t.getData(),e);else if(Object(O["isObject"])(e))for(var f=Object(O["keys"])(e),p=0;p<f.length;p++)o(t.getData(f[p]),e[f[p]]);l.push(t),Js(t).isBlured=!0}})),i.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}}))}}function Fl(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){Js(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(t){vl(t)}))}}}function zl(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var o=eo(i,e);o=(Object(O["isArray"])(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a){var s=i.count(),l=0;while(!a&&l<s)a=i.getItemGraphicEl(l++)}if(a){var u=Xs(a);Bl(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&Bl(r,c,h,n)}}}function Vl(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Xs(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function Hl(t,e,n){var r=Xs(t),i=Vl(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&Fl(r.componentMainType,r.componentIndex,n),Object(O["each"])(o,(function(t){return Il(t,e)}))):(Bl(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&Fl(r.componentMainType,r.componentIndex,n),Il(t,e))}function Wl(t,e,n){Nl(n);var r=Xs(t),i=Vl(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Object(O["each"])(i,(function(t){return kl(t,e)})):kl(t,e)}function Gl(t,e,n){if(ru(e)){var r=e.dataType,i=t.getData(r),o=eo(i,e);Object(O["isArray"])(o)||(o=[o]),t[e.type===hl?"toggleSelect":e.type===ul?"select":"unselect"](o,r)}}function Ul(t){var e=t.getAllData();Object(O["each"])(e,(function(e){var n=e.data,r=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,r)?Ll(e):Rl(e)}))}))}function Yl(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();Object(O["each"])(n,(function(n){n.data;var r=n.type,i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function ql(t,e,n){tu(t,!0),xl(t,Cl),Kl(t,e,n)}function Xl(t){tu(t,!1)}function Zl(t,e,n,r){r?Xl(t):ql(t,e,n)}function Kl(t,e,n){var r=Xs(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var $l=["emphasis","blur","select"],Ql={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Jl(t,e,n,r){n=n||"itemStyle";for(var i=0;i<$l.length;i++){var o=$l[i],a=e.getModel([o,n]),s=t.ensureState(o);s.style=r?r(a):a[Ql[n]]()}}function tu(t,e){var n=!1===e,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function eu(t){return!(!t||!t.__highDownDispatcher)}function nu(t){var e=$s[t];return null==e&&Ks<=32&&(e=$s[t]=Ks++),e}function ru(t){var e=t.type;return e===ul||e===cl||e===hl}function iu(t){var e=t.type;return e===sl||e===ll}function ou(t){var e=Qs(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var au=no();function su(t,e,n,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,c=void 0,h=void 0;r?(u=Object(O["retrieve2"])(r.duration,200),c=Object(O["retrieve2"])(r.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(c=o.easing),null!=o.delay&&(h=o.delay)),Object(O["isFunction"])(h)&&(h=h(n,i)),Object(O["isFunction"])(u)&&(u=u(n));var f={duration:u||0,delay:h,easing:c};return f}return null}function lu(t,e,n,r,i,o,a){var s,l=!1;Object(O["isFunction"])(i)?(a=o,o=i,i=null):Object(O["isObject"])(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=su(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var h=c.duration,f=c.delay,p=c.easing,d={duration:h,delay:f||0,easing:p,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,d):e.animateTo(n,d)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function uu(t,e,n,r,i,o){lu("update",t,e,n,r,i,o)}function cu(t,e,n,r,i,o){lu("enter",t,e,n,r,i,o)}function hu(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if("leave"===n.scope)return!0}return!1}function fu(t,e,n,r,i,o){hu(t)||lu("leave",t,e,n,r,i,o)}function pu(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),fu(t,{style:{opacity:0}},e,n,r)}function du(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||pu(t,e,n,r)})):pu(t,e,n,r)}function gu(t){au(t).oldStyle=t.style}var vu={};function yu(t,e){for(var n=0;n<rl.length;n++){var r=rl[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function mu(t,e,n){var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Object(O["isFunction"])(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<rl.length;u++){var c=rl[u],h=e[c];l[c]=Object(O["retrieve2"])(i?i.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,r)}return l}function _u(t,e,n,r){n=n||vu;for(var i=t instanceof qs,o=!1,a=0;a<il.length;a++){var s=e[il[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?t:t.getTextContent();if(o){i||(l||(l=new qs,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=mu(n,e),c=e.normal,h=!!c.getShallow("show"),f=xu(c,r&&r.normal,n,!1,!i);f.text=u.normal,i||t.setTextConfig(wu(c,n,!1));for(a=0;a<rl.length;a++){var p=rl[a];s=e[p];if(s){var d=l.ensureState(p),g=!!Object(O["retrieve2"])(s.getShallow("show"),h);if(g!==h&&(d.ignore=!g),d.style=xu(s,r&&r[p],n,!0,!i),d.style.text=u[p],!i){var v=t.ensureState(p);v.textConfig=wu(s,n,!0)}}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(f.x=l.style.x),null!=l.style.y&&(f.y=l.style.y),l.ignore=!h,l.useStyle(f),l.dirty(),n.enableTextSetter&&(Du(l).setLabelText=function(t){var r=mu(n,e,t);yu(l,r)})}else l&&(l.ignore=!0);t.dirty()}function bu(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<rl.length;r++){var i=rl[r];n[i]=t.getModel([i,e])}return n}function xu(t,e,n,r,i){var o={};return Su(o,t,n,r,i),e&&Object(O["extend"])(o,e),o}function wu(t,e,n){e=e||{};var r,i={},o=t.getShallow("rotate"),a=Object(O["retrieve2"])(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return r=t.getShallow("position")||(n?null:"inside"),"outside"===r&&(r=e.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}function Su(t,e,n,r,i){n=n||vu;var o,a=e.ecModel,s=a&&a.option.textStyle,l=Ou(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Iu(o[u]={},c,s,n,r,i,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var f=e.get("minMargin");null!=f&&(t.margin=f),Iu(t,e,s,n,r,i,!0,!1)}function Ou(t){var e;while(t&&t!==t.ecModel){var n=(t.option||vu).rich;if(n){e=e||{};for(var r=Object(O["keys"])(n),i=0;i<r.length;i++){var o=r[i];e[o]=1}}t=t.parentModel}return e}var Mu=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Tu=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Cu=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Iu(t,e,n,r,i,o,a,s){n=!i&&n||vu;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=Object(O["retrieve2"])(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var f=Object(O["retrieve2"])(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var p=Object(O["retrieve2"])(e.getShallow("textBorderType"),n.textBorderType);null!=p&&(t.lineDash=p);var d=Object(O["retrieve2"])(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=d&&(t.lineDashOffset=d),i||null!=h||s||(h=r&&r.defaultOpacity),null!=h&&(t.opacity=h),i||o||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var g=0;g<Mu.length;g++){var v=Mu[g],y=Object(O["retrieve2"])(e.getShallow(v),n[v]);null!=y&&(t[v]=y)}for(g=0;g<Tu.length;g++){v=Tu[g],y=e.getShallow(v);null!=y&&(t[v]=y)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!r.disableBox){for(g=0;g<Cu.length;g++){v=Cu[g],y=e.getShallow(v);null!=y&&(t[v]=y)}var _=e.getShallow("borderType");null!=_&&(t.borderDash=_),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function ku(t,e){var n=e&&e.getModel("textStyle");return Object(O["trim"])([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Du=no();function Au(t,e,n,r,i){var o=Du(t);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=Object(O["retrieve2"])(o.interpolatedValue,o.prevValue),l=o.value;t.percent=0,(null==o.prevValue?cu:uu)(t,{percent:1},r,e,null,u)}function u(r){var u=ho(n,o.precision,s,l,r);o.interpolatedValue=1===r?null:u;var c=mu({labelDataIndex:e,labelFetcher:i,defaultText:a?a(u):u+""},o.statesModels,u);yu(t,c)}}var ju=["textStyle","color"],Pu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Lu=new qs,Ru=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(ju):null)},t.prototype.getFont=function(){return ku({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Pu.length;n++)e[Pu[n]]=this.getShallow(Pu[n]);return Lu.useStyle(e),Lu.update(),Lu.getBoundingRect()},t}(),Eu=Ru,Nu=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Bu=Co(Nu),Fu=function(){function t(){}return t.prototype.getLineStyle=function(t){return Bu(this,t)},t}(),zu=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Vu=Co(zu),Hu=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Vu(this,t,e)},t}(),Wu=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},t.prototype.mergeOption=function(t,e){Object(O["merge"])(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t(Object(O["clone"])(this.option))},t.prototype.parsePath=function(t){return"string"===typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!S["a"].node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length;r++)if(t[r]&&(n=n&&"object"===typeof n?n[t[r]]:null,null==n))break;return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();_o(Wu),So(Wu),Object(O["mixin"])(Wu,Fu),Object(O["mixin"])(Wu,Hu),Object(O["mixin"])(Wu,Do),Object(O["mixin"])(Wu,Eu);var Gu=Wu,Uu=Math.round(10*Math.random());function Yu(t){return[t||"",Uu++].join("_")}function qu(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=vo(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=vo(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}function Xu(t,e){function n(t){var n={},o=[];return O["each"](t,(function(a){var s=r(n,a),l=s.originalDeps=e(a),u=i(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),O["each"](u,(function(t){O["indexOf"](s.predecessor,t)<0&&s.predecessor.push(t);var e=r(n,t);O["indexOf"](e.successor,t)<0&&e.successor.push(a)}))})),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function i(t,e){var n=[];return O["each"](t,(function(t){O["indexOf"](e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,i){if(t.length){var o=n(e),a=o.graph,s=o.noEntryList,l={};O["each"](t,(function(t){l[t]=!0}));while(s.length){var u=s.pop(),c=a[u],h=!!l[u];h&&(r.call(i,u,c.originalDeps.slice()),delete l[u]),O["each"](c.successor,h?p:f)}O["each"](l,(function(){var t="";throw new Error(t)}))}function f(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function p(t){l[t]=!0,f(t)}}}function Zu(t,e){return O["merge"](O["merge"]({},t,!0),e,!0)}var Ku={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},$u={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},Qu="ZH",Ju="EN",tc=Ju,ec={},nc={},rc=S["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||tc).toUpperCase();return t.indexOf(Qu)>-1?Qu:tc}():tc;function ic(t,e){t=t.toUpperCase(),nc[t]=new Gu(e),ec[t]=e}function oc(t){if(Object(O["isString"])(t)){var e=ec[t.toUpperCase()]||{};return t===Qu||t===Ju?Object(O["clone"])(e):Object(O["merge"])(Object(O["clone"])(e),Object(O["clone"])(ec[tc]),!1)}return Object(O["merge"])(Object(O["clone"])(t),Object(O["clone"])(ec[tc]),!1)}function ac(t){return nc[t]}function sc(){return nc[tc]}ic(Ju,Ku),ic(Qu,$u);var lc=1e3,uc=60*lc,cc=60*uc,hc=24*cc,fc=365*hc,pc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},dc="{yyyy}-{MM}-{dd}",gc={year:"{yyyy}",month:"{yyyy}-{MM}",day:dc,hour:dc+" "+pc.hour,minute:dc+" "+pc.minute,second:dc+" "+pc.second,millisecond:pc.none},vc=["year","month","day","hour","minute","second","millisecond"],yc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function mc(t,e){return t+="","0000".substr(0,e-t.length)+t}function _c(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function bc(t){return t===_c(t)}function xc(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function wc(t,e,n,r){var i=wi(t),o=i[Tc(n)](),a=i[Cc(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[Ic(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[kc(n)](),h=(c-1)%12+1,f=i[Dc(n)](),p=i[Ac(n)](),d=i[jc(n)](),g=r instanceof Gu?r:ac(r||rc)||sc(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),_=v.get("dayOfWeek"),b=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,mc(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,mc(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,mc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,mc(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,mc(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,mc(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,mc(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,mc(d,3)).replace(/{S}/g,d+"")}function Sc(t,e,n,r,i){var o=null;if(O["isString"](n))o=n;else if(O["isFunction"](n))o=n(t.value,e,{level:t.level});else{var a=O["extend"]({},pc);if(t.level>0)for(var s=0;s<vc.length;++s)a[vc[s]]="{primary|"+a[vc[s]]+"}";var l=n?!1===n.inherit?n:O["defaults"](n,a):a,u=Oc(t.value,i);if(l[u])o=l[u];else if(l.inherit){var c=yc.indexOf(u);for(s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(O["isArray"](o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;h=Math.min(h,o.length-1),o=o[h]}}return wc(new Date(t.value),o,i,r)}function Oc(t,e){var n=wi(t),r=n[Cc(e)]()+1,i=n[Ic(e)](),o=n[kc(e)](),a=n[Dc(e)](),s=n[Ac(e)](),l=n[jc(e)](),u=0===l,c=u&&0===s,h=c&&0===a,f=h&&0===o,p=f&&1===i,d=p&&1===r;return d?"year":p?"month":f?"day":h?"hour":c?"minute":u?"second":"millisecond"}function Mc(t,e,n){var r=O["isNumber"](t)?wi(t):t;switch(e=e||Oc(t,n),e){case"year":return r[Tc(n)]();case"half-year":return r[Cc(n)]()>=6?1:0;case"quarter":return Math.floor((r[Cc(n)]()+1)/4);case"month":return r[Cc(n)]();case"day":return r[Ic(n)]();case"half-day":return r[kc(n)]()/24;case"hour":return r[kc(n)]();case"minute":return r[Dc(n)]();case"second":return r[Ac(n)]();case"millisecond":return r[jc(n)]()}}function Tc(t){return t?"getUTCFullYear":"getFullYear"}function Cc(t){return t?"getUTCMonth":"getMonth"}function Ic(t){return t?"getUTCDate":"getDate"}function kc(t){return t?"getUTCHours":"getHours"}function Dc(t){return t?"getUTCMinutes":"getMinutes"}function Ac(t){return t?"getUTCSeconds":"getSeconds"}function jc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Pc(t){return t?"setUTCFullYear":"setFullYear"}function Lc(t){return t?"setUTCMonth":"setMonth"}function Rc(t){return t?"setUTCDate":"setDate"}function Ec(t){return t?"setUTCHours":"setHours"}function Nc(t){return t?"setUTCMinutes":"setMinutes"}function Bc(t){return t?"setUTCSeconds":"setSeconds"}function Fc(t){return t?"setUTCMilliseconds":"setMilliseconds"}function zc(t){if(!ki(t))return O["isString"](t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Vc(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Hc=O["normalizeCssArray"];function Wc(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(t){return t&&O["trim"](t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,s=t instanceof Date;if(a||s){var l=a?wi(t):t;if(!isNaN(+l))return wc(l,r,n);if(s)return"-"}if("ordinal"===e)return O["isStringSafe"](t)?i(t):O["isNumber"](t)&&o(t)?t+"":"-";var u=Ii(t);return o(u)?zc(u):O["isStringSafe"](t)?i(t):"boolean"===typeof t?t+"":"-"}var Gc=["a","b","c","d","e","f","g"],Uc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Yc(t,e,n){O["isArray"](e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=Gc[o];t=t.replace(Uc(a),Uc(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(Uc(Gc[l],s),n?pt(u):u)}return t}function qc(t,e){var n=O["isString"](t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if("html"===o)return"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+pt(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+pt(r)+";"+(e||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Xc(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=wi(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return t=t.replace("MM",mc(a,2)).replace("M",a).replace("yyyy",o).replace("yy",mc(o%100+"",2)).replace("dd",mc(s,2)).replace("d",s).replace("hh",mc(l,2)).replace("h",l).replace("mm",mc(u,2)).replace("m",u).replace("ss",mc(c,2)).replace("s",c).replace("SSS",mc(h,3)),t}function Zc(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Kc(t,e){return e=e||"transparent",O["isString"](t)?t:O["isObject"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var $c=O["each"],Qc=["left","right","top","bottom","width","height"],Jc=[["width","left","right"],["height","top","bottom"]];function th(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,h,f=l.getBoundingRect(),p=e.childAt(u+1),d=p&&p.getBoundingRect();if("horizontal"===t){var g=f.width+(d?-d.x+f.x:0);c=o+g,c>r||l.newline?(o=0,c=g,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(d?-d.y+f.y:0);h=a+v,h>i||l.newline?(o+=s+n,a=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var eh=th;O["curry"](th,"vertical"),O["curry"](th,"horizontal");function nh(t,e,n){n=Hc(n||0);var r=e.width,i=e.height,o=ui(t.left,r),a=ui(t.top,i),s=ui(t.right,r),l=ui(t.bottom,i),u=ui(t.width,r),c=ui(t.height,i),h=n[2]+n[0],f=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=r-s-f-o),isNaN(c)&&(c=i-l-h-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=r-s-u-f),isNaN(a)&&(a=i-l-c-h),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-f;break}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=r-f-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var d=new Zt(o+n[3],a+n[0],u,c);return d.margin=n,d}function rh(t){var e=t.layoutMode||t.constructor.layoutMode;return O["isObject"](e)?e:e?{type:e}:null}function ih(t,e,n){var r=n&&n.ignoreSize;!O["isArray"](r)&&(r=[r,r]);var i=a(Jc[0],0),o=a(Jc[1],1);function a(n,i){var o={},a=0,u={},c=0,h=2;if($c(n,(function(e){u[e]=t[e]})),$c(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),r[i])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(c!==h&&a){if(a>=h)return o;for(var f=0;f<n.length;f++){var p=n[f];if(!s(o,p)&&s(t,p)){o[p]=t[p];break}}return o}return u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){$c(t,(function(t){e[t]=n[t]}))}u(Jc[0],t,i),u(Jc[1],t,o)}function oh(t){return ah({},t)}function ah(t,e){return e&&t&&$c(Qc,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var sh=no(),lh=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=Yu("ec_cpt_model"),i}return w(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=rh(this),r=n?oh(t):{},i=e.getTheme();O["merge"](t,i.get(this.mainType)),O["merge"](t,this.getDefaultOption()),n&&ih(t,r,n)},e.prototype.mergeOption=function(t,e){O["merge"](this.option,t,!0);var n=rh(this);n&&ih(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!mo(t))return t.defaultOption;var e=sh(this);if(!e.defaultOption){var n=[],r=t;while(r){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=O["merge"](o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return so(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Gu);function uh(t){var e=[];return O["each"](lh.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=O["map"](e,(function(t){return vo(t).main})),"dataset"!==t&&O["indexOf"](e,"dataset")<=0&&e.unshift("dataset"),e}xo(lh,Gu),To(lh),qu(lh),Xu(lh,uh);var ch=lh,hh="";"undefined"!==typeof navigator&&(hh=navigator.platform||"");var fh="rgba(0, 0, 0, 0.2)",ph={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:fh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fh,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fh,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:hh.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},dh=Object(O["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),gh="original",vh="arrayRows",yh="objectRows",mh="keyedColumns",_h="typedArray",bh="unknown",xh="column",wh="row",Sh={Must:1,Might:2,Not:3},Oh=no();function Mh(t){Oh(t).datasetMap=Object(O["createHashMap"])()}function Th(t,e,n){var r={},i=Ih(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=Oh(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(O["each"])(t,(function(e,n){var i=Object(O["isObject"])(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=d(i)),r[i.name]=[]}));var f=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function p(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function d(t){var e=t.dimsDef;return e?e.length:1}return Object(O["each"])(t,(function(t,e){var n=t.name,i=d(t);if(null==o){var a=f.valueWayDim;p(r[n],a,i),p(l,a,i),f.valueWayDim+=i}else if(o===e)p(r[n],0,i),p(s,0,i);else{a=f.categoryWayDim;p(r[n],a,i),p(l,a,i),f.categoryWayDim+=i}})),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function Ch(t,e,n){var r={},i=Ih(t);if(!i)return r;var o,a=e.sourceFormat,s=e.dimensionsDefine;a!==yh&&a!==mh||Object(O["each"])(s,(function(t,e){"name"===(Object(O["isObject"])(t)?t.name:t)&&(o=e)}));var l=function(){for(var t={},r={},i=[],l=0,u=Math.min(5,n);l<u;l++){var c=Ah(e.data,a,e.seriesLayoutBy,s,e.startIndex,l);i.push(c);var h=c===Sh.Not;if(h&&null==t.v&&l!==o&&(t.v=l),(null==t.n||t.n===t.v||!h&&i[t.n]===Sh.Not)&&(t.n=l),f(t)&&i[t.n]!==Sh.Not)return t;h||(c===Sh.Might&&null==r.v&&l!==o&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function f(t){return null!=t.v&&null!=t.n}return f(t)?t:f(r)?r:null}();if(l){r.value=[l.v];var u=null!=o?o:l.n;r.itemName=[u],r.seriesName=[u]}return r}function Ih(t){var e=t.get("data",!0);if(!e)return so(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ao).models[0]}function kh(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?so(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ao).models:[]}function Dh(t,e){return Ah(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Ah(t,e,n,r,i,o){var a,s,l,u=5;if(Object(O["isTypedArray"])(t))return Sh.Not;if(r){var c=r[o];Object(O["isObject"])(c)?(s=c.name,l=c.type):Object(O["isString"])(c)&&(s=c)}if(null!=l)return"ordinal"===l?Sh.Must:Sh.Not;if(e===vh){var h=t;if(n===wh){for(var f=h[o],p=0;p<(f||[]).length&&p<u;p++)if(null!=(a=b(f[i+p])))return a}else for(p=0;p<h.length&&p<u;p++){var d=h[i+p];if(d&&null!=(a=b(d[o])))return a}}else if(e===yh){var g=t;if(!s)return Sh.Not;for(p=0;p<g.length&&p<u;p++){var v=g[p];if(v&&null!=(a=b(v[s])))return a}}else if(e===mh){var y=t;if(!s)return Sh.Not;f=y[s];if(!f||Object(O["isTypedArray"])(f))return Sh.Not;for(p=0;p<f.length&&p<u;p++)if(null!=(a=b(f[p])))return a}else if(e===gh){var m=t;for(p=0;p<m.length&&p<u;p++){v=m[p];var _=Fi(v);if(!Object(O["isArray"])(_))return Sh.Not;if(null!=(a=b(_[o])))return a}}function b(t){var e=Object(O["isString"])(t);return null!=t&&isFinite(t)&&""!==t?e?Sh.Might:Sh.Not:e&&"-"!==t?Sh.Must:void 0}return Sh.Not}var jh=Object(O["createHashMap"])();function Ph(t,e,n){var r=jh.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}var Lh=no(),Rh=(no(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=Ei(this.get("color",!0)),i=this.get("colorLayer",!0);return Nh(this,Lh,r,i,t,e,n)},t.prototype.clearColorPalette=function(){Bh(this,Lh)},t}());function Eh(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function Nh(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?Eh(r,a):n;if(c=c||n,c&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function Bh(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Fh,zh,Vh;"undefined"!==typeof console&&console.warn&&console.log;function Hh(t){0}function Wh(t){throw new Error(t)}var Gh="\0_ec_inner",Uh=1;var Yh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new Gu(r),this._locale=new Gu(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=$h(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,$h(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Vh(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&Object(O["each"])(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Object(O["createHashMap"])(),s=e&&e.replaceMergeMainTypeMap;function l(e){var o=Ph(this,e,Ei(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Vi(a,o,l);Ji(u,e,ch),n[e]=null,r.set(e,null),i.set(e,0);var c,h=[],f=[],p=0;Object(O["each"])(u,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=ch.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return void 0;c=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(O["extend"])({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),Object(O["extend"])(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),f.push(r),p++):(h.push(void 0),f.push(void 0))}),this),n[e]=h,r.set(e,f),i.set(e,p),"series"===e&&Fh(this)}Mh(this),Object(O["each"])(t,(function(t,e){null!=t&&(ch.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(O["clone"])(t):Object(O["merge"])(n[e],t,!0))})),s&&s.each((function(t,e){ch.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),ch.topologicalTravel(o,ch.getAllClassMainTypes(),l,this),this._seriesIndices||Fh(this)},e.prototype.getOption=function(){var t=Object(O["clone"])(this.option);return Object(O["each"])(t,(function(e,n){if(ch.hasClass(n)){for(var r=Ei(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Qi(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[Gh],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,r=t.index,i=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=r?(n=[],Object(O["each"])(Ei(r),(function(t){a[t]&&n.push(a[t])}))):n=null!=i?Zh("id",i,a):null!=o?Zh("name",o,a):Object(O["filter"])(a,(function(t){return!!t})),Kh(n,t)):[]},e.prototype.findComponents=function(t){var e=t.query,n=t.mainType,r=o(e),i=r?this.queryComponents(r):Object(O["filter"])(this._componentsMap.get(n),(function(t){return!!t}));return a(Kh(i,t));function o(t){var e=n+"Index",r=n+"Id",i=n+"Name";return!t||null==t[e]&&null==t[r]&&null==t[i]?null:{mainType:n,index:t[e],id:t[r],name:t[i]}}function a(e){return t.filter?Object(O["filter"])(e,t.filter):e}},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(Object(O["isFunction"])(t)){var i=e,o=t;r.each((function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}}))}else for(var a=Object(O["isString"])(t)?r.get(t):Object(O["isObject"])(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=Ki(t,null);return Object(O["filter"])(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Object(O["filter"])(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Object(O["filter"])(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){zh(this),Object(O["each"])(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},e.prototype.eachRawSeries=function(t,e){Object(O["each"])(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){zh(this),Object(O["each"])(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Object(O["each"])(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return zh(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){zh(this);var n=[];Object(O["each"])(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(O["createHashMap"])(n)},e.prototype.restoreData=function(t){Fh(this);var e=this._componentsMap,n=[];e.each((function(t,e){ch.hasClass(e)&&n.push(e)})),ch.topologicalTravel(n,ch.getAllClassMainTypes(),(function(n){Object(O["each"])(e.get(n),(function(e){!e||"series"===n&&qh(e,t)||e.restoreData()}))}))},e.internalField=function(){Fh=function(t){var e=t._seriesIndices=[];Object(O["each"])(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Object(O["createHashMap"])(e)},zh=function(t){0},Vh=function(t,e){t.option={},t.option[Gh]=Uh,t._componentsMap=Object(O["createHashMap"])({series:[]}),t._componentsCount=Object(O["createHashMap"])();var n=e.aria;Object(O["isObject"])(n)&&null==n.enabled&&(n.enabled=!0),Xh(e,t._theme.option),Object(O["merge"])(e,ph,!1),t._mergeOption(e,null)}}(),e}(Gu);function qh(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}function Xh(t,e){var n=t.color&&!t.colorLayer;Object(O["each"])(e,(function(e,r){"colorLayer"===r&&n||ch.hasClass(r)||("object"===typeof e?t[r]=t[r]?Object(O["merge"])(t[r],e,!1):Object(O["clone"])(e):null==t[r]&&(t[r]=e))}))}function Zh(t,e,n){if(Object(O["isArray"])(e)){var r=Object(O["createHashMap"])();return Object(O["each"])(e,(function(t){if(null!=t){var e=Ki(t,null);null!=e&&r.set(t,!0)}})),Object(O["filter"])(n,(function(e){return e&&r.get(e[t])}))}var i=Ki(e,null);return Object(O["filter"])(n,(function(e){return e&&null!=i&&e[t]===i}))}function Kh(t,e){return e.hasOwnProperty("subType")?Object(O["filter"])(t,(function(t){return t&&t.subType===e.subType})):t}function $h(t){var e=Object(O["createHashMap"])();return t&&Object(O["each"])(Ei(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Object(O["mixin"])(Yh,Rh);var Qh=Yh,Jh=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],tf=function(){function t(t){O["each"](Jh,(function(e){this[e]=O["bind"](t[e],t)}),this)}return t}(),ef=tf,nf={},rf=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];O["each"](nf,(function(r,i){var o=r.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){O["each"](this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){nf[t]=e},t.get=function(t){return nf[t]},t}(),of=rf,af=/^(min|max)?(.+)$/,sf=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Object(O["each"])(Ei(t.series),(function(t){t&&t.data&&Object(O["isTypedArray"])(t.data)&&Object(O["setAsPrimitive"])(t.data)})),Object(O["each"])(Ei(t.dataset),(function(t){t&&t.source&&Object(O["isTypedArray"])(t.source)&&Object(O["setAsPrimitive"])(t.source)}))),t=Object(O["clone"])(t);var r=this._optionBackup,i=lf(t,e,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(O["clone"])(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=Object(O["clone"])(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,o=[],a=[];if(!r.length&&!i)return a;for(var s=0,l=r.length;s<l;s++)uf(r[s].query,e,n)&&o.push(s);return!o.length&&i&&(o=[-1]),o.length&&!hf(o,this._currentMediaIndices)&&(a=Object(O["map"])(o,(function(t){return Object(O["clone"])(-1===t?i.option:r[t].option)}))),this._currentMediaIndices=o,a},t}();function lf(t,e,n){var r,i,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);function f(t){Object(O["each"])(e,(function(e){e(t,n)}))}return a?(i=a,i.timeline||(i.timeline=s)):((h||c)&&(t.options=t.media=null),i=t),c&&Object(O["isArray"])(u)&&Object(O["each"])(u,(function(t){t&&t.option&&(t.query?o.push(t):r||(r=t))})),f(i),Object(O["each"])(l,(function(t){return f(t)})),Object(O["each"])(o,(function(t){return f(t.option)})),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}function uf(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return Object(O["each"])(t,(function(t,e){var n=e.match(af);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();cf(r[a],t,o)||(i=!1)}})),i}function cf(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function hf(t,e){return t.join(",")===e.join(",")}var ff=sf,pf=O["each"],df=O["isObject"],gf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function vf(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=gf.length;n<r;n++){var i=gf[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?O["merge"](t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?O["merge"](t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function yf(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,O["defaults"](t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function mf(t){yf(t,"itemStyle"),yf(t,"lineStyle"),yf(t,"areaStyle"),yf(t,"label"),yf(t,"labelLine"),yf(t,"upperLabel"),yf(t,"edgeLabel")}function _f(t,e){var n=df(t)&&t[e],r=df(n)&&n.textStyle;if(r){0;for(var i=0,o=Bi.length;i<o;i++){var a=Bi[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function bf(t){t&&(mf(t),_f(t,"label"),t.emphasis&&_f(t.emphasis,"label"))}function xf(t){if(df(t)){vf(t),mf(t),_f(t,"label"),_f(t,"upperLabel"),_f(t,"edgeLabel"),t.emphasis&&(_f(t.emphasis,"label"),_f(t.emphasis,"upperLabel"),_f(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(vf(e),bf(e));var n=t.markLine;n&&(vf(n),bf(n));var r=t.markArea;r&&bf(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!O["isTypedArray"](o))for(var a=0;a<o.length;a++)bf(o[a]);O["each"](t.categories,(function(t){mf(t)}))}if(i&&!O["isTypedArray"](i))for(a=0;a<i.length;a++)bf(i[a]);if(e=t.markPoint,e&&e.data){var s=e.data;for(a=0;a<s.length;a++)bf(s[a])}if(n=t.markLine,n&&n.data){var l=n.data;for(a=0;a<l.length;a++)O["isArray"](l[a])?(bf(l[a][0]),bf(l[a][1])):bf(l[a])}"gauge"===t.type?(_f(t,"axisLabel"),_f(t,"title"),_f(t,"detail")):"treemap"===t.type?(yf(t.breadcrumb,"itemStyle"),O["each"](t.levels,(function(t){mf(t)}))):"tree"===t.type&&mf(t.leaves)}}function wf(t){return O["isArray"](t)?t:t?[t]:[]}function Sf(t){return(O["isArray"](t)?t[0]:t)||{}}function Of(t,e){pf(wf(t.series),(function(t){df(t)&&xf(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),pf(n,(function(e){pf(wf(t[e]),(function(t){t&&(_f(t,"axisLabel"),_f(t.axisPointer,"label"))}))})),pf(wf(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;_f(e,"axisLabel"),_f(e&&e.axisPointer,"label")})),pf(wf(t.calendar),(function(t){yf(t,"itemStyle"),_f(t,"dayLabel"),_f(t,"monthLabel"),_f(t,"yearLabel")})),pf(wf(t.radar),(function(t){_f(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),pf(wf(t.geo),(function(t){df(t)&&(bf(t),pf(wf(t.regions),(function(t){bf(t)})))})),pf(wf(t.timeline),(function(t){bf(t),yf(t,"label"),yf(t,"itemStyle"),yf(t,"controlStyle",!0);var e=t.data;O["isArray"](e)&&O["each"](e,(function(t){O["isObject"](t)&&(yf(t,"label"),yf(t,"itemStyle"))}))})),pf(wf(t.toolbox),(function(t){yf(t,"iconStyle"),pf(t.feature,(function(t){yf(t,"iconStyle")}))})),_f(Sf(t.axisPointer),"label"),_f(Sf(t.tooltip).axisPointer,"label")}function Mf(t,e){for(var n=e.split(","),r=t,i=0;i<n.length;i++)if(r=r&&r[n[i]],null==r)break;return r}function Tf(t,e,n,r){for(var i,o=e.split(","),a=t,s=0;s<o.length-1;s++)i=o[s],null==a[i]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}function Cf(t){t&&Object(O["each"])(If,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var If=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],kf=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Df=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Af(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Df.length;n++){var r=Df[n][1],i=Df[n][0];null!=e[r]&&(e[i]=e[r])}}function jf(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Pf(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Lf(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function Rf(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Rf(t[n].children,e)}function Ef(t,e){Of(t,e),t.series=Ei(t.series),Object(O["each"])(t.series,(function(t){if(Object(O["isObject"])(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),jf(t.label);var n=t.data;if(n&&!Object(O["isTypedArray"])(n))for(var r=0;r<n.length;r++)jf(n[r]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=Mf(t,"pointer.color");null!=i&&Tf(t,"itemStyle.color",i)}else if("bar"===e){Af(t),Af(t.backgroundStyle),Af(t.emphasis);n=t.data;if(n&&!Object(O["isTypedArray"])(n))for(r=0;r<n.length;r++)"object"===typeof n[r]&&(Af(n[r]),Af(n[r]&&n[r].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),Pf(t),Rf(t.data,Pf)}else"graph"===e||"sankey"===e?Lf(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Object(O["defaults"])(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),Cf(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Object(O["each"])(kf,(function(e){var n=t[e];n&&(Object(O["isArray"])(n)||(n=[n]),Object(O["each"])(n,(function(t){Cf(t)})))}))}function Nf(t){var e=Object(O["createHashMap"])();t.eachSeries((function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),e.each(Bf)}function Bf(t){Object(O["each"])(t,(function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,f,p=a.get(e.stackedDimension,c);if(isNaN(p))return i;s?f=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var d=NaN,g=n-1;g>=0;g--){var v=t[g];if(s||(f=v.data.rawIndexOf(v.stackedByDimension,h)),f>=0){var y=v.data.getByRawIndex(v.stackResultDimension,f);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=yi(p,y),d=y;break}}}return r[0]=p,r[1]=d,r}))}))}var Ff,zf,Vf,Hf,Wf,Gf=function(){function t(t){this.data=t.data||(t.sourceFormat===mh?{}:[]),this.sourceFormat=t.sourceFormat||bh,this.seriesLayoutBy=t.seriesLayoutBy||xh,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&Dh(this,n)===Sh.Must&&(r.type="ordinal")}}return t}();function Uf(t){return t instanceof Gf}function Yf(t,e,n){n=n||Zf(t);var r=e.seriesLayoutBy,i=Kf(t,n,r,e.sourceHeader,e.dimensions),o=new Gf({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Object(O["clone"])(e)});return o}function qf(t){return new Gf({data:t,sourceFormat:Object(O["isTypedArray"])(t)?_h:gh})}function Xf(t){return new Gf({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Object(O["clone"])(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Zf(t){var e=bh;if(Object(O["isTypedArray"])(t))e=_h;else if(Object(O["isArray"])(t)){0===t.length&&(e=vh);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(Object(O["isArray"])(i)||Object(O["isTypedArray"])(i)){e=vh;break}if(Object(O["isObject"])(i)){e=yh;break}}}}else if(Object(O["isObject"])(t))for(var o in t)if(Object(O["hasOwn"])(t,o)&&Object(O["isArrayLike"])(t[o])){e=mh;break}return e}function Kf(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:Qf(i),startIndex:a,dimensionsDetectedCount:o};if(e===vh){var s=t;"auto"===r||null==r?Jf((function(t){null!=t&&"-"!==t&&(Object(O["isString"])(t)?null==a&&(a=1):a=0)}),n,s,10):a=Object(O["isNumber"])(r)?r:r?1:0,i||1!==a||(i=[],Jf((function(t,e){i[e]=null!=t?t+"":""}),n,s,1/0)),o=i?i.length:n===wh?s.length:s[0]?s[0].length:null}else if(e===yh)i||(i=$f(t));else if(e===mh)i||(i=[],Object(O["each"])(t,(function(t,e){i.push(e)})));else if(e===gh){var l=Fi(t[0]);o=Object(O["isArray"])(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Qf(i),dimensionsDetectedCount:o}}function $f(t){var e,n=0;while(n<t.length&&!(e=t[n++]));if(e)return Object(O["keys"])(e)}function Qf(t){if(t){var e=Object(O["createHashMap"])();return Object(O["map"])(t,(function(t,n){t=Object(O["isObject"])(t)?t:{name:t};var r={name:t.name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=e.get(r.name);return i?r.name+="-"+i.count++:e.set(r.name,{count:1}),r}))}}function Jf(t,e,n,r){if(e===wh)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)t(o[i],i)}}function tp(t){var e=t.sourceFormat;return e===yh||e===mh}var ep=function(){function t(t,e){var n=Uf(t)?t:qf(t);this._source=n;var r=this._data=n.data;n.sourceFormat===_h&&(this._offset=0,this._dimSize=e,this._data=r),Wf(this,r,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;Wf=function(t,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=Hf[hp(a,s)];if(Object(O["extend"])(t,c),a===_h)t.getItem=e,t.count=r,t.fillStorage=n;else{var h=ip(a,s);t.getItem=Object(O["bind"])(h,null,i,l,u);var f=sp(a,s);t.count=Object(O["bind"])(f,null,i,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;o<r;o++)e[o]=n[i+o];return e},n=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],f=0;f<c;f++){var p=i[f*o+a];h[t+f]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}t={},t[vh+"_"+xh]={pure:!0,appendData:i},t[vh+"_"+wh]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[yh]={pure:!0,appendData:i},t[mh]={pure:!0,appendData:function(t){var e=this._data;Object(O["each"])(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},t[gh]={appendData:i},t[_h]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Hf=t}(),t}(),np=function(t,e,n,r){return t[r]},rp=(Ff={},Ff[vh+"_"+xh]=function(t,e,n,r){return t[r+e]},Ff[vh+"_"+wh]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},Ff[yh]=np,Ff[mh]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=t[s];o[a]=l?l[r]:null}return o},Ff[gh]=np,Ff);function ip(t,e){var n=rp[hp(t,e)];return n}var op=function(t,e,n){return t.length},ap=(zf={},zf[vh+"_"+xh]=function(t,e,n){return Math.max(0,t.length-e)},zf[vh+"_"+wh]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},zf[yh]=op,zf[mh]=function(t,e,n){var r=n[0].name;var i=t[r];return i?i.length:0},zf[gh]=op,zf);function sp(t,e){var n=ap[hp(t,e)];return n}var lp=function(t,e,n){return t[e]},up=(Vf={},Vf[vh]=lp,Vf[yh]=function(t,e,n){return t[n]},Vf[mh]=lp,Vf[gh]=function(t,e,n){var r=Fi(t);return r instanceof Array?r[e]:r},Vf[_h]=lp,Vf);function cp(t){var e=up[t];return e}function hp(t,e){return t===vh?t+"_"+e:t}function fp(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return cp(o)(r,a,s)}var l=r;return o===gh&&(l=Fi(r)),l}}}var pp=/\{@(.+?)\}/g,dp=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,f=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);if(o&&(s.value=o.interpolatedValue),null!=r&&O["isArray"](s.value)&&(s.value=s.value[r]),!i){var l=a.getItemModel(t);i=l.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(O["isFunction"](i))return s.status=e,s.dimensionIndex=r,i(s);if(O["isString"](i)){var u=Yc(i,s);return u.replace(pp,(function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=fp(a,t,i);if(o&&O["isArray"](o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return fp(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function gp(t){var e,n;return O["isObject"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}function vp(t){return new yp(t)}var yp=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||f<p)){var d=this._progress;if(Object(O["isArray"])(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],f,p,l,u);else this._doProgress(d,f,p,l,u)}this._dueIndex=p;var v=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){mp.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:mp.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Object(O["isArray"])(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),mp=function(){var t,e,n,r,i,o={reset:function(l,u,c,h){e=l,t=u,n=c,r=h,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%i*n+Math.ceil(e/i),a=e>=t?null:o<r?o:e;return e++,a}}();function _p(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Object(O["isNumber"])(t)||null==t||"-"===t||(t=+wi(t)),null==t||""===t?NaN:+t)}Object(O["createHashMap"])({number:function(t){return parseFloat(t)},time:function(t){return+wi(t)},trim:function(t){return Object(O["isString"])(t)?Object(O["trim"])(t):t}});var bp={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},xp=(function(){function t(t,e){if(!Object(O["isNumber"])(e)){var n="";0,Wh(n)}this._opFn=bp[t],this._rvalFloat=Ii(e)}t.prototype.evaluate=function(t){return Object(O["isNumber"])(t)?this._opFn(t,this._rvalFloat):this._opFn(Ii(t),this._rvalFloat)}}(),function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(O["isNumber"])(t)?t:Ii(t),r=Object(O["isNumber"])(e)?e:Ii(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Object(O["isString"])(t),s=Object(O["isString"])(e);a&&(n=s?t:0),s&&(r=a?e:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},t}());(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Ii(e)}t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Ii(t)===this._rvalFloat)}return this._isEQ?e:!e}})();var wp=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return _p(t,e)},t}();function Sp(t,e){var n=new wp,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==xh&&Wh(a);var s=[],l={},u=t.dimensionsDefine;if(u)Object(O["each"])(u,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";Object(O["hasOwn"])(l,n)&&Wh(i),l[n]=r}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var h=ip(i,xh);e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(r,o,s,t)},n.getRawData=Object(O["bind"])(Op,null,t)),n.cloneRawData=Object(O["bind"])(Mp,null,t);var f=sp(i,xh);n.count=Object(O["bind"])(f,null,r,o,s);var p=cp(i);n.retrieveValue=function(t,e){var n=h(r,o,s,t);return d(n,e)};var d=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?p(t,e,n.name):void 0}};return n.getDimensionInfo=Object(O["bind"])(Tp,null,s,l),n.cloneAllDimensionInfo=Object(O["bind"])(Cp,null,s),n}function Op(t){var e=t.sourceFormat;if(!jp(e)){var n="";0,Wh(n)}return t.data}function Mp(t){var e=t.sourceFormat,n=t.data;if(!jp(e)){var r="";0,Wh(r)}if(e===vh){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}if(e===yh){for(i=[],o=0,a=n.length;o<a;o++)i.push(Object(O["extend"])({},n[o]));return i}}function Tp(t,e,n){if(null!=n)return Object(O["isNumber"])(n)||!isNaN(n)&&!Object(O["hasOwn"])(e,n)?t[n]:Object(O["hasOwn"])(e,n)?e[n]:void 0}function Cp(t){return Object(O["clone"])(t)}var Ip=Object(O["createHashMap"])();function kp(t){t=Object(O["clone"])(t);var e=t.type,n="";e||Wh(n);var r=e.split(":");2!==r.length&&Wh(n);var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isBuiltIn=i,Ip.set(e,t)}function Dp(t,e,n){var r=Ei(t),i=r.length,o="";i||Wh(o);for(var a=0,s=i;a<s;a++){var l=r[a];e=Ap(l,e,n,1===i?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function Ap(t,e,n,r){var i="";e.length||Wh(i),Object(O["isObject"])(t)||Wh(i);var o=t.type,a=Ip.get(o);a||Wh(i);var s=Object(O["map"])(e,(function(t){return Sp(t,a)})),l=Ei(a.transform({upstream:s[0],upstreamList:s,config:Object(O["clone"])(t.config)}));return Object(O["map"])(l,(function(t,n){var r="";Object(O["isObject"])(t)||Wh(r),t.data||Wh(r);var i,o=Zf(t.data);jp(o)||Wh(r);var a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),i={seriesLayoutBy:xh,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:xh,sourceHeader:0,dimensions:t.dimensions};return Yf(t.data,i,null)}))}function jp(t){return t===vh||t===yh}var Pp,Lp="undefined",Rp=typeof Uint32Array===Lp?Array:Uint32Array,Ep=typeof Uint16Array===Lp?Array:Uint16Array,Np=typeof Int32Array===Lp?Array:Int32Array,Bp=typeof Float64Array===Lp?Array:Float64Array,Fp={float:Bp,int:Np,ordinal:Array,number:Array,time:Bp};function zp(t){return t>65535?Rp:Ep}function Vp(){return[1/0,-1/0]}function Hp(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Wp(t,e,n,r,i){var o=Fp[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}var Gp=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(O["createHashMap"])()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=Pp[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];tp(r);this._dimensions=Object(O["map"])(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new Fp[e||"float"](this._rawCount),this._rawExtent[i]=Vp(),i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=Vp());for(var s=i[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<i;l++){var u=r[l];Wp(n,l,u.type,s,!0)}for(var c=[],h=a;h<s;h++)for(var f=h-a,p=0;p<i;p++){u=r[p];var d=Pp.arrayRows.call(this,t[f]||c,u.property,f,p);n[p][h]=d;var g=o[p];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Object(O["map"])(o,(function(t){return t.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=Vp()),Wp(i,u,c.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var h=[],f=t;f<e;f++){h=r.getItem(f,h);for(var p=0;p<a;p++){var d=i[p],g=this._dimValueGetter(h,l[p],f,p);d[f]=g;var v=s[p];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var r=0,i=this.count();r<i;r++){var o=this.get(t,r);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;var r=0,i=this._count-1;while(r<=i){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks,i=r[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var h=this.getRawIndex(u),f=e-i[h],p=Math.abs(f);p<=n&&((p<a||p===a&&f>=0&&s<0)&&(a=p,s=f,l=0),f===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{n=zp(this._rawCount);t=new n(this.count());for(i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=zp(n._rawCount),o=new i(r),a=[],s=t.length,l=0,u=t[0],c=n._chunks,h=0;h<r;h++){var f=void 0,p=n.getRawIndex(h);if(0===s)f=e(h);else if(1===s){var d=c[u][p];f=e(d,h)}else{for(var g=0;g<s;g++)a[g]=c[t[g]][p];a[g]=h,f=e.apply(null,a)}f&&(o[l++]=p)}return l<r&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=Object(O["keys"])(t),i=r.length;if(!i)return this;var o=e.count(),a=zp(e._rawCount),s=new a(o),l=0,u=r[0],c=t[u][0],h=t[u][1],f=e._chunks,p=!1;if(!e._indices){var d=0;if(1===i){for(var g=f[r[0]],v=0;v<n;v++){var y=g[v];(y>=c&&y<=h||isNaN(y))&&(s[l++]=d),d++}p=!0}else if(2===i){g=f[r[0]];var m=f[r[1]],_=t[r[1]][0],b=t[r[1]][1];for(v=0;v<n;v++){y=g[v];var x=m[v];(y>=c&&y<=h||isNaN(y))&&(x>=_&&x<=b||isNaN(x))&&(s[l++]=d),d++}p=!0}}if(!p)if(1===i)for(v=0;v<o;v++){var w=e.getRawIndex(v);y=f[r[0]][w];(y>=c&&y<=h||isNaN(y))&&(s[l++]=w)}else for(v=0;v<o;v++){for(var S=!0,M=(w=e.getRawIndex(v),0);M<i;M++){var T=r[M];y=f[T][w];(y<t[T][0]||y>t[T][1])&&(S=!1)}S&&(s[l++]=e.getRawIndex(v))}return l<o&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Vp();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),f=0;f<o;f++)s[f]=r[e[f]][h];s[o]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!==typeof p&&(i[0]=p,p=i);for(u=0;u<p.length;u++){var d=e[u],g=p[u],v=l[d],y=r[d];y&&(y[h]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),f=new(zp(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));f[u++]=h;for(var p=1;p<l-1;p+=c){for(var d=Math.min(p+c,l-1),g=Math.min(p+2*c,l),v=(g+d)/2,y=0,m=d;m<g;m++){var _=this.getRawIndex(m),b=s[_];isNaN(b)||(y+=b)}y/=g-d;var x=p,w=Math.min(p+c,l),S=p-1,O=s[h];n=-1,i=x;var M=-1,T=0;for(m=x;m<w;m++){_=this.getRawIndex(m),b=s[_];isNaN(b)?(T++,M<0&&(M=_)):(r=Math.abs((S-v)*(b-O)-(S-m)*(y-O)),r>n&&(n=r,i=_))}T>0&&T<w-x&&(f[u++]=Math.min(M,i),i=Math.max(M,i)),f[u++]=i,h=i}return f[u++]=this.getRawIndex(l-1),o._count=u,o._indices=f,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=i._rawExtent[t]=Vp(),h=new(zp(this._rawCount))(Math.ceil(u/s)),f=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var d=0;d<s;d++){var g=this.getRawIndex(p+d);a[d]=l[g]}var v=n(a),y=this.getRawIndex(Math.min(p+r(a,v)||0,u-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[f++]=y}return i._count=f,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Vp();if(!e)return n;var r,i=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(r=this._extent[t],r)return r.slice();r=n;for(var a=r[0],s=r[1],l=0;l<i;l++){var u=this.getRawIndex(l),c=e[u];c<a&&(a=c),c>s&&(s=c)}return r=[a,s],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r=new t,i=this._chunks,o=e&&Object(O["reduce"])(e,(function(t,e){return t[e]=!0,t}),{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?Hp(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Object(O["clone"])(this._extent),t._rawExtent=Object(O["clone"])(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return _p(t[r],this._dimensions[r])}Pp={arrayRows:t,objectRows:function(t,e,n,r){return _p(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return _p(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),Up=Gp,Yp=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(qp(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=Object(O["isTypedArray"])(a)?_h:gh,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},f=Object(O["retrieve2"])(c.seriesLayoutBy,h.seriesLayoutBy)||null,p=Object(O["retrieve2"])(c.sourceHeader,h.sourceHeader),d=Object(O["retrieve2"])(c.dimensions,h.dimensions),g=f!==h.seriesLayoutBy||!!p!==!!h.sourceHeader||d;t=g?[Yf(a,{seriesLayoutBy:f,sourceHeader:p,dimensions:d},s)]:[]}else{var v=n;if(i){var y=this._applyTransform(r);t=y.sourceList,e=y.upstreamSignList}else{var m=v.get("source",!0);t=[Yf(m,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var o="";1!==t.length&&Xp(o)}var a=[],s=[];return Object(O["each"])(t,(function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||Xp(n),a.push(e),s.push(t._getVersionSign())})),r?e=Dp(r,a,{datasetIndex:n.componentIndex}):null!=i&&(e=[Xf(a[0])]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var r=0,i=this._storeList,o=i[r];o||(o=i[r]={});var a=o[n];if(!a){var s=this._getUpstreamSourceManagers()[0];qp(this._sourceHost)&&s?a=s._innerGetDataStore(t,e,n):(a=new Up,a.initData(new ep(e,t.length),t)),o[n]=a}return a},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(qp(t)){var e=Ih(t);return e?[e.getSourceManager()]:[]}return Object(O["map"])(kh(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(qp(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function qp(t){return"series"===t.mainType}function Xp(t){throw new Error(t)}var Zp="line-height:1";function Kp(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+pt(r+"")+"px;color:"+pt(n)+";font-weight:"+pt(i+""),valueStyle:"font-size:"+pt(a+"")+"px;color:"+pt(o)+";font-weight:"+pt(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var $p=[0,10,20,30],Qp=["","\n","\n\n","\n\n\n"];function Jp(t,e){return e.type=t,e}function td(t){return"section"===t.type}function ed(t){return td(t)?rd:id}function nd(t){if(td(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return Object(O["each"])(t.blocks,(function(t){var n=nd(t);n>=e&&(e=n+ +(r&&(!n||td(t)&&!t.noHeader)))})),e}return 0}function rd(t,e,n,r){var i=e.noHeader,o=ad(nd(e)),a=[],s=e.blocks||[];Object(O["assert"])(!s||Object(O["isArray"])(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(O["hasOwn"])(u,l)){var c=new xp(u[l],null);s.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(O["each"])(s,(function(n,i){var s=e.valueFormatter,l=ed(n)(s?Object(O["extend"])(Object(O["extend"])({},t),{valueFormatter:s}):t,n,i>0?o.html:0,r);null!=l&&a.push(l)}));var h="richText"===t.renderMode?a.join(o.richText):sd(a.join(""),i?n:o.html);if(i)return h;var f=Wc(e.header,"ordinal",t.useUTC),p=Kp(r,t.renderMode).nameStyle;return"richText"===t.renderMode?cd(t,f,p)+o.richText+h:sd('<div style="'+p+";"+Zp+';">'+pt(f)+"</div>"+h,n)}function id(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return t=Object(O["isArray"])(t)?t:[t],Object(O["map"])(t,(function(t,e){return Wc(t,Object(O["isArray"])(p)?p[e]:p,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),f=o?"":Wc(l,"ordinal",u),p=e.valueType,d=a?[]:c(e.value,e.dataIndex),g=!s||!o,v=!s&&o,y=Kp(r,i),m=y.nameStyle,_=y.valueStyle;return"richText"===i?(s?"":h)+(o?"":cd(t,f,m))+(a?"":hd(t,d,g,v,_)):sd((s?"":h)+(o?"":ld(f,!s,m))+(a?"":ud(d,g,v,_)),n)}}function od(t,e,n,r,i,o){if(t){var a=ed(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function ad(t){return{html:$p[t],richText:Qp[t]}}function sd(t,e){var n='<div style="clear:both"></div>',r="margin: "+e+"px 0 0";return'<div style="'+r+";"+Zp+';">'+t+n+"</div>"}function ld(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+pt(t)+"</span>"}function ud(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=Object(O["isArray"])(t)?t:[t],'<span style="'+o+";"+r+'">'+Object(O["map"])(t,(function(t){return pt(t)})).join(" ")+"</span>"}function cd(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function hd(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(O["isArray"])(e)?e.join(" "):e,o)}function fd(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return Kc(r)}function pd(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var dd=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Di()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=qc({color:e,type:t,renderMode:n,markerId:r});return Object(O["isString"])(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(O["isArray"])(e)?Object(O["each"])(e,(function(t){return Object(O["extend"])(n,t)})):Object(O["extend"])(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function gd(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),f=Object(O["isArray"])(h),p=fd(o,a);if(c>1||f&&!c){var d=vd(h,o,a,u,p);e=d.inlineValues,n=d.inlineValueTypes,r=d.blocks,i=d.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=fp(l,a,u[0]),n=g.type}else i=e=f?h[0]:h;var v=$i(o),y=v&&o.name||"",m=l.getName(a),_=s?y:m;return Jp("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[Jp("nameValue",{markerType:"item",markerColor:p,name:_,noName:!Object(O["trim"])(_),value:e,valueType:n,dataIndex:a})].concat(r||[])})}function vd(t,e,n,r,i){var o=e.getData(),a=Object(O["reduce"])(t,(function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Jp("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?Object(O["each"])(r,(function(t){c(fp(o,n,t),t)})):Object(O["each"])(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var yd=no();function md(t,e){return t.getName(e)||t.getId(e)}var _d="__universalTransitionEnabled",bd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return w(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=vp({count:Sd,reset:Od}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var r=yd(this).sourceManager=new Yp(this);r.prepareSource();var i=this.getInitialData(t,n);Td(i,this),this.dataTask.context.data=i,yd(this).dataBeforeProcessed=i,xd(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=rh(this),r=n?oh(t):{},i=this.subType;ch.hasClass(i)&&(i+="Series"),O["merge"](t,e.getTheme().get(this.subType)),O["merge"](t,this.getDefaultOption()),Ni(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&ih(t,r,n)},e.prototype.mergeOption=function(t,e){t=O["merge"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=rh(this);n&&ih(this.option,t,n);var r=yd(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Td(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,yd(this).dataBeforeProcessed=i,xd(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!O["isTypedArray"](t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Ni(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},e.prototype.getData=function(t){var e=Id(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return yd(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=Id(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}yd(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return O["createHashMap"](t)},e.prototype.getSourceManager=function(){return yd(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return yd(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return gd({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(S["a"].node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Rh.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=t[o],s=md(i,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=O["keys"](t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[md(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[_d])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){O["isObject"](i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=e[l],c=md(t,u);s[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(u)}}else if("single"===o||!0===o){var h=e[a-1];c=md(t,h);i.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(r={},r[c]=t.getRawIndex(h),r)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return ch.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(ch);function xd(t){var e=t.name;$i(t)||(t.name=wd(t)||e)}function wd(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return O["each"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}function Sd(t){return t.model.getRawData().count()}function Od(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Md}function Md(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Td(t,e){O["each"](O["concatArray"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,O["curry"](Cd,e))}))}function Cd(t,e){var n=Id(t);return n&&n.setOutputEnd((e||this).count()),e}function Id(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}O["mixin"](bd,dp),O["mixin"](bd,Rh),xo(bd,ch);var kd=bd,Dd=function(){function t(){this.group=new Gr,this.uid=Yu("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();_o(Dd),To(Dd);var Ad=Dd;function jd(){var t=no();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var Pd=za.CMD,Ld=[[],[],[]],Rd=Math.sqrt,Ed=Math.atan2;function Nd(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=Pd.M,h=Pd.C,f=Pd.L,p=Pd.R,d=Pd.A,g=Pd.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:r=1;break;case f:r=1;break;case h:r=3;break;case g:r=2;break;case d:var v=e[4],y=e[5],m=Rd(e[0]*e[0]+e[1]*e[1]),_=Rd(e[2]*e[2]+e[3]*e[3]),b=Ed(-e[1]/_,e[0]/m);l[i]*=m,l[i++]+=v,l[i]*=_,l[i++]+=y,l[i++]*=m,l[i++]*=_,l[i++]+=b,l[i++]+=b,i+=2,o=i;break;case p:s[0]=l[i++],s[1]=l[i++],q(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],q(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var x=Ld[a];x[0]=l[i++],x[1]=l[i++],q(x,x,e),l[o++]=x[0],l[o++]=x[1]}}t.increaseVersion()}}var Bd=Math.sqrt,Fd=Math.sin,zd=Math.cos,Vd=Math.PI;function Hd(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Wd(t,e){return(t[0]*e[0]+t[1]*e[1])/(Hd(t)*Hd(e))}function Gd(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Wd(t,e))}function Ud(t,e,n,r,i,o,a,s,l,u,c){var h=l*(Vd/180),f=zd(h)*(t-n)/2+Fd(h)*(e-r)/2,p=-1*Fd(h)*(t-n)/2+zd(h)*(e-r)/2,d=f*f/(a*a)+p*p/(s*s);d>1&&(a*=Bd(d),s*=Bd(d));var g=(i===o?-1:1)*Bd((a*a*(s*s)-a*a*(p*p)-s*s*(f*f))/(a*a*(p*p)+s*s*(f*f)))||0,v=g*a*p/s,y=g*-s*f/a,m=(t+n)/2+zd(h)*v-Fd(h)*y,_=(e+r)/2+Fd(h)*v+zd(h)*y,b=Gd([1,0],[(f-v)/a,(p-y)/s]),x=[(f-v)/a,(p-y)/s],w=[(-1*f-v)/a,(-1*p-y)/s],S=Gd(x,w);if(Wd(x,w)<=-1&&(S=Vd),Wd(x,w)>=1&&(S=0),S<0){var O=Math.round(S/Vd*1e6)/1e6;S=2*Vd+O%2*Vd}c.addData(u,m,_,a,s,b,S,h,o)}var Yd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,qd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Xd(t){var e=new za;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=za.CMD,l=t.match(Yd);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),f=void 0,p=c.match(qd)||[],d=p.length,g=0;g<d;g++)p[g]=parseFloat(p[g]);var v=0;while(v<d){var y=void 0,m=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,O=r,M=i,T=void 0,C=void 0;switch(h){case"l":r+=p[v++],i+=p[v++],f=s.L,e.addData(f,r,i);break;case"L":r=p[v++],i=p[v++],f=s.L,e.addData(f,r,i);break;case"m":r+=p[v++],i+=p[v++],f=s.M,e.addData(f,r,i),o=r,a=i,h="l";break;case"M":r=p[v++],i=p[v++],f=s.M,e.addData(f,r,i),o=r,a=i,h="L";break;case"h":r+=p[v++],f=s.L,e.addData(f,r,i);break;case"H":r=p[v++],f=s.L,e.addData(f,r,i);break;case"v":i+=p[v++],f=s.L,e.addData(f,r,i);break;case"V":i=p[v++],f=s.L,e.addData(f,r,i);break;case"C":f=s.C,e.addData(f,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),r=p[v-2],i=p[v-1];break;case"c":f=s.C,e.addData(f,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i),r+=p[v-2],i+=p[v-1];break;case"S":y=r,m=i,T=e.len(),C=e.data,n===s.C&&(y+=r-C[T-4],m+=i-C[T-3]),f=s.C,O=p[v++],M=p[v++],r=p[v++],i=p[v++],e.addData(f,y,m,O,M,r,i);break;case"s":y=r,m=i,T=e.len(),C=e.data,n===s.C&&(y+=r-C[T-4],m+=i-C[T-3]),f=s.C,O=r+p[v++],M=i+p[v++],r+=p[v++],i+=p[v++],e.addData(f,y,m,O,M,r,i);break;case"Q":O=p[v++],M=p[v++],r=p[v++],i=p[v++],f=s.Q,e.addData(f,O,M,r,i);break;case"q":O=p[v++]+r,M=p[v++]+i,r+=p[v++],i+=p[v++],f=s.Q,e.addData(f,O,M,r,i);break;case"T":y=r,m=i,T=e.len(),C=e.data,n===s.Q&&(y+=r-C[T-4],m+=i-C[T-3]),r=p[v++],i=p[v++],f=s.Q,e.addData(f,y,m,r,i);break;case"t":y=r,m=i,T=e.len(),C=e.data,n===s.Q&&(y+=r-C[T-4],m+=i-C[T-3]),r+=p[v++],i+=p[v++],f=s.Q,e.addData(f,y,m,r,i);break;case"A":_=p[v++],b=p[v++],x=p[v++],w=p[v++],S=p[v++],O=r,M=i,r=p[v++],i=p[v++],f=s.A,Ud(O,M,r,i,w,S,_,b,x,f,e);break;case"a":_=p[v++],b=p[v++],x=p[v++],w=p[v++],S=p[v++],O=r,M=i,r+=p[v++],i+=p[v++],f=s.A,Ud(O,M,r,i,w,S,_,b,x,f,e);break}}"z"!==h&&"Z"!==h||(f=s.Z,e.addData(f),r=o,i=a),n=f}return e.toStatic(),e}var Zd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.applyTransform=function(t){},e}(fs);function Kd(t){return null!=t.setData}function $d(t,e){var n=Xd(t),r=Object(O["extend"])({},e);return r.buildPath=function(t){if(Kd(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){Nd(n,t),this.dirtyShape()},r}function Qd(t,e){return new Zd($d(t,e))}function Jd(t,e){var n=$d(t,e),r=function(t){function e(e){var r=t.call(this,e)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return w(e,t),e}(Zd);return r}function tg(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new fs(e);return a.createPathProxy(),a.buildPath=function(t){if(Kd(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}var eg=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),ng=function(t){function e(e){return t.call(this,e)||this}return w(e,t),e.prototype.getDefaultShape=function(){return new eg},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(fs);ng.prototype.type="circle";var rg=ng,ig=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),og=function(t){function e(e){return t.call(this,e)||this}return w(e,t),e.prototype.getDefaultShape=function(){return new ig},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),t.closePath()},e}(fs);og.prototype.type="ellipse";var ag=og,sg=Math.PI,lg=2*sg,ug=Math.sin,cg=Math.cos,hg=Math.acos,fg=Math.atan2,pg=Math.abs,dg=Math.sqrt,gg=Math.max,vg=Math.min,yg=1e-4;function mg(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,f=h*l-c*u;if(!(f*f<yg))return f=(c*(e-o)-h*(t-i))/f,[t+f*l,e+f*u]}function _g(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/dg(s*s+l*l),c=u*l,h=-u*s,f=t+c,p=e+h,d=n+c,g=r+h,v=(f+d)/2,y=(p+g)/2,m=d-f,_=g-p,b=m*m+_*_,x=i-o,w=f*g-d*p,S=(_<0?-1:1)*dg(gg(0,x*x*b-w*w)),O=(w*_-m*S)/b,M=(-w*m-_*S)/b,T=(w*_+m*S)/b,C=(-w*m+_*S)/b,I=O-v,k=M-y,D=T-v,A=C-y;return I*I+k*k>D*D+A*A&&(O=T,M=C),{cx:O,cy:M,x0:-c,y0:-h,x1:O*(i/x-1),y1:M*(i/x-1)}}function bg(t){var e;if(Object(O["isArray"])(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function xg(t,e){var n,r=gg(e.r,0),i=gg(e.r0||0,0),o=r>0,a=i>0;if(o||a){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=e.cx,h=e.cy,f=!!e.clockwise,p=pg(u-l),d=p>lg&&p%lg;if(d>yg&&(p=d),r>yg)if(p>lg-yg)t.moveTo(c+r*cg(l),h+r*ug(l)),t.arc(c,h,r,l,u,!f),i>yg&&(t.moveTo(c+i*cg(u),h+i*ug(u)),t.arc(c,h,i,u,l,f));else{var g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,O=void 0,M=void 0,T=void 0,C=void 0,I=void 0,k=void 0,D=void 0,A=r*cg(l),j=r*ug(l),P=i*cg(u),L=i*ug(u),R=p>yg;if(R){var E=e.cornerRadius;E&&(n=bg(E),g=n[0],v=n[1],y=n[2],m=n[3]);var N=pg(r-i)/2;if(_=vg(N,y),b=vg(N,m),x=vg(N,g),w=vg(N,v),M=S=gg(_,b),T=O=gg(x,w),(S>yg||O>yg)&&(C=r*cg(u),I=r*ug(u),k=i*cg(l),D=i*ug(l),p<sg)){var B=mg(A,j,k,D,C,I,P,L);if(B){var F=A-B[0],z=j-B[1],V=C-B[0],H=I-B[1],W=1/ug(hg((F*V+z*H)/(dg(F*F+z*z)*dg(V*V+H*H)))/2),G=dg(B[0]*B[0]+B[1]*B[1]);M=vg(S,(r-G)/(W+1)),T=vg(O,(i-G)/(W-1))}}}if(R)if(M>yg){var U=vg(y,M),Y=vg(m,M),q=_g(k,D,A,j,r,U,f),X=_g(C,I,P,L,r,Y,f);t.moveTo(c+q.cx+q.x0,h+q.cy+q.y0),M<S&&U===Y?t.arc(c+q.cx,h+q.cy,M,fg(q.y0,q.x0),fg(X.y0,X.x0),!f):(U>0&&t.arc(c+q.cx,h+q.cy,U,fg(q.y0,q.x0),fg(q.y1,q.x1),!f),t.arc(c,h,r,fg(q.cy+q.y1,q.cx+q.x1),fg(X.cy+X.y1,X.cx+X.x1),!f),Y>0&&t.arc(c+X.cx,h+X.cy,Y,fg(X.y1,X.x1),fg(X.y0,X.x0),!f))}else t.moveTo(c+A,h+j),t.arc(c,h,r,l,u,!f);else t.moveTo(c+A,h+j);if(i>yg&&R)if(T>yg){U=vg(g,T),Y=vg(v,T),q=_g(P,L,C,I,i,-Y,f),X=_g(A,j,k,D,i,-U,f);t.lineTo(c+q.cx+q.x0,h+q.cy+q.y0),T<O&&U===Y?t.arc(c+q.cx,h+q.cy,T,fg(q.y0,q.x0),fg(X.y0,X.x0),!f):(Y>0&&t.arc(c+q.cx,h+q.cy,Y,fg(q.y0,q.x0),fg(q.y1,q.x1),!f),t.arc(c,h,i,fg(q.cy+q.y1,q.cx+q.x1),fg(X.cy+X.y1,X.cx+X.x1),f),U>0&&t.arc(c+X.cx,h+X.cy,U,fg(X.y1,X.x1),fg(X.y0,X.x0),!f))}else t.lineTo(c+P,h+L),t.arc(c,h,i,u,l,f);else t.lineTo(c+P,h+L)}else t.moveTo(c,h);t.closePath()}}}var wg=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),Sg=function(t){function e(e){return t.call(this,e)||this}return w(e,t),e.prototype.getDefaultShape=function(){return new wg},e.prototype.buildPath=function(t,e){xg(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(fs);Sg.prototype.type="sector";var Og=Sg,Mg=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Tg=function(t){function e(e){return t.call(this,e)||this}return w(e,t),e.prototype.getDefaultShape=function(){return new Mg},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(fs);Tg.prototype.type="ring";var Cg=Tg;function Ig(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,p=t.length;f<p;f++)X(a,a,t[f]),Z(s,s,t[f]);X(a,a,r[0]),Z(s,s,r[1])}for(f=0,p=t.length;f<p;f++){var d=t[f];if(n)i=t[f?f-1:p-1],o=t[(f+1)%p];else{if(0===f||f===p-1){l.push(C(t[f]));continue}i=t[f-1],o=t[f+1]}A(u,o,i),F(u,u,e);var g=V(d,i),v=V(d,o),y=g+v;0!==y&&(g/=y,v/=y),F(c,u,-g),F(h,u,v);var m=k([],d,c),_=k([],d,h);r&&(Z(m,m,a),X(m,m,s),Z(_,_,a),X(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}function kg(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=Ig(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}var Dg=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Ag=function(t){function e(e){return t.call(this,e)||this}return w(e,t),e.prototype.getDefaultShape=function(){return new Dg},e.prototype.buildPath=function(t,e){kg(t,e,!0)},e}(fs);Ag.prototype.type="polygon";var jg=Ag,Pg=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Lg=function(t){function e(e){return t.call(this,e)||this}return w(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Pg},e.prototype.buildPath=function(t,e){kg(t,e,!1)},e}(fs);Lg.prototype.type="polyline";var Rg=Lg,Eg={},Ng=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Bg=function(t){function e(e){return t.call(this,e)||this}return w(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ng},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=Ss(Eg,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(fs);Bg.prototype.type="line";var Fg=Bg,zg=[],Vg=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function Hg(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?He:Ve)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?He:Ve)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Ze:Xe)(t.x1,t.cpx1,t.x2,e),(n?Ze:Xe)(t.y1,t.cpy1,t.y2,e)]}var Wg=function(t){function e(e){return t.call(this,e)||this}return w(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Vg},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,r),null==l||null==u?(c<1&&(Qe(n,a,i,c,zg),a=zg[1],i=zg[2],Qe(r,s,o,c,zg),s=zg[1],o=zg[2]),t.quadraticCurveTo(a,s,i,o)):(c<1&&(Ue(n,a,l,i,c,zg),a=zg[1],l=zg[2],i=zg[3],Ue(r,s,u,o,c,zg),s=zg[1],u=zg[2],o=zg[3]),t.bezierCurveTo(a,s,l,u,i,o)))},e.prototype.pointAt=function(t){return Hg(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Hg(this.shape,t,!0);return z(e,e)},e}(fs);Wg.prototype.type="bezier-curve";var Gg=Wg,Ug=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),Yg=function(t){function e(e){return t.call(this,e)||this}return w(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ug},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},e}(fs);Yg.prototype.type="arc";var qg=Yg,Xg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return w(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),fs.prototype.getBoundingRect.call(this)},e}(fs),Zg=Xg,Kg=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),$g=Kg,Qg=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return w(e,t),e}($g),Jg=Qg,tv=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return w(e,t),e}($g),ev=tv,nv=[0,0],rv=[0,0],iv=new Ft,ov=new Ft,av=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ft;for(n=0;n<2;n++)this._axes[n]=new Ft;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;l<4;l++)n[l].transform(e);Ft.sub(r[0],n[1],n[0]),Ft.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return iv.set(1/0,1/0),ov.set(0,0),!this._intersectCheckOneSide(this,t,iv,ov,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,iv,ov,r,-1)&&(n=!1,r)||r||Ft.copy(e,n?iv:ov),n},t.prototype._intersectCheckOneSide=function(t,e,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,nv),this._getProjMinMaxOnAxis(s,e._corners,rv),nv[1]<rv[0]||nv[0]>rv[1]){if(a=!1,i)return a;var u=Math.abs(rv[0]-nv[1]),c=Math.abs(nv[0]-rv[1]);Math.min(u,c)>r.len()&&(u<c?Ft.scale(r,l,-u*o):Ft.scale(r,l,c*o))}else if(n){u=Math.abs(rv[0]-nv[1]),c=Math.abs(nv[0]-rv[1]);Math.min(u,c)<n.len()&&(u<c?Ft.scale(n,l,u*o):Ft.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),sv=av,lv=[],uv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return w(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Zt(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(lv)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(r.contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){var o=this._displayables[i];if(o.contain(t,e))return!0}return!1},e}(aa),cv=uv,hv=Math.max,fv=Math.min,pv={};function dv(t){return fs.extend(t)}var gv=Jd;function vv(t,e){return gv(t,e)}function yv(t,e){pv[t]=e}function mv(t){if(pv.hasOwnProperty(t))return pv[t]}function _v(t,e,n,r){var i=Qd(t,e);return n&&("center"===r&&(n=xv(n,i.getBoundingRect())),Sv(i,n)),i}function bv(t,e,n){var r=new bs({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(xv(e,i))}}});return r}function xv(t,e){var n,r=e.width/e.height,i=t.height*r;i<=t.width?n=t.height:(i=t.width,n=i/r);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-i/2,y:a-n/2,width:i,height:n}}var wv=tg;function Sv(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function Ov(t,e){return Ss(t,t,{lineWidth:e}),t}function Mv(t){return Os(t.shape,t.shape,t.style),t}var Tv=Ms;function Cv(t,e){var n=Dt([]);while(t&&t!==e)jt(n,t.getLocalTransform(),n),t=t.parent;return n}function Iv(t,e,n){return e&&!Object(O["isArrayLike"])(e)&&(e=yr.getLocalTransform(e)),n&&(e=Et([],e)),q([],t,e)}function kv(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0];return o=Iv(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Dv(t){return!t.isGroup}function Av(t){return null!=t.shape}function jv(t,e,n){if(t&&e){var r=i(t);e.traverse((function(t){if(Dv(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),uu(t,i,n,Xs(t).dataIndex)}}}))}function i(t){var e={};return t.traverse((function(t){Dv(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Av(t)&&(e.shape=Object(O["extend"])({},t.shape)),e}}function Pv(t,e){return Object(O["map"])(t,(function(t){var n=t[0];n=hv(n,e.x),n=fv(n,e.x+e.width);var r=t[1];return r=hv(r,e.y),r=fv(r,e.y+e.height),[n,r]}))}function Lv(t,e){var n=hv(t.x,e.x),r=fv(t.x+t.width,e.x+e.width),i=hv(t.y,e.y),o=fv(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Rv(t,e,n){var r=Object(O["extend"])({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Object(O["defaults"])(i,n),new bs(r)):_v(t.replace("path://",""),r,n,"center")}function Ev(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Nv(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Nv(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,f=Bv(c,h,l,u);if(Fv(f))return!1;var p=t-i,d=e-o,g=Bv(p,d,l,u)/f;if(g<0||g>1)return!1;var v=Bv(p,d,c,h)/f;return!(v<0||v>1)}function Bv(t,e,n,r){return t*r-n*e}function Fv(t){return t<=1e-6&&t>=-1e-6}function zv(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Object(O["isString"])(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(O["each"])(Object(O["keys"])(l),(function(t){Object(O["hasOwn"])(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Xs(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Object(O["defaults"])({content:r,formatterParams:s},i)}}function Vv(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Hv(t,e){if(t)if(Object(O["isArray"])(t))for(var n=0;n<t.length;n++)Vv(t[n],e);else Vv(t,e)}yv("circle",rg),yv("ellipse",ag),yv("sector",Og),yv("ring",Cg),yv("polygon",jg),yv("polyline",Rg),yv("rect",ks),yv("line",Fg),yv("bezierCurve",Gg),yv("arc",qg);var Wv=no(),Gv=jd(),Uv=function(){function t(){this.group=new Gr,this.uid=Yu("viewChart"),this.renderTask=vp({plan:Xv,reset:Zv}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){0},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&qv(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&qv(i,r,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){Hv(this.group,t)},t.markUpdateMethod=function(t,e){Wv(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function Yv(t,e,n){t&&eu(t)&&("emphasis"===e?Dl:Al)(t,n)}function qv(t,e,n){var r=eo(t,e),i=e&&null!=e.highlightKey?nu(e.highlightKey):null;null!=r?Object(O["each"])(Ei(r),(function(e){Yv(t.getItemGraphicEl(e),n,i)})):t.eachItemGraphicEl((function(t){Yv(t,n,i)}))}function Xv(t){return Gv(t.model)}function Zv(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&Wv(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),Kv[l]}_o(Uv,["dispose"]),To(Uv);var Kv={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},$v=Uv,Qv="\0__throttleOriginMethod",Jv="\0__throttleRate",ty="\0__throttleType";function ey(t,e,n){var r,i,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var f=function(){for(var t=[],f=0;f<arguments.length;f++)t[f]=arguments[f];r=(new Date).getTime(),o=this,a=t;var p=s||e,d=s||n;s=null,i=r-(d?l:u)-p,clearTimeout(c),d?c=setTimeout(h,p):i>=0?h():c=setTimeout(h,-i),l=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(t){s=t},f}function ny(t,e,n,r){var i=t[e];if(i){var o=i[Qv]||i,a=i[ty],s=i[Jv];if(s!==n||a!==r){if(null==n||!r)return t[e]=o;i=t[e]=ey(o,n,"debounce"===r),i[Qv]=o,i[ty]=r,i[Jv]=n}return i}}function ry(t,e){var n=t[e];n&&n[Qv]&&(n.clear&&n.clear(),t[e]=n[Qv])}var iy=no(),oy={itemStyle:Co(zu,!0),lineStyle:Co(Nu,!0)},ay={lineStyle:"stroke",itemStyle:"fill"};function sy(t,e){var n=t.visualStyleMapper||oy[e];return n||(console.warn("Unknown style type '"+e+"'."),oy.itemStyle)}function ly(t,e){var n=t.visualDrawType||ay[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var uy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=sy(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=ly(t,r),u=a[l],c=Object(O["isFunction"])(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(O["isFunction"])(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||Object(O["isFunction"])(a.stroke)?f:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=Object(O["extend"])({},a);i[l]=c(r),e.setItemVisual(n,"style",i)}}}},cy=new Gu,hy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=sy(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){cy.option=n[r];var a=i(cy),s=t.ensureUniqueItemVisual(e,"style");Object(O["extend"])(s,a),cy.option.decal&&(t.setItemVisual(e,"decal",cy.option.decal),cy.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},fy={performRawSeries:!0,overallReset:function(t){var e=Object(O["createHashMap"])();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),iy(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=iy(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=ly(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",h=n.count();u[s]=e.getColorFromPalette(c,o,h)}}))}}))}},py=Math.PI;function dy(t,e){e=e||{},O["defaults"](e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Gr,r=new ks({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new qs({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new ks({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(i=new qg({shape:{startAngle:-py/2,endAngle:-py/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*py/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*py/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var gy=function(){function t(t,e,n,r){this._stageTaskMap=Object(O["createHashMap"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData(),i=r.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(O["createHashMap"])();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(O["each"])(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";Object(O["assert"])(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(O["each"])(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,f=c.agentStubMap;f.each((function(t){a(r,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,r.block);f.each((function(t){t.perform(p)})),c.perform(p)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(O["createHashMap"])(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||vp({plan:by,reset:xy,count:Oy}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||vp({reset:vy});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Object(O["createHashMap"])(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,f="";function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,vp({reset:yy,onDirty:_y})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}Object(O["assert"])(!t.createOnAllSeries,f),l?n.eachRawSeriesByType(l,p):u?u(n,r).each(p):(c=!1,Object(O["each"])(n.getSeries(),p)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Object(O["isFunction"])(t)&&(t={overallReset:t,seriesType:My(t)}),t.uid=Yu("stageHandler"),e&&(t.visualType=e),t},t}();function vy(t){t.overallReset(t.ecModel,t.api,t.payload)}function yy(t){return t.overallProgress&&my}function my(){this.agent.dirty(),this.getDownstream().dirty()}function _y(){this.agent&&this.agent.dirty()}function by(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function xy(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ei(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(O["map"])(e,(function(t,e){return Sy(e)})):wy}var wy=Sy(0);function Sy(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function Oy(t){return t.data.count()}function My(t){Ty=null;try{t(Cy,Iy)}catch(e){}return Ty}var Ty,Cy={},Iy={};function ky(t,e){for(var n in e.prototype)t[n]=O["noop"]}ky(Cy,Qh),ky(Iy,ef),Cy.eachSeriesByType=Cy.eachRawSeriesByType=function(t){Ty=t},Cy.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Ty=t.subType)};var Dy=gy,Ay=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],jy={color:Ay,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Ay]},Py="#B9B8CE",Ly="#100C2A",Ry=function(){return{axisLine:{lineStyle:{color:Py}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Ey=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Ny={darkMode:!0,color:Ey,backgroundColor:Ly,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Py}},textStyle:{color:Py},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Py}},dataZoom:{borderColor:"#71708A",textStyle:{color:Py},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Py}},timeline:{lineStyle:{color:Py},label:{color:Py},controlStyle:{color:Py,borderColor:Py}},calendar:{itemStyle:{color:Ly},dayLabel:{color:Py},monthLabel:{color:Py},yearLabel:{color:Py}},timeAxis:Ry(),logAxis:Ry(),valueAxis:Ry(),categoryAxis:Ry(),line:{symbol:"circle"},graph:{color:Ey},gauge:{title:{color:Py},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Py},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Ny.categoryAxis.splitLine.show=!1;var By=Ny,Fy=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(O["isString"](t)){var i=vo(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};O["each"](t,(function(t,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),zy=["symbol","symbolSize","symbolRotate","symbolOffset"],Vy=zy.concat(["symbolKeepAspect"]),Hy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<zy.length;a++){var s=zy[a],l=t.get(s);Object(O["isFunction"])(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(Object(O["extend"])({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var u=Object(O["keys"])(i);return{dataEach:o?c:null}}}function c(e,n){for(var r=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,i[s](r,o))}}}},Wy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var n=t.getData();return{dataEach:n.hasItemOption?r:null}}function r(t,e){for(var n=t.getItemModel(e),r=0;r<Vy.length;r++){var i=Vy[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}}};function Gy(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function Uy(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function Yy(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){r.push(t.seriesIndex)})),r}Object(O["each"])([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,i){e=Object(O["extend"])({},e),i.dispatchAction(Object(O["extend"])(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function qy(t,e,n,r,i){var o=t+e;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=eo(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:Object(O["isArray"])(u)?l.getName(u[0]):l.getName(u),selected:Object(O["isString"])(r)?r:Object(O["extend"])({},r)})}}))}function Xy(t,e,n){t.on("selectchanged",(function(t){var r=n.getModel();t.isFromClick?(qy("map","selectchanged",e,r,t),qy("pie","selectchanged",e,r,t)):"select"===t.fromAction?(qy("map","selected",e,r,t),qy("pie","selected",e,r,t)):"unselect"===t.fromAction&&(qy("map","unselected",e,r,t),qy("pie","unselected",e,r,t))}))}function Zy(t,e,n){var r;while(t){if(e(t)&&(r=t,n))break;t=t.__hostTarget||t.parent}return r}var Ky=Math.round(9*Math.random()),$y="function"===typeof Object.defineProperty,Qy=function(){function t(){this._id="__ec_inner_"+Ky++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return $y?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype["delete"]=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),Jy=Qy,tm=fs.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),em=fs.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),nm=fs.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),f=Math.cos(u),p=.6*a,d=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*p,l+s+f*p,n,r-d,n,r),t.bezierCurveTo(n,r-d,n-c+h*p,l+s+f*p,n-c,l+s),t.closePath()}}),rm=fs.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),im={line:Fg,rect:ks,roundRect:ks,square:ks,circle:rg,diamond:em,pin:nm,arrow:rm,triangle:tm},om={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},am={};Object(O["each"])(im,(function(t,e){am[e]=new t}));var sm=fs.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=Ir(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=am[r];i||(r="rect",i=am[r]),om[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function lm(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function um(t,e,n,r,i,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),s=0===t.indexOf("image://")?bv(t.slice(8),new Zt(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?_v(t.slice(7),{},new Zt(e,n,r,i),a?"center":"cover"):new sm({shape:{symbolType:t,x:e,y:n,width:r,height:i}}),s.__isEmptyBrush=l,s.setColor=lm,o&&s.setColor(o),s}function cm(t,e){if(null!=t)return Object(O["isArray"])(t)||(t=[t,t]),[ui(t[0],e[0])||0,ui(Object(O["retrieve2"])(t[1],t[0]),e[1])||0]}function hm(t){return isFinite(t)}function fm(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;e.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=hm(r)?r:0,i=hm(i)?i:1,o=hm(o)?o:0,a=hm(a)?a:0;var s=t.createLinearGradient(r,o,i,a);return s}function pm(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=hm(a)?a:.5,s=hm(s)?s:.5,l=l>=0&&hm(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function dm(t,e,n){for(var r="radial"===e.type?pm(t,e,n):fm(t,e,n),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function gm(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function vm(t){return parseInt(t,10)}function ym(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||vm(s[r])||vm(t.style[r]))-(vm(s[o])||0)-(vm(s[a])||0)|0}function mm(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(O["isNumber"])(t)?[t]:Object(O["isArray"])(t)?t:null:null}function _m(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&mm(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&1!==i&&(n=Object(O["map"])(n,(function(t){return t/i})),r/=i)}return[n,r]}var bm=new za(!0);function xm(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function wm(t){return"string"===typeof t&&"none"!==t}function Sm(t){var e=t.fill;return null!=e&&"none"!==e}function Om(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Mm(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Tm(t,e,n){var r=Po(e.image,e.__image,n);if(Ro(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*O["RADIAN_TO_DEGREE"]),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function Cm(t,e,n,r){var i,o=xm(n),a=Sm(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||bm,h=e.__dirty;if(!r){var f=n.fill,p=n.stroke,d=a&&!!f.colorStops,g=o&&!!p.colorStops,v=a&&!!f.image,y=o&&!!p.image,m=void 0,_=void 0,b=void 0,x=void 0,w=void 0;(d||g)&&(w=e.getBoundingRect()),d&&(m=h?dm(t,f,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=h?dm(t,p,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),v&&(b=h||!e.__canvasFillPattern?Tm(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(x=h||!e.__canvasStrokePattern?Tm(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),d?t.fillStyle=m:v&&(b?t.fillStyle=b:a=!1),g?t.strokeStyle=_:y&&(x?t.strokeStyle=x:o=!1)}var S,O,M=e.getGlobalScale();c.setScale(M[0],M[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(i=_m(e),S=i[0],O=i[1]);var T=!0;(u||h&be)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),T=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),T&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=O),r||(n.strokeFirst?(o&&Mm(t,n),a&&Om(t,n)):(a&&Om(t,n),o&&Mm(t,n))),S&&t.setLineDash([])}function Im(t,e,n){var r=e.__image=Po(n.image,e.__image,e,e.onload);if(r&&Ro(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var h=a-u,f=s-c;t.drawImage(r,u,c,h,f,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function km(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||_r["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=_m(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(xm(n)&&t.strokeText(i,n.x,n.y),Sm(n)&&t.fillText(i,n.x,n.y)):(Sm(n)&&t.fillText(i,n.x,n.y),xm(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}var Dm=["shadowBlur","shadowOffsetX","shadowOffsetY"],Am=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function jm(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){Wm(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Qo.opacity:a}(r||e.blend!==n.blend)&&(o||(Wm(t,i),o=!0),t.globalCompositeOperation=e.blend||Qo.blend);for(var s=0;s<Dm.length;s++){var l=Dm[s];(r||e[l]!==n[l])&&(o||(Wm(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(Wm(t,i),o=!0),t.shadowColor=e.shadowColor||Qo.shadowColor),o}function Pm(t,e,n,r,i){var o=Gm(e,i.inHover),a=r?null:n&&Gm(n,i.inHover)||{};if(o===a)return!1;var s=jm(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(Wm(t,i),s=!0),wm(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(Wm(t,i),s=!0),wm(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(Wm(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Wm(t,i),s=!0),t.lineWidth=u)}for(var c=0;c<Am.length;c++){var h=Am[c],f=h[0];(r||o[f]!==a[f])&&(s||(Wm(t,i),s=!0),t[f]=o[f]||h[1])}return s}function Lm(t,e,n,r,i){return jm(t,Gm(e,i.inHover),n&&Gm(n,i.inHover),r,i)}function Rm(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function Em(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),Rm(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}function Nm(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var Bm=1,Fm=2,zm=3,Vm=4;function Hm(t){var e=Sm(t),n=xm(t);return!(t.lineDash||!(+e^+n)||e&&"string"!==typeof t.fill||n&&"string"!==typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Wm(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Gm(t,e){return e&&t.__hoverStyle||t.style}function Um(t,e){Ym(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ym(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~me,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!gm(o,a)||(a&&a.length&&(Wm(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Wm(t,n),t.save(),Em(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=e instanceof fs&&e.autoBatch&&Hm(e.style);s||Nm(i,u.transform)?(Wm(t,n),Rm(t,e)):c||Wm(t,n);var h=Gm(e,n.inHover);e instanceof fs?(n.lastDrawType!==Bm&&(l=!0,n.lastDrawType=Bm),Pm(t,e,u,l,n),c&&(n.batchFill||n.batchStroke)||t.beginPath(),Cm(t,e,h,c),c&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):e instanceof gs?(n.lastDrawType!==zm&&(l=!0,n.lastDrawType=zm),Pm(t,e,u,l,n),km(t,e,h)):e instanceof bs?(n.lastDrawType!==Fm&&(l=!0,n.lastDrawType=Fm),Lm(t,e,u,l,n),Im(t,e,h)):e.getTemporalDisplayables&&(n.lastDrawType!==Vm&&(l=!0,n.lastDrawType=Vm),qm(t,e,n)),c&&r&&Wm(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}function qm(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=r.length;o<a;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ym(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=i.length;u<c;u++){l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ym(t,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Xm=new Jy,Zm=new mr["a"](100),Km=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function $m(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&Xm["delete"](t);var o=Xm.get(t);if(o)return o;var a=Object(O["defaults"])(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,Xm.set(t,s),t.dirty=!1,s;function l(t){for(var e,o=[n],s=!0,l=0;l<Km.length;++l){var u=a[Km[l]];if(null!=u&&!Object(O["isArray"])(u)&&!Object(O["isString"])(u)&&!Object(O["isNumber"])(u)&&"boolean"!==typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(i?"-svg":"");var c=Zm.get(e);c&&(i?t.svgElement=c:t.image=c)}var h,f=Jm(a.dashArrayX),p=t_(a.dashArrayY),d=Qm(a.symbol),g=e_(f),v=n_(p),y=!i&&_r["c"].createCanvas(),m=i&&{tag:"g",attrs:{},key:"dcl",children:[]},_=b();function b(){for(var t=1,e=0,n=g.length;e<n;++e)t=ji(t,g[e]);var r=1;for(e=0,n=d.length;e<n;++e)r=ji(r,d[e].length);t*=r;var i=v*g.length*d.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}function x(){h&&(h.clearRect(0,0,y.width,y.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,y.width,y.height)));for(var t=0,e=0;e<p.length;++e)t+=p[e];if(!(t<=0)){var o=-v,s=0,l=0,u=0;while(o<_.height){if(s%2===0){var c=l/2%d.length,g=0,b=0,x=0;while(g<2*_.width){var w=0;for(e=0;e<f[u].length;++e)w+=f[u][e];if(w<=0)break;if(b%2===0){var S=.5*(1-a.symbolSize),O=g+f[u][b]*S,M=o+p[s]*S,T=f[u][b]*a.symbolSize,C=p[s]*a.symbolSize,I=x/2%d[c].length;k(O,M,T,C,d[c][I])}g+=f[u][b],++x,++b,b===f[u].length&&(b=0)}++u,u===f.length&&(u=0)}o+=p[s],++l,++s,s===p.length&&(s=0)}}function k(t,e,o,s,l){var u=i?1:n,c=um(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var f=r.painter.renderOneToVNode(c);f&&m.children.push(f)}else Um(h,c)}}y&&(y.width=_.width*n,y.height=_.height*n,h=y.getContext("2d")),x(),s&&Zm.put(e,y||m),t.image=y,t.svgElement=m,t.svgWidth=_.width,t.svgHeight=_.height}}function Qm(t){if(!t||0===t.length)return[["rect"]];if(Object(O["isString"])(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Object(O["isString"])(t[n])){e=!1;break}if(e)return Qm([t]);var r=[];for(n=0;n<t.length;++n)Object(O["isString"])(t[n])?r.push([t[n]]):r.push(t[n]);return r}function Jm(t){if(!t||0===t.length)return[[0,0]];if(Object(O["isNumber"])(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!Object(O["isNumber"])(t[r])){n=!1;break}if(n)return Jm([t]);var i=[];for(r=0;r<t.length;++r)if(Object(O["isNumber"])(t[r])){e=Math.ceil(t[r]);i.push([e,e])}else{e=Object(O["map"])(t[r],(function(t){return Math.ceil(t)}));e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function t_(t){if(!t||"object"===typeof t&&0===t.length)return[0,0];if(Object(O["isNumber"])(t)){var e=Math.ceil(t);return[e,e]}var n=Object(O["map"])(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}function e_(t){return Object(O["map"])(t,(function(t){return n_(t)}))}function n_(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}function r_(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(t){var n=r.getItemVisual(t,"decal");if(n){var i=r.ensureUniqueItemVisual(t,"style");i.decal=$m(n,e)}}));var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=$m(i,e)}}}))}var i_=new tt,o_=i_,a_={};function s_(t,e){a_[t]=e}function l_(t){return a_[t]}var u_="5.5.0",c_={zrender:"5.5.0"},h_=1,f_=800,p_=900,d_=1e3,g_=2e3,v_=5e3,y_=1e3,m_=1100,__=2e3,b_=3e3,x_=4e3,w_=4500,S_=4600,O_=5e3,M_=6e3,T_=7e3,C_={PROCESSOR:{FILTER:d_,SERIES_FILTER:f_,STATISTIC:v_},VISUAL:{LAYOUT:y_,PROGRESSIVE_LAYOUT:m_,GLOBAL:__,CHART:b_,POST_CHART_LAYOUT:S_,COMPONENT:x_,BRUSH:O_,CHART_ITEM:w_,ARIA:M_,DECAL:T_}},I_="__flagInMainProcess",k_="__pendingUpdate",D_="__needsUpdateStatus",A_=/^[a-zA-Z0-9_]+$/,j_="__connectUpdateStatus",P_=0,L_=1,R_=2;function E_(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return B_(this,t,e);lb(this.id)}}function N_(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return B_(this,t,e)}}function B_(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),tt.prototype[e].apply(t,n)}var F_,z_,V_,H_,W_,G_,U_,Y_,q_,X_,Z_,K_,$_,Q_,J_,tb,eb,nb,rb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e}(tt),ib=rb.prototype;ib.on=N_("on"),ib.off=N_("off");var ob=function(t){function e(e,n,r){var i=t.call(this,new Fy)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},Object(O["isString"])(n)&&(n=db[n]),i._dom=e;var o="canvas",a="auto",s=!1;r.ssr&&ri((function(t){var e=Xs(t),n=e.dataIndex;if(null!=n){var r=Object(O["createHashMap"])();return r.set("series_index",e.seriesIndex),r.set("data_index",n),e.ssrType&&r.set("ssr_type",e.ssrType),r}}));var l=i._zr=$r(e,{renderer:r.renderer||o,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Object(O["retrieve2"])(r.useDirtyRect,s),useCoarsePointer:Object(O["retrieve2"])(r.useCoarsePointer,a),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=ey(Object(O["bind"])(l.flush,l),17),n=Object(O["clone"])(n),n&&Ef(n,!0),i._theme=n,i._locale=oc(r.locale||rc),i._coordSysMgr=new of;var u=i._api=J_(i);function c(t,e){return t.__prio-e.__prio}return ye(pb,c),ye(hb,c),i._scheduler=new Dy(i,u,hb,pb),i._messageCenter=new rb,i._initEvents(),i.resize=Object(O["bind"])(i.resize,i),l.animation.on("frame",i._onframe,i),X_(l,i),Z_(l,i),Object(O["setAsPrimitive"])(i),i}return w(e,t),e.prototype._onframe=function(){if(!this._disposed){nb(this);var t=this._scheduler;if(this[k_]){var e=this[k_].silent;this[I_]=!0;try{F_(this),H_.update.call(this,null,this[k_].updateParams)}catch(a){throw this[I_]=!1,this[k_]=null,a}this._zr.flush(),this[I_]=!1,this[k_]=null,Y_.call(this,e),q_.call(this,e)}else if(t.unfinished){var n=h_,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),G_(this,r),t.performVisualTasks(r),Q_(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[I_])if(this._disposed)lb(this.id);else{var r,i,o;if(Object(O["isObject"])(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[I_]=!0,!this._model||e){var a=new ff(this._api),s=this._theme,l=this._model=new Qh;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},fb);var u={seriesTransition:o,optionChanged:!0};if(n)this[k_]={silent:r,updateParams:u},this[I_]=!1,this.getZr().wakeUp();else{try{F_(this),H_.update.call(this,null,u)}catch(c){throw this[k_]=null,this[I_]=!1,c}this._ssr||this._zr.flush(),this[k_]=null,this[I_]=!1,Y_.call(this,r),q_.call(this,r)}}},e.prototype.setTheme=function(){Hh("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||S["a"].hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(S["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(O["each"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,r=[],i=this;Object(O["each"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(O["each"])(r,(function(t){t.group.ignore=!1})),o}lb(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(yb[n]){var a=o,s=o,l=-o,u=-o,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Object(O["each"])(vb,(function(o,h){if(o.group===n){var f=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(O["clone"])(t)),p=o.getDom().getBoundingClientRect();a=r(p.left,a),s=r(p.top,s),l=i(p.right,l),u=i(p.bottom,u),c.push({dom:f,left:p.left,top:p.top})}})),a*=h,s*=h,l*=h,u*=h;var f=l-a,p=u-s,d=_r["c"].createCanvas(),g=$r(d,{renderer:e?"svg":"canvas"});if(g.resize({width:f,height:p}),e){var v="";return Object(O["each"])(c,(function(t){var e=t.left-a,n=t.top-s;v+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new ks({shape:{x:0,y:0,width:f,height:p},style:{fill:t.connectedBackgroundColor}})),Object(O["each"])(c,(function(t){var e=new bs({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}lb(this.id)},e.prototype.convertToPixel=function(t,e){return W_(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return W_(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=io(r,t);return Object(O["each"])(i,(function(t,r){r.indexOf("Models")>=0&&Object(O["each"])(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}lb(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=io(n,t,{defaultMainType:"series"}),i=r.seriesModel;var o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?Gy(o,a,e):Uy(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(O["each"])(sb,(function(e){var n=function(n){var r,i=t.getModel(),o=n.target,a="globalout"===e;if(a?r={}:o&&Zy(o,(function(t){var e=Xs(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return r=Object(O["extend"])({},e.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:u,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(O["each"])(cb,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(O["each"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),Xy(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?lb(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)lb(this.id);else{this._disposed=!0;var t=this.getDom();t&&lo(this.getDom(),bb,"");var e=this,n=e._api,r=e._model;Object(O["each"])(e._componentsViews,(function(t){t.dispose(r,n)})),Object(O["each"])(e._chartsViews,(function(t){t.dispose(r,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete vb[e.id]}},e.prototype.resize=function(t){if(!this[I_])if(this._disposed)lb(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[k_]&&(null==r&&(r=this[k_].silent),n=!0,this[k_]=null),this[I_]=!0;try{n&&F_(this),H_.update.call(this,{type:"resize",animation:Object(O["extend"])({duration:0},t&&t.animation)})}catch(i){throw this[I_]=!1,i}this[I_]=!1,Y_.call(this,r),q_.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)lb(this.id);else if(Object(O["isObject"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),gb[t]){var n=gb[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?lb(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(O["extend"])({},t);return e.type=cb[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)lb(this.id);else if(Object(O["isObject"])(e)||(e={silent:!!e}),ub[t.type]&&this._model)if(this[I_])this._pendingActions.push(t);else{var n=e.silent;U_.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&S["a"].browser.weChat&&this._throttledZrFlush(),Y_.call(this,n),q_.call(this,n)}},e.prototype.updateLabelLayout=function(){o_.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)lb(this.id);else{var e=t.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(e);0,r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,o,a=e.concat(n);ye(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(O["each"])(a,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}function n(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),t.hoverState===nl&&t.states.emphasis?e.push("emphasis"):t.hoverState===el&&t.states.blur&&e.push("blur"),t.useStates(e)}function r(t,e){var n=t._zr,r=n.storage,i=0;r.traverse((function(t){t.isGroup||i++})),i>e.get("hoverLayerThreshold")&&!S["a"].node&&!S["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function i(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function o(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered((function(t){return a(t,n,r,-1/0),!0}))}}function a(t,e,n,r){var i=t.getTextContent(),o=t.getTextGuideLine(),s=t.isGroup;if(s)for(var l=t.childrenRef(),u=0;u<l.length;u++)r=Math.max(a(l[u],e,n,r),r);else t.z=e,t.zlevel=n,r=Math.max(t.z2,r);if(i&&(i.z=e,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),o){var c=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(r)&&(o.z2=r+(c&&c.showAbove?1:-1))}return r}function s(t,e){e.eachRendered((function(t){if(!hu(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function l(t,e){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(hu(t))return;if(t instanceof fs&&ou(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}F_=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),z_(t,!0),z_(t,!1),e.plan()},z_=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=vo(t.type),f=e?Ad.getClass(h.main,h.sub):$v.getClass(h.sub);0,c=new f,c.init(n,s),o[u]=c,i.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},V_=function(t,e,n,r,i){var o=t._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=Object(O["createHashMap"])(),Object(O["each"])(Ei(u),(function(t){var e=Ki(t,null);null!=e&&l.set(e,!0)}))),o&&o.eachComponent(s,(function(e){var r=l&&null!=l.get(e.id);if(!r)if(iu(n))if(e instanceof kd)n.type!==sl||n.notBlur||e.get(["emphasis","disabled"])||zl(e,n,t._api);else{var i=Vl(e.mainType,e.componentIndex,n.name,t._api),o=i.focusSelf,a=i.dispatchers;n.type===sl&&o&&!n.notBlur&&Fl(e.mainType,e.componentIndex,t._api),a&&Object(O["each"])(a,(function(t){n.type===sl?Dl(t):Al(t)}))}else ru(n)&&e instanceof kd&&(Gl(e,n,t._api),Ul(e),eb(t))}),t),o&&o.eachComponent(s,(function(e){var n=l&&null!=l.get(e.id);n||c(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else Object(O["each"])([].concat(t._componentsViews).concat(t._chartsViews),c);function c(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}},H_={prepareAndUpdate:function(t){F_(this),H_.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,e),G_(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e),K_(this,r,i,e,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),o_.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var o=[];r.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=Object(O["createHashMap"])();r.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,r,i,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:a}),Q_(this,r,i,e,{},a),o_.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),$v.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),K_(this,n,this._api,e,{}),o_.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries((function(t){t.getData().clearAllVisual()})),$v.markUpdateMethod(e,"updateVisual"),t(r),this._scheduler.performVisualTasks(r,e,{visualType:"visual",setDirty:!0}),r.eachComponent((function(t,i){if("series"!==t){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,e)}})),r.eachSeries((function(t){var i=n._chartsMap[t.__viewId];i.updateVisual(t,r,n._api,e)})),o_.trigger("afterupdate",r,this._api))},updateLayout:function(t){H_.update.call(this,t)}},W_=function(t,e,n,r){if(t._disposed)lb(t.id);else{for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=io(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(i=u[e](o,s,r)))return i}0}},G_=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))},U_=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=ub[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&vo(l[0]);this[I_]=!0;var h=[t],f=!1;t.batch&&(f=!0,h=Object(O["map"])(t.batch,(function(e){return e=Object(O["defaults"])(Object(O["extend"])({},e),t),e.batch=null,e})));var p,d=[],g=ru(t),v=iu(t);if(v&&Nl(this._api),Object(O["each"])(h,(function(e){if(p=a.action(e,n._model,n._api),p=p||Object(O["extend"])({},e),p.type=s.event||p.type,d.push(p),v){var r=oo(t),i=r.queryOptionMap,o=r.mainTypeSpecified,l=o?i.keys()[0]:"series";V_(n,u,e,l),eb(n)}else g?(V_(n,u,e,"series"),eb(n)):c&&V_(n,u,e,c.main,c.sub)})),"none"!==u&&!v&&!g&&!c)try{this[k_]?(F_(this),H_.update.call(this,t),this[k_]=null):H_[u].call(this,t)}catch(_){throw this[I_]=!1,_}if(p=f?{type:s.event||i,escapeConnect:o,batch:d}:d[0],this[I_]=!1,!e){var y=this._messageCenter;if(y.trigger(p.type,p),g){var m={type:"selectchanged",escapeConnect:o,selected:Yl(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};y.trigger(m.type,m)}}},Y_=function(t){var e=this._pendingActions;while(e.length){var n=e.shift();U_.call(this,n,t)}},q_=function(t){!t&&this.trigger("updated")},X_=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[k_]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},Z_=function(t,e){t.on("mouseover",(function(t){var n=t.target,r=Zy(n,eu);r&&(Hl(r,t,e._api),eb(e))})).on("mouseout",(function(t){var n=t.target,r=Zy(n,eu);r&&(Wl(r,t,e._api),eb(e))})).on("click",(function(t){var n=t.target,r=Zy(n,(function(t){return null!=Xs(t).dataIndex}),!0);if(r){var i=r.selected?"unselect":"select",o=Xs(r);e._api.dispatchAction({type:i,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},K_=function(t,n,r,i,o){e(n),$_(t,n,r,i,o),Object(O["each"])(t._chartsViews,(function(t){t.__alive=!1})),Q_(t,n,r,i,o),Object(O["each"])(t._chartsViews,(function(t){t.__alive||t.remove(n,r)}))},$_=function(t,e,n,r,i,a){Object(O["each"])(a||t._componentsViews,(function(t){var i=t.__model;s(i,t),t.render(i,e,n,r),o(i,t),l(i,t)}))},Q_=function(t,e,n,a,u,c){var h=t._scheduler;u=Object(O["extend"])(u||{},{updatedSeries:e.getSeries()}),o_.trigger("series:beforeupdate",e,n,u);var f=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;h.updatePayload(r,a),s(e,n),c&&c.get(e.uid)&&r.dirty(),r.perform(h.getPerformArgs(r))&&(f=!0),n.group.silent=!!e.get("silent"),i(e,n),Ul(e)})),h.unfinished=f||h.unfinished,o_.trigger("series:layoutlabels",e,n,u),o_.trigger("series:transition",e,n,u),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];o(e,n),l(e,n)})),r(t,e),o_.trigger("series:afterupdate",e,n,u)},eb=function(t){t[D_]=!0,t.getZr().wakeUp()},nb=function(t){t[D_]&&(t.getZr().storage.traverse((function(t){hu(t)||n(t)})),t[D_]=!1)},J_=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return w(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Dl(e,n),eb(t)},n.prototype.leaveEmphasis=function(e,n){Al(e,n),eb(t)},n.prototype.enterBlur=function(e){jl(e),eb(t)},n.prototype.leaveBlur=function(e){Pl(e),eb(t)},n.prototype.enterSelect=function(e){Ll(e),eb(t)},n.prototype.leaveSelect=function(e){Rl(e),eb(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(ef))(t)},tb=function(t){function e(t,e){for(var n=0;n<t.length;n++){var r=t[n];r[j_]=e}}Object(O["each"])(cb,(function(n,r){t._messageCenter.on(r,(function(n){if(yb[t.group]&&t[j_]!==P_){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];Object(O["each"])(vb,(function(e){e!==t&&e.group===t.group&&i.push(e)})),e(i,P_),Object(O["each"])(i,(function(t){t[j_]!==L_&&t.dispatchAction(r)})),e(i,R_)}}))}))}}(),e}(tt),ab=ob.prototype;ab.on=E_("on"),ab.off=E_("off"),ab.one=function(t,e,n){var r=this;function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),r.off(t,i)}Hh("ECharts#one is deprecated."),this.on.call(this,t,i,n)};var sb=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function lb(t){0}var ub={},cb={},hb=[],fb=[],pb=[],db={},gb={},vb={},yb={},mb=+new Date-0,_b=+new Date-0,bb="_echarts_instance_";function xb(t,e,n){var r=!(n&&n.ssr);if(r){0;var i=Tb(t);if(i)return i;0}var o=new ob(t,e,n);return o.id="ec_"+mb++,vb[o.id]=o,r&&lo(t,bb,o.id),tb(o),o_.trigger("afterinit",o),o}function wb(t){if(Object(O["isArray"])(t)){var e=t;t=null,Object(O["each"])(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+_b++,Object(O["each"])(e,(function(e){e.group=t}))}return yb[t]=!0,t}function Sb(t){yb[t]=!1}var Ob=Sb;function Mb(t){Object(O["isString"])(t)?t=vb[t]:t instanceof ob||(t=Tb(t)),t instanceof ob&&!t.isDisposed()&&t.dispose()}function Tb(t){return vb[uo(t,bb)]}function Cb(t){return vb[t]}function Ib(t,e){db[t]=e}function kb(t){Object(O["indexOf"])(fb,t)<0&&fb.push(t)}function Db(t,e){zb(hb,t,e,g_)}function Ab(t){Pb("afterinit",t)}function jb(t){Pb("afterupdate",t)}function Pb(t,e){o_.on(t,e)}function Lb(t,e,n){Object(O["isFunction"])(e)&&(n=e,e="");var r=Object(O["isObject"])(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,cb[e]||(Object(O["assert"])(A_.test(r)&&A_.test(e)),ub[r]||(ub[r]={action:n,actionInfo:t}),cb[e]=r)}function Rb(t,e){of.register(t,e)}function Eb(t){var e=of.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function Nb(t,e){zb(pb,t,e,y_,"layout")}function Bb(t,e){zb(pb,t,e,b_,"visual")}var Fb=[];function zb(t,e,n,r,i){if((Object(O["isFunction"])(e)||Object(O["isObject"])(e))&&(n=e,e=r),!(Object(O["indexOf"])(Fb,n)>=0)){Fb.push(n);var o=Dy.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function Vb(t,e){gb[t]=e}function Hb(t){Object(_r["d"])({createCanvas:t})}function Wb(t,e,n){var r=l_("registerMap");r&&r(t,e,n)}function Gb(t){var e=l_("getMap");return e&&e(t)}var Ub=kp;Bb(__,uy),Bb(w_,hy),Bb(w_,fy),Bb(__,Hy),Bb(w_,Wy),Bb(T_,r_),kb(Ef),Db(p_,Nf),Vb("default",dy),Lb({type:sl,event:sl,update:sl},O["noop"]),Lb({type:ll,event:ll,update:ll},O["noop"]),Lb({type:ul,event:ul,update:ul},O["noop"]),Lb({type:cl,event:cl,update:cl},O["noop"]),Lb({type:hl,event:hl,update:hl},O["noop"]),Ib("light",jy),Ib("dark",By);var Yb={},qb=[],Xb={registerPreprocessor:kb,registerProcessor:Db,registerPostInit:Ab,registerPostUpdate:jb,registerUpdateLifecycle:Pb,registerAction:Lb,registerCoordinateSystem:Rb,registerLayout:Nb,registerVisual:Bb,registerTransform:Ub,registerLoading:Vb,registerMap:Wb,registerImpl:s_,PRIORITY:C_,ComponentModel:ch,ComponentView:Ad,SeriesModel:kd,ChartView:$v,registerComponentModel:function(t){ch.registerClass(t)},registerComponentView:function(t){Ad.registerClass(t)},registerSeriesModel:function(t){kd.registerClass(t)},registerChartView:function(t){$v.registerClass(t)},registerSubTypeDefaulter:function(t,e){ch.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){ei(t,e)}};function Zb(t){Object(O["isArray"])(t)?Object(O["each"])(t,(function(t){Zb(t)})):Object(O["indexOf"])(qb,t)>=0||(qb.push(t),Object(O["isFunction"])(t)&&(t={install:t}),t.install(Xb))}function Kb(t){return null==t?0:t.length||1}function $b(t){return t}var Qb=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||$b,this._newKeyGetter=r||$b,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=r[o],s=n[a],l=Kb(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=Kb(l),h=Kb(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var f=0;f<c;f++)this._remove&&this._remove(l[f]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=Kb(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[r](t[o],o);if(i||(n[o]=a),e){var s=e[a],l=Kb(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),Jb=Qb,tx=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function ex(t,e){var n={},r=n.encode={},i=Object(O["createHashMap"])(),o=[],a=[],s={};Object(O["each"])(t.dimensions,(function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){0;var u=n.coordDimIndex;nx(r,l)[u]=e,n.isExtraCoord||(i.set(l,1),ix(n.type)&&(o[0]=e),nx(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}dh.each((function(t,e){var i=nx(r,e),o=n.otherDims[e];null!=o&&!1!==o&&(i[o]=n.name)}))}));var l=[],u={};i.each((function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Object(O["map"])(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var h=r.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new tx(s,e),n}function nx(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function rx(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function ix(t){return!("ordinal"===t||"time"===t)}var ox=function(){function t(t){this.otherDims={},null!=t&&O["extend"](this,t)}return t}(),ax=ox,sx=no(),lx={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ux=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=fx(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(O["retrieve2"])(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=tp(this.source),n=!px(t),r="",i=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=lx[l]||"f",u&&(r+=u.uid),r+="$"}var f=this.source,p=[f.seriesLayoutBy,f.startIndex,r].join("$$");return{dimensions:i,hash:p}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function cx(t){return t instanceof ux}function hx(t){for(var e=Object(O["createHashMap"])(),n=0;n<(t||[]).length;n++){var r=t[n],i=Object(O["isObject"])(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function fx(t){var e=sx(t);return e.dimNameMap||(e.dimNameMap=hx(t.dimensionsDefine))}function px(t){return t>30}var dx,gx,vx,yx,mx,_x,bx,xx=O["isObject"],wx=O["map"],Sx="undefined"===typeof Int32Array?Array:Int32Array,Ox="e\0\0",Mx=-1,Tx=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Cx=["_approximateExtent"],Ix=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;cx(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=O["isString"](c)?new ax({name:c}):c instanceof ax?c:new ax(c),f=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=f,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(f),i[f]=h,null!=l[f]&&(s=!0),h.createInvertedIndices&&(a[f]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),r&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var d=this._dimIdxToName=O["createHashMap"]();O["each"](o,(function(t){d.set(i[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(O["isNumber"](t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof Up&&(r=t),!r){var o=this.dimensions,a=Uf(t)||O["isArrayLike"](t)?new ep(t,o.length):t;r=new Up;var s=wx(o,(function(t){return{type:i._dimInfos[t].type,property:t}}));r.initData(a,s,n)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=ex(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&bx(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==_h&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===gh;if(s&&!r.pure)for(var l=[],u=t;u<e;u++){var c=r.getItem(u,l);if(!this.hasItemOption&&zi(c)&&(this.hasItemOption=!0),c){var h=c.name;null==i[u]&&null!=h&&(i[u]=Ki(h,null));var f=c.id;null==o[u]&&null!=f&&(o[u]=Ki(f,null))}}if(this._shouldMakeIdFromName())for(u=t;u<e;u++)bx(this,u);dx(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){xx(t)?O["extend"](this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=vx(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return gx(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return O["isArray"](t)?r.getValues(wx(t,(function(t){return n._getStoreDimIndex(t)})),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var r=n[e];return null==r||isNaN(r)?Mx:r},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){O["isFunction"](t)&&(n=e,e=t,t=[]);var r=n||this,i=wx(yx(t),this._getStoreDimIndex,this);this._store.each(i,r?O["bind"](e,r):e)},t.prototype.filterSelf=function(t,e,n){O["isFunction"](t)&&(n=e,e=t,t=[]);var r=n||this,i=wx(yx(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?O["bind"](e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={},r=O["keys"](t),i=[];return O["each"](r,(function(r){var o=e._getStoreDimIndex(r);n[o]=t[r],i.push(o)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){O["isFunction"](t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=wx(yx(t),this._getStoreDimIndex,this),a=_x(this);return a._store=this._store.map(o,i?O["bind"](e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this;var o=wx(yx(t),this._getStoreDimIndex,this);this._store.modify(o,i?O["bind"](e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=_x(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=_x(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Gu(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new Jb(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return gx(t,e)}),(function(t){return gx(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},xx(t)?O["extend"](this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),O["isArray"](i)?i=i.slice():xx(i)&&(i=O["extend"]({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,xx(e)?O["extend"](r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){xx(t)?O["extend"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?O["extend"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Zs(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){O["each"](this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:wx(this.dimensions,this._getDimInfo,this),this.hostModel)),mx(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];O["isFunction"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(O["slice"](arguments)))})},t.internalField=function(){dx=function(t){var e=t._invertedIndicesMap;O["each"](e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new Sx(o.categories.length);for(var s=0;s<n.length;s++)n[s]=Mx;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},vx=function(t,e,n){return Ki(t._getCategory(e,n),null)},gx=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=vx(t,t._idDimIdx,e)),null==n&&(n=Ox+e),n},yx=function(t){return O["isArray"](t)||(t=null!=t?[t]:[]),t},_x=function(e){var n=new t(e._schema?e._schema:wx(e.dimensions,e._getDimInfo,e),e.hostModel);return mx(n,e),n},mx=function(t,e){O["each"](Tx.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,O["each"](Cx,(function(n){t[n]=O["clone"](e[n])})),t._calculationInfo=O["extend"]({},e._calculationInfo)},bx=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];if(null==a&&null!=i&&(n[e]=a=vx(t,i,e)),null==s&&null!=o&&(r[e]=s=vx(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[e]=s}}}(),t}(),kx=Ix;function Dx(t,e){return Ax(t,e).dimensions}function Ax(t,e){Uf(t)||(t=qf(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Object(O["createHashMap"])(),o=[],a=Px(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&px(a),l=r===t.dimensionsDefine,u=l?fx(t):hx(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=Object(O["createHashMap"])(c),f=new Np(a),p=0;p<f.length;p++)f[p]=-1;function d(t){var e=f[t];if(e<0){var n=r[t],i=Object(O["isObject"])(n)?n:{name:n},a=new ax,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return f[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(p=0;p<a;p++)d(p);h.each((function(t,e){var n=Ei(t).slice();if(1===n.length&&!Object(O["isString"])(n[0])&&n[0]<0)h.set(e,!1);else{var r=h.set(e,[]);Object(O["each"])(n,(function(t,n){var i=Object(O["isString"])(t)?u.get(t):t;null!=i&&i<a&&(r[n]=i,v(d(i),e,n))}))}}));var g=0;function v(t,e,n){null!=dh.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,i.set(e,!0))}Object(O["each"])(n,(function(t){var e,n,r,i;if(Object(O["isString"])(t))e=t,i={};else{i=t,e=i.name;var o=i.ordinalMeta;i.ordinalMeta=null,i=Object(O["extend"])({},i),i.ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=h.get(e);if(!1!==s){if(s=Ei(s),!s.length)for(var u=0;u<(n&&n.length||1);u++){while(g<a&&null!=d(g).coordDim)g++;g<a&&s.push(g++)}Object(O["each"])(s,(function(t,o){var a=d(t);if(l&&null!=i.type&&(a.type=i.type),v(Object(O["defaults"])(a,i),e,o),null==a.name&&n){var s=n[o];!Object(O["isObject"])(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&Object(O["defaults"])(a.otherDims,r)}))}}));var y=e.generateCoord,m=e.generateCoordCount,_=null!=m;m=y?m||1:0;var b=y||"value";function x(t){null==t.name&&(t.name=t.coordDim)}if(s)Object(O["each"])(o,(function(t){x(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var w=0;w<a;w++){var S=d(w),M=S.coordDim;null==M&&(S.coordDim=Lx(b,i,_),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),x(S),null!=S.type||Dh(t,w)!==Sh.Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return jx(o),new ux({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function jx(t){for(var e=Object(O["createHashMap"])(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function Px(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Object(O["each"])(e,(function(t){var e;Object(O["isObject"])(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}function Lx(t,e,n){if(n||e.hasKey(t)){var r=0;while(e.hasKey(t+r))r++;t+=r}return e.set(t,!0),t}var Rx=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(O["createHashMap"])(),this.categoryAxisMap=Object(O["createHashMap"])(),this.coordSysName=t}return t}();function Ex(t){var e=t.get("coordinateSystem"),n=new Rx(e),r=Nx[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var Nx={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",ao).models[0],o=t.getReferringComponents("yAxis",ao).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Bx(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Bx(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",ao).models[0];e.coordSysDims=["single"],n.set("single",i),Bx(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",ao).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Bx(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),Bx(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Object(O["each"])(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Bx(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function Bx(t){return"category"===t.get("type")}function Fx(t,e,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;zx(e)?r=e:(i=e.schema,r=i.dimensions,o=e.store);var l,u,c,h,f=!(!t||!t.get("stack"));if(Object(O["each"])(r,(function(t,e){Object(O["isString"])(t)&&(r[e]=t={name:t}),f&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,d=u.type,g=0;Object(O["each"])(r,(function(t){t.coordDim===p&&g++}));var v={name:c,coordDim:p,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,d),y.storeDimIndex=o.ensureCalculationDimension(c,d)),i.appendCalculationDimension(v),i.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function zx(t){return!cx(t.schema)}function Vx(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Hx(t,e){return Vx(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Wx(t,e){var n,r=t.get("coordinateSystem"),i=of.get(r);return e&&e.coordSysDims&&(n=O["map"](e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=rx(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function Gx(t,e,n){var r,i;return n&&O["each"](t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}function Ux(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=qf(t)):(r=i.getSource(),o=r.sourceFormat===gh);var a=Ex(e),s=Wx(e,a),l=n.useEncodeDefaulter,u=O["isFunction"](l)?l:l?O["curry"](Th,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=Ax(r,c),f=Gx(h.dimensions,n.createInvertedIndices,a),p=o?null:i.getSharedDataStore(h),d=Fx(e,{schema:h,store:p}),g=new kx(h,e);g.setCalculationInfo(d);var v=null!=f&&Yx(r)?function(t,e,n,r){return r===f?n:this.defaultDimValueGetter(t,e,n,r)}:null;return g.hasItemOption=!1,g.initData(o?r:p,null,v),g}function Yx(t){if(t.sourceFormat===gh){var e=qx(t.data||[]);return!O["isArray"](Fi(e))}}function qx(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var Xx=Ux,Zx=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();To(Zx);var Kx=Zx,$x=0,Qx=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++$x}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&Object(O["map"])(r,Jx);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(O["isString"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(O["createHashMap"])(this.categories))},t}();function Jx(t){return Object(O["isObject"])(t)&&null!=t.value?t.value:t+""}var tw=Qx;function ew(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=Mi(o/e,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=nw(a),l=i.niceTickExtent=[ci(Math.ceil(t[0]/a)*a,s),ci(Math.floor(t[1]/a)*a,s)];return iw(l,t),i}function nw(t){return fi(t)+2}function rw(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function iw(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),rw(t,0,e),rw(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function ow(t,e){return t>=e[0]&&t<=e[1]}function aw(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function sw(t,e){return t*(e[1]-e[0])+e[0]}var lw=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new tw({})),Object(O["isArray"])(r)&&(r=new tw({categories:Object(O["map"])(r,(function(t){return Object(O["isObject"])(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return w(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(O["isString"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),ow(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),aw(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(sw(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i<a;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){while(null!=r[l])l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Kx);Kx.registerClass(lw);var uw=lw,cw=ci,hw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return w(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return ow(t,this._extent)},e.prototype.normalize=function(t){return aw(t,this._extent)},e.prototype.scale=function(t){return sw(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=nw(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]<r[0]&&(t?o.push({value:cw(r[0]-e,i)}):o.push({value:n[0]}));var s=r[0];while(s<=r[1]){if(o.push({value:s}),s=cw(s+e,i),s===o[o.length-1].value)break;if(o.length>a)return[]}var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&(t?o.push({value:cw(l+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<e.length;i++){var o=e[i],a=e[i-1],s=0,l=[],u=o.value-a.value,c=u/t;while(s<t-1){var h=cw(a.value+(s+1)*c);h>r[0]&&h<r[1]&&l.push(h),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=fi(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=cw(t.value,n,!0);return zc(r)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=ew(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=cw(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=cw(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(Kx);Kx.registerClass(hw);var fw=hw,pw="undefined"!==typeof Float32Array;pw&&Float32Array;var dw="__ec_stack_";function gw(t){return t.get("stack")||dw+t.seriesIndex}function vw(t){return t.dim+t.index}function yw(t,e){var n=[];return e.eachSeriesByType(t,(function(t){ww(t)&&n.push(t)})),n}function mw(t){var e={};Object(O["each"])(t,(function(t){var n=t.coordinateSystem,r=n.getBaseAxis();if("time"===r.type||"value"===r.type)for(var i=t.getData(),o=r.dim+"_"+r.index,a=i.getDimensionIndex(i.mapDimension(r.dim)),s=i.getStore(),l=0,u=s.count();l<u;++l){var c=s.get(a,l);e[o]?e[o].push(c):e[o]=[c]}}));var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort((function(t,e){return t-e}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function _w(t){var e=mw(t),n=[];return Object(O["each"])(t,(function(t){var r,i=t.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);r=l?u/h*l:u}else{var f=t.getData();r=Math.abs(a[1]-a[0])/f.count()}var p=ui(t.get("barWidth"),r),d=ui(t.get("barMaxWidth"),r),g=ui(t.get("barMinWidth")||(Sw(t)?.5:1),r),v=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:vw(o),stackId:gw(t)})})),bw(n)}function bw(t){var e={};Object(O["each"])(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var f=t.barCategoryGap;null!=f&&(o.categoryGap=f)}));var n={};return Object(O["each"])(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(O["keys"])(r).length;o=Math.max(35-4*a,15)+"%"}var s=ui(o,i),l=ui(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),Object(O["each"])(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,c--}else{var r=h;e&&e<r&&(r=Math.min(e,u)),n&&n>r&&(r=n),r!==h&&(t.width=r,u-=r+l*r,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var f,p=0;Object(O["each"])(r,(function(t,e){t.width||(t.width=h),f=t,p+=t.width*(1+l)})),f&&(p-=f.width*l);var d=-p/2;Object(O["each"])(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:d,width:t.width},d+=t.width*(1+l)}))})),n}function xw(t,e,n){if(t&&e){var r=t[vw(e)];return null!=r&&null!=n?r[gw(n)]:r}}function ww(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Sw(t){return t.pipelineContext&&t.pipelineContext.large}var Ow=function(t,e,n,r){while(n<r){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n},Mw=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return w(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return wc(t.value,gc[xc(_c(this._minLevelUnit))]||gc.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return Sc(t,e,n,i,r)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var r=this.getSetting("useUTC"),i=Lw(this._minLevelUnit,this._approxInterval,r,e);return n=n.concat(i),n.push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=hc,e[1]+=hc),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-hc}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=Tw.length,a=Math.min(Ow(Tw,this._approxInterval,0,o),o-1);this._interval=Tw[a][1],this._minLevelUnit=Tw[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(O["isNumber"])(t)?t:+wi(t)},e.prototype.contain=function(t){return ow(this.parse(t),this._extent)},e.prototype.normalize=function(t){return aw(this.parse(t),this._extent)},e.prototype.scale=function(t){return sw(t,this._extent)},e.type="time",e}(fw),Tw=[["second",lc],["minute",uc],["hour",cc],["quarter-day",6*cc],["half-day",12*cc],["day",1.2*hc],["half-week",3.5*hc],["week",7*hc],["month",31*hc],["quarter",95*hc],["half-year",fc/2],["year",fc]];function Cw(t,e,n,r){var i=wi(e),o=wi(n),a=function(t){return Mc(i,t,r)===Mc(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},f=function(){return h()&&a("second")},p=function(){return f()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return f();case"millisecond":return p()}}function Iw(t,e){return t/=hc,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function kw(t){var e=30*hc;return t/=e,t>6?6:t>3?3:t>2?2:1}function Dw(t){return t/=cc,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Aw(t,e){return t/=e?uc:lc,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function jw(t){return Mi(t,!0)}function Pw(t,e,n){var r=new Date(t);switch(_c(e)){case"year":case"month":r[Lc(n)](0);case"day":r[Rc(n)](1);case"hour":r[Ec(n)](0);case"minute":r[Nc(n)](0);case"second":r[Bc(n)](0),r[Fc(n)](0)}return r.getTime()}function Lw(t,e,n,r){var i=1e4,o=yc,a=0;function s(t,e,n,i,o,a,s){var l=new Date(e),u=e,c=l[i]();while(u<n&&u<=r[1])s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,i,o){var a=[],l=!i.length;if(!Cw(_c(t),r[0],r[1],n)){l&&(i=[{value:Pw(new Date(r[0]),t,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,h=i[u+1].value;if(c!==h){var f=void 0,p=void 0,d=void 0,g=!1;switch(t){case"year":f=Math.max(1,Math.round(e/hc/365)),p=Tc(n),d=Pc(n);break;case"half-year":case"quarter":case"month":f=kw(e),p=Cc(n),d=Lc(n);break;case"week":case"half-week":case"day":f=Iw(e,31),p=Ic(n),d=Rc(n),g=!0;break;case"half-day":case"quarter-day":case"hour":f=Dw(e),p=kc(n),d=Ec(n);break;case"minute":f=Aw(e,!0),p=Dc(n),d=Nc(n);break;case"second":f=Aw(e,!1),p=Ac(n),d=Bc(n);break;case"millisecond":f=jw(e),p=jc(n),d=Fc(n);break}s(f,c,h,p,d,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-f})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],h=0,f=0,p=0;p<o.length&&a++<i;++p){var d=_c(o[p]);if(bc(o[p])){l(o[p],u[u.length-1]||[],c);var g=o[p+1]?_c(o[p+1]):null;if(d!==g){if(c.length){f=h,c.sort((function(t,e){return t.value-e.value}));for(var v=[],y=0;y<c.length;++y){var m=c[y].value;0!==y&&c[y-1].value===m||(v.push(c[y]),m>=r[0]&&m<=r[1]&&h++)}var _=(r[1]-r[0])/e;if(h>1.5*_&&f>_/1.5)break;if(u.push(v),h>_||t===o[p])break}c=[]}}}var b=Object(O["filter"])(Object(O["map"])(u,(function(t){return Object(O["filter"])(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),x=[],w=b.length-1;for(p=0;p<b.length;++p)for(var S=b[p],M=0;M<S.length;++M)x.push({value:S[M].value,level:w-p});x.sort((function(t,e){return t.value-e.value}));var T=[];for(p=0;p<x.length;++p)0!==p&&x[p].value===x[p-1].value||T.push(x[p]);return T}Kx.registerClass(Mw);var Rw=Mw,Ew=Kx.prototype,Nw=fw.prototype,Bw=ci,Fw=Math.floor,zw=Math.ceil,Vw=Math.pow,Hw=Math.log,Ww=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new fw,e._interval=0,e}return w(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),i=Nw.getTicks.call(this,t);return O["map"](i,(function(t){var e=t.value,i=ci(Vw(this.base,e));return i=e===n[0]&&this._fixMin?Uw(i,r[0]):i,i=e===n[1]&&this._fixMax?Uw(i,r[1]):i,{value:i}}),this)},e.prototype.setExtent=function(t,e){var n=Hw(this.base);t=Hw(Math.max(0,t))/n,e=Hw(Math.max(0,e))/n,Nw.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=Ew.getExtent.call(this);e[0]=Vw(t,e[0]),e[1]=Vw(t,e[1]);var n=this._originalScale,r=n.getExtent();return this._fixMin&&(e[0]=Uw(e[0],r[0])),this._fixMax&&(e[1]=Uw(e[1],r[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=Hw(t[0])/Hw(e),t[1]=Hw(t[1])/Hw(e),Ew.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var r=Si(n),i=t/n*r;i<=.5&&(r*=10);while(!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0)r*=10;var o=[ci(zw(e[0]/r)*r),ci(Fw(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){Nw.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Hw(t)/Hw(this.base),ow(t,this._extent)},e.prototype.normalize=function(t){return t=Hw(t)/Hw(this.base),aw(t,this._extent)},e.prototype.scale=function(t){return t=sw(t,this._extent),Vw(this.base,t)},e.type="log",e}(Kx),Gw=Ww.prototype;function Uw(t,e){return Bw(t,fi(e))}Gw.getMinorTicks=Nw.getMinorTicks,Gw.getLabel=Nw.getLabel,Kx.registerClass(Ww);var Yw=Ww,qw=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=this._modelMinRaw=e.get("min",!0);Object(O["isFunction"])(i)?this._modelMinNum=$w(t,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=$w(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(Object(O["isFunction"])(o)?this._modelMaxNum=$w(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=$w(t,o)),r)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=Object(O["isArray"])(a)?a:[a||0,a||0];"boolean"===typeof s[0]||"boolean"===typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Cr(s[0],1),Cr(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?r?0:NaN:e-i[0]*o),null==s&&(s=t?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=Object(O["eqNaN"])(a)||Object(O["eqNaN"])(s)||t&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,f=this._determinedMax;return null!=h&&(a=h,l=!0),null!=f&&(s=f,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[Zw[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=Xw[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),Xw={min:"_determinedMin",max:"_determinedMax"},Zw={min:"_dataMin",max:"_dataMax"};function Kw(t,e,n){var r=t.rawExtentInfo;return r||(r=new qw(t,e,n),t.rawExtentInfo=r,r)}function $w(t,e){return null==e?null:Object(O["eqNaN"])(e)?NaN:t.parse(e)}function Qw(t,e){var n=t.type,r=Kw(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=yw("bar",a),l=!1;if(O["each"](s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=_w(s),c=Jw(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function Jw(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=xw(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;O["each"](a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;O["each"](a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=1-(s+l)/o,f=c/h-c;return e+=f*(l/u),t-=f*(s/u),{min:t,max:e}}function tS(t,e){var n=e,r=Qw(t,n),i=r.extent,o=n.get("splitNumber");t instanceof Yw&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function eS(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new uw({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Rw({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Kx.getClass(e)||fw)}}function nS(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,r){return t.scale.getFormattedLabel(n,r,e)}}(e):O["isString"](e)?function(e){return function(n){var r=t.scale.getLabel(n),i=e.replace("{value}",null!=r?r:"");return i}}(e):O["isFunction"](e)?function(e){return function(r,i){return null!=n&&(i=r.value-n),e(rS(t,r),i,null!=r.level?{level:r.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function rS(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function iS(t){var e=t.get("interval");return null==e?"auto":e}function oS(t){return"category"===t.type&&0===iS(t.getLabelModel())}var aS=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}();function sS(t){return Xx(null,t)}var lS={isDimensionStacked:Vx,enableDataStack:Fx,getStackedDimension:Hx};function uS(t,e){var n=e;e instanceof Gu||(n=new Gu(e));var r=eS(n);return r.setExtent(t[0],t[1]),tS(r,n),r}function cS(t){O["mixin"](t,aS)}function hS(t,e){return e=e||{},xu(t,null,null,"normal"!==e.state)}var fS=1e-8;function pS(t,e){return Math.abs(t-e)<fS}function dS(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var o=1;o<t.length;o++){var a=t[o];r+=Xa(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return pS(i[0],s[0])&&pS(i[1],s[1])||(r+=Xa(i[0],i[1],s[0],s[1],e,n)),0!==r}var gS=[];function vS(t,e){for(var n=0;n<t.length;n++)q(t[n],t[n],e)}function yS(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(X(e,e,o),Z(n,n,o))}}function mS(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}var _S=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),bS=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),xS=function(){function t(t){this.type="linestring",this.points=t}return t}(),wS=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return w(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;r<e.length;r++){var i=e[r],o=i.exterior,a=o&&o.length;a>n&&(t=i,n=a)}if(t)return mS(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(O["each"])(i,(function(e){"polygon"===e.type?yS(e.exterior,n,r,t):Object(O["each"])(e.points,(function(e){yS(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new Zt(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(dS(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(dS(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new Zt(t,e,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(vS(c.exterior,s),Object(O["each"])(c.interiors,(function(t){vS(t,s)}))):Object(O["each"])(c.points,(function(t){vS(t,s)}))}i=this._rect,i.copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(_S);(function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}w(e,t),e.prototype.calcCenter=function(){var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],r=Dt(gS),i=t;while(i&&!i.isGeoSVGGraphicRoot)jt(r,i.getLocalTransform(),r),i=i.parent;return Et(r,r),q(n,n,r),n}})(_S);function SS(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var r=e.features;return O["each"](r,(function(t){var e=t.geometry,r=e.encodeOffsets,i=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=MS(i,r,n);break;case"Polygon":OS(i,r,n);break;case"MultiLineString":OS(i,r,n);break;case"MultiPolygon":O["each"](i,(function(t,e){return OS(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}function OS(t,e,n){for(var r=0;r<t.length;r++)t[r]=MS(t[r],e[r],n)}function MS(t,e,n){for(var r=[],i=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function TS(t,e){return t=SS(t),O["map"](O["filter"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new bS(o[0],o.slice(1)));break;case"MultiPolygon":O["each"](r.coordinates,(function(t){t[0]&&i.push(new bS(t[0],t.slice(1)))}));break;case"LineString":i.push(new xS([r.coordinates]));break;case"MultiLineString":i.push(new xS(r.coordinates))}var a=new wS(n[e||"name"],i,n.cp);return a.properties=n,a}))}function CS(t,e,n,r,i,o,a,s){var l=new qs({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var IS=no();function kS(t){return"category"===t.type?AS(t):LS(t)}function DS(t,e){return"category"===t.type?PS(t,e):{ticks:O["map"](t.scale.getTicks(),(function(t){return t.value}))}}function AS(t){var e=t.getLabelModel(),n=jS(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function jS(t,e){var n,r,i=RS(t,"labels"),o=iS(e),a=ES(i,o);return a||(O["isFunction"](o)?n=HS(t,o):(r="auto"===o?BS(t):o,n=VS(t,r)),NS(i,o,{labels:n,labelCategoryInterval:r}))}function PS(t,e){var n,r,i=RS(t,"ticks"),o=iS(e),a=ES(i,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),O["isFunction"](o))n=HS(t,o,!0);else if("auto"===o){var s=jS(t,t.getLabelModel());r=s.labelCategoryInterval,n=O["map"](s.labels,(function(t){return t.tickValue}))}else r=o,n=VS(t,r,!0);return NS(i,o,{ticks:n,tickCategoryInterval:r})}function LS(t){var e=t.scale.getTicks(),n=nS(t);return{labels:O["map"](e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function RS(t,e){return IS(t)[e]||(IS(t)[e]=[])}function ES(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function NS(t,e,n){return t.push({key:e,value:n}),n}function BS(t){var e=IS(t).autoInterval;return null!=e?e:IS(t).autoInterval=t.calculateCategoryInterval()}function FS(t){var e=zS(t),n=nS(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),f=0,p=0;l<=o[1];l+=s){var d=0,g=0,v=Sr(n({value:l}),e.font,"center","top");d=1.3*v.width,g=1.3*v.height,f=Math.max(f,d,7),p=Math.max(p,g,7)}var y=f/c,m=p/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),b=IS(t.model),x=t.getExtent(),w=b.lastAutoInterval,S=b.lastTickCount;return null!=w&&null!=S&&Math.abs(w-_)<=1&&Math.abs(S-a)<=1&&w>_&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?_=w:(b.lastTickCount=a,b.lastAutoInterval=_,b.axisExtent0=x[0],b.axisExtent1=x[1]),_}function zS(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function VS(t,e,n){var r=nS(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=oS(t),f=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;f&&u!==o[0]&&g(o[0]);for(var d=u;d<=o[1];d+=l)g(d);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return p&&d-l!==o[1]&&g(o[1]),s}function HS(t,e,n){var r=t.scale,i=nS(t),o=[];return O["each"](r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}var WS=[0,1],GS=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return di(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&(n=n.slice(),US(n,r.count())),li(t,WS,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),US(n,r.count()));var i=li(t,n,WS,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=DS(this,e),r=n.ticks,i=Object(O["map"])(r,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return YS(this,i,o,t.clamp),i},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),r=Object(O["map"])(n,(function(t){return Object(O["map"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return r},t.prototype.getViewLabels=function(){return kS(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return FS(this)},t}();function US(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function YS(t,e,n,r){var i=e.length;if(t.onBand&&!n&&i){var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[1]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;Object(O["each"])(e,(function(t){t.coord-=u/2}));var c=t.scale.getExtent();a=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a},e.push(o)}var h=s[0]>s[1];f(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&f(s[0],e[0].coord)&&e.unshift({coord:s[0]}),f(s[1],o.coord)&&(r?o.coord=s[1]:e.pop()),r&&f(o.coord,s[1])&&e.push({coord:s[1]})}function f(t,e){return t=ci(t),e=ci(e),h?t>e:t<e}}var qS=GS;function XS(t){var e=ch.extend(t);return ch.registerClass(e),e}function ZS(t){var e=Ad.extend(t);return Ad.registerClass(e),e}function KS(t){var e=kd.extend(t);return kd.registerClass(e),e}function $S(t){var e=$v.extend(t);return $v.registerClass(e),e}var QS=2*Math.PI,JS=za.CMD,tO=["top","right","bottom","left"];function eO(t,e,n,r,i){var o=n.width,a=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+a/2),i.set(1,0);break}}function nO(t,e,n,r,i,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+t,h=s*n+e;if(Math.abs(r-i)%QS<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var f=r;r=Ua(i),i=Ua(f)}else r=Ua(r),i=Ua(i);r>i&&(i+=QS);var p=Math.atan2(s,a);if(p<0&&(p+=QS),p>=r&&p<=i||p+QS>=r&&p+QS<=i)return l[0]=c,l[1]=h,u-n;var d=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(i)+t,y=n*Math.sin(i)+e,m=(d-a)*(d-a)+(g-s)*(g-s),_=(v-a)*(v-a)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(_))}function rO(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,h=r-e,f=Math.sqrt(c*c+h*h);c/=f,h/=f;var p=l*c+u*h,d=p/f;s&&(d=Math.min(Math.max(d,0),1)),d*=f;var g=a[0]=t+d*c,v=a[1]=e+d*h;return Math.sqrt((g-i)*(g-i)+(v-o)*(v-o))}function iO(t,e,n,r,i,o,a){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r);var s=t+n,l=e+r,u=a[0]=Math.min(Math.max(i,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var oO=[];function aO(t,e,n){var r=iO(e.x,e.y,e.width,e.height,t.x,t.y,oO);return n.set(oO[0],oO[1]),r}function sO(t,e,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,f=t.y,p=0;p<c.length;){var d=c[p++];1===p&&(o=c[p],a=c[p+1],s=o,l=a);var g=u;switch(d){case JS.M:s=c[p++],l=c[p++],o=s,a=l;break;case JS.L:g=rO(o,a,c[p],c[p+1],h,f,oO,!0),o=c[p++],a=c[p++];break;case JS.C:g=Ye(o,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,f,oO),o=c[p++],a=c[p++];break;case JS.Q:g=Je(o,a,c[p++],c[p++],c[p],c[p+1],h,f,oO),o=c[p++],a=c[p++];break;case JS.A:var v=c[p++],y=c[p++],m=c[p++],_=c[p++],b=c[p++],x=c[p++];p+=1;var w=!!(1-c[p++]);r=Math.cos(b)*m+v,i=Math.sin(b)*_+y,p<=1&&(s=r,l=i);var S=(h-v)*_/m+v;g=nO(v,y,_,b,b+x,w,S,f,oO),o=Math.cos(b+x)*m+v,a=Math.sin(b+x)*_+y;break;case JS.R:s=o=c[p++],l=a=c[p++];var O=c[p++],M=c[p++];g=iO(s,l,O,M,h,f,oO);break;case JS.Z:g=rO(o,a,s,l,h,f,oO,!0),o=s,a=l;break}g<u&&(u=g,n.set(oO[0],oO[1]))}return u}var lO=new Ft,uO=new Ft,cO=new Ft,hO=new Ft,fO=new Ft;function pO(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var i=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||tO,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=t.getComputedTransform(),h=c&&Et([],c),f=e.get("length2")||0;u&&cO.copy(u);for(var p=0;p<a.length;p++){var d=a[p];eO(d,0,s,lO,hO),Ft.scaleAndAdd(uO,lO,hO,f),uO.transform(h);var g=t.getBoundingRect(),v=u?u.distance(uO):t instanceof fs?sO(uO,t.path,cO):aO(uO,g,cO);v<l&&(l=v,uO.transform(c),cO.transform(c),cO.toArray(o[0]),uO.toArray(o[1]),lO.toArray(o[2]))}vO(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var dO=[],gO=new Ft;function vO(t,e){if(e<=180&&e>0){e=e/180*Math.PI,lO.fromArray(t[0]),uO.fromArray(t[1]),cO.fromArray(t[2]),Ft.sub(hO,lO,uO),Ft.sub(fO,cO,uO);var n=hO.len(),r=fO.len();if(!(n<.001||r<.001)){hO.scale(1/n),fO.scale(1/r);var i=hO.dot(fO),o=Math.cos(e);if(o<i){var a=rO(uO.x,uO.y,cO.x,cO.y,lO.x,lO.y,dO,!1);gO.fromArray(dO),gO.scaleAndAdd(fO,a/Math.tan(Math.PI-e));var s=cO.x!==uO.x?(gO.x-uO.x)/(cO.x-uO.x):(gO.y-uO.y)/(cO.y-uO.y);if(isNaN(s))return;s<0?Ft.copy(gO,uO):s>1&&Ft.copy(gO,cO),gO.toArray(t[1])}}}}function yO(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,lO.fromArray(t[0]),uO.fromArray(t[1]),cO.fromArray(t[2]),Ft.sub(hO,uO,lO),Ft.sub(fO,cO,uO);var r=hO.len(),i=fO.len();if(!(r<.001||i<.001)){hO.scale(1/r),fO.scale(1/i);var o=hO.dot(e),a=Math.cos(n);if(o<a){var s=rO(uO.x,uO.y,cO.x,cO.y,lO.x,lO.y,dO,!1);gO.fromArray(dO);var l=Math.PI/2,u=Math.acos(fO.dot(e)),c=l+u-n;if(c>=l)Ft.copy(gO,cO);else{gO.scaleAndAdd(fO,s/Math.tan(Math.PI/2-c));var h=cO.x!==uO.x?(gO.x-uO.x)/(cO.x-uO.x):(gO.y-uO.y)/(cO.y-uO.y);if(isNaN(h))return;h<0?Ft.copy(gO,uO):h>1&&Ft.copy(gO,cO)}gO.toArray(t[1])}}}}function mO(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function _O(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=H(r[0],r[1]),o=H(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=Y([],r[1],r[0],a/i),l=Y([],r[1],r[2],a/o),u=Y([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function bO(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<il.length;l++){var u=il[l],c=e[u],h="normal"===u;if(c){var f=c.get("show"),p=h?s:Object(O["retrieve2"])(i.states[u]&&i.states[u].ignore,s);if(p||!Object(O["retrieve2"])(f,a)){var d=h?r:r&&r.states[u];d&&(d.ignore=!0),r&&mO(r,!0,u,c);continue}r||(r=new Rg,t.setTextGuideLine(r),h||!s&&a||mO(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),mO(r,!1,u,c)}}if(r){Object(O["defaults"])(r.style,n),r.style.fill=null;var g=o.get("showAbove"),v=t.textGuideLineConfig=t.textGuideLineConfig||{};v.showAbove=g||!1,r.buildPath=_O}}else r&&t.removeTextGuideLine()}function xO(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<rl.length;r++){var i=rl[r];n[i]=t.getModel([i,e])}return n}function wO(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new sv(a,o):null;e.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return e}function SO(t,e,n,r,i,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,c=[],h=0,f=0;f<a;f++){var p=t[f],d=p.rect;s=d[e]-l,s<0&&(d[e]-=s,p.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=d[e]+d[n]}h>0&&o&&w(-h/a,0,a);var v,y,m=t[0],_=t[a-1];return b(),v<0&&S(-v,.8),y<0&&S(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&O(-v),y<0&&O(y),u}function b(){v=m.rect[e]-r,y=i-_.rect[e]-_.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){w(r*n,0,a);var i=r+t;i<0&&S(-i*n,1)}else S(-t*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function S(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++){var f=o[l]*h;w(f,0,l+1)}else for(l=a-1;l>0;l--){f=o[l-1]*h;w(-f,l,a)}}}function O(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r<a-1;r++)if(e>0?w(n,0,r+1):w(-n,a-r-1,a),t-=n,t<=0)return}}function OO(t,e,n,r){return SO(t,"x","width",e,n,r)}function MO(t,e,n,r){return SO(t,"y","height",e,n,r)}function TO(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new Zt(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i<t.length;i++){var o=t[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,f=!1,p=0;p<e.length;p++){var d=e[p];if(n.intersect(d.rect)){if(a&&d.axisAligned){f=!0;break}if(d.obb||(d.obb=new sv(d.localRect,d.transform)),h||(h=new sv(s,l)),h.intersect(d.obb)){f=!0;break}}}f?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function CO(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function IO(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:CO(r&&r.shape.points)}}var kO=["align","verticalAlign","width","height","fontSize"],DO=new yr,AO=no(),jO=no();function PO(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}var LO=["x","y","rotation"],RO=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,r,i){var o=r.style,a=r.__hostTarget,s=a.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();Zt.applyTransform(u,u,l),l?DO.setLocalTransform(l):(DO.x=DO.y=DO.rotation=DO.originX=DO.originY=0,DO.scaleX=DO.scaleY=1),DO.rotation=Ua(DO.rotation);var c,h=r.__hostTarget;if(h){c=h.getBoundingRect().plain();var f=h.getComputedTransform();Zt.applyTransform(c,c,f)}var p=c&&h.getTextGuideLine();this._labelList.push({label:r,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:p&&p.ignore,x:DO.x,y:DO.y,scaleX:DO.scaleX,scaleY:DO.scaleY,rotation:DO.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,r=n.get("labelLayout");(Object(O["isFunction"])(r)||Object(O["keys"])(r).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var i=t.getTextContent(),o=Xs(t);i&&!i.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,i,r)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function r(t,e){return function(){pO(t,e)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=Object(O["isFunction"])(o.layoutOption)?o.layoutOption(IO(o,s)):o.layoutOption,u=u||{},o.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var h=!1;if(null!=u.x?(a.x=ui(u.x,e),a.setStyle("x",0),h=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=ui(u.y,n),a.setStyle("y",0),h=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:u.labelLinePoints}),h=!1)}var p=AO(a);p.needsUpdateLabelLine=h,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var d=0;d<kO.length;d++){var g=kO[d];a.setStyle(g,null!=u[g]?u[g]:l.style[g])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var v=o.seriesModel;if(null!=o.dataIndex){var y=o.seriesModel.getData(o.dataType);v=y.getItemModel(o.dataIndex)}a.on("drag",r(s,v.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),r=wO(this._labelList),i=Object(O["filter"])(r,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=Object(O["filter"])(r,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));OO(i,0,e),MO(o,0,n);var a=Object(O["filter"])(r,(function(t){return t.layoutOption.hideOverlap}));TO(a)},t.prototype.processLabelsOverall=function(){var t=this;Object(O["each"])(this._chartViewList,(function(e){var n=e.__model,r=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!r,a=e.getTextContent();!o&&a&&(o=AO(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=Xs(t),i=r.dataIndex;if(n&&null!=i){var o=e.getData(r.dataType),a=o.getItemModel(i),s={},l=o.getItemVisual(i,"style");if(l){var u=o.getVisual("drawType");s.stroke=l[u]}var c=a.getModel("labelLine");bO(t,xO(a),s),pO(t,c)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),r=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!hu(t))){var i=AO(n),o=i.oldLayout,a=Xs(t),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(a.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(Object(O["indexOf"])(c,"select")>=0&&n.attr(i.oldLayoutSelect),Object(O["indexOf"])(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),uu(n,l,e,s)}else if(n.attr(l),!Du(n).valueAnimation){var h=Object(O["retrieve2"])(n.style.opacity,1);n.style.opacity=0,cu(n,{style:{opacity:h}},e,s)}if(i.oldLayout=l,n.states.select){var f=i.oldLayoutSelect={};PO(f,l,LO),PO(f,n.states.select,LO)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};PO(p,l,LO),PO(p,n.states.emphasis,LO)}Au(n,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){i=jO(r),o=i.oldLayout;var d={points:r.shape.points};o?(r.attr({shape:o}),uu(r,{shape:d},e)):(r.setShape(d),r.style.strokePercent=0,cu(r,{style:{strokePercent:1}},e)),i.oldLayout=d}},t}(),EO=RO,NO=no();function BO(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=NO(e).labelManager;r||(r=NO(e).labelManager=new EO),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=NO(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}function FO(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return zO(n,t,e),n.seriesInvolved&&HO(n,t),n}function zO(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Object(O["each"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=ZO(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",r);if(Object(O["each"])(n.getAxes(),Object(O["curry"])(d,!1,null)),n.getTooltipAxes&&r&&c.get("show")){var h="axis"===c.get("trigger"),f="cross"===c.get(["axisPointer","type"]),p=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||f)&&Object(O["each"])(p.baseAxes,Object(O["curry"])(d,!f||"cross",h)),f&&Object(O["each"])(p.otherAxes,Object(O["curry"])(d,"cross",!1))}}function d(r,s,u){var h=u.model.getModel("axisPointer",i),f=h.get("show");if(f&&("auto"!==f||r||XO(h))){null==s&&(s=h.get("triggerTooltip")),h=r?VO(u,c,i,e,r,s):h;var p=h.get("snap"),d=h.get("triggerEmphasis"),g=ZO(u.model),v=s||p||"category"===u.type,y=t.axesInfo[g]={key:g,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:d,involveSeries:v,snap:p,useHandle:XO(h),seriesModels:[],linkGroup:null};l[g]=y,t.seriesInvolved=t.seriesInvolved||v;var m=WO(o,u);if(null!=m){var _=a[m]||(a[m]={axesInfo:{}});_.axesInfo[g]=y,_.mapper=o[m].mapper,y.linkGroup=_}}}}))}function VO(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(O["each"])(s,(function(t){l[t]=Object(O["clone"])(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===i){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var h=l.lineStyle=a.get("crossStyle");h&&Object(O["defaults"])(u,h.textStyle)}}return t.model.getModel("axisPointer",new Gu(l,n,r))}function HO(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&Object(O["each"])(t.coordSysAxesInfo[ZO(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function WO(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(GO(o[r+"AxisId"],n.id)||GO(o[r+"AxisIndex"],n.componentIndex)||GO(o[r+"AxisName"],n.name))return i}}function GO(t,e){return"all"===t||Object(O["isArray"])(t)&&Object(O["indexOf"])(t,e)>=0||t===e}function UO(t){var e=YO(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=XO(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function YO(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ZO(t)]}function qO(t){var e=YO(t);return e&&e.axisPointerModel}function XO(t){return!!t.get(["handle","show"])}function ZO(t){return t.type+"||"+t.id}Zb(BO);var KO={},$O=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&UO(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},e.prototype.updateAxisPointer=function(t,e,n,r){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,r){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=qO(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){KO[t]=e},e.getAxisPointerClass=function(t){return t&&KO[t]},e.type="axis",e}(Ad),QO=$O,JO=no(),tM=O["clone"],eM=O["bind"],nM=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=O["curry"](rM,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new Gr,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);sM(a,e,!0),this._renderHandle(i)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),r=t.axis,i="category"===r.type,o=e.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=YO(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=JO(t).pointerEl=new a[i.type](tM(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=JO(t).labelEl=new qs(tM(e.label));t.add(i),oM(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=JO(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=JO(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),oM(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Rv(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Ot(t.event)},onmousedown:eM(this._onHandleDragMove,this,0,0),drift:eM(this._onHandleDragMove,this),ondragend:eM(this._onHandleDragEnd,this)}),r.add(i)),sM(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");O["isArray"](s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,ny(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){rM(this._axisPointerModel,!e&&this._moveAnimation,this._handle,aM(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(aM(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(aM(r)),JO(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),ry(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function rM(t,e,n,r){iM(JO(n).lastProp,r)||(JO(n).lastProp=r,e?uu(n,r,t):(n.stopAnimation(),n.attr(r)))}function iM(t,e){if(O["isObject"](t)&&O["isObject"](e)){var n=!0;return O["each"](e,(function(e,r){n=n&&iM(t[r],e)})),!!n}return t===e}function oM(t,e){t[e.get(["label","show"])?"show":"hide"]()}function aM(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function sM(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}var lM=nM,uM=Math.PI,cM=function(){function t(t,e){this.group=new Gr,this.opt=e,this.axisModel=t,Object(O["defaults"])(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Gr({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!hM[t]},t.prototype.add=function(t){hM[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=_i(e-t);return bi(o)?(i=n>0?"top":"bottom",r="center"):bi(o-uM)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<uM?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),hM={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(q(s,s,a),q(l,l,a));var c=Object(O["extend"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Fg({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Ov(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var f=e.get(["axisLine","symbol"]);if(null!=f){var p=e.get(["axisLine","symbolSize"]);Object(O["isString"])(f)&&(f=[f,f]),(Object(O["isString"])(p)||Object(O["isNumber"])(p))&&(p=[p,p]);var d=cm(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],v=p[1];Object(O["each"])([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==f[r]&&null!=f[r]){var i=um(f[r],-g/2,-v/2,g,v,c.stroke,!0),o=e.r+e.offset,a=u?l:s;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=mM(n,r,e,t),o=bM(n,r,e,t);if(pM(e,o,i),_M(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=wO(Object(O["map"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));TO(a)}},axisName:function(t,e,n,r){var i=Object(O["retrieve"])(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),f=h[0]>h[1]?-1:1,p=["start"===s?h[0]-f*c:"end"===s?h[1]+f*c:(h[0]+h[1])/2,vM(s)?t.labelOffset+l*c:0],d=e.get("nameRotate");null!=d&&(d=d*uM/180),vM(s)?o=cM.innerTextLayout(t.rotation,null!=d?d:t.rotation,l):(o=fM(t.rotation,s,d||0,h),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=Object(O["retrieve"])(t.nameTruncateMaxWidth,v.maxWidth,a),_=new qs({x:p[0],y:p[1],rotation:o.rotation,silent:cM.isLabelSilent(e),style:xu(u,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(zv({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var b=cM.makeAxisEventDataBase(e);b.targetType="axisName",b.name=i,Xs(_).eventData=b}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function fM(t,e,n,r){var i,o,a=_i(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return bi(a-uM/2)?(o=l?"bottom":"top",i="center"):bi(a-1.5*uM)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*uM&&a>uM/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function pM(t,e,n){if(!oS(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],f=n[n.length-2];!1===r?(dM(o),dM(u)):gM(o,a)&&(r?(dM(a),dM(c)):(dM(o),dM(u))),!1===i?(dM(s),dM(h)):gM(l,s)&&(i?(dM(l),dM(f)):(dM(s),dM(h)))}}function dM(t){t&&(t.ignore=!0)}function gM(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=Dt([]);return Lt(i,i,-t.rotation),n.applyTransform(jt([],i,t.getLocalTransform())),r.applyTransform(jt([],i,e.getLocalTransform())),n.intersect(r)}}function vM(t){return"middle"===t||"center"===t}function yM(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(q(a,a,e),q(s,s,e));var c=new Fg({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Ov(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,o.push(c)}return o}function mM(t,e,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),a&&!i.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=i.getTicksCoords(),c=yM(u,e.transform,l,Object(O["defaults"])(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)t.add(c[h]);return c}}function _M(t,e,n,r){var i=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!i.scale.isBlank()){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=Object(O["defaults"])(s.getLineStyle(),Object(O["defaults"])(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=yM(a[c],e.transform,l,u,"minorticks_"+c),f=0;f<h.length;f++)t.add(h[f])}}function bM(t,e,n,r){var i=n.axis,o=Object(O["retrieve"])(r.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!i.scale.isBlank()){var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(Object(O["retrieve"])(r.labelRotate,a.get("rotate"))||0)*uM/180,c=cM.innerTextLayout(r.rotation,u,r.labelDirection),h=n.getCategories&&n.getCategories(!0),f=[],p=cM.isLabelSilent(n),d=n.get("triggerEvent");return Object(O["each"])(l,(function(o,u){var g="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,v=o.formattedLabel,y=o.rawLabel,m=a;if(h&&h[g]){var _=h[g];Object(O["isObject"])(_)&&_.textStyle&&(m=new Gu(_.textStyle,a,n.ecModel))}var b=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(g),w=m.getShallow("align",!0)||c.textAlign,S=Object(O["retrieve2"])(m.getShallow("alignMinLabel",!0),w),M=Object(O["retrieve2"])(m.getShallow("alignMaxLabel",!0),w),T=m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||c.textVerticalAlign,C=Object(O["retrieve2"])(m.getShallow("verticalAlignMinLabel",!0),T),I=Object(O["retrieve2"])(m.getShallow("verticalAlignMaxLabel",!0),T),k=new qs({x:x,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(o.level||0),style:xu(m,{text:v,align:0===u?S:u===l.length-1?M:w,verticalAlign:0===u?C:u===l.length-1?I:T,fill:Object(O["isFunction"])(b)?b("category"===i.type?y:"value"===i.type?g+"":g,u):b})});if(k.anid="label_"+g,d){var D=cM.makeAxisEventDataBase(n);D.targetType="axisLabel",D.value=y,D.tickIndex=u,"category"===i.type&&(D.dataIndex=g),Xs(k).eventData=D}e.add(k),k.updateTransform(),f.push(k),t.add(k),k.decomposeTransform()})),f}}var xM=cM;function wM(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle(),e.fill=null):"shadow"===n&&(e=r.getAreaStyle(),e.stroke=null),e}function SM(t,e,n,r,i){var o=n.get("value"),a=MM(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Hc(s.get("padding")||0),u=s.getFont(),c=Sr(a,u),h=i.position,f=c.width+l[1]+l[3],p=c.height+l[0]+l[2],d=i.align;"right"===d&&(h[0]-=f),"center"===d&&(h[0]-=f/2);var g=i.verticalAlign;"bottom"===g&&(h[1]-=p),"middle"===g&&(h[1]-=p/2),OM(h,f,p,r);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:xu(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function OM(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function MM(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:rS(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};O["each"](r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)})),O["isString"](a)?o=a.replace("{value}",o):O["isFunction"](a)&&(o=a(s))}return o}function TM(t,e,n){var r=kt();return Lt(r,r,n.rotation),Pt(r,r,n.position),Iv([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function CM(t,e,n,r,i,o){var a=xM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),SM(e,r,i,o,{position:TM(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function IM(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function kM(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function DM(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,d="x"===u?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));d[f.onZero]=Math.max(Math.min(g,d[1]),d[0])}o.position=["y"===u?d[f[l]]:h[0],"x"===u?d[f[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?d[f[s]]-d[f.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),O["retrieve"](n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}var AM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=jM(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=wM(r),h=PM[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}var f=DM(a.model,n);CM(e,t,f,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=DM(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=TM(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=jM(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var f=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:f[l]}},e}(lM);function jM(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var PM={line:function(t,e,n){var r=IM([e,n[0]],[e,n[1]],LM(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:kM([e-r/2,n[0]],[r,i],LM(t))}}};function LM(t){return"x"===t.dim?0:1}var RM=AM,EM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},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}},e}(ch),NM=EM,BM=no(),FM=O["each"];function zM(t,e,n){if(!S["a"].node){var r=e.getZr();BM(r).records||(BM(r).records={}),VM(r,e);var i=BM(r).records[t]||(BM(r).records[t]={});i.handler=n}}function VM(t,e){function n(n,r){t.on(n,(function(n){var i=UM(e);FM(BM(t).records,(function(t){t&&r(t,n,i.dispatchAction)})),HM(i.pendings,e)}))}BM(t).initialized||(BM(t).initialized=!0,n("click",O["curry"](GM,"click")),n("mousemove",O["curry"](GM,"mousemove")),n("globalout",WM))}function HM(t,e){var n,r=t.showTip.length,i=t.hideTip.length;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function WM(t,e,n){t.handler("leave",null,n)}function GM(t,e,n,r){e.handler(t,n,r)}function UM(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function YM(t,e){if(!S["a"].node){var n=e.getZr(),r=(BM(n).records||{})[t];r&&(BM(n).records[t]=null)}}var qM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";zM("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){YM("axisPointer",e)},e.prototype.dispose=function(t,e){YM("axisPointer",e)},e.type="axisPointer",e}(Ad),XM=qM;function ZM(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=eo(o,t);if(null==a||a<0||O["isArray"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,f=u.dim,p="x"===h||"radius"===h?1:0,d=o.mapDimension(f),g=[];g[p]=o.get(d,a),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(o.getValues(O["map"](l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var KM=no();function $M(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Object(O["bind"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){sT(i)&&(i=ZM({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=sT(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||sT(i),f={},p={},d={list:[],map:{}},g={showPointer:Object(O["curry"])(tT,p),showTooltip:Object(O["curry"])(eT,d)};Object(O["each"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);Object(O["each"])(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=oT(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&QM(t,a,g,!1,f)}}))}));var v={};return Object(O["each"])(c,(function(t,e){var n=t.linkGroup;n&&!p[e]&&Object(O["each"])(n.axesInfo,(function(e,r){var i=p[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,aT(e),aT(t)))),v[t.key]=o}}))})),Object(O["each"])(v,(function(t,e){QM(c[e],t,g,!0,f)})),nT(p,c,f),rT(d,i,t,a),iT(c,a,n),f}}function QM(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=JM(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(O["extend"])(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function JM(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(O["each"])(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(h,t,n);c=f.dataIndices,u=f.nestestValue}else{if(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=t-u,d=Math.abs(p);d<=a&&((d<a||p>=0&&s<0)&&(a=d,s=p,i=u,o.length=0),Object(O["each"])(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}function tT(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function eT(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=ZO(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function nT(t,e,n){var r=n.axesInfo=[];Object(O["each"])(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}function rT(t,e,n,r){if(!sT(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else r({type:"hideTip"})}function iT(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=KM(r)[i]||{},a=KM(r)[i]={};Object(O["each"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Object(O["each"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Object(O["each"])(o,(function(t,e){!a[e]&&l.push(t)})),Object(O["each"])(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function oT(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function aT(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function sT(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function lT(t){QO.registerAxisPointerClass("CartesianAxisPointer",RM),t.registerComponentModel(NM),t.registerComponentView(XM),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(O["isArray"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=FO(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$M)}var uT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(ch),cT=uT;function hT(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function fT(t){if(S["a"].domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}var pT=fT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),dT=fT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function gT(t,e){if(!t)return e;e=Vc(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function vT(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var yT=gT(dT,"transition"),mT=gT(pT,"transform"),_T="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(S["a"].transform3dSupported?"will-change:transform;":"");function bT(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function xT(t,e,n){if(!Object(O["isString"])(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=Kc(e);var o,a=bT(n),s=Math.max(1.5*Math.round(i),6),l="",u=mT+":";Object(O["indexOf"])(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,h=s+i,f=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),p=Math.round(100*((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-h)/2))/100;l+=";"+a+":-"+p+"px";var d=e+" solid "+i+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+r+";"];return'<div style="'+g.join("")+'"></div>'}function wT(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=S["a"].transformSupported?","+mT+r:",left"+r+",top"+r),yT+":"+i}function ST(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!S["a"].transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=S["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+mT+":"+a+";":[["top",0],["left",0],[pT,a]]}function OT(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Object(O["each"])(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}function MT(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=pd(t,"html"),f=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+f),e&&i&&r.push(wT(i,n)),o&&r.push("background-color:"+o),Object(O["each"])(["width","color","radius"],(function(e){var n="border-"+e,i=Vc(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(OT(c)),null!=h&&r.push("padding:"+Hc(h).join("px ")+"px"),r.join(";")+";"}function TT(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&at(t,a,n,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var CT=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,S["a"].wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=t.getZr(),i=e.appendTo,o=i&&(Object(O["isString"])(i)?document.querySelector(i):Object(O["isDom"])(i)?i:Object(O["isFunction"])(i)&&i(t.getDom()));TT(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler,n=r.painter.getViewportRoot();bt(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=vT(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=_T+MT(t,!this._firstShow,this._longHide)+ST(i[0],i[1],!0)+"border-color:"+Kc(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(Object(O["isString"])(i)&&"item"===n.get("trigger")&&!hT(n)&&(a=xT(n,r,i)),Object(O["isString"])(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(O["isArray"])(t)||(t=[t]);for(var s=0;s<t.length;s++)Object(O["isDom"])(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(TT(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style,i=ST(n[0],n[1]);Object(O["each"])(i,(function(t){r[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",S["a"].transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(O["bind"])(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}(),IT=CT,kT=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),jT(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,r,i){var o=this;O["isObject"](t)&&Wh(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new qs({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:pd(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),O["each"](["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),O["each"](["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=AT(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var r=this._styleCoord;jT(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=DT(i.borderWidth||0),a=AT(i);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(O["bind"](this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function DT(t){return Math.max(0,t)}function AT(t){var e=DT(t.shadowBlur||0),n=DT(t.shadowOffsetX||0),r=DT(t.shadowOffsetY||0);return{left:DT(e-n),right:DT(e+n),top:DT(e-r),bottom:DT(e+r)}}function jT(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var PT=kT,LT=new ks({shape:{x:-1,y:-1,width:2,height:2}}),RT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.prototype.init=function(t,e){if(!S["a"].node&&e.getDom()){var n=t.getComponent("tooltip"),r=this._renderMode=co(n.get("renderMode"));this._tooltipContent="richText"===r?new PT(e):new IT(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!S["a"].node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?ny(this,"_updatePosition",50,"fixRate"):ry(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");zM("itemTooltip",this._api,Object(O["bind"])((function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!S["a"].node&&n.getDom()){var i=NT(r,n);this._ticket="";var o=r.dataByCoordSys,a=HT(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=LT;l.x=r.x,l.y=r.y,l.update(),Xs(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=ZM(r,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(NT(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s){var l=s.getData(),u=ET([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var o,a,s=Xs(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,Zy(n,(function(t){return null!=Xs(t).dataIndex?(o=t,!0):null!=Xs(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(O["bind"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=ET([e.tooltipOption],r),a=this._renderMode,s=[],l=Jp("section",{blocks:[],noHeader:!0}),u=[],c=new dd;Object(O["each"])(t,(function(t){Object(O["each"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=MM(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=Jp("section",{header:o,noHeader:!Object(O["trim"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(O["each"])(t.seriesDataIndices,(function(l){var f=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,d=f.getDataParams(p);if(!(d.dataIndex<0)){d.axisDim=t.axisDim,d.axisIndex=t.axisIndex,d.axisType=t.axisType,d.axisId=t.axisId,d.axisValue=rS(e.axis,{value:i}),d.axisValueLabel=o,d.marker=c.makeTooltipMarker("item",Kc(d.color),a);var g=gp(f.formatTooltip(p,!0,null)),v=g.frag;if(v){var y=ET([f],r).get("valueFormatter");h.blocks.push(y?Object(O["extend"])({valueFormatter:y},v):v)}g.text&&u.push(g.text),s.push(d)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,f=o.get("order"),p=od(l,c,a,f,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var d="richText"===a?"\n\n":"<br/>",g=u.join(d);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=Xs(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),h=this._renderMode,f=t.positionDefault,p=ET([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),d=p.get("trigger");if(null==d||"item"===d){var g=s.getDataParams(l,u),v=new dd;g.marker=v.makeTooltipMarker("item",Kc(g.color),h);var y=gp(s.formatTooltip(l,!1,u)),m=p.get("order"),_=p.get("valueFormatter"),b=y.frag,x=b?od(_?Object(O["extend"])({valueFormatter:_},b):b,v,h,m,r.get("useUTC"),p.get("textStyle")):y.text,w="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,x,g,w,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=Xs(e),i=r.tooltipConfig,o=i.option||{};if(Object(O["isString"])(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=ET(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),f=Math.random()+"",p=new dd;this._showOrMove(c,(function(){var n=Object(O["clone"])(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,f,t.offsetX,t.offsetY,t.position,e,p)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,f=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")),p=f.color;if(c)if(Object(O["isString"])(c)){var d=t.ecModel.get("useUTC"),g=Object(O["isArray"])(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,v&&(h=wc(g.axisValue,h,d)),h=Yc(h,n,!0)}else if(Object(O["isFunction"])(c)){var y=Object(O["bind"])((function(e,r){e===this._ticket&&(u.setContent(r,l,t,p,a),this._updatePosition(t,a,i,o,u,n,s))}),this);this._ticket=r,h=c(n,r,y)}else h=c;u.setContent(h,l,t,p,a),u.show(t,p),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||Object(O["isArray"])(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(O["isArray"])(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),h=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),Object(O["isFunction"])(e)&&(e=e([n,r],o,i.el,f,{viewSize:[s,l],contentSize:u.slice()})),Object(O["isArray"])(e))n=ui(e[0],s),r=ui(e[1],l);else if(Object(O["isObject"])(e)){var p=e;p.width=u[0],p.height=u[1];var d=nh(p,{width:s,height:l});n=d.x,r=d.y,c=null,h=null}else if(Object(O["isString"])(e)&&a){var g=zT(e,f,u,t.get("borderWidth"));n=g[0],r=g[1]}else{g=BT(n,r,i,s,l,c?null:20,h?null:20);n=g[0],r=g[1]}if(c&&(n-=VT(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=VT(h)?u[1]/2:"bottom"===h?u[1]:0),hT(t)){g=FT(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&Object(O["each"])(n,(function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];i=i&&a.length===l.length,i&&Object(O["each"])(a,(function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,i&&Object(O["each"])(a,(function(t,e){var n=s[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&Object(O["each"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!S["a"].node&&e.getDom()&&(ry(this,"_updatePosition"),this._tooltipContent.dispose(),YM("itemTooltip",e))},e.type="tooltip",e}(Ad);function ET(t,e,n){var r,i=e.ecModel;n?(r=new Gu(n,i,i),r=new Gu(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Gu&&(a=a.get("tooltip",!0)),Object(O["isString"])(a)&&(a={formatter:a}),a&&(r=new Gu(a,r,i)))}return r}function NT(t,e){return t.dispatchAction||Object(O["bind"])(e.dispatchAction,e)}function BT(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>r?t-=l+o:t+=o),null!=a&&(e+u+a>i?e-=u+a:e+=a),[t,e]}function FT(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function zT(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function VT(t){return"center"===t||"middle"===t}function HT(t,e,n){var r=oo(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=so(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=Xs(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var WT=RT;function GT(t){Zb(lT),t.registerComponentModel(cT),t.registerComponentView(WT),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},O["noop"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},O["noop"])}var UT=function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0},YT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return w(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),O["isArray"](e)&&O["each"](e,(function(t,r){O["isString"](t)&&(t={type:t}),e[r]=O["merge"](t,UT(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var r=t[n].get("name");if(this.isSelected(r)){this.select(r),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider,s=a.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(s)),s.length?e=e.concat(s):i=!0}else i=!0;i&&$i(r)&&e.push(r.name)})),this._availableNames=n;var r=this.get("data")||e,i=O["createHashMap"](),o=O["map"](r,(function(t){return(O["isString"](t)||O["isNumber"](t))&&(t={name:t}),i.get(t.name)?null:(i.set(t.name,!0),new Gu(t,this,this.ecModel))}),this);this._data=O["filter"](o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var r=this._data;O["each"](r,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;O["each"](t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;O["each"](t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&O["indexOf"](this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={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,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},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}},e}(ch),qT=YT;function XT(t,e){var n=Hc(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new ks({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),t}var ZT=O["curry"],KT=O["each"],$T=Gr,QT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return w(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new $T),this.group.add(this._selectorGroup=new $T),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=nh(l,u,c),f=this.layoutInner(t,i,h,r,a,s),p=nh(O["defaults"]({width:f.width,height:f.height},l),u,c);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=XT(f,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=O["createHashMap"](),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),KT(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new $T;return h.newline=!0,void s.add(h)}var f=n.getSeriesByName(a)[0];if(!l.get(a)){if(f){var p=f.getData(),d=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),v=p.getVisual("style"),y=this._createItem(f,a,o,i,e,t,d,v,g,u,r);y.on("click",ZT(eC,a,null,r,c)).on("mouseover",ZT(rC,f.name,null,r,c)).on("mouseout",ZT(iC,f.name,null,r,c)),n.ssr&&y.eachChild((function(t){var e=Xs(t);e.seriesIndex=f.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var h=s.legendVisualProvider;if(!h.containName(a))return;var f=h.indexOfName(a),p=h.getItemVisual(f,"style"),d=h.getItemVisual(f,"legendIcon"),g=Object(an["parse"])(p.fill);g&&0===g[3]&&(g[3]=.2,p=O["extend"](O["extend"]({},p),{fill:Object(an["stringify"])(g,"rgba")}));var v=this._createItem(s,a,o,i,e,t,{},p,d,u,r);v.on("click",ZT(eC,null,a,r,c)).on("mouseover",ZT(rC,null,a,r,c)).on("mouseout",ZT(iC,null,a,r,c)),n.ssr&&v.eachChild((function(t){var e=Xs(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();KT(t,(function(t){var r=t.type,i=new qs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);_u(i,{normal:a,emphasis:s},{defaultText:t.title}),ql(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u,c){var h=t.visualDrawType,f=i.get("itemWidth"),p=i.get("itemHeight"),d=i.isSelected(e),g=r.get("symbolRotate"),v=r.get("symbolKeepAspect"),y=r.get("icon");l=y||l||"roundRect";var m=JT(l,r,a,s,h,d,c),_=new $T,b=r.getModel("textStyle");if(!O["isFunction"](t.getLegendIcon)||y&&"inherit"!==y){var x="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(tC({itemWidth:f,itemHeight:p,icon:l,iconRotate:x,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}))}else _.add(t.getLegendIcon({itemWidth:f,itemHeight:p,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}));var w="left"===o?f+5:-5,S=o,M=i.get("formatter"),T=e;O["isString"](M)&&M?T=M.replace("{name}",null!=e?e:""):O["isFunction"](M)&&(T=M(e));var C=d?b.getTextColor():r.get("inactiveColor");_.add(new qs({style:xu(b,{text:T,x:w,y:p/2,fill:C,align:S,verticalAlign:"middle"},{inheritColor:C})}));var I=new ks({shape:_.getBoundingRect(),style:{fill:"transparent"}}),k=r.getModel("tooltip");return k.get("show")&&zv({el:I,componentModel:i,itemName:e,itemTooltipOption:k.option}),_.add(I),_.eachChild((function(t){t.silent=!0})),I.silent=!u,this.getContentGroup().add(_),ql(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();eh(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){eh("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],f=t.get("selectorButtonGap",!0),p=t.getOrient().index,d=0===p?"width":"height",g=0===p?"height":"width",v=0===p?"y":"x";"end"===o?h[p]+=l[d]+f:u[p]+=c[d]+f,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[d]=l[d]+f+c[d],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-p]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Ad);function JT(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),KT(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?$m(h,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var f=e.getModel("lineStyle"),p=f.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===p.stroke&&(p.stroke=r.fill),!o){var d=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===d?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=f.get("inactiveColor"),p.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function tC(t){var e=t.icon||"roundRect",n=um(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function eC(t,e,n,r){iC(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),rC(t,e,n,r)}function nC(t){var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;while(r<i&&!(e=n[r].states.emphasis))r++;return e&&e.hoverLayer}function rC(t,e,n,r){nC(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function iC(t,e,n,r){nC(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}var oC=QT;function aC(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function sC(t,e,n){var r,i={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),r=n.isSelected(e.name));var a=n.getData();Object(O["each"])(a,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var r=n.isSelected(e);i.hasOwnProperty(e)?i[e]=i[e]&&r:i[e]=r}}))})),"allSelect"===t||"inverseSelect"===t?{selected:i}:{name:e.name,selected:i}}function lC(t){t.registerAction("legendToggleSelect","legendselectchanged",Object(O["curry"])(sC,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(O["curry"])(sC,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(O["curry"])(sC,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(O["curry"])(sC,"select")),t.registerAction("legendUnSelect","legendunselected",Object(O["curry"])(sC,"unSelect"))}function uC(t){t.registerComponentModel(qT),t.registerComponentView(oC),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,aC),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),lC(t)}var cC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=oh(e);t.prototype.init.call(this,e,n,r),hC(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),hC(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Zu(qT.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}),e}(qT);function hC(t,e,n){var r=t.getOrient(),i=[1,1];i[r.index]=0,ih(e,n,{type:"box",ignoreSize:!!i})}var fC=cC,pC=Gr,dC=["width","height"],gC=["x","y"],vC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return w(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new pC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new pC)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,r,i,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=O["isArray"](c)?c:[c,c];p("pagePrev",0);var f=n.getModel("pageTextStyle");function p(t,e){var r=t+"DataIndex",o=Rv(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:O["bind"](l._pageGo,l,r,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}u.add(new qs({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=dC[s],u=gC[s],c=dC[1-s],h=gC[1-s];i&&eh("horizontal",a,t.get("selectorItemGap",!0));var f=t.get("selectorButtonGap",!0),p=a.getBoundingRect(),d=[-p.x,-p.y],g=O["clone"](n);i&&(g[l]=n[l]-p[l]-f);var v=this._layoutContentAndController(t,r,g,s,l,c,h,u);if(i){if("end"===o)d[s]+=v[l]+f;else{var y=p[l]+f;d[s]-=y,v[u]-=y}v[l]+=p[l]+f,d[1-s]+=v[h]+v[c]/2-p[c]/2,v[c]=Math.max(v[c],p[c]),v[h]=Math.min(v[h],p[h]+d[1-s]),a.x=d[0],a.y=d[1],a.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;eh(t.get("orient"),l,t.get("itemGap"),r?n.width:null,r?null:n.height),eh("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),f=c.getBoundingRect(),p=this._showController=h[i]>n[i],d=[-h.x,-h.y];e||(d[r]=l[s]);var g=[0,0],v=[-f.x,-f.y],y=O["retrieve2"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var m=t.get("pageButtonPosition",!0);"end"===m?v[r]+=n[i]-f[i]:g[r]+=f[i]+y}v[1-r]+=h[o]/2-f[o]/2,l.setPosition(d),u.setPosition(g),c.setPosition(v);var _={x:0,y:0};if(_[i]=p?n[i]:h[i],_[o]=Math.max(h[o],f[o]),_[a]=Math.min(0,f[a]+v[1-r]),u.__rectSize=n[i],p){var b={x:0,y:0};b[i]=Math.max(n[i]-f[i]-y,0),b[o]=_[o],u.setClipPath(new ks({shape:b})),u.__rectSize=b[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&uu(l,{x:x.contentPosition[0],y:x.contentPosition[1]},p?t:null),this._updatePageInfoView(t,x),_},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;O["each"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=e[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",O["isString"](i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=dC[i],a=gC[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,f={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return f;var p=m(u);f.contentPosition[i]=-p.s;for(var d=s+1,g=p,v=p,y=null;d<=c;++d)y=m(l[d]),(!y&&v.e>g.s+r||y&&!_(y,g.s))&&(g=v.i>g.i?v:y,g&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=g.i),++f.pageCount)),v=y;for(d=s-1,g=p,v=p,y=null;d>=-1;--d)y=m(l[d]),y&&_(v,y.s)||!(g.i<v.i)||(v=g,null==f.pagePrevDataIndex&&(f.pagePrevDataIndex=g.i),++f.pageCount,++f.pageIndex),g=y;return f;function m(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n},e.type="legend.scroll",e}(oC),yC=vC;function mC(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function _C(t){Zb(uC),t.registerComponentModel(fC),t.registerComponentView(yC),mC(t)}function bC(t){Zb(uC),Zb(_C)}var xC=2*Math.PI,wC=Math.PI/180;function SC(t,e){return nh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function OC(t,e){var n=SC(t,e),r=t.get("center"),i=t.get("radius");O["isArray"](i)||(i=[0,i]);var o,a,s=ui(n.width,e.getWidth()),l=ui(n.height,e.getHeight()),u=Math.min(s,l),c=ui(i[0],u/2),h=ui(i[1],u/2),f=t.coordinateSystem;if(f){var p=f.dataToPoint(r);o=p[0]||0,a=p[1]||0}else O["isArray"](r)||(r=[r,r]),o=ui(r[0],s)+n.x,a=ui(r[1],l)+n.y;return{cx:o,cy:a,r0:c,r:h}}function MC(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),r=e.mapDimension("value"),i=SC(t,n),o=OC(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*wC,h=t.get("endAngle"),f=t.get("padAngle")*wC;h="auto"===h?c-xC:-h*wC;var p=t.get("minAngle")*wC,d=p+f,g=0;e.each(r,(function(t){!isNaN(t)&&g++}));var v=e.getSum(r),y=Math.PI/(v||g)*2,m=t.get("clockwise"),_=t.get("roseType"),b=t.get("stillShowZeroSum"),x=e.getDataExtent(r);x[0]=0;var w=m?1:-1,S=[c,h],O=w*f/2;Ba(S,!m),c=S[0],h=S[1];var M=Math.abs(h-c),T=M,C=0,I=c;if(e.setLayout({viewRect:i,r:l}),e.each(r,(function(t,n){var r;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:a,cy:s,r0:u,r:_?NaN:l});else{r="area"!==_?0===v&&b?y:t*y:M/g,r<d?(r=d,T-=d):C+=t;var i=I+w*r,o=0,c=0;f>r?(o=I+w*r/2,c=o):(o=I+O,c=i-O),e.setItemLayout(n,{angle:r,startAngle:o,endAngle:c,clockwise:m,cx:a,cy:s,r0:u,r:_?li(t,x,[u,l]):l}),I=i}})),T<xC&&g)if(T<=.001){var k=M/g;e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n);r.angle=k;var i=0,o=0;k<f?(i=c+w*(n+.5)*k,o=i):(i=c+w*n*k+O,o=c+w*(n+1)*k-O),r.startAngle=i,r.endAngle=o}}))}else y=T/C,I=c,e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n),i=r.angle===d?d:t*y,o=0,a=0;i<f?(o=I+w*i/2,a=o):(o=I+O,a=I+w*i-O),r.startAngle=o,r.endAngle=a,I+=w*i}}))}))}function TC(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var r=t.getData();r.filterSelf((function(t){for(var e=r.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0}))}}}}var CC=Math.PI/180;function IC(t,e,n,r,i,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var f=t[h].label.x-u;t[h].linePoints[1][0]+=f,t[h].label.x=u}MO(t,l,l+a)&&d(t)}function p(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=r+l.len,h=c*c,f=Math.sqrt((1-Math.abs(u*u/a))*h),p=e+(f+l.len2)*i,d=p-l.label.x,g=l.targetTextWidth-d*i;DC(l,g,!0),l.label.x=p}}function d(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*i,f=r+l.len,d=Math.abs(h)<f?Math.sqrt(c*c/(1-h*h/f/f)):f;u.rB=d,u.maxY=c}u.list.push(l)}p(o),p(a)}}function kC(t,e,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,f=0;f<t.length;f++){var p=t[f].label;AC(t[f])||(p.x<e?(c=Math.min(c,p.x),l.push(t[f])):(h=Math.max(h,p.x),u.push(t[f])))}for(f=0;f<t.length;f++){var d=t[f];if(!AC(d)&&d.linePoints){if(null!=d.labelStyleWidth)continue;p=d.label;var g=d.linePoints,v=void 0;v="edge"===d.labelAlignTo?p.x<e?g[2][0]-d.labelDistance-a-d.edgeDistance:a+i-d.edgeDistance-g[2][0]-d.labelDistance:"labelLine"===d.labelAlignTo?p.x<e?c-a-d.bleedMargin:a+i-h-d.bleedMargin:p.x<e?p.x-a-d.bleedMargin:a+i-p.x-d.bleedMargin,d.targetTextWidth=v,DC(d,v)}}IC(u,e,n,r,1,i,o,a,s,h),IC(l,e,n,r,-1,i,o,a,s,c);for(f=0;f<t.length;f++){d=t[f];if(!AC(d)&&d.linePoints){p=d.label,g=d.linePoints;var y="edge"===d.labelAlignTo,m=p.style.padding,_=m?m[1]+m[3]:0,b=p.style.backgroundColor?0:_,x=d.rect.width+b,w=g[1][0]-g[2][0];y?p.x<e?g[2][0]=a+d.edgeDistance+x+d.labelDistance:g[2][0]=a+i-d.edgeDistance-x-d.labelDistance:(p.x<e?g[2][0]=p.x+d.labelDistance:g[2][0]=p.x-d.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=p.y}}}function DC(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(e<c||n){var h=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var f=r.getBoundingRect();r.setStyle("width",Math.ceil(f.width)),r.setStyle("backgroundColor",a)}else{var p=e-l,d=e<c?p:n?p>t.unconstrainedWidth?null:p:null;r.setStyle("width",d)}var g=r.getBoundingRect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function AC(t){return"center"===t.position}function jC(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*CC,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,h=s.y,f=s.height;function p(t){t.ignore=!0}function d(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}r.each((function(t){var s=r.getItemGraphicEl(t),h=s.shape,f=s.getTextContent(),g=s.getTextGuideLine(),v=r.getItemModel(t),y=v.getModel("label"),m=y.get("position")||v.get(["emphasis","label","position"]),_=y.get("distanceToLabelLine"),b=y.get("alignTo"),x=ui(y.get("edgeDistance"),u),w=y.get("bleedMargin"),S=v.getModel("labelLine"),M=S.get("length");M=ui(M,u);var T=S.get("length2");if(T=ui(T,u),Math.abs(h.endAngle-h.startAngle)<a)return Object(O["each"])(f.states,p),f.ignore=!0,void(g&&(Object(O["each"])(g.states,p),g.ignore=!0));if(d(f)){var C,I,k,D,A=(h.startAngle+h.endAngle)/2,j=Math.cos(A),P=Math.sin(A);e=h.cx,n=h.cy;var L="inside"===m||"inner"===m;if("center"===m)C=h.cx,I=h.cy,D="center";else{var R=(L?(h.r+h.r0)/2*j:h.r*j)+e,E=(L?(h.r+h.r0)/2*P:h.r*P)+n;if(C=R+3*j,I=E+3*P,!L){var N=R+j*(M+l-h.r),B=E+P*(M+l-h.r),F=N+(j<0?-1:1)*T,z=B;C="edge"===b?j<0?c+x:c+u-x:F+(j<0?-_:_),I=z,k=[[R,E],[N,B],[F,z]]}D=L?"center":"edge"===b?j>0?"right":"left":j>0?"left":"right"}var V=Math.PI,H=0,W=y.get("rotate");if(Object(O["isNumber"])(W))H=W*(V/180);else if("center"===m)H=0;else if("radial"===W||!0===W){var G=j<0?-A+V:-A;H=G}else if("tangential"===W&&"outside"!==m&&"outer"!==m){var U=Math.atan2(j,P);U<0&&(U=2*V+U);var Y=P>0;Y&&(U=V+U),H=U-V}if(o=!!H,f.x=C,f.y=I,f.rotation=H,f.setStyle({verticalAlign:"middle"}),L){f.setStyle({align:D});var q=f.states.select;q&&(q.x+=f.x,q.y+=f.y)}else{var X=f.getBoundingRect().clone();X.applyTransform(f.getComputedTransform());var Z=(f.style.margin||0)+2.1;X.y-=Z/2,X.height+=Z,i.push({label:f,labelLine:g,position:m,len:M,len2:T,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new Ft(j,P),linePoints:k,textAlign:D,labelDistance:_,labelAlignTo:b,edgeDistance:x,bleedMargin:w,rect:X,unconstrainedWidth:X.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:L})}})),!o&&t.get("avoidLabelOverlap")&&kC(i,e,n,l,u,f,c,h);for(var g=0;g<i.length;g++){var v=i[g],y=v.label,m=v.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),_&&(Object(O["each"])(y.states,p),y.ignore=!0);var b=y.states.select;b&&(b.x+=y.x,b.y+=y.y)}if(m){var x=v.linePoints;_||!x?(Object(O["each"])(m.states,p),m.ignore=!0):(vO(x,v.minTurnAngle),yO(x,v.surfaceNormal,v.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new Ft(x[0][0],x[0][1])})}}}function PC(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Object(O["isArray"])(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(O["map"])(r,(function(t){return Cr(t,i)}))}}var LC=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new qs;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return w(e,t),e.prototype.updateData=function(t,e,n,r){var i=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=Object(O["extend"])(PC(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(cu(i,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,cu(i,{shape:{r:l.r}},o,e)):null!=n?(i.setShape({startAngle:n,endAngle:n}),cu(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(i.shape.endAngle=l.startAngle,uu(i,{shape:{endAngle:l.endAngle}},o,e))}else gu(i),uu(i,{shape:u},o,e);i.useStyle(t.getItemVisual(e,"style")),Jl(i,a);var h=(l.startAngle+l.endAngle)/2,f=o.get("selectedOffset"),p=Math.cos(h)*f,d=Math.sin(h)*f,g=a.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(o,t,e),i.ensureState("emphasis").shape=Object(O["extend"])({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},PC(s.getModel("itemStyle"),l)),Object(O["extend"])(i.ensureState("select"),{x:p,y:d,shape:PC(a.getModel(["select","itemStyle"]),l)}),Object(O["extend"])(i.ensureState("blur"),{shape:PC(a.getModel(["blur","itemStyle"]),l)});var v=i.getTextGuideLine(),y=i.getTextContent();v&&Object(O["extend"])(v.ensureState("select"),{x:p,y:d}),Object(O["extend"])(y.ensureState("select"),{x:p,y:d}),Zl(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var r=this,i=e.getItemModel(n),o=i.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;_u(r,bu(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Rg,this.setTextGuideLine(h)),bO(this,xO(i),{stroke:s,opacity:Object(O["retrieve3"])(o.get(["lineStyle","opacity"]),l,1)})}},e}(Og),RC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return w(e,t),e.prototype.render=function(t,e,n,r){var i,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=new Og({shape:OC(t,n)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(t){var e=new LC(o,t,i);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,i),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){var n=a.getItemGraphicEl(e);du(n,t,e)})).execute(),jC(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData(),r=n.getItemLayout(0);if(r){var i=t[0]-r.cx,o=t[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},e.type="pie",e}($v),EC=RC;function NC(t,e,n){e=Object(O["isArray"])(e)&&{coordDimensions:e}||Object(O["extend"])({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=Ax(r,e).dimensions,o=new kx(i,t);return o.initData(r,n),o}var BC=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),FC=BC,zC=no(),VC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new FC(O["bind"](this.getData,this),O["bind"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return NC(this,{coordDimensions:["value"],encodeDefaulter:O["curry"](Ch,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),r=zC(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),i=r.seats=vi(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=i[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){Ni(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(kd),HC=VC;function WC(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(Object(O["isNumber"])(r)&&!isNaN(r)&&r<0)}))}}}function GC(t){t.registerChartView(EC),t.registerSeriesModel(HC),Yy("pie",t.registerAction),t.registerLayout(Object(O["curry"])(MC,"pie")),t.registerProcessor(TC("pie")),t.registerProcessor(WC("pie"))}function UC(t,e,n){var r=_r["c"].createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}var YC=function(t){function e(e,n,r){var i,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||nr,"string"===typeof e?i=UC(e,n,r):O["isObject"](e)&&(i=e,e=i.id),o.id=e,o.dom=i;var a=i.style;return a&&(O["disableUserSelect"](i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return w(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=UC("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new Zt(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new Zt(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new Zt(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var f=t.width*t.height,p=c.width*c.height,d=l.width*l.height,g=d-f-p;g<r&&(r=g,i=u)}}if(s&&(o[i].union(t),n=!0),!n){e=new Zt(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=t[c];if(h){var f=h.shouldBePainted(n,r,!0,!0),p=h.__isRendered&&(h.__dirty&me||!f)?h.getPrevPaintRect():null;p&&u(p);var d=f&&(h.__dirty&me||!h.__isRendered)?h.getPaintRect():null;d&&u(d)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){h=e[c],f=h&&h.shouldBePainted(n,r,!0,!0);if(h&&(!f||!h.__zr)&&h.__isRendered){p=h.getPrevPaintRect();p&&u(p)}}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var h=this.domBack;function f(t,n,r,o){if(i.clearRect(t,n,r,o),e&&"transparent"!==e){var a=void 0;if(O["isGradientObject"](e)){var f=e.global||e.__width===r&&e.__height===o;a=f&&e.__canvasGradient||dm(i,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=a,e.__width=r,e.__height=o}else O["isImagePatternObject"](e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=Tm(i,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));i.save(),i.fillStyle=a||e,i.fillRect(t,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(h,t,n,r,o),i.restore())}!n||s?f(0,0,o,a):n.length&&O["each"](n,(function(t){f(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(tt),qC=YC,XC=1e5,ZC=314159,KC=.01,$C=.001;function QC(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}function JC(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var tI=function(){function t(t,e,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=O["extend"]({},n||{}),this.dpr=n.devicePixelRatio||nr,this._singleCanvas=i,this.root=t;var o=t.style;o&&(O["disableUserSelect"](t),t.innerHTML=""),this.storage=e;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(i){var l=t,u=l.width,c=l.height;null!=n.width&&(u=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=c*this.dpr,this._width=u,this._height=c;var h=new qC(l,this,this.dpr);h.__builtin__=!0,h.initContext(),s[ZC]=h,h.zlevel=ZC,a.push(ZC),this._domRoot=t}else{this._width=ym(t,0,n),this._height=ym(t,1,n);var f=this._domRoot=JC(this._width,this._height);t.appendChild(f)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(XC)),r||(r=n.ctx,r.save()),Ym(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(XC)},t.prototype.paintOne=function(t,e){Um(t,e)},t.prototype._paintList=function(t,e,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;Ce((function(){s._paintList(t,e,n,r)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(ZC).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=i[a],h=l.ctx,p=o&&l.createRepaintRects(t,e,f._width,f._height),d=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),y=l.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,p);else if(d===l.__startIndex){var m=t[d];m.incremental&&m.notClear&&!n||l.clear(!1,y,p)}-1===d&&(console.error("For some unknown reason. drawIndex is -1"),d=l.__startIndex);var _=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=d;s<l.__endIndex;s++){var i=t[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,e,n,s===l.__endIndex-1),g){var a=Date.now()-v;if(a>15)break}}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var b=f.dpr,x=0;x<p.length;++x){var w=p[x];h.save(),h.beginPath(),h.rect(w.x*b,w.y*b,w.width*b,w.height*b),h.clip(),_(w),h.restore()}else h.save(),_(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},f=this,p=0;p<i.length;p++)h(p);return S["a"].wxa&&O["each"](this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,r,i,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!r||s&&s.intersect(r))&&(Ym(a,t,i,o),t.setPrevPaintRect(s))}else Ym(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=ZC);var n=this._layers[t];return n||(n=new qC("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?O["merge"](n,this._layerConfig[t],!0):this._layerConfig[t-KC]&&O["merge"](n,this._layerConfig[t-KC],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&QC(e)){if(i>0&&t>r[0]){for(s=0;s<i-1;s++)if(r[s]<t&&r[s+1]>t)break;a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];t.call(e,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){var r=t[n];if(r.zlevel!==t[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i,o,a=null,s=0;for(o=0;o<t.length;o++){r=t[o];var l=r.zlevel,u=void 0;i!==l&&(i=l,s=0),r.incremental?(u=this.getLayer(l+$C,this._needsManuallyCompositing),u.incremental=!0,s=1):u=this.getLayer(l+(s>0?KC:0),this._needsManuallyCompositing),u.__builtin__||O["logError"]("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,e(o),a=u),r.__dirty&me&&!r.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,O["each"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?O["merge"](n[t],e,!0):n[t]=e;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===t||i===t+KC){var o=this._layers[i];O["merge"](o,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice(O["indexOf"](n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=ym(i,0,r),e=ym(i,1,r),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(ZC).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[ZC].dom;var e=new qC("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];Ym(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),eI=tI;function nI(t){t.registerPainter("canvas",eI)}var rI=n("0c9b");Zb([GT,bC,GC,nI,BO]);var iI={name:"Home",components:{countTo:b.a,echarts:p,ScrollTop:rI["a"]},data:function(){return{showEmpty:!1,loadingFinish:!1,loadingConfirm:!1,loading:!1,startVal:0,duration:3e3,orderList:[],error:!1,page:1,statisOrder:{},finished:!1}},created:function(){this.loadOrderStatis(),console.log("created")},activated:function(){console.log("activated")},deactivated:function(){console.log("deactivated")},beforeRouteEnter:function(t,e,n){n((function(t){t.$store.commit("keepAlive/add","Home"),console.log(t.$store.state.keepAlive.list)}))},beforeRouteLeave:function(t,e,n){console.log(t.name),["orderInfo","addVisit","editVisit","orderSuspend","orderIssue","orderAllot"].indexOf(t.name)<0&&(console.log("remove cache"),this.$store.commit("keepAlive/remove","Home")),n()},methods:{preview:function(t,e){Object(v["a"])({images:t,startPosition:e,closeable:!0})},loadOrderStatis:function(){var t=this;Object(m["b"])().then((function(e){t.statisOrder=e.data,t.getechart()}))},refresh:function(){return this.finished=!1,this.loading=!1,this.error=!1,this.page=1,this.orderList=[],this.loadOrderList(),!0},getechart:function(){var t,e=document.getElementById("main"),n=xb(e);t={title:{text:"",subtext:"",left:"center"},tooltip:{trigger:"item"},legend:{top:"5%",left:"center",padding:3,itemWidth:15,itemGap:12,itemHeight:12},series:[{name:"数据",type:"pie",radius:"50%",data:[{value:this.statisOrder.confirm,name:"待确认"},{value:this.statisOrder.repairing,name:"处理中"},{value:this.statisOrder.repaired,name:"已完成"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},t&&n.setOption(t)},loadOrderList:function(){var t=this;this.loading=!0,Object(y["b"])({tab_index:-1,page:this.page++}).then((function(e){for(var n in t.loading=!1,e.data.length<t.$store.getters.setting.page_size&&(t.finished=!0),e.data)t.orderList.push(e.data[n]);0===t.orderList.length?t.showEmpty=!0:t.showEmpty=!1})).catch((function(){t.loading=!1,t.error=!0}))}}},oI=iI,aI=n("2877"),sI=Object(aI["a"])(oI,d,g,!1,null,null,null);e["default"]=sI.exports},"3c72":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=n("a77d");function i(t){return Object(r["a"])({url:"orders",method:"get",params:t})}function o(t){return Object(r["a"])({url:"orders/".concat(t),method:"get"})}},"41ef":function(t,e,n){"use strict";n.r(e),n.d(e,"parse",(function(){return m})),n.d(e,"lift",(function(){return x})),n.d(e,"toHex",(function(){return w})),n.d(e,"fastLerp",(function(){return S})),n.d(e,"fastMapToColor",(function(){return O})),n.d(e,"lerp",(function(){return M})),n.d(e,"mapToColor",(function(){return T})),n.d(e,"modifyHSL",(function(){return C})),n.d(e,"modifyAlpha",(function(){return I})),n.d(e,"stringify",(function(){return k})),n.d(e,"lum",(function(){return D})),n.d(e,"random",(function(){return A})),n.d(e,"liftColor",(function(){return P}));var r=n("d51b"),i=n("6d8b"),o={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 a(t){return t=Math.round(t),t<0?0:t>255?255:t}function s(t){return t=Math.round(t),t<0?0:t>360?360:t}function l(t){return t<0?0:t>1?1:t}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function c(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?l(parseFloat(e)/100):l(parseFloat(e))}function h(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function f(t,e,n){return t+(e-t)*n}function p(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var g=new r["a"](20),v=null;function y(t,e){v&&d(v,e),v=g.put(t,v||e.slice())}function m(t,e){if(t){e=e||[];var n=g.get(t);if(n)return d(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in o)return d(e,o[r]),y(t,e),e;var i=r.length;if("#"!==r.charAt(0)){var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===i){var l=r.substr(0,a),h=r.substr(a+1,s-(a+1)).split(","),f=1;switch(l){case"rgba":if(4!==h.length)return 3===h.length?p(e,+h[0],+h[1],+h[2],1):p(e,0,0,0,1);f=c(h.pop());case"rgb":return h.length>=3?(p(e,u(h[0]),u(h[1]),u(h[2]),3===h.length?f:c(h[3])),y(t,e),e):void p(e,0,0,0,1);case"hsla":return 4!==h.length?void p(e,0,0,0,1):(h[3]=c(h[3]),_(h,e),y(t,e),e);case"hsl":return 3!==h.length?void p(e,0,0,0,1):(_(h,e),y(t,e),e);default:return}}p(e,0,0,0,1)}else{if(4===i||5===i){var v=parseInt(r.slice(1,4),16);return v>=0&&v<=4095?(p(e,(3840&v)>>4|(3840&v)>>8,240&v|(240&v)>>4,15&v|(15&v)<<4,5===i?parseInt(r.slice(4),16)/15:1),y(t,e),e):void p(e,0,0,0,1)}if(7===i||9===i){v=parseInt(r.slice(1,7),16);return v>=0&&v<=16777215?(p(e,(16711680&v)>>16,(65280&v)>>8,255&v,9===i?parseInt(r.slice(7),16)/255:1),y(t,e),e):void p(e,0,0,0,1)}}}}function _(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=c(t[1]),i=c(t[2]),o=i<=.5?i*(r+1):i+r-i*r,s=2*i-o;return e=e||[],p(e,a(255*h(s,o,n+1/3)),a(255*h(s,o,n)),a(255*h(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,f=((s-o)/6+l/2)/l;r===s?e=f-h:i===s?e=1/3+c-f:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}function x(t,e){var n=m(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return k(n,4===n.length?"rgba":"rgb")}}function w(t){var e=m(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),s=e[i],u=e[o],c=r-i;return n[0]=a(f(s[0],u[0],c)),n[1]=a(f(s[1],u[1],c)),n[2]=a(f(s[2],u[2],c)),n[3]=l(f(s[3],u[3],c)),n}}var O=S;function M(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),s=m(e[i]),u=m(e[o]),c=r-i,h=k([a(f(s[0],u[0],c)),a(f(s[1],u[1],c)),a(f(s[2],u[2],c)),l(f(s[3],u[3],c))],"rgba");return n?{color:h,leftIndex:i,rightIndex:o,value:r}:h}}var T=M;function C(t,e,n,r){var i=m(t);if(t)return i=b(i),null!=e&&(i[0]=s(e)),null!=n&&(i[1]=c(n)),null!=r&&(i[2]=c(r)),k(_(i),"rgba")}function I(t,e){var n=m(t);if(n&&null!=e)return n[3]=l(e),k(n,"rgba")}function k(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function D(t,e){var n=m(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function A(){return k([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var j=new r["a"](100);function P(t){if(Object(i["isString"])(t)){var e=j.get(t);return e||(e=x(t,-.1),j.put(t,e)),e}if(Object(i["isGradientObject"])(t)){var n=Object(i["extend"])({},t);return n.colorStops=Object(i["map"])(t.colorStops,(function(t){return{offset:t.offset,color:x(t.color,-.1)}})),n}return t}},4662:function(t,e,n){"use strict";n("68ef"),n("a71a"),n("9d70"),n("3743"),n("09fe"),n("4d75"),n("e3b3"),n("8270"),n("786d"),n("504b")},"6d8b":function(t,e,n){"use strict";n.r(e),n.d(e,"guid",(function(){return v})),n.d(e,"logError",(function(){return y})),n.d(e,"clone",(function(){return m})),n.d(e,"merge",(function(){return _})),n.d(e,"mergeAll",(function(){return b})),n.d(e,"extend",(function(){return x})),n.d(e,"defaults",(function(){return w})),n.d(e,"createCanvas",(function(){return S})),n.d(e,"indexOf",(function(){return O})),n.d(e,"inherits",(function(){return M})),n.d(e,"mixin",(function(){return T})),n.d(e,"isArrayLike",(function(){return C})),n.d(e,"each",(function(){return I})),n.d(e,"map",(function(){return k})),n.d(e,"reduce",(function(){return D})),n.d(e,"filter",(function(){return A})),n.d(e,"find",(function(){return j})),n.d(e,"keys",(function(){return P})),n.d(e,"bind",(function(){return R})),n.d(e,"curry",(function(){return E})),n.d(e,"isArray",(function(){return N})),n.d(e,"isFunction",(function(){return B})),n.d(e,"isString",(function(){return F})),n.d(e,"isStringSafe",(function(){return z})),n.d(e,"isNumber",(function(){return V})),n.d(e,"isObject",(function(){return H})),n.d(e,"isBuiltInObject",(function(){return W})),n.d(e,"isTypedArray",(function(){return G})),n.d(e,"isDom",(function(){return U})),n.d(e,"isGradientObject",(function(){return Y})),n.d(e,"isImagePatternObject",(function(){return q})),n.d(e,"isRegExp",(function(){return X})),n.d(e,"eqNaN",(function(){return Z})),n.d(e,"retrieve",(function(){return K})),n.d(e,"retrieve2",(function(){return $})),n.d(e,"retrieve3",(function(){return Q})),n.d(e,"slice",(function(){return J})),n.d(e,"normalizeCssArray",(function(){return tt})),n.d(e,"assert",(function(){return et})),n.d(e,"trim",(function(){return nt})),n.d(e,"setAsPrimitive",(function(){return it})),n.d(e,"isPrimitive",(function(){return ot})),n.d(e,"HashMap",(function(){return ut})),n.d(e,"createHashMap",(function(){return ct})),n.d(e,"concatArray",(function(){return ht})),n.d(e,"createObject",(function(){return ft})),n.d(e,"disableUserSelect",(function(){return pt})),n.d(e,"hasOwn",(function(){return dt})),n.d(e,"noop",(function(){return gt})),n.d(e,"RADIAN_TO_DEGREE",(function(){return vt}));var r=n("726e"),i=D(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=D(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,h=s.map,f=function(){}.constructor,p=f?f.prototype:null,d="__proto__",g=2311;function v(){return g++}function y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!==typeof console&&console.error.apply(console,t)}function m(t){if(null==t||"object"!==typeof t)return t;var e=t,n=a.call(t);if("[object Array]"===n){if(!ot(t)){e=[];for(var r=0,s=t.length;r<s;r++)e[r]=m(t[r])}}else if(o[n]){if(!ot(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(r=0,s=t.length;r<s;r++)e[r]=t[r]}}}else if(!i[n]&&!ot(t)&&!U(t))for(var u in e={},t)t.hasOwnProperty(u)&&u!==d&&(e[u]=m(t[u]));return e}function _(t,e,n){if(!H(e)||!H(t))return n?m(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==d){var i=t[r],o=e[r];!H(o)||!H(i)||N(o)||N(i)||U(o)||U(i)||W(o)||W(i)||ot(o)||ot(i)?!n&&r in t||(t[r]=m(e[r])):_(i,o,n)}return t}function b(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=_(n,t[r],e);return n}function x(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==d&&(t[n]=e[n]);return t}function w(t,e,n){for(var r=P(e),i=0;i<r.length;i++){var o=r[i];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var S=r["c"].createCanvas;function O(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function M(t,e){var n=t.prototype;function r(){}for(var i in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}function T(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else w(t,e,n)}function C(t){return!!t&&("string"!==typeof t&&"number"===typeof t.length)}function I(t,e,n){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function k(t,e,n){if(!t)return[];if(!e)return J(t);if(t.map&&t.map===h)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r}function D(t,e,n,r){if(t&&e){for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}}function A(t,e,n){if(!t)return[];if(!e)return J(t);if(t.filter&&t.filter===u)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function j(t,e,n){if(t&&e)for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]}function P(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function L(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(c.call(arguments)))}}var R=p&&B(p.bind)?p.call.bind(p.bind):L;function E(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(c.call(arguments)))}}function N(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function B(t){return"function"===typeof t}function F(t){return"string"===typeof t}function z(t){return"[object String]"===a.call(t)}function V(t){return"number"===typeof t}function H(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function W(t){return!!i[a.call(t)]}function G(t){return!!o[a.call(t)]}function U(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function Y(t){return null!=t.colorStops}function q(t){return null!=t.image}function X(t){return"[object RegExp]"===a.call(t)}function Z(t){return t!==t}function K(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(null!=t[n])return t[n]}function $(t,e){return null!=t?t:e}function Q(t,e,n){return null!=t?t:null!=e?e:n}function J(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return c.apply(t,e)}function tt(t){if("number"===typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function et(t,e){if(!t)throw new Error(e)}function nt(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var rt="__ec_primitive__";function it(t){t[rt]=!0}function ot(t){return t[rt]}var at=function(){function t(){this.data={}}return t.prototype["delete"]=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return P(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),st="function"===typeof Map;function lt(){return st?new Map:new at}var ut=function(){function t(e){var n=N(e);this.data=lt();var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&I(e,i)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,r){t.call(e,n,r)}))},t.prototype.keys=function(){var t=this.data.keys();return st?Array.from(t):t},t.prototype.removeKey=function(t){this.data["delete"](t)},t}();function ct(t){return new ut(t)}function ht(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];var i=t.length;for(r=0;r<e.length;r++)n[r+i]=e[r];return n}function ft(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&x(n,e),n}function pt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function dt(t,e){return t.hasOwnProperty(e)}function gt(){}var vt=180/Math.PI},"726e":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return f}));var r=12,i="sans-serif",o=r+"px "+i,a=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function u(t){var e={};if("undefined"===typeof JSON)return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-a)/s;e[r]=i}return e}var c=u(l),h={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,i){if(!t){var a=h.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==i&&(e=t.font=i||o),t.measureText(n);n=n||"",i=i||o;var s=/(\d+)px/.exec(i),l=s&&+s[1]||r,u=0;if(i.indexOf("mono")>=0)u=l*n.length;else for(var f=0;f<n.length;f++){var p=c[n[f]];u+=null==p?l:p*l}return{width:u}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function f(t){for(var e in h)t[e]&&(h[e]=t[e])}},"7a29":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var r=n("6d8b"),i=(n("41ef"),n("22d1"));Math.round;function o(t){return"linear"===t.type}function a(t){return"radial"===t.type}(function(){i["a"].hasGlobalWindow&&Object(r["isFunction"])(window.btoa)})()}).call(this,n("b639").Buffer)},9152:function(t,e){
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
- e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?i-1:0,f=n?-1:1,p=t[e+h];for(h+=f,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+h>=1?f/l:f*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[n+p]=255&a,p+=d,a/=256,u-=8);t[n+p-d]|=128*g}},"9d9b":function(t,e,n){"use strict";n("daa2")},b5ff:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n("a77d");function i(){return Object(r["a"])({url:"statis/comment",method:"get"})}function o(){return Object(r["a"])({url:"statis/order",method:"get"})}},b639:function(t,e,n){"use strict";(function(t){
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <http://feross.org>
- * @license MIT
- */
- var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return p(this,t)}return c(this,t,e,n)}function c(t,e,n,r){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?v(t,e,n,r):"string"===typeof e?d(t,e,n):y(t,e)}function h(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e,n,r){return h(e),e<=0?l(t,e):void 0!==n?"string"===typeof r?l(t,e).fill(n,r):l(t,e).fill(n):l(t,e)}function p(t,e){if(h(e),t=l(t,e<0?0:0|m(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|b(e,n);t=l(t,r);var i=t.write(e,n);return i!==r&&(t=t.slice(0,i)),t}function g(t,e){var n=e.length<0?0:0|m(e.length);t=l(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function v(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=g(t,e),t}function y(t,e){if(u.isBuffer(e)){var n=0|m(e.length);return t=l(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?l(t,0):g(t,e);if("Buffer"===e.type&&o(e.data))return g(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function _(t){return+t!=t&&(t=0),u.alloc(+t)}function b(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(r)return K(t).length;e=(""+e).toLowerCase(),r=!0}}function x(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return N(this,e,n);case"utf8":case"utf-8":return j(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return E(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function w(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function S(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:O(t,e,n,r,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):O(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function O(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(t,o)===u(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var h=!0,f=0;f<l;f++)if(u(t,o+f)!==u(e,f)){h=!1;break}if(h)return o}return-1}function M(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function T(t,e,n,r){return tt(K(e,t.length-n),t,n,r)}function C(t,e,n,r){return tt($(e),t,n,r)}function I(t,e,n,r){return C(t,e,n,r)}function k(t,e,n,r){return tt(J(e),t,n,r)}function D(t,e,n,r){return tt(Q(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function j(t,e,n){n=Math.min(t.length,n);var r=[],i=e;while(i<n){var o,a,s,l,u=t[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:o=t[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return L(r)}e.Buffer=u,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return f(null,t,e,n)},u.allocUnsafe=function(t){return p(null,t)},u.allocUnsafeSlow=function(t){return p(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).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(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=b,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)w(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)w(this,e,e+3),w(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)w(this,e,e+7),w(this,e+1,e+6),w(this,e+2,e+5),w(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?j(this,0,t):x.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),h=0;h<s;++h)if(l[h]!==c[h]){o=l[h],a=c[h];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return S(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return S(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return M(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":return C(this,t,e,n);case"latin1":case"binary":return I(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function L(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);var n="",r=0;while(r<e)n+=String.fromCharCode.apply(String,t.slice(r,r+=P));return n}function R(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function E(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function N(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=Z(t[o]);return i}function B(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function F(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function V(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function H(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function W(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function G(t,e,n,r,o){return o||W(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function U(t,e,n,r,o){return o||W(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=this[t],i=1,o=0;while(++o<e&&(i*=256))r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=this[t+--e],i=1;while(e>0&&(i*=256))r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=this[t],i=1,o=0;while(++o<e&&(i*=256))r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=e,i=1,o=this[t+--r];while(r>0&&(i*=256))o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;z(this,t,e,n,i,0)}var o=1,a=0;this[e]=255&t;while(++a<n&&(o*=256))this[e+a]=t/o&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;z(this,t,e,n,i,0)}var o=n-1,a=1;this[e+o]=255&t;while(--o>=0&&(a*=256))this[e+o]=t/a&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);z(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;this[e]=255&t;while(++o<n&&(a*=256))t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);z(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return G(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return G(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return U(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return U(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},u.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=u.isBuffer(t)?t:K(new u(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function q(t){if(t=X(t).replace(Y,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function X(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Z(t){return t<16?"0"+t.toString(16):t.toString(16)}function K(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if(n=t.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function $(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Q(t,e){for(var n,r,i,o=[],a=0;a<t.length;++a){if((e-=2)<0)break;n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function J(t){return r.toByteArray(q(t))}function tt(t,e,n,r){for(var i=0;i<r;++i){if(i+n>=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function et(t){return t!==t}}).call(this,n("c8ba"))},d51b:function(t,e,n){"use strict";var r=function(){function t(t){this.value=t}return t}(),i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,o=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=o},daa2:function(t,e,n){},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},ec1b:function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,n){var r=n(4)(n(1),n(5),null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3);e.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(t){return t>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(t,e,n,r){return n*(1-Math.pow(2,-10*t/r))*1024/1023+e}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,r.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,r.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,r.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,r.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(t){this.startTime||(this.startTime=t),this.timestamp=t;var e=t-this.startTime;this.remaining=this.localDuration-e,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(e,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(e,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(e/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(e/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e<this.localDuration?this.rAF=(0,r.requestAnimationFrame)(this.count):this.$emit("callback")},isNumber:function(t){return!isNaN(parseFloat(t))},formatNumber:function(t){t=t.toFixed(this.decimals),t+="";var e=t.split("."),n=e[0],r=e.length>1?this.decimal+e[1]:"",i=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;i.test(n);)n=n.replace(i,"$1"+this.separator+"$2");return this.prefix+n+r+this.suffix}},destroyed:function(){(0,r.cancelAnimationFrame)(this.rAF)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",i.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=0,i="webkit moz ms o".split(" "),o=void 0,a=void 0;if("undefined"==typeof window)e.requestAnimationFrame=o=function(){},e.cancelAnimationFrame=a=function(){};else{e.requestAnimationFrame=o=window.requestAnimationFrame,e.cancelAnimationFrame=a=window.cancelAnimationFrame;for(var s=void 0,l=0;l<i.length&&(!o||!a);l++)s=i[l],e.requestAnimationFrame=o=o||window[s+"RequestAnimationFrame"],e.cancelAnimationFrame=a=a||window[s+"CancelAnimationFrame"]||window[s+"CancelRequestAnimationFrame"];o&&a||(e.requestAnimationFrame=o=function(t){var e=(new Date).getTime(),n=Math.max(0,16-(e-r)),i=window.setTimeout((function(){t(e+n)}),n);return r=e+n,i},e.cancelAnimationFrame=a=function(t){window.clearTimeout(t)})}e.requestAnimationFrame=o,e.cancelAnimationFrame=a},function(t,e){t.exports=function(t,e,n,r){var i,o=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(i=t,o=t.default);var s="function"==typeof o?o.options:o;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),r){var l=Object.create(s.computed||null);Object.keys(r).forEach((function(t){var e=r[t];l[t]=function(){return e}})),s.computed=l}return{esModule:i,exports:o,options:s}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",[t._v("\n "+t._s(t.displayValue)+"\n")])},staticRenderFns:[]}}])}))}}]);
|