(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;s0)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>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;ol?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>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;o1&&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=!(od&&(d=_,gd&&(d=b,y=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=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=0)i++;return i-e}function fe(t,e,n){n--;while(e>>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(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(ls&&(l=s);var u=a;a=i-l,l=i-u}a++;while(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(ls&&(l=s);var u=a;a=i-l,l=i-u}else{s=r-i;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(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])break;c(t)}}function u(){while(o>1){var t=o-2;t>0&&r[t-1]=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=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=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=0;l--)t[p+l]=t[f+l];t[h]=a[c]}else for(f=h-(s-1),l=0;ls&&(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;n0&&(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=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&&tje||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=0&&d=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=0&&p=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;or?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=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=0;n--)if(l[n].percent<=e)break;n=p(n,u-2)}else{for(n=f;ne)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;o0&&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;n0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i1){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.__lastTouchMomentlr||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=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;i0},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;s0,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=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=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;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var f=0;f0||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=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;n0&&(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;e0){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(su&&(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=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=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=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;op&&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;vl&&Yo(n,t.substring(l,u),e,s),Yo(n,r[2],e,s,r[1]),l=Eo.lastIndex}lo){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&&P0&&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=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;hn: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;r1e-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:ii&&(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&&n0&&(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;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(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;e11&&(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;tn||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;x0&&(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||at+s&&o>n+s||oe+h&&c>r+h&&c>o+h&&c>s+h||ct+h&&u>n+h&&u>i+h&&u>a+h||ue+u&&l>r+u&&l>o+u||lt+u&&s>n+u&&s>i+u||sn||c+ui&&(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||oi?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||u1&&es(),p=Ve(e,r,o,s,ts[0]),f>1&&(d=Ve(e,r,o,s,ts[1]))),2===f?ve&&s>r&&s>o||s=0&&u<=1){for(var c=0,h=Xe(e,r,o,u),f=0;fn||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;d1&&(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.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)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;h0},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;e0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,I=0;I=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=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;n0){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=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=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':'';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=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;re)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=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=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;nu&&(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=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||f1&&r>0?s:a}};return o;function a(){return e=t?null:oe},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 nr?-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;c65535?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;ug[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;uv[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=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))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=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=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=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=c&&y<=h||isNaN(y))&&(s[l++]=w)}else for(v=0;vt[T][1])&&(S=!1)}S&&(s[l++]=e.getRawIndex(v))}return lv[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;pn&&(n=r,i=_))}T>0&&Tu-p&&(s=u-p,a.length=s);for(var d=0;dc[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();is&&(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=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;e1||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('
'+pt(f)+"
"+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='
',r="margin: "+e+"px 0 0";return'
'+t+n+"
"}function ld(t,e,n){var r=e?"margin-left:2px":"";return''+pt(t)+""}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],''+Object(O["map"])(t,(function(t){return pt(t)})).join("  ")+""}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;nthis.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=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;l0&&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;i1&&(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;uD*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),pyg){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),M0&&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),T0&&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=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;srv[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()&&(uMath.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];o1)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=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;o0&&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=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;o0?"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;s0&&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+=''+t.dom+""})),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;re.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;u0?{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=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;o1){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;a1&&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;f1)for(var a=0;a30}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=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;u0},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;s1&&(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;p0&&(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(ee[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&&ar&&(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=0&&t=0&&t=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[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]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;ir[0]&&h0&&(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&&er&&(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>>1;t[i][1]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(u1&&0===u&&o.unshift({value:o[0].value-f})}}for(u=0;u=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;p0)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]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)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>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;n40&&(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:ti&&(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;p0){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(o1&&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=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;c0&&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;o0)for(l=0;l0;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;r0?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=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=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]),aa)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&&o0?"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=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=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-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'
'}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=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":"
",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=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(rn[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=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,rr?(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}})),Tn?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)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)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;g0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=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=a)}}for(var c=this.__startIndex;c15)break}}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var b=f.dpr,x=0;x0&&t>r[0]){for(s=0;st)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;r0?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;r255?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=0)u=l*n.length;else for(var f=0;f */ e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<>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<>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<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 * @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()=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;os&&(n=s-l),o=n;o>=0;o--){for(var h=!0,f=0;fi&&(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;a239?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);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(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;hi)&&(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(rr)&&(n=r);for(var i="",o=e;on)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||et.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>>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>>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),e0&&(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=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=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>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=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=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&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>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=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.printValthis.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e1?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